1var __create = Object.create; 2var __defProp = Object.defineProperty; 3var __getOwnPropDesc = Object.getOwnPropertyDescriptor; 4var __getOwnPropNames = Object.getOwnPropertyNames; 5var __getProtoOf = Object.getPrototypeOf, __hasOwnProp = Object.prototype.hasOwnProperty; 6var __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}); 12var __esm = (fn4, res) => function() { 13 return fn4 && (res = (0, fn4[__getOwnPropNames(fn4)[0]])(fn4 = 0)), res; 14}; 15var __commonJS = (cb, mod) => function() { 16 return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports; 17}; 18var __export = (target, all) => { 19 for (var name in all) 20 __defProp(target, name, { get: all[name], enumerable: !0 }); 21}, __copyProps = (to, from2, except, desc) => { 22 if (from2 && typeof from2 == "object" || typeof from2 == "function") 23 for (let key of __getOwnPropNames(from2)) 24 !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from2[key], enumerable: !(desc = __getOwnPropDesc(from2, key)) || desc.enumerable }); 25 return to; 26}; 27var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps( 28 // If the importer is in node compatibility mode or this is not an ESM 29 // file that has been converted to a CommonJS file using a Babel- 30 // compatible transform (i.e. "__esModule" has not been set), then set 31 // "default" to the CommonJS "module.exports" for node compatibility. 32 isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: !0 }) : target, 33 mod 34)); 35
vendor: 9,605 bytes, lines 36-271
36// ../../node_modules/react/cjs/react.production.min.js 37var require_react_production_min = __commonJS({ 38 "../../node_modules/react/cjs/react.production.min.js"(exports) { 39 "use strict"; 40 var l = Symbol.for("react.element"), n = Symbol.for("react.portal"), p3 = Symbol.for("react.fragment"), q = Symbol.for("react.strict_mode"), r2 = Symbol.for("react.profiler"), t = Symbol.for("react.provider"), u2 = Symbol.for("react.context"), v = Symbol.for("react.forward_ref"), w = Symbol.for("react.suspense"), x = Symbol.for("react.memo"), y = Symbol.for("react.lazy"), z = Symbol.iterator; 41 function A3(a3) { 42 return a3 === null || typeof a3 != "object" ? null : (a3 = z && a3[z] || a3["@@iterator"], typeof a3 == "function" ? a3 : null); 43 } 44 var B3 = { isMounted: function() { 45 return !1; 46 }, enqueueForceUpdate: function() { 47 }, enqueueReplaceState: function() { 48 }, enqueueSetState: function() { 49 } }, C3 = Object.assign, D = {}; 50 function E(a3, b, e) { 51 this.props = a3, this.context = b, this.refs = D, this.updater = e || B3; 52 } 53 E.prototype.isReactComponent = {}; 54 E.prototype.setState = function(a3, b) { 55 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."); 56 this.updater.enqueueSetState(this, a3, b, "setState"); 57 }; 58 E.prototype.forceUpdate = function(a3) { 59 this.updater.enqueueForceUpdate(this, a3, "forceUpdate"); 60 }; 61 function F() { 62 } 63 F.prototype = E.prototype; 64 function G(a3, b, e) { 65 this.props = a3, this.context = b, this.refs = D, this.updater = e || B3; 66 } 67 var H = G.prototype = new F(); 68 H.constructor = G; 69 C3(H, E.prototype); 70 H.isPureReactComponent = !0; 71 var I = Array.isArray, J = Object.prototype.hasOwnProperty, K2 = { current: null }, L = { key: !0, ref: !0, __self: !0, __source: !0 }; 72 function M(a3, b, e) { 73 var d, c = {}, k = null, h3 = null; 74 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]); 75 var g2 = arguments.length - 2; 76 if (g2 === 1) c.children = e; 77 else if (1 < g2) { 78 for (var f4 = Array(g2), m3 = 0; m3 < g2; m3++) f4[m3] = arguments[m3 + 2]; 79 c.children = f4; 80 } 81 if (a3 && a3.defaultProps) for (d in g2 = a3.defaultProps, g2) c[d] === void 0 && (c[d] = g2[d]); 82 return { $$typeof: l, type: a3, key: k, ref: h3, props: c, _owner: K2.current }; 83 } 84 function N(a3, b) { 85 return { $$typeof: l, type: a3.type, key: b, ref: a3.ref, props: a3.props, _owner: a3._owner }; 86 } 87 function O(a3) { 88 return typeof a3 == "object" && a3 !== null && a3.$$typeof === l; 89 } 90 function escape4(a3) { 91 var b = { "=": "=0", ":": "=2" }; 92 return "$" + a3.replace(/[=:]/g, function(a4) { 93 return b[a4]; 94 }); 95 } 96 var P3 = /\/+/g; 97 function Q(a3, b) { 98 return typeof a3 == "object" && a3 !== null && a3.key != null ? escape4("" + a3.key) : b.toString(36); 99 } 100 function R(a3, b, e, d, c) { 101 var k = typeof a3; 102 (k === "undefined" || k === "boolean") && (a3 = null); 103 var h3 = !1; 104 if (a3 === null) h3 = !0; 105 else switch (k) { 106 case "string": 107 case "number": 108 h3 = !0; 109 break; 110 case "object": 111 switch (a3.$$typeof) { 112 case l: 113 case n: 114 h3 = !0; 115 } 116 } 117 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) { 118 return a4; 119 })) : c != null && (O(c) && (c = N(c, e + (!c.key || h3 && h3.key === c.key ? "" : ("" + c.key).replace(P3, "$&/") + "/") + a3)), b.push(c)), 1; 120 if (h3 = 0, d = d === "" ? "." : d + ":", I(a3)) for (var g2 = 0; g2 < a3.length; g2++) { 121 k = a3[g2]; 122 var f4 = d + Q(k, g2); 123 h3 += R(k, b, e, f4, c); 124 } 125 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); 126 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."); 127 return h3; 128 } 129 function S(a3, b, e) { 130 if (a3 == null) return a3; 131 var d = [], c = 0; 132 return R(a3, d, "", "", function(a4) { 133 return b.call(e, a4, c++); 134 }), d; 135 } 136 function T2(a3) { 137 if (a3._status === -1) { 138 var b = a3._result; 139 b = b(), b.then(function(b2) { 140 (a3._status === 0 || a3._status === -1) && (a3._status = 1, a3._result = b2); 141 }, function(b2) { 142 (a3._status === 0 || a3._status === -1) && (a3._status = 2, a3._result = b2); 143 }), a3._status === -1 && (a3._status = 0, a3._result = b); 144 } 145 if (a3._status === 1) return a3._result.default; 146 throw a3._result; 147 } 148 var U = { current: null }, V = { transition: null }, W = { ReactCurrentDispatcher: U, ReactCurrentBatchConfig: V, ReactCurrentOwner: K2 }; 149 function X() { 150 throw Error("act(...) is not supported in production builds of React."); 151 } 152 exports.Children = { map: S, forEach: function(a3, b, e) { 153 S(a3, function() { 154 b.apply(this, arguments); 155 }, e); 156 }, count: function(a3) { 157 var b = 0; 158 return S(a3, function() { 159 b++; 160 }), b; 161 }, toArray: function(a3) { 162 return S(a3, function(a4) { 163 return a4; 164 }) || []; 165 }, only: function(a3) { 166 if (!O(a3)) throw Error("React.Children.only expected to receive a single React element child."); 167 return a3; 168 } }; 169 exports.Component = E; 170 exports.Fragment = p3; 171 exports.Profiler = r2; 172 exports.PureComponent = G; 173 exports.StrictMode = q; 174 exports.Suspense = w; 175 exports.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = W; 176 exports.act = X; 177 exports.cloneElement = function(a3, b, e) { 178 if (a3 == null) throw Error("React.cloneElement(...): The argument must be a React element, but you passed " + a3 + "."); 179 var d = C3({}, a3.props), c = a3.key, k = a3.ref, h3 = a3._owner; 180 if (b != null) { 181 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; 182 for (f4 in b) J.call(b, f4) && !L.hasOwnProperty(f4) && (d[f4] = b[f4] === void 0 && g2 !== void 0 ? g2[f4] : b[f4]); 183 } 184 var f4 = arguments.length - 2; 185 if (f4 === 1) d.children = e; 186 else if (1 < f4) { 187 g2 = Array(f4); 188 for (var m3 = 0; m3 < f4; m3++) g2[m3] = arguments[m3 + 2]; 189 d.children = g2; 190 } 191 return { $$typeof: l, type: a3.type, key: c, ref: k, props: d, _owner: h3 }; 192 }; 193 exports.createContext = function(a3) { 194 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; 195 }; 196 exports.createElement = M; 197 exports.createFactory = function(a3) { 198 var b = M.bind(null, a3); 199 return b.type = a3, b; 200 }; 201 exports.createRef = function() { 202 return { current: null }; 203 }; 204 exports.forwardRef = function(a3) { 205 return { $$typeof: v, render: a3 }; 206 }; 207 exports.isValidElement = O; 208 exports.lazy = function(a3) { 209 return { $$typeof: y, _payload: { _status: -1, _result: a3 }, _init: T2 }; 210 }; 211 exports.memo = function(a3, b) { 212 return { $$typeof: x, type: a3, compare: b === void 0 ? null : b }; 213 }; 214 exports.startTransition = function(a3) { 215 var b = V.transition; 216 V.transition = {}; 217 try { 218 a3(); 219 } finally { 220 V.transition = b; 221 } 222 }; 223 exports.unstable_act = X; 224 exports.useCallback = function(a3, b) { 225 return U.current.useCallback(a3, b); 226 }; 227 exports.useContext = function(a3) { 228 return U.current.useContext(a3); 229 }; 230 exports.useDebugValue = function() { 231 }; 232 exports.useDeferredValue = function(a3) { 233 return U.current.useDeferredValue(a3); 234 }; 235 exports.useEffect = function(a3, b) { 236 return U.current.useEffect(a3, b); 237 }; 238 exports.useId = function() { 239 return U.current.useId(); 240 }; 241 exports.useImperativeHandle = function(a3, b, e) { 242 return U.current.useImperativeHandle(a3, b, e); 243 }; 244 exports.useInsertionEffect = function(a3, b) { 245 return U.current.useInsertionEffect(a3, b); 246 }; 247 exports.useLayoutEffect = function(a3, b) { 248 return U.current.useLayoutEffect(a3, b); 249 }; 250 exports.useMemo = function(a3, b) { 251 return U.current.useMemo(a3, b); 252 }; 253 exports.useReducer = function(a3, b, e) { 254 return U.current.useReducer(a3, b, e); 255 }; 256 exports.useRef = function(a3) { 257 return U.current.useRef(a3); 258 }; 259 exports.useState = function(a3) { 260 return U.current.useState(a3); 261 }; 262 exports.useSyncExternalStore = function(a3, b, e) { 263 return U.current.useSyncExternalStore(a3, b, e); 264 }; 265 exports.useTransition = function() { 266 return U.current.useTransition(); 267 }; 268 exports.version = "18.3.1"; 269 } 270}); 271
vendor: 209 bytes, lines 272-279
272// ../../node_modules/react/index.js 273var require_react = __commonJS({ 274 "../../node_modules/react/index.js"(exports, module2) { 275 "use strict"; 276 module2.exports = require_react_production_min(); 277 } 278}); 279
vendor: 6,556 bytes, lines 280-489
280// ../../node_modules/scheduler/cjs/scheduler.production.min.js 281var require_scheduler_production_min = __commonJS({ 282 "../../node_modules/scheduler/cjs/scheduler.production.min.js"(exports) { 283 "use strict"; 284 function f4(a3, b) { 285 var c = a3.length; 286 a3.push(b); 287 a: for (; 0 < c; ) { 288 var d = c - 1 >>> 1, e = a3[d]; 289 if (0 < g2(e, b)) a3[d] = b, a3[c] = e, c = d; 290 else break a; 291 } 292 } 293 function h3(a3) { 294 return a3.length === 0 ? null : a3[0]; 295 } 296 function k(a3) { 297 if (a3.length === 0) return null; 298 var b = a3[0], c = a3.pop(); 299 if (c !== b) { 300 a3[0] = c; 301 a: for (var d = 0, e = a3.length, w = e >>> 1; d < w; ) { 302 var m3 = 2 * (d + 1) - 1, C3 = a3[m3], n = m3 + 1, x = a3[n]; 303 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); 304 else if (n < e && 0 > g2(x, c)) a3[d] = x, a3[n] = c, d = n; 305 else break a; 306 } 307 } 308 return b; 309 } 310 function g2(a3, b) { 311 var c = a3.sortIndex - b.sortIndex; 312 return c !== 0 ? c : a3.id - b.id; 313 } 314 typeof performance == "object" && typeof performance.now == "function" ? (l = performance, exports.unstable_now = function() { 315 return l.now(); 316 }) : (p3 = Date, q = p3.now(), exports.unstable_now = function() { 317 return p3.now() - q; 318 }); 319 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; 320 typeof navigator < "u" && navigator.scheduling !== void 0 && navigator.scheduling.isInputPending !== void 0 && navigator.scheduling.isInputPending.bind(navigator.scheduling); 321 function G(a3) { 322 for (var b = h3(t); b !== null; ) { 323 if (b.callback === null) k(t); 324 else if (b.startTime <= a3) k(t), b.sortIndex = b.expirationTime, f4(r2, b); 325 else break; 326 b = h3(t); 327 } 328 } 329 function H(a3) { 330 if (B3 = !1, G(a3), !A3) if (h3(r2) !== null) A3 = !0, I(J); 331 else { 332 var b = h3(t); 333 b !== null && K2(H, b.startTime - a3); 334 } 335 } 336 function J(a3, b) { 337 A3 = !1, B3 && (B3 = !1, E(L), L = -1), z = !0; 338 var c = y; 339 try { 340 for (G(b), v = h3(r2); v !== null && (!(v.expirationTime > b) || a3 && !M()); ) { 341 var d = v.callback; 342 if (typeof d == "function") { 343 v.callback = null, y = v.priorityLevel; 344 var e = d(v.expirationTime <= b); 345 b = exports.unstable_now(), typeof e == "function" ? v.callback = e : v === h3(r2) && k(r2), G(b); 346 } else k(r2); 347 v = h3(r2); 348 } 349 if (v !== null) var w = !0; 350 else { 351 var m3 = h3(t); 352 m3 !== null && K2(H, m3.startTime - b), w = !1; 353 } 354 return w; 355 } finally { 356 v = null, y = c, z = !1; 357 } 358 } 359 var N = !1, O = null, L = -1, P3 = 5, Q = -1; 360 function M() { 361 return !(exports.unstable_now() - Q < P3); 362 } 363 function R() { 364 if (O !== null) { 365 var a3 = exports.unstable_now(); 366 Q = a3; 367 var b = !0; 368 try { 369 b = O(!0, a3); 370 } finally { 371 b ? S() : (N = !1, O = null); 372 } 373 } else N = !1; 374 } 375 var S; 376 typeof F == "function" ? S = function() { 377 F(R); 378 } : typeof MessageChannel < "u" ? (T2 = new MessageChannel(), U = T2.port2, T2.port1.onmessage = R, S = function() { 379 U.postMessage(null); 380 }) : S = function() { 381 D(R, 0); 382 }; 383 var T2, U; 384 function I(a3) { 385 O = a3, N || (N = !0, S()); 386 } 387 function K2(a3, b) { 388 L = D(function() { 389 a3(exports.unstable_now()); 390 }, b); 391 } 392 exports.unstable_IdlePriority = 5; 393 exports.unstable_ImmediatePriority = 1; 394 exports.unstable_LowPriority = 4; 395 exports.unstable_NormalPriority = 3; 396 exports.unstable_Profiling = null; 397 exports.unstable_UserBlockingPriority = 2; 398 exports.unstable_cancelCallback = function(a3) { 399 a3.callback = null; 400 }; 401 exports.unstable_continueExecution = function() { 402 A3 || z || (A3 = !0, I(J)); 403 }; 404 exports.unstable_forceFrameRate = function(a3) { 405 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; 406 }; 407 exports.unstable_getCurrentPriorityLevel = function() { 408 return y; 409 }; 410 exports.unstable_getFirstCallbackNode = function() { 411 return h3(r2); 412 }; 413 exports.unstable_next = function(a3) { 414 switch (y) { 415 case 1: 416 case 2: 417 case 3: 418 var b = 3; 419 break; 420 default: 421 b = y; 422 } 423 var c = y; 424 y = b; 425 try { 426 return a3(); 427 } finally { 428 y = c; 429 } 430 }; 431 exports.unstable_pauseExecution = function() { 432 }; 433 exports.unstable_requestPaint = function() { 434 }; 435 exports.unstable_runWithPriority = function(a3, b) { 436 switch (a3) { 437 case 1: 438 case 2: 439 case 3: 440 case 4: 441 case 5: 442 break; 443 default: 444 a3 = 3; 445 } 446 var c = y; 447 y = a3; 448 try { 449 return b(); 450 } finally { 451 y = c; 452 } 453 }; 454 exports.unstable_scheduleCallback = function(a3, b, c) { 455 var d = exports.unstable_now(); 456 switch (typeof c == "object" && c !== null ? (c = c.delay, c = typeof c == "number" && 0 < c ? d + c : d) : c = d, a3) { 457 case 1: 458 var e = -1; 459 break; 460 case 2: 461 e = 250; 462 break; 463 case 5: 464 e = 1073741823; 465 break; 466 case 4: 467 e = 1e4; 468 break; 469 default: 470 e = 5e3; 471 } 472 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; 473 }; 474 exports.unstable_shouldYield = M; 475 exports.unstable_wrapCallback = function(a3) { 476 var b = y; 477 return function() { 478 var c = y; 479 y = b; 480 try { 481 return a3.apply(this, arguments); 482 } finally { 483 y = c; 484 } 485 }; 486 }; 487 } 488}); 489
vendor: 225 bytes, lines 490-497
490// ../../node_modules/scheduler/index.js 491var require_scheduler = __commonJS({ 492 "../../node_modules/scheduler/index.js"(exports, module2) { 493 "use strict"; 494 module2.exports = require_scheduler_production_min(); 495 } 496}); 497
vendor: 211,311 bytes, lines 498-5706
498// ../../node_modules/react-dom/cjs/react-dom.production.min.js 499var require_react_dom_production_min = __commonJS({ 500 "../../node_modules/react-dom/cjs/react-dom.production.min.js"(exports) { 501 "use strict"; 502 var aa = require_react(), ca = require_scheduler(); 503 function p3(a3) { 504 for (var b = "https://reactjs.org/docs/error-decoder.html?invariant=" + a3, c = 1; c < arguments.length; c++) b += "&args[]=" + encodeURIComponent(arguments[c]); 505 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."; 506 } 507 var da = /* @__PURE__ */ new Set(), ea = {}; 508 function fa(a3, b) { 509 ha(a3, b), ha(a3 + "Capture", b); 510 } 511 function ha(a3, b) { 512 for (ea[a3] = b, a3 = 0; a3 < b.length; a3++) da.add(b[a3]); 513 } 514 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 = {}; 515 function oa(a3) { 516 return ja.call(ma, a3) ? !0 : ja.call(la, a3) ? !1 : ka.test(a3) ? ma[a3] = !0 : (la[a3] = !0, !1); 517 } 518 function pa(a3, b, c, d) { 519 if (c !== null && c.type === 0) return !1; 520 switch (typeof b) { 521 case "function": 522 case "symbol": 523 return !0; 524 case "boolean": 525 return d ? !1 : c !== null ? !c.acceptsBooleans : (a3 = a3.toLowerCase().slice(0, 5), a3 !== "data-" && a3 !== "aria-"); 526 default: 527 return !1; 528 } 529 } 530 function qa(a3, b, c, d) { 531 if (b === null || typeof b > "u" || pa(a3, b, c, d)) return !0; 532 if (d) return !1; 533 if (c !== null) switch (c.type) { 534 case 3: 535 return !b; 536 case 4: 537 return b === !1; 538 case 5: 539 return isNaN(b); 540 case 6: 541 return isNaN(b) || 1 > b; 542 } 543 return !1; 544 } 545 function v(a3, b, c, d, e, f4, g2) { 546 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; 547 } 548 var z = {}; 549 "children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(a3) { 550 z[a3] = new v(a3, 0, !1, a3, null, !1, !1); 551 }); 552 [["acceptCharset", "accept-charset"], ["className", "class"], ["htmlFor", "for"], ["httpEquiv", "http-equiv"]].forEach(function(a3) { 553 var b = a3[0]; 554 z[b] = new v(b, 1, !1, a3[1], null, !1, !1); 555 }); 556 ["contentEditable", "draggable", "spellCheck", "value"].forEach(function(a3) { 557 z[a3] = new v(a3, 2, !1, a3.toLowerCase(), null, !1, !1); 558 }); 559 ["autoReverse", "externalResourcesRequired", "focusable", "preserveAlpha"].forEach(function(a3) { 560 z[a3] = new v(a3, 2, !1, a3, null, !1, !1); 561 }); 562 "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) { 563 z[a3] = new v(a3, 3, !1, a3.toLowerCase(), null, !1, !1); 564 }); 565 ["checked", "multiple", "muted", "selected"].forEach(function(a3) { 566 z[a3] = new v(a3, 3, !0, a3, null, !1, !1); 567 }); 568 ["capture", "download"].forEach(function(a3) { 569 z[a3] = new v(a3, 4, !1, a3, null, !1, !1); 570 }); 571 ["cols", "rows", "size", "span"].forEach(function(a3) { 572 z[a3] = new v(a3, 6, !1, a3, null, !1, !1); 573 }); 574 ["rowSpan", "start"].forEach(function(a3) { 575 z[a3] = new v(a3, 5, !1, a3.toLowerCase(), null, !1, !1); 576 }); 577 var ra = /[\-:]([a-z])/g; 578 function sa(a3) { 579 return a3[1].toUpperCase(); 580 } 581 "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) { 582 var b = a3.replace( 583 ra, 584 sa 585 ); 586 z[b] = new v(b, 1, !1, a3, null, !1, !1); 587 }); 588 "xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(a3) { 589 var b = a3.replace(ra, sa); 590 z[b] = new v(b, 1, !1, a3, "http://www.w3.org/1999/xlink", !1, !1); 591 }); 592 ["xml:base", "xml:lang", "xml:space"].forEach(function(a3) { 593 var b = a3.replace(ra, sa); 594 z[b] = new v(b, 1, !1, a3, "http://www.w3.org/XML/1998/namespace", !1, !1); 595 }); 596 ["tabIndex", "crossOrigin"].forEach(function(a3) { 597 z[a3] = new v(a3, 1, !1, a3.toLowerCase(), null, !1, !1); 598 }); 599 z.xlinkHref = new v("xlinkHref", 1, !1, "xlink:href", "http://www.w3.org/1999/xlink", !0, !1); 600 ["src", "href", "action", "formAction"].forEach(function(a3) { 601 z[a3] = new v(a3, 1, !1, a3.toLowerCase(), null, !0, !0); 602 }); 603 function ta(a3, b, c, d) { 604 var e = z.hasOwnProperty(b) ? z[b] : null; 605 (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)))); 606 } 607 var ua = aa.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED, va = Symbol.for("react.element"), wa = Symbol.for("react.portal"), ya = Symbol.for("react.fragment"), za = Symbol.for("react.strict_mode"), Aa = Symbol.for("react.profiler"), Ba = Symbol.for("react.provider"), Ca = Symbol.for("react.context"), Da = Symbol.for("react.forward_ref"), Ea = Symbol.for("react.suspense"), Fa = Symbol.for("react.suspense_list"), Ga = Symbol.for("react.memo"), Ha = Symbol.for("react.lazy"); 608 Symbol.for("react.scope"); 609 Symbol.for("react.debug_trace_mode"); 610 var Ia = Symbol.for("react.offscreen"); 611 Symbol.for("react.legacy_hidden"); 612 Symbol.for("react.cache"); 613 Symbol.for("react.tracing_marker"); 614 var Ja = Symbol.iterator; 615 function Ka(a3) { 616 return a3 === null || typeof a3 != "object" ? null : (a3 = Ja && a3[Ja] || a3["@@iterator"], typeof a3 == "function" ? a3 : null); 617 } 618 var A3 = Object.assign, La; 619 function Ma(a3) { 620 if (La === void 0) try { 621 throw Error(); 622 } catch (c) { 623 var b = c.stack.trim().match(/\n( *(at )?)/); 624 La = b && b[1] || ""; 625 } 626 return ` 627` + La + a3; 628 } 629 var Na = !1; 630 function Oa(a3, b) { 631 if (!a3 || Na) return ""; 632 Na = !0; 633 var c = Error.prepareStackTrace; 634 Error.prepareStackTrace = void 0; 635 try { 636 if (b) if (b = function() { 637 throw Error(); 638 }, Object.defineProperty(b.prototype, "props", { set: function() { 639 throw Error(); 640 } }), typeof Reflect == "object" && Reflect.construct) { 641 try { 642 Reflect.construct(b, []); 643 } catch (l) { 644 var d = l; 645 } 646 Reflect.construct(a3, [], b); 647 } else { 648 try { 649 b.call(); 650 } catch (l) { 651 d = l; 652 } 653 a3.call(b.prototype); 654 } 655 else { 656 try { 657 throw Error(); 658 } catch (l) { 659 d = l; 660 } 661 a3(); 662 } 663 } catch (l) { 664 if (l && d && typeof l.stack == "string") { 665 for (var e = l.stack.split(` 666`), f4 = d.stack.split(` 667`), g2 = e.length - 1, h3 = f4.length - 1; 1 <= g2 && 0 <= h3 && e[g2] !== f4[h3]; ) h3--; 668 for (; 1 <= g2 && 0 <= h3; g2--, h3--) if (e[g2] !== f4[h3]) { 669 if (g2 !== 1 || h3 !== 1) 670 do 671 if (g2--, h3--, 0 > h3 || e[g2] !== f4[h3]) { 672 var k = ` 673` + e[g2].replace(" at new ", " at "); 674 return a3.displayName && k.includes("<anonymous>") && (k = k.replace("<anonymous>", a3.displayName)), k; 675 } 676 while (1 <= g2 && 0 <= h3); 677 break; 678 } 679 } 680 } finally { 681 Na = !1, Error.prepareStackTrace = c; 682 } 683 return (a3 = a3 ? a3.displayName || a3.name : "") ? Ma(a3) : ""; 684 } 685 function Pa(a3) { 686 switch (a3.tag) { 687 case 5: 688 return Ma(a3.type); 689 case 16: 690 return Ma("Lazy"); 691 case 13: 692 return Ma("Suspense"); 693 case 19: 694 return Ma("SuspenseList"); 695 case 0: 696 case 2: 697 case 15: 698 return a3 = Oa(a3.type, !1), a3; 699 case 11: 700 return a3 = Oa(a3.type.render, !1), a3; 701 case 1: 702 return a3 = Oa(a3.type, !0), a3; 703 default: 704 return ""; 705 } 706 } 707 function Qa(a3) { 708 if (a3 == null) return null; 709 if (typeof a3 == "function") return a3.displayName || a3.name || null; 710 if (typeof a3 == "string") return a3; 711 switch (a3) { 712 case ya: 713 return "Fragment"; 714 case wa: 715 return "Portal"; 716 case Aa: 717 return "Profiler"; 718 case za: 719 return "StrictMode"; 720 case Ea: 721 return "Suspense"; 722 case Fa: 723 return "SuspenseList"; 724 } 725 if (typeof a3 == "object") switch (a3.$$typeof) { 726 case Ca: 727 return (a3.displayName || "Context") + ".Consumer"; 728 case Ba: 729 return (a3._context.displayName || "Context") + ".Provider"; 730 case Da: 731 var b = a3.render; 732 return a3 = a3.displayName, a3 || (a3 = b.displayName || b.name || "", a3 = a3 !== "" ? "ForwardRef(" + a3 + ")" : "ForwardRef"), a3; 733 case Ga: 734 return b = a3.displayName || null, b !== null ? b : Qa(a3.type) || "Memo"; 735 case Ha: 736 b = a3._payload, a3 = a3._init; 737 try { 738 return Qa(a3(b)); 739 } catch { 740 } 741 } 742 return null; 743 } 744 function Ra(a3) { 745 var b = a3.type; 746 switch (a3.tag) { 747 case 24: 748 return "Cache"; 749 case 9: 750 return (b.displayName || "Context") + ".Consumer"; 751 case 10: 752 return (b._context.displayName || "Context") + ".Provider"; 753 case 18: 754 return "DehydratedFragment"; 755 case 11: 756 return a3 = b.render, a3 = a3.displayName || a3.name || "", b.displayName || (a3 !== "" ? "ForwardRef(" + a3 + ")" : "ForwardRef"); 757 case 7: 758 return "Fragment"; 759 case 5: 760 return b; 761 case 4: 762 return "Portal"; 763 case 3: 764 return "Root"; 765 case 6: 766 return "Text"; 767 case 16: 768 return Qa(b); 769 case 8: 770 return b === za ? "StrictMode" : "Mode"; 771 case 22: 772 return "Offscreen"; 773 case 12: 774 return "Profiler"; 775 case 21: 776 return "Scope"; 777 case 13: 778 return "Suspense"; 779 case 19: 780 return "SuspenseList"; 781 case 25: 782 return "TracingMarker"; 783 case 1: 784 case 0: 785 case 17: 786 case 2: 787 case 14: 788 case 15: 789 if (typeof b == "function") return b.displayName || b.name || null; 790 if (typeof b == "string") return b; 791 } 792 return null; 793 } 794 function Sa(a3) { 795 switch (typeof a3) { 796 case "boolean": 797 case "number": 798 case "string": 799 case "undefined": 800 return a3; 801 case "object": 802 return a3; 803 default: 804 return ""; 805 } 806 } 807 function Ta(a3) { 808 var b = a3.type; 809 return (a3 = a3.nodeName) && a3.toLowerCase() === "input" && (b === "checkbox" || b === "radio"); 810 } 811 function Ua(a3) { 812 var b = Ta(a3) ? "checked" : "value", c = Object.getOwnPropertyDescriptor(a3.constructor.prototype, b), d = "" + a3[b]; 813 if (!a3.hasOwnProperty(b) && typeof c < "u" && typeof c.get == "function" && typeof c.set == "function") { 814 var e = c.get, f4 = c.set; 815 return Object.defineProperty(a3, b, { configurable: !0, get: function() { 816 return e.call(this); 817 }, set: function(a4) { 818 d = "" + a4, f4.call(this, a4); 819 } }), Object.defineProperty(a3, b, { enumerable: c.enumerable }), { getValue: function() { 820 return d; 821 }, setValue: function(a4) { 822 d = "" + a4; 823 }, stopTracking: function() { 824 a3._valueTracker = null, delete a3[b]; 825 } }; 826 } 827 } 828 function Va(a3) { 829 a3._valueTracker || (a3._valueTracker = Ua(a3)); 830 } 831 function Wa(a3) { 832 if (!a3) return !1; 833 var b = a3._valueTracker; 834 if (!b) return !0; 835 var c = b.getValue(), d = ""; 836 return a3 && (d = Ta(a3) ? a3.checked ? "true" : "false" : a3.value), a3 = d, a3 !== c ? (b.setValue(a3), !0) : !1; 837 } 838 function Xa(a3) { 839 if (a3 = a3 || (typeof document < "u" ? document : void 0), typeof a3 > "u") return null; 840 try { 841 return a3.activeElement || a3.body; 842 } catch { 843 return a3.body; 844 } 845 } 846 function Ya(a3, b) { 847 var c = b.checked; 848 return A3({}, b, { defaultChecked: void 0, defaultValue: void 0, value: void 0, checked: c ?? a3._wrapperState.initialChecked }); 849 } 850 function Za(a3, b) { 851 var c = b.defaultValue == null ? "" : b.defaultValue, d = b.checked != null ? b.checked : b.defaultChecked; 852 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 }; 853 } 854 function ab(a3, b) { 855 b = b.checked, b != null && ta(a3, "checked", b, !1); 856 } 857 function bb(a3, b) { 858 ab(a3, b); 859 var c = Sa(b.value), d = b.type; 860 if (c != null) d === "number" ? (c === 0 && a3.value === "" || a3.value != c) && (a3.value = "" + c) : a3.value !== "" + c && (a3.value = "" + c); 861 else if (d === "submit" || d === "reset") { 862 a3.removeAttribute("value"); 863 return; 864 } 865 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); 866 } 867 function db(a3, b, c) { 868 if (b.hasOwnProperty("value") || b.hasOwnProperty("defaultValue")) { 869 var d = b.type; 870 if (!(d !== "submit" && d !== "reset" || b.value !== void 0 && b.value !== null)) return; 871 b = "" + a3._wrapperState.initialValue, c || b === a3.value || (a3.value = b), a3.defaultValue = b; 872 } 873 c = a3.name, c !== "" && (a3.name = ""), a3.defaultChecked = !!a3._wrapperState.initialChecked, c !== "" && (a3.name = c); 874 } 875 function cb(a3, b, c) { 876 (b !== "number" || Xa(a3.ownerDocument) !== a3) && (c == null ? a3.defaultValue = "" + a3._wrapperState.initialValue : a3.defaultValue !== "" + c && (a3.defaultValue = "" + c)); 877 } 878 var eb = Array.isArray; 879 function fb(a3, b, c, d) { 880 if (a3 = a3.options, b) { 881 b = {}; 882 for (var e = 0; e < c.length; e++) b["$" + c[e]] = !0; 883 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); 884 } else { 885 for (c = "" + Sa(c), b = null, e = 0; e < a3.length; e++) { 886 if (a3[e].value === c) { 887 a3[e].selected = !0, d && (a3[e].defaultSelected = !0); 888 return; 889 } 890 b !== null || a3[e].disabled || (b = a3[e]); 891 } 892 b !== null && (b.selected = !0); 893 } 894 } 895 function gb(a3, b) { 896 if (b.dangerouslySetInnerHTML != null) throw Error(p3(91)); 897 return A3({}, b, { value: void 0, defaultValue: void 0, children: "" + a3._wrapperState.initialValue }); 898 } 899 function hb(a3, b) { 900 var c = b.value; 901 if (c == null) { 902 if (c = b.children, b = b.defaultValue, c != null) { 903 if (b != null) throw Error(p3(92)); 904 if (eb(c)) { 905 if (1 < c.length) throw Error(p3(93)); 906 c = c[0]; 907 } 908 b = c; 909 } 910 b == null && (b = ""), c = b; 911 } 912 a3._wrapperState = { initialValue: Sa(c) }; 913 } 914 function ib(a3, b) { 915 var c = Sa(b.value), d = Sa(b.defaultValue); 916 c != null && (c = "" + c, c !== a3.value && (a3.value = c), b.defaultValue == null && a3.defaultValue !== c && (a3.defaultValue = c)), d != null && (a3.defaultValue = "" + d); 917 } 918 function jb(a3) { 919 var b = a3.textContent; 920 b === a3._wrapperState.initialValue && b !== "" && b !== null && (a3.value = b); 921 } 922 function kb(a3) { 923 switch (a3) { 924 case "svg": 925 return "http://www.w3.org/2000/svg"; 926 case "math": 927 return "http://www.w3.org/1998/Math/MathML"; 928 default: 929 return "http://www.w3.org/1999/xhtml"; 930 } 931 } 932 function lb(a3, b) { 933 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; 934 } 935 var mb, nb = (function(a3) { 936 return typeof MSApp < "u" && MSApp.execUnsafeLocalFunction ? function(b, c, d, e) { 937 MSApp.execUnsafeLocalFunction(function() { 938 return a3(b, c, d, e); 939 }); 940 } : a3; 941 })(function(a3, b) { 942 if (a3.namespaceURI !== "http://www.w3.org/2000/svg" || "innerHTML" in a3) a3.innerHTML = b; 943 else { 944 for (mb = mb || document.createElement("div"), mb.innerHTML = "<svg>" + b.valueOf().toString() + "</svg>", b = mb.firstChild; a3.firstChild; ) a3.removeChild(a3.firstChild); 945 for (; b.firstChild; ) a3.appendChild(b.firstChild); 946 } 947 }); 948 function ob(a3, b) { 949 if (b) { 950 var c = a3.firstChild; 951 if (c && c === a3.lastChild && c.nodeType === 3) { 952 c.nodeValue = b; 953 return; 954 } 955 } 956 a3.textContent = b; 957 } 958 var pb = { 959 animationIterationCount: !0, 960 aspectRatio: !0, 961 borderImageOutset: !0, 962 borderImageSlice: !0, 963 borderImageWidth: !0, 964 boxFlex: !0, 965 boxFlexGroup: !0, 966 boxOrdinalGroup: !0, 967 columnCount: !0, 968 columns: !0, 969 flex: !0, 970 flexGrow: !0, 971 flexPositive: !0, 972 flexShrink: !0, 973 flexNegative: !0, 974 flexOrder: !0, 975 gridArea: !0, 976 gridRow: !0, 977 gridRowEnd: !0, 978 gridRowSpan: !0, 979 gridRowStart: !0, 980 gridColumn: !0, 981 gridColumnEnd: !0, 982 gridColumnSpan: !0, 983 gridColumnStart: !0, 984 fontWeight: !0, 985 lineClamp: !0, 986 lineHeight: !0, 987 opacity: !0, 988 order: !0, 989 orphans: !0, 990 tabSize: !0, 991 widows: !0, 992 zIndex: !0, 993 zoom: !0, 994 fillOpacity: !0, 995 floodOpacity: !0, 996 stopOpacity: !0, 997 strokeDasharray: !0, 998 strokeDashoffset: !0, 999 strokeMiterlimit: !0, 1000 strokeOpacity: !0, 1001 strokeWidth: !0 1002 }, qb = ["Webkit", "ms", "Moz", "O"]; 1003 Object.keys(pb).forEach(function(a3) { 1004 qb.forEach(function(b) { 1005 b = b + a3.charAt(0).toUpperCase() + a3.substring(1), pb[b] = pb[a3]; 1006 }); 1007 }); 1008 function rb(a3, b, c) { 1009 return b == null || typeof b == "boolean" || b === "" ? "" : c || typeof b != "number" || b === 0 || pb.hasOwnProperty(a3) && pb[a3] ? ("" + b).trim() : b + "px"; 1010 } 1011 function sb2(a3, b) { 1012 a3 = a3.style; 1013 for (var c in b) if (b.hasOwnProperty(c)) { 1014 var d = c.indexOf("--") === 0, e = rb(c, b[c], d); 1015 c === "float" && (c = "cssFloat"), d ? a3.setProperty(c, e) : a3[c] = e; 1016 } 1017 } 1018 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 }); 1019 function ub(a3, b) { 1020 if (b) { 1021 if (tb[a3] && (b.children != null || b.dangerouslySetInnerHTML != null)) throw Error(p3(137, a3)); 1022 if (b.dangerouslySetInnerHTML != null) { 1023 if (b.children != null) throw Error(p3(60)); 1024 if (typeof b.dangerouslySetInnerHTML != "object" || !("__html" in b.dangerouslySetInnerHTML)) throw Error(p3(61)); 1025 } 1026 if (b.style != null && typeof b.style != "object") throw Error(p3(62)); 1027 } 1028 } 1029 function vb(a3, b) { 1030 if (a3.indexOf("-") === -1) return typeof b.is == "string"; 1031 switch (a3) { 1032 case "annotation-xml": 1033 case "color-profile": 1034 case "font-face": 1035 case "font-face-src": 1036 case "font-face-uri": 1037 case "font-face-format": 1038 case "font-face-name": 1039 case "missing-glyph": 1040 return !1; 1041 default: 1042 return !0; 1043 } 1044 } 1045 var wb = null; 1046 function xb(a3) { 1047 return a3 = a3.target || a3.srcElement || window, a3.correspondingUseElement && (a3 = a3.correspondingUseElement), a3.nodeType === 3 ? a3.parentNode : a3; 1048 } 1049 var yb = null, zb = null, Ab = null; 1050 function Bb(a3) { 1051 if (a3 = Cb(a3)) { 1052 if (typeof yb != "function") throw Error(p3(280)); 1053 var b = a3.stateNode; 1054 b && (b = Db(b), yb(a3.stateNode, a3.type, b)); 1055 } 1056 } 1057 function Eb(a3) { 1058 zb ? Ab ? Ab.push(a3) : Ab = [a3] : zb = a3; 1059 } 1060 function Fb() { 1061 if (zb) { 1062 var a3 = zb, b = Ab; 1063 if (Ab = zb = null, Bb(a3), b) for (a3 = 0; a3 < b.length; a3++) Bb(b[a3]); 1064 } 1065 } 1066 function Gb(a3, b) { 1067 return a3(b); 1068 } 1069 function Hb() { 1070 } 1071 var Ib = !1; 1072 function Jb(a3, b, c) { 1073 if (Ib) return a3(b, c); 1074 Ib = !0; 1075 try { 1076 return Gb(a3, b, c); 1077 } finally { 1078 Ib = !1, (zb !== null || Ab !== null) && (Hb(), Fb()); 1079 } 1080 } 1081 function Kb(a3, b) { 1082 var c = a3.stateNode; 1083 if (c === null) return null; 1084 var d = Db(c); 1085 if (d === null) return null; 1086 c = d[b]; 1087 a: switch (b) { 1088 case "onClick": 1089 case "onClickCapture": 1090 case "onDoubleClick": 1091 case "onDoubleClickCapture": 1092 case "onMouseDown": 1093 case "onMouseDownCapture": 1094 case "onMouseMove": 1095 case "onMouseMoveCapture": 1096 case "onMouseUp": 1097 case "onMouseUpCapture": 1098 case "onMouseEnter": 1099 (d = !d.disabled) || (a3 = a3.type, d = !(a3 === "button" || a3 === "input" || a3 === "select" || a3 === "textarea")), a3 = !d; 1100 break a; 1101 default: 1102 a3 = !1; 1103 } 1104 if (a3) return null; 1105 if (c && typeof c != "function") throw Error(p3(231, b, typeof c)); 1106 return c; 1107 } 1108 var Lb = !1; 1109 if (ia) try { 1110 Mb = {}, Object.defineProperty(Mb, "passive", { get: function() { 1111 Lb = !0; 1112 } }), window.addEventListener("test", Mb, Mb), window.removeEventListener("test", Mb, Mb); 1113 } catch { 1114 Lb = !1; 1115 } 1116 var Mb; 1117 function Nb(a3, b, c, d, e, f4, g2, h3, k) { 1118 var l = Array.prototype.slice.call(arguments, 3); 1119 try { 1120 b.apply(c, l); 1121 } catch (m3) { 1122 this.onError(m3); 1123 } 1124 } 1125 var Ob = !1, Pb = null, Qb = !1, Rb = null, Sb = { onError: function(a3) { 1126 Ob = !0, Pb = a3; 1127 } }; 1128 function Tb(a3, b, c, d, e, f4, g2, h3, k) { 1129 Ob = !1, Pb = null, Nb.apply(Sb, arguments); 1130 } 1131 function Ub(a3, b, c, d, e, f4, g2, h3, k) { 1132 if (Tb.apply(this, arguments), Ob) { 1133 if (Ob) { 1134 var l = Pb; 1135 Ob = !1, Pb = null; 1136 } else throw Error(p3(198)); 1137 Qb || (Qb = !0, Rb = l); 1138 } 1139 } 1140 function Vb(a3) { 1141 var b = a3, c = a3; 1142 if (a3.alternate) for (; b.return; ) b = b.return; 1143 else { 1144 a3 = b; 1145 do 1146 b = a3, (b.flags & 4098) !== 0 && (c = b.return), a3 = b.return; 1147 while (a3); 1148 } 1149 return b.tag === 3 ? c : null; 1150 } 1151 function Wb(a3) { 1152 if (a3.tag === 13) { 1153 var b = a3.memoizedState; 1154 if (b === null && (a3 = a3.alternate, a3 !== null && (b = a3.memoizedState)), b !== null) return b.dehydrated; 1155 } 1156 return null; 1157 } 1158 function Xb(a3) { 1159 if (Vb(a3) !== a3) throw Error(p3(188)); 1160 } 1161 function Yb(a3) { 1162 var b = a3.alternate; 1163 if (!b) { 1164 if (b = Vb(a3), b === null) throw Error(p3(188)); 1165 return b !== a3 ? null : a3; 1166 } 1167 for (var c = a3, d = b; ; ) { 1168 var e = c.return; 1169 if (e === null) break; 1170 var f4 = e.alternate; 1171 if (f4 === null) { 1172 if (d = e.return, d !== null) { 1173 c = d; 1174 continue; 1175 } 1176 break; 1177 } 1178 if (e.child === f4.child) { 1179 for (f4 = e.child; f4; ) { 1180 if (f4 === c) return Xb(e), a3; 1181 if (f4 === d) return Xb(e), b; 1182 f4 = f4.sibling; 1183 } 1184 throw Error(p3(188)); 1185 } 1186 if (c.return !== d.return) c = e, d = f4; 1187 else { 1188 for (var g2 = !1, h3 = e.child; h3; ) { 1189 if (h3 === c) { 1190 g2 = !0, c = e, d = f4; 1191 break; 1192 } 1193 if (h3 === d) { 1194 g2 = !0, d = e, c = f4; 1195 break; 1196 } 1197 h3 = h3.sibling; 1198 } 1199 if (!g2) { 1200 for (h3 = f4.child; h3; ) { 1201 if (h3 === c) { 1202 g2 = !0, c = f4, d = e; 1203 break; 1204 } 1205 if (h3 === d) { 1206 g2 = !0, d = f4, c = e; 1207 break; 1208 } 1209 h3 = h3.sibling; 1210 } 1211 if (!g2) throw Error(p3(189)); 1212 } 1213 } 1214 if (c.alternate !== d) throw Error(p3(190)); 1215 } 1216 if (c.tag !== 3) throw Error(p3(188)); 1217 return c.stateNode.current === c ? a3 : b; 1218 } 1219 function Zb(a3) { 1220 return a3 = Yb(a3), a3 !== null ? $b(a3) : null; 1221 } 1222 function $b(a3) { 1223 if (a3.tag === 5 || a3.tag === 6) return a3; 1224 for (a3 = a3.child; a3 !== null; ) { 1225 var b = $b(a3); 1226 if (b !== null) return b; 1227 a3 = a3.sibling; 1228 } 1229 return null; 1230 } 1231 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; 1232 function mc(a3) { 1233 if (lc && typeof lc.onCommitFiberRoot == "function") try { 1234 lc.onCommitFiberRoot(kc, a3, void 0, (a3.current.flags & 128) === 128); 1235 } catch { 1236 } 1237 } 1238 var oc = Math.clz32 ? Math.clz32 : nc, pc = Math.log, qc = Math.LN2; 1239 function nc(a3) { 1240 return a3 >>>= 0, a3 === 0 ? 32 : 31 - (pc(a3) / qc | 0) | 0; 1241 } 1242 var rc = 64, sc = 4194304; 1243 function tc(a3) { 1244 switch (a3 & -a3) { 1245 case 1: 1246 return 1; 1247 case 2: 1248 return 2; 1249 case 4: 1250 return 4; 1251 case 8: 1252 return 8; 1253 case 16: 1254 return 16; 1255 case 32: 1256 return 32; 1257 case 64: 1258 case 128: 1259 case 256: 1260 case 512: 1261 case 1024: 1262 case 2048: 1263 case 4096: 1264 case 8192: 1265 case 16384: 1266 case 32768: 1267 case 65536: 1268 case 131072: 1269 case 262144: 1270 case 524288: 1271 case 1048576: 1272 case 2097152: 1273 return a3 & 4194240; 1274 case 4194304: 1275 case 8388608: 1276 case 16777216: 1277 case 33554432: 1278 case 67108864: 1279 return a3 & 130023424; 1280 case 134217728: 1281 return 134217728; 1282 case 268435456: 1283 return 268435456; 1284 case 536870912: 1285 return 536870912; 1286 case 1073741824: 1287 return 1073741824; 1288 default: 1289 return a3; 1290 } 1291 } 1292 function uc(a3, b) { 1293 var c = a3.pendingLanes; 1294 if (c === 0) return 0; 1295 var d = 0, e = a3.suspendedLanes, f4 = a3.pingedLanes, g2 = c & 268435455; 1296 if (g2 !== 0) { 1297 var h3 = g2 & ~e; 1298 h3 !== 0 ? d = tc(h3) : (f4 &= g2, f4 !== 0 && (d = tc(f4))); 1299 } else g2 = c & ~e, g2 !== 0 ? d = tc(g2) : f4 !== 0 && (d = tc(f4)); 1300 if (d === 0) return 0; 1301 if (b !== 0 && b !== d && (b & e) === 0 && (e = d & -d, f4 = b & -b, e >= f4 || e === 16 && (f4 & 4194240) !== 0)) return b; 1302 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; 1303 return d; 1304 } 1305 function vc(a3, b) { 1306 switch (a3) { 1307 case 1: 1308 case 2: 1309 case 4: 1310 return b + 250; 1311 case 8: 1312 case 16: 1313 case 32: 1314 case 64: 1315 case 128: 1316 case 256: 1317 case 512: 1318 case 1024: 1319 case 2048: 1320 case 4096: 1321 case 8192: 1322 case 16384: 1323 case 32768: 1324 case 65536: 1325 case 131072: 1326 case 262144: 1327 case 524288: 1328 case 1048576: 1329 case 2097152: 1330 return b + 5e3; 1331 case 4194304: 1332 case 8388608: 1333 case 16777216: 1334 case 33554432: 1335 case 67108864: 1336 return -1; 1337 case 134217728: 1338 case 268435456: 1339 case 536870912: 1340 case 1073741824: 1341 return -1; 1342 default: 1343 return -1; 1344 } 1345 } 1346 function wc(a3, b) { 1347 for (var c = a3.suspendedLanes, d = a3.pingedLanes, e = a3.expirationTimes, f4 = a3.pendingLanes; 0 < f4; ) { 1348 var g2 = 31 - oc(f4), h3 = 1 << g2, k = e[g2]; 1349 k === -1 ? ((h3 & c) === 0 || (h3 & d) !== 0) && (e[g2] = vc(h3, b)) : k <= b && (a3.expiredLanes |= h3), f4 &= ~h3; 1350 } 1351 } 1352 function xc(a3) { 1353 return a3 = a3.pendingLanes & -1073741825, a3 !== 0 ? a3 : a3 & 1073741824 ? 1073741824 : 0; 1354 } 1355 function yc() { 1356 var a3 = rc; 1357 return rc <<= 1, (rc & 4194240) === 0 && (rc = 64), a3; 1358 } 1359 function zc(a3) { 1360 for (var b = [], c = 0; 31 > c; c++) b.push(a3); 1361 return b; 1362 } 1363 function Ac(a3, b, c) { 1364 a3.pendingLanes |= b, b !== 536870912 && (a3.suspendedLanes = 0, a3.pingedLanes = 0), a3 = a3.eventTimes, b = 31 - oc(b), a3[b] = c; 1365 } 1366 function Bc(a3, b) { 1367 var c = a3.pendingLanes & ~b; 1368 a3.pendingLanes = b, a3.suspendedLanes = 0, a3.pingedLanes = 0, a3.expiredLanes &= b, a3.mutableReadLanes &= b, a3.entangledLanes &= b, b = a3.entanglements; 1369 var d = a3.eventTimes; 1370 for (a3 = a3.expirationTimes; 0 < c; ) { 1371 var e = 31 - oc(c), f4 = 1 << e; 1372 b[e] = 0, d[e] = -1, a3[e] = -1, c &= ~f4; 1373 } 1374 } 1375 function Cc(a3, b) { 1376 var c = a3.entangledLanes |= b; 1377 for (a3 = a3.entanglements; c; ) { 1378 var d = 31 - oc(c), e = 1 << d; 1379 e & b | a3[d] & b && (a3[d] |= b), c &= ~e; 1380 } 1381 } 1382 var C3 = 0; 1383 function Dc(a3) { 1384 return a3 &= -a3, 1 < a3 ? 4 < a3 ? (a3 & 268435455) !== 0 ? 16 : 536870912 : 4 : 1; 1385 } 1386 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(" "); 1387 function Sc(a3, b) { 1388 switch (a3) { 1389 case "focusin": 1390 case "focusout": 1391 Lc = null; 1392 break; 1393 case "dragenter": 1394 case "dragleave": 1395 Mc = null; 1396 break; 1397 case "mouseover": 1398 case "mouseout": 1399 Nc = null; 1400 break; 1401 case "pointerover": 1402 case "pointerout": 1403 Oc.delete(b.pointerId); 1404 break; 1405 case "gotpointercapture": 1406 case "lostpointercapture": 1407 Pc.delete(b.pointerId); 1408 } 1409 } 1410 function Tc(a3, b, c, d, e, f4) { 1411 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); 1412 } 1413 function Uc(a3, b, c, d, e) { 1414 switch (b) { 1415 case "focusin": 1416 return Lc = Tc(Lc, a3, b, c, d, e), !0; 1417 case "dragenter": 1418 return Mc = Tc(Mc, a3, b, c, d, e), !0; 1419 case "mouseover": 1420 return Nc = Tc(Nc, a3, b, c, d, e), !0; 1421 case "pointerover": 1422 var f4 = e.pointerId; 1423 return Oc.set(f4, Tc(Oc.get(f4) || null, a3, b, c, d, e)), !0; 1424 case "gotpointercapture": 1425 return f4 = e.pointerId, Pc.set(f4, Tc(Pc.get(f4) || null, a3, b, c, d, e)), !0; 1426 } 1427 return !1; 1428 } 1429 function Vc(a3) { 1430 var b = Wc(a3.target); 1431 if (b !== null) { 1432 var c = Vb(b); 1433 if (c !== null) { 1434 if (b = c.tag, b === 13) { 1435 if (b = Wb(c), b !== null) { 1436 a3.blockedOn = b, Ic(a3.priority, function() { 1437 Gc(c); 1438 }); 1439 return; 1440 } 1441 } else if (b === 3 && c.stateNode.current.memoizedState.isDehydrated) { 1442 a3.blockedOn = c.tag === 3 ? c.stateNode.containerInfo : null; 1443 return; 1444 } 1445 } 1446 } 1447 a3.blockedOn = null; 1448 } 1449 function Xc(a3) { 1450 if (a3.blockedOn !== null) return !1; 1451 for (var b = a3.targetContainers; 0 < b.length; ) { 1452 var c = Yc(a3.domEventName, a3.eventSystemFlags, b[0], a3.nativeEvent); 1453 if (c === null) { 1454 c = a3.nativeEvent; 1455 var d = new c.constructor(c.type, c); 1456 wb = d, c.target.dispatchEvent(d), wb = null; 1457 } else return b = Cb(c), b !== null && Fc(b), a3.blockedOn = c, !1; 1458 b.shift(); 1459 } 1460 return !0; 1461 } 1462 function Zc(a3, b, c) { 1463 Xc(a3) && c.delete(b); 1464 } 1465 function $c() { 1466 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); 1467 } 1468 function ad(a3, b) { 1469 a3.blockedOn === b && (a3.blockedOn = null, Jc || (Jc = !0, ca.unstable_scheduleCallback(ca.unstable_NormalPriority, $c))); 1470 } 1471 function bd(a3) { 1472 function b(b2) { 1473 return ad(b2, a3); 1474 } 1475 if (0 < Kc.length) { 1476 ad(Kc[0], a3); 1477 for (var c = 1; c < Kc.length; c++) { 1478 var d = Kc[c]; 1479 d.blockedOn === a3 && (d.blockedOn = null); 1480 } 1481 } 1482 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); 1483 for (; 0 < Qc.length && (c = Qc[0], c.blockedOn === null); ) Vc(c), c.blockedOn === null && Qc.shift(); 1484 } 1485 var cd = ua.ReactCurrentBatchConfig, dd = !0; 1486 function ed(a3, b, c, d) { 1487 var e = C3, f4 = cd.transition; 1488 cd.transition = null; 1489 try { 1490 C3 = 1, fd(a3, b, c, d); 1491 } finally { 1492 C3 = e, cd.transition = f4; 1493 } 1494 } 1495 function gd(a3, b, c, d) { 1496 var e = C3, f4 = cd.transition; 1497 cd.transition = null; 1498 try { 1499 C3 = 4, fd(a3, b, c, d); 1500 } finally { 1501 C3 = e, cd.transition = f4; 1502 } 1503 } 1504 function fd(a3, b, c, d) { 1505 if (dd) { 1506 var e = Yc(a3, b, c, d); 1507 if (e === null) hd(a3, b, d, id, c), Sc(a3, d); 1508 else if (Uc(e, a3, b, c, d)) d.stopPropagation(); 1509 else if (Sc(a3, d), b & 4 && -1 < Rc.indexOf(a3)) { 1510 for (; e !== null; ) { 1511 var f4 = Cb(e); 1512 if (f4 !== null && Ec(f4), f4 = Yc(a3, b, c, d), f4 === null && hd(a3, b, d, id, c), f4 === e) break; 1513 e = f4; 1514 } 1515 e !== null && d.stopPropagation(); 1516 } else hd(a3, b, d, null, c); 1517 } 1518 } 1519 var id = null; 1520 function Yc(a3, b, c, d) { 1521 if (id = null, a3 = xb(d), a3 = Wc(a3), a3 !== null) if (b = Vb(a3), b === null) a3 = null; 1522 else if (c = b.tag, c === 13) { 1523 if (a3 = Wb(b), a3 !== null) return a3; 1524 a3 = null; 1525 } else if (c === 3) { 1526 if (b.stateNode.current.memoizedState.isDehydrated) return b.tag === 3 ? b.stateNode.containerInfo : null; 1527 a3 = null; 1528 } else b !== a3 && (a3 = null); 1529 return id = a3, null; 1530 } 1531 function jd(a3) { 1532 switch (a3) { 1533 case "cancel": 1534 case "click": 1535 case "close": 1536 case "contextmenu": 1537 case "copy": 1538 case "cut": 1539 case "auxclick": 1540 case "dblclick": 1541 case "dragend": 1542 case "dragstart": 1543 case "drop": 1544 case "focusin": 1545 case "focusout": 1546 case "input": 1547 case "invalid": 1548 case "keydown": 1549 case "keypress": 1550 case "keyup": 1551 case "mousedown": 1552 case "mouseup": 1553 case "paste": 1554 case "pause": 1555 case "play": 1556 case "pointercancel": 1557 case "pointerdown": 1558 case "pointerup": 1559 case "ratechange": 1560 case "reset": 1561 case "resize": 1562 case "seeked": 1563 case "submit": 1564 case "touchcancel": 1565 case "touchend": 1566 case "touchstart": 1567 case "volumechange": 1568 case "change": 1569 case "selectionchange": 1570 case "textInput": 1571 case "compositionstart": 1572 case "compositionend": 1573 case "compositionupdate": 1574 case "beforeblur": 1575 case "afterblur": 1576 case "beforeinput": 1577 case "blur": 1578 case "fullscreenchange": 1579 case "focus": 1580 case "hashchange": 1581 case "popstate": 1582 case "select": 1583 case "selectstart": 1584 return 1; 1585 case "drag": 1586 case "dragenter": 1587 case "dragexit": 1588 case "dragleave": 1589 case "dragover": 1590 case "mousemove": 1591 case "mouseout": 1592 case "mouseover": 1593 case "pointermove": 1594 case "pointerout": 1595 case "pointerover": 1596 case "scroll": 1597 case "toggle": 1598 case "touchmove": 1599 case "wheel": 1600 case "mouseenter": 1601 case "mouseleave": 1602 case "pointerenter": 1603 case "pointerleave": 1604 return 4; 1605 case "message": 1606 switch (ec()) { 1607 case fc: 1608 return 1; 1609 case gc: 1610 return 4; 1611 case hc: 1612 case ic: 1613 return 16; 1614 case jc: 1615 return 536870912; 1616 default: 1617 return 16; 1618 } 1619 default: 1620 return 16; 1621 } 1622 } 1623 var kd = null, ld = null, md = null; 1624 function nd() { 1625 if (md) return md; 1626 var a3, b = ld, c = b.length, d, e = "value" in kd ? kd.value : kd.textContent, f4 = e.length; 1627 for (a3 = 0; a3 < c && b[a3] === e[a3]; a3++) ; 1628 var g2 = c - a3; 1629 for (d = 1; d <= g2 && b[c - d] === e[f4 - d]; d++) ; 1630 return md = e.slice(a3, 1 < d ? 1 - d : void 0); 1631 } 1632 function od(a3) { 1633 var b = a3.keyCode; 1634 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; 1635 } 1636 function pd() { 1637 return !0; 1638 } 1639 function qd() { 1640 return !1; 1641 } 1642 function rd(a3) { 1643 function b(b2, d, e, f4, g2) { 1644 this._reactName = b2, this._targetInst = e, this.type = d, this.nativeEvent = f4, this.target = g2, this.currentTarget = null; 1645 for (var c in a3) a3.hasOwnProperty(c) && (b2 = a3[c], this[c] = b2 ? b2(f4) : f4[c]); 1646 return this.isDefaultPrevented = (f4.defaultPrevented != null ? f4.defaultPrevented : f4.returnValue === !1) ? pd : qd, this.isPropagationStopped = qd, this; 1647 } 1648 return A3(b.prototype, { preventDefault: function() { 1649 this.defaultPrevented = !0; 1650 var a4 = this.nativeEvent; 1651 a4 && (a4.preventDefault ? a4.preventDefault() : typeof a4.returnValue != "unknown" && (a4.returnValue = !1), this.isDefaultPrevented = pd); 1652 }, stopPropagation: function() { 1653 var a4 = this.nativeEvent; 1654 a4 && (a4.stopPropagation ? a4.stopPropagation() : typeof a4.cancelBubble != "unknown" && (a4.cancelBubble = !0), this.isPropagationStopped = pd); 1655 }, persist: function() { 1656 }, isPersistent: pd }), b; 1657 } 1658 var sd = { eventPhase: 0, bubbles: 0, cancelable: 0, timeStamp: function(a3) { 1659 return a3.timeStamp || Date.now(); 1660 }, 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) { 1661 return a3.relatedTarget === void 0 ? a3.fromElement === a3.srcElement ? a3.toElement : a3.fromElement : a3.relatedTarget; 1662 }, movementX: function(a3) { 1663 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); 1664 }, movementY: function(a3) { 1665 return "movementY" in a3 ? a3.movementY : xd; 1666 } }), 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) { 1667 return "clipboardData" in a3 ? a3.clipboardData : window.clipboardData; 1668 } }), Jd = rd(Id), Kd = A3({}, sd, { data: 0 }), Ld = rd(Kd), Md = { 1669 Esc: "Escape", 1670 Spacebar: " ", 1671 Left: "ArrowLeft", 1672 Up: "ArrowUp", 1673 Right: "ArrowRight", 1674 Down: "ArrowDown", 1675 Del: "Delete", 1676 Win: "OS", 1677 Menu: "ContextMenu", 1678 Apps: "ContextMenu", 1679 Scroll: "ScrollLock", 1680 MozPrintableKey: "Unidentified" 1681 }, Nd = { 1682 8: "Backspace", 1683 9: "Tab", 1684 12: "Clear", 1685 13: "Enter", 1686 16: "Shift", 1687 17: "Control", 1688 18: "Alt", 1689 19: "Pause", 1690 20: "CapsLock", 1691 27: "Escape", 1692 32: " ", 1693 33: "PageUp", 1694 34: "PageDown", 1695 35: "End", 1696 36: "Home", 1697 37: "ArrowLeft", 1698 38: "ArrowUp", 1699 39: "ArrowRight", 1700 40: "ArrowDown", 1701 45: "Insert", 1702 46: "Delete", 1703 112: "F1", 1704 113: "F2", 1705 114: "F3", 1706 115: "F4", 1707 116: "F5", 1708 117: "F6", 1709 118: "F7", 1710 119: "F8", 1711 120: "F9", 1712 121: "F10", 1713 122: "F11", 1714 123: "F12", 1715 144: "NumLock", 1716 145: "ScrollLock", 1717 224: "Meta" 1718 }, Od = { Alt: "altKey", Control: "ctrlKey", Meta: "metaKey", Shift: "shiftKey" }; 1719 function Pd(a3) { 1720 var b = this.nativeEvent; 1721 return b.getModifierState ? b.getModifierState(a3) : (a3 = Od[a3]) ? !!b[a3] : !1; 1722 } 1723 function zd() { 1724 return Pd; 1725 } 1726 var Qd = A3({}, ud, { key: function(a3) { 1727 if (a3.key) { 1728 var b = Md[a3.key] || a3.key; 1729 if (b !== "Unidentified") return b; 1730 } 1731 return a3.type === "keypress" ? (a3 = od(a3), a3 === 13 ? "Enter" : String.fromCharCode(a3)) : a3.type === "keydown" || a3.type === "keyup" ? Nd[a3.keyCode] || "Unidentified" : ""; 1732 }, code: 0, location: 0, ctrlKey: 0, shiftKey: 0, altKey: 0, metaKey: 0, repeat: 0, locale: 0, getModifierState: zd, charCode: function(a3) { 1733 return a3.type === "keypress" ? od(a3) : 0; 1734 }, keyCode: function(a3) { 1735 return a3.type === "keydown" || a3.type === "keyup" ? a3.keyCode : 0; 1736 }, which: function(a3) { 1737 return a3.type === "keypress" ? od(a3) : a3.type === "keydown" || a3.type === "keyup" ? a3.keyCode : 0; 1738 } }), 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, { 1739 deltaX: function(a3) { 1740 return "deltaX" in a3 ? a3.deltaX : "wheelDeltaX" in a3 ? -a3.wheelDeltaX : 0; 1741 }, 1742 deltaY: function(a3) { 1743 return "deltaY" in a3 ? a3.deltaY : "wheelDeltaY" in a3 ? -a3.wheelDeltaY : "wheelDelta" in a3 ? -a3.wheelDelta : 0; 1744 }, 1745 deltaZ: 0, 1746 deltaMode: 0 1747 }), Zd = rd(Yd), $d = [9, 13, 27, 32], ae = ia && "CompositionEvent" in window, be = null; 1748 ia && "documentMode" in document && (be = document.documentMode); 1749 var ce = ia && "TextEvent" in window && !be, de = ia && (!ae || be && 8 < be && 11 >= be), ee = " ", fe = !1; 1750 function ge(a3, b) { 1751 switch (a3) { 1752 case "keyup": 1753 return $d.indexOf(b.keyCode) !== -1; 1754 case "keydown": 1755 return b.keyCode !== 229; 1756 case "keypress": 1757 case "mousedown": 1758 case "focusout": 1759 return !0; 1760 default: 1761 return !1; 1762 } 1763 } 1764 function he(a3) { 1765 return a3 = a3.detail, typeof a3 == "object" && "data" in a3 ? a3.data : null; 1766 } 1767 var ie = !1; 1768 function je(a3, b) { 1769 switch (a3) { 1770 case "compositionend": 1771 return he(b); 1772 case "keypress": 1773 return b.which !== 32 ? null : (fe = !0, ee); 1774 case "textInput": 1775 return a3 = b.data, a3 === ee && fe ? null : a3; 1776 default: 1777 return null; 1778 } 1779 } 1780 function ke(a3, b) { 1781 if (ie) return a3 === "compositionend" || !ae && ge(a3, b) ? (a3 = nd(), md = ld = kd = null, ie = !1, a3) : null; 1782 switch (a3) { 1783 case "paste": 1784 return null; 1785 case "keypress": 1786 if (!(b.ctrlKey || b.altKey || b.metaKey) || b.ctrlKey && b.altKey) { 1787 if (b.char && 1 < b.char.length) return b.char; 1788 if (b.which) return String.fromCharCode(b.which); 1789 } 1790 return null; 1791 case "compositionend": 1792 return de && b.locale !== "ko" ? null : b.data; 1793 default: 1794 return null; 1795 } 1796 } 1797 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 }; 1798 function me(a3) { 1799 var b = a3 && a3.nodeName && a3.nodeName.toLowerCase(); 1800 return b === "input" ? !!le[a3.type] : b === "textarea"; 1801 } 1802 function ne(a3, b, c, d) { 1803 Eb(d), b = oe(b, "onChange"), 0 < b.length && (c = new td("onChange", "change", null, c, d), a3.push({ event: c, listeners: b })); 1804 } 1805 var pe = null, qe = null; 1806 function re(a3) { 1807 se(a3, 0); 1808 } 1809 function te(a3) { 1810 var b = ue(a3); 1811 if (Wa(b)) return a3; 1812 } 1813 function ve(a3, b) { 1814 if (a3 === "change") return b; 1815 } 1816 var we = !1; 1817 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)); 1818 var xe, ye, ze; 1819 function Ae() { 1820 pe && (pe.detachEvent("onpropertychange", Be), qe = pe = null); 1821 } 1822 function Be(a3) { 1823 if (a3.propertyName === "value" && te(qe)) { 1824 var b = []; 1825 ne(b, qe, a3, xb(a3)), Jb(re, b); 1826 } 1827 } 1828 function Ce(a3, b, c) { 1829 a3 === "focusin" ? (Ae(), pe = b, qe = c, pe.attachEvent("onpropertychange", Be)) : a3 === "focusout" && Ae(); 1830 } 1831 function De(a3) { 1832 if (a3 === "selectionchange" || a3 === "keyup" || a3 === "keydown") return te(qe); 1833 } 1834 function Ee(a3, b) { 1835 if (a3 === "click") return te(b); 1836 } 1837 function Fe(a3, b) { 1838 if (a3 === "input" || a3 === "change") return te(b); 1839 } 1840 function Ge(a3, b) { 1841 return a3 === b && (a3 !== 0 || 1 / a3 === 1 / b) || a3 !== a3 && b !== b; 1842 } 1843 var He = typeof Object.is == "function" ? Object.is : Ge; 1844 function Ie(a3, b) { 1845 if (He(a3, b)) return !0; 1846 if (typeof a3 != "object" || a3 === null || typeof b != "object" || b === null) return !1; 1847 var c = Object.keys(a3), d = Object.keys(b); 1848 if (c.length !== d.length) return !1; 1849 for (d = 0; d < c.length; d++) { 1850 var e = c[d]; 1851 if (!ja.call(b, e) || !He(a3[e], b[e])) return !1; 1852 } 1853 return !0; 1854 } 1855 function Je(a3) { 1856 for (; a3 && a3.firstChild; ) a3 = a3.firstChild; 1857 return a3; 1858 } 1859 function Ke(a3, b) { 1860 var c = Je(a3); 1861 a3 = 0; 1862 for (var d; c; ) { 1863 if (c.nodeType === 3) { 1864 if (d = a3 + c.textContent.length, a3 <= b && d >= b) return { node: c, offset: b - a3 }; 1865 a3 = d; 1866 } 1867 a: { 1868 for (; c; ) { 1869 if (c.nextSibling) { 1870 c = c.nextSibling; 1871 break a; 1872 } 1873 c = c.parentNode; 1874 } 1875 c = void 0; 1876 } 1877 c = Je(c); 1878 } 1879 } 1880 function Le(a3, b) { 1881 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; 1882 } 1883 function Me() { 1884 for (var a3 = window, b = Xa(); b instanceof a3.HTMLIFrameElement; ) { 1885 try { 1886 var c = typeof b.contentWindow.location.href == "string"; 1887 } catch { 1888 c = !1; 1889 } 1890 if (c) a3 = b.contentWindow; 1891 else break; 1892 b = Xa(a3.document); 1893 } 1894 return b; 1895 } 1896 function Ne(a3) { 1897 var b = a3 && a3.nodeName && a3.nodeName.toLowerCase(); 1898 return b && (b === "input" && (a3.type === "text" || a3.type === "search" || a3.type === "tel" || a3.type === "url" || a3.type === "password") || b === "textarea" || a3.contentEditable === "true"); 1899 } 1900 function Oe(a3) { 1901 var b = Me(), c = a3.focusedElem, d = a3.selectionRange; 1902 if (b !== c && c && c.ownerDocument && Le(c.ownerDocument.documentElement, c)) { 1903 if (d !== null && Ne(c)) { 1904 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); 1905 else if (a3 = (b = c.ownerDocument || document) && b.defaultView || window, a3.getSelection) { 1906 a3 = a3.getSelection(); 1907 var e = c.textContent.length, f4 = Math.min(d.start, e); 1908 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); 1909 var g2 = Ke( 1910 c, 1911 d 1912 ); 1913 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))); 1914 } 1915 } 1916 for (b = [], a3 = c; a3 = a3.parentNode; ) a3.nodeType === 1 && b.push({ element: a3, left: a3.scrollLeft, top: a3.scrollTop }); 1917 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; 1918 } 1919 } 1920 var Pe = ia && "documentMode" in document && 11 >= document.documentMode, Qe = null, Re = null, Se = null, Te = !1; 1921 function Ue(a3, b, c) { 1922 var d = c.window === c ? c.document : c.nodeType === 9 ? c : c.ownerDocument; 1923 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))); 1924 } 1925 function Ve(a3, b) { 1926 var c = {}; 1927 return c[a3.toLowerCase()] = b.toLowerCase(), c["Webkit" + a3] = "webkit" + b, c["Moz" + a3] = "moz" + b, c; 1928 } 1929 var We = { animationend: Ve("Animation", "AnimationEnd"), animationiteration: Ve("Animation", "AnimationIteration"), animationstart: Ve("Animation", "AnimationStart"), transitionend: Ve("Transition", "TransitionEnd") }, Xe = {}, Ye = {}; 1930 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); 1931 function Ze(a3) { 1932 if (Xe[a3]) return Xe[a3]; 1933 if (!We[a3]) return a3; 1934 var b = We[a3], c; 1935 for (c in b) if (b.hasOwnProperty(c) && c in Ye) return Xe[a3] = b[c]; 1936 return a3; 1937 } 1938 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(" "); 1939 function ff(a3, b) { 1940 df.set(a3, b), fa(b, [a3]); 1941 } 1942 for (gf = 0; gf < ef.length; gf++) 1943 hf = ef[gf], jf = hf.toLowerCase(), kf = hf[0].toUpperCase() + hf.slice(1), ff(jf, "on" + kf); 1944 var hf, jf, kf, gf; 1945 ff($e, "onAnimationEnd"); 1946 ff(af, "onAnimationIteration"); 1947 ff(bf, "onAnimationStart"); 1948 ff("dblclick", "onDoubleClick"); 1949 ff("focusin", "onFocus"); 1950 ff("focusout", "onBlur"); 1951 ff(cf, "onTransitionEnd"); 1952 ha("onMouseEnter", ["mouseout", "mouseover"]); 1953 ha("onMouseLeave", ["mouseout", "mouseover"]); 1954 ha("onPointerEnter", ["pointerout", "pointerover"]); 1955 ha("onPointerLeave", ["pointerout", "pointerover"]); 1956 fa("onChange", "change click focusin focusout input keydown keyup selectionchange".split(" ")); 1957 fa("onSelect", "focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")); 1958 fa("onBeforeInput", ["compositionend", "keypress", "textInput", "paste"]); 1959 fa("onCompositionEnd", "compositionend focusout keydown keypress keyup mousedown".split(" ")); 1960 fa("onCompositionStart", "compositionstart focusout keydown keypress keyup mousedown".split(" ")); 1961 fa("onCompositionUpdate", "compositionupdate focusout keydown keypress keyup mousedown".split(" ")); 1962 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)); 1963 function nf(a3, b, c) { 1964 var d = a3.type || "unknown-event"; 1965 a3.currentTarget = c, Ub(d, b, void 0, a3), a3.currentTarget = null; 1966 } 1967 function se(a3, b) { 1968 b = (b & 4) !== 0; 1969 for (var c = 0; c < a3.length; c++) { 1970 var d = a3[c], e = d.event; 1971 d = d.listeners; 1972 a: { 1973 var f4 = void 0; 1974 if (b) for (var g2 = d.length - 1; 0 <= g2; g2--) { 1975 var h3 = d[g2], k = h3.instance, l = h3.currentTarget; 1976 if (h3 = h3.listener, k !== f4 && e.isPropagationStopped()) break a; 1977 nf(e, h3, l), f4 = k; 1978 } 1979 else for (g2 = 0; g2 < d.length; g2++) { 1980 if (h3 = d[g2], k = h3.instance, l = h3.currentTarget, h3 = h3.listener, k !== f4 && e.isPropagationStopped()) break a; 1981 nf(e, h3, l), f4 = k; 1982 } 1983 } 1984 } 1985 if (Qb) throw a3 = Rb, Qb = !1, Rb = null, a3; 1986 } 1987 function D(a3, b) { 1988 var c = b[of]; 1989 c === void 0 && (c = b[of] = /* @__PURE__ */ new Set()); 1990 var d = a3 + "__bubble"; 1991 c.has(d) || (pf(b, a3, 2, !1), c.add(d)); 1992 } 1993 function qf(a3, b, c) { 1994 var d = 0; 1995 b && (d |= 4), pf(c, a3, d, b); 1996 } 1997 var rf = "_reactListening" + Math.random().toString(36).slice(2); 1998 function sf(a3) { 1999 if (!a3[rf]) { 2000 a3[rf] = !0, da.forEach(function(b2) { 2001 b2 !== "selectionchange" && (mf.has(b2) || qf(b2, !1, a3), qf(b2, !0, a3)); 2002 }); 2003 var b = a3.nodeType === 9 ? a3 : a3.ownerDocument; 2004 b === null || b[rf] || (b[rf] = !0, qf("selectionchange", !1, b)); 2005 } 2006 } 2007 function pf(a3, b, c, d) { 2008 switch (jd(b)) { 2009 case 1: 2010 var e = ed; 2011 break; 2012 case 4: 2013 e = gd; 2014 break; 2015 default: 2016 e = fd; 2017 } 2018 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); 2019 } 2020 function hd(a3, b, c, d, e) { 2021 var f4 = d; 2022 if ((b & 1) === 0 && (b & 2) === 0 && d !== null) a: for (; ; ) { 2023 if (d === null) return; 2024 var g2 = d.tag; 2025 if (g2 === 3 || g2 === 4) { 2026 var h3 = d.stateNode.containerInfo; 2027 if (h3 === e || h3.nodeType === 8 && h3.parentNode === e) break; 2028 if (g2 === 4) for (g2 = d.return; g2 !== null; ) { 2029 var k = g2.tag; 2030 if ((k === 3 || k === 4) && (k = g2.stateNode.containerInfo, k === e || k.nodeType === 8 && k.parentNode === e)) return; 2031 g2 = g2.return; 2032 } 2033 for (; h3 !== null; ) { 2034 if (g2 = Wc(h3), g2 === null) return; 2035 if (k = g2.tag, k === 5 || k === 6) { 2036 d = f4 = g2; 2037 continue a; 2038 } 2039 h3 = h3.parentNode; 2040 } 2041 } 2042 d = d.return; 2043 } 2044 Jb(function() { 2045 var d2 = f4, e2 = xb(c), g3 = []; 2046 a: { 2047 var h4 = df.get(a3); 2048 if (h4 !== void 0) { 2049 var k2 = td, n = a3; 2050 switch (a3) { 2051 case "keypress": 2052 if (od(c) === 0) break a; 2053 case "keydown": 2054 case "keyup": 2055 k2 = Rd; 2056 break; 2057 case "focusin": 2058 n = "focus", k2 = Fd; 2059 break; 2060 case "focusout": 2061 n = "blur", k2 = Fd; 2062 break; 2063 case "beforeblur": 2064 case "afterblur": 2065 k2 = Fd; 2066 break; 2067 case "click": 2068 if (c.button === 2) break a; 2069 case "auxclick": 2070 case "dblclick": 2071 case "mousedown": 2072 case "mousemove": 2073 case "mouseup": 2074 case "mouseout": 2075 case "mouseover": 2076 case "contextmenu": 2077 k2 = Bd; 2078 break; 2079 case "drag": 2080 case "dragend": 2081 case "dragenter": 2082 case "dragexit": 2083 case "dragleave": 2084 case "dragover": 2085 case "dragstart": 2086 case "drop": 2087 k2 = Dd; 2088 break; 2089 case "touchcancel": 2090 case "touchend": 2091 case "touchmove": 2092 case "touchstart": 2093 k2 = Vd; 2094 break; 2095 case $e: 2096 case af: 2097 case bf: 2098 k2 = Hd; 2099 break; 2100 case cf: 2101 k2 = Xd; 2102 break; 2103 case "scroll": 2104 k2 = vd; 2105 break; 2106 case "wheel": 2107 k2 = Zd; 2108 break; 2109 case "copy": 2110 case "cut": 2111 case "paste": 2112 k2 = Jd; 2113 break; 2114 case "gotpointercapture": 2115 case "lostpointercapture": 2116 case "pointercancel": 2117 case "pointerdown": 2118 case "pointermove": 2119 case "pointerout": 2120 case "pointerover": 2121 case "pointerup": 2122 k2 = Td; 2123 } 2124 var t = (b & 4) !== 0, J = !t && a3 === "scroll", x = t ? h4 !== null ? h4 + "Capture" : null : h4; 2125 t = []; 2126 for (var w = d2, u2; w !== null; ) { 2127 u2 = w; 2128 var F = u2.stateNode; 2129 if (u2.tag === 5 && F !== null && (u2 = F, x !== null && (F = Kb(w, x), F != null && t.push(tf(w, F, u2)))), J) break; 2130 w = w.return; 2131 } 2132 0 < t.length && (h4 = new k2(h4, n, null, c, e2), g3.push({ event: h4, listeners: t })); 2133 } 2134 } 2135 if ((b & 7) === 0) { 2136 a: { 2137 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; 2138 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)) { 2139 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: { 2140 for (t = k2, x = n, w = 0, u2 = t; u2; u2 = vf(u2)) w++; 2141 for (u2 = 0, F = x; F; F = vf(F)) u2++; 2142 for (; 0 < w - u2; ) t = vf(t), w--; 2143 for (; 0 < u2 - w; ) x = vf(x), u2--; 2144 for (; w--; ) { 2145 if (t === x || x !== null && t === x.alternate) break b; 2146 t = vf(t), x = vf(x); 2147 } 2148 t = null; 2149 } 2150 else t = null; 2151 k2 !== null && wf(g3, h4, k2, t, !1), n !== null && J !== null && wf(g3, J, n, t, !0); 2152 } 2153 } 2154 a: { 2155 if (h4 = d2 ? ue(d2) : window, k2 = h4.nodeName && h4.nodeName.toLowerCase(), k2 === "select" || k2 === "input" && h4.type === "file") var na = ve; 2156 else if (me(h4)) if (we) na = Fe; 2157 else { 2158 na = De; 2159 var xa = Ce; 2160 } 2161 else (k2 = h4.nodeName) && k2.toLowerCase() === "input" && (h4.type === "checkbox" || h4.type === "radio") && (na = Ee); 2162 if (na && (na = na(a3, d2))) { 2163 ne(g3, na, c, e2); 2164 break a; 2165 } 2166 xa && xa(a3, h4, d2), a3 === "focusout" && (xa = h4._wrapperState) && xa.controlled && h4.type === "number" && cb(h4, "number", h4.value); 2167 } 2168 switch (xa = d2 ? ue(d2) : window, a3) { 2169 case "focusin": 2170 (me(xa) || xa.contentEditable === "true") && (Qe = xa, Re = d2, Se = null); 2171 break; 2172 case "focusout": 2173 Se = Re = Qe = null; 2174 break; 2175 case "mousedown": 2176 Te = !0; 2177 break; 2178 case "contextmenu": 2179 case "mouseup": 2180 case "dragend": 2181 Te = !1, Ue(g3, c, e2); 2182 break; 2183 case "selectionchange": 2184 if (Pe) break; 2185 case "keydown": 2186 case "keyup": 2187 Ue(g3, c, e2); 2188 } 2189 var $a; 2190 if (ae) b: { 2191 switch (a3) { 2192 case "compositionstart": 2193 var ba = "onCompositionStart"; 2194 break b; 2195 case "compositionend": 2196 ba = "onCompositionEnd"; 2197 break b; 2198 case "compositionupdate": 2199 ba = "onCompositionUpdate"; 2200 break b; 2201 } 2202 ba = void 0; 2203 } 2204 else ie ? ge(a3, c) && (ba = "onCompositionEnd") : a3 === "keydown" && c.keyCode === 229 && (ba = "onCompositionStart"); 2205 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)); 2206 } 2207 se(g3, b); 2208 }); 2209 } 2210 function tf(a3, b, c) { 2211 return { instance: a3, listener: b, currentTarget: c }; 2212 } 2213 function oe(a3, b) { 2214 for (var c = b + "Capture", d = []; a3 !== null; ) { 2215 var e = a3, f4 = e.stateNode; 2216 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; 2217 } 2218 return d; 2219 } 2220 function vf(a3) { 2221 if (a3 === null) return null; 2222 do 2223 a3 = a3.return; 2224 while (a3 && a3.tag !== 5); 2225 return a3 || null; 2226 } 2227 function wf(a3, b, c, d, e) { 2228 for (var f4 = b._reactName, g2 = []; c !== null && c !== d; ) { 2229 var h3 = c, k = h3.alternate, l = h3.stateNode; 2230 if (k !== null && k === d) break; 2231 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; 2232 } 2233 g2.length !== 0 && a3.push({ event: b, listeners: g2 }); 2234 } 2235 var xf = /\r\n?/g, yf = /\u0000|\uFFFD/g; 2236 function zf(a3) { 2237 return (typeof a3 == "string" ? a3 : "" + a3).replace(xf, ` 2238`).replace(yf, ""); 2239 } 2240 function Af(a3, b, c) { 2241 if (b = zf(b), zf(a3) !== b && c) throw Error(p3(425)); 2242 } 2243 function Bf() { 2244 } 2245 var Cf = null, Df = null; 2246 function Ef(a3, b) { 2247 return a3 === "textarea" || a3 === "noscript" || typeof b.children == "string" || typeof b.children == "number" || typeof b.dangerouslySetInnerHTML == "object" && b.dangerouslySetInnerHTML !== null && b.dangerouslySetInnerHTML.__html != null; 2248 } 2249 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) { 2250 return Hf.resolve(null).then(a3).catch(If); 2251 } : Ff; 2252 function If(a3) { 2253 setTimeout(function() { 2254 throw a3; 2255 }); 2256 } 2257 function Kf(a3, b) { 2258 var c = b, d = 0; 2259 do { 2260 var e = c.nextSibling; 2261 if (a3.removeChild(c), e && e.nodeType === 8) if (c = e.data, c === "/$") { 2262 if (d === 0) { 2263 a3.removeChild(e), bd(b); 2264 return; 2265 } 2266 d--; 2267 } else c !== "$" && c !== "$?" && c !== "$!" || d++; 2268 c = e; 2269 } while (c); 2270 bd(b); 2271 } 2272 function Lf(a3) { 2273 for (; a3 != null; a3 = a3.nextSibling) { 2274 var b = a3.nodeType; 2275 if (b === 1 || b === 3) break; 2276 if (b === 8) { 2277 if (b = a3.data, b === "$" || b === "$!" || b === "$?") break; 2278 if (b === "/$") return null; 2279 } 2280 } 2281 return a3; 2282 } 2283 function Mf(a3) { 2284 a3 = a3.previousSibling; 2285 for (var b = 0; a3; ) { 2286 if (a3.nodeType === 8) { 2287 var c = a3.data; 2288 if (c === "$" || c === "$!" || c === "$?") { 2289 if (b === 0) return a3; 2290 b--; 2291 } else c === "/$" && b++; 2292 } 2293 a3 = a3.previousSibling; 2294 } 2295 return null; 2296 } 2297 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; 2298 function Wc(a3) { 2299 var b = a3[Of]; 2300 if (b) return b; 2301 for (var c = a3.parentNode; c; ) { 2302 if (b = c[uf] || c[Of]) { 2303 if (c = b.alternate, b.child !== null || c !== null && c.child !== null) for (a3 = Mf(a3); a3 !== null; ) { 2304 if (c = a3[Of]) return c; 2305 a3 = Mf(a3); 2306 } 2307 return b; 2308 } 2309 a3 = c, c = a3.parentNode; 2310 } 2311 return null; 2312 } 2313 function Cb(a3) { 2314 return a3 = a3[Of] || a3[uf], !a3 || a3.tag !== 5 && a3.tag !== 6 && a3.tag !== 13 && a3.tag !== 3 ? null : a3; 2315 } 2316 function ue(a3) { 2317 if (a3.tag === 5 || a3.tag === 6) return a3.stateNode; 2318 throw Error(p3(33)); 2319 } 2320 function Db(a3) { 2321 return a3[Pf] || null; 2322 } 2323 var Sf = [], Tf = -1; 2324 function Uf(a3) { 2325 return { current: a3 }; 2326 } 2327 function E(a3) { 2328 0 > Tf || (a3.current = Sf[Tf], Sf[Tf] = null, Tf--); 2329 } 2330 function G(a3, b) { 2331 Tf++, Sf[Tf] = a3.current, a3.current = b; 2332 } 2333 var Vf = {}, H = Uf(Vf), Wf = Uf(!1), Xf = Vf; 2334 function Yf(a3, b) { 2335 var c = a3.type.contextTypes; 2336 if (!c) return Vf; 2337 var d = a3.stateNode; 2338 if (d && d.__reactInternalMemoizedUnmaskedChildContext === b) return d.__reactInternalMemoizedMaskedChildContext; 2339 var e = {}, f4; 2340 for (f4 in c) e[f4] = b[f4]; 2341 return d && (a3 = a3.stateNode, a3.__reactInternalMemoizedUnmaskedChildContext = b, a3.__reactInternalMemoizedMaskedChildContext = e), e; 2342 } 2343 function Zf(a3) { 2344 return a3 = a3.childContextTypes, a3 != null; 2345 } 2346 function $f() { 2347 E(Wf), E(H); 2348 } 2349 function ag(a3, b, c) { 2350 if (H.current !== Vf) throw Error(p3(168)); 2351 G(H, b), G(Wf, c); 2352 } 2353 function bg(a3, b, c) { 2354 var d = a3.stateNode; 2355 if (b = b.childContextTypes, typeof d.getChildContext != "function") return c; 2356 d = d.getChildContext(); 2357 for (var e in d) if (!(e in b)) throw Error(p3(108, Ra(a3) || "Unknown", e)); 2358 return A3({}, c, d); 2359 } 2360 function cg(a3) { 2361 return a3 = (a3 = a3.stateNode) && a3.__reactInternalMemoizedMergedChildContext || Vf, Xf = H.current, G(H, a3), G(Wf, Wf.current), !0; 2362 } 2363 function dg(a3, b, c) { 2364 var d = a3.stateNode; 2365 if (!d) throw Error(p3(169)); 2366 c ? (a3 = bg(a3, b, Xf), d.__reactInternalMemoizedMergedChildContext = a3, E(Wf), E(H), G(H, a3)) : E(Wf), G(Wf, c); 2367 } 2368 var eg = null, fg = !1, gg = !1; 2369 function hg(a3) { 2370 eg === null ? eg = [a3] : eg.push(a3); 2371 } 2372 function ig(a3) { 2373 fg = !0, hg(a3); 2374 } 2375 function jg() { 2376 if (!gg && eg !== null) { 2377 gg = !0; 2378 var a3 = 0, b = C3; 2379 try { 2380 var c = eg; 2381 for (C3 = 1; a3 < c.length; a3++) { 2382 var d = c[a3]; 2383 do 2384 d = d(!0); 2385 while (d !== null); 2386 } 2387 eg = null, fg = !1; 2388 } catch (e) { 2389 throw eg !== null && (eg = eg.slice(a3 + 1)), ac(fc, jg), e; 2390 } finally { 2391 C3 = b, gg = !1; 2392 } 2393 } 2394 return null; 2395 } 2396 var kg = [], lg = 0, mg = null, ng = 0, og = [], pg = 0, qg = null, rg = 1, sg = ""; 2397 function tg(a3, b) { 2398 kg[lg++] = ng, kg[lg++] = mg, mg = a3, ng = b; 2399 } 2400 function ug(a3, b, c) { 2401 og[pg++] = rg, og[pg++] = sg, og[pg++] = qg, qg = a3; 2402 var d = rg; 2403 a3 = sg; 2404 var e = 32 - oc(d) - 1; 2405 d &= ~(1 << e), c += 1; 2406 var f4 = 32 - oc(b) + e; 2407 if (30 < f4) { 2408 var g2 = e - e % 5; 2409 f4 = (d & (1 << g2) - 1).toString(32), d >>= g2, e -= g2, rg = 1 << 32 - oc(b) + e | c << e | d, sg = f4 + a3; 2410 } else rg = 1 << f4 | c << e | d, sg = a3; 2411 } 2412 function vg(a3) { 2413 a3.return !== null && (tg(a3, 1), ug(a3, 1, 0)); 2414 } 2415 function wg(a3) { 2416 for (; a3 === mg; ) mg = kg[--lg], kg[lg] = null, ng = kg[--lg], kg[lg] = null; 2417 for (; a3 === qg; ) qg = og[--pg], og[pg] = null, sg = og[--pg], og[pg] = null, rg = og[--pg], og[pg] = null; 2418 } 2419 var xg = null, yg = null, I = !1, zg = null; 2420 function Ag(a3, b) { 2421 var c = Bg(5, null, null, 0); 2422 c.elementType = "DELETED", c.stateNode = b, c.return = a3, b = a3.deletions, b === null ? (a3.deletions = [c], a3.flags |= 16) : b.push(c); 2423 } 2424 function Cg(a3, b) { 2425 switch (a3.tag) { 2426 case 5: 2427 var c = a3.type; 2428 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; 2429 case 6: 2430 return b = a3.pendingProps === "" || b.nodeType !== 3 ? null : b, b !== null ? (a3.stateNode = b, xg = a3, yg = null, !0) : !1; 2431 case 13: 2432 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; 2433 default: 2434 return !1; 2435 } 2436 } 2437 function Dg(a3) { 2438 return (a3.mode & 1) !== 0 && (a3.flags & 128) === 0; 2439 } 2440 function Eg(a3) { 2441 if (I) { 2442 var b = yg; 2443 if (b) { 2444 var c = b; 2445 if (!Cg(a3, b)) { 2446 if (Dg(a3)) throw Error(p3(418)); 2447 b = Lf(c.nextSibling); 2448 var d = xg; 2449 b && Cg(a3, b) ? Ag(d, c) : (a3.flags = a3.flags & -4097 | 2, I = !1, xg = a3); 2450 } 2451 } else { 2452 if (Dg(a3)) throw Error(p3(418)); 2453 a3.flags = a3.flags & -4097 | 2, I = !1, xg = a3; 2454 } 2455 } 2456 } 2457 function Fg(a3) { 2458 for (a3 = a3.return; a3 !== null && a3.tag !== 5 && a3.tag !== 3 && a3.tag !== 13; ) a3 = a3.return; 2459 xg = a3; 2460 } 2461 function Gg(a3) { 2462 if (a3 !== xg) return !1; 2463 if (!I) return Fg(a3), I = !0, !1; 2464 var b; 2465 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)) { 2466 if (Dg(a3)) throw Hg(), Error(p3(418)); 2467 for (; b; ) Ag(a3, b), b = Lf(b.nextSibling); 2468 } 2469 if (Fg(a3), a3.tag === 13) { 2470 if (a3 = a3.memoizedState, a3 = a3 !== null ? a3.dehydrated : null, !a3) throw Error(p3(317)); 2471 a: { 2472 for (a3 = a3.nextSibling, b = 0; a3; ) { 2473 if (a3.nodeType === 8) { 2474 var c = a3.data; 2475 if (c === "/$") { 2476 if (b === 0) { 2477 yg = Lf(a3.nextSibling); 2478 break a; 2479 } 2480 b--; 2481 } else c !== "$" && c !== "$!" && c !== "$?" || b++; 2482 } 2483 a3 = a3.nextSibling; 2484 } 2485 yg = null; 2486 } 2487 } else yg = xg ? Lf(a3.stateNode.nextSibling) : null; 2488 return !0; 2489 } 2490 function Hg() { 2491 for (var a3 = yg; a3; ) a3 = Lf(a3.nextSibling); 2492 } 2493 function Ig() { 2494 yg = xg = null, I = !1; 2495 } 2496 function Jg(a3) { 2497 zg === null ? zg = [a3] : zg.push(a3); 2498 } 2499 var Kg = ua.ReactCurrentBatchConfig; 2500 function Lg(a3, b, c) { 2501 if (a3 = c.ref, a3 !== null && typeof a3 != "function" && typeof a3 != "object") { 2502 if (c._owner) { 2503 if (c = c._owner, c) { 2504 if (c.tag !== 1) throw Error(p3(309)); 2505 var d = c.stateNode; 2506 } 2507 if (!d) throw Error(p3(147, a3)); 2508 var e = d, f4 = "" + a3; 2509 return b !== null && b.ref !== null && typeof b.ref == "function" && b.ref._stringRef === f4 ? b.ref : (b = function(a4) { 2510 var b2 = e.refs; 2511 a4 === null ? delete b2[f4] : b2[f4] = a4; 2512 }, b._stringRef = f4, b); 2513 } 2514 if (typeof a3 != "string") throw Error(p3(284)); 2515 if (!c._owner) throw Error(p3(290, a3)); 2516 } 2517 return a3; 2518 } 2519 function Mg(a3, b) { 2520 throw a3 = Object.prototype.toString.call(b), Error(p3(31, a3 === "[object Object]" ? "object with keys {" + Object.keys(b).join(", ") + "}" : a3)); 2521 } 2522 function Ng(a3) { 2523 var b = a3._init; 2524 return b(a3._payload); 2525 } 2526 function Og(a3) { 2527 function b(b2, c2) { 2528 if (a3) { 2529 var d2 = b2.deletions; 2530 d2 === null ? (b2.deletions = [c2], b2.flags |= 16) : d2.push(c2); 2531 } 2532 } 2533 function c(c2, d2) { 2534 if (!a3) return null; 2535 for (; d2 !== null; ) b(c2, d2), d2 = d2.sibling; 2536 return null; 2537 } 2538 function d(a4, b2) { 2539 for (a4 = /* @__PURE__ */ new Map(); b2 !== null; ) b2.key !== null ? a4.set(b2.key, b2) : a4.set(b2.index, b2), b2 = b2.sibling; 2540 return a4; 2541 } 2542 function e(a4, b2) { 2543 return a4 = Pg(a4, b2), a4.index = 0, a4.sibling = null, a4; 2544 } 2545 function f4(b2, c2, d2) { 2546 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); 2547 } 2548 function g2(b2) { 2549 return a3 && b2.alternate === null && (b2.flags |= 2), b2; 2550 } 2551 function h3(a4, b2, c2, d2) { 2552 return b2 === null || b2.tag !== 6 ? (b2 = Qg(c2, a4.mode, d2), b2.return = a4, b2) : (b2 = e(b2, c2), b2.return = a4, b2); 2553 } 2554 function k(a4, b2, c2, d2) { 2555 var f5 = c2.type; 2556 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); 2557 } 2558 function l(a4, b2, c2, d2) { 2559 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); 2560 } 2561 function m3(a4, b2, c2, d2, f5) { 2562 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); 2563 } 2564 function q(a4, b2, c2) { 2565 if (typeof b2 == "string" && b2 !== "" || typeof b2 == "number") return b2 = Qg("" + b2, a4.mode, c2), b2.return = a4, b2; 2566 if (typeof b2 == "object" && b2 !== null) { 2567 switch (b2.$$typeof) { 2568 case va: 2569 return c2 = Rg(b2.type, b2.key, b2.props, null, a4.mode, c2), c2.ref = Lg(a4, null, b2), c2.return = a4, c2; 2570 case wa: 2571 return b2 = Sg(b2, a4.mode, c2), b2.return = a4, b2; 2572 case Ha: 2573 var d2 = b2._init; 2574 return q(a4, d2(b2._payload), c2); 2575 } 2576 if (eb(b2) || Ka(b2)) return b2 = Tg(b2, a4.mode, c2, null), b2.return = a4, b2; 2577 Mg(a4, b2); 2578 } 2579 return null; 2580 } 2581 function r2(a4, b2, c2, d2) { 2582 var e2 = b2 !== null ? b2.key : null; 2583 if (typeof c2 == "string" && c2 !== "" || typeof c2 == "number") return e2 !== null ? null : h3(a4, b2, "" + c2, d2); 2584 if (typeof c2 == "object" && c2 !== null) { 2585 switch (c2.$$typeof) { 2586 case va: 2587 return c2.key === e2 ? k(a4, b2, c2, d2) : null; 2588 case wa: 2589 return c2.key === e2 ? l(a4, b2, c2, d2) : null; 2590 case Ha: 2591 return e2 = c2._init, r2( 2592 a4, 2593 b2, 2594 e2(c2._payload), 2595 d2 2596 ); 2597 } 2598 if (eb(c2) || Ka(c2)) return e2 !== null ? null : m3(a4, b2, c2, d2, null); 2599 Mg(a4, c2); 2600 } 2601 return null; 2602 } 2603 function y(a4, b2, c2, d2, e2) { 2604 if (typeof d2 == "string" && d2 !== "" || typeof d2 == "number") return a4 = a4.get(c2) || null, h3(b2, a4, "" + d2, e2); 2605 if (typeof d2 == "object" && d2 !== null) { 2606 switch (d2.$$typeof) { 2607 case va: 2608 return a4 = a4.get(d2.key === null ? c2 : d2.key) || null, k(b2, a4, d2, e2); 2609 case wa: 2610 return a4 = a4.get(d2.key === null ? c2 : d2.key) || null, l(b2, a4, d2, e2); 2611 case Ha: 2612 var f5 = d2._init; 2613 return y(a4, b2, c2, f5(d2._payload), e2); 2614 } 2615 if (eb(d2) || Ka(d2)) return a4 = a4.get(c2) || null, m3(b2, a4, d2, e2, null); 2616 Mg(b2, d2); 2617 } 2618 return null; 2619 } 2620 function n(e2, g3, h4, k2) { 2621 for (var l2 = null, m4 = null, u2 = g3, w = g3 = 0, x = null; u2 !== null && w < h4.length; w++) { 2622 u2.index > w ? (x = u2, u2 = null) : x = u2.sibling; 2623 var n2 = r2(e2, u2, h4[w], k2); 2624 if (n2 === null) { 2625 u2 === null && (u2 = x); 2626 break; 2627 } 2628 a3 && u2 && n2.alternate === null && b(e2, u2), g3 = f4(n2, g3, w), m4 === null ? l2 = n2 : m4.sibling = n2, m4 = n2, u2 = x; 2629 } 2630 if (w === h4.length) return c(e2, u2), I && tg(e2, w), l2; 2631 if (u2 === null) { 2632 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); 2633 return I && tg(e2, w), l2; 2634 } 2635 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); 2636 return a3 && u2.forEach(function(a4) { 2637 return b(e2, a4); 2638 }), I && tg(e2, w), l2; 2639 } 2640 function t(e2, g3, h4, k2) { 2641 var l2 = Ka(h4); 2642 if (typeof l2 != "function") throw Error(p3(150)); 2643 if (h4 = l2.call(h4), h4 == null) throw Error(p3(151)); 2644 for (var u2 = l2 = null, m4 = g3, w = g3 = 0, x = null, n2 = h4.next(); m4 !== null && !n2.done; w++, n2 = h4.next()) { 2645 m4.index > w ? (x = m4, m4 = null) : x = m4.sibling; 2646 var t2 = r2(e2, m4, n2.value, k2); 2647 if (t2 === null) { 2648 m4 === null && (m4 = x); 2649 break; 2650 } 2651 a3 && m4 && t2.alternate === null && b(e2, m4), g3 = f4(t2, g3, w), u2 === null ? l2 = t2 : u2.sibling = t2, u2 = t2, m4 = x; 2652 } 2653 if (n2.done) return c( 2654 e2, 2655 m4 2656 ), I && tg(e2, w), l2; 2657 if (m4 === null) { 2658 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); 2659 return I && tg(e2, w), l2; 2660 } 2661 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); 2662 return a3 && m4.forEach(function(a4) { 2663 return b(e2, a4); 2664 }), I && tg(e2, w), l2; 2665 } 2666 function J(a4, d2, f5, h4) { 2667 if (typeof f5 == "object" && f5 !== null && f5.type === ya && f5.key === null && (f5 = f5.props.children), typeof f5 == "object" && f5 !== null) { 2668 switch (f5.$$typeof) { 2669 case va: 2670 a: { 2671 for (var k2 = f5.key, l2 = d2; l2 !== null; ) { 2672 if (l2.key === k2) { 2673 if (k2 = f5.type, k2 === ya) { 2674 if (l2.tag === 7) { 2675 c(a4, l2.sibling), d2 = e(l2, f5.props.children), d2.return = a4, a4 = d2; 2676 break a; 2677 } 2678 } else if (l2.elementType === k2 || typeof k2 == "object" && k2 !== null && k2.$$typeof === Ha && Ng(k2) === l2.type) { 2679 c(a4, l2.sibling), d2 = e(l2, f5.props), d2.ref = Lg(a4, l2, f5), d2.return = a4, a4 = d2; 2680 break a; 2681 } 2682 c(a4, l2); 2683 break; 2684 } else b(a4, l2); 2685 l2 = l2.sibling; 2686 } 2687 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); 2688 } 2689 return g2(a4); 2690 case wa: 2691 a: { 2692 for (l2 = f5.key; d2 !== null; ) { 2693 if (d2.key === l2) if (d2.tag === 4 && d2.stateNode.containerInfo === f5.containerInfo && d2.stateNode.implementation === f5.implementation) { 2694 c(a4, d2.sibling), d2 = e(d2, f5.children || []), d2.return = a4, a4 = d2; 2695 break a; 2696 } else { 2697 c(a4, d2); 2698 break; 2699 } 2700 else b(a4, d2); 2701 d2 = d2.sibling; 2702 } 2703 d2 = Sg(f5, a4.mode, h4), d2.return = a4, a4 = d2; 2704 } 2705 return g2(a4); 2706 case Ha: 2707 return l2 = f5._init, J(a4, d2, l2(f5._payload), h4); 2708 } 2709 if (eb(f5)) return n(a4, d2, f5, h4); 2710 if (Ka(f5)) return t(a4, d2, f5, h4); 2711 Mg(a4, f5); 2712 } 2713 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); 2714 } 2715 return J; 2716 } 2717 var Ug = Og(!0), Vg = Og(!1), Wg = Uf(null), Xg = null, Yg = null, Zg = null; 2718 function $g() { 2719 Zg = Yg = Xg = null; 2720 } 2721 function ah(a3) { 2722 var b = Wg.current; 2723 E(Wg), a3._currentValue = b; 2724 } 2725 function bh(a3, b, c) { 2726 for (; a3 !== null; ) { 2727 var d = a3.alternate; 2728 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; 2729 a3 = a3.return; 2730 } 2731 } 2732 function ch(a3, b) { 2733 Xg = a3, Zg = Yg = null, a3 = a3.dependencies, a3 !== null && a3.firstContext !== null && ((a3.lanes & b) !== 0 && (dh = !0), a3.firstContext = null); 2734 } 2735 function eh(a3) { 2736 var b = a3._currentValue; 2737 if (Zg !== a3) if (a3 = { context: a3, memoizedValue: b, next: null }, Yg === null) { 2738 if (Xg === null) throw Error(p3(308)); 2739 Yg = a3, Xg.dependencies = { lanes: 0, firstContext: a3 }; 2740 } else Yg = Yg.next = a3; 2741 return b; 2742 } 2743 var fh = null; 2744 function gh(a3) { 2745 fh === null ? fh = [a3] : fh.push(a3); 2746 } 2747 function hh(a3, b, c, d) { 2748 var e = b.interleaved; 2749 return e === null ? (c.next = c, gh(b)) : (c.next = e.next, e.next = c), b.interleaved = c, ih(a3, d); 2750 } 2751 function ih(a3, b) { 2752 a3.lanes |= b; 2753 var c = a3.alternate; 2754 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; 2755 return c.tag === 3 ? c.stateNode : null; 2756 } 2757 var jh = !1; 2758 function kh(a3) { 2759 a3.updateQueue = { baseState: a3.memoizedState, firstBaseUpdate: null, lastBaseUpdate: null, shared: { pending: null, interleaved: null, lanes: 0 }, effects: null }; 2760 } 2761 function lh(a3, b) { 2762 a3 = a3.updateQueue, b.updateQueue === a3 && (b.updateQueue = { baseState: a3.baseState, firstBaseUpdate: a3.firstBaseUpdate, lastBaseUpdate: a3.lastBaseUpdate, shared: a3.shared, effects: a3.effects }); 2763 } 2764 function mh(a3, b) { 2765 return { eventTime: a3, lane: b, tag: 0, payload: null, callback: null, next: null }; 2766 } 2767 function nh(a3, b, c) { 2768 var d = a3.updateQueue; 2769 if (d === null) return null; 2770 if (d = d.shared, (K2 & 2) !== 0) { 2771 var e = d.pending; 2772 return e === null ? b.next = b : (b.next = e.next, e.next = b), d.pending = b, ih(a3, c); 2773 } 2774 return e = d.interleaved, e === null ? (b.next = b, gh(d)) : (b.next = e.next, e.next = b), d.interleaved = b, ih(a3, c); 2775 } 2776 function oh(a3, b, c) { 2777 if (b = b.updateQueue, b !== null && (b = b.shared, (c & 4194240) !== 0)) { 2778 var d = b.lanes; 2779 d &= a3.pendingLanes, c |= d, b.lanes = c, Cc(a3, c); 2780 } 2781 } 2782 function ph(a3, b) { 2783 var c = a3.updateQueue, d = a3.alternate; 2784 if (d !== null && (d = d.updateQueue, c === d)) { 2785 var e = null, f4 = null; 2786 if (c = c.firstBaseUpdate, c !== null) { 2787 do { 2788 var g2 = { eventTime: c.eventTime, lane: c.lane, tag: c.tag, payload: c.payload, callback: c.callback, next: null }; 2789 f4 === null ? e = f4 = g2 : f4 = f4.next = g2, c = c.next; 2790 } while (c !== null); 2791 f4 === null ? e = f4 = b : f4 = f4.next = b; 2792 } else e = f4 = b; 2793 c = { baseState: d.baseState, firstBaseUpdate: e, lastBaseUpdate: f4, shared: d.shared, effects: d.effects }, a3.updateQueue = c; 2794 return; 2795 } 2796 a3 = c.lastBaseUpdate, a3 === null ? c.firstBaseUpdate = b : a3.next = b, c.lastBaseUpdate = b; 2797 } 2798 function qh(a3, b, c, d) { 2799 var e = a3.updateQueue; 2800 jh = !1; 2801 var f4 = e.firstBaseUpdate, g2 = e.lastBaseUpdate, h3 = e.shared.pending; 2802 if (h3 !== null) { 2803 e.shared.pending = null; 2804 var k = h3, l = k.next; 2805 k.next = null, g2 === null ? f4 = l : g2.next = l, g2 = k; 2806 var m3 = a3.alternate; 2807 m3 !== null && (m3 = m3.updateQueue, h3 = m3.lastBaseUpdate, h3 !== g2 && (h3 === null ? m3.firstBaseUpdate = l : h3.next = l, m3.lastBaseUpdate = k)); 2808 } 2809 if (f4 !== null) { 2810 var q = e.baseState; 2811 g2 = 0, m3 = l = k = null, h3 = f4; 2812 do { 2813 var r2 = h3.lane, y = h3.eventTime; 2814 if ((d & r2) === r2) { 2815 m3 !== null && (m3 = m3.next = { 2816 eventTime: y, 2817 lane: 0, 2818 tag: h3.tag, 2819 payload: h3.payload, 2820 callback: h3.callback, 2821 next: null 2822 }); 2823 a: { 2824 var n = a3, t = h3; 2825 switch (r2 = b, y = c, t.tag) { 2826 case 1: 2827 if (n = t.payload, typeof n == "function") { 2828 q = n.call(y, q, r2); 2829 break a; 2830 } 2831 q = n; 2832 break a; 2833 case 3: 2834 n.flags = n.flags & -65537 | 128; 2835 case 0: 2836 if (n = t.payload, r2 = typeof n == "function" ? n.call(y, q, r2) : n, r2 == null) break a; 2837 q = A3({}, q, r2); 2838 break a; 2839 case 2: 2840 jh = !0; 2841 } 2842 } 2843 h3.callback !== null && h3.lane !== 0 && (a3.flags |= 64, r2 = e.effects, r2 === null ? e.effects = [h3] : r2.push(h3)); 2844 } 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; 2845 if (h3 = h3.next, h3 === null) { 2846 if (h3 = e.shared.pending, h3 === null) break; 2847 r2 = h3, h3 = r2.next, r2.next = null, e.lastBaseUpdate = r2, e.shared.pending = null; 2848 } 2849 } while (!0); 2850 if (m3 === null && (k = q), e.baseState = k, e.firstBaseUpdate = l, e.lastBaseUpdate = m3, b = e.shared.interleaved, b !== null) { 2851 e = b; 2852 do 2853 g2 |= e.lane, e = e.next; 2854 while (e !== b); 2855 } else f4 === null && (e.shared.lanes = 0); 2856 rh |= g2, a3.lanes = g2, a3.memoizedState = q; 2857 } 2858 } 2859 function sh(a3, b, c) { 2860 if (a3 = b.effects, b.effects = null, a3 !== null) for (b = 0; b < a3.length; b++) { 2861 var d = a3[b], e = d.callback; 2862 if (e !== null) { 2863 if (d.callback = null, d = c, typeof e != "function") throw Error(p3(191, e)); 2864 e.call(d); 2865 } 2866 } 2867 } 2868 var th = {}, uh = Uf(th), vh = Uf(th), wh = Uf(th); 2869 function xh(a3) { 2870 if (a3 === th) throw Error(p3(174)); 2871 return a3; 2872 } 2873 function yh(a3, b) { 2874 switch (G(wh, b), G(vh, a3), G(uh, th), a3 = b.nodeType, a3) { 2875 case 9: 2876 case 11: 2877 b = (b = b.documentElement) ? b.namespaceURI : lb(null, ""); 2878 break; 2879 default: 2880 a3 = a3 === 8 ? b.parentNode : b, b = a3.namespaceURI || null, a3 = a3.tagName, b = lb(b, a3); 2881 } 2882 E(uh), G(uh, b); 2883 } 2884 function zh() { 2885 E(uh), E(vh), E(wh); 2886 } 2887 function Ah(a3) { 2888 xh(wh.current); 2889 var b = xh(uh.current), c = lb(b, a3.type); 2890 b !== c && (G(vh, a3), G(uh, c)); 2891 } 2892 function Bh(a3) { 2893 vh.current === a3 && (E(uh), E(vh)); 2894 } 2895 var L = Uf(0); 2896 function Ch(a3) { 2897 for (var b = a3; b !== null; ) { 2898 if (b.tag === 13) { 2899 var c = b.memoizedState; 2900 if (c !== null && (c = c.dehydrated, c === null || c.data === "$?" || c.data === "$!")) return b; 2901 } else if (b.tag === 19 && b.memoizedProps.revealOrder !== void 0) { 2902 if ((b.flags & 128) !== 0) return b; 2903 } else if (b.child !== null) { 2904 b.child.return = b, b = b.child; 2905 continue; 2906 } 2907 if (b === a3) break; 2908 for (; b.sibling === null; ) { 2909 if (b.return === null || b.return === a3) return null; 2910 b = b.return; 2911 } 2912 b.sibling.return = b.return, b = b.sibling; 2913 } 2914 return null; 2915 } 2916 var Dh = []; 2917 function Eh() { 2918 for (var a3 = 0; a3 < Dh.length; a3++) Dh[a3]._workInProgressVersionPrimary = null; 2919 Dh.length = 0; 2920 } 2921 var Fh = ua.ReactCurrentDispatcher, Gh = ua.ReactCurrentBatchConfig, Hh = 0, M = null, N = null, O = null, Ih = !1, Jh = !1, Kh = 0, Lh = 0; 2922 function P3() { 2923 throw Error(p3(321)); 2924 } 2925 function Mh(a3, b) { 2926 if (b === null) return !1; 2927 for (var c = 0; c < b.length && c < a3.length; c++) if (!He(a3[c], b[c])) return !1; 2928 return !0; 2929 } 2930 function Nh(a3, b, c, d, e, f4) { 2931 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) { 2932 f4 = 0; 2933 do { 2934 if (Jh = !1, Kh = 0, 25 <= f4) throw Error(p3(301)); 2935 f4 += 1, O = N = null, b.updateQueue = null, Fh.current = Qh, a3 = c(d, e); 2936 } while (Jh); 2937 } 2938 if (Fh.current = Rh, b = N !== null && N.next !== null, Hh = 0, O = N = M = null, Ih = !1, b) throw Error(p3(300)); 2939 return a3; 2940 } 2941 function Sh() { 2942 var a3 = Kh !== 0; 2943 return Kh = 0, a3; 2944 } 2945 function Th() { 2946 var a3 = { memoizedState: null, baseState: null, baseQueue: null, queue: null, next: null }; 2947 return O === null ? M.memoizedState = O = a3 : O = O.next = a3, O; 2948 } 2949 function Uh() { 2950 if (N === null) { 2951 var a3 = M.alternate; 2952 a3 = a3 !== null ? a3.memoizedState : null; 2953 } else a3 = N.next; 2954 var b = O === null ? M.memoizedState : O.next; 2955 if (b !== null) O = b, N = a3; 2956 else { 2957 if (a3 === null) throw Error(p3(310)); 2958 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; 2959 } 2960 return O; 2961 } 2962 function Vh(a3, b) { 2963 return typeof b == "function" ? b(a3) : b; 2964 } 2965 function Wh(a3) { 2966 var b = Uh(), c = b.queue; 2967 if (c === null) throw Error(p3(311)); 2968 c.lastRenderedReducer = a3; 2969 var d = N, e = d.baseQueue, f4 = c.pending; 2970 if (f4 !== null) { 2971 if (e !== null) { 2972 var g2 = e.next; 2973 e.next = f4.next, f4.next = g2; 2974 } 2975 d.baseQueue = e = f4, c.pending = null; 2976 } 2977 if (e !== null) { 2978 f4 = e.next, d = d.baseState; 2979 var h3 = g2 = null, k = null, l = f4; 2980 do { 2981 var m3 = l.lane; 2982 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); 2983 else { 2984 var q = { 2985 lane: m3, 2986 action: l.action, 2987 hasEagerState: l.hasEagerState, 2988 eagerState: l.eagerState, 2989 next: null 2990 }; 2991 k === null ? (h3 = k = q, g2 = d) : k = k.next = q, M.lanes |= m3, rh |= m3; 2992 } 2993 l = l.next; 2994 } while (l !== null && l !== f4); 2995 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; 2996 } 2997 if (a3 = c.interleaved, a3 !== null) { 2998 e = a3; 2999 do 3000 f4 = e.lane, M.lanes |= f4, rh |= f4, e = e.next; 3001 while (e !== a3); 3002 } else e === null && (c.lanes = 0); 3003 return [b.memoizedState, c.dispatch]; 3004 } 3005 function Xh(a3) { 3006 var b = Uh(), c = b.queue; 3007 if (c === null) throw Error(p3(311)); 3008 c.lastRenderedReducer = a3; 3009 var d = c.dispatch, e = c.pending, f4 = b.memoizedState; 3010 if (e !== null) { 3011 c.pending = null; 3012 var g2 = e = e.next; 3013 do 3014 f4 = a3(f4, g2.action), g2 = g2.next; 3015 while (g2 !== e); 3016 He(f4, b.memoizedState) || (dh = !0), b.memoizedState = f4, b.baseQueue === null && (b.baseState = f4), c.lastRenderedState = f4; 3017 } 3018 return [f4, d]; 3019 } 3020 function Yh() { 3021 } 3022 function Zh(a3, b) { 3023 var c = M, d = Uh(), e = b(), f4 = !He(d.memoizedState, e); 3024 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) { 3025 if (c.flags |= 2048, bi(9, ci.bind(null, c, d, e, b), void 0, null), Q === null) throw Error(p3(349)); 3026 (Hh & 30) !== 0 || di(c, b, e); 3027 } 3028 return e; 3029 } 3030 function di(a3, b, c) { 3031 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)); 3032 } 3033 function ci(a3, b, c, d) { 3034 b.value = c, b.getSnapshot = d, ei(b) && fi(a3); 3035 } 3036 function ai(a3, b, c) { 3037 return c(function() { 3038 ei(b) && fi(a3); 3039 }); 3040 } 3041 function ei(a3) { 3042 var b = a3.getSnapshot; 3043 a3 = a3.value; 3044 try { 3045 var c = b(); 3046 return !He(a3, c); 3047 } catch { 3048 return !0; 3049 } 3050 } 3051 function fi(a3) { 3052 var b = ih(a3, 1); 3053 b !== null && gi(b, a3, 1, -1); 3054 } 3055 function hi(a3) { 3056 var b = Th(); 3057 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]; 3058 } 3059 function bi(a3, b, c, d) { 3060 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; 3061 } 3062 function ji() { 3063 return Uh().memoizedState; 3064 } 3065 function ki(a3, b, c, d) { 3066 var e = Th(); 3067 M.flags |= a3, e.memoizedState = bi(1 | b, c, void 0, d === void 0 ? null : d); 3068 } 3069 function li(a3, b, c, d) { 3070 var e = Uh(); 3071 d = d === void 0 ? null : d; 3072 var f4 = void 0; 3073 if (N !== null) { 3074 var g2 = N.memoizedState; 3075 if (f4 = g2.destroy, d !== null && Mh(d, g2.deps)) { 3076 e.memoizedState = bi(b, c, f4, d); 3077 return; 3078 } 3079 } 3080 M.flags |= a3, e.memoizedState = bi(1 | b, c, f4, d); 3081 } 3082 function mi(a3, b) { 3083 return ki(8390656, 8, a3, b); 3084 } 3085 function $h(a3, b) { 3086 return li(2048, 8, a3, b); 3087 } 3088 function ni(a3, b) { 3089 return li(4, 2, a3, b); 3090 } 3091 function oi(a3, b) { 3092 return li(4, 4, a3, b); 3093 } 3094 function pi(a3, b) { 3095 if (typeof b == "function") return a3 = a3(), b(a3), function() { 3096 b(null); 3097 }; 3098 if (b != null) return a3 = a3(), b.current = a3, function() { 3099 b.current = null; 3100 }; 3101 } 3102 function qi(a3, b, c) { 3103 return c = c != null ? c.concat([a3]) : null, li(4, 4, pi.bind(null, b, a3), c); 3104 } 3105 function ri() { 3106 } 3107 function si(a3, b) { 3108 var c = Uh(); 3109 b = b === void 0 ? null : b; 3110 var d = c.memoizedState; 3111 return d !== null && b !== null && Mh(b, d[1]) ? d[0] : (c.memoizedState = [a3, b], a3); 3112 } 3113 function ti(a3, b) { 3114 var c = Uh(); 3115 b = b === void 0 ? null : b; 3116 var d = c.memoizedState; 3117 return d !== null && b !== null && Mh(b, d[1]) ? d[0] : (a3 = a3(), c.memoizedState = [a3, b], a3); 3118 } 3119 function ui(a3, b, c) { 3120 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); 3121 } 3122 function vi(a3, b) { 3123 var c = C3; 3124 C3 = c !== 0 && 4 > c ? c : 4, a3(!0); 3125 var d = Gh.transition; 3126 Gh.transition = {}; 3127 try { 3128 a3(!1), b(); 3129 } finally { 3130 C3 = c, Gh.transition = d; 3131 } 3132 } 3133 function wi() { 3134 return Uh().memoizedState; 3135 } 3136 function xi(a3, b, c) { 3137 var d = yi(a3); 3138 if (c = { lane: d, action: c, hasEagerState: !1, eagerState: null, next: null }, zi(a3)) Ai(b, c); 3139 else if (c = hh(a3, b, c, d), c !== null) { 3140 var e = R(); 3141 gi(c, a3, d, e), Bi(c, b, d); 3142 } 3143 } 3144 function ii(a3, b, c) { 3145 var d = yi(a3), e = { lane: d, action: c, hasEagerState: !1, eagerState: null, next: null }; 3146 if (zi(a3)) Ai(b, e); 3147 else { 3148 var f4 = a3.alternate; 3149 if (a3.lanes === 0 && (f4 === null || f4.lanes === 0) && (f4 = b.lastRenderedReducer, f4 !== null)) try { 3150 var g2 = b.lastRenderedState, h3 = f4(g2, c); 3151 if (e.hasEagerState = !0, e.eagerState = h3, He(h3, g2)) { 3152 var k = b.interleaved; 3153 k === null ? (e.next = e, gh(b)) : (e.next = k.next, k.next = e), b.interleaved = e; 3154 return; 3155 } 3156 } catch { 3157 } finally { 3158 } 3159 c = hh(a3, b, e, d), c !== null && (e = R(), gi(c, a3, d, e), Bi(c, b, d)); 3160 } 3161 } 3162 function zi(a3) { 3163 var b = a3.alternate; 3164 return a3 === M || b !== null && b === M; 3165 } 3166 function Ai(a3, b) { 3167 Jh = Ih = !0; 3168 var c = a3.pending; 3169 c === null ? b.next = b : (b.next = c.next, c.next = b), a3.pending = b; 3170 } 3171 function Bi(a3, b, c) { 3172 if ((c & 4194240) !== 0) { 3173 var d = b.lanes; 3174 d &= a3.pendingLanes, c |= d, b.lanes = c, Cc(a3, c); 3175 } 3176 } 3177 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) { 3178 return Th().memoizedState = [a3, b === void 0 ? null : b], a3; 3179 }, useContext: eh, useEffect: mi, useImperativeHandle: function(a3, b, c) { 3180 return c = c != null ? c.concat([a3]) : null, ki( 3181 4194308, 3182 4, 3183 pi.bind(null, b, a3), 3184 c 3185 ); 3186 }, useLayoutEffect: function(a3, b) { 3187 return ki(4194308, 4, a3, b); 3188 }, useInsertionEffect: function(a3, b) { 3189 return ki(4, 2, a3, b); 3190 }, useMemo: function(a3, b) { 3191 var c = Th(); 3192 return b = b === void 0 ? null : b, a3 = a3(), c.memoizedState = [a3, b], a3; 3193 }, useReducer: function(a3, b, c) { 3194 var d = Th(); 3195 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]; 3196 }, useRef: function(a3) { 3197 var b = Th(); 3198 return a3 = { current: a3 }, b.memoizedState = a3; 3199 }, useState: hi, useDebugValue: ri, useDeferredValue: function(a3) { 3200 return Th().memoizedState = a3; 3201 }, useTransition: function() { 3202 var a3 = hi(!1), b = a3[0]; 3203 return a3 = vi.bind(null, a3[1]), Th().memoizedState = a3, [b, a3]; 3204 }, useMutableSource: function() { 3205 }, useSyncExternalStore: function(a3, b, c) { 3206 var d = M, e = Th(); 3207 if (I) { 3208 if (c === void 0) throw Error(p3(407)); 3209 c = c(); 3210 } else { 3211 if (c = b(), Q === null) throw Error(p3(349)); 3212 (Hh & 30) !== 0 || di(d, b, c); 3213 } 3214 e.memoizedState = c; 3215 var f4 = { value: c, getSnapshot: b }; 3216 return e.queue = f4, mi(ai.bind( 3217 null, 3218 d, 3219 f4, 3220 a3 3221 ), [a3]), d.flags |= 2048, bi(9, ci.bind(null, d, f4, c, b), void 0, null), c; 3222 }, useId: function() { 3223 var a3 = Th(), b = Q.identifierPrefix; 3224 if (I) { 3225 var c = sg, d = rg; 3226 c = (d & ~(1 << 32 - oc(d) - 1)).toString(32) + c, b = ":" + b + "R" + c, c = Kh++, 0 < c && (b += "H" + c.toString(32)), b += ":"; 3227 } else c = Lh++, b = ":" + b + "r" + c.toString(32) + ":"; 3228 return a3.memoizedState = b; 3229 }, unstable_isNewReconciler: !1 }, Ph = { 3230 readContext: eh, 3231 useCallback: si, 3232 useContext: eh, 3233 useEffect: $h, 3234 useImperativeHandle: qi, 3235 useInsertionEffect: ni, 3236 useLayoutEffect: oi, 3237 useMemo: ti, 3238 useReducer: Wh, 3239 useRef: ji, 3240 useState: function() { 3241 return Wh(Vh); 3242 }, 3243 useDebugValue: ri, 3244 useDeferredValue: function(a3) { 3245 var b = Uh(); 3246 return ui(b, N.memoizedState, a3); 3247 }, 3248 useTransition: function() { 3249 var a3 = Wh(Vh)[0], b = Uh().memoizedState; 3250 return [a3, b]; 3251 }, 3252 useMutableSource: Yh, 3253 useSyncExternalStore: Zh, 3254 useId: wi, 3255 unstable_isNewReconciler: !1 3256 }, Qh = { readContext: eh, useCallback: si, useContext: eh, useEffect: $h, useImperativeHandle: qi, useInsertionEffect: ni, useLayoutEffect: oi, useMemo: ti, useReducer: Xh, useRef: ji, useState: function() { 3257 return Xh(Vh); 3258 }, useDebugValue: ri, useDeferredValue: function(a3) { 3259 var b = Uh(); 3260 return N === null ? b.memoizedState = a3 : ui(b, N.memoizedState, a3); 3261 }, useTransition: function() { 3262 var a3 = Xh(Vh)[0], b = Uh().memoizedState; 3263 return [a3, b]; 3264 }, useMutableSource: Yh, useSyncExternalStore: Zh, useId: wi, unstable_isNewReconciler: !1 }; 3265 function Ci(a3, b) { 3266 if (a3 && a3.defaultProps) { 3267 b = A3({}, b), a3 = a3.defaultProps; 3268 for (var c in a3) b[c] === void 0 && (b[c] = a3[c]); 3269 return b; 3270 } 3271 return b; 3272 } 3273 function Di(a3, b, c, d) { 3274 b = a3.memoizedState, c = c(d, b), c = c == null ? b : A3({}, b, c), a3.memoizedState = c, a3.lanes === 0 && (a3.updateQueue.baseState = c); 3275 } 3276 var Ei = { isMounted: function(a3) { 3277 return (a3 = a3._reactInternals) ? Vb(a3) === a3 : !1; 3278 }, enqueueSetState: function(a3, b, c) { 3279 a3 = a3._reactInternals; 3280 var d = R(), e = yi(a3), f4 = mh(d, e); 3281 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 }, enqueueReplaceState: function(a3, b, c) { 3283 a3 = a3._reactInternals; 3284 var d = R(), e = yi(a3), f4 = mh(d, e); 3285 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)); 3286 }, enqueueForceUpdate: function(a3, b) { 3287 a3 = a3._reactInternals; 3288 var c = R(), d = yi(a3), e = mh(c, d); 3289 e.tag = 2, b != null && (e.callback = b), b = nh(a3, e, d), b !== null && (gi(b, a3, d, c), oh(b, a3, d)); 3290 } }; 3291 function Fi(a3, b, c, d, e, f4, g2) { 3292 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; 3293 } 3294 function Gi(a3, b, c) { 3295 var d = !1, e = Vf, f4 = b.contextType; 3296 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; 3297 } 3298 function Hi(a3, b, c, d) { 3299 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); 3300 } 3301 function Ii(a3, b, c, d) { 3302 var e = a3.stateNode; 3303 e.props = c, e.state = a3.memoizedState, e.refs = {}, kh(a3); 3304 var f4 = b.contextType; 3305 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); 3306 } 3307 function Ji(a3, b) { 3308 try { 3309 var c = "", d = b; 3310 do 3311 c += Pa(d), d = d.return; 3312 while (d); 3313 var e = c; 3314 } catch (f4) { 3315 e = ` 3316Error generating stack: ` + f4.message + ` 3317` + f4.stack; 3318 } 3319 return { value: a3, source: b, stack: e, digest: null }; 3320 } 3321 function Ki(a3, b, c) { 3322 return { value: a3, source: null, stack: c ?? null, digest: b ?? null }; 3323 } 3324 function Li(a3, b) { 3325 try { 3326 console.error(b.value); 3327 } catch (c) { 3328 setTimeout(function() { 3329 throw c; 3330 }); 3331 } 3332 } 3333 var Mi = typeof WeakMap == "function" ? WeakMap : Map; 3334 function Ni(a3, b, c) { 3335 c = mh(-1, c), c.tag = 3, c.payload = { element: null }; 3336 var d = b.value; 3337 return c.callback = function() { 3338 Oi || (Oi = !0, Pi = d), Li(a3, b); 3339 }, c; 3340 } 3341 function Qi(a3, b, c) { 3342 c = mh(-1, c), c.tag = 3; 3343 var d = a3.type.getDerivedStateFromError; 3344 if (typeof d == "function") { 3345 var e = b.value; 3346 c.payload = function() { 3347 return d(e); 3348 }, c.callback = function() { 3349 Li(a3, b); 3350 }; 3351 } 3352 var f4 = a3.stateNode; 3353 return f4 !== null && typeof f4.componentDidCatch == "function" && (c.callback = function() { 3354 Li(a3, b), typeof d != "function" && (Ri === null ? Ri = /* @__PURE__ */ new Set([this]) : Ri.add(this)); 3355 var c2 = b.stack; 3356 this.componentDidCatch(b.value, { componentStack: c2 !== null ? c2 : "" }); 3357 }), c; 3358 } 3359 function Si(a3, b, c) { 3360 var d = a3.pingCache; 3361 if (d === null) { 3362 d = a3.pingCache = new Mi(); 3363 var e = /* @__PURE__ */ new Set(); 3364 d.set(b, e); 3365 } else e = d.get(b), e === void 0 && (e = /* @__PURE__ */ new Set(), d.set(b, e)); 3366 e.has(c) || (e.add(c), a3 = Ti.bind(null, a3, b, c), b.then(a3, a3)); 3367 } 3368 function Ui(a3) { 3369 do { 3370 var b; 3371 if ((b = a3.tag === 13) && (b = a3.memoizedState, b = b !== null ? b.dehydrated !== null : !0), b) return a3; 3372 a3 = a3.return; 3373 } while (a3 !== null); 3374 return null; 3375 } 3376 function Vi(a3, b, c, d, e) { 3377 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); 3378 } 3379 var Wi = ua.ReactCurrentOwner, dh = !1; 3380 function Xi(a3, b, c, d) { 3381 b.child = a3 === null ? Vg(b, null, c, d) : Ug(b, a3.child, c, d); 3382 } 3383 function Yi(a3, b, c, d, e) { 3384 c = c.render; 3385 var f4 = b.ref; 3386 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); 3387 } 3388 function $i(a3, b, c, d, e) { 3389 if (a3 === null) { 3390 var f4 = c.type; 3391 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); 3392 } 3393 if (f4 = a3.child, (a3.lanes & e) === 0) { 3394 var g2 = f4.memoizedProps; 3395 if (c = c.compare, c = c !== null ? c : Ie, c(g2, d) && a3.ref === b.ref) return Zi(a3, b, e); 3396 } 3397 return b.flags |= 1, a3 = Pg(f4, d), a3.ref = b.ref, a3.return = b, b.child = a3; 3398 } 3399 function bj(a3, b, c, d, e) { 3400 if (a3 !== null) { 3401 var f4 = a3.memoizedProps; 3402 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); 3403 else return b.lanes = a3.lanes, Zi(a3, b, e); 3404 } 3405 return cj(a3, b, c, d, e); 3406 } 3407 function dj(a3, b, c) { 3408 var d = b.pendingProps, e = d.children, f4 = a3 !== null ? a3.memoizedState : null; 3409 if (d.mode === "hidden") if ((b.mode & 1) === 0) b.memoizedState = { baseLanes: 0, cachePool: null, transitions: null }, G(ej, fj), fj |= c; 3410 else { 3411 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; 3412 b.memoizedState = { baseLanes: 0, cachePool: null, transitions: null }, d = f4 !== null ? f4.baseLanes : c, G(ej, fj), fj |= d; 3413 } 3414 else f4 !== null ? (d = f4.baseLanes | c, b.memoizedState = null) : d = c, G(ej, fj), fj |= d; 3415 return Xi(a3, b, e, c), b.child; 3416 } 3417 function gj(a3, b) { 3418 var c = b.ref; 3419 (a3 === null && c !== null || a3 !== null && a3.ref !== c) && (b.flags |= 512, b.flags |= 2097152); 3420 } 3421 function cj(a3, b, c, d, e) { 3422 var f4 = Zf(c) ? Xf : H.current; 3423 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); 3424 } 3425 function hj(a3, b, c, d, e) { 3426 if (Zf(c)) { 3427 var f4 = !0; 3428 cg(b); 3429 } else f4 = !1; 3430 if (ch(b, e), b.stateNode === null) ij(a3, b), Gi(b, c, d), Ii(b, c, d, e), d = !0; 3431 else if (a3 === null) { 3432 var g2 = b.stateNode, h3 = b.memoizedProps; 3433 g2.props = h3; 3434 var k = g2.context, l = c.contextType; 3435 typeof l == "object" && l !== null ? l = eh(l) : (l = Zf(c) ? Xf : H.current, l = Yf(b, l)); 3436 var m3 = c.getDerivedStateFromProps, q = typeof m3 == "function" || typeof g2.getSnapshotBeforeUpdate == "function"; 3437 q || typeof g2.UNSAFE_componentWillReceiveProps != "function" && typeof g2.componentWillReceiveProps != "function" || (h3 !== d || k !== l) && Hi(b, g2, d, l), jh = !1; 3438 var r2 = b.memoizedState; 3439 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); 3440 } else { 3441 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)); 3442 var y = c.getDerivedStateFromProps; 3443 (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); 3444 var n = b.memoizedState; 3445 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); 3446 } 3447 return jj(a3, b, c, d, f4, e); 3448 } 3449 function jj(a3, b, c, d, e, f4) { 3450 gj(a3, b); 3451 var g2 = (b.flags & 128) !== 0; 3452 if (!d && !g2) return e && dg(b, c, !1), Zi(a3, b, f4); 3453 d = b.stateNode, Wi.current = b; 3454 var h3 = g2 && typeof c.getDerivedStateFromError != "function" ? null : d.render(); 3455 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; 3456 } 3457 function kj(a3) { 3458 var b = a3.stateNode; 3459 b.pendingContext ? ag(a3, b.pendingContext, b.pendingContext !== b.context) : b.context && ag(a3, b.context, !1), yh(a3, b.containerInfo); 3460 } 3461 function lj(a3, b, c, d, e) { 3462 return Ig(), Jg(e), b.flags |= 256, Xi(a3, b, c, d), b.child; 3463 } 3464 var mj = { dehydrated: null, treeContext: null, retryLane: 0 }; 3465 function nj(a3) { 3466 return { baseLanes: a3, cachePool: null, transitions: null }; 3467 } 3468 function oj(a3, b, c) { 3469 var d = b.pendingProps, e = L.current, f4 = !1, g2 = (b.flags & 128) !== 0, h3; 3470 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) 3471 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)); 3472 if (e = a3.memoizedState, e !== null && (h3 = e.dehydrated, h3 !== null)) return rj(a3, b, g2, d, h3, e, c); 3473 if (f4) { 3474 f4 = d.fallback, g2 = b.mode, e = a3.child, h3 = e.sibling; 3475 var k = { mode: "hidden", children: d.children }; 3476 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; 3477 } 3478 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; 3479 } 3480 function qj(a3, b) { 3481 return b = pj({ mode: "visible", children: b }, a3.mode, 0, null), b.return = a3, a3.child = b; 3482 } 3483 function sj(a3, b, c, d) { 3484 return d !== null && Jg(d), Ug(b, a3.child, null, c), a3 = qj(b, b.pendingProps.children), a3.flags |= 2, b.memoizedState = null, a3; 3485 } 3486 function rj(a3, b, c, d, e, f4, g2) { 3487 if (c) 3488 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); 3489 if ((b.mode & 1) === 0) return sj(a3, b, g2, null); 3490 if (e.data === "$!") { 3491 if (d = e.nextSibling && e.nextSibling.dataset, d) var h3 = d.dgst; 3492 return d = h3, f4 = Error(p3(419)), d = Ki(f4, d, void 0), sj(a3, b, g2, d); 3493 } 3494 if (h3 = (g2 & a3.childLanes) !== 0, dh || h3) { 3495 if (d = Q, d !== null) { 3496 switch (g2 & -g2) { 3497 case 4: 3498 e = 2; 3499 break; 3500 case 16: 3501 e = 8; 3502 break; 3503 case 64: 3504 case 128: 3505 case 256: 3506 case 512: 3507 case 1024: 3508 case 2048: 3509 case 4096: 3510 case 8192: 3511 case 16384: 3512 case 32768: 3513 case 65536: 3514 case 131072: 3515 case 262144: 3516 case 524288: 3517 case 1048576: 3518 case 2097152: 3519 case 4194304: 3520 case 8388608: 3521 case 16777216: 3522 case 33554432: 3523 case 67108864: 3524 e = 32; 3525 break; 3526 case 536870912: 3527 e = 268435456; 3528 break; 3529 default: 3530 e = 0; 3531 } 3532 e = (e & (d.suspendedLanes | g2)) !== 0 ? 0 : e, e !== 0 && e !== f4.retryLane && (f4.retryLane = e, ih(a3, e), gi(d, a3, e, -1)); 3533 } 3534 return tj(), d = Ki(Error(p3(421))), sj(a3, b, g2, d); 3535 } 3536 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); 3537 } 3538 function vj(a3, b, c) { 3539 a3.lanes |= b; 3540 var d = a3.alternate; 3541 d !== null && (d.lanes |= b), bh(a3.return, b, c); 3542 } 3543 function wj(a3, b, c, d, e) { 3544 var f4 = a3.memoizedState; 3545 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); 3546 } 3547 function xj(a3, b, c) { 3548 var d = b.pendingProps, e = d.revealOrder, f4 = d.tail; 3549 if (Xi(a3, b, d.children, c), d = L.current, (d & 2) !== 0) d = d & 1 | 2, b.flags |= 128; 3550 else { 3551 if (a3 !== null && (a3.flags & 128) !== 0) a: for (a3 = b.child; a3 !== null; ) { 3552 if (a3.tag === 13) a3.memoizedState !== null && vj(a3, c, b); 3553 else if (a3.tag === 19) vj(a3, c, b); 3554 else if (a3.child !== null) { 3555 a3.child.return = a3, a3 = a3.child; 3556 continue; 3557 } 3558 if (a3 === b) break a; 3559 for (; a3.sibling === null; ) { 3560 if (a3.return === null || a3.return === b) break a; 3561 a3 = a3.return; 3562 } 3563 a3.sibling.return = a3.return, a3 = a3.sibling; 3564 } 3565 d &= 1; 3566 } 3567 if (G(L, d), (b.mode & 1) === 0) b.memoizedState = null; 3568 else switch (e) { 3569 case "forwards": 3570 for (c = b.child, e = null; c !== null; ) a3 = c.alternate, a3 !== null && Ch(a3) === null && (e = c), c = c.sibling; 3571 c = e, c === null ? (e = b.child, b.child = null) : (e = c.sibling, c.sibling = null), wj(b, !1, e, c, f4); 3572 break; 3573 case "backwards": 3574 for (c = null, e = b.child, b.child = null; e !== null; ) { 3575 if (a3 = e.alternate, a3 !== null && Ch(a3) === null) { 3576 b.child = e; 3577 break; 3578 } 3579 a3 = e.sibling, e.sibling = c, c = e, e = a3; 3580 } 3581 wj(b, !0, c, null, f4); 3582 break; 3583 case "together": 3584 wj(b, !1, null, null, void 0); 3585 break; 3586 default: 3587 b.memoizedState = null; 3588 } 3589 return b.child; 3590 } 3591 function ij(a3, b) { 3592 (b.mode & 1) === 0 && a3 !== null && (a3.alternate = null, b.alternate = null, b.flags |= 2); 3593 } 3594 function Zi(a3, b, c) { 3595 if (a3 !== null && (b.dependencies = a3.dependencies), rh |= b.lanes, (c & b.childLanes) === 0) return null; 3596 if (a3 !== null && b.child !== a3.child) throw Error(p3(153)); 3597 if (b.child !== null) { 3598 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; 3599 c.sibling = null; 3600 } 3601 return b.child; 3602 } 3603 function yj(a3, b, c) { 3604 switch (b.tag) { 3605 case 3: 3606 kj(b), Ig(); 3607 break; 3608 case 5: 3609 Ah(b); 3610 break; 3611 case 1: 3612 Zf(b.type) && cg(b); 3613 break; 3614 case 4: 3615 yh(b, b.stateNode.containerInfo); 3616 break; 3617 case 10: 3618 var d = b.type._context, e = b.memoizedProps.value; 3619 G(Wg, d._currentValue), d._currentValue = e; 3620 break; 3621 case 13: 3622 if (d = b.memoizedState, d !== null) 3623 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); 3624 G(L, L.current & 1); 3625 break; 3626 case 19: 3627 if (d = (c & b.childLanes) !== 0, (a3.flags & 128) !== 0) { 3628 if (d) return xj(a3, b, c); 3629 b.flags |= 128; 3630 } 3631 if (e = b.memoizedState, e !== null && (e.rendering = null, e.tail = null, e.lastEffect = null), G(L, L.current), d) break; 3632 return null; 3633 case 22: 3634 case 23: 3635 return b.lanes = 0, dj(a3, b, c); 3636 } 3637 return Zi(a3, b, c); 3638 } 3639 var zj, Aj, Bj, Cj; 3640 zj = function(a3, b) { 3641 for (var c = b.child; c !== null; ) { 3642 if (c.tag === 5 || c.tag === 6) a3.appendChild(c.stateNode); 3643 else if (c.tag !== 4 && c.child !== null) { 3644 c.child.return = c, c = c.child; 3645 continue; 3646 } 3647 if (c === b) break; 3648 for (; c.sibling === null; ) { 3649 if (c.return === null || c.return === b) return; 3650 c = c.return; 3651 } 3652 c.sibling.return = c.return, c = c.sibling; 3653 } 3654 }; 3655 Aj = function() { 3656 }; 3657 Bj = function(a3, b, c, d) { 3658 var e = a3.memoizedProps; 3659 if (e !== d) { 3660 a3 = b.stateNode, xh(uh.current); 3661 var f4 = null; 3662 switch (c) { 3663 case "input": 3664 e = Ya(a3, e), d = Ya(a3, d), f4 = []; 3665 break; 3666 case "select": 3667 e = A3({}, e, { value: void 0 }), d = A3({}, d, { value: void 0 }), f4 = []; 3668 break; 3669 case "textarea": 3670 e = gb(a3, e), d = gb(a3, d), f4 = []; 3671 break; 3672 default: 3673 typeof e.onClick != "function" && typeof d.onClick == "function" && (a3.onclick = Bf); 3674 } 3675 ub(c, d); 3676 var g2; 3677 c = null; 3678 for (l in e) if (!d.hasOwnProperty(l) && e.hasOwnProperty(l) && e[l] != null) if (l === "style") { 3679 var h3 = e[l]; 3680 for (g2 in h3) h3.hasOwnProperty(g2) && (c || (c = {}), c[g2] = ""); 3681 } else l !== "dangerouslySetInnerHTML" && l !== "children" && l !== "suppressContentEditableWarning" && l !== "suppressHydrationWarning" && l !== "autoFocus" && (ea.hasOwnProperty(l) ? f4 || (f4 = []) : (f4 = f4 || []).push(l, null)); 3682 for (l in d) { 3683 var k = d[l]; 3684 if (h3 = e?.[l], d.hasOwnProperty(l) && k !== h3 && (k != null || h3 != null)) if (l === "style") if (h3) { 3685 for (g2 in h3) !h3.hasOwnProperty(g2) || k && k.hasOwnProperty(g2) || (c || (c = {}), c[g2] = ""); 3686 for (g2 in k) k.hasOwnProperty(g2) && h3[g2] !== k[g2] && (c || (c = {}), c[g2] = k[g2]); 3687 } else c || (f4 || (f4 = []), f4.push( 3688 l, 3689 c 3690 )), c = k; 3691 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)); 3692 } 3693 c && (f4 = f4 || []).push("style", c); 3694 var l = f4; 3695 (b.updateQueue = l) && (b.flags |= 4); 3696 } 3697 }; 3698 Cj = function(a3, b, c, d) { 3699 c !== d && (b.flags |= 4); 3700 }; 3701 function Dj(a3, b) { 3702 if (!I) switch (a3.tailMode) { 3703 case "hidden": 3704 b = a3.tail; 3705 for (var c = null; b !== null; ) b.alternate !== null && (c = b), b = b.sibling; 3706 c === null ? a3.tail = null : c.sibling = null; 3707 break; 3708 case "collapsed": 3709 c = a3.tail; 3710 for (var d = null; c !== null; ) c.alternate !== null && (d = c), c = c.sibling; 3711 d === null ? b || a3.tail === null ? a3.tail = null : a3.tail.sibling = null : d.sibling = null; 3712 } 3713 } 3714 function S(a3) { 3715 var b = a3.alternate !== null && a3.alternate.child === a3.child, c = 0, d = 0; 3716 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; 3717 else for (e = a3.child; e !== null; ) c |= e.lanes | e.childLanes, d |= e.subtreeFlags, d |= e.flags, e.return = a3, e = e.sibling; 3718 return a3.subtreeFlags |= d, a3.childLanes = c, b; 3719 } 3720 function Ej(a3, b, c) { 3721 var d = b.pendingProps; 3722 switch (wg(b), b.tag) { 3723 case 2: 3724 case 16: 3725 case 15: 3726 case 0: 3727 case 11: 3728 case 7: 3729 case 8: 3730 case 12: 3731 case 9: 3732 case 14: 3733 return S(b), null; 3734 case 1: 3735 return Zf(b.type) && $f(), S(b), null; 3736 case 3: 3737 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; 3738 case 5: 3739 Bh(b); 3740 var e = xh(wh.current); 3741 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); 3742 else { 3743 if (!d) { 3744 if (b.stateNode === null) throw Error(p3(166)); 3745 return S(b), null; 3746 } 3747 if (a3 = xh(uh.current), Gg(b)) { 3748 d = b.stateNode, c = b.type; 3749 var f4 = b.memoizedProps; 3750 switch (d[Of] = b, d[Pf] = f4, a3 = (b.mode & 1) !== 0, c) { 3751 case "dialog": 3752 D("cancel", d), D("close", d); 3753 break; 3754 case "iframe": 3755 case "object": 3756 case "embed": 3757 D("load", d); 3758 break; 3759 case "video": 3760 case "audio": 3761 for (e = 0; e < lf.length; e++) D(lf[e], d); 3762 break; 3763 case "source": 3764 D("error", d); 3765 break; 3766 case "img": 3767 case "image": 3768 case "link": 3769 D( 3770 "error", 3771 d 3772 ), D("load", d); 3773 break; 3774 case "details": 3775 D("toggle", d); 3776 break; 3777 case "input": 3778 Za(d, f4), D("invalid", d); 3779 break; 3780 case "select": 3781 d._wrapperState = { wasMultiple: !!f4.multiple }, D("invalid", d); 3782 break; 3783 case "textarea": 3784 hb(d, f4), D("invalid", d); 3785 } 3786 ub(c, f4), e = null; 3787 for (var g2 in f4) if (f4.hasOwnProperty(g2)) { 3788 var h3 = f4[g2]; 3789 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( 3790 d.textContent, 3791 h3, 3792 a3 3793 ), e = ["children", "" + h3]) : ea.hasOwnProperty(g2) && h3 != null && g2 === "onScroll" && D("scroll", d); 3794 } 3795 switch (c) { 3796 case "input": 3797 Va(d), db(d, f4, !0); 3798 break; 3799 case "textarea": 3800 Va(d), jb(d); 3801 break; 3802 case "select": 3803 case "option": 3804 break; 3805 default: 3806 typeof f4.onClick == "function" && (d.onclick = Bf); 3807 } 3808 d = e, b.updateQueue = d, d !== null && (b.flags |= 4); 3809 } else { 3810 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; 3811 a: { 3812 switch (g2 = vb(c, d), c) { 3813 case "dialog": 3814 D("cancel", a3), D("close", a3), e = d; 3815 break; 3816 case "iframe": 3817 case "object": 3818 case "embed": 3819 D("load", a3), e = d; 3820 break; 3821 case "video": 3822 case "audio": 3823 for (e = 0; e < lf.length; e++) D(lf[e], a3); 3824 e = d; 3825 break; 3826 case "source": 3827 D("error", a3), e = d; 3828 break; 3829 case "img": 3830 case "image": 3831 case "link": 3832 D( 3833 "error", 3834 a3 3835 ), D("load", a3), e = d; 3836 break; 3837 case "details": 3838 D("toggle", a3), e = d; 3839 break; 3840 case "input": 3841 Za(a3, d), e = Ya(a3, d), D("invalid", a3); 3842 break; 3843 case "option": 3844 e = d; 3845 break; 3846 case "select": 3847 a3._wrapperState = { wasMultiple: !!d.multiple }, e = A3({}, d, { value: void 0 }), D("invalid", a3); 3848 break; 3849 case "textarea": 3850 hb(a3, d), e = gb(a3, d), D("invalid", a3); 3851 break; 3852 default: 3853 e = d; 3854 } 3855 ub(c, e), h3 = e; 3856 for (f4 in h3) if (h3.hasOwnProperty(f4)) { 3857 var k = h3[f4]; 3858 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)); 3859 } 3860 switch (c) { 3861 case "input": 3862 Va(a3), db(a3, d, !1); 3863 break; 3864 case "textarea": 3865 Va(a3), jb(a3); 3866 break; 3867 case "option": 3868 d.value != null && a3.setAttribute("value", "" + Sa(d.value)); 3869 break; 3870 case "select": 3871 a3.multiple = !!d.multiple, f4 = d.value, f4 != null ? fb(a3, !!d.multiple, f4, !1) : d.defaultValue != null && fb( 3872 a3, 3873 !!d.multiple, 3874 d.defaultValue, 3875 !0 3876 ); 3877 break; 3878 default: 3879 typeof e.onClick == "function" && (a3.onclick = Bf); 3880 } 3881 switch (c) { 3882 case "button": 3883 case "input": 3884 case "select": 3885 case "textarea": 3886 d = !!d.autoFocus; 3887 break a; 3888 case "img": 3889 d = !0; 3890 break a; 3891 default: 3892 d = !1; 3893 } 3894 } 3895 d && (b.flags |= 4); 3896 } 3897 b.ref !== null && (b.flags |= 512, b.flags |= 2097152); 3898 } 3899 return S(b), null; 3900 case 6: 3901 if (a3 && b.stateNode != null) Cj(a3, b, a3.memoizedProps, d); 3902 else { 3903 if (typeof d != "string" && b.stateNode === null) throw Error(p3(166)); 3904 if (c = xh(wh.current), xh(uh.current), Gg(b)) { 3905 if (d = b.stateNode, c = b.memoizedProps, d[Of] = b, (f4 = d.nodeValue !== c) && (a3 = xg, a3 !== null)) switch (a3.tag) { 3906 case 3: 3907 Af(d.nodeValue, c, (a3.mode & 1) !== 0); 3908 break; 3909 case 5: 3910 a3.memoizedProps.suppressHydrationWarning !== !0 && Af(d.nodeValue, c, (a3.mode & 1) !== 0); 3911 } 3912 f4 && (b.flags |= 4); 3913 } else d = (c.nodeType === 9 ? c : c.ownerDocument).createTextNode(d), d[Of] = b, b.stateNode = d; 3914 } 3915 return S(b), null; 3916 case 13: 3917 if (E(L), d = b.memoizedState, a3 === null || a3.memoizedState !== null && a3.memoizedState.dehydrated !== null) { 3918 if (I && yg !== null && (b.mode & 1) !== 0 && (b.flags & 128) === 0) Hg(), Ig(), b.flags |= 98560, f4 = !1; 3919 else if (f4 = Gg(b), d !== null && d.dehydrated !== null) { 3920 if (a3 === null) { 3921 if (!f4) throw Error(p3(318)); 3922 if (f4 = b.memoizedState, f4 = f4 !== null ? f4.dehydrated : null, !f4) throw Error(p3(317)); 3923 f4[Of] = b; 3924 } else Ig(), (b.flags & 128) === 0 && (b.memoizedState = null), b.flags |= 4; 3925 S(b), f4 = !1; 3926 } else zg !== null && (Fj(zg), zg = null), f4 = !0; 3927 if (!f4) return b.flags & 65536 ? b : null; 3928 } 3929 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); 3930 case 4: 3931 return zh(), Aj(a3, b), a3 === null && sf(b.stateNode.containerInfo), S(b), null; 3932 case 10: 3933 return ah(b.type._context), S(b), null; 3934 case 17: 3935 return Zf(b.type) && $f(), S(b), null; 3936 case 19: 3937 if (E(L), f4 = b.memoizedState, f4 === null) return S(b), null; 3938 if (d = (b.flags & 128) !== 0, g2 = f4.rendering, g2 === null) if (d) Dj(f4, !1); 3939 else { 3940 if (T2 !== 0 || a3 !== null && (a3.flags & 128) !== 0) for (a3 = b.child; a3 !== null; ) { 3941 if (g2 = Ch(a3), g2 !== null) { 3942 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; 3943 return G(L, L.current & 1 | 2), b.child; 3944 } 3945 a3 = a3.sibling; 3946 } 3947 f4.tail !== null && B3() > Gj && (b.flags |= 128, d = !0, Dj(f4, !1), b.lanes = 4194304); 3948 } 3949 else { 3950 if (!d) if (a3 = Ch(g2), a3 !== null) { 3951 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; 3952 } else 2 * B3() - f4.renderingStartTime > Gj && c !== 1073741824 && (b.flags |= 128, d = !0, Dj(f4, !1), b.lanes = 4194304); 3953 f4.isBackwards ? (g2.sibling = b.child, b.child = g2) : (c = f4.last, c !== null ? c.sibling = g2 : b.child = g2, f4.last = g2); 3954 } 3955 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); 3956 case 22: 3957 case 23: 3958 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; 3959 case 24: 3960 return null; 3961 case 25: 3962 return null; 3963 } 3964 throw Error(p3(156, b.tag)); 3965 } 3966 function Ij(a3, b) { 3967 switch (wg(b), b.tag) { 3968 case 1: 3969 return Zf(b.type) && $f(), a3 = b.flags, a3 & 65536 ? (b.flags = a3 & -65537 | 128, b) : null; 3970 case 3: 3971 return zh(), E(Wf), E(H), Eh(), a3 = b.flags, (a3 & 65536) !== 0 && (a3 & 128) === 0 ? (b.flags = a3 & -65537 | 128, b) : null; 3972 case 5: 3973 return Bh(b), null; 3974 case 13: 3975 if (E(L), a3 = b.memoizedState, a3 !== null && a3.dehydrated !== null) { 3976 if (b.alternate === null) throw Error(p3(340)); 3977 Ig(); 3978 } 3979 return a3 = b.flags, a3 & 65536 ? (b.flags = a3 & -65537 | 128, b) : null; 3980 case 19: 3981 return E(L), null; 3982 case 4: 3983 return zh(), null; 3984 case 10: 3985 return ah(b.type._context), null; 3986 case 22: 3987 case 23: 3988 return Hj(), null; 3989 case 24: 3990 return null; 3991 default: 3992 return null; 3993 } 3994 } 3995 var Jj = !1, U = !1, Kj = typeof WeakSet == "function" ? WeakSet : Set, V = null; 3996 function Lj(a3, b) { 3997 var c = a3.ref; 3998 if (c !== null) if (typeof c == "function") try { 3999 c(null); 4000 } catch (d) { 4001 W(a3, b, d); 4002 } 4003 else c.current = null; 4004 } 4005 function Mj(a3, b, c) { 4006 try { 4007 c(); 4008 } catch (d) { 4009 W(a3, b, d); 4010 } 4011 } 4012 var Nj = !1; 4013 function Oj(a3, b) { 4014 if (Cf = dd, a3 = Me(), Ne(a3)) { 4015 if ("selectionStart" in a3) var c = { start: a3.selectionStart, end: a3.selectionEnd }; 4016 else a: { 4017 c = (c = a3.ownerDocument) && c.defaultView || window; 4018 var d = c.getSelection && c.getSelection(); 4019 if (d && d.rangeCount !== 0) { 4020 c = d.anchorNode; 4021 var e = d.anchorOffset, f4 = d.focusNode; 4022 d = d.focusOffset; 4023 try { 4024 c.nodeType, f4.nodeType; 4025 } catch { 4026 c = null; 4027 break a; 4028 } 4029 var g2 = 0, h3 = -1, k = -1, l = 0, m3 = 0, q = a3, r2 = null; 4030 b: for (; ; ) { 4031 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; ) 4032 r2 = q, q = y; 4033 for (; ; ) { 4034 if (q === a3) break b; 4035 if (r2 === c && ++l === e && (h3 = g2), r2 === f4 && ++m3 === d && (k = g2), (y = q.nextSibling) !== null) break; 4036 q = r2, r2 = q.parentNode; 4037 } 4038 q = y; 4039 } 4040 c = h3 === -1 || k === -1 ? null : { start: h3, end: k }; 4041 } else c = null; 4042 } 4043 c = c || { start: 0, end: 0 }; 4044 } else c = null; 4045 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; 4046 else for (; V !== null; ) { 4047 b = V; 4048 try { 4049 var n = b.alternate; 4050 if ((b.flags & 1024) !== 0) switch (b.tag) { 4051 case 0: 4052 case 11: 4053 case 15: 4054 break; 4055 case 1: 4056 if (n !== null) { 4057 var t = n.memoizedProps, J = n.memoizedState, x = b.stateNode, w = x.getSnapshotBeforeUpdate(b.elementType === b.type ? t : Ci(b.type, t), J); 4058 x.__reactInternalSnapshotBeforeUpdate = w; 4059 } 4060 break; 4061 case 3: 4062 var u2 = b.stateNode.containerInfo; 4063 u2.nodeType === 1 ? u2.textContent = "" : u2.nodeType === 9 && u2.documentElement && u2.removeChild(u2.documentElement); 4064 break; 4065 case 5: 4066 case 6: 4067 case 4: 4068 case 17: 4069 break; 4070 default: 4071 throw Error(p3(163)); 4072 } 4073 } catch (F) { 4074 W(b, b.return, F); 4075 } 4076 if (a3 = b.sibling, a3 !== null) { 4077 a3.return = b.return, V = a3; 4078 break; 4079 } 4080 V = b.return; 4081 } 4082 return n = Nj, Nj = !1, n; 4083 } 4084 function Pj(a3, b, c) { 4085 var d = b.updateQueue; 4086 if (d = d !== null ? d.lastEffect : null, d !== null) { 4087 var e = d = d.next; 4088 do { 4089 if ((e.tag & a3) === a3) { 4090 var f4 = e.destroy; 4091 e.destroy = void 0, f4 !== void 0 && Mj(b, c, f4); 4092 } 4093 e = e.next; 4094 } while (e !== d); 4095 } 4096 } 4097 function Qj(a3, b) { 4098 if (b = b.updateQueue, b = b !== null ? b.lastEffect : null, b !== null) { 4099 var c = b = b.next; 4100 do { 4101 if ((c.tag & a3) === a3) { 4102 var d = c.create; 4103 c.destroy = d(); 4104 } 4105 c = c.next; 4106 } while (c !== b); 4107 } 4108 } 4109 function Rj(a3) { 4110 var b = a3.ref; 4111 if (b !== null) { 4112 var c = a3.stateNode; 4113 switch (a3.tag) { 4114 case 5: 4115 a3 = c; 4116 break; 4117 default: 4118 a3 = c; 4119 } 4120 typeof b == "function" ? b(a3) : b.current = a3; 4121 } 4122 } 4123 function Sj(a3) { 4124 var b = a3.alternate; 4125 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; 4126 } 4127 function Tj(a3) { 4128 return a3.tag === 5 || a3.tag === 3 || a3.tag === 4; 4129 } 4130 function Uj(a3) { 4131 a: for (; ; ) { 4132 for (; a3.sibling === null; ) { 4133 if (a3.return === null || Tj(a3.return)) return null; 4134 a3 = a3.return; 4135 } 4136 for (a3.sibling.return = a3.return, a3 = a3.sibling; a3.tag !== 5 && a3.tag !== 6 && a3.tag !== 18; ) { 4137 if (a3.flags & 2 || a3.child === null || a3.tag === 4) continue a; 4138 a3.child.return = a3, a3 = a3.child; 4139 } 4140 if (!(a3.flags & 2)) return a3.stateNode; 4141 } 4142 } 4143 function Vj(a3, b, c) { 4144 var d = a3.tag; 4145 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)); 4146 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; 4147 } 4148 function Wj(a3, b, c) { 4149 var d = a3.tag; 4150 if (d === 5 || d === 6) a3 = a3.stateNode, b ? c.insertBefore(a3, b) : c.appendChild(a3); 4151 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; 4152 } 4153 var X = null, Xj = !1; 4154 function Yj(a3, b, c) { 4155 for (c = c.child; c !== null; ) Zj(a3, b, c), c = c.sibling; 4156 } 4157 function Zj(a3, b, c) { 4158 if (lc && typeof lc.onCommitFiberUnmount == "function") try { 4159 lc.onCommitFiberUnmount(kc, c); 4160 } catch { 4161 } 4162 switch (c.tag) { 4163 case 5: 4164 U || Lj(c, b); 4165 case 6: 4166 var d = X, e = Xj; 4167 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)); 4168 break; 4169 case 18: 4170 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)); 4171 break; 4172 case 4: 4173 d = X, e = Xj, X = c.stateNode.containerInfo, Xj = !0, Yj(a3, b, c), X = d, Xj = e; 4174 break; 4175 case 0: 4176 case 11: 4177 case 14: 4178 case 15: 4179 if (!U && (d = c.updateQueue, d !== null && (d = d.lastEffect, d !== null))) { 4180 e = d = d.next; 4181 do { 4182 var f4 = e, g2 = f4.destroy; 4183 f4 = f4.tag, g2 !== void 0 && ((f4 & 2) !== 0 || (f4 & 4) !== 0) && Mj(c, b, g2), e = e.next; 4184 } while (e !== d); 4185 } 4186 Yj(a3, b, c); 4187 break; 4188 case 1: 4189 if (!U && (Lj(c, b), d = c.stateNode, typeof d.componentWillUnmount == "function")) try { 4190 d.props = c.memoizedProps, d.state = c.memoizedState, d.componentWillUnmount(); 4191 } catch (h3) { 4192 W(c, b, h3); 4193 } 4194 Yj(a3, b, c); 4195 break; 4196 case 21: 4197 Yj(a3, b, c); 4198 break; 4199 case 22: 4200 c.mode & 1 ? (U = (d = U) || c.memoizedState !== null, Yj(a3, b, c), U = d) : Yj(a3, b, c); 4201 break; 4202 default: 4203 Yj(a3, b, c); 4204 } 4205 } 4206 function ak(a3) { 4207 var b = a3.updateQueue; 4208 if (b !== null) { 4209 a3.updateQueue = null; 4210 var c = a3.stateNode; 4211 c === null && (c = a3.stateNode = new Kj()), b.forEach(function(b2) { 4212 var d = bk.bind(null, a3, b2); 4213 c.has(b2) || (c.add(b2), b2.then(d, d)); 4214 }); 4215 } 4216 } 4217 function ck(a3, b) { 4218 var c = b.deletions; 4219 if (c !== null) for (var d = 0; d < c.length; d++) { 4220 var e = c[d]; 4221 try { 4222 var f4 = a3, g2 = b, h3 = g2; 4223 a: for (; h3 !== null; ) { 4224 switch (h3.tag) { 4225 case 5: 4226 X = h3.stateNode, Xj = !1; 4227 break a; 4228 case 3: 4229 X = h3.stateNode.containerInfo, Xj = !0; 4230 break a; 4231 case 4: 4232 X = h3.stateNode.containerInfo, Xj = !0; 4233 break a; 4234 } 4235 h3 = h3.return; 4236 } 4237 if (X === null) throw Error(p3(160)); 4238 Zj(f4, g2, e), X = null, Xj = !1; 4239 var k = e.alternate; 4240 k !== null && (k.return = null), e.return = null; 4241 } catch (l) { 4242 W(e, b, l); 4243 } 4244 } 4245 if (b.subtreeFlags & 12854) for (b = b.child; b !== null; ) dk(b, a3), b = b.sibling; 4246 } 4247 function dk(a3, b) { 4248 var c = a3.alternate, d = a3.flags; 4249 switch (a3.tag) { 4250 case 0: 4251 case 11: 4252 case 14: 4253 case 15: 4254 if (ck(b, a3), ek(a3), d & 4) { 4255 try { 4256 Pj(3, a3, a3.return), Qj(3, a3); 4257 } catch (t) { 4258 W(a3, a3.return, t); 4259 } 4260 try { 4261 Pj(5, a3, a3.return); 4262 } catch (t) { 4263 W(a3, a3.return, t); 4264 } 4265 } 4266 break; 4267 case 1: 4268 ck(b, a3), ek(a3), d & 512 && c !== null && Lj(c, c.return); 4269 break; 4270 case 5: 4271 if (ck(b, a3), ek(a3), d & 512 && c !== null && Lj(c, c.return), a3.flags & 32) { 4272 var e = a3.stateNode; 4273 try { 4274 ob(e, ""); 4275 } catch (t) { 4276 W(a3, a3.return, t); 4277 } 4278 } 4279 if (d & 4 && (e = a3.stateNode, e != null)) { 4280 var f4 = a3.memoizedProps, g2 = c !== null ? c.memoizedProps : f4, h3 = a3.type, k = a3.updateQueue; 4281 if (a3.updateQueue = null, k !== null) try { 4282 h3 === "input" && f4.type === "radio" && f4.name != null && ab(e, f4), vb(h3, g2); 4283 var l = vb(h3, f4); 4284 for (g2 = 0; g2 < k.length; g2 += 2) { 4285 var m3 = k[g2], q = k[g2 + 1]; 4286 m3 === "style" ? sb2(e, q) : m3 === "dangerouslySetInnerHTML" ? nb(e, q) : m3 === "children" ? ob(e, q) : ta(e, m3, q, l); 4287 } 4288 switch (h3) { 4289 case "input": 4290 bb(e, f4); 4291 break; 4292 case "textarea": 4293 ib(e, f4); 4294 break; 4295 case "select": 4296 var r2 = e._wrapperState.wasMultiple; 4297 e._wrapperState.wasMultiple = !!f4.multiple; 4298 var y = f4.value; 4299 y != null ? fb(e, !!f4.multiple, y, !1) : r2 !== !!f4.multiple && (f4.defaultValue != null ? fb( 4300 e, 4301 !!f4.multiple, 4302 f4.defaultValue, 4303 !0 4304 ) : fb(e, !!f4.multiple, f4.multiple ? [] : "", !1)); 4305 } 4306 e[Pf] = f4; 4307 } catch (t) { 4308 W(a3, a3.return, t); 4309 } 4310 } 4311 break; 4312 case 6: 4313 if (ck(b, a3), ek(a3), d & 4) { 4314 if (a3.stateNode === null) throw Error(p3(162)); 4315 e = a3.stateNode, f4 = a3.memoizedProps; 4316 try { 4317 e.nodeValue = f4; 4318 } catch (t) { 4319 W(a3, a3.return, t); 4320 } 4321 } 4322 break; 4323 case 3: 4324 if (ck(b, a3), ek(a3), d & 4 && c !== null && c.memoizedState.isDehydrated) try { 4325 bd(b.containerInfo); 4326 } catch (t) { 4327 W(a3, a3.return, t); 4328 } 4329 break; 4330 case 4: 4331 ck(b, a3), ek(a3); 4332 break; 4333 case 13: 4334 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); 4335 break; 4336 case 22: 4337 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) { 4338 if (l = a3.memoizedState !== null, (a3.stateNode.isHidden = l) && !m3 && (a3.mode & 1) !== 0) for (V = a3, m3 = a3.child; m3 !== null; ) { 4339 for (q = V = m3; V !== null; ) { 4340 switch (r2 = V, y = r2.child, r2.tag) { 4341 case 0: 4342 case 11: 4343 case 14: 4344 case 15: 4345 Pj(4, r2, r2.return); 4346 break; 4347 case 1: 4348 Lj(r2, r2.return); 4349 var n = r2.stateNode; 4350 if (typeof n.componentWillUnmount == "function") { 4351 d = r2, c = r2.return; 4352 try { 4353 b = d, n.props = b.memoizedProps, n.state = b.memoizedState, n.componentWillUnmount(); 4354 } catch (t) { 4355 W(d, c, t); 4356 } 4357 } 4358 break; 4359 case 5: 4360 Lj(r2, r2.return); 4361 break; 4362 case 22: 4363 if (r2.memoizedState !== null) { 4364 gk(q); 4365 continue; 4366 } 4367 } 4368 y !== null ? (y.return = r2, V = y) : gk(q); 4369 } 4370 m3 = m3.sibling; 4371 } 4372 a: for (m3 = null, q = a3; ; ) { 4373 if (q.tag === 5) { 4374 if (m3 === null) { 4375 m3 = q; 4376 try { 4377 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)); 4378 } catch (t) { 4379 W(a3, a3.return, t); 4380 } 4381 } 4382 } else if (q.tag === 6) { 4383 if (m3 === null) try { 4384 q.stateNode.nodeValue = l ? "" : q.memoizedProps; 4385 } catch (t) { 4386 W(a3, a3.return, t); 4387 } 4388 } else if ((q.tag !== 22 && q.tag !== 23 || q.memoizedState === null || q === a3) && q.child !== null) { 4389 q.child.return = q, q = q.child; 4390 continue; 4391 } 4392 if (q === a3) break a; 4393 for (; q.sibling === null; ) { 4394 if (q.return === null || q.return === a3) break a; 4395 m3 === q && (m3 = null), q = q.return; 4396 } 4397 m3 === q && (m3 = null), q.sibling.return = q.return, q = q.sibling; 4398 } 4399 } 4400 break; 4401 case 19: 4402 ck(b, a3), ek(a3), d & 4 && ak(a3); 4403 break; 4404 case 21: 4405 break; 4406 default: 4407 ck( 4408 b, 4409 a3 4410 ), ek(a3); 4411 } 4412 } 4413 function ek(a3) { 4414 var b = a3.flags; 4415 if (b & 2) { 4416 try { 4417 a: { 4418 for (var c = a3.return; c !== null; ) { 4419 if (Tj(c)) { 4420 var d = c; 4421 break a; 4422 } 4423 c = c.return; 4424 } 4425 throw Error(p3(160)); 4426 } 4427 switch (d.tag) { 4428 case 5: 4429 var e = d.stateNode; 4430 d.flags & 32 && (ob(e, ""), d.flags &= -33); 4431 var f4 = Uj(a3); 4432 Wj(a3, f4, e); 4433 break; 4434 case 3: 4435 case 4: 4436 var g2 = d.stateNode.containerInfo, h3 = Uj(a3); 4437 Vj(a3, h3, g2); 4438 break; 4439 default: 4440 throw Error(p3(161)); 4441 } 4442 } catch (k) { 4443 W(a3, a3.return, k); 4444 } 4445 a3.flags &= -3; 4446 } 4447 b & 4096 && (a3.flags &= -4097); 4448 } 4449 function hk(a3, b, c) { 4450 V = a3, ik(a3, b, c); 4451 } 4452 function ik(a3, b, c) { 4453 for (var d = (a3.mode & 1) !== 0; V !== null; ) { 4454 var e = V, f4 = e.child; 4455 if (e.tag === 22 && d) { 4456 var g2 = e.memoizedState !== null || Jj; 4457 if (!g2) { 4458 var h3 = e.alternate, k = h3 !== null && h3.memoizedState !== null || U; 4459 h3 = Jj; 4460 var l = U; 4461 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); 4462 for (; f4 !== null; ) V = f4, ik(f4, b, c), f4 = f4.sibling; 4463 V = e, Jj = h3, U = l; 4464 } 4465 kk(a3, b, c); 4466 } else (e.subtreeFlags & 8772) !== 0 && f4 !== null ? (f4.return = e, V = f4) : kk(a3, b, c); 4467 } 4468 } 4469 function kk(a3) { 4470 for (; V !== null; ) { 4471 var b = V; 4472 if ((b.flags & 8772) !== 0) { 4473 var c = b.alternate; 4474 try { 4475 if ((b.flags & 8772) !== 0) switch (b.tag) { 4476 case 0: 4477 case 11: 4478 case 15: 4479 U || Qj(5, b); 4480 break; 4481 case 1: 4482 var d = b.stateNode; 4483 if (b.flags & 4 && !U) if (c === null) d.componentDidMount(); 4484 else { 4485 var e = b.elementType === b.type ? c.memoizedProps : Ci(b.type, c.memoizedProps); 4486 d.componentDidUpdate(e, c.memoizedState, d.__reactInternalSnapshotBeforeUpdate); 4487 } 4488 var f4 = b.updateQueue; 4489 f4 !== null && sh(b, f4, d); 4490 break; 4491 case 3: 4492 var g2 = b.updateQueue; 4493 if (g2 !== null) { 4494 if (c = null, b.child !== null) switch (b.child.tag) { 4495 case 5: 4496 c = b.child.stateNode; 4497 break; 4498 case 1: 4499 c = b.child.stateNode; 4500 } 4501 sh(b, g2, c); 4502 } 4503 break; 4504 case 5: 4505 var h3 = b.stateNode; 4506 if (c === null && b.flags & 4) { 4507 c = h3; 4508 var k = b.memoizedProps; 4509 switch (b.type) { 4510 case "button": 4511 case "input": 4512 case "select": 4513 case "textarea": 4514 k.autoFocus && c.focus(); 4515 break; 4516 case "img": 4517 k.src && (c.src = k.src); 4518 } 4519 } 4520 break; 4521 case 6: 4522 break; 4523 case 4: 4524 break; 4525 case 12: 4526 break; 4527 case 13: 4528 if (b.memoizedState === null) { 4529 var l = b.alternate; 4530 if (l !== null) { 4531 var m3 = l.memoizedState; 4532 if (m3 !== null) { 4533 var q = m3.dehydrated; 4534 q !== null && bd(q); 4535 } 4536 } 4537 } 4538 break; 4539 case 19: 4540 case 17: 4541 case 21: 4542 case 22: 4543 case 23: 4544 case 25: 4545 break; 4546 default: 4547 throw Error(p3(163)); 4548 } 4549 U || b.flags & 512 && Rj(b); 4550 } catch (r2) { 4551 W(b, b.return, r2); 4552 } 4553 } 4554 if (b === a3) { 4555 V = null; 4556 break; 4557 } 4558 if (c = b.sibling, c !== null) { 4559 c.return = b.return, V = c; 4560 break; 4561 } 4562 V = b.return; 4563 } 4564 } 4565 function gk(a3) { 4566 for (; V !== null; ) { 4567 var b = V; 4568 if (b === a3) { 4569 V = null; 4570 break; 4571 } 4572 var c = b.sibling; 4573 if (c !== null) { 4574 c.return = b.return, V = c; 4575 break; 4576 } 4577 V = b.return; 4578 } 4579 } 4580 function jk(a3) { 4581 for (; V !== null; ) { 4582 var b = V; 4583 try { 4584 switch (b.tag) { 4585 case 0: 4586 case 11: 4587 case 15: 4588 var c = b.return; 4589 try { 4590 Qj(4, b); 4591 } catch (k) { 4592 W(b, c, k); 4593 } 4594 break; 4595 case 1: 4596 var d = b.stateNode; 4597 if (typeof d.componentDidMount == "function") { 4598 var e = b.return; 4599 try { 4600 d.componentDidMount(); 4601 } catch (k) { 4602 W(b, e, k); 4603 } 4604 } 4605 var f4 = b.return; 4606 try { 4607 Rj(b); 4608 } catch (k) { 4609 W(b, f4, k); 4610 } 4611 break; 4612 case 5: 4613 var g2 = b.return; 4614 try { 4615 Rj(b); 4616 } catch (k) { 4617 W(b, g2, k); 4618 } 4619 } 4620 } catch (k) { 4621 W(b, b.return, k); 4622 } 4623 if (b === a3) { 4624 V = null; 4625 break; 4626 } 4627 var h3 = b.sibling; 4628 if (h3 !== null) { 4629 h3.return = b.return, V = h3; 4630 break; 4631 } 4632 V = b.return; 4633 } 4634 } 4635 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; 4636 function R() { 4637 return (K2 & 6) !== 0 ? B3() : Ak !== -1 ? Ak : Ak = B3(); 4638 } 4639 function yi(a3) { 4640 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); 4641 } 4642 function gi(a3, b, c, d) { 4643 if (50 < yk) throw yk = 0, zk = null, Error(p3(185)); 4644 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())); 4645 } 4646 function Dk(a3, b) { 4647 var c = a3.callbackNode; 4648 wc(a3, b); 4649 var d = uc(a3, a3 === Q ? Z : 0); 4650 if (d === 0) c !== null && bc(c), a3.callbackNode = null, a3.callbackPriority = 0; 4651 else if (b = d & -d, a3.callbackPriority !== b) { 4652 if (c != null && bc(c), b === 1) a3.tag === 0 ? ig(Ek.bind(null, a3)) : hg(Ek.bind(null, a3)), Jf(function() { 4653 (K2 & 6) === 0 && jg(); 4654 }), c = null; 4655 else { 4656 switch (Dc(d)) { 4657 case 1: 4658 c = fc; 4659 break; 4660 case 4: 4661 c = gc; 4662 break; 4663 case 16: 4664 c = hc; 4665 break; 4666 case 536870912: 4667 c = jc; 4668 break; 4669 default: 4670 c = hc; 4671 } 4672 c = Fk(c, Gk.bind(null, a3)); 4673 } 4674 a3.callbackPriority = b, a3.callbackNode = c; 4675 } 4676 } 4677 function Gk(a3, b) { 4678 if (Ak = -1, Bk = 0, (K2 & 6) !== 0) throw Error(p3(327)); 4679 var c = a3.callbackNode; 4680 if (Hk() && a3.callbackNode !== c) return null; 4681 var d = uc(a3, a3 === Q ? Z : 0); 4682 if (d === 0) return null; 4683 if ((d & 30) !== 0 || (d & a3.expiredLanes) !== 0 || b) b = Ik(a3, d); 4684 else { 4685 b = d; 4686 var e = K2; 4687 K2 |= 2; 4688 var f4 = Jk(); 4689 (Q !== a3 || Z !== b) && (uk = null, Gj = B3() + 500, Kk(a3, b)); 4690 do 4691 try { 4692 Lk(); 4693 break; 4694 } catch (h3) { 4695 Mk(a3, h3); 4696 } 4697 while (!0); 4698 $g(), mk.current = f4, K2 = e, Y !== null ? b = 0 : (Q = null, Z = 0, b = T2); 4699 } 4700 if (b !== 0) { 4701 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; 4702 if (b === 6) Ck(a3, d); 4703 else { 4704 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; 4705 switch (a3.finishedWork = e, a3.finishedLanes = d, b) { 4706 case 0: 4707 case 1: 4708 throw Error(p3(345)); 4709 case 2: 4710 Pk(a3, tk, uk); 4711 break; 4712 case 3: 4713 if (Ck(a3, d), (d & 130023424) === d && (b = fk + 500 - B3(), 10 < b)) { 4714 if (uc(a3, 0) !== 0) break; 4715 if (e = a3.suspendedLanes, (e & d) !== d) { 4716 R(), a3.pingedLanes |= a3.suspendedLanes & e; 4717 break; 4718 } 4719 a3.timeoutHandle = Ff(Pk.bind(null, a3, tk, uk), b); 4720 break; 4721 } 4722 Pk(a3, tk, uk); 4723 break; 4724 case 4: 4725 if (Ck(a3, d), (d & 4194240) === d) break; 4726 for (b = a3.eventTimes, e = -1; 0 < d; ) { 4727 var g2 = 31 - oc(d); 4728 f4 = 1 << g2, g2 = b[g2], g2 > e && (e = g2), d &= ~f4; 4729 } 4730 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) { 4731 a3.timeoutHandle = Ff(Pk.bind(null, a3, tk, uk), d); 4732 break; 4733 } 4734 Pk(a3, tk, uk); 4735 break; 4736 case 5: 4737 Pk(a3, tk, uk); 4738 break; 4739 default: 4740 throw Error(p3(329)); 4741 } 4742 } 4743 } 4744 return Dk(a3, B3()), a3.callbackNode === c ? Gk.bind(null, a3) : null; 4745 } 4746 function Nk(a3, b) { 4747 var c = sk; 4748 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; 4749 } 4750 function Fj(a3) { 4751 tk === null ? tk = a3 : tk.push.apply(tk, a3); 4752 } 4753 function Ok(a3) { 4754 for (var b = a3; ; ) { 4755 if (b.flags & 16384) { 4756 var c = b.updateQueue; 4757 if (c !== null && (c = c.stores, c !== null)) for (var d = 0; d < c.length; d++) { 4758 var e = c[d], f4 = e.getSnapshot; 4759 e = e.value; 4760 try { 4761 if (!He(f4(), e)) return !1; 4762 } catch { 4763 return !1; 4764 } 4765 } 4766 } 4767 if (c = b.child, b.subtreeFlags & 16384 && c !== null) c.return = b, b = c; 4768 else { 4769 if (b === a3) break; 4770 for (; b.sibling === null; ) { 4771 if (b.return === null || b.return === a3) return !0; 4772 b = b.return; 4773 } 4774 b.sibling.return = b.return, b = b.sibling; 4775 } 4776 } 4777 return !0; 4778 } 4779 function Ck(a3, b) { 4780 for (b &= ~rk, b &= ~qk, a3.suspendedLanes |= b, a3.pingedLanes &= ~b, a3 = a3.expirationTimes; 0 < b; ) { 4781 var c = 31 - oc(b), d = 1 << c; 4782 a3[c] = -1, b &= ~d; 4783 } 4784 } 4785 function Ek(a3) { 4786 if ((K2 & 6) !== 0) throw Error(p3(327)); 4787 Hk(); 4788 var b = uc(a3, 0); 4789 if ((b & 1) === 0) return Dk(a3, B3()), null; 4790 var c = Ik(a3, b); 4791 if (a3.tag !== 0 && c === 2) { 4792 var d = xc(a3); 4793 d !== 0 && (b = d, c = Nk(a3, d)); 4794 } 4795 if (c === 1) throw c = pk, Kk(a3, 0), Ck(a3, b), Dk(a3, B3()), c; 4796 if (c === 6) throw Error(p3(345)); 4797 return a3.finishedWork = a3.current.alternate, a3.finishedLanes = b, Pk(a3, tk, uk), Dk(a3, B3()), null; 4798 } 4799 function Qk(a3, b) { 4800 var c = K2; 4801 K2 |= 1; 4802 try { 4803 return a3(b); 4804 } finally { 4805 K2 = c, K2 === 0 && (Gj = B3() + 500, fg && jg()); 4806 } 4807 } 4808 function Rk(a3) { 4809 wk !== null && wk.tag === 0 && (K2 & 6) === 0 && Hk(); 4810 var b = K2; 4811 K2 |= 1; 4812 var c = ok.transition, d = C3; 4813 try { 4814 if (ok.transition = null, C3 = 1, a3) return a3(); 4815 } finally { 4816 C3 = d, ok.transition = c, K2 = b, (K2 & 6) === 0 && jg(); 4817 } 4818 } 4819 function Hj() { 4820 fj = ej.current, E(ej); 4821 } 4822 function Kk(a3, b) { 4823 a3.finishedWork = null, a3.finishedLanes = 0; 4824 var c = a3.timeoutHandle; 4825 if (c !== -1 && (a3.timeoutHandle = -1, Gf(c)), Y !== null) for (c = Y.return; c !== null; ) { 4826 var d = c; 4827 switch (wg(d), d.tag) { 4828 case 1: 4829 d = d.type.childContextTypes, d != null && $f(); 4830 break; 4831 case 3: 4832 zh(), E(Wf), E(H), Eh(); 4833 break; 4834 case 5: 4835 Bh(d); 4836 break; 4837 case 4: 4838 zh(); 4839 break; 4840 case 13: 4841 E(L); 4842 break; 4843 case 19: 4844 E(L); 4845 break; 4846 case 10: 4847 ah(d.type._context); 4848 break; 4849 case 22: 4850 case 23: 4851 Hj(); 4852 } 4853 c = c.return; 4854 } 4855 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) { 4856 for (b = 0; b < fh.length; b++) if (c = fh[b], d = c.interleaved, d !== null) { 4857 c.interleaved = null; 4858 var e = d.next, f4 = c.pending; 4859 if (f4 !== null) { 4860 var g2 = f4.next; 4861 f4.next = e, d.next = g2; 4862 } 4863 c.pending = d; 4864 } 4865 fh = null; 4866 } 4867 return a3; 4868 } 4869 function Mk(a3, b) { 4870 do { 4871 var c = Y; 4872 try { 4873 if ($g(), Fh.current = Rh, Ih) { 4874 for (var d = M.memoizedState; d !== null; ) { 4875 var e = d.queue; 4876 e !== null && (e.pending = null), d = d.next; 4877 } 4878 Ih = !1; 4879 } 4880 if (Hh = 0, O = N = M = null, Jh = !1, Kh = 0, nk.current = null, c === null || c.return === null) { 4881 T2 = 1, pk = b, Y = null; 4882 break; 4883 } 4884 a: { 4885 var f4 = a3, g2 = c.return, h3 = c, k = b; 4886 if (b = Z, h3.flags |= 32768, k !== null && typeof k == "object" && typeof k.then == "function") { 4887 var l = k, m3 = h3, q = m3.tag; 4888 if ((m3.mode & 1) === 0 && (q === 0 || q === 11 || q === 15)) { 4889 var r2 = m3.alternate; 4890 r2 ? (m3.updateQueue = r2.updateQueue, m3.memoizedState = r2.memoizedState, m3.lanes = r2.lanes) : (m3.updateQueue = null, m3.memoizedState = null); 4891 } 4892 var y = Ui(g2); 4893 if (y !== null) { 4894 y.flags &= -257, Vi(y, g2, h3, f4, b), y.mode & 1 && Si(f4, l, b), b = y, k = l; 4895 var n = b.updateQueue; 4896 if (n === null) { 4897 var t = /* @__PURE__ */ new Set(); 4898 t.add(k), b.updateQueue = t; 4899 } else n.add(k); 4900 break a; 4901 } else { 4902 if ((b & 1) === 0) { 4903 Si(f4, l, b), tj(); 4904 break a; 4905 } 4906 k = Error(p3(426)); 4907 } 4908 } else if (I && h3.mode & 1) { 4909 var J = Ui(g2); 4910 if (J !== null) { 4911 (J.flags & 65536) === 0 && (J.flags |= 256), Vi(J, g2, h3, f4, b), Jg(Ji(k, h3)); 4912 break a; 4913 } 4914 } 4915 f4 = k = Ji(k, h3), T2 !== 4 && (T2 = 2), sk === null ? sk = [f4] : sk.push(f4), f4 = g2; 4916 do { 4917 switch (f4.tag) { 4918 case 3: 4919 f4.flags |= 65536, b &= -b, f4.lanes |= b; 4920 var x = Ni(f4, k, b); 4921 ph(f4, x); 4922 break a; 4923 case 1: 4924 h3 = k; 4925 var w = f4.type, u2 = f4.stateNode; 4926 if ((f4.flags & 128) === 0 && (typeof w.getDerivedStateFromError == "function" || u2 !== null && typeof u2.componentDidCatch == "function" && (Ri === null || !Ri.has(u2)))) { 4927 f4.flags |= 65536, b &= -b, f4.lanes |= b; 4928 var F = Qi(f4, h3, b); 4929 ph(f4, F); 4930 break a; 4931 } 4932 } 4933 f4 = f4.return; 4934 } while (f4 !== null); 4935 } 4936 Sk(c); 4937 } catch (na) { 4938 b = na, Y === c && c !== null && (Y = c = c.return); 4939 continue; 4940 } 4941 break; 4942 } while (!0); 4943 } 4944 function Jk() { 4945 var a3 = mk.current; 4946 return mk.current = Rh, a3 === null ? Rh : a3; 4947 } 4948 function tj() { 4949 (T2 === 0 || T2 === 3 || T2 === 2) && (T2 = 4), Q === null || (rh & 268435455) === 0 && (qk & 268435455) === 0 || Ck(Q, Z); 4950 } 4951 function Ik(a3, b) { 4952 var c = K2; 4953 K2 |= 2; 4954 var d = Jk(); 4955 (Q !== a3 || Z !== b) && (uk = null, Kk(a3, b)); 4956 do 4957 try { 4958 Tk(); 4959 break; 4960 } catch (e) { 4961 Mk(a3, e); 4962 } 4963 while (!0); 4964 if ($g(), K2 = c, mk.current = d, Y !== null) throw Error(p3(261)); 4965 return Q = null, Z = 0, T2; 4966 } 4967 function Tk() { 4968 for (; Y !== null; ) Uk(Y); 4969 } 4970 function Lk() { 4971 for (; Y !== null && !cc(); ) Uk(Y); 4972 } 4973 function Uk(a3) { 4974 var b = Vk(a3.alternate, a3, fj); 4975 a3.memoizedProps = a3.pendingProps, b === null ? Sk(a3) : Y = b, nk.current = null; 4976 } 4977 function Sk(a3) { 4978 var b = a3; 4979 do { 4980 var c = b.alternate; 4981 if (a3 = b.return, (b.flags & 32768) === 0) { 4982 if (c = Ej(c, b, fj), c !== null) { 4983 Y = c; 4984 return; 4985 } 4986 } else { 4987 if (c = Ij(c, b), c !== null) { 4988 c.flags &= 32767, Y = c; 4989 return; 4990 } 4991 if (a3 !== null) a3.flags |= 32768, a3.subtreeFlags = 0, a3.deletions = null; 4992 else { 4993 T2 = 6, Y = null; 4994 return; 4995 } 4996 } 4997 if (b = b.sibling, b !== null) { 4998 Y = b; 4999 return; 5000 } 5001 Y = b = a3; 5002 } while (b !== null); 5003 T2 === 0 && (T2 = 5); 5004 } 5005 function Pk(a3, b, c) { 5006 var d = C3, e = ok.transition; 5007 try { 5008 ok.transition = null, C3 = 1, Wk(a3, b, c, d); 5009 } finally { 5010 ok.transition = e, C3 = d; 5011 } 5012 return null; 5013 } 5014 function Wk(a3, b, c, d) { 5015 do 5016 Hk(); 5017 while (wk !== null); 5018 if ((K2 & 6) !== 0) throw Error(p3(327)); 5019 c = a3.finishedWork; 5020 var e = a3.finishedLanes; 5021 if (c === null) return null; 5022 if (a3.finishedWork = null, a3.finishedLanes = 0, c === a3.current) throw Error(p3(177)); 5023 a3.callbackNode = null, a3.callbackPriority = 0; 5024 var f4 = c.lanes | c.childLanes; 5025 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() { 5026 return Hk(), null; 5027 })), f4 = (c.flags & 15990) !== 0, (c.subtreeFlags & 15990) !== 0 || f4) { 5028 f4 = ok.transition, ok.transition = null; 5029 var g2 = C3; 5030 C3 = 1; 5031 var h3 = K2; 5032 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; 5033 } else a3.current = c; 5034 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 }); 5035 if (Oi) throw Oi = !1, a3 = Pi, Pi = null, a3; 5036 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; 5037 } 5038 function Hk() { 5039 if (wk !== null) { 5040 var a3 = Dc(xk), b = ok.transition, c = C3; 5041 try { 5042 if (ok.transition = null, C3 = 16 > a3 ? 16 : a3, wk === null) var d = !1; 5043 else { 5044 if (a3 = wk, wk = null, xk = 0, (K2 & 6) !== 0) throw Error(p3(331)); 5045 var e = K2; 5046 for (K2 |= 4, V = a3.current; V !== null; ) { 5047 var f4 = V, g2 = f4.child; 5048 if ((V.flags & 16) !== 0) { 5049 var h3 = f4.deletions; 5050 if (h3 !== null) { 5051 for (var k = 0; k < h3.length; k++) { 5052 var l = h3[k]; 5053 for (V = l; V !== null; ) { 5054 var m3 = V; 5055 switch (m3.tag) { 5056 case 0: 5057 case 11: 5058 case 15: 5059 Pj(8, m3, f4); 5060 } 5061 var q = m3.child; 5062 if (q !== null) q.return = m3, V = q; 5063 else for (; V !== null; ) { 5064 m3 = V; 5065 var r2 = m3.sibling, y = m3.return; 5066 if (Sj(m3), m3 === l) { 5067 V = null; 5068 break; 5069 } 5070 if (r2 !== null) { 5071 r2.return = y, V = r2; 5072 break; 5073 } 5074 V = y; 5075 } 5076 } 5077 } 5078 var n = f4.alternate; 5079 if (n !== null) { 5080 var t = n.child; 5081 if (t !== null) { 5082 n.child = null; 5083 do { 5084 var J = t.sibling; 5085 t.sibling = null, t = J; 5086 } while (t !== null); 5087 } 5088 } 5089 V = f4; 5090 } 5091 } 5092 if ((f4.subtreeFlags & 2064) !== 0 && g2 !== null) g2.return = f4, V = g2; 5093 else b: for (; V !== null; ) { 5094 if (f4 = V, (f4.flags & 2048) !== 0) switch (f4.tag) { 5095 case 0: 5096 case 11: 5097 case 15: 5098 Pj(9, f4, f4.return); 5099 } 5100 var x = f4.sibling; 5101 if (x !== null) { 5102 x.return = f4.return, V = x; 5103 break b; 5104 } 5105 V = f4.return; 5106 } 5107 } 5108 var w = a3.current; 5109 for (V = w; V !== null; ) { 5110 g2 = V; 5111 var u2 = g2.child; 5112 if ((g2.subtreeFlags & 2064) !== 0 && u2 !== null) u2.return = g2, V = u2; 5113 else b: for (g2 = w; V !== null; ) { 5114 if (h3 = V, (h3.flags & 2048) !== 0) try { 5115 switch (h3.tag) { 5116 case 0: 5117 case 11: 5118 case 15: 5119 Qj(9, h3); 5120 } 5121 } catch (na) { 5122 W(h3, h3.return, na); 5123 } 5124 if (h3 === g2) { 5125 V = null; 5126 break b; 5127 } 5128 var F = h3.sibling; 5129 if (F !== null) { 5130 F.return = h3.return, V = F; 5131 break b; 5132 } 5133 V = h3.return; 5134 } 5135 } 5136 if (K2 = e, jg(), lc && typeof lc.onPostCommitFiberRoot == "function") try { 5137 lc.onPostCommitFiberRoot(kc, a3); 5138 } catch { 5139 } 5140 d = !0; 5141 } 5142 return d; 5143 } finally { 5144 C3 = c, ok.transition = b; 5145 } 5146 } 5147 return !1; 5148 } 5149 function Xk(a3, b, c) { 5150 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)); 5151 } 5152 function W(a3, b, c) { 5153 if (a3.tag === 3) Xk(a3, a3, c); 5154 else for (; b !== null; ) { 5155 if (b.tag === 3) { 5156 Xk(b, a3, c); 5157 break; 5158 } else if (b.tag === 1) { 5159 var d = b.stateNode; 5160 if (typeof b.type.getDerivedStateFromError == "function" || typeof d.componentDidCatch == "function" && (Ri === null || !Ri.has(d))) { 5161 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)); 5162 break; 5163 } 5164 } 5165 b = b.return; 5166 } 5167 } 5168 function Ti(a3, b, c) { 5169 var d = a3.pingCache; 5170 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); 5171 } 5172 function Yk(a3, b) { 5173 b === 0 && ((a3.mode & 1) === 0 ? b = 1 : (b = sc, sc <<= 1, (sc & 130023424) === 0 && (sc = 4194304))); 5174 var c = R(); 5175 a3 = ih(a3, b), a3 !== null && (Ac(a3, b, c), Dk(a3, c)); 5176 } 5177 function uj(a3) { 5178 var b = a3.memoizedState, c = 0; 5179 b !== null && (c = b.retryLane), Yk(a3, c); 5180 } 5181 function bk(a3, b) { 5182 var c = 0; 5183 switch (a3.tag) { 5184 case 13: 5185 var d = a3.stateNode, e = a3.memoizedState; 5186 e !== null && (c = e.retryLane); 5187 break; 5188 case 19: 5189 d = a3.stateNode; 5190 break; 5191 default: 5192 throw Error(p3(314)); 5193 } 5194 d !== null && d.delete(b), Yk(a3, c); 5195 } 5196 var Vk; 5197 Vk = function(a3, b, c) { 5198 if (a3 !== null) if (a3.memoizedProps !== b.pendingProps || Wf.current) dh = !0; 5199 else { 5200 if ((a3.lanes & c) === 0 && (b.flags & 128) === 0) return dh = !1, yj(a3, b, c); 5201 dh = (a3.flags & 131072) !== 0; 5202 } 5203 else dh = !1, I && (b.flags & 1048576) !== 0 && ug(b, ng, b.index); 5204 switch (b.lanes = 0, b.tag) { 5205 case 2: 5206 var d = b.type; 5207 ij(a3, b), a3 = b.pendingProps; 5208 var e = Yf(b, H.current); 5209 ch(b, c), e = Nh(null, b, d, a3, e, c); 5210 var f4 = Sh(); 5211 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; 5212 case 16: 5213 d = b.elementType; 5214 a: { 5215 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) { 5216 case 0: 5217 b = cj(null, b, d, a3, c); 5218 break a; 5219 case 1: 5220 b = hj(null, b, d, a3, c); 5221 break a; 5222 case 11: 5223 b = Yi(null, b, d, a3, c); 5224 break a; 5225 case 14: 5226 b = $i(null, b, d, Ci(d.type, a3), c); 5227 break a; 5228 } 5229 throw Error(p3( 5230 306, 5231 d, 5232 "" 5233 )); 5234 } 5235 return b; 5236 case 0: 5237 return d = b.type, e = b.pendingProps, e = b.elementType === d ? e : Ci(d, e), cj(a3, b, d, e, c); 5238 case 1: 5239 return d = b.type, e = b.pendingProps, e = b.elementType === d ? e : Ci(d, e), hj(a3, b, d, e, c); 5240 case 3: 5241 a: { 5242 if (kj(b), a3 === null) throw Error(p3(387)); 5243 d = b.pendingProps, f4 = b.memoizedState, e = f4.element, lh(a3, b), qh(b, d, null, c); 5244 var g2 = b.memoizedState; 5245 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) { 5246 e = Ji(Error(p3(423)), b), b = lj(a3, b, d, c, e); 5247 break a; 5248 } else if (d !== e) { 5249 e = Ji(Error(p3(424)), b), b = lj(a3, b, d, c, e); 5250 break a; 5251 } 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; 5252 else { 5253 if (Ig(), d === e) { 5254 b = Zi(a3, b, c); 5255 break a; 5256 } 5257 Xi(a3, b, d, c); 5258 } 5259 b = b.child; 5260 } 5261 return b; 5262 case 5: 5263 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; 5264 case 6: 5265 return a3 === null && Eg(b), null; 5266 case 13: 5267 return oj(a3, b, c); 5268 case 4: 5269 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; 5270 case 11: 5271 return d = b.type, e = b.pendingProps, e = b.elementType === d ? e : Ci(d, e), Yi(a3, b, d, e, c); 5272 case 7: 5273 return Xi(a3, b, b.pendingProps, c), b.child; 5274 case 8: 5275 return Xi(a3, b, b.pendingProps.children, c), b.child; 5276 case 12: 5277 return Xi(a3, b, b.pendingProps.children, c), b.child; 5278 case 10: 5279 a: { 5280 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)) { 5281 if (f4.children === e.children && !Wf.current) { 5282 b = Zi(a3, b, c); 5283 break a; 5284 } 5285 } else for (f4 = b.child, f4 !== null && (f4.return = b); f4 !== null; ) { 5286 var h3 = f4.dependencies; 5287 if (h3 !== null) { 5288 g2 = f4.child; 5289 for (var k = h3.firstContext; k !== null; ) { 5290 if (k.context === d) { 5291 if (f4.tag === 1) { 5292 k = mh(-1, c & -c), k.tag = 2; 5293 var l = f4.updateQueue; 5294 if (l !== null) { 5295 l = l.shared; 5296 var m3 = l.pending; 5297 m3 === null ? k.next = k : (k.next = m3.next, m3.next = k), l.pending = k; 5298 } 5299 } 5300 f4.lanes |= c, k = f4.alternate, k !== null && (k.lanes |= c), bh( 5301 f4.return, 5302 c, 5303 b 5304 ), h3.lanes |= c; 5305 break; 5306 } 5307 k = k.next; 5308 } 5309 } else if (f4.tag === 10) g2 = f4.type === b.type ? null : f4.child; 5310 else if (f4.tag === 18) { 5311 if (g2 = f4.return, g2 === null) throw Error(p3(341)); 5312 g2.lanes |= c, h3 = g2.alternate, h3 !== null && (h3.lanes |= c), bh(g2, c, b), g2 = f4.sibling; 5313 } else g2 = f4.child; 5314 if (g2 !== null) g2.return = f4; 5315 else for (g2 = f4; g2 !== null; ) { 5316 if (g2 === b) { 5317 g2 = null; 5318 break; 5319 } 5320 if (f4 = g2.sibling, f4 !== null) { 5321 f4.return = g2.return, g2 = f4; 5322 break; 5323 } 5324 g2 = g2.return; 5325 } 5326 f4 = g2; 5327 } 5328 Xi(a3, b, e.children, c), b = b.child; 5329 } 5330 return b; 5331 case 9: 5332 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; 5333 case 14: 5334 return d = b.type, e = Ci(d, b.pendingProps), e = Ci(d.type, e), $i(a3, b, d, e, c); 5335 case 15: 5336 return bj(a3, b, b.type, b.pendingProps, c); 5337 case 17: 5338 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); 5339 case 19: 5340 return xj(a3, b, c); 5341 case 22: 5342 return dj(a3, b, c); 5343 } 5344 throw Error(p3(156, b.tag)); 5345 }; 5346 function Fk(a3, b) { 5347 return ac(a3, b); 5348 } 5349 function $k(a3, b, c, d) { 5350 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; 5351 } 5352 function Bg(a3, b, c, d) { 5353 return new $k(a3, b, c, d); 5354 } 5355 function aj(a3) { 5356 return a3 = a3.prototype, !(!a3 || !a3.isReactComponent); 5357 } 5358 function Zk(a3) { 5359 if (typeof a3 == "function") return aj(a3) ? 1 : 0; 5360 if (a3 != null) { 5361 if (a3 = a3.$$typeof, a3 === Da) return 11; 5362 if (a3 === Ga) return 14; 5363 } 5364 return 2; 5365 } 5366 function Pg(a3, b) { 5367 var c = a3.alternate; 5368 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; 5369 } 5370 function Rg(a3, b, c, d, e, f4) { 5371 var g2 = 2; 5372 if (d = a3, typeof a3 == "function") aj(a3) && (g2 = 1); 5373 else if (typeof a3 == "string") g2 = 5; 5374 else a: switch (a3) { 5375 case ya: 5376 return Tg(c.children, e, f4, b); 5377 case za: 5378 g2 = 8, e |= 8; 5379 break; 5380 case Aa: 5381 return a3 = Bg(12, c, b, e | 2), a3.elementType = Aa, a3.lanes = f4, a3; 5382 case Ea: 5383 return a3 = Bg(13, c, b, e), a3.elementType = Ea, a3.lanes = f4, a3; 5384 case Fa: 5385 return a3 = Bg(19, c, b, e), a3.elementType = Fa, a3.lanes = f4, a3; 5386 case Ia: 5387 return pj(c, e, f4, b); 5388 default: 5389 if (typeof a3 == "object" && a3 !== null) switch (a3.$$typeof) { 5390 case Ba: 5391 g2 = 10; 5392 break a; 5393 case Ca: 5394 g2 = 9; 5395 break a; 5396 case Da: 5397 g2 = 11; 5398 break a; 5399 case Ga: 5400 g2 = 14; 5401 break a; 5402 case Ha: 5403 g2 = 16, d = null; 5404 break a; 5405 } 5406 throw Error(p3(130, a3 == null ? a3 : typeof a3, "")); 5407 } 5408 return b = Bg(g2, c, b, e), b.elementType = a3, b.type = d, b.lanes = f4, b; 5409 } 5410 function Tg(a3, b, c, d) { 5411 return a3 = Bg(7, a3, d, b), a3.lanes = c, a3; 5412 } 5413 function pj(a3, b, c, d) { 5414 return a3 = Bg(22, a3, d, b), a3.elementType = Ia, a3.lanes = c, a3.stateNode = { isHidden: !1 }, a3; 5415 } 5416 function Qg(a3, b, c) { 5417 return a3 = Bg(6, a3, null, b), a3.lanes = c, a3; 5418 } 5419 function Sg(a3, b, c) { 5420 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; 5421 } 5422 function al(a3, b, c, d, e) { 5423 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; 5424 } 5425 function bl(a3, b, c, d, e, f4, g2, h3, k) { 5426 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; 5427 } 5428 function cl(a3, b, c) { 5429 var d = 3 < arguments.length && arguments[3] !== void 0 ? arguments[3] : null; 5430 return { $$typeof: wa, key: d == null ? null : "" + d, children: a3, containerInfo: b, implementation: c }; 5431 } 5432 function dl(a3) { 5433 if (!a3) return Vf; 5434 a3 = a3._reactInternals; 5435 a: { 5436 if (Vb(a3) !== a3 || a3.tag !== 1) throw Error(p3(170)); 5437 var b = a3; 5438 do { 5439 switch (b.tag) { 5440 case 3: 5441 b = b.stateNode.context; 5442 break a; 5443 case 1: 5444 if (Zf(b.type)) { 5445 b = b.stateNode.__reactInternalMemoizedMergedChildContext; 5446 break a; 5447 } 5448 } 5449 b = b.return; 5450 } while (b !== null); 5451 throw Error(p3(171)); 5452 } 5453 if (a3.tag === 1) { 5454 var c = a3.type; 5455 if (Zf(c)) return bg(a3, c, b); 5456 } 5457 return b; 5458 } 5459 function el(a3, b, c, d, e, f4, g2, h3, k) { 5460 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; 5461 } 5462 function fl(a3, b, c, d) { 5463 var e = b.current, f4 = R(), g2 = yi(e); 5464 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; 5465 } 5466 function gl(a3) { 5467 if (a3 = a3.current, !a3.child) return null; 5468 switch (a3.child.tag) { 5469 case 5: 5470 return a3.child.stateNode; 5471 default: 5472 return a3.child.stateNode; 5473 } 5474 } 5475 function hl(a3, b) { 5476 if (a3 = a3.memoizedState, a3 !== null && a3.dehydrated !== null) { 5477 var c = a3.retryLane; 5478 a3.retryLane = c !== 0 && c < b ? c : b; 5479 } 5480 } 5481 function il(a3, b) { 5482 hl(a3, b), (a3 = a3.alternate) && hl(a3, b); 5483 } 5484 function jl() { 5485 return null; 5486 } 5487 var kl = typeof reportError == "function" ? reportError : function(a3) { 5488 console.error(a3); 5489 }; 5490 function ll(a3) { 5491 this._internalRoot = a3; 5492 } 5493 ml.prototype.render = ll.prototype.render = function(a3) { 5494 var b = this._internalRoot; 5495 if (b === null) throw Error(p3(409)); 5496 fl(a3, b, null, null); 5497 }; 5498 ml.prototype.unmount = ll.prototype.unmount = function() { 5499 var a3 = this._internalRoot; 5500 if (a3 !== null) { 5501 this._internalRoot = null; 5502 var b = a3.containerInfo; 5503 Rk(function() { 5504 fl(null, a3, null, null); 5505 }), b[uf] = null; 5506 } 5507 }; 5508 function ml(a3) { 5509 this._internalRoot = a3; 5510 } 5511 ml.prototype.unstable_scheduleHydration = function(a3) { 5512 if (a3) { 5513 var b = Hc(); 5514 a3 = { blockedOn: null, target: a3, priority: b }; 5515 for (var c = 0; c < Qc.length && b !== 0 && b < Qc[c].priority; c++) ; 5516 Qc.splice(c, 0, a3), c === 0 && Vc(a3); 5517 } 5518 }; 5519 function nl(a3) { 5520 return !(!a3 || a3.nodeType !== 1 && a3.nodeType !== 9 && a3.nodeType !== 11); 5521 } 5522 function ol(a3) { 5523 return !(!a3 || a3.nodeType !== 1 && a3.nodeType !== 9 && a3.nodeType !== 11 && (a3.nodeType !== 8 || a3.nodeValue !== " react-mount-point-unstable ")); 5524 } 5525 function pl() { 5526 } 5527 function ql(a3, b, c, d, e) { 5528 if (e) { 5529 if (typeof d == "function") { 5530 var f4 = d; 5531 d = function() { 5532 var a4 = gl(g2); 5533 f4.call(a4); 5534 }; 5535 } 5536 var g2 = el(b, d, a3, 0, null, !1, !1, "", pl); 5537 return a3._reactRootContainer = g2, a3[uf] = g2.current, sf(a3.nodeType === 8 ? a3.parentNode : a3), Rk(), g2; 5538 } 5539 for (; e = a3.lastChild; ) a3.removeChild(e); 5540 if (typeof d == "function") { 5541 var h3 = d; 5542 d = function() { 5543 var a4 = gl(k); 5544 h3.call(a4); 5545 }; 5546 } 5547 var k = bl(a3, 0, !1, null, null, !1, !1, "", pl); 5548 return a3._reactRootContainer = k, a3[uf] = k.current, sf(a3.nodeType === 8 ? a3.parentNode : a3), Rk(function() { 5549 fl(b, k, c, d); 5550 }), k; 5551 } 5552 function rl(a3, b, c, d, e) { 5553 var f4 = c._reactRootContainer; 5554 if (f4) { 5555 var g2 = f4; 5556 if (typeof e == "function") { 5557 var h3 = e; 5558 e = function() { 5559 var a4 = gl(g2); 5560 h3.call(a4); 5561 }; 5562 } 5563 fl(b, g2, a3, e); 5564 } else g2 = ql(c, b, a3, e, d); 5565 return gl(g2); 5566 } 5567 Ec = function(a3) { 5568 switch (a3.tag) { 5569 case 3: 5570 var b = a3.stateNode; 5571 if (b.current.memoizedState.isDehydrated) { 5572 var c = tc(b.pendingLanes); 5573 c !== 0 && (Cc(b, c | 1), Dk(b, B3()), (K2 & 6) === 0 && (Gj = B3() + 500, jg())); 5574 } 5575 break; 5576 case 13: 5577 Rk(function() { 5578 var b2 = ih(a3, 1); 5579 if (b2 !== null) { 5580 var c2 = R(); 5581 gi(b2, a3, 1, c2); 5582 } 5583 }), il(a3, 1); 5584 } 5585 }; 5586 Fc = function(a3) { 5587 if (a3.tag === 13) { 5588 var b = ih(a3, 134217728); 5589 if (b !== null) { 5590 var c = R(); 5591 gi(b, a3, 134217728, c); 5592 } 5593 il(a3, 134217728); 5594 } 5595 }; 5596 Gc = function(a3) { 5597 if (a3.tag === 13) { 5598 var b = yi(a3), c = ih(a3, b); 5599 if (c !== null) { 5600 var d = R(); 5601 gi(c, a3, b, d); 5602 } 5603 il(a3, b); 5604 } 5605 }; 5606 Hc = function() { 5607 return C3; 5608 }; 5609 Ic = function(a3, b) { 5610 var c = C3; 5611 try { 5612 return C3 = a3, b(); 5613 } finally { 5614 C3 = c; 5615 } 5616 }; 5617 yb = function(a3, b, c) { 5618 switch (b) { 5619 case "input": 5620 if (bb(a3, c), b = c.name, c.type === "radio" && b != null) { 5621 for (c = a3; c.parentNode; ) c = c.parentNode; 5622 for (c = c.querySelectorAll("input[name=" + JSON.stringify("" + b) + '][type="radio"]'), b = 0; b < c.length; b++) { 5623 var d = c[b]; 5624 if (d !== a3 && d.form === a3.form) { 5625 var e = Db(d); 5626 if (!e) throw Error(p3(90)); 5627 Wa(d), bb(d, e); 5628 } 5629 } 5630 } 5631 break; 5632 case "textarea": 5633 ib(a3, c); 5634 break; 5635 case "select": 5636 b = c.value, b != null && fb(a3, !!c.multiple, b, !1); 5637 } 5638 }; 5639 Gb = Qk; 5640 Hb = Rk; 5641 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) { 5642 return a3 = Zb(a3), a3 === null ? null : a3.stateNode; 5643 }, findFiberByHostInstance: tl.findFiberByHostInstance || jl, findHostInstancesForRefresh: null, scheduleRefresh: null, scheduleRoot: null, setRefreshHandler: null, getCurrentFiber: null, reconcilerVersion: "18.3.1-next-f1338f8080-20240426" }; 5644 if (typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && (vl = __REACT_DEVTOOLS_GLOBAL_HOOK__, !vl.isDisabled && vl.supportsFiber)) 5645 try { 5646 kc = vl.inject(ul), lc = vl; 5647 } catch { 5648 } 5649 var vl; 5650 exports.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = sl; 5651 exports.createPortal = function(a3, b) { 5652 var c = 2 < arguments.length && arguments[2] !== void 0 ? arguments[2] : null; 5653 if (!nl(b)) throw Error(p3(200)); 5654 return cl(a3, b, null, c); 5655 }; 5656 exports.createRoot = function(a3, b) { 5657 if (!nl(a3)) throw Error(p3(299)); 5658 var c = !1, d = "", e = kl; 5659 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); 5660 }; 5661 exports.findDOMNode = function(a3) { 5662 if (a3 == null) return null; 5663 if (a3.nodeType === 1) return a3; 5664 var b = a3._reactInternals; 5665 if (b === void 0) 5666 throw typeof a3.render == "function" ? Error(p3(188)) : (a3 = Object.keys(a3).join(","), Error(p3(268, a3))); 5667 return a3 = Zb(b), a3 = a3 === null ? null : a3.stateNode, a3; 5668 }; 5669 exports.flushSync = function(a3) { 5670 return Rk(a3); 5671 }; 5672 exports.hydrate = function(a3, b, c) { 5673 if (!ol(b)) throw Error(p3(200)); 5674 return rl(null, a3, b, !0, c); 5675 }; 5676 exports.hydrateRoot = function(a3, b, c) { 5677 if (!nl(a3)) throw Error(p3(405)); 5678 var d = c != null && c.hydratedSources || null, e = !1, f4 = "", g2 = kl; 5679 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( 5680 c, 5681 e 5682 ); 5683 return new ml(b); 5684 }; 5685 exports.render = function(a3, b, c) { 5686 if (!ol(b)) throw Error(p3(200)); 5687 return rl(null, a3, b, !1, c); 5688 }; 5689 exports.unmountComponentAtNode = function(a3) { 5690 if (!ol(a3)) throw Error(p3(40)); 5691 return a3._reactRootContainer ? (Rk(function() { 5692 rl(null, null, a3, !1, function() { 5693 a3._reactRootContainer = null, a3[uf] = null; 5694 }); 5695 }), !0) : !1; 5696 }; 5697 exports.unstable_batchedUpdates = Qk; 5698 exports.unstable_renderSubtreeIntoContainer = function(a3, b, c, d) { 5699 if (!ol(c)) throw Error(p3(200)); 5700 if (a3 == null || a3._reactInternals === void 0) throw Error(p3(38)); 5701 return rl(a3, b, c, !1, d); 5702 }; 5703 exports.version = "18.3.1-next-f1338f8080-20240426"; 5704 } 5705}); 5706
vendor: 530 bytes, lines 5707-5722
5707// ../../node_modules/react-dom/index.js 5708var require_react_dom = __commonJS({ 5709 "../../node_modules/react-dom/index.js"(exports, module2) { 5710 "use strict"; 5711 function checkDCE() { 5712 if (!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ > "u" || typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE != "function")) 5713 try { 5714 __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(checkDCE); 5715 } catch (err) { 5716 console.error(err); 5717 } 5718 } 5719 checkDCE(), module2.exports = require_react_dom_production_min(); 5720 } 5721}); 5722
vendor: 280 bytes, lines 5723-5732
5723// ../../node_modules/react-dom/client.js 5724var require_client = __commonJS({ 5725 "../../node_modules/react-dom/client.js"(exports) { 5726 "use strict"; 5727 var m3 = require_react_dom(); 5728 exports.createRoot = m3.createRoot, exports.hydrateRoot = m3.hydrateRoot; 5729 var i; 5730 } 5731}); 5732
vendor: 381 bytes, lines 5733-5742
5733// ../../node_modules/@storybook/global/dist/index.mjs 5734var scope, init_dist = __esm({ 5735 "../../node_modules/@storybook/global/dist/index.mjs"() { 5736 scope = (() => { 5737 let win; 5738 return typeof window < "u" ? win = window : typeof globalThis < "u" ? win = globalThis : typeof global < "u" ? win = global : typeof self < "u" ? win = self : win = {}, win; 5739 })(); 5740 } 5741}); 5742
vendor: 1,493 bytes, lines 5743-5780
5743// ../../node_modules/ts-dedent/esm/index.js 5744function dedent(templ) { 5745 for (var values = [], _i = 1; _i < arguments.length; _i++) 5746 values[_i - 1] = arguments[_i]; 5747 var strings = Array.from(typeof templ == "string" ? [templ] : templ); 5748 strings[strings.length - 1] = strings[strings.length - 1].replace(/\r?\n([\t ]*)$/, ""); 5749 var indentLengths = strings.reduce(function(arr, str2) { 5750 var matches4 = str2.match(/\n([\t ]+|(?!\s).)/g); 5751 return matches4 ? arr.concat(matches4.map(function(match3) { 5752 var _a4, _b; 5753 return (_b = (_a4 = match3.match(/[\t ]/g)) === null || _a4 === void 0 ? void 0 : _a4.length) !== null && _b !== void 0 ? _b : 0; 5754 })) : arr; 5755 }, []); 5756 if (indentLengths.length) { 5757 var pattern_1 = new RegExp(` 5758[ ]{` + Math.min.apply(Math, indentLengths) + "}", "g"); 5759 strings = strings.map(function(str2) { 5760 return str2.replace(pattern_1, ` 5761`); 5762 }); 5763 } 5764 strings[0] = strings[0].replace(/^\r?\n/, ""); 5765 var string = strings[0]; 5766 return values.forEach(function(value, i) { 5767 var endentations = string.match(/(?:^|\n)( *)$/), endentation = endentations ? endentations[1] : "", indentedValue = value; 5768 typeof value == "string" && value.includes(` 5769`) && (indentedValue = String(value).split(` 5770`).map(function(str2, i2) { 5771 return i2 === 0 ? str2 : "" + endentation + str2; 5772 }).join(` 5773`)), string += indentedValue + strings[i + 1]; 5774 }), string; 5775} 5776var init_esm = __esm({ 5777 "../../node_modules/ts-dedent/esm/index.js"() { 5778 } 5779}); 5780
vendor: 2,572 bytes, lines 5781-5848
5781// src/client-logger/index.ts 5782var client_logger_exports = {}; 5783__export(client_logger_exports, { 5784 deprecate: () => deprecate, 5785 logger: () => logger, 5786 once: () => once, 5787 pretty: () => pretty 5788}); 5789var LOGLEVEL, levels, currentLogLevelString, currentLogLevelNumber, logger, logged, once, deprecate, pretty, init_client_logger = __esm({ 5790 "src/client-logger/index.ts"() { 5791 "use strict"; 5792 init_dist(); 5793 ({ LOGLEVEL } = scope), levels = { 5794 trace: 1, 5795 debug: 2, 5796 info: 3, 5797 warn: 4, 5798 error: 5, 5799 silent: 10 5800 }, currentLogLevelString = LOGLEVEL, currentLogLevelNumber = levels[currentLogLevelString] || levels.info, logger = { 5801 trace: (message, ...rest) => { 5802 currentLogLevelNumber <= levels.trace && console.trace(message, ...rest); 5803 }, 5804 debug: (message, ...rest) => { 5805 currentLogLevelNumber <= levels.debug && console.debug(message, ...rest); 5806 }, 5807 info: (message, ...rest) => { 5808 currentLogLevelNumber <= levels.info && console.info(message, ...rest); 5809 }, 5810 warn: (message, ...rest) => { 5811 currentLogLevelNumber <= levels.warn && console.warn(message, ...rest); 5812 }, 5813 error: (message, ...rest) => { 5814 currentLogLevelNumber <= levels.error && console.error(message, ...rest); 5815 }, 5816 log: (message, ...rest) => { 5817 currentLogLevelNumber < levels.silent && console.log(message, ...rest); 5818 } 5819 }, logged = /* @__PURE__ */ new Set(), once = (type5) => (message, ...rest) => { 5820 if (!logged.has(message)) 5821 return logged.add(message), logger[type5](message, ...rest); 5822 }; 5823 once.clear = () => logged.clear(); 5824 once.trace = once("trace"); 5825 once.debug = once("debug"); 5826 once.info = once("info"); 5827 once.warn = once("warn"); 5828 once.error = once("error"); 5829 once.log = once("log"); 5830 deprecate = once("warn"), pretty = (type5) => (...args) => { 5831 let argArray = []; 5832 if (args.length) { 5833 let startTagRe = /<span\s+style=(['"])([^'"]*)\1\s*>/gi, endTagRe = /<\/span>/gi, reResultArray; 5834 for (argArray.push(args[0].replace(startTagRe, "%c").replace(endTagRe, "%c")); reResultArray = startTagRe.exec(args[0]); ) 5835 argArray.push(reResultArray[2]), argArray.push(""); 5836 for (let j = 1; j < args.length; j++) 5837 argArray.push(args[j]); 5838 } 5839 logger[type5].apply(logger, argArray); 5840 }; 5841 pretty.trace = pretty("trace"); 5842 pretty.debug = pretty("debug"); 5843 pretty.info = pretty("info"); 5844 pretty.warn = pretty("warn"); 5845 pretty.error = pretty("error"); 5846 } 5847}); 5848
vendor: 469 bytes, lines 5849-5863
5849// ../../node_modules/@babel/runtime/helpers/esm/extends.js 5850function _extends() { 5851 return _extends = Object.assign ? Object.assign.bind() : function(n) { 5852 for (var e = 1; e < arguments.length; e++) { 5853 var t = arguments[e]; 5854 for (var r2 in t) ({}).hasOwnProperty.call(t, r2) && (n[r2] = t[r2]); 5855 } 5856 return n; 5857 }, _extends.apply(null, arguments); 5858} 5859var init_extends = __esm({ 5860 "../../node_modules/@babel/runtime/helpers/esm/extends.js"() { 5861 } 5862}); 5863
vendor: 2,389 bytes, lines 5864-5911
5864// ../../node_modules/@emotion/sheet/dist/emotion-sheet.esm.js 5865function sheetForTag(tag) { 5866 if (tag.sheet) 5867 return tag.sheet; 5868 for (var i = 0; i < document.styleSheets.length; i++) 5869 if (document.styleSheets[i].ownerNode === tag) 5870 return document.styleSheets[i]; 5871} 5872function createStyleElement(options) { 5873 var tag = document.createElement("style"); 5874 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; 5875} 5876var isDevelopment, StyleSheet, init_emotion_sheet_esm = __esm({ 5877 "../../node_modules/@emotion/sheet/dist/emotion-sheet.esm.js"() { 5878 isDevelopment = !1; 5879 StyleSheet = (function() { 5880 function StyleSheet2(options) { 5881 var _this = this; 5882 this._insertTag = function(tag) { 5883 var before; 5884 _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); 5885 }, 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; 5886 } 5887 var _proto = StyleSheet2.prototype; 5888 return _proto.hydrate = function(nodes) { 5889 nodes.forEach(this._insertTag); 5890 }, _proto.insert = function(rule) { 5891 this.ctr % (this.isSpeedy ? 65e3 : 1) === 0 && this._insertTag(createStyleElement(this)); 5892 var tag = this.tags[this.tags.length - 1]; 5893 if (this.isSpeedy) { 5894 var sheet = sheetForTag(tag); 5895 try { 5896 sheet.insertRule(rule, sheet.cssRules.length); 5897 } catch { 5898 } 5899 } else 5900 tag.appendChild(document.createTextNode(rule)); 5901 this.ctr++; 5902 }, _proto.flush = function() { 5903 this.tags.forEach(function(tag) { 5904 var _tag$parentNode; 5905 return (_tag$parentNode = tag.parentNode) == null ? void 0 : _tag$parentNode.removeChild(tag); 5906 }), this.tags = [], this.ctr = 0; 5907 }, StyleSheet2; 5908 })(); 5909 } 5910}); 5911
vendor: 369 bytes, lines 5912-5918
5912// ../../node_modules/stylis/src/Enum.js 5913var MS, MOZ, WEBKIT, COMMENT, RULESET, DECLARATION, IMPORT, KEYFRAMES, LAYER, init_Enum = __esm({ 5914 "../../node_modules/stylis/src/Enum.js"() { 5915 MS = "-ms-", MOZ = "-moz-", WEBKIT = "-webkit-", COMMENT = "comm", RULESET = "rule", DECLARATION = "decl", IMPORT = "@import", KEYFRAMES = "@keyframes", LAYER = "@layer"; 5916 } 5917}); 5918
vendor: 1,103 bytes, lines 5919-5958
5919// ../../node_modules/stylis/src/Utility.js 5920function hash(value, length2) { 5921 return charat(value, 0) ^ 45 ? (((length2 << 2 ^ charat(value, 0)) << 2 ^ charat(value, 1)) << 2 ^ charat(value, 2)) << 2 ^ charat(value, 3) : 0; 5922} 5923function trim(value) { 5924 return value.trim(); 5925} 5926function match(value, pattern) { 5927 return (value = pattern.exec(value)) ? value[0] : value; 5928} 5929function replace(value, pattern, replacement) { 5930 return value.replace(pattern, replacement); 5931} 5932function indexof(value, search) { 5933 return value.indexOf(search); 5934} 5935function charat(value, index4) { 5936 return value.charCodeAt(index4) | 0; 5937} 5938function substr(value, begin, end2) { 5939 return value.slice(begin, end2); 5940} 5941function strlen(value) { 5942 return value.length; 5943} 5944function sizeof(value) { 5945 return value.length; 5946} 5947function append(value, array) { 5948 return array.push(value), value; 5949} 5950function combine(array, callback) { 5951 return array.map(callback).join(""); 5952} 5953var abs, from, assign, init_Utility = __esm({ 5954 "../../node_modules/stylis/src/Utility.js"() { 5955 abs = Math.abs, from = String.fromCharCode, assign = Object.assign; 5956 } 5957}); 5958
vendor: 3,257 bytes, lines 5959-6080
5959// ../../node_modules/stylis/src/Tokenizer.js 5960function node(value, root2, parent, type5, props, children, length2) { 5961 return { value, root: root2, parent, type: type5, props, children, line, column, length: length2, return: "" }; 5962} 5963function copy(root2, props) { 5964 return assign(node("", null, null, "", null, null, 0), root2, { length: -root2.length }, props); 5965} 5966function char() { 5967 return character; 5968} 5969function prev() { 5970 return character = position > 0 ? charat(characters, --position) : 0, column--, character === 10 && (column = 1, line--), character; 5971} 5972function next() { 5973 return character = position < length ? charat(characters, position++) : 0, column++, character === 10 && (column = 1, line++), character; 5974} 5975function peek() { 5976 return charat(characters, position); 5977} 5978function caret() { 5979 return position; 5980} 5981function slice(begin, end2) { 5982 return substr(characters, begin, end2); 5983} 5984function token(type5) { 5985 switch (type5) { 5986 // \0 \t \n \r \s whitespace token 5987 case 0: 5988 case 9: 5989 case 10: 5990 case 13: 5991 case 32: 5992 return 5; 5993 // ! + , / > @ ~ isolate token 5994 case 33: 5995 case 43: 5996 case 44: 5997 case 47: 5998 case 62: 5999 case 64: 6000 case 126: 6001 // ; { } breakpoint token 6002 case 59: 6003 case 123: 6004 case 125: 6005 return 4; 6006 // : accompanied token 6007 case 58: 6008 return 3; 6009 // " ' ( [ opening delimit token 6010 case 34: 6011 case 39: 6012 case 40: 6013 case 91: 6014 return 2; 6015 // ) ] closing delimit token 6016 case 41: 6017 case 93: 6018 return 1; 6019 } 6020 return 0; 6021} 6022function alloc(value) { 6023 return line = column = 1, length = strlen(characters = value), position = 0, []; 6024} 6025function dealloc(value) { 6026 return characters = "", value; 6027} 6028function delimit(type5) { 6029 return trim(slice(position - 1, delimiter(type5 === 91 ? type5 + 2 : type5 === 40 ? type5 + 1 : type5))); 6030} 6031function whitespace(type5) { 6032 for (; (character = peek()) && character < 33; ) 6033 next(); 6034 return token(type5) > 2 || token(character) > 3 ? "" : " "; 6035} 6036function escaping(index4, count) { 6037 for (; --count && next() && !(character < 48 || character > 102 || character > 57 && character < 65 || character > 70 && character < 97); ) 6038 ; 6039 return slice(index4, caret() + (count < 6 && peek() == 32 && next() == 32)); 6040} 6041function delimiter(type5) { 6042 for (; next(); ) 6043 switch (character) { 6044 // ] ) " ' 6045 case type5: 6046 return position; 6047 // " ' 6048 case 34: 6049 case 39: 6050 type5 !== 34 && type5 !== 39 && delimiter(character); 6051 break; 6052 // ( 6053 case 40: 6054 type5 === 41 && delimiter(type5); 6055 break; 6056 // \ 6057 case 92: 6058 next(); 6059 break; 6060 } 6061 return position; 6062} 6063function commenter(type5, index4) { 6064 for (; next() && type5 + character !== 57; ) 6065 if (type5 + character === 84 && peek() === 47) 6066 break; 6067 return "/*" + slice(index4, position - 1) + "*" + from(type5 === 47 ? type5 : next()); 6068} 6069function identifier(index4) { 6070 for (; !token(peek()); ) 6071 next(); 6072 return slice(index4, position); 6073} 6074var line, column, length, position, character, characters, init_Tokenizer = __esm({ 6075 "../../node_modules/stylis/src/Tokenizer.js"() { 6076 init_Utility(); 6077 line = 1, column = 1, length = 0, position = 0, character = 0, characters = ""; 6078 } 6079}); 6080
vendor: 5,291 bytes, lines 6081-6210
6081// ../../node_modules/stylis/src/Parser.js 6082function compile(value) { 6083 return dealloc(parse2("", null, null, null, [""], value = alloc(value), 0, [0], value)); 6084} 6085function parse2(value, root2, parent, rule, rules, rulesets, pseudo, points, declarations) { 6086 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; ) 6087 switch (previous = character2, character2 = next()) { 6088 // ( 6089 case 40: 6090 if (previous != 108 && charat(characters2, length2 - 1) == 58) { 6091 indexof(characters2 += replace(delimit(character2), "&", "&\f"), "&\f") != -1 && (ampersand = -1); 6092 break; 6093 } 6094 // " ' [ 6095 case 34: 6096 case 39: 6097 case 91: 6098 characters2 += delimit(character2); 6099 break; 6100 // \t \n \r \s 6101 case 9: 6102 case 10: 6103 case 13: 6104 case 32: 6105 characters2 += whitespace(previous); 6106 break; 6107 // \ 6108 case 92: 6109 characters2 += escaping(caret() - 1, 7); 6110 continue; 6111 // / 6112 case 47: 6113 switch (peek()) { 6114 case 42: 6115 case 47: 6116 append(comment(commenter(next(), caret()), root2, parent), declarations); 6117 break; 6118 default: 6119 characters2 += "/"; 6120 } 6121 break; 6122 // { 6123 case 123 * variable: 6124 points[index4++] = strlen(characters2) * ampersand; 6125 // } ; \0 6126 case 125 * variable: 6127 case 59: 6128 case 0: 6129 switch (character2) { 6130 // \0 } 6131 case 0: 6132 case 125: 6133 scanning = 0; 6134 // ; 6135 case 59 + offset3: 6136 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); 6137 break; 6138 // @ ; 6139 case 59: 6140 characters2 += ";"; 6141 // { rule/at-rule 6142 default: 6143 if (append(reference2 = ruleset(characters2, root2, parent, index4, offset3, rules, points, type5, props = [], children = [], length2), rulesets), character2 === 123) 6144 if (offset3 === 0) 6145 parse2(characters2, root2, reference2, reference2, props, rulesets, length2, points, children); 6146 else 6147 switch (atrule === 99 && charat(characters2, 3) === 110 ? 100 : atrule) { 6148 // d l m s 6149 case 100: 6150 case 108: 6151 case 109: 6152 case 115: 6153 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); 6154 break; 6155 default: 6156 parse2(characters2, reference2, reference2, reference2, [""], children, 0, points, children); 6157 } 6158 } 6159 index4 = offset3 = property = 0, variable = ampersand = 1, type5 = characters2 = "", length2 = pseudo; 6160 break; 6161 // : 6162 case 58: 6163 length2 = 1 + strlen(characters2), property = previous; 6164 default: 6165 if (variable < 1) { 6166 if (character2 == 123) 6167 --variable; 6168 else if (character2 == 125 && variable++ == 0 && prev() == 125) 6169 continue; 6170 } 6171 switch (characters2 += from(character2), character2 * variable) { 6172 // & 6173 case 38: 6174 ampersand = offset3 > 0 ? 1 : (characters2 += "\f", -1); 6175 break; 6176 // , 6177 case 44: 6178 points[index4++] = (strlen(characters2) - 1) * ampersand, ampersand = 1; 6179 break; 6180 // @ 6181 case 64: 6182 peek() === 45 && (characters2 += delimit(next())), atrule = peek(), offset3 = length2 = strlen(type5 = characters2 += identifier(caret())), character2++; 6183 break; 6184 // - 6185 case 45: 6186 previous === 45 && strlen(characters2) == 2 && (variable = 0); 6187 } 6188 } 6189 return rulesets; 6190} 6191function ruleset(value, root2, parent, index4, offset3, rules, points, type5, props, children, length2) { 6192 for (var post = offset3 - 1, rule = offset3 === 0 ? rules : [""], size = sizeof(rule), i = 0, j = 0, k = 0; i < index4; ++i) 6193 for (var x = 0, y = substr(value, post + 1, post = abs(j = points[i])), z = value; x < size; ++x) 6194 (z = trim(j > 0 ? rule[x] + " " + y : replace(y, /&\f/g, rule[x]))) && (props[k++] = z); 6195 return node(value, root2, parent, offset3 === 0 ? RULESET : type5, props, children, length2); 6196} 6197function comment(value, root2, parent) { 6198 return node(value, root2, parent, COMMENT, from(char()), substr(value, 2, -2), 0); 6199} 6200function declaration(value, root2, parent, length2) { 6201 return node(value, root2, parent, DECLARATION, substr(value, 0, length2), substr(value, length2 + 1, -1), length2); 6202} 6203var init_Parser = __esm({ 6204 "../../node_modules/stylis/src/Parser.js"() { 6205 init_Enum(); 6206 init_Utility(); 6207 init_Tokenizer(); 6208 } 6209}); 6210
vendor: 169 bytes, lines 6211-6218
6211// ../../node_modules/stylis/src/Prefixer.js 6212var init_Prefixer = __esm({ 6213 "../../node_modules/stylis/src/Prefixer.js"() { 6214 init_Enum(); 6215 init_Utility(); 6216 } 6217}); 6218
vendor: 974 bytes, lines 6219-6247
6219// ../../node_modules/stylis/src/Serializer.js 6220function serialize(children, callback) { 6221 for (var output = "", length2 = sizeof(children), i = 0; i < length2; i++) 6222 output += callback(children[i], i, children, callback) || ""; 6223 return output; 6224} 6225function stringify2(element, index4, children, callback) { 6226 switch (element.type) { 6227 case LAYER: 6228 if (element.children.length) break; 6229 case IMPORT: 6230 case DECLARATION: 6231 return element.return = element.return || element.value; 6232 case COMMENT: 6233 return ""; 6234 case KEYFRAMES: 6235 return element.return = element.value + "{" + serialize(element.children, callback) + "}"; 6236 case RULESET: 6237 element.value = element.props.join(","); 6238 } 6239 return strlen(children = serialize(element.children, callback)) ? element.return = element.value + "{" + children + "}" : ""; 6240} 6241var init_Serializer = __esm({ 6242 "../../node_modules/stylis/src/Serializer.js"() { 6243 init_Enum(); 6244 init_Utility(); 6245 } 6246}); 6247
vendor: 655 bytes, lines 6248-6271
6248// ../../node_modules/stylis/src/Middleware.js 6249function middleware(collection) { 6250 var length2 = sizeof(collection); 6251 return function(element, index4, children, callback) { 6252 for (var output = "", i = 0; i < length2; i++) 6253 output += collection[i](element, index4, children, callback) || ""; 6254 return output; 6255 }; 6256} 6257function rulesheet(callback) { 6258 return function(element) { 6259 element.root || (element = element.return) && callback(element); 6260 }; 6261} 6262var init_Middleware = __esm({ 6263 "../../node_modules/stylis/src/Middleware.js"() { 6264 init_Enum(); 6265 init_Utility(); 6266 init_Tokenizer(); 6267 init_Serializer(); 6268 init_Prefixer(); 6269 } 6270}); 6271
vendor: 261 bytes, lines 6272-6284
6272// ../../node_modules/stylis/index.js 6273var init_stylis = __esm({ 6274 "../../node_modules/stylis/index.js"() { 6275 init_Enum(); 6276 init_Utility(); 6277 init_Parser(); 6278 init_Prefixer(); 6279 init_Tokenizer(); 6280 init_Serializer(); 6281 init_Middleware(); 6282 } 6283}); 6284
vendor: 485 bytes, lines 6285-6299
6285// ../../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.esm.js 6286var weakMemoize, init_emotion_weak_memoize_esm = __esm({ 6287 "../../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.esm.js"() { 6288 weakMemoize = function(func) { 6289 var cache = /* @__PURE__ */ new WeakMap(); 6290 return function(arg) { 6291 if (cache.has(arg)) 6292 return cache.get(arg); 6293 var ret = func(arg); 6294 return cache.set(arg, ret), ret; 6295 }; 6296 }; 6297 } 6298}); 6299
vendor: 368 bytes, lines 6300-6311
6300// ../../node_modules/@emotion/memoize/dist/emotion-memoize.esm.js 6301function memoize2(fn4) { 6302 var cache = /* @__PURE__ */ Object.create(null); 6303 return function(arg) { 6304 return cache[arg] === void 0 && (cache[arg] = fn4(arg)), cache[arg]; 6305 }; 6306} 6307var init_emotion_memoize_esm = __esm({ 6308 "../../node_modules/@emotion/memoize/dist/emotion-memoize.esm.js"() { 6309 } 6310}); 6311
vendor: 11,474 bytes, lines 6312-6590
6312// ../../node_modules/@emotion/cache/dist/emotion-cache.browser.esm.js 6313function prefix3(value, length2) { 6314 switch (hash(value, length2)) { 6315 // color-adjust 6316 case 5103: 6317 return WEBKIT + "print-" + value + value; 6318 // animation, animation-(delay|direction|duration|fill-mode|iteration-count|name|play-state|timing-function) 6319 case 5737: 6320 case 4201: 6321 case 3177: 6322 case 3433: 6323 case 1641: 6324 case 4457: 6325 case 2921: 6326 // text-decoration, filter, clip-path, backface-visibility, column, box-decoration-break 6327 case 5572: 6328 case 6356: 6329 case 5844: 6330 case 3191: 6331 case 6645: 6332 case 3005: 6333 // mask, mask-image, mask-(mode|clip|size), mask-(repeat|origin), mask-position, mask-composite, 6334 case 6391: 6335 case 5879: 6336 case 5623: 6337 case 6135: 6338 case 4599: 6339 case 4855: 6340 // background-clip, columns, column-(count|fill|gap|rule|rule-color|rule-style|rule-width|span|width) 6341 case 4215: 6342 case 6389: 6343 case 5109: 6344 case 5365: 6345 case 5621: 6346 case 3829: 6347 return WEBKIT + value + value; 6348 // appearance, user-select, transform, hyphens, text-size-adjust 6349 case 5349: 6350 case 4246: 6351 case 4810: 6352 case 6968: 6353 case 2756: 6354 return WEBKIT + value + MOZ + value + MS + value + value; 6355 // flex, flex-direction 6356 case 6828: 6357 case 4268: 6358 return WEBKIT + value + MS + value + value; 6359 // order 6360 case 6165: 6361 return WEBKIT + value + MS + "flex-" + value + value; 6362 // align-items 6363 case 5187: 6364 return WEBKIT + value + replace(value, /(\w+).+(:[^]+)/, WEBKIT + "box-$1$2" + MS + "flex-$1$2") + value; 6365 // align-self 6366 case 5443: 6367 return WEBKIT + value + MS + "flex-item-" + replace(value, /flex-|-self/, "") + value; 6368 // align-content 6369 case 4675: 6370 return WEBKIT + value + MS + "flex-line-pack" + replace(value, /align-content|flex-|-self/, "") + value; 6371 // flex-shrink 6372 case 5548: 6373 return WEBKIT + value + MS + replace(value, "shrink", "negative") + value; 6374 // flex-basis 6375 case 5292: 6376 return WEBKIT + value + MS + replace(value, "basis", "preferred-size") + value; 6377 // flex-grow 6378 case 6060: 6379 return WEBKIT + "box-" + replace(value, "-grow", "") + WEBKIT + value + MS + replace(value, "grow", "positive") + value; 6380 // transition 6381 case 4554: 6382 return WEBKIT + replace(value, /([^-])(transform)/g, "$1" + WEBKIT + "$2") + value; 6383 // cursor 6384 case 6187: 6385 return replace(replace(replace(value, /(zoom-|grab)/, WEBKIT + "$1"), /(image-set)/, WEBKIT + "$1"), value, "") + value; 6386 // background, background-image 6387 case 5495: 6388 case 3959: 6389 return replace(value, /(image-set\([^]*)/, WEBKIT + "$1$`$1"); 6390 // justify-content 6391 case 4968: 6392 return replace(replace(value, /(.+:)(flex-)?(.*)/, WEBKIT + "box-pack:$3" + MS + "flex-pack:$3"), /s.+-b[^;]+/, "justify") + WEBKIT + value + value; 6393 // (margin|padding)-inline-(start|end) 6394 case 4095: 6395 case 3583: 6396 case 4068: 6397 case 2532: 6398 return replace(value, /(.+)-inline(.+)/, WEBKIT + "$1$2") + value; 6399 // (min|max)?(width|height|inline-size|block-size) 6400 case 8116: 6401 case 7059: 6402 case 5753: 6403 case 5535: 6404 case 5445: 6405 case 5701: 6406 case 4933: 6407 case 4677: 6408 case 5533: 6409 case 5789: 6410 case 5021: 6411 case 4765: 6412 if (strlen(value) - 1 - length2 > 6) switch (charat(value, length2 + 1)) { 6413 // (m)ax-content, (m)in-content 6414 case 109: 6415 if (charat(value, length2 + 4) !== 45) break; 6416 // (f)ill-available, (f)it-content 6417 case 102: 6418 return replace(value, /(.+:)(.+)-([^]+)/, "$1" + WEBKIT + "$2-$3$1" + MOZ + (charat(value, length2 + 3) == 108 ? "$3" : "$2-$3")) + value; 6419 // (s)tretch 6420 case 115: 6421 return ~indexof(value, "stretch") ? prefix3(replace(value, "stretch", "fill-available"), length2) + value : value; 6422 } 6423 break; 6424 // position: sticky 6425 case 4949: 6426 if (charat(value, length2 + 1) !== 115) break; 6427 // display: (flex|inline-flex) 6428 case 6444: 6429 switch (charat(value, strlen(value) - 3 - (~indexof(value, "!important") && 10))) { 6430 // stic(k)y 6431 case 107: 6432 return replace(value, ":", ":" + WEBKIT) + value; 6433 // (inline-)?fl(e)x 6434 case 101: 6435 return replace(value, /(.+:)([^;!]+)(;|!.+)?/, "$1" + WEBKIT + (charat(value, 14) === 45 ? "inline-" : "") + "box$3$1" + WEBKIT + "$2$3$1" + MS + "$2box$3") + value; 6436 } 6437 break; 6438 // writing-mode 6439 case 5936: 6440 switch (charat(value, length2 + 11)) { 6441 // vertical-l(r) 6442 case 114: 6443 return WEBKIT + value + MS + replace(value, /[svh]\w+-[tblr]{2}/, "tb") + value; 6444 // vertical-r(l) 6445 case 108: 6446 return WEBKIT + value + MS + replace(value, /[svh]\w+-[tblr]{2}/, "tb-rl") + value; 6447 // horizontal(-)tb 6448 case 45: 6449 return WEBKIT + value + MS + replace(value, /[svh]\w+-[tblr]{2}/, "lr") + value; 6450 } 6451 return WEBKIT + value + MS + value + value; 6452 } 6453 return value; 6454} 6455var identifierWithPointTracking, toRules, getRules, fixedElements, compat, removeLabel, prefixer, defaultStylisPlugins, createCache, init_emotion_cache_browser_esm = __esm({ 6456 "../../node_modules/@emotion/cache/dist/emotion-cache.browser.esm.js"() { 6457 init_emotion_sheet_esm(); 6458 init_stylis(); 6459 init_emotion_weak_memoize_esm(); 6460 init_emotion_memoize_esm(); 6461 identifierWithPointTracking = function(begin, points, index4) { 6462 for (var previous = 0, character2 = 0; previous = character2, character2 = peek(), previous === 38 && character2 === 12 && (points[index4] = 1), !token(character2); ) 6463 next(); 6464 return slice(begin, position); 6465 }, toRules = function(parsed, points) { 6466 var index4 = -1, character2 = 44; 6467 do 6468 switch (token(character2)) { 6469 case 0: 6470 character2 === 38 && peek() === 12 && (points[index4] = 1), parsed[index4] += identifierWithPointTracking(position - 1, points, index4); 6471 break; 6472 case 2: 6473 parsed[index4] += delimit(character2); 6474 break; 6475 case 4: 6476 if (character2 === 44) { 6477 parsed[++index4] = peek() === 58 ? "&\f" : "", points[index4] = parsed[index4].length; 6478 break; 6479 } 6480 // fallthrough 6481 default: 6482 parsed[index4] += from(character2); 6483 } 6484 while (character2 = next()); 6485 return parsed; 6486 }, getRules = function(value, points) { 6487 return dealloc(toRules(alloc(value), points)); 6488 }, fixedElements = /* @__PURE__ */ new WeakMap(), compat = function(element) { 6489 if (!(element.type !== "rule" || !element.parent || // positive .length indicates that this rule contains pseudo 6490 // negative .length indicates that this rule has been already prefixed 6491 element.length < 1)) { 6492 for (var value = element.value, parent = element.parent, isImplicitRule = element.column === parent.column && element.line === parent.line; parent.type !== "rule"; ) 6493 if (parent = parent.parent, !parent) return; 6494 if (!(element.props.length === 1 && value.charCodeAt(0) !== 58 && !fixedElements.get(parent)) && !isImplicitRule) { 6495 fixedElements.set(element, !0); 6496 for (var points = [], rules = getRules(value, points), parentRules = parent.props, i = 0, k = 0; i < rules.length; i++) 6497 for (var j = 0; j < parentRules.length; j++, k++) 6498 element.props[k] = points[i] ? rules[i].replace(/&\f/g, parentRules[j]) : parentRules[j] + " " + rules[i]; 6499 } 6500 } 6501 }, removeLabel = function(element) { 6502 if (element.type === "decl") { 6503 var value = element.value; 6504 // charcode for l 6505 value.charCodeAt(0) === 108 && // charcode for b 6506 value.charCodeAt(2) === 98 && (element.return = "", element.value = ""); 6507 } 6508 }; 6509 prefixer = function(element, index4, children, callback) { 6510 if (element.length > -1 && !element.return) switch (element.type) { 6511 case DECLARATION: 6512 element.return = prefix3(element.value, element.length); 6513 break; 6514 case KEYFRAMES: 6515 return serialize([copy(element, { 6516 value: replace(element.value, "@", "@" + WEBKIT) 6517 })], callback); 6518 case RULESET: 6519 if (element.length) return combine(element.props, function(value) { 6520 switch (match(value, /(::plac\w+|:read-\w+)/)) { 6521 // :read-(only|write) 6522 case ":read-only": 6523 case ":read-write": 6524 return serialize([copy(element, { 6525 props: [replace(value, /:(read-\w+)/, ":" + MOZ + "$1")] 6526 })], callback); 6527 // :placeholder 6528 case "::placeholder": 6529 return serialize([copy(element, { 6530 props: [replace(value, /:(plac\w+)/, ":" + WEBKIT + "input-$1")] 6531 }), copy(element, { 6532 props: [replace(value, /:(plac\w+)/, ":" + MOZ + "$1")] 6533 }), copy(element, { 6534 props: [replace(value, /:(plac\w+)/, MS + "input-$1")] 6535 })], callback); 6536 } 6537 return ""; 6538 }); 6539 } 6540 }, defaultStylisPlugins = [prefixer], createCache = function(options) { 6541 var key = options.key; 6542 if (key === "css") { 6543 var ssrStyles = document.querySelectorAll("style[data-emotion]:not([data-s])"); 6544 Array.prototype.forEach.call(ssrStyles, function(node2) { 6545 var dataEmotionAttribute = node2.getAttribute("data-emotion"); 6546 dataEmotionAttribute.indexOf(" ") !== -1 && (document.head.appendChild(node2), node2.setAttribute("data-s", "")); 6547 }); 6548 } 6549 var stylisPlugins = options.stylisPlugins || defaultStylisPlugins, inserted = {}, container, nodesToHydrate = []; 6550 container = options.container || document.head, Array.prototype.forEach.call( 6551 // this means we will ignore elements which don't have a space in them which 6552 // means that the style elements we're looking at are only Emotion 11 server-rendered style elements 6553 document.querySelectorAll('style[data-emotion^="' + key + ' "]'), 6554 function(node2) { 6555 for (var attrib = node2.getAttribute("data-emotion").split(" "), i = 1; i < attrib.length; i++) 6556 inserted[attrib[i]] = !0; 6557 nodesToHydrate.push(node2); 6558 } 6559 ); 6560 var _insert, omnipresentPlugins = [compat, removeLabel]; 6561 { 6562 var currentSheet, finalizingPlugins = [stringify2, rulesheet(function(rule) { 6563 currentSheet.insert(rule); 6564 })], serializer = middleware(omnipresentPlugins.concat(stylisPlugins, finalizingPlugins)), stylis = function(styles4) { 6565 return serialize(compile(styles4), serializer); 6566 }; 6567 _insert = function(selector, serialized, sheet, shouldCache) { 6568 currentSheet = sheet, stylis(selector ? selector + "{" + serialized.styles + "}" : serialized.styles), shouldCache && (cache.inserted[serialized.name] = !0); 6569 }; 6570 } 6571 var cache = { 6572 key, 6573 sheet: new StyleSheet({ 6574 key, 6575 container, 6576 nonce: options.nonce, 6577 speedy: options.speedy, 6578 prepend: options.prepend, 6579 insertionPoint: options.insertionPoint 6580 }), 6581 nonce: options.nonce, 6582 inserted, 6583 registered: {}, 6584 insert: _insert 6585 }; 6586 return cache.sheet.hydrate(nodesToHydrate), cache; 6587 }; 6588 } 6589}); 6590
vendor: 3,692 bytes, lines 6591-6685
6591// ../../node_modules/react-is/cjs/react-is.production.min.js 6592var require_react_is_production_min = __commonJS({ 6593 "../../node_modules/react-is/cjs/react-is.production.min.js"(exports) { 6594 "use strict"; 6595 var b = typeof Symbol == "function" && Symbol.for, c = b ? Symbol.for("react.element") : 60103, d = b ? Symbol.for("react.portal") : 60106, e = b ? Symbol.for("react.fragment") : 60107, f4 = b ? Symbol.for("react.strict_mode") : 60108, g2 = b ? Symbol.for("react.profiler") : 60114, h3 = b ? Symbol.for("react.provider") : 60109, k = b ? Symbol.for("react.context") : 60110, l = b ? Symbol.for("react.async_mode") : 60111, m3 = b ? Symbol.for("react.concurrent_mode") : 60111, n = b ? Symbol.for("react.forward_ref") : 60112, p3 = b ? Symbol.for("react.suspense") : 60113, q = b ? Symbol.for("react.suspense_list") : 60120, r2 = b ? Symbol.for("react.memo") : 60115, t = b ? Symbol.for("react.lazy") : 60116, v = b ? Symbol.for("react.block") : 60121, w = b ? Symbol.for("react.fundamental") : 60117, x = b ? Symbol.for("react.responder") : 60118, y = b ? Symbol.for("react.scope") : 60119; 6596 function z(a3) { 6597 if (typeof a3 == "object" && a3 !== null) { 6598 var u2 = a3.$$typeof; 6599 switch (u2) { 6600 case c: 6601 switch (a3 = a3.type, a3) { 6602 case l: 6603 case m3: 6604 case e: 6605 case g2: 6606 case f4: 6607 case p3: 6608 return a3; 6609 default: 6610 switch (a3 = a3 && a3.$$typeof, a3) { 6611 case k: 6612 case n: 6613 case t: 6614 case r2: 6615 case h3: 6616 return a3; 6617 default: 6618 return u2; 6619 } 6620 } 6621 case d: 6622 return u2; 6623 } 6624 } 6625 } 6626 function A3(a3) { 6627 return z(a3) === m3; 6628 } 6629 exports.AsyncMode = l; 6630 exports.ConcurrentMode = m3; 6631 exports.ContextConsumer = k; 6632 exports.ContextProvider = h3; 6633 exports.Element = c; 6634 exports.ForwardRef = n; 6635 exports.Fragment = e; 6636 exports.Lazy = t; 6637 exports.Memo = r2; 6638 exports.Portal = d; 6639 exports.Profiler = g2; 6640 exports.StrictMode = f4; 6641 exports.Suspense = p3; 6642 exports.isAsyncMode = function(a3) { 6643 return A3(a3) || z(a3) === l; 6644 }; 6645 exports.isConcurrentMode = A3; 6646 exports.isContextConsumer = function(a3) { 6647 return z(a3) === k; 6648 }; 6649 exports.isContextProvider = function(a3) { 6650 return z(a3) === h3; 6651 }; 6652 exports.isElement = function(a3) { 6653 return typeof a3 == "object" && a3 !== null && a3.$$typeof === c; 6654 }; 6655 exports.isForwardRef = function(a3) { 6656 return z(a3) === n; 6657 }; 6658 exports.isFragment = function(a3) { 6659 return z(a3) === e; 6660 }; 6661 exports.isLazy = function(a3) { 6662 return z(a3) === t; 6663 }; 6664 exports.isMemo = function(a3) { 6665 return z(a3) === r2; 6666 }; 6667 exports.isPortal = function(a3) { 6668 return z(a3) === d; 6669 }; 6670 exports.isProfiler = function(a3) { 6671 return z(a3) === g2; 6672 }; 6673 exports.isStrictMode = function(a3) { 6674 return z(a3) === f4; 6675 }; 6676 exports.isSuspense = function(a3) { 6677 return z(a3) === p3; 6678 }; 6679 exports.isValidElementType = function(a3) { 6680 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); 6681 }; 6682 exports.typeOf = z; 6683 } 6684}); 6685
vendor: 221 bytes, lines 6686-6693
6686// ../../node_modules/react-is/index.js 6687var require_react_is = __commonJS({ 6688 "../../node_modules/react-is/index.js"(exports, module2) { 6689 "use strict"; 6690 module2.exports = require_react_is_production_min(); 6691 } 6692}); 6693
vendor: 2,778 bytes, lines 6694-6762
6694// ../../node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js 6695var require_hoist_non_react_statics_cjs = __commonJS({ 6696 "../../node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js"(exports, module2) { 6697 "use strict"; 6698 var reactIs2 = require_react_is(), REACT_STATICS = { 6699 childContextTypes: !0, 6700 contextType: !0, 6701 contextTypes: !0, 6702 defaultProps: !0, 6703 displayName: !0, 6704 getDefaultProps: !0, 6705 getDerivedStateFromError: !0, 6706 getDerivedStateFromProps: !0, 6707 mixins: !0, 6708 propTypes: !0, 6709 type: !0 6710 }, KNOWN_STATICS = { 6711 name: !0, 6712 length: !0, 6713 prototype: !0, 6714 caller: !0, 6715 callee: !0, 6716 arguments: !0, 6717 arity: !0 6718 }, FORWARD_REF_STATICS = { 6719 $$typeof: !0, 6720 render: !0, 6721 defaultProps: !0, 6722 displayName: !0, 6723 propTypes: !0 6724 }, MEMO_STATICS = { 6725 $$typeof: !0, 6726 compare: !0, 6727 defaultProps: !0, 6728 displayName: !0, 6729 propTypes: !0, 6730 type: !0 6731 }, TYPE_STATICS = {}; 6732 TYPE_STATICS[reactIs2.ForwardRef] = FORWARD_REF_STATICS; 6733 TYPE_STATICS[reactIs2.Memo] = MEMO_STATICS; 6734 function getStatics(component) { 6735 return reactIs2.isMemo(component) ? MEMO_STATICS : TYPE_STATICS[component.$$typeof] || REACT_STATICS; 6736 } 6737 var defineProperty = Object.defineProperty, getOwnPropertyNames = Object.getOwnPropertyNames, getOwnPropertySymbols = Object.getOwnPropertySymbols, getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor, getPrototypeOf = Object.getPrototypeOf, objectPrototype = Object.prototype; 6738 function hoistNonReactStatics2(targetComponent, sourceComponent, blacklist) { 6739 if (typeof sourceComponent != "string") { 6740 if (objectPrototype) { 6741 var inheritedComponent = getPrototypeOf(sourceComponent); 6742 inheritedComponent && inheritedComponent !== objectPrototype && hoistNonReactStatics2(targetComponent, inheritedComponent, blacklist); 6743 } 6744 var keys3 = getOwnPropertyNames(sourceComponent); 6745 getOwnPropertySymbols && (keys3 = keys3.concat(getOwnPropertySymbols(sourceComponent))); 6746 for (var targetStatics = getStatics(targetComponent), sourceStatics = getStatics(sourceComponent), i = 0; i < keys3.length; ++i) { 6747 var key = keys3[i]; 6748 if (!KNOWN_STATICS[key] && !(blacklist && blacklist[key]) && !(sourceStatics && sourceStatics[key]) && !(targetStatics && targetStatics[key])) { 6749 var descriptor = getOwnPropertyDescriptor(sourceComponent, key); 6750 try { 6751 defineProperty(targetComponent, key, descriptor); 6752 } catch { 6753 } 6754 } 6755 } 6756 } 6757 return targetComponent; 6758 } 6759 module2.exports = hoistNonReactStatics2; 6760 } 6761}); 6762
vendor: 583 bytes, lines 6763-6771
6763// ../../node_modules/@emotion/react/_isolated-hnrs/dist/emotion-react-_isolated-hnrs.browser.esm.js 6764var import_hoist_non_react_statics, hoistNonReactStatics, init_emotion_react_isolated_hnrs_browser_esm = __esm({ 6765 "../../node_modules/@emotion/react/_isolated-hnrs/dist/emotion-react-_isolated-hnrs.browser.esm.js"() { 6766 import_hoist_non_react_statics = __toESM(require_hoist_non_react_statics_cjs()), hoistNonReactStatics = (function(targetComponent, sourceComponent) { 6767 return (0, import_hoist_non_react_statics.default)(targetComponent, sourceComponent); 6768 }); 6769 } 6770}); 6771
vendor: 1,903 bytes, lines 6772-6806
6772// ../../node_modules/@emotion/utils/dist/emotion-utils.browser.esm.js 6773function getRegisteredStyles(registered, registeredStyles, classNames) { 6774 var rawClassName = ""; 6775 return classNames.split(" ").forEach(function(className) { 6776 registered[className] !== void 0 ? registeredStyles.push(registered[className] + ";") : className && (rawClassName += className + " "); 6777 }), rawClassName; 6778} 6779var isBrowser, registerStyles, insertStyles, init_emotion_utils_browser_esm = __esm({ 6780 "../../node_modules/@emotion/utils/dist/emotion-utils.browser.esm.js"() { 6781 isBrowser = !0; 6782 registerStyles = function(cache, serialized, isStringTag) { 6783 var className = cache.key + "-" + serialized.name; 6784 // we only need to add the styles to the registered cache if the 6785 // class name could be used further down 6786 // the tree but if it's a string tag, we know it won't 6787 // so we don't have to add it to registered cache. 6788 // this improves memory usage since we can avoid storing the whole style string 6789 (isStringTag === !1 || // we need to always store it if we're in compat mode and 6790 // in node since emotion-server relies on whether a style is in 6791 // the registered cache to know whether a style is global or not 6792 // also, note that this check will be dead code eliminated in the browser 6793 isBrowser === !1) && cache.registered[className] === void 0 && (cache.registered[className] = serialized.styles); 6794 }, insertStyles = function(cache, serialized, isStringTag) { 6795 registerStyles(cache, serialized, isStringTag); 6796 var className = cache.key + "-" + serialized.name; 6797 if (cache.inserted[serialized.name] === void 0) { 6798 var current = serialized; 6799 do 6800 cache.insert(serialized === current ? "." + className : "", current, cache.sheet, !0), current = current.next; 6801 while (current !== void 0); 6802 } 6803 }; 6804 } 6805}); 6806
vendor: 1,145 bytes, lines 6807-6831
6807// ../../node_modules/@emotion/hash/dist/emotion-hash.esm.js 6808function murmur2(str2) { 6809 for (var h3 = 0, k, i = 0, len = str2.length; len >= 4; ++i, len -= 4) 6810 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): */ 6811 (k & 65535) * 1540483477 + ((k >>> 16) * 59797 << 16), k ^= /* k >>> r: */ 6812 k >>> 24, h3 = /* Math.imul(k, m): */ 6813 (k & 65535) * 1540483477 + ((k >>> 16) * 59797 << 16) ^ /* Math.imul(h, m): */ 6814 (h3 & 65535) * 1540483477 + ((h3 >>> 16) * 59797 << 16); 6815 switch (len) { 6816 case 3: 6817 h3 ^= (str2.charCodeAt(i + 2) & 255) << 16; 6818 case 2: 6819 h3 ^= (str2.charCodeAt(i + 1) & 255) << 8; 6820 case 1: 6821 h3 ^= str2.charCodeAt(i) & 255, h3 = /* Math.imul(h, m): */ 6822 (h3 & 65535) * 1540483477 + ((h3 >>> 16) * 59797 << 16); 6823 } 6824 return h3 ^= h3 >>> 13, h3 = /* Math.imul(h, m): */ 6825 (h3 & 65535) * 1540483477 + ((h3 >>> 16) * 59797 << 16), ((h3 ^ h3 >>> 15) >>> 0).toString(36); 6826} 6827var init_emotion_hash_esm = __esm({ 6828 "../../node_modules/@emotion/hash/dist/emotion-hash.esm.js"() { 6829 } 6830}); 6831
vendor: 1,301 bytes, lines 6832-6887
6832// ../../node_modules/@emotion/unitless/dist/emotion-unitless.esm.js 6833var unitlessKeys, init_emotion_unitless_esm = __esm({ 6834 "../../node_modules/@emotion/unitless/dist/emotion-unitless.esm.js"() { 6835 unitlessKeys = { 6836 animationIterationCount: 1, 6837 aspectRatio: 1, 6838 borderImageOutset: 1, 6839 borderImageSlice: 1, 6840 borderImageWidth: 1, 6841 boxFlex: 1, 6842 boxFlexGroup: 1, 6843 boxOrdinalGroup: 1, 6844 columnCount: 1, 6845 columns: 1, 6846 flex: 1, 6847 flexGrow: 1, 6848 flexPositive: 1, 6849 flexShrink: 1, 6850 flexNegative: 1, 6851 flexOrder: 1, 6852 gridRow: 1, 6853 gridRowEnd: 1, 6854 gridRowSpan: 1, 6855 gridRowStart: 1, 6856 gridColumn: 1, 6857 gridColumnEnd: 1, 6858 gridColumnSpan: 1, 6859 gridColumnStart: 1, 6860 msGridRow: 1, 6861 msGridRowSpan: 1, 6862 msGridColumn: 1, 6863 msGridColumnSpan: 1, 6864 fontWeight: 1, 6865 lineHeight: 1, 6866 opacity: 1, 6867 order: 1, 6868 orphans: 1, 6869 scale: 1, 6870 tabSize: 1, 6871 widows: 1, 6872 zIndex: 1, 6873 zoom: 1, 6874 WebkitLineClamp: 1, 6875 // SVG-related properties 6876 fillOpacity: 1, 6877 floodOpacity: 1, 6878 stopOpacity: 1, 6879 strokeDasharray: 1, 6880 strokeDashoffset: 1, 6881 strokeMiterlimit: 1, 6882 strokeOpacity: 1, 6883 strokeWidth: 1 6884 }; 6885 } 6886}); 6887
vendor: 5,624 bytes, lines 6888-7024
6888// ../../node_modules/@emotion/serialize/dist/emotion-serialize.esm.js 6889function handleInterpolation(mergedProps, registered, interpolation) { 6890 if (interpolation == null) 6891 return ""; 6892 var componentSelector = interpolation; 6893 if (componentSelector.__emotion_styles !== void 0) 6894 return componentSelector; 6895 switch (typeof interpolation) { 6896 case "boolean": 6897 return ""; 6898 case "object": { 6899 var keyframes2 = interpolation; 6900 if (keyframes2.anim === 1) 6901 return cursor = { 6902 name: keyframes2.name, 6903 styles: keyframes2.styles, 6904 next: cursor 6905 }, keyframes2.name; 6906 var serializedStyles = interpolation; 6907 if (serializedStyles.styles !== void 0) { 6908 var next2 = serializedStyles.next; 6909 if (next2 !== void 0) 6910 for (; next2 !== void 0; ) 6911 cursor = { 6912 name: next2.name, 6913 styles: next2.styles, 6914 next: cursor 6915 }, next2 = next2.next; 6916 var styles4 = serializedStyles.styles + ";"; 6917 return styles4; 6918 } 6919 return createStringFromObject(mergedProps, registered, interpolation); 6920 } 6921 case "function": { 6922 if (mergedProps !== void 0) { 6923 var previousCursor = cursor, result = interpolation(mergedProps); 6924 return cursor = previousCursor, handleInterpolation(mergedProps, registered, result); 6925 } 6926 break; 6927 } 6928 } 6929 var asString = interpolation; 6930 if (registered == null) 6931 return asString; 6932 var cached = registered[asString]; 6933 return cached !== void 0 ? cached : asString; 6934} 6935function createStringFromObject(mergedProps, registered, obj) { 6936 var string = ""; 6937 if (Array.isArray(obj)) 6938 for (var i = 0; i < obj.length; i++) 6939 string += handleInterpolation(mergedProps, registered, obj[i]) + ";"; 6940 else 6941 for (var key in obj) { 6942 var value = obj[key]; 6943 if (typeof value != "object") { 6944 var asString = value; 6945 registered != null && registered[asString] !== void 0 ? string += key + "{" + registered[asString] + "}" : isProcessableValue(asString) && (string += processStyleName(key) + ":" + processStyleValue(key, asString) + ";"); 6946 } else { 6947 if (key === "NO_COMPONENT_SELECTOR" && isDevelopment2) 6948 throw new Error(noComponentSelectorMessage); 6949 if (Array.isArray(value) && typeof value[0] == "string" && (registered == null || registered[value[0]] === void 0)) 6950 for (var _i = 0; _i < value.length; _i++) 6951 isProcessableValue(value[_i]) && (string += processStyleName(key) + ":" + processStyleValue(key, value[_i]) + ";"); 6952 else { 6953 var interpolated = handleInterpolation(mergedProps, registered, value); 6954 switch (key) { 6955 case "animation": 6956 case "animationName": { 6957 string += processStyleName(key) + ":" + interpolated + ";"; 6958 break; 6959 } 6960 default: 6961 string += key + "{" + interpolated + "}"; 6962 } 6963 } 6964 } 6965 } 6966 return string; 6967} 6968function serializeStyles(args, registered, mergedProps) { 6969 if (args.length === 1 && typeof args[0] == "object" && args[0] !== null && args[0].styles !== void 0) 6970 return args[0]; 6971 var stringMode = !0, styles4 = ""; 6972 cursor = void 0; 6973 var strings = args[0]; 6974 if (strings == null || strings.raw === void 0) 6975 stringMode = !1, styles4 += handleInterpolation(mergedProps, registered, strings); 6976 else { 6977 var asTemplateStringsArr = strings; 6978 styles4 += asTemplateStringsArr[0]; 6979 } 6980 for (var i = 1; i < args.length; i++) 6981 if (styles4 += handleInterpolation(mergedProps, registered, args[i]), stringMode) { 6982 var templateStringsArr = strings; 6983 styles4 += templateStringsArr[i]; 6984 } 6985 labelPattern.lastIndex = 0; 6986 for (var identifierName = "", match3; (match3 = labelPattern.exec(styles4)) !== null; ) 6987 identifierName += "-" + match3[1]; 6988 var name = murmur2(styles4) + identifierName; 6989 return { 6990 name, 6991 styles: styles4, 6992 next: cursor 6993 }; 6994} 6995var isDevelopment2, hyphenateRegex, animationRegex, isCustomProperty, isProcessableValue, processStyleName, processStyleValue, noComponentSelectorMessage, labelPattern, cursor, init_emotion_serialize_esm = __esm({ 6996 "../../node_modules/@emotion/serialize/dist/emotion-serialize.esm.js"() { 6997 init_emotion_hash_esm(); 6998 init_emotion_unitless_esm(); 6999 init_emotion_memoize_esm(); 7000 isDevelopment2 = !1, hyphenateRegex = /[A-Z]|^ms/g, animationRegex = /_EMO_([^_]+?)_([^]*?)_EMO_/g, isCustomProperty = function(property) { 7001 return property.charCodeAt(1) === 45; 7002 }, isProcessableValue = function(value) { 7003 return value != null && typeof value != "boolean"; 7004 }, processStyleName = memoize2(function(styleName) { 7005 return isCustomProperty(styleName) ? styleName : styleName.replace(hyphenateRegex, "-$&").toLowerCase(); 7006 }), processStyleValue = function(key, value) { 7007 switch (key) { 7008 case "animation": 7009 case "animationName": 7010 if (typeof value == "string") 7011 return value.replace(animationRegex, function(match3, p1, p22) { 7012 return cursor = { 7013 name: p1, 7014 styles: p22, 7015 next: cursor 7016 }, p1; 7017 }); 7018 } 7019 return unitlessKeys[key] !== 1 && !isCustomProperty(key) && typeof value == "number" && value !== 0 ? value + "px" : value; 7020 }, noComponentSelectorMessage = "Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform."; 7021 labelPattern = /label:\s*([^\s;{]+)\s*(;|$)/g; 7022 } 7023}); 7024
vendor: 822 bytes, lines 7025-7033
7025// ../../node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.browser.esm.js 7026var React, syncFallback, useInsertionEffect2, useInsertionEffectAlwaysWithSyncFallback, useInsertionEffectWithLayoutFallback, init_emotion_use_insertion_effect_with_fallbacks_browser_esm = __esm({ 7027 "../../node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.browser.esm.js"() { 7028 React = __toESM(require_react()), syncFallback = function(create4) { 7029 return create4(); 7030 }, useInsertionEffect2 = React.useInsertionEffect ? React.useInsertionEffect : !1, useInsertionEffectAlwaysWithSyncFallback = useInsertionEffect2 || syncFallback, useInsertionEffectWithLayoutFallback = useInsertionEffect2 || React.useLayoutEffect; 7031 } 7032}); 7033
vendor: 4,727 bytes, lines 7034-7116
7034// ../../node_modules/@emotion/react/dist/emotion-element-f0de968e.browser.esm.js 7035function withTheme(Component5) { 7036 var componentName = Component5.displayName || Component5.name || "Component", WithTheme = React2.forwardRef(function(props, ref) { 7037 var theme3 = React2.useContext(ThemeContext); 7038 return React2.createElement(Component5, _extends({ 7039 theme: theme3, 7040 ref 7041 }, props)); 7042 }); 7043 return WithTheme.displayName = "WithTheme(" + componentName + ")", hoistNonReactStatics(WithTheme, Component5); 7044} 7045var 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({ 7046 "../../node_modules/@emotion/react/dist/emotion-element-f0de968e.browser.esm.js"() { 7047 React2 = __toESM(require_react()), import_react = __toESM(require_react()); 7048 init_emotion_cache_browser_esm(); 7049 init_extends(); 7050 init_emotion_weak_memoize_esm(); 7051 init_emotion_react_isolated_hnrs_browser_esm(); 7052 init_emotion_utils_browser_esm(); 7053 init_emotion_serialize_esm(); 7054 init_emotion_use_insertion_effect_with_fallbacks_browser_esm(); 7055 isDevelopment3 = !1, EmotionCacheContext = React2.createContext( 7056 // we're doing this to avoid preconstruct's dead code elimination in this one case 7057 // because this module is primarily intended for the browser and node 7058 // but it's also required in react native and similar environments sometimes 7059 // and we could have a special build just for that 7060 // but this is much easier and the native packages 7061 // might use a different theme context in the future anyway 7062 typeof HTMLElement < "u" ? createCache({ 7063 key: "css" 7064 }) : null 7065 ), CacheProvider = EmotionCacheContext.Provider, withEmotionCache = function(func) { 7066 return (0, import_react.forwardRef)(function(props, ref) { 7067 var cache = (0, import_react.useContext)(EmotionCacheContext); 7068 return func(props, cache, ref); 7069 }); 7070 }, ThemeContext = React2.createContext({}), useTheme = function() { 7071 return React2.useContext(ThemeContext); 7072 }, getTheme = function(outerTheme, theme3) { 7073 if (typeof theme3 == "function") { 7074 var mergedTheme = theme3(outerTheme); 7075 return mergedTheme; 7076 } 7077 return _extends({}, outerTheme, theme3); 7078 }, createCacheWithTheme = weakMemoize(function(outerTheme) { 7079 return weakMemoize(function(theme3) { 7080 return getTheme(outerTheme, theme3); 7081 }); 7082 }), ThemeProvider = function(props) { 7083 var theme3 = React2.useContext(ThemeContext); 7084 return props.theme !== theme3 && (theme3 = createCacheWithTheme(theme3)(props.theme)), React2.createElement(ThemeContext.Provider, { 7085 value: theme3 7086 }, props.children); 7087 }; 7088 hasOwn = {}.hasOwnProperty, typePropName = "__EMOTION_TYPE_PLEASE_DO_NOT_USE__", createEmotionProps = function(type5, props) { 7089 var newProps = {}; 7090 for (var _key in props) 7091 hasOwn.call(props, _key) && (newProps[_key] = props[_key]); 7092 return newProps[typePropName] = type5, newProps; 7093 }, Insertion = function(_ref) { 7094 var cache = _ref.cache, serialized = _ref.serialized, isStringTag = _ref.isStringTag; 7095 return registerStyles(cache, serialized, isStringTag), useInsertionEffectAlwaysWithSyncFallback(function() { 7096 return insertStyles(cache, serialized, isStringTag); 7097 }), null; 7098 }, Emotion = withEmotionCache(function(props, cache, ref) { 7099 var cssProp = props.css; 7100 typeof cssProp == "string" && cache.registered[cssProp] !== void 0 && (cssProp = cache.registered[cssProp]); 7101 var WrappedComponent = props[typePropName], registeredStyles = [cssProp], className = ""; 7102 typeof props.className == "string" ? className = getRegisteredStyles(cache.registered, registeredStyles, props.className) : props.className != null && (className = props.className + " "); 7103 var serialized = serializeStyles(registeredStyles, void 0, React2.useContext(ThemeContext)); 7104 className += cache.key + "-" + serialized.name; 7105 var newProps = {}; 7106 for (var _key2 in props) 7107 hasOwn.call(props, _key2) && _key2 !== "css" && _key2 !== typePropName && !isDevelopment3 && (newProps[_key2] = props[_key2]); 7108 return newProps.className = className, ref && (newProps.ref = ref), React2.createElement(React2.Fragment, null, React2.createElement(Insertion, { 7109 cache, 7110 serialized, 7111 isStringTag: typeof WrappedComponent == "string" 7112 }), React2.createElement(WrappedComponent, newProps)); 7113 }), Emotion$1 = Emotion; 7114 } 7115}); 7116
vendor: 5,913 bytes, lines 7117-7247
7117// ../../node_modules/@emotion/react/dist/emotion-react.browser.esm.js 7118function css() { 7119 for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) 7120 args[_key] = arguments[_key]; 7121 return serializeStyles(args); 7122} 7123function keyframes() { 7124 var insertable = css.apply(void 0, arguments), name = "animation-" + insertable.name; 7125 return { 7126 name, 7127 styles: "@keyframes " + name + "{" + insertable.styles + "}", 7128 anim: 1, 7129 toString: function() { 7130 return "_EMO_" + this.name + "_" + this.styles + "_EMO_"; 7131 } 7132 }; 7133} 7134function merge(registered, css3, className) { 7135 var registeredStyles = [], rawClassName = getRegisteredStyles(registered, registeredStyles, className); 7136 return registeredStyles.length < 2 ? className : rawClassName + css3(registeredStyles); 7137} 7138var React3, import_hoist_non_react_statics2, jsx, Global, classnames, Insertion3, ClassNames, init_emotion_react_browser_esm = __esm({ 7139 "../../node_modules/@emotion/react/dist/emotion-react.browser.esm.js"() { 7140 init_emotion_element_f0de968e_browser_esm(); 7141 init_emotion_element_f0de968e_browser_esm(); 7142 React3 = __toESM(require_react()); 7143 init_emotion_utils_browser_esm(); 7144 init_emotion_use_insertion_effect_with_fallbacks_browser_esm(); 7145 init_emotion_serialize_esm(); 7146 init_emotion_cache_browser_esm(); 7147 init_extends(); 7148 init_emotion_weak_memoize_esm(); 7149 init_emotion_react_isolated_hnrs_browser_esm(); 7150 import_hoist_non_react_statics2 = __toESM(require_hoist_non_react_statics_cjs()), jsx = function(type5, props) { 7151 var args = arguments; 7152 if (props == null || !hasOwn.call(props, "css")) 7153 return React3.createElement.apply(void 0, args); 7154 var argsLength = args.length, createElementArgArray = new Array(argsLength); 7155 createElementArgArray[0] = Emotion$1, createElementArgArray[1] = createEmotionProps(type5, props); 7156 for (var i = 2; i < argsLength; i++) 7157 createElementArgArray[i] = args[i]; 7158 return React3.createElement.apply(null, createElementArgArray); 7159 }; 7160 (function(_jsx) { 7161 var JSX; 7162 JSX || (JSX = _jsx.JSX || (_jsx.JSX = {})); 7163 })(jsx || (jsx = {})); 7164 Global = withEmotionCache(function(props, cache) { 7165 var styles4 = props.styles, serialized = serializeStyles([styles4], void 0, React3.useContext(ThemeContext)), sheetRef = React3.useRef(); 7166 return useInsertionEffectWithLayoutFallback(function() { 7167 var key = cache.key + "-global", sheet = new cache.sheet.constructor({ 7168 key, 7169 nonce: cache.sheet.nonce, 7170 container: cache.sheet.container, 7171 speedy: cache.sheet.isSpeedy 7172 }), rehydrating = !1, node2 = document.querySelector('style[data-emotion="' + key + " " + serialized.name + '"]'); 7173 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() { 7174 sheet.flush(); 7175 }; 7176 }, [cache]), useInsertionEffectWithLayoutFallback(function() { 7177 var sheetRefCurrent = sheetRef.current, sheet = sheetRefCurrent[0], rehydrating = sheetRefCurrent[1]; 7178 if (rehydrating) { 7179 sheetRefCurrent[1] = !1; 7180 return; 7181 } 7182 if (serialized.next !== void 0 && insertStyles(cache, serialized.next, !0), sheet.tags.length) { 7183 var element = sheet.tags[sheet.tags.length - 1].nextElementSibling; 7184 sheet.before = element, sheet.flush(); 7185 } 7186 cache.insert("", serialized, sheet, !1); 7187 }, [cache, serialized.name]), null; 7188 }); 7189 classnames = function classnames2(args) { 7190 for (var len = args.length, i = 0, cls = ""; i < len; i++) { 7191 var arg = args[i]; 7192 if (arg != null) { 7193 var toAdd = void 0; 7194 switch (typeof arg) { 7195 case "boolean": 7196 break; 7197 case "object": { 7198 if (Array.isArray(arg)) 7199 toAdd = classnames2(arg); 7200 else { 7201 toAdd = ""; 7202 for (var k in arg) 7203 arg[k] && k && (toAdd && (toAdd += " "), toAdd += k); 7204 } 7205 break; 7206 } 7207 default: 7208 toAdd = arg; 7209 } 7210 toAdd && (cls && (cls += " "), cls += toAdd); 7211 } 7212 } 7213 return cls; 7214 }; 7215 Insertion3 = function(_ref) { 7216 var cache = _ref.cache, serializedArr = _ref.serializedArr; 7217 return useInsertionEffectAlwaysWithSyncFallback(function() { 7218 for (var i = 0; i < serializedArr.length; i++) 7219 insertStyles(cache, serializedArr[i], !1); 7220 }), null; 7221 }, ClassNames = withEmotionCache(function(props, cache) { 7222 var hasRendered = !1, serializedArr = [], css3 = function() { 7223 if (hasRendered && isDevelopment3) 7224 throw new Error("css can only be used during render"); 7225 for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) 7226 args[_key] = arguments[_key]; 7227 var serialized = serializeStyles(args, cache.registered); 7228 return serializedArr.push(serialized), registerStyles(cache, serialized, !1), cache.key + "-" + serialized.name; 7229 }, cx = function() { 7230 if (hasRendered && isDevelopment3) 7231 throw new Error("cx can only be used during render"); 7232 for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) 7233 args[_key2] = arguments[_key2]; 7234 return merge(cache.registered, css3, classnames(args)); 7235 }, content = { 7236 css: css3, 7237 cx, 7238 theme: React3.useContext(ThemeContext) 7239 }, ele = props.children(content); 7240 return hasRendered = !0, React3.createElement(React3.Fragment, null, React3.createElement(Insertion3, { 7241 cache, 7242 serializedArr 7243 }), ele); 7244 }); 7245 } 7246}); 7247
vendor: 4,654 bytes, lines 7248-7260
7248// ../../node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.esm.js 7249var reactPropsRegex, isPropValid, init_emotion_is_prop_valid_esm = __esm({ 7250 "../../node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.esm.js"() { 7251 init_emotion_memoize_esm(); 7252 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( 7253 function(prop) { 7254 return reactPropsRegex.test(prop) || prop.charCodeAt(0) === 111 && prop.charCodeAt(1) === 110 && prop.charCodeAt(2) < 91; 7255 } 7256 /* Z+1 */ 7257 ); 7258 } 7259}); 7260
vendor: 5,430 bytes, lines 7261-7340
7261// ../../node_modules/@emotion/styled/base/dist/emotion-styled-base.browser.esm.js 7262var React4, isDevelopment4, testOmitPropsOnStringTag, testOmitPropsOnComponent, getDefaultShouldForwardProp, composeShouldForwardProps, Insertion5, createStyled, init_emotion_styled_base_browser_esm = __esm({ 7263 "../../node_modules/@emotion/styled/base/dist/emotion-styled-base.browser.esm.js"() { 7264 init_extends(); 7265 init_emotion_react_browser_esm(); 7266 init_emotion_serialize_esm(); 7267 init_emotion_use_insertion_effect_with_fallbacks_browser_esm(); 7268 init_emotion_utils_browser_esm(); 7269 React4 = __toESM(require_react()); 7270 init_emotion_is_prop_valid_esm(); 7271 isDevelopment4 = !1, testOmitPropsOnStringTag = isPropValid, testOmitPropsOnComponent = function(key) { 7272 return key !== "theme"; 7273 }, getDefaultShouldForwardProp = function(tag) { 7274 return typeof tag == "string" && // 96 is one less than the char code 7275 // for "a" so this is checking that 7276 // it's a lowercase character 7277 tag.charCodeAt(0) > 96 ? testOmitPropsOnStringTag : testOmitPropsOnComponent; 7278 }, composeShouldForwardProps = function(tag, options, isReal) { 7279 var shouldForwardProp; 7280 if (options) { 7281 var optionsShouldForwardProp = options.shouldForwardProp; 7282 shouldForwardProp = tag.__emotion_forwardProp && optionsShouldForwardProp ? function(propName) { 7283 return tag.__emotion_forwardProp(propName) && optionsShouldForwardProp(propName); 7284 } : optionsShouldForwardProp; 7285 } 7286 return typeof shouldForwardProp != "function" && isReal && (shouldForwardProp = tag.__emotion_forwardProp), shouldForwardProp; 7287 }, Insertion5 = function(_ref) { 7288 var cache = _ref.cache, serialized = _ref.serialized, isStringTag = _ref.isStringTag; 7289 return registerStyles(cache, serialized, isStringTag), useInsertionEffectAlwaysWithSyncFallback(function() { 7290 return insertStyles(cache, serialized, isStringTag); 7291 }), null; 7292 }, createStyled = function createStyled2(tag, options) { 7293 var isReal = tag.__emotion_real === tag, baseTag = isReal && tag.__emotion_base || tag, identifierName, targetClassName; 7294 options !== void 0 && (identifierName = options.label, targetClassName = options.target); 7295 var shouldForwardProp = composeShouldForwardProps(tag, options, isReal), defaultShouldForwardProp = shouldForwardProp || getDefaultShouldForwardProp(baseTag), shouldUseAs = !defaultShouldForwardProp("as"); 7296 return function() { 7297 var args = arguments, styles4 = isReal && tag.__emotion_styles !== void 0 ? tag.__emotion_styles.slice(0) : []; 7298 if (identifierName !== void 0 && styles4.push("label:" + identifierName + ";"), args[0] == null || args[0].raw === void 0) 7299 styles4.push.apply(styles4, args); 7300 else { 7301 var templateStringsArr = args[0]; 7302 styles4.push(templateStringsArr[0]); 7303 for (var len = args.length, i = 1; i < len; i++) 7304 styles4.push(args[i], templateStringsArr[i]); 7305 } 7306 var Styled = withEmotionCache(function(props, cache, ref) { 7307 var FinalTag = shouldUseAs && props.as || baseTag, className = "", classInterpolations = [], mergedProps = props; 7308 if (props.theme == null) { 7309 mergedProps = {}; 7310 for (var key in props) 7311 mergedProps[key] = props[key]; 7312 mergedProps.theme = React4.useContext(ThemeContext); 7313 } 7314 typeof props.className == "string" ? className = getRegisteredStyles(cache.registered, classInterpolations, props.className) : props.className != null && (className = props.className + " "); 7315 var serialized = serializeStyles(styles4.concat(classInterpolations), cache.registered, mergedProps); 7316 className += cache.key + "-" + serialized.name, targetClassName !== void 0 && (className += " " + targetClassName); 7317 var finalShouldForwardProp = shouldUseAs && shouldForwardProp === void 0 ? getDefaultShouldForwardProp(FinalTag) : defaultShouldForwardProp, newProps = {}; 7318 for (var _key in props) 7319 shouldUseAs && _key === "as" || finalShouldForwardProp(_key) && (newProps[_key] = props[_key]); 7320 return newProps.className = className, ref && (newProps.ref = ref), React4.createElement(React4.Fragment, null, React4.createElement(Insertion5, { 7321 cache, 7322 serialized, 7323 isStringTag: typeof FinalTag == "string" 7324 }), React4.createElement(FinalTag, newProps)); 7325 }); 7326 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", { 7327 value: function() { 7328 return targetClassName === void 0 && isDevelopment4 ? "NO_COMPONENT_SELECTOR" : "." + targetClassName; 7329 } 7330 }), Styled.withComponent = function(nextTag, nextOptions) { 7331 var newStyled = createStyled2(nextTag, _extends({}, options, nextOptions, { 7332 shouldForwardProp: composeShouldForwardProps(Styled, nextOptions, !0) 7333 })); 7334 return newStyled.apply(void 0, styles4); 7335 }, Styled; 7336 }; 7337 }; 7338 } 7339}); 7340
vendor: 2,675 bytes, lines 7341-7494
7341// ../../node_modules/@emotion/styled/dist/emotion-styled.browser.esm.js 7342var import_react4, tags, styled, init_emotion_styled_browser_esm = __esm({ 7343 "../../node_modules/@emotion/styled/dist/emotion-styled.browser.esm.js"() { 7344 init_emotion_styled_base_browser_esm(); 7345 init_extends(); 7346 init_emotion_react_browser_esm(); 7347 init_emotion_serialize_esm(); 7348 init_emotion_use_insertion_effect_with_fallbacks_browser_esm(); 7349 init_emotion_utils_browser_esm(); 7350 import_react4 = __toESM(require_react()); 7351 init_emotion_is_prop_valid_esm(); 7352 tags = [ 7353 "a", 7354 "abbr", 7355 "address", 7356 "area", 7357 "article", 7358 "aside", 7359 "audio", 7360 "b", 7361 "base", 7362 "bdi", 7363 "bdo", 7364 "big", 7365 "blockquote", 7366 "body", 7367 "br", 7368 "button", 7369 "canvas", 7370 "caption", 7371 "cite", 7372 "code", 7373 "col", 7374 "colgroup", 7375 "data", 7376 "datalist", 7377 "dd", 7378 "del", 7379 "details", 7380 "dfn", 7381 "dialog", 7382 "div", 7383 "dl", 7384 "dt", 7385 "em", 7386 "embed", 7387 "fieldset", 7388 "figcaption", 7389 "figure", 7390 "footer", 7391 "form", 7392 "h1", 7393 "h2", 7394 "h3", 7395 "h4", 7396 "h5", 7397 "h6", 7398 "head", 7399 "header", 7400 "hgroup", 7401 "hr", 7402 "html", 7403 "i", 7404 "iframe", 7405 "img", 7406 "input", 7407 "ins", 7408 "kbd", 7409 "keygen", 7410 "label", 7411 "legend", 7412 "li", 7413 "link", 7414 "main", 7415 "map", 7416 "mark", 7417 "marquee", 7418 "menu", 7419 "menuitem", 7420 "meta", 7421 "meter", 7422 "nav", 7423 "noscript", 7424 "object", 7425 "ol", 7426 "optgroup", 7427 "option", 7428 "output", 7429 "p", 7430 "param", 7431 "picture", 7432 "pre", 7433 "progress", 7434 "q", 7435 "rp", 7436 "rt", 7437 "ruby", 7438 "s", 7439 "samp", 7440 "script", 7441 "section", 7442 "select", 7443 "small", 7444 "source", 7445 "span", 7446 "strong", 7447 "style", 7448 "sub", 7449 "summary", 7450 "sup", 7451 "table", 7452 "tbody", 7453 "td", 7454 "textarea", 7455 "tfoot", 7456 "th", 7457 "thead", 7458 "time", 7459 "title", 7460 "tr", 7461 "track", 7462 "u", 7463 "ul", 7464 "var", 7465 "video", 7466 "wbr", 7467 // SVG 7468 "circle", 7469 "clipPath", 7470 "defs", 7471 "ellipse", 7472 "foreignObject", 7473 "g", 7474 "image", 7475 "line", 7476 "linearGradient", 7477 "mask", 7478 "path", 7479 "pattern", 7480 "polygon", 7481 "polyline", 7482 "radialGradient", 7483 "rect", 7484 "stop", 7485 "svg", 7486 "text", 7487 "tspan" 7488 ], styled = createStyled.bind(null); 7489 tags.forEach(function(tagName) { 7490 styled[tagName] = styled(tagName); 7491 }); 7492 } 7493}); 7494
vendor: 4,205 bytes, lines 7495-7652
7495// src/theming/base.ts 7496var color, background, typography, tokens, init_base = __esm({ 7497 "src/theming/base.ts"() { 7498 "use strict"; 7499 color = { 7500 // Official color palette 7501 primary: "#FF4785", 7502 // coral 7503 secondary: "#006DEB", 7504 // ocean 7505 tertiary: "#FAFBFC", 7506 ancillary: "#22a699", 7507 // Complimentary 7508 orange: "#FC521F", 7509 gold: "#FFAE00", 7510 green: "#66BF3C", 7511 seafoam: "#37D5D3", 7512 purple: "#6F2CAC", 7513 ultraviolet: "#2A0481", 7514 // Monochrome 7515 lightest: "#FFFFFF", 7516 lighter: "#F6F9FC", 7517 light: "#EEF2F6", 7518 mediumlight: "#ECF2F9", 7519 medium: "#D9E5F2", 7520 mediumdark: "#737F8C", 7521 dark: "#5C6570", 7522 darker: "#454C54", 7523 darkest: "#2E3338", 7524 // For borders 7525 border: "hsl(212 50% 30% / 0.15)", 7526 // Status 7527 positive: "#66BF3C", 7528 warning: "#E69D00", 7529 negative: "#FF4400", 7530 critical: "#FFFFFF", 7531 // Text 7532 defaultText: "#2E3338", 7533 inverseText: "#FFFFFF", 7534 positiveText: "#427C27", 7535 warningText: "#955B1E", 7536 negativeText: "#C23400" 7537 }, background = { 7538 app: "#F6F9FC", 7539 bar: color.lightest, 7540 content: color.lightest, 7541 preview: color.lightest, 7542 gridCellSize: 10, 7543 hoverable: "#DBECFF", 7544 // Notification, error, and warning backgrounds 7545 positive: "#F1FFEB", 7546 warning: "#FFF9EB", 7547 negative: "#FFF0EB", 7548 critical: "#D13800" 7549 }, typography = { 7550 fonts: { 7551 base: [ 7552 '"Nunito Sans"', 7553 "-apple-system", 7554 '".SFNSText-Regular"', 7555 '"San Francisco"', 7556 "BlinkMacSystemFont", 7557 '"Segoe UI"', 7558 '"Helvetica Neue"', 7559 "Helvetica", 7560 "Arial", 7561 "sans-serif" 7562 ].join(", "), 7563 mono: [ 7564 "ui-monospace", 7565 "Menlo", 7566 "Monaco", 7567 '"Roboto Mono"', 7568 '"Oxygen Mono"', 7569 '"Ubuntu Monospace"', 7570 '"Source Code Pro"', 7571 '"Droid Sans Mono"', 7572 '"Courier New"', 7573 "monospace" 7574 ].join(", ") 7575 }, 7576 weight: { 7577 regular: 400, 7578 bold: 700 7579 }, 7580 size: { 7581 s1: 12, 7582 s2: 14, 7583 s3: 16, 7584 m1: 20, 7585 m2: 24, 7586 m3: 28, 7587 l1: 32, 7588 l2: 40, 7589 l3: 48, 7590 code: 90 7591 } 7592 }, tokens = { 7593 light: { 7594 fgColor: { 7595 default: color.darkest, 7596 muted: color.dark, 7597 accent: color.secondary, 7598 inverse: color.lightest, 7599 // TODO: add 'disabled' 7600 positive: "#427C27", 7601 warning: "#7A4100", 7602 negative: "#C23400", 7603 critical: "#FFFFFF" 7604 }, 7605 bgColor: { 7606 default: color.lightest, 7607 muted: background.app, 7608 // TODO: add 'accent'? white or blue? 7609 positive: "#F1FFEB", 7610 warning: "#FFF7EB", 7611 negative: "#FFF0EB", 7612 critical: "#D13800" 7613 }, 7614 borderColor: { 7615 default: color.border, 7616 muted: "hsl(0 0% 0% / 0.1)", 7617 inverse: "hsl(0 0% 100% / 0.1)", 7618 positive: "#BFE7AC", 7619 warning: "#FFCE85", 7620 negative: "#FFC3AD", 7621 critical: "hsl(16 100% 100% / 0)" 7622 } 7623 }, 7624 dark: { 7625 fgColor: { 7626 default: "#C9CCCF", 7627 muted: "#95999D", 7628 accent: "#479DFF", 7629 inverse: "#1B1C1D", 7630 // TODO: add 'disabled' 7631 positive: "#86CE64", 7632 warning: "#FFAD33", 7633 negative: "#FF6933", 7634 critical: "#FF6933" 7635 }, 7636 bgColor: { 7637 default: "#222325", 7638 muted: "#1B1C1D", 7639 // TODO: add 'accent'? white or blue? 7640 positive: "hsl(101 100% 100% / 0)", 7641 warning: "hsl(101 100% 100% / 0)", 7642 negative: "hsl(101 100% 100% / 0)", 7643 critical: "hsl(101 100% 100% / 0)" 7644 }, 7645 borderColor: { 7646 default: "hsl(0 0% 100% / 0.1)", 7647 muted: "hsl(0 0% 100% / 0.5)", 7648 inverse: "hsl(0 0% 0% / 0.1)", 7649 positive: "hsl(101 52% 64% / 0.15)", 7650 warning: "hsl(36 100% 64% / 0.15)", 7651 negative: "hsl(16 100% 64% / 0.15)", 7652 critical: "#FF6933
vendor: 141 bytes, lines 7652-7665
7652" 7653 } 7654 } 7655 }; 7656 } 7657}); 7658 7659// src/theming/types.ts 7660var init_types = __esm({ 7661 "src/theming/types.ts"() { 7662 "use strict"; 7663 } 7664}); 7665
vendor: 6,789 bytes, lines 7666-7793
7666// ../../node_modules/memoizerific/memoizerific.js 7667var require_memoizerific = __commonJS({ 7668 "../../node_modules/memoizerific/memoizerific.js"(exports, module2) { 7669 (function(f4) { 7670 if (typeof exports == "object" && typeof module2 < "u") 7671 module2.exports = f4(); 7672 else if (typeof define == "function" && define.amd) 7673 define([], f4); 7674 else { 7675 var g2; 7676 typeof window < "u" ? g2 = window : typeof global < "u" ? g2 = global : typeof self < "u" ? g2 = self : g2 = this, g2.memoizerific = f4(); 7677 } 7678 })(function() { 7679 var define3, module3, exports2; 7680 return (function e(t, n, r2) { 7681 function s3(o2, u2) { 7682 if (!n[o2]) { 7683 if (!t[o2]) { 7684 var a3 = typeof __require == "function" && __require; 7685 if (!u2 && a3) return a3(o2, !0); 7686 if (i) return i(o2, !0); 7687 var f4 = new Error("Cannot find module '" + o2 + "'"); 7688 throw f4.code = "MODULE_NOT_FOUND", f4; 7689 } 7690 var l = n[o2] = { exports: {} }; 7691 t[o2][0].call(l.exports, function(e2) { 7692 var n2 = t[o2][1][e2]; 7693 return s3(n2 || e2); 7694 }, l, l.exports, e, t, n, r2); 7695 } 7696 return n[o2].exports; 7697 } 7698 for (var i = typeof __require == "function" && __require, o = 0; o < r2.length; o++) s3(r2[o]); 7699 return s3; 7700 })({ 1: [function(_dereq_, module4, exports3) { 7701 module4.exports = function(forceSimilar) { 7702 if (typeof Map != "function" || forceSimilar) { 7703 var Similar = _dereq_("./similar"); 7704 return new Similar(); 7705 } else 7706 return /* @__PURE__ */ new Map(); 7707 }; 7708 }, { "./similar": 2 }], 2: [function(_dereq_, module4, exports3) { 7709 function Similar() { 7710 return this.list = [], this.lastItem = void 0, this.size = 0, this; 7711 } 7712 Similar.prototype.get = function(key) { 7713 var index4; 7714 if (this.lastItem && this.isEqual(this.lastItem.key, key)) 7715 return this.lastItem.val; 7716 if (index4 = this.indexOf(key), index4 >= 0) 7717 return this.lastItem = this.list[index4], this.list[index4].val; 7718 }, Similar.prototype.set = function(key, val) { 7719 var index4; 7720 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)); 7721 }, Similar.prototype.delete = function(key) { 7722 var index4; 7723 if (this.lastItem && this.isEqual(this.lastItem.key, key) && (this.lastItem = void 0), index4 = this.indexOf(key), index4 >= 0) 7724 return this.size--, this.list.splice(index4, 1)[0]; 7725 }, Similar.prototype.has = function(key) { 7726 var index4; 7727 return this.lastItem && this.isEqual(this.lastItem.key, key) ? !0 : (index4 = this.indexOf(key), index4 >= 0 ? (this.lastItem = this.list[index4], !0) : !1); 7728 }, Similar.prototype.forEach = function(callback, thisArg) { 7729 var i; 7730 for (i = 0; i < this.size; i++) 7731 callback.call(thisArg || this, this.list[i].val, this.list[i].key, this); 7732 }, Similar.prototype.indexOf = function(key) { 7733 var i; 7734 for (i = 0; i < this.size; i++) 7735 if (this.isEqual(this.list[i].key, key)) 7736 return i; 7737 return -1; 7738 }, Similar.prototype.isEqual = function(val1, val2) { 7739 return val1 === val2 || val1 !== val1 && val2 !== val2; 7740 }, module4.exports = Similar; 7741 }, {}], 3: [function(_dereq_, module4, exports3) { 7742 var MapOrSimilar = _dereq_("map-or-similar"); 7743 module4.exports = function(limit) { 7744 var cache = new MapOrSimilar(!1), lru = []; 7745 return function(fn4) { 7746 var memoizerific = function() { 7747 var currentCache = cache, newMap, fnResult, argsLengthMinusOne = arguments.length - 1, lruPath = Array(argsLengthMinusOne + 1), isMemoized = !0, i; 7748 if ((memoizerific.numArgs || memoizerific.numArgs === 0) && memoizerific.numArgs !== argsLengthMinusOne + 1) 7749 throw new Error("Memoizerific functions should always be called with the same number of arguments"); 7750 for (i = 0; i < argsLengthMinusOne; i++) { 7751 if (lruPath[i] = { 7752 cacheItem: currentCache, 7753 arg: arguments[i] 7754 }, currentCache.has(arguments[i])) { 7755 currentCache = currentCache.get(arguments[i]); 7756 continue; 7757 } 7758 isMemoized = !1, newMap = new MapOrSimilar(!1), currentCache.set(arguments[i], newMap), currentCache = newMap; 7759 } 7760 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] = { 7761 cacheItem: currentCache, 7762 arg: arguments[argsLengthMinusOne] 7763 }, isMemoized ? moveToMostRecentLru(lru, lruPath) : lru.push(lruPath), lru.length > limit && removeCachedResult(lru.shift())), memoizerific.wasMemoized = isMemoized, memoizerific.numArgs = argsLengthMinusOne + 1, fnResult; 7764 }; 7765 return memoizerific.limit = limit, memoizerific.wasMemoized = !1, memoizerific.cache = cache, memoizerific.lru = lru, memoizerific; 7766 }; 7767 }; 7768 function moveToMostRecentLru(lru, lruPath) { 7769 var lruLen = lru.length, lruPathLen = lruPath.length, isMatch, i, ii; 7770 for (i = 0; i < lruLen; i++) { 7771 for (isMatch = !0, ii = 0; ii < lruPathLen; ii++) 7772 if (!isEqual4(lru[i][ii].arg, lruPath[ii].arg)) { 7773 isMatch = !1; 7774 break; 7775 } 7776 if (isMatch) 7777 break; 7778 } 7779 lru.push(lru.splice(i, 1)[0]); 7780 } 7781 function removeCachedResult(removedLru) { 7782 var removedLruLen = removedLru.length, currentLru = removedLru[removedLruLen - 1], tmp, i; 7783 for (currentLru.cacheItem.delete(currentLru.arg), i = removedLruLen - 2; i >= 0 && (currentLru = removedLru[i], tmp = currentLru.cacheItem.get(currentLru.arg), !tmp || !tmp.size); i--) 7784 currentLru.cacheItem.delete(currentLru.arg); 7785 } 7786 function isEqual4(val1, val2) { 7787 return val1 === val2 || val1 !== val1 && val2 !== val2; 7788 } 7789 }, { "map-or-similar": 1 }] }, {}, [3])(3); 7790 }); 7791 } 7792}); 7793
7794// src/theming/global.ts 7795var import_memoizerific, srOnlyStyles, createReset, createGlobal, init_global = __esm({ 7796 "src/theming/global.ts"() { 7797 "use strict"; 7798 import_memoizerific = __toESM(require_memoizerific(), 1), srOnlyStyles = { 7799 position: "absolute", 7800 width: 1, 7801 height: 1, 7802 padding: 0, 7803 margin: -1, 7804 overflow: "hidden", 7805 whiteSpace: "nowrap", 7806 clip: "rect(0, 0, 0, 0)", 7807 clipPath: "inset(50%)", 7808 border: 0
vendor: 5,706 bytes, lines 7808-8009
7808 7809 }, createReset = (0, import_memoizerific.default)(1)( 7810 ({ typography: typography2 }) => ({ 7811 body: { 7812 fontFamily: typography2.fonts.base, 7813 fontSize: typography2.size.s3, 7814 margin: 0, 7815 WebkitFontSmoothing: "antialiased", 7816 MozOsxFontSmoothing: "grayscale", 7817 WebkitTapHighlightColor: "rgba(0, 0, 0, 0)", 7818 WebkitOverflowScrolling: "touch" 7819 }, 7820 "*": { 7821 boxSizing: "border-box" 7822 }, 7823 "h1, h2, h3, h4, h5, h6": { 7824 fontWeight: typography2.weight.regular, 7825 margin: 0, 7826 padding: 0 7827 }, 7828 "button, input, textarea, select": { 7829 fontFamily: "inherit", 7830 fontSize: "inherit", 7831 boxSizing: "border-box" 7832 }, 7833 sub: { 7834 fontSize: "0.8em", 7835 bottom: "-0.2em" 7836 }, 7837 sup: { 7838 fontSize: "0.8em", 7839 top: "-0.2em" 7840 }, 7841 "b, strong": { 7842 fontWeight: typography2.weight.bold 7843 }, 7844 hr: { 7845 border: "none", 7846 borderTop: "1px solid silver", 7847 clear: "both", 7848 marginBottom: "1.25rem" 7849 }, 7850 code: { 7851 fontFamily: typography2.fonts.mono, 7852 WebkitFontSmoothing: "antialiased", 7853 MozOsxFontSmoothing: "grayscale", 7854 display: "inline-block", 7855 paddingLeft: 2, 7856 paddingRight: 2, 7857 verticalAlign: "baseline", 7858 color: "inherit" 7859 }, 7860 pre: { 7861 fontFamily: typography2.fonts.mono, 7862 WebkitFontSmoothing: "antialiased", 7863 MozOsxFontSmoothing: "grayscale", 7864 lineHeight: "18px", 7865 padding: "11px 1rem", 7866 whiteSpace: "pre-wrap", 7867 color: "inherit", 7868 borderRadius: 3, 7869 margin: "1rem 0" 7870 } 7871 }) 7872 ), createGlobal = (0, import_memoizerific.default)(1)(({ 7873 color: color2, 7874 background: background2, 7875 typography: typography2 7876 }) => { 7877 let resetStyles = createReset({ typography: typography2 }); 7878 return { 7879 ...resetStyles, 7880 body: { 7881 ...resetStyles.body, 7882 position: "fixed", 7883 width: "100vw", 7884 height: "100vh", 7885 overflow: "hidden", 7886 color: color2.defaultText, 7887 background: background2.app 7888 }, 7889 hr: { 7890 ...resetStyles.hr, 7891 borderTop: `1px solid ${color2.border}` 7892 }, 7893 ".sb-sr-only, .sb-hidden-until-focus:not(:focus)": srOnlyStyles, 7894 ".sb-hidden-until-focus": { 7895 opacity: 0, 7896 transition: "opacity 150ms ease-out" 7897 }, 7898 ".sb-hidden-until-focus:focus": { 7899 opacity: 1 7900 }, 7901 "[data-sb-landmark]": { 7902 position: "relative" 7903 }, 7904 "[data-sb-landmark]:focus-visible": { 7905 outline: "none" 7906 }, 7907 "[data-sb-landmark]:focus-visible::after": { 7908 outline: `2px solid ${color2.primary}`, 7909 outlineOffset: "-2px" 7910 }, 7911 "[data-sb-landmark]::after": { 7912 content: "''", 7913 position: "absolute", 7914 inset: 0, 7915 pointerEvents: "none" 7916 }, 7917 ".react-aria-Popover:focus-visible": { 7918 outline: "none" 7919 } 7920 }; 7921 }); 7922 } 7923}); 7924 7925// src/theming/themes/dark.ts 7926var theme, dark_default, init_dark = __esm({ 7927 "src/theming/themes/dark.ts"() { 7928 "use strict"; 7929 init_base(); 7930 theme = { 7931 base: "dark", 7932 // Storybook-specific color palette 7933 colorPrimary: "#FF4785", 7934 // coral 7935 colorSecondary: "#479DFF", 7936 // UI 7937 appBg: "#1B1C1D", 7938 appContentBg: "#222325", 7939 appHoverBg: "#233952", 7940 appPreviewBg: color.lightest, 7941 appBorderColor: "hsl(0 0% 100% / 0.1)", 7942 appBorderRadius: 4, 7943 // Fonts 7944 fontBase: typography.fonts.base, 7945 fontCode: typography.fonts.mono, 7946 // Text colors 7947 textColor: "#C9CCCF", 7948 textInverseColor: "#1B1C1D", 7949 textMutedColor: "#95999D", 7950 // Toolbar default and active colors 7951 barTextColor: "#95999D", 7952 barHoverColor: "#70B3FF", 7953 barSelectedColor: "#479DFF", 7954 barBg: "#222325", 7955 // Form colors 7956 buttonBg: "#1B1C1D", 7957 buttonBorder: "hsl(0 0% 100% / 0.1)", 7958 booleanBg: "#1B1C1D", 7959 booleanSelectedBg: "#292B2E", 7960 inputBg: "#1B1C1D", 7961 inputBorder: "hsl(0 0% 100% / 0.1)", 7962 inputTextColor: "#C9CCCF", 7963 inputBorderRadius: 4 7964 }, dark_default = theme; 7965 } 7966}); 7967 7968// src/theming/themes/light.ts 7969var theme2, light_default, init_light = __esm({ 7970 "src/theming/themes/light.ts"() { 7971 "use strict"; 7972 init_base(); 7973 theme2 = { 7974 base: "light", 7975 // Storybook-specific color palette 7976 colorPrimary: color.primary, 7977 colorSecondary: color.secondary, 7978 // UI 7979 appBg: background.app, 7980 appContentBg: color.lightest, 7981 appHoverBg: "#DBECFF", 7982 appPreviewBg: color.lightest, 7983 appBorderColor: color.border, 7984 appBorderRadius: 4, 7985 // Fonts 7986 fontBase: typography.fonts.base, 7987 fontCode: typography.fonts.mono, 7988 // Text colors 7989 textColor: color.darkest, 7990 textInverseColor: color.lightest, 7991 textMutedColor: color.dark, 7992 // Toolbar default and active colors 7993 barTextColor: color.dark, 7994 barHoverColor: "#005CC7", 7995 barSelectedColor: "#0063D6", 7996 barBg: color.lightest, 7997 // Form colors 7998 buttonBg: background.app, 7999 buttonBorder: color.medium, 8000 booleanBg: color.mediumlight, 8001 booleanSelectedBg: color.lightest, 8002 inputBg: color.lightest, 8003 inputBorder: color.border, 8004 inputTextColor: color.darkest, 8005 inputBorderRadius: 4 8006 }, light_default = theme2; 8007 } 8008}); 8009
vendor: 361 bytes, lines 8010-8019
8010// ../../node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js 8011function _assertThisInitialized(e) { 8012 if (e === void 0) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); 8013 return e; 8014} 8015var init_assertThisInitialized = __esm({ 8016 "../../node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js"() { 8017 } 8018}); 8019
vendor: 380 bytes, lines 8020-8030
8020// ../../node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js 8021function _setPrototypeOf(t, e) { 8022 return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(t2, e2) { 8023 return t2.__proto__ = e2, t2; 8024 }, _setPrototypeOf(t, e); 8025} 8026var init_setPrototypeOf = __esm({ 8027 "../../node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js"() { 8028 } 8029}); 8030
vendor: 336 bytes, lines 8031-8040
8031// ../../node_modules/@babel/runtime/helpers/esm/inheritsLoose.js 8032function _inheritsLoose(t, o) { 8033 t.prototype = Object.create(o.prototype), t.prototype.constructor = t, _setPrototypeOf(t, o); 8034} 8035var init_inheritsLoose = __esm({ 8036 "../../node_modules/@babel/runtime/helpers/esm/inheritsLoose.js"() { 8037 init_setPrototypeOf(); 8038 } 8039}); 8040
vendor: 390 bytes, lines 8041-8051
8041// ../../node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js 8042function _getPrototypeOf(t) { 8043 return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(t2) { 8044 return t2.__proto__ || Object.getPrototypeOf(t2); 8045 }, _getPrototypeOf(t); 8046} 8047var init_getPrototypeOf = __esm({ 8048 "../../node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js"() { 8049 } 8050}); 8051
vendor: 351 bytes, lines 8052-8064
8052// ../../node_modules/@babel/runtime/helpers/esm/isNativeFunction.js 8053function _isNativeFunction(t) { 8054 try { 8055 return Function.toString.call(t).indexOf("[native code]") !== -1; 8056 } catch { 8057 return typeof t == "function"; 8058 } 8059} 8060var init_isNativeFunction = __esm({ 8061 "../../node_modules/@babel/runtime/helpers/esm/isNativeFunction.js"() { 8062 } 8063}); 8064
vendor: 449 bytes, lines 8065-8080
8065// ../../node_modules/@babel/runtime/helpers/esm/isNativeReflectConstruct.js 8066function _isNativeReflectConstruct() { 8067 try { 8068 var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() { 8069 })); 8070 } catch { 8071 } 8072 return (_isNativeReflectConstruct = function() { 8073 return !!t; 8074 })(); 8075} 8076var init_isNativeReflectConstruct = __esm({ 8077 "../../node_modules/@babel/runtime/helpers/esm/isNativeReflectConstruct.js"() { 8078 } 8079}); 8080
vendor: 482 bytes, lines 8081-8095
8081// ../../node_modules/@babel/runtime/helpers/esm/construct.js 8082function _construct(t, e, r2) { 8083 if (_isNativeReflectConstruct()) return Reflect.construct.apply(null, arguments); 8084 var o = [null]; 8085 o.push.apply(o, e); 8086 var p3 = new (t.bind.apply(t, o))(); 8087 return r2 && _setPrototypeOf(p3, r2.prototype), p3; 8088} 8089var init_construct = __esm({ 8090 "../../node_modules/@babel/runtime/helpers/esm/construct.js"() { 8091 init_isNativeReflectConstruct(); 8092 init_setPrototypeOf(); 8093 } 8094}); 8095
vendor: 1,065 bytes, lines 8096-8127
8096// ../../node_modules/@babel/runtime/helpers/esm/wrapNativeSuper.js 8097function _wrapNativeSuper(t) { 8098 var r2 = typeof Map == "function" ? /* @__PURE__ */ new Map() : void 0; 8099 return _wrapNativeSuper = function(t2) { 8100 if (t2 === null || !_isNativeFunction(t2)) return t2; 8101 if (typeof t2 != "function") throw new TypeError("Super expression must either be null or a function"); 8102 if (r2 !== void 0) { 8103 if (r2.has(t2)) return r2.get(t2); 8104 r2.set(t2, Wrapper9); 8105 } 8106 function Wrapper9() { 8107 return _construct(t2, arguments, _getPrototypeOf(this).constructor); 8108 } 8109 return Wrapper9.prototype = Object.create(t2.prototype, { 8110 constructor: { 8111 value: Wrapper9, 8112 enumerable: !1, 8113 writable: !0, 8114 configurable: !0 8115 } 8116 }), _setPrototypeOf(Wrapper9, t2); 8117 }, _wrapNativeSuper(t); 8118} 8119var init_wrapNativeSuper = __esm({ 8120 "../../node_modules/@babel/runtime/helpers/esm/wrapNativeSuper.js"() { 8121 init_getPrototypeOf(); 8122 init_setPrototypeOf(); 8123 init_isNativeFunction(); 8124 init_construct(); 8125 } 8126}); 8127
vendor: 218 bytes, lines 8128-8133
8128// ../../node_modules/@babel/runtime/helpers/esm/taggedTemplateLiteralLoose.js 8129var init_taggedTemplateLiteralLoose = __esm({ 8130 "../../node_modules/@babel/runtime/helpers/esm/taggedTemplateLiteralLoose.js"() { 8131 } 8132}); 8133
vendor: 22,211 bytes, lines 8134-8647
8134// ../../node_modules/polished/dist/polished.esm.js 8135function endsWith(string, suffix) { 8136 return string.substr(-suffix.length) === suffix; 8137} 8138function stripUnit(value) { 8139 if (typeof value != "string") return value; 8140 var matchedValue = value.match(cssRegex$1); 8141 return matchedValue ? parseFloat(value) : value; 8142} 8143function colorToInt(color2) { 8144 return Math.round(color2 * 255); 8145} 8146function convertToInt(red, green, blue) { 8147 return colorToInt(red) + "," + colorToInt(green) + "," + colorToInt(blue); 8148} 8149function hslToRgb(hue, saturation, lightness, convert6) { 8150 if (convert6 === void 0 && (convert6 = convertToInt), saturation === 0) 8151 return convert6(lightness, lightness, lightness); 8152 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; 8153 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); 8154 var lightnessModification = lightness - chroma / 2, finalRed = red + lightnessModification, finalGreen = green + lightnessModification, finalBlue = blue + lightnessModification; 8155 return convert6(finalRed, finalGreen, finalBlue); 8156} 8157function nameToHex(color2) { 8158 if (typeof color2 != "string") return color2; 8159 var normalizedColorName = color2.toLowerCase(); 8160 return namedColorMap[normalizedColorName] ? "#" + namedColorMap[normalizedColorName] : color2; 8161} 8162function parseToRgb(color2) { 8163 if (typeof color2 != "string") 8164 throw new PolishedError(3); 8165 var normalizedColor = nameToHex(color2); 8166 if (normalizedColor.match(hexRegex)) 8167 return { 8168 red: parseInt("" + normalizedColor[1] + normalizedColor[2], 16), 8169 green: parseInt("" + normalizedColor[3] + normalizedColor[4], 16), 8170 blue: parseInt("" + normalizedColor[5] + normalizedColor[6], 16) 8171 }; 8172 if (normalizedColor.match(hexRgbaRegex)) { 8173 var alpha = parseFloat((parseInt("" + normalizedColor[7] + normalizedColor[8], 16) / 255).toFixed(2)); 8174 return { 8175 red: parseInt("" + normalizedColor[1] + normalizedColor[2], 16), 8176 green: parseInt("" + normalizedColor[3] + normalizedColor[4], 16), 8177 blue: parseInt("" + normalizedColor[5] + normalizedColor[6], 16), 8178 alpha 8179 }; 8180 } 8181 if (normalizedColor.match(reducedHexRegex)) 8182 return { 8183 red: parseInt("" + normalizedColor[1] + normalizedColor[1], 16), 8184 green: parseInt("" + normalizedColor[2] + normalizedColor[2], 16), 8185 blue: parseInt("" + normalizedColor[3] + normalizedColor[3], 16) 8186 }; 8187 if (normalizedColor.match(reducedRgbaHexRegex)) { 8188 var _alpha = parseFloat((parseInt("" + normalizedColor[4] + normalizedColor[4], 16) / 255).toFixed(2)); 8189 return { 8190 red: parseInt("" + normalizedColor[1] + normalizedColor[1], 16), 8191 green: parseInt("" + normalizedColor[2] + normalizedColor[2], 16), 8192 blue: parseInt("" + normalizedColor[3] + normalizedColor[3], 16), 8193 alpha: _alpha 8194 }; 8195 } 8196 var rgbMatched = rgbRegex.exec(normalizedColor); 8197 if (rgbMatched) 8198 return { 8199 red: parseInt("" + rgbMatched[1], 10), 8200 green: parseInt("" + rgbMatched[2], 10), 8201 blue: parseInt("" + rgbMatched[3], 10) 8202 }; 8203 var rgbaMatched = rgbaRegex.exec(normalizedColor.substring(0, 50)); 8204 if (rgbaMatched) 8205 return { 8206 red: parseInt("" + rgbaMatched[1], 10), 8207 green: parseInt("" + rgbaMatched[2], 10), 8208 blue: parseInt("" + rgbaMatched[3], 10), 8209 alpha: parseFloat("" + rgbaMatched[4]) > 1 ? parseFloat("" + rgbaMatched[4]) / 100 : parseFloat("" + rgbaMatched[4]) 8210 }; 8211 var hslMatched = hslRegex.exec(normalizedColor); 8212 if (hslMatched) { 8213 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); 8214 if (!hslRgbMatched) 8215 throw new PolishedError(4, normalizedColor, rgbColorString); 8216 return { 8217 red: parseInt("" + hslRgbMatched[1], 10), 8218 green: parseInt("" + hslRgbMatched[2], 10), 8219 blue: parseInt("" + hslRgbMatched[3], 10) 8220 }; 8221 } 8222 var hslaMatched = hslaRegex.exec(normalizedColor.substring(0, 50)); 8223 if (hslaMatched) { 8224 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); 8225 if (!_hslRgbMatched) 8226 throw new PolishedError(4, normalizedColor, _rgbColorString); 8227 return { 8228 red: parseInt("" + _hslRgbMatched[1], 10), 8229 green: parseInt("" + _hslRgbMatched[2], 10), 8230 blue: parseInt("" + _hslRgbMatched[3], 10), 8231 alpha: parseFloat("" + hslaMatched[4]) > 1 ? parseFloat("" + hslaMatched[4]) / 100 : parseFloat("" + hslaMatched[4]) 8232 }; 8233 } 8234 throw new PolishedError(5); 8235} 8236function rgbToHsl(color2) { 8237 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; 8238 if (max2 === min2) 8239 return color2.alpha !== void 0 ? { 8240 hue: 0, 8241 saturation: 0, 8242 lightness, 8243 alpha: color2.alpha 8244 } : { 8245 hue: 0, 8246 saturation: 0, 8247 lightness 8248 }; 8249 var hue, delta = max2 - min2, saturation = lightness > 0.5 ? delta / (2 - max2 - min2) : delta / (max2 + min2); 8250 switch (max2) { 8251 case red: 8252 hue = (green - blue) / delta + (green < blue ? 6 : 0); 8253 break; 8254 case green: 8255 hue = (blue - red) / delta + 2; 8256 break; 8257 default: 8258 hue = (red - green) / delta + 4; 8259 break; 8260 } 8261 return hue *= 60, color2.alpha !== void 0 ? { 8262 hue, 8263 saturation, 8264 lightness, 8265 alpha: color2.alpha 8266 } : { 8267 hue, 8268 saturation, 8269 lightness 8270 }; 8271} 8272function parseToHsl(color2) { 8273 return rgbToHsl(parseToRgb(color2)); 8274} 8275function numberToHex(value) { 8276 var hex3 = value.toString(16); 8277 return hex3.length === 1 ? "0" + hex3 : hex3; 8278} 8279function colorToHex(color2) { 8280 return numberToHex(Math.round(color2 * 255)); 8281} 8282function convertToHex(red, green, blue) { 8283 return reduceHexValue$1("#" + colorToHex(red) + colorToHex(green) + colorToHex(blue)); 8284} 8285function hslToHex(hue, saturation, lightness) { 8286 return hslToRgb(hue, saturation, lightness, convertToHex); 8287} 8288function hsl(value, saturation, lightness) { 8289 if (typeof value == "number" && typeof saturation == "number" && typeof lightness == "number") 8290 return hslToHex(value, saturation, lightness); 8291 if (typeof value == "object" && saturation === void 0 && lightness === void 0) 8292 return hslToHex(value.hue, value.saturation, value.lightness); 8293 throw new PolishedError(1); 8294} 8295function hsla(value, saturation, lightness, alpha) { 8296 if (typeof value == "number" && typeof saturation == "number" && typeof lightness == "number" && typeof alpha == "number") 8297 return alpha >= 1 ? hslToHex(value, saturation, lightness) : "rgba(" + hslToRgb(value, saturation, lightness) + "," + alpha + ")"; 8298 if (typeof value == "object" && saturation === void 0 && lightness === void 0 && alpha === void 0) 8299 return value.alpha >= 1 ? hslToHex(value.hue, value.saturation, value.lightness) : "rgba(" + hslToRgb(value.hue, value.saturation, value.lightness) + "," + value.alpha + ")"; 8300 throw new PolishedError(2); 8301} 8302function rgb(value, green, blue) { 8303 if (typeof value == "number" && typeof green == "number" && typeof blue == "number") 8304 return reduceHexValue$1("#" + numberToHex(value) + numberToHex(green) + numberToHex(blue)); 8305 if (typeof value == "object" && green === void 0 && blue === void 0) 8306 return reduceHexValue$1("#" + numberToHex(value.red) + numberToHex(value.green) + numberToHex(value.blue)); 8307 throw new PolishedError(6); 8308} 8309function rgba(firstValue, secondValue, thirdValue, fourthValue) { 8310 if (typeof firstValue == "string" && typeof secondValue == "number") { 8311 var rgbValue = parseToRgb(firstValue); 8312 return "rgba(" + rgbValue.red + "," + rgbValue.green + "," + rgbValue.blue + "," + secondValue + ")"; 8313 } else { 8314 if (typeof firstValue == "number" && typeof secondValue == "number" && typeof thirdValue == "number" && typeof fourthValue == "number") 8315 return fourthValue >= 1 ? rgb(firstValue, secondValue, thirdValue) : "rgba(" + firstValue + "," + secondValue + "," + thirdValue + "," + fourthValue + ")"; 8316 if (typeof firstValue == "object" && secondValue === void 0 && thirdValue === void 0 && fourthValue === void 0) 8317 return firstValue.alpha >= 1 ? rgb(firstValue.red, firstValue.green, firstValue.blue) : "rgba(" + firstValue.red + "," + firstValue.green + "," + firstValue.blue + "," + firstValue.alpha + ")"; 8318 } 8319 throw new PolishedError(7); 8320} 8321function toColorString(color2) { 8322 if (typeof color2 != "object") throw new PolishedError(8); 8323 if (isRgba(color2)) return rgba(color2); 8324 if (isRgb(color2)) return rgb(color2); 8325 if (isHsla(color2)) return hsla(color2); 8326 if (isHsl(color2)) return hsl(color2); 8327 throw new PolishedError(8); 8328} 8329function curried(f4, length2, acc) { 8330 return function() { 8331 var combined = acc.concat(Array.prototype.slice.call(arguments)); 8332 return combined.length >= length2 ? f4.apply(this, combined) : curried(f4, length2, combined); 8333 }; 8334} 8335function curry(f4) { 8336 return curried(f4, f4.length, []); 8337} 8338function adjustHue(degree, color2) { 8339 if (color2 === "transparent") return color2; 8340 var hslColor = parseToHsl(color2); 8341 return toColorString(_extends({}, hslColor, { 8342 hue: hslColor.hue + parseFloat(degree) 8343 })); 8344} 8345function guard(lowerBoundary, upperBoundary, value) { 8346 return Math.max(lowerBoundary, Math.min(upperBoundary, value)); 8347} 8348function darken(amount, color2) { 8349 if (color2 === "transparent") return color2; 8350 var hslColor = parseToHsl(color2); 8351 return toColorString(_extends({}, hslColor, { 8352 lightness: guard(0, 1, hslColor.lightness - parseFloat(amount)) 8353 })); 8354} 8355function desaturate(amount, color2) { 8356 if (color2 === "transparent") return color2; 8357 var hslColor = parseToHsl(color2); 8358 return toColorString(_extends({}, hslColor, { 8359 saturation: guard(0, 1, hslColor.saturation - parseFloat(amount)) 8360 })); 8361} 8362function lighten(amount, color2) { 8363 if (color2 === "transparent") return color2; 8364 var hslColor = parseToHsl(color2); 8365 return toColorString(_extends({}, hslColor, { 8366 lightness: guard(0, 1, hslColor.lightness + parseFloat(amount)) 8367 })); 8368} 8369function mix(weight, color2, otherColor) { 8370 if (color2 === "transparent") return otherColor; 8371 if (otherColor === "transparent") return color2; 8372 if (weight === 0) return otherColor; 8373 var parsedColor1 = parseToRgb(color2), color1 = _extends({}, parsedColor1, { 8374 alpha: typeof parsedColor1.alpha == "number" ? parsedColor1.alpha : 1 8375 }), parsedColor2 = parseToRgb(otherColor), color22 = _extends({}, parsedColor2, { 8376 alpha: typeof parsedColor2.alpha == "number" ? parsedColor2.alpha : 1 8377 }), 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 = { 8378 red: Math.floor(color1.red * weight1 + color22.red * weight2), 8379 green: Math.floor(color1.green * weight1 + color22.green * weight2), 8380 blue: Math.floor(color1.blue * weight1 + color22.blue * weight2), 8381 alpha: color1.alpha * parseFloat(weight) + color22.alpha * (1 - parseFloat(weight)) 8382 }; 8383 return rgba(mixedColor); 8384} 8385function opacify(amount, color2) { 8386 if (color2 === "transparent") return color2; 8387 var parsedColor = parseToRgb(color2), alpha = typeof parsedColor.alpha == "number" ? parsedColor.alpha : 1, colorWithAlpha = _extends({}, parsedColor, { 8388 alpha: guard(0, 1, (alpha * 100 + parseFloat(amount) * 100) / 100) 8389 }); 8390 return rgba(colorWithAlpha); 8391} 8392function saturate(amount, color2) { 8393 if (color2 === "transparent") return color2; 8394 var hslColor = parseToHsl(color2); 8395 return toColorString(_extends({}, hslColor, { 8396 saturation: guard(0, 1, hslColor.saturation + parseFloat(amount)) 8397 })); 8398} 8399function setHue(hue, color2) { 8400 return color2 === "transparent" ? color2 : toColorString(_extends({}, parseToHsl(color2), { 8401 hue: parseFloat(hue) 8402 })); 8403} 8404function setLightness(lightness, color2) { 8405 return color2 === "transparent" ? color2 : toColorString(_extends({}, parseToHsl(color2), { 8406 lightness: parseFloat(lightness) 8407 })); 8408} 8409function setSaturation(saturation, color2) { 8410 return color2 === "transparent" ? color2 : toColorString(_extends({}, parseToHsl(color2), { 8411 saturation: parseFloat(saturation) 8412 })); 8413} 8414function shade(percentage, color2) { 8415 return color2 === "transparent" ? color2 : mix$1(parseFloat(percentage), "rgb(0, 0, 0)", color2); 8416} 8417function tint(percentage, color2) { 8418 return color2 === "transparent" ? color2 : mix$1(parseFloat(percentage), "rgb(255, 255, 255)", color2); 8419} 8420function transparentize(amount, color2) { 8421 if (color2 === "transparent") return color2; 8422 var parsedColor = parseToRgb(color2), alpha = typeof parsedColor.alpha == "number" ? parsedColor.alpha : 1, colorWithAlpha = _extends({}, parsedColor, { 8423 alpha: guard(0, 1, +(alpha * 100 - parseFloat(amount) * 100).toFixed(2) / 100) 8424 }); 8425 return rgba(colorWithAlpha); 8426} 8427var 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({ 8428 "../../node_modules/polished/dist/polished.esm.js"() { 8429 init_extends(); 8430 init_assertThisInitialized(); 8431 init_inheritsLoose(); 8432 init_wrapNativeSuper(); 8433 init_taggedTemplateLiteralLoose(); 8434 PolishedError = (function(_Error) { 8435 _inheritsLoose(PolishedError2, _Error); 8436 function PolishedError2(code) { 8437 var _this; 8438 if (1) 8439 _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; 8440 else 8441 for (var _len2, args, _key2; _key2 < _len2; _key2++) 8442 ; 8443 return _assertThisInitialized(_this); 8444 } 8445 return PolishedError2; 8446 })(_wrapNativeSuper(Error)); 8447 cssRegex$1 = /^([+-]?(?:\d+|\d*\.\d+))([a-z]*|%)$/; 8448 pxtoFactory = function(to) { 8449 return function(pxval, base) { 8450 base === void 0 && (base = "16px"); 8451 var newPxval = pxval, newBase = base; 8452 if (typeof pxval == "string") { 8453 if (!endsWith(pxval, "px")) 8454 throw new PolishedError(69, to, pxval); 8455 newPxval = stripUnit(pxval); 8456 } 8457 if (typeof base == "string") { 8458 if (!endsWith(base, "px")) 8459 throw new PolishedError(70, to, base); 8460 newBase = stripUnit(base); 8461 } 8462 if (typeof newPxval == "string") 8463 throw new PolishedError(71, pxval, to); 8464 if (typeof newBase == "string") 8465 throw new PolishedError(72, base, to); 8466 return "" + newPxval / newBase + to; 8467 }; 8468 }, pixelsto = pxtoFactory, em = pixelsto("em"), rem = pixelsto("rem"); 8469 namedColorMap = { 8470 aliceblue: "f0f8ff", 8471 antiquewhite: "faebd7", 8472 aqua: "00ffff", 8473 aquamarine: "7fffd4", 8474 azure: "f0ffff", 8475 beige: "f5f5dc", 8476 bisque: "ffe4c4", 8477 black: "000", 8478 blanchedalmond: "ffebcd", 8479 blue: "0000ff", 8480 blueviolet: "8a2be2", 8481 brown: "a52a2a", 8482 burlywood: "deb887", 8483 cadetblue: "5f9ea0", 8484 chartreuse: "7fff00", 8485 chocolate: "d2691e", 8486 coral: "ff7f50", 8487 cornflowerblue: "6495ed", 8488 cornsilk: "fff8dc", 8489 crimson: "dc143c", 8490 cyan: "00ffff", 8491 darkblue: "00008b", 8492 darkcyan: "008b8b", 8493 darkgoldenrod: "b8860b", 8494 darkgray: "a9a9a9", 8495 darkgreen: "006400", 8496 darkgrey: "a9a9a9", 8497 darkkhaki: "bdb76b", 8498 darkmagenta: "8b008b", 8499 darkolivegreen: "556b2f", 8500 darkorange: "ff8c00", 8501 darkorchid: "9932cc", 8502 darkred: "8b0000", 8503 darksalmon: "e9967a", 8504 darkseagreen: "8fbc8f", 8505 darkslateblue: "483d8b", 8506 darkslategray: "2f4f4f", 8507 darkslategrey: "2f4f4f", 8508 darkturquoise: "00ced1", 8509 darkviolet: "9400d3", 8510 deeppink: "ff1493", 8511 deepskyblue: "00bfff", 8512 dimgray: "696969", 8513 dimgrey: "696969", 8514 dodgerblue: "1e90ff", 8515 firebrick: "b22222", 8516 floralwhite: "fffaf0", 8517 forestgreen: "228b22", 8518 fuchsia: "ff00ff", 8519 gainsboro: "dcdcdc", 8520 ghostwhite: "f8f8ff", 8521 gold: "ffd700", 8522 goldenrod: "daa520", 8523 gray: "808080", 8524 green: "008000", 8525 greenyellow: "adff2f", 8526 grey: "808080", 8527 honeydew: "f0fff0", 8528 hotpink: "ff69b4", 8529 indianred: "cd5c5c", 8530 indigo: "4b0082", 8531 ivory: "fffff0", 8532 khaki: "f0e68c", 8533 lavender: "e6e6fa", 8534 lavenderblush: "fff0f5", 8535 lawngreen: "7cfc00", 8536 lemonchiffon: "fffacd", 8537 lightblue: "add8e6", 8538 lightcoral: "f08080", 8539 lightcyan: "e0ffff", 8540 lightgoldenrodyellow: "fafad2", 8541 lightgray: "d3d3d3", 8542 lightgreen: "90ee90", 8543 lightgrey: "d3d3d3", 8544 lightpink: "ffb6c1", 8545 lightsalmon: "ffa07a", 8546 lightseagreen: "20b2aa", 8547 lightskyblue: "87cefa", 8548 lightslategray: "789", 8549 lightslategrey: "789", 8550 lightsteelblue: "b0c4de", 8551 lightyellow: "ffffe0", 8552 lime: "0f0", 8553 limegreen: "32cd32", 8554 linen: "faf0e6", 8555 magenta: "f0f", 8556 maroon: "800000", 8557 mediumaquamarine: "66cdaa", 8558 mediumblue: "0000cd", 8559 mediumorchid: "ba55d3", 8560 mediumpurple: "9370db", 8561 mediumseagreen: "3cb371", 8562 mediumslateblue: "7b68ee", 8563 mediumspringgreen: "00fa9a", 8564 mediumturquoise: "48d1cc", 8565 mediumvioletred: "c71585", 8566 midnightblue: "191970", 8567 mintcream: "f5fffa", 8568 mistyrose: "ffe4e1", 8569 moccasin: "ffe4b5", 8570 navajowhite: "ffdead", 8571 navy: "000080", 8572 oldlace: "fdf5e6", 8573 olive: "808000", 8574 olivedrab: "6b8e23", 8575 orange: "ffa500", 8576 orangered: "ff4500", 8577 orchid: "da70d6", 8578 palegoldenrod: "eee8aa", 8579 palegreen: "98fb98", 8580 paleturquoise: "afeeee", 8581 palevioletred: "db7093", 8582 papayawhip: "ffefd5", 8583 peachpuff: "ffdab9", 8584 peru: "cd853f", 8585 pink: "ffc0cb", 8586 plum: "dda0dd", 8587 powderblue: "b0e0e6", 8588 purple: "800080", 8589 rebeccapurple: "639", 8590 red: "f00", 8591 rosybrown: "bc8f8f", 8592 royalblue: "4169e1", 8593 saddlebrown: "8b4513", 8594 salmon: "fa8072", 8595 sandybrown: "f4a460", 8596 seagreen: "2e8b57", 8597 seashell: "fff5ee", 8598 sienna: "a0522d", 8599 silver: "c0c0c0", 8600 skyblue: "87ceeb", 8601 slateblue: "6a5acd", 8602 slategray: "708090", 8603 slategrey: "708090", 8604 snow: "fffafa", 8605 springgreen: "00ff7f", 8606 steelblue: "4682b4", 8607 tan: "d2b48c", 8608 teal: "008080", 8609 thistle: "d8bfd8", 8610 tomato: "ff6347", 8611 turquoise: "40e0d0", 8612 violet: "ee82ee", 8613 wheat: "f5deb3", 8614 white: "fff", 8615 whitesmoke: "f5f5f5", 8616 yellow: "ff0", 8617 yellowgreen: "9acd32" 8618 }; 8619 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; 8620 reduceHexValue = function(value) { 8621 return value.length === 7 && value[1] === value[2] && value[3] === value[4] && value[5] === value[6] ? "#" + value[1] + value[3] + value[5] : value; 8622 }, reduceHexValue$1 = reduceHexValue; 8623 isRgb = function(color2) { 8624 return typeof color2.red == "number" && typeof color2.green == "number" && typeof color2.blue == "number" && (typeof color2.alpha != "number" || typeof color2.alpha > "u"); 8625 }, isRgba = function(color2) { 8626 return typeof color2.red == "number" && typeof color2.green == "number" && typeof color2.blue == "number" && typeof color2.alpha == "number"; 8627 }, isHsl = function(color2) { 8628 return typeof color2.hue == "number" && typeof color2.saturation == "number" && typeof color2.lightness == "number" && (typeof color2.alpha != "number" || typeof color2.alpha > "u"); 8629 }, isHsla = function(color2) { 8630 return typeof color2.hue == "number" && typeof color2.saturation == "number" && typeof color2.lightness == "number" && typeof color2.alpha == "number"; 8631 }; 8632 curriedAdjustHue = curry(adjustHue); 8633 curriedDarken = curry(darken), curriedDarken$1 = curriedDarken; 8634 curriedDesaturate = curry(desaturate); 8635 curriedLighten = curry(lighten), curriedLighten$1 = curriedLighten; 8636 curriedMix = curry(mix), mix$1 = curriedMix; 8637 curriedOpacify = curry(opacify), curriedOpacify$1 = curriedOpacify; 8638 curriedSaturate = curry(saturate); 8639 curriedSetHue = curry(setHue); 8640 curriedSetLightness = curry(setLightness); 8641 curriedSetSaturation = curry(setSaturation); 8642 curriedShade = curry(shade); 8643 curriedTint = curry(tint); 8644 curriedTransparentize = curry(transparentize), curriedTransparentize$1 = curriedTransparentize; 8645 } 8646}); 8647
vendor: 7,608 bytes, lines 8648-8843
8648// src/theming/utils.ts 8649var globalWindow, mkColor, isColorString, isValidColorForPolished, applyPolished, colorFactory, lightenColor, darkenColor, getPreferredColorScheme, init_utils = __esm({ 8650 "src/theming/utils.ts"() { 8651 "use strict"; 8652 init_client_logger(); 8653 init_dist(); 8654 init_polished_esm(); 8655 ({ window: globalWindow } = scope), mkColor = (color2) => ({ color: color2 }), isColorString = (color2) => typeof color2 != "string" ? (logger.warn( 8656 `Color passed to theme object should be a string. Instead ${color2}(${typeof color2}) was passed.` 8657 ), !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) => { 8658 if (!isColorString(color2) || !isValidColorForPolished(color2)) 8659 return color2; 8660 try { 8661 return applyPolished(type5, color2); 8662 } catch { 8663 return color2; 8664 } 8665 }, lightenColor = colorFactory("lighten"), darkenColor = colorFactory("darken"), getPreferredColorScheme = () => !globalWindow || !globalWindow.matchMedia ? "light" : globalWindow.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light"; 8666 } 8667}); 8668 8669// src/theming/create.ts 8670var create_exports = {}; 8671__export(create_exports, { 8672 create: () => create, 8673 themes: () => themes 8674}); 8675var themesBase, preferredColorScheme, themes, create, init_create = __esm({ 8676 "src/theming/create.ts"() { 8677 "use strict"; 8678 init_dark(); 8679 init_light(); 8680 init_utils(); 8681 themesBase = { 8682 light: light_default, 8683 dark: dark_default 8684 }, preferredColorScheme = getPreferredColorScheme(), themes = { 8685 ...themesBase, 8686 normal: themesBase[preferredColorScheme] 8687 }, create = (vars = { 8688 base: preferredColorScheme 8689 }, rest) => { 8690 let inherit = { 8691 // We always inherit the preferred color scheme. 8692 ...themes[preferredColorScheme], 8693 // And then the declared theme base if it exists. 8694 ...themes[vars.base] || {}, 8695 // And then the actual theme content. 8696 ...vars, 8697 // If no theme base was declared, we declare the preferred color scheme as the base. 8698 base: themes[vars.base] ? vars.base : preferredColorScheme 8699 }; 8700 return { 8701 ...rest, 8702 ...inherit, 8703 barSelectedColor: vars.barSelectedColor || inherit.colorSecondary 8704 }; 8705 }; 8706 } 8707}); 8708 8709// src/theming/animation.ts 8710var easing, rotate360, glow, float, jiggle, inlineGlow, hoverable, animation, init_animation = __esm({ 8711 "src/theming/animation.ts"() { 8712 "use strict"; 8713 init_emotion_react_browser_esm(); 8714 easing = { 8715 rubber: "cubic-bezier(0.175, 0.885, 0.335, 1.05)" 8716 }, rotate360 = keyframes` 8717 from { 8718 transform: rotate(0deg); 8719 } 8720 to { 8721 transform: rotate(360deg); 8722 } 8723`, glow = keyframes` 8724 0%, 100% { opacity: 1; } 8725 50% { opacity: .4; } 8726`, float = keyframes` 8727 0% { transform: translateY(1px); } 8728 25% { transform: translateY(0px); } 8729 50% { transform: translateY(-3px); } 8730 100% { transform: translateY(1px); } 8731`, jiggle = keyframes` 8732 0%, 100% { transform:translate3d(0,0,0); } 8733 12.5%, 62.5% { transform:translate3d(-4px,0,0); } 8734 37.5%, 87.5% { transform: translate3d(4px,0,0); } 8735`, inlineGlow = css` 8736 animation: ${glow} 1.5s ease-in-out infinite; 8737 color: transparent; 8738 cursor: progress; 8739`, hoverable = css` 8740 transition: all 150ms ease-out; 8741 transform: translate3d(0, 0, 0); 8742 8743 &:hover { 8744 transform: translate3d(0, -2px, 0); 8745 } 8746 8747 &:active { 8748 transform: translate3d(0, 0, 0); 8749 } 8750`, animation = { 8751 rotate360, 8752 glow, 8753 float, 8754 jiggle, 8755 inlineGlow, 8756 hoverable 8757 }; 8758 } 8759}); 8760 8761// src/theming/modules/syntax.ts 8762var chromeDark, chromeLight, convertColors, create2, init_syntax = __esm({ 8763 "src/theming/modules/syntax.ts"() { 8764 "use strict"; 8765 init_utils(); 8766 chromeDark = { 8767 BASE_FONT_FAMILY: "Menlo, monospace", 8768 BASE_FONT_SIZE: "11px", 8769 BASE_LINE_HEIGHT: 1.2, 8770 BASE_BACKGROUND_COLOR: "rgb(36, 36, 36)", 8771 BASE_COLOR: "rgb(213, 213, 213)", 8772 OBJECT_PREVIEW_ARRAY_MAX_PROPERTIES: 10, 8773 OBJECT_PREVIEW_OBJECT_MAX_PROPERTIES: 5, 8774 OBJECT_NAME_COLOR: "rgb(227, 110, 236)", 8775 OBJECT_VALUE_NULL_COLOR: "rgb(127, 127, 127)", 8776 OBJECT_VALUE_UNDEFINED_COLOR: "rgb(127, 127, 127)", 8777 OBJECT_VALUE_REGEXP_COLOR: "rgb(233, 63, 59)", 8778 OBJECT_VALUE_STRING_COLOR: "rgb(233, 63, 59)", 8779 OBJECT_VALUE_SYMBOL_COLOR: "rgb(233, 63, 59)", 8780 OBJECT_VALUE_NUMBER_COLOR: "hsl(252, 100%, 75%)", 8781 OBJECT_VALUE_BOOLEAN_COLOR: "hsl(252, 100%, 75%)", 8782 OBJECT_VALUE_FUNCTION_PREFIX_COLOR: "rgb(85, 106, 242)", 8783 HTML_TAG_COLOR: "rgb(93, 176, 215)", 8784 HTML_TAGNAME_COLOR: "rgb(93, 176, 215)", 8785 HTML_TAGNAME_TEXT_TRANSFORM: "lowercase", 8786 HTML_ATTRIBUTE_NAME_COLOR: "rgb(155, 187, 220)", 8787 HTML_ATTRIBUTE_VALUE_COLOR: "rgb(242, 151, 102)", 8788 HTML_COMMENT_COLOR: "rgb(137, 137, 137)", 8789 HTML_DOCTYPE_COLOR: "rgb(192, 192, 192)", 8790 ARROW_COLOR: "rgb(145, 145, 145)", 8791 ARROW_MARGIN_RIGHT: 3, 8792 ARROW_FONT_SIZE: 12, 8793 ARROW_ANIMATION_DURATION: "0", 8794 TREENODE_FONT_FAMILY: "Menlo, monospace", 8795 TREENODE_FONT_SIZE: "11px", 8796 TREENODE_LINE_HEIGHT: 1.2, 8797 TREENODE_PADDING_LEFT: 12, 8798 TABLE_BORDER_COLOR: "rgb(85, 85, 85)", 8799 TABLE_TH_BACKGROUND_COLOR: "rgb(44, 44, 44)", 8800 TABLE_TH_HOVER_COLOR: "rgb(48, 48, 48)", 8801 TABLE_SORT_ICON_COLOR: "black", 8802 // 'rgb(48, 57, 66)', 8803 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))", 8804 TABLE_DATA_BACKGROUND_SIZE: "128px 32px" 8805 }, chromeLight = { 8806 BASE_FONT_FAMILY: "Menlo, monospace", 8807 BASE_FONT_SIZE: "11px", 8808 BASE_LINE_HEIGHT: 1.2, 8809 BASE_BACKGROUND_COLOR: "white", 8810 BASE_COLOR: "black", 8811 OBJECT_PREVIEW_ARRAY_MAX_PROPERTIES: 10, 8812 OBJECT_PREVIEW_OBJECT_MAX_PROPERTIES: 5, 8813 OBJECT_NAME_COLOR: "rgb(136, 19, 145)", 8814 OBJECT_VALUE_NULL_COLOR: "rgb(128, 128, 128)", 8815 OBJECT_VALUE_UNDEFINED_COLOR: "rgb(128, 128, 128)", 8816 OBJECT_VALUE_REGEXP_COLOR: "rgb(196, 26, 22)", 8817 OBJECT_VALUE_STRING_COLOR: "rgb(196, 26, 22)", 8818 OBJECT_VALUE_SYMBOL_COLOR: "rgb(196, 26, 22)", 8819 OBJECT_VALUE_NUMBER_COLOR: "rgb(28, 0, 207)", 8820 OBJECT_VALUE_BOOLEAN_COLOR: "rgb(28, 0, 207)", 8821 OBJECT_VALUE_FUNCTION_PREFIX_COLOR: "rgb(13, 34, 170)", 8822 HTML_TAG_COLOR: "rgb(168, 148, 166)", 8823 HTML_TAGNAME_COLOR: "rgb(136, 18, 128)", 8824 HTML_TAGNAME_TEXT_TRANSFORM: "lowercase", 8825 HTML_ATTRIBUTE_NAME_COLOR: "rgb(153, 69, 0)", 8826 HTML_ATTRIBUTE_VALUE_COLOR: "rgb(26, 26, 166)", 8827 HTML_COMMENT_COLOR: "rgb(35, 110, 37)", 8828 HTML_DOCTYPE_COLOR: "rgb(192, 192, 192)", 8829 ARROW_COLOR: "#6e6e6e", 8830 ARROW_MARGIN_RIGHT: 3, 8831 ARROW_FONT_SIZE: 12, 8832 ARROW_ANIMATION_DURATION: "0", 8833 TREENODE_FONT_FAMILY: "Menlo, monospace", 8834 TREENODE_FONT_SIZE: "11px", 8835 TREENODE_LINE_HEIGHT: 1.2, 8836 TREENODE_PADDING_LEFT: 12, 8837 TABLE_BORDER_COLOR: "#aaa", 8838 TABLE_TH_BACKGROUND_COLOR: "#eee", 8839 TABLE_TH_HOVER_COLOR: "hsla(0, 0%, 90%, 1)", 8840 TABLE_SORT_ICON_COLOR: "#6e6e6e", 8841 TABLE_DATA_BACKGROUND_IMAGE: "linear-gradient(to bottom, white, white 50%, rgb(234, 243, 255) 50%, rgb(234, 243, 255))", 8842 TABLE_DATA_BACKGROUND_SIZE: "128px 32px" 8843 }, convertColors = (colors3) => Object.entries(colors3).reduce((acc, [k, v
8843]) => ({ ...acc, [k]: mkColor(v
vendor: 7,208 bytes, lines 8843-9083
8843) }), {}), create2 = ({ colors: colors3, mono }) => { 8844 let colorsObjs = convertColors(colors3); 8845 return { 8846 token: { 8847 fontFamily: mono, 8848 WebkitFontSmoothing: "antialiased", 8849 "&.tag": colorsObjs.red3, 8850 "&.comment": { ...colorsObjs.green1, fontStyle: "italic" }, 8851 "&.prolog": { ...colorsObjs.green1, fontStyle: "italic" }, 8852 "&.doctype": { ...colorsObjs.green1, fontStyle: "italic" }, 8853 "&.cdata": { ...colorsObjs.green1, fontStyle: "italic" }, 8854 "&.string": colorsObjs.red1, 8855 "&.url": colorsObjs.cyan1, 8856 "&.symbol": colorsObjs.cyan1, 8857 "&.number": colorsObjs.cyan1, 8858 "&.boolean": colorsObjs.cyan1, 8859 "&.variable": colorsObjs.cyan1, 8860 "&.constant": colorsObjs.cyan1, 8861 "&.inserted": colorsObjs.cyan1, 8862 "&.atrule": colorsObjs.blue1, 8863 "&.keyword": colorsObjs.blue1, 8864 "&.attr-value": colorsObjs.blue1, 8865 "&.punctuation": colorsObjs.gray1, 8866 "&.operator": colorsObjs.gray1, 8867 "&.function": colorsObjs.gray1, 8868 "&.deleted": colorsObjs.red2, 8869 "&.important": { 8870 fontWeight: "bold" 8871 }, 8872 "&.bold": { 8873 fontWeight: "bold" 8874 }, 8875 "&.italic": { 8876 fontStyle: "italic" 8877 }, 8878 "&.class-name": colorsObjs.cyan2, 8879 "&.selector": colorsObjs.red3, 8880 "&.attr-name": colorsObjs.red4, 8881 "&.property": colorsObjs.red4, 8882 "&.regex": colorsObjs.red4, 8883 "&.entity": colorsObjs.red4, 8884 "&.directive.tag .tag": { 8885 background: "#ffff00", 8886 ...colorsObjs.gray1 8887 } 8888 }, 8889 "language-json .token.boolean": colorsObjs.blue1, 8890 "language-json .token.number": colorsObjs.blue1, 8891 "language-json .token.property": colorsObjs.cyan2, 8892 namespace: { 8893 opacity: 0.7 8894 } 8895 }; 8896 }; 8897 } 8898}); 8899 8900// src/theming/convert.ts 8901var lightSyntaxColors, darkSyntaxColors, createColors, convert, init_convert = __esm({ 8902 "src/theming/convert.ts"() { 8903 "use strict"; 8904 init_polished_esm(); 8905 init_animation(); 8906 init_base(); 8907 init_create(); 8908 init_syntax(); 8909 init_utils(); 8910 lightSyntaxColors = { 8911 green1: "#008000", 8912 red1: "#A31515", 8913 red2: "#9a050f", 8914 red3: "#800000", 8915 red4: "#eb0000", 8916 gray1: "#393A34", 8917 cyan1: "#008380", 8918 cyan2: "#007ca0", 8919 blue1: "#0000ff", 8920 blue2: "#00009f" 8921 }, darkSyntaxColors = { 8922 green1: "#95999D", 8923 red1: "#92C379", 8924 red2: "#9a050f", 8925 red3: "#A8FF60", 8926 red4: "#96CBFE", 8927 gray1: "#EDEDED", 8928 cyan1: "#C6C5FE", 8929 cyan2: "#FFFFB6", 8930 blue1: "#B474DD", 8931 blue2: "#00009f" 8932 }, createColors = (vars) => ({ 8933 // Changeable colors 8934 primary: vars.colorPrimary, 8935 secondary: vars.colorSecondary, 8936 tertiary: color.tertiary, 8937 ancillary: color.ancillary, 8938 // Complimentary 8939 orange: color.orange, 8940 gold: color.gold, 8941 green: color.green, 8942 seafoam: color.seafoam, 8943 purple: color.purple, 8944 ultraviolet: color.ultraviolet, 8945 // Monochrome 8946 lightest: color.lightest, 8947 lighter: color.lighter, 8948 light: color.light, 8949 mediumlight: color.mediumlight, 8950 medium: color.medium, 8951 mediumdark: color.mediumdark, 8952 dark: color.dark, 8953 darker: color.darker, 8954 darkest: color.darkest, 8955 // For borders 8956 border: color.border, 8957 // Status 8958 positive: color.positive, 8959 negative: color.negative, 8960 warning: color.warning, 8961 critical: color.critical, 8962 defaultText: vars.textColor || color.darkest, 8963 inverseText: vars.textInverseColor || color.lightest, 8964 positiveText: color.positiveText, 8965 negativeText: color.negativeText, 8966 warningText: color.warningText 8967 }), convert = (inherit = themes[getPreferredColorScheme()]) => { 8968 let { 8969 base, 8970 colorPrimary, 8971 colorSecondary, 8972 appBg, 8973 appContentBg, 8974 appHoverBg, 8975 appPreviewBg, 8976 appBorderColor, 8977 appBorderRadius, 8978 fontBase, 8979 fontCode, 8980 textColor, 8981 textInverseColor, 8982 barTextColor, 8983 barHoverColor, 8984 barSelectedColor, 8985 barBg, 8986 buttonBg, 8987 buttonBorder, 8988 booleanBg, 8989 booleanSelectedBg, 8990 inputBg, 8991 inputBorder, 8992 inputTextColor, 8993 inputBorderRadius, 8994 brandTitle, 8995 brandUrl, 8996 brandImage, 8997 brandTarget, 8998 gridCellSize, 8999 ...rest 9000 } = inherit; 9001 return { 9002 ...rest, 9003 base, 9004 ...base === "dark" ? tokens.dark : tokens.light, 9005 color: createColors(inherit), 9006 background: { 9007 app: appBg, 9008 bar: barBg, 9009 content: appContentBg, 9010 preview: appPreviewBg, 9011 gridCellSize: gridCellSize || background.gridCellSize, 9012 hoverable: appHoverBg, 9013 positive: background.positive, 9014 negative: background.negative, 9015 warning: background.warning, 9016 critical: background.critical 9017 }, 9018 typography: { 9019 fonts: { 9020 base: fontBase, 9021 mono: fontCode 9022 }, 9023 weight: typography.weight, 9024 size: typography.size 9025 }, 9026 animation, 9027 easing, 9028 input: { 9029 background: inputBg, 9030 border: inputBorder, 9031 borderRadius: inputBorderRadius, 9032 color: inputTextColor 9033 }, 9034 button: { 9035 background: buttonBg || inputBg, 9036 border: buttonBorder || inputBorder 9037 }, 9038 boolean: { 9039 background: booleanBg || inputBorder, 9040 selectedBackground: booleanSelectedBg || inputBg 9041 }, 9042 // UI 9043 layoutMargin: 10, 9044 appBorderColor, 9045 appBorderRadius, 9046 // Toolbar default/active colors 9047 barTextColor, 9048 barHoverColor: barHoverColor || colorSecondary, 9049 barSelectedColor: barSelectedColor || colorSecondary, 9050 barBg, 9051 // Brand logo/text 9052 brand: { 9053 title: brandTitle, 9054 url: brandUrl, 9055 image: brandImage || (brandTitle ? null : void 0), 9056 target: brandTarget 9057 }, 9058 code: create2({ 9059 colors: base === "dark" ? darkSyntaxColors : lightSyntaxColors, 9060 mono: fontCode 9061 }), 9062 // Addon actions theme 9063 // API example https://github.com/storybookjs/react-inspector/blob/master/src/styles/themes/chromeLight.tsx 9064 addonActionsTheme: { 9065 ...base === "dark" ? chromeDark : chromeLight, 9066 BASE_FONT_FAMILY: fontCode, 9067 BASE_FONT_SIZE: typography.size.s2 - 1, 9068 BASE_LINE_HEIGHT: "18px", 9069 BASE_BACKGROUND_COLOR: "transparent", 9070 BASE_COLOR: textColor, 9071 ARROW_COLOR: curriedOpacify$1(0.2, appBorderColor), 9072 ARROW_MARGIN_RIGHT: 4, 9073 ARROW_FONT_SIZE: 8, 9074 TREENODE_FONT_FAMILY: fontCode, 9075 TREENODE_FONT_SIZE: typography.size.s2 - 1, 9076 TREENODE_LINE_HEIGHT: "18px", 9077 TREENODE_PADDING_LEFT: 12 9078 } 9079 }; 9080 }; 9081 } 9082}); 9083
vendor: 469 bytes, lines 9084-9090
9084// ../../node_modules/deep-object-diff/mjs/utils.js 9085var isEmpty, isObject4, hasOwnProperty5, makeObjectWithoutPrototype, init_utils2 = __esm({ 9086 "../../node_modules/deep-object-diff/mjs/utils.js"() { 9087 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); 9088 } 9089}); 9090
vendor: 159 bytes, lines 9091-9097
9091// ../../node_modules/deep-object-diff/mjs/diff.js 9092var init_diff = __esm({ 9093 "../../node_modules/deep-object-diff/mjs/diff.js"() { 9094 init_utils2(); 9095 } 9096}); 9097
vendor: 162 bytes, lines 9098-9104
9098// ../../node_modules/deep-object-diff/mjs/added.js 9099var init_added = __esm({ 9100 "../../node_modules/deep-object-diff/mjs/added.js"() { 9101 init_utils2(); 9102 } 9103}); 9104
vendor: 635 bytes, lines 9105-9118
9105// ../../node_modules/deep-object-diff/mjs/deleted.js 9106var deletedDiff, deleted_default, init_deleted = __esm({ 9107 "../../node_modules/deep-object-diff/mjs/deleted.js"() { 9108 init_utils2(); 9109 deletedDiff = (lhs, rhs) => lhs === rhs || !isObject4(lhs) || !isObject4(rhs) ? {} : Object.keys(lhs).reduce((acc, key) => { 9110 if (hasOwnProperty5(rhs, key)) { 9111 let difference2 = deletedDiff(lhs[key], rhs[key]); 9112 return isObject4(difference2) && isEmpty(difference2) || (acc[key] = difference2), acc; 9113 } 9114 return acc[key] = void 0, acc; 9115 }, makeObjectWithoutPrototype()), deleted_default = deletedDiff; 9116 } 9117}); 9118
vendor: 168 bytes, lines 9119-9125
9119// ../../node_modules/deep-object-diff/mjs/updated.js 9120var init_updated = __esm({ 9121 "../../node_modules/deep-object-diff/mjs/updated.js"() { 9122 init_utils2(); 9123 } 9124}); 9125
vendor: 210 bytes, lines 9126-9134
9126// ../../node_modules/deep-object-diff/mjs/detailed.js 9127var init_detailed = __esm({ 9128 "../../node_modules/deep-object-diff/mjs/detailed.js"() { 9129 init_added(); 9130 init_deleted(); 9131 init_updated(); 9132 } 9133}); 9134
vendor: 237 bytes, lines 9135-9145
9135// ../../node_modules/deep-object-diff/mjs/index.js 9136var init_mjs = __esm({ 9137 "../../node_modules/deep-object-diff/mjs/index.js"() { 9138 init_diff(); 9139 init_added(); 9140 init_deleted(); 9141 init_updated(); 9142 init_detailed(); 9143 } 9144}); 9145
vendor: 1,338 bytes, lines 9146-9195
9146// src/theming/ensure.ts 9147var ensure, init_ensure = __esm({ 9148 "src/theming/ensure.ts"() { 9149 "use strict"; 9150 init_client_logger(); 9151 init_mjs(); 9152 init_esm(); 9153 init_convert(); 9154 init_light(); 9155 ensure = (input2) => { 9156 if (!input2) 9157 return convert(light_default); 9158 let missing = deleted_default(light_default, input2); 9159 return Object.keys(missing).length && logger.warn( 9160 dedent` 9161 Your theme is missing properties, you should update your theme! 9162 9163 theme-data missing: 9164 `, 9165 missing 9166 ), convert(input2); 9167 }; 9168 } 9169}); 9170 9171// src/theming/index.ts 9172var theming_exports = {}; 9173__export(theming_exports, { 9174 CacheProvider: () => CacheProvider, 9175 ClassNames: () => ClassNames, 9176 Global: () => Global, 9177 ThemeProvider: () => ThemeProvider, 9178 background: () => background, 9179 color: () => color, 9180 convert: () => convert, 9181 create: () => create, 9182 createCache: () => createCache, 9183 createGlobal: () => createGlobal, 9184 createReset: () => createReset, 9185 css: () => css, 9186 darken: () => darkenColor, 9187 ensure: () => ensure, 9188 getPreferredColorScheme: () => getPreferredColorScheme, 9189 ignoreSsrWarning: () => ignoreSsrWarning, 9190 isPropValid: () => isPropValid, 9191 jsx: () => jsx, 9192 keyframes: () => keyframes, 9193 lighten: () => lightenColor, 9194 srOnlyStyles: () => srOnlyStyles, 9195 s
9195tyled: () => styled, 9196 themes: () => themes, 9197 tokens: () => tokens, 9198 typography: () => typography, 9199 useTheme: () => useTheme, 9200 withTheme: () => withTheme 9201}); 9202var ignoreSsrWarning, init_theming = __esm({ 9203 "src/theming/index.ts"() { 9204 "use strict"; 9205 init_emotion_styled_browser_esm(); 9206 init_emotion_react_browser_esm(); 9207 init_base(); 9208 init_types(); 9209 init_emotion_cache_browser_esm(); 9210 init_emotion_is_prop_valid_esm(); 9211 init_global(); 9212 init_create(); 9213 init_convert(); 9214 init_ensure(); 9215 init_utils(); 9216 ignoreSsrWarning = "/* emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason */"; 9217 } 9218}); 9219
vendor: 498 bytes, lines 9220-9233
9220// ../../node_modules/@babel/runtime/helpers/esm/typeof.js 9221function _typeof(o) { 9222 "@babel/helpers - typeof"; 9223 return _typeof = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(o2) { 9224 return typeof o2; 9225 } : function(o2) { 9226 return o2 && typeof Symbol == "function" && o2.constructor === Symbol && o2 !== Symbol.prototype ? "symbol" : typeof o2; 9227 }, _typeof(o); 9228} 9229var init_typeof = __esm({ 9230 "../../node_modules/@babel/runtime/helpers/esm/typeof.js"() { 9231 } 9232}); 9233
vendor: 533 bytes, lines 9234-9250
9234// ../../node_modules/@babel/runtime/helpers/esm/toPrimitive.js 9235function toPrimitive(t, r2) { 9236 if (_typeof(t) != "object" || !t) return t; 9237 var e = t[Symbol.toPrimitive]; 9238 if (e !== void 0) { 9239 var i = e.call(t, r2 || "default"); 9240 if (_typeof(i) != "object") return i; 9241 throw new TypeError("@@toPrimitive must return a primitive value."); 9242 } 9243 return (r2 === "string" ? String : Number)(t); 9244} 9245var init_toPrimitive = __esm({ 9246 "../../node_modules/@babel/runtime/helpers/esm/toPrimitive.js"() { 9247 init_typeof(); 9248 } 9249}); 9250
vendor: 334 bytes, lines 9251-9262
9251// ../../node_modules/@babel/runtime/helpers/esm/toPropertyKey.js 9252function toPropertyKey(t) { 9253 var i = toPrimitive(t, "string"); 9254 return _typeof(i) == "symbol" ? i : i + ""; 9255} 9256var init_toPropertyKey = __esm({ 9257 "../../node_modules/@babel/runtime/helpers/esm/toPropertyKey.js"() { 9258 init_typeof(); 9259 init_toPrimitive(); 9260 } 9261}); 9262
vendor: 413 bytes, lines 9263-9277
9263// ../../node_modules/@babel/runtime/helpers/esm/defineProperty.js 9264function _defineProperty(e, r2, t) { 9265 return (r2 = toPropertyKey(r2)) in e ? Object.defineProperty(e, r2, { 9266 value: t, 9267 enumerable: !0, 9268 configurable: !0, 9269 writable: !0 9270 }) : e[r2] = t, e; 9271} 9272var init_defineProperty = __esm({ 9273 "../../node_modules/@babel/runtime/helpers/esm/defineProperty.js"() { 9274 init_toPropertyKey(); 9275 } 9276}); 9277
vendor: 8,740 bytes, lines 9278-9376
9278// ../../node_modules/react-syntax-highlighter/dist/esm/create-element.js 9279function ownKeys(e, r2) { 9280 var t = Object.keys(e); 9281 if (Object.getOwnPropertySymbols) { 9282 var o = Object.getOwnPropertySymbols(e); 9283 r2 && (o = o.filter(function(r3) { 9284 return Object.getOwnPropertyDescriptor(e, r3).enumerable; 9285 })), t.push.apply(t, o); 9286 } 9287 return t; 9288} 9289function _objectSpread(e) { 9290 for (var r2 = 1; r2 < arguments.length; r2++) { 9291 var t = arguments[r2] != null ? arguments[r2] : {}; 9292 r2 % 2 ? ownKeys(Object(t), !0).forEach(function(r3) { 9293 _defineProperty(e, r3, t[r3]); 9294 }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function(r3) { 9295 Object.defineProperty(e, r3, Object.getOwnPropertyDescriptor(t, r3)); 9296 }); 9297 } 9298 return e; 9299} 9300function powerSetPermutations(arr) { 9301 var arrLength = arr.length; 9302 if (arrLength === 0 || arrLength === 1) return arr; 9303 if (arrLength === 2) 9304 return [arr[0], arr[1], "".concat(arr[0], ".").concat(arr[1]), "".concat(arr[1], ".").concat(arr[0])]; 9305 if (arrLength === 3) 9306 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])]; 9307 if (arrLength >= 4) 9308 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])]; 9309} 9310function getClassNameCombinations(classNames) { 9311 if (classNames.length === 0 || classNames.length === 1) return classNames; 9312 var key = classNames.join("."); 9313 return classNameCombinations[key] || (classNameCombinations[key] = powerSetPermutations(classNames)), classNameCombinations[key]; 9314} 9315function createStyleObject(classNames) { 9316 var elementStyle = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, stylesheet = arguments.length > 2 ? arguments[2] : void 0, nonTokenClassNames = classNames.filter(function(className) { 9317 return className !== "token"; 9318 }), classNamesCombinations = getClassNameCombinations(nonTokenClassNames); 9319 return classNamesCombinations.reduce(function(styleObject, className) { 9320 return _objectSpread(_objectSpread({}, styleObject), stylesheet[className]); 9321 }, elementStyle); 9322} 9323function createClassNameString(classNames) { 9324 return classNames.join(" "); 9325} 9326function createChildren(stylesheet, useInlineStyles) { 9327 var childrenCount = 0; 9328 return function(children) { 9329 return childrenCount += 1, children.map(function(child, i) { 9330 return createElement4({ 9331 node: child, 9332 stylesheet, 9333 useInlineStyles, 9334 key: "code-segment-".concat(childrenCount, "-").concat(i) 9335 }); 9336 }); 9337 }; 9338} 9339function createElement4(_ref) { 9340 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; 9341 if (type5 === "text") 9342 return value; 9343 if (TagName) { 9344 var childrenCreator = createChildren(stylesheet, useInlineStyles), props; 9345 if (!useInlineStyles) 9346 props = _objectSpread(_objectSpread({}, properties), {}, { 9347 className: createClassNameString(properties.className) 9348 }); 9349 else { 9350 var allStylesheetSelectors = Object.keys(stylesheet).reduce(function(classes, selector) { 9351 return selector.split(".").forEach(function(className2) { 9352 classes.includes(className2) || classes.push(className2); 9353 }), classes; 9354 }, []), startingClassName = properties.className && properties.className.includes("token") ? ["token"] : [], className = properties.className && startingClassName.concat(properties.className.filter(function(className2) { 9355 return !allStylesheetSelectors.includes(className2); 9356 })); 9357 props = _objectSpread(_objectSpread({}, properties), {}, { 9358 className: createClassNameString(className) || void 0, 9359 style: createStyleObject(properties.className, Object.assign({}, properties.style, style), stylesheet) 9360 }); 9361 } 9362 var children = childrenCreator(node2.children); 9363 return import_react8.default.createElement(TagName, _extends({ 9364 key 9365 }, props), children); 9366 } 9367} 9368var import_react8, classNameCombinations, init_create_element = __esm({ 9369 "../../node_modules/react-syntax-highlighter/dist/esm/create-element.js"() { 9370 init_extends(); 9371 init_defineProperty(); 9372 import_react8 = __toESM(require_react()); 9373 classNameCombinations = {}; 9374 } 9375}); 9376
vendor: 10,780 bytes, lines 9377-9600
9377// ../../node_modules/refractor/lang/bash.js 9378var require_bash = __commonJS({ 9379 "../../node_modules/refractor/lang/bash.js"(exports, module2) { 9380 "use strict"; 9381 module2.exports = bash2; 9382 bash2.displayName = "bash"; 9383 bash2.aliases = ["shell"]; 9384 function bash2(Prism) { 9385 (function(Prism2) { 9386 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 = { 9387 pattern: /(^(["']?)\w+\2)[ \t]+\S.*/, 9388 lookbehind: !0, 9389 alias: "punctuation", 9390 // this looks reasonably well in all themes 9391 inside: null 9392 // see below 9393 }, insideString = { 9394 bash: commandAfterHeredoc, 9395 environment: { 9396 pattern: RegExp("\\$" + envVars), 9397 alias: "constant" 9398 }, 9399 variable: [ 9400 // [0]: Arithmetic Environment 9401 { 9402 pattern: /\$?\(\([\s\S]+?\)\)/, 9403 greedy: !0, 9404 inside: { 9405 // If there is a $ sign at the beginning highlight $(( and )) as variable 9406 variable: [ 9407 { 9408 pattern: /(^\$\(\([\s\S]+)\)\)/, 9409 lookbehind: !0 9410 }, 9411 /^\$\(\(/ 9412 ], 9413 number: /\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/, 9414 // Operators according to https://www.gnu.org/software/bash/manual/bashref.html#Shell-Arithmetic 9415 operator: /--|\+\+|\*\*=?|<<=?|>>=?|&&|\|\||[=!+\-*/%<>^&|]=?|[?~:]/, 9416 // If there is no $ sign at the beginning highlight (( and )) as punctuation 9417 punctuation: /\(\(?|\)\)?|,|;/ 9418 } 9419 }, 9420 // [1]: Command Substitution 9421 { 9422 pattern: /\$\((?:\([^)]+\)|[^()])+\)|`[^`]+`/, 9423 greedy: !0, 9424 inside: { 9425 variable: /^\$\(|^`|\)$|`$/ 9426 } 9427 }, 9428 // [2]: Brace expansion 9429 { 9430 pattern: /\$\{[^}]+\}/, 9431 greedy: !0, 9432 inside: { 9433 operator: /:[-=?+]?|[!\/]|##?|%%?|\^\^?|,,?/, 9434 punctuation: /[\[\]]/, 9435 environment: { 9436 pattern: RegExp("(\\{)" + envVars), 9437 lookbehind: !0, 9438 alias: "constant" 9439 } 9440 } 9441 }, 9442 /\$(?:\w+|[#?*!@$])/ 9443 ], 9444 // Escape sequences from echo and printf's manuals, and escaped quotes. 9445 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})/ 9446 }; 9447 Prism2.languages.bash = { 9448 shebang: { 9449 pattern: /^#!\s*\/.*/, 9450 alias: "important" 9451 }, 9452 comment: { 9453 pattern: /(^|[^"{\\$])#.*/, 9454 lookbehind: !0 9455 }, 9456 "function-name": [ 9457 // a) function foo { 9458 // b) foo() { 9459 // c) function foo() { 9460 // but not âfoo {â 9461 { 9462 // a) and c) 9463 pattern: /(\bfunction\s+)[\w-]+(?=(?:\s*\(?:\s*\))?\s*\{)/, 9464 lookbehind: !0, 9465 alias: "function" 9466 }, 9467 { 9468 // b) 9469 pattern: /\b[\w-]+(?=\s*\(\s*\)\s*\{)/, 9470 alias: "function" 9471 } 9472 ], 9473 // Highlight variable names as variables in for and select beginnings. 9474 "for-or-select": { 9475 pattern: /(\b(?:for|select)\s+)\w+(?=\s+in\s)/, 9476 alias: "variable", 9477 lookbehind: !0 9478 }, 9479 // Highlight variable names as variables in the left-hand part 9480 // of assignments (â=â and â+=â). 9481 "assign-left": { 9482 pattern: /(^|[\s;|&]|[<>]\()\w+(?=\+?=)/, 9483 inside: { 9484 environment: { 9485 pattern: RegExp("(^|[\\s;|&]|[<>]\\()" + envVars), 9486 lookbehind: !0, 9487 alias: "constant" 9488 } 9489 }, 9490 alias: "variable", 9491 lookbehind: !0 9492 }, 9493 string: [ 9494 // Support for Here-documents https://en.wikipedia.org/wiki/Here_document 9495 { 9496 pattern: /((?:^|[^<])<<-?\s*)(\w+)\s[\s\S]*?(?:\r?\n|\r)\2/, 9497 lookbehind: !0, 9498 greedy: !0, 9499 inside: insideString 9500 }, 9501 // Here-document with quotes around the tag 9502 // â No expansion (so no âinsideâ). 9503 { 9504 pattern: /((?:^|[^<])<<-?\s*)(["'])(\w+)\2\s[\s\S]*?(?:\r?\n|\r)\3/, 9505 lookbehind: !0, 9506 greedy: !0, 9507 inside: { 9508 bash: commandAfterHeredoc 9509 } 9510 }, 9511 // âNormalâ string 9512 { 9513 // https://www.gnu.org/software/bash/manual/html_node/Double-Quotes.html 9514 pattern: /(^|[^\\](?:\\\\)*)"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/, 9515 lookbehind: !0, 9516 greedy: !0, 9517 inside: insideString 9518 }, 9519 { 9520 // https://www.gnu.org/software/bash/manual/html_node/Single-Quotes.html 9521 pattern: /(^|[^$\\])'[^']*'/, 9522 lookbehind: !0, 9523 greedy: !0 9524 }, 9525 { 9526 // https://www.gnu.org/software/bash/manual/html_node/ANSI_002dC-Quoting.html 9527 pattern: /\$'(?:[^'\\]|\\[\s\S])*'/, 9528 greedy: !0, 9529 inside: { 9530 entity: insideString.entity 9531 } 9532 } 9533 ], 9534 environment: { 9535 pattern: RegExp("\\$?" + envVars), 9536 alias: "constant" 9537 }, 9538 variable: insideString.variable, 9539 function: { 9540 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;|&])/, 9541 lookbehind: !0 9542 }, 9543 keyword: { 9544 pattern: /(^|[\s;|&]|[<>]\()(?:case|do|done|elif|else|esac|fi|for|function|if|in|select|then|until|while)(?=$|[)\s;|&])/, 9545 lookbehind: !0 9546 }, 9547 // https://www.gnu.org/software/bash/manual/html_node/Shell-Builtin-Commands.html 9548 builtin: { 9549 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;|&])/, 9550 lookbehind: !0, 9551 // Alias added to make those easier to distinguish from strings. 9552 alias: "class-name" 9553 }, 9554 boolean: { 9555 pattern: /(^|[\s;|&]|[<>]\()(?:false|true)(?=$|[)\s;|&])/, 9556 lookbehind: !0 9557 }, 9558 "file-descriptor": { 9559 pattern: /\B&\d\b/, 9560 alias: "important" 9561 }, 9562 operator: { 9563 // Lots of redirections here, but not just that. 9564 pattern: /\d?<>|>\||\+=|=[=~]?|!=?|<<[<-]?|[&\d]?>>|\d[<>]&?|[<>][&=]?|&[>&]?|\|[&|]?/, 9565 inside: { 9566 "file-descriptor": { 9567 pattern: /^\d/, 9568 alias: "important" 9569 } 9570 } 9571 }, 9572 punctuation: /\$?\(\(?|\)\)?|\.\.|[{}[\];\\]/, 9573 number: { 9574 pattern: /(^|\s)(?:[1-9]\d*|0)(?:[.,]\d+)?\b/, 9575 lookbehind: !0 9576 } 9577 }, commandAfterHeredoc.inside = Prism2.languages.bash; 9578 for (var toBeCopied = [ 9579 "comment", 9580 "function-name", 9581 "for-or-select", 9582 "assign-left", 9583 "string", 9584 "environment", 9585 "function", 9586 "keyword", 9587 "builtin", 9588 "boolean", 9589 "file-descriptor", 9590 "operator", 9591 "punctuation", 9592 "number" 9593 ], inside = insideString.variable[1].inside, i = 0; i < toBeCopied.length; i++) 9594 inside[toBeCopied[i]] = Prism2.languages.bash[toBeCopied[i]]; 9595 Prism2.languages.shell = Prism2.languages.bash; 9596 })(Prism); 9597 } 9598 } 9599}); 9600
vendor: 304 bytes, lines 9601-9607
9601// ../../node_modules/react-syntax-highlighter/dist/esm/languages/prism/bash.js 9602var import_bash, bash_default, init_bash = __esm({ 9603 "../../node_modules/react-syntax-highlighter/dist/esm/languages/prism/bash.js"() { 9604 import_bash = __toESM(require_bash()), bash_default = import_bash.default; 9605 } 9606}); 9607
vendor: 2,472 bytes, lines 9608-9679
9608// ../../node_modules/refractor/lang/css.js 9609var require_css = __commonJS({ 9610 "../../node_modules/refractor/lang/css.js"(exports, module2) { 9611 "use strict"; 9612 module2.exports = css3; 9613 css3.displayName = "css"; 9614 css3.aliases = []; 9615 function css3(Prism) { 9616 (function(Prism2) { 9617 var string = /(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/; 9618 Prism2.languages.css = { 9619 comment: /\/\*[\s\S]*?\*\//, 9620 atrule: { 9621 pattern: /@[\w-](?:[^;{\s]|\s+(?![\s{]))*(?:;|(?=\s*\{))/, 9622 inside: { 9623 rule: /^@[\w-]+/, 9624 "selector-function-argument": { 9625 pattern: /(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/, 9626 lookbehind: !0, 9627 alias: "selector" 9628 }, 9629 keyword: { 9630 pattern: /(^|[^\w-])(?:and|not|only|or)(?![\w-])/, 9631 lookbehind: !0 9632 } 9633 // See rest below 9634 } 9635 }, 9636 url: { 9637 // https://drafts.csswg.org/css-values-3/#urls 9638 pattern: RegExp( 9639 "\\burl\\((?:" + string.source + "|" + /(?:[^\\\r\n()"']|\\[\s\S])*/.source + ")\\)", 9640 "i" 9641 ), 9642 greedy: !0, 9643 inside: { 9644 function: /^url/i, 9645 punctuation: /^\(|\)$/, 9646 string: { 9647 pattern: RegExp("^" + string.source + "$"), 9648 alias: "url" 9649 } 9650 } 9651 }, 9652 selector: { 9653 pattern: RegExp( 9654 `(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|` + string.source + ")*(?=\\s*\\{)" 9655 ), 9656 lookbehind: !0 9657 }, 9658 string: { 9659 pattern: string, 9660 greedy: !0 9661 }, 9662 property: { 9663 pattern: /(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i, 9664 lookbehind: !0 9665 }, 9666 important: /!important\b/i, 9667 function: { 9668 pattern: /(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i, 9669 lookbehind: !0 9670 }, 9671 punctuation: /[(){};:,]/ 9672 }, Prism2.languages.css.atrule.inside.rest = Prism2.languages.css; 9673 var markup2 = Prism2.languages.markup; 9674 markup2 && (markup2.tag.addInlined("style", "css"), markup2.tag.addAttribute("style", "css")); 9675 })(Prism); 9676 } 9677 } 9678}); 9679
vendor: 295 bytes, lines 9680-9686
9680// ../../node_modules/react-syntax-highlighter/dist/esm/languages/prism/css.js 9681var import_css, css_default, init_css = __esm({ 9682 "../../node_modules/react-syntax-highlighter/dist/esm/languages/prism/css.js"() { 9683 import_css = __toESM(require_css()), css_default = import_css.default; 9684 } 9685}); 9686
vendor: 5,264 bytes, lines 9687-9819
9687// ../../node_modules/refractor/lang/graphql.js 9688var require_graphql = __commonJS({ 9689 "../../node_modules/refractor/lang/graphql.js"(exports, module2) { 9690 "use strict"; 9691 module2.exports = graphql2; 9692 graphql2.displayName = "graphql"; 9693 graphql2.aliases = []; 9694 function graphql2(Prism) { 9695 Prism.languages.graphql = { 9696 comment: /#.*/, 9697 description: { 9698 pattern: /(?:"""(?:[^"]|(?!""")")*"""|"(?:\\.|[^\\"\r\n])*")(?=\s*[a-z_])/i, 9699 greedy: !0, 9700 alias: "string", 9701 inside: { 9702 "language-markdown": { 9703 pattern: /(^"(?:"")?)(?!\1)[\s\S]+(?=\1$)/, 9704 lookbehind: !0, 9705 inside: Prism.languages.markdown 9706 } 9707 } 9708 }, 9709 string: { 9710 pattern: /"""(?:[^"]|(?!""")")*"""|"(?:\\.|[^\\"\r\n])*"/, 9711 greedy: !0 9712 }, 9713 number: /(?:\B-|\b)\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i, 9714 boolean: /\b(?:false|true)\b/, 9715 variable: /\$[a-z_]\w*/i, 9716 directive: { 9717 pattern: /@[a-z_]\w*/i, 9718 alias: "function" 9719 }, 9720 "attr-name": { 9721 pattern: /\b[a-z_]\w*(?=\s*(?:\((?:[^()"]|"(?:\\.|[^\\"\r\n])*")*\))?:)/i, 9722 greedy: !0 9723 }, 9724 "atom-input": { 9725 pattern: /\b[A-Z]\w*Input\b/, 9726 alias: "class-name" 9727 }, 9728 scalar: /\b(?:Boolean|Float|ID|Int|String)\b/, 9729 constant: /\b[A-Z][A-Z_\d]*\b/, 9730 "class-name": { 9731 pattern: /(\b(?:enum|implements|interface|on|scalar|type|union)\s+|&\s*|:\s*|\[)[A-Z_]\w*/, 9732 lookbehind: !0 9733 }, 9734 fragment: { 9735 pattern: /(\bfragment\s+|\.{3}\s*(?!on\b))[a-zA-Z_]\w*/, 9736 lookbehind: !0, 9737 alias: "function" 9738 }, 9739 "definition-mutation": { 9740 pattern: /(\bmutation\s+)[a-zA-Z_]\w*/, 9741 lookbehind: !0, 9742 alias: "function" 9743 }, 9744 "definition-query": { 9745 pattern: /(\bquery\s+)[a-zA-Z_]\w*/, 9746 lookbehind: !0, 9747 alias: "function" 9748 }, 9749 keyword: /\b(?:directive|enum|extend|fragment|implements|input|interface|mutation|on|query|repeatable|scalar|schema|subscription|type|union)\b/, 9750 operator: /[!=|&]|\.{3}/, 9751 "property-query": /\w+(?=\s*\()/, 9752 object: /\w+(?=\s*\{)/, 9753 punctuation: /[!(){}\[\]:=,]/, 9754 property: /\w+/ 9755 }, Prism.hooks.add("after-tokenize", function(env) { 9756 if (env.language !== "graphql") 9757 return; 9758 var validTokens = env.tokens.filter(function(token2) { 9759 return typeof token2 != "string" && token2.type !== "comment" && token2.type !== "scalar"; 9760 }), currentIndex = 0; 9761 function getToken(offset3) { 9762 return validTokens[currentIndex + offset3]; 9763 } 9764 function isTokenType(types, offset3) { 9765 offset3 = offset3 || 0; 9766 for (var i2 = 0; i2 < types.length; i2++) { 9767 var token2 = getToken(i2 + offset3); 9768 if (!token2 || token2.type !== types[i2]) 9769 return !1; 9770 } 9771 return !0; 9772 } 9773 function findClosingBracket(open, close) { 9774 for (var stackHeight = 1, i2 = currentIndex; i2 < validTokens.length; i2++) { 9775 var token2 = validTokens[i2], content = token2.content; 9776 if (token2.type === "punctuation" && typeof content == "string") { 9777 if (open.test(content)) 9778 stackHeight++; 9779 else if (close.test(content) && (stackHeight--, stackHeight === 0)) 9780 return i2; 9781 } 9782 } 9783 return -1; 9784 } 9785 function addAlias(token2, alias) { 9786 var aliases2 = token2.alias; 9787 aliases2 ? Array.isArray(aliases2) || (token2.alias = aliases2 = [aliases2]) : token2.alias = aliases2 = [], aliases2.push(alias); 9788 } 9789 for (; currentIndex < validTokens.length; ) { 9790 var startToken = validTokens[currentIndex++]; 9791 if (startToken.type === "keyword" && startToken.content === "mutation") { 9792 var inputVariables = []; 9793 if (isTokenType(["definition-mutation", "punctuation"]) && getToken(1).content === "(") { 9794 currentIndex += 2; 9795 var definitionEnd = findClosingBracket(/^\($/, /^\)$/); 9796 if (definitionEnd === -1) 9797 continue; 9798 for (; currentIndex < definitionEnd; currentIndex++) { 9799 var t = getToken(0); 9800 t.type === "variable" && (addAlias(t, "variable-input"), inputVariables.push(t.content)); 9801 } 9802 currentIndex = definitionEnd + 1; 9803 } 9804 if (isTokenType(["punctuation", "property-query"]) && getToken(0).content === "{" && (currentIndex++, addAlias(getToken(0), "property-mutation"), inputVariables.length > 0)) { 9805 var mutationEnd = findClosingBracket(/^\{$/, /^\}$/); 9806 if (mutationEnd === -1) 9807 continue; 9808 for (var i = currentIndex; i < mutationEnd; i++) { 9809 var varToken = validTokens[i]; 9810 varToken.type === "variable" && inputVariables.indexOf(varToken.content) >= 0 && addAlias(varToken, "variable-input"); 9811 } 9812 } 9813 } 9814 } 9815 }); 9816 } 9817 } 9818}); 9819
vendor: 331 bytes, lines 9820-9826
9820// ../../node_modules/react-syntax-highlighter/dist/esm/languages/prism/graphql.js 9821var import_graphql, graphql_default, init_graphql = __esm({ 9822 "../../node_modules/react-syntax-highlighter/dist/esm/languages/prism/graphql.js"() { 9823 import_graphql = __toESM(require_graphql()), graphql_default = import_graphql.default; 9824 } 9825}); 9826
vendor: 4,756 bytes, lines 9827-9955
9827// ../../node_modules/refractor/lang/js-extras.js 9828var require_js_extras = __commonJS({ 9829 "../../node_modules/refractor/lang/js-extras.js"(exports, module2) { 9830 "use strict"; 9831 module2.exports = jsExtras2; 9832 jsExtras2.displayName = "jsExtras"; 9833 jsExtras2.aliases = []; 9834 function jsExtras2(Prism) { 9835 (function(Prism2) { 9836 Prism2.languages.insertBefore("javascript", "function-variable", { 9837 "method-variable": { 9838 pattern: RegExp( 9839 "(\\.\\s*)" + Prism2.languages.javascript["function-variable"].pattern.source 9840 ), 9841 lookbehind: !0, 9842 alias: ["function-variable", "method", "function", "property-access"] 9843 } 9844 }), Prism2.languages.insertBefore("javascript", "function", { 9845 method: { 9846 pattern: RegExp( 9847 "(\\.\\s*)" + Prism2.languages.javascript.function.source 9848 ), 9849 lookbehind: !0, 9850 alias: ["function", "property-access"] 9851 } 9852 }), Prism2.languages.insertBefore("javascript", "constant", { 9853 "known-class-name": [ 9854 { 9855 // standard built-ins 9856 // https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects 9857 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/, 9858 alias: "class-name" 9859 }, 9860 { 9861 // errors 9862 pattern: /\b(?:[A-Z]\w*)Error\b/, 9863 alias: "class-name" 9864 } 9865 ] 9866 }); 9867 function withId(source, flags) { 9868 return RegExp( 9869 source.replace(/<ID>/g, function() { 9870 return /(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/.source; 9871 }), 9872 flags 9873 ); 9874 } 9875 Prism2.languages.insertBefore("javascript", "keyword", { 9876 imports: { 9877 // https://tc39.es/ecma262/#sec-imports 9878 pattern: withId( 9879 /(\bimport\b\s*)(?:<ID>(?:\s*,\s*(?:\*\s*as\s+<ID>|\{[^{}]*\}))?|\*\s*as\s+<ID>|\{[^{}]*\})(?=\s*\bfrom\b)/.source 9880 ), 9881 lookbehind: !0, 9882 inside: Prism2.languages.javascript 9883 }, 9884 exports: { 9885 // https://tc39.es/ecma262/#sec-exports 9886 pattern: withId( 9887 /(\bexport\b\s*)(?:\*(?:\s*as\s+<ID>)?(?=\s*\bfrom\b)|\{[^{}]*\})/.source 9888 ), 9889 lookbehind: !0, 9890 inside: Prism2.languages.javascript 9891 } 9892 }), Prism2.languages.javascript.keyword.unshift( 9893 { 9894 pattern: /\b(?:as|default|export|from|import)\b/, 9895 alias: "module" 9896 }, 9897 { 9898 pattern: /\b(?:await|break|catch|continue|do|else|finally|for|if|return|switch|throw|try|while|yield)\b/, 9899 alias: "control-flow" 9900 }, 9901 { 9902 pattern: /\bnull\b/, 9903 alias: ["null", "nil"] 9904 }, 9905 { 9906 pattern: /\bundefined\b/, 9907 alias: "nil" 9908 } 9909 ), Prism2.languages.insertBefore("javascript", "operator", { 9910 spread: { 9911 pattern: /\.{3}/, 9912 alias: "operator" 9913 }, 9914 arrow: { 9915 pattern: /=>/, 9916 alias: "operator" 9917 } 9918 }), Prism2.languages.insertBefore("javascript", "punctuation", { 9919 "property-access": { 9920 pattern: withId(/(\.\s*)#?<ID>/.source), 9921 lookbehind: !0 9922 }, 9923 "maybe-class-name": { 9924 pattern: /(^|[^$\w\xA0-\uFFFF])[A-Z][$\w\xA0-\uFFFF]+/, 9925 lookbehind: !0 9926 }, 9927 dom: { 9928 // this contains only a few commonly used DOM variables 9929 pattern: /\b(?:document|(?:local|session)Storage|location|navigator|performance|window)\b/, 9930 alias: "variable" 9931 }, 9932 console: { 9933 pattern: /\bconsole(?=\s*\.)/, 9934 alias: "class-name" 9935 } 9936 }); 9937 for (var maybeClassNameTokens = [ 9938 "function", 9939 "function-variable", 9940 "method", 9941 "method-variable", 9942 "property-access" 9943 ], i = 0; i < maybeClassNameTokens.length; i++) { 9944 var token2 = maybeClassNameTokens[i], value = Prism2.languages.javascript[token2]; 9945 Prism2.util.type(value) === "RegExp" && (value = Prism2.languages.javascript[token2] = { 9946 pattern: value 9947 }); 9948 var inside = value.inside || {}; 9949 value.inside = inside, inside["maybe-class-name"] = /^[A-Z][\s\S]*/; 9950 } 9951 })(Prism); 9952 } 9953 } 9954}); 9955
vendor: 349 bytes, lines 9956-9962
9956// ../../node_modules/react-syntax-highlighter/dist/esm/languages/prism/js-extras.js 9957var import_js_extras, js_extras_default, init_js_extras = __esm({ 9958 "../../node_modules/react-syntax-highlighter/dist/esm/languages/prism/js-extras.js"() { 9959 import_js_extras = __toESM(require_js_extras()), js_extras_default = import_js_extras.default; 9960 } 9961}); 9962
vendor: 1,006 bytes, lines 9963-9998
9963// ../../node_modules/refractor/lang/json.js 9964var require_json = __commonJS({ 9965 "../../node_modules/refractor/lang/json.js"(exports, module2) { 9966 "use strict"; 9967 module2.exports = json3; 9968 json3.displayName = "json"; 9969 json3.aliases = ["webmanifest"]; 9970 function json3(Prism) { 9971 Prism.languages.json = { 9972 property: { 9973 pattern: /(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?=\s*:)/, 9974 lookbehind: !0, 9975 greedy: !0 9976 }, 9977 string: { 9978 pattern: /(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?!\s*:)/, 9979 lookbehind: !0, 9980 greedy: !0 9981 }, 9982 comment: { 9983 pattern: /\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/, 9984 greedy: !0 9985 }, 9986 number: /-?\b\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i, 9987 punctuation: /[{}[\],]/, 9988 operator: /:/, 9989 boolean: /\b(?:false|true)\b/, 9990 null: { 9991 pattern: /\bnull\b/, 9992 alias: "keyword" 9993 } 9994 }, Prism.languages.webmanifest = Prism.languages.json; 9995 } 9996 } 9997}); 9998
vendor: 304 bytes, lines 9999-10005
9999// ../../node_modules/react-syntax-highlighter/dist/esm/languages/prism/json.js 10000var import_json, json_default, init_json = __esm({ 10001 "../../node_modules/react-syntax-highlighter/dist/esm/languages/prism/json.js"() { 10002 import_json = __toESM(require_json()), json_default = import_json.default; 10003 } 10004}); 10005
vendor: 4,601 bytes, lines 10006-10083
10006// ../../node_modules/refractor/lang/jsx.js 10007var require_jsx = __commonJS({ 10008 "../../node_modules/refractor/lang/jsx.js"(exports, module2) { 10009 "use strict"; 10010 module2.exports = jsx10; 10011 jsx10.displayName = "jsx"; 10012 jsx10.aliases = []; 10013 function jsx10(Prism) { 10014 (function(Prism2) { 10015 var javascript = Prism2.util.clone(Prism2.languages.javascript), space = /(?:\s|\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))\*\/)/.source, braces = /(?:\{(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])*\})/.source, spread = /(?:\{<S>*\.{3}(?:[^{}]|<BRACES>)*\})/.source; 10016 function re(source, flags) { 10017 return source = source.replace(/<S>/g, function() { 10018 return space; 10019 }).replace(/<BRACES>/g, function() { 10020 return braces; 10021 }).replace(/<SPREAD>/g, function() { 10022 return spread; 10023 }), RegExp(source, flags); 10024 } 10025 spread = re(spread).source, Prism2.languages.jsx = Prism2.languages.extend("markup", javascript), Prism2.languages.jsx.tag.pattern = re( 10026 /<\/?(?:[\w.:-]+(?:<S>+(?:[\w.:$-]+(?:=(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s{'"/>=]+|<BRACES>))?|<SPREAD>))*<S>*\/?)?>/.source 10027 ), 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( 10028 "inside", 10029 "attr-name", 10030 { 10031 spread: { 10032 pattern: re(/<SPREAD>/.source), 10033 inside: Prism2.languages.jsx 10034 } 10035 }, 10036 Prism2.languages.jsx.tag 10037 ), Prism2.languages.insertBefore( 10038 "inside", 10039 "special-attr", 10040 { 10041 script: { 10042 // Allow for two levels of nesting 10043 pattern: re(/=<BRACES>/.source), 10044 alias: "language-javascript", 10045 inside: { 10046 "script-punctuation": { 10047 pattern: /^=(?=\{)/, 10048 alias: "punctuation" 10049 }, 10050 rest: Prism2.languages.jsx 10051 } 10052 } 10053 }, 10054 Prism2.languages.jsx.tag 10055 ); 10056 var stringifyToken = function(token2) { 10057 return token2 ? typeof token2 == "string" ? token2 : typeof token2.content == "string" ? token2.content : token2.content.map(stringifyToken).join("") : ""; 10058 }, walkTokens = function(tokens2) { 10059 for (var openedTags = [], i = 0; i < tokens2.length; i++) { 10060 var token2 = tokens2[i], notTagNorBrace = !1; 10061 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({ 10062 tagName: stringifyToken(token2.content[0].content[1]), 10063 openedBraces: 0 10064 }) : 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) { 10065 var plainText = stringifyToken(token2); 10066 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( 10067 "plain-text", 10068 plainText, 10069 null, 10070 plainText 10071 ); 10072 } 10073 token2.content && typeof token2.content != "string" && walkTokens(token2.content); 10074 } 10075 }; 10076 Prism2.hooks.add("after-tokenize", function(env) { 10077 env.language !== "jsx" && env.language !== "tsx" || walkTokens(env.tokens); 10078 }); 10079 })(Prism); 10080 } 10081 } 10082}); 10083
vendor: 295 bytes, lines 10084-10090
10084// ../../node_modules/react-syntax-highlighter/dist/esm/languages/prism/jsx.js 10085var import_jsx, jsx_default, init_jsx = __esm({ 10086 "../../node_modules/react-syntax-highlighter/dist/esm/languages/prism/jsx.js"() { 10087 import_jsx = __toESM(require_jsx()), jsx_default = import_jsx.default; 10088 } 10089}); 10090
vendor: 12,266 bytes, lines 10091-10424
10091// ../../node_modules/refractor/lang/markdown.js 10092var require_markdown = __commonJS({ 10093 "../../node_modules/refractor/lang/markdown.js"(exports, module2) { 10094 "use strict"; 10095 module2.exports = markdown2; 10096 markdown2.displayName = "markdown"; 10097 markdown2.aliases = ["md"]; 10098 function markdown2(Prism) { 10099 (function(Prism2) { 10100 var inner = /(?:\\.|[^\\\n\r]|(?:\n|\r\n?)(?![\r\n]))/.source; 10101 function createInline(pattern) { 10102 return pattern = pattern.replace(/<inner>/g, function() { 10103 return inner; 10104 }), RegExp(/((?:^|[^\\])(?:\\{2})*)/.source + "(?:" + pattern + ")"); 10105 } 10106 var tableCell = /(?:\\.|``(?:[^`\r\n]|`(?!`))+``|`[^`\r\n]+`|[^\\|\r\n`])+/.source, tableRow = /\|?__(?:\|__)+\|?(?:(?:\n|\r\n?)|(?![\s\S]))/.source.replace( 10107 /__/g, 10108 function() { 10109 return tableCell; 10110 } 10111 ), tableLine = /\|?[ \t]*:?-{3,}:?[ \t]*(?:\|[ \t]*:?-{3,}:?[ \t]*)+\|?(?:\n|\r\n?)/.source; 10112 Prism2.languages.markdown = Prism2.languages.extend("markup", {}), Prism2.languages.insertBefore("markdown", "prolog", { 10113 "front-matter-block": { 10114 pattern: /(^(?:\s*[\r\n])?)---(?!.)[\s\S]*?[\r\n]---(?!.)/, 10115 lookbehind: !0, 10116 greedy: !0, 10117 inside: { 10118 punctuation: /^---|---$/, 10119 "front-matter": { 10120 pattern: /\S+(?:\s+\S+)*/, 10121 alias: ["yaml", "language-yaml"], 10122 inside: Prism2.languages.yaml 10123 } 10124 } 10125 }, 10126 blockquote: { 10127 // > ... 10128 pattern: /^>(?:[\t ]*>)*/m, 10129 alias: "punctuation" 10130 }, 10131 table: { 10132 pattern: RegExp( 10133 "^" + tableRow + tableLine + "(?:" + tableRow + ")*", 10134 "m" 10135 ), 10136 inside: { 10137 "table-data-rows": { 10138 pattern: RegExp( 10139 "^(" + tableRow + tableLine + ")(?:" + tableRow + ")*$" 10140 ), 10141 lookbehind: !0, 10142 inside: { 10143 "table-data": { 10144 pattern: RegExp(tableCell), 10145 inside: Prism2.languages.markdown 10146 }, 10147 punctuation: /\|/ 10148 } 10149 }, 10150 "table-line": { 10151 pattern: RegExp("^(" + tableRow + ")" + tableLine + "$"), 10152 lookbehind: !0, 10153 inside: { 10154 punctuation: /\||:?-{3,}:?/ 10155 } 10156 }, 10157 "table-header-row": { 10158 pattern: RegExp("^" + tableRow + "$"), 10159 inside: { 10160 "table-header": { 10161 pattern: RegExp(tableCell), 10162 alias: "important", 10163 inside: Prism2.languages.markdown 10164 }, 10165 punctuation: /\|/ 10166 } 10167 } 10168 } 10169 }, 10170 code: [ 10171 { 10172 // Prefixed by 4 spaces or 1 tab and preceded by an empty line 10173 pattern: /((?:^|\n)[ \t]*\n|(?:^|\r\n?)[ \t]*\r\n?)(?: {4}|\t).+(?:(?:\n|\r\n?)(?: {4}|\t).+)*/, 10174 lookbehind: !0, 10175 alias: "keyword" 10176 }, 10177 { 10178 // ```optional language 10179 // code block 10180 // ``` 10181 pattern: /^```[\s\S]*?^```$/m, 10182 greedy: !0, 10183 inside: { 10184 "code-block": { 10185 pattern: /^(```.*(?:\n|\r\n?))[\s\S]+?(?=(?:\n|\r\n?)^```$)/m, 10186 lookbehind: !0 10187 }, 10188 "code-language": { 10189 pattern: /^(```).+/, 10190 lookbehind: !0 10191 }, 10192 punctuation: /```/ 10193 } 10194 } 10195 ], 10196 title: [ 10197 { 10198 // title 1 10199 // ======= 10200 // title 2 10201 // ------- 10202 pattern: /\S.*(?:\n|\r\n?)(?:==+|--+)(?=[ \t]*$)/m, 10203 alias: "important", 10204 inside: { 10205 punctuation: /==+$|--+$/ 10206 } 10207 }, 10208 { 10209 // # title 1 10210 // ###### title 6 10211 pattern: /(^\s*)#.+/m, 10212 lookbehind: !0, 10213 alias: "important", 10214 inside: { 10215 punctuation: /^#+|#+$/ 10216 } 10217 } 10218 ], 10219 hr: { 10220 // *** 10221 // --- 10222 // * * * 10223 // ----------- 10224 pattern: /(^\s*)([*-])(?:[\t ]*\2){2,}(?=\s*$)/m, 10225 lookbehind: !0, 10226 alias: "punctuation" 10227 }, 10228 list: { 10229 // * item 10230 // + item 10231 // - item 10232 // 1. item 10233 pattern: /(^\s*)(?:[*+-]|\d+\.)(?=[\t ].)/m, 10234 lookbehind: !0, 10235 alias: "punctuation" 10236 }, 10237 "url-reference": { 10238 // [id]: http://example.com "Optional title" 10239 // [id]: http://example.com 'Optional title' 10240 // [id]: http://example.com (Optional title) 10241 // [id]: <http://example.com> "Optional title" 10242 pattern: /!?\[[^\]]+\]:[\t ]+(?:\S+|<(?:\\.|[^>\\])+>)(?:[\t ]+(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\)))?/, 10243 inside: { 10244 variable: { 10245 pattern: /^(!?\[)[^\]]+/, 10246 lookbehind: !0 10247 }, 10248 string: /(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\))$/, 10249 punctuation: /^[\[\]!:]|[<>]/ 10250 }, 10251 alias: "url" 10252 }, 10253 bold: { 10254 // **strong** 10255 // __strong__ 10256 // allow one nested instance of italic text using the same delimiter 10257 pattern: createInline( 10258 /\b__(?:(?!_)<inner>|_(?:(?!_)<inner>)+_)+__\b|\*\*(?:(?!\*)<inner>|\*(?:(?!\*)<inner>)+\*)+\*\*/.source 10259 ), 10260 lookbehind: !0, 10261 greedy: !0, 10262 inside: { 10263 content: { 10264 pattern: /(^..)[\s\S]+(?=..$)/, 10265 lookbehind: !0, 10266 inside: {} 10267 // see below 10268 }, 10269 punctuation: /\*\*|__/ 10270 } 10271 }, 10272 italic: { 10273 // *em* 10274 // _em_ 10275 // allow one nested instance of bold text using the same delimiter 10276 pattern: createInline( 10277 /\b_(?:(?!_)<inner>|__(?:(?!_)<inner>)+__)+_\b|\*(?:(?!\*)<inner>|\*\*(?:(?!\*)<inner>)+\*\*)+\*/.source 10278 ), 10279 lookbehind: !0, 10280 greedy: !0, 10281 inside: { 10282 content: { 10283 pattern: /(^.)[\s\S]+(?=.$)/, 10284 lookbehind: !0, 10285 inside: {} 10286 // see below 10287 }, 10288 punctuation: /[*_]/ 10289 } 10290 }, 10291 strike: { 10292 // ~~strike through~~ 10293 // ~strike~ 10294 // eslint-disable-next-line regexp/strict 10295 pattern: createInline(/(~~?)(?:(?!~)<inner>)+\2/.source), 10296 lookbehind: !0, 10297 greedy: !0, 10298 inside: { 10299 content: { 10300 pattern: /(^~~?)[\s\S]+(?=\1$)/, 10301 lookbehind: !0, 10302 inside: {} 10303 // see below 10304 }, 10305 punctuation: /~~?/ 10306 } 10307 }, 10308 "code-snippet": { 10309 // `code` 10310 // ``code`` 10311 pattern: /(^|[^\\`])(?:``[^`\r\n]+(?:`[^`\r\n]+)*``(?!`)|`[^`\r\n]+`(?!`))/, 10312 lookbehind: !0, 10313 greedy: !0, 10314 alias: ["code", "keyword"] 10315 }, 10316 url: { 10317 // [example](http://example.com "Optional title") 10318 // [example][id] 10319 // [example] [id] 10320 pattern: createInline( 10321 /!?\[(?:(?!\])<inner>)+\](?:\([^\s)]+(?:[\t ]+"(?:\\.|[^"\\])*")?\)|[ \t]?\[(?:(?!\])<inner>)+\])/.source 10322 ), 10323 lookbehind: !0, 10324 greedy: !0, 10325 inside: { 10326 operator: /^!/, 10327 content: { 10328 pattern: /(^\[)[^\]]+(?=\])/, 10329 lookbehind: !0, 10330 inside: {} 10331 // see below 10332 }, 10333 variable: { 10334 pattern: /(^\][ \t]?\[)[^\]]+(?=\]$)/, 10335 lookbehind: !0 10336 }, 10337 url: { 10338 pattern: /(^\]\()[^\s)]+/, 10339 lookbehind: !0 10340 }, 10341 string: { 10342 pattern: /(^[ \t]+)"(?:\\.|[^"\\])*"(?=\)$)/, 10343 lookbehind: !0 10344 } 10345 } 10346 } 10347 }), ["url", "bold", "italic", "strike"].forEach(function(token2) { 10348 ["url", "bold", "italic", "strike", "code-snippet"].forEach(function(inside) { 10349 token2 !== inside && (Prism2.languages.markdown[token2].inside.content.inside[inside] = Prism2.languages.markdown[inside]); 10350 }); 10351 }), Prism2.hooks.add("after-tokenize", function(env) { 10352 if (env.language !== "markdown" && env.language !== "md") 10353 return; 10354 function walkTokens(tokens2) { 10355 if (!(!tokens2 || typeof tokens2 == "string")) 10356 for (var i = 0, l = tokens2.length; i < l; i++) { 10357 var token2 = tokens2[i]; 10358 if (token2.type !== "code") { 10359 walkTokens(token2.content); 10360 continue; 10361 } 10362 var codeLang = token2.content[1], codeBlock = token2.content[3]; 10363 if (codeLang && codeBlock && codeLang.type === "code-language" && codeBlock.type === "code-block" && typeof codeLang.content == "string") { 10364 var lang = codeLang.content.replace(/\b#/g, "sharp").replace(/\b\+\+/g, "pp"); 10365 lang = (/[a-z][\w-]*/i.exec(lang) || [""])[0].toLowerCase(); 10366 var alias = "language-" + lang; 10367 codeBlock.alias ? typeof codeBlock.alias == "string" ? codeBlock.alias = [codeBlock.alias, alias] : codeBlock.alias.push(alias) : codeBlock.alias = [alias]; 10368 } 10369 } 10370 } 10371 walkTokens(env.tokens); 10372 }), Prism2.hooks.add("wrap", function(env) { 10373 if (env.type === "code-block") { 10374 for (var codeLang = "", i = 0, l = env.classes.length; i < l; i++) { 10375 var cls = env.classes[i], match3 = /language-(.+)/.exec(cls); 10376 if (match3) { 10377 codeLang = match3[1]; 10378 break; 10379 } 10380 } 10381 var grammar = Prism2.languages[codeLang]; 10382 if (grammar) 10383 env.content = Prism2.highlight( 10384 textContent(env.content.value), 10385 grammar, 10386 codeLang 10387 ); 10388 else if (codeLang && codeLang !== "none" && Prism2.plugins.autoloader) { 10389 var id = "md-" + (/* @__PURE__ */ new Date()).valueOf() + "-" + Math.floor(Math.random() * 1e16); 10390 env.attributes.id = id, Prism2.plugins.autoloader.loadLanguages(codeLang, function() { 10391 var ele = document.getElementById(id); 10392 ele && (ele.innerHTML = Prism2.highlight( 10393 ele.textContent, 10394 Prism2.languages[codeLang], 10395 codeLang 10396 )); 10397 }); 10398 } 10399 } 10400 }); 10401 var tagPattern = RegExp(Prism2.languages.markup.tag.pattern.source, "gi"), KNOWN_ENTITY_NAMES = { 10402 amp: "&", 10403 lt: "<", 10404 gt: ">", 10405 quot: '"' 10406 }, fromCodePoint3 = String.fromCodePoint || String.fromCharCode; 10407 function textContent(html) { 10408 var text = html.replace(tagPattern, ""); 10409 return text = text.replace(/&(\w{1,8}|#x?[\da-f]{1,8});/gi, function(m3, code) { 10410 if (code = code.toLowerCase(), code[0] === "#") { 10411 var value; 10412 return code[1] === "x" ? value = parseInt(code.slice(2), 16) : value = Number(code.slice(1)), fromCodePoint3(value); 10413 } else { 10414 var known = KNOWN_ENTITY_NAMES[code]; 10415 return known || m3; 10416 } 10417 }), text; 10418 } 10419 Prism2.languages.md = Prism2.languages.markdown; 10420 })(Prism); 10421 } 10422 } 10423}); 10424
vendor: 340 bytes, lines 10425-10431
10425// ../../node_modules/react-syntax-highlighter/dist/esm/languages/prism/markdown.js 10426var import_markdown, markdown_default, init_markdown = __esm({ 10427 "../../node_modules/react-syntax-highlighter/dist/esm/languages/prism/markdown.js"() { 10428 import_markdown = __toESM(require_markdown()), markdown_default = import_markdown.default; 10429 } 10430}); 10431
vendor: 6,369 bytes, lines 10432-10607
10432// ../../node_modules/refractor/lang/markup.js 10433var require_markup = __commonJS({ 10434 "../../node_modules/refractor/lang/markup.js"(exports, module2) { 10435 "use strict"; 10436 module2.exports = markup2; 10437 markup2.displayName = "markup"; 10438 markup2.aliases = ["html", "mathml", "svg", "xml", "ssml", "atom", "rss"]; 10439 function markup2(Prism) { 10440 Prism.languages.markup = { 10441 comment: { 10442 pattern: /<!--(?:(?!<!--)[\s\S])*?-->/, 10443 greedy: !0 10444 }, 10445 prolog: { 10446 pattern: /<\?[\s\S]+?\?>/, 10447 greedy: !0 10448 }, 10449 doctype: { 10450 // https://www.w3.org/TR/xml/#NT-doctypedecl 10451 pattern: /<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i, 10452 greedy: !0, 10453 inside: { 10454 "internal-subset": { 10455 pattern: /(^[^\[]*\[)[\s\S]+(?=\]>$)/, 10456 lookbehind: !0, 10457 greedy: !0, 10458 inside: null 10459 // see below 10460 }, 10461 string: { 10462 pattern: /"[^"]*"|'[^']*'/, 10463 greedy: !0 10464 }, 10465 punctuation: /^<!|>$|[[\]]/, 10466 "doctype-tag": /^DOCTYPE/i, 10467 name: /[^\s<>'"]+/ 10468 } 10469 }, 10470 cdata: { 10471 pattern: /<!\[CDATA\[[\s\S]*?\]\]>/i, 10472 greedy: !0 10473 }, 10474 tag: { 10475 pattern: /<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/, 10476 greedy: !0, 10477 inside: { 10478 tag: { 10479 pattern: /^<\/?[^\s>\/]+/, 10480 inside: { 10481 punctuation: /^<\/?/, 10482 namespace: /^[^\s>\/:]+:/ 10483 } 10484 }, 10485 "special-attr": [], 10486 "attr-value": { 10487 pattern: /=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/, 10488 inside: { 10489 punctuation: [ 10490 { 10491 pattern: /^=/, 10492 alias: "attr-equals" 10493 }, 10494 /"|'/ 10495 ] 10496 } 10497 }, 10498 punctuation: /\/?>/, 10499 "attr-name": { 10500 pattern: /[^\s>\/]+/, 10501 inside: { 10502 namespace: /^[^\s>\/:]+:/ 10503 } 10504 } 10505 } 10506 }, 10507 entity: [ 10508 { 10509 pattern: /&[\da-z]{1,8};/i, 10510 alias: "named-entity" 10511 }, 10512 /&#x?[\da-f]{1,8};/i 10513 ] 10514 }, 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) { 10515 env.type === "entity" && (env.attributes.title = env.content.value.replace(/&/, "&")); 10516 }), Object.defineProperty(Prism.languages.markup.tag, "addInlined", { 10517 /** 10518 * Adds an inlined language to markup. 10519 * 10520 * An example of an inlined language is CSS with `<style>` tags. 10521 * 10522 * @param {string} tagName The name of the tag that contains the inlined language. This name will be treated as 10523 * case insensitive. 10524 * @param {string} lang The language key. 10525 * @example 10526 * addInlined('style', 'css'); 10527 */ 10528 value: function(tagName, lang) { 10529 var includedCdataInside = {}; 10530 includedCdataInside["language-" + lang] = { 10531 pattern: /(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i, 10532 lookbehind: !0, 10533 inside: Prism.languages[lang] 10534 }, includedCdataInside.cdata = /^<!\[CDATA\[|\]\]>$/i; 10535 var inside = { 10536 "included-cdata": { 10537 pattern: /<!\[CDATA\[[\s\S]*?\]\]>/i, 10538 inside: includedCdataInside 10539 } 10540 }; 10541 inside["language-" + lang] = { 10542 pattern: /[\s\S]+/, 10543 inside: Prism.languages[lang] 10544 }; 10545 var def = {}; 10546 def[tagName] = { 10547 pattern: RegExp( 10548 /(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace( 10549 /__/g, 10550 function() { 10551 return tagName; 10552 } 10553 ), 10554 "i" 10555 ), 10556 lookbehind: !0, 10557 greedy: !0, 10558 inside 10559 }, Prism.languages.insertBefore("markup", "cdata", def); 10560 } 10561 }), Object.defineProperty(Prism.languages.markup.tag, "addAttribute", { 10562 /** 10563 * Adds an pattern to highlight languages embedded in HTML attributes. 10564 * 10565 * An example of an inlined language is CSS with `style` attributes. 10566 * 10567 * @param {string} attrName The name of the tag that contains the inlined language. This name will be treated as 10568 * case insensitive. 10569 * @param {string} lang The language key. 10570 * @example 10571 * addAttribute('style', 'css'); 10572 */ 10573 value: function(attrName, lang) { 10574 Prism.languages.markup.tag.inside["special-attr"].push({ 10575 pattern: RegExp( 10576 /(^|["'\s])/.source + "(?:" + attrName + ")" + /\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source, 10577 "i" 10578 ), 10579 lookbehind: !0, 10580 inside: { 10581 "attr-name": /^[^\s=]+/, 10582 "attr-value": { 10583 pattern: /=[\s\S]+/, 10584 inside: { 10585 value: { 10586 pattern: /(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/, 10587 lookbehind: !0, 10588 alias: [lang, "language-" + lang], 10589 inside: Prism.languages[lang] 10590 }, 10591 punctuation: [ 10592 { 10593 pattern: /^=/, 10594 alias: "attr-equals" 10595 }, 10596 /"|'/ 10597 ] 10598 } 10599 } 10600 } 10601 }); 10602 } 10603 }), 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; 10604 } 10605 } 10606}); 10607
vendor: 322 bytes, lines 10608-10614
10608// ../../node_modules/react-syntax-highlighter/dist/esm/languages/prism/markup.js 10609var import_markup, markup_default, init_markup = __esm({ 10610 "../../node_modules/react-syntax-highlighter/dist/esm/languages/prism/markup.js"() { 10611 import_markup = __toESM(require_markup()), markup_default = import_markup.default; 10612 } 10613}); 10614
vendor: 2,501 bytes, lines 10615-10671
10615// ../../node_modules/refractor/lang/typescript.js 10616var require_typescript = __commonJS({ 10617 "../../node_modules/refractor/lang/typescript.js"(exports, module2) { 10618 "use strict"; 10619 module2.exports = typescript2; 10620 typescript2.displayName = "typescript"; 10621 typescript2.aliases = ["ts"]; 10622 function typescript2(Prism) { 10623 (function(Prism2) { 10624 Prism2.languages.typescript = Prism2.languages.extend("javascript", { 10625 "class-name": { 10626 pattern: /(\b(?:class|extends|implements|instanceof|interface|new|type)\s+)(?!keyof\b)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?:\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>)?/, 10627 lookbehind: !0, 10628 greedy: !0, 10629 inside: null 10630 // see below 10631 }, 10632 builtin: /\b(?:Array|Function|Promise|any|boolean|console|never|number|string|symbol|unknown)\b/ 10633 }), Prism2.languages.typescript.keyword.push( 10634 /\b(?:abstract|declare|is|keyof|readonly|require)\b/, 10635 // keywords that have to be followed by an identifier 10636 /\b(?:asserts|infer|interface|module|namespace|type)\b(?=\s*(?:[{_$a-zA-Z\xA0-\uFFFF]|$))/, 10637 // This is for `import type *, {}` 10638 /\btype\b(?=\s*(?:[\{*]|$))/ 10639 ), delete Prism2.languages.typescript.parameter, delete Prism2.languages.typescript["literal-property"]; 10640 var typeInside = Prism2.languages.extend("typescript", {}); 10641 delete typeInside["class-name"], Prism2.languages.typescript["class-name"].inside = typeInside, Prism2.languages.insertBefore("typescript", "function", { 10642 decorator: { 10643 pattern: /@[$\w\xA0-\uFFFF]+/, 10644 inside: { 10645 at: { 10646 pattern: /^@/, 10647 alias: "operator" 10648 }, 10649 function: /^[\s\S]+/ 10650 } 10651 }, 10652 "generic-function": { 10653 // e.g. foo<T extends "bar" | "baz">( ... 10654 pattern: /#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>(?=\s*\()/, 10655 greedy: !0, 10656 inside: { 10657 function: /^#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/, 10658 generic: { 10659 pattern: /<[\s\S]+/, 10660 // everything after the first < 10661 alias: "class-name", 10662 inside: typeInside 10663 } 10664 } 10665 } 10666 }), Prism2.languages.ts = Prism2.languages.typescript; 10667 })(Prism); 10668 } 10669 } 10670}); 10671
vendor: 919 bytes, lines 10672-10693
10672// ../../node_modules/refractor/lang/tsx.js 10673var require_tsx = __commonJS({ 10674 "../../node_modules/refractor/lang/tsx.js"(exports, module2) { 10675 "use strict"; 10676 var refractorJsx = require_jsx(), refractorTypescript = require_typescript(); 10677 module2.exports = tsx2; 10678 tsx2.displayName = "tsx"; 10679 tsx2.aliases = []; 10680 function tsx2(Prism) { 10681 Prism.register(refractorJsx), Prism.register(refractorTypescript), (function(Prism2) { 10682 var typescript2 = Prism2.util.clone(Prism2.languages.typescript); 10683 Prism2.languages.tsx = Prism2.languages.extend("jsx", typescript2), delete Prism2.languages.tsx.parameter, delete Prism2.languages.tsx["literal-property"]; 10684 var tag = Prism2.languages.tsx.tag; 10685 tag.pattern = RegExp( 10686 /(^|[^\w$]|(?=<\/))/.source + "(?:" + tag.pattern.source + ")", 10687 tag.pattern.flags 10688 ), tag.lookbehind = !0; 10689 })(Prism); 10690 } 10691 } 10692}); 10693
vendor: 295 bytes, lines 10694-10700
10694// ../../node_modules/react-syntax-highlighter/dist/esm/languages/prism/tsx.js 10695var import_tsx, tsx_default, init_tsx = __esm({ 10696 "../../node_modules/react-syntax-highlighter/dist/esm/languages/prism/tsx.js"() { 10697 import_tsx = __toESM(require_tsx()), tsx_default = import_tsx.default; 10698 } 10699}); 10700
vendor: 358 bytes, lines 10701-10707
10701// ../../node_modules/react-syntax-highlighter/dist/esm/languages/prism/typescript.js 10702var import_typescript, typescript_default, init_typescript = __esm({ 10703 "../../node_modules/react-syntax-highlighter/dist/esm/languages/prism/typescript.js"() { 10704 import_typescript = __toESM(require_typescript()), typescript_default = import_typescript.default; 10705 } 10706}); 10707
vendor: 3,625 bytes, lines 10708-10800
10708// ../../node_modules/refractor/lang/yaml.js 10709var require_yaml = __commonJS({ 10710 "../../node_modules/refractor/lang/yaml.js"(exports, module2) { 10711 "use strict"; 10712 module2.exports = yaml2; 10713 yaml2.displayName = "yaml"; 10714 yaml2.aliases = ["yml"]; 10715 function yaml2(Prism) { 10716 (function(Prism2) { 10717 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( 10718 /<PLAIN>/g, 10719 function() { 10720 return /[^\s\x00-\x08\x0e-\x1f,[\]{}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]/.source; 10721 } 10722 ), string = /"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'/.source; 10723 function createValuePattern(value, flags) { 10724 flags = (flags || "").replace(/m/g, "") + "m"; 10725 var pattern = /([:\-,[{]\s*(?:\s<<prop>>[ \t]+)?)(?:<<value>>)(?=[ \t]*(?:$|,|\]|\}|(?:[\r\n]\s*)?#))/.source.replace(/<<prop>>/g, function() { 10726 return properties; 10727 }).replace(/<<value>>/g, function() { 10728 return value; 10729 }); 10730 return RegExp(pattern, flags); 10731 } 10732 Prism2.languages.yaml = { 10733 scalar: { 10734 pattern: RegExp( 10735 /([\-:]\s*(?:\s<<prop>>[ \t]+)?[|>])[ \t]*(?:((?:\r?\n|\r)[ \t]+)\S[^\r\n]*(?:\2[^\r\n]+)*)/.source.replace( 10736 /<<prop>>/g, 10737 function() { 10738 return properties; 10739 } 10740 ) 10741 ), 10742 lookbehind: !0, 10743 alias: "string" 10744 }, 10745 comment: /#.*/, 10746 key: { 10747 pattern: RegExp( 10748 /((?:^|[:\-,[{\r\n?])[ \t]*(?:<<prop>>[ \t]+)?)<<key>>(?=\s*:\s)/.source.replace(/<<prop>>/g, function() { 10749 return properties; 10750 }).replace(/<<key>>/g, function() { 10751 return "(?:" + plainKey + "|" + string + ")"; 10752 }) 10753 ), 10754 lookbehind: !0, 10755 greedy: !0, 10756 alias: "atrule" 10757 }, 10758 directive: { 10759 pattern: /(^[ \t]*)%.+/m, 10760 lookbehind: !0, 10761 alias: "important" 10762 }, 10763 datetime: { 10764 pattern: createValuePattern( 10765 /\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 10766 ), 10767 lookbehind: !0, 10768 alias: "number" 10769 }, 10770 boolean: { 10771 pattern: createValuePattern(/false|true/.source, "i"), 10772 lookbehind: !0, 10773 alias: "important" 10774 }, 10775 null: { 10776 pattern: createValuePattern(/null|~/.source, "i"), 10777 lookbehind: !0, 10778 alias: "important" 10779 }, 10780 string: { 10781 pattern: createValuePattern(string), 10782 lookbehind: !0, 10783 greedy: !0 10784 }, 10785 number: { 10786 pattern: createValuePattern( 10787 /[+-]?(?:0x[\da-f]+|0o[0-7]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|\.inf|\.nan)/.source, 10788 "i" 10789 ), 10790 lookbehind: !0 10791 }, 10792 tag, 10793 important: anchorOrAlias, 10794 punctuation: /---|[:[\]{}\-,|>?]|\.\.\./ 10795 }, Prism2.languages.yml = Prism2.languages.yaml; 10796 })(Prism); 10797 } 10798 } 10799}); 10800
vendor: 304 bytes, lines 10801-10807
10801// ../../node_modules/react-syntax-highlighter/dist/esm/languages/prism/yaml.js 10802var import_yaml, yaml_default, init_yaml = __esm({ 10803 "../../node_modules/react-syntax-highlighter/dist/esm/languages/prism/yaml.js"() { 10804 import_yaml = __toESM(require_yaml()), yaml_default = import_yaml.default; 10805 } 10806}); 10807
vendor: 447 bytes, lines 10808-10822
10808// ../../node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js 10809function _objectWithoutPropertiesLoose(r2, e) { 10810 if (r2 == null) return {}; 10811 var t = {}; 10812 for (var n in r2) if ({}.hasOwnProperty.call(r2, n)) { 10813 if (e.indexOf(n) !== -1) continue; 10814 t[n] = r2[n]; 10815 } 10816 return t; 10817} 10818var init_objectWithoutPropertiesLoose = __esm({ 10819 "../../node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js"() { 10820 } 10821}); 10822
vendor: 600 bytes, lines 10823-10838
10823// ../../node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js 10824function _objectWithoutProperties(e, t) { 10825 if (e == null) return {}; 10826 var o, r2, i = _objectWithoutPropertiesLoose(e, t); 10827 if (Object.getOwnPropertySymbols) { 10828 var n = Object.getOwnPropertySymbols(e); 10829 for (r2 = 0; r2 < n.length; r2++) o = n[r2], t.indexOf(o) === -1 && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); 10830 } 10831 return i; 10832} 10833var init_objectWithoutProperties = __esm({ 10834 "../../node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js"() { 10835 init_objectWithoutPropertiesLoose(); 10836 } 10837}); 10838
vendor: 353 bytes, lines 10839-10849
10839// ../../node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js 10840function _arrayLikeToArray(r2, a3) { 10841 (a3 == null || a3 > r2.length) && (a3 = r2.length); 10842 for (var e = 0, n = Array(a3); e < a3; e++) n[e] = r2[e]; 10843 return n; 10844} 10845var init_arrayLikeToArray = __esm({ 10846 "../../node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js"() { 10847 } 10848}); 10849
vendor: 311 bytes, lines 10850-10859
10850// ../../node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.js 10851function _arrayWithoutHoles(r2) { 10852 if (Array.isArray(r2)) return _arrayLikeToArray(r2); 10853} 10854var init_arrayWithoutHoles = __esm({ 10855 "../../node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.js"() { 10856 init_arrayLikeToArray(); 10857 } 10858}); 10859
vendor: 328 bytes, lines 10860-10868
10860// ../../node_modules/@babel/runtime/helpers/esm/iterableToArray.js 10861function _iterableToArray(r2) { 10862 if (typeof Symbol < "u" && r2[Symbol.iterator] != null || r2["@@iterator"] != null) return Array.from(r2); 10863} 10864var init_iterableToArray = __esm({ 10865 "../../node_modules/@babel/runtime/helpers/esm/iterableToArray.js"() { 10866 } 10867}); 10868
vendor: 654 bytes, lines 10869-10882
10869// ../../node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js 10870function _unsupportedIterableToArray(r2, a3) { 10871 if (r2) { 10872 if (typeof r2 == "string") return _arrayLikeToArray(r2, a3); 10873 var t = {}.toString.call(r2).slice(8, -1); 10874 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; 10875 } 10876} 10877var init_unsupportedIterableToArray = __esm({ 10878 "../../node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js"() { 10879 init_arrayLikeToArray(); 10880 } 10881}); 10882
vendor: 383 bytes, lines 10883-10892
10883// ../../node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js 10884function _nonIterableSpread() { 10885 throw new TypeError(`Invalid attempt to spread non-iterable instance. 10886In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`); 10887} 10888var init_nonIterableSpread = __esm({ 10889 "../../node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js"() { 10890 } 10891}); 10892
vendor: 470 bytes, lines 10893-10905
10893// ../../node_modules/@babel/runtime/helpers/esm/toConsumableArray.js 10894function _toConsumableArray(r2) { 10895 return _arrayWithoutHoles(r2) || _iterableToArray(r2) || _unsupportedIterableToArray(r2) || _nonIterableSpread(); 10896} 10897var init_toConsumableArray = __esm({ 10898 "../../node_modules/@babel/runtime/helpers/esm/toConsumableArray.js"() { 10899 init_arrayWithoutHoles(); 10900 init_iterableToArray(); 10901 init_unsupportedIterableToArray(); 10902 init_nonIterableSpread(); 10903 } 10904}); 10905
vendor: 426 bytes, lines 10906-10915
10906// ../../node_modules/react-syntax-highlighter/dist/esm/checkForListedLanguage.js 10907var checkForListedLanguage_default, init_checkForListedLanguage = __esm({ 10908 "../../node_modules/react-syntax-highlighter/dist/esm/checkForListedLanguage.js"() { 10909 checkForListedLanguage_default = (function(astGenerator, language) { 10910 var langs = astGenerator.listLanguages(); 10911 return langs.indexOf(language) !== -1; 10912 }); 10913 } 10914}); 10915
vendor: 14,543 bytes, lines 10916-11198
10916// ../../node_modules/react-syntax-highlighter/dist/esm/highlight.js 10917function ownKeys2(e, r2) { 10918 var t = Object.keys(e); 10919 if (Object.getOwnPropertySymbols) { 10920 var o = Object.getOwnPropertySymbols(e); 10921 r2 && (o = o.filter(function(r3) { 10922 return Object.getOwnPropertyDescriptor(e, r3).enumerable; 10923 })), t.push.apply(t, o); 10924 } 10925 return t; 10926} 10927function _objectSpread2(e) { 10928 for (var r2 = 1; r2 < arguments.length; r2++) { 10929 var t = arguments[r2] != null ? arguments[r2] : {}; 10930 r2 % 2 ? ownKeys2(Object(t), !0).forEach(function(r3) { 10931 _defineProperty(e, r3, t[r3]); 10932 }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys2(Object(t)).forEach(function(r3) { 10933 Object.defineProperty(e, r3, Object.getOwnPropertyDescriptor(t, r3)); 10934 }); 10935 } 10936 return e; 10937} 10938function getNewLines(str2) { 10939 return str2.match(newLineRegex); 10940} 10941function getAllLineNumbers(_ref) { 10942 var lines = _ref.lines, startingLineNumber = _ref.startingLineNumber, style = _ref.style; 10943 return lines.map(function(_, i) { 10944 var number = i + startingLineNumber; 10945 return import_react9.default.createElement("span", { 10946 key: "line-".concat(i), 10947 className: "react-syntax-highlighter-line-number", 10948 style: typeof style == "function" ? style(number) : style 10949 }, "".concat(number, ` 10950`)); 10951 }); 10952} 10953function AllLineNumbers(_ref2) { 10954 var codeString = _ref2.codeString, codeStyle = _ref2.codeStyle, _ref2$containerStyle = _ref2.containerStyle, containerStyle = _ref2$containerStyle === void 0 ? { 10955 float: "left", 10956 paddingRight: "10px" 10957 } : _ref2$containerStyle, _ref2$numberStyle = _ref2.numberStyle, numberStyle = _ref2$numberStyle === void 0 ? {} : _ref2$numberStyle, startingLineNumber = _ref2.startingLineNumber; 10958 return import_react9.default.createElement("code", { 10959 style: Object.assign({}, codeStyle, containerStyle) 10960 }, getAllLineNumbers({ 10961 lines: codeString.replace(/\n$/, "").split(` 10962`), 10963 style: numberStyle, 10964 startingLineNumber 10965 })); 10966} 10967function getEmWidthOfNumber(num) { 10968 return "".concat(num.toString().length, ".25em"); 10969} 10970function getInlineLineNumber(lineNumber, inlineLineNumberStyle) { 10971 return { 10972 type: "element", 10973 tagName: "span", 10974 properties: { 10975 key: "line-number--".concat(lineNumber), 10976 className: ["comment", "linenumber", "react-syntax-highlighter-line-number"], 10977 style: inlineLineNumberStyle 10978 }, 10979 children: [{ 10980 type: "text", 10981 value: lineNumber 10982 }] 10983 }; 10984} 10985function assembleLineNumberStyles(lineNumberStyle, lineNumber, largestLineNumber) { 10986 var defaultLineNumberStyle = { 10987 display: "inline-block", 10988 minWidth: getEmWidthOfNumber(largestLineNumber), 10989 paddingRight: "1em", 10990 textAlign: "right", 10991 userSelect: "none" 10992 }, customLineNumberStyle = typeof lineNumberStyle == "function" ? lineNumberStyle(lineNumber) : lineNumberStyle, assembledStyle = _objectSpread2(_objectSpread2({}, defaultLineNumberStyle), customLineNumberStyle); 10993 return assembledStyle; 10994} 10995function createLineElement(_ref3) { 10996 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) : {}; 10997 if (properties.className = properties.className ? [].concat(_toConsumableArray(properties.className.trim().split(/\s+/)), _toConsumableArray(className)) : className, lineNumber && showInlineLineNumbers) { 10998 var inlineLineNumberStyle = assembleLineNumberStyles(lineNumberStyle, lineNumber, largestLineNumber); 10999 children.unshift(getInlineLineNumber(lineNumber, inlineLineNumberStyle)); 11000 } 11001 return wrapLongLines & showLineNumbers && (properties.style = _objectSpread2({ 11002 display: "flex" 11003 }, properties.style)), { 11004 type: "element", 11005 tagName: "span", 11006 properties, 11007 children 11008 }; 11009} 11010function flattenCodeTree(tree) { 11011 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++) { 11012 var node2 = tree[i]; 11013 if (node2.type === "text") 11014 newTree.push(createLineElement({ 11015 children: [node2], 11016 className: _toConsumableArray(new Set(className)) 11017 })); 11018 else if (node2.children) { 11019 var classNames = className.concat(node2.properties.className); 11020 flattenCodeTree(node2.children, classNames).forEach(function(i2) { 11021 return newTree.push(i2); 11022 }); 11023 } 11024 } 11025 return newTree; 11026} 11027function processLines(codeTree, wrapLines, lineProps, showLineNumbers, showInlineLineNumbers, startingLineNumber, largestLineNumber, lineNumberStyle, wrapLongLines) { 11028 var _ref4, tree = flattenCodeTree(codeTree.value), newTree = [], lastLineBreakIndex = -1, index4 = 0; 11029 function createWrappedLine(children2, lineNumber2) { 11030 var className = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : []; 11031 return createLineElement({ 11032 children: children2, 11033 lineNumber: lineNumber2, 11034 lineNumberStyle, 11035 largestLineNumber, 11036 showInlineLineNumbers, 11037 lineProps, 11038 className, 11039 showLineNumbers, 11040 wrapLongLines, 11041 wrapLines 11042 }); 11043 } 11044 function createUnwrappedLine(children2, lineNumber2) { 11045 if (showLineNumbers && lineNumber2 && showInlineLineNumbers) { 11046 var inlineLineNumberStyle = assembleLineNumberStyles(lineNumberStyle, lineNumber2, largestLineNumber); 11047 children2.unshift(getInlineLineNumber(lineNumber2, inlineLineNumberStyle)); 11048 } 11049 return children2; 11050 } 11051 function createLine(children2, lineNumber2) { 11052 var className = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : []; 11053 return wrapLines || className.length > 0 ? createWrappedLine(children2, lineNumber2, className) : createUnwrappedLine(children2, lineNumber2); 11054 } 11055 for (var _loop = function() { 11056 var node2 = tree[index4], value = node2.children[0].value, newLines = getNewLines(value); 11057 if (newLines) { 11058 var splitValue = value.split(` 11059`); 11060 splitValue.forEach(function(text, i) { 11061 var lineNumber2 = showLineNumbers && newTree.length + startingLineNumber, newChild = { 11062 type: "text", 11063 value: "".concat(text, ` 11064`) 11065 }; 11066 if (i === 0) { 11067 var _children = tree.slice(lastLineBreakIndex + 1, index4).concat(createLineElement({ 11068 children: [newChild], 11069 className: node2.properties.className 11070 })), _line = createLine(_children, lineNumber2); 11071 newTree.push(_line); 11072 } else if (i === splitValue.length - 1) { 11073 var stringChild = tree[index4 + 1] && tree[index4 + 1].children && tree[index4 + 1].children[0], lastLineInPreviousSpan = { 11074 type: "text", 11075 value: "".concat(text) 11076 }; 11077 if (stringChild) { 11078 var newElem = createLineElement({ 11079 children: [lastLineInPreviousSpan], 11080 className: node2.properties.className 11081 }); 11082 tree.splice(index4 + 1, 0, newElem); 11083 } else { 11084 var _children2 = [lastLineInPreviousSpan], _line2 = createLine(_children2, lineNumber2, node2.properties.className); 11085 newTree.push(_line2); 11086 } 11087 } else { 11088 var _children3 = [newChild], _line3 = createLine(_children3, lineNumber2, node2.properties.className); 11089 newTree.push(_line3); 11090 } 11091 }), lastLineBreakIndex = index4; 11092 } 11093 index4++; 11094 }; index4 < tree.length; ) 11095 _loop(); 11096 if (lastLineBreakIndex !== tree.length - 1) { 11097 var children = tree.slice(lastLineBreakIndex + 1, tree.length); 11098 if (children && children.length) { 11099 var lineNumber = showLineNumbers && newTree.length + startingLineNumber, line2 = createLine(children, lineNumber); 11100 newTree.push(line2); 11101 } 11102 } 11103 return wrapLines ? newTree : (_ref4 = []).concat.apply(_ref4, newTree); 11104} 11105function defaultRenderer(_ref5) { 11106 var rows = _ref5.rows, stylesheet = _ref5.stylesheet, useInlineStyles = _ref5.useInlineStyles; 11107 return rows.map(function(node2, i) { 11108 return createElement4({ 11109 node: node2, 11110 stylesheet, 11111 useInlineStyles, 11112 key: "code-segment-".concat(i) 11113 }); 11114 }); 11115} 11116function isHighlightJs(astGenerator) { 11117 return astGenerator && typeof astGenerator.highlightAuto < "u"; 11118} 11119function getCodeTree(_ref6) { 11120 var astGenerator = _ref6.astGenerator, language = _ref6.language, code = _ref6.code, defaultCodeValue = _ref6.defaultCodeValue; 11121 if (isHighlightJs(astGenerator)) { 11122 var hasLanguage = checkForListedLanguage_default(astGenerator, language); 11123 return language === "text" ? { 11124 value: defaultCodeValue, 11125 language: "text" 11126 } : hasLanguage ? astGenerator.highlight(language, code) : astGenerator.highlightAuto(code); 11127 } 11128 try { 11129 return language && language !== "text" ? { 11130 value: astGenerator.highlight(code, language) 11131 } : { 11132 value: defaultCodeValue 11133 }; 11134 } catch { 11135 return { 11136 value: defaultCodeValue 11137 }; 11138 } 11139} 11140function highlight_default(defaultAstGenerator, defaultStyle) { 11141 return function(_ref7) { 11142 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 ? { 11143 className: language ? "language-".concat(language) : void 0, 11144 style: _objectSpread2(_objectSpread2({}, style['code[class*="language-"]']), style['code[class*="language-'.concat(language, '"]')]) 11145 } : _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); 11146 astGenerator = astGenerator || defaultAstGenerator; 11147 var allLineNumbers = showLineNumbers ? import_react9.default.createElement(AllLineNumbers, { 11148 containerStyle: lineNumberContainerStyle, 11149 codeStyle: codeTagProps.style || {}, 11150 numberStyle: lineNumberStyle, 11151 startingLineNumber, 11152 codeString: code 11153 }) : null, defaultPreStyle = style.hljs || style['pre[class*="language-"]'] || { 11154 backgroundColor: "#fff" 11155 }, generatorClassName = isHighlightJs(astGenerator) ? "hljs" : "prismjs", preProps = useInlineStyles ? Object.assign({}, rest, { 11156 style: Object.assign({}, defaultPreStyle, customStyle) 11157 }) : Object.assign({}, rest, { 11158 className: rest.className ? "".concat(generatorClassName, " ").concat(rest.className) : generatorClassName, 11159 style: Object.assign({}, customStyle) 11160 }); 11161 if (wrapLongLines ? codeTagProps.style = _objectSpread2({ 11162 whiteSpace: "pre-wrap" 11163 }, codeTagProps.style) : codeTagProps.style = _objectSpread2({ 11164 whiteSpace: "pre" 11165 }, codeTagProps.style), !astGenerator) 11166 return import_react9.default.createElement(PreTag, preProps, allLineNumbers, import_react9.default.createElement(CodeTag, codeTagProps, code)); 11167 (wrapLines === void 0 && renderer || wrapLongLines) && (wrapLines = !0), renderer = renderer || defaultRenderer; 11168 var defaultCodeValue = [{ 11169 type: "text", 11170 value: code 11171 }], codeTree = getCodeTree({ 11172 astGenerator, 11173 language, 11174 code, 11175 defaultCodeValue 11176 }); 11177 codeTree.language === null && (codeTree.value = defaultCodeValue); 11178 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); 11179 return import_react9.default.createElement(PreTag, preProps, import_react9.default.createElement(CodeTag, codeTagProps, !showInlineLineNumbers && allLineNumbers, renderer({ 11180 rows, 11181 stylesheet: style, 11182 useInlineStyles 11183 }))); 11184 }; 11185} 11186var import_react9, _excluded, newLineRegex, init_highlight = __esm({ 11187 "../../node_modules/react-syntax-highlighter/dist/esm/highlight.js"() { 11188 init_objectWithoutProperties(); 11189 init_toConsumableArray(); 11190 init_defineProperty(); 11191 import_react9 = __toESM(require_react()); 11192 init_create_element(); 11193 init_checkForListedLanguage(); 11194 _excluded = ["language", "children", "style", "customStyle", "codeTagProps", "useInlineStyles", "showLineNumbers", "showInlineLineNumbers", "startingLineNumber", "lineNumberContainerStyle", "lineNumberStyle", "wrapLines", "wrapLongLines", "lineProps", "renderer", "PreTag", "CodeTag", "code", "astGenerator"]; 11195 newLineRegex = /\n/g; 11196 } 11197}); 11198
vendor: 504 bytes, lines 11199-11214
11199// ../../node_modules/xtend/immutable.js 11200var require_immutable = __commonJS({ 11201 "../../node_modules/xtend/immutable.js"(exports, module2) { 11202 module2.exports = extend; 11203 var hasOwnProperty6 = Object.prototype.hasOwnProperty; 11204 function extend() { 11205 for (var target = {}, i = 0; i < arguments.length; i++) { 11206 var source = arguments[i]; 11207 for (var key in source) 11208 hasOwnProperty6.call(source, key) && (target[key] = source[key]); 11209 } 11210 return target; 11211 } 11212 } 11213}); 11214
vendor: 528 bytes, lines 11215-11229
11215// ../../node_modules/hastscript/node_modules/property-information/lib/util/schema.js 11216var require_schema = __commonJS({ 11217 "../../node_modules/hastscript/node_modules/property-information/lib/util/schema.js"(exports, module2) { 11218 "use strict"; 11219 module2.exports = Schema; 11220 var proto = Schema.prototype; 11221 proto.space = null; 11222 proto.normal = {}; 11223 proto.property = {}; 11224 function Schema(property, normal, space) { 11225 this.property = property, this.normal = normal, space && (this.space = space); 11226 } 11227 } 11228}); 11229
vendor: 739 bytes, lines 11230-11247
11230// ../../node_modules/hastscript/node_modules/property-information/lib/util/merge.js 11231var require_merge = __commonJS({ 11232 "../../node_modules/hastscript/node_modules/property-information/lib/util/merge.js"(exports, module2) { 11233 "use strict"; 11234 var xtend = require_immutable(), Schema = require_schema(); 11235 module2.exports = merge3; 11236 function merge3(definitions) { 11237 for (var length2 = definitions.length, property = [], normal = [], index4 = -1, info, space; ++index4 < length2; ) 11238 info = definitions[index4], property.push(info.property), normal.push(info.normal), space = info.space; 11239 return new Schema( 11240 xtend.apply(null, property), 11241 xtend.apply(null, normal), 11242 space 11243 ); 11244 } 11245 } 11246}); 11247
vendor: 352 bytes, lines 11248-11258
11248// ../../node_modules/hastscript/node_modules/property-information/normalize.js 11249var require_normalize = __commonJS({ 11250 "../../node_modules/hastscript/node_modules/property-information/normalize.js"(exports, module2) { 11251 "use strict"; 11252 module2.exports = normalize4; 11253 function normalize4(value) { 11254 return value.toLowerCase(); 11255 } 11256 } 11257}); 11258
vendor: 758 bytes, lines 11259-11282
11259// ../../node_modules/hastscript/node_modules/property-information/lib/util/info.js 11260var require_info = __commonJS({ 11261 "../../node_modules/hastscript/node_modules/property-information/lib/util/info.js"(exports, module2) { 11262 "use strict"; 11263 module2.exports = Info; 11264 var proto = Info.prototype; 11265 proto.space = null; 11266 proto.attribute = null; 11267 proto.property = null; 11268 proto.boolean = !1; 11269 proto.booleanish = !1; 11270 proto.overloadedBoolean = !1; 11271 proto.number = !1; 11272 proto.commaSeparated = !1; 11273 proto.spaceSeparated = !1; 11274 proto.commaOrSpaceSeparated = !1; 11275 proto.mustUseProperty = !1; 11276 proto.defined = !1; 11277 function Info(property, attribute) { 11278 this.property = property, this.attribute = attribute; 11279 } 11280 } 11281}); 11282
vendor: 616 bytes, lines 11283-11300
11283// ../../node_modules/hastscript/node_modules/property-information/lib/util/types.js 11284var require_types = __commonJS({ 11285 "../../node_modules/hastscript/node_modules/property-information/lib/util/types.js"(exports) { 11286 "use strict"; 11287 var powers = 0; 11288 exports.boolean = increment(); 11289 exports.booleanish = increment(); 11290 exports.overloadedBoolean = increment(); 11291 exports.number = increment(); 11292 exports.spaceSeparated = increment(); 11293 exports.commaSeparated = increment(); 11294 exports.commaOrSpaceSeparated = increment(); 11295 function increment() { 11296 return Math.pow(2, ++powers); 11297 } 11298 } 11299}); 11300
vendor: 1,033 bytes, lines 11301-11328
11301// ../../node_modules/hastscript/node_modules/property-information/lib/util/defined-info.js 11302var require_defined_info = __commonJS({ 11303 "../../node_modules/hastscript/node_modules/property-information/lib/util/defined-info.js"(exports, module2) { 11304 "use strict"; 11305 var Info = require_info(), types = require_types(); 11306 module2.exports = DefinedInfo; 11307 DefinedInfo.prototype = new Info(); 11308 DefinedInfo.prototype.defined = !0; 11309 var checks = [ 11310 "boolean", 11311 "booleanish", 11312 "overloadedBoolean", 11313 "number", 11314 "commaSeparated", 11315 "spaceSeparated", 11316 "commaOrSpaceSeparated" 11317 ], checksLength = checks.length; 11318 function DefinedInfo(property, attribute, mask, space) { 11319 var index4 = -1, check; 11320 for (mark(this, "space", space), Info.call(this, property, attribute); ++index4 < checksLength; ) 11321 check = checks[index4], mark(this, check, (mask & types[check]) === types[check]); 11322 } 11323 function mark(values, key, value) { 11324 value && (values[key] = value); 11325 } 11326 } 11327}); 11328
vendor: 1,049 bytes, lines 11329-11348
11329// ../../node_modules/hastscript/node_modules/property-information/lib/util/create.js 11330var require_create = __commonJS({ 11331 "../../node_modules/hastscript/node_modules/property-information/lib/util/create.js"(exports, module2) { 11332 "use strict"; 11333 var normalize4 = require_normalize(), Schema = require_schema(), DefinedInfo = require_defined_info(); 11334 module2.exports = create4; 11335 function create4(definition) { 11336 var space = definition.space, mustUseProperty = definition.mustUseProperty || [], attributes = definition.attributes || {}, props = definition.properties, transform = definition.transform, property = {}, normal = {}, prop, info; 11337 for (prop in props) 11338 info = new DefinedInfo( 11339 prop, 11340 transform(attributes, prop), 11341 props[prop], 11342 space 11343 ), mustUseProperty.indexOf(prop) !== -1 && (info.mustUseProperty = !0), property[prop] = info, normal[normalize4(prop)] = prop, normal[normalize4(info.attribute)] = prop; 11344 return new Schema(property, normal, space); 11345 } 11346 } 11347}); 11348
vendor: 679 bytes, lines 11349-11372
11349// ../../node_modules/hastscript/node_modules/property-information/lib/xlink.js 11350var require_xlink = __commonJS({ 11351 "../../node_modules/hastscript/node_modules/property-information/lib/xlink.js"(exports, module2) { 11352 "use strict"; 11353 var create4 = require_create(); 11354 module2.exports = create4({ 11355 space: "xlink", 11356 transform: xlinkTransform, 11357 properties: { 11358 xLinkActuate: null, 11359 xLinkArcRole: null, 11360 xLinkHref: null, 11361 xLinkRole: null, 11362 xLinkShow: null, 11363 xLinkTitle: null, 11364 xLinkType: null 11365 } 11366 }); 11367 function xlinkTransform(_, prop) { 11368 return "xlink:" + prop.slice(5).toLowerCase(); 11369 } 11370 } 11371}); 11372
vendor: 553 bytes, lines 11373-11392
11373// ../../node_modules/hastscript/node_modules/property-information/lib/xml.js 11374var require_xml = __commonJS({ 11375 "../../node_modules/hastscript/node_modules/property-information/lib/xml.js"(exports, module2) { 11376 "use strict"; 11377 var create4 = require_create(); 11378 module2.exports = create4({ 11379 space: "xml", 11380 transform: xmlTransform, 11381 properties: { 11382 xmlLang: null, 11383 xmlBase: null, 11384 xmlSpace: null 11385 } 11386 }); 11387 function xmlTransform(_, prop) { 11388 return "xml:" + prop.slice(3).toLowerCase(); 11389 } 11390 } 11391}); 11392
vendor: 495 bytes, lines 11393-11403
11393// ../../node_modules/hastscript/node_modules/property-information/lib/util/case-sensitive-transform.js 11394var require_case_sensitive_transform = __commonJS({ 11395 "../../node_modules/hastscript/node_modules/property-information/lib/util/case-sensitive-transform.js"(exports, module2) { 11396 "use strict"; 11397 module2.exports = caseSensitiveTransform; 11398 function caseSensitiveTransform(attributes, attribute) { 11399 return attribute in attributes ? attributes[attribute] : attribute; 11400 } 11401 } 11402}); 11403
vendor: 572 bytes, lines 11404-11415
11404// ../../node_modules/hastscript/node_modules/property-information/lib/util/case-insensitive-transform.js 11405var require_case_insensitive_transform = __commonJS({ 11406 "../../node_modules/hastscript/node_modules/property-information/lib/util/case-insensitive-transform.js"(exports, module2) { 11407 "use strict"; 11408 var caseSensitiveTransform = require_case_sensitive_transform(); 11409 module2.exports = caseInsensitiveTransform; 11410 function caseInsensitiveTransform(attributes, property) { 11411 return caseSensitiveTransform(attributes, property.toLowerCase()); 11412 } 11413 } 11414}); 11415
vendor: 584 bytes, lines 11416-11434
11416// ../../node_modules/hastscript/node_modules/property-information/lib/xmlns.js 11417var require_xmlns = __commonJS({ 11418 "../../node_modules/hastscript/node_modules/property-information/lib/xmlns.js"(exports, module2) { 11419 "use strict"; 11420 var create4 = require_create(), caseInsensitiveTransform = require_case_insensitive_transform(); 11421 module2.exports = create4({ 11422 space: "xmlns", 11423 attributes: { 11424 xmlnsxlink: "xmlns:xlink" 11425 }, 11426 transform: caseInsensitiveTransform, 11427 properties: { 11428 xmlns: null, 11429 xmlnsXLink: null 11430 } 11431 }); 11432 } 11433}); 11434
vendor: 2,163 bytes, lines 11435-11499
11435// ../../node_modules/hastscript/node_modules/property-information/lib/aria.js 11436var require_aria = __commonJS({ 11437 "../../node_modules/hastscript/node_modules/property-information/lib/aria.js"(exports, module2) { 11438 "use strict"; 11439 var types = require_types(), create4 = require_create(), booleanish = types.booleanish, number = types.number, spaceSeparated = types.spaceSeparated; 11440 module2.exports = create4({ 11441 transform: ariaTransform, 11442 properties: { 11443 ariaActiveDescendant: null, 11444 ariaAtomic: booleanish, 11445 ariaAutoComplete: null, 11446 ariaBusy: booleanish, 11447 ariaChecked: booleanish, 11448 ariaColCount: number, 11449 ariaColIndex: number, 11450 ariaColSpan: number, 11451 ariaControls: spaceSeparated, 11452 ariaCurrent: null, 11453 ariaDescribedBy: spaceSeparated, 11454 ariaDetails: null, 11455 ariaDisabled: booleanish, 11456 ariaDropEffect: spaceSeparated, 11457 ariaErrorMessage: null, 11458 ariaExpanded: booleanish, 11459 ariaFlowTo: spaceSeparated, 11460 ariaGrabbed: booleanish, 11461 ariaHasPopup: null, 11462 ariaHidden: booleanish, 11463 ariaInvalid: null, 11464 ariaKeyShortcuts: null, 11465 ariaLabel: null, 11466 ariaLabelledBy: spaceSeparated, 11467 ariaLevel: number, 11468 ariaLive: null, 11469 ariaModal: booleanish, 11470 ariaMultiLine: booleanish, 11471 ariaMultiSelectable: booleanish, 11472 ariaOrientation: null, 11473 ariaOwns: spaceSeparated, 11474 ariaPlaceholder: null, 11475 ariaPosInSet: number, 11476 ariaPressed: booleanish, 11477 ariaReadOnly: booleanish, 11478 ariaRelevant: null, 11479 ariaRequired: booleanish, 11480 ariaRoleDescription: spaceSeparated, 11481 ariaRowCount: number, 11482 ariaRowIndex: number, 11483 ariaRowSpan: number, 11484 ariaSelected: booleanish, 11485 ariaSetSize: number, 11486 ariaSort: null, 11487 ariaValueMax: number, 11488 ariaValueMin: number, 11489 ariaValueNow: number, 11490 ariaValueText: null, 11491 role: null 11492 } 11493 }); 11494 function ariaTransform(_, prop) { 11495 return prop === "role" ? prop : "aria-" + prop.slice(4).toLowerCase(); 11496 } 11497 } 11498}); 11499
vendor: 10,176 bytes, lines 11500-11854
11500// ../../node_modules/hastscript/node_modules/property-information/lib/html.js 11501var require_html = __commonJS({ 11502 "../../node_modules/hastscript/node_modules/property-information/lib/html.js"(exports, module2) { 11503 "use strict"; 11504 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; 11505 module2.exports = create4({ 11506 space: "html", 11507 attributes: { 11508 acceptcharset: "accept-charset", 11509 classname: "class", 11510 htmlfor: "for", 11511 httpequiv: "http-equiv" 11512 }, 11513 transform: caseInsensitiveTransform, 11514 mustUseProperty: ["checked", "multiple", "muted", "selected"], 11515 properties: { 11516 // Standard Properties. 11517 abbr: null, 11518 accept: commaSeparated, 11519 acceptCharset: spaceSeparated, 11520 accessKey: spaceSeparated, 11521 action: null, 11522 allow: null, 11523 allowFullScreen: boolean, 11524 allowPaymentRequest: boolean, 11525 allowUserMedia: boolean, 11526 alt: null, 11527 as: null, 11528 async: boolean, 11529 autoCapitalize: null, 11530 autoComplete: spaceSeparated, 11531 autoFocus: boolean, 11532 autoPlay: boolean, 11533 capture: boolean, 11534 charSet: null, 11535 checked: boolean, 11536 cite: null, 11537 className: spaceSeparated, 11538 cols: number, 11539 colSpan: null, 11540 content: null, 11541 contentEditable: booleanish, 11542 controls: boolean, 11543 controlsList: spaceSeparated, 11544 coords: number | commaSeparated, 11545 crossOrigin: null, 11546 data: null, 11547 dateTime: null, 11548 decoding: null, 11549 default: boolean, 11550 defer: boolean, 11551 dir: null, 11552 dirName: null, 11553 disabled: boolean, 11554 download: overloadedBoolean, 11555 draggable: booleanish, 11556 encType: null, 11557 enterKeyHint: null, 11558 form: null, 11559 formAction: null, 11560 formEncType: null, 11561 formMethod: null, 11562 formNoValidate: boolean, 11563 formTarget: null, 11564 headers: spaceSeparated, 11565 height: number, 11566 hidden: boolean, 11567 high: number, 11568 href: null, 11569 hrefLang: null, 11570 htmlFor: spaceSeparated, 11571 httpEquiv: spaceSeparated, 11572 id: null, 11573 imageSizes: null, 11574 imageSrcSet: commaSeparated, 11575 inputMode: null, 11576 integrity: null, 11577 is: null, 11578 isMap: boolean, 11579 itemId: null, 11580 itemProp: spaceSeparated, 11581 itemRef: spaceSeparated, 11582 itemScope: boolean, 11583 itemType: spaceSeparated, 11584 kind: null, 11585 label: null, 11586 lang: null, 11587 language: null, 11588 list: null, 11589 loading: null, 11590 loop: boolean, 11591 low: number, 11592 manifest: null, 11593 max: null, 11594 maxLength: number, 11595 media: null, 11596 method: null, 11597 min: null, 11598 minLength: number, 11599 multiple: boolean, 11600 muted: boolean, 11601 name: null, 11602 nonce: null, 11603 noModule: boolean, 11604 noValidate: boolean, 11605 onAbort: null, 11606 onAfterPrint: null, 11607 onAuxClick: null, 11608 onBeforePrint: null, 11609 onBeforeUnload: null, 11610 onBlur: null, 11611 onCancel: null, 11612 onCanPlay: null, 11613 onCanPlayThrough: null, 11614 onChange: null, 11615 onClick: null, 11616 onClose: null, 11617 onContextMenu: null, 11618 onCopy: null, 11619 onCueChange: null, 11620 onCut: null, 11621 onDblClick: null, 11622 onDrag: null, 11623 onDragEnd: null, 11624 onDragEnter: null, 11625 onDragExit: null, 11626 onDragLeave: null, 11627 onDragOver: null, 11628 onDragStart: null, 11629 onDrop: null, 11630 onDurationChange: null, 11631 onEmptied: null, 11632 onEnded: null, 11633 onError: null, 11634 onFocus: null, 11635 onFormData: null, 11636 onHashChange: null, 11637 onInput: null, 11638 onInvalid: null, 11639 onKeyDown: null, 11640 onKeyPress: null, 11641 onKeyUp: null, 11642 onLanguageChange: null, 11643 onLoad: null, 11644 onLoadedData: null, 11645 onLoadedMetadata: null, 11646 onLoadEnd: null, 11647 onLoadStart: null, 11648 onMessage: null, 11649 onMessageError: null, 11650 onMouseDown: null, 11651 onMouseEnter: null, 11652 onMouseLeave: null, 11653 onMouseMove: null, 11654 onMouseOut: null, 11655 onMouseOver: null, 11656 onMouseUp: null, 11657 onOffline: null, 11658 onOnline: null, 11659 onPageHide: null, 11660 onPageShow: null, 11661 onPaste: null, 11662 onPause: null, 11663 onPlay: null, 11664 onPlaying: null, 11665 onPopState: null, 11666 onProgress: null, 11667 onRateChange: null, 11668 onRejectionHandled: null, 11669 onReset: null, 11670 onResize: null, 11671 onScroll: null, 11672 onSecurityPolicyViolation: null, 11673 onSeeked: null, 11674 onSeeking: null, 11675 onSelect: null, 11676 onSlotChange: null, 11677 onStalled: null, 11678 onStorage: null, 11679 onSubmit: null, 11680 onSuspend: null, 11681 onTimeUpdate: null, 11682 onToggle: null, 11683 onUnhandledRejection: null, 11684 onUnload: null, 11685 onVolumeChange: null, 11686 onWaiting: null, 11687 onWheel: null, 11688 open: boolean, 11689 optimum: number, 11690 pattern: null, 11691 ping: spaceSeparated, 11692 placeholder: null, 11693 playsInline: boolean, 11694 poster: null, 11695 preload: null, 11696 readOnly: boolean, 11697 referrerPolicy: null, 11698 rel: spaceSeparated, 11699 required: boolean, 11700 reversed: boolean, 11701 rows: number, 11702 rowSpan: number, 11703 sandbox: spaceSeparated, 11704 scope: null, 11705 scoped: boolean, 11706 seamless: boolean, 11707 selected: boolean, 11708 shape: null, 11709 size: number, 11710 sizes: null, 11711 slot: null, 11712 span: number, 11713 spellCheck: booleanish, 11714 src: null, 11715 srcDoc: null, 11716 srcLang: null, 11717 srcSet: commaSeparated, 11718 start: number, 11719 step: null, 11720 style: null, 11721 tabIndex: number, 11722 target: null, 11723 title: null, 11724 translate: null, 11725 type: null, 11726 typeMustMatch: boolean, 11727 useMap: null, 11728 value: booleanish, 11729 width: number, 11730 wrap: null, 11731 // Legacy. 11732 // See: https://html.spec.whatwg.org/#other-elements,-attributes-and-apis 11733 align: null, 11734 // Several. Use CSS `text-align` instead, 11735 aLink: null, 11736 // `<body>`. Use CSS `a:active {color}` instead 11737 archive: spaceSeparated, 11738 // `<object>`. List of URIs to archives 11739 axis: null, 11740 // `<td>` and `<th>`. Use `scope` on `<th>` 11741 background: null, 11742 // `<body>`. Use CSS `background-image` instead 11743 bgColor: null, 11744 // `<body>` and table elements. Use CSS `background-color` instead 11745 border: number, 11746 // `<table>`. Use CSS `border-width` instead, 11747 borderColor: null, 11748 // `<table>`. Use CSS `border-color` instead, 11749 bottomMargin: number, 11750 // `<body>` 11751 cellPadding: null, 11752 // `<table>` 11753 cellSpacing: null, 11754 // `<table>` 11755 char: null, 11756 // Several table elements. When `align=char`, sets the character to align on 11757 charOff: null, 11758 // Several table elements. When `char`, offsets the alignment 11759 classId: null, 11760 // `<object>` 11761 clear: null, 11762 // `<br>`. Use CSS `clear` instead 11763 code: null, 11764 // `<object>` 11765 codeBase: null, 11766 // `<object>` 11767 codeType: null, 11768 // `<object>` 11769 color: null, 11770 // `<font>` and `<hr>`. Use CSS instead 11771 compact: boolean, 11772 // Lists. Use CSS to reduce space between items instead 11773 declare: boolean, 11774 // `<object>` 11775 event: null, 11776 // `<script>` 11777 face: null, 11778 // `<font>`. Use CSS instead 11779 frame: null, 11780 // `<table>` 11781 frameBorder: null, 11782 // `<iframe>`. Use CSS `border` instead 11783 hSpace: number, 11784 // `<img>` and `<object>` 11785 leftMargin: number, 11786 // `<body>` 11787 link: null, 11788 // `<body>`. Use CSS `a:link {color: *}` instead 11789 longDesc: null, 11790 // `<frame>`, `<iframe>`, and `<img>`. Use an `<a>` 11791 lowSrc: null, 11792 // `<img>`. Use a `<picture>` 11793 marginHeight: number, 11794 // `<body>` 11795 marginWidth: number, 11796 // `<body>` 11797 noResize: boolean, 11798 // `<frame>` 11799 noHref: boolean, 11800 // `<area>`. Use no href instead of an explicit `nohref` 11801 noShade: boolean, 11802 // `<hr>`. Use background-color and height instead of borders 11803 noWrap: boolean, 11804 // `<td>` and `<th>` 11805 object: null, 11806 // `<applet>` 11807 profile: null, 11808 // `<head>` 11809 prompt: null, 11810 // `<isindex>` 11811 rev: null, 11812 // `<link>` 11813 rightMargin: number, 11814 // `<body>` 11815 rules: null, 11816 // `<table>` 11817 scheme: null, 11818 // `<meta>` 11819 scrolling: booleanish, 11820 // `<frame>`. Use overflow in the child context 11821 standby: null, 11822 // `<object>` 11823 summary: null, 11824 // `<table>` 11825 text: null, 11826 // `<body>`. Use CSS `color` instead 11827 topMargin: number, 11828 // `<body>` 11829 valueType: null, 11830 // `<param>` 11831 version: null, 11832 // `<html>`. Use a doctype. 11833 vAlign: null, 11834 // Several. Use CSS `vertical-align` instead 11835 vLink: null, 11836 // `<body>`. Use CSS `a:visited {color}` instead 11837 vSpace: number, 11838 // `<img>` and `<object>` 11839 // Non-standard Properties. 11840 allowTransparency: null, 11841 autoCorrect: null, 11842 autoSave: null, 11843 disablePictureInPicture: boolean, 11844 disableRemotePlayback: boolean, 11845 prefix: null, 11846 property: null, 11847 results: number, 11848 security: null, 11849 unselectable: null 11850 } 11851 }); 11852 } 11853}); 11854
vendor: 445 bytes, lines 11855-11863
11855// ../../node_modules/hastscript/node_modules/property-information/html.js 11856var require_html2 = __commonJS({ 11857 "../../node_modules/hastscript/node_modules/property-information/html.js"(exports, module2) { 11858 "use strict"; 11859 var merge3 = require_merge(), xlink = require_xlink(), xml = require_xml(), xmlns = require_xmlns(), aria = require_aria(), html = require_html(); 11860 module2.exports = merge3([xml, xlink, xmlns, aria, html]); 11861 } 11862}); 11863
vendor: 1,404 bytes, lines 11864-11891
11864// ../../node_modules/hastscript/node_modules/property-information/find.js 11865var require_find = __commonJS({ 11866 "../../node_modules/hastscript/node_modules/property-information/find.js"(exports, module2) { 11867 "use strict"; 11868 var normalize4 = require_normalize(), DefinedInfo = require_defined_info(), Info = require_info(), data = "data"; 11869 module2.exports = find2; 11870 var valid = /^data[-\w.:]+$/i, dash = /-[a-z]/g, cap = /[A-Z]/g; 11871 function find2(schema, value) { 11872 var normal = normalize4(value), prop = value, Type = Info; 11873 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)); 11874 } 11875 function datasetToProperty(attribute) { 11876 var value = attribute.slice(5).replace(dash, camelcase); 11877 return data + value.charAt(0).toUpperCase() + value.slice(1); 11878 } 11879 function datasetToAttribute(property) { 11880 var value = property.slice(4); 11881 return dash.test(value) ? property : (value = value.replace(cap, kebab), value.charAt(0) !== "-" && (value = "-" + value), data + value); 11882 } 11883 function kebab($0) { 11884 return "-" + $0.toLowerCase(); 11885 } 11886 function camelcase($0) { 11887 return $0.charAt(1).toUpperCase(); 11888 } 11889 } 11890}); 11891
vendor: 922 bytes, lines 11892-11905
11892// ../../node_modules/hast-util-parse-selector/index.js 11893var require_hast_util_parse_selector = __commonJS({ 11894 "../../node_modules/hast-util-parse-selector/index.js"(exports, module2) { 11895 "use strict"; 11896 module2.exports = parse9; 11897 var search = /[#.]/g; 11898 function parse9(selector, defaultTagName) { 11899 for (var value = selector || "", name = defaultTagName || "div", props = {}, start2 = 0, subvalue, previous, match3; start2 < value.length; ) 11900 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++); 11901 return { type: "element", tagName: name, properties: props, children: [] }; 11902 } 11903 } 11904}); 11905
vendor: 600 bytes, lines 11906-11922
11906// ../../node_modules/hastscript/node_modules/space-separated-tokens/index.js 11907var require_space_separated_tokens = __commonJS({ 11908 "../../node_modules/hastscript/node_modules/space-separated-tokens/index.js"(exports) { 11909 "use strict"; 11910 exports.parse = parse9; 11911 exports.stringify = stringify8; 11912 var empty = "", space = " ", whiteSpace = /[ \t\n\r\f]+/g; 11913 function parse9(value) { 11914 var input2 = String(value || empty).trim(); 11915 return input2 === empty ? [] : input2.split(whiteSpace); 11916 } 11917 function stringify8(values) { 11918 return values.join(space).trim(); 11919 } 11920 } 11921}); 11922
vendor: 1,062 bytes, lines 11923-11941
11923// ../../node_modules/hastscript/node_modules/comma-separated-tokens/index.js 11924var require_comma_separated_tokens = __commonJS({ 11925 "../../node_modules/hastscript/node_modules/comma-separated-tokens/index.js"(exports) { 11926 "use strict"; 11927 exports.parse = parse9; 11928 exports.stringify = stringify8; 11929 var comma = ",", space = " ", empty = ""; 11930 function parse9(value) { 11931 for (var values = [], input2 = String(value || empty), index4 = input2.indexOf(comma), lastIndex = 0, end2 = !1, val; !end2; ) 11932 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); 11933 return values; 11934 } 11935 function stringify8(values, options) { 11936 var settings = options || {}, left2 = settings.padLeft === !1 ? empty : space, right2 = settings.padRight ? space : empty; 11937 return values[values.length - 1] === empty && (values = values.concat(empty)), values.join(right2 + comma + left2).trim(); 11938 } 11939 } 11940}); 11941
vendor: 4,184 bytes, lines 11942-12011
11942// ../../node_modules/hastscript/factory.js 11943var require_factory = __commonJS({ 11944 "../../node_modules/hastscript/factory.js"(exports, module2) { 11945 "use strict"; 11946 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; 11947 module2.exports = factory; 11948 var own = {}.hasOwnProperty; 11949 function factory(schema, defaultTagName, caseSensitive) { 11950 var adjust = caseSensitive ? createAdjustMap(caseSensitive) : null; 11951 return h3; 11952 function h3(selector, properties) { 11953 var node2 = parseSelector(selector, defaultTagName), children = Array.prototype.slice.call(arguments, 2), name = node2.tagName.toLowerCase(), property; 11954 if (node2.tagName = adjust && own.call(adjust, name) ? adjust[name] : name, properties && isChildren(properties, node2) && (children.unshift(properties), properties = null), properties) 11955 for (property in properties) 11956 addProperty2(node2.properties, property, properties[property]); 11957 return addChild(node2.children, children), node2.tagName === "template" && (node2.content = { type: "root", children: node2.children }, node2.children = []), node2; 11958 } 11959 function addProperty2(properties, key, value) { 11960 var info, property, result; 11961 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)); 11962 } 11963 } 11964 function isChildren(value, node2) { 11965 return typeof value == "string" || "length" in value || isNode2(node2.tagName, value); 11966 } 11967 function isNode2(tagName, value) { 11968 var type5 = value.type; 11969 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); 11970 } 11971 function addChild(nodes, value) { 11972 var index4, length2; 11973 if (typeof value == "string" || typeof value == "number") { 11974 nodes.push({ type: "text", value: String(value) }); 11975 return; 11976 } 11977 if (typeof value == "object" && "length" in value) { 11978 for (index4 = -1, length2 = value.length; ++index4 < length2; ) 11979 addChild(nodes, value[index4]); 11980 return; 11981 } 11982 if (typeof value != "object" || !("type" in value)) 11983 throw new Error("Expected node, nodes, or string, got `" + value + "`"); 11984 nodes.push(value); 11985 } 11986 function parsePrimitives(info, name, value) { 11987 var index4, length2, result; 11988 if (typeof value != "object" || !("length" in value)) 11989 return parsePrimitive(info, name, value); 11990 for (length2 = value.length, index4 = -1, result = []; ++index4 < length2; ) 11991 result[index4] = parsePrimitive(info, name, value[index4]); 11992 return result; 11993 } 11994 function parsePrimitive(info, name, value) { 11995 var result = value; 11996 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; 11997 } 11998 function style(value) { 11999 var result = [], key; 12000 for (key in value) 12001 result.push([key, value[key]].join(": ")); 12002 return result.join("; "); 12003 } 12004 function createAdjustMap(values) { 12005 for (var length2 = values.length, index4 = -1, result = {}, value; ++index4 < length2; ) 12006 value = values[index4], result[value.toLowerCase()] = value; 12007 return result; 12008 } 12009 } 12010}); 12011
vendor: 316 bytes, lines 12012-12021
12012// ../../node_modules/hastscript/html.js 12013var require_html3 = __commonJS({ 12014 "../../node_modules/hastscript/html.js"(exports, module2) { 12015 "use strict"; 12016 var schema = require_html2(), factory = require_factory(), html = factory(schema, "div"); 12017 html.displayName = "html"; 12018 module2.exports = html; 12019 } 12020}); 12021
vendor: 209 bytes, lines 12022-12029
12022// ../../node_modules/hastscript/index.js 12023var require_hastscript = __commonJS({ 12024 "../../node_modules/hastscript/index.js"(exports, module2) { 12025 "use strict"; 12026 module2.exports = require_html3(); 12027 } 12028}); 12029
vendor: 2,461 bytes, lines 12030-12143
12030// ../../node_modules/refractor/node_modules/character-entities-legacy/index.json 12031var require_character_entities_legacy = __commonJS({ 12032 "../../node_modules/refractor/node_modules/character-entities-legacy/index.json"(exports, module2) { 12033 module2.exports = { 12034 AElig: "\xC6", 12035 AMP: "&", 12036 Aacute: "\xC1", 12037 Acirc: "\xC2", 12038 Agrave: "\xC0", 12039 Aring: "\xC5", 12040 Atilde: "\xC3", 12041 Auml: "\xC4", 12042 COPY: "\xA9", 12043 Ccedil: "\xC7", 12044 ETH: "\xD0", 12045 Eacute: "\xC9", 12046 Ecirc: "\xCA", 12047 Egrave: "\xC8", 12048 Euml: "\xCB", 12049 GT: ">", 12050 Iacute: "\xCD", 12051 Icirc: "\xCE", 12052 Igrave: "\xCC", 12053 Iuml: "\xCF", 12054 LT: "<", 12055 Ntilde: "\xD1", 12056 Oacute: "\xD3", 12057 Ocirc: "\xD4", 12058 Ograve: "\xD2", 12059 Oslash: "\xD8", 12060 Otilde: "\xD5", 12061 Ouml: "\xD6", 12062 QUOT: '"', 12063 REG: "\xAE", 12064 THORN: "\xDE", 12065 Uacute: "\xDA", 12066 Ucirc: "\xDB", 12067 Ugrave: "\xD9", 12068 Uuml: "\xDC", 12069 Yacute: "\xDD", 12070 aacute: "\xE1", 12071 acirc: "\xE2", 12072 acute: "\xB4", 12073 aelig: "\xE6", 12074 agrave: "\xE0", 12075 amp: "&", 12076 aring: "\xE5", 12077 atilde: "\xE3", 12078 auml: "\xE4", 12079 brvbar: "\xA6", 12080 ccedil: "\xE7", 12081 cedil: "\xB8", 12082 cent: "\xA2", 12083 copy: "\xA9", 12084 curren: "\xA4", 12085 deg: "\xB0", 12086 divide: "\xF7", 12087 eacute: "\xE9", 12088 ecirc: "\xEA", 12089 egrave: "\xE8", 12090 eth: "\xF0", 12091 euml: "\xEB", 12092 frac12: "\xBD", 12093 frac14: "\xBC", 12094 frac34: "\xBE", 12095 gt: ">", 12096 iacute: "\xED", 12097 icirc: "\xEE", 12098 iexcl: "\xA1", 12099 igrave: "\xEC", 12100 iquest: "\xBF", 12101 iuml: "\xEF", 12102 laquo: "\xAB", 12103 lt: "<", 12104 macr: "\xAF", 12105 micro: "\xB5", 12106 middot: "\xB7", 12107 nbsp: "\xA0", 12108 not: "\xAC", 12109 ntilde: "\xF1", 12110 oacute: "\xF3", 12111 ocirc: "\xF4", 12112 ograve: "\xF2", 12113 ordf: "\xAA", 12114 ordm: "\xBA", 12115 oslash: "\xF8", 12116 otilde: "\xF5", 12117 ouml: "\xF6", 12118 para: "\xB6", 12119 plusmn: "\xB1", 12120 pound: "\xA3", 12121 quot: '"', 12122 raquo: "\xBB", 12123 reg: "\xAE", 12124 sect: "\xA7", 12125 shy: "\xAD", 12126 sup1: "\xB9", 12127 sup2: "\xB2", 12128 sup3: "\xB3", 12129 szlig: "\xDF", 12130 thorn: "\xFE", 12131 times: "\xD7", 12132 uacute: "\xFA", 12133 ucirc: "\xFB", 12134 ugrave: "\xF9", 12135 uml: "\xA8", 12136 uuml: "\xFC", 12137 yacute: "\xFD", 12138 yen: "\xA5", 12139 yuml: "\xFF" 12140 }; 12141 } 12142}); 12143
vendor: 925 bytes, lines 12144-12179
12144// ../../node_modules/refractor/node_modules/character-reference-invalid/index.json 12145var require_character_reference_invalid = __commonJS({ 12146 "../../node_modules/refractor/node_modules/character-reference-invalid/index.json"(exports, module2) { 12147 module2.exports = { 12148 "0": "\uFFFD", 12149 "128": "\u20AC", 12150 "130": "\u201A", 12151 "131": "\u0192", 12152 "132": "\u201E", 12153 "133": "\u2026", 12154 "134": "\u2020", 12155 "135": "\u2021", 12156 "136": "\u02C6", 12157 "137": "\u2030", 12158 "138": "\u0160", 12159 "139": "\u2039", 12160 "140": "\u0152", 12161 "142": "\u017D", 12162 "145": "\u2018", 12163 "146": "\u2019", 12164 "147": "\u201C", 12165 "148": "\u201D", 12166 "149": "\u2022", 12167 "150": "\u2013", 12168 "151": "\u2014", 12169 "152": "\u02DC", 12170 "153": "\u2122", 12171 "154": "\u0161", 12172 "155": "\u203A", 12173 "156": "\u0153", 12174 "158": "\u017E", 12175 "159": "\u0178" 12176 }; 12177 } 12178}); 12179
vendor: 415 bytes, lines 12180-12191
12180// ../../node_modules/refractor/node_modules/is-decimal/index.js 12181var require_is_decimal = __commonJS({ 12182 "../../node_modules/refractor/node_modules/is-decimal/index.js"(exports, module2) { 12183 "use strict"; 12184 module2.exports = decimal; 12185 function decimal(character2) { 12186 var code = typeof character2 == "string" ? character2.charCodeAt(0) : character2; 12187 return code >= 48 && code <= 57; 12188 } 12189 } 12190}); 12191
vendor: 492 bytes, lines 12192-12203
12192// ../../node_modules/refractor/node_modules/is-hexadecimal/index.js 12193var require_is_hexadecimal = __commonJS({ 12194 "../../node_modules/refractor/node_modules/is-hexadecimal/index.js"(exports, module2) { 12195 "use strict"; 12196 module2.exports = hexadecimal; 12197 function hexadecimal(character2) { 12198 var code = typeof character2 == "string" ? character2.charCodeAt(0) : character2; 12199 return code >= 97 && code <= 102 || code >= 65 && code <= 70 || code >= 48 && code <= 57; 12200 } 12201 } 12202}); 12203
vendor: 469 bytes, lines 12204-12215
12204// ../../node_modules/refractor/node_modules/is-alphabetical/index.js 12205var require_is_alphabetical = __commonJS({ 12206 "../../node_modules/refractor/node_modules/is-alphabetical/index.js"(exports, module2) { 12207 "use strict"; 12208 module2.exports = alphabetical; 12209 function alphabetical(character2) { 12210 var code = typeof character2 == "string" ? character2.charCodeAt(0) : character2; 12211 return code >= 97 && code <= 122 || code >= 65 && code <= 90; 12212 } 12213 } 12214}); 12215
vendor: 467 bytes, lines 12216-12227
12216// ../../node_modules/refractor/node_modules/is-alphanumerical/index.js 12217var require_is_alphanumerical = __commonJS({ 12218 "../../node_modules/refractor/node_modules/is-alphanumerical/index.js"(exports, module2) { 12219 "use strict"; 12220 var alphabetical = require_is_alphabetical(), decimal = require_is_decimal(); 12221 module2.exports = alphanumerical; 12222 function alphanumerical(character2) { 12223 return alphabetical(character2) || decimal(character2); 12224 } 12225 } 12226}); 12227
vendor: 638 bytes, lines 12228-12240
12228// ../../node_modules/refractor/node_modules/parse-entities/decode-entity.browser.js 12229var require_decode_entity_browser = __commonJS({ 12230 "../../node_modules/refractor/node_modules/parse-entities/decode-entity.browser.js"(exports, module2) { 12231 "use strict"; 12232 var el, semicolon = 59; 12233 module2.exports = decodeEntity; 12234 function decodeEntity(characters2) { 12235 var entity = "&" + characters2 + ";", char2; 12236 return el = el || document.createElement("i"), el.innerHTML = entity, char2 = el.textContent, char2.charCodeAt(char2.length - 1) === semicolon && characters2 !== "semi" || char2 === entity ? !1 : char2; 12237 } 12238 } 12239}); 12240
vendor: 7,500 bytes, lines 12241-12322
12241// ../../node_modules/refractor/node_modules/parse-entities/index.js 12242var require_parse_entities = __commonJS({ 12243 "../../node_modules/refractor/node_modules/parse-entities/index.js"(exports, module2) { 12244 "use strict"; 12245 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(); 12246 module2.exports = parseEntities; 12247 var own = {}.hasOwnProperty, fromCharCode = String.fromCharCode, noop7 = Function.prototype, defaults = { 12248 warning: null, 12249 reference: null, 12250 text: null, 12251 warningContext: null, 12252 referenceContext: null, 12253 textContext: null, 12254 position: {}, 12255 additional: null, 12256 attribute: !1, 12257 nonTerminated: !0 12258 }, 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 = {}; 12259 bases[hexa] = 16; 12260 bases[deci] = 10; 12261 var tests = {}; 12262 tests[name] = alphanumerical; 12263 tests[deci] = decimal; 12264 tests[hexa] = hexadecimal; 12265 var namedNotTerminated = 1, numericNotTerminated = 2, namedEmpty = 3, numericEmpty = 4, namedUnknown = 5, numericDisallowed = 6, numericProhibited = 7, messages = {}; 12266 messages[namedNotTerminated] = "Named character references must be terminated by a semicolon"; 12267 messages[numericNotTerminated] = "Numeric character references must be terminated by a semicolon"; 12268 messages[namedEmpty] = "Named character references cannot be empty"; 12269 messages[numericEmpty] = "Numeric character references cannot be empty"; 12270 messages[namedUnknown] = "Named character references must be known"; 12271 messages[numericDisallowed] = "Numeric character references cannot be disallowed"; 12272 messages[numericProhibited] = "Numeric character references cannot be outside the permissible Unicode range"; 12273 function parseEntities(value, options) { 12274 var settings = {}, option, key; 12275 options || (options = {}); 12276 for (key in defaults) 12277 option = options[key], settings[key] = option ?? defaults[key]; 12278 return (settings.position.indent || settings.position.start) && (settings.indent = settings.position.indent || [], settings.position = settings.position.start), parse9(value, settings); 12279 } 12280 function parse9(value, settings) { 12281 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; 12282 for (typeof additional == "string" && (additional = additional.charCodeAt(0)), prev2 = now(), warning3 = handleWarning ? parseError : noop7, index4--, length2++; ++index4 < length2; ) 12283 if (character2 === lineFeed && (column2 = indent2[lines] || 1), character2 = value.charCodeAt(index4), character2 === ampersand) { 12284 if (following = value.charCodeAt(index4 + 1), following === tab3 || following === lineFeed || following === formFeed || following === space || following === ampersand || following === lessThan || following !== following || additional && following === additional) { 12285 queue += fromCharCode(character2), column2++; 12286 continue; 12287 } 12288 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)); ) 12289 characters2 += fromCharCode(following), type5 === name && own.call(legacy, characters2) && (entityCharacters = characters2, entity = legacy[characters2]); 12290 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( 12291 referenceContext, 12292 reference2, 12293 { start: prev2, end: next2 }, 12294 value.slice(start2 - 1, end2) 12295 ), prev2 = next2) : (characters2 = value.slice(start2 - 1, end2), queue += characters2, column2 += characters2.length, index4 = end2 - 1); 12296 } else 12297 character2 === 10 && (line2++, lines++, column2 = 0), character2 === character2 ? (queue += fromCharCode(character2), column2++) : flush(); 12298 return result.join(""); 12299 function now() { 12300 return { 12301 line: line2, 12302 column: column2, 12303 offset: index4 + (pos.offset || 0) 12304 }; 12305 } 12306 function parseError(code, offset3) { 12307 var position2 = now(); 12308 position2.column += offset3, position2.offset += offset3, handleWarning.call(warningContext, messages[code], position2, code); 12309 } 12310 function flush() { 12311 queue && (result.push(queue), handleText && handleText.call(textContext, queue, { start: prev2, end: now() }), queue = ""); 12312 } 12313 } 12314 function prohibited(code) { 12315 return code >= 55296 && code <= 57343 || code > 1114111; 12316 } 12317 function disallowed(code) { 12318 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; 12319 } 12320 } 12321}); 12322
vendor: 34,152 bytes, lines 12323-13019
12323// ../../node_modules/refractor/node_modules/prismjs/components/prism-core.js 12324var require_prism_core = __commonJS({ 12325 "../../node_modules/refractor/node_modules/prismjs/components/prism-core.js"(exports, module2) { 12326 var _self = typeof window < "u" ? window : typeof WorkerGlobalScope < "u" && self instanceof WorkerGlobalScope ? self : {}; 12327 var Prism = (function(_self2) { 12328 var lang = /(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i, uniqueId = 0, plainTextGrammar = {}, _ = { 12329 /** 12330 * By default, Prism will attempt to highlight all code elements (by calling {@link Prism.highlightAll}) on the 12331 * current page after the page finished loading. This might be a problem if e.g. you wanted to asynchronously load 12332 * additional languages or plugins yourself. 12333 * 12334 * By setting this value to `true`, Prism will not automatically highlight all code elements on the page. 12335 * 12336 * You obviously have to change this value before the automatic highlighting started. To do this, you can add an 12337 * empty Prism object into the global scope before loading the Prism script like this: 12338 * 12339 * ```js 12340 * window.Prism = window.Prism || {}; 12341 * Prism.manual = true; 12342 * // add a new <script> to load Prism's script 12343 * ``` 12344 * 12345 * @default false 12346 * @type {boolean} 12347 * @memberof Prism 12348 * @public 12349 */ 12350 manual: _self2.Prism && _self2.Prism.manual, 12351 /** 12352 * By default, if Prism is in a web worker, it assumes that it is in a worker it created itself, so it uses 12353 * `addEventListener` to communicate with its parent instance. However, if you're using Prism manually in your 12354 * own worker, you don't want it to do this. 12355 * 12356 * By setting this value to `true`, Prism will not add its own listeners to the worker. 12357 * 12358 * You obviously have to change this value before Prism executes. To do this, you can add an 12359 * empty Prism object into the global scope before loading the Prism script like this: 12360 * 12361 * ```js 12362 * window.Prism = window.Prism || {}; 12363 * Prism.disableWorkerMessageHandler = true; 12364 * // Load Prism's script 12365 * ``` 12366 * 12367 * @default false 12368 * @type {boolean} 12369 * @memberof Prism 12370 * @public 12371 */ 12372 disableWorkerMessageHandler: _self2.Prism && _self2.Prism.disableWorkerMessageHandler, 12373 /** 12374 * A namespace for utility methods. 12375 * 12376 * All function in this namespace that are not explicitly marked as _public_ are for __internal use only__ and may 12377 * change or disappear at any time. 12378 * 12379 * @namespace 12380 * @memberof Prism 12381 */ 12382 util: { 12383 encode: function encode2(tokens2) { 12384 return tokens2 instanceof Token ? new Token(tokens2.type, encode2(tokens2.content), tokens2.alias) : Array.isArray(tokens2) ? tokens2.map(encode2) : tokens2.replace(/&/g, "&").replace(/</g, "<").replace(/\u00a0/g, " "); 12385 }, 12386 /** 12387 * Returns the name of the type of the given value. 12388 * 12389 * @param {any} o 12390 * @returns {string} 12391 * @example 12392 * type(null) === 'Null' 12393 * type(undefined) === 'Undefined' 12394 * type(123) === 'Number' 12395 * type('foo') === 'String' 12396 * type(true) === 'Boolean' 12397 * type([1, 2]) === 'Array' 12398 * type({}) === 'Object' 12399 * type(String) === 'Function' 12400 * type(/abc+/) === 'RegExp' 12401 */ 12402 type: function(o) { 12403 return Object.prototype.toString.call(o).slice(8, -1); 12404 }, 12405 /** 12406 * Returns a unique number for the given object. Later calls will still return the same number. 12407 * 12408 * @param {Object} obj 12409 * @returns {number} 12410 */ 12411 objId: function(obj) { 12412 return obj.__id || Object.defineProperty(obj, "__id", { value: ++uniqueId }), obj.__id; 12413 }, 12414 /** 12415 * Creates a deep clone of the given object. 12416 * 12417 * The main intended use of this function is to clone language definitions. 12418 * 12419 * @param {T} o 12420 * @param {Record<number, any>} [visited] 12421 * @returns {T} 12422 * @template T 12423 */ 12424 clone: function deepClone2(o, visited) { 12425 visited = visited || {}; 12426 var clone3, id; 12427 switch (_.util.type(o)) { 12428 case "Object": 12429 if (id = _.util.objId(o), visited[id]) 12430 return visited[id]; 12431 clone3 = /** @type {Record<string, any>} */ 12432 {}, visited[id] = clone3; 12433 for (var key in o) 12434 o.hasOwnProperty(key) && (clone3[key] = deepClone2(o[key], visited)); 12435 return ( 12436 /** @type {any} */ 12437 clone3 12438 ); 12439 case "Array": 12440 return id = _.util.objId(o), visited[id] ? visited[id] : (clone3 = [], visited[id] = clone3, /** @type {Array} */ 12441 /** @type {any} */ 12442 o.forEach(function(v, i) { 12443 clone3[i] = deepClone2(v, visited); 12444 }), /** @type {any} */ 12445 clone3); 12446 default: 12447 return o; 12448 } 12449 }, 12450 /** 12451 * Returns the Prism language of the given element set by a `language-xxxx` or `lang-xxxx` class. 12452 * 12453 * If no language is set for the element or the element is `null` or `undefined`, `none` will be returned. 12454 * 12455 * @param {Element} element 12456 * @returns {string} 12457 */ 12458 getLanguage: function(element) { 12459 for (; element; ) { 12460 var m3 = lang.exec(element.className); 12461 if (m3) 12462 return m3[1].toLowerCase(); 12463 element = element.parentElement; 12464 } 12465 return "none"; 12466 }, 12467 /** 12468 * Sets the Prism `language-xxxx` class of the given element. 12469 * 12470 * @param {Element} element 12471 * @param {string} language 12472 * @returns {void} 12473 */ 12474 setLanguage: function(element, language) { 12475 element.className = element.className.replace(RegExp(lang, "gi"), ""), element.classList.add("language-" + language); 12476 }, 12477 /** 12478 * Returns the script element that is currently executing. 12479 * 12480 * This does __not__ work for line script element. 12481 * 12482 * @returns {HTMLScriptElement | null} 12483 */ 12484 currentScript: function() { 12485 if (typeof document > "u") 12486 return null; 12487 if ("currentScript" in document) 12488 return ( 12489 /** @type {any} */ 12490 document.currentScript 12491 ); 12492 try { 12493 throw new Error(); 12494 } catch (err) { 12495 var src = (/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(err.stack) || [])[1]; 12496 if (src) { 12497 var scripts = document.getElementsByTagName("script"); 12498 for (var i in scripts) 12499 if (scripts[i].src == src) 12500 return scripts[i]; 12501 } 12502 return null; 12503 } 12504 }, 12505 /** 12506 * Returns whether a given class is active for `element`. 12507 * 12508 * The class can be activated if `element` or one of its ancestors has the given class and it can be deactivated 12509 * if `element` or one of its ancestors has the negated version of the given class. The _negated version_ of the 12510 * given class is just the given class with a `no-` prefix. 12511 * 12512 * Whether the class is active is determined by the closest ancestor of `element` (where `element` itself is 12513 * closest ancestor) that has the given class or the negated version of it. If neither `element` nor any of its 12514 * ancestors have the given class or the negated version of it, then the default activation will be returned. 12515 * 12516 * In the paradoxical situation where the closest ancestor contains __both__ the given class and the negated 12517 * version of it, the class is considered active. 12518 * 12519 * @param {Element} element 12520 * @param {string} className 12521 * @param {boolean} [defaultActivation=false] 12522 * @returns {boolean} 12523 */ 12524 isActive: function(element, className, defaultActivation) { 12525 for (var no = "no-" + className; element; ) { 12526 var classList = element.classList; 12527 if (classList.contains(className)) 12528 return !0; 12529 if (classList.contains(no)) 12530 return !1; 12531 element = element.parentElement; 12532 } 12533 return !!defaultActivation; 12534 } 12535 }, 12536 /** 12537 * This namespace contains all currently loaded languages and the some helper functions to create and modify languages. 12538 * 12539 * @namespace 12540 * @memberof Prism 12541 * @public 12542 */ 12543 languages: { 12544 /** 12545 * The grammar for plain, unformatted text. 12546 */ 12547 plain: plainTextGrammar, 12548 plaintext: plainTextGrammar, 12549 text: plainTextGrammar, 12550 txt: plainTextGrammar, 12551 /** 12552 * Creates a deep copy of the language with the given id and appends the given tokens. 12553 * 12554 * If a token in `redef` also appears in the copied language, then the existing token in the copied language 12555 * will be overwritten at its original position. 12556 * 12557 * ## Best practices 12558 * 12559 * Since the position of overwriting tokens (token in `redef` that overwrite tokens in the copied language) 12560 * doesn't matter, they can technically be in any order. However, this can be confusing to others that trying to 12561 * understand the language definition because, normally, the order of tokens matters in Prism grammars. 12562 * 12563 * Therefore, it is encouraged to order overwriting tokens according to the positions of the overwritten tokens. 12564 * Furthermore, all non-overwriting tokens should be placed after the overwriting ones. 12565 * 12566 * @param {string} id The id of the language to extend. This has to be a key in `Prism.languages`. 12567 * @param {Grammar} redef The new tokens to append. 12568 * @returns {Grammar} The new language created. 12569 * @public 12570 * @example 12571 * Prism.languages['css-with-colors'] = Prism.languages.extend('css', { 12572 * // Prism.languages.css already has a 'comment' token, so this token will overwrite CSS' 'comment' token 12573 * // at its original position 12574 * 'comment': { ... }, 12575 * // CSS doesn't have a 'color' token, so this token will be appended 12576 * 'color': /\b(?:red|green|blue)\b/ 12577 * }); 12578 */ 12579 extend: function(id, redef) { 12580 var lang2 = _.util.clone(_.languages[id]); 12581 for (var key in redef) 12582 lang2[key] = redef[key]; 12583 return lang2; 12584 }, 12585 /** 12586 * Inserts tokens _before_ another token in a language definition or any other grammar. 12587 * 12588 * ## Usage 12589 * 12590 * This helper method makes it easy to modify existing languages. For example, the CSS language definition 12591 * not only defines CSS highlighting for CSS documents, but also needs to define highlighting for CSS embedded 12592 * in HTML through `<style>` elements. To do this, it needs to modify `Prism.languages.markup` and add the 12593 * appropriate tokens. However, `Prism.languages.markup` is a regular JavaScript object literal, so if you do 12594 * this: 12595 * 12596 * ```js 12597 * Prism.languages.markup.style = { 12598 * // token 12599 * }; 12600 * ``` 12601 * 12602 * then the `style` token will be added (and processed) at the end. `insertBefore` allows you to insert tokens 12603 * before existing tokens. For the CSS example above, you would use it like this: 12604 * 12605 * ```js 12606 * Prism.languages.insertBefore('markup', 'cdata', { 12607 * 'style': { 12608 * // token 12609 * } 12610 * }); 12611 * ``` 12612 * 12613 * ## Special cases 12614 * 12615 * If the grammars of `inside` and `insert` have tokens with the same name, the tokens in `inside`'s grammar 12616 * will be ignored. 12617 * 12618 * This behavior can be used to insert tokens after `before`: 12619 * 12620 * ```js 12621 * Prism.languages.insertBefore('markup', 'comment', { 12622 * 'comment': Prism.languages.markup.comment, 12623 * // tokens after 'comment' 12624 * }); 12625 * ``` 12626 * 12627 * ## Limitations 12628 * 12629 * The main problem `insertBefore` has to solve is iteration order. Since ES2015, the iteration order for object 12630 * properties is guaranteed to be the insertion order (except for integer keys) but some browsers behave 12631 * differently when keys are deleted and re-inserted. So `insertBefore` can't be implemented by temporarily 12632 * deleting properties which is necessary to insert at arbitrary positions. 12633 * 12634 * To solve this problem, `insertBefore` doesn't actually insert the given tokens into the target object. 12635 * Instead, it will create a new object and replace all references to the target object with the new one. This 12636 * can be done without temporarily deleting properties, so the iteration order is well-defined. 12637 * 12638 * However, only references that can be reached from `Prism.languages` or `insert` will be replaced. I.e. if 12639 * you hold the target object in a variable, then the value of the variable will not change. 12640 * 12641 * ```js 12642 * var oldMarkup = Prism.languages.markup; 12643 * var newMarkup = Prism.languages.insertBefore('markup', 'comment', { ... }); 12644 * 12645 * assert(oldMarkup !== Prism.languages.markup); 12646 * assert(newMarkup === Prism.languages.markup); 12647 * ``` 12648 * 12649 * @param {string} inside The property of `root` (e.g. a language id in `Prism.languages`) that contains the 12650 * object to be modified. 12651 * @param {string} before The key to insert before. 12652 * @param {Grammar} insert An object containing the key-value pairs to be inserted. 12653 * @param {Object<string, any>} [root] The object containing `inside`, i.e. the object that contains the 12654 * object to be modified. 12655 * 12656 * Defaults to `Prism.languages`. 12657 * @returns {Grammar} The new grammar object. 12658 * @public 12659 */ 12660 insertBefore: function(inside, before, insert, root2) { 12661 root2 = root2 || /** @type {any} */ 12662 _.languages; 12663 var grammar = root2[inside], ret = {}; 12664 for (var token2 in grammar) 12665 if (grammar.hasOwnProperty(token2)) { 12666 if (token2 == before) 12667 for (var newToken in insert) 12668 insert.hasOwnProperty(newToken) && (ret[newToken] = insert[newToken]); 12669 insert.hasOwnProperty(token2) || (ret[token2] = grammar[token2]); 12670 } 12671 var old = root2[inside]; 12672 return root2[inside] = ret, _.languages.DFS(_.languages, function(key, value) { 12673 value === old && key != inside && (this[key] = ret); 12674 }), ret; 12675 }, 12676 // Traverse a language definition with Depth First Search 12677 DFS: function DFS(o, callback, type5, visited) { 12678 visited = visited || {}; 12679 var objId = _.util.objId; 12680 for (var i in o) 12681 if (o.hasOwnProperty(i)) { 12682 callback.call(o, i, o[i], type5 || i); 12683 var property = o[i], propertyType = _.util.type(property); 12684 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)); 12685 } 12686 } 12687 }, 12688 plugins: {}, 12689 /** 12690 * This is the most high-level function in Prismâs API. 12691 * It fetches all the elements that have a `.language-xxxx` class and then calls {@link Prism.highlightElement} on 12692 * each one of them. 12693 * 12694 * This is equivalent to `Prism.highlightAllUnder(document, async, callback)`. 12695 * 12696 * @param {boolean} [async=false] Same as in {@link Prism.highlightAllUnder}. 12697 * @param {HighlightCallback} [callback] Same as in {@link Prism.highlightAllUnder}. 12698 * @memberof Prism 12699 * @public 12700 */ 12701 highlightAll: function(async, callback) { 12702 _.highlightAllUnder(document, async, callback); 12703 }, 12704 /** 12705 * Fetches all the descendants of `container` that have a `.language-xxxx` class and then calls 12706 * {@link Prism.highlightElement} on each one of them. 12707 * 12708 * The following hooks will be run: 12709 * 1. `before-highlightall` 12710 * 2. `before-all-elements-highlight` 12711 * 3. All hooks of {@link Prism.highlightElement} for each element. 12712 * 12713 * @param {ParentNode} container The root element, whose descendants that have a `.language-xxxx` class will be highlighted. 12714 * @param {boolean} [async=false] Whether each element is to be highlighted asynchronously using Web Workers. 12715 * @param {HighlightCallback} [callback] An optional callback to be invoked on each element after its highlighting is done. 12716 * @memberof Prism 12717 * @public 12718 */ 12719 highlightAllUnder: function(container, async, callback) { 12720 var env = { 12721 callback, 12722 container, 12723 selector: 'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code' 12724 }; 12725 _.hooks.run("before-highlightall", env), env.elements = Array.prototype.slice.apply(env.container.querySelectorAll(env.selector)), _.hooks.run("before-all-elements-highlight", env); 12726 for (var i = 0, element; element = env.elements[i++]; ) 12727 _.highlightElement(element, async === !0, env.callback); 12728 }, 12729 /** 12730 * Highlights the code inside a single element. 12731 * 12732 * The following hooks will be run: 12733 * 1. `before-sanity-check` 12734 * 2. `before-highlight` 12735 * 3. All hooks of {@link Prism.highlight}. These hooks will be run by an asynchronous worker if `async` is `true`. 12736 * 4. `before-insert` 12737 * 5. `after-highlight` 12738 * 6. `complete` 12739 * 12740 * Some the above hooks will be skipped if the element doesn't contain any text or there is no grammar loaded for 12741 * the element's language. 12742 * 12743 * @param {Element} element The element containing the code. 12744 * It must have a class of `language-xxxx` to be processed, where `xxxx` is a valid language identifier. 12745 * @param {boolean} [async=false] Whether the element is to be highlighted asynchronously using Web Workers 12746 * to improve performance and avoid blocking the UI when highlighting very large chunks of code. This option is 12747 * [disabled by default](https://prismjs.com/faq.html#why-is-asynchronous-highlighting-disabled-by-default). 12748 * 12749 * Note: All language definitions required to highlight the code must be included in the main `prism.js` file for 12750 * asynchronous highlighting to work. You can build your own bundle on the 12751 * [Download page](https://prismjs.com/download.html). 12752 * @param {HighlightCallback} [callback] An optional callback to be invoked after the highlighting is done. 12753 * Mostly useful when `async` is `true`, since in that case, the highlighting is done asynchronously. 12754 * @memberof Prism 12755 * @public 12756 */ 12757 highlightElement: function(element, async, callback) { 12758 var language = _.util.getLanguage(element), grammar = _.languages[language]; 12759 _.util.setLanguage(element, language); 12760 var parent = element.parentElement; 12761 parent && parent.nodeName.toLowerCase() === "pre" && _.util.setLanguage(parent, language); 12762 var code = element.textContent, env = { 12763 element, 12764 language, 12765 grammar, 12766 code 12767 }; 12768 function insertHighlightedCode(highlightedCode) { 12769 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); 12770 } 12771 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) { 12772 _.hooks.run("complete", env), callback && callback.call(env.element); 12773 return; 12774 } 12775 if (_.hooks.run("before-highlight", env), !env.grammar) { 12776 insertHighlightedCode(_.util.encode(env.code)); 12777 return; 12778 } 12779 if (async && _self2.Worker) { 12780 var worker = new Worker(_.filename); 12781 worker.onmessage = function(evt) { 12782 insertHighlightedCode(evt.data); 12783 }, worker.postMessage(JSON.stringify({ 12784 language: env.language, 12785 code: env.code, 12786 immediateClose: !0 12787 })); 12788 } else 12789 insertHighlightedCode(_.highlight(env.code, env.grammar, env.language)); 12790 }, 12791 /** 12792 * Low-level function, only use if you know what youâre doing. It accepts a string of text as input 12793 * and the language definitions to use, and returns a string with the HTML produced. 12794 * 12795 * The following hooks will be run: 12796 * 1. `before-tokenize` 12797 * 2. `after-tokenize` 12798 * 3. `wrap`: On each {@link Token}. 12799 * 12800 * @param {string} text A string with the code to be highlighted. 12801 * @param {Grammar} grammar An object containing the tokens to use. 12802 * 12803 * Usually a language definition like `Prism.languages.markup`. 12804 * @param {string} language The name of the language definition passed to `grammar`. 12805 * @returns {string} The highlighted HTML. 12806 * @memberof Prism 12807 * @public 12808 * @example 12809 * Prism.highlight('var foo = true;', Prism.languages.javascript, 'javascript'); 12810 */ 12811 highlight: function(text, grammar, language) { 12812 var env = { 12813 code: text, 12814 grammar, 12815 language 12816 }; 12817 if (_.hooks.run("before-tokenize", env), !env.grammar) 12818 throw new Error('The language "' + env.language + '" has no grammar.'); 12819 return env.tokens = _.tokenize(env.code, env.grammar), _.hooks.run("after-tokenize", env), Token.stringify(_.util.encode(env.tokens), env.language); 12820 }, 12821 /** 12822 * This is the heart of Prism, and the most low-level function you can use. It accepts a string of text as input 12823 * and the language definitions to use, and returns an array with the tokenized code. 12824 * 12825 * When the language definition includes nested tokens, the function is called recursively on each of these tokens. 12826 * 12827 * This method could be useful in other contexts as well, as a very crude parser. 12828 * 12829 * @param {string} text A string with the code to be highlighted. 12830 * @param {Grammar} grammar An object containing the tokens to use. 12831 * 12832 * Usually a language definition like `Prism.languages.markup`. 12833 * @returns {TokenStream} An array of strings and tokens, a token stream. 12834 * @memberof Prism 12835 * @public 12836 * @example 12837 * let code = `var foo = 0;`; 12838 * let tokens = Prism.tokenize(code, Prism.languages.javascript); 12839 * tokens.forEach(token => { 12840 * if (token instanceof Prism.Token && token.type === 'number') { 12841 * console.log(`Found numeric literal: ${token.content}`); 12842 * } 12843 * }); 12844 */ 12845 tokenize: function(text, grammar) { 12846 var rest = grammar.rest; 12847 if (rest) { 12848 for (var token2 in rest) 12849 grammar[token2] = rest[token2]; 12850 delete grammar.rest; 12851 } 12852 var tokenList = new LinkedList(); 12853 return addAfter(tokenList, tokenList.head, text), matchGrammar(text, tokenList, grammar, tokenList.head, 0), toArray2(tokenList); 12854 }, 12855 /** 12856 * @namespace 12857 * @memberof Prism 12858 * @public 12859 */ 12860 hooks: { 12861 all: {}, 12862 /** 12863 * Adds the given callback to the list of callbacks for the given hook. 12864 * 12865 * The callback will be invoked when the hook it is registered for is run. 12866 * Hooks are usually directly run by a highlight function but you can also run hooks yourself. 12867 * 12868 * One callback function can be registered to multiple hooks and the same hook multiple times. 12869 * 12870 * @param {string} name The name of the hook. 12871 * @param {HookCallback} callback The callback function which is given environment variables. 12872 * @public 12873 */ 12874 add: function(name, callback) { 12875 var hooks = _.hooks.all; 12876 hooks[name] = hooks[name] || [], hooks[name].push(callback); 12877 }, 12878 /** 12879 * Runs a hook invoking all registered callbacks with the given environment variables. 12880 * 12881 * Callbacks will be invoked synchronously and in the order in which they were registered. 12882 * 12883 * @param {string} name The name of the hook. 12884 * @param {Object<string, any>} env The environment variables of the hook passed to all callbacks registered. 12885 * @public 12886 */ 12887 run: function(name, env) { 12888 var callbacks = _.hooks.all[name]; 12889 if (!(!callbacks || !callbacks.length)) 12890 for (var i = 0, callback; callback = callbacks[i++]; ) 12891 callback(env); 12892 } 12893 }, 12894 Token 12895 }; 12896 _self2.Prism = _; 12897 function Token(type5, content, alias, matchedStr) { 12898 this.type = type5, this.content = content, this.alias = alias, this.length = (matchedStr || "").length | 0; 12899 } 12900 Token.stringify = function stringify8(o, language) { 12901 if (typeof o == "string") 12902 return o; 12903 if (Array.isArray(o)) { 12904 var s3 = ""; 12905 return o.forEach(function(e) { 12906 s3 += stringify8(e, language); 12907 }), s3; 12908 } 12909 var env = { 12910 type: o.type, 12911 content: stringify8(o.content, language), 12912 tag: "span", 12913 classes: ["token", o.type], 12914 attributes: {}, 12915 language 12916 }, aliases2 = o.alias; 12917 aliases2 && (Array.isArray(aliases2) ? Array.prototype.push.apply(env.classes, aliases2) : env.classes.push(aliases2)), _.hooks.run("wrap", env); 12918 var attributes = ""; 12919 for (var name in env.attributes) 12920 attributes += " " + name + '="' + (env.attributes[name] || "").replace(/"/g, """) + '"'; 12921 return "<" + env.tag + ' class="' + env.classes.join(" ") + '"' + attributes + ">" + env.content + "</" + env.tag + ">"; 12922 }; 12923 function matchPattern(pattern, pos, text, lookbehind) { 12924 pattern.lastIndex = pos; 12925 var match3 = pattern.exec(text); 12926 if (match3 && lookbehind && match3[1]) { 12927 var lookbehindLength = match3[1].length; 12928 match3.index += lookbehindLength, match3[0] = match3[0].slice(lookbehindLength); 12929 } 12930 return match3; 12931 } 12932 function matchGrammar(text, tokenList, grammar, startNode, startPos, rematch) { 12933 for (var token2 in grammar) 12934 if (!(!grammar.hasOwnProperty(token2) || !grammar[token2])) { 12935 var patterns = grammar[token2]; 12936 patterns = Array.isArray(patterns) ? patterns : [patterns]; 12937 for (var j = 0; j < patterns.length; ++j) { 12938 if (rematch && rematch.cause == token2 + "," + j) 12939 return; 12940 var patternObj = patterns[j], inside = patternObj.inside, lookbehind = !!patternObj.lookbehind, greedy = !!patternObj.greedy, alias = patternObj.alias; 12941 if (greedy && !patternObj.pattern.global) { 12942 var flags = patternObj.pattern.toString().match(/[imsuy]*$/)[0]; 12943 patternObj.pattern = RegExp(patternObj.pattern.source, flags + "g"); 12944 } 12945 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) { 12946 var str2 = currentNode.value; 12947 if (tokenList.length > text.length) 12948 return; 12949 if (!(str2 instanceof Token)) { 12950 var removeCount = 1, match3; 12951 if (greedy) { 12952 if (match3 = matchPattern(pattern, pos, text, lookbehind), !match3 || match3.index >= text.length) 12953 break; 12954 var from2 = match3.index, to = match3.index + match3[0].length, p3 = pos; 12955 for (p3 += currentNode.value.length; from2 >= p3; ) 12956 currentNode = currentNode.next, p3 += currentNode.value.length; 12957 if (p3 -= currentNode.value.length, pos = p3, currentNode.value instanceof Token) 12958 continue; 12959 for (var k = currentNode; k !== tokenList.tail && (p3 < to || typeof k.value == "string"); k = k.next) 12960 removeCount++, p3 += k.value.length; 12961 removeCount--, str2 = text.slice(pos, p3), match3.index -= pos; 12962 } else if (match3 = matchPattern(pattern, 0, str2, lookbehind), !match3) 12963 continue; 12964 var from2 = match3.index, matchStr = match3[0], before = str2.slice(0, from2), after = str2.slice(from2 + matchStr.length), reach = pos + str2.length; 12965 rematch && reach > rematch.reach && (rematch.reach = reach); 12966 var removeFrom = currentNode.prev; 12967 before && (removeFrom = addAfter(tokenList, removeFrom, before), pos += before.length), removeRange(tokenList, removeFrom, removeCount); 12968 var wrapped = new Token(token2, inside ? _.tokenize(matchStr, inside) : matchStr, alias, matchStr); 12969 if (currentNode = addAfter(tokenList, removeFrom, wrapped), after && addAfter(tokenList, currentNode, after), removeCount > 1) { 12970 var nestedRematch = { 12971 cause: token2 + "," + j, 12972 reach 12973 }; 12974 matchGrammar(text, tokenList, grammar, currentNode.prev, pos, nestedRematch), rematch && nestedRematch.reach > rematch.reach && (rematch.reach = nestedRematch.reach); 12975 } 12976 } 12977 } 12978 } 12979 } 12980 } 12981 function LinkedList() { 12982 var head2 = { value: null, prev: null, next: null }, tail2 = { value: null, prev: head2, next: null }; 12983 head2.next = tail2, this.head = head2, this.tail = tail2, this.length = 0; 12984 } 12985 function addAfter(list, node2, value) { 12986 var next2 = node2.next, newNode = { value, prev: node2, next: next2 }; 12987 return node2.next = newNode, next2.prev = newNode, list.length++, newNode; 12988 } 12989 function removeRange(list, node2, count) { 12990 for (var next2 = node2.next, i = 0; i < count && next2 !== list.tail; i++) 12991 next2 = next2.next; 12992 node2.next = next2, next2.prev = node2, list.length -= i; 12993 } 12994 function toArray2(list) { 12995 for (var array = [], node2 = list.head.next; node2 !== list.tail; ) 12996 array.push(node2.value), node2 = node2.next; 12997 return array; 12998 } 12999 if (!_self2.document) 13000 return _self2.addEventListener && (_.disableWorkerMessageHandler || _self2.addEventListener("message", function(evt) { 13001 var message = JSON.parse(evt.data), lang2 = message.language, code = message.code, immediateClose = message.immediateClose; 13002 _self2.postMessage(_.highlight(code, _.languages[lang2], lang2)), immediateClose && _self2.close(); 13003 }, !1)), _; 13004 var script = _.util.currentScript(); 13005 script && (_.filename = script.src, script.hasAttribute("data-manual") && (_.manual = !0)); 13006 function highlightAutomaticallyCallback() { 13007 _.manual || _.highlightAll(); 13008 } 13009 if (!_.manual) { 13010 var readyState = document.readyState; 13011 readyState === "loading" || readyState === "interactive" && script && script.defer ? document.addEventListener("DOMContentLoaded", highlightAutomaticallyCallback) : window.requestAnimationFrame ? window.requestAnimationFrame(highlightAutomaticallyCallback) : window.setTimeout(highlightAutomaticallyCallback, 16); 13012 } 13013 return _; 13014 })(_self); 13015 typeof module2 < "u" && module2.exports && (module2.exports = Prism); 13016 typeof global < "u" && (global.Prism = Prism); 13017 } 13018}); 13019
vendor: 1,347 bytes, lines 13020-13062
13020// ../../node_modules/refractor/lang/clike.js 13021var require_clike = __commonJS({ 13022 "../../node_modules/refractor/lang/clike.js"(exports, module2) { 13023 "use strict"; 13024 module2.exports = clike; 13025 clike.displayName = "clike"; 13026 clike.aliases = []; 13027 function clike(Prism) { 13028 Prism.languages.clike = { 13029 comment: [ 13030 { 13031 pattern: /(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/, 13032 lookbehind: !0, 13033 greedy: !0 13034 }, 13035 { 13036 pattern: /(^|[^\\:])\/\/.*/, 13037 lookbehind: !0, 13038 greedy: !0 13039 } 13040 ], 13041 string: { 13042 pattern: /(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/, 13043 greedy: !0 13044 }, 13045 "class-name": { 13046 pattern: /(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i, 13047 lookbehind: !0, 13048 inside: { 13049 punctuation: /[.\\]/ 13050 } 13051 }, 13052 keyword: /\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/, 13053 boolean: /\b(?:false|true)\b/, 13054 function: /\b\w+(?=\()/, 13055 number: /\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i, 13056 operator: /[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/, 13057 punctuation: /[{}[\];(),.:]/ 13058 }; 13059 } 13060 } 13061}); 13062
vendor: 6,750 bytes, lines 13063-13196
13063// ../../node_modules/refractor/lang/javascript.js 13064var require_javascript = __commonJS({ 13065 "../../node_modules/refractor/lang/javascript.js"(exports, module2) { 13066 "use strict"; 13067 module2.exports = javascript; 13068 javascript.displayName = "javascript"; 13069 javascript.aliases = ["js"]; 13070 function javascript(Prism) { 13071 Prism.languages.javascript = Prism.languages.extend("clike", { 13072 "class-name": [ 13073 Prism.languages.clike["class-name"], 13074 { 13075 pattern: /(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/, 13076 lookbehind: !0 13077 } 13078 ], 13079 keyword: [ 13080 { 13081 pattern: /((?:^|\})\s*)catch\b/, 13082 lookbehind: !0 13083 }, 13084 { 13085 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/, 13086 lookbehind: !0 13087 } 13088 ], 13089 // Allow for all non-ASCII characters (See http://stackoverflow.com/a/2008444) 13090 function: /#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/, 13091 number: { 13092 pattern: RegExp( 13093 /(^|[^\w$])/.source + "(?:" + // constant 13094 (/NaN|Infinity/.source + "|" + // binary integer 13095 /0[bB][01]+(?:_[01]+)*n?/.source + "|" + // octal integer 13096 /0[oO][0-7]+(?:_[0-7]+)*n?/.source + "|" + // hexadecimal integer 13097 /0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source + "|" + // decimal bigint 13098 /\d+(?:_\d+)*n/.source + "|" + // decimal number (integer or float) but no bigint 13099 /(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source) + ")" + /(?![\w$])/.source 13100 ), 13101 lookbehind: !0 13102 }, 13103 operator: /--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/ 13104 }), Prism.languages.javascript["class-name"][0].pattern = /(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/, Prism.languages.insertBefore("javascript", "keyword", { 13105 regex: { 13106 // eslint-disable-next-line regexp/no-dupe-characters-character-class 13107 pattern: /((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)\/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/, 13108 lookbehind: !0, 13109 greedy: !0, 13110 inside: { 13111 "regex-source": { 13112 pattern: /^(\/)[\s\S]+(?=\/[a-z]*$)/, 13113 lookbehind: !0, 13114 alias: "language-regex", 13115 inside: Prism.languages.regex 13116 }, 13117 "regex-delimiter": /^\/|\/$/, 13118 "regex-flags": /^[a-z]+$/ 13119 } 13120 }, 13121 // This must be declared before keyword because we use "function" inside the look-forward 13122 "function-variable": { 13123 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*=>))/, 13124 alias: "function" 13125 }, 13126 parameter: [ 13127 { 13128 pattern: /(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/, 13129 lookbehind: !0, 13130 inside: Prism.languages.javascript 13131 }, 13132 { 13133 pattern: /(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i, 13134 lookbehind: !0, 13135 inside: Prism.languages.javascript 13136 }, 13137 { 13138 pattern: /(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/, 13139 lookbehind: !0, 13140 inside: Prism.languages.javascript 13141 }, 13142 { 13143 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*\{)/, 13144 lookbehind: !0, 13145 inside: Prism.languages.javascript 13146 } 13147 ], 13148 constant: /\b[A-Z](?:[A-Z_]|\dx?)*\b/ 13149 }), Prism.languages.insertBefore("javascript", "string", { 13150 hashbang: { 13151 pattern: /^#!.*/, 13152 greedy: !0, 13153 alias: "comment" 13154 }, 13155 "template-string": { 13156 pattern: /`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/, 13157 greedy: !0, 13158 inside: { 13159 "template-punctuation": { 13160 pattern: /^`|`$/, 13161 alias: "string" 13162 }, 13163 interpolation: { 13164 pattern: /((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/, 13165 lookbehind: !0, 13166 inside: { 13167 "interpolation-punctuation": { 13168 pattern: /^\$\{|\}$/, 13169 alias: "punctuation" 13170 }, 13171 rest: Prism.languages.javascript 13172 } 13173 }, 13174 string: /[\s\S]+/ 13175 } 13176 }, 13177 "string-property": { 13178 pattern: /((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m, 13179 lookbehind: !0, 13180 greedy: !0, 13181 alias: "property" 13182 } 13183 }), Prism.languages.insertBefore("javascript", "operator", { 13184 "literal-property": { 13185 pattern: /((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m, 13186 lookbehind: !0, 13187 alias: "property" 13188 } 13189 }), Prism.languages.markup && (Prism.languages.markup.tag.addInlined("script", "javascript"), Prism.languages.markup.tag.addAttribute( 13190 /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, 13191 "javascript" 13192 )), Prism.languages.js = Prism.languages.javascript; 13193 } 13194 } 13195}); 13196
vendor: 4,487 bytes, lines 13197-13302
13197// ../../node_modules/refractor/core.js 13198var require_core = __commonJS({ 13199 "../../node_modules/refractor/core.js"(exports, module2) { 13200 "use strict"; 13201 var ctx = typeof globalThis == "object" ? globalThis : typeof self == "object" ? self : typeof window == "object" ? window : typeof global == "object" ? global : {}, restore = capture(); 13202 ctx.Prism = { manual: !0, disableWorkerMessageHandler: !0 }; 13203 var h3 = require_hastscript(), decode = require_parse_entities(), Prism = require_prism_core(), markup2 = require_markup(), css3 = require_css(), clike = require_clike(), js = require_javascript(); 13204 restore(); 13205 var own = {}.hasOwnProperty; 13206 function Refractor() { 13207 } 13208 Refractor.prototype = Prism; 13209 var refract = new Refractor(); 13210 module2.exports = refract; 13211 refract.highlight = highlight; 13212 refract.register = register; 13213 refract.alias = alias; 13214 refract.registered = registered; 13215 refract.listLanguages = listLanguages; 13216 register(markup2); 13217 register(css3); 13218 register(clike); 13219 register(js); 13220 refract.util.encode = encode2; 13221 refract.Token.stringify = stringify8; 13222 function register(grammar) { 13223 if (typeof grammar != "function" || !grammar.displayName) 13224 throw new Error("Expected `function` for `grammar`, got `" + grammar + "`"); 13225 refract.languages[grammar.displayName] === void 0 && grammar(refract); 13226 } 13227 function alias(name, alias2) { 13228 var languages2 = refract.languages, map2 = name, key, list, length2, index4; 13229 alias2 && (map2 = {}, map2[name] = alias2); 13230 for (key in map2) 13231 for (list = map2[key], list = typeof list == "string" ? [list] : list, length2 = list.length, index4 = -1; ++index4 < length2; ) 13232 languages2[list[index4]] = languages2[key]; 13233 } 13234 function highlight(value, name) { 13235 var sup = Prism.highlight, grammar; 13236 if (typeof value != "string") 13237 throw new Error("Expected `string` for `value`, got `" + value + "`"); 13238 if (refract.util.type(name) === "Object") 13239 grammar = name, name = null; 13240 else { 13241 if (typeof name != "string") 13242 throw new Error("Expected `string` for `name`, got `" + name + "`"); 13243 if (own.call(refract.languages, name)) 13244 grammar = refract.languages[name]; 13245 else 13246 throw new Error("Unknown language: `" + name + "` is not registered"); 13247 } 13248 return sup.call(this, value, grammar, name); 13249 } 13250 function registered(language) { 13251 if (typeof language != "string") 13252 throw new Error("Expected `string` for `language`, got `" + language + "`"); 13253 return own.call(refract.languages, language); 13254 } 13255 function listLanguages() { 13256 var languages2 = refract.languages, list = [], language; 13257 for (language in languages2) 13258 own.call(languages2, language) && typeof languages2[language] == "object" && list.push(language); 13259 return list; 13260 } 13261 function stringify8(value, language, parent) { 13262 var env; 13263 return typeof value == "string" ? { type: "text", value } : refract.util.type(value) === "Array" ? stringifyAll(value, language) : (env = { 13264 type: value.type, 13265 content: refract.Token.stringify(value.content, language, parent), 13266 tag: "span", 13267 classes: ["token", value.type], 13268 attributes: {}, 13269 language, 13270 parent 13271 }, value.alias && (env.classes = env.classes.concat(value.alias)), refract.hooks.run("wrap", env), h3( 13272 env.tag + "." + env.classes.join("."), 13273 attributes(env.attributes), 13274 env.content 13275 )); 13276 } 13277 function stringifyAll(values, language) { 13278 for (var result = [], length2 = values.length, index4 = -1, value; ++index4 < length2; ) 13279 value = values[index4], value !== "" && value !== null && value !== void 0 && result.push(value); 13280 for (index4 = -1, length2 = result.length; ++index4 < length2; ) 13281 value = result[index4], result[index4] = refract.Token.stringify(value, language, result); 13282 return result; 13283 } 13284 function encode2(tokens2) { 13285 return tokens2; 13286 } 13287 function attributes(attrs) { 13288 var key; 13289 for (key in attrs) 13290 attrs[key] = decode(attrs[key]); 13291 return attrs; 13292 } 13293 function capture() { 13294 var defined = "Prism" in ctx, current = defined ? ctx.Prism : void 0; 13295 return restore2; 13296 function restore2() { 13297 defined ? ctx.Prism = current : delete ctx.Prism, defined = void 0, current = void 0; 13298 } 13299 } 13300 } 13301}); 13302
vendor: 659 bytes, lines 13303-13317
13303// ../../node_modules/react-syntax-highlighter/dist/esm/prism-light.js 13304var import_core, SyntaxHighlighter, prism_light_default, init_prism_light = __esm({ 13305 "../../node_modules/react-syntax-highlighter/dist/esm/prism-light.js"() { 13306 init_highlight(); 13307 import_core = __toESM(require_core()), SyntaxHighlighter = highlight_default(import_core.default, {}); 13308 SyntaxHighlighter.registerLanguage = function(_, language) { 13309 return import_core.default.register(language); 13310 }; 13311 SyntaxHighlighter.alias = function(name, aliases2) { 13312 return import_core.default.alias(name, aliases2); 13313 }; 13314 prism_light_default = SyntaxHighlighter; 13315 } 13316}); 13317
vendor: 2,267 bytes, lines 13318-13380
13318// src/components/components/ActionBar/ActionBar.tsx 13319var import_react10, Container, ActionButton, ActionBar, init_ActionBar = __esm({ 13320 "src/components/components/ActionBar/ActionBar.tsx"() { 13321 "use strict"; 13322 import_react10 = __toESM(require_react(), 1); 13323 init_theming(); 13324 Container = styled.div(({ theme: theme3, $flexLayout = !1 }) => [ 13325 { 13326 background: theme3.background.content 13327 }, 13328 $flexLayout ? { 13329 display: "inline-flex", 13330 marginInlineStart: "auto", 13331 alignSelf: "flex-end" 13332 } : { 13333 position: "absolute", 13334 bottom: 0, 13335 right: 0, 13336 maxWidth: "100%", 13337 display: "flex", 13338 zIndex: 1 13339 } 13340 ]), ActionButton = styled.button( 13341 ({ theme: theme3 }) => ({ 13342 margin: 0, 13343 border: "0 none", 13344 padding: "4px 10px", 13345 cursor: "pointer", 13346 display: "flex", 13347 alignItems: "center", 13348 color: theme3.color.defaultText, 13349 background: theme3.background.content, 13350 fontSize: 12, 13351 lineHeight: "16px", 13352 fontFamily: theme3.typography.fonts.base, 13353 fontWeight: theme3.typography.weight.bold, 13354 borderTop: `1px solid ${theme3.appBorderColor}`, 13355 borderLeft: `1px solid ${theme3.appBorderColor}`, 13356 marginLeft: -1, 13357 borderRadius: "4px 0 0 0", 13358 "&:not(:last-child)": { borderRight: `1px solid ${theme3.appBorderColor}` }, 13359 "& + *": { 13360 borderLeft: `1px solid ${theme3.appBorderColor}`, 13361 borderRadius: 0 13362 }, 13363 "&:focus": { 13364 boxShadow: `${theme3.color.secondary} 0 -3px 0 0 inset`, 13365 outline: "0 none", 13366 "@media (forced-colors: active)": { 13367 outline: "1px solid highlight" 13368 } 13369 } 13370 }), 13371 ({ disabled }) => disabled && { 13372 cursor: "not-allowed", 13373 opacity: 0.5 13374 } 13375 ); 13376 ActionButton.displayName = "ActionButton"; 13377 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))); 13378 } 13379}); 13380
vendor: 607 bytes, lines 13381-13396
13381// ../../node_modules/@radix-ui/react-scroll-area/node_modules/@radix-ui/react-compose-refs/dist/index.mjs 13382function setRef(ref, value) { 13383 typeof ref == "function" ? ref(value) : ref != null && (ref.current = value); 13384} 13385function composeRefs(...refs) { 13386 return (node2) => refs.forEach((ref) => setRef(ref, node2)); 13387} 13388function useComposedRefs(...refs) { 13389 return React9.useCallback(composeRefs(...refs), refs); 13390} 13391var React9, init_dist2 = __esm({ 13392 "../../node_modules/@radix-ui/react-scroll-area/node_modules/@radix-ui/react-compose-refs/dist/index.mjs"() { 13393 React9 = __toESM(require_react(), 1); 13394 } 13395}); 13396
vendor: 1,024 bytes, lines 13397-13414
13397// ../../node_modules/react/cjs/react-jsx-runtime.production.min.js 13398var require_react_jsx_runtime_production_min = __commonJS({ 13399 "../../node_modules/react/cjs/react-jsx-runtime.production.min.js"(exports) { 13400 "use strict"; 13401 var f4 = require_react(), k = Symbol.for("react.element"), l = 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 }; 13402 function q(c, a3, g2) { 13403 var b, d = {}, e = null, h3 = null; 13404 g2 !== void 0 && (e = "" + g2), a3.key !== void 0 && (e = "" + a3.key), a3.ref !== void 0 && (h3 = a3.ref); 13405 for (b in a3) m3.call(a3, b) && !p3.hasOwnProperty(b) && (d[b] = a3[b]); 13406 if (c && c.defaultProps) for (b in a3 = c.defaultProps, a3) d[b] === void 0 && (d[b] = a3[b]); 13407 return { $$typeof: k, type: c, key: e, ref: h3, props: d, _owner: n.current }; 13408 } 13409 exports.Fragment = l; 13410 exports.jsx = q; 13411 exports.jsxs = q; 13412 } 13413}); 13414
vendor: 239 bytes, lines 13415-13422
13415// ../../node_modules/react/jsx-runtime.js 13416var require_jsx_runtime = __commonJS({ 13417 "../../node_modules/react/jsx-runtime.js"(exports, module2) { 13418 "use strict"; 13419 module2.exports = require_react_jsx_runtime_production_min(); 13420 } 13421}); 13422
vendor: 3,138 bytes, lines 13423-13470
13423// ../../node_modules/@radix-ui/react-scroll-area/node_modules/@radix-ui/react-slot/dist/index.mjs 13424function isSlottable(child) { 13425 return React10.isValidElement(child) && child.type === Slottable; 13426} 13427function mergeProps(slotProps, childProps) { 13428 let overrideProps = { ...childProps }; 13429 for (let propName in childProps) { 13430 let slotPropValue = slotProps[propName], childPropValue = childProps[propName]; 13431 /^on[A-Z]/.test(propName) ? slotPropValue && childPropValue ? overrideProps[propName] = (...args) => { 13432 childPropValue(...args), slotPropValue(...args); 13433 } : slotPropValue && (overrideProps[propName] = slotPropValue) : propName === "style" ? overrideProps[propName] = { ...slotPropValue, ...childPropValue } : propName === "className" && (overrideProps[propName] = [slotPropValue, childPropValue].filter(Boolean).join(" ")); 13434 } 13435 return { ...slotProps, ...overrideProps }; 13436} 13437function getElementRef(element) { 13438 let getter = Object.getOwnPropertyDescriptor(element.props, "ref")?.get, mayWarn = getter && "isReactWarning" in getter && getter.isReactWarning; 13439 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); 13440} 13441var React10, import_jsx_runtime, Slot, SlotClone, Slottable, init_dist3 = __esm({ 13442 "../../node_modules/@radix-ui/react-scroll-area/node_modules/@radix-ui/react-slot/dist/index.mjs"() { 13443 React10 = __toESM(require_react(), 1); 13444 init_dist2(); 13445 import_jsx_runtime = __toESM(require_jsx_runtime(), 1), Slot = React10.forwardRef((props, forwardedRef) => { 13446 let { children, ...slotProps } = props, childrenArray = React10.Children.toArray(children), slottable = childrenArray.find(isSlottable); 13447 if (slottable) { 13448 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); 13449 return (0, import_jsx_runtime.jsx)(SlotClone, { ...slotProps, ref: forwardedRef, children: React10.isValidElement(newElement) ? React10.cloneElement(newElement, void 0, newChildren) : null }); 13450 } 13451 return (0, import_jsx_runtime.jsx)(SlotClone, { ...slotProps, ref: forwardedRef, children }); 13452 }); 13453 Slot.displayName = "Slot"; 13454 SlotClone = React10.forwardRef((props, forwardedRef) => { 13455 let { children, ...slotProps } = props; 13456 if (React10.isValidElement(children)) { 13457 let childrenRef = getElementRef(children); 13458 return React10.cloneElement(children, { 13459 ...mergeProps(slotProps, children.props), 13460 // @ts-ignore 13461 ref: forwardedRef ? composeRefs(forwardedRef, childrenRef) : childrenRef 13462 }); 13463 } 13464 return React10.Children.count(children) > 1 ? React10.Children.only(null) : null; 13465 }); 13466 SlotClone.displayName = "SlotClone"; 13467 Slottable = ({ children }) => (0, import_jsx_runtime.jsx)(import_jsx_runtime.Fragment, { children }); 13468 } 13469}); 13470
vendor: 1,159 bytes, lines 13471-13502
13471// ../../node_modules/@radix-ui/react-scroll-area/node_modules/@radix-ui/react-primitive/dist/index.mjs 13472var React11, ReactDOM, import_jsx_runtime2, NODES, Primitive, init_dist4 = __esm({ 13473 "../../node_modules/@radix-ui/react-scroll-area/node_modules/@radix-ui/react-primitive/dist/index.mjs"() { 13474 React11 = __toESM(require_react(), 1), ReactDOM = __toESM(require_react_dom(), 1); 13475 init_dist3(); 13476 import_jsx_runtime2 = __toESM(require_jsx_runtime(), 1), NODES = [ 13477 "a", 13478 "button", 13479 "div", 13480 "form", 13481 "h2", 13482 "h3", 13483 "img", 13484 "input", 13485 "label", 13486 "li", 13487 "nav", 13488 "ol", 13489 "p", 13490 "span", 13491 "svg", 13492 "ul" 13493 ], Primitive = NODES.reduce((primitive, node2) => { 13494 let Node2 = React11.forwardRef((props, forwardedRef) => { 13495 let { asChild, ...primitiveProps } = props, Comp2 = asChild ? Slot : node2; 13496 return typeof window < "u" && (window[Symbol.for("radix-ui")] = !0), (0, import_jsx_runtime2.jsx)(Comp2, { ...primitiveProps, ref: forwardedRef }); 13497 }); 13498 return Node2.displayName = `Primitive.${node2}`, { ...primitive, [node2]: Node2 }; 13499 }, {}); 13500 } 13501}); 13502
vendor: 418 bytes, lines 13503-13510
13503// ../../node_modules/@radix-ui/react-scroll-area/node_modules/@radix-ui/react-use-layout-effect/dist/index.mjs 13504var React12, useLayoutEffect22, init_dist5 = __esm({ 13505 "../../node_modules/@radix-ui/react-scroll-area/node_modules/@radix-ui/react-use-layout-effect/dist/index.mjs"() { 13506 React12 = __toESM(require_react(), 1), useLayoutEffect22 = globalThis?.document ? React12.useLayoutEffect : () => { 13507 }; 13508 } 13509}); 13510
vendor: 3,953 bytes, lines 13511-13579
13511// ../../node_modules/@radix-ui/react-scroll-area/node_modules/@radix-ui/react-presence/dist/index.mjs 13512function useStateMachine(initialState2, machine) { 13513 return React13.useReducer((state3, event) => machine[state3][event] ?? state3, initialState2); 13514} 13515function usePresence(present) { 13516 let [node2, setNode] = React22.useState(), stylesRef = React22.useRef({}), prevPresentRef = React22.useRef(present), prevAnimationNameRef = React22.useRef("none"), initialState2 = present ? "mounted" : "unmounted", [state3, send] = useStateMachine(initialState2, { 13517 mounted: { 13518 UNMOUNT: "unmounted", 13519 ANIMATION_OUT: "unmountSuspended" 13520 }, 13521 unmountSuspended: { 13522 MOUNT: "mounted", 13523 ANIMATION_END: "unmounted" 13524 }, 13525 unmounted: { 13526 MOUNT: "mounted" 13527 } 13528 }); 13529 return React22.useEffect(() => { 13530 let currentAnimationName = getAnimationName(stylesRef.current); 13531 prevAnimationNameRef.current = state3 === "mounted" ? currentAnimationName : "none"; 13532 }, [state3]), useLayoutEffect22(() => { 13533 let styles4 = stylesRef.current, wasPresent = prevPresentRef.current; 13534 if (wasPresent !== present) { 13535 let prevAnimationName = prevAnimationNameRef.current, currentAnimationName = getAnimationName(styles4); 13536 present ? send("MOUNT") : currentAnimationName === "none" || styles4?.display === "none" ? send("UNMOUNT") : send(wasPresent && prevAnimationName !== currentAnimationName ? "ANIMATION_OUT" : "UNMOUNT"), prevPresentRef.current = present; 13537 } 13538 }, [present, send]), useLayoutEffect22(() => { 13539 if (node2) { 13540 let handleAnimationEnd = (event) => { 13541 let isCurrentAnimation = getAnimationName(stylesRef.current).includes(event.animationName); 13542 event.target === node2 && isCurrentAnimation && ReactDOM2.flushSync(() => send("ANIMATION_END")); 13543 }, handleAnimationStart = (event) => { 13544 event.target === node2 && (prevAnimationNameRef.current = getAnimationName(stylesRef.current)); 13545 }; 13546 return node2.addEventListener("animationstart", handleAnimationStart), node2.addEventListener("animationcancel", handleAnimationEnd), node2.addEventListener("animationend", handleAnimationEnd), () => { 13547 node2.removeEventListener("animationstart", handleAnimationStart), node2.removeEventListener("animationcancel", handleAnimationEnd), node2.removeEventListener("animationend", handleAnimationEnd); 13548 }; 13549 } else 13550 send("ANIMATION_END"); 13551 }, [node2, send]), { 13552 isPresent: ["mounted", "unmountSuspended"].includes(state3), 13553 ref: React22.useCallback((node22) => { 13554 node22 && (stylesRef.current = getComputedStyle(node22)), setNode(node22); 13555 }, []) 13556 }; 13557} 13558function getAnimationName(styles4) { 13559 return styles4?.animationName || "none"; 13560} 13561function getElementRef2(element) { 13562 let getter = Object.getOwnPropertyDescriptor(element.props, "ref")?.get, mayWarn = getter && "isReactWarning" in getter && getter.isReactWarning; 13563 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); 13564} 13565var React22, ReactDOM2, React13, Presence, init_dist6 = __esm({ 13566 "../../node_modules/@radix-ui/react-scroll-area/node_modules/@radix-ui/react-presence/dist/index.mjs"() { 13567 "use client"; 13568 React22 = __toESM(require_react(), 1), ReactDOM2 = __toESM(require_react_dom(), 1); 13569 init_dist2(); 13570 init_dist5(); 13571 React13 = __toESM(require_react(), 1); 13572 Presence = (props) => { 13573 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)); 13574 return typeof children == "function" || presence.isPresent ? React22.cloneElement(child, { ref }) : null; 13575 }; 13576 Presence.displayName = "Presence"; 13577 } 13578}); 13579
vendor: 2,663 bytes, lines 13580-13633
13580// ../../node_modules/@radix-ui/react-scroll-area/node_modules/@radix-ui/react-context/dist/index.mjs 13581function createContextScope(scopeName, createContextScopeDeps = []) { 13582 let defaultContexts = []; 13583 function createContext32(rootComponentName, defaultContext) { 13584 let BaseContext = React14.createContext(defaultContext), index4 = defaultContexts.length; 13585 defaultContexts = [...defaultContexts, defaultContext]; 13586 function Provider(props) { 13587 let { scope: scope2, children, ...context } = props, Context = scope2?.[scopeName][index4] || BaseContext, value = React14.useMemo(() => context, Object.values(context)); 13588 return (0, import_jsx_runtime3.jsx)(Context.Provider, { value, children }); 13589 } 13590 function useContext22(consumerName, scope2) { 13591 let Context = scope2?.[scopeName][index4] || BaseContext, context = React14.useContext(Context); 13592 if (context) return context; 13593 if (defaultContext !== void 0) return defaultContext; 13594 throw new Error(`\`${consumerName}\` must be used within \`${rootComponentName}\``); 13595 } 13596 return Provider.displayName = rootComponentName + "Provider", [Provider, useContext22]; 13597 } 13598 let createScope = () => { 13599 let scopeContexts = defaultContexts.map((defaultContext) => React14.createContext(defaultContext)); 13600 return function(scope2) { 13601 let contexts = scope2?.[scopeName] || scopeContexts; 13602 return React14.useMemo( 13603 () => ({ [`__scope${scopeName}`]: { ...scope2, [scopeName]: contexts } }), 13604 [scope2, contexts] 13605 ); 13606 }; 13607 }; 13608 return createScope.scopeName = scopeName, [createContext32, composeContextScopes(createScope, ...createContextScopeDeps)]; 13609} 13610function composeContextScopes(...scopes) { 13611 let baseScope = scopes[0]; 13612 if (scopes.length === 1) return baseScope; 13613 let createScope = () => { 13614 let scopeHooks = scopes.map((createScope2) => ({ 13615 useScope: createScope2(), 13616 scopeName: createScope2.scopeName 13617 })); 13618 return function(overrideScopes) { 13619 let nextScopes = scopeHooks.reduce((nextScopes2, { useScope, scopeName }) => { 13620 let currentScope = useScope(overrideScopes)[`__scope${scopeName}`]; 13621 return { ...nextScopes2, ...currentScope }; 13622 }, {}); 13623 return React14.useMemo(() => ({ [`__scope${baseScope.scopeName}`]: nextScopes }), [nextScopes]); 13624 }; 13625 }; 13626 return createScope.scopeName = baseScope.scopeName, createScope; 13627} 13628var React14, import_jsx_runtime3, init_dist7 = __esm({ 13629 "../../node_modules/@radix-ui/react-scroll-area/node_modules/@radix-ui/react-context/dist/index.mjs"() { 13630 React14 = __toESM(require_react(), 1), import_jsx_runtime3 = __toESM(require_jsx_runtime(), 1); 13631 } 13632}); 13633
vendor: 546 bytes, lines 13634-13646
13634// ../../node_modules/@radix-ui/react-scroll-area/node_modules/@radix-ui/react-use-callback-ref/dist/index.mjs 13635function useCallbackRef(callback) { 13636 let callbackRef = React15.useRef(callback); 13637 return React15.useEffect(() => { 13638 callbackRef.current = callback; 13639 }), React15.useMemo(() => (...args) => callbackRef.current?.(...args), []); 13640} 13641var React15, init_dist8 = __esm({ 13642 "../../node_modules/@radix-ui/react-scroll-area/node_modules/@radix-ui/react-use-callback-ref/dist/index.mjs"() { 13643 React15 = __toESM(require_react(), 1); 13644 } 13645}); 13646
vendor: 578 bytes, lines 13647-13657
13647// ../../node_modules/@radix-ui/react-scroll-area/node_modules/@radix-ui/react-direction/dist/index.mjs 13648function useDirection(localDir) { 13649 let globalDir = React16.useContext(DirectionContext); 13650 return localDir || globalDir || "ltr"; 13651} 13652var React16, import_jsx_runtime4, DirectionContext, init_dist9 = __esm({ 13653 "../../node_modules/@radix-ui/react-scroll-area/node_modules/@radix-ui/react-direction/dist/index.mjs"() { 13654 React16 = __toESM(require_react(), 1), import_jsx_runtime4 = __toESM(require_jsx_runtime(), 1), DirectionContext = React16.createContext(void 0); 13655 } 13656}); 13657
vendor: 236 bytes, lines 13658-13666
13658// ../../node_modules/@radix-ui/number/dist/index.mjs 13659function clamp(value, [min2, max2]) { 13660 return Math.min(max2, Math.max(min2, value)); 13661} 13662var init_dist10 = __esm({ 13663 "../../node_modules/@radix-ui/number/dist/index.mjs"() { 13664 } 13665}); 13666
vendor: 519 bytes, lines 13667-13678
13667// ../../node_modules/@radix-ui/react-scroll-area/node_modules/@radix-ui/primitive/dist/index.mjs 13668function composeEventHandlers(originalEventHandler, ourEventHandler, { checkForDefaultPrevented = !0 } = {}) { 13669 return function(event) { 13670 if (originalEventHandler?.(event), checkForDefaultPrevented === !1 || !event.defaultPrevented) 13671 return ourEventHandler?.(event); 13672 }; 13673} 13674var init_dist11 = __esm({ 13675 "../../node_modules/@radix-ui/react-scroll-area/node_modules/@radix-ui/primitive/dist/index.mjs"() { 13676 } 13677}); 13678
vendor: 30,855 bytes, lines 13679-14237
13679// ../../node_modules/@radix-ui/react-scroll-area/dist/index.mjs 13680function useStateMachine2(initialState2, machine) { 13681 return React17.useReducer((state3, event) => machine[state3][event] ?? state3, initialState2); 13682} 13683function toInt(value) { 13684 return value ? parseInt(value, 10) : 0; 13685} 13686function getThumbRatio(viewportSize, contentSize) { 13687 let ratio = viewportSize / contentSize; 13688 return isNaN(ratio) ? 0 : ratio; 13689} 13690function getThumbSize(sizes2) { 13691 let ratio = getThumbRatio(sizes2.viewport, sizes2.content), scrollbarPadding = sizes2.scrollbar.paddingStart + sizes2.scrollbar.paddingEnd, thumbSize = (sizes2.scrollbar.size - scrollbarPadding) * ratio; 13692 return Math.max(thumbSize, 18); 13693} 13694function getScrollPositionFromPointer(pointerPos, pointerOffset, sizes2, dir = "ltr") { 13695 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]; 13696 return linearScale([minPointerPos, maxPointerPos], scrollRange)(pointerPos); 13697} 13698function getThumbOffsetFromScroll(scrollPos, sizes2, dir = "ltr") { 13699 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); 13700 return linearScale([0, maxScrollPos], [0, maxThumbPos])(scrollWithoutMomentum); 13701} 13702function linearScale(input2, output) { 13703 return (value) => { 13704 if (input2[0] === input2[1] || output[0] === output[1]) return output[0]; 13705 let ratio = (output[1] - output[0]) / (input2[1] - input2[0]); 13706 return output[0] + ratio * (value - input2[0]); 13707 }; 13708} 13709function isScrollingWithinScrollbarBounds(scrollPos, maxScrollPos) { 13710 return scrollPos > 0 && scrollPos < maxScrollPos; 13711} 13712function useDebounceCallback(callback, delay) { 13713 let handleCallback = useCallbackRef(callback), debounceTimerRef = React23.useRef(0); 13714 return React23.useEffect(() => () => window.clearTimeout(debounceTimerRef.current), []), React23.useCallback(() => { 13715 window.clearTimeout(debounceTimerRef.current), debounceTimerRef.current = window.setTimeout(handleCallback, delay); 13716 }, [handleCallback, delay]); 13717} 13718function useResizeObserver(element, onResize) { 13719 let handleResize = useCallbackRef(onResize); 13720 useLayoutEffect22(() => { 13721 let rAF = 0; 13722 if (element) { 13723 let resizeObserver = new ResizeObserver(() => { 13724 cancelAnimationFrame(rAF), rAF = window.requestAnimationFrame(handleResize); 13725 }); 13726 return resizeObserver.observe(element), () => { 13727 window.cancelAnimationFrame(rAF), resizeObserver.unobserve(element); 13728 }; 13729 } 13730 }, [element, handleResize]); 13731} 13732function getSubtree(options, content) { 13733 let { asChild, children } = options; 13734 if (!asChild) return typeof content == "function" ? content(children) : content; 13735 let firstChild = React23.Children.only(children); 13736 return React23.cloneElement(firstChild, { 13737 children: typeof content == "function" ? content(firstChild.props.children) : content 13738 }); 13739} 13740var 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({ 13741 "../../node_modules/@radix-ui/react-scroll-area/dist/index.mjs"() { 13742 "use client"; 13743 React23 = __toESM(require_react(), 1); 13744 init_dist4(); 13745 init_dist6(); 13746 init_dist7(); 13747 init_dist2(); 13748 init_dist8(); 13749 init_dist9(); 13750 init_dist5(); 13751 init_dist10(); 13752 init_dist11(); 13753 React17 = __toESM(require_react(), 1), import_jsx_runtime5 = __toESM(require_jsx_runtime(), 1); 13754 SCROLL_AREA_NAME = "ScrollArea", [createScrollAreaContext, createScrollAreaScope] = createContextScope(SCROLL_AREA_NAME), [ScrollAreaProvider, useScrollAreaContext] = createScrollAreaContext(SCROLL_AREA_NAME), ScrollArea = React23.forwardRef( 13755 (props, forwardedRef) => { 13756 let { 13757 __scopeScrollArea, 13758 type: type5 = "hover", 13759 dir, 13760 scrollHideDelay = 600, 13761 ...scrollAreaProps 13762 } = 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); 13763 return (0, import_jsx_runtime5.jsx)( 13764 ScrollAreaProvider, 13765 { 13766 scope: __scopeScrollArea, 13767 type: type5, 13768 dir: direction, 13769 scrollHideDelay, 13770 scrollArea, 13771 viewport: viewport2, 13772 onViewportChange: setViewport, 13773 content, 13774 onContentChange: setContent, 13775 scrollbarX, 13776 onScrollbarXChange: setScrollbarX, 13777 scrollbarXEnabled, 13778 onScrollbarXEnabledChange: setScrollbarXEnabled, 13779 scrollbarY, 13780 onScrollbarYChange: setScrollbarY, 13781 scrollbarYEnabled, 13782 onScrollbarYEnabledChange: setScrollbarYEnabled, 13783 onCornerWidthChange: setCornerWidth, 13784 onCornerHeightChange: setCornerHeight, 13785 children: (0, import_jsx_runtime5.jsx)( 13786 Primitive.div, 13787 { 13788 dir: direction, 13789 ...scrollAreaProps, 13790 ref: composedRefs, 13791 style: { 13792 position: "relative", 13793 // Pass corner sizes as CSS vars to reduce re-renders of context consumers 13794 "--radix-scroll-area-corner-width": cornerWidth + "px", 13795 "--radix-scroll-area-corner-height": cornerHeight + "px", 13796 ...props.style 13797 } 13798 } 13799 ) 13800 } 13801 ); 13802 } 13803 ); 13804 ScrollArea.displayName = SCROLL_AREA_NAME; 13805 VIEWPORT_NAME = "ScrollAreaViewport", ScrollAreaViewport = React23.forwardRef( 13806 (props, forwardedRef) => { 13807 let { __scopeScrollArea, children, asChild, nonce, ...viewportProps } = props, context = useScrollAreaContext(VIEWPORT_NAME, __scopeScrollArea), ref = React23.useRef(null), composedRefs = useComposedRefs(forwardedRef, ref, context.onViewportChange); 13808 return (0, import_jsx_runtime5.jsxs)(import_jsx_runtime5.Fragment, { children: [ 13809 (0, import_jsx_runtime5.jsx)( 13810 "style", 13811 { 13812 dangerouslySetInnerHTML: { 13813 __html: ` 13814[data-radix-scroll-area-viewport] { 13815 scrollbar-width: none; 13816 -ms-overflow-style: none; 13817 -webkit-overflow-scrolling: touch; 13818} 13819[data-radix-scroll-area-viewport]::-webkit-scrollbar { 13820 display: none; 13821} 13822:where([data-radix-scroll-area-viewport]) { 13823 display: flex; 13824 flex-direction: column; 13825 align-items: stretch; 13826} 13827:where([data-radix-scroll-area-content]) { 13828 flex-grow: 1; 13829} 13830` 13831 }, 13832 nonce 13833 } 13834 ), 13835 (0, import_jsx_runtime5.jsx)( 13836 Primitive.div, 13837 { 13838 "data-radix-scroll-area-viewport": "", 13839 ...viewportProps, 13840 asChild, 13841 ref: composedRefs, 13842 style: { 13843 /** 13844 * We don't support `visible` because the intention is to have at least one scrollbar 13845 * if this component is used and `visible` will behave like `auto` in that case 13846 * https://developer.mozilla.org/en-US/docs/Web/CSS/overflow#description 13847 * 13848 * We don't handle `auto` because the intention is for the native implementation 13849 * to be hidden if using this component. We just want to ensure the node is scrollable 13850 * so could have used either `scroll` or `auto` here. We picked `scroll` to prevent 13851 * the browser from having to work out whether to render native scrollbars or not, 13852 * we tell it to with the intention of hiding them in CSS. 13853 */ 13854 overflowX: context.scrollbarXEnabled ? "scroll" : "hidden", 13855 overflowY: context.scrollbarYEnabled ? "scroll" : "hidden", 13856 ...props.style 13857 }, 13858 children: getSubtree({ asChild, children }, (children2) => (0, import_jsx_runtime5.jsx)( 13859 "div", 13860 { 13861 "data-radix-scroll-area-content": "", 13862 ref: context.onContentChange, 13863 style: { minWidth: context.scrollbarXEnabled ? "fit-content" : void 0 }, 13864 children: children2 13865 } 13866 )) 13867 } 13868 ) 13869 ] }); 13870 } 13871 ); 13872 ScrollAreaViewport.displayName = VIEWPORT_NAME; 13873 SCROLLBAR_NAME = "ScrollAreaScrollbar", ScrollAreaScrollbar = React23.forwardRef( 13874 (props, forwardedRef) => { 13875 let { forceMount, ...scrollbarProps } = props, context = useScrollAreaContext(SCROLLBAR_NAME, props.__scopeScrollArea), { onScrollbarXEnabledChange, onScrollbarYEnabledChange } = context, isHorizontal = props.orientation === "horizontal"; 13876 return React23.useEffect(() => (isHorizontal ? onScrollbarXEnabledChange(!0) : onScrollbarYEnabledChange(!0), () => { 13877 isHorizontal ? onScrollbarXEnabledChange(!1) : onScrollbarYEnabledChange(!1); 13878 }), [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; 13879 } 13880 ); 13881 ScrollAreaScrollbar.displayName = SCROLLBAR_NAME; 13882 ScrollAreaScrollbarHover = React23.forwardRef((props, forwardedRef) => { 13883 let { forceMount, ...scrollbarProps } = props, context = useScrollAreaContext(SCROLLBAR_NAME, props.__scopeScrollArea), [visible, setVisible] = React23.useState(!1); 13884 return React23.useEffect(() => { 13885 let scrollArea = context.scrollArea, hideTimer = 0; 13886 if (scrollArea) { 13887 let handlePointerEnter = () => { 13888 window.clearTimeout(hideTimer), setVisible(!0); 13889 }, handlePointerLeave = () => { 13890 hideTimer = window.setTimeout(() => setVisible(!1), context.scrollHideDelay); 13891 }; 13892 return scrollArea.addEventListener("pointerenter", handlePointerEnter), scrollArea.addEventListener("pointerleave", handlePointerLeave), () => { 13893 window.clearTimeout(hideTimer), scrollArea.removeEventListener("pointerenter", handlePointerEnter), scrollArea.removeEventListener("pointerleave", handlePointerLeave); 13894 }; 13895 } 13896 }, [context.scrollArea, context.scrollHideDelay]), (0, import_jsx_runtime5.jsx)(Presence, { present: forceMount || visible, children: (0, import_jsx_runtime5.jsx)( 13897 ScrollAreaScrollbarAuto, 13898 { 13899 "data-state": visible ? "visible" : "hidden", 13900 ...scrollbarProps, 13901 ref: forwardedRef 13902 } 13903 ) }); 13904 }), ScrollAreaScrollbarScroll = React23.forwardRef((props, forwardedRef) => { 13905 let { forceMount, ...scrollbarProps } = props, context = useScrollAreaContext(SCROLLBAR_NAME, props.__scopeScrollArea), isHorizontal = props.orientation === "horizontal", debounceScrollEnd = useDebounceCallback(() => send("SCROLL_END"), 100), [state3, send] = useStateMachine2("hidden", { 13906 hidden: { 13907 SCROLL: "scrolling" 13908 }, 13909 scrolling: { 13910 SCROLL_END: "idle", 13911 POINTER_ENTER: "interacting" 13912 }, 13913 interacting: { 13914 SCROLL: "interacting", 13915 POINTER_LEAVE: "idle" 13916 }, 13917 idle: { 13918 HIDE: "hidden", 13919 SCROLL: "scrolling", 13920 POINTER_ENTER: "interacting" 13921 } 13922 }); 13923 return React23.useEffect(() => { 13924 if (state3 === "idle") { 13925 let hideTimer = window.setTimeout(() => send("HIDE"), context.scrollHideDelay); 13926 return () => window.clearTimeout(hideTimer); 13927 } 13928 }, [state3, context.scrollHideDelay, send]), React23.useEffect(() => { 13929 let viewport2 = context.viewport, scrollDirection = isHorizontal ? "scrollLeft" : "scrollTop"; 13930 if (viewport2) { 13931 let prevScrollPos = viewport2[scrollDirection], handleScroll = () => { 13932 let scrollPos = viewport2[scrollDirection]; 13933 prevScrollPos !== scrollPos && (send("SCROLL"), debounceScrollEnd()), prevScrollPos = scrollPos; 13934 }; 13935 return viewport2.addEventListener("scroll", handleScroll), () => viewport2.removeEventListener("scroll", handleScroll); 13936 } 13937 }, [context.viewport, isHorizontal, send, debounceScrollEnd]), (0, import_jsx_runtime5.jsx)(Presence, { present: forceMount || state3 !== "hidden", children: (0, import_jsx_runtime5.jsx)( 13938 ScrollAreaScrollbarVisible, 13939 { 13940 "data-state": state3 === "hidden" ? "hidden" : "visible", 13941 ...scrollbarProps, 13942 ref: forwardedRef, 13943 onPointerEnter: composeEventHandlers(props.onPointerEnter, () => send("POINTER_ENTER")), 13944 onPointerLeave: composeEventHandlers(props.onPointerLeave, () => send("POINTER_LEAVE")) 13945 } 13946 ) }); 13947 }), ScrollAreaScrollbarAuto = React23.forwardRef((props, forwardedRef) => { 13948 let context = useScrollAreaContext(SCROLLBAR_NAME, props.__scopeScrollArea), { forceMount, ...scrollbarProps } = props, [visible, setVisible] = React23.useState(!1), isHorizontal = props.orientation === "horizontal", handleResize = useDebounceCallback(() => { 13949 if (context.viewport) { 13950 let isOverflowX = context.viewport.offsetWidth < context.viewport.scrollWidth, isOverflowY = context.viewport.offsetHeight < context.viewport.scrollHeight; 13951 setVisible(isHorizontal ? isOverflowX : isOverflowY); 13952 } 13953 }, 10); 13954 return useResizeObserver(context.viewport, handleResize), useResizeObserver(context.content, handleResize), (0, import_jsx_runtime5.jsx)(Presence, { present: forceMount || visible, children: (0, import_jsx_runtime5.jsx)( 13955 ScrollAreaScrollbarVisible, 13956 { 13957 "data-state": visible ? "visible" : "hidden", 13958 ...scrollbarProps, 13959 ref: forwardedRef 13960 } 13961 ) }); 13962 }), ScrollAreaScrollbarVisible = React23.forwardRef((props, forwardedRef) => { 13963 let { orientation = "vertical", ...scrollbarProps } = props, context = useScrollAreaContext(SCROLLBAR_NAME, props.__scopeScrollArea), thumbRef = React23.useRef(null), pointerOffsetRef = React23.useRef(0), [sizes2, setSizes] = React23.useState({ 13964 content: 0, 13965 viewport: 0, 13966 scrollbar: { size: 0, paddingStart: 0, paddingEnd: 0 } 13967 }), thumbRatio = getThumbRatio(sizes2.viewport, sizes2.content), commonProps = { 13968 ...scrollbarProps, 13969 sizes: sizes2, 13970 onSizesChange: setSizes, 13971 hasThumb: thumbRatio > 0 && thumbRatio < 1, 13972 onThumbChange: (thumb) => thumbRef.current = thumb, 13973 onThumbPointerUp: () => pointerOffsetRef.current = 0, 13974 onThumbPointerDown: (pointerPos) => pointerOffsetRef.current = pointerPos 13975 }; 13976 function getScrollPosition(pointerPos, dir) { 13977 return getScrollPositionFromPointer(pointerPos, pointerOffsetRef.current, sizes2, dir); 13978 } 13979 return orientation === "horizontal" ? (0, import_jsx_runtime5.jsx)( 13980 ScrollAreaScrollbarX, 13981 { 13982 ...commonProps, 13983 ref: forwardedRef, 13984 onThumbPositionChange: () => { 13985 if (context.viewport && thumbRef.current) { 13986 let scrollPos = context.viewport.scrollLeft, offset3 = getThumbOffsetFromScroll(scrollPos, sizes2, context.dir); 13987 thumbRef.current.style.transform = `translate3d(${offset3}px, 0, 0)`; 13988 } 13989 }, 13990 onWheelScroll: (scrollPos) => { 13991 context.viewport && (context.viewport.scrollLeft = scrollPos); 13992 }, 13993 onDragScroll: (pointerPos) => { 13994 context.viewport && (context.viewport.scrollLeft = getScrollPosition(pointerPos, context.dir)); 13995 } 13996 } 13997 ) : orientation === "vertical" ? (0, import_jsx_runtime5.jsx)( 13998 ScrollAreaScrollbarY, 13999 { 14000 ...commonProps, 14001 ref: forwardedRef, 14002 onThumbPositionChange: () => { 14003 if (context.viewport && thumbRef.current) { 14004 let scrollPos = context.viewport.scrollTop, offset3 = getThumbOffsetFromScroll(scrollPos, sizes2); 14005 thumbRef.current.style.transform = `translate3d(0, ${offset3}px, 0)`; 14006 } 14007 }, 14008 onWheelScroll: (scrollPos) => { 14009 context.viewport && (context.viewport.scrollTop = scrollPos); 14010 }, 14011 onDragScroll: (pointerPos) => { 14012 context.viewport && (context.viewport.scrollTop = getScrollPosition(pointerPos)); 14013 } 14014 } 14015 ) : null; 14016 }), ScrollAreaScrollbarX = React23.forwardRef((props, forwardedRef) => { 14017 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); 14018 return React23.useEffect(() => { 14019 ref.current && setComputedStyle(getComputedStyle(ref.current)); 14020 }, [ref]), (0, import_jsx_runtime5.jsx)( 14021 ScrollAreaScrollbarImpl, 14022 { 14023 "data-orientation": "horizontal", 14024 ...scrollbarProps, 14025 ref: composeRefs3, 14026 sizes: sizes2, 14027 style: { 14028 bottom: 0, 14029 left: context.dir === "rtl" ? "var(--radix-scroll-area-corner-width)" : 0, 14030 right: context.dir === "ltr" ? "var(--radix-scroll-area-corner-width)" : 0, 14031 "--radix-scroll-area-thumb-width": getThumbSize(sizes2) + "px", 14032 ...props.style 14033 }, 14034 onThumbPointerDown: (pointerPos) => props.onThumbPointerDown(pointerPos.x), 14035 onDragScroll: (pointerPos) => props.onDragScroll(pointerPos.x), 14036 onWheelScroll: (event, maxScrollPos) => { 14037 if (context.viewport) { 14038 let scrollPos = context.viewport.scrollLeft + event.deltaX; 14039 props.onWheelScroll(scrollPos), isScrollingWithinScrollbarBounds(scrollPos, maxScrollPos) && event.preventDefault(); 14040 } 14041 }, 14042 onResize: () => { 14043 ref.current && context.viewport && computedStyle && onSizesChange({ 14044 content: context.viewport.scrollWidth, 14045 viewport: context.viewport.offsetWidth, 14046 scrollbar: { 14047 size: ref.current.clientWidth, 14048 paddingStart: toInt(computedStyle.paddingLeft), 14049 paddingEnd: toInt(computedStyle.paddingRight) 14050 } 14051 }); 14052 } 14053 } 14054 ); 14055 }), ScrollAreaScrollbarY = React23.forwardRef((props, forwardedRef) => { 14056 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); 14057 return React23.useEffect(() => { 14058 ref.current && setComputedStyle(getComputedStyle(ref.current)); 14059 }, [ref]), (0, import_jsx_runtime5.jsx)( 14060 ScrollAreaScrollbarImpl, 14061 { 14062 "data-orientation": "vertical", 14063 ...scrollbarProps, 14064 ref: composeRefs3, 14065 sizes: sizes2, 14066 style: { 14067 top: 0, 14068 right: context.dir === "ltr" ? 0 : void 0, 14069 left: context.dir === "rtl" ? 0 : void 0, 14070 bottom: "var(--radix-scroll-area-corner-height)", 14071 "--radix-scroll-area-thumb-height": getThumbSize(sizes2) + "px", 14072 ...props.style 14073 }, 14074 onThumbPointerDown: (pointerPos) => props.onThumbPointerDown(pointerPos.y), 14075 onDragScroll: (pointerPos) => props.onDragScroll(pointerPos.y), 14076 onWheelScroll: (event, maxScrollPos) => { 14077 if (context.viewport) { 14078 let scrollPos = context.viewport.scrollTop + event.deltaY; 14079 props.onWheelScroll(scrollPos), isScrollingWithinScrollbarBounds(scrollPos, maxScrollPos) && event.preventDefault(); 14080 } 14081 }, 14082 onResize: () => { 14083 ref.current && context.viewport && computedStyle && onSizesChange({ 14084 content: context.viewport.scrollHeight, 14085 viewport: context.viewport.offsetHeight, 14086 scrollbar: { 14087 size: ref.current.clientHeight, 14088 paddingStart: toInt(computedStyle.paddingTop), 14089 paddingEnd: toInt(computedStyle.paddingBottom) 14090 } 14091 }); 14092 } 14093 } 14094 ); 14095 }), [ScrollbarProvider, useScrollbarContext] = createScrollAreaContext(SCROLLBAR_NAME), ScrollAreaScrollbarImpl = React23.forwardRef((props, forwardedRef) => { 14096 let { 14097 __scopeScrollArea, 14098 sizes: sizes2, 14099 hasThumb, 14100 onThumbChange, 14101 onThumbPointerUp, 14102 onThumbPointerDown, 14103 onThumbPositionChange, 14104 onDragScroll, 14105 onWheelScroll, 14106 onResize, 14107 ...scrollbarProps 14108 } = 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); 14109 function handleDragScroll(event) { 14110 if (rectRef.current) { 14111 let x = event.clientX - rectRef.current.left, y = event.clientY - rectRef.current.top; 14112 onDragScroll({ x, y }); 14113 } 14114 } 14115 return React23.useEffect(() => { 14116 let handleWheel = (event) => { 14117 let element = event.target; 14118 scrollbar?.contains(element) && handleWheelScroll(event, maxScrollPos); 14119 }; 14120 return document.addEventListener("wheel", handleWheel, { passive: !1 }), () => document.removeEventListener("wheel", handleWheel, { passive: !1 }); 14121 }, [viewport2, scrollbar, maxScrollPos, handleWheelScroll]), React23.useEffect(handleThumbPositionChange, [sizes2, handleThumbPositionChange]), useResizeObserver(scrollbar, handleResize), useResizeObserver(context.content, handleResize), (0, import_jsx_runtime5.jsx)( 14122 ScrollbarProvider, 14123 { 14124 scope: __scopeScrollArea, 14125 scrollbar, 14126 hasThumb, 14127 onThumbChange: useCallbackRef(onThumbChange), 14128 onThumbPointerUp: useCallbackRef(onThumbPointerUp), 14129 onThumbPositionChange: handleThumbPositionChange, 14130 onThumbPointerDown: useCallbackRef(onThumbPointerDown), 14131 children: (0, import_jsx_runtime5.jsx)( 14132 Primitive.div, 14133 { 14134 ...scrollbarProps, 14135 ref: composeRefs3, 14136 style: { position: "absolute", ...scrollbarProps.style }, 14137 onPointerDown: composeEventHandlers(props.onPointerDown, (event) => { 14138 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)); 14139 }), 14140 onPointerMove: composeEventHandlers(props.onPointerMove, handleDragScroll), 14141 onPointerUp: composeEventHandlers(props.onPointerUp, (event) => { 14142 let element = event.target; 14143 element.hasPointerCapture(event.pointerId) && element.releasePointerCapture(event.pointerId), document.body.style.webkitUserSelect = prevWebkitUserSelectRef.current, context.viewport && (context.viewport.style.scrollBehavior = ""), rectRef.current = null; 14144 }) 14145 } 14146 ) 14147 } 14148 ); 14149 }), THUMB_NAME = "ScrollAreaThumb", ScrollAreaThumb = React23.forwardRef( 14150 (props, forwardedRef) => { 14151 let { forceMount, ...thumbProps } = props, scrollbarContext = useScrollbarContext(THUMB_NAME, props.__scopeScrollArea); 14152 return (0, import_jsx_runtime5.jsx)(Presence, { present: forceMount || scrollbarContext.hasThumb, children: (0, import_jsx_runtime5.jsx)(ScrollAreaThumbImpl, { ref: forwardedRef, ...thumbProps }) }); 14153 } 14154 ), ScrollAreaThumbImpl = React23.forwardRef( 14155 (props, forwardedRef) => { 14156 let { __scopeScrollArea, style, ...thumbProps } = props, scrollAreaContext = useScrollAreaContext(THUMB_NAME, __scopeScrollArea), scrollbarContext = useScrollbarContext(THUMB_NAME, __scopeScrollArea), { onThumbPositionChange } = scrollbarContext, composedRef = useComposedRefs( 14157 forwardedRef, 14158 (node2) => scrollbarContext.onThumbChange(node2) 14159 ), removeUnlinkedScrollListenerRef = React23.useRef(), debounceScrollEnd = useDebounceCallback(() => { 14160 removeUnlinkedScrollListenerRef.current && (removeUnlinkedScrollListenerRef.current(), removeUnlinkedScrollListenerRef.current = void 0); 14161 }, 100); 14162 return React23.useEffect(() => { 14163 let viewport2 = scrollAreaContext.viewport; 14164 if (viewport2) { 14165 let handleScroll = () => { 14166 if (debounceScrollEnd(), !removeUnlinkedScrollListenerRef.current) { 14167 let listener = addUnlinkedScrollListener(viewport2, onThumbPositionChange); 14168 removeUnlinkedScrollListenerRef.current = listener, onThumbPositionChange(); 14169 } 14170 }; 14171 return onThumbPositionChange(), viewport2.addEventListener("scroll", handleScroll), () => viewport2.removeEventListener("scroll", handleScroll); 14172 } 14173 }, [scrollAreaContext.viewport, debounceScrollEnd, onThumbPositionChange]), (0, import_jsx_runtime5.jsx)( 14174 Primitive.div, 14175 { 14176 "data-state": scrollbarContext.hasThumb ? "visible" : "hidden", 14177 ...thumbProps, 14178 ref: composedRef, 14179 style: { 14180 width: "var(--radix-scroll-area-thumb-width)", 14181 height: "var(--radix-scroll-area-thumb-height)", 14182 ...style 14183 }, 14184 onPointerDownCapture: composeEventHandlers(props.onPointerDownCapture, (event) => { 14185 let thumbRect = event.target.getBoundingClientRect(), x = event.clientX - thumbRect.left, y = event.clientY - thumbRect.top; 14186 scrollbarContext.onThumbPointerDown({ x, y }); 14187 }), 14188 onPointerUp: composeEventHandlers(props.onPointerUp, scrollbarContext.onThumbPointerUp) 14189 } 14190 ); 14191 } 14192 ); 14193 ScrollAreaThumb.displayName = THUMB_NAME; 14194 CORNER_NAME = "ScrollAreaCorner", ScrollAreaCorner = React23.forwardRef( 14195 (props, forwardedRef) => { 14196 let context = useScrollAreaContext(CORNER_NAME, props.__scopeScrollArea), hasBothScrollbarsVisible = !!(context.scrollbarX && context.scrollbarY); 14197 return context.type !== "scroll" && hasBothScrollbarsVisible ? (0, import_jsx_runtime5.jsx)(ScrollAreaCornerImpl, { ...props, ref: forwardedRef }) : null; 14198 } 14199 ); 14200 ScrollAreaCorner.displayName = CORNER_NAME; 14201 ScrollAreaCornerImpl = React23.forwardRef((props, forwardedRef) => { 14202 let { __scopeScrollArea, ...cornerProps } = props, context = useScrollAreaContext(CORNER_NAME, __scopeScrollArea), [width, setWidth] = React23.useState(0), [height, setHeight] = React23.useState(0), hasSize = !!(width && height); 14203 return useResizeObserver(context.scrollbarX, () => { 14204 let height2 = context.scrollbarX?.offsetHeight || 0; 14205 context.onCornerHeightChange(height2), setHeight(height2); 14206 }), useResizeObserver(context.scrollbarY, () => { 14207 let width2 = context.scrollbarY?.offsetWidth || 0; 14208 context.onCornerWidthChange(width2), setWidth(width2); 14209 }), hasSize ? (0, import_jsx_runtime5.jsx)( 14210 Primitive.div, 14211 { 14212 ...cornerProps, 14213 ref: forwardedRef, 14214 style: { 14215 width, 14216 height, 14217 position: "absolute", 14218 right: context.dir === "ltr" ? 0 : void 0, 14219 left: context.dir === "rtl" ? 0 : void 0, 14220 bottom: 0, 14221 ...props.style 14222 } 14223 } 14224 ) : null; 14225 }); 14226 addUnlinkedScrollListener = (node2, handler = () => { 14227 }) => { 14228 let prevPosition = { left: node2.scrollLeft, top: node2.scrollTop }, rAF = 0; 14229 return (function loop() { 14230 let position2 = { left: node2.scrollLeft, top: node2.scrollTop }, isHorizontalScroll = prevPosition.left !== position2.left, isVerticalScroll = prevPosition.top !== position2.top; 14231 (isHorizontalScroll || isVerticalScroll) && handler(), prevPosition = position2, rAF = window.requestAnimationFrame(loop); 14232 })(), () => window.cancelAnimationFrame(rAF); 14233 }; 14234 Root = ScrollArea, Viewport = ScrollAreaViewport, Scrollbar = ScrollAreaScrollbar, Thumb = ScrollAreaThumb, Corner = ScrollAreaCorner; 14235 } 14236}); 14237
vendor: 3,901 bytes, lines 14238-14347
14238// src/components/components/ScrollArea/ScrollArea.tsx 14239var import_react11, ScrollAreaRoot, ScrollAreaViewport2, ScrollAreaScrollbar2, ScrollAreaThumb2, ScrollArea2, init_ScrollArea = __esm({ 14240 "src/components/components/ScrollArea/ScrollArea.tsx"() { 14241 "use strict"; 14242 import_react11 = __toESM(require_react(), 1); 14243 init_dist12(); 14244 init_theming(); 14245 ScrollAreaRoot = styled(Root)( 14246 ({ scrollbarsize, offset: offset3 }) => ({ 14247 width: "100%", 14248 height: "100%", 14249 overflow: "hidden", 14250 "--scrollbar-size": `${scrollbarsize + offset3}px`, 14251 "--radix-scroll-area-thumb-width": `${scrollbarsize}px` 14252 }) 14253 ), ScrollAreaViewport2 = styled(Viewport)( 14254 ({ focusable, theme: theme3 }) => ({ 14255 width: "100%", 14256 height: "100%", 14257 "&:focus": focusable ? { 14258 outline: `2px solid ${theme3.color.secondary}`, 14259 outlineOffset: -2 14260 } : {} 14261 }) 14262 ), ScrollAreaScrollbar2 = styled(Scrollbar)(({ offset: offset3, horizontal, vertical }) => ({ 14263 display: "flex", 14264 userSelect: "none", 14265 // ensures no selection 14266 touchAction: "none", 14267 // disable browser handling of all panning and zooming gestures on touch devices 14268 background: "transparent", 14269 transition: "all 0.2s ease-out", 14270 borderRadius: "var(--scrollbar-size)", 14271 zIndex: 1, 14272 '&[data-orientation="vertical"]': { 14273 width: "var(--scrollbar-size)", 14274 paddingRight: offset3, 14275 marginTop: offset3, 14276 marginBottom: horizontal === "true" && vertical === "true" ? 0 : offset3 14277 }, 14278 '&[data-orientation="horizontal"]': { 14279 flexDirection: "column", 14280 height: "var(--scrollbar-size)", 14281 paddingBottom: offset3, 14282 marginLeft: offset3, 14283 marginRight: horizontal === "true" && vertical === "true" ? 0 : offset3 14284 } 14285 })), ScrollAreaThumb2 = styled(Thumb)(({ theme: theme3 }) => ({ 14286 flex: 1, 14287 background: theme3.textMutedColor, 14288 opacity: 0.5, 14289 borderRadius: "var(--scrollbar-size)", 14290 position: "relative", 14291 transition: "opacity 0.2s ease-out", 14292 zIndex: 1, 14293 "&:hover": { opacity: 0.8 }, 14294 /* increase target size for touch devices https://www.w3.org/WAI/WCAG21/Understanding/target-size.html */ 14295 "::before": { 14296 content: '""', 14297 position: "absolute", 14298 top: "50%", 14299 left: "50%", 14300 transform: "translate(-50%,-50%)", 14301 width: "100%", 14302 height: "100%" 14303 } 14304 })), ScrollArea2 = (0, import_react11.forwardRef)( 14305 ({ 14306 children, 14307 horizontal = !1, 14308 vertical = !1, 14309 offset: offset3 = 2, 14310 scrollbarSize = 6, 14311 scrollPadding = 0, 14312 className, 14313 focusable = !1 14314 }, ref) => import_react11.default.createElement(ScrollAreaRoot, { scrollbarsize: scrollbarSize, offset: offset3, className }, import_react11.default.createElement( 14315 ScrollAreaViewport2, 14316 { 14317 ref, 14318 style: { scrollPadding }, 14319 tabIndex: focusable ? 0 : void 0, 14320 focusable 14321 }, 14322 children 14323 ), horizontal && import_react11.default.createElement( 14324 ScrollAreaScrollbar2, 14325 { 14326 orientation: "horizontal", 14327 offset: offset3, 14328 horizontal: horizontal.toString(), 14329 vertical: vertical.toString() 14330 }, 14331 import_react11.default.createElement(ScrollAreaThumb2, null) 14332 ), vertical && import_react11.default.createElement( 14333 ScrollAreaScrollbar2, 14334 { 14335 orientation: "vertical", 14336 offset: offset3, 14337 horizontal: horizontal.toString(), 14338 vertical: vertical.toString() 14339 }, 14340 import_react11.default.createElement(ScrollAreaThumb2, null) 14341 ), horizontal && vertical && import_react11.default.createElement(Corner, null)) 14342 ); 14343 ScrollArea2.displayName = "ScrollArea"; 14344 } 14345}); 14346 14347//
14347src/components/components/syntaxhighlighter/clipboard.ts 14348async function copyUsingClipboardAPI(text) { 14349 try { 14350 await globalWindow2.top?.navigator.clipboard.writeText(text); 14351 } catch { 14352 await globalWindow2.navigator.clipboard.writeText(text); 14353 } 14354} 14355async function copyUsingWorkAround(text) { 14356 let tmp = document3.createElement("TEXTAREA"), focus = document3.activeElement; 14357 tmp.value = text, document3.body.appendChild(tmp), tmp.select(), document3.execCommand("copy"), document3.body.removeChild(tmp), focus.focus(); 14358} 14359function createCopyToClipboardFunction() { 14360 return globalWindow2.navigator?.clipboard ? copyUsingClipboardAPI : copyUsingWorkAround; 14361} 14362var document3, globalWindow2, init_clipboard = __esm({ 14363 "src/components/components/syntaxhighlighter/clipboard.ts"() { 14364 "use strict"; 14365 init_dist(); 14366 ({ document: document3, window: globalWindow2 } = scope); 14367 } 14368}); 14369
vendor: 6,602 bytes, lines 14370-14530
14370// src/components/components/syntaxhighlighter/syntaxhighlighter.tsx 14371var syntaxhighlighter_exports = {}; 14372__export(syntaxhighlighter_exports, { 14373 SyntaxHighlighter: () => SyntaxHighlighter2, 14374 default: () => syntaxhighlighter_default, 14375 supportedLanguages: () => supportedLanguages 14376}); 14377var import_react12, import_memoizerific2, globalWindow3, supportedLanguages, themedSyntax, copyToClipboard, Wrapper, UnstyledScroller, Scroller, Pre, Code, processLineNumber, defaultRenderer2, wrapRenderer, SyntaxHighlighter2, syntaxhighlighter_default, init_syntaxhighlighter = __esm({ 14378 "src/components/components/syntaxhighlighter/syntaxhighlighter.tsx"() { 14379 "use strict"; 14380 import_react12 = __toESM(require_react(), 1); 14381 init_client_logger(); 14382 init_dist(); 14383 import_memoizerific2 = __toESM(require_memoizerific(), 1); 14384 init_create_element(); 14385 init_bash(); 14386 init_css(); 14387 init_graphql(); 14388 init_js_extras(); 14389 init_json(); 14390 init_jsx(); 14391 init_markdown(); 14392 init_markup(); 14393 init_tsx(); 14394 init_typescript(); 14395 init_yaml(); 14396 init_prism_light(); 14397 init_theming(); 14398 init_ActionBar(); 14399 init_ScrollArea(); 14400 init_clipboard(); 14401 ({ window: globalWindow3 } = scope), supportedLanguages = { 14402 jsextra: js_extras_default, 14403 jsx: jsx_default, 14404 json: json_default, 14405 yml: yaml_default, 14406 md: markdown_default, 14407 bash: bash_default, 14408 css: css_default, 14409 html: markup_default, 14410 tsx: tsx_default, 14411 typescript: typescript_default, 14412 graphql: graphql_default 14413 }; 14414 Object.entries(supportedLanguages).forEach(([key, val]) => { 14415 prism_light_default.registerLanguage(key, val); 14416 }); 14417 themedSyntax = (0, import_memoizerific2.default)(2)( 14418 (theme3) => Object.entries(theme3.code || {}).reduce((acc, [key, val]) => ({ ...acc, [`* .${key}`]: val }), {}) 14419 ), copyToClipboard = createCopyToClipboardFunction(), Wrapper = styled.div( 14420 ({ theme: theme3 }) => ({ 14421 position: "relative", 14422 display: "flex", 14423 flexWrap: "wrap", 14424 overflow: "hidden", 14425 color: theme3.color.defaultText 14426 }), 14427 ({ theme: theme3, bordered }) => bordered ? { 14428 border: `1px solid ${theme3.appBorderColor}`, 14429 borderRadius: theme3.borderRadius, 14430 background: theme3.background.content 14431 } : {}, 14432 ({ showLineNumbers }) => showLineNumbers ? { 14433 // use the before pseudo element to display line numbers 14434 ".react-syntax-highlighter-line-number::before": { 14435 content: "attr(data-line-number)" 14436 } 14437 } : {} 14438 ), UnstyledScroller = ({ children, className }) => import_react12.default.createElement(ScrollArea2, { horizontal: !0, vertical: !0, focusable: !0, className }, children), Scroller = styled(UnstyledScroller)( 14439 { 14440 flex: 1, 14441 flexShrink: 0, 14442 flexBasis: "fit-content", 14443 maxWidth: "100%" 14444 }, 14445 ({ theme: theme3 }) => themedSyntax(theme3) 14446 ), Pre = styled.pre(({ theme: theme3, padded }) => ({ 14447 display: "flex", 14448 justifyContent: "flex-start", 14449 margin: 0, 14450 padding: padded ? theme3.layoutMargin : 0 14451 })), Code = styled.div(({ theme: theme3 }) => ({ 14452 flex: 1, 14453 paddingLeft: 2, 14454 // TODO: To match theming/global.ts for now 14455 paddingRight: theme3.layoutMargin, 14456 opacity: 1, 14457 fontFamily: theme3.typography.fonts.mono 14458 })), processLineNumber = (row) => { 14459 let children = [...row.children], lineNumberNode = children[0], lineNumber = lineNumberNode.children[0].value, processedLineNumberNode = { 14460 ...lineNumberNode, 14461 // empty the line-number element 14462 children: [], 14463 properties: { 14464 ...lineNumberNode.properties, 14465 // add a data-line-number attribute to line-number element, so we can access the line number with `content: attr(data-line-number)` 14466 "data-line-number": lineNumber, 14467 // remove the 'userSelect: none' style, which will produce extra empty lines when copy-pasting in firefox 14468 style: { ...lineNumberNode.properties.style, userSelect: "auto" } 14469 } 14470 }; 14471 return children[0] = processedLineNumberNode, { ...row, children }; 14472 }, defaultRenderer2 = ({ rows, stylesheet, useInlineStyles }) => rows.map((node2, i) => createElement4({ 14473 node: processLineNumber(node2), 14474 stylesheet, 14475 useInlineStyles, 14476 key: `code-segement${i}` 14477 })), wrapRenderer = (renderer, showLineNumbers) => showLineNumbers ? renderer ? ({ rows, ...rest }) => renderer({ rows: rows.map((row) => processLineNumber(row)), ...rest }) : defaultRenderer2 : renderer, SyntaxHighlighter2 = ({ 14478 children, 14479 language = "jsx", 14480 copyable = !1, 14481 bordered = !1, 14482 padded = !1, 14483 format: format4 = !0, 14484 formatter: formatter2 = void 0, 14485 className = void 0, 14486 showLineNumbers = !1, 14487 ...rest 14488 }) => { 14489 if (typeof children != "string" || !children.trim()) 14490 return null; 14491 let [highlightableCode, setHighlightableCode] = (0, import_react12.useState)(""); 14492 (0, import_react12.useEffect)(() => { 14493 formatter2 ? formatter2(format4, children).then(setHighlightableCode) : setHighlightableCode(children.trim()); 14494 }, [children, format4, formatter2]); 14495 let [copied, setCopied] = (0, import_react12.useState)(!1), onClick = (0, import_react12.useCallback)( 14496 (e) => { 14497 e.preventDefault(), copyToClipboard(highlightableCode).then(() => { 14498 setCopied(!0), globalWindow3.setTimeout(() => setCopied(!1), 1500); 14499 }).catch(logger.error); 14500 }, 14501 [highlightableCode] 14502 ), renderer = wrapRenderer(rest.renderer, showLineNumbers); 14503 return import_react12.default.createElement( 14504 Wrapper, 14505 { 14506 bordered, 14507 padded, 14508 showLineNumbers, 14509 className 14510 }, 14511 import_react12.default.createElement(Scroller, null, import_react12.default.createElement( 14512 prism_light_default, 14513 { 14514 padded: padded || bordered, 14515 language, 14516 showLineNumbers, 14517 showInlineLineNumbers: showLineNumbers, 14518 useInlineStyles: !1, 14519 PreTag: Pre, 14520 CodeTag: Code, 14521 lineNumberContainerStyle: {}, 14522 ...rest, 14523 renderer 14524 }, 14525 highlightableCode 14526 )), 14527 copyable ? import_react12.default.createElement(ActionBar, { actionItems: [{ title: copied ? "Copied" : "Copy", onClick }], flexLayout: !0 }) : null 14528 ); 14529 }; 14530 SyntaxHighlighter2.registerLanguage = (...args) => prism_light_default
vendor: 592 bytes, lines 14530-14548
14530.registerLanguage(...args); 14531 syntaxhighlighter_default = SyntaxHighlighter2; 14532 } 14533}); 14534 14535// src/components/components/syntaxhighlighter/formatter.ts 14536var formatter_exports = {}; 14537__export(formatter_exports, { 14538 formatter: () => formatter 14539}); 14540var import_memoizerific3, formatter, init_formatter = __esm({ 14541 "src/components/components/syntaxhighlighter/formatter.ts"() { 14542 "use strict"; 14543 import_memoizerific3 = __toESM(require_memoizerific(), 1); 14544 init_esm(); 14545 formatter = (0, import_memoizerific3.default)(2)(async (type5, source) => type5 === !1 ? source : dedent(source)); 14546 } 14547}); 14548
vendor: 2,499 bytes, lines 14549-14611
14549// ../../node_modules/@ngard/tiny-isequal/index.js 14550var require_tiny_isequal = __commonJS({ 14551 "../../node_modules/@ngard/tiny-isequal/index.js"(exports) { 14552 Object.defineProperty(exports, "__esModule", { value: !0 }), exports.isEqual = /* @__PURE__ */ (function() { 14553 var e = Object.prototype.toString, r2 = Object.getPrototypeOf, t = Object.getOwnPropertySymbols ? function(e2) { 14554 return Object.keys(e2).concat(Object.getOwnPropertySymbols(e2)); 14555 } : Object.keys; 14556 return function(n, a3) { 14557 return (function n2(a4, c, u2) { 14558 var i, s3, l, o = e.call(a4), f4 = e.call(c); 14559 if (a4 === c) return !0; 14560 if (a4 == null || c == null) return !1; 14561 if (u2.indexOf(a4) > -1 && u2.indexOf(c) > -1) return !0; 14562 if (u2.push(a4, c), o != f4 || (i = t(a4), s3 = t(c), i.length != s3.length || i.some(function(e2) { 14563 return !n2(a4[e2], c[e2], u2); 14564 }))) return !1; 14565 switch (o.slice(8, -1)) { 14566 case "Symbol": 14567 return a4.valueOf() == c.valueOf(); 14568 case "Date": 14569 case "Number": 14570 return +a4 == +c || +a4 != +a4 && +c != +c; 14571 case "RegExp": 14572 case "Function": 14573 case "String": 14574 case "Boolean": 14575 return "" + a4 == "" + c; 14576 case "Set": 14577 case "Map": 14578 i = a4.entries(), s3 = c.entries(); 14579 do 14580 if (!n2((l = i.next()).value, s3.next().value, u2)) return !1; 14581 while (!l.done); 14582 return !0; 14583 case "ArrayBuffer": 14584 a4 = new Uint8Array(a4), c = new Uint8Array(c); 14585 case "DataView": 14586 a4 = new Uint8Array(a4.buffer), c = new Uint8Array(c.buffer); 14587 case "Float32Array": 14588 case "Float64Array": 14589 case "Int8Array": 14590 case "Int16Array": 14591 case "Int32Array": 14592 case "Uint8Array": 14593 case "Uint16Array": 14594 case "Uint32Array": 14595 case "Uint8ClampedArray": 14596 case "Arguments": 14597 case "Array": 14598 if (a4.length != c.length) return !1; 14599 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; 14600 return !0; 14601 case "Object": 14602 return n2(r2(a4), r2(c), u2); 14603 default: 14604 return !1; 14605 } 14606 })(n, a3, []); 14607 }; 14608 })(); 14609 } 14610}); 14611
vendor: 2,799 bytes, lines 14612-14777
14612// ../../node_modules/picoquery/lib/string-util.js 14613var require_string_util = __commonJS({ 14614 "../../node_modules/picoquery/lib/string-util.js"(exports) { 14615 "use strict"; 14616 Object.defineProperty(exports, "__esModule", { value: !0 }); 14617 exports.encodeString = encodeString; 14618 var hexTable = Array.from({ length: 256 }, (_, i) => "%" + ((i < 16 ? "0" : "") + i.toString(16)).toUpperCase()), noEscape = new Int8Array([ 14619 0, 14620 0, 14621 0, 14622 0, 14623 0, 14624 0, 14625 0, 14626 0, 14627 0, 14628 0, 14629 0, 14630 0, 14631 0, 14632 0, 14633 0, 14634 0, 14635 0, 14636 0, 14637 0, 14638 0, 14639 0, 14640 0, 14641 0, 14642 0, 14643 0, 14644 0, 14645 0, 14646 0, 14647 0, 14648 0, 14649 0, 14650 0, 14651 0, 14652 1, 14653 0, 14654 0, 14655 0, 14656 0, 14657 0, 14658 1, 14659 1, 14660 1, 14661 1, 14662 0, 14663 0, 14664 1, 14665 1, 14666 0, 14667 1, 14668 1, 14669 1, 14670 1, 14671 1, 14672 1, 14673 1, 14674 1, 14675 1, 14676 1, 14677 0, 14678 0, 14679 0, 14680 0, 14681 0, 14682 0, 14683 0, 14684 1, 14685 1, 14686 1, 14687 1, 14688 1, 14689 1, 14690 1, 14691 1, 14692 1, 14693 1, 14694 1, 14695 1, 14696 1, 14697 1, 14698 1, 14699 1, 14700 1, 14701 1, 14702 1, 14703 1, 14704 1, 14705 1, 14706 1, 14707 1, 14708 1, 14709 1, 14710 0, 14711 0, 14712 0, 14713 0, 14714 1, 14715 0, 14716 1, 14717 1, 14718 1, 14719 1, 14720 1, 14721 1, 14722 1, 14723 1, 14724 1, 14725 1, 14726 1, 14727 1, 14728 1, 14729 1, 14730 1, 14731 1, 14732 1, 14733 1, 14734 1, 14735 1, 14736 1, 14737 1, 14738 1, 14739 1, 14740 1, 14741 1, 14742 0, 14743 0, 14744 0, 14745 1, 14746 0 14747 ]); 14748 function encodeString(str2) { 14749 let len = str2.length; 14750 if (len === 0) 14751 return ""; 14752 let out = "", lastPos = 0, i = 0; 14753 outer: for (; i < len; i++) { 14754 let c = str2.charCodeAt(i); 14755 for (; c < 128; ) { 14756 if (noEscape[c] !== 1 && (lastPos < i && (out += str2.slice(lastPos, i)), lastPos = i + 1, out += hexTable[c]), ++i === len) 14757 break outer; 14758 c = str2.charCodeAt(i); 14759 } 14760 if (lastPos < i && (out += str2.slice(lastPos, i)), c < 2048) { 14761 lastPos = i + 1, out += hexTable[192 | c >> 6] + hexTable[128 | c & 63]; 14762 continue; 14763 } 14764 if (c < 55296 || c >= 57344) { 14765 lastPos = i + 1, out += hexTable[224 | c >> 12] + hexTable[128 | c >> 6 & 63] + hexTable[128 | c & 63]; 14766 continue; 14767 } 14768 if (++i, i >= len) 14769 throw new Error("URI malformed"); 14770 let c2 = str2.charCodeAt(i) & 1023; 14771 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]; 14772 } 14773 return lastPos === 0 ? str2 : lastPos < len ? out + str2.slice(lastPos) : out; 14774 } 14775 } 14776}); 14777
vendor: 1,500 bytes, lines 14778-14815
14778// ../../node_modules/picoquery/lib/shared.js 14779var require_shared = __commonJS({ 14780 "../../node_modules/picoquery/lib/shared.js"(exports) { 14781 "use strict"; 14782 Object.defineProperty(exports, "__esModule", { value: !0 }); 14783 exports.defaultOptions = exports.defaultShouldSerializeObject = exports.defaultValueSerializer = void 0; 14784 var string_util_js_1 = require_string_util(), defaultValueSerializer = (value) => { 14785 switch (typeof value) { 14786 case "string": 14787 return (0, string_util_js_1.encodeString)(value); 14788 case "bigint": 14789 case "boolean": 14790 return "" + value; 14791 case "number": 14792 if (Number.isFinite(value)) 14793 return value < 1e21 ? "" + value : (0, string_util_js_1.encodeString)("" + value); 14794 break; 14795 } 14796 return value instanceof Date ? (0, string_util_js_1.encodeString)(value.toISOString()) : ""; 14797 }; 14798 exports.defaultValueSerializer = defaultValueSerializer; 14799 var defaultShouldSerializeObject = (val) => val instanceof Date; 14800 exports.defaultShouldSerializeObject = defaultShouldSerializeObject; 14801 var identityFunc = (v) => v; 14802 exports.defaultOptions = { 14803 nesting: !0, 14804 nestingSyntax: "dot", 14805 arrayRepeat: !1, 14806 arrayRepeatSyntax: "repeat", 14807 delimiter: 38, 14808 valueDeserializer: identityFunc, 14809 valueSerializer: exports.defaultValueSerializer, 14810 keyDeserializer: identityFunc, 14811 shouldSerializeObject: exports.defaultShouldSerializeObject 14812 }; 14813 } 14814}); 14815
vendor: 2,786 bytes, lines 14816-14850
14816// ../../node_modules/picoquery/lib/object-util.js 14817var require_object_util = __commonJS({ 14818 "../../node_modules/picoquery/lib/object-util.js"(exports) { 14819 "use strict"; 14820 Object.defineProperty(exports, "__esModule", { value: !0 }); 14821 exports.getDeepObject = getDeepObject; 14822 exports.stringifyObject = stringifyObject; 14823 var shared_js_1 = require_shared(), string_util_js_1 = require_string_util(); 14824 function isPrototypeKey(value) { 14825 return value === "__proto__" || value === "constructor" || value === "prototype"; 14826 } 14827 function getDeepObject(obj, key, nextKey, forceObject, forceArray) { 14828 if (isPrototypeKey(key)) 14829 return obj; 14830 let currObj = obj[key]; 14831 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] = {}; 14832 } 14833 var MAX_DEPTH = 20, strBracketPair = "[]", strBracketLeft = "[", strBracketRight = "]", strDot = "."; 14834 function stringifyObject(obj, options, depth = 0, parentKey, isProbableArray) { 14835 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; 14836 if (depth > MAX_DEPTH) 14837 return ""; 14838 let result = "", firstKey = !0, valueIsProbableArray = !1; 14839 for (let key in obj) { 14840 let value = obj[key]; 14841 if (value === void 0) 14842 continue; 14843 let path; 14844 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); 14845 } 14846 return result; 14847 } 14848 } 14849}); 14850
vendor: 5,719 bytes, lines 14851-15289
14851// ../../node_modules/picoquery/lib/decode-uri-component.js 14852var require_decode_uri_component = __commonJS({ 14853 "../../node_modules/picoquery/lib/decode-uri-component.js"(exports) { 14854 "use strict"; 14855 Object.defineProperty(exports, "__esModule", { value: !0 }); 14856 exports.decodeURIComponent = decodeURIComponent2; 14857 var UTF8_ACCEPT = 12, UTF8_REJECT = 0, UTF8_DATA = [ 14858 // The first part of the table maps bytes to character to a transition. 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 0, 14907 0, 14908 0, 14909 0, 14910 0, 14911 0, 14912 0, 14913 0, 14914 0, 14915 0, 14916 0, 14917 0, 14918 0, 14919 0, 14920 0, 14921 0, 14922 0, 14923 0, 14924 0, 14925 0, 14926 0, 14927 0, 14928 0, 14929 0, 14930 0, 14931 0, 14932 0, 14933 0, 14934 0, 14935 0, 14936 0, 14937 0, 14938 0, 14939 0, 14940 0, 14941 0, 14942 0, 14943 0, 14944 0, 14945 0, 14946 0, 14947 0, 14948 0, 14949 0, 14950 0, 14951 0, 14952 0, 14953 0, 14954 0, 14955 0, 14956 0, 14957 0, 14958 0, 14959 0, 14960 0, 14961 0, 14962 0, 14963 0, 14964 0, 14965 0, 14966 0, 14967 0, 14968 0, 14969 0, 14970 0, 14971 0, 14972 0, 14973 0, 14974 0, 14975 0, 14976 0, 14977 0, 14978 0, 14979 0, 14980 0, 14981 0, 14982 0, 14983 0, 14984 0, 14985 0, 14986 0, 14987 1, 14988 1, 14989 1, 14990 1, 14991 1, 14992 1, 14993 1, 14994 1, 14995 1, 14996 1, 14997 1, 14998 1, 14999 1, 15000 1, 15001 1, 15002 1, 15003 2, 15004 2, 15005 2, 15006 2, 15007 2, 15008 2, 15009 2, 15010 2, 15011 2, 15012 2, 15013 2, 15014 2, 15015 2, 15016 2, 15017 2, 15018 2, 15019 3, 15020 3, 15021 3, 15022 3, 15023 3, 15024 3, 15025 3, 15026 3, 15027 3, 15028 3, 15029 3, 15030 3, 15031 3, 15032 3, 15033 3, 15034 3, 15035 3, 15036 3, 15037 3, 15038 3, 15039 3, 15040 3, 15041 3, 15042 3, 15043 3, 15044 3, 15045 3, 15046 3, 15047 3, 15048 3, 15049 3, 15050 3, 15051 4, 15052 4, 15053 5, 15054 5, 15055 5, 15056 5, 15057 5, 15058 5, 15059 5, 15060 5, 15061 5, 15062 5, 15063 5, 15064 5, 15065 5, 15066 5, 15067 5, 15068 5, 15069 5, 15070 5, 15071 5, 15072 5, 15073 5, 15074 5, 15075 5, 15076 5, 15077 5, 15078 5, 15079 5, 15080 5, 15081 5, 15082 5, 15083 6, 15084 7, 15085 7, 15086 7, 15087 7, 15088 7, 15089 7, 15090 7, 15091 7, 15092 7, 15093 7, 15094 7, 15095 7, 15096 8, 15097 7, 15098 7, 15099 10, 15100 9, 15101 9, 15102 9, 15103 11, 15104 4, 15105 4, 15106 4, 15107 4, 15108 4, 15109 4, 15110 4, 15111 4, 15112 4, 15113 4, 15114 4, 15115 // The second part of the table maps a state to a new state when adding a 15116 // transition. 15117 0, 15118 0, 15119 0, 15120 0, 15121 0, 15122 0, 15123 0, 15124 0, 15125 0, 15126 0, 15127 0, 15128 0, 15129 12, 15130 0, 15131 0, 15132 0, 15133 0, 15134 24, 15135 36, 15136 48, 15137 60, 15138 72, 15139 84, 15140 96, 15141 0, 15142 12, 15143 12, 15144 12, 15145 0, 15146 0, 15147 0, 15148 0, 15149 0, 15150 0, 15151 0, 15152 0, 15153 0, 15154 0, 15155 0, 15156 24, 15157 0, 15158 0, 15159 0, 15160 0, 15161 0, 15162 0, 15163 0, 15164 0, 15165 0, 15166 24, 15167 24, 15168 24, 15169 0, 15170 0, 15171 0, 15172 0, 15173 0, 15174 0, 15175 0, 15176 0, 15177 0, 15178 24, 15179 24, 15180 0, 15181 0, 15182 0, 15183 0, 15184 0, 15185 0, 15186 0, 15187 0, 15188 0, 15189 0, 15190 48, 15191 48, 15192 48, 15193 0, 15194 0, 15195 0, 15196 0, 15197 0, 15198 0, 15199 0, 15200 0, 15201 0, 15202 0, 15203 48, 15204 48, 15205 0, 15206 0, 15207 0, 15208 0, 15209 0, 15210 0, 15211 0, 15212 0, 15213 0, 15214 48, 15215 0, 15216 0, 15217 0, 15218 0, 15219 0, 15220 0, 15221 0, 15222 0, 15223 0, 15224 0, 15225 // The third part maps the current transition to a mask that needs to apply 15226 // to the byte. 15227 127, 15228 63, 15229 63, 15230 63, 15231 0, 15232 31, 15233 15, 15234 15, 15235 15, 15236 7, 15237 7, 15238 7 15239 ]; 15240 function decodeURIComponent2(uri) { 15241 let percentPosition = uri.indexOf("%"); 15242 if (percentPosition === -1) 15243 return uri; 15244 let length2 = uri.length, decoded = "", last2 = 0, codepoint = 0, startOfOctets = percentPosition, state3 = UTF8_ACCEPT; 15245 for (; percentPosition > -1 && percentPosition < length2; ) { 15246 let high = hexCodeToInt(uri[percentPosition + 1], 4), low = hexCodeToInt(uri[percentPosition + 2], 0), byte = high | low, type5 = UTF8_DATA[byte]; 15247 if (state3 = UTF8_DATA[256 + state3 + type5], codepoint = codepoint << 6 | byte & UTF8_DATA[364 + type5], state3 === UTF8_ACCEPT) 15248 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); 15249 else { 15250 if (state3 === UTF8_REJECT) 15251 return null; 15252 if (percentPosition += 3, percentPosition < length2 && uri.charCodeAt(percentPosition) === 37) 15253 continue; 15254 return null; 15255 } 15256 } 15257 return decoded + uri.slice(last2); 15258 } 15259 var HEX = { 15260 0: 0, 15261 1: 1, 15262 2: 2, 15263 3: 3, 15264 4: 4, 15265 5: 5, 15266 6: 6, 15267 7: 7, 15268 8: 8, 15269 9: 9, 15270 a: 10, 15271 A: 10, 15272 b: 11, 15273 B: 11, 15274 c: 12, 15275 C: 12, 15276 d: 13, 15277 D: 13, 15278 e: 14, 15279 E: 14, 15280 f: 15, 15281 F: 15 15282 }; 15283 function hexCodeToInt(c, shift) { 15284 let i = HEX[c]; 15285 return i === void 0 ? 255 : i << shift; 15286 } 15287 } 15288}); 15289
vendor: 6,044 bytes, lines 15290-15338
15290// ../../node_modules/picoquery/lib/parse.js 15291var require_parse = __commonJS({ 15292 "../../node_modules/picoquery/lib/parse.js"(exports) { 15293 "use strict"; 15294 Object.defineProperty(exports, "__esModule", { value: !0 }); 15295 exports.numberValueDeserializer = exports.numberKeyDeserializer = void 0; 15296 exports.parse = parse9; 15297 var object_util_js_1 = require_object_util(), shared_js_1 = require_shared(), decode_uri_component_js_1 = require_decode_uri_component(), numberKeyDeserializer = (key) => { 15298 let asNumber = Number(key); 15299 return Number.isNaN(asNumber) ? key : asNumber; 15300 }; 15301 exports.numberKeyDeserializer = numberKeyDeserializer; 15302 var numberValueDeserializer = (value) => { 15303 let asNumber = Number(value); 15304 return Number.isNaN(asNumber) ? value : asNumber; 15305 }; 15306 exports.numberValueDeserializer = numberValueDeserializer; 15307 var regexPlus = /\+/g, Empty = function() { 15308 }; 15309 Empty.prototype = /* @__PURE__ */ Object.create(null); 15310 function computeKeySlice(input2, startIndex, endIndex, keyHasPlus, shouldDecodeKey) { 15311 let chunk2 = input2.substring(startIndex, endIndex); 15312 return keyHasPlus && (chunk2 = chunk2.replace(regexPlus, " ")), shouldDecodeKey && (chunk2 = (0, decode_uri_component_js_1.decodeURIComponent)(chunk2) || chunk2), chunk2; 15313 } 15314 function parse9(input2, options) { 15315 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(); 15316 if (typeof input2 != "string") 15317 return result; 15318 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; 15319 for (let i = 0; i < inputLength + 1; i++) { 15320 if (c = i !== inputLength ? input2.charCodeAt(i) : charDelimiter, c === charDelimiter) { 15321 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 !== "") { 15322 hasBothKeyValuePair && (value = input2.slice(equalityIndex + 1, i), valueHasPlus && (value = value.replace(regexPlus, " ")), shouldDecodeValue && (value = (0, decode_uri_component_js_1.decodeURIComponent)(value) || value)); 15323 let newValue = valueDeserializer(value, currentKey); 15324 if (arrayRepeat) { 15325 let currentValue = currentObj[currentKey]; 15326 currentValue === void 0 ? arrayRepeatBracketIndex > -1 ? currentObj[currentKey] = [newValue] : currentObj[currentKey] = newValue : currentValue.pop ? currentValue.push(newValue) : currentObj[currentKey] = [currentValue, newValue]; 15327 } else 15328 currentObj[currentKey] = newValue; 15329 } 15330 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 = ""; 15331 } 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); 15332 prevIndex = i, prevChar = c; 15333 } 15334 return result; 15335 } 15336 } 15337}); 15338
vendor: 559 bytes, lines 15339-15354
15339// ../../node_modules/picoquery/lib/stringify.js 15340var require_stringify = __commonJS({ 15341 "../../node_modules/picoquery/lib/stringify.js"(exports) { 15342 "use strict"; 15343 Object.defineProperty(exports, "__esModule", { value: !0 }); 15344 exports.stringify = stringify8; 15345 var object_util_js_1 = require_object_util(); 15346 function stringify8(input2, options) { 15347 if (input2 === null || typeof input2 != "object") 15348 return ""; 15349 let optionsObj = options ?? {}; 15350 return (0, object_util_js_1.stringifyObject)(input2, optionsObj); 15351 } 15352 } 15353}); 15354
vendor: 1,365 bytes, lines 15355-15383
15355// ../../node_modules/picoquery/lib/main.js 15356var require_main = __commonJS({ 15357 "../../node_modules/picoquery/lib/main.js"(exports) { 15358 "use strict"; 15359 var __createBinding = exports && exports.__createBinding || (Object.create ? (function(o, m3, k, k2) { 15360 k2 === void 0 && (k2 = k); 15361 var desc = Object.getOwnPropertyDescriptor(m3, k); 15362 (!desc || ("get" in desc ? !m3.__esModule : desc.writable || desc.configurable)) && (desc = { enumerable: !0, get: function() { 15363 return m3[k]; 15364 } }), Object.defineProperty(o, k2, desc); 15365 }) : (function(o, m3, k, k2) { 15366 k2 === void 0 && (k2 = k), o[k2] = m3[k]; 15367 })), __exportStar = exports && exports.__exportStar || function(m3, exports2) { 15368 for (var p3 in m3) p3 !== "default" && !Object.prototype.hasOwnProperty.call(exports2, p3) && __createBinding(exports2, m3, p3); 15369 }; 15370 Object.defineProperty(exports, "__esModule", { value: !0 }); 15371 exports.stringify = exports.parse = void 0; 15372 var parse_js_1 = require_parse(); 15373 Object.defineProperty(exports, "parse", { enumerable: !0, get: function() { 15374 return parse_js_1.parse; 15375 } }); 15376 var stringify_js_1 = require_stringify(); 15377 Object.defineProperty(exports, "stringify", { enumerable: !0, get: function() { 15378 return stringify_js_1.stringify; 15379 } }); 15380 __exportStar(require_shared(), exports); 15381 } 15382}); 15383
vendor: 40,186 bytes, lines 15384-15391
15384// ../../node_modules/entities/lib/maps/entities.json 15385var require_entities = __commonJS({ 15386 "../../node_modules/entities/lib/maps/entities.json"(exports, module2) { 15387 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: ` 15388`, 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" }; 15389 } 15390}); 15391
vendor: 1,742 bytes, lines 15392-15398
15392// ../../node_modules/entities/lib/maps/legacy.json 15393var require_legacy = __commonJS({ 15394 "../../node_modules/entities/lib/maps/legacy.json"(exports, module2) { 15395 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" }; 15396 } 15397}); 15398
vendor: 236 bytes, lines 15399-15405
15399// ../../node_modules/entities/lib/maps/xml.json 15400var require_xml2 = __commonJS({ 15401 "../../node_modules/entities/lib/maps/xml.json"(exports, module2) { 15402 module2.exports = { amp: "&", apos: "'", gt: ">", lt: "<", quot: '"' }; 15403 } 15404}); 15405
vendor: 547 bytes, lines 15406-15412
15406// ../../node_modules/entities/lib/maps/decode.json 15407var require_decode = __commonJS({ 15408 "../../node_modules/entities/lib/maps/decode.json"(exports, module2) { 15409 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 }; 15410 } 15411}); 15412
vendor: 1,156 bytes, lines 15413-15434
15413// ../../node_modules/entities/lib/decode_codepoint.js 15414var require_decode_codepoint = __commonJS({ 15415 "../../node_modules/entities/lib/decode_codepoint.js"(exports) { 15416 "use strict"; 15417 var __importDefault = exports && exports.__importDefault || function(mod) { 15418 return mod && mod.__esModule ? mod : { default: mod }; 15419 }; 15420 Object.defineProperty(exports, "__esModule", { value: !0 }); 15421 var decode_json_1 = __importDefault(require_decode()), fromCodePoint3 = ( 15422 // eslint-disable-next-line @typescript-eslint/no-unnecessary-condition 15423 String.fromCodePoint || function(codePoint) { 15424 var output = ""; 15425 return codePoint > 65535 && (codePoint -= 65536, output += String.fromCharCode(codePoint >>> 10 & 1023 | 55296), codePoint = 56320 | codePoint & 1023), output += String.fromCharCode(codePoint), output; 15426 } 15427 ); 15428 function decodeCodePoint(codePoint) { 15429 return codePoint >= 55296 && codePoint <= 57343 || codePoint > 1114111 ? "\uFFFD" : (codePoint in decode_json_1.default && (codePoint = decode_json_1.default[codePoint]), fromCodePoint3(codePoint)); 15430 } 15431 exports.default = decodeCodePoint; 15432 } 15433}); 15434
vendor: 2,173 bytes, lines 15435-15478
15435// ../../node_modules/entities/lib/decode.js 15436var require_decode2 = __commonJS({ 15437 "../../node_modules/entities/lib/decode.js"(exports) { 15438 "use strict"; 15439 var __importDefault = exports && exports.__importDefault || function(mod) { 15440 return mod && mod.__esModule ? mod : { default: mod }; 15441 }; 15442 Object.defineProperty(exports, "__esModule", { value: !0 }); 15443 exports.decodeHTML = exports.decodeHTMLStrict = exports.decodeXML = void 0; 15444 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; 15445 exports.decodeXML = getStrictDecoder(xml_json_1.default); 15446 exports.decodeHTMLStrict = getStrictDecoder(entities_json_1.default); 15447 function getStrictDecoder(map2) { 15448 var replace2 = getReplacer(map2); 15449 return function(str2) { 15450 return String(str2).replace(strictEntityRe, replace2); 15451 }; 15452 } 15453 var sorter = function(a3, b) { 15454 return a3 < b ? 1 : -1; 15455 }; 15456 exports.decodeHTML = (function() { 15457 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++) 15458 legacy[j] === keys3[i] ? (keys3[i] += ";?", j++) : keys3[i] += ";"; 15459 var re = new RegExp("&(?:" + keys3.join("|") + "|#[xX][\\da-fA-F]+;?|#\\d+;?)", "g"), replace2 = getReplacer(entities_json_1.default); 15460 function replacer3(str2) { 15461 return str2.substr(-1) !== ";" && (str2 += ";"), replace2(str2); 15462 } 15463 return function(str2) { 15464 return String(str2).replace(re, replacer3); 15465 }; 15466 })(); 15467 function getReplacer(map2) { 15468 return function(str2) { 15469 if (str2.charAt(1) === "#") { 15470 var secondChar = str2.charAt(2); 15471 return secondChar === "X" || secondChar === "x" ? decode_codepoint_1.default(parseInt(str2.substr(3), 16)) : decode_codepoint_1.default(parseInt(str2.substr(2), 10)); 15472 } 15473 return map2[str2.slice(1, -1)] || str2; 15474 }; 15475 } 15476 } 15477}); 15478
vendor: 3,490 bytes, lines 15479-15554
15479// ../../node_modules/entities/lib/encode.js 15480var require_encode = __commonJS({ 15481 "../../node_modules/entities/lib/encode.js"(exports) { 15482 "use strict"; 15483 var __importDefault = exports && exports.__importDefault || function(mod) { 15484 return mod && mod.__esModule ? mod : { default: mod }; 15485 }; 15486 Object.defineProperty(exports, "__esModule", { value: !0 }); 15487 exports.escapeUTF8 = exports.escape = exports.encodeNonAsciiHTML = exports.encodeHTML = exports.encodeXML = void 0; 15488 var xml_json_1 = __importDefault(require_xml2()), inverseXML = getInverseObj(xml_json_1.default), xmlReplacer = getInverseReplacer(inverseXML); 15489 exports.encodeXML = getASCIIEncoder(inverseXML); 15490 var entities_json_1 = __importDefault(require_entities()), inverseHTML = getInverseObj(entities_json_1.default), htmlReplacer = getInverseReplacer(inverseHTML); 15491 exports.encodeHTML = getInverse(inverseHTML, htmlReplacer); 15492 exports.encodeNonAsciiHTML = getASCIIEncoder(inverseHTML); 15493 function getInverseObj(obj) { 15494 return Object.keys(obj).sort().reduce(function(inverse, name) { 15495 return inverse[obj[name]] = "&" + name + ";", inverse; 15496 }, {}); 15497 } 15498 function getInverseReplacer(inverse) { 15499 for (var single = [], multiple = [], _i = 0, _a4 = Object.keys(inverse); _i < _a4.length; _i++) { 15500 var k = _a4[_i]; 15501 k.length === 1 ? single.push("\\" + k) : multiple.push(k); 15502 } 15503 single.sort(); 15504 for (var start2 = 0; start2 < single.length - 1; start2++) { 15505 for (var end2 = start2; end2 < single.length - 1 && single[end2].charCodeAt(1) + 1 === single[end2 + 1].charCodeAt(1); ) 15506 end2 += 1; 15507 var count = 1 + end2 - start2; 15508 count < 3 || single.splice(start2, count, single[start2] + "-" + single[end2]); 15509 } 15510 return multiple.unshift("[" + single.join("") + "]"), new RegExp(multiple.join("|"), "g"); 15511 } 15512 var reNonASCII = /(?:[\x80-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/g, getCodePoint = ( 15513 // eslint-disable-next-line @typescript-eslint/no-unnecessary-condition 15514 String.prototype.codePointAt != null ? ( 15515 // eslint-disable-next-line @typescript-eslint/no-non-null-assertion 15516 function(str2) { 15517 return str2.codePointAt(0); 15518 } 15519 ) : ( 15520 // http://mathiasbynens.be/notes/javascript-encoding#surrogate-formulae 15521 function(c) { 15522 return (c.charCodeAt(0) - 55296) * 1024 + c.charCodeAt(1) - 56320 + 65536; 15523 } 15524 ) 15525 ); 15526 function singleCharReplacer(c) { 15527 return "&#x" + (c.length > 1 ? getCodePoint(c) : c.charCodeAt(0)).toString(16).toUpperCase() + ";"; 15528 } 15529 function getInverse(inverse, re) { 15530 return function(data) { 15531 return data.replace(re, function(name) { 15532 return inverse[name]; 15533 }).replace(reNonASCII, singleCharReplacer); 15534 }; 15535 } 15536 var reEscapeChars = new RegExp(xmlReplacer.source + "|" + reNonASCII.source, "g"); 15537 function escape4(data) { 15538 return data.replace(reEscapeChars, singleCharReplacer); 15539 } 15540 exports.escape = escape4; 15541 function escapeUTF8(data) { 15542 return data.replace(xmlReplacer, singleCharReplacer); 15543 } 15544 exports.escapeUTF8 = escapeUTF8; 15545 function getASCIIEncoder(obj) { 15546 return function(data) { 15547 return data.replace(reEscapeChars, function(c) { 15548 return obj[c] || singleCharReplacer(c); 15549 }); 15550 }; 15551 } 15552 } 15553}); 15554
vendor: 3,259 bytes, lines 15555-15623
15555// ../../node_modules/entities/lib/index.js 15556var require_lib = __commonJS({ 15557 "../../node_modules/entities/lib/index.js"(exports) { 15558 "use strict"; 15559 Object.defineProperty(exports, "__esModule", { value: !0 }); 15560 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; 15561 var decode_1 = require_decode2(), encode_1 = require_encode(); 15562 function decode(data, level) { 15563 return (!level || level <= 0 ? decode_1.decodeXML : decode_1.decodeHTML)(data); 15564 } 15565 exports.decode = decode; 15566 function decodeStrict(data, level) { 15567 return (!level || level <= 0 ? decode_1.decodeXML : decode_1.decodeHTMLStrict)(data); 15568 } 15569 exports.decodeStrict = decodeStrict; 15570 function encode2(data, level) { 15571 return (!level || level <= 0 ? encode_1.encodeXML : encode_1.encodeHTML)(data); 15572 } 15573 exports.encode = encode2; 15574 var encode_2 = require_encode(); 15575 Object.defineProperty(exports, "encodeXML", { enumerable: !0, get: function() { 15576 return encode_2.encodeXML; 15577 } }); 15578 Object.defineProperty(exports, "encodeHTML", { enumerable: !0, get: function() { 15579 return encode_2.encodeHTML; 15580 } }); 15581 Object.defineProperty(exports, "encodeNonAsciiHTML", { enumerable: !0, get: function() { 15582 return encode_2.encodeNonAsciiHTML; 15583 } }); 15584 Object.defineProperty(exports, "escape", { enumerable: !0, get: function() { 15585 return encode_2.escape; 15586 } }); 15587 Object.defineProperty(exports, "escapeUTF8", { enumerable: !0, get: function() { 15588 return encode_2.escapeUTF8; 15589 } }); 15590 Object.defineProperty(exports, "encodeHTML4", { enumerable: !0, get: function() { 15591 return encode_2.encodeHTML; 15592 } }); 15593 Object.defineProperty(exports, "encodeHTML5", { enumerable: !0, get: function() { 15594 return encode_2.encodeHTML; 15595 } }); 15596 var decode_2 = require_decode2(); 15597 Object.defineProperty(exports, "decodeXML", { enumerable: !0, get: function() { 15598 return decode_2.decodeXML; 15599 } }); 15600 Object.defineProperty(exports, "decodeHTML", { enumerable: !0, get: function() { 15601 return decode_2.decodeHTML; 15602 } }); 15603 Object.defineProperty(exports, "decodeHTMLStrict", { enumerable: !0, get: function() { 15604 return decode_2.decodeHTMLStrict; 15605 } }); 15606 Object.defineProperty(exports, "decodeHTML4", { enumerable: !0, get: function() { 15607 return decode_2.decodeHTML; 15608 } }); 15609 Object.defineProperty(exports, "decodeHTML5", { enumerable: !0, get: function() { 15610 return decode_2.decodeHTML; 15611 } }); 15612 Object.defineProperty(exports, "decodeHTML4Strict", { enumerable: !0, get: function() { 15613 return decode_2.decodeHTMLStrict; 15614 } }); 15615 Object.defineProperty(exports, "decodeHTML5Strict", { enumerable: !0, get: function() { 15616 return decode_2.decodeHTMLStrict; 15617 } }); 15618 Object.defineProperty(exports, "decodeXMLStrict", { enumerable: !0, get: function() { 15619 return decode_2.decodeXML; 15620 } }); 15621 } 15622}); 15623
vendor: 14,174 bytes, lines 15624-15988
15624// ../../node_modules/ansi-to-html/lib/ansi_to_html.js 15625var require_ansi_to_html = __commonJS({ 15626 "../../node_modules/ansi-to-html/lib/ansi_to_html.js"(exports, module2) { 15627 "use strict"; 15628 function _classCallCheck3(instance, Constructor) { 15629 if (!(instance instanceof Constructor)) 15630 throw new TypeError("Cannot call a class as a function"); 15631 } 15632 function _defineProperties3(target, props) { 15633 for (var i = 0; i < props.length; i++) { 15634 var descriptor = props[i]; 15635 descriptor.enumerable = descriptor.enumerable || !1, descriptor.configurable = !0, "value" in descriptor && (descriptor.writable = !0), Object.defineProperty(target, descriptor.key, descriptor); 15636 } 15637 } 15638 function _createClass3(Constructor, protoProps, staticProps) { 15639 return protoProps && _defineProperties3(Constructor.prototype, protoProps), staticProps && _defineProperties3(Constructor, staticProps), Constructor; 15640 } 15641 function _createForOfIteratorHelper(o, allowArrayLike) { 15642 var it = typeof Symbol < "u" && o[Symbol.iterator] || o["@@iterator"]; 15643 if (!it) { 15644 if (Array.isArray(o) || (it = _unsupportedIterableToArray2(o)) || allowArrayLike && o && typeof o.length == "number") { 15645 it && (o = it); 15646 var i = 0, F = function() { 15647 }; 15648 return { s: F, n: function() { 15649 return i >= o.length ? { done: !0 } : { done: !1, value: o[i++] }; 15650 }, e: function(_e) { 15651 throw _e; 15652 }, f: F }; 15653 } 15654 throw new TypeError(`Invalid attempt to iterate non-iterable instance. 15655In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`); 15656 } 15657 var normalCompletion = !0, didErr = !1, err; 15658 return { s: function() { 15659 it = it.call(o); 15660 }, n: function() { 15661 var step2 = it.next(); 15662 return normalCompletion = step2.done, step2; 15663 }, e: function(_e2) { 15664 didErr = !0, err = _e2; 15665 }, f: function() { 15666 try { 15667 !normalCompletion && it.return != null && it.return(); 15668 } finally { 15669 if (didErr) throw err; 15670 } 15671 } }; 15672 } 15673 function _unsupportedIterableToArray2(o, minLen) { 15674 if (o) { 15675 if (typeof o == "string") return _arrayLikeToArray2(o, minLen); 15676 var n = Object.prototype.toString.call(o).slice(8, -1); 15677 if (n === "Object" && o.constructor && (n = o.constructor.name), n === "Map" || n === "Set") return Array.from(o); 15678 if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray2(o, minLen); 15679 } 15680 } 15681 function _arrayLikeToArray2(arr, len) { 15682 (len == null || len > arr.length) && (len = arr.length); 15683 for (var i = 0, arr2 = new Array(len); i < len; i++) 15684 arr2[i] = arr[i]; 15685 return arr2; 15686 } 15687 var entities = require_lib(), defaults = { 15688 fg: "#FFF", 15689 bg: "#000", 15690 newline: !1, 15691 escapeXML: !1, 15692 stream: !1, 15693 colors: getDefaultColors() 15694 }; 15695 function getDefaultColors() { 15696 var colors3 = { 15697 0: "#000", 15698 1: "#A00", 15699 2: "#0A0", 15700 3: "#A50", 15701 4: "#00A", 15702 5: "#A0A", 15703 6: "#0AA", 15704 7: "#AAA", 15705 8: "#555", 15706 9: "#F55", 15707 10: "#5F5", 15708 11: "#FF5", 15709 12: "#55F", 15710 13: "#F5F", 15711 14: "#5FF", 15712 15: "#FFF" 15713 }; 15714 return range(0, 5).forEach(function(red) { 15715 range(0, 5).forEach(function(green) { 15716 range(0, 5).forEach(function(blue) { 15717 return setStyleColor(red, green, blue, colors3); 15718 }); 15719 }); 15720 }), range(0, 23).forEach(function(gray) { 15721 var c = gray + 232, l = toHexString(gray * 10 + 8); 15722 colors3[c] = "#" + l + l + l; 15723 }), colors3; 15724 } 15725 function setStyleColor(red, green, blue, colors3) { 15726 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; 15727 colors3[c] = toColorHexString([r2, g2, b]); 15728 } 15729 function toHexString(num) { 15730 for (var str2 = num.toString(16); str2.length < 2; ) 15731 str2 = "0" + str2; 15732 return str2; 15733 } 15734 function toColorHexString(ref) { 15735 var results = [], _iterator = _createForOfIteratorHelper(ref), _step; 15736 try { 15737 for (_iterator.s(); !(_step = _iterator.n()).done; ) { 15738 var r2 = _step.value; 15739 results.push(toHexString(r2)); 15740 } 15741 } catch (err) { 15742 _iterator.e(err); 15743 } finally { 15744 _iterator.f(); 15745 } 15746 return "#" + results.join(""); 15747 } 15748 function generateOutput(stack, token2, data, options) { 15749 var result; 15750 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; 15751 } 15752 function handleRgb(stack, data) { 15753 data = data.substring(2).slice(0, -1); 15754 var operation = +data.substr(0, 2), color2 = data.substring(5).split(";"), rgb2 = color2.map(function(value) { 15755 return ("0" + Number(value).toString(16)).substr(-2); 15756 }).join(""); 15757 return pushStyle(stack, (operation === 38 ? "color:#" : "background-color:#") + rgb2); 15758 } 15759 function handleDisplay(stack, code, options) { 15760 code = parseInt(code, 10); 15761 var codeMap = { 15762 "-1": function() { 15763 return "<br/>"; 15764 }, 15765 0: function() { 15766 return stack.length && resetStyles(stack); 15767 }, 15768 1: function() { 15769 return pushTag(stack, "b"); 15770 }, 15771 3: function() { 15772 return pushTag(stack, "i"); 15773 }, 15774 4: function() { 15775 return pushTag(stack, "u"); 15776 }, 15777 8: function() { 15778 return pushStyle(stack, "display:none"); 15779 }, 15780 9: function() { 15781 return pushTag(stack, "strike"); 15782 }, 15783 22: function() { 15784 return pushStyle(stack, "font-weight:normal;text-decoration:none;font-style:normal"); 15785 }, 15786 23: function() { 15787 return closeTag(stack, "i"); 15788 }, 15789 24: function() { 15790 return closeTag(stack, "u"); 15791 }, 15792 39: function() { 15793 return pushForegroundColor(stack, options.fg); 15794 }, 15795 49: function() { 15796 return pushBackgroundColor(stack, options.bg); 15797 }, 15798 53: function() { 15799 return pushStyle(stack, "text-decoration:overline"); 15800 } 15801 }, result; 15802 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; 15803 } 15804 function resetStyles(stack) { 15805 var stackClone = stack.slice(0); 15806 return stack.length = 0, stackClone.reverse().map(function(tag) { 15807 return "</" + tag + ">"; 15808 }).join(""); 15809 } 15810 function range(low, high) { 15811 for (var results = [], j = low; j <= high; j++) 15812 results.push(j); 15813 return results; 15814 } 15815 function notCategory(category) { 15816 return function(e) { 15817 return (category === null || e.category !== category) && category !== "all"; 15818 }; 15819 } 15820 function categoryForCode(code) { 15821 code = parseInt(code, 10); 15822 var result = null; 15823 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; 15824 } 15825 function pushText(text, options) { 15826 return options.escapeXML ? entities.encodeXML(text) : text; 15827 } 15828 function pushTag(stack, tag, style) { 15829 return style || (style = ""), stack.push(tag), "<".concat(tag).concat(style ? ' style="'.concat(style, '"') : "", ">"); 15830 } 15831 function pushStyle(stack, style) { 15832 return pushTag(stack, "span", style); 15833 } 15834 function pushForegroundColor(stack, color2) { 15835 return pushTag(stack, "span", "color:" + color2); 15836 } 15837 function pushBackgroundColor(stack, color2) { 15838 return pushTag(stack, "span", "background-color:" + color2); 15839 } 15840 function closeTag(stack, style) { 15841 var last2; 15842 if (stack.slice(-1)[0] === style && (last2 = stack.pop()), last2) 15843 return "</" + style + ">"; 15844 } 15845 function tokenize2(text, options, callback) { 15846 var ansiMatch = !1, ansiHandler = 3; 15847 function remove2() { 15848 return ""; 15849 } 15850 function removeXterm256Foreground(m3, g1) { 15851 return callback("xterm256Foreground", g1), ""; 15852 } 15853 function removeXterm256Background(m3, g1) { 15854 return callback("xterm256Background", g1), ""; 15855 } 15856 function newline(m3) { 15857 return options.newline ? callback("display", -1) : callback("text", m3), ""; 15858 } 15859 function ansiMess(m3, g1) { 15860 ansiMatch = !0, g1.trim().length === 0 && (g1 = "0"), g1 = g1.trimRight(";").split(";"); 15861 var _iterator2 = _createForOfIteratorHelper(g1), _step2; 15862 try { 15863 for (_iterator2.s(); !(_step2 = _iterator2.n()).done; ) { 15864 var g2 = _step2.value; 15865 callback("display", g2); 15866 } 15867 } catch (err) { 15868 _iterator2.e(err); 15869 } finally { 15870 _iterator2.f(); 15871 } 15872 return ""; 15873 } 15874 function realText(m3) { 15875 return callback("text", m3), ""; 15876 } 15877 function rgb2(m3) { 15878 return callback("rgb", m3), ""; 15879 } 15880 var tokens2 = [{ 15881 pattern: /^\x08+/, 15882 sub: remove2 15883 }, { 15884 pattern: /^\x1b\[[012]?K/, 15885 sub: remove2 15886 }, { 15887 pattern: /^\x1b\[\(B/, 15888 sub: remove2 15889 }, { 15890 pattern: /^\x1b\[[34]8;2;\d+;\d+;\d+m/, 15891 sub: rgb2 15892 }, { 15893 pattern: /^\x1b\[38;5;(\d+)m/, 15894 sub: removeXterm256Foreground 15895 }, { 15896 pattern: /^\x1b\[48;5;(\d+)m/, 15897 sub: removeXterm256Background 15898 }, { 15899 pattern: /^\n/, 15900 sub: newline 15901 }, { 15902 pattern: /^\r+\n/, 15903 sub: newline 15904 }, { 15905 pattern: /^\r/, 15906 sub: newline 15907 }, { 15908 pattern: /^\x1b\[((?:\d{1,3};?)+|)m/, 15909 sub: ansiMess 15910 }, { 15911 // CSI n J 15912 // ED - Erase in Display Clears part of the screen. 15913 // If n is 0 (or missing), clear from cursor to end of screen. 15914 // If n is 1, clear from cursor to beginning of the screen. 15915 // If n is 2, clear entire screen (and moves cursor to upper left on DOS ANSI.SYS). 15916 // If n is 3, clear entire screen and delete all lines saved in the scrollback buffer 15917 // (this feature was added for xterm and is supported by other terminal applications). 15918 pattern: /^\x1b\[\d?J/, 15919 sub: remove2 15920 }, { 15921 // CSI n ; m f 15922 // HVP - Horizontal Vertical Position Same as CUP 15923 pattern: /^\x1b\[\d{0,3};\d{0,3}f/, 15924 sub: remove2 15925 }, { 15926 // catch-all for CSI sequences? 15927 pattern: /^\x1b\[?[\d;]{0,3}/, 15928 sub: remove2 15929 }, { 15930 /** 15931 * extracts real text - not containing: 15932 * - `\x1b' - ESC - escape (Ascii 27) 15933 * - '\x08' - BS - backspace (Ascii 8) 15934 * - `\n` - Newline - linefeed (LF) (ascii 10) 15935 * - `\r` - Windows Carriage Return (CR) 15936 */ 15937 pattern: /^(([^\x1b\x08\r\n])+)/, 15938 sub: realText 15939 }]; 15940 function process2(handler2, i2) { 15941 i2 > ansiHandler && ansiMatch || (ansiMatch = !1, text = text.replace(handler2.pattern, handler2.sub)); 15942 } 15943 var results1 = [], _text = text, length2 = _text.length; 15944 outer: for (; length2 > 0; ) { 15945 for (var i = 0, o = 0, len = tokens2.length; o < len; i = ++o) { 15946 var handler = tokens2[i]; 15947 if (process2(handler, i), text.length !== length2) { 15948 length2 = text.length; 15949 continue outer; 15950 } 15951 } 15952 if (text.length === length2) 15953 break; 15954 results1.push(0), length2 = text.length; 15955 } 15956 return results1; 15957 } 15958 function updateStickyStack(stickyStack, token2, data) { 15959 return token2 !== "text" && (stickyStack = stickyStack.filter(notCategory(categoryForCode(data))), stickyStack.push({ 15960 token: token2, 15961 data, 15962 category: categoryForCode(data) 15963 })), stickyStack; 15964 } 15965 var Filter = (function() { 15966 function Filter2(options) { 15967 _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 = []; 15968 } 15969 return _createClass3(Filter2, [{ 15970 key: "toHtml", 15971 value: function(input2) { 15972 var _this = this; 15973 input2 = typeof input2 == "string" ? [input2] : input2; 15974 var stack = this.stack, options = this.options, buf = []; 15975 return this.stickyStack.forEach(function(element) { 15976 var output = generateOutput(stack, element.token, element.data, options); 15977 output && buf.push(output); 15978 }), tokenize2(input2.join(""), options, function(token2, data) { 15979 var output = generateOutput(stack, token2, data, options); 15980 output && buf.push(output), options.stream && (_this.stickyStack = updateStickyStack(_this.stickyStack, token2, data)); 15981 }), stack.length && buf.push(resetStyles(stack)), buf.join(""); 15982 } 15983 }]), Filter2; 15984 })(); 15985 module2.exports = Filter; 15986 } 15987}); 15988
vendor: 85,464 bytes, lines 15989-18000
15989// ../../node_modules/jsdoc-type-pratt-parser/dist/index.js 15990var require_dist = __commonJS({ 15991 "../../node_modules/jsdoc-type-pratt-parser/dist/index.js"(exports, module2) { 15992 (function(global2, factory) { 15993 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 = {})); 15994 })(exports, (function(exports2) { 15995 "use strict"; 15996 function tokenToString(token2) { 15997 return token2.text !== void 0 && token2.text !== "" ? `'${token2.type}' with value '${token2.text}'` : `'${token2.type}'`; 15998 } 15999 class NoParsletFoundError extends Error { 16000 constructor(token2) { 16001 super(`No parslet found for token: ${tokenToString(token2)}`), this.token = token2, Object.setPrototypeOf(this, NoParsletFoundError.prototype); 16002 } 16003 getToken() { 16004 return this.token; 16005 } 16006 } 16007 class EarlyEndOfParseError extends Error { 16008 constructor(token2) { 16009 super(`The parsing ended early. The next token was: ${tokenToString(token2)}`), this.token = token2, Object.setPrototypeOf(this, EarlyEndOfParseError.prototype); 16010 } 16011 getToken() { 16012 return this.token; 16013 } 16014 } 16015 class UnexpectedTypeError extends Error { 16016 constructor(result, message) { 16017 let error = `Unexpected type: '${result.type}'.`; 16018 message !== void 0 && (error += ` Message: ${message}`), super(error), Object.setPrototypeOf(this, UnexpectedTypeError.prototype); 16019 } 16020 } 16021 function makePunctuationRule(type5) { 16022 return (text) => text.startsWith(type5) ? { type: type5, text: type5 } : null; 16023 } 16024 function getQuoted(text) { 16025 let position2 = 0, char2, mark = text[0], escaped = !1; 16026 if (mark !== "'" && mark !== '"') 16027 return null; 16028 for (; position2 < text.length; ) { 16029 if (position2++, char2 = text[position2], !escaped && char2 === mark) { 16030 position2++; 16031 break; 16032 } 16033 escaped = !escaped && char2 === "\\"; 16034 } 16035 if (char2 !== mark) 16036 throw new Error("Unterminated String"); 16037 return text.slice(0, position2); 16038 } 16039 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"); 16040 function getIdentifier(text) { 16041 let char2 = text[0]; 16042 if (!identifierStartRegex.test(char2)) 16043 return null; 16044 let position2 = 1; 16045 do { 16046 if (char2 = text[position2], !identifierContinueRegex.test(char2)) 16047 break; 16048 position2++; 16049 } while (position2 < text.length); 16050 return text.slice(0, position2); 16051 } 16052 let numberRegex = /^(NaN|-?((\d*\.\d+|\d+)([Ee][+-]?\d+)?|Infinity))/; 16053 function getNumber(text) { 16054 var _a4, _b; 16055 return (_b = (_a4 = numberRegex.exec(text)) === null || _a4 === void 0 ? void 0 : _a4[0]) !== null && _b !== void 0 ? _b : null; 16056 } 16057 let identifierRule = (text) => { 16058 let value = getIdentifier(text); 16059 return value == null ? null : { 16060 type: "Identifier", 16061 text: value 16062 }; 16063 }; 16064 function makeKeyWordRule(type5) { 16065 return (text) => { 16066 if (!text.startsWith(type5)) 16067 return null; 16068 let prepends = text[type5.length]; 16069 return prepends !== void 0 && identifierContinueRegex.test(prepends) ? null : { 16070 type: type5, 16071 text: type5 16072 }; 16073 }; 16074 } 16075 let stringValueRule = (text) => { 16076 let value = getQuoted(text); 16077 return value == null ? null : { 16078 type: "StringValue", 16079 text: value 16080 }; 16081 }, eofRule = (text) => text.length > 0 ? null : { 16082 type: "EOF", 16083 text: "" 16084 }, numberRule = (text) => { 16085 let value = getNumber(text); 16086 return value === null ? null : { 16087 type: "Number", 16088 text: value 16089 }; 16090 }, rules = [ 16091 eofRule, 16092 makePunctuationRule("=>"), 16093 makePunctuationRule("("), 16094 makePunctuationRule(")"), 16095 makePunctuationRule("{"), 16096 makePunctuationRule("}"), 16097 makePunctuationRule("["), 16098 makePunctuationRule("]"), 16099 makePunctuationRule("|"), 16100 makePunctuationRule("&"), 16101 makePunctuationRule("<"), 16102 makePunctuationRule(">"), 16103 makePunctuationRule(","), 16104 makePunctuationRule(";"), 16105 makePunctuationRule("*"), 16106 makePunctuationRule("?"), 16107 makePunctuationRule("!"), 16108 makePunctuationRule("="), 16109 makePunctuationRule(":"), 16110 makePunctuationRule("..."), 16111 makePunctuationRule("."), 16112 makePunctuationRule("#"), 16113 makePunctuationRule("~"), 16114 makePunctuationRule("/"), 16115 makePunctuationRule("@"), 16116 makeKeyWordRule("undefined"), 16117 makeKeyWordRule("null"), 16118 makeKeyWordRule("function"), 16119 makeKeyWordRule("this"), 16120 makeKeyWordRule("new"), 16121 makeKeyWordRule("module"), 16122 makeKeyWordRule("event"), 16123 makeKeyWordRule("extends"), 16124 makeKeyWordRule("external"), 16125 makeKeyWordRule("infer"), 16126 makeKeyWordRule("typeof"), 16127 makeKeyWordRule("keyof"), 16128 makeKeyWordRule("readonly"), 16129 makeKeyWordRule("import"), 16130 makeKeyWordRule("is"), 16131 makeKeyWordRule("in"), 16132 makeKeyWordRule("asserts"), 16133 numberRule, 16134 identifierRule, 16135 stringValueRule 16136 ], breakingWhitespaceRegex = /^\s*\n\s*/; 16137 class Lexer { 16138 static create(text) { 16139 let current = this.read(text); 16140 text = current.text; 16141 let next2 = this.read(text); 16142 return text = next2.text, new Lexer(text, void 0, current.token, next2.token); 16143 } 16144 constructor(text, previous, current, next2) { 16145 this.text = "", this.text = text, this.previous = previous, this.current = current, this.next = next2; 16146 } 16147 static read(text, startOfLine = !1) { 16148 startOfLine = startOfLine || breakingWhitespaceRegex.test(text), text = text.trim(); 16149 for (let rule of rules) { 16150 let partial = rule(text); 16151 if (partial !== null) { 16152 let token2 = Object.assign(Object.assign({}, partial), { startOfLine }); 16153 return text = text.slice(token2.text.length), { text, token: token2 }; 16154 } 16155 } 16156 throw new Error("Unexpected Token " + text); 16157 } 16158 advance() { 16159 let next2 = Lexer.read(this.text); 16160 return new Lexer(next2.text, this.current, this.next, next2.token); 16161 } 16162 } 16163 function assertRootResult(result) { 16164 if (result === void 0) 16165 throw new Error("Unexpected undefined"); 16166 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") 16167 throw new UnexpectedTypeError(result); 16168 return result; 16169 } 16170 function assertPlainKeyValueOrRootResult(result) { 16171 return result.type === "JsdocTypeKeyValue" ? assertPlainKeyValueResult(result) : assertRootResult(result); 16172 } 16173 function assertPlainKeyValueOrNameResult(result) { 16174 return result.type === "JsdocTypeName" ? result : assertPlainKeyValueResult(result); 16175 } 16176 function assertPlainKeyValueResult(result) { 16177 if (result.type !== "JsdocTypeKeyValue") 16178 throw new UnexpectedTypeError(result); 16179 return result; 16180 } 16181 function assertNumberOrVariadicNameResult(result) { 16182 var _a4; 16183 if (result.type === "JsdocTypeVariadic") { 16184 if (((_a4 = result.element) === null || _a4 === void 0 ? void 0 : _a4.type) === "JsdocTypeName") 16185 return result; 16186 throw new UnexpectedTypeError(result); 16187 } 16188 if (result.type !== "JsdocTypeNumber" && result.type !== "JsdocTypeName") 16189 throw new UnexpectedTypeError(result); 16190 return result; 16191 } 16192 function assertArrayOrTupleResult(result) { 16193 if (result.type === "JsdocTypeTuple" || result.type === "JsdocTypeGeneric" && result.meta.brackets === "square") 16194 return result; 16195 throw new UnexpectedTypeError(result); 16196 } 16197 function isSquaredProperty(result) { 16198 return result.type === "JsdocTypeIndexSignature" || result.type === "JsdocTypeMappedType"; 16199 } 16200 var Precedence; 16201 (function(Precedence2) { 16202 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"; 16203 })(Precedence || (Precedence = {})); 16204 class Parser2 { 16205 constructor(grammar, textOrLexer, baseParser) { 16206 this.grammar = grammar, typeof textOrLexer == "string" ? this._lexer = Lexer.create(textOrLexer) : this._lexer = textOrLexer, this.baseParser = baseParser; 16207 } 16208 get lexer() { 16209 return this._lexer; 16210 } 16211 /** 16212 * Parses a given string and throws an error if the parse ended before the end of the string. 16213 */ 16214 parse() { 16215 let result = this.parseType(Precedence.ALL); 16216 if (this.lexer.current.type !== "EOF") 16217 throw new EarlyEndOfParseError(this.lexer.current); 16218 return result; 16219 } 16220 /** 16221 * Parses with the current lexer and asserts that the result is a {@link RootResult}. 16222 */ 16223 parseType(precedence) { 16224 return assertRootResult(this.parseIntermediateType(precedence)); 16225 } 16226 /** 16227 * The main parsing function. First it tries to parse the current state in the prefix step, and then it continues 16228 * to parse the state in the infix step. 16229 */ 16230 parseIntermediateType(precedence) { 16231 let result = this.tryParslets(null, precedence); 16232 if (result === null) 16233 throw new NoParsletFoundError(this.lexer.current); 16234 return this.parseInfixIntermediateType(result, precedence); 16235 } 16236 /** 16237 * In the infix parsing step the parser continues to parse the current state with all parslets until none returns 16238 * a result. 16239 */ 16240 parseInfixIntermediateType(left2, precedence) { 16241 let result = this.tryParslets(left2, precedence); 16242 for (; result !== null; ) 16243 left2 = result, result = this.tryParslets(left2, precedence); 16244 return left2; 16245 } 16246 /** 16247 * Tries to parse the current state with all parslets in the grammar and returns the first non null result. 16248 */ 16249 tryParslets(left2, precedence) { 16250 for (let parslet of this.grammar) { 16251 let result = parslet(this, precedence, left2); 16252 if (result !== null) 16253 return result; 16254 } 16255 return null; 16256 } 16257 /** 16258 * If the given type equals the current type of the {@link Lexer} advance the lexer. Return true if the lexer was 16259 * advanced. 16260 */ 16261 consume(types) { 16262 return Array.isArray(types) || (types = [types]), types.includes(this.lexer.current.type) ? (this._lexer = this.lexer.advance(), !0) : !1; 16263 } 16264 acceptLexerState(parser) { 16265 this._lexer = parser.lexer; 16266 } 16267 } 16268 function isQuestionMarkUnknownType(next2) { 16269 return next2 === "}" || next2 === "EOF" || next2 === "|" || next2 === "," || next2 === ")" || next2 === ">"; 16270 } 16271 let nullableParslet = (parser, precedence, left2) => { 16272 let type5 = parser.lexer.current.type, next2 = parser.lexer.next.type; 16273 return left2 == null && type5 === "?" && !isQuestionMarkUnknownType(next2) || left2 != null && type5 === "?" ? (parser.consume("?"), left2 == null ? { 16274 type: "JsdocTypeNullable", 16275 element: parser.parseType(Precedence.NULLABLE), 16276 meta: { 16277 position: "prefix" 16278 } 16279 } : { 16280 type: "JsdocTypeNullable", 16281 element: assertRootResult(left2), 16282 meta: { 16283 position: "suffix" 16284 } 16285 }) : null; 16286 }; 16287 function composeParslet(options) { 16288 let parslet = (parser, curPrecedence, left2) => { 16289 let type5 = parser.lexer.current.type, next2 = parser.lexer.next.type; 16290 if (left2 === null) { 16291 if ("parsePrefix" in options && options.accept(type5, next2)) 16292 return options.parsePrefix(parser); 16293 } else if ("parseInfix" in options && options.precedence > curPrecedence && options.accept(type5, next2)) 16294 return options.parseInfix(parser, left2); 16295 return null; 16296 }; 16297 return Object.defineProperty(parslet, "name", { 16298 value: options.name 16299 }), parslet; 16300 } 16301 let optionalParslet = composeParslet({ 16302 name: "optionalParslet", 16303 accept: (type5) => type5 === "=", 16304 precedence: Precedence.OPTIONAL, 16305 parsePrefix: (parser) => (parser.consume("="), { 16306 type: "JsdocTypeOptional", 16307 element: parser.parseType(Precedence.OPTIONAL), 16308 meta: { 16309 position: "prefix" 16310 } 16311 }), 16312 parseInfix: (parser, left2) => (parser.consume("="), { 16313 type: "JsdocTypeOptional", 16314 element: assertRootResult(left2), 16315 meta: { 16316 position: "suffix" 16317 } 16318 }) 16319 }), numberParslet = composeParslet({ 16320 name: "numberParslet", 16321 accept: (type5) => type5 === "Number", 16322 parsePrefix: (parser) => { 16323 let value = parseFloat(parser.lexer.current.text); 16324 return parser.consume("Number"), { 16325 type: "JsdocTypeNumber", 16326 value 16327 }; 16328 } 16329 }), parenthesisParslet = composeParslet({ 16330 name: "parenthesisParslet", 16331 accept: (type5) => type5 === "(", 16332 parsePrefix: (parser) => { 16333 if (parser.consume("("), parser.consume(")")) 16334 return { 16335 type: "JsdocTypeParameterList", 16336 elements: [] 16337 }; 16338 let result = parser.parseIntermediateType(Precedence.ALL); 16339 if (!parser.consume(")")) 16340 throw new Error("Unterminated parenthesis"); 16341 return result.type === "JsdocTypeParameterList" ? result : result.type === "JsdocTypeKeyValue" ? { 16342 type: "JsdocTypeParameterList", 16343 elements: [result] 16344 } : { 16345 type: "JsdocTypeParenthesis", 16346 element: assertRootResult(result) 16347 }; 16348 } 16349 }), specialTypesParslet = composeParslet({ 16350 name: "specialTypesParslet", 16351 accept: (type5, next2) => type5 === "?" && isQuestionMarkUnknownType(next2) || type5 === "null" || type5 === "undefined" || type5 === "*", 16352 parsePrefix: (parser) => { 16353 if (parser.consume("null")) 16354 return { 16355 type: "JsdocTypeNull" 16356 }; 16357 if (parser.consume("undefined")) 16358 return { 16359 type: "JsdocTypeUndefined" 16360 }; 16361 if (parser.consume("*")) 16362 return { 16363 type: "JsdocTypeAny" 16364 }; 16365 if (parser.consume("?")) 16366 return { 16367 type: "JsdocTypeUnknown" 16368 }; 16369 throw new Error("Unacceptable token: " + parser.lexer.current.text); 16370 } 16371 }), notNullableParslet = composeParslet({ 16372 name: "notNullableParslet", 16373 accept: (type5) => type5 === "!", 16374 precedence: Precedence.NULLABLE, 16375 parsePrefix: (parser) => (parser.consume("!"), { 16376 type: "JsdocTypeNotNullable", 16377 element: parser.parseType(Precedence.NULLABLE), 16378 meta: { 16379 position: "prefix" 16380 } 16381 }), 16382 parseInfix: (parser, left2) => (parser.consume("!"), { 16383 type: "JsdocTypeNotNullable", 16384 element: assertRootResult(left2), 16385 meta: { 16386 position: "suffix" 16387 } 16388 }) 16389 }); 16390 function createParameterListParslet({ allowTrailingComma }) { 16391 return composeParslet({ 16392 name: "parameterListParslet", 16393 accept: (type5) => type5 === ",", 16394 precedence: Precedence.PARAMETER_LIST, 16395 parseInfix: (parser, left2) => { 16396 let elements = [ 16397 assertPlainKeyValueOrRootResult(left2) 16398 ]; 16399 parser.consume(","); 16400 do 16401 try { 16402 let next2 = parser.parseIntermediateType(Precedence.PARAMETER_LIST); 16403 elements.push(assertPlainKeyValueOrRootResult(next2)); 16404 } catch (e) { 16405 if (e instanceof NoParsletFoundError) 16406 break; 16407 throw e; 16408 } 16409 while (parser.consume(",")); 16410 if (elements.length > 0 && elements.slice(0, -1).some((e) => e.type === "JsdocTypeVariadic")) 16411 throw new Error("Only the last parameter may be a rest parameter"); 16412 return { 16413 type: "JsdocTypeParameterList", 16414 elements 16415 }; 16416 } 16417 }); 16418 } 16419 let genericParslet = composeParslet({ 16420 name: "genericParslet", 16421 accept: (type5, next2) => type5 === "<" || type5 === "." && next2 === "<", 16422 precedence: Precedence.GENERIC, 16423 parseInfix: (parser, left2) => { 16424 let dot = parser.consume("."); 16425 parser.consume("<"); 16426 let objects = [], infer = !1; 16427 if (parser.consume("infer")) { 16428 infer = !0; 16429 let left3 = parser.parseIntermediateType(Precedence.SYMBOL); 16430 if (left3.type !== "JsdocTypeName") 16431 throw new UnexpectedTypeError(left3, "A typescript asserts always has to have a name on the left side."); 16432 objects.push(left3); 16433 } else 16434 do 16435 objects.push(parser.parseType(Precedence.PARAMETER_LIST)); 16436 while (parser.consume(",")); 16437 if (!parser.consume(">")) 16438 throw new Error("Unterminated generic parameter list"); 16439 return Object.assign(Object.assign({ type: "JsdocTypeGeneric", left: assertRootResult(left2), elements: objects }, infer ? { infer: !0 } : {}), { meta: { 16440 brackets: "angle", 16441 dot 16442 } }); 16443 } 16444 }), unionParslet = composeParslet({ 16445 name: "unionParslet", 16446 accept: (type5) => type5 === "|", 16447 precedence: Precedence.UNION, 16448 parseInfix: (parser, left2) => { 16449 parser.consume("|"); 16450 let elements = []; 16451 do 16452 elements.push(parser.parseType(Precedence.UNION)); 16453 while (parser.consume("|")); 16454 return { 16455 type: "JsdocTypeUnion", 16456 elements: [assertRootResult(left2), ...elements] 16457 }; 16458 } 16459 }), baseGrammar = [ 16460 nullableParslet, 16461 optionalParslet, 16462 numberParslet, 16463 parenthesisParslet, 16464 specialTypesParslet, 16465 notNullableParslet, 16466 createParameterListParslet({ 16467 allowTrailingComma: !0 16468 }), 16469 genericParslet, 16470 unionParslet, 16471 optionalParslet 16472 ]; 16473 function createNamePathParslet({ allowSquareBracketsOnAnyType, allowJsdocNamePaths, pathGrammar: pathGrammar2 }) { 16474 return function(parser, precedence, left2) { 16475 if (left2 == null || precedence >= Precedence.NAME_PATH) 16476 return null; 16477 let type5 = parser.lexer.current.type, next2 = parser.lexer.next.type; 16478 if (!(type5 === "." && next2 !== "<" || type5 === "[" && (allowSquareBracketsOnAnyType || left2.type === "JsdocTypeName") || allowJsdocNamePaths && (type5 === "~" || type5 === "#"))) 16479 return null; 16480 let pathType, brackets = !1; 16481 parser.consume(".") ? pathType = "property" : parser.consume("[") ? (pathType = "property-brackets", brackets = !0) : parser.consume("~") ? pathType = "inner" : (parser.consume("#"), pathType = "instance"); 16482 let pathParser = pathGrammar2 !== null ? new Parser2(pathGrammar2, parser.lexer, parser) : parser, parsed = pathParser.parseIntermediateType(Precedence.NAME_PATH); 16483 parser.acceptLexerState(pathParser); 16484 let right2; 16485 switch (parsed.type) { 16486 case "JsdocTypeName": 16487 right2 = { 16488 type: "JsdocTypeProperty", 16489 value: parsed.value, 16490 meta: { 16491 quote: void 0 16492 } 16493 }; 16494 break; 16495 case "JsdocTypeNumber": 16496 right2 = { 16497 type: "JsdocTypeProperty", 16498 value: parsed.value.toString(10), 16499 meta: { 16500 quote: void 0 16501 } 16502 }; 16503 break; 16504 case "JsdocTypeStringValue": 16505 right2 = { 16506 type: "JsdocTypeProperty", 16507 value: parsed.value, 16508 meta: { 16509 quote: parsed.meta.quote 16510 } 16511 }; 16512 break; 16513 case "JsdocTypeSpecialNamePath": 16514 if (parsed.specialType === "event") 16515 right2 = parsed; 16516 else 16517 throw new UnexpectedTypeError(parsed, "Type 'JsdocTypeSpecialNamePath' is only allowed with specialType 'event'"); 16518 break; 16519 default: 16520 throw new UnexpectedTypeError(parsed, "Expecting 'JsdocTypeName', 'JsdocTypeNumber', 'JsdocStringValue' or 'JsdocTypeSpecialNamePath'"); 16521 } 16522 if (brackets && !parser.consume("]")) { 16523 let token2 = parser.lexer.current; 16524 throw new Error(`Unterminated square brackets. Next token is '${token2.type}' with text '${token2.text}'`); 16525 } 16526 return { 16527 type: "JsdocTypeNamePath", 16528 left: assertRootResult(left2), 16529 right: right2, 16530 pathType 16531 }; 16532 }; 16533 } 16534 function createNameParslet({ allowedAdditionalTokens }) { 16535 return composeParslet({ 16536 name: "nameParslet", 16537 accept: (type5) => type5 === "Identifier" || type5 === "this" || type5 === "new" || allowedAdditionalTokens.includes(type5), 16538 parsePrefix: (parser) => { 16539 let { type: type5, text } = parser.lexer.current; 16540 return parser.consume(type5), { 16541 type: "JsdocTypeName", 16542 value: text 16543 }; 16544 } 16545 }); 16546 } 16547 let stringValueParslet = composeParslet({ 16548 name: "stringValueParslet", 16549 accept: (type5) => type5 === "StringValue", 16550 parsePrefix: (parser) => { 16551 let text = parser.lexer.current.text; 16552 return parser.consume("StringValue"), { 16553 type: "JsdocTypeStringValue", 16554 value: text.slice(1, -1), 16555 meta: { 16556 quote: text[0] === "'" ? "single" : "double" 16557 } 16558 }; 16559 } 16560 }); 16561 function createSpecialNamePathParslet({ pathGrammar: pathGrammar2, allowedTypes }) { 16562 return composeParslet({ 16563 name: "specialNamePathParslet", 16564 accept: (type5) => allowedTypes.includes(type5), 16565 parsePrefix: (parser) => { 16566 let type5 = parser.lexer.current.type; 16567 if (parser.consume(type5), !parser.consume(":")) 16568 return { 16569 type: "JsdocTypeName", 16570 value: type5 16571 }; 16572 let result, token2 = parser.lexer.current; 16573 if (parser.consume("StringValue")) 16574 result = { 16575 type: "JsdocTypeSpecialNamePath", 16576 value: token2.text.slice(1, -1), 16577 specialType: type5, 16578 meta: { 16579 quote: token2.text[0] === "'" ? "single" : "double" 16580 } 16581 }; 16582 else { 16583 let value = "", allowed = ["Identifier", "@", "/"]; 16584 for (; allowed.some((type6) => parser.consume(type6)); ) 16585 value += token2.text, token2 = parser.lexer.current; 16586 result = { 16587 type: "JsdocTypeSpecialNamePath", 16588 value, 16589 specialType: type5, 16590 meta: { 16591 quote: void 0 16592 } 16593 }; 16594 } 16595 let moduleParser = new Parser2(pathGrammar2, parser.lexer, parser), moduleResult = moduleParser.parseInfixIntermediateType(result, Precedence.ALL); 16596 return parser.acceptLexerState(moduleParser), assertRootResult(moduleResult); 16597 } 16598 }); 16599 } 16600 let basePathGrammar = [ 16601 createNameParslet({ 16602 allowedAdditionalTokens: ["external", "module"] 16603 }), 16604 stringValueParslet, 16605 numberParslet, 16606 createNamePathParslet({ 16607 allowSquareBracketsOnAnyType: !1, 16608 allowJsdocNamePaths: !0, 16609 pathGrammar: null 16610 }) 16611 ], pathGrammar = [ 16612 ...basePathGrammar, 16613 createSpecialNamePathParslet({ 16614 allowedTypes: ["event"], 16615 pathGrammar: basePathGrammar 16616 }) 16617 ]; 16618 function getParameters(value) { 16619 let parameters2; 16620 if (value.type === "JsdocTypeParameterList") 16621 parameters2 = value.elements; 16622 else if (value.type === "JsdocTypeParenthesis") 16623 parameters2 = [value.element]; 16624 else 16625 throw new UnexpectedTypeError(value); 16626 return parameters2.map((p3) => assertPlainKeyValueOrRootResult(p3)); 16627 } 16628 function getUnnamedParameters(value) { 16629 let parameters2 = getParameters(value); 16630 if (parameters2.some((p3) => p3.type === "JsdocTypeKeyValue")) 16631 throw new Error("No parameter should be named"); 16632 return parameters2; 16633 } 16634 function createFunctionParslet({ allowNamedParameters, allowNoReturnType, allowWithoutParenthesis, allowNewAsFunctionKeyword }) { 16635 return composeParslet({ 16636 name: "functionParslet", 16637 accept: (type5, next2) => type5 === "function" || allowNewAsFunctionKeyword && type5 === "new" && next2 === "(", 16638 parsePrefix: (parser) => { 16639 let newKeyword = parser.consume("new"); 16640 parser.consume("function"); 16641 let hasParenthesis = parser.lexer.current.type === "("; 16642 if (!hasParenthesis) { 16643 if (!allowWithoutParenthesis) 16644 throw new Error("function is missing parameter list"); 16645 return { 16646 type: "JsdocTypeName", 16647 value: "function" 16648 }; 16649 } 16650 let result = { 16651 type: "JsdocTypeFunction", 16652 parameters: [], 16653 arrow: !1, 16654 constructor: newKeyword, 16655 parenthesis: hasParenthesis 16656 }, value = parser.parseIntermediateType(Precedence.FUNCTION); 16657 if (allowNamedParameters === void 0) 16658 result.parameters = getUnnamedParameters(value); 16659 else { 16660 if (newKeyword && value.type === "JsdocTypeFunction" && value.arrow) 16661 return result = value, result.constructor = !0, result; 16662 result.parameters = getParameters(value); 16663 for (let p3 of result.parameters) 16664 if (p3.type === "JsdocTypeKeyValue" && !allowNamedParameters.includes(p3.key)) 16665 throw new Error(`only allowed named parameters are ${allowNamedParameters.join(", ")} but got ${p3.type}`); 16666 } 16667 if (parser.consume(":")) 16668 result.returnType = parser.parseType(Precedence.PREFIX); 16669 else if (!allowNoReturnType) 16670 throw new Error("function is missing return type"); 16671 return result; 16672 } 16673 }); 16674 } 16675 function createVariadicParslet({ allowPostfix, allowEnclosingBrackets }) { 16676 return composeParslet({ 16677 name: "variadicParslet", 16678 accept: (type5) => type5 === "...", 16679 precedence: Precedence.PREFIX, 16680 parsePrefix: (parser) => { 16681 parser.consume("..."); 16682 let brackets = allowEnclosingBrackets && parser.consume("["); 16683 try { 16684 let element = parser.parseType(Precedence.PREFIX); 16685 if (brackets && !parser.consume("]")) 16686 throw new Error("Unterminated variadic type. Missing ']'"); 16687 return { 16688 type: "JsdocTypeVariadic", 16689 element: assertRootResult(element), 16690 meta: { 16691 position: "prefix", 16692 squareBrackets: brackets 16693 } 16694 }; 16695 } catch (e) { 16696 if (e instanceof NoParsletFoundError) { 16697 if (brackets) 16698 throw new Error("Empty square brackets for variadic are not allowed."); 16699 return { 16700 type: "JsdocTypeVariadic", 16701 meta: { 16702 position: void 0, 16703 squareBrackets: !1 16704 } 16705 }; 16706 } else 16707 throw e; 16708 } 16709 }, 16710 parseInfix: allowPostfix ? (parser, left2) => (parser.consume("..."), { 16711 type: "JsdocTypeVariadic", 16712 element: assertRootResult(left2), 16713 meta: { 16714 position: "suffix", 16715 squareBrackets: !1 16716 } 16717 }) : void 0 16718 }); 16719 } 16720 let symbolParslet = composeParslet({ 16721 name: "symbolParslet", 16722 accept: (type5) => type5 === "(", 16723 precedence: Precedence.SYMBOL, 16724 parseInfix: (parser, left2) => { 16725 if (left2.type !== "JsdocTypeName") 16726 throw new Error("Symbol expects a name on the left side. (Reacting on '(')"); 16727 parser.consume("("); 16728 let result = { 16729 type: "JsdocTypeSymbol", 16730 value: left2.value 16731 }; 16732 if (!parser.consume(")")) { 16733 let next2 = parser.parseIntermediateType(Precedence.SYMBOL); 16734 if (result.element = assertNumberOrVariadicNameResult(next2), !parser.consume(")")) 16735 throw new Error("Symbol does not end after value"); 16736 } 16737 return result; 16738 } 16739 }), arrayBracketsParslet = composeParslet({ 16740 name: "arrayBracketsParslet", 16741 precedence: Precedence.ARRAY_BRACKETS, 16742 accept: (type5, next2) => type5 === "[" && next2 === "]", 16743 parseInfix: (parser, left2) => (parser.consume("["), parser.consume("]"), { 16744 type: "JsdocTypeGeneric", 16745 left: { 16746 type: "JsdocTypeName", 16747 value: "Array" 16748 }, 16749 elements: [ 16750 assertRootResult(left2) 16751 ], 16752 meta: { 16753 brackets: "square", 16754 dot: !1 16755 } 16756 }) 16757 }); 16758 function createObjectParslet({ objectFieldGrammar: objectFieldGrammar2, allowKeyTypes }) { 16759 return composeParslet({ 16760 name: "objectParslet", 16761 accept: (type5) => type5 === "{", 16762 parsePrefix: (parser) => { 16763 parser.consume("{"); 16764 let result = { 16765 type: "JsdocTypeObject", 16766 meta: { 16767 separator: "comma" 16768 }, 16769 elements: [] 16770 }; 16771 if (!parser.consume("}")) { 16772 let separator, fieldParser = new Parser2(objectFieldGrammar2, parser.lexer, parser); 16773 for (; ; ) { 16774 fieldParser.acceptLexerState(parser); 16775 let field = fieldParser.parseIntermediateType(Precedence.OBJECT); 16776 parser.acceptLexerState(fieldParser), field === void 0 && allowKeyTypes && (field = parser.parseIntermediateType(Precedence.OBJECT)); 16777 let optional = !1; 16778 if (field.type === "JsdocTypeNullable" && (optional = !0, field = field.element), field.type === "JsdocTypeNumber" || field.type === "JsdocTypeName" || field.type === "JsdocTypeStringValue") { 16779 let quote2; 16780 field.type === "JsdocTypeStringValue" && (quote2 = field.meta.quote), result.elements.push({ 16781 type: "JsdocTypeObjectField", 16782 key: field.value.toString(), 16783 right: void 0, 16784 optional, 16785 readonly: !1, 16786 meta: { 16787 quote: quote2 16788 } 16789 }); 16790 } else if (field.type === "JsdocTypeObjectField" || field.type === "JsdocTypeJsdocObjectField") 16791 result.elements.push(field); 16792 else 16793 throw new UnexpectedTypeError(field); 16794 if (parser.lexer.current.startOfLine) 16795 separator = "linebreak", parser.consume(",") || parser.consume(";"); 16796 else if (parser.consume(",")) 16797 separator = "comma"; 16798 else if (parser.consume(";")) 16799 separator = "semicolon"; 16800 else 16801 break; 16802 if (parser.lexer.current.type === "}") 16803 break; 16804 } 16805 if (result.meta.separator = separator ?? "comma", separator === "linebreak" && (result.meta.propertyIndent = " "), !parser.consume("}")) 16806 throw new Error("Unterminated record type. Missing '}'"); 16807 } 16808 return result; 16809 } 16810 }); 16811 } 16812 function createObjectFieldParslet({ allowSquaredProperties, allowKeyTypes, allowReadonly, allowOptional }) { 16813 return composeParslet({ 16814 name: "objectFieldParslet", 16815 precedence: Precedence.KEY_VALUE, 16816 accept: (type5) => type5 === ":", 16817 parseInfix: (parser, left2) => { 16818 var _a4; 16819 let optional = !1, readonlyProperty = !1; 16820 allowOptional && left2.type === "JsdocTypeNullable" && (optional = !0, left2 = left2.element), allowReadonly && left2.type === "JsdocTypeReadonlyProperty" && (readonlyProperty = !0, left2 = left2.element); 16821 let parentParser = (_a4 = parser.baseParser) !== null && _a4 !== void 0 ? _a4 : parser; 16822 if (parentParser.acceptLexerState(parser), left2.type === "JsdocTypeNumber" || left2.type === "JsdocTypeName" || left2.type === "JsdocTypeStringValue" || isSquaredProperty(left2)) { 16823 if (isSquaredProperty(left2) && !allowSquaredProperties) 16824 throw new UnexpectedTypeError(left2); 16825 parentParser.consume(":"); 16826 let quote2; 16827 left2.type === "JsdocTypeStringValue" && (quote2 = left2.meta.quote); 16828 let right2 = parentParser.parseType(Precedence.KEY_VALUE); 16829 return parser.acceptLexerState(parentParser), { 16830 type: "JsdocTypeObjectField", 16831 key: isSquaredProperty(left2) ? left2 : left2.value.toString(), 16832 right: right2, 16833 optional, 16834 readonly: readonlyProperty, 16835 meta: { 16836 quote: quote2 16837 } 16838 }; 16839 } else { 16840 if (!allowKeyTypes) 16841 throw new UnexpectedTypeError(left2); 16842 parentParser.consume(":"); 16843 let right2 = parentParser.parseType(Precedence.KEY_VALUE); 16844 return parser.acceptLexerState(parentParser), { 16845 type: "JsdocTypeJsdocObjectField", 16846 left: assertRootResult(left2), 16847 right: right2 16848 }; 16849 } 16850 } 16851 }); 16852 } 16853 function createKeyValueParslet({ allowOptional, allowVariadic }) { 16854 return composeParslet({ 16855 name: "keyValueParslet", 16856 precedence: Precedence.KEY_VALUE, 16857 accept: (type5) => type5 === ":", 16858 parseInfix: (parser, left2) => { 16859 let optional = !1, variadic2 = !1; 16860 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") 16861 throw new UnexpectedTypeError(left2); 16862 parser.consume(":"); 16863 let right2 = parser.parseType(Precedence.KEY_VALUE); 16864 return { 16865 type: "JsdocTypeKeyValue", 16866 key: left2.value, 16867 right: right2, 16868 optional, 16869 variadic: variadic2 16870 }; 16871 } 16872 }); 16873 } 16874 let jsdocBaseGrammar = [ 16875 ...baseGrammar, 16876 createFunctionParslet({ 16877 allowWithoutParenthesis: !0, 16878 allowNamedParameters: ["this", "new"], 16879 allowNoReturnType: !0, 16880 allowNewAsFunctionKeyword: !1 16881 }), 16882 stringValueParslet, 16883 createSpecialNamePathParslet({ 16884 allowedTypes: ["module", "external", "event"], 16885 pathGrammar 16886 }), 16887 createVariadicParslet({ 16888 allowEnclosingBrackets: !0, 16889 allowPostfix: !0 16890 }), 16891 createNameParslet({ 16892 allowedAdditionalTokens: ["keyof"] 16893 }), 16894 symbolParslet, 16895 arrayBracketsParslet, 16896 createNamePathParslet({ 16897 allowSquareBracketsOnAnyType: !1, 16898 allowJsdocNamePaths: !0, 16899 pathGrammar 16900 }) 16901 ], jsdocGrammar = [ 16902 ...jsdocBaseGrammar, 16903 createObjectParslet({ 16904 // jsdoc syntax allows full types as keys, so we need to pull in the full grammar here 16905 // we leave out the object type deliberately 16906 objectFieldGrammar: [ 16907 createNameParslet({ 16908 allowedAdditionalTokens: ["typeof", "module", "in"] 16909 }), 16910 createObjectFieldParslet({ 16911 allowSquaredProperties: !1, 16912 allowKeyTypes: !0, 16913 allowOptional: !1, 16914 allowReadonly: !1 16915 }), 16916 ...jsdocBaseGrammar 16917 ], 16918 allowKeyTypes: !0 16919 }), 16920 createKeyValueParslet({ 16921 allowOptional: !0, 16922 allowVariadic: !0 16923 }) 16924 ], typeOfParslet = composeParslet({ 16925 name: "typeOfParslet", 16926 accept: (type5) => type5 === "typeof", 16927 parsePrefix: (parser) => (parser.consume("typeof"), { 16928 type: "JsdocTypeTypeof", 16929 element: parser.parseType(Precedence.KEY_OF_TYPE_OF) 16930 }) 16931 }), objectFieldGrammar$1 = [ 16932 createNameParslet({ 16933 allowedAdditionalTokens: ["typeof", "module", "keyof", "event", "external", "in"] 16934 }), 16935 nullableParslet, 16936 optionalParslet, 16937 stringValueParslet, 16938 numberParslet, 16939 createObjectFieldParslet({ 16940 allowSquaredProperties: !1, 16941 allowKeyTypes: !1, 16942 allowOptional: !1, 16943 allowReadonly: !1 16944 }) 16945 ], closureGrammar = [ 16946 ...baseGrammar, 16947 createObjectParslet({ 16948 allowKeyTypes: !1, 16949 objectFieldGrammar: objectFieldGrammar$1 16950 }), 16951 createNameParslet({ 16952 allowedAdditionalTokens: ["event", "external", "in"] 16953 }), 16954 typeOfParslet, 16955 createFunctionParslet({ 16956 allowWithoutParenthesis: !1, 16957 allowNamedParameters: ["this", "new"], 16958 allowNoReturnType: !0, 16959 allowNewAsFunctionKeyword: !1 16960 }), 16961 createVariadicParslet({ 16962 allowEnclosingBrackets: !1, 16963 allowPostfix: !1 16964 }), 16965 // additional name parslet is needed for some special cases 16966 createNameParslet({ 16967 allowedAdditionalTokens: ["keyof"] 16968 }), 16969 createSpecialNamePathParslet({ 16970 allowedTypes: ["module"], 16971 pathGrammar 16972 }), 16973 createNamePathParslet({ 16974 allowSquareBracketsOnAnyType: !1, 16975 allowJsdocNamePaths: !0, 16976 pathGrammar 16977 }), 16978 createKeyValueParslet({ 16979 allowOptional: !1, 16980 allowVariadic: !1 16981 }), 16982 symbolParslet 16983 ], assertsParslet = composeParslet({ 16984 name: "assertsParslet", 16985 accept: (type5) => type5 === "asserts", 16986 parsePrefix: (parser) => { 16987 parser.consume("asserts"); 16988 let left2 = parser.parseIntermediateType(Precedence.SYMBOL); 16989 if (left2.type !== "JsdocTypeName") 16990 throw new UnexpectedTypeError(left2, "A typescript asserts always has to have a name on the left side."); 16991 return parser.consume("is") ? { 16992 type: "JsdocTypeAsserts", 16993 left: left2, 16994 right: assertRootResult(parser.parseIntermediateType(Precedence.INFIX)) 16995 } : { 16996 type: "JsdocTypeAssertsPlain", 16997 element: left2 16998 }; 16999 } 17000 }); 17001 function createTupleParslet({ allowQuestionMark }) { 17002 return composeParslet({ 17003 name: "tupleParslet", 17004 accept: (type5) => type5 === "[", 17005 parsePrefix: (parser) => { 17006 parser.consume("["); 17007 let result = { 17008 type: "JsdocTypeTuple", 17009 elements: [] 17010 }; 17011 if (parser.consume("]")) 17012 return result; 17013 let typeList = parser.parseIntermediateType(Precedence.ALL); 17014 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("]")) 17015 throw new Error("Unterminated '['"); 17016 if (result.elements.some((e) => e.type === "JsdocTypeUnknown")) 17017 throw new Error("Question mark in tuple not allowed"); 17018 return result; 17019 } 17020 }); 17021 } 17022 let keyOfParslet = composeParslet({ 17023 name: "keyOfParslet", 17024 accept: (type5) => type5 === "keyof", 17025 parsePrefix: (parser) => (parser.consume("keyof"), { 17026 type: "JsdocTypeKeyof", 17027 element: assertRootResult(parser.parseType(Precedence.KEY_OF_TYPE_OF)) 17028 }) 17029 }), importParslet = composeParslet({ 17030 name: "importParslet", 17031 accept: (type5) => type5 === "import", 17032 parsePrefix: (parser) => { 17033 if (parser.consume("import"), !parser.consume("(")) 17034 throw new Error("Missing parenthesis after import keyword"); 17035 let path = parser.parseType(Precedence.PREFIX); 17036 if (path.type !== "JsdocTypeStringValue") 17037 throw new Error("Only string values are allowed as paths for imports"); 17038 if (!parser.consume(")")) 17039 throw new Error("Missing closing parenthesis after import keyword"); 17040 return { 17041 type: "JsdocTypeImport", 17042 element: path 17043 }; 17044 } 17045 }), readonlyPropertyParslet = composeParslet({ 17046 name: "readonlyPropertyParslet", 17047 accept: (type5) => type5 === "readonly", 17048 parsePrefix: (parser) => (parser.consume("readonly"), { 17049 type: "JsdocTypeReadonlyProperty", 17050 element: parser.parseIntermediateType(Precedence.KEY_VALUE) 17051 }) 17052 }), arrowFunctionParslet = composeParslet({ 17053 name: "arrowFunctionParslet", 17054 precedence: Precedence.ARROW, 17055 accept: (type5) => type5 === "=>", 17056 parseInfix: (parser, left2) => (parser.consume("=>"), { 17057 type: "JsdocTypeFunction", 17058 parameters: getParameters(left2).map(assertPlainKeyValueOrNameResult), 17059 arrow: !0, 17060 constructor: !1, 17061 parenthesis: !0, 17062 returnType: parser.parseType(Precedence.OBJECT) 17063 }) 17064 }), genericArrowFunctionParslet = composeParslet({ 17065 name: "genericArrowFunctionParslet", 17066 accept: (type5) => type5 === "<", 17067 parsePrefix: (parser) => { 17068 let typeParameters = []; 17069 parser.consume("<"); 17070 do { 17071 let defaultValue, name = parser.parseIntermediateType(Precedence.SYMBOL); 17072 if (name.type === "JsdocTypeOptional" && (name = name.element, defaultValue = parser.parseType(Precedence.SYMBOL)), name.type !== "JsdocTypeName") 17073 throw new UnexpectedTypeError(name); 17074 let constraint; 17075 parser.consume("extends") && (constraint = parser.parseType(Precedence.SYMBOL), constraint.type === "JsdocTypeOptional" && (constraint = constraint.element, defaultValue = parser.parseType(Precedence.SYMBOL))); 17076 let typeParameter = { 17077 type: "JsdocTypeTypeParameter", 17078 name 17079 }; 17080 if (constraint !== void 0 && (typeParameter.constraint = constraint), defaultValue !== void 0 && (typeParameter.defaultValue = defaultValue), typeParameters.push(typeParameter), parser.consume(">")) 17081 break; 17082 } while (parser.consume(",")); 17083 let functionBase = parser.parseIntermediateType(Precedence.SYMBOL); 17084 return functionBase.typeParameters = typeParameters, functionBase; 17085 } 17086 }), intersectionParslet = composeParslet({ 17087 name: "intersectionParslet", 17088 accept: (type5) => type5 === "&", 17089 precedence: Precedence.INTERSECTION, 17090 parseInfix: (parser, left2) => { 17091 parser.consume("&"); 17092 let elements = []; 17093 do 17094 elements.push(parser.parseType(Precedence.INTERSECTION)); 17095 while (parser.consume("&")); 17096 return { 17097 type: "JsdocTypeIntersection", 17098 elements: [assertRootResult(left2), ...elements] 17099 }; 17100 } 17101 }), predicateParslet = composeParslet({ 17102 name: "predicateParslet", 17103 precedence: Precedence.INFIX, 17104 accept: (type5) => type5 === "is", 17105 parseInfix: (parser, left2) => { 17106 if (left2.type !== "JsdocTypeName") 17107 throw new UnexpectedTypeError(left2, "A typescript predicate always has to have a name on the left side."); 17108 return parser.consume("is"), { 17109 type: "JsdocTypePredicate", 17110 left: left2, 17111 right: assertRootResult(parser.parseIntermediateType(Precedence.INFIX)) 17112 }; 17113 } 17114 }), objectSquaredPropertyParslet = composeParslet({ 17115 name: "objectSquareBracketPropertyParslet", 17116 accept: (type5) => type5 === "[", 17117 parsePrefix: (parser) => { 17118 if (parser.baseParser === void 0) 17119 throw new Error("Only allowed inside object grammar"); 17120 parser.consume("["); 17121 let key = parser.lexer.current.text; 17122 parser.consume("Identifier"); 17123 let result; 17124 if (parser.consume(":")) { 17125 let parentParser = parser.baseParser; 17126 parentParser.acceptLexerState(parser), result = { 17127 type: "JsdocTypeIndexSignature", 17128 key, 17129 right: parentParser.parseType(Precedence.INDEX_BRACKETS) 17130 }, parser.acceptLexerState(parentParser); 17131 } else if (parser.consume("in")) { 17132 let parentParser = parser.baseParser; 17133 parentParser.acceptLexerState(parser), result = { 17134 type: "JsdocTypeMappedType", 17135 key, 17136 right: parentParser.parseType(Precedence.ARRAY_BRACKETS) 17137 }, parser.acceptLexerState(parentParser); 17138 } else 17139 throw new Error("Missing ':' or 'in' inside square bracketed property."); 17140 if (!parser.consume("]")) 17141 throw new Error("Unterminated square brackets"); 17142 return result; 17143 } 17144 }), readonlyArrayParslet = composeParslet({ 17145 name: "readonlyArrayParslet", 17146 accept: (type5) => type5 === "readonly", 17147 parsePrefix: (parser) => (parser.consume("readonly"), { 17148 type: "JsdocTypeReadonlyArray", 17149 element: assertArrayOrTupleResult(parser.parseIntermediateType(Precedence.ALL)) 17150 }) 17151 }), conditionalParslet = composeParslet({ 17152 name: "conditionalParslet", 17153 precedence: Precedence.INFIX, 17154 accept: (type5) => type5 === "extends", 17155 parseInfix: (parser, left2) => { 17156 parser.consume("extends"); 17157 let extendsType = parser.parseType(Precedence.KEY_OF_TYPE_OF).element, trueType = parser.parseType(Precedence.INFIX); 17158 return parser.consume(":"), { 17159 type: "JsdocTypeConditional", 17160 checksType: assertRootResult(left2), 17161 extendsType, 17162 trueType, 17163 falseType: parser.parseType(Precedence.INFIX) 17164 }; 17165 } 17166 }), objectFieldGrammar = [ 17167 readonlyPropertyParslet, 17168 createNameParslet({ 17169 allowedAdditionalTokens: ["typeof", "module", "keyof", "event", "external", "in"] 17170 }), 17171 nullableParslet, 17172 optionalParslet, 17173 stringValueParslet, 17174 numberParslet, 17175 createObjectFieldParslet({ 17176 allowSquaredProperties: !0, 17177 allowKeyTypes: !1, 17178 allowOptional: !0, 17179 allowReadonly: !0 17180 }), 17181 objectSquaredPropertyParslet 17182 ], typescriptGrammar = [ 17183 ...baseGrammar, 17184 createObjectParslet({ 17185 allowKeyTypes: !1, 17186 objectFieldGrammar 17187 }), 17188 readonlyArrayParslet, 17189 typeOfParslet, 17190 keyOfParslet, 17191 importParslet, 17192 stringValueParslet, 17193 createFunctionParslet({ 17194 allowWithoutParenthesis: !0, 17195 allowNoReturnType: !1, 17196 allowNamedParameters: ["this", "new", "args"], 17197 allowNewAsFunctionKeyword: !0 17198 }), 17199 createTupleParslet({ 17200 allowQuestionMark: !1 17201 }), 17202 createVariadicParslet({ 17203 allowEnclosingBrackets: !1, 17204 allowPostfix: !1 17205 }), 17206 assertsParslet, 17207 conditionalParslet, 17208 createNameParslet({ 17209 allowedAdditionalTokens: ["event", "external", "in"] 17210 }), 17211 createSpecialNamePathParslet({ 17212 allowedTypes: ["module"], 17213 pathGrammar 17214 }), 17215 arrayBracketsParslet, 17216 arrowFunctionParslet, 17217 genericArrowFunctionParslet, 17218 createNamePathParslet({ 17219 allowSquareBracketsOnAnyType: !0, 17220 allowJsdocNamePaths: !1, 17221 pathGrammar 17222 }), 17223 intersectionParslet, 17224 predicateParslet, 17225 createKeyValueParslet({ 17226 allowVariadic: !0, 17227 allowOptional: !0 17228 }) 17229 ]; 17230 function parse9(expression, mode) { 17231 switch (mode) { 17232 case "closure": 17233 return new Parser2(closureGrammar, expression).parse(); 17234 case "jsdoc": 17235 return new Parser2(jsdocGrammar, expression).parse(); 17236 case "typescript": 17237 return new Parser2(typescriptGrammar, expression).parse(); 17238 } 17239 } 17240 function tryParse(expression, modes = ["typescript", "closure", "jsdoc"]) { 17241 let error; 17242 for (let mode of modes) 17243 try { 17244 return parse9(expression, mode); 17245 } catch (e) { 17246 error = e; 17247 } 17248 throw error; 17249 } 17250 function transform(rules2, parseResult) { 17251 let rule = rules2[parseResult.type]; 17252 if (rule === void 0) 17253 throw new Error(`In this set of transform rules exists no rule for type ${parseResult.type}.`); 17254 return rule(parseResult, (aParseResult) => transform(rules2, aParseResult)); 17255 } 17256 function notAvailableTransform(parseResult) { 17257 throw new Error("This transform is not available. Are you trying the correct parsing mode?"); 17258 } 17259 function extractSpecialParams(source) { 17260 let result = { 17261 params: [] 17262 }; 17263 for (let param of source.parameters) 17264 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); 17265 return result; 17266 } 17267 function applyPosition(position2, target, value) { 17268 return position2 === "prefix" ? value + target : target + value; 17269 } 17270 function quote(value, quote2) { 17271 switch (quote2) { 17272 case "double": 17273 return `"${value}"`; 17274 case "single": 17275 return `'${value}'`; 17276 case void 0: 17277 return value; 17278 } 17279 } 17280 function stringifyRules2() { 17281 return { 17282 JsdocTypeParenthesis: (result, transform2) => `(${result.element !== void 0 ? transform2(result.element) : ""})`, 17283 JsdocTypeKeyof: (result, transform2) => `keyof ${transform2(result.element)}`, 17284 JsdocTypeFunction: (result, transform2) => { 17285 var _a4; 17286 if (result.arrow) { 17287 if (result.returnType === void 0) 17288 throw new Error("Arrow function needs a return type."); 17289 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)}`; 17290 return result.constructor && (stringified = "new " + stringified), stringified; 17291 } else { 17292 let stringified = result.constructor ? "new" : "function"; 17293 return result.parenthesis && (stringified += `(${result.parameters.map(transform2).join(", ")})`, result.returnType !== void 0 && (stringified += `: ${transform2(result.returnType)}`)), stringified; 17294 } 17295 }, 17296 JsdocTypeName: (result) => result.value, 17297 JsdocTypeTuple: (result, transform2) => `[${result.elements.map(transform2).join(", ")}]`, 17298 JsdocTypeVariadic: (result, transform2) => result.meta.position === void 0 ? "..." : applyPosition(result.meta.position, transform2(result.element), "..."), 17299 JsdocTypeNamePath: (result, transform2) => { 17300 let left2 = transform2(result.left), right2 = transform2(result.right); 17301 switch (result.pathType) { 17302 case "inner": 17303 return `${left2}~${right2}`; 17304 case "instance": 17305 return `${left2}#${right2}`; 17306 case "property": 17307 return `${left2}.${right2}`; 17308 case "property-brackets": 17309 return `${left2}[${right2}]`; 17310 } 17311 }, 17312 JsdocTypeStringValue: (result) => quote(result.value, result.meta.quote), 17313 JsdocTypeAny: () => "*", 17314 JsdocTypeGeneric: (result, transform2) => { 17315 if (result.meta.brackets === "square") { 17316 let element = result.elements[0], transformed = transform2(element); 17317 return element.type === "JsdocTypeUnion" || element.type === "JsdocTypeIntersection" ? `(${transformed})[]` : `${transformed}[]`; 17318 } else 17319 return `${transform2(result.left)}${result.meta.dot ? "." : ""}<${result.infer === !0 ? "infer " : ""}${result.elements.map(transform2).join(", ")}>`; 17320 }, 17321 JsdocTypeImport: (result, transform2) => `import(${transform2(result.element)})`, 17322 JsdocTypeObjectField: (result, transform2) => { 17323 let text = ""; 17324 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)}`; 17325 }, 17326 JsdocTypeJsdocObjectField: (result, transform2) => `${transform2(result.left)}: ${transform2(result.right)}`, 17327 JsdocTypeKeyValue: (result, transform2) => { 17328 let text = result.key; 17329 return result.optional && (text += "?"), result.variadic && (text = "..." + text), result.right === void 0 ? text : text + `: ${transform2(result.right)}`; 17330 }, 17331 JsdocTypeSpecialNamePath: (result) => `${result.specialType}:${quote(result.value, result.meta.quote)}`, 17332 JsdocTypeNotNullable: (result, transform2) => applyPosition(result.meta.position, transform2(result.element), "!"), 17333 JsdocTypeNull: () => "null", 17334 JsdocTypeNullable: (result, transform2) => applyPosition(result.meta.position, transform2(result.element), "?"), 17335 JsdocTypeNumber: (result) => result.value.toString(), 17336 JsdocTypeObject: (result, transform2) => { 17337 var _a4, _b; 17338 return `{${(result.meta.separator === "linebreak" && result.elements.length > 1 ? ` 17339` + ((_a4 = result.meta.propertyIndent) !== null && _a4 !== void 0 ? _a4 : "") : "") + result.elements.map(transform2).join(result.meta.separator === "comma" ? ", " : result.meta.separator === "linebreak" ? ` 17340` + ((_b = result.meta.propertyIndent) !== null && _b !== void 0 ? _b : "") : "; ") + (result.meta.separator === "linebreak" && result.elements.length > 1 ? ` 17341` : "")}}`; 17342 }, 17343 JsdocTypeOptional: (result, transform2) => applyPosition(result.meta.position, transform2(result.element), "="), 17344 JsdocTypeSymbol: (result, transform2) => `${result.value}(${result.element !== void 0 ? transform2(result.element) : ""})`, 17345 JsdocTypeTypeof: (result, transform2) => `typeof ${transform2(result.element)}`, 17346 JsdocTypeUndefined: () => "undefined", 17347 JsdocTypeUnion: (result, transform2) => result.elements.map(transform2).join(" | "), 17348 JsdocTypeUnknown: () => "?", 17349 JsdocTypeIntersection: (result, transform2) => result.elements.map(transform2).join(" & "), 17350 JsdocTypeProperty: (result) => quote(result.value, result.meta.quote), 17351 JsdocTypePredicate: (result, transform2) => `${transform2(result.left)} is ${transform2(result.right)}`, 17352 JsdocTypeIndexSignature: (result, transform2) => `[${result.key}: ${transform2(result.right)}]`, 17353 JsdocTypeMappedType: (result, transform2) => `[${result.key} in ${transform2(result.right)}]`, 17354 JsdocTypeAsserts: (result, transform2) => `asserts ${transform2(result.left)} is ${transform2(result.right)}`, 17355 JsdocTypeReadonlyArray: (result, transform2) => `readonly ${transform2(result.element)}`, 17356 JsdocTypeAssertsPlain: (result, transform2) => `asserts ${transform2(result.element)}`, 17357 JsdocTypeConditional: (result, transform2) => `${transform2(result.checksType)} extends ${transform2(result.extendsType)} ? ${transform2(result.trueType)} : ${transform2(result.falseType)}`, 17358 JsdocTypeTypeParameter: (result, transform2) => `${transform2(result.name)}${result.constraint !== void 0 ? ` extends ${transform2(result.constraint)}` : ""}${result.defaultValue !== void 0 ? ` = ${transform2(result.defaultValue)}` : ""}` 17359 }; 17360 } 17361 let storedStringifyRules = stringifyRules2(); 17362 function stringify8(result) { 17363 return transform(storedStringifyRules, result); 17364 } 17365 let reservedWords2 = [ 17366 "null", 17367 "true", 17368 "false", 17369 "break", 17370 "case", 17371 "catch", 17372 "class", 17373 "const", 17374 "continue", 17375 "debugger", 17376 "default", 17377 "delete", 17378 "do", 17379 "else", 17380 "export", 17381 "extends", 17382 "finally", 17383 "for", 17384 "function", 17385 "if", 17386 "import", 17387 "in", 17388 "instanceof", 17389 "new", 17390 "return", 17391 "super", 17392 "switch", 17393 "this", 17394 "throw", 17395 "try", 17396 "typeof", 17397 "var", 17398 "void", 17399 "while", 17400 "with", 17401 "yield" 17402 ]; 17403 function makeName(value) { 17404 let result = { 17405 type: "NameExpression", 17406 name: value 17407 }; 17408 return reservedWords2.includes(value) && (result.reservedWord = !0), result; 17409 } 17410 let catharsisTransformRules = { 17411 JsdocTypeOptional: (result, transform2) => { 17412 let transformed = transform2(result.element); 17413 return transformed.optional = !0, transformed; 17414 }, 17415 JsdocTypeNullable: (result, transform2) => { 17416 let transformed = transform2(result.element); 17417 return transformed.nullable = !0, transformed; 17418 }, 17419 JsdocTypeNotNullable: (result, transform2) => { 17420 let transformed = transform2(result.element); 17421 return transformed.nullable = !1, transformed; 17422 }, 17423 JsdocTypeVariadic: (result, transform2) => { 17424 if (result.element === void 0) 17425 throw new Error("dots without value are not allowed in catharsis mode"); 17426 let transformed = transform2(result.element); 17427 return transformed.repeatable = !0, transformed; 17428 }, 17429 JsdocTypeAny: () => ({ 17430 type: "AllLiteral" 17431 }), 17432 JsdocTypeNull: () => ({ 17433 type: "NullLiteral" 17434 }), 17435 JsdocTypeStringValue: (result) => makeName(quote(result.value, result.meta.quote)), 17436 JsdocTypeUndefined: () => ({ 17437 type: "UndefinedLiteral" 17438 }), 17439 JsdocTypeUnknown: () => ({ 17440 type: "UnknownLiteral" 17441 }), 17442 JsdocTypeFunction: (result, transform2) => { 17443 let params = extractSpecialParams(result), transformed = { 17444 type: "FunctionType", 17445 params: params.params.map(transform2) 17446 }; 17447 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; 17448 }, 17449 JsdocTypeGeneric: (result, transform2) => ({ 17450 type: "TypeApplication", 17451 applications: result.elements.map((o) => transform2(o)), 17452 expression: transform2(result.left) 17453 }), 17454 JsdocTypeSpecialNamePath: (result) => makeName(result.specialType + ":" + quote(result.value, result.meta.quote)), 17455 JsdocTypeName: (result) => result.value !== "function" ? makeName(result.value) : { 17456 type: "FunctionType", 17457 params: [] 17458 }, 17459 JsdocTypeNumber: (result) => makeName(result.value.toString()), 17460 JsdocTypeObject: (result, transform2) => { 17461 let transformed = { 17462 type: "RecordType", 17463 fields: [] 17464 }; 17465 for (let field of result.elements) 17466 field.type !== "JsdocTypeObjectField" && field.type !== "JsdocTypeJsdocObjectField" ? transformed.fields.push({ 17467 type: "FieldType", 17468 key: transform2(field), 17469 value: void 0 17470 }) : transformed.fields.push(transform2(field)); 17471 return transformed; 17472 }, 17473 JsdocTypeObjectField: (result, transform2) => { 17474 if (typeof result.key != "string") 17475 throw new Error("Index signatures and mapped types are not supported"); 17476 return { 17477 type: "FieldType", 17478 key: makeName(quote(result.key, result.meta.quote)), 17479 value: result.right === void 0 ? void 0 : transform2(result.right) 17480 }; 17481 }, 17482 JsdocTypeJsdocObjectField: (result, transform2) => ({ 17483 type: "FieldType", 17484 key: transform2(result.left), 17485 value: transform2(result.right) 17486 }), 17487 JsdocTypeUnion: (result, transform2) => ({ 17488 type: "TypeUnion", 17489 elements: result.elements.map((e) => transform2(e)) 17490 }), 17491 JsdocTypeKeyValue: (result, transform2) => ({ 17492 type: "FieldType", 17493 key: makeName(result.key), 17494 value: result.right === void 0 ? void 0 : transform2(result.right) 17495 }), 17496 JsdocTypeNamePath: (result, transform2) => { 17497 let leftResult = transform2(result.left), rightValue; 17498 result.right.type === "JsdocTypeSpecialNamePath" ? rightValue = transform2(result.right).name : rightValue = quote(result.right.value, result.right.meta.quote); 17499 let joiner = result.pathType === "inner" ? "~" : result.pathType === "instance" ? "#" : "."; 17500 return makeName(`${leftResult.name}${joiner}${rightValue}`); 17501 }, 17502 JsdocTypeSymbol: (result) => { 17503 let value = "", element = result.element, trailingDots = !1; 17504 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})`); 17505 }, 17506 JsdocTypeParenthesis: (result, transform2) => transform2(assertRootResult(result.element)), 17507 JsdocTypeMappedType: notAvailableTransform, 17508 JsdocTypeIndexSignature: notAvailableTransform, 17509 JsdocTypeImport: notAvailableTransform, 17510 JsdocTypeKeyof: notAvailableTransform, 17511 JsdocTypeTuple: notAvailableTransform, 17512 JsdocTypeTypeof: notAvailableTransform, 17513 JsdocTypeIntersection: notAvailableTransform, 17514 JsdocTypeProperty: notAvailableTransform, 17515 JsdocTypePredicate: notAvailableTransform, 17516 JsdocTypeAsserts: notAvailableTransform, 17517 JsdocTypeReadonlyArray: notAvailableTransform, 17518 JsdocTypeAssertsPlain: notAvailableTransform, 17519 JsdocTypeConditional: notAvailableTransform, 17520 JsdocTypeTypeParameter: notAvailableTransform 17521 }; 17522 function catharsisTransform(result) { 17523 return transform(catharsisTransformRules, result); 17524 } 17525 function getQuoteStyle(quote2) { 17526 switch (quote2) { 17527 case void 0: 17528 return "none"; 17529 case "single": 17530 return "single"; 17531 case "double": 17532 return "double"; 17533 } 17534 } 17535 function getMemberType(type5) { 17536 switch (type5) { 17537 case "inner": 17538 return "INNER_MEMBER"; 17539 case "instance": 17540 return "INSTANCE_MEMBER"; 17541 case "property": 17542 return "MEMBER"; 17543 case "property-brackets": 17544 return "MEMBER"; 17545 } 17546 } 17547 function nestResults(type5, results) { 17548 return results.length === 2 ? { 17549 type: type5, 17550 left: results[0], 17551 right: results[1] 17552 } : { 17553 type: type5, 17554 left: results[0], 17555 right: nestResults(type5, results.slice(1)) 17556 }; 17557 } 17558 let jtpRules = { 17559 JsdocTypeOptional: (result, transform2) => ({ 17560 type: "OPTIONAL", 17561 value: transform2(result.element), 17562 meta: { 17563 syntax: result.meta.position === "prefix" ? "PREFIX_EQUAL_SIGN" : "SUFFIX_EQUALS_SIGN" 17564 } 17565 }), 17566 JsdocTypeNullable: (result, transform2) => ({ 17567 type: "NULLABLE", 17568 value: transform2(result.element), 17569 meta: { 17570 syntax: result.meta.position === "prefix" ? "PREFIX_QUESTION_MARK" : "SUFFIX_QUESTION_MARK" 17571 } 17572 }), 17573 JsdocTypeNotNullable: (result, transform2) => ({ 17574 type: "NOT_NULLABLE", 17575 value: transform2(result.element), 17576 meta: { 17577 syntax: result.meta.position === "prefix" ? "PREFIX_BANG" : "SUFFIX_BANG" 17578 } 17579 }), 17580 JsdocTypeVariadic: (result, transform2) => { 17581 let transformed = { 17582 type: "VARIADIC", 17583 meta: { 17584 syntax: result.meta.position === "prefix" ? "PREFIX_DOTS" : result.meta.position === "suffix" ? "SUFFIX_DOTS" : "ONLY_DOTS" 17585 } 17586 }; 17587 return result.element !== void 0 && (transformed.value = transform2(result.element)), transformed; 17588 }, 17589 JsdocTypeName: (result) => ({ 17590 type: "NAME", 17591 name: result.value 17592 }), 17593 JsdocTypeTypeof: (result, transform2) => ({ 17594 type: "TYPE_QUERY", 17595 name: transform2(result.element) 17596 }), 17597 JsdocTypeTuple: (result, transform2) => ({ 17598 type: "TUPLE", 17599 entries: result.elements.map(transform2) 17600 }), 17601 JsdocTypeKeyof: (result, transform2) => ({ 17602 type: "KEY_QUERY", 17603 value: transform2(result.element) 17604 }), 17605 JsdocTypeImport: (result) => ({ 17606 type: "IMPORT", 17607 path: { 17608 type: "STRING_VALUE", 17609 quoteStyle: getQuoteStyle(result.element.meta.quote), 17610 string: result.element.value 17611 } 17612 }), 17613 JsdocTypeUndefined: () => ({ 17614 type: "NAME", 17615 name: "undefined" 17616 }), 17617 JsdocTypeAny: () => ({ 17618 type: "ANY" 17619 }), 17620 JsdocTypeFunction: (result, transform2) => { 17621 let specialParams = extractSpecialParams(result), transformed = { 17622 type: result.arrow ? "ARROW" : "FUNCTION", 17623 params: specialParams.params.map((param) => { 17624 if (param.type === "JsdocTypeKeyValue") { 17625 if (param.right === void 0) 17626 throw new Error("Function parameter without ':' is not expected to be 'KEY_VALUE'"); 17627 return { 17628 type: "NAMED_PARAMETER", 17629 name: param.key, 17630 typeName: transform2(param.right) 17631 }; 17632 } else 17633 return transform2(param); 17634 }), 17635 new: null, 17636 returns: null 17637 }; 17638 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; 17639 }, 17640 JsdocTypeGeneric: (result, transform2) => { 17641 let transformed = { 17642 type: "GENERIC", 17643 subject: transform2(result.left), 17644 objects: result.elements.map(transform2), 17645 meta: { 17646 syntax: result.meta.brackets === "square" ? "SQUARE_BRACKET" : result.meta.dot ? "ANGLE_BRACKET_WITH_DOT" : "ANGLE_BRACKET" 17647 } 17648 }; 17649 return result.meta.brackets === "square" && result.elements[0].type === "JsdocTypeFunction" && !result.elements[0].parenthesis && (transformed.objects[0] = { 17650 type: "NAME", 17651 name: "function" 17652 }), transformed; 17653 }, 17654 JsdocTypeObjectField: (result, transform2) => { 17655 if (typeof result.key != "string") 17656 throw new Error("Index signatures and mapped types are not supported"); 17657 if (result.right === void 0) 17658 return { 17659 type: "RECORD_ENTRY", 17660 key: result.key, 17661 quoteStyle: getQuoteStyle(result.meta.quote), 17662 value: null, 17663 readonly: !1 17664 }; 17665 let right2 = transform2(result.right); 17666 return result.optional && (right2 = { 17667 type: "OPTIONAL", 17668 value: right2, 17669 meta: { 17670 syntax: "SUFFIX_KEY_QUESTION_MARK" 17671 } 17672 }), { 17673 type: "RECORD_ENTRY", 17674 key: result.key.toString(), 17675 quoteStyle: getQuoteStyle(result.meta.quote), 17676 value: right2, 17677 readonly: !1 17678 }; 17679 }, 17680 JsdocTypeJsdocObjectField: () => { 17681 throw new Error("Keys may not be typed in jsdoctypeparser."); 17682 }, 17683 JsdocTypeKeyValue: (result, transform2) => { 17684 if (result.right === void 0) 17685 return { 17686 type: "RECORD_ENTRY", 17687 key: result.key, 17688 quoteStyle: "none", 17689 value: null, 17690 readonly: !1 17691 }; 17692 let right2 = transform2(result.right); 17693 return result.optional && (right2 = { 17694 type: "OPTIONAL", 17695 value: right2, 17696 meta: { 17697 syntax: "SUFFIX_KEY_QUESTION_MARK" 17698 } 17699 }), { 17700 type: "RECORD_ENTRY", 17701 key: result.key, 17702 quoteStyle: "none", 17703 value: right2, 17704 readonly: !1 17705 }; 17706 }, 17707 JsdocTypeObject: (result, transform2) => { 17708 let entries = []; 17709 for (let field of result.elements) 17710 (field.type === "JsdocTypeObjectField" || field.type === "JsdocTypeJsdocObjectField") && entries.push(transform2(field)); 17711 return { 17712 type: "RECORD", 17713 entries 17714 }; 17715 }, 17716 JsdocTypeSpecialNamePath: (result) => { 17717 if (result.specialType !== "module") 17718 throw new Error(`jsdoctypeparser does not support type ${result.specialType} at this point.`); 17719 return { 17720 type: "MODULE", 17721 value: { 17722 type: "FILE_PATH", 17723 quoteStyle: getQuoteStyle(result.meta.quote), 17724 path: result.value 17725 } 17726 }; 17727 }, 17728 JsdocTypeNamePath: (result, transform2) => { 17729 let hasEventPrefix = !1, name, quoteStyle; 17730 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)); 17731 let transformed = { 17732 type: getMemberType(result.pathType), 17733 owner: transform2(result.left), 17734 name, 17735 quoteStyle, 17736 hasEventPrefix 17737 }; 17738 if (transformed.owner.type === "MODULE") { 17739 let tModule = transformed.owner; 17740 return transformed.owner = transformed.owner.value, tModule.value = transformed, tModule; 17741 } else 17742 return transformed; 17743 }, 17744 JsdocTypeUnion: (result, transform2) => nestResults("UNION", result.elements.map(transform2)), 17745 JsdocTypeParenthesis: (result, transform2) => ({ 17746 type: "PARENTHESIS", 17747 value: transform2(assertRootResult(result.element)) 17748 }), 17749 JsdocTypeNull: () => ({ 17750 type: "NAME", 17751 name: "null" 17752 }), 17753 JsdocTypeUnknown: () => ({ 17754 type: "UNKNOWN" 17755 }), 17756 JsdocTypeStringValue: (result) => ({ 17757 type: "STRING_VALUE", 17758 quoteStyle: getQuoteStyle(result.meta.quote), 17759 string: result.value 17760 }), 17761 JsdocTypeIntersection: (result, transform2) => nestResults("INTERSECTION", result.elements.map(transform2)), 17762 JsdocTypeNumber: (result) => ({ 17763 type: "NUMBER_VALUE", 17764 number: result.value.toString() 17765 }), 17766 JsdocTypeSymbol: notAvailableTransform, 17767 JsdocTypeProperty: notAvailableTransform, 17768 JsdocTypePredicate: notAvailableTransform, 17769 JsdocTypeMappedType: notAvailableTransform, 17770 JsdocTypeIndexSignature: notAvailableTransform, 17771 JsdocTypeAsserts: notAvailableTransform, 17772 JsdocTypeReadonlyArray: notAvailableTransform, 17773 JsdocTypeAssertsPlain: notAvailableTransform, 17774 JsdocTypeConditional: notAvailableTransform, 17775 JsdocTypeTypeParameter: notAvailableTransform 17776 }; 17777 function jtpTransform(result) { 17778 return transform(jtpRules, result); 17779 } 17780 function identityTransformRules() { 17781 return { 17782 JsdocTypeIntersection: (result, transform2) => ({ 17783 type: "JsdocTypeIntersection", 17784 elements: result.elements.map(transform2) 17785 }), 17786 JsdocTypeGeneric: (result, transform2) => ({ 17787 type: "JsdocTypeGeneric", 17788 left: transform2(result.left), 17789 elements: result.elements.map(transform2), 17790 meta: { 17791 dot: result.meta.dot, 17792 brackets: result.meta.brackets 17793 } 17794 }), 17795 JsdocTypeNullable: (result) => result, 17796 JsdocTypeUnion: (result, transform2) => ({ 17797 type: "JsdocTypeUnion", 17798 elements: result.elements.map(transform2) 17799 }), 17800 JsdocTypeUnknown: (result) => result, 17801 JsdocTypeUndefined: (result) => result, 17802 JsdocTypeTypeof: (result, transform2) => ({ 17803 type: "JsdocTypeTypeof", 17804 element: transform2(result.element) 17805 }), 17806 JsdocTypeSymbol: (result, transform2) => { 17807 let transformed = { 17808 type: "JsdocTypeSymbol", 17809 value: result.value 17810 }; 17811 return result.element !== void 0 && (transformed.element = transform2(result.element)), transformed; 17812 }, 17813 JsdocTypeOptional: (result, transform2) => ({ 17814 type: "JsdocTypeOptional", 17815 element: transform2(result.element), 17816 meta: { 17817 position: result.meta.position 17818 } 17819 }), 17820 JsdocTypeObject: (result, transform2) => ({ 17821 type: "JsdocTypeObject", 17822 meta: { 17823 separator: "comma" 17824 }, 17825 elements: result.elements.map(transform2) 17826 }), 17827 JsdocTypeNumber: (result) => result, 17828 JsdocTypeNull: (result) => result, 17829 JsdocTypeNotNullable: (result, transform2) => ({ 17830 type: "JsdocTypeNotNullable", 17831 element: transform2(result.element), 17832 meta: { 17833 position: result.meta.position 17834 } 17835 }), 17836 JsdocTypeSpecialNamePath: (result) => result, 17837 JsdocTypeObjectField: (result, transform2) => ({ 17838 type: "JsdocTypeObjectField", 17839 key: result.key, 17840 right: result.right === void 0 ? void 0 : transform2(result.right), 17841 optional: result.optional, 17842 readonly: result.readonly, 17843 meta: result.meta 17844 }), 17845 JsdocTypeJsdocObjectField: (result, transform2) => ({ 17846 type: "JsdocTypeJsdocObjectField", 17847 left: transform2(result.left), 17848 right: transform2(result.right) 17849 }), 17850 JsdocTypeKeyValue: (result, transform2) => ({ 17851 type: "JsdocTypeKeyValue", 17852 key: result.key, 17853 right: result.right === void 0 ? void 0 : transform2(result.right), 17854 optional: result.optional, 17855 variadic: result.variadic 17856 }), 17857 JsdocTypeImport: (result, transform2) => ({ 17858 type: "JsdocTypeImport", 17859 element: transform2(result.element) 17860 }), 17861 JsdocTypeAny: (result) => result, 17862 JsdocTypeStringValue: (result) => result, 17863 JsdocTypeNamePath: (result) => result, 17864 JsdocTypeVariadic: (result, transform2) => { 17865 let transformed = { 17866 type: "JsdocTypeVariadic", 17867 meta: { 17868 position: result.meta.position, 17869 squareBrackets: result.meta.squareBrackets 17870 } 17871 }; 17872 return result.element !== void 0 && (transformed.element = transform2(result.element)), transformed; 17873 }, 17874 JsdocTypeTuple: (result, transform2) => ({ 17875 type: "JsdocTypeTuple", 17876 elements: result.elements.map(transform2) 17877 }), 17878 JsdocTypeName: (result) => result, 17879 JsdocTypeFunction: (result, transform2) => { 17880 let transformed = { 17881 type: "JsdocTypeFunction", 17882 arrow: result.arrow, 17883 parameters: result.parameters.map(transform2), 17884 constructor: result.constructor, 17885 parenthesis: result.parenthesis 17886 }; 17887 return result.returnType !== void 0 && (transformed.returnType = transform2(result.returnType)), transformed; 17888 }, 17889 JsdocTypeKeyof: (result, transform2) => ({ 17890 type: "JsdocTypeKeyof", 17891 element: transform2(result.element) 17892 }), 17893 JsdocTypeParenthesis: (result, transform2) => ({ 17894 type: "JsdocTypeParenthesis", 17895 element: transform2(result.element) 17896 }), 17897 JsdocTypeProperty: (result) => result, 17898 JsdocTypePredicate: (result, transform2) => ({ 17899 type: "JsdocTypePredicate", 17900 left: transform2(result.left), 17901 right: transform2(result.right) 17902 }), 17903 JsdocTypeIndexSignature: (result, transform2) => ({ 17904 type: "JsdocTypeIndexSignature", 17905 key: result.key, 17906 right: transform2(result.right) 17907 }), 17908 JsdocTypeMappedType: (result, transform2) => ({ 17909 type: "JsdocTypeMappedType", 17910 key: result.key, 17911 right: transform2(result.right) 17912 }), 17913 JsdocTypeAsserts: (result, transform2) => ({ 17914 type: "JsdocTypeAsserts", 17915 left: transform2(result.left), 17916 right: transform2(result.right) 17917 }), 17918 JsdocTypeReadonlyArray: (result, transform2) => ({ 17919 type: "JsdocTypeReadonlyArray", 17920 element: transform2(result.element) 17921 }), 17922 JsdocTypeAssertsPlain: (result, transform2) => ({ 17923 type: "JsdocTypeAssertsPlain", 17924 element: transform2(result.element) 17925 }), 17926 JsdocTypeConditional: (result, transform2) => ({ 17927 type: "JsdocTypeConditional", 17928 checksType: transform2(result.checksType), 17929 extendsType: transform2(result.extendsType), 17930 trueType: transform2(result.trueType), 17931 falseType: transform2(result.falseType) 17932 }), 17933 JsdocTypeTypeParameter: (result, transform2) => ({ 17934 type: "JsdocTypeTypeParameter", 17935 name: transform2(result.name), 17936 constraint: result.constraint !== void 0 ? transform2(result.constraint) : void 0, 17937 defaultValue: result.defaultValue !== void 0 ? transform2(result.defaultValue) : void 0 17938 }) 17939 }; 17940 } 17941 let visitorKeys = { 17942 JsdocTypeAny: [], 17943 JsdocTypeFunction: ["parameters", "returnType"], 17944 JsdocTypeGeneric: ["left", "elements"], 17945 JsdocTypeImport: [], 17946 JsdocTypeIndexSignature: ["right"], 17947 JsdocTypeIntersection: ["elements"], 17948 JsdocTypeKeyof: ["element"], 17949 JsdocTypeKeyValue: ["right"], 17950 JsdocTypeMappedType: ["right"], 17951 JsdocTypeName: [], 17952 JsdocTypeNamePath: ["left", "right"], 17953 JsdocTypeNotNullable: ["element"], 17954 JsdocTypeNull: [], 17955 JsdocTypeNullable: ["element"], 17956 JsdocTypeNumber: [], 17957 JsdocTypeObject: ["elements"], 17958 JsdocTypeObjectField: ["right"], 17959 JsdocTypeJsdocObjectField: ["left", "right"], 17960 JsdocTypeOptional: ["element"], 17961 JsdocTypeParenthesis: ["element"], 17962 JsdocTypeSpecialNamePath: [], 17963 JsdocTypeStringValue: [], 17964 JsdocTypeSymbol: ["element"], 17965 JsdocTypeTuple: ["elements"], 17966 JsdocTypeTypeof: ["element"], 17967 JsdocTypeUndefined: [], 17968 JsdocTypeUnion: ["elements"], 17969 JsdocTypeUnknown: [], 17970 JsdocTypeVariadic: ["element"], 17971 JsdocTypeProperty: [], 17972 JsdocTypePredicate: ["left", "right"], 17973 JsdocTypeAsserts: ["left", "right"], 17974 JsdocTypeReadonlyArray: ["element"], 17975 JsdocTypeAssertsPlain: ["element"], 17976 JsdocTypeConditional: ["checksType", "extendsType", "trueType", "falseType"], 17977 JsdocTypeTypeParameter: ["name", "constraint", "defaultValue"] 17978 }; 17979 function _traverse(node2, parentNode, property, onEnter, onLeave) { 17980 onEnter?.(node2, parentNode, property); 17981 let keysToVisit = visitorKeys[node2.type]; 17982 for (let key of keysToVisit) { 17983 let value = node2[key]; 17984 if (value !== void 0) 17985 if (Array.isArray(value)) 17986 for (let element of value) 17987 _traverse(element, node2, key, onEnter, onLeave); 17988 else 17989 _traverse(value, node2, key, onEnter, onLeave); 17990 } 17991 onLeave?.(node2, parentNode, property); 17992 } 17993 function traverse(node2, onEnter, onLeave) { 17994 _traverse(node2, void 0, void 0, onEnter, onLeave); 17995 } 17996 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; 17997 })); 17998 } 17999}); 18000
vendor: 350 bytes, lines 18001-18011
18001// ../../node_modules/min-indent/index.js 18002var require_min_indent = __commonJS({ 18003 "../../node_modules/min-indent/index.js"(exports, module2) { 18004 "use strict"; 18005 module2.exports = (string) => { 18006 let match3 = string.match(/^[ \t]*(?=\S)/gm); 18007 return match3 ? match3.reduce((r2, a3) => Math.min(r2, a3.length), 1 / 0) : 0; 18008 }; 18009 } 18010}); 18011
vendor: 447 bytes, lines 18012-18026
18012// ../../node_modules/strip-indent/index.js 18013var require_strip_indent = __commonJS({ 18014 "../../node_modules/strip-indent/index.js"(exports, module2) { 18015 "use strict"; 18016 var minIndent = require_min_indent(); 18017 module2.exports = (string) => { 18018 let indent2 = minIndent(string); 18019 if (indent2 === 0) 18020 return string; 18021 let regex = new RegExp(`^[ \\t]{${indent2}}`, "gm"); 18022 return string.replace(regex, ""); 18023 }; 18024 } 18025}); 18026
vendor: 997 bytes, lines 18027-18055
18027// ../../node_modules/indent-string/index.js 18028var require_indent_string = __commonJS({ 18029 "../../node_modules/indent-string/index.js"(exports, module2) { 18030 "use strict"; 18031 module2.exports = (string, count = 1, options) => { 18032 if (options = { 18033 indent: " ", 18034 includeEmptyLines: !1, 18035 ...options 18036 }, typeof string != "string") 18037 throw new TypeError( 18038 `Expected \`input\` to be a \`string\`, got \`${typeof string}\`` 18039 ); 18040 if (typeof count != "number") 18041 throw new TypeError( 18042 `Expected \`count\` to be a \`number\`, got \`${typeof count}\`` 18043 ); 18044 if (typeof options.indent != "string") 18045 throw new TypeError( 18046 `Expected \`options.indent\` to be a \`string\`, got \`${typeof options.indent}\`` 18047 ); 18048 if (count === 0) 18049 return string; 18050 let regex = options.includeEmptyLines ? /^/gm : /^(?!\s*$)/gm; 18051 return string.replace(regex, options.indent.repeat(count)); 18052 }; 18053 } 18054}); 18055
vendor: 349 bytes, lines 18056-18064
18056// ../../node_modules/redent/index.js 18057var require_redent = __commonJS({ 18058 "../../node_modules/redent/index.js"(exports, module2) { 18059 "use strict"; 18060 var stripIndent = require_strip_indent(), indentString = require_indent_string(); 18061 module2.exports = (string, count = 0, options) => indentString(stripIndent(string), count, options); 18062 } 18063}); 18064
vendor: 829 bytes, lines 18065-18096
18065// ../../node_modules/aria-query/lib/util/iteratorProxy.js 18066var require_iteratorProxy = __commonJS({ 18067 "../../node_modules/aria-query/lib/util/iteratorProxy.js"(exports) { 18068 "use strict"; 18069 Object.defineProperty(exports, "__esModule", { 18070 value: !0 18071 }); 18072 exports.default = void 0; 18073 function iteratorProxy() { 18074 var values = this, index4 = 0, iter = { 18075 "@@iterator": function() { 18076 return iter; 18077 }, 18078 next: function() { 18079 if (index4 < values.length) { 18080 var value = values[index4]; 18081 return index4 = index4 + 1, { 18082 done: !1, 18083 value 18084 }; 18085 } else 18086 return { 18087 done: !0 18088 }; 18089 } 18090 }; 18091 return iter; 18092 } 18093 var _default = exports.default = iteratorProxy; 18094 } 18095}); 18096
vendor: 1,153 bytes, lines 18097-18124
18097// ../../node_modules/aria-query/lib/util/iterationDecorator.js 18098var require_iterationDecorator = __commonJS({ 18099 "../../node_modules/aria-query/lib/util/iterationDecorator.js"(exports) { 18100 "use strict"; 18101 Object.defineProperty(exports, "__esModule", { 18102 value: !0 18103 }); 18104 exports.default = iterationDecorator; 18105 var _iteratorProxy = _interopRequireDefault(require_iteratorProxy()); 18106 function _interopRequireDefault(e) { 18107 return e && e.__esModule ? e : { default: e }; 18108 } 18109 function _typeof6(o) { 18110 "@babel/helpers - typeof"; 18111 return _typeof6 = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(o2) { 18112 return typeof o2; 18113 } : function(o2) { 18114 return o2 && typeof Symbol == "function" && o2.constructor === Symbol && o2 !== Symbol.prototype ? "symbol" : typeof o2; 18115 }, _typeof6(o); 18116 } 18117 function iterationDecorator(collection, entries) { 18118 return typeof Symbol == "function" && _typeof6(Symbol.iterator) === "symbol" && Object.defineProperty(collection, Symbol.iterator, { 18119 value: _iteratorProxy.default.bind(entries) 18120 }), collection; 18121 } 18122 } 18123}); 18124
vendor: 6,664 bytes, lines 18125-18329
18125// ../../node_modules/aria-query/lib/ariaPropsMap.js 18126var require_ariaPropsMap = __commonJS({ 18127 "../../node_modules/aria-query/lib/ariaPropsMap.js"(exports) { 18128 "use strict"; 18129 Object.defineProperty(exports, "__esModule", { 18130 value: !0 18131 }); 18132 exports.default = void 0; 18133 var _iterationDecorator = _interopRequireDefault(require_iterationDecorator()); 18134 function _interopRequireDefault(e) { 18135 return e && e.__esModule ? e : { default: e }; 18136 } 18137 function _slicedToArray(r2, e) { 18138 return _arrayWithHoles(r2) || _iterableToArrayLimit(r2, e) || _unsupportedIterableToArray2(r2, e) || _nonIterableRest(); 18139 } 18140 function _nonIterableRest() { 18141 throw new TypeError(`Invalid attempt to destructure non-iterable instance. 18142In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`); 18143 } 18144 function _unsupportedIterableToArray2(r2, a3) { 18145 if (r2) { 18146 if (typeof r2 == "string") return _arrayLikeToArray2(r2, a3); 18147 var t = {}.toString.call(r2).slice(8, -1); 18148 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; 18149 } 18150 } 18151 function _arrayLikeToArray2(r2, a3) { 18152 (a3 == null || a3 > r2.length) && (a3 = r2.length); 18153 for (var e = 0, n = Array(a3); e < a3; e++) n[e] = r2[e]; 18154 return n; 18155 } 18156 function _iterableToArrayLimit(r2, l) { 18157 var t = r2 == null ? null : typeof Symbol < "u" && r2[Symbol.iterator] || r2["@@iterator"]; 18158 if (t != null) { 18159 var e, n, i, u2, a3 = [], f4 = !0, o = !1; 18160 try { 18161 if (i = (t = t.call(r2)).next, l === 0) { 18162 if (Object(t) !== t) return; 18163 f4 = !1; 18164 } else for (; !(f4 = (e = i.call(t)).done) && (a3.push(e.value), a3.length !== l); f4 = !0) ; 18165 } catch (r3) { 18166 o = !0, n = r3; 18167 } finally { 18168 try { 18169 if (!f4 && t.return != null && (u2 = t.return(), Object(u2) !== u2)) return; 18170 } finally { 18171 if (o) throw n; 18172 } 18173 } 18174 return a3; 18175 } 18176 } 18177 function _arrayWithHoles(r2) { 18178 if (Array.isArray(r2)) return r2; 18179 } 18180 var properties = [["aria-activedescendant", { 18181 type: "id" 18182 }], ["aria-atomic", { 18183 type: "boolean" 18184 }], ["aria-autocomplete", { 18185 type: "token", 18186 values: ["inline", "list", "both", "none"] 18187 }], ["aria-braillelabel", { 18188 type: "string" 18189 }], ["aria-brailleroledescription", { 18190 type: "string" 18191 }], ["aria-busy", { 18192 type: "boolean" 18193 }], ["aria-checked", { 18194 type: "tristate" 18195 }], ["aria-colcount", { 18196 type: "integer" 18197 }], ["aria-colindex", { 18198 type: "integer" 18199 }], ["aria-colspan", { 18200 type: "integer" 18201 }], ["aria-controls", { 18202 type: "idlist" 18203 }], ["aria-current", { 18204 type: "token", 18205 values: ["page", "step", "location", "date", "time", !0, !1] 18206 }], ["aria-describedby", { 18207 type: "idlist" 18208 }], ["aria-description", { 18209 type: "string" 18210 }], ["aria-details", { 18211 type: "id" 18212 }], ["aria-disabled", { 18213 type: "boolean" 18214 }], ["aria-dropeffect", { 18215 type: "tokenlist", 18216 values: ["copy", "execute", "link", "move", "none", "popup"] 18217 }], ["aria-errormessage", { 18218 type: "id" 18219 }], ["aria-expanded", { 18220 type: "boolean", 18221 allowundefined: !0 18222 }], ["aria-flowto", { 18223 type: "idlist" 18224 }], ["aria-grabbed", { 18225 type: "boolean", 18226 allowundefined: !0 18227 }], ["aria-haspopup", { 18228 type: "token", 18229 values: [!1, !0, "menu", "listbox", "tree", "grid", "dialog"] 18230 }], ["aria-hidden", { 18231 type: "boolean", 18232 allowundefined: !0 18233 }], ["aria-invalid", { 18234 type: "token", 18235 values: ["grammar", !1, "spelling", !0] 18236 }], ["aria-keyshortcuts", { 18237 type: "string" 18238 }], ["aria-label", { 18239 type: "string" 18240 }], ["aria-labelledby", { 18241 type: "idlist" 18242 }], ["aria-level", { 18243 type: "integer" 18244 }], ["aria-live", { 18245 type: "token", 18246 values: ["assertive", "off", "polite"] 18247 }], ["aria-modal", { 18248 type: "boolean" 18249 }], ["aria-multiline", { 18250 type: "boolean" 18251 }], ["aria-multiselectable", { 18252 type: "boolean" 18253 }], ["aria-orientation", { 18254 type: "token", 18255 values: ["vertical", "undefined", "horizontal"] 18256 }], ["aria-owns", { 18257 type: "idlist" 18258 }], ["aria-placeholder", { 18259 type: "string" 18260 }], ["aria-posinset", { 18261 type: "integer" 18262 }], ["aria-pressed", { 18263 type: "tristate" 18264 }], ["aria-readonly", { 18265 type: "boolean" 18266 }], ["aria-relevant", { 18267 type: "tokenlist", 18268 values: ["additions", "all", "removals", "text"] 18269 }], ["aria-required", { 18270 type: "boolean" 18271 }], ["aria-roledescription", { 18272 type: "string" 18273 }], ["aria-rowcount", { 18274 type: "integer" 18275 }], ["aria-rowindex", { 18276 type: "integer" 18277 }], ["aria-rowspan", { 18278 type: "integer" 18279 }], ["aria-selected", { 18280 type: "boolean", 18281 allowundefined: !0 18282 }], ["aria-setsize", { 18283 type: "integer" 18284 }], ["aria-sort", { 18285 type: "token", 18286 values: ["ascending", "descending", "none", "other"] 18287 }], ["aria-valuemax", { 18288 type: "number" 18289 }], ["aria-valuemin", { 18290 type: "number" 18291 }], ["aria-valuenow", { 18292 type: "number" 18293 }], ["aria-valuetext", { 18294 type: "string" 18295 }]], ariaPropsMap = { 18296 entries: function() { 18297 return properties; 18298 }, 18299 forEach: function(fn4) { 18300 for (var thisArg = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : null, _i = 0, _properties = properties; _i < _properties.length; _i++) { 18301 var _properties$_i = _slicedToArray(_properties[_i], 2), key = _properties$_i[0], values = _properties$_i[1]; 18302 fn4.call(thisArg, values, key, properties); 18303 } 18304 }, 18305 get: function(key) { 18306 var item = properties.filter(function(tuple) { 18307 return tuple[0] === key; 18308 })[0]; 18309 return item && item[1]; 18310 }, 18311 has: function(key) { 18312 return !!ariaPropsMap.get(key); 18313 }, 18314 keys: function() { 18315 return properties.map(function(_ref) { 18316 var _ref2 = _slicedToArray(_ref, 1), key = _ref2[0]; 18317 return key; 18318 }); 18319 }, 18320 values: function() { 18321 return properties.map(function(_ref3) { 18322 var _ref4 = _slicedToArray(_ref3, 2), values2 = _ref4[1]; 18323 return values2; 18324 }); 18325 } 18326 }, _default = exports.default = (0, _iterationDecorator.default)(ariaPropsMap, ariaPropsMap.entries()); 18327 } 18328}); 18329
vendor: 8,327 bytes, lines 18330-18677
18330// ../../node_modules/aria-query/lib/domMap.js 18331var require_domMap = __commonJS({ 18332 "../../node_modules/aria-query/lib/domMap.js"(exports) { 18333 "use strict"; 18334 Object.defineProperty(exports, "__esModule", { 18335 value: !0 18336 }); 18337 exports.default = void 0; 18338 var _iterationDecorator = _interopRequireDefault(require_iterationDecorator()); 18339 function _interopRequireDefault(e) { 18340 return e && e.__esModule ? e : { default: e }; 18341 } 18342 function _slicedToArray(r2, e) { 18343 return _arrayWithHoles(r2) || _iterableToArrayLimit(r2, e) || _unsupportedIterableToArray2(r2, e) || _nonIterableRest(); 18344 } 18345 function _nonIterableRest() { 18346 throw new TypeError(`Invalid attempt to destructure non-iterable instance. 18347In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`); 18348 } 18349 function _unsupportedIterableToArray2(r2, a3) { 18350 if (r2) { 18351 if (typeof r2 == "string") return _arrayLikeToArray2(r2, a3); 18352 var t = {}.toString.call(r2).slice(8, -1); 18353 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; 18354 } 18355 } 18356 function _arrayLikeToArray2(r2, a3) { 18357 (a3 == null || a3 > r2.length) && (a3 = r2.length); 18358 for (var e = 0, n = Array(a3); e < a3; e++) n[e] = r2[e]; 18359 return n; 18360 } 18361 function _iterableToArrayLimit(r2, l) { 18362 var t = r2 == null ? null : typeof Symbol < "u" && r2[Symbol.iterator] || r2["@@iterator"]; 18363 if (t != null) { 18364 var e, n, i, u2, a3 = [], f4 = !0, o = !1; 18365 try { 18366 if (i = (t = t.call(r2)).next, l === 0) { 18367 if (Object(t) !== t) return; 18368 f4 = !1; 18369 } else for (; !(f4 = (e = i.call(t)).done) && (a3.push(e.value), a3.length !== l); f4 = !0) ; 18370 } catch (r3) { 18371 o = !0, n = r3; 18372 } finally { 18373 try { 18374 if (!f4 && t.return != null && (u2 = t.return(), Object(u2) !== u2)) return; 18375 } finally { 18376 if (o) throw n; 18377 } 18378 } 18379 return a3; 18380 } 18381 } 18382 function _arrayWithHoles(r2) { 18383 if (Array.isArray(r2)) return r2; 18384 } 18385 var dom = [["a", { 18386 reserved: !1 18387 }], ["abbr", { 18388 reserved: !1 18389 }], ["acronym", { 18390 reserved: !1 18391 }], ["address", { 18392 reserved: !1 18393 }], ["applet", { 18394 reserved: !1 18395 }], ["area", { 18396 reserved: !1 18397 }], ["article", { 18398 reserved: !1 18399 }], ["aside", { 18400 reserved: !1 18401 }], ["audio", { 18402 reserved: !1 18403 }], ["b", { 18404 reserved: !1 18405 }], ["base", { 18406 reserved: !0 18407 }], ["bdi", { 18408 reserved: !1 18409 }], ["bdo", { 18410 reserved: !1 18411 }], ["big", { 18412 reserved: !1 18413 }], ["blink", { 18414 reserved: !1 18415 }], ["blockquote", { 18416 reserved: !1 18417 }], ["body", { 18418 reserved: !1 18419 }], ["br", { 18420 reserved: !1 18421 }], ["button", { 18422 reserved: !1 18423 }], ["canvas", { 18424 reserved: !1 18425 }], ["caption", { 18426 reserved: !1 18427 }], ["center", { 18428 reserved: !1 18429 }], ["cite", { 18430 reserved: !1 18431 }], ["code", { 18432 reserved: !1 18433 }], ["col", { 18434 reserved: !0 18435 }], ["colgroup", { 18436 reserved: !0 18437 }], ["content", { 18438 reserved: !1 18439 }], ["data", { 18440 reserved: !1 18441 }], ["datalist", { 18442 reserved: !1 18443 }], ["dd", { 18444 reserved: !1 18445 }], ["del", { 18446 reserved: !1 18447 }], ["details", { 18448 reserved: !1 18449 }], ["dfn", { 18450 reserved: !1 18451 }], ["dialog", { 18452 reserved: !1 18453 }], ["dir", { 18454 reserved: !1 18455 }], ["div", { 18456 reserved: !1 18457 }], ["dl", { 18458 reserved: !1 18459 }], ["dt", { 18460 reserved: !1 18461 }], ["em", { 18462 reserved: !1 18463 }], ["embed", { 18464 reserved: !1 18465 }], ["fieldset", { 18466 reserved: !1 18467 }], ["figcaption", { 18468 reserved: !1 18469 }], ["figure", { 18470 reserved: !1 18471 }], ["font", { 18472 reserved: !1 18473 }], ["footer", { 18474 reserved: !1 18475 }], ["form", { 18476 reserved: !1 18477 }], ["frame", { 18478 reserved: !1 18479 }], ["frameset", { 18480 reserved: !1 18481 }], ["h1", { 18482 reserved: !1 18483 }], ["h2", { 18484 reserved: !1 18485 }], ["h3", { 18486 reserved: !1 18487 }], ["h4", { 18488 reserved: !1 18489 }], ["h5", { 18490 reserved: !1 18491 }], ["h6", { 18492 reserved: !1 18493 }], ["head", { 18494 reserved: !0 18495 }], ["header", { 18496 reserved: !1 18497 }], ["hgroup", { 18498 reserved: !1 18499 }], ["hr", { 18500 reserved: !1 18501 }], ["html", { 18502 reserved: !0 18503 }], ["i", { 18504 reserved: !1 18505 }], ["iframe", { 18506 reserved: !1 18507 }], ["img", { 18508 reserved: !1 18509 }], ["input", { 18510 reserved: !1 18511 }], ["ins", { 18512 reserved: !1 18513 }], ["kbd", { 18514 reserved: !1 18515 }], ["keygen", { 18516 reserved: !1 18517 }], ["label", { 18518 reserved: !1 18519 }], ["legend", { 18520 reserved: !1 18521 }], ["li", { 18522 reserved: !1 18523 }], ["link", { 18524 reserved: !0 18525 }], ["main", { 18526 reserved: !1 18527 }], ["map", { 18528 reserved: !1 18529 }], ["mark", { 18530 reserved: !1 18531 }], ["marquee", { 18532 reserved: !1 18533 }], ["menu", { 18534 reserved: !1 18535 }], ["menuitem", { 18536 reserved: !1 18537 }], ["meta", { 18538 reserved: !0 18539 }], ["meter", { 18540 reserved: !1 18541 }], ["nav", { 18542 reserved: !1 18543 }], ["noembed", { 18544 reserved: !0 18545 }], ["noscript", { 18546 reserved: !0 18547 }], ["object", { 18548 reserved: !1 18549 }], ["ol", { 18550 reserved: !1 18551 }], ["optgroup", { 18552 reserved: !1 18553 }], ["option", { 18554 reserved: !1 18555 }], ["output", { 18556 reserved: !1 18557 }], ["p", { 18558 reserved: !1 18559 }], ["param", { 18560 reserved: !0 18561 }], ["picture", { 18562 reserved: !0 18563 }], ["pre", { 18564 reserved: !1 18565 }], ["progress", { 18566 reserved: !1 18567 }], ["q", { 18568 reserved: !1 18569 }], ["rp", { 18570 reserved: !1 18571 }], ["rt", { 18572 reserved: !1 18573 }], ["rtc", { 18574 reserved: !1 18575 }], ["ruby", { 18576 reserved: !1 18577 }], ["s", { 18578 reserved: !1 18579 }], ["samp", { 18580 reserved: !1 18581 }], ["script", { 18582 reserved: !0 18583 }], ["section", { 18584 reserved: !1 18585 }], ["select", { 18586 reserved: !1 18587 }], ["small", { 18588 reserved: !1 18589 }], ["source", { 18590 reserved: !0 18591 }], ["spacer", { 18592 reserved: !1 18593 }], ["span", { 18594 reserved: !1 18595 }], ["strike", { 18596 reserved: !1 18597 }], ["strong", { 18598 reserved: !1 18599 }], ["style", { 18600 reserved: !0 18601 }], ["sub", { 18602 reserved: !1 18603 }], ["summary", { 18604 reserved: !1 18605 }], ["sup", { 18606 reserved: !1 18607 }], ["table", { 18608 reserved: !1 18609 }], ["tbody", { 18610 reserved: !1 18611 }], ["td", { 18612 reserved: !1 18613 }], ["textarea", { 18614 reserved: !1 18615 }], ["tfoot", { 18616 reserved: !1 18617 }], ["th", { 18618 reserved: !1 18619 }], ["thead", { 18620 reserved: !1 18621 }], ["time", { 18622 reserved: !1 18623 }], ["title", { 18624 reserved: !0 18625 }], ["tr", { 18626 reserved: !1 18627 }], ["track", { 18628 reserved: !0 18629 }], ["tt", { 18630 reserved: !1 18631 }], ["u", { 18632 reserved: !1 18633 }], ["ul", { 18634 reserved: !1 18635 }], ["var", { 18636 reserved: !1 18637 }], ["video", { 18638 reserved: !1 18639 }], ["wbr", { 18640 reserved: !1 18641 }], ["xmp", { 18642 reserved: !1 18643 }]], domMap = { 18644 entries: function() { 18645 return dom; 18646 }, 18647 forEach: function(fn4) { 18648 for (var thisArg = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : null, _i = 0, _dom = dom; _i < _dom.length; _i++) { 18649 var _dom$_i = _slicedToArray(_dom[_i], 2), key = _dom$_i[0], values = _dom$_i[1]; 18650 fn4.call(thisArg, values, key, dom); 18651 } 18652 }, 18653 get: function(key) { 18654 var item = dom.filter(function(tuple) { 18655 return tuple[0] === key; 18656 })[0]; 18657 return item && item[1]; 18658 }, 18659 has: function(key) { 18660 return !!domMap.get(key); 18661 }, 18662 keys: function() { 18663 return dom.map(function(_ref) { 18664 var _ref2 = _slicedToArray(_ref, 1), key = _ref2[0]; 18665 return key; 18666 }); 18667 }, 18668 values: function() { 18669 return dom.map(function(_ref3) { 18670 var _ref4 = _slicedToArray(_ref3, 2), values2 = _ref4[1]; 18671 return values2; 18672 }); 18673 } 18674 }, _default = exports.default = (0, _iterationDecorator.default)(domMap, domMap.entries()); 18675 } 18676}); 18677
vendor: 771 bytes, lines 18678-18703
18678// ../../node_modules/aria-query/lib/etc/roles/abstract/commandRole.js 18679var require_commandRole = __commonJS({ 18680 "../../node_modules/aria-query/lib/etc/roles/abstract/commandRole.js"(exports) { 18681 "use strict"; 18682 Object.defineProperty(exports, "__esModule", { 18683 value: !0 18684 }); 18685 exports.default = void 0; 18686 var commandRole = { 18687 abstract: !0, 18688 accessibleNameRequired: !1, 18689 baseConcepts: [], 18690 childrenPresentational: !1, 18691 nameFrom: ["author"], 18692 prohibitedProps: [], 18693 props: {}, 18694 relatedConcepts: [], 18695 requireContextRole: [], 18696 requiredContextRole: [], 18697 requiredOwnedElements: [], 18698 requiredProps: {}, 18699 superClass: [["roletype", "widget"]] 18700 }, _default = exports.default = commandRole; 18701 } 18702}); 18703
vendor: 857 bytes, lines 18704-18732
18704// ../../node_modules/aria-query/lib/etc/roles/abstract/compositeRole.js 18705var require_compositeRole = __commonJS({ 18706 "../../node_modules/aria-query/lib/etc/roles/abstract/compositeRole.js"(exports) { 18707 "use strict"; 18708 Object.defineProperty(exports, "__esModule", { 18709 value: !0 18710 }); 18711 exports.default = void 0; 18712 var compositeRole = { 18713 abstract: !0, 18714 accessibleNameRequired: !1, 18715 baseConcepts: [], 18716 childrenPresentational: !1, 18717 nameFrom: ["author"], 18718 prohibitedProps: [], 18719 props: { 18720 "aria-activedescendant": null, 18721 "aria-disabled": null 18722 }, 18723 relatedConcepts: [], 18724 requireContextRole: [], 18725 requiredContextRole: [], 18726 requiredOwnedElements: [], 18727 requiredProps: {}, 18728 superClass: [["roletype", "widget"]] 18729 }, _default = exports.default = compositeRole; 18730 } 18731}); 18732
vendor: 886 bytes, lines 18733-18765
18733// ../../node_modules/aria-query/lib/etc/roles/abstract/inputRole.js 18734var require_inputRole = __commonJS({ 18735 "../../node_modules/aria-query/lib/etc/roles/abstract/inputRole.js"(exports) { 18736 "use strict"; 18737 Object.defineProperty(exports, "__esModule", { 18738 value: !0 18739 }); 18740 exports.default = void 0; 18741 var inputRole = { 18742 abstract: !0, 18743 accessibleNameRequired: !1, 18744 baseConcepts: [], 18745 childrenPresentational: !1, 18746 nameFrom: ["author"], 18747 prohibitedProps: [], 18748 props: { 18749 "aria-disabled": null 18750 }, 18751 relatedConcepts: [{ 18752 concept: { 18753 name: "input" 18754 }, 18755 module: "XForms" 18756 }], 18757 requireContextRole: [], 18758 requiredContextRole: [], 18759 requiredOwnedElements: [], 18760 requiredProps: {}, 18761 superClass: [["roletype", "widget"]] 18762 }, _default = exports.default = inputRole; 18763 } 18764}); 18765
vendor: 790 bytes, lines 18766-18791
18766// ../../node_modules/aria-query/lib/etc/roles/abstract/landmarkRole.js 18767var require_landmarkRole = __commonJS({ 18768 "../../node_modules/aria-query/lib/etc/roles/abstract/landmarkRole.js"(exports) { 18769 "use strict"; 18770 Object.defineProperty(exports, "__esModule", { 18771 value: !0 18772 }); 18773 exports.default = void 0; 18774 var landmarkRole = { 18775 abstract: !0, 18776 accessibleNameRequired: !1, 18777 baseConcepts: [], 18778 childrenPresentational: !1, 18779 nameFrom: ["author"], 18780 prohibitedProps: [], 18781 props: {}, 18782 relatedConcepts: [], 18783 requireContextRole: [], 18784 requiredContextRole: [], 18785 requiredOwnedElements: [], 18786 requiredProps: {}, 18787 superClass: [["roletype", "structure", "section"]] 18788 }, _default = exports.default = landmarkRole; 18789 } 18790}); 18791
vendor: 863 bytes, lines 18792-18821
18792// ../../node_modules/aria-query/lib/etc/roles/abstract/rangeRole.js 18793var require_rangeRole = __commonJS({ 18794 "../../node_modules/aria-query/lib/etc/roles/abstract/rangeRole.js"(exports) { 18795 "use strict"; 18796 Object.defineProperty(exports, "__esModule", { 18797 value: !0 18798 }); 18799 exports.default = void 0; 18800 var rangeRole = { 18801 abstract: !0, 18802 accessibleNameRequired: !1, 18803 baseConcepts: [], 18804 childrenPresentational: !1, 18805 nameFrom: ["author"], 18806 prohibitedProps: [], 18807 props: { 18808 "aria-valuemax": null, 18809 "aria-valuemin": null, 18810 "aria-valuenow": null 18811 }, 18812 relatedConcepts: [], 18813 requireContextRole: [], 18814 requiredContextRole: [], 18815 requiredOwnedElements: [], 18816 requiredProps: {}, 18817 superClass: [["roletype", "structure"]] 18818 }, _default = exports.default = rangeRole; 18819 } 18820}); 18821
vendor: 1,453 bytes, lines 18822-18875
18822// ../../node_modules/aria-query/lib/etc/roles/abstract/roletypeRole.js 18823var require_roletypeRole = __commonJS({ 18824 "../../node_modules/aria-query/lib/etc/roles/abstract/roletypeRole.js"(exports) { 18825 "use strict"; 18826 Object.defineProperty(exports, "__esModule", { 18827 value: !0 18828 }); 18829 exports.default = void 0; 18830 var roletypeRole = { 18831 abstract: !0, 18832 accessibleNameRequired: !1, 18833 baseConcepts: [], 18834 childrenPresentational: !1, 18835 nameFrom: [], 18836 prohibitedProps: [], 18837 props: { 18838 "aria-atomic": null, 18839 "aria-busy": null, 18840 "aria-controls": null, 18841 "aria-current": null, 18842 "aria-describedby": null, 18843 "aria-details": null, 18844 "aria-dropeffect": null, 18845 "aria-flowto": null, 18846 "aria-grabbed": null, 18847 "aria-hidden": null, 18848 "aria-keyshortcuts": null, 18849 "aria-label": null, 18850 "aria-labelledby": null, 18851 "aria-live": null, 18852 "aria-owns": null, 18853 "aria-relevant": null, 18854 "aria-roledescription": null 18855 }, 18856 relatedConcepts: [{ 18857 concept: { 18858 name: "role" 18859 }, 18860 module: "XHTML" 18861 }, { 18862 concept: { 18863 name: "type" 18864 }, 18865 module: "Dublin Core" 18866 }], 18867 requireContextRole: [], 18868 requiredContextRole: [], 18869 requiredOwnedElements: [], 18870 requiredProps: {}, 18871 superClass: [] 18872 }, _default = exports.default = roletypeRole; 18873 } 18874}); 18875
vendor: 1,032 bytes, lines 18876-18916
18876// ../../node_modules/aria-query/lib/etc/roles/abstract/sectionRole.js 18877var require_sectionRole = __commonJS({ 18878 "../../node_modules/aria-query/lib/etc/roles/abstract/sectionRole.js"(exports) { 18879 "use strict"; 18880 Object.defineProperty(exports, "__esModule", { 18881 value: !0 18882 }); 18883 exports.default = void 0; 18884 var sectionRole = { 18885 abstract: !0, 18886 accessibleNameRequired: !1, 18887 baseConcepts: [], 18888 childrenPresentational: !1, 18889 nameFrom: [], 18890 prohibitedProps: [], 18891 props: {}, 18892 relatedConcepts: [{ 18893 concept: { 18894 name: "frontmatter" 18895 }, 18896 module: "DTB" 18897 }, { 18898 concept: { 18899 name: "level" 18900 }, 18901 module: "DTB" 18902 }, { 18903 concept: { 18904 name: "level" 18905 }, 18906 module: "SMIL" 18907 }], 18908 requireContextRole: [], 18909 requiredContextRole: [], 18910 requiredOwnedElements: [], 18911 requiredProps: {}, 18912 superClass: [["roletype", "structure"]] 18913 }, _default = exports.default = sectionRole; 18914 } 18915}); 18916
vendor: 806 bytes, lines 18917-18942
18917// ../../node_modules/aria-query/lib/etc/roles/abstract/sectionheadRole.js 18918var require_sectionheadRole = __commonJS({ 18919 "../../node_modules/aria-query/lib/etc/roles/abstract/sectionheadRole.js"(exports) { 18920 "use strict"; 18921 Object.defineProperty(exports, "__esModule", { 18922 value: !0 18923 }); 18924 exports.default = void 0; 18925 var sectionheadRole = { 18926 abstract: !0, 18927 accessibleNameRequired: !1, 18928 baseConcepts: [], 18929 childrenPresentational: !1, 18930 nameFrom: ["author", "contents"], 18931 prohibitedProps: [], 18932 props: {}, 18933 relatedConcepts: [], 18934 requireContextRole: [], 18935 requiredContextRole: [], 18936 requiredOwnedElements: [], 18937 requiredProps: {}, 18938 superClass: [["roletype", "structure"]] 18939 }, _default = exports.default = sectionheadRole; 18940 } 18941}); 18942
vendor: 866 bytes, lines 18943-18970
18943// ../../node_modules/aria-query/lib/etc/roles/abstract/selectRole.js 18944var require_selectRole = __commonJS({ 18945 "../../node_modules/aria-query/lib/etc/roles/abstract/selectRole.js"(exports) { 18946 "use strict"; 18947 Object.defineProperty(exports, "__esModule", { 18948 value: !0 18949 }); 18950 exports.default = void 0; 18951 var selectRole = { 18952 abstract: !0, 18953 accessibleNameRequired: !1, 18954 baseConcepts: [], 18955 childrenPresentational: !1, 18956 nameFrom: ["author"], 18957 prohibitedProps: [], 18958 props: { 18959 "aria-orientation": null 18960 }, 18961 relatedConcepts: [], 18962 requireContextRole: [], 18963 requiredContextRole: [], 18964 requiredOwnedElements: [], 18965 requiredProps: {}, 18966 superClass: [["roletype", "widget", "composite"], ["roletype", "structure", "section", "group"]] 18967 }, _default = exports.default = selectRole; 18968 } 18969}); 18970
vendor: 763 bytes, lines 18971-18996
18971// ../../node_modules/aria-query/lib/etc/roles/abstract/structureRole.js 18972var require_structureRole = __commonJS({ 18973 "../../node_modules/aria-query/lib/etc/roles/abstract/structureRole.js"(exports) { 18974 "use strict"; 18975 Object.defineProperty(exports, "__esModule", { 18976 value: !0 18977 }); 18978 exports.default = void 0; 18979 var structureRole = { 18980 abstract: !0, 18981 accessibleNameRequired: !1, 18982 baseConcepts: [], 18983 childrenPresentational: !1, 18984 nameFrom: [], 18985 prohibitedProps: [], 18986 props: {}, 18987 relatedConcepts: [], 18988 requireContextRole: [], 18989 requiredContextRole: [], 18990 requiredOwnedElements: [], 18991 requiredProps: {}, 18992 superClass: [["roletype"]] 18993 }, _default = exports.default = structureRole; 18994 } 18995}); 18996
vendor: 748 bytes, lines 18997-19022
18997// ../../node_modules/aria-query/lib/etc/roles/abstract/widgetRole.js 18998var require_widgetRole = __commonJS({ 18999 "../../node_modules/aria-query/lib/etc/roles/abstract/widgetRole.js"(exports) { 19000 "use strict"; 19001 Object.defineProperty(exports, "__esModule", { 19002 value: !0 19003 }); 19004 exports.default = void 0; 19005 var widgetRole = { 19006 abstract: !0, 19007 accessibleNameRequired: !1, 19008 baseConcepts: [], 19009 childrenPresentational: !1, 19010 nameFrom: [], 19011 prohibitedProps: [], 19012 props: {}, 19013 relatedConcepts: [], 19014 requireContextRole: [], 19015 requiredContextRole: [], 19016 requiredOwnedElements: [], 19017 requiredProps: {}, 19018 superClass: [["roletype"]] 19019 }, _default = exports.default = widgetRole; 19020 } 19021}); 19022
vendor: 790 bytes, lines 19023-19050
19023// ../../node_modules/aria-query/lib/etc/roles/abstract/windowRole.js 19024var require_windowRole = __commonJS({ 19025 "../../node_modules/aria-query/lib/etc/roles/abstract/windowRole.js"(exports) { 19026 "use strict"; 19027 Object.defineProperty(exports, "__esModule", { 19028 value: !0 19029 }); 19030 exports.default = void 0; 19031 var windowRole = { 19032 abstract: !0, 19033 accessibleNameRequired: !1, 19034 baseConcepts: [], 19035 childrenPresentational: !1, 19036 nameFrom: ["author"], 19037 prohibitedProps: [], 19038 props: { 19039 "aria-modal": null 19040 }, 19041 relatedConcepts: [], 19042 requireContextRole: [], 19043 requiredContextRole: [], 19044 requiredOwnedElements: [], 19045 requiredProps: {}, 19046 superClass: [["roletype"]] 19047 }, _default = exports.default = windowRole; 19048 } 19049}); 19050
vendor: 1,687 bytes, lines 19051-19066
19051// ../../node_modules/aria-query/lib/etc/roles/ariaAbstractRoles.js 19052var require_ariaAbstractRoles = __commonJS({ 19053 "../../node_modules/aria-query/lib/etc/roles/ariaAbstractRoles.js"(exports) { 19054 "use strict"; 19055 Object.defineProperty(exports, "__esModule", { 19056 value: !0 19057 }); 19058 exports.default = void 0; 19059 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()); 19060 function _interopRequireDefault(e) { 19061 return e && e.__esModule ? e : { default: e }; 19062 } 19063 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; 19064 } 19065}); 19066
vendor: 932 bytes, lines 19067-19100
19067// ../../node_modules/aria-query/lib/etc/roles/literal/alertRole.js 19068var require_alertRole = __commonJS({ 19069 "../../node_modules/aria-query/lib/etc/roles/literal/alertRole.js"(exports) { 19070 "use strict"; 19071 Object.defineProperty(exports, "__esModule", { 19072 value: !0 19073 }); 19074 exports.default = void 0; 19075 var alertRole = { 19076 abstract: !1, 19077 accessibleNameRequired: !1, 19078 baseConcepts: [], 19079 childrenPresentational: !1, 19080 nameFrom: ["author"], 19081 prohibitedProps: [], 19082 props: { 19083 "aria-atomic": "true", 19084 "aria-live": "assertive" 19085 }, 19086 relatedConcepts: [{ 19087 concept: { 19088 name: "alert" 19089 }, 19090 module: "XForms" 19091 }], 19092 requireContextRole: [], 19093 requiredContextRole: [], 19094 requiredOwnedElements: [], 19095 requiredProps: {}, 19096 superClass: [["roletype", "structure", "section"]] 19097 }, _default = exports.default = alertRole; 19098 } 19099}); 19100
vendor: 934 bytes, lines 19101-19131
19101// ../../node_modules/aria-query/lib/etc/roles/literal/alertdialogRole.js 19102var require_alertdialogRole = __commonJS({ 19103 "../../node_modules/aria-query/lib/etc/roles/literal/alertdialogRole.js"(exports) { 19104 "use strict"; 19105 Object.defineProperty(exports, "__esModule", { 19106 value: !0 19107 }); 19108 exports.default = void 0; 19109 var alertdialogRole = { 19110 abstract: !1, 19111 accessibleNameRequired: !0, 19112 baseConcepts: [], 19113 childrenPresentational: !1, 19114 nameFrom: ["author"], 19115 prohibitedProps: [], 19116 props: {}, 19117 relatedConcepts: [{ 19118 concept: { 19119 name: "alert" 19120 }, 19121 module: "XForms" 19122 }], 19123 requireContextRole: [], 19124 requiredContextRole: [], 19125 requiredOwnedElements: [], 19126 requiredProps: {}, 19127 superClass: [["roletype", "structure", "section", "alert"], ["roletype", "window", "dialog"]] 19128 }, _default = exports.default = alertdialogRole; 19129 } 19130}); 19131
vendor: 1,085 bytes, lines 19132-19168
19132// ../../node_modules/aria-query/lib/etc/roles/literal/applicationRole.js 19133var require_applicationRole = __commonJS({ 19134 "../../node_modules/aria-query/lib/etc/roles/literal/applicationRole.js"(exports) { 19135 "use strict"; 19136 Object.defineProperty(exports, "__esModule", { 19137 value: !0 19138 }); 19139 exports.default = void 0; 19140 var applicationRole = { 19141 abstract: !1, 19142 accessibleNameRequired: !0, 19143 baseConcepts: [], 19144 childrenPresentational: !1, 19145 nameFrom: ["author"], 19146 prohibitedProps: [], 19147 props: { 19148 "aria-activedescendant": null, 19149 "aria-disabled": null, 19150 "aria-errormessage": null, 19151 "aria-expanded": null, 19152 "aria-haspopup": null, 19153 "aria-invalid": null 19154 }, 19155 relatedConcepts: [{ 19156 concept: { 19157 name: "Device Independence Delivery Unit" 19158 } 19159 }], 19160 requireContextRole: [], 19161 requiredContextRole: [], 19162 requiredOwnedElements: [], 19163 requiredProps: {}, 19164 superClass: [["roletype", "structure"]] 19165 }, _default = exports.default = applicationRole; 19166 } 19167}); 19168
vendor: 939 bytes, lines 19169-19202
19169// ../../node_modules/aria-query/lib/etc/roles/literal/articleRole.js 19170var require_articleRole = __commonJS({ 19171 "../../node_modules/aria-query/lib/etc/roles/literal/articleRole.js"(exports) { 19172 "use strict"; 19173 Object.defineProperty(exports, "__esModule", { 19174 value: !0 19175 }); 19176 exports.default = void 0; 19177 var articleRole = { 19178 abstract: !1, 19179 accessibleNameRequired: !1, 19180 baseConcepts: [], 19181 childrenPresentational: !1, 19182 nameFrom: ["author"], 19183 prohibitedProps: [], 19184 props: { 19185 "aria-posinset": null, 19186 "aria-setsize": null 19187 }, 19188 relatedConcepts: [{ 19189 concept: { 19190 name: "article" 19191 }, 19192 module: "HTML" 19193 }], 19194 requireContextRole: [], 19195 requiredContextRole: [], 19196 requiredOwnedElements: [], 19197 requiredProps: {}, 19198 superClass: [["roletype", "structure", "document"]] 19199 }, _default = exports.default = articleRole; 19200 } 19201}); 19202
vendor: 932 bytes, lines 19203-19234
19203// ../../node_modules/aria-query/lib/etc/roles/literal/bannerRole.js 19204var require_bannerRole = __commonJS({ 19205 "../../node_modules/aria-query/lib/etc/roles/literal/bannerRole.js"(exports) { 19206 "use strict"; 19207 Object.defineProperty(exports, "__esModule", { 19208 value: !0 19209 }); 19210 exports.default = void 0; 19211 var bannerRole = { 19212 abstract: !1, 19213 accessibleNameRequired: !1, 19214 baseConcepts: [], 19215 childrenPresentational: !1, 19216 nameFrom: ["author"], 19217 prohibitedProps: [], 19218 props: {}, 19219 relatedConcepts: [{ 19220 concept: { 19221 constraints: ["scoped to the body element"], 19222 name: "header" 19223 }, 19224 module: "HTML" 19225 }], 19226 requireContextRole: [], 19227 requiredContextRole: [], 19228 requiredOwnedElements: [], 19229 requiredProps: {}, 19230 superClass: [["roletype", "structure", "section", "landmark"]] 19231 }, _default = exports.default = bannerRole; 19232 } 19233}); 19234
vendor: 889 bytes, lines 19235-19265
19235// ../../node_modules/aria-query/lib/etc/roles/literal/blockquoteRole.js 19236var require_blockquoteRole = __commonJS({ 19237 "../../node_modules/aria-query/lib/etc/roles/literal/blockquoteRole.js"(exports) { 19238 "use strict"; 19239 Object.defineProperty(exports, "__esModule", { 19240 value: !0 19241 }); 19242 exports.default = void 0; 19243 var blockquoteRole = { 19244 abstract: !1, 19245 accessibleNameRequired: !1, 19246 baseConcepts: [], 19247 childrenPresentational: !1, 19248 nameFrom: ["author"], 19249 prohibitedProps: [], 19250 props: {}, 19251 relatedConcepts: [{ 19252 concept: { 19253 name: "blockquote" 19254 }, 19255 module: "HTML" 19256 }], 19257 requireContextRole: [], 19258 requiredContextRole: [], 19259 requiredOwnedElements: [], 19260 requiredProps: {}, 19261 superClass: [["roletype", "structure", "section"]] 19262 }, _default = exports.default = blockquoteRole; 19263 } 19264}); 19265
vendor: 1,817 bytes, lines 19266-19342
19266// ../../node_modules/aria-query/lib/etc/roles/literal/buttonRole.js 19267var require_buttonRole = __commonJS({ 19268 "../../node_modules/aria-query/lib/etc/roles/literal/buttonRole.js"(exports) { 19269 "use strict"; 19270 Object.defineProperty(exports, "__esModule", { 19271 value: !0 19272 }); 19273 exports.default = void 0; 19274 var buttonRole = { 19275 abstract: !1, 19276 accessibleNameRequired: !0, 19277 baseConcepts: [], 19278 childrenPresentational: !0, 19279 nameFrom: ["author", "contents"], 19280 prohibitedProps: [], 19281 props: { 19282 "aria-disabled": null, 19283 "aria-expanded": null, 19284 "aria-haspopup": null, 19285 "aria-pressed": null 19286 }, 19287 relatedConcepts: [{ 19288 concept: { 19289 attributes: [{ 19290 name: "type", 19291 value: "button" 19292 }], 19293 name: "input" 19294 }, 19295 module: "HTML" 19296 }, { 19297 concept: { 19298 attributes: [{ 19299 name: "type", 19300 value: "image" 19301 }], 19302 name: "input" 19303 }, 19304 module: "HTML" 19305 }, { 19306 concept: { 19307 attributes: [{ 19308 name: "type", 19309 value: "reset" 19310 }], 19311 name: "input" 19312 }, 19313 module: "HTML" 19314 }, { 19315 concept: { 19316 attributes: [{ 19317 name: "type", 19318 value: "submit" 19319 }], 19320 name: "input" 19321 }, 19322 module: "HTML" 19323 }, { 19324 concept: { 19325 name: "button" 19326 }, 19327 module: "HTML" 19328 }, { 19329 concept: { 19330 name: "trigger" 19331 }, 19332 module: "XForms" 19333 }], 19334 requireContextRole: [], 19335 requiredContextRole: [], 19336 requiredOwnedElements: [], 19337 requiredProps: {}, 19338 superClass: [["roletype", "widget", "command"]] 19339 }, _default = exports.default = buttonRole; 19340 } 19341}); 19342
vendor: 956 bytes, lines 19343-19373
19343// ../../node_modules/aria-query/lib/etc/roles/literal/captionRole.js 19344var require_captionRole = __commonJS({ 19345 "../../node_modules/aria-query/lib/etc/roles/literal/captionRole.js"(exports) { 19346 "use strict"; 19347 Object.defineProperty(exports, "__esModule", { 19348 value: !0 19349 }); 19350 exports.default = void 0; 19351 var captionRole = { 19352 abstract: !1, 19353 accessibleNameRequired: !1, 19354 baseConcepts: [], 19355 childrenPresentational: !1, 19356 nameFrom: ["prohibited"], 19357 prohibitedProps: ["aria-label", "aria-labelledby"], 19358 props: {}, 19359 relatedConcepts: [{ 19360 concept: { 19361 name: "caption" 19362 }, 19363 module: "HTML" 19364 }], 19365 requireContextRole: ["figure", "grid", "table"], 19366 requiredContextRole: ["figure", "grid", "table"], 19367 requiredOwnedElements: [], 19368 requiredProps: {}, 19369 superClass: [["roletype", "structure", "section"]] 19370 }, _default = exports.default = captionRole; 19371 } 19372}); 19373
vendor: 1,067 bytes, lines 19374-19410
19374// ../../node_modules/aria-query/lib/etc/roles/literal/cellRole.js 19375var require_cellRole = __commonJS({ 19376 "../../node_modules/aria-query/lib/etc/roles/literal/cellRole.js"(exports) { 19377 "use strict"; 19378 Object.defineProperty(exports, "__esModule", { 19379 value: !0 19380 }); 19381 exports.default = void 0; 19382 var cellRole = { 19383 abstract: !1, 19384 accessibleNameRequired: !1, 19385 baseConcepts: [], 19386 childrenPresentational: !1, 19387 nameFrom: ["author", "contents"], 19388 prohibitedProps: [], 19389 props: { 19390 "aria-colindex": null, 19391 "aria-colspan": null, 19392 "aria-rowindex": null, 19393 "aria-rowspan": null 19394 }, 19395 relatedConcepts: [{ 19396 concept: { 19397 constraints: ["ancestor table element has table role"], 19398 name: "td" 19399 }, 19400 module: "HTML" 19401 }], 19402 requireContextRole: ["row"], 19403 requiredContextRole: ["row"], 19404 requiredOwnedElements: [], 19405 requiredProps: {}, 19406 superClass: [["roletype", "structure", "section"]] 19407 }, _default = exports.default = cellRole; 19408 } 19409}); 19410
vendor: 1,295 bytes, lines 19411-19459
19411// ../../node_modules/aria-query/lib/etc/roles/literal/checkboxRole.js 19412var require_checkboxRole = __commonJS({ 19413 "../../node_modules/aria-query/lib/etc/roles/literal/checkboxRole.js"(exports) { 19414 "use strict"; 19415 Object.defineProperty(exports, "__esModule", { 19416 value: !0 19417 }); 19418 exports.default = void 0; 19419 var checkboxRole = { 19420 abstract: !1, 19421 accessibleNameRequired: !0, 19422 baseConcepts: [], 19423 childrenPresentational: !0, 19424 nameFrom: ["author", "contents"], 19425 prohibitedProps: [], 19426 props: { 19427 "aria-checked": null, 19428 "aria-errormessage": null, 19429 "aria-expanded": null, 19430 "aria-invalid": null, 19431 "aria-readonly": null, 19432 "aria-required": null 19433 }, 19434 relatedConcepts: [{ 19435 concept: { 19436 attributes: [{ 19437 name: "type", 19438 value: "checkbox" 19439 }], 19440 name: "input" 19441 }, 19442 module: "HTML" 19443 }, { 19444 concept: { 19445 name: "option" 19446 }, 19447 module: "ARIA" 19448 }], 19449 requireContextRole: [], 19450 requiredContextRole: [], 19451 requiredOwnedElements: [], 19452 requiredProps: { 19453 "aria-checked": null 19454 }, 19455 superClass: [["roletype", "widget", "input"]] 19456 }, _default = exports.default = checkboxRole; 19457 } 19458}); 19459
vendor: 888 bytes, lines 19460-19490
19460// ../../node_modules/aria-query/lib/etc/roles/literal/codeRole.js 19461var require_codeRole = __commonJS({ 19462 "../../node_modules/aria-query/lib/etc/roles/literal/codeRole.js"(exports) { 19463 "use strict"; 19464 Object.defineProperty(exports, "__esModule", { 19465 value: !0 19466 }); 19467 exports.default = void 0; 19468 var codeRole = { 19469 abstract: !1, 19470 accessibleNameRequired: !1, 19471 baseConcepts: [], 19472 childrenPresentational: !1, 19473 nameFrom: ["prohibited"], 19474 prohibitedProps: ["aria-label", "aria-labelledby"], 19475 props: {}, 19476 relatedConcepts: [{ 19477 concept: { 19478 name: "code" 19479 }, 19480 module: "HTML" 19481 }], 19482 requireContextRole: [], 19483 requiredContextRole: [], 19484 requiredOwnedElements: [], 19485 requiredProps: {}, 19486 superClass: [["roletype", "structure", "section"]] 19487 }, _default = exports.default = codeRole; 19488 } 19489}); 19490
vendor: 1,447 bytes, lines 19491-19541
19491// ../../node_modules/aria-query/lib/etc/roles/literal/columnheaderRole.js 19492var require_columnheaderRole = __commonJS({ 19493 "../../node_modules/aria-query/lib/etc/roles/literal/columnheaderRole.js"(exports) { 19494 "use strict"; 19495 Object.defineProperty(exports, "__esModule", { 19496 value: !0 19497 }); 19498 exports.default = void 0; 19499 var columnheaderRole = { 19500 abstract: !1, 19501 accessibleNameRequired: !0, 19502 baseConcepts: [], 19503 childrenPresentational: !1, 19504 nameFrom: ["author", "contents"], 19505 prohibitedProps: [], 19506 props: { 19507 "aria-sort": null 19508 }, 19509 relatedConcepts: [{ 19510 concept: { 19511 name: "th" 19512 }, 19513 module: "HTML" 19514 }, { 19515 concept: { 19516 attributes: [{ 19517 name: "scope", 19518 value: "col" 19519 }], 19520 name: "th" 19521 }, 19522 module: "HTML" 19523 }, { 19524 concept: { 19525 attributes: [{ 19526 name: "scope", 19527 value: "colgroup" 19528 }], 19529 name: "th" 19530 }, 19531 module: "HTML" 19532 }], 19533 requireContextRole: ["row"], 19534 requiredContextRole: ["row"], 19535 requiredOwnedElements: [], 19536 requiredProps: {}, 19537 superClass: [["roletype", "structure", "section", "cell"], ["roletype", "structure", "section", "cell", "gridcell"], ["roletype", "widget", "gridcell"], ["roletype", "structure", "sectionhead"]] 19538 }, _default = exports.default = columnheaderRole; 19539 } 19540}); 19541
vendor: 3,137 bytes, lines 19542-19669
19542// ../../node_modules/aria-query/lib/etc/roles/literal/comboboxRole.js 19543var require_comboboxRole = __commonJS({ 19544 "../../node_modules/aria-query/lib/etc/roles/literal/comboboxRole.js"(exports) { 19545 "use strict"; 19546 Object.defineProperty(exports, "__esModule", { 19547 value: !0 19548 }); 19549 exports.default = void 0; 19550 var comboboxRole = { 19551 abstract: !1, 19552 accessibleNameRequired: !0, 19553 baseConcepts: [], 19554 childrenPresentational: !1, 19555 nameFrom: ["author"], 19556 prohibitedProps: [], 19557 props: { 19558 "aria-activedescendant": null, 19559 "aria-autocomplete": null, 19560 "aria-errormessage": null, 19561 "aria-invalid": null, 19562 "aria-readonly": null, 19563 "aria-required": null, 19564 "aria-expanded": "false", 19565 "aria-haspopup": "listbox" 19566 }, 19567 relatedConcepts: [{ 19568 concept: { 19569 attributes: [{ 19570 constraints: ["set"], 19571 name: "list" 19572 }, { 19573 name: "type", 19574 value: "email" 19575 }], 19576 name: "input" 19577 }, 19578 module: "HTML" 19579 }, { 19580 concept: { 19581 attributes: [{ 19582 constraints: ["set"], 19583 name: "list" 19584 }, { 19585 name: "type", 19586 value: "search" 19587 }], 19588 name: "input" 19589 }, 19590 module: "HTML" 19591 }, { 19592 concept: { 19593 attributes: [{ 19594 constraints: ["set"], 19595 name: "list" 19596 }, { 19597 name: "type", 19598 value: "tel" 19599 }], 19600 name: "input" 19601 }, 19602 module: "HTML" 19603 }, { 19604 concept: { 19605 attributes: [{ 19606 constraints: ["set"], 19607 name: "list" 19608 }, { 19609 name: "type", 19610 value: "text" 19611 }], 19612 name: "input" 19613 }, 19614 module: "HTML" 19615 }, { 19616 concept: { 19617 attributes: [{ 19618 constraints: ["set"], 19619 name: "list" 19620 }, { 19621 name: "type", 19622 value: "url" 19623 }], 19624 name: "input" 19625 }, 19626 module: "HTML" 19627 }, { 19628 concept: { 19629 attributes: [{ 19630 constraints: ["set"], 19631 name: "list" 19632 }, { 19633 name: "type", 19634 value: "url" 19635 }], 19636 name: "input" 19637 }, 19638 module: "HTML" 19639 }, { 19640 concept: { 19641 attributes: [{ 19642 constraints: ["undefined"], 19643 name: "multiple" 19644 }, { 19645 constraints: ["undefined"], 19646 name: "size" 19647 }], 19648 constraints: ["the multiple attribute is not set and the size attribute does not have a value greater than 1"], 19649 name: "select" 19650 }, 19651 module: "HTML" 19652 }, { 19653 concept: { 19654 name: "select" 19655 }, 19656 module: "XForms" 19657 }], 19658 requireContextRole: [], 19659 requiredContextRole: [], 19660 requiredOwnedElements: [], 19661 requiredProps: { 19662 "aria-controls": null, 19663 "aria-expanded": "false" 19664 }, 19665 superClass: [["roletype", "widget", "input"]] 19666 }, _default = exports.default = comboboxRole; 19667 } 19668}); 19669
vendor: 1,629 bytes, lines 19670-19721
19670// ../../node_modules/aria-query/lib/etc/roles/literal/complementaryRole.js 19671var require_complementaryRole = __commonJS({ 19672 "../../node_modules/aria-query/lib/etc/roles/literal/complementaryRole.js"(exports) { 19673 "use strict"; 19674 Object.defineProperty(exports, "__esModule", { 19675 value: !0 19676 }); 19677 exports.default = void 0; 19678 var complementaryRole = { 19679 abstract: !1, 19680 accessibleNameRequired: !1, 19681 baseConcepts: [], 19682 childrenPresentational: !1, 19683 nameFrom: ["author"], 19684 prohibitedProps: [], 19685 props: {}, 19686 relatedConcepts: [{ 19687 concept: { 19688 constraints: ["scoped to the body element", "scoped to the main element"], 19689 name: "aside" 19690 }, 19691 module: "HTML" 19692 }, { 19693 concept: { 19694 attributes: [{ 19695 constraints: ["set"], 19696 name: "aria-label" 19697 }], 19698 constraints: ["scoped to a sectioning content element", "scoped to a sectioning root element other than body"], 19699 name: "aside" 19700 }, 19701 module: "HTML" 19702 }, { 19703 concept: { 19704 attributes: [{ 19705 constraints: ["set"], 19706 name: "aria-labelledby" 19707 }], 19708 constraints: ["scoped to a sectioning content element", "scoped to a sectioning root element other than body"], 19709 name: "aside" 19710 }, 19711 module: "HTML" 19712 }], 19713 requireContextRole: [], 19714 requiredContextRole: [], 19715 requiredOwnedElements: [], 19716 requiredProps: {}, 19717 superClass: [["roletype", "structure", "section", "landmark"]] 19718 }, _default = exports.default = complementaryRole; 19719 } 19720}); 19721
vendor: 957 bytes, lines 19722-19753
19722// ../../node_modules/aria-query/lib/etc/roles/literal/contentinfoRole.js 19723var require_contentinfoRole = __commonJS({ 19724 "../../node_modules/aria-query/lib/etc/roles/literal/contentinfoRole.js"(exports) { 19725 "use strict"; 19726 Object.defineProperty(exports, "__esModule", { 19727 value: !0 19728 }); 19729 exports.default = void 0; 19730 var contentinfoRole = { 19731 abstract: !1, 19732 accessibleNameRequired: !1, 19733 baseConcepts: [], 19734 childrenPresentational: !1, 19735 nameFrom: ["author"], 19736 prohibitedProps: [], 19737 props: {}, 19738 relatedConcepts: [{ 19739 concept: { 19740 constraints: ["scoped to the body element"], 19741 name: "footer" 19742 }, 19743 module: "HTML" 19744 }], 19745 requireContextRole: [], 19746 requiredContextRole: [], 19747 requiredOwnedElements: [], 19748 requiredProps: {}, 19749 superClass: [["roletype", "structure", "section", "landmark"]] 19750 }, _default = exports.default = contentinfoRole; 19751 } 19752}); 19753
vendor: 881 bytes, lines 19754-19784
19754// ../../node_modules/aria-query/lib/etc/roles/literal/definitionRole.js 19755var require_definitionRole = __commonJS({ 19756 "../../node_modules/aria-query/lib/etc/roles/literal/definitionRole.js"(exports) { 19757 "use strict"; 19758 Object.defineProperty(exports, "__esModule", { 19759 value: !0 19760 }); 19761 exports.default = void 0; 19762 var definitionRole = { 19763 abstract: !1, 19764 accessibleNameRequired: !1, 19765 baseConcepts: [], 19766 childrenPresentational: !1, 19767 nameFrom: ["author"], 19768 prohibitedProps: [], 19769 props: {}, 19770 relatedConcepts: [{ 19771 concept: { 19772 name: "dd" 19773 }, 19774 module: "HTML" 19775 }], 19776 requireContextRole: [], 19777 requiredContextRole: [], 19778 requiredOwnedElements: [], 19779 requiredProps: {}, 19780 superClass: [["roletype", "structure", "section"]] 19781 }, _default = exports.default = definitionRole; 19782 } 19783}); 19784
vendor: 907 bytes, lines 19785-19815
19785// ../../node_modules/aria-query/lib/etc/roles/literal/deletionRole.js 19786var require_deletionRole = __commonJS({ 19787 "../../node_modules/aria-query/lib/etc/roles/literal/deletionRole.js"(exports) { 19788 "use strict"; 19789 Object.defineProperty(exports, "__esModule", { 19790 value: !0 19791 }); 19792 exports.default = void 0; 19793 var deletionRole = { 19794 abstract: !1, 19795 accessibleNameRequired: !1, 19796 baseConcepts: [], 19797 childrenPresentational: !1, 19798 nameFrom: ["prohibited"], 19799 prohibitedProps: ["aria-label", "aria-labelledby"], 19800 props: {}, 19801 relatedConcepts: [{ 19802 concept: { 19803 name: "del" 19804 }, 19805 module: "HTML" 19806 }], 19807 requireContextRole: [], 19808 requiredContextRole: [], 19809 requiredOwnedElements: [], 19810 requiredProps: {}, 19811 superClass: [["roletype", "structure", "section"]] 19812 }, _default = exports.default = deletionRole; 19813 } 19814}); 19815
vendor: 851 bytes, lines 19816-19846
19816// ../../node_modules/aria-query/lib/etc/roles/literal/dialogRole.js 19817var require_dialogRole = __commonJS({ 19818 "../../node_modules/aria-query/lib/etc/roles/literal/dialogRole.js"(exports) { 19819 "use strict"; 19820 Object.defineProperty(exports, "__esModule", { 19821 value: !0 19822 }); 19823 exports.default = void 0; 19824 var dialogRole = { 19825 abstract: !1, 19826 accessibleNameRequired: !0, 19827 baseConcepts: [], 19828 childrenPresentational: !1, 19829 nameFrom: ["author"], 19830 prohibitedProps: [], 19831 props: {}, 19832 relatedConcepts: [{ 19833 concept: { 19834 name: "dialog" 19835 }, 19836 module: "HTML" 19837 }], 19838 requireContextRole: [], 19839 requiredContextRole: [], 19840 requiredOwnedElements: [], 19841 requiredProps: {}, 19842 superClass: [["roletype", "window"]] 19843 }, _default = exports.default = dialogRole; 19844 } 19845}); 19846
vendor: 840 bytes, lines 19847-19874
19847// ../../node_modules/aria-query/lib/etc/roles/literal/directoryRole.js 19848var require_directoryRole = __commonJS({ 19849 "../../node_modules/aria-query/lib/etc/roles/literal/directoryRole.js"(exports) { 19850 "use strict"; 19851 Object.defineProperty(exports, "__esModule", { 19852 value: !0 19853 }); 19854 exports.default = void 0; 19855 var directoryRole = { 19856 abstract: !1, 19857 accessibleNameRequired: !1, 19858 baseConcepts: [], 19859 childrenPresentational: !1, 19860 nameFrom: ["author"], 19861 prohibitedProps: [], 19862 props: {}, 19863 relatedConcepts: [{ 19864 module: "DAISY Guide" 19865 }], 19866 requireContextRole: [], 19867 requiredContextRole: [], 19868 requiredOwnedElements: [], 19869 requiredProps: {}, 19870 superClass: [["roletype", "structure", "section", "list"]] 19871 }, _default = exports.default = directoryRole; 19872 } 19873}); 19874
vendor: 954 bytes, lines 19875-19909
19875// ../../node_modules/aria-query/lib/etc/roles/literal/documentRole.js 19876var require_documentRole = __commonJS({ 19877 "../../node_modules/aria-query/lib/etc/roles/literal/documentRole.js"(exports) { 19878 "use strict"; 19879 Object.defineProperty(exports, "__esModule", { 19880 value: !0 19881 }); 19882 exports.default = void 0; 19883 var documentRole = { 19884 abstract: !1, 19885 accessibleNameRequired: !1, 19886 baseConcepts: [], 19887 childrenPresentational: !1, 19888 nameFrom: ["author"], 19889 prohibitedProps: [], 19890 props: {}, 19891 relatedConcepts: [{ 19892 concept: { 19893 name: "Device Independence Delivery Unit" 19894 } 19895 }, { 19896 concept: { 19897 name: "html" 19898 }, 19899 module: "HTML" 19900 }], 19901 requireContextRole: [], 19902 requiredContextRole: [], 19903 requiredOwnedElements: [], 19904 requiredProps: {}, 19905 superClass: [["roletype", "structure"]] 19906 }, _default = exports.default = documentRole; 19907 } 19908}); 19909
vendor: 906 bytes, lines 19910-19940
19910// ../../node_modules/aria-query/lib/etc/roles/literal/emphasisRole.js 19911var require_emphasisRole = __commonJS({ 19912 "../../node_modules/aria-query/lib/etc/roles/literal/emphasisRole.js"(exports) { 19913 "use strict"; 19914 Object.defineProperty(exports, "__esModule", { 19915 value: !0 19916 }); 19917 exports.default = void 0; 19918 var emphasisRole = { 19919 abstract: !1, 19920 accessibleNameRequired: !1, 19921 baseConcepts: [], 19922 childrenPresentational: !1, 19923 nameFrom: ["prohibited"], 19924 prohibitedProps: ["aria-label", "aria-labelledby"], 19925 props: {}, 19926 relatedConcepts: [{ 19927 concept: { 19928 name: "em" 19929 }, 19930 module: "HTML" 19931 }], 19932 requireContextRole: [], 19933 requiredContextRole: [], 19934 requiredOwnedElements: [], 19935 requiredProps: {}, 19936 superClass: [["roletype", "structure", "section"]] 19937 }, _default = exports.default = emphasisRole; 19938 } 19939}); 19940
vendor: 787 bytes, lines 19941-19966
19941// ../../node_modules/aria-query/lib/etc/roles/literal/feedRole.js 19942var require_feedRole = __commonJS({ 19943 "../../node_modules/aria-query/lib/etc/roles/literal/feedRole.js"(exports) { 19944 "use strict"; 19945 Object.defineProperty(exports, "__esModule", { 19946 value: !0 19947 }); 19948 exports.default = void 0; 19949 var feedRole = { 19950 abstract: !1, 19951 accessibleNameRequired: !1, 19952 baseConcepts: [], 19953 childrenPresentational: !1, 19954 nameFrom: ["author"], 19955 prohibitedProps: [], 19956 props: {}, 19957 relatedConcepts: [], 19958 requireContextRole: [], 19959 requiredContextRole: [], 19960 requiredOwnedElements: [["article"]], 19961 requiredProps: {}, 19962 superClass: [["roletype", "structure", "section", "list"]] 19963 }, _default = exports.default = feedRole; 19964 } 19965}); 19966
vendor: 865 bytes, lines 19967-19997
19967// ../../node_modules/aria-query/lib/etc/roles/literal/figureRole.js 19968var require_figureRole = __commonJS({ 19969 "../../node_modules/aria-query/lib/etc/roles/literal/figureRole.js"(exports) { 19970 "use strict"; 19971 Object.defineProperty(exports, "__esModule", { 19972 value: !0 19973 }); 19974 exports.default = void 0; 19975 var figureRole = { 19976 abstract: !1, 19977 accessibleNameRequired: !1, 19978 baseConcepts: [], 19979 childrenPresentational: !1, 19980 nameFrom: ["author"], 19981 prohibitedProps: [], 19982 props: {}, 19983 relatedConcepts: [{ 19984 concept: { 19985 name: "figure" 19986 }, 19987 module: "HTML" 19988 }], 19989 requireContextRole: [], 19990 requiredContextRole: [], 19991 requiredOwnedElements: [], 19992 requiredProps: {}, 19993 superClass: [["roletype", "structure", "section"]] 19994 }, _default = exports.default = figureRole; 19995 } 19996}); 19997
vendor: 1,350 bytes, lines 19998-20050
19998// ../../node_modules/aria-query/lib/etc/roles/literal/formRole.js 19999var require_formRole = __commonJS({ 20000 "../../node_modules/aria-query/lib/etc/roles/literal/formRole.js"(exports) { 20001 "use strict"; 20002 Object.defineProperty(exports, "__esModule", { 20003 value: !0 20004 }); 20005 exports.default = void 0; 20006 var formRole = { 20007 abstract: !1, 20008 accessibleNameRequired: !1, 20009 baseConcepts: [], 20010 childrenPresentational: !1, 20011 nameFrom: ["author"], 20012 prohibitedProps: [], 20013 props: {}, 20014 relatedConcepts: [{ 20015 concept: { 20016 attributes: [{ 20017 constraints: ["set"], 20018 name: "aria-label" 20019 }], 20020 name: "form" 20021 }, 20022 module: "HTML" 20023 }, { 20024 concept: { 20025 attributes: [{ 20026 constraints: ["set"], 20027 name: "aria-labelledby" 20028 }], 20029 name: "form" 20030 }, 20031 module: "HTML" 20032 }, { 20033 concept: { 20034 attributes: [{ 20035 constraints: ["set"], 20036 name: "name" 20037 }], 20038 name: "form" 20039 }, 20040 module: "HTML" 20041 }], 20042 requireContextRole: [], 20043 requiredContextRole: [], 20044 requiredOwnedElements: [], 20045 requiredProps: {}, 20046 superClass: [["roletype", "structure", "section", "landmark"]] 20047 }, _default = exports.default = formRole; 20048 } 20049}); 20050
vendor: 2,755 bytes, lines 20051-20173
20051// ../../node_modules/aria-query/lib/etc/roles/literal/genericRole.js 20052var require_genericRole = __commonJS({ 20053 "../../node_modules/aria-query/lib/etc/roles/literal/genericRole.js"(exports) { 20054 "use strict"; 20055 Object.defineProperty(exports, "__esModule", { 20056 value: !0 20057 }); 20058 exports.default = void 0; 20059 var genericRole = { 20060 abstract: !1, 20061 accessibleNameRequired: !1, 20062 baseConcepts: [], 20063 childrenPresentational: !1, 20064 nameFrom: ["prohibited"], 20065 prohibitedProps: ["aria-label", "aria-labelledby"], 20066 props: {}, 20067 relatedConcepts: [{ 20068 concept: { 20069 name: "a" 20070 }, 20071 module: "HTML" 20072 }, { 20073 concept: { 20074 name: "area" 20075 }, 20076 module: "HTML" 20077 }, { 20078 concept: { 20079 name: "aside" 20080 }, 20081 module: "HTML" 20082 }, { 20083 concept: { 20084 name: "b" 20085 }, 20086 module: "HTML" 20087 }, { 20088 concept: { 20089 name: "bdo" 20090 }, 20091 module: "HTML" 20092 }, { 20093 concept: { 20094 name: "body" 20095 }, 20096 module: "HTML" 20097 }, { 20098 concept: { 20099 name: "data" 20100 }, 20101 module: "HTML" 20102 }, { 20103 concept: { 20104 name: "div" 20105 }, 20106 module: "HTML" 20107 }, { 20108 concept: { 20109 constraints: ["scoped to the main element", "scoped to a sectioning content element", "scoped to a sectioning root element other than body"], 20110 name: "footer" 20111 }, 20112 module: "HTML" 20113 }, { 20114 concept: { 20115 constraints: ["scoped to the main element", "scoped to a sectioning content element", "scoped to a sectioning root element other than body"], 20116 name: "header" 20117 }, 20118 module: "HTML" 20119 }, { 20120 concept: { 20121 name: "hgroup" 20122 }, 20123 module: "HTML" 20124 }, { 20125 concept: { 20126 name: "i" 20127 }, 20128 module: "HTML" 20129 }, { 20130 concept: { 20131 name: "pre" 20132 }, 20133 module: "HTML" 20134 }, { 20135 concept: { 20136 name: "q" 20137 }, 20138 module: "HTML" 20139 }, { 20140 concept: { 20141 name: "samp" 20142 }, 20143 module: "HTML" 20144 }, { 20145 concept: { 20146 name: "section" 20147 }, 20148 module: "HTML" 20149 }, { 20150 concept: { 20151 name: "small" 20152 }, 20153 module: "HTML" 20154 }, { 20155 concept: { 20156 name: "span" 20157 }, 20158 module: "HTML" 20159 }, { 20160 concept: { 20161 name: "u" 20162 }, 20163 module: "HTML" 20164 }], 20165 requireContextRole: [], 20166 requiredContextRole: [], 20167 requiredOwnedElements: [], 20168 requiredProps: {}, 20169 superClass: [["roletype", "structure"]] 20170 }, _default = exports.default = genericRole; 20171 } 20172}); 20173
vendor: 917 bytes, lines 20174-20202
20174// ../../node_modules/aria-query/lib/etc/roles/literal/gridRole.js 20175var require_gridRole = __commonJS({ 20176 "../../node_modules/aria-query/lib/etc/roles/literal/gridRole.js"(exports) { 20177 "use strict"; 20178 Object.defineProperty(exports, "__esModule", { 20179 value: !0 20180 }); 20181 exports.default = void 0; 20182 var gridRole = { 20183 abstract: !1, 20184 accessibleNameRequired: !0, 20185 baseConcepts: [], 20186 childrenPresentational: !1, 20187 nameFrom: ["author"], 20188 prohibitedProps: [], 20189 props: { 20190 "aria-multiselectable": null, 20191 "aria-readonly": null 20192 }, 20193 relatedConcepts: [], 20194 requireContextRole: [], 20195 requiredContextRole: [], 20196 requiredOwnedElements: [["row"], ["row", "rowgroup"]], 20197 requiredProps: {}, 20198 superClass: [["roletype", "widget", "composite"], ["roletype", "structure", "section", "table"]] 20199 }, _default = exports.default = gridRole; 20200 } 20201}); 20202
vendor: 1,291 bytes, lines 20203-20243
20203// ../../node_modules/aria-query/lib/etc/roles/literal/gridcellRole.js 20204var require_gridcellRole = __commonJS({ 20205 "../../node_modules/aria-query/lib/etc/roles/literal/gridcellRole.js"(exports) { 20206 "use strict"; 20207 Object.defineProperty(exports, "__esModule", { 20208 value: !0 20209 }); 20210 exports.default = void 0; 20211 var gridcellRole = { 20212 abstract: !1, 20213 accessibleNameRequired: !1, 20214 baseConcepts: [], 20215 childrenPresentational: !1, 20216 nameFrom: ["author", "contents"], 20217 prohibitedProps: [], 20218 props: { 20219 "aria-disabled": null, 20220 "aria-errormessage": null, 20221 "aria-expanded": null, 20222 "aria-haspopup": null, 20223 "aria-invalid": null, 20224 "aria-readonly": null, 20225 "aria-required": null, 20226 "aria-selected": null 20227 }, 20228 relatedConcepts: [{ 20229 concept: { 20230 constraints: ["ancestor table element has grid role", "ancestor table element has treegrid role"], 20231 name: "td" 20232 }, 20233 module: "HTML" 20234 }], 20235 requireContextRole: ["row"], 20236 requiredContextRole: ["row"], 20237 requiredOwnedElements: [], 20238 requiredProps: {}, 20239 superClass: [["roletype", "structure", "section", "cell"], ["roletype", "widget"]] 20240 }, _default = exports.default = gridcellRole; 20241 } 20242}); 20243
vendor: 1,209 bytes, lines 20244-20292
20244// ../../node_modules/aria-query/lib/etc/roles/literal/groupRole.js 20245var require_groupRole = __commonJS({ 20246 "../../node_modules/aria-query/lib/etc/roles/literal/groupRole.js"(exports) { 20247 "use strict"; 20248 Object.defineProperty(exports, "__esModule", { 20249 value: !0 20250 }); 20251 exports.default = void 0; 20252 var groupRole = { 20253 abstract: !1, 20254 accessibleNameRequired: !1, 20255 baseConcepts: [], 20256 childrenPresentational: !1, 20257 nameFrom: ["author"], 20258 prohibitedProps: [], 20259 props: { 20260 "aria-activedescendant": null, 20261 "aria-disabled": null 20262 }, 20263 relatedConcepts: [{ 20264 concept: { 20265 name: "details" 20266 }, 20267 module: "HTML" 20268 }, { 20269 concept: { 20270 name: "fieldset" 20271 }, 20272 module: "HTML" 20273 }, { 20274 concept: { 20275 name: "optgroup" 20276 }, 20277 module: "HTML" 20278 }, { 20279 concept: { 20280 name: "address" 20281 }, 20282 module: "HTML" 20283 }], 20284 requireContextRole: [], 20285 requiredContextRole: [], 20286 requiredOwnedElements: [], 20287 requiredProps: {}, 20288 superClass: [["roletype", "structure", "section"]] 20289 }, _default = exports.default = groupRole; 20290 } 20291}); 20292
vendor: 1,373 bytes, lines 20293-20352
20293// ../../node_modules/aria-query/lib/etc/roles/literal/headingRole.js 20294var require_headingRole = __commonJS({ 20295 "../../node_modules/aria-query/lib/etc/roles/literal/headingRole.js"(exports) { 20296 "use strict"; 20297 Object.defineProperty(exports, "__esModule", { 20298 value: !0 20299 }); 20300 exports.default = void 0; 20301 var headingRole = { 20302 abstract: !1, 20303 accessibleNameRequired: !0, 20304 baseConcepts: [], 20305 childrenPresentational: !1, 20306 nameFrom: ["author", "contents"], 20307 prohibitedProps: [], 20308 props: { 20309 "aria-level": "2" 20310 }, 20311 relatedConcepts: [{ 20312 concept: { 20313 name: "h1" 20314 }, 20315 module: "HTML" 20316 }, { 20317 concept: { 20318 name: "h2" 20319 }, 20320 module: "HTML" 20321 }, { 20322 concept: { 20323 name: "h3" 20324 }, 20325 module: "HTML" 20326 }, { 20327 concept: { 20328 name: "h4" 20329 }, 20330 module: "HTML" 20331 }, { 20332 concept: { 20333 name: "h5" 20334 }, 20335 module: "HTML" 20336 }, { 20337 concept: { 20338 name: "h6" 20339 }, 20340 module: "HTML" 20341 }], 20342 requireContextRole: [], 20343 requiredContextRole: [], 20344 requiredOwnedElements: [], 20345 requiredProps: { 20346 "aria-level": "2" 20347 }, 20348 superClass: [["roletype", "structure", "sectionhead"]] 20349 }, _default = exports.default = headingRole; 20350 } 20351}); 20352
vendor: 1,223 bytes, lines 20353-20401
20353// ../../node_modules/aria-query/lib/etc/roles/literal/imgRole.js 20354var require_imgRole = __commonJS({ 20355 "../../node_modules/aria-query/lib/etc/roles/literal/imgRole.js"(exports) { 20356 "use strict"; 20357 Object.defineProperty(exports, "__esModule", { 20358 value: !0 20359 }); 20360 exports.default = void 0; 20361 var imgRole = { 20362 abstract: !1, 20363 accessibleNameRequired: !0, 20364 baseConcepts: [], 20365 childrenPresentational: !0, 20366 nameFrom: ["author"], 20367 prohibitedProps: [], 20368 props: {}, 20369 relatedConcepts: [{ 20370 concept: { 20371 attributes: [{ 20372 constraints: ["set"], 20373 name: "alt" 20374 }], 20375 name: "img" 20376 }, 20377 module: "HTML" 20378 }, { 20379 concept: { 20380 attributes: [{ 20381 constraints: ["undefined"], 20382 name: "alt" 20383 }], 20384 name: "img" 20385 }, 20386 module: "HTML" 20387 }, { 20388 concept: { 20389 name: "imggroup" 20390 }, 20391 module: "DTB" 20392 }], 20393 requireContextRole: [], 20394 requiredContextRole: [], 20395 requiredOwnedElements: [], 20396 requiredProps: {}, 20397 superClass: [["roletype", "structure", "section"]] 20398 }, _default = exports.default = imgRole; 20399 } 20400}); 20401
vendor: 912 bytes, lines 20402-20432
20402// ../../node_modules/aria-query/lib/etc/roles/literal/insertionRole.js 20403var require_insertionRole = __commonJS({ 20404 "../../node_modules/aria-query/lib/etc/roles/literal/insertionRole.js"(exports) { 20405 "use strict"; 20406 Object.defineProperty(exports, "__esModule", { 20407 value: !0 20408 }); 20409 exports.default = void 0; 20410 var insertionRole = { 20411 abstract: !1, 20412 accessibleNameRequired: !1, 20413 baseConcepts: [], 20414 childrenPresentational: !1, 20415 nameFrom: ["prohibited"], 20416 prohibitedProps: ["aria-label", "aria-labelledby"], 20417 props: {}, 20418 relatedConcepts: [{ 20419 concept: { 20420 name: "ins" 20421 }, 20422 module: "HTML" 20423 }], 20424 requireContextRole: [], 20425 requiredContextRole: [], 20426 requiredOwnedElements: [], 20427 requiredProps: {}, 20428 superClass: [["roletype", "structure", "section"]] 20429 }, _default = exports.default = insertionRole; 20430 } 20431}); 20432
vendor: 1,241 bytes, lines 20433-20480
20433// ../../node_modules/aria-query/lib/etc/roles/literal/linkRole.js 20434var require_linkRole = __commonJS({ 20435 "../../node_modules/aria-query/lib/etc/roles/literal/linkRole.js"(exports) { 20436 "use strict"; 20437 Object.defineProperty(exports, "__esModule", { 20438 value: !0 20439 }); 20440 exports.default = void 0; 20441 var linkRole = { 20442 abstract: !1, 20443 accessibleNameRequired: !0, 20444 baseConcepts: [], 20445 childrenPresentational: !1, 20446 nameFrom: ["author", "contents"], 20447 prohibitedProps: [], 20448 props: { 20449 "aria-disabled": null, 20450 "aria-expanded": null, 20451 "aria-haspopup": null 20452 }, 20453 relatedConcepts: [{ 20454 concept: { 20455 attributes: [{ 20456 constraints: ["set"], 20457 name: "href" 20458 }], 20459 name: "a" 20460 }, 20461 module: "HTML" 20462 }, { 20463 concept: { 20464 attributes: [{ 20465 constraints: ["set"], 20466 name: "href" 20467 }], 20468 name: "area" 20469 }, 20470 module: "HTML" 20471 }], 20472 requireContextRole: [], 20473 requiredContextRole: [], 20474 requiredOwnedElements: [], 20475 requiredProps: {}, 20476 superClass: [["roletype", "widget", "command"]] 20477 }, _default = exports.default = linkRole; 20478 } 20479}); 20480
vendor: 1,035 bytes, lines 20481-20521
20481// ../../node_modules/aria-query/lib/etc/roles/literal/listRole.js 20482var require_listRole = __commonJS({ 20483 "../../node_modules/aria-query/lib/etc/roles/literal/listRole.js"(exports) { 20484 "use strict"; 20485 Object.defineProperty(exports, "__esModule", { 20486 value: !0 20487 }); 20488 exports.default = void 0; 20489 var listRole = { 20490 abstract: !1, 20491 accessibleNameRequired: !1, 20492 baseConcepts: [], 20493 childrenPresentational: !1, 20494 nameFrom: ["author"], 20495 prohibitedProps: [], 20496 props: {}, 20497 relatedConcepts: [{ 20498 concept: { 20499 name: "menu" 20500 }, 20501 module: "HTML" 20502 }, { 20503 concept: { 20504 name: "ol" 20505 }, 20506 module: "HTML" 20507 }, { 20508 concept: { 20509 name: "ul" 20510 }, 20511 module: "HTML" 20512 }], 20513 requireContextRole: [], 20514 requiredContextRole: [], 20515 requiredOwnedElements: [["listitem"]], 20516 requiredProps: {}, 20517 superClass: [["roletype", "structure", "section"]] 20518 }, _default = exports.default = listRole; 20519 } 20520}); 20521
vendor: 1,803 bytes, lines 20522-20588
20522// ../../node_modules/aria-query/lib/etc/roles/literal/listboxRole.js 20523var require_listboxRole = __commonJS({ 20524 "../../node_modules/aria-query/lib/etc/roles/literal/listboxRole.js"(exports) { 20525 "use strict"; 20526 Object.defineProperty(exports, "__esModule", { 20527 value: !0 20528 }); 20529 exports.default = void 0; 20530 var listboxRole = { 20531 abstract: !1, 20532 accessibleNameRequired: !0, 20533 baseConcepts: [], 20534 childrenPresentational: !1, 20535 nameFrom: ["author"], 20536 prohibitedProps: [], 20537 props: { 20538 "aria-errormessage": null, 20539 "aria-expanded": null, 20540 "aria-invalid": null, 20541 "aria-multiselectable": null, 20542 "aria-readonly": null, 20543 "aria-required": null, 20544 "aria-orientation": "vertical" 20545 }, 20546 relatedConcepts: [{ 20547 concept: { 20548 attributes: [{ 20549 constraints: [">1"], 20550 name: "size" 20551 }], 20552 constraints: ["the size attribute value is greater than 1"], 20553 name: "select" 20554 }, 20555 module: "HTML" 20556 }, { 20557 concept: { 20558 attributes: [{ 20559 name: "multiple" 20560 }], 20561 name: "select" 20562 }, 20563 module: "HTML" 20564 }, { 20565 concept: { 20566 name: "datalist" 20567 }, 20568 module: "HTML" 20569 }, { 20570 concept: { 20571 name: "list" 20572 }, 20573 module: "ARIA" 20574 }, { 20575 concept: { 20576 name: "select" 20577 }, 20578 module: "XForms" 20579 }], 20580 requireContextRole: [], 20581 requiredContextRole: [], 20582 requiredOwnedElements: [["option", "group"], ["option"]], 20583 requiredProps: {}, 20584 superClass: [["roletype", "widget", "composite", "select"], ["roletype", "structure", "section", "group", "select"]] 20585 }, _default = exports.default = listboxRole; 20586 } 20587}); 20588
vendor: 1,201 bytes, lines 20589-20629
20589// ../../node_modules/aria-query/lib/etc/roles/literal/listitemRole.js 20590var require_listitemRole = __commonJS({ 20591 "../../node_modules/aria-query/lib/etc/roles/literal/listitemRole.js"(exports) { 20592 "use strict"; 20593 Object.defineProperty(exports, "__esModule", { 20594 value: !0 20595 }); 20596 exports.default = void 0; 20597 var listitemRole = { 20598 abstract: !1, 20599 accessibleNameRequired: !1, 20600 baseConcepts: [], 20601 childrenPresentational: !1, 20602 nameFrom: ["author"], 20603 prohibitedProps: [], 20604 props: { 20605 "aria-level": null, 20606 "aria-posinset": null, 20607 "aria-setsize": null 20608 }, 20609 relatedConcepts: [{ 20610 concept: { 20611 constraints: ["direct descendant of ol", "direct descendant of ul", "direct descendant of menu"], 20612 name: "li" 20613 }, 20614 module: "HTML" 20615 }, { 20616 concept: { 20617 name: "item" 20618 }, 20619 module: "XForms" 20620 }], 20621 requireContextRole: ["directory", "list"], 20622 requiredContextRole: ["directory", "list"], 20623 requiredOwnedElements: [], 20624 requiredProps: {}, 20625 superClass: [["roletype", "structure", "section"]] 20626 }, _default = exports.default = listitemRole; 20627 } 20628}); 20629
vendor: 800 bytes, lines 20630-20657
20630// ../../node_modules/aria-query/lib/etc/roles/literal/logRole.js 20631var require_logRole = __commonJS({ 20632 "../../node_modules/aria-query/lib/etc/roles/literal/logRole.js"(exports) { 20633 "use strict"; 20634 Object.defineProperty(exports, "__esModule", { 20635 value: !0 20636 }); 20637 exports.default = void 0; 20638 var logRole = { 20639 abstract: !1, 20640 accessibleNameRequired: !1, 20641 baseConcepts: [], 20642 childrenPresentational: !1, 20643 nameFrom: ["author"], 20644 prohibitedProps: [], 20645 props: { 20646 "aria-live": "polite" 20647 }, 20648 relatedConcepts: [], 20649 requireContextRole: [], 20650 requiredContextRole: [], 20651 requiredOwnedElements: [], 20652 requiredProps: {}, 20653 superClass: [["roletype", "structure", "section"]] 20654 }, _default = exports.default = logRole; 20655 } 20656}); 20657
vendor: 865 bytes, lines 20658-20688
20658// ../../node_modules/aria-query/lib/etc/roles/literal/mainRole.js 20659var require_mainRole = __commonJS({ 20660 "../../node_modules/aria-query/lib/etc/roles/literal/mainRole.js"(exports) { 20661 "use strict"; 20662 Object.defineProperty(exports, "__esModule", { 20663 value: !0 20664 }); 20665 exports.default = void 0; 20666 var mainRole = { 20667 abstract: !1, 20668 accessibleNameRequired: !1, 20669 baseConcepts: [], 20670 childrenPresentational: !1, 20671 nameFrom: ["author"], 20672 prohibitedProps: [], 20673 props: {}, 20674 relatedConcepts: [{ 20675 concept: { 20676 name: "main" 20677 }, 20678 module: "HTML" 20679 }], 20680 requireContextRole: [], 20681 requiredContextRole: [], 20682 requiredOwnedElements: [], 20683 requiredProps: {}, 20684 superClass: [["roletype", "structure", "section", "landmark"]] 20685 }, _default = exports.default = mainRole; 20686 } 20687}); 20688
vendor: 977 bytes, lines 20689-20723
20689// ../../node_modules/aria-query/lib/etc/roles/literal/markRole.js 20690var require_markRole = __commonJS({ 20691 "../../node_modules/aria-query/lib/etc/roles/literal/markRole.js"(exports) { 20692 "use strict"; 20693 Object.defineProperty(exports, "__esModule", { 20694 value: !0 20695 }); 20696 exports.default = void 0; 20697 var markRole = { 20698 abstract: !1, 20699 accessibleNameRequired: !1, 20700 baseConcepts: [], 20701 childrenPresentational: !1, 20702 nameFrom: ["prohibited"], 20703 prohibitedProps: [], 20704 props: { 20705 "aria-braillelabel": null, 20706 "aria-brailleroledescription": null, 20707 "aria-description": null 20708 }, 20709 relatedConcepts: [{ 20710 concept: { 20711 name: "mark" 20712 }, 20713 module: "HTML" 20714 }], 20715 requireContextRole: [], 20716 requiredContextRole: [], 20717 requiredOwnedElements: [], 20718 requiredProps: {}, 20719 superClass: [["roletype", "structure", "section"]] 20720 }, _default = exports.default = markRole; 20721 } 20722}); 20723
vendor: 783 bytes, lines 20724-20749
20724// ../../node_modules/aria-query/lib/etc/roles/literal/marqueeRole.js 20725var require_marqueeRole = __commonJS({ 20726 "../../node_modules/aria-query/lib/etc/roles/literal/marqueeRole.js"(exports) { 20727 "use strict"; 20728 Object.defineProperty(exports, "__esModule", { 20729 value: !0 20730 }); 20731 exports.default = void 0; 20732 var marqueeRole = { 20733 abstract: !1, 20734 accessibleNameRequired: !0, 20735 baseConcepts: [], 20736 childrenPresentational: !1, 20737 nameFrom: ["author"], 20738 prohibitedProps: [], 20739 props: {}, 20740 relatedConcepts: [], 20741 requireContextRole: [], 20742 requiredContextRole: [], 20743 requiredOwnedElements: [], 20744 requiredProps: {}, 20745 superClass: [["roletype", "structure", "section"]] 20746 }, _default = exports.default = marqueeRole; 20747 } 20748}); 20749
vendor: 853 bytes, lines 20750-20780
20750// ../../node_modules/aria-query/lib/etc/roles/literal/mathRole.js 20751var require_mathRole = __commonJS({ 20752 "../../node_modules/aria-query/lib/etc/roles/literal/mathRole.js"(exports) { 20753 "use strict"; 20754 Object.defineProperty(exports, "__esModule", { 20755 value: !0 20756 }); 20757 exports.default = void 0; 20758 var mathRole = { 20759 abstract: !1, 20760 accessibleNameRequired: !1, 20761 baseConcepts: [], 20762 childrenPresentational: !1, 20763 nameFrom: ["author"], 20764 prohibitedProps: [], 20765 props: {}, 20766 relatedConcepts: [{ 20767 concept: { 20768 name: "math" 20769 }, 20770 module: "HTML" 20771 }], 20772 requireContextRole: [], 20773 requiredContextRole: [], 20774 requiredOwnedElements: [], 20775 requiredProps: {}, 20776 superClass: [["roletype", "structure", "section"]] 20777 }, _default = exports.default = mathRole; 20778 } 20779}); 20780
vendor: 1,367 bytes, lines 20781-20828
20781// ../../node_modules/aria-query/lib/etc/roles/literal/menuRole.js 20782var require_menuRole = __commonJS({ 20783 "../../node_modules/aria-query/lib/etc/roles/literal/menuRole.js"(exports) { 20784 "use strict"; 20785 Object.defineProperty(exports, "__esModule", { 20786 value: !0 20787 }); 20788 exports.default = void 0; 20789 var menuRole = { 20790 abstract: !1, 20791 accessibleNameRequired: !1, 20792 baseConcepts: [], 20793 childrenPresentational: !1, 20794 nameFrom: ["author"], 20795 prohibitedProps: [], 20796 props: { 20797 "aria-orientation": "vertical" 20798 }, 20799 relatedConcepts: [{ 20800 concept: { 20801 name: "MENU" 20802 }, 20803 module: "JAPI" 20804 }, { 20805 concept: { 20806 name: "list" 20807 }, 20808 module: "ARIA" 20809 }, { 20810 concept: { 20811 name: "select" 20812 }, 20813 module: "XForms" 20814 }, { 20815 concept: { 20816 name: "sidebar" 20817 }, 20818 module: "DTB" 20819 }], 20820 requireContextRole: [], 20821 requiredContextRole: [], 20822 requiredOwnedElements: [["menuitem", "group"], ["menuitemradio", "group"], ["menuitemcheckbox", "group"], ["menuitem"], ["menuitemcheckbox"], ["menuitemradio"]], 20823 requiredProps: {}, 20824 superClass: [["roletype", "widget", "composite", "select"], ["roletype", "structure", "section", "group", "select"]] 20825 }, _default = exports.default = menuRole; 20826 } 20827}); 20828
vendor: 1,136 bytes, lines 20829-20861
20829// ../../node_modules/aria-query/lib/etc/roles/literal/menubarRole.js 20830var require_menubarRole = __commonJS({ 20831 "../../node_modules/aria-query/lib/etc/roles/literal/menubarRole.js"(exports) { 20832 "use strict"; 20833 Object.defineProperty(exports, "__esModule", { 20834 value: !0 20835 }); 20836 exports.default = void 0; 20837 var menubarRole = { 20838 abstract: !1, 20839 accessibleNameRequired: !1, 20840 baseConcepts: [], 20841 childrenPresentational: !1, 20842 nameFrom: ["author"], 20843 prohibitedProps: [], 20844 props: { 20845 "aria-orientation": "horizontal" 20846 }, 20847 relatedConcepts: [{ 20848 concept: { 20849 name: "toolbar" 20850 }, 20851 module: "ARIA" 20852 }], 20853 requireContextRole: [], 20854 requiredContextRole: [], 20855 requiredOwnedElements: [["menuitem", "group"], ["menuitemradio", "group"], ["menuitemcheckbox", "group"], ["menuitem"], ["menuitemcheckbox"], ["menuitemradio"]], 20856 requiredProps: {}, 20857 superClass: [["roletype", "widget", "composite", "select", "menu"], ["roletype", "structure", "section", "group", "select", "menu"]] 20858 }, _default = exports.default = menubarRole; 20859 } 20860}); 20861
vendor: 1,279 bytes, lines 20862-20908
20862// ../../node_modules/aria-query/lib/etc/roles/literal/menuitemRole.js 20863var require_menuitemRole = __commonJS({ 20864 "../../node_modules/aria-query/lib/etc/roles/literal/menuitemRole.js"(exports) { 20865 "use strict"; 20866 Object.defineProperty(exports, "__esModule", { 20867 value: !0 20868 }); 20869 exports.default = void 0; 20870 var menuitemRole = { 20871 abstract: !1, 20872 accessibleNameRequired: !0, 20873 baseConcepts: [], 20874 childrenPresentational: !1, 20875 nameFrom: ["author", "contents"], 20876 prohibitedProps: [], 20877 props: { 20878 "aria-disabled": null, 20879 "aria-expanded": null, 20880 "aria-haspopup": null, 20881 "aria-posinset": null, 20882 "aria-setsize": null 20883 }, 20884 relatedConcepts: [{ 20885 concept: { 20886 name: "MENU_ITEM" 20887 }, 20888 module: "JAPI" 20889 }, { 20890 concept: { 20891 name: "listitem" 20892 }, 20893 module: "ARIA" 20894 }, { 20895 concept: { 20896 name: "option" 20897 }, 20898 module: "ARIA" 20899 }], 20900 requireContextRole: ["group", "menu", "menubar"], 20901 requiredContextRole: ["group", "menu", "menubar"], 20902 requiredOwnedElements: [], 20903 requiredProps: {}, 20904 superClass: [["roletype", "widget", "command"]] 20905 }, _default = exports.default = menuitemRole; 20906 } 20907}); 20908
vendor: 1,071 bytes, lines 20909-20941
20909// ../../node_modules/aria-query/lib/etc/roles/literal/menuitemcheckboxRole.js 20910var require_menuitemcheckboxRole = __commonJS({ 20911 "../../node_modules/aria-query/lib/etc/roles/literal/menuitemcheckboxRole.js"(exports) { 20912 "use strict"; 20913 Object.defineProperty(exports, "__esModule", { 20914 value: !0 20915 }); 20916 exports.default = void 0; 20917 var menuitemcheckboxRole = { 20918 abstract: !1, 20919 accessibleNameRequired: !0, 20920 baseConcepts: [], 20921 childrenPresentational: !0, 20922 nameFrom: ["author", "contents"], 20923 prohibitedProps: [], 20924 props: {}, 20925 relatedConcepts: [{ 20926 concept: { 20927 name: "menuitem" 20928 }, 20929 module: "ARIA" 20930 }], 20931 requireContextRole: ["group", "menu", "menubar"], 20932 requiredContextRole: ["group", "menu", "menubar"], 20933 requiredOwnedElements: [], 20934 requiredProps: { 20935 "aria-checked": null 20936 }, 20937 superClass: [["roletype", "widget", "input", "checkbox"], ["roletype", "widget", "command", "menuitem"]] 20938 }, _default = exports.default = menuitemcheckboxRole; 20939 } 20940}); 20941
vendor: 1,138 bytes, lines 20942-20974
20942// ../../node_modules/aria-query/lib/etc/roles/literal/menuitemradioRole.js 20943var require_menuitemradioRole = __commonJS({ 20944 "../../node_modules/aria-query/lib/etc/roles/literal/menuitemradioRole.js"(exports) { 20945 "use strict"; 20946 Object.defineProperty(exports, "__esModule", { 20947 value: !0 20948 }); 20949 exports.default = void 0; 20950 var menuitemradioRole = { 20951 abstract: !1, 20952 accessibleNameRequired: !0, 20953 baseConcepts: [], 20954 childrenPresentational: !0, 20955 nameFrom: ["author", "contents"], 20956 prohibitedProps: [], 20957 props: {}, 20958 relatedConcepts: [{ 20959 concept: { 20960 name: "menuitem" 20961 }, 20962 module: "ARIA" 20963 }], 20964 requireContextRole: ["group", "menu", "menubar"], 20965 requiredContextRole: ["group", "menu", "menubar"], 20966 requiredOwnedElements: [], 20967 requiredProps: { 20968 "aria-checked": null 20969 }, 20970 superClass: [["roletype", "widget", "input", "checkbox", "menuitemcheckbox"], ["roletype", "widget", "command", "menuitem", "menuitemcheckbox"], ["roletype", "widget", "input", "radio"]] 20971 }, _default = exports.default = menuitemradioRole; 20972 } 20973}); 20974
vendor: 994 bytes, lines 20975-21011
20975// ../../node_modules/aria-query/lib/etc/roles/literal/meterRole.js 20976var require_meterRole = __commonJS({ 20977 "../../node_modules/aria-query/lib/etc/roles/literal/meterRole.js"(exports) { 20978 "use strict"; 20979 Object.defineProperty(exports, "__esModule", { 20980 value: !0 20981 }); 20982 exports.default = void 0; 20983 var meterRole = { 20984 abstract: !1, 20985 accessibleNameRequired: !0, 20986 baseConcepts: [], 20987 childrenPresentational: !0, 20988 nameFrom: ["author"], 20989 prohibitedProps: [], 20990 props: { 20991 "aria-valuetext": null, 20992 "aria-valuemax": "100", 20993 "aria-valuemin": "0" 20994 }, 20995 relatedConcepts: [{ 20996 concept: { 20997 name: "meter" 20998 }, 20999 module: "HTML" 21000 }], 21001 requireContextRole: [], 21002 requiredContextRole: [], 21003 requiredOwnedElements: [], 21004 requiredProps: { 21005 "aria-valuenow": null 21006 }, 21007 superClass: [["roletype", "structure", "range"]] 21008 }, _default = exports.default = meterRole; 21009 } 21010}); 21011
vendor: 894 bytes, lines 21012-21042
21012// ../../node_modules/aria-query/lib/etc/roles/literal/navigationRole.js 21013var require_navigationRole = __commonJS({ 21014 "../../node_modules/aria-query/lib/etc/roles/literal/navigationRole.js"(exports) { 21015 "use strict"; 21016 Object.defineProperty(exports, "__esModule", { 21017 value: !0 21018 }); 21019 exports.default = void 0; 21020 var navigationRole = { 21021 abstract: !1, 21022 accessibleNameRequired: !1, 21023 baseConcepts: [], 21024 childrenPresentational: !1, 21025 nameFrom: ["author"], 21026 prohibitedProps: [], 21027 props: {}, 21028 relatedConcepts: [{ 21029 concept: { 21030 name: "nav" 21031 }, 21032 module: "HTML" 21033 }], 21034 requireContextRole: [], 21035 requiredContextRole: [], 21036 requiredOwnedElements: [], 21037 requiredProps: {}, 21038 superClass: [["roletype", "structure", "section", "landmark"]] 21039 }, _default = exports.default = navigationRole; 21040 } 21041}); 21042
vendor: 724 bytes, lines 21043-21068
21043// ../../node_modules/aria-query/lib/etc/roles/literal/noneRole.js 21044var require_noneRole = __commonJS({ 21045 "../../node_modules/aria-query/lib/etc/roles/literal/noneRole.js"(exports) { 21046 "use strict"; 21047 Object.defineProperty(exports, "__esModule", { 21048 value: !0 21049 }); 21050 exports.default = void 0; 21051 var noneRole = { 21052 abstract: !1, 21053 accessibleNameRequired: !1, 21054 baseConcepts: [], 21055 childrenPresentational: !1, 21056 nameFrom: [], 21057 prohibitedProps: [], 21058 props: {}, 21059 relatedConcepts: [], 21060 requireContextRole: [], 21061 requiredContextRole: [], 21062 requiredOwnedElements: [], 21063 requiredProps: {}, 21064 superClass: [] 21065 }, _default = exports.default = noneRole; 21066 } 21067}); 21068
vendor: 768 bytes, lines 21069-21094
21069// ../../node_modules/aria-query/lib/etc/roles/literal/noteRole.js 21070var require_noteRole = __commonJS({ 21071 "../../node_modules/aria-query/lib/etc/roles/literal/noteRole.js"(exports) { 21072 "use strict"; 21073 Object.defineProperty(exports, "__esModule", { 21074 value: !0 21075 }); 21076 exports.default = void 0; 21077 var noteRole = { 21078 abstract: !1, 21079 accessibleNameRequired: !1, 21080 baseConcepts: [], 21081 childrenPresentational: !1, 21082 nameFrom: ["author"], 21083 prohibitedProps: [], 21084 props: {}, 21085 relatedConcepts: [], 21086 requireContextRole: [], 21087 requiredContextRole: [], 21088 requiredOwnedElements: [], 21089 requiredProps: {}, 21090 superClass: [["roletype", "structure", "section"]] 21091 }, _default = exports.default = noteRole; 21092 } 21093}); 21094
vendor: 1,223 bytes, lines 21095-21142
21095// ../../node_modules/aria-query/lib/etc/roles/literal/optionRole.js 21096var require_optionRole = __commonJS({ 21097 "../../node_modules/aria-query/lib/etc/roles/literal/optionRole.js"(exports) { 21098 "use strict"; 21099 Object.defineProperty(exports, "__esModule", { 21100 value: !0 21101 }); 21102 exports.default = void 0; 21103 var optionRole = { 21104 abstract: !1, 21105 accessibleNameRequired: !0, 21106 baseConcepts: [], 21107 childrenPresentational: !0, 21108 nameFrom: ["author", "contents"], 21109 prohibitedProps: [], 21110 props: { 21111 "aria-checked": null, 21112 "aria-posinset": null, 21113 "aria-setsize": null, 21114 "aria-selected": "false" 21115 }, 21116 relatedConcepts: [{ 21117 concept: { 21118 name: "item" 21119 }, 21120 module: "XForms" 21121 }, { 21122 concept: { 21123 name: "listitem" 21124 }, 21125 module: "ARIA" 21126 }, { 21127 concept: { 21128 name: "option" 21129 }, 21130 module: "HTML" 21131 }], 21132 requireContextRole: [], 21133 requiredContextRole: [], 21134 requiredOwnedElements: [], 21135 requiredProps: { 21136 "aria-selected": "false" 21137 }, 21138 superClass: [["roletype", "widget", "input"]] 21139 }, _default = exports.default = optionRole; 21140 } 21141}); 21142
vendor: 910 bytes, lines 21143-21173
21143// ../../node_modules/aria-query/lib/etc/roles/literal/paragraphRole.js 21144var require_paragraphRole = __commonJS({ 21145 "../../node_modules/aria-query/lib/etc/roles/literal/paragraphRole.js"(exports) { 21146 "use strict"; 21147 Object.defineProperty(exports, "__esModule", { 21148 value: !0 21149 }); 21150 exports.default = void 0; 21151 var paragraphRole = { 21152 abstract: !1, 21153 accessibleNameRequired: !1, 21154 baseConcepts: [], 21155 childrenPresentational: !1, 21156 nameFrom: ["prohibited"], 21157 prohibitedProps: ["aria-label", "aria-labelledby"], 21158 props: {}, 21159 relatedConcepts: [{ 21160 concept: { 21161 name: "p" 21162 }, 21163 module: "HTML" 21164 }], 21165 requireContextRole: [], 21166 requiredContextRole: [], 21167 requiredOwnedElements: [], 21168 requiredProps: {}, 21169 superClass: [["roletype", "structure", "section"]] 21170 }, _default = exports.default = paragraphRole; 21171 } 21172}); 21173
vendor: 1,002 bytes, lines 21174-21208
21174// ../../node_modules/aria-query/lib/etc/roles/literal/presentationRole.js 21175var require_presentationRole = __commonJS({ 21176 "../../node_modules/aria-query/lib/etc/roles/literal/presentationRole.js"(exports) { 21177 "use strict"; 21178 Object.defineProperty(exports, "__esModule", { 21179 value: !0 21180 }); 21181 exports.default = void 0; 21182 var presentationRole = { 21183 abstract: !1, 21184 accessibleNameRequired: !1, 21185 baseConcepts: [], 21186 childrenPresentational: !1, 21187 nameFrom: ["prohibited"], 21188 prohibitedProps: ["aria-label", "aria-labelledby"], 21189 props: {}, 21190 relatedConcepts: [{ 21191 concept: { 21192 attributes: [{ 21193 name: "alt", 21194 value: "" 21195 }], 21196 name: "img" 21197 }, 21198 module: "HTML" 21199 }], 21200 requireContextRole: [], 21201 requiredContextRole: [], 21202 requiredOwnedElements: [], 21203 requiredProps: {}, 21204 superClass: [["roletype", "structure"]] 21205 }, _default = exports.default = presentationRole; 21206 } 21207}); 21208
vendor: 1,041 bytes, lines 21209-21246
21209// ../../node_modules/aria-query/lib/etc/roles/literal/progressbarRole.js 21210var require_progressbarRole = __commonJS({ 21211 "../../node_modules/aria-query/lib/etc/roles/literal/progressbarRole.js"(exports) { 21212 "use strict"; 21213 Object.defineProperty(exports, "__esModule", { 21214 value: !0 21215 }); 21216 exports.default = void 0; 21217 var progressbarRole = { 21218 abstract: !1, 21219 accessibleNameRequired: !0, 21220 baseConcepts: [], 21221 childrenPresentational: !0, 21222 nameFrom: ["author"], 21223 prohibitedProps: [], 21224 props: { 21225 "aria-valuetext": null 21226 }, 21227 relatedConcepts: [{ 21228 concept: { 21229 name: "progress" 21230 }, 21231 module: "HTML" 21232 }, { 21233 concept: { 21234 name: "status" 21235 }, 21236 module: "ARIA" 21237 }], 21238 requireContextRole: [], 21239 requiredContextRole: [], 21240 requiredOwnedElements: [], 21241 requiredProps: {}, 21242 superClass: [["roletype", "structure", "range"], ["roletype", "widget"]] 21243 }, _default = exports.default = progressbarRole; 21244 } 21245}); 21246
vendor: 1,091 bytes, lines 21247-21287
21247// ../../node_modules/aria-query/lib/etc/roles/literal/radioRole.js 21248var require_radioRole = __commonJS({ 21249 "../../node_modules/aria-query/lib/etc/roles/literal/radioRole.js"(exports) { 21250 "use strict"; 21251 Object.defineProperty(exports, "__esModule", { 21252 value: !0 21253 }); 21254 exports.default = void 0; 21255 var radioRole = { 21256 abstract: !1, 21257 accessibleNameRequired: !0, 21258 baseConcepts: [], 21259 childrenPresentational: !0, 21260 nameFrom: ["author", "contents"], 21261 prohibitedProps: [], 21262 props: { 21263 "aria-checked": null, 21264 "aria-posinset": null, 21265 "aria-setsize": null 21266 }, 21267 relatedConcepts: [{ 21268 concept: { 21269 attributes: [{ 21270 name: "type", 21271 value: "radio" 21272 }], 21273 name: "input" 21274 }, 21275 module: "HTML" 21276 }], 21277 requireContextRole: [], 21278 requiredContextRole: [], 21279 requiredOwnedElements: [], 21280 requiredProps: { 21281 "aria-checked": null 21282 }, 21283 superClass: [["roletype", "widget", "input"]] 21284 }, _default = exports.default = radioRole; 21285 } 21286}); 21287
vendor: 1,091 bytes, lines 21288-21323
21288// ../../node_modules/aria-query/lib/etc/roles/literal/radiogroupRole.js 21289var require_radiogroupRole = __commonJS({ 21290 "../../node_modules/aria-query/lib/etc/roles/literal/radiogroupRole.js"(exports) { 21291 "use strict"; 21292 Object.defineProperty(exports, "__esModule", { 21293 value: !0 21294 }); 21295 exports.default = void 0; 21296 var radiogroupRole = { 21297 abstract: !1, 21298 accessibleNameRequired: !0, 21299 baseConcepts: [], 21300 childrenPresentational: !1, 21301 nameFrom: ["author"], 21302 prohibitedProps: [], 21303 props: { 21304 "aria-errormessage": null, 21305 "aria-invalid": null, 21306 "aria-readonly": null, 21307 "aria-required": null 21308 }, 21309 relatedConcepts: [{ 21310 concept: { 21311 name: "list" 21312 }, 21313 module: "ARIA" 21314 }], 21315 requireContextRole: [], 21316 requiredContextRole: [], 21317 requiredOwnedElements: [["radio"]], 21318 requiredProps: {}, 21319 superClass: [["roletype", "widget", "composite", "select"], ["roletype", "structure", "section", "group", "select"]] 21320 }, _default = exports.default = radiogroupRole; 21321 } 21322}); 21323
vendor: 1,285 bytes, lines 21324-21371
21324// ../../node_modules/aria-query/lib/etc/roles/literal/regionRole.js 21325var require_regionRole = __commonJS({ 21326 "../../node_modules/aria-query/lib/etc/roles/literal/regionRole.js"(exports) { 21327 "use strict"; 21328 Object.defineProperty(exports, "__esModule", { 21329 value: !0 21330 }); 21331 exports.default = void 0; 21332 var regionRole = { 21333 abstract: !1, 21334 accessibleNameRequired: !0, 21335 baseConcepts: [], 21336 childrenPresentational: !1, 21337 nameFrom: ["author"], 21338 prohibitedProps: [], 21339 props: {}, 21340 relatedConcepts: [{ 21341 concept: { 21342 attributes: [{ 21343 constraints: ["set"], 21344 name: "aria-label" 21345 }], 21346 name: "section" 21347 }, 21348 module: "HTML" 21349 }, { 21350 concept: { 21351 attributes: [{ 21352 constraints: ["set"], 21353 name: "aria-labelledby" 21354 }], 21355 name: "section" 21356 }, 21357 module: "HTML" 21358 }, { 21359 concept: { 21360 name: "Device Independence Glossart perceivable unit" 21361 } 21362 }], 21363 requireContextRole: [], 21364 requiredContextRole: [], 21365 requiredOwnedElements: [], 21366 requiredProps: {}, 21367 superClass: [["roletype", "structure", "section", "landmark"]] 21368 }, _default = exports.default = regionRole; 21369 } 21370}); 21371
vendor: 1,243 bytes, lines 21372-21410
21372// ../../node_modules/aria-query/lib/etc/roles/literal/rowRole.js 21373var require_rowRole = __commonJS({ 21374 "../../node_modules/aria-query/lib/etc/roles/literal/rowRole.js"(exports) { 21375 "use strict"; 21376 Object.defineProperty(exports, "__esModule", { 21377 value: !0 21378 }); 21379 exports.default = void 0; 21380 var rowRole = { 21381 abstract: !1, 21382 accessibleNameRequired: !1, 21383 baseConcepts: [], 21384 childrenPresentational: !1, 21385 nameFrom: ["author", "contents"], 21386 prohibitedProps: [], 21387 props: { 21388 "aria-colindex": null, 21389 "aria-expanded": null, 21390 "aria-level": null, 21391 "aria-posinset": null, 21392 "aria-rowindex": null, 21393 "aria-selected": null, 21394 "aria-setsize": null 21395 }, 21396 relatedConcepts: [{ 21397 concept: { 21398 name: "tr" 21399 }, 21400 module: "HTML" 21401 }], 21402 requireContextRole: ["grid", "rowgroup", "table", "treegrid"], 21403 requiredContextRole: ["grid", "rowgroup", "table", "treegrid"], 21404 requiredOwnedElements: [["cell"], ["columnheader"], ["gridcell"], ["rowheader"]], 21405 requiredProps: {}, 21406 superClass: [["roletype", "structure", "section", "group"], ["roletype", "widget"]] 21407 }, _default = exports.default = rowRole; 21408 } 21409}); 21410
vendor: 1,112 bytes, lines 21411-21451
21411// ../../node_modules/aria-query/lib/etc/roles/literal/rowgroupRole.js 21412var require_rowgroupRole = __commonJS({ 21413 "../../node_modules/aria-query/lib/etc/roles/literal/rowgroupRole.js"(exports) { 21414 "use strict"; 21415 Object.defineProperty(exports, "__esModule", { 21416 value: !0 21417 }); 21418 exports.default = void 0; 21419 var rowgroupRole = { 21420 abstract: !1, 21421 accessibleNameRequired: !1, 21422 baseConcepts: [], 21423 childrenPresentational: !1, 21424 nameFrom: ["author", "contents"], 21425 prohibitedProps: [], 21426 props: {}, 21427 relatedConcepts: [{ 21428 concept: { 21429 name: "tbody" 21430 }, 21431 module: "HTML" 21432 }, { 21433 concept: { 21434 name: "tfoot" 21435 }, 21436 module: "HTML" 21437 }, { 21438 concept: { 21439 name: "thead" 21440 }, 21441 module: "HTML" 21442 }], 21443 requireContextRole: ["grid", "table", "treegrid"], 21444 requiredContextRole: ["grid", "table", "treegrid"], 21445 requiredOwnedElements: [["row"]], 21446 requiredProps: {}, 21447 superClass: [["roletype", "structure"]] 21448 }, _default = exports.default = rowgroupRole; 21449 } 21450}); 21451
vendor: 1,371 bytes, lines 21452-21497
21452// ../../node_modules/aria-query/lib/etc/roles/literal/rowheaderRole.js 21453var require_rowheaderRole = __commonJS({ 21454 "../../node_modules/aria-query/lib/etc/roles/literal/rowheaderRole.js"(exports) { 21455 "use strict"; 21456 Object.defineProperty(exports, "__esModule", { 21457 value: !0 21458 }); 21459 exports.default = void 0; 21460 var rowheaderRole = { 21461 abstract: !1, 21462 accessibleNameRequired: !0, 21463 baseConcepts: [], 21464 childrenPresentational: !1, 21465 nameFrom: ["author", "contents"], 21466 prohibitedProps: [], 21467 props: { 21468 "aria-sort": null 21469 }, 21470 relatedConcepts: [{ 21471 concept: { 21472 attributes: [{ 21473 name: "scope", 21474 value: "row" 21475 }], 21476 name: "th" 21477 }, 21478 module: "HTML" 21479 }, { 21480 concept: { 21481 attributes: [{ 21482 name: "scope", 21483 value: "rowgroup" 21484 }], 21485 name: "th" 21486 }, 21487 module: "HTML" 21488 }], 21489 requireContextRole: ["row", "rowgroup"], 21490 requiredContextRole: ["row", "rowgroup"], 21491 requiredOwnedElements: [], 21492 requiredProps: {}, 21493 superClass: [["roletype", "structure", "section", "cell"], ["roletype", "structure", "section", "cell", "gridcell"], ["roletype", "widget", "gridcell"], ["roletype", "structure", "sectionhead"]] 21494 }, _default = exports.default = rowheaderRole; 21495 } 21496}); 21497
vendor: 1,054 bytes, lines 21498-21532
21498// ../../node_modules/aria-query/lib/etc/roles/literal/scrollbarRole.js 21499var require_scrollbarRole = __commonJS({ 21500 "../../node_modules/aria-query/lib/etc/roles/literal/scrollbarRole.js"(exports) { 21501 "use strict"; 21502 Object.defineProperty(exports, "__esModule", { 21503 value: !0 21504 }); 21505 exports.default = void 0; 21506 var scrollbarRole = { 21507 abstract: !1, 21508 accessibleNameRequired: !1, 21509 baseConcepts: [], 21510 childrenPresentational: !0, 21511 nameFrom: ["author"], 21512 prohibitedProps: [], 21513 props: { 21514 "aria-disabled": null, 21515 "aria-valuetext": null, 21516 "aria-orientation": "vertical", 21517 "aria-valuemax": "100", 21518 "aria-valuemin": "0" 21519 }, 21520 relatedConcepts: [], 21521 requireContextRole: [], 21522 requiredContextRole: [], 21523 requiredOwnedElements: [], 21524 requiredProps: { 21525 "aria-controls": null, 21526 "aria-valuenow": null 21527 }, 21528 superClass: [["roletype", "structure", "range"], ["roletype", "widget"]] 21529 }, _default = exports.default = scrollbarRole; 21530 } 21531}); 21532
vendor: 790 bytes, lines 21533-21558
21533// ../../node_modules/aria-query/lib/etc/roles/literal/searchRole.js 21534var require_searchRole = __commonJS({ 21535 "../../node_modules/aria-query/lib/etc/roles/literal/searchRole.js"(exports) { 21536 "use strict"; 21537 Object.defineProperty(exports, "__esModule", { 21538 value: !0 21539 }); 21540 exports.default = void 0; 21541 var searchRole = { 21542 abstract: !1, 21543 accessibleNameRequired: !1, 21544 baseConcepts: [], 21545 childrenPresentational: !1, 21546 nameFrom: ["author"], 21547 prohibitedProps: [], 21548 props: {}, 21549 relatedConcepts: [], 21550 requireContextRole: [], 21551 requiredContextRole: [], 21552 requiredOwnedElements: [], 21553 requiredProps: {}, 21554 superClass: [["roletype", "structure", "section", "landmark"]] 21555 }, _default = exports.default = searchRole; 21556 } 21557}); 21558
vendor: 1,116 bytes, lines 21559-21597
21559// ../../node_modules/aria-query/lib/etc/roles/literal/searchboxRole.js 21560var require_searchboxRole = __commonJS({ 21561 "../../node_modules/aria-query/lib/etc/roles/literal/searchboxRole.js"(exports) { 21562 "use strict"; 21563 Object.defineProperty(exports, "__esModule", { 21564 value: !0 21565 }); 21566 exports.default = void 0; 21567 var searchboxRole = { 21568 abstract: !1, 21569 accessibleNameRequired: !0, 21570 baseConcepts: [], 21571 childrenPresentational: !1, 21572 nameFrom: ["author"], 21573 prohibitedProps: [], 21574 props: {}, 21575 relatedConcepts: [{ 21576 concept: { 21577 attributes: [{ 21578 constraints: ["undefined"], 21579 name: "list" 21580 }, { 21581 name: "type", 21582 value: "search" 21583 }], 21584 constraints: ["the list attribute is not set"], 21585 name: "input" 21586 }, 21587 module: "HTML" 21588 }], 21589 requireContextRole: [], 21590 requiredContextRole: [], 21591 requiredOwnedElements: [], 21592 requiredProps: {}, 21593 superClass: [["roletype", "widget", "input", "textbox"]] 21594 }, _default = exports.default = searchboxRole; 21595 } 21596}); 21597
vendor: 1,069 bytes, lines 21598-21635
21598// ../../node_modules/aria-query/lib/etc/roles/literal/separatorRole.js 21599var require_separatorRole = __commonJS({ 21600 "../../node_modules/aria-query/lib/etc/roles/literal/separatorRole.js"(exports) { 21601 "use strict"; 21602 Object.defineProperty(exports, "__esModule", { 21603 value: !0 21604 }); 21605 exports.default = void 0; 21606 var separatorRole = { 21607 abstract: !1, 21608 accessibleNameRequired: !1, 21609 baseConcepts: [], 21610 childrenPresentational: !0, 21611 nameFrom: ["author"], 21612 prohibitedProps: [], 21613 props: { 21614 "aria-disabled": null, 21615 "aria-orientation": "horizontal", 21616 "aria-valuemax": "100", 21617 "aria-valuemin": "0", 21618 "aria-valuenow": null, 21619 "aria-valuetext": null 21620 }, 21621 relatedConcepts: [{ 21622 concept: { 21623 name: "hr" 21624 }, 21625 module: "HTML" 21626 }], 21627 requireContextRole: [], 21628 requiredContextRole: [], 21629 requiredOwnedElements: [], 21630 requiredProps: {}, 21631 superClass: [["roletype", "structure"]] 21632 }, _default = exports.default = separatorRole; 21633 } 21634}); 21635
vendor: 1,293 bytes, lines 21636-21681
21636// ../../node_modules/aria-query/lib/etc/roles/literal/sliderRole.js 21637var require_sliderRole = __commonJS({ 21638 "../../node_modules/aria-query/lib/etc/roles/literal/sliderRole.js"(exports) { 21639 "use strict"; 21640 Object.defineProperty(exports, "__esModule", { 21641 value: !0 21642 }); 21643 exports.default = void 0; 21644 var sliderRole = { 21645 abstract: !1, 21646 accessibleNameRequired: !0, 21647 baseConcepts: [], 21648 childrenPresentational: !0, 21649 nameFrom: ["author"], 21650 prohibitedProps: [], 21651 props: { 21652 "aria-errormessage": null, 21653 "aria-haspopup": null, 21654 "aria-invalid": null, 21655 "aria-readonly": null, 21656 "aria-valuetext": null, 21657 "aria-orientation": "horizontal", 21658 "aria-valuemax": "100", 21659 "aria-valuemin": "0" 21660 }, 21661 relatedConcepts: [{ 21662 concept: { 21663 attributes: [{ 21664 name: "type", 21665 value: "range" 21666 }], 21667 name: "input" 21668 }, 21669 module: "HTML" 21670 }], 21671 requireContextRole: [], 21672 requiredContextRole: [], 21673 requiredOwnedElements: [], 21674 requiredProps: { 21675 "aria-valuenow": null 21676 }, 21677 superClass: [["roletype", "widget", "input"], ["roletype", "structure", "range"]] 21678 }, _default = exports.default = sliderRole; 21679 } 21680}); 21681
vendor: 1,240 bytes, lines 21682-21723
21682// ../../node_modules/aria-query/lib/etc/roles/literal/spinbuttonRole.js 21683var require_spinbuttonRole = __commonJS({ 21684 "../../node_modules/aria-query/lib/etc/roles/literal/spinbuttonRole.js"(exports) { 21685 "use strict"; 21686 Object.defineProperty(exports, "__esModule", { 21687 value: !0 21688 }); 21689 exports.default = void 0; 21690 var spinbuttonRole = { 21691 abstract: !1, 21692 accessibleNameRequired: !0, 21693 baseConcepts: [], 21694 childrenPresentational: !1, 21695 nameFrom: ["author"], 21696 prohibitedProps: [], 21697 props: { 21698 "aria-errormessage": null, 21699 "aria-invalid": null, 21700 "aria-readonly": null, 21701 "aria-required": null, 21702 "aria-valuetext": null, 21703 "aria-valuenow": "0" 21704 }, 21705 relatedConcepts: [{ 21706 concept: { 21707 attributes: [{ 21708 name: "type", 21709 value: "number" 21710 }], 21711 name: "input" 21712 }, 21713 module: "HTML" 21714 }], 21715 requireContextRole: [], 21716 requiredContextRole: [], 21717 requiredOwnedElements: [], 21718 requiredProps: {}, 21719 superClass: [["roletype", "widget", "composite"], ["roletype", "widget", "input"], ["roletype", "structure", "range"]] 21720 }, _default = exports.default = spinbuttonRole; 21721 } 21722}); 21723
vendor: 933 bytes, lines 21724-21757
21724// ../../node_modules/aria-query/lib/etc/roles/literal/statusRole.js 21725var require_statusRole = __commonJS({ 21726 "../../node_modules/aria-query/lib/etc/roles/literal/statusRole.js"(exports) { 21727 "use strict"; 21728 Object.defineProperty(exports, "__esModule", { 21729 value: !0 21730 }); 21731 exports.default = void 0; 21732 var statusRole = { 21733 abstract: !1, 21734 accessibleNameRequired: !1, 21735 baseConcepts: [], 21736 childrenPresentational: !1, 21737 nameFrom: ["author"], 21738 prohibitedProps: [], 21739 props: { 21740 "aria-atomic": "true", 21741 "aria-live": "polite" 21742 }, 21743 relatedConcepts: [{ 21744 concept: { 21745 name: "output" 21746 }, 21747 module: "HTML" 21748 }], 21749 requireContextRole: [], 21750 requiredContextRole: [], 21751 requiredOwnedElements: [], 21752 requiredProps: {}, 21753 superClass: [["roletype", "structure", "section"]] 21754 }, _default = exports.default = statusRole; 21755 } 21756}); 21757
vendor: 900 bytes, lines 21758-21788
21758// ../../node_modules/aria-query/lib/etc/roles/literal/strongRole.js 21759var require_strongRole = __commonJS({ 21760 "../../node_modules/aria-query/lib/etc/roles/literal/strongRole.js"(exports) { 21761 "use strict"; 21762 Object.defineProperty(exports, "__esModule", { 21763 value: !0 21764 }); 21765 exports.default = void 0; 21766 var strongRole = { 21767 abstract: !1, 21768 accessibleNameRequired: !1, 21769 baseConcepts: [], 21770 childrenPresentational: !1, 21771 nameFrom: ["prohibited"], 21772 prohibitedProps: ["aria-label", "aria-labelledby"], 21773 props: {}, 21774 relatedConcepts: [{ 21775 concept: { 21776 name: "strong" 21777 }, 21778 module: "HTML" 21779 }], 21780 requireContextRole: [], 21781 requiredContextRole: [], 21782 requiredOwnedElements: [], 21783 requiredProps: {}, 21784 superClass: [["roletype", "structure", "section"]] 21785 }, _default = exports.default = strongRole; 21786 } 21787}); 21788
vendor: 912 bytes, lines 21789-21819
21789// ../../node_modules/aria-query/lib/etc/roles/literal/subscriptRole.js 21790var require_subscriptRole = __commonJS({ 21791 "../../node_modules/aria-query/lib/etc/roles/literal/subscriptRole.js"(exports) { 21792 "use strict"; 21793 Object.defineProperty(exports, "__esModule", { 21794 value: !0 21795 }); 21796 exports.default = void 0; 21797 var subscriptRole = { 21798 abstract: !1, 21799 accessibleNameRequired: !1, 21800 baseConcepts: [], 21801 childrenPresentational: !1, 21802 nameFrom: ["prohibited"], 21803 prohibitedProps: ["aria-label", "aria-labelledby"], 21804 props: {}, 21805 relatedConcepts: [{ 21806 concept: { 21807 name: "sub" 21808 }, 21809 module: "HTML" 21810 }], 21811 requireContextRole: [], 21812 requiredContextRole: [], 21813 requiredOwnedElements: [], 21814 requiredProps: {}, 21815 superClass: [["roletype", "structure", "section"]] 21816 }, _default = exports.default = subscriptRole; 21817 } 21818}); 21819
vendor: 922 bytes, lines 21820-21850
21820// ../../node_modules/aria-query/lib/etc/roles/literal/superscriptRole.js 21821var require_superscriptRole = __commonJS({ 21822 "../../node_modules/aria-query/lib/etc/roles/literal/superscriptRole.js"(exports) { 21823 "use strict"; 21824 Object.defineProperty(exports, "__esModule", { 21825 value: !0 21826 }); 21827 exports.default = void 0; 21828 var superscriptRole = { 21829 abstract: !1, 21830 accessibleNameRequired: !1, 21831 baseConcepts: [], 21832 childrenPresentational: !1, 21833 nameFrom: ["prohibited"], 21834 prohibitedProps: ["aria-label", "aria-labelledby"], 21835 props: {}, 21836 relatedConcepts: [{ 21837 concept: { 21838 name: "sup" 21839 }, 21840 module: "HTML" 21841 }], 21842 requireContextRole: [], 21843 requiredContextRole: [], 21844 requiredOwnedElements: [], 21845 requiredProps: {}, 21846 superClass: [["roletype", "structure", "section"]] 21847 }, _default = exports.default = superscriptRole; 21848 } 21849}); 21850
vendor: 920 bytes, lines 21851-21883
21851// ../../node_modules/aria-query/lib/etc/roles/literal/switchRole.js 21852var require_switchRole = __commonJS({ 21853 "../../node_modules/aria-query/lib/etc/roles/literal/switchRole.js"(exports) { 21854 "use strict"; 21855 Object.defineProperty(exports, "__esModule", { 21856 value: !0 21857 }); 21858 exports.default = void 0; 21859 var switchRole = { 21860 abstract: !1, 21861 accessibleNameRequired: !0, 21862 baseConcepts: [], 21863 childrenPresentational: !0, 21864 nameFrom: ["author", "contents"], 21865 prohibitedProps: [], 21866 props: {}, 21867 relatedConcepts: [{ 21868 concept: { 21869 name: "button" 21870 }, 21871 module: "ARIA" 21872 }], 21873 requireContextRole: [], 21874 requiredContextRole: [], 21875 requiredOwnedElements: [], 21876 requiredProps: { 21877 "aria-checked": null 21878 }, 21879 superClass: [["roletype", "widget", "input", "checkbox"]] 21880 }, _default = exports.default = switchRole; 21881 } 21882}); 21883
vendor: 1,015 bytes, lines 21884-21916
21884// ../../node_modules/aria-query/lib/etc/roles/literal/tabRole.js 21885var require_tabRole = __commonJS({ 21886 "../../node_modules/aria-query/lib/etc/roles/literal/tabRole.js"(exports) { 21887 "use strict"; 21888 Object.defineProperty(exports, "__esModule", { 21889 value: !0 21890 }); 21891 exports.default = void 0; 21892 var tabRole = { 21893 abstract: !1, 21894 accessibleNameRequired: !1, 21895 baseConcepts: [], 21896 childrenPresentational: !0, 21897 nameFrom: ["author", "contents"], 21898 prohibitedProps: [], 21899 props: { 21900 "aria-disabled": null, 21901 "aria-expanded": null, 21902 "aria-haspopup": null, 21903 "aria-posinset": null, 21904 "aria-setsize": null, 21905 "aria-selected": "false" 21906 }, 21907 relatedConcepts: [], 21908 requireContextRole: ["tablist"], 21909 requiredContextRole: ["tablist"], 21910 requiredOwnedElements: [], 21911 requiredProps: {}, 21912 superClass: [["roletype", "structure", "sectionhead"], ["roletype", "widget"]] 21913 }, _default = exports.default = tabRole; 21914 } 21915}); 21916
vendor: 955 bytes, lines 21917-21950
21917// ../../node_modules/aria-query/lib/etc/roles/literal/tableRole.js 21918var require_tableRole = __commonJS({ 21919 "../../node_modules/aria-query/lib/etc/roles/literal/tableRole.js"(exports) { 21920 "use strict"; 21921 Object.defineProperty(exports, "__esModule", { 21922 value: !0 21923 }); 21924 exports.default = void 0; 21925 var tableRole = { 21926 abstract: !1, 21927 accessibleNameRequired: !0, 21928 baseConcepts: [], 21929 childrenPresentational: !1, 21930 nameFrom: ["author"], 21931 prohibitedProps: [], 21932 props: { 21933 "aria-colcount": null, 21934 "aria-rowcount": null 21935 }, 21936 relatedConcepts: [{ 21937 concept: { 21938 name: "table" 21939 }, 21940 module: "HTML" 21941 }], 21942 requireContextRole: [], 21943 requiredContextRole: [], 21944 requiredOwnedElements: [["row"], ["row", "rowgroup"]], 21945 requiredProps: {}, 21946 superClass: [["roletype", "structure", "section"]] 21947 }, _default = exports.default = tableRole; 21948 } 21949}); 21950
vendor: 990 bytes, lines 21951-21985
21951// ../../node_modules/aria-query/lib/etc/roles/literal/tablistRole.js 21952var require_tablistRole = __commonJS({ 21953 "../../node_modules/aria-query/lib/etc/roles/literal/tablistRole.js"(exports) { 21954 "use strict"; 21955 Object.defineProperty(exports, "__esModule", { 21956 value: !0 21957 }); 21958 exports.default = void 0; 21959 var tablistRole = { 21960 abstract: !1, 21961 accessibleNameRequired: !1, 21962 baseConcepts: [], 21963 childrenPresentational: !1, 21964 nameFrom: ["author"], 21965 prohibitedProps: [], 21966 props: { 21967 "aria-level": null, 21968 "aria-multiselectable": null, 21969 "aria-orientation": "horizontal" 21970 }, 21971 relatedConcepts: [{ 21972 module: "DAISY", 21973 concept: { 21974 name: "guide" 21975 } 21976 }], 21977 requireContextRole: [], 21978 requiredContextRole: [], 21979 requiredOwnedElements: [["tab"]], 21980 requiredProps: {}, 21981 superClass: [["roletype", "widget", "composite"]] 21982 }, _default = exports.default = tablistRole; 21983 } 21984}); 21985
vendor: 788 bytes, lines 21986-22011
21986// ../../node_modules/aria-query/lib/etc/roles/literal/tabpanelRole.js 21987var require_tabpanelRole = __commonJS({ 21988 "../../node_modules/aria-query/lib/etc/roles/literal/tabpanelRole.js"(exports) { 21989 "use strict"; 21990 Object.defineProperty(exports, "__esModule", { 21991 value: !0 21992 }); 21993 exports.default = void 0; 21994 var tabpanelRole = { 21995 abstract: !1, 21996 accessibleNameRequired: !0, 21997 baseConcepts: [], 21998 childrenPresentational: !1, 21999 nameFrom: ["author"], 22000 prohibitedProps: [], 22001 props: {}, 22002 relatedConcepts: [], 22003 requireContextRole: [], 22004 requiredContextRole: [], 22005 requiredOwnedElements: [], 22006 requiredProps: {}, 22007 superClass: [["roletype", "structure", "section"]] 22008 }, _default = exports.default = tabpanelRole; 22009 } 22010}); 22011
vendor: 937 bytes, lines 22012-22047
22012// ../../node_modules/aria-query/lib/etc/roles/literal/termRole.js 22013var require_termRole = __commonJS({ 22014 "../../node_modules/aria-query/lib/etc/roles/literal/termRole.js"(exports) { 22015 "use strict"; 22016 Object.defineProperty(exports, "__esModule", { 22017 value: !0 22018 }); 22019 exports.default = void 0; 22020 var termRole = { 22021 abstract: !1, 22022 accessibleNameRequired: !1, 22023 baseConcepts: [], 22024 childrenPresentational: !1, 22025 nameFrom: ["author"], 22026 prohibitedProps: [], 22027 props: {}, 22028 relatedConcepts: [{ 22029 concept: { 22030 name: "dfn" 22031 }, 22032 module: "HTML" 22033 }, { 22034 concept: { 22035 name: "dt" 22036 }, 22037 module: "HTML" 22038 }], 22039 requireContextRole: [], 22040 requiredContextRole: [], 22041 requiredOwnedElements: [], 22042 requiredProps: {}, 22043 superClass: [["roletype", "structure", "section"]] 22044 }, _default = exports.default = termRole; 22045 } 22046}); 22047
vendor: 2,858 bytes, lines 22048-22158
22048// ../../node_modules/aria-query/lib/etc/roles/literal/textboxRole.js 22049var require_textboxRole = __commonJS({ 22050 "../../node_modules/aria-query/lib/etc/roles/literal/textboxRole.js"(exports) { 22051 "use strict"; 22052 Object.defineProperty(exports, "__esModule", { 22053 value: !0 22054 }); 22055 exports.default = void 0; 22056 var textboxRole = { 22057 abstract: !1, 22058 accessibleNameRequired: !0, 22059 baseConcepts: [], 22060 childrenPresentational: !1, 22061 nameFrom: ["author"], 22062 prohibitedProps: [], 22063 props: { 22064 "aria-activedescendant": null, 22065 "aria-autocomplete": null, 22066 "aria-errormessage": null, 22067 "aria-haspopup": null, 22068 "aria-invalid": null, 22069 "aria-multiline": null, 22070 "aria-placeholder": null, 22071 "aria-readonly": null, 22072 "aria-required": null 22073 }, 22074 relatedConcepts: [{ 22075 concept: { 22076 attributes: [{ 22077 constraints: ["undefined"], 22078 name: "type" 22079 }, { 22080 constraints: ["undefined"], 22081 name: "list" 22082 }], 22083 constraints: ["the list attribute is not set"], 22084 name: "input" 22085 }, 22086 module: "HTML" 22087 }, { 22088 concept: { 22089 attributes: [{ 22090 constraints: ["undefined"], 22091 name: "list" 22092 }, { 22093 name: "type", 22094 value: "email" 22095 }], 22096 constraints: ["the list attribute is not set"], 22097 name: "input" 22098 }, 22099 module: "HTML" 22100 }, { 22101 concept: { 22102 attributes: [{ 22103 constraints: ["undefined"], 22104 name: "list" 22105 }, { 22106 name: "type", 22107 value: "tel" 22108 }], 22109 constraints: ["the list attribute is not set"], 22110 name: "input" 22111 }, 22112 module: "HTML" 22113 }, { 22114 concept: { 22115 attributes: [{ 22116 constraints: ["undefined"], 22117 name: "list" 22118 }, { 22119 name: "type", 22120 value: "text" 22121 }], 22122 constraints: ["the list attribute is not set"], 22123 name: "input" 22124 }, 22125 module: "HTML" 22126 }, { 22127 concept: { 22128 attributes: [{ 22129 constraints: ["undefined"], 22130 name: "list" 22131 }, { 22132 name: "type", 22133 value: "url" 22134 }], 22135 constraints: ["the list attribute is not set"], 22136 name: "input" 22137 }, 22138 module: "HTML" 22139 }, { 22140 concept: { 22141 name: "input" 22142 }, 22143 module: "XForms" 22144 }, { 22145 concept: { 22146 name: "textarea" 22147 }, 22148 module: "HTML" 22149 }], 22150 requireContextRole: [], 22151 requiredContextRole: [], 22152 requiredOwnedElements: [], 22153 requiredProps: {}, 22154 superClass: [["roletype", "widget", "input"]] 22155 }, _default = exports.default = textboxRole; 22156 } 22157}); 22158
vendor: 853 bytes, lines 22159-22189
22159// ../../node_modules/aria-query/lib/etc/roles/literal/timeRole.js 22160var require_timeRole = __commonJS({ 22161 "../../node_modules/aria-query/lib/etc/roles/literal/timeRole.js"(exports) { 22162 "use strict"; 22163 Object.defineProperty(exports, "__esModule", { 22164 value: !0 22165 }); 22166 exports.default = void 0; 22167 var timeRole = { 22168 abstract: !1, 22169 accessibleNameRequired: !1, 22170 baseConcepts: [], 22171 childrenPresentational: !1, 22172 nameFrom: ["author"], 22173 prohibitedProps: [], 22174 props: {}, 22175 relatedConcepts: [{ 22176 concept: { 22177 name: "time" 22178 }, 22179 module: "HTML" 22180 }], 22181 requireContextRole: [], 22182 requiredContextRole: [], 22183 requiredOwnedElements: [], 22184 requiredProps: {}, 22185 superClass: [["roletype", "structure", "section"]] 22186 }, _default = exports.default = timeRole; 22187 } 22188}); 22189
vendor: 783 bytes, lines 22190-22215
22190// ../../node_modules/aria-query/lib/etc/roles/literal/timerRole.js 22191var require_timerRole = __commonJS({ 22192 "../../node_modules/aria-query/lib/etc/roles/literal/timerRole.js"(exports) { 22193 "use strict"; 22194 Object.defineProperty(exports, "__esModule", { 22195 value: !0 22196 }); 22197 exports.default = void 0; 22198 var timerRole = { 22199 abstract: !1, 22200 accessibleNameRequired: !1, 22201 baseConcepts: [], 22202 childrenPresentational: !1, 22203 nameFrom: ["author"], 22204 prohibitedProps: [], 22205 props: {}, 22206 relatedConcepts: [], 22207 requireContextRole: [], 22208 requiredContextRole: [], 22209 requiredOwnedElements: [], 22210 requiredProps: {}, 22211 superClass: [["roletype", "structure", "section", "status"]] 22212 }, _default = exports.default = timerRole; 22213 } 22214}); 22215
vendor: 928 bytes, lines 22216-22248
22216// ../../node_modules/aria-query/lib/etc/roles/literal/toolbarRole.js 22217var require_toolbarRole = __commonJS({ 22218 "../../node_modules/aria-query/lib/etc/roles/literal/toolbarRole.js"(exports) { 22219 "use strict"; 22220 Object.defineProperty(exports, "__esModule", { 22221 value: !0 22222 }); 22223 exports.default = void 0; 22224 var toolbarRole = { 22225 abstract: !1, 22226 accessibleNameRequired: !1, 22227 baseConcepts: [], 22228 childrenPresentational: !1, 22229 nameFrom: ["author"], 22230 prohibitedProps: [], 22231 props: { 22232 "aria-orientation": "horizontal" 22233 }, 22234 relatedConcepts: [{ 22235 concept: { 22236 name: "menubar" 22237 }, 22238 module: "ARIA" 22239 }], 22240 requireContextRole: [], 22241 requiredContextRole: [], 22242 requiredOwnedElements: [], 22243 requiredProps: {}, 22244 superClass: [["roletype", "structure", "section", "group"]] 22245 }, _default = exports.default = toolbarRole; 22246 } 22247}); 22248
vendor: 795 bytes, lines 22249-22274
22249// ../../node_modules/aria-query/lib/etc/roles/literal/tooltipRole.js 22250var require_tooltipRole = __commonJS({ 22251 "../../node_modules/aria-query/lib/etc/roles/literal/tooltipRole.js"(exports) { 22252 "use strict"; 22253 Object.defineProperty(exports, "__esModule", { 22254 value: !0 22255 }); 22256 exports.default = void 0; 22257 var tooltipRole = { 22258 abstract: !1, 22259 accessibleNameRequired: !0, 22260 baseConcepts: [], 22261 childrenPresentational: !1, 22262 nameFrom: ["author", "contents"], 22263 prohibitedProps: [], 22264 props: {}, 22265 relatedConcepts: [], 22266 requireContextRole: [], 22267 requiredContextRole: [], 22268 requiredOwnedElements: [], 22269 requiredProps: {}, 22270 superClass: [["roletype", "structure", "section"]] 22271 }, _default = exports.default = tooltipRole; 22272 } 22273}); 22274
vendor: 1,049 bytes, lines 22275-22306
22275// ../../node_modules/aria-query/lib/etc/roles/literal/treeRole.js 22276var require_treeRole = __commonJS({ 22277 "../../node_modules/aria-query/lib/etc/roles/literal/treeRole.js"(exports) { 22278 "use strict"; 22279 Object.defineProperty(exports, "__esModule", { 22280 value: !0 22281 }); 22282 exports.default = void 0; 22283 var treeRole = { 22284 abstract: !1, 22285 accessibleNameRequired: !0, 22286 baseConcepts: [], 22287 childrenPresentational: !1, 22288 nameFrom: ["author"], 22289 prohibitedProps: [], 22290 props: { 22291 "aria-errormessage": null, 22292 "aria-invalid": null, 22293 "aria-multiselectable": null, 22294 "aria-required": null, 22295 "aria-orientation": "vertical" 22296 }, 22297 relatedConcepts: [], 22298 requireContextRole: [], 22299 requiredContextRole: [], 22300 requiredOwnedElements: [["treeitem", "group"], ["treeitem"]], 22301 requiredProps: {}, 22302 superClass: [["roletype", "widget", "composite", "select"], ["roletype", "structure", "section", "group", "select"]] 22303 }, _default = exports.default = treeRole; 22304 } 22305}); 22306
vendor: 998 bytes, lines 22307-22332
22307// ../../node_modules/aria-query/lib/etc/roles/literal/treegridRole.js 22308var require_treegridRole = __commonJS({ 22309 "../../node_modules/aria-query/lib/etc/roles/literal/treegridRole.js"(exports) { 22310 "use strict"; 22311 Object.defineProperty(exports, "__esModule", { 22312 value: !0 22313 }); 22314 exports.default = void 0; 22315 var treegridRole = { 22316 abstract: !1, 22317 accessibleNameRequired: !0, 22318 baseConcepts: [], 22319 childrenPresentational: !1, 22320 nameFrom: ["author"], 22321 prohibitedProps: [], 22322 props: {}, 22323 relatedConcepts: [], 22324 requireContextRole: [], 22325 requiredContextRole: [], 22326 requiredOwnedElements: [["row"], ["row", "rowgroup"]], 22327 requiredProps: {}, 22328 superClass: [["roletype", "widget", "composite", "grid"], ["roletype", "structure", "section", "table", "grid"], ["roletype", "widget", "composite", "select", "tree"], ["roletype", "structure", "section", "group", "select", "tree"]] 22329 }, _default = exports.default = treegridRole; 22330 } 22331}); 22332
vendor: 990 bytes, lines 22333-22363
22333// ../../node_modules/aria-query/lib/etc/roles/literal/treeitemRole.js 22334var require_treeitemRole = __commonJS({ 22335 "../../node_modules/aria-query/lib/etc/roles/literal/treeitemRole.js"(exports) { 22336 "use strict"; 22337 Object.defineProperty(exports, "__esModule", { 22338 value: !0 22339 }); 22340 exports.default = void 0; 22341 var treeitemRole = { 22342 abstract: !1, 22343 accessibleNameRequired: !0, 22344 baseConcepts: [], 22345 childrenPresentational: !1, 22346 nameFrom: ["author", "contents"], 22347 prohibitedProps: [], 22348 props: { 22349 "aria-expanded": null, 22350 "aria-haspopup": null 22351 }, 22352 relatedConcepts: [], 22353 requireContextRole: ["group", "tree"], 22354 requiredContextRole: ["group", "tree"], 22355 requiredOwnedElements: [], 22356 requiredProps: { 22357 "aria-selected": null 22358 }, 22359 superClass: [["roletype", "structure", "section", "listitem"], ["roletype", "widget", "input", "option"]] 22360 }, _default = exports.default = treeitemRole; 22361 } 22362}); 22363
vendor: 8,585 bytes, lines 22364-22379
22364// ../../node_modules/aria-query/lib/etc/roles/ariaLiteralRoles.js 22365var require_ariaLiteralRoles = __commonJS({ 22366 "../../node_modules/aria-query/lib/etc/roles/ariaLiteralRoles.js"(exports) { 22367 "use strict"; 22368 Object.defineProperty(exports, "__esModule", { 22369 value: !0 22370 }); 22371 exports.default = void 0; 22372 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()); 22373 function _interopRequireDefault(e) { 22374 return e && e.__esModule ? e : { default: e }; 22375 } 22376 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; 22377 } 22378}); 22379
vendor: 1,061 bytes, lines 22380-22416
22380// ../../node_modules/aria-query/lib/etc/roles/dpub/docAbstractRole.js 22381var require_docAbstractRole = __commonJS({ 22382 "../../node_modules/aria-query/lib/etc/roles/dpub/docAbstractRole.js"(exports) { 22383 "use strict"; 22384 Object.defineProperty(exports, "__esModule", { 22385 value: !0 22386 }); 22387 exports.default = void 0; 22388 var docAbstractRole = { 22389 abstract: !1, 22390 accessibleNameRequired: !1, 22391 baseConcepts: [], 22392 childrenPresentational: !1, 22393 nameFrom: ["author"], 22394 prohibitedProps: [], 22395 props: { 22396 "aria-disabled": null, 22397 "aria-errormessage": null, 22398 "aria-expanded": null, 22399 "aria-haspopup": null, 22400 "aria-invalid": null 22401 }, 22402 relatedConcepts: [{ 22403 concept: { 22404 name: "abstract [EPUB-SSV]" 22405 }, 22406 module: "EPUB" 22407 }], 22408 requireContextRole: [], 22409 requiredContextRole: [], 22410 requiredOwnedElements: [], 22411 requiredProps: {}, 22412 superClass: [["roletype", "structure", "section"]] 22413 }, _default = exports.default = docAbstractRole; 22414 } 22415}); 22416
vendor: 1,115 bytes, lines 22417-22453
22417// ../../node_modules/aria-query/lib/etc/roles/dpub/docAcknowledgmentsRole.js 22418var require_docAcknowledgmentsRole = __commonJS({ 22419 "../../node_modules/aria-query/lib/etc/roles/dpub/docAcknowledgmentsRole.js"(exports) { 22420 "use strict"; 22421 Object.defineProperty(exports, "__esModule", { 22422 value: !0 22423 }); 22424 exports.default = void 0; 22425 var docAcknowledgmentsRole = { 22426 abstract: !1, 22427 accessibleNameRequired: !1, 22428 baseConcepts: [], 22429 childrenPresentational: !1, 22430 nameFrom: ["author"], 22431 prohibitedProps: [], 22432 props: { 22433 "aria-disabled": null, 22434 "aria-errormessage": null, 22435 "aria-expanded": null, 22436 "aria-haspopup": null, 22437 "aria-invalid": null 22438 }, 22439 relatedConcepts: [{ 22440 concept: { 22441 name: "acknowledgments [EPUB-SSV]" 22442 }, 22443 module: "EPUB" 22444 }], 22445 requireContextRole: [], 22446 requiredContextRole: [], 22447 requiredOwnedElements: [], 22448 requiredProps: {}, 22449 superClass: [["roletype", "structure", "section", "landmark"]] 22450 }, _default = exports.default = docAcknowledgmentsRole; 22451 } 22452}); 22453
vendor: 1,079 bytes, lines 22454-22490
22454// ../../node_modules/aria-query/lib/etc/roles/dpub/docAfterwordRole.js 22455var require_docAfterwordRole = __commonJS({ 22456 "../../node_modules/aria-query/lib/etc/roles/dpub/docAfterwordRole.js"(exports) { 22457 "use strict"; 22458 Object.defineProperty(exports, "__esModule", { 22459 value: !0 22460 }); 22461 exports.default = void 0; 22462 var docAfterwordRole = { 22463 abstract: !1, 22464 accessibleNameRequired: !1, 22465 baseConcepts: [], 22466 childrenPresentational: !1, 22467 nameFrom: ["author"], 22468 prohibitedProps: [], 22469 props: { 22470 "aria-disabled": null, 22471 "aria-errormessage": null, 22472 "aria-expanded": null, 22473 "aria-haspopup": null, 22474 "aria-invalid": null 22475 }, 22476 relatedConcepts: [{ 22477 concept: { 22478 name: "afterword [EPUB-SSV]" 22479 }, 22480 module: "EPUB" 22481 }], 22482 requireContextRole: [], 22483 requiredContextRole: [], 22484 requiredOwnedElements: [], 22485 requiredProps: {}, 22486 superClass: [["roletype", "structure", "section", "landmark"]] 22487 }, _default = exports.default = docAfterwordRole; 22488 } 22489}); 22490
vendor: 1,073 bytes, lines 22491-22527
22491// ../../node_modules/aria-query/lib/etc/roles/dpub/docAppendixRole.js 22492var require_docAppendixRole = __commonJS({ 22493 "../../node_modules/aria-query/lib/etc/roles/dpub/docAppendixRole.js"(exports) { 22494 "use strict"; 22495 Object.defineProperty(exports, "__esModule", { 22496 value: !0 22497 }); 22498 exports.default = void 0; 22499 var docAppendixRole = { 22500 abstract: !1, 22501 accessibleNameRequired: !1, 22502 baseConcepts: [], 22503 childrenPresentational: !1, 22504 nameFrom: ["author"], 22505 prohibitedProps: [], 22506 props: { 22507 "aria-disabled": null, 22508 "aria-errormessage": null, 22509 "aria-expanded": null, 22510 "aria-haspopup": null, 22511 "aria-invalid": null 22512 }, 22513 relatedConcepts: [{ 22514 concept: { 22515 name: "appendix [EPUB-SSV]" 22516 }, 22517 module: "EPUB" 22518 }], 22519 requireContextRole: [], 22520 requiredContextRole: [], 22521 requiredOwnedElements: [], 22522 requiredProps: {}, 22523 superClass: [["roletype", "structure", "section", "landmark"]] 22524 }, _default = exports.default = docAppendixRole; 22525 } 22526}); 22527
vendor: 985 bytes, lines 22528-22561
22528// ../../node_modules/aria-query/lib/etc/roles/dpub/docBacklinkRole.js 22529var require_docBacklinkRole = __commonJS({ 22530 "../../node_modules/aria-query/lib/etc/roles/dpub/docBacklinkRole.js"(exports) { 22531 "use strict"; 22532 Object.defineProperty(exports, "__esModule", { 22533 value: !0 22534 }); 22535 exports.default = void 0; 22536 var docBacklinkRole = { 22537 abstract: !1, 22538 accessibleNameRequired: !0, 22539 baseConcepts: [], 22540 childrenPresentational: !1, 22541 nameFrom: ["author", "contents"], 22542 prohibitedProps: [], 22543 props: { 22544 "aria-errormessage": null, 22545 "aria-invalid": null 22546 }, 22547 relatedConcepts: [{ 22548 concept: { 22549 name: "referrer [EPUB-SSV]" 22550 }, 22551 module: "EPUB" 22552 }], 22553 requireContextRole: [], 22554 requiredContextRole: [], 22555 requiredOwnedElements: [], 22556 requiredProps: {}, 22557 superClass: [["roletype", "widget", "command", "link"]] 22558 }, _default = exports.default = docBacklinkRole; 22559 } 22560}); 22561
vendor: 1,132 bytes, lines 22562-22598
22562// ../../node_modules/aria-query/lib/etc/roles/dpub/docBiblioentryRole.js 22563var require_docBiblioentryRole = __commonJS({ 22564 "../../node_modules/aria-query/lib/etc/roles/dpub/docBiblioentryRole.js"(exports) { 22565 "use strict"; 22566 Object.defineProperty(exports, "__esModule", { 22567 value: !0 22568 }); 22569 exports.default = void 0; 22570 var docBiblioentryRole = { 22571 abstract: !1, 22572 accessibleNameRequired: !0, 22573 baseConcepts: [], 22574 childrenPresentational: !1, 22575 nameFrom: ["author"], 22576 prohibitedProps: [], 22577 props: { 22578 "aria-disabled": null, 22579 "aria-errormessage": null, 22580 "aria-expanded": null, 22581 "aria-haspopup": null, 22582 "aria-invalid": null 22583 }, 22584 relatedConcepts: [{ 22585 concept: { 22586 name: "EPUB biblioentry [EPUB-SSV]" 22587 }, 22588 module: "EPUB" 22589 }], 22590 requireContextRole: ["doc-bibliography"], 22591 requiredContextRole: ["doc-bibliography"], 22592 requiredOwnedElements: [], 22593 requiredProps: {}, 22594 superClass: [["roletype", "structure", "section", "listitem"]] 22595 }, _default = exports.default = docBiblioentryRole; 22596 } 22597}); 22598
vendor: 1,116 bytes, lines 22599-22635
22599// ../../node_modules/aria-query/lib/etc/roles/dpub/docBibliographyRole.js 22600var require_docBibliographyRole = __commonJS({ 22601 "../../node_modules/aria-query/lib/etc/roles/dpub/docBibliographyRole.js"(exports) { 22602 "use strict"; 22603 Object.defineProperty(exports, "__esModule", { 22604 value: !0 22605 }); 22606 exports.default = void 0; 22607 var docBibliographyRole = { 22608 abstract: !1, 22609 accessibleNameRequired: !1, 22610 baseConcepts: [], 22611 childrenPresentational: !1, 22612 nameFrom: ["author"], 22613 prohibitedProps: [], 22614 props: { 22615 "aria-disabled": null, 22616 "aria-errormessage": null, 22617 "aria-expanded": null, 22618 "aria-haspopup": null, 22619 "aria-invalid": null 22620 }, 22621 relatedConcepts: [{ 22622 concept: { 22623 name: "bibliography [EPUB-SSV]" 22624 }, 22625 module: "EPUB" 22626 }], 22627 requireContextRole: [], 22628 requiredContextRole: [], 22629 requiredOwnedElements: [["doc-biblioentry"]], 22630 requiredProps: {}, 22631 superClass: [["roletype", "structure", "section", "landmark"]] 22632 }, _default = exports.default = docBibliographyRole; 22633 } 22634}); 22635
vendor: 991 bytes, lines 22636-22669
22636// ../../node_modules/aria-query/lib/etc/roles/dpub/docBibliorefRole.js 22637var require_docBibliorefRole = __commonJS({ 22638 "../../node_modules/aria-query/lib/etc/roles/dpub/docBibliorefRole.js"(exports) { 22639 "use strict"; 22640 Object.defineProperty(exports, "__esModule", { 22641 value: !0 22642 }); 22643 exports.default = void 0; 22644 var docBibliorefRole = { 22645 abstract: !1, 22646 accessibleNameRequired: !0, 22647 baseConcepts: [], 22648 childrenPresentational: !1, 22649 nameFrom: ["author", "contents"], 22650 prohibitedProps: [], 22651 props: { 22652 "aria-errormessage": null, 22653 "aria-invalid": null 22654 }, 22655 relatedConcepts: [{ 22656 concept: { 22657 name: "biblioref [EPUB-SSV]" 22658 }, 22659 module: "EPUB" 22660 }], 22661 requireContextRole: [], 22662 requiredContextRole: [], 22663 requiredOwnedElements: [], 22664 requiredProps: {}, 22665 superClass: [["roletype", "widget", "command", "link"]] 22666 }, _default = exports.default = docBibliorefRole; 22667 } 22668}); 22669
vendor: 1,067 bytes, lines 22670-22706
22670// ../../node_modules/aria-query/lib/etc/roles/dpub/docChapterRole.js 22671var require_docChapterRole = __commonJS({ 22672 "../../node_modules/aria-query/lib/etc/roles/dpub/docChapterRole.js"(exports) { 22673 "use strict"; 22674 Object.defineProperty(exports, "__esModule", { 22675 value: !0 22676 }); 22677 exports.default = void 0; 22678 var docChapterRole = { 22679 abstract: !1, 22680 accessibleNameRequired: !1, 22681 baseConcepts: [], 22682 childrenPresentational: !1, 22683 nameFrom: ["author"], 22684 prohibitedProps: [], 22685 props: { 22686 "aria-disabled": null, 22687 "aria-errormessage": null, 22688 "aria-expanded": null, 22689 "aria-haspopup": null, 22690 "aria-invalid": null 22691 }, 22692 relatedConcepts: [{ 22693 concept: { 22694 name: "chapter [EPUB-SSV]" 22695 }, 22696 module: "EPUB" 22697 }], 22698 requireContextRole: [], 22699 requiredContextRole: [], 22700 requiredOwnedElements: [], 22701 requiredProps: {}, 22702 superClass: [["roletype", "structure", "section", "landmark"]] 22703 }, _default = exports.default = docChapterRole; 22704 } 22705}); 22706
vendor: 1,061 bytes, lines 22707-22743
22707// ../../node_modules/aria-query/lib/etc/roles/dpub/docColophonRole.js 22708var require_docColophonRole = __commonJS({ 22709 "../../node_modules/aria-query/lib/etc/roles/dpub/docColophonRole.js"(exports) { 22710 "use strict"; 22711 Object.defineProperty(exports, "__esModule", { 22712 value: !0 22713 }); 22714 exports.default = void 0; 22715 var docColophonRole = { 22716 abstract: !1, 22717 accessibleNameRequired: !1, 22718 baseConcepts: [], 22719 childrenPresentational: !1, 22720 nameFrom: ["author"], 22721 prohibitedProps: [], 22722 props: { 22723 "aria-disabled": null, 22724 "aria-errormessage": null, 22725 "aria-expanded": null, 22726 "aria-haspopup": null, 22727 "aria-invalid": null 22728 }, 22729 relatedConcepts: [{ 22730 concept: { 22731 name: "colophon [EPUB-SSV]" 22732 }, 22733 module: "EPUB" 22734 }], 22735 requireContextRole: [], 22736 requiredContextRole: [], 22737 requiredOwnedElements: [], 22738 requiredProps: {}, 22739 superClass: [["roletype", "structure", "section"]] 22740 }, _default = exports.default = docColophonRole; 22741 } 22742}); 22743
vendor: 1,085 bytes, lines 22744-22780
22744// ../../node_modules/aria-query/lib/etc/roles/dpub/docConclusionRole.js 22745var require_docConclusionRole = __commonJS({ 22746 "../../node_modules/aria-query/lib/etc/roles/dpub/docConclusionRole.js"(exports) { 22747 "use strict"; 22748 Object.defineProperty(exports, "__esModule", { 22749 value: !0 22750 }); 22751 exports.default = void 0; 22752 var docConclusionRole = { 22753 abstract: !1, 22754 accessibleNameRequired: !1, 22755 baseConcepts: [], 22756 childrenPresentational: !1, 22757 nameFrom: ["author"], 22758 prohibitedProps: [], 22759 props: { 22760 "aria-disabled": null, 22761 "aria-errormessage": null, 22762 "aria-expanded": null, 22763 "aria-haspopup": null, 22764 "aria-invalid": null 22765 }, 22766 relatedConcepts: [{ 22767 concept: { 22768 name: "conclusion [EPUB-SSV]" 22769 }, 22770 module: "EPUB" 22771 }], 22772 requireContextRole: [], 22773 requiredContextRole: [], 22774 requiredOwnedElements: [], 22775 requiredProps: {}, 22776 superClass: [["roletype", "structure", "section", "landmark"]] 22777 }, _default = exports.default = docConclusionRole; 22778 } 22779}); 22780
vendor: 1,050 bytes, lines 22781-22817
22781// ../../node_modules/aria-query/lib/etc/roles/dpub/docCoverRole.js 22782var require_docCoverRole = __commonJS({ 22783 "../../node_modules/aria-query/lib/etc/roles/dpub/docCoverRole.js"(exports) { 22784 "use strict"; 22785 Object.defineProperty(exports, "__esModule", { 22786 value: !0 22787 }); 22788 exports.default = void 0; 22789 var docCoverRole = { 22790 abstract: !1, 22791 accessibleNameRequired: !1, 22792 baseConcepts: [], 22793 childrenPresentational: !1, 22794 nameFrom: ["author"], 22795 prohibitedProps: [], 22796 props: { 22797 "aria-disabled": null, 22798 "aria-errormessage": null, 22799 "aria-expanded": null, 22800 "aria-haspopup": null, 22801 "aria-invalid": null 22802 }, 22803 relatedConcepts: [{ 22804 concept: { 22805 name: "cover [EPUB-SSV]" 22806 }, 22807 module: "EPUB" 22808 }], 22809 requireContextRole: [], 22810 requiredContextRole: [], 22811 requiredOwnedElements: [], 22812 requiredProps: {}, 22813 superClass: [["roletype", "structure", "section", "img"]] 22814 }, _default = exports.default = docCoverRole; 22815 } 22816}); 22817
vendor: 1,049 bytes, lines 22818-22854
22818// ../../node_modules/aria-query/lib/etc/roles/dpub/docCreditRole.js 22819var require_docCreditRole = __commonJS({ 22820 "../../node_modules/aria-query/lib/etc/roles/dpub/docCreditRole.js"(exports) { 22821 "use strict"; 22822 Object.defineProperty(exports, "__esModule", { 22823 value: !0 22824 }); 22825 exports.default = void 0; 22826 var docCreditRole = { 22827 abstract: !1, 22828 accessibleNameRequired: !1, 22829 baseConcepts: [], 22830 childrenPresentational: !1, 22831 nameFrom: ["author"], 22832 prohibitedProps: [], 22833 props: { 22834 "aria-disabled": null, 22835 "aria-errormessage": null, 22836 "aria-expanded": null, 22837 "aria-haspopup": null, 22838 "aria-invalid": null 22839 }, 22840 relatedConcepts: [{ 22841 concept: { 22842 name: "credit [EPUB-SSV]" 22843 }, 22844 module: "EPUB" 22845 }], 22846 requireContextRole: [], 22847 requiredContextRole: [], 22848 requiredOwnedElements: [], 22849 requiredProps: {}, 22850 superClass: [["roletype", "structure", "section"]] 22851 }, _default = exports.default = docCreditRole; 22852 } 22853}); 22854
vendor: 1,067 bytes, lines 22855-22891
22855// ../../node_modules/aria-query/lib/etc/roles/dpub/docCreditsRole.js 22856var require_docCreditsRole = __commonJS({ 22857 "../../node_modules/aria-query/lib/etc/roles/dpub/docCreditsRole.js"(exports) { 22858 "use strict"; 22859 Object.defineProperty(exports, "__esModule", { 22860 value: !0 22861 }); 22862 exports.default = void 0; 22863 var docCreditsRole = { 22864 abstract: !1, 22865 accessibleNameRequired: !1, 22866 baseConcepts: [], 22867 childrenPresentational: !1, 22868 nameFrom: ["author"], 22869 prohibitedProps: [], 22870 props: { 22871 "aria-disabled": null, 22872 "aria-errormessage": null, 22873 "aria-expanded": null, 22874 "aria-haspopup": null, 22875 "aria-invalid": null 22876 }, 22877 relatedConcepts: [{ 22878 concept: { 22879 name: "credits [EPUB-SSV]" 22880 }, 22881 module: "EPUB" 22882 }], 22883 requireContextRole: [], 22884 requiredContextRole: [], 22885 requiredOwnedElements: [], 22886 requiredProps: {}, 22887 superClass: [["roletype", "structure", "section", "landmark"]] 22888 }, _default = exports.default = docCreditsRole; 22889 } 22890}); 22891
vendor: 1,073 bytes, lines 22892-22928
22892// ../../node_modules/aria-query/lib/etc/roles/dpub/docDedicationRole.js 22893var require_docDedicationRole = __commonJS({ 22894 "../../node_modules/aria-query/lib/etc/roles/dpub/docDedicationRole.js"(exports) { 22895 "use strict"; 22896 Object.defineProperty(exports, "__esModule", { 22897 value: !0 22898 }); 22899 exports.default = void 0; 22900 var docDedicationRole = { 22901 abstract: !1, 22902 accessibleNameRequired: !1, 22903 baseConcepts: [], 22904 childrenPresentational: !1, 22905 nameFrom: ["author"], 22906 prohibitedProps: [], 22907 props: { 22908 "aria-disabled": null, 22909 "aria-errormessage": null, 22910 "aria-expanded": null, 22911 "aria-haspopup": null, 22912 "aria-invalid": null 22913 }, 22914 relatedConcepts: [{ 22915 concept: { 22916 name: "dedication [EPUB-SSV]" 22917 }, 22918 module: "EPUB" 22919 }], 22920 requireContextRole: [], 22921 requiredContextRole: [], 22922 requiredOwnedElements: [], 22923 requiredProps: {}, 22924 superClass: [["roletype", "structure", "section"]] 22925 }, _default = exports.default = docDedicationRole; 22926 } 22927}); 22928
vendor: 1,096 bytes, lines 22929-22965
22929// ../../node_modules/aria-query/lib/etc/roles/dpub/docEndnoteRole.js 22930var require_docEndnoteRole = __commonJS({ 22931 "../../node_modules/aria-query/lib/etc/roles/dpub/docEndnoteRole.js"(exports) { 22932 "use strict"; 22933 Object.defineProperty(exports, "__esModule", { 22934 value: !0 22935 }); 22936 exports.default = void 0; 22937 var docEndnoteRole = { 22938 abstract: !1, 22939 accessibleNameRequired: !1, 22940 baseConcepts: [], 22941 childrenPresentational: !1, 22942 nameFrom: ["author"], 22943 prohibitedProps: [], 22944 props: { 22945 "aria-disabled": null, 22946 "aria-errormessage": null, 22947 "aria-expanded": null, 22948 "aria-haspopup": null, 22949 "aria-invalid": null 22950 }, 22951 relatedConcepts: [{ 22952 concept: { 22953 name: "rearnote [EPUB-SSV]" 22954 }, 22955 module: "EPUB" 22956 }], 22957 requireContextRole: ["doc-endnotes"], 22958 requiredContextRole: ["doc-endnotes"], 22959 requiredOwnedElements: [], 22960 requiredProps: {}, 22961 superClass: [["roletype", "structure", "section", "listitem"]] 22962 }, _default = exports.default = docEndnoteRole; 22963 } 22964}); 22965
vendor: 1,089 bytes, lines 22966-23002
22966// ../../node_modules/aria-query/lib/etc/roles/dpub/docEndnotesRole.js 22967var require_docEndnotesRole = __commonJS({ 22968 "../../node_modules/aria-query/lib/etc/roles/dpub/docEndnotesRole.js"(exports) { 22969 "use strict"; 22970 Object.defineProperty(exports, "__esModule", { 22971 value: !0 22972 }); 22973 exports.default = void 0; 22974 var docEndnotesRole = { 22975 abstract: !1, 22976 accessibleNameRequired: !1, 22977 baseConcepts: [], 22978 childrenPresentational: !1, 22979 nameFrom: ["author"], 22980 prohibitedProps: [], 22981 props: { 22982 "aria-disabled": null, 22983 "aria-errormessage": null, 22984 "aria-expanded": null, 22985 "aria-haspopup": null, 22986 "aria-invalid": null 22987 }, 22988 relatedConcepts: [{ 22989 concept: { 22990 name: "rearnotes [EPUB-SSV]" 22991 }, 22992 module: "EPUB" 22993 }], 22994 requireContextRole: [], 22995 requiredContextRole: [], 22996 requiredOwnedElements: [["doc-endnote"]], 22997 requiredProps: {}, 22998 superClass: [["roletype", "structure", "section", "landmark"]] 22999 }, _default = exports.default = docEndnotesRole; 23000 } 23001}); 23002
vendor: 1,061 bytes, lines 23003-23039
23003// ../../node_modules/aria-query/lib/etc/roles/dpub/docEpigraphRole.js 23004var require_docEpigraphRole = __commonJS({ 23005 "../../node_modules/aria-query/lib/etc/roles/dpub/docEpigraphRole.js"(exports) { 23006 "use strict"; 23007 Object.defineProperty(exports, "__esModule", { 23008 value: !0 23009 }); 23010 exports.default = void 0; 23011 var docEpigraphRole = { 23012 abstract: !1, 23013 accessibleNameRequired: !1, 23014 baseConcepts: [], 23015 childrenPresentational: !1, 23016 nameFrom: ["author"], 23017 prohibitedProps: [], 23018 props: { 23019 "aria-disabled": null, 23020 "aria-errormessage": null, 23021 "aria-expanded": null, 23022 "aria-haspopup": null, 23023 "aria-invalid": null 23024 }, 23025 relatedConcepts: [{ 23026 concept: { 23027 name: "epigraph [EPUB-SSV]" 23028 }, 23029 module: "EPUB" 23030 }], 23031 requireContextRole: [], 23032 requiredContextRole: [], 23033 requiredOwnedElements: [], 23034 requiredProps: {}, 23035 superClass: [["roletype", "structure", "section"]] 23036 }, _default = exports.default = docEpigraphRole; 23037 } 23038}); 23039
vendor: 1,073 bytes, lines 23040-23076
23040// ../../node_modules/aria-query/lib/etc/roles/dpub/docEpilogueRole.js 23041var require_docEpilogueRole = __commonJS({ 23042 "../../node_modules/aria-query/lib/etc/roles/dpub/docEpilogueRole.js"(exports) { 23043 "use strict"; 23044 Object.defineProperty(exports, "__esModule", { 23045 value: !0 23046 }); 23047 exports.default = void 0; 23048 var docEpilogueRole = { 23049 abstract: !1, 23050 accessibleNameRequired: !1, 23051 baseConcepts: [], 23052 childrenPresentational: !1, 23053 nameFrom: ["author"], 23054 prohibitedProps: [], 23055 props: { 23056 "aria-disabled": null, 23057 "aria-errormessage": null, 23058 "aria-expanded": null, 23059 "aria-haspopup": null, 23060 "aria-invalid": null 23061 }, 23062 relatedConcepts: [{ 23063 concept: { 23064 name: "epilogue [EPUB-SSV]" 23065 }, 23066 module: "EPUB" 23067 }], 23068 requireContextRole: [], 23069 requiredContextRole: [], 23070 requiredOwnedElements: [], 23071 requiredProps: {}, 23072 superClass: [["roletype", "structure", "section", "landmark"]] 23073 }, _default = exports.default = docEpilogueRole; 23074 } 23075}); 23076
vendor: 1,061 bytes, lines 23077-23113
23077// ../../node_modules/aria-query/lib/etc/roles/dpub/docErrataRole.js 23078var require_docErrataRole = __commonJS({ 23079 "../../node_modules/aria-query/lib/etc/roles/dpub/docErrataRole.js"(exports) { 23080 "use strict"; 23081 Object.defineProperty(exports, "__esModule", { 23082 value: !0 23083 }); 23084 exports.default = void 0; 23085 var docErrataRole = { 23086 abstract: !1, 23087 accessibleNameRequired: !1, 23088 baseConcepts: [], 23089 childrenPresentational: !1, 23090 nameFrom: ["author"], 23091 prohibitedProps: [], 23092 props: { 23093 "aria-disabled": null, 23094 "aria-errormessage": null, 23095 "aria-expanded": null, 23096 "aria-haspopup": null, 23097 "aria-invalid": null 23098 }, 23099 relatedConcepts: [{ 23100 concept: { 23101 name: "errata [EPUB-SSV]" 23102 }, 23103 module: "EPUB" 23104 }], 23105 requireContextRole: [], 23106 requiredContextRole: [], 23107 requiredOwnedElements: [], 23108 requiredProps: {}, 23109 superClass: [["roletype", "structure", "section", "landmark"]] 23110 }, _default = exports.default = docErrataRole; 23111 } 23112}); 23113
vendor: 956 bytes, lines 23114-23145
23114// ../../node_modules/aria-query/lib/etc/roles/dpub/docExampleRole.js 23115var require_docExampleRole = __commonJS({ 23116 "../../node_modules/aria-query/lib/etc/roles/dpub/docExampleRole.js"(exports) { 23117 "use strict"; 23118 Object.defineProperty(exports, "__esModule", { 23119 value: !0 23120 }); 23121 exports.default = void 0; 23122 var docExampleRole = { 23123 abstract: !1, 23124 accessibleNameRequired: !1, 23125 baseConcepts: [], 23126 childrenPresentational: !1, 23127 nameFrom: ["author"], 23128 prohibitedProps: [], 23129 props: { 23130 "aria-disabled": null, 23131 "aria-errormessage": null, 23132 "aria-expanded": null, 23133 "aria-haspopup": null, 23134 "aria-invalid": null 23135 }, 23136 relatedConcepts: [], 23137 requireContextRole: [], 23138 requiredContextRole: [], 23139 requiredOwnedElements: [], 23140 requiredProps: {}, 23141 superClass: [["roletype", "structure", "section"]] 23142 }, _default = exports.default = docExampleRole; 23143 } 23144}); 23145
vendor: 1,061 bytes, lines 23146-23182
23146// ../../node_modules/aria-query/lib/etc/roles/dpub/docFootnoteRole.js 23147var require_docFootnoteRole = __commonJS({ 23148 "../../node_modules/aria-query/lib/etc/roles/dpub/docFootnoteRole.js"(exports) { 23149 "use strict"; 23150 Object.defineProperty(exports, "__esModule", { 23151 value: !0 23152 }); 23153 exports.default = void 0; 23154 var docFootnoteRole = { 23155 abstract: !1, 23156 accessibleNameRequired: !1, 23157 baseConcepts: [], 23158 childrenPresentational: !1, 23159 nameFrom: ["author"], 23160 prohibitedProps: [], 23161 props: { 23162 "aria-disabled": null, 23163 "aria-errormessage": null, 23164 "aria-expanded": null, 23165 "aria-haspopup": null, 23166 "aria-invalid": null 23167 }, 23168 relatedConcepts: [{ 23169 concept: { 23170 name: "footnote [EPUB-SSV]" 23171 }, 23172 module: "EPUB" 23173 }], 23174 requireContextRole: [], 23175 requiredContextRole: [], 23176 requiredOwnedElements: [], 23177 requiredProps: {}, 23178 superClass: [["roletype", "structure", "section"]] 23179 }, _default = exports.default = docFootnoteRole; 23180 } 23181}); 23182
vendor: 1,073 bytes, lines 23183-23219
23183// ../../node_modules/aria-query/lib/etc/roles/dpub/docForewordRole.js 23184var require_docForewordRole = __commonJS({ 23185 "../../node_modules/aria-query/lib/etc/roles/dpub/docForewordRole.js"(exports) { 23186 "use strict"; 23187 Object.defineProperty(exports, "__esModule", { 23188 value: !0 23189 }); 23190 exports.default = void 0; 23191 var docForewordRole = { 23192 abstract: !1, 23193 accessibleNameRequired: !1, 23194 baseConcepts: [], 23195 childrenPresentational: !1, 23196 nameFrom: ["author"], 23197 prohibitedProps: [], 23198 props: { 23199 "aria-disabled": null, 23200 "aria-errormessage": null, 23201 "aria-expanded": null, 23202 "aria-haspopup": null, 23203 "aria-invalid": null 23204 }, 23205 relatedConcepts: [{ 23206 concept: { 23207 name: "foreword [EPUB-SSV]" 23208 }, 23209 module: "EPUB" 23210 }], 23211 requireContextRole: [], 23212 requiredContextRole: [], 23213 requiredOwnedElements: [], 23214 requiredProps: {}, 23215 superClass: [["roletype", "structure", "section", "landmark"]] 23216 }, _default = exports.default = docForewordRole; 23217 } 23218}); 23219
vendor: 1,097 bytes, lines 23220-23256
23220// ../../node_modules/aria-query/lib/etc/roles/dpub/docGlossaryRole.js 23221var require_docGlossaryRole = __commonJS({ 23222 "../../node_modules/aria-query/lib/etc/roles/dpub/docGlossaryRole.js"(exports) { 23223 "use strict"; 23224 Object.defineProperty(exports, "__esModule", { 23225 value: !0 23226 }); 23227 exports.default = void 0; 23228 var docGlossaryRole = { 23229 abstract: !1, 23230 accessibleNameRequired: !1, 23231 baseConcepts: [], 23232 childrenPresentational: !1, 23233 nameFrom: ["author"], 23234 prohibitedProps: [], 23235 props: { 23236 "aria-disabled": null, 23237 "aria-errormessage": null, 23238 "aria-expanded": null, 23239 "aria-haspopup": null, 23240 "aria-invalid": null 23241 }, 23242 relatedConcepts: [{ 23243 concept: { 23244 name: "glossary [EPUB-SSV]" 23245 }, 23246 module: "EPUB" 23247 }], 23248 requireContextRole: [], 23249 requiredContextRole: [], 23250 requiredOwnedElements: [["definition"], ["term"]], 23251 requiredProps: {}, 23252 superClass: [["roletype", "structure", "section", "landmark"]] 23253 }, _default = exports.default = docGlossaryRole; 23254 } 23255}); 23256
vendor: 985 bytes, lines 23257-23290
23257// ../../node_modules/aria-query/lib/etc/roles/dpub/docGlossrefRole.js 23258var require_docGlossrefRole = __commonJS({ 23259 "../../node_modules/aria-query/lib/etc/roles/dpub/docGlossrefRole.js"(exports) { 23260 "use strict"; 23261 Object.defineProperty(exports, "__esModule", { 23262 value: !0 23263 }); 23264 exports.default = void 0; 23265 var docGlossrefRole = { 23266 abstract: !1, 23267 accessibleNameRequired: !0, 23268 baseConcepts: [], 23269 childrenPresentational: !1, 23270 nameFrom: ["author", "contents"], 23271 prohibitedProps: [], 23272 props: { 23273 "aria-errormessage": null, 23274 "aria-invalid": null 23275 }, 23276 relatedConcepts: [{ 23277 concept: { 23278 name: "glossref [EPUB-SSV]" 23279 }, 23280 module: "EPUB" 23281 }], 23282 requireContextRole: [], 23283 requiredContextRole: [], 23284 requiredOwnedElements: [], 23285 requiredProps: {}, 23286 superClass: [["roletype", "widget", "command", "link"]] 23287 }, _default = exports.default = docGlossrefRole; 23288 } 23289}); 23290
vendor: 1,069 bytes, lines 23291-23327
23291// ../../node_modules/aria-query/lib/etc/roles/dpub/docIndexRole.js 23292var require_docIndexRole = __commonJS({ 23293 "../../node_modules/aria-query/lib/etc/roles/dpub/docIndexRole.js"(exports) { 23294 "use strict"; 23295 Object.defineProperty(exports, "__esModule", { 23296 value: !0 23297 }); 23298 exports.default = void 0; 23299 var docIndexRole = { 23300 abstract: !1, 23301 accessibleNameRequired: !1, 23302 baseConcepts: [], 23303 childrenPresentational: !1, 23304 nameFrom: ["author"], 23305 prohibitedProps: [], 23306 props: { 23307 "aria-disabled": null, 23308 "aria-errormessage": null, 23309 "aria-expanded": null, 23310 "aria-haspopup": null, 23311 "aria-invalid": null 23312 }, 23313 relatedConcepts: [{ 23314 concept: { 23315 name: "index [EPUB-SSV]" 23316 }, 23317 module: "EPUB" 23318 }], 23319 requireContextRole: [], 23320 requiredContextRole: [], 23321 requiredOwnedElements: [], 23322 requiredProps: {}, 23323 superClass: [["roletype", "structure", "section", "landmark", "navigation"]] 23324 }, _default = exports.default = docIndexRole; 23325 } 23326}); 23327
vendor: 1,097 bytes, lines 23328-23364
23328// ../../node_modules/aria-query/lib/etc/roles/dpub/docIntroductionRole.js 23329var require_docIntroductionRole = __commonJS({ 23330 "../../node_modules/aria-query/lib/etc/roles/dpub/docIntroductionRole.js"(exports) { 23331 "use strict"; 23332 Object.defineProperty(exports, "__esModule", { 23333 value: !0 23334 }); 23335 exports.default = void 0; 23336 var docIntroductionRole = { 23337 abstract: !1, 23338 accessibleNameRequired: !1, 23339 baseConcepts: [], 23340 childrenPresentational: !1, 23341 nameFrom: ["author"], 23342 prohibitedProps: [], 23343 props: { 23344 "aria-disabled": null, 23345 "aria-errormessage": null, 23346 "aria-expanded": null, 23347 "aria-haspopup": null, 23348 "aria-invalid": null 23349 }, 23350 relatedConcepts: [{ 23351 concept: { 23352 name: "introduction [EPUB-SSV]" 23353 }, 23354 module: "EPUB" 23355 }], 23356 requireContextRole: [], 23357 requiredContextRole: [], 23358 requiredOwnedElements: [], 23359 requiredProps: {}, 23360 superClass: [["roletype", "structure", "section", "landmark"]] 23361 }, _default = exports.default = docIntroductionRole; 23362 } 23363}); 23364
vendor: 979 bytes, lines 23365-23398
23365// ../../node_modules/aria-query/lib/etc/roles/dpub/docNoterefRole.js 23366var require_docNoterefRole = __commonJS({ 23367 "../../node_modules/aria-query/lib/etc/roles/dpub/docNoterefRole.js"(exports) { 23368 "use strict"; 23369 Object.defineProperty(exports, "__esModule", { 23370 value: !0 23371 }); 23372 exports.default = void 0; 23373 var docNoterefRole = { 23374 abstract: !1, 23375 accessibleNameRequired: !0, 23376 baseConcepts: [], 23377 childrenPresentational: !1, 23378 nameFrom: ["author", "contents"], 23379 prohibitedProps: [], 23380 props: { 23381 "aria-errormessage": null, 23382 "aria-invalid": null 23383 }, 23384 relatedConcepts: [{ 23385 concept: { 23386 name: "noteref [EPUB-SSV]" 23387 }, 23388 module: "EPUB" 23389 }], 23390 requireContextRole: [], 23391 requiredContextRole: [], 23392 requiredOwnedElements: [], 23393 requiredProps: {}, 23394 superClass: [["roletype", "widget", "command", "link"]] 23395 }, _default = exports.default = docNoterefRole; 23396 } 23397}); 23398
vendor: 1,057 bytes, lines 23399-23435
23399// ../../node_modules/aria-query/lib/etc/roles/dpub/docNoticeRole.js 23400var require_docNoticeRole = __commonJS({ 23401 "../../node_modules/aria-query/lib/etc/roles/dpub/docNoticeRole.js"(exports) { 23402 "use strict"; 23403 Object.defineProperty(exports, "__esModule", { 23404 value: !0 23405 }); 23406 exports.default = void 0; 23407 var docNoticeRole = { 23408 abstract: !1, 23409 accessibleNameRequired: !1, 23410 baseConcepts: [], 23411 childrenPresentational: !1, 23412 nameFrom: ["author"], 23413 prohibitedProps: [], 23414 props: { 23415 "aria-disabled": null, 23416 "aria-errormessage": null, 23417 "aria-expanded": null, 23418 "aria-haspopup": null, 23419 "aria-invalid": null 23420 }, 23421 relatedConcepts: [{ 23422 concept: { 23423 name: "notice [EPUB-SSV]" 23424 }, 23425 module: "EPUB" 23426 }], 23427 requireContextRole: [], 23428 requiredContextRole: [], 23429 requiredOwnedElements: [], 23430 requiredProps: {}, 23431 superClass: [["roletype", "structure", "section", "note"]] 23432 }, _default = exports.default = docNoticeRole; 23433 } 23434}); 23435
vendor: 1,038 bytes, lines 23436-23471
23436// ../../node_modules/aria-query/lib/etc/roles/dpub/docPagebreakRole.js 23437var require_docPagebreakRole = __commonJS({ 23438 "../../node_modules/aria-query/lib/etc/roles/dpub/docPagebreakRole.js"(exports) { 23439 "use strict"; 23440 Object.defineProperty(exports, "__esModule", { 23441 value: !0 23442 }); 23443 exports.default = void 0; 23444 var docPagebreakRole = { 23445 abstract: !1, 23446 accessibleNameRequired: !0, 23447 baseConcepts: [], 23448 childrenPresentational: !0, 23449 nameFrom: ["author"], 23450 prohibitedProps: [], 23451 props: { 23452 "aria-errormessage": null, 23453 "aria-expanded": null, 23454 "aria-haspopup": null, 23455 "aria-invalid": null 23456 }, 23457 relatedConcepts: [{ 23458 concept: { 23459 name: "pagebreak [EPUB-SSV]" 23460 }, 23461 module: "EPUB" 23462 }], 23463 requireContextRole: [], 23464 requiredContextRole: [], 23465 requiredOwnedElements: [], 23466 requiredProps: {}, 23467 superClass: [["roletype", "structure", "separator"]] 23468 }, _default = exports.default = docPagebreakRole; 23469 } 23470}); 23471
vendor: 1,058 bytes, lines 23472-23505
23472// ../../node_modules/aria-query/lib/etc/roles/dpub/docPagefooterRole.js 23473var require_docPagefooterRole = __commonJS({ 23474 "../../node_modules/aria-query/lib/etc/roles/dpub/docPagefooterRole.js"(exports) { 23475 "use strict"; 23476 Object.defineProperty(exports, "__esModule", { 23477 value: !0 23478 }); 23479 exports.default = void 0; 23480 var docPagefooterRole = { 23481 abstract: !1, 23482 accessibleNameRequired: !1, 23483 baseConcepts: [], 23484 childrenPresentational: !1, 23485 nameFrom: ["prohibited"], 23486 prohibitedProps: [], 23487 props: { 23488 "aria-braillelabel": null, 23489 "aria-brailleroledescription": null, 23490 "aria-description": null, 23491 "aria-disabled": null, 23492 "aria-errormessage": null, 23493 "aria-haspopup": null, 23494 "aria-invalid": null 23495 }, 23496 relatedConcepts: [], 23497 requireContextRole: [], 23498 requiredContextRole: [], 23499 requiredOwnedElements: [], 23500 requiredProps: {}, 23501 superClass: [["roletype", "structure", "section"]] 23502 }, _default = exports.default = docPagefooterRole; 23503 } 23504}); 23505
vendor: 1,058 bytes, lines 23506-23539
23506// ../../node_modules/aria-query/lib/etc/roles/dpub/docPageheaderRole.js 23507var require_docPageheaderRole = __commonJS({ 23508 "../../node_modules/aria-query/lib/etc/roles/dpub/docPageheaderRole.js"(exports) { 23509 "use strict"; 23510 Object.defineProperty(exports, "__esModule", { 23511 value: !0 23512 }); 23513 exports.default = void 0; 23514 var docPageheaderRole = { 23515 abstract: !1, 23516 accessibleNameRequired: !1, 23517 baseConcepts: [], 23518 childrenPresentational: !1, 23519 nameFrom: ["prohibited"], 23520 prohibitedProps: [], 23521 props: { 23522 "aria-braillelabel": null, 23523 "aria-brailleroledescription": null, 23524 "aria-description": null, 23525 "aria-disabled": null, 23526 "aria-errormessage": null, 23527 "aria-haspopup": null, 23528 "aria-invalid": null 23529 }, 23530 relatedConcepts: [], 23531 requireContextRole: [], 23532 requiredContextRole: [], 23533 requiredOwnedElements: [], 23534 requiredProps: {}, 23535 superClass: [["roletype", "structure", "section"]] 23536 }, _default = exports.default = docPageheaderRole; 23537 } 23538}); 23539
vendor: 1,088 bytes, lines 23540-23576
23540// ../../node_modules/aria-query/lib/etc/roles/dpub/docPagelistRole.js 23541var require_docPagelistRole = __commonJS({ 23542 "../../node_modules/aria-query/lib/etc/roles/dpub/docPagelistRole.js"(exports) { 23543 "use strict"; 23544 Object.defineProperty(exports, "__esModule", { 23545 value: !0 23546 }); 23547 exports.default = void 0; 23548 var docPagelistRole = { 23549 abstract: !1, 23550 accessibleNameRequired: !1, 23551 baseConcepts: [], 23552 childrenPresentational: !1, 23553 nameFrom: ["author"], 23554 prohibitedProps: [], 23555 props: { 23556 "aria-disabled": null, 23557 "aria-errormessage": null, 23558 "aria-expanded": null, 23559 "aria-haspopup": null, 23560 "aria-invalid": null 23561 }, 23562 relatedConcepts: [{ 23563 concept: { 23564 name: "page-list [EPUB-SSV]" 23565 }, 23566 module: "EPUB" 23567 }], 23568 requireContextRole: [], 23569 requiredContextRole: [], 23570 requiredOwnedElements: [], 23571 requiredProps: {}, 23572 superClass: [["roletype", "structure", "section", "landmark", "navigation"]] 23573 }, _default = exports.default = docPagelistRole; 23574 } 23575}); 23576
vendor: 1,049 bytes, lines 23577-23613
23577// ../../node_modules/aria-query/lib/etc/roles/dpub/docPartRole.js 23578var require_docPartRole = __commonJS({ 23579 "../../node_modules/aria-query/lib/etc/roles/dpub/docPartRole.js"(exports) { 23580 "use strict"; 23581 Object.defineProperty(exports, "__esModule", { 23582 value: !0 23583 }); 23584 exports.default = void 0; 23585 var docPartRole = { 23586 abstract: !1, 23587 accessibleNameRequired: !0, 23588 baseConcepts: [], 23589 childrenPresentational: !1, 23590 nameFrom: ["author"], 23591 prohibitedProps: [], 23592 props: { 23593 "aria-disabled": null, 23594 "aria-errormessage": null, 23595 "aria-expanded": null, 23596 "aria-haspopup": null, 23597 "aria-invalid": null 23598 }, 23599 relatedConcepts: [{ 23600 concept: { 23601 name: "part [EPUB-SSV]" 23602 }, 23603 module: "EPUB" 23604 }], 23605 requireContextRole: [], 23606 requiredContextRole: [], 23607 requiredOwnedElements: [], 23608 requiredProps: {}, 23609 superClass: [["roletype", "structure", "section", "landmark"]] 23610 }, _default = exports.default = docPartRole; 23611 } 23612}); 23613
vendor: 1,067 bytes, lines 23614-23650
23614// ../../node_modules/aria-query/lib/etc/roles/dpub/docPrefaceRole.js 23615var require_docPrefaceRole = __commonJS({ 23616 "../../node_modules/aria-query/lib/etc/roles/dpub/docPrefaceRole.js"(exports) { 23617 "use strict"; 23618 Object.defineProperty(exports, "__esModule", { 23619 value: !0 23620 }); 23621 exports.default = void 0; 23622 var docPrefaceRole = { 23623 abstract: !1, 23624 accessibleNameRequired: !1, 23625 baseConcepts: [], 23626 childrenPresentational: !1, 23627 nameFrom: ["author"], 23628 prohibitedProps: [], 23629 props: { 23630 "aria-disabled": null, 23631 "aria-errormessage": null, 23632 "aria-expanded": null, 23633 "aria-haspopup": null, 23634 "aria-invalid": null 23635 }, 23636 relatedConcepts: [{ 23637 concept: { 23638 name: "preface [EPUB-SSV]" 23639 }, 23640 module: "EPUB" 23641 }], 23642 requireContextRole: [], 23643 requiredContextRole: [], 23644 requiredOwnedElements: [], 23645 requiredProps: {}, 23646 superClass: [["roletype", "structure", "section", "landmark"]] 23647 }, _default = exports.default = docPrefaceRole; 23648 } 23649}); 23650
vendor: 1,073 bytes, lines 23651-23687
23651// ../../node_modules/aria-query/lib/etc/roles/dpub/docPrologueRole.js 23652var require_docPrologueRole = __commonJS({ 23653 "../../node_modules/aria-query/lib/etc/roles/dpub/docPrologueRole.js"(exports) { 23654 "use strict"; 23655 Object.defineProperty(exports, "__esModule", { 23656 value: !0 23657 }); 23658 exports.default = void 0; 23659 var docPrologueRole = { 23660 abstract: !1, 23661 accessibleNameRequired: !1, 23662 baseConcepts: [], 23663 childrenPresentational: !1, 23664 nameFrom: ["author"], 23665 prohibitedProps: [], 23666 props: { 23667 "aria-disabled": null, 23668 "aria-errormessage": null, 23669 "aria-expanded": null, 23670 "aria-haspopup": null, 23671 "aria-invalid": null 23672 }, 23673 relatedConcepts: [{ 23674 concept: { 23675 name: "prologue [EPUB-SSV]" 23676 }, 23677 module: "EPUB" 23678 }], 23679 requireContextRole: [], 23680 requiredContextRole: [], 23681 requiredOwnedElements: [], 23682 requiredProps: {}, 23683 superClass: [["roletype", "structure", "section", "landmark"]] 23684 }, _default = exports.default = docPrologueRole; 23685 } 23686}); 23687
vendor: 875 bytes, lines 23688-23718
23688// ../../node_modules/aria-query/lib/etc/roles/dpub/docPullquoteRole.js 23689var require_docPullquoteRole = __commonJS({ 23690 "../../node_modules/aria-query/lib/etc/roles/dpub/docPullquoteRole.js"(exports) { 23691 "use strict"; 23692 Object.defineProperty(exports, "__esModule", { 23693 value: !0 23694 }); 23695 exports.default = void 0; 23696 var docPullquoteRole = { 23697 abstract: !1, 23698 accessibleNameRequired: !1, 23699 baseConcepts: [], 23700 childrenPresentational: !1, 23701 nameFrom: ["author"], 23702 prohibitedProps: [], 23703 props: {}, 23704 relatedConcepts: [{ 23705 concept: { 23706 name: "pullquote [EPUB-SSV]" 23707 }, 23708 module: "EPUB" 23709 }], 23710 requireContextRole: [], 23711 requiredContextRole: [], 23712 requiredOwnedElements: [], 23713 requiredProps: {}, 23714 superClass: [["none"]] 23715 }, _default = exports.default = docPullquoteRole; 23716 } 23717}); 23718
vendor: 1,031 bytes, lines 23719-23755
23719// ../../node_modules/aria-query/lib/etc/roles/dpub/docQnaRole.js 23720var require_docQnaRole = __commonJS({ 23721 "../../node_modules/aria-query/lib/etc/roles/dpub/docQnaRole.js"(exports) { 23722 "use strict"; 23723 Object.defineProperty(exports, "__esModule", { 23724 value: !0 23725 }); 23726 exports.default = void 0; 23727 var docQnaRole = { 23728 abstract: !1, 23729 accessibleNameRequired: !1, 23730 baseConcepts: [], 23731 childrenPresentational: !1, 23732 nameFrom: ["author"], 23733 prohibitedProps: [], 23734 props: { 23735 "aria-disabled": null, 23736 "aria-errormessage": null, 23737 "aria-expanded": null, 23738 "aria-haspopup": null, 23739 "aria-invalid": null 23740 }, 23741 relatedConcepts: [{ 23742 concept: { 23743 name: "qna [EPUB-SSV]" 23744 }, 23745 module: "EPUB" 23746 }], 23747 requireContextRole: [], 23748 requiredContextRole: [], 23749 requiredOwnedElements: [], 23750 requiredProps: {}, 23751 superClass: [["roletype", "structure", "section"]] 23752 }, _default = exports.default = docQnaRole; 23753 } 23754}); 23755
vendor: 1,065 bytes, lines 23756-23792
23756// ../../node_modules/aria-query/lib/etc/roles/dpub/docSubtitleRole.js 23757var require_docSubtitleRole = __commonJS({ 23758 "../../node_modules/aria-query/lib/etc/roles/dpub/docSubtitleRole.js"(exports) { 23759 "use strict"; 23760 Object.defineProperty(exports, "__esModule", { 23761 value: !0 23762 }); 23763 exports.default = void 0; 23764 var docSubtitleRole = { 23765 abstract: !1, 23766 accessibleNameRequired: !1, 23767 baseConcepts: [], 23768 childrenPresentational: !1, 23769 nameFrom: ["author"], 23770 prohibitedProps: [], 23771 props: { 23772 "aria-disabled": null, 23773 "aria-errormessage": null, 23774 "aria-expanded": null, 23775 "aria-haspopup": null, 23776 "aria-invalid": null 23777 }, 23778 relatedConcepts: [{ 23779 concept: { 23780 name: "subtitle [EPUB-SSV]" 23781 }, 23782 module: "EPUB" 23783 }], 23784 requireContextRole: [], 23785 requiredContextRole: [], 23786 requiredOwnedElements: [], 23787 requiredProps: {}, 23788 superClass: [["roletype", "structure", "sectionhead"]] 23789 }, _default = exports.default = docSubtitleRole; 23790 } 23791}); 23792
vendor: 1,040 bytes, lines 23793-23829
23793// ../../node_modules/aria-query/lib/etc/roles/dpub/docTipRole.js 23794var require_docTipRole = __commonJS({ 23795 "../../node_modules/aria-query/lib/etc/roles/dpub/docTipRole.js"(exports) { 23796 "use strict"; 23797 Object.defineProperty(exports, "__esModule", { 23798 value: !0 23799 }); 23800 exports.default = void 0; 23801 var docTipRole = { 23802 abstract: !1, 23803 accessibleNameRequired: !1, 23804 baseConcepts: [], 23805 childrenPresentational: !1, 23806 nameFrom: ["author"], 23807 prohibitedProps: [], 23808 props: { 23809 "aria-disabled": null, 23810 "aria-errormessage": null, 23811 "aria-expanded": null, 23812 "aria-haspopup": null, 23813 "aria-invalid": null 23814 }, 23815 relatedConcepts: [{ 23816 concept: { 23817 name: "help [EPUB-SSV]" 23818 }, 23819 module: "EPUB" 23820 }], 23821 requireContextRole: [], 23822 requiredContextRole: [], 23823 requiredOwnedElements: [], 23824 requiredProps: {}, 23825 superClass: [["roletype", "structure", "section", "note"]] 23826 }, _default = exports.default = docTipRole; 23827 } 23828}); 23829
vendor: 1,057 bytes, lines 23830-23866
23830// ../../node_modules/aria-query/lib/etc/roles/dpub/docTocRole.js 23831var require_docTocRole = __commonJS({ 23832 "../../node_modules/aria-query/lib/etc/roles/dpub/docTocRole.js"(exports) { 23833 "use strict"; 23834 Object.defineProperty(exports, "__esModule", { 23835 value: !0 23836 }); 23837 exports.default = void 0; 23838 var docTocRole = { 23839 abstract: !1, 23840 accessibleNameRequired: !1, 23841 baseConcepts: [], 23842 childrenPresentational: !1, 23843 nameFrom: ["author"], 23844 prohibitedProps: [], 23845 props: { 23846 "aria-disabled": null, 23847 "aria-errormessage": null, 23848 "aria-expanded": null, 23849 "aria-haspopup": null, 23850 "aria-invalid": null 23851 }, 23852 relatedConcepts: [{ 23853 concept: { 23854 name: "toc [EPUB-SSV]" 23855 }, 23856 module: "EPUB" 23857 }], 23858 requireContextRole: [], 23859 requiredContextRole: [], 23860 requiredOwnedElements: [], 23861 requiredProps: {}, 23862 superClass: [["roletype", "structure", "section", "landmark", "navigation"]] 23863 }, _default = exports.default = docTocRole; 23864 } 23865}); 23866
vendor: 5,137 bytes, lines 23867-23882
23867// ../../node_modules/aria-query/lib/etc/roles/ariaDpubRoles.js 23868var require_ariaDpubRoles = __commonJS({ 23869 "../../node_modules/aria-query/lib/etc/roles/ariaDpubRoles.js"(exports) { 23870 "use strict"; 23871 Object.defineProperty(exports, "__esModule", { 23872 value: !0 23873 }); 23874 exports.default = void 0; 23875 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()); 23876 function _interopRequireDefault(e) { 23877 return e && e.__esModule ? e : { default: e }; 23878 } 23879 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; 23880 } 23881}); 23882
vendor: 1,271 bytes, lines 23883-23929
23883// ../../node_modules/aria-query/lib/etc/roles/graphics/graphicsDocumentRole.js 23884var require_graphicsDocumentRole = __commonJS({ 23885 "../../node_modules/aria-query/lib/etc/roles/graphics/graphicsDocumentRole.js"(exports) { 23886 "use strict"; 23887 Object.defineProperty(exports, "__esModule", { 23888 value: !0 23889 }); 23890 exports.default = void 0; 23891 var graphicsDocumentRole = { 23892 abstract: !1, 23893 accessibleNameRequired: !0, 23894 baseConcepts: [], 23895 childrenPresentational: !1, 23896 nameFrom: ["author"], 23897 prohibitedProps: [], 23898 props: { 23899 "aria-disabled": null, 23900 "aria-errormessage": null, 23901 "aria-expanded": null, 23902 "aria-haspopup": null, 23903 "aria-invalid": null 23904 }, 23905 relatedConcepts: [{ 23906 module: "GRAPHICS", 23907 concept: { 23908 name: "graphics-object" 23909 } 23910 }, { 23911 module: "ARIA", 23912 concept: { 23913 name: "img" 23914 } 23915 }, { 23916 module: "ARIA", 23917 concept: { 23918 name: "article" 23919 } 23920 }], 23921 requireContextRole: [], 23922 requiredContextRole: [], 23923 requiredOwnedElements: [], 23924 requiredProps: {}, 23925 superClass: [["roletype", "structure", "document"]] 23926 }, _default = exports.default = graphicsDocumentRole; 23927 } 23928}); 23929
vendor: 1,352 bytes, lines 23930-23980
23930// ../../node_modules/aria-query/lib/etc/roles/graphics/graphicsObjectRole.js 23931var require_graphicsObjectRole = __commonJS({ 23932 "../../node_modules/aria-query/lib/etc/roles/graphics/graphicsObjectRole.js"(exports) { 23933 "use strict"; 23934 Object.defineProperty(exports, "__esModule", { 23935 value: !0 23936 }); 23937 exports.default = void 0; 23938 var graphicsObjectRole = { 23939 abstract: !1, 23940 accessibleNameRequired: !1, 23941 baseConcepts: [], 23942 childrenPresentational: !1, 23943 nameFrom: ["author", "contents"], 23944 prohibitedProps: [], 23945 props: { 23946 "aria-errormessage": null, 23947 "aria-expanded": null, 23948 "aria-haspopup": null, 23949 "aria-invalid": null 23950 }, 23951 relatedConcepts: [{ 23952 module: "GRAPHICS", 23953 concept: { 23954 name: "graphics-document" 23955 } 23956 }, { 23957 module: "ARIA", 23958 concept: { 23959 name: "group" 23960 } 23961 }, { 23962 module: "ARIA", 23963 concept: { 23964 name: "img" 23965 } 23966 }, { 23967 module: "GRAPHICS", 23968 concept: { 23969 name: "graphics-symbol" 23970 } 23971 }], 23972 requireContextRole: [], 23973 requiredContextRole: [], 23974 requiredOwnedElements: [], 23975 requiredProps: {}, 23976 superClass: [["roletype", "structure", "section", "group"]] 23977 }, _default = exports.default = graphicsObjectRole; 23978 } 23979}); 23980
vendor: 991 bytes, lines 23981-24012
23981// ../../node_modules/aria-query/lib/etc/roles/graphics/graphicsSymbolRole.js 23982var require_graphicsSymbolRole = __commonJS({ 23983 "../../node_modules/aria-query/lib/etc/roles/graphics/graphicsSymbolRole.js"(exports) { 23984 "use strict"; 23985 Object.defineProperty(exports, "__esModule", { 23986 value: !0 23987 }); 23988 exports.default = void 0; 23989 var graphicsSymbolRole = { 23990 abstract: !1, 23991 accessibleNameRequired: !0, 23992 baseConcepts: [], 23993 childrenPresentational: !0, 23994 nameFrom: ["author"], 23995 prohibitedProps: [], 23996 props: { 23997 "aria-disabled": null, 23998 "aria-errormessage": null, 23999 "aria-expanded": null, 24000 "aria-haspopup": null, 24001 "aria-invalid": null 24002 }, 24003 relatedConcepts: [], 24004 requireContextRole: [], 24005 requiredContextRole: [], 24006 requiredOwnedElements: [], 24007 requiredProps: {}, 24008 superClass: [["roletype", "structure", "section", "img"]] 24009 }, _default = exports.default = graphicsSymbolRole; 24010 } 24011}); 24012
vendor: 897 bytes, lines 24013-24028
24013// ../../node_modules/aria-query/lib/etc/roles/ariaGraphicsRoles.js 24014var require_ariaGraphicsRoles = __commonJS({ 24015 "../../node_modules/aria-query/lib/etc/roles/ariaGraphicsRoles.js"(exports) { 24016 "use strict"; 24017 Object.defineProperty(exports, "__esModule", { 24018 value: !0 24019 }); 24020 exports.default = void 0; 24021 var _graphicsDocumentRole = _interopRequireDefault(require_graphicsDocumentRole()), _graphicsObjectRole = _interopRequireDefault(require_graphicsObjectRole()), _graphicsSymbolRole = _interopRequireDefault(require_graphicsSymbolRole()); 24022 function _interopRequireDefault(e) { 24023 return e && e.__esModule ? e : { default: e }; 24024 } 24025 var ariaGraphicsRoles = [["graphics-document", _graphicsDocumentRole.default], ["graphics-object", _graphicsObjectRole.default], ["graphics-symbol", _graphicsSymbolRole.default]], _default = exports.default = ariaGraphicsRoles; 24026 } 24027}); 24028
vendor: 6,561 bytes, lines 24029-24189
24029// ../../node_modules/aria-query/lib/rolesMap.js 24030var require_rolesMap = __commonJS({ 24031 "../../node_modules/aria-query/lib/rolesMap.js"(exports) { 24032 "use strict"; 24033 Object.defineProperty(exports, "__esModule", { 24034 value: !0 24035 }); 24036 exports.default = void 0; 24037 var _ariaAbstractRoles = _interopRequireDefault(require_ariaAbstractRoles()), _ariaLiteralRoles = _interopRequireDefault(require_ariaLiteralRoles()), _ariaDpubRoles = _interopRequireDefault(require_ariaDpubRoles()), _ariaGraphicsRoles = _interopRequireDefault(require_ariaGraphicsRoles()), _iterationDecorator = _interopRequireDefault(require_iterationDecorator()); 24038 function _interopRequireDefault(e) { 24039 return e && e.__esModule ? e : { default: e }; 24040 } 24041 function _createForOfIteratorHelper(r2, e) { 24042 var t = typeof Symbol < "u" && r2[Symbol.iterator] || r2["@@iterator"]; 24043 if (!t) { 24044 if (Array.isArray(r2) || (t = _unsupportedIterableToArray2(r2)) || e && r2 && typeof r2.length == "number") { 24045 t && (r2 = t); 24046 var _n = 0, F = function() { 24047 }; 24048 return { s: F, n: function() { 24049 return _n >= r2.length ? { done: !0 } : { done: !1, value: r2[_n++] }; 24050 }, e: function(r3) { 24051 throw r3; 24052 }, f: F }; 24053 } 24054 throw new TypeError(`Invalid attempt to iterate non-iterable instance. 24055In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`); 24056 } 24057 var o, a3 = !0, u2 = !1; 24058 return { s: function() { 24059 t = t.call(r2); 24060 }, n: function() { 24061 var r3 = t.next(); 24062 return a3 = r3.done, r3; 24063 }, e: function(r3) { 24064 u2 = !0, o = r3; 24065 }, f: function() { 24066 try { 24067 a3 || t.return == null || t.return(); 24068 } finally { 24069 if (u2) throw o; 24070 } 24071 } }; 24072 } 24073 function _slicedToArray(r2, e) { 24074 return _arrayWithHoles(r2) || _iterableToArrayLimit(r2, e) || _unsupportedIterableToArray2(r2, e) || _nonIterableRest(); 24075 } 24076 function _nonIterableRest() { 24077 throw new TypeError(`Invalid attempt to destructure non-iterable instance. 24078In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`); 24079 } 24080 function _unsupportedIterableToArray2(r2, a3) { 24081 if (r2) { 24082 if (typeof r2 == "string") return _arrayLikeToArray2(r2, a3); 24083 var t = {}.toString.call(r2).slice(8, -1); 24084 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; 24085 } 24086 } 24087 function _arrayLikeToArray2(r2, a3) { 24088 (a3 == null || a3 > r2.length) && (a3 = r2.length); 24089 for (var e = 0, n = Array(a3); e < a3; e++) n[e] = r2[e]; 24090 return n; 24091 } 24092 function _iterableToArrayLimit(r2, l) { 24093 var t = r2 == null ? null : typeof Symbol < "u" && r2[Symbol.iterator] || r2["@@iterator"]; 24094 if (t != null) { 24095 var e, n, i, u2, a3 = [], f4 = !0, o = !1; 24096 try { 24097 if (i = (t = t.call(r2)).next, l === 0) { 24098 if (Object(t) !== t) return; 24099 f4 = !1; 24100 } else for (; !(f4 = (e = i.call(t)).done) && (a3.push(e.value), a3.length !== l); f4 = !0) ; 24101 } catch (r3) { 24102 o = !0, n = r3; 24103 } finally { 24104 try { 24105 if (!f4 && t.return != null && (u2 = t.return(), Object(u2) !== u2)) return; 24106 } finally { 24107 if (o) throw n; 24108 } 24109 } 24110 return a3; 24111 } 24112 } 24113 function _arrayWithHoles(r2) { 24114 if (Array.isArray(r2)) return r2; 24115 } 24116 var roles3 = [].concat(_ariaAbstractRoles.default, _ariaLiteralRoles.default, _ariaDpubRoles.default, _ariaGraphicsRoles.default); 24117 roles3.forEach(function(_ref) { 24118 var _ref2 = _slicedToArray(_ref, 2), roleDefinition = _ref2[1], _iterator = _createForOfIteratorHelper(roleDefinition.superClass), _step; 24119 try { 24120 for (_iterator.s(); !(_step = _iterator.n()).done; ) { 24121 var superClassIter = _step.value, _iterator2 = _createForOfIteratorHelper(superClassIter), _step2; 24122 try { 24123 var _loop = function() { 24124 var superClassName = _step2.value, superClassRoleTuple = roles3.filter(function(_ref3) { 24125 var _ref4 = _slicedToArray(_ref3, 1), name = _ref4[0]; 24126 return name === superClassName; 24127 })[0]; 24128 if (superClassRoleTuple) 24129 for (var superClassDefinition = superClassRoleTuple[1], _i = 0, _Object$keys = Object.keys(superClassDefinition.props); _i < _Object$keys.length; _i++) { 24130 var prop = _Object$keys[_i]; 24131 Object.prototype.hasOwnProperty.call(roleDefinition.props, prop) || (roleDefinition.props[prop] = superClassDefinition.props[prop]); 24132 } 24133 }; 24134 for (_iterator2.s(); !(_step2 = _iterator2.n()).done; ) 24135 _loop(); 24136 } catch (err) { 24137 _iterator2.e(err); 24138 } finally { 24139 _iterator2.f(); 24140 } 24141 } 24142 } catch (err) { 24143 _iterator.e(err); 24144 } finally { 24145 _iterator.f(); 24146 } 24147 }); 24148 var rolesMap = { 24149 entries: function() { 24150 return roles3; 24151 }, 24152 forEach: function(fn4) { 24153 var thisArg = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : null, _iterator3 = _createForOfIteratorHelper(roles3), _step3; 24154 try { 24155 for (_iterator3.s(); !(_step3 = _iterator3.n()).done; ) { 24156 var _step3$value = _slicedToArray(_step3.value, 2), key = _step3$value[0], values = _step3$value[1]; 24157 fn4.call(thisArg, values, key, roles3); 24158 } 24159 } catch (err) { 24160 _iterator3.e(err); 24161 } finally { 24162 _iterator3.f(); 24163 } 24164 }, 24165 get: function(key) { 24166 var item = roles3.filter(function(tuple) { 24167 return tuple[0] === key; 24168 })[0]; 24169 return item && item[1]; 24170 }, 24171 has: function(key) { 24172 return !!rolesMap.get(key); 24173 }, 24174 keys: function() { 24175 return roles3.map(function(_ref5) { 24176 var _ref6 = _slicedToArray(_ref5, 1), key = _ref6[0]; 24177 return key; 24178 }); 24179 }, 24180 values: function() { 24181 return roles3.map(function(_ref7) { 24182 var _ref8 = _slicedToArray(_ref7, 2), values2 = _ref8[1]; 24183 return values2; 24184 }); 24185 } 24186 }, _default = exports.default = (0, _iterationDecorator.default)(rolesMap, rolesMap.entries()); 24187 } 24188}); 24189
vendor: 6,358 bytes, lines 24190-24337
24190// ../../node_modules/aria-query/lib/elementRoleMap.js 24191var require_elementRoleMap = __commonJS({ 24192 "../../node_modules/aria-query/lib/elementRoleMap.js"(exports) { 24193 "use strict"; 24194 Object.defineProperty(exports, "__esModule", { 24195 value: !0 24196 }); 24197 exports.default = void 0; 24198 var _iterationDecorator = _interopRequireDefault(require_iterationDecorator()), _rolesMap = _interopRequireDefault(require_rolesMap()); 24199 function _interopRequireDefault(e) { 24200 return e && e.__esModule ? e : { default: e }; 24201 } 24202 function _slicedToArray(r2, e) { 24203 return _arrayWithHoles(r2) || _iterableToArrayLimit(r2, e) || _unsupportedIterableToArray2(r2, e) || _nonIterableRest(); 24204 } 24205 function _nonIterableRest() { 24206 throw new TypeError(`Invalid attempt to destructure non-iterable instance. 24207In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`); 24208 } 24209 function _unsupportedIterableToArray2(r2, a3) { 24210 if (r2) { 24211 if (typeof r2 == "string") return _arrayLikeToArray2(r2, a3); 24212 var t = {}.toString.call(r2).slice(8, -1); 24213 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; 24214 } 24215 } 24216 function _arrayLikeToArray2(r2, a3) { 24217 (a3 == null || a3 > r2.length) && (a3 = r2.length); 24218 for (var e = 0, n = Array(a3); e < a3; e++) n[e] = r2[e]; 24219 return n; 24220 } 24221 function _iterableToArrayLimit(r2, l) { 24222 var t = r2 == null ? null : typeof Symbol < "u" && r2[Symbol.iterator] || r2["@@iterator"]; 24223 if (t != null) { 24224 var e, n, i2, u2, a3 = [], f4 = !0, o = !1; 24225 try { 24226 if (i2 = (t = t.call(r2)).next, l === 0) { 24227 if (Object(t) !== t) return; 24228 f4 = !1; 24229 } else for (; !(f4 = (e = i2.call(t)).done) && (a3.push(e.value), a3.length !== l); f4 = !0) ; 24230 } catch (r3) { 24231 o = !0, n = r3; 24232 } finally { 24233 try { 24234 if (!f4 && t.return != null && (u2 = t.return(), Object(u2) !== u2)) return; 24235 } finally { 24236 if (o) throw n; 24237 } 24238 } 24239 return a3; 24240 } 24241 } 24242 function _arrayWithHoles(r2) { 24243 if (Array.isArray(r2)) return r2; 24244 } 24245 var elementRoles3 = [], keys3 = _rolesMap.default.keys(); 24246 for (i = 0; i < keys3.length; i++) 24247 if (key = keys3[i], role = _rolesMap.default.get(key), role) 24248 for (concepts = [].concat(role.baseConcepts, role.relatedConcepts), _loop = function() { 24249 var relation = concepts[k]; 24250 if (relation.module === "HTML") { 24251 var concept = relation.concept; 24252 if (concept) { 24253 var elementRoleRelation = elementRoles3.filter(function(relation2) { 24254 return ariaRoleRelationConceptEquals(relation2[0], concept); 24255 })[0], roles3; 24256 elementRoleRelation ? roles3 = elementRoleRelation[1] : roles3 = []; 24257 for (var isUnique = !0, _i = 0; _i < roles3.length; _i++) 24258 if (roles3[_i] === key) { 24259 isUnique = !1; 24260 break; 24261 } 24262 isUnique && roles3.push(key), elementRoleRelation || elementRoles3.push([concept, roles3]); 24263 } 24264 } 24265 }, k = 0; k < concepts.length; k++) 24266 _loop(); 24267 var key, role, concepts, _loop, k, i, elementRoleMap = { 24268 entries: function() { 24269 return elementRoles3; 24270 }, 24271 forEach: function(fn4) { 24272 for (var thisArg = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : null, _i2 = 0, _elementRoles = elementRoles3; _i2 < _elementRoles.length; _i2++) { 24273 var _elementRoles$_i = _slicedToArray(_elementRoles[_i2], 2), _key = _elementRoles$_i[0], values = _elementRoles$_i[1]; 24274 fn4.call(thisArg, values, _key, elementRoles3); 24275 } 24276 }, 24277 get: function(key2) { 24278 var item = elementRoles3.filter(function(tuple) { 24279 return key2.name === tuple[0].name && ariaRoleRelationConceptAttributeEquals(key2.attributes, tuple[0].attributes); 24280 })[0]; 24281 return item && item[1]; 24282 }, 24283 has: function(key2) { 24284 return !!elementRoleMap.get(key2); 24285 }, 24286 keys: function() { 24287 return elementRoles3.map(function(_ref) { 24288 var _ref2 = _slicedToArray(_ref, 1), key2 = _ref2[0]; 24289 return key2; 24290 }); 24291 }, 24292 values: function() { 24293 return elementRoles3.map(function(_ref3) { 24294 var _ref4 = _slicedToArray(_ref3, 2), values2 = _ref4[1]; 24295 return values2; 24296 }); 24297 } 24298 }; 24299 function ariaRoleRelationConceptEquals(a3, b) { 24300 return a3.name === b.name && ariaRoleRelationConstraintsEquals(a3.constraints, b.constraints) && ariaRoleRelationConceptAttributeEquals(a3.attributes, b.attributes); 24301 } 24302 function ariaRoleRelationConstraintsEquals(a3, b) { 24303 if (a3 === void 0 && b !== void 0 || a3 !== void 0 && b === void 0) 24304 return !1; 24305 if (a3 !== void 0 && b !== void 0) { 24306 if (a3.length !== b.length) 24307 return !1; 24308 for (var _i3 = 0; _i3 < a3.length; _i3++) 24309 if (a3[_i3] !== b[_i3]) 24310 return !1; 24311 } 24312 return !0; 24313 } 24314 function ariaRoleRelationConceptAttributeEquals(a3, b) { 24315 if (a3 === void 0 && b !== void 0 || a3 !== void 0 && b === void 0) 24316 return !1; 24317 if (a3 !== void 0 && b !== void 0) { 24318 if (a3.length !== b.length) 24319 return !1; 24320 for (var _i4 = 0; _i4 < a3.length; _i4++) { 24321 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) 24322 return !1; 24323 if (a3[_i4].constraints !== void 0 && b[_i4].constraints !== void 0) { 24324 if (a3[_i4].constraints.length !== b[_i4].constraints.length) 24325 return !1; 24326 for (var j = 0; j < a3[_i4].constraints.length; j++) 24327 if (a3[_i4].constraints[j] !== b[_i4].constraints[j]) 24328 return !1; 24329 } 24330 } 24331 } 24332 return !0; 24333 } 24334 var _default = exports.default = (0, _iterationDecorator.default)(elementRoleMap, elementRoleMap.entries()); 24335 } 24336}); 24337
vendor: 4,177 bytes, lines 24338-24434
24338// ../../node_modules/aria-query/lib/roleElementMap.js 24339var require_roleElementMap = __commonJS({ 24340 "../../node_modules/aria-query/lib/roleElementMap.js"(exports) { 24341 "use strict"; 24342 Object.defineProperty(exports, "__esModule", { 24343 value: !0 24344 }); 24345 exports.default = void 0; 24346 var _iterationDecorator = _interopRequireDefault(require_iterationDecorator()), _rolesMap = _interopRequireDefault(require_rolesMap()); 24347 function _interopRequireDefault(e) { 24348 return e && e.__esModule ? e : { default: e }; 24349 } 24350 function _slicedToArray(r2, e) { 24351 return _arrayWithHoles(r2) || _iterableToArrayLimit(r2, e) || _unsupportedIterableToArray2(r2, e) || _nonIterableRest(); 24352 } 24353 function _nonIterableRest() { 24354 throw new TypeError(`Invalid attempt to destructure non-iterable instance. 24355In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`); 24356 } 24357 function _unsupportedIterableToArray2(r2, a3) { 24358 if (r2) { 24359 if (typeof r2 == "string") return _arrayLikeToArray2(r2, a3); 24360 var t = {}.toString.call(r2).slice(8, -1); 24361 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; 24362 } 24363 } 24364 function _arrayLikeToArray2(r2, a3) { 24365 (a3 == null || a3 > r2.length) && (a3 = r2.length); 24366 for (var e = 0, n = Array(a3); e < a3; e++) n[e] = r2[e]; 24367 return n; 24368 } 24369 function _iterableToArrayLimit(r2, l) { 24370 var t = r2 == null ? null : typeof Symbol < "u" && r2[Symbol.iterator] || r2["@@iterator"]; 24371 if (t != null) { 24372 var e, n, i2, u2, a3 = [], f4 = !0, o = !1; 24373 try { 24374 if (i2 = (t = t.call(r2)).next, l === 0) { 24375 if (Object(t) !== t) return; 24376 f4 = !1; 24377 } else for (; !(f4 = (e = i2.call(t)).done) && (a3.push(e.value), a3.length !== l); f4 = !0) ; 24378 } catch (r3) { 24379 o = !0, n = r3; 24380 } finally { 24381 try { 24382 if (!f4 && t.return != null && (u2 = t.return(), Object(u2) !== u2)) return; 24383 } finally { 24384 if (o) throw n; 24385 } 24386 } 24387 return a3; 24388 } 24389 } 24390 function _arrayWithHoles(r2) { 24391 if (Array.isArray(r2)) return r2; 24392 } 24393 var roleElement = [], keys3 = _rolesMap.default.keys(); 24394 for (i = 0; i < keys3.length; i++) 24395 if (key = keys3[i], role = _rolesMap.default.get(key), relationConcepts = [], role) { 24396 for (concepts = [].concat(role.baseConcepts, role.relatedConcepts), k = 0; k < concepts.length; k++) 24397 relation = concepts[k], relation.module === "HTML" && (concept = relation.concept, concept != null && relationConcepts.push(concept)); 24398 relationConcepts.length > 0 && roleElement.push([key, relationConcepts]); 24399 } 24400 var key, role, relationConcepts, concepts, relation, concept, k, i, roleElementMap = { 24401 entries: function() { 24402 return roleElement; 24403 }, 24404 forEach: function(fn4) { 24405 for (var thisArg = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : null, _i = 0, _roleElement = roleElement; _i < _roleElement.length; _i++) { 24406 var _roleElement$_i = _slicedToArray(_roleElement[_i], 2), _key = _roleElement$_i[0], values = _roleElement$_i[1]; 24407 fn4.call(thisArg, values, _key, roleElement); 24408 } 24409 }, 24410 get: function(key2) { 24411 var item = roleElement.filter(function(tuple) { 24412 return tuple[0] === key2; 24413 })[0]; 24414 return item && item[1]; 24415 }, 24416 has: function(key2) { 24417 return !!roleElementMap.get(key2); 24418 }, 24419 keys: function() { 24420 return roleElement.map(function(_ref) { 24421 var _ref2 = _slicedToArray(_ref, 1), key2 = _ref2[0]; 24422 return key2; 24423 }); 24424 }, 24425 values: function() { 24426 return roleElement.map(function(_ref3) { 24427 var _ref4 = _slicedToArray(_ref3, 2), values2 = _ref4[1]; 24428 return values2; 24429 }); 24430 } 24431 }, _default = exports.default = (0, _iterationDecorator.default)(roleElementMap, roleElementMap.entries()); 24432 } 24433}); 24434
vendor: 1,019 bytes, lines 24435-24450
24435// ../../node_modules/aria-query/lib/index.js 24436var require_lib2 = __commonJS({ 24437 "../../node_modules/aria-query/lib/index.js"(exports) { 24438 "use strict"; 24439 Object.defineProperty(exports, "__esModule", { 24440 value: !0 24441 }); 24442 exports.roles = exports.roleElements = exports.elementRoles = exports.dom = exports.aria = void 0; 24443 var _ariaPropsMap = _interopRequireDefault(require_ariaPropsMap()), _domMap = _interopRequireDefault(require_domMap()), _rolesMap = _interopRequireDefault(require_rolesMap()), _elementRoleMap = _interopRequireDefault(require_elementRoleMap()), _roleElementMap = _interopRequireDefault(require_roleElementMap()); 24444 function _interopRequireDefault(e) { 24445 return e && e.__esModule ? e : { default: e }; 24446 } 24447 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; 24448 } 24449}); 24450
vendor: 898 bytes, lines 24451-24461
24451// ../../node_modules/picocolors/picocolors.browser.js 24452var require_picocolors_browser = __commonJS({ 24453 "../../node_modules/picocolors/picocolors.browser.js"(exports, module2) { 24454 var x = String, create4 = function() { 24455 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 }; 24456 }; 24457 module2.exports = create4(); 24458 module2.exports.createColors = create4; 24459 } 24460}); 24461
vendor: 2,402 bytes, lines 24462-24510
24462// ../../node_modules/css.escape/css.escape.js 24463var require_css_escape = __commonJS({ 24464 "../../node_modules/css.escape/css.escape.js"(exports, module2) { 24465 (function(root2, factory) { 24466 typeof exports == "object" ? module2.exports = factory(root2) : typeof define == "function" && define.amd ? define([], factory.bind(root2, root2)) : factory(root2); 24467 })(typeof global < "u" ? global : exports, function(root2) { 24468 if (root2.CSS && root2.CSS.escape) 24469 return root2.CSS.escape; 24470 var cssEscape = function(value) { 24471 if (arguments.length == 0) 24472 throw new TypeError("`CSS.escape` requires an argument."); 24473 for (var string = String(value), length2 = string.length, index4 = -1, codeUnit, result = "", firstCodeUnit = string.charCodeAt(0); ++index4 < length2; ) { 24474 if (codeUnit = string.charCodeAt(index4), codeUnit == 0) { 24475 result += "\uFFFD"; 24476 continue; 24477 } 24478 if ( 24479 // If the character is in the range [\1-\1F] (U+0001 to U+001F) or is 24480 // U+007F, [â¦] 24481 codeUnit >= 1 && codeUnit <= 31 || codeUnit == 127 || // If the character is the first character and is in the range [0-9] 24482 // (U+0030 to U+0039), [â¦] 24483 index4 == 0 && codeUnit >= 48 && codeUnit <= 57 || // If the character is the second character and is in the range [0-9] 24484 // (U+0030 to U+0039) and the first character is a `-` (U+002D), [â¦] 24485 index4 == 1 && codeUnit >= 48 && codeUnit <= 57 && firstCodeUnit == 45 24486 ) { 24487 result += "\\" + codeUnit.toString(16) + " "; 24488 continue; 24489 } 24490 if ( 24491 // If the character is the first character and is a `-` (U+002D), and 24492 // there is no second character, [â¦] 24493 index4 == 0 && length2 == 1 && codeUnit == 45 24494 ) { 24495 result += "\\" + string.charAt(index4); 24496 continue; 24497 } 24498 if (codeUnit >= 128 || codeUnit == 45 || codeUnit == 95 || codeUnit >= 48 && codeUnit <= 57 || codeUnit >= 65 && codeUnit <= 90 || codeUnit >= 97 && codeUnit <= 122) { 24499 result += string.charAt(index4); 24500 continue; 24501 } 24502 result += "\\" + string.charAt(index4); 24503 } 24504 return result; 24505 }; 24506 return root2.CSS || (root2.CSS = {}), root2.CSS.escape = cssEscape, cssEscape; 24507 }); 24508 } 24509}); 24510
vendor: 4,208 bytes, lines 24511-24617
24511// ../../node_modules/@testing-library/dom/node_modules/ansi-styles/index.js 24512var require_ansi_styles = __commonJS({ 24513 "../../node_modules/@testing-library/dom/node_modules/ansi-styles/index.js"(exports, module2) { 24514 "use strict"; 24515 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`; 24516 function assembleStyles() { 24517 let codes = /* @__PURE__ */ new Map(), styles4 = { 24518 modifier: { 24519 reset: [0, 0], 24520 // 21 isn't widely supported and 22 does the same thing 24521 bold: [1, 22], 24522 dim: [2, 22], 24523 italic: [3, 23], 24524 underline: [4, 24], 24525 overline: [53, 55], 24526 inverse: [7, 27], 24527 hidden: [8, 28], 24528 strikethrough: [9, 29] 24529 }, 24530 color: { 24531 black: [30, 39], 24532 red: [31, 39], 24533 green: [32, 39], 24534 yellow: [33, 39], 24535 blue: [34, 39], 24536 magenta: [35, 39], 24537 cyan: [36, 39], 24538 white: [37, 39], 24539 // Bright color 24540 blackBright: [90, 39], 24541 redBright: [91, 39], 24542 greenBright: [92, 39], 24543 yellowBright: [93, 39], 24544 blueBright: [94, 39], 24545 magentaBright: [95, 39], 24546 cyanBright: [96, 39], 24547 whiteBright: [97, 39] 24548 }, 24549 bgColor: { 24550 bgBlack: [40, 49], 24551 bgRed: [41, 49], 24552 bgGreen: [42, 49], 24553 bgYellow: [43, 49], 24554 bgBlue: [44, 49], 24555 bgMagenta: [45, 49], 24556 bgCyan: [46, 49], 24557 bgWhite: [47, 49], 24558 // Bright color 24559 bgBlackBright: [100, 49], 24560 bgRedBright: [101, 49], 24561 bgGreenBright: [102, 49], 24562 bgYellowBright: [103, 49], 24563 bgBlueBright: [104, 49], 24564 bgMagentaBright: [105, 49], 24565 bgCyanBright: [106, 49], 24566 bgWhiteBright: [107, 49] 24567 } 24568 }; 24569 styles4.color.gray = styles4.color.blackBright, styles4.bgColor.bgGray = styles4.bgColor.bgBlackBright, styles4.color.grey = styles4.color.blackBright, styles4.bgColor.bgGrey = styles4.bgColor.bgBlackBright; 24570 for (let [groupName, group] of Object.entries(styles4)) { 24571 for (let [styleName, style] of Object.entries(group)) 24572 styles4[styleName] = { 24573 open: `\x1B[${style[0]}m`, 24574 close: `\x1B[${style[1]}m` 24575 }, group[styleName] = styles4[styleName], codes.set(style[0], style[1]); 24576 Object.defineProperty(styles4, groupName, { 24577 value: group, 24578 enumerable: !1 24579 }); 24580 } 24581 return Object.defineProperty(styles4, "codes", { 24582 value: codes, 24583 enumerable: !1 24584 }), 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, { 24585 rgbToAnsi256: { 24586 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), 24587 enumerable: !1 24588 }, 24589 hexToRgb: { 24590 value: (hex3) => { 24591 let matches4 = /(?<colorString>[a-f\d]{6}|[a-f\d]{3})/i.exec(hex3.toString(16)); 24592 if (!matches4) 24593 return [0, 0, 0]; 24594 let { colorString } = matches4.groups; 24595 colorString.length === 3 && (colorString = colorString.split("").map((character2) => character2 + character2).join("")); 24596 let integer = Number.parseInt(colorString, 16); 24597 return [ 24598 integer >> 16 & 255, 24599 integer >> 8 & 255, 24600 integer & 255 24601 ]; 24602 }, 24603 enumerable: !1 24604 }, 24605 hexToAnsi256: { 24606 value: (hex3) => styles4.rgbToAnsi256(...styles4.hexToRgb(hex3)), 24607 enumerable: !1 24608 } 24609 }), styles4; 24610 } 24611 Object.defineProperty(module2, "exports", { 24612 enumerable: !0, 24613 get: assembleStyles 24614 }); 24615 } 24616}); 24617
vendor: 3,746 bytes, lines 24618-24697
24618// ../../node_modules/@testing-library/dom/node_modules/pretty-format/build/collections.js 24619var require_collections = __commonJS({ 24620 "../../node_modules/@testing-library/dom/node_modules/pretty-format/build/collections.js"(exports) { 24621 "use strict"; 24622 Object.defineProperty(exports, "__esModule", { 24623 value: !0 24624 }); 24625 exports.printIteratorEntries = printIteratorEntries2; 24626 exports.printIteratorValues = printIteratorValues2; 24627 exports.printListItems = printListItems2; 24628 exports.printObjectProperties = printObjectProperties2; 24629 var getKeysOfEnumerableProperties2 = (object, compareKeys) => { 24630 let keys3 = Object.keys(object).sort(compareKeys); 24631 return Object.getOwnPropertySymbols && Object.getOwnPropertySymbols(object).forEach((symbol) => { 24632 Object.getOwnPropertyDescriptor(object, symbol).enumerable && keys3.push(symbol); 24633 }), keys3; 24634 }; 24635 function printIteratorEntries2(iterator, config4, indentation, depth, refs, printer2, separator = ": ") { 24636 let result = "", current = iterator.next(); 24637 if (!current.done) { 24638 result += config4.spacingOuter; 24639 let indentationNext = indentation + config4.indent; 24640 for (; !current.done; ) { 24641 let name = printer2( 24642 current.value[0], 24643 config4, 24644 indentationNext, 24645 depth, 24646 refs 24647 ), value = printer2( 24648 current.value[1], 24649 config4, 24650 indentationNext, 24651 depth, 24652 refs 24653 ); 24654 result += indentationNext + name + separator + value, current = iterator.next(), current.done ? config4.min || (result += ",") : result += "," + config4.spacingInner; 24655 } 24656 result += config4.spacingOuter + indentation; 24657 } 24658 return result; 24659 } 24660 function printIteratorValues2(iterator, config4, indentation, depth, refs, printer2) { 24661 let result = "", current = iterator.next(); 24662 if (!current.done) { 24663 result += config4.spacingOuter; 24664 let indentationNext = indentation + config4.indent; 24665 for (; !current.done; ) 24666 result += indentationNext + printer2(current.value, config4, indentationNext, depth, refs), current = iterator.next(), current.done ? config4.min || (result += ",") : result += "," + config4.spacingInner; 24667 result += config4.spacingOuter + indentation; 24668 } 24669 return result; 24670 } 24671 function printListItems2(list, config4, indentation, depth, refs, printer2) { 24672 let result = ""; 24673 if (list.length) { 24674 result += config4.spacingOuter; 24675 let indentationNext = indentation + config4.indent; 24676 for (let i = 0; i < list.length; i++) 24677 result += indentationNext, i in list && (result += printer2(list[i], config4, indentationNext, depth, refs)), i < list.length - 1 ? result += "," + config4.spacingInner : config4.min || (result += ","); 24678 result += config4.spacingOuter + indentation; 24679 } 24680 return result; 24681 } 24682 function printObjectProperties2(val, config4, indentation, depth, refs, printer2) { 24683 let result = "", keys3 = getKeysOfEnumerableProperties2(val, config4.compareKeys); 24684 if (keys3.length) { 24685 result += config4.spacingOuter; 24686 let indentationNext = indentation + config4.indent; 24687 for (let i = 0; i < keys3.length; i++) { 24688 let key = keys3[i], name = printer2(key, config4, indentationNext, depth, refs), value = printer2(val[key], config4, indentationNext, depth, refs); 24689 result += indentationNext + name + ": " + value, i < keys3.length - 1 ? result += "," + config4.spacingInner : config4.min || (result += ","); 24690 } 24691 result += config4.spacingOuter + indentation; 24692 } 24693 return result; 24694 } 24695 } 24696}); 24697
vendor: 2,191 bytes, lines 24698-24736
24698// ../../node_modules/@testing-library/dom/node_modules/pretty-format/build/plugins/AsymmetricMatcher.js 24699var require_AsymmetricMatcher = __commonJS({ 24700 "../../node_modules/@testing-library/dom/node_modules/pretty-format/build/plugins/AsymmetricMatcher.js"(exports) { 24701 "use strict"; 24702 Object.defineProperty(exports, "__esModule", { 24703 value: !0 24704 }); 24705 exports.test = exports.serialize = exports.default = void 0; 24706 var _collections = require_collections(), global2 = (function() { 24707 return typeof globalThis < "u" ? globalThis : typeof global2 < "u" ? global2 : typeof self < "u" ? self : typeof window < "u" ? window : Function("return this")(); 24708 })(), 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) => { 24709 let stringedValue = val.toString(); 24710 return stringedValue === "ArrayContaining" || stringedValue === "ArrayNotContaining" ? ++depth > config4.maxDepth ? "[" + stringedValue + "]" : stringedValue + SPACE2 + "[" + (0, _collections.printListItems)( 24711 val.sample, 24712 config4, 24713 indentation, 24714 depth, 24715 refs, 24716 printer2 24717 ) + "]" : stringedValue === "ObjectContaining" || stringedValue === "ObjectNotContaining" ? ++depth > config4.maxDepth ? "[" + stringedValue + "]" : stringedValue + SPACE2 + "{" + (0, _collections.printObjectProperties)( 24718 val.sample, 24719 config4, 24720 indentation, 24721 depth, 24722 refs, 24723 printer2 24724 ) + "}" : stringedValue === "StringMatching" || stringedValue === "StringNotMatching" || stringedValue === "StringContaining" || stringedValue === "StringNotContaining" ? stringedValue + SPACE2 + printer2(val.sample, config4, indentation, depth, refs) : val.toAsymmetricMatcher(); 24725 }; 24726 exports.serialize = serialize3; 24727 var test3 = (val) => val && val.$$typeof === asymmetricMatcher2; 24728 exports.test = test3; 24729 var plugin2 = { 24730 serialize: serialize3, 24731 test: test3 24732 }, _default = plugin2; 24733 exports.default = _default; 24734 } 24735}); 24736
vendor: 602 bytes, lines 24737-24750
24737// ../../node_modules/@testing-library/dom/node_modules/ansi-regex/index.js 24738var require_ansi_regex = __commonJS({ 24739 "../../node_modules/@testing-library/dom/node_modules/ansi-regex/index.js"(exports, module2) { 24740 "use strict"; 24741 module2.exports = ({ onlyFirst = !1 } = {}) => { 24742 let pattern = [ 24743 "[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)", 24744 "(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))" 24745 ].join("|"); 24746 return new RegExp(pattern, onlyFirst ? void 0 : "g"); 24747 }; 24748 } 24749}); 24750
vendor: 2,789 bytes, lines 24751-24818
24751// ../../node_modules/@testing-library/dom/node_modules/pretty-format/build/plugins/ConvertAnsi.js 24752var require_ConvertAnsi = __commonJS({ 24753 "../../node_modules/@testing-library/dom/node_modules/pretty-format/build/plugins/ConvertAnsi.js"(exports) { 24754 "use strict"; 24755 Object.defineProperty(exports, "__esModule", { 24756 value: !0 24757 }); 24758 exports.test = exports.serialize = exports.default = void 0; 24759 var _ansiRegex = _interopRequireDefault(require_ansi_regex()), _ansiStyles = _interopRequireDefault(require_ansi_styles()); 24760 function _interopRequireDefault(obj) { 24761 return obj && obj.__esModule ? obj : { default: obj }; 24762 } 24763 var toHumanReadableAnsi = (text) => text.replace((0, _ansiRegex.default)(), (match3) => { 24764 switch (match3) { 24765 case _ansiStyles.default.red.close: 24766 case _ansiStyles.default.green.close: 24767 case _ansiStyles.default.cyan.close: 24768 case _ansiStyles.default.gray.close: 24769 case _ansiStyles.default.white.close: 24770 case _ansiStyles.default.yellow.close: 24771 case _ansiStyles.default.bgRed.close: 24772 case _ansiStyles.default.bgGreen.close: 24773 case _ansiStyles.default.bgYellow.close: 24774 case _ansiStyles.default.inverse.close: 24775 case _ansiStyles.default.dim.close: 24776 case _ansiStyles.default.bold.close: 24777 case _ansiStyles.default.reset.open: 24778 case _ansiStyles.default.reset.close: 24779 return "</>"; 24780 case _ansiStyles.default.red.open: 24781 return "<red>"; 24782 case _ansiStyles.default.green.open: 24783 return "<green>"; 24784 case _ansiStyles.default.cyan.open: 24785 return "<cyan>"; 24786 case _ansiStyles.default.gray.open: 24787 return "<gray>"; 24788 case _ansiStyles.default.white.open: 24789 return "<white>"; 24790 case _ansiStyles.default.yellow.open: 24791 return "<yellow>"; 24792 case _ansiStyles.default.bgRed.open: 24793 return "<bgRed>"; 24794 case _ansiStyles.default.bgGreen.open: 24795 return "<bgGreen>"; 24796 case _ansiStyles.default.bgYellow.open: 24797 return "<bgYellow>"; 24798 case _ansiStyles.default.inverse.open: 24799 return "<inverse>"; 24800 case _ansiStyles.default.dim.open: 24801 return "<dim>"; 24802 case _ansiStyles.default.bold.open: 24803 return "<bold>"; 24804 default: 24805 return ""; 24806 } 24807 }), test3 = (val) => typeof val == "string" && !!val.match((0, _ansiRegex.default)()); 24808 exports.test = test3; 24809 var serialize3 = (val, config4, indentation, depth, refs, printer2) => printer2(toHumanReadableAnsi(val), config4, indentation, depth, refs); 24810 exports.serialize = serialize3; 24811 var plugin2 = { 24812 serialize: serialize3, 24813 test: test3 24814 }, _default = plugin2; 24815 exports.default = _default; 24816 } 24817}); 24818
vendor: 1,797 bytes, lines 24819-24855
24819// ../../node_modules/@testing-library/dom/node_modules/pretty-format/build/plugins/DOMCollection.js 24820var require_DOMCollection = __commonJS({ 24821 "../../node_modules/@testing-library/dom/node_modules/pretty-format/build/plugins/DOMCollection.js"(exports) { 24822 "use strict"; 24823 Object.defineProperty(exports, "__esModule", { 24824 value: !0 24825 }); 24826 exports.test = exports.serialize = exports.default = void 0; 24827 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); 24828 exports.test = test3; 24829 var isNamedNodeMap2 = (collection) => collection.constructor.name === "NamedNodeMap", serialize3 = (collection, config4, indentation, depth, refs, printer2) => { 24830 let name = collection.constructor.name; 24831 return ++depth > config4.maxDepth ? "[" + name + "]" : (config4.min ? "" : name + SPACE2) + (OBJECT_NAMES2.indexOf(name) !== -1 ? "{" + (0, _collections.printObjectProperties)( 24832 isNamedNodeMap2(collection) ? Array.from(collection).reduce((props, attribute) => (props[attribute.name] = attribute.value, props), {}) : { ...collection }, 24833 config4, 24834 indentation, 24835 depth, 24836 refs, 24837 printer2 24838 ) + "}" : "[" + (0, _collections.printListItems)( 24839 Array.from(collection), 24840 config4, 24841 indentation, 24842 depth, 24843 refs, 24844 printer2 24845 ) + "]"); 24846 }; 24847 exports.serialize = serialize3; 24848 var plugin2 = { 24849 serialize: serialize3, 24850 test: test3 24851 }, _default = plugin2; 24852 exports.default = _default; 24853 } 24854}); 24855
vendor: 493 bytes, lines 24856-24869
24856// ../../node_modules/@testing-library/dom/node_modules/pretty-format/build/plugins/lib/escapeHTML.js 24857var require_escapeHTML = __commonJS({ 24858 "../../node_modules/@testing-library/dom/node_modules/pretty-format/build/plugins/lib/escapeHTML.js"(exports) { 24859 "use strict"; 24860 Object.defineProperty(exports, "__esModule", { 24861 value: !0 24862 }); 24863 exports.default = escapeHTML3; 24864 function escapeHTML3(str2) { 24865 return str2.replace(/</g, "<").replace(/>/g, ">"); 24866 } 24867 } 24868}); 24869
vendor: 2,978 bytes, lines 24870-24917
24870// ../../node_modules/@testing-library/dom/node_modules/pretty-format/build/plugins/lib/markup.js 24871var require_markup2 = __commonJS({ 24872 "../../node_modules/@testing-library/dom/node_modules/pretty-format/build/plugins/lib/markup.js"(exports) { 24873 "use strict"; 24874 Object.defineProperty(exports, "__esModule", { 24875 value: !0 24876 }); 24877 exports.printText = exports.printProps = exports.printElementAsLeaf = exports.printElement = exports.printComment = exports.printChildren = void 0; 24878 var _escapeHTML = _interopRequireDefault(require_escapeHTML()); 24879 function _interopRequireDefault(obj) { 24880 return obj && obj.__esModule ? obj : { default: obj }; 24881 } 24882 var printProps3 = (keys3, props, config4, indentation, depth, refs, printer2) => { 24883 let indentationNext = indentation + config4.indent, colors3 = config4.colors; 24884 return keys3.map((key) => { 24885 let value = props[key], printed = printer2(value, config4, indentationNext, depth, refs); 24886 return typeof value != "string" && (printed.indexOf(` 24887`) !== -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; 24888 }).join(""); 24889 }; 24890 exports.printProps = printProps3; 24891 var printChildren3 = (children, config4, indentation, depth, refs, printer2) => children.map( 24892 (child) => config4.spacingOuter + indentation + (typeof child == "string" ? printText3(child, config4) : printer2(child, config4, indentation, depth, refs)) 24893 ).join(""); 24894 exports.printChildren = printChildren3; 24895 var printText3 = (text, config4) => { 24896 let contentColor = config4.colors.content; 24897 return contentColor.open + (0, _escapeHTML.default)(text) + contentColor.close; 24898 }; 24899 exports.printText = printText3; 24900 var printComment3 = (comment2, config4) => { 24901 let commentColor = config4.colors.comment; 24902 return commentColor.open + "<!--" + (0, _escapeHTML.default)(comment2) + "-->" + commentColor.close; 24903 }; 24904 exports.printComment = printComment3; 24905 var printElement3 = (type5, printedProps, printedChildren, config4, indentation) => { 24906 let tagColor = config4.colors.tag; 24907 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; 24908 }; 24909 exports.printElement = printElement3; 24910 var printElementAsLeaf3 = (type5, config4) => { 24911 let tagColor = config4.colors.tag; 24912 return tagColor.open + "<" + type5 + tagColor.close + " \u2026" + tagColor.open + " />" + tagColor.close; 24913 }; 24914 exports.printElementAsLeaf = printElementAsLeaf3; 24915 } 24916}); 24917
vendor: 3,103 bytes, lines 24918-24986
24918// ../../node_modules/@testing-library/dom/node_modules/pretty-format/build/plugins/DOMElement.js 24919var require_DOMElement = __commonJS({ 24920 "../../node_modules/@testing-library/dom/node_modules/pretty-format/build/plugins/DOMElement.js"(exports) { 24921 "use strict"; 24922 Object.defineProperty(exports, "__esModule", { 24923 value: !0 24924 }); 24925 exports.test = exports.serialize = exports.default = void 0; 24926 var _markup = require_markup2(), ELEMENT_NODE3 = 1, TEXT_NODE3 = 3, COMMENT_NODE3 = 8, FRAGMENT_NODE3 = 11, ELEMENT_REGEXP3 = /^((HTML|SVG)\w*)?Element$/, testHasAttribute2 = (val) => { 24927 try { 24928 return typeof val.hasAttribute == "function" && val.hasAttribute("is"); 24929 } catch { 24930 return !1; 24931 } 24932 }, testNode3 = (val) => { 24933 let constructorName = val.constructor.name, { nodeType, tagName } = val, isCustomElement3 = typeof tagName == "string" && tagName.includes("-") || testHasAttribute2(val); 24934 return nodeType === ELEMENT_NODE3 && (ELEMENT_REGEXP3.test(constructorName) || isCustomElement3) || nodeType === TEXT_NODE3 && constructorName === "Text" || nodeType === COMMENT_NODE3 && constructorName === "Comment" || nodeType === FRAGMENT_NODE3 && constructorName === "DocumentFragment"; 24935 }, test3 = (val) => { 24936 var _val$constructor; 24937 return (val == null || (_val$constructor = val.constructor) === null || _val$constructor === void 0 ? void 0 : _val$constructor.name) && testNode3(val); 24938 }; 24939 exports.test = test3; 24940 function nodeIsText3(node2) { 24941 return node2.nodeType === TEXT_NODE3; 24942 } 24943 function nodeIsComment3(node2) { 24944 return node2.nodeType === COMMENT_NODE3; 24945 } 24946 function nodeIsFragment3(node2) { 24947 return node2.nodeType === FRAGMENT_NODE3; 24948 } 24949 var serialize3 = (node2, config4, indentation, depth, refs, printer2) => { 24950 if (nodeIsText3(node2)) 24951 return (0, _markup.printText)(node2.data, config4); 24952 if (nodeIsComment3(node2)) 24953 return (0, _markup.printComment)(node2.data, config4); 24954 let type5 = nodeIsFragment3(node2) ? "DocumentFragment" : node2.tagName.toLowerCase(); 24955 return ++depth > config4.maxDepth ? (0, _markup.printElementAsLeaf)(type5, config4) : (0, _markup.printElement)( 24956 type5, 24957 (0, _markup.printProps)( 24958 nodeIsFragment3(node2) ? [] : Array.from(node2.attributes).map((attr) => attr.name).sort(), 24959 nodeIsFragment3(node2) ? {} : Array.from(node2.attributes).reduce((props, attribute) => (props[attribute.name] = attribute.value, props), {}), 24960 config4, 24961 indentation + config4.indent, 24962 depth, 24963 refs, 24964 printer2 24965 ), 24966 (0, _markup.printChildren)( 24967 Array.prototype.slice.call(node2.childNodes || node2.children), 24968 config4, 24969 indentation + config4.indent, 24970 depth, 24971 refs, 24972 printer2 24973 ), 24974 config4, 24975 indentation 24976 ); 24977 }; 24978 exports.serialize = serialize3; 24979 var plugin2 = { 24980 serialize: serialize3, 24981 test: test3 24982 }, _default = plugin2; 24983 exports.default = _default; 24984 } 24985}); 24986
vendor: 4,616 bytes, lines 24987-25102
24987// ../../node_modules/@testing-library/dom/node_modules/pretty-format/build/plugins/Immutable.js 24988var require_Immutable = __commonJS({ 24989 "../../node_modules/@testing-library/dom/node_modules/pretty-format/build/plugins/Immutable.js"(exports) { 24990 "use strict"; 24991 Object.defineProperty(exports, "__esModule", { 24992 value: !0 24993 }); 24994 exports.test = exports.serialize = exports.default = void 0; 24995 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)( 24996 val.entries(), 24997 config4, 24998 indentation, 24999 depth, 25000 refs, 25001 printer2 25002 ) + "}"; 25003 function getRecordEntries2(val) { 25004 let i = 0; 25005 return { 25006 next() { 25007 if (i < val._keys.length) { 25008 let key = val._keys[i++]; 25009 return { 25010 done: !1, 25011 value: [key, val.get(key)] 25012 }; 25013 } 25014 return { 25015 done: !0, 25016 value: void 0 25017 }; 25018 } 25019 }; 25020 } 25021 var printImmutableRecord2 = (val, config4, indentation, depth, refs, printer2) => { 25022 let name = getImmutableName2(val._name || "Record"); 25023 return ++depth > config4.maxDepth ? printAsLeaf2(name) : name + SPACE2 + "{" + (0, _collections.printIteratorEntries)( 25024 getRecordEntries2(val), 25025 config4, 25026 indentation, 25027 depth, 25028 refs, 25029 printer2 25030 ) + "}"; 25031 }, printImmutableSeq2 = (val, config4, indentation, depth, refs, printer2) => { 25032 let name = getImmutableName2("Seq"); 25033 return ++depth > config4.maxDepth ? printAsLeaf2(name) : val[IS_KEYED_SENTINEL3] ? name + SPACE2 + "{" + // from Immutable collection of entries or from ECMAScript object 25034 (val._iter || val._object ? (0, _collections.printIteratorEntries)( 25035 val.entries(), 25036 config4, 25037 indentation, 25038 depth, 25039 refs, 25040 printer2 25041 ) : LAZY2) + "}" : name + SPACE2 + "[" + (val._iter || // from Immutable collection of values 25042 val._array || // from ECMAScript array 25043 val._collection || // from ECMAScript collection in immutable v4 25044 val._iterable ? (0, _collections.printIteratorValues)( 25045 val.values(), 25046 config4, 25047 indentation, 25048 depth, 25049 refs, 25050 printer2 25051 ) : LAZY2) + "]"; 25052 }, printImmutableValues2 = (val, config4, indentation, depth, refs, printer2, type5) => ++depth > config4.maxDepth ? printAsLeaf2(getImmutableName2(type5)) : getImmutableName2(type5) + SPACE2 + "[" + (0, _collections.printIteratorValues)( 25053 val.values(), 25054 config4, 25055 indentation, 25056 depth, 25057 refs, 25058 printer2 25059 ) + "]", serialize3 = (val, config4, indentation, depth, refs, printer2) => val[IS_MAP_SENTINEL2] ? printImmutableEntries2( 25060 val, 25061 config4, 25062 indentation, 25063 depth, 25064 refs, 25065 printer2, 25066 val[IS_ORDERED_SENTINEL3] ? "OrderedMap" : "Map" 25067 ) : val[IS_LIST_SENTINEL3] ? printImmutableValues2( 25068 val, 25069 config4, 25070 indentation, 25071 depth, 25072 refs, 25073 printer2, 25074 "List" 25075 ) : val[IS_SET_SENTINEL3] ? printImmutableValues2( 25076 val, 25077 config4, 25078 indentation, 25079 depth, 25080 refs, 25081 printer2, 25082 val[IS_ORDERED_SENTINEL3] ? "OrderedSet" : "Set" 25083 ) : val[IS_STACK_SENTINEL2] ? printImmutableValues2( 25084 val, 25085 config4, 25086 indentation, 25087 depth, 25088 refs, 25089 printer2, 25090 "Stack" 25091 ) : val[IS_SEQ_SENTINEL2] ? printImmutableSeq2(val, config4, indentation, depth, refs, printer2) : printImmutableRecord2(val, config4, indentation, depth, refs, printer2); 25092 exports.serialize = serialize3; 25093 var test3 = (val) => val && (val[IS_ITERABLE_SENTINEL2] === !0 || val[IS_RECORD_SENTINEL2] === !0); 25094 exports.test = test3; 25095 var plugin2 = { 25096 serialize: serialize3, 25097 test: test3 25098 }, _default = plugin2; 25099 exports.default = _default; 25100 } 25101}); 25102
vendor: 3,532 bytes, lines 25103-25196
25103// ../../node_modules/@testing-library/dom/node_modules/react-is/cjs/react-is.production.min.js 25104var require_react_is_production_min2 = __commonJS({ 25105 "../../node_modules/@testing-library/dom/node_modules/react-is/cjs/react-is.production.min.js"(exports) { 25106 "use strict"; 25107 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; 25108 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")); 25109 var x; 25110 function y(a3) { 25111 if (typeof a3 == "object" && a3 !== null) { 25112 var t = a3.$$typeof; 25113 switch (t) { 25114 case b: 25115 switch (a3 = a3.type, a3) { 25116 case d: 25117 case f4: 25118 case e: 25119 case l: 25120 case m3: 25121 return a3; 25122 default: 25123 switch (a3 = a3 && a3.$$typeof, a3) { 25124 case h3: 25125 case k: 25126 case p3: 25127 case n: 25128 case g2: 25129 return a3; 25130 default: 25131 return t; 25132 } 25133 } 25134 case c: 25135 return t; 25136 } 25137 } 25138 } 25139 var z = g2, A3 = b, B3 = k, C3 = d, D = p3, E = n, F = c, G = f4, H = e, I = l; 25140 exports.ContextConsumer = h3; 25141 exports.ContextProvider = z; 25142 exports.Element = A3; 25143 exports.ForwardRef = B3; 25144 exports.Fragment = C3; 25145 exports.Lazy = D; 25146 exports.Memo = E; 25147 exports.Portal = F; 25148 exports.Profiler = G; 25149 exports.StrictMode = H; 25150 exports.Suspense = I; 25151 exports.isAsyncMode = function() { 25152 return !1; 25153 }; 25154 exports.isConcurrentMode = function() { 25155 return !1; 25156 }; 25157 exports.isContextConsumer = function(a3) { 25158 return y(a3) === h3; 25159 }; 25160 exports.isContextProvider = function(a3) { 25161 return y(a3) === g2; 25162 }; 25163 exports.isElement = function(a3) { 25164 return typeof a3 == "object" && a3 !== null && a3.$$typeof === b; 25165 }; 25166 exports.isForwardRef = function(a3) { 25167 return y(a3) === k; 25168 }; 25169 exports.isFragment = function(a3) { 25170 return y(a3) === d; 25171 }; 25172 exports.isLazy = function(a3) { 25173 return y(a3) === p3; 25174 }; 25175 exports.isMemo = function(a3) { 25176 return y(a3) === n; 25177 }; 25178 exports.isPortal = function(a3) { 25179 return y(a3) === c; 25180 }; 25181 exports.isProfiler = function(a3) { 25182 return y(a3) === f4; 25183 }; 25184 exports.isStrictMode = function(a3) { 25185 return y(a3) === e; 25186 }; 25187 exports.isSuspense = function(a3) { 25188 return y(a3) === l; 25189 }; 25190 exports.isValidElementType = function(a3) { 25191 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); 25192 }; 25193 exports.typeOf = y; 25194 } 25195}); 25196
vendor: 291 bytes, lines 25197-25204
25197// ../../node_modules/@testing-library/dom/node_modules/react-is/index.js 25198var require_react_is2 = __commonJS({ 25199 "../../node_modules/@testing-library/dom/node_modules/react-is/index.js"(exports, module2) { 25200 "use strict"; 25201 module2.exports = require_react_is_production_min2(); 25202 } 25203}); 25204
vendor: 4,180 bytes, lines 25205-25301
25205// ../../node_modules/@testing-library/dom/node_modules/pretty-format/build/plugins/ReactElement.js 25206var require_ReactElement = __commonJS({ 25207 "../../node_modules/@testing-library/dom/node_modules/pretty-format/build/plugins/ReactElement.js"(exports) { 25208 "use strict"; 25209 Object.defineProperty(exports, "__esModule", { 25210 value: !0 25211 }); 25212 exports.test = exports.serialize = exports.default = void 0; 25213 var ReactIs2 = _interopRequireWildcard(require_react_is2()), _markup = require_markup2(); 25214 function _getRequireWildcardCache(nodeInterop) { 25215 if (typeof WeakMap != "function") return null; 25216 var cacheBabelInterop = /* @__PURE__ */ new WeakMap(), cacheNodeInterop = /* @__PURE__ */ new WeakMap(); 25217 return (_getRequireWildcardCache = function(nodeInterop2) { 25218 return nodeInterop2 ? cacheNodeInterop : cacheBabelInterop; 25219 })(nodeInterop); 25220 } 25221 function _interopRequireWildcard(obj, nodeInterop) { 25222 if (!nodeInterop && obj && obj.__esModule) 25223 return obj; 25224 if (obj === null || typeof obj != "object" && typeof obj != "function") 25225 return { default: obj }; 25226 var cache = _getRequireWildcardCache(nodeInterop); 25227 if (cache && cache.has(obj)) 25228 return cache.get(obj); 25229 var newObj = {}, hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; 25230 for (var key in obj) 25231 if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { 25232 var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; 25233 desc && (desc.get || desc.set) ? Object.defineProperty(newObj, key, desc) : newObj[key] = obj[key]; 25234 } 25235 return newObj.default = obj, cache && cache.set(obj, newObj), newObj; 25236 } 25237 var getChildren2 = (arg, children = []) => (Array.isArray(arg) ? arg.forEach((item) => { 25238 getChildren2(item, children); 25239 }) : arg != null && arg !== !1 && children.push(arg), children), getType4 = (element) => { 25240 let type5 = element.type; 25241 if (typeof type5 == "string") 25242 return type5; 25243 if (typeof type5 == "function") 25244 return type5.displayName || type5.name || "Unknown"; 25245 if (ReactIs2.isFragment(element)) 25246 return "React.Fragment"; 25247 if (ReactIs2.isSuspense(element)) 25248 return "React.Suspense"; 25249 if (typeof type5 == "object" && type5 !== null) { 25250 if (ReactIs2.isContextProvider(element)) 25251 return "Context.Provider"; 25252 if (ReactIs2.isContextConsumer(element)) 25253 return "Context.Consumer"; 25254 if (ReactIs2.isForwardRef(element)) { 25255 if (type5.displayName) 25256 return type5.displayName; 25257 let functionName = type5.render.displayName || type5.render.name || ""; 25258 return functionName !== "" ? "ForwardRef(" + functionName + ")" : "ForwardRef"; 25259 } 25260 if (ReactIs2.isMemo(element)) { 25261 let functionName = type5.displayName || type5.type.displayName || type5.type.name || ""; 25262 return functionName !== "" ? "Memo(" + functionName + ")" : "Memo"; 25263 } 25264 } 25265 return "UNDEFINED"; 25266 }, getPropKeys2 = (element) => { 25267 let { props } = element; 25268 return Object.keys(props).filter((key) => key !== "children" && props[key] !== void 0).sort(); 25269 }, serialize3 = (element, config4, indentation, depth, refs, printer2) => ++depth > config4.maxDepth ? (0, _markup.printElementAsLeaf)(getType4(element), config4) : (0, _markup.printElement)( 25270 getType4(element), 25271 (0, _markup.printProps)( 25272 getPropKeys2(element), 25273 element.props, 25274 config4, 25275 indentation + config4.indent, 25276 depth, 25277 refs, 25278 printer2 25279 ), 25280 (0, _markup.printChildren)( 25281 getChildren2(element.props.children), 25282 config4, 25283 indentation + config4.indent, 25284 depth, 25285 refs, 25286 printer2 25287 ), 25288 config4, 25289 indentation 25290 ); 25291 exports.serialize = serialize3; 25292 var test3 = (val) => val != null && ReactIs2.isElement(val); 25293 exports.test = test3; 25294 var plugin2 = { 25295 serialize: serialize3, 25296 test: test3 25297 }, _default = plugin2; 25298 exports.default = _default; 25299 } 25300}); 25301
vendor: 1,901 bytes, lines 25302-25347
25302// ../../node_modules/@testing-library/dom/node_modules/pretty-format/build/plugins/ReactTestComponent.js 25303var require_ReactTestComponent = __commonJS({ 25304 "../../node_modules/@testing-library/dom/node_modules/pretty-format/build/plugins/ReactTestComponent.js"(exports) { 25305 "use strict"; 25306 Object.defineProperty(exports, "__esModule", { 25307 value: !0 25308 }); 25309 exports.test = exports.serialize = exports.default = void 0; 25310 var _markup = require_markup2(), global2 = (function() { 25311 return typeof globalThis < "u" ? globalThis : typeof global2 < "u" ? global2 : typeof self < "u" ? self : typeof window < "u" ? window : Function("return this")(); 25312 })(), Symbol3 = global2["jest-symbol-do-not-touch"] || global2.Symbol, testSymbol2 = typeof Symbol3 == "function" && Symbol3.for ? Symbol3.for("react.test.json") : 245830487, getPropKeys2 = (object) => { 25313 let { props } = object; 25314 return props ? Object.keys(props).filter((key) => props[key] !== void 0).sort() : []; 25315 }, serialize3 = (object, config4, indentation, depth, refs, printer2) => ++depth > config4.maxDepth ? (0, _markup.printElementAsLeaf)(object.type, config4) : (0, _markup.printElement)( 25316 object.type, 25317 object.props ? (0, _markup.printProps)( 25318 getPropKeys2(object), 25319 object.props, 25320 config4, 25321 indentation + config4.indent, 25322 depth, 25323 refs, 25324 printer2 25325 ) : "", 25326 object.children ? (0, _markup.printChildren)( 25327 object.children, 25328 config4, 25329 indentation + config4.indent, 25330 depth, 25331 refs, 25332 printer2 25333 ) : "", 25334 config4, 25335 indentation 25336 ); 25337 exports.serialize = serialize3; 25338 var test3 = (val) => val && val.$$typeof === testSymbol2; 25339 exports.test = test3; 25340 var plugin2 = { 25341 serialize: serialize3, 25342 test: test3 25343 }, _default = plugin2; 25344 exports.default = _default; 25345 } 25346}); 25347
vendor: 12,969 bytes, lines 25348-25618
25348// ../../node_modules/@testing-library/dom/node_modules/pretty-format/build/index.js 25349var require_build = __commonJS({ 25350 "../../node_modules/@testing-library/dom/node_modules/pretty-format/build/index.js"(exports) { 25351 "use strict"; 25352 Object.defineProperty(exports, "__esModule", { 25353 value: !0 25354 }); 25355 exports.default = exports.DEFAULT_OPTIONS = void 0; 25356 exports.format = format4; 25357 exports.plugins = void 0; 25358 var _ansiStyles = _interopRequireDefault(require_ansi_styles()), _collections = require_collections(), _AsymmetricMatcher = _interopRequireDefault( 25359 require_AsymmetricMatcher() 25360 ), _ConvertAnsi = _interopRequireDefault(require_ConvertAnsi()), _DOMCollection = _interopRequireDefault(require_DOMCollection()), _DOMElement = _interopRequireDefault(require_DOMElement()), _Immutable = _interopRequireDefault(require_Immutable()), _ReactElement = _interopRequireDefault(require_ReactElement()), _ReactTestComponent = _interopRequireDefault( 25361 require_ReactTestComponent() 25362 ); 25363 function _interopRequireDefault(obj) { 25364 return obj && obj.__esModule ? obj : { default: obj }; 25365 } 25366 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 { 25367 constructor(message, stack) { 25368 super(message), this.stack = stack, this.name = this.constructor.name; 25369 } 25370 }; 25371 function isToStringedArrayType2(toStringed) { 25372 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]"; 25373 } 25374 function printNumber2(val) { 25375 return Object.is(val, -0) ? "-0" : String(val); 25376 } 25377 function printBigInt2(val) { 25378 return `${val}n`; 25379 } 25380 function printFunction2(val, printFunctionName) { 25381 return printFunctionName ? "[Function " + (val.name || "anonymous") + "]" : "[Function]"; 25382 } 25383 function printSymbol2(val) { 25384 return String(val).replace(SYMBOL_REGEXP2, "Symbol($1)"); 25385 } 25386 function printError2(val) { 25387 return "[" + errorToString2.call(val) + "]"; 25388 } 25389 function printBasicValue2(val, printFunctionName, escapeRegex, escapeString) { 25390 if (val === !0 || val === !1) 25391 return "" + val; 25392 if (val === void 0) 25393 return "undefined"; 25394 if (val === null) 25395 return "null"; 25396 let typeOf = typeof val; 25397 if (typeOf === "number") 25398 return printNumber2(val); 25399 if (typeOf === "bigint") 25400 return printBigInt2(val); 25401 if (typeOf === "string") 25402 return escapeString ? '"' + val.replace(/"|\\/g, "\\$&") + '"' : '"' + val + '"'; 25403 if (typeOf === "function") 25404 return printFunction2(val, printFunctionName); 25405 if (typeOf === "symbol") 25406 return printSymbol2(val); 25407 let toStringed = toString5.call(val); 25408 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; 25409 } 25410 function printComplexValue2(val, config4, indentation, depth, refs, hasCalledToJSON) { 25411 if (refs.indexOf(val) !== -1) 25412 return "[Circular]"; 25413 refs = refs.slice(), refs.push(val); 25414 let hitMaxDepth = ++depth > config4.maxDepth, min2 = config4.min; 25415 if (config4.callToJSON && !hitMaxDepth && val.toJSON && typeof val.toJSON == "function" && !hasCalledToJSON) 25416 return printer2(val.toJSON(), config4, indentation, depth, refs, !0); 25417 let toStringed = toString5.call(val); 25418 return toStringed === "[object Arguments]" ? hitMaxDepth ? "[Arguments]" : (min2 ? "" : "Arguments ") + "[" + (0, _collections.printListItems)( 25419 val, 25420 config4, 25421 indentation, 25422 depth, 25423 refs, 25424 printer2 25425 ) + "]" : isToStringedArrayType2(toStringed) ? hitMaxDepth ? "[" + val.constructor.name + "]" : (min2 || !config4.printBasicPrototype && val.constructor.name === "Array" ? "" : val.constructor.name + " ") + "[" + (0, _collections.printListItems)( 25426 val, 25427 config4, 25428 indentation, 25429 depth, 25430 refs, 25431 printer2 25432 ) + "]" : toStringed === "[object Map]" ? hitMaxDepth ? "[Map]" : "Map {" + (0, _collections.printIteratorEntries)( 25433 val.entries(), 25434 config4, 25435 indentation, 25436 depth, 25437 refs, 25438 printer2, 25439 " => " 25440 ) + "}" : toStringed === "[object Set]" ? hitMaxDepth ? "[Set]" : "Set {" + (0, _collections.printIteratorValues)( 25441 val.values(), 25442 config4, 25443 indentation, 25444 depth, 25445 refs, 25446 printer2 25447 ) + "}" : hitMaxDepth || isWindow2(val) ? "[" + getConstructorName3(val) + "]" : (min2 || !config4.printBasicPrototype && getConstructorName3(val) === "Object" ? "" : getConstructorName3(val) + " ") + "{" + (0, _collections.printObjectProperties)( 25448 val, 25449 config4, 25450 indentation, 25451 depth, 25452 refs, 25453 printer2 25454 ) + "}"; 25455 } 25456 function isNewPlugin2(plugin2) { 25457 return plugin2.serialize != null; 25458 } 25459 function printPlugin2(plugin2, val, config4, indentation, depth, refs) { 25460 let printed; 25461 try { 25462 printed = isNewPlugin2(plugin2) ? plugin2.serialize(val, config4, indentation, depth, refs, printer2) : plugin2.print( 25463 val, 25464 (valChild) => printer2(valChild, config4, indentation, depth, refs), 25465 (str2) => { 25466 let indentationNext = indentation + config4.indent; 25467 return indentationNext + str2.replace(NEWLINE_REGEXP2, ` 25468` + indentationNext); 25469 }, 25470 { 25471 edgeSpacing: config4.spacingOuter, 25472 min: config4.min, 25473 spacing: config4.spacingInner 25474 }, 25475 config4.colors 25476 ); 25477 } catch (error) { 25478 throw new PrettyFormatPluginError2(error.message, error.stack); 25479 } 25480 if (typeof printed != "string") 25481 throw new Error( 25482 `pretty-format: Plugin must return type "string" but instead returned "${typeof printed}".` 25483 ); 25484 return printed; 25485 } 25486 function findPlugin2(plugins4, val) { 25487 for (let p3 = 0; p3 < plugins4.length; p3++) 25488 try { 25489 if (plugins4[p3].test(val)) 25490 return plugins4[p3]; 25491 } catch (error) { 25492 throw new PrettyFormatPluginError2(error.message, error.stack); 25493 } 25494 return null; 25495 } 25496 function printer2(val, config4, indentation, depth, refs, hasCalledToJSON) { 25497 let plugin2 = findPlugin2(config4.plugins, val); 25498 if (plugin2 !== null) 25499 return printPlugin2(plugin2, val, config4, indentation, depth, refs); 25500 let basicResult = printBasicValue2( 25501 val, 25502 config4.printFunctionName, 25503 config4.escapeRegex, 25504 config4.escapeString 25505 ); 25506 return basicResult !== null ? basicResult : printComplexValue2( 25507 val, 25508 config4, 25509 indentation, 25510 depth, 25511 refs, 25512 hasCalledToJSON 25513 ); 25514 } 25515 var DEFAULT_THEME2 = { 25516 comment: "gray", 25517 content: "reset", 25518 prop: "yellow", 25519 tag: "cyan", 25520 value: "green" 25521 }, DEFAULT_THEME_KEYS2 = Object.keys(DEFAULT_THEME2), DEFAULT_OPTIONS3 = { 25522 callToJSON: !0, 25523 compareKeys: void 0, 25524 escapeRegex: !1, 25525 escapeString: !0, 25526 highlight: !1, 25527 indent: 2, 25528 maxDepth: 1 / 0, 25529 min: !1, 25530 plugins: [], 25531 printBasicPrototype: !0, 25532 printFunctionName: !0, 25533 theme: DEFAULT_THEME2 25534 }; 25535 exports.DEFAULT_OPTIONS = DEFAULT_OPTIONS3; 25536 function validateOptions3(options) { 25537 if (Object.keys(options).forEach((key) => { 25538 if (!DEFAULT_OPTIONS3.hasOwnProperty(key)) 25539 throw new Error(`pretty-format: Unknown option "${key}".`); 25540 }), options.min && options.indent !== void 0 && options.indent !== 0) 25541 throw new Error( 25542 'pretty-format: Options "min" and "indent" cannot be used together.' 25543 ); 25544 if (options.theme !== void 0) { 25545 if (options.theme === null) 25546 throw new Error('pretty-format: Option "theme" must not be null.'); 25547 if (typeof options.theme != "object") 25548 throw new Error( 25549 `pretty-format: Option "theme" must be of type "object" but instead received "${typeof options.theme}".` 25550 ); 25551 } 25552 } 25553 var getColorsHighlight2 = (options) => DEFAULT_THEME_KEYS2.reduce((colors3, key) => { 25554 let value = options.theme && options.theme[key] !== void 0 ? options.theme[key] : DEFAULT_THEME2[key], color2 = value && _ansiStyles.default[value]; 25555 if (color2 && typeof color2.close == "string" && typeof color2.open == "string") 25556 colors3[key] = color2; 25557 else 25558 throw new Error( 25559 `pretty-format: Option "theme" has a key "${key}" whose value "${value}" is undefined in ansi-styles.` 25560 ); 25561 return colors3; 25562 }, /* @__PURE__ */ Object.create(null)), getColorsEmpty2 = () => DEFAULT_THEME_KEYS2.reduce((colors3, key) => (colors3[key] = { 25563 close: "", 25564 open: "" 25565 }, 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) => { 25566 var _options$printBasicPr; 25567 return { 25568 callToJSON: options && options.callToJSON !== void 0 ? options.callToJSON : DEFAULT_OPTIONS3.callToJSON, 25569 colors: options && options.highlight ? getColorsHighlight2(options) : getColorsEmpty2(), 25570 compareKeys: options && typeof options.compareKeys == "function" ? options.compareKeys : DEFAULT_OPTIONS3.compareKeys, 25571 escapeRegex: getEscapeRegex2(options), 25572 escapeString: getEscapeString2(options), 25573 indent: options && options.min ? "" : createIndent2( 25574 options && options.indent !== void 0 ? options.indent : DEFAULT_OPTIONS3.indent 25575 ), 25576 maxDepth: options && options.maxDepth !== void 0 ? options.maxDepth : DEFAULT_OPTIONS3.maxDepth, 25577 min: options && options.min !== void 0 ? options.min : DEFAULT_OPTIONS3.min, 25578 plugins: options && options.plugins !== void 0 ? options.plugins : DEFAULT_OPTIONS3.plugins, 25579 printBasicPrototype: (_options$printBasicPr = options?.printBasicPrototype) !== null && _options$printBasicPr !== void 0 ? _options$printBasicPr : !0, 25580 printFunctionName: getPrintFunctionName2(options), 25581 spacingInner: options && options.min ? " " : ` 25582`, 25583 spacingOuter: options && options.min ? "" : ` 25584` 25585 }; 25586 }; 25587 function createIndent2(indent2) { 25588 return new Array(indent2 + 1).join(" "); 25589 } 25590 function format4(val, options) { 25591 if (options && (validateOptions3(options), options.plugins)) { 25592 let plugin2 = findPlugin2(options.plugins, val); 25593 if (plugin2 !== null) 25594 return printPlugin2(plugin2, val, getConfig4(options), "", 0, []); 25595 } 25596 let basicResult = printBasicValue2( 25597 val, 25598 getPrintFunctionName2(options), 25599 getEscapeRegex2(options), 25600 getEscapeString2(options) 25601 ); 25602 return basicResult !== null ? basicResult : printComplexValue2(val, getConfig4(options), "", 0, []); 25603 } 25604 var plugins3 = { 25605 AsymmetricMatcher: _AsymmetricMatcher.default, 25606 ConvertAnsi: _ConvertAnsi.default, 25607 DOMCollection: _DOMCollection.default, 25608 DOMElement: _DOMElement.default, 25609 Immutable: _Immutable.default, 25610 ReactElement: _ReactElement.default, 25611 ReactTestComponent: _ReactTestComponent.default 25612 }; 25613 exports.plugins = plugins3; 25614 var _default = format4; 25615 exports.default = _default; 25616 } 25617}); 25618
vendor: 13,745 bytes, lines 25619-25819
25619// ../../node_modules/lz-string/libs/lz-string.js 25620var require_lz_string = __commonJS({ 25621 "../../node_modules/lz-string/libs/lz-string.js"(exports, module2) { 25622 var LZString = (function() { 25623 var f4 = String.fromCharCode, keyStrBase64 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=", keyStrUriSafe = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-$", baseReverseDic = {}; 25624 function getBaseValue(alphabet, character2) { 25625 if (!baseReverseDic[alphabet]) { 25626 baseReverseDic[alphabet] = {}; 25627 for (var i = 0; i < alphabet.length; i++) 25628 baseReverseDic[alphabet][alphabet.charAt(i)] = i; 25629 } 25630 return baseReverseDic[alphabet][character2]; 25631 } 25632 var LZString2 = { 25633 compressToBase64: function(input2) { 25634 if (input2 == null) return ""; 25635 var res = LZString2._compress(input2, 6, function(a3) { 25636 return keyStrBase64.charAt(a3); 25637 }); 25638 switch (res.length % 4) { 25639 // To produce valid Base64 25640 default: 25641 // When could this happen ? 25642 case 0: 25643 return res; 25644 case 1: 25645 return res + "==="; 25646 case 2: 25647 return res + "=="; 25648 case 3: 25649 return res + "="; 25650 } 25651 }, 25652 decompressFromBase64: function(input2) { 25653 return input2 == null ? "" : input2 == "" ? null : LZString2._decompress(input2.length, 32, function(index4) { 25654 return getBaseValue(keyStrBase64, input2.charAt(index4)); 25655 }); 25656 }, 25657 compressToUTF16: function(input2) { 25658 return input2 == null ? "" : LZString2._compress(input2, 15, function(a3) { 25659 return f4(a3 + 32); 25660 }) + " "; 25661 }, 25662 decompressFromUTF16: function(compressed) { 25663 return compressed == null ? "" : compressed == "" ? null : LZString2._decompress(compressed.length, 16384, function(index4) { 25664 return compressed.charCodeAt(index4) - 32; 25665 }); 25666 }, 25667 //compress into uint8array (UCS-2 big endian format) 25668 compressToUint8Array: function(uncompressed) { 25669 for (var compressed = LZString2.compress(uncompressed), buf = new Uint8Array(compressed.length * 2), i = 0, TotalLen = compressed.length; i < TotalLen; i++) { 25670 var current_value = compressed.charCodeAt(i); 25671 buf[i * 2] = current_value >>> 8, buf[i * 2 + 1] = current_value % 256; 25672 } 25673 return buf; 25674 }, 25675 //decompress from uint8array (UCS-2 big endian format) 25676 decompressFromUint8Array: function(compressed) { 25677 if (compressed == null) 25678 return LZString2.decompress(compressed); 25679 for (var buf = new Array(compressed.length / 2), i = 0, TotalLen = buf.length; i < TotalLen; i++) 25680 buf[i] = compressed[i * 2] * 256 + compressed[i * 2 + 1]; 25681 var result = []; 25682 return buf.forEach(function(c) { 25683 result.push(f4(c)); 25684 }), LZString2.decompress(result.join("")); 25685 }, 25686 //compress into a string that is already URI encoded 25687 compressToEncodedURIComponent: function(input2) { 25688 return input2 == null ? "" : LZString2._compress(input2, 6, function(a3) { 25689 return keyStrUriSafe.charAt(a3); 25690 }); 25691 }, 25692 //decompress from an output of compressToEncodedURIComponent 25693 decompressFromEncodedURIComponent: function(input2) { 25694 return input2 == null ? "" : input2 == "" ? null : (input2 = input2.replace(/ /g, "+"), LZString2._decompress(input2.length, 32, function(index4) { 25695 return getBaseValue(keyStrUriSafe, input2.charAt(index4)); 25696 })); 25697 }, 25698 compress: function(uncompressed) { 25699 return LZString2._compress(uncompressed, 16, function(a3) { 25700 return f4(a3); 25701 }); 25702 }, 25703 _compress: function(uncompressed, bitsPerChar, getCharFromInt) { 25704 if (uncompressed == null) return ""; 25705 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; 25706 for (ii = 0; ii < uncompressed.length; ii += 1) 25707 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)) 25708 context_w = context_wc; 25709 else { 25710 if (Object.prototype.hasOwnProperty.call(context_dictionaryToCreate, context_w)) { 25711 if (context_w.charCodeAt(0) < 256) { 25712 for (i = 0; i < context_numBits; i++) 25713 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++; 25714 for (value = context_w.charCodeAt(0), i = 0; i < 8; i++) 25715 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; 25716 } else { 25717 for (value = 1, i = 0; i < context_numBits; i++) 25718 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; 25719 for (value = context_w.charCodeAt(0), i = 0; i < 16; i++) 25720 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; 25721 } 25722 context_enlargeIn--, context_enlargeIn == 0 && (context_enlargeIn = Math.pow(2, context_numBits), context_numBits++), delete context_dictionaryToCreate[context_w]; 25723 } else 25724 for (value = context_dictionary[context_w], i = 0; i < context_numBits; i++) 25725 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; 25726 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); 25727 } 25728 if (context_w !== "") { 25729 if (Object.prototype.hasOwnProperty.call(context_dictionaryToCreate, context_w)) { 25730 if (context_w.charCodeAt(0) < 256) { 25731 for (i = 0; i < context_numBits; i++) 25732 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++; 25733 for (value = context_w.charCodeAt(0), i = 0; i < 8; i++) 25734 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; 25735 } else { 25736 for (value = 1, i = 0; i < context_numBits; i++) 25737 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; 25738 for (value = context_w.charCodeAt(0), i = 0; i < 16; i++) 25739 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; 25740 } 25741 context_enlargeIn--, context_enlargeIn == 0 && (context_enlargeIn = Math.pow(2, context_numBits), context_numBits++), delete context_dictionaryToCreate[context_w]; 25742 } else 25743 for (value = context_dictionary[context_w], i = 0; i < context_numBits; i++) 25744 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; 25745 context_enlargeIn--, context_enlargeIn == 0 && (context_enlargeIn = Math.pow(2, context_numBits), context_numBits++); 25746 } 25747 for (value = 2, i = 0; i < context_numBits; i++) 25748 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; 25749 for (; ; ) 25750 if (context_data_val = context_data_val << 1, context_data_position == bitsPerChar - 1) { 25751 context_data.push(getCharFromInt(context_data_val)); 25752 break; 25753 } else context_data_position++; 25754 return context_data.join(""); 25755 }, 25756 decompress: function(compressed) { 25757 return compressed == null ? "" : compressed == "" ? null : LZString2._decompress(compressed.length, 32768, function(index4) { 25758 return compressed.charCodeAt(index4); 25759 }); 25760 }, 25761 _decompress: function(length2, resetValue, getNextValue) { 25762 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 }; 25763 for (i = 0; i < 3; i += 1) 25764 dictionary[i] = i; 25765 for (bits = 0, maxpower = Math.pow(2, 2), power = 1; power != maxpower; ) 25766 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; 25767 switch (next2 = bits) { 25768 case 0: 25769 for (bits = 0, maxpower = Math.pow(2, 8), power = 1; power != maxpower; ) 25770 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; 25771 c = f4(bits); 25772 break; 25773 case 1: 25774 for (bits = 0, maxpower = Math.pow(2, 16), power = 1; power != maxpower; ) 25775 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; 25776 c = f4(bits); 25777 break; 25778 case 2: 25779 return ""; 25780 } 25781 for (dictionary[3] = c, w = c, result.push(c); ; ) { 25782 if (data.index > length2) 25783 return ""; 25784 for (bits = 0, maxpower = Math.pow(2, numBits), power = 1; power != maxpower; ) 25785 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; 25786 switch (c = bits) { 25787 case 0: 25788 for (bits = 0, maxpower = Math.pow(2, 8), power = 1; power != maxpower; ) 25789 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; 25790 dictionary[dictSize++] = f4(bits), c = dictSize - 1, enlargeIn--; 25791 break; 25792 case 1: 25793 for (bits = 0, maxpower = Math.pow(2, 16), power = 1; power != maxpower; ) 25794 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; 25795 dictionary[dictSize++] = f4(bits), c = dictSize - 1, enlargeIn--; 25796 break; 25797 case 2: 25798 return result.join(""); 25799 } 25800 if (enlargeIn == 0 && (enlargeIn = Math.pow(2, numBits), numBits++), dictionary[c]) 25801 entry = dictionary[c]; 25802 else if (c === dictSize) 25803 entry = w + w.charAt(0); 25804 else 25805 return null; 25806 result.push(entry), dictionary[dictSize++] = w + entry.charAt(0), enlargeIn--, w = entry, enlargeIn == 0 && (enlargeIn = Math.pow(2, numBits), numBits++); 25807 } 25808 } 25809 }; 25810 return LZString2; 25811 })(); 25812 typeof define == "function" && define.amd ? define(function() { 25813 return LZString; 25814 }) : typeof module2 < "u" && module2 != null ? module2.exports = LZString : typeof angular < "u" && angular != null && angular.module("LZString", []).factory("LZString", function() { 25815 return LZString; 25816 }); 25817 } 25818}); 25819
vendor: 979 bytes, lines 25820-25848
25820// ../../node_modules/toggle-selection/index.js 25821var require_toggle_selection = __commonJS({ 25822 "../../node_modules/toggle-selection/index.js"(exports, module2) { 25823 module2.exports = function() { 25824 var selection = document.getSelection(); 25825 if (!selection.rangeCount) 25826 return function() { 25827 }; 25828 for (var active = document.activeElement, ranges = [], i = 0; i < selection.rangeCount; i++) 25829 ranges.push(selection.getRangeAt(i)); 25830 switch (active.tagName.toUpperCase()) { 25831 // .toUpperCase handles XHTML 25832 case "INPUT": 25833 case "TEXTAREA": 25834 active.blur(); 25835 break; 25836 default: 25837 active = null; 25838 break; 25839 } 25840 return selection.removeAllRanges(), function() { 25841 selection.type === "Caret" && selection.removeAllRanges(), selection.rangeCount || ranges.forEach(function(range) { 25842 selection.addRange(range); 25843 }), active && active.focus(); 25844 }; 25845 }; 25846 } 25847}); 25848
vendor: 3,073 bytes, lines 25849-25895
25849// ../../node_modules/copy-to-clipboard/index.js 25850var require_copy_to_clipboard = __commonJS({ 25851 "../../node_modules/copy-to-clipboard/index.js"(exports, module2) { 25852 "use strict"; 25853 var deselectCurrent = require_toggle_selection(), clipboardToIE11Formatting = { 25854 "text/plain": "Text", 25855 "text/html": "Url", 25856 default: "Text" 25857 }, defaultMessage = "Copy to clipboard: #{key}, Enter"; 25858 function format4(message) { 25859 var copyKey = (/mac os x/i.test(navigator.userAgent) ? "\u2318" : "Ctrl") + "+C"; 25860 return message.replace(/#{\s*key\s*}/g, copyKey); 25861 } 25862 function copy5(text, options) { 25863 var debug2, message, reselectPrevious, range, selection, mark, success = !1; 25864 options || (options = {}), debug2 = options.debug || !1; 25865 try { 25866 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) { 25867 if (e.stopPropagation(), options.format) 25868 if (e.preventDefault(), typeof e.clipboardData > "u") { 25869 debug2 && console.warn("unable to use e.clipboardData"), debug2 && console.warn("trying IE specific stuff"), window.clipboardData.clearData(); 25870 var format5 = clipboardToIE11Formatting[options.format] || clipboardToIE11Formatting.default; 25871 window.clipboardData.setData(format5, text); 25872 } else 25873 e.clipboardData.clearData(), e.clipboardData.setData(options.format, text); 25874 options.onCopy && (e.preventDefault(), options.onCopy(e.clipboardData)); 25875 }), document.body.appendChild(mark), range.selectNodeContents(mark), selection.addRange(range); 25876 var successful = document.execCommand("copy"); 25877 if (!successful) 25878 throw new Error("copy command was unsuccessful"); 25879 success = !0; 25880 } catch (err) { 25881 debug2 && console.error("unable to copy using execCommand: ", err), debug2 && console.warn("trying IE specific stuff"); 25882 try { 25883 window.clipboardData.setData(options.format || "text", text), options.onCopy && options.onCopy(window.clipboardData), success = !0; 25884 } catch (err2) { 25885 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); 25886 } 25887 } finally { 25888 selection && (typeof selection.removeRange == "function" ? selection.removeRange(range) : selection.removeAllRanges()), mark && document.body.removeChild(mark), reselectPrevious(); 25889 } 25890 return success; 25891 } 25892 module2.exports = copy5; 25893 } 25894}); 25895
vendor: 767 bytes, lines 25896-25922
25896// ../../node_modules/semver/internal/constants.js 25897var require_constants = __commonJS({ 25898 "../../node_modules/semver/internal/constants.js"(exports, module2) { 25899 "use strict"; 25900 var SEMVER_SPEC_VERSION = "2.0.0", MAX_SAFE_INTEGER = Number.MAX_SAFE_INTEGER || /* istanbul ignore next */ 25901 9007199254740991, MAX_SAFE_COMPONENT_LENGTH = 16, MAX_SAFE_BUILD_LENGTH = 250, RELEASE_TYPES = [ 25902 "major", 25903 "premajor", 25904 "minor", 25905 "preminor", 25906 "patch", 25907 "prepatch", 25908 "prerelease" 25909 ]; 25910 module2.exports = { 25911 MAX_LENGTH: 256, 25912 MAX_SAFE_COMPONENT_LENGTH, 25913 MAX_SAFE_BUILD_LENGTH, 25914 MAX_SAFE_INTEGER, 25915 RELEASE_TYPES, 25916 SEMVER_SPEC_VERSION, 25917 FLAG_INCLUDE_PRERELEASE: 1, 25918 FLAG_LOOSE: 2 25919 }; 25920 } 25921}); 25922
vendor: 401 bytes, lines 25923-25932
25923// ../../node_modules/semver/internal/debug.js 25924var require_debug = __commonJS({ 25925 "../../node_modules/semver/internal/debug.js"(exports, module2) { 25926 "use strict"; 25927 var debug2 = typeof process == "object" && process.env && process.env.NODE_DEBUG && /\bsemver\b/i.test(process.env.NODE_DEBUG) ? (...args) => console.error("SEMVER", ...args) : () => { 25928 }; 25929 module2.exports = debug2; 25930 } 25931}); 25932
vendor: 5,091 bytes, lines 25933-26003
25933// ../../node_modules/semver/internal/re.js 25934var require_re = __commonJS({ 25935 "../../node_modules/semver/internal/re.js"(exports, module2) { 25936 "use strict"; 25937 var { 25938 MAX_SAFE_COMPONENT_LENGTH, 25939 MAX_SAFE_BUILD_LENGTH, 25940 MAX_LENGTH 25941 } = require_constants(), debug2 = require_debug(); 25942 exports = module2.exports = {}; 25943 var re = exports.re = [], safeRe = exports.safeRe = [], src = exports.src = [], safeSrc = exports.safeSrc = [], t = exports.t = {}, R = 0, LETTERDASHNUMBER = "[a-zA-Z0-9-]", safeRegexReplacements = [ 25944 ["\\s", 1], 25945 ["\\d", MAX_LENGTH], 25946 [LETTERDASHNUMBER, MAX_SAFE_BUILD_LENGTH] 25947 ], makeSafeRegex = (value) => { 25948 for (let [token2, max2] of safeRegexReplacements) 25949 value = value.split(`${token2}*`).join(`${token2}{0,${max2}}`).split(`${token2}+`).join(`${token2}{1,${max2}}`); 25950 return value; 25951 }, createToken = (name, value, isGlobal) => { 25952 let safe2 = makeSafeRegex(value), index4 = R++; 25953 debug2(name, index4, value), t[name] = index4, src[index4] = value, safeSrc[index4] = safe2, re[index4] = new RegExp(value, isGlobal ? "g" : void 0), safeRe[index4] = new RegExp(safe2, isGlobal ? "g" : void 0); 25954 }; 25955 createToken("NUMERICIDENTIFIER", "0|[1-9]\\d*"); 25956 createToken("NUMERICIDENTIFIERLOOSE", "\\d+"); 25957 createToken("NONNUMERICIDENTIFIER", `\\d*[a-zA-Z-]${LETTERDASHNUMBER}*`); 25958 createToken("MAINVERSION", `(${src[t.NUMERICIDENTIFIER]})\\.(${src[t.NUMERICIDENTIFIER]})\\.(${src[t.NUMERICIDENTIFIER]})`); 25959 createToken("MAINVERSIONLOOSE", `(${src[t.NUMERICIDENTIFIERLOOSE]})\\.(${src[t.NUMERICIDENTIFIERLOOSE]})\\.(${src[t.NUMERICIDENTIFIERLOOSE]})`); 25960 createToken("PRERELEASEIDENTIFIER", `(?:${src[t.NONNUMERICIDENTIFIER]}|${src[t.NUMERICIDENTIFIER]})`); 25961 createToken("PRERELEASEIDENTIFIERLOOSE", `(?:${src[t.NONNUMERICIDENTIFIER]}|${src[t.NUMERICIDENTIFIERLOOSE]})`); 25962 createToken("PRERELEASE", `(?:-(${src[t.PRERELEASEIDENTIFIER]}(?:\\.${src[t.PRERELEASEIDENTIFIER]})*))`); 25963 createToken("PRERELEASELOOSE", `(?:-?(${src[t.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${src[t.PRERELEASEIDENTIFIERLOOSE]})*))`); 25964 createToken("BUILDIDENTIFIER", `${LETTERDASHNUMBER}+`); 25965 createToken("BUILD", `(?:\\+(${src[t.BUILDIDENTIFIER]}(?:\\.${src[t.BUILDIDENTIFIER]})*))`); 25966 createToken("FULLPLAIN", `v?${src[t.MAINVERSION]}${src[t.PRERELEASE]}?${src[t.BUILD]}?`); 25967 createToken("FULL", `^${src[t.FULLPLAIN]}$`); 25968 createToken("LOOSEPLAIN", `[v=\\s]*${src[t.MAINVERSIONLOOSE]}${src[t.PRERELEASELOOSE]}?${src[t.BUILD]}?`); 25969 createToken("LOOSE", `^${src[t.LOOSEPLAIN]}$`); 25970 createToken("GTLT", "((?:<|>)?=?)"); 25971 createToken("XRANGEIDENTIFIERLOOSE", `${src[t.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`); 25972 createToken("XRANGEIDENTIFIER", `${src[t.NUMERICIDENTIFIER]}|x|X|\\*`); 25973 createToken("XRANGEPLAIN", `[v=\\s]*(${src[t.XRANGEIDENTIFIER]})(?:\\.(${src[t.XRANGEIDENTIFIER]})(?:\\.(${src[t.XRANGEIDENTIFIER]})(?:${src[t.PRERELEASE]})?${src[t.BUILD]}?)?)?`); 25974 createToken("XRANGEPLAINLOOSE", `[v=\\s]*(${src[t.XRANGEIDENTIFIERLOOSE]})(?:\\.(${src[t.XRANGEIDENTIFIERLOOSE]})(?:\\.(${src[t.XRANGEIDENTIFIERLOOSE]})(?:${src[t.PRERELEASELOOSE]})?${src[t.BUILD]}?)?)?`); 25975 createToken("XRANGE", `^${src[t.GTLT]}\\s*${src[t.XRANGEPLAIN]}$`); 25976 createToken("XRANGELOOSE", `^${src[t.GTLT]}\\s*${src[t.XRANGEPLAINLOOSE]}$`); 25977 createToken("COERCEPLAIN", `(^|[^\\d])(\\d{1,${MAX_SAFE_COMPONENT_LENGTH}})(?:\\.(\\d{1,${MAX_SAFE_COMPONENT_LENGTH}}))?(?:\\.(\\d{1,${MAX_SAFE_COMPONENT_LENGTH}}))?`); 25978 createToken("COERCE", `${src[t.COERCEPLAIN]}(?:$|[^\\d])`); 25979 createToken("COERCEFULL", src[t.COERCEPLAIN] + `(?:${src[t.PRERELEASE]})?(?:${src[t.BUILD]})?(?:$|[^\\d])`); 25980 createToken("COERCERTL", src[t.COERCE], !0); 25981 createToken("COERCERTLFULL", src[t.COERCEFULL], !0); 25982 createToken("LONETILDE", "(?:~>?)"); 25983 createToken("TILDETRIM", `(\\s*)${src[t.LONETILDE]}\\s+`, !0); 25984 exports.tildeTrimReplace = "$1~"; 25985 createToken("TILDE", `^${src[t.LONETILDE]}${src[t.XRANGEPLAIN]}$`); 25986 createToken("TILDELOOSE", `^${src[t.LONETILDE]}${src[t.XRANGEPLAINLOOSE]}$`); 25987 createToken("LONECARET", "(?:\\^)"); 25988 createToken("CARETTRIM", `(\\s*)${src[t.LONECARET]}\\s+`, !0); 25989 exports.caretTrimReplace = "$1^"; 25990 createToken("CARET", `^${src[t.LONECARET]}${src[t.XRANGEPLAIN]}$`); 25991 createToken("CARETLOOSE", `^${src[t.LONECARET]}${src[t.XRANGEPLAINLOOSE]}$`); 25992 createToken("COMPARATORLOOSE", `^${src[t.GTLT]}\\s*(${src[t.LOOSEPLAIN]})$|^$`); 25993 createToken("COMPARATOR", `^${src[t.GTLT]}\\s*(${src[t.FULLPLAIN]})$|^$`); 25994 createToken("COMPARATORTRIM", `(\\s*)${src[t.GTLT]}\\s*(${src[t.LOOSEPLAIN]}|${src[t.XRANGEPLAIN]})`, !0); 25995 exports.comparatorTrimReplace = "$1$2$3"; 25996 createToken("HYPHENRANGE", `^\\s*(${src[t.XRANGEPLAIN]})\\s+-\\s+(${src[t.XRANGEPLAIN]})\\s*$`); 25997 createToken("HYPHENRANGELOOSE", `^\\s*(${src[t.XRANGEPLAINLOOSE]})\\s+-\\s+(${src[t.XRANGEPLAINLOOSE]})\\s*$`); 25998 createToken("STAR", "(<|>)?=?\\s*\\*"); 25999 createToken("GTE0", "^\\s*>=\\s*0\\.0\\.0\\s*$"); 26000 createToken("GTE0PRE", "^\\s*>=\\s*0\\.0\\.0-0\\s*$"); 26001 } 26002}); 26003
vendor: 420 bytes, lines 26004-26012
26004// ../../node_modules/semver/internal/parse-options.js 26005var require_parse_options = __commonJS({ 26006 "../../node_modules/semver/internal/parse-options.js"(exports, module2) { 26007 "use strict"; 26008 var looseOption = Object.freeze({ loose: !0 }), emptyOpts = Object.freeze({}), parseOptions = (options) => options ? typeof options != "object" ? looseOption : options : emptyOpts; 26009 module2.exports = parseOptions; 26010 } 26011}); 26012
vendor: 692 bytes, lines 26013-26029
26013// ../../node_modules/semver/internal/identifiers.js 26014var require_identifiers = __commonJS({ 26015 "../../node_modules/semver/internal/identifiers.js"(exports, module2) { 26016 "use strict"; 26017 var numeric = /^[0-9]+$/, compareIdentifiers = (a3, b) => { 26018 if (typeof a3 == "number" && typeof b == "number") 26019 return a3 === b ? 0 : a3 < b ? -1 : 1; 26020 let anum = numeric.test(a3), bnum = numeric.test(b); 26021 return anum && bnum && (a3 = +a3, b = +b), a3 === b ? 0 : anum && !bnum ? -1 : bnum && !anum ? 1 : a3 < b ? -1 : 1; 26022 }, rcompareIdentifiers = (a3, b) => compareIdentifiers(b, a3); 26023 module2.exports = { 26024 compareIdentifiers, 26025 rcompareIdentifiers 26026 }; 26027 } 26028}); 26029
vendor: 7,900 bytes, lines 26030-26191
26030// ../../node_modules/semver/classes/semver.js 26031var require_semver = __commonJS({ 26032 "../../node_modules/semver/classes/semver.js"(exports, module2) { 26033 "use strict"; 26034 var debug2 = require_debug(), { MAX_LENGTH, MAX_SAFE_INTEGER } = require_constants(), { safeRe: re, t } = require_re(), parseOptions = require_parse_options(), { compareIdentifiers } = require_identifiers(), SemVer = class _SemVer { 26035 constructor(version2, options) { 26036 if (options = parseOptions(options), version2 instanceof _SemVer) { 26037 if (version2.loose === !!options.loose && version2.includePrerelease === !!options.includePrerelease) 26038 return version2; 26039 version2 = version2.version; 26040 } else if (typeof version2 != "string") 26041 throw new TypeError(`Invalid version. Must be a string. Got type "${typeof version2}".`); 26042 if (version2.length > MAX_LENGTH) 26043 throw new TypeError( 26044 `version is longer than ${MAX_LENGTH} characters` 26045 ); 26046 debug2("SemVer", version2, options), this.options = options, this.loose = !!options.loose, this.includePrerelease = !!options.includePrerelease; 26047 let m3 = version2.trim().match(options.loose ? re[t.LOOSE] : re[t.FULL]); 26048 if (!m3) 26049 throw new TypeError(`Invalid Version: ${version2}`); 26050 if (this.raw = version2, this.major = +m3[1], this.minor = +m3[2], this.patch = +m3[3], this.major > MAX_SAFE_INTEGER || this.major < 0) 26051 throw new TypeError("Invalid major version"); 26052 if (this.minor > MAX_SAFE_INTEGER || this.minor < 0) 26053 throw new TypeError("Invalid minor version"); 26054 if (this.patch > MAX_SAFE_INTEGER || this.patch < 0) 26055 throw new TypeError("Invalid patch version"); 26056 m3[4] ? this.prerelease = m3[4].split(".").map((id) => { 26057 if (/^[0-9]+$/.test(id)) { 26058 let num = +id; 26059 if (num >= 0 && num < MAX_SAFE_INTEGER) 26060 return num; 26061 } 26062 return id; 26063 }) : this.prerelease = [], this.build = m3[5] ? m3[5].split(".") : [], this.format(); 26064 } 26065 format() { 26066 return this.version = `${this.major}.${this.minor}.${this.patch}`, this.prerelease.length && (this.version += `-${this.prerelease.join(".")}`), this.version; 26067 } 26068 toString() { 26069 return this.version; 26070 } 26071 compare(other) { 26072 if (debug2("SemVer.compare", this.version, this.options, other), !(other instanceof _SemVer)) { 26073 if (typeof other == "string" && other === this.version) 26074 return 0; 26075 other = new _SemVer(other, this.options); 26076 } 26077 return other.version === this.version ? 0 : this.compareMain(other) || this.comparePre(other); 26078 } 26079 compareMain(other) { 26080 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; 26081 } 26082 comparePre(other) { 26083 if (other instanceof _SemVer || (other = new _SemVer(other, this.options)), this.prerelease.length && !other.prerelease.length) 26084 return -1; 26085 if (!this.prerelease.length && other.prerelease.length) 26086 return 1; 26087 if (!this.prerelease.length && !other.prerelease.length) 26088 return 0; 26089 let i = 0; 26090 do { 26091 let a3 = this.prerelease[i], b = other.prerelease[i]; 26092 if (debug2("prerelease compare", i, a3, b), a3 === void 0 && b === void 0) 26093 return 0; 26094 if (b === void 0) 26095 return 1; 26096 if (a3 === void 0) 26097 return -1; 26098 if (a3 === b) 26099 continue; 26100 return compareIdentifiers(a3, b); 26101 } while (++i); 26102 } 26103 compareBuild(other) { 26104 other instanceof _SemVer || (other = new _SemVer(other, this.options)); 26105 let i = 0; 26106 do { 26107 let a3 = this.build[i], b = other.build[i]; 26108 if (debug2("build compare", i, a3, b), a3 === void 0 && b === void 0) 26109 return 0; 26110 if (b === void 0) 26111 return 1; 26112 if (a3 === void 0) 26113 return -1; 26114 if (a3 === b) 26115 continue; 26116 return compareIdentifiers(a3, b); 26117 } while (++i); 26118 } 26119 // preminor will bump the version up to the next minor release, and immediately 26120 // down to pre-release. premajor and prepatch work the same way. 26121 inc(release, identifier2, identifierBase) { 26122 if (release.startsWith("pre")) { 26123 if (!identifier2 && identifierBase === !1) 26124 throw new Error("invalid increment argument: identifier is empty"); 26125 if (identifier2) { 26126 let match3 = `-${identifier2}`.match(this.options.loose ? re[t.PRERELEASELOOSE] : re[t.PRERELEASE]); 26127 if (!match3 || match3[1] !== identifier2) 26128 throw new Error(`invalid identifier: ${identifier2}`); 26129 } 26130 } 26131 switch (release) { 26132 case "premajor": 26133 this.prerelease.length = 0, this.patch = 0, this.minor = 0, this.major++, this.inc("pre", identifier2, identifierBase); 26134 break; 26135 case "preminor": 26136 this.prerelease.length = 0, this.patch = 0, this.minor++, this.inc("pre", identifier2, identifierBase); 26137 break; 26138 case "prepatch": 26139 this.prerelease.length = 0, this.inc("patch", identifier2, identifierBase), this.inc("pre", identifier2, identifierBase); 26140 break; 26141 // If the input is a non-prerelease version, this acts the same as 26142 // prepatch. 26143 case "prerelease": 26144 this.prerelease.length === 0 && this.inc("patch", identifier2, identifierBase), this.inc("pre", identifier2, identifierBase); 26145 break; 26146 case "release": 26147 if (this.prerelease.length === 0) 26148 throw new Error(`version ${this.raw} is not a prerelease`); 26149 this.prerelease.length = 0; 26150 break; 26151 case "major": 26152 (this.minor !== 0 || this.patch !== 0 || this.prerelease.length === 0) && this.major++, this.minor = 0, this.patch = 0, this.prerelease = []; 26153 break; 26154 case "minor": 26155 (this.patch !== 0 || this.prerelease.length === 0) && this.minor++, this.patch = 0, this.prerelease = []; 26156 break; 26157 case "patch": 26158 this.prerelease.length === 0 && this.patch++, this.prerelease = []; 26159 break; 26160 // This probably shouldn't be used publicly. 26161 // 1.0.0 'pre' would become 1.0.0-0 which is the wrong direction. 26162 case "pre": { 26163 let base = Number(identifierBase) ? 1 : 0; 26164 if (this.prerelease.length === 0) 26165 this.prerelease = [base]; 26166 else { 26167 let i = this.prerelease.length; 26168 for (; --i >= 0; ) 26169 typeof this.prerelease[i] == "number" && (this.prerelease[i]++, i = -2); 26170 if (i === -1) { 26171 if (identifier2 === this.prerelease.join(".") && identifierBase === !1) 26172 throw new Error("invalid increment argument: identifier already exists"); 26173 this.prerelease.push(base); 26174 } 26175 } 26176 if (identifier2) { 26177 let prerelease = [identifier2, base]; 26178 identifierBase === !1 && (prerelease = [identifier2]), compareIdentifiers(this.prerelease[0], identifier2) === 0 ? isNaN(this.prerelease[1]) && (this.prerelease = prerelease) : this.prerelease = prerelease; 26179 } 26180 break; 26181 } 26182 default: 26183 throw new Error(`invalid increment argument: ${release}`); 26184 } 26185 return this.raw = this.format(), this.build.length && (this.raw += `+${this.build.join(".")}`), this; 26186 } 26187 }; 26188 module2.exports = SemVer; 26189 } 26190}); 26191
vendor: 519 bytes, lines 26192-26210
26192// ../../node_modules/semver/functions/parse.js 26193var require_parse2 = __commonJS({ 26194 "../../node_modules/semver/functions/parse.js"(exports, module2) { 26195 "use strict"; 26196 var SemVer = require_semver(), parse9 = (version2, options, throwErrors = !1) => { 26197 if (version2 instanceof SemVer) 26198 return version2; 26199 try { 26200 return new SemVer(version2, options); 26201 } catch (er) { 26202 if (!throwErrors) 26203 return null; 26204 throw er; 26205 } 26206 }; 26207 module2.exports = parse9; 26208 } 26209}); 26210
vendor: 357 bytes, lines 26211-26222
26211// ../../node_modules/semver/functions/valid.js 26212var require_valid = __commonJS({ 26213 "../../node_modules/semver/functions/valid.js"(exports, module2) { 26214 "use strict"; 26215 var parse9 = require_parse2(), valid = (version2, options) => { 26216 let v = parse9(version2, options); 26217 return v ? v.version : null; 26218 }; 26219 module2.exports = valid; 26220 } 26221}); 26222
vendor: 389 bytes, lines 26223-26234
26223// ../../node_modules/semver/functions/clean.js 26224var require_clean = __commonJS({ 26225 "../../node_modules/semver/functions/clean.js"(exports, module2) { 26226 "use strict"; 26227 var parse9 = require_parse2(), clean = (version2, options) => { 26228 let s3 = parse9(version2.trim().replace(/^[=v]+/, ""), options); 26229 return s3 ? s3.version : null; 26230 }; 26231 module2.exports = clean; 26232 } 26233}); 26234
vendor: 649 bytes, lines 26235-26253
26235// ../../node_modules/semver/functions/inc.js 26236var require_inc = __commonJS({ 26237 "../../node_modules/semver/functions/inc.js"(exports, module2) { 26238 "use strict"; 26239 var SemVer = require_semver(), inc = (version2, release, options, identifier2, identifierBase) => { 26240 typeof options == "string" && (identifierBase = identifier2, identifier2 = options, options = void 0); 26241 try { 26242 return new SemVer( 26243 version2 instanceof SemVer ? version2.version : version2, 26244 options 26245 ).inc(release, identifier2, identifierBase).version; 26246 } catch { 26247 return null; 26248 } 26249 }; 26250 module2.exports = inc; 26251 } 26252}); 26253
vendor: 1,063 bytes, lines 26254-26275
26254// ../../node_modules/semver/functions/diff.js 26255var require_diff = __commonJS({ 26256 "../../node_modules/semver/functions/diff.js"(exports, module2) { 26257 "use strict"; 26258 var parse9 = require_parse2(), diff2 = (version1, version2) => { 26259 let v1 = parse9(version1, null, !0), v2 = parse9(version2, null, !0), comparison = v1.compare(v2); 26260 if (comparison === 0) 26261 return null; 26262 let v1Higher = comparison > 0, highVersion = v1Higher ? v1 : v2, lowVersion = v1Higher ? v2 : v1, highHasPre = !!highVersion.prerelease.length; 26263 if (!!lowVersion.prerelease.length && !highHasPre) { 26264 if (!lowVersion.patch && !lowVersion.minor) 26265 return "major"; 26266 if (lowVersion.compareMain(highVersion) === 0) 26267 return lowVersion.minor && !lowVersion.patch ? "minor" : "patch"; 26268 } 26269 let prefix4 = highHasPre ? "pre" : ""; 26270 return v1.major !== v2.major ? prefix4 + "major" : v1.minor !== v2.minor ? prefix4 + "minor" : v1.patch !== v2.patch ? prefix4 + "patch" : "prerelease"; 26271 }; 26272 module2.exports = diff2; 26273 } 26274}); 26275
vendor: 293 bytes, lines 26276-26284
26276// ../../node_modules/semver/functions/major.js 26277var require_major = __commonJS({ 26278 "../../node_modules/semver/functions/major.js"(exports, module2) { 26279 "use strict"; 26280 var SemVer = require_semver(), major = (a3, loose) => new SemVer(a3, loose).major; 26281 module2.exports = major; 26282 } 26283}); 26284
vendor: 293 bytes, lines 26285-26293
26285// ../../node_modules/semver/functions/minor.js 26286var require_minor = __commonJS({ 26287 "../../node_modules/semver/functions/minor.js"(exports, module2) { 26288 "use strict"; 26289 var SemVer = require_semver(), minor = (a3, loose) => new SemVer(a3, loose).minor; 26290 module2.exports = minor; 26291 } 26292}); 26293
vendor: 293 bytes, lines 26294-26302
26294// ../../node_modules/semver/functions/patch.js 26295var require_patch = __commonJS({ 26296 "../../node_modules/semver/functions/patch.js"(exports, module2) { 26297 "use strict"; 26298 var SemVer = require_semver(), patch = (a3, loose) => new SemVer(a3, loose).patch; 26299 module2.exports = patch; 26300 } 26301}); 26302
vendor: 428 bytes, lines 26303-26314
26303// ../../node_modules/semver/functions/prerelease.js 26304var require_prerelease = __commonJS({ 26305 "../../node_modules/semver/functions/prerelease.js"(exports, module2) { 26306 "use strict"; 26307 var parse9 = require_parse2(), prerelease = (version2, options) => { 26308 let parsed = parse9(version2, options); 26309 return parsed && parsed.prerelease.length ? parsed.prerelease : null; 26310 }; 26311 module2.exports = prerelease; 26312 } 26313}); 26314
vendor: 330 bytes, lines 26315-26323
26315// ../../node_modules/semver/functions/compare.js 26316var require_compare = __commonJS({ 26317 "../../node_modules/semver/functions/compare.js"(exports, module2) { 26318 "use strict"; 26319 var SemVer = require_semver(), compare = (a3, b, loose) => new SemVer(a3, loose).compare(new SemVer(b, loose)); 26320 module2.exports = compare; 26321 } 26322}); 26323
vendor: 307 bytes, lines 26324-26332
26324// ../../node_modules/semver/functions/rcompare.js 26325var require_rcompare = __commonJS({ 26326 "../../node_modules/semver/functions/rcompare.js"(exports, module2) { 26327 "use strict"; 26328 var compare = require_compare(), rcompare = (a3, b, loose) => compare(b, a3, loose); 26329 module2.exports = rcompare; 26330 } 26331}); 26332
vendor: 320 bytes, lines 26333-26341
26333// ../../node_modules/semver/functions/compare-loose.js 26334var require_compare_loose = __commonJS({ 26335 "../../node_modules/semver/functions/compare-loose.js"(exports, module2) { 26336 "use strict"; 26337 var compare = require_compare(), compareLoose = (a3, b) => compare(a3, b, !0); 26338 module2.exports = compareLoose; 26339 } 26340}); 26341
vendor: 467 bytes, lines 26342-26353
26342// ../../node_modules/semver/functions/compare-build.js 26343var require_compare_build = __commonJS({ 26344 "../../node_modules/semver/functions/compare-build.js"(exports, module2) { 26345 "use strict"; 26346 var SemVer = require_semver(), compareBuild = (a3, b, loose) => { 26347 let versionA = new SemVer(a3, loose), versionB = new SemVer(b, loose); 26348 return versionA.compare(versionB) || versionA.compareBuild(versionB); 26349 }; 26350 module2.exports = compareBuild; 26351 } 26352}); 26353
vendor: 324 bytes, lines 26354-26362
26354// ../../node_modules/semver/functions/sort.js 26355var require_sort = __commonJS({ 26356 "../../node_modules/semver/functions/sort.js"(exports, module2) { 26357 "use strict"; 26358 var compareBuild = require_compare_build(), sort = (list, loose) => list.sort((a3, b) => compareBuild(a3, b, loose)); 26359 module2.exports = sort; 26360 } 26361}); 26362
vendor: 329 bytes, lines 26363-26371
26363// ../../node_modules/semver/functions/rsort.js 26364var require_rsort = __commonJS({ 26365 "../../node_modules/semver/functions/rsort.js"(exports, module2) { 26366 "use strict"; 26367 var compareBuild = require_compare_build(), rsort = (list, loose) => list.sort((a3, b) => compareBuild(b, a3, loose)); 26368 module2.exports = rsort; 26369 } 26370}); 26371
vendor: 281 bytes, lines 26372-26380
26372// ../../node_modules/semver/functions/gt.js 26373var require_gt = __commonJS({ 26374 "../../node_modules/semver/functions/gt.js"(exports, module2) { 26375 "use strict"; 26376 var compare = require_compare(), gt = (a3, b, loose) => compare(a3, b, loose) > 0; 26377 module2.exports = gt; 26378 } 26379}); 26380
vendor: 281 bytes, lines 26381-26389
26381// ../../node_modules/semver/functions/lt.js 26382var require_lt = __commonJS({ 26383 "../../node_modules/semver/functions/lt.js"(exports, module2) { 26384 "use strict"; 26385 var compare = require_compare(), lt = (a3, b, loose) => compare(a3, b, loose) < 0; 26386 module2.exports = lt; 26387 } 26388}); 26389
vendor: 285 bytes, lines 26390-26398
26390// ../../node_modules/semver/functions/eq.js 26391var require_eq = __commonJS({ 26392 "../../node_modules/semver/functions/eq.js"(exports, module2) { 26393 "use strict"; 26394 var compare = require_compare(), eq4 = (a3, b, loose) => compare(a3, b, loose) === 0; 26395 module2.exports = eq4; 26396 } 26397}); 26398
vendor: 288 bytes, lines 26399-26407
26399// ../../node_modules/semver/functions/neq.js 26400var require_neq = __commonJS({ 26401 "../../node_modules/semver/functions/neq.js"(exports, module2) { 26402 "use strict"; 26403 var compare = require_compare(), neq = (a3, b, loose) => compare(a3, b, loose) !== 0; 26404 module2.exports = neq; 26405 } 26406}); 26407
vendor: 287 bytes, lines 26408-26416
26408// ../../node_modules/semver/functions/gte.js 26409var require_gte = __commonJS({ 26410 "../../node_modules/semver/functions/gte.js"(exports, module2) { 26411 "use strict"; 26412 var compare = require_compare(), gte = (a3, b, loose) => compare(a3, b, loose) >= 0; 26413 module2.exports = gte; 26414 } 26415}); 26416
vendor: 287 bytes, lines 26417-26425
26417// ../../node_modules/semver/functions/lte.js 26418var require_lte = __commonJS({ 26419 "../../node_modules/semver/functions/lte.js"(exports, module2) { 26420 "use strict"; 26421 var compare = require_compare(), lte = (a3, b, loose) => compare(a3, b, loose) <= 0; 26422 module2.exports = lte; 26423 } 26424}); 26425
vendor: 1,092 bytes, lines 26426-26457
26426// ../../node_modules/semver/functions/cmp.js 26427var require_cmp = __commonJS({ 26428 "../../node_modules/semver/functions/cmp.js"(exports, module2) { 26429 "use strict"; 26430 var eq4 = require_eq(), neq = require_neq(), gt = require_gt(), gte = require_gte(), lt = require_lt(), lte = require_lte(), cmp = (a3, op, b, loose) => { 26431 switch (op) { 26432 case "===": 26433 return typeof a3 == "object" && (a3 = a3.version), typeof b == "object" && (b = b.version), a3 === b; 26434 case "!==": 26435 return typeof a3 == "object" && (a3 = a3.version), typeof b == "object" && (b = b.version), a3 !== b; 26436 case "": 26437 case "=": 26438 case "==": 26439 return eq4(a3, b, loose); 26440 case "!=": 26441 return neq(a3, b, loose); 26442 case ">": 26443 return gt(a3, b, loose); 26444 case ">=": 26445 return gte(a3, b, loose); 26446 case "<": 26447 return lt(a3, b, loose); 26448 case "<=": 26449 return lte(a3, b, loose); 26450 default: 26451 throw new TypeError(`Invalid operator: ${op}`); 26452 } 26453 }; 26454 module2.exports = cmp; 26455 } 26456}); 26457
vendor: 1,540 bytes, lines 26458-26485
26458// ../../node_modules/semver/functions/coerce.js 26459var require_coerce = __commonJS({ 26460 "../../node_modules/semver/functions/coerce.js"(exports, module2) { 26461 "use strict"; 26462 var SemVer = require_semver(), parse9 = require_parse2(), { safeRe: re, t } = require_re(), coerce = (version2, options) => { 26463 if (version2 instanceof SemVer) 26464 return version2; 26465 if (typeof version2 == "number" && (version2 = String(version2)), typeof version2 != "string") 26466 return null; 26467 options = options || {}; 26468 let match3 = null; 26469 if (!options.rtl) 26470 match3 = version2.match(options.includePrerelease ? re[t.COERCEFULL] : re[t.COERCE]); 26471 else { 26472 let coerceRtlRegex = options.includePrerelease ? re[t.COERCERTLFULL] : re[t.COERCERTL], next2; 26473 for (; (next2 = coerceRtlRegex.exec(version2)) && (!match3 || match3.index + match3[0].length !== version2.length); ) 26474 (!match3 || next2.index + next2[0].length !== match3.index + match3[0].length) && (match3 = next2), coerceRtlRegex.lastIndex = next2.index + next2[1].length + next2[2].length; 26475 coerceRtlRegex.lastIndex = -1; 26476 } 26477 if (match3 === null) 26478 return null; 26479 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]}` : ""; 26480 return parse9(`${major}.${minor}.${patch}${prerelease}${build3}`, options); 26481 }; 26482 module2.exports = coerce; 26483 } 26484}); 26485
vendor: 872 bytes, lines 26486-26516
26486// ../../node_modules/semver/internal/lrucache.js 26487var require_lrucache = __commonJS({ 26488 "../../node_modules/semver/internal/lrucache.js"(exports, module2) { 26489 "use strict"; 26490 var LRUCache = class { 26491 constructor() { 26492 this.max = 1e3, this.map = /* @__PURE__ */ new Map(); 26493 } 26494 get(key) { 26495 let value = this.map.get(key); 26496 if (value !== void 0) 26497 return this.map.delete(key), this.map.set(key, value), value; 26498 } 26499 delete(key) { 26500 return this.map.delete(key); 26501 } 26502 set(key, value) { 26503 if (!this.delete(key) && value !== void 0) { 26504 if (this.map.size >= this.max) { 26505 let firstKey = this.map.keys().next().value; 26506 this.delete(firstKey); 26507 } 26508 this.map.set(key, value); 26509 } 26510 return this; 26511 } 26512 }; 26513 module2.exports = LRUCache; 26514 } 26515}); 26516
vendor: 9,932 bytes, lines 26517-26652
26517// ../../node_modules/semver/classes/range.js 26518var require_range2 = __commonJS({ 26519 "../../node_modules/semver/classes/range.js"(exports, module2) { 26520 "use strict"; 26521 var SPACE_CHARACTERS = /\s+/g, Range = class _Range { 26522 constructor(range, options) { 26523 if (options = parseOptions(options), range instanceof _Range) 26524 return range.loose === !!options.loose && range.includePrerelease === !!options.includePrerelease ? range : new _Range(range.raw, options); 26525 if (range instanceof Comparator) 26526 return this.raw = range.value, this.set = [[range]], this.formatted = void 0, this; 26527 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) 26528 throw new TypeError(`Invalid SemVer Range: ${this.raw}`); 26529 if (this.set.length > 1) { 26530 let first = this.set[0]; 26531 if (this.set = this.set.filter((c) => !isNullSet(c[0])), this.set.length === 0) 26532 this.set = [first]; 26533 else if (this.set.length > 1) { 26534 for (let c of this.set) 26535 if (c.length === 1 && isAny(c[0])) { 26536 this.set = [c]; 26537 break; 26538 } 26539 } 26540 } 26541 this.formatted = void 0; 26542 } 26543 get range() { 26544 if (this.formatted === void 0) { 26545 this.formatted = ""; 26546 for (let i = 0; i < this.set.length; i++) { 26547 i > 0 && (this.formatted += "||"); 26548 let comps = this.set[i]; 26549 for (let k = 0; k < comps.length; k++) 26550 k > 0 && (this.formatted += " "), this.formatted += comps[k].toString().trim(); 26551 } 26552 } 26553 return this.formatted; 26554 } 26555 format() { 26556 return this.range; 26557 } 26558 toString() { 26559 return this.range; 26560 } 26561 parseRange(range) { 26562 let memoKey = ((this.options.includePrerelease && FLAG_INCLUDE_PRERELEASE) | (this.options.loose && FLAG_LOOSE)) + ":" + range, cached = cache.get(memoKey); 26563 if (cached) 26564 return cached; 26565 let loose = this.options.loose, hr = loose ? re[t.HYPHENRANGELOOSE] : re[t.HYPHENRANGE]; 26566 range = range.replace(hr, hyphenReplace(this.options.includePrerelease)), debug2("hyphen replace", range), range = range.replace(re[t.COMPARATORTRIM], comparatorTrimReplace), debug2("comparator trim", range), range = range.replace(re[t.TILDETRIM], tildeTrimReplace), debug2("tilde trim", range), range = range.replace(re[t.CARETTRIM], caretTrimReplace), debug2("caret trim", range); 26567 let rangeList = range.split(" ").map((comp) => parseComparator(comp, this.options)).join(" ").split(/\s+/).map((comp) => replaceGTE0(comp, this.options)); 26568 loose && (rangeList = rangeList.filter((comp) => (debug2("loose invalid filter", comp, this.options), !!comp.match(re[t.COMPARATORLOOSE])))), debug2("range list", rangeList); 26569 let rangeMap = /* @__PURE__ */ new Map(), comparators = rangeList.map((comp) => new Comparator(comp, this.options)); 26570 for (let comp of comparators) { 26571 if (isNullSet(comp)) 26572 return [comp]; 26573 rangeMap.set(comp.value, comp); 26574 } 26575 rangeMap.size > 1 && rangeMap.has("") && rangeMap.delete(""); 26576 let result = [...rangeMap.values()]; 26577 return cache.set(memoKey, result), result; 26578 } 26579 intersects(range, options) { 26580 if (!(range instanceof _Range)) 26581 throw new TypeError("a Range is required"); 26582 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))))); 26583 } 26584 // if ANY of the sets match ALL of its comparators, then pass 26585 test(version2) { 26586 if (!version2) 26587 return !1; 26588 if (typeof version2 == "string") 26589 try { 26590 version2 = new SemVer(version2, this.options); 26591 } catch { 26592 return !1; 26593 } 26594 for (let i = 0; i < this.set.length; i++) 26595 if (testSet(this.set[i], version2, this.options)) 26596 return !0; 26597 return !1; 26598 } 26599 }; 26600 module2.exports = Range; 26601 var LRU = require_lrucache(), cache = new LRU(), parseOptions = require_parse_options(), Comparator = require_comparator(), debug2 = require_debug(), SemVer = require_semver(), { 26602 safeRe: re, 26603 t, 26604 comparatorTrimReplace, 26605 tildeTrimReplace, 26606 caretTrimReplace 26607 } = require_re(), { FLAG_INCLUDE_PRERELEASE, FLAG_LOOSE } = require_constants(), isNullSet = (c) => c.value === "<0.0.0-0", isAny = (c) => c.value === "", isSatisfiable = (comparators, options) => { 26608 let result = !0, remainingComparators = comparators.slice(), testComparator = remainingComparators.pop(); 26609 for (; result && remainingComparators.length; ) 26610 result = remainingComparators.every((otherComparator) => testComparator.intersects(otherComparator, options)), testComparator = remainingComparators.pop(); 26611 return result; 26612 }, parseComparator = (comp, options) => (comp = comp.replace(re[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) => { 26613 let r2 = options.loose ? re[t.TILDELOOSE] : re[t.TILDE]; 26614 return comp.replace(r2, (_, M, m3, p3, pr) => { 26615 debug2("tilde", comp, _, M, m3, p3, pr); 26616 let ret; 26617 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; 26618 }); 26619 }, replaceCarets = (comp, options) => comp.trim().split(/\s+/).map((c) => replaceCaret(c, options)).join(" "), replaceCaret = (comp, options) => { 26620 debug2("caret", comp, options); 26621 let r2 = options.loose ? re[t.CARETLOOSE] : re[t.CARET], z = options.includePrerelease ? "-0" : ""; 26622 return comp.replace(r2, (_, M, m3, p3, pr) => { 26623 debug2("caret", comp, _, M, m3, p3, pr); 26624 let ret; 26625 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; 26626 }); 26627 }, replaceXRanges = (comp, options) => (debug2("replaceXRanges", comp, options), comp.split(/\s+/).map((c) => replaceXRange(c, options)).join(" ")), replaceXRange = (comp, options) => { 26628 comp = comp.trim(); 26629 let r2 = options.loose ? re[t.XRANGELOOSE] : re[t.XRANGE]; 26630 return comp.replace(r2, (ret, gtlt, M, m3, p3, pr) => { 26631 debug2("xRange", comp, ret, gtlt, M, m3, p3, pr); 26632 let xM = isX(M), xm = xM || isX(m3), xp = xm || isX(p3), anyX = xp; 26633 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; 26634 }); 26635 }, replaceStars = (comp, options) => (debug2("replaceStars", comp, options), comp.trim().replace(re[t.STAR], "")), replaceGTE0 = (comp, options) => (debug2("replaceGTE0", comp, options), comp.trim().replace(re[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) => { 26636 for (let i = 0; i < set3.length; i++) 26637 if (!set3[i].test(version2)) 26638 return !1; 26639 if (version2.prerelease.length && !options.includePrerelease) { 26640 for (let i = 0; i < set3.length; i++) 26641 if (debug2(set3[i].semver), set3[i].semver !== Comparator.ANY && set3[i].semver.prerelease.length > 0) { 26642 let allowed = set3[i].semver; 26643 if (allowed.major === version2.major && allowed.minor === version2.minor && allowed.patch === version2.patch) 26644 return !0; 26645 } 26646 return !1; 26647 } 26648 return !0; 26649 }; 26650 } 26651}); 26652
vendor: 2,940 bytes, lines 26653-26699
26653// ../../node_modules/semver/classes/comparator.js 26654var require_comparator = __commonJS({ 26655 "../../node_modules/semver/classes/comparator.js"(exports, module2) { 26656 "use strict"; 26657 var ANY = Symbol("SemVer ANY"), Comparator = class _Comparator { 26658 static get ANY() { 26659 return ANY; 26660 } 26661 constructor(comp, options) { 26662 if (options = parseOptions(options), comp instanceof _Comparator) { 26663 if (comp.loose === !!options.loose) 26664 return comp; 26665 comp = comp.value; 26666 } 26667 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); 26668 } 26669 parse(comp) { 26670 let r2 = this.options.loose ? re[t.COMPARATORLOOSE] : re[t.COMPARATOR], m3 = comp.match(r2); 26671 if (!m3) 26672 throw new TypeError(`Invalid comparator: ${comp}`); 26673 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; 26674 } 26675 toString() { 26676 return this.value; 26677 } 26678 test(version2) { 26679 if (debug2("Comparator.test", version2, this.options.loose), this.semver === ANY || version2 === ANY) 26680 return !0; 26681 if (typeof version2 == "string") 26682 try { 26683 version2 = new SemVer(version2, this.options); 26684 } catch { 26685 return !1; 26686 } 26687 return cmp(version2, this.operator, this.semver, this.options); 26688 } 26689 intersects(comp, options) { 26690 if (!(comp instanceof _Comparator)) 26691 throw new TypeError("a Comparator is required"); 26692 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(">"))); 26693 } 26694 }; 26695 module2.exports = Comparator; 26696 var parseOptions = require_parse_options(), { safeRe: re, t } = require_re(), cmp = require_cmp(), debug2 = require_debug(), SemVer = require_semver(), Range = require_range2(); 26697 } 26698}); 26699
vendor: 440 bytes, lines 26700-26715
26700// ../../node_modules/semver/functions/satisfies.js 26701var require_satisfies = __commonJS({ 26702 "../../node_modules/semver/functions/satisfies.js"(exports, module2) { 26703 "use strict"; 26704 var Range = require_range2(), satisfies = (version2, range, options) => { 26705 try { 26706 range = new Range(range, options); 26707 } catch { 26708 return !1; 26709 } 26710 return range.test(version2); 26711 }; 26712 module2.exports = satisfies; 26713 } 26714}); 26715
vendor: 404 bytes, lines 26716-26724
26716// ../../node_modules/semver/ranges/to-comparators.js 26717var require_to_comparators = __commonJS({ 26718 "../../node_modules/semver/ranges/to-comparators.js"(exports, module2) { 26719 "use strict"; 26720 var Range = require_range2(), toComparators = (range, options) => new Range(range, options).set.map((comp) => comp.map((c) => c.value).join(" ").trim().split(" ")); 26721 module2.exports = toComparators; 26722 } 26723}); 26724
vendor: 676 bytes, lines 26725-26743
26725// ../../node_modules/semver/ranges/max-satisfying.js 26726var require_max_satisfying = __commonJS({ 26727 "../../node_modules/semver/ranges/max-satisfying.js"(exports, module2) { 26728 "use strict"; 26729 var SemVer = require_semver(), Range = require_range2(), maxSatisfying = (versions, range, options) => { 26730 let max2 = null, maxSV = null, rangeObj = null; 26731 try { 26732 rangeObj = new Range(range, options); 26733 } catch { 26734 return null; 26735 } 26736 return versions.forEach((v) => { 26737 rangeObj.test(v) && (!max2 || maxSV.compare(v) === -1) && (max2 = v, maxSV = new SemVer(max2, options)); 26738 }), max2; 26739 }; 26740 module2.exports = maxSatisfying; 26741 } 26742}); 26743
vendor: 675 bytes, lines 26744-26762
26744// ../../node_modules/semver/ranges/min-satisfying.js 26745var require_min_satisfying = __commonJS({ 26746 "../../node_modules/semver/ranges/min-satisfying.js"(exports, module2) { 26747 "use strict"; 26748 var SemVer = require_semver(), Range = require_range2(), minSatisfying = (versions, range, options) => { 26749 let min2 = null, minSV = null, rangeObj = null; 26750 try { 26751 rangeObj = new Range(range, options); 26752 } catch { 26753 return null; 26754 } 26755 return versions.forEach((v) => { 26756 rangeObj.test(v) && (!min2 || minSV.compare(v) === 1) && (min2 = v, minSV = new SemVer(min2, options)); 26757 }), min2; 26758 }; 26759 module2.exports = minSatisfying; 26760 } 26761}); 26762
vendor: 1,481 bytes, lines 26763-26799
26763// ../../node_modules/semver/ranges/min-version.js 26764var require_min_version = __commonJS({ 26765 "../../node_modules/semver/ranges/min-version.js"(exports, module2) { 26766 "use strict"; 26767 var SemVer = require_semver(), Range = require_range2(), gt = require_gt(), minVersion = (range, loose) => { 26768 range = new Range(range, loose); 26769 let minver = new SemVer("0.0.0"); 26770 if (range.test(minver) || (minver = new SemVer("0.0.0-0"), range.test(minver))) 26771 return minver; 26772 minver = null; 26773 for (let i = 0; i < range.set.length; ++i) { 26774 let comparators = range.set[i], setMin = null; 26775 comparators.forEach((comparator) => { 26776 let compver = new SemVer(comparator.semver.version); 26777 switch (comparator.operator) { 26778 case ">": 26779 compver.prerelease.length === 0 ? compver.patch++ : compver.prerelease.push(0), compver.raw = compver.format(); 26780 /* fallthrough */ 26781 case "": 26782 case ">=": 26783 (!setMin || gt(compver, setMin)) && (setMin = compver); 26784 break; 26785 case "<": 26786 case "<=": 26787 break; 26788 /* istanbul ignore next */ 26789 default: 26790 throw new Error(`Unexpected operation: ${comparator.operator}`); 26791 } 26792 }), setMin && (!minver || gt(minver, setMin)) && (minver = setMin); 26793 } 26794 return minver && range.test(minver) ? minver : null; 26795 }; 26796 module2.exports = minVersion; 26797 } 26798}); 26799
vendor: 394 bytes, lines 26800-26814
26800// ../../node_modules/semver/ranges/valid.js 26801var require_valid2 = __commonJS({ 26802 "../../node_modules/semver/ranges/valid.js"(exports, module2) { 26803 "use strict"; 26804 var Range = require_range2(), validRange = (range, options) => { 26805 try { 26806 return new Range(range, options).range || "*"; 26807 } catch { 26808 return null; 26809 } 26810 }; 26811 module2.exports = validRange; 26812 } 26813}); 26814
vendor: 1,722 bytes, lines 26815-26848
26815// ../../node_modules/semver/ranges/outside.js 26816var require_outside = __commonJS({ 26817 "../../node_modules/semver/ranges/outside.js"(exports, module2) { 26818 "use strict"; 26819 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) => { 26820 version2 = new SemVer(version2, options), range = new Range(range, options); 26821 let gtfn, ltefn, ltfn, comp, ecomp; 26822 switch (hilo) { 26823 case ">": 26824 gtfn = gt, ltefn = lte, ltfn = lt, comp = ">", ecomp = ">="; 26825 break; 26826 case "<": 26827 gtfn = lt, ltefn = gte, ltfn = gt, comp = "<", ecomp = "<="; 26828 break; 26829 default: 26830 throw new TypeError('Must provide a hilo val of "<" or ">"'); 26831 } 26832 if (satisfies(version2, range, options)) 26833 return !1; 26834 for (let i = 0; i < range.set.length; ++i) { 26835 let comparators = range.set[i], high = null, low = null; 26836 if (comparators.forEach((comparator) => { 26837 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); 26838 }), high.operator === comp || high.operator === ecomp || (!low.operator || low.operator === comp) && ltefn(version2, low.semver)) 26839 return !1; 26840 if (low.operator === ecomp && ltfn(version2, low.semver)) 26841 return !1; 26842 } 26843 return !0; 26844 }; 26845 module2.exports = outside; 26846 } 26847}); 26848
vendor: 305 bytes, lines 26849-26857
26849// ../../node_modules/semver/ranges/gtr.js 26850var require_gtr = __commonJS({ 26851 "../../node_modules/semver/ranges/gtr.js"(exports, module2) { 26852 "use strict"; 26853 var outside = require_outside(), gtr = (version2, range, options) => outside(version2, range, ">", options); 26854 module2.exports = gtr; 26855 } 26856}); 26857
vendor: 305 bytes, lines 26858-26866
26858// ../../node_modules/semver/ranges/ltr.js 26859var require_ltr = __commonJS({ 26860 "../../node_modules/semver/ranges/ltr.js"(exports, module2) { 26861 "use strict"; 26862 var outside = require_outside(), ltr = (version2, range, options) => outside(version2, range, "<", options); 26863 module2.exports = ltr; 26864 } 26865}); 26866
vendor: 376 bytes, lines 26867-26875
26867// ../../node_modules/semver/ranges/intersects.js 26868var require_intersects = __commonJS({ 26869 "../../node_modules/semver/ranges/intersects.js"(exports, module2) { 26870 "use strict"; 26871 var Range = require_range2(), intersects = (r1, r2, options) => (r1 = new Range(r1, options), r2 = new Range(r2, options), r1.intersects(r2, options)); 26872 module2.exports = intersects; 26873 } 26874}); 26875
vendor: 1,091 bytes, lines 26876-26894
26876// ../../node_modules/semver/ranges/simplify.js 26877var require_simplify = __commonJS({ 26878 "../../node_modules/semver/ranges/simplify.js"(exports, module2) { 26879 "use strict"; 26880 var satisfies = require_satisfies(), compare = require_compare(); 26881 module2.exports = (versions, range, options) => { 26882 let set3 = [], first = null, prev2 = null, v = versions.sort((a3, b) => compare(a3, b, options)); 26883 for (let version2 of v) 26884 satisfies(version2, range, options) ? (prev2 = version2, first || (first = version2)) : (prev2 && set3.push([first, prev2]), prev2 = null, first = null); 26885 first && set3.push([first, null]); 26886 let ranges = []; 26887 for (let [min2, max2] of set3) 26888 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}`); 26889 let simplified = ranges.join(" || "), original = typeof range.raw == "string" ? range.raw : String(range); 26890 return simplified.length < original.length ? simplified : range; 26891 }; 26892 } 26893}); 26894
vendor: 4,525 bytes, lines 26895-26982
26895// ../../node_modules/semver/ranges/subset.js 26896var require_subset = __commonJS({ 26897 "../../node_modules/semver/ranges/subset.js"(exports, module2) { 26898 "use strict"; 26899 var Range = require_range2(), Comparator = require_comparator(), { ANY } = Comparator, satisfies = require_satisfies(), compare = require_compare(), subset = (sub, dom, options = {}) => { 26900 if (sub === dom) 26901 return !0; 26902 sub = new Range(sub, options), dom = new Range(dom, options); 26903 let sawNonNull = !1; 26904 OUTER: for (let simpleSub of sub.set) { 26905 for (let simpleDom of dom.set) { 26906 let isSub = simpleSubset(simpleSub, simpleDom, options); 26907 if (sawNonNull = sawNonNull || isSub !== null, isSub) 26908 continue OUTER; 26909 } 26910 if (sawNonNull) 26911 return !1; 26912 } 26913 return !0; 26914 }, minimumVersionWithPreRelease = [new Comparator(">=0.0.0-0")], minimumVersion = [new Comparator(">=0.0.0")], simpleSubset = (sub, dom, options) => { 26915 if (sub === dom) 26916 return !0; 26917 if (sub.length === 1 && sub[0].semver === ANY) { 26918 if (dom.length === 1 && dom[0].semver === ANY) 26919 return !0; 26920 options.includePrerelease ? sub = minimumVersionWithPreRelease : sub = minimumVersion; 26921 } 26922 if (dom.length === 1 && dom[0].semver === ANY) { 26923 if (options.includePrerelease) 26924 return !0; 26925 dom = minimumVersion; 26926 } 26927 let eqSet = /* @__PURE__ */ new Set(), gt, lt; 26928 for (let c of sub) 26929 c.operator === ">" || c.operator === ">=" ? gt = higherGT(gt, c, options) : c.operator === "<" || c.operator === "<=" ? lt = lowerLT(lt, c, options) : eqSet.add(c.semver); 26930 if (eqSet.size > 1) 26931 return null; 26932 let gtltComp; 26933 if (gt && lt) { 26934 if (gtltComp = compare(gt.semver, lt.semver, options), gtltComp > 0) 26935 return null; 26936 if (gtltComp === 0 && (gt.operator !== ">=" || lt.operator !== "<=")) 26937 return null; 26938 } 26939 for (let eq4 of eqSet) { 26940 if (gt && !satisfies(eq4, String(gt), options) || lt && !satisfies(eq4, String(lt), options)) 26941 return null; 26942 for (let c of dom) 26943 if (!satisfies(eq4, String(c), options)) 26944 return !1; 26945 return !0; 26946 } 26947 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; 26948 needDomLTPre && needDomLTPre.prerelease.length === 1 && lt.operator === "<" && needDomLTPre.prerelease[0] === 0 && (needDomLTPre = !1); 26949 for (let c of dom) { 26950 if (hasDomGT = hasDomGT || c.operator === ">" || c.operator === ">=", hasDomLT = hasDomLT || c.operator === "<" || c.operator === "<=", gt) { 26951 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 === ">=") { 26952 if (higher = higherGT(gt, c, options), higher === c && higher !== gt) 26953 return !1; 26954 } else if (gt.operator === ">=" && !satisfies(gt.semver, String(c), options)) 26955 return !1; 26956 } 26957 if (lt) { 26958 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 === "<=") { 26959 if (lower = lowerLT(lt, c, options), lower === c && lower !== lt) 26960 return !1; 26961 } else if (lt.operator === "<=" && !satisfies(lt.semver, String(c), options)) 26962 return !1; 26963 } 26964 if (!c.operator && (lt || gt) && gtltComp !== 0) 26965 return !1; 26966 } 26967 return !(gt && hasDomLT && !lt && gtltComp !== 0 || lt && hasDomGT && !gt && gtltComp !== 0 || needDomGTPre || needDomLTPre); 26968 }, higherGT = (a3, b, options) => { 26969 if (!a3) 26970 return b; 26971 let comp = compare(a3.semver, b.semver, options); 26972 return comp > 0 ? a3 : comp < 0 || b.operator === ">" && a3.operator === ">=" ? b : a3; 26973 }, lowerLT = (a3, b, options) => { 26974 if (!a3) 26975 return b; 26976 let comp = compare(a3.semver, b.semver, options); 26977 return comp < 0 ? a3 : comp > 0 || b.operator === "<" && a3.operator === "<=" ? b : a3; 26978 }; 26979 module2.exports = subset; 26980 } 26981}); 26982
vendor: 2,242 bytes, lines 26983-27037
26983// ../../node_modules/semver/index.js 26984var require_semver2 = __commonJS({ 26985 "../../node_modules/semver/index.js"(exports, module2) { 26986 "use strict"; 26987 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(); 26988 module2.exports = { 26989 parse: parse9, 26990 valid, 26991 clean, 26992 inc, 26993 diff: diff2, 26994 major, 26995 minor, 26996 patch, 26997 prerelease, 26998 compare, 26999 rcompare, 27000 compareLoose, 27001 compareBuild, 27002 sort, 27003 rsort, 27004 gt, 27005 lt, 27006 eq: eq4, 27007 neq, 27008 gte, 27009 lte, 27010 cmp, 27011 coerce, 27012 Comparator, 27013 Range, 27014 satisfies, 27015 toComparators, 27016 maxSatisfying, 27017 minSatisfying, 27018 minVersion, 27019 validRange, 27020 outside, 27021 gtr, 27022 ltr, 27023 intersects, 27024 simplifyRange, 27025 subset, 27026 SemVer, 27027 re: internalRe.re, 27028 src: internalRe.src, 27029 tokens: internalRe.t, 27030 SEMVER_SPEC_VERSION: constants.SEMVER_SPEC_VERSION, 27031 RELEASE_TYPES: constants.RELEASE_TYPES, 27032 compareIdentifiers: identifiers.compareIdentifiers, 27033 rcompareIdentifiers: identifiers.rcompareIdentifiers 27034 }; 27035 } 27036}); 27037
vendor: 8,827 bytes, lines 27038-27257
27038// ../../node_modules/store2/dist/store2.js 27039var require_store2 = __commonJS({ 27040 "../../node_modules/store2/dist/store2.js"(exports, module2) { 27041 (function(window2, define3) { 27042 var _ = { 27043 version: "2.14.4", 27044 areas: {}, 27045 apis: {}, 27046 nsdelim: ".", 27047 // utilities 27048 inherit: function(api, o) { 27049 for (var p3 in api) 27050 o.hasOwnProperty(p3) || Object.defineProperty(o, p3, Object.getOwnPropertyDescriptor(api, p3)); 27051 return o; 27052 }, 27053 stringify: function(d, fn4) { 27054 return d === void 0 || typeof d == "function" ? d + "" : JSON.stringify(d, fn4 || _.replace); 27055 }, 27056 parse: function(s3, fn4) { 27057 try { 27058 return JSON.parse(s3, fn4 || _.revive); 27059 } catch { 27060 return s3; 27061 } 27062 }, 27063 // extension hooks 27064 fn: function(name, fn4) { 27065 _.storeAPI[name] = fn4; 27066 for (var api in _.apis) 27067 _.apis[api][name] = fn4; 27068 }, 27069 get: function(area, key) { 27070 return area.getItem(key); 27071 }, 27072 set: function(area, key, string) { 27073 area.setItem(key, string); 27074 }, 27075 remove: function(area, key) { 27076 area.removeItem(key); 27077 }, 27078 key: function(area, i) { 27079 return area.key(i); 27080 }, 27081 length: function(area) { 27082 return area.length; 27083 }, 27084 clear: function(area) { 27085 area.clear(); 27086 }, 27087 // core functions 27088 Store: function(id, area, namespace) { 27089 var store3 = _.inherit(_.storeAPI, function(key, data, overwrite) { 27090 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(); 27091 }); 27092 store3._id = id; 27093 try { 27094 var testKey = "__store2_test"; 27095 area.setItem(testKey, "ok"), store3._area = area, area.removeItem(testKey); 27096 } catch { 27097 store3._area = _.storage("fake"); 27098 } 27099 return store3._ns = namespace || "", _.areas[id] || (_.areas[id] = store3._area), _.apis[store3._ns + store3._id] || (_.apis[store3._ns + store3._id] = store3), store3; 27100 }, 27101 storeAPI: { 27102 // admin functions 27103 area: function(id, area) { 27104 var store3 = this[id]; 27105 return (!store3 || !store3.area) && (store3 = _.Store(id, area, this._ns), this[id] || (this[id] = store3)), store3; 27106 }, 27107 namespace: function(namespace, singleArea, delim) { 27108 if (delim = delim || this._delim || _.nsdelim, !namespace) 27109 return this._ns ? this._ns.substring(0, this._ns.length - delim.length) : ""; 27110 var ns = namespace, store3 = this[ns]; 27111 if ((!store3 || !store3.namespace) && (store3 = _.Store(this._id, this._area, this._ns + ns + delim), store3._delim = delim, this[ns] || (this[ns] = store3), !singleArea)) 27112 for (var name in _.areas) 27113 store3.area(name, _.areas[name]); 27114 return store3; 27115 }, 27116 isFake: function(force) { 27117 return force ? (this._real = this._area, this._area = _.storage("fake")) : force === !1 && (this._area = this._real || this._area), this._area.name === "fake"; 27118 }, 27119 toString: function() { 27120 return "store" + (this._ns ? "." + this.namespace() : "") + "[" + this._id + "]"; 27121 }, 27122 // storage functions 27123 has: function(key) { 27124 return this._area.has ? this._area.has(this._in(key)) : this._in(key) in this._area; 27125 }, 27126 size: function() { 27127 return this.keys().length; 27128 }, 27129 each: function(fn4, fill2) { 27130 for (var i = 0, m3 = _.length(this._area); i < m3; i++) { 27131 var key = this._out(_.key(this._area, i)); 27132 if (key !== void 0 && fn4.call(this, key, this.get(key), fill2) === !1) 27133 break; 27134 m3 > _.length(this._area) && (m3--, i--); 27135 } 27136 return fill2 || this; 27137 }, 27138 keys: function(fillList) { 27139 return this.each(function(k, v, list) { 27140 list.push(k); 27141 }, fillList || []); 27142 }, 27143 get: function(key, alt) { 27144 var s3 = _.get(this._area, this._in(key)), fn4; 27145 return typeof alt == "function" && (fn4 = alt, alt = null), s3 !== null ? _.parse(s3, fn4) : alt ?? s3; 27146 }, 27147 getAll: function(fillObj) { 27148 return this.each(function(k, v, all) { 27149 all[k] = v; 27150 }, fillObj || {}); 27151 }, 27152 transact: function(key, fn4, alt) { 27153 var val = this.get(key, alt), ret = fn4(val); 27154 return this.set(key, ret === void 0 ? val : ret), this; 27155 }, 27156 set: function(key, data, overwrite) { 27157 var d = this.get(key), replacer3; 27158 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); 27159 }, 27160 setAll: function(data, overwrite) { 27161 var changed, val; 27162 for (var key in data) 27163 val = data[key], this.set(key, val, overwrite) !== val && (changed = !0); 27164 return changed; 27165 }, 27166 add: function(key, data, replacer3) { 27167 var d = this.get(key); 27168 if (d instanceof Array) 27169 data = d.concat(data); 27170 else if (d !== null) { 27171 var type5 = typeof d; 27172 if (type5 === typeof data && type5 === "object") { 27173 for (var k in data) 27174 d[k] = data[k]; 27175 data = d; 27176 } else 27177 data = d + data; 27178 } 27179 return _.set(this._area, this._in(key), _.stringify(data, replacer3)), data; 27180 }, 27181 remove: function(key, alt) { 27182 var d = this.get(key, alt); 27183 return _.remove(this._area, this._in(key)), d; 27184 }, 27185 clear: function() { 27186 return this._ns ? this.each(function(k) { 27187 _.remove(this._area, this._in(k)); 27188 }, 1) : _.clear(this._area), this; 27189 }, 27190 clearAll: function() { 27191 var area = this._area; 27192 for (var id in _.areas) 27193 _.areas.hasOwnProperty(id) && (this._area = _.areas[id], this.clear()); 27194 return this._area = area, this; 27195 }, 27196 // internal use functions 27197 _in: function(k) { 27198 return typeof k != "string" && (k = _.stringify(k)), this._ns ? this._ns + k : k; 27199 }, 27200 _out: function(k) { 27201 return this._ns ? k && k.indexOf(this._ns) === 0 ? k.substring(this._ns.length) : void 0 : ( 27202 // so each() knows to skip it 27203 k 27204 ); 27205 } 27206 }, 27207 // end _.storeAPI 27208 storage: function(name) { 27209 return _.inherit(_.storageAPI, { items: {}, name }); 27210 }, 27211 storageAPI: { 27212 length: 0, 27213 has: function(k) { 27214 return this.items.hasOwnProperty(k); 27215 }, 27216 key: function(i) { 27217 var c = 0; 27218 for (var k in this.items) 27219 if (this.has(k) && i === c++) 27220 return k; 27221 }, 27222 setItem: function(k, v) { 27223 this.has(k) || this.length++, this.items[k] = v; 27224 }, 27225 removeItem: function(k) { 27226 this.has(k) && (delete this.items[k], this.length--); 27227 }, 27228 getItem: function(k) { 27229 return this.has(k) ? this.items[k] : null; 27230 }, 27231 clear: function() { 27232 for (var k in this.items) 27233 this.removeItem(k); 27234 } 27235 } 27236 // end _.storageAPI 27237 }, store2 = ( 27238 // safely set this up (throws error in IE10/32bit mode for local files) 27239 _.Store("local", (function() { 27240 try { 27241 return localStorage; 27242 } catch { 27243 } 27244 })()) 27245 ); 27246 store2.local = store2, store2._ = _, store2.area("session", (function() { 27247 try { 27248 return sessionStorage; 27249 } catch { 27250 } 27251 })()), store2.area("page", _.storage("page")), typeof define3 == "function" && define3.amd !== void 0 ? define3("store2", [], function() { 27252 return store2; 27253 }) : typeof module2 < "u" && module2.exports ? module2.exports = store2 : (window2.store && (_.conflict = window2.store), window2.store = store2); 27254 })(exports, exports && exports.define); 27255 } 27256}); 27257
vendor: 2,009 bytes, lines 27258-27300
27258// ../../node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production.js 27259var require_use_sync_external_store_shim_production = __commonJS({ 27260 "../../node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production.js"(exports) { 27261 "use strict"; 27262 var React99 = require_react(); 27263 function is(x, y) { 27264 return x === y && (x !== 0 || 1 / x === 1 / y) || x !== x && y !== y; 27265 } 27266 var objectIs = typeof Object.is == "function" ? Object.is : is, useState28 = React99.useState, useEffect25 = React99.useEffect, useLayoutEffect9 = React99.useLayoutEffect, useDebugValue = React99.useDebugValue; 27267 function useSyncExternalStore$2(subscribe, getSnapshot) { 27268 var value = getSnapshot(), _useState = useState28({ inst: { value, getSnapshot } }), inst = _useState[0].inst, forceUpdate = _useState[1]; 27269 return useLayoutEffect9( 27270 function() { 27271 inst.value = value, inst.getSnapshot = getSnapshot, checkIfSnapshotChanged(inst) && forceUpdate({ inst }); 27272 }, 27273 [subscribe, value, getSnapshot] 27274 ), useEffect25( 27275 function() { 27276 return checkIfSnapshotChanged(inst) && forceUpdate({ inst }), subscribe(function() { 27277 checkIfSnapshotChanged(inst) && forceUpdate({ inst }); 27278 }); 27279 }, 27280 [subscribe] 27281 ), useDebugValue(value), value; 27282 } 27283 function checkIfSnapshotChanged(inst) { 27284 var latestGetSnapshot = inst.getSnapshot; 27285 inst = inst.value; 27286 try { 27287 var nextValue = latestGetSnapshot(); 27288 return !objectIs(inst, nextValue); 27289 } catch { 27290 return !0; 27291 } 27292 } 27293 function useSyncExternalStore$1(subscribe, getSnapshot) { 27294 return getSnapshot(); 27295 } 27296 var shim = typeof window > "u" || typeof window.document > "u" || typeof window.document.createElement > "u" ? useSyncExternalStore$1 : useSyncExternalStore$2; 27297 exports.useSyncExternalStore = React99.useSyncExternalStore !== void 0 ? React99.useSyncExternalStore : shim; 27298 } 27299}); 27300
vendor: 273 bytes, lines 27301-27308
27301// ../../node_modules/use-sync-external-store/shim/index.js 27302var require_shim = __commonJS({ 27303 "../../node_modules/use-sync-external-store/shim/index.js"(exports, module2) { 27304 "use strict"; 27305 module2.exports = require_use_sync_external_store_shim_production(); 27306 } 27307}); 27308
vendor: 378 bytes, lines 27309-27315
27309// ../../node_modules/react-popper/lib/esm/Manager.js 27310var React67, ManagerReferenceNodeContext, ManagerReferenceNodeSetterContext, init_Manager = __esm({ 27311 "../../node_modules/react-popper/lib/esm/Manager.js"() { 27312 React67 = __toESM(require_react()), ManagerReferenceNodeContext = React67.createContext(), ManagerReferenceNodeSetterContext = React67.createContext(); 27313 } 27314}); 27315
vendor: 571 bytes, lines 27316-27327
27316// ../../node_modules/react-popper/lib/esm/utils.js 27317var React68, fromEntries3, useIsomorphicLayoutEffect2, init_utils3 = __esm({ 27318 "../../node_modules/react-popper/lib/esm/utils.js"() { 27319 React68 = __toESM(require_react()), fromEntries3 = function(entries) { 27320 return entries.reduce(function(acc, _ref) { 27321 var key = _ref[0], value = _ref[1]; 27322 return acc[key] = value, acc; 27323 }, {}); 27324 }, useIsomorphicLayoutEffect2 = typeof window < "u" && window.document && window.document.createElement ? React68.useLayoutEffect : React68.useEffect; 27325 } 27326}); 27327
vendor: 1,302 bytes, lines 27328-27338
27328// ../../node_modules/@popperjs/core/lib/enums.js 27329var 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({ 27330 "../../node_modules/@popperjs/core/lib/enums.js"() { 27331 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) { 27332 return acc.concat([placement + "-" + start, placement + "-" + end]); 27333 }, []), placements = [].concat(basePlacements, [auto]).reduce(function(acc, placement) { 27334 return acc.concat([placement, placement + "-" + start, placement + "-" + end]); 27335 }, []), 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]; 27336 } 27337}); 27338
vendor: 277 bytes, lines 27339-27347
27339// ../../node_modules/@popperjs/core/lib/dom-utils/getNodeName.js 27340function getNodeName(element) { 27341 return element ? (element.nodeName || "").toLowerCase() : null; 27342} 27343var init_getNodeName = __esm({ 27344 "../../node_modules/@popperjs/core/lib/dom-utils/getNodeName.js"() { 27345 } 27346}); 27347
vendor: 420 bytes, lines 27348-27362
27348// ../../node_modules/@popperjs/core/lib/dom-utils/getWindow.js 27349function getWindow2(node2) { 27350 if (node2 == null) 27351 return window; 27352 if (node2.toString() !== "[object Window]") { 27353 var ownerDocument = node2.ownerDocument; 27354 return ownerDocument && ownerDocument.defaultView || window; 27355 } 27356 return node2; 27357} 27358var init_getWindow = __esm({ 27359 "../../node_modules/@popperjs/core/lib/dom-utils/getWindow.js"() { 27360 } 27361}); 27362
vendor: 690 bytes, lines 27363-27383
27363// ../../node_modules/@popperjs/core/lib/dom-utils/instanceOf.js 27364function isElement5(node2) { 27365 var OwnElement = getWindow2(node2).Element; 27366 return node2 instanceof OwnElement || node2 instanceof Element; 27367} 27368function isHTMLElement(node2) { 27369 var OwnElement = getWindow2(node2).HTMLElement; 27370 return node2 instanceof OwnElement || node2 instanceof HTMLElement; 27371} 27372function isShadowRoot(node2) { 27373 if (typeof ShadowRoot > "u") 27374 return !1; 27375 var OwnElement = getWindow2(node2).ShadowRoot; 27376 return node2 instanceof OwnElement || node2 instanceof ShadowRoot; 27377} 27378var init_instanceOf = __esm({ 27379 "../../node_modules/@popperjs/core/lib/dom-utils/instanceOf.js"() { 27380 init_getWindow(); 27381 } 27382}); 27383
vendor: 2,019 bytes, lines 27384-27433
27384// ../../node_modules/@popperjs/core/lib/modifiers/applyStyles.js 27385function applyStyles(_ref) { 27386 var state3 = _ref.state; 27387 Object.keys(state3.elements).forEach(function(name) { 27388 var style = state3.styles[name] || {}, attributes = state3.attributes[name] || {}, element = state3.elements[name]; 27389 !isHTMLElement(element) || !getNodeName(element) || (Object.assign(element.style, style), Object.keys(attributes).forEach(function(name2) { 27390 var value = attributes[name2]; 27391 value === !1 ? element.removeAttribute(name2) : element.setAttribute(name2, value === !0 ? "" : value); 27392 })); 27393 }); 27394} 27395function effect(_ref2) { 27396 var state3 = _ref2.state, initialStyles = { 27397 popper: { 27398 position: state3.options.strategy, 27399 left: "0", 27400 top: "0", 27401 margin: "0" 27402 }, 27403 arrow: { 27404 position: "absolute" 27405 }, 27406 reference: {} 27407 }; 27408 return Object.assign(state3.elements.popper.style, initialStyles.popper), state3.styles = initialStyles, state3.elements.arrow && Object.assign(state3.elements.arrow.style, initialStyles.arrow), function() { 27409 Object.keys(state3.elements).forEach(function(name) { 27410 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) { 27411 return style2[property] = "", style2; 27412 }, {}); 27413 !isHTMLElement(element) || !getNodeName(element) || (Object.assign(element.style, style), Object.keys(attributes).forEach(function(attribute) { 27414 element.removeAttribute(attribute); 27415 })); 27416 }); 27417 }; 27418} 27419var applyStyles_default, init_applyStyles = __esm({ 27420 "../../node_modules/@popperjs/core/lib/modifiers/applyStyles.js"() { 27421 init_getNodeName(); 27422 init_instanceOf(); 27423 applyStyles_default = { 27424 name: "applyStyles", 27425 enabled: !0, 27426 phase: "write", 27427 fn: applyStyles, 27428 effect, 27429 requires: ["computeStyles"] 27430 }; 27431 } 27432}); 27433
vendor: 277 bytes, lines 27434-27443
27434// ../../node_modules/@popperjs/core/lib/utils/getBasePlacement.js 27435function getBasePlacement(placement) { 27436 return placement.split("-")[0]; 27437} 27438var init_getBasePlacement = __esm({ 27439 "../../node_modules/@popperjs/core/lib/utils/getBasePlacement.js"() { 27440 init_enums(); 27441 } 27442}); 27443
vendor: 223 bytes, lines 27444-27450
27444// ../../node_modules/@popperjs/core/lib/utils/math.js 27445var max, min, round2, init_math = __esm({ 27446 "../../node_modules/@popperjs/core/lib/utils/math.js"() { 27447 max = Math.max, min = Math.min, round2 = Math.round; 27448 } 27449}); 27450
vendor: 422 bytes, lines 27451-27462
27451// ../../node_modules/@popperjs/core/lib/utils/userAgent.js 27452function getUAString() { 27453 var uaData = navigator.userAgentData; 27454 return uaData != null && uaData.brands && Array.isArray(uaData.brands) ? uaData.brands.map(function(item) { 27455 return item.brand + "/" + item.version; 27456 }).join(" ") : navigator.userAgent; 27457} 27458var init_userAgent = __esm({ 27459 "../../node_modules/@popperjs/core/lib/utils/userAgent.js"() { 27460 } 27461}); 27462
vendor: 310 bytes, lines 27463-27472
27463// ../../node_modules/@popperjs/core/lib/dom-utils/isLayoutViewport.js 27464function isLayoutViewport() { 27465 return !/^((?!chrome|android).)*safari/i.test(getUAString()); 27466} 27467var init_isLayoutViewport = __esm({ 27468 "../../node_modules/@popperjs/core/lib/dom-utils/isLayoutViewport.js"() { 27469 init_userAgent(); 27470 } 27471}); 27472
vendor: 1,341 bytes, lines 27473-27498
27473// ../../node_modules/@popperjs/core/lib/dom-utils/getBoundingClientRect.js 27474function getBoundingClientRect(element, includeScale, isFixedStrategy) { 27475 includeScale === void 0 && (includeScale = !1), isFixedStrategy === void 0 && (isFixedStrategy = !1); 27476 var clientRect = element.getBoundingClientRect(), scaleX = 1, scaleY = 1; 27477 includeScale && isHTMLElement(element) && (scaleX = element.offsetWidth > 0 && round2(clientRect.width) / element.offsetWidth || 1, scaleY = element.offsetHeight > 0 && round2(clientRect.height) / element.offsetHeight || 1); 27478 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; 27479 return { 27480 width, 27481 height, 27482 top: y, 27483 right: x + width, 27484 bottom: y + height, 27485 left: x, 27486 x, 27487 y 27488 }; 27489} 27490var init_getBoundingClientRect = __esm({ 27491 "../../node_modules/@popperjs/core/lib/dom-utils/getBoundingClientRect.js"() { 27492 init_instanceOf(); 27493 init_math(); 27494 init_getWindow(); 27495 init_isLayoutViewport(); 27496 } 27497}); 27498
vendor: 601 bytes, lines 27499-27514
27499// ../../node_modules/@popperjs/core/lib/dom-utils/getLayoutRect.js 27500function getLayoutRect(element) { 27501 var clientRect = getBoundingClientRect(element), width = element.offsetWidth, height = element.offsetHeight; 27502 return Math.abs(clientRect.width - width) <= 1 && (width = clientRect.width), Math.abs(clientRect.height - height) <= 1 && (height = clientRect.height), { 27503 x: element.offsetLeft, 27504 y: element.offsetTop, 27505 width, 27506 height 27507 }; 27508} 27509var init_getLayoutRect = __esm({ 27510 "../../node_modules/@popperjs/core/lib/dom-utils/getLayoutRect.js"() { 27511 init_getBoundingClientRect(); 27512 } 27513}); 27514
vendor: 556 bytes, lines 27515-27535
27515// ../../node_modules/@popperjs/core/lib/dom-utils/contains.js 27516function contains(parent, child) { 27517 var rootNode = child.getRootNode && child.getRootNode(); 27518 if (parent.contains(child)) 27519 return !0; 27520 if (rootNode && isShadowRoot(rootNode)) { 27521 var next2 = child; 27522 do { 27523 if (next2 && parent.isSameNode(next2)) 27524 return !0; 27525 next2 = next2.parentNode || next2.host; 27526 } while (next2); 27527 } 27528 return !1; 27529} 27530var init_contains = __esm({ 27531 "../../node_modules/@popperjs/core/lib/dom-utils/contains.js"() { 27532 init_instanceOf(); 27533 } 27534}); 27535
vendor: 310 bytes, lines 27536-27545
27536// ../../node_modules/@popperjs/core/lib/dom-utils/getComputedStyle.js 27537function getComputedStyle2(element) { 27538 return getWindow2(element).getComputedStyle(element); 27539} 27540var init_getComputedStyle = __esm({ 27541 "../../node_modules/@popperjs/core/lib/dom-utils/getComputedStyle.js"() { 27542 init_getWindow(); 27543 } 27544}); 27545
vendor: 314 bytes, lines 27546-27555
27546// ../../node_modules/@popperjs/core/lib/dom-utils/isTableElement.js 27547function isTableElement(element) { 27548 return ["table", "td", "th"].indexOf(getNodeName(element)) >= 0; 27549} 27550var init_isTableElement = __esm({ 27551 "../../node_modules/@popperjs/core/lib/dom-utils/isTableElement.js"() { 27552 init_getNodeName(); 27553 } 27554}); 27555
vendor: 416 bytes, lines 27556-27568
27556// ../../node_modules/@popperjs/core/lib/dom-utils/getDocumentElement.js 27557function getDocumentElement(element) { 27558 return ((isElement5(element) ? element.ownerDocument : ( 27559 // $FlowFixMe[prop-missing] 27560 element.document 27561 )) || window.document).documentElement; 27562} 27563var init_getDocumentElement = __esm({ 27564 "../../node_modules/@popperjs/core/lib/dom-utils/getDocumentElement.js"() { 27565 init_instanceOf(); 27566 } 27567}); 27568
vendor: 825 bytes, lines 27569-27589
27569// ../../node_modules/@popperjs/core/lib/dom-utils/getParentNode.js 27570function getParentNode(element) { 27571 return getNodeName(element) === "html" ? element : ( 27572 // this is a quicker (but less type safe) way to save quite some bytes from the bundle 27573 // $FlowFixMe[incompatible-return] 27574 // $FlowFixMe[prop-missing] 27575 element.assignedSlot || // step into the shadow DOM of the parent of a slotted node 27576 element.parentNode || // DOM Element detected 27577 (isShadowRoot(element) ? element.host : null) || // ShadowRoot detected 27578 // $FlowFixMe[incompatible-call]: HTMLElement is a Node 27579 getDocumentElement(element) 27580 ); 27581} 27582var init_getParentNode = __esm({ 27583 "../../node_modules/@popperjs/core/lib/dom-utils/getParentNode.js"() { 27584 init_getNodeName(); 27585 init_getDocumentElement(); 27586 init_instanceOf(); 27587 } 27588}); 27589
vendor: 1,968 bytes, lines 27590-27627
27590// ../../node_modules/@popperjs/core/lib/dom-utils/getOffsetParent.js 27591function getTrueOffsetParent(element) { 27592 return !isHTMLElement(element) || // https://github.com/popperjs/popper-core/issues/837 27593 getComputedStyle2(element).position === "fixed" ? null : element.offsetParent; 27594} 27595function getContainingBlock(element) { 27596 var isFirefox = /firefox/i.test(getUAString()), isIE2 = /Trident/i.test(getUAString()); 27597 if (isIE2 && isHTMLElement(element)) { 27598 var elementCss = getComputedStyle2(element); 27599 if (elementCss.position === "fixed") 27600 return null; 27601 } 27602 var currentNode = getParentNode(element); 27603 for (isShadowRoot(currentNode) && (currentNode = currentNode.host); isHTMLElement(currentNode) && ["html", "body"].indexOf(getNodeName(currentNode)) < 0; ) { 27604 var css3 = getComputedStyle2(currentNode); 27605 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") 27606 return currentNode; 27607 currentNode = currentNode.parentNode; 27608 } 27609 return null; 27610} 27611function getOffsetParent(element) { 27612 for (var window2 = getWindow2(element), offsetParent = getTrueOffsetParent(element); offsetParent && isTableElement(offsetParent) && getComputedStyle2(offsetParent).position === "static"; ) 27613 offsetParent = getTrueOffsetParent(offsetParent); 27614 return offsetParent && (getNodeName(offsetParent) === "html" || getNodeName(offsetParent) === "body" && getComputedStyle2(offsetParent).position === "static") ? window2 : offsetParent || getContainingBlock(element) || window2; 27615} 27616var init_getOffsetParent = __esm({ 27617 "../../node_modules/@popperjs/core/lib/dom-utils/getOffsetParent.js"() { 27618 init_getWindow(); 27619 init_getNodeName(); 27620 init_getComputedStyle(); 27621 init_instanceOf(); 27622 init_isTableElement(); 27623 init_getParentNode(); 27624 init_userAgent(); 27625 } 27626}); 27627
vendor: 321 bytes, lines 27628-27636
27628// ../../node_modules/@popperjs/core/lib/utils/getMainAxisFromPlacement.js 27629function getMainAxisFromPlacement(placement) { 27630 return ["top", "bottom"].indexOf(placement) >= 0 ? "x" : "y"; 27631} 27632var init_getMainAxisFromPlacement = __esm({ 27633 "../../node_modules/@popperjs/core/lib/utils/getMainAxisFromPlacement.js"() { 27634 } 27635}); 27636
vendor: 364 bytes, lines 27637-27650
27637// ../../node_modules/@popperjs/core/lib/utils/within.js 27638function within2(min2, value, max2) { 27639 return max(min2, min(value, max2)); 27640} 27641function withinMaxClamp(min2, value, max2) { 27642 var v = within2(min2, value, max2); 27643 return v > max2 ? max2 : v; 27644} 27645var init_within = __esm({ 27646 "../../node_modules/@popperjs/core/lib/utils/within.js"() { 27647 init_math(); 27648 } 27649}); 27650
vendor: 293 bytes, lines 27651-27664
27651// ../../node_modules/@popperjs/core/lib/utils/getFreshSideObject.js 27652function getFreshSideObject() { 27653 return { 27654 top: 0, 27655 right: 0, 27656 bottom: 0, 27657 left: 0 27658 }; 27659} 27660var init_getFreshSideObject = __esm({ 27661 "../../node_modules/@popperjs/core/lib/utils/getFreshSideObject.js"() { 27662 } 27663}); 27664
vendor: 333 bytes, lines 27665-27674
27665// ../../node_modules/@popperjs/core/lib/utils/mergePaddingObject.js 27666function mergePaddingObject(paddingObject) { 27667 return Object.assign({}, getFreshSideObject(), paddingObject); 27668} 27669var init_mergePaddingObject = __esm({ 27670 "../../node_modules/@popperjs/core/lib/utils/mergePaddingObject.js"() { 27671 init_getFreshSideObject(); 27672 } 27673}); 27674
vendor: 323 bytes, lines 27675-27685
27675// ../../node_modules/@popperjs/core/lib/utils/expandToHashMap.js 27676function expandToHashMap(value, keys3) { 27677 return keys3.reduce(function(hashMap, key) { 27678 return hashMap[key] = value, hashMap; 27679 }, {}); 27680} 27681var init_expandToHashMap = __esm({ 27682 "../../node_modules/@popperjs/core/lib/utils/expandToHashMap.js"() { 27683 } 27684}); 27685
vendor: 2,837 bytes, lines 27686-27725
27686// ../../node_modules/@popperjs/core/lib/modifiers/arrow.js 27687function arrow(_ref) { 27688 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"; 27689 if (!(!arrowElement || !popperOffsets2)) { 27690 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; 27691 state3.modifiersData[name] = (_state$modifiersData$ = {}, _state$modifiersData$[axisProp] = offset3, _state$modifiersData$.centerOffset = offset3 - center, _state$modifiersData$); 27692 } 27693} 27694function effect2(_ref2) { 27695 var state3 = _ref2.state, options = _ref2.options, _options$element = options.element, arrowElement = _options$element === void 0 ? "[data-popper-arrow]" : _options$element; 27696 arrowElement != null && (typeof arrowElement == "string" && (arrowElement = state3.elements.popper.querySelector(arrowElement), !arrowElement) || contains(state3.elements.popper, arrowElement) && (state3.elements.arrow = arrowElement)); 27697} 27698var toPaddingObject, arrow_default, init_arrow = __esm({ 27699 "../../node_modules/@popperjs/core/lib/modifiers/arrow.js"() { 27700 init_getBasePlacement(); 27701 init_getLayoutRect(); 27702 init_contains(); 27703 init_getOffsetParent(); 27704 init_getMainAxisFromPlacement(); 27705 init_within(); 27706 init_mergePaddingObject(); 27707 init_expandToHashMap(); 27708 init_enums(); 27709 toPaddingObject = function(padding, state3) { 27710 return padding = typeof padding == "function" ? padding(Object.assign({}, state3.rects, { 27711 placement: state3.placement 27712 })) : padding, mergePaddingObject(typeof padding != "number" ? padding : expandToHashMap(padding, basePlacements)); 27713 }; 27714 arrow_default = { 27715 name: "arrow", 27716 enabled: !0, 27717 phase: "main", 27718 fn: arrow, 27719 effect: effect2, 27720 requires: ["popperOffsets"], 27721 requiresIfExists: ["preventOverflow"] 27722 }; 27723 } 27724}); 27725
vendor: 243 bytes, lines 27726-27734
27726// ../../node_modules/@popperjs/core/lib/utils/getVariation.js 27727function getVariation(placement) { 27728 return placement.split("-")[1]; 27729} 27730var init_getVariation = __esm({ 27731 "../../node_modules/@popperjs/core/lib/utils/getVariation.js"() { 27732 } 27733}); 27734
vendor: 4,917 bytes, lines 27735-27835
27735// ../../node_modules/@popperjs/core/lib/modifiers/computeStyles.js 27736function roundOffsetsByDPR(_ref, win) { 27737 var x = _ref.x, y = _ref.y, dpr = win.devicePixelRatio || 1; 27738 return { 27739 x: round2(x * dpr) / dpr || 0, 27740 y: round2(y * dpr) / dpr || 0 27741 }; 27742} 27743function mapToStyles(_ref2) { 27744 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({ 27745 x, 27746 y 27747 }) : { 27748 x, 27749 y 27750 }; 27751 x = _ref3.x, y = _ref3.y; 27752 var hasX = offsets.hasOwnProperty("x"), hasY = offsets.hasOwnProperty("y"), sideX = left, sideY = top, win = window; 27753 if (adaptive) { 27754 var offsetParent = getOffsetParent(popper2), heightProp = "clientHeight", widthProp = "clientWidth"; 27755 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) { 27756 sideY = bottom; 27757 var offsetY = isFixed && offsetParent === win && win.visualViewport ? win.visualViewport.height : ( 27758 // $FlowFixMe[prop-missing] 27759 offsetParent[heightProp] 27760 ); 27761 y -= offsetY - popperRect.height, y *= gpuAcceleration ? 1 : -1; 27762 } 27763 if (placement === left || (placement === top || placement === bottom) && variation === end) { 27764 sideX = right; 27765 var offsetX = isFixed && offsetParent === win && win.visualViewport ? win.visualViewport.width : ( 27766 // $FlowFixMe[prop-missing] 27767 offsetParent[widthProp] 27768 ); 27769 x -= offsetX - popperRect.width, x *= gpuAcceleration ? 1 : -1; 27770 } 27771 } 27772 var commonStyles = Object.assign({ 27773 position: position2 27774 }, adaptive && unsetSides), _ref4 = roundOffsets === !0 ? roundOffsetsByDPR({ 27775 x, 27776 y 27777 }, getWindow2(popper2)) : { 27778 x, 27779 y 27780 }; 27781 if (x = _ref4.x, y = _ref4.y, gpuAcceleration) { 27782 var _Object$assign; 27783 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)); 27784 } 27785 return Object.assign({}, commonStyles, (_Object$assign2 = {}, _Object$assign2[sideY] = hasY ? y + "px" : "", _Object$assign2[sideX] = hasX ? x + "px" : "", _Object$assign2.transform = "", _Object$assign2)); 27786} 27787function computeStyles(_ref5) { 27788 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 = { 27789 placement: getBasePlacement(state3.placement), 27790 variation: getVariation(state3.placement), 27791 popper: state3.elements.popper, 27792 popperRect: state3.rects.popper, 27793 gpuAcceleration, 27794 isFixed: state3.options.strategy === "fixed" 27795 }; 27796 state3.modifiersData.popperOffsets != null && (state3.styles.popper = Object.assign({}, state3.styles.popper, mapToStyles(Object.assign({}, commonStyles, { 27797 offsets: state3.modifiersData.popperOffsets, 27798 position: state3.options.strategy, 27799 adaptive, 27800 roundOffsets 27801 })))), state3.modifiersData.arrow != null && (state3.styles.arrow = Object.assign({}, state3.styles.arrow, mapToStyles(Object.assign({}, commonStyles, { 27802 offsets: state3.modifiersData.arrow, 27803 position: "absolute", 27804 adaptive: !1, 27805 roundOffsets 27806 })))), state3.attributes.popper = Object.assign({}, state3.attributes.popper, { 27807 "data-popper-placement": state3.placement 27808 }); 27809} 27810var unsetSides, computeStyles_default, init_computeStyles = __esm({ 27811 "../../node_modules/@popperjs/core/lib/modifiers/computeStyles.js"() { 27812 init_enums(); 27813 init_getOffsetParent(); 27814 init_getWindow(); 27815 init_getDocumentElement(); 27816 init_getComputedStyle(); 27817 init_getBasePlacement(); 27818 init_getVariation(); 27819 init_math(); 27820 unsetSides = { 27821 top: "auto", 27822 right: "auto", 27823 bottom: "auto", 27824 left: "auto" 27825 }; 27826 computeStyles_default = { 27827 name: "computeStyles", 27828 enabled: !0, 27829 phase: "beforeWrite", 27830 fn: computeStyles, 27831 data: {} 27832 }; 27833 } 27834}); 27835
vendor: 1,340 bytes, lines 27836-27864
27836// ../../node_modules/@popperjs/core/lib/modifiers/eventListeners.js 27837function effect3(_ref) { 27838 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); 27839 return scroll && scrollParents.forEach(function(scrollParent) { 27840 scrollParent.addEventListener("scroll", instance.update, passive); 27841 }), resize && window2.addEventListener("resize", instance.update, passive), function() { 27842 scroll && scrollParents.forEach(function(scrollParent) { 27843 scrollParent.removeEventListener("scroll", instance.update, passive); 27844 }), resize && window2.removeEventListener("resize", instance.update, passive); 27845 }; 27846} 27847var passive, eventListeners_default, init_eventListeners = __esm({ 27848 "../../node_modules/@popperjs/core/lib/modifiers/eventListeners.js"() { 27849 init_getWindow(); 27850 passive = { 27851 passive: !0 27852 }; 27853 eventListeners_default = { 27854 name: "eventListeners", 27855 enabled: !0, 27856 phase: "write", 27857 fn: function() { 27858 }, 27859 effect: effect3, 27860 data: {} 27861 }; 27862 } 27863}); 27864
vendor: 458 bytes, lines 27865-27881
27865// ../../node_modules/@popperjs/core/lib/utils/getOppositePlacement.js 27866function getOppositePlacement(placement) { 27867 return placement.replace(/left|right|bottom|top/g, function(matched) { 27868 return hash2[matched]; 27869 }); 27870} 27871var hash2, init_getOppositePlacement = __esm({ 27872 "../../node_modules/@popperjs/core/lib/utils/getOppositePlacement.js"() { 27873 hash2 = { 27874 left: "right", 27875 right: "left", 27876 bottom: "top", 27877 top: "bottom" 27878 }; 27879 } 27880}); 27881
vendor: 438 bytes, lines 27882-27896
27882// ../../node_modules/@popperjs/core/lib/utils/getOppositeVariationPlacement.js 27883function getOppositeVariationPlacement(placement) { 27884 return placement.replace(/start|end/g, function(matched) { 27885 return hash3[matched]; 27886 }); 27887} 27888var hash3, init_getOppositeVariationPlacement = __esm({ 27889 "../../node_modules/@popperjs/core/lib/utils/getOppositeVariationPlacement.js"() { 27890 hash3 = { 27891 start: "end", 27892 end: "start" 27893 }; 27894 } 27895}); 27896
vendor: 383 bytes, lines 27897-27910
27897// ../../node_modules/@popperjs/core/lib/dom-utils/getWindowScroll.js 27898function getWindowScroll(node2) { 27899 var win = getWindow2(node2), scrollLeft = win.pageXOffset, scrollTop = win.pageYOffset; 27900 return { 27901 scrollLeft, 27902 scrollTop 27903 }; 27904} 27905var init_getWindowScroll = __esm({ 27906 "../../node_modules/@popperjs/core/lib/dom-utils/getWindowScroll.js"() { 27907 init_getWindow(); 27908 } 27909}); 27910
vendor: 440 bytes, lines 27911-27922
27911// ../../node_modules/@popperjs/core/lib/dom-utils/getWindowScrollBarX.js 27912function getWindowScrollBarX(element) { 27913 return getBoundingClientRect(getDocumentElement(element)).left + getWindowScroll(element).scrollLeft; 27914} 27915var init_getWindowScrollBarX = __esm({ 27916 "../../node_modules/@popperjs/core/lib/dom-utils/getWindowScrollBarX.js"() { 27917 init_getBoundingClientRect(); 27918 init_getDocumentElement(); 27919 init_getWindowScroll(); 27920 } 27921}); 27922
vendor: 880 bytes, lines 27923-27946
27923// ../../node_modules/@popperjs/core/lib/dom-utils/getViewportRect.js 27924function getViewportRect(element, strategy) { 27925 var win = getWindow2(element), html = getDocumentElement(element), visualViewport = win.visualViewport, width = html.clientWidth, height = html.clientHeight, x = 0, y = 0; 27926 if (visualViewport) { 27927 width = visualViewport.width, height = visualViewport.height; 27928 var layoutViewport = isLayoutViewport(); 27929 (layoutViewport || !layoutViewport && strategy === "fixed") && (x = visualViewport.offsetLeft, y = visualViewport.offsetTop); 27930 } 27931 return { 27932 width, 27933 height, 27934 x: x + getWindowScrollBarX(element), 27935 y 27936 }; 27937} 27938var init_getViewportRect = __esm({ 27939 "../../node_modules/@popperjs/core/lib/dom-utils/getViewportRect.js"() { 27940 init_getWindow(); 27941 init_getDocumentElement(); 27942 init_getWindowScrollBarX(); 27943 init_isLayoutViewport(); 27944 } 27945}); 27946
vendor: 1,046 bytes, lines 27947-27966
27947// ../../node_modules/@popperjs/core/lib/dom-utils/getDocumentRect.js 27948function getDocumentRect(element) { 27949 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; 27950 return getComputedStyle2(body || html).direction === "rtl" && (x += max(html.clientWidth, body ? body.clientWidth : 0) - width), { 27951 width, 27952 height, 27953 x, 27954 y 27955 }; 27956} 27957var init_getDocumentRect = __esm({ 27958 "../../node_modules/@popperjs/core/lib/dom-utils/getDocumentRect.js"() { 27959 init_getDocumentElement(); 27960 init_getComputedStyle(); 27961 init_getWindowScrollBarX(); 27962 init_getWindowScroll(); 27963 init_math(); 27964 } 27965}); 27966
vendor: 505 bytes, lines 27967-27977
27967// ../../node_modules/@popperjs/core/lib/dom-utils/isScrollParent.js 27968function isScrollParent(element) { 27969 var _getComputedStyle = getComputedStyle2(element), overflow = _getComputedStyle.overflow, overflowX = _getComputedStyle.overflowX, overflowY = _getComputedStyle.overflowY; 27970 return /auto|scroll|overlay|hidden/.test(overflow + overflowY + overflowX); 27971} 27972var init_isScrollParent = __esm({ 27973 "../../node_modules/@popperjs/core/lib/dom-utils/isScrollParent.js"() { 27974 init_getComputedStyle(); 27975 } 27976}); 27977
vendor: 521 bytes, lines 27978-27990
27978// ../../node_modules/@popperjs/core/lib/dom-utils/getScrollParent.js 27979function getScrollParent(node2) { 27980 return ["html", "body", "#document"].indexOf(getNodeName(node2)) >= 0 ? node2.ownerDocument.body : isHTMLElement(node2) && isScrollParent(node2) ? node2 : getScrollParent(getParentNode(node2)); 27981} 27982var init_getScrollParent = __esm({ 27983 "../../node_modules/@popperjs/core/lib/dom-utils/getScrollParent.js"() { 27984 init_getParentNode(); 27985 init_isScrollParent(); 27986 init_getNodeName(); 27987 init_instanceOf(); 27988 } 27989}); 27990
vendor: 960 bytes, lines 27991-28009
27991// ../../node_modules/@popperjs/core/lib/dom-utils/listScrollParents.js 27992function listScrollParents(element, list) { 27993 var _element$ownerDocumen; 27994 list === void 0 && (list = []); 27995 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); 27996 return isBody ? updatedList : ( 27997 // $FlowFixMe[incompatible-call]: isBody tells us target will be an HTMLElement here 27998 updatedList.concat(listScrollParents(getParentNode(target))) 27999 ); 28000} 28001var init_listScrollParents = __esm({ 28002 "../../node_modules/@popperjs/core/lib/dom-utils/listScrollParents.js"() { 28003 init_getScrollParent(); 28004 init_getParentNode(); 28005 init_getWindow(); 28006 init_isScrollParent(); 28007 } 28008}); 28009
vendor: 361 bytes, lines 28010-28023
28010// ../../node_modules/@popperjs/core/lib/utils/rectToClientRect.js 28011function rectToClientRect(rect) { 28012 return Object.assign({}, rect, { 28013 left: rect.x, 28014 top: rect.y, 28015 right: rect.x + rect.width, 28016 bottom: rect.y + rect.height 28017 }); 28018} 28019var init_rectToClientRect = __esm({ 28020 "../../node_modules/@popperjs/core/lib/utils/rectToClientRect.js"() { 28021 } 28022}); 28023
vendor: 2,774 bytes, lines 28024-28063
28024// ../../node_modules/@popperjs/core/lib/dom-utils/getClippingRect.js 28025function getInnerBoundingClientRect(element, strategy) { 28026 var rect = getBoundingClientRect(element, !1, strategy === "fixed"); 28027 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; 28028} 28029function getClientRectFromMixedType(element, clippingParent, strategy) { 28030 return clippingParent === viewport ? rectToClientRect(getViewportRect(element, strategy)) : isElement5(clippingParent) ? getInnerBoundingClientRect(clippingParent, strategy) : rectToClientRect(getDocumentRect(getDocumentElement(element))); 28031} 28032function getClippingParents(element) { 28033 var clippingParents2 = listScrollParents(getParentNode(element)), canEscapeClipping = ["absolute", "fixed"].indexOf(getComputedStyle2(element).position) >= 0, clipperElement = canEscapeClipping && isHTMLElement(element) ? getOffsetParent(element) : element; 28034 return isElement5(clipperElement) ? clippingParents2.filter(function(clippingParent) { 28035 return isElement5(clippingParent) && contains(clippingParent, clipperElement) && getNodeName(clippingParent) !== "body"; 28036 }) : []; 28037} 28038function getClippingRect(element, boundary, rootBoundary, strategy) { 28039 var mainClippingParents = boundary === "clippingParents" ? getClippingParents(element) : [].concat(boundary), clippingParents2 = [].concat(mainClippingParents, [rootBoundary]), firstClippingParent = clippingParents2[0], clippingRect = clippingParents2.reduce(function(accRect, clippingParent) { 28040 var rect = getClientRectFromMixedType(element, clippingParent, strategy); 28041 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; 28042 }, getClientRectFromMixedType(element, firstClippingParent, strategy)); 28043 return clippingRect.width = clippingRect.right - clippingRect.left, clippingRect.height = clippingRect.bottom - clippingRect.top, clippingRect.x = clippingRect.left, clippingRect.y = clippingRect.top, clippingRect; 28044} 28045var init_getClippingRect = __esm({ 28046 "../../node_modules/@popperjs/core/lib/dom-utils/getClippingRect.js"() { 28047 init_enums(); 28048 init_getViewportRect(); 28049 init_getDocumentRect(); 28050 init_listScrollParents(); 28051 init_getOffsetParent(); 28052 init_getDocumentElement(); 28053 init_getComputedStyle(); 28054 init_instanceOf(); 28055 init_getBoundingClientRect(); 28056 init_getParentNode(); 28057 init_contains(); 28058 init_getNodeName(); 28059 init_rectToClientRect(); 28060 init_math(); 28061 } 28062}); 28063
vendor: 1,735 bytes, lines 28064-28121
28064// ../../node_modules/@popperjs/core/lib/utils/computeOffsets.js 28065function computeOffsets(_ref) { 28066 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; 28067 switch (basePlacement) { 28068 case top: 28069 offsets = { 28070 x: commonX, 28071 y: reference2.y - element.height 28072 }; 28073 break; 28074 case bottom: 28075 offsets = { 28076 x: commonX, 28077 y: reference2.y + reference2.height 28078 }; 28079 break; 28080 case right: 28081 offsets = { 28082 x: reference2.x + reference2.width, 28083 y: commonY 28084 }; 28085 break; 28086 case left: 28087 offsets = { 28088 x: reference2.x - element.width, 28089 y: commonY 28090 }; 28091 break; 28092 default: 28093 offsets = { 28094 x: reference2.x, 28095 y: reference2.y 28096 }; 28097 } 28098 var mainAxis = basePlacement ? getMainAxisFromPlacement(basePlacement) : null; 28099 if (mainAxis != null) { 28100 var len = mainAxis === "y" ? "height" : "width"; 28101 switch (variation) { 28102 case start: 28103 offsets[mainAxis] = offsets[mainAxis] - (reference2[len] / 2 - element[len] / 2); 28104 break; 28105 case end: 28106 offsets[mainAxis] = offsets[mainAxis] + (reference2[len] / 2 - element[len] / 2); 28107 break; 28108 default: 28109 } 28110 } 28111 return offsets; 28112} 28113var init_computeOffsets = __esm({ 28114 "../../node_modules/@popperjs/core/lib/utils/computeOffsets.js"() { 28115 init_getBasePlacement(); 28116 init_getVariation(); 28117 init_getMainAxisFromPlacement(); 28118 init_enums(); 28119 } 28120}); 28121
vendor: 2,978 bytes, lines 28122-28158
28122// ../../node_modules/@popperjs/core/lib/utils/detectOverflow.js 28123function detectOverflow(state3, options) { 28124 options === void 0 && (options = {}); 28125 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({ 28126 reference: referenceClientRect, 28127 element: popperRect, 28128 strategy: "absolute", 28129 placement 28130 }), popperClientRect = rectToClientRect(Object.assign({}, popperRect, popperOffsets2)), elementClientRect = elementContext === popper ? popperClientRect : referenceClientRect, overflowOffsets = { 28131 top: clippingClientRect.top - elementClientRect.top + paddingObject.top, 28132 bottom: elementClientRect.bottom - clippingClientRect.bottom + paddingObject.bottom, 28133 left: clippingClientRect.left - elementClientRect.left + paddingObject.left, 28134 right: elementClientRect.right - clippingClientRect.right + paddingObject.right 28135 }, offsetData = state3.modifiersData.offset; 28136 if (elementContext === popper && offsetData) { 28137 var offset3 = offsetData[placement]; 28138 Object.keys(overflowOffsets).forEach(function(key) { 28139 var multiply = [right, bottom].indexOf(key) >= 0 ? 1 : -1, axis = [top, bottom].indexOf(key) >= 0 ? "y" : "x"; 28140 overflowOffsets[key] += offset3[axis] * multiply; 28141 }); 28142 } 28143 return overflowOffsets; 28144} 28145var init_detectOverflow = __esm({ 28146 "../../node_modules/@popperjs/core/lib/utils/detectOverflow.js"() { 28147 init_getClippingRect(); 28148 init_getDocumentElement(); 28149 init_getBoundingClientRect(); 28150 init_computeOffsets(); 28151 init_rectToClientRect(); 28152 init_enums(); 28153 init_instanceOf(); 28154 init_mergePaddingObject(); 28155 init_expandToHashMap(); 28156 } 28157}); 28158
vendor: 1,516 bytes, lines 28159-28188
28159// ../../node_modules/@popperjs/core/lib/utils/computeAutoPlacement.js 28160function computeAutoPlacement(state3, options) { 28161 options === void 0 && (options = {}); 28162 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) { 28163 return getVariation(placement2) === variation; 28164 }) : basePlacements, allowedPlacements = placements2.filter(function(placement2) { 28165 return allowedAutoPlacements.indexOf(placement2) >= 0; 28166 }); 28167 allowedPlacements.length === 0 && (allowedPlacements = placements2); 28168 var overflows = allowedPlacements.reduce(function(acc, placement2) { 28169 return acc[placement2] = detectOverflow(state3, { 28170 placement: placement2, 28171 boundary, 28172 rootBoundary, 28173 padding 28174 })[getBasePlacement(placement2)], acc; 28175 }, {}); 28176 return Object.keys(overflows).sort(function(a3, b) { 28177 return overflows[a3] - overflows[b]; 28178 }); 28179} 28180var init_computeAutoPlacement = __esm({ 28181 "../../node_modules/@popperjs/core/lib/utils/computeAutoPlacement.js"() { 28182 init_getVariation(); 28183 init_enums(); 28184 init_detectOverflow(); 28185 init_getBasePlacement(); 28186 } 28187}); 28188
vendor: 4,298 bytes, lines 28189-28265
28189// ../../node_modules/@popperjs/core/lib/modifiers/flip.js 28190function getExpandedFallbackPlacements(placement) { 28191 if (getBasePlacement(placement) === auto) 28192 return []; 28193 var oppositePlacement = getOppositePlacement(placement); 28194 return [getOppositeVariationPlacement(placement), oppositePlacement, getOppositeVariationPlacement(oppositePlacement)]; 28195} 28196function flip(_ref) { 28197 var state3 = _ref.state, options = _ref.options, name = _ref.name; 28198 if (!state3.modifiersData[name]._skip) { 28199 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) { 28200 return acc.concat(getBasePlacement(placement2) === auto ? computeAutoPlacement(state3, { 28201 placement: placement2, 28202 boundary, 28203 rootBoundary, 28204 padding, 28205 flipVariations, 28206 allowedAutoPlacements 28207 }) : placement2); 28208 }, []), referenceRect = state3.rects.reference, popperRect = state3.rects.popper, checksMap = /* @__PURE__ */ new Map(), makeFallbackChecks = !0, firstFittingPlacement = placements2[0], i = 0; i < placements2.length; i++) { 28209 var placement = placements2[i], _basePlacement = getBasePlacement(placement), isStartVariation = getVariation(placement) === start, isVertical = [top, bottom].indexOf(_basePlacement) >= 0, len = isVertical ? "width" : "height", overflow = detectOverflow(state3, { 28210 placement, 28211 boundary, 28212 rootBoundary, 28213 altBoundary, 28214 padding 28215 }), mainVariationSide = isVertical ? isStartVariation ? right : left : isStartVariation ? bottom : top; 28216 referenceRect[len] > popperRect[len] && (mainVariationSide = getOppositePlacement(mainVariationSide)); 28217 var altVariationSide = getOppositePlacement(mainVariationSide), checks = []; 28218 if (checkMainAxis && checks.push(overflow[_basePlacement] <= 0), checkAltAxis && checks.push(overflow[mainVariationSide] <= 0, overflow[altVariationSide] <= 0), checks.every(function(check) { 28219 return check; 28220 })) { 28221 firstFittingPlacement = placement, makeFallbackChecks = !1; 28222 break; 28223 } 28224 checksMap.set(placement, checks); 28225 } 28226 if (makeFallbackChecks) 28227 for (var numberOfChecks = flipVariations ? 3 : 1, _loop = function(_i2) { 28228 var fittingPlacement = placements2.find(function(placement2) { 28229 var checks2 = checksMap.get(placement2); 28230 if (checks2) 28231 return checks2.slice(0, _i2).every(function(check) { 28232 return check; 28233 }); 28234 }); 28235 if (fittingPlacement) 28236 return firstFittingPlacement = fittingPlacement, "break"; 28237 }, _i = numberOfChecks; _i > 0; _i--) { 28238 var _ret = _loop(_i); 28239 if (_ret === "break") break; 28240 } 28241 state3.placement !== firstFittingPlacement && (state3.modifiersData[name]._skip = !0, state3.placement = firstFittingPlacement, state3.reset = !0); 28242 } 28243} 28244var flip_default, init_flip = __esm({ 28245 "../../node_modules/@popperjs/core/lib/modifiers/flip.js"() { 28246 init_getOppositePlacement(); 28247 init_getBasePlacement(); 28248 init_getOppositeVariationPlacement(); 28249 init_detectOverflow(); 28250 init_computeAutoPlacement(); 28251 init_enums(); 28252 init_getVariation(); 28253 flip_default = { 28254 name: "flip", 28255 enabled: !0, 28256 phase: "main", 28257 fn: flip, 28258 requiresIfExists: ["offset"], 28259 data: { 28260 _skip: !1 28261 } 28262 }; 28263 } 28264}); 28265
vendor: 1,866 bytes, lines 28266-28312
28266// ../../node_modules/@popperjs/core/lib/modifiers/hide.js 28267function getSideOffsets(overflow, rect, preventedOffsets) { 28268 return preventedOffsets === void 0 && (preventedOffsets = { 28269 x: 0, 28270 y: 0 28271 }), { 28272 top: overflow.top - rect.height - preventedOffsets.y, 28273 right: overflow.right - rect.width + preventedOffsets.x, 28274 bottom: overflow.bottom - rect.height + preventedOffsets.y, 28275 left: overflow.left - rect.width - preventedOffsets.x 28276 }; 28277} 28278function isAnySideFullyClipped(overflow) { 28279 return [top, right, bottom, left].some(function(side) { 28280 return overflow[side] >= 0; 28281 }); 28282} 28283function hide(_ref) { 28284 var state3 = _ref.state, name = _ref.name, referenceRect = state3.rects.reference, popperRect = state3.rects.popper, preventedOffsets = state3.modifiersData.preventOverflow, referenceOverflow = detectOverflow(state3, { 28285 elementContext: "reference" 28286 }), popperAltOverflow = detectOverflow(state3, { 28287 altBoundary: !0 28288 }), referenceClippingOffsets = getSideOffsets(referenceOverflow, referenceRect), popperEscapeOffsets = getSideOffsets(popperAltOverflow, popperRect, preventedOffsets), isReferenceHidden = isAnySideFullyClipped(referenceClippingOffsets), hasPopperEscaped = isAnySideFullyClipped(popperEscapeOffsets); 28289 state3.modifiersData[name] = { 28290 referenceClippingOffsets, 28291 popperEscapeOffsets, 28292 isReferenceHidden, 28293 hasPopperEscaped 28294 }, state3.attributes.popper = Object.assign({}, state3.attributes.popper, { 28295 "data-popper-reference-hidden": isReferenceHidden, 28296 "data-popper-escaped": hasPopperEscaped 28297 }); 28298} 28299var hide_default, init_hide = __esm({ 28300 "../../node_modules/@popperjs/core/lib/modifiers/hide.js"() { 28301 init_enums(); 28302 init_detectOverflow(); 28303 hide_default = { 28304 name: "hide", 28305 enabled: !0, 28306 phase: "main", 28307 requiresIfExists: ["preventOverflow"], 28308 fn: hide 28309 }; 28310 } 28311}); 28312
vendor: 1,531 bytes, lines 28313-28345
28313// ../../node_modules/@popperjs/core/lib/modifiers/offset.js 28314function distanceAndSkiddingToXY(placement, rects, offset3) { 28315 var basePlacement = getBasePlacement(placement), invertDistance = [left, top].indexOf(basePlacement) >= 0 ? -1 : 1, _ref = typeof offset3 == "function" ? offset3(Object.assign({}, rects, { 28316 placement 28317 })) : offset3, skidding = _ref[0], distance = _ref[1]; 28318 return skidding = skidding || 0, distance = (distance || 0) * invertDistance, [left, right].indexOf(basePlacement) >= 0 ? { 28319 x: distance, 28320 y: skidding 28321 } : { 28322 x: skidding, 28323 y: distance 28324 }; 28325} 28326function offset2(_ref2) { 28327 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) { 28328 return acc[placement] = distanceAndSkiddingToXY(placement, state3.rects, offset3), acc; 28329 }, {}), _data$state$placement = data[state3.placement], x = _data$state$placement.x, y = _data$state$placement.y; 28330 state3.modifiersData.popperOffsets != null && (state3.modifiersData.popperOffsets.x += x, state3.modifiersData.popperOffsets.y += y), state3.modifiersData[name] = data; 28331} 28332var offset_default, init_offset = __esm({ 28333 "../../node_modules/@popperjs/core/lib/modifiers/offset.js"() { 28334 init_getBasePlacement(); 28335 init_enums(); 28336 offset_default = { 28337 name: "offset", 28338 enabled: !0, 28339 phase: "main", 28340 requires: ["popperOffsets"], 28341 fn: offset2 28342 }; 28343 } 28344}); 28345
vendor: 642 bytes, lines 28346-28368
28346// ../../node_modules/@popperjs/core/lib/modifiers/popperOffsets.js 28347function popperOffsets(_ref) { 28348 var state3 = _ref.state, name = _ref.name; 28349 state3.modifiersData[name] = computeOffsets({ 28350 reference: state3.rects.reference, 28351 element: state3.rects.popper, 28352 strategy: "absolute", 28353 placement: state3.placement 28354 }); 28355} 28356var popperOffsets_default, init_popperOffsets = __esm({ 28357 "../../node_modules/@popperjs/core/lib/modifiers/popperOffsets.js"() { 28358 init_computeOffsets(); 28359 popperOffsets_default = { 28360 name: "popperOffsets", 28361 enabled: !0, 28362 phase: "read", 28363 fn: popperOffsets, 28364 data: {} 28365 }; 28366 } 28367}); 28368
vendor: 231 bytes, lines 28369-28377
28369// ../../node_modules/@popperjs/core/lib/utils/getAltAxis.js 28370function getAltAxis(axis) { 28371 return axis === "x" ? "y" : "x"; 28372} 28373var init_getAltAxis = __esm({ 28374 "../../node_modules/@popperjs/core/lib/utils/getAltAxis.js"() { 28375 } 28376}); 28377
vendor: 5,400 bytes, lines 28378-28434
28378// ../../node_modules/@popperjs/core/lib/modifiers/preventOverflow.js 28379function preventOverflow(_ref) { 28380 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, { 28381 boundary, 28382 rootBoundary, 28383 padding, 28384 altBoundary 28385 }), 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, { 28386 placement: state3.placement 28387 })) : tetherOffset, normalizedTetherOffsetValue = typeof tetherOffsetValue == "number" ? { 28388 mainAxis: tetherOffsetValue, 28389 altAxis: tetherOffsetValue 28390 } : Object.assign({ 28391 mainAxis: 0, 28392 altAxis: 0 28393 }, tetherOffsetValue), offsetModifierState = state3.modifiersData.offset ? state3.modifiersData.offset[state3.placement] : null, data = { 28394 x: 0, 28395 y: 0 28396 }; 28397 if (popperOffsets2) { 28398 if (checkMainAxis) { 28399 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) : { 28400 width: 0, 28401 height: 0 28402 }, 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); 28403 popperOffsets2[mainAxis] = preventedOffset, data[mainAxis] = preventedOffset - offset3; 28404 } 28405 if (checkAltAxis) { 28406 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); 28407 popperOffsets2[altAxis] = _preventedOffset, data[altAxis] = _preventedOffset - _offset; 28408 } 28409 state3.modifiersData[name] = data; 28410 } 28411} 28412var preventOverflow_default, init_preventOverflow = __esm({ 28413 "../../node_modules/@popperjs/core/lib/modifiers/preventOverflow.js"() { 28414 init_enums(); 28415 init_getBasePlacement(); 28416 init_getMainAxisFromPlacement(); 28417 init_getAltAxis(); 28418 init_within(); 28419 init_getLayoutRect(); 28420 init_getOffsetParent(); 28421 init_detectOverflow(); 28422 init_getVariation(); 28423 init_getFreshSideObject(); 28424 init_math(); 28425 preventOverflow_default = { 28426 name: "preventOverflow", 28427 enabled: !0, 28428 phase: "main", 28429 fn: preventOverflow, 28430 requiresIfExists: ["offset"] 28431 }; 28432 } 28433}); 28434
vendor: 365 bytes, lines 28435-28449
28435// ../../node_modules/@popperjs/core/lib/modifiers/index.js 28436var init_modifiers = __esm({ 28437 "../../node_modules/@popperjs/core/lib/modifiers/index.js"() { 28438 init_applyStyles(); 28439 init_arrow(); 28440 init_computeStyles(); 28441 init_eventListeners(); 28442 init_flip(); 28443 init_hide(); 28444 init_offset(); 28445 init_popperOffsets(); 28446 init_preventOverflow(); 28447 } 28448}); 28449
vendor: 332 bytes, lines 28450-28461
28450// ../../node_modules/@popperjs/core/lib/dom-utils/getHTMLElementScroll.js 28451function getHTMLElementScroll(element) { 28452 return { 28453 scrollLeft: element.scrollLeft, 28454 scrollTop: element.scrollTop 28455 }; 28456} 28457var init_getHTMLElementScroll = __esm({ 28458 "../../node_modules/@popperjs/core/lib/dom-utils/getHTMLElementScroll.js"() { 28459 } 28460}); 28461
vendor: 441 bytes, lines 28462-28474
28462// ../../node_modules/@popperjs/core/lib/dom-utils/getNodeScroll.js 28463function getNodeScroll(node2) { 28464 return node2 === getWindow2(node2) || !isHTMLElement(node2) ? getWindowScroll(node2) : getHTMLElementScroll(node2); 28465} 28466var init_getNodeScroll = __esm({ 28467 "../../node_modules/@popperjs/core/lib/dom-utils/getNodeScroll.js"() { 28468 init_getWindowScroll(); 28469 init_getWindow(); 28470 init_instanceOf(); 28471 init_getHTMLElementScroll(); 28472 } 28473}); 28474
vendor: 1,769 bytes, lines 28475-28509
28475// ../../node_modules/@popperjs/core/lib/dom-utils/getCompositeRect.js 28476function isElementScaled(element) { 28477 var rect = element.getBoundingClientRect(), scaleX = round2(rect.width) / element.offsetWidth || 1, scaleY = round2(rect.height) / element.offsetHeight || 1; 28478 return scaleX !== 1 || scaleY !== 1; 28479} 28480function getCompositeRect(elementOrVirtualElement, offsetParent, isFixed) { 28481 isFixed === void 0 && (isFixed = !1); 28482 var isOffsetParentAnElement = isHTMLElement(offsetParent), offsetParentIsScaled = isHTMLElement(offsetParent) && isElementScaled(offsetParent), documentElement = getDocumentElement(offsetParent), rect = getBoundingClientRect(elementOrVirtualElement, offsetParentIsScaled, isFixed), scroll = { 28483 scrollLeft: 0, 28484 scrollTop: 0 28485 }, offsets = { 28486 x: 0, 28487 y: 0 28488 }; 28489 return (isOffsetParentAnElement || !isOffsetParentAnElement && !isFixed) && ((getNodeName(offsetParent) !== "body" || // https://github.com/popperjs/popper-core/issues/1078 28490 isScrollParent(documentElement)) && (scroll = getNodeScroll(offsetParent)), isHTMLElement(offsetParent) ? (offsets = getBoundingClientRect(offsetParent, !0), offsets.x += offsetParent.clientLeft, offsets.y += offsetParent.clientTop) : documentElement && (offsets.x = getWindowScrollBarX(documentElement))), { 28491 x: rect.left + scroll.scrollLeft - offsets.x, 28492 y: rect.top + scroll.scrollTop - offsets.y, 28493 width: rect.width, 28494 height: rect.height 28495 }; 28496} 28497var init_getCompositeRect = __esm({ 28498 "../../node_modules/@popperjs/core/lib/dom-utils/getCompositeRect.js"() { 28499 init_getBoundingClientRect(); 28500 init_getNodeScroll(); 28501 init_getNodeName(); 28502 init_instanceOf(); 28503 init_getWindowScrollBarX(); 28504 init_getDocumentElement(); 28505 init_isScrollParent(); 28506 init_math(); 28507 } 28508}); 28509
vendor: 1,117 bytes, lines 28510-28543
28510// ../../node_modules/@popperjs/core/lib/utils/orderModifiers.js 28511function order(modifiers) { 28512 var map2 = /* @__PURE__ */ new Map(), visited = /* @__PURE__ */ new Set(), result = []; 28513 modifiers.forEach(function(modifier) { 28514 map2.set(modifier.name, modifier); 28515 }); 28516 function sort(modifier) { 28517 visited.add(modifier.name); 28518 var requires = [].concat(modifier.requires || [], modifier.requiresIfExists || []); 28519 requires.forEach(function(dep) { 28520 if (!visited.has(dep)) { 28521 var depModifier = map2.get(dep); 28522 depModifier && sort(depModifier); 28523 } 28524 }), result.push(modifier); 28525 } 28526 return modifiers.forEach(function(modifier) { 28527 visited.has(modifier.name) || sort(modifier); 28528 }), result; 28529} 28530function orderModifiers(modifiers) { 28531 var orderedModifiers = order(modifiers); 28532 return modifierPhases.reduce(function(acc, phase) { 28533 return acc.concat(orderedModifiers.filter(function(modifier) { 28534 return modifier.phase === phase; 28535 })); 28536 }, []); 28537} 28538var init_orderModifiers = __esm({ 28539 "../../node_modules/@popperjs/core/lib/utils/orderModifiers.js"() { 28540 init_enums(); 28541 } 28542}); 28543
vendor: 406 bytes, lines 28544-28559
28544// ../../node_modules/@popperjs/core/lib/utils/debounce.js 28545function debounce(fn4) { 28546 var pending; 28547 return function() { 28548 return pending || (pending = new Promise(function(resolve) { 28549 Promise.resolve().then(function() { 28550 pending = void 0, resolve(fn4()); 28551 }); 28552 })), pending; 28553 }; 28554} 28555var init_debounce = __esm({ 28556 "../../node_modules/@popperjs/core/lib/utils/debounce.js"() { 28557 } 28558}); 28559
vendor: 637 bytes, lines 28560-28577
28560// ../../node_modules/@popperjs/core/lib/utils/mergeByName.js 28561function mergeByName(modifiers) { 28562 var merged = modifiers.reduce(function(merged2, current) { 28563 var existing = merged2[current.name]; 28564 return merged2[current.name] = existing ? Object.assign({}, existing, current, { 28565 options: Object.assign({}, existing.options, current.options), 28566 data: Object.assign({}, existing.data, current.data) 28567 }) : current, merged2; 28568 }, {}); 28569 return Object.keys(merged).map(function(key) { 28570 return merged[key]; 28571 }); 28572} 28573var init_mergeByName = __esm({ 28574 "../../node_modules/@popperjs/core/lib/utils/mergeByName.js"() { 28575 } 28576}); 28577
vendor: 5,608 bytes, lines 28578-28704
28578// ../../node_modules/@popperjs/core/lib/createPopper.js 28579function areValidElements() { 28580 for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) 28581 args[_key] = arguments[_key]; 28582 return !args.some(function(element) { 28583 return !(element && typeof element.getBoundingClientRect == "function"); 28584 }); 28585} 28586function popperGenerator(generatorOptions) { 28587 generatorOptions === void 0 && (generatorOptions = {}); 28588 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; 28589 return function(reference2, popper2, options) { 28590 options === void 0 && (options = defaultOptions2); 28591 var state3 = { 28592 placement: "bottom", 28593 orderedModifiers: [], 28594 options: Object.assign({}, DEFAULT_OPTIONS2, defaultOptions2), 28595 modifiersData: {}, 28596 elements: { 28597 reference: reference2, 28598 popper: popper2 28599 }, 28600 attributes: {}, 28601 styles: {} 28602 }, effectCleanupFns = [], isDestroyed = !1, instance = { 28603 state: state3, 28604 setOptions: function(setOptionsAction) { 28605 var options2 = typeof setOptionsAction == "function" ? setOptionsAction(state3.options) : setOptionsAction; 28606 cleanupModifierEffects(), state3.options = Object.assign({}, defaultOptions2, state3.options, options2), state3.scrollParents = { 28607 reference: isElement5(reference2) ? listScrollParents(reference2) : reference2.contextElement ? listScrollParents(reference2.contextElement) : [], 28608 popper: listScrollParents(popper2) 28609 }; 28610 var orderedModifiers = orderModifiers(mergeByName([].concat(defaultModifiers3, state3.options.modifiers))); 28611 return state3.orderedModifiers = orderedModifiers.filter(function(m3) { 28612 return m3.enabled; 28613 }), runModifierEffects(), instance.update(); 28614 }, 28615 // Sync update â it will always be executed, even if not necessary. This 28616 // is useful for low frequency updates where sync behavior simplifies the 28617 // logic. 28618 // For high frequency updates (e.g. `resize` and `scroll` events), always 28619 // prefer the async Popper#update method 28620 forceUpdate: function() { 28621 if (!isDestroyed) { 28622 var _state$elements = state3.elements, reference3 = _state$elements.reference, popper3 = _state$elements.popper; 28623 if (areValidElements(reference3, popper3)) { 28624 state3.rects = { 28625 reference: getCompositeRect(reference3, getOffsetParent(popper3), state3.options.strategy === "fixed"), 28626 popper: getLayoutRect(popper3) 28627 }, state3.reset = !1, state3.placement = state3.options.placement, state3.orderedModifiers.forEach(function(modifier) { 28628 return state3.modifiersData[modifier.name] = Object.assign({}, modifier.data); 28629 }); 28630 for (var index4 = 0; index4 < state3.orderedModifiers.length; index4++) { 28631 if (state3.reset === !0) { 28632 state3.reset = !1, index4 = -1; 28633 continue; 28634 } 28635 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; 28636 typeof fn4 == "function" && (state3 = fn4({ 28637 state: state3, 28638 options: _options, 28639 name, 28640 instance 28641 }) || state3); 28642 } 28643 } 28644 } 28645 }, 28646 // Async and optimistically optimized update â it will not be executed if 28647 // not necessary (debounced to run at most once-per-tick) 28648 update: debounce(function() { 28649 return new Promise(function(resolve) { 28650 instance.forceUpdate(), resolve(state3); 28651 }); 28652 }), 28653 destroy: function() { 28654 cleanupModifierEffects(), isDestroyed = !0; 28655 } 28656 }; 28657 if (!areValidElements(reference2, popper2)) 28658 return instance; 28659 instance.setOptions(options).then(function(state4) { 28660 !isDestroyed && options.onFirstUpdate && options.onFirstUpdate(state4); 28661 }); 28662 function runModifierEffects() { 28663 state3.orderedModifiers.forEach(function(_ref) { 28664 var name = _ref.name, _ref$options = _ref.options, options2 = _ref$options === void 0 ? {} : _ref$options, effect4 = _ref.effect; 28665 if (typeof effect4 == "function") { 28666 var cleanupFn = effect4({ 28667 state: state3, 28668 name, 28669 instance, 28670 options: options2 28671 }), noopFn = function() { 28672 }; 28673 effectCleanupFns.push(cleanupFn || noopFn); 28674 } 28675 }); 28676 } 28677 function cleanupModifierEffects() { 28678 effectCleanupFns.forEach(function(fn4) { 28679 return fn4(); 28680 }), effectCleanupFns = []; 28681 } 28682 return instance; 28683 }; 28684} 28685var DEFAULT_OPTIONS2, createPopper, init_createPopper = __esm({ 28686 "../../node_modules/@popperjs/core/lib/createPopper.js"() { 28687 init_getCompositeRect(); 28688 init_getLayoutRect(); 28689 init_listScrollParents(); 28690 init_getOffsetParent(); 28691 init_orderModifiers(); 28692 init_debounce(); 28693 init_mergeByName(); 28694 init_detectOverflow(); 28695 init_instanceOf(); 28696 DEFAULT_OPTIONS2 = { 28697 placement: "bottom", 28698 modifiers: [], 28699 strategy: "absolute" 28700 }; 28701 createPopper = popperGenerator(); 28702 } 28703}); 28704
vendor: 499 bytes, lines 28705-28718
28705// ../../node_modules/@popperjs/core/lib/popper-lite.js 28706var defaultModifiers, createPopper2, init_popper_lite = __esm({ 28707 "../../node_modules/@popperjs/core/lib/popper-lite.js"() { 28708 init_createPopper(); 28709 init_eventListeners(); 28710 init_popperOffsets(); 28711 init_computeStyles(); 28712 init_applyStyles(); 28713 defaultModifiers = [eventListeners_default, popperOffsets_default, computeStyles_default, applyStyles_default], createPopper2 = popperGenerator({ 28714 defaultModifiers 28715 }); 28716 } 28717}); 28718
vendor: 734 bytes, lines 28719-28739
28719// ../../node_modules/@popperjs/core/lib/popper.js 28720var defaultModifiers2, createPopper3, init_popper = __esm({ 28721 "../../node_modules/@popperjs/core/lib/popper.js"() { 28722 init_createPopper(); 28723 init_eventListeners(); 28724 init_popperOffsets(); 28725 init_computeStyles(); 28726 init_applyStyles(); 28727 init_offset(); 28728 init_flip(); 28729 init_preventOverflow(); 28730 init_arrow(); 28731 init_hide(); 28732 init_popper_lite(); 28733 init_modifiers(); 28734 defaultModifiers2 = [eventListeners_default, popperOffsets_default, computeStyles_default, applyStyles_default, offset_default, flip_default, preventOverflow_default, arrow_default, hide_default], createPopper3 = popperGenerator({ 28735 defaultModifiers: defaultModifiers2 28736 }); 28737 } 28738}); 28739
vendor: 245 bytes, lines 28740-28750
28740// ../../node_modules/@popperjs/core/lib/index.js 28741var init_lib = __esm({ 28742 "../../node_modules/@popperjs/core/lib/index.js"() { 28743 init_enums(); 28744 init_modifiers(); 28745 init_createPopper(); 28746 init_popper(); 28747 init_popper_lite(); 28748 } 28749}); 28750
vendor: 2,959 bytes, lines 28751-28812
28751// ../../node_modules/react-fast-compare/index.js 28752var require_react_fast_compare = __commonJS({ 28753 "../../node_modules/react-fast-compare/index.js"(exports, module2) { 28754 var hasElementType = typeof Element < "u", hasMap = typeof Map == "function", hasSet = typeof Set == "function", hasArrayBuffer = typeof ArrayBuffer == "function" && !!ArrayBuffer.isView; 28755 function equal(a3, b) { 28756 if (a3 === b) return !0; 28757 if (a3 && b && typeof a3 == "object" && typeof b == "object") { 28758 if (a3.constructor !== b.constructor) return !1; 28759 var length2, i, keys3; 28760 if (Array.isArray(a3)) { 28761 if (length2 = a3.length, length2 != b.length) return !1; 28762 for (i = length2; i-- !== 0; ) 28763 if (!equal(a3[i], b[i])) return !1; 28764 return !0; 28765 } 28766 var it; 28767 if (hasMap && a3 instanceof Map && b instanceof Map) { 28768 if (a3.size !== b.size) return !1; 28769 for (it = a3.entries(); !(i = it.next()).done; ) 28770 if (!b.has(i.value[0])) return !1; 28771 for (it = a3.entries(); !(i = it.next()).done; ) 28772 if (!equal(i.value[1], b.get(i.value[0]))) return !1; 28773 return !0; 28774 } 28775 if (hasSet && a3 instanceof Set && b instanceof Set) { 28776 if (a3.size !== b.size) return !1; 28777 for (it = a3.entries(); !(i = it.next()).done; ) 28778 if (!b.has(i.value[0])) return !1; 28779 return !0; 28780 } 28781 if (hasArrayBuffer && ArrayBuffer.isView(a3) && ArrayBuffer.isView(b)) { 28782 if (length2 = a3.length, length2 != b.length) return !1; 28783 for (i = length2; i-- !== 0; ) 28784 if (a3[i] !== b[i]) return !1; 28785 return !0; 28786 } 28787 if (a3.constructor === RegExp) return a3.source === b.source && a3.flags === b.flags; 28788 if (a3.valueOf !== Object.prototype.valueOf && typeof a3.valueOf == "function" && typeof b.valueOf == "function") return a3.valueOf() === b.valueOf(); 28789 if (a3.toString !== Object.prototype.toString && typeof a3.toString == "function" && typeof b.toString == "function") return a3.toString() === b.toString(); 28790 if (keys3 = Object.keys(a3), length2 = keys3.length, length2 !== Object.keys(b).length) return !1; 28791 for (i = length2; i-- !== 0; ) 28792 if (!Object.prototype.hasOwnProperty.call(b, keys3[i])) return !1; 28793 if (hasElementType && a3 instanceof Element) return !1; 28794 for (i = length2; i-- !== 0; ) 28795 if (!((keys3[i] === "_owner" || keys3[i] === "__v" || keys3[i] === "__o") && a3.$$typeof) && !equal(a3[keys3[i]], b[keys3[i]])) 28796 return !1; 28797 return !0; 28798 } 28799 return a3 !== a3 && b !== b; 28800 } 28801 module2.exports = function(a3, b) { 28802 try { 28803 return equal(a3, b); 28804 } catch (error) { 28805 if ((error.message || "").match(/stack|recursion/i)) 28806 return console.warn("react-fast-compare cannot handle circular refs"), !1; 28807 throw error; 28808 } 28809 }; 28810 } 28811}); 28812
vendor: 3,726 bytes, lines 28813-28890
28813// ../../node_modules/react-popper/lib/esm/usePopper.js 28814var React69, ReactDOM3, import_react_fast_compare, EMPTY_MODIFIERS, usePopper, init_usePopper = __esm({ 28815 "../../node_modules/react-popper/lib/esm/usePopper.js"() { 28816 React69 = __toESM(require_react()), ReactDOM3 = __toESM(require_react_dom()); 28817 init_lib(); 28818 import_react_fast_compare = __toESM(require_react_fast_compare()); 28819 init_utils3(); 28820 EMPTY_MODIFIERS = [], usePopper = function(referenceElement, popperElement, options) { 28821 options === void 0 && (options = {}); 28822 var prevOptions = React69.useRef(null), optionsWithDefaults = { 28823 onFirstUpdate: options.onFirstUpdate, 28824 placement: options.placement || "bottom", 28825 strategy: options.strategy || "absolute", 28826 modifiers: options.modifiers || EMPTY_MODIFIERS 28827 }, _React$useState = React69.useState({ 28828 styles: { 28829 popper: { 28830 position: optionsWithDefaults.strategy, 28831 left: "0", 28832 top: "0" 28833 }, 28834 arrow: { 28835 position: "absolute" 28836 } 28837 }, 28838 attributes: {} 28839 }), state3 = _React$useState[0], setState2 = _React$useState[1], updateStateModifier = React69.useMemo(function() { 28840 return { 28841 name: "updateState", 28842 enabled: !0, 28843 phase: "write", 28844 fn: function(_ref) { 28845 var state4 = _ref.state, elements = Object.keys(state4.elements); 28846 ReactDOM3.flushSync(function() { 28847 setState2({ 28848 styles: fromEntries3(elements.map(function(element) { 28849 return [element, state4.styles[element] || {}]; 28850 })), 28851 attributes: fromEntries3(elements.map(function(element) { 28852 return [element, state4.attributes[element]]; 28853 })) 28854 }); 28855 }); 28856 }, 28857 requires: ["computeStyles"] 28858 }; 28859 }, []), popperOptions = React69.useMemo(function() { 28860 var newOptions = { 28861 onFirstUpdate: optionsWithDefaults.onFirstUpdate, 28862 placement: optionsWithDefaults.placement, 28863 strategy: optionsWithDefaults.strategy, 28864 modifiers: [].concat(optionsWithDefaults.modifiers, [updateStateModifier, { 28865 name: "applyStyles", 28866 enabled: !1 28867 }]) 28868 }; 28869 return (0, import_react_fast_compare.default)(prevOptions.current, newOptions) ? prevOptions.current || newOptions : (prevOptions.current = newOptions, newOptions); 28870 }, [optionsWithDefaults.onFirstUpdate, optionsWithDefaults.placement, optionsWithDefaults.strategy, optionsWithDefaults.modifiers, updateStateModifier]), popperInstanceRef = React69.useRef(); 28871 return useIsomorphicLayoutEffect2(function() { 28872 popperInstanceRef.current && popperInstanceRef.current.setOptions(popperOptions); 28873 }, [popperOptions]), useIsomorphicLayoutEffect2(function() { 28874 if (!(referenceElement == null || popperElement == null)) { 28875 var createPopper4 = options.createPopper || createPopper3, popperInstance = createPopper4(referenceElement, popperElement, popperOptions); 28876 return popperInstanceRef.current = popperInstance, function() { 28877 popperInstance.destroy(), popperInstanceRef.current = null; 28878 }; 28879 } 28880 }, [referenceElement, popperElement, options.createPopper]), { 28881 state: popperInstanceRef.current ? popperInstanceRef.current.state : null, 28882 styles: state3.styles, 28883 attributes: state3.attributes, 28884 update: popperInstanceRef.current ? popperInstanceRef.current.update : null, 28885 forceUpdate: popperInstanceRef.current ? popperInstanceRef.current.forceUpdate : null 28886 }; 28887 }; 28888 } 28889}); 28890
vendor: 256 bytes, lines 28891-28900
28891// ../../node_modules/react-popper/lib/esm/Popper.js 28892var React70, init_Popper = __esm({ 28893 "../../node_modules/react-popper/lib/esm/Popper.js"() { 28894 React70 = __toESM(require_react()); 28895 init_Manager(); 28896 init_utils3(); 28897 init_usePopper(); 28898 } 28899}); 28900
vendor: 1,190 bytes, lines 28901-28935
28901// ../../node_modules/warning/warning.js 28902var require_warning = __commonJS({ 28903 "../../node_modules/warning/warning.js"(exports, module2) { 28904 "use strict"; 28905 var __DEV__ = !1, warning3 = function() { 28906 }; 28907 __DEV__ && (printWarning = function(format4, args) { 28908 var len = arguments.length; 28909 args = new Array(len > 1 ? len - 1 : 0); 28910 for (var key = 1; key < len; key++) 28911 args[key - 1] = arguments[key]; 28912 var argIndex = 0, message = "Warning: " + format4.replace(/%s/g, function() { 28913 return args[argIndex++]; 28914 }); 28915 typeof console < "u" && console.error(message); 28916 try { 28917 throw new Error(message); 28918 } catch { 28919 } 28920 }, warning3 = function(condition, format4, args) { 28921 var len = arguments.length; 28922 args = new Array(len > 2 ? len - 2 : 0); 28923 for (var key = 2; key < len; key++) 28924 args[key - 2] = arguments[key]; 28925 if (format4 === void 0) 28926 throw new Error( 28927 "`warning(condition, format, ...args)` requires a warning message argument" 28928 ); 28929 condition || printWarning.apply(null, [format4].concat(args)); 28930 }); 28931 var printWarning; 28932 module2.exports = warning3; 28933 } 28934}); 28935
vendor: 304 bytes, lines 28936-28944
28936// ../../node_modules/react-popper/lib/esm/Reference.js 28937var React71, import_warning, init_Reference = __esm({ 28938 "../../node_modules/react-popper/lib/esm/Reference.js"() { 28939 React71 = __toESM(require_react()), import_warning = __toESM(require_warning()); 28940 init_Manager(); 28941 init_utils3(); 28942 } 28943}); 28944
vendor: 225 bytes, lines 28945-28954
28945// ../../node_modules/react-popper/lib/esm/index.js 28946var init_esm2 = __esm({ 28947 "../../node_modules/react-popper/lib/esm/index.js"() { 28948 init_Popper(); 28949 init_Manager(); 28950 init_Reference(); 28951 init_usePopper(); 28952 } 28953}); 28954
vendor: 10,360 bytes, lines 28955-29156
28955// ../../node_modules/react-popper-tooltip/dist/esm/react-popper-tooltip.js 28956function useGetLatest(val) { 28957 var ref = React72.useRef(val); 28958 return ref.current = val, React72.useCallback(function() { 28959 return ref.current; 28960 }, []); 28961} 28962function useControlledState(_ref) { 28963 var initial2 = _ref.initial, value = _ref.value, _ref$onChange = _ref.onChange, onChange = _ref$onChange === void 0 ? noop5 : _ref$onChange; 28964 if (initial2 === void 0 && value === void 0) 28965 throw new TypeError('Either "value" or "initial" variable must be set. Now both are undefined'); 28966 var _React$useState = React72.useState(initial2), state3 = _React$useState[0], setState2 = _React$useState[1], getLatest = useGetLatest(state3), set3 = React72.useCallback(function(updater) { 28967 var state4 = getLatest(), updatedState = typeof updater == "function" ? updater(state4) : updater; 28968 typeof updatedState.persist == "function" && updatedState.persist(), setState2(updatedState), typeof onChange == "function" && onChange(updatedState); 28969 }, [getLatest, onChange]), isControlled = value !== void 0; 28970 return [isControlled ? value : state3, isControlled ? onChange : set3]; 28971} 28972function generateBoundingClientRect(x, y) { 28973 return x === void 0 && (x = 0), y === void 0 && (y = 0), function() { 28974 return { 28975 width: 0, 28976 height: 0, 28977 top: y, 28978 right: x, 28979 bottom: y, 28980 left: x, 28981 x: 0, 28982 y: 0, 28983 toJSON: function() { 28984 return null; 28985 } 28986 }; 28987 }; 28988} 28989function usePopperTooltip(config4, popperOptions) { 28990 var _popperProps$state, _popperProps$state$mo, _popperProps$state$mo2; 28991 config4 === void 0 && (config4 = {}), popperOptions === void 0 && (popperOptions = {}); 28992 var finalConfig = Object.keys(defaultConfig).reduce(function(config5, key) { 28993 var _extends22; 28994 return _extends({}, config5, (_extends22 = {}, _extends22[key] = config5[key] !== void 0 ? config5[key] : defaultConfig[key], _extends22)); 28995 }, config4), defaultModifiers3 = React72.useMemo( 28996 function() { 28997 return [{ 28998 name: "offset", 28999 options: { 29000 offset: finalConfig.offset 29001 } 29002 }]; 29003 }, 29004 // eslint-disable-next-line react-hooks/exhaustive-deps 29005 Array.isArray(finalConfig.offset) ? finalConfig.offset : [] 29006 ), finalPopperOptions = _extends({}, popperOptions, { 29007 placement: popperOptions.placement || finalConfig.placement, 29008 modifiers: popperOptions.modifiers || defaultModifiers3 29009 }), _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({ 29010 initial: finalConfig.defaultVisible, 29011 value: finalConfig.visible, 29012 onChange: finalConfig.onVisibleChange 29013 }), visible = _useControlledState[0], setVisible = _useControlledState[1], timer = React72.useRef(); 29014 React72.useEffect(function() { 29015 return function() { 29016 return clearTimeout(timer.current); 29017 }; 29018 }, []); 29019 var _usePopper = usePopper(finalConfig.followCursor ? virtualElement : triggerRef, tooltipRef, finalPopperOptions), styles4 = _usePopper.styles, attributes = _usePopper.attributes, popperProps = _objectWithoutPropertiesLoose(_usePopper, _excluded5), update2 = popperProps.update, getLatest = useGetLatest({ 29020 visible, 29021 triggerRef, 29022 tooltipRef, 29023 finalConfig 29024 }), isTriggeredBy = React72.useCallback( 29025 function(trigger) { 29026 return Array.isArray(finalConfig.trigger) ? finalConfig.trigger.includes(trigger) : finalConfig.trigger === trigger; 29027 }, 29028 // eslint-disable-next-line react-hooks/exhaustive-deps 29029 Array.isArray(finalConfig.trigger) ? finalConfig.trigger : [finalConfig.trigger] 29030 ), hideTooltip = React72.useCallback(function() { 29031 clearTimeout(timer.current), timer.current = window.setTimeout(function() { 29032 return setVisible(!1); 29033 }, finalConfig.delayHide); 29034 }, [finalConfig.delayHide, setVisible]), showTooltip = React72.useCallback(function() { 29035 clearTimeout(timer.current), timer.current = window.setTimeout(function() { 29036 return setVisible(!0); 29037 }, finalConfig.delayShow); 29038 }, [finalConfig.delayShow, setVisible]), toggleTooltip = React72.useCallback(function() { 29039 getLatest().visible ? hideTooltip() : showTooltip(); 29040 }, [getLatest, hideTooltip, showTooltip]); 29041 React72.useEffect(function() { 29042 if (getLatest().finalConfig.closeOnOutsideClick) { 29043 var handleClickOutside = function(event) { 29044 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; 29045 target instanceof Node && tooltipRef2 != null && triggerRef2 != null && !tooltipRef2.contains(target) && !triggerRef2.contains(target) && hideTooltip(); 29046 }; 29047 return document.addEventListener("mousedown", handleClickOutside), function() { 29048 return document.removeEventListener("mousedown", handleClickOutside); 29049 }; 29050 } 29051 }, [getLatest, hideTooltip]), React72.useEffect(function() { 29052 if (!(triggerRef == null || !isTriggeredBy("click"))) 29053 return triggerRef.addEventListener("click", toggleTooltip), function() { 29054 return triggerRef.removeEventListener("click", toggleTooltip); 29055 }; 29056 }, [triggerRef, isTriggeredBy, toggleTooltip]), React72.useEffect(function() { 29057 if (!(triggerRef == null || !isTriggeredBy("double-click"))) 29058 return triggerRef.addEventListener("dblclick", toggleTooltip), function() { 29059 return triggerRef.removeEventListener("dblclick", toggleTooltip); 29060 }; 29061 }, [triggerRef, isTriggeredBy, toggleTooltip]), React72.useEffect(function() { 29062 if (!(triggerRef == null || !isTriggeredBy("right-click"))) { 29063 var preventDefaultAndToggle = function(event) { 29064 event.preventDefault(), toggleTooltip(); 29065 }; 29066 return triggerRef.addEventListener("contextmenu", preventDefaultAndToggle), function() { 29067 return triggerRef.removeEventListener("contextmenu", preventDefaultAndToggle); 29068 }; 29069 } 29070 }, [triggerRef, isTriggeredBy, toggleTooltip]), React72.useEffect(function() { 29071 if (!(triggerRef == null || !isTriggeredBy("focus"))) 29072 return triggerRef.addEventListener("focus", showTooltip), triggerRef.addEventListener("blur", hideTooltip), function() { 29073 triggerRef.removeEventListener("focus", showTooltip), triggerRef.removeEventListener("blur", hideTooltip); 29074 }; 29075 }, [triggerRef, isTriggeredBy, showTooltip, hideTooltip]), React72.useEffect(function() { 29076 if (!(triggerRef == null || !isTriggeredBy("hover"))) 29077 return triggerRef.addEventListener("mouseenter", showTooltip), triggerRef.addEventListener("mouseleave", hideTooltip), function() { 29078 triggerRef.removeEventListener("mouseenter", showTooltip), triggerRef.removeEventListener("mouseleave", hideTooltip); 29079 }; 29080 }, [triggerRef, isTriggeredBy, showTooltip, hideTooltip]), React72.useEffect(function() { 29081 if (!(tooltipRef == null || !isTriggeredBy("hover") || !getLatest().finalConfig.interactive)) 29082 return tooltipRef.addEventListener("mouseenter", showTooltip), tooltipRef.addEventListener("mouseleave", hideTooltip), function() { 29083 tooltipRef.removeEventListener("mouseenter", showTooltip), tooltipRef.removeEventListener("mouseleave", hideTooltip); 29084 }; 29085 }, [tooltipRef, isTriggeredBy, showTooltip, hideTooltip, getLatest]); 29086 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; 29087 React72.useEffect(function() { 29088 finalConfig.closeOnTriggerHidden && isReferenceHidden && hideTooltip(); 29089 }, [finalConfig.closeOnTriggerHidden, hideTooltip, isReferenceHidden]), React72.useEffect(function() { 29090 if (!finalConfig.followCursor || triggerRef == null) return; 29091 function setMousePosition(_ref) { 29092 var clientX = _ref.clientX, clientY = _ref.clientY; 29093 virtualElement.getBoundingClientRect = generateBoundingClientRect(clientX, clientY), update2?.(); 29094 } 29095 return triggerRef.addEventListener("mousemove", setMousePosition), function() { 29096 return triggerRef.removeEventListener("mousemove", setMousePosition); 29097 }; 29098 }, [finalConfig.followCursor, triggerRef, update2]), React72.useEffect(function() { 29099 if (!(tooltipRef == null || update2 == null || finalConfig.mutationObserverOptions == null)) { 29100 var observer = new MutationObserver(update2); 29101 return observer.observe(tooltipRef, finalConfig.mutationObserverOptions), function() { 29102 return observer.disconnect(); 29103 }; 29104 } 29105 }, [finalConfig.mutationObserverOptions, tooltipRef, update2]); 29106 var getTooltipProps = function(args) { 29107 return args === void 0 && (args = {}), _extends({}, args, { 29108 style: _extends({}, args.style, styles4.popper) 29109 }, attributes.popper, { 29110 "data-popper-interactive": finalConfig.interactive 29111 }); 29112 }, getArrowProps = function(args) { 29113 return args === void 0 && (args = {}), _extends({}, args, attributes.arrow, { 29114 style: _extends({}, args.style, styles4.arrow), 29115 "data-popper-arrow": !0 29116 }); 29117 }; 29118 return _extends({ 29119 getArrowProps, 29120 getTooltipProps, 29121 setTooltipRef, 29122 setTriggerRef, 29123 tooltipRef, 29124 triggerRef, 29125 visible 29126 }, popperProps); 29127} 29128var React72, noop5, _excluded5, virtualElement, defaultConfig, init_react_popper_tooltip = __esm({ 29129 "../../node_modules/react-popper-tooltip/dist/esm/react-popper-tooltip.js"() { 29130 init_objectWithoutPropertiesLoose(); 29131 init_extends(); 29132 React72 = __toESM(require_react()); 29133 init_esm2(); 29134 noop5 = function() { 29135 }; 29136 _excluded5 = ["styles", "attributes"], virtualElement = { 29137 getBoundingClientRect: generateBoundingClientRect() 29138 }, defaultConfig = { 29139 closeOnOutsideClick: !0, 29140 closeOnTriggerHidden: !1, 29141 defaultVisible: !1, 29142 delayHide: 0, 29143 delayShow: 0, 29144 followCursor: !1, 29145 interactive: !1, 29146 mutationObserverOptions: { 29147 attributes: !0, 29148 childList: !0, 29149 subtree: !0 29150 }, 29151 offset: [0, 6], 29152 trigger: "hover" 29153 }; 29154 } 29155}); 29156
vendor: 9,337 bytes, lines 29157-29391
29157// src/components/components/tooltip/WithTooltip.tsx 29158var WithTooltip_exports = {}; 29159__export(WithTooltip_exports, { 29160 Tooltip: () => Tooltip3, 29161 WithToolTipState: () => DeprecatedState, 29162 WithTooltip: () => WithToolTipState, 29163 WithTooltipPure: () => DeprecatedPure 29164}); 29165var import_react158, import_react_dom7, import_memoizerific11, document12, match2, ArrowSpacing, Arrow, Wrapper5, Tooltip3, TargetContainer, TargetSvgContainer, WithTooltipPure, WithToolTipState, DeprecatedPure, DeprecatedState, init_WithTooltip = __esm({ 29166 "src/components/components/tooltip/WithTooltip.tsx"() { 29167 "use strict"; 29168 import_react158 = __toESM(require_react(), 1), import_react_dom7 = __toESM(require_react_dom(), 1); 29169 init_client_logger(); 29170 init_dist(); 29171 import_memoizerific11 = __toESM(require_memoizerific(), 1); 29172 init_react_popper_tooltip(); 29173 init_theming(); 29174 ({ document: document12 } = scope), match2 = (0, import_memoizerific11.default)(1e3)( 29175 (requests, actual, value, fallback = 0) => actual.split("-")[0] === requests ? value : fallback 29176 ), ArrowSpacing = 8, Arrow = styled.div( 29177 { 29178 position: "absolute", 29179 borderStyle: "solid" 29180 }, 29181 ({ placement }) => { 29182 let x = 0, y = 0; 29183 switch (!0) { 29184 case (placement.startsWith("left") || placement.startsWith("right")): { 29185 y = 8; 29186 break; 29187 } 29188 case (placement.startsWith("top") || placement.startsWith("bottom")): { 29189 x = 8; 29190 break; 29191 } 29192 default: 29193 } 29194 return { transform: `translate3d(${x}px, ${y}px, 0px)` }; 29195 }, 29196 ({ theme: theme3, color: color2, placement }) => ({ 29197 bottom: `${match2("top", placement, `${ArrowSpacing * -1}px`, "auto")}`, 29198 top: `${match2("bottom", placement, `${ArrowSpacing * -1}px`, "auto")}`, 29199 right: `${match2("left", placement, `${ArrowSpacing * -1}px`, "auto")}`, 29200 left: `${match2("right", placement, `${ArrowSpacing * -1}px`, "auto")}`, 29201 borderBottomWidth: `${match2("top", placement, "0", ArrowSpacing)}px`, 29202 borderTopWidth: `${match2("bottom", placement, "0", ArrowSpacing)}px`, 29203 borderRightWidth: `${match2("left", placement, "0", ArrowSpacing)}px`, 29204 borderLeftWidth: `${match2("right", placement, "0", ArrowSpacing)}px`, 29205 borderTopColor: match2( 29206 "top", 29207 placement, 29208 theme3.color[color2] || color2 || theme3.base === "light" ? lightenColor(theme3.background.app) : theme3.background.app, 29209 "transparent" 29210 ), 29211 borderBottomColor: match2( 29212 "bottom", 29213 placement, 29214 theme3.color[color2] || color2 || theme3.base === "light" ? lightenColor(theme3.background.app) : theme3.background.app, 29215 "transparent" 29216 ), 29217 borderLeftColor: match2( 29218 "left", 29219 placement, 29220 theme3.color[color2] || color2 || theme3.base === "light" ? lightenColor(theme3.background.app) : theme3.background.app, 29221 "transparent" 29222 ), 29223 borderRightColor: match2( 29224 "right", 29225 placement, 29226 theme3.color[color2] || color2 || theme3.base === "light" ? lightenColor(theme3.background.app) : theme3.background.app, 29227 "transparent" 29228 ) 29229 }) 29230 ), Wrapper5 = styled.div( 29231 ({ hidden }) => ({ 29232 display: hidden ? "none" : "inline-block", 29233 zIndex: 2147483647, 29234 colorScheme: "light dark" 29235 }), 29236 ({ theme: theme3, color: color2, hasChrome }) => hasChrome ? { 29237 background: color2 && theme3.color[color2] || color2 || theme3.base === "light" ? lightenColor(theme3.background.app) : theme3.background.app, 29238 filter: ` 29239 drop-shadow(0px 5px 5px rgba(0,0,0,0.05)) 29240 drop-shadow(0 1px 3px rgba(0,0,0,0.1)) 29241 `, 29242 borderRadius: theme3.appBorderRadius + 2, 29243 fontSize: theme3.typography.size.s1 29244 } : {} 29245 ), Tooltip3 = import_react158.default.forwardRef( 29246 ({ 29247 placement = "top", 29248 hasChrome = !0, 29249 children, 29250 arrowProps = {}, 29251 tooltipRef, 29252 color: color2, 29253 withArrows, 29254 ...props 29255 }, ref) => import_react158.default.createElement(Wrapper5, { "data-testid": "tooltip", hasChrome, ref, ...props, color: color2 }, hasChrome && withArrows && import_react158.default.createElement(Arrow, { placement, ...arrowProps, color: color2 }), children) 29256 ); 29257 Tooltip3.displayName = "Tooltip"; 29258 TargetContainer = styled.div` 29259 display: inline-block; 29260 cursor: ${(props) => props.trigger === "hover" || props.trigger?.includes("hover") ? "default" : "pointer"}; 29261`, TargetSvgContainer = styled.g` 29262 cursor: ${(props) => props.trigger === "hover" || props.trigger?.includes("hover") ? "default" : "pointer"}; 29263`, WithTooltipPure = ({ 29264 svg = !1, 29265 trigger = "click", 29266 closeOnOutsideClick = !1, 29267 placement = "top", 29268 modifiers = [ 29269 { 29270 name: "preventOverflow", 29271 options: { 29272 padding: 8 29273 } 29274 }, 29275 { 29276 name: "offset", 29277 options: { 29278 offset: [8, 8] 29279 } 29280 }, 29281 { 29282 name: "arrow", 29283 options: { 29284 padding: 8 29285 } 29286 } 29287 ], 29288 hasChrome = !0, 29289 defaultVisible = !1, 29290 withArrows, 29291 offset: offset3, 29292 tooltip, 29293 children, 29294 closeOnTriggerHidden, 29295 mutationObserverOptions, 29296 delayHide = trigger === "hover" ? 200 : 0, 29297 visible, 29298 interactive, 29299 delayShow = trigger === "hover" ? 400 : 0, 29300 strategy, 29301 followCursor, 29302 onVisibleChange, 29303 portalContainer, 29304 ...props 29305 }) => { 29306 let Container7 = svg ? TargetSvgContainer : TargetContainer, { 29307 getArrowProps, 29308 getTooltipProps, 29309 setTooltipRef, 29310 setTriggerRef, 29311 visible: isVisible2, 29312 state: state3 29313 } = usePopperTooltip( 29314 { 29315 trigger, 29316 placement, 29317 defaultVisible, 29318 delayHide, 29319 interactive, 29320 closeOnOutsideClick, 29321 closeOnTriggerHidden, 29322 onVisibleChange, 29323 delayShow, 29324 followCursor, 29325 mutationObserverOptions, 29326 visible, 29327 offset: offset3 29328 }, 29329 { 29330 modifiers, 29331 strategy 29332 } 29333 ), portalTarget = (typeof portalContainer == "string" ? document12.querySelector(portalContainer) : portalContainer) || document12.body, tooltipComponent = isVisible2 ? import_react158.default.createElement( 29334 Tooltip3, 29335 { 29336 placement: state3?.placement, 29337 ref: setTooltipRef, 29338 hasChrome, 29339 arrowProps: getArrowProps(), 29340 withArrows, 29341 ...getTooltipProps() 29342 }, 29343 typeof tooltip == "function" ? tooltip({ onHide: () => onVisibleChange(!1) }) : tooltip 29344 ) : null; 29345 return import_react158.default.createElement(import_react158.default.Fragment, null, import_react158.default.createElement(Container7, { trigger, ref: setTriggerRef, ...props }, children), isVisible2 && import_react_dom7.default.createPortal(tooltipComponent, portalTarget)); 29346 }, WithToolTipState = ({ 29347 startOpen = !1, 29348 onVisibleChange: onChange, 29349 ...rest 29350 }) => { 29351 let [tooltipShown, setTooltipShown] = (0, import_react158.useState)(startOpen), onVisibilityChange = (0, import_react158.useCallback)( 29352 (visibility) => { 29353 onChange && onChange(visibility) === !1 || setTooltipShown(visibility); 29354 }, 29355 [onChange] 29356 ); 29357 return (0, import_react158.useEffect)(() => { 29358 let hide2 = () => onVisibilityChange(!1), handleKeyDown = (e) => { 29359 e.key === "Escape" && hide2(); 29360 }; 29361 document12.addEventListener("keydown", handleKeyDown, !1); 29362 let iframes = Array.from(document12.getElementsByTagName("iframe")), unbinders = []; 29363 return iframes.forEach((iframe) => { 29364 let bind = () => { 29365 try { 29366 iframe.contentWindow.document && (iframe.contentWindow.document.addEventListener("click", hide2), unbinders.push(() => { 29367 try { 29368 iframe.contentWindow.document.removeEventListener("click", hide2); 29369 } catch { 29370 } 29371 })); 29372 } catch { 29373 } 29374 }; 29375 bind(), iframe.addEventListener("load", bind), unbinders.push(() => { 29376 iframe.removeEventListener("load", bind); 29377 }); 29378 }), () => { 29379 document12.removeEventListener("keydown", handleKeyDown), unbinders.forEach((unbind) => { 29380 unbind(); 29381 }); 29382 }; 29383 }), import_react158.default.createElement(WithTooltipPure, { ...rest, visible: tooltipShown, onVisibleChange: onVisibilityChange }); 29384 }, DeprecatedPure = (props) => (deprecate( 29385 "WithTooltipPure is deprecated and will be removed in Storybook 11. Please use WithTooltip instead." 29386 ), import_react158.default.createElement(WithTooltipPure, { "data-deprecated": "WithTooltipPure", ...props })), DeprecatedState = (props) => (deprecate( 29387 "WithToolTipState is deprecated and will be removed in Storybook 11. Please use WithTooltip instead." 29388 ), import_react158.default.createElement(WithToolTipState, { "data-deprecated": "WithToolTipState", ...props })); 29389 } 29390}); 29391
vendor: 5,561 bytes, lines 29392-29444
29392// ../../node_modules/browser-dtector/browser-dtector.umd.min.js 29393var require_browser_dtector_umd_min = __commonJS({ 29394 "../../node_modules/browser-dtector/browser-dtector.umd.min.js"(exports, module2) { 29395 (function(e, o) { 29396 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(); 29397 })(exports, (function() { 29398 "use strict"; 29399 function e(e2, o2) { 29400 for (var r3 = 0; r3 < o2.length; r3++) { 29401 var n2 = o2[r3]; 29402 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) { 29403 if (typeof e3 != "object" || e3 === null) return e3; 29404 var r4 = e3[Symbol.toPrimitive]; 29405 if (r4 !== void 0) { 29406 var n3 = r4.call(e3, o3 || "default"); 29407 if (typeof n3 != "object") return n3; 29408 throw new TypeError("@@toPrimitive must return a primitive value."); 29409 } 29410 return (o3 === "string" ? String : Number)(e3); 29411 })(i2, "string")) == "symbol" ? t2 : String(t2)), n2); 29412 } 29413 var i2, t2; 29414 } 29415 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) { 29416 var o2 = new RegExp("^-?\\d+(?:.\\d{0,".concat(arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : -1, "})?")), r3 = Number(e2).toString().match(o2); 29417 return r3 ? r3[0] : null; 29418 }, i = function() { 29419 return typeof window < "u" ? window.navigator : null; 29420 }, t = (function() { 29421 function t2(e2) { 29422 var o2; 29423 (function(e3, o3) { 29424 if (!(e3 instanceof o3)) throw new TypeError("Cannot call a class as a function"); 29425 })(this, t2), this.userAgent = e2 || ((o2 = i()) === null || o2 === void 0 ? void 0 : o2.userAgent) || null; 29426 } 29427 var a3, l, s3; 29428 return a3 = t2, l = [{ key: "parseUserAgent", value: function(e2) { 29429 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(); 29430 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); 29431 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); 29432 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 }; 29433 } }, { key: "getBrowserInfo", value: function() { 29434 var e2 = this.parseUserAgent(); 29435 return { name: e2.name, platform: e2.platform, userAgent: e2.userAgent, version: e2.version, shortVersion: e2.shortVersion }; 29436 } }], s3 = [{ key: "VERSION", get: function() { 29437 return "3.4.0"; 29438 } }], l && e(a3.prototype, l), s3 && e(a3, s3), Object.defineProperty(a3, "prototype", { writable: !1 }), t2; 29439 })(); 29440 return t; 29441 })); 29442 } 29443}); 29444
29445// src/core-events/index.ts 29446var core_events_exports = {}; 29447__export(core_events_exports, { 29448 ARGTYPES_INFO_REQUEST: () => ARGTYPES_INFO_REQUEST, 29449 ARGTYPES_INFO_RESPONSE: () => ARGTYPES_INFO_RESPONSE, 29450 CHANNEL_CREATED: () => CHANNEL_CREATED, 29451 CHANNEL_WS_DISCONNECT: () => CHANNEL_WS_DISCONNECT, 29452 CONFIG_ERROR: () => CONFIG_ERROR, 29453 CREATE_NEW_STORYFILE_REQUEST: () => CREATE_NEW_STORYFILE_REQUEST, 29454 CREATE_NEW_STORYFILE_RESPONSE: () => CREATE_NEW_STORYFILE_RESPONSE, 29455 CURRENT_STORY_WAS_SET: () => CURRENT_STORY_WAS_SET, 29456 DOCS_PREPARED: () => DOCS_PREPARED, 29457 DOCS_RENDERED: () => DOCS_RENDERED, 29458 FILE_COMPONENT_SEARCH_REQUEST: () => FILE_COMPONENT_SEARCH_REQUEST, 29459 FILE_COMPONENT_SEARCH_RESPONSE: () => FILE_COMPONENT_SEARCH_RESPONSE, 29460 FORCE_REMOUNT: () => FORCE_REMOUNT, 29461 FORCE_RE_RENDER: () => FORCE_RE_RENDER, 29462 GHOST_STORIES_REQUEST: () => GHOST_STORIES_REQUEST, 29463 GHOST_STORIES_RESPONSE: () => GHOST_STORIES_RESPONSE, 29464 GLOBALS_UPDATED: () => GLOBALS_UPDATED, 29465 MANAGER_INERT_ATTRIBUTE_CHANGED: () => MANAGER_INERT_ATTRIBUTE_CHANGED, 29466 NAVIGATE_URL: () => NAVIGATE_URL, 29467 OPEN_IN_EDITOR_REQUEST: () => OPEN_IN_EDITOR_REQUEST, 29468 OPEN_IN_EDITOR_RESPONSE: () => OPEN_IN_EDITOR_RESPONSE, 29469 PLAY_FUNCTION_THREW_EXCEPTION: () => PLAY_FUNCTION_THREW_EXCEPTION, 29470 PRELOAD_ENTRIES: () => PRELOAD_ENTRIES, 29471 PREVIEW_BUILDER_PROGRESS: () => PREVIEW_BUILDER_PROGRESS, 29472 PREVIEW_INITIALIZED: () => PREVIEW_INITIALIZED, 29473 PREVIEW_KEYDOWN: () => PREVIEW_KEYDOWN, 29474 REGISTER_SUBSCRIPTION: () => REGISTER_SUBSCRIPTION, 29475 REQUEST_WHATS_NEW_DATA: () => REQUEST_WHATS_NEW_DATA, 29476 RESET_STORY_ARGS: () => RESET_STORY_ARGS, 29477 RESULT_WHATS_NEW_DATA: () => RESULT_WHATS_NEW_DATA, 29478 SAVE_STORY_REQUEST: () => SAVE_STORY_REQUEST, 29479 SAVE_STORY_RESPONSE: () => SAVE_STORY_RESPONSE, 29480 SELECT_STORY: () => SELECT_STORY, 29481 SET_CONFIG: () => SET_CONFIG, 29482 SET_CURRENT_STORY: () => SET_CURRENT_STORY, 29483 SET_FILTER: () => SET_FILTER, 29484 SET_GLOBALS: () => SET_GLOBALS, 29485 SET_INDEX: () => SET_INDEX, 29486 SET_STORIES: () => SET_STORIES, 29487 SET_WHATS_NEW_CACHE: () => SET_WHATS_NEW_CACHE, 29488 SHARED_STATE_CHANGED: () => SHARED_STATE_CHANGED, 29489 SHARED_STATE_SET: () => SHARED_STATE_SET, 29490 SHARE_ISOLATE_MODE: () => SHARE_ISOLATE_MODE, 29491 SHARE_POPOVER_OPENED: () => SHARE_POPOVER_OPENED, 29492 SHARE_STORY_LINK: () => SHARE_STORY_LINK, 29493 STORIES_COLLAPSE_ALL: () => STORIES_COLLAPSE_ALL, 29494 STORIES_EXPAND_ALL: () => STORIES_EXPAND_ALL, 29495 STORY_ARGS_UPDATED: () => STORY_ARGS_UPDATED, 29496 STORY_CHANGED: () => STORY_CHANGED, 29497 STORY_ERRORED: () => STORY_ERRORED, 29498 STORY_FINISHED: () => STORY_FINISHED, 29499 STORY_HOT_UPDATED: () => STORY_HOT_UPDATED, 29500 STORY_INDEX_INVALIDATED: () => STORY_INDEX_INVALIDATED, 29501 STORY_MISSING: () => STORY_MISSING, 29502 STORY_PREPARED: () => STORY_PREPARED, 29503 STORY_RENDERED: () => STORY_RENDERED, 29504 STORY_RENDER_PHASE_CHANGED: () => STORY_RENDER_PHASE_CHANGED, 29505 STORY_SPECIFIED: () => STORY_SPECIFIED, 29506 STORY_THREW_EXCEPTION: () => STORY_THREW_EXCEPTION, 29507 STORY_UNCHANGED: () => STORY_UNCHANGED, 29508 TELEMETRY_ERROR: () => TELEMETRY_ERROR, 29509 TOGGLE_WHATS_NEW_NOTIFICATIONS: () => TOGGLE_WHATS_NEW_NOTIFICATIONS, 29510 UNHANDLED_ERRORS_WHILE_PLAYING: () => UNHANDLED_ERRORS_WHILE_PLAYING, 29511 UPDATE_GLOBALS: () => UPDATE_GLOBALS, 29512 UPDATE_QUERY_PARAMS: () => UPDATE_QUERY_PARAMS, 29513 UPDATE_STORY_ARGS: () => UPDATE_STORY_ARGS, 29514 default: () => core_events_default 29515}); 29516var 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.REGIST
29516ER_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.OPEN_IN_EDITOR_REQUEST = "openInEditorRequest", events2.OPEN_IN_EDITOR_RESPONSE = "openInEditorResponse", events2.MANAGER_INERT_ATTRIBUTE_CHANGED = "managerInertAttributeChanged", events2.SHARE_STORY_LINK = "shareStoryLink", events2.SHARE_ISOLATE_MODE = "shareIsolateMode", events2.SHARE_POPOVER_OPENED = "sharePopoverOpened", events2))(events || {}), core_events_default = events, { 29517 CHANNEL_WS_DISCONNECT, 29518 CHANNEL_CREATED, 29519 CONFIG_ERROR, 29520 CREATE_NEW_STORYFILE_REQUEST, 29521 CREATE_NEW_STORYFILE_RESPONSE, 29522 CURRENT_STORY_WAS_SET, 29523 DOCS_PREPARED, 29524 DOCS_RENDERED, 29525 FILE_COMPONENT_SEARCH_REQUEST, 29526 FILE_COMPONENT_SEARCH_RESPONSE, 29527 FORCE_RE_RENDER, 29528 FORCE_REMOUNT, 29529 GLOBALS_UPDATED, 29530 NAVIGATE_URL, 29531 PLAY_FUNCTION_THREW_EXCEPTION, 29532 UNHANDLED_ERRORS_WHILE_PLAYING, 29533 PRELOAD_ENTRIES, 29534 PREVIEW_INITIALIZED, 29535 PREVIEW_BUILDER_PROGRESS, 29536 PREVIEW_KEYDOWN, 29537 REGISTER_SUBSCRIPTION, 29538 RESET_STORY_ARGS, 29539 SELECT_STORY, 29540 SET_CONFIG, 29541 SET_CURRENT_STORY, 29542 SET_FILTER, 29543 SET_GLOBALS, 29544 SET_INDEX, 29545 SET_STORIES, 29546 SHARED_STATE_CHANGED, 29547 SHARED_STATE_SET, 29548 STORIES_COLLAPSE_ALL, 29549 STORIES_EXPAND_ALL, 29550 STORY_ARGS_UPDATED, 29551 STORY_CHANGED, 29552 STORY_ERRORED, 29553 STORY_INDEX_INVALIDATED, 29554 STORY_MISSING, 29555 STORY_PREPARED, 29556 STORY_RENDER_PHASE_CHANGED, 29557 STORY_RENDERED, 29558 STORY_FINISHED, 29559 STORY_SPECIFIED, 29560 STORY_THREW_EXCEPTION, 29561 STORY_UNCHANGED, 29562 STORY_HOT_UPDATED, 29563 UPDATE_GLOBALS, 29564 UPDATE_QUERY_PARAMS, 29565 UPDATE_STORY_ARGS, 29566 REQUEST_WHATS_NEW_DATA, 29567 RESULT_WHATS_NEW_DATA, 29568 SET_WHATS_NEW_CACHE, 29569 TOGGLE_WHATS_NEW_NOTIFICATIONS, 29570 TELEMETRY_ERROR, 29571 SAVE_STORY_REQUEST, 29572 SAVE_STORY_RESPONSE, 29573 ARGTYPES_INFO_REQUEST, 29574 ARGTYPES_INFO_RESPONSE, 29575 GHOST_STORIES_REQUEST, 29576 GHOST_STORIES_RESPONSE, 29577 OPEN_IN_EDITOR_REQUEST, 29578 OPEN_IN_EDITOR_RESPONSE, 29579 MANAGER_INERT_ATTRIBUTE_CHANGED, 29580 SHARE_STORY_LINK, 29581 SHARE_ISOLATE_MODE, 29582 SHARE_POPOVER_OPENED 29583} = events; 29584
29585// src/manager/globals/globals.ts 29586var globalsNameReferenceMap = { 29587 react: "__REACT__", 29588 "react-dom": "__REACT_DOM__", 29589 "react-dom/client": "__REACT_DOM_CLIENT__", 29590 "@storybook/icons": "__STORYBOOK_ICONS__", 29591 "storybook/manager-api": "__STORYBOOK_API__", 29592 "storybook/test": "__STORYBOOK_TEST__", 29593 "storybook/theming": "__STORYBOOK_THEMING__", 29594 "storybook/theming/create": "__STORYBOOK_THEMING_CREATE__", 29595 "storybook/internal/channels": "__STORYBOOK_CHANNELS__", 29596 "storybook/internal/client-logger": "__STORYBOOK_CLIENT_LOGGER__", 29597 "storybook/internal/components": "__STORYBOOK_COMPONENTS__", 29598 "storybook/internal/core-events": "__STORYBOOK_CORE_EVENTS__", 29599 "storybook/internal/manager-errors": "__STORYBOOK_CORE_EVENTS_MANAGER_ERRORS__", 29600 "storybook/internal/router": "__STORYBOOK_ROUTER__", 29601 "storybook/internal/types": "__STORYBOOK_TYPES__" 29602}, globalPackages = Object.keys(globalsNameReferenceMap); 29603
29604// src/manager/globals/runtime.ts 29605var REACT = __toESM(require_react(), 1), REACT_DOM = __toESM(require_react_dom(), 1), REACT_DOM_CLIENT = __toESM(require_client(), 1); 29606
29607// src/channels/index.ts 29608var channels_exports = {}; 29609__export(channels_exports, { 29610 Channel: () => Channel, 29611 HEARTBEAT_INTERVAL: () => HEARTBEAT_INTERVAL, 29612 HEARTBEAT_MAX_LATENCY: () => HEARTBEAT_MAX_LATENCY, 29613 PostMessageTransport: () => PostMessageTransport, 29614 WebsocketTransport: () => WebsocketTransport, 29615 createBrowserChannel: () => createBrowserChannel, 29616 default: () => channels_default 29617}); 29618init_dist(
vendor: 56 bytes, lines 29618-29622
29618); 29619 29620// src/shared/universal-store/index.ts 29621init_esm(); 29622
vendor: 263 bytes, lines 29623-29631
29623// src/shared/universal-store/instances.ts 29624var instances = /* @__PURE__ */ new Map(); 29625 29626// src/shared/universal-store/index.ts 29627var CHANNEL_EVENT_PREFIX = "UNIVERSAL_STORE:", ProgressState = { 29628 PENDING: "PENDING", 29629 RESOLVED: "RESOLVED", 29630 REJECTED: "REJECTED" 29631},
vendor: 15,163 bytes, lines 29631-29988
29631_UniversalStore = class _UniversalStore { 29632 constructor(options, environmentOverrides) { 29633 /** Enable debug logs for this store */ 29634 this.debugging = !1; 29635 // TODO: narrow type of listeners based on event type 29636 this.listeners = /* @__PURE__ */ new Map([["*", /* @__PURE__ */ new Set()]]); 29637 /** Gets the current state */ 29638 this.getState = () => (this.debug("getState", { state: this.state }), this.state); 29639 /** 29640 * Subscribes to store events 29641 * 29642 * @returns A function to unsubscribe 29643 */ 29644 this.subscribe = (eventTypeOrListener, maybeListener) => { 29645 let subscribesToAllEvents = typeof eventTypeOrListener == "function", eventType = subscribesToAllEvents ? "*" : eventTypeOrListener, listener = subscribesToAllEvents ? eventTypeOrListener : maybeListener; 29646 if (this.debug("subscribe", { eventType, listener }), !listener) 29647 throw new TypeError( 29648 `Missing first subscribe argument, or second if first is the event type, when subscribing to a UniversalStore with id '${this.id}'` 29649 ); 29650 return this.listeners.has(eventType) || this.listeners.set(eventType, /* @__PURE__ */ new Set()), this.listeners.get(eventType).add(listener), () => { 29651 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)); 29652 }; 29653 }; 29654 /** Sends a custom event to the other stores */ 29655 this.send = (event) => { 29656 if (this.debug("send", { event }), this.status !== _UniversalStore.Status.READY) 29657 throw new TypeError( 29658 dedent`Cannot send event before store is ready. You can get the current status with store.status, 29659 or await store.readyPromise to wait for the store to be ready before sending events. 29660 ${JSON.stringify( 29661 { 29662 event, 29663 id: this.id, 29664 actor: this.actor, 29665 environment: this.environment 29666 }, 29667 null, 29668 2 29669 )}` 29670 ); 29671 this.emitToListeners(event, { actor: this.actor }), this.emitToChannel(event, { actor: this.actor }); 29672 }; 29673 if (this.debugging = options.debug ?? !1, !_UniversalStore.isInternalConstructing) 29674 throw new TypeError( 29675 "UniversalStore is not constructable - use UniversalStore.create() instead" 29676 ); 29677 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", { 29678 options, 29679 environmentOverrides, 29680 channelEventName: this.channelEventName 29681 }), this.actor.type === _UniversalStore.ActorType.LEADER) 29682 this.syncing = { 29683 state: ProgressState.RESOLVED, 29684 promise: Promise.resolve() 29685 }; 29686 else { 29687 let syncingResolve, syncingReject, syncingPromise = new Promise((resolve, reject) => { 29688 syncingResolve = () => { 29689 this.syncing.state === ProgressState.PENDING && (this.syncing.state = ProgressState.RESOLVED, resolve()); 29690 }, syncingReject = (reason) => { 29691 this.syncing.state === ProgressState.PENDING && (this.syncing.state = ProgressState.REJECTED, reject(reason)); 29692 }; 29693 }); 29694 this.syncing = { 29695 state: ProgressState.PENDING, 29696 promise: syncingPromise, 29697 resolve: syncingResolve, 29698 reject: syncingReject 29699 }; 29700 } 29701 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); 29702 } 29703 static setupPreparationPromise() { 29704 let resolveRef, rejectRef, promise = new Promise( 29705 (resolve, reject) => { 29706 resolveRef = (args) => { 29707 resolve(args); 29708 }, rejectRef = (...args) => { 29709 reject(args); 29710 }; 29711 } 29712 ); 29713 _UniversalStore.preparation = { 29714 resolve: resolveRef, 29715 reject: rejectRef, 29716 promise 29717 }; 29718 } 29719 /** The actor object representing the store instance with a unique ID and a type */ 29720 get actor() { 29721 return Object.freeze({ 29722 id: this.actorId, 29723 type: this.actorType, 29724 environment: this.environment ?? _UniversalStore.Environment.UNKNOWN 29725 }); 29726 } 29727 /** 29728 * The current state of the store, that signals both if the store is prepared by Storybook and 29729 * also - in the case of a follower - if the state has been synced with the leader's state. 29730 */ 29731 get status() { 29732 if (!this.channel || !this.environment) 29733 return _UniversalStore.Status.UNPREPARED; 29734 switch (this.syncing?.state) { 29735 case ProgressState.PENDING: 29736 case void 0: 29737 return _UniversalStore.Status.SYNCING; 29738 case ProgressState.REJECTED: 29739 return _UniversalStore.Status.ERROR; 29740 case ProgressState.RESOLVED: 29741 default: 29742 return _UniversalStore.Status.READY; 29743 } 29744 } 29745 /** 29746 * A promise that resolves when the store is fully ready. A leader will be ready when the store 29747 * has been prepared by Storybook, which is almost instantly. 29748 * 29749 * A follower will be ready when the state has been synced with the leader's state, within a few 29750 * hundred milliseconds. 29751 */ 29752 untilReady() { 29753 return Promise.all([_UniversalStore.preparation.promise, this.syncing?.promise]); 29754 } 29755 /** Creates a new instance of UniversalStore */ 29756 static create(options) { 29757 if (!options || typeof options?.id != "string") 29758 throw new TypeError("id is required and must be a string, when creating a UniversalStore"); 29759 options.debug && console.debug( 29760 dedent`[UniversalStore] 29761 create`, 29762 { options } 29763 ); 29764 let existing = instances.get(options.id); 29765 if (existing) 29766 return console.warn(dedent`UniversalStore with id "${options.id}" already exists in this environment, re-using existing. 29767 You should reuse the existing instance instead of trying to create a new one.`), existing; 29768 _UniversalStore.isInternalConstructing = !0; 29769 let store2 = new _UniversalStore(options); 29770 return instances.set(options.id, store2), store2; 29771 } 29772 /** 29773 * Used by Storybook to set the channel for all instances of UniversalStore in the given 29774 * environment. 29775 * 29776 * @internal 29777 */ 29778 static __prepare(channel, environment) { 29779 _UniversalStore.preparation.channel = channel, _UniversalStore.preparation.environment = environment, _UniversalStore.preparation.resolve({ channel, environment }); 29780 } 29781 /** 29782 * Updates the store's state 29783 * 29784 * Either a new state or a state updater function can be passed to the method. 29785 */ 29786 setState(updater) { 29787 let previousState = this.state, newState = typeof updater == "function" ? updater(previousState) : updater; 29788 if (this.debug("setState", { newState, previousState, updater }), this.status !== _UniversalStore.Status.READY) 29789 throw new TypeError( 29790 dedent`Cannot set state before store is ready. You can get the current status with store.status, 29791 or await store.readyPromise to wait for the store to be ready before sending events. 29792 ${JSON.stringify( 29793 { 29794 newState, 29795 id: this.id, 29796 actor: this.actor, 29797 environment: this.environment 29798 }, 29799 null, 29800 2 29801 )}` 29802 ); 29803 this.state = newState; 29804 let event = { 29805 type: _UniversalStore.InternalEventType.SET_STATE, 29806 payload: { 29807 state: newState, 29808 previousState 29809 } 29810 }; 29811 this.emitToChannel(event, { actor: this.actor }), this.emitToListeners(event, { actor: this.actor }); 29812 } 29813 /** 29814 * Subscribes to state changes 29815 * 29816 * @returns Unsubscribe function 29817 */ 29818 onStateChange(listener) { 29819 return this.debug("onStateChange", { listener }), this.subscribe( 29820 _UniversalStore.InternalEventType.SET_STATE, 29821 ({ payload }, eventInfo) => { 29822 listener(payload.state, payload.previousState, eventInfo); 29823 } 29824 ); 29825 } 29826 emitToChannel(event, eventInfo) { 29827 this.debug("emitToChannel", { event, eventInfo, channel: !!this.channel }), this.channel?.emit(this.channelEventName, { 29828 event, 29829 eventInfo 29830 }); 29831 } 29832 prepareThis({ 29833 channel, 29834 environment 29835 }) { 29836 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( 29837 { type: _UniversalStore.InternalEventType.LEADER_CREATED }, 29838 { actor: this.actor } 29839 ) : (this.emitToChannel( 29840 { type: _UniversalStore.InternalEventType.FOLLOWER_CREATED }, 29841 { actor: this.actor } 29842 ), this.emitToChannel( 29843 { type: _UniversalStore.InternalEventType.EXISTING_STATE_REQUEST }, 29844 { actor: this.actor } 29845 ), setTimeout(() => { 29846 this.syncing.reject( 29847 new TypeError( 29848 `No existing state found for follower with id: '${this.id}'. Make sure a leader with the same id exists before creating a follower.` 29849 ) 29850 ); 29851 }, 1e3)); 29852 } 29853 emitToListeners(event, eventInfo) { 29854 let eventTypeListeners = this.listeners.get(event.type), everythingListeners = this.listeners.get("*"); 29855 this.debug("emitToListeners", { 29856 event, 29857 eventInfo, 29858 eventTypeListeners, 29859 everythingListeners 29860 }), [...eventTypeListeners ?? [], ...everythingListeners ?? []].forEach( 29861 (listener) => listener(event, eventInfo) 29862 ); 29863 } 29864 handleChannelEvents(channelEvent) { 29865 let { event, eventInfo } = channelEvent; 29866 if ([eventInfo.actor.id, eventInfo.forwardingActor?.id].includes(this.actor.id)) { 29867 this.debug("handleChannelEvents: Ignoring event from self", { channelEvent }); 29868 return; 29869 } else if (this.syncing?.state === ProgressState.PENDING && event.type !== _UniversalStore.InternalEventType.EXISTING_STATE_RESPONSE) { 29870 this.debug("handleChannelEvents: Ignoring event while syncing", { channelEvent }); 29871 return; 29872 } 29873 if (this.debug("handleChannelEvents", { channelEvent }), this.actor.type === _UniversalStore.ActorType.LEADER) { 29874 let shouldForwardEvent = !0; 29875 switch (event.type) { 29876 case _UniversalStore.InternalEventType.EXISTING_STATE_REQUEST: 29877 shouldForwardEvent = !1; 29878 let responseEvent = { 29879 type: _UniversalStore.InternalEventType.EXISTING_STATE_RESPONSE, 29880 payload: this.state 29881 }; 29882 this.debug("handleChannelEvents: responding to existing state request", { 29883 responseEvent 29884 }), this.emitToChannel(responseEvent, { actor: this.actor }), this.emitToListeners(responseEvent, { actor: this.actor }); 29885 break; 29886 case _UniversalStore.InternalEventType.LEADER_CREATED: 29887 shouldForwardEvent = !1, this.syncing.state = ProgressState.REJECTED, this.debug("handleChannelEvents: erroring due to second leader being created", { 29888 event 29889 }), console.error( 29890 dedent`Detected multiple UniversalStore leaders created with the same id "${this.id}". 29891 Only one leader can exists at a time, your stores are now in an invalid state. 29892 Leaders detected: 29893 this: ${JSON.stringify(this.actor, null, 2)} 29894 other: ${JSON.stringify(eventInfo.actor, null, 2)}` 29895 ); 29896 break; 29897 } 29898 shouldForwardEvent && (this.debug("handleChannelEvents: forwarding event", { channelEvent }), this.emitToChannel(event, { actor: eventInfo.actor, forwardingActor: this.actor })); 29899 } 29900 if (this.actor.type === _UniversalStore.ActorType.FOLLOWER) 29901 switch (event.type) { 29902 case _UniversalStore.InternalEventType.EXISTING_STATE_RESPONSE: 29903 if (this.debug("handleChannelEvents: Setting state from leader's existing state response", { 29904 event 29905 }), this.syncing?.state !== ProgressState.PENDING) 29906 break; 29907 this.syncing.resolve?.(); 29908 let setStateEvent = { 29909 type: _UniversalStore.InternalEventType.SET_STATE, 29910 payload: { 29911 state: event.payload, 29912 previousState: this.state 29913 } 29914 }; 29915 this.state = event.payload, this.emitToListeners(setStateEvent, eventInfo); 29916 break; 29917 } 29918 switch (event.type) { 29919 case _UniversalStore.InternalEventType.SET_STATE: 29920 this.debug("handleChannelEvents: Setting state", { event }), this.state = event.payload.state; 29921 break; 29922 } 29923 this.emitToListeners(event, { actor: eventInfo.actor }); 29924 } 29925 debug(message, data) { 29926 this.debugging && console.debug( 29927 dedent`[UniversalStore::${this.id}::${this.environment ?? _UniversalStore.Environment.UNKNOWN}] 29928 ${message}`, 29929 JSON.stringify( 29930 { 29931 data, 29932 actor: this.actor, 29933 state: this.state, 29934 status: this.status 29935 }, 29936 null, 29937 2 29938 ) 29939 ); 29940 } 29941 /** 29942 * Used to reset the static fields of the UniversalStore class when cleaning up tests 29943 * 29944 * @internal 29945 */ 29946 static __reset() { 29947 _UniversalStore.preparation.reject(new Error("reset")), _UniversalStore.setupPreparationPromise(), _UniversalStore.isInternalConstructing = !1; 29948 } 29949}; 29950/** 29951 * Defines the possible actor types in the store system 29952 * 29953 * @readonly 29954 */ 29955_UniversalStore.ActorType = { 29956 LEADER: "LEADER", 29957 FOLLOWER: "FOLLOWER" 29958}, /** 29959 * Defines the possible environments the store can run in 29960 * 29961 * @readonly 29962 */ 29963_UniversalStore.Environment = { 29964 SERVER: "SERVER", 29965 MANAGER: "MANAGER", 29966 PREVIEW: "PREVIEW", 29967 UNKNOWN: "UNKNOWN", 29968 MOCK: "MOCK" 29969}, /** 29970 * Internal event types used for store synchronization 29971 * 29972 * @readonly 29973 */ 29974_UniversalStore.InternalEventType = { 29975 EXISTING_STATE_REQUEST: "__EXISTING_STATE_REQUEST", 29976 EXISTING_STATE_RESPONSE: "__EXISTING_STATE_RESPONSE", 29977 SET_STATE: "__SET_STATE", 29978 LEADER_CREATED: "__LEADER_CREATED", 29979 FOLLOWER_CREATED: "__FOLLOWER_CREATED" 29980}, _UniversalStore.Status = { 29981 UNPREPARED: "UNPREPARED", 29982 SYNCING: "SYNCING", 29983 READY: "READY", 29984 ERROR: "ERROR" 29985}, // This is used to check if constructor was called from the static factory create() 29986_UniversalStore.isInternalConstructing = !1, _UniversalStore.setupPreparationPromise(); 29987var UniversalStore = _UniversalStore; 29988
vendor: 2,567 bytes, lines 29989-30059
29989// src/channels/main.ts 29990var isMulti = (args) => args.transports !== void 0, generateRandomId = () => Math.random().toString(16).slice(2), Channel = class { 29991 constructor(input2 = {}) { 29992 this.sender = generateRandomId(); 29993 this.events = {}; 29994 this.data = {}; 29995 this.transports = []; 29996 this.isAsync = input2.async || !1, isMulti(input2) ? (this.transports = input2.transports || [], this.transports.forEach((t) => { 29997 t.setHandler((event) => this.handleEvent(event)); 29998 })) : this.transports = input2.transport ? [input2.transport] : [], this.transports.forEach((t) => { 29999 t.setHandler((event) => this.handleEvent(event)); 30000 }); 30001 } 30002 get hasTransport() { 30003 return this.transports.length > 0; 30004 } 30005 addListener(eventName, listener) { 30006 this.events[eventName] = this.events[eventName] || [], this.events[eventName].push(listener); 30007 } 30008 emit(eventName, ...args) { 30009 let event = { type: eventName, args, from: this.sender }, options = {}; 30010 args.length >= 1 && args[0] && args[0].options && (options = args[0].options); 30011 let handler = () => { 30012 this.transports.forEach((t) => { 30013 t.send(event, options); 30014 }), this.handleEvent(event); 30015 }; 30016 this.isAsync ? setImmediate(handler) : handler(); 30017 } 30018 last(eventName) { 30019 return this.data[eventName]; 30020 } 30021 eventNames() { 30022 return Object.keys(this.events); 30023 } 30024 listenerCount(eventName) { 30025 let listeners3 = this.listeners(eventName); 30026 return listeners3 ? listeners3.length : 0; 30027 } 30028 listeners(eventName) { 30029 return this.events[eventName] || void 0; 30030 } 30031 once(eventName, listener) { 30032 let onceListener = this.onceListener(eventName, listener); 30033 this.addListener(eventName, onceListener); 30034 } 30035 removeAllListeners(eventName) { 30036 eventName ? this.events[eventName] && delete this.events[eventName] : this.events = {}; 30037 } 30038 removeListener(eventName, listener) { 30039 let listeners3 = this.listeners(eventName); 30040 listeners3 && (this.events[eventName] = listeners3.filter((l) => l !== listener)); 30041 } 30042 on(eventName, listener) { 30043 this.addListener(eventName, listener); 30044 } 30045 off(eventName, listener) { 30046 this.removeListener(eventName, listener); 30047 } 30048 handleEvent(event) { 30049 let listeners3 = this.listeners(event.type); 30050 listeners3 && listeners3.length && listeners3.forEach((fn4) => { 30051 fn4.apply(event, event.args); 30052 }), this.data[event.type] = event.args; 30053 } 30054 onceListener(eventName, listener) { 30055 let onceListener = (...args) => (this.removeListener(eventName, onceListener), listener(...args)); 30056 return onceListener; 30057 } 30058}; 30059
30060// src/channels/postmessage/index.ts 30061init_client_logger(); 30062init_dist(); 30063
vendor: 2,010 bytes, lines 30064-30103
30064// ../../node_modules/telejson/dist/chunk-EAFQLD22.mjs 30065var __create2 = Object.create, __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __getProtoOf2 = Object.getPrototypeOf, __hasOwnProp2 = Object.prototype.hasOwnProperty, __commonJS2 = (cb, mod) => function() { 30066 return mod || (0, cb[__getOwnPropNames2(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports; 30067}, __copyProps2 = (to, from2, except, desc) => { 30068 if (from2 && typeof from2 == "object" || typeof from2 == "function") 30069 for (let key of __getOwnPropNames2(from2)) 30070 !__hasOwnProp2.call(to, key) && key !== except && __defProp2(to, key, { get: () => from2[key], enumerable: !(desc = __getOwnPropDesc2(from2, key)) || desc.enumerable }); 30071 return to; 30072}, __toESM2 = (mod, isNodeMode, target) => (target = mod != null ? __create2(__getProtoOf2(mod)) : {}, __copyProps2( 30073 // If the importer is in node compatibility mode or this is not an ESM 30074 // file that has been converted to a CommonJS file using a Babel- 30075 // compatible transform (i.e. "__esModule" has not been set), then set 30076 // "default" to the CommonJS "module.exports" for node compatibility. 30077 isNodeMode || !mod || !mod.__esModule ? __defProp2(target, "default", { value: mod, enumerable: !0 }) : target, 30078 mod 30079)), eventProperties = [ 30080 "bubbles", 30081 "cancelBubble", 30082 "cancelable", 30083 "composed", 30084 "currentTarget", 30085 "defaultPrevented", 30086 "eventPhase", 30087 "isTrusted", 30088 "returnValue", 30089 "srcElement", 30090 "target", 30091 "timeStamp", 30092 "type" 30093], customEventSpecificProperties = ["detail"]; 30094function extractEventHiddenProperties(event) { 30095 let rebuildEvent = eventProperties.filter((value) => event[value] !== void 0).reduce((acc, value) => (acc[value] = event[value], acc), {}); 30096 if (event instanceof CustomEvent) 30097 for (let value of customEventSpecificProperties.filter( 30098 (value2) => event[value2] !== void 0 30099 )) 30100 rebuildEvent[value] = event[value]; 30101 return rebuildEvent; 30102} 30103
vendor: 51,090 bytes, lines 30104-31168
30104// ../../node_modules/telejson/dist/index.mjs 30105var require_es_object_atoms = __commonJS2({ 30106 "node_modules/.pnpm/[email protected]/node_modules/es-object-atoms/index.js"(exports, module2) { 30107 "use strict"; 30108 module2.exports = Object; 30109 } 30110}), require_es_errors = __commonJS2({ 30111 "node_modules/.pnpm/[email protected]/node_modules/es-errors/index.js"(exports, module2) { 30112 "use strict"; 30113 module2.exports = Error; 30114 } 30115}), require_eval = __commonJS2({ 30116 "node_modules/.pnpm/[email protected]/node_modules/es-errors/eval.js"(exports, module2) { 30117 "use strict"; 30118 module2.exports = EvalError; 30119 } 30120}), require_range = __commonJS2({ 30121 "node_modules/.pnpm/[email protected]/node_modules/es-errors/range.js"(exports, module2) { 30122 "use strict"; 30123 module2.exports = RangeError; 30124 } 30125}), require_ref = __commonJS2({ 30126 "node_modules/.pnpm/[email protected]/node_modules/es-errors/ref.js"(exports, module2) { 30127 "use strict"; 30128 module2.exports = ReferenceError; 30129 } 30130}), require_syntax = __commonJS2({ 30131 "node_modules/.pnpm/[email protected]/node_modules/es-errors/syntax.js"(exports, module2) { 30132 "use strict"; 30133 module2.exports = SyntaxError; 30134 } 30135}), require_type = __commonJS2({ 30136 "node_modules/.pnpm/[email protected]/node_modules/es-errors/type.js"(exports, module2) { 30137 "use strict"; 30138 module2.exports = TypeError; 30139 } 30140}), require_uri = __commonJS2({ 30141 "node_modules/.pnpm/[email protected]/node_modules/es-errors/uri.js"(exports, module2) { 30142 "use strict"; 30143 module2.exports = URIError; 30144 } 30145}), require_abs = __commonJS2({ 30146 "node_modules/.pnpm/[email protected]/node_modules/math-intrinsics/abs.js"(exports, module2) { 30147 "use strict"; 30148 module2.exports = Math.abs; 30149 } 30150}), require_floor = __commonJS2({ 30151 "node_modules/.pnpm/[email protected]/node_modules/math-intrinsics/floor.js"(exports, module2) { 30152 "use strict"; 30153 module2.exports = Math.floor; 30154 } 30155}), require_max = __commonJS2({ 30156 "node_modules/.pnpm/[email protected]/node_modules/math-intrinsics/max.js"(exports, module2) { 30157 "use strict"; 30158 module2.exports = Math.max; 30159 } 30160}), require_min = __commonJS2({ 30161 "node_modules/.pnpm/[email protected]/node_modules/math-intrinsics/min.js"(exports, module2) { 30162 "use strict"; 30163 module2.exports = Math.min; 30164 } 30165}), require_pow = __commonJS2({ 30166 "node_modules/.pnpm/[email protected]/node_modules/math-intrinsics/pow.js"(exports, module2) { 30167 "use strict"; 30168 module2.exports = Math.pow; 30169 } 30170}), require_round = __commonJS2({ 30171 "node_modules/.pnpm/[email protected]/node_modules/math-intrinsics/round.js"(exports, module2) { 30172 "use strict"; 30173 module2.exports = Math.round; 30174 } 30175}), require_isNaN = __commonJS2({ 30176 "node_modules/.pnpm/[email protected]/node_modules/math-intrinsics/isNaN.js"(exports, module2) { 30177 "use strict"; 30178 module2.exports = Number.isNaN || function(a3) { 30179 return a3 !== a3; 30180 }; 30181 } 30182}), require_sign = __commonJS2({ 30183 "node_modules/.pnpm/[email protected]/node_modules/math-intrinsics/sign.js"(exports, module2) { 30184 "use strict"; 30185 var $isNaN = require_isNaN(); 30186 module2.exports = function(number) { 30187 return $isNaN(number) || number === 0 ? number : number < 0 ? -1 : 1; 30188 }; 30189 } 30190}), require_gOPD = __commonJS2({ 30191 "node_modules/.pnpm/[email protected]/node_modules/gopd/gOPD.js"(exports, module2) { 30192 "use strict"; 30193 module2.exports = Object.getOwnPropertyDescriptor; 30194 } 30195}), require_gopd = __commonJS2({ 30196 "node_modules/.pnpm/[email protected]/node_modules/gopd/index.js"(exports, module2) { 30197 "use strict"; 30198 var $gOPD = require_gOPD(); 30199 if ($gOPD) 30200 try { 30201 $gOPD([], "length"); 30202 } catch { 30203 $gOPD = null; 30204 } 30205 module2.exports = $gOPD; 30206 } 30207}), require_es_define_property = __commonJS2({ 30208 "node_modules/.pnpm/[email protected]/node_modules/es-define-property/index.js"(exports, module2) { 30209 "use strict"; 30210 var $defineProperty = Object.defineProperty || !1; 30211 if ($defineProperty) 30212 try { 30213 $defineProperty({}, "a", { value: 1 }); 30214 } catch { 30215 $defineProperty = !1; 30216 } 30217 module2.exports = $defineProperty; 30218 } 30219}), require_shams = __commonJS2({ 30220 "node_modules/.pnpm/[email protected]/node_modules/has-symbols/shams.js"(exports, module2) { 30221 "use strict"; 30222 module2.exports = function() { 30223 if (typeof Symbol != "function" || typeof Object.getOwnPropertySymbols != "function") 30224 return !1; 30225 if (typeof Symbol.iterator == "symbol") 30226 return !0; 30227 var obj = {}, sym = Symbol("test"), symObj = Object(sym); 30228 if (typeof sym == "string" || Object.prototype.toString.call(sym) !== "[object Symbol]" || Object.prototype.toString.call(symObj) !== "[object Symbol]") 30229 return !1; 30230 var symVal = 42; 30231 obj[sym] = symVal; 30232 for (var _ in obj) 30233 return !1; 30234 if (typeof Object.keys == "function" && Object.keys(obj).length !== 0 || typeof Object.getOwnPropertyNames == "function" && Object.getOwnPropertyNames(obj).length !== 0) 30235 return !1; 30236 var syms = Object.getOwnPropertySymbols(obj); 30237 if (syms.length !== 1 || syms[0] !== sym || !Object.prototype.propertyIsEnumerable.call(obj, sym)) 30238 return !1; 30239 if (typeof Object.getOwnPropertyDescriptor == "function") { 30240 var descriptor = ( 30241 /** @type {PropertyDescriptor} */ 30242 Object.getOwnPropertyDescriptor(obj, sym) 30243 ); 30244 if (descriptor.value !== symVal || descriptor.enumerable !== !0) 30245 return !1; 30246 } 30247 return !0; 30248 }; 30249 } 30250}), require_has_symbols = __commonJS2({ 30251 "node_modules/.pnpm/[email protected]/node_modules/has-symbols/index.js"(exports, module2) { 30252 "use strict"; 30253 var origSymbol = typeof Symbol < "u" && Symbol, hasSymbolSham = require_shams(); 30254 module2.exports = function() { 30255 return typeof origSymbol != "function" || typeof Symbol != "function" || typeof origSymbol("foo") != "symbol" || typeof Symbol("bar") != "symbol" ? !1 : hasSymbolSham(); 30256 }; 30257 } 30258}), require_Reflect_getPrototypeOf = __commonJS2({ 30259 "node_modules/.pnpm/[email protected]/node_modules/get-proto/Reflect.getPrototypeOf.js"(exports, module2) { 30260 "use strict"; 30261 module2.exports = typeof Reflect < "u" && Reflect.getPrototypeOf || null; 30262 } 30263}), require_Object_getPrototypeOf = __commonJS2({ 30264 "node_modules/.pnpm/[email protected]/node_modules/get-proto/Object.getPrototypeOf.js"(exports, module2) { 30265 "use strict"; 30266 var $Object = require_es_object_atoms(); 30267 module2.exports = $Object.getPrototypeOf || null; 30268 } 30269}), require_implementation = __commonJS2({ 30270 "node_modules/.pnpm/[email protected]/node_modules/function-bind/implementation.js"(exports, module2) { 30271 "use strict"; 30272 var ERROR_MESSAGE = "Function.prototype.bind called on incompatible ", toStr3 = Object.prototype.toString, max2 = Math.max, funcType = "[object Function]", concatty = function(a3, b) { 30273 for (var arr = [], i = 0; i < a3.length; i += 1) 30274 arr[i] = a3[i]; 30275 for (var j = 0; j < b.length; j += 1) 30276 arr[j + a3.length] = b[j]; 30277 return arr; 30278 }, slicy = function(arrLike, offset3) { 30279 for (var arr = [], i = offset3 || 0, j = 0; i < arrLike.length; i += 1, j += 1) 30280 arr[j] = arrLike[i]; 30281 return arr; 30282 }, joiny = function(arr, joiner) { 30283 for (var str2 = "", i = 0; i < arr.length; i += 1) 30284 str2 += arr[i], i + 1 < arr.length && (str2 += joiner); 30285 return str2; 30286 }; 30287 module2.exports = function(that) { 30288 var target = this; 30289 if (typeof target != "function" || toStr3.apply(target) !== funcType) 30290 throw new TypeError(ERROR_MESSAGE + target); 30291 for (var args = slicy(arguments, 1), bound, binder = function() { 30292 if (this instanceof bound) { 30293 var result = target.apply( 30294 this, 30295 concatty(args, arguments) 30296 ); 30297 return Object(result) === result ? result : this; 30298 } 30299 return target.apply( 30300 that, 30301 concatty(args, arguments) 30302 ); 30303 }, boundLength = max2(0, target.length - args.length), boundArgs = [], i = 0; i < boundLength; i++) 30304 boundArgs[i] = "$" + i; 30305 if (bound = Function("binder", "return function (" + joiny(boundArgs, ",") + "){ return binder.apply(this,arguments); }")(binder), target.prototype) { 30306 var Empty = function() { 30307 }; 30308 Empty.prototype = target.prototype, bound.prototype = new Empty(), Empty.prototype = null; 30309 } 30310 return bound; 30311 }; 30312 } 30313}), require_function_bind = __commonJS2({ 30314 "node_modules/.pnpm/[email protected]/node_modules/function-bind/index.js"(exports, module2) { 30315 "use strict"; 30316 var implementation = require_implementation(); 30317 module2.exports = Function.prototype.bind || implementation; 30318 } 30319}), require_functionCall = __commonJS2({ 30320 "node_modules/.pnpm/[email protected]/node_modules/call-bind-apply-helpers/functionCall.js"(exports, module2) { 30321 "use strict"; 30322 module2.exports = Function.prototype.call; 30323 } 30324}), require_functionApply = __commonJS2({ 30325 "node_modules/.pnpm/[email protected]/node_modules/call-bind-apply-helpers/functionApply.js"(exports, module2) { 30326 "use strict"; 30327 module2.exports = Function.prototype.apply; 30328 } 30329}), require_reflectApply = __commonJS2({ 30330 "node_modules/.pnpm/[email protected]/node_modules/call-bind-apply-helpers/reflectApply.js"(exports, module2) { 30331 "use strict"; 30332 module2.exports = typeof Reflect < "u" && Reflect && Reflect.apply; 30333 } 30334}), require_actualApply = __commonJS2({ 30335 "node_modules/.pnpm/[email protected]/node_modules/call-bind-apply-helpers/actualApply.js"(exports, module2) { 30336 "use strict"; 30337 var bind = require_function_bind(), $apply = require_functionApply(), $call = require_functionCall(), $reflectApply = require_reflectApply(); 30338 module2.exports = $reflectApply || bind.call($call, $apply); 30339 } 30340}), require_call_bind_apply_helpers = __commonJS2({ 30341 "node_modules/.pnpm/[email protected]/node_modules/call-bind-apply-helpers/index.js"(exports, module2) { 30342 "use strict"; 30343 var bind = require_function_bind(), $TypeError = require_type(), $call = require_functionCall(), $actualApply = require_actualApply(); 30344 module2.exports = function(args) { 30345 if (args.length < 1 || typeof args[0] != "function") 30346 throw new $TypeError("a function is required"); 30347 return $actualApply(bind, $call, args); 30348 }; 30349 } 30350}), require_get = __commonJS2({ 30351 "node_modules/.pnpm/[email protected]/node_modules/dunder-proto/get.js"(exports, module2) { 30352 "use strict"; 30353 var callBind = require_call_bind_apply_helpers(), gOPD = require_gopd(), hasProtoAccessor; 30354 try { 30355 hasProtoAccessor = /** @type {{ __proto__?: typeof Array.prototype }} */ 30356 [].__proto__ === Array.prototype; 30357 } catch (e) { 30358 if (!e || typeof e != "object" || !("code" in e) || e.code !== "ERR_PROTO_ACCESS") 30359 throw e; 30360 } 30361 var desc = !!hasProtoAccessor && gOPD && gOPD( 30362 Object.prototype, 30363 /** @type {keyof typeof Object.prototype} */ 30364 "__proto__" 30365 ), $Object = Object, $getPrototypeOf = $Object.getPrototypeOf; 30366 module2.exports = desc && typeof desc.get == "function" ? callBind([desc.get]) : typeof $getPrototypeOf == "function" ? ( 30367 /** @type {import('./get')} */ 30368 (function(value) { 30369 return $getPrototypeOf(value == null ? value : $Object(value)); 30370 }) 30371 ) : !1; 30372 } 30373}), require_get_proto = __commonJS2({ 30374 "node_modules/.pnpm/[email protected]/node_modules/get-proto/index.js"(exports, module2) { 30375 "use strict"; 30376 var reflectGetProto = require_Reflect_getPrototypeOf(), originalGetProto = require_Object_getPrototypeOf(), getDunderProto = require_get(); 30377 module2.exports = reflectGetProto ? function(O) { 30378 return reflectGetProto(O); 30379 } : originalGetProto ? function(O) { 30380 if (!O || typeof O != "object" && typeof O != "function") 30381 throw new TypeError("getProto: not an object"); 30382 return originalGetProto(O); 30383 } : getDunderProto ? function(O) { 30384 return getDunderProto(O); 30385 } : null; 30386 } 30387}), require_hasown = __commonJS2({ 30388 "node_modules/.pnpm/[email protected]/node_modules/hasown/index.js"(exports, module2) { 30389 "use strict"; 30390 var call2 = Function.prototype.call, $hasOwn = Object.prototype.hasOwnProperty, bind = require_function_bind(); 30391 module2.exports = bind.call(call2, $hasOwn); 30392 } 30393}), require_get_intrinsic = __commonJS2({ 30394 "node_modules/.pnpm/[email protected]/node_modules/get-intrinsic/index.js"(exports, module2) { 30395 "use strict"; 30396 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) { 30397 try { 30398 return $Function('"use strict"; return (' + expressionSyntax + ").constructor;")(); 30399 } catch { 30400 } 30401 }, $gOPD = require_gopd(), $defineProperty = require_es_define_property(), throwTypeError = function() { 30402 throw new $TypeError(); 30403 }, ThrowTypeError = $gOPD ? (function() { 30404 try { 30405 return arguments.callee, throwTypeError; 30406 } catch { 30407 try { 30408 return $gOPD(arguments, "callee").get; 30409 } catch { 30410 return throwTypeError; 30411 } 30412 } 30413 })() : 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 = { 30414 __proto__: null, 30415 "%AggregateError%": typeof AggregateError > "u" ? undefined2 : AggregateError, 30416 "%Array%": Array, 30417 "%ArrayBuffer%": typeof ArrayBuffer > "u" ? undefined2 : ArrayBuffer, 30418 "%ArrayIteratorPrototype%": hasSymbols && getProto ? getProto([][Symbol.iterator]()) : undefined2, 30419 "%AsyncFromSyncIteratorPrototype%": undefined2, 30420 "%AsyncFunction%": needsEval, 30421 "%AsyncGenerator%": needsEval, 30422 "%AsyncGeneratorFunction%": needsEval, 30423 "%AsyncIteratorPrototype%": needsEval, 30424 "%Atomics%": typeof Atomics > "u" ? undefined2 : Atomics, 30425 "%BigInt%": typeof BigInt > "u" ? undefined2 : BigInt, 30426 "%BigInt64Array%": typeof BigInt64Array > "u" ? undefined2 : BigInt64Array, 30427 "%BigUint64Array%": typeof BigUint64Array > "u" ? undefined2 : BigUint64Array, 30428 "%Boolean%": Boolean, 30429 "%DataView%": typeof DataView > "u" ? undefined2 : DataView, 30430 "%Date%": Date, 30431 "%decodeURI%": decodeURI, 30432 "%decodeURIComponent%": decodeURIComponent, 30433 "%encodeURI%": encodeURI, 30434 "%encodeURIComponent%": encodeURIComponent, 30435 "%Error%": $Error, 30436 "%eval%": eval, 30437 // eslint-disable-line no-eval 30438 "%EvalError%": $EvalError, 30439 "%Float16Array%": typeof Float16Array > "u" ? undefined2 : Float16Array, 30440 "%Float32Array%": typeof Float32Array > "u" ? undefined2 : Float32Array, 30441 "%Float64Array%": typeof Float64Array > "u" ? undefined2 : Float64Array, 30442 "%FinalizationRegistry%": typeof FinalizationRegistry > "u" ? undefined2 : FinalizationRegistry, 30443 "%Function%": $Function, 30444 "%GeneratorFunction%": needsEval, 30445 "%Int8Array%": typeof Int8Array > "u" ? undefined2 : Int8Array, 30446 "%Int16Array%": typeof Int16Array > "u" ? undefined2 : Int16Array, 30447 "%Int32Array%": typeof Int32Array > "u" ? undefined2 : Int32Array, 30448 "%isFinite%": isFinite, 30449 "%isNaN%": isNaN, 30450 "%IteratorPrototype%": hasSymbols && getProto ? getProto(getProto([][Symbol.iterator]())) : undefined2, 30451 "%JSON%": typeof JSON == "object" ? JSON : undefined2, 30452 "%Map%": typeof Map > "u" ? undefined2 : Map, 30453 "%MapIteratorPrototype%": typeof Map > "u" || !hasSymbols || !getProto ? undefined2 : getProto((/* @__PURE__ */ new Map())[Symbol.iterator]()), 30454 "%Math%": Math, 30455 "%Number%": Number, 30456 "%Object%": $Object, 30457 "%Object.getOwnPropertyDescriptor%": $gOPD, 30458 "%parseFloat%": parseFloat, 30459 "%parseInt%": parseInt, 30460 "%Promise%": typeof Promise > "u" ? undefined2 : Promise, 30461 "%Proxy%": typeof Proxy > "u" ? undefined2 : Proxy, 30462 "%RangeError%": $RangeError, 30463 "%ReferenceError%": $ReferenceError, 30464 "%Reflect%": typeof Reflect > "u" ? undefined2 : Reflect, 30465 "%RegExp%": RegExp, 30466 "%Set%": typeof Set > "u" ? undefined2 : Set, 30467 "%SetIteratorPrototype%": typeof Set > "u" || !hasSymbols || !getProto ? undefined2 : getProto((/* @__PURE__ */ new Set())[Symbol.iterator]()), 30468 "%SharedArrayBuffer%": typeof SharedArrayBuffer > "u" ? undefined2 : SharedArrayBuffer, 30469 "%String%": String, 30470 "%StringIteratorPrototype%": hasSymbols && getProto ? getProto(""[Symbol.iterator]()) : undefined2, 30471 "%Symbol%": hasSymbols ? Symbol : undefined2, 30472 "%SyntaxError%": $SyntaxError, 30473 "%ThrowTypeError%": ThrowTypeError, 30474 "%TypedArray%": TypedArray, 30475 "%TypeError%": $TypeError, 30476 "%Uint8Array%": typeof Uint8Array > "u" ? undefined2 : Uint8Array, 30477 "%Uint8ClampedArray%": typeof Uint8ClampedArray > "u" ? undefined2 : Uint8ClampedArray, 30478 "%Uint16Array%": typeof Uint16Array > "u" ? undefined2 : Uint16Array, 30479 "%Uint32Array%": typeof Uint32Array > "u" ? undefined2 : Uint32Array, 30480 "%URIError%": $URIError, 30481 "%WeakMap%": typeof WeakMap > "u" ? undefined2 : WeakMap, 30482 "%WeakRef%": typeof WeakRef > "u" ? undefined2 : WeakRef, 30483 "%WeakSet%": typeof WeakSet > "u" ? undefined2 : WeakSet, 30484 "%Function.prototype.call%": $call, 30485 "%Function.prototype.apply%": $apply, 30486 "%Object.defineProperty%": $defineProperty, 30487 "%Object.getPrototypeOf%": $ObjectGPO, 30488 "%Math.abs%": abs2, 30489 "%Math.floor%": floor, 30490 "%Math.max%": max2, 30491 "%Math.min%": min2, 30492 "%Math.pow%": pow, 30493 "%Math.round%": round3, 30494 "%Math.sign%": sign, 30495 "%Reflect.getPrototypeOf%": $ReflectGPO 30496 }; 30497 if (getProto) 30498 try { 30499 null.error; 30500 } catch (e) { 30501 errorProto = getProto(getProto(e)), INTRINSICS["%Error.prototype%"] = errorProto; 30502 } 30503 var errorProto, doEval = function doEval2(name) { 30504 var value; 30505 if (name === "%AsyncFunction%") 30506 value = getEvalledConstructor("async function () {}"); 30507 else if (name === "%GeneratorFunction%") 30508 value = getEvalledConstructor("function* () {}"); 30509 else if (name === "%AsyncGeneratorFunction%") 30510 value = getEvalledConstructor("async function* () {}"); 30511 else if (name === "%AsyncGenerator%") { 30512 var fn4 = doEval2("%AsyncGeneratorFunction%"); 30513 fn4 && (value = fn4.prototype); 30514 } else if (name === "%AsyncIteratorPrototype%") { 30515 var gen = doEval2("%AsyncGenerator%"); 30516 gen && getProto && (value = getProto(gen.prototype)); 30517 } 30518 return INTRINSICS[name] = value, value; 30519 }, LEGACY_ALIASES = { 30520 __proto__: null, 30521 "%ArrayBufferPrototype%": ["ArrayBuffer", "prototype"], 30522 "%ArrayPrototype%": ["Array", "prototype"], 30523 "%ArrayProto_entries%": ["Array", "prototype", "entries"], 30524 "%ArrayProto_forEach%": ["Array", "prototype", "forEach"], 30525 "%ArrayProto_keys%": ["Array", "prototype", "keys"], 30526 "%ArrayProto_values%": ["Array", "prototype", "values"], 30527 "%AsyncFunctionPrototype%": ["AsyncFunction", "prototype"], 30528 "%AsyncGenerator%": ["AsyncGeneratorFunction", "prototype"], 30529 "%AsyncGeneratorPrototype%": ["AsyncGeneratorFunction", "prototype", "prototype"], 30530 "%BooleanPrototype%": ["Boolean", "prototype"], 30531 "%DataViewPrototype%": ["DataView", "prototype"], 30532 "%DatePrototype%": ["Date", "prototype"], 30533 "%ErrorPrototype%": ["Error", "prototype"], 30534 "%EvalErrorPrototype%": ["EvalError", "prototype"], 30535 "%Float32ArrayPrototype%": ["Float32Array", "prototype"], 30536 "%Float64ArrayPrototype%": ["Float64Array", "prototype"], 30537 "%FunctionPrototype%": ["Function", "prototype"], 30538 "%Generator%": ["GeneratorFunction", "prototype"], 30539 "%GeneratorPrototype%": ["GeneratorFunction", "prototype", "prototype"], 30540 "%Int8ArrayPrototype%": ["Int8Array", "prototype"], 30541 "%Int16ArrayPrototype%": ["Int16Array", "prototype"], 30542 "%Int32ArrayPrototype%": ["Int32Array", "prototype"], 30543 "%JSONParse%": ["JSON", "parse"], 30544 "%JSONStringify%": ["JSON", "stringify"], 30545 "%MapPrototype%": ["Map", "prototype"], 30546 "%NumberPrototype%": ["Number", "prototype"], 30547 "%ObjectPrototype%": ["Object", "prototype"], 30548 "%ObjProto_toString%": ["Object", "prototype", "toString"], 30549 "%ObjProto_valueOf%": ["Object", "prototype", "valueOf"], 30550 "%PromisePrototype%": ["Promise", "prototype"], 30551 "%PromiseProto_then%": ["Promise", "prototype", "then"], 30552 "%Promise_all%": ["Promise", "all"], 30553 "%Promise_reject%": ["Promise", "reject"], 30554 "%Promise_resolve%": ["Promise", "resolve"], 30555 "%RangeErrorPrototype%": ["RangeError", "prototype"], 30556 "%ReferenceErrorPrototype%": ["ReferenceError", "prototype"], 30557 "%RegExpPrototype%": ["RegExp", "prototype"], 30558 "%SetPrototype%": ["Set", "prototype"], 30559 "%SharedArrayBufferPrototype%": ["SharedArrayBuffer", "prototype"], 30560 "%StringPrototype%": ["String", "prototype"], 30561 "%SymbolPrototype%": ["Symbol", "prototype"], 30562 "%SyntaxErrorPrototype%": ["SyntaxError", "prototype"], 30563 "%TypedArrayPrototype%": ["TypedArray", "prototype"], 30564 "%TypeErrorPrototype%": ["TypeError", "prototype"], 30565 "%Uint8ArrayPrototype%": ["Uint8Array", "prototype"], 30566 "%Uint8ClampedArrayPrototype%": ["Uint8ClampedArray", "prototype"], 30567 "%Uint16ArrayPrototype%": ["Uint16Array", "prototype"], 30568 "%Uint32ArrayPrototype%": ["Uint32Array", "prototype"], 30569 "%URIErrorPrototype%": ["URIError", "prototype"], 30570 "%WeakMapPrototype%": ["WeakMap", "prototype"], 30571 "%WeakSetPrototype%": ["WeakSet", "prototype"] 30572 }, 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) { 30573 var first = $strSlice(string, 0, 1), last2 = $strSlice(string, -1); 30574 if (first === "%" && last2 !== "%") 30575 throw new $SyntaxError("invalid intrinsic syntax, expected closing `%`"); 30576 if (last2 === "%" && first !== "%") 30577 throw new $SyntaxError("invalid intrinsic syntax, expected opening `%`"); 30578 var result = []; 30579 return $replace(string, rePropName2, function(match3, number, quote, subString) { 30580 result[result.length] = quote ? $replace(subString, reEscapeChar2, "$1") : number || match3; 30581 }), result; 30582 }, getBaseIntrinsic = function(name, allowMissing) { 30583 var intrinsicName = name, alias; 30584 if (hasOwn2(LEGACY_ALIASES, intrinsicName) && (alias = LEGACY_ALIASES[intrinsicName], intrinsicName = "%" + alias[0] + "%"), hasOwn2(INTRINSICS, intrinsicName)) { 30585 var value = INTRINSICS[intrinsicName]; 30586 if (value === needsEval && (value = doEval(intrinsicName)), typeof value > "u" && !allowMissing) 30587 throw new $TypeError("intrinsic " + name + " exists, but is not available. Please file an issue!"); 30588 return { 30589 alias, 30590 name: intrinsicName, 30591 value 30592 }; 30593 } 30594 throw new $SyntaxError("intrinsic " + name + " does not exist!"); 30595 }; 30596 module2.exports = function(name, allowMissing) { 30597 if (typeof name != "string" || name.length === 0) 30598 throw new $TypeError("intrinsic name must be a non-empty string"); 30599 if (arguments.length > 1 && typeof allowMissing != "boolean") 30600 throw new $TypeError('"allowMissing" argument must be a boolean'); 30601 if ($exec(/^%?[^%]*%?$/, name) === null) 30602 throw new $SyntaxError("`%` may not be present anywhere but at the beginning and end of the intrinsic name"); 30603 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; 30604 alias && (intrinsicBaseName = alias[0], $spliceApply(parts, $concat([0, 1], alias))); 30605 for (var i = 1, isOwn = !0; i < parts.length; i += 1) { 30606 var part = parts[i], first = $strSlice(part, 0, 1), last2 = $strSlice(part, -1); 30607 if ((first === '"' || first === "'" || first === "`" || last2 === '"' || last2 === "'" || last2 === "`") && first !== last2) 30608 throw new $SyntaxError("property names with quotes must have matching quotes"); 30609 if ((part === "constructor" || !isOwn) && (skipFurtherCaching = !0), intrinsicBaseName += "." + part, intrinsicRealName = "%" + intrinsicBaseName + "%", hasOwn2(INTRINSICS, intrinsicRealName)) 30610 value = INTRINSICS[intrinsicRealName]; 30611 else if (value != null) { 30612 if (!(part in value)) { 30613 if (!allowMissing) 30614 throw new $TypeError("base intrinsic for " + name + " exists, but the property is not available."); 30615 return; 30616 } 30617 if ($gOPD && i + 1 >= parts.length) { 30618 var desc = $gOPD(value, part); 30619 isOwn = !!desc, isOwn && "get" in desc && !("originalValue" in desc.get) ? value = desc.get : value = value[part]; 30620 } else 30621 isOwn = hasOwn2(value, part), value = value[part]; 30622 isOwn && !skipFurtherCaching && (INTRINSICS[intrinsicRealName] = value); 30623 } 30624 } 30625 return value; 30626 }; 30627 } 30628}), require_call_bound = __commonJS2({ 30629 "node_modules/.pnpm/[email protected]/node_modules/call-bound/index.js"(exports, module2) { 30630 "use strict"; 30631 var GetIntrinsic = require_get_intrinsic(), callBindBasic = require_call_bind_apply_helpers(), $indexOf = callBindBasic([GetIntrinsic("%String.prototype.indexOf%")]); 30632 module2.exports = function(name, allowMissing) { 30633 var intrinsic = ( 30634 /** @type {(this: unknown, ...args: unknown[]) => unknown} */ 30635 GetIntrinsic(name, !!allowMissing) 30636 ); 30637 return typeof intrinsic == "function" && $indexOf(name, ".prototype.") > -1 ? callBindBasic( 30638 /** @type {const} */ 30639 [intrinsic] 30640 ) : intrinsic; 30641 }; 30642 } 30643}), require_shams2 = __commonJS2({ 30644 "node_modules/.pnpm/[email protected]/node_modules/has-tostringtag/shams.js"(exports, module2) { 30645 "use strict"; 30646 var hasSymbols = require_shams(); 30647 module2.exports = function() { 30648 return hasSymbols() && !!Symbol.toStringTag; 30649 }; 30650 } 30651}), require_is_regex = __commonJS2({ 30652 "node_modules/.pnpm/[email protected]/node_modules/is-regex/index.js"(exports, module2) { 30653 "use strict"; 30654 var callBound = require_call_bound(), hasToStringTag = require_shams2()(), hasOwn2 = require_hasown(), gOPD = require_gopd(), fn4; 30655 hasToStringTag ? ($exec = callBound("RegExp.prototype.exec"), isRegexMarker = {}, throwRegexMarker = function() { 30656 throw isRegexMarker; 30657 }, badStringifier = { 30658 toString: throwRegexMarker, 30659 valueOf: throwRegexMarker 30660 }, typeof Symbol.toPrimitive == "symbol" && (badStringifier[Symbol.toPrimitive] = throwRegexMarker), fn4 = function(value) { 30661 if (!value || typeof value != "object") 30662 return !1; 30663 var descriptor = ( 30664 /** @type {NonNullable<typeof gOPD>} */ 30665 gOPD( 30666 /** @type {{ lastIndex?: unknown }} */ 30667 value, 30668 "lastIndex" 30669 ) 30670 ), hasLastIndexDataProperty = descriptor && hasOwn2(descriptor, "value"); 30671 if (!hasLastIndexDataProperty) 30672 return !1; 30673 try { 30674 $exec( 30675 value, 30676 /** @type {string} */ 30677 /** @type {unknown} */ 30678 badStringifier 30679 ); 30680 } catch (e) { 30681 return e === isRegexMarker; 30682 } 30683 }) : ($toString = callBound("Object.prototype.toString"), regexClass = "[object RegExp]", fn4 = function(value) { 30684 return !value || typeof value != "object" && typeof value != "function" ? !1 : $toString(value) === regexClass; 30685 }); 30686 var $exec, isRegexMarker, throwRegexMarker, badStringifier, $toString, regexClass; 30687 module2.exports = fn4; 30688 } 30689}), require_is_function = __commonJS2({ 30690 "node_modules/.pnpm/[email protected]/node_modules/is-function/index.js"(exports, module2) { 30691 module2.exports = isFunction32; 30692 var toString22 = Object.prototype.toString; 30693 function isFunction32(fn4) { 30694 if (!fn4) 30695 return !1; 30696 var string = toString22.call(fn4); 30697 return string === "[object Function]" || typeof fn4 == "function" && string !== "[object RegExp]" || typeof window < "u" && // IE8 and below 30698 (fn4 === window.setTimeout || fn4 === window.alert || fn4 === window.confirm || fn4 === window.prompt); 30699 } 30700 } 30701}), require_safe_regex_test = __commonJS2({ 30702 "node_modules/.pnpm/[email protected]/node_modules/safe-regex-test/index.js"(exports, module2) { 30703 "use strict"; 30704 var callBound = require_call_bound(), isRegex = require_is_regex(), $exec = callBound("RegExp.prototype.exec"), $TypeError = require_type(); 30705 module2.exports = function(regex) { 30706 if (!isRegex(regex)) 30707 throw new $TypeError("`regex` must be a RegExp"); 30708 return function(s3) { 30709 return $exec(regex, s3) !== null; 30710 }; 30711 }; 30712 } 30713}), require_is_symbol = __commonJS2({ 30714 "node_modules/.pnpm/[email protected]/node_modules/is-symbol/index.js"(exports, module2) { 30715 "use strict"; 30716 var callBound = require_call_bound(), $toString = callBound("Object.prototype.toString"), hasSymbols = require_has_symbols()(), safeRegexTest = require_safe_regex_test(); 30717 hasSymbols ? ($symToStr = callBound("Symbol.prototype.toString"), isSymString = safeRegexTest(/^Symbol\(.*\)$/), isSymbolObject = function(value) { 30718 return typeof value.valueOf() != "symbol" ? !1 : isSymString($symToStr(value)); 30719 }, module2.exports = function(value) { 30720 if (typeof value == "symbol") 30721 return !0; 30722 if (!value || typeof value != "object" || $toString(value) !== "[object Symbol]") 30723 return !1; 30724 try { 30725 return isSymbolObject(value); 30726 } catch { 30727 return !1; 30728 } 30729 }) : module2.exports = function(value) { 30730 return !1; 30731 }; 30732 var $symToStr, isSymString, isSymbolObject; 30733 } 30734}), import_is_regex = __toESM2(require_is_regex()), import_is_function = __toESM2(require_is_function()), import_is_symbol = __toESM2(require_is_symbol()); 30735function isObject(val) { 30736 return val != null && typeof val == "object" && Array.isArray(val) === !1; 30737} 30738var 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; 30739function getRawTag(value) { 30740 var isOwn = hasOwnProperty.call(value, symToStringTag), tag = value[symToStringTag]; 30741 try { 30742 value[symToStringTag] = void 0; 30743 var unmasked = !0; 30744 } catch { 30745 } 30746 var result = nativeObjectToString.call(value); 30747 return unmasked && (isOwn ? value[symToStringTag] = tag : delete value[symToStringTag]), result; 30748} 30749var getRawTag_default = getRawTag, objectProto2 = Object.prototype, nativeObjectToString2 = objectProto2.toString; 30750function objectToString(value) { 30751 return nativeObjectToString2.call(value); 30752} 30753var objectToString_default = objectToString, nullTag = "[object Null]", undefinedTag = "[object Undefined]", symToStringTag2 = Symbol_default ? Symbol_default.toStringTag : void 0; 30754function baseGetTag(value) { 30755 return value == null ? value === void 0 ? undefinedTag : nullTag : symToStringTag2 && symToStringTag2 in Object(value) ? getRawTag_default(value) : objectToString_default(value); 30756} 30757var baseGetTag_default = baseGetTag; 30758function isObjectLike(value) { 30759 return value != null && typeof value == "object"; 30760} 30761var isObjectLike_default = isObjectLike, symbolTag = "[object Symbol]"; 30762function isSymbol(value) { 30763 return typeof value == "symbol" || isObjectLike_default(value) && baseGetTag_default(value) == symbolTag; 30764} 30765var isSymbol_default = isSymbol; 30766function arrayMap(array, iteratee) { 30767 for (var index4 = -1, length2 = array == null ? 0 : array.length, result = Array(length2); ++index4 < length2; ) 30768 result[index4] = iteratee(array[index4], index4, array); 30769 return result; 30770} 30771var 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; 30772function baseToString(value) { 30773 if (typeof value == "string") 30774 return value; 30775 if (isArray_default(value)) 30776 return arrayMap_default(value, baseToString) + ""; 30777 if (isSymbol_default(value)) 30778 return symbolToString ? symbolToString.call(value) : ""; 30779 var result = value + ""; 30780 return result == "0" && 1 / value == -INFINITY ? "-0" : result; 30781} 30782var baseToString_default = baseToString; 30783function isObject2(value) { 30784 var type5 = typeof value; 30785 return value != null && (type5 == "object" || type5 == "function"); 30786} 30787var isObject_default = isObject2, asyncTag = "[object AsyncFunction]", funcTag = "[object Function]", genTag = "[object GeneratorFunction]", proxyTag = "[object Proxy]"; 30788function isFunction(value) { 30789 if (!isObject_default(value)) 30790 return !1; 30791 var tag = baseGetTag_default(value); 30792 return tag == funcTag || tag == genTag || tag == asyncTag || tag == proxyTag; 30793} 30794var isFunction_default = isFunction, coreJsData = root_default["__core-js_shared__"], coreJsData_default = coreJsData, maskSrcKey = (function() { 30795 var uid = /[^.]+$/.exec(coreJsData_default && coreJsData_default.keys && coreJsData_default.keys.IE_PROTO || ""); 30796 return uid ? "Symbol(src)_1." + uid : ""; 30797})(); 30798function isMasked(func) { 30799 return !!maskSrcKey && maskSrcKey in func; 30800} 30801var isMasked_default = isMasked, funcProto = Function.prototype, funcToString = funcProto.toString; 30802function toSource(func) { 30803 if (func != null) { 30804 try { 30805 return funcToString.call(func); 30806 } catch { 30807 } 30808 try { 30809 return func + ""; 30810 } catch { 30811 } 30812 } 30813 return ""; 30814} 30815var toSource_default = toSource, reRegExpChar = /[\\^$.*+?()[\]{}|]/g, reIsHostCtor = /^\[object .+?Constructor\]$/, funcProto2 = Function.prototype, objectProto3 = Object.prototype, funcToString2 = funcProto2.toString, hasOwnProperty2 = objectProto3.hasOwnProperty, reIsNative = RegExp( 30816 "^" + funcToString2.call(hasOwnProperty2).replace(reRegExpChar, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$" 30817); 30818function baseIsNative(value) { 30819 if (!isObject_default(value) || isMasked_default(value)) 30820 return !1; 30821 var pattern = isFunction_default(value) ? reIsNative : reIsHostCtor; 30822 return pattern.test(toSource_default(value)); 30823} 30824var baseIsNative_default = baseIsNative; 30825function getValue(object, key) { 30826 return object?.[key]; 30827} 30828var getValue_default = getValue; 30829function getNative(object, key) { 30830 var value = getValue_default(object, key); 30831 return baseIsNative_default(value) ? value : void 0; 30832} 30833var getNative_default = getNative; 30834function eq(value, other) { 30835 return value === other || value !== value && other !== other; 30836} 30837var eq_default = eq, reIsDeepProp = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, reIsPlainProp = /^\w*$/; 30838function isKey(value, object) { 30839 if (isArray_default(value)) 30840 return !1; 30841 var type5 = typeof value; 30842 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); 30843} 30844var isKey_default = isKey, nativeCreate = getNative_default(Object, "create"), nativeCreate_default = nativeCreate; 30845function hashClear() { 30846 this.__data__ = nativeCreate_default ? nativeCreate_default(null) : {}, this.size = 0; 30847} 30848var hashClear_default = hashClear; 30849function hashDelete(key) { 30850 var result = this.has(key) && delete this.__data__[key]; 30851 return this.size -= result ? 1 : 0, result; 30852} 30853var hashDelete_default = hashDelete, HASH_UNDEFINED = "__lodash_hash_undefined__", objectProto4 = Object.prototype, hasOwnProperty3 = objectProto4.hasOwnProperty; 30854function hashGet(key) { 30855 var data = this.__data__; 30856 if (nativeCreate_default) { 30857 var result = data[key]; 30858 return result === HASH_UNDEFINED ? void 0 : result; 30859 } 30860 return hasOwnProperty3.call(data, key) ? data[key] : void 0; 30861} 30862var hashGet_default = hashGet, objectProto5 = Object.prototype, hasOwnProperty4 = objectProto5.hasOwnProperty; 30863function hashHas(key) { 30864 var data = this.__data__; 30865 return nativeCreate_default ? data[key] !== void 0 : hasOwnProperty4.call(data, key); 30866} 30867var hashHas_default = hashHas, HASH_UNDEFINED2 = "__lodash_hash_undefined__"; 30868function hashSet(key, value) { 30869 var data = this.__data__; 30870 return this.size += this.has(key) ? 0 : 1, data[key] = nativeCreate_default && value === void 0 ? HASH_UNDEFINED2 : value, this; 30871} 30872var hashSet_default = hashSet; 30873function Hash(entries) { 30874 var index4 = -1, length2 = entries == null ? 0 : entries.length; 30875 for (this.clear(); ++index4 < length2; ) { 30876 var entry = entries[index4]; 30877 this.set(entry[0], entry[1]); 30878 } 30879} 30880Hash.prototype.clear = hashClear_default; 30881Hash.prototype.delete = hashDelete_default; 30882Hash.prototype.get = hashGet_default; 30883Hash.prototype.has = hashHas_default; 30884Hash.prototype.set = hashSet_default; 30885var Hash_default = Hash; 30886function listCacheClear() { 30887 this.__data__ = [], this.size = 0; 30888} 30889var listCacheClear_default = listCacheClear; 30890function assocIndexOf(array, key) { 30891 for (var length2 = array.length; length2--; ) 30892 if (eq_default(array[length2][0], key)) 30893 return length2; 30894 return -1; 30895} 30896var assocIndexOf_default = assocIndexOf, arrayProto = Array.prototype, splice = arrayProto.splice; 30897function listCacheDelete(key) { 30898 var data = this.__data__, index4 = assocIndexOf_default(data, key); 30899 if (index4 < 0) 30900 return !1; 30901 var lastIndex = data.length - 1; 30902 return index4 == lastIndex ? data.pop() : splice.call(data, index4, 1), --this.size, !0; 30903} 30904var listCacheDelete_default = listCacheDelete; 30905function listCacheGet(key) { 30906 var data = this.__data__, index4 = assocIndexOf_default(data, key); 30907 return index4 < 0 ? void 0 : data[index4][1]; 30908} 30909var listCacheGet_default = listCacheGet; 30910function listCacheHas(key) { 30911 return assocIndexOf_default(this.__data__, key) > -1; 30912} 30913var listCacheHas_default = listCacheHas; 30914function listCacheSet(key, value) { 30915 var data = this.__data__, index4 = assocIndexOf_default(data, key); 30916 return index4 < 0 ? (++this.size, data.push([key, value])) : data[index4][1] = value, this; 30917} 30918var listCacheSet_default = listCacheSet; 30919function ListCache(entries) { 30920 var index4 = -1, length2 = entries == null ? 0 : entries.length; 30921 for (this.clear(); ++index4 < length2; ) { 30922 var entry = entries[index4]; 30923 this.set(entry[0], entry[1]); 30924 } 30925} 30926ListCache.prototype.clear = listCacheClear_default; 30927ListCache.prototype.delete = listCacheDelete_default; 30928ListCache.prototype.get = listCacheGet_default; 30929ListCache.prototype.has = listCacheHas_default; 30930ListCache.prototype.set = listCacheSet_default; 30931var ListCache_default = ListCache, Map2 = getNative_default(root_default, "Map"), Map_default = Map2; 30932function mapCacheClear() { 30933 this.size = 0, this.__data__ = { 30934 hash: new Hash_default(), 30935 map: new (Map_default || ListCache_default)(), 30936 string: new Hash_default() 30937 }; 30938} 30939var mapCacheClear_default = mapCacheClear; 30940function isKeyable(value) { 30941 var type5 = typeof value; 30942 return type5 == "string" || type5 == "number" || type5 == "symbol" || type5 == "boolean" ? value !== "__proto__" : value === null; 30943} 30944var isKeyable_default = isKeyable; 30945function getMapData(map2, key) { 30946 var data = map2.__data__; 30947 return isKeyable_default(key) ? data[typeof key == "string" ? "string" : "hash"] : data.map; 30948} 30949var getMapData_default = getMapData; 30950function mapCacheDelete(key) { 30951 var result = getMapData_default(this, key).delete(key); 30952 return this.size -= result ? 1 : 0, result; 30953} 30954var mapCacheDelete_default = mapCacheDelete; 30955function mapCacheGet(key) { 30956 return getMapData_default(this, key).get(key); 30957} 30958var mapCacheGet_default = mapCacheGet; 30959function mapCacheHas(key) { 30960 return getMapData_default(this, key).has(key); 30961} 30962var mapCacheHas_default = mapCacheHas; 30963function mapCacheSet(key, value) { 30964 var data = getMapData_default(this, key), size = data.size; 30965 return data.set(key, value), this.size += data.size == size ? 0 : 1, this; 30966} 30967var mapCacheSet_default = mapCacheSet; 30968function MapCache(entries) { 30969 var index4 = -1, length2 = entries == null ? 0 : entries.length; 30970 for (this.clear(); ++index4 < length2; ) { 30971 var entry = entries[index4]; 30972 this.set(entry[0], entry[1]); 30973 } 30974} 30975MapCache.prototype.clear = mapCacheClear_default; 30976MapCache.prototype.delete = mapCacheDelete_default; 30977MapCache.prototype.get = mapCacheGet_default; 30978MapCache.prototype.has = mapCacheHas_default; 30979MapCache.prototype.set = mapCacheSet_default; 30980var MapCache_default = MapCache, FUNC_ERROR_TEXT = "Expected a function"; 30981function memoize(func, resolver) { 30982 if (typeof func != "function" || resolver != null && typeof resolver != "function") 30983 throw new TypeError(FUNC_ERROR_TEXT); 30984 var memoized = function() { 30985 var args = arguments, key = resolver ? resolver.apply(this, args) : args[0], cache = memoized.cache; 30986 if (cache.has(key)) 30987 return cache.get(key); 30988 var result = func.apply(this, args); 30989 return memoized.cache = cache.set(key, result) || cache, result; 30990 }; 30991 return memoized.cache = new (memoize.Cache || MapCache_default)(), memoized; 30992} 30993memoize.Cache = MapCache_default; 30994var memoize_default = memoize, MAX_MEMOIZE_SIZE = 500; 30995function memoizeCapped(func) { 30996 var result = memoize_default(func, function(key) { 30997 return cache.size === MAX_MEMOIZE_SIZE && cache.clear(), key; 30998 }), cache = result.cache; 30999 return result; 31000} 31001var memoizeCapped_default = memoizeCapped, rePropName = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g, reEscapeChar = /\\(\\)?/g, stringToPath = memoizeCapped_default(function(string) { 31002 var result = []; 31003 return string.charCodeAt(0) === 46 && result.push(""), string.replace(rePropName, function(match3, number, quote, subString) { 31004 result.push(quote ? subString.replace(reEscapeChar, "$1") : number || match3); 31005 }), result; 31006}), stringToPath_default = stringToPath; 31007function toString(value) { 31008 return value == null ? "" : baseToString_default(value); 31009} 31010var toString_default = toString; 31011function castPath(value, object) { 31012 return isArray_default(value) ? value : isKey_default(value, object) ? [value] : stringToPath_default(toString_default(value)); 31013} 31014var castPath_default = castPath, INFINITY2 = 1 / 0; 31015function toKey(value) { 31016 if (typeof value == "string" || isSymbol_default(value)) 31017 return value; 31018 var result = value + ""; 31019 return result == "0" && 1 / value == -INFINITY2 ? "-0" : result; 31020} 31021var toKey_default = toKey; 31022function baseGet(object, path) { 31023 path = castPath_default(path, object); 31024 for (var index4 = 0, length2 = path.length; object != null && index4 < length2; ) 31025 object = object[toKey_default(path[index4++])]; 31026 return index4 && index4 == length2 ? object : void 0; 31027} 31028var baseGet_default = baseGet; 31029function get(object, path, defaultValue) { 31030 var result = object == null ? void 0 : baseGet_default(object, path); 31031 return result === void 0 ? defaultValue : result; 31032} 31033var 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(/^[\[\{\"\}].*[\]\}\"]$/); 31034function convertUnconventionalData(data) { 31035 if (!isObject3(data)) 31036 return data; 31037 let result = data, wasMutated = !1; 31038 return typeof Event < "u" && data instanceof Event && (result = extractEventHiddenProperties(result), wasMutated = !0), result = Object.keys(result).reduce((acc, key) => { 31039 try { 31040 result[key] && result[key].toJSON, acc[key] = result[key]; 31041 } catch { 31042 wasMutated = !0; 31043 } 31044 return acc; 31045 }, {}), wasMutated ? result : data; 31046} 31047var replacer = function(options) { 31048 let objects, map2, stack, keys3; 31049 return function(key, value) { 31050 try { 31051 if (key === "") 31052 return keys3 = [], objects = /* @__PURE__ */ new Map([[value, "[]"]]), map2 = /* @__PURE__ */ new Map(), stack = [], value; 31053 let origin = map2.get(this) || this; 31054 for (; stack.length && origin !== stack[0]; ) 31055 stack.shift(), keys3.pop(); 31056 if (typeof value == "boolean") 31057 return value; 31058 if (value === void 0) 31059 return options.allowUndefined ? "_undefined_" : void 0; 31060 if (value === null) 31061 return null; 31062 if (typeof value == "number") 31063 return value === Number.NEGATIVE_INFINITY ? "_-Infinity_" : value === Number.POSITIVE_INFINITY ? "_Infinity_" : Number.isNaN(value) ? "_NaN_" : value; 31064 if (typeof value == "bigint") 31065 return `_bigint_${value.toString()}`; 31066 if (typeof value == "string") 31067 return dateFormat.test(value) ? options.allowDate ? `_date_${value}` : void 0 : value; 31068 if ((0, import_is_regex.default)(value)) 31069 return options.allowRegExp ? `_regexp_${value.flags}|${value.source}` : void 0; 31070 if ((0, import_is_function.default)(value)) 31071 return; 31072 if ((0, import_is_symbol.default)(value)) { 31073 if (!options.allowSymbol) 31074 return; 31075 let globalRegistryKey = Symbol.keyFor(value); 31076 return globalRegistryKey !== void 0 ? `_gsymbol_${globalRegistryKey}` : `_symbol_${value.toString().slice(7, -1)}`; 31077 } 31078 if (stack.length >= options.maxDepth) 31079 return Array.isArray(value) ? `[Array(${value.length})]` : "[Object]"; 31080 if (value === this) 31081 return `_duplicate_${JSON.stringify(keys3)}`; 31082 if (value instanceof Error && options.allowError) 31083 return { 31084 __isConvertedError__: !0, 31085 errorProperties: { 31086 // @ts-expect-error cause is not defined in the current tsconfig target(es2020) 31087 ...value.cause ? { cause: value.cause } : {}, 31088 ...value, 31089 name: value.name, 31090 message: value.message, 31091 stack: value.stack, 31092 "_constructor-name_": value.constructor.name 31093 } 31094 }; 31095 if (value?.constructor?.name && value.constructor.name !== "Object" && !Array.isArray(value)) { 31096 let found2 = objects.get(value); 31097 if (!found2) { 31098 let plainObject = { 31099 __isClassInstance__: !0, 31100 __className__: value.constructor.name, 31101 ...Object.getOwnPropertyNames(value).reduce( 31102 (acc, prop) => { 31103 try { 31104 acc[prop] = value[prop]; 31105 } catch { 31106 } 31107 return acc; 31108 }, 31109 {} 31110 ) 31111 }; 31112 return keys3.push(key), stack.unshift(plainObject), objects.set(value, JSON.stringify(keys3)), value !== plainObject && map2.set(value, plainObject), plainObject; 31113 } 31114 return `_duplicate_${found2}`; 31115 } 31116 let found = objects.get(value); 31117 if (!found) { 31118 let converted = Array.isArray(value) ? value : convertUnconventionalData(value); 31119 return keys3.push(key), stack.unshift(converted), objects.set(value, JSON.stringify(keys3)), value !== converted && map2.set(value, converted), converted; 31120 } 31121 return `_duplicate_${found}`; 31122 } catch { 31123 return; 31124 } 31125 }; 31126}, reviver = function(options) { 31127 let refs = [], root2; 31128 return function(key, value) { 31129 if (key === "" && (root2 = value, refs.forEach(({ target, container, replacement }) => { 31130 let replacementArr = isJSON(replacement) ? JSON.parse(replacement) : replacement.split("."); 31131 replacementArr.length === 0 ? container[target] = root2 : container[target] = get_default(root2, replacementArr); 31132 })), key === "_constructor-name_") 31133 return value; 31134 if (isObject3(value) && value.__isConvertedError__) { 31135 let { message, ...properties } = value.errorProperties, error = new Error(message); 31136 return Object.assign(error, properties), error; 31137 } 31138 if (typeof value == "string" && value.startsWith("_regexp_") && options.allowRegExp) { 31139 let [, flags, source] = value.match(/_regexp_([^|]*)\|(.*)/) || []; 31140 return new RegExp(source, flags); 31141 } 31142 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; 31143 }; 31144}, defaultOptions = { 31145 maxDepth: 10, 31146 space: void 0, 31147 allowRegExp: !0, 31148 allowDate: !0, 31149 allowError: !0, 31150 allowUndefined: !0, 31151 allowSymbol: !0 31152}, stringify = (data, options = {}) => { 31153 let mergedOptions = { ...defaultOptions, ...options }; 31154 return JSON.stringify(convertUnconventionalData(data), replacer(mergedOptions), options.space); 31155}, mutator = () => { 31156 let mutated = /* @__PURE__ */ new Map(); 31157 return function mutateUndefined(value) { 31158 isObject3(value) && Object.entries(value).forEach(([k, v]) => { 31159 v === "_undefined_" ? value[k] = void 0 : mutated.get(v) || (mutated.set(v, !0), mutateUndefined(v)); 31160 }), Array.isArray(value) && value.forEach((v, index4) => { 31161 v === "_undefined_" ? (mutated.set(v, !0), value[index4] = void 0) : mutated.get(v) || (mutated.set(v, !0), mutateUndefined(v)); 31162 }); 31163 }; 31164}, parse = (data, options = {}) => { 31165 let mergedOptions = { ...defaultOptions, ...options }, result = JSON.parse(data, reviver(mergedOptions)); 31166 return mutator()(result), result; 31167}; 31168
vendor: 406 bytes, lines 31169-31179
31169// ../../node_modules/tiny-invariant/dist/esm/tiny-invariant.js 31170var isProduction = !0, prefix = "Invariant failed"; 31171function invariant(condition, message) { 31172 if (!condition) { 31173 if (isProduction) 31174 throw new Error(prefix); 31175 var provided = typeof message == "function" ? message() : message, value = provided ? "".concat(prefix, ": ").concat(provided) : prefix; 31176 throw new Error(value); 31177 } 31178} 31179
vendor: 1,429 bytes, lines 31180-31219
31180// src/channels/postmessage/getEventSourceUrl.ts 31181init_client_logger(); 31182var pickFrameByRefId = (candidates, refId) => { 31183 if (candidates.length === 1) 31184 return candidates[0]; 31185 if (!(candidates.length === 0 || !refId)) 31186 return candidates.find( 31187 (el) => (el.getAttribute("src") ?? "").includes(`refId=${encodeURIComponent(refId)}`) 31188 ); 31189}, getEventSourceUrl = (event, refId) => { 31190 let candidates = Array.from( 31191 document.querySelectorAll("iframe[data-is-storybook]") 31192 ).filter((element) => { 31193 try { 31194 return element.contentWindow?.location.origin === event.source.location.origin && element.contentWindow?.location.pathname === event.source.location.pathname; 31195 } catch { 31196 } 31197 try { 31198 return element.contentWindow === event.source; 31199 } catch { 31200 } 31201 let src2 = element.getAttribute("src"), origin; 31202 try { 31203 if (!src2) 31204 return !1; 31205 ({ origin } = new URL(src2, document.location.toString())); 31206 } catch { 31207 return !1; 31208 } 31209 return origin === event.origin; 31210 }), src = pickFrameByRefId(candidates, refId)?.getAttribute("src"); 31211 if (src) { 31212 let { protocol, host, pathname } = new URL(src, document.location.toString()); 31213 return `${protocol}//${host}${pathname}`; 31214 } 31215 return candidates.length > 1 && logger.error("found multiple candidates for event source"), null; 31216}; 31217 31218// src/channels/postmessage/index.ts 31219var { document: document2, location: location2 } =
vendor: 4,564 bytes, lines 31219-31333
31219scope, KEY = "storybook-channel", defaultEventOptions = { maxDepth: 25 }, PostMessageTransport = class { 31220 constructor(config4) { 31221 this.config = config4; 31222 this.connected = !1; 31223 if (this.buffer = [], typeof scope?.addEventListener == "function" && scope.addEventListener("message", this.handleEvent.bind(this), !1), config4.page !== "manager" && config4.page !== "preview") 31224 throw new Error(`postmsg-channel: "config.page" cannot be "${config4.page}"`); 31225 } 31226 setHandler(handler) { 31227 this.handler = (...args) => { 31228 handler.apply(this, args), !this.connected && this.getLocalFrame().length && (this.flush(), this.connected = !0); 31229 }; 31230 } 31231 /** 31232 * Sends `event` to the associated window. If the window does not yet exist the event will be 31233 * stored in a buffer and sent when the window exists. 31234 * 31235 * @param event 31236 */ 31237 send(event, options) { 31238 let { 31239 target, 31240 // telejson options 31241 allowRegExp, 31242 allowSymbol, 31243 allowDate, 31244 allowError, 31245 allowUndefined, 31246 maxDepth, 31247 space 31248 } = options || {}, eventOptions = Object.fromEntries( 31249 Object.entries({ 31250 allowRegExp, 31251 allowSymbol, 31252 allowDate, 31253 allowError, 31254 allowUndefined, 31255 maxDepth, 31256 space 31257 }).filter(([k, v]) => typeof v < "u") 31258 ), stringifyOptions = { 31259 ...defaultEventOptions, 31260 ...scope.CHANNEL_OPTIONS || {}, 31261 ...eventOptions 31262 }, frames = this.getFrames(target), query = new URLSearchParams(location2?.search || ""), data = stringify( 31263 { 31264 key: KEY, 31265 event, 31266 refId: query.get("refId") 31267 }, 31268 stringifyOptions 31269 ); 31270 return frames.length ? (this.buffer.length && this.flush(), frames.forEach((f4) => { 31271 try { 31272 f4.postMessage(data, "*"); 31273 } catch { 31274 logger.error("sending over postmessage fail"); 31275 } 31276 }), Promise.resolve(null)) : new Promise((resolve, reject) => { 31277 this.buffer.push({ event, resolve, reject }); 31278 }); 31279 } 31280 flush() { 31281 let { buffer } = this; 31282 this.buffer = [], buffer.forEach((item) => { 31283 this.send(item.event).then(item.resolve).catch(item.reject); 31284 }); 31285 } 31286 getFrames(target) { 31287 if (this.config.page === "manager") { 31288 let list = Array.from( 31289 document2.querySelectorAll("iframe[data-is-storybook][data-is-loaded]") 31290 ).flatMap((e) => { 31291 try { 31292 return e.contentWindow && e.dataset.isStorybook !== void 0 && e.id === target ? [e.contentWindow] : []; 31293 } catch { 31294 return []; 31295 } 31296 }); 31297 return list?.length ? list : this.getCurrentFrames(); 31298 } 31299 return scope && scope.parent && scope.parent !== scope.self ? [scope.parent] : []; 31300 } 31301 getCurrentFrames() { 31302 return this.config.page === "manager" ? Array.from( 31303 document2.querySelectorAll('[data-is-storybook="true"]') 31304 ).flatMap((e) => e.contentWindow ? [e.contentWindow] : []) : scope && scope.parent ? [scope.parent] : []; 31305 } 31306 getLocalFrame() { 31307 return this.config.page === "manager" ? Array.from( 31308 document2.querySelectorAll("#storybook-preview-iframe") 31309 ).flatMap((e) => e.contentWindow ? [e.contentWindow] : []) : scope && scope.parent ? [scope.parent] : []; 31310 } 31311 handleEvent(rawEvent) { 31312 try { 31313 let { data } = rawEvent, { key, event, refId } = typeof data == "string" && isJSON(data) ? parse(data, scope.CHANNEL_OPTIONS || {}) : data; 31314 if (key === KEY) { 31315 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>`; 31316 if (refId && (event.refId = refId), event.source = this.config.page === "preview" ? rawEvent.origin : getEventSourceUrl(rawEvent, refId), !event.source) { 31317 pretty.error( 31318 `${pageString} received ${eventString} but was unable to determine the source of the event` 31319 ); 31320 return; 31321 } 31322 let message = `${pageString} received ${eventString} (${data.length})`; 31323 pretty.debug( 31324 location2.origin !== event.source ? message : `${message} <span style="color: gray">(on ${location2.origin} from ${event.source})</span>`, 31325 ...event.args 31326 ), invariant(this.handler, "ChannelHandler should be set"), this.handler(event); 31327 } 31328 } catch (error) { 31329 logger.error(error); 31330 } 31331 } 31332}; 31333
31334// src/channels/websocket/index.ts 31335init_dist(); 31336var { WebSocket } = scope, HEARTBEAT_INTERVAL = 15e3, HEARTBEAT_MAX_LATENCY = 5e3, WebsocketTransport = class { 31337 constructor({ url, onError, page }) { 31338 this.buffer = []; 31339 this.isReady = !1; 31340 this.isClosed = !1; 31341 this.pingTimeout = 0; 31342 this.socket = new WebSocket(url), this.socket.onopen = () => { 31343 this.isReady = !0, this.heartbeat(), this.flush(); 31344 }, this.socket.onmessage = ({ data }) => { 31345 let event = typeof data == "string" && isJSON(data) ? parse(data) : data; 31346 invariant(this.handler, "WebsocketTransport handler should be set"), this.handler(event), event.type === "ping" && (this.heartbeat(), this.send({ type: "pong" })); 31347 }, this.socket.onerror = (e) => { 31348 onError && onError(e); 31349 }, this.socket.onclose = (ev) => { 31350 invariant(this.handler, "WebsocketTransport handler should be set"), this.handler({ 31351 type: CHANNEL_WS_DISCONNECT, 31352 args: [{ reason: ev.reason, code: ev.code }], 31353 from: page || "preview" 31354 }), this.isClosed = !0, clearTimeout(this.pingTimeout); 31355 }; 31356 } 31357 heartbeat() { 31358 clearTimeout(this.pingTimeout), this.pingTimeout = setTimeout(() => { 31359 this.socket.close(3008, "timeout"); 31360 }, HEARTBEAT_INTERVAL + HEARTBEAT_MAX_LATENCY); 31361 } 31362 setHandler(handler) { 31363 this.handler = handler; 31364 } 31365 send(event) { 31366 this.isClosed || (this.isReady ? this.sendNow(event) : this.sendLater(event)); 31367 } 31368 sendLater(event) { 31369 this.buffer.push(event); 31370 } 31371 sendNow(event) { 31372 let data = stringify(event, { 31373 maxDepth: 15, 31374 ...scope.CHANNEL_OPTIONS 31375 }); 31376 this.socket.send(data); 31377 } 31378 flush() { 31379 let { buffer } = this; 31380 this.buffer = [], buffer.forEach((event) => this.send(event)); 31381 } 31382}; 31383
31384// src/channels/index.ts 31385var { CHANNEL_OPTIONS, CONFIG_TYPE } = scope, channels_default = Channel; 31386function createBrowserChannel({ page, extraTransports = [] }) { 31387 let transports = [new PostMessageTransport({ page }), ...extraTransports]; 31388 if (CONFIG_TYPE === "DEVELOPMENT") { 31389 let protocol = window.location.protocol === "http:" ? "ws" : "wss", { hostname, port } = window.location, { wsToken } = CHANNEL_OPTIONS || {}, channelUrl = `${protocol}://${hostname}:${port}/storybook-server-channel?token=${wsToken}`; 31390 transports.push(new WebsocketTransport({ url: channelUrl, onError: () => { 31391 }, page })); 31392 } 31393 let channel = new Channel({ transports }); 31394 return UniversalStore.__prepare( 31395 channel, 31396 page === "manager" ? UniversalStore.Environment.MANAGER : UniversalStore.Environment.PREVIEW 31397 ), channel; 31398} 31399
31400// src/manager/globals/runtime.ts 31401init_client_logger(); 31402
31403// src/components/index.ts 31404var components_exports = {}; 31405__export(components_exports, { 31406 A: () => A, 31407 AbstractToolbar: () => AbstractToolbar, 31408 ActionBar: () => ActionBar, 31409 ActionList: () => ActionList, 31410 AddonPanel: () => AddonPanel, 31411 Badge: () => Badge, 31412 Bar: () => Bar, 31413 Blockquote: () => Blockquote, 31414 Button: () => Button, 31415 Card: () => Card, 31416 ClipboardCode: () => ClipboardCode, 31417 Code: () => Code2, 31418 Collapsible: () => Collapsible, 31419 DL: () => DL, 31420 Div: () => Div, 31421 DocumentWrapper: () => DocumentWrapper, 31422 EmptyTabContent: () => EmptyTabContent, 31423 ErrorFormatter: () => ErrorFormatter, 31424 FlexBar: () => FlexBar, 31425 Form: () => Form2, 31426 H1: () => H1, 31427 H2: () => H2, 31428 H3: () => H3, 31429 H4: () => H4, 31430 H5: () => H5, 31431 H6: () => H6, 31432 HR: () => HR, 31433 IconButton: () => IconButton, 31434 Img: () => Img, 31435 LI: () => LI, 31436 Link: () => Link2, 31437 ListItem: () => ListItem_default, 31438 Loader: () => Loader, 31439 Modal: () => Modal, 31440 ModalDecorator: () => ModalDecorator, 31441 OL: () => OL, 31442 P: () => P, 31443 Placeholder: () => Placeholder, 31444 Popover: () => Popover, 31445 PopoverProvider: () => PopoverProvider, 31446 Pre: () => Pre2, 31447 ProgressSpinner: () => ProgressSpinner, 31448 ResetWrapper: () => ResetWrapper, 31449 ScrollArea: () => ScrollArea2, 31450 Select: () => Select2, 31451 Separator: () => Separator2, 31452 Spaced: () => Spaced, 31453 Span: () => Span, 31454 StatelessTab: () => StatelessTab, 31455 StatelessTabList: () => StatelessTabList, 31456 StatelessTabPanel: () => StatelessTabPanel, 31457 StatelessTabsView: () => StatelessTabsView, 31458 StorybookIcon: () => StorybookIcon3, 31459 StorybookLogo: () => StorybookLogo, 31460 SyntaxHighlighter: () => SyntaxHighlighter3, 31461 TT: () => TT, 31462 TabBar: () => TabBar, 31463 TabButton: () => TabButton, 31464 TabList: () => TabList, 31465 TabPanel: () => TabPanel, 31466 TabWrapper: () => TabWrapper, 31467 Table: () => Table, 31468 Tabs: () => Tabs, 31469 TabsState: () => TabsState, 31470 TabsView: () => TabsView, 31471 ToggleButton: () => ToggleButton, 31472 Toolbar: () => Toolbar, 31473 Tooltip: () => Tooltip2, 31474 TooltipLinkList: () => TooltipLinkList, 31475 TooltipMessage: () => TooltipMessage, 31476 TooltipNote: () => TooltipNote, 31477 TooltipProvider: () => TooltipProvider, 31478 UL: () => UL, 31479 WithTooltip: () => WithTooltip, 31480 WithTooltipPure: () => WithTooltipPure2, 31481 Zoom: () => Zoom, 31482 codeCommon: () => codeCommon, 31483 components: () => components2, 31484 convertToReactAriaPlacement: () => convertToReactAriaPlacement, 31485 createCopyToClipboardFunction: () => createCopyToClipboardFunction, 31486 getStoryHref: () => getStoryHref, 31487 interleaveSeparators: () => interleaveSeparators, 31488 nameSpaceClassNames: () => nameSpaceClassNames, 31489 resetComponents: () => resetComponents, 31490 useTabsState: () => useTabsState, 31491 withReset: () => withReset 31492}); 31493var import_react190 = __toESM(require_react(), 1); 31494
31495// src/components/components/typography/components.tsx 31496var import_react15 = __toESM(require_react(), 1)
vendor: 290 bytes, lines 31496-31503
31496; 31497 31498// src/components/components/typography/DocumentFormatting.tsx 31499var nameSpaceClassNames = ({ ...props }, key) => { 31500 let classes = [props.class, props.className]; 31501 return delete props.class, props.className = ["sbdocs", `sbdocs-${key}`, ...classes].filter(Boolean).join(" "), props; 31502}; 31503
vendor: 1,205 bytes, lines 31504-31545
31504// src/components/components/typography/ResetWrapper.tsx 31505init_theming(); 31506 31507// src/components/components/typography/lib/common.tsx 31508var headerCommon = ({ theme: theme3 }) => ({ 31509 margin: "20px 0 8px", 31510 padding: 0, 31511 cursor: "text", 31512 position: "relative", 31513 color: theme3.color.defaultText, 31514 "&:first-of-type": { 31515 marginTop: 0, 31516 paddingTop: 0 31517 }, 31518 "&:hover a.anchor": { 31519 textDecoration: "none" 31520 }, 31521 "& tt, & code": { 31522 fontSize: "inherit" 31523 } 31524}), codeCommon = ({ theme: theme3 }) => ({ 31525 lineHeight: 1, 31526 margin: "0 2px", 31527 padding: "3px 5px", 31528 whiteSpace: "nowrap", 31529 borderRadius: 3, 31530 fontSize: theme3.typography.size.s2 - 1, 31531 border: theme3.base === "light" ? "1px solid hsl(0 0 0 / 0.05)" : "1px solid hsl(0 0 100 / 0.05)", 31532 color: theme3.color.defaultText, 31533 backgroundColor: theme3.base === "light" ? "hsl(0 0 0 / 0.01)" : "hsl(0 0 100 / 0.02)" 31534}), withReset = ({ theme: theme3 }) => ({ 31535 fontFamily: theme3.typography.fonts.base, 31536 fontSize: theme3.typography.size.s3, 31537 margin: 0, 31538 WebkitFontSmoothing: "antialiased", 31539 MozOsxFontSmoothing: "grayscale", 31540 WebkitTapHighlightColor: "rgba(0, 0, 0, 0)", 31541 WebkitOverflowScrolling: "touch" 31542}), withMargin = { 31543 margin: "16px 0" 31544}; 31545
vendor: 100 bytes, lines 31546-31548
31546// src/components/components/typography/ResetWrapper.tsx 31547var ResetWrapper = styled.div(withReset); 31548
vendor: 1,642 bytes, lines 31549-31607
31549// src/components/components/typography/elements/A.tsx 31550init_theming(); 31551 31552// src/components/components/typography/elements/Link.tsx 31553var import_react7 = __toESM(require_react(), 1), Link = ({ 31554 href: input2 = "", 31555 ...props 31556}) => { 31557 let href = /^\//.test(input2) ? `./?path=${input2}` : input2, target = /^#.*/.test(input2) ? "_self" : "_top"; 31558 return import_react7.default.createElement("a", { href, target, ...props }); 31559}; 31560 31561// src/components/components/typography/elements/A.tsx 31562var A = styled(Link)(({ theme: theme3 }) => ({ 31563 ...withReset({ theme: theme3 }), 31564 fontSize: "inherit", 31565 lineHeight: "24px", 31566 color: theme3.color.secondary, 31567 // Ensure WCAG Level A compliance (SC 1.4.1), see https://www.w3.org/WAI/WCAG22/Techniques/failures/F73 31568 textDecoration: "underline", 31569 textDecorationThickness: "0.03125rem", 31570 textUnderlineOffset: "0.11em", 31571 "&.absent": { 31572 color: "#cc0000" 31573 }, 31574 "&.anchor": { 31575 display: "block", 31576 paddingLeft: 30, 31577 marginLeft: -30, 31578 cursor: "pointer", 31579 position: "absolute", 31580 top: 0, 31581 left: 0, 31582 bottom: 0, 31583 textDecoration: "none" 31584 }, 31585 "&.anchor:hover, &.anchor:focus": { 31586 textDecoration: "underline" 31587 } 31588})); 31589 31590// src/components/components/typography/elements/Blockquote.tsx 31591init_theming(); 31592var Blockquote = styled.blockquote(({ theme: theme3 }) => ({ 31593 ...withReset({ theme: theme3 }), 31594 ...withMargin, 31595 borderLeft: `4px solid ${theme3.color.medium}`, 31596 padding: "0 15px", 31597 color: theme3.color.dark, 31598 "& > :first-of-type": { 31599 marginTop: 0 31600 }, 31601 "& > :last-child": { 31602 marginBottom: 0 31603 } 31604})); 31605 31606// src/components/components/typography/elements/Code.tsx 31607var import_react1
316074 = __toESM(require_react(), 1); 31608init_theming(); 31609
vendor: 1,664 bytes, lines 31610-31629
31610// src/components/components/syntaxhighlighter/lazy-syntaxhighlighter.tsx 31611var import_react13 = __toESM(require_react(), 1), languages = [], Comp = null, LazySyntaxHighlighter = (0, import_react13.lazy)(async () => { 31612 let { SyntaxHighlighter: SyntaxHighlighter4 } = await Promise.resolve().then(() => (init_syntaxhighlighter(), syntaxhighlighter_exports)); 31613 return languages.length > 0 && (languages.forEach((args) => { 31614 SyntaxHighlighter4.registerLanguage(...args); 31615 }), languages = []), Comp === null && (Comp = SyntaxHighlighter4), { 31616 default: (props) => import_react13.default.createElement(SyntaxHighlighter4, { ...props }) 31617 }; 31618}), LazySyntaxHighlighterWithFormatter = (0, import_react13.lazy)(async () => { 31619 let [{ SyntaxHighlighter: SyntaxHighlighter4 }, { formatter: formatter2 }] = await Promise.all([ 31620 Promise.resolve().then(() => (init_syntaxhighlighter(), syntaxhighlighter_exports)), 31621 Promise.resolve().then(() => (init_formatter(), formatter_exports)) 31622 ]); 31623 return languages.length > 0 && (languages.forEach((args) => { 31624 SyntaxHighlighter4.registerLanguage(...args); 31625 }), languages = []), Comp === null && (Comp = SyntaxHighlighter4), { 31626 default: (props) => import_react13.default.createElement(SyntaxHighlighter4, { ...props, formatter: formatter2 }) 31627 }; 31628}), SyntaxHighlighter3 = (props) => import_react13.default.createElement(import_react13.Suspense, { fallback: import_react13.default.createElement("div", null) }, props.format !== !1 ? import_react13.default.createElement(LazySyntaxHighlighterWithFormatter, { ...props }) : import_react13.default.createElement(LazySyntaxHighlighter, { ...props })); 31629SyntaxHighlighter3
vendor: 386 bytes, lines 31629-31641
31629.registerLanguage = (...args) => { 31630 if (Comp !== null) { 31631 Comp.registerLanguage(...args); 31632 return; 31633 } 31634 languages.push(args); 31635}; 31636 31637// src/components/components/typography/lib/isReactChildString.tsx 31638var isReactChildString = (child) => typeof child == "string"; 31639 31640// src/components/components/typography/elements/Code.tsx 31641var isInlineCodeRegex = /[\n\r]/g, DefaultCodeBlock = styled
vendor: 1,303 bytes, lines 31641-31680
31641.code(({ theme: theme3 }) => ({ 31642 // from reset 31643 fontFamily: theme3.typography.fonts.mono, 31644 WebkitFontSmoothing: "antialiased", 31645 MozOsxFontSmoothing: "grayscale", 31646 display: "inline-block", 31647 paddingLeft: 2, 31648 paddingRight: 2, 31649 verticalAlign: "baseline", 31650 color: "inherit", 31651 ...codeCommon({ theme: theme3 }) 31652})), StyledSyntaxHighlighter = styled(SyntaxHighlighter3)(({ theme: theme3 }) => ({ 31653 // DocBlocks-specific styling and overrides 31654 fontFamily: theme3.typography.fonts.mono, 31655 fontSize: `${theme3.typography.size.s2 - 1}px`, 31656 lineHeight: "19px", 31657 margin: "25px 0 40px", 31658 borderRadius: theme3.appBorderRadius, 31659 boxShadow: theme3.base === "light" ? "rgba(0, 0, 0, 0.10) 0 1px 3px 0" : "rgba(0, 0, 0, 0.20) 0 2px 5px 0", 31660 "pre.prismjs": { 31661 padding: 20, 31662 background: "inherit" 31663 } 31664})), Code2 = ({ 31665 className, 31666 children, 31667 ...props 31668}) => { 31669 let language = (className || "").match(/lang-(\S+)/), childrenArray = import_react14.Children.toArray(children); 31670 return childrenArray.filter(isReactChildString).some((child) => child.match(isInlineCodeRegex)) ? import_react14.default.createElement( 31671 StyledSyntaxHighlighter, 31672 { 31673 bordered: !0, 31674 copyable: !0, 31675 language: language?.[1] ?? "text", 31676 format: !1, 31677 ...props 31678 }, 31679 children 31680 ) : import_react14
vendor: 7,886 bytes, lines 31680-32017
31680.default.createElement(DefaultCodeBlock, { ...props, className }, childrenArray); 31681}; 31682 31683// src/components/components/typography/elements/DL.tsx 31684init_theming(); 31685var DL = styled.dl(({ theme: theme3 }) => ({ 31686 ...withReset({ theme: theme3 }), 31687 ...withMargin, 31688 padding: 0, 31689 "& dt": { 31690 fontSize: "14px", 31691 fontWeight: "bold", 31692 fontStyle: "italic", 31693 padding: 0, 31694 margin: "16px 0 4px" 31695 }, 31696 "& dt:first-of-type": { 31697 padding: 0 31698 }, 31699 "& dt > :first-of-type": { 31700 marginTop: 0 31701 }, 31702 "& dt > :last-child": { 31703 marginBottom: 0 31704 }, 31705 "& dd": { 31706 margin: "0 0 16px", 31707 padding: "0 15px" 31708 }, 31709 "& dd > :first-of-type": { 31710 marginTop: 0 31711 }, 31712 "& dd > :last-child": { 31713 marginBottom: 0 31714 } 31715})); 31716 31717// src/components/components/typography/elements/Div.tsx 31718init_theming(); 31719var Div = styled.div(withReset); 31720 31721// src/components/components/typography/elements/H1.tsx 31722init_theming(); 31723var H1 = styled.h1(({ theme: theme3 }) => ({ 31724 ...withReset({ theme: theme3 }), 31725 ...headerCommon({ theme: theme3 }), 31726 fontSize: `${theme3.typography.size.l1}px`, 31727 fontWeight: theme3.typography.weight.bold 31728})); 31729 31730// src/components/components/typography/elements/H2.tsx 31731init_theming(); 31732var H2 = styled.h2(({ theme: theme3 }) => ({ 31733 ...withReset({ theme: theme3 }), 31734 ...headerCommon({ theme: theme3 }), 31735 fontSize: `${theme3.typography.size.m2}px`, 31736 paddingBottom: 4, 31737 borderBottom: `1px solid ${theme3.appBorderColor}` 31738})); 31739 31740// src/components/components/typography/elements/H3.tsx 31741init_theming(); 31742var H3 = styled.h3(({ theme: theme3 }) => ({ 31743 ...withReset({ theme: theme3 }), 31744 ...headerCommon({ theme: theme3 }), 31745 fontSize: `${theme3.typography.size.m1}px` 31746})); 31747 31748// src/components/components/typography/elements/H4.tsx 31749init_theming(); 31750var H4 = styled.h4(({ theme: theme3 }) => ({ 31751 ...withReset({ theme: theme3 }), 31752 ...headerCommon({ theme: theme3 }), 31753 fontSize: `${theme3.typography.size.s3}px` 31754})); 31755 31756// src/components/components/typography/elements/H5.tsx 31757init_theming(); 31758var H5 = styled.h5(({ theme: theme3 }) => ({ 31759 ...withReset({ theme: theme3 }), 31760 ...headerCommon({ theme: theme3 }), 31761 fontSize: `${theme3.typography.size.s2}px` 31762})); 31763 31764// src/components/components/typography/elements/H6.tsx 31765init_theming(); 31766var H6 = styled.h6(({ theme: theme3 }) => ({ 31767 ...withReset({ theme: theme3 }), 31768 ...headerCommon({ theme: theme3 }), 31769 fontSize: `${theme3.typography.size.s2}px`, 31770 color: theme3.color.dark 31771})); 31772 31773// src/components/components/typography/elements/HR.tsx 31774init_theming(); 31775var HR = styled.hr(({ theme: theme3 }) => ({ 31776 border: "0 none", 31777 borderTop: `1px solid ${theme3.appBorderColor}`, 31778 height: 4, 31779 padding: 0 31780})); 31781 31782// src/components/components/typography/elements/Img.tsx 31783init_theming(); 31784var Img = styled.img({ 31785 maxWidth: "100%" 31786}); 31787 31788// src/components/components/typography/elements/LI.tsx 31789init_theming(); 31790var LI = styled.li(({ theme: theme3 }) => ({ 31791 ...withReset({ theme: theme3 }), 31792 fontSize: theme3.typography.size.s2, 31793 color: theme3.color.defaultText, 31794 lineHeight: "24px", 31795 "& + li": { 31796 marginTop: ".25em" 31797 }, 31798 "& ul, & ol": { 31799 marginTop: ".25em", 31800 marginBottom: 0 31801 }, 31802 "& code": codeCommon({ theme: theme3 }) 31803})); 31804 31805// src/components/components/typography/elements/OL.tsx 31806init_theming(); 31807var listCommon = { 31808 paddingLeft: 30, 31809 "& :first-of-type": { 31810 marginTop: 0 31811 }, 31812 "& :last-child": { 31813 marginBottom: 0 31814 } 31815}, OL = styled.ol(({ theme: theme3 }) => ({ 31816 ...withReset({ theme: theme3 }), 31817 ...withMargin, 31818 ...listCommon, 31819 listStyle: "decimal" 31820})); 31821 31822// src/components/components/typography/elements/P.tsx 31823init_theming(); 31824var P = styled.p(({ theme: theme3 }) => ({ 31825 ...withReset({ theme: theme3 }), 31826 ...withMargin, 31827 fontSize: theme3.typography.size.s2, 31828 lineHeight: "24px", 31829 color: theme3.color.defaultText, 31830 "& code": codeCommon({ theme: theme3 }) 31831})); 31832 31833// src/components/components/typography/elements/Pre.tsx 31834init_theming(); 31835var Pre2 = styled.pre(({ theme: theme3 }) => ({ 31836 ...withReset({ theme: theme3 }), 31837 ...withMargin, 31838 // reset 31839 fontFamily: theme3.typography.fonts.mono, 31840 WebkitFontSmoothing: "antialiased", 31841 MozOsxFontSmoothing: "grayscale", 31842 lineHeight: "18px", 31843 padding: "11px 1rem", 31844 whiteSpace: "pre-wrap", 31845 color: "inherit", 31846 borderRadius: 3, 31847 margin: "1rem 0", 31848 "&:not(.prismjs)": { 31849 background: "transparent", 31850 border: "none", 31851 borderRadius: 0, 31852 padding: 0, 31853 margin: 0 31854 }, 31855 "& pre, &.prismjs": { 31856 padding: 15, 31857 margin: 0, 31858 whiteSpace: "pre-wrap", 31859 color: "inherit", 31860 fontSize: "13px", 31861 lineHeight: "19px", 31862 code: { 31863 color: "inherit", 31864 fontSize: "inherit" 31865 } 31866 }, 31867 "& code": { 31868 whiteSpace: "pre" 31869 }, 31870 "& code, & tt": { 31871 border: "none" 31872 } 31873})); 31874 31875// src/components/components/typography/elements/Span.tsx 31876init_theming(); 31877var Span = styled.span(({ theme: theme3 }) => ({ 31878 ...withReset({ theme: theme3 }), 31879 "&.frame": { 31880 display: "block", 31881 overflow: "hidden", 31882 "& > span": { 31883 border: `1px solid ${theme3.color.medium}`, 31884 display: "block", 31885 float: "left", 31886 overflow: "hidden", 31887 margin: "13px 0 0", 31888 padding: 7, 31889 width: "auto" 31890 }, 31891 "& span img": { 31892 display: "block", 31893 float: "left" 31894 }, 31895 "& span span": { 31896 clear: "both", 31897 color: theme3.color.darkest, 31898 display: "block", 31899 padding: "5px 0 0" 31900 } 31901 }, 31902 "&.align-center": { 31903 display: "block", 31904 overflow: "hidden", 31905 clear: "both", 31906 "& > span": { 31907 display: "block", 31908 overflow: "hidden", 31909 margin: "13px auto 0", 31910 textAlign: "center" 31911 }, 31912 "& span img": { 31913 margin: "0 auto", 31914 textAlign: "center" 31915 } 31916 }, 31917 "&.align-right": { 31918 display: "block", 31919 overflow: "hidden", 31920 clear: "both", 31921 "& > span": { 31922 display: "block", 31923 overflow: "hidden", 31924 margin: "13px 0 0", 31925 textAlign: "right" 31926 }, 31927 "& span img": { 31928 margin: 0, 31929 textAlign: "right" 31930 } 31931 }, 31932 "&.float-left": { 31933 display: "block", 31934 marginRight: 13, 31935 overflow: "hidden", 31936 float: "left", 31937 "& span": { 31938 margin: "13px 0 0" 31939 } 31940 }, 31941 "&.float-right": { 31942 display: "block", 31943 marginLeft: 13, 31944 overflow: "hidden", 31945 float: "right", 31946 "& > span": { 31947 display: "block", 31948 overflow: "hidden", 31949 margin: "13px auto 0", 31950 textAlign: "right" 31951 } 31952 } 31953})); 31954 31955// src/components/components/typography/elements/TT.tsx 31956init_theming(); 31957var TT = styled.title(codeCommon); 31958 31959// src/components/components/typography/elements/Table.tsx 31960init_theming(); 31961var Table = styled.table(({ theme: theme3 }) => ({ 31962 ...withReset({ theme: theme3 }), 31963 ...withMargin, 31964 fontSize: theme3.typography.size.s2, 31965 lineHeight: "24px", 31966 padding: 0, 31967 borderCollapse: "collapse", 31968 "& tr": { 31969 borderTop: `1px solid ${theme3.appBorderColor}`, 31970 backgroundColor: theme3.appContentBg, 31971 margin: 0, 31972 padding: 0 31973 }, 31974 "& tr:nth-of-type(2n)": { 31975 backgroundColor: theme3.base === "dark" ? theme3.color.darker : theme3.color.lighter 31976 }, 31977 "& tr th": { 31978 fontWeight: "bold", 31979 color: theme3.color.defaultText, 31980 border: `1px solid ${theme3.appBorderColor}`, 31981 margin: 0, 31982 padding: "6px 13px" 31983 }, 31984 "& tr td": { 31985 border: `1px solid ${theme3.appBorderColor}`, 31986 color: theme3.color.defaultText, 31987 margin: 0, 31988 padding: "6px 13px" 31989 }, 31990 "& tr th :first-of-type, & tr td :first-of-type": { 31991 marginTop: 0 31992 }, 31993 "& tr th :last-child, & tr td :last-child": { 31994 marginBottom: 0 31995 } 31996})); 31997 31998// src/components/components/typography/elements/UL.tsx 31999init_theming(); 32000var listCommon2 = { 32001 paddingLeft: 30, 32002 "& :first-of-type": { 32003 marginTop: 0 32004 }, 32005 "& :last-child": { 32006 marginBottom: 0 32007 } 32008}, UL = styled.ul(({ theme: theme3 }) => ({ 32009 ...withReset({ theme: theme3 }), 32010 ...withMargin, 32011 ...listCommon2, 32012 listStyle: "disc" 32013})); 32014 32015// src/components/components/typography/components.tsx 32016var components = { 32017 h1: (props) => import_react1
320175.default.createElement(H1, { ...nameSpaceClassNames(props, "h1") }), 32018 h2: (props) => import_react15.default.createElement(H2, { ...nameSpaceClassNames(props, "h2") }), 32019 h3: (props) => import_react15.default.createElement(H3, { ...nameSpaceClassNames(props, "h3") }), 32020 h4: (props) => import_react15.default.createElement(H4, { ...nameSpaceClassNames(props, "h4") }), 32021 h5: (props) => import_react15.default.createElement(H5, { ...nameSpaceClassNames(props, "h5") }), 32022 h6: (props) => import_react15.default.createElement(H6, { ...nameSpaceClassNames(props, "h6") }), 32023 pre: (props) => import_react15.default.createElement(Pre2, { ...nameSpaceClassNames(props, "pre") }), 32024 a: (props) => import_react15.default.createElement(A, { ...nameSpaceClassNames(props, "a") }), 32025 hr: (props) => import_react15.default.createElement(HR, { ...nameSpaceClassNames(props, "hr") }), 32026 dl: (props) => import_react15.default.createElement(DL, { ...nameSpaceClassNames(props, "dl") }), 32027 blockquote: (props) => import_react15.default.createElement(Blockquote, { ...nameSpaceClassNames(props, "blockquote") }), 32028 table: (props) => import_react15.default.createElement(Table, { ...nameSpaceClassNames(props, "table") }), 32029 img: (props) => import_react15.default.createElement(Img, { ...nameSpaceClassNames(props, "img") }), 32030 div: (props) => import_react15.default.createElement(Div, { ...nameSpaceClassNames(props, "div") }), 32031 span: (props) => import_react15.default.createElement(Span, { ...nameSpaceClassNames(props, "span") }), 32032 li: (props) => import_react15.default.createElement(LI, { ...nameSpaceClassNames(props, "li") }), 32033 ul: (props) => import_react15.default.createElement(UL, { ...nameSpaceClassNames(props, "ul") }), 32034 ol: (props) => import_react15.default.createElement(OL, { ...nameSpaceClassNames(props, "ol") }), 32035 p: (props) => import_react15.default.createElement(P, { ...nameSpaceClassNames(props, "p") }), 32036 code: (props) => import_react15.default.createElement(Code2, { ...nameSpaceClassNames(props, "code") }), 32037 tt: (props) => import_react15.default.createElement(TT, { ...nameSpaceClassNames(props, "tt") }), 32038 resetwrapper: (props) => import_react15.default.createElement(ResetWrapper, { ...nameSpaceClassNames(props, "resetwrapper") }) 32039}; 32040
vendor: 2,264 bytes, lines 32041-32111
32041// src/components/components/Badge/Badge.tsx 32042var import_react16 = __toESM(require_react(), 1); 32043init_polished_esm(); 32044init_theming(); 32045var BadgeWrapper = styled.div( 32046 ({ theme: theme3, compact: compact2 }) => ({ 32047 display: "inline-flex", 32048 alignItems: "center", 32049 justifyContent: "center", 32050 fontSize: theme3.typography.size.s1, 32051 fontWeight: theme3.typography.weight.bold, 32052 lineHeight: "12px", 32053 minWidth: 20, 32054 borderRadius: 20, 32055 padding: compact2 ? "4px 7px" : "4px 10px" 32056 }), 32057 { 32058 svg: { 32059 height: 12, 32060 width: 12, 32061 marginRight: 4, 32062 marginTop: -2, 32063 path: { 32064 fill: "currentColor" 32065 } 32066 } 32067 }, 32068 ({ theme: theme3, status }) => { 32069 switch (status) { 32070 case "critical": 32071 return { 32072 color: theme3.fgColor.critical, 32073 background: theme3.bgColor.critical, 32074 boxShadow: `inset 0 0 0 1px ${theme3.borderColor.critical}` 32075 }; 32076 case "negative": 32077 return { 32078 color: theme3.fgColor.negative, 32079 background: theme3.bgColor.negative, 32080 boxShadow: `inset 0 0 0 1px ${theme3.borderColor.negative}` 32081 }; 32082 case "warning": 32083 return { 32084 color: theme3.fgColor.warning, 32085 background: theme3.bgColor.warning, 32086 boxShadow: `inset 0 0 0 1px ${theme3.borderColor.warning}` 32087 }; 32088 case "neutral": 32089 return { 32090 color: theme3.fgColor.muted, 32091 background: theme3.base === "dark" ? theme3.barBg : theme3.background.app, 32092 boxShadow: `inset 0 0 0 1px ${curriedTransparentize$1(0.8, theme3.textMutedColor)}` 32093 }; 32094 case "positive": 32095 return { 32096 color: theme3.fgColor.positive, 32097 background: theme3.bgColor.positive, 32098 boxShadow: `inset 0 0 0 1px ${theme3.borderColor.positive}` 32099 }; 32100 case "active": 32101 return { 32102 color: theme3.base === "light" ? curriedDarken$1(0.1, theme3.color.secondary) : theme3.color.secondary, 32103 background: theme3.background.hoverable, 32104 boxShadow: `inset 0 0 0 1px ${curriedTransparentize$1(0.9, theme3.color.secondary)}` 32105 }; 32106 default: 32107 return {}; 32108 } 32109 } 32110), Badge = ({ ...props }) => import_react16.default.createElement(BadgeWrapper, { ...props }); 32111
32112// src/components/components/typography/link/link.tsx 32113var import_react17 = __toESM(require_react(), 1); 32114init_client_logger(); 32115
vendor: 218,689 bytes, lines 32116-38078
32116// ../../node_modules/@storybook/icons/dist/index.js 32117var dist_exports2 = {}; 32118__export(dist_exports2, { 32119 AccessibilityAltIcon: () => AccessibilityAltIcon, 32120 AccessibilityIcon: () => AccessibilityIcon, 32121 AccessibilityIgnoredIcon: () => AccessibilityIgnoredIcon, 32122 AddIcon: () => AddIcon, 32123 AdminIcon: () => AdminIcon, 32124 AlertAltIcon: () => AlertAltIcon, 32125 AlertIcon: () => AlertIcon, 32126 AlignLeftIcon: () => AlignLeftIcon, 32127 AlignRightIcon: () => AlignRightIcon, 32128 AppleIcon: () => AppleIcon, 32129 ArrowBottomLeftIcon: () => ArrowBottomLeftIcon, 32130 ArrowBottomRightIcon: () => ArrowBottomRightIcon, 32131 ArrowDownIcon: () => ArrowDownIcon, 32132 ArrowLeftIcon: () => ArrowLeftIcon, 32133 ArrowRightIcon: () => ArrowRightIcon, 32134 ArrowSolidDownIcon: () => ArrowSolidDownIcon, 32135 ArrowSolidLeftIcon: () => ArrowSolidLeftIcon, 32136 ArrowSolidRightIcon: () => ArrowSolidRightIcon, 32137 ArrowSolidUpIcon: () => ArrowSolidUpIcon, 32138 ArrowTopLeftIcon: () => ArrowTopLeftIcon, 32139 ArrowTopRightIcon: () => ArrowTopRightIcon, 32140 ArrowUpIcon: () => ArrowUpIcon, 32141 AzureDevOpsIcon: () => AzureDevOpsIcon, 32142 BackIcon: () => BackIcon, 32143 BasketIcon: () => BasketIcon, 32144 BatchAcceptIcon: () => BatchAcceptIcon, 32145 BatchDenyIcon: () => BatchDenyIcon, 32146 BeakerIcon: () => BeakerIcon, 32147 BellIcon: () => BellIcon, 32148 BitbucketIcon: () => BitbucketIcon, 32149 BoldIcon: () => BoldIcon, 32150 BookIcon: () => BookIcon, 32151 BookmarkHollowIcon: () => BookmarkHollowIcon, 32152 BookmarkIcon: () => BookmarkIcon, 32153 BottomBarIcon: () => BottomBarIcon, 32154 BottomBarToggleIcon: () => BottomBarToggleIcon, 32155 BoxIcon: () => BoxIcon, 32156 BranchIcon: () => BranchIcon, 32157 BrowserIcon: () => BrowserIcon, 32158 BugIcon: () => BugIcon, 32159 ButtonIcon: () => ButtonIcon, 32160 CPUIcon: () => CPUIcon, 32161 CalendarIcon: () => CalendarIcon, 32162 CameraIcon: () => CameraIcon, 32163 CameraStabilizeIcon: () => CameraStabilizeIcon, 32164 CategoryIcon: () => CategoryIcon, 32165 CertificateIcon: () => CertificateIcon, 32166 ChangedIcon: () => ChangedIcon, 32167 ChatIcon: () => ChatIcon, 32168 CheckIcon: () => CheckIcon, 32169 ChevronDownIcon: () => ChevronDownIcon, 32170 ChevronLeftIcon: () => ChevronLeftIcon, 32171 ChevronRightIcon: () => ChevronRightIcon, 32172 ChevronSmallDownIcon: () => ChevronSmallDownIcon, 32173 ChevronSmallLeftIcon: () => ChevronSmallLeftIcon, 32174 ChevronSmallRightIcon: () => ChevronSmallRightIcon, 32175 ChevronSmallUpIcon: () => ChevronSmallUpIcon, 32176 ChevronUpIcon: () => ChevronUpIcon, 32177 ChromaticIcon: () => ChromaticIcon, 32178 ChromeIcon: () => ChromeIcon, 32179 CircleHollowIcon: () => CircleHollowIcon, 32180 CircleIcon: () => CircleIcon, 32181 ClearIcon: () => ClearIcon, 32182 CloseAltIcon: () => CloseAltIcon, 32183 CloseIcon: () => CloseIcon, 32184 CloudHollowIcon: () => CloudHollowIcon, 32185 CloudIcon: () => CloudIcon, 32186 CogIcon: () => CogIcon, 32187 CollapseIcon: () => CollapseIcon, 32188 CommandIcon: () => CommandIcon, 32189 CommentAddIcon: () => CommentAddIcon, 32190 CommentIcon: () => CommentIcon, 32191 CommentsIcon: () => CommentsIcon, 32192 CommitIcon: () => CommitIcon, 32193 CompassIcon: () => CompassIcon, 32194 ComponentDrivenIcon: () => ComponentDrivenIcon, 32195 ComponentIcon: () => ComponentIcon, 32196 ContrastIcon: () => ContrastIcon, 32197 ContrastIgnoredIcon: () => ContrastIgnoredIcon, 32198 ControlsIcon: () => ControlsIcon, 32199 CopyIcon: () => CopyIcon, 32200 CreditIcon: () => CreditIcon, 32201 CrossIcon: () => CrossIcon, 32202 DashboardIcon: () => DashboardIcon, 32203 DatabaseIcon: () => DatabaseIcon, 32204 DeleteIcon: () => DeleteIcon, 32205 DiamondIcon: () => DiamondIcon, 32206 DirectionIcon: () => DirectionIcon, 32207 DiscordIcon: () => DiscordIcon, 32208 DocChartIcon: () => DocChartIcon, 32209 DocListIcon: () => DocListIcon, 32210 DocumentIcon: () => DocumentIcon, 32211 DownloadIcon: () => DownloadIcon, 32212 DragIcon: () => DragIcon, 32213 EditIcon: () => EditIcon, 32214 EditorIcon: () => EditorIcon, 32215 EllipsisIcon: () => EllipsisIcon, 32216 EmailIcon: () => EmailIcon, 32217 ExpandAltIcon: () => ExpandAltIcon, 32218 ExpandIcon: () => ExpandIcon, 32219 EyeCloseIcon: () => EyeCloseIcon, 32220 EyeIcon: () => EyeIcon, 32221 FaceHappyIcon: () => FaceHappyIcon, 32222 FaceNeutralIcon: () => FaceNeutralIcon, 32223 FaceSadIcon: () => FaceSadIcon, 32224 FacebookIcon: () => FacebookIcon, 32225 FailedIcon: () => FailedIcon, 32226 FastForwardIcon: () => FastForwardIcon, 32227 FigmaIcon: () => FigmaIcon, 32228 FilterIcon: () => FilterIcon, 32229 FlagIcon: () => FlagIcon, 32230 FolderIcon: () => FolderIcon, 32231 FormIcon: () => FormIcon, 32232 GDriveIcon: () => GDriveIcon, 32233 GiftIcon: () => GiftIcon, 32234 GithubIcon: () => GithubIcon, 32235 GitlabIcon: () => GitlabIcon, 32236 GlobeIcon: () => GlobeIcon, 32237 GoogleIcon: () => GoogleIcon, 32238 GraphBarIcon: () => GraphBarIcon, 32239 GraphLineIcon: () => GraphLineIcon, 32240 GraphqlIcon: () => GraphqlIcon, 32241 GridAltIcon: () => GridAltIcon, 32242 GridIcon: () => GridIcon, 32243 GrowIcon: () => GrowIcon, 32244 HeartHollowIcon: () => HeartHollowIcon, 32245 HeartIcon: () => HeartIcon, 32246 HomeIcon: () => HomeIcon, 32247 HourglassIcon: () => HourglassIcon, 32248 InfoIcon: () => InfoIcon, 32249 ItalicIcon: () => ItalicIcon, 32250 JumpToIcon: () => JumpToIcon, 32251 KeyIcon: () => KeyIcon, 32252 LightningIcon: () => LightningIcon, 32253 LightningOffIcon: () => LightningOffIcon, 32254 LinkBrokenIcon: () => LinkBrokenIcon, 32255 LinkIcon: () => LinkIcon, 32256 LinkedinIcon: () => LinkedinIcon, 32257 LinuxIcon: () => LinuxIcon, 32258 ListOrderedIcon: () => ListOrderedIcon, 32259 ListUnorderedIcon: () => ListUnorderedIcon, 32260 LocationIcon: () => LocationIcon, 32261 LockIcon: () => LockIcon, 32262 MarkdownIcon: () => MarkdownIcon, 32263 MarkupIcon: () => MarkupIcon, 32264 MediumIcon: () => MediumIcon, 32265 MemoryIcon: () => MemoryIcon, 32266 MenuIcon: () => MenuIcon, 32267 MergeIcon: () => MergeIcon, 32268 MirrorIcon: () => MirrorIcon, 32269 MobileIcon: () => MobileIcon, 32270 MoonIcon: () => MoonIcon, 32271 NutIcon: () => NutIcon, 32272 OutboxIcon: () => OutboxIcon, 32273 OutlineIcon: () => OutlineIcon, 32274 PaintBrushAltIcon: () => PaintBrushAltIcon, 32275 PaintBrushIcon: () => PaintBrushIcon, 32276 PaperClipIcon: () => PaperClipIcon, 32277 ParagraphIcon: () => ParagraphIcon, 32278 PassedIcon: () => PassedIcon, 32279 PhoneIcon: () => PhoneIcon, 32280 PhotoDragIcon: () => PhotoDragIcon, 32281 PhotoIcon: () => PhotoIcon, 32282 PhotoStabilizeIcon: () => PhotoStabilizeIcon, 32283 PinAltIcon: () => PinAltIcon, 32284 PinIcon: () => PinIcon, 32285 PlayAllHollowIcon: () => PlayAllHollowIcon, 32286 PlayBackIcon: () => PlayBackIcon, 32287 PlayHollowIcon: () => PlayHollowIcon, 32288 PlayIcon: () => PlayIcon, 32289 PlayNextIcon: () => PlayNextIcon, 32290 PlusIcon: () => PlusIcon, 32291 PointerDefaultIcon: () => PointerDefaultIcon, 32292 PointerHandIcon: () => PointerHandIcon, 32293 PowerIcon: () => PowerIcon, 32294 PrintIcon: () => PrintIcon, 32295 ProceedIcon: () => ProceedIcon, 32296 ProfileIcon: () => ProfileIcon, 32297 PullRequestIcon: () => PullRequestIcon, 32298 QuestionIcon: () => QuestionIcon, 32299 RSSIcon: () => RSSIcon, 32300 RedirectIcon: () => RedirectIcon, 32301 ReduxIcon: () => ReduxIcon, 32302 RefreshIcon: () => RefreshIcon, 32303 ReplyIcon: () => ReplyIcon, 32304 RepoIcon: () => RepoIcon, 32305 RequestChangeIcon: () => RequestChangeIcon, 32306 RewindIcon: () => RewindIcon, 32307 RulerIcon: () => RulerIcon, 32308 SaveIcon: () => SaveIcon, 32309 SearchIcon: () => SearchIcon, 32310 ShareAltIcon: () => ShareAltIcon, 32311 ShareIcon: () => ShareIcon, 32312 ShieldIcon: () => ShieldIcon, 32313 SideBySideIcon: () => SideBySideIcon, 32314 SidebarAltIcon: () => SidebarAltIcon, 32315 SidebarAltToggleIcon: () => SidebarAltToggleIcon, 32316 SidebarIcon: () => SidebarIcon, 32317 SidebarToggleIcon: () => SidebarToggleIcon, 32318 SortDownIcon: () => SortDownIcon, 32319 SortUpIcon: () => SortUpIcon, 32320 SpeakerIcon: () => SpeakerIcon, 32321 StackedIcon: () => StackedIcon, 32322 StarHollowIcon: () => StarHollowIcon, 32323 StarIcon: () => StarIcon, 32324 StatusFailIcon: () => StatusFailIcon, 32325 StatusIcon: () => StatusIcon, 32326 StatusPassIcon: () => StatusPassIcon, 32327 StatusWarnIcon: () => StatusWarnIcon, 32328 StickerIcon: () => StickerIcon, 32329 StopAltHollowIcon: () => StopAltHollowIcon, 32330 StopAltIcon: () => StopAltIcon, 32331 StopIcon: () => StopIcon, 32332 StorybookIcon: () => StorybookIcon, 32333 StructureIcon: () => StructureIcon, 32334 SubtractIcon: () => SubtractIcon, 32335 SunIcon: () => SunIcon, 32336 SupportIcon: () => SupportIcon, 32337 SweepIcon: () => SweepIcon, 32338 SwitchAltIcon: () => SwitchAltIcon, 32339 SyncIcon: () => SyncIcon, 32340 TabletIcon: () => TabletIcon, 32341 ThumbsUpIcon: () => ThumbsUpIcon, 32342 TimeIcon: () => TimeIcon, 32343 TimerIcon: () => TimerIcon, 32344 TransferIcon: () => TransferIcon, 32345 TrashIcon: () => TrashIcon, 32346 TwitterIcon: () => TwitterIcon, 32347 TypeIcon: () => TypeIcon, 32348 UbuntuIcon: () => UbuntuIcon, 32349 UndoIcon: () => UndoIcon, 32350 UnfoldIcon: () => UnfoldIcon, 32351 UnlockIcon: () => UnlockIcon, 32352 UnpinIcon: () => UnpinIcon, 32353 UploadIcon: () => UploadIcon, 32354 UserAddIcon: () => UserAddIcon, 32355 UserAltIcon: () => UserAltIcon, 32356 UserIcon: () => UserIcon, 32357 UsersIcon: () => UsersIcon, 32358 VSCodeIcon: () => VSCodeIcon, 32359 VerifiedIcon: () => VerifiedIcon, 32360 VideoIcon: () => VideoIcon, 32361 WandIcon: () => WandIcon, 32362 WatchIcon: () => WatchIcon, 32363 WindowsIcon: () => WindowsIcon, 32364 WrenchIcon: () => WrenchIcon, 32365 XIcon: () => XIcon, 32366 YoutubeIcon: () => YoutubeIcon, 32367 ZoomIcon: () => ZoomIcon, 32368 ZoomOutIcon: () => ZoomOutIcon, 32369 ZoomResetIcon: () => ZoomResetIcon, 32370 iconList: () => iconList 32371}); 32372var React251 = __toESM(require_react(), 1), iconList = [ 32373 { 32374 name: "Images", 32375 icons: [ 32376 "PhotoIcon", 32377 "ComponentIcon", 32378 "GridIcon", 32379 "OutlineIcon", 32380 "PhotoDragIcon", 32381 "PhotoStabilizeIcon", 32382 "CameraStabilizeIcon", 32383 "GridAltIcon", 32384 "SearchIcon", 32385 "ZoomIcon", 32386 "ZoomOutIcon", 32387 "ZoomResetIcon", 32388 "EyeIcon", 32389 "EyeCloseIcon", 32390 "LightningIcon", 32391 "LightningOffIcon", 32392 "MirrorIcon", 32393 "GrowIcon", 32394 "ContrastIcon", 32395 "SwitchAltIcon", 32396 "ContrastIgnoredIcon", 32397 "PaintBrushIcon", 32398 "PaintBrushAltIcon", 32399 "RulerIcon", 32400 "CameraIcon", 32401 "VideoIcon", 32402 "SpeakerIcon", 32403 "PlayIcon", 32404 "PlayBackIcon", 32405 "PlayNextIcon", 32406 "RewindIcon", 32407 "FastForwardIcon", 32408 "StopAltIcon", 32409 "SunIcon", 32410 "MoonIcon", 32411 "StopAltHollowIcon", 32412 "PlayHollowIcon", 32413 "PlayAllHollowIcon", 32414 "StopIcon", 32415 "SideBySideIcon", 32416 "StackedIcon" 32417 ] 32418 }, 32419 { 32420 name: "Documents", 32421 icons: [ 32422 "BookIcon", 32423 "DocumentIcon", 32424 "CopyIcon", 32425 "CategoryIcon", 32426 "FolderIcon", 32427 "PrintIcon", 32428 "GraphLineIcon", 32429 "CalendarIcon", 32430 "GraphBarIcon", 32431 "AlignLeftIcon", 32432 "AlignRightIcon", 32433 "FilterIcon", 32434 "DocChartIcon", 32435 "DocListIcon", 32436 "DragIcon", 32437 "MenuIcon" 32438 ] 32439 }, 32440 { 32441 name: "Editing", 32442 icons: [ 32443 "MarkupIcon", 32444 "BoldIcon", 32445 "ItalicIcon", 32446 "PaperClipIcon", 32447 "ListOrderedIcon", 32448 "ListUnorderedIcon", 32449 "ParagraphIcon", 32450 "MarkdownIcon" 32451 ] 32452 }, 32453 { 32454 name: "Git", 32455 icons: [ 32456 "RepoIcon", 32457 "CommitIcon", 32458 "BranchIcon", 32459 "PullRequestIcon", 32460 "MergeIcon" 32461 ] 32462 }, 32463 { 32464 name: "OS", 32465 icons: [ 32466 "AppleIcon", 32467 "LinuxIcon", 32468 "UbuntuIcon", 32469 "WindowsIcon", 32470 "ChromeIcon" 32471 ] 32472 }, 32473 { 32474 name: "Logos", 32475 icons: [ 32476 "StorybookIcon", 32477 "AzureDevOpsIcon", 32478 "BitbucketIcon", 32479 "ChromaticIcon", 32480 "ComponentDrivenIcon", 32481 "DiscordIcon", 32482 "FacebookIcon", 32483 "FigmaIcon", 32484 "GDriveIcon", 32485 "GithubIcon", 32486 "GitlabIcon", 32487 "GoogleIcon", 32488 "GraphqlIcon", 32489 "MediumIcon", 32490 "ReduxIcon", 32491 "TwitterIcon", 32492 "YoutubeIcon", 32493 "VSCodeIcon", 32494 "LinkedinIcon", 32495 "XIcon" 32496 ] 32497 }, 32498 { 32499 name: "Devices", 32500 icons: [ 32501 "BrowserIcon", 32502 "TabletIcon", 32503 "MobileIcon", 32504 "WatchIcon", 32505 "SidebarIcon", 32506 "SidebarAltIcon", 32507 "SidebarAltToggleIcon", 32508 "SidebarToggleIcon", 32509 "BottomBarIcon", 32510 "BottomBarToggleIcon", 32511 "CPUIcon", 32512 "DatabaseIcon", 32513 "MemoryIcon", 32514 "StructureIcon", 32515 "BoxIcon", 32516 "PowerIcon" 32517 ] 32518 }, 32519 { 32520 name: "CRUD", 32521 icons: [ 32522 "EditIcon", 32523 "CogIcon", 32524 "NutIcon", 32525 "WrenchIcon", 32526 "EllipsisIcon", 32527 "WandIcon", 32528 "SweepIcon", 32529 "CheckIcon", 32530 "FormIcon", 32531 "BatchDenyIcon", 32532 "BatchAcceptIcon", 32533 "ControlsIcon", 32534 "PlusIcon", 32535 "CloseAltIcon", 32536 "CrossIcon", 32537 "TrashIcon", 32538 "PinAltIcon", 32539 "UnpinIcon", 32540 "AddIcon", 32541 "SubtractIcon", 32542 "CloseIcon", 32543 "DeleteIcon", 32544 "PassedIcon", 32545 "ChangedIcon", 32546 "FailedIcon", 32547 "ClearIcon", 32548 "CommentIcon", 32549 "CommentAddIcon", 32550 "RequestChangeIcon", 32551 "CommentsIcon", 32552 "ChatIcon", 32553 "LockIcon", 32554 "UnlockIcon", 32555 "KeyIcon", 32556 "OutboxIcon", 32557 "CreditIcon", 32558 "ButtonIcon", 32559 "TypeIcon", 32560 "PointerDefaultIcon", 32561 "PointerHandIcon", 32562 "CommandIcon", 32563 "SaveIcon", 32564 "SortDownIcon", 32565 "SortUpIcon", 32566 "BugIcon", 32567 "EditorIcon" 32568 ] 32569 }, 32570 { 32571 name: "Communicate", 32572 icons: [ 32573 "InfoIcon", 32574 "QuestionIcon", 32575 "SupportIcon", 32576 "AlertIcon", 32577 "AlertAltIcon", 32578 "EmailIcon", 32579 "PhoneIcon", 32580 "LinkIcon", 32581 "LinkBrokenIcon", 32582 "BellIcon", 32583 "RSSIcon", 32584 "ShareAltIcon", 32585 "ShareIcon", 32586 "JumpToIcon", 32587 "CircleHollowIcon", 32588 "CircleIcon", 32589 "BookmarkHollowIcon", 32590 "BookmarkIcon", 32591 "DiamondIcon", 32592 "HeartHollowIcon", 32593 "HeartIcon", 32594 "StarHollowIcon", 32595 "StarIcon", 32596 "CertificateIcon", 32597 "VerifiedIcon", 32598 "ThumbsUpIcon", 32599 "ShieldIcon", 32600 "BasketIcon", 32601 "BeakerIcon", 32602 "HourglassIcon", 32603 "FlagIcon", 32604 "CloudHollowIcon", 32605 "CloudIcon", 32606 "StickerIcon", 32607 "StatusFailIcon", 32608 "StatusIcon", 32609 "StatusWarnIcon", 32610 "StatusPassIcon", 32611 "GiftIcon" 32612 ] 32613 }, 32614 { 32615 name: "Wayfinding", 32616 icons: [ 32617 "ChevronUpIcon", 32618 "ChevronDownIcon", 32619 "ChevronLeftIcon", 32620 "ChevronRightIcon", 32621 "ChevronSmallUpIcon", 32622 "ChevronSmallDownIcon", 32623 "ChevronSmallLeftIcon", 32624 "ChevronSmallRightIcon", 32625 "ArrowUpIcon", 32626 "ArrowDownIcon", 32627 "ArrowLeftIcon", 32628 "ArrowRightIcon", 32629 "ArrowTopLeftIcon", 32630 "ArrowTopRightIcon", 32631 "ArrowBottomLeftIcon", 32632 "ArrowBottomRightIcon", 32633 "ArrowSolidUpIcon", 32634 "ArrowSolidDownIcon", 32635 "ArrowSolidLeftIcon", 32636 "ArrowSolidRightIcon", 32637 "ExpandAltIcon", 32638 "CollapseIcon", 32639 "ExpandIcon", 32640 "UnfoldIcon", 32641 "TransferIcon", 32642 "RedirectIcon", 32643 "UndoIcon", 32644 "ReplyIcon", 32645 "SyncIcon", 32646 "UploadIcon", 32647 "DownloadIcon", 32648 "BackIcon", 32649 "ProceedIcon", 32650 "RefreshIcon", 32651 "GlobeIcon", 32652 "CompassIcon", 32653 "LocationIcon", 32654 "PinIcon", 32655 "TimeIcon", 32656 "DashboardIcon", 32657 "TimerIcon", 32658 "HomeIcon", 32659 "AdminIcon", 32660 "DirectionIcon" 32661 ] 32662 }, 32663 { 32664 name: "People", 32665 icons: [ 32666 "UserIcon", 32667 "UserAltIcon", 32668 "UserAddIcon", 32669 "UsersIcon", 32670 "ProfileIcon", 32671 "FaceHappyIcon", 32672 "FaceNeutralIcon", 32673 "FaceSadIcon", 32674 "AccessibilityIcon", 32675 "AccessibilityAltIcon", 32676 "AccessibilityIgnoredIcon" 32677 ] 32678 } 32679], PhotoIcon = React251.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React251.createElement( 32680 "svg", 32681 { 32682 width: size, 32683 height: size, 32684 viewBox: "0 0 14 14", 32685 fill: "none", 32686 xmlns: "http://www.w3.org/2000/svg", 32687 ref: forwardedRef, 32688 ...props 32689 }, 32690 React251.createElement( 32691 "path", 32692 { 32693 fillRule: "evenodd", 32694 clipRule: "evenodd", 32695 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", 32696 fill: color2 32697 } 32698 ), 32699 React251.createElement( 32700 "path", 32701 { 32702 fillRule: "evenodd", 32703 clipRule: "evenodd", 32704 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", 32705 fill: color2 32706 } 32707 ) 32708)), ComponentIcon = React251.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React251.createElement( 32709 "svg", 32710 { 32711 width: size, 32712 height: size, 32713 viewBox: "0 0 14 14", 32714 fill: "none", 32715 xmlns: "http://www.w3.org/2000/svg", 32716 ref: forwardedRef, 32717 ...props 32718 }, 32719 React251.createElement( 32720 "path", 32721 { 32722 fillRule: "evenodd", 32723 clipRule: "evenodd", 32724 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", 32725 fill: color2 32726 } 32727 ) 32728)), GridIcon = React251.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React251.createElement( 32729 "svg", 32730 { 32731 width: size, 32732 height: size, 32733 viewBox: "0 0 14 14", 32734 fill: "none", 32735 xmlns: "http://www.w3.org/2000/svg", 32736 ref: forwardedRef, 32737 ...props 32738 }, 32739 React251.createElement( 32740 "path", 32741 { 32742 fillRule: "evenodd", 32743 clipRule: "evenodd", 32744 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", 32745 fill: color2 32746 } 32747 ) 32748)), OutlineIcon = React251.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React251.createElement( 32749 "svg", 32750 { 32751 width: size, 32752 height: size, 32753 viewBox: "0 0 14 14", 32754 fill: "none", 32755 xmlns: "http://www.w3.org/2000/svg", 32756 ref: forwardedRef, 32757 ...props 32758 }, 32759 React251.createElement( 32760 "path", 32761 { 32762 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", 32763 fill: color2 32764 } 32765 ) 32766)), PhotoDragIcon = React251.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React251.createElement( 32767 "svg", 32768 { 32769 width: size, 32770 height: size, 32771 viewBox: "0 0 14 15", 32772 fill: "none", 32773 xmlns: "http://www.w3.org/2000/svg", 32774 ref: forwardedRef, 32775 ...props 32776 }, 32777 React251.createElement( 32778 "path", 32779 { 32780 fillRule: "evenodd", 32781 clipRule: "evenodd", 32782 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", 32783 fill: color2 32784 } 32785 ), 32786 React251.createElement( 32787 "path", 32788 { 32789 fillRule: "evenodd", 32790 clipRule: "evenodd", 32791 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", 32792 fill: color2 32793 } 32794 ), 32795 React251.createElement( 32796 "path", 32797 { 32798 d: "M0 10.004v-3h1v3H0zM0 13.504v-2.5h1v2h2v1H.5a.5.5 0 01-.5-.5zM7 14.004H4v-1h3v1z", 32799 fill: color2 32800 } 32801 ) 32802)), PhotoStabilizeIcon = React251.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React251.createElement( 32803 "svg", 32804 { 32805 width: size, 32806 height: size, 32807 viewBox: "0 0 14 14", 32808 fill: "none", 32809 xmlns: "http://www.w3.org/2000/svg", 32810 ref: forwardedRef, 32811 ...props 32812 }, 32813 React251.createElement( 32814 "path", 32815 { 32816 fillRule: "evenodd", 32817 clipRule: "evenodd", 32818 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", 32819 fill: color2 32820 } 32821 ), 32822 React251.createElement( 32823 "path", 32824 { 32825 fillRule: "evenodd", 32826 clipRule: "evenodd", 32827 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", 32828 fill: color2 32829 } 32830 ), 32831 React251.createElement( 32832 "path", 32833 { 32834 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", 32835 fill: color2 32836 } 32837 ) 32838)), CameraStabilizeIcon = React251.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React251.createElement( 32839 "svg", 32840 { 32841 width: size, 32842 height: size, 32843 viewBox: "0 0 14 14", 32844 fill: "none", 32845 xmlns: "http://www.w3.org/2000/svg", 32846 ref: forwardedRef, 32847 ...props 32848 }, 32849 React251.createElement("g", { clipPath: "url(#prefix__clip0_2484_400)", fill: color2 }, React251.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" }), React251.createElement( 32850 "path", 32851 { 32852 fillRule: "evenodd", 32853 clipRule: "evenodd", 32854 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" 32855 } 32856 ), React251.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" })), 32857 React251.createElement("defs", null, React251.createElement("clipPath", { id: "prefix__clip0_2484_400" }, React251.createElement("path", { fill: "#fff", d: "M0 0h14v14H0z" }))) 32858)), GridAltIcon = React251.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React251.createElement( 32859 "svg", 32860 { 32861 width: size, 32862 height: size, 32863 viewBox: "0 0 14 14", 32864 fill: "none", 32865 xmlns: "http://www.w3.org/2000/svg", 32866 ref: forwardedRef, 32867 ...props 32868 }, 32869 React251.createElement( 32870 "path", 32871 { 32872 d: "M4 3V1h1v2H4zM4 6v2h1V6H4zM4 11v2h1v-2H4zM9 11v2h1v-2H9zM9 8V6h1v2H9zM9 1v2h1V1H9zM13 5h-2V4h2v1zM11 10h2V9h-2v1zM3 10H1V9h2v1zM1 5h2V4H1v1zM8 5H6V4h2v1zM6 10h2V9H6v1zM4 4h1v1H4V4zM10 4H9v1h1V4zM9 9h1v1H9V9zM5 9H4v1h1V9z", 32873 fill: color2 32874 } 32875 ) 32876)), SearchIcon = React251.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React251.createElement( 32877 "svg", 32878 { 32879 width: size, 32880 height: size, 32881 viewBox: "0 0 14 14", 32882 fill: "none", 32883 xmlns: "http://www.w3.org/2000/svg", 32884 ref: forwardedRef, 32885 ...props 32886 }, 32887 React251.createElement( 32888 "path", 32889 { 32890 fillRule: "evenodd", 32891 clipRule: "evenodd", 32892 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", 32893 fill: color2 32894 } 32895 ) 32896)), ZoomIcon = React251.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React251.createElement( 32897 "svg", 32898 { 32899 width: size, 32900 height: size, 32901 viewBox: "0 0 14 14", 32902 fill: "none", 32903 xmlns: "http://www.w3.org/2000/svg", 32904 ref: forwardedRef, 32905 ...props 32906 }, 32907 React251.createElement( 32908 "path", 32909 { 32910 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", 32911 fill: color2 32912 } 32913 ), 32914 React251.createElement( 32915 "path", 32916 { 32917 fillRule: "evenodd", 32918 clipRule: "evenodd", 32919 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", 32920 fill: color2 32921 } 32922 ) 32923)), ZoomOutIcon = React251.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React251.createElement( 32924 "svg", 32925 { 32926 width: size, 32927 height: size, 32928 viewBox: "0 0 14 14", 32929 fill: "none", 32930 xmlns: "http://www.w3.org/2000/svg", 32931 ref: forwardedRef, 32932 ...props 32933 }, 32934 React251.createElement("path", { d: "M4 5.5a.5.5 0 000 1h4a.5.5 0 000-1H4z", fill: color2 }), 32935 React251.createElement( 32936 "path", 32937 { 32938 fillRule: "evenodd", 32939 clipRule: "evenodd", 32940 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", 32941 fill: color2 32942 } 32943 ) 32944)), ZoomResetIcon = React251.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React251.createElement( 32945 "svg", 32946 { 32947 width: size, 32948 height: size, 32949 viewBox: "0 0 14 14", 32950 fill: "none", 32951 xmlns: "http://www.w3.org/2000/svg", 32952 ref: forwardedRef, 32953 ...props 32954 }, 32955 React251.createElement( 32956 "path", 32957 { 32958 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", 32959 fill: color2 32960 } 32961 ) 32962)), EyeIcon = React251.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React251.createElement( 32963 "svg", 32964 { 32965 width: size, 32966 height: size, 32967 viewBox: "0 0 14 14", 32968 fill: "none", 32969 xmlns: "http://www.w3.org/2000/svg", 32970 ref: forwardedRef, 32971 ...props 32972 }, 32973 React251.createElement("path", { d: "M7 9.5a2.5 2.5 0 100-5 2.5 2.5 0 000 5z", fill: color2 }), 32974 React251.createElement( 32975 "path", 32976 { 32977 fillRule: "evenodd", 32978 clipRule: "evenodd", 32979 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", 32980 fill: color2 32981 } 32982 ) 32983)), EyeCloseIcon = React251.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React251.createElement( 32984 "svg", 32985 { 32986 width: size, 32987 height: size, 32988 viewBox: "0 0 14 14", 32989 fill: "none", 32990 xmlns: "http://www.w3.org/2000/svg", 32991 ref: forwardedRef, 32992 ...props 32993 }, 32994 React251.createElement( 32995 "path", 32996 { 32997 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", 32998 fill: color2 32999 } 33000 ), 33001 React251.createElement( 33002 "path", 33003 { 33004 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", 33005 fill: color2 33006 } 33007 ) 33008)), LightningIcon = React251.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React251.createElement( 33009 "svg", 33010 { 33011 width: size, 33012 height: size, 33013 viewBox: "0 0 14 14", 33014 fill: "none", 33015 xmlns: "http://www.w3.org/2000/svg", 33016 ref: forwardedRef, 33017 ...props 33018 }, 33019 React251.createElement( 33020 "path", 33021 { 33022 fillRule: "evenodd", 33023 clipRule: "evenodd", 33024 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", 33025 fill: color2 33026 } 33027 ) 33028)), LightningOffIcon = React251.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React251.createElement( 33029 "svg", 33030 { 33031 width: size, 33032 height: size, 33033 viewBox: "0 0 14 14", 33034 fill: "none", 33035 xmlns: "http://www.w3.org/2000/svg", 33036 ref: forwardedRef, 33037 ...props 33038 }, 33039 React251.createElement( 33040 "path", 33041 { 33042 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", 33043 fill: color2 33044 } 33045 ) 33046)), MirrorIcon = React251.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React251.createElement( 33047 "svg", 33048 { 33049 width: size, 33050 height: size, 33051 viewBox: "0 0 14 14", 33052 fill: "none", 33053 xmlns: "http://www.w3.org/2000/svg", 33054 ref: forwardedRef, 33055 ...props 33056 }, 33057 React251.createElement( 33058 "path", 33059 { 33060 fillRule: "evenodd", 33061 clipRule: "evenodd", 33062 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", 33063 fill: color2 33064 } 33065 ) 33066)), GrowIcon = React251.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React251.createElement( 33067 "svg", 33068 { 33069 width: size, 33070 height: size, 33071 viewBox: "0 0 14 14", 33072 fill: "none", 33073 xmlns: "http://www.w3.org/2000/svg", 33074 ref: forwardedRef, 33075 ...props 33076 }, 33077 React251.createElement( 33078 "path", 33079 { 33080 d: "M1.5 1.004a.5.5 0 100 1H12v10.5a.5.5 0 001 0v-10.5a1 1 0 00-1-1H1.5z", 33081 fill: color2 33082 } 33083 ), 33084 React251.createElement( 33085 "path", 33086 { 33087 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", 33088 fill: color2 33089 } 33090 ), 33091 React251.createElement( 33092 "path", 33093 { 33094 fillRule: "evenodd", 33095 clipRule: "evenodd", 33096 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", 33097 fill: color2 33098 } 33099 ) 33100)), ContrastIcon = React251.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React251.createElement( 33101 "svg", 33102 { 33103 width: size, 33104 height: size, 33105 viewBox: "0 0 14 15", 33106 fill: "none", 33107 xmlns: "http://www.w3.org/2000/svg", 33108 ref: forwardedRef, 33109 ...props 33110 }, 33111 React251.createElement( 33112 "path", 33113 { 33114 fillRule: "evenodd", 33115 clipRule: "evenodd", 33116 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", 33117 fill: color2 33118 } 33119 ) 33120)), SwitchAltIcon = React251.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React251.createElement( 33121 "svg", 33122 { 33123 width: size, 33124 height: size, 33125 viewBox: "0 0 14 15", 33126 fill: "none", 33127 xmlns: "http://www.w3.org/2000/svg", 33128 ref: forwardedRef, 33129 ...props 33130 }, 33131 React251.createElement( 33132 "path", 33133 { 33134 fillRule: "evenodd", 33135 clipRule: "evenodd", 33136 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", 33137 fill: color2 33138 } 33139 ) 33140)), ContrastIgnoredIcon = React251.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React251.createElement( 33141 "svg", 33142 { 33143 width: size, 33144 height: size, 33145 viewBox: "0 0 14 14", 33146 fill: "none", 33147 xmlns: "http://www.w3.org/2000/svg", 33148 ref: forwardedRef, 33149 ...props 33150 }, 33151 React251.createElement( 33152 "g", 33153 { 33154 clipPath: "url(#prefix__clip0_2359_559)", 33155 fillRule: "evenodd", 33156 clipRule: "evenodd", 33157 fill: color2 33158 }, 33159 React251.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" }), 33160 React251.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" }) 33161 ), 33162 React251.createElement("defs", null, React251.createElement("clipPath", { id: "prefix__clip0_2359_559" }, React251.createElement("path", { fill: "#fff", d: "M0 0h14v14H0z" }))) 33163)), PaintBrushIcon = React251.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React251.createElement( 33164 "svg", 33165 { 33166 width: size, 33167 height: size, 33168 viewBox: "0 0 14 14", 33169 fill: "none", 33170 xmlns: "http://www.w3.org/2000/svg", 33171 ref: forwardedRef, 33172 ...props 33173 }, 33174 React251.createElement( 33175 "path", 33176 { 33177 fillRule: "evenodd", 33178 clipRule: "evenodd", 33179 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", 33180 fill: color2 33181 } 33182 ) 33183)), PaintBrushAltIcon = React251.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React251.createElement( 33184 "svg", 33185 { 33186 width: size, 33187 height: size, 33188 viewBox: "0 0 14 14", 33189 fill: "none", 33190 xmlns: "http://www.w3.org/2000/svg", 33191 ref: forwardedRef, 33192 ...props 33193 }, 33194 React251.createElement( 33195 "path", 33196 { 33197 fillRule: "evenodd", 33198 clipRule: "evenodd", 33199 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", 33200 fill: color2 33201 } 33202 ) 33203)), RulerIcon = React251.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React251.createElement( 33204 "svg", 33205 { 33206 width: size, 33207 height: size, 33208 viewBox: "0 0 14 14", 33209 fill: "none", 33210 xmlns: "http://www.w3.org/2000/svg", 33211 ref: forwardedRef, 33212 ...props 33213 }, 33214 React251.createElement( 33215 "path", 33216 { 33217 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", 33218 fill: color2 33219 } 33220 ), 33221 React251.createElement( 33222 "path", 33223 { 33224 fillRule: "evenodd", 33225 clipRule: "evenodd", 33226 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", 33227 fill: color2 33228 } 33229 ) 33230)), CameraIcon = React251.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React251.createElement( 33231 "svg", 33232 { 33233 width: size, 33234 height: size, 33235 viewBox: "0 0 14 14", 33236 fill: "none", 33237 xmlns: "http://www.w3.org/2000/svg", 33238 ref: forwardedRef, 33239 ...props 33240 }, 33241 React251.createElement( 33242 "path", 33243 { 33244 fillRule: "evenodd", 33245 clipRule: "evenodd", 33246 d: "M10 7a3 3 0 11-6 0 3 3 0 016 0zM9 7a2 2 0 11-4 0 2 2 0 014 0z", 33247 fill: color2 33248 } 33249 ), 33250 React251.createElement( 33251 "path", 33252 { 33253 fillRule: "evenodd", 33254 clipRule: "evenodd", 33255 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", 33256 fill: color2 33257 } 33258 ) 33259)), VideoIcon = React251.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React251.createElement( 33260 "svg", 33261 { 33262 width: size, 33263 height: size, 33264 viewBox: "0 0 14 14", 33265 fill: "none", 33266 xmlns: "http://www.w3.org/2000/svg", 33267 ref: forwardedRef, 33268 ...props 33269 }, 33270 React251.createElement("path", { d: "M2.5 10a.5.5 0 100-1 .5.5 0 000 1z", fill: color2 }), 33271 React251.createElement( 33272 "path", 33273 { 33274 fillRule: "evenodd", 33275 clipRule: "evenodd", 33276 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", 33277 fill: color2 33278 } 33279 ) 33280)), SpeakerIcon = React251.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React251.createElement( 33281 "svg", 33282 { 33283 width: size, 33284 height: size, 33285 viewBox: "0 0 14 14", 33286 fill: "none", 33287 xmlns: "http://www.w3.org/2000/svg", 33288 ref: forwardedRef, 33289 ...props 33290 }, 33291 React251.createElement( 33292 "path", 33293 { 33294 fillRule: "evenodd", 33295 clipRule: "evenodd", 33296 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", 33297 fill: color2 33298 } 33299 ), 33300 React251.createElement( 33301 "path", 33302 { 33303 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", 33304 fill: color2 33305 } 33306 ), 33307 React251.createElement( 33308 "path", 33309 { 33310 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", 33311 fill: color2 33312 } 33313 ) 33314)), PlayIcon = React251.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React251.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 React251.createElement( 33326 "path", 33327 { 33328 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", 33329 fill: color2 33330 } 33331 ) 33332)), PlayBackIcon = React251.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React251.createElement( 33333 "svg", 33334 { 33335 width: size, 33336 height: size, 33337 viewBox: "0 0 14 14", 33338 fill: "none", 33339 xmlns: "http://www.w3.org/2000/svg", 33340 ref: forwardedRef, 33341 ...props 33342 }, 33343 React251.createElement( 33344 "path", 33345 { 33346 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", 33347 fill: color2 33348 } 33349 ) 33350)), PlayNextIcon = React251.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React251.createElement( 33351 "svg", 33352 { 33353 width: size, 33354 height: size, 33355 viewBox: "0 0 14 14", 33356 fill: "none", 33357 xmlns: "http://www.w3.org/2000/svg", 33358 ref: forwardedRef, 33359 ...props 33360 }, 33361 React251.createElement( 33362 "path", 33363 { 33364 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", 33365 fill: color2 33366 } 33367 ) 33368)), RewindIcon = React251.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React251.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 React251.createElement( 33380 "path", 33381 { 33382 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", 33383 fill: color2 33384 } 33385 ) 33386)), FastForwardIcon = React251.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React251.createElement( 33387 "svg", 33388 { 33389 width: size, 33390 height: size, 33391 viewBox: "0 0 14 14", 33392 fill: "none", 33393 xmlns: "http://www.w3.org/2000/svg", 33394 ref: forwardedRef, 33395 ...props 33396 }, 33397 React251.createElement( 33398 "path", 33399 { 33400 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", 33401 fill: color2 33402 } 33403 ) 33404)), StopAltIcon = React251.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React251.createElement( 33405 "svg", 33406 { 33407 width: size, 33408 height: size, 33409 viewBox: "0 0 14 14", 33410 fill: "none", 33411 xmlns: "http://www.w3.org/2000/svg", 33412 ref: forwardedRef, 33413 ...props 33414 }, 33415 React251.createElement( 33416 "path", 33417 { 33418 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", 33419 fill: color2 33420 } 33421 ) 33422)), SunIcon = React251.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React251.createElement( 33423 "svg", 33424 { 33425 width: size, 33426 height: size, 33427 viewBox: "0 0 14 14", 33428 fill: "none", 33429 xmlns: "http://www.w3.org/2000/svg", 33430 ref: forwardedRef, 33431 ...props 33432 }, 33433 React251.createElement("g", { clipPath: "url(#prefix__clip0_1107_3492)", fill: color2 }, React251.createElement("path", { d: "M7.5.5a.5.5 0 00-1 0V2a.5.5 0 001 0V.5z" }), React251.createElement( 33434 "path", 33435 { 33436 fillRule: "evenodd", 33437 clipRule: "evenodd", 33438 d: "M7 10a3 3 0 100-6 3 3 0 000 6zm0-1a2 2 0 100-4 2 2 0 000 4z" 33439 } 33440 ), React251.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" })), 33441 React251.createElement("defs", null, React251.createElement("clipPath", { id: "prefix__clip0_1107_3492" }, React251.createElement("path", { fill: "#fff", d: "M0 0h14v14H0z" }))) 33442)), MoonIcon = React251.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React251.createElement( 33443 "svg", 33444 { 33445 width: size, 33446 height: size, 33447 viewBox: "0 0 15 15", 33448 fill: "none", 33449 xmlns: "http://www.w3.org/2000/svg", 33450 ref: forwardedRef, 33451 ...props 33452 }, 33453 React251.createElement("g", { clipPath: "url(#prefix__clip0_1107_3493)" }, React251.createElement( 33454 "path", 33455 { 33456 fillRule: "evenodd", 33457 clipRule: "evenodd", 33458 d: "M8.335.047l-.15-.015a7.499 7.499 0 106.14 10.577c.103-.229-.156-.447-.386-.346a5.393 5.393 0 01-.771.27A5.356 5.356 0 019.153.691C9.37.568 9.352.23 9.106.175a7.545 7.545 0 00-.77-.128zM6.977 1.092a6.427 6.427 0 005.336 10.671A6.427 6.427 0 116.977 1.092z", 33459 fill: color2 33460 } 33461 )), 33462 React251.createElement("defs", null, React251.createElement("clipPath", { id: "prefix__clip0_1107_3493" }, React251.createElement( 33463 "path", 33464 { 33465 fill: "#fff", 33466 transform: "scale(1.07124)", 33467 d: "M0 0h14.001v14.002H0z" 33468 } 33469 ))) 33470)), StopAltHollowIcon = React251.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React251.createElement( 33471 "svg", 33472 { 33473 width: size, 33474 height: size, 33475 viewBox: "0 0 14 14", 33476 fill: "none", 33477 xmlns: "http://www.w3.org/2000/svg", 33478 ref: forwardedRef, 33479 ...props 33480 }, 33481 React251.createElement( 33482 "path", 33483 { 33484 fillRule: "evenodd", 33485 clipRule: "evenodd", 33486 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", 33487 fill: color2 33488 } 33489 ) 33490)), PlayHollowIcon = React251.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React251.createElement( 33491 "svg", 33492 { 33493 width: size, 33494 height: size, 33495 viewBox: "0 0 14 14", 33496 fill: "none", 33497 xmlns: "http://www.w3.org/2000/svg", 33498 ref: forwardedRef, 33499 ...props 33500 }, 33501 React251.createElement( 33502 "path", 33503 { 33504 fillRule: "evenodd", 33505 clipRule: "evenodd", 33506 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", 33507 fill: color2 33508 } 33509 ) 33510)), PlayAllHollowIcon = React251.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React251.createElement( 33511 "svg", 33512 { 33513 width: size, 33514 height: size, 33515 viewBox: "0 0 14 14", 33516 fill: "none", 33517 xmlns: "http://www.w3.org/2000/svg", 33518 ref: forwardedRef, 33519 ...props 33520 }, 33521 React251.createElement( 33522 "path", 33523 { 33524 fillRule: "evenodd", 33525 clipRule: "evenodd", 33526 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", 33527 fill: color2 33528 } 33529 ), 33530 React251.createElement( 33531 "path", 33532 { 33533 fillRule: "evenodd", 33534 clipRule: "evenodd", 33535 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", 33536 fill: color2 33537 } 33538 ) 33539)), StopIcon = React251.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React251.createElement( 33540 "svg", 33541 { 33542 width: size, 33543 height: size, 33544 viewBox: "0 0 14 14", 33545 fill: "none", 33546 xmlns: "http://www.w3.org/2000/svg", 33547 ref: forwardedRef, 33548 ...props 33549 }, 33550 React251.createElement( 33551 "path", 33552 { 33553 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", 33554 fill: color2 33555 } 33556 ), 33557 React251.createElement( 33558 "path", 33559 { 33560 fillRule: "evenodd", 33561 clipRule: "evenodd", 33562 d: "M14 7A7 7 0 110 7a7 7 0 0114 0zm-1 0A6 6 0 111 7a6 6 0 0112 0z", 33563 fill: color2 33564 } 33565 ) 33566)), SideBySideIcon = React251.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React251.createElement( 33567 "svg", 33568 { 33569 width: size, 33570 height: size, 33571 viewBox: "0 0 14 14", 33572 fill: "none", 33573 xmlns: "http://www.w3.org/2000/svg", 33574 ref: forwardedRef, 33575 ...props 33576 }, 33577 React251.createElement( 33578 "path", 33579 { 33580 fillRule: "evenodd", 33581 clipRule: "evenodd", 33582 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", 33583 fill: color2 33584 } 33585 ) 33586)), StackedIcon = React251.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React251.createElement( 33587 "svg", 33588 { 33589 width: size, 33590 height: size, 33591 viewBox: "0 0 14 14", 33592 fill: "none", 33593 xmlns: "http://www.w3.org/2000/svg", 33594 ref: forwardedRef, 33595 ...props 33596 }, 33597 React251.createElement( 33598 "path", 33599 { 33600 fillRule: "evenodd", 33601 clipRule: "evenodd", 33602 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", 33603 fill: color2 33604 } 33605 ) 33606)), BookIcon = React251.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React251.createElement( 33607 "svg", 33608 { 33609 width: size, 33610 height: size, 33611 viewBox: "0 0 14 14", 33612 fill: "none", 33613 xmlns: "http://www.w3.org/2000/svg", 33614 ref: forwardedRef, 33615 ...props 33616 }, 33617 React251.createElement( 33618 "path", 33619 { 33620 fillRule: "evenodd", 33621 clipRule: "evenodd", 33622 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", 33623 fill: color2 33624 } 33625 ) 33626)), DocumentIcon = React251.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React251.createElement( 33627 "svg", 33628 { 33629 width: size, 33630 height: size, 33631 viewBox: "0 0 14 14", 33632 fill: "none", 33633 xmlns: "http://www.w3.org/2000/svg", 33634 ref: forwardedRef, 33635 ...props 33636 }, 33637 React251.createElement( 33638 "path", 33639 { 33640 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", 33641 fill: color2 33642 } 33643 ), 33644 React251.createElement( 33645 "path", 33646 { 33647 fillRule: "evenodd", 33648 clipRule: "evenodd", 33649 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", 33650 fill: color2 33651 } 33652 ) 33653)), CopyIcon = React251.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React251.createElement( 33654 "svg", 33655 { 33656 width: size, 33657 height: size, 33658 viewBox: "0 0 14 15", 33659 fill: "none", 33660 xmlns: "http://www.w3.org/2000/svg", 33661 ref: forwardedRef, 33662 ...props 33663 }, 33664 React251.createElement( 33665 "path", 33666 { 33667 fillRule: "evenodd", 33668 clipRule: "evenodd", 33669 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", 33670 fill: color2 33671 } 33672 ) 33673)), CategoryIcon = React251.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React251.createElement( 33674 "svg", 33675 { 33676 width: size, 33677 height: size, 33678 viewBox: "0 0 14 14", 33679 fill: "none", 33680 xmlns: "http://www.w3.org/2000/svg", 33681 ref: forwardedRef, 33682 ...props 33683 }, 33684 React251.createElement( 33685 "path", 33686 { 33687 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", 33688 fill: color2 33689 } 33690 ), 33691 React251.createElement( 33692 "path", 33693 { 33694 fillRule: "evenodd", 33695 clipRule: "evenodd", 33696 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", 33697 fill: color2 33698 } 33699 ) 33700)), FolderIcon = React251.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React251.createElement( 33701 "svg", 33702 { 33703 width: size, 33704 height: size, 33705 viewBox: "0 0 14 14", 33706 fill: "none", 33707 xmlns: "http://www.w3.org/2000/svg", 33708 ref: forwardedRef, 33709 ...props 33710 }, 33711 React251.createElement( 33712 "path", 33713 { 33714 fillRule: "evenodd", 33715 clipRule: "evenodd", 33716 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", 33717 fill: color2 33718 } 33719 ) 33720)), PrintIcon = React251.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React251.createElement( 33721 "svg", 33722 { 33723 width: size, 33724 height: size, 33725 viewBox: "0 0 14 14", 33726 fill: "none", 33727 xmlns: "http://www.w3.org/2000/svg", 33728 ref: forwardedRef, 33729 ...props 33730 }, 33731 React251.createElement( 33732 "path", 33733 { 33734 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", 33735 fill: color2 33736 } 33737 ), 33738 React251.createElement( 33739 "path", 33740 { 33741 fillRule: "evenodd", 33742 clipRule: "evenodd", 33743 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", 33744 fill: color2 33745 } 33746 ) 33747)), GraphLineIcon = React251.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React251.createElement( 33748 "svg", 33749 { 33750 width: size, 33751 height: size, 33752 viewBox: "0 0 14 14", 33753 fill: "none", 33754 xmlns: "http://www.w3.org/2000/svg", 33755 ref: forwardedRef, 33756 ...props 33757 }, 33758 React251.createElement( 33759 "path", 33760 { 33761 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", 33762 fill: color2 33763 } 33764 ), 33765 React251.createElement( 33766 "path", 33767 { 33768 fillRule: "evenodd", 33769 clipRule: "evenodd", 33770 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", 33771 fill: color2 33772 } 33773 ) 33774)), CalendarIcon = React251.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React251.createElement( 33775 "svg", 33776 { 33777 width: size, 33778 height: size, 33779 viewBox: "0 0 14 14", 33780 fill: "none", 33781 xmlns: "http://www.w3.org/2000/svg", 33782 ref: forwardedRef, 33783 ...props 33784 }, 33785 React251.createElement( 33786 "path", 33787 { 33788 fillRule: "evenodd", 33789 clipRule: "evenodd", 33790 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", 33791 fill: color2 33792 } 33793 ) 33794)), GraphBarIcon = React251.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React251.createElement( 33795 "svg", 33796 { 33797 width: size, 33798 height: size, 33799 viewBox: "0 0 14 14", 33800 fill: "none", 33801 xmlns: "http://www.w3.org/2000/svg", 33802 ref: forwardedRef, 33803 ...props 33804 }, 33805 React251.createElement( 33806 "path", 33807 { 33808 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", 33809 fill: color2 33810 } 33811 ) 33812)), AlignLeftIcon = React251.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React251.createElement( 33813 "svg", 33814 { 33815 width: size, 33816 height: size, 33817 viewBox: "0 0 14 14", 33818 fill: "none", 33819 xmlns: "http://www.w3.org/2000/svg", 33820 ref: forwardedRef, 33821 ...props 33822 }, 33823 React251.createElement( 33824 "path", 33825 { 33826 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", 33827 fill: color2 33828 } 33829 ) 33830)), AlignRightIcon = React251.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React251.createElement( 33831 "svg", 33832 { 33833 width: size, 33834 height: size, 33835 viewBox: "0 0 14 14", 33836 fill: "none", 33837 xmlns: "http://www.w3.org/2000/svg", 33838 ref: forwardedRef, 33839 ...props 33840 }, 33841 React251.createElement( 33842 "path", 33843 { 33844 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", 33845 fill: color2 33846 } 33847 ) 33848)), FilterIcon = React251.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React251.createElement( 33849 "svg", 33850 { 33851 width: size, 33852 height: size, 33853 viewBox: "0 0 14 14", 33854 fill: "none", 33855 xmlns: "http://www.w3.org/2000/svg", 33856 ref: forwardedRef, 33857 ...props 33858 }, 33859 React251.createElement( 33860 "path", 33861 { 33862 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", 33863 fill: color2 33864 } 33865 ) 33866)), DocChartIcon = React251.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React251.createElement( 33867 "svg", 33868 { 33869 width: size, 33870 height: size, 33871 viewBox: "0 0 14 14", 33872 fill: "none", 33873 xmlns: "http://www.w3.org/2000/svg", 33874 ref: forwardedRef, 33875 ...props 33876 }, 33877 React251.createElement( 33878 "path", 33879 { 33880 fillRule: "evenodd", 33881 clipRule: "evenodd", 33882 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", 33883 fill: color2 33884 } 33885 ) 33886)), DocListIcon = React251.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React251.createElement( 33887 "svg", 33888 { 33889 width: size, 33890 height: size, 33891 viewBox: "0 0 14 14", 33892 fill: "none", 33893 xmlns: "http://www.w3.org/2000/svg", 33894 ref: forwardedRef, 33895 ...props 33896 }, 33897 React251.createElement( 33898 "path", 33899 { 33900 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", 33901 fill: color2 33902 } 33903 ), 33904 React251.createElement( 33905 "path", 33906 { 33907 fillRule: "evenodd", 33908 clipRule: "evenodd", 33909 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", 33910 fill: color2 33911 } 33912 ) 33913)), DragIcon = React251.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React251.createElement( 33914 "svg", 33915 { 33916 width: size, 33917 height: size, 33918 viewBox: "0 0 14 14", 33919 fill: "none", 33920 xmlns: "http://www.w3.org/2000/svg", 33921 ref: forwardedRef, 33922 ...props 33923 }, 33924 React251.createElement( 33925 "path", 33926 { 33927 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", 33928 fill: color2 33929 } 33930 ) 33931)), MenuIcon = React251.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React251.createElement( 33932 "svg", 33933 { 33934 width: size, 33935 height: size, 33936 viewBox: "0 0 14 14", 33937 fill: "none", 33938 xmlns: "http://www.w3.org/2000/svg", 33939 ref: forwardedRef, 33940 ...props 33941 }, 33942 React251.createElement( 33943 "path", 33944 { 33945 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", 33946 fill: color2 33947 } 33948 ) 33949)), MarkupIcon = React251.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React251.createElement( 33950 "svg", 33951 { 33952 width: size, 33953 height: size, 33954 viewBox: "0 0 14 14", 33955 fill: "none", 33956 xmlns: "http://www.w3.org/2000/svg", 33957 ref: forwardedRef, 33958 ...props 33959 }, 33960 React251.createElement( 33961 "path", 33962 { 33963 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", 33964 fill: color2 33965 } 33966 ) 33967)), BoldIcon = React251.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React251.createElement( 33968 "svg", 33969 { 33970 width: size, 33971 height: size, 33972 viewBox: "0 0 14 14", 33973 fill: "none", 33974 xmlns: "http://www.w3.org/2000/svg", 33975 ref: forwardedRef, 33976 ...props 33977 }, 33978 React251.createElement( 33979 "path", 33980 { 33981 fillRule: "evenodd", 33982 clipRule: "evenodd", 33983 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", 33984 fill: color2 33985 } 33986 ) 33987)), ItalicIcon = React251.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React251.createElement( 33988 "svg", 33989 { 33990 width: size, 33991 height: size, 33992 viewBox: "0 0 14 14", 33993 fill: "none", 33994 xmlns: "http://www.w3.org/2000/svg", 33995 ref: forwardedRef, 33996 ...props 33997 }, 33998 React251.createElement("path", { d: "M5 2h6v1H8.5l-2 8H9v1H3v-1h2.5l2-8H5V2z", fill: color2 }) 33999)), PaperClipIcon = React251.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React251.createElement( 34000 "svg", 34001 { 34002 width: size, 34003 height: size, 34004 viewBox: "0 0 14 14", 34005 fill: "none", 34006 xmlns: "http://www.w3.org/2000/svg", 34007 ref: forwardedRef, 34008 ...props 34009 }, 34010 React251.createElement( 34011 "path", 34012 { 34013 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", 34014 fill: color2 34015 } 34016 ) 34017)), ListOrderedIcon = React251.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React251.createElement( 34018 "svg", 34019 { 34020 width: size, 34021 height: size, 34022 viewBox: "0 0 14 14", 34023 fill: "none", 34024 xmlns: "http://www.w3.org/2000/svg", 34025 ref: forwardedRef, 34026 ...props 34027 }, 34028 React251.createElement( 34029 "path", 34030 { 34031 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", 34032 fill: color2 34033 } 34034 ) 34035)), ListUnorderedIcon = React251.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React251.createElement( 34036 "svg", 34037 { 34038 width: size, 34039 height: size, 34040 viewBox: "0 0 14 14", 34041 fill: "none", 34042 xmlns: "http://www.w3.org/2000/svg", 34043 ref: forwardedRef, 34044 ...props 34045 }, 34046 React251.createElement( 34047 "path", 34048 { 34049 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", 34050 fill: color2 34051 } 34052 ) 34053)), ParagraphIcon = React251.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React251.createElement( 34054 "svg", 34055 { 34056 width: size, 34057 height: size, 34058 viewBox: "0 0 14 14", 34059 fill: "none", 34060 xmlns: "http://www.w3.org/2000/svg", 34061 ref: forwardedRef, 34062 ...props 34063 }, 34064 React251.createElement( 34065 "path", 34066 { 34067 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", 34068 fill: color2 34069 } 34070 ) 34071)), MarkdownIcon = React251.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React251.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 React251.createElement( 34083 "path", 34084 { 34085 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", 34086 fill: color2 34087 } 34088 ), 34089 React251.createElement( 34090 "path", 34091 { 34092 fillRule: "evenodd", 34093 clipRule: "evenodd", 34094 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", 34095 fill: color2 34096 } 34097 ) 34098)), RepoIcon = React251.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React251.createElement( 34099 "svg", 34100 { 34101 width: size, 34102 height: size, 34103 viewBox: "0 0 14 14", 34104 fill: "none", 34105 xmlns: "http://www.w3.org/2000/svg", 34106 ref: forwardedRef, 34107 ...props 34108 }, 34109 React251.createElement( 34110 "path", 34111 { 34112 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", 34113 fill: color2 34114 } 34115 ), 34116 React251.createElement( 34117 "path", 34118 { 34119 fillRule: "evenodd", 34120 clipRule: "evenodd", 34121 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", 34122 fill: color2 34123 } 34124 ) 34125)), CommitIcon = React251.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React251.createElement( 34126 "svg", 34127 { 34128 width: size, 34129 height: size, 34130 viewBox: "0 0 14 14", 34131 fill: "none", 34132 xmlns: "http://www.w3.org/2000/svg", 34133 ref: forwardedRef, 34134 ...props 34135 }, 34136 React251.createElement( 34137 "path", 34138 { 34139 fillRule: "evenodd", 34140 clipRule: "evenodd", 34141 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", 34142 fill: color2 34143 } 34144 ) 34145)), BranchIcon = React251.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React251.createElement( 34146 "svg", 34147 { 34148 width: size, 34149 height: size, 34150 viewBox: "0 0 14 14", 34151 fill: "none", 34152 xmlns: "http://www.w3.org/2000/svg", 34153 ref: forwardedRef, 34154 ...props 34155 }, 34156 React251.createElement( 34157 "path", 34158 { 34159 fillRule: "evenodd", 34160 clipRule: "evenodd", 34161 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", 34162 fill: color2 34163 } 34164 ) 34165)), PullRequestIcon = React251.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React251.createElement( 34166 "svg", 34167 { 34168 width: size, 34169 height: size, 34170 viewBox: "0 0 14 14", 34171 fill: "none", 34172 xmlns: "http://www.w3.org/2000/svg", 34173 ref: forwardedRef, 34174 ...props 34175 }, 34176 React251.createElement( 34177 "path", 34178 { 34179 fillRule: "evenodd", 34180 clipRule: "evenodd", 34181 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", 34182 fill: color2 34183 } 34184 ) 34185)), MergeIcon = React251.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React251.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 React251.createElement( 34197 "path", 34198 { 34199 fillRule: "evenodd", 34200 clipRule: "evenodd", 34201 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", 34202 fill: color2 34203 } 34204 ) 34205)), AppleIcon = React251.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React251.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 React251.createElement( 34217 "path", 34218 { 34219 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", 34220 fill: color2 34221 } 34222 ) 34223)), LinuxIcon = React251.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React251.createElement( 34224 "svg", 34225 { 34226 width: size, 34227 height: size, 34228 viewBox: "0 0 14 14", 34229 fill: "none", 34230 xmlns: "http://www.w3.org/2000/svg", 34231 ref: forwardedRef, 34232 ...props 34233 }, 34234 React251.createElement( 34235 "path", 34236 { 34237 fillRule: "evenodd", 34238 clipRule: "evenodd", 34239 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", 34240 fill: color2 34241 } 34242 ) 34243)), UbuntuIcon = React251.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React251.createElement( 34244 "svg", 34245 { 34246 width: size, 34247 height: size, 34248 viewBox: "0 0 14 14", 34249 fill: "none", 34250 xmlns: "http://www.w3.org/2000/svg", 34251 ref: forwardedRef, 34252 ...props 34253 }, 34254 React251.createElement("g", { clipPath: "url(#prefix__clip0_1107_3497)", fill: color2 }, React251.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" })), 34255 React251.createElement("defs", null, React251.createElement("clipPath", { id: "prefix__clip0_1107_3497" }, React251.createElement("path", { fill: "#fff", d: "M0 0h14v14H0z" }))) 34256)), WindowsIcon = React251.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React251.createElement( 34257 "svg", 34258 { 34259 width: size, 34260 height: size, 34261 viewBox: "0 0 14 14", 34262 fill: "none", 34263 xmlns: "http://www.w3.org/2000/svg", 34264 ref: forwardedRef, 34265 ...props 34266 }, 34267 React251.createElement( 34268 "path", 34269 { 34270 d: "M6.5 1H1v5.5h5.5V1zM13 1H7.5v5.5H13V1zM7.5 7.5H13V13H7.5V7.5zM6.5 7.5H1V13h5.5V7.5z", 34271 fill: color2 34272 } 34273 ) 34274)), ChromeIcon = React251.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React251.createElement( 34275 "svg", 34276 { 34277 width: size, 34278 height: size, 34279 viewBox: "0 0 14 14", 34280 fill: "none", 34281 xmlns: "http://www.w3.org/2000/svg", 34282 ref: forwardedRef, 34283 ...props 34284 }, 34285 React251.createElement("g", { clipPath: "url(#prefix__clip0_1107_3496)" }, React251.createElement( 34286 "path", 34287 { 34288 fillRule: "evenodd", 34289 clipRule: "evenodd", 34290 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", 34291 fill: color2 34292 } 34293 )), 34294 React251.createElement("defs", null, React251.createElement("clipPath", { id: "prefix__clip0_1107_3496" }, React251.createElement("path", { fill: "#fff", d: "M0 0h14v14H0z" }))) 34295)), StorybookIcon = React251.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React251.createElement( 34296 "svg", 34297 { 34298 width: size, 34299 height: size, 34300 viewBox: "0 0 14 14", 34301 fill: "none", 34302 xmlns: "http://www.w3.org/2000/svg", 34303 ref: forwardedRef, 34304 ...props 34305 }, 34306 React251.createElement( 34307 "path", 34308 { 34309 fillRule: "evenodd", 34310 clipRule: "evenodd", 34311 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", 34312 fill: color2 34313 } 34314 ) 34315)), AzureDevOpsIcon = React251.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React251.createElement( 34316 "svg", 34317 { 34318 width: size, 34319 height: size, 34320 viewBox: "0 0 14 14", 34321 fill: "none", 34322 xmlns: "http://www.w3.org/2000/svg", 34323 ref: forwardedRef, 34324 ...props 34325 }, 34326 React251.createElement("g", { clipPath: "url(#prefix__clip0_1107_3503)" }, React251.createElement( 34327 "path", 34328 { 34329 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", 34330 fill: color2 34331 } 34332 )), 34333 React251.createElement("defs", null, React251.createElement("clipPath", { id: "prefix__clip0_1107_3503" }, React251.createElement("path", { fill: "#fff", d: "M0 0h14v14H0z" }))) 34334)), BitbucketIcon = React251.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React251.createElement( 34335 "svg", 34336 { 34337 width: size, 34338 height: size, 34339 viewBox: "0 0 14 14", 34340 fill: "none", 34341 xmlns: "http://www.w3.org/2000/svg", 34342 ref: forwardedRef, 34343 ...props 34344 }, 34345 React251.createElement( 34346 "path", 34347 { 34348 fillRule: "evenodd", 34349 clipRule: "evenodd", 34350 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", 34351 fill: color2 34352 } 34353 ) 34354)), ChromaticIcon = React251.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React251.createElement( 34355 "svg", 34356 { 34357 width: size, 34358 height: size, 34359 viewBox: "0 0 14 14", 34360 fill: "none", 34361 xmlns: "http://www.w3.org/2000/svg", 34362 ref: forwardedRef, 34363 ...props 34364 }, 34365 React251.createElement( 34366 "path", 34367 { 34368 fillRule: "evenodd", 34369 clipRule: "evenodd", 34370 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", 34371 fill: color2 34372 } 34373 ) 34374)), ComponentDrivenIcon = React251.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React251.createElement( 34375 "svg", 34376 { 34377 width: size, 34378 height: size, 34379 viewBox: "0 0 14 14", 34380 fill: "none", 34381 xmlns: "http://www.w3.org/2000/svg", 34382 ref: forwardedRef, 34383 ...props 34384 }, 34385 React251.createElement( 34386 "path", 34387 { 34388 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", 34389 fill: color2 34390 } 34391 ) 34392)), DiscordIcon = React251.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React251.createElement( 34393 "svg", 34394 { 34395 width: size, 34396 height: size, 34397 viewBox: "0 0 14 14", 34398 fill: "none", 34399 xmlns: "http://www.w3.org/2000/svg", 34400 ref: forwardedRef, 34401 ...props 34402 }, 34403 React251.createElement( 34404 "path", 34405 { 34406 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", 34407 fill: color2 34408 } 34409 ) 34410)), FacebookIcon = React251.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React251.createElement( 34411 "svg", 34412 { 34413 width: size, 34414 height: size, 34415 viewBox: "0 0 14 14", 34416 fill: "none", 34417 xmlns: "http://www.w3.org/2000/svg", 34418 ref: forwardedRef, 34419 ...props 34420 }, 34421 React251.createElement( 34422 "path", 34423 { 34424 fillRule: "evenodd", 34425 clipRule: "evenodd", 34426 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", 34427 fill: color2 34428 } 34429 ) 34430)), FigmaIcon = React251.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React251.createElement( 34431 "svg", 34432 { 34433 width: size, 34434 height: size, 34435 viewBox: "0 0 14 14", 34436 fill: "none", 34437 xmlns: "http://www.w3.org/2000/svg", 34438 ref: forwardedRef, 34439 ...props 34440 }, 34441 React251.createElement( 34442 "path", 34443 { 34444 fillRule: "evenodd", 34445 clipRule: "evenodd", 34446 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", 34447 fill: color2 34448 } 34449 ) 34450)), GDriveIcon = React251.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React251.createElement( 34451 "svg", 34452 { 34453 width: size, 34454 height: size, 34455 viewBox: "0 0 14 14", 34456 fill: "none", 34457 xmlns: "http://www.w3.org/2000/svg", 34458 ref: forwardedRef, 34459 ...props 34460 }, 34461 React251.createElement( 34462 "path", 34463 { 34464 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", 34465 fill: color2 34466 } 34467 ) 34468)), GithubIcon = React251.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React251.createElement( 34469 "svg", 34470 { 34471 width: size, 34472 height: size, 34473 viewBox: "0 0 14 14", 34474 fill: "none", 34475 xmlns: "http://www.w3.org/2000/svg", 34476 ref: forwardedRef, 34477 ...props 34478 }, 34479 React251.createElement( 34480 "path", 34481 { 34482 fillRule: "evenodd", 34483 clipRule: "evenodd", 34484 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", 34485 fill: color2 34486 } 34487 ) 34488)), GitlabIcon = React251.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React251.createElement( 34489 "svg", 34490 { 34491 width: size, 34492 height: size, 34493 viewBox: "0 0 14 14", 34494 fill: "none", 34495 xmlns: "http://www.w3.org/2000/svg", 34496 ref: forwardedRef, 34497 ...props 34498 }, 34499 React251.createElement( 34500 "path", 34501 { 34502 fillRule: "evenodd", 34503 clipRule: "evenodd", 34504 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", 34505 fill: color2 34506 } 34507 ) 34508)), GoogleIcon = React251.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React251.createElement( 34509 "svg", 34510 { 34511 width: size, 34512 height: size, 34513 viewBox: "0 0 14 14", 34514 fill: "none", 34515 xmlns: "http://www.w3.org/2000/svg", 34516 ref: forwardedRef, 34517 ...props 34518 }, 34519 React251.createElement( 34520 "path", 34521 { 34522 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", 34523 fill: color2 34524 } 34525 ) 34526)), GraphqlIcon = React251.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React251.createElement( 34527 "svg", 34528 { 34529 width: size, 34530 height: size, 34531 viewBox: "0 0 14 14", 34532 fill: "none", 34533 xmlns: "http://www.w3.org/2000/svg", 34534 ref: forwardedRef, 34535 ...props 34536 }, 34537 React251.createElement( 34538 "path", 34539 { 34540 fillRule: "evenodd", 34541 clipRule: "evenodd", 34542 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", 34543 fill: color2 34544 } 34545 ) 34546)), MediumIcon = React251.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React251.createElement( 34547 "svg", 34548 { 34549 width: size, 34550 height: size, 34551 viewBox: "0 0 14 14", 34552 fill: "none", 34553 xmlns: "http://www.w3.org/2000/svg", 34554 ref: forwardedRef, 34555 ...props 34556 }, 34557 React251.createElement( 34558 "path", 34559 { 34560 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", 34561 fill: color2 34562 } 34563 ) 34564)), ReduxIcon = React251.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React251.createElement( 34565 "svg", 34566 { 34567 width: size, 34568 height: size, 34569 viewBox: "0 0 14 14", 34570 fill: "none", 34571 xmlns: "http://www.w3.org/2000/svg", 34572 ref: forwardedRef, 34573 ...props 34574 }, 34575 React251.createElement( 34576 "path", 34577 { 34578 fillRule: "evenodd", 34579 clipRule: "evenodd", 34580 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", 34581 fill: color2 34582 } 34583 ) 34584)), TwitterIcon = React251.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React251.createElement( 34585 "svg", 34586 { 34587 width: size, 34588 height: size, 34589 viewBox: "0 0 14 14", 34590 fill: "none", 34591 xmlns: "http://www.w3.org/2000/svg", 34592 ref: forwardedRef, 34593 ...props 34594 }, 34595 React251.createElement( 34596 "path", 34597 { 34598 fillRule: "evenodd", 34599 clipRule: "evenodd", 34600 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", 34601 fill: color2 34602 } 34603 ) 34604)), YoutubeIcon = React251.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React251.createElement( 34605 "svg", 34606 { 34607 width: size, 34608 height: size, 34609 viewBox: "0 0 14 14", 34610 fill: "none", 34611 xmlns: "http://www.w3.org/2000/svg", 34612 ref: forwardedRef, 34613 ...props 34614 }, 34615 React251.createElement( 34616 "path", 34617 { 34618 fillRule: "evenodd", 34619 clipRule: "evenodd", 34620 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", 34621 fill: color2 34622 } 34623 ) 34624)), VSCodeIcon = React251.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React251.createElement( 34625 "svg", 34626 { 34627 width: size, 34628 height: size, 34629 viewBox: "0 0 14 14", 34630 fill: "none", 34631 xmlns: "http://www.w3.org/2000/svg", 34632 ref: forwardedRef, 34633 ...props 34634 }, 34635 React251.createElement( 34636 "path", 34637 { 34638 fillRule: "evenodd", 34639 clipRule: "evenodd", 34640 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", 34641 fill: color2 34642 } 34643 ) 34644)), LinkedinIcon = React251.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React251.createElement( 34645 "svg", 34646 { 34647 width: size, 34648 height: size, 34649 viewBox: "0 0 14 14", 34650 fill: "none", 34651 xmlns: "http://www.w3.org/2000/svg", 34652 ref: forwardedRef, 34653 ...props 34654 }, 34655 React251.createElement( 34656 "path", 34657 { 34658 fillRule: "evenodd", 34659 clipRule: "evenodd", 34660 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", 34661 fill: color2 34662 } 34663 ) 34664)), XIcon = React251.forwardRef( 34665 ({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React251.createElement( 34666 "svg", 34667 { 34668 width: size, 34669 height: size, 34670 viewBox: "0 0 14 14", 34671 fill: "none", 34672 xmlns: "http://www.w3.org/2000/svg", 34673 ref: forwardedRef, 34674 ...props 34675 }, 34676 React251.createElement( 34677 "path", 34678 { 34679 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", 34680 fill: color2 34681 } 34682 ) 34683 ) 34684), BrowserIcon = React251.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React251.createElement( 34685 "svg", 34686 { 34687 width: size, 34688 height: size, 34689 viewBox: "0 0 14 14", 34690 fill: "none", 34691 xmlns: "http://www.w3.org/2000/svg", 34692 ref: forwardedRef, 34693 ...props 34694 }, 34695 React251.createElement( 34696 "path", 34697 { 34698 fillRule: "evenodd", 34699 clipRule: "evenodd", 34700 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", 34701 fill: color2 34702 } 34703 ) 34704)), TabletIcon = React251.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React251.createElement( 34705 "svg", 34706 { 34707 width: size, 34708 height: size, 34709 viewBox: "0 0 14 15", 34710 fill: "none", 34711 xmlns: "http://www.w3.org/2000/svg", 34712 ref: forwardedRef, 34713 ...props 34714 }, 34715 React251.createElement( 34716 "path", 34717 { 34718 fillRule: "evenodd", 34719 clipRule: "evenodd", 34720 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", 34721 fill: color2 34722 } 34723 ) 34724)), MobileIcon = React251.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React251.createElement( 34725 "svg", 34726 { 34727 width: size, 34728 height: size, 34729 viewBox: "0 0 14 15", 34730 fill: "none", 34731 xmlns: "http://www.w3.org/2000/svg", 34732 ref: forwardedRef, 34733 ...props 34734 }, 34735 React251.createElement( 34736 "path", 34737 { 34738 fillRule: "evenodd", 34739 clipRule: "evenodd", 34740 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", 34741 fill: color2 34742 } 34743 ) 34744)), WatchIcon = React251.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React251.createElement( 34745 "svg", 34746 { 34747 width: size, 34748 height: size, 34749 viewBox: "0 0 14 15", 34750 fill: "none", 34751 xmlns: "http://www.w3.org/2000/svg", 34752 ref: forwardedRef, 34753 ...props 34754 }, 34755 React251.createElement( 34756 "path", 34757 { 34758 fillRule: "evenodd", 34759 clipRule: "evenodd", 34760 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", 34761 fill: color2 34762 } 34763 ) 34764)), SidebarIcon = React251.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React251.createElement( 34765 "svg", 34766 { 34767 width: size, 34768 height: size, 34769 viewBox: "0 0 14 14", 34770 fill: "none", 34771 xmlns: "http://www.w3.org/2000/svg", 34772 ref: forwardedRef, 34773 ...props 34774 }, 34775 React251.createElement( 34776 "path", 34777 { 34778 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", 34779 fill: color2 34780 } 34781 ), 34782 React251.createElement( 34783 "path", 34784 { 34785 fillRule: "evenodd", 34786 clipRule: "evenodd", 34787 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", 34788 fill: color2 34789 } 34790 ) 34791)), SidebarAltIcon = React251.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React251.createElement( 34792 "svg", 34793 { 34794 width: size, 34795 height: size, 34796 viewBox: "0 0 14 14", 34797 fill: "none", 34798 xmlns: "http://www.w3.org/2000/svg", 34799 ref: forwardedRef, 34800 ...props 34801 }, 34802 React251.createElement( 34803 "path", 34804 { 34805 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", 34806 fill: color2 34807 } 34808 ), 34809 React251.createElement( 34810 "path", 34811 { 34812 fillRule: "evenodd", 34813 clipRule: "evenodd", 34814 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", 34815 fill: color2 34816 } 34817 ) 34818)), SidebarAltToggleIcon = React251.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React251.createElement( 34819 "svg", 34820 { 34821 width: size, 34822 height: size, 34823 viewBox: "0 0 14 14", 34824 fill: "none", 34825 xmlns: "http://www.w3.org/2000/svg", 34826 ref: forwardedRef, 34827 ...props 34828 }, 34829 React251.createElement( 34830 "path", 34831 { 34832 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", 34833 fill: color2 34834 } 34835 ), 34836 React251.createElement( 34837 "path", 34838 { 34839 fillRule: "evenodd", 34840 clipRule: "evenodd", 34841 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", 34842 fill: color2 34843 } 34844 ) 34845)), SidebarToggleIcon = React251.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React251.createElement( 34846 "svg", 34847 { 34848 width: size, 34849 height: size, 34850 viewBox: "0 0 14 14", 34851 fill: "none", 34852 xmlns: "http://www.w3.org/2000/svg", 34853 ref: forwardedRef, 34854 ...props 34855 }, 34856 React251.createElement( 34857 "path", 34858 { 34859 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", 34860 fill: color2 34861 } 34862 ), 34863 React251.createElement( 34864 "path", 34865 { 34866 fillRule: "evenodd", 34867 clipRule: "evenodd", 34868 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", 34869 fill: color2 34870 } 34871 ) 34872)), BottomBarIcon = React251.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React251.createElement( 34873 "svg", 34874 { 34875 width: size, 34876 height: size, 34877 viewBox: "0 0 14 14", 34878 fill: "none", 34879 xmlns: "http://www.w3.org/2000/svg", 34880 ref: forwardedRef, 34881 ...props 34882 }, 34883 React251.createElement( 34884 "path", 34885 { 34886 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", 34887 fill: color2 34888 } 34889 ), 34890 React251.createElement( 34891 "path", 34892 { 34893 fillRule: "evenodd", 34894 clipRule: "evenodd", 34895 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", 34896 fill: color2 34897 } 34898 ) 34899)), BottomBarToggleIcon = React251.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React251.createElement( 34900 "svg", 34901 { 34902 width: size, 34903 height: size, 34904 viewBox: "0 0 14 14", 34905 fill: "none", 34906 xmlns: "http://www.w3.org/2000/svg", 34907 ref: forwardedRef, 34908 ...props 34909 }, 34910 React251.createElement( 34911 "path", 34912 { 34913 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", 34914 fill: color2 34915 } 34916 ), 34917 React251.createElement( 34918 "path", 34919 { 34920 fillRule: "evenodd", 34921 clipRule: "evenodd", 34922 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", 34923 fill: color2 34924 } 34925 ) 34926)), CPUIcon = React251.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React251.createElement( 34927 "svg", 34928 { 34929 width: size, 34930 height: size, 34931 viewBox: "0 0 14 15", 34932 fill: "none", 34933 xmlns: "http://www.w3.org/2000/svg", 34934 ref: forwardedRef, 34935 ...props 34936 }, 34937 React251.createElement( 34938 "path", 34939 { 34940 fillRule: "evenodd", 34941 clipRule: "evenodd", 34942 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", 34943 fill: color2 34944 } 34945 ), 34946 React251.createElement( 34947 "path", 34948 { 34949 fillRule: "evenodd", 34950 clipRule: "evenodd", 34951 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", 34952 fill: color2 34953 } 34954 ) 34955)), DatabaseIcon = React251.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React251.createElement( 34956 "svg", 34957 { 34958 width: size, 34959 height: size, 34960 viewBox: "0 0 14 14", 34961 fill: "none", 34962 xmlns: "http://www.w3.org/2000/svg", 34963 ref: forwardedRef, 34964 ...props 34965 }, 34966 React251.createElement( 34967 "path", 34968 { 34969 fillRule: "evenodd", 34970 clipRule: "evenodd", 34971 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", 34972 fill: color2 34973 } 34974 ) 34975)), MemoryIcon = React251.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React251.createElement( 34976 "svg", 34977 { 34978 width: size, 34979 height: size, 34980 viewBox: "0 0 14 15", 34981 fill: "none", 34982 xmlns: "http://www.w3.org/2000/svg", 34983 ref: forwardedRef, 34984 ...props 34985 }, 34986 React251.createElement( 34987 "path", 34988 { 34989 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", 34990 fill: color2 34991 } 34992 ), 34993 React251.createElement( 34994 "path", 34995 { 34996 fillRule: "evenodd", 34997 clipRule: "evenodd", 34998 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", 34999 fill: color2 35000 } 35001 ) 35002)), StructureIcon = React251.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React251.createElement( 35003 "svg", 35004 { 35005 width: size, 35006 height: size, 35007 viewBox: "0 0 14 14", 35008 fill: "none", 35009 xmlns: "http://www.w3.org/2000/svg", 35010 ref: forwardedRef, 35011 ...props 35012 }, 35013 React251.createElement( 35014 "path", 35015 { 35016 fillRule: "evenodd", 35017 clipRule: "evenodd", 35018 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", 35019 fill: color2 35020 } 35021 ) 35022)), BoxIcon = React251.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React251.createElement( 35023 "svg", 35024 { 35025 width: size, 35026 height: size, 35027 viewBox: "0 0 14 14", 35028 fill: "none", 35029 xmlns: "http://www.w3.org/2000/svg", 35030 ref: forwardedRef, 35031 ...props 35032 }, 35033 React251.createElement( 35034 "path", 35035 { 35036 fillRule: "evenodd", 35037 clipRule: "evenodd", 35038 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", 35039 fill: color2 35040 } 35041 ) 35042)), PowerIcon = React251.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React251.createElement( 35043 "svg", 35044 { 35045 width: size, 35046 height: size, 35047 viewBox: "0 0 14 14", 35048 fill: "none", 35049 xmlns: "http://www.w3.org/2000/svg", 35050 ref: forwardedRef, 35051 ...props 35052 }, 35053 React251.createElement("path", { d: "M7.5.5a.5.5 0 00-1 0v6a.5.5 0 001 0v-6z", fill: color2 }), 35054 React251.createElement( 35055 "path", 35056 { 35057 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", 35058 fill: color2 35059 } 35060 ) 35061)), EditIcon = React251.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React251.createElement( 35062 "svg", 35063 { 35064 width: size, 35065 height: size, 35066 viewBox: "0 0 14 14", 35067 fill: "none", 35068 xmlns: "http://www.w3.org/2000/svg", 35069 ref: forwardedRef, 35070 ...props 35071 }, 35072 React251.createElement( 35073 "path", 35074 { 35075 fillRule: "evenodd", 35076 clipRule: "evenodd", 35077 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", 35078 fill: color2 35079 } 35080 ) 35081)), CogIcon = React251.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React251.createElement( 35082 "svg", 35083 { 35084 width: size, 35085 height: size, 35086 viewBox: "0 0 14 14", 35087 fill: "none", 35088 xmlns: "http://www.w3.org/2000/svg", 35089 ref: forwardedRef, 35090 ...props 35091 }, 35092 React251.createElement( 35093 "path", 35094 { 35095 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", 35096 fill: color2 35097 } 35098 ), 35099 React251.createElement( 35100 "path", 35101 { 35102 fillRule: "evenodd", 35103 clipRule: "evenodd", 35104 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", 35105 fill: color2 35106 } 35107 ) 35108)), NutIcon = React251.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React251.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 React251.createElement( 35120 "path", 35121 { 35122 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", 35123 fill: color2 35124 } 35125 ), 35126 React251.createElement( 35127 "path", 35128 { 35129 fillRule: "evenodd", 35130 clipRule: "evenodd", 35131 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", 35132 fill: color2 35133 } 35134 ) 35135)), WrenchIcon = React251.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React251.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 React251.createElement( 35147 "path", 35148 { 35149 fillRule: "evenodd", 35150 clipRule: "evenodd", 35151 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", 35152 fill: color2 35153 } 35154 ) 35155)), EllipsisIcon = React251.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React251.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 React251.createElement( 35167 "path", 35168 { 35169 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", 35170 fill: color2 35171 } 35172 ) 35173)), WandIcon = React251.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React251.createElement( 35174 "svg", 35175 { 35176 width: size, 35177 height: size, 35178 viewBox: "0 0 14 15", 35179 fill: "none", 35180 xmlns: "http://www.w3.org/2000/svg", 35181 ref: forwardedRef, 35182 ...props 35183 }, 35184 React251.createElement( 35185 "path", 35186 { 35187 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", 35188 fill: color2 35189 } 35190 ), 35191 React251.createElement( 35192 "path", 35193 { 35194 fillRule: "evenodd", 35195 clipRule: "evenodd", 35196 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", 35197 fill: color2 35198 } 35199 ) 35200)), SweepIcon = React251.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React251.createElement( 35201 "svg", 35202 { 35203 width: size, 35204 height: size, 35205 viewBox: "0 0 14 14", 35206 fill: "none", 35207 xmlns: "http://www.w3.org/2000/svg", 35208 ref: forwardedRef, 35209 ...props 35210 }, 35211 React251.createElement( 35212 "path", 35213 { 35214 fillRule: "evenodd", 35215 clipRule: "evenodd", 35216 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", 35217 fill: color2 35218 } 35219 ), 35220 React251.createElement( 35221 "path", 35222 { 35223 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", 35224 fill: color2 35225 } 35226 ) 35227)), CheckIcon = React251.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React251.createElement( 35228 "svg", 35229 { 35230 width: size, 35231 height: size, 35232 viewBox: "0 0 14 14", 35233 fill: "none", 35234 xmlns: "http://www.w3.org/2000/svg", 35235 ref: forwardedRef, 35236 ...props 35237 }, 35238 React251.createElement( 35239 "path", 35240 { 35241 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", 35242 fill: color2 35243 } 35244 ) 35245)), FormIcon = React251.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React251.createElement( 35246 "svg", 35247 { 35248 width: size, 35249 height: size, 35250 viewBox: "0 0 14 14", 35251 fill: "none", 35252 xmlns: "http://www.w3.org/2000/svg", 35253 ref: forwardedRef, 35254 ...props 35255 }, 35256 React251.createElement( 35257 "path", 35258 { 35259 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", 35260 fill: color2 35261 } 35262 ), 35263 React251.createElement( 35264 "path", 35265 { 35266 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", 35267 fill: color2 35268 } 35269 ) 35270)), BatchDenyIcon = React251.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React251.createElement( 35271 "svg", 35272 { 35273 width: size, 35274 height: size, 35275 viewBox: "0 0 14 14", 35276 fill: "none", 35277 xmlns: "http://www.w3.org/2000/svg", 35278 ref: forwardedRef, 35279 ...props 35280 }, 35281 React251.createElement( 35282 "path", 35283 { 35284 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", 35285 fill: color2 35286 } 35287 ) 35288)), BatchAcceptIcon = React251.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React251.createElement( 35289 "svg", 35290 { 35291 width: size, 35292 height: size, 35293 viewBox: "0 0 14 14", 35294 fill: "none", 35295 xmlns: "http://www.w3.org/2000/svg", 35296 ref: forwardedRef, 35297 ...props 35298 }, 35299 React251.createElement( 35300 "path", 35301 { 35302 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", 35303 fill: color2 35304 } 35305 ) 35306)), ControlsIcon = React251.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React251.createElement( 35307 "svg", 35308 { 35309 width: size, 35310 height: size, 35311 viewBox: "0 0 14 14", 35312 fill: "none", 35313 xmlns: "http://www.w3.org/2000/svg", 35314 ref: forwardedRef, 35315 ...props 35316 }, 35317 React251.createElement( 35318 "path", 35319 { 35320 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", 35321 fill: color2 35322 } 35323 ) 35324)), PlusIcon = React251.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React251.createElement( 35325 "svg", 35326 { 35327 width: size, 35328 height: size, 35329 viewBox: "0 0 14 14", 35330 fill: "none", 35331 xmlns: "http://www.w3.org/2000/svg", 35332 ref: forwardedRef, 35333 ...props 35334 }, 35335 React251.createElement( 35336 "path", 35337 { 35338 d: "M7.5.5a.5.5 0 00-1 0v6h-6a.5.5 0 000 1h6v6a.5.5 0 001 0v-6h6a.5.5 0 000-1h-6v-6z", 35339 fill: color2 35340 } 35341 ) 35342)), CloseAltIcon = React251.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React251.createElement( 35343 "svg", 35344 { 35345 width: size, 35346 height: size, 35347 viewBox: "0 0 14 14", 35348 fill: "none", 35349 xmlns: "http://www.w3.org/2000/svg", 35350 ref: forwardedRef, 35351 ...props 35352 }, 35353 React251.createElement( 35354 "path", 35355 { 35356 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", 35357 fill: color2 35358 } 35359 ) 35360)), CrossIcon = React251.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React251.createElement( 35361 "svg", 35362 { 35363 width: size, 35364 height: size, 35365 viewBox: "0 0 14 14", 35366 fill: "none", 35367 xmlns: "http://www.w3.org/2000/svg", 35368 ref: forwardedRef, 35369 ...props 35370 }, 35371 React251.createElement( 35372 "path", 35373 { 35374 d: "M1.854 1.146a.5.5 0 10-.708.708L6.293 7l-5.147 5.146a.5.5 0 00.708.708L7 7.707l5.146 5.147a.5.5 0 00.708-.708L7.707 7l5.147-5.146a.5.5 0 00-.708-.708L7 6.293 1.854 1.146z", 35375 fill: color2 35376 } 35377 ) 35378)), TrashIcon = React251.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React251.createElement( 35379 "svg", 35380 { 35381 width: size, 35382 height: size, 35383 viewBox: "0 0 14 14", 35384 fill: "none", 35385 xmlns: "http://www.w3.org/2000/svg", 35386 ref: forwardedRef, 35387 ...props 35388 }, 35389 React251.createElement( 35390 "path", 35391 { 35392 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", 35393 fill: color2 35394 } 35395 ), 35396 React251.createElement( 35397 "path", 35398 { 35399 fillRule: "evenodd", 35400 clipRule: "evenodd", 35401 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", 35402 fill: color2 35403 } 35404 ) 35405)), PinAltIcon = React251.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React251.createElement( 35406 "svg", 35407 { 35408 width: size, 35409 height: size, 35410 viewBox: "0 0 14 14", 35411 fill: "none", 35412 xmlns: "http://www.w3.org/2000/svg", 35413 ref: forwardedRef, 35414 ...props 35415 }, 35416 React251.createElement("g", { clipPath: "url(#prefix__clip0_1107_3502)" }, React251.createElement( 35417 "path", 35418 { 35419 fillRule: "evenodd", 35420 clipRule: "evenodd", 35421 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", 35422 fill: color2 35423 } 35424 )), 35425 React251.createElement("defs", null, React251.createElement("clipPath", { id: "prefix__clip0_1107_3502" }, React251.createElement("path", { fill: "#fff", d: "M0 0h14v14H0z" }))) 35426)), UnpinIcon = React251.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React251.createElement( 35427 "svg", 35428 { 35429 width: size, 35430 height: size, 35431 viewBox: "0 0 14 14", 35432 fill: "none", 35433 xmlns: "http://www.w3.org/2000/svg", 35434 ref: forwardedRef, 35435 ...props 35436 }, 35437 React251.createElement("g", { clipPath: "url(#prefix__clip0_1107_3501)", fill: color2 }, React251.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" })), 35438 React251.createElement("defs", null, React251.createElement("clipPath", { id: "prefix__clip0_1107_3501" }, React251.createElement("path", { fill: "#fff", d: "M0 0h14v14H0z" }))) 35439)), AddIcon = React251.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React251.createElement( 35440 "svg", 35441 { 35442 width: size, 35443 height: size, 35444 viewBox: "0 0 14 14", 35445 fill: "none", 35446 xmlns: "http://www.w3.org/2000/svg", 35447 ref: forwardedRef, 35448 ...props 35449 }, 35450 React251.createElement( 35451 "path", 35452 { 35453 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", 35454 fill: color2 35455 } 35456 ), 35457 React251.createElement( 35458 "path", 35459 { 35460 fillRule: "evenodd", 35461 clipRule: "evenodd", 35462 d: "M7 14A7 7 0 107 0a7 7 0 000 14zm0-1A6 6 0 107 1a6 6 0 000 12z", 35463 fill: color2 35464 } 35465 ) 35466)), SubtractIcon = React251.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React251.createElement( 35467 "svg", 35468 { 35469 width: size, 35470 height: size, 35471 viewBox: "0 0 14 14", 35472 fill: "none", 35473 xmlns: "http://www.w3.org/2000/svg", 35474 ref: forwardedRef, 35475 ...props 35476 }, 35477 React251.createElement("path", { d: "M3.5 6.5a.5.5 0 000 1h7a.5.5 0 000-1h-7z", fill: color2 }), 35478 React251.createElement( 35479 "path", 35480 { 35481 fillRule: "evenodd", 35482 clipRule: "evenodd", 35483 d: "M14 7A7 7 0 110 7a7 7 0 0114 0zm-1 0A6 6 0 111 7a6 6 0 0112 0z", 35484 fill: color2 35485 } 35486 ) 35487)), CloseIcon = React251.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React251.createElement( 35488 "svg", 35489 { 35490 width: size, 35491 height: size, 35492 viewBox: "0 0 14 14", 35493 fill: "none", 35494 xmlns: "http://www.w3.org/2000/svg", 35495 ref: forwardedRef, 35496 ...props 35497 }, 35498 React251.createElement( 35499 "path", 35500 { 35501 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", 35502 fill: color2 35503 } 35504 ), 35505 React251.createElement( 35506 "path", 35507 { 35508 fillRule: "evenodd", 35509 clipRule: "evenodd", 35510 d: "M7 14A7 7 0 107 0a7 7 0 000 14zm0-1A6 6 0 107 1a6 6 0 000 12z", 35511 fill: color2 35512 } 35513 ) 35514)), DeleteIcon = React251.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React251.createElement( 35515 "svg", 35516 { 35517 width: size, 35518 height: size, 35519 viewBox: "0 0 14 14", 35520 fill: "none", 35521 xmlns: "http://www.w3.org/2000/svg", 35522 ref: forwardedRef, 35523 ...props 35524 }, 35525 React251.createElement( 35526 "path", 35527 { 35528 fillRule: "evenodd", 35529 clipRule: "evenodd", 35530 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", 35531 fill: color2 35532 } 35533 ) 35534)), PassedIcon = React251.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React251.createElement( 35535 "svg", 35536 { 35537 width: size, 35538 height: size, 35539 viewBox: "0 0 14 14", 35540 fill: "none", 35541 xmlns: "http://www.w3.org/2000/svg", 35542 ref: forwardedRef, 35543 ...props 35544 }, 35545 React251.createElement( 35546 "path", 35547 { 35548 fillRule: "evenodd", 35549 clipRule: "evenodd", 35550 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", 35551 fill: color2 35552 } 35553 ) 35554)), ChangedIcon = React251.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React251.createElement( 35555 "svg", 35556 { 35557 width: size, 35558 height: size, 35559 viewBox: "0 0 14 14", 35560 fill: "none", 35561 xmlns: "http://www.w3.org/2000/svg", 35562 ref: forwardedRef, 35563 ...props 35564 }, 35565 React251.createElement( 35566 "path", 35567 { 35568 fillRule: "evenodd", 35569 clipRule: "evenodd", 35570 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", 35571 fill: color2 35572 } 35573 ) 35574)), FailedIcon = React251.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React251.createElement( 35575 "svg", 35576 { 35577 width: size, 35578 height: size, 35579 viewBox: "0 0 14 14", 35580 fill: "none", 35581 xmlns: "http://www.w3.org/2000/svg", 35582 ref: forwardedRef, 35583 ...props 35584 }, 35585 React251.createElement( 35586 "path", 35587 { 35588 fillRule: "evenodd", 35589 clipRule: "evenodd", 35590 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", 35591 fill: color2 35592 } 35593 ) 35594)), ClearIcon = React251.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React251.createElement( 35595 "svg", 35596 { 35597 width: size, 35598 height: size, 35599 viewBox: "0 0 14 14", 35600 fill: "none", 35601 xmlns: "http://www.w3.org/2000/svg", 35602 ref: forwardedRef, 35603 ...props 35604 }, 35605 React251.createElement( 35606 "path", 35607 { 35608 fillRule: "evenodd", 35609 clipRule: "evenodd", 35610 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", 35611 fill: color2 35612 } 35613 ) 35614)), CommentIcon = React251.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React251.createElement( 35615 "svg", 35616 { 35617 width: size, 35618 height: size, 35619 viewBox: "0 0 14 15", 35620 fill: "none", 35621 xmlns: "http://www.w3.org/2000/svg", 35622 ref: forwardedRef, 35623 ...props 35624 }, 35625 React251.createElement( 35626 "path", 35627 { 35628 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", 35629 fill: color2 35630 } 35631 ), 35632 React251.createElement( 35633 "path", 35634 { 35635 fillRule: "evenodd", 35636 clipRule: "evenodd", 35637 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", 35638 fill: color2 35639 } 35640 ) 35641)), CommentAddIcon = React251.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React251.createElement( 35642 "svg", 35643 { 35644 width: size, 35645 height: size, 35646 viewBox: "0 0 14 15", 35647 fill: "none", 35648 xmlns: "http://www.w3.org/2000/svg", 35649 ref: forwardedRef, 35650 ...props 35651 }, 35652 React251.createElement( 35653 "path", 35654 { 35655 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", 35656 fill: color2 35657 } 35658 ), 35659 React251.createElement( 35660 "path", 35661 { 35662 fillRule: "evenodd", 35663 clipRule: "evenodd", 35664 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", 35665 fill: color2 35666 } 35667 ) 35668)), RequestChangeIcon = React251.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React251.createElement( 35669 "svg", 35670 { 35671 width: size, 35672 height: size, 35673 viewBox: "0 0 14 15", 35674 fill: "none", 35675 xmlns: "http://www.w3.org/2000/svg", 35676 ref: forwardedRef, 35677 ...props 35678 }, 35679 React251.createElement( 35680 "path", 35681 { 35682 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", 35683 fill: color2 35684 } 35685 ), 35686 React251.createElement( 35687 "path", 35688 { 35689 fillRule: "evenodd", 35690 clipRule: "evenodd", 35691 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", 35692 fill: color2 35693 } 35694 ) 35695)), CommentsIcon = React251.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React251.createElement( 35696 "svg", 35697 { 35698 width: size, 35699 height: size, 35700 viewBox: "0 0 14 15", 35701 fill: "none", 35702 xmlns: "http://www.w3.org/2000/svg", 35703 ref: forwardedRef, 35704 ...props 35705 }, 35706 React251.createElement( 35707 "path", 35708 { 35709 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", 35710 fill: color2 35711 } 35712 ), 35713 React251.createElement( 35714 "path", 35715 { 35716 fillRule: "evenodd", 35717 clipRule: "evenodd", 35718 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", 35719 fill: color2 35720 } 35721 ) 35722)), ChatIcon = React251.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React251.createElement( 35723 "svg", 35724 { 35725 width: size, 35726 height: size, 35727 viewBox: "0 0 14 14", 35728 fill: "none", 35729 xmlns: "http://www.w3.org/2000/svg", 35730 ref: forwardedRef, 35731 ...props 35732 }, 35733 React251.createElement( 35734 "path", 35735 { 35736 fillRule: "evenodd", 35737 clipRule: "evenodd", 35738 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", 35739 fill: color2 35740 } 35741 ) 35742)), LockIcon = React251.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React251.createElement( 35743 "svg", 35744 { 35745 width: size, 35746 height: size, 35747 viewBox: "0 0 14 15", 35748 fill: "none", 35749 xmlns: "http://www.w3.org/2000/svg", 35750 ref: forwardedRef, 35751 ...props 35752 }, 35753 React251.createElement( 35754 "path", 35755 { 35756 d: "M8 8.004a1 1 0 01-.5.866v1.634a.5.5 0 01-1 0V8.87A1 1 0 118 8.004z", 35757 fill: color2 35758 } 35759 ), 35760 React251.createElement( 35761 "path", 35762 { 35763 fillRule: "evenodd", 35764 clipRule: "evenodd", 35765 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", 35766 fill: color2 35767 } 35768 ) 35769)), UnlockIcon = React251.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React251.createElement( 35770 "svg", 35771 { 35772 width: size, 35773 height: size, 35774 viewBox: "0 0 14 14", 35775 fill: "none", 35776 xmlns: "http://www.w3.org/2000/svg", 35777 ref: forwardedRef, 35778 ...props 35779 }, 35780 React251.createElement("g", { clipPath: "url(#prefix__clip0_1107_3614)", fill: color2 }, React251.createElement("path", { d: "M6.5 8.87a1 1 0 111 0v1.634a.5.5 0 01-1 0V8.87z" }), React251.createElement( 35781 "path", 35782 { 35783 fillRule: "evenodd", 35784 clipRule: "evenodd", 35785 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" 35786 } 35787 )), 35788 React251.createElement("defs", null, React251.createElement("clipPath", { id: "prefix__clip0_1107_3614" }, React251.createElement("path", { fill: "#fff", d: "M0 0h14v14H0z" }))) 35789)), KeyIcon = React251.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React251.createElement( 35790 "svg", 35791 { 35792 width: size, 35793 height: size, 35794 viewBox: "0 0 14 14", 35795 fill: "none", 35796 xmlns: "http://www.w3.org/2000/svg", 35797 ref: forwardedRef, 35798 ...props 35799 }, 35800 React251.createElement("path", { d: "M11 4a1 1 0 11-2 0 1 1 0 012 0z", fill: color2 }), 35801 React251.createElement( 35802 "path", 35803 { 35804 fillRule: "evenodd", 35805 clipRule: "evenodd", 35806 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", 35807 fill: color2 35808 } 35809 ) 35810)), OutboxIcon = React251.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React251.createElement( 35811 "svg", 35812 { 35813 width: size, 35814 height: size, 35815 viewBox: "0 0 14 14", 35816 fill: "none", 35817 xmlns: "http://www.w3.org/2000/svg", 35818 ref: forwardedRef, 35819 ...props 35820 }, 35821 React251.createElement( 35822 "path", 35823 { 35824 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", 35825 fill: color2 35826 } 35827 ), 35828 React251.createElement( 35829 "path", 35830 { 35831 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", 35832 fill: color2 35833 } 35834 ) 35835)), CreditIcon = React251.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React251.createElement( 35836 "svg", 35837 { 35838 width: size, 35839 height: size, 35840 viewBox: "0 0 14 14", 35841 fill: "none", 35842 xmlns: "http://www.w3.org/2000/svg", 35843 ref: forwardedRef, 35844 ...props 35845 }, 35846 React251.createElement("path", { d: "M2.5 8.004a.5.5 0 100 1h3a.5.5 0 000-1h-3z", fill: color2 }), 35847 React251.createElement( 35848 "path", 35849 { 35850 fillRule: "evenodd", 35851 clipRule: "evenodd", 35852 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", 35853 fill: color2 35854 } 35855 ) 35856)), ButtonIcon = React251.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React251.createElement( 35857 "svg", 35858 { 35859 width: size, 35860 height: size, 35861 viewBox: "0 0 14 14", 35862 fill: "none", 35863 xmlns: "http://www.w3.org/2000/svg", 35864 ref: forwardedRef, 35865 ...props 35866 }, 35867 React251.createElement( 35868 "path", 35869 { 35870 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", 35871 fill: color2 35872 } 35873 ), 35874 React251.createElement( 35875 "path", 35876 { 35877 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", 35878 fill: color2 35879 } 35880 ) 35881)), TypeIcon = React251.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React251.createElement( 35882 "svg", 35883 { 35884 width: size, 35885 height: size, 35886 viewBox: "0 0 14 14", 35887 fill: "none", 35888 xmlns: "http://www.w3.org/2000/svg", 35889 ref: forwardedRef, 35890 ...props 35891 }, 35892 React251.createElement( 35893 "path", 35894 { 35895 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", 35896 fill: color2 35897 } 35898 ), 35899 React251.createElement( 35900 "path", 35901 { 35902 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", 35903 fill: color2 35904 } 35905 ) 35906)), PointerDefaultIcon = React251.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React251.createElement( 35907 "svg", 35908 { 35909 width: size, 35910 height: size, 35911 viewBox: "0 0 14 14", 35912 fill: "none", 35913 xmlns: "http://www.w3.org/2000/svg", 35914 ref: forwardedRef, 35915 ...props 35916 }, 35917 React251.createElement( 35918 "path", 35919 { 35920 fillRule: "evenodd", 35921 clipRule: "evenodd", 35922 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", 35923 fill: color2 35924 } 35925 ) 35926)), PointerHandIcon = React251.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React251.createElement( 35927 "svg", 35928 { 35929 width: size, 35930 height: size, 35931 viewBox: "0 0 14 14", 35932 fill: "none", 35933 xmlns: "http://www.w3.org/2000/svg", 35934 ref: forwardedRef, 35935 ...props 35936 }, 35937 React251.createElement( 35938 "path", 35939 { 35940 fillRule: "evenodd", 35941 clipRule: "evenodd", 35942 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", 35943 fill: color2 35944 } 35945 ) 35946)), CommandIcon = React251.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React251.createElement( 35947 "svg", 35948 { 35949 width: size, 35950 height: size, 35951 viewBox: "0 0 14 14", 35952 fill: "none", 35953 xmlns: "http://www.w3.org/2000/svg", 35954 ref: forwardedRef, 35955 ...props 35956 }, 35957 React251.createElement( 35958 "path", 35959 { 35960 fillRule: "evenodd", 35961 clipRule: "evenodd", 35962 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", 35963 fill: color2 35964 } 35965 ) 35966)), SaveIcon = React251.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React251.createElement( 35967 "svg", 35968 { 35969 width: size, 35970 height: size, 35971 viewBox: "0 0 14 14", 35972 fill: "none", 35973 xmlns: "http://www.w3.org/2000/svg", 35974 ref: forwardedRef, 35975 ...props 35976 }, 35977 React251.createElement( 35978 "path", 35979 { 35980 fillRule: "evenodd", 35981 clipRule: "evenodd", 35982 d: "M2.917 1.25A1.667 1.667 0 001.25 2.917v8.166a1.666 1.666 0 001.667 1.667h8.166a1.666 1.666 0 001.667-1.667V4.667a.5.5 0 00-.146-.354L9.687 1.396a.5.5 0 00-.354-.146H2.917zm0 1a.667.667 0 00-.667.667v8.166a.667.667 0 00.667.667h.666V7.583a.5.5 0 01.5-.5h5.834a.5.5 0 01.5.5v4.167h.666a.666.666 0 00.667-.667v-6.21L9.126 2.25H4.583v1.917H8.75a.5.5 0 110 1H4.083a.5.5 0 01-.5-.5V2.25h-.666zm1.666 9.5h4.834V8.084H4.583v3.666z", 35983 fill: color2 35984 } 35985 ) 35986)), SortDownIcon = React251.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React251.createElement( 35987 "svg", 35988 { 35989 width: size, 35990 height: size, 35991 viewBox: "0 0 14 14", 35992 fill: "none", 35993 xmlns: "http://www.w3.org/2000/svg", 35994 ref: forwardedRef, 35995 ...props 35996 }, 35997 React251.createElement( 35998 "path", 35999 { 36000 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", 36001 fill: color2 36002 } 36003 ) 36004)), SortUpIcon = React251.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React251.createElement( 36005 "svg", 36006 { 36007 width: size, 36008 height: size, 36009 viewBox: "0 0 14 14", 36010 fill: "none", 36011 xmlns: "http://www.w3.org/2000/svg", 36012 ref: forwardedRef, 36013 ...props 36014 }, 36015 React251.createElement( 36016 "path", 36017 { 36018 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", 36019 fill: color2 36020 } 36021 ) 36022)), BugIcon = React251.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React251.createElement( 36023 "svg", 36024 { 36025 width: size, 36026 height: size, 36027 viewBox: "0 0 14 14", 36028 fill: "none", 36029 xmlns: "http://www.w3.org/2000/svg", 36030 ref: forwardedRef, 36031 ...props 36032 }, 36033 React251.createElement( 36034 "path", 36035 { 36036 fillRule: "evenodd", 36037 clipRule: "evenodd", 36038 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", 36039 fill: color2 36040 } 36041 ) 36042)), EditorIcon = React251.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React251.createElement( 36043 "svg", 36044 { 36045 width: size, 36046 height: size, 36047 viewBox: "0 0 14 14", 36048 fill: "none", 36049 xmlns: "http://www.w3.org/2000/svg", 36050 ref: forwardedRef, 36051 ...props 36052 }, 36053 React251.createElement( 36054 "path", 36055 { 36056 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", 36057 fill: color2 36058 } 36059 ), 36060 React251.createElement( 36061 "path", 36062 { 36063 fillRule: "evenodd", 36064 clipRule: "evenodd", 36065 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", 36066 fill: color2 36067 } 36068 ) 36069)), InfoIcon = React251.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React251.createElement( 36070 "svg", 36071 { 36072 width: size, 36073 height: size, 36074 viewBox: "0 0 14 14", 36075 fill: "none", 36076 xmlns: "http://www.w3.org/2000/svg", 36077 ref: forwardedRef, 36078 ...props 36079 }, 36080 React251.createElement( 36081 "path", 36082 { 36083 fillRule: "evenodd", 36084 clipRule: "evenodd", 36085 d: "M7 13A6 6 0 107 1a6 6 0 000 12zm0 1A7 7 0 107 0a7 7 0 000 14z", 36086 fill: color2 36087 } 36088 ), 36089 React251.createElement( 36090 "path", 36091 { 36092 fillRule: "evenodd", 36093 clipRule: "evenodd", 36094 d: "M7 5.5a.5.5 0 01.5.5v4.5a.5.5 0 01-1 0V6a.5.5 0 01.5-.5z", 36095 fill: color2 36096 } 36097 ), 36098 React251.createElement("path", { d: "M7.75 3.75a.75.75 0 11-1.5 0 .75.75 0 011.5 0z", fill: color2 }) 36099)), QuestionIcon = React251.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React251.createElement( 36100 "svg", 36101 { 36102 width: size, 36103 height: size, 36104 viewBox: "0 0 14 14", 36105 fill: "none", 36106 xmlns: "http://www.w3.org/2000/svg", 36107 ref: forwardedRef, 36108 ...props 36109 }, 36110 React251.createElement( 36111 "path", 36112 { 36113 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", 36114 fill: color2 36115 } 36116 ), 36117 React251.createElement( 36118 "path", 36119 { 36120 fillRule: "evenodd", 36121 clipRule: "evenodd", 36122 d: "M14 7A7 7 0 110 7a7 7 0 0114 0zm-1 0A6 6 0 111 7a6 6 0 0112 0z", 36123 fill: color2 36124 } 36125 ) 36126)), SupportIcon = React251.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React251.createElement( 36127 "svg", 36128 { 36129 width: size, 36130 height: size, 36131 viewBox: "0 0 14 14", 36132 fill: "none", 36133 xmlns: "http://www.w3.org/2000/svg", 36134 ref: forwardedRef, 36135 ...props 36136 }, 36137 React251.createElement( 36138 "path", 36139 { 36140 fillRule: "evenodd", 36141 clipRule: "evenodd", 36142 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", 36143 fill: color2 36144 } 36145 ) 36146)), AlertIcon = React251.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React251.createElement( 36147 "svg", 36148 { 36149 width: size, 36150 height: size, 36151 viewBox: "0 0 14 14", 36152 fill: "none", 36153 xmlns: "http://www.w3.org/2000/svg", 36154 ref: forwardedRef, 36155 ...props 36156 }, 36157 React251.createElement( 36158 "path", 36159 { 36160 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", 36161 fill: color2 36162 } 36163 ), 36164 React251.createElement( 36165 "path", 36166 { 36167 fillRule: "evenodd", 36168 clipRule: "evenodd", 36169 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", 36170 fill: color2 36171 } 36172 ) 36173)), AlertAltIcon = React251.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React251.createElement( 36174 "svg", 36175 { 36176 width: size, 36177 height: size, 36178 viewBox: "0 0 14 14", 36179 fill: "none", 36180 xmlns: "http://www.w3.org/2000/svg", 36181 ref: forwardedRef, 36182 ...props 36183 }, 36184 React251.createElement( 36185 "path", 36186 { 36187 fillRule: "evenodd", 36188 clipRule: "evenodd", 36189 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", 36190 fill: color2 36191 } 36192 ) 36193)), EmailIcon = React251.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React251.createElement( 36194 "svg", 36195 { 36196 width: size, 36197 height: size, 36198 viewBox: "0 0 14 14", 36199 fill: "none", 36200 xmlns: "http://www.w3.org/2000/svg", 36201 ref: forwardedRef, 36202 ...props 36203 }, 36204 React251.createElement( 36205 "path", 36206 { 36207 fillRule: "evenodd", 36208 clipRule: "evenodd", 36209 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", 36210 fill: color2 36211 } 36212 ) 36213)), PhoneIcon = React251.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React251.createElement( 36214 "svg", 36215 { 36216 width: size, 36217 height: size, 36218 viewBox: "0 0 14 14", 36219 fill: "none", 36220 xmlns: "http://www.w3.org/2000/svg", 36221 ref: forwardedRef, 36222 ...props 36223 }, 36224 React251.createElement( 36225 "path", 36226 { 36227 fillRule: "evenodd", 36228 clipRule: "evenodd", 36229 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", 36230 fill: color2 36231 } 36232 ) 36233)), LinkIcon = React251.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React251.createElement( 36234 "svg", 36235 { 36236 width: size, 36237 height: size, 36238 viewBox: "0 0 14 14", 36239 fill: "none", 36240 xmlns: "http://www.w3.org/2000/svg", 36241 ref: forwardedRef, 36242 ...props 36243 }, 36244 React251.createElement( 36245 "path", 36246 { 36247 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", 36248 fill: color2 36249 } 36250 ), 36251 React251.createElement( 36252 "path", 36253 { 36254 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", 36255 fill: color2 36256 } 36257 ) 36258)), LinkBrokenIcon = React251.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React251.createElement( 36259 "svg", 36260 { 36261 width: size, 36262 height: size, 36263 viewBox: "0 0 14 14", 36264 fill: "none", 36265 xmlns: "http://www.w3.org/2000/svg", 36266 ref: forwardedRef, 36267 ...props 36268 }, 36269 React251.createElement( 36270 "path", 36271 { 36272 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", 36273 fill: color2 36274 } 36275 ) 36276)), BellIcon = React251.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React251.createElement( 36277 "svg", 36278 { 36279 width: size, 36280 height: size, 36281 viewBox: "0 0 14 14", 36282 fill: "none", 36283 xmlns: "http://www.w3.org/2000/svg", 36284 ref: forwardedRef, 36285 ...props 36286 }, 36287 React251.createElement( 36288 "path", 36289 { 36290 fillRule: "evenodd", 36291 clipRule: "evenodd", 36292 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", 36293 fill: color2 36294 } 36295 ) 36296)), RSSIcon = React251.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React251.createElement( 36297 "svg", 36298 { 36299 width: size, 36300 height: size, 36301 viewBox: "0 0 14 14", 36302 fill: "none", 36303 xmlns: "http://www.w3.org/2000/svg", 36304 ref: forwardedRef, 36305 ...props 36306 }, 36307 React251.createElement( 36308 "path", 36309 { 36310 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", 36311 fill: color2 36312 } 36313 ), 36314 React251.createElement( 36315 "path", 36316 { 36317 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", 36318 fill: color2 36319 } 36320 ), 36321 React251.createElement( 36322 "path", 36323 { 36324 fillRule: "evenodd", 36325 clipRule: "evenodd", 36326 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", 36327 fill: color2 36328 } 36329 ) 36330)), ShareAltIcon = React251.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React251.createElement( 36331 "svg", 36332 { 36333 width: size, 36334 height: size, 36335 viewBox: "0 0 14 14", 36336 fill: "none", 36337 xmlns: "http://www.w3.org/2000/svg", 36338 ref: forwardedRef, 36339 ...props 36340 }, 36341 React251.createElement( 36342 "path", 36343 { 36344 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", 36345 fill: color2 36346 } 36347 ), 36348 React251.createElement( 36349 "path", 36350 { 36351 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", 36352 fill: color2 36353 } 36354 ) 36355)), ShareIcon = React251.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React251.createElement( 36356 "svg", 36357 { 36358 width: size, 36359 height: size, 36360 viewBox: "0 0 14 14", 36361 fill: "none", 36362 xmlns: "http://www.w3.org/2000/svg", 36363 ref: forwardedRef, 36364 ...props 36365 }, 36366 React251.createElement( 36367 "path", 36368 { 36369 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", 36370 fill: color2 36371 } 36372 ), 36373 React251.createElement( 36374 "path", 36375 { 36376 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", 36377 fill: color2 36378 } 36379 ) 36380)), JumpToIcon = React251.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React251.createElement( 36381 "svg", 36382 { 36383 width: size, 36384 height: size, 36385 viewBox: "0 0 14 14", 36386 fill: "none", 36387 xmlns: "http://www.w3.org/2000/svg", 36388 ref: forwardedRef, 36389 ...props 36390 }, 36391 React251.createElement( 36392 "path", 36393 { 36394 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", 36395 fill: color2 36396 } 36397 ), 36398 React251.createElement( 36399 "path", 36400 { 36401 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", 36402 fill: color2 36403 } 36404 ) 36405)), CircleHollowIcon = React251.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React251.createElement( 36406 "svg", 36407 { 36408 width: size, 36409 height: size, 36410 viewBox: "0 0 14 14", 36411 fill: "none", 36412 xmlns: "http://www.w3.org/2000/svg", 36413 ref: forwardedRef, 36414 ...props 36415 }, 36416 React251.createElement( 36417 "path", 36418 { 36419 fillRule: "evenodd", 36420 clipRule: "evenodd", 36421 d: "M7 13A6 6 0 107 1a6 6 0 000 12zm0 1A7 7 0 107 0a7 7 0 000 14z", 36422 fill: color2 36423 } 36424 ) 36425)), CircleIcon = React251.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React251.createElement( 36426 "svg", 36427 { 36428 width: size, 36429 height: size, 36430 viewBox: "0 0 14 14", 36431 fill: "none", 36432 xmlns: "http://www.w3.org/2000/svg", 36433 ref: forwardedRef, 36434 ...props 36435 }, 36436 React251.createElement("path", { d: "M14 7A7 7 0 110 7a7 7 0 0114 0z", fill: color2 }) 36437)), BookmarkHollowIcon = React251.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React251.createElement( 36438 "svg", 36439 { 36440 width: size, 36441 height: size, 36442 viewBox: "0 0 14 15", 36443 fill: "none", 36444 xmlns: "http://www.w3.org/2000/svg", 36445 ref: forwardedRef, 36446 ...props 36447 }, 36448 React251.createElement( 36449 "path", 36450 { 36451 fillRule: "evenodd", 36452 clipRule: "evenodd", 36453 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", 36454 fill: color2 36455 } 36456 ) 36457)), BookmarkIcon = React251.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React251.createElement( 36458 "svg", 36459 { 36460 width: size, 36461 height: size, 36462 viewBox: "0 0 14 15", 36463 fill: "none", 36464 xmlns: "http://www.w3.org/2000/svg", 36465 ref: forwardedRef, 36466 ...props 36467 }, 36468 React251.createElement( 36469 "path", 36470 { 36471 fillRule: "evenodd", 36472 clipRule: "evenodd", 36473 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", 36474 fill: color2 36475 } 36476 ) 36477)), DiamondIcon = React251.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React251.createElement( 36478 "svg", 36479 { 36480 width: size, 36481 height: size, 36482 viewBox: "0 0 14 14", 36483 fill: "none", 36484 xmlns: "http://www.w3.org/2000/svg", 36485 ref: forwardedRef, 36486 ...props 36487 }, 36488 React251.createElement("g", { clipPath: "url(#prefix__clip0_1449_588)" }, React251.createElement( 36489 "path", 36490 { 36491 fillRule: "evenodd", 36492 clipRule: "evenodd", 36493 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", 36494 fill: color2 36495 } 36496 )), 36497 React251.createElement("defs", null, React251.createElement("clipPath", { id: "prefix__clip0_1449_588" }, React251.createElement("path", { fill: "#fff", d: "M0 0h14v14H0z" }))) 36498)), HeartHollowIcon = React251.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React251.createElement( 36499 "svg", 36500 { 36501 width: size, 36502 height: size, 36503 viewBox: "0 0 14 14", 36504 fill: "none", 36505 xmlns: "http://www.w3.org/2000/svg", 36506 ref: forwardedRef, 36507 ...props 36508 }, 36509 React251.createElement( 36510 "path", 36511 { 36512 fillRule: "evenodd", 36513 clipRule: "evenodd", 36514 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", 36515 fill: color2 36516 } 36517 ) 36518)), HeartIcon = React251.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React251.createElement( 36519 "svg", 36520 { 36521 width: size, 36522 height: size, 36523 viewBox: "0 0 14 14", 36524 fill: "none", 36525 xmlns: "http://www.w3.org/2000/svg", 36526 ref: forwardedRef, 36527 ...props 36528 }, 36529 React251.createElement( 36530 "path", 36531 { 36532 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", 36533 fill: color2 36534 } 36535 ) 36536)), StarHollowIcon = React251.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React251.createElement( 36537 "svg", 36538 { 36539 width: size, 36540 height: size, 36541 viewBox: "0 0 14 14", 36542 fill: "none", 36543 xmlns: "http://www.w3.org/2000/svg", 36544 ref: forwardedRef, 36545 ...props 36546 }, 36547 React251.createElement( 36548 "path", 36549 { 36550 fillRule: "evenodd", 36551 clipRule: "evenodd", 36552 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", 36553 fill: color2 36554 } 36555 ) 36556)), StarIcon = React251.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React251.createElement( 36557 "svg", 36558 { 36559 width: size, 36560 height: size, 36561 viewBox: "0 0 14 14", 36562 fill: "none", 36563 xmlns: "http://www.w3.org/2000/svg", 36564 ref: forwardedRef, 36565 ...props 36566 }, 36567 React251.createElement( 36568 "path", 36569 { 36570 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", 36571 fill: color2 36572 } 36573 ) 36574)), CertificateIcon = React251.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React251.createElement( 36575 "svg", 36576 { 36577 width: size, 36578 height: size, 36579 viewBox: "0 0 14 14", 36580 fill: "none", 36581 xmlns: "http://www.w3.org/2000/svg", 36582 ref: forwardedRef, 36583 ...props 36584 }, 36585 React251.createElement( 36586 "path", 36587 { 36588 fillRule: "evenodd", 36589 clipRule: "evenodd", 36590 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", 36591 fill: color2 36592 } 36593 ) 36594)), VerifiedIcon = React251.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React251.createElement( 36595 "svg", 36596 { 36597 width: size, 36598 height: size, 36599 viewBox: "0 0 14 14", 36600 fill: "none", 36601 xmlns: "http://www.w3.org/2000/svg", 36602 ref: forwardedRef, 36603 ...props 36604 }, 36605 React251.createElement( 36606 "path", 36607 { 36608 fillRule: "evenodd", 36609 clipRule: "evenodd", 36610 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", 36611 fill: color2 36612 } 36613 ) 36614)), ThumbsUpIcon = React251.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React251.createElement( 36615 "svg", 36616 { 36617 width: size, 36618 height: size, 36619 viewBox: "0 0 14 14", 36620 fill: "none", 36621 xmlns: "http://www.w3.org/2000/svg", 36622 ref: forwardedRef, 36623 ...props 36624 }, 36625 React251.createElement( 36626 "path", 36627 { 36628 fillRule: "evenodd", 36629 clipRule: "evenodd", 36630 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", 36631 fill: color2 36632 } 36633 ) 36634)), ShieldIcon = React251.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React251.createElement( 36635 "svg", 36636 { 36637 width: size, 36638 height: size, 36639 viewBox: "0 0 14 14", 36640 fill: "none", 36641 xmlns: "http://www.w3.org/2000/svg", 36642 ref: forwardedRef, 36643 ...props 36644 }, 36645 React251.createElement( 36646 "path", 36647 { 36648 fillRule: "evenodd", 36649 clipRule: "evenodd", 36650 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", 36651 fill: color2 36652 } 36653 ) 36654)), BasketIcon = React251.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React251.createElement( 36655 "svg", 36656 { 36657 width: size, 36658 height: size, 36659 viewBox: "0 0 14 14", 36660 fill: "none", 36661 xmlns: "http://www.w3.org/2000/svg", 36662 ref: forwardedRef, 36663 ...props 36664 }, 36665 React251.createElement( 36666 "path", 36667 { 36668 d: "M10.354 2.854a.5.5 0 10-.708-.708l-3 3a.5.5 0 10.708.708l3-3z", 36669 fill: color2 36670 } 36671 ), 36672 React251.createElement( 36673 "path", 36674 { 36675 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", 36676 fill: color2 36677 } 36678 ), 36679 React251.createElement( 36680 "path", 36681 { 36682 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", 36683 fill: color2 36684 } 36685 ) 36686)), BeakerIcon = React251.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React251.createElement( 36687 "svg", 36688 { 36689 width: size, 36690 height: size, 36691 viewBox: "0 0 14 14", 36692 fill: "none", 36693 xmlns: "http://www.w3.org/2000/svg", 36694 ref: forwardedRef, 36695 ...props 36696 }, 36697 React251.createElement( 36698 "path", 36699 { 36700 fillRule: "evenodd", 36701 clipRule: "evenodd", 36702 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 4V2h1.5v4.134l.067.116L8.827 8H5.173l1.01-1.75.067-.116V6zM4.597 9l-1.515 2.625A.25.25 0 003.3 12H10.7a.25.25 0 00.217-.375L9.404 9H4.597z", 36703 fill: color2 36704 } 36705 ) 36706)), HourglassIcon = React251.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React251.createElement( 36707 "svg", 36708 { 36709 width: size, 36710 height: size, 36711 viewBox: "0 0 14 14", 36712 fill: "none", 36713 xmlns: "http://www.w3.org/2000/svg", 36714 ref: forwardedRef, 36715 ...props 36716 }, 36717 React251.createElement("path", { d: "M7.5 10.5a.5.5 0 11-1 0 .5.5 0 011 0z", fill: color2 }), 36718 React251.createElement( 36719 "path", 36720 { 36721 fillRule: "evenodd", 36722 clipRule: "evenodd", 36723 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", 36724 fill: color2 36725 } 36726 ) 36727)), FlagIcon = React251.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React251.createElement( 36728 "svg", 36729 { 36730 width: size, 36731 height: size, 36732 viewBox: "0 0 14 14", 36733 fill: "none", 36734 xmlns: "http://www.w3.org/2000/svg", 36735 ref: forwardedRef, 36736 ...props 36737 }, 36738 React251.createElement( 36739 "path", 36740 { 36741 fillRule: "evenodd", 36742 clipRule: "evenodd", 36743 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", 36744 fill: color2 36745 } 36746 ) 36747)), CloudHollowIcon = React251.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React251.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 React251.createElement( 36759 "path", 36760 { 36761 fillRule: "evenodd", 36762 clipRule: "evenodd", 36763 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", 36764 fill: color2 36765 } 36766 ) 36767)), CloudIcon = React251.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React251.createElement( 36768 "svg", 36769 { 36770 width: size, 36771 height: size, 36772 viewBox: "0 0 14 14", 36773 fill: "none", 36774 xmlns: "http://www.w3.org/2000/svg", 36775 ref: forwardedRef, 36776 ...props 36777 }, 36778 React251.createElement( 36779 "path", 36780 { 36781 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", 36782 fill: color2 36783 } 36784 ) 36785)), StickerIcon = React251.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React251.createElement( 36786 "svg", 36787 { 36788 width: size, 36789 height: size, 36790 viewBox: "0 0 14 14", 36791 fill: "none", 36792 xmlns: "http://www.w3.org/2000/svg", 36793 ref: forwardedRef, 36794 ...props 36795 }, 36796 React251.createElement( 36797 "path", 36798 { 36799 fillRule: "evenodd", 36800 clipRule: "evenodd", 36801 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", 36802 fill: color2 36803 } 36804 ), 36805 React251.createElement( 36806 "path", 36807 { 36808 fillRule: "evenodd", 36809 clipRule: "evenodd", 36810 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", 36811 fill: color2 36812 } 36813 ) 36814)), StatusFailIcon = React251.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React251.createElement( 36815 "svg", 36816 { 36817 width: size, 36818 height: size, 36819 viewBox: "0 0 14 14", 36820 fill: "none", 36821 xmlns: "http://www.w3.org/2000/svg", 36822 ref: forwardedRef, 36823 ...props 36824 }, 36825 React251.createElement( 36826 "path", 36827 { 36828 fillRule: "evenodd", 36829 clipRule: "evenodd", 36830 d: "M7 4a3 3 0 100 6 3 3 0 000-6zM3 7a4 4 0 118 0 4 4 0 01-8 0z", 36831 fill: color2 36832 } 36833 ) 36834)), StatusIcon = React251.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React251.createElement( 36835 "svg", 36836 { 36837 width: size, 36838 height: size, 36839 viewBox: "0 0 14 14", 36840 fill: "none", 36841 xmlns: "http://www.w3.org/2000/svg", 36842 ref: forwardedRef, 36843 ...props 36844 }, 36845 React251.createElement("circle", { cx: 7, cy: 7, r: 3, fill: color2 }) 36846)), StatusWarnIcon = React251.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React251.createElement( 36847 "svg", 36848 { 36849 width: size, 36850 height: size, 36851 viewBox: "0 0 14 14", 36852 fill: "none", 36853 xmlns: "http://www.w3.org/2000/svg", 36854 ref: forwardedRef, 36855 ...props 36856 }, 36857 React251.createElement( 36858 "path", 36859 { 36860 fillRule: "evenodd", 36861 clipRule: "evenodd", 36862 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", 36863 fill: color2 36864 } 36865 ) 36866)), StatusPassIcon = React251.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React251.createElement( 36867 "svg", 36868 { 36869 width: size, 36870 height: size, 36871 viewBox: "0 0 14 14", 36872 fill: "none", 36873 xmlns: "http://www.w3.org/2000/svg", 36874 ref: forwardedRef, 36875 ...props 36876 }, 36877 React251.createElement( 36878 "path", 36879 { 36880 fillRule: "evenodd", 36881 clipRule: "evenodd", 36882 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", 36883 fill: color2 36884 } 36885 ) 36886)), GiftIcon = React251.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React251.createElement( 36887 "svg", 36888 { 36889 width: size, 36890 height: size, 36891 viewBox: "0 0 14 14", 36892 fill: "none", 36893 xmlns: "http://www.w3.org/2000/svg", 36894 ref: forwardedRef, 36895 ...props 36896 }, 36897 React251.createElement( 36898 "path", 36899 { 36900 fillRule: "evenodd", 36901 clipRule: "evenodd", 36902 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", 36903 fill: color2 36904 } 36905 ) 36906)), ChevronUpIcon = React251.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React251.createElement( 36907 "svg", 36908 { 36909 width: size, 36910 height: size, 36911 viewBox: "0 0 14 14", 36912 fill: "none", 36913 xmlns: "http://www.w3.org/2000/svg", 36914 ref: forwardedRef, 36915 ...props 36916 }, 36917 React251.createElement( 36918 "path", 36919 { 36920 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", 36921 fill: color2 36922 } 36923 ) 36924)), ChevronDownIcon = React251.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React251.createElement( 36925 "svg", 36926 { 36927 width: size, 36928 height: size, 36929 viewBox: "0 0 14 14", 36930 fill: "none", 36931 xmlns: "http://www.w3.org/2000/svg", 36932 ref: forwardedRef, 36933 ...props 36934 }, 36935 React251.createElement( 36936 "path", 36937 { 36938 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", 36939 fill: color2 36940 } 36941 ) 36942)), ChevronLeftIcon = React251.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React251.createElement( 36943 "svg", 36944 { 36945 width: size, 36946 height: size, 36947 viewBox: "0 0 14 14", 36948 fill: "none", 36949 xmlns: "http://www.w3.org/2000/svg", 36950 ref: forwardedRef, 36951 ...props 36952 }, 36953 React251.createElement( 36954 "path", 36955 { 36956 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", 36957 fill: color2 36958 } 36959 ) 36960)), ChevronRightIcon = React251.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React251.createElement( 36961 "svg", 36962 { 36963 width: size, 36964 height: size, 36965 viewBox: "0 0 14 14", 36966 fill: "none", 36967 xmlns: "http://www.w3.org/2000/svg", 36968 ref: forwardedRef, 36969 ...props 36970 }, 36971 React251.createElement( 36972 "path", 36973 { 36974 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", 36975 fill: color2 36976 } 36977 ) 36978)), ChevronSmallUpIcon = React251.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React251.createElement( 36979 "svg", 36980 { 36981 width: size, 36982 height: size, 36983 viewBox: "0 0 14 14", 36984 fill: "none", 36985 xmlns: "http://www.w3.org/2000/svg", 36986 ref: forwardedRef, 36987 ...props 36988 }, 36989 React251.createElement( 36990 "path", 36991 { 36992 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", 36993 fill: color2 36994 } 36995 ) 36996)), ChevronSmallDownIcon = React251.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React251.createElement( 36997 "svg", 36998 { 36999 width: size, 37000 height: size, 37001 viewBox: "0 0 14 14", 37002 fill: "none", 37003 xmlns: "http://www.w3.org/2000/svg", 37004 ref: forwardedRef, 37005 ...props 37006 }, 37007 React251.createElement( 37008 "path", 37009 { 37010 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", 37011 fill: color2 37012 } 37013 ) 37014)), ChevronSmallLeftIcon = React251.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React251.createElement( 37015 "svg", 37016 { 37017 width: size, 37018 height: size, 37019 viewBox: "0 0 14 14", 37020 fill: "none", 37021 xmlns: "http://www.w3.org/2000/svg", 37022 ref: forwardedRef, 37023 ...props 37024 }, 37025 React251.createElement( 37026 "path", 37027 { 37028 fillRule: "evenodd", 37029 clipRule: "evenodd", 37030 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", 37031 fill: color2 37032 } 37033 ) 37034)), ChevronSmallRightIcon = React251.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React251.createElement( 37035 "svg", 37036 { 37037 width: size, 37038 height: size, 37039 viewBox: "0 0 14 14", 37040 fill: "none", 37041 xmlns: "http://www.w3.org/2000/svg", 37042 ref: forwardedRef, 37043 ...props 37044 }, 37045 React251.createElement( 37046 "path", 37047 { 37048 fillRule: "evenodd", 37049 clipRule: "evenodd", 37050 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", 37051 fill: color2 37052 } 37053 ) 37054)), ArrowUpIcon = React251.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React251.createElement( 37055 "svg", 37056 { 37057 width: size, 37058 height: size, 37059 viewBox: "0 0 14 14", 37060 fill: "none", 37061 xmlns: "http://www.w3.org/2000/svg", 37062 ref: forwardedRef, 37063 ...props 37064 }, 37065 React251.createElement( 37066 "path", 37067 { 37068 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", 37069 fill: color2 37070 } 37071 ) 37072)), ArrowDownIcon = React251.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React251.createElement( 37073 "svg", 37074 { 37075 width: size, 37076 height: size, 37077 viewBox: "0 0 14 14", 37078 fill: "none", 37079 xmlns: "http://www.w3.org/2000/svg", 37080 ref: forwardedRef, 37081 ...props 37082 }, 37083 React251.createElement( 37084 "path", 37085 { 37086 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", 37087 fill: color2 37088 } 37089 ) 37090)), ArrowLeftIcon = React251.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React251.createElement( 37091 "svg", 37092 { 37093 width: size, 37094 height: size, 37095 viewBox: "0 0 14 14", 37096 fill: "none", 37097 xmlns: "http://www.w3.org/2000/svg", 37098 ref: forwardedRef, 37099 ...props 37100 }, 37101 React251.createElement( 37102 "path", 37103 { 37104 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", 37105 fill: color2 37106 } 37107 ) 37108)), ArrowRightIcon = React251.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React251.createElement( 37109 "svg", 37110 { 37111 width: size, 37112 height: size, 37113 viewBox: "0 0 14 14", 37114 fill: "none", 37115 xmlns: "http://www.w3.org/2000/svg", 37116 ref: forwardedRef, 37117 ...props 37118 }, 37119 React251.createElement( 37120 "path", 37121 { 37122 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", 37123 fill: color2 37124 } 37125 ) 37126)), ArrowTopLeftIcon = React251.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React251.createElement( 37127 "svg", 37128 { 37129 width: size, 37130 height: size, 37131 viewBox: "0 0 14 14", 37132 fill: "none", 37133 xmlns: "http://www.w3.org/2000/svg", 37134 ref: forwardedRef, 37135 ...props 37136 }, 37137 React251.createElement( 37138 "path", 37139 { 37140 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", 37141 fill: color2 37142 } 37143 ) 37144)), ArrowTopRightIcon = React251.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React251.createElement( 37145 "svg", 37146 { 37147 width: size, 37148 height: size, 37149 viewBox: "0 0 14 14", 37150 fill: "none", 37151 xmlns: "http://www.w3.org/2000/svg", 37152 ref: forwardedRef, 37153 ...props 37154 }, 37155 React251.createElement( 37156 "path", 37157 { 37158 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", 37159 fill: color2 37160 } 37161 ) 37162)), ArrowBottomLeftIcon = React251.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React251.createElement( 37163 "svg", 37164 { 37165 width: size, 37166 height: size, 37167 viewBox: "0 0 14 14", 37168 fill: "none", 37169 xmlns: "http://www.w3.org/2000/svg", 37170 ref: forwardedRef, 37171 ...props 37172 }, 37173 React251.createElement( 37174 "path", 37175 { 37176 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", 37177 fill: color2 37178 } 37179 ) 37180)), ArrowBottomRightIcon = React251.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React251.createElement( 37181 "svg", 37182 { 37183 width: size, 37184 height: size, 37185 viewBox: "0 0 14 14", 37186 fill: "none", 37187 xmlns: "http://www.w3.org/2000/svg", 37188 ref: forwardedRef, 37189 ...props 37190 }, 37191 React251.createElement( 37192 "path", 37193 { 37194 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", 37195 fill: color2 37196 } 37197 ) 37198)), ArrowSolidUpIcon = React251.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React251.createElement( 37199 "svg", 37200 { 37201 width: size, 37202 height: size, 37203 viewBox: "0 0 14 14", 37204 fill: "none", 37205 xmlns: "http://www.w3.org/2000/svg", 37206 ref: forwardedRef, 37207 ...props 37208 }, 37209 React251.createElement( 37210 "path", 37211 { 37212 fillRule: "evenodd", 37213 clipRule: "evenodd", 37214 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", 37215 fill: color2 37216 } 37217 ) 37218)), ArrowSolidDownIcon = React251.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React251.createElement( 37219 "svg", 37220 { 37221 width: size, 37222 height: size, 37223 viewBox: "0 0 14 14", 37224 fill: "none", 37225 xmlns: "http://www.w3.org/2000/svg", 37226 ref: forwardedRef, 37227 ...props 37228 }, 37229 React251.createElement( 37230 "path", 37231 { 37232 fillRule: "evenodd", 37233 clipRule: "evenodd", 37234 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", 37235 fill: color2 37236 } 37237 ) 37238)), ArrowSolidLeftIcon = React251.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React251.createElement( 37239 "svg", 37240 { 37241 width: size, 37242 height: size, 37243 viewBox: "0 0 14 14", 37244 fill: "none", 37245 xmlns: "http://www.w3.org/2000/svg", 37246 ref: forwardedRef, 37247 ...props 37248 }, 37249 React251.createElement( 37250 "path", 37251 { 37252 fillRule: "evenodd", 37253 clipRule: "evenodd", 37254 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", 37255 fill: color2 37256 } 37257 ) 37258)), ArrowSolidRightIcon = React251.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React251.createElement( 37259 "svg", 37260 { 37261 width: size, 37262 height: size, 37263 viewBox: "0 0 14 14", 37264 fill: "none", 37265 xmlns: "http://www.w3.org/2000/svg", 37266 ref: forwardedRef, 37267 ...props 37268 }, 37269 React251.createElement( 37270 "path", 37271 { 37272 fillRule: "evenodd", 37273 clipRule: "evenodd", 37274 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", 37275 fill: color2 37276 } 37277 ) 37278)), ExpandAltIcon = React251.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React251.createElement( 37279 "svg", 37280 { 37281 width: size, 37282 height: size, 37283 viewBox: "0 0 14 14", 37284 fill: "none", 37285 xmlns: "http://www.w3.org/2000/svg", 37286 ref: forwardedRef, 37287 ...props 37288 }, 37289 React251.createElement( 37290 "path", 37291 { 37292 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", 37293 fill: color2 37294 } 37295 ) 37296)), CollapseIcon = React251.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React251.createElement( 37297 "svg", 37298 { 37299 width: size, 37300 height: size, 37301 viewBox: "0 0 14 14", 37302 fill: "none", 37303 xmlns: "http://www.w3.org/2000/svg", 37304 ref: forwardedRef, 37305 ...props 37306 }, 37307 React251.createElement( 37308 "path", 37309 { 37310 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", 37311 fill: color2 37312 } 37313 ) 37314)), ExpandIcon = React251.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React251.createElement( 37315 "svg", 37316 { 37317 width: size, 37318 height: size, 37319 viewBox: "0 0 14 14", 37320 fill: "none", 37321 xmlns: "http://www.w3.org/2000/svg", 37322 ref: forwardedRef, 37323 ...props 37324 }, 37325 React251.createElement( 37326 "path", 37327 { 37328 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", 37329 fill: color2 37330 } 37331 ) 37332)), UnfoldIcon = React251.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React251.createElement( 37333 "svg", 37334 { 37335 width: size, 37336 height: size, 37337 viewBox: "0 0 14 14", 37338 fill: "none", 37339 xmlns: "http://www.w3.org/2000/svg", 37340 ref: forwardedRef, 37341 ...props 37342 }, 37343 React251.createElement( 37344 "path", 37345 { 37346 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", 37347 fill: color2 37348 } 37349 ), 37350 React251.createElement( 37351 "path", 37352 { 37353 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", 37354 fill: color2 37355 } 37356 ), 37357 React251.createElement( 37358 "path", 37359 { 37360 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", 37361 fill: color2 37362 } 37363 ) 37364)), TransferIcon = React251.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React251.createElement( 37365 "svg", 37366 { 37367 width: size, 37368 height: size, 37369 viewBox: "0 0 14 14", 37370 fill: "none", 37371 xmlns: "http://www.w3.org/2000/svg", 37372 ref: forwardedRef, 37373 ...props 37374 }, 37375 React251.createElement( 37376 "path", 37377 { 37378 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", 37379 fill: color2 37380 } 37381 ) 37382)), RedirectIcon = React251.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React251.createElement( 37383 "svg", 37384 { 37385 width: size, 37386 height: size, 37387 viewBox: "0 0 14 14", 37388 fill: "none", 37389 xmlns: "http://www.w3.org/2000/svg", 37390 ref: forwardedRef, 37391 ...props 37392 }, 37393 React251.createElement( 37394 "path", 37395 { 37396 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", 37397 fill: color2 37398 } 37399 ) 37400)), UndoIcon = React251.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React251.createElement( 37401 "svg", 37402 { 37403 width: size, 37404 height: size, 37405 viewBox: "0 0 14 14", 37406 fill: "none", 37407 xmlns: "http://www.w3.org/2000/svg", 37408 ref: forwardedRef, 37409 ...props 37410 }, 37411 React251.createElement( 37412 "path", 37413 { 37414 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", 37415 fill: color2 37416 } 37417 ) 37418)), ReplyIcon = React251.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React251.createElement( 37419 "svg", 37420 { 37421 width: size, 37422 height: size, 37423 viewBox: "0 0 14 14", 37424 fill: "none", 37425 xmlns: "http://www.w3.org/2000/svg", 37426 ref: forwardedRef, 37427 ...props 37428 }, 37429 React251.createElement( 37430 "path", 37431 { 37432 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", 37433 fill: color2 37434 } 37435 ) 37436)), SyncIcon = React251.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React251.createElement( 37437 "svg", 37438 { 37439 width: size, 37440 height: size, 37441 viewBox: "0 0 14 14", 37442 fill: "none", 37443 xmlns: "http://www.w3.org/2000/svg", 37444 ref: forwardedRef, 37445 ...props 37446 }, 37447 React251.createElement( 37448 "path", 37449 { 37450 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", 37451 fill: color2 37452 } 37453 ) 37454)), UploadIcon = React251.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React251.createElement( 37455 "svg", 37456 { 37457 width: size, 37458 height: size, 37459 viewBox: "0 0 14 14", 37460 fill: "none", 37461 xmlns: "http://www.w3.org/2000/svg", 37462 ref: forwardedRef, 37463 ...props 37464 }, 37465 React251.createElement( 37466 "path", 37467 { 37468 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", 37469 fill: color2 37470 } 37471 ), 37472 React251.createElement( 37473 "path", 37474 { 37475 fillRule: "evenodd", 37476 clipRule: "evenodd", 37477 d: "M14 7A7 7 0 110 7a7 7 0 0114 0zm-1 0A6 6 0 111 7a6 6 0 0112 0z", 37478 fill: color2 37479 } 37480 ) 37481)), DownloadIcon = React251.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React251.createElement( 37482 "svg", 37483 { 37484 width: size, 37485 height: size, 37486 viewBox: "0 0 14 14", 37487 fill: "none", 37488 xmlns: "http://www.w3.org/2000/svg", 37489 ref: forwardedRef, 37490 ...props 37491 }, 37492 React251.createElement( 37493 "path", 37494 { 37495 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", 37496 fill: color2 37497 } 37498 ), 37499 React251.createElement( 37500 "path", 37501 { 37502 fillRule: "evenodd", 37503 clipRule: "evenodd", 37504 d: "M0 7a7 7 0 1114 0A7 7 0 010 7zm1 0a6 6 0 1112 0A6 6 0 011 7z", 37505 fill: color2 37506 } 37507 ) 37508)), BackIcon = React251.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React251.createElement( 37509 "svg", 37510 { 37511 width: size, 37512 height: size, 37513 viewBox: "0 0 14 14", 37514 fill: "none", 37515 xmlns: "http://www.w3.org/2000/svg", 37516 ref: forwardedRef, 37517 ...props 37518 }, 37519 React251.createElement( 37520 "path", 37521 { 37522 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", 37523 fill: color2 37524 } 37525 ), 37526 React251.createElement( 37527 "path", 37528 { 37529 fillRule: "evenodd", 37530 clipRule: "evenodd", 37531 d: "M7 0a7 7 0 110 14A7 7 0 017 0zm0 1a6 6 0 110 12A6 6 0 017 1z", 37532 fill: color2 37533 } 37534 ) 37535)), ProceedIcon = React251.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React251.createElement( 37536 "svg", 37537 { 37538 width: size, 37539 height: size, 37540 viewBox: "0 0 14 14", 37541 fill: "none", 37542 xmlns: "http://www.w3.org/2000/svg", 37543 ref: forwardedRef, 37544 ...props 37545 }, 37546 React251.createElement( 37547 "path", 37548 { 37549 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", 37550 fill: color2 37551 } 37552 ), 37553 React251.createElement( 37554 "path", 37555 { 37556 fillRule: "evenodd", 37557 clipRule: "evenodd", 37558 d: "M7 14A7 7 0 117 0a7 7 0 010 14zm0-1A6 6 0 117 1a6 6 0 010 12z", 37559 fill: color2 37560 } 37561 ) 37562)), RefreshIcon = React251.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React251.createElement( 37563 "svg", 37564 { 37565 width: size, 37566 height: size, 37567 viewBox: "0 0 14 14", 37568 fill: "none", 37569 xmlns: "http://www.w3.org/2000/svg", 37570 ref: forwardedRef, 37571 ...props 37572 }, 37573 React251.createElement( 37574 "path", 37575 { 37576 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", 37577 fill: color2 37578 } 37579 ) 37580)), GlobeIcon = React251.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React251.createElement( 37581 "svg", 37582 { 37583 width: size, 37584 height: size, 37585 viewBox: "0 0 14 14", 37586 fill: "none", 37587 xmlns: "http://www.w3.org/2000/svg", 37588 ref: forwardedRef, 37589 ...props 37590 }, 37591 React251.createElement( 37592 "path", 37593 { 37594 fillRule: "evenodd", 37595 clipRule: "evenodd", 37596 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", 37597 fill: color2 37598 } 37599 ) 37600)), CompassIcon = React251.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React251.createElement( 37601 "svg", 37602 { 37603 width: size, 37604 height: size, 37605 viewBox: "0 0 14 14", 37606 fill: "none", 37607 xmlns: "http://www.w3.org/2000/svg", 37608 ref: forwardedRef, 37609 ...props 37610 }, 37611 React251.createElement( 37612 "path", 37613 { 37614 fillRule: "evenodd", 37615 clipRule: "evenodd", 37616 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", 37617 fill: color2 37618 } 37619 ), 37620 React251.createElement( 37621 "path", 37622 { 37623 fillRule: "evenodd", 37624 clipRule: "evenodd", 37625 d: "M14 7A7 7 0 110 7a7 7 0 0114 0zm-1 0A6 6 0 111 7a6 6 0 0112 0z", 37626 fill: color2 37627 } 37628 ) 37629)), LocationIcon = React251.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React251.createElement( 37630 "svg", 37631 { 37632 width: size, 37633 height: size, 37634 viewBox: "0 0 14 14", 37635 fill: "none", 37636 xmlns: "http://www.w3.org/2000/svg", 37637 ref: forwardedRef, 37638 ...props 37639 }, 37640 React251.createElement( 37641 "path", 37642 { 37643 fillRule: "evenodd", 37644 clipRule: "evenodd", 37645 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", 37646 fill: color2 37647 } 37648 ) 37649)), PinIcon = React251.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React251.createElement( 37650 "svg", 37651 { 37652 width: size, 37653 height: size, 37654 viewBox: "0 0 14 14", 37655 fill: "none", 37656 xmlns: "http://www.w3.org/2000/svg", 37657 ref: forwardedRef, 37658 ...props 37659 }, 37660 React251.createElement( 37661 "path", 37662 { 37663 fillRule: "evenodd", 37664 clipRule: "evenodd", 37665 d: "M9 5a2 2 0 11-4 0 2 2 0 014 0zM8 5a1 1 0 11-2 0 1 1 0 012 0z", 37666 fill: color2 37667 } 37668 ), 37669 React251.createElement( 37670 "path", 37671 { 37672 fillRule: "evenodd", 37673 clipRule: "evenodd", 37674 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", 37675 fill: color2 37676 } 37677 ) 37678)), TimeIcon = React251.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React251.createElement( 37679 "svg", 37680 { 37681 width: size, 37682 height: size, 37683 viewBox: "0 0 14 14", 37684 fill: "none", 37685 xmlns: "http://www.w3.org/2000/svg", 37686 ref: forwardedRef, 37687 ...props 37688 }, 37689 React251.createElement( 37690 "path", 37691 { 37692 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", 37693 fill: color2 37694 } 37695 ), 37696 React251.createElement( 37697 "path", 37698 { 37699 fillRule: "evenodd", 37700 clipRule: "evenodd", 37701 d: "M7 14A7 7 0 107 0a7 7 0 000 14zm0-1A6 6 0 107 1a6 6 0 000 12z", 37702 fill: color2 37703 } 37704 ) 37705)), DashboardIcon = React251.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React251.createElement( 37706 "svg", 37707 { 37708 width: size, 37709 height: size, 37710 viewBox: "0 0 14 14", 37711 fill: "none", 37712 xmlns: "http://www.w3.org/2000/svg", 37713 ref: forwardedRef, 37714 ...props 37715 }, 37716 React251.createElement( 37717 "path", 37718 { 37719 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", 37720 fill: color2 37721 } 37722 ), 37723 React251.createElement( 37724 "path", 37725 { 37726 fillRule: "evenodd", 37727 clipRule: "evenodd", 37728 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", 37729 fill: color2 37730 } 37731 ) 37732)), TimerIcon = React251.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React251.createElement( 37733 "svg", 37734 { 37735 width: size, 37736 height: size, 37737 viewBox: "0 0 14 14", 37738 fill: "none", 37739 xmlns: "http://www.w3.org/2000/svg", 37740 ref: forwardedRef, 37741 ...props 37742 }, 37743 React251.createElement("path", { d: "M7.5 4.5a.5.5 0 00-1 0v2.634a1 1 0 101 0V4.5z", fill: color2 }), 37744 React251.createElement( 37745 "path", 37746 { 37747 fillRule: "evenodd", 37748 clipRule: "evenodd", 37749 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", 37750 fill: color2 37751 } 37752 ) 37753)), HomeIcon = React251.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React251.createElement( 37754 "svg", 37755 { 37756 width: size, 37757 height: size, 37758 viewBox: "0 0 14 14", 37759 fill: "none", 37760 xmlns: "http://www.w3.org/2000/svg", 37761 ref: forwardedRef, 37762 ...props 37763 }, 37764 React251.createElement( 37765 "path", 37766 { 37767 fillRule: "evenodd", 37768 clipRule: "evenodd", 37769 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", 37770 fill: color2 37771 } 37772 ) 37773)), AdminIcon = React251.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React251.createElement( 37774 "svg", 37775 { 37776 width: size, 37777 height: size, 37778 viewBox: "0 0 14 14", 37779 fill: "none", 37780 xmlns: "http://www.w3.org/2000/svg", 37781 ref: forwardedRef, 37782 ...props 37783 }, 37784 React251.createElement( 37785 "path", 37786 { 37787 fillRule: "evenodd", 37788 clipRule: "evenodd", 37789 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", 37790 fill: color2 37791 } 37792 ), 37793 React251.createElement( 37794 "path", 37795 { 37796 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", 37797 fill: color2 37798 } 37799 ) 37800)), DirectionIcon = React251.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React251.createElement( 37801 "svg", 37802 { 37803 width: size, 37804 height: size, 37805 viewBox: "0 0 14 14", 37806 fill: "none", 37807 xmlns: "http://www.w3.org/2000/svg", 37808 ref: forwardedRef, 37809 ...props 37810 }, 37811 React251.createElement("g", { clipPath: "url(#prefix__clip0_1107_3594)" }, React251.createElement( 37812 "path", 37813 { 37814 d: "M11.451.537l.01 12.922L7.61 8.946a1.078 1.078 0 00-.731-.374L.965 8.087 11.45.537z", 37815 stroke: color2, 37816 strokeWidth: 1.077 37817 } 37818 )), 37819 React251.createElement("defs", null, React251.createElement("clipPath", { id: "prefix__clip0_1107_3594" }, React251.createElement("path", { fill: "#fff", d: "M0 0h14v14H0z" }))) 37820)), UserIcon = React251.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React251.createElement( 37821 "svg", 37822 { 37823 width: size, 37824 height: size, 37825 viewBox: "0 0 14 14", 37826 fill: "none", 37827 xmlns: "http://www.w3.org/2000/svg", 37828 ref: forwardedRef, 37829 ...props 37830 }, 37831 React251.createElement( 37832 "path", 37833 { 37834 fillRule: "evenodd", 37835 clipRule: "evenodd", 37836 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", 37837 fill: color2 37838 } 37839 ) 37840)), UserAltIcon = React251.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React251.createElement( 37841 "svg", 37842 { 37843 width: size, 37844 height: size, 37845 viewBox: "0 0 14 14", 37846 fill: "none", 37847 xmlns: "http://www.w3.org/2000/svg", 37848 ref: forwardedRef, 37849 ...props 37850 }, 37851 React251.createElement( 37852 "path", 37853 { 37854 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", 37855 fill: color2 37856 } 37857 ) 37858)), UserAddIcon = React251.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React251.createElement( 37859 "svg", 37860 { 37861 width: size, 37862 height: size, 37863 viewBox: "0 0 14 14", 37864 fill: "none", 37865 xmlns: "http://www.w3.org/2000/svg", 37866 ref: forwardedRef, 37867 ...props 37868 }, 37869 React251.createElement( 37870 "path", 37871 { 37872 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", 37873 fill: color2 37874 } 37875 ) 37876)), UsersIcon = React251.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React251.createElement( 37877 "svg", 37878 { 37879 width: size, 37880 height: size, 37881 viewBox: "0 0 14 14", 37882 fill: "none", 37883 xmlns: "http://www.w3.org/2000/svg", 37884 ref: forwardedRef, 37885 ...props 37886 }, 37887 React251.createElement( 37888 "path", 37889 { 37890 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", 37891 fill: color2 37892 } 37893 ), 37894 React251.createElement( 37895 "path", 37896 { 37897 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", 37898 fill: color2 37899 } 37900 ) 37901)), ProfileIcon = React251.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React251.createElement( 37902 "svg", 37903 { 37904 width: size, 37905 height: size, 37906 viewBox: "0 0 14 14", 37907 fill: "none", 37908 xmlns: "http://www.w3.org/2000/svg", 37909 ref: forwardedRef, 37910 ...props 37911 }, 37912 React251.createElement( 37913 "path", 37914 { 37915 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", 37916 fill: color2 37917 } 37918 ), 37919 React251.createElement( 37920 "path", 37921 { 37922 fillRule: "evenodd", 37923 clipRule: "evenodd", 37924 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", 37925 fill: color2 37926 } 37927 ) 37928)), FaceHappyIcon = React251.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React251.createElement( 37929 "svg", 37930 { 37931 width: size, 37932 height: size, 37933 viewBox: "0 0 14 14", 37934 fill: "none", 37935 xmlns: "http://www.w3.org/2000/svg", 37936 ref: forwardedRef, 37937 ...props 37938 }, 37939 React251.createElement( 37940 "path", 37941 { 37942 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", 37943 fill: color2 37944 } 37945 ), 37946 React251.createElement( 37947 "path", 37948 { 37949 fillRule: "evenodd", 37950 clipRule: "evenodd", 37951 d: "M14 7A7 7 0 110 7a7 7 0 0114 0zm-1 0A6 6 0 111 7a6 6 0 0112 0z", 37952 fill: color2 37953 } 37954 ) 37955)), FaceNeutralIcon = React251.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React251.createElement( 37956 "svg", 37957 { 37958 width: size, 37959 height: size, 37960 viewBox: "0 0 14 14", 37961 fill: "none", 37962 xmlns: "http://www.w3.org/2000/svg", 37963 ref: forwardedRef, 37964 ...props 37965 }, 37966 React251.createElement( 37967 "path", 37968 { 37969 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", 37970 fill: color2 37971 } 37972 ), 37973 React251.createElement( 37974 "path", 37975 { 37976 fillRule: "evenodd", 37977 clipRule: "evenodd", 37978 d: "M14 7A7 7 0 110 7a7 7 0 0114 0zm-1 0A6 6 0 111 7a6 6 0 0112 0z", 37979 fill: color2 37980 } 37981 ) 37982)), FaceSadIcon = React251.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React251.createElement( 37983 "svg", 37984 { 37985 width: size, 37986 height: size, 37987 viewBox: "0 0 14 14", 37988 fill: "none", 37989 xmlns: "http://www.w3.org/2000/svg", 37990 ref: forwardedRef, 37991 ...props 37992 }, 37993 React251.createElement( 37994 "path", 37995 { 37996 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", 37997 fill: color2 37998 } 37999 ), 38000 React251.createElement( 38001 "path", 38002 { 38003 fillRule: "evenodd", 38004 clipRule: "evenodd", 38005 d: "M14 7A7 7 0 110 7a7 7 0 0114 0zm-1 0A6 6 0 111 7a6 6 0 0112 0z", 38006 fill: color2 38007 } 38008 ) 38009)), AccessibilityIcon = React251.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React251.createElement( 38010 "svg", 38011 { 38012 width: size, 38013 height: size, 38014 viewBox: "0 0 14 14", 38015 fill: "none", 38016 xmlns: "http://www.w3.org/2000/svg", 38017 ref: forwardedRef, 38018 ...props 38019 }, 38020 React251.createElement( 38021 "path", 38022 { 38023 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", 38024 fill: color2 38025 } 38026 ), 38027 React251.createElement("path", { d: "M7 4.5a1 1 0 100-2 1 1 0 000 2z", fill: color2 }), 38028 React251.createElement( 38029 "path", 38030 { 38031 fillRule: "evenodd", 38032 clipRule: "evenodd", 38033 d: "M7 14A7 7 0 107 0a7 7 0 000 14zm0-1A6 6 0 107 1a6 6 0 000 12z", 38034 fill: color2 38035 } 38036 ) 38037)), AccessibilityAltIcon = React251.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React251.createElement( 38038 "svg", 38039 { 38040 width: size, 38041 height: size, 38042 viewBox: "0 0 14 14", 38043 fill: "none", 38044 xmlns: "http://www.w3.org/2000/svg", 38045 ref: forwardedRef, 38046 ...props 38047 }, 38048 React251.createElement( 38049 "path", 38050 { 38051 fillRule: "evenodd", 38052 clipRule: "evenodd", 38053 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", 38054 fill: color2 38055 } 38056 ) 38057)), AccessibilityIgnoredIcon = React251.forwardRef(({ color: color2 = "currentColor", size = 14, ...props }, forwardedRef) => React251.createElement( 38058 "svg", 38059 { 38060 width: size, 38061 height: size, 38062 viewBox: "0 0 14 14", 38063 fill: "none", 38064 xmlns: "http://www.w3.org/2000/svg", 38065 ref: forwardedRef, 38066 ...props 38067 }, 38068 React251.createElement("g", { clipPath: "url(#prefix__clip0_2359_558)", fill: color2 }, React251.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" }), React251.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" }), React251.createElement("path", { d: "M8 3.5a1 1 0 11-2 0 1 1 0 012 0z" }), React251.createElement( 38069 "path", 38070 { 38071 fillRule: "evenodd", 38072 clipRule: "evenodd", 38073 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" 38074 } 38075 )), 38076 React251.createElement("defs", null, React251.createElement("clipPath", { id: "prefix__clip0_2359_558" }, React251.createElement("path", { fill: "#fff", d: "M0 0h14v14H0z" }))) 38077)); 38078
vendor: 4,117 bytes, lines 38079-38225
38079// src/components/components/typography/link/link.tsx 38080init_polished_esm(); 38081init_theming(); 38082var LEFT_BUTTON = 0, isPlainLeftClick = (e) => e.button === LEFT_BUTTON && !e.altKey && !e.ctrlKey && !e.metaKey && !e.shiftKey, cancelled = (e, cb) => { 38083 isPlainLeftClick(e) && (e.preventDefault(), cb(e)); 38084}, LinkInner = styled.span( 38085 ({ withArrow }) => withArrow ? { 38086 "> svg:last-of-type": { 38087 height: "0.7em", 38088 width: "0.7em", 38089 marginRight: 0, 38090 marginLeft: "0.25em", 38091 bottom: "auto", 38092 verticalAlign: "inherit" 38093 } 38094 } : {}, 38095 ({ containsIcon }) => containsIcon ? { 38096 svg: { 38097 height: "1em", 38098 width: "1em", 38099 verticalAlign: "middle", 38100 position: "relative", 38101 bottom: 0, 38102 marginRight: 0 38103 } 38104 } : {} 38105), A2 = styled.a( 38106 ({ theme: theme3 }) => ({ 38107 display: "inline-block", 38108 transition: "all 150ms ease-out", 38109 textDecoration: "none", 38110 color: theme3.color.secondary, 38111 "&:hover, &:focus": { 38112 cursor: "pointer", 38113 color: curriedDarken$1(0.07, theme3.color.secondary), 38114 "svg path:not([fill])": { 38115 fill: curriedDarken$1(0.07, theme3.color.secondary) 38116 } 38117 }, 38118 "&:active": { 38119 color: curriedDarken$1(0.1, theme3.color.secondary), 38120 "svg path:not([fill])": { 38121 fill: curriedDarken$1(0.1, theme3.color.secondary) 38122 } 38123 }, 38124 svg: { 38125 display: "inline-block", 38126 height: "1em", 38127 width: "1em", 38128 verticalAlign: "text-top", 38129 position: "relative", 38130 bottom: "-0.125em", 38131 marginRight: "0.4em", 38132 "& path": { 38133 fill: theme3.color.secondary 38134 } 38135 } 38136 }), 38137 ({ theme: theme3, secondary, tertiary }) => { 38138 let colors3; 38139 return secondary && (colors3 = [theme3.textMutedColor, theme3.color.secondary, theme3.color.secondary]), tertiary && (colors3 = [theme3.color.dark, theme3.color.secondary, theme3.color.secondary]), colors3 ? { 38140 color: colors3[0], 38141 "svg path:not([fill])": { 38142 fill: colors3[0] 38143 }, 38144 "&:hover": { 38145 color: colors3[1], 38146 "svg path:not([fill])": { 38147 fill: colors3[1] 38148 } 38149 }, 38150 "&:active": { 38151 color: colors3[2], 38152 "svg path:not([fill])": { 38153 fill: colors3[2] 38154 } 38155 } 38156 } : {}; 38157 }, 38158 ({ nochrome }) => nochrome ? { 38159 color: "inherit", 38160 "&:hover, &:active": { 38161 color: "inherit", 38162 textDecoration: "underline" 38163 } 38164 } : {}, 38165 ({ theme: theme3, inverse }) => inverse ? { 38166 color: theme3.color.lightest, 38167 ":not([fill])": { 38168 fill: theme3.color.lightest 38169 }, 38170 "&:hover": { 38171 color: theme3.color.lighter, 38172 "svg path:not([fill])": { 38173 fill: theme3.color.lighter 38174 } 38175 }, 38176 "&:active": { 38177 color: theme3.color.light, 38178 "svg path:not([fill])": { 38179 fill: theme3.color.light 38180 } 38181 } 38182 } : {}, 38183 ({ isButton: isButton2, theme: theme3 }) => isButton2 ? { 38184 border: 0, 38185 borderRadius: theme3.input.borderRadius, 38186 background: "none", 38187 padding: 0, 38188 fontSize: "inherit", 38189 lineHeight: "inherit", 38190 "&:focus-visible": { 38191 outline: `2px solid ${theme3.color.secondary}`, 38192 outlineOffset: 2, 38193 // Should ensure focus outline gets drawn above next sibling 38194 zIndex: "1" 38195 } 38196 } : {} 38197), Link2 = (0, import_react17.forwardRef)( 38198 ({ 38199 cancel = !0, 38200 children, 38201 onClick = void 0, 38202 withArrow = !1, 38203 containsIcon = !1, 38204 className = void 0, 38205 isButton: isButton2 = void 0, 38206 href, 38207 ...rest 38208 }, ref) => (isButton2 !== void 0 && deprecate( 38209 "Link: `isButton` is deprecated and will be removed in Storybook 11. Links without a `href` are automatically rendered as buttons." 38210 ), import_react17.default.createElement( 38211 A2, 38212 { 38213 as: href ? "a" : "button", 38214 href, 38215 ...rest, 38216 ref, 38217 isButton: !href || isButton2 === !0, 38218 onClick: onClick && cancel ? (e) => cancelled(e, onClick) : onClick, 38219 className 38220 }, 38221 import_react17.default.createElement(LinkInner, { withArrow, containsIcon }, children, withArrow && import_react17.default.createElement(ChevronRightIcon, null)) 38222 )) 38223); 38224Link2.displayName = "Link"; 38225
vendor: 6,498 bytes, lines 38226-38518
38226// src/components/components/typography/DocumentWrapper.tsx 38227init_theming(); 38228var DocumentWrapper = styled.div(({ theme: theme3 }) => ({ 38229 fontSize: `${theme3.typography.size.s2}px`, 38230 lineHeight: "1.6", 38231 h1: { 38232 fontSize: `${theme3.typography.size.l1}px`, 38233 fontWeight: theme3.typography.weight.bold 38234 }, 38235 h2: { 38236 fontSize: `${theme3.typography.size.m2}px`, 38237 borderBottom: `1px solid ${theme3.appBorderColor}` 38238 }, 38239 h3: { 38240 fontSize: `${theme3.typography.size.m1}px` 38241 }, 38242 h4: { 38243 fontSize: `${theme3.typography.size.s3}px` 38244 }, 38245 h5: { 38246 fontSize: `${theme3.typography.size.s2}px` 38247 }, 38248 h6: { 38249 fontSize: `${theme3.typography.size.s2}px`, 38250 color: theme3.color.dark 38251 }, 38252 "pre:not(.prismjs)": { 38253 background: "transparent", 38254 border: "none", 38255 borderRadius: 0, 38256 padding: 0, 38257 margin: 0 38258 }, 38259 "pre pre, pre.prismjs": { 38260 padding: 15, 38261 margin: 0, 38262 whiteSpace: "pre-wrap", 38263 color: "inherit", 38264 fontSize: "13px", 38265 lineHeight: "19px" 38266 }, 38267 "pre pre code, pre.prismjs code": { 38268 color: "inherit", 38269 fontSize: "inherit" 38270 }, 38271 "pre code": { 38272 margin: 0, 38273 padding: 0, 38274 whiteSpace: "pre", 38275 border: "none", 38276 background: "transparent" 38277 }, 38278 "pre code, pre tt": { 38279 backgroundColor: "transparent", 38280 border: "none" 38281 }, 38282 /* GitHub inspired Markdown styles loosely from https://gist.github.com/tuzz/3331384 */ 38283 "body > *:first-of-type": { 38284 marginTop: "0 !important" 38285 }, 38286 "body > *:last-child": { 38287 marginBottom: "0 !important" 38288 }, 38289 a: { 38290 color: theme3.color.secondary, 38291 // Ensure WCAG Level A compliance (SC 1.4.1), see https://www.w3.org/WAI/WCAG22/Techniques/failures/F73 38292 textDecoration: "underline", 38293 textDecorationThickness: "0.03125rem", 38294 textUnderlineOffset: "0.11em" 38295 }, 38296 "a.absent": { 38297 color: "#cc0000" 38298 }, 38299 "a.anchor": { 38300 display: "block", 38301 paddingLeft: 30, 38302 marginLeft: -30, 38303 cursor: "pointer", 38304 position: "absolute", 38305 top: 0, 38306 left: 0, 38307 bottom: 0, 38308 textDecoration: "none" 38309 }, 38310 "&.anchor:hover, &.anchor:focus": { 38311 textDecoration: "underline" 38312 }, 38313 "h1, h2, h3, h4, h5, h6": { 38314 margin: "20px 0 10px", 38315 padding: 0, 38316 cursor: "text", 38317 position: "relative", 38318 "&:first-of-type": { 38319 marginTop: 0, 38320 paddingTop: 0 38321 }, 38322 "&:hover a.anchor": { 38323 textDecoration: "none" 38324 }, 38325 "& tt, & code": { 38326 fontSize: "inherit" 38327 } 38328 }, 38329 "h1:first-of-type + h2": { 38330 marginTop: 0, 38331 paddingTop: 0 38332 }, 38333 "p, blockquote, ul, ol, dl, li, table, pre": { 38334 margin: "15px 0" 38335 }, 38336 hr: { 38337 border: "0 none", 38338 borderTop: `1px solid ${theme3.appBorderColor}`, 38339 height: 4, 38340 padding: 0 38341 }, 38342 "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": { 38343 marginTop: 0, 38344 paddingTop: 0 38345 }, 38346 "body > h1:first-of-type + h2": { 38347 marginTop: 0, 38348 paddingTop: 0 38349 }, 38350 "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": { 38351 marginTop: 0, 38352 paddingTop: 0 38353 }, 38354 "h1 p, h2 p, h3 p, h4 p, h5 p, h6 p": { 38355 marginTop: 0 38356 }, 38357 "li p.first": { 38358 display: "inline-block" 38359 }, 38360 "ul, ol": { 38361 paddingLeft: 30, 38362 "& :first-of-type": { 38363 marginTop: 0 38364 }, 38365 "& :last-child": { 38366 marginBottom: 0 38367 } 38368 }, 38369 dl: { 38370 padding: 0 38371 }, 38372 "dl dt": { 38373 fontSize: "14px", 38374 fontWeight: "bold", 38375 fontStyle: "italic", 38376 margin: "0 0 15px", 38377 padding: "0 15px", 38378 "&:first-of-type": { 38379 padding: 0 38380 }, 38381 "& > :first-of-type": { 38382 marginTop: 0 38383 }, 38384 "& > :last-child": { 38385 marginBottom: 0 38386 } 38387 }, 38388 blockquote: { 38389 borderLeft: `4px solid ${theme3.color.medium}`, 38390 padding: "0 15px", 38391 color: theme3.color.dark, 38392 "& > :first-of-type": { 38393 marginTop: 0 38394 }, 38395 "& > :last-child": { 38396 marginBottom: 0 38397 } 38398 }, 38399 table: { 38400 padding: 0, 38401 borderCollapse: "collapse", 38402 "& tr": { 38403 borderTop: `1px solid ${theme3.appBorderColor}`, 38404 backgroundColor: "white", 38405 margin: 0, 38406 padding: 0, 38407 "& th": { 38408 fontWeight: "bold", 38409 border: `1px solid ${theme3.appBorderColor}`, 38410 textAlign: "left", 38411 margin: 0, 38412 padding: "6px 13px" 38413 }, 38414 "& td": { 38415 border: `1px solid ${theme3.appBorderColor}`, 38416 textAlign: "left", 38417 margin: 0, 38418 padding: "6px 13px" 38419 }, 38420 "&:nth-of-type(2n)": { 38421 backgroundColor: theme3.color.lighter 38422 }, 38423 "& th :first-of-type, & td :first-of-type": { 38424 marginTop: 0 38425 }, 38426 "& th :last-child, & td :last-child": { 38427 marginBottom: 0 38428 } 38429 } 38430 }, 38431 img: { 38432 maxWidth: "100%" 38433 }, 38434 "span.frame": { 38435 display: "block", 38436 overflow: "hidden", 38437 "& > span": { 38438 border: `1px solid ${theme3.color.medium}`, 38439 display: "block", 38440 float: "left", 38441 overflow: "hidden", 38442 margin: "13px 0 0", 38443 padding: 7, 38444 width: "auto" 38445 }, 38446 "& span img": { 38447 display: "block", 38448 float: "left" 38449 }, 38450 "& span span": { 38451 clear: "both", 38452 color: theme3.color.darkest, 38453 display: "block", 38454 padding: "5px 0 0" 38455 } 38456 }, 38457 "span.align-center": { 38458 display: "block", 38459 overflow: "hidden", 38460 clear: "both", 38461 "& > span": { 38462 display: "block", 38463 overflow: "hidden", 38464 margin: "13px auto 0", 38465 textAlign: "center" 38466 }, 38467 "& span img": { 38468 margin: "0 auto", 38469 textAlign: "center" 38470 } 38471 }, 38472 "span.align-right": { 38473 display: "block", 38474 overflow: "hidden", 38475 clear: "both", 38476 "& > span": { 38477 display: "block", 38478 overflow: "hidden", 38479 margin: "13px 0 0", 38480 textAlign: "right" 38481 }, 38482 "& span img": { 38483 margin: 0, 38484 textAlign: "right" 38485 } 38486 }, 38487 "span.float-left": { 38488 display: "block", 38489 marginRight: 13, 38490 overflow: "hidden", 38491 float: "left", 38492 "& span": { 38493 margin: "13px 0 0" 38494 } 38495 }, 38496 "span.float-right": { 38497 display: "block", 38498 marginLeft: 13, 38499 overflow: "hidden", 38500 float: "right", 38501 "& > span": { 38502 display: "block", 38503 overflow: "hidden", 38504 margin: "13px auto 0", 38505 textAlign: "right" 38506 } 38507 }, 38508 "code, tt": { 38509 margin: "0 2px", 38510 padding: "0 5px", 38511 whiteSpace: "nowrap", 38512 border: `1px solid ${theme3.color.mediumlight}`, 38513 backgroundColor: theme3.color.lighter, 38514 borderRadius: 3, 38515 color: theme3.base === "dark" ? theme3.color.darkest : theme3.color.dark 38516 } 38517})); 38518
38519// src/components/index.ts 38520init_clipboard(); 38521init_ActionBar(); 38522
38523// src/components/components/ActionList/ActionList.tsx 38524var import_react95 = __toESM(require_react(), 1); 38525init_polished_esm(); 38526init_theming(); 38527
38528// src/components/components/Button/Button.tsx 38529var import_react93 = __toESM(require_react(), 1); 38530init_client_logger(); 38531
vendor: 102 bytes, lines 38532-38534
38532// ../../node_modules/@radix-ui/react-slot/dist/index.mjs 38533var React28 = __toESM(require_react(), 1); 38534
vendor: 753 bytes, lines 38535-38557
38535// ../../node_modules/@radix-ui/react-slot/node_modules/@radix-ui/react-compose-refs/dist/index.mjs 38536var React27 = __toESM(require_react(), 1); 38537function setRef2(ref, value) { 38538 if (typeof ref == "function") 38539 return ref(value); 38540 ref != null && (ref.current = value); 38541} 38542function composeRefs2(...refs) { 38543 return (node2) => { 38544 let hasCleanup = !1, cleanups = refs.map((ref) => { 38545 let cleanup = setRef2(ref, node2); 38546 return !hasCleanup && typeof cleanup == "function" && (hasCleanup = !0), cleanup; 38547 }); 38548 if (hasCleanup) 38549 return () => { 38550 for (let i = 0; i < cleanups.length; i++) { 38551 let cleanup = cleanups[i]; 38552 typeof cleanup == "function" ? cleanup() : setRef2(refs[i], null); 38553 } 38554 }; 38555 }; 38556} 38557
vendor: 4,047 bytes, lines 38558-38615
38558// ../../node_modules/@radix-ui/react-slot/dist/index.mjs 38559var import_jsx_runtime6 = __toESM(require_jsx_runtime(), 1), REACT_LAZY_TYPE = Symbol.for("react.lazy"), use = React28[" use ".trim().toString()]; 38560function isPromiseLike(value) { 38561 return typeof value == "object" && value !== null && "then" in value; 38562} 38563function isLazyComponent(element) { 38564 return element != null && typeof element == "object" && "$$typeof" in element && element.$$typeof === REACT_LAZY_TYPE && "_payload" in element && isPromiseLike(element._payload); 38565} 38566function createSlot(ownerName) { 38567 let SlotClone2 = createSlotClone(ownerName), Slot22 = React28.forwardRef((props, forwardedRef) => { 38568 let { children, ...slotProps } = props; 38569 isLazyComponent(children) && typeof use == "function" && (children = use(children._payload)); 38570 let childrenArray = React28.Children.toArray(children), slottable = childrenArray.find(isSlottable2); 38571 if (slottable) { 38572 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); 38573 return (0, import_jsx_runtime6.jsx)(SlotClone2, { ...slotProps, ref: forwardedRef, children: React28.isValidElement(newElement) ? React28.cloneElement(newElement, void 0, newChildren) : null }); 38574 } 38575 return (0, import_jsx_runtime6.jsx)(SlotClone2, { ...slotProps, ref: forwardedRef, children }); 38576 }); 38577 return Slot22.displayName = `${ownerName}.Slot`, Slot22; 38578} 38579var Slot2 = createSlot("Slot"); 38580function createSlotClone(ownerName) { 38581 let SlotClone2 = React28.forwardRef((props, forwardedRef) => { 38582 let { children, ...slotProps } = props; 38583 if (isLazyComponent(children) && typeof use == "function" && (children = use(children._payload)), React28.isValidElement(children)) { 38584 let childrenRef = getElementRef3(children), props2 = mergeProps2(slotProps, children.props); 38585 return children.type !== React28.Fragment && (props2.ref = forwardedRef ? composeRefs2(forwardedRef, childrenRef) : childrenRef), React28.cloneElement(children, props2); 38586 } 38587 return React28.Children.count(children) > 1 ? React28.Children.only(null) : null; 38588 }); 38589 return SlotClone2.displayName = `${ownerName}.SlotClone`, SlotClone2; 38590} 38591var SLOTTABLE_IDENTIFIER = Symbol("radix.slottable"); 38592function createSlottable(ownerName) { 38593 let Slottable22 = ({ children }) => (0, import_jsx_runtime6.jsx)(import_jsx_runtime6.Fragment, { children }); 38594 return Slottable22.displayName = `${ownerName}.Slottable`, Slottable22.__radixId = SLOTTABLE_IDENTIFIER, Slottable22; 38595} 38596var Slottable2 = createSlottable("Slottable"); 38597function isSlottable2(child) { 38598 return React28.isValidElement(child) && typeof child.type == "function" && "__radixId" in child.type && child.type.__radixId === SLOTTABLE_IDENTIFIER; 38599} 38600function mergeProps2(slotProps, childProps) { 38601 let overrideProps = { ...childProps }; 38602 for (let propName in childProps) { 38603 let slotPropValue = slotProps[propName], childPropValue = childProps[propName]; 38604 /^on[A-Z]/.test(propName) ? slotPropValue && childPropValue ? overrideProps[propName] = (...args) => { 38605 let result = childPropValue(...args); 38606 return slotPropValue(...args), result; 38607 } : slotPropValue && (overrideProps[propName] = slotPropValue) : propName === "style" ? overrideProps[propName] = { ...slotPropValue, ...childPropValue } : propName === "className" && (overrideProps[propName] = [slotPropValue, childPropValue].filter(Boolean).join(" ")); 38608 } 38609 return { ...slotProps, ...overrideProps }; 38610} 38611function getElementRef3(element) { 38612 let getter = Object.getOwnPropertyDescriptor(element.props, "ref")?.get, mayWarn = getter && "isReactWarning" in getter && getter.isReactWarning; 38613 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); 38614} 38615
vendor: 1,122 bytes, lines 38616-38642
38616// src/components/components/Button/Button.tsx 38617init_polished_esm(); 38618 38619// src/manager-api/index.ts 38620var manager_api_exports = {}; 38621__export(manager_api_exports, { 38622 ActiveTabs: () => ActiveTabs2, 38623 Consumer: () => ManagerConsumer, 38624 ManagerContext: () => ManagerContext, 38625 Provider: () => ManagerProvider, 38626 RequestResponseError: () => RequestResponseError, 38627 Tag: () => Tag, 38628 addons: () => addons, 38629 combineParameters: () => combineParameters2, 38630 controlOrMetaKey: () => controlOrMetaKey, 38631 controlOrMetaSymbol: () => controlOrMetaSymbol, 38632 eventMatchesShortcut: () => eventMatchesShortcut, 38633 eventToShortcut: () => eventToShortcut, 38634 experimental_MockUniversalStore: () => MockUniversalStore, 38635 experimental_UniversalStore: () => UniversalStore, 38636 experimental_getStatusStore: () => getStatusStoreByTypeId, 38637 experimental_getTestProviderStore: () => getTestProviderStoreById, 38638 experimental_requestResponse: () => experimental_requestResponse, 38639 experimental_useStatusStore: () => useStatusStore, 38640 experimental_useTestProviderStore: () => useTestProviderStore, 38641 experimental_useUniversalStore: () => useUniversalStore, 38642
38642internal_checklistStore: () => checklistStore, 38643 internal_fullStatusStore: () => fullStatusStore, 38644 internal_fullTestProviderStore: () => fullTestProviderStore, 38645 internal_universalChecklistStore: () => universalChecklistStore, 38646 internal_universalStatusStore: () => universalStatusStore, 38647 internal_universalTestProviderStore: () => universalTestProviderStore, 38648 isMacLike: () => isMacLike, 38649 isShortcutTaken: () => isShortcutTaken, 38650 keyToSymbol: () => keyToSymbol, 38651 merge: () => merge_default, 38652 mockChannel: () => mockChannel, 38653 optionOrAltSymbol: () => optionOrAltSymbol, 38654 shortcutMatchesShortcut: () => shortcutMatchesShortcut, 38655 shortcutToAriaKeyshortcuts: () => shortcutToAriaKeyshortcuts, 38656 shortcutToHumanString: () => shortcutToHumanString, 38657 types: () => typesX, 38658 useAddonState: () => useAddonState, 38659 useArgTypes: () => useArgTypes, 38660 useArgs: () => useArgs2, 38661 useChannel: () => useChannel2, 38662 useGlobalTypes: () => useGlobalTypes, 38663 useGlobals: () => useGlobals2, 38664 useParameter: () => useParameter2, 38665 useSharedState: () => useSharedState, 38666 useStoryPrepared: () => useStoryPrepared, 38667 useStorybookApi: () => useStorybookApi, 38668 useStorybookState: () => useStorybookState 38669}); 38670
38671// src/manager-api/root.tsx 38672var import_react22 = __toESM(require_react(), 1); 38673
vendor: 365 bytes, lines 38674-38681
38674// ../../node_modules/es-toolkit/dist/predicate/isPlainObject.mjs 38675function isPlainObject(value) { 38676 if (!value || typeof value != "object") 38677 return !1; 38678 let proto = Object.getPrototypeOf(value); 38679 return proto === null || proto === Object.prototype || Object.getPrototypeOf(proto) === null ? Object.prototype.toString.call(value) === "[object Object]" : !1; 38680} 38681
vendor: 229 bytes, lines 38682-38686
38682// ../../node_modules/es-toolkit/dist/compat/_internal/getSymbols.mjs 38683function getSymbols(object) { 38684 return Object.getOwnPropertySymbols(object).filter((symbol) => Object.prototype.propertyIsEnumerable.call(object, symbol)); 38685} 38686
vendor: 218 bytes, lines 38687-38691
38687// ../../node_modules/es-toolkit/dist/compat/_internal/getTag.mjs 38688function getTag(value) { 38689 return value == null ? value === void 0 ? "[object Undefined]" : "[object Null]" : Object.prototype.toString.call(value); 38690} 38691
vendor: 1,008 bytes, lines 38692-38694
38692// ../../node_modules/es-toolkit/dist/compat/_internal/tags.mjs 38693var 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]"; 38694
vendor: 161 bytes, lines 38695-38699
38695// ../../node_modules/es-toolkit/dist/compat/util/eq.mjs 38696function eq2(value, other) { 38697 return value === other || Number.isNaN(value) && Number.isNaN(other); 38698} 38699
vendor: 4,361 bytes, lines 38700-38822
38700// ../../node_modules/es-toolkit/dist/predicate/isEqualWith.mjs 38701function isEqualWith(a3, b, areValuesEqual) { 38702 return isEqualWithImpl(a3, b, void 0, void 0, void 0, void 0, areValuesEqual); 38703} 38704function isEqualWithImpl(a3, b, property, aParent, bParent, stack, areValuesEqual) { 38705 let result = areValuesEqual(a3, b, property, aParent, bParent, stack); 38706 if (result !== void 0) 38707 return result; 38708 if (typeof a3 == typeof b) 38709 switch (typeof a3) { 38710 case "bigint": 38711 case "string": 38712 case "boolean": 38713 case "symbol": 38714 case "undefined": 38715 return a3 === b; 38716 case "number": 38717 return a3 === b || Object.is(a3, b); 38718 case "function": 38719 return a3 === b; 38720 case "object": 38721 return areObjectsEqual(a3, b, stack, areValuesEqual); 38722 } 38723 return areObjectsEqual(a3, b, stack, areValuesEqual); 38724} 38725function areObjectsEqual(a3, b, stack, areValuesEqual) { 38726 if (Object.is(a3, b)) 38727 return !0; 38728 let aTag = getTag(a3), bTag = getTag(b); 38729 if (aTag === argumentsTag && (aTag = objectTag), bTag === argumentsTag && (bTag = objectTag), aTag !== bTag) 38730 return !1; 38731 switch (aTag) { 38732 case stringTag: 38733 return a3.toString() === b.toString(); 38734 case numberTag: { 38735 let x = a3.valueOf(), y = b.valueOf(); 38736 return eq2(x, y); 38737 } 38738 case booleanTag: 38739 case dateTag: 38740 case symbolTag2: 38741 return Object.is(a3.valueOf(), b.valueOf()); 38742 case regexpTag: 38743 return a3.source === b.source && a3.flags === b.flags; 38744 case functionTag: 38745 return a3 === b; 38746 } 38747 stack = stack ?? /* @__PURE__ */ new Map(); 38748 let aStack = stack.get(a3), bStack = stack.get(b); 38749 if (aStack != null && bStack != null) 38750 return aStack === b; 38751 stack.set(a3, b), stack.set(b, a3); 38752 try { 38753 switch (aTag) { 38754 case mapTag: { 38755 if (a3.size !== b.size) 38756 return !1; 38757 for (let [key, value] of a3.entries()) 38758 if (!b.has(key) || !isEqualWithImpl(value, b.get(key), key, a3, b, stack, areValuesEqual)) 38759 return !1; 38760 return !0; 38761 } 38762 case setTag: { 38763 if (a3.size !== b.size) 38764 return !1; 38765 let aValues = Array.from(a3.values()), bValues = Array.from(b.values()); 38766 for (let i = 0; i < aValues.length; i++) { 38767 let aValue = aValues[i], index4 = bValues.findIndex((bValue) => isEqualWithImpl(aValue, bValue, void 0, a3, b, stack, areValuesEqual)); 38768 if (index4 === -1) 38769 return !1; 38770 bValues.splice(index4, 1); 38771 } 38772 return !0; 38773 } 38774 case arrayTag: 38775 case uint8ArrayTag: 38776 case uint8ClampedArrayTag: 38777 case uint16ArrayTag: 38778 case uint32ArrayTag: 38779 case bigUint64ArrayTag: 38780 case int8ArrayTag: 38781 case int16ArrayTag: 38782 case int32ArrayTag: 38783 case bigInt64ArrayTag: 38784 case float32ArrayTag: 38785 case float64ArrayTag: { 38786 if (typeof Buffer < "u" && Buffer.isBuffer(a3) !== Buffer.isBuffer(b) || a3.length !== b.length) 38787 return !1; 38788 for (let i = 0; i < a3.length; i++) 38789 if (!isEqualWithImpl(a3[i], b[i], i, a3, b, stack, areValuesEqual)) 38790 return !1; 38791 return !0; 38792 } 38793 case arrayBufferTag: 38794 return a3.byteLength !== b.byteLength ? !1 : areObjectsEqual(new Uint8Array(a3), new Uint8Array(b), stack, areValuesEqual); 38795 case dataViewTag: 38796 return a3.byteLength !== b.byteLength || a3.byteOffset !== b.byteOffset ? !1 : areObjectsEqual(new Uint8Array(a3), new Uint8Array(b), stack, areValuesEqual); 38797 case errorTag: 38798 return a3.name === b.name && a3.message === b.message; 38799 case objectTag: { 38800 if (!(areObjectsEqual(a3.constructor, b.constructor, stack, areValuesEqual) || isPlainObject(a3) && isPlainObject(b))) 38801 return !1; 38802 let aKeys = [...Object.keys(a3), ...getSymbols(a3)], bKeys = [...Object.keys(b), ...getSymbols(b)]; 38803 if (aKeys.length !== bKeys.length) 38804 return !1; 38805 for (let i = 0; i < aKeys.length; i++) { 38806 let propKey = aKeys[i], aProp = a3[propKey]; 38807 if (!Object.hasOwn(b, propKey)) 38808 return !1; 38809 let bProp = b[propKey]; 38810 if (!isEqualWithImpl(aProp, bProp, propKey, a3, b, stack, areValuesEqual)) 38811 return !1; 38812 } 38813 return !0; 38814 } 38815 default: 38816 return !1; 38817 } 38818 } finally { 38819 stack.delete(a3), stack.delete(b); 38820 } 38821} 38822
vendor: 77 bytes, lines 38823-38826
38823// ../../node_modules/es-toolkit/dist/function/noop.mjs 38824function noop() { 38825} 38826
vendor: 124 bytes, lines 38827-38831
38827// ../../node_modules/es-toolkit/dist/predicate/isEqual.mjs 38828function isEqual(a3, b) { 38829 return isEqualWith(a3, b, noop); 38830} 38831
vendor: 179 bytes, lines 38832-38836
38832// ../../node_modules/es-toolkit/dist/predicate/isPrimitive.mjs 38833function isPrimitive(value) { 38834 return value == null || typeof value != "object" && typeof value != "function"; 38835} 38836
vendor: 155 bytes, lines 38837-38841
38837// ../../node_modules/es-toolkit/dist/predicate/isTypedArray.mjs 38838function isTypedArray(x) { 38839 return ArrayBuffer.isView(x) && !(x instanceof DataView); 38840} 38841
38842// src/manager-api/context.ts 38843var import_react18 = __toESM(require_react(), 1), createContext4 = ({ api, state: state3 }) => (0, import_react18
vendor: 97 bytes, lines 38843-38847
38843.createContext)({ api, state: state3 }); 38844 38845// src/manager-api/lib/merge.ts 38846init_client_logger(); 38847
vendor: 1,164 bytes, lines 38848-38875
38848// ../../node_modules/es-toolkit/dist/object/clone.mjs 38849function clone(obj) { 38850 if (isPrimitive(obj)) 38851 return obj; 38852 if (Array.isArray(obj) || isTypedArray(obj) || obj instanceof ArrayBuffer || typeof SharedArrayBuffer < "u" && obj instanceof SharedArrayBuffer) 38853 return obj.slice(0); 38854 let prototype = Object.getPrototypeOf(obj), Constructor = prototype.constructor; 38855 if (obj instanceof Date || obj instanceof Map || obj instanceof Set) 38856 return new Constructor(obj); 38857 if (obj instanceof RegExp) { 38858 let newRegExp = new Constructor(obj); 38859 return newRegExp.lastIndex = obj.lastIndex, newRegExp; 38860 } 38861 if (obj instanceof DataView) 38862 return new Constructor(obj.buffer.slice(0)); 38863 if (obj instanceof Error) { 38864 let newError = new Constructor(obj.message); 38865 return newError.stack = obj.stack, newError.name = obj.name, newError.cause = obj.cause, newError; 38866 } 38867 if (typeof File < "u" && obj instanceof File) 38868 return new Constructor([obj], obj.name, { type: obj.type, lastModified: obj.lastModified }); 38869 if (typeof obj == "object") { 38870 let newObject = Object.create(prototype); 38871 return Object.assign(newObject, obj); 38872 } 38873 return obj; 38874} 38875
vendor: 312 bytes, lines 38876-38885
38876// ../../node_modules/es-toolkit/dist/object/mapValues.mjs 38877function mapValues(object, getNewValue) { 38878 let result = {}, keys3 = Object.keys(object); 38879 for (let i = 0; i < keys3.length; i++) { 38880 let key = keys3[i], value = object[key]; 38881 result[key] = getNewValue(value, key, object); 38882 } 38883 return result; 38884} 38885
vendor: 135 bytes, lines 38886-38890
38886// ../../node_modules/es-toolkit/dist/_internal/isUnsafeProperty.mjs 38887function isUnsafeProperty(key) { 38888 return key === "__proto__"; 38889} 38890
vendor: 886 bytes, lines 38891-38903
38891// ../../node_modules/es-toolkit/dist/object/mergeWith.mjs 38892function mergeWith(target, source, merge3) { 38893 let sourceKeys = Object.keys(source); 38894 for (let i = 0; i < sourceKeys.length; i++) { 38895 let key = sourceKeys[i]; 38896 if (isUnsafeProperty(key)) 38897 continue; 38898 let sourceValue = source[key], targetValue = target[key], merged = merge3(targetValue, sourceValue, key, target, source); 38899 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); 38900 } 38901 return target; 38902} 38903
vendor: 224 bytes, lines 38904-38913
38904// ../../node_modules/es-toolkit/dist/object/omit.mjs 38905function omit(obj, keys3) { 38906 let result = { ...obj }; 38907 for (let i = 0; i < keys3.length; i++) { 38908 let key = keys3[i]; 38909 delete result[key]; 38910 } 38911 return result; 38912} 38913
vendor: 249 bytes, lines 38914-38923
38914// ../../node_modules/es-toolkit/dist/object/pick.mjs 38915function pick(obj, keys3) { 38916 let result = {}; 38917 for (let i = 0; i < keys3.length; i++) { 38918 let key = keys3[i]; 38919 Object.hasOwn(obj, key) && (result[key] = obj[key]); 38920 } 38921 return result; 38922} 38923
vendor: 298 bytes, lines 38924-38933
38924// ../../node_modules/es-toolkit/dist/object/pickBy.mjs 38925function pickBy(obj, shouldPick) { 38926 let result = {}, keys3 = Object.keys(obj); 38927 for (let i = 0; i < keys3.length; i++) { 38928 let key = keys3[i], value = obj[key]; 38929 shouldPick(value, key) && (result[key] = value); 38930 } 38931 return result; 38932} 38933
vendor: 205 bytes, lines 38934-38936
38934// ../../node_modules/es-toolkit/dist/string/words.mjs 38935var CASE_SPLIT_PATTERN = new RegExp("\\p{Lu}?\\p{Ll}+|[0-9]+|\\p{Lu}+(?!\\p{Ll})|\\p{Emoji_Presentation}|\\p{Extended_Pictographic}|\\p{L}+", "gu"); 38936
vendor: 573 bytes, lines 38937-38946
38937// ../../node_modules/es-toolkit/dist/object/toMerged.mjs 38938function toMerged(target, source) { 38939 return mergeWith(clone(target), source, function mergeRecursively(targetValue, sourceValue) { 38940 if (Array.isArray(sourceValue)) 38941 return Array.isArray(targetValue) ? mergeWith(clone(targetValue), sourceValue, mergeRecursively) : mergeWith([], sourceValue, mergeRecursively); 38942 if (isPlainObject(sourceValue)) 38943 return isPlainObject(targetValue) ? mergeWith(clone(targetValue), sourceValue, mergeRecursively) : mergeWith({}, sourceValue, mergeRecursively); 38944 }); 38945} 38946
vendor: 1,007 bytes, lines 38947-38976
38947// src/manager-api/lib/merge.ts 38948var merge_default = (a3, ...b) => { 38949 let target = {}; 38950 target = mergeWith( 38951 {}, 38952 a3, 38953 (objValue, srcValue) => { 38954 if (Array.isArray(srcValue) && Array.isArray(objValue)) 38955 return srcValue.forEach((s3) => { 38956 objValue.find((o) => o === s3 || isEqual(o, s3)) || objValue.push(s3); 38957 }), objValue; 38958 if (Array.isArray(objValue)) 38959 return logger.log(["the types mismatch, picking", objValue]), objValue; 38960 } 38961 ); 38962 for (let obj of b) 38963 target = mergeWith(target, obj, (objValue, srcValue) => { 38964 if (Array.isArray(srcValue) && Array.isArray(objValue)) 38965 return srcValue.forEach((s3) => { 38966 objValue.find((o) => o === s3 || isEqual(o, s3)) || objValue.push(s3); 38967 }), objValue; 38968 if (Array.isArray(objValue)) 38969 return logger.log(["the types mismatch, picking", objValue]), objValue; 38970 }); 38971 return target; 38972}, noArrayMerge = (a3, ...b) => { 38973 let target = {}; 38974 target = mergeWith( 38975 {}, 38976 a3
vendor: 434 bytes, lines 38976-38992
38976, 38977 (objValue, srcValue) => { 38978 if (Array.isArray(srcValue)) 38979 return srcValue; 38980 } 38981 ); 38982 for (let obj of b) 38983 target = mergeWith(target, obj, (objValue, srcValue) => { 38984 if (Array.isArray(srcValue)) 38985 return srcValue; 38986 }); 38987 return target; 38988}; 38989 38990// src/manager-api/initial-state.ts 38991var main = (...additions) => additions.reduce((acc, item) => merge_default(acc, item), {}), initial_state_default = main; 38992
vendor: 173 bytes, lines 38993-39000
38993// src/manager-api/lib/addons.ts 38994init_client_logger(); 38995 38996// src/types/index.ts 38997var types_exports = {}; 38998__export(types_exports, { 38999 Addon_TypesEnum: () => Addon_TypesEnum, 39000 C
39000oreWebpackCompiler: () => CoreWebpackCompiler, 39001 Feature: () => Feature, 39002 SupportedBuilder: () => SupportedBuilder, 39003 SupportedFramework: () => SupportedFramework, 39004 SupportedLanguage: () => SupportedLanguage, 39005 SupportedRenderer: () => SupportedRenderer 39006})
vendor: 588 bytes, lines 39006-39012
39006; 39007 39008// src/types/modules/addons.ts 39009var 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 || {}); 39010 39011// src/types/modules/frameworks.ts 39012var SupportedFramework = /* @__PURE__ */ ((SupportedFramework2) => (SupportedFramework2.ANGULAR = "angular", SupportedFramework2.
39012EMBER = "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 = "svelteki
vendor: 1,824 bytes, lines 39012-39024
39012t", 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 || {}); 39013 39014// src/types/modules/renderers.ts 39015var 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 || {}); 39016 39017// src/types/modules/webpack.ts 39018var CoreWebpackCompiler = /* @__PURE__ */ ((CoreWebpackCompiler2) => (CoreWebpackCompiler2.Babel = "babel", CoreWebpackCompiler2.SWC = "swc", CoreWebpackCompiler2))(CoreWebpackCompiler || {}); 39019 39020// src/types/modules/builders.ts 39021var SupportedBuilder = /* @__PURE__ */ ((SupportedBuilder2) => (SupportedBuilder2.WEBPACK5 = "webpack5", SupportedBuilder2.VITE = "vite", SupportedBuilder2.RSBUILD = "rsbuild", SupportedBuilder2))(SupportedBuilder || {}); 39022 39023// src/types/modules/features.ts 39024var Feature = /* @__PURE__ */ ((Feature2) => (Feature2.DOCS = "docs", Feature2.TEST = "test", Feature2.ONBOARDING = "onboarding", Feature2.A11Y = "a11y", Feature2
vendor: 267 bytes, lines 39024-39029
39024))(Feature || {}); 39025 39026// src/types/modules/languages.ts 39027var SupportedLanguage = /* @__PURE__ */ ((SupportedLanguage2) => (SupportedLanguage2.JAVASCRIPT = "javascript", SupportedLanguage2.TYPESCRIPT = "typescript", SupportedLanguage2))(SupportedLanguage || {}); 39028 39029// src/
39029manager-api/lib/addons.ts 39030init_dist(); 39031
39032// src/manager-api/lib/storybook-channel-mock.ts 39033function mockChannel() { 39034 let transport = { 39035 setHandler: () => { 39036 }, 39037 send: () => { 39038 } 39039 }; 39040 return new Channel({ transport }); 39041} 39042
39043// src/manager-api/lib/addons.ts 39044var AddonStore = class { 39045 constructor() { 39046 this.loaders = {}; 39047 this.elements = {}; 39048 this.config = {}; 39049 this.getChannel = () => (this.channel || this.setChannel(mockChannel()), this.channel); 39050 this.ready = () => this.promise; 39051 this.hasChannel = () => !!this.channel; 39052 this.setChannel = (channel) => { 39053 this.channel = channel, this.resolve(); 39054 }; 39055 this.setConfig = (value) => { 39056 Object.assign(this.config, value), this.hasChannel() ? this.getChannel().emit(SET_CONFIG, this.config) : this.ready().then((channel) => { 39057 channel.emit(SET_CONFIG, this.config); 39058 }); 39059 }; 39060 this.getConfig = () => this.config; 39061 /** 39062 * Registers an addon loader function. 39063 * 39064 * @param {string} id - The id of the addon loader. 39065 * @param {(api: API) => void} callback - The function that will be called to register the addon. 39066 * @returns {void} 39067 */ 39068 this.register = (id, callback) => { 39069 this.loaders[id] && logger.warn(`${id} was loaded twice, this could have bad side-effects`), this.loaders[id] = callback; 39070 }; 39071 this.loadAddons = (api) => { 39072 Object.values(this.loaders).forEach((value) => value(api)); 39073 }; 39074 this.promise = new Promise((res) => { 39075 this.resolve = () => res(this.getChannel()); 39076 }); 39077 } 39078 getElements(type5) { 39079 return this.elements[type5] || (this.elements[type5] = {}), this.elements[type5]; 39080 } 39081 /** 39082 * Adds an addon to the addon store. 39083 * 39084 * @param {string} id - The id of the addon. 39085 * @param {Addon_Type} addon - The addon to add. 39086 * @returns {void} 39087 */ 39088 add(id, addon) { 39089 let { type: type5 } = addon, collection = this.getElements(type5); 39090 collection[id] = { ...addon, id }; 39091 } 39092 experimental_getRegisteredAddons() { 39093 return Object.keys(this.loaders); 39094 } 39095}, KEY2 = "__STORYBOOK_ADDONS_MANAGER"; 39096function getAddonsStore() { 39097 return scope[KEY2] || (scope[KEY2] = new AddonStore()), scope[KEY2]; 39098} 39099var addons = getAddonsStore(); 39100
39101// src/manager-api/modules/addons.ts 39102var addons_exports = {}; 39103__export(addons_exports, { 39104 ensurePanel: () => ensurePanel, 39105 init: () => init 39106}); 39107function ensurePanel(panels, selectedPanel, currentPanel) { 39108 let keys3 = Object.keys(panels); 39109 return keys3.indexOf(selectedPanel) >= 0 ? selectedPanel : keys3.length ? keys3[0] : currentPanel; 39110} 39111var init = ({ provider, store: store2, fullAPI }) => { 39112 let api = { 39113 getElements: (type5) => provider.getElements(type5), 39114 getSelectedPanel: () => { 39115 let { selectedPanel } = store2.getState(); 39116 return ensurePanel(api.getElements("panel" /* PANEL */), selectedPanel, selectedPanel); 39117 }, 39118 setSelectedPanel: (panelName) => { 39119 store2.setState({ selectedPanel: panelName }, { persistence: "session" }); 39120 }, 39121 setAddonState(addonId, newStateOrMerger, options) { 39122 let merger = typeof newStateOrMerger == "function" ? newStateOrMerger : () => newStateOrMerger; 39123 return store2.setState( 39124 (s3) => ({ ...s3, addons: { ...s3.addons, [addonId]: merger(s3
vendor: 1,364 bytes, lines 39124-39163
39124.addons[addonId]) } }), 39125 options 39126 ).then(() => api.getAddonState(addonId)); 39127 }, 39128 getAddonState: (addonId) => store2.getState().addons[addonId] || globalThis?.STORYBOOK_ADDON_STATE[addonId] 39129 }; 39130 return { 39131 api, 39132 state: { 39133 selectedPanel: ensurePanel( 39134 api.getElements("panel" /* PANEL */), 39135 store2.getState().selectedPanel 39136 ), 39137 addons: {} 39138 } 39139 }; 39140}; 39141 39142// src/manager-api/modules/channel.ts 39143var channel_exports = {}; 39144__export(channel_exports, { 39145 init: () => init2 39146}); 39147var init2 = ({ provider }) => ({ api: { 39148 getChannel: () => provider.channel, 39149 on: (type5, handler) => (provider.channel?.on(type5, handler), () => provider.channel?.off(type5, handler)), 39150 off: (type5, handler) => provider.channel?.off(type5, handler), 39151 once: (type5, handler) => provider.channel?.once(type5, handler), 39152 emit: (type5, data, ...args) => { 39153 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); 39154 } 39155}, state: {} }); 39156 39157// src/manager-api/modules/globals.ts 39158var globals_exports = {}; 39159__export(globals_exports, { 39160 init: () => init5 39161}); 39162init_client_logger(); 39163
vendor: 1,874 bytes, lines 39164-39217
39164// ../../node_modules/dequal/dist/index.mjs 39165var has = Object.prototype.hasOwnProperty; 39166function find(iter, tar, key) { 39167 for (key of iter.keys()) 39168 if (dequal(key, tar)) return key; 39169} 39170function dequal(foo, bar) { 39171 var ctor, len, tmp; 39172 if (foo === bar) return !0; 39173 if (foo && bar && (ctor = foo.constructor) === bar.constructor) { 39174 if (ctor === Date) return foo.getTime() === bar.getTime(); 39175 if (ctor === RegExp) return foo.toString() === bar.toString(); 39176 if (ctor === Array) { 39177 if ((len = foo.length) === bar.length) 39178 for (; len-- && dequal(foo[len], bar[len]); ) ; 39179 return len === -1; 39180 } 39181 if (ctor === Set) { 39182 if (foo.size !== bar.size) 39183 return !1; 39184 for (len of foo) 39185 if (tmp = len, tmp && typeof tmp == "object" && (tmp = find(bar, tmp), !tmp) || !bar.has(tmp)) return !1; 39186 return !0; 39187 } 39188 if (ctor === Map) { 39189 if (foo.size !== bar.size) 39190 return !1; 39191 for (len of foo) 39192 if (tmp = len[0], tmp && typeof tmp == "object" && (tmp = find(bar, tmp), !tmp) || !dequal(len[1], bar.get(tmp))) 39193 return !1; 39194 return !0; 39195 } 39196 if (ctor === ArrayBuffer) 39197 foo = new Uint8Array(foo), bar = new Uint8Array(bar); 39198 else if (ctor === DataView) { 39199 if ((len = foo.byteLength) === bar.byteLength) 39200 for (; len-- && foo.getInt8(len) === bar.getInt8(len); ) ; 39201 return len === -1; 39202 } 39203 if (ArrayBuffer.isView(foo)) { 39204 if ((len = foo.byteLength) === bar.byteLength) 39205 for (; len-- && foo[len] === bar[len]; ) ; 39206 return len === -1; 39207 } 39208 if (!ctor || typeof foo == "object") { 39209 len = 0; 39210 for (ctor in foo) 39211 if (has.call(foo, ctor) && ++len && !has.call(bar, ctor) || !(ctor in bar) || !dequal(foo[ctor], bar[ctor])) return !1; 39212 return Object.keys(bar).length === len; 39213 } 39214 } 39215 return foo !== foo && bar !== bar; 39216} 39217
vendor: 416 bytes, lines 39218-39234
39218// src/manager-api/lib/events.ts 39219init_client_logger(); 39220 39221// src/manager-api/modules/refs.ts 39222var refs_exports = {}; 39223__export(refs_exports, { 39224 defaultStoryMapper: () => defaultStoryMapper, 39225 getSourceType: () => getSourceType, 39226 init: () => init4 39227}); 39228init_dist(); 39229init_esm(); 39230 39231// src/csf/includeConditionalArg.ts 39232var import_tiny_isequal = __toESM(require_tiny_isequal(), 1); 39233 39234// src/preview-api/modules/addons/main.ts
39235init_dist(); 39236
39237// src/preview-api/modules/addons/storybook-channel-mock.ts 39238function mockChannel2() { 39239 let transport = { 39240 setHandler: () => { 39241 }, 39242 send: () => { 39243 } 39244 }; 39245 return new Channel({ transport }); 39246} 39247
39248// src/preview-api/modules/addons/main.ts 39249var AddonStore2 = class { 39250 constructor() { 39251 this.getChannel = () => { 39252 if (!this.channel) { 39253 let channel = mockChannel2(); 39254 return this.setChannel(channel), channel; 39255 } 39256 return this.channel; 39257 }; 39258 this.ready = () => this.promise; 39259 this.hasChannel = () => !!this.channel; 39260 this.setChannel = (channel) => { 39261 this.channel = channel, this.resolve(); 39262 }; 39263 this.promise = new Promise((res) => { 39264 this.resolve = () => res(this.getChannel()); 39265 }); 39266 } 39267}, KEY3 = "__STORYBOOK_ADDONS_PREVIEW"; 39268function getAddonsStore2() { 39269 return scope[KEY3] || (scope[KEY3] = new AddonStore2()), scope[KEY3]; 39270} 39271var addons2 = getAddonsStore2(); 39272
vendor: 2,831 bytes, lines 39273-39330
39273// src/preview-api/modules/addons/hooks.ts 39274init_client_logger(); 39275init_dist(); 39276var areDepsEqual = (deps, nextDeps) => deps.length === nextDeps.length && deps.every((dep, i) => dep === nextDeps[i]), invalidHooksError = () => new Error( 39277 `Storybook preview hooks can only be called inside decorators and story functions. 39278 39279When 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.` 39280); 39281function getHooksContextOrNull() { 39282 return scope.STORYBOOK_HOOKS_CONTEXT || null; 39283} 39284function getHooksContextOrThrow() { 39285 let hooks = getHooksContextOrNull(); 39286 if (hooks == null) 39287 throw invalidHooksError(); 39288 return hooks; 39289} 39290function useHook(name, callback, deps) { 39291 let hooks = getHooksContextOrThrow(); 39292 if (hooks.currentPhase === "MOUNT") { 39293 deps != null && !Array.isArray(deps) && logger.warn( 39294 `${name} received a final argument that is not an array (instead, received ${deps}). When specified, the final argument must be an array.` 39295 ); 39296 let hook = { name, deps }; 39297 return hooks.currentHooks.push(hook), callback(hook), hook; 39298 } 39299 if (hooks.currentPhase === "UPDATE") { 39300 let hook = hooks.getNextHook(); 39301 if (hook == null) 39302 throw new Error("Rendered more hooks than during the previous render."); 39303 return hook.name !== name && logger.warn( 39304 `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.` 39305 ), deps != null && hook.deps == null && logger.warn( 39306 `${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.` 39307 ), 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. 39308Previous: ${hook.deps} 39309Incoming: ${deps}`), (deps == null || hook.deps == null || !areDepsEqual(deps, hook.deps)) && (callback(hook), hook.deps = deps), hook; 39310 } 39311 throw invalidHooksError(); 39312} 39313function useMemoLike(name, nextCreate, deps) { 39314 let { memoizedState } = useHook( 39315 name, 39316 (hook) => { 39317 hook.memoizedState = nextCreate(); 39318 }, 39319 deps 39320 ); 39321 return memoizedState; 39322} 39323function useMemo3(nextCreate, deps) { 39324 return useMemoLike("useMemo", nextCreate, deps); 39325} 39326function useEffect5(create4, deps) { 39327 let hooks = getHooksContextOrThrow(), effect4 = useMemoLike("useEffect", () => ({ create: create4 }), deps); 39328 hooks.currentEffects.includes(effect4) || hooks.currentEffects.push(effect4); 39329} 39330
39331// src/preview-errors.ts 39332init_esm(); 39333
vendor: 2,828 bytes, lines 39334-39415
39334// src/storybook-error.ts 39335function parseErrorCode({ 39336 code, 39337 category 39338}) { 39339 let paddedCode = String(code).padStart(4, "0"); 39340 return `SB_${category}_${paddedCode}`; 39341} 39342function appendErrorRef(url) { 39343 if (/^(?!.*storybook\.js\.org)|[?&]ref=error\b/.test(url)) 39344 return url; 39345 try { 39346 let urlObj = new URL(url); 39347 return urlObj.searchParams.set("ref", "error"), urlObj.toString(); 39348 } catch { 39349 return url; 39350 } 39351} 39352var StorybookError = class _StorybookError extends Error { 39353 constructor(props) { 39354 super(_StorybookError.getFullMessage(props)); 39355 /** 39356 * Data associated with the error. Used to provide additional information in the error message or 39357 * to be passed to telemetry. 39358 */ 39359 this.data = {}; 39360 /** Flag used to easily determine if the error originates from Storybook. */ 39361 this.fromStorybook = !0; 39362 /** 39363 * Flag used to determine if the error is handled by us and should therefore not be shown to the 39364 * user. 39365 */ 39366 this.isHandledError = !1; 39367 /** 39368 * A collection of sub errors which relate to a parent error. 39369 * 39370 * Sub-errors are used to represent multiple related errors that occurred together. When a 39371 * StorybookError with sub-errors is sent to telemetry, both the parent error and each sub-error 39372 * are sent as separate telemetry events. This allows for better error tracking and debugging. 39373 * 39374 * @example 39375 * 39376 * ```ts 39377 * const error1 = new SomeError(); 39378 * const error2 = new AnotherError(); 39379 * const parentError = new ParentError({ 39380 * // ... other props 39381 * subErrors: [error1, error2], 39382 * }); 39383 * ``` 39384 */ 39385 this.subErrors = []; 39386 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 ?? []; 39387 } 39388 get fullErrorCode() { 39389 return parseErrorCode({ code: this.code, category: this.category }); 39390 } 39391 /** Overrides the default `Error.name` property in the format: SB_<CATEGORY>_<CODE>. */ 39392 get name() { 39393 let errorName = this._name || this.constructor.name; 39394 return `${this.fullErrorCode} (${errorName})`; 39395 } 39396 set name(name) { 39397 this._name = name; 39398 } 39399 /** Generates the error message along with additional documentation link (if applicable). */ 39400 static getFullMessage({ 39401 documentation, 39402 code, 39403 category, 39404 message 39405 }) { 39406 let page; 39407 return documentation === !0 ? page = `https://storybook.js.org/error/${parseErrorCode({ code, category })}?ref=error` : typeof documentation == "string" ? page = appendErrorRef(documentation) : Array.isArray(documentation) && (page = ` 39408${documentation.map((doc) => ` - ${appendErrorRef(doc)}`).join(` 39409`)}`), `${message}${page != null ? ` 39410 39411More info: ${page} 39412` : ""}`; 39413 } 39414}; 39415
39416// src/preview-errors.ts 39417var StatusTypeIdMismatchError = class extends StorybookError { 39418 constructor(data) { 39419 super({ 39420 name: "StatusTypeIdMismatchError", 39421 category: "PREVIEW_API" /* PREVIEW_API */, 39422 code: 16, 39423 message: `Status has typeId "${data.status.typeId}" but was added to store with typeId "${data.typeId}". Full status: ${JSON.stringify( 39424 data.status, 39425 null, 39426 2 39427 )}` 39428 }); 39429 this.data = data; 39430 } 39431};
vendor: 146 bytes, lines 39431-39436
39431 39432 39433// src/preview-api/modules/store/StoryStore.ts 39434var import_memoizerific5 = __toESM(require_memoizerific(), 1); 39435 39436// src/preview-api/modules/store/
39436args.ts 39437init_client_logger(); 39438init_esm(); 39439var INCOMPATIBLE = Symbol("incompatible"); 39440var DEEPLY_EQUAL = Symbol("Deeply equal")
vendor: 2,167 bytes, lines 39440-39494
39440; 39441 39442// src/preview-api/modules/store/GlobalsStore.ts 39443init_client_logger(); 39444 39445// src/preview-api/modules/store/StoryIndexStore.ts 39446var import_memoizerific4 = __toESM(require_memoizerific(), 1), getImportPathMap = (0, import_memoizerific4.default)(1)( 39447 (entries) => Object.values(entries).reduce( 39448 (acc, entry) => (acc[entry.importPath] = acc[entry.importPath] || entry, acc), 39449 {} 39450 ) 39451); 39452 39453// src/preview-api/modules/store/csf/normalizeStory.ts 39454init_client_logger(); 39455init_esm(); 39456var deprecatedStoryAnnotation = dedent` 39457CSF .story annotations deprecated; annotate story functions directly: 39458- StoryFn.story.name => StoryFn.storyName 39459- StoryFn.story.(parameters|decorators) => StoryFn.(parameters|decorators) 39460See https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#hoisted-csf-annotations for details and codemod. 39461`; 39462 39463// src/preview-api/modules/store/csf/processCSFFile.ts 39464init_client_logger(); 39465 39466// src/preview-api/modules/store/csf/prepareStory.ts 39467init_dist(); 39468init_dist(); 39469 39470// src/shared/constants/tags.ts 39471var Tag = { 39472 /** Indicates that autodocs should be generated for this component */ 39473 AUTODOCS: "autodocs", 39474 /** MDX documentation attached to a component's stories file */ 39475 ATTACHED_MDX: "attached-mdx", 39476 /** Standalone MDX documentation not attached to stories */ 39477 UNATTACHED_MDX: "unattached-mdx", 39478 /** Story has a play function */ 39479 PLAY_FN: "play-fn", 39480 /** Story has a test function */ 39481 TEST_FN: "test-fn", 39482 /** Development environment tag */ 39483 DEV: "dev", 39484 /** Test environment tag */ 39485 TEST: "test", 39486 /** Manifest generation tag */ 39487 MANIFEST: "manifest" 39488}, BUILT_IN_FILTERS = { 39489 _docs: (entry, excluded) => excluded ? entry.type !== "docs" : entry.type === "docs", 39490 _play: (entry, excluded) => excluded ? entry.type !== "story" || !entry.tags?.includes(Tag.PLAY_FN) : entry.type === "story" && !!entry.tags?.includes(Tag.PLAY_FN), 39491 _test: (entry, excluded) => excluded ? entry.type !== "story" || entry.subtype !== "test" : entry.type === "story" && entry.subtype === "test" 39492}, USER_TAG_FILTER = (tag) => (entry, excluded) => excluded ? !entry.tags?.includes(tag) : !!entry.tags?.includes(tag); 39493 39494// src/preview-api/modules/store/
vendor: 842 bytes, lines 39494-39505
39494parameters.ts 39495var combineParameters = (...parameterSets) => { 39496 let mergeKeys = {}, definedParametersSets = parameterSets.filter(Boolean), combined = definedParametersSets.reduce((acc, parameters2) => (Object.entries(parameters2).forEach(([key, value]) => { 39497 let existing = acc[key]; 39498 Array.isArray(value) || typeof existing > "u" ? acc[key] = value : isPlainObject(value) && isPlainObject(existing) ? mergeKeys[key] = !0 : typeof value < "u" && (acc[key] = value); 39499 }), acc), {}); 39500 return Object.keys(mergeKeys).forEach((key) => { 39501 let mergeValues = definedParametersSets.filter(Boolean).map((p3) => p3[key]).filter((value) => typeof value < "u"); 39502 mergeValues.every((value) => isPlainObject(value)) ? combined[key] = combineParameters(...mergeValues) : combined[key] = mergeValues[mergeValues.length - 1]; 39503 }), combined; 39504}; 39505
vendor: 1,759 bytes, lines 39506-39546
39506// src/preview-api/modules/store/inferArgTypes.ts 39507init_client_logger(); 39508init_esm(); 39509var inferType = (value, name, visited, cache) => { 39510 let type5 = typeof value; 39511 switch (type5) { 39512 case "boolean": 39513 case "string": 39514 case "number": 39515 case "function": 39516 case "symbol": 39517 return { name: type5 }; 39518 default: 39519 break; 39520 } 39521 if (value) { 39522 if (cache.has(value)) 39523 return cache.get(value); 39524 if (visited.has(value)) 39525 return logger.warn(dedent` 39526 We've detected a cycle in arg '${name}'. Args should be JSON-serializable. 39527 39528 Consider using the mapping feature or fully custom args: 39529 - Mapping: https://storybook.js.org/docs/writing-stories/args#mapping-to-complex-arg-values 39530 - Custom args: https://storybook.js.org/docs/essentials/controls#fully-custom-args 39531 `), { name: "other", value: "cyclic object" }; 39532 visited.add(value); 39533 let result; 39534 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; 39535 } 39536 return { name: "object", value: {} }; 39537}, inferArgTypes = (context) => { 39538 let { id, argTypes: userArgTypes = {}, initialArgs = {} } = context, cache = /* @__PURE__ */ new Map(), argTypes = mapValues(initialArgs, (arg, key) => ({ 39539 name: key, 39540 type: inferType(arg, `${id}.${key}`, /* @__PURE__ */ new Set(), cache) 39541 })), userArgTypesNames = mapValues(userArgTypes, (argType, key) => ({ 39542 name: key 39543 })); 39544 return combineParameters(argTypes, userArgTypesNames, userArgTypes); 39545}; 39546inferArgTypes.secondPass = !0
vendor: 519 bytes, lines 39546-39556
39546; 39547 39548// src/preview-api/modules/store/inferControls.ts 39549init_client_logger(); 39550 39551// src/preview-api/modules/store/filterArgTypes.ts 39552var matches = (name, descriptor) => Array.isArray(descriptor) ? descriptor.includes(name) : name.match(descriptor), filterArgTypes = (argTypes, include2, exclude) => !include2 && !exclude ? argTypes : argTypes && pickBy(argTypes, (argType, key) => { 39553 let name = argType.name || key.toString(); 39554 return !!(!include2 || matches(name, include2)) && (!exclude || !matches(name, exclude)); 39555}); 39556
vendor: 1,724 bytes, lines 39557-39602
39557// src/preview-api/modules/store/inferControls.ts 39558var inferControl = (argType, name, matchers) => { 39559 let { type: type5, options } = argType; 39560 if (type5) { 39561 if (matchers.color && matchers.color.test(name)) { 39562 let controlType = type5.name; 39563 if (controlType === "string") 39564 return { control: { type: "color" } }; 39565 controlType !== "enum" && logger.warn( 39566 `Addon controls: Control of type color only supports string, received "${controlType}" instead` 39567 ); 39568 } 39569 if (matchers.date && matchers.date.test(name)) 39570 return { control: { type: "date" } }; 39571 switch (type5.name) { 39572 case "array": 39573 return { control: { type: "object" } }; 39574 case "boolean": 39575 return { control: { type: "boolean" } }; 39576 case "string": 39577 return { control: { type: "text" } }; 39578 case "number": 39579 return { control: { type: "number" } }; 39580 case "enum": { 39581 let { value } = type5; 39582 return { control: { type: value?.length <= 5 ? "radio" : "select" }, options: value }; 39583 } 39584 case "function": 39585 case "symbol": 39586 return null; 39587 default: 39588 return { control: { type: options ? "select" : "object" } }; 39589 } 39590 } 39591}, inferControls = (context) => { 39592 let { 39593 argTypes, 39594 parameters: { __isArgsStory, controls: { include: include2 = null, exclude = null, matchers = {} } = {} } 39595 } = context; 39596 if (!__isArgsStory) 39597 return argTypes; 39598 let filteredArgTypes = filterArgTypes(argTypes, include2, exclude), withControls = mapValues(filteredArgTypes, (argType, name) => argType?.type && inferControl(argType, name.toString(), matchers)); 39599 return combineParameters(withControls, filteredArgTypes); 39600}; 39601inferControls.secondPass = !0; 39602
vendor: 96 bytes, lines 39603-39606
39603// src/preview-api/modules/store/csf/composeConfigs.ts 39604init_dist(); 39605 39606// src/preview-api/modules/
39606store/csf/portable-stories.ts 39607init_esm
vendor: 353 bytes, lines 39607-39621
39607(); 39608 39609// src/preview-api/modules/preview-web/render/animation-utils.ts 39610function isTestEnvironment() { 39611 try { 39612 return ( 39613 // @ts-expect-error This property exists in Vitest browser mode 39614 !!globalThis.__vitest_browser__ || !!globalThis.window?.navigator?.userAgent?.match(/StorybookTestRunner/) 39615 ); 39616 } catch { 39617 return !1; 39618 } 39619} 39620 39621// src/
39621preview-api/modules/store/autoTitle.ts 39622init_client_logger(); 39623init_esm(); 39624
39625// src/preview-api/modules/store
vendor: 116 bytes, lines 39625-39631
39625/sortStories.ts 39626init_esm(); 39627 39628// src/preview-api/modules/preview-web/Preview.tsx 39629init_client_logger(); 39630init_dist(); 39631
vendor: 108 bytes, lines 39632-39634
39632// src/preview-api/modules/preview-web/render/Render.ts 39633var PREPARE_ABORTED = new Error("prepareAborted"); 39634
vendor: 467 bytes, lines 39635-39650
39635// src/preview-api/modules/preview-web/render/StoryRender.ts 39636var { AbortController: AbortController2 } = globalThis; 39637 39638// src/preview-api/modules/preview-web/Preview.tsx 39639var { fetch } = scope; 39640 39641// src/preview-api/modules/preview-web/PreviewWeb.tsx 39642init_dist(); 39643 39644// src/preview-api/modules/preview-web/PreviewWithSelection.tsx 39645init_client_logger(); 39646 39647// src/preview-api/modules/preview-web/docs-context/DocsContext.ts 39648init_esm(); 39649 39650// src/preview-api/modules/preview-web/
39650UrlStore.ts 39651init_dist(); 39652var import_picoquery2 = __toESM(require_main(), 1); 39653
39654// src/preview-api/modules/preview-web/parseArgsParam.ts 39655init_client_logger(); 39656var import_picoquery = __toESM(require_main(), 1
vendor: 259 bytes, lines 39656-39665
39656); 39657init_esm(); 39658 39659// src/preview-api/modules/preview-web/UrlStore.ts 39660var { history, document: document4 } = scope; 39661 39662// src/preview-api/modules/preview-web/WebView.ts 39663init_client_logger(); 39664init_dist(); 39665var import_ansi_to_html = __toESM(require_ansi_to_html(), 1)
39665, import_picoquery3 = __toESM(require_main
vendor: 243 bytes, lines 39665-39675
39665(), 1); 39666init_esm(); 39667var { document: document5 } = scope; 39668var ansiConverter = new import_ansi_to_html.default({ 39669 escapeXML: !0 39670}); 39671 39672// src/preview-api/modules/preview-web/simulate-pageload.ts 39673init_dist(); 39674var { document: document6 } = scope; 39675
vendor: 228 bytes, lines 39676-39681
39676// ../../node_modules/comment-parser/es6/primitives.js 39677var Markers; 39678(function(Markers2) { 39679 Markers2.start = "/**", Markers2.nostart = "/***", Markers2.delim = "*", Markers2.end = "*/"; 39680})(Markers = Markers || (Markers = {})); 39681
vendor: 430 bytes, lines 39682-39690
39682// ../../node_modules/comment-parser/es6/stringifier/index.js 39683function join(tokens2) { 39684 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; 39685} 39686function getStringifier() { 39687 return (block) => block.source.map(({ tokens: tokens2 }) => join(tokens2)).join(` 39688`); 39689} 39690
vendor: 299 bytes, lines 39691-39708
39691// ../../node_modules/comment-parser/es6/stringifier/inspect.js 39692var zeroWidth = { 39693 line: 0, 39694 start: 0, 39695 delimiter: 0, 39696 postDelimiter: 0, 39697 tag: 0, 39698 postTag: 0, 39699 name: 0, 39700 postName: 0, 39701 type: 0, 39702 postType: 0, 39703 description: 0, 39704 end: 0, 39705 lineEnd: 0 39706}; 39707var fields = Object.keys(zeroWidth); 39708
vendor: 86 bytes, lines 39709-39711
39709// ../../node_modules/comment-parser/es6/index.js 39710var stringify4 = getStringifier(); 39711
vendor: 803 bytes, lines 39712-39722
39712// src/docs-tools/argTypes/jsdocParser.ts 39713var import_jsdoc_type_pratt_parser = __toESM(require_dist(), 1); 39714var jsdocStringifyRules = (0, import_jsdoc_type_pratt_parser.stringifyRules)(), originalJsdocStringifyObject = jsdocStringifyRules.JsdocTypeObject; 39715jsdocStringifyRules.JsdocTypeAny = () => "any"; 39716jsdocStringifyRules.JsdocTypeObject = (result, transform) => `(${originalJsdocStringifyObject(result, transform)})`; 39717jsdocStringifyRules.JsdocTypeOptional = (result, transform) => transform(result.element); 39718jsdocStringifyRules.JsdocTypeNullable = (result, transform) => transform(result.element); 39719jsdocStringifyRules.JsdocTypeNotNullable = (result, transform) => transform(result.element); 39720jsdocStringifyRules.JsdocTypeUnion = (result, transform) => result.elements.map(transform).join("|"); 39721 39722// src/
39722docs-tools/shared.ts 39723var ADDON_ID = "storybook/docs", PANEL_ID = `${ADDON_ID}/panel`; 39724var SNIPPET_RENDERED = `${ADDON_ID}/snippet-rendered`;
vendor: 89 bytes, lines 39724-39730
39724 39725 39726// src/actions/runtime/action.ts 39727init_dist(); 39728 39729// src/actions/constants.ts 39730var ADDON_ID
397302 = "storybook/actions", PANEL_ID2 = `${ADDON_ID2}/panel`, EVENT_ID = `${ADDON_ID2}/action-event`, CLEAR_ID = `${ADDON_ID2}/action-clear`
vendor: 3,458 bytes, lines 39730-39821
39730; 39731 39732// src/test/index.ts 39733var test_exports = {}; 39734__export(test_exports, { 39735 buildQueries: () => buildQueries2, 39736 clearAllMocks: () => clearAllMocks, 39737 configure: () => configure2, 39738 createEvent: () => createEvent3, 39739 expect: () => expect3, 39740 findAllByAltText: () => findAllByAltText2, 39741 findAllByDisplayValue: () => findAllByDisplayValue2, 39742 findAllByLabelText: () => findAllByLabelText2, 39743 findAllByPlaceholderText: () => findAllByPlaceholderText2, 39744 findAllByRole: () => findAllByRole2, 39745 findAllByTestId: () => findAllByTestId2, 39746 findAllByText: () => findAllByText2, 39747 findAllByTitle: () => findAllByTitle2, 39748 findByAltText: () => findByAltText2, 39749 findByDisplayValue: () => findByDisplayValue2, 39750 findByLabelText: () => findByLabelText2, 39751 findByPlaceholderText: () => findByPlaceholderText2, 39752 findByRole: () => findByRole2, 39753 findByTestId: () => findByTestId2, 39754 findByText: () => findByText2, 39755 findByTitle: () => findByTitle2, 39756 fireEvent: () => fireEvent2, 39757 fn: () => fn2, 39758 getAllByAltText: () => getAllByAltText2, 39759 getAllByDisplayValue: () => getAllByDisplayValue2, 39760 getAllByLabelText: () => getAllByLabelText2, 39761 getAllByPlaceholderText: () => getAllByPlaceholderText2, 39762 getAllByRole: () => getAllByRole2, 39763 getAllByTestId: () => getAllByTestId2, 39764 getAllByText: () => getAllByText2, 39765 getAllByTitle: () => getAllByTitle2, 39766 getByAltText: () => getByAltText2, 39767 getByDisplayValue: () => getByDisplayValue2, 39768 getByLabelText: () => getByLabelText2, 39769 getByPlaceholderText: () => getByPlaceholderText2, 39770 getByRole: () => getByRole2, 39771 getByTestId: () => getByTestId2, 39772 getByText: () => getByText2, 39773 getByTitle: () => getByTitle2, 39774 getConfig: () => getConfig3, 39775 getDefaultNormalizer: () => getDefaultNormalizer2, 39776 getElementError: () => getElementError2, 39777 getNodeText: () => getNodeText2, 39778 getQueriesForElement: () => getQueriesForElement2, 39779 getRoles: () => getRoles2, 39780 getSuggestedQuery: () => getSuggestedQuery2, 39781 isInaccessible: () => isInaccessible2, 39782 isMockFunction: () => isMockFunction2, 39783 logDOM: () => logDOM2, 39784 logRoles: () => logRoles2, 39785 mocked: () => mocked, 39786 mocks: () => mocks, 39787 onMockCall: () => onMockCall, 39788 prettyDOM: () => prettyDOM2, 39789 prettyFormat: () => prettyFormat2, 39790 queries: () => queries2, 39791 queryAllByAltText: () => queryAllByAltText2, 39792 queryAllByAttribute: () => queryAllByAttribute2, 39793 queryAllByDisplayValue: () => queryAllByDisplayValue2, 39794 queryAllByLabelText: () => queryAllByLabelText2, 39795 queryAllByPlaceholderText: () => queryAllByPlaceholderText2, 39796 queryAllByRole: () => queryAllByRole2, 39797 queryAllByTestId: () => queryAllByTestId2, 39798 queryAllByText: () => queryAllByText2, 39799 queryAllByTitle: () => queryAllByTitle2, 39800 queryByAltText: () => queryByAltText2, 39801 queryByAttribute: () => queryByAttribute2, 39802 queryByDisplayValue: () => queryByDisplayValue2, 39803 queryByLabelText: () => queryByLabelText2, 39804 queryByPlaceholderText: () => queryByPlaceholderText2, 39805 queryByRole: () => queryByRole2, 39806 queryByTestId: () => queryByTestId2, 39807 queryByText: () => queryByText2, 39808 queryByTitle: () => queryByTitle2, 39809 queryHelpers: () => queryHelpers2, 39810 resetAllMocks: () => resetAllMocks, 39811 restoreAllMocks: () => restoreAllMocks, 39812 sb: () => sb, 39813 screen: () => screen2, 39814 spyOn: () => spyOn2, 39815 uninstrumentedUserEvent: () => uninstrumentedUserEvent, 39816 userEvent: () => userEvent2, 39817 waitFor: () => waitFor2, 39818 waitForElementToBeRemoved: () => waitForElementToBeRemoved2, 39819 within: () => within 39820}); 39821
vendor: 72 bytes, lines 39822-39825
39822// src/instrumenter/instrumenter.ts 39823init_client_logger(); 39824init_dist(); 39825
vendor: 2,153 bytes, lines 39826-39907
39826// ../../node_modules/@vitest/utils/node_modules/tinyrainbow/dist/chunk-BVHSVHOK.js 39827var f = { 39828 reset: [0, 0], 39829 bold: [1, 22, "\x1B[22m\x1B[1m"], 39830 dim: [2, 22, "\x1B[22m\x1B[2m"], 39831 italic: [3, 23], 39832 underline: [4, 24], 39833 inverse: [7, 27], 39834 hidden: [8, 28], 39835 strikethrough: [9, 29], 39836 black: [30, 39], 39837 red: [31, 39], 39838 green: [32, 39], 39839 yellow: [33, 39], 39840 blue: [34, 39], 39841 magenta: [35, 39], 39842 cyan: [36, 39], 39843 white: [37, 39], 39844 gray: [90, 39], 39845 bgBlack: [40, 49], 39846 bgRed: [41, 49], 39847 bgGreen: [42, 49], 39848 bgYellow: [43, 49], 39849 bgBlue: [44, 49], 39850 bgMagenta: [45, 49], 39851 bgCyan: [46, 49], 39852 bgWhite: [47, 49], 39853 blackBright: [90, 39], 39854 redBright: [91, 39], 39855 greenBright: [92, 39], 39856 yellowBright: [93, 39], 39857 blueBright: [94, 39], 39858 magentaBright: [95, 39], 39859 cyanBright: [96, 39], 39860 whiteBright: [97, 39], 39861 bgBlackBright: [100, 49], 39862 bgRedBright: [101, 49], 39863 bgGreenBright: [102, 49], 39864 bgYellowBright: [103, 49], 39865 bgBlueBright: [104, 49], 39866 bgMagentaBright: [105, 49], 39867 bgCyanBright: [106, 49], 39868 bgWhiteBright: [107, 49] 39869}, h = Object.entries(f); 39870function a(n) { 39871 return String(n); 39872} 39873a.open = ""; 39874a.close = ""; 39875var B = h.reduce( 39876 (n, [e]) => (n[e] = a, n), 39877 { isColorSupported: !1 } 39878); 39879function C(n = !1) { 39880 let e = typeof process < "u" ? process : void 0, i = e?.env || {}, g2 = e?.argv || []; 39881 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; 39882} 39883function p(n = !1) { 39884 let e = C(n), i = (r2, t, c, o) => { 39885 let l = "", s3 = 0; 39886 do 39887 l += r2.substring(s3, o) + c, s3 = o + t.length, o = r2.indexOf(t, s3); 39888 while (~o); 39889 return l + r2.substring(s3); 39890 }, g2 = (r2, t, c = r2) => { 39891 let o = (l) => { 39892 let s3 = String(l), b = s3.indexOf(t, r2.length); 39893 return ~b ? r2 + i(s3, t, c, b) + t : r2 + s3 + t; 39894 }; 39895 return o.open = r2, o.close = t, o; 39896 }, u2 = { 39897 isColorSupported: e 39898 }, d = (r2) => `\x1B[${r2}m`; 39899 for (let [r2, t] of h) 39900 u2[r2] = e ? g2( 39901 d(t[0]), 39902 d(t[1]), 39903 t[2] 39904 ) : a; 39905 return u2; 39906} 39907
vendor: 91 bytes, lines 39908-39910
39908// ../../node_modules/@vitest/utils/node_modules/tinyrainbow/dist/browser.js 39909var s = p(); 39910
vendor: 35,934 bytes, lines 39911-40554
39911// ../../node_modules/@vitest/utils/node_modules/@vitest/pretty-format/dist/index.js 39912function _mergeNamespaces(n, m3) { 39913 return m3.forEach(function(e) { 39914 e && typeof e != "string" && !Array.isArray(e) && Object.keys(e).forEach(function(k) { 39915 if (k !== "default" && !(k in n)) { 39916 var d = Object.getOwnPropertyDescriptor(e, k); 39917 Object.defineProperty(n, k, d.get ? d : { 39918 enumerable: !0, 39919 get: function() { 39920 return e[k]; 39921 } 39922 }); 39923 } 39924 }); 39925 }), Object.freeze(n); 39926} 39927function getKeysOfEnumerableProperties(object, compareKeys) { 39928 let rawKeys = Object.keys(object), keys3 = compareKeys === null ? rawKeys : rawKeys.sort(compareKeys); 39929 if (Object.getOwnPropertySymbols) 39930 for (let symbol of Object.getOwnPropertySymbols(object)) 39931 Object.getOwnPropertyDescriptor(object, symbol).enumerable && keys3.push(symbol); 39932 return keys3; 39933} 39934function printIteratorEntries(iterator, config4, indentation, depth, refs, printer2, separator = ": ") { 39935 let result = "", width = 0, current = iterator.next(); 39936 if (!current.done) { 39937 result += config4.spacingOuter; 39938 let indentationNext = indentation + config4.indent; 39939 for (; !current.done; ) { 39940 if (result += indentationNext, width++ === config4.maxWidth) { 39941 result += "\u2026"; 39942 break; 39943 } 39944 let name = printer2(current.value[0], config4, indentationNext, depth, refs), value = printer2(current.value[1], config4, indentationNext, depth, refs); 39945 result += name + separator + value, current = iterator.next(), current.done ? config4.min || (result += ",") : result += `,${config4.spacingInner}`; 39946 } 39947 result += config4.spacingOuter + indentation; 39948 } 39949 return result; 39950} 39951function printIteratorValues(iterator, config4, indentation, depth, refs, printer2) { 39952 let result = "", width = 0, current = iterator.next(); 39953 if (!current.done) { 39954 result += config4.spacingOuter; 39955 let indentationNext = indentation + config4.indent; 39956 for (; !current.done; ) { 39957 if (result += indentationNext, width++ === config4.maxWidth) { 39958 result += "\u2026"; 39959 break; 39960 } 39961 result += printer2(current.value, config4, indentationNext, depth, refs), current = iterator.next(), current.done ? config4.min || (result += ",") : result += `,${config4.spacingInner}`; 39962 } 39963 result += config4.spacingOuter + indentation; 39964 } 39965 return result; 39966} 39967function printListItems(list, config4, indentation, depth, refs, printer2) { 39968 let result = ""; 39969 list = list instanceof ArrayBuffer ? new DataView(list) : list; 39970 let isDataView = (l) => l instanceof DataView, length2 = isDataView(list) ? list.byteLength : list.length; 39971 if (length2 > 0) { 39972 result += config4.spacingOuter; 39973 let indentationNext = indentation + config4.indent; 39974 for (let i = 0; i < length2; i++) { 39975 if (result += indentationNext, i === config4.maxWidth) { 39976 result += "\u2026"; 39977 break; 39978 } 39979 (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 += ","); 39980 } 39981 result += config4.spacingOuter + indentation; 39982 } 39983 return result; 39984} 39985function printObjectProperties(val, config4, indentation, depth, refs, printer2) { 39986 let result = "", keys3 = getKeysOfEnumerableProperties(val, config4.compareKeys); 39987 if (keys3.length > 0) { 39988 result += config4.spacingOuter; 39989 let indentationNext = indentation + config4.indent; 39990 for (let i = 0; i < keys3.length; i++) { 39991 let key = keys3[i], name = printer2(key, config4, indentationNext, depth, refs), value = printer2(val[key], config4, indentationNext, depth, refs); 39992 result += `${indentationNext + name}: ${value}`, i < keys3.length - 1 ? result += `,${config4.spacingInner}` : config4.min || (result += ","); 39993 } 39994 result += config4.spacingOuter + indentation; 39995 } 39996 return result; 39997} 39998var asymmetricMatcher = typeof Symbol == "function" && Symbol.for ? Symbol.for("jest.asymmetricMatcher") : 1267621, SPACE$2 = " ", serialize$5 = (val, config4, indentation, depth, refs, printer2) => { 39999 let stringedValue = val.toString(); 40000 if (stringedValue === "ArrayContaining" || stringedValue === "ArrayNotContaining") 40001 return ++depth > config4.maxDepth ? `[${stringedValue}]` : `${stringedValue + SPACE$2}[${printListItems(val.sample, config4, indentation, depth, refs, printer2)}]`; 40002 if (stringedValue === "ObjectContaining" || stringedValue === "ObjectNotContaining") 40003 return ++depth > config4.maxDepth ? `[${stringedValue}]` : `${stringedValue + SPACE$2}{${printObjectProperties(val.sample, config4, indentation, depth, refs, printer2)}}`; 40004 if (stringedValue === "StringMatching" || stringedValue === "StringNotMatching" || stringedValue === "StringContaining" || stringedValue === "StringNotContaining") 40005 return stringedValue + SPACE$2 + printer2(val.sample, config4, indentation, depth, refs); 40006 if (typeof val.toAsymmetricMatcher != "function") 40007 throw new TypeError(`Asymmetric matcher ${val.constructor.name} does not implement toAsymmetricMatcher()`); 40008 return val.toAsymmetricMatcher(); 40009}, test$5 = (val) => val && val.$$typeof === asymmetricMatcher, plugin$5 = { 40010 serialize: serialize$5, 40011 test: test$5 40012}, SPACE$1 = " ", OBJECT_NAMES = /* @__PURE__ */ new Set(["DOMStringMap", "NamedNodeMap"]), ARRAY_REGEXP = /^(?:HTML\w*Collection|NodeList)$/; 40013function testName(name) { 40014 return OBJECT_NAMES.has(name) || ARRAY_REGEXP.test(name); 40015} 40016var test$4 = (val) => val && val.constructor && !!val.constructor.name && testName(val.constructor.name); 40017function isNamedNodeMap(collection) { 40018 return collection.constructor.name === "NamedNodeMap"; 40019} 40020var serialize$4 = (collection, config4, indentation, depth, refs, printer2) => { 40021 let name = collection.constructor.name; 40022 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)}]`); 40023}, plugin$4 = { 40024 serialize: serialize$4, 40025 test: test$4 40026}; 40027function escapeHTML(str2) { 40028 return str2.replaceAll("<", "<").replaceAll(">", ">"); 40029} 40030function printProps(keys3, props, config4, indentation, depth, refs, printer2) { 40031 let indentationNext = indentation + config4.indent, colors3 = config4.colors; 40032 return keys3.map((key) => { 40033 let value = props[key], printed = printer2(value, config4, indentationNext, depth, refs); 40034 return typeof value != "string" && (printed.includes(` 40035`) && (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}`; 40036 }).join(""); 40037} 40038function printChildren(children, config4, indentation, depth, refs, printer2) { 40039 return children.map((child) => config4.spacingOuter + indentation + (typeof child == "string" ? printText(child, config4) : printer2(child, config4, indentation, depth, refs))).join(""); 40040} 40041function printText(text, config4) { 40042 let contentColor = config4.colors.content; 40043 return contentColor.open + escapeHTML(text) + contentColor.close; 40044} 40045function printComment(comment2, config4) { 40046 let commentColor = config4.colors.comment; 40047 return `${commentColor.open}<!--${escapeHTML(comment2)}-->${commentColor.close}`; 40048} 40049function printElement(type5, printedProps, printedChildren, config4, indentation) { 40050 let tagColor = config4.colors.tag; 40051 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}`; 40052} 40053function printElementAsLeaf(type5, config4) { 40054 let tagColor = config4.colors.tag; 40055 return `${tagColor.open}<${type5}${tagColor.close} \u2026${tagColor.open} />${tagColor.close}`; 40056} 40057var ELEMENT_NODE = 1, TEXT_NODE = 3, COMMENT_NODE = 8, FRAGMENT_NODE = 11, ELEMENT_REGEXP = /^(?:(?:HTML|SVG)\w*)?Element$/; 40058function testHasAttribute(val) { 40059 try { 40060 return typeof val.hasAttribute == "function" && val.hasAttribute("is"); 40061 } catch { 40062 return !1; 40063 } 40064} 40065function testNode(val) { 40066 let constructorName = val.constructor.name, { nodeType, tagName } = val, isCustomElement3 = typeof tagName == "string" && tagName.includes("-") || testHasAttribute(val); 40067 return nodeType === ELEMENT_NODE && (ELEMENT_REGEXP.test(constructorName) || isCustomElement3) || nodeType === TEXT_NODE && constructorName === "Text" || nodeType === COMMENT_NODE && constructorName === "Comment" || nodeType === FRAGMENT_NODE && constructorName === "DocumentFragment"; 40068} 40069var test$3 = (val) => { 40070 var _val$constructor; 40071 return (val == null || (_val$constructor = val.constructor) === null || _val$constructor === void 0 ? void 0 : _val$constructor.name) && testNode(val); 40072}; 40073function nodeIsText(node2) { 40074 return node2.nodeType === TEXT_NODE; 40075} 40076function nodeIsComment(node2) { 40077 return node2.nodeType === COMMENT_NODE; 40078} 40079function nodeIsFragment(node2) { 40080 return node2.nodeType === FRAGMENT_NODE; 40081} 40082var serialize$3 = (node2, config4, indentation, depth, refs, printer2) => { 40083 if (nodeIsText(node2)) 40084 return printText(node2.data, config4); 40085 if (nodeIsComment(node2)) 40086 return printComment(node2.data, config4); 40087 let type5 = nodeIsFragment(node2) ? "DocumentFragment" : node2.tagName.toLowerCase(); 40088 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); 40089}, plugin$3 = { 40090 serialize: serialize$3, 40091 test: test$3 40092}, 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"; 40093function printImmutableEntries(val, config4, indentation, depth, refs, printer2, type5) { 40094 return ++depth > config4.maxDepth ? printAsLeaf(getImmutableName(type5)) : `${getImmutableName(type5) + SPACE}{${printIteratorEntries(val.entries(), config4, indentation, depth, refs, printer2)}}`; 40095} 40096function getRecordEntries(val) { 40097 let i = 0; 40098 return { next() { 40099 if (i < val._keys.length) { 40100 let key = val._keys[i++]; 40101 return { 40102 done: !1, 40103 value: [key, val.get(key)] 40104 }; 40105 } 40106 return { 40107 done: !0, 40108 value: void 0 40109 }; 40110 } }; 40111} 40112function printImmutableRecord(val, config4, indentation, depth, refs, printer2) { 40113 let name = getImmutableName(val._name || "Record"); 40114 return ++depth > config4.maxDepth ? printAsLeaf(name) : `${name + SPACE}{${printIteratorEntries(getRecordEntries(val), config4, indentation, depth, refs, printer2)}}`; 40115} 40116function printImmutableSeq(val, config4, indentation, depth, refs, printer2) { 40117 let name = getImmutableName("Seq"); 40118 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}]`; 40119} 40120function printImmutableValues(val, config4, indentation, depth, refs, printer2, type5) { 40121 return ++depth > config4.maxDepth ? printAsLeaf(getImmutableName(type5)) : `${getImmutableName(type5) + SPACE}[${printIteratorValues(val.values(), config4, indentation, depth, refs, printer2)}]`; 40122} 40123var 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 = { 40124 serialize: serialize$2, 40125 test: test$2 40126}; 40127function getDefaultExportFromCjs(x) { 40128 return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, "default") ? x.default : x; 40129} 40130var reactIs$1 = { exports: {} }, reactIs_production = {}; 40131var hasRequiredReactIs_production; 40132function requireReactIs_production() { 40133 if (hasRequiredReactIs_production) return reactIs_production; 40134 hasRequiredReactIs_production = 1; 40135 var REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element"), REACT_PORTAL_TYPE = Symbol.for("react.portal"), REACT_FRAGMENT_TYPE = Symbol.for("react.fragment"), REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode"), REACT_PROFILER_TYPE = Symbol.for("react.profiler"), REACT_CONSUMER_TYPE = Symbol.for("react.consumer"), REACT_CONTEXT_TYPE = Symbol.for("react.context"), REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref"), REACT_SUSPENSE_TYPE = Symbol.for("react.suspense"), REACT_SUSPENSE_LIST_TYPE = Symbol.for("react.suspense_list"), REACT_MEMO_TYPE = Symbol.for("react.memo"), REACT_LAZY_TYPE2 = Symbol.for("react.lazy"), REACT_VIEW_TRANSITION_TYPE = Symbol.for("react.view_transition"), REACT_CLIENT_REFERENCE = Symbol.for("react.client.reference"); 40136 function typeOf(object) { 40137 if (typeof object == "object" && object !== null) { 40138 var $$typeof = object.$$typeof; 40139 switch ($$typeof) { 40140 case REACT_ELEMENT_TYPE: 40141 switch (object = object.type, object) { 40142 case REACT_FRAGMENT_TYPE: 40143 case REACT_PROFILER_TYPE: 40144 case REACT_STRICT_MODE_TYPE: 40145 case REACT_SUSPENSE_TYPE: 40146 case REACT_SUSPENSE_LIST_TYPE: 40147 case REACT_VIEW_TRANSITION_TYPE: 40148 return object; 40149 default: 40150 switch (object = object && object.$$typeof, object) { 40151 case REACT_CONTEXT_TYPE: 40152 case REACT_FORWARD_REF_TYPE: 40153 case REACT_LAZY_TYPE2: 40154 case REACT_MEMO_TYPE: 40155 return object; 40156 case REACT_CONSUMER_TYPE: 40157 return object; 40158 default: 40159 return $$typeof; 40160 } 40161 } 40162 case REACT_PORTAL_TYPE: 40163 return $$typeof; 40164 } 40165 } 40166 } 40167 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) { 40168 return typeOf(object) === REACT_CONSUMER_TYPE; 40169 }, reactIs_production.isContextProvider = function(object) { 40170 return typeOf(object) === REACT_CONTEXT_TYPE; 40171 }, reactIs_production.isElement = function(object) { 40172 return typeof object == "object" && object !== null && object.$$typeof === REACT_ELEMENT_TYPE; 40173 }, reactIs_production.isForwardRef = function(object) { 40174 return typeOf(object) === REACT_FORWARD_REF_TYPE; 40175 }, reactIs_production.isFragment = function(object) { 40176 return typeOf(object) === REACT_FRAGMENT_TYPE; 40177 }, reactIs_production.isLazy = function(object) { 40178 return typeOf(object) === REACT_LAZY_TYPE2; 40179 }, reactIs_production.isMemo = function(object) { 40180 return typeOf(object) === REACT_MEMO_TYPE; 40181 }, reactIs_production.isPortal = function(object) { 40182 return typeOf(object) === REACT_PORTAL_TYPE; 40183 }, reactIs_production.isProfiler = function(object) { 40184 return typeOf(object) === REACT_PROFILER_TYPE; 40185 }, reactIs_production.isStrictMode = function(object) { 40186 return typeOf(object) === REACT_STRICT_MODE_TYPE; 40187 }, reactIs_production.isSuspense = function(object) { 40188 return typeOf(object) === REACT_SUSPENSE_TYPE; 40189 }, reactIs_production.isSuspenseList = function(object) { 40190 return typeOf(object) === REACT_SUSPENSE_LIST_TYPE; 40191 }, reactIs_production.isValidElementType = function(type5) { 40192 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); 40193 }, reactIs_production.typeOf = typeOf, reactIs_production; 40194} 40195var hasRequiredReactIs$1; 40196function requireReactIs$1() { 40197 return hasRequiredReactIs$1 || (hasRequiredReactIs$1 = 1, reactIs$1.exports = requireReactIs_production()), reactIs$1.exports; 40198} 40199var reactIsExports$1 = requireReactIs$1(), index$1 = getDefaultExportFromCjs(reactIsExports$1), ReactIs19 = _mergeNamespaces({ 40200 __proto__: null, 40201 default: index$1 40202}, [reactIsExports$1]), reactIs = { exports: {} }, reactIs_production_min = {}; 40203var hasRequiredReactIs_production_min; 40204function requireReactIs_production_min() { 40205 if (hasRequiredReactIs_production_min) return reactIs_production_min; 40206 hasRequiredReactIs_production_min = 1; 40207 var b = Symbol.for("react.element"), c = Symbol.for("react.portal"), d = Symbol.for("react.fragment"), e = Symbol.for("react.strict_mode"), f4 = Symbol.for("react.profiler"), g2 = Symbol.for("react.provider"), h3 = Symbol.for("react.context"), k = Symbol.for("react.server_context"), l = Symbol.for("react.forward_ref"), m3 = Symbol.for("react.suspense"), n = Symbol.for("react.suspense_list"), p3 = Symbol.for("react.memo"), q = Symbol.for("react.lazy"), t = Symbol.for("react.offscreen"), u2; 40208 u2 = Symbol.for("react.module.reference"); 40209 function v(a3) { 40210 if (typeof a3 == "object" && a3 !== null) { 40211 var r2 = a3.$$typeof; 40212 switch (r2) { 40213 case b: 40214 switch (a3 = a3.type, a3) { 40215 case d: 40216 case f4: 40217 case e: 40218 case m3: 40219 case n: 40220 return a3; 40221 default: 40222 switch (a3 = a3 && a3.$$typeof, a3) { 40223 case k: 40224 case h3: 40225 case l: 40226 case q: 40227 case p3: 40228 case g2: 40229 return a3; 40230 default: 40231 return r2; 40232 } 40233 } 40234 case c: 40235 return r2; 40236 } 40237 } 40238 } 40239 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() { 40240 return !1; 40241 }, reactIs_production_min.isConcurrentMode = function() { 40242 return !1; 40243 }, reactIs_production_min.isContextConsumer = function(a3) { 40244 return v(a3) === h3; 40245 }, reactIs_production_min.isContextProvider = function(a3) { 40246 return v(a3) === g2; 40247 }, reactIs_production_min.isElement = function(a3) { 40248 return typeof a3 == "object" && a3 !== null && a3.$$typeof === b; 40249 }, reactIs_production_min.isForwardRef = function(a3) { 40250 return v(a3) === l; 40251 }, reactIs_production_min.isFragment = function(a3) { 40252 return v(a3) === d; 40253 }, reactIs_production_min.isLazy = function(a3) { 40254 return v(a3) === q; 40255 }, reactIs_production_min.isMemo = function(a3) { 40256 return v(a3) === p3; 40257 }, reactIs_production_min.isPortal = function(a3) { 40258 return v(a3) === c; 40259 }, reactIs_production_min.isProfiler = function(a3) { 40260 return v(a3) === f4; 40261 }, reactIs_production_min.isStrictMode = function(a3) { 40262 return v(a3) === e; 40263 }, reactIs_production_min.isSuspense = function(a3) { 40264 return v(a3) === m3; 40265 }, reactIs_production_min.isSuspenseList = function(a3) { 40266 return v(a3) === n; 40267 }, reactIs_production_min.isValidElementType = function(a3) { 40268 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); 40269 }, reactIs_production_min.typeOf = v, reactIs_production_min; 40270} 40271var hasRequiredReactIs; 40272function requireReactIs() { 40273 return hasRequiredReactIs || (hasRequiredReactIs = 1, reactIs.exports = requireReactIs_production_min()), reactIs.exports; 40274} 40275var reactIsExports = requireReactIs(), index = getDefaultExportFromCjs(reactIsExports), ReactIs18 = _mergeNamespaces({ 40276 __proto__: null, 40277 default: index 40278}, [reactIsExports]), reactIsMethods = [ 40279 "isAsyncMode", 40280 "isConcurrentMode", 40281 "isContextConsumer", 40282 "isContextProvider", 40283 "isElement", 40284 "isForwardRef", 40285 "isFragment", 40286 "isLazy", 40287 "isMemo", 40288 "isPortal", 40289 "isProfiler", 40290 "isStrictMode", 40291 "isSuspense", 40292 "isSuspenseList", 40293 "isValidElementType" 40294], ReactIs = Object.fromEntries(reactIsMethods.map((m3) => [m3, (v) => ReactIs18[m3](v) || ReactIs19[m3](v)])); 40295function getChildren(arg, children = []) { 40296 if (Array.isArray(arg)) 40297 for (let item of arg) 40298 getChildren(item, children); 40299 else arg != null && arg !== !1 && arg !== "" && children.push(arg); 40300 return children; 40301} 40302function getType(element) { 40303 let type5 = element.type; 40304 if (typeof type5 == "string") 40305 return type5; 40306 if (typeof type5 == "function") 40307 return type5.displayName || type5.name || "Unknown"; 40308 if (ReactIs.isFragment(element)) 40309 return "React.Fragment"; 40310 if (ReactIs.isSuspense(element)) 40311 return "React.Suspense"; 40312 if (typeof type5 == "object" && type5 !== null) { 40313 if (ReactIs.isContextProvider(element)) 40314 return "Context.Provider"; 40315 if (ReactIs.isContextConsumer(element)) 40316 return "Context.Consumer"; 40317 if (ReactIs.isForwardRef(element)) { 40318 if (type5.displayName) 40319 return type5.displayName; 40320 let functionName = type5.render.displayName || type5.render.name || ""; 40321 return functionName === "" ? "ForwardRef" : `ForwardRef(${functionName})`; 40322 } 40323 if (ReactIs.isMemo(element)) { 40324 let functionName = type5.displayName || type5.type.displayName || type5.type.name || ""; 40325 return functionName === "" ? "Memo" : `Memo(${functionName})`; 40326 } 40327 } 40328 return "UNDEFINED"; 40329} 40330function getPropKeys$1(element) { 40331 let { props } = element; 40332 return Object.keys(props).filter((key) => key !== "children" && props[key] !== void 0).sort(); 40333} 40334var 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 = { 40335 serialize: serialize$1, 40336 test: test$1 40337}, testSymbol = typeof Symbol == "function" && Symbol.for ? Symbol.for("react.test.json") : 245830487; 40338function getPropKeys(object) { 40339 let { props } = object; 40340 return props ? Object.keys(props).filter((key) => props[key] !== void 0).sort() : []; 40341} 40342var 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 = { 40343 serialize: serialize2, 40344 test 40345}, toString2 = Object.prototype.toString, toISOString = Date.prototype.toISOString, errorToString = Error.prototype.toString, regExpToString = RegExp.prototype.toString; 40346function getConstructorName(val) { 40347 return typeof val.constructor == "function" && val.constructor.name || "Object"; 40348} 40349function isWindow(val) { 40350 return typeof window < "u" && val === window; 40351} 40352var SYMBOL_REGEXP = /^Symbol\((.*)\)(.*)$/, NEWLINE_REGEXP = /\n/g, PrettyFormatPluginError = class extends Error { 40353 constructor(message, stack) { 40354 super(message), this.stack = stack, this.name = this.constructor.name; 40355 } 40356}; 40357function isToStringedArrayType(toStringed) { 40358 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]"; 40359} 40360function printNumber(val) { 40361 return Object.is(val, -0) ? "-0" : String(val); 40362} 40363function printBigInt(val) { 40364 return `${val}n`; 40365} 40366function printFunction(val, printFunctionName) { 40367 return printFunctionName ? `[Function ${val.name || "anonymous"}]` : "[Function]"; 40368} 40369function printSymbol(val) { 40370 return String(val).replace(SYMBOL_REGEXP, "Symbol($1)"); 40371} 40372function printError(val) { 40373 return `[${errorToString.call(val)}]`; 40374} 40375function printBasicValue(val, printFunctionName, escapeRegex, escapeString) { 40376 if (val === !0 || val === !1) 40377 return `${val}`; 40378 if (val === void 0) 40379 return "undefined"; 40380 if (val === null) 40381 return "null"; 40382 let typeOf = typeof val; 40383 if (typeOf === "number") 40384 return printNumber(val); 40385 if (typeOf === "bigint") 40386 return printBigInt(val); 40387 if (typeOf === "string") 40388 return escapeString ? `"${val.replaceAll(/"|\\/g, "\\$&")}"` : `"${val}"`; 40389 if (typeOf === "function") 40390 return printFunction(val, printFunctionName); 40391 if (typeOf === "symbol") 40392 return printSymbol(val); 40393 let toStringed = toString2.call(val); 40394 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; 40395} 40396function printComplexValue(val, config4, indentation, depth, refs, hasCalledToJSON) { 40397 if (refs.includes(val)) 40398 return "[Circular]"; 40399 refs = [...refs], refs.push(val); 40400 let hitMaxDepth = ++depth > config4.maxDepth, min2 = config4.min; 40401 if (config4.callToJSON && !hitMaxDepth && val.toJSON && typeof val.toJSON == "function" && !hasCalledToJSON) 40402 return printer(val.toJSON(), config4, indentation, depth, refs, !0); 40403 let toStringed = toString2.call(val); 40404 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)}}`; 40405} 40406var ErrorPlugin = { 40407 test: (val) => val && val instanceof Error, 40408 serialize(val, config4, indentation, depth, refs, printer2) { 40409 if (refs.includes(val)) 40410 return "[Circular]"; 40411 refs = [...refs, val]; 40412 let hitMaxDepth = ++depth > config4.maxDepth, { message, cause, ...rest } = val, entries = { 40413 message, 40414 ...typeof cause < "u" ? { cause } : {}, 40415 ...val instanceof AggregateError ? { errors: val.errors } : {}, 40416 ...rest 40417 }, name = val.name !== "Error" ? val.name : getConstructorName(val); 40418 return hitMaxDepth ? `[${name}]` : `${name} {${printIteratorEntries(Object.entries(entries).values(), config4, indentation, depth, refs, printer2)}}`; 40419 } 40420}; 40421function isNewPlugin(plugin2) { 40422 return plugin2.serialize != null; 40423} 40424function printPlugin(plugin2, val, config4, indentation, depth, refs) { 40425 let printed; 40426 try { 40427 printed = isNewPlugin(plugin2) ? plugin2.serialize(val, config4, indentation, depth, refs, printer) : plugin2.print(val, (valChild) => printer(valChild, config4, indentation, depth, refs), (str2) => { 40428 let indentationNext = indentation + config4.indent; 40429 return indentationNext + str2.replaceAll(NEWLINE_REGEXP, ` 40430${indentationNext}`); 40431 }, { 40432 edgeSpacing: config4.spacingOuter, 40433 min: config4.min, 40434 spacing: config4.spacingInner 40435 }, config4.colors); 40436 } catch (error) { 40437 throw new PrettyFormatPluginError(error.message, error.stack); 40438 } 40439 if (typeof printed != "string") 40440 throw new TypeError(`pretty-format: Plugin must return type "string" but instead returned "${typeof printed}".`); 40441 return printed; 40442} 40443function findPlugin(plugins3, val) { 40444 for (let plugin2 of plugins3) 40445 try { 40446 if (plugin2.test(val)) 40447 return plugin2; 40448 } catch (error) { 40449 throw new PrettyFormatPluginError(error.message, error.stack); 40450 } 40451 return null; 40452} 40453function printer(val, config4, indentation, depth, refs, hasCalledToJSON) { 40454 let plugin2 = findPlugin(config4.plugins, val); 40455 if (plugin2 !== null) 40456 return printPlugin(plugin2, val, config4, indentation, depth, refs); 40457 let basicResult = printBasicValue(val, config4.printFunctionName, config4.escapeRegex, config4.escapeString); 40458 return basicResult !== null ? basicResult : printComplexValue(val, config4, indentation, depth, refs, hasCalledToJSON); 40459} 40460var DEFAULT_THEME = { 40461 comment: "gray", 40462 content: "reset", 40463 prop: "yellow", 40464 tag: "cyan", 40465 value: "green" 40466}, DEFAULT_THEME_KEYS = Object.keys(DEFAULT_THEME), DEFAULT_OPTIONS = { 40467 callToJSON: !0, 40468 compareKeys: void 0, 40469 escapeRegex: !1, 40470 escapeString: !0, 40471 highlight: !1, 40472 indent: 2, 40473 maxDepth: Number.POSITIVE_INFINITY, 40474 maxWidth: Number.POSITIVE_INFINITY, 40475 min: !1, 40476 plugins: [], 40477 printBasicPrototype: !0, 40478 printFunctionName: !0, 40479 theme: DEFAULT_THEME 40480}; 40481function validateOptions2(options) { 40482 for (let key of Object.keys(options)) 40483 if (!Object.prototype.hasOwnProperty.call(DEFAULT_OPTIONS, key)) 40484 throw new Error(`pretty-format: Unknown option "${key}".`); 40485 if (options.min && options.indent !== void 0 && options.indent !== 0) 40486 throw new Error('pretty-format: Options "min" and "indent" cannot be used together.'); 40487} 40488function getColorsHighlight() { 40489 return DEFAULT_THEME_KEYS.reduce((colors3, key) => { 40490 let value = DEFAULT_THEME[key], color2 = value && s[value]; 40491 if (color2 && typeof color2.close == "string" && typeof color2.open == "string") 40492 colors3[key] = color2; 40493 else 40494 throw new Error(`pretty-format: Option "theme" has a key "${key}" whose value "${value}" is undefined in ansi-styles.`); 40495 return colors3; 40496 }, /* @__PURE__ */ Object.create(null)); 40497} 40498function getColorsEmpty() { 40499 return DEFAULT_THEME_KEYS.reduce((colors3, key) => (colors3[key] = { 40500 close: "", 40501 open: "" 40502 }, colors3), /* @__PURE__ */ Object.create(null)); 40503} 40504function getPrintFunctionName(options) { 40505 return options?.printFunctionName ?? DEFAULT_OPTIONS.printFunctionName; 40506} 40507function getEscapeRegex(options) { 40508 return options?.escapeRegex ?? DEFAULT_OPTIONS.escapeRegex; 40509} 40510function getEscapeString(options) { 40511 return options?.escapeString ?? DEFAULT_OPTIONS.escapeString; 40512} 40513function getConfig(options) { 40514 return { 40515 callToJSON: options?.callToJSON ?? DEFAULT_OPTIONS.callToJSON, 40516 colors: options?.highlight ? getColorsHighlight() : getColorsEmpty(), 40517 compareKeys: typeof options?.compareKeys == "function" || options?.compareKeys === null ? options.compareKeys : DEFAULT_OPTIONS.compareKeys, 40518 escapeRegex: getEscapeRegex(options), 40519 escapeString: getEscapeString(options), 40520 indent: options?.min ? "" : createIndent(options?.indent ?? DEFAULT_OPTIONS.indent), 40521 maxDepth: options?.maxDepth ?? DEFAULT_OPTIONS.maxDepth, 40522 maxWidth: options?.maxWidth ?? DEFAULT_OPTIONS.maxWidth, 40523 min: options?.min ?? DEFAULT_OPTIONS.min, 40524 plugins: options?.plugins ?? DEFAULT_OPTIONS.plugins, 40525 printBasicPrototype: options?.printBasicPrototype ?? !0, 40526 printFunctionName: getPrintFunctionName(options), 40527 spacingInner: options?.min ? " " : ` 40528`, 40529 spacingOuter: options?.min ? "" : ` 40530` 40531 }; 40532} 40533function createIndent(indent2) { 40534 return Array.from({ length: indent2 + 1 }).join(" "); 40535} 40536function format(val, options) { 40537 if (options && (validateOptions2(options), options.plugins)) { 40538 let plugin2 = findPlugin(options.plugins, val); 40539 if (plugin2 !== null) 40540 return printPlugin(plugin2, val, getConfig(options), "", 0, []); 40541 } 40542 let basicResult = printBasicValue(val, getPrintFunctionName(options), getEscapeRegex(options), getEscapeString(options)); 40543 return basicResult !== null ? basicResult : printComplexValue(val, getConfig(options), "", 0, []); 40544} 40545var plugins = { 40546 AsymmetricMatcher: plugin$5, 40547 DOMCollection: plugin$4, 40548 DOMElement: plugin$3, 40549 Immutable: plugin$2, 40550 ReactElement: plugin$1, 40551 ReactTestComponent: plugin, 40552 Error: ErrorPlugin 40553}; 40554
vendor: 4,223 bytes, lines 40555-40670
40555// ../../node_modules/loupe/lib/helpers.js 40556var ansiColors = { 40557 bold: ["1", "22"], 40558 dim: ["2", "22"], 40559 italic: ["3", "23"], 40560 underline: ["4", "24"], 40561 // 5 & 6 are blinking 40562 inverse: ["7", "27"], 40563 hidden: ["8", "28"], 40564 strike: ["9", "29"], 40565 // 10-20 are fonts 40566 // 21-29 are resets for 1-9 40567 black: ["30", "39"], 40568 red: ["31", "39"], 40569 green: ["32", "39"], 40570 yellow: ["33", "39"], 40571 blue: ["34", "39"], 40572 magenta: ["35", "39"], 40573 cyan: ["36", "39"], 40574 white: ["37", "39"], 40575 brightblack: ["30;1", "39"], 40576 brightred: ["31;1", "39"], 40577 brightgreen: ["32;1", "39"], 40578 brightyellow: ["33;1", "39"], 40579 brightblue: ["34;1", "39"], 40580 brightmagenta: ["35;1", "39"], 40581 brightcyan: ["36;1", "39"], 40582 brightwhite: ["37;1", "39"], 40583 grey: ["90", "39"] 40584}, styles = { 40585 special: "cyan", 40586 number: "yellow", 40587 bigint: "yellow", 40588 boolean: "yellow", 40589 undefined: "grey", 40590 null: "bold", 40591 string: "green", 40592 symbol: "green", 40593 date: "magenta", 40594 regexp: "red" 40595}, truncator = "\u2026"; 40596function colorise(value, styleType) { 40597 let color2 = ansiColors[styles[styleType]] || ansiColors[styleType] || ""; 40598 return color2 ? `\x1B[${color2[0]}m${String(value)}\x1B[${color2[1]}m` : String(value); 40599} 40600function normaliseOptions({ 40601 showHidden = !1, 40602 depth = 2, 40603 colors: colors3 = !1, 40604 customInspect = !0, 40605 showProxy = !1, 40606 maxArrayLength = 1 / 0, 40607 breakLength = 1 / 0, 40608 seen = [], 40609 // eslint-disable-next-line no-shadow 40610 truncate: truncate3 = 1 / 0, 40611 stylize = String 40612} = {}, inspect5) { 40613 let options = { 40614 showHidden: !!showHidden, 40615 depth: Number(depth), 40616 colors: !!colors3, 40617 customInspect: !!customInspect, 40618 showProxy: !!showProxy, 40619 maxArrayLength: Number(maxArrayLength), 40620 breakLength: Number(breakLength), 40621 truncate: Number(truncate3), 40622 seen, 40623 inspect: inspect5, 40624 stylize 40625 }; 40626 return options.colors && (options.stylize = colorise), options; 40627} 40628function isHighSurrogate(char2) { 40629 return char2 >= "\uD800" && char2 <= "\uDBFF"; 40630} 40631function truncate(string, length2, tail2 = truncator) { 40632 string = String(string); 40633 let tailLength = tail2.length, stringLength = string.length; 40634 if (tailLength > length2 && stringLength > tailLength) 40635 return tail2; 40636 if (stringLength > length2 && stringLength > tailLength) { 40637 let end2 = length2 - tailLength; 40638 return end2 > 0 && isHighSurrogate(string[end2 - 1]) && (end2 = end2 - 1), `${string.slice(0, end2)}${tail2}`; 40639 } 40640 return string; 40641} 40642function inspectList(list, options, inspectItem, separator = ", ") { 40643 inspectItem = inspectItem || options.inspect; 40644 let size = list.length; 40645 if (size === 0) 40646 return ""; 40647 let originalLength = options.truncate, output = "", peek2 = "", truncated = ""; 40648 for (let i = 0; i < size; i += 1) { 40649 let last2 = i + 1 === list.length, secondToLast = i + 2 === list.length; 40650 truncated = `${truncator}(${list.length - i})`; 40651 let value = list[i]; 40652 options.truncate = originalLength - output.length - (last2 ? 0 : separator.length); 40653 let string = peek2 || inspectItem(value, options) + (last2 ? "" : separator), nextLength = output.length + string.length, truncatedLength = nextLength + truncated.length; 40654 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)) 40655 break; 40656 if (output += string, !last2 && !secondToLast && nextLength + peek2.length >= originalLength) { 40657 truncated = `${truncator}(${list.length - i - 1})`; 40658 break; 40659 } 40660 truncated = ""; 40661 } 40662 return `${output}${truncated}`; 40663} 40664function quoteComplexKey(key) { 40665 return key.match(/^[a-zA-Z_][a-zA-Z_0-9]*$/) ? key : JSON.stringify(key).replace(/'/g, "\\'").replace(/\\"/g, '"').replace(/(^"|"$)/g, "'"); 40666} 40667function inspectProperty([key, value], options) { 40668 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}`; 40669} 40670
vendor: 589 bytes, lines 40671-40682
40671// ../../node_modules/loupe/lib/array.js 40672function inspectArray(array, options) { 40673 let nonIndexProperties = Object.keys(array).slice(array.length); 40674 if (!array.length && !nonIndexProperties.length) 40675 return "[]"; 40676 options.truncate -= 4; 40677 let listContents = inspectList(array, options); 40678 options.truncate -= listContents.length; 40679 let propertyContents = ""; 40680 return nonIndexProperties.length && (propertyContents = inspectList(nonIndexProperties.map((key) => [key, array[key]]), options, inspectProperty)), `[ ${listContents}${propertyContents ? `, ${propertyContents}` : ""} ]`; 40681} 40682
vendor: 1,132 bytes, lines 40683-40703
40683// ../../node_modules/loupe/lib/typedarray.js 40684var getArrayName = (array) => typeof Buffer == "function" && array instanceof Buffer ? "Buffer" : array[Symbol.toStringTag] ? array[Symbol.toStringTag] : array.constructor.name; 40685function inspectTypedArray(array, options) { 40686 let name = getArrayName(array); 40687 options.truncate -= name.length + 4; 40688 let nonIndexProperties = Object.keys(array).slice(array.length); 40689 if (!array.length && !nonIndexProperties.length) 40690 return `${name}[]`; 40691 let output = ""; 40692 for (let i = 0; i < array.length; i++) { 40693 let string = `${options.stylize(truncate(array[i], options.truncate), "number")}${i === array.length - 1 ? "" : ", "}`; 40694 if (options.truncate -= string.length, array[i] !== array.length && options.truncate <= 3) { 40695 output += `${truncator}(${array.length - array[i] + 1})`; 40696 break; 40697 } 40698 output += string; 40699 } 40700 let propertyContents = ""; 40701 return nonIndexProperties.length && (propertyContents = inspectList(nonIndexProperties.map((key) => [key, array[key]]), options, inspectProperty)), `${name}[ ${output}${propertyContents ? `, ${propertyContents}` : ""} ]`; 40702} 40703
vendor: 368 bytes, lines 40704-40712
40704// ../../node_modules/loupe/lib/date.js 40705function inspectDate(dateObject, options) { 40706 let stringRepresentation = dateObject.toJSON(); 40707 if (stringRepresentation === null) 40708 return "Invalid Date"; 40709 let split = stringRepresentation.split("T"), date = split[0]; 40710 return options.stylize(`${date}T${truncate(split[1], options.truncate - date.length - 1)}`, "date"); 40711} 40712
vendor: 324 bytes, lines 40713-40718
40713// ../../node_modules/loupe/lib/function.js 40714function inspectFunction(func, options) { 40715 let functionType = func[Symbol.toStringTag] || "Function", name = func.name; 40716 return name ? options.stylize(`[${functionType} ${truncate(name, options.truncate - 11)}]`, "special") : options.stylize(`[${functionType}]`, "special"); 40717} 40718
vendor: 567 bytes, lines 40719-40732
40719// ../../node_modules/loupe/lib/map.js 40720function inspectMapEntry([key, value], options) { 40721 return options.truncate -= 4, key = options.inspect(key, options), options.truncate -= key.length, value = options.inspect(value, options), `${key} => ${value}`; 40722} 40723function mapToEntries(map2) { 40724 let entries = []; 40725 return map2.forEach((value, key) => { 40726 entries.push([key, value]); 40727 }), entries; 40728} 40729function inspectMap(map2, options) { 40730 return map2.size === 0 ? "Map{}" : (options.truncate -= 7, `Map{ ${inspectList(mapToEntries(map2), options, inspectMapEntry)} }`); 40731} 40732
vendor: 465 bytes, lines 40733-40738
40733// ../../node_modules/loupe/lib/number.js 40734var isNaN2 = Number.isNaN || ((i) => i !== i); 40735function inspectNumber(number, options) { 40736 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"); 40737} 40738
vendor: 230 bytes, lines 40739-40744
40739// ../../node_modules/loupe/lib/bigint.js 40740function inspectBigInt(number, options) { 40741 let nums = truncate(number.toString(), options.truncate - 1); 40742 return nums !== truncator && (nums += "n"), options.stylize(nums, "bigint"); 40743} 40744
vendor: 292 bytes, lines 40745-40750
40745// ../../node_modules/loupe/lib/regexp.js 40746function inspectRegExp(value, options) { 40747 let flags = value.toString().split("/")[2], sourceLength = options.truncate - (2 + flags.length), source = value.source; 40748 return options.stylize(`/${truncate(source, sourceLength)}/${flags}`, "regexp"); 40749} 40750
vendor: 319 bytes, lines 40751-40761
40751// ../../node_modules/loupe/lib/set.js 40752function arrayFromSet(set3) { 40753 let values = []; 40754 return set3.forEach((value) => { 40755 values.push(value); 40756 }), values; 40757} 40758function inspectSet(set3, options) { 40759 return set3.size === 0 ? "Set{}" : (options.truncate -= 7, `Set{ ${inspectList(arrayFromSet(set3), options)} }`); 40760} 40761
vendor: 739 bytes, lines 40762-40778
40762// ../../node_modules/loupe/lib/string.js 40763var stringEscapeChars = new RegExp("['\\u0000-\\u001f\\u007f-\\u009f\\u00ad\\u0600-\\u0604\\u070f\\u17b4\\u17b5\\u200c-\\u200f\\u2028-\\u202f\\u2060-\\u206f\\ufeff\\ufff0-\\uffff]", "g"), escapeCharacters = { 40764 "\b": "\\b", 40765 " ": "\\t", 40766 "\n": "\\n", 40767 "\f": "\\f", 40768 "\r": "\\r", 40769 "'": "\\'", 40770 "\\": "\\\\" 40771}, hex = 16, unicodeLength = 4; 40772function escape(char2) { 40773 return escapeCharacters[char2] || `\\u${`0000${char2.charCodeAt(0).toString(hex)}`.slice(-unicodeLength)}`; 40774} 40775function inspectString(string, options) { 40776 return stringEscapeChars.test(string) && (string = string.replace(stringEscapeChars, escape)), options.stylize(`'${truncate(string, options.truncate - 2)}'`, "string"); 40777} 40778
vendor: 206 bytes, lines 40779-40783
40779// ../../node_modules/loupe/lib/symbol.js 40780function inspectSymbol(value) { 40781 return "description" in Symbol.prototype ? value.description ? `Symbol(${value.description})` : "Symbol()" : value.toString(); 40782} 40783
vendor: 527 bytes, lines 40784-40795
40784// ../../node_modules/loupe/lib/promise.js 40785var getPromiseValue = () => "Promise{\u2026}"; 40786try { 40787 let { getPromiseDetails, kPending, kRejected } = process.binding("util"); 40788 Array.isArray(getPromiseDetails(Promise.resolve())) && (getPromiseValue = (value, options) => { 40789 let [state3, innerValue] = getPromiseDetails(value); 40790 return state3 === kPending ? "Promise{<pending>}" : `Promise${state3 === kRejected ? "!" : ""}{${options.inspect(innerValue, options)}}`; 40791 }); 40792} catch { 40793} 40794var promise_default = getPromiseValue; 40795
vendor: 803 bytes, lines 40796-40809
40796// ../../node_modules/loupe/lib/object.js 40797function inspectObject(object, options) { 40798 let properties = Object.getOwnPropertyNames(object), symbols = Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(object) : []; 40799 if (properties.length === 0 && symbols.length === 0) 40800 return "{}"; 40801 if (options.truncate -= 4, options.seen = options.seen || [], options.seen.includes(object)) 40802 return "[Circular]"; 40803 options.seen.push(object); 40804 let propertyContents = inspectList(properties.map((key) => [key, object[key]]), options, inspectProperty), symbolContents = inspectList(symbols.map((key) => [key, object[key]]), options, inspectProperty); 40805 options.seen.pop(); 40806 let sep = ""; 40807 return propertyContents && symbolContents && (sep = ", "), `{ ${propertyContents}${sep}${symbolContents} }`; 40808} 40809
vendor: 442 bytes, lines 40810-40816
40810// ../../node_modules/loupe/lib/class.js 40811var toStringTag = typeof Symbol < "u" && Symbol.toStringTag ? Symbol.toStringTag : !1; 40812function inspectClass(value, options) { 40813 let name = ""; 40814 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)}`; 40815} 40816
vendor: 208 bytes, lines 40817-40821
40817// ../../node_modules/loupe/lib/arguments.js 40818function inspectArguments(args, options) { 40819 return args.length === 0 ? "Arguments[]" : (options.truncate -= 13, `Arguments[ ${inspectList(args, options)} ]`); 40820} 40821
vendor: 941 bytes, lines 40822-40846
40822// ../../node_modules/loupe/lib/error.js 40823var errorKeys = [ 40824 "stack", 40825 "line", 40826 "column", 40827 "name", 40828 "message", 40829 "fileName", 40830 "lineNumber", 40831 "columnNumber", 40832 "number", 40833 "description", 40834 "cause" 40835]; 40836function inspectObject2(error, options) { 40837 let properties = Object.getOwnPropertyNames(error).filter((key) => errorKeys.indexOf(key) === -1), name = error.name; 40838 options.truncate -= name.length; 40839 let message = ""; 40840 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)) 40841 return "[Circular]"; 40842 options.seen.push(error); 40843 let propertyContents = inspectList(properties.map((key) => [key, error[key]]), options, inspectProperty); 40844 return `${name}${message}${propertyContents ? ` { ${propertyContents} }` : ""}`; 40845} 40846
vendor: 1,469 bytes, lines 40847-40873
40847// ../../node_modules/loupe/lib/html.js 40848function inspectAttribute([key, value], options) { 40849 return options.truncate -= 3, value ? `${options.stylize(String(key), "yellow")}=${options.stylize(`"${value}"`, "string")}` : `${options.stylize(String(key), "yellow")}`; 40850} 40851function inspectNodeCollection(collection, options) { 40852 return inspectList(collection, options, inspectNode, ` 40853`); 40854} 40855function inspectNode(node2, options) { 40856 switch (node2.nodeType) { 40857 case 1: 40858 return inspectHTML(node2, options); 40859 case 3: 40860 return options.inspect(node2.data, options); 40861 default: 40862 return options.inspect(node2, options); 40863 } 40864} 40865function inspectHTML(element, options) { 40866 let properties = element.getAttributeNames(), name = element.tagName.toLowerCase(), head2 = options.stylize(`<${name}`, "special"), headClose = options.stylize(">", "special"), tail2 = options.stylize(`</${name}>`, "special"); 40867 options.truncate -= name.length * 2 + 5; 40868 let propertyContents = ""; 40869 properties.length > 0 && (propertyContents += " ", propertyContents += inspectList(properties.map((key) => [key, element.getAttribute(key)]), options, inspectAttribute, " ")), options.truncate -= propertyContents.length; 40870 let truncate3 = options.truncate, children = inspectNodeCollection(element.children, options); 40871 return children && children.length > truncate3 && (children = `${truncator}(${element.children.length})`), `${head2}${propertyContents}${headClose}${children}${tail2}`; 40872} 40873
vendor: 3,353 bytes, lines 40874-40929
40874// ../../node_modules/loupe/lib/index.js 40875var symbolsSupported = typeof Symbol == "function" && typeof Symbol.for == "function", chaiInspect = symbolsSupported ? Symbol.for("chai/inspect") : "@@chai/inspect", nodeInspect = Symbol.for("nodejs.util.inspect.custom"), constructorMap = /* @__PURE__ */ new WeakMap(), stringTagMap = {}, baseTypesMap = { 40876 undefined: (value, options) => options.stylize("undefined", "undefined"), 40877 null: (value, options) => options.stylize("null", "null"), 40878 boolean: (value, options) => options.stylize(String(value), "boolean"), 40879 Boolean: (value, options) => options.stylize(String(value), "boolean"), 40880 number: inspectNumber, 40881 Number: inspectNumber, 40882 bigint: inspectBigInt, 40883 BigInt: inspectBigInt, 40884 string: inspectString, 40885 String: inspectString, 40886 function: inspectFunction, 40887 Function: inspectFunction, 40888 symbol: inspectSymbol, 40889 // A Symbol polyfill will return `Symbol` not `symbol` from typedetect 40890 Symbol: inspectSymbol, 40891 Array: inspectArray, 40892 Date: inspectDate, 40893 Map: inspectMap, 40894 Set: inspectSet, 40895 RegExp: inspectRegExp, 40896 Promise: promise_default, 40897 // WeakSet, WeakMap are totally opaque to us 40898 WeakSet: (value, options) => options.stylize("WeakSet{\u2026}", "special"), 40899 WeakMap: (value, options) => options.stylize("WeakMap{\u2026}", "special"), 40900 Arguments: inspectArguments, 40901 Int8Array: inspectTypedArray, 40902 Uint8Array: inspectTypedArray, 40903 Uint8ClampedArray: inspectTypedArray, 40904 Int16Array: inspectTypedArray, 40905 Uint16Array: inspectTypedArray, 40906 Int32Array: inspectTypedArray, 40907 Uint32Array: inspectTypedArray, 40908 Float32Array: inspectTypedArray, 40909 Float64Array: inspectTypedArray, 40910 Generator: () => "", 40911 DataView: () => "", 40912 ArrayBuffer: () => "", 40913 Error: inspectObject2, 40914 HTMLCollection: inspectNodeCollection, 40915 NodeList: inspectNodeCollection 40916}, 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; 40917function inspect2(value, opts = {}) { 40918 let options = normaliseOptions(opts, inspect2), { customInspect } = options, type5 = value === null ? "null" : typeof value; 40919 if (type5 === "object" && (type5 = toString3.call(value).slice(8, -1)), type5 in baseTypesMap) 40920 return baseTypesMap[type5](value, options); 40921 if (customInspect && value) { 40922 let output = inspectCustom(value, options, type5); 40923 if (output) 40924 return typeof output == "string" ? output : inspect2(output, options); 40925 } 40926 let proto = value ? Object.getPrototypeOf(value) : !1; 40927 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); 40928} 40929
vendor: 3,201 bytes, lines 40930-41028
40930// ../../node_modules/@vitest/utils/dist/chunk-_commonjsHelpers.js 40931var { AsymmetricMatcher, DOMCollection, DOMElement, Immutable, ReactElement, ReactTestComponent } = plugins, PLUGINS = [ 40932 ReactTestComponent, 40933 ReactElement, 40934 DOMElement, 40935 DOMCollection, 40936 Immutable, 40937 AsymmetricMatcher 40938]; 40939function stringify5(object, maxDepth = 10, { maxLength, ...options } = {}) { 40940 let MAX_LENGTH = maxLength ?? 1e4, result; 40941 try { 40942 result = format(object, { 40943 maxDepth, 40944 escapeString: !1, 40945 plugins: PLUGINS, 40946 ...options 40947 }); 40948 } catch { 40949 result = format(object, { 40950 callToJSON: !1, 40951 maxDepth, 40952 escapeString: !1, 40953 plugins: PLUGINS, 40954 ...options 40955 }); 40956 } 40957 return result.length >= MAX_LENGTH && maxDepth > 1 ? stringify5(object, Math.floor(Math.min(maxDepth, Number.MAX_SAFE_INTEGER) / 2), { 40958 maxLength, 40959 ...options 40960 }) : result; 40961} 40962var formatRegExp = /%[sdjifoOc%]/g; 40963function format2(...args) { 40964 if (typeof args[0] != "string") { 40965 let objects = []; 40966 for (let i2 = 0; i2 < args.length; i2++) 40967 objects.push(inspect3(args[i2], { 40968 depth: 0, 40969 colors: !1 40970 })); 40971 return objects.join(" "); 40972 } 40973 let len = args.length, i = 1, template = args[0], str2 = String(template).replace(formatRegExp, (x) => { 40974 if (x === "%%") 40975 return "%"; 40976 if (i >= len) 40977 return x; 40978 switch (x) { 40979 case "%s": { 40980 let value = args[i++]; 40981 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, { 40982 depth: 0, 40983 colors: !1 40984 }) : String(value); 40985 } 40986 case "%d": { 40987 let value = args[i++]; 40988 return typeof value == "bigint" ? `${value.toString()}n` : Number(value).toString(); 40989 } 40990 case "%i": { 40991 let value = args[i++]; 40992 return typeof value == "bigint" ? `${value.toString()}n` : Number.parseInt(String(value)).toString(); 40993 } 40994 case "%f": 40995 return Number.parseFloat(String(args[i++])).toString(); 40996 case "%o": 40997 return inspect3(args[i++], { 40998 showHidden: !0, 40999 showProxy: !0 41000 }); 41001 case "%O": 41002 return inspect3(args[i++]); 41003 case "%c": 41004 return i++, ""; 41005 case "%j": 41006 try { 41007 return JSON.stringify(args[i++]); 41008 } catch (err) { 41009 let m3 = err.message; 41010 if (m3.includes("circular structure") || m3.includes("cyclic structures") || m3.includes("cyclic object")) 41011 return "[Circular]"; 41012 throw err; 41013 } 41014 default: 41015 return x; 41016 } 41017 }); 41018 for (let x = args[i]; i < len; x = args[++i]) 41019 x === null || typeof x != "object" ? str2 += ` ${x}` : str2 += ` ${inspect3(x)}`; 41020 return str2; 41021} 41022function inspect3(obj, options = {}) { 41023 return options.truncate === 0 && (options.truncate = Number.POSITIVE_INFINITY), inspect2(obj, options); 41024} 41025function getDefaultExportFromCjs2(x) { 41026 return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, "default") ? x.default : x; 41027} 41028
vendor: 2,311 bytes, lines 41029-41094
41029// ../../node_modules/@vitest/utils/dist/helpers.js 41030function assertTypes(value, name, types) { 41031 let receivedType = typeof value; 41032 if (!types.includes(receivedType)) 41033 throw new TypeError(`${name} value must be ${types.join(" or ")}, received "${receivedType}"`); 41034} 41035function isObject5(item) { 41036 return item != null && typeof item == "object" && !Array.isArray(item); 41037} 41038function isFinalObj(obj) { 41039 return obj === Object.prototype || obj === Function.prototype || obj === RegExp.prototype; 41040} 41041function getType2(value) { 41042 return Object.prototype.toString.apply(value).slice(8, -1); 41043} 41044function collectOwnProperties(obj, collector) { 41045 let collect = typeof collector == "function" ? collector : (key) => collector.add(key); 41046 Object.getOwnPropertyNames(obj).forEach(collect), Object.getOwnPropertySymbols(obj).forEach(collect); 41047} 41048function getOwnProperties(obj) { 41049 let ownProps = /* @__PURE__ */ new Set(); 41050 return isFinalObj(obj) ? [] : (collectOwnProperties(obj, ownProps), Array.from(ownProps)); 41051} 41052var defaultCloneOptions = { forceWritable: !1 }; 41053function deepClone(val, options = defaultCloneOptions) { 41054 return clone2(val, /* @__PURE__ */ new WeakMap(), options); 41055} 41056function clone2(val, seen, options = defaultCloneOptions) { 41057 let k, out; 41058 if (seen.has(val)) 41059 return seen.get(val); 41060 if (Array.isArray(val)) { 41061 for (out = Array.from({ length: k = val.length }), seen.set(val, out); k--; ) 41062 out[k] = clone2(val[k], seen, options); 41063 return out; 41064 } 41065 if (Object.prototype.toString.call(val) === "[object Object]") { 41066 out = Object.create(Object.getPrototypeOf(val)), seen.set(val, out); 41067 let props = getOwnProperties(val); 41068 for (let k2 of props) { 41069 let descriptor = Object.getOwnPropertyDescriptor(val, k2); 41070 if (!descriptor) 41071 continue; 41072 let cloned = clone2(val[k2], seen, options); 41073 options.forceWritable ? Object.defineProperty(out, k2, { 41074 enumerable: descriptor.enumerable, 41075 configurable: !0, 41076 writable: !0, 41077 value: cloned 41078 }) : "get" in descriptor ? Object.defineProperty(out, k2, { 41079 ...descriptor, 41080 get() { 41081 return cloned; 41082 } 41083 }) : Object.defineProperty(out, k2, { 41084 ...descriptor, 41085 value: cloned 41086 }); 41087 } 41088 return out; 41089 } 41090 return val; 41091} 41092function noop2() { 41093} 41094
vendor: 48,675 bytes, lines 41095-42061
41095// ../../node_modules/@vitest/utils/dist/diff.js 41096var DIFF_DELETE = -1, DIFF_INSERT = 1, DIFF_EQUAL = 0, Diff = class { 41097 0; 41098 1; 41099 constructor(op, text) { 41100 this[0] = op, this[1] = text; 41101 } 41102}; 41103function diff_commonPrefix(text1, text2) { 41104 if (!text1 || !text2 || text1.charAt(0) !== text2.charAt(0)) 41105 return 0; 41106 let pointermin = 0, pointermax = Math.min(text1.length, text2.length), pointermid = pointermax, pointerstart = 0; 41107 for (; pointermin < pointermid; ) 41108 text1.substring(pointerstart, pointermid) === text2.substring(pointerstart, pointermid) ? (pointermin = pointermid, pointerstart = pointermin) : pointermax = pointermid, pointermid = Math.floor((pointermax - pointermin) / 2 + pointermin); 41109 return pointermid; 41110} 41111function diff_commonSuffix(text1, text2) { 41112 if (!text1 || !text2 || text1.charAt(text1.length - 1) !== text2.charAt(text2.length - 1)) 41113 return 0; 41114 let pointermin = 0, pointermax = Math.min(text1.length, text2.length), pointermid = pointermax, pointerend = 0; 41115 for (; pointermin < pointermid; ) 41116 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); 41117 return pointermid; 41118} 41119function diff_commonOverlap_(text1, text2) { 41120 let text1_length = text1.length, text2_length = text2.length; 41121 if (text1_length === 0 || text2_length === 0) 41122 return 0; 41123 text1_length > text2_length ? text1 = text1.substring(text1_length - text2_length) : text1_length < text2_length && (text2 = text2.substring(0, text1_length)); 41124 let text_length = Math.min(text1_length, text2_length); 41125 if (text1 === text2) 41126 return text_length; 41127 let best = 0, length2 = 1; 41128 for (; ; ) { 41129 let pattern = text1.substring(text_length - length2), found = text2.indexOf(pattern); 41130 if (found === -1) 41131 return best; 41132 length2 += found, (found === 0 || text1.substring(text_length - length2) === text2.substring(0, length2)) && (best = length2, length2++); 41133 } 41134} 41135function diff_cleanupSemantic(diffs) { 41136 let changes = !1, equalities = [], equalitiesLength = 0, lastEquality = null, pointer4 = 0, length_insertions1 = 0, length_deletions1 = 0, length_insertions2 = 0, length_deletions2 = 0; 41137 for (; pointer4 < diffs.length; ) 41138 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++; 41139 for (changes && diff_cleanupMerge(diffs), diff_cleanupSemanticLossless(diffs), pointer4 = 1; pointer4 < diffs.length; ) { 41140 if (diffs[pointer4 - 1][0] === DIFF_DELETE && diffs[pointer4][0] === DIFF_INSERT) { 41141 let deletion = diffs[pointer4 - 1][1], insertion = diffs[pointer4][1], overlap_length1 = diff_commonOverlap_(deletion, insertion), overlap_length2 = diff_commonOverlap_(insertion, deletion); 41142 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++; 41143 } 41144 pointer4++; 41145 } 41146} 41147var nonAlphaNumericRegex_ = /[^a-z0-9]/i, whitespaceRegex_ = /\s/, linebreakRegex_ = /[\r\n]/, blanklineEndRegex_ = /\n\r?\n$/, blanklineStartRegex_ = /^\r?\n\r?\n/; 41148function diff_cleanupSemanticLossless(diffs) { 41149 let pointer4 = 1; 41150 for (; pointer4 < diffs.length - 1; ) { 41151 if (diffs[pointer4 - 1][0] === DIFF_EQUAL && diffs[pointer4 + 1][0] === DIFF_EQUAL) { 41152 let equality1 = diffs[pointer4 - 1][1], edit = diffs[pointer4][1], equality2 = diffs[pointer4 + 1][1], commonOffset = diff_commonSuffix(equality1, edit); 41153 if (commonOffset) { 41154 let commonString = edit.substring(edit.length - commonOffset); 41155 equality1 = equality1.substring(0, equality1.length - commonOffset), edit = commonString + edit.substring(0, edit.length - commonOffset), equality2 = commonString + equality2; 41156 } 41157 let bestEquality1 = equality1, bestEdit = edit, bestEquality2 = equality2, bestScore = diff_cleanupSemanticScore_(equality1, edit) + diff_cleanupSemanticScore_(edit, equality2); 41158 for (; edit.charAt(0) === equality2.charAt(0); ) { 41159 equality1 += edit.charAt(0), edit = edit.substring(1) + equality2.charAt(0), equality2 = equality2.substring(1); 41160 let score = diff_cleanupSemanticScore_(equality1, edit) + diff_cleanupSemanticScore_(edit, equality2); 41161 score >= bestScore && (bestScore = score, bestEquality1 = equality1, bestEdit = edit, bestEquality2 = equality2); 41162 } 41163 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--)); 41164 } 41165 pointer4++; 41166 } 41167} 41168function diff_cleanupMerge(diffs) { 41169 diffs.push(new Diff(DIFF_EQUAL, "")); 41170 let pointer4 = 0, count_delete = 0, count_insert = 0, text_delete = "", text_insert = "", commonlength; 41171 for (; pointer4 < diffs.length; ) 41172 switch (diffs[pointer4][0]) { 41173 case DIFF_INSERT: 41174 count_insert++, text_insert += diffs[pointer4][1], pointer4++; 41175 break; 41176 case DIFF_DELETE: 41177 count_delete++, text_delete += diffs[pointer4][1], pointer4++; 41178 break; 41179 case DIFF_EQUAL: 41180 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 = ""; 41181 break; 41182 } 41183 diffs[diffs.length - 1][1] === "" && diffs.pop(); 41184 let changes = !1; 41185 for (pointer4 = 1; pointer4 < diffs.length - 1; ) 41186 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++; 41187 changes && diff_cleanupMerge(diffs); 41188} 41189function diff_cleanupSemanticScore_(one, two) { 41190 if (!one || !two) 41191 return 6; 41192 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_); 41193 return blankLine1 || blankLine2 ? 5 : lineBreak1 || lineBreak2 ? 4 : nonAlphaNumeric1 && !whitespace1 && whitespace2 ? 3 : whitespace1 || whitespace2 ? 2 : nonAlphaNumeric1 || nonAlphaNumeric2 ? 1 : 0; 41194} 41195var 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; 41196function requireBuild() { 41197 if (hasRequiredBuild) return build; 41198 hasRequiredBuild = 1, Object.defineProperty(build, "__esModule", { 41199 value: !0 41200 }), build.default = diffSequence; 41201 let pkg = "diff-sequences", NOT_YET_SET = 0, countCommonItemsF = (aIndex, aEnd, bIndex, bEnd, isCommon) => { 41202 let nCommon = 0; 41203 for (; aIndex < aEnd && bIndex < bEnd && isCommon(aIndex, bIndex); ) 41204 aIndex += 1, bIndex += 1, nCommon += 1; 41205 return nCommon; 41206 }, countCommonItemsR = (aStart, aIndex, bStart, bIndex, isCommon) => { 41207 let nCommon = 0; 41208 for (; aStart <= aIndex && bStart <= bIndex && isCommon(aIndex, bIndex); ) 41209 aIndex -= 1, bIndex -= 1, nCommon += 1; 41210 return nCommon; 41211 }, extendPathsF = (d, aEnd, bEnd, bF, isCommon, aIndexesF, iMaxF) => { 41212 let iF = 0, kF = -d, aFirst = aIndexesF[iF], aIndexPrev1 = aFirst; 41213 aIndexesF[iF] += countCommonItemsF( 41214 aFirst + 1, 41215 aEnd, 41216 bF + aFirst - kF + 1, 41217 bEnd, 41218 isCommon 41219 ); 41220 let nF = d < iMaxF ? d : iMaxF; 41221 for (iF += 1, kF += 2; iF <= nF; iF += 1, kF += 2) { 41222 if (iF !== d && aIndexPrev1 < aIndexesF[iF]) 41223 aFirst = aIndexesF[iF]; 41224 else if (aFirst = aIndexPrev1 + 1, aEnd <= aFirst) 41225 return iF - 1; 41226 aIndexPrev1 = aIndexesF[iF], aIndexesF[iF] = aFirst + countCommonItemsF(aFirst + 1, aEnd, bF + aFirst - kF + 1, bEnd, isCommon); 41227 } 41228 return iMaxF; 41229 }, extendPathsR = (d, aStart, bStart, bR, isCommon, aIndexesR, iMaxR) => { 41230 let iR = 0, kR = d, aFirst = aIndexesR[iR], aIndexPrev1 = aFirst; 41231 aIndexesR[iR] -= countCommonItemsR( 41232 aStart, 41233 aFirst - 1, 41234 bStart, 41235 bR + aFirst - kR - 1, 41236 isCommon 41237 ); 41238 let nR = d < iMaxR ? d : iMaxR; 41239 for (iR += 1, kR -= 2; iR <= nR; iR += 1, kR -= 2) { 41240 if (iR !== d && aIndexesR[iR] < aIndexPrev1) 41241 aFirst = aIndexesR[iR]; 41242 else if (aFirst = aIndexPrev1 - 1, aFirst < aStart) 41243 return iR - 1; 41244 aIndexPrev1 = aIndexesR[iR], aIndexesR[iR] = aFirst - countCommonItemsR( 41245 aStart, 41246 aFirst - 1, 41247 bStart, 41248 bR + aFirst - kR - 1, 41249 isCommon 41250 ); 41251 } 41252 return iMaxR; 41253 }, extendOverlappablePathsF = (d, aStart, aEnd, bStart, bEnd, isCommon, aIndexesF, iMaxF, aIndexesR, iMaxR, division) => { 41254 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; 41255 for (let iF = 0, kF = -d; iF <= nF; iF += 1, kF += 2) { 41256 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( 41257 aFirst + 1, 41258 aEnd, 41259 bFirst + 1, 41260 bEnd, 41261 isCommon 41262 ), aLast = aFirst + nCommonF; 41263 if (aIndexPrev1 = aIndexesF[iF], aIndexesF[iF] = aLast, kMinOverlapF <= kF && kF <= kMaxOverlapF) { 41264 let iR = (d - 1 - (kF + baDeltaLength)) / 2; 41265 if (iR <= iMaxR && aIndexesR[iR] - 1 <= aLast) { 41266 let bLastPrev = bF + aLastPrev - (insert ? kF + 1 : kF - 1), nCommonR = countCommonItemsR( 41267 aStart, 41268 aLastPrev, 41269 bStart, 41270 bLastPrev, 41271 isCommon 41272 ), aIndexPrevFirst = aLastPrev - nCommonR, bIndexPrevFirst = bLastPrev - nCommonR, aEndPreceding = aIndexPrevFirst + 1, bEndPreceding = bIndexPrevFirst + 1; 41273 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); 41274 let aStartFollowing = aLast + 1, bStartFollowing = bFirst + nCommonF + 1; 41275 return division.nChangeFollowing = d - 1, d - 1 === aEnd + bEnd - aStartFollowing - bStartFollowing ? (division.aStartFollowing = aEnd, division.bStartFollowing = bEnd) : (division.aStartFollowing = aStartFollowing, division.bStartFollowing = bStartFollowing), !0; 41276 } 41277 } 41278 } 41279 return !1; 41280 }, extendOverlappablePathsR = (d, aStart, aEnd, bStart, bEnd, isCommon, aIndexesF, iMaxF, aIndexesR, iMaxR, division) => { 41281 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; 41282 for (let iR = 0, kR = d; iR <= nR; iR += 1, kR -= 2) { 41283 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( 41284 aStart, 41285 aFirst - 1, 41286 bStart, 41287 bFirst - 1, 41288 isCommon 41289 ), aLast = aFirst - nCommonR; 41290 if (aIndexPrev1 = aIndexesR[iR], aIndexesR[iR] = aLast, kMinOverlapR <= kR && kR <= kMaxOverlapR) { 41291 let iF = (d + (kR - baDeltaLength)) / 2; 41292 if (iF <= iMaxF && aLast - 1 <= aIndexesF[iF]) { 41293 let bLast = bFirst - nCommonR; 41294 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) 41295 division.nCommonFollowing = 0, division.aStartFollowing = aEnd, division.bStartFollowing = bEnd; 41296 else { 41297 let bLastPrev = bR + aLastPrev - (insert ? kR - 1 : kR + 1), nCommonF = countCommonItemsF( 41298 aLastPrev, 41299 aEnd, 41300 bLastPrev, 41301 bEnd, 41302 isCommon 41303 ); 41304 division.nCommonFollowing = nCommonF, nCommonF !== 0 && (division.aCommonFollowing = aLastPrev, division.bCommonFollowing = bLastPrev); 41305 let aStartFollowing = aLastPrev + nCommonF, bStartFollowing = bLastPrev + nCommonF; 41306 d - 1 === aEnd + bEnd - aStartFollowing - bStartFollowing ? (division.aStartFollowing = aEnd, division.bStartFollowing = bEnd) : (division.aStartFollowing = aStartFollowing, division.bStartFollowing = bStartFollowing); 41307 } 41308 return !0; 41309 } 41310 } 41311 } 41312 return !1; 41313 }, divide = (nChange, aStart, aEnd, bStart, bEnd, isCommon, aIndexesF, aIndexesR, division) => { 41314 let bF = bStart - aStart, bR = bEnd - aEnd, aLength = aEnd - aStart, bLength = bEnd - bStart, baDeltaLength = bLength - aLength, iMaxF = aLength, iMaxR = aLength; 41315 if (aIndexesF[0] = aStart - 1, aIndexesR[0] = aEnd, baDeltaLength % 2 === 0) { 41316 let dMin = (nChange || baDeltaLength) / 2, dMax = (aLength + bLength) / 2; 41317 for (let d = 1; d <= dMax; d += 1) 41318 if (iMaxF = extendPathsF(d, aEnd, bEnd, bF, isCommon, aIndexesF, iMaxF), d < dMin) 41319 iMaxR = extendPathsR(d, aStart, bStart, bR, isCommon, aIndexesR, iMaxR); 41320 else if ( 41321 // If a reverse path overlaps a forward path in the same diagonal, 41322 // return a division of the index intervals at the middle change. 41323 extendOverlappablePathsR( 41324 d, 41325 aStart, 41326 aEnd, 41327 bStart, 41328 bEnd, 41329 isCommon, 41330 aIndexesF, 41331 iMaxF, 41332 aIndexesR, 41333 iMaxR, 41334 division 41335 ) 41336 ) 41337 return; 41338 } else { 41339 let dMin = ((nChange || baDeltaLength) + 1) / 2, dMax = (aLength + bLength + 1) / 2, d = 1; 41340 for (iMaxF = extendPathsF(d, aEnd, bEnd, bF, isCommon, aIndexesF, iMaxF), d += 1; d <= dMax; d += 1) 41341 if (iMaxR = extendPathsR( 41342 d - 1, 41343 aStart, 41344 bStart, 41345 bR, 41346 isCommon, 41347 aIndexesR, 41348 iMaxR 41349 ), d < dMin) 41350 iMaxF = extendPathsF(d, aEnd, bEnd, bF, isCommon, aIndexesF, iMaxF); 41351 else if ( 41352 // If a forward path overlaps a reverse path in the same diagonal, 41353 // return a division of the index intervals at the middle change. 41354 extendOverlappablePathsF( 41355 d, 41356 aStart, 41357 aEnd, 41358 bStart, 41359 bEnd, 41360 isCommon, 41361 aIndexesF, 41362 iMaxF, 41363 aIndexesR, 41364 iMaxR, 41365 division 41366 ) 41367 ) 41368 return; 41369 } 41370 throw new Error( 41371 `${pkg}: no overlap aStart=${aStart} aEnd=${aEnd} bStart=${bStart} bEnd=${bEnd}` 41372 ); 41373 }, findSubsequences = (nChange, aStart, aEnd, bStart, bEnd, transposed, callbacks, aIndexesF, aIndexesR, division) => { 41374 if (bEnd - bStart < aEnd - aStart) { 41375 if (transposed = !transposed, transposed && callbacks.length === 1) { 41376 let { foundSubsequence: foundSubsequence2, isCommon: isCommon2 } = callbacks[0]; 41377 callbacks[1] = { 41378 foundSubsequence: (nCommon, bCommon, aCommon) => { 41379 foundSubsequence2(nCommon, aCommon, bCommon); 41380 }, 41381 isCommon: (bIndex, aIndex) => isCommon2(aIndex, bIndex) 41382 }; 41383 } 41384 let tStart = aStart, tEnd = aEnd; 41385 aStart = bStart, aEnd = bEnd, bStart = tStart, bEnd = tEnd; 41386 } 41387 let { foundSubsequence, isCommon } = callbacks[transposed ? 1 : 0]; 41388 divide( 41389 nChange, 41390 aStart, 41391 aEnd, 41392 bStart, 41393 bEnd, 41394 isCommon, 41395 aIndexesF, 41396 aIndexesR, 41397 division 41398 ); 41399 let { 41400 nChangePreceding, 41401 aEndPreceding, 41402 bEndPreceding, 41403 nCommonPreceding, 41404 aCommonPreceding, 41405 bCommonPreceding, 41406 nCommonFollowing, 41407 aCommonFollowing, 41408 bCommonFollowing, 41409 nChangeFollowing, 41410 aStartFollowing, 41411 bStartFollowing 41412 } = division; 41413 aStart < aEndPreceding && bStart < bEndPreceding && findSubsequences( 41414 nChangePreceding, 41415 aStart, 41416 aEndPreceding, 41417 bStart, 41418 bEndPreceding, 41419 transposed, 41420 callbacks, 41421 aIndexesF, 41422 aIndexesR, 41423 division 41424 ), nCommonPreceding !== 0 && foundSubsequence(nCommonPreceding, aCommonPreceding, bCommonPreceding), nCommonFollowing !== 0 && foundSubsequence(nCommonFollowing, aCommonFollowing, bCommonFollowing), aStartFollowing < aEnd && bStartFollowing < bEnd && findSubsequences( 41425 nChangeFollowing, 41426 aStartFollowing, 41427 aEnd, 41428 bStartFollowing, 41429 bEnd, 41430 transposed, 41431 callbacks, 41432 aIndexesF, 41433 aIndexesR, 41434 division 41435 ); 41436 }, validateLength = (name, arg) => { 41437 if (typeof arg != "number") 41438 throw new TypeError(`${pkg}: ${name} typeof ${typeof arg} is not a number`); 41439 if (!Number.isSafeInteger(arg)) 41440 throw new RangeError(`${pkg}: ${name} value ${arg} is not a safe integer`); 41441 if (arg < 0) 41442 throw new RangeError(`${pkg}: ${name} value ${arg} is a negative integer`); 41443 }, validateCallback = (name, arg) => { 41444 let type5 = typeof arg; 41445 if (type5 !== "function") 41446 throw new TypeError(`${pkg}: ${name} typeof ${type5} is not a function`); 41447 }; 41448 function diffSequence(aLength, bLength, isCommon, foundSubsequence) { 41449 validateLength("aLength", aLength), validateLength("bLength", bLength), validateCallback("isCommon", isCommon), validateCallback("foundSubsequence", foundSubsequence); 41450 let nCommonF = countCommonItemsF(0, aLength, 0, bLength, isCommon); 41451 if (nCommonF !== 0 && foundSubsequence(nCommonF, 0, 0), aLength !== nCommonF || bLength !== nCommonF) { 41452 let aStart = nCommonF, bStart = nCommonF, nCommonR = countCommonItemsR( 41453 aStart, 41454 aLength - 1, 41455 bStart, 41456 bLength - 1, 41457 isCommon 41458 ), aEnd = aLength - nCommonR, bEnd = bLength - nCommonR, nCommonFR = nCommonF + nCommonR; 41459 aLength !== nCommonFR && bLength !== nCommonFR && findSubsequences( 41460 0, 41461 aStart, 41462 aEnd, 41463 bStart, 41464 bEnd, 41465 !1, 41466 [ 41467 { 41468 foundSubsequence, 41469 isCommon 41470 } 41471 ], 41472 [NOT_YET_SET], 41473 [NOT_YET_SET], 41474 { 41475 aCommonFollowing: NOT_YET_SET, 41476 aCommonPreceding: NOT_YET_SET, 41477 aEndPreceding: NOT_YET_SET, 41478 aStartFollowing: NOT_YET_SET, 41479 bCommonFollowing: NOT_YET_SET, 41480 bCommonPreceding: NOT_YET_SET, 41481 bEndPreceding: NOT_YET_SET, 41482 bStartFollowing: NOT_YET_SET, 41483 nChangeFollowing: NOT_YET_SET, 41484 nChangePreceding: NOT_YET_SET, 41485 nCommonFollowing: NOT_YET_SET, 41486 nCommonPreceding: NOT_YET_SET 41487 } 41488 ), nCommonR !== 0 && foundSubsequence(nCommonR, aEnd, bEnd); 41489 } 41490 } 41491 return build; 41492} 41493var buildExports = requireBuild(), diffSequences = getDefaultExportFromCjs2(buildExports); 41494function formatTrailingSpaces(line2, trailingSpaceFormatter) { 41495 return line2.replace(/\s+$/, (match3) => trailingSpaceFormatter(match3)); 41496} 41497function printDiffLine(line2, isFirstOrLast, color2, indicator, trailingSpaceFormatter, emptyFirstOrLastLinePlaceholder) { 41498 return line2.length !== 0 ? color2(`${indicator} ${formatTrailingSpaces(line2, trailingSpaceFormatter)}`) : indicator !== " " ? color2(indicator) : isFirstOrLast && emptyFirstOrLastLinePlaceholder.length !== 0 ? color2(`${indicator} ${emptyFirstOrLastLinePlaceholder}`) : ""; 41499} 41500function printDeleteLine(line2, isFirstOrLast, { aColor, aIndicator, changeLineTrailingSpaceColor, emptyFirstOrLastLinePlaceholder }) { 41501 return printDiffLine(line2, isFirstOrLast, aColor, aIndicator, changeLineTrailingSpaceColor, emptyFirstOrLastLinePlaceholder); 41502} 41503function printInsertLine(line2, isFirstOrLast, { bColor, bIndicator, changeLineTrailingSpaceColor, emptyFirstOrLastLinePlaceholder }) { 41504 return printDiffLine(line2, isFirstOrLast, bColor, bIndicator, changeLineTrailingSpaceColor, emptyFirstOrLastLinePlaceholder); 41505} 41506function printCommonLine(line2, isFirstOrLast, { commonColor, commonIndicator, commonLineTrailingSpaceColor, emptyFirstOrLastLinePlaceholder }) { 41507 return printDiffLine(line2, isFirstOrLast, commonColor, commonIndicator, commonLineTrailingSpaceColor, emptyFirstOrLastLinePlaceholder); 41508} 41509function createPatchMark(aStart, aEnd, bStart, bEnd, { patchColor }) { 41510 return patchColor(`@@ -${aStart + 1},${aEnd - aStart} +${bStart + 1},${bEnd - bStart} @@`); 41511} 41512function joinAlignedDiffsNoExpand(diffs, options) { 41513 let iLength = diffs.length, nContextLines = options.contextLines, nContextLines2 = nContextLines + nContextLines, jLength = iLength, hasExcessAtStartOrEnd = !1, nExcessesBetweenChanges = 0, i = 0; 41514 for (; i !== iLength; ) { 41515 let iStart = i; 41516 for (; i !== iLength && diffs[i][0] === DIFF_EQUAL; ) 41517 i += 1; 41518 if (iStart !== i) 41519 if (iStart === 0) 41520 i > nContextLines && (jLength -= i - nContextLines, hasExcessAtStartOrEnd = !0); 41521 else if (i === iLength) { 41522 let n = i - iStart; 41523 n > nContextLines && (jLength -= n - nContextLines, hasExcessAtStartOrEnd = !0); 41524 } else { 41525 let n = i - iStart; 41526 n > nContextLines2 && (jLength -= n - nContextLines2, nExcessesBetweenChanges += 1); 41527 } 41528 for (; i !== iLength && diffs[i][0] !== DIFF_EQUAL; ) 41529 i += 1; 41530 } 41531 let hasPatch = nExcessesBetweenChanges !== 0 || hasExcessAtStartOrEnd; 41532 nExcessesBetweenChanges !== 0 ? jLength += nExcessesBetweenChanges + 1 : hasExcessAtStartOrEnd && (jLength += 1); 41533 let jLast = jLength - 1, lines = [], jPatchMark = 0; 41534 hasPatch && lines.push(""); 41535 let aStart = 0, bStart = 0, aEnd = 0, bEnd = 0, pushCommonLine = (line2) => { 41536 let j = lines.length; 41537 lines.push(printCommonLine(line2, j === 0 || j === jLast, options)), aEnd += 1, bEnd += 1; 41538 }, pushDeleteLine = (line2) => { 41539 let j = lines.length; 41540 lines.push(printDeleteLine(line2, j === 0 || j === jLast, options)), aEnd += 1; 41541 }, pushInsertLine = (line2) => { 41542 let j = lines.length; 41543 lines.push(printInsertLine(line2, j === 0 || j === jLast, options)), bEnd += 1; 41544 }; 41545 for (i = 0; i !== iLength; ) { 41546 let iStart = i; 41547 for (; i !== iLength && diffs[i][0] === DIFF_EQUAL; ) 41548 i += 1; 41549 if (iStart !== i) 41550 if (iStart === 0) { 41551 i > nContextLines && (iStart = i - nContextLines, aStart = iStart, bStart = iStart, aEnd = aStart, bEnd = bStart); 41552 for (let iCommon = iStart; iCommon !== i; iCommon += 1) 41553 pushCommonLine(diffs[iCommon][1]); 41554 } else if (i === iLength) { 41555 let iEnd = i - iStart > nContextLines ? iStart + nContextLines : i; 41556 for (let iCommon = iStart; iCommon !== iEnd; iCommon += 1) 41557 pushCommonLine(diffs[iCommon][1]); 41558 } else { 41559 let nCommon = i - iStart; 41560 if (nCommon > nContextLines2) { 41561 let iEnd = iStart + nContextLines; 41562 for (let iCommon = iStart; iCommon !== iEnd; iCommon += 1) 41563 pushCommonLine(diffs[iCommon][1]); 41564 lines[jPatchMark] = createPatchMark(aStart, aEnd, bStart, bEnd, options), jPatchMark = lines.length, lines.push(""); 41565 let nOmit = nCommon - nContextLines2; 41566 aStart = aEnd + nOmit, bStart = bEnd + nOmit, aEnd = aStart, bEnd = bStart; 41567 for (let iCommon = i - nContextLines; iCommon !== i; iCommon += 1) 41568 pushCommonLine(diffs[iCommon][1]); 41569 } else 41570 for (let iCommon = iStart; iCommon !== i; iCommon += 1) 41571 pushCommonLine(diffs[iCommon][1]); 41572 } 41573 for (; i !== iLength && diffs[i][0] === DIFF_DELETE; ) 41574 pushDeleteLine(diffs[i][1]), i += 1; 41575 for (; i !== iLength && diffs[i][0] === DIFF_INSERT; ) 41576 pushInsertLine(diffs[i][1]), i += 1; 41577 } 41578 return hasPatch && (lines[jPatchMark] = createPatchMark(aStart, aEnd, bStart, bEnd, options)), lines.join(` 41579`); 41580} 41581function joinAlignedDiffsExpand(diffs, options) { 41582 return diffs.map((diff2, i, diffs2) => { 41583 let line2 = diff2[1], isFirstOrLast = i === 0 || i === diffs2.length - 1; 41584 switch (diff2[0]) { 41585 case DIFF_DELETE: 41586 return printDeleteLine(line2, isFirstOrLast, options); 41587 case DIFF_INSERT: 41588 return printInsertLine(line2, isFirstOrLast, options); 41589 default: 41590 return printCommonLine(line2, isFirstOrLast, options); 41591 } 41592 }).join(` 41593`); 41594} 41595var noColor = (string) => string, DIFF_CONTEXT_DEFAULT = 5, DIFF_TRUNCATE_THRESHOLD_DEFAULT = 0; 41596function getDefaultOptions() { 41597 return { 41598 aAnnotation: "Expected", 41599 aColor: s.green, 41600 aIndicator: "-", 41601 bAnnotation: "Received", 41602 bColor: s.red, 41603 bIndicator: "+", 41604 changeColor: s.inverse, 41605 changeLineTrailingSpaceColor: noColor, 41606 commonColor: s.dim, 41607 commonIndicator: " ", 41608 commonLineTrailingSpaceColor: noColor, 41609 compareKeys: void 0, 41610 contextLines: DIFF_CONTEXT_DEFAULT, 41611 emptyFirstOrLastLinePlaceholder: "", 41612 expand: !1, 41613 includeChangeCounts: !1, 41614 omitAnnotationLines: !1, 41615 patchColor: s.yellow, 41616 printBasicPrototype: !1, 41617 truncateThreshold: DIFF_TRUNCATE_THRESHOLD_DEFAULT, 41618 truncateAnnotation: "... Diff result is truncated", 41619 truncateAnnotationColor: noColor 41620 }; 41621} 41622function getCompareKeys(compareKeys) { 41623 return compareKeys && typeof compareKeys == "function" ? compareKeys : void 0; 41624} 41625function getContextLines(contextLines) { 41626 return typeof contextLines == "number" && Number.isSafeInteger(contextLines) && contextLines >= 0 ? contextLines : DIFF_CONTEXT_DEFAULT; 41627} 41628function normalizeDiffOptions(options = {}) { 41629 return { 41630 ...getDefaultOptions(), 41631 ...options, 41632 compareKeys: getCompareKeys(options.compareKeys), 41633 contextLines: getContextLines(options.contextLines) 41634 }; 41635} 41636function isEmptyString(lines) { 41637 return lines.length === 1 && lines[0].length === 0; 41638} 41639function countChanges(diffs) { 41640 let a3 = 0, b = 0; 41641 return diffs.forEach((diff2) => { 41642 switch (diff2[0]) { 41643 case DIFF_DELETE: 41644 a3 += 1; 41645 break; 41646 case DIFF_INSERT: 41647 b += 1; 41648 break; 41649 } 41650 }), { 41651 a: a3, 41652 b 41653 }; 41654} 41655function printAnnotation({ aAnnotation, aColor, aIndicator, bAnnotation, bColor, bIndicator, includeChangeCounts, omitAnnotationLines }, changeCounts) { 41656 if (omitAnnotationLines) 41657 return ""; 41658 let aRest = "", bRest = ""; 41659 if (includeChangeCounts) { 41660 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)); 41661 aRest = `${aAnnotationPadding} ${aIndicator} ${aCountPadding}${aCount}`, bRest = `${bAnnotationPadding} ${bIndicator} ${bCountPadding}${bCount}`; 41662 } 41663 let a3 = `${aIndicator} ${aAnnotation}${aRest}`, b = `${bIndicator} ${bAnnotation}${bRest}`; 41664 return `${aColor(a3)} 41665${bColor(b)} 41666 41667`; 41668} 41669function printDiffLines(diffs, truncated, options) { 41670 return printAnnotation(options, countChanges(diffs)) + (options.expand ? joinAlignedDiffsExpand(diffs, options) : joinAlignedDiffsNoExpand(diffs, options)) + (truncated ? options.truncateAnnotationColor(` 41671${options.truncateAnnotation}`) : ""); 41672} 41673function diffLinesUnified(aLines, bLines, options) { 41674 let normalizedOptions = normalizeDiffOptions(options), [diffs, truncated] = diffLinesRaw(isEmptyString(aLines) ? [] : aLines, isEmptyString(bLines) ? [] : bLines, normalizedOptions); 41675 return printDiffLines(diffs, truncated, normalizedOptions); 41676} 41677function diffLinesUnified2(aLinesDisplay, bLinesDisplay, aLinesCompare, bLinesCompare, options) { 41678 if (isEmptyString(aLinesDisplay) && isEmptyString(aLinesCompare) && (aLinesDisplay = [], aLinesCompare = []), isEmptyString(bLinesDisplay) && isEmptyString(bLinesCompare) && (bLinesDisplay = [], bLinesCompare = []), aLinesDisplay.length !== aLinesCompare.length || bLinesDisplay.length !== bLinesCompare.length) 41679 return diffLinesUnified(aLinesDisplay, bLinesDisplay, options); 41680 let [diffs, truncated] = diffLinesRaw(aLinesCompare, bLinesCompare, options), aIndex = 0, bIndex = 0; 41681 return diffs.forEach((diff2) => { 41682 switch (diff2[0]) { 41683 case DIFF_DELETE: 41684 diff2[1] = aLinesDisplay[aIndex], aIndex += 1; 41685 break; 41686 case DIFF_INSERT: 41687 diff2[1] = bLinesDisplay[bIndex], bIndex += 1; 41688 break; 41689 default: 41690 diff2[1] = bLinesDisplay[bIndex], aIndex += 1, bIndex += 1; 41691 } 41692 }), printDiffLines(diffs, truncated, normalizeDiffOptions(options)); 41693} 41694function diffLinesRaw(aLines, bLines, options) { 41695 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; 41696 for (diffSequences(aLength, bLength, isCommon, (nCommon, aCommon, bCommon) => { 41697 for (; aIndex !== aCommon; aIndex += 1) 41698 diffs.push(new Diff(DIFF_DELETE, aLines[aIndex])); 41699 for (; bIndex !== bCommon; bIndex += 1) 41700 diffs.push(new Diff(DIFF_INSERT, bLines[bIndex])); 41701 for (; nCommon !== 0; nCommon -= 1, aIndex += 1, bIndex += 1) 41702 diffs.push(new Diff(DIFF_EQUAL, bLines[bIndex])); 41703 }); aIndex !== aLength; aIndex += 1) 41704 diffs.push(new Diff(DIFF_DELETE, aLines[aIndex])); 41705 for (; bIndex !== bLength; bIndex += 1) 41706 diffs.push(new Diff(DIFF_INSERT, bLines[bIndex])); 41707 return [diffs, truncated]; 41708} 41709function getType3(value) { 41710 if (value === void 0) 41711 return "undefined"; 41712 if (value === null) 41713 return "null"; 41714 if (Array.isArray(value)) 41715 return "array"; 41716 if (typeof value == "boolean") 41717 return "boolean"; 41718 if (typeof value == "function") 41719 return "function"; 41720 if (typeof value == "number") 41721 return "number"; 41722 if (typeof value == "string") 41723 return "string"; 41724 if (typeof value == "bigint") 41725 return "bigint"; 41726 if (typeof value == "object") { 41727 if (value != null) { 41728 if (value.constructor === RegExp) 41729 return "regexp"; 41730 if (value.constructor === Map) 41731 return "map"; 41732 if (value.constructor === Set) 41733 return "set"; 41734 if (value.constructor === Date) 41735 return "date"; 41736 } 41737 return "object"; 41738 } else if (typeof value == "symbol") 41739 return "symbol"; 41740 throw new Error(`value of unknown type: ${value}`); 41741} 41742function getNewLineSymbol(string) { 41743 return string.includes(`\r 41744`) ? `\r 41745` : ` 41746`; 41747} 41748function diffStrings(a3, b, options) { 41749 let truncate3 = options?.truncateThreshold ?? !1, truncateThreshold = Math.max(Math.floor(options?.truncateThreshold ?? 0), 0), aLength = a3.length, bLength = b.length; 41750 if (truncate3) { 41751 let aMultipleLines = a3.includes(` 41752`), bMultipleLines = b.includes(` 41753`), aNewLineSymbol = getNewLineSymbol(a3), bNewLineSymbol = getNewLineSymbol(b), _a4 = aMultipleLines ? `${a3.split(aNewLineSymbol, truncateThreshold).join(aNewLineSymbol)} 41754` : a3, _b = bMultipleLines ? `${b.split(bNewLineSymbol, truncateThreshold).join(bNewLineSymbol)} 41755` : b; 41756 aLength = _a4.length, bLength = _b.length; 41757 } 41758 let truncated = aLength !== a3.length || bLength !== b.length, isCommon = (aIndex2, bIndex2) => a3[aIndex2] === b[bIndex2], aIndex = 0, bIndex = 0, diffs = []; 41759 return diffSequences(aLength, bLength, isCommon, (nCommon, aCommon, bCommon) => { 41760 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))); 41761 }), aIndex !== aLength && diffs.push(new Diff(DIFF_DELETE, a3.slice(aIndex))), bIndex !== bLength && diffs.push(new Diff(DIFF_INSERT, b.slice(bIndex))), [diffs, truncated]; 41762} 41763function concatenateRelevantDiffs(op, diffs, changeColor) { 41764 return diffs.reduce((reduced, diff2) => reduced + (diff2[0] === DIFF_EQUAL ? diff2[1] : diff2[0] === op && diff2[1].length !== 0 ? changeColor(diff2[1]) : ""), ""); 41765} 41766var ChangeBuffer = class { 41767 op; 41768 line; 41769 lines; 41770 changeColor; 41771 constructor(op, changeColor) { 41772 this.op = op, this.line = [], this.lines = [], this.changeColor = changeColor; 41773 } 41774 pushSubstring(substring) { 41775 this.pushDiff(new Diff(this.op, substring)); 41776 } 41777 pushLine() { 41778 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; 41779 } 41780 isLineEmpty() { 41781 return this.line.length === 0; 41782 } 41783 // Minor input to buffer. 41784 pushDiff(diff2) { 41785 this.line.push(diff2); 41786 } 41787 // Main input to buffer. 41788 align(diff2) { 41789 let string = diff2[1]; 41790 if (string.includes(` 41791`)) { 41792 let substrings = string.split(` 41793`), iLast = substrings.length - 1; 41794 substrings.forEach((substring, i) => { 41795 i < iLast ? (this.pushSubstring(substring), this.pushLine()) : substring.length !== 0 && this.pushSubstring(substring); 41796 }); 41797 } else 41798 this.pushDiff(diff2); 41799 } 41800 // Output from buffer. 41801 moveLinesTo(lines) { 41802 this.isLineEmpty() || this.pushLine(), lines.push(...this.lines), this.lines.length = 0; 41803 } 41804}, CommonBuffer = class { 41805 deleteBuffer; 41806 insertBuffer; 41807 lines; 41808 constructor(deleteBuffer, insertBuffer) { 41809 this.deleteBuffer = deleteBuffer, this.insertBuffer = insertBuffer, this.lines = []; 41810 } 41811 pushDiffCommonLine(diff2) { 41812 this.lines.push(diff2); 41813 } 41814 pushDiffChangeLines(diff2) { 41815 let isDiffEmpty = diff2[1].length === 0; 41816 (!isDiffEmpty || this.deleteBuffer.isLineEmpty()) && this.deleteBuffer.pushDiff(diff2), (!isDiffEmpty || this.insertBuffer.isLineEmpty()) && this.insertBuffer.pushDiff(diff2); 41817 } 41818 flushChangeLines() { 41819 this.deleteBuffer.moveLinesTo(this.lines), this.insertBuffer.moveLinesTo(this.lines); 41820 } 41821 // Input to buffer. 41822 align(diff2) { 41823 let op = diff2[0], string = diff2[1]; 41824 if (string.includes(` 41825`)) { 41826 let substrings = string.split(` 41827`), iLast = substrings.length - 1; 41828 substrings.forEach((substring, i) => { 41829 if (i === 0) { 41830 let subdiff = new Diff(op, substring); 41831 this.deleteBuffer.isLineEmpty() && this.insertBuffer.isLineEmpty() ? (this.flushChangeLines(), this.pushDiffCommonLine(subdiff)) : (this.pushDiffChangeLines(subdiff), this.flushChangeLines()); 41832 } else i < iLast ? this.pushDiffCommonLine(new Diff(op, substring)) : substring.length !== 0 && this.pushDiffChangeLines(new Diff(op, substring)); 41833 }); 41834 } else 41835 this.pushDiffChangeLines(diff2); 41836 } 41837 // Output from buffer. 41838 getLines() { 41839 return this.flushChangeLines(), this.lines; 41840 } 41841}; 41842function getAlignedDiffs(diffs, changeColor) { 41843 let deleteBuffer = new ChangeBuffer(DIFF_DELETE, changeColor), insertBuffer = new ChangeBuffer(DIFF_INSERT, changeColor), commonBuffer = new CommonBuffer(deleteBuffer, insertBuffer); 41844 return diffs.forEach((diff2) => { 41845 switch (diff2[0]) { 41846 case DIFF_DELETE: 41847 deleteBuffer.align(diff2); 41848 break; 41849 case DIFF_INSERT: 41850 insertBuffer.align(diff2); 41851 break; 41852 default: 41853 commonBuffer.align(diff2); 41854 } 41855 }), commonBuffer.getLines(); 41856} 41857function hasCommonDiff(diffs, isMultiline) { 41858 if (isMultiline) { 41859 let iLast = diffs.length - 1; 41860 return diffs.some((diff2, i) => diff2[0] === DIFF_EQUAL && (i !== iLast || diff2[1] !== ` 41861`)); 41862 } 41863 return diffs.some((diff2) => diff2[0] === DIFF_EQUAL); 41864} 41865function diffStringsUnified(a3, b, options) { 41866 if (a3 !== b && a3.length !== 0 && b.length !== 0) { 41867 let isMultiline = a3.includes(` 41868`) || b.includes(` 41869`), [diffs, truncated] = diffStringsRaw(isMultiline ? `${a3} 41870` : a3, isMultiline ? `${b} 41871` : b, !0, options); 41872 if (hasCommonDiff(diffs, isMultiline)) { 41873 let optionsNormalized = normalizeDiffOptions(options), lines = getAlignedDiffs(diffs, optionsNormalized.changeColor); 41874 return printDiffLines(lines, truncated, optionsNormalized); 41875 } 41876 } 41877 return diffLinesUnified(a3.split(` 41878`), b.split(` 41879`), options); 41880} 41881function diffStringsRaw(a3, b, cleanup, options) { 41882 let [diffs, truncated] = diffStrings(a3, b, options); 41883 return cleanup && diff_cleanupSemantic(diffs), [diffs, truncated]; 41884} 41885function getCommonMessage(message, options) { 41886 let { commonColor } = normalizeDiffOptions(options); 41887 return commonColor(message); 41888} 41889var { AsymmetricMatcher: AsymmetricMatcher2, DOMCollection: DOMCollection2, DOMElement: DOMElement2, Immutable: Immutable2, ReactElement: ReactElement2, ReactTestComponent: ReactTestComponent2 } = plugins, PLUGINS2 = [ 41890 ReactTestComponent2, 41891 ReactElement2, 41892 DOMElement2, 41893 DOMCollection2, 41894 Immutable2, 41895 AsymmetricMatcher2, 41896 plugins.Error 41897], FORMAT_OPTIONS = { 41898 maxDepth: 20, 41899 plugins: PLUGINS2 41900}, FALLBACK_FORMAT_OPTIONS = { 41901 callToJSON: !1, 41902 maxDepth: 8, 41903 plugins: PLUGINS2 41904}; 41905function diff(a3, b, options) { 41906 if (Object.is(a3, b)) 41907 return ""; 41908 let aType = getType3(a3), expectedType = aType, omitDifference = !1; 41909 if (aType === "object" && typeof a3.asymmetricMatch == "function") { 41910 if (a3.$$typeof !== Symbol.for("jest.asymmetricMatcher") || typeof a3.getExpectedType != "function") 41911 return; 41912 expectedType = a3.getExpectedType(), omitDifference = expectedType === "string"; 41913 } 41914 if (expectedType !== getType3(b)) { 41915 let truncate3 = function(s3) { 41916 return s3.length <= MAX_LENGTH ? s3 : `${s3.slice(0, MAX_LENGTH)}...`; 41917 }, { 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; 41918 aDisplay = truncate3(aDisplay), bDisplay = truncate3(bDisplay); 41919 let aDiff = `${aColor(`${aIndicator} ${aAnnotation}:`)} 41920${aDisplay}`, bDiff = `${bColor(`${bIndicator} ${bAnnotation}:`)} 41921${bDisplay}`; 41922 return `${aDiff} 41923 41924${bDiff}`; 41925 } 41926 if (!omitDifference) 41927 switch (aType) { 41928 case "string": 41929 return diffLinesUnified(a3.split(` 41930`), b.split(` 41931`), options); 41932 case "boolean": 41933 case "number": 41934 return comparePrimitive(a3, b, options); 41935 case "map": 41936 return compareObjects(sortMap(a3), sortMap(b), options); 41937 case "set": 41938 return compareObjects(sortSet(a3), sortSet(b), options); 41939 default: 41940 return compareObjects(a3, b, options); 41941 } 41942} 41943function comparePrimitive(a3, b, options) { 41944 let aFormat = format(a3, FORMAT_OPTIONS), bFormat = format(b, FORMAT_OPTIONS); 41945 return aFormat === bFormat ? "" : diffLinesUnified(aFormat.split(` 41946`), bFormat.split(` 41947`), options); 41948} 41949function sortMap(map2) { 41950 return new Map(Array.from(map2.entries()).sort()); 41951} 41952function sortSet(set3) { 41953 return new Set(Array.from(set3.values()).sort()); 41954} 41955function compareObjects(a3, b, options) { 41956 let difference2, hasThrown = !1; 41957 try { 41958 let formatOptions = getFormatOptions(FORMAT_OPTIONS, options); 41959 difference2 = getObjectsDifference(a3, b, formatOptions, options); 41960 } catch { 41961 hasThrown = !0; 41962 } 41963 let noDiffMessage = getCommonMessage(NO_DIFF_MESSAGE, options); 41964 if (difference2 === void 0 || difference2 === noDiffMessage) { 41965 let formatOptions = getFormatOptions(FALLBACK_FORMAT_OPTIONS, options); 41966 difference2 = getObjectsDifference(a3, b, formatOptions, options), difference2 !== noDiffMessage && !hasThrown && (difference2 = `${getCommonMessage(SIMILAR_MESSAGE, options)} 41967 41968${difference2}`); 41969 } 41970 return difference2; 41971} 41972function getFormatOptions(formatOptions, options) { 41973 let { compareKeys, printBasicPrototype, maxDepth } = normalizeDiffOptions(options); 41974 return { 41975 ...formatOptions, 41976 compareKeys, 41977 printBasicPrototype, 41978 maxDepth: maxDepth ?? formatOptions.maxDepth 41979 }; 41980} 41981function getObjectsDifference(a3, b, formatOptions, options) { 41982 let formatOptionsZeroIndent = { 41983 ...formatOptions, 41984 indent: 0 41985 }, aCompare = format(a3, formatOptionsZeroIndent), bCompare = format(b, formatOptionsZeroIndent); 41986 if (aCompare === bCompare) 41987 return getCommonMessage(NO_DIFF_MESSAGE, options); 41988 { 41989 let aDisplay = format(a3, formatOptions), bDisplay = format(b, formatOptions); 41990 return diffLinesUnified2(aDisplay.split(` 41991`), bDisplay.split(` 41992`), aCompare.split(` 41993`), bCompare.split(` 41994`), options); 41995 } 41996} 41997var MAX_DIFF_STRING_LENGTH = 2e4; 41998function isAsymmetricMatcher(data) { 41999 return getType2(data) === "Object" && typeof data.asymmetricMatch == "function"; 42000} 42001function isReplaceable(obj1, obj2) { 42002 let obj1Type = getType2(obj1), obj2Type = getType2(obj2); 42003 return obj1Type === obj2Type && (obj1Type === "Object" || obj1Type === "Array"); 42004} 42005function printDiffOrStringify(received, expected, options) { 42006 let { aAnnotation, bAnnotation } = normalizeDiffOptions(options); 42007 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) { 42008 if (expected.includes(` 42009`) || received.includes(` 42010`)) 42011 return diffStringsUnified(expected, received, options); 42012 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)); 42013 return `${expectedLine} 42014${receivedLine}`; 42015 } 42016 let clonedExpected = deepClone(expected, { forceWritable: !0 }), clonedReceived = deepClone(received, { forceWritable: !0 }), { replacedExpected, replacedActual } = replaceAsymmetricMatcher(clonedReceived, clonedExpected); 42017 return diff(replacedExpected, replacedActual, options); 42018} 42019function replaceAsymmetricMatcher(actual, expected, actualReplaced = /* @__PURE__ */ new WeakSet(), expectedReplaced = /* @__PURE__ */ new WeakSet()) { 42020 return actual instanceof Error && expected instanceof Error && typeof actual.cause < "u" && typeof expected.cause > "u" ? (delete actual.cause, { 42021 replacedActual: actual, 42022 replacedExpected: expected 42023 }) : isReplaceable(actual, expected) ? actualReplaced.has(actual) || expectedReplaced.has(expected) ? { 42024 replacedActual: actual, 42025 replacedExpected: expected 42026 } : (actualReplaced.add(actual), expectedReplaced.add(expected), getOwnProperties(expected).forEach((key) => { 42027 let expectedValue = expected[key], actualValue = actual[key]; 42028 if (isAsymmetricMatcher(expectedValue)) 42029 expectedValue.asymmetricMatch(actualValue) && (actual[key] = expectedValue); 42030 else if (isAsymmetricMatcher(actualValue)) 42031 actualValue.asymmetricMatch(expectedValue) && (expected[key] = actualValue); 42032 else if (isReplaceable(actualValue, expectedValue)) { 42033 let replaced = replaceAsymmetricMatcher(actualValue, expectedValue, actualReplaced, expectedReplaced); 42034 actual[key] = replaced.replacedActual, expected[key] = replaced.replacedExpected; 42035 } 42036 }), { 42037 replacedActual: actual, 42038 replacedExpected: expected 42039 }) : { 42040 replacedActual: actual, 42041 replacedExpected: expected 42042 }; 42043} 42044function getLabelPrinter(...strings) { 42045 let maxLength = strings.reduce((max2, string) => string.length > max2 ? string.length : max2, 0); 42046 return (string) => `${string}: ${" ".repeat(maxLength - string.length)}`; 42047} 42048var SPACE_SYMBOL = "\xB7"; 42049function replaceTrailingSpaces(text) { 42050 return text.replace(/\s+$/gm, (spaces) => SPACE_SYMBOL.repeat(spaces.length)); 42051} 42052function printReceived(object) { 42053 return s.red(replaceTrailingSpaces(stringify5(object))); 42054} 42055function printExpected(value) { 42056 return s.green(replaceTrailingSpaces(stringify5(value))); 42057} 42058function getCommonAndChangedSubstrings(diffs, op, hasCommonDiff2) { 42059 return diffs.reduce((reduced, diff2) => reduced + (diff2[0] === DIFF_EQUAL ? diff2[1] : diff2[0] === op ? hasCommonDiff2 ? s.inverse(diff2[1]) : diff2[1] : ""), ""); 42060} 42061
vendor: 4,114 bytes, lines 42062-42157
42062// ../../node_modules/@vitest/utils/dist/error.js 42063var IS_RECORD_SYMBOL = "@@__IMMUTABLE_RECORD__@@", IS_COLLECTION_SYMBOL = "@@__IMMUTABLE_ITERABLE__@@"; 42064function isImmutable(v) { 42065 return v && (v[IS_COLLECTION_SYMBOL] || v[IS_RECORD_SYMBOL]); 42066} 42067var OBJECT_PROTO = Object.getPrototypeOf({}); 42068function getUnserializableMessage(err) { 42069 return err instanceof Error ? `<unserializable>: ${err.message}` : typeof err == "string" ? `<unserializable>: ${err}` : "<unserializable>"; 42070} 42071function serializeValue(val, seen = /* @__PURE__ */ new WeakMap()) { 42072 if (!val || typeof val == "string") 42073 return val; 42074 if (val instanceof Error && "toJSON" in val && typeof val.toJSON == "function") { 42075 let jsonValue = val.toJSON(); 42076 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); 42077 } 42078 if (typeof val == "function") 42079 return `Function<${val.name || "anonymous"}>`; 42080 if (typeof val == "symbol") 42081 return val.toString(); 42082 if (typeof val != "object") 42083 return val; 42084 if (typeof Buffer < "u" && val instanceof Buffer) 42085 return `<Buffer(${val.length}) ...>`; 42086 if (typeof Uint8Array < "u" && val instanceof Uint8Array) 42087 return `<Uint8Array(${val.length}) ...>`; 42088 if (isImmutable(val)) 42089 return serializeValue(val.toJSON(), seen); 42090 if (val instanceof Promise || val.constructor && val.constructor.prototype === "AsyncFunction") 42091 return "Promise"; 42092 if (typeof Element < "u" && val instanceof Element) 42093 return val.tagName; 42094 if (typeof val.asymmetricMatch == "function") 42095 return `${val.toString()} ${format2(val.sample)}`; 42096 if (typeof val.toJSON == "function") 42097 return serializeValue(val.toJSON(), seen); 42098 if (seen.has(val)) 42099 return seen.get(val); 42100 if (Array.isArray(val)) { 42101 let clone3 = new Array(val.length); 42102 return seen.set(val, clone3), val.forEach((e, i) => { 42103 try { 42104 clone3[i] = serializeValue(e, seen); 42105 } catch (err) { 42106 clone3[i] = getUnserializableMessage(err); 42107 } 42108 }), clone3; 42109 } else { 42110 let clone3 = /* @__PURE__ */ Object.create(null); 42111 seen.set(val, clone3); 42112 let obj = val; 42113 for (; obj && obj !== OBJECT_PROTO; ) 42114 Object.getOwnPropertyNames(obj).forEach((key) => { 42115 if (!(key in clone3)) 42116 try { 42117 clone3[key] = serializeValue(val[key], seen); 42118 } catch (err) { 42119 delete clone3[key], clone3[key] = getUnserializableMessage(err); 42120 } 42121 }), obj = Object.getPrototypeOf(obj); 42122 return clone3; 42123 } 42124} 42125function safe(fn4) { 42126 try { 42127 return fn4(); 42128 } catch { 42129 } 42130} 42131function normalizeErrorMessage(message) { 42132 return message.replace(/__(vite_ssr_import|vi_import)_\d+__\./g, ""); 42133} 42134function processError(_err, diffOptions, seen = /* @__PURE__ */ new WeakSet()) { 42135 if (!_err || typeof _err != "object") 42136 return { message: String(_err) }; 42137 let err = _err; 42138 (err.showDiff || err.showDiff === void 0 && err.expected !== void 0 && err.actual !== void 0) && (err.diff = printDiffOrStringify(err.actual, err.expected, { 42139 ...diffOptions, 42140 ...err.diffOptions 42141 })), "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)); 42142 try { 42143 typeof err.message == "string" && (err.message = normalizeErrorMessage(err.message)); 42144 } catch { 42145 } 42146 try { 42147 !seen.has(err) && typeof err.cause == "object" && (seen.add(err), err.cause = processError(err.cause, diffOptions, seen)); 42148 } catch { 42149 } 42150 try { 42151 return serializeValue(err); 42152 } catch (e) { 42153 return serializeValue(new Error(`Failed to fully serialize error: ${e?.message} 42154Inner error message: ${err?.message}`)); 42155 } 42156} 42157
vendor: 321 bytes, lines 42158-42168
42158// src/instrumenter/EVENTS.ts 42159var EVENTS = { 42160 CALL: "storybook/instrumenter/call", 42161 SYNC: "storybook/instrumenter/sync", 42162 START: "storybook/instrumenter/start", 42163 BACK: "storybook/instrumenter/back", 42164 GOTO: "storybook/instrumenter/goto", 42165 NEXT: "storybook/instrumenter/next", 42166 END: "storybook/instrumenter/end" 42167}; 42168
vendor: 272 bytes, lines 42169-42175
42169// src/instrumenter/preview-api.ts 42170var addons3 = globalThis.__STORYBOOK_ADDONS_PREVIEW; 42171 42172// src/instrumenter/instrumenter.ts 42173var alreadyCompletedException = new Error( 42174 "This function ran after the play function completed. Did you forget to `await` it?" 42175), isObject6 = (o
vendor: 18,483 bytes, lines 42175-42553
42175) => Object.prototype.toString.call(o) === "[object Object]", isModule = (o) => Object.prototype.toString.call(o) === "[object Module]", isInstrumentable = (o) => { 42176 if (!isObject6(o) && !isModule(o)) 42177 return !1; 42178 if (o.constructor === void 0) 42179 return !0; 42180 let proto = o.constructor.prototype; 42181 return !!isObject6(proto); 42182}, construct = (obj) => { 42183 try { 42184 return new obj.constructor(); 42185 } catch { 42186 return {}; 42187 } 42188}, getInitialState = () => ({ 42189 renderPhase: "preparing", 42190 isDebugging: !1, 42191 isPlaying: !1, 42192 isLocked: !1, 42193 cursor: 0, 42194 calls: [], 42195 shadowCalls: [], 42196 callRefsByResult: /* @__PURE__ */ new Map(), 42197 chainedCallIds: /* @__PURE__ */ new Set(), 42198 ancestors: [], 42199 playUntil: void 0, 42200 resolvers: {}, 42201 syncTimeout: void 0 42202}), getRetainedState = (state3, isDebugging = !1) => { 42203 let calls = (isDebugging ? state3.shadowCalls : state3.calls).filter((call2) => call2.retain); 42204 if (!calls.length) 42205 return; 42206 let callRefsByResult = new Map( 42207 Array.from(state3.callRefsByResult.entries()).filter(([, ref]) => ref.retain) 42208 ); 42209 return { cursor: calls.length, calls, callRefsByResult }; 42210}, Instrumenter = class { 42211 constructor() { 42212 this.detached = !1; 42213 this.initialized = !1; 42214 // State is tracked per story to deal with multiple stories on the same canvas (i.e. docs mode) 42215 this.state = {}; 42216 this.loadParentWindowState = () => { 42217 try { 42218 this.state = scope.window?.parent?.__STORYBOOK_ADDON_INTERACTIONS_INSTRUMENTER_STATE__ || {}; 42219 } catch { 42220 this.detached = !0; 42221 } 42222 }; 42223 this.updateParentWindowState = () => { 42224 try { 42225 scope.window.parent.__STORYBOOK_ADDON_INTERACTIONS_INSTRUMENTER_STATE__ = this.state; 42226 } catch { 42227 this.detached = !0; 42228 } 42229 }; 42230 this.loadParentWindowState(); 42231 let resetState = ({ 42232 storyId, 42233 renderPhase, 42234 isPlaying = !0, 42235 isDebugging = !1 42236 }) => { 42237 let state3 = this.getState(storyId); 42238 this.setState(storyId, { 42239 ...getInitialState(), 42240 ...getRetainedState(state3, isDebugging), 42241 renderPhase: renderPhase || state3.renderPhase, 42242 shadowCalls: isDebugging ? state3.shadowCalls : [], 42243 chainedCallIds: isDebugging ? state3.chainedCallIds : /* @__PURE__ */ new Set(), 42244 playUntil: isDebugging ? state3.playUntil : void 0, 42245 isPlaying, 42246 isDebugging 42247 }), this.sync(storyId); 42248 }, start2 = (channel) => ({ storyId, playUntil }) => { 42249 this.getState(storyId).isDebugging || this.setState(storyId, ({ calls }) => ({ 42250 calls: [], 42251 shadowCalls: calls.map((call2) => ({ ...call2, status: "waiting" /* WAITING */ })), 42252 isDebugging: !0 42253 })); 42254 let log = this.getLog(storyId); 42255 this.setState(storyId, ({ shadowCalls }) => { 42256 if (playUntil || !log.length) 42257 return { playUntil }; 42258 let firstRowIndex = shadowCalls.findIndex((call2) => call2.id === log[0].callId); 42259 return { 42260 playUntil: shadowCalls.slice(0, firstRowIndex).filter((call2) => call2.interceptable && !call2.ancestors?.length).slice(-1)[0]?.id 42261 }; 42262 }), channel.emit(FORCE_REMOUNT, { storyId, isDebugging: !0 }); 42263 }, back = (channel) => ({ storyId }) => { 42264 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); 42265 start2(channel)({ storyId, playUntil: log[last2 - 1]?.callId }); 42266 }, goto = (channel) => ({ storyId, callId }) => { 42267 let { calls, shadowCalls, resolvers } = this.getState(storyId), call2 = calls.find(({ id }) => id === callId), shadowCall = shadowCalls.find(({ id }) => id === callId); 42268 if (!call2 && shadowCall && Object.values(resolvers).length > 0) { 42269 let nextId = this.getLog(storyId).find((c) => c.status === "waiting" /* WAITING */)?.callId; 42270 shadowCall.id !== nextId && this.setState(storyId, { playUntil: shadowCall.id }), Object.values(resolvers).forEach((resolve) => resolve()); 42271 } else 42272 start2(channel)({ storyId, playUntil: callId }); 42273 }, next2 = (channel) => ({ storyId }) => { 42274 let { resolvers } = this.getState(storyId); 42275 if (Object.values(resolvers).length > 0) 42276 Object.values(resolvers).forEach((resolve) => resolve()); 42277 else { 42278 let nextId = this.getLog(storyId).find((c) => c.status === "waiting" /* WAITING */)?.callId; 42279 nextId ? start2(channel)({ storyId, playUntil: nextId }) : end2({ storyId }); 42280 } 42281 }, end2 = ({ storyId }) => { 42282 this.setState(storyId, { playUntil: void 0, isDebugging: !1 }), Object.values(this.getState(storyId).resolvers).forEach((resolve) => resolve()); 42283 }, renderPhaseChanged = ({ 42284 storyId, 42285 newPhase 42286 }) => { 42287 let { isDebugging } = this.getState(storyId); 42288 if (newPhase === "preparing" && isDebugging) 42289 return resetState({ storyId, renderPhase: newPhase, isDebugging }); 42290 if (newPhase === "playing") 42291 return resetState({ storyId, renderPhase: newPhase, isDebugging }); 42292 newPhase === "played" ? this.setState(storyId, { 42293 renderPhase: newPhase, 42294 isLocked: !1, 42295 isPlaying: !1, 42296 isDebugging: !1 42297 }) : newPhase === "errored" ? this.setState(storyId, { 42298 renderPhase: newPhase, 42299 isLocked: !1, 42300 isPlaying: !1 42301 }) : newPhase === "aborted" ? this.setState(storyId, { 42302 renderPhase: newPhase, 42303 isLocked: !0, 42304 isPlaying: !1 42305 }) : this.setState(storyId, { 42306 renderPhase: newPhase 42307 }), this.sync(storyId); 42308 }; 42309 addons3 && addons3.ready().then(() => { 42310 this.channel = addons3.getChannel(), this.channel.on(FORCE_REMOUNT, resetState), this.channel.on(STORY_RENDER_PHASE_CHANGED, renderPhaseChanged), this.channel.on(SET_CURRENT_STORY, () => { 42311 this.initialized ? this.cleanup() : this.initialized = !0; 42312 }), 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); 42313 }); 42314 } 42315 getState(storyId) { 42316 return this.state[storyId] || getInitialState(); 42317 } 42318 setState(storyId, update2) { 42319 if (storyId) { 42320 let state3 = this.getState(storyId), patch = typeof update2 == "function" ? update2(state3) : update2; 42321 this.state = { ...this.state, [storyId]: { ...state3, ...patch } }, this.updateParentWindowState(); 42322 } 42323 } 42324 cleanup() { 42325 this.state = Object.entries(this.state).reduce( 42326 (acc, [storyId, state3]) => { 42327 let retainedState = getRetainedState(state3); 42328 return retainedState && (acc[storyId] = Object.assign(getInitialState(), retainedState)), acc; 42329 }, 42330 {} 42331 ); 42332 let payload = { controlStates: { 42333 detached: this.detached, 42334 start: !1, 42335 back: !1, 42336 goto: !1, 42337 next: !1, 42338 end: !1 42339 }, logItems: [] }; 42340 this.channel?.emit(EVENTS.SYNC, payload), this.updateParentWindowState(); 42341 } 42342 getLog(storyId) { 42343 let { calls, shadowCalls } = this.getState(storyId), merged = [...shadowCalls]; 42344 calls.forEach((call2, index4) => { 42345 merged[index4] = call2; 42346 }); 42347 let seen = /* @__PURE__ */ new Set(); 42348 return merged.reduceRight((acc, call2) => (call2.args.forEach((arg) => { 42349 arg?.__callId__ && seen.add(arg.__callId__); 42350 }), call2.path.forEach((node2) => { 42351 node2.__callId__ && seen.add(node2.__callId__); 42352 }), (call2.interceptable || call2.exception) && !seen.has(call2.id) && (acc.unshift({ callId: call2.id, status: call2.status, ancestors: call2.ancestors }), seen.add(call2.id)), acc), []); 42353 } 42354 // Traverses the object structure to recursively patch all function properties. 42355 // Returns the original object, or a new object with the same constructor, 42356 // depending on whether it should mutate. 42357 instrument(obj, options, depth = 0) { 42358 if (!isInstrumentable(obj)) 42359 return obj; 42360 let { mutate = !1, path = [] } = options, keys3 = options.getKeys ? options.getKeys(obj, depth) : Object.keys(obj); 42361 return depth += 1, keys3.reduce( 42362 (acc, key) => { 42363 let descriptor = getPropertyDescriptor(obj, key); 42364 if (typeof descriptor?.get == "function") { 42365 if (descriptor.configurable) { 42366 let getter = () => descriptor?.get?.bind(obj)?.(); 42367 Object.defineProperty(acc, key, { 42368 get: () => this.instrument(getter(), { ...options, path: path.concat(key) }, depth) 42369 }); 42370 } 42371 return acc; 42372 } 42373 let value = obj[key]; 42374 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( 42375 acc[key], 42376 this.instrument({ ...value }, { ...options, path: path.concat(key) }, depth) 42377 ), acc); 42378 }, 42379 mutate ? obj : construct(obj) 42380 ); 42381 } 42382 // Monkey patch an object method to record calls. 42383 // Returns a function that invokes the original function, records the invocation ("call") and 42384 // returns the original result. 42385 track(method, fn4, object, args, options) { 42386 let storyId = args?.[0]?.__storyId__ || scope.__STORYBOOK_PREVIEW__?.selectionStore?.selection?.storyId, { cursor: cursor2, ancestors } = this.getState(storyId); 42387 this.setState(storyId, { cursor: cursor2 + 1 }); 42388 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); 42389 return this.instrument(result, { ...options, mutate: !0, path: [{ __callId__: call2.id }] }); 42390 } 42391 intercept(fn4, object, call2, options) { 42392 let { chainedCallIds, isDebugging, playUntil } = this.getState(call2.storyId), isChainedUpon = chainedCallIds.has(call2.id); 42393 return !isDebugging || isChainedUpon || playUntil ? (playUntil === call2.id && this.setState(call2.storyId, { playUntil: void 0 }), this.invoke(fn4, object, call2, options)) : new Promise((resolve) => { 42394 this.setState(call2.storyId, ({ resolvers }) => ({ 42395 isLocked: !1, 42396 resolvers: { ...resolvers, [call2.id]: resolve } 42397 })); 42398 }).then(() => (this.setState(call2.storyId, (state3) => { 42399 let { [call2.id]: _, ...resolvers } = state3.resolvers; 42400 return { isLocked: !0, resolvers }; 42401 }), this.invoke(fn4, object, call2, options))); 42402 } 42403 invoke(fn4, object, call2, options) { 42404 let { callRefsByResult, renderPhase } = this.getState(call2.storyId), maximumDepth = 25, serializeValues = (value, depth, seen) => { 42405 if (seen.includes(value)) 42406 return "[Circular]"; 42407 if (seen = [...seen, value], depth > maximumDepth) 42408 return "..."; 42409 if (callRefsByResult.has(value)) 42410 return callRefsByResult.get(value); 42411 if (value instanceof Array) 42412 return value.map((it) => serializeValues(it, ++depth, seen)); 42413 if (value instanceof Date) 42414 return { __date__: { value: value.toISOString() } }; 42415 if (value instanceof Error) { 42416 let { name, message, stack } = value; 42417 return { __error__: { name, message, stack } }; 42418 } 42419 if (value instanceof RegExp) { 42420 let { flags, source } = value; 42421 return { __regexp__: { flags, source } }; 42422 } 42423 if (value instanceof scope.window?.HTMLElement) { 42424 let { prefix: prefix4, localName, id, classList, innerText } = value, classNames = Array.from(classList); 42425 return { __element__: { prefix: prefix4, localName, id, classNames, innerText } }; 42426 } 42427 return typeof value == "function" ? { 42428 __function__: { name: "getMockName" in value ? value.getMockName() : value.name } 42429 } : 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( 42430 Object.entries(value).map(([key, val]) => [key, serializeValues(val, ++depth, seen)]) 42431 ) : value; 42432 }, info = { 42433 ...call2, 42434 args: call2.args.map((arg) => serializeValues(arg, 0, [])) 42435 }; 42436 call2.path.forEach((ref) => { 42437 ref?.__callId__ && this.setState(call2.storyId, ({ chainedCallIds }) => ({ 42438 chainedCallIds: new Set(Array.from(chainedCallIds).concat(ref.__callId__)) 42439 })); 42440 }); 42441 let handleException = (e) => { 42442 if (e instanceof Error) { 42443 let { name, message, stack, callId = call2.id } = e, { 42444 showDiff = void 0, 42445 diff: diff2 = void 0, 42446 actual = void 0, 42447 expected = void 0 42448 } = e.name === "AssertionError" ? processError(e) : e, exception = { name, message, stack, callId, showDiff, diff: diff2, actual, expected }; 42449 if (this.update({ ...info, status: "error" /* ERROR */, exception }), this.setState(call2.storyId, (state3) => ({ 42450 callRefsByResult: new Map([ 42451 ...Array.from(state3.callRefsByResult.entries()), 42452 [e, { __callId__: call2.id, retain: call2.retain }] 42453 ]) 42454 })), call2.ancestors?.length) 42455 throw Object.prototype.hasOwnProperty.call(e, "callId") || Object.defineProperty(e, "callId", { value: call2.id }), e; 42456 } 42457 throw e; 42458 }; 42459 try { 42460 if (renderPhase === "played" && !call2.retain) 42461 throw alreadyCompletedException; 42462 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) => { 42463 let { cursor: cursor2, ancestors } = this.getState(call2.storyId); 42464 this.setState(call2.storyId, { cursor: 0, ancestors: [...ancestors, call2.id] }); 42465 let restore = () => this.setState(call2.storyId, { cursor: cursor2, ancestors }), willRestore = !1; 42466 try { 42467 let res = arg(...args); 42468 return res instanceof Promise ? (willRestore = !0, res.finally(restore)) : res; 42469 } finally { 42470 willRestore || restore(); 42471 } 42472 }), result = fn4.apply(object, finalArgs); 42473 return result && ["object", "function", "symbol"].includes(typeof result) && this.setState(call2.storyId, (state3) => ({ 42474 callRefsByResult: new Map([ 42475 ...Array.from(state3.callRefsByResult.entries()), 42476 [result, { __callId__: call2.id, retain: call2.retain }] 42477 ]) 42478 })), this.update({ 42479 ...info, 42480 status: result instanceof Promise ? "active" /* ACTIVE */ : "done" /* DONE */ 42481 }), result instanceof Promise ? result.then((value) => (this.update({ ...info, status: "done" /* DONE */ }), value), handleException) : result; 42482 } catch (e) { 42483 return handleException(e); 42484 } 42485 } 42486 // Sends the call info to the manager and synchronizes the log. 42487 update(call2) { 42488 this.channel?.emit(EVENTS.CALL, call2), this.setState(call2.storyId, ({ calls }) => { 42489 let callsById = calls.concat(call2).reduce((a3, c) => Object.assign(a3, { [c.id]: c }), {}); 42490 return { 42491 // Calls are sorted to ensure parent calls always come before calls in their callback. 42492 calls: Object.values(callsById).sort( 42493 (a3, b) => a3.id.localeCompare(b.id, void 0, { numeric: !0 }) 42494 ) 42495 }; 42496 }), this.sync(call2.storyId); 42497 } 42498 // Builds a log of interceptable calls and control states and sends it to the manager. 42499 // Uses a 0ms debounce because this might get called many times in one tick. 42500 sync(storyId) { 42501 let synchronize = () => { 42502 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 */); 42503 if (this.detached || isLocked || hasActive || logItems.length === 0) { 42504 let payload2 = { controlStates: { 42505 detached: this.detached, 42506 start: !1, 42507 back: !1, 42508 goto: !1, 42509 next: !1, 42510 end: !1 42511 }, logItems }; 42512 this.channel?.emit(EVENTS.SYNC, payload2); 42513 return; 42514 } 42515 let hasPrevious = logItems.some( 42516 (item) => item.status === "done" /* DONE */ || item.status === "error" /* ERROR */ 42517 ), payload = { controlStates: { 42518 detached: this.detached, 42519 start: hasPrevious, 42520 back: hasPrevious, 42521 goto: !0, 42522 next: isPlaying, 42523 end: isPlaying 42524 }, logItems, pausedAt }; 42525 this.channel?.emit(EVENTS.SYNC, payload); 42526 }; 42527 this.setState(storyId, ({ syncTimeout }) => (clearTimeout(syncTimeout), { syncTimeout: setTimeout(synchronize, 0) })); 42528 } 42529}; 42530function instrument(obj, options = {}) { 42531 try { 42532 let forceInstrument = !1, skipInstrument = !1; 42533 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)); 42534 } catch (e) { 42535 return once.warn(e), obj; 42536 } 42537} 42538function getPropertyDescriptor(obj, propName) { 42539 let target = obj; 42540 for (; target != null; ) { 42541 let descriptor = Object.getOwnPropertyDescriptor(target, propName); 42542 if (descriptor) 42543 return descriptor; 42544 target = Object.getPrototypeOf(target); 42545 } 42546} 42547function isClass(obj) { 42548 if (typeof obj != "function") 42549 return !1; 42550 let descriptor = Object.getOwnPropertyDescriptor(obj, "prototype"); 42551 return descriptor ? !descriptor.writable : !1; 42552} 42553
vendor: 125,873 bytes, lines 42554-45658
42554// ../../node_modules/chai/index.js 42555var __defProp3 = Object.defineProperty, __name = (target, value) => __defProp3(target, "name", { value, configurable: !0 }), __export2 = (target, all) => { 42556 for (var name in all) 42557 __defProp3(target, name, { get: all[name], enumerable: !0 }); 42558}, utils_exports = {}; 42559__export2(utils_exports, { 42560 addChainableMethod: () => addChainableMethod, 42561 addLengthGuard: () => addLengthGuard, 42562 addMethod: () => addMethod, 42563 addProperty: () => addProperty, 42564 checkError: () => check_error_exports, 42565 compareByInspect: () => compareByInspect, 42566 eql: () => deep_eql_default, 42567 expectTypes: () => expectTypes, 42568 flag: () => flag, 42569 getActual: () => getActual, 42570 getMessage: () => getMessage2, 42571 getName: () => getName, 42572 getOperator: () => getOperator, 42573 getOwnEnumerableProperties: () => getOwnEnumerableProperties, 42574 getOwnEnumerablePropertySymbols: () => getOwnEnumerablePropertySymbols, 42575 getPathInfo: () => getPathInfo, 42576 hasProperty: () => hasProperty, 42577 inspect: () => inspect22, 42578 isNaN: () => isNaN22, 42579 isNumeric: () => isNumeric, 42580 isProxyEnabled: () => isProxyEnabled, 42581 isRegExp: () => isRegExp22, 42582 objDisplay: () => objDisplay, 42583 overwriteChainableMethod: () => overwriteChainableMethod, 42584 overwriteMethod: () => overwriteMethod, 42585 overwriteProperty: () => overwriteProperty, 42586 proxify: () => proxify, 42587 test: () => test2, 42588 transferFlags: () => transferFlags, 42589 type: () => type 42590}); 42591var check_error_exports = {}; 42592__export2(check_error_exports, { 42593 compatibleConstructor: () => compatibleConstructor, 42594 compatibleInstance: () => compatibleInstance, 42595 compatibleMessage: () => compatibleMessage, 42596 getConstructorName: () => getConstructorName2, 42597 getMessage: () => getMessage 42598}); 42599function isErrorInstance(obj) { 42600 return obj instanceof Error || Object.prototype.toString.call(obj) === "[object Error]"; 42601} 42602__name(isErrorInstance, "isErrorInstance"); 42603function isRegExp2(obj) { 42604 return Object.prototype.toString.call(obj) === "[object RegExp]"; 42605} 42606__name(isRegExp2, "isRegExp"); 42607function compatibleInstance(thrown, errorLike) { 42608 return isErrorInstance(errorLike) && thrown === errorLike; 42609} 42610__name(compatibleInstance, "compatibleInstance"); 42611function compatibleConstructor(thrown, errorLike) { 42612 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; 42613} 42614__name(compatibleConstructor, "compatibleConstructor"); 42615function compatibleMessage(thrown, errMatcher) { 42616 let comparisonString = typeof thrown == "string" ? thrown : thrown.message; 42617 return isRegExp2(errMatcher) ? errMatcher.test(comparisonString) : typeof errMatcher == "string" ? comparisonString.indexOf(errMatcher) !== -1 : !1; 42618} 42619__name(compatibleMessage, "compatibleMessage"); 42620function getConstructorName2(errorLike) { 42621 let constructorName = errorLike; 42622 return isErrorInstance(errorLike) ? constructorName = errorLike.constructor.name : typeof errorLike == "function" && (constructorName = errorLike.name, constructorName === "" && (constructorName = new errorLike().name || constructorName)), constructorName; 42623} 42624__name(getConstructorName2, "getConstructorName"); 42625function getMessage(errorLike) { 42626 let msg = ""; 42627 return errorLike && errorLike.message ? msg = errorLike.message : typeof errorLike == "string" && (msg = errorLike), msg; 42628} 42629__name(getMessage, "getMessage"); 42630function flag(obj, key, value) { 42631 let flags = obj.__flags || (obj.__flags = /* @__PURE__ */ Object.create(null)); 42632 if (arguments.length === 3) 42633 flags[key] = value; 42634 else 42635 return flags[key]; 42636} 42637__name(flag, "flag"); 42638function test2(obj, args) { 42639 let negate = flag(obj, "negate"), expr = args[0]; 42640 return negate ? !expr : expr; 42641} 42642__name(test2, "test"); 42643function type(obj) { 42644 if (typeof obj > "u") 42645 return "undefined"; 42646 if (obj === null) 42647 return "null"; 42648 let stringTag2 = obj[Symbol.toStringTag]; 42649 return typeof stringTag2 == "string" ? stringTag2 : Object.prototype.toString.call(obj).slice(8, -1); 42650} 42651__name(type, "type"); 42652var canElideFrames = "captureStackTrace" in Error, _a, AssertionError = (_a = class extends Error { 42653 message; 42654 get name() { 42655 return "AssertionError"; 42656 } 42657 get ok() { 42658 return !1; 42659 } 42660 constructor(message = "Unspecified AssertionError", props, ssf) { 42661 super(message), this.message = message, canElideFrames && Error.captureStackTrace(this, ssf || _a); 42662 for (let key in props) 42663 key in this || (this[key] = props[key]); 42664 } 42665 toJSON(stack) { 42666 return { 42667 ...this, 42668 name: this.name, 42669 message: this.message, 42670 ok: !1, 42671 stack: stack !== !1 ? this.stack : void 0 42672 }; 42673 } 42674}, __name(_a, "AssertionError"), _a); 42675function expectTypes(obj, types) { 42676 let flagMsg = flag(obj, "message"), ssfi = flag(obj, "ssfi"); 42677 flagMsg = flagMsg ? flagMsg + ": " : "", obj = flag(obj, "object"), types = types.map(function(t) { 42678 return t.toLowerCase(); 42679 }), types.sort(); 42680 let str2 = types.map(function(t, index4) { 42681 let art = ~["a", "e", "i", "o", "u"].indexOf(t.charAt(0)) ? "an" : "a"; 42682 return (types.length > 1 && index4 === types.length - 1 ? "or " : "") + art + " " + t; 42683 }).join(", "), objType = type(obj).toLowerCase(); 42684 if (!types.some(function(expected) { 42685 return objType === expected; 42686 })) 42687 throw new AssertionError( 42688 flagMsg + "object tested must be " + str2 + ", but " + objType + " given", 42689 void 0, 42690 ssfi 42691 ); 42692} 42693__name(expectTypes, "expectTypes"); 42694function getActual(obj, args) { 42695 return args.length > 4 ? args[4] : obj._obj; 42696} 42697__name(getActual, "getActual"); 42698var ansiColors2 = { 42699 bold: ["1", "22"], 42700 dim: ["2", "22"], 42701 italic: ["3", "23"], 42702 underline: ["4", "24"], 42703 // 5 & 6 are blinking 42704 inverse: ["7", "27"], 42705 hidden: ["8", "28"], 42706 strike: ["9", "29"], 42707 // 10-20 are fonts 42708 // 21-29 are resets for 1-9 42709 black: ["30", "39"], 42710 red: ["31", "39"], 42711 green: ["32", "39"], 42712 yellow: ["33", "39"], 42713 blue: ["34", "39"], 42714 magenta: ["35", "39"], 42715 cyan: ["36", "39"], 42716 white: ["37", "39"], 42717 brightblack: ["30;1", "39"], 42718 brightred: ["31;1", "39"], 42719 brightgreen: ["32;1", "39"], 42720 brightyellow: ["33;1", "39"], 42721 brightblue: ["34;1", "39"], 42722 brightmagenta: ["35;1", "39"], 42723 brightcyan: ["36;1", "39"], 42724 brightwhite: ["37;1", "39"], 42725 grey: ["90", "39"] 42726}, styles2 = { 42727 special: "cyan", 42728 number: "yellow", 42729 bigint: "yellow", 42730 boolean: "yellow", 42731 undefined: "grey", 42732 null: "bold", 42733 string: "green", 42734 symbol: "green", 42735 date: "magenta", 42736 regexp: "red" 42737}, truncator2 = "\u2026"; 42738function colorise2(value, styleType) { 42739 let color2 = ansiColors2[styles2[styleType]] || ansiColors2[styleType] || ""; 42740 return color2 ? `\x1B[${color2[0]}m${String(value)}\x1B[${color2[1]}m` : String(value); 42741} 42742__name(colorise2, "colorise"); 42743function normaliseOptions2({ 42744 showHidden = !1, 42745 depth = 2, 42746 colors: colors3 = !1, 42747 customInspect = !0, 42748 showProxy = !1, 42749 maxArrayLength = 1 / 0, 42750 breakLength = 1 / 0, 42751 seen = [], 42752 // eslint-disable-next-line no-shadow 42753 truncate: truncate22 = 1 / 0, 42754 stylize = String 42755} = {}, inspect32) { 42756 let options = { 42757 showHidden: !!showHidden, 42758 depth: Number(depth), 42759 colors: !!colors3, 42760 customInspect: !!customInspect, 42761 showProxy: !!showProxy, 42762 maxArrayLength: Number(maxArrayLength), 42763 breakLength: Number(breakLength), 42764 truncate: Number(truncate22), 42765 seen, 42766 inspect: inspect32, 42767 stylize 42768 }; 42769 return options.colors && (options.stylize = colorise2), options; 42770} 42771__name(normaliseOptions2, "normaliseOptions"); 42772function isHighSurrogate2(char2) { 42773 return char2 >= "\uD800" && char2 <= "\uDBFF"; 42774} 42775__name(isHighSurrogate2, "isHighSurrogate"); 42776function truncate2(string, length2, tail2 = truncator2) { 42777 string = String(string); 42778 let tailLength = tail2.length, stringLength = string.length; 42779 if (tailLength > length2 && stringLength > tailLength) 42780 return tail2; 42781 if (stringLength > length2 && stringLength > tailLength) { 42782 let end2 = length2 - tailLength; 42783 return end2 > 0 && isHighSurrogate2(string[end2 - 1]) && (end2 = end2 - 1), `${string.slice(0, end2)}${tail2}`; 42784 } 42785 return string; 42786} 42787__name(truncate2, "truncate"); 42788function inspectList2(list, options, inspectItem, separator = ", ") { 42789 inspectItem = inspectItem || options.inspect; 42790 let size = list.length; 42791 if (size === 0) 42792 return ""; 42793 let originalLength = options.truncate, output = "", peek2 = "", truncated = ""; 42794 for (let i = 0; i < size; i += 1) { 42795 let last2 = i + 1 === list.length, secondToLast = i + 2 === list.length; 42796 truncated = `${truncator2}(${list.length - i})`; 42797 let value = list[i]; 42798 options.truncate = originalLength - output.length - (last2 ? 0 : separator.length); 42799 let string = peek2 || inspectItem(value, options) + (last2 ? "" : separator), nextLength = output.length + string.length, truncatedLength = nextLength + truncated.length; 42800 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)) 42801 break; 42802 if (output += string, !last2 && !secondToLast && nextLength + peek2.length >= originalLength) { 42803 truncated = `${truncator2}(${list.length - i - 1})`; 42804 break; 42805 } 42806 truncated = ""; 42807 } 42808 return `${output}${truncated}`; 42809} 42810__name(inspectList2, "inspectList"); 42811function quoteComplexKey2(key) { 42812 return key.match(/^[a-zA-Z_][a-zA-Z_0-9]*$/) ? key : JSON.stringify(key).replace(/'/g, "\\'").replace(/\\"/g, '"').replace(/(^"|"$)/g, "'"); 42813} 42814__name(quoteComplexKey2, "quoteComplexKey"); 42815function inspectProperty2([key, value], options) { 42816 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}`; 42817} 42818__name(inspectProperty2, "inspectProperty"); 42819function inspectArray2(array, options) { 42820 let nonIndexProperties = Object.keys(array).slice(array.length); 42821 if (!array.length && !nonIndexProperties.length) 42822 return "[]"; 42823 options.truncate -= 4; 42824 let listContents = inspectList2(array, options); 42825 options.truncate -= listContents.length; 42826 let propertyContents = ""; 42827 return nonIndexProperties.length && (propertyContents = inspectList2(nonIndexProperties.map((key) => [key, array[key]]), options, inspectProperty2)), `[ ${listContents}${propertyContents ? `, ${propertyContents}` : ""} ]`; 42828} 42829__name(inspectArray2, "inspectArray"); 42830var getArrayName2 = __name((array) => typeof Buffer == "function" && array instanceof Buffer ? "Buffer" : array[Symbol.toStringTag] ? array[Symbol.toStringTag] : array.constructor.name, "getArrayName"); 42831function inspectTypedArray2(array, options) { 42832 let name = getArrayName2(array); 42833 options.truncate -= name.length + 4; 42834 let nonIndexProperties = Object.keys(array).slice(array.length); 42835 if (!array.length && !nonIndexProperties.length) 42836 return `${name}[]`; 42837 let output = ""; 42838 for (let i = 0; i < array.length; i++) { 42839 let string = `${options.stylize(truncate2(array[i], options.truncate), "number")}${i === array.length - 1 ? "" : ", "}`; 42840 if (options.truncate -= string.length, array[i] !== array.length && options.truncate <= 3) { 42841 output += `${truncator2}(${array.length - array[i] + 1})`; 42842 break; 42843 } 42844 output += string; 42845 } 42846 let propertyContents = ""; 42847 return nonIndexProperties.length && (propertyContents = inspectList2(nonIndexProperties.map((key) => [key, array[key]]), options, inspectProperty2)), `${name}[ ${output}${propertyContents ? `, ${propertyContents}` : ""} ]`; 42848} 42849__name(inspectTypedArray2, "inspectTypedArray"); 42850function inspectDate2(dateObject, options) { 42851 let stringRepresentation = dateObject.toJSON(); 42852 if (stringRepresentation === null) 42853 return "Invalid Date"; 42854 let split = stringRepresentation.split("T"), date = split[0]; 42855 return options.stylize(`${date}T${truncate2(split[1], options.truncate - date.length - 1)}`, "date"); 42856} 42857__name(inspectDate2, "inspectDate"); 42858function inspectFunction2(func, options) { 42859 let functionType = func[Symbol.toStringTag] || "Function", name = func.name; 42860 return name ? options.stylize(`[${functionType} ${truncate2(name, options.truncate - 11)}]`, "special") : options.stylize(`[${functionType}]`, "special"); 42861} 42862__name(inspectFunction2, "inspectFunction"); 42863function inspectMapEntry2([key, value], options) { 42864 return options.truncate -= 4, key = options.inspect(key, options), options.truncate -= key.length, value = options.inspect(value, options), `${key} => ${value}`; 42865} 42866__name(inspectMapEntry2, "inspectMapEntry"); 42867function mapToEntries2(map2) { 42868 let entries = []; 42869 return map2.forEach((value, key) => { 42870 entries.push([key, value]); 42871 }), entries; 42872} 42873__name(mapToEntries2, "mapToEntries"); 42874function inspectMap2(map2, options) { 42875 return map2.size === 0 ? "Map{}" : (options.truncate -= 7, `Map{ ${inspectList2(mapToEntries2(map2), options, inspectMapEntry2)} }`); 42876} 42877__name(inspectMap2, "inspectMap"); 42878var isNaN3 = Number.isNaN || ((i) => i !== i); 42879function inspectNumber2(number, options) { 42880 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"); 42881} 42882__name(inspectNumber2, "inspectNumber"); 42883function inspectBigInt2(number, options) { 42884 let nums = truncate2(number.toString(), options.truncate - 1); 42885 return nums !== truncator2 && (nums += "n"), options.stylize(nums, "bigint"); 42886} 42887__name(inspectBigInt2, "inspectBigInt"); 42888function inspectRegExp2(value, options) { 42889 let flags = value.toString().split("/")[2], sourceLength = options.truncate - (2 + flags.length), source = value.source; 42890 return options.stylize(`/${truncate2(source, sourceLength)}/${flags}`, "regexp"); 42891} 42892__name(inspectRegExp2, "inspectRegExp"); 42893function arrayFromSet2(set22) { 42894 let values = []; 42895 return set22.forEach((value) => { 42896 values.push(value); 42897 }), values; 42898} 42899__name(arrayFromSet2, "arrayFromSet"); 42900function inspectSet2(set22, options) { 42901 return set22.size === 0 ? "Set{}" : (options.truncate -= 7, `Set{ ${inspectList2(arrayFromSet2(set22), options)} }`); 42902} 42903__name(inspectSet2, "inspectSet"); 42904var stringEscapeChars2 = new RegExp("['\\u0000-\\u001f\\u007f-\\u009f\\u00ad\\u0600-\\u0604\\u070f\\u17b4\\u17b5\\u200c-\\u200f\\u2028-\\u202f\\u2060-\\u206f\\ufeff\\ufff0-\\uffff]", "g"), escapeCharacters2 = { 42905 "\b": "\\b", 42906 " ": "\\t", 42907 "\n": "\\n", 42908 "\f": "\\f", 42909 "\r": "\\r", 42910 "'": "\\'", 42911 "\\": "\\\\" 42912}, hex2 = 16, unicodeLength2 = 4; 42913function escape2(char2) { 42914 return escapeCharacters2[char2] || `\\u${`0000${char2.charCodeAt(0).toString(hex2)}`.slice(-unicodeLength2)}`; 42915} 42916__name(escape2, "escape"); 42917function inspectString2(string, options) { 42918 return stringEscapeChars2.test(string) && (string = string.replace(stringEscapeChars2, escape2)), options.stylize(`'${truncate2(string, options.truncate - 2)}'`, "string"); 42919} 42920__name(inspectString2, "inspectString"); 42921function inspectSymbol2(value) { 42922 return "description" in Symbol.prototype ? value.description ? `Symbol(${value.description})` : "Symbol()" : value.toString(); 42923} 42924__name(inspectSymbol2, "inspectSymbol"); 42925var getPromiseValue2 = __name(() => "Promise{\u2026}", "getPromiseValue"), promise_default2 = getPromiseValue2; 42926function inspectObject3(object, options) { 42927 let properties = Object.getOwnPropertyNames(object), symbols = Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(object) : []; 42928 if (properties.length === 0 && symbols.length === 0) 42929 return "{}"; 42930 if (options.truncate -= 4, options.seen = options.seen || [], options.seen.includes(object)) 42931 return "[Circular]"; 42932 options.seen.push(object); 42933 let propertyContents = inspectList2(properties.map((key) => [key, object[key]]), options, inspectProperty2), symbolContents = inspectList2(symbols.map((key) => [key, object[key]]), options, inspectProperty2); 42934 options.seen.pop(); 42935 let sep = ""; 42936 return propertyContents && symbolContents && (sep = ", "), `{ ${propertyContents}${sep}${symbolContents} }`; 42937} 42938__name(inspectObject3, "inspectObject"); 42939var toStringTag2 = typeof Symbol < "u" && Symbol.toStringTag ? Symbol.toStringTag : !1; 42940function inspectClass2(value, options) { 42941 let name = ""; 42942 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)}`; 42943} 42944__name(inspectClass2, "inspectClass"); 42945function inspectArguments2(args, options) { 42946 return args.length === 0 ? "Arguments[]" : (options.truncate -= 13, `Arguments[ ${inspectList2(args, options)} ]`); 42947} 42948__name(inspectArguments2, "inspectArguments"); 42949var errorKeys2 = [ 42950 "stack", 42951 "line", 42952 "column", 42953 "name", 42954 "message", 42955 "fileName", 42956 "lineNumber", 42957 "columnNumber", 42958 "number", 42959 "description", 42960 "cause" 42961]; 42962function inspectObject22(error, options) { 42963 let properties = Object.getOwnPropertyNames(error).filter((key) => errorKeys2.indexOf(key) === -1), name = error.name; 42964 options.truncate -= name.length; 42965 let message = ""; 42966 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)) 42967 return "[Circular]"; 42968 options.seen.push(error); 42969 let propertyContents = inspectList2(properties.map((key) => [key, error[key]]), options, inspectProperty2); 42970 return `${name}${message}${propertyContents ? ` { ${propertyContents} }` : ""}`; 42971} 42972__name(inspectObject22, "inspectObject"); 42973function inspectAttribute2([key, value], options) { 42974 return options.truncate -= 3, value ? `${options.stylize(String(key), "yellow")}=${options.stylize(`"${value}"`, "string")}` : `${options.stylize(String(key), "yellow")}`; 42975} 42976__name(inspectAttribute2, "inspectAttribute"); 42977function inspectNodeCollection2(collection, options) { 42978 return inspectList2(collection, options, inspectNode2, ` 42979`); 42980} 42981__name(inspectNodeCollection2, "inspectNodeCollection"); 42982function inspectNode2(node2, options) { 42983 switch (node2.nodeType) { 42984 case 1: 42985 return inspectHTML2(node2, options); 42986 case 3: 42987 return options.inspect(node2.data, options); 42988 default: 42989 return options.inspect(node2, options); 42990 } 42991} 42992__name(inspectNode2, "inspectNode"); 42993function inspectHTML2(element, options) { 42994 let properties = element.getAttributeNames(), name = element.tagName.toLowerCase(), head2 = options.stylize(`<${name}`, "special"), headClose = options.stylize(">", "special"), tail2 = options.stylize(`</${name}>`, "special"); 42995 options.truncate -= name.length * 2 + 5; 42996 let propertyContents = ""; 42997 properties.length > 0 && (propertyContents += " ", propertyContents += inspectList2(properties.map((key) => [key, element.getAttribute(key)]), options, inspectAttribute2, " ")), options.truncate -= propertyContents.length; 42998 let truncate22 = options.truncate, children = inspectNodeCollection2(element.children, options); 42999 return children && children.length > truncate22 && (children = `${truncator2}(${element.children.length})`), `${head2}${propertyContents}${headClose}${children}${tail2}`; 43000} 43001__name(inspectHTML2, "inspectHTML"); 43002var symbolsSupported2 = typeof Symbol == "function" && typeof Symbol.for == "function", chaiInspect2 = symbolsSupported2 ? Symbol.for("chai/inspect") : "@@chai/inspect", nodeInspect2 = Symbol.for("nodejs.util.inspect.custom"), constructorMap2 = /* @__PURE__ */ new WeakMap(), stringTagMap2 = {}, baseTypesMap2 = { 43003 undefined: __name((value, options) => options.stylize("undefined", "undefined"), "undefined"), 43004 null: __name((value, options) => options.stylize("null", "null"), "null"), 43005 boolean: __name((value, options) => options.stylize(String(value), "boolean"), "boolean"), 43006 Boolean: __name((value, options) => options.stylize(String(value), "boolean"), "Boolean"), 43007 number: inspectNumber2, 43008 Number: inspectNumber2, 43009 bigint: inspectBigInt2, 43010 BigInt: inspectBigInt2, 43011 string: inspectString2, 43012 String: inspectString2, 43013 function: inspectFunction2, 43014 Function: inspectFunction2, 43015 symbol: inspectSymbol2, 43016 // A Symbol polyfill will return `Symbol` not `symbol` from typedetect 43017 Symbol: inspectSymbol2, 43018 Array: inspectArray2, 43019 Date: inspectDate2, 43020 Map: inspectMap2, 43021 Set: inspectSet2, 43022 RegExp: inspectRegExp2, 43023 Promise: promise_default2, 43024 // WeakSet, WeakMap are totally opaque to us 43025 WeakSet: __name((value, options) => options.stylize("WeakSet{\u2026}", "special"), "WeakSet"), 43026 WeakMap: __name((value, options) => options.stylize("WeakMap{\u2026}", "special"), "WeakMap"), 43027 Arguments: inspectArguments2, 43028 Int8Array: inspectTypedArray2, 43029 Uint8Array: inspectTypedArray2, 43030 Uint8ClampedArray: inspectTypedArray2, 43031 Int16Array: inspectTypedArray2, 43032 Uint16Array: inspectTypedArray2, 43033 Int32Array: inspectTypedArray2, 43034 Uint32Array: inspectTypedArray2, 43035 Float32Array: inspectTypedArray2, 43036 Float64Array: inspectTypedArray2, 43037 Generator: __name(() => "", "Generator"), 43038 DataView: __name(() => "", "DataView"), 43039 ArrayBuffer: __name(() => "", "ArrayBuffer"), 43040 Error: inspectObject22, 43041 HTMLCollection: inspectNodeCollection2, 43042 NodeList: inspectNodeCollection2 43043}, 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; 43044function inspect4(value, opts = {}) { 43045 let options = normaliseOptions2(opts, inspect4), { customInspect } = options, type32 = value === null ? "null" : typeof value; 43046 if (type32 === "object" && (type32 = toString4.call(value).slice(8, -1)), type32 in baseTypesMap2) 43047 return baseTypesMap2[type32](value, options); 43048 if (customInspect && value) { 43049 let output = inspectCustom2(value, options, type32); 43050 if (output) 43051 return typeof output == "string" ? output : inspect4(output, options); 43052 } 43053 let proto = value ? Object.getPrototypeOf(value) : !1; 43054 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); 43055} 43056__name(inspect4, "inspect"); 43057var config2 = { 43058 /** 43059 * ### config.includeStack 43060 * 43061 * User configurable property, influences whether stack trace 43062 * is included in Assertion error message. Default of false 43063 * suppresses stack trace in the error message. 43064 * 43065 * chai.config.includeStack = true; // enable stack on error 43066 * 43067 * @param {boolean} 43068 * @public 43069 */ 43070 includeStack: !1, 43071 /** 43072 * ### config.showDiff 43073 * 43074 * User configurable property, influences whether or not 43075 * the `showDiff` flag should be included in the thrown 43076 * AssertionErrors. `false` will always be `false`; `true` 43077 * will be true when the assertion has requested a diff 43078 * be shown. 43079 * 43080 * @param {boolean} 43081 * @public 43082 */ 43083 showDiff: !0, 43084 /** 43085 * ### config.truncateThreshold 43086 * 43087 * User configurable property, sets length threshold for actual and 43088 * expected values in assertion errors. If this threshold is exceeded, for 43089 * example for large data structures, the value is replaced with something 43090 * like `[ Array(3) ]` or `{ Object (prop1, prop2) }`. 43091 * 43092 * Set it to zero if you want to disable truncating altogether. 43093 * 43094 * This is especially userful when doing assertions on arrays: having this 43095 * set to a reasonable large value makes the failure messages readily 43096 * inspectable. 43097 * 43098 * chai.config.truncateThreshold = 0; // disable truncating 43099 * 43100 * @param {number} 43101 * @public 43102 */ 43103 truncateThreshold: 40, 43104 /** 43105 * ### config.useProxy 43106 * 43107 * User configurable property, defines if chai will use a Proxy to throw 43108 * an error when a non-existent property is read, which protects users 43109 * from typos when using property-based assertions. 43110 * 43111 * Set it to false if you want to disable this feature. 43112 * 43113 * chai.config.useProxy = false; // disable use of Proxy 43114 * 43115 * This feature is automatically disabled regardless of this config value 43116 * in environments that don't support proxies. 43117 * 43118 * @param {boolean} 43119 * @public 43120 */ 43121 useProxy: !0, 43122 /** 43123 * ### config.proxyExcludedKeys 43124 * 43125 * User configurable property, defines which properties should be ignored 43126 * instead of throwing an error if they do not exist on the assertion. 43127 * This is only applied if the environment Chai is running in supports proxies and 43128 * if the `useProxy` configuration setting is enabled. 43129 * By default, `then` and `inspect` will not throw an error if they do not exist on the 43130 * assertion object because the `.inspect` property is read by `util.inspect` (for example, when 43131 * using `console.log` on the assertion object) and `.then` is necessary for promise type-checking. 43132 * 43133 * // By default these keys will not throw an error if they do not exist on the assertion object 43134 * chai.config.proxyExcludedKeys = ['then', 'inspect']; 43135 * 43136 * @param {Array} 43137 * @public 43138 */ 43139 proxyExcludedKeys: ["then", "catch", "inspect", "toJSON"], 43140 /** 43141 * ### config.deepEqual 43142 * 43143 * User configurable property, defines which a custom function to use for deepEqual 43144 * comparisons. 43145 * By default, the function used is the one from the `deep-eql` package without custom comparator. 43146 * 43147 * // use a custom comparator 43148 * chai.config.deepEqual = (expected, actual) => { 43149 * return chai.util.eql(expected, actual, { 43150 * comparator: (expected, actual) => { 43151 * // for non number comparison, use the default behavior 43152 * if(typeof expected !== 'number') return null; 43153 * // allow a difference of 10 between compared numbers 43154 * return typeof actual === 'number' && Math.abs(actual - expected) < 10 43155 * } 43156 * }) 43157 * }; 43158 * 43159 * @param {Function} 43160 * @public 43161 */ 43162 deepEqual: null 43163}; 43164function inspect22(obj, showHidden, depth, colors3) { 43165 let options = { 43166 colors: colors3, 43167 depth: typeof depth > "u" ? 2 : depth, 43168 showHidden, 43169 truncate: config2.truncateThreshold ? config2.truncateThreshold : 1 / 0 43170 }; 43171 return inspect4(obj, options); 43172} 43173__name(inspect22, "inspect"); 43174function objDisplay(obj) { 43175 let str2 = inspect22(obj), type32 = Object.prototype.toString.call(obj); 43176 if (config2.truncateThreshold && str2.length >= config2.truncateThreshold) { 43177 if (type32 === "[object Function]") 43178 return !obj.name || obj.name === "" ? "[Function]" : "[Function: " + obj.name + "]"; 43179 if (type32 === "[object Array]") 43180 return "[ Array(" + obj.length + ") ]"; 43181 if (type32 === "[object Object]") { 43182 let keys3 = Object.keys(obj); 43183 return "{ Object (" + (keys3.length > 2 ? keys3.splice(0, 2).join(", ") + ", ..." : keys3.join(", ")) + ") }"; 43184 } else 43185 return str2; 43186 } else 43187 return str2; 43188} 43189__name(objDisplay, "objDisplay"); 43190function getMessage2(obj, args) { 43191 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"); 43192 return typeof msg == "function" && (msg = msg()), msg = msg || "", msg = msg.replace(/#\{this\}/g, function() { 43193 return objDisplay(val); 43194 }).replace(/#\{act\}/g, function() { 43195 return objDisplay(actual); 43196 }).replace(/#\{exp\}/g, function() { 43197 return objDisplay(expected); 43198 }), flagMsg ? flagMsg + ": " + msg : msg; 43199} 43200__name(getMessage2, "getMessage"); 43201function transferFlags(assertion, object, includeAll) { 43202 let flags = assertion.__flags || (assertion.__flags = /* @__PURE__ */ Object.create(null)); 43203 object.__flags || (object.__flags = /* @__PURE__ */ Object.create(null)), includeAll = arguments.length === 3 ? includeAll : !0; 43204 for (let flag3 in flags) 43205 (includeAll || flag3 !== "object" && flag3 !== "ssfi" && flag3 !== "lockSsfi" && flag3 != "message") && (object.__flags[flag3] = flags[flag3]); 43206} 43207__name(transferFlags, "transferFlags"); 43208function type2(obj) { 43209 if (typeof obj > "u") 43210 return "undefined"; 43211 if (obj === null) 43212 return "null"; 43213 let stringTag2 = obj[Symbol.toStringTag]; 43214 return typeof stringTag2 == "string" ? stringTag2 : Object.prototype.toString.call(obj).slice(8, -1); 43215} 43216__name(type2, "type"); 43217function FakeMap() { 43218 this._key = "chai/deep-eql__" + Math.random() + Date.now(); 43219} 43220__name(FakeMap, "FakeMap"); 43221FakeMap.prototype = { 43222 get: __name(function(key) { 43223 return key[this._key]; 43224 }, "get"), 43225 set: __name(function(key, value) { 43226 Object.isExtensible(key) && Object.defineProperty(key, this._key, { 43227 value, 43228 configurable: !0 43229 }); 43230 }, "set") 43231}; 43232var MemoizeMap = typeof WeakMap == "function" ? WeakMap : FakeMap; 43233function memoizeCompare(leftHandOperand, rightHandOperand, memoizeMap) { 43234 if (!memoizeMap || isPrimitive2(leftHandOperand) || isPrimitive2(rightHandOperand)) 43235 return null; 43236 var leftHandMap = memoizeMap.get(leftHandOperand); 43237 if (leftHandMap) { 43238 var result = leftHandMap.get(rightHandOperand); 43239 if (typeof result == "boolean") 43240 return result; 43241 } 43242 return null; 43243} 43244__name(memoizeCompare, "memoizeCompare"); 43245function memoizeSet(leftHandOperand, rightHandOperand, memoizeMap, result) { 43246 if (!(!memoizeMap || isPrimitive2(leftHandOperand) || isPrimitive2(rightHandOperand))) { 43247 var leftHandMap = memoizeMap.get(leftHandOperand); 43248 leftHandMap ? leftHandMap.set(rightHandOperand, result) : (leftHandMap = new MemoizeMap(), leftHandMap.set(rightHandOperand, result), memoizeMap.set(leftHandOperand, leftHandMap)); 43249 } 43250} 43251__name(memoizeSet, "memoizeSet"); 43252var deep_eql_default = deepEqual; 43253function deepEqual(leftHandOperand, rightHandOperand, options) { 43254 if (options && options.comparator) 43255 return extensiveDeepEqual(leftHandOperand, rightHandOperand, options); 43256 var simpleResult = simpleEqual(leftHandOperand, rightHandOperand); 43257 return simpleResult !== null ? simpleResult : extensiveDeepEqual(leftHandOperand, rightHandOperand, options); 43258} 43259__name(deepEqual, "deepEqual"); 43260function simpleEqual(leftHandOperand, rightHandOperand) { 43261 return leftHandOperand === rightHandOperand ? leftHandOperand !== 0 || 1 / leftHandOperand === 1 / rightHandOperand : leftHandOperand !== leftHandOperand && // eslint-disable-line no-self-compare 43262 rightHandOperand !== rightHandOperand ? !0 : isPrimitive2(leftHandOperand) || isPrimitive2(rightHandOperand) ? !1 : null; 43263} 43264__name(simpleEqual, "simpleEqual"); 43265function extensiveDeepEqual(leftHandOperand, rightHandOperand, options) { 43266 options = options || {}, options.memoize = options.memoize === !1 ? !1 : options.memoize || new MemoizeMap(); 43267 var comparator = options && options.comparator, memoizeResultLeft = memoizeCompare(leftHandOperand, rightHandOperand, options.memoize); 43268 if (memoizeResultLeft !== null) 43269 return memoizeResultLeft; 43270 var memoizeResultRight = memoizeCompare(rightHandOperand, leftHandOperand, options.memoize); 43271 if (memoizeResultRight !== null) 43272 return memoizeResultRight; 43273 if (comparator) { 43274 var comparatorResult = comparator(leftHandOperand, rightHandOperand); 43275 if (comparatorResult === !1 || comparatorResult === !0) 43276 return memoizeSet(leftHandOperand, rightHandOperand, options.memoize, comparatorResult), comparatorResult; 43277 var simpleResult = simpleEqual(leftHandOperand, rightHandOperand); 43278 if (simpleResult !== null) 43279 return simpleResult; 43280 } 43281 var leftHandType = type2(leftHandOperand); 43282 if (leftHandType !== type2(rightHandOperand)) 43283 return memoizeSet(leftHandOperand, rightHandOperand, options.memoize, !1), !1; 43284 memoizeSet(leftHandOperand, rightHandOperand, options.memoize, !0); 43285 var result = extensiveDeepEqualByType(leftHandOperand, rightHandOperand, leftHandType, options); 43286 return memoizeSet(leftHandOperand, rightHandOperand, options.memoize, result), result; 43287} 43288__name(extensiveDeepEqual, "extensiveDeepEqual"); 43289function extensiveDeepEqualByType(leftHandOperand, rightHandOperand, leftHandType, options) { 43290 switch (leftHandType) { 43291 case "String": 43292 case "Number": 43293 case "Boolean": 43294 case "Date": 43295 return deepEqual(leftHandOperand.valueOf(), rightHandOperand.valueOf()); 43296 case "Promise": 43297 case "Symbol": 43298 case "function": 43299 case "WeakMap": 43300 case "WeakSet": 43301 return leftHandOperand === rightHandOperand; 43302 case "Error": 43303 return keysEqual(leftHandOperand, rightHandOperand, ["name", "message", "code"], options); 43304 case "Arguments": 43305 case "Int8Array": 43306 case "Uint8Array": 43307 case "Uint8ClampedArray": 43308 case "Int16Array": 43309 case "Uint16Array": 43310 case "Int32Array": 43311 case "Uint32Array": 43312 case "Float32Array": 43313 case "Float64Array": 43314 case "Array": 43315 return iterableEqual(leftHandOperand, rightHandOperand, options); 43316 case "RegExp": 43317 return regexpEqual(leftHandOperand, rightHandOperand); 43318 case "Generator": 43319 return generatorEqual(leftHandOperand, rightHandOperand, options); 43320 case "DataView": 43321 return iterableEqual(new Uint8Array(leftHandOperand.buffer), new Uint8Array(rightHandOperand.buffer), options); 43322 case "ArrayBuffer": 43323 return iterableEqual(new Uint8Array(leftHandOperand), new Uint8Array(rightHandOperand), options); 43324 case "Set": 43325 return entriesEqual(leftHandOperand, rightHandOperand, options); 43326 case "Map": 43327 return entriesEqual(leftHandOperand, rightHandOperand, options); 43328 case "Temporal.PlainDate": 43329 case "Temporal.PlainTime": 43330 case "Temporal.PlainDateTime": 43331 case "Temporal.Instant": 43332 case "Temporal.ZonedDateTime": 43333 case "Temporal.PlainYearMonth": 43334 case "Temporal.PlainMonthDay": 43335 return leftHandOperand.equals(rightHandOperand); 43336 case "Temporal.Duration": 43337 return leftHandOperand.total("nanoseconds") === rightHandOperand.total("nanoseconds"); 43338 case "Temporal.TimeZone": 43339 case "Temporal.Calendar": 43340 return leftHandOperand.toString() === rightHandOperand.toString(); 43341 default: 43342 return objectEqual(leftHandOperand, rightHandOperand, options); 43343 } 43344} 43345__name(extensiveDeepEqualByType, "extensiveDeepEqualByType"); 43346function regexpEqual(leftHandOperand, rightHandOperand) { 43347 return leftHandOperand.toString() === rightHandOperand.toString(); 43348} 43349__name(regexpEqual, "regexpEqual"); 43350function entriesEqual(leftHandOperand, rightHandOperand, options) { 43351 try { 43352 if (leftHandOperand.size !== rightHandOperand.size) 43353 return !1; 43354 if (leftHandOperand.size === 0) 43355 return !0; 43356 } catch { 43357 return !1; 43358 } 43359 var leftHandItems = [], rightHandItems = []; 43360 return leftHandOperand.forEach(__name(function(key, value) { 43361 leftHandItems.push([key, value]); 43362 }, "gatherEntries")), rightHandOperand.forEach(__name(function(key, value) { 43363 rightHandItems.push([key, value]); 43364 }, "gatherEntries")), iterableEqual(leftHandItems.sort(), rightHandItems.sort(), options); 43365} 43366__name(entriesEqual, "entriesEqual"); 43367function iterableEqual(leftHandOperand, rightHandOperand, options) { 43368 var length2 = leftHandOperand.length; 43369 if (length2 !== rightHandOperand.length) 43370 return !1; 43371 if (length2 === 0) 43372 return !0; 43373 for (var index4 = -1; ++index4 < length2; ) 43374 if (deepEqual(leftHandOperand[index4], rightHandOperand[index4], options) === !1) 43375 return !1; 43376 return !0; 43377} 43378__name(iterableEqual, "iterableEqual"); 43379function generatorEqual(leftHandOperand, rightHandOperand, options) { 43380 return iterableEqual(getGeneratorEntries(leftHandOperand), getGeneratorEntries(rightHandOperand), options); 43381} 43382__name(generatorEqual, "generatorEqual"); 43383function hasIteratorFunction(target) { 43384 return typeof Symbol < "u" && typeof target == "object" && typeof Symbol.iterator < "u" && typeof target[Symbol.iterator] == "function"; 43385} 43386__name(hasIteratorFunction, "hasIteratorFunction"); 43387function getIteratorEntries(target) { 43388 if (hasIteratorFunction(target)) 43389 try { 43390 return getGeneratorEntries(target[Symbol.iterator]()); 43391 } catch { 43392 return []; 43393 } 43394 return []; 43395} 43396__name(getIteratorEntries, "getIteratorEntries"); 43397function getGeneratorEntries(generator) { 43398 for (var generatorResult = generator.next(), accumulator = [generatorResult.value]; generatorResult.done === !1; ) 43399 generatorResult = generator.next(), accumulator.push(generatorResult.value); 43400 return accumulator; 43401} 43402__name(getGeneratorEntries, "getGeneratorEntries"); 43403function getEnumerableKeys(target) { 43404 var keys3 = []; 43405 for (var key in target) 43406 keys3.push(key); 43407 return keys3; 43408} 43409__name(getEnumerableKeys, "getEnumerableKeys"); 43410function getEnumerableSymbols(target) { 43411 for (var keys3 = [], allKeys = Object.getOwnPropertySymbols(target), i = 0; i < allKeys.length; i += 1) { 43412 var key = allKeys[i]; 43413 Object.getOwnPropertyDescriptor(target, key).enumerable && keys3.push(key); 43414 } 43415 return keys3; 43416} 43417__name(getEnumerableSymbols, "getEnumerableSymbols"); 43418function keysEqual(leftHandOperand, rightHandOperand, keys3, options) { 43419 var length2 = keys3.length; 43420 if (length2 === 0) 43421 return !0; 43422 for (var i = 0; i < length2; i += 1) 43423 if (deepEqual(leftHandOperand[keys3[i]], rightHandOperand[keys3[i]], options) === !1) 43424 return !1; 43425 return !0; 43426} 43427__name(keysEqual, "keysEqual"); 43428function objectEqual(leftHandOperand, rightHandOperand, options) { 43429 var leftHandKeys = getEnumerableKeys(leftHandOperand), rightHandKeys = getEnumerableKeys(rightHandOperand), leftHandSymbols = getEnumerableSymbols(leftHandOperand), rightHandSymbols = getEnumerableSymbols(rightHandOperand); 43430 if (leftHandKeys = leftHandKeys.concat(leftHandSymbols), rightHandKeys = rightHandKeys.concat(rightHandSymbols), leftHandKeys.length && leftHandKeys.length === rightHandKeys.length) 43431 return iterableEqual(mapSymbols(leftHandKeys).sort(), mapSymbols(rightHandKeys).sort()) === !1 ? !1 : keysEqual(leftHandOperand, rightHandOperand, leftHandKeys, options); 43432 var leftHandEntries = getIteratorEntries(leftHandOperand), rightHandEntries = getIteratorEntries(rightHandOperand); 43433 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; 43434} 43435__name(objectEqual, "objectEqual"); 43436function isPrimitive2(value) { 43437 return value === null || typeof value != "object"; 43438} 43439__name(isPrimitive2, "isPrimitive"); 43440function mapSymbols(arr) { 43441 return arr.map(__name(function(entry) { 43442 return typeof entry == "symbol" ? entry.toString() : entry; 43443 }, "mapSymbol")); 43444} 43445__name(mapSymbols, "mapSymbols"); 43446function hasProperty(obj, name) { 43447 return typeof obj > "u" || obj === null ? !1 : name in Object(obj); 43448} 43449__name(hasProperty, "hasProperty"); 43450function parsePath(path) { 43451 return path.replace(/([^\\])\[/g, "$1.[").match(/(\\\.|[^.]+?)+/g).map((value) => { 43452 if (value === "constructor" || value === "__proto__" || value === "prototype") 43453 return {}; 43454 let mArr = /^\[(\d+)\]$/.exec(value), parsed = null; 43455 return mArr ? parsed = { i: parseFloat(mArr[1]) } : parsed = { p: value.replace(/\\([.[\]])/g, "$1") }, parsed; 43456 }); 43457} 43458__name(parsePath, "parsePath"); 43459function internalGetPathValue(obj, parsed, pathDepth) { 43460 let temporaryValue = obj, res = null; 43461 pathDepth = typeof pathDepth > "u" ? parsed.length : pathDepth; 43462 for (let i = 0; i < pathDepth; i++) { 43463 let part = parsed[i]; 43464 temporaryValue && (typeof part.p > "u" ? temporaryValue = temporaryValue[part.i] : temporaryValue = temporaryValue[part.p], i === pathDepth - 1 && (res = temporaryValue)); 43465 } 43466 return res; 43467} 43468__name(internalGetPathValue, "internalGetPathValue"); 43469function getPathInfo(obj, path) { 43470 let parsed = parsePath(path), last2 = parsed[parsed.length - 1], info = { 43471 parent: parsed.length > 1 ? internalGetPathValue(obj, parsed, parsed.length - 1) : obj, 43472 name: last2.p || last2.i, 43473 value: internalGetPathValue(obj, parsed) 43474 }; 43475 return info.exists = hasProperty(info.parent, info.name), info; 43476} 43477__name(getPathInfo, "getPathInfo"); 43478var _a2, Assertion = (_a2 = class { 43479 /** @type {{}} */ 43480 __flags = {}; 43481 /** 43482 * Creates object for chaining. 43483 * `Assertion` objects contain metadata in the form of flags. Three flags can 43484 * be assigned during instantiation by passing arguments to this constructor: 43485 * 43486 * - `object`: This flag contains the target of the assertion. For example, in 43487 * the assertion `expect(numKittens).to.equal(7);`, the `object` flag will 43488 * contain `numKittens` so that the `equal` assertion can reference it when 43489 * needed. 43490 * 43491 * - `message`: This flag contains an optional custom error message to be 43492 * prepended to the error message that's generated by the assertion when it 43493 * fails. 43494 * 43495 * - `ssfi`: This flag stands for "start stack function indicator". It 43496 * contains a function reference that serves as the starting point for 43497 * removing frames from the stack trace of the error that's created by the 43498 * assertion when it fails. The goal is to provide a cleaner stack trace to 43499 * end users by removing Chai's internal functions. Note that it only works 43500 * in environments that support `Error.captureStackTrace`, and only when 43501 * `Chai.config.includeStack` hasn't been set to `false`. 43502 * 43503 * - `lockSsfi`: This flag controls whether or not the given `ssfi` flag 43504 * should retain its current value, even as assertions are chained off of 43505 * this object. This is usually set to `true` when creating a new assertion 43506 * from within another assertion. It's also temporarily set to `true` before 43507 * an overwritten assertion gets called by the overwriting assertion. 43508 * 43509 * - `eql`: This flag contains the deepEqual function to be used by the assertion. 43510 * 43511 * @param {unknown} obj target of the assertion 43512 * @param {string} [msg] (optional) custom error message 43513 * @param {Function} [ssfi] (optional) starting point for removing stack frames 43514 * @param {boolean} [lockSsfi] (optional) whether or not the ssfi flag is locked 43515 */ 43516 constructor(obj, msg, ssfi, lockSsfi) { 43517 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); 43518 } 43519 /** @returns {boolean} */ 43520 static get includeStack() { 43521 return console.warn( 43522 "Assertion.includeStack is deprecated, use chai.config.includeStack instead." 43523 ), config2.includeStack; 43524 } 43525 /** @param {boolean} value */ 43526 static set includeStack(value) { 43527 console.warn( 43528 "Assertion.includeStack is deprecated, use chai.config.includeStack instead." 43529 ), config2.includeStack = value; 43530 } 43531 /** @returns {boolean} */ 43532 static get showDiff() { 43533 return console.warn( 43534 "Assertion.showDiff is deprecated, use chai.config.showDiff instead." 43535 ), config2.showDiff; 43536 } 43537 /** @param {boolean} value */ 43538 static set showDiff(value) { 43539 console.warn( 43540 "Assertion.showDiff is deprecated, use chai.config.showDiff instead." 43541 ), config2.showDiff = value; 43542 } 43543 /** 43544 * @param {string} name 43545 * @param {Function} fn 43546 */ 43547 static addProperty(name, fn4) { 43548 addProperty(this.prototype, name, fn4); 43549 } 43550 /** 43551 * @param {string} name 43552 * @param {Function} fn 43553 */ 43554 static addMethod(name, fn4) { 43555 addMethod(this.prototype, name, fn4); 43556 } 43557 /** 43558 * @param {string} name 43559 * @param {Function} fn 43560 * @param {Function} chainingBehavior 43561 */ 43562 static addChainableMethod(name, fn4, chainingBehavior) { 43563 addChainableMethod(this.prototype, name, fn4, chainingBehavior); 43564 } 43565 /** 43566 * @param {string} name 43567 * @param {Function} fn 43568 */ 43569 static overwriteProperty(name, fn4) { 43570 overwriteProperty(this.prototype, name, fn4); 43571 } 43572 /** 43573 * @param {string} name 43574 * @param {Function} fn 43575 */ 43576 static overwriteMethod(name, fn4) { 43577 overwriteMethod(this.prototype, name, fn4); 43578 } 43579 /** 43580 * @param {string} name 43581 * @param {Function} fn 43582 * @param {Function} chainingBehavior 43583 */ 43584 static overwriteChainableMethod(name, fn4, chainingBehavior) { 43585 overwriteChainableMethod(this.prototype, name, fn4, chainingBehavior); 43586 } 43587 /** 43588 * ### .assert(expression, message, negateMessage, expected, actual, showDiff) 43589 * 43590 * Executes an expression and check expectations. Throws AssertionError for reporting if test doesn't pass. 43591 * 43592 * @name assert 43593 * @param {unknown} _expr to be tested 43594 * @param {string | Function} msg or function that returns message to display if expression fails 43595 * @param {string | Function} _negateMsg or function that returns negatedMessage to display if negated expression fails 43596 * @param {unknown} expected value (remember to check for negation) 43597 * @param {unknown} _actual (optional) will default to `this.obj` 43598 * @param {boolean} showDiff (optional) when set to `true`, assert will display a diff in addition to the message if expression fails 43599 * @returns {void} 43600 */ 43601 assert(_expr, msg, _negateMsg, expected, _actual, showDiff) { 43602 let ok = test2(this, arguments); 43603 if (showDiff !== !1 && (showDiff = !0), expected === void 0 && _actual === void 0 && (showDiff = !1), config2.showDiff !== !0 && (showDiff = !1), !ok) { 43604 msg = getMessage2(this, arguments); 43605 let assertionErrorObjectProperties = { 43606 actual: getActual(this, arguments), 43607 expected, 43608 showDiff 43609 }, operator = getOperator(this, arguments); 43610 throw operator && (assertionErrorObjectProperties.operator = operator), new AssertionError( 43611 msg, 43612 assertionErrorObjectProperties, 43613 // @ts-expect-error Not sure what to do about these types yet 43614 config2.includeStack ? this.assert : flag(this, "ssfi") 43615 ); 43616 } 43617 } 43618 /** 43619 * Quick reference to stored `actual` value for plugin developers. 43620 * 43621 * @returns {unknown} 43622 */ 43623 get _obj() { 43624 return flag(this, "object"); 43625 } 43626 /** 43627 * Quick reference to stored `actual` value for plugin developers. 43628 * 43629 * @param {unknown} val 43630 */ 43631 set _obj(val) { 43632 flag(this, "object", val); 43633 } 43634}, __name(_a2, "Assertion"), _a2); 43635function isProxyEnabled() { 43636 return config2.useProxy && typeof Proxy < "u" && typeof Reflect < "u"; 43637} 43638__name(isProxyEnabled, "isProxyEnabled"); 43639function addProperty(ctx, name, getter) { 43640 getter = getter === void 0 ? function() { 43641 } : getter, Object.defineProperty(ctx, name, { 43642 get: __name(function propertyGetter() { 43643 !isProxyEnabled() && !flag(this, "lockSsfi") && flag(this, "ssfi", propertyGetter); 43644 let result = getter.call(this); 43645 if (result !== void 0) return result; 43646 let newAssertion = new Assertion(); 43647 return transferFlags(this, newAssertion), newAssertion; 43648 }, "propertyGetter"), 43649 configurable: !0 43650 }); 43651} 43652__name(addProperty, "addProperty"); 43653var fnLengthDesc = Object.getOwnPropertyDescriptor(function() { 43654}, "length"); 43655function addLengthGuard(fn4, assertionName, isChainable) { 43656 return fnLengthDesc.configurable && Object.defineProperty(fn4, "length", { 43657 get: __name(function() { 43658 throw Error( 43659 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 + '".' 43660 ); 43661 }, "get") 43662 }), fn4; 43663} 43664__name(addLengthGuard, "addLengthGuard"); 43665function getProperties(object) { 43666 let result = Object.getOwnPropertyNames(object); 43667 function addProperty2(property) { 43668 result.indexOf(property) === -1 && result.push(property); 43669 } 43670 __name(addProperty2, "addProperty"); 43671 let proto = Object.getPrototypeOf(object); 43672 for (; proto !== null; ) 43673 Object.getOwnPropertyNames(proto).forEach(addProperty2), proto = Object.getPrototypeOf(proto); 43674 return result; 43675} 43676__name(getProperties, "getProperties"); 43677var builtins = ["__flags", "__methods", "_obj", "assert"]; 43678function proxify(obj, nonChainableMethodName) { 43679 return isProxyEnabled() ? new Proxy(obj, { 43680 get: __name(function proxyGetter(target, property) { 43681 if (typeof property == "string" && config2.proxyExcludedKeys.indexOf(property) === -1 && !Reflect.has(target, property)) { 43682 if (nonChainableMethodName) 43683 throw Error( 43684 "Invalid Chai property: " + nonChainableMethodName + "." + property + '. See docs for proper usage of "' + nonChainableMethodName + '".' 43685 ); 43686 let suggestion = null, suggestionDistance = 4; 43687 throw getProperties(target).forEach(function(prop) { 43688 if ( 43689 // we actually mean to check `Object.prototype` here 43690 // eslint-disable-next-line no-prototype-builtins 43691 !Object.prototype.hasOwnProperty(prop) && builtins.indexOf(prop) === -1 43692 ) { 43693 let dist = stringDistanceCapped(property, prop, suggestionDistance); 43694 dist < suggestionDistance && (suggestion = prop, suggestionDistance = dist); 43695 } 43696 }), Error( 43697 suggestion !== null ? "Invalid Chai property: " + property + '. Did you mean "' + suggestion + '"?' : "Invalid Chai property: " + property 43698 ); 43699 } 43700 return builtins.indexOf(property) === -1 && !flag(target, "lockSsfi") && flag(target, "ssfi", proxyGetter), Reflect.get(target, property); 43701 }, "proxyGetter") 43702 }) : obj; 43703} 43704__name(proxify, "proxify"); 43705function stringDistanceCapped(strA, strB, cap) { 43706 if (Math.abs(strA.length - strB.length) >= cap) 43707 return cap; 43708 let memo2 = []; 43709 for (let i = 0; i <= strA.length; i++) 43710 memo2[i] = Array(strB.length + 1).fill(0), memo2[i][0] = i; 43711 for (let j = 0; j < strB.length; j++) 43712 memo2[0][j] = j; 43713 for (let i = 1; i <= strA.length; i++) { 43714 let ch = strA.charCodeAt(i - 1); 43715 for (let j = 1; j <= strB.length; j++) { 43716 if (Math.abs(i - j) >= cap) { 43717 memo2[i][j] = cap; 43718 continue; 43719 } 43720 memo2[i][j] = Math.min( 43721 memo2[i - 1][j] + 1, 43722 memo2[i][j - 1] + 1, 43723 memo2[i - 1][j - 1] + (ch === strB.charCodeAt(j - 1) ? 0 : 1) 43724 ); 43725 } 43726 } 43727 return memo2[strA.length][strB.length]; 43728} 43729__name(stringDistanceCapped, "stringDistanceCapped"); 43730function addMethod(ctx, name, method) { 43731 let methodWrapper = __name(function() { 43732 flag(this, "lockSsfi") || flag(this, "ssfi", methodWrapper); 43733 let result = method.apply(this, arguments); 43734 if (result !== void 0) return result; 43735 let newAssertion = new Assertion(); 43736 return transferFlags(this, newAssertion), newAssertion; 43737 }, "methodWrapper"); 43738 addLengthGuard(methodWrapper, name, !1), ctx[name] = proxify(methodWrapper, name); 43739} 43740__name(addMethod, "addMethod"); 43741function overwriteProperty(ctx, name, getter) { 43742 let _get = Object.getOwnPropertyDescriptor(ctx, name), _super = __name(function() { 43743 }, "_super"); 43744 _get && typeof _get.get == "function" && (_super = _get.get), Object.defineProperty(ctx, name, { 43745 get: __name(function overwritingPropertyGetter() { 43746 !isProxyEnabled() && !flag(this, "lockSsfi") && flag(this, "ssfi", overwritingPropertyGetter); 43747 let origLockSsfi = flag(this, "lockSsfi"); 43748 flag(this, "lockSsfi", !0); 43749 let result = getter(_super).call(this); 43750 if (flag(this, "lockSsfi", origLockSsfi), result !== void 0) 43751 return result; 43752 let newAssertion = new Assertion(); 43753 return transferFlags(this, newAssertion), newAssertion; 43754 }, "overwritingPropertyGetter"), 43755 configurable: !0 43756 }); 43757} 43758__name(overwriteProperty, "overwriteProperty"); 43759function overwriteMethod(ctx, name, method) { 43760 let _method = ctx[name], _super = __name(function() { 43761 throw new Error(name + " is not a function"); 43762 }, "_super"); 43763 _method && typeof _method == "function" && (_super = _method); 43764 let overwritingMethodWrapper = __name(function() { 43765 flag(this, "lockSsfi") || flag(this, "ssfi", overwritingMethodWrapper); 43766 let origLockSsfi = flag(this, "lockSsfi"); 43767 flag(this, "lockSsfi", !0); 43768 let result = method(_super).apply(this, arguments); 43769 if (flag(this, "lockSsfi", origLockSsfi), result !== void 0) 43770 return result; 43771 let newAssertion = new Assertion(); 43772 return transferFlags(this, newAssertion), newAssertion; 43773 }, "overwritingMethodWrapper"); 43774 addLengthGuard(overwritingMethodWrapper, name, !1), ctx[name] = proxify(overwritingMethodWrapper, name); 43775} 43776__name(overwriteMethod, "overwriteMethod"); 43777var canSetPrototype = typeof Object.setPrototypeOf == "function", testFn = __name(function() { 43778}, "testFn"), excludeNames = Object.getOwnPropertyNames(testFn).filter(function(name) { 43779 let propDesc = Object.getOwnPropertyDescriptor(testFn, name); 43780 return typeof propDesc != "object" ? !0 : !propDesc.configurable; 43781}), call = Function.prototype.call, apply = Function.prototype.apply; 43782function addChainableMethod(ctx, name, method, chainingBehavior) { 43783 typeof chainingBehavior != "function" && (chainingBehavior = __name(function() { 43784 }, "chainingBehavior")); 43785 let chainableBehavior = { 43786 method, 43787 chainingBehavior 43788 }; 43789 ctx.__methods || (ctx.__methods = {}), ctx.__methods[name] = chainableBehavior, Object.defineProperty(ctx, name, { 43790 get: __name(function() { 43791 chainableBehavior.chainingBehavior.call(this); 43792 let chainableMethodWrapper = __name(function() { 43793 flag(this, "lockSsfi") || flag(this, "ssfi", chainableMethodWrapper); 43794 let result = chainableBehavior.method.apply(this, arguments); 43795 if (result !== void 0) 43796 return result; 43797 let newAssertion = new Assertion(); 43798 return transferFlags(this, newAssertion), newAssertion; 43799 }, "chainableMethodWrapper"); 43800 if (addLengthGuard(chainableMethodWrapper, name, !0), canSetPrototype) { 43801 let prototype = Object.create(this); 43802 prototype.call = call, prototype.apply = apply, Object.setPrototypeOf(chainableMethodWrapper, prototype); 43803 } else 43804 Object.getOwnPropertyNames(ctx).forEach(function(asserterName) { 43805 if (excludeNames.indexOf(asserterName) !== -1) 43806 return; 43807 let pd = Object.getOwnPropertyDescriptor(ctx, asserterName); 43808 Object.defineProperty(chainableMethodWrapper, asserterName, pd); 43809 }); 43810 return transferFlags(this, chainableMethodWrapper), proxify(chainableMethodWrapper); 43811 }, "chainableMethodGetter"), 43812 configurable: !0 43813 }); 43814} 43815__name(addChainableMethod, "addChainableMethod"); 43816function overwriteChainableMethod(ctx, name, method, chainingBehavior) { 43817 let chainableBehavior = ctx.__methods[name], _chainingBehavior = chainableBehavior.chainingBehavior; 43818 chainableBehavior.chainingBehavior = __name(function() { 43819 let result = chainingBehavior(_chainingBehavior).call(this); 43820 if (result !== void 0) 43821 return result; 43822 let newAssertion = new Assertion(); 43823 return transferFlags(this, newAssertion), newAssertion; 43824 }, "overwritingChainableMethodGetter"); 43825 let _method = chainableBehavior.method; 43826 chainableBehavior.method = __name(function() { 43827 let result = method(_method).apply(this, arguments); 43828 if (result !== void 0) 43829 return result; 43830 let newAssertion = new Assertion(); 43831 return transferFlags(this, newAssertion), newAssertion; 43832 }, "overwritingChainableMethodWrapper"); 43833} 43834__name(overwriteChainableMethod, "overwriteChainableMethod"); 43835function compareByInspect(a3, b) { 43836 return inspect22(a3) < inspect22(b) ? -1 : 1; 43837} 43838__name(compareByInspect, "compareByInspect"); 43839function getOwnEnumerablePropertySymbols(obj) { 43840 return typeof Object.getOwnPropertySymbols != "function" ? [] : Object.getOwnPropertySymbols(obj).filter(function(sym) { 43841 return Object.getOwnPropertyDescriptor(obj, sym).enumerable; 43842 }); 43843} 43844__name(getOwnEnumerablePropertySymbols, "getOwnEnumerablePropertySymbols"); 43845function getOwnEnumerableProperties(obj) { 43846 return Object.keys(obj).concat(getOwnEnumerablePropertySymbols(obj)); 43847} 43848__name(getOwnEnumerableProperties, "getOwnEnumerableProperties"); 43849var isNaN22 = Number.isNaN; 43850function isObjectType(obj) { 43851 let objectType = type(obj); 43852 return ["Array", "Object", "Function"].indexOf(objectType) !== -1; 43853} 43854__name(isObjectType, "isObjectType"); 43855function getOperator(obj, args) { 43856 let operator = flag(obj, "operator"), negate = flag(obj, "negate"), expected = args[3], msg = negate ? args[2] : args[1]; 43857 if (operator) 43858 return operator; 43859 if (typeof msg == "function" && (msg = msg()), msg = msg || "", !msg || /\shave\s/.test(msg)) 43860 return; 43861 let isObject7 = isObjectType(expected); 43862 return /\snot\s/.test(msg) ? isObject7 ? "notDeepStrictEqual" : "notStrictEqual" : isObject7 ? "deepStrictEqual" : "strictEqual"; 43863} 43864__name(getOperator, "getOperator"); 43865function getName(fn4) { 43866 return fn4.name; 43867} 43868__name(getName, "getName"); 43869function isRegExp22(obj) { 43870 return Object.prototype.toString.call(obj) === "[object RegExp]"; 43871} 43872__name(isRegExp22, "isRegExp"); 43873function isNumeric(obj) { 43874 return ["Number", "BigInt"].includes(type(obj)); 43875} 43876__name(isNumeric, "isNumeric"); 43877var { flag: flag2 } = utils_exports; 43878[ 43879 "to", 43880 "be", 43881 "been", 43882 "is", 43883 "and", 43884 "has", 43885 "have", 43886 "with", 43887 "that", 43888 "which", 43889 "at", 43890 "of", 43891 "same", 43892 "but", 43893 "does", 43894 "still", 43895 "also" 43896].forEach(function(chain) { 43897 Assertion.addProperty(chain); 43898}); 43899Assertion.addProperty("not", function() { 43900 flag2(this, "negate", !0); 43901}); 43902Assertion.addProperty("deep", function() { 43903 flag2(this, "deep", !0); 43904}); 43905Assertion.addProperty("nested", function() { 43906 flag2(this, "nested", !0); 43907}); 43908Assertion.addProperty("own", function() { 43909 flag2(this, "own", !0); 43910}); 43911Assertion.addProperty("ordered", function() { 43912 flag2(this, "ordered", !0); 43913}); 43914Assertion.addProperty("any", function() { 43915 flag2(this, "any", !0), flag2(this, "all", !1); 43916}); 43917Assertion.addProperty("all", function() { 43918 flag2(this, "all", !0), flag2(this, "any", !1); 43919}); 43920var functionTypes = { 43921 function: [ 43922 "function", 43923 "asyncfunction", 43924 "generatorfunction", 43925 "asyncgeneratorfunction" 43926 ], 43927 asyncfunction: ["asyncfunction", "asyncgeneratorfunction"], 43928 generatorfunction: ["generatorfunction", "asyncgeneratorfunction"], 43929 asyncgeneratorfunction: ["asyncgeneratorfunction"] 43930}; 43931function an(type32, msg) { 43932 msg && flag2(this, "message", msg), type32 = type32.toLowerCase(); 43933 let obj = flag2(this, "object"), article = ~["a", "e", "i", "o", "u"].indexOf(type32.charAt(0)) ? "an " : "a ", detectedType = type(obj).toLowerCase(); 43934 functionTypes.function.includes(type32) ? this.assert( 43935 functionTypes[type32].includes(detectedType), 43936 "expected #{this} to be " + article + type32, 43937 "expected #{this} not to be " + article + type32 43938 ) : this.assert( 43939 type32 === detectedType, 43940 "expected #{this} to be " + article + type32, 43941 "expected #{this} not to be " + article + type32 43942 ); 43943} 43944__name(an, "an"); 43945Assertion.addChainableMethod("an", an); 43946Assertion.addChainableMethod("a", an); 43947function SameValueZero(a3, b) { 43948 return isNaN22(a3) && isNaN22(b) || a3 === b; 43949} 43950__name(SameValueZero, "SameValueZero"); 43951function includeChainingBehavior() { 43952 flag2(this, "contains", !0); 43953} 43954__name(includeChainingBehavior, "includeChainingBehavior"); 43955function include(val, msg) { 43956 msg && flag2(this, "message", msg); 43957 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; 43958 flagMsg = flagMsg ? flagMsg + ": " : ""; 43959 let included = !1; 43960 switch (objType) { 43961 case "string": 43962 included = obj.indexOf(val) !== -1; 43963 break; 43964 case "weakset": 43965 if (isDeep) 43966 throw new AssertionError( 43967 flagMsg + "unable to use .deep.include with WeakSet", 43968 void 0, 43969 ssfi 43970 ); 43971 included = obj.has(val); 43972 break; 43973 case "map": 43974 obj.forEach(function(item) { 43975 included = included || isEql(item, val); 43976 }); 43977 break; 43978 case "set": 43979 isDeep ? obj.forEach(function(item) { 43980 included = included || isEql(item, val); 43981 }) : included = obj.has(val); 43982 break; 43983 case "array": 43984 isDeep ? included = obj.some(function(item) { 43985 return isEql(item, val); 43986 }) : included = obj.indexOf(val) !== -1; 43987 break; 43988 default: { 43989 if (val !== Object(val)) 43990 throw new AssertionError( 43991 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(), 43992 void 0, 43993 ssfi 43994 ); 43995 let props = Object.keys(val), firstErr = null, numErrs = 0; 43996 if (props.forEach(function(prop) { 43997 let propAssertion = new Assertion(obj); 43998 if (transferFlags(this, propAssertion, !0), flag2(propAssertion, "lockSsfi", !0), !negate || props.length === 1) { 43999 propAssertion.property(prop, val[prop]); 44000 return; 44001 } 44002 try { 44003 propAssertion.property(prop, val[prop]); 44004 } catch (err) { 44005 if (!check_error_exports.compatibleConstructor(err, AssertionError)) 44006 throw err; 44007 firstErr === null && (firstErr = err), numErrs++; 44008 } 44009 }, this), negate && props.length > 1 && numErrs === props.length) 44010 throw firstErr; 44011 return; 44012 } 44013 } 44014 this.assert( 44015 included, 44016 "expected #{this} to " + descriptor + "include " + inspect22(val), 44017 "expected #{this} to not " + descriptor + "include " + inspect22(val) 44018 ); 44019} 44020__name(include, "include"); 44021Assertion.addChainableMethod("include", include, includeChainingBehavior); 44022Assertion.addChainableMethod("contain", include, includeChainingBehavior); 44023Assertion.addChainableMethod("contains", include, includeChainingBehavior); 44024Assertion.addChainableMethod("includes", include, includeChainingBehavior); 44025Assertion.addProperty("ok", function() { 44026 this.assert( 44027 flag2(this, "object"), 44028 "expected #{this} to be truthy", 44029 "expected #{this} to be falsy" 44030 ); 44031}); 44032Assertion.addProperty("true", function() { 44033 this.assert( 44034 flag2(this, "object") === !0, 44035 "expected #{this} to be true", 44036 "expected #{this} to be false", 44037 !flag2(this, "negate") 44038 ); 44039}); 44040Assertion.addProperty("numeric", function() { 44041 let object = flag2(this, "object"); 44042 this.assert( 44043 ["Number", "BigInt"].includes(type(object)), 44044 "expected #{this} to be numeric", 44045 "expected #{this} to not be numeric", 44046 !flag2(this, "negate") 44047 ); 44048}); 44049Assertion.addProperty("callable", function() { 44050 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 = [ 44051 "Function", 44052 "AsyncFunction", 44053 "GeneratorFunction", 44054 "AsyncGeneratorFunction" 44055 ].includes(type(val)); 44056 if (isCallable3 && negate || !isCallable3 && !negate) 44057 throw new AssertionError(assertionMessage, void 0, ssfi); 44058}); 44059Assertion.addProperty("false", function() { 44060 this.assert( 44061 flag2(this, "object") === !1, 44062 "expected #{this} to be false", 44063 "expected #{this} to be true", 44064 !!flag2(this, "negate") 44065 ); 44066}); 44067Assertion.addProperty("null", function() { 44068 this.assert( 44069 flag2(this, "object") === null, 44070 "expected #{this} to be null", 44071 "expected #{this} not to be null" 44072 ); 44073}); 44074Assertion.addProperty("undefined", function() { 44075 this.assert( 44076 flag2(this, "object") === void 0, 44077 "expected #{this} to be undefined", 44078 "expected #{this} not to be undefined" 44079 ); 44080}); 44081Assertion.addProperty("NaN", function() { 44082 this.assert( 44083 isNaN22(flag2(this, "object")), 44084 "expected #{this} to be NaN", 44085 "expected #{this} not to be NaN" 44086 ); 44087}); 44088function assertExist() { 44089 let val = flag2(this, "object"); 44090 this.assert( 44091 val != null, 44092 "expected #{this} to exist", 44093 "expected #{this} to not exist" 44094 ); 44095} 44096__name(assertExist, "assertExist"); 44097Assertion.addProperty("exist", assertExist); 44098Assertion.addProperty("exists", assertExist); 44099Assertion.addProperty("empty", function() { 44100 let val = flag2(this, "object"), ssfi = flag2(this, "ssfi"), flagMsg = flag2(this, "message"), itemsCount; 44101 switch (flagMsg = flagMsg ? flagMsg + ": " : "", type(val).toLowerCase()) { 44102 case "array": 44103 case "string": 44104 itemsCount = val.length; 44105 break; 44106 case "map": 44107 case "set": 44108 itemsCount = val.size; 44109 break; 44110 case "weakmap": 44111 case "weakset": 44112 throw new AssertionError( 44113 flagMsg + ".empty was passed a weak collection", 44114 void 0, 44115 ssfi 44116 ); 44117 case "function": { 44118 let msg = flagMsg + ".empty was passed a function " + getName(val); 44119 throw new AssertionError(msg.trim(), void 0, ssfi); 44120 } 44121 default: 44122 if (val !== Object(val)) 44123 throw new AssertionError( 44124 flagMsg + ".empty was passed non-string primitive " + inspect22(val), 44125 void 0, 44126 ssfi 44127 ); 44128 itemsCount = Object.keys(val).length; 44129 } 44130 this.assert( 44131 itemsCount === 0, 44132 "expected #{this} to be empty", 44133 "expected #{this} not to be empty" 44134 ); 44135}); 44136function checkArguments() { 44137 let obj = flag2(this, "object"), type32 = type(obj); 44138 this.assert( 44139 type32 === "Arguments", 44140 "expected #{this} to be arguments but got " + type32, 44141 "expected #{this} to not be arguments" 44142 ); 44143} 44144__name(checkArguments, "checkArguments"); 44145Assertion.addProperty("arguments", checkArguments); 44146Assertion.addProperty("Arguments", checkArguments); 44147function assertEqual(val, msg) { 44148 msg && flag2(this, "message", msg); 44149 let obj = flag2(this, "object"); 44150 if (flag2(this, "deep")) { 44151 let prevLockSsfi = flag2(this, "lockSsfi"); 44152 flag2(this, "lockSsfi", !0), this.eql(val), flag2(this, "lockSsfi", prevLockSsfi); 44153 } else 44154 this.assert( 44155 val === obj, 44156 "expected #{this} to equal #{exp}", 44157 "expected #{this} to not equal #{exp}", 44158 val, 44159 this._obj, 44160 !0 44161 ); 44162} 44163__name(assertEqual, "assertEqual"); 44164Assertion.addMethod("equal", assertEqual); 44165Assertion.addMethod("equals", assertEqual); 44166Assertion.addMethod("eq", assertEqual); 44167function assertEql(obj, msg) { 44168 msg && flag2(this, "message", msg); 44169 let eql = flag2(this, "eql"); 44170 this.assert( 44171 eql(obj, flag2(this, "object")), 44172 "expected #{this} to deeply equal #{exp}", 44173 "expected #{this} to not deeply equal #{exp}", 44174 obj, 44175 this._obj, 44176 !0 44177 ); 44178} 44179__name(assertEql, "assertEql"); 44180Assertion.addMethod("eql", assertEql); 44181Assertion.addMethod("eqls", assertEql); 44182function assertAbove(n, msg) { 44183 msg && flag2(this, "message", msg); 44184 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(); 44185 if (doLength && objType !== "map" && objType !== "set" && new Assertion(obj, flagMsg, ssfi, !0).to.have.property("length"), !doLength && objType === "date" && nType !== "date") 44186 throw new AssertionError( 44187 msgPrefix + "the argument to above must be a date", 44188 void 0, 44189 ssfi 44190 ); 44191 if (!isNumeric(n) && (doLength || isNumeric(obj))) 44192 throw new AssertionError( 44193 msgPrefix + "the argument to above must be a number", 44194 void 0, 44195 ssfi 44196 ); 44197 if (!doLength && objType !== "date" && !isNumeric(obj)) { 44198 let printObj = objType === "string" ? "'" + obj + "'" : obj; 44199 throw new AssertionError( 44200 msgPrefix + "expected " + printObj + " to be a number or a date", 44201 void 0, 44202 ssfi 44203 ); 44204 } 44205 if (doLength) { 44206 let descriptor = "length", itemsCount; 44207 objType === "map" || objType === "set" ? (descriptor = "size", itemsCount = obj.size) : itemsCount = obj.length, this.assert( 44208 itemsCount > n, 44209 "expected #{this} to have a " + descriptor + " above #{exp} but got #{act}", 44210 "expected #{this} to not have a " + descriptor + " above #{exp}", 44211 n, 44212 itemsCount 44213 ); 44214 } else 44215 this.assert( 44216 obj > n, 44217 "expected #{this} to be above #{exp}", 44218 "expected #{this} to be at most #{exp}", 44219 n 44220 ); 44221} 44222__name(assertAbove, "assertAbove"); 44223Assertion.addMethod("above", assertAbove); 44224Assertion.addMethod("gt", assertAbove); 44225Assertion.addMethod("greaterThan", assertAbove); 44226function assertLeast(n, msg) { 44227 msg && flag2(this, "message", msg); 44228 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; 44229 if (doLength && objType !== "map" && objType !== "set" && new Assertion(obj, flagMsg, ssfi, !0).to.have.property("length"), !doLength && objType === "date" && nType !== "date") 44230 errorMessage = msgPrefix + "the argument to least must be a date"; 44231 else if (!isNumeric(n) && (doLength || isNumeric(obj))) 44232 errorMessage = msgPrefix + "the argument to least must be a number"; 44233 else if (!doLength && objType !== "date" && !isNumeric(obj)) { 44234 let printObj = objType === "string" ? "'" + obj + "'" : obj; 44235 errorMessage = msgPrefix + "expected " + printObj + " to be a number or a date"; 44236 } else 44237 shouldThrow = !1; 44238 if (shouldThrow) 44239 throw new AssertionError(errorMessage, void 0, ssfi); 44240 if (doLength) { 44241 let descriptor = "length", itemsCount; 44242 objType === "map" || objType === "set" ? (descriptor = "size", itemsCount = obj.size) : itemsCount = obj.length, this.assert( 44243 itemsCount >= n, 44244 "expected #{this} to have a " + descriptor + " at least #{exp} but got #{act}", 44245 "expected #{this} to have a " + descriptor + " below #{exp}", 44246 n, 44247 itemsCount 44248 ); 44249 } else 44250 this.assert( 44251 obj >= n, 44252 "expected #{this} to be at least #{exp}", 44253 "expected #{this} to be below #{exp}", 44254 n 44255 ); 44256} 44257__name(assertLeast, "assertLeast"); 44258Assertion.addMethod("least", assertLeast); 44259Assertion.addMethod("gte", assertLeast); 44260Assertion.addMethod("greaterThanOrEqual", assertLeast); 44261function assertBelow(n, msg) { 44262 msg && flag2(this, "message", msg); 44263 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; 44264 if (doLength && objType !== "map" && objType !== "set" && new Assertion(obj, flagMsg, ssfi, !0).to.have.property("length"), !doLength && objType === "date" && nType !== "date") 44265 errorMessage = msgPrefix + "the argument to below must be a date"; 44266 else if (!isNumeric(n) && (doLength || isNumeric(obj))) 44267 errorMessage = msgPrefix + "the argument to below must be a number"; 44268 else if (!doLength && objType !== "date" && !isNumeric(obj)) { 44269 let printObj = objType === "string" ? "'" + obj + "'" : obj; 44270 errorMessage = msgPrefix + "expected " + printObj + " to be a number or a date"; 44271 } else 44272 shouldThrow = !1; 44273 if (shouldThrow) 44274 throw new AssertionError(errorMessage, void 0, ssfi); 44275 if (doLength) { 44276 let descriptor = "length", itemsCount; 44277 objType === "map" || objType === "set" ? (descriptor = "size", itemsCount = obj.size) : itemsCount = obj.length, this.assert( 44278 itemsCount < n, 44279 "expected #{this} to have a " + descriptor + " below #{exp} but got #{act}", 44280 "expected #{this} to not have a " + descriptor + " below #{exp}", 44281 n, 44282 itemsCount 44283 ); 44284 } else 44285 this.assert( 44286 obj < n, 44287 "expected #{this} to be below #{exp}", 44288 "expected #{this} to be at least #{exp}", 44289 n 44290 ); 44291} 44292__name(assertBelow, "assertBelow"); 44293Assertion.addMethod("below", assertBelow); 44294Assertion.addMethod("lt", assertBelow); 44295Assertion.addMethod("lessThan", assertBelow); 44296function assertMost(n, msg) { 44297 msg && flag2(this, "message", msg); 44298 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; 44299 if (doLength && objType !== "map" && objType !== "set" && new Assertion(obj, flagMsg, ssfi, !0).to.have.property("length"), !doLength && objType === "date" && nType !== "date") 44300 errorMessage = msgPrefix + "the argument to most must be a date"; 44301 else if (!isNumeric(n) && (doLength || isNumeric(obj))) 44302 errorMessage = msgPrefix + "the argument to most must be a number"; 44303 else if (!doLength && objType !== "date" && !isNumeric(obj)) { 44304 let printObj = objType === "string" ? "'" + obj + "'" : obj; 44305 errorMessage = msgPrefix + "expected " + printObj + " to be a number or a date"; 44306 } else 44307 shouldThrow = !1; 44308 if (shouldThrow) 44309 throw new AssertionError(errorMessage, void 0, ssfi); 44310 if (doLength) { 44311 let descriptor = "length", itemsCount; 44312 objType === "map" || objType === "set" ? (descriptor = "size", itemsCount = obj.size) : itemsCount = obj.length, this.assert( 44313 itemsCount <= n, 44314 "expected #{this} to have a " + descriptor + " at most #{exp} but got #{act}", 44315 "expected #{this} to have a " + descriptor + " above #{exp}", 44316 n, 44317 itemsCount 44318 ); 44319 } else 44320 this.assert( 44321 obj <= n, 44322 "expected #{this} to be at most #{exp}", 44323 "expected #{this} to be above #{exp}", 44324 n 44325 ); 44326} 44327__name(assertMost, "assertMost"); 44328Assertion.addMethod("most", assertMost); 44329Assertion.addMethod("lte", assertMost); 44330Assertion.addMethod("lessThanOrEqual", assertMost); 44331Assertion.addMethod("within", function(start2, finish, msg) { 44332 msg && flag2(this, "message", msg); 44333 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; 44334 if (doLength && objType !== "map" && objType !== "set" && new Assertion(obj, flagMsg, ssfi, !0).to.have.property("length"), !doLength && objType === "date" && (startType !== "date" || finishType !== "date")) 44335 errorMessage = msgPrefix + "the arguments to within must be dates"; 44336 else if ((!isNumeric(start2) || !isNumeric(finish)) && (doLength || isNumeric(obj))) 44337 errorMessage = msgPrefix + "the arguments to within must be numbers"; 44338 else if (!doLength && objType !== "date" && !isNumeric(obj)) { 44339 let printObj = objType === "string" ? "'" + obj + "'" : obj; 44340 errorMessage = msgPrefix + "expected " + printObj + " to be a number or a date"; 44341 } else 44342 shouldThrow = !1; 44343 if (shouldThrow) 44344 throw new AssertionError(errorMessage, void 0, ssfi); 44345 if (doLength) { 44346 let descriptor = "length", itemsCount; 44347 objType === "map" || objType === "set" ? (descriptor = "size", itemsCount = obj.size) : itemsCount = obj.length, this.assert( 44348 itemsCount >= start2 && itemsCount <= finish, 44349 "expected #{this} to have a " + descriptor + " within " + range, 44350 "expected #{this} to not have a " + descriptor + " within " + range 44351 ); 44352 } else 44353 this.assert( 44354 obj >= start2 && obj <= finish, 44355 "expected #{this} to be within " + range, 44356 "expected #{this} to not be within " + range 44357 ); 44358}); 44359function assertInstanceOf(constructor, msg) { 44360 msg && flag2(this, "message", msg); 44361 let target = flag2(this, "object"), ssfi = flag2(this, "ssfi"), flagMsg = flag2(this, "message"), isInstanceOf; 44362 try { 44363 isInstanceOf = target instanceof constructor; 44364 } catch (err) { 44365 throw err instanceof TypeError ? (flagMsg = flagMsg ? flagMsg + ": " : "", new AssertionError( 44366 flagMsg + "The instanceof assertion needs a constructor but " + type(constructor) + " was given.", 44367 void 0, 44368 ssfi 44369 )) : err; 44370 } 44371 let name = getName(constructor); 44372 name == null && (name = "an unnamed constructor"), this.assert( 44373 isInstanceOf, 44374 "expected #{this} to be an instance of " + name, 44375 "expected #{this} to not be an instance of " + name 44376 ); 44377} 44378__name(assertInstanceOf, "assertInstanceOf"); 44379Assertion.addMethod("instanceof", assertInstanceOf); 44380Assertion.addMethod("instanceOf", assertInstanceOf); 44381function assertProperty(name, val, msg) { 44382 msg && flag2(this, "message", msg); 44383 let isNested = flag2(this, "nested"), isOwn = flag2(this, "own"), flagMsg = flag2(this, "message"), obj = flag2(this, "object"), ssfi = flag2(this, "ssfi"), nameType = typeof name; 44384 if (flagMsg = flagMsg ? flagMsg + ": " : "", isNested) { 44385 if (nameType !== "string") 44386 throw new AssertionError( 44387 flagMsg + "the argument to property must be a string when using nested syntax", 44388 void 0, 44389 ssfi 44390 ); 44391 } else if (nameType !== "string" && nameType !== "number" && nameType !== "symbol") 44392 throw new AssertionError( 44393 flagMsg + "the argument to property must be a string, number, or symbol", 44394 void 0, 44395 ssfi 44396 ); 44397 if (isNested && isOwn) 44398 throw new AssertionError( 44399 flagMsg + 'The "nested" and "own" flags cannot be combined.', 44400 void 0, 44401 ssfi 44402 ); 44403 if (obj == null) 44404 throw new AssertionError( 44405 flagMsg + "Target cannot be null or undefined.", 44406 void 0, 44407 ssfi 44408 ); 44409 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 = ""; 44410 isDeep && (descriptor += "deep "), isOwn && (descriptor += "own "), isNested && (descriptor += "nested "), descriptor += "property "; 44411 let hasProperty2; 44412 isOwn ? hasProperty2 = Object.prototype.hasOwnProperty.call(obj, name) : isNested ? hasProperty2 = pathInfo.exists : hasProperty2 = hasProperty(obj, name), (!negate || arguments.length === 1) && this.assert( 44413 hasProperty2, 44414 "expected #{this} to have " + descriptor + inspect22(name), 44415 "expected #{this} to not have " + descriptor + inspect22(name) 44416 ), arguments.length > 1 && this.assert( 44417 hasProperty2 && isEql(val, value), 44418 "expected #{this} to have " + descriptor + inspect22(name) + " of #{exp}, but got #{act}", 44419 "expected #{this} to not have " + descriptor + inspect22(name) + " of #{act}", 44420 val, 44421 value 44422 ), flag2(this, "object", value); 44423} 44424__name(assertProperty, "assertProperty"); 44425Assertion.addMethod("property", assertProperty); 44426function assertOwnProperty(_name, _value, _msg) { 44427 flag2(this, "own", !0), assertProperty.apply(this, arguments); 44428} 44429__name(assertOwnProperty, "assertOwnProperty"); 44430Assertion.addMethod("ownProperty", assertOwnProperty); 44431Assertion.addMethod("haveOwnProperty", assertOwnProperty); 44432function assertOwnPropertyDescriptor(name, descriptor, msg) { 44433 typeof descriptor == "string" && (msg = descriptor, descriptor = null), msg && flag2(this, "message", msg); 44434 let obj = flag2(this, "object"), actualDescriptor = Object.getOwnPropertyDescriptor(Object(obj), name), eql = flag2(this, "eql"); 44435 actualDescriptor && descriptor ? this.assert( 44436 eql(descriptor, actualDescriptor), 44437 "expected the own property descriptor for " + inspect22(name) + " on #{this} to match " + inspect22(descriptor) + ", got " + inspect22(actualDescriptor), 44438 "expected the own property descriptor for " + inspect22(name) + " on #{this} to not match " + inspect22(descriptor), 44439 descriptor, 44440 actualDescriptor, 44441 !0 44442 ) : this.assert( 44443 actualDescriptor, 44444 "expected #{this} to have an own property descriptor for " + inspect22(name), 44445 "expected #{this} to not have an own property descriptor for " + inspect22(name) 44446 ), flag2(this, "object", actualDescriptor); 44447} 44448__name(assertOwnPropertyDescriptor, "assertOwnPropertyDescriptor"); 44449Assertion.addMethod("ownPropertyDescriptor", assertOwnPropertyDescriptor); 44450Assertion.addMethod("haveOwnPropertyDescriptor", assertOwnPropertyDescriptor); 44451function assertLengthChain() { 44452 flag2(this, "doLength", !0); 44453} 44454__name(assertLengthChain, "assertLengthChain"); 44455function assertLength(n, msg) { 44456 msg && flag2(this, "message", msg); 44457 let obj = flag2(this, "object"), objType = type(obj).toLowerCase(), flagMsg = flag2(this, "message"), ssfi = flag2(this, "ssfi"), descriptor = "length", itemsCount; 44458 switch (objType) { 44459 case "map": 44460 case "set": 44461 descriptor = "size", itemsCount = obj.size; 44462 break; 44463 default: 44464 new Assertion(obj, flagMsg, ssfi, !0).to.have.property("length"), itemsCount = obj.length; 44465 } 44466 this.assert( 44467 itemsCount == n, 44468 "expected #{this} to have a " + descriptor + " of #{exp} but got #{act}", 44469 "expected #{this} to not have a " + descriptor + " of #{act}", 44470 n, 44471 itemsCount 44472 ); 44473} 44474__name(assertLength, "assertLength"); 44475Assertion.addChainableMethod("length", assertLength, assertLengthChain); 44476Assertion.addChainableMethod("lengthOf", assertLength, assertLengthChain); 44477function assertMatch(re, msg) { 44478 msg && flag2(this, "message", msg); 44479 let obj = flag2(this, "object"); 44480 this.assert( 44481 re.exec(obj), 44482 "expected #{this} to match " + re, 44483 "expected #{this} not to match " + re 44484 ); 44485} 44486__name(assertMatch, "assertMatch"); 44487Assertion.addMethod("match", assertMatch); 44488Assertion.addMethod("matches", assertMatch); 44489Assertion.addMethod("string", function(str2, msg) { 44490 msg && flag2(this, "message", msg); 44491 let obj = flag2(this, "object"), flagMsg = flag2(this, "message"), ssfi = flag2(this, "ssfi"); 44492 new Assertion(obj, flagMsg, ssfi, !0).is.a("string"), this.assert( 44493 ~obj.indexOf(str2), 44494 "expected #{this} to contain " + inspect22(str2), 44495 "expected #{this} to not contain " + inspect22(str2) 44496 ); 44497}); 44498function assertKeys(keys3) { 44499 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"); 44500 flagMsg = flagMsg ? flagMsg + ": " : ""; 44501 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"; 44502 if (objType === "Map" || objType === "Set") 44503 deepStr = isDeep ? "deeply " : "", actual = [], obj.forEach(function(val, key) { 44504 actual.push(key); 44505 }), keysType !== "Array" && (keys3 = Array.prototype.slice.call(arguments)); 44506 else { 44507 switch (actual = getOwnEnumerableProperties(obj), keysType) { 44508 case "Array": 44509 if (arguments.length > 1) 44510 throw new AssertionError(mixedArgsMsg, void 0, ssfi); 44511 break; 44512 case "Object": 44513 if (arguments.length > 1) 44514 throw new AssertionError(mixedArgsMsg, void 0, ssfi); 44515 keys3 = Object.keys(keys3); 44516 break; 44517 default: 44518 keys3 = Array.prototype.slice.call(arguments); 44519 } 44520 keys3 = keys3.map(function(val) { 44521 return typeof val == "symbol" ? val : String(val); 44522 }); 44523 } 44524 if (!keys3.length) 44525 throw new AssertionError(flagMsg + "keys required", void 0, ssfi); 44526 let len = keys3.length, any = flag2(this, "any"), all = flag2(this, "all"), expected = keys3, isEql = isDeep ? flag2(this, "eql") : (val1, val2) => val1 === val2; 44527 if (!any && !all && (all = !0), any && (ok = expected.some(function(expectedKey) { 44528 return actual.some(function(actualKey) { 44529 return isEql(expectedKey, actualKey); 44530 }); 44531 })), all && (ok = expected.every(function(expectedKey) { 44532 return actual.some(function(actualKey) { 44533 return isEql(expectedKey, actualKey); 44534 }); 44535 }), flag2(this, "contains") || (ok = ok && keys3.length == actual.length)), len > 1) { 44536 keys3 = keys3.map(function(key) { 44537 return inspect22(key); 44538 }); 44539 let last2 = keys3.pop(); 44540 all && (str2 = keys3.join(", ") + ", and " + last2), any && (str2 = keys3.join(", ") + ", or " + last2); 44541 } else 44542 str2 = inspect22(keys3[0]); 44543 str2 = (len > 1 ? "keys " : "key ") + str2, str2 = (flag2(this, "contains") ? "contain " : "have ") + str2, this.assert( 44544 ok, 44545 "expected #{this} to " + deepStr + str2, 44546 "expected #{this} to not " + deepStr + str2, 44547 expected.slice(0).sort(compareByInspect), 44548 actual.sort(compareByInspect), 44549 !0 44550 ); 44551} 44552__name(assertKeys, "assertKeys"); 44553Assertion.addMethod("keys", assertKeys); 44554Assertion.addMethod("key", assertKeys); 44555function assertThrows(errorLike, errMsgMatcher, msg) { 44556 msg && flag2(this, "message", msg); 44557 let obj = flag2(this, "object"), ssfi = flag2(this, "ssfi"), flagMsg = flag2(this, "message"), negate = flag2(this, "negate") || !1; 44558 new Assertion(obj, flagMsg, ssfi, !0).is.a("function"), (isRegExp22(errorLike) || typeof errorLike == "string") && (errMsgMatcher = errorLike, errorLike = null); 44559 let caughtErr, errorWasThrown = !1; 44560 try { 44561 obj(); 44562 } catch (err) { 44563 errorWasThrown = !0, caughtErr = err; 44564 } 44565 let everyArgIsUndefined = errorLike === void 0 && errMsgMatcher === void 0, everyArgIsDefined = !!(errorLike && errMsgMatcher), errorLikeFail = !1, errMsgMatcherFail = !1; 44566 if (everyArgIsUndefined || !everyArgIsUndefined && !negate) { 44567 let errorLikeString = "an error"; 44568 errorLike instanceof Error ? errorLikeString = "#{exp}" : errorLike && (errorLikeString = check_error_exports.getConstructorName(errorLike)); 44569 let actual = caughtErr; 44570 if (caughtErr instanceof Error) 44571 actual = caughtErr.toString(); 44572 else if (typeof caughtErr == "string") 44573 actual = caughtErr; 44574 else if (caughtErr && (typeof caughtErr == "object" || typeof caughtErr == "function")) 44575 try { 44576 actual = check_error_exports.getConstructorName(caughtErr); 44577 } catch { 44578 } 44579 this.assert( 44580 errorWasThrown, 44581 "expected #{this} to throw " + errorLikeString, 44582 "expected #{this} to not throw an error but #{act} was thrown", 44583 errorLike && errorLike.toString(), 44584 actual 44585 ); 44586 } 44587 if (errorLike && caughtErr && (errorLike instanceof Error && check_error_exports.compatibleInstance( 44588 caughtErr, 44589 errorLike 44590 ) === negate && (everyArgIsDefined && negate ? errorLikeFail = !0 : this.assert( 44591 negate, 44592 "expected #{this} to throw #{exp} but #{act} was thrown", 44593 "expected #{this} to not throw #{exp}" + (caughtErr && !negate ? " but #{act} was thrown" : ""), 44594 errorLike.toString(), 44595 caughtErr.toString() 44596 )), check_error_exports.compatibleConstructor( 44597 caughtErr, 44598 errorLike 44599 ) === negate && (everyArgIsDefined && negate ? errorLikeFail = !0 : this.assert( 44600 negate, 44601 "expected #{this} to throw #{exp} but #{act} was thrown", 44602 "expected #{this} to not throw #{exp}" + (caughtErr ? " but #{act} was thrown" : ""), 44603 errorLike instanceof Error ? errorLike.toString() : errorLike && check_error_exports.getConstructorName(errorLike), 44604 caughtErr instanceof Error ? caughtErr.toString() : caughtErr && check_error_exports.getConstructorName(caughtErr) 44605 ))), caughtErr && errMsgMatcher !== void 0 && errMsgMatcher !== null) { 44606 let placeholder = "including"; 44607 isRegExp22(errMsgMatcher) && (placeholder = "matching"), check_error_exports.compatibleMessage( 44608 caughtErr, 44609 errMsgMatcher 44610 ) === negate && (everyArgIsDefined && negate ? errMsgMatcherFail = !0 : this.assert( 44611 negate, 44612 "expected #{this} to throw error " + placeholder + " #{exp} but got #{act}", 44613 "expected #{this} to throw error not " + placeholder + " #{exp}", 44614 errMsgMatcher, 44615 check_error_exports.getMessage(caughtErr) 44616 )); 44617 } 44618 errorLikeFail && errMsgMatcherFail && this.assert( 44619 negate, 44620 "expected #{this} to throw #{exp} but #{act} was thrown", 44621 "expected #{this} to not throw #{exp}" + (caughtErr ? " but #{act} was thrown" : ""), 44622 errorLike instanceof Error ? errorLike.toString() : errorLike && check_error_exports.getConstructorName(errorLike), 44623 caughtErr instanceof Error ? caughtErr.toString() : caughtErr && check_error_exports.getConstructorName(caughtErr) 44624 ), flag2(this, "object", caughtErr); 44625} 44626__name(assertThrows, "assertThrows"); 44627Assertion.addMethod("throw", assertThrows); 44628Assertion.addMethod("throws", assertThrows); 44629Assertion.addMethod("Throw", assertThrows); 44630function respondTo(method, msg) { 44631 msg && flag2(this, "message", msg); 44632 let obj = flag2(this, "object"), itself = flag2(this, "itself"), context = typeof obj == "function" && !itself ? obj.prototype[method] : obj[method]; 44633 this.assert( 44634 typeof context == "function", 44635 "expected #{this} to respond to " + inspect22(method), 44636 "expected #{this} to not respond to " + inspect22(method) 44637 ); 44638} 44639__name(respondTo, "respondTo"); 44640Assertion.addMethod("respondTo", respondTo); 44641Assertion.addMethod("respondsTo", respondTo); 44642Assertion.addProperty("itself", function() { 44643 flag2(this, "itself", !0); 44644}); 44645function satisfy(matcher, msg) { 44646 msg && flag2(this, "message", msg); 44647 let obj = flag2(this, "object"), result = matcher(obj); 44648 this.assert( 44649 result, 44650 "expected #{this} to satisfy " + objDisplay(matcher), 44651 "expected #{this} to not satisfy" + objDisplay(matcher), 44652 !flag2(this, "negate"), 44653 result 44654 ); 44655} 44656__name(satisfy, "satisfy"); 44657Assertion.addMethod("satisfy", satisfy); 44658Assertion.addMethod("satisfies", satisfy); 44659function closeTo(expected, delta, msg) { 44660 msg && flag2(this, "message", msg); 44661 let obj = flag2(this, "object"), flagMsg = flag2(this, "message"), ssfi = flag2(this, "ssfi"); 44662 new Assertion(obj, flagMsg, ssfi, !0).is.numeric; 44663 let message = "A `delta` value is required for `closeTo`"; 44664 if (delta == null) 44665 throw new AssertionError( 44666 flagMsg ? `${flagMsg}: ${message}` : message, 44667 void 0, 44668 ssfi 44669 ); 44670 if (new Assertion(delta, flagMsg, ssfi, !0).is.numeric, message = "A `expected` value is required for `closeTo`", expected == null) 44671 throw new AssertionError( 44672 flagMsg ? `${flagMsg}: ${message}` : message, 44673 void 0, 44674 ssfi 44675 ); 44676 new Assertion(expected, flagMsg, ssfi, !0).is.numeric; 44677 let abs2 = __name((x) => x < 0n ? -x : x, "abs"), strip = __name((number) => parseFloat(parseFloat(number).toPrecision(12)), "strip"); 44678 this.assert( 44679 strip(abs2(obj - expected)) <= delta, 44680 "expected #{this} to be close to " + expected + " +/- " + delta, 44681 "expected #{this} not to be close to " + expected + " +/- " + delta 44682 ); 44683} 44684__name(closeTo, "closeTo"); 44685Assertion.addMethod("closeTo", closeTo); 44686Assertion.addMethod("approximately", closeTo); 44687function isSubsetOf(_subset, _superset, cmp, contains2, ordered) { 44688 let superset = Array.from(_superset), subset = Array.from(_subset); 44689 if (!contains2) { 44690 if (subset.length !== superset.length) return !1; 44691 superset = superset.slice(); 44692 } 44693 return subset.every(function(elem, idx) { 44694 if (ordered) return cmp ? cmp(elem, superset[idx]) : elem === superset[idx]; 44695 if (!cmp) { 44696 let matchIdx = superset.indexOf(elem); 44697 return matchIdx === -1 ? !1 : (contains2 || superset.splice(matchIdx, 1), !0); 44698 } 44699 return superset.some(function(elem2, matchIdx) { 44700 return cmp(elem, elem2) ? (contains2 || superset.splice(matchIdx, 1), !0) : !1; 44701 }); 44702 }); 44703} 44704__name(isSubsetOf, "isSubsetOf"); 44705Assertion.addMethod("members", function(subset, msg) { 44706 msg && flag2(this, "message", msg); 44707 let obj = flag2(this, "object"), flagMsg = flag2(this, "message"), ssfi = flag2(this, "ssfi"); 44708 new Assertion(obj, flagMsg, ssfi, !0).to.be.iterable, new Assertion(subset, flagMsg, ssfi, !0).to.be.iterable; 44709 let contains2 = flag2(this, "contains"), ordered = flag2(this, "ordered"), subject, failMsg, failNegateMsg; 44710 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}"); 44711 let cmp = flag2(this, "deep") ? flag2(this, "eql") : void 0; 44712 this.assert( 44713 isSubsetOf(subset, obj, cmp, contains2, ordered), 44714 failMsg, 44715 failNegateMsg, 44716 subset, 44717 obj, 44718 !0 44719 ); 44720}); 44721Assertion.addProperty("iterable", function(msg) { 44722 msg && flag2(this, "message", msg); 44723 let obj = flag2(this, "object"); 44724 this.assert( 44725 obj != null && obj[Symbol.iterator], 44726 "expected #{this} to be an iterable", 44727 "expected #{this} to not be an iterable", 44728 obj 44729 ); 44730}); 44731function oneOf(list, msg) { 44732 msg && flag2(this, "message", msg); 44733 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"); 44734 new Assertion(list, flagMsg, ssfi, !0).to.be.an("array"), contains2 ? this.assert( 44735 list.some(function(possibility) { 44736 return expected.indexOf(possibility) > -1; 44737 }), 44738 "expected #{this} to contain one of #{exp}", 44739 "expected #{this} to not contain one of #{exp}", 44740 list, 44741 expected 44742 ) : isDeep ? this.assert( 44743 list.some(function(possibility) { 44744 return eql(expected, possibility); 44745 }), 44746 "expected #{this} to deeply equal one of #{exp}", 44747 "expected #{this} to deeply equal one of #{exp}", 44748 list, 44749 expected 44750 ) : this.assert( 44751 list.indexOf(expected) > -1, 44752 "expected #{this} to be one of #{exp}", 44753 "expected #{this} to not be one of #{exp}", 44754 list, 44755 expected 44756 ); 44757} 44758__name(oneOf, "oneOf"); 44759Assertion.addMethod("oneOf", oneOf); 44760function assertChanges(subject, prop, msg) { 44761 msg && flag2(this, "message", msg); 44762 let fn4 = flag2(this, "object"), flagMsg = flag2(this, "message"), ssfi = flag2(this, "ssfi"); 44763 new Assertion(fn4, flagMsg, ssfi, !0).is.a("function"); 44764 let initial2; 44765 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(); 44766 let final = prop == null ? subject() : subject[prop], msgObj = prop == null ? initial2 : "." + prop; 44767 flag2(this, "deltaMsgObj", msgObj), flag2(this, "initialDeltaValue", initial2), flag2(this, "finalDeltaValue", final), flag2(this, "deltaBehavior", "change"), flag2(this, "realDelta", final !== initial2), this.assert( 44768 initial2 !== final, 44769 "expected " + msgObj + " to change", 44770 "expected " + msgObj + " to not change" 44771 ); 44772} 44773__name(assertChanges, "assertChanges"); 44774Assertion.addMethod("change", assertChanges); 44775Assertion.addMethod("changes", assertChanges); 44776function assertIncreases(subject, prop, msg) { 44777 msg && flag2(this, "message", msg); 44778 let fn4 = flag2(this, "object"), flagMsg = flag2(this, "message"), ssfi = flag2(this, "ssfi"); 44779 new Assertion(fn4, flagMsg, ssfi, !0).is.a("function"); 44780 let initial2; 44781 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(); 44782 let final = prop == null ? subject() : subject[prop], msgObj = prop == null ? initial2 : "." + prop; 44783 flag2(this, "deltaMsgObj", msgObj), flag2(this, "initialDeltaValue", initial2), flag2(this, "finalDeltaValue", final), flag2(this, "deltaBehavior", "increase"), flag2(this, "realDelta", final - initial2), this.assert( 44784 final - initial2 > 0, 44785 "expected " + msgObj + " to increase", 44786 "expected " + msgObj + " to not increase" 44787 ); 44788} 44789__name(assertIncreases, "assertIncreases"); 44790Assertion.addMethod("increase", assertIncreases); 44791Assertion.addMethod("increases", assertIncreases); 44792function assertDecreases(subject, prop, msg) { 44793 msg && flag2(this, "message", msg); 44794 let fn4 = flag2(this, "object"), flagMsg = flag2(this, "message"), ssfi = flag2(this, "ssfi"); 44795 new Assertion(fn4, flagMsg, ssfi, !0).is.a("function"); 44796 let initial2; 44797 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(); 44798 let final = prop == null ? subject() : subject[prop], msgObj = prop == null ? initial2 : "." + prop; 44799 flag2(this, "deltaMsgObj", msgObj), flag2(this, "initialDeltaValue", initial2), flag2(this, "finalDeltaValue", final), flag2(this, "deltaBehavior", "decrease"), flag2(this, "realDelta", initial2 - final), this.assert( 44800 final - initial2 < 0, 44801 "expected " + msgObj + " to decrease", 44802 "expected " + msgObj + " to not decrease" 44803 ); 44804} 44805__name(assertDecreases, "assertDecreases"); 44806Assertion.addMethod("decrease", assertDecreases); 44807Assertion.addMethod("decreases", assertDecreases); 44808function assertDelta(delta, msg) { 44809 msg && flag2(this, "message", msg); 44810 let msgObj = flag2(this, "deltaMsgObj"), initial2 = flag2(this, "initialDeltaValue"), final = flag2(this, "finalDeltaValue"), behavior2 = flag2(this, "deltaBehavior"), realDelta = flag2(this, "realDelta"), expression; 44811 behavior2 === "change" ? expression = Math.abs(final - initial2) === Math.abs(delta) : expression = realDelta === Math.abs(delta), this.assert( 44812 expression, 44813 "expected " + msgObj + " to " + behavior2 + " by " + delta, 44814 "expected " + msgObj + " to not " + behavior2 + " by " + delta 44815 ); 44816} 44817__name(assertDelta, "assertDelta"); 44818Assertion.addMethod("by", assertDelta); 44819Assertion.addProperty("extensible", function() { 44820 let obj = flag2(this, "object"), isExtensible = obj === Object(obj) && Object.isExtensible(obj); 44821 this.assert( 44822 isExtensible, 44823 "expected #{this} to be extensible", 44824 "expected #{this} to not be extensible" 44825 ); 44826}); 44827Assertion.addProperty("sealed", function() { 44828 let obj = flag2(this, "object"), isSealed = obj === Object(obj) ? Object.isSealed(obj) : !0; 44829 this.assert( 44830 isSealed, 44831 "expected #{this} to be sealed", 44832 "expected #{this} to not be sealed" 44833 ); 44834}); 44835Assertion.addProperty("frozen", function() { 44836 let obj = flag2(this, "object"), isFrozen = obj === Object(obj) ? Object.isFrozen(obj) : !0; 44837 this.assert( 44838 isFrozen, 44839 "expected #{this} to be frozen", 44840 "expected #{this} to not be frozen" 44841 ); 44842}); 44843Assertion.addProperty("finite", function(_msg) { 44844 let obj = flag2(this, "object"); 44845 this.assert( 44846 typeof obj == "number" && isFinite(obj), 44847 "expected #{this} to be a finite number", 44848 "expected #{this} to not be a finite number" 44849 ); 44850}); 44851function compareSubset(expected, actual) { 44852 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) { 44853 return actual.some(function(act) { 44854 return compareSubset(exp, act); 44855 }); 44856 }) : !1 : expected instanceof Date ? actual instanceof Date ? expected.getTime() === actual.getTime() : !1 : Object.keys(expected).every(function(key) { 44857 let expectedValue = expected[key], actualValue = actual[key]; 44858 return typeof expectedValue == "object" && expectedValue !== null && actualValue !== null ? compareSubset(expectedValue, actualValue) : typeof expectedValue == "function" ? expectedValue(actualValue) : actualValue === expectedValue; 44859 }) : !1; 44860} 44861__name(compareSubset, "compareSubset"); 44862Assertion.addMethod("containSubset", function(expected) { 44863 let actual = flag(this, "object"), showDiff = config2.showDiff; 44864 this.assert( 44865 compareSubset(expected, actual), 44866 "expected #{act} to contain subset #{exp}", 44867 "expected #{act} to not contain subset #{exp}", 44868 expected, 44869 actual, 44870 showDiff 44871 ); 44872}); 44873function expect(val, message) { 44874 return new Assertion(val, message); 44875} 44876__name(expect, "expect"); 44877expect.fail = function(actual, expected, message, operator) { 44878 throw arguments.length < 2 && (message = actual, actual = void 0), message = message || "expect.fail()", new AssertionError( 44879 message, 44880 { 44881 actual, 44882 expected, 44883 operator 44884 }, 44885 expect.fail 44886 ); 44887}; 44888var should_exports = {}; 44889__export2(should_exports, { 44890 Should: () => Should, 44891 should: () => should 44892}); 44893function loadShould() { 44894 function shouldGetter() { 44895 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); 44896 } 44897 __name(shouldGetter, "shouldGetter"); 44898 function shouldSetter(value) { 44899 Object.defineProperty(this, "should", { 44900 value, 44901 enumerable: !0, 44902 configurable: !0, 44903 writable: !0 44904 }); 44905 } 44906 __name(shouldSetter, "shouldSetter"), Object.defineProperty(Object.prototype, "should", { 44907 set: shouldSetter, 44908 get: shouldGetter, 44909 configurable: !0 44910 }); 44911 let should2 = {}; 44912 return should2.fail = function(actual, expected, message, operator) { 44913 throw arguments.length < 2 && (message = actual, actual = void 0), message = message || "should.fail()", new AssertionError( 44914 message, 44915 { 44916 actual, 44917 expected, 44918 operator 44919 }, 44920 should2.fail 44921 ); 44922 }, should2.equal = function(actual, expected, message) { 44923 new Assertion(actual, message).to.equal(expected); 44924 }, should2.Throw = function(fn4, errt, errs, msg) { 44925 new Assertion(fn4, msg).to.Throw(errt, errs); 44926 }, should2.exist = function(val, msg) { 44927 new Assertion(val, msg).to.exist; 44928 }, should2.not = {}, should2.not.equal = function(actual, expected, msg) { 44929 new Assertion(actual, msg).to.not.equal(expected); 44930 }, should2.not.Throw = function(fn4, errt, errs, msg) { 44931 new Assertion(fn4, msg).to.not.Throw(errt, errs); 44932 }, should2.not.exist = function(val, msg) { 44933 new Assertion(val, msg).to.not.exist; 44934 }, should2.throw = should2.Throw, should2.not.throw = should2.not.Throw, should2; 44935} 44936__name(loadShould, "loadShould"); 44937var should = loadShould, Should = loadShould; 44938function assert(express, errmsg) { 44939 new Assertion(null, null, assert, !0).assert(express, errmsg, "[ negation message unavailable ]"); 44940} 44941__name(assert, "assert"); 44942assert.fail = function(actual, expected, message, operator) { 44943 throw arguments.length < 2 && (message = actual, actual = void 0), message = message || "assert.fail()", new AssertionError( 44944 message, 44945 { 44946 actual, 44947 expected, 44948 operator 44949 }, 44950 assert.fail 44951 ); 44952}; 44953assert.isOk = function(val, msg) { 44954 new Assertion(val, msg, assert.isOk, !0).is.ok; 44955}; 44956assert.isNotOk = function(val, msg) { 44957 new Assertion(val, msg, assert.isNotOk, !0).is.not.ok; 44958}; 44959assert.equal = function(act, exp, msg) { 44960 let test22 = new Assertion(act, msg, assert.equal, !0); 44961 test22.assert( 44962 exp == flag(test22, "object"), 44963 "expected #{this} to equal #{exp}", 44964 "expected #{this} to not equal #{act}", 44965 exp, 44966 act, 44967 !0 44968 ); 44969}; 44970assert.notEqual = function(act, exp, msg) { 44971 let test22 = new Assertion(act, msg, assert.notEqual, !0); 44972 test22.assert( 44973 exp != flag(test22, "object"), 44974 "expected #{this} to not equal #{exp}", 44975 "expected #{this} to equal #{act}", 44976 exp, 44977 act, 44978 !0 44979 ); 44980}; 44981assert.strictEqual = function(act, exp, msg) { 44982 new Assertion(act, msg, assert.strictEqual, !0).to.equal(exp); 44983}; 44984assert.notStrictEqual = function(act, exp, msg) { 44985 new Assertion(act, msg, assert.notStrictEqual, !0).to.not.equal(exp); 44986}; 44987assert.deepEqual = assert.deepStrictEqual = function(act, exp, msg) { 44988 new Assertion(act, msg, assert.deepEqual, !0).to.eql(exp); 44989}; 44990assert.notDeepEqual = function(act, exp, msg) { 44991 new Assertion(act, msg, assert.notDeepEqual, !0).to.not.eql(exp); 44992}; 44993assert.isAbove = function(val, abv, msg) { 44994 new Assertion(val, msg, assert.isAbove, !0).to.be.above(abv); 44995}; 44996assert.isAtLeast = function(val, atlst, msg) { 44997 new Assertion(val, msg, assert.isAtLeast, !0).to.be.least(atlst); 44998}; 44999assert.isBelow = function(val, blw, msg) { 45000 new Assertion(val, msg, assert.isBelow, !0).to.be.below(blw); 45001}; 45002assert.isAtMost = function(val, atmst, msg) { 45003 new Assertion(val, msg, assert.isAtMost, !0).to.be.most(atmst); 45004}; 45005assert.isTrue = function(val, msg) { 45006 new Assertion(val, msg, assert.isTrue, !0).is.true; 45007}; 45008assert.isNotTrue = function(val, msg) { 45009 new Assertion(val, msg, assert.isNotTrue, !0).to.not.equal(!0); 45010}; 45011assert.isFalse = function(val, msg) { 45012 new Assertion(val, msg, assert.isFalse, !0).is.false; 45013}; 45014assert.isNotFalse = function(val, msg) { 45015 new Assertion(val, msg, assert.isNotFalse, !0).to.not.equal(!1); 45016}; 45017assert.isNull = function(val, msg) { 45018 new Assertion(val, msg, assert.isNull, !0).to.equal(null); 45019}; 45020assert.isNotNull = function(val, msg) { 45021 new Assertion(val, msg, assert.isNotNull, !0).to.not.equal(null); 45022}; 45023assert.isNaN = function(val, msg) { 45024 new Assertion(val, msg, assert.isNaN, !0).to.be.NaN; 45025}; 45026assert.isNotNaN = function(value, message) { 45027 new Assertion(value, message, assert.isNotNaN, !0).not.to.be.NaN; 45028}; 45029assert.exists = function(val, msg) { 45030 new Assertion(val, msg, assert.exists, !0).to.exist; 45031}; 45032assert.notExists = function(val, msg) { 45033 new Assertion(val, msg, assert.notExists, !0).to.not.exist; 45034}; 45035assert.isUndefined = function(val, msg) { 45036 new Assertion(val, msg, assert.isUndefined, !0).to.equal(void 0); 45037}; 45038assert.isDefined = function(val, msg) { 45039 new Assertion(val, msg, assert.isDefined, !0).to.not.equal(void 0); 45040}; 45041assert.isCallable = function(value, message) { 45042 new Assertion(value, message, assert.isCallable, !0).is.callable; 45043}; 45044assert.isNotCallable = function(value, message) { 45045 new Assertion(value, message, assert.isNotCallable, !0).is.not.callable; 45046}; 45047assert.isObject = function(val, msg) { 45048 new Assertion(val, msg, assert.isObject, !0).to.be.a("object"); 45049}; 45050assert.isNotObject = function(val, msg) { 45051 new Assertion(val, msg, assert.isNotObject, !0).to.not.be.a("object"); 45052}; 45053assert.isArray = function(val, msg) { 45054 new Assertion(val, msg, assert.isArray, !0).to.be.an("array"); 45055}; 45056assert.isNotArray = function(val, msg) { 45057 new Assertion(val, msg, assert.isNotArray, !0).to.not.be.an("array"); 45058}; 45059assert.isString = function(val, msg) { 45060 new Assertion(val, msg, assert.isString, !0).to.be.a("string"); 45061}; 45062assert.isNotString = function(val, msg) { 45063 new Assertion(val, msg, assert.isNotString, !0).to.not.be.a("string"); 45064}; 45065assert.isNumber = function(val, msg) { 45066 new Assertion(val, msg, assert.isNumber, !0).to.be.a("number"); 45067}; 45068assert.isNotNumber = function(val, msg) { 45069 new Assertion(val, msg, assert.isNotNumber, !0).to.not.be.a("number"); 45070}; 45071assert.isNumeric = function(val, msg) { 45072 new Assertion(val, msg, assert.isNumeric, !0).is.numeric; 45073}; 45074assert.isNotNumeric = function(val, msg) { 45075 new Assertion(val, msg, assert.isNotNumeric, !0).is.not.numeric; 45076}; 45077assert.isFinite = function(val, msg) { 45078 new Assertion(val, msg, assert.isFinite, !0).to.be.finite; 45079}; 45080assert.isBoolean = function(val, msg) { 45081 new Assertion(val, msg, assert.isBoolean, !0).to.be.a("boolean"); 45082}; 45083assert.isNotBoolean = function(val, msg) { 45084 new Assertion(val, msg, assert.isNotBoolean, !0).to.not.be.a("boolean"); 45085}; 45086assert.typeOf = function(val, type32, msg) { 45087 new Assertion(val, msg, assert.typeOf, !0).to.be.a(type32); 45088}; 45089assert.notTypeOf = function(value, type32, message) { 45090 new Assertion(value, message, assert.notTypeOf, !0).to.not.be.a(type32); 45091}; 45092assert.instanceOf = function(val, type32, msg) { 45093 new Assertion(val, msg, assert.instanceOf, !0).to.be.instanceOf(type32); 45094}; 45095assert.notInstanceOf = function(val, type32, msg) { 45096 new Assertion(val, msg, assert.notInstanceOf, !0).to.not.be.instanceOf( 45097 type32 45098 ); 45099}; 45100assert.include = function(exp, inc, msg) { 45101 new Assertion(exp, msg, assert.include, !0).include(inc); 45102}; 45103assert.notInclude = function(exp, inc, msg) { 45104 new Assertion(exp, msg, assert.notInclude, !0).not.include(inc); 45105}; 45106assert.deepInclude = function(exp, inc, msg) { 45107 new Assertion(exp, msg, assert.deepInclude, !0).deep.include(inc); 45108}; 45109assert.notDeepInclude = function(exp, inc, msg) { 45110 new Assertion(exp, msg, assert.notDeepInclude, !0).not.deep.include(inc); 45111}; 45112assert.nestedInclude = function(exp, inc, msg) { 45113 new Assertion(exp, msg, assert.nestedInclude, !0).nested.include(inc); 45114}; 45115assert.notNestedInclude = function(exp, inc, msg) { 45116 new Assertion(exp, msg, assert.notNestedInclude, !0).not.nested.include( 45117 inc 45118 ); 45119}; 45120assert.deepNestedInclude = function(exp, inc, msg) { 45121 new Assertion(exp, msg, assert.deepNestedInclude, !0).deep.nested.include( 45122 inc 45123 ); 45124}; 45125assert.notDeepNestedInclude = function(exp, inc, msg) { 45126 new Assertion( 45127 exp, 45128 msg, 45129 assert.notDeepNestedInclude, 45130 !0 45131 ).not.deep.nested.include(inc); 45132}; 45133assert.ownInclude = function(exp, inc, msg) { 45134 new Assertion(exp, msg, assert.ownInclude, !0).own.include(inc); 45135}; 45136assert.notOwnInclude = function(exp, inc, msg) { 45137 new Assertion(exp, msg, assert.notOwnInclude, !0).not.own.include(inc); 45138}; 45139assert.deepOwnInclude = function(exp, inc, msg) { 45140 new Assertion(exp, msg, assert.deepOwnInclude, !0).deep.own.include(inc); 45141}; 45142assert.notDeepOwnInclude = function(exp, inc, msg) { 45143 new Assertion(exp, msg, assert.notDeepOwnInclude, !0).not.deep.own.include( 45144 inc 45145 ); 45146}; 45147assert.match = function(exp, re, msg) { 45148 new Assertion(exp, msg, assert.match, !0).to.match(re); 45149}; 45150assert.notMatch = function(exp, re, msg) { 45151 new Assertion(exp, msg, assert.notMatch, !0).to.not.match(re); 45152}; 45153assert.property = function(obj, prop, msg) { 45154 new Assertion(obj, msg, assert.property, !0).to.have.property(prop); 45155}; 45156assert.notProperty = function(obj, prop, msg) { 45157 new Assertion(obj, msg, assert.notProperty, !0).to.not.have.property(prop); 45158}; 45159assert.propertyVal = function(obj, prop, val, msg) { 45160 new Assertion(obj, msg, assert.propertyVal, !0).to.have.property(prop, val); 45161}; 45162assert.notPropertyVal = function(obj, prop, val, msg) { 45163 new Assertion(obj, msg, assert.notPropertyVal, !0).to.not.have.property( 45164 prop, 45165 val 45166 ); 45167}; 45168assert.deepPropertyVal = function(obj, prop, val, msg) { 45169 new Assertion(obj, msg, assert.deepPropertyVal, !0).to.have.deep.property( 45170 prop, 45171 val 45172 ); 45173}; 45174assert.notDeepPropertyVal = function(obj, prop, val, msg) { 45175 new Assertion( 45176 obj, 45177 msg, 45178 assert.notDeepPropertyVal, 45179 !0 45180 ).to.not.have.deep.property(prop, val); 45181}; 45182assert.ownProperty = function(obj, prop, msg) { 45183 new Assertion(obj, msg, assert.ownProperty, !0).to.have.own.property(prop); 45184}; 45185assert.notOwnProperty = function(obj, prop, msg) { 45186 new Assertion(obj, msg, assert.notOwnProperty, !0).to.not.have.own.property( 45187 prop 45188 ); 45189}; 45190assert.ownPropertyVal = function(obj, prop, value, msg) { 45191 new Assertion(obj, msg, assert.ownPropertyVal, !0).to.have.own.property( 45192 prop, 45193 value 45194 ); 45195}; 45196assert.notOwnPropertyVal = function(obj, prop, value, msg) { 45197 new Assertion( 45198 obj, 45199 msg, 45200 assert.notOwnPropertyVal, 45201 !0 45202 ).to.not.have.own.property(prop, value); 45203}; 45204assert.deepOwnPropertyVal = function(obj, prop, value, msg) { 45205 new Assertion( 45206 obj, 45207 msg, 45208 assert.deepOwnPropertyVal, 45209 !0 45210 ).to.have.deep.own.property(prop, value); 45211}; 45212assert.notDeepOwnPropertyVal = function(obj, prop, value, msg) { 45213 new Assertion( 45214 obj, 45215 msg, 45216 assert.notDeepOwnPropertyVal, 45217 !0 45218 ).to.not.have.deep.own.property(prop, value); 45219}; 45220assert.nestedProperty = function(obj, prop, msg) { 45221 new Assertion(obj, msg, assert.nestedProperty, !0).to.have.nested.property( 45222 prop 45223 ); 45224}; 45225assert.notNestedProperty = function(obj, prop, msg) { 45226 new Assertion( 45227 obj, 45228 msg, 45229 assert.notNestedProperty, 45230 !0 45231 ).to.not.have.nested.property(prop); 45232}; 45233assert.nestedPropertyVal = function(obj, prop, val, msg) { 45234 new Assertion( 45235 obj, 45236 msg, 45237 assert.nestedPropertyVal, 45238 !0 45239 ).to.have.nested.property(prop, val); 45240}; 45241assert.notNestedPropertyVal = function(obj, prop, val, msg) { 45242 new Assertion( 45243 obj, 45244 msg, 45245 assert.notNestedPropertyVal, 45246 !0 45247 ).to.not.have.nested.property(prop, val); 45248}; 45249assert.deepNestedPropertyVal = function(obj, prop, val, msg) { 45250 new Assertion( 45251 obj, 45252 msg, 45253 assert.deepNestedPropertyVal, 45254 !0 45255 ).to.have.deep.nested.property(prop, val); 45256}; 45257assert.notDeepNestedPropertyVal = function(obj, prop, val, msg) { 45258 new Assertion( 45259 obj, 45260 msg, 45261 assert.notDeepNestedPropertyVal, 45262 !0 45263 ).to.not.have.deep.nested.property(prop, val); 45264}; 45265assert.lengthOf = function(exp, len, msg) { 45266 new Assertion(exp, msg, assert.lengthOf, !0).to.have.lengthOf(len); 45267}; 45268assert.hasAnyKeys = function(obj, keys3, msg) { 45269 new Assertion(obj, msg, assert.hasAnyKeys, !0).to.have.any.keys(keys3); 45270}; 45271assert.hasAllKeys = function(obj, keys3, msg) { 45272 new Assertion(obj, msg, assert.hasAllKeys, !0).to.have.all.keys(keys3); 45273}; 45274assert.containsAllKeys = function(obj, keys3, msg) { 45275 new Assertion(obj, msg, assert.containsAllKeys, !0).to.contain.all.keys( 45276 keys3 45277 ); 45278}; 45279assert.doesNotHaveAnyKeys = function(obj, keys3, msg) { 45280 new Assertion(obj, msg, assert.doesNotHaveAnyKeys, !0).to.not.have.any.keys( 45281 keys3 45282 ); 45283}; 45284assert.doesNotHaveAllKeys = function(obj, keys3, msg) { 45285 new Assertion(obj, msg, assert.doesNotHaveAllKeys, !0).to.not.have.all.keys( 45286 keys3 45287 ); 45288}; 45289assert.hasAnyDeepKeys = function(obj, keys3, msg) { 45290 new Assertion(obj, msg, assert.hasAnyDeepKeys, !0).to.have.any.deep.keys( 45291 keys3 45292 ); 45293}; 45294assert.hasAllDeepKeys = function(obj, keys3, msg) { 45295 new Assertion(obj, msg, assert.hasAllDeepKeys, !0).to.have.all.deep.keys( 45296 keys3 45297 ); 45298}; 45299assert.containsAllDeepKeys = function(obj, keys3, msg) { 45300 new Assertion( 45301 obj, 45302 msg, 45303 assert.containsAllDeepKeys, 45304 !0 45305 ).to.contain.all.deep.keys(keys3); 45306}; 45307assert.doesNotHaveAnyDeepKeys = function(obj, keys3, msg) { 45308 new Assertion( 45309 obj, 45310 msg, 45311 assert.doesNotHaveAnyDeepKeys, 45312 !0 45313 ).to.not.have.any.deep.keys(keys3); 45314}; 45315assert.doesNotHaveAllDeepKeys = function(obj, keys3, msg) { 45316 new Assertion( 45317 obj, 45318 msg, 45319 assert.doesNotHaveAllDeepKeys, 45320 !0 45321 ).to.not.have.all.deep.keys(keys3); 45322}; 45323assert.throws = function(fn4, errorLike, errMsgMatcher, msg) { 45324 (typeof errorLike == "string" || errorLike instanceof RegExp) && (errMsgMatcher = errorLike, errorLike = null); 45325 let assertErr = new Assertion(fn4, msg, assert.throws, !0).to.throw( 45326 errorLike, 45327 errMsgMatcher 45328 ); 45329 return flag(assertErr, "object"); 45330}; 45331assert.doesNotThrow = function(fn4, errorLike, errMsgMatcher, message) { 45332 (typeof errorLike == "string" || errorLike instanceof RegExp) && (errMsgMatcher = errorLike, errorLike = null), new Assertion(fn4, message, assert.doesNotThrow, !0).to.not.throw( 45333 errorLike, 45334 errMsgMatcher 45335 ); 45336}; 45337assert.operator = function(val, operator, val2, msg) { 45338 let ok; 45339 switch (operator) { 45340 case "==": 45341 ok = val == val2; 45342 break; 45343 case "===": 45344 ok = val === val2; 45345 break; 45346 case ">": 45347 ok = val > val2; 45348 break; 45349 case ">=": 45350 ok = val >= val2; 45351 break; 45352 case "<": 45353 ok = val < val2; 45354 break; 45355 case "<=": 45356 ok = val <= val2; 45357 break; 45358 case "!=": 45359 ok = val != val2; 45360 break; 45361 case "!==": 45362 ok = val !== val2; 45363 break; 45364 default: 45365 throw msg = msg && msg + ": ", new AssertionError( 45366 msg + 'Invalid operator "' + operator + '"', 45367 void 0, 45368 assert.operator 45369 ); 45370 } 45371 let test22 = new Assertion(ok, msg, assert.operator, !0); 45372 test22.assert( 45373 flag(test22, "object") === !0, 45374 "expected " + inspect22(val) + " to be " + operator + " " + inspect22(val2), 45375 "expected " + inspect22(val) + " to not be " + operator + " " + inspect22(val2) 45376 ); 45377}; 45378assert.closeTo = function(act, exp, delta, msg) { 45379 new Assertion(act, msg, assert.closeTo, !0).to.be.closeTo(exp, delta); 45380}; 45381assert.approximately = function(act, exp, delta, msg) { 45382 new Assertion(act, msg, assert.approximately, !0).to.be.approximately( 45383 exp, 45384 delta 45385 ); 45386}; 45387assert.sameMembers = function(set1, set22, msg) { 45388 new Assertion(set1, msg, assert.sameMembers, !0).to.have.same.members(set22); 45389}; 45390assert.notSameMembers = function(set1, set22, msg) { 45391 new Assertion( 45392 set1, 45393 msg, 45394 assert.notSameMembers, 45395 !0 45396 ).to.not.have.same.members(set22); 45397}; 45398assert.sameDeepMembers = function(set1, set22, msg) { 45399 new Assertion( 45400 set1, 45401 msg, 45402 assert.sameDeepMembers, 45403 !0 45404 ).to.have.same.deep.members(set22); 45405}; 45406assert.notSameDeepMembers = function(set1, set22, msg) { 45407 new Assertion( 45408 set1, 45409 msg, 45410 assert.notSameDeepMembers, 45411 !0 45412 ).to.not.have.same.deep.members(set22); 45413}; 45414assert.sameOrderedMembers = function(set1, set22, msg) { 45415 new Assertion( 45416 set1, 45417 msg, 45418 assert.sameOrderedMembers, 45419 !0 45420 ).to.have.same.ordered.members(set22); 45421}; 45422assert.notSameOrderedMembers = function(set1, set22, msg) { 45423 new Assertion( 45424 set1, 45425 msg, 45426 assert.notSameOrderedMembers, 45427 !0 45428 ).to.not.have.same.ordered.members(set22); 45429}; 45430assert.sameDeepOrderedMembers = function(set1, set22, msg) { 45431 new Assertion( 45432 set1, 45433 msg, 45434 assert.sameDeepOrderedMembers, 45435 !0 45436 ).to.have.same.deep.ordered.members(set22); 45437}; 45438assert.notSameDeepOrderedMembers = function(set1, set22, msg) { 45439 new Assertion( 45440 set1, 45441 msg, 45442 assert.notSameDeepOrderedMembers, 45443 !0 45444 ).to.not.have.same.deep.ordered.members(set22); 45445}; 45446assert.includeMembers = function(superset, subset, msg) { 45447 new Assertion(superset, msg, assert.includeMembers, !0).to.include.members( 45448 subset 45449 ); 45450}; 45451assert.notIncludeMembers = function(superset, subset, msg) { 45452 new Assertion( 45453 superset, 45454 msg, 45455 assert.notIncludeMembers, 45456 !0 45457 ).to.not.include.members(subset); 45458}; 45459assert.includeDeepMembers = function(superset, subset, msg) { 45460 new Assertion( 45461 superset, 45462 msg, 45463 assert.includeDeepMembers, 45464 !0 45465 ).to.include.deep.members(subset); 45466}; 45467assert.notIncludeDeepMembers = function(superset, subset, msg) { 45468 new Assertion( 45469 superset, 45470 msg, 45471 assert.notIncludeDeepMembers, 45472 !0 45473 ).to.not.include.deep.members(subset); 45474}; 45475assert.includeOrderedMembers = function(superset, subset, msg) { 45476 new Assertion( 45477 superset, 45478 msg, 45479 assert.includeOrderedMembers, 45480 !0 45481 ).to.include.ordered.members(subset); 45482}; 45483assert.notIncludeOrderedMembers = function(superset, subset, msg) { 45484 new Assertion( 45485 superset, 45486 msg, 45487 assert.notIncludeOrderedMembers, 45488 !0 45489 ).to.not.include.ordered.members(subset); 45490}; 45491assert.includeDeepOrderedMembers = function(superset, subset, msg) { 45492 new Assertion( 45493 superset, 45494 msg, 45495 assert.includeDeepOrderedMembers, 45496 !0 45497 ).to.include.deep.ordered.members(subset); 45498}; 45499assert.notIncludeDeepOrderedMembers = function(superset, subset, msg) { 45500 new Assertion( 45501 superset, 45502 msg, 45503 assert.notIncludeDeepOrderedMembers, 45504 !0 45505 ).to.not.include.deep.ordered.members(subset); 45506}; 45507assert.oneOf = function(inList, list, msg) { 45508 new Assertion(inList, msg, assert.oneOf, !0).to.be.oneOf(list); 45509}; 45510assert.isIterable = function(obj, msg) { 45511 if (obj == null || !obj[Symbol.iterator]) 45512 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); 45513}; 45514assert.changes = function(fn4, obj, prop, msg) { 45515 arguments.length === 3 && typeof obj == "function" && (msg = prop, prop = null), new Assertion(fn4, msg, assert.changes, !0).to.change(obj, prop); 45516}; 45517assert.changesBy = function(fn4, obj, prop, delta, msg) { 45518 if (arguments.length === 4 && typeof obj == "function") { 45519 let tmpMsg = delta; 45520 delta = prop, msg = tmpMsg; 45521 } else arguments.length === 3 && (delta = prop, prop = null); 45522 new Assertion(fn4, msg, assert.changesBy, !0).to.change(obj, prop).by(delta); 45523}; 45524assert.doesNotChange = function(fn4, obj, prop, msg) { 45525 return arguments.length === 3 && typeof obj == "function" && (msg = prop, prop = null), new Assertion(fn4, msg, assert.doesNotChange, !0).to.not.change( 45526 obj, 45527 prop 45528 ); 45529}; 45530assert.changesButNotBy = function(fn4, obj, prop, delta, msg) { 45531 if (arguments.length === 4 && typeof obj == "function") { 45532 let tmpMsg = delta; 45533 delta = prop, msg = tmpMsg; 45534 } else arguments.length === 3 && (delta = prop, prop = null); 45535 new Assertion(fn4, msg, assert.changesButNotBy, !0).to.change(obj, prop).but.not.by(delta); 45536}; 45537assert.increases = function(fn4, obj, prop, msg) { 45538 return arguments.length === 3 && typeof obj == "function" && (msg = prop, prop = null), new Assertion(fn4, msg, assert.increases, !0).to.increase(obj, prop); 45539}; 45540assert.increasesBy = function(fn4, obj, prop, delta, msg) { 45541 if (arguments.length === 4 && typeof obj == "function") { 45542 let tmpMsg = delta; 45543 delta = prop, msg = tmpMsg; 45544 } else arguments.length === 3 && (delta = prop, prop = null); 45545 new Assertion(fn4, msg, assert.increasesBy, !0).to.increase(obj, prop).by(delta); 45546}; 45547assert.doesNotIncrease = function(fn4, obj, prop, msg) { 45548 return arguments.length === 3 && typeof obj == "function" && (msg = prop, prop = null), new Assertion(fn4, msg, assert.doesNotIncrease, !0).to.not.increase( 45549 obj, 45550 prop 45551 ); 45552}; 45553assert.increasesButNotBy = function(fn4, obj, prop, delta, msg) { 45554 if (arguments.length === 4 && typeof obj == "function") { 45555 let tmpMsg = delta; 45556 delta = prop, msg = tmpMsg; 45557 } else arguments.length === 3 && (delta = prop, prop = null); 45558 new Assertion(fn4, msg, assert.increasesButNotBy, !0).to.increase(obj, prop).but.not.by(delta); 45559}; 45560assert.decreases = function(fn4, obj, prop, msg) { 45561 return arguments.length === 3 && typeof obj == "function" && (msg = prop, prop = null), new Assertion(fn4, msg, assert.decreases, !0).to.decrease(obj, prop); 45562}; 45563assert.decreasesBy = function(fn4, obj, prop, delta, msg) { 45564 if (arguments.length === 4 && typeof obj == "function") { 45565 let tmpMsg = delta; 45566 delta = prop, msg = tmpMsg; 45567 } else arguments.length === 3 && (delta = prop, prop = null); 45568 new Assertion(fn4, msg, assert.decreasesBy, !0).to.decrease(obj, prop).by(delta); 45569}; 45570assert.doesNotDecrease = function(fn4, obj, prop, msg) { 45571 return arguments.length === 3 && typeof obj == "function" && (msg = prop, prop = null), new Assertion(fn4, msg, assert.doesNotDecrease, !0).to.not.decrease( 45572 obj, 45573 prop 45574 ); 45575}; 45576assert.doesNotDecreaseBy = function(fn4, obj, prop, delta, msg) { 45577 if (arguments.length === 4 && typeof obj == "function") { 45578 let tmpMsg = delta; 45579 delta = prop, msg = tmpMsg; 45580 } else arguments.length === 3 && (delta = prop, prop = null); 45581 return new Assertion(fn4, msg, assert.doesNotDecreaseBy, !0).to.not.decrease(obj, prop).by(delta); 45582}; 45583assert.decreasesButNotBy = function(fn4, obj, prop, delta, msg) { 45584 if (arguments.length === 4 && typeof obj == "function") { 45585 let tmpMsg = delta; 45586 delta = prop, msg = tmpMsg; 45587 } else arguments.length === 3 && (delta = prop, prop = null); 45588 new Assertion(fn4, msg, assert.decreasesButNotBy, !0).to.decrease(obj, prop).but.not.by(delta); 45589}; 45590assert.ifError = function(val) { 45591 if (val) 45592 throw val; 45593}; 45594assert.isExtensible = function(obj, msg) { 45595 new Assertion(obj, msg, assert.isExtensible, !0).to.be.extensible; 45596}; 45597assert.isNotExtensible = function(obj, msg) { 45598 new Assertion(obj, msg, assert.isNotExtensible, !0).to.not.be.extensible; 45599}; 45600assert.isSealed = function(obj, msg) { 45601 new Assertion(obj, msg, assert.isSealed, !0).to.be.sealed; 45602}; 45603assert.isNotSealed = function(obj, msg) { 45604 new Assertion(obj, msg, assert.isNotSealed, !0).to.not.be.sealed; 45605}; 45606assert.isFrozen = function(obj, msg) { 45607 new Assertion(obj, msg, assert.isFrozen, !0).to.be.frozen; 45608}; 45609assert.isNotFrozen = function(obj, msg) { 45610 new Assertion(obj, msg, assert.isNotFrozen, !0).to.not.be.frozen; 45611}; 45612assert.isEmpty = function(val, msg) { 45613 new Assertion(val, msg, assert.isEmpty, !0).to.be.empty; 45614}; 45615assert.isNotEmpty = function(val, msg) { 45616 new Assertion(val, msg, assert.isNotEmpty, !0).to.not.be.empty; 45617}; 45618assert.containsSubset = function(val, exp, msg) { 45619 new Assertion(val, msg).to.containSubset(exp); 45620}; 45621assert.doesNotContainSubset = function(val, exp, msg) { 45622 new Assertion(val, msg).to.not.containSubset(exp); 45623}; 45624var aliases = [ 45625 ["isOk", "ok"], 45626 ["isNotOk", "notOk"], 45627 ["throws", "throw"], 45628 ["throws", "Throw"], 45629 ["isExtensible", "extensible"], 45630 ["isNotExtensible", "notExtensible"], 45631 ["isSealed", "sealed"], 45632 ["isNotSealed", "notSealed"], 45633 ["isFrozen", "frozen"], 45634 ["isNotFrozen", "notFrozen"], 45635 ["isEmpty", "empty"], 45636 ["isNotEmpty", "notEmpty"], 45637 ["isCallable", "isFunction"], 45638 ["isNotCallable", "isNotFunction"], 45639 ["containsSubset", "containSubset"] 45640]; 45641for (let [name, as] of aliases) 45642 assert[as] = assert[name]; 45643var used = []; 45644function use2(fn4) { 45645 let exports = { 45646 use: use2, 45647 AssertionError, 45648 util: utils_exports, 45649 config: config2, 45650 expect, 45651 assert, 45652 Assertion, 45653 ...should_exports 45654 }; 45655 return ~used.indexOf(fn4) || (fn4(exports, utils_exports), used.push(fn4)), exports; 45656} 45657__name(use2, "use"); 45658
vendor: 1,494 bytes, lines 45659-45696
45659// ../../node_modules/@testing-library/jest-dom/dist/matchers.mjs 45660var matchers_exports = {}; 45661__export(matchers_exports, { 45662 toAppearAfter: () => toAppearAfter, 45663 toAppearBefore: () => toAppearBefore, 45664 toBeChecked: () => toBeChecked, 45665 toBeDisabled: () => toBeDisabled, 45666 toBeEmpty: () => toBeEmpty, 45667 toBeEmptyDOMElement: () => toBeEmptyDOMElement, 45668 toBeEnabled: () => toBeEnabled, 45669 toBeInTheDOM: () => toBeInTheDOM, 45670 toBeInTheDocument: () => toBeInTheDocument, 45671 toBeInvalid: () => toBeInvalid, 45672 toBePartiallyChecked: () => toBePartiallyChecked, 45673 toBePartiallyPressed: () => toBePartiallyPressed, 45674 toBePressed: () => toBePressed, 45675 toBeRequired: () => toBeRequired, 45676 toBeValid: () => toBeValid, 45677 toBeVisible: () => toBeVisible, 45678 toContainElement: () => toContainElement, 45679 toContainHTML: () => toContainHTML, 45680 toHaveAccessibleDescription: () => toHaveAccessibleDescription, 45681 toHaveAccessibleErrorMessage: () => toHaveAccessibleErrorMessage, 45682 toHaveAccessibleName: () => toHaveAccessibleName, 45683 toHaveAttribute: () => toHaveAttribute, 45684 toHaveClass: () => toHaveClass, 45685 toHaveDescription: () => toHaveDescription, 45686 toHaveDisplayValue: () => toHaveDisplayValue, 45687 toHaveErrorMessage: () => toHaveErrorMessage, 45688 toHaveFocus: () => toHaveFocus, 45689 toHaveFormValues: () => toHaveFormValues, 45690 toHaveRole: () => toHaveRole, 45691 toHaveSelection: () => toHaveSelection, 45692 toHaveStyle: () => toHaveStyle, 45693 toHaveTextContent: () => toHaveTextContent, 45694 toHaveValue: () => toHaveValue 45695}); 45696
vendor: 126 bytes, lines 45697-45699
45697// ../../node_modules/@testing-library/jest-dom/dist/matchers-35e4d3bd.mjs 45698var import_redent = __toESM(require_redent(), 1); 45699
vendor: 13,686 bytes, lines 45700-46037
45700// ../../node_modules/@adobe/css-tools/dist/index.mjs 45701function $parcel$defineInteropFlag(a3) { 45702 Object.defineProperty(a3, "__esModule", { value: !0, configurable: !0 }); 45703} 45704function $parcel$export(e, n, v, s3) { 45705 Object.defineProperty(e, n, { get: v, set: s3, enumerable: !0, configurable: !0 }); 45706} 45707var $009ddb00d3ec72b8$exports = {}; 45708$parcel$defineInteropFlag($009ddb00d3ec72b8$exports); 45709$parcel$export($009ddb00d3ec72b8$exports, "default", () => $009ddb00d3ec72b8$export$2e2bcd8739ae039); 45710var $009ddb00d3ec72b8$export$2e2bcd8739ae039 = class extends Error { 45711 constructor(filename, msg, lineno, column2, css3) { 45712 super(filename + ":" + lineno + ":" + column2 + ": " + msg), this.reason = msg, this.filename = filename, this.line = lineno, this.column = column2, this.source = css3; 45713 } 45714}, $0865a9fb4cc365fe$exports = {}; 45715$parcel$defineInteropFlag($0865a9fb4cc365fe$exports); 45716$parcel$export($0865a9fb4cc365fe$exports, "default", () => $0865a9fb4cc365fe$export$2e2bcd8739ae039); 45717var $0865a9fb4cc365fe$export$2e2bcd8739ae039 = class { 45718 constructor(start2, end2, source) { 45719 this.start = start2, this.end = end2, this.source = source; 45720 } 45721}, $b2e137848b48cf4f$exports = {}; 45722$parcel$export($b2e137848b48cf4f$exports, "CssTypes", () => $b2e137848b48cf4f$export$9be5dd6e61d5d73a); 45723var $b2e137848b48cf4f$export$9be5dd6e61d5d73a; 45724(function(CssTypes) { 45725 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"; 45726})($b2e137848b48cf4f$export$9be5dd6e61d5d73a || ($b2e137848b48cf4f$export$9be5dd6e61d5d73a = {})); 45727var $d708735ed1303b43$var$commentre = /\/\*[^]*?(?:\*\/|$)/g, $d708735ed1303b43$export$98e6a39c04603d36 = (css3, options) => { 45728 options = options || {}; 45729 let lineno = 1, column2 = 1; 45730 function updatePosition(str2) { 45731 let lines = str2.match(/\n/g); 45732 lines && (lineno += lines.length); 45733 let i = str2.lastIndexOf(` 45734`); 45735 column2 = ~i ? str2.length - i : column2 + str2.length; 45736 } 45737 function position2() { 45738 let start2 = { 45739 line: lineno, 45740 column: column2 45741 }; 45742 return function(node2) { 45743 return node2.position = new $0865a9fb4cc365fe$export$2e2bcd8739ae039(start2, { 45744 line: lineno, 45745 column: column2 45746 }, options?.source || ""), whitespace2(), node2; 45747 }; 45748 } 45749 let errorsList = []; 45750 function error(msg) { 45751 let err = new $009ddb00d3ec72b8$export$2e2bcd8739ae039(options?.source || "", msg, lineno, column2, css3); 45752 if (options?.silent) errorsList.push(err); 45753 else throw err; 45754 } 45755 function stylesheet() { 45756 let rulesList = rules(); 45757 return { 45758 type: $b2e137848b48cf4f$export$9be5dd6e61d5d73a.stylesheet, 45759 stylesheet: { 45760 source: options?.source, 45761 rules: rulesList, 45762 parsingErrors: errorsList 45763 } 45764 }; 45765 } 45766 function open() { 45767 return match3(/^{\s*/); 45768 } 45769 function close() { 45770 return match3(/^}/); 45771 } 45772 function rules() { 45773 let node2, rules2 = []; 45774 for (whitespace2(), comments(rules2); css3.length && css3.charAt(0) !== "}" && (node2 = atrule() || rule()); ) node2 && (rules2.push(node2), comments(rules2)); 45775 return rules2; 45776 } 45777 function match3(re) { 45778 let m3 = re.exec(css3); 45779 if (!m3) return; 45780 let str2 = m3[0]; 45781 return updatePosition(str2), css3 = css3.slice(str2.length), m3; 45782 } 45783 function whitespace2() { 45784 match3(/^\s*/); 45785 } 45786 function comments(rules2) { 45787 let c; 45788 for (rules2 = rules2 || []; c = comment2(); ) c && rules2.push(c); 45789 return rules2; 45790 } 45791 function comment2() { 45792 let pos = position2(); 45793 if (css3.charAt(0) !== "/" || css3.charAt(1) !== "*") return; 45794 let m3 = match3(/^\/\*[^]*?\*\//); 45795 return m3 ? pos({ 45796 type: $b2e137848b48cf4f$export$9be5dd6e61d5d73a.comment, 45797 comment: m3[0].slice(2, -2) 45798 }) : error("End of comment missing"); 45799 } 45800 function findClosingParenthese(str2, start2, depth) { 45801 let ptr = start2 + 1, found = !1, closeParentheses = str2.indexOf(")", ptr); 45802 for (; !found && closeParentheses !== -1; ) { 45803 let nextParentheses = str2.indexOf("(", ptr); 45804 nextParentheses !== -1 && nextParentheses < closeParentheses ? (ptr = findClosingParenthese(str2, nextParentheses + 1, depth + 1) + 1, closeParentheses = str2.indexOf(")", ptr)) : found = !0; 45805 } 45806 return found && closeParentheses !== -1 ? closeParentheses : -1; 45807 } 45808 function selector() { 45809 let m3 = match3(/^([^{]+)/); 45810 if (!m3) return; 45811 let res = $d708735ed1303b43$var$trim(m3[0]).replace($d708735ed1303b43$var$commentre, ""); 45812 if (res.indexOf(",") === -1) return [ 45813 res 45814 ]; 45815 let ptr = 0, startParentheses = res.indexOf("(", ptr); 45816 for (; startParentheses !== -1; ) { 45817 let closeParentheses = findClosingParenthese(res, startParentheses, 0); 45818 if (closeParentheses === -1) break; 45819 ptr = closeParentheses + 1, res = res.substring(0, startParentheses) + res.substring(startParentheses, closeParentheses).replace(/,/g, "\u200C") + res.substring(closeParentheses), startParentheses = res.indexOf("(", ptr); 45820 } 45821 return res = res.replace(/("|')(?:\\\1|.)*?\1/g, (m4) => m4.replace(/,/g, "\u200C")), res.split(",").map((s3) => $d708735ed1303b43$var$trim(s3.replace(/\u200C/g, ","))); 45822 } 45823 function declaration2() { 45824 let pos = position2(), propMatch = match3(/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/); 45825 if (!propMatch) return; 45826 let propValue = $d708735ed1303b43$var$trim(propMatch[0]); 45827 if (!match3(/^:\s*/)) return error("property missing ':'"); 45828 let val = match3(/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/), ret = pos({ 45829 type: $b2e137848b48cf4f$export$9be5dd6e61d5d73a.declaration, 45830 property: propValue.replace($d708735ed1303b43$var$commentre, ""), 45831 value: val ? $d708735ed1303b43$var$trim(val[0]).replace($d708735ed1303b43$var$commentre, "") : "" 45832 }); 45833 return match3(/^[;\s]*/), ret; 45834 } 45835 function declarations() { 45836 let decls = []; 45837 if (!open()) return error("missing '{'"); 45838 comments(decls); 45839 let decl; 45840 for (; decl = declaration2(); ) decl && (decls.push(decl), comments(decls)); 45841 return close() ? decls : error("missing '}'"); 45842 } 45843 function keyframe() { 45844 let m3, vals = [], pos = position2(); 45845 for (; m3 = match3(/^((\d+\.\d+|\.\d+|\d+)%?|[a-z]+)\s*/); ) 45846 vals.push(m3[1]), match3(/^,\s*/); 45847 if (vals.length) 45848 return pos({ 45849 type: $b2e137848b48cf4f$export$9be5dd6e61d5d73a.keyframe, 45850 values: vals, 45851 declarations: declarations() || [] 45852 }); 45853 } 45854 function atkeyframes() { 45855 let pos = position2(), m1 = match3(/^@([-\w]+)?keyframes\s*/); 45856 if (!m1) return; 45857 let vendor = m1[1], m22 = match3(/^([-\w]+)\s*/); 45858 if (!m22) return error("@keyframes missing name"); 45859 let name = m22[1]; 45860 if (!open()) return error("@keyframes missing '{'"); 45861 let frame, frames = comments(); 45862 for (; frame = keyframe(); ) 45863 frames.push(frame), frames = frames.concat(comments()); 45864 return close() ? pos({ 45865 type: $b2e137848b48cf4f$export$9be5dd6e61d5d73a.keyframes, 45866 name, 45867 vendor, 45868 keyframes: frames 45869 }) : error("@keyframes missing '}'"); 45870 } 45871 function atsupports() { 45872 let pos = position2(), m3 = match3(/^@supports *([^{]+)/); 45873 if (!m3) return; 45874 let supports = $d708735ed1303b43$var$trim(m3[1]); 45875 if (!open()) return error("@supports missing '{'"); 45876 let style = comments().concat(rules()); 45877 return close() ? pos({ 45878 type: $b2e137848b48cf4f$export$9be5dd6e61d5d73a.supports, 45879 supports, 45880 rules: style 45881 }) : error("@supports missing '}'"); 45882 } 45883 function athost() { 45884 let pos = position2(); 45885 if (!match3(/^@host\s*/)) return; 45886 if (!open()) return error("@host missing '{'"); 45887 let style = comments().concat(rules()); 45888 return close() ? pos({ 45889 type: $b2e137848b48cf4f$export$9be5dd6e61d5d73a.host, 45890 rules: style 45891 }) : error("@host missing '}'"); 45892 } 45893 function atcontainer() { 45894 let pos = position2(), m3 = match3(/^@container *([^{]+)/); 45895 if (!m3) return; 45896 let container = $d708735ed1303b43$var$trim(m3[1]); 45897 if (!open()) return error("@container missing '{'"); 45898 let style = comments().concat(rules()); 45899 return close() ? pos({ 45900 type: $b2e137848b48cf4f$export$9be5dd6e61d5d73a.container, 45901 container, 45902 rules: style 45903 }) : error("@container missing '}'"); 45904 } 45905 function atlayer() { 45906 let pos = position2(), m3 = match3(/^@layer *([^{;@]+)/); 45907 if (!m3) return; 45908 let layer = $d708735ed1303b43$var$trim(m3[1]); 45909 if (!open()) 45910 return match3(/^[;\s]*/), pos({ 45911 type: $b2e137848b48cf4f$export$9be5dd6e61d5d73a.layer, 45912 layer 45913 }); 45914 let style = comments().concat(rules()); 45915 return close() ? pos({ 45916 type: $b2e137848b48cf4f$export$9be5dd6e61d5d73a.layer, 45917 layer, 45918 rules: style 45919 }) : error("@layer missing '}'"); 45920 } 45921 function atmedia() { 45922 let pos = position2(), m3 = match3(/^@media *([^{]+)/); 45923 if (!m3) return; 45924 let media = $d708735ed1303b43$var$trim(m3[1]); 45925 if (!open()) return error("@media missing '{'"); 45926 let style = comments().concat(rules()); 45927 return close() ? pos({ 45928 type: $b2e137848b48cf4f$export$9be5dd6e61d5d73a.media, 45929 media, 45930 rules: style 45931 }) : error("@media missing '}'"); 45932 } 45933 function atcustommedia() { 45934 let pos = position2(), m3 = match3(/^@custom-media\s+(--\S+)\s*([^{;\s][^{;]*);/); 45935 if (m3) 45936 return pos({ 45937 type: $b2e137848b48cf4f$export$9be5dd6e61d5d73a.customMedia, 45938 name: $d708735ed1303b43$var$trim(m3[1]), 45939 media: $d708735ed1303b43$var$trim(m3[2]) 45940 }); 45941 } 45942 function atpage() { 45943 let pos = position2(); 45944 if (!match3(/^@page */)) return; 45945 let sel = selector() || []; 45946 if (!open()) return error("@page missing '{'"); 45947 let decls = comments(), decl; 45948 for (; decl = declaration2(); ) 45949 decls.push(decl), decls = decls.concat(comments()); 45950 return close() ? pos({ 45951 type: $b2e137848b48cf4f$export$9be5dd6e61d5d73a.page, 45952 selectors: sel, 45953 declarations: decls 45954 }) : error("@page missing '}'"); 45955 } 45956 function atdocument() { 45957 let pos = position2(), m3 = match3(/^@([-\w]+)?document *([^{]+)/); 45958 if (!m3) return; 45959 let vendor = $d708735ed1303b43$var$trim(m3[1]), doc = $d708735ed1303b43$var$trim(m3[2]); 45960 if (!open()) return error("@document missing '{'"); 45961 let style = comments().concat(rules()); 45962 return close() ? pos({ 45963 type: $b2e137848b48cf4f$export$9be5dd6e61d5d73a.document, 45964 document: doc, 45965 vendor, 45966 rules: style 45967 }) : error("@document missing '}'"); 45968 } 45969 function atfontface() { 45970 let pos = position2(); 45971 if (!match3(/^@font-face\s*/)) return; 45972 if (!open()) return error("@font-face missing '{'"); 45973 let decls = comments(), decl; 45974 for (; decl = declaration2(); ) 45975 decls.push(decl), decls = decls.concat(comments()); 45976 return close() ? pos({ 45977 type: $b2e137848b48cf4f$export$9be5dd6e61d5d73a.fontFace, 45978 declarations: decls 45979 }) : error("@font-face missing '}'"); 45980 } 45981 function atstartingstyle() { 45982 let pos = position2(); 45983 if (!match3(/^@starting-style\s*/)) return; 45984 if (!open()) return error("@starting-style missing '{'"); 45985 let style = comments().concat(rules()); 45986 return close() ? pos({ 45987 type: $b2e137848b48cf4f$export$9be5dd6e61d5d73a.startingStyle, 45988 rules: style 45989 }) : error("@starting-style missing '}'"); 45990 } 45991 let atimport = _compileAtrule("import"), atcharset = _compileAtrule("charset"), atnamespace = _compileAtrule("namespace"); 45992 function _compileAtrule(name) { 45993 let re = new RegExp("^@" + name + `\\s*((?::?[^;'"]|"(?:\\\\"|[^"])*?"|'(?:\\\\'|[^'])*?')+)(?:;|$)`); 45994 return function() { 45995 let pos = position2(), m3 = match3(re); 45996 if (!m3) return; 45997 let ret = { 45998 type: name 45999 }; 46000 return ret[name] = m3[1].trim(), pos(ret); 46001 }; 46002 } 46003 function atrule() { 46004 if (css3[0] === "@") 46005 return atkeyframes() || atmedia() || atcustommedia() || atsupports() || atimport() || atcharset() || atnamespace() || atdocument() || atpage() || athost() || atfontface() || atcontainer() || atstartingstyle() || atlayer(); 46006 } 46007 function rule() { 46008 let pos = position2(), sel = selector(); 46009 return sel ? (comments(), pos({ 46010 type: $b2e137848b48cf4f$export$9be5dd6e61d5d73a.rule, 46011 selectors: sel, 46012 declarations: declarations() || [] 46013 })) : error("selector missing"); 46014 } 46015 return $d708735ed1303b43$var$addParent(stylesheet()); 46016}; 46017function $d708735ed1303b43$var$trim(str2) { 46018 return str2 ? str2.trim() : ""; 46019} 46020function $d708735ed1303b43$var$addParent(obj, parent) { 46021 let isNode2 = obj && typeof obj.type == "string", childParent = isNode2 ? obj : parent; 46022 for (let k in obj) { 46023 let value = obj[k]; 46024 Array.isArray(value) ? value.forEach((v) => { 46025 $d708735ed1303b43$var$addParent(v, childParent); 46026 }) : value && typeof value == "object" && $d708735ed1303b43$var$addParent(value, childParent); 46027 } 46028 return isNode2 && Object.defineProperty(obj, "parent", { 46029 configurable: !0, 46030 writable: !0, 46031 enumerable: !1, 46032 value: parent || null 46033 }), obj; 46034} 46035var $d708735ed1303b43$export$2e2bcd8739ae039 = $d708735ed1303b43$export$98e6a39c04603d36; 46036var $149c1bd638913645$export$98e6a39c04603d36 = $d708735ed1303b43$export$2e2bcd8739ae039; 46037
vendor: 1,187 bytes, lines 46038-46062
46038// ../../node_modules/@testing-library/jest-dom/node_modules/dom-accessibility-api/dist/polyfills/array.from.mjs 46039var toStr = Object.prototype.toString; 46040function isCallable(fn4) { 46041 return typeof fn4 == "function" || toStr.call(fn4) === "[object Function]"; 46042} 46043function toInteger(value) { 46044 var number = Number(value); 46045 return isNaN(number) ? 0 : number === 0 || !isFinite(number) ? number : (number > 0 ? 1 : -1) * Math.floor(Math.abs(number)); 46046} 46047var maxSafeInteger = Math.pow(2, 53) - 1; 46048function toLength(value) { 46049 var len = toInteger(value); 46050 return Math.min(Math.max(len, 0), maxSafeInteger); 46051} 46052function arrayFrom(arrayLike, mapFn) { 46053 var C3 = Array, items = Object(arrayLike); 46054 if (arrayLike == null) 46055 throw new TypeError("Array.from requires an array-like object - not null or undefined"); 46056 if (typeof mapFn < "u" && !isCallable(mapFn)) 46057 throw new TypeError("Array.from: when provided, the second argument must be a function"); 46058 for (var len = toLength(items.length), A3 = isCallable(C3) ? Object(new C3(len)) : new Array(len), k = 0, kValue; k < len; ) 46059 kValue = items[k], mapFn ? A3[k] = mapFn(kValue, k) : A3[k] = kValue, k += 1; 46060 return A3.length = len, A3; 46061} 46062
vendor: 3,148 bytes, lines 46063-46145
46063// ../../node_modules/@testing-library/jest-dom/node_modules/dom-accessibility-api/dist/polyfills/SetLike.mjs 46064function _typeof2(o) { 46065 "@babel/helpers - typeof"; 46066 return _typeof2 = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(o2) { 46067 return typeof o2; 46068 } : function(o2) { 46069 return o2 && typeof Symbol == "function" && o2.constructor === Symbol && o2 !== Symbol.prototype ? "symbol" : typeof o2; 46070 }, _typeof2(o); 46071} 46072function _classCallCheck(instance, Constructor) { 46073 if (!(instance instanceof Constructor)) 46074 throw new TypeError("Cannot call a class as a function"); 46075} 46076function _defineProperties(target, props) { 46077 for (var i = 0; i < props.length; i++) { 46078 var descriptor = props[i]; 46079 descriptor.enumerable = descriptor.enumerable || !1, descriptor.configurable = !0, "value" in descriptor && (descriptor.writable = !0), Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); 46080 } 46081} 46082function _createClass(Constructor, protoProps, staticProps) { 46083 return protoProps && _defineProperties(Constructor.prototype, protoProps), staticProps && _defineProperties(Constructor, staticProps), Object.defineProperty(Constructor, "prototype", { writable: !1 }), Constructor; 46084} 46085function _defineProperty2(obj, key, value) { 46086 return key = _toPropertyKey(key), key in obj ? Object.defineProperty(obj, key, { value, enumerable: !0, configurable: !0, writable: !0 }) : obj[key] = value, obj; 46087} 46088function _toPropertyKey(arg) { 46089 var key = _toPrimitive(arg, "string"); 46090 return _typeof2(key) === "symbol" ? key : String(key); 46091} 46092function _toPrimitive(input2, hint) { 46093 if (_typeof2(input2) !== "object" || input2 === null) return input2; 46094 var prim = input2[Symbol.toPrimitive]; 46095 if (prim !== void 0) { 46096 var res = prim.call(input2, hint || "default"); 46097 if (_typeof2(res) !== "object") return res; 46098 throw new TypeError("@@toPrimitive must return a primitive value."); 46099 } 46100 return (hint === "string" ? String : Number)(input2); 46101} 46102var SetLike = (function() { 46103 function SetLike3() { 46104 var items = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : []; 46105 _classCallCheck(this, SetLike3), _defineProperty2(this, "items", void 0), this.items = items; 46106 } 46107 return _createClass(SetLike3, [{ 46108 key: "add", 46109 value: function(value) { 46110 return this.has(value) === !1 && this.items.push(value), this; 46111 } 46112 }, { 46113 key: "clear", 46114 value: function() { 46115 this.items = []; 46116 } 46117 }, { 46118 key: "delete", 46119 value: function(value) { 46120 var previousLength = this.items.length; 46121 return this.items = this.items.filter(function(item) { 46122 return item !== value; 46123 }), previousLength !== this.items.length; 46124 } 46125 }, { 46126 key: "forEach", 46127 value: function(callbackfn) { 46128 var _this = this; 46129 this.items.forEach(function(item) { 46130 callbackfn(item, item, _this); 46131 }); 46132 } 46133 }, { 46134 key: "has", 46135 value: function(value) { 46136 return this.items.indexOf(value) !== -1; 46137 } 46138 }, { 46139 key: "size", 46140 get: function() { 46141 return this.items.length; 46142 } 46143 }]), SetLike3; 46144})(), SetLike_default = typeof Set > "u" ? Set : SetLike; 46145
vendor: 5,247 bytes, lines 46146-46313
46146// ../../node_modules/@testing-library/jest-dom/node_modules/dom-accessibility-api/dist/getRole.mjs 46147function getLocalName(element) { 46148 var _element$localName; 46149 return ( 46150 // eslint-disable-next-line no-restricted-properties -- actual guard for environments without localName 46151 (_element$localName = element.localName) !== null && _element$localName !== void 0 ? _element$localName : ( 46152 // eslint-disable-next-line no-restricted-properties -- required for the fallback 46153 element.tagName.toLowerCase() 46154 ) 46155 ); 46156} 46157var localNameToRoleMappings = { 46158 article: "article", 46159 aside: "complementary", 46160 button: "button", 46161 datalist: "listbox", 46162 dd: "definition", 46163 details: "group", 46164 dialog: "dialog", 46165 dt: "term", 46166 fieldset: "group", 46167 figure: "figure", 46168 // WARNING: Only with an accessible name 46169 form: "form", 46170 footer: "contentinfo", 46171 h1: "heading", 46172 h2: "heading", 46173 h3: "heading", 46174 h4: "heading", 46175 h5: "heading", 46176 h6: "heading", 46177 header: "banner", 46178 hr: "separator", 46179 html: "document", 46180 legend: "legend", 46181 li: "listitem", 46182 math: "math", 46183 main: "main", 46184 menu: "list", 46185 nav: "navigation", 46186 ol: "list", 46187 optgroup: "group", 46188 // WARNING: Only in certain context 46189 option: "option", 46190 output: "status", 46191 progress: "progressbar", 46192 // WARNING: Only with an accessible name 46193 section: "region", 46194 summary: "button", 46195 table: "table", 46196 tbody: "rowgroup", 46197 textarea: "textbox", 46198 tfoot: "rowgroup", 46199 // WARNING: Only in certain context 46200 td: "cell", 46201 th: "columnheader", 46202 thead: "rowgroup", 46203 tr: "row", 46204 ul: "list" 46205}, prohibitedAttributes = { 46206 caption: /* @__PURE__ */ new Set(["aria-label", "aria-labelledby"]), 46207 code: /* @__PURE__ */ new Set(["aria-label", "aria-labelledby"]), 46208 deletion: /* @__PURE__ */ new Set(["aria-label", "aria-labelledby"]), 46209 emphasis: /* @__PURE__ */ new Set(["aria-label", "aria-labelledby"]), 46210 generic: /* @__PURE__ */ new Set(["aria-label", "aria-labelledby", "aria-roledescription"]), 46211 insertion: /* @__PURE__ */ new Set(["aria-label", "aria-labelledby"]), 46212 none: /* @__PURE__ */ new Set(["aria-label", "aria-labelledby"]), 46213 paragraph: /* @__PURE__ */ new Set(["aria-label", "aria-labelledby"]), 46214 presentation: /* @__PURE__ */ new Set(["aria-label", "aria-labelledby"]), 46215 strong: /* @__PURE__ */ new Set(["aria-label", "aria-labelledby"]), 46216 subscript: /* @__PURE__ */ new Set(["aria-label", "aria-labelledby"]), 46217 superscript: /* @__PURE__ */ new Set(["aria-label", "aria-labelledby"]) 46218}; 46219function hasGlobalAriaAttributes(element, role) { 46220 return [ 46221 "aria-atomic", 46222 "aria-busy", 46223 "aria-controls", 46224 "aria-current", 46225 "aria-description", 46226 "aria-describedby", 46227 "aria-details", 46228 // "disabled", 46229 "aria-dropeffect", 46230 // "errormessage", 46231 "aria-flowto", 46232 "aria-grabbed", 46233 // "haspopup", 46234 "aria-hidden", 46235 // "invalid", 46236 "aria-keyshortcuts", 46237 "aria-label", 46238 "aria-labelledby", 46239 "aria-live", 46240 "aria-owns", 46241 "aria-relevant", 46242 "aria-roledescription" 46243 ].some(function(attributeName) { 46244 var _prohibitedAttributes; 46245 return element.hasAttribute(attributeName) && !((_prohibitedAttributes = prohibitedAttributes[role]) !== null && _prohibitedAttributes !== void 0 && _prohibitedAttributes.has(attributeName)); 46246 }); 46247} 46248function ignorePresentationalRole(element, implicitRole) { 46249 return hasGlobalAriaAttributes(element, implicitRole); 46250} 46251function getRole(element) { 46252 var explicitRole = getExplicitRole(element); 46253 if (explicitRole === null || presentationRoles.indexOf(explicitRole) !== -1) { 46254 var implicitRole = getImplicitRole(element); 46255 if (presentationRoles.indexOf(explicitRole || "") === -1 || ignorePresentationalRole(element, implicitRole || "")) 46256 return implicitRole; 46257 } 46258 return explicitRole; 46259} 46260function getImplicitRole(element) { 46261 var mappedByTag = localNameToRoleMappings[getLocalName(element)]; 46262 if (mappedByTag !== void 0) 46263 return mappedByTag; 46264 switch (getLocalName(element)) { 46265 case "a": 46266 case "area": 46267 case "link": 46268 if (element.hasAttribute("href")) 46269 return "link"; 46270 break; 46271 case "img": 46272 return element.getAttribute("alt") === "" && !ignorePresentationalRole(element, "img") ? "presentation" : "img"; 46273 case "input": { 46274 var _ref = element, type5 = _ref.type; 46275 switch (type5) { 46276 case "button": 46277 case "image": 46278 case "reset": 46279 case "submit": 46280 return "button"; 46281 case "checkbox": 46282 case "radio": 46283 return type5; 46284 case "range": 46285 return "slider"; 46286 case "email": 46287 case "tel": 46288 case "text": 46289 case "url": 46290 return element.hasAttribute("list") ? "combobox" : "textbox"; 46291 case "search": 46292 return element.hasAttribute("list") ? "combobox" : "searchbox"; 46293 case "number": 46294 return "spinbutton"; 46295 default: 46296 return null; 46297 } 46298 } 46299 case "select": 46300 return element.hasAttribute("multiple") || element.size > 1 ? "listbox" : "combobox"; 46301 } 46302 return null; 46303} 46304function getExplicitRole(element) { 46305 var role = element.getAttribute("role"); 46306 if (role !== null) { 46307 var explicitRole = role.trim().split(" ")[0]; 46308 if (explicitRole.length > 0) 46309 return explicitRole; 46310 } 46311 return null; 46312} 46313
vendor: 2,292 bytes, lines 46314-46378
46314// ../../node_modules/@testing-library/jest-dom/node_modules/dom-accessibility-api/dist/util.mjs 46315var presentationRoles = ["presentation", "none"]; 46316function isElement(node2) { 46317 return node2 !== null && node2.nodeType === node2.ELEMENT_NODE; 46318} 46319function isHTMLTableCaptionElement(node2) { 46320 return isElement(node2) && getLocalName(node2) === "caption"; 46321} 46322function isHTMLInputElement(node2) { 46323 return isElement(node2) && getLocalName(node2) === "input"; 46324} 46325function isHTMLOptGroupElement(node2) { 46326 return isElement(node2) && getLocalName(node2) === "optgroup"; 46327} 46328function isHTMLSelectElement(node2) { 46329 return isElement(node2) && getLocalName(node2) === "select"; 46330} 46331function isHTMLTableElement(node2) { 46332 return isElement(node2) && getLocalName(node2) === "table"; 46333} 46334function isHTMLTextAreaElement(node2) { 46335 return isElement(node2) && getLocalName(node2) === "textarea"; 46336} 46337function safeWindow(node2) { 46338 var _ref = node2.ownerDocument === null ? node2 : node2.ownerDocument, defaultView = _ref.defaultView; 46339 if (defaultView === null) 46340 throw new TypeError("no window available"); 46341 return defaultView; 46342} 46343function isHTMLFieldSetElement(node2) { 46344 return isElement(node2) && getLocalName(node2) === "fieldset"; 46345} 46346function isHTMLLegendElement(node2) { 46347 return isElement(node2) && getLocalName(node2) === "legend"; 46348} 46349function isHTMLSlotElement(node2) { 46350 return isElement(node2) && getLocalName(node2) === "slot"; 46351} 46352function isSVGElement(node2) { 46353 return isElement(node2) && node2.ownerSVGElement !== void 0; 46354} 46355function isSVGSVGElement(node2) { 46356 return isElement(node2) && getLocalName(node2) === "svg"; 46357} 46358function isSVGTitleElement(node2) { 46359 return isSVGElement(node2) && getLocalName(node2) === "title"; 46360} 46361function queryIdRefs(node2, attributeName) { 46362 if (isElement(node2) && node2.hasAttribute(attributeName)) { 46363 var ids = node2.getAttribute(attributeName).split(" "), root2 = node2.getRootNode ? node2.getRootNode() : node2.ownerDocument; 46364 return ids.map(function(id) { 46365 return root2.getElementById(id); 46366 }).filter( 46367 function(element) { 46368 return element !== null; 46369 } 46370 // TODO: why does this not narrow? 46371 ); 46372 } 46373 return []; 46374} 46375function hasAnyConcreteRoles(node2, roles3) { 46376 return isElement(node2) ? roles3.indexOf(getRole(node2)) !== -1 : !1; 46377} 46378
vendor: 13,348 bytes, lines 46379-46650
46379// ../../node_modules/@testing-library/jest-dom/node_modules/dom-accessibility-api/dist/accessible-name-and-description.mjs 46380function asFlatString(s3) { 46381 return s3.trim().replace(/\s\s+/g, " "); 46382} 46383function isHidden(node2, getComputedStyleImplementation) { 46384 if (!isElement(node2)) 46385 return !1; 46386 if (node2.hasAttribute("hidden") || node2.getAttribute("aria-hidden") === "true") 46387 return !0; 46388 var style = getComputedStyleImplementation(node2); 46389 return style.getPropertyValue("display") === "none" || style.getPropertyValue("visibility") === "hidden"; 46390} 46391function isControl(node2) { 46392 return hasAnyConcreteRoles(node2, ["button", "combobox", "listbox", "textbox"]) || hasAbstractRole(node2, "range"); 46393} 46394function hasAbstractRole(node2, role) { 46395 if (!isElement(node2)) 46396 return !1; 46397 switch (role) { 46398 case "range": 46399 return hasAnyConcreteRoles(node2, ["meter", "progressbar", "scrollbar", "slider", "spinbutton"]); 46400 default: 46401 throw new TypeError("No knowledge about abstract role '".concat(role, "'. This is likely a bug :(")); 46402 } 46403} 46404function querySelectorAllSubtree(element, selectors) { 46405 var elements = arrayFrom(element.querySelectorAll(selectors)); 46406 return queryIdRefs(element, "aria-owns").forEach(function(root2) { 46407 elements.push.apply(elements, arrayFrom(root2.querySelectorAll(selectors))); 46408 }), elements; 46409} 46410function querySelectedOptions(listbox) { 46411 return isHTMLSelectElement(listbox) ? listbox.selectedOptions || querySelectorAllSubtree(listbox, "[selected]") : querySelectorAllSubtree(listbox, '[aria-selected="true"]'); 46412} 46413function isMarkedPresentational(node2) { 46414 return hasAnyConcreteRoles(node2, presentationRoles); 46415} 46416function isNativeHostLanguageTextAlternativeElement(node2) { 46417 return isHTMLTableCaptionElement(node2); 46418} 46419function allowsNameFromContent(node2) { 46420 return hasAnyConcreteRoles(node2, ["button", "cell", "checkbox", "columnheader", "gridcell", "heading", "label", "legend", "link", "menuitem", "menuitemcheckbox", "menuitemradio", "option", "radio", "row", "rowheader", "switch", "tab", "tooltip", "treeitem"]); 46421} 46422function isDescendantOfNativeHostLanguageTextAlternativeElement(node2) { 46423 return !1; 46424} 46425function getValueOfTextbox(element) { 46426 return isHTMLInputElement(element) || isHTMLTextAreaElement(element) ? element.value : element.textContent || ""; 46427} 46428function getTextualContent(declaration2) { 46429 var content = declaration2.getPropertyValue("content"); 46430 return /^["'].*["']$/.test(content) ? content.slice(1, -1) : ""; 46431} 46432function isLabelableElement(element) { 46433 var localName = getLocalName(element); 46434 return localName === "button" || localName === "input" && element.getAttribute("type") !== "hidden" || localName === "meter" || localName === "output" || localName === "progress" || localName === "select" || localName === "textarea"; 46435} 46436function findLabelableElement(element) { 46437 if (isLabelableElement(element)) 46438 return element; 46439 var labelableElement = null; 46440 return element.childNodes.forEach(function(childNode) { 46441 if (labelableElement === null && isElement(childNode)) { 46442 var descendantLabelableElement = findLabelableElement(childNode); 46443 descendantLabelableElement !== null && (labelableElement = descendantLabelableElement); 46444 } 46445 }), labelableElement; 46446} 46447function getControlOfLabel(label) { 46448 if (label.control !== void 0) 46449 return label.control; 46450 var htmlFor = label.getAttribute("for"); 46451 return htmlFor !== null ? label.ownerDocument.getElementById(htmlFor) : findLabelableElement(label); 46452} 46453function getLabels(element) { 46454 var labelsProperty = element.labels; 46455 if (labelsProperty === null) 46456 return labelsProperty; 46457 if (labelsProperty !== void 0) 46458 return arrayFrom(labelsProperty); 46459 if (!isLabelableElement(element)) 46460 return null; 46461 var document13 = element.ownerDocument; 46462 return arrayFrom(document13.querySelectorAll("label")).filter(function(label) { 46463 return getControlOfLabel(label) === element; 46464 }); 46465} 46466function getSlotContents(slot) { 46467 var assignedNodes = slot.assignedNodes(); 46468 return assignedNodes.length === 0 ? arrayFrom(slot.childNodes) : assignedNodes; 46469} 46470function computeTextAlternative(root2) { 46471 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; 46472 function computeMiscTextAlternative(node2, context) { 46473 var accumulatedText = ""; 46474 if (isElement(node2) && computedStyleSupportsPseudoElements) { 46475 var pseudoBefore = getComputedStyle3(node2, "::before"), beforeContent = getTextualContent(pseudoBefore); 46476 accumulatedText = "".concat(beforeContent, " ").concat(accumulatedText); 46477 } 46478 var childNodes = isHTMLSlotElement(node2) ? getSlotContents(node2) : arrayFrom(node2.childNodes).concat(queryIdRefs(node2, "aria-owns")); 46479 if (childNodes.forEach(function(child) { 46480 var result = computeTextAlternative3(child, { 46481 isEmbeddedInLabel: context.isEmbeddedInLabel, 46482 isReferenced: !1, 46483 recursion: !0 46484 }), display2 = isElement(child) ? getComputedStyle3(child).getPropertyValue("display") : "inline", separator = display2 !== "inline" ? " " : ""; 46485 accumulatedText += "".concat(separator).concat(result).concat(separator); 46486 }), isElement(node2) && computedStyleSupportsPseudoElements) { 46487 var pseudoAfter = getComputedStyle3(node2, "::after"), afterContent = getTextualContent(pseudoAfter); 46488 accumulatedText = "".concat(accumulatedText, " ").concat(afterContent); 46489 } 46490 return accumulatedText.trim(); 46491 } 46492 function useAttribute(element, attributeName) { 46493 var attribute = element.getAttributeNode(attributeName); 46494 return attribute !== null && !consultedNodes.has(attribute) && attribute.value.trim() !== "" ? (consultedNodes.add(attribute), attribute.value) : null; 46495 } 46496 function computeTooltipAttributeValue(node2) { 46497 return isElement(node2) ? useAttribute(node2, "title") : null; 46498 } 46499 function computeElementTextAlternative(node2) { 46500 if (!isElement(node2)) 46501 return null; 46502 if (isHTMLFieldSetElement(node2)) { 46503 consultedNodes.add(node2); 46504 for (var children = arrayFrom(node2.childNodes), i = 0; i < children.length; i += 1) { 46505 var child = children[i]; 46506 if (isHTMLLegendElement(child)) 46507 return computeTextAlternative3(child, { 46508 isEmbeddedInLabel: !1, 46509 isReferenced: !1, 46510 recursion: !1 46511 }); 46512 } 46513 } else if (isHTMLTableElement(node2)) { 46514 consultedNodes.add(node2); 46515 for (var _children = arrayFrom(node2.childNodes), _i = 0; _i < _children.length; _i += 1) { 46516 var _child = _children[_i]; 46517 if (isHTMLTableCaptionElement(_child)) 46518 return computeTextAlternative3(_child, { 46519 isEmbeddedInLabel: !1, 46520 isReferenced: !1, 46521 recursion: !1 46522 }); 46523 } 46524 } else if (isSVGSVGElement(node2)) { 46525 consultedNodes.add(node2); 46526 for (var _children2 = arrayFrom(node2.childNodes), _i2 = 0; _i2 < _children2.length; _i2 += 1) { 46527 var _child2 = _children2[_i2]; 46528 if (isSVGTitleElement(_child2)) 46529 return _child2.textContent; 46530 } 46531 return null; 46532 } else if (getLocalName(node2) === "img" || getLocalName(node2) === "area") { 46533 var nameFromAlt = useAttribute(node2, "alt"); 46534 if (nameFromAlt !== null) 46535 return nameFromAlt; 46536 } else if (isHTMLOptGroupElement(node2)) { 46537 var nameFromLabel = useAttribute(node2, "label"); 46538 if (nameFromLabel !== null) 46539 return nameFromLabel; 46540 } 46541 if (isHTMLInputElement(node2) && (node2.type === "button" || node2.type === "submit" || node2.type === "reset")) { 46542 var nameFromValue = useAttribute(node2, "value"); 46543 if (nameFromValue !== null) 46544 return nameFromValue; 46545 if (node2.type === "submit") 46546 return "Submit"; 46547 if (node2.type === "reset") 46548 return "Reset"; 46549 } 46550 var labels = getLabels(node2); 46551 if (labels !== null && labels.length !== 0) 46552 return consultedNodes.add(node2), arrayFrom(labels).map(function(element) { 46553 return computeTextAlternative3(element, { 46554 isEmbeddedInLabel: !0, 46555 isReferenced: !1, 46556 recursion: !0 46557 }); 46558 }).filter(function(label) { 46559 return label.length > 0; 46560 }).join(" "); 46561 if (isHTMLInputElement(node2) && node2.type === "image") { 46562 var _nameFromAlt = useAttribute(node2, "alt"); 46563 if (_nameFromAlt !== null) 46564 return _nameFromAlt; 46565 var nameFromTitle = useAttribute(node2, "title"); 46566 return nameFromTitle !== null ? nameFromTitle : "Submit Query"; 46567 } 46568 if (hasAnyConcreteRoles(node2, ["button"])) { 46569 var nameFromSubTree = computeMiscTextAlternative(node2, { 46570 isEmbeddedInLabel: !1, 46571 isReferenced: !1 46572 }); 46573 if (nameFromSubTree !== "") 46574 return nameFromSubTree; 46575 } 46576 return null; 46577 } 46578 function computeTextAlternative3(current, context) { 46579 if (consultedNodes.has(current)) 46580 return ""; 46581 if (!hidden && isHidden(current, getComputedStyle3) && !context.isReferenced) 46582 return consultedNodes.add(current), ""; 46583 var labelAttributeNode = isElement(current) ? current.getAttributeNode("aria-labelledby") : null, labelElements = labelAttributeNode !== null && !consultedNodes.has(labelAttributeNode) ? queryIdRefs(current, "aria-labelledby") : []; 46584 if (compute === "name" && !context.isReferenced && labelElements.length > 0) 46585 return consultedNodes.add(labelAttributeNode), labelElements.map(function(element) { 46586 return computeTextAlternative3(element, { 46587 isEmbeddedInLabel: context.isEmbeddedInLabel, 46588 isReferenced: !0, 46589 // this isn't recursion as specified, otherwise we would skip 46590 // `aria-label` in 46591 // <input id="myself" aria-label="foo" aria-labelledby="myself" 46592 recursion: !1 46593 }); 46594 }).join(" "); 46595 var skipToStep2E = context.recursion && isControl(current) && compute === "name"; 46596 if (!skipToStep2E) { 46597 var ariaLabel = (isElement(current) && current.getAttribute("aria-label") || "").trim(); 46598 if (ariaLabel !== "" && compute === "name") 46599 return consultedNodes.add(current), ariaLabel; 46600 if (!isMarkedPresentational(current)) { 46601 var elementTextAlternative = computeElementTextAlternative(current); 46602 if (elementTextAlternative !== null) 46603 return consultedNodes.add(current), elementTextAlternative; 46604 } 46605 } 46606 if (hasAnyConcreteRoles(current, ["menu"])) 46607 return consultedNodes.add(current), ""; 46608 if (skipToStep2E || context.isEmbeddedInLabel || context.isReferenced) { 46609 if (hasAnyConcreteRoles(current, ["combobox", "listbox"])) { 46610 consultedNodes.add(current); 46611 var selectedOptions = querySelectedOptions(current); 46612 return selectedOptions.length === 0 ? isHTMLInputElement(current) ? current.value : "" : arrayFrom(selectedOptions).map(function(selectedOption) { 46613 return computeTextAlternative3(selectedOption, { 46614 isEmbeddedInLabel: context.isEmbeddedInLabel, 46615 isReferenced: !1, 46616 recursion: !0 46617 }); 46618 }).join(" "); 46619 } 46620 if (hasAbstractRole(current, "range")) 46621 return consultedNodes.add(current), current.hasAttribute("aria-valuetext") ? current.getAttribute("aria-valuetext") : current.hasAttribute("aria-valuenow") ? current.getAttribute("aria-valuenow") : current.getAttribute("value") || ""; 46622 if (hasAnyConcreteRoles(current, ["textbox"])) 46623 return consultedNodes.add(current), getValueOfTextbox(current); 46624 } 46625 if (allowsNameFromContent(current) || isElement(current) && context.isReferenced || isNativeHostLanguageTextAlternativeElement(current) || isDescendantOfNativeHostLanguageTextAlternativeElement(current)) { 46626 var accumulatedText2F = computeMiscTextAlternative(current, { 46627 isEmbeddedInLabel: context.isEmbeddedInLabel, 46628 isReferenced: !1 46629 }); 46630 if (accumulatedText2F !== "") 46631 return consultedNodes.add(current), accumulatedText2F; 46632 } 46633 if (current.nodeType === current.TEXT_NODE) 46634 return consultedNodes.add(current), current.textContent || ""; 46635 if (context.recursion) 46636 return consultedNodes.add(current), computeMiscTextAlternative(current, { 46637 isEmbeddedInLabel: context.isEmbeddedInLabel, 46638 isReferenced: !1 46639 }); 46640 var tooltipAttributeValue = computeTooltipAttributeValue(current); 46641 return tooltipAttributeValue !== null ? (consultedNodes.add(current), tooltipAttributeValue) : (consultedNodes.add(current), ""); 46642 } 46643 return asFlatString(computeTextAlternative3(root2, { 46644 isEmbeddedInLabel: !1, 46645 // by spec computeAccessibleDescription starts with the referenced elements as roots 46646 isReferenced: compute === "description", 46647 recursion: !1 46648 })); 46649} 46650
vendor: 2,659 bytes, lines 46651-46714
46651// ../../node_modules/@testing-library/jest-dom/node_modules/dom-accessibility-api/dist/accessible-description.mjs 46652function _typeof3(o) { 46653 "@babel/helpers - typeof"; 46654 return _typeof3 = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(o2) { 46655 return typeof o2; 46656 } : function(o2) { 46657 return o2 && typeof Symbol == "function" && o2.constructor === Symbol && o2 !== Symbol.prototype ? "symbol" : typeof o2; 46658 }, _typeof3(o); 46659} 46660function ownKeys3(e, r2) { 46661 var t = Object.keys(e); 46662 if (Object.getOwnPropertySymbols) { 46663 var o = Object.getOwnPropertySymbols(e); 46664 r2 && (o = o.filter(function(r3) { 46665 return Object.getOwnPropertyDescriptor(e, r3).enumerable; 46666 })), t.push.apply(t, o); 46667 } 46668 return t; 46669} 46670function _objectSpread3(e) { 46671 for (var r2 = 1; r2 < arguments.length; r2++) { 46672 var t = arguments[r2] != null ? arguments[r2] : {}; 46673 r2 % 2 ? ownKeys3(Object(t), !0).forEach(function(r3) { 46674 _defineProperty3(e, r3, t[r3]); 46675 }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys3(Object(t)).forEach(function(r3) { 46676 Object.defineProperty(e, r3, Object.getOwnPropertyDescriptor(t, r3)); 46677 }); 46678 } 46679 return e; 46680} 46681function _defineProperty3(obj, key, value) { 46682 return key = _toPropertyKey2(key), key in obj ? Object.defineProperty(obj, key, { value, enumerable: !0, configurable: !0, writable: !0 }) : obj[key] = value, obj; 46683} 46684function _toPropertyKey2(arg) { 46685 var key = _toPrimitive2(arg, "string"); 46686 return _typeof3(key) === "symbol" ? key : String(key); 46687} 46688function _toPrimitive2(input2, hint) { 46689 if (_typeof3(input2) !== "object" || input2 === null) return input2; 46690 var prim = input2[Symbol.toPrimitive]; 46691 if (prim !== void 0) { 46692 var res = prim.call(input2, hint || "default"); 46693 if (_typeof3(res) !== "object") return res; 46694 throw new TypeError("@@toPrimitive must return a primitive value."); 46695 } 46696 return (hint === "string" ? String : Number)(input2); 46697} 46698function computeAccessibleDescription(root2) { 46699 var options = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, description = queryIdRefs(root2, "aria-describedby").map(function(element) { 46700 return computeTextAlternative(element, _objectSpread3(_objectSpread3({}, options), {}, { 46701 compute: "description" 46702 })); 46703 }).join(" "); 46704 if (description === "") { 46705 var ariaDescription = root2.getAttribute("aria-description"); 46706 description = ariaDescription === null ? "" : ariaDescription; 46707 } 46708 if (description === "") { 46709 var title = root2.getAttribute("title"); 46710 description = title === null ? "" : title; 46711 } 46712 return description; 46713} 46714
vendor: 532 bytes, lines 46715-46723
46715// ../../node_modules/@testing-library/jest-dom/node_modules/dom-accessibility-api/dist/accessible-name.mjs 46716function prohibitsNaming(node2) { 46717 return hasAnyConcreteRoles(node2, ["caption", "code", "deletion", "emphasis", "generic", "insertion", "none", "paragraph", "presentation", "strong", "subscript", "superscript"]); 46718} 46719function computeAccessibleName(root2) { 46720 var options = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; 46721 return prohibitsNaming(root2) ? "" : computeTextAlternative(root2, options); 46722} 46723
vendor: 48,841 bytes, lines 46724-48002
46724// ../../node_modules/@testing-library/jest-dom/dist/matchers-35e4d3bd.mjs 46725var import_aria_query = __toESM(require_lib2(), 1), import_picocolors = __toESM(require_picocolors_browser(), 1), import_css3 = __toESM(require_css_escape(), 1), GenericTypeError = class extends Error { 46726 constructor(expectedString, received, matcherFn, context) { 46727 super(), Error.captureStackTrace && Error.captureStackTrace(this, matcherFn); 46728 let withType = ""; 46729 try { 46730 withType = context.utils.printWithType( 46731 "Received", 46732 received, 46733 context.utils.printReceived 46734 ); 46735 } catch { 46736 } 46737 this.message = [ 46738 context.utils.matcherHint( 46739 `${context.isNot ? ".not" : ""}.${matcherFn.name}`, 46740 "received", 46741 "" 46742 ), 46743 "", 46744 // eslint-disable-next-line new-cap 46745 `${context.utils.RECEIVED_COLOR( 46746 "received" 46747 )} value must ${expectedString}.`, 46748 withType 46749 ].join(` 46750`); 46751 } 46752}, HtmlElementTypeError = class extends GenericTypeError { 46753 constructor(...args) { 46754 super("be an HTMLElement or an SVGElement", ...args); 46755 } 46756}, NodeTypeError = class extends GenericTypeError { 46757 constructor(...args) { 46758 super("be a Node", ...args); 46759 } 46760}; 46761function checkHasWindow(htmlElement, ErrorClass, ...args) { 46762 if (!htmlElement || !htmlElement.ownerDocument || !htmlElement.ownerDocument.defaultView) 46763 throw new ErrorClass(htmlElement, ...args); 46764} 46765function checkNode(node2, ...args) { 46766 checkHasWindow(node2, NodeTypeError, ...args); 46767 let window2 = node2.ownerDocument.defaultView; 46768 if (!(node2 instanceof window2.Node)) 46769 throw new NodeTypeError(node2, ...args); 46770} 46771function checkHtmlElement(htmlElement, ...args) { 46772 checkHasWindow(htmlElement, HtmlElementTypeError, ...args); 46773 let window2 = htmlElement.ownerDocument.defaultView; 46774 if (!(htmlElement instanceof window2.HTMLElement) && !(htmlElement instanceof window2.SVGElement)) 46775 throw new HtmlElementTypeError(htmlElement, ...args); 46776} 46777var InvalidCSSError = class extends Error { 46778 constructor(received, matcherFn, context) { 46779 super(), Error.captureStackTrace && Error.captureStackTrace(this, matcherFn), this.message = [ 46780 received.message, 46781 "", 46782 // eslint-disable-next-line new-cap 46783 context.utils.RECEIVED_COLOR("Failing css:"), 46784 // eslint-disable-next-line new-cap 46785 context.utils.RECEIVED_COLOR(`${received.css}`) 46786 ].join(` 46787`); 46788 } 46789}; 46790function parseCSS(css3, ...args) { 46791 let ast = $149c1bd638913645$export$98e6a39c04603d36(`selector { ${css3} }`, { silent: !0 }).stylesheet; 46792 if (ast.parsingErrors && ast.parsingErrors.length > 0) { 46793 let { reason, line: line2 } = ast.parsingErrors[0]; 46794 throw new InvalidCSSError( 46795 { 46796 css: css3, 46797 message: `Syntax error parsing expected css: ${reason} on line: ${line2}` 46798 }, 46799 ...args 46800 ); 46801 } 46802 return ast.rules[0].declarations.filter((d) => d.type === "declaration").reduce( 46803 (obj, { property, value }) => Object.assign(obj, { [property]: value }), 46804 {} 46805 ); 46806} 46807function display(context, value) { 46808 return typeof value == "string" ? value : context.utils.stringify(value); 46809} 46810function getMessage3(context, matcher, expectedLabel, expectedValue, receivedLabel, receivedValue) { 46811 return [ 46812 `${matcher} 46813`, 46814 // eslint-disable-next-line new-cap 46815 `${expectedLabel}: 46816${context.utils.EXPECTED_COLOR( 46817 (0, import_redent.default)(display(context, expectedValue), 2) 46818 )}`, 46819 // eslint-disable-next-line new-cap 46820 `${receivedLabel}: 46821${context.utils.RECEIVED_COLOR( 46822 (0, import_redent.default)(display(context, receivedValue), 2) 46823 )}` 46824 ].join(` 46825`); 46826} 46827function matches2(textToMatch, matcher) { 46828 return matcher instanceof RegExp ? matcher.test(textToMatch) : textToMatch.includes(String(matcher)); 46829} 46830function deprecate2(name, replacementText) { 46831 console.warn( 46832 `Warning: ${name} has been deprecated and will be removed in future updates.`, 46833 replacementText 46834 ); 46835} 46836function normalize(text) { 46837 return text.replace(/\s+/g, " ").trim(); 46838} 46839function getTag2(element) { 46840 return element.tagName && element.tagName.toLowerCase(); 46841} 46842function getSelectValue({ multiple, options }) { 46843 let selectedOptions = [...options].filter((option) => option.selected); 46844 if (multiple) 46845 return [...selectedOptions].map((opt) => opt.value); 46846 if (selectedOptions.length !== 0) 46847 return selectedOptions[0].value; 46848} 46849function getInputValue(inputElement) { 46850 switch (inputElement.type) { 46851 case "number": 46852 return inputElement.value === "" ? null : Number(inputElement.value); 46853 case "checkbox": 46854 return inputElement.checked; 46855 default: 46856 return inputElement.value; 46857 } 46858} 46859var rolesSupportingValues = ["meter", "progressbar", "slider", "spinbutton"]; 46860function getAccessibleValue(element) { 46861 if (rolesSupportingValues.includes(element.getAttribute("role"))) 46862 return Number(element.getAttribute("aria-valuenow")); 46863} 46864function getSingleElementValue(element) { 46865 if (element) 46866 switch (element.tagName.toLowerCase()) { 46867 case "input": 46868 return getInputValue(element); 46869 case "select": 46870 return getSelectValue(element); 46871 default: 46872 return element.value ?? getAccessibleValue(element); 46873 } 46874} 46875function toSentence(array, { wordConnector = ", ", lastWordConnector = " and " } = {}) { 46876 return [array.slice(0, -1).join(wordConnector), array[array.length - 1]].join( 46877 array.length > 1 ? lastWordConnector : "" 46878 ); 46879} 46880function compareAsSet(val1, val2) { 46881 return Array.isArray(val1) && Array.isArray(val2) ? [...new Set(val1)].every((v) => new Set(val2).has(v)) : val1 === val2; 46882} 46883function toBeInTheDOM(element, container) { 46884 return deprecate2( 46885 "toBeInTheDOM", 46886 "Please use toBeInTheDocument for searching the entire document and toContainElement for searching a specific container." 46887 ), element && checkHtmlElement(element, toBeInTheDOM, this), container && checkHtmlElement(container, toBeInTheDOM, this), { 46888 pass: container ? container.contains(element) : !!element, 46889 message: () => [ 46890 this.utils.matcherHint( 46891 `${this.isNot ? ".not" : ""}.toBeInTheDOM`, 46892 "element", 46893 "" 46894 ), 46895 "", 46896 "Received:", 46897 ` ${this.utils.printReceived( 46898 element && element.cloneNode(!1) 46899 )}` 46900 ].join(` 46901`) 46902 }; 46903} 46904function toBeInTheDocument(element) { 46905 (element !== null || !this.isNot) && checkHtmlElement(element, toBeInTheDocument, this); 46906 let pass = element === null ? !1 : element.ownerDocument === element.getRootNode({ composed: !0 }), errorFound = () => `expected document not to contain element, found ${this.utils.stringify( 46907 element.cloneNode(!0) 46908 )} instead`, errorNotFound = () => "element could not be found in the document"; 46909 return { 46910 pass, 46911 message: () => [ 46912 this.utils.matcherHint( 46913 `${this.isNot ? ".not" : ""}.toBeInTheDocument`, 46914 "element", 46915 "" 46916 ), 46917 "", 46918 // eslint-disable-next-line new-cap 46919 this.utils.RECEIVED_COLOR(this.isNot ? errorFound() : errorNotFound()) 46920 ].join(` 46921`) 46922 }; 46923} 46924function toBeEmpty(element) { 46925 return deprecate2( 46926 "toBeEmpty", 46927 "Please use instead toBeEmptyDOMElement for finding empty nodes in the DOM." 46928 ), checkHtmlElement(element, toBeEmpty, this), { 46929 pass: element.innerHTML === "", 46930 message: () => [ 46931 this.utils.matcherHint( 46932 `${this.isNot ? ".not" : ""}.toBeEmpty`, 46933 "element", 46934 "" 46935 ), 46936 "", 46937 "Received:", 46938 ` ${this.utils.printReceived(element.innerHTML)}` 46939 ].join(` 46940`) 46941 }; 46942} 46943function toBeEmptyDOMElement(element) { 46944 return checkHtmlElement(element, toBeEmptyDOMElement, this), { 46945 pass: isEmptyElement(element), 46946 message: () => [ 46947 this.utils.matcherHint( 46948 `${this.isNot ? ".not" : ""}.toBeEmptyDOMElement`, 46949 "element", 46950 "" 46951 ), 46952 "", 46953 "Received:", 46954 ` ${this.utils.printReceived(element.innerHTML)}` 46955 ].join(` 46956`) 46957 }; 46958} 46959function isEmptyElement(element) { 46960 return [...element.childNodes].filter((node2) => node2.nodeType !== 8).length === 0; 46961} 46962function toContainElement(container, element) { 46963 return checkHtmlElement(container, toContainElement, this), element !== null && checkHtmlElement(element, toContainElement, this), { 46964 pass: container.contains(element), 46965 message: () => [ 46966 this.utils.matcherHint( 46967 `${this.isNot ? ".not" : ""}.toContainElement`, 46968 "element", 46969 "element" 46970 ), 46971 "", 46972 // eslint-disable-next-line new-cap 46973 this.utils.RECEIVED_COLOR(`${this.utils.stringify( 46974 container.cloneNode(!1) 46975 )} ${this.isNot ? "contains:" : "does not contain:"} ${this.utils.stringify(element && element.cloneNode(!1))} 46976 `) 46977 ].join(` 46978`) 46979 }; 46980} 46981function getNormalizedHtml(container, htmlText) { 46982 let div = container.ownerDocument.createElement("div"); 46983 return div.innerHTML = htmlText, div.innerHTML; 46984} 46985function toContainHTML(container, htmlText) { 46986 if (checkHtmlElement(container, toContainHTML, this), typeof htmlText != "string") 46987 throw new Error(`.toContainHTML() expects a string value, got ${htmlText}`); 46988 return { 46989 pass: container.outerHTML.includes(getNormalizedHtml(container, htmlText)), 46990 message: () => [ 46991 this.utils.matcherHint( 46992 `${this.isNot ? ".not" : ""}.toContainHTML`, 46993 "element", 46994 "" 46995 ), 46996 "Expected:", 46997 // eslint-disable-next-line new-cap 46998 ` ${this.utils.EXPECTED_COLOR(htmlText)}`, 46999 "Received:", 47000 ` ${this.utils.printReceived(container.cloneNode(!0))}` 47001 ].join(` 47002`) 47003 }; 47004} 47005function toHaveTextContent(node2, checkWith, options = { normalizeWhitespace: !0 }) { 47006 checkNode(node2, toHaveTextContent, this); 47007 let textContent = options.normalizeWhitespace ? normalize(node2.textContent) : node2.textContent.replace(/\u00a0/g, " "), checkingWithEmptyString = textContent !== "" && checkWith === ""; 47008 return { 47009 pass: !checkingWithEmptyString && matches2(textContent, checkWith), 47010 message: () => { 47011 let to = this.isNot ? "not to" : "to"; 47012 return getMessage3( 47013 this, 47014 this.utils.matcherHint( 47015 `${this.isNot ? ".not" : ""}.toHaveTextContent`, 47016 "element", 47017 "" 47018 ), 47019 checkingWithEmptyString ? "Checking with empty string will always match, use .toBeEmptyDOMElement() instead" : `Expected element ${to} have text content`, 47020 checkWith, 47021 "Received", 47022 textContent 47023 ); 47024 } 47025 }; 47026} 47027function toHaveAccessibleDescription(htmlElement, expectedAccessibleDescription) { 47028 checkHtmlElement(htmlElement, toHaveAccessibleDescription, this); 47029 let actualAccessibleDescription = computeAccessibleDescription(htmlElement), missingExpectedValue = arguments.length === 1, pass = !1; 47030 return missingExpectedValue ? pass = actualAccessibleDescription !== "" : pass = expectedAccessibleDescription instanceof RegExp ? expectedAccessibleDescription.test(actualAccessibleDescription) : this.equals( 47031 actualAccessibleDescription, 47032 expectedAccessibleDescription 47033 ), { 47034 pass, 47035 message: () => { 47036 let to = this.isNot ? "not to" : "to"; 47037 return getMessage3( 47038 this, 47039 this.utils.matcherHint( 47040 `${this.isNot ? ".not" : ""}.${toHaveAccessibleDescription.name}`, 47041 "element", 47042 "" 47043 ), 47044 `Expected element ${to} have accessible description`, 47045 expectedAccessibleDescription, 47046 "Received", 47047 actualAccessibleDescription 47048 ); 47049 } 47050 }; 47051} 47052var ariaInvalidName = "aria-invalid", validStates = ["false"]; 47053function toHaveAccessibleErrorMessage(htmlElement, expectedAccessibleErrorMessage) { 47054 checkHtmlElement(htmlElement, toHaveAccessibleErrorMessage, this); 47055 let to = this.isNot ? "not to" : "to", method = this.isNot ? ".not.toHaveAccessibleErrorMessage" : ".toHaveAccessibleErrorMessage", errormessageId = htmlElement.getAttribute("aria-errormessage"); 47056 if (!!errormessageId && /\s+/.test(errormessageId)) 47057 return { 47058 pass: !1, 47059 message: () => getMessage3( 47060 this, 47061 this.utils.matcherHint(method, "element"), 47062 "Expected element's `aria-errormessage` attribute to be empty or a single, valid ID", 47063 "", 47064 "Received", 47065 `aria-errormessage="${errormessageId}"` 47066 ) 47067 }; 47068 let ariaInvalidVal = htmlElement.getAttribute(ariaInvalidName); 47069 if (!htmlElement.hasAttribute(ariaInvalidName) || validStates.includes(ariaInvalidVal)) 47070 return { 47071 pass: !1, 47072 message: () => getMessage3( 47073 this, 47074 this.utils.matcherHint(method, "element"), 47075 "Expected element to be marked as invalid with attribute", 47076 `${ariaInvalidName}="${String(!0)}"`, 47077 "Received", 47078 htmlElement.hasAttribute("aria-invalid") ? `${ariaInvalidName}="${htmlElement.getAttribute(ariaInvalidName)}` : null 47079 ) 47080 }; 47081 let error = normalize( 47082 htmlElement.ownerDocument.getElementById(errormessageId)?.textContent ?? "" 47083 ); 47084 return { 47085 pass: expectedAccessibleErrorMessage === void 0 ? !!error : expectedAccessibleErrorMessage instanceof RegExp ? expectedAccessibleErrorMessage.test(error) : this.equals(error, expectedAccessibleErrorMessage), 47086 message: () => getMessage3( 47087 this, 47088 this.utils.matcherHint(method, "element"), 47089 `Expected element ${to} have accessible error message`, 47090 expectedAccessibleErrorMessage ?? "", 47091 "Received", 47092 error 47093 ) 47094 }; 47095} 47096var elementRoleList = buildElementRoleList(import_aria_query.elementRoles); 47097function toHaveRole(htmlElement, expectedRole) { 47098 checkHtmlElement(htmlElement, toHaveRole, this); 47099 let actualRoles = getExplicitOrImplicitRoles(htmlElement); 47100 return { 47101 pass: actualRoles.some((el) => el === expectedRole), 47102 message: () => { 47103 let to = this.isNot ? "not to" : "to"; 47104 return getMessage3( 47105 this, 47106 this.utils.matcherHint( 47107 `${this.isNot ? ".not" : ""}.${toHaveRole.name}`, 47108 "element", 47109 "" 47110 ), 47111 `Expected element ${to} have role`, 47112 expectedRole, 47113 "Received", 47114 actualRoles.join(", ") 47115 ); 47116 } 47117 }; 47118} 47119function getExplicitOrImplicitRoles(htmlElement) { 47120 return htmlElement.hasAttribute("role") ? htmlElement.getAttribute("role").split(" ").filter(Boolean) : getImplicitAriaRoles(htmlElement); 47121} 47122function getImplicitAriaRoles(currentNode) { 47123 for (let { match: match3, roles: roles3 } of elementRoleList) 47124 if (match3(currentNode)) 47125 return [...roles3]; 47126 return []; 47127} 47128function buildElementRoleList(elementRolesMap) { 47129 function makeElementSelector({ name, attributes }) { 47130 return `${name}${attributes.map(({ name: attributeName, value, constraints = [] }) => constraints.indexOf("undefined") !== -1 ? `:not([${attributeName}])` : value ? `[${attributeName}="${value}"]` : `[${attributeName}]`).join("")}`; 47131 } 47132 function getSelectorSpecificity({ attributes = [] }) { 47133 return attributes.length; 47134 } 47135 function bySelectorSpecificity({ specificity: leftSpecificity }, { specificity: rightSpecificity }) { 47136 return rightSpecificity - leftSpecificity; 47137 } 47138 function match3(element) { 47139 let { attributes = [] } = element, typeTextIndex = attributes.findIndex( 47140 (attribute) => attribute.value && attribute.name === "type" && attribute.value === "text" 47141 ); 47142 typeTextIndex >= 0 && (attributes = [ 47143 ...attributes.slice(0, typeTextIndex), 47144 ...attributes.slice(typeTextIndex + 1) 47145 ]); 47146 let selector = makeElementSelector({ ...element, attributes }); 47147 return (node2) => typeTextIndex >= 0 && node2.type !== "text" ? !1 : node2.matches(selector); 47148 } 47149 let result = []; 47150 for (let [element, roles3] of elementRolesMap.entries()) 47151 result = [ 47152 ...result, 47153 { 47154 match: match3(element), 47155 roles: Array.from(roles3), 47156 specificity: getSelectorSpecificity(element) 47157 } 47158 ]; 47159 return result.sort(bySelectorSpecificity); 47160} 47161function toHaveAccessibleName(htmlElement, expectedAccessibleName) { 47162 checkHtmlElement(htmlElement, toHaveAccessibleName, this); 47163 let actualAccessibleName = computeAccessibleName(htmlElement), missingExpectedValue = arguments.length === 1, pass = !1; 47164 return missingExpectedValue ? pass = actualAccessibleName !== "" : pass = expectedAccessibleName instanceof RegExp ? expectedAccessibleName.test(actualAccessibleName) : this.equals(actualAccessibleName, expectedAccessibleName), { 47165 pass, 47166 message: () => { 47167 let to = this.isNot ? "not to" : "to"; 47168 return getMessage3( 47169 this, 47170 this.utils.matcherHint( 47171 `${this.isNot ? ".not" : ""}.${toHaveAccessibleName.name}`, 47172 "element", 47173 "" 47174 ), 47175 `Expected element ${to} have accessible name`, 47176 expectedAccessibleName, 47177 "Received", 47178 actualAccessibleName 47179 ); 47180 } 47181 }; 47182} 47183function printAttribute(stringify8, name, value) { 47184 return value === void 0 ? name : `${name}=${stringify8(value)}`; 47185} 47186function getAttributeComment(stringify8, name, value) { 47187 return value === void 0 ? `element.hasAttribute(${stringify8(name)})` : `element.getAttribute(${stringify8(name)}) === ${stringify8(value)}`; 47188} 47189function toHaveAttribute(htmlElement, name, expectedValue) { 47190 checkHtmlElement(htmlElement, toHaveAttribute, this); 47191 let isExpectedValuePresent = expectedValue !== void 0, hasAttribute = htmlElement.hasAttribute(name), receivedValue = htmlElement.getAttribute(name); 47192 return { 47193 pass: isExpectedValuePresent ? hasAttribute && this.equals(receivedValue, expectedValue) : hasAttribute, 47194 message: () => { 47195 let to = this.isNot ? "not to" : "to", receivedAttribute = hasAttribute ? printAttribute(this.utils.stringify, name, receivedValue) : null, matcher = this.utils.matcherHint( 47196 `${this.isNot ? ".not" : ""}.toHaveAttribute`, 47197 "element", 47198 this.utils.printExpected(name), 47199 { 47200 secondArgument: isExpectedValuePresent ? this.utils.printExpected(expectedValue) : void 0, 47201 comment: getAttributeComment( 47202 this.utils.stringify, 47203 name, 47204 expectedValue 47205 ) 47206 } 47207 ); 47208 return getMessage3( 47209 this, 47210 matcher, 47211 `Expected the element ${to} have attribute`, 47212 printAttribute(this.utils.stringify, name, expectedValue), 47213 "Received", 47214 receivedAttribute 47215 ); 47216 } 47217 }; 47218} 47219function getExpectedClassNamesAndOptions(params) { 47220 let lastParam = params.pop(), expectedClassNames, options; 47221 return typeof lastParam == "object" && !(lastParam instanceof RegExp) ? (expectedClassNames = params, options = lastParam) : (expectedClassNames = params.concat(lastParam), options = { exact: !1 }), { expectedClassNames, options }; 47222} 47223function splitClassNames(str2) { 47224 return str2 ? str2.split(/\s+/).filter((s3) => s3.length > 0) : []; 47225} 47226function isSubset$1(subset, superset) { 47227 return subset.every( 47228 (strOrRegexp) => typeof strOrRegexp == "string" ? superset.includes(strOrRegexp) : superset.some((className) => strOrRegexp.test(className)) 47229 ); 47230} 47231function toHaveClass(htmlElement, ...params) { 47232 checkHtmlElement(htmlElement, toHaveClass, this); 47233 let { expectedClassNames, options } = getExpectedClassNamesAndOptions(params), received = splitClassNames(htmlElement.getAttribute("class")), expected = expectedClassNames.reduce( 47234 (acc, className) => acc.concat( 47235 typeof className == "string" || !className ? splitClassNames(className) : className 47236 ), 47237 [] 47238 ), hasRegExp = expected.some((className) => className instanceof RegExp); 47239 if (options.exact && hasRegExp) 47240 throw new Error("Exact option does not support RegExp expected class names"); 47241 return options.exact ? { 47242 pass: isSubset$1(expected, received) && expected.length === received.length, 47243 message: () => { 47244 let to = this.isNot ? "not to" : "to"; 47245 return getMessage3( 47246 this, 47247 this.utils.matcherHint( 47248 `${this.isNot ? ".not" : ""}.toHaveClass`, 47249 "element", 47250 this.utils.printExpected(expected.join(" ")) 47251 ), 47252 `Expected the element ${to} have EXACTLY defined classes`, 47253 expected.join(" "), 47254 "Received", 47255 received.join(" ") 47256 ); 47257 } 47258 } : expected.length > 0 ? { 47259 pass: isSubset$1(expected, received), 47260 message: () => { 47261 let to = this.isNot ? "not to" : "to"; 47262 return getMessage3( 47263 this, 47264 this.utils.matcherHint( 47265 `${this.isNot ? ".not" : ""}.toHaveClass`, 47266 "element", 47267 this.utils.printExpected(expected.join(" ")) 47268 ), 47269 `Expected the element ${to} have class`, 47270 expected.join(" "), 47271 "Received", 47272 received.join(" ") 47273 ); 47274 } 47275 } : { 47276 pass: this.isNot ? received.length > 0 : !1, 47277 message: () => this.isNot ? getMessage3( 47278 this, 47279 this.utils.matcherHint(".not.toHaveClass", "element", ""), 47280 "Expected the element to have classes", 47281 "(none)", 47282 "Received", 47283 received.join(" ") 47284 ) : [ 47285 this.utils.matcherHint(".toHaveClass", "element"), 47286 "At least one expected class must be provided." 47287 ].join(` 47288`) 47289 }; 47290} 47291function getStyleDeclaration(document13, css3) { 47292 let styles4 = {}, copy5 = document13.createElement("div"); 47293 return Object.keys(css3).forEach((property) => { 47294 copy5.style[property] = css3[property], styles4[property] = copy5.style[property]; 47295 }), styles4; 47296} 47297function isSubset(styles4, computedStyle) { 47298 return !!Object.keys(styles4).length && Object.entries(styles4).every(([prop, value]) => { 47299 let isCustomProperty3 = prop.startsWith("--"), spellingVariants = [prop]; 47300 return isCustomProperty3 || spellingVariants.push(prop.toLowerCase()), spellingVariants.some( 47301 (name) => computedStyle[name] === value || computedStyle.getPropertyValue(name) === value 47302 ); 47303 }); 47304} 47305function printoutStyles(styles4) { 47306 return Object.keys(styles4).sort().map((prop) => `${prop}: ${styles4[prop]};`).join(` 47307`); 47308} 47309function expectedDiff(diffFn, expected, computedStyles) { 47310 let received = Array.from(computedStyles).filter((prop) => expected[prop] !== void 0).reduce( 47311 (obj, prop) => Object.assign(obj, { [prop]: computedStyles.getPropertyValue(prop) }), 47312 {} 47313 ); 47314 return diffFn(printoutStyles(expected), printoutStyles(received)).replace(`${import_picocolors.default.red("+ Received")} 47315`, ""); 47316} 47317function toHaveStyle(htmlElement, css3) { 47318 checkHtmlElement(htmlElement, toHaveStyle, this); 47319 let parsedCSS = typeof css3 == "object" ? css3 : parseCSS(css3, toHaveStyle, this), { getComputedStyle: getComputedStyle3 } = htmlElement.ownerDocument.defaultView, expected = getStyleDeclaration(htmlElement.ownerDocument, parsedCSS), received = getComputedStyle3(htmlElement); 47320 return { 47321 pass: isSubset(expected, received), 47322 message: () => { 47323 let matcher = `${this.isNot ? ".not" : ""}.toHaveStyle`; 47324 return [ 47325 this.utils.matcherHint(matcher, "element", ""), 47326 expectedDiff(this.utils.diff, expected, received) 47327 ].join(` 47328 47329`); 47330 } 47331 }; 47332} 47333function toHaveFocus(element) { 47334 return checkHtmlElement(element, toHaveFocus, this), { 47335 pass: element.ownerDocument.activeElement === element, 47336 message: () => [ 47337 this.utils.matcherHint( 47338 `${this.isNot ? ".not" : ""}.toHaveFocus`, 47339 "element", 47340 "" 47341 ), 47342 "", 47343 ...this.isNot ? [ 47344 "Received element is focused:", 47345 ` ${this.utils.printReceived(element)}` 47346 ] : [ 47347 "Expected element with focus:", 47348 ` ${this.utils.printExpected(element)}`, 47349 "Received element with focus:", 47350 ` ${this.utils.printReceived( 47351 element.ownerDocument.activeElement 47352 )}` 47353 ] 47354 ].join(` 47355`) 47356 }; 47357} 47358function getMultiElementValue(elements) { 47359 let types = [...new Set(elements.map((element) => element.type))]; 47360 if (types.length !== 1) 47361 throw new Error( 47362 "Multiple form elements with the same name must be of the same type" 47363 ); 47364 switch (types[0]) { 47365 case "radio": { 47366 let theChosenOne = elements.find((radio) => radio.checked); 47367 return theChosenOne ? theChosenOne.value : void 0; 47368 } 47369 case "checkbox": 47370 return elements.filter((checkbox) => checkbox.checked).map((checkbox) => checkbox.value); 47371 default: 47372 return elements.map((element) => element.value); 47373 } 47374} 47375function getFormValue(container, name) { 47376 let elements = [...container.querySelectorAll(`[name="${(0, import_css3.default)(name)}"]`)]; 47377 if (elements.length !== 0) 47378 switch (elements.length) { 47379 case 1: 47380 return getSingleElementValue(elements[0]); 47381 default: 47382 return getMultiElementValue(elements); 47383 } 47384} 47385function getPureName(name) { 47386 return /\[\]$/.test(name) ? name.slice(0, -2) : name; 47387} 47388function getAllFormValues(container) { 47389 return Array.from(container.elements).map((element) => element.name).reduce( 47390 (obj, name) => ({ 47391 ...obj, 47392 [getPureName(name)]: getFormValue(container, name) 47393 }), 47394 {} 47395 ); 47396} 47397function toHaveFormValues(formElement, expectedValues) { 47398 if (checkHtmlElement(formElement, toHaveFormValues, this), !formElement.elements) 47399 throw new Error("toHaveFormValues must be called on a form or a fieldset"); 47400 let formValues = getAllFormValues(formElement); 47401 return { 47402 pass: Object.entries(expectedValues).every( 47403 ([name, expectedValue]) => compareAsSet(formValues[name], expectedValue) 47404 ), 47405 message: () => { 47406 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] }), {}); 47407 return [ 47408 this.utils.matcherHint(matcher, "element", ""), 47409 `Expected the element ${to} have form values`, 47410 this.utils.diff(expectedValues, commonKeyValues) 47411 ].join(` 47412 47413`); 47414 } 47415 }; 47416} 47417function isStyleVisible(element) { 47418 let { getComputedStyle: getComputedStyle3 } = element.ownerDocument.defaultView, { display: display2, visibility, opacity } = getComputedStyle3(element); 47419 return display2 !== "none" && visibility !== "hidden" && visibility !== "collapse" && opacity !== "0" && opacity !== 0; 47420} 47421function isAttributeVisible(element, previousElement) { 47422 let detailsVisibility; 47423 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; 47424} 47425function isElementVisible(element, previousElement) { 47426 return isStyleVisible(element) && isAttributeVisible(element, previousElement) && (!element.parentElement || isElementVisible(element.parentElement, element)); 47427} 47428function toBeVisible(element) { 47429 checkHtmlElement(element, toBeVisible, this); 47430 let isInDocument = element.ownerDocument === element.getRootNode({ composed: !0 }), isVisible2 = isInDocument && isElementVisible(element); 47431 return { 47432 pass: isVisible2, 47433 message: () => { 47434 let is = isVisible2 ? "is" : "is not"; 47435 return [ 47436 this.utils.matcherHint( 47437 `${this.isNot ? ".not" : ""}.toBeVisible`, 47438 "element", 47439 "" 47440 ), 47441 "", 47442 `Received element ${is} visible${isInDocument ? "" : " (element is not in the document)"}:`, 47443 ` ${this.utils.printReceived(element.cloneNode(!1))}` 47444 ].join(` 47445`); 47446 } 47447 }; 47448} 47449var FORM_TAGS$2 = [ 47450 "fieldset", 47451 "input", 47452 "select", 47453 "optgroup", 47454 "option", 47455 "button", 47456 "textarea" 47457]; 47458function isFirstLegendChildOfFieldset(element, parent) { 47459 return getTag2(element) === "legend" && getTag2(parent) === "fieldset" && element.isSameNode( 47460 Array.from(parent.children).find((child) => getTag2(child) === "legend") 47461 ); 47462} 47463function isElementDisabledByParent(element, parent) { 47464 return isElementDisabled(parent) && !isFirstLegendChildOfFieldset(element, parent); 47465} 47466function isCustomElement(tag) { 47467 return tag.includes("-"); 47468} 47469function canElementBeDisabled(element) { 47470 let tag = getTag2(element); 47471 return FORM_TAGS$2.includes(tag) || isCustomElement(tag); 47472} 47473function isElementDisabled(element) { 47474 return canElementBeDisabled(element) && element.hasAttribute("disabled"); 47475} 47476function isAncestorDisabled(element) { 47477 let parent = element.parentElement; 47478 return !!parent && (isElementDisabledByParent(element, parent) || isAncestorDisabled(parent)); 47479} 47480function isElementOrAncestorDisabled(element) { 47481 return canElementBeDisabled(element) && (isElementDisabled(element) || isAncestorDisabled(element)); 47482} 47483function toBeDisabled(element) { 47484 checkHtmlElement(element, toBeDisabled, this); 47485 let isDisabled3 = isElementOrAncestorDisabled(element); 47486 return { 47487 pass: isDisabled3, 47488 message: () => { 47489 let is = isDisabled3 ? "is" : "is not"; 47490 return [ 47491 this.utils.matcherHint( 47492 `${this.isNot ? ".not" : ""}.toBeDisabled`, 47493 "element", 47494 "" 47495 ), 47496 "", 47497 `Received element ${is} disabled:`, 47498 ` ${this.utils.printReceived(element.cloneNode(!1))}` 47499 ].join(` 47500`); 47501 } 47502 }; 47503} 47504function toBeEnabled(element) { 47505 checkHtmlElement(element, toBeEnabled, this); 47506 let isEnabled = !isElementOrAncestorDisabled(element); 47507 return { 47508 pass: isEnabled, 47509 message: () => { 47510 let is = isEnabled ? "is" : "is not"; 47511 return [ 47512 this.utils.matcherHint( 47513 `${this.isNot ? ".not" : ""}.toBeEnabled`, 47514 "element", 47515 "" 47516 ), 47517 "", 47518 `Received element ${is} enabled:`, 47519 ` ${this.utils.printReceived(element.cloneNode(!1))}` 47520 ].join(` 47521`); 47522 } 47523 }; 47524} 47525var FORM_TAGS$1 = ["select", "textarea"], ARIA_FORM_TAGS = ["input", "select", "textarea"], UNSUPPORTED_INPUT_TYPES = [ 47526 "color", 47527 "hidden", 47528 "range", 47529 "submit", 47530 "image", 47531 "reset" 47532], SUPPORTED_ARIA_ROLES = [ 47533 "checkbox", 47534 "combobox", 47535 "gridcell", 47536 "listbox", 47537 "radiogroup", 47538 "spinbutton", 47539 "textbox", 47540 "tree" 47541]; 47542function isRequiredOnFormTagsExceptInput(element) { 47543 return FORM_TAGS$1.includes(getTag2(element)) && element.hasAttribute("required"); 47544} 47545function isRequiredOnSupportedInput(element) { 47546 return getTag2(element) === "input" && element.hasAttribute("required") && (element.hasAttribute("type") && !UNSUPPORTED_INPUT_TYPES.includes(element.getAttribute("type")) || !element.hasAttribute("type")); 47547} 47548function isElementRequiredByARIA(element) { 47549 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"))); 47550} 47551function toBeRequired(element) { 47552 checkHtmlElement(element, toBeRequired, this); 47553 let isRequired = isRequiredOnFormTagsExceptInput(element) || isRequiredOnSupportedInput(element) || isElementRequiredByARIA(element); 47554 return { 47555 pass: isRequired, 47556 message: () => { 47557 let is = isRequired ? "is" : "is not"; 47558 return [ 47559 this.utils.matcherHint( 47560 `${this.isNot ? ".not" : ""}.toBeRequired`, 47561 "element", 47562 "" 47563 ), 47564 "", 47565 `Received element ${is} required:`, 47566 ` ${this.utils.printReceived(element.cloneNode(!1))}` 47567 ].join(` 47568`); 47569 } 47570 }; 47571} 47572var FORM_TAGS = ["form", "input", "select", "textarea"]; 47573function isElementHavingAriaInvalid(element) { 47574 return element.hasAttribute("aria-invalid") && element.getAttribute("aria-invalid") !== "false"; 47575} 47576function isSupportsValidityMethod(element) { 47577 return FORM_TAGS.includes(getTag2(element)); 47578} 47579function isElementInvalid(element) { 47580 let isHaveAriaInvalid = isElementHavingAriaInvalid(element); 47581 return isSupportsValidityMethod(element) ? isHaveAriaInvalid || !element.checkValidity() : isHaveAriaInvalid; 47582} 47583function toBeInvalid(element) { 47584 checkHtmlElement(element, toBeInvalid, this); 47585 let isInvalid = isElementInvalid(element); 47586 return { 47587 pass: isInvalid, 47588 message: () => { 47589 let is = isInvalid ? "is" : "is not"; 47590 return [ 47591 this.utils.matcherHint( 47592 `${this.isNot ? ".not" : ""}.toBeInvalid`, 47593 "element", 47594 "" 47595 ), 47596 "", 47597 `Received element ${is} currently invalid:`, 47598 ` ${this.utils.printReceived(element.cloneNode(!1))}` 47599 ].join(` 47600`); 47601 } 47602 }; 47603} 47604function toBeValid(element) { 47605 checkHtmlElement(element, toBeValid, this); 47606 let isValid = !isElementInvalid(element); 47607 return { 47608 pass: isValid, 47609 message: () => { 47610 let is = isValid ? "is" : "is not"; 47611 return [ 47612 this.utils.matcherHint( 47613 `${this.isNot ? ".not" : ""}.toBeValid`, 47614 "element", 47615 "" 47616 ), 47617 "", 47618 `Received element ${is} currently valid:`, 47619 ` ${this.utils.printReceived(element.cloneNode(!1))}` 47620 ].join(` 47621`); 47622 } 47623 }; 47624} 47625function toHaveValue(htmlElement, expectedValue) { 47626 if (checkHtmlElement(htmlElement, toHaveValue, this), htmlElement.tagName.toLowerCase() === "input" && ["checkbox", "radio"].includes(htmlElement.type)) 47627 throw new Error( 47628 "input with type=checkbox or type=radio cannot be used with .toHaveValue(). Use .toBeChecked() for type=checkbox or .toHaveFormValues() instead" 47629 ); 47630 let receivedValue = getSingleElementValue(htmlElement), expectsValue = expectedValue !== void 0, expectedTypedValue = expectedValue, receivedTypedValue = receivedValue; 47631 return expectedValue == receivedValue && expectedValue !== receivedValue && (expectedTypedValue = `${expectedValue} (${typeof expectedValue})`, receivedTypedValue = `${receivedValue} (${typeof receivedValue})`), { 47632 pass: expectsValue ? compareAsSet(receivedValue, expectedValue) : !!receivedValue, 47633 message: () => { 47634 let to = this.isNot ? "not to" : "to", matcher = this.utils.matcherHint( 47635 `${this.isNot ? ".not" : ""}.toHaveValue`, 47636 "element", 47637 expectedValue 47638 ); 47639 return getMessage3( 47640 this, 47641 matcher, 47642 `Expected the element ${to} have value`, 47643 expectsValue ? expectedTypedValue : "(any)", 47644 "Received", 47645 receivedTypedValue 47646 ); 47647 } 47648 }; 47649} 47650function toHaveDisplayValue(htmlElement, expectedValue) { 47651 checkHtmlElement(htmlElement, toHaveDisplayValue, this); 47652 let tagName = htmlElement.tagName.toLowerCase(); 47653 if (!["select", "input", "textarea"].includes(tagName)) 47654 throw new Error( 47655 ".toHaveDisplayValue() currently supports only input, textarea or select elements, try with another matcher instead." 47656 ); 47657 if (tagName === "input" && ["radio", "checkbox"].includes(htmlElement.type)) 47658 throw new Error( 47659 `.toHaveDisplayValue() currently does not support input[type="${htmlElement.type}"], try with another matcher instead.` 47660 ); 47661 let values = getValues(tagName, htmlElement), expectedValues = getExpectedValues(expectedValue), numberOfMatchesWithValues = expectedValues.filter( 47662 (expected) => values.some( 47663 (value) => expected instanceof RegExp ? expected.test(value) : this.equals(value, String(expected)) 47664 ) 47665 ).length, matchedWithAllValues = numberOfMatchesWithValues === values.length, matchedWithAllExpectedValues = numberOfMatchesWithValues === expectedValues.length; 47666 return { 47667 pass: matchedWithAllValues && matchedWithAllExpectedValues, 47668 message: () => getMessage3( 47669 this, 47670 this.utils.matcherHint( 47671 `${this.isNot ? ".not" : ""}.toHaveDisplayValue`, 47672 "element", 47673 "" 47674 ), 47675 `Expected element ${this.isNot ? "not " : ""}to have display value`, 47676 expectedValue, 47677 "Received", 47678 values 47679 ) 47680 }; 47681} 47682function getValues(tagName, htmlElement) { 47683 return tagName === "select" ? Array.from(htmlElement).filter((option) => option.selected).map((option) => option.textContent) : [htmlElement.value]; 47684} 47685function getExpectedValues(expectedValue) { 47686 return expectedValue instanceof Array ? expectedValue : [expectedValue]; 47687} 47688function toBeChecked(element) { 47689 checkHtmlElement(element, toBeChecked, this); 47690 let isValidInput = () => element.tagName.toLowerCase() === "input" && ["checkbox", "radio"].includes(element.type), isValidAriaElement = () => roleSupportsChecked(element.getAttribute("role")) && ["true", "false"].includes(element.getAttribute("aria-checked")); 47691 if (!isValidInput() && !isValidAriaElement()) 47692 return { 47693 pass: !1, 47694 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` 47695 }; 47696 let isChecked = () => isValidInput() ? element.checked : element.getAttribute("aria-checked") === "true"; 47697 return { 47698 pass: isChecked(), 47699 message: () => { 47700 let is = isChecked() ? "is" : "is not"; 47701 return [ 47702 this.utils.matcherHint( 47703 `${this.isNot ? ".not" : ""}.toBeChecked`, 47704 "element", 47705 "" 47706 ), 47707 "", 47708 `Received element ${is} checked:`, 47709 ` ${this.utils.printReceived(element.cloneNode(!1))}` 47710 ].join(` 47711`); 47712 } 47713 }; 47714} 47715function supportedRolesSentence() { 47716 return toSentence( 47717 supportedRoles().map((role) => `role="${role}"`), 47718 { lastWordConnector: " or " } 47719 ); 47720} 47721function supportedRoles() { 47722 return import_aria_query.roles.keys().filter(roleSupportsChecked); 47723} 47724function roleSupportsChecked(role) { 47725 return import_aria_query.roles.get(role)?.props["aria-checked"] !== void 0; 47726} 47727function toBePartiallyChecked(element) { 47728 checkHtmlElement(element, toBePartiallyChecked, this); 47729 let isValidInput = () => element.tagName.toLowerCase() === "input" && element.type === "checkbox", isValidAriaElement = () => element.getAttribute("role") === "checkbox"; 47730 if (!isValidInput() && !isValidAriaElement()) 47731 return { 47732 pass: !1, 47733 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' 47734 }; 47735 let isPartiallyChecked = () => { 47736 let isAriaMixed = element.getAttribute("aria-checked") === "mixed"; 47737 return isValidInput() && element.indeterminate || isAriaMixed; 47738 }; 47739 return { 47740 pass: isPartiallyChecked(), 47741 message: () => { 47742 let is = isPartiallyChecked() ? "is" : "is not"; 47743 return [ 47744 this.utils.matcherHint( 47745 `${this.isNot ? ".not" : ""}.toBePartiallyChecked`, 47746 "element", 47747 "" 47748 ), 47749 "", 47750 `Received element ${is} partially checked:`, 47751 ` ${this.utils.printReceived(element.cloneNode(!1))}` 47752 ].join(` 47753`); 47754 } 47755 }; 47756} 47757function toHaveDescription(htmlElement, checkWith) { 47758 deprecate2( 47759 "toHaveDescription", 47760 "Please use toHaveAccessibleDescription." 47761 ), checkHtmlElement(htmlElement, toHaveDescription, this); 47762 let expectsDescription = checkWith !== void 0, descriptionIDs = (htmlElement.getAttribute("aria-describedby") || "").split(/\s+/).filter(Boolean), description = ""; 47763 if (descriptionIDs.length > 0) { 47764 let document13 = htmlElement.ownerDocument, descriptionEls = descriptionIDs.map((descriptionID) => document13.getElementById(descriptionID)).filter(Boolean); 47765 description = normalize(descriptionEls.map((el) => el.textContent).join(" ")); 47766 } 47767 return { 47768 pass: expectsDescription ? checkWith instanceof RegExp ? checkWith.test(description) : this.equals(description, checkWith) : !!description, 47769 message: () => { 47770 let to = this.isNot ? "not to" : "to"; 47771 return getMessage3( 47772 this, 47773 this.utils.matcherHint( 47774 `${this.isNot ? ".not" : ""}.toHaveDescription`, 47775 "element", 47776 "" 47777 ), 47778 `Expected the element ${to} have description`, 47779 this.utils.printExpected(checkWith), 47780 "Received", 47781 this.utils.printReceived(description) 47782 ); 47783 } 47784 }; 47785} 47786function toHaveErrorMessage(htmlElement, checkWith) { 47787 if (deprecate2("toHaveErrorMessage", "Please use toHaveAccessibleErrorMessage."), checkHtmlElement(htmlElement, toHaveErrorMessage, this), !htmlElement.hasAttribute("aria-invalid") || htmlElement.getAttribute("aria-invalid") === "false") { 47788 let not = this.isNot ? ".not" : ""; 47789 return { 47790 pass: !1, 47791 message: () => getMessage3( 47792 this, 47793 this.utils.matcherHint(`${not}.toHaveErrorMessage`, "element", ""), 47794 "Expected the element to have invalid state indicated by", 47795 'aria-invalid="true"', 47796 "Received", 47797 htmlElement.hasAttribute("aria-invalid") ? `aria-invalid="${htmlElement.getAttribute("aria-invalid")}"` : this.utils.printReceived("") 47798 ) 47799 }; 47800 } 47801 let expectsErrorMessage = checkWith !== void 0, errormessageIDs = (htmlElement.getAttribute("aria-errormessage") || "").split(/\s+/).filter(Boolean), errormessage = ""; 47802 if (errormessageIDs.length > 0) { 47803 let document13 = htmlElement.ownerDocument, errormessageEls = errormessageIDs.map((errormessageID) => document13.getElementById(errormessageID)).filter(Boolean); 47804 errormessage = normalize( 47805 errormessageEls.map((el) => el.textContent).join(" ") 47806 ); 47807 } 47808 return { 47809 pass: expectsErrorMessage ? checkWith instanceof RegExp ? checkWith.test(errormessage) : this.equals(errormessage, checkWith) : !!errormessage, 47810 message: () => { 47811 let to = this.isNot ? "not to" : "to"; 47812 return getMessage3( 47813 this, 47814 this.utils.matcherHint( 47815 `${this.isNot ? ".not" : ""}.toHaveErrorMessage`, 47816 "element", 47817 "" 47818 ), 47819 `Expected the element ${to} have error message`, 47820 this.utils.printExpected(checkWith), 47821 "Received", 47822 this.utils.printReceived(errormessage) 47823 ); 47824 } 47825 }; 47826} 47827function getSelection(element) { 47828 let selection = element.ownerDocument.getSelection(); 47829 if (["input", "textarea"].includes(element.tagName.toLowerCase())) 47830 return ["radio", "checkbox"].includes(element.type) ? "" : element.value.toString().substring(element.selectionStart, element.selectionEnd); 47831 if (selection.anchorNode === null || selection.focusNode === null) 47832 return ""; 47833 let originalRange = selection.getRangeAt(0), temporaryRange = element.ownerDocument.createRange(); 47834 if (selection.containsNode(element, !1)) 47835 temporaryRange.selectNodeContents(element), selection.removeAllRanges(), selection.addRange(temporaryRange); 47836 else if (!(element.contains(selection.anchorNode) && element.contains(selection.focusNode))) { 47837 let selectionStartsWithinElement = element === originalRange.startContainer || element.contains(originalRange.startContainer), selectionEndsWithinElement = element === originalRange.endContainer || element.contains(originalRange.endContainer); 47838 selection.removeAllRanges(), (selectionStartsWithinElement || selectionEndsWithinElement) && (temporaryRange.selectNodeContents(element), selectionStartsWithinElement && temporaryRange.setStart( 47839 originalRange.startContainer, 47840 originalRange.startOffset 47841 ), selectionEndsWithinElement && temporaryRange.setEnd( 47842 originalRange.endContainer, 47843 originalRange.endOffset 47844 ), selection.addRange(temporaryRange)); 47845 } 47846 let result = selection.toString(); 47847 return selection.removeAllRanges(), selection.addRange(originalRange), result; 47848} 47849function toHaveSelection(htmlElement, expectedSelection) { 47850 checkHtmlElement(htmlElement, toHaveSelection, this); 47851 let expectsSelection = expectedSelection !== void 0; 47852 if (expectsSelection && typeof expectedSelection != "string") 47853 throw new Error("expected selection must be a string or undefined"); 47854 let receivedSelection = getSelection(htmlElement); 47855 return { 47856 pass: expectsSelection ? compareAsSet(receivedSelection, expectedSelection) : !!receivedSelection, 47857 message: () => { 47858 let to = this.isNot ? "not to" : "to", matcher = this.utils.matcherHint( 47859 `${this.isNot ? ".not" : ""}.toHaveSelection`, 47860 "element", 47861 expectedSelection 47862 ); 47863 return getMessage3( 47864 this, 47865 matcher, 47866 `Expected the element ${to} have selection`, 47867 expectsSelection ? expectedSelection : "(any)", 47868 "Received", 47869 receivedSelection 47870 ); 47871 } 47872 }; 47873} 47874function toBePressed(element) { 47875 checkHtmlElement(element, toBePressed, this); 47876 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"); 47877 return !isButton2 || !(pressedAttribute === "true" || pressedAttribute === "false") ? { 47878 pass: !1, 47879 message: () => 'Only button or input with type="button" or element with role="button" and a valid aria-pressed attribute can be used with .toBePressed()' 47880 } : { 47881 pass: isButton2 && pressedAttribute === "true", 47882 message: () => { 47883 let matcher = this.utils.matcherHint( 47884 `${this.isNot ? ".not" : ""}.toBePressed`, 47885 "element", 47886 "" 47887 ); 47888 return getMessage3( 47889 this, 47890 matcher, 47891 "Expected element to have", 47892 `aria-pressed="${this.isNot ? "false" : "true"}"`, 47893 "Received", 47894 `aria-pressed="${pressedAttribute}"` 47895 ); 47896 } 47897 }; 47898} 47899function toBePartiallyPressed(element) { 47900 checkHtmlElement(element, toBePartiallyPressed, this); 47901 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"); 47902 return !isButton2 || !(pressedAttribute === "true" || pressedAttribute === "false" || pressedAttribute === "mixed") ? { 47903 pass: !1, 47904 message: () => 'Only button or input with type="button" or element with role="button" and a valid aria-pressed attribute can be used with .toBePartiallyPressed()' 47905 } : { 47906 pass: isButton2 && pressedAttribute === "mixed", 47907 message: () => { 47908 let to = this.isNot ? "not to" : "to", matcher = this.utils.matcherHint( 47909 `${this.isNot ? ".not" : ""}.toBePartiallyPressed`, 47910 "element", 47911 "" 47912 ); 47913 return getMessage3( 47914 this, 47915 matcher, 47916 `Expected element ${to} have`, 47917 'aria-pressed="mixed"', 47918 "Received", 47919 `aria-pressed="${pressedAttribute}"` 47920 ); 47921 } 47922 }; 47923} 47924var 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 = { 47925 [DOCUMENT_POSITION_DISCONNECTED]: "Node.DOCUMENT_POSITION_DISCONNECTED", 47926 [DOCUMENT_POSITION_PRECEDING]: "Node.DOCUMENT_POSITION_PRECEDING", 47927 [DOCUMENT_POSITION_FOLLOWING]: "Node.DOCUMENT_POSITION_FOLLOWING", 47928 [DOCUMENT_POSITION_CONTAINS]: "Node.DOCUMENT_POSITION_CONTAINS", 47929 [DOCUMENT_POSITION_CONTAINED_BY]: "Node.DOCUMENT_POSITION_CONTAINED_BY", 47930 [DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC]: "Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC" 47931}; 47932function makeDocumentPositionErrorString(documentPosition) { 47933 return documentPosition in DOCUMENT_POSITIONS_STRINGS ? `${DOCUMENT_POSITIONS_STRINGS[documentPosition]} (${documentPosition})` : `Unknown document position (${documentPosition})`; 47934} 47935function checkToAppear(methodName, targetDocumentPosition) { 47936 return function(element, secondElement) { 47937 checkHtmlElement(element, toAppearBefore, this), checkHtmlElement(secondElement, toAppearBefore, this); 47938 let documentPosition = element.compareDocumentPosition(secondElement); 47939 return { 47940 pass: documentPosition === targetDocumentPosition, 47941 message: () => [ 47942 this.utils.matcherHint( 47943 `${this.isNot ? ".not" : ""}.${methodName}`, 47944 "element", 47945 "secondElement" 47946 ), 47947 "", 47948 `Received: ${makeDocumentPositionErrorString(documentPosition)}` 47949 ].join(` 47950`) 47951 }; 47952 }; 47953} 47954function toAppearBefore(element, secondElement) { 47955 return checkToAppear("toAppearBefore", DOCUMENT_POSITION_FOLLOWING).apply( 47956 this, 47957 [element, secondElement] 47958 ); 47959} 47960function toAppearAfter(element, secondElement) { 47961 return checkToAppear("toAppearAfter", DOCUMENT_POSITION_PRECEDING).apply( 47962 this, 47963 [element, secondElement] 47964 ); 47965} 47966var extensions = Object.freeze({ 47967 __proto__: null, 47968 toAppearAfter, 47969 toAppearBefore, 47970 toBeChecked, 47971 toBeDisabled, 47972 toBeEmpty, 47973 toBeEmptyDOMElement, 47974 toBeEnabled, 47975 toBeInTheDOM, 47976 toBeInTheDocument, 47977 toBeInvalid, 47978 toBePartiallyChecked, 47979 toBePartiallyPressed, 47980 toBePressed, 47981 toBeRequired, 47982 toBeValid, 47983 toBeVisible, 47984 toContainElement, 47985 toContainHTML, 47986 toHaveAccessibleDescription, 47987 toHaveAccessibleErrorMessage, 47988 toHaveAccessibleName, 47989 toHaveAttribute, 47990 toHaveClass, 47991 toHaveDescription, 47992 toHaveDisplayValue, 47993 toHaveErrorMessage, 47994 toHaveFocus, 47995 toHaveFormValues, 47996 toHaveRole, 47997 toHaveSelection, 47998 toHaveStyle, 47999 toHaveTextContent, 48000 toHaveValue 48001}); 48002
vendor: 282 bytes, lines 48003-48006
48003// ../../node_modules/@testing-library/jest-dom/dist/matchers.mjs 48004var import_redent2 = __toESM(require_redent(), 1); 48005var import_aria_query2 = __toESM(require_lib2(), 1), import_picocolors2 = __toESM(require_picocolors_browser(), 1), import_css4 = __toESM(require_css_escape(), 1); 48006
vendor: 14,217 bytes, lines 48007-48295
48007// ../../node_modules/@vitest/utils/dist/index.js 48008var jsTokens_1, hasRequiredJsTokens; 48009function requireJsTokens() { 48010 if (hasRequiredJsTokens) return jsTokens_1; 48011 hasRequiredJsTokens = 1; 48012 var Identifier, JSXIdentifier, JSXPunctuator, JSXString, JSXText, KeywordsWithExpressionAfter, KeywordsWithNoLineTerminatorAfter, LineTerminatorSequence, MultiLineComment, Newline, NumericLiteral, Punctuator, RegularExpressionLiteral, SingleLineComment, StringLiteral, Template, TokensNotPrecedingObjectLiteral, TokensPrecedingExpression, WhiteSpace; 48013 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 } = {}) { 48014 var braces, firstCodePoint, isExpression, lastIndex, lastSignificantToken, length2, match3, mode, nextLastIndex, nextLastSignificantToken, parenNesting, postfixIncDec, punctuator, stack; 48015 for ({ length: length2 } = input2, lastIndex = 0, lastSignificantToken = "", stack = [ 48016 { tag: "JS" } 48017 ], braces = [], parenNesting = 0, postfixIncDec = !1; lastIndex < length2; ) { 48018 switch (mode = stack[stack.length - 1], mode.tag) { 48019 case "JS": 48020 case "JSNonExpressionParen": 48021 case "InterpolationInTemplate": 48022 case "InterpolationInJSX": 48023 if (input2[lastIndex] === "/" && (TokensPrecedingExpression.test(lastSignificantToken) || KeywordsWithExpressionAfter.test(lastSignificantToken)) && (RegularExpressionLiteral.lastIndex = lastIndex, match3 = RegularExpressionLiteral.exec(input2))) { 48024 lastIndex = RegularExpressionLiteral.lastIndex, lastSignificantToken = match3[0], postfixIncDec = !0, yield { 48025 type: "RegularExpressionLiteral", 48026 value: match3[0], 48027 closed: match3[1] !== void 0 && match3[1] !== "\\" 48028 }; 48029 continue; 48030 } 48031 if (Punctuator.lastIndex = lastIndex, match3 = Punctuator.exec(input2)) { 48032 switch (punctuator = match3[0], nextLastIndex = Punctuator.lastIndex, nextLastSignificantToken = punctuator, punctuator) { 48033 case "(": 48034 lastSignificantToken === "?NonExpressionParenKeyword" && stack.push({ 48035 tag: "JSNonExpressionParen", 48036 nesting: parenNesting 48037 }), parenNesting++, postfixIncDec = !1; 48038 break; 48039 case ")": 48040 parenNesting--, postfixIncDec = !0, mode.tag === "JSNonExpressionParen" && parenNesting === mode.nesting && (stack.pop(), nextLastSignificantToken = "?NonExpressionParenEnd", postfixIncDec = !1); 48041 break; 48042 case "{": 48043 Punctuator.lastIndex = 0, isExpression = !TokensNotPrecedingObjectLiteral.test(lastSignificantToken) && (TokensPrecedingExpression.test(lastSignificantToken) || KeywordsWithExpressionAfter.test(lastSignificantToken)), braces.push(isExpression), postfixIncDec = !1; 48044 break; 48045 case "}": 48046 switch (mode.tag) { 48047 case "InterpolationInTemplate": 48048 if (braces.length === mode.nesting) { 48049 Template.lastIndex = lastIndex, match3 = Template.exec(input2), lastIndex = Template.lastIndex, lastSignificantToken = match3[0], match3[1] === "${" ? (lastSignificantToken = "?InterpolationInTemplate", postfixIncDec = !1, yield { 48050 type: "TemplateMiddle", 48051 value: match3[0] 48052 }) : (stack.pop(), postfixIncDec = !0, yield { 48053 type: "TemplateTail", 48054 value: match3[0], 48055 closed: match3[1] === "`" 48056 }); 48057 continue; 48058 } 48059 break; 48060 case "InterpolationInJSX": 48061 if (braces.length === mode.nesting) { 48062 stack.pop(), lastIndex += 1, lastSignificantToken = "}", yield { 48063 type: "JSXPunctuator", 48064 value: "}" 48065 }; 48066 continue; 48067 } 48068 } 48069 postfixIncDec = braces.pop(), nextLastSignificantToken = postfixIncDec ? "?ExpressionBraceEnd" : "}"; 48070 break; 48071 case "]": 48072 postfixIncDec = !0; 48073 break; 48074 case "++": 48075 case "--": 48076 nextLastSignificantToken = postfixIncDec ? "?PostfixIncDec" : "?UnaryIncDec"; 48077 break; 48078 case "<": 48079 if (jsx10 && (TokensPrecedingExpression.test(lastSignificantToken) || KeywordsWithExpressionAfter.test(lastSignificantToken))) { 48080 stack.push({ tag: "JSXTag" }), lastIndex += 1, lastSignificantToken = "<", yield { 48081 type: "JSXPunctuator", 48082 value: punctuator 48083 }; 48084 continue; 48085 } 48086 postfixIncDec = !1; 48087 break; 48088 default: 48089 postfixIncDec = !1; 48090 } 48091 lastIndex = nextLastIndex, lastSignificantToken = nextLastSignificantToken, yield { 48092 type: "Punctuator", 48093 value: punctuator 48094 }; 48095 continue; 48096 } 48097 if (Identifier.lastIndex = lastIndex, match3 = Identifier.exec(input2)) { 48098 switch (lastIndex = Identifier.lastIndex, nextLastSignificantToken = match3[0], match3[0]) { 48099 case "for": 48100 case "if": 48101 case "while": 48102 case "with": 48103 lastSignificantToken !== "." && lastSignificantToken !== "?." && (nextLastSignificantToken = "?NonExpressionParenKeyword"); 48104 } 48105 lastSignificantToken = nextLastSignificantToken, postfixIncDec = !KeywordsWithExpressionAfter.test(match3[0]), yield { 48106 type: match3[1] === "#" ? "PrivateIdentifier" : "IdentifierName", 48107 value: match3[0] 48108 }; 48109 continue; 48110 } 48111 if (StringLiteral.lastIndex = lastIndex, match3 = StringLiteral.exec(input2)) { 48112 lastIndex = StringLiteral.lastIndex, lastSignificantToken = match3[0], postfixIncDec = !0, yield { 48113 type: "StringLiteral", 48114 value: match3[0], 48115 closed: match3[2] !== void 0 48116 }; 48117 continue; 48118 } 48119 if (NumericLiteral.lastIndex = lastIndex, match3 = NumericLiteral.exec(input2)) { 48120 lastIndex = NumericLiteral.lastIndex, lastSignificantToken = match3[0], postfixIncDec = !0, yield { 48121 type: "NumericLiteral", 48122 value: match3[0] 48123 }; 48124 continue; 48125 } 48126 if (Template.lastIndex = lastIndex, match3 = Template.exec(input2)) { 48127 lastIndex = Template.lastIndex, lastSignificantToken = match3[0], match3[1] === "${" ? (lastSignificantToken = "?InterpolationInTemplate", stack.push({ 48128 tag: "InterpolationInTemplate", 48129 nesting: braces.length 48130 }), postfixIncDec = !1, yield { 48131 type: "TemplateHead", 48132 value: match3[0] 48133 }) : (postfixIncDec = !0, yield { 48134 type: "NoSubstitutionTemplate", 48135 value: match3[0], 48136 closed: match3[1] === "`" 48137 }); 48138 continue; 48139 } 48140 break; 48141 case "JSXTag": 48142 case "JSXTagEnd": 48143 if (JSXPunctuator.lastIndex = lastIndex, match3 = JSXPunctuator.exec(input2)) { 48144 switch (lastIndex = JSXPunctuator.lastIndex, nextLastSignificantToken = match3[0], match3[0]) { 48145 case "<": 48146 stack.push({ tag: "JSXTag" }); 48147 break; 48148 case ">": 48149 stack.pop(), lastSignificantToken === "/" || mode.tag === "JSXTagEnd" ? (nextLastSignificantToken = "?JSX", postfixIncDec = !0) : stack.push({ tag: "JSXChildren" }); 48150 break; 48151 case "{": 48152 stack.push({ 48153 tag: "InterpolationInJSX", 48154 nesting: braces.length 48155 }), nextLastSignificantToken = "?InterpolationInJSX", postfixIncDec = !1; 48156 break; 48157 case "/": 48158 lastSignificantToken === "<" && (stack.pop(), stack[stack.length - 1].tag === "JSXChildren" && stack.pop(), stack.push({ tag: "JSXTagEnd" })); 48159 } 48160 lastSignificantToken = nextLastSignificantToken, yield { 48161 type: "JSXPunctuator", 48162 value: match3[0] 48163 }; 48164 continue; 48165 } 48166 if (JSXIdentifier.lastIndex = lastIndex, match3 = JSXIdentifier.exec(input2)) { 48167 lastIndex = JSXIdentifier.lastIndex, lastSignificantToken = match3[0], yield { 48168 type: "JSXIdentifier", 48169 value: match3[0] 48170 }; 48171 continue; 48172 } 48173 if (JSXString.lastIndex = lastIndex, match3 = JSXString.exec(input2)) { 48174 lastIndex = JSXString.lastIndex, lastSignificantToken = match3[0], yield { 48175 type: "JSXString", 48176 value: match3[0], 48177 closed: match3[2] !== void 0 48178 }; 48179 continue; 48180 } 48181 break; 48182 case "JSXChildren": 48183 if (JSXText.lastIndex = lastIndex, match3 = JSXText.exec(input2)) { 48184 lastIndex = JSXText.lastIndex, lastSignificantToken = match3[0], yield { 48185 type: "JSXText", 48186 value: match3[0] 48187 }; 48188 continue; 48189 } 48190 switch (input2[lastIndex]) { 48191 case "<": 48192 stack.push({ tag: "JSXTag" }), lastIndex++, lastSignificantToken = "<", yield { 48193 type: "JSXPunctuator", 48194 value: "<" 48195 }; 48196 continue; 48197 case "{": 48198 stack.push({ 48199 tag: "InterpolationInJSX", 48200 nesting: braces.length 48201 }), lastIndex++, lastSignificantToken = "?InterpolationInJSX", postfixIncDec = !1, yield { 48202 type: "JSXPunctuator", 48203 value: "{" 48204 }; 48205 continue; 48206 } 48207 } 48208 if (WhiteSpace.lastIndex = lastIndex, match3 = WhiteSpace.exec(input2)) { 48209 lastIndex = WhiteSpace.lastIndex, yield { 48210 type: "WhiteSpace", 48211 value: match3[0] 48212 }; 48213 continue; 48214 } 48215 if (LineTerminatorSequence.lastIndex = lastIndex, match3 = LineTerminatorSequence.exec(input2)) { 48216 lastIndex = LineTerminatorSequence.lastIndex, postfixIncDec = !1, KeywordsWithNoLineTerminatorAfter.test(lastSignificantToken) && (lastSignificantToken = "?NoLineTerminatorHere"), yield { 48217 type: "LineTerminatorSequence", 48218 value: match3[0] 48219 }; 48220 continue; 48221 } 48222 if (MultiLineComment.lastIndex = lastIndex, match3 = MultiLineComment.exec(input2)) { 48223 lastIndex = MultiLineComment.lastIndex, Newline.test(match3[0]) && (postfixIncDec = !1, KeywordsWithNoLineTerminatorAfter.test(lastSignificantToken) && (lastSignificantToken = "?NoLineTerminatorHere")), yield { 48224 type: "MultiLineComment", 48225 value: match3[0], 48226 closed: match3[1] !== void 0 48227 }; 48228 continue; 48229 } 48230 if (SingleLineComment.lastIndex = lastIndex, match3 = SingleLineComment.exec(input2)) { 48231 lastIndex = SingleLineComment.lastIndex, postfixIncDec = !1, yield { 48232 type: "SingleLineComment", 48233 value: match3[0] 48234 }; 48235 continue; 48236 } 48237 firstCodePoint = String.fromCodePoint(input2.codePointAt(lastIndex)), lastIndex += firstCodePoint.length, lastSignificantToken = firstCodePoint, postfixIncDec = !1, yield { 48238 type: mode.tag.startsWith("JSX") ? "JSXInvalid" : "Invalid", 48239 value: firstCodePoint 48240 }; 48241 } 48242 }, jsTokens_1; 48243} 48244var jsTokensExports = requireJsTokens(), jsTokens = getDefaultExportFromCjs2(jsTokensExports), reservedWords = { 48245 keyword: [ 48246 "break", 48247 "case", 48248 "catch", 48249 "continue", 48250 "debugger", 48251 "default", 48252 "do", 48253 "else", 48254 "finally", 48255 "for", 48256 "function", 48257 "if", 48258 "return", 48259 "switch", 48260 "throw", 48261 "try", 48262 "var", 48263 "const", 48264 "while", 48265 "with", 48266 "new", 48267 "this", 48268 "super", 48269 "class", 48270 "extends", 48271 "export", 48272 "import", 48273 "null", 48274 "true", 48275 "false", 48276 "in", 48277 "instanceof", 48278 "typeof", 48279 "void", 48280 "delete" 48281 ], 48282 strict: [ 48283 "implements", 48284 "interface", 48285 "let", 48286 "package", 48287 "private", 48288 "protected", 48289 "public", 48290 "static", 48291 "yield" 48292 ] 48293}, keywords = new Set(reservedWords.keyword), reservedWordsStrictSet = new Set(reservedWords.strict); 48294var SAFE_TIMERS_SYMBOL = Symbol("vitest:SAFE_TIMERS"); 48295
vendor: 2,168 bytes, lines 48296-48377
48296// ../../node_modules/@vitest/expect/node_modules/tinyrainbow/dist/chunk-BVHSVHOK.js 48297var f2 = { 48298 reset: [0, 0], 48299 bold: [1, 22, "\x1B[22m\x1B[1m"], 48300 dim: [2, 22, "\x1B[22m\x1B[2m"], 48301 italic: [3, 23], 48302 underline: [4, 24], 48303 inverse: [7, 27], 48304 hidden: [8, 28], 48305 strikethrough: [9, 29], 48306 black: [30, 39], 48307 red: [31, 39], 48308 green: [32, 39], 48309 yellow: [33, 39], 48310 blue: [34, 39], 48311 magenta: [35, 39], 48312 cyan: [36, 39], 48313 white: [37, 39], 48314 gray: [90, 39], 48315 bgBlack: [40, 49], 48316 bgRed: [41, 49], 48317 bgGreen: [42, 49], 48318 bgYellow: [43, 49], 48319 bgBlue: [44, 49], 48320 bgMagenta: [45, 49], 48321 bgCyan: [46, 49], 48322 bgWhite: [47, 49], 48323 blackBright: [90, 39], 48324 redBright: [91, 39], 48325 greenBright: [92, 39], 48326 yellowBright: [93, 39], 48327 blueBright: [94, 39], 48328 magentaBright: [95, 39], 48329 cyanBright: [96, 39], 48330 whiteBright: [97, 39], 48331 bgBlackBright: [100, 49], 48332 bgRedBright: [101, 49], 48333 bgGreenBright: [102, 49], 48334 bgYellowBright: [103, 49], 48335 bgBlueBright: [104, 49], 48336 bgMagentaBright: [105, 49], 48337 bgCyanBright: [106, 49], 48338 bgWhiteBright: [107, 49] 48339}, h2 = Object.entries(f2); 48340function a2(n) { 48341 return String(n); 48342} 48343a2.open = ""; 48344a2.close = ""; 48345var B2 = h2.reduce( 48346 (n, [e]) => (n[e] = a2, n), 48347 { isColorSupported: !1 } 48348); 48349function C2(n = !1) { 48350 let e = typeof process < "u" ? process : void 0, i = e?.env || {}, g2 = e?.argv || []; 48351 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; 48352} 48353function p2(n = !1) { 48354 let e = C2(n), i = (r2, t, c, o) => { 48355 let l = "", s3 = 0; 48356 do 48357 l += r2.substring(s3, o) + c, s3 = o + t.length, o = r2.indexOf(t, s3); 48358 while (~o); 48359 return l + r2.substring(s3); 48360 }, g2 = (r2, t, c = r2) => { 48361 let o = (l) => { 48362 let s3 = String(l), b = s3.indexOf(t, r2.length); 48363 return ~b ? r2 + i(s3, t, c, b) + t : r2 + s3 + t; 48364 }; 48365 return o.open = r2, o.close = t, o; 48366 }, u2 = { 48367 isColorSupported: e 48368 }, d = (r2) => `\x1B[${r2}m`; 48369 for (let [r2, t] of h2) 48370 u2[r2] = e ? g2( 48371 d(t[0]), 48372 d(t[1]), 48373 t[2] 48374 ) : a2; 48375 return u2; 48376} 48377
vendor: 94 bytes, lines 48378-48380
48378// ../../node_modules/@vitest/expect/node_modules/tinyrainbow/dist/browser.js 48379var s2 = p2(); 48380
vendor: 6,393 bytes, lines 48381-48532
48381// ../../node_modules/@vitest/spy/node_modules/tinyspy/dist/index.js 48382function assert2(condition, message) { 48383 if (!condition) 48384 throw new Error(message); 48385} 48386function isType(type5, value) { 48387 return typeof value === type5; 48388} 48389function isPromise2(value) { 48390 return value instanceof Promise; 48391} 48392function define2(obj, key, descriptor) { 48393 Object.defineProperty(obj, key, descriptor); 48394} 48395function defineValue(obj, key, value) { 48396 define2(obj, key, { value, configurable: !0, writable: !0 }); 48397} 48398var SYMBOL_STATE = Symbol.for("tinyspy:spy"), spies = /* @__PURE__ */ new Set(), reset = (state3) => { 48399 state3.called = !1, state3.callCount = 0, state3.calls = [], state3.results = [], state3.resolves = [], state3.next = []; 48400}, defineState = (spy2) => (define2(spy2, SYMBOL_STATE, { 48401 value: { reset: () => reset(spy2[SYMBOL_STATE]) } 48402}), spy2[SYMBOL_STATE]), getInternalState = (spy2) => spy2[SYMBOL_STATE] || defineState(spy2); 48403function createInternalSpy(cb) { 48404 assert2( 48405 isType("function", cb) || isType("undefined", cb), 48406 "cannot spy on a non-function value" 48407 ); 48408 let fn4 = function(...args) { 48409 let state22 = getInternalState(fn4); 48410 state22.called = !0, state22.callCount++, state22.calls.push(args); 48411 let next2 = state22.next.shift(); 48412 if (next2) { 48413 state22.results.push(next2); 48414 let [type22, result2] = next2; 48415 if (type22 === "ok") 48416 return result2; 48417 throw result2; 48418 } 48419 let result, type5 = "ok", resultIndex = state22.results.length; 48420 if (state22.impl) 48421 try { 48422 new.target ? result = Reflect.construct(state22.impl, args, new.target) : result = state22.impl.apply(this, args), type5 = "ok"; 48423 } catch (err) { 48424 throw result = err, type5 = "error", state22.results.push([type5, err]), err; 48425 } 48426 let resultTuple = [type5, result]; 48427 return isPromise2(result) && result.then( 48428 (r2) => state22.resolves[resultIndex] = ["ok", r2], 48429 (e) => state22.resolves[resultIndex] = ["error", e] 48430 ), state22.results.push(resultTuple), result; 48431 }; 48432 defineValue(fn4, "_isMockFunction", !0), defineValue(fn4, "length", cb ? cb.length : 0), defineValue(fn4, "name", cb && cb.name || "spy"); 48433 let state3 = getInternalState(fn4); 48434 return state3.reset(), state3.impl = cb, fn4; 48435} 48436function isMockFunction(obj) { 48437 return !!obj && obj._isMockFunction === !0; 48438} 48439var getDescriptor = (obj, method) => { 48440 let objDescriptor = Object.getOwnPropertyDescriptor(obj, method); 48441 if (objDescriptor) 48442 return [obj, objDescriptor]; 48443 let currentProto = Object.getPrototypeOf(obj); 48444 for (; currentProto !== null; ) { 48445 let descriptor = Object.getOwnPropertyDescriptor(currentProto, method); 48446 if (descriptor) 48447 return [currentProto, descriptor]; 48448 currentProto = Object.getPrototypeOf(currentProto); 48449 } 48450}, setPototype = (fn4, val) => { 48451 val != null && typeof val == "function" && val.prototype != null && Object.setPrototypeOf(fn4.prototype, val.prototype); 48452}; 48453function internalSpyOn(obj, methodName, mock) { 48454 assert2( 48455 !isType("undefined", obj), 48456 "spyOn could not find an object to spy upon" 48457 ), assert2( 48458 isType("object", obj) || isType("function", obj), 48459 "cannot spyOn on a primitive value" 48460 ); 48461 let [accessName, accessType] = (() => { 48462 if (!isType("object", methodName)) 48463 return [methodName, "value"]; 48464 if ("getter" in methodName && "setter" in methodName) 48465 throw new Error("cannot spy on both getter and setter"); 48466 if ("getter" in methodName) 48467 return [methodName.getter, "get"]; 48468 if ("setter" in methodName) 48469 return [methodName.setter, "set"]; 48470 throw new Error("specify getter or setter to spy on"); 48471 })(), [originalDescriptorObject, originalDescriptor] = getDescriptor(obj, accessName) || []; 48472 assert2( 48473 originalDescriptor || accessName in obj, 48474 `${String(accessName)} does not exist` 48475 ); 48476 let ssr = !1; 48477 accessType === "value" && originalDescriptor && !originalDescriptor.value && originalDescriptor.get && (accessType = "get", ssr = !0, mock = originalDescriptor.get()); 48478 let original; 48479 originalDescriptor ? original = originalDescriptor[accessType] : accessType !== "value" ? original = () => obj[accessName] : original = obj[accessName], original && isSpyFunction(original) && (original = original[SYMBOL_STATE].getOriginal()); 48480 let reassign = (cb) => { 48481 let { value, ...desc } = originalDescriptor || { 48482 configurable: !0, 48483 writable: !0 48484 }; 48485 accessType !== "value" && delete desc.writable, desc[accessType] = cb, define2(obj, accessName, desc); 48486 }, restore = () => { 48487 originalDescriptorObject !== obj ? Reflect.deleteProperty(obj, accessName) : originalDescriptor && !original ? define2(obj, accessName, originalDescriptor) : reassign(original); 48488 }; 48489 mock || (mock = original); 48490 let spy2 = wrap(createInternalSpy(mock), mock); 48491 accessType === "value" && setPototype(spy2, original); 48492 let state3 = spy2[SYMBOL_STATE]; 48493 return defineValue(state3, "restore", restore), defineValue(state3, "getOriginal", () => ssr ? original() : original), defineValue(state3, "willCall", (newCb) => (state3.impl = newCb, spy2)), reassign( 48494 ssr ? () => (setPototype(spy2, mock), spy2) : spy2 48495 ), spies.add(spy2), spy2; 48496} 48497var ignoreProperties = /* @__PURE__ */ new Set([ 48498 "length", 48499 "name", 48500 "prototype" 48501]); 48502function getAllProperties(original) { 48503 let properties = /* @__PURE__ */ new Set(), descriptors2 = {}; 48504 for (; original && original !== Object.prototype && original !== Function.prototype; ) { 48505 let ownProperties = [ 48506 ...Object.getOwnPropertyNames(original), 48507 ...Object.getOwnPropertySymbols(original) 48508 ]; 48509 for (let prop of ownProperties) 48510 descriptors2[prop] || ignoreProperties.has(prop) || (properties.add(prop), descriptors2[prop] = Object.getOwnPropertyDescriptor(original, prop)); 48511 original = Object.getPrototypeOf(original); 48512 } 48513 return { 48514 properties, 48515 descriptors: descriptors2 48516 }; 48517} 48518function wrap(mock, original) { 48519 if (!original || // the original is already a spy, so it has all the properties 48520 SYMBOL_STATE in original) 48521 return mock; 48522 let { properties, descriptors: descriptors2 } = getAllProperties(original); 48523 for (let key of properties) { 48524 let descriptor = descriptors2[key]; 48525 getDescriptor(mock, key) || define2(mock, key, descriptor); 48526 } 48527 return mock; 48528} 48529function isSpyFunction(obj) { 48530 return isMockFunction(obj) && "getOriginal" in obj[SYMBOL_STATE]; 48531} 48532
vendor: 5,268 bytes, lines 48533-48624
48533// ../../node_modules/@vitest/spy/dist/index.js 48534var mocks = /* @__PURE__ */ new Set(); 48535function isMockFunction2(fn4) { 48536 return typeof fn4 == "function" && "_isMockFunction" in fn4 && fn4._isMockFunction; 48537} 48538function spyOn(obj, method, accessType) { 48539 let objMethod = accessType ? { [{ 48540 get: "getter", 48541 set: "setter" 48542 }[accessType]]: method } : method, state3, descriptor = getDescriptor2(obj, method), fn4 = descriptor && descriptor[accessType || "value"]; 48543 isMockFunction2(fn4) && (state3 = fn4.mock._state()); 48544 try { 48545 let stub = internalSpyOn(obj, objMethod), spy = enhanceSpy(stub); 48546 return state3 && spy.mock._state(state3), spy; 48547 } catch (error) { 48548 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; 48549 } 48550} 48551var callOrder = 0; 48552function enhanceSpy(spy) { 48553 let stub = spy, implementation, onceImplementations = [], implementationChangedTemporarily = !1, instances2 = [], contexts = [], invocations = [], state3 = getInternalState(spy), mockContext = { 48554 get calls() { 48555 return state3.calls; 48556 }, 48557 get contexts() { 48558 return contexts; 48559 }, 48560 get instances() { 48561 return instances2; 48562 }, 48563 get invocationCallOrder() { 48564 return invocations; 48565 }, 48566 get results() { 48567 return state3.results.map(([callType, value]) => ({ 48568 type: callType === "error" ? "throw" : "return", 48569 value 48570 })); 48571 }, 48572 get settledResults() { 48573 return state3.resolves.map(([callType, value]) => ({ 48574 type: callType === "error" ? "rejected" : "fulfilled", 48575 value 48576 })); 48577 }, 48578 get lastCall() { 48579 return state3.calls[state3.calls.length - 1]; 48580 }, 48581 _state(state4) { 48582 return state4 && (implementation = state4.implementation, onceImplementations = state4.onceImplementations, implementationChangedTemporarily = state4.implementationChangedTemporarily), { 48583 implementation, 48584 onceImplementations, 48585 implementationChangedTemporarily 48586 }; 48587 } 48588 }; 48589 function mockCall(...args) { 48590 return instances2.push(this), contexts.push(this), invocations.push(++callOrder), (implementationChangedTemporarily ? implementation : onceImplementations.shift() || implementation || state3.getOriginal() || (() => { 48591 })).apply(this, args); 48592 } 48593 let name = stub.name; 48594 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); 48595 function withImplementation(fn4, cb) { 48596 let originalImplementation = implementation; 48597 implementation = fn4, state3.willCall(mockCall), implementationChangedTemporarily = !0; 48598 let reset2 = () => { 48599 implementation = originalImplementation, implementationChangedTemporarily = !1; 48600 }, result = cb(); 48601 return typeof result == "object" && result && typeof result.then == "function" ? result.then(() => (reset2(), stub)) : (reset2(), stub); 48602 } 48603 return stub.withImplementation = withImplementation, stub.mockReturnThis = () => stub.mockImplementation(function() { 48604 return this; 48605 }), 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; 48606} 48607function fn(implementation) { 48608 let enhancedSpy = enhanceSpy(internalSpyOn({ spy: implementation || function() { 48609 } }, "spy")); 48610 return implementation && enhancedSpy.mockImplementation(implementation), enhancedSpy; 48611} 48612function getDescriptor2(obj, method) { 48613 let objDescriptor = Object.getOwnPropertyDescriptor(obj, method); 48614 if (objDescriptor) 48615 return objDescriptor; 48616 let currentProto = Object.getPrototypeOf(obj); 48617 for (; currentProto !== null; ) { 48618 let descriptor = Object.getOwnPropertyDescriptor(currentProto, method); 48619 if (descriptor) 48620 return descriptor; 48621 currentProto = Object.getPrototypeOf(currentProto); 48622 } 48623} 48624
vendor: 57,774 bytes, lines 48625-49775
48625// ../../node_modules/@vitest/expect/dist/index.js 48626var MATCHERS_OBJECT = Symbol.for("matchers-object"), JEST_MATCHERS_OBJECT = Symbol.for("$$jest-matchers-object-storybook"), GLOBAL_EXPECT = Symbol.for("expect-global"), ASYMMETRIC_MATCHERS_OBJECT = Symbol.for("asymmetric-matchers-object"), customMatchers = { 48627 toSatisfy(actual, expected, message) { 48628 let { printReceived: printReceived3, printExpected: printExpected3, matcherHint: matcherHint2 } = this.utils, pass = expected(actual); 48629 return { 48630 pass, 48631 message: () => pass ? `${matcherHint2(".not.toSatisfy", "received", "")} 48632 48633Expected value to not satisfy: 48634${message || printExpected3(expected)} 48635Received: 48636${printReceived3(actual)}` : `${matcherHint2(".toSatisfy", "received", "")} 48637 48638Expected value to satisfy: 48639${message || printExpected3(expected)} 48640 48641Received: 48642${printReceived3(actual)}` 48643 }; 48644 }, 48645 toBeOneOf(actual, expected) { 48646 let { equals: equals2, customTesters } = this, { printReceived: printReceived3, printExpected: printExpected3, matcherHint: matcherHint2 } = this.utils; 48647 if (!Array.isArray(expected)) 48648 throw new TypeError(`You must provide an array to ${matcherHint2(".toBeOneOf")}, not '${typeof expected}'.`); 48649 let pass = expected.length === 0 || expected.some((item) => equals2(item, actual, customTesters)); 48650 return { 48651 pass, 48652 message: () => pass ? `${matcherHint2(".not.toBeOneOf", "received", "")} 48653 48654Expected value to not be one of: 48655${printExpected3(expected)} 48656Received: 48657${printReceived3(actual)}` : `${matcherHint2(".toBeOneOf", "received", "")} 48658 48659Expected value to be one of: 48660${printExpected3(expected)} 48661 48662Received: 48663${printReceived3(actual)}` 48664 }; 48665 } 48666}, EXPECTED_COLOR = s2.green, RECEIVED_COLOR = s2.red, INVERTED_COLOR = s2.inverse, BOLD_WEIGHT = s2.bold, DIM_COLOR = s2.dim; 48667function matcherHint(matcherName, received = "received", expected = "expected", options = {}) { 48668 let { comment: comment2 = "", isDirectExpectCall = !1, isNot = !1, promise = "", secondArgument = "", expectedColor = EXPECTED_COLOR, receivedColor = RECEIVED_COLOR, secondArgumentColor = EXPECTED_COLOR } = options, hint = "", dimString = "expect"; 48669 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; 48670} 48671var SPACE_SYMBOL2 = "\xB7"; 48672function replaceTrailingSpaces2(text) { 48673 return text.replace(/\s+$/gm, (spaces) => SPACE_SYMBOL2.repeat(spaces.length)); 48674} 48675function printReceived2(object) { 48676 return RECEIVED_COLOR(replaceTrailingSpaces2(stringify5(object))); 48677} 48678function printExpected2(value) { 48679 return EXPECTED_COLOR(replaceTrailingSpaces2(stringify5(value))); 48680} 48681function getMatcherUtils() { 48682 return { 48683 EXPECTED_COLOR, 48684 RECEIVED_COLOR, 48685 INVERTED_COLOR, 48686 BOLD_WEIGHT, 48687 DIM_COLOR, 48688 diff, 48689 matcherHint, 48690 printReceived: printReceived2, 48691 printExpected: printExpected2, 48692 printDiffOrStringify, 48693 printWithType 48694 }; 48695} 48696function printWithType(name, value, print) { 48697 let type5 = getType2(value), hasType = type5 !== "null" && type5 !== "undefined" ? `${name} has type: ${type5} 48698` : "", hasValue = `${name} has value: ${print(value)}`; 48699 return hasType + hasValue; 48700} 48701function getCustomEqualityTesters() { 48702 return globalThis[JEST_MATCHERS_OBJECT].customEqualityTesters; 48703} 48704function equals(a3, b, customTesters, strictCheck) { 48705 return customTesters = customTesters || [], eq3(a3, b, [], [], customTesters, strictCheck ? hasKey : hasDefinedKey); 48706} 48707var functionToString = Function.prototype.toString; 48708function isAsymmetric(obj) { 48709 return !!obj && typeof obj == "object" && "asymmetricMatch" in obj && isA("Function", obj.asymmetricMatch); 48710} 48711function asymmetricMatch(a3, b) { 48712 let asymmetricA = isAsymmetric(a3), asymmetricB = isAsymmetric(b); 48713 if (!(asymmetricA && asymmetricB)) { 48714 if (asymmetricA) 48715 return a3.asymmetricMatch(b); 48716 if (asymmetricB) 48717 return b.asymmetricMatch(a3); 48718 } 48719} 48720function eq3(a3, b, aStack, bStack, customTesters, hasKey2) { 48721 let result = !0, asymmetricResult = asymmetricMatch(a3, b); 48722 if (asymmetricResult !== void 0) 48723 return asymmetricResult; 48724 let testerContext = { equals }; 48725 for (let i = 0; i < customTesters.length; i++) { 48726 let customTesterResult = customTesters[i].call(testerContext, a3, b, customTesters); 48727 if (customTesterResult !== void 0) 48728 return customTesterResult; 48729 } 48730 if (typeof URL == "function" && a3 instanceof URL && b instanceof URL) 48731 return a3.href === b.href; 48732 if (Object.is(a3, b)) 48733 return !0; 48734 if (a3 === null || b === null) 48735 return a3 === b; 48736 let className = Object.prototype.toString.call(a3); 48737 if (className !== Object.prototype.toString.call(b)) 48738 return !1; 48739 switch (className) { 48740 case "[object Boolean]": 48741 case "[object String]": 48742 case "[object Number]": 48743 return typeof a3 != typeof b ? !1 : typeof a3 != "object" && typeof b != "object" ? Object.is(a3, b) : Object.is(a3.valueOf(), b.valueOf()); 48744 case "[object Date]": { 48745 let numA = +a3, numB = +b; 48746 return numA === numB || Number.isNaN(numA) && Number.isNaN(numB); 48747 } 48748 case "[object RegExp]": 48749 return a3.source === b.source && a3.flags === b.flags; 48750 case "[object Temporal.Instant]": 48751 case "[object Temporal.ZonedDateTime]": 48752 case "[object Temporal.PlainDateTime]": 48753 case "[object Temporal.PlainDate]": 48754 case "[object Temporal.PlainTime]": 48755 case "[object Temporal.PlainYearMonth]": 48756 case "[object Temporal.PlainMonthDay]": 48757 return a3.equals(b); 48758 case "[object Temporal.Duration]": 48759 return a3.toString() === b.toString(); 48760 } 48761 if (typeof a3 != "object" || typeof b != "object") 48762 return !1; 48763 if (isDomNode(a3) && isDomNode(b)) 48764 return a3.isEqualNode(b); 48765 let length2 = aStack.length; 48766 for (; length2--; ) { 48767 if (aStack[length2] === a3) 48768 return bStack[length2] === b; 48769 if (bStack[length2] === b) 48770 return !1; 48771 } 48772 if (aStack.push(a3), bStack.push(b), className === "[object Array]" && a3.length !== b.length) 48773 return !1; 48774 if (a3 instanceof Error && b instanceof Error) 48775 try { 48776 return isErrorEqual(a3, b, aStack, bStack, customTesters, hasKey2); 48777 } finally { 48778 aStack.pop(), bStack.pop(); 48779 } 48780 let aKeys = keys(a3, hasKey2), key, size = aKeys.length; 48781 if (keys(b, hasKey2).length !== size) 48782 return !1; 48783 for (; size--; ) 48784 if (key = aKeys[size], result = hasKey2(b, key) && eq3(a3[key], b[key], aStack, bStack, customTesters, hasKey2), !result) 48785 return !1; 48786 return aStack.pop(), bStack.pop(), result; 48787} 48788function isErrorEqual(a3, b, aStack, bStack, customTesters, hasKey2) { 48789 let result = Object.getPrototypeOf(a3) === Object.getPrototypeOf(b) && a3.name === b.name && a3.message === b.message; 48790 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; 48791} 48792function keys(obj, hasKey2) { 48793 let keys3 = []; 48794 for (let key in obj) 48795 hasKey2(obj, key) && keys3.push(key); 48796 return keys3.concat(Object.getOwnPropertySymbols(obj).filter((symbol) => Object.getOwnPropertyDescriptor(obj, symbol).enumerable)); 48797} 48798function hasDefinedKey(obj, key) { 48799 return hasKey(obj, key) && obj[key] !== void 0; 48800} 48801function hasKey(obj, key) { 48802 return Object.prototype.hasOwnProperty.call(obj, key); 48803} 48804function isA(typeName, value) { 48805 return Object.prototype.toString.apply(value) === `[object ${typeName}]`; 48806} 48807function isDomNode(obj) { 48808 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"; 48809} 48810var 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__@@"; 48811function isImmutableUnorderedKeyed(maybeKeyed) { 48812 return !!(maybeKeyed && maybeKeyed[IS_KEYED_SENTINEL2] && !maybeKeyed[IS_ORDERED_SENTINEL2]); 48813} 48814function isImmutableUnorderedSet(maybeSet) { 48815 return !!(maybeSet && maybeSet[IS_SET_SENTINEL2] && !maybeSet[IS_ORDERED_SENTINEL2]); 48816} 48817function isObjectLiteral(source) { 48818 return source != null && typeof source == "object" && !Array.isArray(source); 48819} 48820function isImmutableList(source) { 48821 return !!(source && isObjectLiteral(source) && source[IS_LIST_SENTINEL2]); 48822} 48823function isImmutableOrderedKeyed(source) { 48824 return !!(source && isObjectLiteral(source) && source[IS_KEYED_SENTINEL2] && source[IS_ORDERED_SENTINEL2]); 48825} 48826function isImmutableOrderedSet(source) { 48827 return !!(source && isObjectLiteral(source) && source[IS_SET_SENTINEL2] && source[IS_ORDERED_SENTINEL2]); 48828} 48829function isImmutableRecord(source) { 48830 return !!(source && isObjectLiteral(source) && source[IS_RECORD_SYMBOL2]); 48831} 48832var IteratorSymbol = Symbol.iterator; 48833function hasIterator(object) { 48834 return !!(object != null && object[IteratorSymbol]); 48835} 48836function iterableEquality(a3, b, customTesters = [], aStack = [], bStack = []) { 48837 if (typeof a3 != "object" || typeof b != "object" || Array.isArray(a3) || Array.isArray(b) || !hasIterator(a3) || !hasIterator(b)) 48838 return; 48839 if (a3.constructor !== b.constructor) 48840 return !1; 48841 let length2 = aStack.length; 48842 for (; length2--; ) 48843 if (aStack[length2] === a3) 48844 return bStack[length2] === b; 48845 aStack.push(a3), bStack.push(b); 48846 let filteredCustomTesters = [...customTesters.filter((t) => t !== iterableEquality), iterableEqualityWithStack]; 48847 function iterableEqualityWithStack(a4, b2) { 48848 return iterableEquality(a4, b2, [...customTesters], [...aStack], [...bStack]); 48849 } 48850 if (a3.size !== void 0) { 48851 if (a3.size !== b.size) 48852 return !1; 48853 if (isA("Set", a3) || isImmutableUnorderedSet(a3)) { 48854 let allFound = !0; 48855 for (let aValue of a3) 48856 if (!b.has(aValue)) { 48857 let has2 = !1; 48858 for (let bValue of b) 48859 equals(aValue, bValue, filteredCustomTesters) === !0 && (has2 = !0); 48860 if (has2 === !1) { 48861 allFound = !1; 48862 break; 48863 } 48864 } 48865 return aStack.pop(), bStack.pop(), allFound; 48866 } else if (isA("Map", a3) || isImmutableUnorderedKeyed(a3)) { 48867 let allFound = !0; 48868 for (let aEntry of a3) 48869 if (!b.has(aEntry[0]) || !equals(aEntry[1], b.get(aEntry[0]), filteredCustomTesters)) { 48870 let has2 = !1; 48871 for (let bEntry of b) { 48872 let matchedKey = equals(aEntry[0], bEntry[0], filteredCustomTesters), matchedValue = !1; 48873 matchedKey === !0 && (matchedValue = equals(aEntry[1], bEntry[1], filteredCustomTesters)), matchedValue === !0 && (has2 = !0); 48874 } 48875 if (has2 === !1) { 48876 allFound = !1; 48877 break; 48878 } 48879 } 48880 return aStack.pop(), bStack.pop(), allFound; 48881 } 48882 } 48883 let bIterator = b[IteratorSymbol](); 48884 for (let aValue of a3) { 48885 let nextB = bIterator.next(); 48886 if (nextB.done || !equals(aValue, nextB.value, filteredCustomTesters)) 48887 return !1; 48888 } 48889 if (!bIterator.next().done) 48890 return !1; 48891 if (!isImmutableList(a3) && !isImmutableOrderedKeyed(a3) && !isImmutableOrderedSet(a3) && !isImmutableRecord(a3)) { 48892 let aEntries = Object.entries(a3), bEntries = Object.entries(b); 48893 if (!equals(aEntries, bEntries, filteredCustomTesters)) 48894 return !1; 48895 } 48896 return aStack.pop(), bStack.pop(), !0; 48897} 48898function hasPropertyInObject(object, key) { 48899 return !object || typeof object != "object" || object === Object.prototype ? !1 : Object.prototype.hasOwnProperty.call(object, key) || hasPropertyInObject(Object.getPrototypeOf(object), key); 48900} 48901function isObjectWithKeys(a3) { 48902 return isObject5(a3) && !(a3 instanceof Error) && !Array.isArray(a3) && !(a3 instanceof Date); 48903} 48904function subsetEquality(object, subset, customTesters = []) { 48905 let filteredCustomTesters = customTesters.filter((t) => t !== subsetEquality), subsetEqualityWithContext = (seenReferences = /* @__PURE__ */ new WeakMap()) => (object2, subset2) => { 48906 if (isObjectWithKeys(subset2)) 48907 return Object.keys(subset2).every((key) => { 48908 if (subset2[key] != null && typeof subset2[key] == "object") { 48909 if (seenReferences.has(subset2[key])) 48910 return equals(object2[key], subset2[key], filteredCustomTesters); 48911 seenReferences.set(subset2[key], !0); 48912 } 48913 let result = object2 != null && hasPropertyInObject(object2, key) && equals(object2[key], subset2[key], [...filteredCustomTesters, subsetEqualityWithContext(seenReferences)]); 48914 return seenReferences.delete(subset2[key]), result; 48915 }); 48916 }; 48917 return subsetEqualityWithContext()(object, subset); 48918} 48919function typeEquality(a3, b) { 48920 if (!(a3 == null || b == null || a3.constructor === b.constructor)) 48921 return !1; 48922} 48923function arrayBufferEquality(a3, b) { 48924 let dataViewA = a3, dataViewB = b; 48925 if (!(a3 instanceof DataView && b instanceof DataView)) { 48926 if (!(a3 instanceof ArrayBuffer) || !(b instanceof ArrayBuffer)) 48927 return; 48928 try { 48929 dataViewA = new DataView(a3), dataViewB = new DataView(b); 48930 } catch { 48931 return; 48932 } 48933 } 48934 if (dataViewA.byteLength !== dataViewB.byteLength) 48935 return !1; 48936 for (let i = 0; i < dataViewA.byteLength; i++) 48937 if (dataViewA.getUint8(i) !== dataViewB.getUint8(i)) 48938 return !1; 48939 return !0; 48940} 48941function sparseArrayEquality(a3, b, customTesters = []) { 48942 if (!Array.isArray(a3) || !Array.isArray(b)) 48943 return; 48944 let aKeys = Object.keys(a3), bKeys = Object.keys(b), filteredCustomTesters = customTesters.filter((t) => t !== sparseArrayEquality); 48945 return equals(a3, b, filteredCustomTesters, !0) && equals(aKeys, bKeys); 48946} 48947function generateToBeMessage(deepEqualityName, expected = "#{this}", actual = "#{exp}") { 48948 let toBeMessage = `expected ${expected} to be ${actual} // Object.is equality`; 48949 return ["toStrictEqual", "toEqual"].includes(deepEqualityName) ? `${toBeMessage} 48950 48951If it should pass with deep equality, replace "toBe" with "${deepEqualityName}" 48952 48953Expected: ${expected} 48954Received: serializes to the same string 48955` : toBeMessage; 48956} 48957function pluralize(word, count) { 48958 return `${count} ${word}${count === 1 ? "" : "s"}`; 48959} 48960function getObjectKeys(object) { 48961 return [...Object.keys(object), ...Object.getOwnPropertySymbols(object).filter((s3) => { 48962 var _Object$getOwnPropert; 48963 return (_Object$getOwnPropert = Object.getOwnPropertyDescriptor(object, s3)) === null || _Object$getOwnPropert === void 0 ? void 0 : _Object$getOwnPropert.enumerable; 48964 })]; 48965} 48966function getObjectSubset(object, subset, customTesters) { 48967 let stripped = 0, getObjectSubsetWithContext = (seenReferences = /* @__PURE__ */ new WeakMap()) => (object2, subset2) => { 48968 if (Array.isArray(object2)) { 48969 if (Array.isArray(subset2) && subset2.length === object2.length) 48970 return subset2.map((sub, i) => getObjectSubsetWithContext(seenReferences)(object2[i], sub)); 48971 } else { 48972 if (object2 instanceof Date) 48973 return object2; 48974 if (isObject5(object2) && isObject5(subset2)) { 48975 if (equals(object2, subset2, [ 48976 ...customTesters, 48977 iterableEquality, 48978 subsetEquality 48979 ])) 48980 return subset2; 48981 let trimmed = {}; 48982 seenReferences.set(object2, trimmed), typeof object2.constructor == "function" && typeof object2.constructor.name == "string" && Object.defineProperty(trimmed, "constructor", { 48983 enumerable: !1, 48984 value: object2.constructor 48985 }); 48986 for (let key of getObjectKeys(object2)) 48987 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])); 48988 if (getObjectKeys(trimmed).length > 0) 48989 return trimmed; 48990 } 48991 } 48992 return object2; 48993 }; 48994 return { 48995 subset: getObjectSubsetWithContext()(object, subset), 48996 stripped 48997 }; 48998} 48999if (!Object.prototype.hasOwnProperty.call(globalThis, MATCHERS_OBJECT)) { 49000 let globalState = /* @__PURE__ */ new WeakMap(); 49001 Object.defineProperty(globalThis, MATCHERS_OBJECT, { get: () => globalState }); 49002} 49003if (!Object.prototype.hasOwnProperty.call(globalThis, JEST_MATCHERS_OBJECT)) { 49004 let matchers = /* @__PURE__ */ Object.create(null), customEqualityTesters = []; 49005 Object.defineProperty(globalThis, JEST_MATCHERS_OBJECT, { 49006 configurable: !0, 49007 get: () => ({ 49008 state: globalThis[MATCHERS_OBJECT].get(globalThis[GLOBAL_EXPECT]), 49009 matchers, 49010 customEqualityTesters 49011 }) 49012 }); 49013} 49014if (!Object.prototype.hasOwnProperty.call(globalThis, ASYMMETRIC_MATCHERS_OBJECT)) { 49015 let asymmetricMatchers = /* @__PURE__ */ Object.create(null); 49016 Object.defineProperty(globalThis, ASYMMETRIC_MATCHERS_OBJECT, { get: () => asymmetricMatchers }); 49017} 49018function getState(expect4) { 49019 return globalThis[MATCHERS_OBJECT].get(expect4); 49020} 49021function setState(state3, expect4) { 49022 let map2 = globalThis[MATCHERS_OBJECT], current = map2.get(expect4) || {}, results = Object.defineProperties(current, { 49023 ...Object.getOwnPropertyDescriptors(current), 49024 ...Object.getOwnPropertyDescriptors(state3) 49025 }); 49026 map2.set(expect4, results); 49027} 49028var AsymmetricMatcher3 = class { 49029 // should have "jest" to be compatible with its ecosystem 49030 $$typeof = Symbol.for("jest.asymmetricMatcher"); 49031 constructor(sample2, inverse = !1) { 49032 this.sample = sample2, this.inverse = inverse; 49033 } 49034 getMatcherContext(expect4) { 49035 return { 49036 ...getState(expect4 || globalThis[GLOBAL_EXPECT]), 49037 equals, 49038 isNot: this.inverse, 49039 customTesters: getCustomEqualityTesters(), 49040 utils: { 49041 ...getMatcherUtils(), 49042 diff, 49043 stringify: stringify5, 49044 iterableEquality, 49045 subsetEquality 49046 } 49047 }; 49048 } 49049}; 49050AsymmetricMatcher3.prototype[Symbol.for("chai/inspect")] = function(options) { 49051 let result = stringify5(this, options.depth, { min: !0 }); 49052 return result.length <= options.truncate ? result : `${this.toString()}{\u2026}`; 49053}; 49054var StringContaining = class extends AsymmetricMatcher3 { 49055 constructor(sample2, inverse = !1) { 49056 if (!isA("String", sample2)) 49057 throw new Error("Expected is not a string"); 49058 super(sample2, inverse); 49059 } 49060 asymmetricMatch(other) { 49061 let result = isA("String", other) && other.includes(this.sample); 49062 return this.inverse ? !result : result; 49063 } 49064 toString() { 49065 return `String${this.inverse ? "Not" : ""}Containing`; 49066 } 49067 getExpectedType() { 49068 return "string"; 49069 } 49070}, Anything = class extends AsymmetricMatcher3 { 49071 asymmetricMatch(other) { 49072 return other != null; 49073 } 49074 toString() { 49075 return "Anything"; 49076 } 49077 toAsymmetricMatcher() { 49078 return "Anything"; 49079 } 49080}, ObjectContaining = class extends AsymmetricMatcher3 { 49081 constructor(sample2, inverse = !1) { 49082 super(sample2, inverse); 49083 } 49084 getPrototype(obj) { 49085 return Object.getPrototypeOf ? Object.getPrototypeOf(obj) : obj.constructor.prototype === obj ? null : obj.constructor.prototype; 49086 } 49087 hasProperty(obj, property) { 49088 return obj ? Object.prototype.hasOwnProperty.call(obj, property) ? !0 : this.hasProperty(this.getPrototype(obj), property) : !1; 49089 } 49090 asymmetricMatch(other) { 49091 if (typeof this.sample != "object") 49092 throw new TypeError(`You must provide an object to ${this.toString()}, not '${typeof this.sample}'.`); 49093 let result = !0, matcherContext = this.getMatcherContext(); 49094 for (let property in this.sample) 49095 if (!this.hasProperty(other, property) || !equals(this.sample[property], other[property], matcherContext.customTesters)) { 49096 result = !1; 49097 break; 49098 } 49099 return this.inverse ? !result : result; 49100 } 49101 toString() { 49102 return `Object${this.inverse ? "Not" : ""}Containing`; 49103 } 49104 getExpectedType() { 49105 return "object"; 49106 } 49107}, ArrayContaining = class extends AsymmetricMatcher3 { 49108 constructor(sample2, inverse = !1) { 49109 super(sample2, inverse); 49110 } 49111 asymmetricMatch(other) { 49112 if (!Array.isArray(this.sample)) 49113 throw new TypeError(`You must provide an array to ${this.toString()}, not '${typeof this.sample}'.`); 49114 let matcherContext = this.getMatcherContext(), result = this.sample.length === 0 || Array.isArray(other) && this.sample.every((item) => other.some((another) => equals(item, another, matcherContext.customTesters))); 49115 return this.inverse ? !result : result; 49116 } 49117 toString() { 49118 return `Array${this.inverse ? "Not" : ""}Containing`; 49119 } 49120 getExpectedType() { 49121 return "array"; 49122 } 49123}, Any = class extends AsymmetricMatcher3 { 49124 constructor(sample2) { 49125 if (typeof sample2 > "u") 49126 throw new TypeError("any() expects to be passed a constructor function. Please pass one or use anything() to match any object."); 49127 super(sample2); 49128 } 49129 fnNameFor(func) { 49130 if (func.name) 49131 return func.name; 49132 let matches4 = Function.prototype.toString.call(func).match(/^(?:async)?\s*function\s*(?:\*\s*)?([\w$]+)\s*\(/); 49133 return matches4 ? matches4[1] : "<anonymous>"; 49134 } 49135 asymmetricMatch(other) { 49136 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; 49137 } 49138 toString() { 49139 return "Any"; 49140 } 49141 getExpectedType() { 49142 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); 49143 } 49144 toAsymmetricMatcher() { 49145 return `Any<${this.fnNameFor(this.sample)}>`; 49146 } 49147}, StringMatching = class extends AsymmetricMatcher3 { 49148 constructor(sample2, inverse = !1) { 49149 if (!isA("String", sample2) && !isA("RegExp", sample2)) 49150 throw new Error("Expected is not a String or a RegExp"); 49151 super(new RegExp(sample2), inverse); 49152 } 49153 asymmetricMatch(other) { 49154 let result = isA("String", other) && this.sample.test(other); 49155 return this.inverse ? !result : result; 49156 } 49157 toString() { 49158 return `String${this.inverse ? "Not" : ""}Matching`; 49159 } 49160 getExpectedType() { 49161 return "string"; 49162 } 49163}, CloseTo = class extends AsymmetricMatcher3 { 49164 precision; 49165 constructor(sample2, precision = 2, inverse = !1) { 49166 if (!isA("Number", sample2)) 49167 throw new Error("Expected is not a Number"); 49168 if (!isA("Number", precision)) 49169 throw new Error("Precision is not a Number"); 49170 super(sample2), this.inverse = inverse, this.precision = precision; 49171 } 49172 asymmetricMatch(other) { 49173 if (!isA("Number", other)) 49174 return !1; 49175 let result = !1; 49176 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; 49177 } 49178 toString() { 49179 return `Number${this.inverse ? "Not" : ""}CloseTo`; 49180 } 49181 getExpectedType() { 49182 return "number"; 49183 } 49184 toAsymmetricMatcher() { 49185 return [ 49186 this.toString(), 49187 this.sample, 49188 `(${pluralize("digit", this.precision)})` 49189 ].join(" "); 49190 } 49191}, JestAsymmetricMatchers = (chai, utils) => { 49192 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 = { 49193 stringContaining: (expected) => new StringContaining(expected, !0), 49194 objectContaining: (expected) => new ObjectContaining(expected, !0), 49195 arrayContaining: (expected) => new ArrayContaining(expected, !0), 49196 stringMatching: (expected) => new StringMatching(expected, !0), 49197 closeTo: (expected, precision) => new CloseTo(expected, precision, !0) 49198 }; 49199}; 49200function createAssertionMessage(util, assertion, hasArgs) { 49201 let not = util.flag(assertion, "negate") ? "not." : "", name = `${util.flag(assertion, "_name")}(${hasArgs ? "expected" : ""})`, promiseName = util.flag(assertion, "promise"); 49202 return `expect(actual)${promiseName ? `.${promiseName}` : ""}.${not}${name}`; 49203} 49204function recordAsyncExpect(_test, promise, assertion, error) { 49205 let test3 = _test; 49206 if (test3 && promise instanceof Promise) { 49207 promise = promise.finally(() => { 49208 if (!test3.promises) 49209 return; 49210 let index4 = test3.promises.indexOf(promise); 49211 index4 !== -1 && test3.promises.splice(index4, 1); 49212 }), test3.promises || (test3.promises = []), test3.promises.push(promise); 49213 let resolved = !1; 49214 return test3.onFinished ?? (test3.onFinished = []), test3.onFinished.push(() => { 49215 if (!resolved) { 49216 var _vitest_worker__; 49217 let stack = (((_vitest_worker__ = globalThis.__vitest_worker__) === null || _vitest_worker__ === void 0 ? void 0 : _vitest_worker__.onFilterStackTrace) || ((s3) => s3 || ""))(error.stack); 49218 console.warn([ 49219 `Promise returned by \`${assertion}\` was not awaited. `, 49220 "Vitest currently auto-awaits hanging assertions at the end of the test, but this will cause the test to fail in Vitest 3. ", 49221 `Please remember to await the assertion. 49222`, 49223 stack 49224 ].join("")); 49225 } 49226 }), { 49227 then(onFulfilled, onRejected) { 49228 return resolved = !0, promise.then(onFulfilled, onRejected); 49229 }, 49230 catch(onRejected) { 49231 return promise.catch(onRejected); 49232 }, 49233 finally(onFinally) { 49234 return promise.finally(onFinally); 49235 }, 49236 [Symbol.toStringTag]: "Promise" 49237 }; 49238 } 49239 return promise; 49240} 49241function handleTestError(test3, err) { 49242 var _test$result; 49243 test3.result || (test3.result = { state: "fail" }), test3.result.state = "fail", (_test$result = test3.result).errors || (_test$result.errors = []), test3.result.errors.push(processError(err)); 49244} 49245function wrapAssertion(utils, name, fn4) { 49246 return function(...args) { 49247 if (name !== "withTest" && utils.flag(this, "_name", name), !utils.flag(this, "soft")) 49248 return fn4.apply(this, args); 49249 let test3 = utils.flag(this, "vitest-test"); 49250 if (!test3) 49251 throw new Error("expect.soft() can only be used inside a test"); 49252 try { 49253 let result = fn4.apply(this, args); 49254 return result && typeof result == "object" && typeof result.then == "function" ? result.then(noop2, (err) => { 49255 handleTestError(test3, err); 49256 }) : result; 49257 } catch (err) { 49258 handleTestError(test3, err); 49259 } 49260 }; 49261} 49262var JestChaiExpect = (chai, utils) => { 49263 let { AssertionError: AssertionError2 } = chai, customTesters = getCustomEqualityTesters(); 49264 function def(name, fn4) { 49265 let addMethod2 = (n) => { 49266 let softWrapper = wrapAssertion(utils, n, fn4); 49267 utils.addMethod(chai.Assertion.prototype, n, softWrapper), utils.addMethod(globalThis[JEST_MATCHERS_OBJECT].matchers, n, softWrapper); 49268 }; 49269 Array.isArray(name) ? name.forEach((n) => addMethod2(n)) : addMethod2(name); 49270 } 49271 [ 49272 "throw", 49273 "throws", 49274 "Throw" 49275 ].forEach((m3) => { 49276 utils.overwriteMethod(chai.Assertion.prototype, m3, (_super) => function(...args) { 49277 let promise = utils.flag(this, "promise"), object = utils.flag(this, "object"), isNot = utils.flag(this, "negate"); 49278 if (promise === "rejects") 49279 utils.flag(this, "object", () => { 49280 throw object; 49281 }); 49282 else if (promise === "resolves" && typeof object != "function") { 49283 if (isNot) 49284 return; 49285 { 49286 let message = utils.flag(this, "message") || "expected promise to throw an error, but it didn't", error = { showDiff: !1 }; 49287 throw new AssertionError2(message, error, utils.flag(this, "ssfi")); 49288 } 49289 } 49290 _super.apply(this, args); 49291 }); 49292 }), def("withTest", function(test3) { 49293 return utils.flag(this, "vitest-test", test3), this; 49294 }), def("toEqual", function(expected) { 49295 let actual = utils.flag(this, "object"), equal = equals(actual, expected, [...customTesters, iterableEquality]); 49296 return this.assert(equal, "expected #{this} to deeply equal #{exp}", "expected #{this} to not deeply equal #{exp}", expected, actual); 49297 }), def("toStrictEqual", function(expected) { 49298 let obj = utils.flag(this, "object"), equal = equals(obj, expected, [ 49299 ...customTesters, 49300 iterableEquality, 49301 typeEquality, 49302 sparseArrayEquality, 49303 arrayBufferEquality 49304 ], !0); 49305 return this.assert(equal, "expected #{this} to strictly equal #{exp}", "expected #{this} to not strictly equal #{exp}", expected, obj); 49306 }), def("toBe", function(expected) { 49307 let actual = this._obj, pass = Object.is(actual, expected), deepEqualityName = ""; 49308 return pass || (equals(actual, expected, [ 49309 ...customTesters, 49310 iterableEquality, 49311 typeEquality, 49312 sparseArrayEquality, 49313 arrayBufferEquality 49314 ], !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); 49315 }), def("toMatchObject", function(expected) { 49316 let actual = this._obj, pass = equals(actual, expected, [ 49317 ...customTesters, 49318 iterableEquality, 49319 subsetEquality 49320 ]), isNot = utils.flag(this, "negate"), { subset: actualSubset, stripped } = getObjectSubset(actual, expected, customTesters); 49321 if (pass && isNot || !pass && !isNot) { 49322 let msg = utils.getMessage(this, [ 49323 pass, 49324 "expected #{this} to match object #{exp}", 49325 "expected #{this} to not match object #{exp}", 49326 expected, 49327 actualSubset, 49328 !1 49329 ]), message = stripped === 0 ? msg : `${msg} 49330(${stripped} matching ${stripped === 1 ? "property" : "properties"} omitted from actual)`; 49331 throw new AssertionError2(message, { 49332 showDiff: !0, 49333 expected, 49334 actual: actualSubset 49335 }); 49336 } 49337 }), def("toMatch", function(expected) { 49338 let actual = this._obj; 49339 if (typeof actual != "string") 49340 throw new TypeError(`.toMatch() expects to receive a string, but got ${typeof actual}`); 49341 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); 49342 }), def("toContain", function(item) { 49343 let actual = this._obj; 49344 if (typeof Node < "u" && actual instanceof Node) { 49345 if (!(item instanceof Node)) 49346 throw new TypeError(`toContain() expected a DOM node as the argument, but got ${typeof item}`); 49347 return this.assert(actual.contains(item), "expected #{this} to contain element #{exp}", "expected #{this} not to contain element #{exp}", item, actual); 49348 } 49349 if (typeof DOMTokenList < "u" && actual instanceof DOMTokenList) { 49350 assertTypes(item, "class name", ["string"]); 49351 let expectedClassList = utils.flag(this, "negate") ? actual.value.replace(item, "").trim() : `${actual.value} ${item}`; 49352 return this.assert(actual.contains(item), `expected "${actual.value}" to contain "${item}"`, `expected "${actual.value}" not to contain "${item}"`, expectedClassList, actual.value); 49353 } 49354 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)); 49355 }), def("toContainEqual", function(expected) { 49356 let obj = utils.flag(this, "object"), index4 = Array.from(obj).findIndex((item) => equals(item, expected, customTesters)); 49357 this.assert(index4 !== -1, "expected #{this} to deep equally contain #{exp}", "expected #{this} to not deep equally contain #{exp}", expected); 49358 }), def("toBeTruthy", function() { 49359 let obj = utils.flag(this, "object"); 49360 this.assert(!!obj, "expected #{this} to be truthy", "expected #{this} to not be truthy", !0, obj); 49361 }), def("toBeFalsy", function() { 49362 let obj = utils.flag(this, "object"); 49363 this.assert(!obj, "expected #{this} to be falsy", "expected #{this} to not be falsy", !1, obj); 49364 }), def("toBeGreaterThan", function(expected) { 49365 let actual = this._obj; 49366 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); 49367 }), def("toBeGreaterThanOrEqual", function(expected) { 49368 let actual = this._obj; 49369 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); 49370 }), def("toBeLessThan", function(expected) { 49371 let actual = this._obj; 49372 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); 49373 }), def("toBeLessThanOrEqual", function(expected) { 49374 let actual = this._obj; 49375 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); 49376 }), def("toBeNaN", function() { 49377 let obj = utils.flag(this, "object"); 49378 this.assert(Number.isNaN(obj), "expected #{this} to be NaN", "expected #{this} not to be NaN", Number.NaN, obj); 49379 }), def("toBeUndefined", function() { 49380 let obj = utils.flag(this, "object"); 49381 this.assert(obj === void 0, "expected #{this} to be undefined", "expected #{this} not to be undefined", void 0, obj); 49382 }), def("toBeNull", function() { 49383 let obj = utils.flag(this, "object"); 49384 this.assert(obj === null, "expected #{this} to be null", "expected #{this} not to be null", null, obj); 49385 }), def("toBeDefined", function() { 49386 let obj = utils.flag(this, "object"); 49387 this.assert(typeof obj < "u", "expected #{this} to be defined", "expected #{this} to be undefined", obj); 49388 }), def("toBeTypeOf", function(expected) { 49389 let actual = typeof this._obj, equal = expected === actual; 49390 return this.assert(equal, "expected #{this} to be type of #{exp}", "expected #{this} not to be type of #{exp}", expected, actual); 49391 }), def("toBeInstanceOf", function(obj) { 49392 return this.instanceOf(obj); 49393 }), def("toHaveLength", function(length2) { 49394 return this.have.length(length2); 49395 }), def("toHaveProperty", function(...args) { 49396 Array.isArray(args[0]) && (args[0] = args[0].map((key) => String(key).replace(/([.[\]])/g, "\\$1")).join(".")); 49397 let actual = this._obj, [propertyName, expected] = args, getValue2 = () => Object.prototype.hasOwnProperty.call(actual, propertyName) ? { 49398 value: actual[propertyName], 49399 exists: !0 49400 } : 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)}`; 49401 return this.assert(pass, `expected #{this} to have property "${propertyName}"${valueString}`, `expected #{this} to not have property "${propertyName}"${valueString}`, expected, exists ? value : void 0); 49402 }), def("toBeCloseTo", function(received, precision = 2) { 49403 let expected = this._obj, pass = !1, expectedDiff2 = 0, receivedDiff = 0; 49404 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); 49405 }); 49406 function assertIsMock(assertion) { 49407 if (!isMockFunction2(assertion._obj)) 49408 throw new TypeError(`${utils.inspect(assertion._obj)} is not a spy or a call to a spy!`); 49409 } 49410 function getSpy(assertion) { 49411 return assertIsMock(assertion), assertion._obj; 49412 } 49413 def(["toHaveBeenCalledTimes", "toBeCalledTimes"], function(number) { 49414 let spy = getSpy(this), spyName = spy.getMockName(), callCount = spy.mock.calls.length; 49415 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); 49416 }), def("toHaveBeenCalledOnce", function() { 49417 let spy = getSpy(this), spyName = spy.getMockName(), callCount = spy.mock.calls.length; 49418 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); 49419 }), def(["toHaveBeenCalled", "toBeCalled"], function() { 49420 let spy = getSpy(this), spyName = spy.getMockName(), callCount = spy.mock.calls.length, called = callCount > 0, isNot = utils.flag(this, "negate"), msg = utils.getMessage(this, [ 49421 called, 49422 `expected "${spyName}" to be called at least once`, 49423 `expected "${spyName}" to not be called at all, but actually been called ${callCount} times`, 49424 !0, 49425 called 49426 ]); 49427 if (called && isNot && (msg = formatCalls(spy, msg)), called && isNot || !called && !isNot) 49428 throw new AssertionError2(msg); 49429 }); 49430 function equalsArgumentArray(a3, b) { 49431 return a3.length === b.length && a3.every((aItem, i) => equals(aItem, b[i], [...customTesters, iterableEquality])); 49432 } 49433 def(["toHaveBeenCalledWith", "toBeCalledWith"], function(...args) { 49434 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, [ 49435 pass, 49436 `expected "${spyName}" to be called with arguments: #{exp}`, 49437 `expected "${spyName}" to not be called with arguments: #{exp}`, 49438 args 49439 ]); 49440 if (pass && isNot || !pass && !isNot) 49441 throw new AssertionError2(formatCalls(spy, msg, args)); 49442 }), def("toHaveBeenCalledExactlyOnceWith", function(...args) { 49443 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, [ 49444 pass, 49445 `expected "${spyName}" to be called once with arguments: #{exp}`, 49446 `expected "${spyName}" to not be called once with arguments: #{exp}`, 49447 args 49448 ]); 49449 if (pass && isNot || !pass && !isNot) 49450 throw new AssertionError2(formatCalls(spy, msg, args)); 49451 }), def(["toHaveBeenNthCalledWith", "nthCalledWith"], function(times, ...args) { 49452 let spy = getSpy(this), spyName = spy.getMockName(), nthCall = spy.mock.calls[times - 1], callCount = spy.mock.calls.length, isCalled = times <= callCount; 49453 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); 49454 }), def(["toHaveBeenLastCalledWith", "lastCalledWith"], function(...args) { 49455 let spy = getSpy(this), spyName = spy.getMockName(), lastCall = spy.mock.calls[spy.mock.calls.length - 1]; 49456 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); 49457 }); 49458 function isSpyCalledBeforeAnotherSpy(beforeSpy, afterSpy, failIfNoFirstInvocation) { 49459 let beforeInvocationCallOrder = beforeSpy.mock.invocationCallOrder, afterInvocationCallOrder = afterSpy.mock.invocationCallOrder; 49460 return beforeInvocationCallOrder.length === 0 ? !failIfNoFirstInvocation : afterInvocationCallOrder.length === 0 ? !1 : beforeInvocationCallOrder[0] < afterInvocationCallOrder[0]; 49461 } 49462 def(["toHaveBeenCalledBefore"], function(resultSpy, failIfNoFirstInvocation = !0) { 49463 let expectSpy = getSpy(this); 49464 if (!isMockFunction2(resultSpy)) 49465 throw new TypeError(`${utils.inspect(resultSpy)} is not a spy or a call to a spy`); 49466 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); 49467 }), def(["toHaveBeenCalledAfter"], function(resultSpy, failIfNoFirstInvocation = !0) { 49468 let expectSpy = getSpy(this); 49469 if (!isMockFunction2(resultSpy)) 49470 throw new TypeError(`${utils.inspect(resultSpy)} is not a spy or a call to a spy`); 49471 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); 49472 }), def(["toThrow", "toThrowError"], function(expected) { 49473 if (typeof expected == "string" || typeof expected > "u" || expected instanceof RegExp) 49474 return this.throws(expected === "" ? /^$/ : expected); 49475 let obj = this._obj, promise = utils.flag(this, "promise"), isNot = utils.flag(this, "negate"), thrown = null; 49476 if (promise === "rejects") 49477 thrown = obj; 49478 else if (promise === "resolves" && typeof obj != "function") { 49479 if (isNot) 49480 return; 49481 { 49482 let message = utils.flag(this, "message") || "expected promise to throw an error, but it didn't", error = { showDiff: !1 }; 49483 throw new AssertionError2(message, error, utils.flag(this, "ssfi")); 49484 } 49485 } else { 49486 let isThrow = !1; 49487 try { 49488 obj(); 49489 } catch (err) { 49490 isThrow = !0, thrown = err; 49491 } 49492 if (!isThrow && !isNot) { 49493 let message = utils.flag(this, "message") || "expected function to throw an error, but it didn't", error = { showDiff: !1 }; 49494 throw new AssertionError2(message, error, utils.flag(this, "ssfi")); 49495 } 49496 } 49497 if (typeof expected == "function") { 49498 let name = expected.name || expected.prototype.constructor.name; 49499 return this.assert(thrown && thrown instanceof expected, `expected error to be instance of ${name}`, `expected error not to be instance of ${name}`, expected, thrown); 49500 } 49501 if (expected instanceof Error) { 49502 let equal = equals(thrown, expected, [...customTesters, iterableEquality]); 49503 return this.assert(equal, "expected a thrown error to be #{exp}", "expected a thrown error not to be #{exp}", expected, thrown); 49504 } 49505 if (typeof expected == "object" && "asymmetricMatch" in expected && typeof expected.asymmetricMatch == "function") { 49506 let matcher = expected; 49507 return this.assert(thrown && matcher.asymmetricMatch(thrown), "expected error to match asymmetric matcher", "expected error not to match asymmetric matcher", matcher, thrown); 49508 } 49509 throw new Error(`"toThrow" expects string, RegExp, function, Error instance or asymmetric matcher, got "${typeof expected}"`); 49510 }), [{ 49511 name: "toHaveResolved", 49512 condition: (spy) => spy.mock.settledResults.length > 0 && spy.mock.settledResults.some(({ type: type5 }) => type5 === "fulfilled"), 49513 action: "resolved" 49514 }, { 49515 name: ["toHaveReturned", "toReturn"], 49516 condition: (spy) => spy.mock.calls.length > 0 && spy.mock.results.some(({ type: type5 }) => type5 !== "throw"), 49517 action: "called" 49518 }].forEach(({ name, condition, action: action2 }) => { 49519 def(name, function() { 49520 let spy = getSpy(this), spyName = spy.getMockName(), pass = condition(spy); 49521 this.assert(pass, `expected "${spyName}" to be successfully ${action2} at least once`, `expected "${spyName}" to not be successfully ${action2}`, pass, !pass, !1); 49522 }); 49523 }), [{ 49524 name: "toHaveResolvedTimes", 49525 condition: (spy, times) => spy.mock.settledResults.reduce((s3, { type: type5 }) => type5 === "fulfilled" ? ++s3 : s3, 0) === times, 49526 action: "resolved" 49527 }, { 49528 name: ["toHaveReturnedTimes", "toReturnTimes"], 49529 condition: (spy, times) => spy.mock.results.reduce((s3, { type: type5 }) => type5 === "throw" ? s3 : ++s3, 0) === times, 49530 action: "called" 49531 }].forEach(({ name, condition, action: action2 }) => { 49532 def(name, function(times) { 49533 let spy = getSpy(this), spyName = spy.getMockName(), pass = condition(spy, times); 49534 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); 49535 }); 49536 }), [{ 49537 name: "toHaveResolvedWith", 49538 condition: (spy, value) => spy.mock.settledResults.some(({ type: type5, value: result }) => type5 === "fulfilled" && equals(value, result)), 49539 action: "resolve" 49540 }, { 49541 name: ["toHaveReturnedWith", "toReturnWith"], 49542 condition: (spy, value) => spy.mock.results.some(({ type: type5, value: result }) => type5 === "return" && equals(value, result)), 49543 action: "return" 49544 }].forEach(({ name, condition, action: action2 }) => { 49545 def(name, function(value) { 49546 let spy = getSpy(this), pass = condition(spy, value), isNot = utils.flag(this, "negate"); 49547 if (pass && isNot || !pass && !isNot) { 49548 let spyName = spy.getMockName(), msg = utils.getMessage(this, [ 49549 pass, 49550 `expected "${spyName}" to ${action2} with: #{exp} at least once`, 49551 `expected "${spyName}" to not ${action2} with: #{exp}`, 49552 value 49553 ]), results = action2 === "return" ? spy.mock.results : spy.mock.settledResults; 49554 throw new AssertionError2(formatReturns(spy, results, msg, value)); 49555 } 49556 }); 49557 }), [{ 49558 name: "toHaveLastResolvedWith", 49559 condition: (spy, value) => { 49560 let result = spy.mock.settledResults[spy.mock.settledResults.length - 1]; 49561 return result && result.type === "fulfilled" && equals(result.value, value); 49562 }, 49563 action: "resolve" 49564 }, { 49565 name: ["toHaveLastReturnedWith", "lastReturnedWith"], 49566 condition: (spy, value) => { 49567 let result = spy.mock.results[spy.mock.results.length - 1]; 49568 return result && result.type === "return" && equals(result.value, value); 49569 }, 49570 action: "return" 49571 }].forEach(({ name, condition, action: action2 }) => { 49572 def(name, function(value) { 49573 let spy = getSpy(this), results = action2 === "return" ? spy.mock.results : spy.mock.settledResults, result = results[results.length - 1], spyName = spy.getMockName(); 49574 this.assert(condition(spy, value), `expected last "${spyName}" call to ${action2} #{exp}`, `expected last "${spyName}" call to not ${action2} #{exp}`, value, result?.value); 49575 }); 49576 }), [{ 49577 name: "toHaveNthResolvedWith", 49578 condition: (spy, index4, value) => { 49579 let result = spy.mock.settledResults[index4 - 1]; 49580 return result && result.type === "fulfilled" && equals(result.value, value); 49581 }, 49582 action: "resolve" 49583 }, { 49584 name: ["toHaveNthReturnedWith", "nthReturnedWith"], 49585 condition: (spy, index4, value) => { 49586 let result = spy.mock.results[index4 - 1]; 49587 return result && result.type === "return" && equals(result.value, value); 49588 }, 49589 action: "return" 49590 }].forEach(({ name, condition, action: action2 }) => { 49591 def(name, function(nthCall, value) { 49592 let spy = getSpy(this), spyName = spy.getMockName(), result = (action2 === "return" ? spy.mock.results : spy.mock.settledResults)[nthCall - 1], ordinalCall = `${ordinalOf(nthCall)} call`; 49593 this.assert(condition(spy, nthCall, value), `expected ${ordinalCall} "${spyName}" call to ${action2} #{exp}`, `expected ${ordinalCall} "${spyName}" call to not ${action2} #{exp}`, value, result?.value); 49594 }); 49595 }), def("withContext", function(context) { 49596 for (let key in context) 49597 utils.flag(this, key, context[key]); 49598 return this; 49599 }), utils.addProperty(chai.Assertion.prototype, "resolves", function() { 49600 let error = new Error("resolves"); 49601 utils.flag(this, "promise", "resolves"), utils.flag(this, "error", error); 49602 let test3 = utils.flag(this, "vitest-test"), obj = utils.flag(this, "object"); 49603 if (utils.flag(this, "poll")) 49604 throw new SyntaxError("expect.poll() is not supported in combination with .resolves"); 49605 if (typeof obj?.then != "function") 49606 throw new TypeError(`You must provide a Promise to expect() when using .resolves, not '${typeof obj}'.`); 49607 let proxy = new Proxy(this, { get: (target, key, receiver) => { 49608 let result = Reflect.get(target, key, receiver); 49609 return typeof result != "function" ? result instanceof chai.Assertion ? proxy : result : (...args) => { 49610 utils.flag(this, "_name", key); 49611 let promise = obj.then((value) => (utils.flag(this, "object", value), result.call(this, ...args)), (err) => { 49612 let _error = new AssertionError2(`promise rejected "${utils.inspect(err)}" instead of resolving`, { showDiff: !1 }); 49613 throw _error.cause = err, _error.stack = error.stack.replace(error.message, _error.message), _error; 49614 }); 49615 return recordAsyncExpect(test3, promise, createAssertionMessage(utils, this, !!args.length), error); 49616 }; 49617 } }); 49618 return proxy; 49619 }), utils.addProperty(chai.Assertion.prototype, "rejects", function() { 49620 let error = new Error("rejects"); 49621 utils.flag(this, "promise", "rejects"), utils.flag(this, "error", error); 49622 let test3 = utils.flag(this, "vitest-test"), obj = utils.flag(this, "object"), wrapper = typeof obj == "function" ? obj() : obj; 49623 if (utils.flag(this, "poll")) 49624 throw new SyntaxError("expect.poll() is not supported in combination with .rejects"); 49625 if (typeof wrapper?.then != "function") 49626 throw new TypeError(`You must provide a Promise to expect() when using .rejects, not '${typeof wrapper}'.`); 49627 let proxy = new Proxy(this, { get: (target, key, receiver) => { 49628 let result = Reflect.get(target, key, receiver); 49629 return typeof result != "function" ? result instanceof chai.Assertion ? proxy : result : (...args) => { 49630 utils.flag(this, "_name", key); 49631 let promise = wrapper.then((value) => { 49632 let _error = new AssertionError2(`promise resolved "${utils.inspect(value)}" instead of rejecting`, { 49633 showDiff: !0, 49634 expected: new Error("rejected promise"), 49635 actual: value 49636 }); 49637 throw _error.stack = error.stack.replace(error.message, _error.message), _error; 49638 }, (err) => (utils.flag(this, "object", err), result.call(this, ...args))); 49639 return recordAsyncExpect(test3, promise, createAssertionMessage(utils, this, !!args.length), error); 49640 }; 49641 } }); 49642 return proxy; 49643 }); 49644}; 49645function ordinalOf(i) { 49646 let j = i % 10, k = i % 100; 49647 return j === 1 && k !== 11 ? `${i}st` : j === 2 && k !== 12 ? `${i}nd` : j === 3 && k !== 13 ? `${i}rd` : `${i}th`; 49648} 49649function formatCalls(spy, msg, showActualCall) { 49650 return spy.mock.calls.length && (msg += s2.gray(` 49651 49652Received: 49653 49654${spy.mock.calls.map((callArg, i) => { 49655 let methodCall = s2.bold(` ${ordinalOf(i + 1)} ${spy.getMockName()} call: 49656 49657`); 49658 return showActualCall ? methodCall += diff(showActualCall, callArg, { omitAnnotationLines: !0 }) : methodCall += stringify5(callArg).split(` 49659`).map((line2) => ` ${line2}`).join(` 49660`), methodCall += ` 49661`, methodCall; 49662 }).join(` 49663`)}`)), msg += s2.gray(` 49664 49665Number of calls: ${s2.bold(spy.mock.calls.length)} 49666`), msg; 49667} 49668function formatReturns(spy, results, msg, showActualReturn) { 49669 return results.length && (msg += s2.gray(` 49670 49671Received: 49672 49673${results.map((callReturn, i) => { 49674 let methodCall = s2.bold(` ${ordinalOf(i + 1)} ${spy.getMockName()} call return: 49675 49676`); 49677 return showActualReturn ? methodCall += diff(showActualReturn, callReturn.value, { omitAnnotationLines: !0 }) : methodCall += stringify5(callReturn).split(` 49678`).map((line2) => ` ${line2}`).join(` 49679`), methodCall += ` 49680`, methodCall; 49681 }).join(` 49682`)}`)), msg += s2.gray(` 49683 49684Number of calls: ${s2.bold(spy.mock.calls.length)} 49685`), msg; 49686} 49687function getMatcherState(assertion, expect4) { 49688 let obj = assertion._obj, isNot = utils_exports.flag(assertion, "negate"), promise = utils_exports.flag(assertion, "promise") || "", jestUtils = { 49689 ...getMatcherUtils(), 49690 diff, 49691 stringify: stringify5, 49692 iterableEquality, 49693 subsetEquality 49694 }; 49695 return { 49696 state: { 49697 ...getState(expect4), 49698 customTesters: getCustomEqualityTesters(), 49699 isNot, 49700 utils: jestUtils, 49701 promise, 49702 equals, 49703 suppressedErrors: [], 49704 soft: utils_exports.flag(assertion, "soft"), 49705 poll: utils_exports.flag(assertion, "poll") 49706 }, 49707 isNot, 49708 obj 49709 }; 49710} 49711var JestExtendError = class extends Error { 49712 constructor(message, actual, expected) { 49713 super(message), this.actual = actual, this.expected = expected; 49714 } 49715}; 49716function JestExtendPlugin(c, expect4, matchers) { 49717 return (_, utils) => { 49718 Object.entries(matchers).forEach(([expectAssertionName, expectAssertion]) => { 49719 function expectWrapper(...args) { 49720 let { state: state3, isNot, obj } = getMatcherState(this, expect4), result = expectAssertion.call(state3, obj, ...args); 49721 if (result && typeof result == "object" && typeof result.then == "function") 49722 return result.then(({ pass: pass2, message: message2, actual: actual2, expected: expected2 }) => { 49723 if (pass2 && isNot || !pass2 && !isNot) 49724 throw new JestExtendError(message2(), actual2, expected2); 49725 }); 49726 let { pass, message, actual, expected } = result; 49727 if (pass && isNot || !pass && !isNot) 49728 throw new JestExtendError(message(), actual, expected); 49729 } 49730 let softWrapper = wrapAssertion(utils, expectAssertionName, expectWrapper); 49731 utils.addMethod(globalThis[JEST_MATCHERS_OBJECT].matchers, expectAssertionName, softWrapper), utils.addMethod(c.Assertion.prototype, expectAssertionName, softWrapper); 49732 class CustomMatcher extends AsymmetricMatcher3 { 49733 constructor(inverse = !1, ...sample2) { 49734 super(sample2, inverse); 49735 } 49736 asymmetricMatch(other) { 49737 let { pass } = expectAssertion.call(this.getMatcherContext(expect4), other, ...this.sample); 49738 return this.inverse ? !pass : pass; 49739 } 49740 toString() { 49741 return `${this.inverse ? "not." : ""}${expectAssertionName}`; 49742 } 49743 getExpectedType() { 49744 return "any"; 49745 } 49746 toAsymmetricMatcher() { 49747 return `${this.toString()}<${this.sample.map((item) => stringify5(item)).join(", ")}>`; 49748 } 49749 } 49750 let customMatcher = (...sample2) => new CustomMatcher(!1, ...sample2); 49751 Object.defineProperty(expect4, expectAssertionName, { 49752 configurable: !0, 49753 enumerable: !0, 49754 value: customMatcher, 49755 writable: !0 49756 }), Object.defineProperty(expect4.not, expectAssertionName, { 49757 configurable: !0, 49758 enumerable: !0, 49759 value: (...sample2) => new CustomMatcher(!0, ...sample2), 49760 writable: !0 49761 }), Object.defineProperty(globalThis[ASYMMETRIC_MATCHERS_OBJECT], expectAssertionName, { 49762 configurable: !0, 49763 enumerable: !0, 49764 value: customMatcher, 49765 writable: !0 49766 }); 49767 }); 49768 }; 49769} 49770var JestExtend = (chai, utils) => { 49771 utils.addMethod(chai.expect, "extend", (expect4, expects) => { 49772 use2(JestExtendPlugin(chai, expect4, expects)); 49773 }); 49774}; 49775
vendor: 1,878 bytes, lines 49776-49816
49776// src/test/expect.ts 49777function createExpect() { 49778 use2(JestExtend), use2(JestChaiExpect), use2(JestAsymmetricMatchers); 49779 let expect4 = ((value, message) => { 49780 let { assertionCalls } = getState(expect4); 49781 return setState({ assertionCalls: assertionCalls + 1, soft: !1 }, expect4), expect(value, message); 49782 }); 49783 Object.assign(expect4, expect), expect4.getState = () => getState(expect4), expect4.setState = (state3) => setState(state3, expect4), expect4.extend = (expects) => expect.extend(expect4, expects), expect4.soft = (...args) => { 49784 let assert3 = expect4(...args); 49785 return expect4.setState({ 49786 soft: !0 49787 }), assert3; 49788 }, expect4.extend(customMatchers), expect4.unreachable = (message) => { 49789 assert.fail(`expected${message ? ` "${message}" ` : " "}not to be reached`); 49790 }; 49791 function assertions(expected) { 49792 let errorGen = () => new Error( 49793 `expected number of assertions to be ${expected}, but got ${expect4.getState().assertionCalls}` 49794 ); 49795 "captureStackTrace" in Error && typeof Error.captureStackTrace == "function" && Error.captureStackTrace(errorGen(), assertions), expect4.setState({ 49796 expectedAssertionsNumber: expected, 49797 expectedAssertionsNumberErrorGen: errorGen 49798 }); 49799 } 49800 function hasAssertions() { 49801 let error = new Error("expected any number of assertion, but got none"); 49802 "captureStackTrace" in Error && typeof Error.captureStackTrace == "function" && Error.captureStackTrace(error, hasAssertions), expect4.setState({ 49803 isExpectingAssertions: !0, 49804 isExpectingAssertionsError: error 49805 }); 49806 } 49807 return setState( 49808 { 49809 // this should also add "snapshotState" that is added conditionally 49810 assertionCalls: 0, 49811 isExpectingAssertions: !1, 49812 isExpectingAssertionsError: null, 49813 expectedAssertionsNumber: null, 49814 expectedAssertionsNumberErrorGen: null 49815 }, 49816 expect4
vendor: 315 bytes, lines 49817-49825
49817 ), utils_exports.addMethod(expect4, "assertions", assertions), utils_exports.addMethod(expect4, "hasAssertions", hasAssertions), expect4.extend(matchers_exports), expect4; 49818} 49819var expect2 = createExpect(); 49820Object.defineProperty(globalThis, GLOBAL_EXPECT, { 49821 value: expect2, 49822 writable: !0, 49823 configurable: !0 49824}); 49825
vendor: 346 bytes, lines 49826-49834
49826// ../../node_modules/tinyspy/dist/index.js 49827function f3(e, t, n) { 49828 Object.defineProperty(e, t, n); 49829} 49830var u = Symbol.for("tinyspy:spy"); 49831var P2 = (e) => { 49832 e.called = !1, e.callCount = 0, e.calls = [], e.results = [], e.resolves = [], e.next = []; 49833}, K = (e) => (f3(e, u, { value: { reset: () => P2(e[u]) } }), e[u]), T = (e) => e[u] || K(e); 49834
vendor: 1,378 bytes, lines 49835-49870
49835// src/test/spy.ts 49836var moduleMockSpies = globalThis.__STORYBOOK_MODULE_MOCK_SPIES__ ??= /* @__PURE__ */ new Set(), listeners = /* @__PURE__ */ new Set(); 49837function onMockCall(callback) { 49838 return listeners.add(callback), () => void listeners.delete(callback); 49839} 49840var spyOn2 = (...args) => { 49841 let mock = spyOn(...args); 49842 return reactiveMock(mock); 49843}; 49844function fn2(implementation) { 49845 let mock = implementation ? fn(implementation) : fn(); 49846 return reactiveMock(mock); 49847} 49848function reactiveMock(mock) { 49849 let reactive = listenWhenCalled(mock), originalMockImplementation = reactive.mockImplementation.bind(null); 49850 return reactive.mockImplementation = (fn4) => listenWhenCalled(originalMockImplementation(fn4)), reactive; 49851} 49852function listenWhenCalled(mock) { 49853 let state3 = T(mock), impl = state3.impl; 49854 return state3.willCall(function(...args) { 49855 return listeners.forEach((listener) => listener(mock, args)), impl?.apply(this, args); 49856 }), mock; 49857} 49858function clearAllMocks() { 49859 mocks.forEach((spy) => spy.mockClear()), moduleMockSpies.forEach((spy) => spy.mockClear()); 49860} 49861function resetAllMocks() { 49862 mocks.forEach((spy) => spy.mockReset()), moduleMockSpies.forEach((spy) => spy.mockReset()); 49863} 49864function restoreAllMocks() { 49865 mocks.forEach((spy) => spy.mockRestore()), moduleMockSpies.forEach((spy) => spy.mockClear()); 49866} 49867function mocked(item, _options = {}) { 49868 return item; 49869} 49870
vendor: 3,585 bytes, lines 49871-49954
49871// ../../node_modules/@testing-library/dom/dist/@testing-library/dom.esm.js 49872var dom_esm_exports = {}; 49873__export(dom_esm_exports, { 49874 buildQueries: () => buildQueries, 49875 configure: () => configure, 49876 createEvent: () => createEvent, 49877 findAllByAltText: () => findAllByAltText, 49878 findAllByDisplayValue: () => findAllByDisplayValue, 49879 findAllByLabelText: () => findAllByLabelText, 49880 findAllByPlaceholderText: () => findAllByPlaceholderText, 49881 findAllByRole: () => findAllByRole, 49882 findAllByTestId: () => findAllByTestId, 49883 findAllByText: () => findAllByText, 49884 findAllByTitle: () => findAllByTitle, 49885 findByAltText: () => findByAltText, 49886 findByDisplayValue: () => findByDisplayValue, 49887 findByLabelText: () => findByLabelText, 49888 findByPlaceholderText: () => findByPlaceholderText, 49889 findByRole: () => findByRole, 49890 findByTestId: () => findByTestId, 49891 findByText: () => findByText, 49892 findByTitle: () => findByTitle, 49893 fireEvent: () => fireEvent, 49894 getAllByAltText: () => getAllByAltText, 49895 getAllByDisplayValue: () => getAllByDisplayValue, 49896 getAllByLabelText: () => getAllByLabelTextWithSuggestions, 49897 getAllByPlaceholderText: () => getAllByPlaceholderText, 49898 getAllByRole: () => getAllByRole, 49899 getAllByTestId: () => getAllByTestId, 49900 getAllByText: () => getAllByText, 49901 getAllByTitle: () => getAllByTitle, 49902 getByAltText: () => getByAltText, 49903 getByDisplayValue: () => getByDisplayValue, 49904 getByLabelText: () => getByLabelTextWithSuggestions, 49905 getByPlaceholderText: () => getByPlaceholderText, 49906 getByRole: () => getByRole, 49907 getByTestId: () => getByTestId, 49908 getByText: () => getByText, 49909 getByTitle: () => getByTitle, 49910 getConfig: () => getConfig2, 49911 getDefaultNormalizer: () => getDefaultNormalizer, 49912 getElementError: () => getElementError, 49913 getMultipleElementsFoundError: () => getMultipleElementsFoundError, 49914 getNodeText: () => getNodeText, 49915 getQueriesForElement: () => getQueriesForElement, 49916 getRoles: () => getRoles, 49917 getSuggestedQuery: () => getSuggestedQuery, 49918 isInaccessible: () => isInaccessible, 49919 logDOM: () => logDOM, 49920 logRoles: () => logRoles, 49921 makeFindQuery: () => makeFindQuery, 49922 makeGetAllQuery: () => makeGetAllQuery, 49923 makeSingleQuery: () => makeSingleQuery, 49924 prettyDOM: () => prettyDOM, 49925 prettyFormat: () => prettyFormat, 49926 queries: () => queries, 49927 queryAllByAltText: () => queryAllByAltTextWithSuggestions, 49928 queryAllByAttribute: () => queryAllByAttribute, 49929 queryAllByDisplayValue: () => queryAllByDisplayValueWithSuggestions, 49930 queryAllByLabelText: () => queryAllByLabelTextWithSuggestions, 49931 queryAllByPlaceholderText: () => queryAllByPlaceholderTextWithSuggestions, 49932 queryAllByRole: () => queryAllByRoleWithSuggestions, 49933 queryAllByTestId: () => queryAllByTestIdWithSuggestions, 49934 queryAllByText: () => queryAllByTextWithSuggestions, 49935 queryAllByTitle: () => queryAllByTitleWithSuggestions, 49936 queryByAltText: () => queryByAltText, 49937 queryByAttribute: () => queryByAttribute, 49938 queryByDisplayValue: () => queryByDisplayValue, 49939 queryByLabelText: () => queryByLabelText, 49940 queryByPlaceholderText: () => queryByPlaceholderText, 49941 queryByRole: () => queryByRole, 49942 queryByTestId: () => queryByTestId, 49943 queryByText: () => queryByText, 49944 queryByTitle: () => queryByTitle, 49945 queryHelpers: () => queryHelpers, 49946 screen: () => screen, 49947 waitFor: () => waitForWrapper, 49948 waitForElementToBeRemoved: () => waitForElementToBeRemoved, 49949 within: () => getQueriesForElement, 49950 wrapAllByQueryWithSuggestion: () => wrapAllByQueryWithSuggestion, 49951 wrapSingleQueryWithSuggestion: () => wrapSingleQueryWithSuggestion 49952}); 49953var prettyFormat = __toESM(require_build()); 49954
vendor: 1,160 bytes, lines 49955-49979
49955// ../../node_modules/dom-accessibility-api/dist/polyfills/array.from.mjs 49956var toStr2 = Object.prototype.toString; 49957function isCallable2(fn4) { 49958 return typeof fn4 == "function" || toStr2.call(fn4) === "[object Function]"; 49959} 49960function toInteger2(value) { 49961 var number = Number(value); 49962 return isNaN(number) ? 0 : number === 0 || !isFinite(number) ? number : (number > 0 ? 1 : -1) * Math.floor(Math.abs(number)); 49963} 49964var maxSafeInteger2 = Math.pow(2, 53) - 1; 49965function toLength2(value) { 49966 var len = toInteger2(value); 49967 return Math.min(Math.max(len, 0), maxSafeInteger2); 49968} 49969function arrayFrom2(arrayLike, mapFn) { 49970 var C3 = Array, items = Object(arrayLike); 49971 if (arrayLike == null) 49972 throw new TypeError("Array.from requires an array-like object - not null or undefined"); 49973 if (typeof mapFn < "u" && !isCallable2(mapFn)) 49974 throw new TypeError("Array.from: when provided, the second argument must be a function"); 49975 for (var len = toLength2(items.length), A3 = isCallable2(C3) ? Object(new C3(len)) : new Array(len), k = 0, kValue; k < len; ) 49976 kValue = items[k], mapFn ? A3[k] = mapFn(kValue, k) : A3[k] = kValue, k += 1; 49977 return A3.length = len, A3; 49978} 49979
vendor: 3,142 bytes, lines 49980-50062
49980// ../../node_modules/dom-accessibility-api/dist/polyfills/SetLike.mjs 49981function _typeof4(obj) { 49982 "@babel/helpers - typeof"; 49983 return _typeof4 = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(obj2) { 49984 return typeof obj2; 49985 } : function(obj2) { 49986 return obj2 && typeof Symbol == "function" && obj2.constructor === Symbol && obj2 !== Symbol.prototype ? "symbol" : typeof obj2; 49987 }, _typeof4(obj); 49988} 49989function _classCallCheck2(instance, Constructor) { 49990 if (!(instance instanceof Constructor)) 49991 throw new TypeError("Cannot call a class as a function"); 49992} 49993function _defineProperties2(target, props) { 49994 for (var i = 0; i < props.length; i++) { 49995 var descriptor = props[i]; 49996 descriptor.enumerable = descriptor.enumerable || !1, descriptor.configurable = !0, "value" in descriptor && (descriptor.writable = !0), Object.defineProperty(target, _toPropertyKey3(descriptor.key), descriptor); 49997 } 49998} 49999function _createClass2(Constructor, protoProps, staticProps) { 50000 return protoProps && _defineProperties2(Constructor.prototype, protoProps), staticProps && _defineProperties2(Constructor, staticProps), Object.defineProperty(Constructor, "prototype", { writable: !1 }), Constructor; 50001} 50002function _defineProperty4(obj, key, value) { 50003 return key = _toPropertyKey3(key), key in obj ? Object.defineProperty(obj, key, { value, enumerable: !0, configurable: !0, writable: !0 }) : obj[key] = value, obj; 50004} 50005function _toPropertyKey3(arg) { 50006 var key = _toPrimitive3(arg, "string"); 50007 return _typeof4(key) === "symbol" ? key : String(key); 50008} 50009function _toPrimitive3(input2, hint) { 50010 if (_typeof4(input2) !== "object" || input2 === null) return input2; 50011 var prim = input2[Symbol.toPrimitive]; 50012 if (prim !== void 0) { 50013 var res = prim.call(input2, hint || "default"); 50014 if (_typeof4(res) !== "object") return res; 50015 throw new TypeError("@@toPrimitive must return a primitive value."); 50016 } 50017 return (hint === "string" ? String : Number)(input2); 50018} 50019var SetLike2 = (function() { 50020 function SetLike3() { 50021 var items = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : []; 50022 _classCallCheck2(this, SetLike3), _defineProperty4(this, "items", void 0), this.items = items; 50023 } 50024 return _createClass2(SetLike3, [{ 50025 key: "add", 50026 value: function(value) { 50027 return this.has(value) === !1 && this.items.push(value), this; 50028 } 50029 }, { 50030 key: "clear", 50031 value: function() { 50032 this.items = []; 50033 } 50034 }, { 50035 key: "delete", 50036 value: function(value) { 50037 var previousLength = this.items.length; 50038 return this.items = this.items.filter(function(item) { 50039 return item !== value; 50040 }), previousLength !== this.items.length; 50041 } 50042 }, { 50043 key: "forEach", 50044 value: function(callbackfn) { 50045 var _this = this; 50046 this.items.forEach(function(item) { 50047 callbackfn(item, item, _this); 50048 }); 50049 } 50050 }, { 50051 key: "has", 50052 value: function(value) { 50053 return this.items.indexOf(value) !== -1; 50054 } 50055 }, { 50056 key: "size", 50057 get: function() { 50058 return this.items.length; 50059 } 50060 }]), SetLike3; 50061})(), SetLike_default2 = typeof Set > "u" ? Set : SetLike2; 50062
vendor: 5,097 bytes, lines 50063-50228
50063// ../../node_modules/dom-accessibility-api/dist/getRole.mjs 50064function getLocalName2(element) { 50065 var _element$localName; 50066 return ( 50067 // eslint-disable-next-line no-restricted-properties -- actual guard for environments without localName 50068 (_element$localName = element.localName) !== null && _element$localName !== void 0 ? _element$localName : ( 50069 // eslint-disable-next-line no-restricted-properties -- required for the fallback 50070 element.tagName.toLowerCase() 50071 ) 50072 ); 50073} 50074var localNameToRoleMappings2 = { 50075 article: "article", 50076 aside: "complementary", 50077 button: "button", 50078 datalist: "listbox", 50079 dd: "definition", 50080 details: "group", 50081 dialog: "dialog", 50082 dt: "term", 50083 fieldset: "group", 50084 figure: "figure", 50085 // WARNING: Only with an accessible name 50086 form: "form", 50087 footer: "contentinfo", 50088 h1: "heading", 50089 h2: "heading", 50090 h3: "heading", 50091 h4: "heading", 50092 h5: "heading", 50093 h6: "heading", 50094 header: "banner", 50095 hr: "separator", 50096 html: "document", 50097 legend: "legend", 50098 li: "listitem", 50099 math: "math", 50100 main: "main", 50101 menu: "list", 50102 nav: "navigation", 50103 ol: "list", 50104 optgroup: "group", 50105 // WARNING: Only in certain context 50106 option: "option", 50107 output: "status", 50108 progress: "progressbar", 50109 // WARNING: Only with an accessible name 50110 section: "region", 50111 summary: "button", 50112 table: "table", 50113 tbody: "rowgroup", 50114 textarea: "textbox", 50115 tfoot: "rowgroup", 50116 // WARNING: Only in certain context 50117 td: "cell", 50118 th: "columnheader", 50119 thead: "rowgroup", 50120 tr: "row", 50121 ul: "list" 50122}, prohibitedAttributes2 = { 50123 caption: /* @__PURE__ */ new Set(["aria-label", "aria-labelledby"]), 50124 code: /* @__PURE__ */ new Set(["aria-label", "aria-labelledby"]), 50125 deletion: /* @__PURE__ */ new Set(["aria-label", "aria-labelledby"]), 50126 emphasis: /* @__PURE__ */ new Set(["aria-label", "aria-labelledby"]), 50127 generic: /* @__PURE__ */ new Set(["aria-label", "aria-labelledby", "aria-roledescription"]), 50128 insertion: /* @__PURE__ */ new Set(["aria-label", "aria-labelledby"]), 50129 paragraph: /* @__PURE__ */ new Set(["aria-label", "aria-labelledby"]), 50130 presentation: /* @__PURE__ */ new Set(["aria-label", "aria-labelledby"]), 50131 strong: /* @__PURE__ */ new Set(["aria-label", "aria-labelledby"]), 50132 subscript: /* @__PURE__ */ new Set(["aria-label", "aria-labelledby"]), 50133 superscript: /* @__PURE__ */ new Set(["aria-label", "aria-labelledby"]) 50134}; 50135function hasGlobalAriaAttributes2(element, role) { 50136 return [ 50137 "aria-atomic", 50138 "aria-busy", 50139 "aria-controls", 50140 "aria-current", 50141 "aria-describedby", 50142 "aria-details", 50143 // "disabled", 50144 "aria-dropeffect", 50145 // "errormessage", 50146 "aria-flowto", 50147 "aria-grabbed", 50148 // "haspopup", 50149 "aria-hidden", 50150 // "invalid", 50151 "aria-keyshortcuts", 50152 "aria-label", 50153 "aria-labelledby", 50154 "aria-live", 50155 "aria-owns", 50156 "aria-relevant", 50157 "aria-roledescription" 50158 ].some(function(attributeName) { 50159 var _prohibitedAttributes; 50160 return element.hasAttribute(attributeName) && !((_prohibitedAttributes = prohibitedAttributes2[role]) !== null && _prohibitedAttributes !== void 0 && _prohibitedAttributes.has(attributeName)); 50161 }); 50162} 50163function ignorePresentationalRole2(element, implicitRole) { 50164 return hasGlobalAriaAttributes2(element, implicitRole); 50165} 50166function getRole2(element) { 50167 var explicitRole = getExplicitRole2(element); 50168 if (explicitRole === null || explicitRole === "presentation") { 50169 var implicitRole = getImplicitRole2(element); 50170 if (explicitRole !== "presentation" || ignorePresentationalRole2(element, implicitRole || "")) 50171 return implicitRole; 50172 } 50173 return explicitRole; 50174} 50175function getImplicitRole2(element) { 50176 var mappedByTag = localNameToRoleMappings2[getLocalName2(element)]; 50177 if (mappedByTag !== void 0) 50178 return mappedByTag; 50179 switch (getLocalName2(element)) { 50180 case "a": 50181 case "area": 50182 case "link": 50183 if (element.hasAttribute("href")) 50184 return "link"; 50185 break; 50186 case "img": 50187 return element.getAttribute("alt") === "" && !ignorePresentationalRole2(element, "img") ? "presentation" : "img"; 50188 case "input": { 50189 var _ref = element, type5 = _ref.type; 50190 switch (type5) { 50191 case "button": 50192 case "image": 50193 case "reset": 50194 case "submit": 50195 return "button"; 50196 case "checkbox": 50197 case "radio": 50198 return type5; 50199 case "range": 50200 return "slider"; 50201 case "email": 50202 case "tel": 50203 case "text": 50204 case "url": 50205 return element.hasAttribute("list") ? "combobox" : "textbox"; 50206 case "search": 50207 return element.hasAttribute("list") ? "combobox" : "searchbox"; 50208 case "number": 50209 return "spinbutton"; 50210 default: 50211 return null; 50212 } 50213 } 50214 case "select": 50215 return element.hasAttribute("multiple") || element.size > 1 ? "listbox" : "combobox"; 50216 } 50217 return null; 50218} 50219function getExplicitRole2(element) { 50220 var role = element.getAttribute("role"); 50221 if (role !== null) { 50222 var explicitRole = role.trim().split(" ")[0]; 50223 if (explicitRole.length > 0) 50224 return explicitRole; 50225 } 50226 return null; 50227} 50228
vendor: 2,245 bytes, lines 50229-50292
50229// ../../node_modules/dom-accessibility-api/dist/util.mjs 50230function isElement2(node2) { 50231 return node2 !== null && node2.nodeType === node2.ELEMENT_NODE; 50232} 50233function isHTMLTableCaptionElement2(node2) { 50234 return isElement2(node2) && getLocalName2(node2) === "caption"; 50235} 50236function isHTMLInputElement2(node2) { 50237 return isElement2(node2) && getLocalName2(node2) === "input"; 50238} 50239function isHTMLOptGroupElement2(node2) { 50240 return isElement2(node2) && getLocalName2(node2) === "optgroup"; 50241} 50242function isHTMLSelectElement2(node2) { 50243 return isElement2(node2) && getLocalName2(node2) === "select"; 50244} 50245function isHTMLTableElement2(node2) { 50246 return isElement2(node2) && getLocalName2(node2) === "table"; 50247} 50248function isHTMLTextAreaElement2(node2) { 50249 return isElement2(node2) && getLocalName2(node2) === "textarea"; 50250} 50251function safeWindow2(node2) { 50252 var _ref = node2.ownerDocument === null ? node2 : node2.ownerDocument, defaultView = _ref.defaultView; 50253 if (defaultView === null) 50254 throw new TypeError("no window available"); 50255 return defaultView; 50256} 50257function isHTMLFieldSetElement2(node2) { 50258 return isElement2(node2) && getLocalName2(node2) === "fieldset"; 50259} 50260function isHTMLLegendElement2(node2) { 50261 return isElement2(node2) && getLocalName2(node2) === "legend"; 50262} 50263function isHTMLSlotElement2(node2) { 50264 return isElement2(node2) && getLocalName2(node2) === "slot"; 50265} 50266function isSVGElement2(node2) { 50267 return isElement2(node2) && node2.ownerSVGElement !== void 0; 50268} 50269function isSVGSVGElement2(node2) { 50270 return isElement2(node2) && getLocalName2(node2) === "svg"; 50271} 50272function isSVGTitleElement2(node2) { 50273 return isSVGElement2(node2) && getLocalName2(node2) === "title"; 50274} 50275function queryIdRefs2(node2, attributeName) { 50276 if (isElement2(node2) && node2.hasAttribute(attributeName)) { 50277 var ids = node2.getAttribute(attributeName).split(" "), root2 = node2.getRootNode ? node2.getRootNode() : node2.ownerDocument; 50278 return ids.map(function(id) { 50279 return root2.getElementById(id); 50280 }).filter( 50281 function(element) { 50282 return element !== null; 50283 } 50284 // TODO: why does this not narrow? 50285 ); 50286 } 50287 return []; 50288} 50289function hasAnyConcreteRoles2(node2, roles3) { 50290 return isElement2(node2) ? roles3.indexOf(getRole2(node2)) !== -1 : !1; 50291} 50292
vendor: 13,409 bytes, lines 50293-50564
50293// ../../node_modules/dom-accessibility-api/dist/accessible-name-and-description.mjs 50294function asFlatString2(s3) { 50295 return s3.trim().replace(/\s\s+/g, " "); 50296} 50297function isHidden2(node2, getComputedStyleImplementation) { 50298 if (!isElement2(node2)) 50299 return !1; 50300 if (node2.hasAttribute("hidden") || node2.getAttribute("aria-hidden") === "true") 50301 return !0; 50302 var style = getComputedStyleImplementation(node2); 50303 return style.getPropertyValue("display") === "none" || style.getPropertyValue("visibility") === "hidden"; 50304} 50305function isControl2(node2) { 50306 return hasAnyConcreteRoles2(node2, ["button", "combobox", "listbox", "textbox"]) || hasAbstractRole2(node2, "range"); 50307} 50308function hasAbstractRole2(node2, role) { 50309 if (!isElement2(node2)) 50310 return !1; 50311 switch (role) { 50312 case "range": 50313 return hasAnyConcreteRoles2(node2, ["meter", "progressbar", "scrollbar", "slider", "spinbutton"]); 50314 default: 50315 throw new TypeError("No knowledge about abstract role '".concat(role, "'. This is likely a bug :(")); 50316 } 50317} 50318function querySelectorAllSubtree2(element, selectors) { 50319 var elements = arrayFrom2(element.querySelectorAll(selectors)); 50320 return queryIdRefs2(element, "aria-owns").forEach(function(root2) { 50321 elements.push.apply(elements, arrayFrom2(root2.querySelectorAll(selectors))); 50322 }), elements; 50323} 50324function querySelectedOptions2(listbox) { 50325 return isHTMLSelectElement2(listbox) ? listbox.selectedOptions || querySelectorAllSubtree2(listbox, "[selected]") : querySelectorAllSubtree2(listbox, '[aria-selected="true"]'); 50326} 50327function isMarkedPresentational2(node2) { 50328 return hasAnyConcreteRoles2(node2, ["none", "presentation"]); 50329} 50330function isNativeHostLanguageTextAlternativeElement2(node2) { 50331 return isHTMLTableCaptionElement2(node2); 50332} 50333function allowsNameFromContent2(node2) { 50334 return hasAnyConcreteRoles2(node2, ["button", "cell", "checkbox", "columnheader", "gridcell", "heading", "label", "legend", "link", "menuitem", "menuitemcheckbox", "menuitemradio", "option", "radio", "row", "rowheader", "switch", "tab", "tooltip", "treeitem"]); 50335} 50336function isDescendantOfNativeHostLanguageTextAlternativeElement2(node2) { 50337 return !1; 50338} 50339function getValueOfTextbox2(element) { 50340 return isHTMLInputElement2(element) || isHTMLTextAreaElement2(element) ? element.value : element.textContent || ""; 50341} 50342function getTextualContent2(declaration2) { 50343 var content = declaration2.getPropertyValue("content"); 50344 return /^["'].*["']$/.test(content) ? content.slice(1, -1) : ""; 50345} 50346function isLabelableElement2(element) { 50347 var localName = getLocalName2(element); 50348 return localName === "button" || localName === "input" && element.getAttribute("type") !== "hidden" || localName === "meter" || localName === "output" || localName === "progress" || localName === "select" || localName === "textarea"; 50349} 50350function findLabelableElement2(element) { 50351 if (isLabelableElement2(element)) 50352 return element; 50353 var labelableElement = null; 50354 return element.childNodes.forEach(function(childNode) { 50355 if (labelableElement === null && isElement2(childNode)) { 50356 var descendantLabelableElement = findLabelableElement2(childNode); 50357 descendantLabelableElement !== null && (labelableElement = descendantLabelableElement); 50358 } 50359 }), labelableElement; 50360} 50361function getControlOfLabel2(label) { 50362 if (label.control !== void 0) 50363 return label.control; 50364 var htmlFor = label.getAttribute("for"); 50365 return htmlFor !== null ? label.ownerDocument.getElementById(htmlFor) : findLabelableElement2(label); 50366} 50367function getLabels2(element) { 50368 var labelsProperty = element.labels; 50369 if (labelsProperty === null) 50370 return labelsProperty; 50371 if (labelsProperty !== void 0) 50372 return arrayFrom2(labelsProperty); 50373 if (!isLabelableElement2(element)) 50374 return null; 50375 var document13 = element.ownerDocument; 50376 return arrayFrom2(document13.querySelectorAll("label")).filter(function(label) { 50377 return getControlOfLabel2(label) === element; 50378 }); 50379} 50380function getSlotContents2(slot) { 50381 var assignedNodes = slot.assignedNodes(); 50382 return assignedNodes.length === 0 ? arrayFrom2(slot.childNodes) : assignedNodes; 50383} 50384function computeTextAlternative2(root2) { 50385 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; 50386 function computeMiscTextAlternative(node2, context) { 50387 var accumulatedText = ""; 50388 if (isElement2(node2) && computedStyleSupportsPseudoElements) { 50389 var pseudoBefore = getComputedStyle3(node2, "::before"), beforeContent = getTextualContent2(pseudoBefore); 50390 accumulatedText = "".concat(beforeContent, " ").concat(accumulatedText); 50391 } 50392 var childNodes = isHTMLSlotElement2(node2) ? getSlotContents2(node2) : arrayFrom2(node2.childNodes).concat(queryIdRefs2(node2, "aria-owns")); 50393 if (childNodes.forEach(function(child) { 50394 var result = computeTextAlternative3(child, { 50395 isEmbeddedInLabel: context.isEmbeddedInLabel, 50396 isReferenced: !1, 50397 recursion: !0 50398 }), display2 = isElement2(child) ? getComputedStyle3(child).getPropertyValue("display") : "inline", separator = display2 !== "inline" ? " " : ""; 50399 accumulatedText += "".concat(separator).concat(result).concat(separator); 50400 }), isElement2(node2) && computedStyleSupportsPseudoElements) { 50401 var pseudoAfter = getComputedStyle3(node2, "::after"), afterContent = getTextualContent2(pseudoAfter); 50402 accumulatedText = "".concat(accumulatedText, " ").concat(afterContent); 50403 } 50404 return accumulatedText.trim(); 50405 } 50406 function useAttribute(element, attributeName) { 50407 var attribute = element.getAttributeNode(attributeName); 50408 return attribute !== null && !consultedNodes.has(attribute) && attribute.value.trim() !== "" ? (consultedNodes.add(attribute), attribute.value) : null; 50409 } 50410 function computeTooltipAttributeValue(node2) { 50411 return isElement2(node2) ? useAttribute(node2, "title") : null; 50412 } 50413 function computeElementTextAlternative(node2) { 50414 if (!isElement2(node2)) 50415 return null; 50416 if (isHTMLFieldSetElement2(node2)) { 50417 consultedNodes.add(node2); 50418 for (var children = arrayFrom2(node2.childNodes), i = 0; i < children.length; i += 1) { 50419 var child = children[i]; 50420 if (isHTMLLegendElement2(child)) 50421 return computeTextAlternative3(child, { 50422 isEmbeddedInLabel: !1, 50423 isReferenced: !1, 50424 recursion: !1 50425 }); 50426 } 50427 } else if (isHTMLTableElement2(node2)) { 50428 consultedNodes.add(node2); 50429 for (var _children = arrayFrom2(node2.childNodes), _i = 0; _i < _children.length; _i += 1) { 50430 var _child = _children[_i]; 50431 if (isHTMLTableCaptionElement2(_child)) 50432 return computeTextAlternative3(_child, { 50433 isEmbeddedInLabel: !1, 50434 isReferenced: !1, 50435 recursion: !1 50436 }); 50437 } 50438 } else if (isSVGSVGElement2(node2)) { 50439 consultedNodes.add(node2); 50440 for (var _children2 = arrayFrom2(node2.childNodes), _i2 = 0; _i2 < _children2.length; _i2 += 1) { 50441 var _child2 = _children2[_i2]; 50442 if (isSVGTitleElement2(_child2)) 50443 return _child2.textContent; 50444 } 50445 return null; 50446 } else if (getLocalName2(node2) === "img" || getLocalName2(node2) === "area") { 50447 var nameFromAlt = useAttribute(node2, "alt"); 50448 if (nameFromAlt !== null) 50449 return nameFromAlt; 50450 } else if (isHTMLOptGroupElement2(node2)) { 50451 var nameFromLabel = useAttribute(node2, "label"); 50452 if (nameFromLabel !== null) 50453 return nameFromLabel; 50454 } 50455 if (isHTMLInputElement2(node2) && (node2.type === "button" || node2.type === "submit" || node2.type === "reset")) { 50456 var nameFromValue = useAttribute(node2, "value"); 50457 if (nameFromValue !== null) 50458 return nameFromValue; 50459 if (node2.type === "submit") 50460 return "Submit"; 50461 if (node2.type === "reset") 50462 return "Reset"; 50463 } 50464 var labels = getLabels2(node2); 50465 if (labels !== null && labels.length !== 0) 50466 return consultedNodes.add(node2), arrayFrom2(labels).map(function(element) { 50467 return computeTextAlternative3(element, { 50468 isEmbeddedInLabel: !0, 50469 isReferenced: !1, 50470 recursion: !0 50471 }); 50472 }).filter(function(label) { 50473 return label.length > 0; 50474 }).join(" "); 50475 if (isHTMLInputElement2(node2) && node2.type === "image") { 50476 var _nameFromAlt = useAttribute(node2, "alt"); 50477 if (_nameFromAlt !== null) 50478 return _nameFromAlt; 50479 var nameFromTitle = useAttribute(node2, "title"); 50480 return nameFromTitle !== null ? nameFromTitle : "Submit Query"; 50481 } 50482 if (hasAnyConcreteRoles2(node2, ["button"])) { 50483 var nameFromSubTree = computeMiscTextAlternative(node2, { 50484 isEmbeddedInLabel: !1, 50485 isReferenced: !1 50486 }); 50487 if (nameFromSubTree !== "") 50488 return nameFromSubTree; 50489 } 50490 return null; 50491 } 50492 function computeTextAlternative3(current, context) { 50493 if (consultedNodes.has(current)) 50494 return ""; 50495 if (!hidden && isHidden2(current, getComputedStyle3) && !context.isReferenced) 50496 return consultedNodes.add(current), ""; 50497 var labelAttributeNode = isElement2(current) ? current.getAttributeNode("aria-labelledby") : null, labelElements = labelAttributeNode !== null && !consultedNodes.has(labelAttributeNode) ? queryIdRefs2(current, "aria-labelledby") : []; 50498 if (compute === "name" && !context.isReferenced && labelElements.length > 0) 50499 return consultedNodes.add(labelAttributeNode), labelElements.map(function(element) { 50500 return computeTextAlternative3(element, { 50501 isEmbeddedInLabel: context.isEmbeddedInLabel, 50502 isReferenced: !0, 50503 // this isn't recursion as specified, otherwise we would skip 50504 // `aria-label` in 50505 // <input id="myself" aria-label="foo" aria-labelledby="myself" 50506 recursion: !1 50507 }); 50508 }).join(" "); 50509 var skipToStep2E = context.recursion && isControl2(current) && compute === "name"; 50510 if (!skipToStep2E) { 50511 var ariaLabel = (isElement2(current) && current.getAttribute("aria-label") || "").trim(); 50512 if (ariaLabel !== "" && compute === "name") 50513 return consultedNodes.add(current), ariaLabel; 50514 if (!isMarkedPresentational2(current)) { 50515 var elementTextAlternative = computeElementTextAlternative(current); 50516 if (elementTextAlternative !== null) 50517 return consultedNodes.add(current), elementTextAlternative; 50518 } 50519 } 50520 if (hasAnyConcreteRoles2(current, ["menu"])) 50521 return consultedNodes.add(current), ""; 50522 if (skipToStep2E || context.isEmbeddedInLabel || context.isReferenced) { 50523 if (hasAnyConcreteRoles2(current, ["combobox", "listbox"])) { 50524 consultedNodes.add(current); 50525 var selectedOptions = querySelectedOptions2(current); 50526 return selectedOptions.length === 0 ? isHTMLInputElement2(current) ? current.value : "" : arrayFrom2(selectedOptions).map(function(selectedOption) { 50527 return computeTextAlternative3(selectedOption, { 50528 isEmbeddedInLabel: context.isEmbeddedInLabel, 50529 isReferenced: !1, 50530 recursion: !0 50531 }); 50532 }).join(" "); 50533 } 50534 if (hasAbstractRole2(current, "range")) 50535 return consultedNodes.add(current), current.hasAttribute("aria-valuetext") ? current.getAttribute("aria-valuetext") : current.hasAttribute("aria-valuenow") ? current.getAttribute("aria-valuenow") : current.getAttribute("value") || ""; 50536 if (hasAnyConcreteRoles2(current, ["textbox"])) 50537 return consultedNodes.add(current), getValueOfTextbox2(current); 50538 } 50539 if (allowsNameFromContent2(current) || isElement2(current) && context.isReferenced || isNativeHostLanguageTextAlternativeElement2(current) || isDescendantOfNativeHostLanguageTextAlternativeElement2(current)) { 50540 var accumulatedText2F = computeMiscTextAlternative(current, { 50541 isEmbeddedInLabel: context.isEmbeddedInLabel, 50542 isReferenced: !1 50543 }); 50544 if (accumulatedText2F !== "") 50545 return consultedNodes.add(current), accumulatedText2F; 50546 } 50547 if (current.nodeType === current.TEXT_NODE) 50548 return consultedNodes.add(current), current.textContent || ""; 50549 if (context.recursion) 50550 return consultedNodes.add(current), computeMiscTextAlternative(current, { 50551 isEmbeddedInLabel: context.isEmbeddedInLabel, 50552 isReferenced: !1 50553 }); 50554 var tooltipAttributeValue = computeTooltipAttributeValue(current); 50555 return tooltipAttributeValue !== null ? (consultedNodes.add(current), tooltipAttributeValue) : (consultedNodes.add(current), ""); 50556 } 50557 return asFlatString2(computeTextAlternative3(root2, { 50558 isEmbeddedInLabel: !1, 50559 // by spec computeAccessibleDescription starts with the referenced elements as roots 50560 isReferenced: compute === "description", 50561 recursion: !1 50562 })); 50563} 50564
vendor: 2,617 bytes, lines 50565-50624
50565// ../../node_modules/dom-accessibility-api/dist/accessible-description.mjs 50566function _typeof5(obj) { 50567 "@babel/helpers - typeof"; 50568 return _typeof5 = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(obj2) { 50569 return typeof obj2; 50570 } : function(obj2) { 50571 return obj2 && typeof Symbol == "function" && obj2.constructor === Symbol && obj2 !== Symbol.prototype ? "symbol" : typeof obj2; 50572 }, _typeof5(obj); 50573} 50574function ownKeys4(object, enumerableOnly) { 50575 var keys3 = Object.keys(object); 50576 if (Object.getOwnPropertySymbols) { 50577 var symbols = Object.getOwnPropertySymbols(object); 50578 enumerableOnly && (symbols = symbols.filter(function(sym) { 50579 return Object.getOwnPropertyDescriptor(object, sym).enumerable; 50580 })), keys3.push.apply(keys3, symbols); 50581 } 50582 return keys3; 50583} 50584function _objectSpread4(target) { 50585 for (var i = 1; i < arguments.length; i++) { 50586 var source = arguments[i] != null ? arguments[i] : {}; 50587 i % 2 ? ownKeys4(Object(source), !0).forEach(function(key) { 50588 _defineProperty5(target, key, source[key]); 50589 }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys4(Object(source)).forEach(function(key) { 50590 Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); 50591 }); 50592 } 50593 return target; 50594} 50595function _defineProperty5(obj, key, value) { 50596 return key = _toPropertyKey4(key), key in obj ? Object.defineProperty(obj, key, { value, enumerable: !0, configurable: !0, writable: !0 }) : obj[key] = value, obj; 50597} 50598function _toPropertyKey4(arg) { 50599 var key = _toPrimitive4(arg, "string"); 50600 return _typeof5(key) === "symbol" ? key : String(key); 50601} 50602function _toPrimitive4(input2, hint) { 50603 if (_typeof5(input2) !== "object" || input2 === null) return input2; 50604 var prim = input2[Symbol.toPrimitive]; 50605 if (prim !== void 0) { 50606 var res = prim.call(input2, hint || "default"); 50607 if (_typeof5(res) !== "object") return res; 50608 throw new TypeError("@@toPrimitive must return a primitive value."); 50609 } 50610 return (hint === "string" ? String : Number)(input2); 50611} 50612function computeAccessibleDescription2(root2) { 50613 var options = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, description = queryIdRefs2(root2, "aria-describedby").map(function(element) { 50614 return computeTextAlternative2(element, _objectSpread4(_objectSpread4({}, options), {}, { 50615 compute: "description" 50616 })); 50617 }).join(" "); 50618 if (description === "") { 50619 var title = root2.getAttribute("title"); 50620 description = title === null ? "" : title; 50621 } 50622 return description; 50623} 50624
vendor: 490 bytes, lines 50625-50633
50625// ../../node_modules/dom-accessibility-api/dist/accessible-name.mjs 50626function prohibitsNaming2(node2) { 50627 return hasAnyConcreteRoles2(node2, ["caption", "code", "deletion", "emphasis", "generic", "insertion", "paragraph", "presentation", "strong", "subscript", "superscript"]); 50628} 50629function computeAccessibleName2(root2) { 50630 var options = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; 50631 return prohibitsNaming2(root2) ? "" : computeTextAlternative2(root2, options); 50632} 50633
vendor: 76,002 bytes, lines 50634-52654
50634// ../../node_modules/@testing-library/dom/dist/@testing-library/dom.esm.js 50635var import_aria_query3 = __toESM(require_lib2()), import_lz_string = __toESM(require_lz_string()); 50636function escapeHTML2(str2) { 50637 return str2.replace(/</g, "<").replace(/>/g, ">"); 50638} 50639var printProps2 = (keys3, props, config4, indentation, depth, refs, printer2) => { 50640 let indentationNext = indentation + config4.indent, colors3 = config4.colors; 50641 return keys3.map((key) => { 50642 let value = props[key], printed = printer2(value, config4, indentationNext, depth, refs); 50643 return typeof value != "string" && (printed.indexOf(` 50644`) !== -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; 50645 }).join(""); 50646}, NodeTypeTextNode = 3, printChildren2 = (children, config4, indentation, depth, refs, printer2) => children.map((child) => { 50647 let printedChild = typeof child == "string" ? printText2(child, config4) : printer2(child, config4, indentation, depth, refs); 50648 return printedChild === "" && typeof child == "object" && child !== null && child.nodeType !== NodeTypeTextNode ? "" : config4.spacingOuter + indentation + printedChild; 50649}).join(""), printText2 = (text, config4) => { 50650 let contentColor = config4.colors.content; 50651 return contentColor.open + escapeHTML2(text) + contentColor.close; 50652}, printComment2 = (comment2, config4) => { 50653 let commentColor = config4.colors.comment; 50654 return commentColor.open + "<!--" + escapeHTML2(comment2) + "-->" + commentColor.close; 50655}, printElement2 = (type5, printedProps, printedChildren, config4, indentation) => { 50656 let tagColor = config4.colors.tag; 50657 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; 50658}, printElementAsLeaf2 = (type5, config4) => { 50659 let tagColor = config4.colors.tag; 50660 return tagColor.open + "<" + type5 + tagColor.close + " \u2026" + tagColor.open + " />" + tagColor.close; 50661}, ELEMENT_NODE$1 = 1, TEXT_NODE$1 = 3, COMMENT_NODE$1 = 8, FRAGMENT_NODE2 = 11, ELEMENT_REGEXP2 = /^((HTML|SVG)\w*)?Element$/, isCustomElement2 = (val) => { 50662 let { 50663 tagName 50664 } = val; 50665 return !!(typeof tagName == "string" && tagName.includes("-") || typeof val.hasAttribute == "function" && val.hasAttribute("is")); 50666}, testNode2 = (val) => { 50667 let constructorName = val.constructor.name, { 50668 nodeType 50669 } = val; 50670 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"; 50671}; 50672function nodeIsText2(node2) { 50673 return node2.nodeType === TEXT_NODE$1; 50674} 50675function nodeIsComment2(node2) { 50676 return node2.nodeType === COMMENT_NODE$1; 50677} 50678function nodeIsFragment2(node2) { 50679 return node2.nodeType === FRAGMENT_NODE2; 50680} 50681function createDOMElementFilter(filterNode) { 50682 return { 50683 test: (val) => { 50684 var _val$constructor2; 50685 return ((val == null || (_val$constructor2 = val.constructor) == null ? void 0 : _val$constructor2.name) || isCustomElement2(val)) && testNode2(val); 50686 }, 50687 serialize: (node2, config4, indentation, depth, refs, printer2) => { 50688 if (nodeIsText2(node2)) 50689 return printText2(node2.data, config4); 50690 if (nodeIsComment2(node2)) 50691 return printComment2(node2.data, config4); 50692 let type5 = nodeIsFragment2(node2) ? "DocumentFragment" : node2.tagName.toLowerCase(); 50693 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); 50694 } 50695 }; 50696} 50697var picocolors = null, readFileSync = null, codeFrameColumns = null; 50698try { 50699 let nodeRequire = module && module.require; 50700 readFileSync = nodeRequire.call(module, "fs").readFileSync, codeFrameColumns = nodeRequire.call(module, "@babel/code-frame").codeFrameColumns, picocolors = nodeRequire.call(module, "picocolors"); 50701} catch { 50702} 50703function getCodeFrame(frame) { 50704 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 = ""; 50705 try { 50706 rawFileContents = readFileSync(filename, "utf-8"); 50707 } catch { 50708 return ""; 50709 } 50710 let codeFrame = codeFrameColumns(rawFileContents, { 50711 start: { 50712 line: line2, 50713 column: column2 50714 } 50715 }, { 50716 highlightCode: !0, 50717 linesBelow: 0 50718 }); 50719 return picocolors.dim(frameLocation) + ` 50720` + codeFrame + ` 50721`; 50722} 50723function getUserCodeFrame() { 50724 if (!readFileSync || !codeFrameColumns) 50725 return ""; 50726 let firstClientCodeFrame = new Error().stack.split(` 50727`).slice(1).find((frame) => !frame.includes("node_modules/")); 50728 return getCodeFrame(firstClientCodeFrame); 50729} 50730var TEXT_NODE2 = 3; 50731function jestFakeTimersAreEnabled() { 50732 return typeof jest < "u" && jest !== null ? ( 50733 // legacy timers 50734 setTimeout._isMockFunction === !0 || // modern timers 50735 // eslint-disable-next-line prefer-object-has-own -- not supported by our support matrix 50736 Object.prototype.hasOwnProperty.call(setTimeout, "clock") 50737 ) : !1; 50738} 50739function getDocument() { 50740 if (typeof window > "u") 50741 throw new Error("Could not find default container"); 50742 return window.document; 50743} 50744function getWindowFromNode(node2) { 50745 if (node2.defaultView) 50746 return node2.defaultView; 50747 if (node2.ownerDocument && node2.ownerDocument.defaultView) 50748 return node2.ownerDocument.defaultView; 50749 if (node2.window) 50750 return node2.window; 50751 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 + "."); 50752} 50753function checkContainerType(container) { 50754 if (!container || typeof container.querySelector != "function" || typeof container.querySelectorAll != "function") 50755 throw new TypeError("Expected container to be an Element, a Document or a DocumentFragment but got " + getTypeName(container) + "."); 50756 function getTypeName(object) { 50757 return typeof object == "object" ? object === null ? "null" : object.constructor.name : typeof object; 50758 } 50759} 50760var shouldHighlight = () => { 50761 if (typeof process > "u") 50762 return !1; 50763 let colors3; 50764 try { 50765 var _process$env; 50766 let colorsJSON = (_process$env = process.env) == null ? void 0 : _process$env.COLORS; 50767 colorsJSON && (colors3 = JSON.parse(colorsJSON)); 50768 } catch { 50769 } 50770 return typeof colors3 == "boolean" ? colors3 : process.versions !== void 0 && process.versions.node !== void 0; 50771}, { 50772 DOMCollection: DOMCollection3 50773} = prettyFormat.plugins, ELEMENT_NODE2 = 1, COMMENT_NODE2 = 8; 50774function filterCommentsAndDefaultIgnoreTagsTags(value) { 50775 return value.nodeType !== COMMENT_NODE2 && (value.nodeType !== ELEMENT_NODE2 || !value.matches(getConfig2().defaultIgnore)); 50776} 50777function prettyDOM(dom, maxLength, options) { 50778 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) 50779 return ""; 50780 dom.documentElement && (dom = dom.documentElement); 50781 let domTypeName = typeof dom; 50782 if (domTypeName === "object" ? domTypeName = dom.constructor.name : dom = {}, !("outerHTML" in dom)) 50783 throw new TypeError("Expected an element or document but got " + domTypeName); 50784 let { 50785 filterNode = filterCommentsAndDefaultIgnoreTagsTags, 50786 ...prettyFormatOptions 50787 } = options, debugContent = prettyFormat.format(dom, { 50788 plugins: [createDOMElementFilter(filterNode), DOMCollection3], 50789 printFunctionName: !1, 50790 highlight: shouldHighlight(), 50791 ...prettyFormatOptions 50792 }); 50793 return maxLength !== void 0 && dom.outerHTML.length > maxLength ? debugContent.slice(0, maxLength) + "..." : debugContent; 50794} 50795var logDOM = function() { 50796 let userCodeFrame = getUserCodeFrame(); 50797 console.log(userCodeFrame ? prettyDOM(...arguments) + ` 50798 50799` + userCodeFrame : prettyDOM(...arguments)); 50800}, config3 = { 50801 testIdAttribute: "data-testid", 50802 asyncUtilTimeout: 1e3, 50803 // asyncWrapper and advanceTimersWrapper is to support React's async `act` function. 50804 // forcing react-testing-library to wrap all async functions would've been 50805 // a total nightmare (consider wrapping every findBy* query and then also 50806 // updating `within` so those would be wrapped too. Total nightmare). 50807 // so we have this config option that's really only intended for 50808 // react-testing-library to use. For that reason, this feature will remain 50809 // undocumented. 50810 asyncWrapper: (cb) => cb(), 50811 unstable_advanceTimersWrapper: (cb) => cb(), 50812 eventWrapper: (cb) => cb(), 50813 // default value for the `hidden` option in `ByRole` queries 50814 defaultHidden: !1, 50815 // default value for the `ignore` option in `ByText` queries 50816 defaultIgnore: "script, style", 50817 // showOriginalStackTrace flag to show the full error stack traces for async errors 50818 showOriginalStackTrace: !1, 50819 // throw errors w/ suggestions for better queries. Opt in so off by default. 50820 throwSuggestions: !1, 50821 // called when getBy* queries fail. (message, container) => Error 50822 getElementError(message, container) { 50823 let prettifiedDOM = prettyDOM(container), error = new Error([message, "Ignored nodes: comments, " + config3.defaultIgnore + ` 50824` + prettifiedDOM].filter(Boolean).join(` 50825 50826`)); 50827 return error.name = "TestingLibraryElementError", error; 50828 }, 50829 _disableExpensiveErrorDiagnostics: !1, 50830 computedStyleSupportsPseudoElements: !1 50831}; 50832function runWithExpensiveErrorDiagnosticsDisabled(callback) { 50833 try { 50834 return config3._disableExpensiveErrorDiagnostics = !0, callback(); 50835 } finally { 50836 config3._disableExpensiveErrorDiagnostics = !1; 50837 } 50838} 50839function configure(newConfig) { 50840 typeof newConfig == "function" && (newConfig = newConfig(config3)), config3 = { 50841 ...config3, 50842 ...newConfig 50843 }; 50844} 50845function getConfig2() { 50846 return config3; 50847} 50848var labelledNodeNames = ["button", "meter", "output", "progress", "select", "textarea", "input"]; 50849function getTextContent(node2) { 50850 return labelledNodeNames.includes(node2.nodeName.toLowerCase()) ? "" : node2.nodeType === TEXT_NODE2 ? node2.textContent : Array.from(node2.childNodes).map((childNode) => getTextContent(childNode)).join(""); 50851} 50852function getLabelContent(element) { 50853 let textContent; 50854 return element.tagName.toLowerCase() === "label" ? textContent = getTextContent(element) : textContent = element.value || element.textContent, textContent; 50855} 50856function getRealLabels(element) { 50857 if (element.labels !== void 0) { 50858 var _labels; 50859 return (_labels = element.labels) != null ? _labels : []; 50860 } 50861 if (!isLabelable(element)) return []; 50862 let labels = element.ownerDocument.querySelectorAll("label"); 50863 return Array.from(labels).filter((label) => label.control === element); 50864} 50865function isLabelable(element) { 50866 return /BUTTON|METER|OUTPUT|PROGRESS|SELECT|TEXTAREA/.test(element.tagName) || element.tagName === "INPUT" && element.getAttribute("type") !== "hidden"; 50867} 50868function getLabels3(container, element, _temp) { 50869 let { 50870 selector = "*" 50871 } = _temp === void 0 ? {} : _temp, ariaLabelledBy = element.getAttribute("aria-labelledby"), labelsId = ariaLabelledBy ? ariaLabelledBy.split(" ") : []; 50872 return labelsId.length ? labelsId.map((labelId) => { 50873 let labellingElement = container.querySelector('[id="' + labelId + '"]'); 50874 return labellingElement ? { 50875 content: getLabelContent(labellingElement), 50876 formControl: null 50877 } : { 50878 content: "", 50879 formControl: null 50880 }; 50881 }) : Array.from(getRealLabels(element)).map((label) => { 50882 let textToMatch = getLabelContent(label), labelledFormControl = Array.from(label.querySelectorAll("button, input, meter, output, progress, select, textarea")).filter((formControlElement) => formControlElement.matches(selector))[0]; 50883 return { 50884 content: textToMatch, 50885 formControl: labelledFormControl 50886 }; 50887 }); 50888} 50889function assertNotNullOrUndefined(matcher) { 50890 if (matcher == null) 50891 throw new Error( 50892 // eslint-disable-next-line @typescript-eslint/restrict-template-expressions -- implicitly converting `T` to `string` 50893 "It looks like " + matcher + " was passed instead of a matcher. Did you do something like getByText(" + matcher + ")?" 50894 ); 50895} 50896function fuzzyMatches(textToMatch, node2, matcher, normalizer) { 50897 if (typeof textToMatch != "string") 50898 return !1; 50899 assertNotNullOrUndefined(matcher); 50900 let normalizedText = normalizer(textToMatch); 50901 return typeof matcher == "string" || typeof matcher == "number" ? normalizedText.toLowerCase().includes(matcher.toString().toLowerCase()) : typeof matcher == "function" ? matcher(normalizedText, node2) : matchRegExp(matcher, normalizedText); 50902} 50903function matches3(textToMatch, node2, matcher, normalizer) { 50904 if (typeof textToMatch != "string") 50905 return !1; 50906 assertNotNullOrUndefined(matcher); 50907 let normalizedText = normalizer(textToMatch); 50908 return matcher instanceof Function ? matcher(normalizedText, node2) : matcher instanceof RegExp ? matchRegExp(matcher, normalizedText) : normalizedText === String(matcher); 50909} 50910function getDefaultNormalizer(_temp) { 50911 let { 50912 trim: trim2 = !0, 50913 collapseWhitespace = !0 50914 } = _temp === void 0 ? {} : _temp; 50915 return (text) => { 50916 let normalizedText = text; 50917 return normalizedText = trim2 ? normalizedText.trim() : normalizedText, normalizedText = collapseWhitespace ? normalizedText.replace(/\s+/g, " ") : normalizedText, normalizedText; 50918 }; 50919} 50920function makeNormalizer(_ref) { 50921 let { 50922 trim: trim2, 50923 collapseWhitespace, 50924 normalizer 50925 } = _ref; 50926 if (!normalizer) 50927 return getDefaultNormalizer({ 50928 trim: trim2, 50929 collapseWhitespace 50930 }); 50931 if (typeof trim2 < "u" || typeof collapseWhitespace < "u") 50932 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'); 50933 return normalizer; 50934} 50935function matchRegExp(matcher, text) { 50936 let match3 = matcher.test(text); 50937 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; 50938} 50939function getNodeText(node2) { 50940 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(""); 50941} 50942var elementRoleList2 = buildElementRoleList2(import_aria_query3.elementRoles); 50943function isSubtreeInaccessible(element) { 50944 return element.hidden === !0 || element.getAttribute("aria-hidden") === "true" || element.ownerDocument.defaultView.getComputedStyle(element).display === "none"; 50945} 50946function isInaccessible(element, options) { 50947 options === void 0 && (options = {}); 50948 let { 50949 isSubtreeInaccessible: isSubtreeInaccessibleImpl = isSubtreeInaccessible 50950 } = options; 50951 if (element.ownerDocument.defaultView.getComputedStyle(element).visibility === "hidden") 50952 return !0; 50953 let currentElement = element; 50954 for (; currentElement; ) { 50955 if (isSubtreeInaccessibleImpl(currentElement)) 50956 return !0; 50957 currentElement = currentElement.parentElement; 50958 } 50959 return !1; 50960} 50961function getImplicitAriaRoles2(currentNode) { 50962 for (let { 50963 match: match3, 50964 roles: roles3 50965 } of elementRoleList2) 50966 if (match3(currentNode)) 50967 return [...roles3]; 50968 return []; 50969} 50970function buildElementRoleList2(elementRolesMap) { 50971 function makeElementSelector(_ref) { 50972 let { 50973 name, 50974 attributes 50975 } = _ref; 50976 return "" + name + attributes.map((_ref2) => { 50977 let { 50978 name: attributeName, 50979 value, 50980 constraints = [] 50981 } = _ref2, shouldNotExist = constraints.indexOf("undefined") !== -1, shouldBeNonEmpty = constraints.indexOf("set") !== -1; 50982 return typeof value < "u" ? "[" + attributeName + '="' + value + '"]' : shouldNotExist ? ":not([" + attributeName + "])" : shouldBeNonEmpty ? "[" + attributeName + "]:not([" + attributeName + '=""])' : "[" + attributeName + "]"; 50983 }).join(""); 50984 } 50985 function getSelectorSpecificity(_ref3) { 50986 let { 50987 attributes = [] 50988 } = _ref3; 50989 return attributes.length; 50990 } 50991 function bySelectorSpecificity(_ref4, _ref5) { 50992 let { 50993 specificity: leftSpecificity 50994 } = _ref4, { 50995 specificity: rightSpecificity 50996 } = _ref5; 50997 return rightSpecificity - leftSpecificity; 50998 } 50999 function match3(element) { 51000 let { 51001 attributes = [] 51002 } = element, typeTextIndex = attributes.findIndex((attribute) => attribute.value && attribute.name === "type" && attribute.value === "text"); 51003 typeTextIndex >= 0 && (attributes = [...attributes.slice(0, typeTextIndex), ...attributes.slice(typeTextIndex + 1)]); 51004 let selector = makeElementSelector({ 51005 ...element, 51006 attributes 51007 }); 51008 return (node2) => typeTextIndex >= 0 && node2.type !== "text" ? !1 : node2.matches(selector); 51009 } 51010 let result = []; 51011 for (let [element, roles3] of elementRolesMap.entries()) 51012 result = [...result, { 51013 match: match3(element), 51014 roles: Array.from(roles3), 51015 specificity: getSelectorSpecificity(element) 51016 }]; 51017 return result.sort(bySelectorSpecificity); 51018} 51019function getRoles(container, _temp) { 51020 let { 51021 hidden = !1 51022 } = _temp === void 0 ? {} : _temp; 51023 function flattenDOM(node2) { 51024 return [node2, ...Array.from(node2.children).reduce((acc, child) => [...acc, ...flattenDOM(child)], [])]; 51025 } 51026 return flattenDOM(container).filter((element) => hidden === !1 ? isInaccessible(element) === !1 : !0).reduce((acc, node2) => { 51027 let roles3 = []; 51028 return node2.hasAttribute("role") ? roles3 = node2.getAttribute("role").split(" ").slice(0, 1) : roles3 = getImplicitAriaRoles2(node2), roles3.reduce((rolesAcc, role) => Array.isArray(rolesAcc[role]) ? { 51029 ...rolesAcc, 51030 [role]: [...rolesAcc[role], node2] 51031 } : { 51032 ...rolesAcc, 51033 [role]: [node2] 51034 }, acc); 51035 }, {}); 51036} 51037function prettyRoles(dom, _ref6) { 51038 let { 51039 hidden, 51040 includeDescription 51041 } = _ref6, roles3 = getRoles(dom, { 51042 hidden 51043 }); 51044 return Object.entries(roles3).filter((_ref7) => { 51045 let [role] = _ref7; 51046 return role !== "generic"; 51047 }).map((_ref8) => { 51048 let [role, elements] = _ref8, delimiterBar = "-".repeat(50), elementsString = elements.map((el) => { 51049 let nameString = 'Name "' + computeAccessibleName2(el, { 51050 computedStyleSupportsPseudoElements: getConfig2().computedStyleSupportsPseudoElements 51051 }) + `": 51052`, domString = prettyDOM(el.cloneNode(!1)); 51053 if (includeDescription) { 51054 let descriptionString = 'Description "' + computeAccessibleDescription2(el, { 51055 computedStyleSupportsPseudoElements: getConfig2().computedStyleSupportsPseudoElements 51056 }) + `": 51057`; 51058 return "" + nameString + descriptionString + domString; 51059 } 51060 return "" + nameString + domString; 51061 }).join(` 51062 51063`); 51064 return role + `: 51065 51066` + elementsString + ` 51067 51068` + delimiterBar; 51069 }).join(` 51070`); 51071} 51072var logRoles = function(dom, _temp2) { 51073 let { 51074 hidden = !1 51075 } = _temp2 === void 0 ? {} : _temp2; 51076 return console.log(prettyRoles(dom, { 51077 hidden 51078 })); 51079}; 51080function computeAriaSelected(element) { 51081 return element.tagName === "OPTION" ? element.selected : checkBooleanAttribute(element, "aria-selected"); 51082} 51083function computeAriaBusy(element) { 51084 return element.getAttribute("aria-busy") === "true"; 51085} 51086function computeAriaChecked(element) { 51087 if (!("indeterminate" in element && element.indeterminate)) 51088 return "checked" in element ? element.checked : checkBooleanAttribute(element, "aria-checked"); 51089} 51090function computeAriaPressed(element) { 51091 return checkBooleanAttribute(element, "aria-pressed"); 51092} 51093function computeAriaCurrent(element) { 51094 var _ref9, _checkBooleanAttribut; 51095 return (_ref9 = (_checkBooleanAttribut = checkBooleanAttribute(element, "aria-current")) != null ? _checkBooleanAttribut : element.getAttribute("aria-current")) != null ? _ref9 : !1; 51096} 51097function computeAriaExpanded(element) { 51098 return checkBooleanAttribute(element, "aria-expanded"); 51099} 51100function checkBooleanAttribute(element, attribute) { 51101 let attributeValue = element.getAttribute(attribute); 51102 if (attributeValue === "true") 51103 return !0; 51104 if (attributeValue === "false") 51105 return !1; 51106} 51107function computeHeadingLevel(element) { 51108 let implicitHeadingLevels = { 51109 H1: 1, 51110 H2: 2, 51111 H3: 3, 51112 H4: 4, 51113 H5: 5, 51114 H6: 6 51115 }; 51116 return element.getAttribute("aria-level") && Number(element.getAttribute("aria-level")) || implicitHeadingLevels[element.tagName]; 51117} 51118function computeAriaValueNow(element) { 51119 let valueNow = element.getAttribute("aria-valuenow"); 51120 return valueNow === null ? void 0 : +valueNow; 51121} 51122function computeAriaValueMax(element) { 51123 let valueMax = element.getAttribute("aria-valuemax"); 51124 return valueMax === null ? void 0 : +valueMax; 51125} 51126function computeAriaValueMin(element) { 51127 let valueMin = element.getAttribute("aria-valuemin"); 51128 return valueMin === null ? void 0 : +valueMin; 51129} 51130function computeAriaValueText(element) { 51131 let valueText = element.getAttribute("aria-valuetext"); 51132 return valueText === null ? void 0 : valueText; 51133} 51134var normalize2 = getDefaultNormalizer(); 51135function escapeRegExp(string) { 51136 return string.replace(/[.*+\-?^${}()|[\]\\]/g, "\\$&"); 51137} 51138function getRegExpMatcher(string) { 51139 return new RegExp(escapeRegExp(string.toLowerCase()), "i"); 51140} 51141function makeSuggestion(queryName, element, content, _ref) { 51142 let { 51143 variant, 51144 name 51145 } = _ref, warning3 = "", queryOptions = {}, queryArgs = [["Role", "TestId"].includes(queryName) ? content : getRegExpMatcher(content)]; 51146 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. 51147 If you are using the aria-hidden prop, make sure this is the right choice for your case. 51148 `), Object.keys(queryOptions).length > 0 && queryArgs.push(queryOptions); 51149 let queryMethod = variant + "By" + queryName; 51150 return { 51151 queryName, 51152 queryMethod, 51153 queryArgs, 51154 variant, 51155 warning: warning3, 51156 toString() { 51157 warning3 && console.warn(warning3); 51158 let [text, options] = queryArgs; 51159 return text = typeof text == "string" ? "'" + text + "'" : text, options = options ? ", { " + Object.entries(options).map((_ref2) => { 51160 let [k, v] = _ref2; 51161 return k + ": " + v; 51162 }).join(", ") + " }" : "", queryMethod + "(" + text + options + ")"; 51163 } 51164 }; 51165} 51166function canSuggest(currentMethod, requestedMethod, data) { 51167 return data && (!requestedMethod || requestedMethod.toLowerCase() === currentMethod.toLowerCase()); 51168} 51169function getSuggestedQuery(element, variant, method) { 51170 var _element$getAttribute, _getImplicitAriaRoles; 51171 if (variant === void 0 && (variant = "get"), element.matches(getConfig2().defaultIgnore)) 51172 return; 51173 let role = (_element$getAttribute = element.getAttribute("role")) != null ? _element$getAttribute : (_getImplicitAriaRoles = getImplicitAriaRoles2(element)) == null ? void 0 : _getImplicitAriaRoles[0]; 51174 if (role !== "generic" && canSuggest("Role", method, role)) 51175 return makeSuggestion("Role", element, role, { 51176 variant, 51177 name: computeAccessibleName2(element, { 51178 computedStyleSupportsPseudoElements: getConfig2().computedStyleSupportsPseudoElements 51179 }) 51180 }); 51181 let labelText = getLabels3(document, element).map((label) => label.content).join(" "); 51182 if (canSuggest("LabelText", method, labelText)) 51183 return makeSuggestion("LabelText", element, labelText, { 51184 variant 51185 }); 51186 let placeholderText = element.getAttribute("placeholder"); 51187 if (canSuggest("PlaceholderText", method, placeholderText)) 51188 return makeSuggestion("PlaceholderText", element, placeholderText, { 51189 variant 51190 }); 51191 let textContent = normalize2(getNodeText(element)); 51192 if (canSuggest("Text", method, textContent)) 51193 return makeSuggestion("Text", element, textContent, { 51194 variant 51195 }); 51196 if (canSuggest("DisplayValue", method, element.value)) 51197 return makeSuggestion("DisplayValue", element, normalize2(element.value), { 51198 variant 51199 }); 51200 let alt = element.getAttribute("alt"); 51201 if (canSuggest("AltText", method, alt)) 51202 return makeSuggestion("AltText", element, alt, { 51203 variant 51204 }); 51205 let title = element.getAttribute("title"); 51206 if (canSuggest("Title", method, title)) 51207 return makeSuggestion("Title", element, title, { 51208 variant 51209 }); 51210 let testId = element.getAttribute(getConfig2().testIdAttribute); 51211 if (canSuggest("TestId", method, testId)) 51212 return makeSuggestion("TestId", element, testId, { 51213 variant 51214 }); 51215} 51216function copyStackTrace(target, source) { 51217 target.stack = source.stack.replace(source.message, target.message); 51218} 51219function waitFor(callback, _ref) { 51220 let { 51221 container = getDocument(), 51222 timeout = getConfig2().asyncUtilTimeout, 51223 showOriginalStackTrace = getConfig2().showOriginalStackTrace, 51224 stackTraceError, 51225 interval = 50, 51226 onTimeout = (error) => (Object.defineProperty(error, "message", { 51227 value: getConfig2().getElementError(error.message, container).message 51228 }), error), 51229 mutationObserverOptions = { 51230 subtree: !0, 51231 childList: !0, 51232 attributes: !0, 51233 characterData: !0 51234 } 51235 } = _ref; 51236 if (typeof callback != "function") 51237 throw new TypeError("Received `callback` arg must be a function"); 51238 return new Promise(async (resolve, reject) => { 51239 let lastError, intervalId, observer, finished = !1, promiseStatus = "idle", overallTimeoutTimer = setTimeout(handleTimeout, timeout), usingJestFakeTimers = jestFakeTimersAreEnabled(); 51240 if (usingJestFakeTimers) { 51241 let { 51242 unstable_advanceTimersWrapper: advanceTimersWrapper 51243 } = getConfig2(); 51244 for (checkCallback(); !finished; ) { 51245 if (!jestFakeTimersAreEnabled()) { 51246 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"); 51247 showOriginalStackTrace || copyStackTrace(error, stackTraceError), reject(error); 51248 return; 51249 } 51250 if (await advanceTimersWrapper(async () => { 51251 jest.advanceTimersByTime(interval); 51252 }), finished) 51253 break; 51254 checkCallback(); 51255 } 51256 } else { 51257 try { 51258 checkContainerType(container); 51259 } catch (e) { 51260 reject(e); 51261 return; 51262 } 51263 intervalId = setInterval(checkRealTimersCallback, interval); 51264 let { 51265 MutationObserver: MutationObserver2 51266 } = getWindowFromNode(container); 51267 observer = new MutationObserver2(checkRealTimersCallback), observer.observe(container, mutationObserverOptions), checkCallback(); 51268 } 51269 function onDone(error, result) { 51270 finished = !0, clearTimeout(overallTimeoutTimer), usingJestFakeTimers || (clearInterval(intervalId), observer.disconnect()), error ? reject(error) : resolve(result); 51271 } 51272 function checkRealTimersCallback() { 51273 if (jestFakeTimersAreEnabled()) { 51274 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"); 51275 return showOriginalStackTrace || copyStackTrace(error, stackTraceError), reject(error); 51276 } else 51277 return checkCallback(); 51278 } 51279 function checkCallback() { 51280 if (promiseStatus !== "pending") 51281 try { 51282 let result = runWithExpensiveErrorDiagnosticsDisabled(callback); 51283 typeof result?.then == "function" ? (promiseStatus = "pending", result.then((resolvedValue) => { 51284 promiseStatus = "resolved", onDone(null, resolvedValue); 51285 }, (rejectedValue) => { 51286 promiseStatus = "rejected", lastError = rejectedValue; 51287 })) : onDone(null, result); 51288 } catch (error) { 51289 lastError = error; 51290 } 51291 } 51292 function handleTimeout() { 51293 let error; 51294 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); 51295 } 51296 }); 51297} 51298function waitForWrapper(callback, options) { 51299 let stackTraceError = new Error("STACK_TRACE_MESSAGE"); 51300 return getConfig2().asyncWrapper(() => waitFor(callback, { 51301 stackTraceError, 51302 ...options 51303 })); 51304} 51305function getElementError(message, container) { 51306 return getConfig2().getElementError(message, container); 51307} 51308function getMultipleElementsFoundError(message, container) { 51309 return getElementError(message + "\n\n(If this is intentional, then use the `*AllBy*` variant of the query (like `queryAllByText`, `getAllByText`, or `findAllByText`)).", container); 51310} 51311function queryAllByAttribute(attribute, container, text, _temp) { 51312 let { 51313 exact = !0, 51314 collapseWhitespace, 51315 trim: trim2, 51316 normalizer 51317 } = _temp === void 0 ? {} : _temp, matcher = exact ? matches3 : fuzzyMatches, matchNormalizer = makeNormalizer({ 51318 collapseWhitespace, 51319 trim: trim2, 51320 normalizer 51321 }); 51322 return Array.from(container.querySelectorAll("[" + attribute + "]")).filter((node2) => matcher(node2.getAttribute(attribute), node2, text, matchNormalizer)); 51323} 51324function queryByAttribute(attribute, container, text, options) { 51325 let els = queryAllByAttribute(attribute, container, text, options); 51326 if (els.length > 1) 51327 throw getMultipleElementsFoundError("Found multiple elements by [" + attribute + "=" + text + "]", container); 51328 return els[0] || null; 51329} 51330function makeSingleQuery(allQuery, getMultipleError2) { 51331 return function(container) { 51332 for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) 51333 args[_key - 1] = arguments[_key]; 51334 let els = allQuery(container, ...args); 51335 if (els.length > 1) { 51336 let elementStrings = els.map((element) => getElementError(null, element).message).join(` 51337 51338`); 51339 throw getMultipleElementsFoundError(getMultipleError2(container, ...args) + ` 51340 51341Here are the matching elements: 51342 51343` + elementStrings, container); 51344 } 51345 return els[0] || null; 51346 }; 51347} 51348function getSuggestionError(suggestion, container) { 51349 return getConfig2().getElementError(`A better query is available, try this: 51350` + suggestion.toString() + ` 51351`, container); 51352} 51353function makeGetAllQuery(allQuery, getMissingError2) { 51354 return function(container) { 51355 for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) 51356 args[_key2 - 1] = arguments[_key2]; 51357 let els = allQuery(container, ...args); 51358 if (!els.length) 51359 throw getConfig2().getElementError(getMissingError2(container, ...args), container); 51360 return els; 51361 }; 51362} 51363function makeFindQuery(getter) { 51364 return (container, text, options, waitForOptions) => waitForWrapper(() => getter(container, text, options), { 51365 container, 51366 ...waitForOptions 51367 }); 51368} 51369var wrapSingleQueryWithSuggestion = (query, queryAllByName, variant) => function(container) { 51370 for (var _len3 = arguments.length, args = new Array(_len3 > 1 ? _len3 - 1 : 0), _key3 = 1; _key3 < _len3; _key3++) 51371 args[_key3 - 1] = arguments[_key3]; 51372 let element = query(container, ...args), [{ 51373 suggest = getConfig2().throwSuggestions 51374 } = {}] = args.slice(-1); 51375 if (element && suggest) { 51376 let suggestion = getSuggestedQuery(element, variant); 51377 if (suggestion && !queryAllByName.endsWith(suggestion.queryName)) 51378 throw getSuggestionError(suggestion.toString(), container); 51379 } 51380 return element; 51381}, wrapAllByQueryWithSuggestion = (query, queryAllByName, variant) => function(container) { 51382 for (var _len4 = arguments.length, args = new Array(_len4 > 1 ? _len4 - 1 : 0), _key4 = 1; _key4 < _len4; _key4++) 51383 args[_key4 - 1] = arguments[_key4]; 51384 let els = query(container, ...args), [{ 51385 suggest = getConfig2().throwSuggestions 51386 } = {}] = args.slice(-1); 51387 if (els.length && suggest) { 51388 let uniqueSuggestionMessages = [...new Set(els.map((element) => { 51389 var _getSuggestedQuery; 51390 return (_getSuggestedQuery = getSuggestedQuery(element, variant)) == null ? void 0 : _getSuggestedQuery.toString(); 51391 }))]; 51392 if ( 51393 // only want to suggest if all the els have the same suggestion. 51394 uniqueSuggestionMessages.length === 1 && !queryAllByName.endsWith( 51395 // eslint-disable-next-line @typescript-eslint/no-non-null-assertion -- TODO: Can this be null at runtime? 51396 getSuggestedQuery(els[0], variant).queryName 51397 ) 51398 ) 51399 throw getSuggestionError(uniqueSuggestionMessages[0], container); 51400 } 51401 return els; 51402}; 51403function buildQueries(queryAllBy, getMultipleError2, getMissingError2) { 51404 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")); 51405 return [queryBy, getAllWithSuggestions, getByWithSuggestions, findAllBy, findBy]; 51406} 51407var queryHelpers = Object.freeze({ 51408 __proto__: null, 51409 getElementError, 51410 wrapAllByQueryWithSuggestion, 51411 wrapSingleQueryWithSuggestion, 51412 getMultipleElementsFoundError, 51413 queryAllByAttribute, 51414 queryByAttribute, 51415 makeSingleQuery, 51416 makeGetAllQuery, 51417 makeFindQuery, 51418 buildQueries 51419}); 51420function queryAllLabels(container) { 51421 return Array.from(container.querySelectorAll("label,input")).map((node2) => ({ 51422 node: node2, 51423 textToMatch: getLabelContent(node2) 51424 })).filter((_ref) => { 51425 let { 51426 textToMatch 51427 } = _ref; 51428 return textToMatch !== null; 51429 }); 51430} 51431var queryAllLabelsByText = function(container, text, _temp) { 51432 let { 51433 exact = !0, 51434 trim: trim2, 51435 collapseWhitespace, 51436 normalizer 51437 } = _temp === void 0 ? {} : _temp, matcher = exact ? matches3 : fuzzyMatches, matchNormalizer = makeNormalizer({ 51438 collapseWhitespace, 51439 trim: trim2, 51440 normalizer 51441 }); 51442 return queryAllLabels(container).filter((_ref2) => { 51443 let { 51444 node: node2, 51445 textToMatch 51446 } = _ref2; 51447 return matcher(textToMatch, node2, text, matchNormalizer); 51448 }).map((_ref3) => { 51449 let { 51450 node: node2 51451 } = _ref3; 51452 return node2; 51453 }); 51454}, queryAllByLabelText = function(container, text, _temp2) { 51455 let { 51456 selector = "*", 51457 exact = !0, 51458 collapseWhitespace, 51459 trim: trim2, 51460 normalizer 51461 } = _temp2 === void 0 ? {} : _temp2; 51462 checkContainerType(container); 51463 let matcher = exact ? matches3 : fuzzyMatches, matchNormalizer = makeNormalizer({ 51464 collapseWhitespace, 51465 trim: trim2, 51466 normalizer 51467 }), matchingLabelledElements = Array.from(container.querySelectorAll("*")).filter((element) => getRealLabels(element).length || element.hasAttribute("aria-labelledby")).reduce((labelledElements, labelledElement) => { 51468 let labelList = getLabels3(container, labelledElement, { 51469 selector 51470 }); 51471 labelList.filter((label) => !!label.formControl).forEach((label) => { 51472 matcher(label.content, label.formControl, text, matchNormalizer) && label.formControl && labelledElements.push(label.formControl); 51473 }); 51474 let labelsValue = labelList.filter((label) => !!label.content).map((label) => label.content); 51475 return matcher(labelsValue.join(" "), labelledElement, text, matchNormalizer) && labelledElements.push(labelledElement), labelsValue.length > 1 && labelsValue.forEach((labelValue, index4) => { 51476 matcher(labelValue, labelledElement, text, matchNormalizer) && labelledElements.push(labelledElement); 51477 let labelsFiltered = [...labelsValue]; 51478 labelsFiltered.splice(index4, 1), labelsFiltered.length > 1 && matcher(labelsFiltered.join(" "), labelledElement, text, matchNormalizer) && labelledElements.push(labelledElement); 51479 }), labelledElements; 51480 }, []).concat(queryAllByAttribute("aria-label", container, text, { 51481 exact, 51482 normalizer: matchNormalizer 51483 })); 51484 return Array.from(new Set(matchingLabelledElements)).filter((element) => element.matches(selector)); 51485}, getAllByLabelText = function(container, text) { 51486 for (var _len = arguments.length, rest = new Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++) 51487 rest[_key - 2] = arguments[_key]; 51488 let els = queryAllByLabelText(container, text, ...rest); 51489 if (!els.length) { 51490 let labels = queryAllLabelsByText(container, text, ...rest); 51491 if (labels.length) { 51492 let tagNames = labels.map((label) => getTagNameOfElementAssociatedWithLabelViaFor(container, label)).filter((tagName) => !!tagName); 51493 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(` 51494 51495`), 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); 51496 } else 51497 throw getConfig2().getElementError("Unable to find a label with the text of: " + text, container); 51498 } 51499 return els; 51500}; 51501function getTagNameOfElementAssociatedWithLabelViaFor(container, label) { 51502 let htmlFor = label.getAttribute("for"); 51503 if (!htmlFor) 51504 return null; 51505 let element = container.querySelector('[id="' + htmlFor + '"]'); 51506 return element ? element.tagName.toLowerCase() : null; 51507} 51508var 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() { 51509 for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) 51510 args[_key] = arguments[_key]; 51511 return checkContainerType(args[0]), queryAllByAttribute("placeholder", ...args); 51512}, 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) { 51513 let { 51514 selector = "*", 51515 exact = !0, 51516 collapseWhitespace, 51517 trim: trim2, 51518 ignore = getConfig2().defaultIgnore, 51519 normalizer 51520 } = _temp === void 0 ? {} : _temp; 51521 checkContainerType(container); 51522 let matcher = exact ? matches3 : fuzzyMatches, matchNormalizer = makeNormalizer({ 51523 collapseWhitespace, 51524 trim: trim2, 51525 normalizer 51526 }), baseArray = []; 51527 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)); 51528}, getMultipleError$5 = (c, text) => "Found multiple elements with the text: " + text, getMissingError$5 = function(c, text, options) { 51529 options === void 0 && (options = {}); 51530 let { 51531 collapseWhitespace, 51532 trim: trim2, 51533 normalizer, 51534 selector 51535 } = options, normalizedText = makeNormalizer({ 51536 collapseWhitespace, 51537 trim: trim2, 51538 normalizer 51539 })(text.toString()), isNormalizedDifferent = normalizedText !== text.toString(), isCustomSelector = (selector ?? "*") !== "*"; 51540 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."; 51541}, queryAllByTextWithSuggestions = wrapAllByQueryWithSuggestion(queryAllByText, queryAllByText.name, "queryAll"), [queryByText, getAllByText, getByText, findAllByText, findByText] = buildQueries(queryAllByText, getMultipleError$5, getMissingError$5), queryAllByDisplayValue = function(container, value, _temp) { 51542 let { 51543 exact = !0, 51544 collapseWhitespace, 51545 trim: trim2, 51546 normalizer 51547 } = _temp === void 0 ? {} : _temp; 51548 checkContainerType(container); 51549 let matcher = exact ? matches3 : fuzzyMatches, matchNormalizer = makeNormalizer({ 51550 collapseWhitespace, 51551 trim: trim2, 51552 normalizer 51553 }); 51554 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)); 51555}, 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) { 51556 return options === void 0 && (options = {}), checkContainerType(container), queryAllByAttribute("alt", container, alt, options).filter((node2) => VALID_TAG_REGEXP.test(node2.tagName)); 51557}, 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) => { 51558 var _node$parentElement; 51559 return node2.tagName.toLowerCase() === "title" && ((_node$parentElement = node2.parentElement) == null ? void 0 : _node$parentElement.tagName.toLowerCase()) === "svg"; 51560}, queryAllByTitle = function(container, text, _temp) { 51561 let { 51562 exact = !0, 51563 collapseWhitespace, 51564 trim: trim2, 51565 normalizer 51566 } = _temp === void 0 ? {} : _temp; 51567 checkContainerType(container); 51568 let matcher = exact ? matches3 : fuzzyMatches, matchNormalizer = makeNormalizer({ 51569 collapseWhitespace, 51570 trim: trim2, 51571 normalizer 51572 }); 51573 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)); 51574}, 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) { 51575 let { 51576 hidden = getConfig2().defaultHidden, 51577 name, 51578 description, 51579 queryFallbacks = !1, 51580 selected, 51581 busy, 51582 checked, 51583 pressed, 51584 current, 51585 level, 51586 expanded, 51587 value: { 51588 now: valueNow, 51589 min: valueMin, 51590 max: valueMax, 51591 text: valueText 51592 } = {} 51593 } = _temp === void 0 ? {} : _temp; 51594 if (checkContainerType(container), selected !== void 0) { 51595 var _allRoles$get; 51596 if (((_allRoles$get = import_aria_query3.roles.get(role)) == null ? void 0 : _allRoles$get.props["aria-selected"]) === void 0) 51597 throw new Error('"aria-selected" is not supported on role "' + role + '".'); 51598 } 51599 if (busy !== void 0) { 51600 var _allRoles$get2; 51601 if (((_allRoles$get2 = import_aria_query3.roles.get(role)) == null ? void 0 : _allRoles$get2.props["aria-busy"]) === void 0) 51602 throw new Error('"aria-busy" is not supported on role "' + role + '".'); 51603 } 51604 if (checked !== void 0) { 51605 var _allRoles$get3; 51606 if (((_allRoles$get3 = import_aria_query3.roles.get(role)) == null ? void 0 : _allRoles$get3.props["aria-checked"]) === void 0) 51607 throw new Error('"aria-checked" is not supported on role "' + role + '".'); 51608 } 51609 if (pressed !== void 0) { 51610 var _allRoles$get4; 51611 if (((_allRoles$get4 = import_aria_query3.roles.get(role)) == null ? void 0 : _allRoles$get4.props["aria-pressed"]) === void 0) 51612 throw new Error('"aria-pressed" is not supported on role "' + role + '".'); 51613 } 51614 if (current !== void 0) { 51615 var _allRoles$get5; 51616 if (((_allRoles$get5 = import_aria_query3.roles.get(role)) == null ? void 0 : _allRoles$get5.props["aria-current"]) === void 0) 51617 throw new Error('"aria-current" is not supported on role "' + role + '".'); 51618 } 51619 if (level !== void 0 && role !== "heading") 51620 throw new Error('Role "' + role + '" cannot have "level" property.'); 51621 if (valueNow !== void 0) { 51622 var _allRoles$get6; 51623 if (((_allRoles$get6 = import_aria_query3.roles.get(role)) == null ? void 0 : _allRoles$get6.props["aria-valuenow"]) === void 0) 51624 throw new Error('"aria-valuenow" is not supported on role "' + role + '".'); 51625 } 51626 if (valueMax !== void 0) { 51627 var _allRoles$get7; 51628 if (((_allRoles$get7 = import_aria_query3.roles.get(role)) == null ? void 0 : _allRoles$get7.props["aria-valuemax"]) === void 0) 51629 throw new Error('"aria-valuemax" is not supported on role "' + role + '".'); 51630 } 51631 if (valueMin !== void 0) { 51632 var _allRoles$get8; 51633 if (((_allRoles$get8 = import_aria_query3.roles.get(role)) == null ? void 0 : _allRoles$get8.props["aria-valuemin"]) === void 0) 51634 throw new Error('"aria-valuemin" is not supported on role "' + role + '".'); 51635 } 51636 if (valueText !== void 0) { 51637 var _allRoles$get9; 51638 if (((_allRoles$get9 = import_aria_query3.roles.get(role)) == null ? void 0 : _allRoles$get9.props["aria-valuetext"]) === void 0) 51639 throw new Error('"aria-valuetext" is not supported on role "' + role + '".'); 51640 } 51641 if (expanded !== void 0) { 51642 var _allRoles$get0; 51643 if (((_allRoles$get0 = import_aria_query3.roles.get(role)) == null ? void 0 : _allRoles$get0.props["aria-expanded"]) === void 0) 51644 throw new Error('"aria-expanded" is not supported on role "' + role + '".'); 51645 } 51646 let subtreeIsInaccessibleCache = /* @__PURE__ */ new WeakMap(); 51647 function cachedIsSubtreeInaccessible(element) { 51648 return subtreeIsInaccessibleCache.has(element) || subtreeIsInaccessibleCache.set(element, isSubtreeInaccessible(element)), subtreeIsInaccessibleCache.get(element); 51649 } 51650 return Array.from(container.querySelectorAll( 51651 // Only query elements that can be matched by the following filters 51652 makeRoleSelector(role) 51653 )).filter((node2) => { 51654 if (node2.hasAttribute("role")) { 51655 let roleValue = node2.getAttribute("role"); 51656 if (queryFallbacks) 51657 return roleValue.split(" ").filter(Boolean).some((roleAttributeToken) => roleAttributeToken === role); 51658 let [firstRoleAttributeToken] = roleValue.split(" "); 51659 return firstRoleAttributeToken === role; 51660 } 51661 return getImplicitAriaRoles2(node2).some((implicitRole) => implicitRole === role); 51662 }).filter((element) => { 51663 if (selected !== void 0) 51664 return selected === computeAriaSelected(element); 51665 if (busy !== void 0) 51666 return busy === computeAriaBusy(element); 51667 if (checked !== void 0) 51668 return checked === computeAriaChecked(element); 51669 if (pressed !== void 0) 51670 return pressed === computeAriaPressed(element); 51671 if (current !== void 0) 51672 return current === computeAriaCurrent(element); 51673 if (expanded !== void 0) 51674 return expanded === computeAriaExpanded(element); 51675 if (level !== void 0) 51676 return level === computeHeadingLevel(element); 51677 if (valueNow !== void 0 || valueMax !== void 0 || valueMin !== void 0 || valueText !== void 0) { 51678 let valueMatches = !0; 51679 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) { 51680 var _computeAriaValueText; 51681 valueMatches && (valueMatches = matches3((_computeAriaValueText = computeAriaValueText(element)) != null ? _computeAriaValueText : null, element, valueText, (text) => text)); 51682 } 51683 return valueMatches; 51684 } 51685 return !0; 51686 }).filter((element) => name === void 0 ? !0 : matches3(computeAccessibleName2(element, { 51687 computedStyleSupportsPseudoElements: getConfig2().computedStyleSupportsPseudoElements 51688 }), element, name, (text) => text)).filter((element) => description === void 0 ? !0 : matches3(computeAccessibleDescription2(element, { 51689 computedStyleSupportsPseudoElements: getConfig2().computedStyleSupportsPseudoElements 51690 }), element, description, (text) => text)).filter((element) => hidden === !1 ? isInaccessible(element, { 51691 isSubtreeInaccessible: cachedIsSubtreeInaccessible 51692 }) === !1 : !0); 51693}; 51694function makeRoleSelector(role) { 51695 var _roleElements$get; 51696 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) => { 51697 let { 51698 name 51699 } = _ref; 51700 return name; 51701 })); 51702 return [explicitRoleSelector].concat(Array.from(implicitRoleSelectors)).join(","); 51703} 51704var getNameHint = (name) => { 51705 let nameHint = ""; 51706 return name === void 0 ? nameHint = "" : typeof name == "string" ? nameHint = ' and name "' + name + '"' : nameHint = " and name `" + name + "`", nameHint; 51707}, getMultipleError$1 = function(c, role, _temp2) { 51708 let { 51709 name 51710 } = _temp2 === void 0 ? {} : _temp2; 51711 return 'Found multiple elements with the role "' + role + '"' + getNameHint(name); 51712}, getMissingError$1 = function(container, role, _temp3) { 51713 let { 51714 hidden = getConfig2().defaultHidden, 51715 name, 51716 description 51717 } = _temp3 === void 0 ? {} : _temp3; 51718 if (getConfig2()._disableExpensiveErrorDiagnostics) 51719 return 'Unable to find role="' + role + '"' + getNameHint(name); 51720 let roles3 = ""; 51721 Array.from(container.children).forEach((childElement) => { 51722 roles3 += prettyRoles(childElement, { 51723 hidden, 51724 includeDescription: description !== void 0 51725 }); 51726 }); 51727 let roleMessage; 51728 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 = (` 51729Here are the ` + (hidden === !1 ? "accessible" : "available") + ` roles: 51730 51731 ` + roles3.replace(/\n/g, ` 51732 `).replace(/\n\s\s\n/g, ` 51733 51734`) + ` 51735`).trim(); 51736 let nameHint = ""; 51737 name === void 0 ? nameHint = "" : typeof name == "string" ? nameHint = ' and name "' + name + '"' : nameHint = " and name `" + name + "`"; 51738 let descriptionHint = ""; 51739 return description === void 0 ? descriptionHint = "" : typeof description == "string" ? descriptionHint = ' and description "' + description + '"' : descriptionHint = " and description `" + description + "`", (` 51740Unable to find an ` + (hidden === !1 ? "accessible " : "") + 'element with the role "' + role + '"' + nameHint + descriptionHint + ` 51741 51742` + roleMessage).trim(); 51743}, queryAllByRoleWithSuggestions = wrapAllByQueryWithSuggestion(queryAllByRole, queryAllByRole.name, "queryAll"), [queryByRole, getAllByRole, getByRole, findAllByRole, findByRole] = buildQueries(queryAllByRole, getMultipleError$1, getMissingError$1), getTestIdAttribute = () => getConfig2().testIdAttribute, queryAllByTestId = function() { 51744 for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) 51745 args[_key] = arguments[_key]; 51746 return checkContainerType(args[0]), queryAllByAttribute(getTestIdAttribute(), ...args); 51747}, 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({ 51748 __proto__: null, 51749 queryAllByLabelText: queryAllByLabelTextWithSuggestions, 51750 queryByLabelText, 51751 getAllByLabelText: getAllByLabelTextWithSuggestions, 51752 getByLabelText: getByLabelTextWithSuggestions, 51753 findAllByLabelText, 51754 findByLabelText, 51755 queryByPlaceholderText, 51756 queryAllByPlaceholderText: queryAllByPlaceholderTextWithSuggestions, 51757 getByPlaceholderText, 51758 getAllByPlaceholderText, 51759 findAllByPlaceholderText, 51760 findByPlaceholderText, 51761 queryByText, 51762 queryAllByText: queryAllByTextWithSuggestions, 51763 getByText, 51764 getAllByText, 51765 findAllByText, 51766 findByText, 51767 queryByDisplayValue, 51768 queryAllByDisplayValue: queryAllByDisplayValueWithSuggestions, 51769 getByDisplayValue, 51770 getAllByDisplayValue, 51771 findAllByDisplayValue, 51772 findByDisplayValue, 51773 queryByAltText, 51774 queryAllByAltText: queryAllByAltTextWithSuggestions, 51775 getByAltText, 51776 getAllByAltText, 51777 findAllByAltText, 51778 findByAltText, 51779 queryByTitle, 51780 queryAllByTitle: queryAllByTitleWithSuggestions, 51781 getByTitle, 51782 getAllByTitle, 51783 findAllByTitle, 51784 findByTitle, 51785 queryByRole, 51786 queryAllByRole: queryAllByRoleWithSuggestions, 51787 getAllByRole, 51788 getByRole, 51789 findAllByRole, 51790 findByRole, 51791 queryByTestId, 51792 queryAllByTestId: queryAllByTestIdWithSuggestions, 51793 getByTestId, 51794 getAllByTestId, 51795 findAllByTestId, 51796 findByTestId 51797}); 51798function getQueriesForElement(element, queries$1, initialValue2) { 51799 return queries$1 === void 0 && (queries$1 = queries), initialValue2 === void 0 && (initialValue2 = {}), Object.keys(queries$1).reduce((helpers, key) => { 51800 let fn4 = queries$1[key]; 51801 return helpers[key] = fn4.bind(null, element), helpers; 51802 }, initialValue2); 51803} 51804var isRemoved = (result) => !result || Array.isArray(result) && !result.length; 51805function initialCheck(elements) { 51806 if (isRemoved(elements)) 51807 throw new Error("The element(s) given to waitForElementToBeRemoved are already removed. waitForElementToBeRemoved requires that the element(s) exist(s) before waiting for removal."); 51808} 51809async function waitForElementToBeRemoved(callback, options) { 51810 let timeoutError = new Error("Timed out in waitForElementToBeRemoved."); 51811 if (typeof callback != "function") { 51812 initialCheck(callback); 51813 let getRemainingElements = (Array.isArray(callback) ? callback : [callback]).map((element) => { 51814 let parent = element.parentElement; 51815 if (parent === null) return () => null; 51816 for (; parent.parentElement; ) parent = parent.parentElement; 51817 return () => parent.contains(element) ? element : null; 51818 }); 51819 callback = () => getRemainingElements.map((c) => c()).filter(Boolean); 51820 } 51821 return initialCheck(callback()), waitForWrapper(() => { 51822 let result; 51823 try { 51824 result = callback(); 51825 } catch (error) { 51826 if (error.name === "TestingLibraryElementError") 51827 return; 51828 throw error; 51829 } 51830 if (!isRemoved(result)) 51831 throw timeoutError; 51832 }, options); 51833} 51834var eventMap = { 51835 // Clipboard Events 51836 copy: { 51837 EventType: "ClipboardEvent", 51838 defaultInit: { 51839 bubbles: !0, 51840 cancelable: !0, 51841 composed: !0 51842 } 51843 }, 51844 cut: { 51845 EventType: "ClipboardEvent", 51846 defaultInit: { 51847 bubbles: !0, 51848 cancelable: !0, 51849 composed: !0 51850 } 51851 }, 51852 paste: { 51853 EventType: "ClipboardEvent", 51854 defaultInit: { 51855 bubbles: !0, 51856 cancelable: !0, 51857 composed: !0 51858 } 51859 }, 51860 // Composition Events 51861 compositionEnd: { 51862 EventType: "CompositionEvent", 51863 defaultInit: { 51864 bubbles: !0, 51865 cancelable: !0, 51866 composed: !0 51867 } 51868 }, 51869 compositionStart: { 51870 EventType: "CompositionEvent", 51871 defaultInit: { 51872 bubbles: !0, 51873 cancelable: !0, 51874 composed: !0 51875 } 51876 }, 51877 compositionUpdate: { 51878 EventType: "CompositionEvent", 51879 defaultInit: { 51880 bubbles: !0, 51881 cancelable: !0, 51882 composed: !0 51883 } 51884 }, 51885 // Keyboard Events 51886 keyDown: { 51887 EventType: "KeyboardEvent", 51888 defaultInit: { 51889 bubbles: !0, 51890 cancelable: !0, 51891 charCode: 0, 51892 composed: !0 51893 } 51894 }, 51895 keyPress: { 51896 EventType: "KeyboardEvent", 51897 defaultInit: { 51898 bubbles: !0, 51899 cancelable: !0, 51900 charCode: 0, 51901 composed: !0 51902 } 51903 }, 51904 keyUp: { 51905 EventType: "KeyboardEvent", 51906 defaultInit: { 51907 bubbles: !0, 51908 cancelable: !0, 51909 charCode: 0, 51910 composed: !0 51911 } 51912 }, 51913 // Focus Events 51914 focus: { 51915 EventType: "FocusEvent", 51916 defaultInit: { 51917 bubbles: !1, 51918 cancelable: !1, 51919 composed: !0 51920 } 51921 }, 51922 blur: { 51923 EventType: "FocusEvent", 51924 defaultInit: { 51925 bubbles: !1, 51926 cancelable: !1, 51927 composed: !0 51928 } 51929 }, 51930 focusIn: { 51931 EventType: "FocusEvent", 51932 defaultInit: { 51933 bubbles: !0, 51934 cancelable: !1, 51935 composed: !0 51936 } 51937 }, 51938 focusOut: { 51939 EventType: "FocusEvent", 51940 defaultInit: { 51941 bubbles: !0, 51942 cancelable: !1, 51943 composed: !0 51944 } 51945 }, 51946 // Form Events 51947 change: { 51948 EventType: "Event", 51949 defaultInit: { 51950 bubbles: !0, 51951 cancelable: !1 51952 } 51953 }, 51954 input: { 51955 EventType: "InputEvent", 51956 defaultInit: { 51957 bubbles: !0, 51958 cancelable: !1, 51959 composed: !0 51960 } 51961 }, 51962 invalid: { 51963 EventType: "Event", 51964 defaultInit: { 51965 bubbles: !1, 51966 cancelable: !0 51967 } 51968 }, 51969 submit: { 51970 EventType: "Event", 51971 defaultInit: { 51972 bubbles: !0, 51973 cancelable: !0 51974 } 51975 }, 51976 reset: { 51977 EventType: "Event", 51978 defaultInit: { 51979 bubbles: !0, 51980 cancelable: !0 51981 } 51982 }, 51983 // Mouse Events 51984 click: { 51985 EventType: "MouseEvent", 51986 defaultInit: { 51987 bubbles: !0, 51988 cancelable: !0, 51989 button: 0, 51990 composed: !0 51991 } 51992 }, 51993 contextMenu: { 51994 EventType: "MouseEvent", 51995 defaultInit: { 51996 bubbles: !0, 51997 cancelable: !0, 51998 composed: !0 51999 } 52000 }, 52001 dblClick: { 52002 EventType: "MouseEvent", 52003 defaultInit: { 52004 bubbles: !0, 52005 cancelable: !0, 52006 composed: !0 52007 } 52008 }, 52009 drag: { 52010 EventType: "DragEvent", 52011 defaultInit: { 52012 bubbles: !0, 52013 cancelable: !0, 52014 composed: !0 52015 } 52016 }, 52017 dragEnd: { 52018 EventType: "DragEvent", 52019 defaultInit: { 52020 bubbles: !0, 52021 cancelable: !1, 52022 composed: !0 52023 } 52024 }, 52025 dragEnter: { 52026 EventType: "DragEvent", 52027 defaultInit: { 52028 bubbles: !0, 52029 cancelable: !0, 52030 composed: !0 52031 } 52032 }, 52033 dragExit: { 52034 EventType: "DragEvent", 52035 defaultInit: { 52036 bubbles: !0, 52037 cancelable: !1, 52038 composed: !0 52039 } 52040 }, 52041 dragLeave: { 52042 EventType: "DragEvent", 52043 defaultInit: { 52044 bubbles: !0, 52045 cancelable: !1, 52046 composed: !0 52047 } 52048 }, 52049 dragOver: { 52050 EventType: "DragEvent", 52051 defaultInit: { 52052 bubbles: !0, 52053 cancelable: !0, 52054 composed: !0 52055 } 52056 }, 52057 dragStart: { 52058 EventType: "DragEvent", 52059 defaultInit: { 52060 bubbles: !0, 52061 cancelable: !0, 52062 composed: !0 52063 } 52064 }, 52065 drop: { 52066 EventType: "DragEvent", 52067 defaultInit: { 52068 bubbles: !0, 52069 cancelable: !0, 52070 composed: !0 52071 } 52072 }, 52073 mouseDown: { 52074 EventType: "MouseEvent", 52075 defaultInit: { 52076 bubbles: !0, 52077 cancelable: !0, 52078 composed: !0 52079 } 52080 }, 52081 mouseEnter: { 52082 EventType: "MouseEvent", 52083 defaultInit: { 52084 bubbles: !1, 52085 cancelable: !1, 52086 composed: !0 52087 } 52088 }, 52089 mouseLeave: { 52090 EventType: "MouseEvent", 52091 defaultInit: { 52092 bubbles: !1, 52093 cancelable: !1, 52094 composed: !0 52095 } 52096 }, 52097 mouseMove: { 52098 EventType: "MouseEvent", 52099 defaultInit: { 52100 bubbles: !0, 52101 cancelable: !0, 52102 composed: !0 52103 } 52104 }, 52105 mouseOut: { 52106 EventType: "MouseEvent", 52107 defaultInit: { 52108 bubbles: !0, 52109 cancelable: !0, 52110 composed: !0 52111 } 52112 }, 52113 mouseOver: { 52114 EventType: "MouseEvent", 52115 defaultInit: { 52116 bubbles: !0, 52117 cancelable: !0, 52118 composed: !0 52119 } 52120 }, 52121 mouseUp: { 52122 EventType: "MouseEvent", 52123 defaultInit: { 52124 bubbles: !0, 52125 cancelable: !0, 52126 composed: !0 52127 } 52128 }, 52129 // Selection Events 52130 select: { 52131 EventType: "Event", 52132 defaultInit: { 52133 bubbles: !0, 52134 cancelable: !1 52135 } 52136 }, 52137 // Touch Events 52138 touchCancel: { 52139 EventType: "TouchEvent", 52140 defaultInit: { 52141 bubbles: !0, 52142 cancelable: !1, 52143 composed: !0 52144 } 52145 }, 52146 touchEnd: { 52147 EventType: "TouchEvent", 52148 defaultInit: { 52149 bubbles: !0, 52150 cancelable: !0, 52151 composed: !0 52152 } 52153 }, 52154 touchMove: { 52155 EventType: "TouchEvent", 52156 defaultInit: { 52157 bubbles: !0, 52158 cancelable: !0, 52159 composed: !0 52160 } 52161 }, 52162 touchStart: { 52163 EventType: "TouchEvent", 52164 defaultInit: { 52165 bubbles: !0, 52166 cancelable: !0, 52167 composed: !0 52168 } 52169 }, 52170 // UI Events 52171 resize: { 52172 EventType: "UIEvent", 52173 defaultInit: { 52174 bubbles: !1, 52175 cancelable: !1 52176 } 52177 }, 52178 scroll: { 52179 EventType: "UIEvent", 52180 defaultInit: { 52181 bubbles: !1, 52182 cancelable: !1 52183 } 52184 }, 52185 // Wheel Events 52186 wheel: { 52187 EventType: "WheelEvent", 52188 defaultInit: { 52189 bubbles: !0, 52190 cancelable: !0, 52191 composed: !0 52192 } 52193 }, 52194 // Media Events 52195 abort: { 52196 EventType: "Event", 52197 defaultInit: { 52198 bubbles: !1, 52199 cancelable: !1 52200 } 52201 }, 52202 canPlay: { 52203 EventType: "Event", 52204 defaultInit: { 52205 bubbles: !1, 52206 cancelable: !1 52207 } 52208 }, 52209 canPlayThrough: { 52210 EventType: "Event", 52211 defaultInit: { 52212 bubbles: !1, 52213 cancelable: !1 52214 } 52215 }, 52216 durationChange: { 52217 EventType: "Event", 52218 defaultInit: { 52219 bubbles: !1, 52220 cancelable: !1 52221 } 52222 }, 52223 emptied: { 52224 EventType: "Event", 52225 defaultInit: { 52226 bubbles: !1, 52227 cancelable: !1 52228 } 52229 }, 52230 encrypted: { 52231 EventType: "Event", 52232 defaultInit: { 52233 bubbles: !1, 52234 cancelable: !1 52235 } 52236 }, 52237 ended: { 52238 EventType: "Event", 52239 defaultInit: { 52240 bubbles: !1, 52241 cancelable: !1 52242 } 52243 }, 52244 loadedData: { 52245 EventType: "Event", 52246 defaultInit: { 52247 bubbles: !1, 52248 cancelable: !1 52249 } 52250 }, 52251 loadedMetadata: { 52252 EventType: "Event", 52253 defaultInit: { 52254 bubbles: !1, 52255 cancelable: !1 52256 } 52257 }, 52258 loadStart: { 52259 EventType: "ProgressEvent", 52260 defaultInit: { 52261 bubbles: !1, 52262 cancelable: !1 52263 } 52264 }, 52265 pause: { 52266 EventType: "Event", 52267 defaultInit: { 52268 bubbles: !1, 52269 cancelable: !1 52270 } 52271 }, 52272 play: { 52273 EventType: "Event", 52274 defaultInit: { 52275 bubbles: !1, 52276 cancelable: !1 52277 } 52278 }, 52279 playing: { 52280 EventType: "Event", 52281 defaultInit: { 52282 bubbles: !1, 52283 cancelable: !1 52284 } 52285 }, 52286 progress: { 52287 EventType: "ProgressEvent", 52288 defaultInit: { 52289 bubbles: !1, 52290 cancelable: !1 52291 } 52292 }, 52293 rateChange: { 52294 EventType: "Event", 52295 defaultInit: { 52296 bubbles: !1, 52297 cancelable: !1 52298 } 52299 }, 52300 seeked: { 52301 EventType: "Event", 52302 defaultInit: { 52303 bubbles: !1, 52304 cancelable: !1 52305 } 52306 }, 52307 seeking: { 52308 EventType: "Event", 52309 defaultInit: { 52310 bubbles: !1, 52311 cancelable: !1 52312 } 52313 }, 52314 stalled: { 52315 EventType: "Event", 52316 defaultInit: { 52317 bubbles: !1, 52318 cancelable: !1 52319 } 52320 }, 52321 suspend: { 52322 EventType: "Event", 52323 defaultInit: { 52324 bubbles: !1, 52325 cancelable: !1 52326 } 52327 }, 52328 timeUpdate: { 52329 EventType: "Event", 52330 defaultInit: { 52331 bubbles: !1, 52332 cancelable: !1 52333 } 52334 }, 52335 volumeChange: { 52336 EventType: "Event", 52337 defaultInit: { 52338 bubbles: !1, 52339 cancelable: !1 52340 } 52341 }, 52342 waiting: { 52343 EventType: "Event", 52344 defaultInit: { 52345 bubbles: !1, 52346 cancelable: !1 52347 } 52348 }, 52349 // Events 52350 load: { 52351 // TODO: load events can be UIEvent or Event depending on what generated them 52352 // This is where this abstraction breaks down. 52353 // But the common targets are <img />, <script /> and window. 52354 // Neither of these targets receive a UIEvent 52355 EventType: "Event", 52356 defaultInit: { 52357 bubbles: !1, 52358 cancelable: !1 52359 } 52360 }, 52361 error: { 52362 EventType: "Event", 52363 defaultInit: { 52364 bubbles: !1, 52365 cancelable: !1 52366 } 52367 }, 52368 // Animation Events 52369 animationStart: { 52370 EventType: "AnimationEvent", 52371 defaultInit: { 52372 bubbles: !0, 52373 cancelable: !1 52374 } 52375 }, 52376 animationEnd: { 52377 EventType: "AnimationEvent", 52378 defaultInit: { 52379 bubbles: !0, 52380 cancelable: !1 52381 } 52382 }, 52383 animationIteration: { 52384 EventType: "AnimationEvent", 52385 defaultInit: { 52386 bubbles: !0, 52387 cancelable: !1 52388 } 52389 }, 52390 // Transition Events 52391 transitionCancel: { 52392 EventType: "TransitionEvent", 52393 defaultInit: { 52394 bubbles: !0, 52395 cancelable: !1 52396 } 52397 }, 52398 transitionEnd: { 52399 EventType: "TransitionEvent", 52400 defaultInit: { 52401 bubbles: !0, 52402 cancelable: !0 52403 } 52404 }, 52405 transitionRun: { 52406 EventType: "TransitionEvent", 52407 defaultInit: { 52408 bubbles: !0, 52409 cancelable: !1 52410 } 52411 }, 52412 transitionStart: { 52413 EventType: "TransitionEvent", 52414 defaultInit: { 52415 bubbles: !0, 52416 cancelable: !1 52417 } 52418 }, 52419 // pointer events 52420 pointerOver: { 52421 EventType: "PointerEvent", 52422 defaultInit: { 52423 bubbles: !0, 52424 cancelable: !0, 52425 composed: !0 52426 } 52427 }, 52428 pointerEnter: { 52429 EventType: "PointerEvent", 52430 defaultInit: { 52431 bubbles: !1, 52432 cancelable: !1 52433 } 52434 }, 52435 pointerDown: { 52436 EventType: "PointerEvent", 52437 defaultInit: { 52438 bubbles: !0, 52439 cancelable: !0, 52440 composed: !0 52441 } 52442 }, 52443 pointerMove: { 52444 EventType: "PointerEvent", 52445 defaultInit: { 52446 bubbles: !0, 52447 cancelable: !0, 52448 composed: !0 52449 } 52450 }, 52451 pointerUp: { 52452 EventType: "PointerEvent", 52453 defaultInit: { 52454 bubbles: !0, 52455 cancelable: !0, 52456 composed: !0 52457 } 52458 }, 52459 pointerCancel: { 52460 EventType: "PointerEvent", 52461 defaultInit: { 52462 bubbles: !0, 52463 cancelable: !1, 52464 composed: !0 52465 } 52466 }, 52467 pointerOut: { 52468 EventType: "PointerEvent", 52469 defaultInit: { 52470 bubbles: !0, 52471 cancelable: !0, 52472 composed: !0 52473 } 52474 }, 52475 pointerLeave: { 52476 EventType: "PointerEvent", 52477 defaultInit: { 52478 bubbles: !1, 52479 cancelable: !1 52480 } 52481 }, 52482 gotPointerCapture: { 52483 EventType: "PointerEvent", 52484 defaultInit: { 52485 bubbles: !0, 52486 cancelable: !1, 52487 composed: !0 52488 } 52489 }, 52490 lostPointerCapture: { 52491 EventType: "PointerEvent", 52492 defaultInit: { 52493 bubbles: !0, 52494 cancelable: !1, 52495 composed: !0 52496 } 52497 }, 52498 // history events 52499 popState: { 52500 EventType: "PopStateEvent", 52501 defaultInit: { 52502 bubbles: !0, 52503 cancelable: !1 52504 } 52505 }, 52506 // window events 52507 offline: { 52508 EventType: "Event", 52509 defaultInit: { 52510 bubbles: !1, 52511 cancelable: !1 52512 } 52513 }, 52514 online: { 52515 EventType: "Event", 52516 defaultInit: { 52517 bubbles: !1, 52518 cancelable: !1 52519 } 52520 }, 52521 pageHide: { 52522 EventType: "PageTransitionEvent", 52523 defaultInit: { 52524 bubbles: !0, 52525 cancelable: !0 52526 } 52527 }, 52528 pageShow: { 52529 EventType: "PageTransitionEvent", 52530 defaultInit: { 52531 bubbles: !0, 52532 cancelable: !0 52533 } 52534 } 52535}, eventAliasMap = { 52536 doubleClick: "dblClick" 52537}; 52538function fireEvent(element, event) { 52539 return getConfig2().eventWrapper(() => { 52540 if (!event) 52541 throw new Error("Unable to fire an event - please provide an event object."); 52542 if (!element) 52543 throw new Error('Unable to fire a "' + event.type + '" event - please provide a DOM element.'); 52544 return element.dispatchEvent(event); 52545 }); 52546} 52547function createEvent(eventName, node2, init16, _temp) { 52548 let { 52549 EventType = "Event", 52550 defaultInit = {} 52551 } = _temp === void 0 ? {} : _temp; 52552 if (!node2) 52553 throw new Error('Unable to fire a "' + eventName + '" event - please provide a DOM element.'); 52554 let eventInit = { 52555 ...defaultInit, 52556 ...init16 52557 }, { 52558 target: { 52559 value, 52560 files, 52561 ...targetProperties 52562 } = {} 52563 } = eventInit; 52564 value !== void 0 && setNativeValue(node2, value), files !== void 0 && Object.defineProperty(node2, "files", { 52565 configurable: !0, 52566 enumerable: !0, 52567 writable: !0, 52568 value: files 52569 }), Object.assign(node2, targetProperties); 52570 let window2 = getWindowFromNode(node2), EventConstructor = window2[EventType] || window2.Event, event; 52571 if (typeof EventConstructor == "function") 52572 event = new EventConstructor(eventName, eventInit); 52573 else { 52574 event = window2.document.createEvent(EventType); 52575 let { 52576 bubbles, 52577 cancelable, 52578 detail, 52579 ...otherInit 52580 } = eventInit; 52581 event.initEvent(eventName, bubbles, cancelable, detail), Object.keys(otherInit).forEach((eventKey) => { 52582 event[eventKey] = otherInit[eventKey]; 52583 }); 52584 } 52585 return ["dataTransfer", "clipboardData"].forEach((dataTransferKey) => { 52586 let dataTransferValue = eventInit[dataTransferKey]; 52587 typeof dataTransferValue == "object" && (typeof window2.DataTransfer == "function" ? Object.defineProperty(event, dataTransferKey, { 52588 value: Object.getOwnPropertyNames(dataTransferValue).reduce((acc, propName) => (Object.defineProperty(acc, propName, { 52589 value: dataTransferValue[propName] 52590 }), acc), new window2.DataTransfer()) 52591 }) : Object.defineProperty(event, dataTransferKey, { 52592 value: dataTransferValue 52593 })); 52594 }), event; 52595} 52596Object.keys(eventMap).forEach((key) => { 52597 let { 52598 EventType, 52599 defaultInit 52600 } = eventMap[key], eventName = key.toLowerCase(); 52601 createEvent[key] = (node2, init16) => createEvent(eventName, node2, init16, { 52602 EventType, 52603 defaultInit 52604 }), fireEvent[key] = (node2, init16) => fireEvent(node2, createEvent[key](node2, init16)); 52605}); 52606function setNativeValue(element, value) { 52607 let { 52608 set: valueSetter 52609 } = Object.getOwnPropertyDescriptor(element, "value") || {}, prototype = Object.getPrototypeOf(element), { 52610 set: prototypeValueSetter 52611 } = Object.getOwnPropertyDescriptor(prototype, "value") || {}; 52612 if (prototypeValueSetter && valueSetter !== prototypeValueSetter) 52613 prototypeValueSetter.call(element, value); 52614 else if (valueSetter) 52615 valueSetter.call(element, value); 52616 else 52617 throw new Error("The given element does not have a value setter"); 52618} 52619Object.keys(eventAliasMap).forEach((aliasKey) => { 52620 let key = eventAliasMap[aliasKey]; 52621 fireEvent[aliasKey] = function() { 52622 return fireEvent[key](...arguments); 52623 }; 52624}); 52625function unindent(string) { 52626 return string.replace(/[ \t]*[\n][ \t]*/g, ` 52627`); 52628} 52629function encode(value) { 52630 return import_lz_string.default.compressToEncodedURIComponent(unindent(value)); 52631} 52632function getPlaygroundUrl(markup2) { 52633 return "https://testing-playground.com/#markup=" + encode(markup2); 52634} 52635var debug = (element, maxLength, options) => Array.isArray(element) ? element.forEach((el) => logDOM(el, maxLength, options)) : logDOM(element, maxLength, options), logTestingPlaygroundURL = function(element) { 52636 if (element === void 0 && (element = getDocument().body), !element || !("innerHTML" in element)) { 52637 console.log("The element you're providing isn't a valid DOM element."); 52638 return; 52639 } 52640 if (!element.innerHTML) { 52641 console.log("The provided element doesn't have any children."); 52642 return; 52643 } 52644 let playgroundUrl = getPlaygroundUrl(element.innerHTML); 52645 return console.log(`Open this URL in your browser 52646 52647` + playgroundUrl), playgroundUrl; 52648}, initialValue = { 52649 debug, 52650 logTestingPlaygroundURL 52651}, screen = typeof document < "u" && document.body ? getQueriesForElement(document.body, queries, initialValue) : Object.keys(queries).reduce((helpers, key) => (helpers[key] = () => { 52652 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"); 52653}, helpers), initialValue); 52654
vendor: 402 bytes, lines 52655-52661
52655// ../../node_modules/@testing-library/user-event/dist/esm/utils/misc/isElementType.js 52656function isElementType(element, tag, props) { 52657 return element.namespaceURI && element.namespaceURI !== "http://www.w3.org/1999/xhtml" || (tag = Array.isArray(tag) ? tag : [ 52658 tag 52659 ], !tag.includes(element.tagName.toLowerCase())) ? !1 : props ? Object.entries(props).every(([k, v]) => element[k] === v) : !0; 52660} 52661
vendor: 666 bytes, lines 52662-52677
52662// ../../node_modules/@testing-library/user-event/dist/esm/utils/misc/getWindow.js 52663function getWindow(node2) { 52664 var _node_ownerDocument; 52665 if (isDocument(node2) && node2.defaultView) 52666 return node2.defaultView; 52667 if (!((_node_ownerDocument = node2.ownerDocument) === null || _node_ownerDocument === void 0) && _node_ownerDocument.defaultView) 52668 return node2.ownerDocument.defaultView; 52669 throw new Error(`Could not determine window of node. Node was ${describe(node2)}`); 52670} 52671function isDocument(node2) { 52672 return node2.nodeType === 9; 52673} 52674function describe(val) { 52675 return typeof val == "function" ? `function ${val.name}` : val === null ? "null" : String(val); 52676} 52677
vendor: 323 bytes, lines 52678-52687
52678// ../../node_modules/@testing-library/user-event/dist/esm/utils/dataTransfer/Blob.js 52679function readBlobText(blob, FileReader) { 52680 return new Promise((res, rej) => { 52681 let fr = new FileReader(); 52682 fr.onerror = rej, fr.onabort = rej, fr.onload = () => { 52683 res(String(fr.result)); 52684 }, fr.readAsText(blob); 52685 }); 52686} 52687
vendor: 492 bytes, lines 52688-52701
52688// ../../node_modules/@testing-library/user-event/dist/esm/utils/dataTransfer/FileList.js 52689function createFileList(window2, files) { 52690 let list = { 52691 ...files, 52692 length: files.length, 52693 item: (index4) => list[index4], 52694 [Symbol.iterator]: function* () { 52695 for (let i = 0; i < list.length; i++) 52696 yield list[i]; 52697 } 52698 }; 52699 return list.constructor = window2.FileList, window2.FileList && Object.setPrototypeOf(list, window2.FileList.prototype), Object.freeze(list), list; 52700} 52701
vendor: 3,340 bytes, lines 52702-52789
52702// ../../node_modules/@testing-library/user-event/dist/esm/utils/dataTransfer/DataTransfer.js 52703function _define_property(obj, key, value) { 52704 return key in obj ? Object.defineProperty(obj, key, { 52705 value, 52706 enumerable: !0, 52707 configurable: !0, 52708 writable: !0 52709 }) : obj[key] = value, obj; 52710} 52711var DataTransferItemStub = class { 52712 getAsFile() { 52713 return this.file; 52714 } 52715 getAsString(callback) { 52716 typeof this.data == "string" && callback(this.data); 52717 } 52718 /* istanbul ignore next */ 52719 webkitGetAsEntry() { 52720 throw new Error("not implemented"); 52721 } 52722 constructor(dataOrFile, type5) { 52723 _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); 52724 } 52725}, DataTransferItemListStub = class extends Array { 52726 add(...args) { 52727 let item = new DataTransferItemStub(args[0], args[1]); 52728 return this.push(item), item; 52729 } 52730 clear() { 52731 this.splice(0, this.length); 52732 } 52733 remove(index4) { 52734 this.splice(index4, 1); 52735 } 52736}; 52737function getTypeMatcher(type5, exact) { 52738 let [group, sub] = type5.split("/"), isGroup = !sub || sub === "*"; 52739 return (item) => exact ? item.type === (isGroup ? group : type5) : isGroup ? item.type.startsWith(`${group}/`) : item.type === group; 52740} 52741function createDataTransferStub(window2) { 52742 return new class { 52743 getData(format4) { 52744 var _this_items_find; 52745 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 = ""; 52746 return match3?.getAsString((t) => { 52747 text = t; 52748 }), text; 52749 } 52750 setData(format4, data) { 52751 let matchIndex = this.items.findIndex(getTypeMatcher(format4, !0)), item = new DataTransferItemStub(data, format4); 52752 matchIndex >= 0 ? this.items.splice(matchIndex, 1, item) : this.items.push(item); 52753 } 52754 clearData(format4) { 52755 if (format4) { 52756 let matchIndex = this.items.findIndex(getTypeMatcher(format4, !0)); 52757 matchIndex >= 0 && this.items.remove(matchIndex); 52758 } else 52759 this.items.clear(); 52760 } 52761 get types() { 52762 let t = []; 52763 return this.files.length && t.push("Files"), this.items.forEach((i) => t.push(i.type)), Object.freeze(t), t; 52764 } 52765 /* istanbul ignore next */ 52766 setDragImage() { 52767 } 52768 constructor() { 52769 _define_property(this, "dropEffect", "none"), _define_property(this, "effectAllowed", "uninitialized"), _define_property(this, "items", new DataTransferItemListStub()), _define_property(this, "files", createFileList(window2, [])); 52770 } 52771 }(); 52772} 52773function createDataTransfer(window2, files = []) { 52774 let dt = typeof window2.DataTransfer > "u" ? createDataTransferStub(window2) : ( 52775 /* istanbul ignore next */ 52776 new window2.DataTransfer() 52777 ); 52778 return Object.defineProperty(dt, "files", { 52779 get: () => createFileList(window2, files) 52780 }), dt; 52781} 52782async function getBlobFromDataTransferItem(window2, item) { 52783 return item.kind === "file" ? item.getAsFile() : new window2.Blob([ 52784 await new Promise((r2) => item.getAsString(r2)) 52785 ], { 52786 type: item.type 52787 }); 52788} 52789
vendor: 4,572 bytes, lines 52790-52911
52790// ../../node_modules/@testing-library/user-event/dist/esm/utils/dataTransfer/Clipboard.js 52791function _define_property2(obj, key, value) { 52792 return key in obj ? Object.defineProperty(obj, key, { 52793 value, 52794 enumerable: !0, 52795 configurable: !0, 52796 writable: !0 52797 }) : obj[key] = value, obj; 52798} 52799function createClipboardItem(window2, ...blobs) { 52800 let dataMap = Object.fromEntries(blobs.map((b) => [ 52801 typeof b == "string" ? "text/plain" : b.type, 52802 Promise.resolve(b) 52803 ])); 52804 return typeof window2.ClipboardItem < "u" ? new window2.ClipboardItem(dataMap) : new class { 52805 get types() { 52806 return Array.from(Object.keys(this.data)); 52807 } 52808 async getType(type5) { 52809 let value = await this.data[type5]; 52810 if (!value) 52811 throw new Error(`${type5} is not one of the available MIME types on this item.`); 52812 return value instanceof window2.Blob ? value : new window2.Blob([ 52813 value 52814 ], { 52815 type: type5 52816 }); 52817 } 52818 constructor(d) { 52819 _define_property2(this, "data", void 0), this.data = d; 52820 } 52821 }(dataMap); 52822} 52823var ClipboardStubControl = Symbol("Manage ClipboardSub"); 52824function createClipboardStub(window2, control) { 52825 return Object.assign(new class extends window2.EventTarget { 52826 async read() { 52827 return Array.from(this.items); 52828 } 52829 async readText() { 52830 let text = ""; 52831 for (let item of this.items) { 52832 let type5 = item.types.includes("text/plain") ? "text/plain" : item.types.find((t) => t.startsWith("text/")); 52833 type5 && (text += await item.getType(type5).then((b) => readBlobText(b, window2.FileReader))); 52834 } 52835 return text; 52836 } 52837 async write(data) { 52838 this.items = data; 52839 } 52840 async writeText(text) { 52841 this.items = [ 52842 createClipboardItem(window2, text) 52843 ]; 52844 } 52845 constructor(...args) { 52846 super(...args), _define_property2(this, "items", []); 52847 } 52848 }(), { 52849 [ClipboardStubControl]: control 52850 }); 52851} 52852function isClipboardStub(clipboard) { 52853 return !!clipboard?.[ClipboardStubControl]; 52854} 52855function attachClipboardStubToView(window2) { 52856 if (isClipboardStub(window2.navigator.clipboard)) 52857 return window2.navigator.clipboard[ClipboardStubControl]; 52858 let realClipboard = Object.getOwnPropertyDescriptor(window2.navigator, "clipboard"), stub, control = { 52859 resetClipboardStub: () => { 52860 stub = createClipboardStub(window2, control); 52861 }, 52862 detachClipboardStub: () => { 52863 realClipboard ? Object.defineProperty(window2.navigator, "clipboard", realClipboard) : Object.defineProperty(window2.navigator, "clipboard", { 52864 value: void 0, 52865 configurable: !0 52866 }); 52867 } 52868 }; 52869 return stub = createClipboardStub(window2, control), Object.defineProperty(window2.navigator, "clipboard", { 52870 get: () => stub, 52871 configurable: !0 52872 }), stub[ClipboardStubControl]; 52873} 52874function resetClipboardStubOnView(window2) { 52875 isClipboardStub(window2.navigator.clipboard) && window2.navigator.clipboard[ClipboardStubControl].resetClipboardStub(); 52876} 52877function detachClipboardStubFromView(window2) { 52878 isClipboardStub(window2.navigator.clipboard) && window2.navigator.clipboard[ClipboardStubControl].detachClipboardStub(); 52879} 52880async function readDataTransferFromClipboard(document13) { 52881 let window2 = document13.defaultView, clipboard = window2?.navigator.clipboard, items = clipboard && await clipboard.read(); 52882 if (!items) 52883 throw new Error("The Clipboard API is unavailable."); 52884 let dt = createDataTransfer(window2); 52885 for (let item of items) 52886 for (let type5 of item.types) 52887 dt.setData(type5, await item.getType(type5).then((b) => readBlobText(b, window2.FileReader))); 52888 return dt; 52889} 52890async function writeDataTransferToClipboard(document13, clipboardData) { 52891 let window2 = getWindow(document13), clipboard = window2.navigator.clipboard, items = []; 52892 for (let i = 0; i < clipboardData.items.length; i++) { 52893 let dtItem = clipboardData.items[i], blob = await getBlobFromDataTransferItem(window2, dtItem); 52894 items.push(createClipboardItem(window2, blob)); 52895 } 52896 if (!(clipboard && await clipboard.write(items).then( 52897 () => !0, 52898 // Can happen with other implementations that e.g. require permissions 52899 /* istanbul ignore next */ 52900 () => !1 52901 ))) 52902 throw new Error("The Clipboard API is unavailable."); 52903} 52904var g = globalThis; 52905typeof g.afterEach == "function" && g.afterEach(() => { 52906 typeof globalThis.window < "u" && resetClipboardStubOnView(globalThis.window); 52907}); 52908typeof g.afterAll == "function" && g.afterAll(() => { 52909 typeof globalThis.window < "u" && detachClipboardStubFromView(globalThis.window); 52910}); 52911
vendor: 357 bytes, lines 52912-52923
52912// ../../node_modules/@testing-library/user-event/dist/esm/utils/focus/selector.js 52913var FOCUSABLE_SELECTOR = [ 52914 "input:not([type=hidden]):not([disabled])", 52915 "button:not([disabled])", 52916 "select:not([disabled])", 52917 "textarea:not([disabled])", 52918 '[contenteditable=""]', 52919 '[contenteditable="true"]', 52920 "a[href]", 52921 "[tabindex]:not([disabled])" 52922].join(", "); 52923
vendor: 167 bytes, lines 52924-52928
52924// ../../node_modules/@testing-library/user-event/dist/esm/utils/focus/isFocusable.js 52925function isFocusable(element) { 52926 return element.matches(FOCUSABLE_SELECTOR); 52927} 52928
vendor: 167 bytes, lines 52929-52933
52929// ../../node_modules/@testing-library/user-event/dist/esm/utils/misc/cloneEvent.js 52930function cloneEvent(event) { 52931 return new event.constructor(event.type, event); 52932} 52933
vendor: 782 bytes, lines 52934-52955
52934// ../../node_modules/@testing-library/user-event/dist/esm/utils/misc/isDisabled.js 52935function isDisabled2(element) { 52936 for (let el = element; el; el = el.parentElement) 52937 if (isElementType(el, [ 52938 "button", 52939 "input", 52940 "select", 52941 "textarea", 52942 "optgroup", 52943 "option" 52944 ])) { 52945 if (el.hasAttribute("disabled")) 52946 return !0; 52947 } else if (isElementType(el, "fieldset")) { 52948 var _el_querySelector; 52949 if (el.hasAttribute("disabled") && !(!((_el_querySelector = el.querySelector(":scope > legend")) === null || _el_querySelector === void 0) && _el_querySelector.contains(element))) 52950 return !0; 52951 } else if (el.tagName.includes("-") && el.constructor.formAssociated && el.hasAttribute("disabled")) 52952 return !0; 52953 return !1; 52954} 52955
vendor: 680 bytes, lines 52956-52971
52956// ../../node_modules/@testing-library/user-event/dist/esm/utils/focus/getActiveElement.js 52957function getActiveElement(document13) { 52958 let activeElement = document13.activeElement; 52959 return activeElement?.shadowRoot ? getActiveElement(activeElement.shadowRoot) : isDisabled2(activeElement) ? document13.ownerDocument ? ( 52960 /* istanbul ignore next */ 52961 document13.ownerDocument.body 52962 ) : document13.body : activeElement; 52963} 52964function getActiveElementOrBody(document13) { 52965 var _getActiveElement; 52966 return (_getActiveElement = getActiveElement(document13)) !== null && _getActiveElement !== void 0 ? _getActiveElement : ( 52967 /* istanbul ignore next */ 52968 document13.body 52969 ); 52970} 52971
vendor: 276 bytes, lines 52972-52981
52972// ../../node_modules/@testing-library/user-event/dist/esm/utils/misc/findClosest.js 52973function findClosest(element, callback) { 52974 let el = element; 52975 do { 52976 if (callback(el)) 52977 return el; 52978 el = el.parentElement; 52979 } while (el && el !== element.ownerDocument.body); 52980} 52981
vendor: 562 bytes, lines 52982-52993
52982// ../../node_modules/@testing-library/user-event/dist/esm/utils/edit/isContentEditable.js 52983function isContentEditable(element) { 52984 return element.hasAttribute("contenteditable") && (element.getAttribute("contenteditable") == "true" || element.getAttribute("contenteditable") == ""); 52985} 52986function getContentEditable(node2) { 52987 let element = getElement(node2); 52988 return element && (element.closest('[contenteditable=""]') || element.closest('[contenteditable="true"]')); 52989} 52990function getElement(node2) { 52991 return node2.nodeType === 1 ? node2 : node2.parentElement; 52992} 52993
vendor: 682 bytes, lines 52994-53001
52994// ../../node_modules/@testing-library/user-event/dist/esm/utils/click/isClickableInput.js 52995var clickableInputTypes = (function(clickableInputTypes2) { 52996 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; 52997})(clickableInputTypes || {}); 52998function isClickableInput(element) { 52999 return isElementType(element, "button") || isElementType(element, "input") && element.type in clickableInputTypes; 53000} 53001
vendor: 957 bytes, lines 53002-53012
53002// ../../node_modules/@testing-library/user-event/dist/esm/utils/edit/isEditable.js 53003function isEditable(element) { 53004 return isEditableInputOrTextArea(element) && !element.readOnly || isContentEditable(element); 53005} 53006var editableInputTypes = (function(editableInputTypes2) { 53007 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; 53008})(editableInputTypes || {}); 53009function isEditableInputOrTextArea(element) { 53010 return isElementType(element, "textarea") || isElementType(element, "input") && element.type in editableInputTypes; 53011} 53012
vendor: 337 bytes, lines 53013-53023
53013// ../../node_modules/@testing-library/user-event/dist/esm/utils/focus/selection.js 53014function hasOwnSelection(node2) { 53015 return isElement3(node2) && isEditableInputOrTextArea(node2); 53016} 53017function hasNoSelection(node2) { 53018 return isElement3(node2) && isClickableInput(node2); 53019} 53020function isElement3(node2) { 53021 return node2.nodeType === 1; 53022} 53023
vendor: 815 bytes, lines 53024-53039
53024// ../../node_modules/@testing-library/user-event/dist/esm/event/selection/updateSelectionOnFocus.js 53025function updateSelectionOnFocus(element) { 53026 let selection = element.ownerDocument.getSelection(); 53027 if (selection?.focusNode && hasOwnSelection(element)) { 53028 let contenteditable = getContentEditable(selection.focusNode); 53029 if (contenteditable) { 53030 if (!selection.isCollapsed) { 53031 var _contenteditable_firstChild; 53032 let focusNode = ((_contenteditable_firstChild = contenteditable.firstChild) === null || _contenteditable_firstChild === void 0 ? void 0 : _contenteditable_firstChild.nodeType) === 3 ? contenteditable.firstChild : contenteditable; 53033 selection.setBaseAndExtent(focusNode, 0, focusNode, 0); 53034 } 53035 } else 53036 selection.setBaseAndExtent(element, 0, element, 0); 53037 } 53038} 53039
vendor: 156 bytes, lines 53040-53044
53040// ../../node_modules/@testing-library/user-event/dist/esm/event/wrapEvent.js 53041function wrapEvent(cb, _element) { 53042 return getConfig2().eventWrapper(cb); 53043} 53044
vendor: 578 bytes, lines 53045-53053
53045// ../../node_modules/@testing-library/user-event/dist/esm/event/focus.js 53046function focusElement(element) { 53047 let target = findClosest(element, isFocusable), activeElement = getActiveElement(element.ownerDocument); 53048 (target ?? element.ownerDocument.body) !== activeElement && (target ? wrapEvent(() => target.focus()) : wrapEvent(() => activeElement?.blur()), updateSelectionOnFocus(target ?? element.ownerDocument.body)); 53049} 53050function blurElement(element) { 53051 !isFocusable(element) || !(getActiveElement(element.ownerDocument) === element) || wrapEvent(() => element.blur()); 53052} 53053
vendor: 106 bytes, lines 53054-53056
53054// ../../node_modules/@testing-library/user-event/dist/esm/event/behavior/registry.js 53055var behavior = {}; 53056
vendor: 652 bytes, lines 53057-53071
53057// ../../node_modules/@testing-library/user-event/dist/esm/event/behavior/click.js 53058behavior.click = (event, target, instance) => { 53059 let context = target.closest("button,input,label,select,textarea"), control = context && isElementType(context, "label") && context.control; 53060 if (control && control !== target) 53061 return () => { 53062 isFocusable(control) && (focusElement(control), instance.dispatchEvent(control, cloneEvent(event))); 53063 }; 53064 if (isElementType(target, "input", { 53065 type: "file" 53066 })) 53067 return () => { 53068 blurElement(target), target.dispatchEvent(new (getWindow(target)).Event("fileDialog")), focusElement(target); 53069 }; 53070}; 53071
vendor: 2,752 bytes, lines 53072-53133
53072// ../../node_modules/@testing-library/user-event/dist/esm/document/UI.js 53073var UIValue = Symbol("Displayed value in UI"), UISelection = Symbol("Displayed selection in UI"), InitialValue = Symbol("Initial value to compare on blur"); 53074function isUIValue(value) { 53075 return typeof value == "object" && UIValue in value; 53076} 53077function isUISelectionStart(start2) { 53078 return !!start2 && typeof start2 == "object" && UISelection in start2; 53079} 53080function setUIValue(element, value) { 53081 element[InitialValue] === void 0 && (element[InitialValue] = element.value), element[UIValue] = value, element.value = Object.assign(new String(value), { 53082 [UIValue]: !0 53083 }); 53084} 53085function getUIValue(element) { 53086 return element[UIValue] === void 0 ? element.value : String(element[UIValue]); 53087} 53088function setUIValueClean(element) { 53089 element[UIValue] = void 0; 53090} 53091function clearInitialValue(element) { 53092 element[InitialValue] = void 0; 53093} 53094function getInitialValue(element) { 53095 return element[InitialValue]; 53096} 53097function setUISelectionRaw(element, selection) { 53098 element[UISelection] = selection; 53099} 53100function setUISelection(element, { focusOffset: focusOffsetParam, anchorOffset: anchorOffsetParam = focusOffsetParam }, mode = "replace") { 53101 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); 53102 if (element[UISelection] = { 53103 anchorOffset, 53104 focusOffset 53105 }, element.selectionStart === startOffset && element.selectionEnd === endOffset) 53106 return; 53107 let startObj = Object.assign(new Number(startOffset), { 53108 [UISelection]: !0 53109 }); 53110 try { 53111 element.setSelectionRange(startObj, endOffset); 53112 } catch { 53113 } 53114} 53115function getUISelection(element) { 53116 var _element_selectionStart, _element_selectionEnd, _element_UISelection; 53117 let sel = (_element_UISelection = element[UISelection]) !== null && _element_UISelection !== void 0 ? _element_UISelection : { 53118 anchorOffset: (_element_selectionStart = element.selectionStart) !== null && _element_selectionStart !== void 0 ? _element_selectionStart : 0, 53119 focusOffset: (_element_selectionEnd = element.selectionEnd) !== null && _element_selectionEnd !== void 0 ? _element_selectionEnd : 0 53120 }; 53121 return { 53122 ...sel, 53123 startOffset: Math.min(sel.anchorOffset, sel.focusOffset), 53124 endOffset: Math.max(sel.anchorOffset, sel.focusOffset) 53125 }; 53126} 53127function hasUISelection(element) { 53128 return !!element[UISelection]; 53129} 53130function setUISelectionClean(element) { 53131 element[UISelection] = void 0; 53132} 53133
vendor: 1,125 bytes, lines 53134-53155
53134// ../../node_modules/@testing-library/user-event/dist/esm/utils/edit/timeValue.js 53135var parseInt2 = globalThis.parseInt; 53136function buildTimeValue(value) { 53137 let onlyDigitsValue = value.replace(/\D/g, ""); 53138 if (onlyDigitsValue.length < 2) 53139 return value; 53140 let firstDigit = parseInt2(onlyDigitsValue[0], 10), secondDigit = parseInt2(onlyDigitsValue[1], 10); 53141 if (firstDigit >= 3 || firstDigit === 2 && secondDigit >= 4) { 53142 let index4; 53143 return firstDigit >= 3 ? index4 = 1 : index4 = 2, build2(onlyDigitsValue, index4); 53144 } 53145 return value.length === 2 ? value : build2(onlyDigitsValue, 2); 53146} 53147function build2(onlyDigitsValue, index4) { 53148 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); 53149 return `${validHours.toString().padStart(2, "0")}:${validMinutes.toString().padStart(2, "0")}`; 53150} 53151function isValidDateOrTimeValue(element, value) { 53152 let clone3 = element.cloneNode(); 53153 return clone3.value = value, clone3.value === value; 53154} 53155
vendor: 933 bytes, lines 53156-53168
53156// ../../node_modules/@testing-library/user-event/dist/esm/utils/edit/maxLength.js 53157var maxLengthSupportedTypes = (function(maxLengthSupportedTypes2) { 53158 return maxLengthSupportedTypes2.email = "email", maxLengthSupportedTypes2.password = "password", maxLengthSupportedTypes2.search = "search", maxLengthSupportedTypes2.telephone = "telephone", maxLengthSupportedTypes2.text = "text", maxLengthSupportedTypes2.url = "url", maxLengthSupportedTypes2; 53159})(maxLengthSupportedTypes || {}); 53160function getMaxLength(element) { 53161 var _element_getAttribute; 53162 let attr = (_element_getAttribute = element.getAttribute("maxlength")) !== null && _element_getAttribute !== void 0 ? _element_getAttribute : ""; 53163 return /^\d+$/.test(attr) && Number(attr) >= 0 ? Number(attr) : void 0; 53164} 53165function supportsMaxLength(element) { 53166 return isElementType(element, "textarea") || isElementType(element, "input") && element.type in maxLengthSupportedTypes; 53167} 53168
vendor: 3,074 bytes, lines 53169-53253
53169// ../../node_modules/@testing-library/user-event/dist/esm/utils/focus/cursor.js 53170function getNextCursorPosition(node2, offset3, direction, inputType) { 53171 if (isTextNode(node2) && offset3 + direction >= 0 && offset3 + direction <= node2.nodeValue.length) 53172 return { 53173 node: node2, 53174 offset: offset3 + direction 53175 }; 53176 let nextNode = getNextCharacterContentNode(node2, offset3, direction); 53177 if (nextNode) { 53178 if (isTextNode(nextNode)) 53179 return { 53180 node: nextNode, 53181 offset: direction > 0 ? Math.min(1, nextNode.nodeValue.length) : Math.max(nextNode.nodeValue.length - 1, 0) 53182 }; 53183 if (isElementType(nextNode, "br")) { 53184 let nextPlusOne = getNextCharacterContentNode(nextNode, void 0, direction); 53185 return nextPlusOne ? isTextNode(nextPlusOne) ? { 53186 node: nextPlusOne, 53187 offset: direction > 0 ? 0 : nextPlusOne.nodeValue.length 53188 } : direction < 0 && isElementType(nextPlusOne, "br") ? { 53189 node: nextNode.parentNode, 53190 offset: getOffset(nextNode) 53191 } : { 53192 node: nextPlusOne.parentNode, 53193 offset: getOffset(nextPlusOne) + (direction > 0 ? 0 : 1) 53194 } : direction < 0 && inputType === "deleteContentBackward" ? { 53195 node: nextNode.parentNode, 53196 offset: getOffset(nextNode) 53197 } : void 0; 53198 } else 53199 return { 53200 node: nextNode.parentNode, 53201 offset: getOffset(nextNode) + (direction > 0 ? 1 : 0) 53202 }; 53203 } 53204} 53205function getNextCharacterContentNode(node2, offset3, direction) { 53206 let nextOffset = Number(offset3) + (direction < 0 ? -1 : 0); 53207 return offset3 !== void 0 && isElement4(node2) && nextOffset >= 0 && nextOffset < node2.children.length && (node2 = node2.children[nextOffset]), walkNodes(node2, direction === 1 ? "next" : "previous", isTreatedAsCharacterContent); 53208} 53209function isTreatedAsCharacterContent(node2) { 53210 if (isTextNode(node2)) 53211 return !0; 53212 if (isElement4(node2)) { 53213 if (isElementType(node2, [ 53214 "input", 53215 "textarea" 53216 ])) 53217 return node2.type !== "hidden"; 53218 if (isElementType(node2, "br")) 53219 return !0; 53220 } 53221 return !1; 53222} 53223function getOffset(node2) { 53224 let i = 0; 53225 for (; node2.previousSibling; ) 53226 i++, node2 = node2.previousSibling; 53227 return i; 53228} 53229function isElement4(node2) { 53230 return node2.nodeType === 1; 53231} 53232function isTextNode(node2) { 53233 return node2.nodeType === 3; 53234} 53235function walkNodes(node2, direction, callback) { 53236 for (; ; ) { 53237 var _node_ownerDocument; 53238 let sibling = node2[`${direction}Sibling`]; 53239 if (sibling) { 53240 if (node2 = getDescendant(sibling, direction === "next" ? "first" : "last"), callback(node2)) 53241 return node2; 53242 } 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))) 53243 node2 = node2.parentNode; 53244 else 53245 break; 53246 } 53247} 53248function getDescendant(node2, direction) { 53249 for (; node2.hasChildNodes(); ) 53250 node2 = node2[`${direction}Child`]; 53251 return node2; 53252} 53253
vendor: 1,596 bytes, lines 53254-53281
53254// ../../node_modules/@testing-library/user-event/dist/esm/document/trackValue.js 53255var TrackChanges = Symbol("Track programmatic changes for React workaround"); 53256function isReact17Element(element) { 53257 return Object.getOwnPropertyNames(element).some((k) => k.startsWith("__react")) && getWindow(element).REACT_VERSION === 17; 53258} 53259function startTrackValue(element) { 53260 isReact17Element(element) && (element[TrackChanges] = { 53261 previousValue: String(element.value), 53262 tracked: [] 53263 }); 53264} 53265function trackOrSetValue(element, v) { 53266 var _element_TrackChanges_tracked, _element_TrackChanges; 53267 (_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, { 53268 focusOffset: v.length 53269 })); 53270} 53271function commitValueAfterInput(element, cursorOffset) { 53272 var _changes_tracked; 53273 let changes = element[TrackChanges]; 53274 if (element[TrackChanges] = void 0, !(!(changes == null || (_changes_tracked = changes.tracked) === null || _changes_tracked === void 0) && _changes_tracked.length)) 53275 return; 53276 let isJustReactStateUpdate = changes.tracked.length === 2 && changes.tracked[0] === changes.previousValue && changes.tracked[1] === element.value; 53277 isJustReactStateUpdate || setUIValueClean(element), hasUISelection(element) && setUISelection(element, { 53278 focusOffset: isJustReactStateUpdate ? cursorOffset : element.value.length 53279 }); 53280} 53281
vendor: 630 bytes, lines 53282-53299
53282// ../../node_modules/@testing-library/user-event/dist/esm/event/selection/getTargetTypeAndSelection.js 53283function getTargetTypeAndSelection(node2) { 53284 let element = getElement2(node2); 53285 if (element && hasOwnSelection(element)) 53286 return { 53287 type: "input", 53288 selection: getUISelection(element) 53289 }; 53290 let selection = element?.ownerDocument.getSelection(); 53291 return { 53292 type: getContentEditable(node2) && selection?.anchorNode && getContentEditable(selection.anchorNode) ? "contenteditable" : "default", 53293 selection 53294 }; 53295} 53296function getElement2(node2) { 53297 return node2.nodeType === 1 ? node2 : node2.parentElement; 53298} 53299
vendor: 543 bytes, lines 53300-53310
53300// ../../node_modules/@testing-library/user-event/dist/esm/event/selection/getInputRange.js 53301function getInputRange(focusNode) { 53302 let typeAndSelection = getTargetTypeAndSelection(focusNode); 53303 if (typeAndSelection.type === "input") 53304 return typeAndSelection.selection; 53305 if (typeAndSelection.type === "contenteditable") { 53306 var _typeAndSelection_selection; 53307 return (_typeAndSelection_selection = typeAndSelection.selection) === null || _typeAndSelection_selection === void 0 ? void 0 : _typeAndSelection_selection.getRangeAt(0); 53308 } 53309} 53310
vendor: 782 bytes, lines 53311-53321
53311// ../../node_modules/@testing-library/user-event/dist/esm/event/selection/setSelection.js 53312function setSelection({ focusNode, focusOffset, anchorNode = focusNode, anchorOffset = focusOffset }) { 53313 var _anchorNode_ownerDocument_getSelection, _anchorNode_ownerDocument; 53314 if (getTargetTypeAndSelection(focusNode).type === "input") 53315 return setUISelection(focusNode, { 53316 anchorOffset, 53317 focusOffset 53318 }); 53319 (_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); 53320} 53321
vendor: 4,542 bytes, lines 53322-53409
53322// ../../node_modules/@testing-library/user-event/dist/esm/event/input.js 53323function isDateOrTime(element) { 53324 return isElementType(element, "input") && [ 53325 "date", 53326 "time" 53327 ].includes(element.type); 53328} 53329function input(instance, element, data, inputType = "insertText") { 53330 let inputRange = getInputRange(element); 53331 inputRange && (!isDateOrTime(element) && !instance.dispatchUIEvent(element, "beforeinput", { 53332 inputType, 53333 data 53334 }) || ("startContainer" in inputRange ? editContenteditable(instance, element, inputRange, data, inputType) : editInputElement(instance, element, inputRange, data, inputType))); 53335} 53336function editContenteditable(instance, element, inputRange, data, inputType) { 53337 let del = !1; 53338 if (!inputRange.collapsed) 53339 del = !0, inputRange.deleteContents(); 53340 else if ([ 53341 "deleteContentBackward", 53342 "deleteContentForward" 53343 ].includes(inputType)) { 53344 let nextPosition = getNextCursorPosition(inputRange.startContainer, inputRange.startOffset, inputType === "deleteContentBackward" ? -1 : 1, inputType); 53345 if (nextPosition) { 53346 del = !0; 53347 let delRange = inputRange.cloneRange(); 53348 delRange.comparePoint(nextPosition.node, nextPosition.offset) < 0 ? delRange.setStart(nextPosition.node, nextPosition.offset) : delRange.setEnd(nextPosition.node, nextPosition.offset), delRange.deleteContents(); 53349 } 53350 } 53351 if (data) 53352 if (inputRange.endContainer.nodeType === 3) { 53353 let offset3 = inputRange.endOffset; 53354 inputRange.endContainer.insertData(offset3, data), inputRange.setStart(inputRange.endContainer, offset3 + data.length), inputRange.setEnd(inputRange.endContainer, offset3 + data.length); 53355 } else { 53356 let text = element.ownerDocument.createTextNode(data); 53357 inputRange.insertNode(text), inputRange.setStart(text, data.length), inputRange.setEnd(text, data.length); 53358 } 53359 (del || data) && instance.dispatchUIEvent(element, "input", { 53360 inputType 53361 }); 53362} 53363function editInputElement(instance, element, inputRange, data, inputType) { 53364 let dataToInsert = data; 53365 if (supportsMaxLength(element)) { 53366 let maxLength = getMaxLength(element); 53367 if (maxLength !== void 0 && data.length > 0) { 53368 let spaceUntilMaxLength = maxLength - element.value.length; 53369 if (spaceUntilMaxLength > 0) 53370 dataToInsert = data.substring(0, spaceUntilMaxLength); 53371 else 53372 return; 53373 } 53374 } 53375 let { newValue, newOffset, oldValue } = calculateNewValue(dataToInsert, element, inputRange, inputType); 53376 newValue === oldValue && newOffset === inputRange.startOffset && newOffset === inputRange.endOffset || isElementType(element, "input", { 53377 type: "number" 53378 }) && !isValidNumberInput(newValue) || (setUIValue(element, newValue), setSelection({ 53379 focusNode: element, 53380 anchorOffset: newOffset, 53381 focusOffset: newOffset 53382 }), isDateOrTime(element) ? isValidDateOrTimeValue(element, newValue) && (commitInput(instance, element, newOffset, {}), instance.dispatchUIEvent(element, "change"), clearInitialValue(element)) : commitInput(instance, element, newOffset, { 53383 data, 53384 inputType 53385 })); 53386} 53387function calculateNewValue(inputData, node2, { startOffset, endOffset }, inputType) { 53388 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; 53389 if (isElementType(node2, "input", { 53390 type: "time" 53391 })) { 53392 let builtValue = buildTimeValue(newValue); 53393 builtValue !== "" && isValidDateOrTimeValue(node2, builtValue) && (newValue = builtValue, newOffset = builtValue.length); 53394 } 53395 return { 53396 oldValue: value, 53397 newValue, 53398 newOffset 53399 }; 53400} 53401function commitInput(instance, element, newOffset, inputInit) { 53402 instance.dispatchUIEvent(element, "input", inputInit), commitValueAfterInput(element, newOffset); 53403} 53404function isValidNumberInput(value) { 53405 var _value_match, _value_match1; 53406 let valueParts = value.split("e", 2); 53407 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])); 53408} 53409
vendor: 205 bytes, lines 53410-53414
53410// ../../node_modules/@testing-library/user-event/dist/esm/event/behavior/cut.js 53411behavior.cut = (event, target, instance) => () => { 53412 isEditable(target) && input(instance, target, "", "deleteByCut"); 53413}; 53414
vendor: 236 bytes, lines 53415-53419
53415// ../../node_modules/@testing-library/user-event/dist/esm/document/getValueOrTextContent.js 53416function getValueOrTextContent(element) { 53417 return element ? isContentEditable(element) ? element.textContent : getUIValue(element) : null; 53418} 53419
vendor: 385 bytes, lines 53420-53430
53420// ../../node_modules/@testing-library/user-event/dist/esm/utils/misc/isVisible.js 53421function isVisible(element) { 53422 let window2 = getWindow(element); 53423 for (let el = element; el?.ownerDocument; el = el.parentElement) { 53424 let { display: display2, visibility } = window2.getComputedStyle(el); 53425 if (display2 === "none" || visibility === "hidden") 53426 return !1; 53427 } 53428 return !0; 53429} 53430
vendor: 1,872 bytes, lines 53431-53469
53431// ../../node_modules/@testing-library/user-event/dist/esm/utils/focus/getTabDestination.js 53432function getTabDestination(activeElement, shift) { 53433 let document13 = activeElement.ownerDocument, focusableElements = document13.querySelectorAll(FOCUSABLE_SELECTOR), enabledElements = Array.from(focusableElements).filter((el) => el === activeElement || !(Number(el.getAttribute("tabindex")) < 0 || isDisabled2(el))); 53434 Number(activeElement.getAttribute("tabindex")) >= 0 && enabledElements.sort((a3, b) => { 53435 let i = Number(a3.getAttribute("tabindex")), j = Number(b.getAttribute("tabindex")); 53436 return i === j ? 0 : i === 0 ? 1 : j === 0 ? -1 : i - j; 53437 }); 53438 let checkedRadio = {}, prunedElements = [ 53439 document13.body 53440 ], activeRadioGroup = isElementType(activeElement, "input", { 53441 type: "radio" 53442 }) ? activeElement.name : void 0; 53443 enabledElements.forEach((currentElement) => { 53444 let el = currentElement; 53445 if (isElementType(el, "input", { 53446 type: "radio" 53447 }) && el.name) { 53448 if (el === activeElement) { 53449 prunedElements.push(el); 53450 return; 53451 } else if (el.name === activeRadioGroup) 53452 return; 53453 if (el.checked) { 53454 prunedElements = prunedElements.filter((e) => !isElementType(e, "input", { 53455 type: "radio", 53456 name: el.name 53457 })), prunedElements.push(el), checkedRadio[el.name] = el; 53458 return; 53459 } 53460 if (typeof checkedRadio[el.name] < "u") 53461 return; 53462 } 53463 prunedElements.push(el); 53464 }); 53465 for (let index4 = prunedElements.findIndex((el) => el === activeElement); ; ) 53466 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])) 53467 return prunedElements[index4]; 53468} 53469
vendor: 888 bytes, lines 53470-53492
53470// ../../node_modules/@testing-library/user-event/dist/esm/event/selection/moveSelection.js 53471function moveSelection(node2, direction) { 53472 if (hasOwnSelection(node2)) { 53473 let selection = getUISelection(node2); 53474 setSelection({ 53475 focusNode: node2, 53476 focusOffset: selection.startOffset === selection.endOffset ? selection.focusOffset + direction : direction < 0 ? selection.startOffset : selection.endOffset 53477 }); 53478 } else { 53479 let selection = node2.ownerDocument.getSelection(); 53480 if (!selection?.focusNode) 53481 return; 53482 if (selection.isCollapsed) { 53483 let nextPosition = getNextCursorPosition(selection.focusNode, selection.focusOffset, direction); 53484 nextPosition && setSelection({ 53485 focusNode: nextPosition.node, 53486 focusOffset: nextPosition.offset 53487 }); 53488 } else 53489 selection[direction < 0 ? "collapseToStart" : "collapseToEnd"](); 53490 } 53491} 53492
vendor: 1,168 bytes, lines 53493-53516
53493// ../../node_modules/@testing-library/user-event/dist/esm/event/selection/selectAll.js 53494function selectAll(target) { 53495 if (hasOwnSelection(target)) 53496 return setSelection({ 53497 focusNode: target, 53498 anchorOffset: 0, 53499 focusOffset: getUIValue(target).length 53500 }); 53501 var _getContentEditable; 53502 let focusNode = (_getContentEditable = getContentEditable(target)) !== null && _getContentEditable !== void 0 ? _getContentEditable : target.ownerDocument.body; 53503 setSelection({ 53504 focusNode, 53505 anchorOffset: 0, 53506 focusOffset: focusNode.childNodes.length 53507 }); 53508} 53509function isAllSelected(target) { 53510 if (hasOwnSelection(target)) 53511 return getUISelection(target).startOffset === 0 && getUISelection(target).endOffset === getUIValue(target).length; 53512 var _getContentEditable; 53513 let focusNode = (_getContentEditable = getContentEditable(target)) !== null && _getContentEditable !== void 0 ? _getContentEditable : target.ownerDocument.body, selection = target.ownerDocument.getSelection(); 53514 return selection?.anchorNode === focusNode && selection.focusNode === focusNode && selection.anchorOffset === 0 && selection.focusOffset === focusNode.childNodes.length; 53515} 53516
vendor: 686 bytes, lines 53517-53534
53517// ../../node_modules/@testing-library/user-event/dist/esm/event/selection/setSelectionRange.js 53518function setSelectionRange(element, anchorOffset, focusOffset) { 53519 var _element_firstChild; 53520 if (hasOwnSelection(element)) 53521 return setSelection({ 53522 focusNode: element, 53523 anchorOffset, 53524 focusOffset 53525 }); 53526 if (isContentEditable(element) && ((_element_firstChild = element.firstChild) === null || _element_firstChild === void 0 ? void 0 : _element_firstChild.nodeType) === 3) 53527 return setSelection({ 53528 focusNode: element.firstChild, 53529 anchorOffset, 53530 focusOffset 53531 }); 53532 throw new Error("Not implemented. The result of this interaction is unreliable."); 53533} 53534
vendor: 656 bytes, lines 53535-53547
53535// ../../node_modules/@testing-library/user-event/dist/esm/event/radio.js 53536function walkRadio(instance, el, direction) { 53537 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])')); 53538 for (let i = group.findIndex((e) => e === el) + direction; ; i += direction) { 53539 if (group[i] || (i = direction > 0 ? 0 : group.length - 1), group[i] === el) 53540 return; 53541 if (!isDisabled2(group[i])) { 53542 focusElement(group[i]), instance.dispatchUIEvent(group[i], "click"); 53543 return; 53544 } 53545 } 53546} 53547
vendor: 3,265 bytes, lines 53548-53635
53548// ../../node_modules/@testing-library/user-event/dist/esm/event/behavior/keydown.js 53549behavior.keydown = (event, target, instance) => { 53550 var _keydownBehavior_event_key, _keydownBehavior_event_key1; 53551 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); 53552}; 53553var keydownBehavior = { 53554 ArrowDown: (event, target, instance) => { 53555 if (isElementType(target, "input", { 53556 type: "radio" 53557 })) 53558 return () => walkRadio(instance, target, 1); 53559 }, 53560 ArrowLeft: (event, target, instance) => isElementType(target, "input", { 53561 type: "radio" 53562 }) ? () => walkRadio(instance, target, -1) : () => moveSelection(target, -1), 53563 ArrowRight: (event, target, instance) => isElementType(target, "input", { 53564 type: "radio" 53565 }) ? () => walkRadio(instance, target, 1) : () => moveSelection(target, 1), 53566 ArrowUp: (event, target, instance) => { 53567 if (isElementType(target, "input", { 53568 type: "radio" 53569 })) 53570 return () => walkRadio(instance, target, -1); 53571 }, 53572 Backspace: (event, target, instance) => { 53573 if (isEditable(target)) 53574 return () => { 53575 input(instance, target, "", "deleteContentBackward"); 53576 }; 53577 }, 53578 Delete: (event, target, instance) => { 53579 if (isEditable(target)) 53580 return () => { 53581 input(instance, target, "", "deleteContentForward"); 53582 }; 53583 }, 53584 End: (event, target) => { 53585 if (isElementType(target, [ 53586 "input", 53587 "textarea" 53588 ]) || isContentEditable(target)) 53589 return () => { 53590 var _getValueOrTextContent, _getValueOrTextContent_length; 53591 let newPos = (_getValueOrTextContent_length = (_getValueOrTextContent = getValueOrTextContent(target)) === null || _getValueOrTextContent === void 0 ? void 0 : _getValueOrTextContent.length) !== null && _getValueOrTextContent_length !== void 0 ? _getValueOrTextContent_length : ( 53592 /* istanbul ignore next */ 53593 0 53594 ); 53595 setSelectionRange(target, newPos, newPos); 53596 }; 53597 }, 53598 Home: (event, target) => { 53599 if (isElementType(target, [ 53600 "input", 53601 "textarea" 53602 ]) || isContentEditable(target)) 53603 return () => { 53604 setSelectionRange(target, 0, 0); 53605 }; 53606 }, 53607 PageDown: (event, target) => { 53608 if (isElementType(target, [ 53609 "input" 53610 ])) 53611 return () => { 53612 let newPos = getUIValue(target).length; 53613 setSelectionRange(target, newPos, newPos); 53614 }; 53615 }, 53616 PageUp: (event, target) => { 53617 if (isElementType(target, [ 53618 "input" 53619 ])) 53620 return () => { 53621 setSelectionRange(target, 0, 0); 53622 }; 53623 }, 53624 Tab: (event, target, instance) => () => { 53625 let dest = getTabDestination(target, instance.system.keyboard.modifiers.Shift); 53626 focusElement(dest), hasOwnSelection(dest) && setUISelection(dest, { 53627 anchorOffset: 0, 53628 focusOffset: dest.value.length 53629 }); 53630 } 53631}, combinationBehavior = (event, target, instance) => { 53632 if (event.code === "KeyA" && instance.system.keyboard.modifiers.Control) 53633 return () => selectAll(target); 53634}; 53635
vendor: 1,360 bytes, lines 53636-53671
53636// ../../node_modules/@testing-library/user-event/dist/esm/event/behavior/keypress.js 53637behavior.keypress = (event, target, instance) => { 53638 if (event.key === "Enter") { 53639 if (isElementType(target, "button") || isElementType(target, "input") && ClickInputOnEnter.includes(target.type) || isElementType(target, "a") && target.href) 53640 return () => { 53641 instance.dispatchUIEvent(target, "click"); 53642 }; 53643 if (isElementType(target, "input")) { 53644 let form = target.form, submit = form?.querySelector('input[type="submit"], button:not([type]), button[type="submit"]'); 53645 return submit ? () => instance.dispatchUIEvent(submit, "click") : form && SubmitSingleInputOnEnter.includes(target.type) && form.querySelectorAll("input").length === 1 ? () => instance.dispatchUIEvent(form, "submit") : void 0; 53646 } 53647 } 53648 if (isEditable(target)) { 53649 let inputType = event.key === "Enter" ? isContentEditable(target) && !instance.system.keyboard.modifiers.Shift ? "insertParagraph" : "insertLineBreak" : "insertText", inputData = event.key === "Enter" ? ` 53650` : event.key; 53651 return () => input(instance, target, inputData, inputType); 53652 } 53653}; 53654var ClickInputOnEnter = [ 53655 "button", 53656 "color", 53657 "file", 53658 "image", 53659 "reset", 53660 "submit" 53661], SubmitSingleInputOnEnter = [ 53662 "email", 53663 "month", 53664 "password", 53665 "search", 53666 "tel", 53667 "text", 53668 "url", 53669 "week" 53670]; 53671
vendor: 523 bytes, lines 53672-53683
53672// ../../node_modules/@testing-library/user-event/dist/esm/event/behavior/keyup.js 53673behavior.keyup = (event, target, instance) => { 53674 var _keyupBehavior_event_key; 53675 return (_keyupBehavior_event_key = keyupBehavior[event.key]) === null || _keyupBehavior_event_key === void 0 ? void 0 : _keyupBehavior_event_key.call(keyupBehavior, event, target, instance); 53676}; 53677var keyupBehavior = { 53678 " ": (event, target, instance) => { 53679 if (isClickableInput(target)) 53680 return () => instance.dispatchUIEvent(target, "click"); 53681 } 53682}; 53683
vendor: 456 bytes, lines 53684-53693
53684// ../../node_modules/@testing-library/user-event/dist/esm/event/behavior/paste.js 53685behavior.paste = (event, target, instance) => { 53686 if (isEditable(target)) 53687 return () => { 53688 var _event_clipboardData; 53689 let insertData = (_event_clipboardData = event.clipboardData) === null || _event_clipboardData === void 0 ? void 0 : _event_clipboardData.getData("text"); 53690 insertData && input(instance, target, insertData, "insertFromPaste"); 53691 }; 53692}; 53693
vendor: 4,743 bytes, lines 53694-53970
53694// ../../node_modules/@testing-library/user-event/dist/esm/event/eventMap.js 53695var eventMap2 = { 53696 auxclick: { 53697 EventType: "PointerEvent", 53698 defaultInit: { 53699 bubbles: !0, 53700 cancelable: !0, 53701 composed: !0 53702 } 53703 }, 53704 beforeinput: { 53705 EventType: "InputEvent", 53706 defaultInit: { 53707 bubbles: !0, 53708 cancelable: !0, 53709 composed: !0 53710 } 53711 }, 53712 blur: { 53713 EventType: "FocusEvent", 53714 defaultInit: { 53715 bubbles: !1, 53716 cancelable: !1, 53717 composed: !0 53718 } 53719 }, 53720 click: { 53721 EventType: "PointerEvent", 53722 defaultInit: { 53723 bubbles: !0, 53724 cancelable: !0, 53725 composed: !0 53726 } 53727 }, 53728 contextmenu: { 53729 EventType: "PointerEvent", 53730 defaultInit: { 53731 bubbles: !0, 53732 cancelable: !0, 53733 composed: !0 53734 } 53735 }, 53736 copy: { 53737 EventType: "ClipboardEvent", 53738 defaultInit: { 53739 bubbles: !0, 53740 cancelable: !0, 53741 composed: !0 53742 } 53743 }, 53744 change: { 53745 EventType: "Event", 53746 defaultInit: { 53747 bubbles: !0, 53748 cancelable: !1 53749 } 53750 }, 53751 cut: { 53752 EventType: "ClipboardEvent", 53753 defaultInit: { 53754 bubbles: !0, 53755 cancelable: !0, 53756 composed: !0 53757 } 53758 }, 53759 dblclick: { 53760 EventType: "MouseEvent", 53761 defaultInit: { 53762 bubbles: !0, 53763 cancelable: !0, 53764 composed: !0 53765 } 53766 }, 53767 focus: { 53768 EventType: "FocusEvent", 53769 defaultInit: { 53770 bubbles: !1, 53771 cancelable: !1, 53772 composed: !0 53773 } 53774 }, 53775 focusin: { 53776 EventType: "FocusEvent", 53777 defaultInit: { 53778 bubbles: !0, 53779 cancelable: !1, 53780 composed: !0 53781 } 53782 }, 53783 focusout: { 53784 EventType: "FocusEvent", 53785 defaultInit: { 53786 bubbles: !0, 53787 cancelable: !1, 53788 composed: !0 53789 } 53790 }, 53791 keydown: { 53792 EventType: "KeyboardEvent", 53793 defaultInit: { 53794 bubbles: !0, 53795 cancelable: !0, 53796 composed: !0 53797 } 53798 }, 53799 keypress: { 53800 EventType: "KeyboardEvent", 53801 defaultInit: { 53802 bubbles: !0, 53803 cancelable: !0, 53804 composed: !0 53805 } 53806 }, 53807 keyup: { 53808 EventType: "KeyboardEvent", 53809 defaultInit: { 53810 bubbles: !0, 53811 cancelable: !0, 53812 composed: !0 53813 } 53814 }, 53815 paste: { 53816 EventType: "ClipboardEvent", 53817 defaultInit: { 53818 bubbles: !0, 53819 cancelable: !0, 53820 composed: !0 53821 } 53822 }, 53823 input: { 53824 EventType: "InputEvent", 53825 defaultInit: { 53826 bubbles: !0, 53827 cancelable: !1, 53828 composed: !0 53829 } 53830 }, 53831 mousedown: { 53832 EventType: "MouseEvent", 53833 defaultInit: { 53834 bubbles: !0, 53835 cancelable: !0, 53836 composed: !0 53837 } 53838 }, 53839 mouseenter: { 53840 EventType: "MouseEvent", 53841 defaultInit: { 53842 bubbles: !1, 53843 cancelable: !1, 53844 composed: !0 53845 } 53846 }, 53847 mouseleave: { 53848 EventType: "MouseEvent", 53849 defaultInit: { 53850 bubbles: !1, 53851 cancelable: !1, 53852 composed: !0 53853 } 53854 }, 53855 mousemove: { 53856 EventType: "MouseEvent", 53857 defaultInit: { 53858 bubbles: !0, 53859 cancelable: !0, 53860 composed: !0 53861 } 53862 }, 53863 mouseout: { 53864 EventType: "MouseEvent", 53865 defaultInit: { 53866 bubbles: !0, 53867 cancelable: !0, 53868 composed: !0 53869 } 53870 }, 53871 mouseover: { 53872 EventType: "MouseEvent", 53873 defaultInit: { 53874 bubbles: !0, 53875 cancelable: !0, 53876 composed: !0 53877 } 53878 }, 53879 mouseup: { 53880 EventType: "MouseEvent", 53881 defaultInit: { 53882 bubbles: !0, 53883 cancelable: !0, 53884 composed: !0 53885 } 53886 }, 53887 pointerover: { 53888 EventType: "PointerEvent", 53889 defaultInit: { 53890 bubbles: !0, 53891 cancelable: !0, 53892 composed: !0 53893 } 53894 }, 53895 pointerenter: { 53896 EventType: "PointerEvent", 53897 defaultInit: { 53898 bubbles: !1, 53899 cancelable: !1 53900 } 53901 }, 53902 pointerdown: { 53903 EventType: "PointerEvent", 53904 defaultInit: { 53905 bubbles: !0, 53906 cancelable: !0, 53907 composed: !0 53908 } 53909 }, 53910 pointermove: { 53911 EventType: "PointerEvent", 53912 defaultInit: { 53913 bubbles: !0, 53914 cancelable: !0, 53915 composed: !0 53916 } 53917 }, 53918 pointerup: { 53919 EventType: "PointerEvent", 53920 defaultInit: { 53921 bubbles: !0, 53922 cancelable: !0, 53923 composed: !0 53924 } 53925 }, 53926 pointercancel: { 53927 EventType: "PointerEvent", 53928 defaultInit: { 53929 bubbles: !0, 53930 cancelable: !1, 53931 composed: !0 53932 } 53933 }, 53934 pointerout: { 53935 EventType: "PointerEvent", 53936 defaultInit: { 53937 bubbles: !0, 53938 cancelable: !0, 53939 composed: !0 53940 } 53941 }, 53942 pointerleave: { 53943 EventType: "PointerEvent", 53944 defaultInit: { 53945 bubbles: !1, 53946 cancelable: !1 53947 } 53948 }, 53949 submit: { 53950 EventType: "Event", 53951 defaultInit: { 53952 bubbles: !0, 53953 cancelable: !0 53954 } 53955 } 53956}; 53957function getEventClass(type5) { 53958 return eventMap2[type5].EventType; 53959} 53960var mouseEvents = [ 53961 "MouseEvent", 53962 "PointerEvent" 53963]; 53964function isMouseEvent(type5) { 53965 return mouseEvents.includes(getEventClass(type5)); 53966} 53967function isKeyboardEvent(type5) { 53968 return getEventClass(type5) === "KeyboardEvent"; 53969} 53970
vendor: 7,229 bytes, lines 53971-54172
53971// ../../node_modules/@testing-library/user-event/dist/esm/event/createEvent.js 53972var eventInitializer = { 53973 ClipboardEvent: [ 53974 initClipboardEvent 53975 ], 53976 Event: [], 53977 FocusEvent: [ 53978 initUIEvent, 53979 initFocusEvent 53980 ], 53981 InputEvent: [ 53982 initUIEvent, 53983 initInputEvent 53984 ], 53985 MouseEvent: [ 53986 initUIEvent, 53987 initUIEventModifiers, 53988 initMouseEvent 53989 ], 53990 PointerEvent: [ 53991 initUIEvent, 53992 initUIEventModifiers, 53993 initMouseEvent, 53994 initPointerEvent 53995 ], 53996 KeyboardEvent: [ 53997 initUIEvent, 53998 initUIEventModifiers, 53999 initKeyboardEvent 54000 ] 54001}; 54002function createEvent2(type5, target, init16) { 54003 let window2 = getWindow(target), { EventType, defaultInit } = eventMap2[type5], event = new (getEventConstructors(window2))[EventType](type5, defaultInit); 54004 var eventInit = {}; 54005 for (var key in init16) 54006 Object.prototype.hasOwnProperty.call(init16, key) && (eventInit[key] = init16[key]); 54007 return eventInit.view = window2, eventInitializer[EventType].forEach(function(f4) { 54008 f4(event, eventInit); 54009 }), event; 54010} 54011function getEventConstructors(window2) { 54012 var _window_Event; 54013 let Event2 = (_window_Event = window2.Event) !== null && _window_Event !== void 0 ? _window_Event : class { 54014 }; 54015 var _window_AnimationEvent; 54016 let AnimationEvent = (_window_AnimationEvent = window2.AnimationEvent) !== null && _window_AnimationEvent !== void 0 ? _window_AnimationEvent : class extends Event2 { 54017 }; 54018 var _window_ClipboardEvent; 54019 let ClipboardEvent = (_window_ClipboardEvent = window2.ClipboardEvent) !== null && _window_ClipboardEvent !== void 0 ? _window_ClipboardEvent : class extends Event2 { 54020 }; 54021 var _window_PopStateEvent; 54022 let PopStateEvent = (_window_PopStateEvent = window2.PopStateEvent) !== null && _window_PopStateEvent !== void 0 ? _window_PopStateEvent : class extends Event2 { 54023 }; 54024 var _window_ProgressEvent; 54025 let ProgressEvent = (_window_ProgressEvent = window2.ProgressEvent) !== null && _window_ProgressEvent !== void 0 ? _window_ProgressEvent : class extends Event2 { 54026 }; 54027 var _window_TransitionEvent; 54028 let TransitionEvent = (_window_TransitionEvent = window2.TransitionEvent) !== null && _window_TransitionEvent !== void 0 ? _window_TransitionEvent : class extends Event2 { 54029 }; 54030 var _window_UIEvent; 54031 let UIEvent = (_window_UIEvent = window2.UIEvent) !== null && _window_UIEvent !== void 0 ? _window_UIEvent : class extends Event2 { 54032 }; 54033 var _window_CompositionEvent; 54034 let CompositionEvent = (_window_CompositionEvent = window2.CompositionEvent) !== null && _window_CompositionEvent !== void 0 ? _window_CompositionEvent : class extends UIEvent { 54035 }; 54036 var _window_FocusEvent; 54037 let FocusEvent2 = (_window_FocusEvent = window2.FocusEvent) !== null && _window_FocusEvent !== void 0 ? _window_FocusEvent : class extends UIEvent { 54038 }; 54039 var _window_InputEvent; 54040 let InputEvent = (_window_InputEvent = window2.InputEvent) !== null && _window_InputEvent !== void 0 ? _window_InputEvent : class extends UIEvent { 54041 }; 54042 var _window_KeyboardEvent; 54043 let KeyboardEvent2 = (_window_KeyboardEvent = window2.KeyboardEvent) !== null && _window_KeyboardEvent !== void 0 ? _window_KeyboardEvent : class extends UIEvent { 54044 }; 54045 var _window_MouseEvent; 54046 let MouseEvent2 = (_window_MouseEvent = window2.MouseEvent) !== null && _window_MouseEvent !== void 0 ? _window_MouseEvent : class extends UIEvent { 54047 }; 54048 var _window_DragEvent; 54049 let DragEvent = (_window_DragEvent = window2.DragEvent) !== null && _window_DragEvent !== void 0 ? _window_DragEvent : class extends MouseEvent2 { 54050 }; 54051 var _window_PointerEvent; 54052 let PointerEvent2 = (_window_PointerEvent = window2.PointerEvent) !== null && _window_PointerEvent !== void 0 ? _window_PointerEvent : class extends MouseEvent2 { 54053 }; 54054 var _window_TouchEvent; 54055 let TouchEvent = (_window_TouchEvent = window2.TouchEvent) !== null && _window_TouchEvent !== void 0 ? _window_TouchEvent : class extends UIEvent { 54056 }; 54057 return { 54058 Event: Event2, 54059 AnimationEvent, 54060 ClipboardEvent, 54061 PopStateEvent, 54062 ProgressEvent, 54063 TransitionEvent, 54064 UIEvent, 54065 CompositionEvent, 54066 FocusEvent: FocusEvent2, 54067 InputEvent, 54068 KeyboardEvent: KeyboardEvent2, 54069 MouseEvent: MouseEvent2, 54070 DragEvent, 54071 PointerEvent: PointerEvent2, 54072 TouchEvent 54073 }; 54074} 54075function assignProps(obj, props) { 54076 for (let [key, value] of Object.entries(props)) 54077 Object.defineProperty(obj, key, { 54078 get: () => value ?? null 54079 }); 54080} 54081function sanitizeNumber(n) { 54082 return Number(n ?? 0); 54083} 54084function initClipboardEvent(event, { clipboardData }) { 54085 assignProps(event, { 54086 clipboardData 54087 }); 54088} 54089function initFocusEvent(event, { relatedTarget }) { 54090 assignProps(event, { 54091 relatedTarget 54092 }); 54093} 54094function initInputEvent(event, { data, inputType, isComposing }) { 54095 assignProps(event, { 54096 data, 54097 isComposing: !!isComposing, 54098 inputType: String(inputType) 54099 }); 54100} 54101function initUIEvent(event, { view, detail }) { 54102 assignProps(event, { 54103 view, 54104 detail: sanitizeNumber(detail ?? 0) 54105 }); 54106} 54107function initUIEventModifiers(event, { altKey, ctrlKey, metaKey, shiftKey, modifierAltGraph, modifierCapsLock, modifierFn, modifierFnLock, modifierNumLock, modifierScrollLock, modifierSymbol, modifierSymbolLock }) { 54108 assignProps(event, { 54109 altKey: !!altKey, 54110 ctrlKey: !!ctrlKey, 54111 metaKey: !!metaKey, 54112 shiftKey: !!shiftKey, 54113 getModifierState(k) { 54114 return !!{ 54115 Alt: altKey, 54116 AltGraph: modifierAltGraph, 54117 CapsLock: modifierCapsLock, 54118 Control: ctrlKey, 54119 Fn: modifierFn, 54120 FnLock: modifierFnLock, 54121 Meta: metaKey, 54122 NumLock: modifierNumLock, 54123 ScrollLock: modifierScrollLock, 54124 Shift: shiftKey, 54125 Symbol: modifierSymbol, 54126 SymbolLock: modifierSymbolLock 54127 }[k]; 54128 } 54129 }); 54130} 54131function initKeyboardEvent(event, { key, code, location: location4, repeat, isComposing, charCode }) { 54132 assignProps(event, { 54133 key: String(key), 54134 code: String(code), 54135 location: sanitizeNumber(location4), 54136 repeat: !!repeat, 54137 isComposing: !!isComposing, 54138 charCode 54139 }); 54140} 54141function initMouseEvent(event, { x, y, screenX, screenY, clientX = x, clientY = y, button, buttons, relatedTarget, offsetX, offsetY, pageX, pageY }) { 54142 assignProps(event, { 54143 screenX: sanitizeNumber(screenX), 54144 screenY: sanitizeNumber(screenY), 54145 clientX: sanitizeNumber(clientX), 54146 x: sanitizeNumber(clientX), 54147 clientY: sanitizeNumber(clientY), 54148 y: sanitizeNumber(clientY), 54149 button: sanitizeNumber(button), 54150 buttons: sanitizeNumber(buttons), 54151 relatedTarget, 54152 offsetX: sanitizeNumber(offsetX), 54153 offsetY: sanitizeNumber(offsetY), 54154 pageX: sanitizeNumber(pageX), 54155 pageY: sanitizeNumber(pageY) 54156 }); 54157} 54158function initPointerEvent(event, { pointerId, width, height, pressure, tangentialPressure, tiltX, tiltY, twist, pointerType, isPrimary }) { 54159 assignProps(event, { 54160 pointerId: sanitizeNumber(pointerId), 54161 width: sanitizeNumber(width ?? 1), 54162 height: sanitizeNumber(height ?? 1), 54163 pressure: sanitizeNumber(pressure), 54164 tangentialPressure: sanitizeNumber(tangentialPressure), 54165 tiltX: sanitizeNumber(tiltX), 54166 tiltY: sanitizeNumber(tiltY), 54167 twist: sanitizeNumber(twist), 54168 pointerType: String(pointerType), 54169 isPrimary: !!isPrimary 54170 }); 54171} 54172
vendor: 1,351 bytes, lines 54173-54203
54173// ../../node_modules/@testing-library/user-event/dist/esm/event/dispatchEvent.js 54174function dispatchUIEvent(target, type5, init16, preventDefault = !1) { 54175 (isMouseEvent(type5) || isKeyboardEvent(type5)) && (init16 = { 54176 ...init16, 54177 ...this.system.getUIEventModifiers() 54178 }); 54179 let event = createEvent2(type5, target, init16); 54180 return dispatchEvent.call(this, target, event, preventDefault); 54181} 54182function dispatchEvent(target, event, preventDefault = !1) { 54183 var _behavior_type; 54184 let type5 = event.type, behaviorImplementation = preventDefault ? () => { 54185 } : (_behavior_type = behavior[type5]) === null || _behavior_type === void 0 ? void 0 : _behavior_type.call(behavior, event, target, this); 54186 if (behaviorImplementation) { 54187 event.preventDefault(); 54188 let defaultPrevented = !1; 54189 return Object.defineProperty(event, "defaultPrevented", { 54190 get: () => defaultPrevented 54191 }), Object.defineProperty(event, "preventDefault", { 54192 value: () => { 54193 defaultPrevented = event.cancelable; 54194 } 54195 }), wrapEvent(() => target.dispatchEvent(event)), defaultPrevented || behaviorImplementation(), !defaultPrevented; 54196 } 54197 return wrapEvent(() => target.dispatchEvent(event)); 54198} 54199function dispatchDOMEvent(target, type5, init16) { 54200 let event = createEvent2(type5, target, init16); 54201 wrapEvent(() => target.dispatchEvent(event)); 54202} 54203
vendor: 1,885 bytes, lines 54204-54262
54204// ../../node_modules/@testing-library/user-event/dist/esm/document/patchFocus.js 54205var patched = Symbol("patched focus/blur methods"); 54206function patchFocus(HTMLElement2) { 54207 if (HTMLElement2.prototype[patched]) 54208 return; 54209 let { focus, blur } = HTMLElement2.prototype; 54210 Object.defineProperties(HTMLElement2.prototype, { 54211 focus: { 54212 configurable: !0, 54213 get: () => patchedFocus 54214 }, 54215 blur: { 54216 configurable: !0, 54217 get: () => patchedBlur 54218 }, 54219 [patched]: { 54220 configurable: !0, 54221 get: () => ({ 54222 focus, 54223 blur 54224 }) 54225 } 54226 }); 54227 let activeCall; 54228 function patchedFocus(options) { 54229 if (this.ownerDocument.visibilityState !== "hidden") 54230 return focus.call(this, options); 54231 let blurred = getActiveTarget(this.ownerDocument); 54232 if (blurred === this) 54233 return; 54234 let thisCall = Symbol("focus call"); 54235 activeCall = thisCall, blurred && (blur.call(blurred), dispatchDOMEvent(blurred, "blur", { 54236 relatedTarget: this 54237 }), dispatchDOMEvent(blurred, "focusout", { 54238 relatedTarget: activeCall === thisCall ? this : null 54239 })), activeCall === thisCall && (focus.call(this, options), dispatchDOMEvent(this, "focus", { 54240 relatedTarget: blurred 54241 })), activeCall === thisCall && dispatchDOMEvent(this, "focusin", { 54242 relatedTarget: blurred 54243 }); 54244 } 54245 function patchedBlur() { 54246 if (this.ownerDocument.visibilityState !== "hidden") 54247 return blur.call(this); 54248 let blurred = getActiveTarget(this.ownerDocument); 54249 if (blurred !== this) 54250 return; 54251 activeCall = Symbol("blur call"), blur.call(this), dispatchDOMEvent(blurred, "blur", { 54252 relatedTarget: null 54253 }), dispatchDOMEvent(blurred, "focusout", { 54254 relatedTarget: null 54255 }); 54256 } 54257} 54258function getActiveTarget(document13) { 54259 let active = getActiveElement(document13); 54260 return active?.tagName === "BODY" ? null : active; 54261} 54262
vendor: 2,744 bytes, lines 54263-54334
54263// ../../node_modules/@testing-library/user-event/dist/esm/document/interceptor.js 54264var Interceptor = Symbol("Interceptor for programmatical calls"); 54265function prepareInterceptor(element, propName, interceptorImpl) { 54266 let prototypeDescriptor = Object.getOwnPropertyDescriptor(element.constructor.prototype, propName), objectDescriptor = Object.getOwnPropertyDescriptor(element, propName), target = prototypeDescriptor?.set ? "set" : "value"; 54267 if (typeof prototypeDescriptor?.[target] != "function" || prototypeDescriptor[target][Interceptor]) 54268 throw new Error(`Element ${element.tagName} does not implement "${String(propName)}".`); 54269 function intercept(...args) { 54270 let { applyNative = !1, realArgs, then } = interceptorImpl.call(this, ...args), realFunc = (!applyNative && objectDescriptor || prototypeDescriptor)[target]; 54271 target === "set" ? realFunc.call(this, realArgs) : realFunc.call(this, ...realArgs), then?.(); 54272 } 54273 intercept[Interceptor] = Interceptor, Object.defineProperty(element, propName, { 54274 ...objectDescriptor ?? prototypeDescriptor, 54275 [target]: intercept 54276 }); 54277} 54278function prepareValueInterceptor(element) { 54279 prepareInterceptor(element, "value", function(v) { 54280 let isUI = isUIValue(v); 54281 return isUI && startTrackValue(this), { 54282 applyNative: !!isUI, 54283 realArgs: sanitizeValue(this, v), 54284 then: isUI ? void 0 : () => trackOrSetValue(this, String(v)) 54285 }; 54286 }); 54287} 54288function sanitizeValue(element, v) { 54289 return isElementType(element, "input", { 54290 type: "number" 54291 }) && String(v) !== "" && !Number.isNaN(Number(v)) ? String(Number(v)) : String(v); 54292} 54293function prepareSelectionInterceptor(element) { 54294 prepareInterceptor(element, "setSelectionRange", function(start2, ...others) { 54295 let isUI = isUISelectionStart(start2); 54296 return { 54297 applyNative: !!isUI, 54298 realArgs: [ 54299 Number(start2), 54300 ...others 54301 ], 54302 then: () => isUI ? void 0 : setUISelectionClean(element) 54303 }; 54304 }), prepareInterceptor(element, "selectionStart", function(v) { 54305 return { 54306 realArgs: v, 54307 then: () => setUISelectionClean(element) 54308 }; 54309 }), prepareInterceptor(element, "selectionEnd", function(v) { 54310 return { 54311 realArgs: v, 54312 then: () => setUISelectionClean(element) 54313 }; 54314 }), prepareInterceptor(element, "select", function() { 54315 return { 54316 realArgs: [], 54317 then: () => setUISelectionRaw(element, { 54318 anchorOffset: 0, 54319 focusOffset: getUIValue(element).length 54320 }) 54321 }; 54322 }); 54323} 54324function prepareRangeTextInterceptor(element) { 54325 prepareInterceptor(element, "setRangeText", function(...realArgs) { 54326 return { 54327 realArgs, 54328 then: () => { 54329 setUIValueClean(element), setUISelectionClean(element); 54330 } 54331 }; 54332 }); 54333} 54334
vendor: 985 bytes, lines 54335-54358
54335// ../../node_modules/@testing-library/user-event/dist/esm/document/prepareDocument.js 54336var isPrepared = Symbol("Node prepared with document state workarounds"); 54337function prepareDocument(document13) { 54338 document13[isPrepared] || (document13.addEventListener("focus", (e) => { 54339 let el = e.target; 54340 prepareElement(el); 54341 }, { 54342 capture: !0, 54343 passive: !0 54344 }), document13.activeElement && prepareElement(document13.activeElement), document13.addEventListener("blur", (e) => { 54345 let el = e.target, initialValue2 = getInitialValue(el); 54346 initialValue2 !== void 0 && (el.value !== initialValue2 && dispatchDOMEvent(el, "change"), clearInitialValue(el)); 54347 }, { 54348 capture: !0, 54349 passive: !0 54350 }), document13[isPrepared] = isPrepared); 54351} 54352function prepareElement(el) { 54353 el[isPrepared] || (isElementType(el, [ 54354 "input", 54355 "textarea" 54356 ]) && (prepareValueInterceptor(el), prepareSelectionInterceptor(el), prepareRangeTextInterceptor(el)), el[isPrepared] = isPrepared); 54357} 54358
vendor: 244 bytes, lines 54359-54366
54359// ../../node_modules/@testing-library/user-event/dist/esm/utils/misc/getDocumentFromNode.js 54360function getDocumentFromNode(el) { 54361 return isDocument2(el) ? el : el.ownerDocument; 54362} 54363function isDocument2(node2) { 54364 return node2.nodeType === 9; 54365} 54366
vendor: 386 bytes, lines 54367-54377
54367// ../../node_modules/@testing-library/user-event/dist/esm/utils/misc/level.js 54368var ApiLevel = (function(ApiLevel2) { 54369 return ApiLevel2[ApiLevel2.Trigger = 2] = "Trigger", ApiLevel2[ApiLevel2.Call = 1] = "Call", ApiLevel2; 54370})({}); 54371function setLevelRef(instance, level) { 54372 instance.levelRefs[level] = {}; 54373} 54374function getLevelRef(instance, level) { 54375 return instance.levelRefs[level]; 54376} 54377
vendor: 314 bytes, lines 54378-54387
54378// ../../node_modules/@testing-library/user-event/dist/esm/utils/misc/wait.js 54379function wait(config4) { 54380 let delay = config4.delay; 54381 if (typeof delay == "number") 54382 return Promise.all([ 54383 new Promise((resolve) => globalThis.setTimeout(() => resolve(), delay)), 54384 config4.advanceTimers(delay) 54385 ]); 54386} 54387
vendor: 504 bytes, lines 54388-54392
54388// ../../node_modules/@testing-library/user-event/dist/esm/options.js 54389var PointerEventsCheckLevel = (function(PointerEventsCheckLevel2) { 54390 return PointerEventsCheckLevel2[PointerEventsCheckLevel2.EachTrigger = 4] = "EachTrigger", PointerEventsCheckLevel2[PointerEventsCheckLevel2.EachApiCall = 2] = "EachApiCall", PointerEventsCheckLevel2[PointerEventsCheckLevel2.EachTarget = 1] = "EachTarget", PointerEventsCheckLevel2[PointerEventsCheckLevel2.Never = 0] = "Never", PointerEventsCheckLevel2; 54391})({}); 54392
vendor: 4,202 bytes, lines 54393-54506
54393// ../../node_modules/@testing-library/user-event/dist/esm/system/keyboard.js 54394function _define_property3(obj, key, value) { 54395 return key in obj ? Object.defineProperty(obj, key, { 54396 value, 54397 enumerable: !0, 54398 configurable: !0, 54399 writable: !0 54400 }) : obj[key] = value, obj; 54401} 54402var DOM_KEY_LOCATION = (function(DOM_KEY_LOCATION2) { 54403 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; 54404})({}), modifierKeys = [ 54405 "Alt", 54406 "AltGraph", 54407 "Control", 54408 "Fn", 54409 "Meta", 54410 "Shift", 54411 "Symbol" 54412]; 54413function isModifierKey(key) { 54414 return modifierKeys.includes(key); 54415} 54416var modifierLocks = [ 54417 "CapsLock", 54418 "FnLock", 54419 "NumLock", 54420 "ScrollLock", 54421 "SymbolLock" 54422]; 54423function isModifierLock(key) { 54424 return modifierLocks.includes(key); 54425} 54426var KeyboardHost = class { 54427 isKeyPressed(keyDef) { 54428 return this.pressed.has(String(keyDef.code)); 54429 } 54430 getPressedKeys() { 54431 return this.pressed.values().map((p3) => p3.keyDef); 54432 } 54433 /** Press a key */ 54434 async keydown(instance, keyDef) { 54435 let key = String(keyDef.key), code = String(keyDef.code), target = getActiveElementOrBody(instance.config.document); 54436 this.setKeydownTarget(target), this.pressed.add(code, keyDef), isModifierKey(key) && (this.modifiers[key] = !0); 54437 let unprevented = instance.dispatchUIEvent(target, "keydown", { 54438 key, 54439 code 54440 }); 54441 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", { 54442 key, 54443 code, 54444 charCode: keyDef.key === "Enter" ? 13 : String(keyDef.key).charCodeAt(0) 54445 }); 54446 } 54447 /** Release a key */ 54448 async keyup(instance, keyDef) { 54449 let key = String(keyDef.key), code = String(keyDef.code), unprevented = this.pressed.isUnprevented(code); 54450 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", { 54451 key, 54452 code 54453 }, !unprevented), isModifierLock(key) && this.modifiers[key] && (this.modifierLockStart[key] ? this.modifierLockStart[key] = !1 : this.modifiers[key] = !1); 54454 } 54455 setKeydownTarget(target) { 54456 target !== this.lastKeydownTarget && (this.carryChar = ""), this.lastKeydownTarget = target; 54457 } 54458 hasKeyPress(key) { 54459 return (key.length === 1 || key === "Enter") && !this.modifiers.Control && !this.modifiers.Alt; 54460 } 54461 constructor(system) { 54462 _define_property3(this, "system", void 0), _define_property3(this, "modifiers", { 54463 Alt: !1, 54464 AltGraph: !1, 54465 CapsLock: !1, 54466 Control: !1, 54467 Fn: !1, 54468 FnLock: !1, 54469 Meta: !1, 54470 NumLock: !1, 54471 ScrollLock: !1, 54472 Shift: !1, 54473 Symbol: !1, 54474 SymbolLock: !1 54475 }), _define_property3(this, "pressed", new class { 54476 add(code, keyDef) { 54477 var _this_registry, _code, _; 54478 (_ = (_this_registry = this.registry)[_code = code]) !== null && _ !== void 0 || (_this_registry[_code] = { 54479 keyDef, 54480 unpreventedDefault: !1 54481 }); 54482 } 54483 has(code) { 54484 return !!this.registry[code]; 54485 } 54486 setUnprevented(code) { 54487 let o = this.registry[code]; 54488 o && (o.unpreventedDefault = !0); 54489 } 54490 isUnprevented(code) { 54491 var _this_registry_code; 54492 return !!(!((_this_registry_code = this.registry[code]) === null || _this_registry_code === void 0) && _this_registry_code.unpreventedDefault); 54493 } 54494 delete(code) { 54495 delete this.registry[code]; 54496 } 54497 values() { 54498 return Object.values(this.registry); 54499 } 54500 constructor() { 54501 _define_property3(this, "registry", {}); 54502 } 54503 }()), _define_property3(this, "carryChar", ""), _define_property3(this, "lastKeydownTarget", void 0), _define_property3(this, "modifierLockStart", {}), this.system = system; 54504 } 54505}; 54506
vendor: 2,722 bytes, lines 54507-54678
54507// ../../node_modules/@testing-library/user-event/dist/esm/keyboard/keyMap.js 54508var defaultKeyMap = [ 54509 // alphanumeric block - writing system 54510 ..."0123456789".split("").map((c) => ({ 54511 code: `Digit${c}`, 54512 key: c 54513 })), 54514 ...")!@#$%^&*(".split("").map((c, i) => ({ 54515 code: `Digit${i}`, 54516 key: c, 54517 shiftKey: !0 54518 })), 54519 ..."abcdefghijklmnopqrstuvwxyz".split("").map((c) => ({ 54520 code: `Key${c.toUpperCase()}`, 54521 key: c 54522 })), 54523 ..."ABCDEFGHIJKLMNOPQRSTUVWXYZ".split("").map((c) => ({ 54524 code: `Key${c}`, 54525 key: c, 54526 shiftKey: !0 54527 })), 54528 { 54529 code: "BracketLeft", 54530 key: "[" 54531 }, 54532 { 54533 code: "BracketLeft", 54534 key: "{", 54535 shiftKey: !0 54536 }, 54537 { 54538 code: "BracketRight", 54539 key: "]" 54540 }, 54541 { 54542 code: "BracketRight", 54543 key: "}", 54544 shiftKey: !0 54545 }, 54546 // alphanumeric block - functional 54547 { 54548 code: "Space", 54549 key: " " 54550 }, 54551 { 54552 code: "AltLeft", 54553 key: "Alt", 54554 location: DOM_KEY_LOCATION.LEFT 54555 }, 54556 { 54557 code: "AltRight", 54558 key: "Alt", 54559 location: DOM_KEY_LOCATION.RIGHT 54560 }, 54561 { 54562 code: "ShiftLeft", 54563 key: "Shift", 54564 location: DOM_KEY_LOCATION.LEFT 54565 }, 54566 { 54567 code: "ShiftRight", 54568 key: "Shift", 54569 location: DOM_KEY_LOCATION.RIGHT 54570 }, 54571 { 54572 code: "ControlLeft", 54573 key: "Control", 54574 location: DOM_KEY_LOCATION.LEFT 54575 }, 54576 { 54577 code: "ControlRight", 54578 key: "Control", 54579 location: DOM_KEY_LOCATION.RIGHT 54580 }, 54581 { 54582 code: "MetaLeft", 54583 key: "Meta", 54584 location: DOM_KEY_LOCATION.LEFT 54585 }, 54586 { 54587 code: "MetaRight", 54588 key: "Meta", 54589 location: DOM_KEY_LOCATION.RIGHT 54590 }, 54591 { 54592 code: "OSLeft", 54593 key: "OS", 54594 location: DOM_KEY_LOCATION.LEFT 54595 }, 54596 { 54597 code: "OSRight", 54598 key: "OS", 54599 location: DOM_KEY_LOCATION.RIGHT 54600 }, 54601 { 54602 code: "ContextMenu", 54603 key: "ContextMenu" 54604 }, 54605 { 54606 code: "Tab", 54607 key: "Tab" 54608 }, 54609 { 54610 code: "CapsLock", 54611 key: "CapsLock" 54612 }, 54613 { 54614 code: "Backspace", 54615 key: "Backspace" 54616 }, 54617 { 54618 code: "Enter", 54619 key: "Enter" 54620 }, 54621 // function 54622 { 54623 code: "Escape", 54624 key: "Escape" 54625 }, 54626 // arrows 54627 { 54628 code: "ArrowUp", 54629 key: "ArrowUp" 54630 }, 54631 { 54632 code: "ArrowDown", 54633 key: "ArrowDown" 54634 }, 54635 { 54636 code: "ArrowLeft", 54637 key: "ArrowLeft" 54638 }, 54639 { 54640 code: "ArrowRight", 54641 key: "ArrowRight" 54642 }, 54643 // control pad 54644 { 54645 code: "Home", 54646 key: "Home" 54647 }, 54648 { 54649 code: "End", 54650 key: "End" 54651 }, 54652 { 54653 code: "Delete", 54654 key: "Delete" 54655 }, 54656 { 54657 code: "PageUp", 54658 key: "PageUp" 54659 }, 54660 { 54661 code: "PageDown", 54662 key: "PageDown" 54663 }, 54664 // Special keys that are not part of a default US-layout but included for specific behavior 54665 { 54666 code: "Fn", 54667 key: "Fn" 54668 }, 54669 { 54670 code: "Symbol", 54671 key: "Symbol" 54672 }, 54673 { 54674 code: "AltRight", 54675 key: "AltGraph" 54676 } 54677]; 54678
vendor: 512 bytes, lines 54679-54709
54679// ../../node_modules/@testing-library/user-event/dist/esm/pointer/keyMap.js 54680var defaultKeyMap2 = [ 54681 { 54682 name: "MouseLeft", 54683 pointerType: "mouse", 54684 button: "primary" 54685 }, 54686 { 54687 name: "MouseRight", 54688 pointerType: "mouse", 54689 button: "secondary" 54690 }, 54691 { 54692 name: "MouseMiddle", 54693 pointerType: "mouse", 54694 button: "auxiliary" 54695 }, 54696 { 54697 name: "TouchA", 54698 pointerType: "touch" 54699 }, 54700 { 54701 name: "TouchB", 54702 pointerType: "touch" 54703 }, 54704 { 54705 name: "TouchC", 54706 pointerType: "touch" 54707 } 54708]; 54709
vendor: 1,425 bytes, lines 54710-54763
54710// ../../node_modules/@testing-library/user-event/dist/esm/system/pointer/buttons.js 54711function _define_property4(obj, key, value) { 54712 return key in obj ? Object.defineProperty(obj, key, { 54713 value, 54714 enumerable: !0, 54715 configurable: !0, 54716 writable: !0 54717 }) : obj[key] = value, obj; 54718} 54719var Buttons = class { 54720 getButtons() { 54721 let v = 0; 54722 for (let button of Object.keys(this.pressed)) 54723 v |= 2 ** Number(button); 54724 return v; 54725 } 54726 down(keyDef) { 54727 let button = getMouseButtonId(keyDef.button); 54728 if (button in this.pressed) { 54729 this.pressed[button].push(keyDef); 54730 return; 54731 } 54732 return this.pressed[button] = [ 54733 keyDef 54734 ], button; 54735 } 54736 up(keyDef) { 54737 let button = getMouseButtonId(keyDef.button); 54738 if (button in this.pressed && (this.pressed[button] = this.pressed[button].filter((k) => k.name !== keyDef.name), this.pressed[button].length === 0)) 54739 return delete this.pressed[button], button; 54740 } 54741 constructor() { 54742 _define_property4(this, "pressed", {}); 54743 } 54744}, MouseButton = { 54745 primary: 0, 54746 secondary: 1, 54747 auxiliary: 2, 54748 back: 3, 54749 X1: 3, 54750 forward: 4, 54751 X2: 4 54752}; 54753function getMouseButtonId(button = 0) { 54754 return button in MouseButton ? MouseButton[button] : Number(button); 54755} 54756var MouseButtonFlip = { 54757 1: 2, 54758 2: 1 54759}; 54760function getMouseEventButton(button) { 54761 return button = getMouseButtonId(button), button in MouseButtonFlip ? MouseButtonFlip[button] : button; 54762} 54763
vendor: 691 bytes, lines 54764-54790
54764// ../../node_modules/@testing-library/user-event/dist/esm/system/pointer/device.js 54765function _define_property5(obj, key, value) { 54766 return key in obj ? Object.defineProperty(obj, key, { 54767 value, 54768 enumerable: !0, 54769 configurable: !0, 54770 writable: !0 54771 }) : obj[key] = value, obj; 54772} 54773var Device = class { 54774 get countPressed() { 54775 return this.pressedKeys.size; 54776 } 54777 isPressed(keyDef) { 54778 return this.pressedKeys.has(keyDef.name); 54779 } 54780 addPressed(keyDef) { 54781 return this.pressedKeys.add(keyDef.name); 54782 } 54783 removePressed(keyDef) { 54784 return this.pressedKeys.delete(keyDef.name); 54785 } 54786 constructor() { 54787 _define_property5(this, "pressedKeys", /* @__PURE__ */ new Set()); 54788 } 54789}; 54790
vendor: 552 bytes, lines 54791-54808
54791// ../../node_modules/@testing-library/user-event/dist/esm/utils/misc/getTreeDiff.js 54792function getTreeDiff(a3, b) { 54793 let treeA = []; 54794 for (let el = a3; el; el = el.parentElement) 54795 treeA.push(el); 54796 let treeB = []; 54797 for (let el = b; el; el = el.parentElement) 54798 treeB.push(el); 54799 let i = 0; 54800 for (; !(i >= treeA.length || i >= treeB.length || treeA[treeA.length - 1 - i] !== treeB[treeB.length - 1 - i]); i++) 54801 ; 54802 return [ 54803 treeA.slice(0, treeA.length - i), 54804 treeB.slice(0, treeB.length - i), 54805 treeB.slice(treeB.length - i) 54806 ]; 54807} 54808
vendor: 1,361 bytes, lines 54809-54844
54809// ../../node_modules/@testing-library/user-event/dist/esm/event/selection/resolveCaretPosition.js 54810function resolveCaretPosition({ target, node: node2, offset: offset3 }) { 54811 return hasOwnSelection(target) ? { 54812 node: target, 54813 offset: offset3 ?? getUIValue(target).length 54814 } : node2 ? { 54815 node: node2, 54816 offset: offset3 ?? (node2.nodeType === 3 ? node2.nodeValue.length : node2.childNodes.length) 54817 } : findNodeAtTextOffset(target, offset3); 54818} 54819function findNodeAtTextOffset(node2, offset3, isRoot = !0) { 54820 let i = offset3 === void 0 ? node2.childNodes.length - 1 : 0, step2 = offset3 === void 0 ? -1 : 1; 54821 for (; offset3 === void 0 ? i >= (isRoot ? Math.max(node2.childNodes.length - 1, 0) : 0) : i <= node2.childNodes.length; ) { 54822 if (offset3 && i === node2.childNodes.length) 54823 throw new Error("The given offset is out of bounds."); 54824 let c = node2.childNodes.item(i), text = String(c.textContent); 54825 if (text.length) 54826 if (offset3 !== void 0 && text.length < offset3) 54827 offset3 -= text.length; 54828 else { 54829 if (c.nodeType === 1) 54830 return findNodeAtTextOffset(c, offset3, !1); 54831 if (c.nodeType === 3) 54832 return { 54833 node: c, 54834 offset: offset3 ?? c.nodeValue.length 54835 }; 54836 } 54837 i += step2; 54838 } 54839 return { 54840 node: node2, 54841 offset: node2.childNodes.length 54842 }; 54843} 54844
vendor: 2,031 bytes, lines 54845-54900
54845// ../../node_modules/@testing-library/user-event/dist/esm/event/selection/setSelectionPerMouse.js 54846function setSelectionPerMouseDown({ document: document13, target, clickCount, node: node2, offset: offset3 }) { 54847 if (hasNoSelection(target)) 54848 return; 54849 let targetHasOwnSelection = hasOwnSelection(target), text = String(targetHasOwnSelection ? getUIValue(target) : target.textContent), [start2, end2] = node2 ? ( 54850 // which elements might be considered in the same line of text. 54851 // TODO: support expanding initial range on multiple clicks if node is given 54852 [ 54853 offset3, 54854 offset3 54855 ] 54856 ) : getTextRange(text, offset3, clickCount); 54857 if (targetHasOwnSelection) 54858 return setUISelection(target, { 54859 anchorOffset: start2 ?? text.length, 54860 focusOffset: end2 ?? text.length 54861 }), { 54862 node: target, 54863 start: start2 ?? 0, 54864 end: end2 ?? text.length 54865 }; 54866 { 54867 let { node: startNode, offset: startOffset } = resolveCaretPosition({ 54868 target, 54869 node: node2, 54870 offset: start2 54871 }), { node: endNode, offset: endOffset } = resolveCaretPosition({ 54872 target, 54873 node: node2, 54874 offset: end2 54875 }), range = target.ownerDocument.createRange(); 54876 try { 54877 range.setStart(startNode, startOffset), range.setEnd(endNode, endOffset); 54878 } catch { 54879 throw new Error("The given offset is out of bounds."); 54880 } 54881 let selection = document13.getSelection(); 54882 return selection?.removeAllRanges(), selection?.addRange(range.cloneRange()), range; 54883 } 54884} 54885function getTextRange(text, pos, clickCount) { 54886 if (clickCount % 3 === 1 || text.length === 0) 54887 return [ 54888 pos, 54889 pos 54890 ]; 54891 let textPos = pos ?? text.length; 54892 return clickCount % 3 === 2 ? [ 54893 textPos - text.substr(0, pos).match(/(\w+|\s+|\W)?$/)[0].length, 54894 pos === void 0 ? pos : pos + text.substr(pos).match(/^(\w+|\s+|\W)?/)[0].length 54895 ] : [ 54896 textPos - text.substr(0, pos).match(/[^\r\n]*$/)[0].length, 54897 pos === void 0 ? pos : pos + text.substr(pos).match(/^[^\r\n]*/)[0].length 54898 ]; 54899} 54900
vendor: 1,178 bytes, lines 54901-54923
54901// ../../node_modules/@testing-library/user-event/dist/esm/event/selection/modifySelectionPerMouse.js 54902function modifySelectionPerMouseMove(selectionRange, { document: document13, target, node: node2, offset: offset3 }) { 54903 let selectionFocus = resolveCaretPosition({ 54904 target, 54905 node: node2, 54906 offset: offset3 54907 }); 54908 if ("node" in selectionRange) { 54909 if (selectionFocus.node === selectionRange.node) { 54910 let anchorOffset = selectionFocus.offset < selectionRange.start ? selectionRange.end : selectionRange.start, focusOffset = selectionFocus.offset > selectionRange.end || selectionFocus.offset < selectionRange.start ? selectionFocus.offset : selectionRange.end; 54911 setUISelection(selectionRange.node, { 54912 anchorOffset, 54913 focusOffset 54914 }); 54915 } 54916 } else { 54917 let range = selectionRange.cloneRange(), cmp = range.comparePoint(selectionFocus.node, selectionFocus.offset); 54918 cmp < 0 ? range.setStart(selectionFocus.node, selectionFocus.offset) : cmp > 0 && range.setEnd(selectionFocus.node, selectionFocus.offset); 54919 let selection = document13.getSelection(); 54920 selection?.removeAllRanges(), selection?.addRange(range.cloneRange()); 54921 } 54922} 54923
vendor: 3,617 bytes, lines 54924-54929
54924// ../../node_modules/@testing-library/user-event/dist/esm/system/pointer/shared.js 54925function isDifferentPointerPosition(positionA, positionB) { 54926 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; 54927 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); 54928} 54929
vendor: 5,921 bytes, lines 54930-55051
54930// ../../node_modules/@testing-library/user-event/dist/esm/system/pointer/mouse.js 54931function _define_property6(obj, key, value) { 54932 return key in obj ? Object.defineProperty(obj, key, { 54933 value, 54934 enumerable: !0, 54935 configurable: !0, 54936 writable: !0 54937 }) : obj[key] = value, obj; 54938} 54939var Mouse = class { 54940 move(instance, position2, isPrevented) { 54941 let prevPosition = this.position, prevTarget = this.getTarget(instance); 54942 if (this.position = position2, !isDifferentPointerPosition(prevPosition, position2)) 54943 return; 54944 let nextTarget = this.getTarget(instance), init16 = this.getEventInit("mousemove"), [leave, enter] = getTreeDiff(prevTarget, nextTarget); 54945 return { 54946 leave: () => { 54947 prevTarget !== nextTarget && (instance.dispatchUIEvent(prevTarget, "mouseout", init16), leave.forEach((el) => instance.dispatchUIEvent(el, "mouseleave", init16))); 54948 }, 54949 enter: () => { 54950 prevTarget !== nextTarget && (instance.dispatchUIEvent(nextTarget, "mouseover", init16), enter.forEach((el) => instance.dispatchUIEvent(el, "mouseenter", init16))); 54951 }, 54952 move: () => { 54953 isPrevented || (instance.dispatchUIEvent(nextTarget, "mousemove", init16), this.modifySelecting(instance)); 54954 } 54955 }; 54956 } 54957 down(instance, keyDef, isPrevented) { 54958 let button = this.buttons.down(keyDef); 54959 if (button === void 0) 54960 return; 54961 let target = this.getTarget(instance); 54962 this.buttonDownTarget[button] = target; 54963 let init16 = this.getEventInit("mousedown", keyDef.button), disabled = isDisabled2(target); 54964 !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)); 54965 } 54966 up(instance, keyDef, isPrevented) { 54967 let button = this.buttons.up(keyDef); 54968 if (button === void 0) 54969 return; 54970 let target = this.getTarget(instance); 54971 if (!isDisabled2(target)) { 54972 if (!isPrevented) { 54973 let mouseUpInit = this.getEventInit("mouseup", keyDef.button); 54974 instance.dispatchUIEvent(target, "mouseup", mouseUpInit), this.endSelecting(); 54975 } 54976 let clickTarget = getTreeDiff(this.buttonDownTarget[button], target)[2][0]; 54977 if (clickTarget) { 54978 let init16 = this.getEventInit("click", keyDef.button); 54979 init16.detail && (instance.dispatchUIEvent(clickTarget, init16.button === 0 ? "click" : "auxclick", init16), init16.button === 0 && init16.detail === 2 && instance.dispatchUIEvent(clickTarget, "dblclick", { 54980 ...this.getEventInit("dblclick", keyDef.button), 54981 detail: init16.detail 54982 })); 54983 } 54984 } 54985 } 54986 resetClickCount() { 54987 this.clickCount.reset(); 54988 } 54989 getEventInit(type5, button) { 54990 let init16 = { 54991 ...this.position.coords 54992 }; 54993 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; 54994 } 54995 getTarget(instance) { 54996 var _this_position_target; 54997 return (_this_position_target = this.position.target) !== null && _this_position_target !== void 0 ? _this_position_target : instance.config.document.body; 54998 } 54999 startSelecting(instance, clickCount) { 55000 var _this_position_caret, _this_position_caret1; 55001 this.selecting = setSelectionPerMouseDown({ 55002 document: instance.config.document, 55003 target: this.getTarget(instance), 55004 node: (_this_position_caret = this.position.caret) === null || _this_position_caret === void 0 ? void 0 : _this_position_caret.node, 55005 offset: (_this_position_caret1 = this.position.caret) === null || _this_position_caret1 === void 0 ? void 0 : _this_position_caret1.offset, 55006 clickCount 55007 }); 55008 } 55009 modifySelecting(instance) { 55010 var _this_position_caret, _this_position_caret1; 55011 this.selecting && modifySelectionPerMouseMove(this.selecting, { 55012 document: instance.config.document, 55013 target: this.getTarget(instance), 55014 node: (_this_position_caret = this.position.caret) === null || _this_position_caret === void 0 ? void 0 : _this_position_caret.node, 55015 offset: (_this_position_caret1 = this.position.caret) === null || _this_position_caret1 === void 0 ? void 0 : _this_position_caret1.offset 55016 }); 55017 } 55018 endSelecting() { 55019 this.selecting = void 0; 55020 } 55021 constructor() { 55022 _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 { 55023 incOnClick(button) { 55024 let current = this.down[button] === void 0 ? void 0 : Number(this.down[button]) + 1; 55025 return this.count = this.count[button] === void 0 ? {} : { 55026 [button]: Number(this.count[button]) + 1 55027 }, current; 55028 } 55029 getOnDown(button) { 55030 var _this_count_button; 55031 this.down = { 55032 [button]: (_this_count_button = this.count[button]) !== null && _this_count_button !== void 0 ? _this_count_button : 0 55033 }; 55034 var _this_count_button1; 55035 return this.count = { 55036 [button]: (_this_count_button1 = this.count[button]) !== null && _this_count_button1 !== void 0 ? _this_count_button1 : 0 55037 }, Number(this.count[button]) + 1; 55038 } 55039 getOnUp(button) { 55040 return this.down[button] === void 0 ? void 0 : Number(this.down[button]) + 1; 55041 } 55042 reset() { 55043 this.count = {}; 55044 } 55045 constructor() { 55046 _define_property6(this, "down", {}), _define_property6(this, "count", {}); 55047 } 55048 }()); 55049 } 55050}; 55051
vendor: 4,138 bytes, lines 55052-55136
55052// ../../node_modules/@testing-library/user-event/dist/esm/utils/pointer/cssPointerEvents.js 55053function hasPointerEvents(instance, element) { 55054 var _checkPointerEvents; 55055 return ((_checkPointerEvents = checkPointerEvents(instance, element)) === null || _checkPointerEvents === void 0 ? void 0 : _checkPointerEvents.pointerEvents) !== "none"; 55056} 55057function closestPointerEventsDeclaration(element) { 55058 let window2 = getWindow(element); 55059 for (let el = element, tree = []; el?.ownerDocument; el = el.parentElement) { 55060 tree.push(el); 55061 let pointerEvents = window2.getComputedStyle(el).pointerEvents; 55062 if (pointerEvents && ![ 55063 "inherit", 55064 "unset" 55065 ].includes(pointerEvents)) 55066 return { 55067 pointerEvents, 55068 tree 55069 }; 55070 } 55071} 55072var PointerEventsCheck = Symbol("Last check for pointer-events"); 55073function checkPointerEvents(instance, element) { 55074 let lastCheck = element[PointerEventsCheck]; 55075 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)))) 55076 return lastCheck?.result; 55077 let declaration2 = closestPointerEventsDeclaration(element); 55078 return element[PointerEventsCheck] = { 55079 [ApiLevel.Call]: getLevelRef(instance, ApiLevel.Call), 55080 [ApiLevel.Trigger]: getLevelRef(instance, ApiLevel.Trigger), 55081 result: declaration2 55082 }, declaration2; 55083} 55084function assertPointerEvents(instance, element) { 55085 let declaration2 = checkPointerEvents(instance, element); 55086 if (declaration2?.pointerEvents === "none") 55087 throw new Error([ 55088 `Unable to perform pointer interaction as the element ${declaration2.tree.length > 1 ? "inherits" : "has"} \`pointer-events: none\`:`, 55089 "", 55090 printTree(declaration2.tree) 55091 ].join(` 55092`)); 55093} 55094function printTree(tree) { 55095 return tree.reverse().map((el, i) => [ 55096 "".padEnd(i), 55097 el.tagName, 55098 el.id && `#${el.id}`, 55099 el.hasAttribute("data-testid") && `(testId=${el.getAttribute("data-testid")})`, 55100 getLabelDescr(el), 55101 tree.length > 1 && i === 0 && " <-- This element declared `pointer-events: none`", 55102 tree.length > 1 && i === tree.length - 1 && " <-- Asserted pointer events here" 55103 ].filter(Boolean).join("")).join(` 55104`); 55105} 55106function getLabelDescr(element) { 55107 var _element_labels; 55108 let label; 55109 if (element.hasAttribute("aria-label")) 55110 label = element.getAttribute("aria-label"); 55111 else if (element.hasAttribute("aria-labelledby")) { 55112 var _element_ownerDocument_getElementById_textContent, _element_ownerDocument_getElementById; 55113 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(); 55114 } else if (isElementType(element, [ 55115 "button", 55116 "input", 55117 "meter", 55118 "output", 55119 "progress", 55120 "select", 55121 "textarea" 55122 ]) && (!((_element_labels = element.labels) === null || _element_labels === void 0) && _element_labels.length)) 55123 label = Array.from(element.labels).map((el) => { 55124 var _el_textContent; 55125 return (_el_textContent = el.textContent) === null || _el_textContent === void 0 ? void 0 : _el_textContent.trim(); 55126 }).join("|"); 55127 else if (isElementType(element, "button")) { 55128 var _element_textContent; 55129 label = (_element_textContent = element.textContent) === null || _element_textContent === void 0 ? void 0 : _element_textContent.trim(); 55130 } 55131 return label = label?.replace(/\n/g, " "), Number(label?.length) > 30 && (label = `${label?.substring(0, 29)}\u2026`), label ? `(label=${label})` : ""; 55132} 55133function hasBitFlag(conf, flag3) { 55134 return (conf & flag3) > 0; 55135} 55136
vendor: 3,577 bytes, lines 55137-55202
55137// ../../node_modules/@testing-library/user-event/dist/esm/system/pointer/pointer.js 55138function _define_property7(obj, key, value) { 55139 return key in obj ? Object.defineProperty(obj, key, { 55140 value, 55141 enumerable: !0, 55142 configurable: !0, 55143 writable: !0 55144 }) : obj[key] = value, obj; 55145} 55146var Pointer = class { 55147 init(instance) { 55148 let target = this.getTarget(instance), [, enter] = getTreeDiff(null, target), init16 = this.getEventInit(); 55149 return assertPointerEvents(instance, target), instance.dispatchUIEvent(target, "pointerover", init16), enter.forEach((el) => instance.dispatchUIEvent(el, "pointerenter", init16)), this; 55150 } 55151 move(instance, position2) { 55152 let prevPosition = this.position, prevTarget = this.getTarget(instance); 55153 if (this.position = position2, !isDifferentPointerPosition(prevPosition, position2)) 55154 return; 55155 let nextTarget = this.getTarget(instance), init16 = this.getEventInit(-1), [leave, enter] = getTreeDiff(prevTarget, nextTarget); 55156 return { 55157 leave: () => { 55158 hasPointerEvents(instance, prevTarget) && prevTarget !== nextTarget && (instance.dispatchUIEvent(prevTarget, "pointerout", init16), leave.forEach((el) => instance.dispatchUIEvent(el, "pointerleave", init16))); 55159 }, 55160 enter: () => { 55161 assertPointerEvents(instance, nextTarget), prevTarget !== nextTarget && (instance.dispatchUIEvent(nextTarget, "pointerover", init16), enter.forEach((el) => instance.dispatchUIEvent(el, "pointerenter", init16))); 55162 }, 55163 move: () => { 55164 instance.dispatchUIEvent(nextTarget, "pointermove", init16); 55165 } 55166 }; 55167 } 55168 down(instance, button = 0) { 55169 if (this.isDown) 55170 return; 55171 let target = this.getTarget(instance); 55172 assertPointerEvents(instance, target), this.isDown = !0, this.isPrevented = !instance.dispatchUIEvent(target, "pointerdown", this.getEventInit(button)); 55173 } 55174 up(instance, button = 0) { 55175 if (!this.isDown) 55176 return; 55177 let target = this.getTarget(instance); 55178 assertPointerEvents(instance, target), this.isPrevented = !1, this.isDown = !1, instance.dispatchUIEvent(target, "pointerup", this.getEventInit(button)); 55179 } 55180 release(instance) { 55181 let target = this.getTarget(instance), [leave] = getTreeDiff(target, null), init16 = this.getEventInit(); 55182 hasPointerEvents(instance, target) && (instance.dispatchUIEvent(target, "pointerout", init16), leave.forEach((el) => instance.dispatchUIEvent(el, "pointerleave", init16))), this.isCancelled = !0; 55183 } 55184 getTarget(instance) { 55185 var _this_position_target; 55186 return (_this_position_target = this.position.target) !== null && _this_position_target !== void 0 ? _this_position_target : instance.config.document.body; 55187 } 55188 getEventInit(button) { 55189 return { 55190 ...this.position.coords, 55191 pointerId: this.pointerId, 55192 pointerType: this.pointerType, 55193 isPrimary: this.isPrimary, 55194 button: getMouseEventButton(button), 55195 buttons: this.buttons.getButtons() 55196 }; 55197 } 55198 constructor({ pointerId, pointerType, isPrimary }, buttons) { 55199 _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; 55200 } 55201}; 55202
vendor: 4,722 bytes, lines 55203-55288
55203// ../../node_modules/@testing-library/user-event/dist/esm/system/pointer/index.js 55204function _define_property8(obj, key, value) { 55205 return key in obj ? Object.defineProperty(obj, key, { 55206 value, 55207 enumerable: !0, 55208 configurable: !0, 55209 writable: !0 55210 }) : obj[key] = value, obj; 55211} 55212var PointerHost = class { 55213 isKeyPressed(keyDef) { 55214 return this.devices.get(keyDef.pointerType).isPressed(keyDef); 55215 } 55216 async press(instance, keyDef, position2) { 55217 this.devices.get(keyDef.pointerType).addPressed(keyDef), this.buttons.down(keyDef); 55218 let pointerName = this.getPointerName(keyDef), pointer4 = keyDef.pointerType === "touch" ? this.pointers.new(pointerName, keyDef.pointerType, this.buttons) : this.pointers.get(pointerName); 55219 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); 55220 } 55221 async move(instance, pointerName, position2) { 55222 let pointer4 = this.pointers.get(pointerName), pointermove = pointer4.move(instance, position2), mousemove = pointer4.pointerType === "touch" ? void 0 : this.mouse.move(instance, position2, pointer4.isPrevented); 55223 pointermove?.leave(), mousemove?.leave(), pointermove?.enter(), mousemove?.enter(), pointermove?.move(), mousemove?.move(); 55224 } 55225 async release(instance, keyDef, position2) { 55226 let device = this.devices.get(keyDef.pointerType); 55227 device.removePressed(keyDef), this.buttons.up(keyDef); 55228 let pointer4 = this.pointers.get(this.getPointerName(keyDef)), isPrevented = pointer4.isPrevented; 55229 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) { 55230 let mousemove = this.mouse.move(instance, position2, isPrevented); 55231 mousemove?.leave(), mousemove?.enter(), mousemove?.move(), this.mouse.down(instance, keyDef, isPrevented); 55232 } 55233 if (!pointer4.isMultitouch) { 55234 let mousemove = this.mouse.move(instance, position2, isPrevented); 55235 mousemove?.leave(), mousemove?.enter(), mousemove?.move(), this.mouse.up(instance, keyDef, isPrevented); 55236 } 55237 } 55238 getPointerName(keyDef) { 55239 return keyDef.pointerType === "touch" ? keyDef.name : keyDef.pointerType; 55240 } 55241 getPreviousPosition(pointerName) { 55242 return this.pointers.has(pointerName) ? this.pointers.get(pointerName).position : void 0; 55243 } 55244 resetClickCount() { 55245 this.mouse.resetClickCount(); 55246 } 55247 getMouseTarget(instance) { 55248 var _this_mouse_position_target; 55249 return (_this_mouse_position_target = this.mouse.position.target) !== null && _this_mouse_position_target !== void 0 ? _this_mouse_position_target : instance.config.document.body; 55250 } 55251 setMousePosition(position2) { 55252 this.mouse.position = position2, this.pointers.get("mouse").position = position2; 55253 } 55254 constructor(system) { 55255 _define_property8(this, "system", void 0), _define_property8(this, "mouse", void 0), _define_property8(this, "buttons", void 0), _define_property8(this, "devices", new class { 55256 get(k) { 55257 var _this_registry, _k, _; 55258 return (_ = (_this_registry = this.registry)[_k = k]) !== null && _ !== void 0 ? _ : _this_registry[_k] = new Device(); 55259 } 55260 constructor() { 55261 _define_property8(this, "registry", {}); 55262 } 55263 }()), _define_property8(this, "pointers", new class { 55264 new(pointerName, pointerType, buttons) { 55265 let isPrimary = pointerType !== "touch" || !Object.values(this.registry).some((p3) => p3.pointerType === "touch" && !p3.isCancelled); 55266 return isPrimary || Object.values(this.registry).forEach((p3) => { 55267 p3.pointerType === pointerType && !p3.isCancelled && (p3.isMultitouch = !0); 55268 }), this.registry[pointerName] = new Pointer({ 55269 pointerId: this.nextId++, 55270 pointerType, 55271 isPrimary 55272 }, buttons), this.registry[pointerName]; 55273 } 55274 get(pointerName) { 55275 if (!this.has(pointerName)) 55276 throw new Error(`Trying to access pointer "${pointerName}" which does not exist.`); 55277 return this.registry[pointerName]; 55278 } 55279 has(pointerName) { 55280 return pointerName in this.registry; 55281 } 55282 constructor() { 55283 _define_property8(this, "registry", {}), _define_property8(this, "nextId", 1); 55284 } 55285 }()), this.system = system, this.buttons = new Buttons(), this.mouse = new Mouse(), this.pointers.new("mouse", "mouse", this.buttons); 55286 } 55287}; 55288
vendor: 1,132 bytes, lines 55289-55319
55289// ../../node_modules/@testing-library/user-event/dist/esm/system/index.js 55290function _define_property9(obj, key, value) { 55291 return key in obj ? Object.defineProperty(obj, key, { 55292 value, 55293 enumerable: !0, 55294 configurable: !0, 55295 writable: !0 55296 }) : obj[key] = value, obj; 55297} 55298var System = class { 55299 getUIEventModifiers() { 55300 return { 55301 altKey: this.keyboard.modifiers.Alt, 55302 ctrlKey: this.keyboard.modifiers.Control, 55303 metaKey: this.keyboard.modifiers.Meta, 55304 shiftKey: this.keyboard.modifiers.Shift, 55305 modifierAltGraph: this.keyboard.modifiers.AltGraph, 55306 modifierCapsLock: this.keyboard.modifiers.CapsLock, 55307 modifierFn: this.keyboard.modifiers.Fn, 55308 modifierFnLock: this.keyboard.modifiers.FnLock, 55309 modifierNumLock: this.keyboard.modifiers.NumLock, 55310 modifierScrollLock: this.keyboard.modifiers.ScrollLock, 55311 modifierSymbol: this.keyboard.modifiers.Symbol, 55312 modifierSymbolLock: this.keyboard.modifiers.SymbolLock 55313 }; 55314 } 55315 constructor() { 55316 _define_property9(this, "keyboard", new KeyboardHost(this)), _define_property9(this, "pointer", new PointerHost(this)); 55317 } 55318}; 55319
vendor: 583 bytes, lines 55320-55346
55320// ../../node_modules/@testing-library/user-event/dist/esm/convenience/click.js 55321async function click(element) { 55322 let pointerIn = []; 55323 return this.config.skipHover || pointerIn.push({ 55324 target: element 55325 }), pointerIn.push({ 55326 keys: "[MouseLeft]", 55327 target: element 55328 }), this.pointer(pointerIn); 55329} 55330async function dblClick(element) { 55331 return this.pointer([ 55332 { 55333 target: element 55334 }, 55335 "[MouseLeft][MouseLeft]" 55336 ]); 55337} 55338async function tripleClick(element) { 55339 return this.pointer([ 55340 { 55341 target: element 55342 }, 55343 "[MouseLeft][MouseLeft][MouseLeft]" 55344 ]); 55345} 55346
vendor: 339 bytes, lines 55347-55358
55347// ../../node_modules/@testing-library/user-event/dist/esm/convenience/hover.js 55348async function hover(element) { 55349 return this.pointer({ 55350 target: element 55351 }); 55352} 55353async function unhover(element) { 55354 return assertPointerEvents(this, this.system.pointer.getMouseTarget(this)), this.pointer({ 55355 target: element.ownerDocument.body 55356 }); 55357} 55358
vendor: 242 bytes, lines 55359-55363
55359// ../../node_modules/@testing-library/user-event/dist/esm/convenience/tab.js 55360async function tab({ shift } = {}) { 55361 return this.keyboard(shift === !0 ? "{Shift>}{Tab}{/Shift}" : shift === !1 ? "[/ShiftLeft][/ShiftRight]{Tab}" : "{Tab}"); 55362} 55363
vendor: 3,289 bytes, lines 55364-55430
55364// ../../node_modules/@testing-library/user-event/dist/esm/utils/keyDef/readNextDescriptor.js 55365var bracketDict = (function(bracketDict2) { 55366 return bracketDict2["{"] = "}", bracketDict2["["] = "]", bracketDict2; 55367})(bracketDict || {}); 55368function readNextDescriptor(text, context) { 55369 let pos = 0, startBracket = text[pos] in bracketDict ? text[pos] : ""; 55370 pos += startBracket.length; 55371 let type5 = new RegExp(`^\\${startBracket}{2}`).test(text) ? "" : startBracket; 55372 return { 55373 type: type5, 55374 ...type5 === "" ? readPrintableChar(text, pos, context) : readTag(text, pos, type5, context) 55375 }; 55376} 55377function readPrintableChar(text, pos, context) { 55378 let descriptor = text[pos]; 55379 return assertDescriptor(descriptor, text, pos, context), pos += descriptor.length, { 55380 consumedLength: pos, 55381 descriptor, 55382 releasePrevious: !1, 55383 releaseSelf: !0, 55384 repeat: 1 55385 }; 55386} 55387function readTag(text, pos, startBracket, context) { 55388 var _text_slice_match, _text_slice_match1; 55389 let releasePreviousModifier = text[pos] === "/" ? "/" : ""; 55390 pos += releasePreviousModifier.length; 55391 let escapedDescriptor = startBracket === "{" && text[pos] === "\\"; 55392 pos += Number(escapedDescriptor); 55393 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]; 55394 assertDescriptor(descriptor, text, pos, context), pos += descriptor.length; 55395 var _text_slice_match_; 55396 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_ : ""; 55397 pos += repeatModifier.length; 55398 let releaseSelfModifier = text[pos] === "/" || !repeatModifier && text[pos] === ">" ? text[pos] : ""; 55399 pos += releaseSelfModifier.length; 55400 let expectedEndBracket = bracketDict[startBracket], endBracket = text[pos] === expectedEndBracket ? expectedEndBracket : ""; 55401 if (!endBracket) 55402 throw new Error(getErrorMessage([ 55403 !repeatModifier && "repeat modifier", 55404 !releaseSelfModifier && "release modifier", 55405 `"${expectedEndBracket}"` 55406 ].filter(Boolean).join(" or "), text[pos], text, context)); 55407 return pos += endBracket.length, { 55408 consumedLength: pos, 55409 descriptor, 55410 releasePrevious: !!releasePreviousModifier, 55411 repeat: repeatModifier ? Math.max(Number(repeatModifier.substr(1)), 1) : 1, 55412 releaseSelf: hasReleaseSelf(releaseSelfModifier, repeatModifier) 55413 }; 55414} 55415function assertDescriptor(descriptor, text, pos, context) { 55416 if (!descriptor) 55417 throw new Error(getErrorMessage("key descriptor", text[pos], text, context)); 55418} 55419function hasReleaseSelf(releaseSelfModifier, repeatModifier) { 55420 if (releaseSelfModifier) 55421 return releaseSelfModifier === "/"; 55422 if (repeatModifier) 55423 return !1; 55424} 55425function getErrorMessage(expected, found, text, context) { 55426 return `Expected ${expected} but found "${found ?? ""}" in "${text}" 55427 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"} 55428 for more information about how userEvent parses your input.`; 55429} 55430
vendor: 1,140 bytes, lines 55431-55460
55431// ../../node_modules/@testing-library/user-event/dist/esm/keyboard/parseKeyDef.js 55432function parseKeyDef(keyboardMap, text) { 55433 let defs = []; 55434 do { 55435 let { type: type5, descriptor, consumedLength, releasePrevious, releaseSelf = !0, repeat } = readNextDescriptor(text, "keyboard"); 55436 var _keyboardMap_find; 55437 let keyDef = (_keyboardMap_find = keyboardMap.find((def) => { 55438 if (type5 === "[") { 55439 var _def_code; 55440 return ((_def_code = def.code) === null || _def_code === void 0 ? void 0 : _def_code.toLowerCase()) === descriptor.toLowerCase(); 55441 } else if (type5 === "{") { 55442 var _def_key; 55443 return ((_def_key = def.key) === null || _def_key === void 0 ? void 0 : _def_key.toLowerCase()) === descriptor.toLowerCase(); 55444 } 55445 return def.key === descriptor; 55446 })) !== null && _keyboardMap_find !== void 0 ? _keyboardMap_find : { 55447 key: "Unknown", 55448 code: "Unknown", 55449 [type5 === "[" ? "code" : "key"]: descriptor 55450 }; 55451 defs.push({ 55452 keyDef, 55453 releasePrevious, 55454 releaseSelf, 55455 repeat 55456 }), text = text.slice(consumedLength); 55457 } while (text); 55458 return defs; 55459} 55460
vendor: 884 bytes, lines 55461-55479
55461// ../../node_modules/@testing-library/user-event/dist/esm/keyboard/index.js 55462async function keyboard(text) { 55463 let actions = parseKeyDef(this.config.keyboardMap, text); 55464 for (let i = 0; i < actions.length; i++) 55465 await wait(this.config), await keyboardAction(this, actions[i]); 55466} 55467async function keyboardAction(instance, { keyDef, releasePrevious, releaseSelf, repeat }) { 55468 let { system } = instance; 55469 if (system.keyboard.isKeyPressed(keyDef) && await system.keyboard.keyup(instance, keyDef), !releasePrevious) { 55470 for (let i = 1; i <= repeat; i++) 55471 await system.keyboard.keydown(instance, keyDef), i < repeat && await wait(instance.config); 55472 releaseSelf && await system.keyboard.keyup(instance, keyDef); 55473 } 55474} 55475async function releaseAllKeys(instance) { 55476 for (let k of instance.system.keyboard.getPressedKeys()) 55477 await instance.system.keyboard.keyup(instance, k); 55478} 55479
vendor: 579 bytes, lines 55480-55495
55480// ../../node_modules/@testing-library/user-event/dist/esm/document/copySelection.js 55481function copySelection(target) { 55482 let data = hasOwnSelection(target) ? { 55483 "text/plain": readSelectedValueFromInput(target) 55484 } : { 55485 "text/plain": String(target.ownerDocument.getSelection()) 55486 }, dt = createDataTransfer(getWindow(target)); 55487 for (let type5 in data) 55488 data[type5] && dt.setData(type5, data[type5]); 55489 return dt; 55490} 55491function readSelectedValueFromInput(target) { 55492 let sel = getUISelection(target); 55493 return getUIValue(target).substring(sel.startOffset, sel.endOffset); 55494} 55495
vendor: 599 bytes, lines 55496-55509
55496// ../../node_modules/@testing-library/user-event/dist/esm/clipboard/copy.js 55497async function copy2() { 55498 let doc = this.config.document; 55499 var _doc_activeElement; 55500 let target = (_doc_activeElement = doc.activeElement) !== null && _doc_activeElement !== void 0 ? _doc_activeElement : ( 55501 /* istanbul ignore next */ 55502 doc.body 55503 ), clipboardData = copySelection(target); 55504 if (clipboardData.items.length !== 0) 55505 return this.dispatchUIEvent(target, "copy", { 55506 clipboardData 55507 }) && this.config.writeToClipboard && await writeDataTransferToClipboard(doc, clipboardData), clipboardData; 55508} 55509
vendor: 612 bytes, lines 55510-55523
55510// ../../node_modules/@testing-library/user-event/dist/esm/clipboard/cut.js 55511async function cut() { 55512 let doc = this.config.document; 55513 var _doc_activeElement; 55514 let target = (_doc_activeElement = doc.activeElement) !== null && _doc_activeElement !== void 0 ? _doc_activeElement : ( 55515 /* istanbul ignore next */ 55516 doc.body 55517 ), clipboardData = copySelection(target); 55518 if (clipboardData.items.length !== 0) 55519 return this.dispatchUIEvent(target, "cut", { 55520 clipboardData 55521 }) && this.config.writeToClipboard && await writeDataTransferToClipboard(target.ownerDocument, clipboardData), clipboardData; 55522} 55523
vendor: 919 bytes, lines 55524-55544
55524// ../../node_modules/@testing-library/user-event/dist/esm/clipboard/paste.js 55525async function paste(clipboardData) { 55526 let doc = this.config.document; 55527 var _doc_activeElement; 55528 let target = (_doc_activeElement = doc.activeElement) !== null && _doc_activeElement !== void 0 ? _doc_activeElement : ( 55529 /* istanbul ignore next */ 55530 doc.body 55531 ); 55532 var _ref; 55533 let dataTransfer = (_ref = typeof clipboardData == "string" ? getClipboardDataFromString(doc, clipboardData) : clipboardData) !== null && _ref !== void 0 ? _ref : await readDataTransferFromClipboard(doc).catch(() => { 55534 throw new Error("`userEvent.paste()` without `clipboardData` requires the `ClipboardAPI` to be available."); 55535 }); 55536 this.dispatchUIEvent(target, "paste", { 55537 clipboardData: dataTransfer 55538 }); 55539} 55540function getClipboardDataFromString(doc, text) { 55541 let dt = createDataTransfer(getWindow(doc)); 55542 return dt.setData("text", text), dt; 55543} 55544
vendor: 484 bytes, lines 55545-55558
55545// ../../node_modules/@testing-library/user-event/dist/esm/pointer/parseKeyDef.js 55546function parseKeyDef2(pointerMap, keys3) { 55547 let defs = []; 55548 do { 55549 let { descriptor, consumedLength, releasePrevious, releaseSelf = !0 } = readNextDescriptor(keys3, "pointer"), keyDef = pointerMap.find((p3) => p3.name === descriptor); 55550 keyDef && defs.push({ 55551 keyDef, 55552 releasePrevious, 55553 releaseSelf 55554 }), keys3 = keys3.slice(consumedLength); 55555 } while (keys3); 55556 return defs; 55557} 55558
vendor: 3,189 bytes, lines 55559-55598
55559// ../../node_modules/@testing-library/user-event/dist/esm/pointer/index.js 55560async function pointer(input2) { 55561 let { pointerMap } = this.config, actions = []; 55562 (Array.isArray(input2) ? input2 : [ 55563 input2 55564 ]).forEach((actionInput) => { 55565 typeof actionInput == "string" ? actions.push(...parseKeyDef2(pointerMap, actionInput)) : "keys" in actionInput ? actions.push(...parseKeyDef2(pointerMap, actionInput.keys).map((i) => ({ 55566 ...actionInput, 55567 ...i 55568 }))) : actions.push(actionInput); 55569 }); 55570 for (let i = 0; i < actions.length; i++) 55571 await wait(this.config), await pointerAction(this, actions[i]); 55572 this.system.pointer.resetClickCount(); 55573} 55574async function pointerAction(instance, action2) { 55575 var _previousPosition_caret, _previousPosition_caret1; 55576 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); 55577 var _action_target, _action_coords, _action_node, _action_offset; 55578 let position2 = { 55579 target: (_action_target = action2.target) !== null && _action_target !== void 0 ? _action_target : getPrevTarget(instance, previousPosition), 55580 coords: (_action_coords = action2.coords) !== null && _action_coords !== void 0 ? _action_coords : previousPosition?.coords, 55581 caret: { 55582 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, 55583 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 55584 } 55585 }; 55586 "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)); 55587} 55588function hasCaretPosition(action2) { 55589 var _action_target, _ref; 55590 return !!((_ref = (_action_target = action2.target) !== null && _action_target !== void 0 ? _action_target : action2.node) !== null && _ref !== void 0 ? _ref : action2.offset !== void 0); 55591} 55592function getPrevTarget(instance, position2) { 55593 if (!position2) 55594 throw new Error("This pointer has no previous position. Provide a target property!"); 55595 var _position_target; 55596 return (_position_target = position2.target) !== null && _position_target !== void 0 ? _position_target : instance.config.document.body; 55597} 55598
vendor: 571 bytes, lines 55599-55609
55599// ../../node_modules/@testing-library/user-event/dist/esm/utility/clear.js 55600async function clear(element) { 55601 if (!isEditable(element) || isDisabled2(element)) 55602 throw new Error("clear()` is only supported on editable elements."); 55603 if (focusElement(element), element.ownerDocument.activeElement !== element) 55604 throw new Error("The element to be cleared could not be focused."); 55605 if (selectAll(element), !isAllSelected(element)) 55606 throw new Error("The element content to be cleared could not be selected."); 55607 input(this, element, "", "deleteContentBackward"); 55608} 55609
vendor: 3,276 bytes, lines 55610-55657
55610// ../../node_modules/@testing-library/user-event/dist/esm/utility/selectOptions.js 55611async function selectOptions(select, values) { 55612 return selectOptionsBase.call(this, !0, select, values); 55613} 55614async function deselectOptions(select, values) { 55615 return selectOptionsBase.call(this, !1, select, values); 55616} 55617async function selectOptionsBase(newValue, select, values) { 55618 if (!newValue && !select.multiple) 55619 throw getConfig2().getElementError("Unable to deselect an option in a non-multiple select. Use selectOptions to change the selection instead.", select); 55620 let valArray = Array.isArray(values) ? values : [ 55621 values 55622 ], allOptions = Array.from(select.querySelectorAll('option, [role="option"]')), selectedOptions = valArray.map((val) => { 55623 if (typeof val != "string" && allOptions.includes(val)) 55624 return val; 55625 { 55626 let matchingOption = allOptions.find((o) => o.value === val || o.innerHTML === val); 55627 if (matchingOption) 55628 return matchingOption; 55629 throw getConfig2().getElementError(`Value "${String(val)}" not found in options`, select); 55630 } 55631 }).filter((option) => !isDisabled2(option)); 55632 if (isDisabled2(select) || !selectedOptions.length) return; 55633 let selectOption = (option) => { 55634 option.selected = newValue, this.dispatchUIEvent(select, "input", { 55635 bubbles: !0, 55636 cancelable: !1, 55637 composed: !0 55638 }), this.dispatchUIEvent(select, "change"); 55639 }; 55640 if (isElementType(select, "select")) 55641 if (select.multiple) 55642 for (let option of selectedOptions) { 55643 let withPointerEvents = this.config.pointerEventsCheck === 0 ? !0 : hasPointerEvents(this, option); 55644 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); 55645 } 55646 else if (selectedOptions.length === 1) { 55647 let withPointerEvents = this.config.pointerEventsCheck === 0 ? !0 : hasPointerEvents(this, select); 55648 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); 55649 } else 55650 throw getConfig2().getElementError("Cannot select multiple options on a non-multiple select", select); 55651 else if (select.getAttribute("role") === "listbox") 55652 for (let option of selectedOptions) 55653 await this.click(option), await this.unhover(option); 55654 else 55655 throw getConfig2().getElementError("Cannot select options on elements that are neither select nor listbox elements", select); 55656} 55657
vendor: 516 bytes, lines 55658-55662
55658// ../../node_modules/@testing-library/user-event/dist/esm/utility/type.js 55659async function type3(element, text, { skipClick = this.config.skipClick, skipAutoClose = this.config.skipAutoClose, initialSelectionStart, initialSelectionEnd } = {}) { 55660 element.disabled || (skipClick || await this.click(element), initialSelectionStart !== void 0 && setSelectionRange(element, initialSelectionStart, initialSelectionEnd ?? initialSelectionStart), await this.keyboard(text), skipAutoClose || await releaseAllKeys(this)); 55661} 55662
vendor: 1,424 bytes, lines 55663-55703
55663// ../../node_modules/@testing-library/user-event/dist/esm/utils/edit/setFiles.js 55664var fakeFiles = Symbol("files and value properties are mocked"); 55665function restoreProperty(obj, prop, descriptor) { 55666 descriptor ? Object.defineProperty(obj, prop, descriptor) : delete obj[prop]; 55667} 55668function setFiles(el, files) { 55669 var _el_fakeFiles; 55670 (_el_fakeFiles = el[fakeFiles]) === null || _el_fakeFiles === void 0 || _el_fakeFiles.restore(); 55671 let typeDescr = Object.getOwnPropertyDescriptor(el, "type"), valueDescr = Object.getOwnPropertyDescriptor(el, "value"), filesDescr = Object.getOwnPropertyDescriptor(el, "files"); 55672 function restore() { 55673 restoreProperty(el, "type", typeDescr), restoreProperty(el, "value", valueDescr), restoreProperty(el, "files", filesDescr); 55674 } 55675 el[fakeFiles] = { 55676 restore 55677 }, Object.defineProperties(el, { 55678 files: { 55679 configurable: !0, 55680 get: () => files 55681 }, 55682 value: { 55683 configurable: !0, 55684 get: () => files.length ? `C:\\fakepath\\${files[0].name}` : "", 55685 set(v) { 55686 if (v === "") 55687 restore(); 55688 else { 55689 var _valueDescr_set; 55690 valueDescr == null || (_valueDescr_set = valueDescr.set) === null || _valueDescr_set === void 0 || _valueDescr_set.call(el, v); 55691 } 55692 } 55693 }, 55694 type: { 55695 configurable: !0, 55696 get: () => "file", 55697 set(v) { 55698 v !== "file" && (restore(), el.type = v); 55699 } 55700 } 55701 }); 55702} 55703
vendor: 1,821 bytes, lines 55704-55736
55704// ../../node_modules/@testing-library/user-event/dist/esm/utility/upload.js 55705async function upload(element, fileOrFiles) { 55706 let input2 = isElementType(element, "label") ? element.control : element; 55707 if (!input2 || !isElementType(input2, "input", { 55708 type: "file" 55709 })) 55710 throw new TypeError(`The ${input2 === element ? "given" : "associated"} ${input2?.tagName} element does not accept file uploads`); 55711 if (isDisabled2(element)) return; 55712 let files = (Array.isArray(fileOrFiles) ? fileOrFiles : [ 55713 fileOrFiles 55714 ]).filter((file) => !this.config.applyAccept || isAcceptableFile(file, input2.accept)).slice(0, input2.multiple ? void 0 : 1), fileDialog = () => { 55715 var _input_files; 55716 files.length === ((_input_files = input2.files) === null || _input_files === void 0 ? void 0 : _input_files.length) && files.every((f4, i) => { 55717 var _input_files2; 55718 return f4 === ((_input_files2 = input2.files) === null || _input_files2 === void 0 ? void 0 : _input_files2.item(i)); 55719 }) || (setFiles(input2, createFileList(getWindow(element), files)), this.dispatchUIEvent(input2, "input"), this.dispatchUIEvent(input2, "change")); 55720 }; 55721 input2.addEventListener("fileDialog", fileDialog), await this.click(element), input2.removeEventListener("fileDialog", fileDialog); 55722} 55723function normalize3(nameOrType) { 55724 return nameOrType.toLowerCase().replace(/(\.|\/)jpg\b/g, "$1jpeg"); 55725} 55726function isAcceptableFile(file, accept) { 55727 if (!accept) 55728 return !0; 55729 let wildcards = [ 55730 "audio/*", 55731 "image/*", 55732 "video/*" 55733 ]; 55734 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); 55735} 55736
vendor: 283 bytes, lines 55737-55756
55737// ../../node_modules/@testing-library/user-event/dist/esm/setup/api.js 55738var userEventApi = { 55739 click, 55740 dblClick, 55741 tripleClick, 55742 hover, 55743 unhover, 55744 tab, 55745 keyboard, 55746 copy: copy2, 55747 cut, 55748 paste, 55749 pointer, 55750 clear, 55751 deselectOptions, 55752 selectOptions, 55753 type: type3, 55754 upload 55755}; 55756
vendor: 170 bytes, lines 55757-55761
55757// ../../node_modules/@testing-library/user-event/dist/esm/setup/wrapAsync.js 55758function wrapAsync(implementation) { 55759 return getConfig2().asyncWrapper(implementation); 55760} 55761
vendor: 2,881 bytes, lines 55762-55846
55762// ../../node_modules/@testing-library/user-event/dist/esm/setup/setup.js 55763var defaultOptionsDirect = { 55764 applyAccept: !0, 55765 autoModify: !0, 55766 delay: 0, 55767 document: globalThis.document, 55768 keyboardMap: defaultKeyMap, 55769 pointerMap: defaultKeyMap2, 55770 pointerEventsCheck: PointerEventsCheckLevel.EachApiCall, 55771 skipAutoClose: !1, 55772 skipClick: !1, 55773 skipHover: !1, 55774 writeToClipboard: !1, 55775 advanceTimers: () => Promise.resolve() 55776}, defaultOptionsSetup = { 55777 ...defaultOptionsDirect, 55778 writeToClipboard: !0 55779}; 55780function createConfig(options = {}, defaults = defaultOptionsSetup, node2) { 55781 let document13 = getDocument2(options, node2, defaults); 55782 return { 55783 ...defaults, 55784 ...options, 55785 document: document13 55786 }; 55787} 55788function setupMain(options = {}) { 55789 let config4 = createConfig(options); 55790 prepareDocument(config4.document), patchFocus(getWindow(config4.document).HTMLElement); 55791 var _config_document_defaultView; 55792 let view = (_config_document_defaultView = config4.document.defaultView) !== null && _config_document_defaultView !== void 0 ? _config_document_defaultView : ( 55793 /* istanbul ignore next */ 55794 globalThis.window 55795 ); 55796 return attachClipboardStubToView(view), createInstance(config4).api; 55797} 55798function setupDirect({ keyboardState, pointerState, ...options } = {}, node2) { 55799 let config4 = createConfig(options, defaultOptionsDirect, node2); 55800 prepareDocument(config4.document), patchFocus(getWindow(config4.document).HTMLElement); 55801 var _ref; 55802 let system = (_ref = pointerState ?? keyboardState) !== null && _ref !== void 0 ? _ref : new System(); 55803 return { 55804 api: createInstance(config4, system).api, 55805 system 55806 }; 55807} 55808function setupSub(options) { 55809 return createInstance({ 55810 ...this.config, 55811 ...options 55812 }, this.system).api; 55813} 55814function wrapAndBindImpl(instance, impl) { 55815 function method(...args) { 55816 return setLevelRef(instance, ApiLevel.Call), wrapAsync(() => impl.apply(instance, args).then(async (ret) => (await wait(instance.config), ret))); 55817 } 55818 return Object.defineProperty(method, "name", { 55819 get: () => impl.name 55820 }), method; 55821} 55822function createInstance(config4, system = new System()) { 55823 let instance = {}; 55824 return Object.assign(instance, { 55825 config: config4, 55826 dispatchEvent: dispatchEvent.bind(instance), 55827 dispatchUIEvent: dispatchUIEvent.bind(instance), 55828 system, 55829 levelRefs: {}, 55830 ...userEventApi 55831 }), { 55832 instance, 55833 api: { 55834 ...Object.fromEntries(Object.entries(userEventApi).map(([name, api]) => [ 55835 name, 55836 wrapAndBindImpl(instance, api) 55837 ])), 55838 setup: setupSub.bind(instance) 55839 } 55840 }; 55841} 55842function getDocument2(options, node2, defaults) { 55843 var _options_document, _ref; 55844 return (_ref = (_options_document = options.document) !== null && _options_document !== void 0 ? _options_document : node2 && getDocumentFromNode(node2)) !== null && _ref !== void 0 ? _ref : defaults.document; 55845} 55846
vendor: 2,320 bytes, lines 55847-55920
55847// ../../node_modules/@testing-library/user-event/dist/esm/setup/directApi.js 55848var directApi_exports = {}; 55849__export(directApi_exports, { 55850 clear: () => clear2, 55851 click: () => click2, 55852 copy: () => copy3, 55853 cut: () => cut2, 55854 dblClick: () => dblClick2, 55855 deselectOptions: () => deselectOptions2, 55856 hover: () => hover2, 55857 keyboard: () => keyboard2, 55858 paste: () => paste2, 55859 pointer: () => pointer2, 55860 selectOptions: () => selectOptions2, 55861 tab: () => tab2, 55862 tripleClick: () => tripleClick2, 55863 type: () => type4, 55864 unhover: () => unhover2, 55865 upload: () => upload2 55866}); 55867function clear2(element) { 55868 return setupDirect().api.clear(element); 55869} 55870function click2(element, options = {}) { 55871 return setupDirect(options, element).api.click(element); 55872} 55873function copy3(options = {}) { 55874 return setupDirect(options).api.copy(); 55875} 55876function cut2(options = {}) { 55877 return setupDirect(options).api.cut(); 55878} 55879function dblClick2(element, options = {}) { 55880 return setupDirect(options).api.dblClick(element); 55881} 55882function deselectOptions2(select, values, options = {}) { 55883 return setupDirect(options).api.deselectOptions(select, values); 55884} 55885function hover2(element, options = {}) { 55886 return setupDirect(options).api.hover(element); 55887} 55888async function keyboard2(text, options = {}) { 55889 let { api, system } = setupDirect(options); 55890 return api.keyboard(text).then(() => system); 55891} 55892async function pointer2(input2, options = {}) { 55893 let { api, system } = setupDirect(options); 55894 return api.pointer(input2).then(() => system); 55895} 55896function paste2(clipboardData, options) { 55897 return setupDirect(options).api.paste(clipboardData); 55898} 55899function selectOptions2(select, values, options = {}) { 55900 return setupDirect(options).api.selectOptions(select, values); 55901} 55902function tripleClick2(element, options = {}) { 55903 return setupDirect(options).api.tripleClick(element); 55904} 55905function type4(element, text, options = {}) { 55906 return setupDirect(options, element).api.type(element, text, options); 55907} 55908function unhover2(element, options = {}) { 55909 let { api, system } = setupDirect(options); 55910 return system.pointer.setMousePosition({ 55911 target: element 55912 }), api.unhover(element); 55913} 55914function upload2(element, fileOrFiles, options = {}) { 55915 return setupDirect(options).api.upload(element, fileOrFiles); 55916} 55917function tab2(options = {}) { 55918 return setupDirect().api.tab(options); 55919} 55920
vendor: 139 bytes, lines 55921-55926
55921// ../../node_modules/@testing-library/user-event/dist/esm/setup/index.js 55922var userEvent = { 55923 ...directApi_exports, 55924 setup: setupMain 55925}; 55926
55927// src/test/testing-library.ts 55928init_client_logger(); 55929init_esm();
vendor: 3,748 bytes, lines 55929-56023
55929 55930var testingLibrary = instrument( 55931 { ...dom_esm_exports }, 55932 { 55933 getKeys: (obj) => Object.keys(obj).filter((key) => key !== "eventWrapper"), 55934 intercept: (method, path) => path[0] === "fireEvent" || method.startsWith("find") || method.startsWith("waitFor") 55935 } 55936); 55937testingLibrary.screen = new Proxy(testingLibrary.screen, { 55938 get(target, prop, receiver) { 55939 return typeof window < "u" && globalThis.location?.href?.includes("viewMode=docs") && once.warn(dedent` 55940 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. 55941 55942 More info: https://storybook.js.org/docs/writing-tests/interaction-testing?ref=error#querying-the-canvas 55943 `), Reflect.get(target, prop, receiver); 55944 } 55945}); 55946var { 55947 buildQueries: buildQueries2, 55948 configure: configure2, 55949 createEvent: createEvent3, 55950 fireEvent: fireEvent2, 55951 findAllByAltText: findAllByAltText2, 55952 findAllByDisplayValue: findAllByDisplayValue2, 55953 findAllByLabelText: findAllByLabelText2, 55954 findAllByPlaceholderText: findAllByPlaceholderText2, 55955 findAllByRole: findAllByRole2, 55956 findAllByTestId: findAllByTestId2, 55957 findAllByText: findAllByText2, 55958 findAllByTitle: findAllByTitle2, 55959 findByAltText: findByAltText2, 55960 findByDisplayValue: findByDisplayValue2, 55961 findByLabelText: findByLabelText2, 55962 findByPlaceholderText: findByPlaceholderText2, 55963 findByRole: findByRole2, 55964 findByTestId: findByTestId2, 55965 findByText: findByText2, 55966 findByTitle: findByTitle2, 55967 getAllByAltText: getAllByAltText2, 55968 getAllByDisplayValue: getAllByDisplayValue2, 55969 getAllByLabelText: getAllByLabelText2, 55970 getAllByPlaceholderText: getAllByPlaceholderText2, 55971 getAllByRole: getAllByRole2, 55972 getAllByTestId: getAllByTestId2, 55973 getAllByText: getAllByText2, 55974 getAllByTitle: getAllByTitle2, 55975 getByAltText: getByAltText2, 55976 getByDisplayValue: getByDisplayValue2, 55977 getByLabelText: getByLabelText2, 55978 getByPlaceholderText: getByPlaceholderText2, 55979 getByRole: getByRole2, 55980 getByTestId: getByTestId2, 55981 getByText: getByText2, 55982 getByTitle: getByTitle2, 55983 getConfig: getConfig3, 55984 getDefaultNormalizer: getDefaultNormalizer2, 55985 getElementError: getElementError2, 55986 getNodeText: getNodeText2, 55987 getQueriesForElement: getQueriesForElement2, 55988 getRoles: getRoles2, 55989 getSuggestedQuery: getSuggestedQuery2, 55990 isInaccessible: isInaccessible2, 55991 logDOM: logDOM2, 55992 logRoles: logRoles2, 55993 prettyDOM: prettyDOM2, 55994 queries: queries2, 55995 queryAllByAltText: queryAllByAltText2, 55996 queryAllByAttribute: queryAllByAttribute2, 55997 queryAllByDisplayValue: queryAllByDisplayValue2, 55998 queryAllByLabelText: queryAllByLabelText2, 55999 queryAllByPlaceholderText: queryAllByPlaceholderText2, 56000 queryAllByRole: queryAllByRole2, 56001 queryAllByTestId: queryAllByTestId2, 56002 queryAllByText: queryAllByText2, 56003 queryAllByTitle: queryAllByTitle2, 56004 queryByAltText: queryByAltText2, 56005 queryByAttribute: queryByAttribute2, 56006 queryByDisplayValue: queryByDisplayValue2, 56007 queryByLabelText: queryByLabelText2, 56008 queryByPlaceholderText: queryByPlaceholderText2, 56009 queryByRole: queryByRole2, 56010 queryByTestId: queryByTestId2, 56011 queryByText: queryByText2, 56012 queryByTitle: queryByTitle2, 56013 queryHelpers: queryHelpers2, 56014 screen: screen2, 56015 waitFor: waitFor2, 56016 waitForElementToBeRemoved: waitForElementToBeRemoved2, 56017 within, 56018 prettyFormat: prettyFormat2 56019} = testingLibrary, uninstrumentedUserEvent = userEvent, { userEvent: userEvent2 } = instrument( 56020 { userEvent }, 56021 { intercept: !0, getKeys: (obj) => Object.keys(obj).filter((key) => key !== "eventWrapper") } 56022); 56023
vendor: 671 bytes, lines 56024-56046
56024// src/test/index.ts 56025var { expect: expect3 } = instrument( 56026 { expect: expect2 }, 56027 { 56028 getKeys: (obj, depth) => { 56029 if ("constructor" in obj && obj.constructor === Assertion) { 56030 let privateApi = ["assert", "__methods", "__flags", "_obj"], keys3 = Object.keys(Object.getPrototypeOf(obj)).filter( 56031 (it) => !privateApi.includes(it) 56032 ); 56033 return depth > 2 ? keys3 : [...keys3, "not"]; 56034 } 56035 return "any" in obj ? Object.keys(obj).filter((it) => it !== "any") : Object.keys(obj); 56036 }, 56037 mutate: !0, 56038 intercept: (method) => method !== "expect" 56039 } 56040), sb = { 56041 mock: () => { 56042 } 56043}; 56044 56045// src/backgrounds/constants.ts 56046var ADDON_ID
560463 = "storybook/background", PARAM_KEY = "backgrounds"; 56047var EVENTS2 = { 56048 UPDATE: `${ADDON_ID3
vendor: 163 bytes, lines 56048-56056
56048}/update` 56049}; 56050 56051// src/backgrounds/defaults.ts 56052var DEFAULT_BACKGROUNDS = { 56053 light: { name: "light", value: "#F8F8F8" }, 56054 dark: { name: "dark", value: "#333" } 56055}; 56056
vendor: 2,046 bytes, lines 56057-56099
56057// src/backgrounds/utils.ts 56058var { document: document7 } = globalThis, isReduceMotionEnabled = () => globalThis?.matchMedia ? !!globalThis.matchMedia("(prefers-reduced-motion: reduce)")?.matches : !1, clearStyles = (selector) => { 56059 (Array.isArray(selector) ? selector : [selector]).forEach(clearStyle); 56060}, clearStyle = (selector) => { 56061 if (!document7) 56062 return; 56063 let element = document7.getElementById(selector); 56064 element && element.parentElement && element.parentElement.removeChild(element); 56065}, addGridStyle = (selector, css3) => { 56066 if (!document7) 56067 return; 56068 let existingStyle = document7.getElementById(selector); 56069 if (existingStyle) 56070 existingStyle.innerHTML !== css3 && (existingStyle.innerHTML = css3); 56071 else { 56072 let style = document7.createElement("style"); 56073 style.setAttribute("id", selector), style.innerHTML = css3, document7.head.appendChild(style); 56074 } 56075}, addBackgroundStyle = (selector, css3, storyId) => { 56076 if (!document7) 56077 return; 56078 let existingStyle = document7.getElementById(selector); 56079 if (existingStyle) 56080 existingStyle.innerHTML !== css3 && (existingStyle.innerHTML = css3); 56081 else { 56082 let style = document7.createElement("style"); 56083 style.setAttribute("id", selector), style.innerHTML = css3; 56084 let gridStyleSelector = `addon-backgrounds-grid${storyId ? `-docs-${storyId}` : ""}`, existingGridStyle = document7.getElementById(gridStyleSelector); 56085 existingGridStyle ? existingGridStyle.parentElement?.insertBefore(style, existingGridStyle) : document7.head.appendChild(style); 56086 } 56087}; 56088 56089// src/backgrounds/decorator.ts 56090var defaultGrid = { 56091 cellSize: 100, 56092 cellAmount: 10, 56093 opacity: 0.8 56094}, BG_SELECTOR_BASE = "addon-backgrounds", GRID_SELECTOR_BASE = "addon-backgrounds-grid", transitionStyle = isReduceMotionEnabled() ? "" : "transition: background-color 0.3s;", withBackgroundAndGrid = (StoryFn, context) => { 56095 let { globals = {}, parameters: parameters2 = {}, viewMode, id } = context, { 56096 options = DEFAULT_BACKGROUNDS, 56097 disable, 56098 grid = defaultGrid 56099 } = parameters2[PARAM_KEY
vendor: 2,702 bytes, lines 56099-56137
56099] || {}, 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; 56100 useEffect5(() => { 56101 let backgroundStyles = ` 56102 ${backgroundSelector} { 56103 background: ${value} !important; 56104 ${transitionStyle} 56105 }`; 56106 if (!shownBackground) { 56107 clearStyles(backgroundSelectorId); 56108 return; 56109 } 56110 addBackgroundStyle(backgroundSelectorId, backgroundStyles, backgroundTarget); 56111 }, [backgroundSelector, backgroundSelectorId, backgroundTarget, shownBackground, value]); 56112 let gridSelectorId = viewMode === "docs" ? `${GRID_SELECTOR_BASE}-docs-${id}` : `${GRID_SELECTOR_BASE}`; 56113 return useEffect5(() => { 56114 if (!showGrid) { 56115 clearStyles(gridSelectorId); 56116 return; 56117 } 56118 let gridSize = [ 56119 `${cellSize * cellAmount}px ${cellSize * cellAmount}px`, 56120 `${cellSize * cellAmount}px ${cellSize * cellAmount}px`, 56121 `${cellSize}px ${cellSize}px`, 56122 `${cellSize}px ${cellSize}px` 56123 ].join(", "), gridStyles = ` 56124 ${gridSelector} { 56125 background-size: ${gridSize} !important; 56126 background-position: ${offsetX}px ${offsetY}px, ${offsetX}px ${offsetY}px, ${offsetX}px ${offsetY}px, ${offsetX}px ${offsetY}px !important; 56127 background-blend-mode: difference !important; 56128 background-image: linear-gradient(rgba(130, 130, 130, ${opacity}) 1px, transparent 1px), 56129 linear-gradient(90deg, rgba(130, 130, 130, ${opacity}) 1px, transparent 1px), 56130 linear-gradient(rgba(130, 130, 130, ${opacity / 2}) 1px, transparent 1px), 56131 linear-gradient(90deg, rgba(130, 130, 130, ${opacity / 2}) 1px, transparent 1px) !important; 56132 } 56133 `; 56134 addGridStyle(gridSelectorId, gridStyles); 56135 }, [cellAmount, cellSize, gridSelector, gridSelectorId, showGrid, offsetX, offsetY, opacity]), StoryFn(); 56136}; 56137
56138// src/backgrounds/preview.ts 56139var decorators = globalThis.FEATURES?.backgrounds ? [withBackgroundAndGrid] : [], parameters = { 56140 [PARAM_KEY]: { 56141 grid: { 56142 cellSize: 20, 56143 opacity: 0.5, 56144 cellAmount: 5 56145 }, 56146 disable: !1 56147 } 56148}, initialGlobals = { 56149 [PARAM_KEY
vendor: 477 bytes, lines 56149-56166
56149]: { value: void 0, grid: !1 } 56150}; 56151 56152// src/component-testing/preview.ts 56153var { step } = instrument( 56154 { 56155 // It seems like the label is unused, but the instrumenter has access to it 56156 // The context will be bounded later in StoryRender, so that the user can write just: 56157 // await step("label", (context) => { 56158 // // labeled step 56159 // }); 56160 step: async (label, play, context) => play(context) 56161 }, 56162 { intercept: !0 } 56163); 56164 56165// src/highlight/constants.ts 56166var ADDON_ID
561664 = "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
vendor: 1,295 bytes, lines 56166-56187
56166; 56167 56168// src/highlight/icons.ts 56169var iconPaths = { 56170 chevronLeft: [ 56171 "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" 56172 ], 56173 chevronRight: [ 56174 "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" 56175 ], 56176 info: [ 56177 "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", 56178 "M7 14A7 7 0 107 0a7 7 0 000 14zm0-1A6 6 0 107 1a6 6 0 000 12z" 56179 ], 56180 shareAlt: [ 56181 "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", 56182 "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" 56183 ] 56184}; 56185 56186// src/highlight/utils.ts 56187var svgElements = "svg,path,rect,circle,line,polyline,polygon,ellipse,text".split(","), createElement
vendor: 2,142 bytes, lines 56187-56239
561876 = (type5, props = {}, children) => { 56188 let element = svgElements.includes(type5) ? document.createElementNS("http://www.w3.org/2000/svg", type5) : document.createElement(type5); 56189 return Object.entries(props).forEach(([key, val]) => { 56190 /[A-Z]/.test(key) ? (key === "onClick" && (element.addEventListener("click", val), element.addEventListener("keydown", (e) => { 56191 (e.key === "Enter" || e.key === " ") && (e.preventDefault(), val()); 56192 })), key === "onMouseEnter" && element.addEventListener("mouseenter", val), key === "onMouseLeave" && element.addEventListener("mouseleave", val)) : element.setAttribute(key, val); 56193 }), children?.forEach((child) => { 56194 if (!(child == null || child === !1)) 56195 try { 56196 element.appendChild(child); 56197 } catch { 56198 element.appendChild(document.createTextNode(String(child))); 56199 } 56200 }), element; 56201}, createIcon = (name) => iconPaths[name] && createElement6( 56202 "svg", 56203 { width: "14", height: "14", viewBox: "0 0 14 14", xmlns: "http://www.w3.org/2000/svg" }, 56204 iconPaths[name].map( 56205 (d) => createElement6("path", { 56206 fill: "currentColor", 56207 "fill-rule": "evenodd", 56208 "clip-rule": "evenodd", 56209 d 56210 }) 56211 ) 56212), normalizeOptions = (options) => { 56213 if ("elements" in options) { 56214 let { elements, color: color2, style } = options; 56215 return { 56216 id: void 0, 56217 priority: 0, 56218 selectors: elements, 56219 styles: { 56220 outline: `2px ${style} ${color2}`, 56221 outlineOffset: "2px", 56222 boxShadow: "0 0 0 6px rgba(255,255,255,0.6)" 56223 }, 56224 menu: void 0 56225 }; 56226 } 56227 let { menu, ...rest } = options; 56228 return { 56229 id: void 0, 56230 priority: 0, 56231 styles: { 56232 outline: "2px dashed #029cfd" 56233 }, 56234 ...rest, 56235 menu: Array.isArray(menu) ? menu.every(Array.isArray) ? menu : [menu] : void 0 56236 }; 56237}, isFunction3 = (obj) => obj instanceof Function, state = /* @__PURE__ */ new Map(), listeners2 = /* @__PURE__ */ new Map(), teardowns = /* @__PURE__ */ new Map(), useStore = (initialValue2) => { 56238 let key = Symbol(); 56239 return listeners2.set(key, []), state.set(key, initialValue2), { get: () => state.get(key), set: (update2) => {
vendor: 10,860 bytes, lines 56240-56439
56240 let current = state.get(key), next2 = isFunction3(update2) ? update2(current) : update2; 56241 next2 !== current && (state.set(key, next2), listeners2.get(key)?.forEach((listener) => { 56242 teardowns.get(listener)?.(), teardowns.set(listener, listener(next2)); 56243 })); 56244 }, subscribe: (listener) => (listeners2.get(key)?.push(listener), () => { 56245 let list = listeners2.get(key); 56246 list && listeners2.set( 56247 key, 56248 list.filter((l) => l !== listener) 56249 ); 56250 }), teardown: () => { 56251 listeners2.get(key)?.forEach((listener) => { 56252 teardowns.get(listener)?.(), teardowns.delete(listener); 56253 }), listeners2.delete(key), state.delete(key); 56254 } }; 56255}, mapElements = (highlights) => { 56256 let root2 = document.getElementById("storybook-root"), map2 = /* @__PURE__ */ new Map(); 56257 for (let highlight of highlights) { 56258 let { priority = 0 } = highlight; 56259 for (let selector of highlight.selectors) { 56260 let elements = [ 56261 ...document.querySelectorAll( 56262 // Elements matching the selector, excluding storybook elements and their descendants. 56263 // Necessary to find portaled elements (e.g. children of `body`). 56264 `:is(${selector}):not([id^="storybook-"], [id^="storybook-"] *, [class^="sb-"], [class^="sb-"] *)` 56265 ), 56266 // Elements matching the selector inside the storybook root, as these were excluded above. 56267 ...root2?.querySelectorAll(selector) || [] 56268 ]; 56269 for (let element of elements) { 56270 let existing = map2.get(element); 56271 (!existing || existing.priority <= priority) && map2.set(element, { 56272 ...highlight, 56273 priority, 56274 selectors: Array.from(new Set((existing?.selectors || []).concat(selector))) 56275 }); 56276 } 56277 } 56278 } 56279 return map2; 56280}, mapBoxes = (elements) => Array.from(elements.entries()).map(([element, { selectors, styles: styles4, hoverStyles, focusStyles, menu }]) => { 56281 let { top: top2, left: left2, width, height } = element.getBoundingClientRect(), { position: position2 } = getComputedStyle(element); 56282 return { 56283 element, 56284 selectors, 56285 styles: styles4, 56286 hoverStyles, 56287 focusStyles, 56288 menu, 56289 top: position2 === "fixed" ? top2 : top2 + window.scrollY, 56290 left: position2 === "fixed" ? left2 : left2 + window.scrollX, 56291 width, 56292 height 56293 }; 56294}).sort((a3, b) => b.width * b.height - a3.width * a3.height), isOverMenu = (menuElement, coordinates) => { 56295 let menu = menuElement.getBoundingClientRect(), { x, y } = coordinates; 56296 return menu?.top && menu?.left && x >= menu.left && x <= menu.left + menu.width && y >= menu.top && y <= menu.top + menu.height; 56297}, isTargeted = (box, boxElement, coordinates) => { 56298 if (!boxElement || !coordinates) 56299 return !1; 56300 let { left: left2, top: top2, width, height } = box; 56301 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); 56302 let { x, y } = coordinates; 56303 return x >= left2 && x <= left2 + width && y >= top2 && y <= top2 + height; 56304}, keepInViewport = (element, targetCoordinates, options = {}) => { 56305 let { x, y } = targetCoordinates, { margin = 5, topOffset = 0, centered = !1 } = options, { scrollX, scrollY, innerHeight: windowHeight, innerWidth: windowWidth } = window, top2 = Math.min( 56306 element.style.position === "fixed" ? y - scrollY : y, 56307 windowHeight - element.clientHeight - margin - topOffset + scrollY 56308 ), leftOffset = centered ? element.clientWidth / 2 : 0, left2 = element.style.position === "fixed" ? Math.max(Math.min(x - scrollX, windowWidth - leftOffset - margin), leftOffset + margin) : Math.max( 56309 Math.min(x, windowWidth - leftOffset - margin + scrollX), 56310 leftOffset + margin + scrollX 56311 ); 56312 Object.assign(element.style, { 56313 ...left2 !== x && { left: `${left2}px` }, 56314 ...top2 !== y && { top: `${top2}px` } 56315 }); 56316}, showPopover = (element) => { 56317 window.HTMLElement.prototype.hasOwnProperty("showPopover") && element.showPopover(); 56318}, hidePopover = (element) => { 56319 window.HTMLElement.prototype.hasOwnProperty("showPopover") && element.hidePopover(); 56320}, getEventDetails = (target) => ({ 56321 top: target.top, 56322 left: target.left, 56323 width: target.width, 56324 height: target.height, 56325 selectors: target.selectors, 56326 element: { 56327 attributes: Object.fromEntries( 56328 Array.from(target.element.attributes).map((attr) => [attr.name, attr.value]) 56329 ), 56330 localName: target.element.localName, 56331 tagName: target.element.tagName, 56332 outerHTML: target.element.outerHTML 56333 } 56334}); 56335 56336// src/highlight/useHighlights.ts 56337var menuId = "storybook-highlights-menu", rootId = "storybook-highlights-root", storybookRootId = "storybook-root", useHighlights = (channel) => { 56338 if (globalThis.__STORYBOOK_HIGHLIGHT_INITIALIZED) 56339 return; 56340 globalThis.__STORYBOOK_HIGHLIGHT_INITIALIZED = !0; 56341 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); 56342 highlights.subscribe(() => { 56343 root2 || (root2 = createElement6("div", { id: rootId }), document13.body.appendChild(root2)); 56344 }), highlights.subscribe((value) => { 56345 let storybookRoot = document13.getElementById(storybookRootId); 56346 if (!storybookRoot) 56347 return; 56348 elements.set(mapElements(value)); 56349 let observer = new MutationObserver(() => elements.set(mapElements(value))); 56350 return observer.observe(storybookRoot, { subtree: !0, childList: !0 }), () => { 56351 observer.disconnect(); 56352 }; 56353 }), elements.subscribe((value) => { 56354 let updateBoxes = () => requestAnimationFrame(() => boxes.set(mapBoxes(value))), observer = new ResizeObserver(updateBoxes); 56355 observer.observe(document13.body), Array.from(value.keys()).forEach((element) => observer.observe(element)); 56356 let scrollers = Array.from(document13.body.querySelectorAll("*")).filter((el) => { 56357 let { overflow, overflowX, overflowY } = window.getComputedStyle(el); 56358 return ["auto", "scroll"].some((o) => [overflow, overflowX, overflowY].includes(o)); 56359 }); 56360 return scrollers.forEach((element) => element.addEventListener("scroll", updateBoxes)), () => { 56361 observer.disconnect(), scrollers.forEach((element) => element.removeEventListener("scroll", updateBoxes)); 56362 }; 56363 }), elements.subscribe((value) => { 56364 let sticky = Array.from(value.keys()).filter(({ style }) => style.position === "sticky"), updateBoxes = () => requestAnimationFrame(() => { 56365 boxes.set( 56366 (current) => current.map((box) => { 56367 if (sticky.includes(box.element)) { 56368 let { top: top2, left: left2 } = box.element.getBoundingClientRect(); 56369 return { ...box, top: top2 + window.scrollY, left: left2 + window.scrollX }; 56370 } 56371 return box; 56372 }) 56373 ); 56374 }); 56375 return document13.addEventListener("scroll", updateBoxes), () => document13.removeEventListener("scroll", updateBoxes); 56376 }), elements.subscribe((value) => { 56377 targets.set((t) => t.filter(({ element }) => value.has(element))); 56378 }), targets.subscribe((value) => { 56379 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)); 56380 }); 56381 let styleElementByHighlight = new Map(/* @__PURE__ */ new Map()); 56382 highlights.subscribe((value) => { 56383 value.forEach(({ keyframes: keyframes2 }) => { 56384 if (keyframes2) { 56385 let style = styleElementByHighlight.get(keyframes2); 56386 style || (style = document13.createElement("style"), style.setAttribute("data-highlight", "keyframes"), styleElementByHighlight.set(keyframes2, style), document13.head.appendChild(style)), style.innerHTML = keyframes2; 56387 } 56388 }), styleElementByHighlight.forEach((style, keyframes2) => { 56389 value.some((v) => v.keyframes === keyframes2) || (style.remove(), styleElementByHighlight.delete(keyframes2)); 56390 }); 56391 }); 56392 let boxElementByTargetElement = new Map(/* @__PURE__ */ new Map()); 56393 boxes.subscribe((value) => { 56394 value.forEach((box) => { 56395 let boxElement = boxElementByTargetElement.get(box.element); 56396 if (root2 && !boxElement) { 56397 let props = { 56398 popover: "manual", 56399 "data-highlight-dimensions": `w${box.width.toFixed(0)}h${box.height.toFixed(0)}`, 56400 "data-highlight-coordinates": `x${box.left.toFixed(0)}y${box.top.toFixed(0)}` 56401 }; 56402 boxElement = root2.appendChild( 56403 createElement6("div", props, [createElement6("div")]) 56404 ), boxElementByTargetElement.set(box.element, boxElement); 56405 } 56406 }), boxElementByTargetElement.forEach((box, element) => { 56407 value.some(({ element: e }) => e === element) || (box.remove(), boxElementByTargetElement.delete(element)); 56408 }); 56409 }), boxes.subscribe((value) => { 56410 let targetable = value.filter((box) => box.menu); 56411 if (!targetable.length) 56412 return; 56413 let onClick = (event) => { 56414 requestAnimationFrame(() => { 56415 let menu = document13.getElementById(menuId), coords = { x: event.pageX, y: event.pageY }; 56416 if (menu && !isOverMenu(menu, coords)) { 56417 let results = targetable.filter((box) => { 56418 let boxElement = boxElementByTargetElement.get(box.element); 56419 return isTargeted(box, boxElement, coords); 56420 }); 56421 clickCoords.set(results.length ? coords : void 0), targets.set(results); 56422 } 56423 }); 56424 }; 56425 return document13.addEventListener("click", onClick), () => document13.removeEventListener("click", onClick); 56426 }); 56427 let updateHovered = () => { 56428 let menu = document13.getElementById(menuId), coords = hoverCoords.get(); 56429 !coords || menu && isOverMenu(menu, coords) || hovered.set((current) => { 56430 let update2 = boxes.get().filter((box) => { 56431 let boxElement = boxElementByTargetElement.get(box.element); 56432 return isTargeted(box, boxElement, coords); 56433 }), existing = current.filter((box) => update2.includes(box)), additions = update2.filter((box) => !current.includes(box)), hasRemovals = current.length - existing.length; 56434 return additions.length || hasRemovals ? [...existing, ...additions] : current; 56435 }); 56436 }; 56437 hoverCoords.subscribe(updateHovered), boxes.subscribe(updateHovered); 56438 let updateBoxStyles = () => { 56439 let selectedElement = selected.get(), targetElements = selectedElement ? [selectedElement] : targets.get(), focusedElement = targetElements.length === 1 ? targetElements[0] : focu
vendor: 11,007 bytes, lines 56439-56706
56439sed.get(), isMenuOpen = clickCoords.get() !== void 0; 56440 boxes.get().forEach((box) => { 56441 let boxElement = boxElementByTargetElement.get(box.element); 56442 if (boxElement) { 56443 let isFocused = focusedElement === box, isHovered = isMenuOpen ? focusedElement ? isFocused : targetElements.includes(box) : hovered.get()?.includes(box); 56444 Object.assign(boxElement.style, { 56445 animation: "none", 56446 background: "transparent", 56447 border: "none", 56448 boxSizing: "border-box", 56449 outline: "none", 56450 outlineOffset: "0px", 56451 ...box.styles, 56452 ...isHovered ? box.hoverStyles : {}, 56453 ...isFocused ? box.focusStyles : {}, 56454 position: getComputedStyle(box.element).position === "fixed" ? "fixed" : "absolute", 56455 zIndex: MAX_Z_INDEX - 10, 56456 top: `${box.top}px`, 56457 left: `${box.left}px`, 56458 width: `${box.width}px`, 56459 height: `${box.height}px`, 56460 margin: 0, 56461 padding: 0, 56462 cursor: box.menu && isHovered ? "pointer" : "default", 56463 pointerEvents: box.menu ? "auto" : "none", 56464 display: "flex", 56465 alignItems: "center", 56466 justifyContent: "center", 56467 overflow: "visible" 56468 }), Object.assign(boxElement.children[0].style, { 56469 width: "100%", 56470 height: "100%", 56471 minHeight: `${MIN_TOUCH_AREA_SIZE}px`, 56472 minWidth: `${MIN_TOUCH_AREA_SIZE}px`, 56473 boxSizing: "content-box", 56474 padding: boxElement.style.outlineWidth || "0px" 56475 }), showPopover(boxElement); 56476 } 56477 }); 56478 }; 56479 boxes.subscribe(updateBoxStyles), targets.subscribe(updateBoxStyles), hovered.subscribe(updateBoxStyles), focused.subscribe(updateBoxStyles), selected.subscribe(updateBoxStyles); 56480 let renderMenu = () => { 56481 if (!root2) 56482 return; 56483 let menu = document13.getElementById(menuId); 56484 if (menu) 56485 menu.innerHTML = ""; 56486 else { 56487 let props = { id: menuId, popover: "manual" }; 56488 menu = root2.appendChild(createElement6("div", props)), root2.appendChild( 56489 createElement6("style", {}, [ 56490 ` 56491 #${menuId} { 56492 position: absolute; 56493 z-index: ${MAX_Z_INDEX}; 56494 width: 300px; 56495 padding: 0px; 56496 margin: 15px 0 0 0; 56497 transform: translateX(-50%); 56498 font-family: "Nunito Sans", -apple-system, ".SFNSText-Regular", "San Francisco", BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif; 56499 font-size: 12px; 56500 background: white; 56501 border: none; 56502 border-radius: 6px; 56503 box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.05), 0 5px 15px 0 rgba(0, 0, 0, 0.1); 56504 color: #2E3438; 56505 } 56506 #${menuId} ul { 56507 list-style: none; 56508 margin: 0; 56509 padding: 0; 56510 } 56511 #${menuId} > ul { 56512 max-height: 300px; 56513 overflow-y: auto; 56514 padding: 4px 0; 56515 } 56516 #${menuId} li { 56517 padding: 0 4px; 56518 margin: 0; 56519 } 56520 #${menuId} li > :not(ul) { 56521 display: flex; 56522 padding: 8px; 56523 margin: 0; 56524 align-items: center; 56525 gap: 8px; 56526 border-radius: 4px; 56527 } 56528 #${menuId} button { 56529 width: 100%; 56530 border: 0; 56531 background: transparent; 56532 color: inherit; 56533 text-align: left; 56534 font-family: inherit; 56535 font-size: inherit; 56536 } 56537 #${menuId} button:focus-visible { 56538 outline-color: #029CFD; 56539 } 56540 #${menuId} button:hover { 56541 background: rgba(2, 156, 253, 0.07); 56542 color: #029CFD; 56543 cursor: pointer; 56544 } 56545 #${menuId} li code { 56546 white-space: nowrap; 56547 overflow: hidden; 56548 text-overflow: ellipsis; 56549 line-height: 16px; 56550 font-size: 11px; 56551 } 56552 #${menuId} li svg { 56553 flex-shrink: 0; 56554 margin: 1px; 56555 color: #73828C; 56556 } 56557 #${menuId} li > button:hover svg, #${menuId} li > button:focus-visible svg { 56558 color: #029CFD; 56559 } 56560 #${menuId} .element-list li svg { 56561 display: none; 56562 } 56563 #${menuId} li.selectable svg, #${menuId} li.selected svg { 56564 display: block; 56565 } 56566 #${menuId} .menu-list { 56567 border-top: 1px solid rgba(38, 85, 115, 0.15); 56568 } 56569 #${menuId} .menu-list > li:not(:last-child) { 56570 padding-bottom: 4px; 56571 margin-bottom: 4px; 56572 border-bottom: 1px solid rgba(38, 85, 115, 0.15); 56573 } 56574 #${menuId} .menu-items, #${menuId} .menu-items li { 56575 padding: 0; 56576 } 56577 #${menuId} .menu-item { 56578 display: flex; 56579 } 56580 #${menuId} .menu-item-content { 56581 display: flex; 56582 flex-direction: column; 56583 flex-grow: 1; 56584 } 56585 ` 56586 ]) 56587 ); 56588 } 56589 let selectedElement = selected.get(), elementList = selectedElement ? [selectedElement] : targets.get(); 56590 if (elementList.length && (menu.style.position = getComputedStyle(elementList[0].element).position === "fixed" ? "fixed" : "absolute", menu.appendChild( 56591 createElement6( 56592 "ul", 56593 { class: "element-list" }, 56594 elementList.map((target) => { 56595 let selectable = elementList.length > 1 && !!target.menu?.some( 56596 (group) => group.some( 56597 (item) => !item.selectors || item.selectors.some((s3) => target.selectors.includes(s3)) 56598 ) 56599 ), props = selectable ? { 56600 class: "selectable", 56601 onClick: () => selected.set(target), 56602 onMouseEnter: () => focused.set(target), 56603 onMouseLeave: () => focused.set(void 0) 56604 } : selectedElement ? { class: "selected", onClick: () => selected.set(void 0) } : {}, asButton = selectable || selectedElement; 56605 return createElement6("li", props, [ 56606 createElement6(asButton ? "button" : "div", asButton ? { type: "button" } : {}, [ 56607 selectedElement ? createIcon("chevronLeft") : null, 56608 createElement6("code", {}, [target.element.outerHTML]), 56609 selectable ? createIcon("chevronRight") : null 56610 ]) 56611 ]); 56612 }) 56613 ) 56614 )), selected.get() || targets.get().length === 1) { 56615 let target = selected.get() || targets.get()[0], menuGroups = target.menu?.filter( 56616 (group) => group.some( 56617 (item) => !item.selectors || item.selectors.some((s3) => target.selectors.includes(s3)) 56618 ) 56619 ); 56620 menuGroups?.length && menu.appendChild( 56621 createElement6( 56622 "ul", 56623 { class: "menu-list" }, 56624 menuGroups.map( 56625 (menuItems) => createElement6("li", {}, [ 56626 createElement6( 56627 "ul", 56628 { class: "menu-items" }, 56629 menuItems.map( 56630 ({ id, title, description, iconLeft, iconRight, clickEvent: event }) => { 56631 let onClick = event && (() => channel.emit(event, id, getEventDetails(target))); 56632 return createElement6("li", {}, [ 56633 createElement6( 56634 onClick ? "button" : "div", 56635 onClick ? { class: "menu-item", type: "button", onClick } : { class: "menu-item" }, 56636 [ 56637 iconLeft ? createIcon(iconLeft) : null, 56638 createElement6("div", { class: "menu-item-content" }, [ 56639 createElement6(description ? "strong" : "span", {}, [title]), 56640 description && createElement6("span", {}, [description]) 56641 ]), 56642 iconRight ? createIcon(iconRight) : null 56643 ] 56644 ) 56645 ]); 56646 } 56647 ) 56648 ) 56649 ]) 56650 ) 56651 ) 56652 ); 56653 } 56654 let coords = clickCoords.get(); 56655 coords ? (Object.assign(menu.style, { 56656 display: "block", 56657 left: `${menu.style.position === "fixed" ? coords.x - window.scrollX : coords.x}px`, 56658 top: `${menu.style.position === "fixed" ? coords.y - window.scrollY : coords.y}px` 56659 }), showPopover(menu), requestAnimationFrame(() => keepInViewport(menu, coords, { topOffset: 15, centered: !0 }))) : (hidePopover(menu), Object.assign(menu.style, { display: "none" })); 56660 }; 56661 targets.subscribe(renderMenu), selected.subscribe(renderMenu); 56662 let addHighlight = (highlight) => { 56663 let info = normalizeOptions(highlight); 56664 highlights.set((value) => { 56665 let others = info.id ? value.filter((h3) => h3.id !== info.id) : value; 56666 return info.selectors?.length ? [...others, info] : others; 56667 }); 56668 }, removeHighlight = (id) => { 56669 id && highlights.set((value) => value.filter((h3) => h3.id !== id)); 56670 }, resetState = () => { 56671 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); 56672 }, removeTimeout, scrollIntoView = (target, options) => { 56673 let id = "scrollIntoView-highlight"; 56674 clearTimeout(removeTimeout), removeHighlight(id); 56675 let element = document13.querySelector(target); 56676 if (!element) { 56677 console.warn(`Cannot scroll into view: ${target} not found`); 56678 return; 56679 } 56680 element.scrollIntoView({ behavior: "smooth", block: "center", ...options }); 56681 let keyframeName = `kf-${Math.random().toString(36).substring(2, 15)}`; 56682 highlights.set((value) => [ 56683 ...value, 56684 { 56685 id, 56686 priority: 1e3, 56687 selectors: [target], 56688 styles: { 56689 outline: "2px solid #1EA7FD", 56690 outlineOffset: "-1px", 56691 animation: `${keyframeName} 3s linear forwards` 56692 }, 56693 keyframes: `@keyframes ${keyframeName} { 56694 0% { outline: 2px solid #1EA7FD; } 56695 20% { outline: 2px solid #1EA7FD00; } 56696 40% { outline: 2px solid #1EA7FD; } 56697 60% { outline: 2px solid #1EA7FD00; } 56698 80% { outline: 2px solid #1EA7FD; } 56699 100% { outline: 2px solid #1EA7FD00; } 56700 }` 56701 } 56702 ]), removeTimeout = setTimeout(() => removeHighlight(id), 3500); 56703 }, onMouseMove = (event) => { 56704 requestAnimationFrame(() => hoverCoords.set({ x: event.pageX, y: event.pageY })); 56705 }; 56706 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
vendor: 265 bytes, lines 56706-56715
56706.on(STORY_RENDER_PHASE_CHANGED, ({ newPhase }) => { 56707 newPhase === "loading" && resetState(); 56708 }); 56709}; 56710 56711// src/highlight/preview.ts 56712globalThis?.FEATURES?.highlight && addons2?.ready && addons2.ready().then(useHighlights); 56713 56714// src/measure/constants.ts 56715var ADDON_ID
567155 = "storybook/measure-addon", TOOL_ID = `${ADDON_ID5}/tool`, PARAM_KEY2 = "measureEnabled", EVENTS3 = { 56716 RESULT: `${ADDON_ID5}/result`, 56717 REQUEST: `${ADDON_ID5}/request`, 56718 CLEAR: `${ADDON_ID5
vendor: 2,225 bytes, lines 56718-56770
56718}/clear` 56719}; 56720 56721// src/measure/box-model/canvas.ts 56722init_dist(); 56723function getDocumentWidthAndHeight() { 56724 let container = scope.document.documentElement, height = Math.max(container.scrollHeight, container.offsetHeight); 56725 return { width: Math.max(container.scrollWidth, container.offsetWidth), height }; 56726} 56727function createCanvas() { 56728 let canvas = scope.document.createElement("canvas"); 56729 canvas.id = "storybook-addon-measure"; 56730 let context = canvas.getContext("2d"); 56731 invariant(context != null); 56732 let { width, height } = getDocumentWidthAndHeight(); 56733 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 }; 56734} 56735function setCanvasWidthAndHeight(canvas, context, { width, height }) { 56736 canvas.style.width = `${width}px`, canvas.style.height = `${height}px`; 56737 let scale = scope.window.devicePixelRatio; 56738 canvas.width = Math.floor(width * scale), canvas.height = Math.floor(height * scale), context.scale(scale, scale); 56739} 56740var state2 = {}; 56741function init3() { 56742 state2.canvas || (state2 = createCanvas()); 56743} 56744function clear3() { 56745 state2.context && state2.context.clearRect(0, 0, state2.width ?? 0, state2.height ?? 0); 56746} 56747function draw(callback) { 56748 clear3(), callback(state2.context); 56749} 56750function rescale() { 56751 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 }); 56752 let { width, height } = getDocumentWidthAndHeight(); 56753 setCanvasWidthAndHeight(state2.canvas, state2.context, { width, height }), state2.width = width, state2.height = height; 56754} 56755function destroy() { 56756 state2.canvas && (clear3(), state2.canvas.parentNode?.removeChild(state2.canvas), state2 = {}); 56757} 56758 56759// src/measure/box-model/visualizer.ts 56760init_dist(); 56761 56762// src/measure/box-model/labels.ts 56763var colors = { 56764 margin: "#f6b26b", 56765 border: "#ffe599", 56766 padding: "#93c47d", 56767 content: "#6fa8dc", 56768 text: "#232020" 56769}, labelPadding = 6; 56770function roundedRect(context, { x
vendor: 4,112 bytes, lines 56770-56807
56770, y, w, h: h3, r: r2 }) { 56771 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(); 56772} 56773function positionCoordinate(position2, { padding, border, width, height, top: top2, left: left2 }) { 56774 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; 56775 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 }; 56776} 56777function offset(type5, position2, { margin, border, padding }, labelPaddingSize, external) { 56778 let shift = (dir) => 0, offsetX = 0, offsetY = 0, locationMultiplier = external ? 1 : 0.5, labelPaddingShift = external ? labelPaddingSize * 2 : 0; 56779 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 }; 56780} 56781function collide(a3, b) { 56782 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; 56783} 56784function overlapAdjustment(position2, currentRect, prevRect) { 56785 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 }; 56786} 56787function textWithRect(context, type5, { x, y, w, h: h3 }, text) { 56788 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 }; 56789} 56790function configureText(context, text) { 56791 context.font = "600 12px monospace", context.textBaseline = "middle", context.textAlign = "center"; 56792 let metrics = context.measureText(text), actualHeight = metrics.actualBoundingBoxAscent + metrics.actualBoundingBoxDescent, w = metrics.width + labelPadding * 2, h3 = actualHeight + labelPadding * 2; 56793 return { w, h: h3 }; 56794} 56795function drawLabel(context, measurements, { type: type5, position: position2 = "center", text }, prevRect, external = !1) { 56796 let { x, y } = positionCoordinate(position2, measurements), { offsetX, offsetY } = offset(type5, position2, measurements, labelPadding + 1, external); 56797 x += offsetX, y += offsetY; 56798 let { w, h: h3 } = configureText(context, text); 56799 if (prevRect && collide({ x, y, w, h: h3 }, prevRect)) { 56800 let adjusted = overlapAdjustment(position2, { x, y, w, h: h3 }, prevRect); 56801 x = adjusted.x, y = adjusted.y; 56802 } 56803 return textWithRect(context, type5, { x, y, w, h: h3 }, text); 56804} 56805function floatingOffset(alignment2, { w, h: h3 }) { 56806 let deltaW = w * 0.5 + labelPadding, deltaH = h3 * 0.5 + labelPadding; 56807 return {
56808 offsetX: (alignment2.x === "left" ? -1 : 1) * deltaW, 56809 offsetY: (alignment2.y === "top" ? -1 : 1) * deltaH 56810 }; 56811} 56812function drawFloatingLabel(context, measurements, { type: type5, text }) { 56813 let { floatingAlignment: floatingAlignment2, extremities } = measurements, x = extremities[floatingAlignment2.x], y = extremities[floatingAlignment2.y], { w, h: h3 } = configureText(context, text), { offsetX, offsetY } = floatingOffset(floatingAlignment2, { 56814 w, 56815 h: h3 56816 }); 56817 return x += offsetX, y += offsetY, textWithRect(context, type5, { x, y, w, h: h3 }, text); 56818} 56819function drawStack(context, measurements, stack, external) { 56820 let rects = []; 56821 stack.forEach((l, idx) => { 56822 let rect = external && l.position === "center" ? drawFloatingLabel(context, measurements, l) : drawLabel(context, measurements, l, rects[idx - 1], external); 56823 rects[idx] = rect; 56824 }); 56825} 56826function labelStacks(context, measurements, labels, externalLabels) { 56827 let stacks = labels.reduce((acc, l) => (Object.prototype.hasOwnProperty.call(acc, l.position) || (acc[l.position] = []), acc[l.position]?.push(l), acc), {}); 56828 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); 56829} 56830
vendor: 6,830 bytes, lines 56831-57037
56831// src/measure/box-model/visualizer.ts 56832var colors2 = { 56833 margin: "#f6b26ba8", 56834 border: "#ffe599a8", 56835 padding: "#93c47d8c", 56836 content: "#6fa8dca8" 56837}, SMALL_NODE_SIZE = 30; 56838function pxToNumber(px) { 56839 return parseInt(px.replace("px", ""), 10); 56840} 56841function round(value) { 56842 return Number.isInteger(value) ? value : value.toFixed(2); 56843} 56844function filterZeroValues(labels) { 56845 return labels.filter((l) => l.text !== 0 && l.text !== "0"); 56846} 56847function floatingAlignment(extremities) { 56848 let windowExtremities = { 56849 top: scope.window.scrollY, 56850 bottom: scope.window.scrollY + scope.window.innerHeight, 56851 left: scope.window.scrollX, 56852 right: scope.window.scrollX + scope.window.innerWidth 56853 }, distances = { 56854 top: Math.abs(windowExtremities.top - extremities.top), 56855 bottom: Math.abs(windowExtremities.bottom - extremities.bottom), 56856 left: Math.abs(windowExtremities.left - extremities.left), 56857 right: Math.abs(windowExtremities.right - extremities.right) 56858 }; 56859 return { 56860 x: distances.left > distances.right ? "left" : "right", 56861 y: distances.top > distances.bottom ? "top" : "bottom" 56862 }; 56863} 56864function measureElement(element) { 56865 let style = scope.getComputedStyle(element), { top: top2, left: left2, right: right2, bottom: bottom2, width, height } = element.getBoundingClientRect(), { 56866 marginTop, 56867 marginBottom, 56868 marginLeft, 56869 marginRight, 56870 paddingTop, 56871 paddingBottom, 56872 paddingLeft, 56873 paddingRight, 56874 borderBottomWidth, 56875 borderTopWidth, 56876 borderLeftWidth, 56877 borderRightWidth 56878 } = style; 56879 top2 = top2 + scope.window.scrollY, left2 = left2 + scope.window.scrollX, bottom2 = bottom2 + scope.window.scrollY, right2 = right2 + scope.window.scrollX; 56880 let margin = { 56881 top: pxToNumber(marginTop), 56882 bottom: pxToNumber(marginBottom), 56883 left: pxToNumber(marginLeft), 56884 right: pxToNumber(marginRight) 56885 }, padding = { 56886 top: pxToNumber(paddingTop), 56887 bottom: pxToNumber(paddingBottom), 56888 left: pxToNumber(paddingLeft), 56889 right: pxToNumber(paddingRight) 56890 }, border = { 56891 top: pxToNumber(borderTopWidth), 56892 bottom: pxToNumber(borderBottomWidth), 56893 left: pxToNumber(borderLeftWidth), 56894 right: pxToNumber(borderRightWidth) 56895 }, extremities = { 56896 top: top2 - margin.top, 56897 bottom: bottom2 + margin.bottom, 56898 left: left2 - margin.left, 56899 right: right2 + margin.right 56900 }; 56901 return { 56902 margin, 56903 padding, 56904 border, 56905 top: top2, 56906 left: left2, 56907 bottom: bottom2, 56908 right: right2, 56909 width, 56910 height, 56911 extremities, 56912 floatingAlignment: floatingAlignment(extremities) 56913 }; 56914} 56915function drawMargin(context, { margin, width, height, top: top2, left: left2, bottom: bottom2, right: right2 }) { 56916 let marginHeight = height + margin.bottom + margin.top; 56917 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); 56918 let marginLabels = [ 56919 { 56920 type: "margin", 56921 text: round(margin.top), 56922 position: "top" 56923 }, 56924 { 56925 type: "margin", 56926 text: round(margin.right), 56927 position: "right" 56928 }, 56929 { 56930 type: "margin", 56931 text: round(margin.bottom), 56932 position: "bottom" 56933 }, 56934 { 56935 type: "margin", 56936 text: round(margin.left), 56937 position: "left" 56938 } 56939 ]; 56940 return filterZeroValues(marginLabels); 56941} 56942function drawPadding(context, { padding, border, width, height, top: top2, left: left2, bottom: bottom2, right: right2 }) { 56943 let paddingWidth = width - border.left - border.right, paddingHeight = height - padding.top - padding.bottom - border.top - border.bottom; 56944 context.fillStyle = colors2.padding, context.fillRect(left2 + border.left, top2 + border.top, paddingWidth, padding.top), context.fillRect( 56945 right2 - padding.right - border.right, 56946 top2 + padding.top + border.top, 56947 padding.right, 56948 paddingHeight 56949 ), context.fillRect( 56950 left2 + border.left, 56951 bottom2 - padding.bottom - border.bottom, 56952 paddingWidth, 56953 padding.bottom 56954 ), context.fillRect(left2 + border.left, top2 + padding.top + border.top, padding.left, paddingHeight); 56955 let paddingLabels = [ 56956 { 56957 type: "padding", 56958 text: padding.top, 56959 position: "top" 56960 }, 56961 { 56962 type: "padding", 56963 text: padding.right, 56964 position: "right" 56965 }, 56966 { 56967 type: "padding", 56968 text: padding.bottom, 56969 position: "bottom" 56970 }, 56971 { 56972 type: "padding", 56973 text: padding.left, 56974 position: "left" 56975 } 56976 ]; 56977 return filterZeroValues(paddingLabels); 56978} 56979function drawBorder(context, { border, width, height, top: top2, left: left2, bottom: bottom2, right: right2 }) { 56980 let borderHeight = height - border.top - border.bottom; 56981 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); 56982 let borderLabels = [ 56983 { 56984 type: "border", 56985 text: border.top, 56986 position: "top" 56987 }, 56988 { 56989 type: "border", 56990 text: border.right, 56991 position: "right" 56992 }, 56993 { 56994 type: "border", 56995 text: border.bottom, 56996 position: "bottom" 56997 }, 56998 { 56999 type: "border", 57000 text: border.left, 57001 position: "left" 57002 } 57003 ]; 57004 return filterZeroValues(borderLabels); 57005} 57006function drawContent(context, { padding, border, width, height, top: top2, left: left2 }) { 57007 let contentWidth = width - border.left - border.right - padding.left - padding.right, contentHeight = height - padding.top - padding.bottom - border.top - border.bottom; 57008 return context.fillStyle = colors2.content, context.fillRect( 57009 left2 + border.left + padding.left, 57010 top2 + border.top + padding.top, 57011 contentWidth, 57012 contentHeight 57013 ), [ 57014 { 57015 type: "content", 57016 position: "center", 57017 text: `${round(contentWidth)} x ${round(contentHeight)}` 57018 } 57019 ]; 57020} 57021function drawBoxModel(element) { 57022 return (context) => { 57023 if (element && context) { 57024 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; 57025 labelStacks( 57026 context, 57027 measurements, 57028 [...contentLabels, ...paddingLabels, ...borderLabels, ...marginLabels], 57029 externalLabels 57030 ); 57031 } 57032 }; 57033} 57034function drawSelectedElement(element) { 57035 draw(drawBoxModel(element)); 57036} 57037
57038// src/measure/util.ts 57039init_dist(); 57040var deepElementFromPoint = (x, y) => { 57041 let element = scope.document.elementFromPoint(x, y), crawlShadows = (node2) => { 57042 if (node2 && node2.shadowRoot) { 57043 let nestedElement = node2.shadowRoot.elementFromPoint(x, y); 57044 return node2.isEqualNode(nestedElement) ? node2 : nestedElement.shadowRoot ? crawlShadows(nestedElement) : nestedElement; 57045 } 57046 return node2; 57047 }; 57048 return crawlShadows(element) || element; 57049}; 57050
vendor: 1,433 bytes, lines 57051-57084
57051// src/measure/withMeasure.ts 57052var nodeAtPointerRef, pointer3 = { x: 0, y: 0 }; 57053function findAndDrawElement(x, y) { 57054 nodeAtPointerRef = deepElementFromPoint(x, y), drawSelectedElement(nodeAtPointerRef); 57055} 57056var withMeasure = (StoryFn, context) => { 57057 let { measureEnabled } = context.globals || {}; 57058 return useEffect5(() => { 57059 if (typeof globalThis.document > "u") 57060 return; 57061 let onPointerMove = (event) => { 57062 window.requestAnimationFrame(() => { 57063 event.stopPropagation(), pointer3.x = event.clientX, pointer3.y = event.clientY; 57064 }); 57065 }; 57066 return globalThis.document.addEventListener("pointermove", onPointerMove), () => { 57067 globalThis.document.removeEventListener("pointermove", onPointerMove); 57068 }; 57069 }, []), useEffect5(() => { 57070 let onPointerOver = (event) => { 57071 window.requestAnimationFrame(() => { 57072 event.stopPropagation(), findAndDrawElement(event.clientX, event.clientY); 57073 }); 57074 }, onResize = () => { 57075 window.requestAnimationFrame(() => { 57076 rescale(); 57077 }); 57078 }; 57079 return context.viewMode === "story" && measureEnabled && (globalThis.document.addEventListener("pointerover", onPointerOver), init3(), globalThis.window.addEventListener("resize", onResize), findAndDrawElement(pointer3.x, pointer3.y)), () => { 57080 globalThis.window.removeEventListener("resize", onResize), destroy(); 57081 }; 57082 }, [measureEnabled, context.viewMode]), StoryFn(); 57083}; 57084
57085// src/measure/preview.ts 57086var decorators2 = globalThis.FEATURES?.measure ? [withMeasure] : [], initialGlobals2 = { 57087 [PARAM_KEY2]: !1 57088}; 57089
57090// src/outline/constants.ts 57091var PARAM_KEY3
vendor: 5,207 bytes, lines 57091-57342
57091 = "outline"; 57092 57093// src/outline/helpers.ts 57094init_dist(); 57095var clearStyles2 = (selector) => { 57096 (Array.isArray(selector) ? selector : [selector]).forEach(clearStyle2); 57097}, clearStyle2 = (input2) => { 57098 let selector = typeof input2 == "string" ? input2 : input2.join(""), element = scope.document.getElementById(selector); 57099 element && element.parentElement && element.parentElement.removeChild(element); 57100}, addOutlineStyles = (selector, css3) => { 57101 let existingStyle = scope.document.getElementById(selector); 57102 if (existingStyle) 57103 existingStyle.innerHTML !== css3 && (existingStyle.innerHTML = css3); 57104 else { 57105 let style = scope.document.createElement("style"); 57106 style.setAttribute("id", selector), style.innerHTML = css3, scope.document.head.appendChild(style); 57107 } 57108}; 57109 57110// src/outline/outlineCSS.ts 57111init_esm(); 57112function outlineCSS(selector) { 57113 return dedent` 57114 ${selector} body { 57115 outline: 1px solid #2980b9 !important; 57116 } 57117 57118 ${selector} article { 57119 outline: 1px solid #3498db !important; 57120 } 57121 57122 ${selector} nav { 57123 outline: 1px solid #0088c3 !important; 57124 } 57125 57126 ${selector} aside { 57127 outline: 1px solid #33a0ce !important; 57128 } 57129 57130 ${selector} section { 57131 outline: 1px solid #66b8da !important; 57132 } 57133 57134 ${selector} header { 57135 outline: 1px solid #99cfe7 !important; 57136 } 57137 57138 ${selector} footer { 57139 outline: 1px solid #cce7f3 !important; 57140 } 57141 57142 ${selector} h1 { 57143 outline: 1px solid #162544 !important; 57144 } 57145 57146 ${selector} h2 { 57147 outline: 1px solid #314e6e !important; 57148 } 57149 57150 ${selector} h3 { 57151 outline: 1px solid #3e5e85 !important; 57152 } 57153 57154 ${selector} h4 { 57155 outline: 1px solid #449baf !important; 57156 } 57157 57158 ${selector} h5 { 57159 outline: 1px solid #c7d1cb !important; 57160 } 57161 57162 ${selector} h6 { 57163 outline: 1px solid #4371d0 !important; 57164 } 57165 57166 ${selector} main { 57167 outline: 1px solid #2f4f90 !important; 57168 } 57169 57170 ${selector} address { 57171 outline: 1px solid #1a2c51 !important; 57172 } 57173 57174 ${selector} div { 57175 outline: 1px solid #036cdb !important; 57176 } 57177 57178 ${selector} p { 57179 outline: 1px solid #ac050b !important; 57180 } 57181 57182 ${selector} hr { 57183 outline: 1px solid #ff063f !important; 57184 } 57185 57186 ${selector} pre { 57187 outline: 1px solid #850440 !important; 57188 } 57189 57190 ${selector} blockquote { 57191 outline: 1px solid #f1b8e7 !important; 57192 } 57193 57194 ${selector} ol { 57195 outline: 1px solid #ff050c !important; 57196 } 57197 57198 ${selector} ul { 57199 outline: 1px solid #d90416 !important; 57200 } 57201 57202 ${selector} li { 57203 outline: 1px solid #d90416 !important; 57204 } 57205 57206 ${selector} dl { 57207 outline: 1px solid #fd3427 !important; 57208 } 57209 57210 ${selector} dt { 57211 outline: 1px solid #ff0043 !important; 57212 } 57213 57214 ${selector} dd { 57215 outline: 1px solid #e80174 !important; 57216 } 57217 57218 ${selector} figure { 57219 outline: 1px solid #ff00bb !important; 57220 } 57221 57222 ${selector} figcaption { 57223 outline: 1px solid #bf0032 !important; 57224 } 57225 57226 ${selector} table { 57227 outline: 1px solid #00cc99 !important; 57228 } 57229 57230 ${selector} caption { 57231 outline: 1px solid #37ffc4 !important; 57232 } 57233 57234 ${selector} thead { 57235 outline: 1px solid #98daca !important; 57236 } 57237 57238 ${selector} tbody { 57239 outline: 1px solid #64a7a0 !important; 57240 } 57241 57242 ${selector} tfoot { 57243 outline: 1px solid #22746b !important; 57244 } 57245 57246 ${selector} tr { 57247 outline: 1px solid #86c0b2 !important; 57248 } 57249 57250 ${selector} th { 57251 outline: 1px solid #a1e7d6 !important; 57252 } 57253 57254 ${selector} td { 57255 outline: 1px solid #3f5a54 !important; 57256 } 57257 57258 ${selector} col { 57259 outline: 1px solid #6c9a8f !important; 57260 } 57261 57262 ${selector} colgroup { 57263 outline: 1px solid #6c9a9d !important; 57264 } 57265 57266 ${selector} button { 57267 outline: 1px solid #da8301 !important; 57268 } 57269 57270 ${selector} datalist { 57271 outline: 1px solid #c06000 !important; 57272 } 57273 57274 ${selector} fieldset { 57275 outline: 1px solid #d95100 !important; 57276 } 57277 57278 ${selector} form { 57279 outline: 1px solid #d23600 !important; 57280 } 57281 57282 ${selector} input { 57283 outline: 1px solid #fca600 !important; 57284 } 57285 57286 ${selector} keygen { 57287 outline: 1px solid #b31e00 !important; 57288 } 57289 57290 ${selector} label { 57291 outline: 1px solid #ee8900 !important; 57292 } 57293 57294 ${selector} legend { 57295 outline: 1px solid #de6d00 !important; 57296 } 57297 57298 ${selector} meter { 57299 outline: 1px solid #e8630c !important; 57300 } 57301 57302 ${selector} optgroup { 57303 outline: 1px solid #b33600 !important; 57304 } 57305 57306 ${selector} option { 57307 outline: 1px solid #ff8a00 !important; 57308 } 57309 57310 ${selector} output { 57311 outline: 1px solid #ff9619 !important; 57312 } 57313 57314 ${selector} progress { 57315 outline: 1px solid #e57c00 !important; 57316 } 57317 57318 ${selector} select { 57319 outline: 1px solid #e26e0f !important; 57320 } 57321 57322 ${selector} textarea { 57323 outline: 1px solid #cc5400 !important; 57324 } 57325 57326 ${selector} details { 57327 outline: 1px solid #33848f !important; 57328 } 57329 57330 ${selector} summary { 57331 outline: 1px solid #60a1a6 !important; 57332 } 57333 57334 ${selector} command { 57335 outline: 1px solid #438da1 !important; 57336 } 57337 57338 ${selector} menu { 57339 outline: 1px solid #449da6 !important; 57340 } 57341 57342 ${selector} del {
vendor: 3,232 bytes, lines 57343-57513
57343 outline: 1px solid #bf0000 !important; 57344 } 57345 57346 ${selector} ins { 57347 outline: 1px solid #400000 !important; 57348 } 57349 57350 ${selector} img { 57351 outline: 1px solid #22746b !important; 57352 } 57353 57354 ${selector} iframe { 57355 outline: 1px solid #64a7a0 !important; 57356 } 57357 57358 ${selector} embed { 57359 outline: 1px solid #98daca !important; 57360 } 57361 57362 ${selector} object { 57363 outline: 1px solid #00cc99 !important; 57364 } 57365 57366 ${selector} param { 57367 outline: 1px solid #37ffc4 !important; 57368 } 57369 57370 ${selector} video { 57371 outline: 1px solid #6ee866 !important; 57372 } 57373 57374 ${selector} audio { 57375 outline: 1px solid #027353 !important; 57376 } 57377 57378 ${selector} source { 57379 outline: 1px solid #012426 !important; 57380 } 57381 57382 ${selector} canvas { 57383 outline: 1px solid #a2f570 !important; 57384 } 57385 57386 ${selector} track { 57387 outline: 1px solid #59a600 !important; 57388 } 57389 57390 ${selector} map { 57391 outline: 1px solid #7be500 !important; 57392 } 57393 57394 ${selector} area { 57395 outline: 1px solid #305900 !important; 57396 } 57397 57398 ${selector} a { 57399 outline: 1px solid #ff62ab !important; 57400 } 57401 57402 ${selector} em { 57403 outline: 1px solid #800b41 !important; 57404 } 57405 57406 ${selector} strong { 57407 outline: 1px solid #ff1583 !important; 57408 } 57409 57410 ${selector} i { 57411 outline: 1px solid #803156 !important; 57412 } 57413 57414 ${selector} b { 57415 outline: 1px solid #cc1169 !important; 57416 } 57417 57418 ${selector} u { 57419 outline: 1px solid #ff0430 !important; 57420 } 57421 57422 ${selector} s { 57423 outline: 1px solid #f805e3 !important; 57424 } 57425 57426 ${selector} small { 57427 outline: 1px solid #d107b2 !important; 57428 } 57429 57430 ${selector} abbr { 57431 outline: 1px solid #4a0263 !important; 57432 } 57433 57434 ${selector} q { 57435 outline: 1px solid #240018 !important; 57436 } 57437 57438 ${selector} cite { 57439 outline: 1px solid #64003c !important; 57440 } 57441 57442 ${selector} dfn { 57443 outline: 1px solid #b4005a !important; 57444 } 57445 57446 ${selector} sub { 57447 outline: 1px solid #dba0c8 !important; 57448 } 57449 57450 ${selector} sup { 57451 outline: 1px solid #cc0256 !important; 57452 } 57453 57454 ${selector} time { 57455 outline: 1px solid #d6606d !important; 57456 } 57457 57458 ${selector} code { 57459 outline: 1px solid #e04251 !important; 57460 } 57461 57462 ${selector} kbd { 57463 outline: 1px solid #5e001f !important; 57464 } 57465 57466 ${selector} samp { 57467 outline: 1px solid #9c0033 !important; 57468 } 57469 57470 ${selector} var { 57471 outline: 1px solid #d90047 !important; 57472 } 57473 57474 ${selector} mark { 57475 outline: 1px solid #ff0053 !important; 57476 } 57477 57478 ${selector} bdi { 57479 outline: 1px solid #bf3668 !important; 57480 } 57481 57482 ${selector} bdo { 57483 outline: 1px solid #6f1400 !important; 57484 } 57485 57486 ${selector} ruby { 57487 outline: 1px solid #ff7b93 !important; 57488 } 57489 57490 ${selector} rt { 57491 outline: 1px solid #ff2f54 !important; 57492 } 57493 57494 ${selector} rp { 57495 outline: 1px solid #803e49 !important; 57496 } 57497 57498 ${selector} span { 57499 outline: 1px solid #cc2643 !important; 57500 } 57501 57502 ${selector} br { 57503 outline: 1px solid #db687d !important; 57504 } 57505 57506 ${selector} wbr { 57507 outline: 1px solid #db175b !important; 57508 }`; 57509} 57510 57511// src/outline/withOutline.ts 57512var withOutline = (StoryFn, context) => { 57513 let globals = context.globals || {}, isActive =
vendor: 509 bytes, lines 57513-57521
57513[!0, "true"].includes(globals[PARAM_KEY3]), isInDocs = context.viewMode === "docs", outlineStyles = useMemo3(() => outlineCSS(isInDocs ? '[data-story-block="true"]' : ".sb-show-main"), [context]); 57514 return useEffect5(() => { 57515 let selectorId = isInDocs ? `addon-outline-docs-${context.id}` : "addon-outline"; 57516 return isActive ? addOutlineStyles(selectorId, outlineStyles) : clearStyles2(selectorId), () => { 57517 clearStyles2(selectorId); 57518 }; 57519 }, [isActive, outlineStyles, context]), StoryFn(); 57520}; 57521
57522// src/outline/preview.ts 57523var decorators3 = globalThis.FEATURES?.outline ? [withOutline] : [], initialGlobals3 = { 57524 [PARAM_KEY3]: !1 57525}; 57526
57527// src/viewport/constants.ts 57528var ADDON_ID6 = "storybook/viewport", PARAM_KEY4 = "viewport", PANEL_ID3 = `${ADDON_ID6}/panel`, TOOL_ID2 = `${ADDON_ID6}/tool`; 57529
57530// src/viewport/preview.ts 57531var initialGlobals4 = { 57532 [PARAM_KEY4]: { value: void 0, isRotated: !1 } 57533}; 57534
57535// src/csf/index.ts 57536var sanitize = (string) => string.toLowerCase().replace(/[ âââââ²Â¿'`~!@#$%^&*()_|+\-=?;:'",.<>\{\}\[\]\\\/]/gi, "-").replace(/-+/g, "-").replace(/^-+/, "").replace(/-+$/, ""), sanitizeSafe = (string, part) => { 57537 let sanitized = sanitize(string); 57538 if (sanitized === "") 57539 throw new Error(`Invalid ${part} '${string}', must include alphanumeric characters`); 57540 return sanitized; 57541}, toId = (kind, name) => `${sanitizeSafe(kind, "kind")}${name ? `--${sanitizeSafe(name, "name")}` : ""}`; 57542
vendor: 257 bytes, lines 57543-57552
57543// ../../node_modules/es-toolkit/dist/array/countBy.mjs 57544function countBy(arr, mapper) { 57545 let result = {}; 57546 for (let i = 0; i < arr.length; i++) { 57547 let item = arr[i], key = mapper(item); 57548 result[key] = (result[key] ?? 0) + 1; 57549 } 57550 return result; 57551} 57552
vendor: 285 bytes, lines 57553-57562
57553// ../../node_modules/es-toolkit/dist/array/partition.mjs 57554function partition(arr, isInTruthy) { 57555 let truthy = [], falsy = []; 57556 for (let i = 0; i < arr.length; i++) { 57557 let item = arr[i]; 57558 isInTruthy(item) ? truthy.push(item) : falsy.push(item); 57559 } 57560 return [truthy, falsy]; 57561} 57562
vendor: 172 bytes, lines 57563-57568
57563// src/manager-api/lib/stories.ts 57564var import_memoizerific6 = __toESM(require_memoizerific(), 1); 57565init_esm(); 57566 57567// src/manager-api/lib/intersect.ts 57568var intersect_default = (a
575683, b) => !Array.isArray(a3) || !Array.isArray(b) || !a3.length || !b.length ? [] : a3.reduce((acc, aValue) => (b.includes(aValue) && acc.push(aValue), acc), []); 57569
vendor: 4,576 bytes, lines 57570-57681
57570// src/manager-api/lib/stories.ts 57571var TITLE_PATH_SEPARATOR = /\s*\/\s*/, denormalizeStoryParameters = ({ 57572 globalParameters, 57573 kindParameters, 57574 stories 57575}) => mapValues(stories, (storyData) => ({ 57576 ...storyData, 57577 parameters: combineParameters2( 57578 globalParameters, 57579 kindParameters[storyData.kind], 57580 storyData.parameters 57581 ) 57582})), transformSetStoriesStoryDataToPreparedStoryIndex = (stories) => ({ v: 5, entries: Object.entries(stories).reduce( 57583 (acc, [id, story]) => { 57584 if (!story) 57585 return acc; 57586 let { docsOnly, fileName, ...parameters2 } = story.parameters, base = { 57587 title: story.kind, 57588 id, 57589 name: story.name, 57590 importPath: fileName 57591 }; 57592 if (docsOnly) 57593 acc[id] = { 57594 type: "docs", 57595 tags: ["stories-mdx"], 57596 storiesImports: [], 57597 ...base 57598 }; 57599 else { 57600 let { argTypes, args, initialArgs } = story; 57601 acc[id] = { 57602 type: "story", 57603 subtype: "story", 57604 ...base, 57605 parameters: parameters2, 57606 argTypes, 57607 args, 57608 initialArgs 57609 }; 57610 } 57611 return acc; 57612 }, 57613 {} 57614) }), transformStoryIndexV2toV3 = (index4) => ({ 57615 v: 3, 57616 stories: Object.values(index4.stories).reduce( 57617 (acc, entry) => (acc[entry.id] = { 57618 ...entry, 57619 title: entry.kind, 57620 name: entry.name || entry.story, 57621 importPath: entry.parameters.fileName || "" 57622 }, acc), 57623 {} 57624 ) 57625}), transformStoryIndexV3toV4 = (index4) => { 57626 let countByTitle = countBy(Object.values(index4.stories), (item) => item.title); 57627 return { 57628 v: 4, 57629 entries: Object.values(index4.stories).reduce( 57630 (acc, entry) => { 57631 let type5 = "story"; 57632 return (entry.parameters?.docsOnly || entry.name === "Page" && countByTitle[entry.title] === 1) && (type5 = "docs"), acc[entry.id] = { 57633 type: type5, 57634 ...type5 === "docs" && { tags: ["stories-mdx"], storiesImports: [] }, 57635 ...entry 57636 }, delete acc[entry.id].story, delete acc[entry.id].kind, acc; 57637 }, 57638 {} 57639 ) 57640 }; 57641}, transformStoryIndexV4toV5 = (index4) => ({ 57642 v: 5, 57643 entries: Object.values(index4.entries).reduce( 57644 (acc, entry) => (acc[entry.id] = { 57645 ...entry, 57646 tags: entry.tags ? [Tag.DEV, Tag.TEST, ...entry.tags] : [Tag.DEV] 57647 }, acc), 57648 {} 57649 ) 57650}), transformStoryIndexToStoriesHash = (input2, { provider, docsOptions, filters, allStatuses }) => { 57651 if (!input2.v) 57652 throw new Error("Composition: Missing stories.json version"); 57653 let index4 = input2; 57654 index4 = index4.v === 2 ? transformStoryIndexV2toV3(index4) : index4, index4 = index4.v === 3 ? transformStoryIndexV3toV4(index4) : index4, index4 = index4.v === 4 ? transformStoryIndexV4toV5(index4) : index4, index4 = index4; 57655 let indexEntries = Object.values(index4.entries), filterFunctions = Object.values(filters), entryValues = indexEntries.filter((entry) => { 57656 let statuses = allStatuses[entry.id] ?? {}; 57657 return 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 }))); 57658 }), { sidebar = {} } = provider.getConfig(), { showRoots, collapsedRoots = [], renderLabel } = sidebar, setShowRoots = typeof showRoots < "u", storiesHashOutOfOrder = entryValues.reduce((acc, item) => { 57659 if (docsOptions.docsMode && item.type !== "docs") 57660 return acc; 57661 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) => { 57662 let parent = idx > 0 && list[idx - 1], id = sanitize(parent ? `${parent}-${name}` : name); 57663 if (name.trim() === "") 57664 throw new Error(dedent`Invalid title ${title} ending in slash.`); 57665 if (parent === id) 57666 throw new Error( 57667 dedent` 57668 Invalid part '${name}', leading to id === parentId ('${id}'), inside title '${title}' 57669 57670 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 57671 ` 57672 ); 57673 return list.push(id), list; 57674 }, []); 57675 return paths.forEach((id, idx) => { 57676 let childId = paths[idx + 1] || item.id; 57677 root2.length && idx === 0 ? acc[id] = merge_default(acc[id] || {}, { 57678 type: "root", 57679 id, 57680 name: names[idx], 57681 tags: [],
vendor: 3,391 bytes, lines 57682-57755
57682 depth: idx, 57683 renderLabel, 57684 startCollapsed: collapsedRoots.includes(id), 57685 // Note that this will later get appended to the previous list of children (see below) 57686 children: [childId] 57687 }) : (!acc[id] || acc[id].type === "component") && idx === paths.length - 1 ? acc[id] = merge_default(acc[id] || {}, { 57688 type: "component", 57689 id, 57690 name: names[idx], 57691 tags: [], 57692 parent: paths[idx - 1], 57693 depth: idx, 57694 renderLabel, 57695 ...childId && { 57696 children: [childId] 57697 } 57698 }) : acc[id] = merge_default(acc[id] || {}, { 57699 type: "group", 57700 id, 57701 name: names[idx], 57702 tags: [], 57703 parent: paths[idx - 1], 57704 depth: idx, 57705 renderLabel, 57706 ...childId && { 57707 children: [childId] 57708 } 57709 }); 57710 }), acc[item.id] = { 57711 tags: [], 57712 ...item, 57713 depth: paths.length, 57714 parent: "parent" in item ? item.parent : paths[paths.length - 1], 57715 renderLabel, 57716 prepared: !!item.parameters 57717 }, acc; 57718 }, {}); 57719 function addItem(acc, item) { 57720 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") { 57721 let firstChild = acc[item.children[0]]; 57722 firstChild && "importPath" in firstChild && (item.importPath = firstChild.importPath); 57723 } 57724 return acc; 57725 } 57726 let storiesHash = Object.values(storiesHashOutOfOrder).filter((i) => i.type !== "root" && !i.parent).reduce((acc, item) => addItem(acc, item), {}); 57727 return storiesHash = Object.values(storiesHashOutOfOrder).filter((i) => i.type === "root").reduce(addItem, storiesHash), storiesHash = Object.values(storiesHash).reduce((acc, item) => { 57728 if (item.type === "story" && item.subtype === "test") { 57729 let story = acc[item.parent], component = acc[story.parent]; 57730 acc[component.id] = { 57731 ...component, 57732 // Remove test from the component node as it will be attached to the story node instead 57733 children: component.children && component.children.filter((id) => id !== item.id) 57734 }, acc[story.id] = { 57735 ...story, 57736 // Add test to the story node 57737 children: (story.children || []).concat(item.id) 57738 }, acc[item.id] = { 57739 ...item, 57740 depth: item.depth + 1 57741 }; 57742 } else 57743 acc[item.id] = item; 57744 return acc; 57745 }, {}), storiesHash; 57746}, addPreparedStories = (newHash, oldHash) => oldHash ? Object.fromEntries( 57747 Object.entries(newHash).map(([id, newEntry]) => { 57748 let oldEntry = oldHash[id]; 57749 return newEntry.type === "story" && oldEntry?.type === "story" && oldEntry.prepared ? ("children" in oldEntry && delete oldEntry.children, [id, { ...oldEntry, ...newEntry, prepared: !0 }]) : [id, newEntry]; 57750 }) 57751) : newHash, getComponentLookupList = (0, import_memoizerific6.default)(1)((hash4) => Object.entries(hash4).reduce((acc, i) => { 57752 let value = i[1]; 57753 return value.type === "component" && acc.push([...value.children]), acc; 57754}, [])), getStoriesLookupList = (0, import_memoizerific6.default)(1)((hash4) => Object.keys(hash4).filter((k) => ["story", "docs"].includes(hash4[k].type))); 57755
vendor: 4,079 bytes, lines 57756-57848
57756// src/manager-api/modules/refs.ts 57757var { location: location3, fetch: fetch2 } = scope, getSourceType = (source, refId) => { 57758 let { origin: localOrigin, pathname: localPathname } = location3, { origin: sourceOrigin, pathname: sourcePathname } = new URL(source), localFull = `${localOrigin + localPathname}`.replace(/\/[^\/]*$/, ""), sourceFull = `${sourceOrigin + sourcePathname}`.replace(/\/[^\/]*$/, ""); 57759 return localFull === sourceFull ? ["local", sourceFull] : refId || source ? ["external", sourceFull] : [null, null]; 57760}, defaultStoryMapper = (b, a3) => ({ ...a3, kind: a3.kind.replace("|", "/") }), addRefIds = (input2, ref) => Object.entries(input2).reduce((acc, [id, item]) => ({ ...acc, [id]: { ...item, refId: ref.id } }), {}); 57761async function handleRequest(request) { 57762 if (!request) 57763 return {}; 57764 try { 57765 let response = await request; 57766 if (response === !1 || response === !0) 57767 throw new Error("Unexpected boolean response"); 57768 if (!response.ok) { 57769 if (response.status === 401) 57770 try { 57771 let json4 = await response.json(); 57772 if (json4.loginUrl) 57773 return { loginUrl: json4.loginUrl }; 57774 } catch { 57775 } 57776 throw new Error(`Unexpected response not OK: ${response.statusText}`); 57777 } 57778 let json3 = await response.json(); 57779 return json3.entries || json3.stories ? { storyIndex: json3 } : json3; 57780 } catch (err) { 57781 return { indexError: err }; 57782 } 57783} 57784var parseUrl = (url) => { 57785 let credentialsRegex = /https?:\/\/(.+:.+)@/, cleanUrl = url, authorization, [, credentials] = url.match(credentialsRegex) || []; 57786 return credentials && (cleanUrl = url.replace(`${credentials}@`, ""), authorization = btoa(`${credentials}`)), { 57787 url: cleanUrl, 57788 authorization 57789 }; 57790}, map = (input2, ref, options) => { 57791 let { storyMapper } = options; 57792 return storyMapper ? Object.entries(input2).reduce((acc, [id, item]) => ({ ...acc, [id]: storyMapper(ref, item) }), {}) : input2; 57793}, init4 = ({ store: store2, provider, singleStory, docsOptions = {} }, { runCheck = !0 } = {}) => { 57794 let api = { 57795 findRef: (source) => { 57796 let refs2 = api.getRefs(); 57797 return Object.values(refs2).find(({ url }) => url.match(source)); 57798 }, 57799 changeRefVersion: async (id, url) => { 57800 let { versions, title } = api.getRefs()[id], ref = { 57801 id, 57802 url, 57803 versions, 57804 title, 57805 index: {}, 57806 filteredIndex: {}, 57807 expanded: !0 57808 }; 57809 await api.setRef(id, { ...ref, type: "unknown" }, !1), await api.checkRef(ref); 57810 }, 57811 changeRefState: (id, previewInitialized) => { 57812 let { [id]: ref, ...updated } = api.getRefs(); 57813 updated[id] = { ...ref, previewInitialized }, store2.setState({ 57814 refs: updated 57815 }); 57816 }, 57817 checkRef: async (ref) => { 57818 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 = { 57819 Accept: "application/json" 57820 }; 57821 urlParseResult.authorization && Object.assign(headers, { 57822 Authorization: `Basic ${urlParseResult.authorization}` 57823 }); 57824 let [indexResult, storiesResult] = await Promise.all( 57825 ["index.json", "stories.json"].map( 57826 async (file) => handleRequest( 57827 fetch2(`${urlParseResult.url}/${file}${query}`, { 57828 headers, 57829 credentials 57830 }) 57831 ) 57832 ) 57833 ); 57834 if (!indexResult.indexError || !storiesResult.indexError) { 57835 let metadata = await handleRequest( 57836 fetch2(`${urlParseResult.url}/metadata.json${query}`, { 57837 headers, 57838 credentials, 57839 cache: "no-cache" 57840 }).catch(() => !1) 57841 ); 57842 Object.assign(loadedData, { 57843 ...indexResult.indexError ? storiesResult : indexResult, 57844 ...!metadata.indexError && metadata 57845 }); 57846 } else isPublic || (loadedData.indexError = { 57847 message: dedent` 57848 Error: Loading of ref failed
57849 at fetch (lib/api/src/modules/refs.ts) 57850 57851 URL: ${urlParseResult.url} 57852 57853 We weren't able to load the above URL, 57854 it's possible a CORS error happened. 57855 57856 Please check your dev-tools network tab. 57857 ` 57858 }); 57859 let versions = ref.versions && Object.keys(ref.versions).length ? ref.versions : loadedData.versions; 57860 await api.setRef(id, { 57861 id, 57862 url: urlParseResult.url, 57863 ...loadedData, 57864 ...versions ? { versions } : {}, 57865 type: loadedData.storyIndex ? "lazy" : "auto-inject" 57866 }); 57867 }, 57868 getRefs: () => { 57869 let { refs: refs2 = {} } = store2.getState(); 57870 return refs2; 57871 }, 57872 setRef: async (id, { storyIndex, setStoriesData, ...rest }, ready = !1) => { 57873 if (singleStory) 57874 return; 57875 let internal_index, index4, filteredIndex, { filters } = store2.getState(), { storyMapper = defaultStoryMapper } = provider.getConfig(), ref = api.getRefs()[id]; 57876 (storyIndex || setStoriesData) && (internal_index = setStoriesData ? transformSetStoriesStoryDataToPreparedStoryIndex( 57877 map(setStoriesData, ref, { storyMapper }) 57878 ) : storyIndex, filteredIndex = transformStoryIndexToStoriesHash(storyIndex, { 57879 provider, 57880 docsOptions, 57881 filters, 57882 allStatuses: {} 57883 }), index4 = transformStoryIndexToStoriesHash(storyIndex, { 57884 provider, 57885 docsOptions, 57886 filters: {}, 57887 allStatuses: {} 57888 })), index4 && (index4 = addRefIds(index4, ref)), filteredIndex && (filteredIndex = addRefIds(filteredIndex, ref
vendor: 4,020 bytes, lines 57888-58003
57888)), await api.updateRef(id, { ...ref, ...rest, index: index4, filteredIndex, internal_index }); 57889 }, 57890 updateRef: async (id, data) => { 57891 let { [id]: ref, ...updated } = api.getRefs(); 57892 updated[id] = { ...ref, ...data }; 57893 let ordered = Object.keys(initialState2).reduce((obj, key) => (obj[key] = updated[key], obj), {}); 57894 await store2.setState({ 57895 refs: ordered 57896 }); 57897 } 57898 }, refs = !singleStory && scope.REFS || {}, initialState2 = refs; 57899 return runCheck && new Promise(async (resolve) => { 57900 for (let ref of Object.values(refs)) 57901 await api.checkRef({ ...ref, stories: {} }); 57902 resolve(void 0); 57903 }), { 57904 api, 57905 state: { 57906 refs: initialState2 57907 } 57908 }; 57909}; 57910 57911// src/manager-api/lib/events.ts 57912var getEventMetadata = (context, fullAPI) => { 57913 let { source, refId, type: type5 } = context, [sourceType, sourceLocation] = getSourceType(source, refId), ref; 57914 (refId || sourceType === "external") && (ref = refId && fullAPI.getRefs()[refId] ? fullAPI.getRefs()[refId] : fullAPI.findRef(sourceLocation)); 57915 let meta = { 57916 source, 57917 sourceType, 57918 sourceLocation, 57919 refId, 57920 ref, 57921 type: type5 57922 }; 57923 switch (!0) { 57924 case typeof refId == "string": 57925 case sourceType === "local": 57926 case sourceType === "external": 57927 return meta; 57928 // if we couldn't find the source, something risky happened, we ignore the input, and log a warning 57929 default: 57930 return logger.warn(`Received a ${type5} frame that was not configured as a ref`), null; 57931 } 57932}; 57933 57934// src/manager-api/modules/globals.ts 57935var init5 = ({ store: store2, fullAPI, provider }) => { 57936 let api = { 57937 getGlobals() { 57938 return store2.getState().globals; 57939 }, 57940 getUserGlobals() { 57941 return store2.getState().userGlobals; 57942 }, 57943 getStoryGlobals() { 57944 return store2.getState().storyGlobals; 57945 }, 57946 getGlobalTypes() { 57947 return store2.getState().globalTypes; 57948 }, 57949 updateGlobals(newGlobals) { 57950 provider.channel?.emit(UPDATE_GLOBALS, { 57951 globals: newGlobals, 57952 options: { 57953 target: "storybook-preview-iframe" 57954 } 57955 }); 57956 } 57957 }, state3 = { 57958 globals: {}, 57959 userGlobals: {}, 57960 storyGlobals: {}, 57961 globalTypes: {} 57962 }, updateGlobals = ({ 57963 globals, 57964 storyGlobals, 57965 userGlobals 57966 }) => { 57967 let { 57968 globals: currentGlobals, 57969 userGlobals: currentUserGlobals, 57970 storyGlobals: currentStoryGlobals 57971 } = store2.getState(); 57972 dequal(globals, currentGlobals) || store2.setState({ globals }), dequal(userGlobals, currentUserGlobals) || store2.setState({ userGlobals }), dequal(storyGlobals, currentStoryGlobals) || store2.setState({ storyGlobals }); 57973 }; 57974 return provider.channel?.on( 57975 GLOBALS_UPDATED, 57976 function({ globals, storyGlobals, userGlobals }) { 57977 let { ref } = getEventMetadata(this, fullAPI); 57978 ref ? logger.warn( 57979 "received a GLOBALS_UPDATED from a non-local ref. This is not currently supported." 57980 ) : updateGlobals({ globals, storyGlobals, userGlobals }); 57981 } 57982 ), provider.channel?.on( 57983 SET_GLOBALS, 57984 function({ globals, globalTypes }) { 57985 let { ref } = getEventMetadata(this, fullAPI), currentUserGlobals = store2.getState()?.userGlobals; 57986 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); 57987 } 57988 ), { 57989 api, 57990 state: state3 57991 }; 57992}; 57993 57994// src/manager-api/modules/layout.ts 57995var layout_exports = {}; 57996__export(layout_exports, { 57997 ActiveTabs: () => ActiveTabs, 57998 DEFAULT_BOTTOM_PANEL_HEIGHT: () => DEFAULT_BOTTOM_PANEL_HEIGHT, 57999 DEFAULT_NAV_SIZE: () => DEFAULT_NAV_SIZE, 58000 DEFAULT_RIGHT_PANEL_WIDTH: () => DEFAULT_RIGHT_PANEL_WIDTH, 58001 focusableUIElements: () => focusableUIElements, 58002 getDefaultLayoutState: () => getDefaultLayoutState, 58003 init: () => init6
vendor: 4,308 bytes, lines 58003-58106
58003 58004}); 58005init_dist(); 58006init_create(); 58007var { document: document8 } = scope, isFunction4 = (val) => typeof val == "function", ActiveTabs = { 58008 SIDEBAR: "sidebar", 58009 CANVAS: "canvas", 58010 ADDONS: "addons" 58011}, DEFAULT_NAV_SIZE = 300, DEFAULT_BOTTOM_PANEL_HEIGHT = 300, DEFAULT_RIGHT_PANEL_WIDTH = 400, getDefaultLayoutState = () => ({ 58012 ui: { 58013 enableShortcuts: !0 58014 }, 58015 layout: { 58016 initialActive: ActiveTabs.CANVAS, 58017 showToolbar: !0, 58018 navSize: DEFAULT_NAV_SIZE, 58019 bottomPanelHeight: DEFAULT_BOTTOM_PANEL_HEIGHT, 58020 rightPanelWidth: DEFAULT_RIGHT_PANEL_WIDTH, 58021 recentVisibleSizes: { 58022 navSize: DEFAULT_NAV_SIZE, 58023 bottomPanelHeight: DEFAULT_BOTTOM_PANEL_HEIGHT, 58024 rightPanelWidth: DEFAULT_RIGHT_PANEL_WIDTH 58025 }, 58026 panelPosition: "bottom", 58027 showTabs: !0 58028 }, 58029 layoutCustomisations: { 58030 showSidebar: void 0, 58031 showToolbar: void 0 58032 }, 58033 selectedPanel: void 0, 58034 theme: create() 58035}), focusableUIElements = { 58036 addonPanel: "storybook-panel-region", 58037 storySearchField: "storybook-explorer-searchfield", 58038 storyListMenu: "storybook-explorer-menu", 58039 storyPanelRoot: "storybook-panel-root", 58040 showAddonPanel: "storybook-show-addon-panel", 58041 sidebarRegion: "storybook-sidebar-region", 58042 showSidebar: "storybook-show-sidebar" 58043}, getIsNavShown = (state3) => state3.layout.navSize > 0, getIsPanelShown = (state3) => { 58044 let { bottomPanelHeight, rightPanelWidth, panelPosition } = state3.layout; 58045 return panelPosition === "bottom" && bottomPanelHeight > 0 || panelPosition === "right" && rightPanelWidth > 0; 58046}, getIsFullscreen = (state3) => !getIsNavShown(state3) && !getIsPanelShown(state3), getRecentVisibleSizes = (layoutState) => ({ 58047 navSize: layoutState.navSize > 0 ? layoutState.navSize : layoutState.recentVisibleSizes.navSize, 58048 bottomPanelHeight: layoutState.bottomPanelHeight > 0 ? layoutState.bottomPanelHeight : layoutState.recentVisibleSizes.bottomPanelHeight, 58049 rightPanelWidth: layoutState.rightPanelWidth > 0 ? layoutState.rightPanelWidth : layoutState.recentVisibleSizes.rightPanelWidth 58050}), init6 = ({ store: store2, provider, singleStory }) => { 58051 let api = { 58052 toggleFullscreen(nextState) { 58053 return store2.setState( 58054 (state3) => { 58055 let isFullscreen = getIsFullscreen(state3), shouldFullscreen = typeof nextState == "boolean" ? nextState : !isFullscreen; 58056 return shouldFullscreen === isFullscreen ? { layout: state3.layout } : shouldFullscreen ? { 58057 layout: { 58058 ...state3.layout, 58059 navSize: 0, 58060 bottomPanelHeight: 0, 58061 rightPanelWidth: 0, 58062 recentVisibleSizes: getRecentVisibleSizes(state3.layout) 58063 } 58064 } : { 58065 layout: { 58066 ...state3.layout, 58067 navSize: state3.singleStory ? 0 : state3.layout.recentVisibleSizes.navSize, 58068 bottomPanelHeight: state3.layout.recentVisibleSizes.bottomPanelHeight, 58069 rightPanelWidth: state3.layout.recentVisibleSizes.rightPanelWidth 58070 } 58071 }; 58072 }, 58073 { persistence: "session" } 58074 ); 58075 }, 58076 togglePanel(nextState) { 58077 return store2.setState( 58078 (state3) => { 58079 let isPanelShown = getIsPanelShown(state3), shouldShowPanel = typeof nextState == "boolean" ? nextState : !isPanelShown; 58080 return shouldShowPanel === isPanelShown ? { layout: state3.layout } : shouldShowPanel ? { 58081 layout: { 58082 ...state3.layout, 58083 bottomPanelHeight: state3.layout.recentVisibleSizes.bottomPanelHeight, 58084 rightPanelWidth: state3.layout.recentVisibleSizes.rightPanelWidth 58085 } 58086 } : { 58087 layout: { 58088 ...state3.layout, 58089 bottomPanelHeight: 0, 58090 rightPanelWidth: 0, 58091 recentVisibleSizes: getRecentVisibleSizes(state3.layout) 58092 } 58093 }; 58094 }, 58095 { persistence: "session" } 58096 ); 58097 }, 58098 togglePanelPosition(position2) { 58099 return store2.setState( 58100 (state3) => { 58101 let nextPosition = position2 || (state3.layout.panelPosition === "right" ? "bottom" : "right"); 58102 return { 58103 layout: { 58104 ...state3.layout, 58105 panelPosition: nextPosition, 58106 bottomPanelHeight: state3.layout.recentVisibleSizes.bottomPanelHeight,
58107 rightPanelWidth: state3.layout.recentVisibleSizes.rightPanelWidth 58108 } 58109 }; 58110 }, 58111 { persistence: "permanent" } 58112 ); 58113 }, 58114 toggleNav(nextState) { 58115 return store2.setState( 58116 (state3) => { 58117 if (state3.singleStory) 58118 return { layout: state3.layout }; 58119 let isNavShown = getIsNavShown(state3), shouldShowNav = typeof nextState == "boolean" ? nextState : !isNavShown; 58120 return shouldShowNav === isNavShown ? { layout: state3.layout } : shouldShowNav ? { 58121 layout: { 58122 ...state3.layout, 58123 navSize: state3.layout.recentVisibleSizes.navSize 58124 } 58125 } : { 58126 layout: { 58127 ...state3.layout, 58128 navSize: 0, 58129 recentVisibleSizes: getRecentVisibleSizes(state3.layout) 58130 } 58131 }; 58132 }, 58133 { persistence: "session" } 58134 ); 58135 }, 58136 toggleToolbar(toggled) { 58137 return store2.setState( 58138 (state3) => { 58139 let value = typeof toggled < "u" ? toggled : !state3.layout.showToolbar; 58140 return { 58141 layout: { 58142 ...state3.layout, 58143 showToolbar: value 58144 } 58145 }; 58146 }, 58147 { persistence: "session" } 58148 ); 58149 }, 58150 setSizes({ 58151 navSize, 58152 bottomPanelHeight, 58153 rightPanelWidth 58154 }) { 58155 return store2.setState( 58156 (state3) => { 58157 let nextLayoutState = { 58158 ...state3.layout, 58159 navSize: navSize ?? state3.layout.navSize, 58160 bottomPanelHeight: bottomPanelHeight ?? state3.layout.bottomPanelHeight, 58161 rightPanelWidth: rightPanelWidth ?? state3.layout.rightPanelWidth 58162 }; 58163 return { 58164 layout: { 58165 ...nextLayoutState, 58166 recentVisibleSizes: getRecentVisibleSizes(nextLayoutState) 58167 } 58168 }; 58169 }, 58170 { persistence: "session" } 58171 ); 58172 }, 58173 /** 58174 * Attempts to focus (and select) an element identified by its ID. It is the responsibility of 58175 * the callee to ensure that the element is present in the DOM and that no focus trap is 58176 * available. When polling is enabled, this API polls and attempts to perform the focus for a 58177 * set duration (max 500ms), so that race conditions can be avoided with the current API 58178 * design. 58179 * 58180 * @param elementId The id of the element to focus. 58181 * @param options When a boolean, treated as the `select` option for backwards compatibility. 58182 * When an object, may contain `select` and `poll` options. 58183 * @returns Whether the element was successfully focused. Returns a Promise when polling. 58184 */ 58185 focusOnUIElement(elementId, options) { 58186 let { 58187 forceFocus = !1, 58188 select = !1, 58189 poll = !0 58190 } = typeof options == "boolean" ? { select: options } : options ?? {}; 58191 if (!elementId) 58192 return !1; 58193 let attemptFocus = () => { 58194 let element = document8.getElementById(elementId); 58195 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); 58196 }; 58197 return attemptFocus() ? !0 : poll ? new Promise((resolve) => { 58198 let startTime = Date.now(), maxDuration = 500, intervalId = setInterval(() => { 58199 let elapsed = Date.now() - startTime; 58200 if (attemptFocus()) { 58201 clearInterval(intervalId), resolve(!0); 58202 return; 58203 } 58204 elapsed >= maxDuration && (clearInterval(intervalId), resolve(!1)); 58205 }, 50); 58206 }) : !1; 58207 }, 58208 getInitialOptions() { 58209 let { theme: theme3, selectedPanel, layoutCustomisations, ...options } = provider.getConfig(), defaultLayoutState = getDefaultLayoutState(); 58210 return { 58211 ...defaultLayoutState, 58212 layout: { 58213 ...toMerged( 58214 defaultLayoutState.layout, 58215 pick(options, Object.keys(defaultLayoutState.layout)) 58216 ), 58217 ...singleStory && { navSize: 0 } 58218 }, 58219 layoutCustomisations: { 58220 ...defaultLayoutState.layoutCustomisations, 58221 ...layoutCustomisations ?? {} 58222 }, 58223 ui: toMerged(defaultLayoutState.ui, pick(options, Object.keys(defaultLayoutState.ui))), 58224 selectedPanel: selectedPanel || defaultLayoutState.selectedPanel, 58225 theme: theme3 || defaultLayoutState.theme 58226 }; 58227 }, 58228 getIsFullscreen() { 58229 return getIsFullscreen(store2.getState()); 58230 }, 58231 getIsPanelShown() { 58232 return getIsPanelShown(store2.getState()); 58233 }, 58234 getIsNavShown() { 58235 return getIsNavShown(store2.getState()); 58236 }, 58237 getShowToolbarWithCustomisations(showToolbar) { 58238 let state3 = store2.getState(); 58239 return isFunction4(state3.layoutCustomisations.showToolbar) ? state3.layoutCustomisations.showToolbar(state3, showToolbar) ?? showToolbar : showToolbar; 58240 }, 58241 getShowPanelWithCustomisations(showPanel) { 58242 let state3 = store2.getState(); 58243 return isFunction4(state3.layoutCustomisations.showPanel) ? state3.layoutCustomisations.showPanel(state3, showPanel) ?? showPanel : showPanel; 58244 }, 58245 getNavSizeWithCustomisations(navSize) { 58246 let state3 = store2.getState(); 58247 if (isFunction4(state3.layoutCustomisations.showSidebar)) { 58248 let shouldShowNav = state3.layoutCustomisations.showSidebar(state3, navSize !== 0); 58249 if (navSize === 0 && shouldShowNav === !0) 58250 return state3.layout.recentVisibleSizes.navSize; 58251 if (navSize !== 0 && shouldShowNav === !1) 58252 return 0; 58253 } 58254 return navSize; 58255 }, 58256 setOptions: (options) => { 58257 let { layout, ui, selectedPanel, theme: theme3 } = store2.getState(); 58258 if (!options) 58259 return; 58260 let updatedLayout = { 58261 ...layout, 58262 ...options.layout || {}, 58263 ...pick(options, Object.keys(layout)), 58264 ...singleStory && { navSize: 0 } 58265 }
vendor: 944 bytes, lines 58265-58283
58265, updatedUi = { 58266 ...ui, 58267 ...options.ui, 58268 ...toMerged(options.ui || {}, pick(options, Object.keys(ui))) 58269 }, updatedTheme = { 58270 ...theme3, 58271 ...options.theme 58272 }, modification = {}; 58273 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 }); 58274 } 58275 }, persisted = pick(store2.getState(), ["layout", "selectedPanel"]); 58276 return provider.channel?.on(SET_CONFIG, () => { 58277 api.setOptions(merge_default(api.getInitialOptions(), persisted)); 58278 }), { 58279 api, 58280 state: merge_default(api.getInitialOptions(), persisted) 58281 }; 58282}; 58283
vendor: 1,004 bytes, lines 58284-58310
58284// src/manager-api/modules/notifications.ts 58285var notifications_exports = {}; 58286__export(notifications_exports, { 58287 init: () => init7 58288}); 58289var init7 = ({ store: store2 }) => ({ 58290 api: { 58291 addNotification: (newNotification) => { 58292 store2.setState(({ notifications }) => { 58293 let [existing, others] = partition(notifications, (n) => n.id === newNotification.id); 58294 return existing.forEach((notification) => { 58295 notification.onClear && notification.onClear({ dismissed: !1, timeout: !1 }); 58296 }), { notifications: [...others, newNotification] }; 58297 }); 58298 }, 58299 clearNotification: (notificationId) => { 58300 store2.setState(({ notifications }) => { 58301 let [matching, others] = partition(notifications, (n) => n.id === notificationId); 58302 return matching.forEach((notification) => { 58303 notification.onClear && notification.onClear({ dismissed: !1, timeout: !1 }); 58304 }), { notifications: others }; 58305 }); 58306 } 58307 }, 58308 state: { notifications: [] } 58309}); 58310
vendor: 1,334 bytes, lines 58311-58344
58311// src/manager-api/modules/open-in-editor.tsx 58312var open_in_editor_exports = {}; 58313__export(open_in_editor_exports, { 58314 init: () => init8 58315}); 58316var import_react19 = __toESM(require_react(), 1); 58317var init8 = ({ provider, fullAPI }) => ({ 58318 api: { 58319 openInEditor(payload) { 58320 return new Promise((resolve) => { 58321 let { file, line: line2, column: column2 } = payload, handler = (res) => { 58322 res.file === file && res.line === line2 && res.column === column2 && (provider.channel?.off(OPEN_IN_EDITOR_RESPONSE, handler), resolve(res)); 58323 }; 58324 provider.channel?.on(OPEN_IN_EDITOR_RESPONSE, handler), provider.channel?.emit(OPEN_IN_EDITOR_REQUEST, payload); 58325 }); 58326 } 58327 }, 58328 state: { notifications: [] }, 58329 init: async () => { 58330 let { color: color2 } = await Promise.resolve().then(() => (init_theming(), theming_exports)); 58331 provider.channel?.on(OPEN_IN_EDITOR_RESPONSE, (payload) => { 58332 payload.error !== null && fullAPI.addNotification({ 58333 id: "open-in-editor-error", 58334 content: { 58335 headline: "Failed to open in editor", 58336 subHeadline: payload.error || "Check the Storybook process on the command line for more details." 58337 }, 58338 icon: import_react19.default.createElement(FailedIcon, { color: color2.negative }), 58339 duration: 8e3 58340 }); 58341 }); 58342 } 58343}); 58344
58345// src/manager-api/modules/provider.ts 58346var provider_exports = {}; 58347__export(provider_exports, { 58348 init: () => init9 58349}); 58350var init9 = ({ provider, fullAPI }) => ({ 58351 api: provider.renderPreview ? { renderPreview: provider.renderPreview } : {}, 58352 state: {}, 58353 init: () => { 58354 provider.handleAPI(fullAPI); 58355
vendor: 1,871 bytes, lines 58355-58409
58355} 58356}); 58357 58358// src/manager-api/modules/settings.ts 58359var settings_exports = {}; 58360__export(settings_exports, { 58361 init: () => init10 58362}); 58363var init10 = ({ store: store2, navigate, fullAPI }) => ({ 58364 state: { settings: { lastTrackedStoryId: null } }, 58365 api: { 58366 closeSettings: () => { 58367 let { 58368 settings: { lastTrackedStoryId } 58369 } = store2.getState(); 58370 lastTrackedStoryId ? fullAPI.selectStory(lastTrackedStoryId) : fullAPI.selectFirstStory(); 58371 }, 58372 changeSettingsTab: (path) => { 58373 navigate(`/settings/${path}`); 58374 }, 58375 isSettingsScreenActive: () => { 58376 let { path } = fullAPI.getUrlState(); 58377 return !!(path || "").match(/^\/settings/); 58378 }, 58379 retrieveSelection() { 58380 let { settings } = store2.getState(); 58381 return settings.lastTrackedStoryId; 58382 }, 58383 storeSelection: async () => { 58384 let { storyId, settings } = store2.getState(); 58385 await store2.setState({ 58386 settings: { ...settings, lastTrackedStoryId: storyId } 58387 }); 58388 } 58389 } 58390}); 58391 58392// src/manager-api/modules/shortcuts.ts 58393var shortcuts_exports = {}; 58394__export(shortcuts_exports, { 58395 controlOrMetaKey: () => controlOrMetaKey2, 58396 defaultShortcuts: () => defaultShortcuts, 58397 init: () => init11, 58398 isMacLike: () => isMacLike2, 58399 keys: () => keys2 58400}); 58401init_dist(); 58402var import_copy_to_clipboard = __toESM(require_copy_to_clipboard(), 1); 58403 58404// src/manager-api/lib/platform.ts 58405init_dist(); 58406var { navigator: navigator2 } = scope, isMacLike = () => navigator2 && navigator2.platform ? !!navigator2.platform.match(/(Mac|iPhone|iPod|iPad)/i) : !1; 58407 58408// src/manager-api/lib/shortcut.ts 58409var controlOrMetaSymbol = () => isMacLike() ? "\u2318" : "ctrl", controlOrMetaKey = () => isMacLike() ? "meta" : "control", optionOrAltSymbol = () => isMacLike() ? "\u2325" : "alt", isShortcutTaken = (arr1, arr2) => JSON.stringify(arr1) === JSON.stringify(arr2), eventToShortcut = (e
vendor: 9,467 bytes, lines 58409-58613
58409) => { 58410 if (["Meta", "Alt", "Control", "Shift", "Tab"].includes(e.key)) 58411 return null; 58412 let keys3 = []; 58413 e.altKey && keys3.push("alt"), e.ctrlKey && keys3.push("control"), e.metaKey && keys3.push("meta"), e.shiftKey && keys3.push("shift"); 58414 let codeUpper = e.code?.toUpperCase(), codeToCharMap = { 58415 MINUS: "-", 58416 EQUAL: "=", 58417 BRACKETLEFT: "[", 58418 BRACKETRIGHT: "]", 58419 BACKSLASH: "\\", 58420 SEMICOLON: ";", 58421 QUOTE: "'", 58422 BACKQUOTE: "`", 58423 COMMA: ",", 58424 PERIOD: ".", 58425 SLASH: "/" 58426 }, codeChar = codeUpper ? codeUpper.startsWith("KEY") && codeUpper.length === 4 ? codeUpper.replace("KEY", "") : codeUpper.startsWith("DIGIT") ? codeUpper.replace("DIGIT", "") : codeToCharMap[codeUpper] : void 0; 58427 if (e.key && e.key.length === 1 && e.key !== " ") { 58428 let key = e.key.toUpperCase(), code = codeChar; 58429 code && code.length === 1 && code !== key ? keys3.push([key, code]) : keys3.push(key); 58430 } else e.key === "Dead" && codeChar && keys3.push(codeChar); 58431 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; 58432}, shortcutMatchesShortcut = (inputShortcut, shortcut) => !inputShortcut || !shortcut || (inputShortcut.join("").startsWith("shift/") && inputShortcut.shift(), inputShortcut.length !== shortcut.length) ? !1 : !inputShortcut.find( 58433 (input2, i) => Array.isArray(input2) ? !input2.includes(shortcut[i]) : input2 !== shortcut[i] 58434), 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("+"); 58435 58436// src/manager-api/modules/shortcuts.ts 58437var { navigator: navigator3, document: document9 } = scope; 58438function wasFocusInElement(element) { 58439 return document9.activeElement && element?.contains(document9.activeElement); 58440} 58441var isMacLike2 = () => navigator3 && navigator3.platform ? !!navigator3.platform.match(/(Mac|iPhone|iPod|iPad)/i) : !1, controlOrMetaKey2 = () => isMacLike2() ? "meta" : "control"; 58442function keys2(o) { 58443 return Object.keys(o); 58444} 58445var defaultShortcuts = Object.freeze({ 58446 fullScreen: ["alt", "F"], 58447 togglePanel: ["alt", "A"], 58448 panelPosition: ["alt", "D"], 58449 toggleNav: ["alt", "S"], 58450 toolbar: ["alt", "T"], 58451 search: [controlOrMetaKey2(), "K"], 58452 focusNav: ["1"], 58453 focusIframe: ["2"], 58454 focusPanel: ["3"], 58455 prevComponent: ["alt", "ArrowUp"], 58456 nextComponent: ["alt", "ArrowDown"], 58457 prevStory: ["alt", "ArrowLeft"], 58458 nextStory: ["alt", "ArrowRight"], 58459 shortcutsPage: [controlOrMetaKey2(), "shift", ","], 58460 aboutPage: [controlOrMetaKey2(), ","], 58461 escape: ["escape"], 58462 // This one is not customizable 58463 collapseAll: [controlOrMetaKey2(), "shift", "ArrowUp"], 58464 expandAll: [controlOrMetaKey2(), "shift", "ArrowDown"], 58465 remount: ["alt", "R"], 58466 openInEditor: ["alt", "shift", "E"], 58467 openInIsolation: ["alt", "shift", "I"], 58468 copyStoryLink: ["alt", "shift", "L"], 58469 goToPreviousLandmark: ["shift", "F6"], 58470 // hardcoded in react-aria 58471 goToNextLandmark: ["F6"] 58472 // hardcoded in react-aria 58473 // TODO: bring this back once we want to add shortcuts for this 58474 // copyStoryName: ['alt', 'shift', 'C'], 58475}), addonsShortcuts = {}; 58476function shouldSkipShortcut(event) { 58477 let target = event.target; 58478 return !!(/input|textarea/i.test(target.tagName) || target.getAttribute("contenteditable") !== null || target.closest("dialog[open]")); 58479} 58480var init11 = ({ store: store2, fullAPI, provider }) => { 58481 let api = { 58482 // Getting and setting shortcuts 58483 getShortcutKeys() { 58484 return store2.getState().shortcuts; 58485 }, 58486 getDefaultShortcuts() { 58487 return { 58488 ...defaultShortcuts, 58489 ...api.getAddonsShortcutDefaults() 58490 }; 58491 }, 58492 getAddonsShortcuts() { 58493 return addonsShortcuts; 58494 }, 58495 getAddonsShortcutLabels() { 58496 let labels = {}; 58497 return Object.entries(api.getAddonsShortcuts()).forEach(([actionName, { label }]) => { 58498 labels[actionName] = label; 58499 }), labels; 58500 }, 58501 getAddonsShortcutDefaults() { 58502 let defaults = {}; 58503 return Object.entries(api.getAddonsShortcuts()).forEach(([actionName, { defaultShortcut }]) => { 58504 defaults[actionName] = defaultShortcut; 58505 }), defaults; 58506 }, 58507 async setShortcuts(update2) { 58508 let { shortcuts } = await store2.setState( 58509 (state4) => ({ shortcuts: typeof update2 == "function" ? update2(state4.shortcuts) : update2 }), 58510 { persistence: "permanent" } 58511 ); 58512 return shortcuts; 58513 }, 58514 async restoreAllDefaultShortcuts() { 58515 return api.setShortcuts(api.getDefaultShortcuts()); 58516 }, 58517 async setShortcut(action2, value) { 58518 return await api.setShortcuts((shortcuts) => ({ ...shortcuts, [action2]: value })), value; 58519 }, 58520 async setAddonShortcut(addon, shortcut) { 58521 return await api.setShortcuts((shortcuts) => ({ 58522 ...shortcuts, 58523 [`${addon}-${shortcut.actionName}`]: shortcut.defaultShortcut 58524 })), addonsShortcuts[`${addon}-${shortcut.actionName}`] = shortcut, shortcut; 58525 }, 58526 async restoreDefaultShortcut(action2) { 58527 let defaultShortcut = api.getDefaultShortcuts()[action2]; 58528 return api.setShortcut(action2, defaultShortcut); 58529 }, 58530 // Listening to shortcut events 58531 handleKeydownEvent(event) { 58532 let shortcut = eventToShortcut(event), shortcuts = api.getShortcutKeys(), matchedFeature = keys2(shortcuts).find( 58533 (feature) => shortcutMatchesShortcut(shortcut, shortcuts[feature]) 58534 ); 58535 matchedFeature && api.handleShortcutFeature(matchedFeature, event); 58536 }, 58537 // warning: event might not have a full prototype chain because it may originate from the channel 58538 handleShortcutFeature(feature, event) { 58539 let { 58540 ui: { enableShortcuts }, 58541 storyId, 58542 refId, 58543 viewMode 58544 } = store2.getState(); 58545 if (enableShortcuts) 58546 switch (event?.preventDefault && event.preventDefault(), feature) { 58547 case "escape": { 58548 fullAPI.getIsFullscreen() ? fullAPI.toggleFullscreen(!1) : fullAPI.getIsNavShown() && fullAPI.toggleNav(!0); 58549 break; 58550 } 58551 // Handled by @react-aria/interactions and useLandmarkIndicator 58552 case "goToNextLandmark": 58553 case "goToPreviousLandmark": 58554 break; 58555 case "focusNav": { 58556 fullAPI.getIsFullscreen() && fullAPI.toggleFullscreen(!1), fullAPI.getIsNavShown() || fullAPI.toggleNav(!0), fullAPI.focusOnUIElement(focusableUIElements.storyListMenu); 58557 break; 58558 } 58559 case "search": { 58560 fullAPI.getIsFullscreen() && fullAPI.toggleFullscreen(!1), fullAPI.getIsNavShown() || fullAPI.toggleNav(!0), setTimeout(() => { 58561 fullAPI.focusOnUIElement(focusableUIElements.storySearchField, !0); 58562 }, 0); 58563 break; 58564 } 58565 case "focusIframe": { 58566 let element = document9.getElementById("storybook-preview-iframe"); 58567 if (element) 58568 try { 58569 element.contentWindow.focus(); 58570 } catch { 58571 } 58572 break; 58573 } 58574 case "focusPanel": { 58575 fullAPI.getIsFullscreen() && fullAPI.toggleFullscreen(!1), fullAPI.getIsPanelShown() || fullAPI.togglePanel(!0), fullAPI.focusOnUIElement(focusableUIElements.storyPanelRoot); 58576 break; 58577 } 58578 case "nextStory": { 58579 fullAPI.jumpToStory(1); 58580 break; 58581 } 58582 case "prevStory": { 58583 fullAPI.jumpToStory(-1); 58584 break; 58585 } 58586 case "nextComponent": { 58587 fullAPI.jumpToComponent(1); 58588 break; 58589 } 58590 case "prevComponent": { 58591 fullAPI.jumpToComponent(-1); 58592 break; 58593 } 58594 case "fullScreen": { 58595 fullAPI.toggleFullscreen(); 58596 break; 58597 } 58598 case "togglePanel": { 58599 let wasPanelShown = fullAPI.getIsPanelShown(), panelElement = document9.getElementById(focusableUIElements.addonPanel); 58600 fullAPI.togglePanel(), wasPanelShown && wasFocusInElement(panelElement) && fullAPI.focusOnUIElement(focusableUIElements.showAddonPanel, { 58601 poll: !0 58602 }).then((success) => { 58603 success === !1 && document9.body.focus(); 58604 }); 58605 break; 58606 } 58607 case "toggleNav": { 58608 let wasNavShown = fullAPI.getIsNavShown(), sidebarElement = document9.getElementById(focusableUIElements.sidebarRegion); 58609 fullAPI.toggleNav(), wasNavShown && wasFocusInElement(sidebarElement) && fullAPI.focusOnUIElement(focusableUIElements.showSidebar, { 58610 poll: !0 58611 }).then((success) => { 58612 success === !1 && document9.body.focus(); 58613 }
vendor: 2,790 bytes, lines 58613-58696
58613); 58614 break; 58615 } 58616 case "toolbar": { 58617 fullAPI.toggleToolbar(); 58618 break; 58619 } 58620 case "panelPosition": { 58621 fullAPI.getIsFullscreen() && fullAPI.toggleFullscreen(!1), fullAPI.getIsPanelShown() || fullAPI.togglePanel(!0), fullAPI.togglePanelPosition(); 58622 break; 58623 } 58624 case "aboutPage": { 58625 fullAPI.navigate("/settings/about"); 58626 break; 58627 } 58628 case "shortcutsPage": { 58629 fullAPI.navigate("/settings/shortcuts"); 58630 break; 58631 } 58632 case "collapseAll": { 58633 fullAPI.emit(STORIES_COLLAPSE_ALL); 58634 break; 58635 } 58636 case "expandAll": { 58637 fullAPI.emit(STORIES_EXPAND_ALL); 58638 break; 58639 } 58640 case "remount": { 58641 fullAPI.emit(FORCE_REMOUNT, { storyId }); 58642 break; 58643 } 58644 case "openInEditor": { 58645 scope.CONFIG_TYPE === "DEVELOPMENT" && fullAPI.openInEditor({ 58646 file: fullAPI.getCurrentStoryData().importPath 58647 }); 58648 break; 58649 } 58650 case "openInIsolation": { 58651 if (storyId && viewMode === "story") { 58652 let { previewHref } = fullAPI.getStoryHrefs(storyId, { refId }); 58653 window.open(previewHref, "_blank", "noopener,noreferrer"); 58654 } 58655 break; 58656 } 58657 // TODO: bring this back once we want to add shortcuts for this 58658 // case 'copyStoryName': { 58659 // const storyData = fullAPI.getCurrentStoryData(); 58660 // if (storyData.type === 'story') { 58661 // copy(storyData.exportName); 58662 // } 58663 // break; 58664 // } 58665 case "copyStoryLink": { 58666 if (storyId) { 58667 let { managerHref } = fullAPI.getStoryHrefs(storyId, { refId }); 58668 (0, import_copy_to_clipboard.default)(managerHref); 58669 } 58670 break; 58671 } 58672 default: 58673 addonsShortcuts[feature].action(); 58674 break; 58675 } 58676 } 58677 }, { shortcuts: persistedShortcuts = defaultShortcuts } = store2.getState(), state3 = { 58678 // Any saved shortcuts that are still in our set of defaults 58679 shortcuts: keys2(defaultShortcuts).reduce( 58680 (acc, key) => ({ ...acc, [key]: persistedShortcuts[key] || defaultShortcuts[key] }), 58681 defaultShortcuts 58682 ) 58683 }; 58684 return { api, state: state3, init: () => { 58685 document9.addEventListener("keydown", (event) => { 58686 shouldSkipShortcut(event) || api.handleKeydownEvent(event); 58687 }), provider.channel?.on(PREVIEW_KEYDOWN, (data) => { 58688 api.handleKeydownEvent(data.event); 58689 }); 58690 } }; 58691}; 58692 58693// src/manager-api/modules/stories.ts 58694var stories_exports = {}; 58695__export(stories_exports, { 58696
58696getDefaultTagsFromPreset: () => getDefaultTagsFromPreset, 58697 init: () => init12 58698}); 58699init_client_logger(); 58700init_dist(); 58701var import_memoizerific7 = __toESM(require_memoizerific(), 1); 58702
vendor: 1,895 bytes, lines 58703-58746
58703// src/manager-errors.ts 58704var manager_errors_exports = {}; 58705__export(manager_errors_exports, { 58706 Category: () => Category, 58707 ProviderDoesNotExtendBaseProviderError: () => ProviderDoesNotExtendBaseProviderError, 58708 StatusTypeIdMismatchError: () => StatusTypeIdMismatchError2, 58709 UncaughtManagerError: () => UncaughtManagerError 58710}); 58711var 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 { 58712 constructor() { 58713 super({ 58714 name: "ProviderDoesNotExtendBaseProviderError", 58715 category: "MANAGER_UI" /* MANAGER_UI */, 58716 code: 1, 58717 message: "The Provider passed into Storybook's UI is not extended from the base Provider. Please check your Provider implementation." 58718 }); 58719 } 58720}, UncaughtManagerError = class extends StorybookError { 58721 constructor(data) { 58722 super({ 58723 name: "UncaughtManagerError", 58724 category: "MANAGER_UNCAUGHT" /* MANAGER_UNCAUGHT */, 58725 code: 1, 58726 message: data.error.message 58727 }); 58728 this.data = data; 58729 this.stack = data.error.stack; 58730 } 58731}, StatusTypeIdMismatchError2 = class extends StorybookError { 58732 constructor(data) { 58733 super({ 58734 name: "StatusTypeIdMismatchError", 58735 category: "MANAGER_API" /* MANAGER_API */, 58736 code: 1, 58737 message: `Status has typeId "${data.status.typeId}" but was added to store with typeId "${data.typeId}". Full status: ${JSON.stringify( 58738 data.status, 58739 null, 58740 2 58741 )}` 58742 }); 58743 this.data = data; 58744 } 58745}; 58746
58747// src/server-errors.ts 58748var import_picocolors3 = __toESM(require_picocolors_browser(), 1); 58749init_esm(); 58750var StatusTypeIdMismatchError3 = class extends StorybookError { 58751 constructor(data) { 58752 super({ 58753 name: "StatusTypeIdMismatchError", 58754 category: "CORE-SERVER" /* CORE_SERVER */, 58755 code: 16, 58756 message: `Status has typeId "${data.status.typeId}" but was added to store with typeId "${data.typeId}". Full status: ${JSON.stringify( 58757 data.status, 58758 null, 58759 2 58760 )}` 58761 }); 58762 this.data = data; 58763 } 58764}; 58765
vendor: 3,665 bytes, lines 58766-58876
58766// src/shared/status-store/index.ts 58767var UNIVERSAL_STATUS_STORE_OPTIONS = { 58768 id: "storybook/status", 58769 leader: !0, 58770 initialState: {} 58771}, StatusStoreEventType = { 58772 SELECT: "select" 58773}; 58774function createStatusStore({ 58775 universalStatusStore: universalStatusStore2, 58776 useUniversalStore: useUniversalStore2, 58777 environment 58778}) { 58779 let fullStatusStore2 = { 58780 getAll() { 58781 return universalStatusStore2.getState(); 58782 }, 58783 set(statuses) { 58784 universalStatusStore2.setState((state3) => { 58785 let newState = { ...state3 }; 58786 for (let status of statuses) { 58787 let { storyId, typeId } = status; 58788 newState[storyId] = { ...newState[storyId] ?? {}, [typeId]: status }; 58789 } 58790 return newState; 58791 }); 58792 }, 58793 onAllStatusChange(listener) { 58794 return universalStatusStore2.onStateChange((state3, prevState) => { 58795 listener(state3, prevState); 58796 }); 58797 }, 58798 onSelect(listener) { 58799 return universalStatusStore2.subscribe(StatusStoreEventType.SELECT, (event) => { 58800 listener(event.payload); 58801 }); 58802 }, 58803 selectStatuses: (statuses) => { 58804 universalStatusStore2.send({ type: StatusStoreEventType.SELECT, payload: statuses }); 58805 }, 58806 unset(storyIds) { 58807 if (!storyIds) { 58808 universalStatusStore2.setState({}); 58809 return; 58810 } 58811 universalStatusStore2.setState((state3) => { 58812 let newState = { ...state3 }; 58813 for (let storyId of storyIds) 58814 delete newState[storyId]; 58815 return newState; 58816 }); 58817 }, 58818 typeId: void 0 58819 }, getStatusStoreByTypeId2 = (typeId) => ({ 58820 getAll: fullStatusStore2.getAll, 58821 set(statuses) { 58822 universalStatusStore2.setState((state3) => { 58823 let newState = { ...state3 }; 58824 for (let status of statuses) { 58825 let { storyId } = status; 58826 if (status.typeId !== typeId) 58827 switch (environment) { 58828 case "server": 58829 throw new StatusTypeIdMismatchError3({ 58830 status, 58831 typeId 58832 }); 58833 case "manager": 58834 throw new StatusTypeIdMismatchError2({ 58835 status, 58836 typeId 58837 }); 58838 case "preview": 58839 default: 58840 throw new StatusTypeIdMismatchError({ 58841 status, 58842 typeId 58843 }); 58844 } 58845 newState[storyId] = { ...newState[storyId] ?? {}, [typeId]: status }; 58846 } 58847 return newState; 58848 }); 58849 }, 58850 onAllStatusChange: fullStatusStore2.onAllStatusChange, 58851 onSelect(listener) { 58852 return universalStatusStore2.subscribe(StatusStoreEventType.SELECT, (event) => { 58853 event.payload.some((status) => status.typeId === typeId) && listener(event.payload); 58854 }); 58855 }, 58856 unset(storyIds) { 58857 universalStatusStore2.setState((state3) => { 58858 let newState = { ...state3 }; 58859 for (let storyId in newState) 58860 if (newState[storyId]?.[typeId] && (!storyIds || storyIds?.includes(storyId))) { 58861 let { [typeId]: omittedStatus, ...storyStatusesWithoutTypeId } = newState[storyId]; 58862 newState[storyId] = storyStatusesWithoutTypeId; 58863 } 58864 return newState; 58865 }); 58866 }, 58867 typeId 58868 }); 58869 return useUniversalStore2 ? { 58870 getStatusStoreByTypeId: getStatusStoreByTypeId2, 58871 fullStatusStore: fullStatusStore2, 58872 universalStatusStore: universalStatusStore2, 58873 useStatusStore: (selector) => useUniversalStore2(universalStatusStore2, selector)[0] 58874 } : { getStatusStoreByTypeId: getStatusStoreByTypeId2, fullStatusStore: fullStatusStore2, universalStatusStore: universalStatusStore2 }; 58875} 58876
vendor: 1,057 bytes, lines 58877-58896
58877// src/shared/universal-store/use-universal-store-manager.ts 58878var React30 = __toESM(require_react(), 1); 58879var useUniversalStore = (universalStore, selector) => { 58880 let snapshotRef = React30.useRef( 58881 selector ? selector(universalStore.getState()) : universalStore.getState() 58882 ), subscribe = React30.useCallback( 58883 (listener) => universalStore.onStateChange((state4, previousState) => { 58884 if (!selector) { 58885 snapshotRef.current = state4, listener(); 58886 return; 58887 } 58888 let selectedState = selector(state4), selectedPreviousState = selector(previousState); 58889 !isEqual(selectedState, selectedPreviousState) && (snapshotRef.current = selectedState, listener()); 58890 }), 58891 [universalStore, selector] 58892 ), getSnapshot = React30.useCallback(() => { 58893 let currentState = universalStore.getState(), selectedState = selector ? selector(currentState) : currentState; 58894 return isEqual(selectedState, snapshotRef.current) || (snapshotRef.current = selectedState), snapshotRef.current; 58895 }, [universalStore, selector]); 58896 return [React30
vendor: 463 bytes, lines 58896-58909
58896.useSyncExternalStore(subscribe, getSnapshot), universalStore.setState]; 58897}; 58898 58899// src/manager-api/stores/status.ts 58900var statusStore = createStatusStore({ 58901 universalStatusStore: UniversalStore.create({ 58902 ...UNIVERSAL_STATUS_STORE_OPTIONS, 58903 leader: globalThis.CONFIG_TYPE === "PRODUCTION" 58904 }), 58905 useUniversalStore, 58906 environment: "manager" 58907}), { fullStatusStore, getStatusStoreByTypeId, useStatusStore, universalStatusStore } = statusStore; 58908 58909// src/manager-api/
vendor: 7,301 bytes, lines 58909-59071
58909modules/stories.ts 58910var { fetch: fetch3 } = scope, STORY_INDEX_PATH = "./index.json", TAGS_FILTER = "tags-filter", STATIC_FILTER = "static-filter", getDefaultTagsFromPreset = (0, import_memoizerific7.default)(1)((presets) => { 58911 let presetEntries = Object.entries(presets); 58912 return { 58913 included: presetEntries.filter(([, option]) => option.defaultFilterSelection === "include").map(([tag]) => tag), 58914 excluded: presetEntries.filter(([, option]) => option.defaultFilterSelection === "exclude").map(([tag]) => tag) 58915 }; 58916}), computeStaticFilterFn = (tagPresets) => { 58917 let staticExcludeTags = Object.entries(tagPresets).reduce( 58918 (acc, entry) => { 58919 let [tag, option] = entry; 58920 return option.excludeFromSidebar && (acc[tag] = !0), acc; 58921 }, 58922 {} 58923 ); 58924 return (item) => { 58925 let tags2 = item.tags ?? []; 58926 return (tags2.includes(Tag.DEV) || item.type === "docs") && tags2.filter((tag) => staticExcludeTags[tag]).length === 0; 58927 }; 58928}, computeTagsFilterFn = (includedTagFilters, excludedTagFilters) => { 58929 let computeFilterFunctions = (set3) => Object.values( 58930 set3.reduce( 58931 (acc, tag) => (Object.hasOwn(BUILT_IN_FILTERS, tag) ? acc["built-in"].push(BUILT_IN_FILTERS[tag]) : acc.user.push(USER_TAG_FILTER(tag)), acc), 58932 { "built-in": [], user: [] } 58933 ) 58934 ).filter((group) => group.length > 0); 58935 return (item) => { 58936 let included = computeFilterFunctions(includedTagFilters), excluded = computeFilterFunctions(excludedTagFilters); 58937 return (!included.length || included.every((group) => group.some((filterFn) => filterFn(item, !1)))) && (!excluded.length || excluded.every((group) => group.every((filterFn) => filterFn(item, !0)))); 58938 }; 58939}, removedOptions = ["enableShortcuts", "theme", "showRoots"]; 58940function removeRemovedOptions(options) { 58941 if (!options || typeof options == "string") 58942 return options; 58943 let result = { ...options }; 58944 return removedOptions.forEach((option) => { 58945 option in result && delete result[option]; 58946 }), result; 58947} 58948var init12 = ({ 58949 fullAPI, 58950 store: store2, 58951 navigate, 58952 provider, 58953 storyId: initialStoryId, 58954 viewMode: initialViewMode, 58955 docsOptions = {} 58956}) => { 58957 let api = { 58958 storyId: toId, 58959 getData: (storyId, refId) => { 58960 let result = api.resolveStory(storyId, refId); 58961 if (result?.type === "story" || result?.type === "docs") 58962 return result; 58963 }, 58964 isPrepared: (storyId, refId) => { 58965 let data = api.getData(storyId, refId); 58966 return data ? data.type === "story" ? data.prepared : !0 : !1; 58967 }, 58968 resolveStory: (storyId, refId) => { 58969 let { refs, index: index4 } = store2.getState(); 58970 if (!(refId && !refs[refId])) 58971 return refId ? refs?.[refId]?.index?.[storyId] ?? void 0 : index4 ? index4[storyId] : void 0; 58972 }, 58973 getCurrentStoryData: () => { 58974 let { storyId, refId } = store2.getState(); 58975 return api.getData(storyId, refId); 58976 }, 58977 getIndex: () => { 58978 let { internal_index } = store2.getState(); 58979 return internal_index; 58980 }, 58981 getParameters: (storyIdOrCombo, parameterName) => { 58982 let { storyId, refId } = typeof storyIdOrCombo == "string" ? { storyId: storyIdOrCombo, refId: void 0 } : storyIdOrCombo, data = api.getData(storyId, refId); 58983 if (["story", "docs"].includes(data?.type)) { 58984 let { parameters: parameters2 } = data; 58985 if (parameters2) 58986 return parameterName ? parameters2[parameterName] : parameters2; 58987 } 58988 return null; 58989 }, 58990 getCurrentParameter: (parameterName) => { 58991 let { storyId, refId } = store2.getState(); 58992 return api.getParameters({ storyId, refId }, parameterName) || void 0; 58993 }, 58994 jumpToComponent: (direction) => { 58995 let { filteredIndex, storyId, refs, refId } = store2.getState(); 58996 if (!api.getData(storyId, refId)) 58997 return; 58998 let hash4 = refId ? refs[refId].filteredIndex || {} : filteredIndex; 58999 if (!hash4) 59000 return; 59001 let result = api.findSiblingStoryId(storyId, hash4, direction, !0); 59002 result && api.selectStory(result, void 0, { ref: refId }); 59003 }, 59004 jumpToStory: (direction) => { 59005 let { filteredIndex, storyId, refs, refId } = store2.getState(), story = api.getData(storyId, refId); 59006 if (!story) 59007 return; 59008 let hash4 = story.refId ? refs[story.refId].filteredIndex : filteredIndex; 59009 if (!hash4) 59010 return; 59011 let result = api.findSiblingStoryId(storyId, hash4, direction, !1); 59012 result && api.selectStory(result, void 0, { ref: refId }); 59013 }, 59014 selectFirstStory: () => { 59015 let { index: index4 } = store2.getState(); 59016 if (!index4) 59017 return; 59018 let firstStory = Object.keys(index4).find((id) => index4[id].type === "story"); 59019 if (firstStory) { 59020 api.selectStory(firstStory); 59021 return; 59022 } 59023 navigate("/"); 59024 }, 59025 selectStory: (titleOrId = void 0, name = void 0, options = {}) => { 59026 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 } }), navigate(`/${entry.type}/${entry.refId ? `${entry.refId}_${entry.id}` : entry.id}`), !0) : !1, kindSlug = storyId?.split("--", 2)[0], hash4 = ref ? refs[ref].index : index4, filteredHash = ref ? refs[ref].filteredIndex : filteredIndex; 59027 if (!(!hash4 || !filteredHash)) 59028 if (name) 59029 if (!titleOrId) 59030 gotoStory(hash4[toId(kindSlug, name)]); 59031 else { 59032 let id = ref ? `${ref}_${toId(titleOrId, name)}` : toId(titleOrId, name); 59033 if (hash4[id]) 59034 gotoStory(hash4[id]); 59035 else { 59036 let entry = hash4[sanitize(titleOrId)]; 59037 if (entry?.type === "component") { 59038 let foundId = entry.children.find((childId) => hash4[childId].name === name); 59039 gotoStory(foundId ? hash4[foundId] : void 0); 59040 } 59041 } 59042 } 59043 else { 59044 let entry = titleOrId ? hash4[titleOrId] || hash4[sanitize(titleOrId)] : hash4[kindSlug]; 59045 if (!entry) 59046 throw new Error(`Unknown id or title: '${titleOrId}'`); 59047 gotoStory(entry) || gotoStory(api.findLeafEntry(filteredHash, entry.id)); 59048 } 59049 }, 59050 findLeafEntry(index4, storyId) { 59051 let entry = index4[storyId]; 59052 if (entry.type === "docs" || entry.type === "story") 59053 return entry; 59054 let childStoryId = entry.children.find((childId) => index4[childId]) || entry.children[0]; 59055 return api.findLeafEntry(index4, childStoryId); 59056 }, 59057 findLeafStoryId(index4, storyId) { 59058 return api.findLeafEntry(index4, storyId)?.id; 59059 }, 59060 findAllLeafStoryIds(entryId) { 59061 let { index: index4 } = store2.getState(); 59062 if (!index4) 59063 return []; 59064 let findChildEntriesRecursively = (currentEntryId, results = []) => { 59065 let node2 = index4[currentEntryId]; 59066 return node2 && (node2.type === "story" && results.push(node2.id), "children" in node2 && node2.children?.forEach((childId) => findChildEntriesRecursively(childId, results))), results; 59067 }; 59068 return findChildEntriesRecursively(entryId, []); 59069 }, 59070 findSiblingStoryId(storyId, index4, direction, toSiblingGroup) { 59071 if (toSiblingGroup) {
59072 let lookupList2 = getComponentLookupList(index4), position3 = lookupList2.findIndex((i) => i.includes(storyId)); 59073 return position3 === lookupList2.length - 1 && direction > 0 || position3 === 0 && direction < 0 ? void 0 : lookupList2[position3 + direction] ? lookupList2[position3 + direction][0] : void 0; 59074 } 59075 let lookupList = getStoriesLookupList(index4), position2 = lookupList.indexOf(storyId); 59076 if (!(position2 === lookupList.length - 1 && direction > 0) && !(position2 === 0 && direction < 0)) 59077 return lookupList[position2 + direction]; 59078 }, 59079 updateStoryArgs: (story, updatedArgs) => { 59080 let { id: storyId, refId } = story; 59081 provider.channel?.emit(UPDATE_STORY_ARGS, { 59082 storyId, 59083 updatedArgs, 59084 options: { target: refId } 59085 }); 59086 }, 59087 resetStoryArgs: (story, argNames) => { 59088 let { id: storyId, refId } = story; 59089 provider.channel?.emit(RESET_STORY_ARGS, { 59090 storyId, 59091 argNames, 59092 options: { target: refId } 59093 }); 59094 }, 59095 fetchIndex: async () => { 59096 try { 59097 let result = await fetch3(STORY_INDEX_PATH); 59098 if (result.status !== 200) 59099 throw new Error(await result.text()); 59100 let storyIndex = await result.json(); 59101 if (storyIndex.v < 3) { 59102 logger.warn(`Skipping story index with version v${storyIndex.v}, awaiting SET_STORIES.`); 59103 return; 59104 } 59105 await api.setIndex(storyIndex); 59106 } catch (err) { 59107 await store2.setState({ indexError: err }); 59108 } 59109 }, 59110 // The story index we receive on SET_INDEX is "prepared" in that it has parameters 59111 // The story index we receive on fetchStoryIndex is not, but all the prepared fields are optional 59112 // so we can cast one to the other easily enough 59113 setIndex: async (input2) => { 59114 let { filteredIndex: oldFilteredHash, index: oldHash, filters } = store2.getState(), allStatuses = fullStatusStore.getAll(), newFilteredHash = transformStoryIndexToStoriesHash(input2, { 59115 provider, 59116 docsOptions, 59117 filters, 59118 allStatuses 59119 }), newHash = transformStoryIndexToStoriesHash(input2, { 59120 provider, 59121 docsOptions, 59122 filters: {}, 59123 allStatuses 59124 }); 59125 await store2.setState({ 59126 internal_index: input2, 59127 filteredIndex: addPreparedStories(newFilteredHash, oldFilteredHash), 59128 index: addPreparedStories(newHash, oldHash), 59129 indexError: void 0 59130 }); 59131 }, 59132 // FIXME: is there a bug where filtered stories get added back in on updateStory??? 59133 updateStory: async (storyId, update2, ref) => { 59134 if (ref) { 59135 let { id: refId, index: index4, filteredIndex } = ref; 59136 index4 && index4[storyId] && (index4[storyId] = { 59137 ...index4[storyId], 59138 ...update2 59139 }), filteredIndex && filteredIndex[storyId] && (filteredIndex[storyId] = { 59140 ...filteredIndex[storyId], 59141 ...update2 59142 }), await fullAPI.updateRef(refId, { index: index4, filteredIndex }); 59143 } else { 59144 let { index: index4, filteredIndex } = store2.getState(); 59145 index4 && index4[storyId] && (index4[storyId] = { 59146 ...index4[storyId], 59147 ...update2 59148 }), filteredIndex && filteredIndex[storyId] && (filteredIndex[storyId] = { 59149 ...filteredIndex[storyId], 59150 ...update2 59151 }), (index4 || filteredIndex) && await store2.setState({ index: index4, filteredIndex }); 59152 } 59153 }, 59154 updateDocs: async (docsId, update2, ref) => { 59155 if (ref) { 59156 let { id: refId, index: index4, filteredIndex } = ref; 59157 index4[docsId] = { 59158 ...index4[docsId], 59159 ...update2 59160 }, filteredIndex[docsId] = { 59161 ...filteredIndex[docsId], 59162 ...update2 59163 }, await fullAPI.updateRef(refId, { index: index4, filteredIndex }); 59164 } else { 59165 let { index: index4, filteredIndex } = store2.getState(); 59166 index4 && (index4[docsId] = { 59167 ...index4[docsId], 59168 ...update2 59169 }), filteredIndex && (filteredIndex[docsId] = { 59170 ...filteredIndex[docsId], 59171 ...update2 59172 }), (index4 || filteredIndex) && await store2.setState({ index: index4, filteredIndex }); 59173 } 59174 }, 59175 setPreviewInitialized: async (ref) => { 59176 ref ? fullAPI.updateRef(ref.id, { previewInitialized: !0 }) : store2.setState({ previewInitialized: !0 }); 59177 }, 59178 experimental_setFilter: async (id, filterFunction) => { 59179 await store2.setState({ filters: { ...store2.getState().filters, [id]: filterFunction } }); 59180 let { internal_index: index4 } = store2.getState(); 59181 if (!index4) 59182 return; 59183 await api.setIndex(index4); 59184 let refs = await fullAPI.getRefs(); 59185 for (let [refId, { internal_index, ...ref }] of Object.entries(refs)) 59186 await fullAPI.setRef(refId, { ...ref, storyIndex: internal_index }, !0); 59187 provider.channel?.emit(SET_FILTER, { id }); 59188 }, 59189 resetTagFilters: async () => { 59190 await store2.setState( 59191 (s3) => ({ 59192 includedTagFilters: s3.defaultIncludedTagFilters, 59193 excludedTagFilters: s3.defaultExcludedTagFilters 59194 }), 59195 { persistence: "permanent" } 59196 ), recomputeFilters(); 59197 }, 59198 setAllTagFilters: async (included, excluded) => { 59199 await store2.setState( 59200 { 59201 includedTagFilters: included, 59202 excludedTagFilters: excluded 59203 }, 59204 { persistence: "permanent" } 59205 ), recomputeFilters(); 59206 }, 59207 addTagFilters: async (tags2, excluded) => { 59208 let state3 = store2.getState(), newIncluded = new Set(state3.includedTagFilters), newExcluded
59208= new Set(state3.excludedTagFilters); 59209 for (let tag of tags2) 59210 excluded ? (newIncluded.delete(tag), newExcluded.add(tag)) : (newIncluded.add(tag), newExcluded.delete(tag)); 59211 await store2.setState( 59212 { 59213 includedTagFilters: Array.from(newIncluded), 59214 excludedTagFilters: Array.from(newExcluded) 59215 }, 59216 { persistence: "permanent" } 59217 ), recomputeFilters(); 59218 }, 59219 removeTagFilters: async (tags2) => { 59220 let state3 = store2.getState(); 59221 await store2.setState( 59222 { 59223 includedTagFilters: state3.includedTagFilters.filter((tag) => !tags2.includes(tag)), 59224 excludedTagFilters: state3.excludedTagFilters.filter((tag) => !tags2.includes(tag)) 59225 }, 59226 { persistence: "permanent" } 59227 ), recomputeFilters(); 59228 } 59229 }, recomputeFilters = () => { 59230 let { includedTagFilters, excludedTagFilters } = store2.getState(); 59231 api.experimental_setFilter( 59232 TAGS_FILTER, 59233 computeTagsFilterFn(includedTagFilters, excludedTagFilters) 59234 ); 59235 }; 59236 provider.channel?.on( 59237 STORY_SPECIFIED, 59238 function({ 59239 storyId, 59240 viewMode 59241 }) { 59242 let { sourceType } = getEventMetadata(this, fullAPI); 59243 if (sourceType === "local") { 59244 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] || {}; 59245 isCanvasRoute && (stateHasSelection && stateSelectionDifferent && !(type5 === "root" || type5 === "component" || type5 === "group") ? provider.channel?.emit(SET_CURRENT_STORY, { 59246 storyId: state3.storyId, 59247 viewMode: state3.viewMode 59248 }) : stateSelectionDifferent && navigate(`/${viewMode}/${storyId}`)); 59249 } 59250 } 59251 ), provider.channel?.on(CURRENT_STORY_WAS_SET, function() { 59252 let { ref } = getEventMetadata(this, fullAPI); 59253 api.setPreviewInitialized(ref); 59254 }), provider.channel?.on(STORY_CHANGED, function() { 59255 let { sourceType } = getEventMetadata(this, fullAPI); 59256 if (sourceType === "local") { 59257 let options = api.getCurrentParameter("options"); 59258 options && fullAPI.setOptions(removeRemovedOptions(options)); 59259 } 59260 }), provider.channel?.on( 59261 STORY_PREPARED, 59262 function({ id, ...update2 }) { 59263 let { ref, sourceType } = getEventMetadata(this, fullAPI); 59264 if (api.updateStory(id, { ...update2, prepared: !0 }, ref), !ref && !store2.getState().hasCalledSetOptions) { 59265 let { options } = update2.parameters; 59266 fullAPI.setOptions(removeRemovedOptions(options)), store2.setState({ hasCalledSetOptions: !0 }); 59267 } 59268 if (sourceType === "local") { 59269 let { storyId, index: index4, refId } = store2.getState(); 59270 if (!index4) 59271 return; 59272 let toBePreloaded = Array.from(
vendor: 2,102 bytes, lines 59273-59330
59273 /* @__PURE__ */ new Set([ 59274 api.findSiblingStoryId(storyId, index4, 1, !0), 59275 api.findSiblingStoryId(storyId, index4, -1, !0) 59276 ]) 59277 ).filter(Boolean); 59278 provider.channel?.emit(PRELOAD_ENTRIES, { 59279 ids: toBePreloaded, 59280 options: { target: refId } 59281 }); 59282 } 59283 } 59284 ), provider.channel?.on( 59285 DOCS_PREPARED, 59286 function({ id, ...update2 }) { 59287 let { ref } = getEventMetadata(this, fullAPI); 59288 api.updateStory(id, { ...update2, prepared: !0 }, ref); 59289 } 59290 ), provider.channel?.on(SET_INDEX, function(index4) { 59291 let { ref } = getEventMetadata(this, fullAPI); 59292 if (ref) 59293 fullAPI.setRef(ref.id, { ...ref, storyIndex: index4 }, !0); 59294 else { 59295 api.setIndex(index4); 59296 let options = api.getCurrentParameter("options"); 59297 fullAPI.setOptions(removeRemovedOptions(options)); 59298 } 59299 }), provider.channel?.on(SET_STORIES, function(data) { 59300 let { ref } = getEventMetadata(this, fullAPI), setStoriesData = data.v ? denormalizeStoryParameters(data) : data.stories; 59301 if (ref) 59302 fullAPI.setRef(ref.id, { ...ref, setStoriesData }, !0); 59303 else 59304 throw new Error("Cannot call SET_STORIES for local frame"); 59305 }), provider.channel?.on( 59306 SELECT_STORY, 59307 function({ 59308 kind, 59309 title = kind, 59310 story, 59311 name = story, 59312 storyId, 59313 ...rest 59314 }) { 59315 let { ref } = getEventMetadata(this, fullAPI); 59316 ref ? fullAPI.selectStory(storyId || title, name, { ...rest, ref: ref.id }) : fullAPI.selectStory(storyId || title, name, rest); 59317 } 59318 ), provider.channel?.on( 59319 STORY_ARGS_UPDATED, 59320 function({ storyId, args }) { 59321 let { ref } = getEventMetadata(this, fullAPI); 59322 api.updateStory(storyId, { args }, ref); 59323 } 59324 ), provider.channel?.on(CONFIG_ERROR, function(err) { 59325 let { ref } = getEventMetadata(this, fullAPI); 59326 api.setPreviewInitialized(ref); 59327 }), provider.channel?.on(STORY_MISSING, function(err) { 59328 let { ref } = getEventMetadata(this, fullAPI); 59329 api.setPreviewInitialized(ref); 59330 }), provider.channel?.on(SET_CONFIG, () => {
59331 let configFilters2 = provider.getConfig()?.sidebar?.filters || {}, { includedTagFilters, excludedTagFilters, tagPresets: tagPresets2 } = store2.getState(); 59332 store2.setState({ 59333 filters: { 59334 ...store2.getState().filters, 59335 ...configFilters2, 59336 [STATIC_FILTER]: computeStaticFilterFn(tagPresets2), 59337 [TAGS_FILTER]: computeTagsFilterFn(includedTagFilters, excludedTagFilters) 59338 } 59339 }); 59340 }), fullStatusStore.onAllStatusChange(async () => { 59341 let { internal_index: index4 } = store2.getState(); 59342 if (!index4) 59343 return; 59344 await api.setIndex(index4); 59345 let refs = await fullAPI.getRefs(); 59346 Object.entries(refs).forEach(([refId, { internal_index, ...ref }]) => { 59347 fullAPI.setRef(refId, { ...ref, storyIndex: internal_index }, !0); 59348 }); 59349 }); 59350 let configFilters = provider.getConfig()?.sidebar?.filters || {}, tagPresets = scope.TAGS_OPTIONS || {}, defaultTags = getDefaultTagsFromPreset(tagPresets), persistedState = store2.getState(), initialIncluded = persistedState.includedTagFilters ?? persistedState.layout?.includedTagFilters ?? defaultTags.included, initialExcluded = persistedState.excludedTagFilters ?? persistedState.layout?.excludedTagFilters ?? defaultTags.excluded, initialFilters = { 59351 ...configFilters, 59352 [STATIC_FILTER]: computeStaticFilterFn(tagPresets), 59353 [TAGS_FILTER]: computeTagsFilterFn(initialIncluded, initialExcluded) 59354 }; 59355 return { 59356 api, 59357 state: { 59358 storyId: initialStoryId, 59359 viewMode: initialViewMode, 59360 hasCalledSetOptions: !1, 59361 previewInitialized: !1, 59362 filters: initialFilters, 59363 tagPresets, 59364 defaultIncludedTagFilters: defaultTags.included, 59365 defaultExcludedTagFilters: defaultTags.excluded, 59366 includedTagFilters: initialIncluded, 59367 excludedTagFilters: initialExcluded 59368 }, 59369 init: async () => { 59370 provider.channel?.on(STORY_INDEX_INVALIDATED, () => api.fetchIndex()), await api.fetchIndex(); 59371 } 59372 }; 59373}; 59374
59375// src/manager-api/modules/url.ts 59376var url_exports = {}; 59377__export(url_exports, { 59378 init: () => init13 59379}
vendor: 664 bytes, lines 59379-59403
59379); 59380 59381// src/router/index.ts 59382var router_exports = {}; 59383__export(router_exports, { 59384 BaseLocationProvider: () => BaseLocationProvider, 59385 DEEPLY_EQUAL: () => DEEPLY_EQUAL2, 59386 Link: () => Link4, 59387 Location: () => Location, 59388 LocationProvider: () => LocationProvider, 59389 Match: () => Match, 59390 MemoryRouter: () => MemoryRouter2, 59391 Route: () => Route2, 59392 buildArgsParam: () => buildArgsParam, 59393 deepDiff: () => deepDiff2, 59394 getMatch: () => getMatch, 59395 parsePath: () => parsePath2, 59396 queryFromLocation: () => queryFromLocation, 59397 stringifyQuery: () => stringifyQuery, 59398 useNavigate: () => useNavigate2 59399}); 59400 59401// src/router/utils.ts 59402init_client_logger(); 59403var import_memoizerific
594038 = __toESM(require_memoizerific(), 1), import_picoquery4 = __toESM(require_main(), 1); 59404init_esm(); 59405var splitPathRegex = /\/([^/]+)\/(?:(.*)_)?([^/]+)?/, parsePath2 = (0, import_memoizerific8.default)(1e3)((path) => { 59406 let result = { 59407 viewMode: void 0, 59408 storyId: void 0, 59409 refId: void 0 59410 }; 59411 if (path) { 59412 let [, viewMode, refId, storyId] = path.toLowerCase().match(splitPathRegex) || []; 59413 viewMode && Object.assign(result, { 59414 viewMode, 59415 storyId, 59416 refId 59417 }); 59418 } 59419 return result; 59420}), DEEPLY_EQUAL2 = Symbol("Deeply equal"), deepDiff2 = (value, update2) => { 59421 if (typeof value != typeof update2) 59422 return update2; 59423 if (isEqual(value, update2)) 59424 return DEEPLY_EQUAL2; 59425 if (Array.isArray(value) && Array.isArray(update2)) { 59426 let res = update2.reduce((acc, upd, index4) => { 59427 let diff2 = deepDiff2(value[index4], upd); 59428 return diff2 !== DEEPLY_EQUAL2 && (acc[index4] = diff2), acc; 59429 }, new Array(update2.length)); 59430 return update2.length >= value.length ? res : res.concat(new Array(value.length - update2.length).fill(void 0)); 59431 } 59432 return isPlainObject(value) && isPlainObject(update2) ? Object.keys({ ...value, ...update2 }).reduce((acc, key) => { 59433 let diff2 = deepDiff2(value?.[key], update2?.[key]); 59434 return diff2 === DEEPLY_EQUAL2 ? acc : Object.assign(acc, { [key]: diff2 }); 59435 }, {}) : update2; 59436}, 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( 59437 (acc, [key, val]) => Object.assign(acc, { [key]: encodeSpecialValues(val) }), 59438 {} 59439) : value, decodeKnownQueryChar = (chr) => { 59440 switch (chr) { 59441 case "%20": 59442 return "+"; 59443 case "%5B": 59444 return "["; 59445 case "%5D": 59446 return "]"; 59447 case "%2C": 59448 return ","; 59449 case "%3A": 59450 return ":"; 59451 } 59452 return chr; 59453}, knownQueryChar = /%[0-9A-F]{2}/g, buildArgsParam = (initialArgs, args) => { 59454 let update2 = deepDiff2(initialArgs, args); 59455 if (!update2 || update2 === DEEPLY_EQUAL2) 59456 return ""; 59457 let object = Object.entries(update2).reduce((acc, [key, value]) => validateArgs(key, value) ? Object.assign(acc, { [key]: value }) : (once.warn(dedent` 59458 Omitted potentially unsafe URL args. 59459 59460 More info: https://storybook.js.org/docs/writing-stories/args?ref=error#setting-args-through-the-url 59461 `), acc), {}); 59462 return (0, import_picoquery4.stringify)(encodeSpecialValues(object), { 59463 delimiter: ";", 59464 // we don't actually create multiple query params 59465 nesting: !0, 59466 nestingSyntax: "js" 59467 // encode objects using dot notation: obj.key=val 59468 }).replace(knownQueryChar, decodeKnownQueryChar).split(";").map((part) => part.replace("=", ":")).join(";"); 59469}, queryFromString = (0, import_memoizerific8.default)(1e3)((s3) => s3 !== void 0 ? (0, import_picoquery4.parse)(s3) : {}), queryFromLocation = (location4) => queryFromString(location4.search ? location4.search.slice(1) : ""), stringifyQuery = (query) => { 59470 let queryStr = (0, import_picoquery4.stringify)(query); 59471 return queryStr ? "?" + queryStr : ""; 59472}, getMatch = (0, import_memoizerific8.default)(1e3)((current, target, startsWith4 = !0) => { 59473 if (startsWith4) { 59474 if (typeof target != "string") 59475 throw new Error("startsWith only works with string targets"); 59476 return current && current.startsWith(target) ? { path: current } : null; 59477 } 59478 let currentIsTarget = typeof target == "string" && current === target, matchTarget = current && target && current.match(target); 59479 return currentIsTarget || matchTarget ? { path: current } : null; 59480}); 59481
59482// src/router/router.tsx 59483var import_react20 = __toESM(require_react(), 1); 59484init_dist(); 59485
vendor: 94 bytes, lines 59486-59488
59486// ../../node_modules/react-router-dom/dist/index.js 59487var React32 = __toESM(require_react()); 59488
vendor: 90 bytes, lines 59489-59491
59489// ../../node_modules/react-router/dist/index.js 59490var React31 = __toESM(require_react()); 59491
vendor: 12,839 bytes, lines 59492-59820
59492// ../../node_modules/@remix-run/router/dist/router.js 59493function _extends2() { 59494 return _extends2 = Object.assign ? Object.assign.bind() : function(target) { 59495 for (var i = 1; i < arguments.length; i++) { 59496 var source = arguments[i]; 59497 for (var key in source) 59498 Object.prototype.hasOwnProperty.call(source, key) && (target[key] = source[key]); 59499 } 59500 return target; 59501 }, _extends2.apply(this, arguments); 59502} 59503var Action; 59504(function(Action2) { 59505 Action2.Pop = "POP", Action2.Push = "PUSH", Action2.Replace = "REPLACE"; 59506})(Action || (Action = {})); 59507var PopStateEventType = "popstate"; 59508function createMemoryHistory(options) { 59509 options === void 0 && (options = {}); 59510 let { 59511 initialEntries = ["/"], 59512 initialIndex, 59513 v5Compat = !1 59514 } = options, entries; 59515 entries = initialEntries.map((entry, index5) => createMemoryLocation(entry, typeof entry == "string" ? null : entry.state, index5 === 0 ? "default" : void 0)); 59516 let index4 = clampIndex(initialIndex ?? entries.length - 1), action2 = Action.Pop, listener = null; 59517 function clampIndex(n) { 59518 return Math.min(Math.max(n, 0), entries.length - 1); 59519 } 59520 function getCurrentLocation() { 59521 return entries[index4]; 59522 } 59523 function createMemoryLocation(to, state3, key) { 59524 state3 === void 0 && (state3 = null); 59525 let location4 = createLocation(entries ? getCurrentLocation().pathname : "/", to, state3, key); 59526 return warning(location4.pathname.charAt(0) === "/", "relative pathnames are not supported in memory history: " + JSON.stringify(to)), location4; 59527 } 59528 function createHref(to) { 59529 return typeof to == "string" ? to : createPath(to); 59530 } 59531 return { 59532 get index() { 59533 return index4; 59534 }, 59535 get action() { 59536 return action2; 59537 }, 59538 get location() { 59539 return getCurrentLocation(); 59540 }, 59541 createHref, 59542 createURL(to) { 59543 return new URL(createHref(to), "http://localhost"); 59544 }, 59545 encodeLocation(to) { 59546 let path = typeof to == "string" ? parsePath3(to) : to; 59547 return { 59548 pathname: path.pathname || "", 59549 search: path.search || "", 59550 hash: path.hash || "" 59551 }; 59552 }, 59553 push(to, state3) { 59554 action2 = Action.Push; 59555 let nextLocation = createMemoryLocation(to, state3); 59556 index4 += 1, entries.splice(index4, entries.length, nextLocation), v5Compat && listener && listener({ 59557 action: action2, 59558 location: nextLocation, 59559 delta: 1 59560 }); 59561 }, 59562 replace(to, state3) { 59563 action2 = Action.Replace; 59564 let nextLocation = createMemoryLocation(to, state3); 59565 entries[index4] = nextLocation, v5Compat && listener && listener({ 59566 action: action2, 59567 location: nextLocation, 59568 delta: 0 59569 }); 59570 }, 59571 go(delta) { 59572 action2 = Action.Pop; 59573 let nextIndex = clampIndex(index4 + delta), nextLocation = entries[nextIndex]; 59574 index4 = nextIndex, listener && listener({ 59575 action: action2, 59576 location: nextLocation, 59577 delta 59578 }); 59579 }, 59580 listen(fn4) { 59581 return listener = fn4, () => { 59582 listener = null; 59583 }; 59584 } 59585 }; 59586} 59587function createBrowserHistory(options) { 59588 options === void 0 && (options = {}); 59589 function createBrowserLocation(window2, globalHistory) { 59590 let { 59591 pathname, 59592 search, 59593 hash: hash4 59594 } = window2.location; 59595 return createLocation( 59596 "", 59597 { 59598 pathname, 59599 search, 59600 hash: hash4 59601 }, 59602 // state defaults to `null` because `window.history.state` does 59603 globalHistory.state && globalHistory.state.usr || null, 59604 globalHistory.state && globalHistory.state.key || "default" 59605 ); 59606 } 59607 function createBrowserHref(window2, to) { 59608 return typeof to == "string" ? to : createPath(to); 59609 } 59610 return getUrlBasedHistory(createBrowserLocation, createBrowserHref, null, options); 59611} 59612function invariant2(value, message) { 59613 if (value === !1 || value === null || typeof value > "u") 59614 throw new Error(message); 59615} 59616function warning(cond, message) { 59617 if (!cond) { 59618 typeof console < "u" && console.warn(message); 59619 try { 59620 throw new Error(message); 59621 } catch { 59622 } 59623 } 59624} 59625function createKey() { 59626 return Math.random().toString(36).substr(2, 8); 59627} 59628function getHistoryState(location4, index4) { 59629 return { 59630 usr: location4.state, 59631 key: location4.key, 59632 idx: index4 59633 }; 59634} 59635function createLocation(current, to, state3, key) { 59636 return state3 === void 0 && (state3 = null), _extends2({ 59637 pathname: typeof current == "string" ? current : current.pathname, 59638 search: "", 59639 hash: "" 59640 }, typeof to == "string" ? parsePath3(to) : to, { 59641 state: state3, 59642 // TODO: This could be cleaned up. push/replace should probably just take 59643 // full Locations now and avoid the need to run through this flow at all 59644 // But that's a pretty big refactor to the current test suite so going to 59645 // keep as is for the time being and just let any incoming keys take precedence 59646 key: to && to.key || key || createKey() 59647 }); 59648} 59649function createPath(_ref) { 59650 let { 59651 pathname = "/", 59652 search = "", 59653 hash: hash4 = "" 59654 } = _ref; 59655 return search && search !== "?" && (pathname += search.charAt(0) === "?" ? search : "?" + search), hash4 && hash4 !== "#" && (pathname += hash4.charAt(0) === "#" ? hash4 : "#" + hash4), pathname; 59656} 59657function parsePath3(path) { 59658 let parsedPath = {}; 59659 if (path) { 59660 let hashIndex = path.indexOf("#"); 59661 hashIndex >= 0 && (parsedPath.hash = path.substr(hashIndex), path = path.substr(0, hashIndex)); 59662 let searchIndex = path.indexOf("?"); 59663 searchIndex >= 0 && (parsedPath.search = path.substr(searchIndex), path = path.substr(0, searchIndex)), path && (parsedPath.pathname = path); 59664 } 59665 return parsedPath; 59666} 59667function getUrlBasedHistory(getLocation, createHref, validateLocation, options) { 59668 options === void 0 && (options = {}); 59669 let { 59670 window: window2 = document.defaultView, 59671 v5Compat = !1 59672 } = options, globalHistory = window2.history, action2 = Action.Pop, listener = null, index4 = getIndex(); 59673 index4 == null && (index4 = 0, globalHistory.replaceState(_extends2({}, globalHistory.state, { 59674 idx: index4 59675 }), "")); 59676 function getIndex() { 59677 return (globalHistory.state || { 59678 idx: null 59679 }).idx; 59680 } 59681 function handlePop() { 59682 action2 = Action.Pop; 59683 let nextIndex = getIndex(), delta = nextIndex == null ? null : nextIndex - index4; 59684 index4 = nextIndex, listener && listener({ 59685 action: action2, 59686 location: history2.location, 59687 delta 59688 }); 59689 } 59690 function push(to, state3) { 59691 action2 = Action.Push; 59692 let location4 = createLocation(history2.location, to, state3); 59693 validateLocation && validateLocation(location4, to), index4 = getIndex() + 1; 59694 let historyState = getHistoryState(location4, index4), url = history2.createHref(location4); 59695 try { 59696 globalHistory.pushState(historyState, "", url); 59697 } catch (error) { 59698 if (error instanceof DOMException && error.name === "DataCloneError") 59699 throw error; 59700 window2.location.assign(url); 59701 } 59702 v5Compat && listener && listener({ 59703 action: action2, 59704 location: history2.location, 59705 delta: 1 59706 }); 59707 } 59708 function replace2(to, state3) { 59709 action2 = Action.Replace; 59710 let location4 = createLocation(history2.location, to, state3); 59711 validateLocation && validateLocation(location4, to), index4 = getIndex(); 59712 let historyState = getHistoryState(location4, index4), url = history2.createHref(location4); 59713 globalHistory.replaceState(historyState, "", url), v5Compat && listener && listener({ 59714 action: action2, 59715 location: history2.location, 59716 delta: 0 59717 }); 59718 } 59719 function createURL(to) { 59720 let base = window2.location.origin !== "null" ? window2.location.origin : window2.location.href, href = typeof to == "string" ? to : createPath(to); 59721 return invariant2(base, "No window.location.(origin|href) available to create URL for href: " + href), new URL(href, base); 59722 } 59723 let history2 = { 59724 get action() { 59725 return action2; 59726 }, 59727 get location() { 59728 return getLocation(window2, globalHistory); 59729 }, 59730 listen(fn4) { 59731 if (listener) 59732 throw new Error("A history only accepts one active listener"); 59733 return window2.addEventListener(PopStateEventType, handlePop), listener = fn4, () => { 59734 window2.removeEventListener(PopStateEventType, handlePop), listener = null; 59735 }; 59736 }, 59737 createHref(to) { 59738 return createHref(window2, to); 59739 }, 59740 createURL, 59741 encodeLocation(to) { 59742 let url = createURL(to); 59743 return { 59744 pathname: url.pathname, 59745 search: url.search, 59746 hash: url.hash 59747 }; 59748 }, 59749 push, 59750 replace: replace2, 59751 go(n) { 59752 return globalHistory.go(n); 59753 } 59754 }; 59755 return history2; 59756} 59757var ResultType; 59758(function(ResultType2) { 59759 ResultType2.data = "data", ResultType2.deferred = "deferred", ResultType2.redirect = "redirect", ResultType2.error = "error"; 59760})(ResultType || (ResultType = {})); 59761function stripBasename(pathname, basename) { 59762 if (basename === "/") return pathname; 59763 if (!pathname.toLowerCase().startsWith(basename.toLowerCase())) 59764 return null; 59765 let startIndex = basename.endsWith("/") ? basename.length - 1 : basename.length, nextChar = pathname.charAt(startIndex); 59766 return nextChar && nextChar !== "/" ? null : pathname.slice(startIndex) || "/"; 59767} 59768function resolvePath(to, fromPathname) { 59769 fromPathname === void 0 && (fromPathname = "/"); 59770 let { 59771 pathname: toPathname, 59772 search = "", 59773 hash: hash4 = "" 59774 } = typeof to == "string" ? parsePath3(to) : to; 59775 return { 59776 pathname: toPathname ? toPathname.startsWith("/") ? toPathname : resolvePathname(toPathname, fromPathname) : fromPathname, 59777 search: normalizeSearch(search), 59778 hash: normalizeHash(hash4) 59779 }; 59780} 59781function resolvePathname(relativePath, fromPathname) { 59782 let segments = fromPathname.replace(/\/+$/, "").split("/"); 59783 return relativePath.split("/").forEach((segment) => { 59784 segment === ".." ? segments.length > 1 && segments.pop() : segment !== "." && segments.push(segment); 59785 }), segments.length > 1 ? segments.join("/") : "/"; 59786} 59787function getInvalidPathError(char2, field, dest, path) { 59788 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.'; 59789} 59790function getPathContributingMatches(matches4) { 59791 return matches4.filter((match3, index4) => index4 === 0 || match3.route.path && match3.route.path.length > 0); 59792} 59793function resolveTo(toArg, routePathnames, locationPathname, isPathRelative) { 59794 isPathRelative === void 0 && (isPathRelative = !1); 59795 let to; 59796 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))); 59797 let isEmptyPath = toArg === "" || to.pathname === "", toPathname = isEmptyPath ? "/" : to.pathname, from2; 59798 if (isPathRelative || toPathname == null) 59799 from2 = locationPathname; 59800 else { 59801 let routePathnameIndex = routePathnames.length - 1; 59802 if (toPathname.startsWith("..")) { 59803 let toSegments = toPathname.split("/"); 59804 for (; toSegments[0] === ".."; ) 59805 toSegments.shift(), routePathnameIndex -= 1; 59806 to.pathname = toSegments.join("/"); 59807 } 59808 from2 = routePathnameIndex >= 0 ? routePathnames[routePathnameIndex] : "/"; 59809 } 59810 let path = resolvePath(to, from2), hasExplicitTrailingSlash = toPathname && toPathname !== "/" && toPathname.endsWith("/"), hasCurrentTrailingSlash = (isEmptyPath || toPathname === ".") && locationPathname.endsWith("/"); 59811 return !path.pathname.endsWith("/") && (hasExplicitTrailingSlash || hasCurrentTrailingSlash) && (path.pathname += "/"), path; 59812} 59813var joinPaths = (paths) => paths.join("/").replace(/\/\/+/g, "/"); 59814var normalizeSearch = (search) => !search || search === "?" ? "" : search.startsWith("?") ? search : "?" + search, normalizeHash = (hash4) => !hash4 || hash4 === "#" ? "" : hash4.startsWith("#") ? hash4 : "#" + hash4; 59815function isRouteErrorResponse(error) { 59816 return error != null && typeof error.status == "number" && typeof error.statusText == "string" && typeof error.internal == "boolean" && "data" in error; 59817} 59818var validMutationMethodsArr = ["post", "put", "patch", "delete"], validMutationMethods = new Set(validMutationMethodsArr), validRequestMethodsArr = ["get", ...validMutationMethodsArr], validRequestMethods = new Set(validRequestMethodsArr); 59819var UNSAFE_DEFERRED_SYMBOL = Symbol("deferred"); 59820
vendor: 9,549 bytes, lines 59821-60040
59821// ../../node_modules/react-router/dist/index.js 59822function _extends3() { 59823 return _extends3 = Object.assign ? Object.assign.bind() : function(target) { 59824 for (var i = 1; i < arguments.length; i++) { 59825 var source = arguments[i]; 59826 for (var key in source) 59827 Object.prototype.hasOwnProperty.call(source, key) && (target[key] = source[key]); 59828 } 59829 return target; 59830 }, _extends3.apply(this, arguments); 59831} 59832var DataRouterContext = React31.createContext(null), DataRouterStateContext = React31.createContext(null), AwaitContext = React31.createContext(null), NavigationContext = React31.createContext(null), LocationContext = React31.createContext(null), RouteContext = React31.createContext({ 59833 outlet: null, 59834 matches: [], 59835 isDataRoute: !1 59836}), RouteErrorContext = React31.createContext(null); 59837function useHref(to, _temp) { 59838 let { 59839 relative 59840 } = _temp === void 0 ? {} : _temp; 59841 useInRouterContext() || invariant2(!1); 59842 let { 59843 basename, 59844 navigator: navigator4 59845 } = React31.useContext(NavigationContext), { 59846 hash: hash4, 59847 pathname, 59848 search 59849 } = useResolvedPath(to, { 59850 relative 59851 }), joinedPathname = pathname; 59852 return basename !== "/" && (joinedPathname = pathname === "/" ? basename : joinPaths([basename, pathname])), navigator4.createHref({ 59853 pathname: joinedPathname, 59854 search, 59855 hash: hash4 59856 }); 59857} 59858function useInRouterContext() { 59859 return React31.useContext(LocationContext) != null; 59860} 59861function useLocation() { 59862 return useInRouterContext() || invariant2(!1), React31.useContext(LocationContext).location; 59863} 59864function useIsomorphicLayoutEffect(cb) { 59865 React31.useContext(NavigationContext).static || React31.useLayoutEffect(cb); 59866} 59867function useNavigate() { 59868 let { 59869 isDataRoute 59870 } = React31.useContext(RouteContext); 59871 return isDataRoute ? useNavigateStable() : useNavigateUnstable(); 59872} 59873function useNavigateUnstable() { 59874 useInRouterContext() || invariant2(!1); 59875 let dataRouterContext = React31.useContext(DataRouterContext), { 59876 basename, 59877 navigator: navigator4 59878 } = React31.useContext(NavigationContext), { 59879 matches: matches4 59880 } = React31.useContext(RouteContext), { 59881 pathname: locationPathname 59882 } = useLocation(), routePathnamesJson = JSON.stringify(getPathContributingMatches(matches4).map((match3) => match3.pathnameBase)), activeRef = React31.useRef(!1); 59883 return useIsomorphicLayoutEffect(() => { 59884 activeRef.current = !0; 59885 }), React31.useCallback(function(to, options) { 59886 if (options === void 0 && (options = {}), !activeRef.current) return; 59887 if (typeof to == "number") { 59888 navigator4.go(to); 59889 return; 59890 } 59891 let path = resolveTo(to, JSON.parse(routePathnamesJson), locationPathname, options.relative === "path"); 59892 dataRouterContext == null && basename !== "/" && (path.pathname = path.pathname === "/" ? basename : joinPaths([basename, path.pathname])), (options.replace ? navigator4.replace : navigator4.push)(path, options.state, options); 59893 }, [basename, navigator4, routePathnamesJson, locationPathname, dataRouterContext]); 59894} 59895var OutletContext = React31.createContext(null); 59896function useResolvedPath(to, _temp2) { 59897 let { 59898 relative 59899 } = _temp2 === void 0 ? {} : _temp2, { 59900 matches: matches4 59901 } = React31.useContext(RouteContext), { 59902 pathname: locationPathname 59903 } = useLocation(), routePathnamesJson = JSON.stringify(getPathContributingMatches(matches4).map((match3) => match3.pathnameBase)); 59904 return React31.useMemo(() => resolveTo(to, JSON.parse(routePathnamesJson), locationPathname, relative === "path"), [to, routePathnamesJson, locationPathname, relative]); 59905} 59906function DefaultErrorComponent() { 59907 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 = { 59908 padding: "0.5rem", 59909 backgroundColor: lightgrey 59910 }, codeStyles = { 59911 padding: "2px 4px", 59912 backgroundColor: lightgrey 59913 }; 59914 return React31.createElement(React31.Fragment, null, React31.createElement("h2", null, "Unexpected Application Error!"), React31.createElement("h3", { 59915 style: { 59916 fontStyle: "italic" 59917 } 59918 }, message), stack ? React31.createElement("pre", { 59919 style: preStyles 59920 }, stack) : null, null); 59921} 59922var defaultErrorElement = React31.createElement(DefaultErrorComponent, null); 59923var DataRouterHook = (function(DataRouterHook3) { 59924 return DataRouterHook3.UseBlocker = "useBlocker", DataRouterHook3.UseRevalidator = "useRevalidator", DataRouterHook3.UseNavigateStable = "useNavigate", DataRouterHook3; 59925})(DataRouterHook || {}), DataRouterStateHook = (function(DataRouterStateHook3) { 59926 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; 59927})(DataRouterStateHook || {}); 59928function useDataRouterContext(hookName) { 59929 let ctx = React31.useContext(DataRouterContext); 59930 return ctx || invariant2(!1), ctx; 59931} 59932function useDataRouterState(hookName) { 59933 let state3 = React31.useContext(DataRouterStateContext); 59934 return state3 || invariant2(!1), state3; 59935} 59936function useRouteContext(hookName) { 59937 let route = React31.useContext(RouteContext); 59938 return route || invariant2(!1), route; 59939} 59940function useCurrentRouteId(hookName) { 59941 let route = useRouteContext(hookName), thisRoute = route.matches[route.matches.length - 1]; 59942 return thisRoute.route.id || invariant2(!1), thisRoute.route.id; 59943} 59944function useRouteId() { 59945 return useCurrentRouteId(DataRouterStateHook.UseRouteId); 59946} 59947function useRouteError() { 59948 var _state$errors; 59949 let error = React31.useContext(RouteErrorContext), state3 = useDataRouterState(DataRouterStateHook.UseRouteError), routeId = useCurrentRouteId(DataRouterStateHook.UseRouteError); 59950 return error || ((_state$errors = state3.errors) == null ? void 0 : _state$errors[routeId]); 59951} 59952function useNavigateStable() { 59953 let { 59954 router 59955 } = useDataRouterContext(DataRouterHook.UseNavigateStable), id = useCurrentRouteId(DataRouterStateHook.UseNavigateStable), activeRef = React31.useRef(!1); 59956 return useIsomorphicLayoutEffect(() => { 59957 activeRef.current = !0; 59958 }), React31.useCallback(function(to, options) { 59959 options === void 0 && (options = {}), activeRef.current && (typeof to == "number" ? router.navigate(to) : router.navigate(to, _extends3({ 59960 fromRouteId: id 59961 }, options))); 59962 }, [router, id]); 59963} 59964var START_TRANSITION = "startTransition", startTransitionImpl = React31[START_TRANSITION]; 59965function MemoryRouter(_ref3) { 59966 let { 59967 basename, 59968 children, 59969 initialEntries, 59970 initialIndex, 59971 future 59972 } = _ref3, historyRef = React31.useRef(); 59973 historyRef.current == null && (historyRef.current = createMemoryHistory({ 59974 initialEntries, 59975 initialIndex, 59976 v5Compat: !0 59977 })); 59978 let history2 = historyRef.current, [state3, setStateImpl] = React31.useState({ 59979 action: history2.action, 59980 location: history2.location 59981 }), { 59982 v7_startTransition 59983 } = future || {}, setState2 = React31.useCallback((newState) => { 59984 v7_startTransition && startTransitionImpl ? startTransitionImpl(() => setStateImpl(newState)) : setStateImpl(newState); 59985 }, [setStateImpl, v7_startTransition]); 59986 return React31.useLayoutEffect(() => history2.listen(setState2), [history2, setState2]), React31.createElement(Router, { 59987 basename, 59988 children, 59989 location: state3.location, 59990 navigationType: state3.action, 59991 navigator: history2 59992 }); 59993} 59994function Router(_ref5) { 59995 let { 59996 basename: basenameProp = "/", 59997 children = null, 59998 location: locationProp, 59999 navigationType = Action.Pop, 60000 navigator: navigator4, 60001 static: staticProp = !1 60002 } = _ref5; 60003 useInRouterContext() && invariant2(!1); 60004 let basename = basenameProp.replace(/^\/*/, "/"), navigationContext = React31.useMemo(() => ({ 60005 basename, 60006 navigator: navigator4, 60007 static: staticProp 60008 }), [basename, navigator4, staticProp]); 60009 typeof locationProp == "string" && (locationProp = parsePath3(locationProp)); 60010 let { 60011 pathname = "/", 60012 search = "", 60013 hash: hash4 = "", 60014 state: state3 = null, 60015 key = "default" 60016 } = locationProp, locationContext = React31.useMemo(() => { 60017 let trailingPathname = stripBasename(pathname, basename); 60018 return trailingPathname == null ? null : { 60019 location: { 60020 pathname: trailingPathname, 60021 search, 60022 hash: hash4, 60023 state: state3, 60024 key 60025 }, 60026 navigationType 60027 }; 60028 }, [basename, pathname, search, hash4, state3, key, navigationType]); 60029 return locationContext == null ? null : React31.createElement(NavigationContext.Provider, { 60030 value: navigationContext 60031 }, React31.createElement(LocationContext.Provider, { 60032 children, 60033 value: locationContext 60034 })); 60035} 60036var AwaitRenderStatus = (function(AwaitRenderStatus2) { 60037 return AwaitRenderStatus2[AwaitRenderStatus2.pending = 0] = "pending", AwaitRenderStatus2[AwaitRenderStatus2.success = 1] = "success", AwaitRenderStatus2[AwaitRenderStatus2.error = 2] = "error", AwaitRenderStatus2; 60038})(AwaitRenderStatus || {}), neverSettledPromise = new Promise(() => { 60039}); 60040
vendor: 13,500 bytes, lines 60041-60355
60041// ../../node_modules/react-router-dom/dist/index.js 60042function _extends4() { 60043 return _extends4 = Object.assign ? Object.assign.bind() : function(target) { 60044 for (var i = 1; i < arguments.length; i++) { 60045 var source = arguments[i]; 60046 for (var key in source) 60047 Object.prototype.hasOwnProperty.call(source, key) && (target[key] = source[key]); 60048 } 60049 return target; 60050 }, _extends4.apply(this, arguments); 60051} 60052function _objectWithoutPropertiesLoose2(source, excluded) { 60053 if (source == null) return {}; 60054 var target = {}, sourceKeys = Object.keys(source), key, i; 60055 for (i = 0; i < sourceKeys.length; i++) 60056 key = sourceKeys[i], !(excluded.indexOf(key) >= 0) && (target[key] = source[key]); 60057 return target; 60058} 60059var defaultMethod = "get", defaultEncType = "application/x-www-form-urlencoded"; 60060function isHtmlElement(object) { 60061 return object != null && typeof object.tagName == "string"; 60062} 60063function isButtonElement(object) { 60064 return isHtmlElement(object) && object.tagName.toLowerCase() === "button"; 60065} 60066function isFormElement(object) { 60067 return isHtmlElement(object) && object.tagName.toLowerCase() === "form"; 60068} 60069function isInputElement(object) { 60070 return isHtmlElement(object) && object.tagName.toLowerCase() === "input"; 60071} 60072function isModifiedEvent(event) { 60073 return !!(event.metaKey || event.altKey || event.ctrlKey || event.shiftKey); 60074} 60075function shouldProcessLinkClick(event, target) { 60076 return event.button === 0 && // Ignore everything but left clicks 60077 (!target || target === "_self") && // Let browser handle "target=_blank" etc. 60078 !isModifiedEvent(event); 60079} 60080var _formDataSupportsSubmitter = null; 60081function isFormDataSubmitterSupported() { 60082 if (_formDataSupportsSubmitter === null) 60083 try { 60084 new FormData( 60085 document.createElement("form"), 60086 // @ts-expect-error if FormData supports the submitter parameter, this will throw 60087 0 60088 ), _formDataSupportsSubmitter = !1; 60089 } catch { 60090 _formDataSupportsSubmitter = !0; 60091 } 60092 return _formDataSupportsSubmitter; 60093} 60094var supportedFormEncTypes = /* @__PURE__ */ new Set(["application/x-www-form-urlencoded", "multipart/form-data", "text/plain"]); 60095function getFormEncType(encType) { 60096 return encType != null && !supportedFormEncTypes.has(encType) ? null : encType; 60097} 60098function getFormSubmissionInfo(target, basename) { 60099 let method, action2, encType, formData, body; 60100 if (isFormElement(target)) { 60101 let attr = target.getAttribute("action"); 60102 action2 = attr ? stripBasename(attr, basename) : null, method = target.getAttribute("method") || defaultMethod, encType = getFormEncType(target.getAttribute("enctype")) || defaultEncType, formData = new FormData(target); 60103 } else if (isButtonElement(target) || isInputElement(target) && (target.type === "submit" || target.type === "image")) { 60104 let form = target.form; 60105 if (form == null) 60106 throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>'); 60107 let attr = target.getAttribute("formaction") || form.getAttribute("action"); 60108 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()) { 60109 let { 60110 name, 60111 type: type5, 60112 value 60113 } = target; 60114 if (type5 === "image") { 60115 let prefix4 = name ? name + "." : ""; 60116 formData.append(prefix4 + "x", "0"), formData.append(prefix4 + "y", "0"); 60117 } else name && formData.append(name, value); 60118 } 60119 } else { 60120 if (isHtmlElement(target)) 60121 throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">'); 60122 method = defaultMethod, action2 = null, encType = defaultEncType, body = target; 60123 } 60124 return formData && encType === "text/plain" && (body = formData, formData = void 0), { 60125 action: action2, 60126 method: method.toLowerCase(), 60127 encType, 60128 formData, 60129 body 60130 }; 60131} 60132var _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"]; 60133var START_TRANSITION2 = "startTransition", startTransitionImpl2 = React32[START_TRANSITION2]; 60134function BrowserRouter(_ref) { 60135 let { 60136 basename, 60137 children, 60138 future, 60139 window: window2 60140 } = _ref, historyRef = React32.useRef(); 60141 historyRef.current == null && (historyRef.current = createBrowserHistory({ 60142 window: window2, 60143 v5Compat: !0 60144 })); 60145 let history2 = historyRef.current, [state3, setStateImpl] = React32.useState({ 60146 action: history2.action, 60147 location: history2.location 60148 }), { 60149 v7_startTransition 60150 } = future || {}, setState2 = React32.useCallback((newState) => { 60151 v7_startTransition && startTransitionImpl2 ? startTransitionImpl2(() => setStateImpl(newState)) : setStateImpl(newState); 60152 }, [setStateImpl, v7_startTransition]); 60153 return React32.useLayoutEffect(() => history2.listen(setState2), [history2, setState2]), React32.createElement(Router, { 60154 basename, 60155 children, 60156 location: state3.location, 60157 navigationType: state3.action, 60158 navigator: history2 60159 }); 60160} 60161var isBrowser3 = typeof window < "u" && typeof window.document < "u" && typeof window.document.createElement < "u", ABSOLUTE_URL_REGEX = /^(?:[a-z][a-z0-9+.-]*:|\/\/)/i, Link3 = React32.forwardRef(function(_ref4, ref) { 60162 let { 60163 onClick, 60164 relative, 60165 reloadDocument, 60166 replace: replace2, 60167 state: state3, 60168 target, 60169 to, 60170 preventScrollReset 60171 } = _ref4, rest = _objectWithoutPropertiesLoose2(_ref4, _excluded2), { 60172 basename 60173 } = React32.useContext(NavigationContext), absoluteHref, isExternal = !1; 60174 if (typeof to == "string" && ABSOLUTE_URL_REGEX.test(to) && (absoluteHref = to, isBrowser3)) 60175 try { 60176 let currentUrl = new URL(window.location.href), targetUrl = to.startsWith("//") ? new URL(currentUrl.protocol + to) : new URL(to), path = stripBasename(targetUrl.pathname, basename); 60177 targetUrl.origin === currentUrl.origin && path != null ? to = path + targetUrl.search + targetUrl.hash : isExternal = !0; 60178 } catch { 60179 } 60180 let href = useHref(to, { 60181 relative 60182 }), internalOnClick = useLinkClickHandler(to, { 60183 replace: replace2, 60184 state: state3, 60185 target, 60186 preventScrollReset, 60187 relative 60188 }); 60189 function handleClick(event) { 60190 onClick && onClick(event), event.defaultPrevented || internalOnClick(event); 60191 } 60192 return ( 60193 // eslint-disable-next-line jsx-a11y/anchor-has-content 60194 React32.createElement("a", _extends4({}, rest, { 60195 href: absoluteHref || href, 60196 onClick: isExternal || reloadDocument ? onClick : handleClick, 60197 ref, 60198 target 60199 })) 60200 ); 60201}), NavLink = React32.forwardRef(function(_ref5, ref) { 60202 let { 60203 "aria-current": ariaCurrentProp = "page", 60204 caseSensitive = !1, 60205 className: classNameProp = "", 60206 end: end2 = !1, 60207 style: styleProp, 60208 to, 60209 children 60210 } = _ref5, rest = _objectWithoutPropertiesLoose2(_ref5, _excluded22), path = useResolvedPath(to, { 60211 relative: rest.relative 60212 }), location4 = useLocation(), routerState = React32.useContext(DataRouterStateContext), { 60213 navigator: navigator4 60214 } = React32.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; 60215 caseSensitive || (locationPathname = locationPathname.toLowerCase(), nextLocationPathname = nextLocationPathname ? nextLocationPathname.toLowerCase() : null, toPathname = toPathname.toLowerCase()); 60216 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; 60217 typeof classNameProp == "function" ? className = classNameProp({ 60218 isActive, 60219 isPending 60220 }) : className = [classNameProp, isActive ? "active" : null, isPending ? "pending" : null].filter(Boolean).join(" "); 60221 let style = typeof styleProp == "function" ? styleProp({ 60222 isActive, 60223 isPending 60224 }) : styleProp; 60225 return React32.createElement(Link3, _extends4({}, rest, { 60226 "aria-current": ariaCurrent, 60227 className, 60228 ref, 60229 style, 60230 to 60231 }), typeof children == "function" ? children({ 60232 isActive, 60233 isPending 60234 }) : children); 60235}), Form = React32.forwardRef((props, ref) => { 60236 let submit = useSubmit(); 60237 return React32.createElement(FormImpl, _extends4({}, props, { 60238 submit, 60239 ref 60240 })); 60241}), FormImpl = React32.forwardRef((_ref6, forwardedRef) => { 60242 let { 60243 reloadDocument, 60244 replace: replace2, 60245 state: state3, 60246 method = defaultMethod, 60247 action: action2, 60248 onSubmit, 60249 submit, 60250 relative, 60251 preventScrollReset 60252 } = _ref6, props = _objectWithoutPropertiesLoose2(_ref6, _excluded3), formMethod = method.toLowerCase() === "get" ? "get" : "post", formAction = useFormAction(action2, { 60253 relative 60254 }); 60255 return React32.createElement("form", _extends4({ 60256 ref: forwardedRef, 60257 method: formMethod, 60258 action: formAction, 60259 onSubmit: reloadDocument ? onSubmit : (event) => { 60260 if (onSubmit && onSubmit(event), event.defaultPrevented) return; 60261 event.preventDefault(); 60262 let submitter = event.nativeEvent.submitter, submitMethod = submitter?.getAttribute("formmethod") || method; 60263 submit(submitter || event.currentTarget, { 60264 method: submitMethod, 60265 replace: replace2, 60266 state: state3, 60267 relative, 60268 preventScrollReset 60269 }); 60270 } 60271 }, props)); 60272}); 60273var DataRouterHook2; 60274(function(DataRouterHook3) { 60275 DataRouterHook3.UseScrollRestoration = "useScrollRestoration", DataRouterHook3.UseSubmit = "useSubmit", DataRouterHook3.UseSubmitFetcher = "useSubmitFetcher", DataRouterHook3.UseFetcher = "useFetcher"; 60276})(DataRouterHook2 || (DataRouterHook2 = {})); 60277var DataRouterStateHook2; 60278(function(DataRouterStateHook3) { 60279 DataRouterStateHook3.UseFetchers = "useFetchers", DataRouterStateHook3.UseScrollRestoration = "useScrollRestoration"; 60280})(DataRouterStateHook2 || (DataRouterStateHook2 = {})); 60281function useDataRouterContext2(hookName) { 60282 let ctx = React32.useContext(DataRouterContext); 60283 return ctx || invariant2(!1), ctx; 60284} 60285function useLinkClickHandler(to, _temp) { 60286 let { 60287 target, 60288 replace: replaceProp, 60289 state: state3, 60290 preventScrollReset, 60291 relative 60292 } = _temp === void 0 ? {} : _temp, navigate = useNavigate(), location4 = useLocation(), path = useResolvedPath(to, { 60293 relative 60294 }); 60295 return React32.useCallback((event) => { 60296 if (shouldProcessLinkClick(event, target)) { 60297 event.preventDefault(); 60298 let replace2 = replaceProp !== void 0 ? replaceProp : createPath(location4) === createPath(path); 60299 navigate(to, { 60300 replace: replace2, 60301 state: state3, 60302 preventScrollReset, 60303 relative 60304 }); 60305 } 60306 }, [location4, navigate, path, replaceProp, state3, target, to, preventScrollReset, relative]); 60307} 60308function validateClientSideSubmission() { 60309 if (typeof document > "u") 60310 throw new Error("You are calling submit during the server render. Try calling submit within a `useEffect` or callback instead."); 60311} 60312function useSubmit() { 60313 let { 60314 router 60315 } = useDataRouterContext2(DataRouterHook2.UseSubmit), { 60316 basename 60317 } = React32.useContext(NavigationContext), currentRouteId = useRouteId(); 60318 return React32.useCallback(function(target, options) { 60319 options === void 0 && (options = {}), validateClientSideSubmission(); 60320 let { 60321 action: action2, 60322 method, 60323 encType, 60324 formData, 60325 body 60326 } = getFormSubmissionInfo(target, basename); 60327 router.navigate(options.action || action2, { 60328 preventScrollReset: options.preventScrollReset, 60329 formData, 60330 body, 60331 formMethod: options.method || method, 60332 formEncType: options.encType || encType, 60333 replace: options.replace, 60334 state: options.state, 60335 fromRouteId: currentRouteId 60336 }); 60337 }, [router, basename, currentRouteId]); 60338} 60339function useFormAction(action2, _temp2) { 60340 let { 60341 relative 60342 } = _temp2 === void 0 ? {} : _temp2, { 60343 basename 60344 } = React32.useContext(NavigationContext), routeContext = React32.useContext(RouteContext); 60345 routeContext || invariant2(!1); 60346 let [match3] = routeContext.matches.slice(-1), path = _extends4({}, useResolvedPath(action2 || ".", { 60347 relative 60348 })), location4 = useLocation(); 60349 if (action2 == null && (path.search = location4.search, match3.route.index)) { 60350 let params = new URLSearchParams(path.search); 60351 params.delete("index"), path.search = params.toString() ? "?" + params.toString() : ""; 60352 } 60353 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); 60354} 60355
60356// src/router/router.tsx 60357var { document: document10 } = scope, getBase = () => `${document10.location.pathname}?`, useNavigate2 = () => { 60358 let navigate = useNavigate(); 60359 return (0, import_react20.useCallback)((to, { plain, ...options } = {}) => { 60360 if (typeof to == "string" && to.startsWith("#")) { 60361 to === "#" ? navigate(document10.location.search) : document10.location.hash = to; 60362 return; 60363 } 60364 if (typeof to == "string") { 60365 let target = plain ? to : `?path=${to}`; 60366 return navigate(target, options); 60367 } 60368 if (typeof to == "number") 60369 return navigate(to); 60370 }, []); 60371}, Link4 = ({ to, children, ...rest }) => import_react20.default.createElement(Link3, { to: `${getBase()}path=${to}`, ...rest }, children); 60372Link4.displayName = "QueryLink"; 60373var Location = ({ children }) => { 60374 let location4 = useLocation(), { path, singleStory } = queryFromLocation(location4), { viewMode, storyId, refId } = parsePath2(path); 60375 return import_react20.default.createElement(import_react20.default.Fragment, null, children({ 60376 path: path || "/", 60377 location: location4, 60378 viewMode, 60379 storyId, 60380 refId, 60381 singleStory: singleStory === "true" 60382 })); 60383}; 60384Location.displayName = "QueryLocation"; 60385function Match({ 60386 children, 60387 path: targetPath, 60388 startsWith: startsWith4 = !1 60389}) { 60390 return import_react20.default.createElement(Location, null, ({ path: urlPath, ...rest }) => children({ 60391 match: getMatch(urlPath, targetPath, startsWith4), 60392 ...rest 60393 })); 60394} 60395Match.displayName = "QueryMatch"; 60396function Route2(input2) { 60397 let { children, ...rest } = input2; 60398 return rest.startsWith === void 0 && (rest.startsWith = !1), import_react20.default.createElement(Match, { ...rest }, ({ match: match3 }) => match3 ? children : null); 60399} 60400Route2.displayName = "Route"; 60401var LocationProvider = (...args) => BrowserRouter(...args), BaseLocationProvider = (...args) => Router(...args), MemoryRouter2 = (...args) => MemoryRouter(...args); 60402
60403// src/manager-api/modules/url.ts 60404init_dist(); 60405var import_picoquery5 = __toESM(require_main(), 1); 60406var parseBoolean = (value) => { 60407 if (value === "true" || value === "1") 60408 return !0; 60409 if (value === "false" || value === "0") 60410 return !1; 60411}, parseSerializedParam = (param) => Object.fromEntries( 60412 param.split(";").map((pair) => pair.split(":")).map(([key, value]) => [key, encodeURIComponent(value)]).filter(([key, value]) => key && value) 60413), mergeSerializedParams = (params, extraParams) => { 60414 let pairs = parseSerializedParam(params), extra = parseSerializedParam(extraParams); 60415 return Object.entries({ ...pairs, ...extra }).map(([key, value]) => `${key}:${value}`).join(";"); 60416}, prevParams, initialUrlSupport = ({ 60417 state: { location: location4, path, viewMode, storyId: storyIdFromUrl }, 60418 singleStory 60419}) => { 60420 let { 60421 full, 60422 panel, 60423 nav, 60424 shortcuts, 60425 addonPanel, 60426 tabs, 60427 path: queryPath, 60428 ...otherParams 60429 // the rest gets passed to the iframe 60430 } = queryFromLocation(location4), navSize, bottomPanelHeight, rightPanelWidth; 60431 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); 60432 let layout = { 60433 navSize, 60434 bottomPanelHeight, 60435 rightPanelWidth, 60436 panelPosition: ["right", "bottom"].includes(panel) ? panel : void 0, 60437 showTabs: parseBoolean(tabs) 60438 }, ui = { 60439 enableShortcuts: parseBoolean(shortcuts) 60440 }, selectedPanel = addonPanel || void 0, storyId = storyIdFromUrl, customQueryParams = dequal(prevParams, otherParams) ? prevParams : otherParams; 60441 return prevParams = customQueryParams, { viewMode, layout, ui, selectedPanel, location: location4, path, customQueryParams, storyId }; 60442}, init13 = (moduleArgs) => { 60443 let { store: store2, navigate, provider, fullAPI } = moduleArgs, navigateTo = (path, queryParams = {}, options = {}) => { 60444 let params = Object.entries(queryParams).filter(([, v]) => v).sort(([a3], [b]) => a3 < b ? -1 : 1).map(([k, v]) => `${k}=${v}`), to = [path, ...params].join("&"); 60445 return navigate(to, options); 60446 }, api = { 60447 getStoryHrefs(storyId, options = {}) { 60448 let { id: currentStoryId, refId: currentRefId } = fullAPI.getCurrentStoryData() ?? {}, isCurrentStory = storyId === currentStoryId && options.refId === currentRefId, { customQueryParams, location: location4, refs } = store2.getState(), { 60449 base, 60450 inheritArgs = isCurrentStory, 60451 inheritGlobals = !0, 60452 queryParams = {}, 60453 refId, 60454 viewMode = "story" 60455 } = options; 60456 if (refId && !refs[refId]) 60457 throw new Error(`Invalid refId: ${refId}`); 60458 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, { 60459 nesting: !0, 60460 nestingSyntax: "js" 60461 }), customPreviewParams = (0, import_picoquery5.stringify)(omit(otherParams, ["id", "viewMode"]), { 60462 nesting: !0, 60463 nestingSyntax: "js" 60464 }); 60465 return argsParam = argsParam && `&args=${argsParam}`, globalsParam = globalsParam && `&globals=${globalsParam}`, customManagerParams = customManagerParams && `&${customManagerParams}`, customPreviewParams = customPreviewParams && `&${customPreviewParams}`, { 60466 managerHref: `${managerBase}?path=/${viewMode}/${refId ? `${refId}_` : ""}${storyId}${argsParam}${globalsParam}${customManagerParams}`, 60467 previewHref: `${previewBase}?id=${storyId}&viewMode=${viewMode}${refParam}${argsParam}${refId ? "" : globalsParam}${customPreviewParams}` 60468 }; 60469 }, 60470 getQueryParam(key) { 60471 let { customQueryParams } = store2.getState(); 60472 return customQueryParams ? customQueryParams[key] : void 0; 60473 }, 60474 getUrlState() { 60475 let { location: location4, path, customQueryParams, storyId, url, viewMode } = store2.getState(); 60476 return { 60477 path, 60478 hash: location4.hash ?? "", 60479 queryParams: customQueryParams, 60480 storyId, 60481 url, 60482 viewMode 60483 }; 60484 }, 60485 setQueryParams(input2) { 60486 let { customQueryParams } = store2.getState(), queryParams = {}, update2 = { 60487 ...customQueryParams, 60488 ...Object.entries(input2).reduce((acc, [key, value]) =>
60488 (value !== null && (acc[key] = value), acc), queryParams) 60489 }; 60490 dequal(customQueryParams, update2) || (store2.setState({ customQueryParams: update2 }), provider.channel?.emit(UPDATE_QUERY_PARAMS, update2)); 60491 }, 60492 applyQueryParams(input2, options) { 60493 let { path, hash: hash4 = "", queryParams } = api.getUrlState(); 60494 navigateTo(`${path}${hash4}`, { ...queryParams, ...input2 }, options), api.setQueryParams(input2); 60495 }, 60496 navigateUrl(url, options) { 60497 navigate(url, { plain: !0, ...options }); 60498 } 60499 }, updateArgsParam = () => { 60500 let { path, hash: hash4 = "", queryParams, viewMode } = api.getUrlState(); 60501 if (viewMode !== "story") 60502 return; 60503 let currentStory = fullAPI.getCurrentStoryData(); 60504 if (currentStory?.type !== "story") 60505 return; 60506 let { args, initialArgs } = currentStory, argsString = buildArgsParam(initialArgs, args); 60507 navigateTo(`${path}${hash4}`, { ...queryParams, args: argsString }, { replace: !0 }), api.setQueryParams({ args: argsString }); 60508 }; 60509 provider.channel?.on(SET_CURRENT_STORY, () => updateArgsParam()); 60510 let handleOrId; 60511 return provider.channel?.on(STORY_ARGS_UPDATED, () => { 60512 "requestIdleCallback" in scope.window ? (handleOrId && scope.window.cancelIdleCallback(handleOrId), handleOrId = scope.window.requestIdleCallback(updateArgsParam, { timeout: 1e3 })) : (handleOrId && clearTimeout(handleOrId), setTimeout(updateArgsParam, 100)); 60513 }), provider.channel?.on(GLOBALS_UPDATED, ({ userGlobals, initialGlobals: initialGlobals5 }) => { 60514 let { path, hash: hash4 = "", queryParams } = api.getUrlState(), globalsString = buildArgsParam(initialGlobals5, merge_default(initialGlobals5, userGlobals)); 60515 navigateTo(`${path}${hash4}`, { ...queryParams, globals: globalsString }, { replace: !0 }), api.setQueryParams({ globals: globalsString }); 60516 }), provider.channel?.on(NAVIGATE_URL, (url, options) => { 60517 api.navigateUrl(url, options); 60518 }), { 60519 api, 60520 state: initialUrlSupport(moduleArgs)
vendor: 302 bytes, lines 60520-60533
60520 60521 }; 60522}; 60523 60524// src/manager-api/modules/versions.ts 60525var versions_exports = {}; 60526__export(versions_exports, { 60527 init: () => init14 60528}); 60529init_dist(); 60530var import_memoizerific9 = __toESM(require_memoizerific(), 1), import_semver = __toESM(require_semver2(), 1); 60531 60532// src/manager-api/version.ts 60533var version = "10.
605333.5
vendor: 3,436 bytes, lines 60533-60606
60533"; 60534 60535// src/manager-api/modules/versions.ts 60536var { VERSIONCHECK } = scope, getVersionCheckData = (0, import_memoizerific9.default)(1)(() => { 60537 try { 60538 return { ...JSON.parse(VERSIONCHECK).data || {} }; 60539 } catch { 60540 return {}; 60541 } 60542}), normalizeRendererName = (renderer) => renderer.includes("vue") ? "vue" : renderer, init14 = ({ store: store2 }) => { 60543 let { dismissedVersionNotification } = store2.getState(), state3 = { 60544 versions: { 60545 current: { 60546 version 60547 }, 60548 ...getVersionCheckData() 60549 }, 60550 dismissedVersionNotification 60551 }, api = { 60552 getCurrentVersion: () => { 60553 let { 60554 versions: { current } 60555 } = store2.getState(); 60556 return current; 60557 }, 60558 getLatestVersion: () => { 60559 let { 60560 versions: { latest, next: next2, current } 60561 } = store2.getState(); 60562 return current && import_semver.default.prerelease(current.version) && next2 ? latest && import_semver.default.gt(latest.version, next2.version) ? latest : next2 : latest; 60563 }, 60564 // TODO: Move this to it's own "info" module later 60565 getDocsUrl: ({ asset, subpath = asset, versioned, renderer, ref = "ui" }) => { 60566 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"}/`; 60567 if (asset && activeVersion) 60568 url += `${import_semver.default.major(activeVersion)}.${import_semver.default.minor(activeVersion)}/`; 60569 else if (versioned && activeVersion && latestVersion) { 60570 let versionDiff = import_semver.default.diff(latestVersion, activeVersion); 60571 versionDiff === "patch" || versionDiff === null || (url += `${import_semver.default.major(activeVersion)}.${import_semver.default.minor(activeVersion)}/`); 60572 } 60573 let [cleanedSubpath, hash4] = subpath?.split("#") || []; 60574 if (cleanedSubpath && (url += asset ? cleanedSubpath : `${cleanedSubpath}/`), renderer && typeof scope.STORYBOOK_RENDERER < "u") { 60575 let rendererName = scope.STORYBOOK_RENDERER; 60576 rendererName && (url += `?renderer=${normalizeRendererName(rendererName)}`); 60577 } 60578 return ref && (url += `${url.includes("?") ? "&" : "?"}ref=${ref}`), hash4 && (url += `#${hash4}`), url; 60579 }, 60580 versionUpdateAvailable: () => { 60581 let latest = api.getLatestVersion(), current = api.getCurrentVersion(); 60582 if (latest) { 60583 if (!latest.version || !current.version) 60584 return !0; 60585 let actualCurrent = !!import_semver.default.prerelease(current.version) ? `${import_semver.default.major(current.version)}.${import_semver.default.minor(current.version)}.${import_semver.default.patch( 60586 current.version 60587 )}` : current.version, diff2 = import_semver.default.diff(actualCurrent, latest.version); 60588 return import_semver.default.gt(latest.version, actualCurrent) && diff2 !== "patch" && !diff2.includes("pre"); 60589 } 60590 return !1; 60591 } 60592 }; 60593 return { init: async () => { 60594 let { versions = {} } = store2.getState(), { latest, next: next2 } = getVersionCheckData(); 60595 await store2.setState({ 60596 versions: { ...versions, latest, next: next2 } 60597 }); 60598 }, state: state3, api }; 60599}; 60600 60601// src/manager-api/modules/whatsnew.tsx 60602var whatsnew_exports = {}; 60603__export(whatsnew_exports, { 60604 init: () => init15 60605}); 60606var import_react2
vendor: 1,652 bytes, lines 60606-60638
606061 = __toESM(require_react(), 1); 60607init_dist(); 60608var WHATS_NEW_NOTIFICATION_ID = "whats-new", StorybookIcon2 = ({ color: color2 = "currentColor", size = 14 }) => import_react21.default.createElement( 60609 "svg", 60610 { 60611 width: size, 60612 height: size, 60613 viewBox: "0 0 14 14", 60614 fill: "none", 60615 xmlns: "http://www.w3.org/2000/svg" 60616 }, 60617 import_react21.default.createElement( 60618 "path", 60619 { 60620 fillRule: "evenodd", 60621 clipRule: "evenodd", 60622 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", 60623 fill: color2 60624 } 60625 ) 60626), init15 = ({ fullAPI, store: store2, provider }) => { 60627 let state3 = { 60628 whatsNewData: void 0 60629 }; 60630 function setWhatsNewState(newState) { 60631 store2.setState({ whatsNewData: newState }), state3.whatsNewData = newState; 60632 } 60633 let api = { 60634 isWhatsNewUnread() { 60635 return state3.whatsNewData?.status === "SUCCESS" && !state3.whatsNewData.postIsRead; 60636 }, 60637 whatsNewHasBeenRead() { 60638 state3.whatsNewData?.status === "SUCCESS" && (setWhatsNewCache({ lastReadPost: state3.
60638whatsNewData.url }), setWhatsNewState({ ...state3.whatsNewData, postIsRead: !0 }), fullAPI.clearNotification(WHATS_NEW_NOTIFICATION_ID)); 60639 }, 60640 toggleWhatsNewNotifications() { 60641 state3.whatsNewData?.status === "SUCCESS" && (setWhatsNewState({ 60642 ...state3.whatsNewData, 60643 disableWhatsNewNotifications: !state3.whatsNewData.disableWhatsNewNotifications 60644 }), provider.channel?.emit(TOGGLE_WHATS_NEW_NOTIFICATIONS, { 60645 disableWhatsNewNotifications: state3.whatsNewData.disableWhatsNewNotifications 60646 })); 60647 } 60648 }; 60649 function getLatestWhatsNewPost() { 60650 return provider.channel?.emit(REQUEST_WHATS_NEW_DATA), new Promise( 60651 (resolve) => provider.channel?.once( 60652 RESULT_WHATS_NEW_DATA, 60653 ({ data }) => resolve(data) 60654 ) 60655 ); 60656 } 60657 function setWhatsNewCache(cache) { 60658 provider.channel?.emit(SET_WHATS_NEW_CACHE, cache); 60659 } 60660 return { init: async () => { 60661 if (scope.CONFIG_TYPE !== "DEVELOPMENT") 60662 return; 60663 let whatsNewData = await getLatestWhatsNewPost(); 60664 setWhatsNewState(whatsNewData); 60665 let urlState = fullAPI.getUrlState(); 60666 !(urlState?.path === "/onboarding" || urlState.queryParams?.onboarding === "true") && whatsNewData.status === "SUCCESS" && !whatsNewData.disableWhatsNewNotifications && whatsNewData.showNotification && fullAPI.addNotification({ 60667 id: WHATS_NEW_NOTIFICATION_ID, 60668 link: "/settings/whats-new", 60669 content: { 60670 headline: whatsNewData.title, 60671 subHeadline: "Learn what's new in Storybook" 60672 }, 60673 icon: import_react21
vendor: 350 bytes, lines 60673-60685
60673.default.createElement(StorybookIcon2, null), 60674 onClear({ dismissed }) { 60675 dismissed && setWhatsNewCache({ lastDismissedPost: whatsNewData.url }); 60676 } 60677 }); 60678 }, state: state3, api }; 60679}; 60680 60681// src/manager-api/store.ts 60682var import_store22 = __toESM(require_store2(), 1); 60683 60684// src/manager-api/lib/store-setup.ts 60685var store_setup_default = (_
60685) => { 60686 _.fn("set", function(key, data) { 60687 return _.set( 60688 // @ts-expect-error('this' implicitly has type 'any') 60689 this._area, 60690 // @ts-expect-error('this' implicitly has type 'any') 60691 this._in(key), 60692 stringify(data, { maxDepth: 50 }) 60693 ); 60694 }), _.fn("get", function(key, alt) { 60695 let value = _.get(this._area, this._in(key)); 60696 return value !== null ? parse(value) : alt || value; 60697 }); 60698}; 60699
60700// src/manager-api/store.ts 60701store_setup_default(import_store22.default._); 60702var STORAGE_KEY = "@storybook/manager/store"; 60703function get3(storage) { 60704 return storage.get(STORAGE_KEY) || {}; 60705} 60706function set2(storage, value) { 60707 return storage.set(STORAGE_KEY, value); 60708} 60709function update(storage, patch) { 60710 let previous = get3(storage); 60711 return set2(storage, { ...previous, ...patch }); 60712} 60713var Store = class { 60714 constructor({ allowPersistence, setState: setState2, getState: getState3 }) { 60715 this.upstreamPersistence = allowPersistence ?? !0, this.upstreamSetState = setState2, this.upstreamGetState = getState3; 60716 } 60717 // The assumption is that this will be called once, to initialize the React state 60718 // when the module is instantiated 60719 getInitialState(base) { 60720 return { ...base, ...get3(import_store22.default.local), ...get3(import_store22.default.session) }; 60721 } 60722 getState() { 60723 return this.upstreamGetState(); 60724 } 60725 async setState(inputPatch, cbOrOptions, inputOptions) { 60726 let callback, options; 60727 typeof cbOrOptions == "function" ? (callback = cbOrOptions, options = inputOptions) : options = cbOrOptions; 60728 let { persistence = "none" } = options || {}, patch = {}, delta = {}; 60729 typeof inputPatch == "function" ? patch = (state3) => (delta = inputPatch(state3), delta) : (patch = inputPatch, delta = patch); 60730 let newState = await new Promise((resolve) => { 60731 this.upstreamSetState(patch, () => { 60732 resolve(this.getState()); 60733 }); 60734 }); 60735 if (persistence !== "none" && this.upstreamPersistence) { 60736 let storage = persistence === "session" ? import_store22.default.session : import_store22.default.local; 60737 await update(storage, delta);
vendor: 1,161 bytes, lines 60738-60767
60738 } 60739 return callback && callback(newState), newState; 60740 } 60741}; 60742 60743// src/manager-api/lib/request-response.ts 60744var RequestResponseError = class extends Error { 60745 constructor(message, payload) { 60746 super(message); 60747 this.payload = void 0; 60748 this.payload = payload; 60749 } 60750}, experimental_requestResponse = (channel, requestEvent, responseEvent, payload, timeout = 5e3) => { 60751 let timeoutId; 60752 return new Promise((resolve, reject) => { 60753 let request = { 60754 id: Math.random().toString(16).slice(2), 60755 payload 60756 }, responseHandler = (response) => { 60757 response.id === request.id && (clearTimeout(timeoutId), channel.off(responseEvent, responseHandler), response.success ? resolve(response.payload) : reject(new RequestResponseError(response.error, response.payload))); 60758 }; 60759 channel.emit(requestEvent, request), channel.on(responseEvent, responseHandler), timeoutId = setTimeout(() => { 60760 channel.off(responseEvent, responseHandler), reject(new RequestResponseError("Timed out waiting for response")); 60761 }, timeout); 60762 }); 60763}; 60764 60765// src/manager-api/root.tsx 60766var { ActiveTabs: ActiveTabs2 } = layout_exports; 60767var ManagerContext = createContext
vendor: 5,975 bytes, lines 60767-60907
607674({ api: void 0, state: initial_state_default({}) }), combineParameters2 = (...parameterSets) => noArrayMerge({}, ...parameterSets), ManagerProvider = class extends import_react22.Component { 60768 constructor(props) { 60769 super(props); 60770 this.api = {}; 60771 this.initModules = () => { 60772 this.modules.forEach((module2) => { 60773 "init" in module2 && module2.init(); 60774 }); 60775 }; 60776 let { 60777 location: location4, 60778 path, 60779 refId, 60780 viewMode = props.docsOptions.docsMode ? "docs" : props.viewMode, 60781 singleStory, 60782 storyId, 60783 docsOptions, 60784 navigate 60785 } = props, store2 = new Store({ 60786 getState: () => this.state, 60787 setState: (stateChange, callback) => (this.setState(stateChange, () => callback(this.state)), this.state) 60788 }), routeData = { location: location4, path, viewMode, singleStory, storyId, refId }, optionsData = { docsOptions }; 60789 this.state = store2.getInitialState(initial_state_default({ ...routeData, ...optionsData })); 60790 let apiData = { 60791 navigate, 60792 store: store2, 60793 provider: props.provider 60794 }; 60795 this.modules = [ 60796 provider_exports, 60797 channel_exports, 60798 addons_exports, 60799 layout_exports, 60800 notifications_exports, 60801 settings_exports, 60802 shortcuts_exports, 60803 stories_exports, 60804 refs_exports, 60805 globals_exports, 60806 url_exports, 60807 versions_exports, 60808 whatsnew_exports, 60809 open_in_editor_exports 60810 ].map( 60811 (m3) => m3.init({ ...routeData, ...optionsData, ...apiData, state: this.state, fullAPI: this.api }) 60812 ); 60813 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)); 60814 this.state = state3, this.api = api; 60815 } 60816 static getDerivedStateFromProps(props, state3) { 60817 return state3.path !== props.path ? { 60818 ...state3, 60819 location: props.location, 60820 path: props.path, 60821 refId: props.refId, 60822 viewMode: props.viewMode, 60823 storyId: props.storyId 60824 } : null; 60825 } 60826 shouldComponentUpdate(nextProps, nextState) { 60827 let prevProps = this.props, prevState = this.state; 60828 return prevProps.path !== nextProps.path || !isEqual(prevState, nextState); 60829 } 60830 render() { 60831 let { children } = this.props, value = { 60832 state: this.state, 60833 api: this.api 60834 }; 60835 return import_react22.default.createElement(EffectOnMount, { effect: this.initModules }, import_react22.default.createElement(ManagerContext.Provider, { value }, import_react22.default.createElement(ManagerConsumer, null, children))); 60836 } 60837}; 60838ManagerProvider.displayName = "Manager"; 60839var EffectOnMount = ({ children, effect: effect4 }) => (import_react22.default.useEffect(effect4, []), children), defaultFilter = (c) => c; 60840function ManagerConsumer({ 60841 // @ts-expect-error (Converted from ts-ignore) 60842 filter = defaultFilter, 60843 children 60844}) { 60845 let managerContext = (0, import_react22.useContext)(ManagerContext), renderer = (0, import_react22.useRef)(children), filterer = (0, import_react22.useRef)(filter); 60846 if (typeof renderer.current != "function") 60847 return import_react22.default.createElement(import_react22.Fragment, null, renderer.current); 60848 let comboData = filterer.current(managerContext), comboDataArray = (0, import_react22.useMemo)(() => [...Object.entries(comboData).reduce((acc, keyval) => acc.concat(keyval), [])], [managerContext.state]); 60849 return (0, import_react22.useMemo)(() => { 60850 let Child = renderer.current; 60851 return import_react22.default.createElement(Child, { ...comboData }); 60852 }, comboDataArray); 60853} 60854function useStorybookState() { 60855 let { state: state3 } = (0, import_react22.useContext)(ManagerContext); 60856 return state3; 60857} 60858function useStorybookApi() { 60859 let { api } = (0, import_react22.useContext)(ManagerContext); 60860 return api; 60861} 60862function orDefault(fromStore, defaultState) { 60863 return typeof fromStore > "u" ? defaultState : fromStore; 60864} 60865var useChannel2 = (eventMap3, deps = []) => { 60866 let api = useStorybookApi(); 60867 return (0, import_react22.useEffect)(() => (Object.entries(eventMap3).forEach(([type5, listener]) => api.on(type5, listener)), () => { 60868 Object.entries(eventMap3).forEach(([type5, listener]) => api.off(type5, listener)); 60869 }), deps), api.emit; 60870}; 60871function useStoryPrepared(storyId) { 60872 return useStorybookApi().isPrepared(storyId); 60873} 60874function useParameter2(parameterKey, defaultValue) { 60875 let api = useStorybookApi(), [parameter, setParameter] = (0, import_react22.useState)(api.getCurrentParameter(parameterKey)), handleParameterChange = (0, import_react22.useCallback)(() => { 60876 let newParameter = api.getCurrentParameter(parameterKey); 60877 setParameter(newParameter); 60878 }, [api, parameterKey]); 60879 return useChannel2( 60880 { 60881 [STORY_PREPARED]: handleParameterChange, 60882 [DOCS_PREPARED]: handleParameterChange 60883 }, 60884 [handleParameterChange] 60885 ), orDefault(parameter, defaultValue); 60886} 60887globalThis.STORYBOOK_ADDON_STATE = {}; 60888var { STORYBOOK_ADDON_STATE } = globalThis; 60889function useSharedState(stateId, defaultState) { 60890 let api = useStorybookApi(), existingState = api.getAddonState(stateId) || STORYBOOK_ADDON_STATE[stateId], state3 = orDefault( 60891 existingState, 60892 STORYBOOK_ADDON_STATE[stateId] ? STORYBOOK_ADDON_STATE[stateId] : defaultState 60893 ), quicksync = !1; 60894 state3 === defaultState && defaultState !== void 0 && (STORYBOOK_ADDON_STATE[stateId] = defaultState, quicksync = !0), (0, import_react22.useEffect)(() => { 60895 quicksync && api.setAddonState(stateId, defaultState); 60896 }, [quicksync]); 60897 let setState2 = (0, import_react22.useCallback)( 60898 async (s3, options) => { 60899 await api.setAddonState(stateId, s3, options); 60900 let result = api.getAddonState(stateId); 60901 return STORYBOOK_ADDON_STATE[stateId] = result, result; 60902 }, 60903 [api, stateId] 60904 ), allListeners = (0, import_react22.useMemo)(() => { 60905 let stateChangeHandlers = { 60906 [`${SHARED_STATE_CHANGED}-client-${stateId}`]: setState2, 60907 [`${SHARED_STATE_SET}
60907-client-${stateId}`]: setState2 60908 }, stateInitializationHandlers = { 60909 [SET_STORIES]: async () => { 60910 let currentState = api.getAddonState(stateId); 60911 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)); 60912 }, 60913 [STORY_CHANGED]: () => { 60914 let currentState = api.getAddonState(stateId); 60915 currentState !== void 0 && api.emit(`${SHARED_STATE_SET}-manager-${stateId}`, currentState); 60916 } 60917 }; 60918 return { 60919 ...stateChangeHandlers, 60920 ...stateInitializationHandlers 60921 }; 60922 }, [stateId]), emit = useChannel2(allListeners), stateSetter = (0, import_react22.useCallback)( 60923 async (newStateOrMerger, options) => { 60924 await setState2(newStateOrMerger, options); 60925 let result = api.getAddonState(stateId); 60926 emit(`${SHARED_STATE_CHANGED}-manager-${stateId}`, result); 60927 }, 60928 [api, emit, setState2, stateId] 60929 ); 60930 return [state3, stateSetter]; 60931} 60932function useAddonState(addonId, defaultState) { 60933 return useSharedState(addonId, defaultState); 60934} 60935function useArgs2() { 60936 let { getCurrentStoryData, updateStoryArgs, resetStoryArgs } = useStorybookApi(), data = getCurrentStoryData(), args = data?.type === "story" ? data.args : {}, initialArgs = data?.type === "story" ? data.initialArgs : {}, updateArgs = (0, import_react22.useCallback)( 60937 (newArgs) => updateStoryArgs(data, newArgs), 60938 [data, updateStoryArgs] 60939 ), resetArgs = (0, import_react22
vendor: 4,631 bytes, lines 60939-61055
60939.useCallback)( 60940 (argNames) => resetStoryArgs(data, argNames), 60941 [data, resetStoryArgs] 60942 ); 60943 return [args, updateArgs, resetArgs, initialArgs]; 60944} 60945function useGlobals2() { 60946 let api = useStorybookApi(); 60947 return [api.getGlobals(), api.updateGlobals, api.getStoryGlobals(), api.getUserGlobals()]; 60948} 60949function useGlobalTypes() { 60950 return useStorybookApi().getGlobalTypes(); 60951} 60952function useCurrentStory() { 60953 let { getCurrentStoryData } = useStorybookApi(); 60954 return getCurrentStoryData(); 60955} 60956function useArgTypes() { 60957 let current = useCurrentStory(); 60958 return current?.type === "story" && current.argTypes || {}; 60959} 60960var typesX = Addon_TypesEnum; 60961 60962// src/shared/universal-store/mock.ts 60963init_esm(); 60964var MockUniversalStore = class _MockUniversalStore extends UniversalStore { 60965 constructor(options, testUtils) { 60966 UniversalStore.isInternalConstructing = !0, super( 60967 { ...options, leader: !0 }, 60968 { channel: new Channel({}), environment: UniversalStore.Environment.MOCK } 60969 ), 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)); 60970 } 60971 /** Create a mock universal store. This is just an alias for the constructor */ 60972 static create(options, testUtils) { 60973 return new _MockUniversalStore(options, testUtils); 60974 } 60975 unsubscribeAll() { 60976 if (!this.testUtils) 60977 throw new Error( 60978 dedent`Cannot call unsubscribeAll on a store that does not have testUtils. 60979 Please provide testUtils as the second argument when creating the store.` 60980 ); 60981 let callReturnedUnsubscribeFn = (result) => { 60982 try { 60983 result.value(); 60984 } catch { 60985 } 60986 }; 60987 this.subscribe.mock?.results.forEach(callReturnedUnsubscribeFn), this.onStateChange.mock?.results.forEach(callReturnedUnsubscribeFn); 60988 } 60989}; 60990 60991// src/shared/test-provider-store/index.ts 60992var UNIVERSAL_TEST_PROVIDER_STORE_OPTIONS = { 60993 id: "storybook/test-provider", 60994 leader: !0, 60995 initialState: {} 60996}; 60997function createTestProviderStore({ 60998 universalTestProviderStore: universalTestProviderStore2, 60999 useUniversalStore: useUniversalStore2 61000}) { 61001 let baseStore = { 61002 settingsChanged: () => { 61003 universalTestProviderStore2.untilReady().then(() => { 61004 universalTestProviderStore2.send({ type: "settings-changed" }); 61005 }); 61006 }, 61007 onRunAll: (listener) => universalTestProviderStore2.subscribe("run-all", listener), 61008 onClearAll: (listener) => universalTestProviderStore2.subscribe("clear-all", listener) 61009 }, fullTestProviderStore2 = { 61010 ...baseStore, 61011 getFullState: universalTestProviderStore2.getState, 61012 setFullState: universalTestProviderStore2.setState, 61013 onSettingsChanged: (listener) => universalTestProviderStore2.subscribe("settings-changed", listener), 61014 runAll: async () => { 61015 await universalTestProviderStore2.untilReady(), universalTestProviderStore2.send({ type: "run-all" }); 61016 }, 61017 clearAll: async () => { 61018 await universalTestProviderStore2.untilReady(), universalTestProviderStore2.send({ type: "clear-all" }); 61019 } 61020 }, getTestProviderStoreById2 = (testProviderId) => { 61021 let getStateForTestProvider = () => universalTestProviderStore2.getState()[testProviderId] ?? "test-provider-state:pending", setStateForTestProvider = (state3) => { 61022 universalTestProviderStore2.untilReady().then(() => { 61023 universalTestProviderStore2.setState((currentState) => ({ 61024 ...currentState, 61025 [testProviderId]: state3 61026 })); 61027 }); 61028 }; 61029 return { 61030 ...baseStore, 61031 testProviderId, 61032 getState: getStateForTestProvider, 61033 setState: setStateForTestProvider, 61034 runWithState: async (callback) => { 61035 setStateForTestProvider("test-provider-state:running"); 61036 try { 61037 await callback(), setStateForTestProvider("test-provider-state:succeeded"); 61038 } catch { 61039 setStateForTestProvider("test-provider-state:crashed"); 61040 } 61041 } 61042 }; 61043 }; 61044 return useUniversalStore2 ? { 61045 getTestProviderStoreById: getTestProviderStoreById2, 61046 fullTestProviderStore: fullTestProviderStore2, 61047 universalTestProviderStore: universalTestProviderStore2, 61048 useTestProviderStore: (selector) => useUniversalStore2(universalTestProviderStore2, selector)[0] 61049 } : { 61050 getTestProviderStoreById: getTestProviderStoreById2, 61051 fullTestProviderStore: fullTestProviderStore2, 61052 universalTestProviderStore: universalTestProviderStore2 61053 }; 61054} 61055
vendor: 541 bytes, lines 61056-61074
61056// src/manager-api/stores/test-provider.ts 61057var testProviderStore = createTestProviderStore({ 61058 universalTestProviderStore: UniversalStore.create({ 61059 ...UNIVERSAL_TEST_PROVIDER_STORE_OPTIONS, 61060 leader: globalThis.CONFIG_TYPE === "PRODUCTION" 61061 }), 61062 useUniversalStore 61063}), { 61064 fullTestProviderStore, 61065 getTestProviderStoreById, 61066 useTestProviderStore, 61067 universalTestProviderStore 61068} = testProviderStore; 61069 61070// src/shared/checklist-store/checklistData.state.ts 61071var initialState = { 61072 items: { 61073 accessibilityTests: { status: "open" }, 61074 a
61074utodocs: { status: "open" }, 61075 ciTests: { status: "open" }, 61076 controls: { status: "open" }, 61077 coverage: { status: "open" }, 61078 guidedTour: { status: "open" }, 61079 installA11y: { status: "open" }, 61080 installChromatic: { status: "open" }, 61081 installDocs: { status: "open" }, 61082 installVitest: { status: "open" }, 61083 mdxDocs: { status: "open" }, 61084 moreComponents: { status: "open" }, 61085 moreStories: { status: "open" }, 61086 onboardingSurvey: { status: "open" }, 61087 organizeStories: { status: "open" }, 61088 publishStorybook: { status: "open" }, 61089 renderComponent: { status: "open" }, 61090 runTests
vendor: 2,216 bytes, lines 61090-61160
61090: { status: "open" }, 61091 viewports: { status: "open" }, 61092 visualTests: { status: "open" }, 61093 whatsNewStorybook10: { status: "open" }, 61094 writeInteractions: { status: "open" } 61095 }, 61096 widget: {} 61097}; 61098 61099// src/shared/checklist-store/index.ts 61100var UNIVERSAL_CHECKLIST_STORE_OPTIONS = { 61101 id: "storybook/checklist", 61102 initialState 61103}, createChecklistStore = (universalChecklistStore2) => ({ 61104 getValue: (id) => universalChecklistStore2.getState().items[id] ?? { status: "open", mutedAt: void 0 }, 61105 accept: (id) => { 61106 universalChecklistStore2.setState((state3) => ({ 61107 ...state3, 61108 items: { ...state3.items, [id]: { ...state3.items[id], status: "accepted" } } 61109 })); 61110 }, 61111 done: (id) => { 61112 universalChecklistStore2.setState((state3) => ({ 61113 ...state3, 61114 items: { ...state3.items, [id]: { ...state3.items[id], status: "done" } } 61115 })); 61116 }, 61117 skip: (id) => { 61118 universalChecklistStore2.setState((state3) => ({ 61119 ...state3, 61120 items: { ...state3.items, [id]: { ...state3.items[id], status: "skipped" } } 61121 })); 61122 }, 61123 reset: (id) => { 61124 universalChecklistStore2.setState((state3) => ({ 61125 ...state3, 61126 items: { ...state3.items, [id]: { ...state3.items[id], status: "open" } } 61127 })); 61128 }, 61129 mute: (itemIds) => { 61130 universalChecklistStore2.setState((state3) => ({ 61131 ...state3, 61132 items: itemIds.reduce( 61133 (acc, id) => ({ ...acc, [id]: { ...state3.items[id], mutedAt: Date.now() } }), 61134 state3.items 61135 ) 61136 })); 61137 }, 61138 disable: (value) => { 61139 universalChecklistStore2.setState((state3) => ({ 61140 ...state3, 61141 widget: { ...state3.widget, disable: value }, 61142 items: Object.entries(state3.items).reduce( 61143 (acc, [id, value2]) => ({ ...acc, [id]: { ...value2, mutedAt: void 0 } }), 61144 state3.items 61145 ) 61146 })); 61147 } 61148}); 61149 61150// src/manager-api/stores/checklist.ts 61151var universalChecklistStore = UniversalStore.create({ 61152 ...UNIVERSAL_CHECKLIST_STORE_OPTIONS, 61153 leader: globalThis.CONFIG_TYPE === "PRODUCTION" 61154}), checklistStore = createChecklistStore(universalChecklistStore); 61155 61156// src/components/components/Button/Button.tsx 61157init_theming(); 61158 61159// src/components/components/Button/helpers/InteractiveTooltipWrapper.tsx 61160var import_react9
611601 = __toESM(require_react(), 1); 61161
61162// src/components/components/tooltip/TooltipNote.tsx 61163var import_react23 = __toESM(require_react(), 1); 61164init_theming(); 61165var Note = styled.div(({ theme: theme3 }) => ({ 61166 padding: "2px 6px", 61167 lineHeight: "16px", 61168 fontSize: 10, 61169 fontWeight: theme3.typography.weight.bold, 61170 color: theme3.color.lightest, 61171 boxShadow: "0 0 5px 0 rgba(0, 0, 0, 0.3)", 61172 borderRadius: 4, 61173 whiteSpace: "nowrap", 61174 pointerEvents: "none", 61175 zIndex: -1, 61176 background: theme3.base === "light" ? "rgba(60, 60, 60, 0.9)" : "rgba(0, 0, 0, 0.95)" 61177})), TooltipNote = ({ note, ...props }) => import_react23.default.createElement(Note, { ...props }, note); 61178
61179// src/components/components/tooltip/TooltipProvider.tsx 61180var import_react90 = __toESM(require_react(), 1); 61181init_client_logger(); 61182
vendor: 236 bytes, lines 61183-61186
61183// ../../node_modules/@react-aria/utils/dist/useLayoutEffect.mjs 61184var import_react24 = __toESM(require_react(), 1), $f0a04ccd8dbdd83b$export$e5c5a5f917a5871c = typeof document < "u" ? import_react24.default.useLayoutEffect : () => { 61185}; 61186
vendor: 948 bytes, lines 61187-61212
61187// ../../node_modules/@react-aria/utils/dist/useValueEffect.mjs 61188var import_react25 = __toESM(require_react(), 1); 61189function $1dbecbe27a04f9af$export$14d238f342723f25(defaultValue) { 61190 let [value, setValue] = (0, import_react25.useState)(defaultValue), currValue = (0, import_react25.useRef)(value), effect4 = (0, import_react25.useRef)(null), nextRef = (0, import_react25.useRef)(() => { 61191 if (!effect4.current) return; 61192 let newValue = effect4.current.next(); 61193 if (newValue.done) { 61194 effect4.current = null; 61195 return; 61196 } 61197 currValue.current === newValue.value ? nextRef.current() : setValue(newValue.value); 61198 }); 61199 $f0a04ccd8dbdd83b$export$e5c5a5f917a5871c(() => { 61200 currValue.current = value, effect4.current && nextRef.current(); 61201 }); 61202 let queue = (0, import_react25.useCallback)((fn4) => { 61203 effect4.current = fn4(currValue.current), nextRef.current(); 61204 }, [ 61205 nextRef 61206 ]); 61207 return [ 61208 value, 61209 queue 61210 ]; 61211} 61212
vendor: 106 bytes, lines 61213-61215
61213// ../../node_modules/@react-aria/utils/dist/useId.mjs 61214var import_react27 = __toESM(require_react(), 1); 61215
vendor: 3,422 bytes, lines 61216-61260
61216// ../../node_modules/@react-aria/ssr/dist/SSRProvider.mjs 61217var import_react26 = __toESM(require_react(), 1), $b5e257d569688ac6$var$defaultContext = { 61218 prefix: String(Math.round(Math.random() * 1e10)), 61219 current: 0 61220}, $b5e257d569688ac6$var$SSRContext = import_react26.default.createContext($b5e257d569688ac6$var$defaultContext), $b5e257d569688ac6$var$IsSSRContext = import_react26.default.createContext(!1); 61221var $b5e257d569688ac6$var$canUseDOM = !!(typeof window < "u" && window.document && window.document.createElement), $b5e257d569688ac6$var$componentIds = /* @__PURE__ */ new WeakMap(); 61222function $b5e257d569688ac6$var$useCounter(isDisabled3 = !1) { 61223 let ctx = (0, import_react26.useContext)($b5e257d569688ac6$var$SSRContext), ref = (0, import_react26.useRef)(null); 61224 if (ref.current === null && !isDisabled3) { 61225 var _React___SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED_ReactCurrentOwner, _React___SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED; 61226 let currentOwner = (_React___SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = import_react26.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; 61227 if (currentOwner) { 61228 let prevComponentValue = $b5e257d569688ac6$var$componentIds.get(currentOwner); 61229 prevComponentValue == null ? $b5e257d569688ac6$var$componentIds.set(currentOwner, { 61230 id: ctx.current, 61231 state: currentOwner.memoizedState 61232 }) : currentOwner.memoizedState !== prevComponentValue.state && (ctx.current = prevComponentValue.id, $b5e257d569688ac6$var$componentIds.delete(currentOwner)); 61233 } 61234 ref.current = ++ctx.current; 61235 } 61236 return ref.current; 61237} 61238function $b5e257d569688ac6$var$useLegacySSRSafeId(defaultId) { 61239 let ctx = (0, import_react26.useContext)($b5e257d569688ac6$var$SSRContext), counter = $b5e257d569688ac6$var$useCounter(!!defaultId), prefix4 = `react-aria${ctx.prefix}`; 61240 return defaultId || `${prefix4}-${counter}`; 61241} 61242function $b5e257d569688ac6$var$useModernSSRSafeId(defaultId) { 61243 let id = import_react26.default.useId(), [didSSR] = (0, import_react26.useState)($b5e257d569688ac6$export$535bd6ca7f90a273()), prefix4 = didSSR ? "react-aria" : `react-aria${$b5e257d569688ac6$var$defaultContext.prefix}`; 61244 return defaultId || `${prefix4}-${id}`; 61245} 61246var $b5e257d569688ac6$export$619500959fc48b26 = typeof import_react26.default.useId == "function" ? $b5e257d569688ac6$var$useModernSSRSafeId : $b5e257d569688ac6$var$useLegacySSRSafeId; 61247function $b5e257d569688ac6$var$getSnapshot() { 61248 return !1; 61249} 61250function $b5e257d569688ac6$var$getServerSnapshot() { 61251 return !0; 61252} 61253function $b5e257d569688ac6$var$subscribe(onStoreChange) { 61254 return () => { 61255 }; 61256} 61257function $b5e257d569688ac6$export$535bd6ca7f90a273() { 61258 return typeof import_react26.default.useSyncExternalStore == "function" ? import_react26.default.useSyncExternalStore($b5e257d569688ac6$var$subscribe, $b5e257d569688ac6$var$getSnapshot, $b5e257d569688ac6$var$getServerSnapshot) : (0, import_react26.useContext)($b5e257d569688ac6$var$IsSSRContext); 61259} 61260
vendor: 2,442 bytes, lines 61261-61311
61261// ../../node_modules/@react-aria/utils/dist/useId.mjs 61262var $bdb11010cef70236$var$canUseDOM = !!(typeof window < "u" && window.document && window.document.createElement), $bdb11010cef70236$export$d41a04c74483c6ef = /* @__PURE__ */ new Map(), $bdb11010cef70236$var$registry; 61263typeof FinalizationRegistry < "u" && ($bdb11010cef70236$var$registry = new FinalizationRegistry((heldValue) => { 61264 $bdb11010cef70236$export$d41a04c74483c6ef.delete(heldValue); 61265})); 61266function $bdb11010cef70236$export$f680877a34711e37(defaultId) { 61267 let [value, setValue] = (0, import_react27.useState)(defaultId), nextId = (0, import_react27.useRef)(null), res = $b5e257d569688ac6$export$619500959fc48b26(value), cleanupRef = (0, import_react27.useRef)(null); 61268 if ($bdb11010cef70236$var$registry && $bdb11010cef70236$var$registry.register(cleanupRef, res), $bdb11010cef70236$var$canUseDOM) { 61269 let cacheIdRef = $bdb11010cef70236$export$d41a04c74483c6ef.get(res); 61270 cacheIdRef && !cacheIdRef.includes(nextId) ? cacheIdRef.push(nextId) : $bdb11010cef70236$export$d41a04c74483c6ef.set(res, [ 61271 nextId 61272 ]); 61273 } 61274 return $f0a04ccd8dbdd83b$export$e5c5a5f917a5871c(() => { 61275 let r2 = res; 61276 return () => { 61277 $bdb11010cef70236$var$registry && $bdb11010cef70236$var$registry.unregister(cleanupRef), $bdb11010cef70236$export$d41a04c74483c6ef.delete(r2); 61278 }; 61279 }, [ 61280 res 61281 ]), (0, import_react27.useEffect)(() => { 61282 let newId = nextId.current; 61283 return newId && setValue(newId), () => { 61284 newId && (nextId.current = null); 61285 }; 61286 }), res; 61287} 61288function $bdb11010cef70236$export$cd8c9cb68f842629(idA, idB) { 61289 if (idA === idB) return idA; 61290 let setIdsA = $bdb11010cef70236$export$d41a04c74483c6ef.get(idA); 61291 if (setIdsA) 61292 return setIdsA.forEach((ref) => ref.current = idB), idB; 61293 let setIdsB = $bdb11010cef70236$export$d41a04c74483c6ef.get(idB); 61294 return setIdsB ? (setIdsB.forEach((ref) => ref.current = idA), idA) : idB; 61295} 61296function $bdb11010cef70236$export$b4cc09c592e8fdb8(depArray = []) { 61297 let id = $bdb11010cef70236$export$f680877a34711e37(), [resolvedId, setResolvedId] = $1dbecbe27a04f9af$export$14d238f342723f25(id), updateId = (0, import_react27.useCallback)(() => { 61298 setResolvedId(function* () { 61299 yield id, yield document.getElementById(id) ? id : void 0; 61300 }); 61301 }, [ 61302 id, 61303 setResolvedId 61304 ]); 61305 return $f0a04ccd8dbdd83b$export$e5c5a5f917a5871c(updateId, [ 61306 id, 61307 updateId, 61308 ...depArray 61309 ]), resolvedId; 61310} 61311
vendor: 242 bytes, lines 61312-61318
61312// ../../node_modules/@react-aria/utils/dist/chain.mjs 61313function $ff5963eb1fccf552$export$e08e3b67e392101e(...callbacks) { 61314 return (...args) => { 61315 for (let callback of callbacks) typeof callback == "function" && callback(...args); 61316 }; 61317} 61318
vendor: 777 bytes, lines 61319-61330
61319// ../../node_modules/@react-aria/utils/dist/domHelpers.mjs 61320var $431fbd86ca7dc216$export$b204af158042fbac = (el) => { 61321 var _el_ownerDocument; 61322 return (_el_ownerDocument = el?.ownerDocument) !== null && _el_ownerDocument !== void 0 ? _el_ownerDocument : document; 61323}, $431fbd86ca7dc216$export$f21a1ffae260145a = (el) => el && "window" in el && el.window === el ? el : $431fbd86ca7dc216$export$b204af158042fbac(el).defaultView || window; 61324function $431fbd86ca7dc216$var$isNode(value) { 61325 return value !== null && typeof value == "object" && "nodeType" in value && typeof value.nodeType == "number"; 61326} 61327function $431fbd86ca7dc216$export$af51f0f06c0f328a(node2) { 61328 return $431fbd86ca7dc216$var$isNode(node2) && node2.nodeType === Node.DOCUMENT_FRAGMENT_NODE && "host" in node2; 61329} 61330
vendor: 203 bytes, lines 61331-61336
61331// ../../node_modules/@react-stately/flags/dist/import.mjs 61332var $f4e2df6bd15f8569$var$_shadowDOM = !1; 61333function $f4e2df6bd15f8569$export$98658e8c59125e6a() { 61334 return $f4e2df6bd15f8569$var$_shadowDOM; 61335} 61336
vendor: 1,382 bytes, lines 61337-61358
61337// ../../node_modules/@react-aria/utils/dist/DOMFunctions.mjs 61338function $d4ee10de306f2510$export$4282f70798064fe0(node2, otherNode) { 61339 if (!$f4e2df6bd15f8569$export$98658e8c59125e6a()) return otherNode && node2 ? node2.contains(otherNode) : !1; 61340 if (!node2 || !otherNode) return !1; 61341 let currentNode = otherNode; 61342 for (; currentNode !== null; ) { 61343 if (currentNode === node2) return !0; 61344 currentNode.tagName === "SLOT" && currentNode.assignedSlot ? currentNode = currentNode.assignedSlot.parentNode : $431fbd86ca7dc216$export$af51f0f06c0f328a(currentNode) ? currentNode = currentNode.host : currentNode = currentNode.parentNode; 61345 } 61346 return !1; 61347} 61348var $d4ee10de306f2510$export$cd4e5573fbe2b576 = (doc = document) => { 61349 var _activeElement_shadowRoot; 61350 if (!$f4e2df6bd15f8569$export$98658e8c59125e6a()) return doc.activeElement; 61351 let activeElement = doc.activeElement; 61352 for (; activeElement && "shadowRoot" in activeElement && (!((_activeElement_shadowRoot = activeElement.shadowRoot) === null || _activeElement_shadowRoot === void 0) && _activeElement_shadowRoot.activeElement); ) activeElement = activeElement.shadowRoot.activeElement; 61353 return activeElement; 61354}; 61355function $d4ee10de306f2510$export$e58f029f0fbfdb29(event) { 61356 return $f4e2df6bd15f8569$export$98658e8c59125e6a() && event.target.shadowRoot && event.composedPath ? event.composedPath()[0] : event.target; 61357} 61358
vendor: 5,728 bytes, lines 61359-61483
61359// ../../node_modules/@react-aria/utils/dist/ShadowTreeWalker.mjs 61360var $dfc540311bf7f109$export$63eb3ababa9c55c4 = class { 61361 get currentNode() { 61362 return this._currentNode; 61363 } 61364 set currentNode(node2) { 61365 if (!$d4ee10de306f2510$export$4282f70798064fe0(this.root, node2)) throw new Error("Cannot set currentNode to a node that is not contained by the root node."); 61366 let walkers = [], curNode = node2, currentWalkerCurrentNode = node2; 61367 for (this._currentNode = node2; curNode && curNode !== this.root; ) if (curNode.nodeType === Node.DOCUMENT_FRAGMENT_NODE) { 61368 let shadowRoot = curNode, walker2 = this._doc.createTreeWalker(shadowRoot, this.whatToShow, { 61369 acceptNode: this._acceptNode 61370 }); 61371 walkers.push(walker2), walker2.currentNode = currentWalkerCurrentNode, this._currentSetFor.add(walker2), curNode = currentWalkerCurrentNode = shadowRoot.host; 61372 } else curNode = curNode.parentNode; 61373 let walker = this._doc.createTreeWalker(this.root, this.whatToShow, { 61374 acceptNode: this._acceptNode 61375 }); 61376 walkers.push(walker), walker.currentNode = currentWalkerCurrentNode, this._currentSetFor.add(walker), this._walkerStack = walkers; 61377 } 61378 get doc() { 61379 return this._doc; 61380 } 61381 firstChild() { 61382 let currentNode = this.currentNode, newNode = this.nextNode(); 61383 return $d4ee10de306f2510$export$4282f70798064fe0(currentNode, newNode) ? (newNode && (this.currentNode = newNode), newNode) : (this.currentNode = currentNode, null); 61384 } 61385 lastChild() { 61386 let newNode = this._walkerStack[0].lastChild(); 61387 return newNode && (this.currentNode = newNode), newNode; 61388 } 61389 nextNode() { 61390 let nextNode = this._walkerStack[0].nextNode(); 61391 if (nextNode) { 61392 if (nextNode.shadowRoot) { 61393 var _this_filter; 61394 let nodeResult; 61395 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) 61396 return this.currentNode = nextNode, nextNode; 61397 let newNode = this.nextNode(); 61398 return newNode && (this.currentNode = newNode), newNode; 61399 } 61400 return nextNode && (this.currentNode = nextNode), nextNode; 61401 } else if (this._walkerStack.length > 1) { 61402 this._walkerStack.shift(); 61403 let newNode = this.nextNode(); 61404 return newNode && (this.currentNode = newNode), newNode; 61405 } else return null; 61406 } 61407 previousNode() { 61408 let currentWalker = this._walkerStack[0]; 61409 if (currentWalker.currentNode === currentWalker.root) { 61410 if (this._currentSetFor.has(currentWalker)) 61411 if (this._currentSetFor.delete(currentWalker), this._walkerStack.length > 1) { 61412 this._walkerStack.shift(); 61413 let newNode = this.previousNode(); 61414 return newNode && (this.currentNode = newNode), newNode; 61415 } else return null; 61416 return null; 61417 } 61418 let previousNode = currentWalker.previousNode(); 61419 if (previousNode) { 61420 if (previousNode.shadowRoot) { 61421 var _this_filter; 61422 let nodeResult; 61423 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) 61424 return previousNode && (this.currentNode = previousNode), previousNode; 61425 let newNode = this.lastChild(); 61426 return newNode && (this.currentNode = newNode), newNode; 61427 } 61428 return previousNode && (this.currentNode = previousNode), previousNode; 61429 } else if (this._walkerStack.length > 1) { 61430 this._walkerStack.shift(); 61431 let newNode = this.previousNode(); 61432 return newNode && (this.currentNode = newNode), newNode; 61433 } else return null; 61434 } 61435 /** 61436 * @deprecated 61437 */ 61438 nextSibling() { 61439 return null; 61440 } 61441 /** 61442 * @deprecated 61443 */ 61444 previousSibling() { 61445 return null; 61446 } 61447 /** 61448 * @deprecated 61449 */ 61450 parentNode() { 61451 return null; 61452 } 61453 constructor(doc, root2, whatToShow, filter) { 61454 this._walkerStack = [], this._currentSetFor = /* @__PURE__ */ new Set(), this._acceptNode = (node2) => { 61455 if (node2.nodeType === Node.ELEMENT_NODE) { 61456 let shadowRoot2 = node2.shadowRoot; 61457 if (shadowRoot2) { 61458 let walker = this._doc.createTreeWalker(shadowRoot2, this.whatToShow, { 61459 acceptNode: this._acceptNode 61460 }); 61461 return this._walkerStack.unshift(walker), NodeFilter.FILTER_ACCEPT; 61462 } else { 61463 var _this_filter; 61464 if (typeof this.filter == "function") return this.filter(node2); 61465 if (!((_this_filter = this.filter) === null || _this_filter === void 0) && _this_filter.acceptNode) return this.filter.acceptNode(node2); 61466 if (this.filter === null) return NodeFilter.FILTER_ACCEPT; 61467 } 61468 } 61469 return NodeFilter.FILTER_SKIP; 61470 }, 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)); 61471 let shadowRoot = root2.shadowRoot; 61472 if (shadowRoot) { 61473 let walker = this._doc.createTreeWalker(shadowRoot, this.whatToShow, { 61474 acceptNode: this._acceptNode 61475 }); 61476 this._walkerStack.unshift(walker); 61477 } 61478 } 61479}; 61480function $dfc540311bf7f109$export$4d0f8be8b12a7ef6(doc, root2, whatToShow, filter) { 61481 return $f4e2df6bd15f8569$export$98658e8c59125e6a() ? new $dfc540311bf7f109$export$63eb3ababa9c55c4(doc, root2, whatToShow, filter) : doc.createTreeWalker(root2, whatToShow, filter); 61482} 61483
vendor: 564 bytes, lines 61484-61499
61484// ../../node_modules/clsx/dist/clsx.mjs 61485function r(e) { 61486 var t, f4, n = ""; 61487 if (typeof e == "string" || typeof e == "number") n += e; 61488 else if (typeof e == "object") if (Array.isArray(e)) { 61489 var o = e.length; 61490 for (t = 0; t < o; t++) e[t] && (f4 = r(e[t])) && (n && (n += " "), n += f4); 61491 } else for (f4 in e) e[f4] && (n && (n += " "), n += f4); 61492 return n; 61493} 61494function clsx() { 61495 for (var e, t, f4 = 0, n = "", o = arguments.length; f4 < o; f4++) (e = arguments[f4]) && (t = r(e)) && (n && (n += " "), n += t); 61496 return n; 61497} 61498var clsx_default = clsx; 61499
vendor: 883 bytes, lines 61500-61517
61500// ../../node_modules/@react-aria/utils/dist/mergeProps.mjs 61501function $3ef42575df84b30b$export$9d1611c77c2fe928(...args) { 61502 let result = { 61503 ...args[0] 61504 }; 61505 for (let i = 1; i < args.length; i++) { 61506 let props = args[i]; 61507 for (let key in props) { 61508 let a3 = result[key], b = props[key]; 61509 typeof a3 == "function" && typeof b == "function" && // This is a lot faster than a regex. 61510 key[0] === "o" && key[1] === "n" && key.charCodeAt(2) >= /* 'A' */ 61511 65 && key.charCodeAt(2) <= /* 'Z' */ 61512 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; 61513 } 61514 } 61515 return result; 61516} 61517
vendor: 733 bytes, lines 61518-61536
61518// ../../node_modules/@react-aria/utils/dist/mergeRefs.mjs 61519function $5dc95899b306f630$export$c9058316764c140e(...refs) { 61520 return refs.length === 1 && refs[0] ? refs[0] : (value) => { 61521 let hasCleanup = !1, cleanups = refs.map((ref) => { 61522 let cleanup = $5dc95899b306f630$var$setRef(ref, value); 61523 return hasCleanup || (hasCleanup = typeof cleanup == "function"), cleanup; 61524 }); 61525 if (hasCleanup) return () => { 61526 cleanups.forEach((cleanup, i) => { 61527 typeof cleanup == "function" ? cleanup() : $5dc95899b306f630$var$setRef(refs[i], null); 61528 }); 61529 }; 61530 }; 61531} 61532function $5dc95899b306f630$var$setRef(ref, value) { 61533 if (typeof ref == "function") return ref(value); 61534 ref != null && (ref.current = value); 61535} 61536
vendor: 2,110 bytes, lines 61537-61600
61537// ../../node_modules/@react-aria/utils/dist/filterDOMProps.mjs 61538var $65484d02dcb7eb3e$var$DOMPropNames = /* @__PURE__ */ new Set([ 61539 "id" 61540]), $65484d02dcb7eb3e$var$labelablePropNames = /* @__PURE__ */ new Set([ 61541 "aria-label", 61542 "aria-labelledby", 61543 "aria-describedby", 61544 "aria-details" 61545]), $65484d02dcb7eb3e$var$linkPropNames = /* @__PURE__ */ new Set([ 61546 "href", 61547 "hrefLang", 61548 "target", 61549 "rel", 61550 "download", 61551 "ping", 61552 "referrerPolicy" 61553]), $65484d02dcb7eb3e$var$globalAttrs = /* @__PURE__ */ new Set([ 61554 "dir", 61555 "lang", 61556 "hidden", 61557 "inert", 61558 "translate" 61559]), $65484d02dcb7eb3e$var$globalEvents = /* @__PURE__ */ new Set([ 61560 "onClick", 61561 "onAuxClick", 61562 "onContextMenu", 61563 "onDoubleClick", 61564 "onMouseDown", 61565 "onMouseEnter", 61566 "onMouseLeave", 61567 "onMouseMove", 61568 "onMouseOut", 61569 "onMouseOver", 61570 "onMouseUp", 61571 "onTouchCancel", 61572 "onTouchEnd", 61573 "onTouchMove", 61574 "onTouchStart", 61575 "onPointerDown", 61576 "onPointerMove", 61577 "onPointerUp", 61578 "onPointerCancel", 61579 "onPointerEnter", 61580 "onPointerLeave", 61581 "onPointerOver", 61582 "onPointerOut", 61583 "onGotPointerCapture", 61584 "onLostPointerCapture", 61585 "onScroll", 61586 "onWheel", 61587 "onAnimationStart", 61588 "onAnimationEnd", 61589 "onAnimationIteration", 61590 "onTransitionCancel", 61591 "onTransitionEnd", 61592 "onTransitionRun", 61593 "onTransitionStart" 61594]), $65484d02dcb7eb3e$var$propRe = /^(data-.*)$/; 61595function $65484d02dcb7eb3e$export$457c3d6518dd4c6f(props, opts = {}) { 61596 let { labelable, isLink: isLink2, global: global2, events: events2 = global2, propNames } = opts, filteredProps = {}; 61597 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]); 61598 return filteredProps; 61599} 61600
vendor: 1,911 bytes, lines 61601-61644
61601// ../../node_modules/@react-aria/utils/dist/focusWithoutScrolling.mjs 61602function $7215afc6de606d6b$export$de79e2c695e052f3(element) { 61603 if ($7215afc6de606d6b$var$supportsPreventScroll()) element.focus({ 61604 preventScroll: !0 61605 }); 61606 else { 61607 let scrollableElements = $7215afc6de606d6b$var$getScrollableElements(element); 61608 element.focus(), $7215afc6de606d6b$var$restoreScrollPosition(scrollableElements); 61609 } 61610} 61611var $7215afc6de606d6b$var$supportsPreventScrollCached = null; 61612function $7215afc6de606d6b$var$supportsPreventScroll() { 61613 if ($7215afc6de606d6b$var$supportsPreventScrollCached == null) { 61614 $7215afc6de606d6b$var$supportsPreventScrollCached = !1; 61615 try { 61616 document.createElement("div").focus({ 61617 get preventScroll() { 61618 return $7215afc6de606d6b$var$supportsPreventScrollCached = !0, !0; 61619 } 61620 }); 61621 } catch { 61622 } 61623 } 61624 return $7215afc6de606d6b$var$supportsPreventScrollCached; 61625} 61626function $7215afc6de606d6b$var$getScrollableElements(element) { 61627 let parent = element.parentNode, scrollableElements = [], rootScrollingElement = document.scrollingElement || document.documentElement; 61628 for (; parent instanceof HTMLElement && parent !== rootScrollingElement; ) 61629 (parent.offsetHeight < parent.scrollHeight || parent.offsetWidth < parent.scrollWidth) && scrollableElements.push({ 61630 element: parent, 61631 scrollTop: parent.scrollTop, 61632 scrollLeft: parent.scrollLeft 61633 }), parent = parent.parentNode; 61634 return rootScrollingElement instanceof HTMLElement && scrollableElements.push({ 61635 element: rootScrollingElement, 61636 scrollTop: rootScrollingElement.scrollTop, 61637 scrollLeft: rootScrollingElement.scrollLeft 61638 }), scrollableElements; 61639} 61640function $7215afc6de606d6b$var$restoreScrollPosition(scrollableElements) { 61641 for (let { element, scrollTop, scrollLeft } of scrollableElements) 61642 element.scrollTop = scrollTop, element.scrollLeft = scrollLeft; 61643} 61644
vendor: 2,645 bytes, lines 61645-61680
61645// ../../node_modules/@react-aria/utils/dist/platform.mjs 61646function $c87311424ea30a05$var$testUserAgent(re) { 61647 var _window_navigator_userAgentData; 61648 if (typeof window > "u" || window.navigator == null) return !1; 61649 let brands = (_window_navigator_userAgentData = window.navigator.userAgentData) === null || _window_navigator_userAgentData === void 0 ? void 0 : _window_navigator_userAgentData.brands; 61650 return Array.isArray(brands) && brands.some((brand) => re.test(brand.brand)) || re.test(window.navigator.userAgent); 61651} 61652function $c87311424ea30a05$var$testPlatform(re) { 61653 var _window_navigator_userAgentData; 61654 return typeof window < "u" && window.navigator != null ? re.test(((_window_navigator_userAgentData = window.navigator.userAgentData) === null || _window_navigator_userAgentData === void 0 ? void 0 : _window_navigator_userAgentData.platform) || window.navigator.platform) : !1; 61655} 61656function $c87311424ea30a05$var$cached(fn4) { 61657 let res = null; 61658 return () => (res == null && (res = fn4()), res); 61659} 61660var $c87311424ea30a05$export$9ac100e40613ea10 = $c87311424ea30a05$var$cached(function() { 61661 return $c87311424ea30a05$var$testPlatform(/^Mac/i); 61662}), $c87311424ea30a05$export$186c6964ca17d99 = $c87311424ea30a05$var$cached(function() { 61663 return $c87311424ea30a05$var$testPlatform(/^iPhone/i); 61664}), $c87311424ea30a05$export$7bef049ce92e4224 = $c87311424ea30a05$var$cached(function() { 61665 return $c87311424ea30a05$var$testPlatform(/^iPad/i) || // iPadOS 13 lies and says it's a Mac, but we can distinguish by detecting touch support. 61666 $c87311424ea30a05$export$9ac100e40613ea10() && navigator.maxTouchPoints > 1; 61667}), $c87311424ea30a05$export$fedb369cb70207f1 = $c87311424ea30a05$var$cached(function() { 61668 return $c87311424ea30a05$export$186c6964ca17d99() || $c87311424ea30a05$export$7bef049ce92e4224(); 61669}), $c87311424ea30a05$export$e1865c3bedcd822b = $c87311424ea30a05$var$cached(function() { 61670 return $c87311424ea30a05$export$9ac100e40613ea10() || $c87311424ea30a05$export$fedb369cb70207f1(); 61671}), $c87311424ea30a05$export$78551043582a6a98 = $c87311424ea30a05$var$cached(function() { 61672 return $c87311424ea30a05$var$testUserAgent(/AppleWebKit/i) && !$c87311424ea30a05$export$6446a186d09e379e(); 61673}), $c87311424ea30a05$export$6446a186d09e379e = $c87311424ea30a05$var$cached(function() { 61674 return $c87311424ea30a05$var$testUserAgent(/Chrome/i); 61675}), $c87311424ea30a05$export$a11b0059900ceec8 = $c87311424ea30a05$var$cached(function() { 61676 return $c87311424ea30a05$var$testUserAgent(/Android/i); 61677}), $c87311424ea30a05$export$b7d78993b74f766d = $c87311424ea30a05$var$cached(function() { 61678 return $c87311424ea30a05$var$testUserAgent(/Firefox/i); 61679}); 61680
vendor: 3,913 bytes, lines 61681-61746
61681// ../../node_modules/@react-aria/utils/dist/openLink.mjs 61682var import_react28 = __toESM(require_react(), 1), $ea8dcbcb9ea1b556$var$RouterContext = (0, import_react28.createContext)({ 61683 isNative: !0, 61684 open: $ea8dcbcb9ea1b556$var$openSyntheticLink, 61685 useHref: (href) => href 61686}); 61687function $ea8dcbcb9ea1b556$export$9a302a45f65d0572() { 61688 return (0, import_react28.useContext)($ea8dcbcb9ea1b556$var$RouterContext); 61689} 61690function $ea8dcbcb9ea1b556$export$efa8c9099e530235(link, modifiers) { 61691 let target = link.getAttribute("target"); 61692 return (!target || target === "_self") && link.origin === location.origin && !link.hasAttribute("download") && !modifiers.metaKey && // open in new tab (mac) 61693 !modifiers.ctrlKey && // open in new tab (windows) 61694 !modifiers.altKey && // download 61695 !modifiers.shiftKey; 61696} 61697function $ea8dcbcb9ea1b556$export$95185d699e05d4d7(target, modifiers, setOpening = !0) { 61698 var _window_event_type, _window_event; 61699 let { metaKey, ctrlKey, altKey, shiftKey } = modifiers; 61700 $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); 61701 let event = $c87311424ea30a05$export$78551043582a6a98() && $c87311424ea30a05$export$9ac100e40613ea10() && !$c87311424ea30a05$export$7bef049ce92e4224() ? new KeyboardEvent("keydown", { 61702 keyIdentifier: "Enter", 61703 metaKey, 61704 ctrlKey, 61705 altKey, 61706 shiftKey 61707 }) : new MouseEvent("click", { 61708 metaKey, 61709 ctrlKey, 61710 altKey, 61711 shiftKey, 61712 detail: 1, 61713 bubbles: !0, 61714 cancelable: !0 61715 }); 61716 $ea8dcbcb9ea1b556$export$95185d699e05d4d7.isOpening = setOpening, $7215afc6de606d6b$export$de79e2c695e052f3(target), target.dispatchEvent(event), $ea8dcbcb9ea1b556$export$95185d699e05d4d7.isOpening = !1; 61717} 61718$ea8dcbcb9ea1b556$export$95185d699e05d4d7.isOpening = !1; 61719function $ea8dcbcb9ea1b556$var$getSyntheticLink(target, open) { 61720 if (target instanceof HTMLAnchorElement) open(target); 61721 else if (target.hasAttribute("data-href")) { 61722 let link = document.createElement("a"); 61723 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); 61724 } 61725} 61726function $ea8dcbcb9ea1b556$var$openSyntheticLink(target, modifiers) { 61727 $ea8dcbcb9ea1b556$var$getSyntheticLink(target, (link) => $ea8dcbcb9ea1b556$export$95185d699e05d4d7(link, modifiers)); 61728} 61729function $ea8dcbcb9ea1b556$export$7e924b3091a3bd18(props) { 61730 let router = $ea8dcbcb9ea1b556$export$9a302a45f65d0572(); 61731 var _props_href; 61732 let href = router.useHref((_props_href = props?.href) !== null && _props_href !== void 0 ? _props_href : ""); 61733 return { 61734 href: props?.href ? href : void 0, 61735 target: props?.target, 61736 rel: props?.rel, 61737 download: props?.download, 61738 ping: props?.ping, 61739 referrerPolicy: props?.referrerPolicy 61740 }; 61741} 61742function $ea8dcbcb9ea1b556$export$13aea1a3cb5e3f1f(e, router, href, routerOptions) { 61743 !router.isNative && e.currentTarget instanceof HTMLAnchorElement && e.currentTarget.href && // If props are applied to a router Link component, it may have already prevented default. 61744 !e.isDefaultPrevented() && $ea8dcbcb9ea1b556$export$efa8c9099e530235(e.currentTarget, e) && href && (e.preventDefault(), router.open(e.currentTarget, e, href, routerOptions)); 61745} 61746
vendor: 2,236 bytes, lines 61747-61780
61747// ../../node_modules/@react-aria/utils/dist/runAfterTransition.mjs 61748var $bbed8b41f857bcc0$var$transitionsByElement = /* @__PURE__ */ new Map(), $bbed8b41f857bcc0$var$transitionCallbacks = /* @__PURE__ */ new Set(); 61749function $bbed8b41f857bcc0$var$setupGlobalEvents() { 61750 if (typeof window > "u") return; 61751 function isTransitionEvent(event) { 61752 return "propertyName" in event; 61753 } 61754 let onTransitionStart = (e) => { 61755 if (!isTransitionEvent(e) || !e.target) return; 61756 let transitions = $bbed8b41f857bcc0$var$transitionsByElement.get(e.target); 61757 transitions || (transitions = /* @__PURE__ */ new Set(), $bbed8b41f857bcc0$var$transitionsByElement.set(e.target, transitions), e.target.addEventListener("transitioncancel", onTransitionEnd, { 61758 once: !0 61759 })), transitions.add(e.propertyName); 61760 }, onTransitionEnd = (e) => { 61761 if (!isTransitionEvent(e) || !e.target) return; 61762 let properties = $bbed8b41f857bcc0$var$transitionsByElement.get(e.target); 61763 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)) { 61764 for (let cb of $bbed8b41f857bcc0$var$transitionCallbacks) cb(); 61765 $bbed8b41f857bcc0$var$transitionCallbacks.clear(); 61766 } 61767 }; 61768 document.body.addEventListener("transitionrun", onTransitionStart), document.body.addEventListener("transitionend", onTransitionEnd); 61769} 61770typeof document < "u" && (document.readyState !== "loading" ? $bbed8b41f857bcc0$var$setupGlobalEvents() : document.addEventListener("DOMContentLoaded", $bbed8b41f857bcc0$var$setupGlobalEvents)); 61771function $bbed8b41f857bcc0$var$cleanupDetachedElements() { 61772 for (let [eventTarget] of $bbed8b41f857bcc0$var$transitionsByElement) 61773 "isConnected" in eventTarget && !eventTarget.isConnected && $bbed8b41f857bcc0$var$transitionsByElement.delete(eventTarget); 61774} 61775function $bbed8b41f857bcc0$export$24490316f764c430(fn4) { 61776 requestAnimationFrame(() => { 61777 $bbed8b41f857bcc0$var$cleanupDetachedElements(), $bbed8b41f857bcc0$var$transitionsByElement.size === 0 ? fn4() : $bbed8b41f857bcc0$var$transitionCallbacks.add(fn4); 61778 }); 61779} 61780
vendor: 110 bytes, lines 61781-61783
61781// ../../node_modules/@react-aria/utils/dist/useDrag1D.mjs 61782var import_react29 = __toESM(require_react(), 1); 61783
vendor: 1,544 bytes, lines 61784-61816
61784// ../../node_modules/@react-aria/utils/dist/useGlobalListeners.mjs 61785var import_react30 = __toESM(require_react(), 1); 61786function $03deb23ff14920c4$export$4eaf04e54aa8eed6() { 61787 let globalListeners = (0, import_react30.useRef)(/* @__PURE__ */ new Map()), addGlobalListener = (0, import_react30.useCallback)((eventTarget, type5, listener, options) => { 61788 let fn4 = options?.once ? (...args) => { 61789 globalListeners.current.delete(listener), listener(...args); 61790 } : listener; 61791 globalListeners.current.set(listener, { 61792 type: type5, 61793 eventTarget, 61794 fn: fn4, 61795 options 61796 }), eventTarget.addEventListener(type5, fn4, options); 61797 }, []), removeGlobalListener = (0, import_react30.useCallback)((eventTarget, type5, listener, options) => { 61798 var _globalListeners_current_get; 61799 let fn4 = ((_globalListeners_current_get = globalListeners.current.get(listener)) === null || _globalListeners_current_get === void 0 ? void 0 : _globalListeners_current_get.fn) || listener; 61800 eventTarget.removeEventListener(type5, fn4, options), globalListeners.current.delete(listener); 61801 }, []), removeAllGlobalListeners = (0, import_react30.useCallback)(() => { 61802 globalListeners.current.forEach((value, key) => { 61803 removeGlobalListener(value.eventTarget, value.type, key, value.options); 61804 }); 61805 }, [ 61806 removeGlobalListener 61807 ]); 61808 return (0, import_react30.useEffect)(() => removeAllGlobalListeners, [ 61809 removeAllGlobalListeners 61810 ]), { 61811 addGlobalListener, 61812 removeGlobalListener, 61813 removeAllGlobalListeners 61814 }; 61815} 61816
vendor: 624 bytes, lines 61817-61831
61817// ../../node_modules/@react-aria/utils/dist/useLabels.mjs 61818function $313b98861ee5dd6c$export$d6875122194c7b44(props, defaultLabel) { 61819 let { id, "aria-label": label, "aria-labelledby": labelledBy } = props; 61820 return id = $bdb11010cef70236$export$f680877a34711e37(id), labelledBy && label ? labelledBy = [ 61821 .../* @__PURE__ */ new Set([ 61822 id, 61823 ...labelledBy.trim().split(/\s+/) 61824 ]) 61825 ].join(" ") : labelledBy && (labelledBy = labelledBy.trim().split(/\s+/).join(" ")), !label && !labelledBy && defaultLabel && (label = defaultLabel), { 61826 id, 61827 "aria-label": label, 61828 "aria-labelledby": labelledBy 61829 }; 61830} 61831
vendor: 985 bytes, lines 61832-61859
61832// ../../node_modules/@react-aria/utils/dist/useObjectRef.mjs 61833var import_react31 = __toESM(require_react(), 1); 61834function $df56164dff5785e2$export$4338b53315abf666(ref) { 61835 let objRef = (0, import_react31.useRef)(null), cleanupRef = (0, import_react31.useRef)(void 0), refEffect = (0, import_react31.useCallback)((instance) => { 61836 if (typeof ref == "function") { 61837 let refCallback = ref, refCleanup = refCallback(instance); 61838 return () => { 61839 typeof refCleanup == "function" ? refCleanup() : refCallback(null); 61840 }; 61841 } else if (ref) 61842 return ref.current = instance, () => { 61843 ref.current = null; 61844 }; 61845 }, [ 61846 ref 61847 ]); 61848 return (0, import_react31.useMemo)(() => ({ 61849 get current() { 61850 return objRef.current; 61851 }, 61852 set current(value) { 61853 objRef.current = value, cleanupRef.current && (cleanupRef.current(), cleanupRef.current = void 0), value != null && (cleanupRef.current = refEffect(value)); 61854 } 61855 }), [ 61856 refEffect 61857 ]); 61858} 61859
vendor: 776 bytes, lines 61860-61873
61860// ../../node_modules/@react-aria/utils/dist/useEffectEvent.mjs 61861var import_react32 = __toESM(require_react(), 1), $8ae05eaa5c114e9c$var$_React_useInsertionEffect, $8ae05eaa5c114e9c$var$useEarlyEffect = ($8ae05eaa5c114e9c$var$_React_useInsertionEffect = import_react32.default.useInsertionEffect) !== null && $8ae05eaa5c114e9c$var$_React_useInsertionEffect !== void 0 ? $8ae05eaa5c114e9c$var$_React_useInsertionEffect : $f0a04ccd8dbdd83b$export$e5c5a5f917a5871c; 61862function $8ae05eaa5c114e9c$export$7f54fc3180508a52(fn4) { 61863 let ref = (0, import_react32.useRef)(null); 61864 return $8ae05eaa5c114e9c$var$useEarlyEffect(() => { 61865 ref.current = fn4; 61866 }, [ 61867 fn4 61868 ]), (0, import_react32.useCallback)((...args) => { 61869 let f4 = ref.current; 61870 return f4?.(...args); 61871 }, []); 61872} 61873
vendor: 116 bytes, lines 61874-61876
61874// ../../node_modules/@react-aria/utils/dist/useUpdateEffect.mjs 61875var import_react33 = __toESM(require_react(), 1); 61876
vendor: 691 bytes, lines 61877-61887
61877// ../../node_modules/@react-aria/utils/dist/useUpdateLayoutEffect.mjs 61878var import_react34 = __toESM(require_react(), 1); 61879function $ca9b37712f007381$export$72ef708ab07251f1(effect4, dependencies) { 61880 let isInitialMount = (0, import_react34.useRef)(!0), lastDeps = (0, import_react34.useRef)(null); 61881 $f0a04ccd8dbdd83b$export$e5c5a5f917a5871c(() => (isInitialMount.current = !0, () => { 61882 isInitialMount.current = !1; 61883 }), []), $f0a04ccd8dbdd83b$export$e5c5a5f917a5871c(() => { 61884 isInitialMount.current ? isInitialMount.current = !1 : (!lastDeps.current || dependencies.some((dep, i) => !Object.is(dep, lastDeps[i]))) && effect4(), lastDeps.current = dependencies; 61885 }, dependencies); 61886} 61887
vendor: 1,034 bytes, lines 61888-61916
61888// ../../node_modules/@react-aria/utils/dist/useResizeObserver.mjs 61889var import_react35 = __toESM(require_react(), 1); 61890function $9daab02d461809db$var$hasResizeObserver() { 61891 return typeof window.ResizeObserver < "u"; 61892} 61893function $9daab02d461809db$export$683480f191c0e3ea(options) { 61894 let { ref, box, onResize } = options, onResizeEvent = $8ae05eaa5c114e9c$export$7f54fc3180508a52(onResize); 61895 (0, import_react35.useEffect)(() => { 61896 let element = ref?.current; 61897 if (element) 61898 if ($9daab02d461809db$var$hasResizeObserver()) { 61899 let resizeObserverInstance = new window.ResizeObserver((entries) => { 61900 entries.length && onResizeEvent(); 61901 }); 61902 return resizeObserverInstance.observe(element, { 61903 box 61904 }), () => { 61905 element && resizeObserverInstance.unobserve(element); 61906 }; 61907 } else 61908 return window.addEventListener("resize", onResizeEvent, !1), () => { 61909 window.removeEventListener("resize", onResizeEvent, !1); 61910 }; 61911 }, [ 61912 ref, 61913 box 61914 ]); 61915} 61916
vendor: 345 bytes, lines 61917-61926
61917// ../../node_modules/@react-aria/utils/dist/useSyncRef.mjs 61918function $e7801be82b4b2a53$export$4debdb1a3f0fa79e(context, ref) { 61919 $f0a04ccd8dbdd83b$export$e5c5a5f917a5871c(() => { 61920 if (context && context.ref && ref) 61921 return context.ref.current = ref.current, () => { 61922 context.ref && (context.ref.current = null); 61923 }; 61924 }); 61925} 61926
vendor: 465 bytes, lines 61927-61933
61927// ../../node_modules/@react-aria/utils/dist/isScrollable.mjs 61928function $cc38e7bd3fc7b213$export$2bb74740c4e19def(node2, checkForOverflow) { 61929 if (!node2) return !1; 61930 let style = window.getComputedStyle(node2), isScrollable = /(auto|scroll)/.test(style.overflow + style.overflowX + style.overflowY); 61931 return isScrollable && checkForOverflow && (isScrollable = node2.scrollHeight !== node2.clientHeight || node2.scrollWidth !== node2.clientWidth), isScrollable; 61932} 61933
vendor: 538 bytes, lines 61934-61940
61934// ../../node_modules/@react-aria/utils/dist/getScrollParent.mjs 61935function $62d8ded9296f3872$export$cfa2225e87938781(node2, checkForOverflow) { 61936 let scrollableNode = node2; 61937 for ($cc38e7bd3fc7b213$export$2bb74740c4e19def(scrollableNode, checkForOverflow) && (scrollableNode = scrollableNode.parentElement); scrollableNode && !$cc38e7bd3fc7b213$export$2bb74740c4e19def(scrollableNode, checkForOverflow); ) scrollableNode = scrollableNode.parentElement; 61938 return scrollableNode || document.scrollingElement || document.documentElement; 61939} 61940
vendor: 383 bytes, lines 61941-61948
61941// ../../node_modules/@react-aria/utils/dist/getScrollParents.mjs 61942function $a40c673dc9f6d9c7$export$94ed1c92c7beeb22(node2, checkForOverflow) { 61943 let scrollParents = []; 61944 for (; node2 && node2 !== document.documentElement; ) 61945 $cc38e7bd3fc7b213$export$2bb74740c4e19def(node2, checkForOverflow) && scrollParents.push(node2), node2 = node2.parentElement; 61946 return scrollParents; 61947} 61948
vendor: 644 bytes, lines 61949-61967
61949// ../../node_modules/@react-aria/utils/dist/keyboard.mjs 61950function $21f1aa98acb08317$export$16792effe837dba3(e) { 61951 return $c87311424ea30a05$export$9ac100e40613ea10() ? e.metaKey : e.ctrlKey; 61952} 61953var $21f1aa98acb08317$var$nonTextInputTypes = /* @__PURE__ */ new Set([ 61954 "checkbox", 61955 "radio", 61956 "range", 61957 "color", 61958 "file", 61959 "image", 61960 "button", 61961 "submit", 61962 "reset" 61963]); 61964function $21f1aa98acb08317$export$c57958e35f31ed73(target) { 61965 return target instanceof HTMLInputElement && !$21f1aa98acb08317$var$nonTextInputTypes.has(target.type) || target instanceof HTMLTextAreaElement || target instanceof HTMLElement && target.isContentEditable; 61966} 61967
vendor: 207 bytes, lines 61968-61971
61968// ../../node_modules/@react-aria/utils/dist/useViewportSize.mjs 61969var import_react36 = __toESM(require_react(), 1); 61970var $5df64b3807dc15ee$var$visualViewport = typeof document < "u" && window.visualViewport; 61971
vendor: 1,213 bytes, lines 61972-61999
61972// ../../node_modules/@react-aria/utils/dist/useDescription.mjs 61973var import_react37 = __toESM(require_react(), 1), $ef06256079686ba0$var$descriptionId = 0, $ef06256079686ba0$var$descriptionNodes = /* @__PURE__ */ new Map(); 61974function $ef06256079686ba0$export$f8aeda7b10753fa1(description) { 61975 let [id, setId] = (0, import_react37.useState)(); 61976 return $f0a04ccd8dbdd83b$export$e5c5a5f917a5871c(() => { 61977 if (!description) return; 61978 let desc = $ef06256079686ba0$var$descriptionNodes.get(description); 61979 if (desc) 61980 setId(desc.element.id); 61981 else { 61982 let id2 = `react-aria-description-${$ef06256079686ba0$var$descriptionId++}`; 61983 setId(id2); 61984 let node2 = document.createElement("div"); 61985 node2.id = id2, node2.style.display = "none", node2.textContent = description, document.body.appendChild(node2), desc = { 61986 refCount: 0, 61987 element: node2 61988 }, $ef06256079686ba0$var$descriptionNodes.set(description, desc); 61989 } 61990 return desc.refCount++, () => { 61991 desc && --desc.refCount === 0 && (desc.element.remove(), $ef06256079686ba0$var$descriptionNodes.delete(description)); 61992 }; 61993 }, [ 61994 description 61995 ]), { 61996 "aria-describedby": description ? id : void 0 61997 }; 61998} 61999
vendor: 620 bytes, lines 62000-62017
62000// ../../node_modules/@react-aria/utils/dist/useEvent.mjs 62001var import_react38 = __toESM(require_react(), 1); 62002function $e9faafb641e167db$export$90fc3a17d93f704c(ref, event, handler, options) { 62003 let handleEvent = $8ae05eaa5c114e9c$export$7f54fc3180508a52(handler), isDisabled3 = handler == null; 62004 (0, import_react38.useEffect)(() => { 62005 if (isDisabled3 || !ref.current) return; 62006 let element = ref.current; 62007 return element.addEventListener(event, handleEvent, options), () => { 62008 element.removeEventListener(event, handleEvent, options); 62009 }; 62010 }, [ 62011 ref, 62012 event, 62013 options, 62014 isDisabled3 62015 ]); 62016} 62017
vendor: 3,786 bytes, lines 62018-62060
62018// ../../node_modules/@react-aria/utils/dist/scrollIntoView.mjs 62019function $2f04cbc44ee30ce0$export$53a0910f038337bd(scrollView, element) { 62020 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; 62021 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; 62022} 62023function $2f04cbc44ee30ce0$var$relativeOffset(ancestor, child, axis) { 62024 let prop = axis === "left" ? "offsetLeft" : "offsetTop", sum = 0; 62025 for (; child.offsetParent && (sum += child[prop], child.offsetParent !== ancestor); ) { 62026 if (child.offsetParent.contains(ancestor)) { 62027 sum -= ancestor[prop]; 62028 break; 62029 } 62030 child = child.offsetParent; 62031 } 62032 return sum; 62033} 62034function $2f04cbc44ee30ce0$export$c826860796309d1b(targetElement, opts) { 62035 if (targetElement && document.contains(targetElement)) { 62036 let root2 = document.scrollingElement || document.documentElement, isScrollPrevented = window.getComputedStyle(root2).overflow === "hidden"; 62037 if (isScrollPrevented) { 62038 let scrollParents = $a40c673dc9f6d9c7$export$94ed1c92c7beeb22(targetElement); 62039 isScrollPrevented || scrollParents.push(root2); 62040 for (let scrollParent of scrollParents) $2f04cbc44ee30ce0$export$53a0910f038337bd(scrollParent, targetElement); 62041 } else { 62042 var _targetElement_scrollIntoView; 62043 let { left: originalLeft, top: originalTop } = targetElement.getBoundingClientRect(); 62044 targetElement == null || (_targetElement_scrollIntoView = targetElement.scrollIntoView) === null || _targetElement_scrollIntoView === void 0 || _targetElement_scrollIntoView.call(targetElement, { 62045 block: "nearest" 62046 }); 62047 let { left: newLeft, top: newTop } = targetElement.getBoundingClientRect(); 62048 if (Math.abs(originalLeft - newLeft) > 1 || Math.abs(originalTop - newTop) > 1) { 62049 var _opts_containingElement_scrollIntoView, _opts_containingElement, _targetElement_scrollIntoView1; 62050 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, { 62051 block: "center", 62052 inline: "center" 62053 }), (_targetElement_scrollIntoView1 = targetElement.scrollIntoView) === null || _targetElement_scrollIntoView1 === void 0 || _targetElement_scrollIntoView1.call(targetElement, { 62054 block: "nearest" 62055 }); 62056 } 62057 } 62058 } 62059} 62060
vendor: 626 bytes, lines 62061-62068
62061// ../../node_modules/@react-aria/utils/dist/isVirtualEvent.mjs 62062function $6a7db85432448f7f$export$60278871457622de(event) { 62063 return event.pointerType === "" && event.isTrusted ? !0 : $c87311424ea30a05$export$a11b0059900ceec8() && event.pointerType ? event.type === "click" && event.buttons === 1 : event.detail === 0 && !event.pointerType; 62064} 62065function $6a7db85432448f7f$export$29bf1b5f2c56cf63(event) { 62066 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"; 62067} 62068
vendor: 112 bytes, lines 62069-62071
62069// ../../node_modules/@react-aria/utils/dist/useDeepMemo.mjs 62070var import_react39 = __toESM(require_react(), 1); 62071
vendor: 113 bytes, lines 62072-62074
62072// ../../node_modules/@react-aria/utils/dist/useFormReset.mjs 62073var import_react40 = __toESM(require_react(), 1); 62074
vendor: 112 bytes, lines 62075-62077
62075// ../../node_modules/@react-aria/utils/dist/useLoadMore.mjs 62076var import_react41 = __toESM(require_react(), 1); 62077
vendor: 120 bytes, lines 62078-62080
62078// ../../node_modules/@react-aria/utils/dist/useLoadMoreSentinel.mjs 62079var import_react42 = __toESM(require_react(), 1); 62080
vendor: 297 bytes, lines 62081-62087
62081// ../../node_modules/@react-aria/utils/dist/inertValue.mjs 62082var import_react43 = __toESM(require_react(), 1); 62083function $cdc5a6778b766db2$export$a9d04c5684123369(value) { 62084 let pieces = import_react43.version.split("."); 62085 return parseInt(pieces[0], 10) >= 19 ? value : value ? "true" : void 0; 62086} 62087
vendor: 198 bytes, lines 62088-62090
62088// ../../node_modules/@react-aria/utils/dist/constants.mjs 62089var $5671b20cf9b562b2$export$447a38995de2c711 = "react-aria-clear-focus", $5671b20cf9b562b2$export$831c820ad60f9d12 = "react-aria-focus"; 62090
vendor: 2,054 bytes, lines 62091-62147
62091// ../../node_modules/@react-aria/utils/dist/animation.mjs 62092var import_react_dom = __toESM(require_react_dom(), 1), import_react44 = __toESM(require_react(), 1); 62093function $d3f049242431219c$export$6d3443f2c48bfc20(ref, isReady = !0) { 62094 let [isEntering, setEntering] = (0, import_react44.useState)(!0), isAnimationReady = isEntering && isReady; 62095 return $f0a04ccd8dbdd83b$export$e5c5a5f917a5871c(() => { 62096 if (isAnimationReady && ref.current && "getAnimations" in ref.current) 62097 for (let animation2 of ref.current.getAnimations()) animation2 instanceof CSSTransition && animation2.cancel(); 62098 }, [ 62099 ref, 62100 isAnimationReady 62101 ]), $d3f049242431219c$var$useAnimation(ref, isAnimationReady, (0, import_react44.useCallback)(() => setEntering(!1), [])), isAnimationReady; 62102} 62103function $d3f049242431219c$export$45fda7c47f93fd48(ref, isOpen) { 62104 let [exitState, setExitState] = (0, import_react44.useState)(isOpen ? "open" : "closed"); 62105 switch (exitState) { 62106 case "open": 62107 isOpen || setExitState("exiting"); 62108 break; 62109 case "closed": 62110 case "exiting": 62111 isOpen && setExitState("open"); 62112 break; 62113 } 62114 let isExiting = exitState === "exiting"; 62115 return $d3f049242431219c$var$useAnimation(ref, isExiting, (0, import_react44.useCallback)(() => { 62116 setExitState((state3) => state3 === "exiting" ? "closed" : state3); 62117 }, [])), isExiting; 62118} 62119function $d3f049242431219c$var$useAnimation(ref, isActive, onEnd) { 62120 $f0a04ccd8dbdd83b$export$e5c5a5f917a5871c(() => { 62121 if (isActive && ref.current) { 62122 if (!("getAnimations" in ref.current)) { 62123 onEnd(); 62124 return; 62125 } 62126 let animations = ref.current.getAnimations(); 62127 if (animations.length === 0) { 62128 onEnd(); 62129 return; 62130 } 62131 let canceled = !1; 62132 return Promise.all(animations.map((a3) => a3.finished)).then(() => { 62133 canceled || (0, import_react_dom.flushSync)(() => { 62134 onEnd(); 62135 }); 62136 }).catch(() => { 62137 }), () => { 62138 canceled = !0; 62139 }; 62140 } 62141 }, [ 62142 ref, 62143 isActive, 62144 onEnd 62145 ]); 62146} 62147
vendor: 1,766 bytes, lines 62148-62169
62148// ../../node_modules/@react-aria/utils/dist/isElementVisible.mjs 62149var $7d2416ea0959daaa$var$supportsCheckVisibility = typeof Element < "u" && "checkVisibility" in Element.prototype; 62150function $7d2416ea0959daaa$var$isStyleVisible(element) { 62151 let windowObject = $431fbd86ca7dc216$export$f21a1ffae260145a(element); 62152 if (!(element instanceof windowObject.HTMLElement) && !(element instanceof windowObject.SVGElement)) return !1; 62153 let { display: display2, visibility } = element.style, isVisible2 = display2 !== "none" && visibility !== "hidden" && visibility !== "collapse"; 62154 if (isVisible2) { 62155 let { getComputedStyle: getComputedStyle3 } = element.ownerDocument.defaultView, { display: computedDisplay, visibility: computedVisibility } = getComputedStyle3(element); 62156 isVisible2 = computedDisplay !== "none" && computedVisibility !== "hidden" && computedVisibility !== "collapse"; 62157 } 62158 return isVisible2; 62159} 62160function $7d2416ea0959daaa$var$isAttributeVisible(element, childElement) { 62161 return !element.hasAttribute("hidden") && // Ignore HiddenSelect when tree walking. 62162 !element.hasAttribute("data-react-aria-prevent-focus") && (element.nodeName === "DETAILS" && childElement && childElement.nodeName !== "SUMMARY" ? element.hasAttribute("open") : !0); 62163} 62164function $7d2416ea0959daaa$export$e989c0fffaa6b27a(element, childElement) { 62165 return $7d2416ea0959daaa$var$supportsCheckVisibility ? element.checkVisibility({ 62166 visibilityProperty: !0 62167 }) && !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)); 62168} 62169
vendor: 1,555 bytes, lines 62170-62203
62170// ../../node_modules/@react-aria/utils/dist/isFocusable.mjs 62171var $b4b717babfbb907b$var$focusableElements = [ 62172 "input:not([disabled]):not([type=hidden])", 62173 "select:not([disabled])", 62174 "textarea:not([disabled])", 62175 "button:not([disabled])", 62176 "a[href]", 62177 "area[href]", 62178 "summary", 62179 "iframe", 62180 "object", 62181 "embed", 62182 "audio[controls]", 62183 "video[controls]", 62184 '[contenteditable]:not([contenteditable^="false"])', 62185 "permission" 62186], $b4b717babfbb907b$var$FOCUSABLE_ELEMENT_SELECTOR = $b4b717babfbb907b$var$focusableElements.join(":not([hidden]),") + ",[tabindex]:not([disabled]):not([hidden])"; 62187$b4b717babfbb907b$var$focusableElements.push('[tabindex]:not([tabindex="-1"]):not([disabled])'); 62188var $b4b717babfbb907b$var$TABBABLE_ELEMENT_SELECTOR = $b4b717babfbb907b$var$focusableElements.join(':not([hidden]):not([tabindex="-1"]),'); 62189function $b4b717babfbb907b$export$4c063cf1350e6fed(element) { 62190 return element.matches($b4b717babfbb907b$var$FOCUSABLE_ELEMENT_SELECTOR) && $7d2416ea0959daaa$export$e989c0fffaa6b27a(element) && !$b4b717babfbb907b$var$isInert(element); 62191} 62192function $b4b717babfbb907b$export$bebd5a1431fec25d(element) { 62193 return element.matches($b4b717babfbb907b$var$TABBABLE_ELEMENT_SELECTOR) && $7d2416ea0959daaa$export$e989c0fffaa6b27a(element) && !$b4b717babfbb907b$var$isInert(element); 62194} 62195function $b4b717babfbb907b$var$isInert(element) { 62196 let node2 = element; 62197 for (; node2 != null; ) { 62198 if (node2 instanceof node2.ownerDocument.defaultView.HTMLElement && node2.inert) return !0; 62199 node2 = node2.parentElement; 62200 } 62201 return !1; 62202} 62203
vendor: 1,577 bytes, lines 62204-62230
62204// ../../node_modules/@react-stately/utils/dist/useControlledState.mjs 62205var import_react45 = __toESM(require_react(), 1), $458b0a5536c1a7cf$var$_React_useInsertionEffect, $458b0a5536c1a7cf$var$useEarlyEffect = typeof document < "u" ? ($458b0a5536c1a7cf$var$_React_useInsertionEffect = import_react45.default.useInsertionEffect) !== null && $458b0a5536c1a7cf$var$_React_useInsertionEffect !== void 0 ? $458b0a5536c1a7cf$var$_React_useInsertionEffect : import_react45.default.useLayoutEffect : () => { 62206}; 62207function $458b0a5536c1a7cf$export$40bfa8c7b0832715(value, defaultValue, onChange) { 62208 let [stateValue, setStateValue] = (0, import_react45.useState)(value || defaultValue), valueRef = (0, import_react45.useRef)(stateValue), isControlledRef = (0, import_react45.useRef)(value !== void 0), isControlled = value !== void 0; 62209 (0, import_react45.useEffect)(() => { 62210 let wasControlled = isControlledRef.current; 62211 isControlledRef.current = isControlled; 62212 }, [ 62213 isControlled 62214 ]); 62215 let currentValue = isControlled ? value : stateValue; 62216 $458b0a5536c1a7cf$var$useEarlyEffect(() => { 62217 valueRef.current = currentValue; 62218 }); 62219 let [, forceUpdate] = (0, import_react45.useReducer)(() => ({}), {}), setValue = (0, import_react45.useCallback)((value2, ...args) => { 62220 let newValue = typeof value2 == "function" ? value2(valueRef.current) : value2; 62221 Object.is(valueRef.current, newValue) || (valueRef.current = newValue, setStateValue(newValue), forceUpdate(), onChange?.(newValue, ...args)); 62222 }, [ 62223 onChange 62224 ]); 62225 return [ 62226 currentValue, 62227 setValue 62228 ]; 62229} 62230
vendor: 199 bytes, lines 62231-62235
62231// ../../node_modules/@react-stately/utils/dist/number.mjs 62232function $9446cca9a3875146$export$7d15b64cf5a3a4c4(value, min2 = -1 / 0, max2 = 1 / 0) { 62233 return Math.min(Math.max(value, min2), max2); 62234} 62235
vendor: 4,321 bytes, lines 62236-62320
62236// ../../node_modules/@react-aria/interactions/dist/utils.mjs 62237var import_react46 = __toESM(require_react(), 1); 62238function $8a9cb279dc87e130$export$525bc4921d56d4a(nativeEvent) { 62239 let event = nativeEvent; 62240 return event.nativeEvent = nativeEvent, event.isDefaultPrevented = () => event.defaultPrevented, event.isPropagationStopped = () => event.cancelBubble, event.persist = () => { 62241 }, event; 62242} 62243function $8a9cb279dc87e130$export$c2b7abe5d61ec696(event, target) { 62244 Object.defineProperty(event, "target", { 62245 value: target 62246 }), Object.defineProperty(event, "currentTarget", { 62247 value: target 62248 }); 62249} 62250function $8a9cb279dc87e130$export$715c682d09d639cc(onBlur) { 62251 let stateRef = (0, import_react46.useRef)({ 62252 isFocused: !1, 62253 observer: null 62254 }); 62255 $f0a04ccd8dbdd83b$export$e5c5a5f917a5871c(() => { 62256 let state3 = stateRef.current; 62257 return () => { 62258 state3.observer && (state3.observer.disconnect(), state3.observer = null); 62259 }; 62260 }, []); 62261 let dispatchBlur = $8ae05eaa5c114e9c$export$7f54fc3180508a52((e) => { 62262 onBlur?.(e); 62263 }); 62264 return (0, import_react46.useCallback)((e) => { 62265 if (e.target instanceof HTMLButtonElement || e.target instanceof HTMLInputElement || e.target instanceof HTMLTextAreaElement || e.target instanceof HTMLSelectElement) { 62266 stateRef.current.isFocused = !0; 62267 let target = e.target, onBlurHandler = (e2) => { 62268 if (stateRef.current.isFocused = !1, target.disabled) { 62269 let event = $8a9cb279dc87e130$export$525bc4921d56d4a(e2); 62270 dispatchBlur(event); 62271 } 62272 stateRef.current.observer && (stateRef.current.observer.disconnect(), stateRef.current.observer = null); 62273 }; 62274 target.addEventListener("focusout", onBlurHandler, { 62275 once: !0 62276 }), stateRef.current.observer = new MutationObserver(() => { 62277 if (stateRef.current.isFocused && target.disabled) { 62278 var _stateRef_current_observer; 62279 (_stateRef_current_observer = stateRef.current.observer) === null || _stateRef_current_observer === void 0 || _stateRef_current_observer.disconnect(); 62280 let relatedTargetEl = target === document.activeElement ? null : document.activeElement; 62281 target.dispatchEvent(new FocusEvent("blur", { 62282 relatedTarget: relatedTargetEl 62283 })), target.dispatchEvent(new FocusEvent("focusout", { 62284 bubbles: !0, 62285 relatedTarget: relatedTargetEl 62286 })); 62287 } 62288 }), stateRef.current.observer.observe(target, { 62289 attributes: !0, 62290 attributeFilter: [ 62291 "disabled" 62292 ] 62293 }); 62294 } 62295 }, [ 62296 dispatchBlur 62297 ]); 62298} 62299var $8a9cb279dc87e130$export$fda7da73ab5d4c48 = !1; 62300function $8a9cb279dc87e130$export$cabe61c495ee3649(target) { 62301 for (; target && !$b4b717babfbb907b$export$4c063cf1350e6fed(target); ) target = target.parentElement; 62302 let window2 = $431fbd86ca7dc216$export$f21a1ffae260145a(target), activeElement = window2.document.activeElement; 62303 if (!activeElement || activeElement === target) return; 62304 $8a9cb279dc87e130$export$fda7da73ab5d4c48 = !0; 62305 let isRefocusing = !1, onBlur = (e) => { 62306 (e.target === activeElement || isRefocusing) && e.stopImmediatePropagation(); 62307 }, onFocusOut = (e) => { 62308 (e.target === activeElement || isRefocusing) && (e.stopImmediatePropagation(), !target && !isRefocusing && (isRefocusing = !0, $7215afc6de606d6b$export$de79e2c695e052f3(activeElement), cleanup())); 62309 }, onFocus = (e) => { 62310 (e.target === target || isRefocusing) && e.stopImmediatePropagation(); 62311 }, onFocusIn = (e) => { 62312 (e.target === target || isRefocusing) && (e.stopImmediatePropagation(), isRefocusing || (isRefocusing = !0, $7215afc6de606d6b$export$de79e2c695e052f3(activeElement), cleanup())); 62313 }; 62314 window2.addEventListener("blur", onBlur, !0), window2.addEventListener("focusout", onFocusOut, !0), window2.addEventListener("focusin", onFocusIn, !0), window2.addEventListener("focus", onFocus, !0); 62315 let cleanup = () => { 62316 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; 62317 }, raf = requestAnimationFrame(cleanup); 62318 return cleanup; 62319} 62320
vendor: 2,247 bytes, lines 62321-62351
62321// ../../node_modules/@react-aria/interactions/dist/textSelection.mjs 62322var $14c0b72509d70225$var$state = "default", $14c0b72509d70225$var$savedUserSelect = "", $14c0b72509d70225$var$modifiedElementMap = /* @__PURE__ */ new WeakMap(); 62323function $14c0b72509d70225$export$16a4697467175487(target) { 62324 if ($c87311424ea30a05$export$fedb369cb70207f1()) { 62325 if ($14c0b72509d70225$var$state === "default") { 62326 let documentObject = $431fbd86ca7dc216$export$b204af158042fbac(target); 62327 $14c0b72509d70225$var$savedUserSelect = documentObject.documentElement.style.webkitUserSelect, documentObject.documentElement.style.webkitUserSelect = "none"; 62328 } 62329 $14c0b72509d70225$var$state = "disabled"; 62330 } else if (target instanceof HTMLElement || target instanceof SVGElement) { 62331 let property = "userSelect" in target.style ? "userSelect" : "webkitUserSelect"; 62332 $14c0b72509d70225$var$modifiedElementMap.set(target, target.style[property]), target.style[property] = "none"; 62333 } 62334} 62335function $14c0b72509d70225$export$b0d6fa1ab32e3295(target) { 62336 if ($c87311424ea30a05$export$fedb369cb70207f1()) { 62337 if ($14c0b72509d70225$var$state !== "disabled") return; 62338 $14c0b72509d70225$var$state = "restoring", setTimeout(() => { 62339 $bbed8b41f857bcc0$export$24490316f764c430(() => { 62340 if ($14c0b72509d70225$var$state === "restoring") { 62341 let documentObject = $431fbd86ca7dc216$export$b204af158042fbac(target); 62342 documentObject.documentElement.style.webkitUserSelect === "none" && (documentObject.documentElement.style.webkitUserSelect = $14c0b72509d70225$var$savedUserSelect || ""), $14c0b72509d70225$var$savedUserSelect = "", $14c0b72509d70225$var$state = "default"; 62343 } 62344 }); 62345 }, 300); 62346 } else if ((target instanceof HTMLElement || target instanceof SVGElement) && target && $14c0b72509d70225$var$modifiedElementMap.has(target)) { 62347 let targetOldUserSelect = $14c0b72509d70225$var$modifiedElementMap.get(target), property = "userSelect" in target.style ? "userSelect" : "webkitUserSelect"; 62348 target.style[property] === "none" && (target.style[property] = targetOldUserSelect), target.getAttribute("style") === "" && target.removeAttribute("style"), $14c0b72509d70225$var$modifiedElementMap.delete(target); 62349 } 62350} 62351
vendor: 307 bytes, lines 62352-62358
62352// ../../node_modules/@react-aria/interactions/dist/context.mjs 62353var import_react47 = __toESM(require_react(), 1), $ae1eeba8b9eafd08$export$5165eccb35aaadb5 = import_react47.default.createContext({ 62354 register: () => { 62355 } 62356}); 62357$ae1eeba8b9eafd08$export$5165eccb35aaadb5.displayName = "PressResponderContext"; 62358
vendor: 210 bytes, lines 62359-62363
62359// ../../node_modules/@swc/helpers/esm/_class_apply_descriptor_get.js 62360function _class_apply_descriptor_get(receiver, descriptor) { 62361 return descriptor.get ? descriptor.get.call(receiver) : descriptor.value; 62362} 62363
vendor: 302 bytes, lines 62364-62369
62364// ../../node_modules/@swc/helpers/esm/_class_extract_field_descriptor.js 62365function _class_extract_field_descriptor(receiver, privateMap, action2) { 62366 if (!privateMap.has(receiver)) throw new TypeError("attempted to " + action2 + " private field on non-instance"); 62367 return privateMap.get(receiver); 62368} 62369
vendor: 269 bytes, lines 62370-62375
62370// ../../node_modules/@swc/helpers/esm/_class_private_field_get.js 62371function _class_private_field_get(receiver, privateMap) { 62372 var descriptor = _class_extract_field_descriptor(receiver, privateMap, "get"); 62373 return _class_apply_descriptor_get(receiver, descriptor); 62374} 62375
vendor: 263 bytes, lines 62376-62381
62376// ../../node_modules/@swc/helpers/esm/_check_private_redeclaration.js 62377function _check_private_redeclaration(obj, privateCollection) { 62378 if (privateCollection.has(obj)) 62379 throw new TypeError("Cannot initialize the same private elements twice on an object"); 62380} 62381
vendor: 209 bytes, lines 62382-62386
62382// ../../node_modules/@swc/helpers/esm/_class_private_field_init.js 62383function _class_private_field_init(obj, privateMap, value) { 62384 _check_private_redeclaration(obj, privateMap), privateMap.set(obj, value); 62385} 62386
vendor: 345 bytes, lines 62387-62396
62387// ../../node_modules/@swc/helpers/esm/_class_apply_descriptor_set.js 62388function _class_apply_descriptor_set(receiver, descriptor, value) { 62389 if (descriptor.set) descriptor.set.call(receiver, value); 62390 else { 62391 if (!descriptor.writable) 62392 throw new TypeError("attempted to set read only private field"); 62393 descriptor.value = value; 62394 } 62395} 62396
vendor: 290 bytes, lines 62397-62402
62397// ../../node_modules/@swc/helpers/esm/_class_private_field_set.js 62398function _class_private_field_set(receiver, privateMap, value) { 62399 var descriptor = _class_extract_field_descriptor(receiver, privateMap, "set"); 62400 return _class_apply_descriptor_set(receiver, descriptor, value), value; 62401} 62402
vendor: 17,740 bytes, lines 62403-62666
62403// ../../node_modules/@react-aria/interactions/dist/usePress.mjs 62404var import_react_dom2 = __toESM(require_react_dom(), 1), import_react48 = __toESM(require_react(), 1); 62405function $f6c31cce2adf654f$var$usePressResponderContext(props) { 62406 let context = (0, import_react48.useContext)($ae1eeba8b9eafd08$export$5165eccb35aaadb5); 62407 if (context) { 62408 let { register, ...contextProps } = context; 62409 props = $3ef42575df84b30b$export$9d1611c77c2fe928(contextProps, props), register(); 62410 } 62411 return $e7801be82b4b2a53$export$4debdb1a3f0fa79e(context, props.ref), props; 62412} 62413var $f6c31cce2adf654f$var$_shouldStopPropagation = /* @__PURE__ */ new WeakMap(), $f6c31cce2adf654f$var$PressEvent = class { 62414 continuePropagation() { 62415 _class_private_field_set(this, $f6c31cce2adf654f$var$_shouldStopPropagation, !1); 62416 } 62417 get shouldStopPropagation() { 62418 return _class_private_field_get(this, $f6c31cce2adf654f$var$_shouldStopPropagation); 62419 } 62420 constructor(type5, pointerType, originalEvent, state3) { 62421 _class_private_field_init(this, $f6c31cce2adf654f$var$_shouldStopPropagation, { 62422 writable: !0, 62423 value: void 0 62424 }), _class_private_field_set(this, $f6c31cce2adf654f$var$_shouldStopPropagation, !0); 62425 var _state_target; 62426 let currentTarget = (_state_target = state3?.target) !== null && _state_target !== void 0 ? _state_target : originalEvent.currentTarget, rect = currentTarget?.getBoundingClientRect(), x, y = 0, clientX, clientY = null; 62427 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; 62428 } 62429}, $f6c31cce2adf654f$var$LINK_CLICKED = Symbol("linkClicked"), $f6c31cce2adf654f$var$STYLE_ID = "react-aria-pressable-style", $f6c31cce2adf654f$var$PRESSABLE_ATTRIBUTE = "data-react-aria-pressable"; 62430function $f6c31cce2adf654f$export$45712eceda6fad21(props) { 62431 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_react48.useState)(!1), ref = (0, import_react48.useRef)({ 62432 isPressed: !1, 62433 ignoreEmulatedMouseEvents: !1, 62434 didFirePressStart: !1, 62435 isTriggeringEvent: !1, 62436 activePointerId: null, 62437 target: null, 62438 isOverTarget: !1, 62439 pointerType: null, 62440 disposables: [] 62441 }), { addGlobalListener, removeAllGlobalListeners } = $03deb23ff14920c4$export$4eaf04e54aa8eed6(), triggerPressStart = $8ae05eaa5c114e9c$export$7f54fc3180508a52((originalEvent, pointerType) => { 62442 let state3 = ref.current; 62443 if (isDisabled3 || state3.didFirePressStart) return !1; 62444 let shouldStopPropagation = !0; 62445 if (state3.isTriggeringEvent = !0, onPressStart) { 62446 let event = new $f6c31cce2adf654f$var$PressEvent("pressstart", pointerType, originalEvent); 62447 onPressStart(event), shouldStopPropagation = event.shouldStopPropagation; 62448 } 62449 return onPressChange && onPressChange(!0), state3.isTriggeringEvent = !1, state3.didFirePressStart = !0, setPressed(!0), shouldStopPropagation; 62450 }), triggerPressEnd = $8ae05eaa5c114e9c$export$7f54fc3180508a52((originalEvent, pointerType, wasPressed = !0) => { 62451 let state3 = ref.current; 62452 if (!state3.didFirePressStart) return !1; 62453 state3.didFirePressStart = !1, state3.isTriggeringEvent = !0; 62454 let shouldStopPropagation = !0; 62455 if (onPressEnd) { 62456 let event = new $f6c31cce2adf654f$var$PressEvent("pressend", pointerType, originalEvent); 62457 onPressEnd(event), shouldStopPropagation = event.shouldStopPropagation; 62458 } 62459 if (onPressChange && onPressChange(!1), setPressed(!1), onPress && wasPressed && !isDisabled3) { 62460 let event = new $f6c31cce2adf654f$var$PressEvent("press", pointerType, originalEvent); 62461 onPress(event), shouldStopPropagation && (shouldStopPropagation = event.shouldStopPropagation); 62462 } 62463 return state3.isTriggeringEvent = !1, shouldStopPropagation; 62464 }), triggerPressUp = $8ae05eaa5c114e9c$export$7f54fc3180508a52((originalEvent, pointerType) => { 62465 let state3 = ref.current; 62466 if (isDisabled3) return !1; 62467 if (onPressUp) { 62468 state3.isTriggeringEvent = !0; 62469 let event = new $f6c31cce2adf654f$var$PressEvent("pressup", pointerType, originalEvent); 62470 return onPressUp(event), state3.isTriggeringEvent = !1, event.shouldStopPropagation; 62471 } 62472 return !0; 62473 }), cancel = $8ae05eaa5c114e9c$export$7f54fc3180508a52((e) => { 62474 let state3 = ref.current; 62475 if (state3.isPressed && state3.target) { 62476 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); 62477 for (let dispose of state3.disposables) dispose(); 62478 state3.disposables = []; 62479 } 62480 }), cancelOnPointerExit = $8ae05eaa5c114e9c$export$7f54fc3180508a52((e) => { 62481 shouldCancelOnPointerExit && cancel(e); 62482 }), triggerClick = $8ae05eaa5c114e9c$export$7f54fc3180508a52((e) => { 62483 isDisabled3 || onClick?.(e); 62484 }), triggerSyntheticClick = $8ae05eaa5c114e9c$export$7f54fc3180508a52((e, target) => { 62485 if (!isDisabled3 && onClick) { 62486 let event = new MouseEvent("click", e); 62487 $8a9cb279dc87e130$export$c2b7abe5d61ec696(event, target), onClick($8a9cb279dc87e130$export$525bc4921d56d4a(event)); 62488 } 62489 }), pressProps = (0, import_react48.useMemo)(() => { 62490 let state3 = ref.current, pressProps2 = { 62491 onKeyDown(e) { 62492 if ($f6c31cce2adf654f$var$isValidKeyboardEvent(e.nativeEvent, e.currentTarget) && $d4ee10de306f2510$export$4282f70798064fe0(e.currentTarget, $d4ee10de306f2510$export$e58f029f0fbfdb29(e.nativeEvent))) { 62493 var _state_metaKeyEvents; 62494 $f6c31cce2adf654f$var$shouldPreventDefaultKeyboard($d4ee10de306f2510$export$e58f029f0fbfdb29(e.nativeEvent), e.key) && e.preventDefault(); 62495 let shouldStopPropagation = !0; 62496 if (!state3.isPressed && !e.repeat) { 62497 state3.target = e.currentTarget, state3.isPressed = !0, state3.pointerType = "keyboard", shouldStopPropagation = triggerPressStart(e, "keyboard"); 62498 let originalTarget = e.currentTarget, pressUp = (e2) => { 62499 $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"); 62500 }; 62501 addGlobalListener($431fbd86ca7dc216$export$b204af158042fbac(e.currentTarget), "keyup", $ff5963eb1fccf552$export$e08e3b67e392101e(pressUp, onKeyUp), !0); 62502 } 62503 shouldStopPropagation && e.stopPropagation(), e.metaKey && $c87311424ea30a05$export$9ac100e40613ea10() && ((_state_metaKeyEvents = state3.metaKeyEvents) === null || _state_metaKeyEvents === void 0 || _state_metaKeyEvents.set(e.key, e.nativeEvent)); 62504 } else e.key === "Meta" && (state3.metaKeyEvents = /* @__PURE__ */ new Map()); 62505 }, 62506 onClick(e) { 62507 if (!(e && !$d4ee10de306f2510$export$4282f70798064fe0(e.currentTarget, $d4ee10de306f2510$export$e58f029f0fbfdb29(e.nativeEvent))) && e && e.button === 0 && !state3.isTriggeringEvent && !$ea8dcbcb9ea1b556$export$95185d699e05d4d7.isOpening) { 62508 let shouldStopPropagation = !0; 62509 if (isDisabled3 && e.preventDefault(), !state3.ignoreEmulatedMouseEvents && !state3.isPressed && (state3.pointerType === "virtual" || $6a7db85432448f7f$export$60278871457622de(e.nativeEvent))) { 62510 let stopPressStart = triggerPressStart(e, "virtual"), stopPressUp = triggerPressUp(e, "virtual"), stopPressEnd = triggerPressEnd(e, "virtual"); 62511 triggerClick(e), shouldStopPropagation = stopPressStart && stopPressUp && stopPressEnd; 62512 } else if (state3.isPressed && state3.pointerType !== "keyboard") { 62513 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); 62514 shouldStopPropagation = stopPressUp && stopPressEnd, state3.isOverTarget = !1, triggerClick(e), cancel(e); 62515 } 62516 state3.ignoreEmulatedMouseEvents = !1, shouldStopPropagation && e.stopPropagation(); 62517 } 62518 } 62519 }, onKeyUp = (e) => { 62520 var _state_metaKeyEvents; 62521 if (state3.isPressed && state3.target && $f6c31cce2adf654f$var$isValidKeyboardEvent(e, state3.target)) { 62522 var _state_metaKeyEvents1; 62523 $f6c31cce2adf654f$var$shouldPreventDefaultKeyboard($d4ee10de306f2510$export$e58f029f0fbfdb29(e), e.key) && e.preventDefault(); 62524 let target = $d4ee10de306f2510$export$e58f029f0fbfdb29(e), wasPressed = $d4ee10de306f2510$export$4282f70798064fe0(state3.target, $d4ee10de306f2510$export$e58f029f0fbfdb29(e)); 62525 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); 62526 } else if (e.key === "Meta" && (!((_state_metaKeyEvents = state3.metaKeyEvents) === null || _state_metaKeyEvents === void 0) && _state_metaKeyEvents.size)) { 62527 var _state_target; 62528 let events2 = state3.metaKeyEvents; 62529 state3.metaKeyEvents = void 0; 62530 for (let event of events2.values()) (_state_target = state3.target) === null || _state_target === void 0 || _state_target.dispatchEvent(new KeyboardEvent("keyup", event)); 62531 } 62532 }; 62533 if (typeof PointerEvent < "u") { 62534 pressProps2.onPointerDown = (e) => { 62535 if (e.button !== 0 || !$d4ee10de306f2510$export$4282f70798064fe0(e.currentTarget, $d4ee10de306f2510$export$e58f029f0fbfdb29(e.nativeEvent))) return; 62536 if ($6a7db85432448f7f$export$29bf1b5f2c56cf63(e.nativeEvent)) { 62537 state3.pointerType = "virtual"; 62538 return; 62539 } 62540 state3.pointerType = e.pointerType; 62541 let shouldStopPropagation = !0; 62542 if (!state3.isPressed) { 62543 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); 62544 let target = $d4ee10de306f2510$export$e58f029f0fbfdb29(e.nativeEvent); 62545 "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); 62546 } 62547 shouldStopPropagation && e.stopPropagation(); 62548 }, pressProps2.onMouseDown = (e) => { 62549 if ($d4ee10de306f2510$export$4282f70798064fe0(e.currentTarget, $d4ee10de306f2510$export$e58f029f0fbfdb29(e.nativeEvent)) && e.button === 0) { 62550 if (preventFocusOnPress) { 62551 let dispose = $8a9cb279dc87e130$export$cabe61c495ee3649(e.target); 62552 dispose && state3.disposables.push(dispose); 62553 } 62554 e.stopPropagation(); 62555 } 62556 }, pressProps2.onPointerUp = (e) => { 62557 !$d4ee10de306f2510$export$4282f70798064fe0(e.currentTarget, $d4ee10de306f2510$export$e58f029f0fbfdb29(e.nativeEvent)) || state3.pointerType === "virtual" || e.button === 0 && !state3.isPressed && triggerPressUp(e, state3.pointerType || e.pointerType); 62558 }, pressProps2.onPointerEnter = (e) => { 62559 e.pointerId === state3.activePointerId && state3.target && !state3.isOverTarget && state3.pointerType != null && (state3.isOverTarget = !0, triggerPressStart($f6c31cce2adf654f$var$createEvent(state3.target, e), state3.pointerType)); 62560 }, pressProps2.onPointerLeave = (e) => { 62561 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)); 62562 }; 62563 let onPointerUp = (e) => { 62564 if (e.pointerId === state3.activePointerId && state3.isPressed && e.button === 0 && state3.target) { 62565 if ($d4ee10de306f2510$export$4282f70798064fe0(state3.target, $d4ee10de306f2510$export$e58f029f0fbfdb29(e)) && state3.pointerType != null) { 62566 let clicked = !1, timeout = setTimeout(() => { 62567 state3.isPressed && state3.target instanceof HTMLElement && (clicked ? cancel(e) : ($7215afc6de606d6b$export$de79e2c695e052f3(state3.target), state3.target.click())); 62568 }, 80); 62569 addGlobalListener(e.currentTarget, "click", () => clicked = !0, !0), state3.disposables.push(() => clearTimeout(timeout)); 62570 } else cancel(e); 62571 state3.isOverTarget = !1; 62572 } 62573 }, onPointerCancel = (e) => { 62574 cancel(e); 62575 }; 62576 pressProps2.onDragStart = (e) => { 62577 $d4ee10de306f2510$export$4282f70798064fe0(e.currentTarget, $d4ee10de306f2510$export$e58f029f0fbfdb29(e.nativeEvent)) && cancel(e); 62578 }; 62579 } 62580 return pressProps2; 62581 }, [ 62582 addGlobalListener, 62583 isDisabled3, 62584 preventFocusOnPress, 62585 removeAllGlobalListeners, 62586 allowTextSelectionOnPress, 62587 cancel, 62588 cancelOnPointerExit, 62589 triggerPressEnd, 62590 triggerPressStart, 62591 triggerPressUp, 62592 triggerClick, 62593 triggerSyntheticClick 62594 ]); 62595 return (0, import_react48.useEffect)(() => { 62596 if (!domRef) return; 62597 let ownerDocument = $431fbd86ca7dc216$export$b204af158042fbac(domRef.current); 62598 if (!ownerDocument || !ownerDocument.head || ownerDocument.getElementById($f6c31cce2adf654f$var$STYLE_ID)) return; 62599 let style = ownerDocument.createElement("style"); 62600 style.id = $f6c31cce2adf654f$var$STYLE_ID, style.textContent = ` 62601@layer { 62602 [${$f6c31cce2adf654f$var$PRESSABLE_ATTRIBUTE}] { 62603 touch-action: pan-x pan-y pinch-zoom; 62604 } 62605} 62606 `.trim(), ownerDocument.head.prepend(style); 62607 }, [ 62608 domRef 62609 ]), (0, import_react48.useEffect)(() => { 62610 let state3 = ref.current; 62611 return () => { 62612 var _state_target; 62613 allowTextSelectionOnPress || $14c0b72509d70225$export$b0d6fa1ab32e3295((_state_target = state3.target) !== null && _state_target !== void 0 ? _state_target : void 0); 62614 for (let dispose of state3.disposables) dispose(); 62615 state3.disposables = []; 62616 }; 62617 }, [ 62618 allowTextSelectionOnPress 62619 ]), { 62620 isPressed: isPressedProp || isPressed, 62621 pressProps: $3ef42575df84b30b$export$9d1611c77c2fe928(domProps, pressProps, { 62622 [$f6c31cce2adf654f$var$PRESSABLE_ATTRIBUTE]: !0 62623 }) 62624 }; 62625} 62626function $f6c31cce2adf654f$var$isHTMLAnchorLink(target) { 62627 return target.tagName === "A" && target.hasAttribute("href"); 62628} 62629function $f6c31cce2adf654f$var$isValidKeyboardEvent(event, currentTarget) { 62630 let { key, code } = event, element = currentTarget, role = element.getAttribute("role"); 62631 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 62632 !((role === "link" || !role && $f6c31cce2adf654f$var$isHTMLAnchorLink(element)) && key !== "Enter"); 62633} 62634function $f6c31cce2adf654f$var$createEvent(target, e) { 62635 let clientX = e.clientX, clientY = e.clientY; 62636 return { 62637 currentTarget: target, 62638 shiftKey: e.shiftKey, 62639 ctrlKey: e.ctrlKey, 62640 metaKey: e.metaKey, 62641 altKey: e.altKey, 62642 clientX, 62643 clientY 62644 }; 62645} 62646function $f6c31cce2adf654f$var$shouldPreventDefaultUp(target) { 62647 return target instanceof HTMLInputElement ? !1 : target instanceof HTMLButtonElement ? target.type !== "submit" && target.type !== "reset" : !$f6c31cce2adf654f$var$isHTMLAnchorLink(target); 62648} 62649function $f6c31cce2adf654f$var$shouldPreventDefaultKeyboard(target, key) { 62650 return target instanceof HTMLInputElement ? !$f6c31cce2adf654f$var$isValidInputKey(target, key) : $f6c31cce2adf654f$var$shouldPreventDefaultUp(target); 62651} 62652var $f6c31cce2adf654f$var$nonTextInputTypes = /* @__PURE__ */ new Set([ 62653 "checkbox", 62654 "radio", 62655 "range", 62656 "color", 62657 "file", 62658 "image", 62659 "button", 62660 "submit", 62661 "reset" 62662]); 62663function $f6c31cce2adf654f$var$isValidInputKey(target, key) { 62664 return target.type === "checkbox" || target.type === "radio" ? key === " " : $f6c31cce2adf654f$var$nonTextInputTypes.has(target.type); 62665} 62666
vendor: 8,267 bytes, lines 62667-62761
62667// ../../node_modules/@react-aria/interactions/dist/useFocusVisible.mjs 62668var import_react49 = __toESM(require_react(), 1); 62669var $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 = { 62670 Tab: !0, 62671 Escape: !0 62672}; 62673function $507fabe10e71c6fb$var$triggerChangeHandlers(modality, e) { 62674 for (let handler of $507fabe10e71c6fb$var$changeHandlers) handler(modality, e); 62675} 62676function $507fabe10e71c6fb$var$isValidKey(e) { 62677 return !(e.metaKey || !$c87311424ea30a05$export$9ac100e40613ea10() && e.altKey || e.ctrlKey || e.key === "Control" || e.key === "Shift" || e.key === "Meta"); 62678} 62679function $507fabe10e71c6fb$var$handleKeyboardEvent(e) { 62680 $507fabe10e71c6fb$var$hasEventBeforeFocus = !0, $507fabe10e71c6fb$var$isValidKey(e) && ($507fabe10e71c6fb$var$currentModality = "keyboard", $507fabe10e71c6fb$var$triggerChangeHandlers("keyboard", e)); 62681} 62682function $507fabe10e71c6fb$var$handlePointerEvent(e) { 62683 $507fabe10e71c6fb$var$currentModality = "pointer", (e.type === "mousedown" || e.type === "pointerdown") && ($507fabe10e71c6fb$var$hasEventBeforeFocus = !0, $507fabe10e71c6fb$var$triggerChangeHandlers("pointer", e)); 62684} 62685function $507fabe10e71c6fb$var$handleClickEvent(e) { 62686 $6a7db85432448f7f$export$60278871457622de(e) && ($507fabe10e71c6fb$var$hasEventBeforeFocus = !0, $507fabe10e71c6fb$var$currentModality = "virtual"); 62687} 62688function $507fabe10e71c6fb$var$handleFocusEvent(e) { 62689 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); 62690} 62691function $507fabe10e71c6fb$var$handleWindowBlur() { 62692 $8a9cb279dc87e130$export$fda7da73ab5d4c48 || ($507fabe10e71c6fb$var$hasEventBeforeFocus = !1, $507fabe10e71c6fb$var$hasBlurredWindowRecently = !0); 62693} 62694function $507fabe10e71c6fb$var$setupGlobalFocusEvents(element) { 62695 if (typeof window > "u" || typeof document > "u" || $507fabe10e71c6fb$export$d90243b58daecda7.get($431fbd86ca7dc216$export$f21a1ffae260145a(element))) return; 62696 let windowObject = $431fbd86ca7dc216$export$f21a1ffae260145a(element), documentObject = $431fbd86ca7dc216$export$b204af158042fbac(element), focus = windowObject.HTMLElement.prototype.focus; 62697 windowObject.HTMLElement.prototype.focus = function() { 62698 $507fabe10e71c6fb$var$hasEventBeforeFocus = !0, focus.apply(this, arguments); 62699 }, 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", () => { 62700 $507fabe10e71c6fb$var$tearDownWindowFocusTracking(element); 62701 }, { 62702 once: !0 62703 }), $507fabe10e71c6fb$export$d90243b58daecda7.set(windowObject, { 62704 focus 62705 }); 62706} 62707var $507fabe10e71c6fb$var$tearDownWindowFocusTracking = (element, loadListener) => { 62708 let windowObject = $431fbd86ca7dc216$export$f21a1ffae260145a(element), documentObject = $431fbd86ca7dc216$export$b204af158042fbac(element); 62709 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)); 62710}; 62711function $507fabe10e71c6fb$export$2f1888112f558a7d(element) { 62712 let documentObject = $431fbd86ca7dc216$export$b204af158042fbac(element), loadListener; 62713 return documentObject.readyState !== "loading" ? $507fabe10e71c6fb$var$setupGlobalFocusEvents(element) : (loadListener = () => { 62714 $507fabe10e71c6fb$var$setupGlobalFocusEvents(element); 62715 }, documentObject.addEventListener("DOMContentLoaded", loadListener)), () => $507fabe10e71c6fb$var$tearDownWindowFocusTracking(element, loadListener); 62716} 62717typeof document < "u" && $507fabe10e71c6fb$export$2f1888112f558a7d(); 62718function $507fabe10e71c6fb$export$b9b3dfddab17db27() { 62719 return $507fabe10e71c6fb$var$currentModality !== "pointer"; 62720} 62721function $507fabe10e71c6fb$export$630ff653c5ada6a9() { 62722 return $507fabe10e71c6fb$var$currentModality; 62723} 62724function $507fabe10e71c6fb$export$98e20ec92f614cfe() { 62725 $507fabe10e71c6fb$var$setupGlobalFocusEvents(); 62726 let [modality, setModality] = (0, import_react49.useState)($507fabe10e71c6fb$var$currentModality); 62727 return (0, import_react49.useEffect)(() => { 62728 let handler = () => { 62729 setModality($507fabe10e71c6fb$var$currentModality); 62730 }; 62731 return $507fabe10e71c6fb$var$changeHandlers.add(handler), () => { 62732 $507fabe10e71c6fb$var$changeHandlers.delete(handler); 62733 }; 62734 }, []), $b5e257d569688ac6$export$535bd6ca7f90a273() ? null : modality; 62735} 62736var $507fabe10e71c6fb$var$nonTextInputTypes = /* @__PURE__ */ new Set([ 62737 "checkbox", 62738 "radio", 62739 "range", 62740 "color", 62741 "file", 62742 "image", 62743 "button", 62744 "submit", 62745 "reset" 62746]); 62747function $507fabe10e71c6fb$var$isKeyboardFocusEvent(isTextInput, modality, e) { 62748 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; 62749 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]); 62750} 62751function $507fabe10e71c6fb$export$ec71b4b83ac08ec3(fn4, deps, opts) { 62752 $507fabe10e71c6fb$var$setupGlobalFocusEvents(), (0, import_react49.useEffect)(() => { 62753 let handler = (modality, e) => { 62754 $507fabe10e71c6fb$var$isKeyboardFocusEvent(!!opts?.isTextInput, modality, e) && fn4($507fabe10e71c6fb$export$b9b3dfddab17db27()); 62755 }; 62756 return $507fabe10e71c6fb$var$changeHandlers.add(handler), () => { 62757 $507fabe10e71c6fb$var$changeHandlers.delete(handler); 62758 }; 62759 }, deps); 62760} 62761
vendor: 679 bytes, lines 62762-62772
62762// ../../node_modules/@react-aria/interactions/dist/focusSafely.mjs 62763function $3ad3f6e1647bc98d$export$80f3e147d781571c(element) { 62764 let ownerDocument = $431fbd86ca7dc216$export$b204af158042fbac(element), activeElement = $d4ee10de306f2510$export$cd4e5573fbe2b576(ownerDocument); 62765 if ($507fabe10e71c6fb$export$630ff653c5ada6a9() === "virtual") { 62766 let lastFocusedElement = activeElement; 62767 $bbed8b41f857bcc0$export$24490316f764c430(() => { 62768 $d4ee10de306f2510$export$cd4e5573fbe2b576(ownerDocument) === lastFocusedElement && element.isConnected && $7215afc6de606d6b$export$de79e2c695e052f3(element); 62769 }); 62770 } else $7215afc6de606d6b$export$de79e2c695e052f3(element); 62771} 62772
vendor: 1,317 bytes, lines 62773-62797
62773// ../../node_modules/@react-aria/interactions/dist/useFocus.mjs 62774var import_react50 = __toESM(require_react(), 1); 62775function $a1ea59d68270f0dd$export$f8168d8dd8fd66e6(props) { 62776 let { isDisabled: isDisabled3, onFocus: onFocusProp, onBlur: onBlurProp, onFocusChange } = props, onBlur = (0, import_react50.useCallback)((e) => { 62777 if (e.target === e.currentTarget) 62778 return onBlurProp && onBlurProp(e), onFocusChange && onFocusChange(!1), !0; 62779 }, [ 62780 onBlurProp, 62781 onFocusChange 62782 ]), onSyntheticFocus = $8a9cb279dc87e130$export$715c682d09d639cc(onBlur), onFocus = (0, import_react50.useCallback)((e) => { 62783 let ownerDocument = $431fbd86ca7dc216$export$b204af158042fbac(e.target), activeElement = ownerDocument ? $d4ee10de306f2510$export$cd4e5573fbe2b576(ownerDocument) : $d4ee10de306f2510$export$cd4e5573fbe2b576(); 62784 e.target === e.currentTarget && activeElement === $d4ee10de306f2510$export$e58f029f0fbfdb29(e.nativeEvent) && (onFocusProp && onFocusProp(e), onFocusChange && onFocusChange(!0), onSyntheticFocus(e)); 62785 }, [ 62786 onFocusChange, 62787 onFocusProp, 62788 onSyntheticFocus 62789 ]); 62790 return { 62791 focusProps: { 62792 onFocus: !isDisabled3 && (onFocusProp || onFocusChange || onBlurProp) ? onFocus : void 0, 62793 onBlur: !isDisabled3 && (onBlurProp || onFocusChange) ? onBlur : void 0 62794 } 62795 }; 62796} 62797
vendor: 686 bytes, lines 62798-62824
62798// ../../node_modules/@react-aria/interactions/dist/createEventHandler.mjs 62799function $93925083ecbb358c$export$48d1ea6320830260(handler) { 62800 if (!handler) return; 62801 let shouldStopPropagation = !0; 62802 return (e) => { 62803 let event = { 62804 ...e, 62805 preventDefault() { 62806 e.preventDefault(); 62807 }, 62808 isDefaultPrevented() { 62809 return e.isDefaultPrevented(); 62810 }, 62811 stopPropagation() { 62812 shouldStopPropagation = !0; 62813 }, 62814 continuePropagation() { 62815 shouldStopPropagation = !1; 62816 }, 62817 isPropagationStopped() { 62818 return shouldStopPropagation; 62819 } 62820 }; 62821 handler(event), shouldStopPropagation && e.stopPropagation(); 62822 }; 62823} 62824
vendor: 347 bytes, lines 62825-62834
62825// ../../node_modules/@react-aria/interactions/dist/useKeyboard.mjs 62826function $46d819fcbaf35654$export$8f71654801c2f7cd(props) { 62827 return { 62828 keyboardProps: props.isDisabled ? {} : { 62829 onKeyDown: $93925083ecbb358c$export$48d1ea6320830260(props.onKeyDown), 62830 onKeyUp: $93925083ecbb358c$export$48d1ea6320830260(props.onKeyUp) 62831 } 62832 }; 62833} 62834
vendor: 2,505 bytes, lines 62835-62882
62835// ../../node_modules/@react-aria/interactions/dist/useFocusable.mjs 62836var import_react51 = __toESM(require_react(), 1), $f645667febf57a63$export$f9762fab77588ecb = import_react51.default.createContext(null); 62837function $f645667febf57a63$var$useFocusableContext(ref) { 62838 let context = (0, import_react51.useContext)($f645667febf57a63$export$f9762fab77588ecb) || {}; 62839 $e7801be82b4b2a53$export$4debdb1a3f0fa79e(context, ref); 62840 let { ref: _, ...otherProps } = context; 62841 return otherProps; 62842} 62843var $f645667febf57a63$export$13f3202a3e5ddd5 = import_react51.default.forwardRef(function(props, ref) { 62844 let { children, ...otherProps } = props, objRef = $df56164dff5785e2$export$4338b53315abf666(ref), context = { 62845 ...otherProps, 62846 ref: objRef 62847 }; 62848 return import_react51.default.createElement($f645667febf57a63$export$f9762fab77588ecb.Provider, { 62849 value: context 62850 }, children); 62851}); 62852function $f645667febf57a63$export$4c014de7c8940b4c(props, domRef) { 62853 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_react51.useRef)(props.autoFocus); 62854 (0, import_react51.useEffect)(() => { 62855 autoFocusRef.current && domRef.current && $3ad3f6e1647bc98d$export$80f3e147d781571c(domRef.current), autoFocusRef.current = !1; 62856 }, [ 62857 domRef 62858 ]); 62859 let tabIndex = props.excludeFromTabOrder ? -1 : 0; 62860 return props.isDisabled && (tabIndex = void 0), { 62861 focusableProps: $3ef42575df84b30b$export$9d1611c77c2fe928({ 62862 ...interactions, 62863 tabIndex 62864 }, interactionProps) 62865 }; 62866} 62867var $f645667febf57a63$export$35a3bebf7ef2d934 = (0, import_react51.forwardRef)(({ children, ...props }, ref) => { 62868 ref = $df56164dff5785e2$export$4338b53315abf666(ref); 62869 let { focusableProps } = $f645667febf57a63$export$4c014de7c8940b4c(props, ref), child = import_react51.default.Children.only(children); 62870 (0, import_react51.useEffect)(() => { 62871 }, [ 62872 ref, 62873 props.isDisabled 62874 ]); 62875 let childRef = parseInt(import_react51.default.version, 10) < 19 ? child.ref : child.props.ref; 62876 return import_react51.default.cloneElement(child, { 62877 ...$3ef42575df84b30b$export$9d1611c77c2fe928(focusableProps, child.props), 62878 // @ts-ignore 62879 ref: $5dc95899b306f630$export$c9058316764c140e(childRef, ref) 62880 }); 62881}); 62882
vendor: 933 bytes, lines 62883-62902
62883// ../../node_modules/@react-aria/interactions/dist/Pressable.mjs 62884var import_react52 = __toESM(require_react(), 1), $3b117e43dc0ca95d$export$27c701ed9e449e99 = import_react52.default.forwardRef(({ children, ...props }, ref) => { 62885 ref = $df56164dff5785e2$export$4338b53315abf666(ref); 62886 let { pressProps } = $f6c31cce2adf654f$export$45712eceda6fad21({ 62887 ...props, 62888 ref 62889 }), { focusableProps } = $f645667febf57a63$export$4c014de7c8940b4c(props, ref), child = import_react52.default.Children.only(children); 62890 (0, import_react52.useEffect)(() => { 62891 }, [ 62892 ref, 62893 props.isDisabled 62894 ]); 62895 let childRef = parseInt(import_react52.default.version, 10) < 19 ? child.ref : child.props.ref; 62896 return import_react52.default.cloneElement(child, { 62897 ...$3ef42575df84b30b$export$9d1611c77c2fe928(pressProps, focusableProps, child.props), 62898 // @ts-ignore 62899 ref: $5dc95899b306f630$export$c9058316764c140e(childRef, ref) 62900 }); 62901}); 62902
vendor: 1,257 bytes, lines 62903-62929
62903// ../../node_modules/@react-aria/interactions/dist/PressResponder.mjs 62904var import_react53 = __toESM(require_react(), 1), $f1ab8c75478c6f73$export$3351871ee4b288b8 = import_react53.default.forwardRef(({ children, ...props }, ref) => { 62905 let isRegistered = (0, import_react53.useRef)(!1), prevContext = (0, import_react53.useContext)($ae1eeba8b9eafd08$export$5165eccb35aaadb5); 62906 ref = $df56164dff5785e2$export$4338b53315abf666(ref || prevContext?.ref); 62907 let context = $3ef42575df84b30b$export$9d1611c77c2fe928(prevContext || {}, { 62908 ...props, 62909 ref, 62910 register() { 62911 isRegistered.current = !0, prevContext && prevContext.register(); 62912 } 62913 }); 62914 return $e7801be82b4b2a53$export$4debdb1a3f0fa79e(prevContext, ref), (0, import_react53.useEffect)(() => { 62915 isRegistered.current || (isRegistered.current = !0); 62916 }, []), import_react53.default.createElement($ae1eeba8b9eafd08$export$5165eccb35aaadb5.Provider, { 62917 value: context 62918 }, children); 62919}); 62920function $f1ab8c75478c6f73$export$cf75428e0b9ed1ea({ children }) { 62921 let context = (0, import_react53.useMemo)(() => ({ 62922 register: () => { 62923 } 62924 }), []); 62925 return import_react53.default.createElement($ae1eeba8b9eafd08$export$5165eccb35aaadb5.Provider, { 62926 value: context 62927 }, children); 62928} 62929
vendor: 2,375 bytes, lines 62930-62981
62930// ../../node_modules/@react-aria/interactions/dist/useFocusWithin.mjs 62931var import_react54 = __toESM(require_react(), 1); 62932function $9ab94262bd0047c7$export$420e68273165f4ec(props) { 62933 let { isDisabled: isDisabled3, onBlurWithin, onFocusWithin, onFocusWithinChange } = props, state3 = (0, import_react54.useRef)({ 62934 isFocusWithin: !1 62935 }), { addGlobalListener, removeAllGlobalListeners } = $03deb23ff14920c4$export$4eaf04e54aa8eed6(), onBlur = (0, import_react54.useCallback)((e) => { 62936 e.currentTarget.contains(e.target) && state3.current.isFocusWithin && !e.currentTarget.contains(e.relatedTarget) && (state3.current.isFocusWithin = !1, removeAllGlobalListeners(), onBlurWithin && onBlurWithin(e), onFocusWithinChange && onFocusWithinChange(!1)); 62937 }, [ 62938 onBlurWithin, 62939 onFocusWithinChange, 62940 state3, 62941 removeAllGlobalListeners 62942 ]), onSyntheticFocus = $8a9cb279dc87e130$export$715c682d09d639cc(onBlur), onFocus = (0, import_react54.useCallback)((e) => { 62943 if (!e.currentTarget.contains(e.target)) return; 62944 let ownerDocument = $431fbd86ca7dc216$export$b204af158042fbac(e.target), activeElement = $d4ee10de306f2510$export$cd4e5573fbe2b576(ownerDocument); 62945 if (!state3.current.isFocusWithin && activeElement === $d4ee10de306f2510$export$e58f029f0fbfdb29(e.nativeEvent)) { 62946 onFocusWithin && onFocusWithin(e), onFocusWithinChange && onFocusWithinChange(!0), state3.current.isFocusWithin = !0, onSyntheticFocus(e); 62947 let currentTarget = e.currentTarget; 62948 addGlobalListener(ownerDocument, "focus", (e2) => { 62949 if (state3.current.isFocusWithin && !$d4ee10de306f2510$export$4282f70798064fe0(currentTarget, e2.target)) { 62950 let nativeEvent = new ownerDocument.defaultView.FocusEvent("blur", { 62951 relatedTarget: e2.target 62952 }); 62953 $8a9cb279dc87e130$export$c2b7abe5d61ec696(nativeEvent, currentTarget); 62954 let event = $8a9cb279dc87e130$export$525bc4921d56d4a(nativeEvent); 62955 onBlur(event); 62956 } 62957 }, { 62958 capture: !0 62959 }); 62960 } 62961 }, [ 62962 onFocusWithin, 62963 onFocusWithinChange, 62964 onSyntheticFocus, 62965 addGlobalListener, 62966 onBlur 62967 ]); 62968 return isDisabled3 ? { 62969 focusWithinProps: { 62970 // These cannot be null, that would conflict in mergeProps 62971 onFocus: void 0, 62972 onBlur: void 0 62973 } 62974 } : { 62975 focusWithinProps: { 62976 onFocus, 62977 onBlur 62978 } 62979 }; 62980} 62981
vendor: 3,705 bytes, lines 62982-63056
62982// ../../node_modules/@react-aria/interactions/dist/useHover.mjs 62983var import_react55 = __toESM(require_react(), 1), $6179b936705e76d3$var$globalIgnoreEmulatedMouseEvents = !1, $6179b936705e76d3$var$hoverCount = 0; 62984function $6179b936705e76d3$var$setGlobalIgnoreEmulatedMouseEvents() { 62985 $6179b936705e76d3$var$globalIgnoreEmulatedMouseEvents = !0, setTimeout(() => { 62986 $6179b936705e76d3$var$globalIgnoreEmulatedMouseEvents = !1; 62987 }, 50); 62988} 62989function $6179b936705e76d3$var$handleGlobalPointerEvent(e) { 62990 e.pointerType === "touch" && $6179b936705e76d3$var$setGlobalIgnoreEmulatedMouseEvents(); 62991} 62992function $6179b936705e76d3$var$setupGlobalTouchEvents() { 62993 if (!(typeof document > "u")) 62994 return $6179b936705e76d3$var$hoverCount === 0 && typeof PointerEvent < "u" && document.addEventListener("pointerup", $6179b936705e76d3$var$handleGlobalPointerEvent), $6179b936705e76d3$var$hoverCount++, () => { 62995 $6179b936705e76d3$var$hoverCount--, !($6179b936705e76d3$var$hoverCount > 0) && typeof PointerEvent < "u" && document.removeEventListener("pointerup", $6179b936705e76d3$var$handleGlobalPointerEvent); 62996 }; 62997} 62998function $6179b936705e76d3$export$ae780daf29e6d456(props) { 62999 let { onHoverStart, onHoverChange, onHoverEnd, isDisabled: isDisabled3 } = props, [isHovered, setHovered] = (0, import_react55.useState)(!1), state3 = (0, import_react55.useRef)({ 63000 isHovered: !1, 63001 ignoreEmulatedMouseEvents: !1, 63002 pointerType: "", 63003 target: null 63004 }).current; 63005 (0, import_react55.useEffect)($6179b936705e76d3$var$setupGlobalTouchEvents, []); 63006 let { addGlobalListener, removeAllGlobalListeners } = $03deb23ff14920c4$export$4eaf04e54aa8eed6(), { hoverProps, triggerHoverEnd } = (0, import_react55.useMemo)(() => { 63007 let triggerHoverStart = (event, pointerType) => { 63008 if (state3.pointerType = pointerType, isDisabled3 || pointerType === "touch" || state3.isHovered || !event.currentTarget.contains(event.target)) return; 63009 state3.isHovered = !0; 63010 let target = event.currentTarget; 63011 state3.target = target, addGlobalListener($431fbd86ca7dc216$export$b204af158042fbac(event.target), "pointerover", (e) => { 63012 state3.isHovered && state3.target && !$d4ee10de306f2510$export$4282f70798064fe0(state3.target, e.target) && triggerHoverEnd2(e, e.pointerType); 63013 }, { 63014 capture: !0 63015 }), onHoverStart && onHoverStart({ 63016 type: "hoverstart", 63017 target, 63018 pointerType 63019 }), onHoverChange && onHoverChange(!0), setHovered(!0); 63020 }, triggerHoverEnd2 = (event, pointerType) => { 63021 let target = state3.target; 63022 state3.pointerType = "", state3.target = null, !(pointerType === "touch" || !state3.isHovered || !target) && (state3.isHovered = !1, removeAllGlobalListeners(), onHoverEnd && onHoverEnd({ 63023 type: "hoverend", 63024 target, 63025 pointerType 63026 }), onHoverChange && onHoverChange(!1), setHovered(!1)); 63027 }, hoverProps2 = {}; 63028 return typeof PointerEvent < "u" && (hoverProps2.onPointerEnter = (e) => { 63029 $6179b936705e76d3$var$globalIgnoreEmulatedMouseEvents && e.pointerType === "mouse" || triggerHoverStart(e, e.pointerType); 63030 }, hoverProps2.onPointerLeave = (e) => { 63031 !isDisabled3 && e.currentTarget.contains(e.target) && triggerHoverEnd2(e, e.pointerType); 63032 }), { 63033 hoverProps: hoverProps2, 63034 triggerHoverEnd: triggerHoverEnd2 63035 }; 63036 }, [ 63037 onHoverStart, 63038 onHoverChange, 63039 onHoverEnd, 63040 isDisabled3, 63041 state3, 63042 addGlobalListener, 63043 removeAllGlobalListeners 63044 ]); 63045 return (0, import_react55.useEffect)(() => { 63046 isDisabled3 && triggerHoverEnd({ 63047 currentTarget: state3.target 63048 }, state3.pointerType); 63049 }, [ 63050 isDisabled3 63051 ]), { 63052 hoverProps, 63053 isHovered 63054 }; 63055} 63056
vendor: 1,930 bytes, lines 63057-63095
63057// ../../node_modules/@react-aria/interactions/dist/useInteractOutside.mjs 63058var import_react56 = __toESM(require_react(), 1); 63059function $e0b6e0b68ec7f50f$export$872b660ac5a1ff98(props) { 63060 let { ref, onInteractOutside, isDisabled: isDisabled3, onInteractOutsideStart } = props, stateRef = (0, import_react56.useRef)({ 63061 isPointerDown: !1, 63062 ignoreEmulatedMouseEvents: !1 63063 }), onPointerDown = $8ae05eaa5c114e9c$export$7f54fc3180508a52((e) => { 63064 onInteractOutside && $e0b6e0b68ec7f50f$var$isValidEvent(e, ref) && (onInteractOutsideStart && onInteractOutsideStart(e), stateRef.current.isPointerDown = !0); 63065 }), triggerInteractOutside = $8ae05eaa5c114e9c$export$7f54fc3180508a52((e) => { 63066 onInteractOutside && onInteractOutside(e); 63067 }); 63068 (0, import_react56.useEffect)(() => { 63069 let state3 = stateRef.current; 63070 if (isDisabled3) return; 63071 let element = ref.current, documentObject = $431fbd86ca7dc216$export$b204af158042fbac(element); 63072 if (typeof PointerEvent < "u") { 63073 let onClick = (e) => { 63074 state3.isPointerDown && $e0b6e0b68ec7f50f$var$isValidEvent(e, ref) && triggerInteractOutside(e), state3.isPointerDown = !1; 63075 }; 63076 return documentObject.addEventListener("pointerdown", onPointerDown, !0), documentObject.addEventListener("click", onClick, !0), () => { 63077 documentObject.removeEventListener("pointerdown", onPointerDown, !0), documentObject.removeEventListener("click", onClick, !0); 63078 }; 63079 } 63080 }, [ 63081 ref, 63082 isDisabled3, 63083 onPointerDown, 63084 triggerInteractOutside 63085 ]); 63086} 63087function $e0b6e0b68ec7f50f$var$isValidEvent(event, ref) { 63088 if (event.button > 0) return !1; 63089 if (event.target) { 63090 let ownerDocument = event.target.ownerDocument; 63091 if (!ownerDocument || !ownerDocument.documentElement.contains(event.target) || event.target.closest("[data-react-aria-top-layer]")) return !1; 63092 } 63093 return ref.current ? !event.composedPath().includes(ref.current) : !1; 63094} 63095
vendor: 115 bytes, lines 63096-63098
63096// ../../node_modules/@react-aria/interactions/dist/useMove.mjs 63097var import_react57 = __toESM(require_react(), 1); 63098
vendor: 122 bytes, lines 63099-63101
63099// ../../node_modules/@react-aria/interactions/dist/useScrollWheel.mjs 63100var import_react58 = __toESM(require_react(), 1); 63101
vendor: 2,150 bytes, lines 63102-63144
63102// ../../node_modules/@react-aria/interactions/dist/useLongPress.mjs 63103var import_react59 = __toESM(require_react(), 1), $8a26561d2877236e$var$DEFAULT_THRESHOLD = 500; 63104function $8a26561d2877236e$export$c24ed0104d07eab9(props) { 63105 let { isDisabled: isDisabled3, onLongPressStart, onLongPressEnd, onLongPress, threshold = $8a26561d2877236e$var$DEFAULT_THRESHOLD, accessibilityDescription } = props, timeRef = (0, import_react59.useRef)(void 0), { addGlobalListener, removeGlobalListener } = $03deb23ff14920c4$export$4eaf04e54aa8eed6(), { pressProps } = $f6c31cce2adf654f$export$45712eceda6fad21({ 63106 isDisabled: isDisabled3, 63107 onPressStart(e) { 63108 if (e.continuePropagation(), (e.pointerType === "mouse" || e.pointerType === "touch") && (onLongPressStart && onLongPressStart({ 63109 ...e, 63110 type: "longpressstart" 63111 }), timeRef.current = setTimeout(() => { 63112 e.target.dispatchEvent(new PointerEvent("pointercancel", { 63113 bubbles: !0 63114 })), $431fbd86ca7dc216$export$b204af158042fbac(e.target).activeElement !== e.target && $7215afc6de606d6b$export$de79e2c695e052f3(e.target), onLongPress && onLongPress({ 63115 ...e, 63116 type: "longpress" 63117 }), timeRef.current = void 0; 63118 }, threshold), e.pointerType === "touch")) { 63119 let onContextMenu = (e2) => { 63120 e2.preventDefault(); 63121 }; 63122 addGlobalListener(e.target, "contextmenu", onContextMenu, { 63123 once: !0 63124 }), addGlobalListener(window, "pointerup", () => { 63125 setTimeout(() => { 63126 removeGlobalListener(e.target, "contextmenu", onContextMenu); 63127 }, 30); 63128 }, { 63129 once: !0 63130 }); 63131 } 63132 }, 63133 onPressEnd(e) { 63134 timeRef.current && clearTimeout(timeRef.current), onLongPressEnd && (e.pointerType === "mouse" || e.pointerType === "touch") && onLongPressEnd({ 63135 ...e, 63136 type: "longpressend" 63137 }); 63138 } 63139 }), descriptionProps = $ef06256079686ba0$export$f8aeda7b10753fa1(onLongPress && !isDisabled3 ? accessibilityDescription : void 0); 63140 return { 63141 longPressProps: $3ef42575df84b30b$export$9d1611c77c2fe928(pressProps, descriptionProps) 63142 }; 63143} 63144
vendor: 3,794 bytes, lines 63145-63236
63145// ../../node_modules/react-aria-components/dist/utils.mjs 63146var import_react60 = __toESM(require_react(), 1), $64fa3d84918910a7$export$c62b8e45d58ddad9 = Symbol("default"); 63147function $64fa3d84918910a7$export$2881499e37b75b9a({ values, children }) { 63148 for (let [Context, value] of values) 63149 children = import_react60.default.createElement(Context.Provider, { 63150 value 63151 }, children); 63152 return children; 63153} 63154function $64fa3d84918910a7$export$4d86445c2cf5e3(props) { 63155 let { className, style, children, defaultClassName, defaultChildren, defaultStyle, values } = props; 63156 return (0, import_react60.useMemo)(() => { 63157 let computedClassName, computedStyle, computedChildren; 63158 return typeof className == "function" ? computedClassName = className({ 63159 ...values, 63160 defaultClassName 63161 }) : computedClassName = className, typeof style == "function" ? computedStyle = style({ 63162 ...values, 63163 defaultStyle: defaultStyle || {} 63164 }) : computedStyle = style, typeof children == "function" ? computedChildren = children({ 63165 ...values, 63166 defaultChildren 63167 }) : children == null ? computedChildren = defaultChildren : computedChildren = children, { 63168 className: computedClassName ?? defaultClassName, 63169 style: computedStyle || defaultStyle ? { 63170 ...defaultStyle, 63171 ...computedStyle 63172 } : void 0, 63173 children: computedChildren ?? defaultChildren, 63174 "data-rac": "" 63175 }; 63176 }, [ 63177 className, 63178 style, 63179 children, 63180 defaultClassName, 63181 defaultChildren, 63182 defaultStyle, 63183 values 63184 ]); 63185} 63186function $64fa3d84918910a7$export$fabf2dc03a41866e(context, slot) { 63187 let ctx = (0, import_react60.useContext)(context); 63188 if (slot === null) 63189 return null; 63190 if (ctx && typeof ctx == "object" && "slots" in ctx && ctx.slots) { 63191 let slotKey = slot || $64fa3d84918910a7$export$c62b8e45d58ddad9; 63192 if (!ctx.slots[slotKey]) { 63193 let availableSlots = new Intl.ListFormat().format(Object.keys(ctx.slots).map((p3) => `"${p3}"`)), errorMessage = slot ? `Invalid slot "${slot}".` : "A slot prop is required."; 63194 throw new Error(`${errorMessage} Valid slot names are ${availableSlots}.`); 63195 } 63196 return ctx.slots[slotKey]; 63197 } 63198 return ctx; 63199} 63200function $64fa3d84918910a7$export$29f1550f4b0d4415(props, ref, context) { 63201 let ctx = $64fa3d84918910a7$export$fabf2dc03a41866e(context, props.slot) || {}, { ref: contextRef, ...contextProps } = ctx, mergedRef = $df56164dff5785e2$export$4338b53315abf666((0, import_react60.useMemo)(() => $5dc95899b306f630$export$c9058316764c140e(ref, contextRef), [ 63202 ref, 63203 contextRef 63204 ])), mergedProps = $3ef42575df84b30b$export$9d1611c77c2fe928(contextProps, props); 63205 return "style" in contextProps && contextProps.style && "style" in props && props.style && (typeof contextProps.style == "function" || typeof props.style == "function" ? mergedProps.style = (renderProps) => { 63206 let contextStyle = typeof contextProps.style == "function" ? contextProps.style(renderProps) : contextProps.style, defaultStyle = { 63207 ...renderProps.defaultStyle, 63208 ...contextStyle 63209 }, style = typeof props.style == "function" ? props.style({ 63210 ...renderProps, 63211 defaultStyle 63212 }) : props.style; 63213 return { 63214 ...defaultStyle, 63215 ...style 63216 }; 63217 } : mergedProps.style = { 63218 ...contextProps.style, 63219 ...props.style 63220 }), [ 63221 mergedProps, 63222 mergedRef 63223 ]; 63224} 63225function $64fa3d84918910a7$export$9d4c57ee4c6ffdd8(initialState2 = !0) { 63226 let [hasSlot, setHasSlot] = (0, import_react60.useState)(initialState2), hasRun = (0, import_react60.useRef)(!1), ref = (0, import_react60.useCallback)((el) => { 63227 hasRun.current = !0, setHasSlot(!!el); 63228 }, []); 63229 return $f0a04ccd8dbdd83b$export$e5c5a5f917a5871c(() => { 63230 hasRun.current || setHasSlot(!1); 63231 }, []), [ 63232 ref, 63233 hasSlot 63234 ]; 63235} 63236
vendor: 1,246 bytes, lines 63237-63267
63237// ../../node_modules/react-aria-components/dist/OverlayArrow.mjs 63238var import_react61 = __toESM(require_react(), 1), $44f671af83e7d9e0$export$2de4954e8ae13b9f = (0, import_react61.createContext)({ 63239 placement: "bottom" 63240}), $44f671af83e7d9e0$export$746d02f47f4d381 = (0, import_react61.forwardRef)(function(props, ref) { 63241 [props, ref] = $64fa3d84918910a7$export$29f1550f4b0d4415(props, ref, $44f671af83e7d9e0$export$2de4954e8ae13b9f); 63242 let placement = props.placement, style = { 63243 position: "absolute", 63244 transform: placement === "top" || placement === "bottom" ? "translateX(-50%)" : "translateY(-50%)" 63245 }; 63246 placement != null && (style[placement] = "100%"); 63247 let renderProps = $64fa3d84918910a7$export$4d86445c2cf5e3({ 63248 ...props, 63249 defaultClassName: "react-aria-OverlayArrow", 63250 values: { 63251 placement 63252 } 63253 }); 63254 renderProps.style && Object.keys(renderProps.style).forEach((key) => renderProps.style[key] === void 0 && delete renderProps.style[key]); 63255 let DOMProps = $65484d02dcb7eb3e$export$457c3d6518dd4c6f(props); 63256 return import_react61.default.createElement("div", { 63257 ...DOMProps, 63258 ...renderProps, 63259 style: { 63260 ...style, 63261 ...renderProps.style 63262 }, 63263 ref, 63264 "data-placement": placement 63265 }); 63266}); 63267
vendor: 501 bytes, lines 63268-63282
63268// ../../node_modules/@react-aria/tooltip/dist/useTooltip.mjs 63269function $326e436e94273fe1$export$1c4b08e0eca38426(props, state3) { 63270 let domProps = $65484d02dcb7eb3e$export$457c3d6518dd4c6f(props, { 63271 labelable: !0 63272 }), { hoverProps } = $6179b936705e76d3$export$ae780daf29e6d456({ 63273 onHoverStart: () => state3?.open(!0), 63274 onHoverEnd: () => state3?.close() 63275 }); 63276 return { 63277 tooltipProps: $3ef42575df84b30b$export$9d1611c77c2fe928(domProps, hoverProps, { 63278 role: "tooltip" 63279 }) 63280 }; 63281} 63282
vendor: 2,171 bytes, lines 63283-63336
63283// ../../node_modules/@react-aria/tooltip/dist/useTooltipTrigger.mjs 63284var import_react62 = __toESM(require_react(), 1); 63285function $4e1b34546679e357$export$a6da6c504e4bba8b(props, state3, ref) { 63286 let { isDisabled: isDisabled3, trigger } = props, tooltipId = $bdb11010cef70236$export$f680877a34711e37(), isHovered = (0, import_react62.useRef)(!1), isFocused = (0, import_react62.useRef)(!1), handleShow = () => { 63287 (isHovered.current || isFocused.current) && state3.open(isFocused.current); 63288 }, handleHide = (immediate) => { 63289 !isHovered.current && !isFocused.current && state3.close(immediate); 63290 }; 63291 (0, import_react62.useEffect)(() => { 63292 let onKeyDown = (e) => { 63293 ref && ref.current && e.key === "Escape" && (e.stopPropagation(), state3.close(!0)); 63294 }; 63295 if (state3.isOpen) 63296 return document.addEventListener("keydown", onKeyDown, !0), () => { 63297 document.removeEventListener("keydown", onKeyDown, !0); 63298 }; 63299 }, [ 63300 ref, 63301 state3 63302 ]); 63303 let onHoverStart = () => { 63304 trigger !== "focus" && ($507fabe10e71c6fb$export$630ff653c5ada6a9() === "pointer" ? isHovered.current = !0 : isHovered.current = !1, handleShow()); 63305 }, onHoverEnd = () => { 63306 trigger !== "focus" && (isFocused.current = !1, isHovered.current = !1, handleHide()); 63307 }, onPressStart = () => { 63308 isFocused.current = !1, isHovered.current = !1, handleHide(!0); 63309 }, onFocus = () => { 63310 $507fabe10e71c6fb$export$b9b3dfddab17db27() && (isFocused.current = !0, handleShow()); 63311 }, onBlur = () => { 63312 isFocused.current = !1, isHovered.current = !1, handleHide(!0); 63313 }, { hoverProps } = $6179b936705e76d3$export$ae780daf29e6d456({ 63314 isDisabled: isDisabled3, 63315 onHoverStart, 63316 onHoverEnd 63317 }), { focusableProps } = $f645667febf57a63$export$4c014de7c8940b4c({ 63318 isDisabled: isDisabled3, 63319 onFocus, 63320 onBlur 63321 }, ref); 63322 return { 63323 triggerProps: { 63324 "aria-describedby": state3.isOpen ? tooltipId : void 0, 63325 ...$3ef42575df84b30b$export$9d1611c77c2fe928(focusableProps, hoverProps, { 63326 onPointerDown: onPressStart, 63327 onKeyDown: onPressStart 63328 }), 63329 tabIndex: void 0 63330 }, 63331 tooltipProps: { 63332 id: tooltipId 63333 } 63334 }; 63335} 63336
vendor: 20,130 bytes, lines 63337-63536
63337// ../../node_modules/@react-aria/overlays/dist/calculatePosition.mjs 63338var $edcf132a9284368a$var$AXIS = { 63339 top: "top", 63340 bottom: "top", 63341 left: "left", 63342 right: "left" 63343}, $edcf132a9284368a$var$FLIPPED_DIRECTION = { 63344 top: "bottom", 63345 bottom: "top", 63346 left: "right", 63347 right: "left" 63348}, $edcf132a9284368a$var$CROSS_AXIS = { 63349 top: "left", 63350 left: "top" 63351}, $edcf132a9284368a$var$AXIS_SIZE = { 63352 top: "height", 63353 left: "width" 63354}, $edcf132a9284368a$var$TOTAL_SIZE = { 63355 width: "totalWidth", 63356 height: "totalHeight" 63357}, $edcf132a9284368a$var$PARSED_PLACEMENT_CACHE = {}, $edcf132a9284368a$var$visualViewport = typeof document < "u" ? window.visualViewport : null; 63358function $edcf132a9284368a$var$getContainerDimensions(containerNode) { 63359 let width = 0, height = 0, totalWidth = 0, totalHeight = 0, top2 = 0, left2 = 0, scroll = {}; 63360 var _visualViewport_scale; 63361 let isPinchZoomedIn = ((_visualViewport_scale = $edcf132a9284368a$var$visualViewport?.scale) !== null && _visualViewport_scale !== void 0 ? _visualViewport_scale : 1) > 1; 63362 if (containerNode.tagName === "BODY") { 63363 let documentElement = document.documentElement; 63364 totalWidth = documentElement.clientWidth, totalHeight = documentElement.clientHeight; 63365 var _visualViewport_width; 63366 width = (_visualViewport_width = $edcf132a9284368a$var$visualViewport?.width) !== null && _visualViewport_width !== void 0 ? _visualViewport_width : totalWidth; 63367 var _visualViewport_height; 63368 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); 63369 } else 63370 ({ width, height, top: top2, left: left2 } = $edcf132a9284368a$var$getOffset(containerNode, !1)), scroll.top = containerNode.scrollTop, scroll.left = containerNode.scrollLeft, totalWidth = width, totalHeight = height; 63371 if ($c87311424ea30a05$export$78551043582a6a98() && (containerNode.tagName === "BODY" || containerNode.tagName === "HTML") && isPinchZoomedIn) { 63372 scroll.top = 0, scroll.left = 0; 63373 var _visualViewport_pageTop; 63374 top2 = (_visualViewport_pageTop = $edcf132a9284368a$var$visualViewport?.pageTop) !== null && _visualViewport_pageTop !== void 0 ? _visualViewport_pageTop : 0; 63375 var _visualViewport_pageLeft; 63376 left2 = (_visualViewport_pageLeft = $edcf132a9284368a$var$visualViewport?.pageLeft) !== null && _visualViewport_pageLeft !== void 0 ? _visualViewport_pageLeft : 0; 63377 } 63378 return { 63379 width, 63380 height, 63381 totalWidth, 63382 totalHeight, 63383 scroll, 63384 top: top2, 63385 left: left2 63386 }; 63387} 63388function $edcf132a9284368a$var$getScroll(node2) { 63389 return { 63390 top: node2.scrollTop, 63391 left: node2.scrollLeft, 63392 width: node2.scrollWidth, 63393 height: node2.scrollHeight 63394 }; 63395} 63396function $edcf132a9284368a$var$getDelta(axis, offset3, size, boundaryDimensions, containerDimensions, padding, containerOffsetWithBoundary) { 63397 var _containerDimensions_scroll_axis; 63398 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]]; 63399 return startEdgeOffset < boundaryStartEdge ? boundaryStartEdge - startEdgeOffset : endEdgeOffset > boundaryEndEdge ? Math.max(boundaryEndEdge - endEdgeOffset, boundaryStartEdge - startEdgeOffset) : 0; 63400} 63401function $edcf132a9284368a$var$getMargins(node2) { 63402 let style = window.getComputedStyle(node2); 63403 return { 63404 top: parseInt(style.marginTop, 10) || 0, 63405 bottom: parseInt(style.marginBottom, 10) || 0, 63406 left: parseInt(style.marginLeft, 10) || 0, 63407 right: parseInt(style.marginRight, 10) || 0 63408 }; 63409} 63410function $edcf132a9284368a$var$parsePlacement(input2) { 63411 if ($edcf132a9284368a$var$PARSED_PLACEMENT_CACHE[input2]) return $edcf132a9284368a$var$PARSED_PLACEMENT_CACHE[input2]; 63412 let [placement, crossPlacement] = input2.split(" "), axis = $edcf132a9284368a$var$AXIS[placement] || "right", crossAxis = $edcf132a9284368a$var$CROSS_AXIS[axis]; 63413 $edcf132a9284368a$var$AXIS[crossPlacement] || (crossPlacement = "center"); 63414 let size = $edcf132a9284368a$var$AXIS_SIZE[axis], crossSize = $edcf132a9284368a$var$AXIS_SIZE[crossAxis]; 63415 return $edcf132a9284368a$var$PARSED_PLACEMENT_CACHE[input2] = { 63416 placement, 63417 crossPlacement, 63418 axis, 63419 crossAxis, 63420 size, 63421 crossSize 63422 }, $edcf132a9284368a$var$PARSED_PLACEMENT_CACHE[input2]; 63423} 63424function $edcf132a9284368a$var$computePosition(childOffset, boundaryDimensions, overlaySize, placementInfo, offset3, crossOffset, containerOffsetWithBoundary, isContainerPositioned, arrowSize, arrowBoundaryOffset) { 63425 let { placement, crossPlacement, axis, crossAxis, size, crossSize } = placementInfo, position2 = {}; 63426 var _childOffset_crossAxis; 63427 position2[crossAxis] = (_childOffset_crossAxis = childOffset[crossAxis]) !== null && _childOffset_crossAxis !== void 0 ? _childOffset_crossAxis : 0; 63428 var _childOffset_crossSize, _overlaySize_crossSize, _childOffset_crossSize1, _overlaySize_crossSize1; 63429 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; 63430 let minPosition = childOffset[crossAxis] - overlaySize[crossSize] + arrowSize + arrowBoundaryOffset, maxPosition = childOffset[crossAxis] + childOffset[crossSize] - arrowSize - arrowBoundaryOffset; 63431 if (position2[crossAxis] = $9446cca9a3875146$export$7d15b64cf5a3a4c4(position2[crossAxis], minPosition, maxPosition), placement === axis) { 63432 let containerHeight = isContainerPositioned ? containerOffsetWithBoundary[size] : boundaryDimensions[$edcf132a9284368a$var$TOTAL_SIZE[size]]; 63433 position2[$edcf132a9284368a$var$FLIPPED_DIRECTION[axis]] = Math.floor(containerHeight - childOffset[axis] + offset3); 63434 } else position2[axis] = Math.floor(childOffset[axis] + childOffset[size] + offset3); 63435 return position2; 63436} 63437function $edcf132a9284368a$var$getMaxHeight(position2, boundaryDimensions, containerOffsetWithBoundary, isContainerPositioned, margins, padding, overlayHeight, heightGrowthDirection) { 63438 let containerHeight = isContainerPositioned ? containerOffsetWithBoundary.height : boundaryDimensions[$edcf132a9284368a$var$TOTAL_SIZE.height]; 63439 var _position_bottom; 63440 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); 63441 var _boundaryDimensions_scroll_top, _margins_top, _margins_bottom, _boundaryDimensions_scroll_top1, _margins_top1, _margins_bottom1; 63442 let maxHeight = heightGrowthDirection !== "top" ? ( 63443 // We want the distance between the top of the overlay to the bottom of the boundary 63444 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)) 63445 ) : 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)); 63446 return Math.min(boundaryDimensions.height - padding * 2, maxHeight); 63447} 63448function $edcf132a9284368a$var$getAvailableSpace(boundaryDimensions, containerOffsetWithBoundary, childOffset, margins, padding, placementInfo) { 63449 let { placement, axis, size } = placementInfo; 63450 var _boundaryDimensions_scroll_axis, _margins_axis; 63451 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); 63452 var _margins_axis1; 63453 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); 63454} 63455function $edcf132a9284368a$export$6839422d1f33cee9(placementInput, childOffset, overlaySize, scrollSize, margins, padding, flip2, boundaryDimensions, containerDimensions, containerOffsetWithBoundary, offset3, crossOffset, isContainerPositioned, userSetMaxHeight, arrowSize, arrowBoundaryOffset) { 63456 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); 63457 if (flip2 && scrollSize[size] > space) { 63458 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); 63459 $edcf132a9284368a$var$getAvailableSpace(boundaryDimensions, containerOffsetWithBoundary, childOffset, margins, padding + offset3, flippedPlacementInfo) > space && (placementInfo = flippedPlacementInfo, position2 = flippedPosition, normalizedOffset = offset3); 63460 } 63461 let heightGrowthDirection = "bottom"; 63462 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")); 63463 let delta = $edcf132a9284368a$var$getDelta(crossAxis, position2[crossAxis], overlaySize[crossSize], boundaryDimensions, containerDimensions, padding, containerOffsetWithBoundary); 63464 position2[crossAxis] += delta; 63465 let maxHeight = $edcf132a9284368a$var$getMaxHeight(position2, boundaryDimensions, containerOffsetWithBoundary, isContainerPositioned, margins, padding, overlaySize.height, heightGrowthDirection); 63466 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; 63467 let arrowPosition = {}, origin = childOffset[crossAxis] - position2[crossAxis] - margins[$edcf132a9284368a$var$AXIS[crossAxis]], preferredArrowPosition = origin + 0.5 * childOffset[crossSize], arrowMinPosition = arrowSize / 2 + arrowBoundaryOffset; 63468 var _margins_left, _margins_right, _margins_top, _margins_bottom; 63469 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); 63470 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); 63471 let crossOrigin = placement === "left" || placement === "top" ? overlaySize[size] : 0, triggerAnchorPoint = { 63472 x: placement === "top" || placement === "bottom" ? origin : crossOrigin, 63473 y: placement === "left" || placement === "right" ? origin : crossOrigin 63474 }; 63475 return { 63476 position: position2, 63477 maxHeight, 63478 arrowOffsetLeft: arrowPosition.left, 63479 arrowOffsetTop: arrowPosition.top, 63480 placement, 63481 triggerAnchorPoint 63482 }; 63483} 63484function $edcf132a9284368a$export$b3ceb0cbf1056d98(opts) { 63485 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); 63486 if (!isViewportContainer) { 63487 let { marginTop, marginLeft } = window.getComputedStyle(targetNode); 63488 childOffset.top += parseInt(marginTop, 10) || 0, childOffset.left += parseInt(marginLeft, 10) || 0; 63489 } 63490 let overlaySize = $edcf132a9284368a$var$getOffset(overlayNode, !0), margins = $edcf132a9284368a$var$getMargins(overlayNode); 63491 var _margins_left, _margins_right; 63492 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); 63493 var _margins_top, _margins_bottom; 63494 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); 63495 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); 63496 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); 63497} 63498function $edcf132a9284368a$export$4b834cebd9e5cebe(node2, ignoreScale) { 63499 let { top: top2, left: left2, width, height } = node2.getBoundingClientRect(); 63500 return ignoreScale && node2 instanceof node2.ownerDocument.defaultView.HTMLElement && (width = node2.offsetWidth, height = node2.offsetHeight), { 63501 top: top2, 63502 left: left2, 63503 width, 63504 height 63505 }; 63506} 63507function $edcf132a9284368a$var$getOffset(node2, ignoreScale) { 63508 let { top: top2, left: left2, width, height } = $edcf132a9284368a$export$4b834cebd9e5cebe(node2, ignoreScale), { scrollTop, scrollLeft, clientTop, clientLeft } = document.documentElement; 63509 return { 63510 top: top2 + scrollTop - clientTop, 63511 left: left2 + scrollLeft - clientLeft, 63512 width, 63513 height 63514 }; 63515} 63516function $edcf132a9284368a$var$getPosition(node2, parent, ignoreScale) { 63517 let style = window.getComputedStyle(node2), offset3; 63518 if (style.position === "fixed") offset3 = $edcf132a9284368a$export$4b834cebd9e5cebe(node2, ignoreScale); 63519 else { 63520 offset3 = $edcf132a9284368a$var$getOffset(node2, ignoreScale); 63521 let parentOffset = $edcf132a9284368a$var$getOffset(parent, ignoreScale), parentStyle = window.getComputedStyle(parent); 63522 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; 63523 } 63524 return offset3.top -= parseInt(style.marginTop, 10) || 0, offset3.left -= parseInt(style.marginLeft, 10) || 0, offset3; 63525} 63526function $edcf132a9284368a$var$getContainingBlock(node2) { 63527 let offsetParent = node2.offsetParent; 63528 if (offsetParent && offsetParent === document.body && window.getComputedStyle(offsetParent).position === "static" && !$edcf132a9284368a$var$isContainingBlock(offsetParent) && (offsetParent = document.documentElement), offsetParent == null) 63529 for (offsetParent = node2.parentElement; offsetParent && !$edcf132a9284368a$var$isContainingBlock(offsetParent); ) offsetParent = offsetParent.parentElement; 63530 return offsetParent || document.documentElement; 63531} 63532function $edcf132a9284368a$var$isContainingBlock(node2) { 63533 let style = window.getComputedStyle(node2); 63534 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"; 63535} 63536
vendor: 972 bytes, lines 63537-63558
63537// ../../node_modules/@react-aria/overlays/dist/useCloseOnScroll.mjs 63538var import_react63 = __toESM(require_react(), 1), $dd149f63282afbbf$export$f6211563215e3b37 = /* @__PURE__ */ new WeakMap(); 63539function $dd149f63282afbbf$export$18fc8428861184da(opts) { 63540 let { triggerRef, isOpen, onClose } = opts; 63541 (0, import_react63.useEffect)(() => { 63542 if (!isOpen || onClose === null) return; 63543 let onScroll = (e) => { 63544 let target = e.target; 63545 if (!triggerRef.current || target instanceof Node && !target.contains(triggerRef.current) || e.target instanceof HTMLInputElement || e.target instanceof HTMLTextAreaElement) return; 63546 let onCloseHandler = onClose || $dd149f63282afbbf$export$f6211563215e3b37.get(triggerRef.current); 63547 onCloseHandler && onCloseHandler(); 63548 }; 63549 return window.addEventListener("scroll", onScroll, !0), () => { 63550 window.removeEventListener("scroll", onScroll, !0); 63551 }; 63552 }, [ 63553 isOpen, 63554 onClose, 63555 triggerRef 63556 ]); 63557} 63558
vendor: 122 bytes, lines 63559-63561
63559// ../../node_modules/@react-aria/overlays/dist/useOverlayPosition.mjs 63560var import_react72 = __toESM(require_react(), 1); 63561
vendor: 925 bytes, lines 63562-63604
63562// ../../node_modules/@react-aria/i18n/dist/utils.mjs 63563var $148a7a147e38ea7f$var$RTL_SCRIPTS = /* @__PURE__ */ new Set([ 63564 "Arab", 63565 "Syrc", 63566 "Samr", 63567 "Mand", 63568 "Thaa", 63569 "Mend", 63570 "Nkoo", 63571 "Adlm", 63572 "Rohg", 63573 "Hebr" 63574]), $148a7a147e38ea7f$var$RTL_LANGS = /* @__PURE__ */ new Set([ 63575 "ae", 63576 "ar", 63577 "arc", 63578 "bcc", 63579 "bqi", 63580 "ckb", 63581 "dv", 63582 "fa", 63583 "glk", 63584 "he", 63585 "ku", 63586 "mzn", 63587 "nqo", 63588 "pnb", 63589 "ps", 63590 "sd", 63591 "ug", 63592 "ur", 63593 "yi" 63594]); 63595function $148a7a147e38ea7f$export$702d680b21cbd764(localeString) { 63596 if (Intl.Locale) { 63597 let locale = new Intl.Locale(localeString).maximize(), textInfo = typeof locale.getTextInfo == "function" ? locale.getTextInfo() : locale.textInfo; 63598 if (textInfo) return textInfo.direction === "rtl"; 63599 if (locale.script) return $148a7a147e38ea7f$var$RTL_SCRIPTS.has(locale.script); 63600 } 63601 let lang = localeString.split("-")[0]; 63602 return $148a7a147e38ea7f$var$RTL_LANGS.has(lang); 63603} 63604
vendor: 1,755 bytes, lines 63605-63636
63605// ../../node_modules/@react-aria/i18n/dist/useDefaultLocale.mjs 63606var import_react64 = __toESM(require_react(), 1); 63607var $1e5a04cdaf7d1af8$var$localeSymbol = Symbol.for("react-aria.i18n.locale"); 63608function $1e5a04cdaf7d1af8$export$f09106e7c6677ec5() { 63609 let locale = typeof window < "u" && window[$1e5a04cdaf7d1af8$var$localeSymbol] || typeof navigator < "u" && (navigator.language || navigator.userLanguage) || "en-US"; 63610 try { 63611 Intl.DateTimeFormat.supportedLocalesOf([ 63612 locale 63613 ]); 63614 } catch { 63615 locale = "en-US"; 63616 } 63617 return { 63618 locale, 63619 direction: $148a7a147e38ea7f$export$702d680b21cbd764(locale) ? "rtl" : "ltr" 63620 }; 63621} 63622var $1e5a04cdaf7d1af8$var$currentLocale = $1e5a04cdaf7d1af8$export$f09106e7c6677ec5(), $1e5a04cdaf7d1af8$var$listeners = /* @__PURE__ */ new Set(); 63623function $1e5a04cdaf7d1af8$var$updateLocale() { 63624 $1e5a04cdaf7d1af8$var$currentLocale = $1e5a04cdaf7d1af8$export$f09106e7c6677ec5(); 63625 for (let listener of $1e5a04cdaf7d1af8$var$listeners) listener($1e5a04cdaf7d1af8$var$currentLocale); 63626} 63627function $1e5a04cdaf7d1af8$export$188ec29ebc2bdc3a() { 63628 let isSSR = $b5e257d569688ac6$export$535bd6ca7f90a273(), [defaultLocale, setDefaultLocale] = (0, import_react64.useState)($1e5a04cdaf7d1af8$var$currentLocale); 63629 return (0, import_react64.useEffect)(() => ($1e5a04cdaf7d1af8$var$listeners.size === 0 && window.addEventListener("languagechange", $1e5a04cdaf7d1af8$var$updateLocale), $1e5a04cdaf7d1af8$var$listeners.add(setDefaultLocale), () => { 63630 $1e5a04cdaf7d1af8$var$listeners.delete(setDefaultLocale), $1e5a04cdaf7d1af8$var$listeners.size === 0 && window.removeEventListener("languagechange", $1e5a04cdaf7d1af8$var$updateLocale); 63631 }), []), isSSR ? { 63632 locale: "en-US", 63633 direction: "ltr" 63634 } : defaultLocale; 63635} 63636
vendor: 404 bytes, lines 63637-63643
63637// ../../node_modules/@react-aria/i18n/dist/context.mjs 63638var import_react65 = __toESM(require_react(), 1), $18f2051aff69b9bf$var$I18nContext = import_react65.default.createContext(null); 63639function $18f2051aff69b9bf$export$43bb16f9c6d9e3f7() { 63640 let defaultLocale = $1e5a04cdaf7d1af8$export$188ec29ebc2bdc3a(); 63641 return (0, import_react65.useContext)($18f2051aff69b9bf$var$I18nContext) || defaultLocale; 63642} 63643
vendor: 1,716 bytes, lines 63644-63683
63644// ../../node_modules/tslib/tslib.es6.mjs 63645var extendStatics = function(d, b) { 63646 return extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d2, b2) { 63647 d2.__proto__ = b2; 63648 } || function(d2, b2) { 63649 for (var p3 in b2) Object.prototype.hasOwnProperty.call(b2, p3) && (d2[p3] = b2[p3]); 63650 }, extendStatics(d, b); 63651}; 63652function __extends(d, b) { 63653 if (typeof b != "function" && b !== null) 63654 throw new TypeError("Class extends value " + String(b) + " is not a constructor or null"); 63655 extendStatics(d, b); 63656 function __() { 63657 this.constructor = d; 63658 } 63659 d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); 63660} 63661var __assign = function() { 63662 return __assign = Object.assign || function(t) { 63663 for (var s3, i = 1, n = arguments.length; i < n; i++) { 63664 s3 = arguments[i]; 63665 for (var p3 in s3) Object.prototype.hasOwnProperty.call(s3, p3) && (t[p3] = s3[p3]); 63666 } 63667 return t; 63668 }, __assign.apply(this, arguments); 63669}; 63670function __rest(s3, e) { 63671 var t = {}; 63672 for (var p3 in s3) Object.prototype.hasOwnProperty.call(s3, p3) && e.indexOf(p3) < 0 && (t[p3] = s3[p3]); 63673 if (s3 != null && typeof Object.getOwnPropertySymbols == "function") 63674 for (var i = 0, p3 = Object.getOwnPropertySymbols(s3); i < p3.length; i++) 63675 e.indexOf(p3[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s3, p3[i]) && (t[p3[i]] = s3[p3[i]]); 63676 return t; 63677} 63678function __spreadArray(to, from2, pack) { 63679 if (pack || arguments.length === 2) for (var i = 0, l = from2.length, ar; i < l; i++) 63680 (ar || !(i in from2)) && (ar || (ar = Array.prototype.slice.call(from2, 0, i)), ar[i] = from2[i]); 63681 return to.concat(ar || Array.prototype.slice.call(from2)); 63682} 63683
vendor: 2,304 bytes, lines 63684-63738
63684// ../../node_modules/@formatjs/fast-memoize/lib/index.js 63685function memoize12(fn4, options) { 63686 var cache = options && options.cache ? options.cache : cacheDefault, serializer = options && options.serializer ? options.serializer : serializerDefault, strategy = options && options.strategy ? options.strategy : strategyDefault; 63687 return strategy(fn4, { 63688 cache, 63689 serializer 63690 }); 63691} 63692function isPrimitive4(value) { 63693 return value == null || typeof value == "number" || typeof value == "boolean"; 63694} 63695function monadic(fn4, cache, serializer, arg) { 63696 var cacheKey = isPrimitive4(arg) ? arg : serializer(arg), computedValue = cache.get(cacheKey); 63697 return typeof computedValue > "u" && (computedValue = fn4.call(this, arg), cache.set(cacheKey, computedValue)), computedValue; 63698} 63699function variadic(fn4, cache, serializer) { 63700 var args = Array.prototype.slice.call(arguments, 3), cacheKey = serializer(args), computedValue = cache.get(cacheKey); 63701 return typeof computedValue > "u" && (computedValue = fn4.apply(this, args), cache.set(cacheKey, computedValue)), computedValue; 63702} 63703function assemble(fn4, context, strategy, cache, serialize3) { 63704 return strategy.bind(context, fn4, cache, serialize3); 63705} 63706function strategyDefault(fn4, options) { 63707 var strategy = fn4.length === 1 ? monadic : variadic; 63708 return assemble(fn4, this, strategy, options.cache.create(), options.serializer); 63709} 63710function strategyVariadic(fn4, options) { 63711 return assemble(fn4, this, variadic, options.cache.create(), options.serializer); 63712} 63713function strategyMonadic(fn4, options) { 63714 return assemble(fn4, this, monadic, options.cache.create(), options.serializer); 63715} 63716var serializerDefault = function() { 63717 return JSON.stringify(arguments); 63718}, ObjectWithoutPrototypeCache = ( 63719 /** @class */ 63720 (function() { 63721 function ObjectWithoutPrototypeCache2() { 63722 this.cache = /* @__PURE__ */ Object.create(null); 63723 } 63724 return ObjectWithoutPrototypeCache2.prototype.get = function(key) { 63725 return this.cache[key]; 63726 }, ObjectWithoutPrototypeCache2.prototype.set = function(key, value) { 63727 this.cache[key] = value; 63728 }, ObjectWithoutPrototypeCache2; 63729 })() 63730), cacheDefault = { 63731 create: function() { 63732 return new ObjectWithoutPrototypeCache(); 63733 } 63734}, strategies = { 63735 variadic: strategyVariadic, 63736 monadic: strategyMonadic 63737}; 63738
vendor: 2,396 bytes, lines 63739-63744
63739// ../../node_modules/@formatjs/icu-messageformat-parser/lib/error.js 63740var ErrorKind; 63741(function(ErrorKind2) { 63742 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"; 63743})(ErrorKind || (ErrorKind = {})); 63744
vendor: 1,466 bytes, lines 63745-63787
63745// ../../node_modules/@formatjs/icu-messageformat-parser/lib/types.js 63746var TYPE; 63747(function(TYPE2) { 63748 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"; 63749})(TYPE || (TYPE = {})); 63750var SKELETON_TYPE; 63751(function(SKELETON_TYPE2) { 63752 SKELETON_TYPE2[SKELETON_TYPE2.number = 0] = "number", SKELETON_TYPE2[SKELETON_TYPE2.dateTime = 1] = "dateTime"; 63753})(SKELETON_TYPE || (SKELETON_TYPE = {})); 63754function isLiteralElement(el) { 63755 return el.type === TYPE.literal; 63756} 63757function isArgumentElement(el) { 63758 return el.type === TYPE.argument; 63759} 63760function isNumberElement(el) { 63761 return el.type === TYPE.number; 63762} 63763function isDateElement(el) { 63764 return el.type === TYPE.date; 63765} 63766function isTimeElement(el) { 63767 return el.type === TYPE.time; 63768} 63769function isSelectElement(el) { 63770 return el.type === TYPE.select; 63771} 63772function isPluralElement(el) { 63773 return el.type === TYPE.plural; 63774} 63775function isPoundElement(el) { 63776 return el.type === TYPE.pound; 63777} 63778function isTagElement(el) { 63779 return el.type === TYPE.tag; 63780} 63781function isNumberSkeleton(el) { 63782 return !!(el && typeof el == "object" && el.type === SKELETON_TYPE.number); 63783} 63784function isDateTimeSkeleton(el) { 63785 return !!(el && typeof el == "object" && el.type === SKELETON_TYPE.dateTime); 63786} 63787
vendor: 157 bytes, lines 63788-63790
63788// ../../node_modules/@formatjs/icu-messageformat-parser/lib/regex.generated.js 63789var SPACE_SEPARATOR_REGEX = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/; 63790
vendor: 3,707 bytes, lines 63791-63901
63791// ../../node_modules/@formatjs/icu-skeleton-parser/lib/date-time.js 63792var 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; 63793function parseDateTimeSkeleton(skeleton) { 63794 var result = {}; 63795 return skeleton.replace(DATE_TIME_REGEX, function(match3) { 63796 var len = match3.length; 63797 switch (match3[0]) { 63798 // Era 63799 case "G": 63800 result.era = len === 4 ? "long" : len === 5 ? "narrow" : "short"; 63801 break; 63802 // Year 63803 case "y": 63804 result.year = len === 2 ? "2-digit" : "numeric"; 63805 break; 63806 case "Y": 63807 case "u": 63808 case "U": 63809 case "r": 63810 throw new RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead"); 63811 // Quarter 63812 case "q": 63813 case "Q": 63814 throw new RangeError("`q/Q` (quarter) patterns are not supported"); 63815 // Month 63816 case "M": 63817 case "L": 63818 result.month = ["numeric", "2-digit", "short", "long", "narrow"][len - 1]; 63819 break; 63820 // Week 63821 case "w": 63822 case "W": 63823 throw new RangeError("`w/W` (week) patterns are not supported"); 63824 case "d": 63825 result.day = ["numeric", "2-digit"][len - 1]; 63826 break; 63827 case "D": 63828 case "F": 63829 case "g": 63830 throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead"); 63831 // Weekday 63832 case "E": 63833 result.weekday = len === 4 ? "long" : len === 5 ? "narrow" : "short"; 63834 break; 63835 case "e": 63836 if (len < 4) 63837 throw new RangeError("`e..eee` (weekday) patterns are not supported"); 63838 result.weekday = ["short", "long", "narrow", "short"][len - 4]; 63839 break; 63840 case "c": 63841 if (len < 4) 63842 throw new RangeError("`c..ccc` (weekday) patterns are not supported"); 63843 result.weekday = ["short", "long", "narrow", "short"][len - 4]; 63844 break; 63845 // Period 63846 case "a": 63847 result.hour12 = !0; 63848 break; 63849 case "b": 63850 // am, pm, noon, midnight 63851 case "B": 63852 throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead"); 63853 // Hour 63854 case "h": 63855 result.hourCycle = "h12", result.hour = ["numeric", "2-digit"][len - 1]; 63856 break; 63857 case "H": 63858 result.hourCycle = "h23", result.hour = ["numeric", "2-digit"][len - 1]; 63859 break; 63860 case "K": 63861 result.hourCycle = "h11", result.hour = ["numeric", "2-digit"][len - 1]; 63862 break; 63863 case "k": 63864 result.hourCycle = "h24", result.hour = ["numeric", "2-digit"][len - 1]; 63865 break; 63866 case "j": 63867 case "J": 63868 case "C": 63869 throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead"); 63870 // Minute 63871 case "m": 63872 result.minute = ["numeric", "2-digit"][len - 1]; 63873 break; 63874 // Second 63875 case "s": 63876 result.second = ["numeric", "2-digit"][len - 1]; 63877 break; 63878 case "S": 63879 case "A": 63880 throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead"); 63881 // Zone 63882 case "z": 63883 result.timeZoneName = len < 4 ? "short" : "long"; 63884 break; 63885 case "Z": 63886 // 1..3, 4, 5: The ISO8601 varios formats 63887 case "O": 63888 // 1, 4: milliseconds in day short, long 63889 case "v": 63890 // 1, 4: generic non-location format 63891 case "V": 63892 // 1, 2, 3, 4: time zone ID or city 63893 case "X": 63894 // 1, 2, 3, 4: The ISO8601 varios formats 63895 case "x": 63896 throw new RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead"); 63897 } 63898 return ""; 63899 }), result; 63900} 63901
vendor: 141 bytes, lines 63902-63904
63902// ../../node_modules/@formatjs/icu-skeleton-parser/lib/regex.generated.js 63903var WHITE_SPACE_REGEX = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i; 63904
vendor: 8,716 bytes, lines 63905-64118
63905// ../../node_modules/@formatjs/icu-skeleton-parser/lib/number.js 63906function parseNumberSkeletonFromString(skeleton) { 63907 if (skeleton.length === 0) 63908 throw new Error("Number skeleton cannot be empty"); 63909 for (var stringTokens = skeleton.split(WHITE_SPACE_REGEX).filter(function(x) { 63910 return x.length > 0; 63911 }), tokens2 = [], _i = 0, stringTokens_1 = stringTokens; _i < stringTokens_1.length; _i++) { 63912 var stringToken = stringTokens_1[_i], stemAndOptions = stringToken.split("/"); 63913 if (stemAndOptions.length === 0) 63914 throw new Error("Invalid number skeleton"); 63915 for (var stem = stemAndOptions[0], options = stemAndOptions.slice(1), _a4 = 0, options_1 = options; _a4 < options_1.length; _a4++) { 63916 var option = options_1[_a4]; 63917 if (option.length === 0) 63918 throw new Error("Invalid number skeleton"); 63919 } 63920 tokens2.push({ stem, options }); 63921 } 63922 return tokens2; 63923} 63924function icuUnitToEcma(unit) { 63925 return unit.replace(/^(.*?)-/, ""); 63926} 63927var FRACTION_PRECISION_REGEX = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, SIGNIFICANT_PRECISION_REGEX = /^(@+)?(\+|#+)?[rs]?$/g, INTEGER_WIDTH_REGEX = /(\*)(0+)|(#+)(0+)|(0+)/g, CONCISE_INTEGER_WIDTH_REGEX = /^(0+)$/; 63928function parseSignificantPrecision(str2) { 63929 var result = {}; 63930 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) { 63931 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)), ""; 63932 }), result; 63933} 63934function parseSign(str2) { 63935 switch (str2) { 63936 case "sign-auto": 63937 return { 63938 signDisplay: "auto" 63939 }; 63940 case "sign-accounting": 63941 case "()": 63942 return { 63943 currencySign: "accounting" 63944 }; 63945 case "sign-always": 63946 case "+!": 63947 return { 63948 signDisplay: "always" 63949 }; 63950 case "sign-accounting-always": 63951 case "()!": 63952 return { 63953 signDisplay: "always", 63954 currencySign: "accounting" 63955 }; 63956 case "sign-except-zero": 63957 case "+?": 63958 return { 63959 signDisplay: "exceptZero" 63960 }; 63961 case "sign-accounting-except-zero": 63962 case "()?": 63963 return { 63964 signDisplay: "exceptZero", 63965 currencySign: "accounting" 63966 }; 63967 case "sign-never": 63968 case "+_": 63969 return { 63970 signDisplay: "never" 63971 }; 63972 } 63973} 63974function parseConciseScientificAndEngineeringStem(stem) { 63975 var result; 63976 if (stem[0] === "E" && stem[1] === "E" ? (result = { 63977 notation: "engineering" 63978 }, stem = stem.slice(2)) : stem[0] === "E" && (result = { 63979 notation: "scientific" 63980 }, stem = stem.slice(1)), result) { 63981 var signDisplay = stem.slice(0, 2); 63982 if (signDisplay === "+!" ? (result.signDisplay = "always", stem = stem.slice(2)) : signDisplay === "+?" && (result.signDisplay = "exceptZero", stem = stem.slice(2)), !CONCISE_INTEGER_WIDTH_REGEX.test(stem)) 63983 throw new Error("Malformed concise eng/scientific notation"); 63984 result.minimumIntegerDigits = stem.length; 63985 } 63986 return result; 63987} 63988function parseNotationOptions(opt) { 63989 var result = {}, signOpts = parseSign(opt); 63990 return signOpts || result; 63991} 63992function parseNumberSkeleton(tokens2) { 63993 for (var result = {}, _i = 0, tokens_1 = tokens2; _i < tokens_1.length; _i++) { 63994 var token2 = tokens_1[_i]; 63995 switch (token2.stem) { 63996 case "percent": 63997 case "%": 63998 result.style = "percent"; 63999 continue; 64000 case "%x100": 64001 result.style = "percent", result.scale = 100; 64002 continue; 64003 case "currency": 64004 result.style = "currency", result.currency = token2.options[0]; 64005 continue; 64006 case "group-off": 64007 case ",_": 64008 result.useGrouping = !1; 64009 continue; 64010 case "precision-integer": 64011 case ".": 64012 result.maximumFractionDigits = 0; 64013 continue; 64014 case "measure-unit": 64015 case "unit": 64016 result.style = "unit", result.unit = icuUnitToEcma(token2.options[0]); 64017 continue; 64018 case "compact-short": 64019 case "K": 64020 result.notation = "compact", result.compactDisplay = "short"; 64021 continue; 64022 case "compact-long": 64023 case "KK": 64024 result.notation = "compact", result.compactDisplay = "long"; 64025 continue; 64026 case "scientific": 64027 result = __assign(__assign(__assign({}, result), { notation: "scientific" }), token2.options.reduce(function(all, opt2) { 64028 return __assign(__assign({}, all), parseNotationOptions(opt2)); 64029 }, {})); 64030 continue; 64031 case "engineering": 64032 result = __assign(__assign(__assign({}, result), { notation: "engineering" }), token2.options.reduce(function(all, opt2) { 64033 return __assign(__assign({}, all), parseNotationOptions(opt2)); 64034 }, {})); 64035 continue; 64036 case "notation-simple": 64037 result.notation = "standard"; 64038 continue; 64039 // https://github.com/unicode-org/icu/blob/master/icu4c/source/i18n/unicode/unumberformatter.h 64040 case "unit-width-narrow": 64041 result.currencyDisplay = "narrowSymbol", result.unitDisplay = "narrow"; 64042 continue; 64043 case "unit-width-short": 64044 result.currencyDisplay = "code", result.unitDisplay = "short"; 64045 continue; 64046 case "unit-width-full-name": 64047 result.currencyDisplay = "name", result.unitDisplay = "long"; 64048 continue; 64049 case "unit-width-iso-code": 64050 result.currencyDisplay = "symbol"; 64051 continue; 64052 case "scale": 64053 result.scale = parseFloat(token2.options[0]); 64054 continue; 64055 case "rounding-mode-floor": 64056 result.roundingMode = "floor"; 64057 continue; 64058 case "rounding-mode-ceiling": 64059 result.roundingMode = "ceil"; 64060 continue; 64061 case "rounding-mode-down": 64062 result.roundingMode = "trunc"; 64063 continue; 64064 case "rounding-mode-up": 64065 result.roundingMode = "expand"; 64066 continue; 64067 case "rounding-mode-half-even": 64068 result.roundingMode = "halfEven"; 64069 continue; 64070 case "rounding-mode-half-down": 64071 result.roundingMode = "halfTrunc"; 64072 continue; 64073 case "rounding-mode-half-up": 64074 result.roundingMode = "halfExpand"; 64075 continue; 64076 // https://unicode-org.github.io/icu/userguide/format_parse/numbers/skeletons.html#integer-width 64077 case "integer-width": 64078 if (token2.options.length > 1) 64079 throw new RangeError("integer-width stems only accept a single optional option"); 64080 token2.options[0].replace(INTEGER_WIDTH_REGEX, function(_, g1, g2, g3, g4, g5) { 64081 if (g1) 64082 result.minimumIntegerDigits = g2.length; 64083 else { 64084 if (g3 && g4) 64085 throw new Error("We currently do not support maximum integer digits"); 64086 if (g5) 64087 throw new Error("We currently do not support exact integer digits"); 64088 } 64089 return ""; 64090 }); 64091 continue; 64092 } 64093 if (CONCISE_INTEGER_WIDTH_REGEX.test(token2.stem)) { 64094 result.minimumIntegerDigits = token2.stem.length; 64095 continue; 64096 } 64097 if (FRACTION_PRECISION_REGEX.test(token2.stem)) { 64098 if (token2.options.length > 1) 64099 throw new RangeError("Fraction-precision stems only accept a single optional option"); 64100 token2.stem.replace(FRACTION_PRECISION_REGEX, function(_, g1, g2, g3, g4, g5) { 64101 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), ""; 64102 }); 64103 var opt = token2.options[0]; 64104 opt === "w" ? result = __assign(__assign({}, result), { trailingZeroDisplay: "stripIfInteger" }) : opt && (result = __assign(__assign({}, result), parseSignificantPrecision(opt))); 64105 continue; 64106 } 64107 if (SIGNIFICANT_PRECISION_REGEX.test(token2.stem)) { 64108 result = __assign(__assign({}, result), parseSignificantPrecision(token2.stem)); 64109 continue; 64110 } 64111 var signOpts = parseSign(token2.stem); 64112 signOpts && (result = __assign(__assign({}, result), signOpts)); 64113 var conciseScientificAndEngineeringOpts = parseConciseScientificAndEngineeringStem(token2.stem); 64114 conciseScientificAndEngineeringOpts && (result = __assign(__assign({}, result), conciseScientificAndEngineeringOpts)); 64115 } 64116 return result; 64117} 64118
vendor: 11,674 bytes, lines 64119-65535
64119// ../../node_modules/@formatjs/icu-messageformat-parser/lib/time-data.generated.js 64120var timeData = { 64121 "001": [ 64122 "H", 64123 "h" 64124 ], 64125 419: [ 64126 "h", 64127 "H", 64128 "hB", 64129 "hb" 64130 ], 64131 AC: [ 64132 "H", 64133 "h", 64134 "hb", 64135 "hB" 64136 ], 64137 AD: [ 64138 "H", 64139 "hB" 64140 ], 64141 AE: [ 64142 "h", 64143 "hB", 64144 "hb", 64145 "H" 64146 ], 64147 AF: [ 64148 "H", 64149 "hb", 64150 "hB", 64151 "h" 64152 ], 64153 AG: [ 64154 "h", 64155 "hb", 64156 "H", 64157 "hB" 64158 ], 64159 AI: [ 64160 "H", 64161 "h", 64162 "hb", 64163 "hB" 64164 ], 64165 AL: [ 64166 "h", 64167 "H", 64168 "hB" 64169 ], 64170 AM: [ 64171 "H", 64172 "hB" 64173 ], 64174 AO: [ 64175 "H", 64176 "hB" 64177 ], 64178 AR: [ 64179 "h", 64180 "H", 64181 "hB", 64182 "hb" 64183 ], 64184 AS: [ 64185 "h", 64186 "H" 64187 ], 64188 AT: [ 64189 "H", 64190 "hB" 64191 ], 64192 AU: [ 64193 "h", 64194 "hb", 64195 "H", 64196 "hB" 64197 ], 64198 AW: [ 64199 "H", 64200 "hB" 64201 ], 64202 AX: [ 64203 "H" 64204 ], 64205 AZ: [ 64206 "H", 64207 "hB", 64208 "h" 64209 ], 64210 BA: [ 64211 "H", 64212 "hB", 64213 "h" 64214 ], 64215 BB: [ 64216 "h", 64217 "hb", 64218 "H", 64219 "hB" 64220 ], 64221 BD: [ 64222 "h", 64223 "hB", 64224 "H" 64225 ], 64226 BE: [ 64227 "H", 64228 "hB" 64229 ], 64230 BF: [ 64231 "H", 64232 "hB" 64233 ], 64234 BG: [ 64235 "H", 64236 "hB", 64237 "h" 64238 ], 64239 BH: [ 64240 "h", 64241 "hB", 64242 "hb", 64243 "H" 64244 ], 64245 BI: [ 64246 "H", 64247 "h" 64248 ], 64249 BJ: [ 64250 "H", 64251 "hB" 64252 ], 64253 BL: [ 64254 "H", 64255 "hB" 64256 ], 64257 BM: [ 64258 "h", 64259 "hb", 64260 "H", 64261 "hB" 64262 ], 64263 BN: [ 64264 "hb", 64265 "hB", 64266 "h", 64267 "H" 64268 ], 64269 BO: [ 64270 "h", 64271 "H", 64272 "hB", 64273 "hb" 64274 ], 64275 BQ: [ 64276 "H" 64277 ], 64278 BR: [ 64279 "H", 64280 "hB" 64281 ], 64282 BS: [ 64283 "h", 64284 "hb", 64285 "H", 64286 "hB" 64287 ], 64288 BT: [ 64289 "h", 64290 "H" 64291 ], 64292 BW: [ 64293 "H", 64294 "h", 64295 "hb", 64296 "hB" 64297 ], 64298 BY: [ 64299 "H", 64300 "h" 64301 ], 64302 BZ: [ 64303 "H", 64304 "h", 64305 "hb", 64306 "hB" 64307 ], 64308 CA: [ 64309 "h", 64310 "hb", 64311 "H", 64312 "hB" 64313 ], 64314 CC: [ 64315 "H", 64316 "h", 64317 "hb", 64318 "hB" 64319 ], 64320 CD: [ 64321 "hB", 64322 "H" 64323 ], 64324 CF: [ 64325 "H", 64326 "h", 64327 "hB" 64328 ], 64329 CG: [ 64330 "H", 64331 "hB" 64332 ], 64333 CH: [ 64334 "H", 64335 "hB", 64336 "h" 64337 ], 64338 CI: [ 64339 "H", 64340 "hB" 64341 ], 64342 CK: [ 64343 "H", 64344 "h", 64345 "hb", 64346 "hB" 64347 ], 64348 CL: [ 64349 "h", 64350 "H", 64351 "hB", 64352 "hb" 64353 ], 64354 CM: [ 64355 "H", 64356 "h", 64357 "hB" 64358 ], 64359 CN: [ 64360 "H", 64361 "hB", 64362 "hb", 64363 "h" 64364 ], 64365 CO: [ 64366 "h", 64367 "H", 64368 "hB", 64369 "hb" 64370 ], 64371 CP: [ 64372 "H" 64373 ], 64374 CR: [ 64375 "h", 64376 "H", 64377 "hB", 64378 "hb" 64379 ], 64380 CU: [ 64381 "h", 64382 "H", 64383 "hB", 64384 "hb" 64385 ], 64386 CV: [ 64387 "H", 64388 "hB" 64389 ], 64390 CW: [ 64391 "H", 64392 "hB" 64393 ], 64394 CX: [ 64395 "H", 64396 "h", 64397 "hb", 64398 "hB" 64399 ], 64400 CY: [ 64401 "h", 64402 "H", 64403 "hb", 64404 "hB" 64405 ], 64406 CZ: [ 64407 "H" 64408 ], 64409 DE: [ 64410 "H", 64411 "hB" 64412 ], 64413 DG: [ 64414 "H", 64415 "h", 64416 "hb", 64417 "hB" 64418 ], 64419 DJ: [ 64420 "h", 64421 "H" 64422 ], 64423 DK: [ 64424 "H" 64425 ], 64426 DM: [ 64427 "h", 64428 "hb", 64429 "H", 64430 "hB" 64431 ], 64432 DO: [ 64433 "h", 64434 "H", 64435 "hB", 64436 "hb" 64437 ], 64438 DZ: [ 64439 "h", 64440 "hB", 64441 "hb", 64442 "H" 64443 ], 64444 EA: [ 64445 "H", 64446 "h", 64447 "hB", 64448 "hb" 64449 ], 64450 EC: [ 64451 "h", 64452 "H", 64453 "hB", 64454 "hb" 64455 ], 64456 EE: [ 64457 "H", 64458 "hB" 64459 ], 64460 EG: [ 64461 "h", 64462 "hB", 64463 "hb", 64464 "H" 64465 ], 64466 EH: [ 64467 "h", 64468 "hB", 64469 "hb", 64470 "H" 64471 ], 64472 ER: [ 64473 "h", 64474 "H" 64475 ], 64476 ES: [ 64477 "H", 64478 "hB", 64479 "h", 64480 "hb" 64481 ], 64482 ET: [ 64483 "hB", 64484 "hb", 64485 "h", 64486 "H" 64487 ], 64488 FI: [ 64489 "H" 64490 ], 64491 FJ: [ 64492 "h", 64493 "hb", 64494 "H", 64495 "hB" 64496 ], 64497 FK: [ 64498 "H", 64499 "h", 64500 "hb", 64501 "hB" 64502 ], 64503 FM: [ 64504 "h", 64505 "hb", 64506 "H", 64507 "hB" 64508 ], 64509 FO: [ 64510 "H", 64511 "h" 64512 ], 64513 FR: [ 64514 "H", 64515 "hB" 64516 ], 64517 GA: [ 64518 "H", 64519 "hB" 64520 ], 64521 GB: [ 64522 "H", 64523 "h", 64524 "hb", 64525 "hB" 64526 ], 64527 GD: [ 64528 "h", 64529 "hb", 64530 "H", 64531 "hB" 64532 ], 64533 GE: [ 64534 "H", 64535 "hB", 64536 "h" 64537 ], 64538 GF: [ 64539 "H", 64540 "hB" 64541 ], 64542 GG: [ 64543 "H", 64544 "h", 64545 "hb", 64546 "hB" 64547 ], 64548 GH: [ 64549 "h", 64550 "H" 64551 ], 64552 GI: [ 64553 "H", 64554 "h", 64555 "hb", 64556 "hB" 64557 ], 64558 GL: [ 64559 "H", 64560 "h" 64561 ], 64562 GM: [ 64563 "h", 64564 "hb", 64565 "H", 64566 "hB" 64567 ], 64568 GN: [ 64569 "H", 64570 "hB" 64571 ], 64572 GP: [ 64573 "H", 64574 "hB" 64575 ], 64576 GQ: [ 64577 "H", 64578 "hB", 64579 "h", 64580 "hb" 64581 ], 64582 GR: [ 64583 "h", 64584 "H", 64585 "hb", 64586 "hB" 64587 ], 64588 GT: [ 64589 "h", 64590 "H", 64591 "hB", 64592 "hb" 64593 ], 64594 GU: [ 64595 "h", 64596 "hb", 64597 "H", 64598 "hB" 64599 ], 64600 GW: [ 64601 "H", 64602 "hB" 64603 ], 64604 GY: [ 64605 "h", 64606 "hb", 64607 "H", 64608 "hB" 64609 ], 64610 HK: [ 64611 "h", 64612 "hB", 64613 "hb", 64614 "H" 64615 ], 64616 HN: [ 64617 "h", 64618 "H", 64619 "hB", 64620 "hb" 64621 ], 64622 HR: [ 64623 "H", 64624 "hB" 64625 ], 64626 HU: [ 64627 "H", 64628 "h" 64629 ], 64630 IC: [ 64631 "H", 64632 "h", 64633 "hB", 64634 "hb" 64635 ], 64636 ID: [ 64637 "H" 64638 ], 64639 IE: [ 64640 "H", 64641 "h", 64642 "hb", 64643 "hB" 64644 ], 64645 IL: [ 64646 "H", 64647 "hB" 64648 ], 64649 IM: [ 64650 "H", 64651 "h", 64652 "hb", 64653 "hB" 64654 ], 64655 IN: [ 64656 "h", 64657 "H" 64658 ], 64659 IO: [ 64660 "H", 64661 "h", 64662 "hb", 64663 "hB" 64664 ], 64665 IQ: [ 64666 "h", 64667 "hB", 64668 "hb", 64669 "H" 64670 ], 64671 IR: [ 64672 "hB", 64673 "H" 64674 ], 64675 IS: [ 64676 "H" 64677 ], 64678 IT: [ 64679 "H", 64680 "hB" 64681 ], 64682 JE: [ 64683 "H", 64684 "h", 64685 "hb", 64686 "hB" 64687 ], 64688 JM: [ 64689 "h", 64690 "hb", 64691 "H", 64692 "hB" 64693 ], 64694 JO: [ 64695 "h", 64696 "hB", 64697 "hb", 64698 "H" 64699 ], 64700 JP: [ 64701 "H", 64702 "K", 64703 "h" 64704 ], 64705 KE: [ 64706 "hB", 64707 "hb", 64708 "H", 64709 "h" 64710 ], 64711 KG: [ 64712 "H", 64713 "h", 64714 "hB", 64715 "hb" 64716 ], 64717 KH: [ 64718 "hB", 64719 "h", 64720 "H", 64721 "hb" 64722 ], 64723 KI: [ 64724 "h", 64725 "hb", 64726 "H", 64727 "hB" 64728 ], 64729 KM: [ 64730 "H", 64731 "h", 64732 "hB", 64733 "hb" 64734 ], 64735 KN: [ 64736 "h", 64737 "hb", 64738 "H", 64739 "hB" 64740 ], 64741 KP: [ 64742 "h", 64743 "H", 64744 "hB", 64745 "hb" 64746 ], 64747 KR: [ 64748 "h", 64749 "H", 64750 "hB", 64751 "hb" 64752 ], 64753 KW: [ 64754 "h", 64755 "hB", 64756 "hb", 64757 "H" 64758 ], 64759 KY: [ 64760 "h", 64761 "hb", 64762 "H", 64763 "hB" 64764 ], 64765 KZ: [ 64766 "H", 64767 "hB" 64768 ], 64769 LA: [ 64770 "H", 64771 "hb", 64772 "hB", 64773 "h" 64774 ], 64775 LB: [ 64776 "h", 64777 "hB", 64778 "hb", 64779 "H" 64780 ], 64781 LC: [ 64782 "h", 64783 "hb", 64784 "H", 64785 "hB" 64786 ], 64787 LI: [ 64788 "H", 64789 "hB", 64790 "h" 64791 ], 64792 LK: [ 64793 "H", 64794 "h", 64795 "hB", 64796 "hb" 64797 ], 64798 LR: [ 64799 "h", 64800 "hb", 64801 "H", 64802 "hB" 64803 ], 64804 LS: [ 64805 "h", 64806 "H" 64807 ], 64808 LT: [ 64809 "H", 64810 "h", 64811 "hb", 64812 "hB" 64813 ], 64814 LU: [ 64815 "H", 64816 "h", 64817 "hB" 64818 ], 64819 LV: [ 64820 "H", 64821 "hB", 64822 "hb", 64823 "h" 64824 ], 64825 LY: [ 64826 "h", 64827 "hB", 64828 "hb", 64829 "H" 64830 ], 64831 MA: [ 64832 "H", 64833 "h", 64834 "hB", 64835 "hb" 64836 ], 64837 MC: [ 64838 "H", 64839 "hB" 64840 ], 64841 MD: [ 64842 "H", 64843 "hB" 64844 ], 64845 ME: [ 64846 "H", 64847 "hB", 64848 "h" 64849 ], 64850 MF: [ 64851 "H", 64852 "hB" 64853 ], 64854 MG: [ 64855 "H", 64856 "h" 64857 ], 64858 MH: [ 64859 "h", 64860 "hb", 64861 "H", 64862 "hB" 64863 ], 64864 MK: [ 64865 "H", 64866 "h", 64867 "hb", 64868 "hB" 64869 ], 64870 ML: [ 64871 "H" 64872 ], 64873 MM: [ 64874 "hB", 64875 "hb", 64876 "H", 64877 "h" 64878 ], 64879 MN: [ 64880 "H", 64881 "h", 64882 "hb", 64883 "hB" 64884 ], 64885 MO: [ 64886 "h", 64887 "hB", 64888 "hb", 64889 "H" 64890 ], 64891 MP: [ 64892 "h", 64893 "hb", 64894 "H", 64895 "hB" 64896 ], 64897 MQ: [ 64898 "H", 64899 "hB" 64900 ], 64901 MR: [ 64902 "h", 64903 "hB", 64904 "hb", 64905 "H" 64906 ], 64907 MS: [ 64908 "H", 64909 "h", 64910 "hb", 64911 "hB" 64912 ], 64913 MT: [ 64914 "H", 64915 "h" 64916 ], 64917 MU: [ 64918 "H", 64919 "h" 64920 ], 64921 MV: [ 64922 "H", 64923 "h" 64924 ], 64925 MW: [ 64926 "h", 64927 "hb", 64928 "H", 64929 "hB" 64930 ], 64931 MX: [ 64932 "h", 64933 "H", 64934 "hB", 64935 "hb" 64936 ], 64937 MY: [ 64938 "hb", 64939 "hB", 64940 "h", 64941 "H" 64942 ], 64943 MZ: [ 64944 "H", 64945 "hB" 64946 ], 64947 NA: [ 64948 "h", 64949 "H", 64950 "hB", 64951 "hb" 64952 ], 64953 NC: [ 64954 "H", 64955 "hB" 64956 ], 64957 NE: [ 64958 "H" 64959 ], 64960 NF: [ 64961 "H", 64962 "h", 64963 "hb", 64964 "hB" 64965 ], 64966 NG: [ 64967 "H", 64968 "h", 64969 "hb", 64970 "hB" 64971 ], 64972 NI: [ 64973 "h", 64974 "H", 64975 "hB", 64976 "hb" 64977 ], 64978 NL: [ 64979 "H", 64980 "hB" 64981 ], 64982 NO: [ 64983 "H", 64984 "h" 64985 ], 64986 NP: [ 64987 "H", 64988 "h", 64989 "hB" 64990 ], 64991 NR: [ 64992 "H", 64993 "h", 64994 "hb", 64995 "hB" 64996 ], 64997 NU: [ 64998 "H", 64999 "h", 65000 "hb", 65001 "hB" 65002 ], 65003 NZ: [ 65004 "h", 65005 "hb", 65006 "H", 65007 "hB" 65008 ], 65009 OM: [ 65010 "h", 65011 "hB", 65012 "hb", 65013 "H" 65014 ], 65015 PA: [ 65016 "h", 65017 "H", 65018 "hB", 65019 "hb" 65020 ], 65021 PE: [ 65022 "h", 65023 "H", 65024 "hB", 65025 "hb" 65026 ], 65027 PF: [ 65028 "H", 65029 "h", 65030 "hB" 65031 ], 65032 PG: [ 65033 "h", 65034 "H" 65035 ], 65036 PH: [ 65037 "h", 65038 "hB", 65039 "hb", 65040 "H" 65041 ], 65042 PK: [ 65043 "h", 65044 "hB", 65045 "H" 65046 ], 65047 PL: [ 65048 "H", 65049 "h" 65050 ], 65051 PM: [ 65052 "H", 65053 "hB" 65054 ], 65055 PN: [ 65056 "H", 65057 "h", 65058 "hb", 65059 "hB" 65060 ], 65061 PR: [ 65062 "h", 65063 "H", 65064 "hB", 65065 "hb" 65066 ], 65067 PS: [ 65068 "h", 65069 "hB", 65070 "hb", 65071 "H" 65072 ], 65073 PT: [ 65074 "H", 65075 "hB" 65076 ], 65077 PW: [ 65078 "h", 65079 "H" 65080 ], 65081 PY: [ 65082 "h", 65083 "H", 65084 "hB", 65085 "hb" 65086 ], 65087 QA: [ 65088 "h", 65089 "hB", 65090 "hb", 65091 "H" 65092 ], 65093 RE: [ 65094 "H", 65095 "hB" 65096 ], 65097 RO: [ 65098 "H", 65099 "hB" 65100 ], 65101 RS: [ 65102 "H", 65103 "hB", 65104 "h" 65105 ], 65106 RU: [ 65107 "H" 65108 ], 65109 RW: [ 65110 "H", 65111 "h" 65112 ], 65113 SA: [ 65114 "h", 65115 "hB", 65116 "hb", 65117 "H" 65118 ], 65119 SB: [ 65120 "h", 65121 "hb", 65122 "H", 65123 "hB" 65124 ], 65125 SC: [ 65126 "H", 65127 "h", 65128 "hB" 65129 ], 65130 SD: [ 65131 "h", 65132 "hB", 65133 "hb", 65134 "H" 65135 ], 65136 SE: [ 65137 "H" 65138 ], 65139 SG: [ 65140 "h", 65141 "hb", 65142 "H", 65143 "hB" 65144 ], 65145 SH: [ 65146 "H", 65147 "h", 65148 "hb", 65149 "hB" 65150 ], 65151 SI: [ 65152 "H", 65153 "hB" 65154 ], 65155 SJ: [ 65156 "H" 65157 ], 65158 SK: [ 65159 "H" 65160 ], 65161 SL: [ 65162 "h", 65163 "hb", 65164 "H", 65165 "hB" 65166 ], 65167 SM: [ 65168 "H", 65169 "h", 65170 "hB" 65171 ], 65172 SN: [ 65173 "H", 65174 "h", 65175 "hB" 65176 ], 65177 SO: [ 65178 "h", 65179 "H" 65180 ], 65181 SR: [ 65182 "H", 65183 "hB" 65184 ], 65185 SS: [ 65186 "h", 65187 "hb", 65188 "H", 65189 "hB" 65190 ], 65191 ST: [ 65192 "H", 65193 "hB" 65194 ], 65195 SV: [ 65196 "h", 65197 "H", 65198 "hB", 65199 "hb" 65200 ], 65201 SX: [ 65202 "H", 65203 "h", 65204 "hb", 65205 "hB" 65206 ], 65207 SY: [ 65208 "h", 65209 "hB", 65210 "hb", 65211 "H" 65212 ], 65213 SZ: [ 65214 "h", 65215 "hb", 65216 "H", 65217 "hB" 65218 ], 65219 TA: [ 65220 "H", 65221 "h", 65222 "hb", 65223 "hB" 65224 ], 65225 TC: [ 65226 "h", 65227 "hb", 65228 "H", 65229 "hB" 65230 ], 65231 TD: [ 65232 "h", 65233 "H", 65234 "hB" 65235 ], 65236 TF: [ 65237 "H", 65238 "h", 65239 "hB" 65240 ], 65241 TG: [ 65242 "H", 65243 "hB" 65244 ], 65245 TH: [ 65246 "H", 65247 "h" 65248 ], 65249 TJ: [ 65250 "H", 65251 "h" 65252 ], 65253 TL: [ 65254 "H", 65255 "hB", 65256 "hb", 65257 "h" 65258 ], 65259 TM: [ 65260 "H", 65261 "h" 65262 ], 65263 TN: [ 65264 "h", 65265 "hB", 65266 "hb", 65267 "H" 65268 ], 65269 TO: [ 65270 "h", 65271 "H" 65272 ], 65273 TR: [ 65274 "H", 65275 "hB" 65276 ], 65277 TT: [ 65278 "h", 65279 "hb", 65280 "H", 65281 "hB" 65282 ], 65283 TW: [ 65284 "hB", 65285 "hb", 65286 "h", 65287 "H" 65288 ], 65289 TZ: [ 65290 "hB", 65291 "hb", 65292 "H", 65293 "h" 65294 ], 65295 UA: [ 65296 "H", 65297 "hB", 65298 "h" 65299 ], 65300 UG: [ 65301 "hB", 65302 "hb", 65303 "H", 65304 "h" 65305 ], 65306 UM: [ 65307 "h", 65308 "hb", 65309 "H", 65310 "hB" 65311 ], 65312 US: [ 65313 "h", 65314 "hb", 65315 "H", 65316 "hB" 65317 ], 65318 UY: [ 65319 "h", 65320 "H", 65321 "hB", 65322 "hb" 65323 ], 65324 UZ: [ 65325 "H", 65326 "hB", 65327 "h" 65328 ], 65329 VA: [ 65330 "H", 65331 "h", 65332 "hB" 65333 ], 65334 VC: [ 65335 "h", 65336 "hb", 65337 "H", 65338 "hB" 65339 ], 65340 VE: [ 65341 "h", 65342 "H", 65343 "hB", 65344 "hb" 65345 ], 65346 VG: [ 65347 "h", 65348 "hb", 65349 "H", 65350 "hB" 65351 ], 65352 VI: [ 65353 "h", 65354 "hb", 65355 "H", 65356 "hB" 65357 ], 65358 VN: [ 65359 "H", 65360 "h" 65361 ], 65362 VU: [ 65363 "h", 65364 "H" 65365 ], 65366 WF: [ 65367 "H", 65368 "hB" 65369 ], 65370 WS: [ 65371 "h", 65372 "H" 65373 ], 65374 XK: [ 65375 "H", 65376 "hB", 65377 "h" 65378 ], 65379 YE: [ 65380 "h", 65381 "hB", 65382 "hb", 65383 "H" 65384 ], 65385 YT: [ 65386 "H", 65387 "hB" 65388 ], 65389 ZA: [ 65390 "H", 65391 "h", 65392 "hb", 65393 "hB" 65394 ], 65395 ZM: [ 65396 "h", 65397 "hb", 65398 "H", 65399 "hB" 65400 ], 65401 ZW: [ 65402 "H", 65403 "h" 65404 ], 65405 "af-ZA": [ 65406 "H", 65407 "h", 65408 "hB", 65409 "hb" 65410 ], 65411 "ar-001": [ 65412 "h", 65413 "hB", 65414 "hb", 65415 "H" 65416 ], 65417 "ca-ES": [ 65418 "H", 65419 "h", 65420 "hB" 65421 ], 65422 "en-001": [ 65423 "h", 65424 "hb", 65425 "H", 65426 "hB" 65427 ], 65428 "en-HK": [ 65429 "h", 65430 "hb", 65431 "H", 65432 "hB" 65433 ], 65434 "en-IL": [ 65435 "H", 65436 "h", 65437 "hb", 65438 "hB" 65439 ], 65440 "en-MY": [ 65441 "h", 65442 "hb", 65443 "H", 65444 "hB" 65445 ], 65446 "es-BR": [ 65447 "H", 65448 "h", 65449 "hB", 65450 "hb" 65451 ], 65452 "es-ES": [ 65453 "H", 65454 "h", 65455 "hB", 65456 "hb" 65457 ], 65458 "es-GQ": [ 65459 "H", 65460 "h", 65461 "hB", 65462 "hb" 65463 ], 65464 "fr-CA": [ 65465 "H", 65466 "h", 65467 "hB" 65468 ], 65469 "gl-ES": [ 65470 "H", 65471 "h", 65472 "hB" 65473 ], 65474 "gu-IN": [ 65475 "hB", 65476 "hb", 65477 "h", 65478 "H" 65479 ], 65480 "hi-IN": [ 65481 "hB", 65482 "h", 65483 "H" 65484 ], 65485 "it-CH": [ 65486 "H", 65487 "h", 65488 "hB" 65489 ], 65490 "it-IT": [ 65491 "H", 65492 "h", 65493 "hB" 65494 ], 65495 "kn-IN": [ 65496 "hB", 65497 "h", 65498 "H" 65499 ], 65500 "ml-IN": [ 65501 "hB", 65502 "h", 65503 "H" 65504 ], 65505 "mr-IN": [ 65506 "hB", 65507 "hb", 65508 "h", 65509 "H" 65510 ], 65511 "pa-IN": [ 65512 "hB", 65513 "hb", 65514 "h", 65515 "H" 65516 ], 65517 "ta-IN": [ 65518 "hB", 65519 "h", 65520 "hb", 65521 "H" 65522 ], 65523 "te-IN": [ 65524 "hB", 65525 "h", 65526 "H" 65527 ], 65528 "zu-ZA": [ 65529 "H", 65530 "hB", 65531 "hb", 65532 "h" 65533 ] 65534}; 65535
vendor: 1,771 bytes, lines 65536-65574
65536// ../../node_modules/@formatjs/icu-messageformat-parser/lib/date-time-pattern-generator.js 65537function getBestPattern(skeleton, locale) { 65538 for (var skeletonCopy = "", patternPos = 0; patternPos < skeleton.length; patternPos++) { 65539 var patternChar = skeleton.charAt(patternPos); 65540 if (patternChar === "j") { 65541 for (var extraLength = 0; patternPos + 1 < skeleton.length && skeleton.charAt(patternPos + 1) === patternChar; ) 65542 extraLength++, patternPos++; 65543 var hourLen = 1 + (extraLength & 1), dayPeriodLen = extraLength < 2 ? 1 : 3 + (extraLength >> 1), dayPeriodChar = "a", hourChar = getDefaultHourSymbolFromLocale(locale); 65544 for ((hourChar == "H" || hourChar == "k") && (dayPeriodLen = 0); dayPeriodLen-- > 0; ) 65545 skeletonCopy += dayPeriodChar; 65546 for (; hourLen-- > 0; ) 65547 skeletonCopy = hourChar + skeletonCopy; 65548 } else patternChar === "J" ? skeletonCopy += "H" : skeletonCopy += patternChar; 65549 } 65550 return skeletonCopy; 65551} 65552function getDefaultHourSymbolFromLocale(locale) { 65553 var hourCycle = locale.hourCycle; 65554 if (hourCycle === void 0 && // @ts-ignore hourCycle(s) is not identified yet 65555 locale.hourCycles && // @ts-ignore 65556 locale.hourCycles.length && (hourCycle = locale.hourCycles[0]), hourCycle) 65557 switch (hourCycle) { 65558 case "h24": 65559 return "k"; 65560 case "h23": 65561 return "H"; 65562 case "h12": 65563 return "h"; 65564 case "h11": 65565 return "K"; 65566 default: 65567 throw new Error("Invalid hourCycle"); 65568 } 65569 var languageTag = locale.language, regionTag; 65570 languageTag !== "root" && (regionTag = locale.maximize().region); 65571 var hourCycles = timeData[regionTag || ""] || timeData[languageTag || ""] || timeData["".concat(languageTag, "-001")] || timeData["001"]; 65572 return hourCycles[0]; 65573} 65574
vendor: 31,235 bytes, lines 65575-66146
65575// ../../node_modules/@formatjs/icu-messageformat-parser/lib/parser.js 65576var _a3, SPACE_SEPARATOR_START_REGEX = new RegExp("^".concat(SPACE_SEPARATOR_REGEX.source, "*")), SPACE_SEPARATOR_END_REGEX = new RegExp("".concat(SPACE_SEPARATOR_REGEX.source, "*$")); 65577function createLocation2(start2, end2) { 65578 return { start: start2, end: end2 }; 65579} 65580var 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) { 65581 return typeof n == "number" && isFinite(n) && Math.floor(n) === n && Math.abs(n) <= 9007199254740991; 65582}, REGEX_SUPPORTS_U_AND_Y = !0; 65583try { 65584 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"; 65585} catch { 65586 REGEX_SUPPORTS_U_AND_Y = !1; 65587} 65588var re, startsWith = hasNativeStartsWith ? ( 65589 // Native 65590 function(s3, search, position2) { 65591 return s3.startsWith(search, position2); 65592 } 65593) : ( 65594 // For IE11 65595 function(s3, search, position2) { 65596 return s3.slice(position2, position2 + search.length) === search; 65597 } 65598), fromCodePoint = hasNativeFromCodePoint ? String.fromCodePoint : ( 65599 // IE11 65600 function() { 65601 for (var codePoints = [], _i = 0; _i < arguments.length; _i++) 65602 codePoints[_i] = arguments[_i]; 65603 for (var elements = "", length2 = codePoints.length, i = 0, code; length2 > i; ) { 65604 if (code = codePoints[i++], code > 1114111) 65605 throw RangeError(code + " is not a valid code point"); 65606 elements += code < 65536 ? String.fromCharCode(code) : String.fromCharCode(((code -= 65536) >> 10) + 55296, code % 1024 + 56320); 65607 } 65608 return elements; 65609 } 65610), fromEntries = ( 65611 // native 65612 hasNativeFromEntries ? Object.fromEntries : ( 65613 // Ponyfill 65614 function(entries) { 65615 for (var obj = {}, _i = 0, entries_1 = entries; _i < entries_1.length; _i++) { 65616 var _a4 = entries_1[_i], k = _a4[0], v = _a4[1]; 65617 obj[k] = v; 65618 } 65619 return obj; 65620 } 65621 ) 65622), codePointAt = hasNativeCodePointAt ? ( 65623 // Native 65624 function(s3, index4) { 65625 return s3.codePointAt(index4); 65626 } 65627) : ( 65628 // IE 11 65629 function(s3, index4) { 65630 var size = s3.length; 65631 if (!(index4 < 0 || index4 >= size)) { 65632 var first = s3.charCodeAt(index4), second; 65633 return first < 55296 || first > 56319 || index4 + 1 === size || (second = s3.charCodeAt(index4 + 1)) < 56320 || second > 57343 ? first : (first - 55296 << 10) + (second - 56320) + 65536; 65634 } 65635 } 65636), trimStart = hasTrimStart ? ( 65637 // Native 65638 function(s3) { 65639 return s3.trimStart(); 65640 } 65641) : ( 65642 // Ponyfill 65643 function(s3) { 65644 return s3.replace(SPACE_SEPARATOR_START_REGEX, ""); 65645 } 65646), trimEnd = hasTrimEnd ? ( 65647 // Native 65648 function(s3) { 65649 return s3.trimEnd(); 65650 } 65651) : ( 65652 // Ponyfill 65653 function(s3) { 65654 return s3.replace(SPACE_SEPARATOR_END_REGEX, ""); 65655 } 65656); 65657function RE(s3, flag3) { 65658 return new RegExp(s3, flag3); 65659} 65660var matchIdentifierAtIndex; 65661REGEX_SUPPORTS_U_AND_Y ? (IDENTIFIER_PREFIX_RE_1 = RE("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu"), matchIdentifierAtIndex = function(s3, index4) { 65662 var _a4; 65663 IDENTIFIER_PREFIX_RE_1.lastIndex = index4; 65664 var match3 = IDENTIFIER_PREFIX_RE_1.exec(s3); 65665 return (_a4 = match3[1]) !== null && _a4 !== void 0 ? _a4 : ""; 65666}) : matchIdentifierAtIndex = function(s3, index4) { 65667 for (var match3 = []; ; ) { 65668 var c = codePointAt(s3, index4); 65669 if (c === void 0 || _isWhiteSpace(c) || _isPatternSyntax(c)) 65670 break; 65671 match3.push(c), index4 += c >= 65536 ? 2 : 1; 65672 } 65673 return fromCodePoint.apply(void 0, match3); 65674}; 65675var IDENTIFIER_PREFIX_RE_1, Parser = ( 65676 /** @class */ 65677 (function() { 65678 function Parser2(message, options) { 65679 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; 65680 } 65681 return Parser2.prototype.parse = function() { 65682 if (this.offset() !== 0) 65683 throw Error("parser can only be used once"); 65684 return this.parseMessage(0, "", !1); 65685 }, Parser2.prototype.parseMessage = function(nestingLevel, parentArgType, expectingCloseTag) { 65686 for (var elements = []; !this.isEOF(); ) { 65687 var char2 = this.char(); 65688 if (char2 === 123) { 65689 var result = this.parseArgument(nestingLevel, expectingCloseTag); 65690 if (result.err) 65691 return result; 65692 elements.push(result.val); 65693 } else { 65694 if (char2 === 125 && nestingLevel > 0) 65695 break; 65696 if (char2 === 35 && (parentArgType === "plural" || parentArgType === "selectordinal")) { 65697 var position2 = this.clonePosition(); 65698 this.bump(), elements.push({ 65699 type: TYPE.pound, 65700 location: createLocation2(position2, this.clonePosition()) 65701 }); 65702 } else if (char2 === 60 && !this.ignoreTag && this.peek() === 47) { 65703 if (expectingCloseTag) 65704 break; 65705 return this.error(ErrorKind.UNMATCHED_CLOSING_TAG, createLocation2(this.clonePosition(), this.clonePosition())); 65706 } else if (char2 === 60 && !this.ignoreTag && _isAlpha(this.peek() || 0)) { 65707 var result = this.parseTag(nestingLevel, parentArgType); 65708 if (result.err) 65709 return result; 65710 elements.push(result.val); 65711 } else { 65712 var result = this.parseLiteral(nestingLevel, parentArgType); 65713 if (result.err) 65714 return result; 65715 elements.push(result.val); 65716 } 65717 } 65718 } 65719 return { val: elements, err: null }; 65720 }, Parser2.prototype.parseTag = function(nestingLevel, parentArgType) { 65721 var startPosition = this.clonePosition(); 65722 this.bump(); 65723 var tagName = this.parseTagName(); 65724 if (this.bumpSpace(), this.bumpIf("/>")) 65725 return { 65726 val: { 65727 type: TYPE.literal, 65728 value: "<".concat(tagName, "/>"), 65729 location: createLocation2(startPosition, this.clonePosition()) 65730 }, 65731 err: null 65732 }; 65733 if (this.bumpIf(">")) { 65734 var childrenResult = this.parseMessage(nestingLevel + 1, parentArgType, !0); 65735 if (childrenResult.err) 65736 return childrenResult; 65737 var children = childrenResult.val, endTagStartPosition = this.clonePosition(); 65738 if (this.bumpIf("</")) { 65739 if (this.isEOF() || !_isAlpha(this.char())) 65740 return this.error(ErrorKind.INVALID_TAG, createLocation2(endTagStartPosition, this.clonePosition())); 65741 var closingTagNameStartPosition = this.clonePosition(), closingTagName = this.parseTagName(); 65742 return tagName !== closingTagName ? this.error(ErrorKind.UNMATCHED_CLOSING_TAG, createLocation2(closingTagNameStartPosition, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? { 65743 val: { 65744 type: TYPE.tag, 65745 value: tagName, 65746 children, 65747 location: createLocation2(startPosition, this.clonePosition()) 65748 }, 65749 err: null 65750 } : this.error(ErrorKind.INVALID_TAG, createLocation2(endTagStartPosition, this.clonePosition()))); 65751 } else 65752 return this.error(ErrorKind.UNCLOSED_TAG, createLocation2(startPosition, this.clonePosition())); 65753 } else 65754 return this.error(ErrorKind.INVALID_TAG, createLocation2(startPosition, this.clonePosition())); 65755 }, Parser2.prototype.parseTagName = function() { 65756 var startOffset = this.offset(); 65757 for (this.bump(); !this.isEOF() && _isPotentialElementNameChar(this.char()); ) 65758 this.bump(); 65759 return this.message.slice(startOffset, this.offset()); 65760 }, Parser2.prototype.parseLiteral = function(nestingLevel, parentArgType) { 65761 for (var start2 = this.clonePosition(), value = ""; ; ) { 65762 var parseQuoteResult = this.tryParseQuote(parentArgType); 65763 if (parseQuoteResult) { 65764 value += parseQuoteResult; 65765 continue; 65766 } 65767 var parseUnquotedResult = this.tryParseUnquoted(nestingLevel, parentArgType); 65768 if (parseUnquotedResult) { 65769 value += parseUnquotedResult; 65770 continue; 65771 } 65772 var parseLeftAngleResult = this.tryParseLeftAngleBracket(); 65773 if (parseLeftAngleResult) { 65774 value += parseLeftAngleResult; 65775 continue; 65776 } 65777 break; 65778 } 65779 var location4 = createLocation2(start2, this.clonePosition()); 65780 return { 65781 val: { type: TYPE.literal, value, location: location4 }, 65782 err: null 65783 }; 65784 }, Parser2.prototype.tryParseLeftAngleBracket = function() { 65785 return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail. 65786 !_isAlphaOrSlash(this.peek() || 0)) ? (this.bump(), "<") : null; 65787 }, Parser2.prototype.tryParseQuote = function(parentArgType) { 65788 if (this.isEOF() || this.char() !== 39) 65789 return null; 65790 switch (this.peek()) { 65791 case 39: 65792 return this.bump(), this.bump(), "'"; 65793 // '{', '<', '>', '}' 65794 case 123: 65795 case 60: 65796 case 62: 65797 case 125: 65798 break; 65799 case 35: 65800 if (parentArgType === "plural" || parentArgType === "selectordinal") 65801 break; 65802 return null; 65803 default: 65804 return null; 65805 } 65806 this.bump(); 65807 var codePoints = [this.char()]; 65808 for (this.bump(); !this.isEOF(); ) { 65809 var ch = this.char(); 65810 if (ch === 39) 65811 if (this.peek() === 39) 65812 codePoints.push(39), this.bump(); 65813 else { 65814 this.bump(); 65815 break; 65816 } 65817 else 65818 codePoints.push(ch); 65819 this.bump(); 65820 } 65821 return fromCodePoint.apply(void 0, codePoints); 65822 }, Parser2.prototype.tryParseUnquoted = function(nestingLevel, parentArgType) { 65823 if (this.isEOF()) 65824 return null; 65825 var ch = this.char(); 65826 return ch === 60 || ch === 123 || ch === 35 && (parentArgType === "plural" || parentArgType === "selectordinal") || ch === 125 && nestingLevel > 0 ? null : (this.bump(), fromCodePoint(ch)); 65827 }, Parser2.prototype.parseArgument = function(nestingLevel, expectingCloseTag) { 65828 var openingBracePosition = this.clonePosition(); 65829 if (this.bump(), this.bumpSpace(), this.isEOF()) 65830 return this.error(ErrorKind.EXPECT_ARGUMENT_CLOSING_BRACE, createLocation2(openingBracePosition, this.clonePosition())); 65831 if (this.char() === 125) 65832 return this.bump(), this.error(ErrorKind.EMPTY_ARGUMENT, createLocation2(openingBracePosition, this.clonePosition())); 65833 var value = this.parseIdentifierIfPossible().value; 65834 if (!value) 65835 return this.error(ErrorKind.MALFORMED_ARGUMENT, createLocation2(openingBracePosition, this.clonePosition())); 65836 if (this.bumpSpace(), this.isEOF()) 65837 return this.error(ErrorKind.EXPECT_ARGUMENT_CLOSING_BRACE, createLocation2(openingBracePosition, this.clonePosition())); 65838 switch (this.char()) { 65839 // Simple argument: `{name}` 65840 case 125: 65841 return this.bump(), { 65842 val: { 65843 type: TYPE.argument, 65844 // value does not include the opening and closing braces. 65845 value, 65846 location: createLocation2(openingBracePosition, this.clonePosition()) 65847 }, 65848 err: null 65849 }; 65850 // Argument with options: `{name, format, ...}` 65851 case 44: 65852 return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(ErrorKind.EXPECT_ARGUMENT_CLOSING_BRACE, createLocation2(openingBracePosition, this.clonePosition())) : this.parseArgumentOptions(nestingLevel, expectingCloseTag, value, openingBracePosition); 65853 default: 65854 return this.error(ErrorKind.MALFORMED_ARGUMENT, createLocation2(openingBracePosition, this.clonePosition())); 65855 } 65856 }, Parser2.prototype.parseIdentifierIfPossible = function() { 65857 var startingPosition = this.clonePosition(), startOffset = this.offset(), value = matchIdentifierAtIndex(this.message, startOffset), endOffset = startOffset + value.length; 65858 this.bumpTo(endOffset); 65859 var endPosition = this.clonePosition(), location4 = createLocation2(startingPosition, endPosition); 65860 return { value, location: location4 }; 65861 }, Parser2.prototype.parseArgumentOptions = function(nestingLevel, expectingCloseTag, value, openingBracePosition) { 65862 var _a4, typeStartPosition = this.clonePosition(), argType = this.parseIdentifierIfPossible().value, typeEndPosition = this.clonePosition(); 65863 switch (argType) { 65864 case "": 65865 return this.error(ErrorKind.EXPECT_ARGUMENT_TYPE, createLocation2(typeStartPosition, typeEndPosition)); 65866 case "number": 65867 case "date": 65868 case "time": { 65869 this.bumpSpace(); 65870 var styleAndLocation = null; 65871 if (this.bumpIf(",")) { 65872 this.bumpSpace(); 65873 var styleStartPosition = this.clonePosition(), result = this.parseSimpleArgStyleIfPossible(); 65874 if (result.err) 65875 return result; 65876 var style = trimEnd(result.val); 65877 if (style.length === 0) 65878 return this.error(ErrorKind.EXPECT_ARGUMENT_STYLE, createLocation2(this.clonePosition(), this.clonePosition())); 65879 var styleLocation = createLocation2(styleStartPosition, this.clonePosition()); 65880 styleAndLocation = { style, styleLocation }; 65881 } 65882 var argCloseResult = this.tryParseArgumentClose(openingBracePosition); 65883 if (argCloseResult.err) 65884 return argCloseResult; 65885 var location_1 = createLocation2(openingBracePosition, this.clonePosition()); 65886 if (styleAndLocation && startsWith(styleAndLocation?.style, "::", 0)) { 65887 var skeleton = trimStart(styleAndLocation.style.slice(2)); 65888 if (argType === "number") { 65889 var result = this.parseNumberSkeletonFromString(skeleton, styleAndLocation.styleLocation); 65890 return result.err ? result : { 65891 val: { type: TYPE.number, value, location: location_1, style: result.val }, 65892 err: null 65893 }; 65894 } else { 65895 if (skeleton.length === 0) 65896 return this.error(ErrorKind.EXPECT_DATE_TIME_SKELETON, location_1); 65897 var dateTimePattern = skeleton; 65898 this.locale && (dateTimePattern = getBestPattern(skeleton, this.locale)); 65899 var style = { 65900 type: SKELETON_TYPE.dateTime, 65901 pattern: dateTimePattern, 65902 location: styleAndLocation.styleLocation, 65903 parsedOptions: this.shouldParseSkeletons ? parseDateTimeSkeleton(dateTimePattern) : {} 65904 }, type5 = argType === "date" ? TYPE.date : TYPE.time; 65905 return { 65906 val: { type: type5, value, location: location_1, style }, 65907 err: null 65908 }; 65909 } 65910 } 65911 return { 65912 val: { 65913 type: argType === "number" ? TYPE.number : argType === "date" ? TYPE.date : TYPE.time, 65914 value, 65915 location: location_1, 65916 style: (_a4 = styleAndLocation?.style) !== null && _a4 !== void 0 ? _a4 : null 65917 }, 65918 err: null 65919 }; 65920 } 65921 case "plural": 65922 case "selectordinal": 65923 case "select": { 65924 var typeEndPosition_1 = this.clonePosition(); 65925 if (this.bumpSpace(), !this.bumpIf(",")) 65926 return this.error(ErrorKind.EXPECT_SELECT_ARGUMENT_OPTIONS, createLocation2(typeEndPosition_1, __assign({}, typeEndPosition_1))); 65927 this.bumpSpace(); 65928 var identifierAndLocation = this.parseIdentifierIfPossible(), pluralOffset = 0; 65929 if (argType !== "select" && identifierAndLocation.value === "offset") { 65930 if (!this.bumpIf(":")) 65931 return this.error(ErrorKind.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, createLocation2(this.clonePosition(), this.clonePosition())); 65932 this.bumpSpace(); 65933 var result = this.tryParseDecimalInteger(ErrorKind.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, ErrorKind.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE); 65934 if (result.err) 65935 return result; 65936 this.bumpSpace(), identifierAndLocation = this.parseIdentifierIfPossible(), pluralOffset = result.val; 65937 } 65938 var optionsResult = this.tryParsePluralOrSelectOptions(nestingLevel, argType, expectingCloseTag, identifierAndLocation); 65939 if (optionsResult.err) 65940 return optionsResult; 65941 var argCloseResult = this.tryParseArgumentClose(openingBracePosition); 65942 if (argCloseResult.err) 65943 return argCloseResult; 65944 var location_2 = createLocation2(openingBracePosition, this.clonePosition()); 65945 return argType === "select" ? { 65946 val: { 65947 type: TYPE.select, 65948 value, 65949 options: fromEntries(optionsResult.val), 65950 location: location_2 65951 }, 65952 err: null 65953 } : { 65954 val: { 65955 type: TYPE.plural, 65956 value, 65957 options: fromEntries(optionsResult.val), 65958 offset: pluralOffset, 65959 pluralType: argType === "plural" ? "cardinal" : "ordinal", 65960 location: location_2 65961 }, 65962 err: null 65963 }; 65964 } 65965 default: 65966 return this.error(ErrorKind.INVALID_ARGUMENT_TYPE, createLocation2(typeStartPosition, typeEndPosition)); 65967 } 65968 }, Parser2.prototype.tryParseArgumentClose = function(openingBracePosition) { 65969 return this.isEOF() || this.char() !== 125 ? this.error(ErrorKind.EXPECT_ARGUMENT_CLOSING_BRACE, createLocation2(openingBracePosition, this.clonePosition())) : (this.bump(), { val: !0, err: null }); 65970 }, Parser2.prototype.parseSimpleArgStyleIfPossible = function() { 65971 for (var nestedBraces = 0, startPosition = this.clonePosition(); !this.isEOF(); ) { 65972 var ch = this.char(); 65973 switch (ch) { 65974 case 39: { 65975 this.bump(); 65976 var apostrophePosition = this.clonePosition(); 65977 if (!this.bumpUntil("'")) 65978 return this.error(ErrorKind.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, createLocation2(apostrophePosition, this.clonePosition())); 65979 this.bump(); 65980 break; 65981 } 65982 case 123: { 65983 nestedBraces += 1, this.bump(); 65984 break; 65985 } 65986 case 125: { 65987 if (nestedBraces > 0) 65988 nestedBraces -= 1; 65989 else 65990 return { 65991 val: this.message.slice(startPosition.offset, this.offset()), 65992 err: null 65993 }; 65994 break; 65995 } 65996 default: 65997 this.bump(); 65998 break; 65999 } 66000 } 66001 return { 66002 val: this.message.slice(startPosition.offset, this.offset()), 66003 err: null 66004 }; 66005 }, Parser2.prototype.parseNumberSkeletonFromString = function(skeleton, location4) { 66006 var tokens2 = []; 66007 try { 66008 tokens2 = parseNumberSkeletonFromString(skeleton); 66009 } catch { 66010 return this.error(ErrorKind.INVALID_NUMBER_SKELETON, location4); 66011 } 66012 return { 66013 val: { 66014 type: SKELETON_TYPE.number, 66015 tokens: tokens2, 66016 location: location4, 66017 parsedOptions: this.shouldParseSkeletons ? parseNumberSkeleton(tokens2) : {} 66018 }, 66019 err: null 66020 }; 66021 }, Parser2.prototype.tryParsePluralOrSelectOptions = function(nestingLevel, parentArgType, expectCloseTag, parsedFirstIdentifier) { 66022 for (var _a4, hasOtherClause = !1, options = [], parsedSelectors = /* @__PURE__ */ new Set(), selector = parsedFirstIdentifier.value, selectorLocation = parsedFirstIdentifier.location; ; ) { 66023 if (selector.length === 0) { 66024 var startPosition = this.clonePosition(); 66025 if (parentArgType !== "select" && this.bumpIf("=")) { 66026 var result = this.tryParseDecimalInteger(ErrorKind.EXPECT_PLURAL_ARGUMENT_SELECTOR, ErrorKind.INVALID_PLURAL_ARGUMENT_SELECTOR); 66027 if (result.err) 66028 return result; 66029 selectorLocation = createLocation2(startPosition, this.clonePosition()), selector = this.message.slice(startPosition.offset, this.offset()); 66030 } else 66031 break; 66032 } 66033 if (parsedSelectors.has(selector)) 66034 return this.error(parentArgType === "select" ? ErrorKind.DUPLICATE_SELECT_ARGUMENT_SELECTOR : ErrorKind.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, selectorLocation); 66035 selector === "other" && (hasOtherClause = !0), this.bumpSpace(); 66036 var openingBracePosition = this.clonePosition(); 66037 if (!this.bumpIf("{")) 66038 return this.error(parentArgType === "select" ? ErrorKind.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : ErrorKind.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, createLocation2(this.clonePosition(), this.clonePosition())); 66039 var fragmentResult = this.parseMessage(nestingLevel + 1, parentArgType, expectCloseTag); 66040 if (fragmentResult.err) 66041 return fragmentResult; 66042 var argCloseResult = this.tryParseArgumentClose(openingBracePosition); 66043 if (argCloseResult.err) 66044 return argCloseResult; 66045 options.push([ 66046 selector, 66047 { 66048 value: fragmentResult.val, 66049 location: createLocation2(openingBracePosition, this.clonePosition()) 66050 } 66051 ]), parsedSelectors.add(selector), this.bumpSpace(), _a4 = this.parseIdentifierIfPossible(), selector = _a4.value, selectorLocation = _a4.location; 66052 } 66053 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 }; 66054 }, Parser2.prototype.tryParseDecimalInteger = function(expectNumberError, invalidNumberError) { 66055 var sign = 1, startingPosition = this.clonePosition(); 66056 this.bumpIf("+") || this.bumpIf("-") && (sign = -1); 66057 for (var hasDigits = !1, decimal = 0; !this.isEOF(); ) { 66058 var ch = this.char(); 66059 if (ch >= 48 && ch <= 57) 66060 hasDigits = !0, decimal = decimal * 10 + (ch - 48), this.bump(); 66061 else 66062 break; 66063 } 66064 var location4 = createLocation2(startingPosition, this.clonePosition()); 66065 return hasDigits ? (decimal *= sign, isSafeInteger(decimal) ? { val: decimal, err: null } : this.error(invalidNumberError, location4)) : this.error(expectNumberError, location4); 66066 }, Parser2.prototype.offset = function() { 66067 return this.position.offset; 66068 }, Parser2.prototype.isEOF = function() { 66069 return this.offset() === this.message.length; 66070 }, Parser2.prototype.clonePosition = function() { 66071 return { 66072 offset: this.position.offset, 66073 line: this.position.line, 66074 column: this.position.column 66075 }; 66076 }, Parser2.prototype.char = function() { 66077 var offset3 = this.position.offset; 66078 if (offset3 >= this.message.length) 66079 throw Error("out of bound"); 66080 var code = codePointAt(this.message, offset3); 66081 if (code === void 0) 66082 throw Error("Offset ".concat(offset3, " is at invalid UTF-16 code unit boundary")); 66083 return code; 66084 }, Parser2.prototype.error = function(kind, location4) { 66085 return { 66086 val: null, 66087 err: { 66088 kind, 66089 message: this.message, 66090 location: location4 66091 } 66092 }; 66093 }, Parser2.prototype.bump = function() { 66094 if (!this.isEOF()) { 66095 var code = this.char(); 66096 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); 66097 } 66098 }, Parser2.prototype.bumpIf = function(prefix4) { 66099 if (startsWith(this.message, prefix4, this.offset())) { 66100 for (var i = 0; i < prefix4.length; i++) 66101 this.bump(); 66102 return !0; 66103 } 66104 return !1; 66105 }, Parser2.prototype.bumpUntil = function(pattern) { 66106 var currentOffset = this.offset(), index4 = this.message.indexOf(pattern, currentOffset); 66107 return index4 >= 0 ? (this.bumpTo(index4), !0) : (this.bumpTo(this.message.length), !1); 66108 }, Parser2.prototype.bumpTo = function(targetOffset) { 66109 if (this.offset() > targetOffset) 66110 throw Error("targetOffset ".concat(targetOffset, " must be greater than or equal to the current offset ").concat(this.offset())); 66111 for (targetOffset = Math.min(targetOffset, this.message.length); ; ) { 66112 var offset3 = this.offset(); 66113 if (offset3 === targetOffset) 66114 break; 66115 if (offset3 > targetOffset) 66116 throw Error("targetOffset ".concat(targetOffset, " is at invalid UTF-16 code unit boundary")); 66117 if (this.bump(), this.isEOF()) 66118 break; 66119 } 66120 }, Parser2.prototype.bumpSpace = function() { 66121 for (; !this.isEOF() && _isWhiteSpace(this.char()); ) 66122 this.bump(); 66123 }, Parser2.prototype.peek = function() { 66124 if (this.isEOF()) 66125 return null; 66126 var code = this.char(), offset3 = this.offset(), nextCode = this.message.charCodeAt(offset3 + (code >= 65536 ? 2 : 1)); 66127 return nextCode ?? null; 66128 }, Parser2; 66129 })() 66130); 66131function _isAlpha(codepoint) { 66132 return codepoint >= 97 && codepoint <= 122 || codepoint >= 65 && codepoint <= 90; 66133} 66134function _isAlphaOrSlash(codepoint) { 66135 return _isAlpha(codepoint) || codepoint === 47; 66136} 66137function _isPotentialElementNameChar(c) { 66138 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; 66139} 66140function _isWhiteSpace(c) { 66141 return c >= 9 && c <= 13 || c === 32 || c === 133 || c >= 8206 && c <= 8207 || c === 8232 || c === 8233; 66142} 66143function _isPatternSyntax(c) { 66144 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; 66145} 66146
vendor: 979 bytes, lines 66147-66165
66147// ../../node_modules/@formatjs/icu-messageformat-parser/lib/index.js 66148function pruneLocation(els) { 66149 els.forEach(function(el) { 66150 if (delete el.location, isSelectElement(el) || isPluralElement(el)) 66151 for (var k in el.options) 66152 delete el.options[k].location, pruneLocation(el.options[k].value); 66153 else isNumberElement(el) && isNumberSkeleton(el.style) || (isDateElement(el) || isTimeElement(el)) && isDateTimeSkeleton(el.style) ? delete el.style.location : isTagElement(el) && pruneLocation(el.children); 66154 }); 66155} 66156function parse8(message, opts) { 66157 opts === void 0 && (opts = {}), opts = __assign({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, opts); 66158 var result = new Parser(message, opts).parse(); 66159 if (result.err) { 66160 var error = SyntaxError(ErrorKind[result.err.kind]); 66161 throw error.location = result.err.location, error.originalMessage = result.err.message, error; 66162 } 66163 return opts?.captureLocation || pruneLocation(result.val), result.val; 66164} 66165
vendor: 2,018 bytes, lines 66166-66214
66166// ../../node_modules/intl-messageformat/lib/src/error.js 66167var ErrorCode; 66168(function(ErrorCode2) { 66169 ErrorCode2.MISSING_VALUE = "MISSING_VALUE", ErrorCode2.INVALID_VALUE = "INVALID_VALUE", ErrorCode2.MISSING_INTL_API = "MISSING_INTL_API"; 66170})(ErrorCode || (ErrorCode = {})); 66171var FormatError = ( 66172 /** @class */ 66173 (function(_super) { 66174 __extends(FormatError2, _super); 66175 function FormatError2(msg, code, originalMessage) { 66176 var _this = _super.call(this, msg) || this; 66177 return _this.code = code, _this.originalMessage = originalMessage, _this; 66178 } 66179 return FormatError2.prototype.toString = function() { 66180 return "[formatjs Error: ".concat(this.code, "] ").concat(this.message); 66181 }, FormatError2; 66182 })(Error) 66183); 66184var InvalidValueError = ( 66185 /** @class */ 66186 (function(_super) { 66187 __extends(InvalidValueError2, _super); 66188 function InvalidValueError2(variableId, value, options, originalMessage) { 66189 return _super.call(this, 'Invalid values for "'.concat(variableId, '": "').concat(value, '". Options are "').concat(Object.keys(options).join('", "'), '"'), ErrorCode.INVALID_VALUE, originalMessage) || this; 66190 } 66191 return InvalidValueError2; 66192 })(FormatError) 66193); 66194var InvalidValueTypeError = ( 66195 /** @class */ 66196 (function(_super) { 66197 __extends(InvalidValueTypeError2, _super); 66198 function InvalidValueTypeError2(value, type5, originalMessage) { 66199 return _super.call(this, 'Value for "'.concat(value, '" must be of type ').concat(type5), ErrorCode.INVALID_VALUE, originalMessage) || this; 66200 } 66201 return InvalidValueTypeError2; 66202 })(FormatError) 66203); 66204var MissingValueError = ( 66205 /** @class */ 66206 (function(_super) { 66207 __extends(MissingValueError2, _super); 66208 function MissingValueError2(variableId, originalMessage) { 66209 return _super.call(this, 'The intl string context variable "'.concat(variableId, '" was not provided to the string "').concat(originalMessage, '"'), ErrorCode.MISSING_VALUE, originalMessage) || this; 66210 } 66211 return MissingValueError2; 66212 })(FormatError) 66213); 66214
vendor: 4,635 bytes, lines 66215-66327
66215// ../../node_modules/intl-messageformat/lib/src/formatters.js 66216var PART_TYPE; 66217(function(PART_TYPE2) { 66218 PART_TYPE2[PART_TYPE2.literal = 0] = "literal", PART_TYPE2[PART_TYPE2.object = 1] = "object"; 66219})(PART_TYPE || (PART_TYPE = {})); 66220function mergeLiteral(parts) { 66221 return parts.length < 2 ? parts : parts.reduce(function(all, part) { 66222 var lastPart = all[all.length - 1]; 66223 return !lastPart || lastPart.type !== PART_TYPE.literal || part.type !== PART_TYPE.literal ? all.push(part) : lastPart.value += part.value, all; 66224 }, []); 66225} 66226function isFormatXMLElementFn(el) { 66227 return typeof el == "function"; 66228} 66229function formatToParts(els, locales, formatters, formats, values, currentPluralValue, originalMessage) { 66230 if (els.length === 1 && isLiteralElement(els[0])) 66231 return [ 66232 { 66233 type: PART_TYPE.literal, 66234 value: els[0].value 66235 } 66236 ]; 66237 for (var result = [], _i = 0, els_1 = els; _i < els_1.length; _i++) { 66238 var el = els_1[_i]; 66239 if (isLiteralElement(el)) { 66240 result.push({ 66241 type: PART_TYPE.literal, 66242 value: el.value 66243 }); 66244 continue; 66245 } 66246 if (isPoundElement(el)) { 66247 typeof currentPluralValue == "number" && result.push({ 66248 type: PART_TYPE.literal, 66249 value: formatters.getNumberFormat(locales).format(currentPluralValue) 66250 }); 66251 continue; 66252 } 66253 var varName = el.value; 66254 if (!(values && varName in values)) 66255 throw new MissingValueError(varName, originalMessage); 66256 var value = values[varName]; 66257 if (isArgumentElement(el)) { 66258 (!value || typeof value == "string" || typeof value == "number") && (value = typeof value == "string" || typeof value == "number" ? String(value) : ""), result.push({ 66259 type: typeof value == "string" ? PART_TYPE.literal : PART_TYPE.object, 66260 value 66261 }); 66262 continue; 66263 } 66264 if (isDateElement(el)) { 66265 var style = typeof el.style == "string" ? formats.date[el.style] : isDateTimeSkeleton(el.style) ? el.style.parsedOptions : void 0; 66266 result.push({ 66267 type: PART_TYPE.literal, 66268 value: formatters.getDateTimeFormat(locales, style).format(value) 66269 }); 66270 continue; 66271 } 66272 if (isTimeElement(el)) { 66273 var style = typeof el.style == "string" ? formats.time[el.style] : isDateTimeSkeleton(el.style) ? el.style.parsedOptions : formats.time.medium; 66274 result.push({ 66275 type: PART_TYPE.literal, 66276 value: formatters.getDateTimeFormat(locales, style).format(value) 66277 }); 66278 continue; 66279 } 66280 if (isNumberElement(el)) { 66281 var style = typeof el.style == "string" ? formats.number[el.style] : isNumberSkeleton(el.style) ? el.style.parsedOptions : void 0; 66282 style && style.scale && (value = value * (style.scale || 1)), result.push({ 66283 type: PART_TYPE.literal, 66284 value: formatters.getNumberFormat(locales, style).format(value) 66285 }); 66286 continue; 66287 } 66288 if (isTagElement(el)) { 66289 var children = el.children, value_1 = el.value, formatFn = values[value_1]; 66290 if (!isFormatXMLElementFn(formatFn)) 66291 throw new InvalidValueTypeError(value_1, "function", originalMessage); 66292 var parts = formatToParts(children, locales, formatters, formats, values, currentPluralValue), chunks = formatFn(parts.map(function(p3) { 66293 return p3.value; 66294 })); 66295 Array.isArray(chunks) || (chunks = [chunks]), result.push.apply(result, chunks.map(function(c) { 66296 return { 66297 type: typeof c == "string" ? PART_TYPE.literal : PART_TYPE.object, 66298 value: c 66299 }; 66300 })); 66301 } 66302 if (isSelectElement(el)) { 66303 var opt = el.options[value] || el.options.other; 66304 if (!opt) 66305 throw new InvalidValueError(el.value, value, Object.keys(el.options), originalMessage); 66306 result.push.apply(result, formatToParts(opt.value, locales, formatters, formats, values)); 66307 continue; 66308 } 66309 if (isPluralElement(el)) { 66310 var opt = el.options["=".concat(value)]; 66311 if (!opt) { 66312 if (!Intl.PluralRules) 66313 throw new FormatError(`Intl.PluralRules is not available in this environment. 66314Try polyfilling it using "@formatjs/intl-pluralrules" 66315`, ErrorCode.MISSING_INTL_API, originalMessage); 66316 var rule = formatters.getPluralRules(locales, { type: el.pluralType }).select(value - (el.offset || 0)); 66317 opt = el.options[rule] || el.options.other; 66318 } 66319 if (!opt) 66320 throw new InvalidValueError(el.value, value, Object.keys(el.options), originalMessage); 66321 result.push.apply(result, formatToParts(opt.value, locales, formatters, formats, values, value - (el.offset || 0))); 66322 continue; 66323 } 66324 } 66325 return mergeLiteral(result); 66326} 66327
vendor: 6,163 bytes, lines 66328-66495
66328// ../../node_modules/intl-messageformat/lib/src/core.js 66329function mergeConfig(c1, c2) { 66330 return c2 ? __assign(__assign(__assign({}, c1 || {}), c2 || {}), Object.keys(c1).reduce(function(all, k) { 66331 return all[k] = __assign(__assign({}, c1[k]), c2[k] || {}), all; 66332 }, {})) : c1; 66333} 66334function mergeConfigs(defaultConfig2, configs) { 66335 return configs ? Object.keys(defaultConfig2).reduce(function(all, k) { 66336 return all[k] = mergeConfig(defaultConfig2[k], configs[k]), all; 66337 }, __assign({}, defaultConfig2)) : defaultConfig2; 66338} 66339function createFastMemoizeCache(store2) { 66340 return { 66341 create: function() { 66342 return { 66343 get: function(key) { 66344 return store2[key]; 66345 }, 66346 set: function(key, value) { 66347 store2[key] = value; 66348 } 66349 }; 66350 } 66351 }; 66352} 66353function createDefaultFormatters(cache) { 66354 return cache === void 0 && (cache = { 66355 number: {}, 66356 dateTime: {}, 66357 pluralRules: {} 66358 }), { 66359 getNumberFormat: memoize12(function() { 66360 for (var _a4, args = [], _i = 0; _i < arguments.length; _i++) 66361 args[_i] = arguments[_i]; 66362 return new ((_a4 = Intl.NumberFormat).bind.apply(_a4, __spreadArray([void 0], args, !1)))(); 66363 }, { 66364 cache: createFastMemoizeCache(cache.number), 66365 strategy: strategies.variadic 66366 }), 66367 getDateTimeFormat: memoize12(function() { 66368 for (var _a4, args = [], _i = 0; _i < arguments.length; _i++) 66369 args[_i] = arguments[_i]; 66370 return new ((_a4 = Intl.DateTimeFormat).bind.apply(_a4, __spreadArray([void 0], args, !1)))(); 66371 }, { 66372 cache: createFastMemoizeCache(cache.dateTime), 66373 strategy: strategies.variadic 66374 }), 66375 getPluralRules: memoize12(function() { 66376 for (var _a4, args = [], _i = 0; _i < arguments.length; _i++) 66377 args[_i] = arguments[_i]; 66378 return new ((_a4 = Intl.PluralRules).bind.apply(_a4, __spreadArray([void 0], args, !1)))(); 66379 }, { 66380 cache: createFastMemoizeCache(cache.pluralRules), 66381 strategy: strategies.variadic 66382 }) 66383 }; 66384} 66385var IntlMessageFormat = ( 66386 /** @class */ 66387 (function() { 66388 function IntlMessageFormat2(message, locales, overrideFormats, opts) { 66389 locales === void 0 && (locales = IntlMessageFormat2.defaultLocale); 66390 var _this = this; 66391 if (this.formatterCache = { 66392 number: {}, 66393 dateTime: {}, 66394 pluralRules: {} 66395 }, this.format = function(values) { 66396 var parts = _this.formatToParts(values); 66397 if (parts.length === 1) 66398 return parts[0].value; 66399 var result = parts.reduce(function(all, part) { 66400 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; 66401 }, []); 66402 return result.length <= 1 ? result[0] || "" : result; 66403 }, this.formatToParts = function(values) { 66404 return formatToParts(_this.ast, _this.locales, _this.formatters, _this.formats, values, void 0, _this.message); 66405 }, this.resolvedOptions = function() { 66406 var _a5; 66407 return { 66408 locale: ((_a5 = _this.resolvedLocale) === null || _a5 === void 0 ? void 0 : _a5.toString()) || Intl.NumberFormat.supportedLocalesOf(_this.locales)[0] 66409 }; 66410 }, this.getAst = function() { 66411 return _this.ast; 66412 }, this.locales = locales, this.resolvedLocale = IntlMessageFormat2.resolveLocale(locales), typeof message == "string") { 66413 if (this.message = message, !IntlMessageFormat2.__parse) 66414 throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`"); 66415 var _a4 = opts || {}, formatters = _a4.formatters, parseOpts = __rest(_a4, ["formatters"]); 66416 this.ast = IntlMessageFormat2.__parse(message, __assign(__assign({}, parseOpts), { locale: this.resolvedLocale })); 66417 } else 66418 this.ast = message; 66419 if (!Array.isArray(this.ast)) 66420 throw new TypeError("A message must be provided as a String or AST."); 66421 this.formats = mergeConfigs(IntlMessageFormat2.formats, overrideFormats), this.formatters = opts && opts.formatters || createDefaultFormatters(this.formatterCache); 66422 } 66423 return Object.defineProperty(IntlMessageFormat2, "defaultLocale", { 66424 get: function() { 66425 return IntlMessageFormat2.memoizedDefaultLocale || (IntlMessageFormat2.memoizedDefaultLocale = new Intl.NumberFormat().resolvedOptions().locale), IntlMessageFormat2.memoizedDefaultLocale; 66426 }, 66427 enumerable: !1, 66428 configurable: !0 66429 }), IntlMessageFormat2.memoizedDefaultLocale = null, IntlMessageFormat2.resolveLocale = function(locales) { 66430 if (!(typeof Intl.Locale > "u")) { 66431 var supportedLocales = Intl.NumberFormat.supportedLocalesOf(locales); 66432 return supportedLocales.length > 0 ? new Intl.Locale(supportedLocales[0]) : new Intl.Locale(typeof locales == "string" ? locales : locales[0]); 66433 } 66434 }, IntlMessageFormat2.__parse = parse8, IntlMessageFormat2.formats = { 66435 number: { 66436 integer: { 66437 maximumFractionDigits: 0 66438 }, 66439 currency: { 66440 style: "currency" 66441 }, 66442 percent: { 66443 style: "percent" 66444 } 66445 }, 66446 date: { 66447 short: { 66448 month: "numeric", 66449 day: "numeric", 66450 year: "2-digit" 66451 }, 66452 medium: { 66453 month: "short", 66454 day: "numeric", 66455 year: "numeric" 66456 }, 66457 long: { 66458 month: "long", 66459 day: "numeric", 66460 year: "numeric" 66461 }, 66462 full: { 66463 weekday: "long", 66464 month: "long", 66465 day: "numeric", 66466 year: "numeric" 66467 } 66468 }, 66469 time: { 66470 short: { 66471 hour: "numeric", 66472 minute: "numeric" 66473 }, 66474 medium: { 66475 hour: "numeric", 66476 minute: "numeric", 66477 second: "numeric" 66478 }, 66479 long: { 66480 hour: "numeric", 66481 minute: "numeric", 66482 second: "numeric", 66483 timeZoneName: "short" 66484 }, 66485 full: { 66486 hour: "numeric", 66487 minute: "numeric", 66488 second: "numeric", 66489 timeZoneName: "short" 66490 } 66491 } 66492 }, IntlMessageFormat2; 66493 })() 66494); 66495
vendor: 119 bytes, lines 66496-66498
66496// ../../node_modules/@react-aria/i18n/dist/useMessageFormatter.mjs 66497var import_react66 = __toESM(require_react(), 1); 66498
vendor: 2,519 bytes, lines 66499-66542
66499// ../../node_modules/@internationalized/string/dist/LocalizedStringDictionary.mjs 66500var $5b160d28a433310d$var$localeSymbol = Symbol.for("react-aria.i18n.locale"), $5b160d28a433310d$var$stringsSymbol = Symbol.for("react-aria.i18n.strings"), $5b160d28a433310d$var$cachedGlobalStrings, $5b160d28a433310d$export$c17fa47878dc55b6 = class _$5b160d28a433310d$export$c17fa47878dc55b6 { 66501 /** Returns a localized string for the given key and locale. */ 66502 getStringForLocale(key, locale) { 66503 let string = this.getStringsForLocale(locale)[key]; 66504 if (!string) throw new Error(`Could not find intl message ${key} in ${locale} locale`); 66505 return string; 66506 } 66507 /** Returns all localized strings for the given locale. */ 66508 getStringsForLocale(locale) { 66509 let strings = this.strings[locale]; 66510 return strings || (strings = $5b160d28a433310d$var$getStringsForLocale(locale, this.strings, this.defaultLocale), this.strings[locale] = strings), strings; 66511 } 66512 static getGlobalDictionaryForPackage(packageName) { 66513 if (typeof window > "u") return null; 66514 let locale = window[$5b160d28a433310d$var$localeSymbol]; 66515 if ($5b160d28a433310d$var$cachedGlobalStrings === void 0) { 66516 let globalStrings = window[$5b160d28a433310d$var$stringsSymbol]; 66517 if (!globalStrings) return null; 66518 $5b160d28a433310d$var$cachedGlobalStrings = {}; 66519 for (let pkg in globalStrings) $5b160d28a433310d$var$cachedGlobalStrings[pkg] = new _$5b160d28a433310d$export$c17fa47878dc55b6({ 66520 [locale]: globalStrings[pkg] 66521 }, locale); 66522 } 66523 let dictionary = $5b160d28a433310d$var$cachedGlobalStrings?.[packageName]; 66524 if (!dictionary) throw new Error(`Strings for package "${packageName}" were not included by LocalizedStringProvider. Please add it to the list passed to createLocalizedStringDictionary.`); 66525 return dictionary; 66526 } 66527 constructor(messages, defaultLocale = "en-US") { 66528 this.strings = Object.fromEntries(Object.entries(messages).filter(([, v]) => v)), this.defaultLocale = defaultLocale; 66529 } 66530}; 66531function $5b160d28a433310d$var$getStringsForLocale(locale, strings, defaultLocale = "en-US") { 66532 if (strings[locale]) return strings[locale]; 66533 let language = $5b160d28a433310d$var$getLanguage(locale); 66534 if (strings[language]) return strings[language]; 66535 for (let key in strings) 66536 if (key.startsWith(language + "-")) return strings[key]; 66537 return strings[defaultLocale]; 66538} 66539function $5b160d28a433310d$var$getLanguage(locale) { 66540 return Intl.Locale ? new Intl.Locale(locale).language : locale.split("-")[0]; 66541} 66542
vendor: 1,588 bytes, lines 66543-66572
66543// ../../node_modules/@internationalized/string/dist/LocalizedStringFormatter.mjs 66544var $6db58dc88e78b024$var$pluralRulesCache = /* @__PURE__ */ new Map(), $6db58dc88e78b024$var$numberFormatCache = /* @__PURE__ */ new Map(), $6db58dc88e78b024$export$2f817fcdc4b89ae0 = class { 66545 /** Formats a localized string for the given key with the provided variables. */ 66546 format(key, variables) { 66547 let message = this.strings.getStringForLocale(key, this.locale); 66548 return typeof message == "function" ? message(variables, this) : message; 66549 } 66550 plural(count, options, type5 = "cardinal") { 66551 let opt = options["=" + count]; 66552 if (opt) return typeof opt == "function" ? opt() : opt; 66553 let key = this.locale + ":" + type5, pluralRules = $6db58dc88e78b024$var$pluralRulesCache.get(key); 66554 pluralRules || (pluralRules = new Intl.PluralRules(this.locale, { 66555 type: type5 66556 }), $6db58dc88e78b024$var$pluralRulesCache.set(key, pluralRules)); 66557 let selected = pluralRules.select(count); 66558 return opt = options[selected] || options.other, typeof opt == "function" ? opt() : opt; 66559 } 66560 number(value) { 66561 let numberFormat = $6db58dc88e78b024$var$numberFormatCache.get(this.locale); 66562 return numberFormat || (numberFormat = new Intl.NumberFormat(this.locale), $6db58dc88e78b024$var$numberFormatCache.set(this.locale, numberFormat)), numberFormat.format(value); 66563 } 66564 select(options, value) { 66565 let opt = options[value] || options.other; 66566 return typeof opt == "function" ? opt() : opt; 66567 } 66568 constructor(locale, strings) { 66569 this.locale = locale, this.strings = strings; 66570 } 66571}; 66572
vendor: 1,078 bytes, lines 66573-66589
66573// ../../node_modules/@react-aria/i18n/dist/useLocalizedStringFormatter.mjs 66574var import_react67 = __toESM(require_react(), 1), $fca6afa0e843324b$var$cache = /* @__PURE__ */ new WeakMap(); 66575function $fca6afa0e843324b$var$getCachedDictionary(strings) { 66576 let dictionary = $fca6afa0e843324b$var$cache.get(strings); 66577 return dictionary || (dictionary = new $5b160d28a433310d$export$c17fa47878dc55b6(strings), $fca6afa0e843324b$var$cache.set(strings, dictionary)), dictionary; 66578} 66579function $fca6afa0e843324b$export$87b761675e8eaa10(strings, packageName) { 66580 return packageName && $5b160d28a433310d$export$c17fa47878dc55b6.getGlobalDictionaryForPackage(packageName) || $fca6afa0e843324b$var$getCachedDictionary(strings); 66581} 66582function $fca6afa0e843324b$export$f12b703ca79dfbb1(strings, packageName) { 66583 let { locale } = $18f2051aff69b9bf$export$43bb16f9c6d9e3f7(), dictionary = $fca6afa0e843324b$export$87b761675e8eaa10(strings, packageName); 66584 return (0, import_react67.useMemo)(() => new $6db58dc88e78b024$export$2f817fcdc4b89ae0(locale, dictionary), [ 66585 locale, 66586 dictionary 66587 ]); 66588} 66589
vendor: 116 bytes, lines 66590-66592
66590// ../../node_modules/@react-aria/i18n/dist/useListFormatter.mjs 66591var import_react68 = __toESM(require_react(), 1); 66592
vendor: 309 bytes, lines 66593-66605
66593// ../../node_modules/@internationalized/date/dist/string.mjs 66594var $fae977aafc393c5c$var$requiredDurationTimeGroups = [ 66595 "hours", 66596 "minutes", 66597 "seconds" 66598], $fae977aafc393c5c$var$requiredDurationGroups = [ 66599 "years", 66600 "months", 66601 "weeks", 66602 "days", 66603 ...$fae977aafc393c5c$var$requiredDurationTimeGroups 66604]; 66605
vendor: 449 bytes, lines 66606-66608
66606// ../../node_modules/@internationalized/date/dist/HebrewCalendar.mjs 66607var $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; 66608
vendor: 116 bytes, lines 66609-66611
66609// ../../node_modules/@react-aria/i18n/dist/useDateFormatter.mjs 66610var import_react69 = __toESM(require_react(), 1); 66611
vendor: 5,629 bytes, lines 66612-66728
66612// ../../node_modules/@internationalized/number/dist/NumberFormatter.mjs 66613var $488c6ddbf4ef74c2$var$formatterCache = /* @__PURE__ */ new Map(), $488c6ddbf4ef74c2$var$supportsSignDisplay = !1; 66614try { 66615 $488c6ddbf4ef74c2$var$supportsSignDisplay = new Intl.NumberFormat("de-DE", { 66616 signDisplay: "exceptZero" 66617 }).resolvedOptions().signDisplay === "exceptZero"; 66618} catch { 66619} 66620var $488c6ddbf4ef74c2$var$supportsUnit = !1; 66621try { 66622 $488c6ddbf4ef74c2$var$supportsUnit = new Intl.NumberFormat("de-DE", { 66623 style: "unit", 66624 unit: "degree" 66625 }).resolvedOptions().style === "unit"; 66626} catch { 66627} 66628var $488c6ddbf4ef74c2$var$UNITS = { 66629 degree: { 66630 narrow: { 66631 default: "\xB0", 66632 "ja-JP": " \u5EA6", 66633 "zh-TW": "\u5EA6", 66634 "sl-SI": " \xB0" 66635 } 66636 } 66637}, $488c6ddbf4ef74c2$export$cc77c4ff7e8673c5 = class { 66638 /** Formats a number value as a string, according to the locale and options provided to the constructor. */ 66639 format(value) { 66640 let res = ""; 66641 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) { 66642 var _UNITS_unit; 66643 let { unit, unitDisplay = "short", locale } = this.resolvedOptions(); 66644 if (!unit) return res; 66645 let values = (_UNITS_unit = $488c6ddbf4ef74c2$var$UNITS[unit]) === null || _UNITS_unit === void 0 ? void 0 : _UNITS_unit[unitDisplay]; 66646 res += values[locale] || values.default; 66647 } 66648 return res; 66649 } 66650 /** Formats a number to an array of parts such as separators, digits, punctuation, and more. */ 66651 formatToParts(value) { 66652 return this.numberFormatter.formatToParts(value); 66653 } 66654 /** Formats a number range as a string. */ 66655 formatRange(start2, end2) { 66656 if (typeof this.numberFormatter.formatRange == "function") return this.numberFormatter.formatRange(start2, end2); 66657 if (end2 < start2) throw new RangeError("End date must be >= start date"); 66658 return `${this.format(start2)} \u2013 ${this.format(end2)}`; 66659 } 66660 /** Formats a number range as an array of parts. */ 66661 formatRangeToParts(start2, end2) { 66662 if (typeof this.numberFormatter.formatRangeToParts == "function") return this.numberFormatter.formatRangeToParts(start2, end2); 66663 if (end2 < start2) throw new RangeError("End date must be >= start date"); 66664 let startParts = this.numberFormatter.formatToParts(start2), endParts = this.numberFormatter.formatToParts(end2); 66665 return [ 66666 ...startParts.map((p3) => ({ 66667 ...p3, 66668 source: "startRange" 66669 })), 66670 { 66671 type: "literal", 66672 value: " \u2013 ", 66673 source: "shared" 66674 }, 66675 ...endParts.map((p3) => ({ 66676 ...p3, 66677 source: "endRange" 66678 })) 66679 ]; 66680 } 66681 /** Returns the resolved formatting options based on the values passed to the constructor. */ 66682 resolvedOptions() { 66683 let options = this.numberFormatter.resolvedOptions(); 66684 return !$488c6ddbf4ef74c2$var$supportsSignDisplay && this.options.signDisplay != null && (options = { 66685 ...options, 66686 signDisplay: this.options.signDisplay 66687 }), !$488c6ddbf4ef74c2$var$supportsUnit && this.options.style === "unit" && (options = { 66688 ...options, 66689 style: "unit", 66690 unit: this.options.unit, 66691 unitDisplay: this.options.unitDisplay 66692 }), options; 66693 } 66694 constructor(locale, options = {}) { 66695 this.numberFormatter = $488c6ddbf4ef74c2$var$getCachedNumberFormatter(locale, options), this.options = options; 66696 } 66697}; 66698function $488c6ddbf4ef74c2$var$getCachedNumberFormatter(locale, options = {}) { 66699 let { numberingSystem } = options; 66700 if (numberingSystem && locale.includes("-nu-") && (locale.includes("-u-") || (locale += "-u-"), locale += `-nu-${numberingSystem}`), options.style === "unit" && !$488c6ddbf4ef74c2$var$supportsUnit) { 66701 var _UNITS_unit; 66702 let { unit, unitDisplay = "short" } = options; 66703 if (!unit) throw new Error('unit option must be provided with style: "unit"'); 66704 if (!(!((_UNITS_unit = $488c6ddbf4ef74c2$var$UNITS[unit]) === null || _UNITS_unit === void 0) && _UNITS_unit[unitDisplay])) throw new Error(`Unsupported unit ${unit} with unitDisplay = ${unitDisplay}`); 66705 options = { 66706 ...options, 66707 style: "decimal" 66708 }; 66709 } 66710 let cacheKey = locale + (options ? Object.entries(options).sort((a3, b) => a3[0] < b[0] ? -1 : 1).join() : ""); 66711 if ($488c6ddbf4ef74c2$var$formatterCache.has(cacheKey)) return $488c6ddbf4ef74c2$var$formatterCache.get(cacheKey); 66712 let numberFormatter = new Intl.NumberFormat(locale, options); 66713 return $488c6ddbf4ef74c2$var$formatterCache.set(cacheKey, numberFormatter), numberFormatter; 66714} 66715function $488c6ddbf4ef74c2$export$711b50b3c525e0f2(numberFormat, signDisplay, num) { 66716 if (signDisplay === "auto") return numberFormat.format(num); 66717 if (signDisplay === "never") return numberFormat.format(Math.abs(num)); 66718 { 66719 let needsPositiveSign = !1; 66720 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) { 66721 let negative = numberFormat.format(-num), noSign = numberFormat.format(num), minus = negative.replace(noSign, "").replace(/\u200e|\u061C/, ""); 66722 return [ 66723 ...minus 66724 ].length !== 1 && console.warn("@react-aria/i18n polyfill for NumberFormat signDisplay: Unsupported case"), negative.replace(noSign, "!!!").replace(minus, "+").replace("!!!", noSign); 66725 } else return numberFormat.format(num); 66726 } 66727} 66728
vendor: 149 bytes, lines 66729-66731
66729// ../../node_modules/@internationalized/number/dist/NumberParser.mjs 66730var $6c7bd7858deea686$var$CURRENCY_SIGN_REGEX = new RegExp("^.*\\(.*\\).*$"); 66731
vendor: 390 bytes, lines 66732-66741
66732// ../../node_modules/@react-aria/i18n/dist/useNumberFormatter.mjs 66733var import_react70 = __toESM(require_react(), 1); 66734function $a916eb452884faea$export$b7a616150fdb9f44(options = {}) { 66735 let { locale } = $18f2051aff69b9bf$export$43bb16f9c6d9e3f7(); 66736 return (0, import_react70.useMemo)(() => new $488c6ddbf4ef74c2$export$cc77c4ff7e8673c5(locale, options), [ 66737 locale, 66738 options 66739 ]); 66740} 66741
vendor: 588 bytes, lines 66742-66750
66742// ../../node_modules/@react-aria/i18n/dist/useCollator.mjs 66743var $325a3faab7a68acd$var$cache = /* @__PURE__ */ new Map(); 66744function $325a3faab7a68acd$export$a16aca283550c30d(options) { 66745 let { locale } = $18f2051aff69b9bf$export$43bb16f9c6d9e3f7(), cacheKey = locale + (options ? Object.entries(options).sort((a3, b) => a3[0] < b[0] ? -1 : 1).join() : ""); 66746 if ($325a3faab7a68acd$var$cache.has(cacheKey)) return $325a3faab7a68acd$var$cache.get(cacheKey); 66747 let formatter2 = new Intl.Collator(locale, options); 66748 return $325a3faab7a68acd$var$cache.set(cacheKey, formatter2), formatter2; 66749} 66750
vendor: 109 bytes, lines 66751-66753
66751// ../../node_modules/@react-aria/i18n/dist/useFilter.mjs 66752var import_react71 = __toESM(require_react(), 1); 66753
vendor: 6,920 bytes, lines 66754-66893
66754// ../../node_modules/@react-aria/overlays/dist/useOverlayPosition.mjs 66755var $2a41e45df1593e64$var$visualViewport = typeof document < "u" ? window.visualViewport : null; 66756function $2a41e45df1593e64$export$d39e1813b3bdd0e1(props) { 66757 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_react72.useState)(null), deps = [ 66758 shouldUpdatePosition, 66759 placement, 66760 overlayRef.current, 66761 targetRef.current, 66762 arrowRef?.current, 66763 scrollRef.current, 66764 containerPadding, 66765 shouldFlip, 66766 boundaryElement, 66767 offset3, 66768 crossOffset, 66769 isOpen, 66770 direction, 66771 maxHeight, 66772 arrowBoundaryOffset, 66773 arrowSize 66774 ], lastScale = (0, import_react72.useRef)($2a41e45df1593e64$var$visualViewport?.scale); 66775 (0, import_react72.useEffect)(() => { 66776 isOpen && (lastScale.current = $2a41e45df1593e64$var$visualViewport?.scale); 66777 }, [ 66778 isOpen 66779 ]); 66780 let updatePosition = (0, import_react72.useCallback)(() => { 66781 if (shouldUpdatePosition === !1 || !isOpen || !overlayRef.current || !targetRef.current || !boundaryElement || $2a41e45df1593e64$var$visualViewport?.scale !== lastScale.current) return; 66782 let anchor = null; 66783 if (scrollRef.current && scrollRef.current.contains(document.activeElement)) { 66784 var _document_activeElement; 66785 let anchorRect = (_document_activeElement = document.activeElement) === null || _document_activeElement === void 0 ? void 0 : _document_activeElement.getBoundingClientRect(), scrollRect = scrollRef.current.getBoundingClientRect(); 66786 var _anchorRect_top; 66787 if (anchor = { 66788 type: "top", 66789 offset: ((_anchorRect_top = anchorRect?.top) !== null && _anchorRect_top !== void 0 ? _anchorRect_top : 0) - scrollRect.top 66790 }, anchor.offset > scrollRect.height / 2) { 66791 anchor.type = "bottom"; 66792 var _anchorRect_bottom; 66793 anchor.offset = ((_anchorRect_bottom = anchorRect?.bottom) !== null && _anchorRect_bottom !== void 0 ? _anchorRect_bottom : 0) - scrollRect.bottom; 66794 } 66795 } 66796 let overlay = overlayRef.current; 66797 if (!maxHeight && overlayRef.current) { 66798 var _window_visualViewport; 66799 overlay.style.top = "0px", overlay.style.bottom = ""; 66800 var _window_visualViewport_height; 66801 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"; 66802 } 66803 let position3 = $edcf132a9284368a$export$b3ceb0cbf1056d98({ 66804 placement: $2a41e45df1593e64$var$translateRTL(placement, direction), 66805 overlayNode: overlayRef.current, 66806 targetNode: targetRef.current, 66807 scrollNode: scrollRef.current || overlayRef.current, 66808 padding: containerPadding, 66809 shouldFlip, 66810 boundaryElement, 66811 offset: offset3, 66812 crossOffset, 66813 maxHeight, 66814 arrowSize: arrowSize ?? (arrowRef?.current ? $edcf132a9284368a$export$4b834cebd9e5cebe(arrowRef.current, !0).width : 0), 66815 arrowBoundaryOffset 66816 }); 66817 if (position3.position) { 66818 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) { 66819 let anchorRect = document.activeElement.getBoundingClientRect(), scrollRect = scrollRef.current.getBoundingClientRect(), newOffset = anchorRect[anchor.type] - scrollRect[anchor.type]; 66820 scrollRef.current.scrollTop += newOffset - anchor.offset; 66821 } 66822 setPosition(position3); 66823 } 66824 }, deps); 66825 $f0a04ccd8dbdd83b$export$e5c5a5f917a5871c(updatePosition, deps), $2a41e45df1593e64$var$useResize(updatePosition), $9daab02d461809db$export$683480f191c0e3ea({ 66826 ref: overlayRef, 66827 onResize: updatePosition 66828 }), $9daab02d461809db$export$683480f191c0e3ea({ 66829 ref: targetRef, 66830 onResize: updatePosition 66831 }); 66832 let isResizing = (0, import_react72.useRef)(!1); 66833 $f0a04ccd8dbdd83b$export$e5c5a5f917a5871c(() => { 66834 let timeout, onResize = () => { 66835 isResizing.current = !0, clearTimeout(timeout), timeout = setTimeout(() => { 66836 isResizing.current = !1; 66837 }, 500), updatePosition(); 66838 }, onScroll = () => { 66839 isResizing.current && onResize(); 66840 }; 66841 return $2a41e45df1593e64$var$visualViewport?.addEventListener("resize", onResize), $2a41e45df1593e64$var$visualViewport?.addEventListener("scroll", onScroll), () => { 66842 $2a41e45df1593e64$var$visualViewport?.removeEventListener("resize", onResize), $2a41e45df1593e64$var$visualViewport?.removeEventListener("scroll", onScroll); 66843 }; 66844 }, [ 66845 updatePosition 66846 ]); 66847 let close = (0, import_react72.useCallback)(() => { 66848 isResizing.current || onClose?.(); 66849 }, [ 66850 onClose, 66851 isResizing 66852 ]); 66853 $dd149f63282afbbf$export$18fc8428861184da({ 66854 triggerRef: targetRef, 66855 isOpen, 66856 onClose: onClose && close 66857 }); 66858 var _position_maxHeight, _position_placement, _position_triggerAnchorPoint; 66859 return { 66860 overlayProps: { 66861 style: { 66862 position: position2 ? "absolute" : "fixed", 66863 top: position2 ? void 0 : 0, 66864 left: position2 ? void 0 : 0, 66865 zIndex: 1e5, 66866 ...position2?.position, 66867 maxHeight: (_position_maxHeight = position2?.maxHeight) !== null && _position_maxHeight !== void 0 ? _position_maxHeight : "100vh" 66868 } 66869 }, 66870 placement: (_position_placement = position2?.placement) !== null && _position_placement !== void 0 ? _position_placement : null, 66871 triggerAnchorPoint: (_position_triggerAnchorPoint = position2?.triggerAnchorPoint) !== null && _position_triggerAnchorPoint !== void 0 ? _position_triggerAnchorPoint : null, 66872 arrowProps: { 66873 "aria-hidden": "true", 66874 role: "presentation", 66875 style: { 66876 left: position2?.arrowOffsetLeft, 66877 top: position2?.arrowOffsetTop 66878 } 66879 }, 66880 updatePosition 66881 }; 66882} 66883function $2a41e45df1593e64$var$useResize(onResize) { 66884 $f0a04ccd8dbdd83b$export$e5c5a5f917a5871c(() => (window.addEventListener("resize", onResize, !1), () => { 66885 window.removeEventListener("resize", onResize, !1); 66886 }), [ 66887 onResize 66888 ]); 66889} 66890function $2a41e45df1593e64$var$translateRTL(position2, direction) { 66891 return direction === "rtl" ? position2.replace("start", "right").replace("end", "left") : position2.replace("start", "left").replace("end", "right"); 66892} 66893
vendor: 29,427 bytes, lines 66894-67375
66894// ../../node_modules/@react-aria/focus/dist/FocusScope.mjs 66895var import_react73 = __toESM(require_react(), 1), $9bf71ea28793e738$var$FocusContext = import_react73.default.createContext(null), $9bf71ea28793e738$var$RESTORE_FOCUS_EVENT = "react-aria-focus-scope-restore", $9bf71ea28793e738$var$activeScope = null; 66896function $9bf71ea28793e738$export$20e40289641fbbb6(props) { 66897 let { children, contain, restoreFocus, autoFocus } = props, startRef = (0, import_react73.useRef)(null), endRef = (0, import_react73.useRef)(null), scopeRef = (0, import_react73.useRef)([]), { parentNode } = (0, import_react73.useContext)($9bf71ea28793e738$var$FocusContext) || {}, node2 = (0, import_react73.useMemo)(() => new $9bf71ea28793e738$var$TreeNode({ 66898 scopeRef 66899 }), [ 66900 scopeRef 66901 ]); 66902 $f0a04ccd8dbdd83b$export$e5c5a5f917a5871c(() => { 66903 let parent = parentNode || $9bf71ea28793e738$export$d06fae2ee68b101e.root; 66904 if ($9bf71ea28793e738$export$d06fae2ee68b101e.getTreeNode(parent.scopeRef) && $9bf71ea28793e738$var$activeScope && !$9bf71ea28793e738$var$isAncestorScope($9bf71ea28793e738$var$activeScope, parent.scopeRef)) { 66905 let activeNode = $9bf71ea28793e738$export$d06fae2ee68b101e.getTreeNode($9bf71ea28793e738$var$activeScope); 66906 activeNode && (parent = activeNode); 66907 } 66908 parent.addChild(node2), $9bf71ea28793e738$export$d06fae2ee68b101e.addNode(node2); 66909 }, [ 66910 node2, 66911 parentNode 66912 ]), $f0a04ccd8dbdd83b$export$e5c5a5f917a5871c(() => { 66913 let node3 = $9bf71ea28793e738$export$d06fae2ee68b101e.getTreeNode(scopeRef); 66914 node3 && (node3.contain = !!contain); 66915 }, [ 66916 contain 66917 ]), $f0a04ccd8dbdd83b$export$e5c5a5f917a5871c(() => { 66918 var _startRef_current; 66919 let node3 = (_startRef_current = startRef.current) === null || _startRef_current === void 0 ? void 0 : _startRef_current.nextSibling, nodes = [], stopPropagation = (e) => e.stopPropagation(); 66920 for (; node3 && node3 !== endRef.current; ) 66921 nodes.push(node3), node3.addEventListener($9bf71ea28793e738$var$RESTORE_FOCUS_EVENT, stopPropagation), node3 = node3.nextSibling; 66922 return scopeRef.current = nodes, () => { 66923 for (let node4 of nodes) node4.removeEventListener($9bf71ea28793e738$var$RESTORE_FOCUS_EVENT, stopPropagation); 66924 }; 66925 }, [ 66926 children 66927 ]), $9bf71ea28793e738$var$useActiveScopeTracker(scopeRef, restoreFocus, contain), $9bf71ea28793e738$var$useFocusContainment(scopeRef, contain), $9bf71ea28793e738$var$useRestoreFocus(scopeRef, restoreFocus, contain), $9bf71ea28793e738$var$useAutoFocus(scopeRef, autoFocus), (0, import_react73.useEffect)(() => { 66928 let activeElement = $d4ee10de306f2510$export$cd4e5573fbe2b576($431fbd86ca7dc216$export$b204af158042fbac(scopeRef.current ? scopeRef.current[0] : void 0)), scope2 = null; 66929 if ($9bf71ea28793e738$var$isElementInScope(activeElement, scopeRef.current)) { 66930 for (let node3 of $9bf71ea28793e738$export$d06fae2ee68b101e.traverse()) node3.scopeRef && $9bf71ea28793e738$var$isElementInScope(activeElement, node3.scopeRef.current) && (scope2 = node3); 66931 scope2 === $9bf71ea28793e738$export$d06fae2ee68b101e.getTreeNode(scopeRef) && ($9bf71ea28793e738$var$activeScope = scope2.scopeRef); 66932 } 66933 }, [ 66934 scopeRef 66935 ]), $f0a04ccd8dbdd83b$export$e5c5a5f917a5871c(() => () => { 66936 var _focusScopeTree_getTreeNode_parent, _focusScopeTree_getTreeNode, _focusScopeTree_getTreeNode_parent_scopeRef; 66937 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; 66938 (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); 66939 }, [ 66940 scopeRef 66941 ]); 66942 let focusManager = (0, import_react73.useMemo)(() => $9bf71ea28793e738$var$createFocusManagerForScope(scopeRef), []), value = (0, import_react73.useMemo)(() => ({ 66943 focusManager, 66944 parentNode: node2 66945 }), [ 66946 node2, 66947 focusManager 66948 ]); 66949 return import_react73.default.createElement($9bf71ea28793e738$var$FocusContext.Provider, { 66950 value 66951 }, import_react73.default.createElement("span", { 66952 "data-focus-scope-start": !0, 66953 hidden: !0, 66954 ref: startRef 66955 }), children, import_react73.default.createElement("span", { 66956 "data-focus-scope-end": !0, 66957 hidden: !0, 66958 ref: endRef 66959 })); 66960} 66961function $9bf71ea28793e738$var$createFocusManagerForScope(scopeRef) { 66962 return { 66963 focusNext(opts = {}) { 66964 let scope2 = scopeRef.current, { from: from2, tabbable, wrap: wrap2, accept } = opts; 66965 var _scope_; 66966 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, { 66967 tabbable, 66968 accept 66969 }, scope2); 66970 walker.currentNode = $9bf71ea28793e738$var$isElementInScope(node2, scope2) ? node2 : sentinel; 66971 let nextNode = walker.nextNode(); 66972 return !nextNode && wrap2 && (walker.currentNode = sentinel, nextNode = walker.nextNode()), nextNode && $9bf71ea28793e738$var$focusElement(nextNode, !0), nextNode; 66973 }, 66974 focusPrevious(opts = {}) { 66975 let scope2 = scopeRef.current, { from: from2, tabbable, wrap: wrap2, accept } = opts; 66976 var _scope_; 66977 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, { 66978 tabbable, 66979 accept 66980 }, scope2); 66981 walker.currentNode = $9bf71ea28793e738$var$isElementInScope(node2, scope2) ? node2 : sentinel; 66982 let previousNode = walker.previousNode(); 66983 return !previousNode && wrap2 && (walker.currentNode = sentinel, previousNode = walker.previousNode()), previousNode && $9bf71ea28793e738$var$focusElement(previousNode, !0), previousNode; 66984 }, 66985 focusFirst(opts = {}) { 66986 let scope2 = scopeRef.current, { tabbable, accept } = opts, scopeRoot = $9bf71ea28793e738$var$getScopeRoot(scope2), walker = $9bf71ea28793e738$export$2d6ec8fc375ceafa(scopeRoot, { 66987 tabbable, 66988 accept 66989 }, scope2); 66990 walker.currentNode = scope2[0].previousElementSibling; 66991 let nextNode = walker.nextNode(); 66992 return nextNode && $9bf71ea28793e738$var$focusElement(nextNode, !0), nextNode; 66993 }, 66994 focusLast(opts = {}) { 66995 let scope2 = scopeRef.current, { tabbable, accept } = opts, scopeRoot = $9bf71ea28793e738$var$getScopeRoot(scope2), walker = $9bf71ea28793e738$export$2d6ec8fc375ceafa(scopeRoot, { 66996 tabbable, 66997 accept 66998 }, scope2); 66999 walker.currentNode = scope2[scope2.length - 1].nextElementSibling; 67000 let previousNode = walker.previousNode(); 67001 return previousNode && $9bf71ea28793e738$var$focusElement(previousNode, !0), previousNode; 67002 } 67003 }; 67004} 67005function $9bf71ea28793e738$var$getScopeRoot(scope2) { 67006 return scope2[0].parentElement; 67007} 67008function $9bf71ea28793e738$var$shouldContainFocus(scopeRef) { 67009 let scope2 = $9bf71ea28793e738$export$d06fae2ee68b101e.getTreeNode($9bf71ea28793e738$var$activeScope); 67010 for (; scope2 && scope2.scopeRef !== scopeRef; ) { 67011 if (scope2.contain) return !1; 67012 scope2 = scope2.parent; 67013 } 67014 return !0; 67015} 67016function $9bf71ea28793e738$var$isTabbableRadio(element) { 67017 if (element.checked) return !0; 67018 let radios = []; 67019 if (!element.form) radios = [ 67020 ...$431fbd86ca7dc216$export$b204af158042fbac(element).querySelectorAll(`input[type="radio"][name="${CSS.escape(element.name)}"]`) 67021 ].filter((radio) => !radio.form); 67022 else { 67023 var _element_form_elements, _element_form; 67024 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); 67025 radios = [ 67026 ...radioList ?? [] 67027 ]; 67028 } 67029 return radios ? !radios.some((radio) => radio.checked) : !1; 67030} 67031function $9bf71ea28793e738$var$useFocusContainment(scopeRef, contain) { 67032 let focusedNode = (0, import_react73.useRef)(void 0), raf = (0, import_react73.useRef)(void 0); 67033 $f0a04ccd8dbdd83b$export$e5c5a5f917a5871c(() => { 67034 let scope2 = scopeRef.current; 67035 if (!contain) { 67036 raf.current && (cancelAnimationFrame(raf.current), raf.current = void 0); 67037 return; 67038 } 67039 let ownerDocument = $431fbd86ca7dc216$export$b204af158042fbac(scope2 ? scope2[0] : void 0), onKeyDown = (e) => { 67040 if (e.key !== "Tab" || e.altKey || e.ctrlKey || e.metaKey || !$9bf71ea28793e738$var$shouldContainFocus(scopeRef) || e.isComposing) return; 67041 let focusedElement = $d4ee10de306f2510$export$cd4e5573fbe2b576(ownerDocument), scope3 = scopeRef.current; 67042 if (!scope3 || !$9bf71ea28793e738$var$isElementInScope(focusedElement, scope3)) return; 67043 let scopeRoot = $9bf71ea28793e738$var$getScopeRoot(scope3), walker = $9bf71ea28793e738$export$2d6ec8fc375ceafa(scopeRoot, { 67044 tabbable: !0 67045 }, scope3); 67046 if (!focusedElement) return; 67047 walker.currentNode = focusedElement; 67048 let nextElement = e.shiftKey ? walker.previousNode() : walker.nextNode(); 67049 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); 67050 }, onFocus = (e) => { 67051 (!$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)); 67052 }, onBlur = (e) => { 67053 raf.current && cancelAnimationFrame(raf.current), raf.current = requestAnimationFrame(() => { 67054 let modality = $507fabe10e71c6fb$export$630ff653c5ada6a9(), shouldSkipFocusRestore = (modality === "virtual" || modality === null) && $c87311424ea30a05$export$a11b0059900ceec8() && $c87311424ea30a05$export$6446a186d09e379e(), activeElement = $d4ee10de306f2510$export$cd4e5573fbe2b576(ownerDocument); 67055 if (!shouldSkipFocusRestore && activeElement && $9bf71ea28793e738$var$shouldContainFocus(scopeRef) && !$9bf71ea28793e738$var$isElementInChildScope(activeElement, scopeRef)) { 67056 $9bf71ea28793e738$var$activeScope = scopeRef; 67057 let target = $d4ee10de306f2510$export$e58f029f0fbfdb29(e); 67058 if (target && target.isConnected) { 67059 var _focusedNode_current; 67060 focusedNode.current = target, (_focusedNode_current = focusedNode.current) === null || _focusedNode_current === void 0 || _focusedNode_current.focus(); 67061 } else $9bf71ea28793e738$var$activeScope.current && $9bf71ea28793e738$var$focusFirstInScope($9bf71ea28793e738$var$activeScope.current); 67062 } 67063 }); 67064 }; 67065 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)), () => { 67066 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)); 67067 }; 67068 }, [ 67069 scopeRef, 67070 contain 67071 ]), $f0a04ccd8dbdd83b$export$e5c5a5f917a5871c(() => () => { 67072 raf.current && cancelAnimationFrame(raf.current); 67073 }, [ 67074 raf 67075 ]); 67076} 67077function $9bf71ea28793e738$var$isElementInAnyScope(element) { 67078 return $9bf71ea28793e738$var$isElementInChildScope(element); 67079} 67080function $9bf71ea28793e738$var$isElementInScope(element, scope2) { 67081 return !element || !scope2 ? !1 : scope2.some((node2) => node2.contains(element)); 67082} 67083function $9bf71ea28793e738$var$isElementInChildScope(element, scope2 = null) { 67084 if (element instanceof Element && element.closest("[data-react-aria-top-layer]")) return !0; 67085 for (let { scopeRef: s3 } of $9bf71ea28793e738$export$d06fae2ee68b101e.traverse($9bf71ea28793e738$export$d06fae2ee68b101e.getTreeNode(scope2))) 67086 if (s3 && $9bf71ea28793e738$var$isElementInScope(element, s3.current)) return !0; 67087 return !1; 67088} 67089function $9bf71ea28793e738$export$1258395f99bf9cbf(element) { 67090 return $9bf71ea28793e738$var$isElementInChildScope(element, $9bf71ea28793e738$var$activeScope); 67091} 67092function $9bf71ea28793e738$var$isAncestorScope(ancestor, scope2) { 67093 var _focusScopeTree_getTreeNode; 67094 let parent = (_focusScopeTree_getTreeNode = $9bf71ea28793e738$export$d06fae2ee68b101e.getTreeNode(scope2)) === null || _focusScopeTree_getTreeNode === void 0 ? void 0 : _focusScopeTree_getTreeNode.parent; 67095 for (; parent; ) { 67096 if (parent.scopeRef === ancestor) return !0; 67097 parent = parent.parent; 67098 } 67099 return !1; 67100} 67101function $9bf71ea28793e738$var$focusElement(element, scroll = !1) { 67102 if (element != null && !scroll) try { 67103 $3ad3f6e1647bc98d$export$80f3e147d781571c(element); 67104 } catch { 67105 } 67106 else if (element != null) try { 67107 element.focus(); 67108 } catch { 67109 } 67110} 67111function $9bf71ea28793e738$var$getFirstInScope(scope2, tabbable = !0) { 67112 let sentinel = scope2[0].previousElementSibling, scopeRoot = $9bf71ea28793e738$var$getScopeRoot(scope2), walker = $9bf71ea28793e738$export$2d6ec8fc375ceafa(scopeRoot, { 67113 tabbable 67114 }, scope2); 67115 walker.currentNode = sentinel; 67116 let nextNode = walker.nextNode(); 67117 return tabbable && !nextNode && (scopeRoot = $9bf71ea28793e738$var$getScopeRoot(scope2), walker = $9bf71ea28793e738$export$2d6ec8fc375ceafa(scopeRoot, { 67118 tabbable: !1 67119 }, scope2), walker.currentNode = sentinel, nextNode = walker.nextNode()), nextNode; 67120} 67121function $9bf71ea28793e738$var$focusFirstInScope(scope2, tabbable = !0) { 67122 $9bf71ea28793e738$var$focusElement($9bf71ea28793e738$var$getFirstInScope(scope2, tabbable)); 67123} 67124function $9bf71ea28793e738$var$useAutoFocus(scopeRef, autoFocus) { 67125 let autoFocusRef = import_react73.default.useRef(autoFocus); 67126 (0, import_react73.useEffect)(() => { 67127 if (autoFocusRef.current) { 67128 $9bf71ea28793e738$var$activeScope = scopeRef; 67129 let ownerDocument = $431fbd86ca7dc216$export$b204af158042fbac(scopeRef.current ? scopeRef.current[0] : void 0); 67130 !$9bf71ea28793e738$var$isElementInScope($d4ee10de306f2510$export$cd4e5573fbe2b576(ownerDocument), $9bf71ea28793e738$var$activeScope.current) && scopeRef.current && $9bf71ea28793e738$var$focusFirstInScope(scopeRef.current); 67131 } 67132 autoFocusRef.current = !1; 67133 }, [ 67134 scopeRef 67135 ]); 67136} 67137function $9bf71ea28793e738$var$useActiveScopeTracker(scopeRef, restore, contain) { 67138 $f0a04ccd8dbdd83b$export$e5c5a5f917a5871c(() => { 67139 if (restore || contain) return; 67140 let scope2 = scopeRef.current, ownerDocument = $431fbd86ca7dc216$export$b204af158042fbac(scope2 ? scope2[0] : void 0), onFocus = (e) => { 67141 let target = $d4ee10de306f2510$export$e58f029f0fbfdb29(e); 67142 $9bf71ea28793e738$var$isElementInScope(target, scopeRef.current) ? $9bf71ea28793e738$var$activeScope = scopeRef : $9bf71ea28793e738$var$isElementInAnyScope(target) || ($9bf71ea28793e738$var$activeScope = null); 67143 }; 67144 return ownerDocument.addEventListener("focusin", onFocus, !1), scope2?.forEach((element) => element.addEventListener("focusin", onFocus, !1)), () => { 67145 ownerDocument.removeEventListener("focusin", onFocus, !1), scope2?.forEach((element) => element.removeEventListener("focusin", onFocus, !1)); 67146 }; 67147 }, [ 67148 scopeRef, 67149 restore, 67150 contain 67151 ]); 67152} 67153function $9bf71ea28793e738$var$shouldRestoreFocus(scopeRef) { 67154 let scope2 = $9bf71ea28793e738$export$d06fae2ee68b101e.getTreeNode($9bf71ea28793e738$var$activeScope); 67155 for (; scope2 && scope2.scopeRef !== scopeRef; ) { 67156 if (scope2.nodeToRestore) return !1; 67157 scope2 = scope2.parent; 67158 } 67159 return scope2?.scopeRef === scopeRef; 67160} 67161function $9bf71ea28793e738$var$useRestoreFocus(scopeRef, restoreFocus, contain) { 67162 let nodeToRestoreRef = (0, import_react73.useRef)(typeof document < "u" ? $d4ee10de306f2510$export$cd4e5573fbe2b576($431fbd86ca7dc216$export$b204af158042fbac(scopeRef.current ? scopeRef.current[0] : void 0)) : null); 67163 $f0a04ccd8dbdd83b$export$e5c5a5f917a5871c(() => { 67164 let scope2 = scopeRef.current, ownerDocument = $431fbd86ca7dc216$export$b204af158042fbac(scope2 ? scope2[0] : void 0); 67165 if (!restoreFocus || contain) return; 67166 let onFocus = () => { 67167 (!$9bf71ea28793e738$var$activeScope || $9bf71ea28793e738$var$isAncestorScope($9bf71ea28793e738$var$activeScope, scopeRef)) && $9bf71ea28793e738$var$isElementInScope($d4ee10de306f2510$export$cd4e5573fbe2b576(ownerDocument), scopeRef.current) && ($9bf71ea28793e738$var$activeScope = scopeRef); 67168 }; 67169 return ownerDocument.addEventListener("focusin", onFocus, !1), scope2?.forEach((element) => element.addEventListener("focusin", onFocus, !1)), () => { 67170 ownerDocument.removeEventListener("focusin", onFocus, !1), scope2?.forEach((element) => element.removeEventListener("focusin", onFocus, !1)); 67171 }; 67172 }, [ 67173 scopeRef, 67174 contain 67175 ]), $f0a04ccd8dbdd83b$export$e5c5a5f917a5871c(() => { 67176 let ownerDocument = $431fbd86ca7dc216$export$b204af158042fbac(scopeRef.current ? scopeRef.current[0] : void 0); 67177 if (!restoreFocus) return; 67178 let onKeyDown = (e) => { 67179 if (e.key !== "Tab" || e.altKey || e.ctrlKey || e.metaKey || !$9bf71ea28793e738$var$shouldContainFocus(scopeRef) || e.isComposing) return; 67180 let focusedElement = ownerDocument.activeElement; 67181 if (!$9bf71ea28793e738$var$isElementInChildScope(focusedElement, scopeRef) || !$9bf71ea28793e738$var$shouldRestoreFocus(scopeRef)) return; 67182 let treeNode = $9bf71ea28793e738$export$d06fae2ee68b101e.getTreeNode(scopeRef); 67183 if (!treeNode) return; 67184 let nodeToRestore = treeNode.nodeToRestore, walker = $9bf71ea28793e738$export$2d6ec8fc375ceafa(ownerDocument.body, { 67185 tabbable: !0 67186 }); 67187 walker.currentNode = focusedElement; 67188 let nextElement = e.shiftKey ? walker.previousNode() : walker.nextNode(); 67189 if ((!nodeToRestore || !nodeToRestore.isConnected || nodeToRestore === ownerDocument.body) && (nodeToRestore = void 0, treeNode.nodeToRestore = void 0), (!nextElement || !$9bf71ea28793e738$var$isElementInChildScope(nextElement, scopeRef)) && nodeToRestore) { 67190 walker.currentNode = nodeToRestore; 67191 do 67192 nextElement = e.shiftKey ? walker.previousNode() : walker.nextNode(); 67193 while ($9bf71ea28793e738$var$isElementInChildScope(nextElement, scopeRef)); 67194 e.preventDefault(), e.stopPropagation(), nextElement ? $9bf71ea28793e738$var$focusElement(nextElement, !0) : $9bf71ea28793e738$var$isElementInAnyScope(nodeToRestore) ? $9bf71ea28793e738$var$focusElement(nodeToRestore, !0) : focusedElement.blur(); 67195 } 67196 }; 67197 return contain || ownerDocument.addEventListener("keydown", onKeyDown, !0), () => { 67198 contain || ownerDocument.removeEventListener("keydown", onKeyDown, !0); 67199 }; 67200 }, [ 67201 scopeRef, 67202 restoreFocus, 67203 contain 67204 ]), $f0a04ccd8dbdd83b$export$e5c5a5f917a5871c(() => { 67205 let ownerDocument = $431fbd86ca7dc216$export$b204af158042fbac(scopeRef.current ? scopeRef.current[0] : void 0); 67206 if (!restoreFocus) return; 67207 let treeNode = $9bf71ea28793e738$export$d06fae2ee68b101e.getTreeNode(scopeRef); 67208 if (treeNode) { 67209 var _nodeToRestoreRef_current; 67210 return treeNode.nodeToRestore = (_nodeToRestoreRef_current = nodeToRestoreRef.current) !== null && _nodeToRestoreRef_current !== void 0 ? _nodeToRestoreRef_current : void 0, () => { 67211 let treeNode2 = $9bf71ea28793e738$export$d06fae2ee68b101e.getTreeNode(scopeRef); 67212 if (!treeNode2) return; 67213 let nodeToRestore = treeNode2.nodeToRestore, activeElement = $d4ee10de306f2510$export$cd4e5573fbe2b576(ownerDocument); 67214 if (restoreFocus && nodeToRestore && (activeElement && $9bf71ea28793e738$var$isElementInChildScope(activeElement, scopeRef) || activeElement === ownerDocument.body && $9bf71ea28793e738$var$shouldRestoreFocus(scopeRef))) { 67215 let clonedTree = $9bf71ea28793e738$export$d06fae2ee68b101e.clone(); 67216 requestAnimationFrame(() => { 67217 if (ownerDocument.activeElement === ownerDocument.body) { 67218 let treeNode3 = clonedTree.getTreeNode(scopeRef); 67219 for (; treeNode3; ) { 67220 if (treeNode3.nodeToRestore && treeNode3.nodeToRestore.isConnected) { 67221 $9bf71ea28793e738$var$restoreFocusToElement(treeNode3.nodeToRestore); 67222 return; 67223 } 67224 treeNode3 = treeNode3.parent; 67225 } 67226 for (treeNode3 = clonedTree.getTreeNode(scopeRef); treeNode3; ) { 67227 if (treeNode3.scopeRef && treeNode3.scopeRef.current && $9bf71ea28793e738$export$d06fae2ee68b101e.getTreeNode(treeNode3.scopeRef)) { 67228 let node2 = $9bf71ea28793e738$var$getFirstInScope(treeNode3.scopeRef.current, !0); 67229 $9bf71ea28793e738$var$restoreFocusToElement(node2); 67230 return; 67231 } 67232 treeNode3 = treeNode3.parent; 67233 } 67234 } 67235 }); 67236 } 67237 }; 67238 } 67239 }, [ 67240 scopeRef, 67241 restoreFocus 67242 ]); 67243} 67244function $9bf71ea28793e738$var$restoreFocusToElement(node2) { 67245 node2.dispatchEvent(new CustomEvent($9bf71ea28793e738$var$RESTORE_FOCUS_EVENT, { 67246 bubbles: !0, 67247 cancelable: !0 67248 })) && $9bf71ea28793e738$var$focusElement(node2); 67249} 67250function $9bf71ea28793e738$export$2d6ec8fc375ceafa(root2, opts, scope2) { 67251 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, { 67252 acceptNode(node2) { 67253 var _opts_from; 67254 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; 67255 } 67256 }); 67257 return opts?.from && (walker.currentNode = opts.from), walker; 67258} 67259function $9bf71ea28793e738$export$c5251b9e124bf29(ref, defaultOptions2 = {}) { 67260 return { 67261 focusNext(opts = {}) { 67262 let root2 = ref.current; 67263 if (!root2) return null; 67264 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, { 67265 tabbable, 67266 accept 67267 }); 67268 root2.contains(node2) && (walker.currentNode = node2); 67269 let nextNode = walker.nextNode(); 67270 return !nextNode && wrap2 && (walker.currentNode = root2, nextNode = walker.nextNode()), nextNode && $9bf71ea28793e738$var$focusElement(nextNode, !0), nextNode; 67271 }, 67272 focusPrevious(opts = defaultOptions2) { 67273 let root2 = ref.current; 67274 if (!root2) return null; 67275 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, { 67276 tabbable, 67277 accept 67278 }); 67279 if (root2.contains(node2)) walker.currentNode = node2; 67280 else { 67281 let next2 = $9bf71ea28793e738$var$last(walker); 67282 return next2 && $9bf71ea28793e738$var$focusElement(next2, !0), next2 ?? null; 67283 } 67284 let previousNode = walker.previousNode(); 67285 if (!previousNode && wrap2) { 67286 walker.currentNode = root2; 67287 let lastNode = $9bf71ea28793e738$var$last(walker); 67288 if (!lastNode) 67289 return null; 67290 previousNode = lastNode; 67291 } 67292 return previousNode && $9bf71ea28793e738$var$focusElement(previousNode, !0), previousNode ?? null; 67293 }, 67294 focusFirst(opts = defaultOptions2) { 67295 let root2 = ref.current; 67296 if (!root2) return null; 67297 let { tabbable = defaultOptions2.tabbable, accept = defaultOptions2.accept } = opts, nextNode = $9bf71ea28793e738$export$2d6ec8fc375ceafa(root2, { 67298 tabbable, 67299 accept 67300 }).nextNode(); 67301 return nextNode && $9bf71ea28793e738$var$focusElement(nextNode, !0), nextNode; 67302 }, 67303 focusLast(opts = defaultOptions2) { 67304 let root2 = ref.current; 67305 if (!root2) return null; 67306 let { tabbable = defaultOptions2.tabbable, accept = defaultOptions2.accept } = opts, walker = $9bf71ea28793e738$export$2d6ec8fc375ceafa(root2, { 67307 tabbable, 67308 accept 67309 }), next2 = $9bf71ea28793e738$var$last(walker); 67310 return next2 && $9bf71ea28793e738$var$focusElement(next2, !0), next2 ?? null; 67311 } 67312 }; 67313} 67314function $9bf71ea28793e738$var$last(walker) { 67315 let next2, last2; 67316 do 67317 last2 = walker.lastChild(), last2 && (next2 = last2); 67318 while (last2); 67319 return next2; 67320} 67321var $9bf71ea28793e738$var$Tree = class _$9bf71ea28793e738$var$Tree { 67322 get size() { 67323 return this.fastMap.size; 67324 } 67325 getTreeNode(data) { 67326 return this.fastMap.get(data); 67327 } 67328 addTreeNode(scopeRef, parent, nodeToRestore) { 67329 let parentNode = this.fastMap.get(parent ?? null); 67330 if (!parentNode) return; 67331 let node2 = new $9bf71ea28793e738$var$TreeNode({ 67332 scopeRef 67333 }); 67334 parentNode.addChild(node2), node2.parent = parentNode, this.fastMap.set(scopeRef, node2), nodeToRestore && (node2.nodeToRestore = nodeToRestore); 67335 } 67336 addNode(node2) { 67337 this.fastMap.set(node2.scopeRef, node2); 67338 } 67339 removeTreeNode(scopeRef) { 67340 if (scopeRef === null) return; 67341 let node2 = this.fastMap.get(scopeRef); 67342 if (!node2) return; 67343 let parentNode = node2.parent; 67344 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); 67345 let children = node2.children; 67346 parentNode && (parentNode.removeChild(node2), children.size > 0 && children.forEach((child) => parentNode && parentNode.addChild(child))), this.fastMap.delete(node2.scopeRef); 67347 } 67348 // Pre Order Depth First 67349 *traverse(node2 = this.root) { 67350 if (node2.scopeRef != null && (yield node2), node2.children.size > 0) for (let child of node2.children) yield* this.traverse(child); 67351 } 67352 clone() { 67353 var _node_parent; 67354 let newTree = new _$9bf71ea28793e738$var$Tree(); 67355 var _node_parent_scopeRef; 67356 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); 67357 return newTree; 67358 } 67359 constructor() { 67360 this.fastMap = /* @__PURE__ */ new Map(), this.root = new $9bf71ea28793e738$var$TreeNode({ 67361 scopeRef: null 67362 }), this.fastMap.set(null, this.root); 67363 } 67364}, $9bf71ea28793e738$var$TreeNode = class { 67365 addChild(node2) { 67366 this.children.add(node2), node2.parent = this; 67367 } 67368 removeChild(node2) { 67369 this.children.delete(node2), node2.parent = void 0; 67370 } 67371 constructor(props) { 67372 this.children = /* @__PURE__ */ new Set(), this.contain = !1, this.scopeRef = props.scopeRef; 67373 } 67374}, $9bf71ea28793e738$export$d06fae2ee68b101e = new $9bf71ea28793e738$var$Tree(); 67375
vendor: 1,442 bytes, lines 67376-67405
67376// ../../node_modules/@react-aria/focus/dist/useFocusRing.mjs 67377var import_react74 = __toESM(require_react(), 1); 67378function $f7dceffc5ad7768b$export$4e328f61c538687f(props = {}) { 67379 let { autoFocus = !1, isTextInput, within: within3 } = props, state3 = (0, import_react74.useRef)({ 67380 isFocused: !1, 67381 isFocusVisible: autoFocus || $507fabe10e71c6fb$export$b9b3dfddab17db27() 67382 }), [isFocused, setFocused] = (0, import_react74.useState)(!1), [isFocusVisibleState, setFocusVisible] = (0, import_react74.useState)(() => state3.current.isFocused && state3.current.isFocusVisible), updateState2 = (0, import_react74.useCallback)(() => setFocusVisible(state3.current.isFocused && state3.current.isFocusVisible), []), onFocusChange = (0, import_react74.useCallback)((isFocused2) => { 67383 state3.current.isFocused = isFocused2, setFocused(isFocused2), updateState2(); 67384 }, [ 67385 updateState2 67386 ]); 67387 $507fabe10e71c6fb$export$ec71b4b83ac08ec3((isFocusVisible) => { 67388 state3.current.isFocusVisible = isFocusVisible, updateState2(); 67389 }, [], { 67390 isTextInput 67391 }); 67392 let { focusProps } = $a1ea59d68270f0dd$export$f8168d8dd8fd66e6({ 67393 isDisabled: within3, 67394 onFocusChange 67395 }), { focusWithinProps } = $9ab94262bd0047c7$export$420e68273165f4ec({ 67396 isDisabled: !within3, 67397 onFocusWithinChange: onFocusChange 67398 }); 67399 return { 67400 isFocused, 67401 isFocusVisible: isFocusVisibleState, 67402 focusProps: within3 ? focusWithinProps : focusProps 67403 }; 67404} 67405
vendor: 110 bytes, lines 67406-67408
67406// ../../node_modules/@react-aria/focus/dist/FocusRing.mjs 67407var import_react75 = __toESM(require_react(), 1); 67408
vendor: 1,019 bytes, lines 67409-67439
67409// ../../node_modules/@react-aria/focus/dist/useHasTabbableChild.mjs 67410var import_react76 = __toESM(require_react(), 1); 67411function $83013635b024ae3d$export$eac1895992b9f3d6(ref, options) { 67412 let isDisabled3 = options?.isDisabled, [hasTabbableChild, setHasTabbableChild] = (0, import_react76.useState)(!1); 67413 return $f0a04ccd8dbdd83b$export$e5c5a5f917a5871c(() => { 67414 if (ref?.current && !isDisabled3) { 67415 let update2 = () => { 67416 if (ref.current) { 67417 let walker = $9bf71ea28793e738$export$2d6ec8fc375ceafa(ref.current, { 67418 tabbable: !0 67419 }); 67420 setHasTabbableChild(!!walker.nextNode()); 67421 } 67422 }; 67423 update2(); 67424 let observer = new MutationObserver(update2); 67425 return observer.observe(ref.current, { 67426 subtree: !0, 67427 childList: !0, 67428 attributes: !0, 67429 attributeFilter: [ 67430 "tabIndex", 67431 "disabled" 67432 ] 67433 }), () => { 67434 observer.disconnect(); 67435 }; 67436 } 67437 }), isDisabled3 ? !1 : hasTabbableChild; 67438} 67439
vendor: 1,151 bytes, lines 67440-67465
67440// ../../node_modules/@react-aria/focus/dist/virtualFocus.mjs 67441function $55f9b1ae81f22853$export$76e4e37e5339496d(to) { 67442 let from2 = $55f9b1ae81f22853$export$759df0d867455a91($431fbd86ca7dc216$export$b204af158042fbac(to)); 67443 from2 !== to && (from2 && $55f9b1ae81f22853$export$6c5dc7e81d2cc29a(from2, to), to && $55f9b1ae81f22853$export$2b35b76d2e30e129(to, from2)); 67444} 67445function $55f9b1ae81f22853$export$6c5dc7e81d2cc29a(from2, to) { 67446 from2.dispatchEvent(new FocusEvent("blur", { 67447 relatedTarget: to 67448 })), from2.dispatchEvent(new FocusEvent("focusout", { 67449 bubbles: !0, 67450 relatedTarget: to 67451 })); 67452} 67453function $55f9b1ae81f22853$export$2b35b76d2e30e129(to, from2) { 67454 to.dispatchEvent(new FocusEvent("focus", { 67455 relatedTarget: from2 67456 })), to.dispatchEvent(new FocusEvent("focusin", { 67457 bubbles: !0, 67458 relatedTarget: from2 67459 })); 67460} 67461function $55f9b1ae81f22853$export$759df0d867455a91(document13) { 67462 let activeElement = $d4ee10de306f2510$export$cd4e5573fbe2b576(document13), activeDescendant = activeElement?.getAttribute("aria-activedescendant"); 67463 return activeDescendant && document13.getElementById(activeDescendant) || activeElement; 67464} 67465
vendor: 2,339 bytes, lines 67466-67513
67466// ../../node_modules/@react-aria/overlays/dist/useOverlay.mjs 67467var import_react77 = __toESM(require_react(), 1); 67468var $a11501f3d1d39e6c$var$visibleOverlays = []; 67469function $a11501f3d1d39e6c$export$ea8f71083e90600f(props, ref) { 67470 let { onClose, shouldCloseOnBlur, isOpen, isDismissable = !1, isKeyboardDismissDisabled = !1, shouldCloseOnInteractOutside } = props; 67471 (0, import_react77.useEffect)(() => { 67472 if (isOpen && !$a11501f3d1d39e6c$var$visibleOverlays.includes(ref)) 67473 return $a11501f3d1d39e6c$var$visibleOverlays.push(ref), () => { 67474 let index4 = $a11501f3d1d39e6c$var$visibleOverlays.indexOf(ref); 67475 index4 >= 0 && $a11501f3d1d39e6c$var$visibleOverlays.splice(index4, 1); 67476 }; 67477 }, [ 67478 isOpen, 67479 ref 67480 ]); 67481 let onHide = () => { 67482 $a11501f3d1d39e6c$var$visibleOverlays[$a11501f3d1d39e6c$var$visibleOverlays.length - 1] === ref && onClose && onClose(); 67483 }, onInteractOutsideStart = (e) => { 67484 (!shouldCloseOnInteractOutside || shouldCloseOnInteractOutside(e.target)) && $a11501f3d1d39e6c$var$visibleOverlays[$a11501f3d1d39e6c$var$visibleOverlays.length - 1] === ref && (e.stopPropagation(), e.preventDefault()); 67485 }, onInteractOutside = (e) => { 67486 (!shouldCloseOnInteractOutside || shouldCloseOnInteractOutside(e.target)) && ($a11501f3d1d39e6c$var$visibleOverlays[$a11501f3d1d39e6c$var$visibleOverlays.length - 1] === ref && (e.stopPropagation(), e.preventDefault()), onHide()); 67487 }, onKeyDown = (e) => { 67488 e.key === "Escape" && !isKeyboardDismissDisabled && !e.nativeEvent.isComposing && (e.stopPropagation(), e.preventDefault(), onHide()); 67489 }; 67490 $e0b6e0b68ec7f50f$export$872b660ac5a1ff98({ 67491 ref, 67492 onInteractOutside: isDismissable && isOpen ? onInteractOutside : void 0, 67493 onInteractOutsideStart 67494 }); 67495 let { focusWithinProps } = $9ab94262bd0047c7$export$420e68273165f4ec({ 67496 isDisabled: !shouldCloseOnBlur, 67497 onBlurWithin: (e) => { 67498 !e.relatedTarget || $9bf71ea28793e738$export$1258395f99bf9cbf(e.relatedTarget) || (!shouldCloseOnInteractOutside || shouldCloseOnInteractOutside(e.relatedTarget)) && onClose?.(); 67499 } 67500 }), onPointerDownUnderlay = (e) => { 67501 e.target === e.currentTarget && e.preventDefault(); 67502 }; 67503 return { 67504 overlayProps: { 67505 onKeyDown, 67506 ...focusWithinProps 67507 }, 67508 underlayProps: { 67509 onPointerDown: onPointerDownUnderlay 67510 } 67511 }; 67512} 67513
vendor: 807 bytes, lines 67514-67536
67514// ../../node_modules/@react-aria/overlays/dist/useOverlayTrigger.mjs 67515var import_react78 = __toESM(require_react(), 1); 67516function $628037886ba31236$export$f9d5c8beee7d008d(props, state3, ref) { 67517 let { type: type5 } = props, { isOpen } = state3; 67518 (0, import_react78.useEffect)(() => { 67519 ref && ref.current && $dd149f63282afbbf$export$f6211563215e3b37.set(ref.current, state3.close); 67520 }); 67521 let ariaHasPopup; 67522 type5 === "menu" ? ariaHasPopup = !0 : type5 === "listbox" && (ariaHasPopup = "listbox"); 67523 let overlayId = $bdb11010cef70236$export$f680877a34711e37(); 67524 return { 67525 triggerProps: { 67526 "aria-haspopup": ariaHasPopup, 67527 "aria-expanded": isOpen, 67528 "aria-controls": isOpen ? overlayId : void 0, 67529 onPress: state3.toggle 67530 }, 67531 overlayProps: { 67532 id: overlayId 67533 } 67534 }; 67535} 67536
vendor: 6,241 bytes, lines 67537-67644
67537// ../../node_modules/@react-aria/overlays/dist/usePreventScroll.mjs 67538var $49c51c25361d4cd2$var$visualViewport = typeof document < "u" && window.visualViewport, $49c51c25361d4cd2$var$preventScrollCount = 0, $49c51c25361d4cd2$var$restore; 67539function $49c51c25361d4cd2$export$ee0f7cc6afcd1c18(options = {}) { 67540 let { isDisabled: isDisabled3 } = options; 67541 $f0a04ccd8dbdd83b$export$e5c5a5f917a5871c(() => { 67542 if (!isDisabled3) 67543 return $49c51c25361d4cd2$var$preventScrollCount++, $49c51c25361d4cd2$var$preventScrollCount === 1 && ($c87311424ea30a05$export$fedb369cb70207f1() ? $49c51c25361d4cd2$var$restore = $49c51c25361d4cd2$var$preventScrollMobileSafari() : $49c51c25361d4cd2$var$restore = $49c51c25361d4cd2$var$preventScrollStandard()), () => { 67544 $49c51c25361d4cd2$var$preventScrollCount--, $49c51c25361d4cd2$var$preventScrollCount === 0 && $49c51c25361d4cd2$var$restore(); 67545 }; 67546 }, [ 67547 isDisabled3 67548 ]); 67549} 67550function $49c51c25361d4cd2$var$preventScrollStandard() { 67551 let scrollbarWidth = window.innerWidth - document.documentElement.clientWidth; 67552 return $ff5963eb1fccf552$export$e08e3b67e392101e(scrollbarWidth > 0 && // Use scrollbar-gutter when supported because it also works for fixed positioned elements. 67553 ("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")); 67554} 67555function $49c51c25361d4cd2$var$preventScrollMobileSafari() { 67556 let scrollable, allowTouchMove = !1, onTouchStart = (e) => { 67557 let target = e.target; 67558 scrollable = $cc38e7bd3fc7b213$export$2bb74740c4e19def(target) ? target : $62d8ded9296f3872$export$cfa2225e87938781(target, !0), allowTouchMove = !1; 67559 let selection = target.ownerDocument.defaultView.getSelection(); 67560 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); 67561 }, style = document.createElement("style"); 67562 style.textContent = ` 67563@layer { 67564 * { 67565 overscroll-behavior: contain; 67566 } 67567}`.trim(), document.head.prepend(style); 67568 let onTouchMove = (e) => { 67569 if (!(e.touches.length === 2 || allowTouchMove)) { 67570 if (!scrollable || scrollable === document.documentElement || scrollable === document.body) { 67571 e.preventDefault(); 67572 return; 67573 } 67574 scrollable.scrollHeight === scrollable.clientHeight && scrollable.scrollWidth === scrollable.clientWidth && e.preventDefault(); 67575 } 67576 }, onBlur = (e) => { 67577 let target = e.target, relatedTarget = e.relatedTarget; 67578 if (relatedTarget && $21f1aa98acb08317$export$c57958e35f31ed73(relatedTarget)) 67579 relatedTarget.focus({ 67580 preventScroll: !0 67581 }), $49c51c25361d4cd2$var$scrollIntoViewWhenReady(relatedTarget, $21f1aa98acb08317$export$c57958e35f31ed73(target)); 67582 else if (!relatedTarget) { 67583 var _target_parentElement; 67584 let focusable = (_target_parentElement = target.parentElement) === null || _target_parentElement === void 0 ? void 0 : _target_parentElement.closest("[tabindex]"); 67585 focusable?.focus({ 67586 preventScroll: !0 67587 }); 67588 } 67589 }, focus = HTMLElement.prototype.focus; 67590 HTMLElement.prototype.focus = function(opts) { 67591 let wasKeyboardVisible = document.activeElement != null && $21f1aa98acb08317$export$c57958e35f31ed73(document.activeElement); 67592 focus.call(this, { 67593 ...opts, 67594 preventScroll: !0 67595 }), (!opts || !opts.preventScroll) && $49c51c25361d4cd2$var$scrollIntoViewWhenReady(this, wasKeyboardVisible); 67596 }; 67597 let removeEvents = $ff5963eb1fccf552$export$e08e3b67e392101e($49c51c25361d4cd2$var$addEvent(document, "touchstart", onTouchStart, { 67598 passive: !1, 67599 capture: !0 67600 }), $49c51c25361d4cd2$var$addEvent(document, "touchmove", onTouchMove, { 67601 passive: !1, 67602 capture: !0 67603 }), $49c51c25361d4cd2$var$addEvent(document, "blur", onBlur, !0)); 67604 return () => { 67605 removeEvents(), style.remove(), HTMLElement.prototype.focus = focus; 67606 }; 67607} 67608function $49c51c25361d4cd2$var$setStyle(element, style, value) { 67609 let cur = element.style[style]; 67610 return element.style[style] = value, () => { 67611 element.style[style] = cur; 67612 }; 67613} 67614function $49c51c25361d4cd2$var$addEvent(target, event, handler, options) { 67615 return target.addEventListener(event, handler, options), () => { 67616 target.removeEventListener(event, handler, options); 67617 }; 67618} 67619function $49c51c25361d4cd2$var$scrollIntoViewWhenReady(target, wasKeyboardVisible) { 67620 wasKeyboardVisible || !$49c51c25361d4cd2$var$visualViewport ? $49c51c25361d4cd2$var$scrollIntoView(target) : $49c51c25361d4cd2$var$visualViewport.addEventListener("resize", () => $49c51c25361d4cd2$var$scrollIntoView(target), { 67621 once: !0 67622 }); 67623} 67624function $49c51c25361d4cd2$var$scrollIntoView(target) { 67625 let root2 = document.scrollingElement || document.documentElement, nextTarget = target; 67626 for (; nextTarget && nextTarget !== root2; ) { 67627 let scrollable = $62d8ded9296f3872$export$cfa2225e87938781(nextTarget); 67628 if (scrollable !== document.documentElement && scrollable !== document.body && scrollable !== nextTarget) { 67629 let scrollableRect = scrollable.getBoundingClientRect(), targetRect = nextTarget.getBoundingClientRect(); 67630 if (targetRect.top < scrollableRect.top || targetRect.bottom > scrollableRect.top + nextTarget.clientHeight) { 67631 let bottom2 = scrollableRect.bottom; 67632 $49c51c25361d4cd2$var$visualViewport && (bottom2 = Math.min(bottom2, $49c51c25361d4cd2$var$visualViewport.offsetTop + $49c51c25361d4cd2$var$visualViewport.height)); 67633 let adjustment = targetRect.top - scrollableRect.top - ((bottom2 - scrollableRect.top) / 2 - targetRect.height / 2); 67634 scrollable.scrollTo({ 67635 // Clamp to the valid range to prevent over-scrolling. 67636 top: Math.max(0, Math.min(scrollable.scrollHeight - scrollable.clientHeight, scrollable.scrollTop + adjustment)), 67637 behavior: "smooth" 67638 }); 67639 } 67640 } 67641 nextTarget = scrollable.parentElement; 67642 } 67643} 67644
vendor: 832 bytes, lines 67645-67659
67645// ../../node_modules/@react-aria/overlays/dist/PortalProvider.mjs 67646var import_react79 = __toESM(require_react(), 1), $96b38030c423d352$export$60d741e20e0aa309 = (0, import_react79.createContext)({}); 67647function $96b38030c423d352$export$78efe591171d7d45(props) { 67648 let { getContainer } = props, { getContainer: ctxGetContainer } = $96b38030c423d352$export$9fc1347d4195ccb3(); 67649 return import_react79.default.createElement($96b38030c423d352$export$60d741e20e0aa309.Provider, { 67650 value: { 67651 getContainer: getContainer === null ? void 0 : getContainer ?? ctxGetContainer 67652 } 67653 }, props.children); 67654} 67655function $96b38030c423d352$export$9fc1347d4195ccb3() { 67656 var _useContext; 67657 return (_useContext = (0, import_react79.useContext)($96b38030c423d352$export$60d741e20e0aa309)) !== null && _useContext !== void 0 ? _useContext : {}; 67658} 67659
vendor: 2,479 bytes, lines 67660-67710
67660// ../../node_modules/@react-aria/overlays/dist/useModal.mjs 67661var import_react80 = __toESM(require_react(), 1), import_react_dom3 = __toESM(require_react_dom(), 1); 67662var $f57aed4a881a3485$var$Context = import_react80.default.createContext(null); 67663function $f57aed4a881a3485$export$178405afcd8c5eb(props) { 67664 let { children } = props, parent = (0, import_react80.useContext)($f57aed4a881a3485$var$Context), [modalCount, setModalCount] = (0, import_react80.useState)(0), context = (0, import_react80.useMemo)(() => ({ 67665 parent, 67666 modalCount, 67667 addModal() { 67668 setModalCount((count) => count + 1), parent && parent.addModal(); 67669 }, 67670 removeModal() { 67671 setModalCount((count) => count - 1), parent && parent.removeModal(); 67672 } 67673 }), [ 67674 parent, 67675 modalCount 67676 ]); 67677 return import_react80.default.createElement($f57aed4a881a3485$var$Context.Provider, { 67678 value: context 67679 }, children); 67680} 67681function $f57aed4a881a3485$export$d9aaed4c3ece1bc0() { 67682 let context = (0, import_react80.useContext)($f57aed4a881a3485$var$Context); 67683 return { 67684 modalProviderProps: { 67685 "aria-hidden": context && context.modalCount > 0 ? !0 : void 0 67686 } 67687 }; 67688} 67689function $f57aed4a881a3485$var$OverlayContainerDOM(props) { 67690 let { modalProviderProps } = $f57aed4a881a3485$export$d9aaed4c3ece1bc0(); 67691 return import_react80.default.createElement("div", { 67692 "data-overlay-container": !0, 67693 ...props, 67694 ...modalProviderProps 67695 }); 67696} 67697function $f57aed4a881a3485$export$bf688221f59024e5(props) { 67698 return import_react80.default.createElement($f57aed4a881a3485$export$178405afcd8c5eb, null, import_react80.default.createElement($f57aed4a881a3485$var$OverlayContainerDOM, props)); 67699} 67700function $f57aed4a881a3485$export$b47c3594eab58386(props) { 67701 let isSSR = $b5e257d569688ac6$export$535bd6ca7f90a273(), { portalContainer = isSSR ? null : document.body, ...rest } = props, { getContainer } = $96b38030c423d352$export$9fc1347d4195ccb3(); 67702 if (!props.portalContainer && getContainer && (portalContainer = getContainer()), import_react80.default.useEffect(() => { 67703 if (portalContainer?.closest("[data-overlay-container]")) throw new Error("An OverlayContainer must not be inside another container. Please change the portalContainer prop."); 67704 }, [ 67705 portalContainer 67706 ]), !portalContainer) return null; 67707 let contents = import_react80.default.createElement($f57aed4a881a3485$export$bf688221f59024e5, rest); 67708 return import_react_dom3.default.createPortal(contents, portalContainer); 67709} 67710
vendor: 172 bytes, lines 67711-67716
67711// ../../node_modules/@react-aria/overlays/dist/ar-AE.mjs 67712var $773d5888b972f1cf$exports = {}; 67713$773d5888b972f1cf$exports = { 67714 dismiss: "\u062A\u062C\u0627\u0647\u0644" 67715}; 67716
vendor: 202 bytes, lines 67717-67722
67717// ../../node_modules/@react-aria/overlays/dist/bg-BG.mjs 67718var $d11f19852b941573$exports = {}; 67719$d11f19852b941573$exports = { 67720 dismiss: "\u041E\u0442\u0445\u0432\u044A\u0440\u043B\u044F\u043D\u0435" 67721}; 67722
vendor: 151 bytes, lines 67723-67728
67723// ../../node_modules/@react-aria/overlays/dist/cs-CZ.mjs 67724var $b983974c2ee1efb3$exports = {}; 67725$b983974c2ee1efb3$exports = { 67726 dismiss: "Odstranit" 67727}; 67728
vendor: 145 bytes, lines 67729-67734
67729// ../../node_modules/@react-aria/overlays/dist/da-DK.mjs 67730var $5809cc9d4e92de73$exports = {}; 67731$5809cc9d4e92de73$exports = { 67732 dismiss: "Luk" 67733}; 67734
vendor: 154 bytes, lines 67735-67740
67735// ../../node_modules/@react-aria/overlays/dist/de-DE.mjs 67736var $c68c2e4fc74398d1$exports = {}; 67737$c68c2e4fc74398d1$exports = { 67738 dismiss: "Schlie\xDFen" 67739}; 67740
vendor: 190 bytes, lines 67741-67746
67741// ../../node_modules/@react-aria/overlays/dist/el-GR.mjs 67742var $0898b4c153db2b77$exports = {}; 67743$0898b4c153db2b77$exports = { 67744 dismiss: "\u0391\u03C0\u03CC\u03C1\u03C1\u03B9\u03C8\u03B7" 67745}; 67746
vendor: 149 bytes, lines 67747-67752
67747// ../../node_modules/@react-aria/overlays/dist/en-US.mjs 67748var $6d74810286a15183$exports = {}; 67749$6d74810286a15183$exports = { 67750 dismiss: "Dismiss" 67751}; 67752
vendor: 151 bytes, lines 67753-67758
67753// ../../node_modules/@react-aria/overlays/dist/es-ES.mjs 67754var $309d73dc65f78055$exports = {}; 67755$309d73dc65f78055$exports = { 67756 dismiss: "Descartar" 67757}; 67758
vendor: 151 bytes, lines 67759-67764
67759// ../../node_modules/@react-aria/overlays/dist/et-EE.mjs 67760var $44ad94f7205cf593$exports = {}; 67761$44ad94f7205cf593$exports = { 67762 dismiss: "L\xF5peta" 67763}; 67764
vendor: 154 bytes, lines 67765-67770
67765// ../../node_modules/@react-aria/overlays/dist/fi-FI.mjs 67766var $7c28f5687f0779a9$exports = {}; 67767$7c28f5687f0779a9$exports = { 67768 dismiss: "Hylk\xE4\xE4" 67769}; 67770
vendor: 149 bytes, lines 67771-67776
67771// ../../node_modules/@react-aria/overlays/dist/fr-FR.mjs 67772var $e6d75df4b68bd73a$exports = {}; 67773$e6d75df4b68bd73a$exports = { 67774 dismiss: "Rejeter" 67775}; 67776
vendor: 172 bytes, lines 67777-67782
67777// ../../node_modules/@react-aria/overlays/dist/he-IL.mjs 67778var $87505c9dab186d0f$exports = {}; 67779$87505c9dab186d0f$exports = { 67780 dismiss: "\u05D4\u05EA\u05E2\u05DC\u05DD" 67781}; 67782
vendor: 148 bytes, lines 67783-67788
67783// ../../node_modules/@react-aria/overlays/dist/hr-HR.mjs 67784var $553439c3ffb3e492$exports = {}; 67785$553439c3ffb3e492$exports = { 67786 dismiss: "Odbaci" 67787}; 67788
vendor: 158 bytes, lines 67789-67794
67789// ../../node_modules/@react-aria/overlays/dist/hu-HU.mjs 67790var $74cf411061b983a2$exports = {}; 67791$74cf411061b983a2$exports = { 67792 dismiss: "Elutas\xEDt\xE1s" 67793}; 67794
vendor: 148 bytes, lines 67795-67800
67795// ../../node_modules/@react-aria/overlays/dist/it-IT.mjs 67796var $e933f298574dc435$exports = {}; 67797$e933f298574dc435$exports = { 67798 dismiss: "Ignora" 67799}; 67800
vendor: 160 bytes, lines 67801-67806
67801// ../../node_modules/@react-aria/overlays/dist/ja-JP.mjs 67802var $ac91fc9fe02f71f6$exports = {}; 67803$ac91fc9fe02f71f6$exports = { 67804 dismiss: "\u9589\u3058\u308B" 67805}; 67806
vendor: 154 bytes, lines 67807-67812
67807// ../../node_modules/@react-aria/overlays/dist/ko-KR.mjs 67808var $52b96f86422025af$exports = {}; 67809$52b96f86422025af$exports = { 67810 dismiss: "\uBB34\uC2DC" 67811}; 67812
vendor: 149 bytes, lines 67813-67818
67813// ../../node_modules/@react-aria/overlays/dist/lt-LT.mjs 67814var $c0d724c3e51dafa6$exports = {}; 67815$c0d724c3e51dafa6$exports = { 67816 dismiss: "Atmesti" 67817}; 67818
vendor: 159 bytes, lines 67819-67824
67819// ../../node_modules/@react-aria/overlays/dist/lv-LV.mjs 67820var $c92899672a3fe72e$exports = {}; 67821$c92899672a3fe72e$exports = { 67822 dismiss: "Ner\u0101d\u012Bt" 67823}; 67824
vendor: 146 bytes, lines 67825-67830
67825// ../../node_modules/@react-aria/overlays/dist/nb-NO.mjs 67826var $9f576b39d8e7a9d6$exports = {}; 67827$9f576b39d8e7a9d6$exports = { 67828 dismiss: "Lukk" 67829}; 67830
vendor: 149 bytes, lines 67831-67836
67831// ../../node_modules/@react-aria/overlays/dist/nl-NL.mjs 67832var $9d025808aeec81a7$exports = {}; 67833$9d025808aeec81a7$exports = { 67834 dismiss: "Negeren" 67835}; 67836
vendor: 150 bytes, lines 67837-67842
67837// ../../node_modules/@react-aria/overlays/dist/pl-PL.mjs 67838var $fce709921e2c0fa6$exports = {}; 67839$fce709921e2c0fa6$exports = { 67840 dismiss: "Zignoruj" 67841}; 67842
vendor: 151 bytes, lines 67843-67848
67843// ../../node_modules/@react-aria/overlays/dist/pt-BR.mjs 67844var $2599cf0c4ab37f59$exports = {}; 67845$2599cf0c4ab37f59$exports = { 67846 dismiss: "Descartar" 67847}; 67848
vendor: 151 bytes, lines 67849-67854
67849// ../../node_modules/@react-aria/overlays/dist/pt-PT.mjs 67850var $3c220ae7ef8a35fd$exports = {}; 67851$3c220ae7ef8a35fd$exports = { 67852 dismiss: "Dispensar" 67853}; 67854
vendor: 150 bytes, lines 67855-67860
67855// ../../node_modules/@react-aria/overlays/dist/ro-RO.mjs 67856var $93562b5094072f54$exports = {}; 67857$93562b5094072f54$exports = { 67858 dismiss: "Revocare" 67859}; 67860
vendor: 202 bytes, lines 67861-67866
67861// ../../node_modules/@react-aria/overlays/dist/ru-RU.mjs 67862var $cd9e2abd0d06c7b4$exports = {}; 67863$cd9e2abd0d06c7b4$exports = { 67864 dismiss: "\u041F\u0440\u043E\u043F\u0443\u0441\u0442\u0438\u0442\u044C" 67865}; 67866
vendor: 158 bytes, lines 67867-67872
67867// ../../node_modules/@react-aria/overlays/dist/sk-SK.mjs 67868var $45375701f409adf1$exports = {}; 67869$45375701f409adf1$exports = { 67870 dismiss: "Zru\u0161i\u0165" 67871}; 67872
vendor: 148 bytes, lines 67873-67878
67873// ../../node_modules/@react-aria/overlays/dist/sl-SI.mjs 67874var $27fab53a576de9dd$exports = {}; 67875$27fab53a576de9dd$exports = { 67876 dismiss: "Opusti" 67877}; 67878
vendor: 148 bytes, lines 67879-67884
67879// ../../node_modules/@react-aria/overlays/dist/sr-SP.mjs 67880var $4438748d9952e7c7$exports = {}; 67881$4438748d9952e7c7$exports = { 67882 dismiss: "Odbaci" 67883}; 67884
vendor: 148 bytes, lines 67885-67890
67885// ../../node_modules/@react-aria/overlays/dist/sv-SE.mjs 67886var $0936d7347ef4da4c$exports = {}; 67887$0936d7347ef4da4c$exports = { 67888 dismiss: "Avvisa" 67889}; 67890
vendor: 147 bytes, lines 67891-67896
67891// ../../node_modules/@react-aria/overlays/dist/tr-TR.mjs 67892var $29700c92185d38f8$exports = {}; 67893$29700c92185d38f8$exports = { 67894 dismiss: "Kapat" 67895}; 67896
vendor: 196 bytes, lines 67897-67902
67897// ../../node_modules/@react-aria/overlays/dist/uk-UA.mjs 67898var $662ccaf2be4c25b3$exports = {}; 67899$662ccaf2be4c25b3$exports = { 67900 dismiss: "\u0421\u043A\u0430\u0441\u0443\u0432\u0430\u0442\u0438" 67901}; 67902
vendor: 154 bytes, lines 67903-67908
67903// ../../node_modules/@react-aria/overlays/dist/zh-CN.mjs 67904var $d80a27deda7cdb3c$exports = {}; 67905$d80a27deda7cdb3c$exports = { 67906 dismiss: "\u53D6\u6D88" 67907}; 67908
vendor: 154 bytes, lines 67909-67914
67909// ../../node_modules/@react-aria/overlays/dist/zh-TW.mjs 67910var $2b2734393847c884$exports = {}; 67911$2b2734393847c884$exports = { 67912 dismiss: "\u95DC\u9589" 67913}; 67914
vendor: 1,425 bytes, lines 67915-67953
67915// ../../node_modules/@react-aria/overlays/dist/intlStrings.mjs 67916var $a2f21f5f14f60553$exports = {}; 67917$a2f21f5f14f60553$exports = { 67918 "ar-AE": $773d5888b972f1cf$exports, 67919 "bg-BG": $d11f19852b941573$exports, 67920 "cs-CZ": $b983974c2ee1efb3$exports, 67921 "da-DK": $5809cc9d4e92de73$exports, 67922 "de-DE": $c68c2e4fc74398d1$exports, 67923 "el-GR": $0898b4c153db2b77$exports, 67924 "en-US": $6d74810286a15183$exports, 67925 "es-ES": $309d73dc65f78055$exports, 67926 "et-EE": $44ad94f7205cf593$exports, 67927 "fi-FI": $7c28f5687f0779a9$exports, 67928 "fr-FR": $e6d75df4b68bd73a$exports, 67929 "he-IL": $87505c9dab186d0f$exports, 67930 "hr-HR": $553439c3ffb3e492$exports, 67931 "hu-HU": $74cf411061b983a2$exports, 67932 "it-IT": $e933f298574dc435$exports, 67933 "ja-JP": $ac91fc9fe02f71f6$exports, 67934 "ko-KR": $52b96f86422025af$exports, 67935 "lt-LT": $c0d724c3e51dafa6$exports, 67936 "lv-LV": $c92899672a3fe72e$exports, 67937 "nb-NO": $9f576b39d8e7a9d6$exports, 67938 "nl-NL": $9d025808aeec81a7$exports, 67939 "pl-PL": $fce709921e2c0fa6$exports, 67940 "pt-BR": $2599cf0c4ab37f59$exports, 67941 "pt-PT": $3c220ae7ef8a35fd$exports, 67942 "ro-RO": $93562b5094072f54$exports, 67943 "ru-RU": $cd9e2abd0d06c7b4$exports, 67944 "sk-SK": $45375701f409adf1$exports, 67945 "sl-SI": $27fab53a576de9dd$exports, 67946 "sr-SP": $4438748d9952e7c7$exports, 67947 "sv-SE": $0936d7347ef4da4c$exports, 67948 "tr-TR": $29700c92185d38f8$exports, 67949 "uk-UA": $662ccaf2be4c25b3$exports, 67950 "zh-CN": $d80a27deda7cdb3c$exports, 67951 "zh-TW": $2b2734393847c884$exports 67952}; 67953
vendor: 117 bytes, lines 67954-67956
67954// ../../node_modules/@react-aria/overlays/dist/DismissButton.mjs 67955var import_react82 = __toESM(require_react(), 1); 67956
vendor: 1,378 bytes, lines 67957-67992
67957// ../../node_modules/@react-aria/visually-hidden/dist/VisuallyHidden.mjs 67958var import_react81 = __toESM(require_react(), 1); 67959var $5c3e21d68f1c4674$var$styles = { 67960 border: 0, 67961 clip: "rect(0 0 0 0)", 67962 clipPath: "inset(50%)", 67963 height: "1px", 67964 margin: "-1px", 67965 overflow: "hidden", 67966 padding: 0, 67967 position: "absolute", 67968 width: "1px", 67969 whiteSpace: "nowrap" 67970}; 67971function $5c3e21d68f1c4674$export$a966af930f325cab(props = {}) { 67972 let { style, isFocusable: isFocusable2 } = props, [isFocused, setFocused] = (0, import_react81.useState)(!1), { focusWithinProps } = $9ab94262bd0047c7$export$420e68273165f4ec({ 67973 isDisabled: !isFocusable2, 67974 onFocusWithinChange: (val) => setFocused(val) 67975 }), combinedStyles = (0, import_react81.useMemo)(() => isFocused ? style : style ? { 67976 ...$5c3e21d68f1c4674$var$styles, 67977 ...style 67978 } : $5c3e21d68f1c4674$var$styles, [ 67979 isFocused 67980 ]); 67981 return { 67982 visuallyHiddenProps: { 67983 ...focusWithinProps, 67984 style: combinedStyles 67985 } 67986 }; 67987} 67988function $5c3e21d68f1c4674$export$439d29a4e110a164(props) { 67989 let { children, elementType: Element2 = "div", isFocusable: isFocusable2, style, ...otherProps } = props, { visuallyHiddenProps } = $5c3e21d68f1c4674$export$a966af930f325cab(props); 67990 return import_react81.default.createElement(Element2, $3ef42575df84b30b$export$9d1611c77c2fe928(otherProps, visuallyHiddenProps), children); 67991} 67992
vendor: 797 bytes, lines 67993-68011
67993// ../../node_modules/@react-aria/overlays/dist/DismissButton.mjs 67994function $parcel$interopDefault(a3) { 67995 return a3 && a3.__esModule ? a3.default : a3; 67996} 67997function $86ea4cb521eb2e37$export$2317d149ed6f78c4(props) { 67998 let { onDismiss, ...otherProps } = props, stringFormatter = $fca6afa0e843324b$export$f12b703ca79dfbb1($parcel$interopDefault($a2f21f5f14f60553$exports), "@react-aria/overlays"), labels = $313b98861ee5dd6c$export$d6875122194c7b44(otherProps, stringFormatter.format("dismiss")), onClick = () => { 67999 onDismiss && onDismiss(); 68000 }; 68001 return import_react82.default.createElement($5c3e21d68f1c4674$export$439d29a4e110a164, null, import_react82.default.createElement("button", { 68002 ...labels, 68003 tabIndex: -1, 68004 onClick, 68005 style: { 68006 width: 1, 68007 height: 1 68008 } 68009 })); 68010} 68011
vendor: 4,594 bytes, lines 68012-68084
68012// ../../node_modules/@react-aria/overlays/dist/ariaHideOutside.mjs 68013var $5e3802645cc19319$var$supportsInert = typeof HTMLElement < "u" && "inert" in HTMLElement.prototype, $5e3802645cc19319$var$refCountMap = /* @__PURE__ */ new WeakMap(), $5e3802645cc19319$var$observerStack = []; 68014function $5e3802645cc19319$export$1c3ebcada18427bf(targets, options) { 68015 let windowObj = $431fbd86ca7dc216$export$f21a1ffae260145a(targets?.[0]), opts = options instanceof windowObj.Element ? { 68016 root: options 68017 } : options; 68018 var _opts_root; 68019 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) => { 68020 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)); 68021 }, walk = (root3) => { 68022 for (let element of root3.querySelectorAll("[data-live-announcer], [data-react-aria-top-layer]")) visibleNodes.add(element); 68023 let acceptNode = (node2) => { 68024 if (hiddenNodes.has(node2) || visibleNodes.has(node2) || node2.parentElement && hiddenNodes.has(node2.parentElement) && node2.parentElement.getAttribute("role") !== "row") return NodeFilter.FILTER_REJECT; 68025 for (let target of visibleNodes) 68026 if (node2.contains(target)) return NodeFilter.FILTER_SKIP; 68027 return NodeFilter.FILTER_ACCEPT; 68028 }, walker = document.createTreeWalker(root3, NodeFilter.SHOW_ELEMENT, { 68029 acceptNode 68030 }), acceptRoot = acceptNode(root3); 68031 if (acceptRoot === NodeFilter.FILTER_ACCEPT && hide2(root3), acceptRoot !== NodeFilter.FILTER_REJECT) { 68032 let node2 = walker.nextNode(); 68033 for (; node2 != null; ) 68034 hide2(node2), node2 = walker.nextNode(); 68035 } 68036 }, hide2 = (node2) => { 68037 var _refCountMap_get; 68038 let refCount = (_refCountMap_get = $5e3802645cc19319$var$refCountMap.get(node2)) !== null && _refCountMap_get !== void 0 ? _refCountMap_get : 0; 68039 getHidden(node2) && refCount === 0 || (refCount === 0 && setHidden(node2, !0), hiddenNodes.add(node2), $5e3802645cc19319$var$refCountMap.set(node2, refCount + 1)); 68040 }; 68041 $5e3802645cc19319$var$observerStack.length && $5e3802645cc19319$var$observerStack[$5e3802645cc19319$var$observerStack.length - 1].disconnect(), walk(root2); 68042 let observer = new MutationObserver((changes) => { 68043 for (let change of changes) 68044 if (change.type === "childList" && ![ 68045 ...visibleNodes, 68046 ...hiddenNodes 68047 ].some((node2) => node2.contains(change.target))) 68048 for (let node2 of change.addedNodes) 68049 (node2 instanceof HTMLElement || node2 instanceof SVGElement) && (node2.dataset.liveAnnouncer === "true" || node2.dataset.reactAriaTopLayer === "true") ? visibleNodes.add(node2) : node2 instanceof Element && walk(node2); 68050 }); 68051 observer.observe(root2, { 68052 childList: !0, 68053 subtree: !0 68054 }); 68055 let observerWrapper = { 68056 visibleNodes, 68057 hiddenNodes, 68058 observe() { 68059 observer.observe(root2, { 68060 childList: !0, 68061 subtree: !0 68062 }); 68063 }, 68064 disconnect() { 68065 observer.disconnect(); 68066 } 68067 }; 68068 return $5e3802645cc19319$var$observerStack.push(observerWrapper), () => { 68069 observer.disconnect(); 68070 for (let node2 of hiddenNodes) { 68071 let count = $5e3802645cc19319$var$refCountMap.get(node2); 68072 count != null && (count === 1 ? (setHidden(node2, !1), $5e3802645cc19319$var$refCountMap.delete(node2)) : $5e3802645cc19319$var$refCountMap.set(node2, count - 1)); 68073 } 68074 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); 68075 }; 68076} 68077function $5e3802645cc19319$export$1020fa7f77e17884(element) { 68078 let observer = $5e3802645cc19319$var$observerStack[$5e3802645cc19319$var$observerStack.length - 1]; 68079 if (observer && !observer.visibleNodes.has(element)) 68080 return observer.visibleNodes.add(element), () => { 68081 observer.visibleNodes.delete(element); 68082 }; 68083} 68084
vendor: 1,884 bytes, lines 68085-68126
68085// ../../node_modules/@react-aria/overlays/dist/usePopover.mjs 68086var import_react83 = __toESM(require_react(), 1); 68087function $f2f8a6077418541e$export$542a6fd13ac93354(props, state3) { 68088 let { triggerRef, popoverRef, groupRef, isNonModal, isKeyboardDismissDisabled, shouldCloseOnInteractOutside, ...otherProps } = props, isSubmenu = otherProps.trigger === "SubmenuTrigger", { overlayProps, underlayProps } = $a11501f3d1d39e6c$export$ea8f71083e90600f({ 68089 isOpen: state3.isOpen, 68090 onClose: state3.close, 68091 shouldCloseOnBlur: !0, 68092 isDismissable: !isNonModal || isSubmenu, 68093 isKeyboardDismissDisabled, 68094 shouldCloseOnInteractOutside 68095 }, groupRef ?? popoverRef), { overlayProps: positionProps, arrowProps, placement, triggerAnchorPoint: origin } = $2a41e45df1593e64$export$d39e1813b3bdd0e1({ 68096 ...otherProps, 68097 targetRef: triggerRef, 68098 overlayRef: popoverRef, 68099 isOpen: state3.isOpen, 68100 onClose: isNonModal && !isSubmenu ? state3.close : null 68101 }); 68102 return $49c51c25361d4cd2$export$ee0f7cc6afcd1c18({ 68103 isDisabled: isNonModal || !state3.isOpen 68104 }), (0, import_react83.useEffect)(() => { 68105 if (state3.isOpen && popoverRef.current) { 68106 var _groupRef_current, _groupRef_current1; 68107 return isNonModal ? $5e3802645cc19319$export$1020fa7f77e17884((_groupRef_current = groupRef?.current) !== null && _groupRef_current !== void 0 ? _groupRef_current : popoverRef.current) : $5e3802645cc19319$export$1c3ebcada18427bf([ 68108 (_groupRef_current1 = groupRef?.current) !== null && _groupRef_current1 !== void 0 ? _groupRef_current1 : popoverRef.current 68109 ], { 68110 shouldUseInert: !0 68111 }); 68112 } 68113 }, [ 68114 isNonModal, 68115 state3.isOpen, 68116 popoverRef, 68117 groupRef 68118 ]), { 68119 popoverProps: $3ef42575df84b30b$export$9d1611c77c2fe928(overlayProps, positionProps), 68120 arrowProps, 68121 underlayProps, 68122 placement, 68123 triggerAnchorPoint: origin 68124 }; 68125} 68126
vendor: 1,651 bytes, lines 68127-68155
68127// ../../node_modules/@react-aria/overlays/dist/Overlay.mjs 68128var import_react84 = __toESM(require_react(), 1), import_react_dom4 = __toESM(require_react_dom(), 1); 68129var $337b884510726a0d$export$a2200b96afd16271 = import_react84.default.createContext(null); 68130function $337b884510726a0d$export$c6fdb837b070b4ff(props) { 68131 let isSSR = $b5e257d569688ac6$export$535bd6ca7f90a273(), { portalContainer = isSSR ? null : document.body, isExiting } = props, [contain, setContain] = (0, import_react84.useState)(!1), contextValue = (0, import_react84.useMemo)(() => ({ 68132 contain, 68133 setContain 68134 }), [ 68135 contain, 68136 setContain 68137 ]), { getContainer } = $96b38030c423d352$export$9fc1347d4195ccb3(); 68138 if (!props.portalContainer && getContainer && (portalContainer = getContainer()), !portalContainer) return null; 68139 let contents = props.children; 68140 return props.disableFocusManagement || (contents = import_react84.default.createElement($9bf71ea28793e738$export$20e40289641fbbb6, { 68141 restoreFocus: !0, 68142 contain: (props.shouldContainFocus || contain) && !isExiting 68143 }, contents)), contents = import_react84.default.createElement($337b884510726a0d$export$a2200b96afd16271.Provider, { 68144 value: contextValue 68145 }, import_react84.default.createElement($f1ab8c75478c6f73$export$cf75428e0b9ed1ea, null, contents)), import_react_dom4.default.createPortal(contents, portalContainer); 68146} 68147function $337b884510726a0d$export$14c98a7594375490() { 68148 let ctx = (0, import_react84.useContext)($337b884510726a0d$export$a2200b96afd16271), setContain = ctx?.setContain; 68149 $f0a04ccd8dbdd83b$export$e5c5a5f917a5871c(() => { 68150 setContain?.(!0); 68151 }, [ 68152 setContain 68153 ]); 68154} 68155
vendor: 816 bytes, lines 68156-68180
68156// ../../node_modules/@react-aria/overlays/dist/useModalOverlay.mjs 68157var import_react85 = __toESM(require_react(), 1); 68158function $8ac8429251c45e4b$export$dbc0f175b25fb0fb(props, state3, ref) { 68159 let { overlayProps, underlayProps } = $a11501f3d1d39e6c$export$ea8f71083e90600f({ 68160 ...props, 68161 isOpen: state3.isOpen, 68162 onClose: state3.close 68163 }, ref); 68164 return $49c51c25361d4cd2$export$ee0f7cc6afcd1c18({ 68165 isDisabled: !state3.isOpen 68166 }), $337b884510726a0d$export$14c98a7594375490(), (0, import_react85.useEffect)(() => { 68167 if (state3.isOpen && ref.current) return $5e3802645cc19319$export$1c3ebcada18427bf([ 68168 ref.current 68169 ], { 68170 shouldUseInert: !0 68171 }); 68172 }, [ 68173 state3.isOpen, 68174 ref 68175 ]), { 68176 modalProps: $3ef42575df84b30b$export$9d1611c77c2fe928(overlayProps), 68177 underlayProps 68178 }; 68179} 68180
vendor: 128 bytes, lines 68181-68183
68181// ../../node_modules/@react-stately/tooltip/dist/useTooltipTriggerState.mjs 68182var import_react87 = __toESM(require_react(), 1); 68183
vendor: 679 bytes, lines 68184-68209
68184// ../../node_modules/@react-stately/overlays/dist/useOverlayTriggerState.mjs 68185var import_react86 = __toESM(require_react(), 1); 68186function $fc909762b330b746$export$61c6a8c84e605fb6(props) { 68187 let [isOpen, setOpen] = $458b0a5536c1a7cf$export$40bfa8c7b0832715(props.isOpen, props.defaultOpen || !1, props.onOpenChange), open = (0, import_react86.useCallback)(() => { 68188 setOpen(!0); 68189 }, [ 68190 setOpen 68191 ]), close = (0, import_react86.useCallback)(() => { 68192 setOpen(!1); 68193 }, [ 68194 setOpen 68195 ]), toggle = (0, import_react86.useCallback)(() => { 68196 setOpen(!isOpen); 68197 }, [ 68198 setOpen, 68199 isOpen 68200 ]); 68201 return { 68202 isOpen, 68203 setOpen, 68204 open, 68205 close, 68206 toggle 68207 }; 68208} 68209
vendor: 3,464 bytes, lines 68210-68246
68210// ../../node_modules/@react-stately/tooltip/dist/useTooltipTriggerState.mjs 68211var $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; 68212function $8796f90736e175cb$export$4d40659c25ecb50b(props = {}) { 68213 let { delay = $8796f90736e175cb$var$TOOLTIP_DELAY, closeDelay = $8796f90736e175cb$var$TOOLTIP_COOLDOWN } = props, { isOpen, open, close } = $fc909762b330b746$export$61c6a8c84e605fb6(props), id = (0, import_react87.useMemo)(() => `${++$8796f90736e175cb$var$tooltipId}`, []), closeTimeout = (0, import_react87.useRef)(null), closeCallback = (0, import_react87.useRef)(close), ensureTooltipEntry = () => { 68214 $8796f90736e175cb$var$tooltips[id] = hideTooltip; 68215 }, closeOpenTooltips = () => { 68216 for (let hideTooltipId in $8796f90736e175cb$var$tooltips) hideTooltipId !== id && ($8796f90736e175cb$var$tooltips[hideTooltipId](!0), delete $8796f90736e175cb$var$tooltips[hideTooltipId]); 68217 }, showTooltip = () => { 68218 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); 68219 }, hideTooltip = (immediate) => { 68220 immediate || closeDelay <= 0 ? (closeTimeout.current && clearTimeout(closeTimeout.current), closeTimeout.current = null, closeCallback.current()) : closeTimeout.current || (closeTimeout.current = setTimeout(() => { 68221 closeTimeout.current = null, closeCallback.current(); 68222 }, 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(() => { 68223 delete $8796f90736e175cb$var$tooltips[id], $8796f90736e175cb$var$globalCooldownTimeout = null, $8796f90736e175cb$var$globalWarmedUp = !1; 68224 }, Math.max($8796f90736e175cb$var$TOOLTIP_COOLDOWN, closeDelay))); 68225 }, warmupTooltip = () => { 68226 closeOpenTooltips(), ensureTooltipEntry(), !isOpen && !$8796f90736e175cb$var$globalWarmUpTimeout && !$8796f90736e175cb$var$globalWarmedUp ? $8796f90736e175cb$var$globalWarmUpTimeout = setTimeout(() => { 68227 $8796f90736e175cb$var$globalWarmUpTimeout = null, $8796f90736e175cb$var$globalWarmedUp = !0, showTooltip(); 68228 }, delay) : isOpen || showTooltip(); 68229 }; 68230 return (0, import_react87.useEffect)(() => { 68231 closeCallback.current = close; 68232 }, [ 68233 close 68234 ]), (0, import_react87.useEffect)(() => () => { 68235 closeTimeout.current && clearTimeout(closeTimeout.current), $8796f90736e175cb$var$tooltips[id] && delete $8796f90736e175cb$var$tooltips[id]; 68236 }, [ 68237 id 68238 ]), { 68239 isOpen, 68240 open: (immediate) => { 68241 !immediate && delay > 0 && !closeTimeout.current ? warmupTooltip() : showTooltip(); 68242 }, 68243 close: hideTooltip 68244 }; 68245} 68246
vendor: 3,905 bytes, lines 68247-68327
68247// ../../node_modules/react-aria-components/dist/Tooltip.mjs 68248var import_react88 = __toESM(require_react(), 1), $4e3b923658d69c60$export$7a7623236eec67fa = (0, import_react88.createContext)(null), $4e3b923658d69c60$export$39ae08fa83328b12 = (0, import_react88.createContext)(null); 68249function $4e3b923658d69c60$export$8c610744efcf8a1d(props) { 68250 let state3 = $8796f90736e175cb$export$4d40659c25ecb50b(props), ref = (0, import_react88.useRef)(null), { triggerProps, tooltipProps } = $4e1b34546679e357$export$a6da6c504e4bba8b(props, state3, ref); 68251 return import_react88.default.createElement($64fa3d84918910a7$export$2881499e37b75b9a, { 68252 values: [ 68253 [ 68254 $4e3b923658d69c60$export$7a7623236eec67fa, 68255 state3 68256 ], 68257 [ 68258 $4e3b923658d69c60$export$39ae08fa83328b12, 68259 { 68260 ...tooltipProps, 68261 triggerRef: ref 68262 } 68263 ] 68264 ] 68265 }, import_react88.default.createElement($f645667febf57a63$export$13f3202a3e5ddd5, { 68266 ...triggerProps, 68267 ref 68268 }, props.children)); 68269} 68270var $4e3b923658d69c60$export$28c660c63b792dea = (0, import_react88.forwardRef)(function({ UNSTABLE_portalContainer, ...props }, ref) { 68271 [props, ref] = $64fa3d84918910a7$export$29f1550f4b0d4415(props, ref, $4e3b923658d69c60$export$39ae08fa83328b12); 68272 let contextState = (0, import_react88.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; 68273 return !state3.isOpen && !isExiting ? null : import_react88.default.createElement($f57aed4a881a3485$export$b47c3594eab58386, { 68274 portalContainer: UNSTABLE_portalContainer 68275 }, import_react88.default.createElement($4e3b923658d69c60$var$TooltipInner, { 68276 ...props, 68277 tooltipRef: ref, 68278 isExiting 68279 })); 68280}); 68281function $4e3b923658d69c60$var$TooltipInner(props) { 68282 let state3 = (0, import_react88.useContext)($4e3b923658d69c60$export$7a7623236eec67fa), arrowRef = (0, import_react88.useRef)(null), { overlayProps, arrowProps, placement, triggerAnchorPoint } = $2a41e45df1593e64$export$d39e1813b3bdd0e1({ 68283 placement: props.placement || "top", 68284 targetRef: props.triggerRef, 68285 overlayRef: props.tooltipRef, 68286 arrowRef, 68287 offset: props.offset, 68288 crossOffset: props.crossOffset, 68289 isOpen: state3.isOpen, 68290 arrowBoundaryOffset: props.arrowBoundaryOffset, 68291 shouldFlip: props.shouldFlip, 68292 containerPadding: props.containerPadding, 68293 onClose: () => state3.close(!0) 68294 }), isEntering = $d3f049242431219c$export$6d3443f2c48bfc20(props.tooltipRef, !!placement) || props.isEntering || !1, renderProps = $64fa3d84918910a7$export$4d86445c2cf5e3({ 68295 ...props, 68296 defaultClassName: "react-aria-Tooltip", 68297 values: { 68298 placement, 68299 isEntering, 68300 isExiting: props.isExiting, 68301 state: state3 68302 } 68303 }); 68304 props = $3ef42575df84b30b$export$9d1611c77c2fe928(props, overlayProps); 68305 let { tooltipProps } = $326e436e94273fe1$export$1c4b08e0eca38426(props, state3), DOMProps = $65484d02dcb7eb3e$export$457c3d6518dd4c6f(props, { 68306 global: !0 68307 }); 68308 return import_react88.default.createElement("div", { 68309 ...$3ef42575df84b30b$export$9d1611c77c2fe928(DOMProps, renderProps, tooltipProps), 68310 ref: props.tooltipRef, 68311 style: { 68312 ...overlayProps.style, 68313 "--trigger-anchor-point": triggerAnchorPoint ? `${triggerAnchorPoint.x}px ${triggerAnchorPoint.y}px` : void 0, 68314 ...renderProps.style 68315 }, 68316 "data-placement": placement ?? void 0, 68317 "data-entering": isEntering || void 0, 68318 "data-exiting": props.isExiting || void 0 68319 }, import_react88.default.createElement($44f671af83e7d9e0$export$2de4954e8ae13b9f.Provider, { 68320 value: { 68321 ...arrowProps, 68322 placement, 68323 ref: arrowRef 68324 } 68325 }, renderProps.children)); 68326} 68327
vendor: 3,303 bytes, lines 68328-68420
68328// src/components/components/shared/overlayHelpers.tsx 68329var import_react89 = __toESM(require_react(), 1); 68330var import_memoizerific10 = __toESM(require_memoizerific(), 1); 68331init_theming(); 68332var 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({ 68333 width: 500, 68334 height: 500, 68335 paddingTop: 100, 68336 overflowY: "scroll", 68337 background: "#eee", 68338 position: "relative" 68339}), Trigger = (0, import_react89.forwardRef)((props, ref) => import_react89.default.createElement( 68340 "button", 68341 { 68342 ...props, 68343 ref, 68344 style: { 68345 width: 120, 68346 height: 50, 68347 margin: 10 68348 } 68349 } 68350)); 68351Trigger.displayName = "Trigger"; 68352 68353// src/components/components/tooltip/TooltipProvider.tsx 68354var TooltipProvider = ({ 68355 triggerOnFocusOnly = !1, 68356 placement: placementProp = "top", 68357 offset: offset3 = 8, 68358 tooltip, 68359 children, 68360 defaultVisible, 68361 startOpen, 68362 delayShow = 400, 68363 delayHide = 200, 68364 visible, 68365 onVisibleChange, 68366 ...props 68367}) => { 68368 let placement = convertToReactAriaPlacement(placementProp), child = import_react90.default.Children.only(children); 68369 startOpen !== void 0 && deprecate("The `startOpen` prop is deprecated. Please use `defaultVisible` instead."); 68370 let [isOpen, setIsOpen] = (0, import_react90.useState)(defaultVisible ?? startOpen ?? !1), onOpenChange = (0, import_react90.useCallback)( 68371 (isOpen2) => { 68372 setIsOpen(isOpen2), onVisibleChange?.(isOpen2); 68373 }, 68374 [onVisibleChange] 68375 ); 68376 return import_react90.default.createElement( 68377 $4e3b923658d69c60$export$8c610744efcf8a1d, 68378 { 68379 delay: delayShow, 68380 closeDelay: delayHide, 68381 isOpen: visible ?? isOpen, 68382 onOpenChange, 68383 trigger: triggerOnFocusOnly ? "focus" : void 0, 68384 ...props 68385 }, 68386 import_react90.default.createElement($f645667febf57a63$export$35a3bebf7ef2d934, null, import_react90.default.cloneElement(child, { "aria-describedby": null })), 68387 import_react90.default.createElement( 68388 $4e3b923658d69c60$export$28c660c63b792dea, 68389 { 68390 "data-testid": "tooltip", 68391 placement, 68392 offset: offset3, 68393 onOpenChange, 68394 style: { outline: "none" }, 68395 ...props 68396 }, 68397 tooltip 68398 ) 68399 ); 68400}; 68401 68402// src/components/components/Button/helpers/InteractiveTooltipWrapper.tsx 68403var InteractiveTooltipWrapper = ({ children, disableAllTooltips, shortcut, tooltip }) => { 68404 let tooltipLabel = (0, import_react91.useMemo)(() => { 68405 let hasShortcuts = document?.body?.getAttribute("data-shortcuts-enabled") !== "false"; 68406 if (!(!tooltip && (!shortcut || !hasShortcuts))) 68407 return [tooltip, shortcut && hasShortcuts && `[${shortcutToHumanString(shortcut)}]`].filter(Boolean).join(" "); 68408 }, [shortcut, tooltip]); 68409 return tooltipLabel ? import_react91.default.createElement( 68410 TooltipProvider, 68411 { 68412 placement: "top", 68413 tooltip: import_react91.default.createElement(TooltipNote, { note: tooltipLabel }), 68414 visible: disableAllTooltips ? !1 : void 0 68415 }, 68416 children 68417 ) : import_react91.default.createElement(import_react91.default.Fragment, null, children); 68418}; 68419InteractiveTooltipWrapper.displayName = "InteractiveTooltipWrapper"; 68420
68421// src/components/components/Button/helpers/useAriaDescription.tsx 68422var import_react92 = __toESM(require_react(), 1); 68423function useAriaDescription(description = "") { 68424 let describedbyId = description.toLowerCase().trim().replace(/\s+/g, "-"); 68425 return { 68426 ariaDescriptionAttrs: { 68427 "aria-describedby": description ? describedbyId : void 0 68428 }, 68429 AriaDescription: () => description ? import_react92.default.createElement("span", { id: describedbyId, hidden: !0 }, description) : null 68430 }; 68431} 68432
68433// src/components/components/Button/Button.tsx 68434var Button = (0, import_react93.forwardRef)( 68435 ({ 68436 as = "button", 68437 asChild = !1, 68438 animation: animation2 = "none", 68439 size = "small", 68440 variant = "outline", 68441 padding = "medium", 68442 disabled = !1, 68443 readOnly = !1, 68444 active, 68445 onClick, 68446 ariaLabel, 68447 ariaDescription = void 0, 68448 tooltip = void 0, 68449 shortcut = void 0, 68450 disableAllTooltips = !1, 68451 ...props 68452 }, ref) => { 68453 let Comp2 = asChild ? Slot2 : as, deprecated; 68454 !readOnly && (ariaLabel === void 0 || ariaLabel === "") && (deprecated = "ariaLabel", deprecate( 68455 `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}.` 68456 )), active !== void 0 && (deprecated = "active", deprecate( 68457 "The `active` prop on `Button` is deprecated and will be removed in Storybook 11. Use specialized components like `ToggleButton` or `Select` instead." 68458 )); 68459 let { ariaDescriptionAttrs, AriaDescription } = useAriaDescription(ariaDescription), shortcutAttribute = (0, import_react93.useMemo)(() => shortcut ? shortcutToAriaKeyshortcuts(shortcut) : void 0, [shortcut]), [isAnimating, setIsAnimating] = (0, import_react93.useState)(!1), handleClick = (event) => { 68460 onClick && onClick(event), animation2 !== "none" && setIsAnimating(!0); 68461 }; 68462 return (0, import_react93.useEffect)(() => { 68463 let timer = setTimeout(() => { 68464 isAnimating && setIsAnimating(!1); 68465 }, 1e3); 68466 return () => clearTimeout(timer); 68467 }, [isAnimating]), import_react93.default.createElement(import_react93.default.Fragment, null, import_react93.default.createElement( 68468 InteractiveTooltipWrapper, 68469 { 68470 disableAllTooltips, 68471 shortcut, 68472 tooltip: tooltip || (ariaLabel !== !1 ? ariaLabel : void 0) 68473 }, 68474 import_react93.default.createElement( 68475 StyledButton, 68476 { 68477 "data-deprecated": deprecated, 68478 as: Comp2, 68479 ref, 68480 variant, 68481 size, 68482 padding, 68483 $disabled: disabled || readOnly, 68484 "aria-disabled": disabled || readOnly ? "true" : void 0, 68485 readOnly, 68486 active, 68487 animating: isAnimating, 68488 animation: animation2, 68489 onClick: disabled || readOnly ? void 0 : handleClick, 68490 "aria-label": !readOnly && ariaLabel !== !1 ? ariaLabel : void 0, 68491 "aria-keyshortcuts": readOnly ? void 0 : shortcutAttribute, 68492 ...readOnly ? {} : ariaDescriptionAttrs, 68493 ...props 68494 } 68495 ) 68496 ), import_react93.default.createElement(AriaDescription, null)); 68497 } 68498); 68499Button.displayName = "Button"; 68500var StyledButton = styled("button", { 68501 shouldForwardProp: (prop) => isPropValid(prop) 68502})( 68503 ({ 68504 theme: theme3, 68505 variant, 68506 size, 68507 $disabled, 68508 readOnly, 68509 active, 68510 animating, 68511 animation: animation2 = "none", 68512 padding 68513 }) => ({ 68514 border: 0, 68515 cursor: readOnly ? "inherit" : $disabled ? "not-allowed" : "pointer", 68516 display: "inline-flex", 68517 gap: "6px", 68518 alignItems: "center", 68519 justifyContent: "center", 68520 overflow: "hidden", 68521 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, 68522 height: size === "small" ? "28px" : "32px", 68523 position: "relative", 68524 textAlign: "center", 68525 textDecoration: "none", 68526 transitionProperty: "background, box-shadow", 68527 transitionDuration: "150ms", 68528 transitionTimingFunction: "ease-out", 68529 verticalAlign: "top", 68530 whiteSpace: "nowrap", 68531 userSelect: "none", 68532 opacity: $disabled && !readOnly ? 0.5 : 1, 68533 margin: 0, 68534 fontSize: `${theme3.typography.size.s1}px`, 68535 fontWeight: theme3.typography.weight.bold, 68536 lineHeight: "1", 68537 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", 68538 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, 68539 boxShadow: variant === "outline" ? `${theme3.button.border} 0 0 0 1px inset` : "none", 68540 borderRadius: theme3.input.borderRadius, 68541 // Making sure that the button never shrinks below its minimum size 68542 flexShrink: 0, 68543 ...!readOnly && { 68544 "&:hover": { 68545 color: variant === "ghost" ? theme3.color.secondary : void 0, 68546 background: (() => { 68547 let bgColor = theme3.color.secondary; 68548 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); 68549 })() 68550 }, 68551 "&:active": { 68552 color: variant === "ghost" ? theme3.color.secondary : void 0, 68553 background: (() => { 68554 let bgColor = theme3.color.secondary; 68555 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); 68556 })() 68557 }, 68558 "&:focus-visible": { 68559 outline: `2px solid ${rgba(theme3.color.secondary, 1)}`, 68560 outlineOffset: 2, 68561 // Should ensure focus outline gets drawn above next sibling 68562 zIndex: "1" 68563 }, 68564 ".sb-bar &:focus-visible, .sb-list &:focus-visible": { 68565 outlineOffset: 0 68566 } 68567 }, 68568 "> svg": { 68569 flex: "0 0 auto",
68570 animation: animating && animation2 !== "none" ? `${theme3.animation[animation2]} 1000ms ease-out` : "" 68571 } 68572 }) 68573), IconButton = (0, import_react93.forwardRef)((props, ref) => (deprecate( 68574 "`IconButton` is deprecated and will be removed in Storybook 11, use `Button` instead." 68575), import_react93.default.createElement(Button, { ref, ...props, "data-deprecated": "IconButton" }))); 68576IconButton.displayName = "IconButton"; 68577
vendor: 9,590 bytes, lines 68578-68882
68578// src/components/components/ToggleButton/ToggleButton.tsx 68579var import_react94 = __toESM(require_react(), 1); 68580init_polished_esm(); 68581init_theming(); 68582var ToggleButton = (0, import_react94.forwardRef)( 68583 ({ pressed, ...props }, ref) => import_react94.default.createElement(StyledToggle, { role: "switch", "aria-checked": pressed, ref, pressed, ...props }) 68584); 68585ToggleButton.displayName = "ToggleButton"; 68586var StyledToggle = styled(Button)( 68587 ({ theme: theme3, variant = "outline", pressed }) => ({ 68588 ...pressed ? { 68589 ...variant === "solid" ? { 68590 background: theme3.base === "lighten" ? curriedDarken$1(0.1, theme3.color.secondary) : curriedDarken$1(0.2, theme3.color.secondary) 68591 } : {}, 68592 ...variant === "outline" ? { 68593 background: curriedTransparentize$1(0.94, theme3.barSelectedColor), 68594 boxShadow: `${theme3.barSelectedColor} 0 0 0 1px inset`, 68595 color: theme3.barSelectedColor 68596 } : {}, 68597 ...variant === "ghost" ? { 68598 background: curriedTransparentize$1(0.93, theme3.barSelectedColor), 68599 color: theme3.base === "light" ? curriedDarken$1(0.1, theme3.color.secondary) : theme3.color.secondary 68600 } : {} 68601 } : {} 68602 }) 68603); 68604 68605// src/components/components/ActionList/ActionList.tsx 68606var ActionListItem = styled.li( 68607 ({ active, theme: theme3 }) => ({ 68608 display: "flex", 68609 alignItems: "center", 68610 justifyContent: "space-between", 68611 flex: "0 0 auto", 68612 overflow: "hidden", 68613 minHeight: 32, 68614 gap: 4, 68615 fontSize: theme3.typography.size.s1, 68616 fontWeight: active ? theme3.typography.weight.bold : theme3.typography.weight.regular, 68617 color: active ? "var(--listbox-item-active-color)" : theme3.color.defaultText, 68618 "--listbox-item-active-color": theme3.base === "light" ? curriedDarken$1(0.1, theme3.color.secondary) : theme3.color.secondary, 68619 "--listbox-item-muted-color": active ? "var(--listbox-item-active-color)" : theme3.color.mediumdark, 68620 '&[aria-disabled="true"]': { 68621 opacity: 0.5, 68622 cursor: "not-allowed" 68623 }, 68624 '&[aria-selected="true"]': { 68625 color: "var(--listbox-item-active-color)", 68626 fontWeight: theme3.typography.weight.bold, 68627 "--listbox-item-muted-color": "var(--listbox-item-active-color)" 68628 }, 68629 "&:not(:hover, :has(:focus-visible)) svg + input": { 68630 position: "absolute", 68631 opacity: 0 68632 }, 68633 '&[role="option"]': { 68634 cursor: "pointer", 68635 borderRadius: theme3.input.borderRadius, 68636 outlineOffset: -2, 68637 padding: "0 9px", 68638 gap: 8, 68639 "&:hover": { 68640 background: curriedTransparentize$1(0.86, theme3.color.secondary) 68641 }, 68642 "&:focus-visible": { 68643 outline: `2px solid ${theme3.color.secondary}` 68644 } 68645 }, 68646 "@supports (interpolate-size: allow-keywords)": { 68647 interpolateSize: "allow-keywords", 68648 transitionBehavior: "allow-discrete", 68649 transitionDuration: "var(--transition-duration, 0.2s)", 68650 transitionProperty: "opacity, block-size, content-visibility" 68651 }, 68652 "@media (prefers-reduced-motion: reduce)": { 68653 transition: "none" 68654 } 68655 }), 68656 ({ transitionStatus }) => { 68657 switch (transitionStatus) { 68658 case "preEnter": 68659 case "exiting": 68660 case "exited": 68661 return { 68662 opacity: 0, 68663 blockSize: 0, 68664 contentVisibility: "hidden" 68665 }; 68666 default: 68667 return { 68668 opacity: 1, 68669 blockSize: "auto", 68670 contentVisibility: "visible" 68671 }; 68672 } 68673 } 68674), ActionListHoverItem = styled(ActionListItem)(({ targetId }) => ({ 68675 gap: 0, 68676 [`& [data-target-id="${targetId}"]`]: { 68677 inlineSize: "auto", 68678 marginLeft: 4, 68679 opacity: 1, 68680 "@supports (interpolate-size: allow-keywords)": { 68681 interpolateSize: "allow-keywords", 68682 transitionProperty: "inline-size, margin-left, opacity, padding-inline", 68683 transitionDuration: "var(--transition-duration, 0.2s)" 68684 } 68685 }, 68686 [`&:not(:hover, :has(:focus-visible)) [data-target-id="${targetId}"]`]: { 68687 inlineSize: 0, 68688 marginLeft: 0, 68689 opacity: 0, 68690 paddingInline: 0 68691 } 68692})), StyledButton2 = styled(Button)(({ size }) => ({ 68693 gap: size === "small" ? 6 : 8, 68694 "&:focus-visible": { 68695 // Prevent focus outline from being cut off by overflow: hidden 68696 outlineOffset: -2 68697 } 68698})), StyledToggleButton = styled(ToggleButton)({ 68699 "&:focus-visible": { 68700 // Prevent focus outline from being cut off by overflow: hidden 68701 outlineOffset: -2 68702 } 68703}), ActionListButton = (0, import_react95.forwardRef)( 68704 function({ padding = "small", size = "medium", variant = "ghost", ...props }, ref) { 68705 return import_react95.default.createElement(StyledButton2, { ...props, variant, padding, size, ref }); 68706 } 68707), ActionListToggle = (0, import_react95.forwardRef)( 68708 function({ padding = "small", size = "medium", variant = "ghost", ...props }, ref) { 68709 return import_react95.default.createElement(StyledToggleButton, { ...props, variant, padding, size, ref }); 68710 } 68711), ActionListAction = styled(ActionListButton)(({ theme: theme3 }) => ({ 68712 height: "auto", 68713 minHeight: 32, 68714 flex: "0 1 100%", 68715 textAlign: "start", 68716 justifyContent: "space-between", 68717 fontWeight: "inherit", 68718 color: "inherit", 68719 "&:hover": { 68720 color: "inherit" 68721 }, 68722 "& input:enabled:focus-visible": { 68723 outline: "none" 68724 }, 68725 "&:has(input:focus-visible)": { 68726 outline: `2px solid ${theme3.color.secondary}`, 68727 outlineOffset: -2 68728 } 68729})), ActionListLink = (props) => import_react95.default.createElement(ActionListAction, { as: "a", ...props }), ActionListText = styled.div(({ theme: theme3 }) => ({ 68730 display: "flex", 68731 flexDirection: "column", 68732 justifyContent: "center", 68733 flexGrow: 1, 68734 minWidth: 0, 68735 padding: "8px 0", 68736 lineHeight: "16px", 68737 "& > *": { 68738 margin: 0, 68739 whiteSpace: "normal" 68740 }, 68741 "& > span": { 68742 overflow: "hidden", 68743 textOverflow: "ellipsis", 68744 whiteSpace: "nowrap" 68745 }, 68746 "& small": { 68747 fontSize: "inherit", 68748 color: theme3.textMutedColor 68749 }, 68750 "&:first-child": { 68751 paddingLeft: 8 68752 }, 68753 "&:last-child": { 68754 paddingRight: 8 68755 }, 68756 'button > &:first-child, [role="option"] > &:first-child': { 68757 paddingLeft: 0 68758 }, 68759 'button > &:last-child, [role="option"] > &:last-child': { 68760 paddingRight: 0 68761 } 68762})), ActionListIcon = styled.div({ 68763 display: "flex", 68764 alignItems: "center", 68765 justifyContent: "center", 68766 flex: "0 0 14px", 68767 width: 14, 68768 height: 14, 68769 color: "var(--listbox-item-muted-color)" 68770}), ActionList = Object.assign( 68771 styled.ul(({ theme: theme3, onClick }) => ({ 68772 listStyle: "none", 68773 margin: 0, 68774 padding: 4, 68775 cursor: onClick ? "pointer" : "default", 68776 "& + *": { 68777 borderTop: `1px solid ${theme3.appBorderColor}` 68778 } 68779 })), 68780 { 68781 Item: ActionListItem, 68782 HoverItem: ActionListHoverItem, 68783 Button: ActionListButton, 68784 Toggle: ActionListToggle, 68785 Action: ActionListAction, 68786 Link: ActionListLink, 68787 Text: ActionListText, 68788 Icon: ActionListIcon 68789 } 68790); 68791 68792// src/components/components/Collapsible/Collapsible.tsx 68793var import_react96 = __toESM(require_react(), 1); 68794init_theming(); 68795var CollapsibleContent = styled.div(({ collapsed = !1 }) => ({ 68796 blockSize: collapsed ? 0 : "auto", 68797 contentVisibility: collapsed ? "hidden" : "visible", 68798 transform: collapsed ? "translateY(-10px)" : "translateY(0)", 68799 opacity: collapsed ? 0 : 1, 68800 overflow: "hidden", 68801 "@supports (interpolate-size: allow-keywords)": { 68802 interpolateSize: "allow-keywords", 68803 transition: "all var(--transition-duration, 0.2s)", 68804 transitionBehavior: "allow-discrete" 68805 }, 68806 "@media (prefers-reduced-motion: reduce)": { 68807 transition: "none" 68808 } 68809})), Collapsible = Object.assign( 68810 function({ 68811 children, 68812 summary, 68813 collapsed, 68814 disabled, 68815 initialCollapsed, 68816 storageKey, 68817 state: providedState, 68818 ...props 68819 }) { 68820 let internalState = useCollapsible({ collapsed, disabled, initialCollapsed, storageKey }), state3 = providedState || internalState; 68821 return import_react96.default.createElement(import_react96.default.Fragment, null, typeof summary == "function" ? summary(state3) : summary, import_react96.default.createElement( 68822 CollapsibleContent, 68823 { 68824 ...props, 68825 id: state3.contentId, 68826 collapsed: state3.isCollapsed, 68827 "aria-hidden": state3.isCollapsed 68828 }, 68829 typeof children == "function" ? children(state3) : children 68830 )); 68831 }, 68832 { 68833 Content: CollapsibleContent 68834 } 68835), useSessionState = (key, initialValue2) => { 68836 let [value, setValue] = (0, import_react96.useState)(() => { 68837 try { 68838 return JSON.parse(sessionStorage.getItem(key)) ?? initialValue2; 68839 } catch { 68840 return initialValue2; 68841 } 68842 }); 68843 return (0, import_react96.useEffect)(() => { 68844 try { 68845 key && sessionStorage.setItem(key, JSON.stringify(value)); 68846 } catch { 68847 } 68848 }, [key, value]), [value, setValue]; 68849}, useCollapsible = ({ 68850 collapsed, 68851 disabled, 68852 initialCollapsed = collapsed, 68853 storageKey 68854}) => { 68855 let [isCollapsed, setCollapsed] = useSessionState( 68856 storageKey && `useCollapsible:${storageKey}`, 68857 !!initialCollapsed 68858 ); 68859 (0, import_react96.useEffect)(() => { 68860 collapsed !== void 0 && setCollapsed(collapsed); 68861 }, [collapsed, setCollapsed]); 68862 let toggleCollapsed = (0, import_react96.useCallback)( 68863 (event) => { 68864 event?.stopPropagation(), disabled || setCollapsed((value) => !value); 68865 }, 68866 [disabled, setCollapsed] 68867 ), contentId = $bdb11010cef70236$export$f680877a34711e37(); 68868 return { 68869 contentId, 68870 isCollapsed, 68871 isDisabled: !!disabled, 68872 setCollapsed, 68873 toggleCollapsed, 68874 toggleProps: { 68875 disabled, 68876 onClick: toggleCollapsed, 68877 "aria-controls": contentId, 68878 "aria-expanded": !isCollapsed 68879 } 68880 }; 68881}; 68882
68883// src/components/components/Card/Card.tsx 68884var import_react97 = __toESM(require_react(), 1); 68885init_theming(); 68886var fadeInOut = keyframes({ 68887 "0%": { opacity: 0 }, 68888 "5%": { opacity: 1 }, 68889 "25%": { opacity: 1 }, 68890 "30%": { opacity: 0 } 68891}), spin = keyframes({ 68892 "0%": { transform: "rotate(0deg)" }, 68893 "10%": { transform: "rotate(10deg)" }, 68894 "40%": { transform: "rotate(170deg)" }, 68895 "50%": { transform: "rotate(180deg)" }, 68896 "60%": { transform: "rotate(190deg)" }, 68897 "90%": { transform: "rotate(350deg)" }, 68898 "100%": { transform: "rotate(360deg)" } 68899}), slide = keyframes({ 68900 to: { 68901 backgroundPositionX: "36%" 68902 } 68903}), CardContent = styled.div(({ theme: theme3 }) => ({ 68904 borderRadius: theme3.appBorderRadius, 68905 backgroundColor: theme3.background.content, 68906 position: "relative" 68907})), CardOutline = styled.div(({ animation: animation2 = "none", color: color2, theme: theme3 }) => ({ 68908 position: "relative", 68909 width: "100%", 68910 padding: 1, 68911 overflow: "hidden", 68912 backgroundColor: theme3.background.content, 68913 borderRadius: theme3.appBorderRadius + 1, 68914 boxShadow: `inset 0 0 0 1px ${animation2 === "none" && color2 && theme3.color[color2] || theme3.appBorderColor}
68914, var(--card-box-shadow, transparent 0 0)`, 68915 transition: "box-shadow 1s", 68916 "@supports (interpolate-size: allow-keywords)": { 68917 interpolateSize: "allow-keywords", 68918 transition: "all var(--transition-duration, 0.2s), box-shadow 1s", 68919 transitionBehavior: "allow-discrete" 68920 }, 68921 "@media (prefers-reduced-motion: reduce)": { 68922 transition: "box-shadow 1s" 68923 }, 68924 "&:before": { 68925 content: '""', 68926 display: animation2 === "none" ? "none" : "block", 68927 position: "absolute", 68928 left: 0, 68929 top: 0, 68930 width: "100%", 68931 height: "100%", 68932 opacity: 1, 68933 ...animation2 === "rainbow" && { 68934 animation: `${slide} 10s infinite linear, ${fadeInOut} 60s infinite linear`, 68935 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))", 68936 backgroundSize: "1000%", 68937 backgroundPositionX: "100%" 68938 }, 68939 ...animation2 === "spin" && { 68940 left: "50%", 68941 top: "50%", 68942 marginLeft: "calc(max(100vw, 100vh) * -0.5)", 68943 marginTop: "calc(max(100vw, 100vh) * -0.5)", 68944 height: "max(100vw, 100vh)", 68945 width: "max(100vw, 100vh)", 68946 animation: `${spin} 3s linear infinite`, 68947 backgroundImage: color2 === "negative" ? ( 68948 // Hardcoded colors to prevent themes from messing with them (orange+gold, secondary+seafoam) 68949 "conic-gradient(transparent 90deg, #FC521F 150deg, #FFAE00 210deg, transparent 270deg)" 68950 ) : "conic-gradient(transparent 90deg, #029CFD 150deg, #37D5D3 210deg, transparent 270deg)" 68951 } 68952 } 68953})), Card = Object.assign( 68954 (0, import_react97.forwardRef)(function({ outlineAnimation = "none", outlineColor, outlineAttrs = {}, ...props }, ref) { 68955 return import_react97.default.createElement(CardOutline, { animation: outlineAnimation, color: outlineColor, ref, ...outlineAttrs }, import_react97.default.createElement(CardContent, { ...props })); 68956 }), 68957 { 68958 Content: CardContent, 68959 Outline: CardOutline 68960 } 68961); 68962
68963// src/components/components/Modal/Modal.tsx 68964var import_react105 = __toESM(require_react(), 1); 68965init_client_logger(); 68966
vendor: 134 bytes, lines 68967-68969
68967// ../../node_modules/react-transition-state/dist/esm/hooks/useTransitionState.mjs 68968var import_react98 = __toESM(require_react(), 1); 68969
vendor: 782 bytes, lines 68970-68989
68970// ../../node_modules/react-transition-state/dist/esm/hooks/utils.mjs 68971var STATUS = ["preEnter", "entering", "entered", "preExit", "exiting", "exited", "unmounted"], getState2 = (status) => ({ 68972 _s: status, 68973 status: STATUS[status], 68974 isEnter: status < 3, 68975 isMounted: status !== 6, 68976 isResolved: status === 2 || status > 4 68977}), startOrEnd = (unmounted) => unmounted ? 6 : 5, getEndStatus = (status, unmountOnExit) => { 68978 switch (status) { 68979 case 1: 68980 case 0: 68981 return 2; 68982 case 4: 68983 case 3: 68984 return startOrEnd(unmountOnExit); 68985 } 68986}, getTimeout = (timeout) => typeof timeout == "object" ? [timeout.enter, timeout.exit] : [timeout, timeout], nextTick = (transitState, status) => setTimeout(() => { 68987 isNaN(document.body.offsetTop) || transitState(status + 1); 68988}, 0); 68989
vendor: 1,977 bytes, lines 68990-69030
68990// ../../node_modules/react-transition-state/dist/esm/hooks/useTransitionState.mjs 68991var updateState = (status, setState2, latestState, timeoutId, onChange) => { 68992 clearTimeout(timeoutId.current); 68993 let state3 = getState2(status); 68994 setState2(state3), latestState.current = state3, onChange && onChange({ 68995 current: state3 68996 }); 68997}, useTransitionState = ({ 68998 enter = !0, 68999 exit = !0, 69000 preEnter, 69001 preExit, 69002 timeout, 69003 initialEntered, 69004 mountOnEnter, 69005 unmountOnExit, 69006 onStateChange: onChange 69007} = {}) => { 69008 let [state3, setState2] = (0, import_react98.useState)(() => getState2(initialEntered ? 2 : startOrEnd(mountOnEnter))), latestState = (0, import_react98.useRef)(state3), timeoutId = (0, import_react98.useRef)(), [enterTimeout, exitTimeout] = getTimeout(timeout), endTransition = (0, import_react98.useCallback)(() => { 69009 let status = getEndStatus(latestState.current._s, unmountOnExit); 69010 status && updateState(status, setState2, latestState, timeoutId, onChange); 69011 }, [onChange, unmountOnExit]), toggle = (0, import_react98.useCallback)((toEnter) => { 69012 let transitState = (status) => { 69013 switch (updateState(status, setState2, latestState, timeoutId, onChange), status) { 69014 case 1: 69015 enterTimeout >= 0 && (timeoutId.current = setTimeout(endTransition, enterTimeout)); 69016 break; 69017 case 4: 69018 exitTimeout >= 0 && (timeoutId.current = setTimeout(endTransition, exitTimeout)); 69019 break; 69020 case 0: 69021 case 3: 69022 timeoutId.current = nextTick(transitState, status); 69023 break; 69024 } 69025 }, enterStage = latestState.current.isEnter; 69026 typeof toEnter != "boolean" && (toEnter = !enterStage), toEnter ? !enterStage && transitState(enter ? preEnter ? 0 : 1 : 2) : enterStage && transitState(exit ? preExit ? 3 : 4 : startOrEnd(unmountOnExit)); 69027 }, [endTransition, onChange, enter, exit, preEnter, preExit, enterTimeout, exitTimeout, unmountOnExit]); 69028 return [state3, toggle, endTransition]; 69029}; 69030
vendor: 132 bytes, lines 69031-69033
69031// ../../node_modules/react-transition-state/dist/esm/hooks/useTransitionMap.mjs 69032var import_react99 = __toESM(require_react(), 1); 69033
vendor: 640 bytes, lines 69034-69048
69034// src/manager/hooks/useMedia.tsx 69035var import_react100 = __toESM(require_react(), 1); 69036function useMediaQuery(query) { 69037 let getMatches = (queryMatch) => typeof window < "u" ? window.matchMedia(queryMatch).matches : !1, [matches4, setMatches] = (0, import_react100.useState)(getMatches(query)); 69038 function handleChange() { 69039 setMatches(getMatches(query)); 69040 } 69041 return (0, import_react100.useEffect)(() => { 69042 let matchMedia = window.matchMedia(query); 69043 return handleChange(), matchMedia.addEventListener("change", handleChange), () => { 69044 matchMedia.removeEventListener("change", handleChange); 69045 }; 69046 }, [query]), matches4; 69047} 69048
69049// src/components/components/Modal/Modal.styled.tsx 69050var Modal_styled_exports = {}; 69051__export(Modal_styled_exports, { 69052 Actions: () => Actions, 69053 Close: () => Close, 69054 CloseButton: () => CloseButton, 69055 Col: () => Col, 69056 Container: () => Container3, 69057 Content: () => Content, 69058 Description: () => Description, 69059 Dialog: () => Dialog, 69060 Error: () => Error2, 69061 ErrorWrapper: () => ErrorWrapper, 69062 Header: () => Header, 69063 Overlay: () => Overlay, 69064 Row: () => Row, 69065 Title: () => Title 69066}); 69067var import_react104 = __toESM(require_react(), 1); 69068init_client_logger(); 69069
vendor: 631 bytes, lines 69070-69072
69070// ../../node_modules/react-aria-components/dist/RSPContexts.mjs 69071var import_react101 = __toESM(require_react(), 1), $4e85f108e88277b8$export$b085522c77523c51 = (0, import_react101.createContext)(null), $4e85f108e88277b8$export$ebe63fadcdce34ed = (0, import_react101.createContext)(null), $4e85f108e88277b8$export$44644b8a16031b5b = (0, import_react101.createContext)(null), $4e85f108e88277b8$export$717b2c0a523a0b53 = (0, import_react101.createContext)(null), $4e85f108e88277b8$export$265015d6dc85bf21 = (0, import_react101.createContext)(null), $4e85f108e88277b8$export$d688439359537581 = (0, import_react101.createContext)({}); 69072
vendor: 568 bytes, lines 69073-69083
69073// ../../node_modules/react-aria-components/dist/Heading.mjs 69074var import_react102 = __toESM(require_react(), 1), $5cb03073d3f54797$export$a8a3e93435678ff9 = (0, import_react102.forwardRef)(function(props, ref) { 69075 [props, ref] = $64fa3d84918910a7$export$29f1550f4b0d4415(props, ref, $4e85f108e88277b8$export$d688439359537581); 69076 let { children, level = 3, className, ...domProps } = props, Element2 = `h${level}`; 69077 return import_react102.default.createElement(Element2, { 69078 ...domProps, 69079 ref, 69080 className: className ?? "react-aria-Heading" 69081 }, children); 69082}); 69083
vendor: 605 bytes, lines 69084-69094
69084// ../../node_modules/react-aria-components/dist/Text.mjs 69085var import_react103 = __toESM(require_react(), 1), $514c0188e459b4c0$export$9afb8bc826b033ea = (0, import_react103.createContext)({}), $514c0188e459b4c0$export$5f1af8db9871e1d6 = (0, import_react103.forwardRef)(function(props, ref) { 69086 [props, ref] = $64fa3d84918910a7$export$29f1550f4b0d4415(props, ref, $514c0188e459b4c0$export$9afb8bc826b033ea); 69087 let { elementType: ElementType = "span", ...domProps } = props; 69088 return import_react103.default.createElement(ElementType, { 69089 className: "react-aria-Text", 69090 ...domProps, 69091 ref 69092 }); 69093}); 69094
vendor: 5,531 bytes, lines 69095-69260
69095// src/components/components/Modal/Modal.styled.tsx 69096init_theming(); 69097var fadeIn = keyframes({ 69098 from: { opacity: 0 }, 69099 to: { opacity: 1 } 69100}), fadeOut = keyframes({ 69101 from: { opacity: 1 }, 69102 to: { opacity: 0 } 69103}), expand = keyframes({ 69104 from: { maxHeight: 0 }, 69105 to: {} 69106}), zoomIn = keyframes({ 69107 from: { 69108 opacity: 0, 69109 transform: "translate(-50%, -50%) scale(0.9)" 69110 }, 69111 to: { 69112 opacity: 1, 69113 transform: "translate(-50%, -50%) scale(1)" 69114 } 69115}), zoomOut = keyframes({ 69116 from: { 69117 opacity: 1, 69118 transform: "translate(-50%, -50%) scale(1)" 69119 }, 69120 to: { 69121 opacity: 0, 69122 transform: "translate(-50%, -50%) scale(0.9)" 69123 } 69124}), slideFromBottom = keyframes({ 69125 from: { 69126 opacity: 0, 69127 maxHeight: "0px" 69128 }, 69129 to: { 69130 opacity: 1, 69131 maxHeight: "80vh" 69132 } 69133}), slideToBottom = keyframes({ 69134 from: { 69135 opacity: 1, 69136 maxHeight: "80vh" 69137 }, 69138 to: { 69139 opacity: 0, 69140 maxHeight: "0px" 69141 } 69142}), Overlay = styled.div(({ $status, $transitionDuration }) => ({ 69143 backdropFilter: "blur(24px)", 69144 background: "rgba(0, 0, 0, 0.4)", 69145 position: "absolute", 69146 inset: 0, 69147 width: "100%", 69148 height: "100%", 69149 zIndex: 1e5, 69150 "@media (prefers-reduced-motion: no-preference)": { 69151 animation: $status === "exiting" || $status === "preExit" ? `${fadeOut} ${$transitionDuration}ms` : `${fadeIn} ${$transitionDuration}ms`, 69152 animationFillMode: "forwards" 69153 } 69154})), Container3 = styled.div( 69155 ({ theme: theme3 }) => ({ 69156 backgroundColor: theme3.background.bar, 69157 borderRadius: 6, 69158 boxShadow: "0px 4px 67px 0px #00000040", 69159 position: "absolute", 69160 overflow: "auto", 69161 zIndex: 1e5, 69162 "&:focus-visible": { 69163 outline: "none" 69164 } 69165 }), 69166 ({ theme: theme3, width, height, $variant, $status, $transitionDuration }) => $variant === "dialog" ? { 69167 top: "50%", 69168 left: "50%", 69169 width: width ?? 740, 69170 height: height ?? "auto", 69171 maxWidth: "calc(100% - 40px)", 69172 maxHeight: "85vh", 69173 "@media (prefers-reduced-motion: no-preference)": { 69174 willChange: "transform, opacity", 69175 animationTimingFunction: "cubic-bezier(0.32, 0.72, 0, 1)", 69176 animation: $status === "exiting" || $status === "preExit" ? `${zoomOut} ${$transitionDuration}ms` : `${zoomIn} ${$transitionDuration}ms`, 69177 animationFillMode: "forwards !important" 69178 }, 69179 "@media (prefers-reduced-motion: reduce)": { 69180 transform: "translate(-50%, -50%) scale(1)" 69181 } 69182 } : { 69183 bottom: "0", 69184 left: "0", 69185 right: "0", 69186 borderRadius: "10px 10px 0 0", 69187 overflow: "hidden", 69188 width: width ?? "100%", 69189 height: height ?? "80%", 69190 maxWidth: "100%", 69191 background: theme3.background.content, 69192 "@supports (interpolate-size: allow-keywords)": { 69193 interpolateSize: "allow-keywords" 69194 }, 69195 "@media (prefers-reduced-motion: no-preference)": { 69196 animationTimingFunction: "cubic-bezier(.9,.16,.77,.64)", 69197 animation: $status === "exiting" || $status === "preExit" ? `${slideToBottom} ${$transitionDuration}ms` : `${slideFromBottom} ${$transitionDuration}ms`, 69198 animationFillMode: "forwards !important" 69199 } 69200 } 69201), Close = ({ asChild, children, onClick, ...props }) => { 69202 let { close } = (0, import_react104.useContext)(ModalContext); 69203 if (asChild && import_react104.default.isValidElement(children)) { 69204 let handleClick = (event) => { 69205 onClick?.(event), children.props.onClick?.(event), close?.(); 69206 }; 69207 return import_react104.default.cloneElement(children, { 69208 ...props, 69209 onClick: handleClick 69210 }); 69211 } 69212 return import_react104.default.createElement( 69213 Button, 69214 { 69215 type: "button", 69216 padding: "small", 69217 ariaLabel: "Close modal", 69218 variant: "ghost", 69219 shortcut: ["Escape"], 69220 onClick: close 69221 }, 69222 import_react104.default.createElement(CrossIcon, null) 69223 ); 69224}, Dialog = { 69225 Close: () => (deprecate("Modal.Dialog.Close is deprecated, please use Modal.Close instead."), import_react104.default.createElement(Close, { "data-deprecated": "Modal.Dialog.Close" })) 69226}, CloseButton = ({ ariaLabel, ...props }) => (deprecate("Modal.CloseButton is deprecated, please use Modal.Close instead."), import_react104.default.createElement(Close, { asChild: !0 }, import_react104.default.createElement(Button, { ariaLabel: ariaLabel || "Close", "data-deprecated": "Modal.CloseButton", ...props }, import_react104.default.createElement(CrossIcon, null)))), Content = styled.div({ 69227 display: "flex", 69228 flexDirection: "column", 69229 margin: 16, 69230 gap: 16 69231}), Row = styled.div({ 69232 display: "flex", 69233 justifyContent: "space-between", 69234 gap: 16 69235}), Col = styled.div({ 69236 display: "flex", 69237 flexDirection: "column", 69238 gap: 4 69239}), Header = ({ 69240 hasClose = !0, 69241 onClose, 69242 ...props 69243}) => import_react104.default.createElement(Row, null, import_react104.default.createElement(Col, { ...props }), hasClose && import_react104.default.createElement(Close, { onClick: onClose })), Title = styled((props) => import_react104.default.createElement($5cb03073d3f54797$export$a8a3e93435678ff9, { level: 2, ...props }))(({ theme: theme3 }) => ({ 69244 margin: 0, 69245 fontSize: theme3.typography.size.s3, 69246 fontWeight: theme3.typography.weight.bold 69247})), Description = styled($514c0188e459b4c0$export$5f1af8db9871e1d6)(({ theme: theme3 }) => ({ 69248 position: "relative", 69249 zIndex: 1, 69250 margin: 0, 69251 fontSize: theme3.typography.size.s2 69252})), Actions = styled.div({ 69253 display: "flex", 69254 flexDirection: "row-reverse", 69255 gap: 8 69256}), ErrorWrapper = styled.div(({ theme: theme3 }) => ({ 69257 maxHeight: 100, 69258 overflow: "auto", 69259 "@media (prefers-reduced-motion: no-preference)": { 69260 animation: `${expand}
69260 300ms, ${fadeIn} 300ms` 69261 }, 69262 backgroundColor: theme3.background.critical, 69263 color: theme3.color.lightest, 69264 fontSize: theme3.typography.size.s2, 69265 "& > div": { 69266 position: "relative", 69267 padding: "8px 16px" 69268 } 69269})), Error2 = ({ 69270 children, 69271 ...props 69272}) => import_react104.default.createElement(ErrorWrapper, { ...props }, import_react104.default.createElement("div", null, children)); 69273
vendor: 6,888 bytes, lines 69274-69437
69274// src/components/components/Modal/Modal.tsx 69275var ModalContext = (0, import_react105.createContext)({}); 69276function BaseModal({ 69277 container, 69278 portalSelector, 69279 children, 69280 width, 69281 height, 69282 ariaLabel, 69283 dismissOnClickOutside = !0, 69284 dismissOnEscape = !0, 69285 className, 69286 open, 69287 onEscapeKeyDown, 69288 onInteractOutside, 69289 onOpenChange, 69290 defaultOpen, 69291 transitionDuration = 200, 69292 variant = "dialog", 69293 ...props 69294}) { 69295 let deprecated; 69296 (ariaLabel === void 0 || ariaLabel === "") && (deprecated = "ariaLabel", deprecate("The `ariaLabel` prop on `Modal` will become mandatory in Storybook 11.")), onEscapeKeyDown !== void 0 && (deprecated = "onEscapeKeyDown", deprecate( 69297 "The `onEscapeKeyDown` prop is deprecated and will be removed in Storybook 11. Use `dismissOnEscape` instead." 69298 )), onInteractOutside !== void 0 && (deprecated = "onInteractOutside", deprecate( 69299 "The `onInteractOutside` prop is deprecated and will be removed in Storybook 11. Use `dismissOnInteractOutside` instead." 69300 )); 69301 let overlayRef = (0, import_react105.useRef)(null), reducedMotion = useMediaQuery("(prefers-reduced-motion: reduce)"), [{ status, isMounted }, toggle] = useTransitionState({ 69302 timeout: reducedMotion ? 0 : transitionDuration, 69303 mountOnEnter: !0, 69304 unmountOnExit: !0 69305 }), state3 = $fc909762b330b746$export$61c6a8c84e605fb6({ 69306 isOpen: open || isMounted, 69307 defaultOpen, 69308 onOpenChange: (isOpen) => { 69309 toggle(isOpen), onOpenChange?.(isOpen); 69310 } 69311 }), close = () => { 69312 state3.close(); 69313 }, { modalProps, underlayProps } = $8ac8429251c45e4b$export$dbc0f175b25fb0fb( 69314 { 69315 isDismissable: dismissOnClickOutside, 69316 isKeyboardDismissDisabled: !0, 69317 shouldCloseOnInteractOutside: onInteractOutside ? (element) => { 69318 let mockedEvent = new MouseEvent("click", { 69319 bubbles: !0, 69320 cancelable: !0, 69321 relatedTarget: element 69322 }); 69323 return onInteractOutside(mockedEvent), !mockedEvent.defaultPrevented; 69324 } : void 0 69325 }, 69326 state3, 69327 overlayRef 69328 ); 69329 if ((0, import_react105.useEffect)(() => { 69330 let shouldBeOpen = open ?? defaultOpen ?? !1; 69331 shouldBeOpen && !isMounted ? toggle(!0) : !shouldBeOpen && isMounted && toggle(!1); 69332 }, [open, defaultOpen, isMounted, toggle]), (0, import_react105.useEffect)(() => { 69333 isMounted && (open || defaultOpen) && onOpenChange?.(!0); 69334 }, [isMounted]), (0, import_react105.useEffect)(() => { 69335 if (isMounted && (open || defaultOpen) && overlayRef.current) 69336 return $5e3802645cc19319$export$1c3ebcada18427bf([overlayRef.current], { shouldUseInert: !0 }); 69337 }, [isMounted, open, defaultOpen, overlayRef]), !isMounted || status === "exited" || status === "unmounted") 69338 return null; 69339 let finalModalProps = $3ef42575df84b30b$export$9d1611c77c2fe928(modalProps, { 69340 onKeyDown: (e) => { 69341 e.key !== "Escape" ? modalProps.onKeyDown?.(e) : dismissOnEscape && (onEscapeKeyDown?.(e.nativeEvent), e.nativeEvent.defaultPrevented || close()); 69342 } 69343 }), containerElement = container ?? (portalSelector ? document.querySelector(portalSelector) : void 0); 69344 return import_react105.default.createElement($337b884510726a0d$export$c6fdb837b070b4ff, { disableFocusManagement: !0, portalContainer: containerElement || void 0 }, import_react105.default.createElement($9bf71ea28793e738$export$20e40289641fbbb6, { restoreFocus: !0, contain: !0, autoFocus: !0 }, import_react105.default.createElement( 69345 Overlay, 69346 { 69347 $status: status, 69348 $transitionDuration: transitionDuration, 69349 ...underlayProps 69350 } 69351 ), import_react105.default.createElement("div", { role: "dialog", "aria-label": ariaLabel, ref: overlayRef, ...finalModalProps }, import_react105.default.createElement(ModalContext.Provider, { value: { close } }, import_react105.default.createElement("div", { tabIndex: -1 }, import_react105.default.createElement( 69352 Container3, 69353 { 69354 "data-deprecated": deprecated, 69355 $variant: variant, 69356 $status: status, 69357 $transitionDuration: transitionDuration, 69358 className, 69359 width, 69360 height, 69361 ...props 69362 }, 69363 children 69364 )))))); 69365} 69366var Modal = Object.assign(BaseModal, Modal_styled_exports), ModalDecorator = (Story, { args }) => { 69367 let [container, setContainer] = (0, import_react105.useState)(null); 69368 return args.container || args.portalSelector ? import_react105.default.createElement(Story, { args }) : import_react105.default.createElement(import_react105.default.Fragment, null, import_react105.default.createElement($96b38030c423d352$export$78efe591171d7d45, { getContainer: () => container }, import_react105.default.createElement(Story, { args })), import_react105.default.createElement( 69369 "div", 69370 { 69371 ref: (element) => setContainer(element ?? null), 69372 style: { 69373 width: "100%", 69374 height: "100%", 69375 minHeight: "600px", 69376 transform: "translateZ(0)" 69377 } 69378 } 69379 )); 69380}; 69381 69382// src/components/components/spaced/Spaced.tsx 69383var import_react106 = __toESM(require_react(), 1); 69384init_theming(); 69385var toNumber2 = (input2) => typeof input2 == "number" ? input2 : Number(input2), Container4 = styled.div( 69386 ({ theme: theme3, col, row = 1 }) => col ? { 69387 display: "inline-block", 69388 verticalAlign: "inherit", 69389 "& > *": { 69390 marginLeft: col * theme3.layoutMargin, 69391 verticalAlign: "inherit" 69392 }, 69393 [`& > *:first-child${ignoreSsrWarning}`]: { 69394 marginLeft: 0 69395 } 69396 } : { 69397 "& > *": { 69398 marginTop: row * theme3.layoutMargin 69399 }, 69400 [`& > *:first-child${ignoreSsrWarning}`]: { 69401 marginTop: 0 69402 } 69403 }, 69404 ({ theme: theme3, outer, col, row }) => { 69405 switch (!0) { 69406 case !!(outer && col): 69407 return { 69408 marginLeft: outer * theme3.layoutMargin, 69409 marginRight: outer * theme3.layoutMargin 69410 }; 69411 case !!(outer && row): 69412 return { 69413 marginTop: outer * theme3.layoutMargin, 69414 marginBottom: outer * theme3.layoutMargin 69415 }; 69416 default: 69417 return {}; 69418 } 69419 } 69420), Spaced = ({ col, row, outer, children, ...rest }) => { 69421 let outerAmount = toNumber2(typeof outer == "number" || !outer ? outer : col || row); 69422 return import_react106.default.createElement(Container4, { col, row, outer: outerAmount, ...rest }, children); 69423}; 69424 69425// src/components/components/placeholder/placeholder.tsx 69426var import_react107 = __toESM(require_react(), 1); 69427init_theming(); 69428var Title2 = styled.div(({ theme: theme3 }) => ({ 69429 fontWeight: theme3.typography.weight.bold 69430})), Desc = styled.div(), Message = styled.div(({ theme: theme3 }) => ({ 69431 padding: 30, 69432 textAlign: "center", 69433 color: theme3.color.defaultText, 69434 fontSize: theme3.typography.size.s2 - 1 69435})), Placeholder = ({ children, ...props }) => { 69436 let [title, desc] = import_react107.Children.toArray(children); 69437 return import_react107.default.createElement(Message, { ...props }, import_react107.default.createElement(Title2, null, title), desc && import_react107
vendor: 161 bytes, lines 69437-69444
69437.default.createElement(Desc, null, desc)); 69438}; 69439 69440// src/components/index.ts 69441init_ScrollArea(); 69442 69443// src/components/components/Zoom/ZoomElement.tsx 69444var import_react1
6944409 = __toESM(require_react(), 1); 69445init_theming(); 69446
vendor: 4,442 bytes, lines 69447-69526
69447// ../../node_modules/use-resize-observer/dist/bundle.esm.js 69448var import_react108 = __toESM(require_react()); 69449function useResolvedElement(subscriber, refOrElement) { 69450 var lastReportRef = (0, import_react108.useRef)(null), refOrElementRef = (0, import_react108.useRef)(null); 69451 refOrElementRef.current = refOrElement; 69452 var cbElementRef = (0, import_react108.useRef)(null); 69453 (0, import_react108.useEffect)(function() { 69454 evaluateSubscription(); 69455 }); 69456 var evaluateSubscription = (0, import_react108.useCallback)(function() { 69457 var cbElement = cbElementRef.current, refOrElement2 = refOrElementRef.current, element = cbElement || (refOrElement2 ? refOrElement2 instanceof Element ? refOrElement2 : refOrElement2.current : null); 69458 lastReportRef.current && lastReportRef.current.element === element && lastReportRef.current.subscriber === subscriber || (lastReportRef.current && lastReportRef.current.cleanup && lastReportRef.current.cleanup(), lastReportRef.current = { 69459 element, 69460 subscriber, 69461 // Only calling the subscriber, if there's an actual element to report. 69462 // Setting cleanup to undefined unless a subscriber returns one, as an existing cleanup function would've been just called. 69463 cleanup: element ? subscriber(element) : void 0 69464 }); 69465 }, [subscriber]); 69466 return (0, import_react108.useEffect)(function() { 69467 return function() { 69468 lastReportRef.current && lastReportRef.current.cleanup && (lastReportRef.current.cleanup(), lastReportRef.current = null); 69469 }; 69470 }, []), (0, import_react108.useCallback)(function(element) { 69471 cbElementRef.current = element, evaluateSubscription(); 69472 }, [evaluateSubscription]); 69473} 69474function extractSize(entry, boxProp, sizeType) { 69475 return entry[boxProp] ? entry[boxProp][0] ? entry[boxProp][0][sizeType] : ( 69476 // TS complains about this, because the RO entry type follows the spec and does not reflect Firefox's current 69477 // behaviour of returning objects instead of arrays for `borderBoxSize` and `contentBoxSize`. 69478 // @ts-ignore 69479 entry[boxProp][sizeType] 69480 ) : boxProp === "contentBoxSize" ? entry.contentRect[sizeType === "inlineSize" ? "width" : "height"] : void 0; 69481} 69482function useResizeObserver2(opts) { 69483 opts === void 0 && (opts = {}); 69484 var onResize = opts.onResize, onResizeRef = (0, import_react108.useRef)(void 0); 69485 onResizeRef.current = onResize; 69486 var round3 = opts.round || Math.round, resizeObserverRef = (0, import_react108.useRef)(), _useState = (0, import_react108.useState)({ 69487 width: void 0, 69488 height: void 0 69489 }), size = _useState[0], setSize = _useState[1], didUnmount = (0, import_react108.useRef)(!1); 69490 (0, import_react108.useEffect)(function() { 69491 return didUnmount.current = !1, function() { 69492 didUnmount.current = !0; 69493 }; 69494 }, []); 69495 var previous = (0, import_react108.useRef)({ 69496 width: void 0, 69497 height: void 0 69498 }), refCallback = useResolvedElement((0, import_react108.useCallback)(function(element) { 69499 return (!resizeObserverRef.current || resizeObserverRef.current.box !== opts.box || resizeObserverRef.current.round !== round3) && (resizeObserverRef.current = { 69500 box: opts.box, 69501 round: round3, 69502 instance: new ResizeObserver(function(entries) { 69503 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; 69504 if (previous.current.width !== newWidth || previous.current.height !== newHeight) { 69505 var newSize = { 69506 width: newWidth, 69507 height: newHeight 69508 }; 69509 previous.current.width = newWidth, previous.current.height = newHeight, onResizeRef.current ? onResizeRef.current(newSize) : didUnmount.current || setSize(newSize); 69510 } 69511 }) 69512 }), resizeObserverRef.current.instance.observe(element, { 69513 box: opts.box 69514 }), function() { 69515 resizeObserverRef.current && resizeObserverRef.current.instance.unobserve(element); 69516 }; 69517 }, [opts.box, round3]), opts.ref); 69518 return (0, import_react108.useMemo)(function() { 69519 return { 69520 ref: refCallback, 69521 width: size.width, 69522 height: size.height 69523 }; 69524 }, [refCallback, size.width, size.height]); 69525} 69526
vendor: 2,443 bytes, lines 69527-69587
69527// src/components/components/Zoom/ZoomElement.tsx 69528var ZoomElementWrapper = styled.div( 69529 ({ centered = !1, scale = 1, elementHeight }) => ({ 69530 height: elementHeight || "auto", 69531 transformOrigin: centered ? "center top" : "left top", 69532 transform: `scale(${1 / scale})` 69533 }) 69534); 69535function ZoomElement({ centered, scale, children }) { 69536 let componentWrapperRef = (0, import_react109.useRef)(null), [elementHeight, setElementHeight] = (0, import_react109.useState)(0), onResize = (0, import_react109.useCallback)( 69537 ({ height }) => { 69538 height && setElementHeight(height / scale); 69539 }, 69540 [scale] 69541 ); 69542 return (0, import_react109.useEffect)(() => { 69543 componentWrapperRef.current && setElementHeight(componentWrapperRef.current.getBoundingClientRect().height); 69544 }, [scale]), useResizeObserver2({ 69545 ref: componentWrapperRef, 69546 onResize 69547 }), import_react109.default.createElement(ZoomElementWrapper, { centered, scale, elementHeight }, import_react109.default.createElement("div", { ref: componentWrapperRef, className: "innerZoomElementWrapper" }, children)); 69548} 69549 69550// src/components/components/Zoom/ZoomIFrame.tsx 69551var import_react110 = __toESM(require_react(), 1), ZoomIFrame = class extends import_react110.Component { 69552 constructor() { 69553 super(...arguments); 69554 // @ts-expect-error (non strict) 69555 this.iframe = null; 69556 } 69557 componentDidMount() { 69558 let { iFrameRef } = this.props; 69559 this.iframe = iFrameRef.current; 69560 } 69561 shouldComponentUpdate(nextProps) { 69562 let { scale, active } = this.props; 69563 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; 69564 } 69565 setIframeInnerZoom(scale) { 69566 try { 69567 Object.assign(this.iframe.contentDocument.body.style, { 69568 width: `${1 / scale * 100}%`, 69569 height: `${1 / scale * 100}%`, 69570 transform: `scale(${scale})`, 69571 transformOrigin: "top left" 69572 }); 69573 } catch { 69574 this.setIframeZoom(scale); 69575 } 69576 } 69577 setIframeZoom(scale) { 69578 Object.assign(this.iframe.style, { 69579 width: `${1 / scale * 100}%`, 69580 height: `${1 / scale * 100}%`, 69581 transform: `scale(${scale})`, 69582 transformOrigin: "top left" 69583 }); 69584 } 69585 render() { 69586 let { children } = this.props; 69587 return import_react110.default.createElement(import_react110.default
vendor: 204 bytes, lines 69587-69597
69587.Fragment, null, children); 69588 } 69589}; 69590 69591// src/components/components/Zoom/Zoom.tsx 69592var Zoom = { 69593 Element: ZoomElement, 69594 IFrame: ZoomIFrame 69595}; 69596 69597// src/components/components/ErrorFormatter/ErrorFormatter.tsx
vendor: 2,418 bytes, lines 69598-69631
69598var import_react111 = __toESM(require_react(), 1); 69599init_dist(); 69600init_theming(); 69601var { document: document11 } = scope, ErrorName = styled.strong(({ theme: theme3 }) => ({ 69602 color: theme3.color.orange 69603})), ErrorImportant = styled.strong(({ theme: theme3 }) => ({ 69604 color: theme3.color.ancillary, 69605 textDecoration: "underline" 69606})), ErrorDetail = styled.em(({ theme: theme3 }) => ({ 69607 color: theme3.textMutedColor 69608})), firstLineRegex = /(Error): (.*)\n/, linesRegexChromium = /at (?:(.*) )?\(?(.+)\)?/, linesRegexFirefox = /([^@]+)?(?:\/<)?@(.+)?/, linesRegexSafari = /([^@]+)?@(.+)?/, ErrorFormatter = ({ error }) => { 69609 if (!error) 69610 return import_react111.default.createElement(import_react111.Fragment, null, "This error has no stack or message"); 69611 if (!error.stack) 69612 return import_react111.default.createElement(import_react111.Fragment, null, error.message || "This error has no stack or message"); 69613 let input2 = error.stack.toString(); 69614 input2 && error.message && !input2.includes(error.message) && (input2 = `Error: ${error.message} 69615 69616${input2}`); 69617 let match3 = input2.match(firstLineRegex); 69618 if (!match3) 69619 return import_react111.default.createElement(import_react111.Fragment, null, input2); 69620 let [, type5, name] = match3, rawLines = input2.split(/\n/).slice(1), [, ...lines] = rawLines.map((line2) => { 69621 let result = line2.match(linesRegexChromium) || line2.match(linesRegexFirefox) || line2.match(linesRegexSafari); 69622 return result ? { 69623 name: (result[1] || "").replace("/<", ""), 69624 location: result[2].replace(document11.location.origin, "") 69625 } : null; 69626 }).filter(Boolean); 69627 return import_react111.default.createElement(import_react111.Fragment, null, import_react111.default.createElement("span", null, type5), ": ", import_react111.default.createElement(ErrorName, null, name), import_react111.default.createElement("br", null), lines.map( 69628 (l, i) => l?.name ? import_react111.default.createElement(import_react111.Fragment, { key: i }, " ", "at ", import_react111.default.createElement(ErrorImportant, null, l.name), " (", import_react111.default.createElement(ErrorDetail, null, l.location), ")", import_react111.default.createElement("br", null)) : import_react111.default.createElement(import_react111.Fragment, { key: i }, " ", "at ", import_react111.default.createElement(ErrorDetail, null, l?.location), import_react111.default.createElement("br", null)) 69629 )); 69630}; 69631
69632// src/components/components/Select/Select.tsx 69633var import_react124
vendor: 195 bytes, lines 69633-69641
69633 = __toESM(require_react(), 1); 69634init_polished_esm(); 69635init_theming(); 69636 69637// src/components/components/Form/Form.tsx 69638init_theming(); 69639 69640// src/components/components/Form/Checkbox.tsx 69641var import_react11
vendor: 2,219 bytes, lines 69641-69707
696412 = __toESM(require_react(), 1); 69642init_theming(); 69643var Input = styled.input(({ theme: theme3 }) => ({ 69644 appearance: "none", 69645 backgroundColor: theme3.input.background, 69646 border: `1px solid ${theme3.base === "dark" ? "hsl(0 0 100 / 0.4)" : "hsl(0 0 0 / 0.44)"}`, 69647 borderRadius: 2, 69648 display: "grid", 69649 flexShrink: 0, 69650 height: 14, 69651 margin: 0, 69652 placeContent: "center", 69653 transition: "background-color 0.1s", 69654 width: 14, 69655 "&:enabled": { 69656 cursor: "pointer" 69657 }, 69658 "&:disabled": { 69659 backgroundColor: "transparent", 69660 borderColor: theme3.input.border 69661 }, 69662 "&:disabled:checked, &:disabled:indeterminate": { 69663 backgroundColor: theme3.base === "dark" ? color.dark : theme3.color.mediumdark 69664 }, 69665 "&:checked, &:indeterminate": { 69666 border: "none", 69667 backgroundColor: color.secondary 69668 }, 69669 "&:checked::before": { 69670 content: '""', 69671 width: 14, 69672 height: 14, 69673 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")` 69674 }, 69675 "&:indeterminate::before": { 69676 content: '""', 69677 width: 8, 69678 height: 2, 69679 background: "white" 69680 }, 69681 "&:enabled:focus-visible": { 69682 outline: `2px solid ${theme3.color.secondary}`, 69683 outlineOffset: 2 69684 } 69685})), Checkbox = (props) => import_react112.default.createElement(Input, { ...props, type: "checkbox" }); 69686 69687// src/components/components/Form/Field.tsx 69688var import_react113 = __toESM(require_react(), 1); 69689init_theming(); 69690var Wrapper2 = styled.label(({ theme: theme3 }) => ({ 69691 display: "flex", 69692 borderBottom: `1px solid ${theme3.appBorderColor}`, 69693 margin: "0 15px", 69694 padding: "8px 0", 69695 "&:last-child": { 69696 marginBottom: "3rem" 69697 } 69698})), Label = styled.span(({ theme: theme3 }) => ({ 69699 minWidth: 100, 69700 fontWeight: theme3.typography.weight.bold, 69701 marginRight: 15, 69702 display: "flex", 69703 justifyContent: "flex-start", 69704 alignItems: "center", 69705 lineHeight: "16px" 69706})), Field = ({ label, children, ...props }) => import_react113.default.createElement(Wrapper2, { ...props }, label ? import_react113.default.createElement(Label, null, import_react113.default.createElement("span", null, label)) : null, children); 69707
69708// src/components/components/Form/Input.tsx 69709var import_react114 = __toESM(require_react(), 1), import_react115 = __toESM(require_react(), 1); 69710init_theming(); 69711
69712// src/components/components/Form/styles.ts 69713var sizes = (({ size }) => { 69714 switch (size) { 69715 case "100%": 69716 return { width: "100%" }; 69717 case "flex": 69718 return { flex: 1 }; 69719 case "auto": 69720 default: 69721 return { display: "inline" }; 69722 } 69723}), alignment = (({ 69724 align: align2 69725}) => { 69726 switch (align2) { 69727 case "end": 69728 return { textAlign: "right" }; 69729 case "center": 69730 return { textAlign: "center" }; 69731 case "start": 69732 default: 69733 return { textAlign: "left" }; 69734 } 69735}), validation = (({ 69736 valid, 69737 theme: theme3 69738}) => { 69739 switch (valid) { 69740 case "valid": 69741 return { boxShadow: `${theme3.color.positive} 0 0 0 1px inset !important` }; 69742 case "error": 69743 return { boxShadow: `${theme3.color.negative} 0 0 0 1px inset !important` }; 69744 case "warn": 69745 return { 69746 boxShadow: `${theme3.color.warning} 0 0 0 1px inset` 69747 }; 69748 case void 0: 69749 case null: 69750 default: 69751 return {}; 69752 } 69753}), styleResets = { 69754 // resets 69755 appearance: "none", 69756 border: "0 none", 69757 boxSizing: "inherit", 69758 display: "block", 69759 margin: " 0", 69760 background: "transparent", 69761 padding: 0, 69762 fontSize: "inherit", 69763 position: "relative" 69764}, styles3 = (({ theme: theme3 }) => ({ 69765 ...styleResets, 69766 transition: "box-shadow 200ms ease-out, opacity 200ms ease-out", 69767 color: theme3.input.color || "inherit", 69768 background: theme3.input.background, 69769 boxShadow: `${theme3.input.border} 0 0 0 1px inset`, 69770 borderRadius: theme3.input.borderRadius, 69771 fontSize: theme3.typography.size.s2 - 1, 69772 lineHeight: "20px", 69773 padding: "6px 10px", 69774 // 32 69775 boxSizing: "border-box", 69776 height: 32, 69777 '&[type="file"]': { 69778 height: "auto" 69779 }, 69780 "&:focus": { 69781 boxShadow: `${theme3.color.secondary} 0 0 0 1px inset`, 69782 outline: "none", 69783 "@media (forced-colors: active)": { 69784 outline: "1px solid highlight" 69785 } 69786 }, 69787 '&[disabled], &[aria-disabled="true"]': { 69788 background: theme3.base === "light" ? theme3.color.lighter : "transparent", 69789 cursor: "not-allowed" 69790 }, 69791 "&:-webkit-autofill": { WebkitBoxShadow: `0 0 0 3em ${theme3.color.lightest} inset` }, 69792 "&::placeholder": { 69793 color: theme3.textMutedColor, 69794 opacity: 1 69795 } 69796})); 69797
vendor: 6,421 bytes, lines 69798-69992
69798// src/components/components/Form/Input.tsx 69799var Wrapper3 = styled.div({ 69800 position: "relative", 69801 width: "100%" 69802}), Mask = styled.div( 69803 ({ theme: theme3 }) => ({ 69804 position: "absolute", 69805 left: 0, 69806 right: 0, 69807 top: 0, 69808 bottom: 0, 69809 display: "flex", 69810 alignItems: "center", 69811 pointerEvents: "none", 69812 overflow: "hidden", 69813 color: theme3.textMutedColor, 69814 "span:first-of-type": { 69815 opacity: 0 69816 } 69817 }), 69818 (props) => { 69819 let { fontSize, lineHeight, padding } = styles3(props); 69820 return { fontSize, lineHeight, padding }; 69821 } 69822), Input2 = Object.assign( 69823 styled( 69824 (0, import_react115.forwardRef)(function({ size, valid, align: align2, value, suffix, ...props }, ref) { 69825 let suffixId = $bdb11010cef70236$export$f680877a34711e37(); 69826 return import_react114.default.createElement(Wrapper3, null, import_react114.default.createElement( 69827 "input", 69828 { 69829 ...props, 69830 value, 69831 ref, 69832 "aria-describedby": suffix ? suffixId : void 0 69833 } 69834 ), suffix && import_react114.default.createElement(Mask, { "aria-hidden": !0 }, import_react114.default.createElement("span", null, value), import_react114.default.createElement("span", { id: suffixId }, suffix))); 69835 }) 69836 )(styles3, sizes, alignment, validation, { 69837 minHeight: 32, 69838 width: "100%" 69839 }), 69840 { 69841 displayName: "Input" 69842 } 69843); 69844 69845// src/components/components/Form/Radio.tsx 69846var import_react116 = __toESM(require_react(), 1); 69847init_theming(); 69848var Input4 = styled.input(({ theme: theme3 }) => ({ 69849 appearance: "none", 69850 backgroundColor: theme3.input.background, 69851 border: `1px solid ${theme3.base === "dark" ? "hsl(0 0 100 / 0.4)" : "hsl(0 0 0 / 0.44)"}`, 69852 borderRadius: 8, 69853 display: "grid", 69854 flexShrink: 0, 69855 height: 16, 69856 margin: -1, 69857 placeContent: "center", 69858 transition: "background-color 0.1s", 69859 width: 16, 69860 "&:enabled": { 69861 cursor: "pointer" 69862 }, 69863 "&:disabled": { 69864 backgroundColor: "transparent", 69865 borderColor: theme3.input.border 69866 }, 69867 "&:disabled:checked": { 69868 backgroundColor: theme3.base === "dark" ? color.dark : theme3.color.mediumdark, 69869 borderColor: theme3.base === "dark" ? color.dark : theme3.color.mediumdark 69870 }, 69871 "&:checked": { 69872 backgroundColor: color.secondary, 69873 borderColor: color.secondary, 69874 boxShadow: `inset 0 0 0 2px ${theme3.input.background}` 69875 }, 69876 "&:enabled:focus-visible": { 69877 outline: `2px solid ${theme3.color.secondary}`, 69878 outlineOffset: 2 69879 } 69880})), Radio = (props) => import_react116.default.createElement(Input4, { ...props, type: "radio" }); 69881 69882// src/components/components/Form/Select.tsx 69883var import_react117 = __toESM(require_react(), 1); 69884init_theming(); 69885var BaseSelect = styled.select(sizes, ({ theme: theme3 }) => ({ 69886 appearance: "none", 69887 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")`, 69888 backgroundSize: 10, 69889 padding: "6px 30px 6px 10px", 69890 "@supports (appearance: base-select)": { 69891 appearance: "base-select", 69892 background: theme3.input.background, 69893 padding: "6px 10px" 69894 }, 69895 transition: "box-shadow 200ms ease-out, opacity 200ms ease-out", 69896 color: theme3.input.color || "inherit", 69897 boxShadow: `${theme3.input.border} 0 0 0 1px inset`, 69898 borderRadius: theme3.input.borderRadius, 69899 fontSize: theme3.typography.size.s2 - 1, 69900 lineHeight: "20px", 69901 boxSizing: "border-box", 69902 border: "none", 69903 cursor: "pointer", 69904 "& > button": { 69905 display: "flex", 69906 alignItems: "center", 69907 justifyContent: "space-between", 69908 width: "100%", 69909 gap: 8, 69910 "& > svg": { 69911 width: 14, 69912 height: 14, 69913 color: theme3.textMutedColor 69914 } 69915 }, 69916 "&:has(option:not([hidden]):checked)": { 69917 color: theme3.color.defaultText 69918 }, 69919 "&:focus-visible, &:focus-within": { 69920 outline: "none", 69921 boxShadow: `${theme3.color.secondary} 0 0 0 1px inset` 69922 }, 69923 "&::picker-icon": { 69924 display: "none" 69925 }, 69926 "&::picker(select)": { 69927 appearance: "base-select", 69928 border: `1px solid ${theme3.input.border}`, 69929 padding: 4, 69930 marginTop: 4, 69931 background: theme3.base === "light" ? lightenColor(theme3.background.app) : theme3.background.app, 69932 filter: ` 69933 drop-shadow(0 5px 5px rgba(0,0,0,0.05)) 69934 drop-shadow(0 0 3px rgba(0,0,0,0.1)) 69935 `, 69936 borderRadius: theme3.appBorderRadius + 2, 69937 fontSize: theme3.typography.size.s1, 69938 cursor: "default", 69939 transition: "opacity 100ms ease-in-out, transform 100ms ease-in-out", 69940 transformOrigin: "top", 69941 transform: "translateY(0)", 69942 opacity: 1, 69943 "@starting-style": { 69944 transform: "translateY(-0.25rem) scale(0.95)", 69945 opacity: 0 69946 } 69947 }, 69948 "& optgroup label": { 69949 display: "block", 69950 padding: "3px 6px" 69951 }, 69952 "& option": { 69953 lineHeight: "18px", 69954 padding: "7px 10px", 69955 borderRadius: 4, 69956 outline: "none", 69957 cursor: "pointer", 69958 color: theme3.color.defaultText, 69959 "&::checkmark": { 69960 display: "none" 69961 }, 69962 "&:hover, &:focus-visible": { 69963 backgroundColor: theme3.background.hoverable 69964 }, 69965 "&:checked": { 69966 color: theme3.color.secondary, 69967 fontWeight: theme3.typography.weight.bold 69968 }, 69969 "&:disabled": { 69970 backgroundColor: "transparent", 69971 cursor: "default", 69972 color: theme3.color.defaultText 69973 } 69974 } 69975})), Select = ({ children, ...props }) => ( 69976 // @ts-expect-error Weird props mismatch 69977 import_react117.default.createElement(BaseSelect, { ...props }, !isTestEnvironment() && import_react117.default.createElement("button", null, import_react117.default.createElement("selectedcontent", null), import_react117.default.createElement( 69978 "svg", 69979 { 69980 xmlns: "http://www.w3.org/2000/svg", 69981 viewBox: "0 0 24 24", 69982 fill: "none", 69983 stroke: "currentColor", 69984 strokeWidth: "2", 69985 strokeLinecap: "round", 69986 strokeLinejoin: "round", 69987 "aria-hidden": "true" 69988 }, 69989 import_react117.default.createElement("path", { d: "m6 9 6 6 6-6" }) 69990 )), import_react117.default.createElement("optgroup", null, children)) 69991); 69992
69993// src/components/components/Form/Textarea.tsx 69994var import_react121 = __toESM(require_react(), 1); 69995
vendor: 184 bytes, lines 69996-70000
69996// ../../node_modules/react-textarea-autosize/dist/react-textarea-autosize.browser.esm.js 69997init_extends(); 69998init_objectWithoutPropertiesLoose(); 69999var React60 = __toESM(require_react()); 70000
vendor: 105 bytes, lines 70001-70003
70001// ../../node_modules/use-latest/dist/use-latest.esm.js 70002var import_react119 = __toESM(require_react()); 70003
vendor: 191 bytes, lines 70004-70006
70004// ../../node_modules/use-isomorphic-layout-effect/dist/use-isomorphic-layout-effect.browser.esm.js 70005var import_react118 = __toESM(require_react()), index2 = import_react118.useLayoutEffect; 70006
vendor: 210 bytes, lines 70007-70014
70007// ../../node_modules/use-latest/dist/use-latest.esm.js 70008var useLatest = function(value) { 70009 var ref = import_react119.default.useRef(value); 70010 return index2(function() { 70011 ref.current = value; 70012 }), ref; 70013}; 70014
vendor: 593 bytes, lines 70015-70028
70015// ../../node_modules/use-composed-ref/dist/use-composed-ref.esm.js 70016var import_react120 = __toESM(require_react()), updateRef = function(ref, value) { 70017 if (typeof ref == "function") { 70018 ref(value); 70019 return; 70020 } 70021 ref.current = value; 70022}, useComposedRef = function(libRef, userRef) { 70023 var prevUserRef = import_react120.default.useRef(); 70024 return import_react120.default.useCallback(function(instance) { 70025 libRef.current = instance, prevUserRef.current && updateRef(prevUserRef.current, null), prevUserRef.current = userRef, userRef && updateRef(userRef, instance); 70026 }, [userRef]); 70027}; 70028
vendor: 6,327 bytes, lines 70029-70155
70029// ../../node_modules/react-textarea-autosize/dist/react-textarea-autosize.browser.esm.js 70030var HIDDEN_TEXTAREA_STYLE = { 70031 "min-height": "0", 70032 "max-height": "none", 70033 height: "0", 70034 visibility: "hidden", 70035 overflow: "hidden", 70036 position: "absolute", 70037 "z-index": "-1000", 70038 top: "0", 70039 right: "0", 70040 display: "block" 70041}, forceHiddenStyles = function(node2) { 70042 Object.keys(HIDDEN_TEXTAREA_STYLE).forEach(function(key) { 70043 node2.style.setProperty(key, HIDDEN_TEXTAREA_STYLE[key], "important"); 70044 }); 70045}, forceHiddenStyles$1 = forceHiddenStyles, hiddenTextarea = null, getHeight = function(node2, sizingData) { 70046 var height = node2.scrollHeight; 70047 return sizingData.sizingStyle.boxSizing === "border-box" ? height + sizingData.borderSize : height - sizingData.paddingSize; 70048}; 70049function calculateNodeHeight(sizingData, value, minRows, maxRows) { 70050 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); 70051 var paddingSize = sizingData.paddingSize, borderSize = sizingData.borderSize, sizingStyle = sizingData.sizingStyle, boxSizing = sizingStyle.boxSizing; 70052 Object.keys(sizingStyle).forEach(function(_key) { 70053 var key = _key; 70054 hiddenTextarea.style[key] = sizingStyle[key]; 70055 }), forceHiddenStyles$1(hiddenTextarea), hiddenTextarea.value = value; 70056 var height = getHeight(hiddenTextarea, sizingData); 70057 hiddenTextarea.value = value, height = getHeight(hiddenTextarea, sizingData), hiddenTextarea.value = "x"; 70058 var rowHeight = hiddenTextarea.scrollHeight - paddingSize, minHeight = rowHeight * minRows; 70059 boxSizing === "border-box" && (minHeight = minHeight + paddingSize + borderSize), height = Math.max(minHeight, height); 70060 var maxHeight = rowHeight * maxRows; 70061 return boxSizing === "border-box" && (maxHeight = maxHeight + paddingSize + borderSize), height = Math.min(maxHeight, height), [height, rowHeight]; 70062} 70063var noop3 = function() { 70064}, pick2 = function(props, obj) { 70065 return props.reduce(function(acc, prop) { 70066 return acc[prop] = obj[prop], acc; 70067 }, {}); 70068}, SIZING_STYLE = [ 70069 "borderBottomWidth", 70070 "borderLeftWidth", 70071 "borderRightWidth", 70072 "borderTopWidth", 70073 "boxSizing", 70074 "fontFamily", 70075 "fontSize", 70076 "fontStyle", 70077 "fontWeight", 70078 "letterSpacing", 70079 "lineHeight", 70080 "paddingBottom", 70081 "paddingLeft", 70082 "paddingRight", 70083 "paddingTop", 70084 // non-standard 70085 "tabSize", 70086 "textIndent", 70087 // non-standard 70088 "textRendering", 70089 "textTransform", 70090 "width", 70091 "wordBreak", 70092 "wordSpacing", 70093 "scrollbarGutter" 70094], isIE = !!document.documentElement.currentStyle, getSizingData = function(node2) { 70095 var style = window.getComputedStyle(node2); 70096 if (style === null) 70097 return null; 70098 var sizingStyle = pick2(SIZING_STYLE, style), boxSizing = sizingStyle.boxSizing; 70099 if (boxSizing === "") 70100 return null; 70101 isIE && boxSizing === "border-box" && (sizingStyle.width = parseFloat(sizingStyle.width) + parseFloat(sizingStyle.borderRightWidth) + parseFloat(sizingStyle.borderLeftWidth) + parseFloat(sizingStyle.paddingRight) + parseFloat(sizingStyle.paddingLeft) + "px"); 70102 var paddingSize = parseFloat(sizingStyle.paddingBottom) + parseFloat(sizingStyle.paddingTop), borderSize = parseFloat(sizingStyle.borderBottomWidth) + parseFloat(sizingStyle.borderTopWidth); 70103 return { 70104 sizingStyle, 70105 paddingSize, 70106 borderSize 70107 }; 70108}, getSizingData$1 = getSizingData; 70109function useListener(target, type5, listener) { 70110 var latestListener = useLatest(listener); 70111 React60.useLayoutEffect(function() { 70112 var handler = function(ev) { 70113 return latestListener.current(ev); 70114 }; 70115 if (target) 70116 return target.addEventListener(type5, handler), function() { 70117 return target.removeEventListener(type5, handler); 70118 }; 70119 }, []); 70120} 70121var useFormResetListener = function(libRef, listener) { 70122 useListener(document.body, "reset", function(ev) { 70123 libRef.current.form === ev.target && listener(ev); 70124 }); 70125}, useWindowResizeListener = function(listener) { 70126 useListener(window, "resize", listener); 70127}, useFontsLoadedListener = function(listener) { 70128 useListener(document.fonts, "loadingdone", listener); 70129}, _excluded4 = ["cacheMeasurements", "maxRows", "minRows", "onChange", "onHeightChange"], TextareaAutosize = function(_ref, userRef) { 70130 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() { 70131 var node2 = libRef.current, nodeSizingData = cacheMeasurements && measurementsCacheRef.current ? measurementsCacheRef.current : getSizingData$1(node2); 70132 if (nodeSizingData) { 70133 measurementsCacheRef.current = nodeSizingData; 70134 var _calculateNodeHeight = calculateNodeHeight(nodeSizingData, node2.value || node2.placeholder || "x", minRows, maxRows), height = _calculateNodeHeight[0], rowHeight = _calculateNodeHeight[1]; 70135 heightRef.current !== height && (heightRef.current = height, node2.style.setProperty("height", height + "px", "important"), onHeightChange(height, { 70136 rowHeight 70137 })); 70138 } 70139 }, handleChange = function(event) { 70140 isControlled || resizeTextarea(), onChange(event); 70141 }; 70142 return React60.useLayoutEffect(resizeTextarea), useFormResetListener(libRef, function() { 70143 if (!isControlled) { 70144 var currentValue = libRef.current.value; 70145 requestAnimationFrame(function() { 70146 var node2 = libRef.current; 70147 node2 && currentValue !== node2.value && resizeTextarea(); 70148 }); 70149 } 70150 }), useWindowResizeListener(resizeTextarea), useFontsLoadedListener(resizeTextarea), React60.createElement("textarea", _extends({}, props, { 70151 onChange: handleChange, 70152 ref 70153 })); 70154}, index3 = React60.forwardRef(TextareaAutosize); 70155
70156// src/components/components/Form/Textarea.tsx 70157init_theming(); 70158var Textarea = Object.assign( 70159 styled( 70160 (0, import_react121.forwardRef)(function({ size, valid, align: align2, ...props }, ref) { 70161 return import_react121
vendor: 530 bytes, lines 70161-70190
70161.default.createElement(index3, { ...props, ref }); 70162 }) 70163 )(styles3, sizes, alignment, validation, ({ height = 400 }) => ({ 70164 overflow: "visible", 70165 maxHeight: height 70166 })), 70167 { 70168 displayName: "Textarea" 70169 } 70170); 70171 70172// src/components/components/Form/Form.tsx 70173var Form2 = Object.assign( 70174 styled.form({ 70175 boxSizing: "border-box", 70176 width: "100%" 70177 }), 70178 { 70179 Field, 70180 Input: Input2, 70181 Select, 70182 Textarea, 70183 Button, 70184 Checkbox, 70185 Radio 70186 } 70187); 70188 70189// src/components/components/Popover/Popover.tsx 70190var import_react12
vendor: 17,235 bytes, lines 70190-70575
701902 = __toESM(require_react(), 1); 70191init_theming(); 70192var Wrapper4 = styled.div( 70193 ({ hasCloseButton, padding }) => ({ 70194 display: "inline-block", 70195 position: "relative", 70196 minHeight: hasCloseButton ? 36 : void 0, 70197 zIndex: 2147483647, 70198 colorScheme: "light dark", 70199 padding 70200 }), 70201 ({ theme: theme3, hasChrome }) => hasChrome ? { 70202 filter: ` 70203 drop-shadow(0px 5px 5px rgba(0,0,0,0.05)) 70204 drop-shadow(0 1px 3px rgba(0,0,0,0.1)) 70205 `, 70206 borderRadius: theme3.appBorderRadius + 2, 70207 fontSize: theme3.typography.size.s1 70208 } : {}, 70209 ({ theme: theme3, bgColor }) => bgColor === "default" && { 70210 background: theme3.base === "light" ? lightenColor(theme3.background.app) : theme3.background.app, 70211 color: theme3.color.defaultText 70212 }, 70213 ({ theme: theme3, bgColor }) => bgColor === "inverse" && { 70214 background: theme3.base === "light" ? theme3.color.darkest : theme3.color.lightest, 70215 color: theme3.color.inverseText 70216 }, 70217 ({ theme: theme3, bgColor }) => (bgColor === "positive" || bgColor === "negative" || bgColor === "warning") && { 70218 background: theme3.background[bgColor], 70219 color: theme3.color[`${bgColor}Text`] 70220 } 70221), AbsoluteButton = styled(Button)({ 70222 position: "absolute", 70223 top: 4, 70224 right: 4 70225}), Popover = (0, import_react122.forwardRef)( 70226 ({ 70227 children, 70228 color: color2 = "default", 70229 hasChrome = !0, 70230 hideLabel = "Close", 70231 onHide, 70232 padding = 8, 70233 ...props 70234 }, ref) => import_react122.default.createElement( 70235 Wrapper4, 70236 { 70237 bgColor: color2, 70238 hasChrome, 70239 hasCloseButton: !!onHide, 70240 padding, 70241 ref, 70242 ...props 70243 }, 70244 children, 70245 onHide && import_react122.default.createElement( 70246 AbsoluteButton, 70247 { 70248 ariaLabel: hideLabel, 70249 onClick: onHide, 70250 padding: "small", 70251 variant: "ghost", 70252 size: "small" 70253 }, 70254 import_react122.default.createElement(CloseIcon, null) 70255 ) 70256 ) 70257); 70258Popover.displayName = "Popover"; 70259 70260// src/components/components/Select/SelectOption.tsx 70261var import_react123 = __toESM(require_react(), 1); 70262var SelectOption = ({ 70263 id, 70264 title, 70265 description, 70266 icon, 70267 aside, 70268 children, 70269 isSelected, 70270 isActive, 70271 onClick, 70272 onFocus, 70273 onKeyDown, 70274 shouldLookDisabled = !1, 70275 ...props 70276}) => import_react123.default.createElement( 70277 ActionList.Item, 70278 { 70279 ...props, 70280 id, 70281 role: "option", 70282 tabIndex: isActive ? 0 : -1, 70283 "aria-selected": isSelected, 70284 "aria-disabled": shouldLookDisabled ? !0 : void 0, 70285 onClick, 70286 onFocus, 70287 onKeyDown 70288 }, 70289 children ?? import_react123.default.createElement(import_react123.default.Fragment, null, icon && import_react123.default.createElement(ActionList.Icon, null, icon), import_react123.default.createElement(ActionList.Text, null, import_react123.default.createElement("p", null, title), description && import_react123.default.createElement("small", null, description)), aside) 70290); 70291SelectOption.displayName = "SelectOption"; 70292 70293// src/components/components/Select/helpers.tsx 70294init_theming(); 70295var PAGE_STEP_SIZE = 5, UNDEFINED_VALUE = Symbol.for("undefined"); 70296function isLiteralValue(value) { 70297 return value == null || typeof value == "string" || typeof value == "number" || typeof value == "boolean" || typeof value == "symbol"; 70298} 70299function optionToInternal(option) { 70300 return { 70301 ...option, 70302 type: "option", 70303 value: externalToValue(option.value) 70304 }; 70305} 70306function optionOrResetToInternal(option) { 70307 return "type" in option && option.type === "reset" ? option : optionToInternal(option); 70308} 70309function valueToExternal(value) { 70310 if (value !== UNDEFINED_VALUE) 70311 return value; 70312} 70313function externalToValue(value) { 70314 return value === void 0 ? UNDEFINED_VALUE : value; 70315} 70316var Listbox = styled("ul")({ 70317 minWidth: 180, 70318 height: "100%", 70319 borderRadius: 6, 70320 overflow: "hidden auto", 70321 listStyle: "none", 70322 margin: 0, 70323 padding: 4 70324}); 70325 70326// src/components/components/Select/Select.tsx 70327function valueToId(parentId, { value }) { 70328 return `${parentId}-opt-${String(value) ?? "sb-reset"}`; 70329} 70330var SelectedOptionCount = styled.span(({ theme: theme3 }) => ({ 70331 appearance: "none", 70332 color: theme3.textMutedColor, 70333 fontSize: 12 70334})); 70335function setSelectedFromDefault(options, defaultOptions2) { 70336 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); 70337} 70338var StyledButton3 = styled(Button)( 70339 ({ $isOpen: isOpen, $hasSelection: hasSelection, theme: theme3 }) => isOpen || hasSelection ? { 70340 boxShadow: "none", 70341 background: curriedTransparentize$1(0.93, theme3.barSelectedColor), 70342 color: theme3.base === "light" ? curriedDarken$1(0.1, theme3.color.secondary) : theme3.color.secondary 70343 } : {} 70344), Underlay = styled.div({ 70345 position: "fixed", 70346 inset: 0, 70347 // This will do for now, our popovers use the max z-index of 2147483647. We'll want to 70348 // inherit a base from a CSS variable and add preset values to it in the future (e.g. 70349 // 100 for underlay, 200 for overlay) if we start using Select in dialogs. 70350 zIndex: 1e3 70351}), MinimalistPopover = ({ children, handleClose, triggerRef }) => { 70352 let popoverRef = import_react124.default.useRef(null); 70353 $e0b6e0b68ec7f50f$export$872b660ac5a1ff98({ 70354 ref: popoverRef, 70355 onInteractOutside: handleClose 70356 }), (0, import_react124.useEffect)(() => { 70357 if (popoverRef.current) 70358 return $5e3802645cc19319$export$1c3ebcada18427bf([popoverRef.current], { shouldUseInert: !0 }); 70359 }, []); 70360 let { overlayProps: positionProps } = $2a41e45df1593e64$export$d39e1813b3bdd0e1({ 70361 targetRef: triggerRef, 70362 overlayRef: popoverRef, 70363 placement: "bottom start", 70364 offset: 8, 70365 maxHeight: 504, 70366 isOpen: !0 70367 }), { overlayProps, underlayProps } = $a11501f3d1d39e6c$export$ea8f71083e90600f( 70368 { 70369 isOpen: !0, 70370 onClose: handleClose, 70371 isDismissable: !0, 70372 /* We do this ourselves. */ 70373 shouldCloseOnBlur: !1, 70374 /* We also do this ourselves. */ 70375 isKeyboardDismissDisabled: !0 70376 }, 70377 popoverRef 70378 ), theme3 = useTheme(); 70379 return positionProps.style = { 70380 ...positionProps.style, 70381 overflow: "hidden auto", 70382 scrollbarColor: `${theme3.barTextColor} transparent`, 70383 scrollbarWidth: "thin" 70384 }, import_react124.default.createElement($337b884510726a0d$export$c6fdb837b070b4ff, { disableFocusManagement: !0, ...overlayProps }, import_react124.default.createElement(Underlay, { ...underlayProps }), import_react124.default.createElement(Popover, { hasChrome: !0, ref: popoverRef, padding: 0, ...positionProps }, children)); 70385}, Select2 = (0, import_react124.forwardRef)( 70386 ({ 70387 children, 70388 icon, 70389 disabled = !1, 70390 options: calleeOptions, 70391 defaultOptions: defaultOptions2, 70392 multiSelect = !1, 70393 onReset, 70394 padding = "small", 70395 resetLabel, 70396 onSelect, 70397 onDeselect, 70398 onChange, 70399 tooltip, 70400 ariaLabel, 70401 showSelectedOptionTitle = !0, 70402 ...props 70403 }, ref) => { 70404 let [isOpen, setIsOpen] = (0, import_react124.useState)(props.defaultOpen || !1), [shouldRefocusTrigger, setShouldRefocusTrigger] = (0, import_react124.useState)(!1), triggerRef = $df56164dff5785e2$export$4338b53315abf666(ref), id = (0, import_react124.useMemo)(() => "select-" + Math.random().toString(36).substring(2, 15), []), listboxId = `${id}-listbox`, listboxRef = (0, import_react124.useRef)(null), otState = $fc909762b330b746$export$61c6a8c84e605fb6({ 70405 isOpen: isOpen && !disabled, 70406 onOpenChange: setIsOpen 70407 }), handleClose = (0, import_react124.useCallback)(() => { 70408 setIsOpen(!1), setShouldRefocusTrigger(!0); 70409 }, []); 70410 (0, import_react124.useEffect)(() => { 70411 !otState.isOpen && shouldRefocusTrigger && (triggerRef.current?.focus(), setShouldRefocusTrigger(!1)); 70412 }, [otState.isOpen, shouldRefocusTrigger, triggerRef]); 70413 let [selectedOptions, setSelectedOptions] = (0, import_react124.useState)( 70414 setSelectedFromDefault(calleeOptions, defaultOptions2) 70415 ), handleSelectOption = (0, import_react124.useCallback)( 70416 (option) => { 70417 option.type === "reset" ? (onChange?.([]), onReset?.(), setSelectedOptions([])) : setSelectedOptions(multiSelect ? (previous) => { 70418 let newSelected = []; 70419 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; 70420 } : (current) => current.every((opt) => opt.value !== option.value) ? (onSelect?.(valueToExternal(option.value)), onChange?.([valueToExternal(option.value)]), [option]) : current); 70421 }, 70422 [multiSelect, onChange, onSelect, onDeselect, onReset] 70423 ), resetOption = (0, import_react124.useMemo)( 70424 () => onReset ? { 70425 type: "reset", 70426 value: void 0, 70427 title: resetLabel ?? "Reset selection", 70428 icon: import_react124.default.createElement(RefreshIcon, null), 70429 description: void 0, 70430 children: void 0 70431 } : void 0, 70432 [onReset, resetLabel] 70433 ), options = (0, import_react124.useMemo)( 70434 () => resetOption ? [resetOption, ...calleeOptions] : calleeOptions, 70435 [calleeOptions, resetOption] 70436 ); 70437 (0, import_react124.useEffect)(() => { 70438 defaultOptions2 && setSelectedOptions(setSelectedFromDefault(calleeOptions, defaultOptions2)); 70439 }, [defaultOptions2, calleeOptions]); 70440 let [activeOption, setActiveOptionState] = (0, import_react124.useState)( 70441 void 0 70442 ), setActiveOption = (0, import_react124.useCallback)( 70443 (option, changeSelection = !0) => { 70444 setActiveOptionState(optionOrResetToInternal(option)), !multiSelect && changeSelection && handleSelectOption(optionOrResetToInternal(option)); 70445 }, 70446 [multiSelect, handleSelectOption] 70447 ), moveActiveOptionDown = (0, import_react124.useCallback)( 70448 (step2 = 1) => { 70449 if (!isOpen || !activeOption) { 70450 setActiveOption(options[step2 === 1 ? 0 : Math.min(step2, options.length - 1)]); 70451 return; 70452 } 70453 let currentIndex = options.findIndex( 70454 (option) => activeOption.type === "reset" ? "type" in option && option.type === "reset" : externalToValue(option.value) === activeOption.value 70455 ), nextIndex = currentIndex + step2, newActiveOption; 70456 nextIndex >= options.length && currentIndex === options.length - 1 ? newActiveOption = options[0] : newActiveOption = options[Math.min(options.length - 1, nextIndex)], setActiveOption(newActiveOption); 70457 }, 70458 [isOpen, activeOption, setActiveOption, options] 70459 ), moveActiveOptionUp = (0, import_react124.useCallback)( 70460 (step2 = 1) => { 70461 if (!isOpen || !activeOption) { 70462 setActiveOption(options[Math.max(0, options.length - step2)]); 70463 return; 70464 } 70465 let currentIndex = options.findIndex( 70466 (option) => activeOption.type === "reset" ? "type" in option && option.type === "reset" : externalToValue(option.value) === activeOption.value 70467 ), nextIndex = currentIndex - step2, newActiveOption; 70468 nextIndex < 0 && currentIndex === 0 ? newActiveOption = options[options.length - 1] : newActiveOption = options[Math.max(0, nextIndex)], setActiveOption(newActiveOption); 70469 }, 70470 [isOpen, activeOption, setActiveOption, options] 70471 ), handleButtonKeyDown = (0, import_react124.useCallback)( 70472 (e) => { 70473 let openAt = (index4) => { 70474 e.preventDefault(), setActiveOption(options[index4]), setIsOpen(!0); 70475 }, indexOfFirstSelected = options.findIndex( 70476 (option) => selectedOptions.some((sel) => sel.value === externalToValue(option.value)) 70477 ), hasSelection = indexOfFirstSelected !== -1, listStart = resetOption && !hasSelection ? 1 : 0, listEnd = options.length - 1; 70478 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( 70479 Math.min((hasSelection ? indexOfFirstSelected : listStart) + PAGE_STEP_SIZE, listEnd) 70480 ) : e.key === "PageUp" && openAt(Math.max(0, (hasSelection ? indexOfFirstSelected : listEnd) - PAGE_STEP_SIZE)); 70481 }, 70482 [options, resetOption, setActiveOption, selectedOptions] 70483 ), handleListboxKeyDown = (0, import_react124.useCallback)( 70484 (e) => { 70485 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); 70486 }, 70487 [handleClose, moveActiveOptionDown, moveActiveOptionUp, options, setActiveOption] 70488 ); 70489 (0, import_react124.useEffect)(() => { 70490 if (isOpen && activeOption) { 70491 let optionElement = document.getElementById(valueToId(id, activeOption)); 70492 optionElement && (optionElement.scrollIntoView({ block: "nearest" }), optionElement.focus()); 70493 } else isOpen && listboxRef.current?.focus(); 70494 }, [isOpen, activeOption, id]); 70495 let finalAriaLabel = (0, import_react124.useMemo)(() => selectedOptions.length === 1 ? `${ariaLabel} ${selectedOptions[0].title}` : selectedOptions.length ? `${ariaLabel}, ${selectedOptions.length} values selected` : ariaLabel, [ariaLabel, selectedOptions]); 70496 return import_react124.default.createElement(import_react124.default.Fragment, null, import_react124.default.createElement( 70497 StyledButton3, 70498 { 70499 ...props, 70500 variant: "ghost", 70501 ariaLabel: finalAriaLabel, 70502 tooltip: tooltip ?? ariaLabel, 70503 disableAllTooltips: isOpen, 70504 id, 70505 ref: triggerRef, 70506 padding, 70507 $isOpen: isOpen, 70508 $hasSelection: !!selectedOptions.length, 70509 "aria-disabled": disabled, 70510 disabled, 70511 onClick: () => { 70512 isOpen ? handleClose() : setIsOpen(!0); 70513 }, 70514 tabIndex: isOpen ? -1 : 0, 70515 onKeyDown: handleButtonKeyDown, 70516 role: "button", 70517 "aria-controls": isOpen ? listboxId : void 0, 70518 "aria-expanded": isOpen, 70519 "aria-haspopup": "listbox" 70520 }, 70521 !multiSelect && import_react124.default.createElement(import_react124.default.Fragment, null, icon, showSelectedOptionTitle && selectedOptions[0]?.title || children), 70522 multiSelect && import_react124.default.createElement(import_react124.default.Fragment, null, icon, children, !!selectedOptions.length && import_react124.default.createElement( 70523 SelectedOptionCount, 70524 { 70525 "aria-label": `${selectedOptions.length} ${selectedOptions.length > 1 ? "items" : "item"} selected` 70526 }, 70527 selectedOptions?.length 70528 )) 70529 ), otState.isOpen && import_react124.default.createElement(MinimalistPopover, { handleClose, triggerRef }, import_react124.default.createElement( 70530 Listbox, 70531 { 70532 "aria-label": ariaLabel, 70533 role: "listbox", 70534 id: listboxId, 70535 ref: listboxRef, 70536 "aria-multiselectable": multiSelect, 70537 onKeyDown: handleListboxKeyDown, 70538 tabIndex: isOpen ? 0 : -1 70539 }, 70540 options.map((opt) => ({ 70541 option: optionOrResetToInternal(opt), 70542 externalOption: opt 70543 })).map(({ externalOption, option }) => { 70544 let isSelected = selectedOptions?.some((sel) => sel.value === option.value) && option !== resetOption, isReset = option === resetOption; 70545 return import_react124.default.createElement( 70546 SelectOption, 70547 { 70548 key: option.value === void 0 ? "sb-reset" : String(option.value), 70549 title: option.title, 70550 description: option.description, 70551 aside: option.aside, 70552 icon: !isReset && multiSelect ? ( 70553 // Purely decorative. 70554 import_react124.default.createElement(Form2.Checkbox, { checked: isSelected, hidden: !0, role: "presentation" }) 70555 ) : option.icon, 70556 id: valueToId(id, option), 70557 isActive: isOpen && activeOption?.value === option.value, 70558 isSelected, 70559 onClick: () => { 70560 handleSelectOption(option), multiSelect || handleClose(); 70561 }, 70562 onFocus: () => setActiveOption(externalOption, !1), 70563 shouldLookDisabled: isReset && selectedOptions.length === 0 && multiSelect, 70564 onKeyDown: (e) => { 70565 e.key === "Enter" || e.key === " " ? (e.preventDefault(), handleSelectOption(option), multiSelect || handleClose()) : e.key === "Tab" && (multiSelect || handleSelectOption(option), handleClose()); 70566 } 70567 }, 70568 option.children 70569 ); 70570 }) 70571 ))); 70572 } 70573); 70574Select2.displayName = "Select"; 70575
70576// src/components/components/Popover/PopoverProvider.tsx 70577var import_react156 = __toESM(require_react(), 1); 70578init_client_logger(); 70579
vendor: 7,979 bytes, lines 70580-70739
70580// ../../node_modules/@react-aria/collections/dist/BaseCollection.mjs 70581var $23b9f4fcf0fe224b$export$d68d59712b04d9d1 = class { 70582 get childNodes() { 70583 throw new Error("childNodes is not supported"); 70584 } 70585 clone() { 70586 let node2 = new this.constructor(this.key); 70587 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; 70588 } 70589 // eslint-disable-next-line @typescript-eslint/no-unused-vars 70590 filter(collection, newCollection, filterFn) { 70591 let clone3 = this.clone(); 70592 return newCollection.addDescendants(clone3, collection), clone3; 70593 } 70594 constructor(key) { 70595 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; 70596 } 70597}, $23b9f4fcf0fe224b$export$b1918e978f1ee46f = class extends $23b9f4fcf0fe224b$export$d68d59712b04d9d1 { 70598 filter(collection, newCollection, filterFn) { 70599 let [firstKey, lastKey] = $23b9f4fcf0fe224b$var$filterChildren(collection, newCollection, this.firstChildKey, filterFn), newNode = this.clone(); 70600 return newNode.firstChildKey = firstKey, newNode.lastChildKey = lastKey, newNode; 70601 } 70602}, $23b9f4fcf0fe224b$export$5ae2504e948afce5 = class extends $23b9f4fcf0fe224b$export$d68d59712b04d9d1 { 70603}; 70604$23b9f4fcf0fe224b$export$5ae2504e948afce5.type = "header"; 70605var $23b9f4fcf0fe224b$export$8258a0665a675899 = class extends $23b9f4fcf0fe224b$export$d68d59712b04d9d1 { 70606}; 70607$23b9f4fcf0fe224b$export$8258a0665a675899.type = "loader"; 70608var $23b9f4fcf0fe224b$export$fd11f34e1d07f134 = class extends $23b9f4fcf0fe224b$export$b1918e978f1ee46f { 70609 filter(collection, newCollection, filterFn) { 70610 if (filterFn(this.textValue, this)) { 70611 let clone3 = this.clone(); 70612 return newCollection.addDescendants(clone3, collection), clone3; 70613 } 70614 return null; 70615 } 70616}; 70617$23b9f4fcf0fe224b$export$fd11f34e1d07f134.type = "item"; 70618var $23b9f4fcf0fe224b$export$437f11dc9b403b78 = class extends $23b9f4fcf0fe224b$export$b1918e978f1ee46f { 70619 filter(collection, newCollection, filterFn) { 70620 let filteredSection = super.filter(collection, newCollection, filterFn); 70621 if (filteredSection && filteredSection.lastChildKey !== null) { 70622 let lastChild = collection.getItem(filteredSection.lastChildKey); 70623 if (lastChild && lastChild.type !== "header") return filteredSection; 70624 } 70625 return null; 70626 } 70627}; 70628$23b9f4fcf0fe224b$export$437f11dc9b403b78.type = "section"; 70629var $23b9f4fcf0fe224b$export$408d25a4e12db025 = class { 70630 get size() { 70631 return this.itemCount; 70632 } 70633 getKeys() { 70634 return this.keyMap.keys(); 70635 } 70636 *[Symbol.iterator]() { 70637 let node2 = this.firstKey != null ? this.keyMap.get(this.firstKey) : void 0; 70638 for (; node2; ) 70639 yield node2, node2 = node2.nextKey != null ? this.keyMap.get(node2.nextKey) : void 0; 70640 } 70641 getChildren(key) { 70642 let keyMap = this.keyMap; 70643 return { 70644 *[Symbol.iterator]() { 70645 let parent = keyMap.get(key), node2 = parent?.firstChildKey != null ? keyMap.get(parent.firstChildKey) : null; 70646 for (; node2; ) 70647 yield node2, node2 = node2.nextKey != null ? keyMap.get(node2.nextKey) : void 0; 70648 } 70649 }; 70650 } 70651 getKeyBefore(key) { 70652 let node2 = this.keyMap.get(key); 70653 if (!node2) return null; 70654 if (node2.prevKey != null) { 70655 for (node2 = this.keyMap.get(node2.prevKey); node2 && node2.type !== "item" && node2.lastChildKey != null; ) node2 = this.keyMap.get(node2.lastChildKey); 70656 var _node_key; 70657 return (_node_key = node2?.key) !== null && _node_key !== void 0 ? _node_key : null; 70658 } 70659 return node2.parentKey; 70660 } 70661 getKeyAfter(key) { 70662 let node2 = this.keyMap.get(key); 70663 if (!node2) return null; 70664 if (node2.type !== "item" && node2.firstChildKey != null) return node2.firstChildKey; 70665 for (; node2; ) { 70666 if (node2.nextKey != null) return node2.nextKey; 70667 if (node2.parentKey != null) node2 = this.keyMap.get(node2.parentKey); 70668 else return null; 70669 } 70670 return null; 70671 } 70672 getFirstKey() { 70673 return this.firstKey; 70674 } 70675 getLastKey() { 70676 let node2 = this.lastKey != null ? this.keyMap.get(this.lastKey) : null; 70677 for (; node2?.lastChildKey != null; ) node2 = this.keyMap.get(node2.lastChildKey); 70678 var _node_key; 70679 return (_node_key = node2?.key) !== null && _node_key !== void 0 ? _node_key : null; 70680 } 70681 getItem(key) { 70682 var _this_keyMap_get; 70683 return (_this_keyMap_get = this.keyMap.get(key)) !== null && _this_keyMap_get !== void 0 ? _this_keyMap_get : null; 70684 } 70685 at() { 70686 throw new Error("Not implemented"); 70687 } 70688 clone() { 70689 let Constructor = this.constructor, collection = new Constructor(); 70690 return collection.keyMap = new Map(this.keyMap), collection.firstKey = this.firstKey, collection.lastKey = this.lastKey, collection.itemCount = this.itemCount, collection; 70691 } 70692 addNode(node2) { 70693 if (this.frozen) throw new Error("Cannot add a node to a frozen collection"); 70694 node2.type === "item" && this.keyMap.get(node2.key) == null && this.itemCount++, this.keyMap.set(node2.key, node2); 70695 } 70696 // Deeply add a node and its children to the collection from another collection, primarily used when filtering a collection 70697 addDescendants(node2, oldCollection) { 70698 this.addNode(node2); 70699 let children = oldCollection.getChildren(node2.key); 70700 for (let child of children) this.addDescendants(child, oldCollection); 70701 } 70702 removeNode(key) { 70703 if (this.frozen) throw new Error("Cannot remove a node to a frozen collection"); 70704 let node2 = this.keyMap.get(key); 70705 node2 != null && node2.type === "item" && this.itemCount--, this.keyMap.delete(key); 70706 } 70707 commit(firstKey, lastKey, isSSR = !1) { 70708 if (this.frozen) throw new Error("Cannot commit a frozen collection"); 70709 this.firstKey = firstKey, this.lastKey = lastKey, this.frozen = !isSSR; 70710 } 70711 filter(filterFn) { 70712 let newCollection = new this.constructor(), [firstKey, lastKey] = $23b9f4fcf0fe224b$var$filterChildren(this, newCollection, this.firstKey, filterFn); 70713 return newCollection?.commit(firstKey, lastKey), newCollection; 70714 } 70715 constructor() { 70716 this.keyMap = /* @__PURE__ */ new Map(), this.firstKey = null, this.lastKey = null, this.frozen = !1, this.itemCount = 0; 70717 } 70718}; 70719function $23b9f4fcf0fe224b$var$filterChildren(collection, newCollection, firstChildKey, filterFn) { 70720 if (firstChildKey == null) return [ 70721 null, 70722 null 70723 ]; 70724 let firstNode = null, lastNode = null, currentNode = collection.getItem(firstChildKey); 70725 for (; currentNode != null; ) { 70726 let newNode = currentNode.filter(collection, newCollection, filterFn); 70727 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; 70728 } 70729 if (lastNode && lastNode.type === "separator") { 70730 let prevKey = lastNode.prevKey; 70731 newCollection.removeNode(lastNode.key), prevKey ? (lastNode = newCollection.getItem(prevKey), lastNode.nextKey = null) : lastNode = null; 70732 } 70733 var _firstNode_key, _lastNode_key; 70734 return [ 70735 (_firstNode_key = firstNode?.key) !== null && _firstNode_key !== void 0 ? _firstNode_key : null, 70736 (_lastNode_key = lastNode?.key) !== null && _lastNode_key !== void 0 ? _lastNode_key : null 70737 ]; 70738} 70739
vendor: 14,098 bytes, lines 70740-70955
70740// ../../node_modules/@react-aria/collections/dist/Document.mjs 70741var $681cc3c98f569e39$export$410b0c854570d131 = class { 70742 *[Symbol.iterator]() { 70743 let node2 = this.firstChild; 70744 for (; node2; ) 70745 yield node2, node2 = node2.nextSibling; 70746 } 70747 get firstChild() { 70748 return this._firstChild; 70749 } 70750 set firstChild(firstChild) { 70751 this._firstChild = firstChild, this.ownerDocument.markDirty(this); 70752 } 70753 get lastChild() { 70754 return this._lastChild; 70755 } 70756 set lastChild(lastChild) { 70757 this._lastChild = lastChild, this.ownerDocument.markDirty(this); 70758 } 70759 get previousSibling() { 70760 return this._previousSibling; 70761 } 70762 set previousSibling(previousSibling) { 70763 this._previousSibling = previousSibling, this.ownerDocument.markDirty(this); 70764 } 70765 get nextSibling() { 70766 return this._nextSibling; 70767 } 70768 set nextSibling(nextSibling) { 70769 this._nextSibling = nextSibling, this.ownerDocument.markDirty(this); 70770 } 70771 get parentNode() { 70772 return this._parentNode; 70773 } 70774 set parentNode(parentNode) { 70775 this._parentNode = parentNode, this.ownerDocument.markDirty(this); 70776 } 70777 get isConnected() { 70778 var _this_parentNode; 70779 return ((_this_parentNode = this.parentNode) === null || _this_parentNode === void 0 ? void 0 : _this_parentNode.isConnected) || !1; 70780 } 70781 invalidateChildIndices(child) { 70782 (this._minInvalidChildIndex == null || !this._minInvalidChildIndex.isConnected || child.index < this._minInvalidChildIndex.index) && (this._minInvalidChildIndex = child, this.ownerDocument.markDirty(this)); 70783 } 70784 updateChildIndices() { 70785 let node2 = this._minInvalidChildIndex; 70786 for (; node2; ) 70787 node2.index = node2.previousSibling ? node2.previousSibling.index + 1 : 0, node2 = node2.nextSibling; 70788 this._minInvalidChildIndex = null; 70789 } 70790 appendChild(child) { 70791 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(); 70792 } 70793 insertBefore(newNode, referenceNode) { 70794 if (referenceNode == null) return this.appendChild(newNode); 70795 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(); 70796 } 70797 removeChild(child) { 70798 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()); 70799 } 70800 addEventListener() { 70801 } 70802 removeEventListener() { 70803 } 70804 get previousVisibleSibling() { 70805 let node2 = this.previousSibling; 70806 for (; node2 && node2.isHidden; ) node2 = node2.previousSibling; 70807 return node2; 70808 } 70809 get nextVisibleSibling() { 70810 let node2 = this.nextSibling; 70811 for (; node2 && node2.isHidden; ) node2 = node2.nextSibling; 70812 return node2; 70813 } 70814 get firstVisibleChild() { 70815 let node2 = this.firstChild; 70816 for (; node2 && node2.isHidden; ) node2 = node2.nextSibling; 70817 return node2; 70818 } 70819 get lastVisibleChild() { 70820 let node2 = this.lastChild; 70821 for (; node2 && node2.isHidden; ) node2 = node2.previousSibling; 70822 return node2; 70823 } 70824 constructor(ownerDocument) { 70825 this._firstChild = null, this._lastChild = null, this._previousSibling = null, this._nextSibling = null, this._parentNode = null, this._minInvalidChildIndex = null, this.ownerDocument = ownerDocument; 70826 } 70827}, $681cc3c98f569e39$export$dc064fe9e59310fd = class _$681cc3c98f569e39$export$dc064fe9e59310fd extends $681cc3c98f569e39$export$410b0c854570d131 { 70828 get index() { 70829 return this._index; 70830 } 70831 set index(index4) { 70832 this._index = index4, this.ownerDocument.markDirty(this); 70833 } 70834 get level() { 70835 var _this_node; 70836 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; 70837 } 70838 /** 70839 * Lazily gets a mutable instance of a Node. If the node has already 70840 * been cloned during this update cycle, it just returns the existing one. 70841 */ 70842 getMutableNode() { 70843 return this.node == null ? null : (this.isMutated || (this.node = this.node.clone(), this.isMutated = !0), this.ownerDocument.markDirty(this), this.node); 70844 } 70845 updateNode() { 70846 var _this_parentNode_node, _this_previousVisibleSibling_node, _this_previousVisibleSibling, _nextSibling_node, _this_firstVisibleChild_node, _this_firstVisibleChild, _this_lastVisibleChild_node, _this_lastVisibleChild; 70847 let nextSibling = this.nextVisibleSibling, node2 = this.getMutableNode(); 70848 if (node2 != null) { 70849 node2.index = this.index, node2.level = this.level; 70850 var _this_parentNode_node_key; 70851 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; 70852 var _this_previousVisibleSibling_node_key; 70853 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; 70854 var _nextSibling_node_key; 70855 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; 70856 var _this_firstVisibleChild_node_key; 70857 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; 70858 var _this_lastVisibleChild_node_key; 70859 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) { 70860 var _node_colIndex, _node_colSpan; 70861 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); 70862 if (nextSibling.node != null && nextColIndex !== nextSibling.node.colIndex) { 70863 let siblingNode = nextSibling.getMutableNode(); 70864 siblingNode.colIndex = nextColIndex; 70865 } 70866 } 70867 } 70868 } 70869 setProps(obj, ref, CollectionNodeClass, rendered, render) { 70870 let node2, { value: value1, textValue, id, ...props } = obj; 70871 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"); 70872 props.colSpan != null && (node2.colSpan = props.colSpan), this.isConnected && this.ownerDocument.queueUpdate(); 70873 } 70874 get style() { 70875 let element = this; 70876 return { 70877 get display() { 70878 return element.isHidden ? "none" : ""; 70879 }, 70880 set display(value) { 70881 let isHidden3 = value === "none"; 70882 if (element.isHidden !== isHidden3) { 70883 var _element_parentNode, _element_parentNode1; 70884 (((_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); 70885 let prev2 = element.previousVisibleSibling, next2 = element.nextVisibleSibling; 70886 prev2 && element.ownerDocument.markDirty(prev2), next2 && element.ownerDocument.markDirty(next2), element.isHidden = isHidden3, element.ownerDocument.markDirty(element); 70887 } 70888 } 70889 }; 70890 } 70891 hasAttribute() { 70892 } 70893 setAttribute() { 70894 } 70895 setAttributeNS() { 70896 } 70897 removeAttribute() { 70898 } 70899 constructor(type5, ownerDocument) { 70900 super(ownerDocument), this.nodeType = 8, this.isMutated = !0, this._index = 0, this.isHidden = !1, this.node = null; 70901 } 70902}, $681cc3c98f569e39$export$b34a105447964f9f = class extends $681cc3c98f569e39$export$410b0c854570d131 { 70903 get isConnected() { 70904 return this.isMounted; 70905 } 70906 createElement(type5) { 70907 return new $681cc3c98f569e39$export$dc064fe9e59310fd(type5, this); 70908 } 70909 getMutableCollection() { 70910 return this.nextCollection || (this.nextCollection = this.collection.clone()), this.nextCollection; 70911 } 70912 markDirty(node2) { 70913 this.dirtyNodes.add(node2); 70914 } 70915 addNode(element) { 70916 if (element.isHidden || element.node == null) return; 70917 let collection = this.getMutableCollection(); 70918 if (!collection.getItem(element.node.key)) for (let child of element) this.addNode(child); 70919 collection.addNode(element.node); 70920 } 70921 removeNode(node2) { 70922 if (node2.node == null) return; 70923 for (let child of node2) this.removeNode(child); 70924 this.getMutableCollection().removeNode(node2.node.key); 70925 } 70926 /** Finalizes the collection update, updating all nodes and freezing the collection. */ 70927 getCollection() { 70928 return this.inSubscription ? this.collection.clone() : (this.queuedRender = !1, this.updateCollection(), this.collection); 70929 } 70930 updateCollection() { 70931 for (let element of this.dirtyNodes) element instanceof $681cc3c98f569e39$export$dc064fe9e59310fd && (!element.isConnected || element.isHidden) ? this.removeNode(element) : element.updateChildIndices(); 70932 for (let element of this.dirtyNodes) element instanceof $681cc3c98f569e39$export$dc064fe9e59310fd && (element.isConnected && !element.isHidden && (element.updateNode(), this.addNode(element)), element.isMutated = !1); 70933 if (this.dirtyNodes.clear(), this.nextCollection) { 70934 var _this_firstVisibleChild_node, _this_firstVisibleChild, _this_lastVisibleChild_node, _this_lastVisibleChild, _this_firstVisibleChild_node_key, _this_lastVisibleChild_node_key; 70935 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); 70936 } 70937 } 70938 queueUpdate() { 70939 if (!(this.dirtyNodes.size === 0 || this.queuedRender)) { 70940 this.queuedRender = !0, this.inSubscription = !0; 70941 for (let fn4 of this.subscriptions) fn4(); 70942 this.inSubscription = !1; 70943 } 70944 } 70945 subscribe(fn4) { 70946 return this.subscriptions.add(fn4), () => this.subscriptions.delete(fn4); 70947 } 70948 resetAfterSSR() { 70949 this.isSSR && (this.isSSR = !1, this.firstChild = null, this.lastChild = null, this.nodeId = 0); 70950 } 70951 constructor(collection) { 70952 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; 70953 } 70954}; 70955
vendor: 1,379 bytes, lines 70956-70990
70956// ../../node_modules/@react-aria/collections/dist/useCachedChildren.mjs 70957var import_react125 = __toESM(require_react(), 1); 70958function $e948873055cbafe4$export$727c8fc270210f13(props) { 70959 let { children, items, idScope, addIdAndValue, dependencies = [] } = props, cache = (0, import_react125.useMemo)(() => /* @__PURE__ */ new WeakMap(), dependencies); 70960 return (0, import_react125.useMemo)(() => { 70961 if (items && typeof children == "function") { 70962 let res = []; 70963 for (let item of items) { 70964 let rendered = cache.get(item); 70965 if (!rendered) { 70966 rendered = children(item); 70967 var _rendered_props_id, _ref; 70968 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; 70969 if (key == null) throw new Error("Could not determine key for item"); 70970 idScope && (key = idScope + ":" + key), rendered = (0, import_react125.cloneElement)(rendered, addIdAndValue ? { 70971 key, 70972 id: key, 70973 value: item 70974 } : { 70975 key 70976 }), cache.set(item, rendered); 70977 } 70978 res.push(rendered); 70979 } 70980 return res; 70981 } else if (typeof children != "function") return children; 70982 }, [ 70983 children, 70984 items, 70985 cache, 70986 idScope, 70987 addIdAndValue 70988 ]); 70989} 70990
vendor: 1,521 bytes, lines 70991-71021
70991// ../../node_modules/@react-aria/collections/dist/Hidden.mjs 70992var import_react126 = __toESM(require_react(), 1); 70993if (typeof HTMLTemplateElement < "u") { 70994 let getFirstChild = Object.getOwnPropertyDescriptor(Node.prototype, "firstChild").get; 70995 Object.defineProperty(HTMLTemplateElement.prototype, "firstChild", { 70996 configurable: !0, 70997 enumerable: !0, 70998 get: function() { 70999 return this.dataset.reactAriaHidden ? this.content.firstChild : getFirstChild.call(this); 71000 } 71001 }); 71002} 71003var $f39a9eba43920ace$export$94b6d0abf7d33e8c = (0, import_react126.createContext)(!1); 71004function $f39a9eba43920ace$export$8dc98ba7eadeaa56(props) { 71005 if ((0, import_react126.useContext)($f39a9eba43920ace$export$94b6d0abf7d33e8c)) 71006 return import_react126.default.createElement(import_react126.default.Fragment, null, props.children); 71007 let children = import_react126.default.createElement($f39a9eba43920ace$export$94b6d0abf7d33e8c.Provider, { 71008 value: !0 71009 }, props.children); 71010 return import_react126.default.createElement("template", { 71011 "data-react-aria-hidden": !0 71012 }, children); 71013} 71014function $f39a9eba43920ace$export$86427a43e3e48ebb(fn4) { 71015 let Wrapper9 = (props, ref) => (0, import_react126.useContext)($f39a9eba43920ace$export$94b6d0abf7d33e8c) ? null : fn4(props, ref); 71016 return Wrapper9.displayName = fn4.displayName || fn4.name, (0, import_react126.forwardRef)(Wrapper9); 71017} 71018function $f39a9eba43920ace$export$b5d7cc18bb8d2b59() { 71019 return (0, import_react126.useContext)($f39a9eba43920ace$export$94b6d0abf7d33e8c); 71020} 71021
vendor: 8,038 bytes, lines 71022-71160
71022// ../../node_modules/@react-aria/collections/dist/CollectionBuilder.mjs 71023var import_react_dom5 = __toESM(require_react_dom(), 1); 71024var import_react127 = __toESM(require_react(), 1); 71025var import_shim = __toESM(require_shim(), 1), $e1995378a142960e$var$ShallowRenderContext = (0, import_react127.createContext)(!1), $e1995378a142960e$var$CollectionDocumentContext = (0, import_react127.createContext)(null); 71026function $e1995378a142960e$export$bf788dd355e3a401(props) { 71027 if ((0, import_react127.useContext)($e1995378a142960e$var$CollectionDocumentContext)) 71028 return props.content; 71029 let { collection, document: document13 } = $e1995378a142960e$var$useCollectionDocument(props.createCollection); 71030 return import_react127.default.createElement(import_react127.default.Fragment, null, import_react127.default.createElement($f39a9eba43920ace$export$8dc98ba7eadeaa56, null, import_react127.default.createElement($e1995378a142960e$var$CollectionDocumentContext.Provider, { 71031 value: document13 71032 }, props.content)), import_react127.default.createElement($e1995378a142960e$var$CollectionInner, { 71033 render: props.children, 71034 collection 71035 })); 71036} 71037function $e1995378a142960e$var$CollectionInner({ collection, render }) { 71038 return render(collection); 71039} 71040function $e1995378a142960e$var$useSyncExternalStoreFallback(subscribe, getSnapshot, getServerSnapshot) { 71041 let isSSR = $b5e257d569688ac6$export$535bd6ca7f90a273(), isSSRRef = (0, import_react127.useRef)(isSSR); 71042 isSSRRef.current = isSSR; 71043 let getSnapshotWrapper = (0, import_react127.useCallback)(() => isSSRRef.current ? getServerSnapshot() : getSnapshot(), [ 71044 getSnapshot, 71045 getServerSnapshot 71046 ]); 71047 return (0, import_shim.useSyncExternalStore)(subscribe, getSnapshotWrapper); 71048} 71049var $e1995378a142960e$var$useSyncExternalStore = typeof import_react127.default.useSyncExternalStore == "function" ? import_react127.default.useSyncExternalStore : $e1995378a142960e$var$useSyncExternalStoreFallback; 71050function $e1995378a142960e$var$useCollectionDocument(createCollection) { 71051 let [document13] = (0, import_react127.useState)(() => new $681cc3c98f569e39$export$b34a105447964f9f(createCollection?.() || new $23b9f4fcf0fe224b$export$408d25a4e12db025())), subscribe = (0, import_react127.useCallback)((fn4) => document13.subscribe(fn4), [ 71052 document13 71053 ]), getSnapshot = (0, import_react127.useCallback)(() => { 71054 let collection2 = document13.getCollection(); 71055 return document13.isSSR && document13.resetAfterSSR(), collection2; 71056 }, [ 71057 document13 71058 ]), getServerSnapshot = (0, import_react127.useCallback)(() => (document13.isSSR = !0, document13.getCollection()), [ 71059 document13 71060 ]), collection = $e1995378a142960e$var$useSyncExternalStore(subscribe, getSnapshot, getServerSnapshot); 71061 return $f0a04ccd8dbdd83b$export$e5c5a5f917a5871c(() => (document13.isMounted = !0, () => { 71062 document13.isMounted = !1; 71063 }), [ 71064 document13 71065 ]), { 71066 collection, 71067 document: document13 71068 }; 71069} 71070var $e1995378a142960e$var$SSRContext = (0, import_react127.createContext)(null); 71071function $e1995378a142960e$var$createCollectionNodeClass(type5) { 71072 var _class; 71073 return _class = class extends $23b9f4fcf0fe224b$export$d68d59712b04d9d1 { 71074 }, _class.type = type5, _class; 71075} 71076function $e1995378a142960e$var$useSSRCollectionNode(CollectionNodeClass, props, ref, rendered, children, render) { 71077 typeof CollectionNodeClass == "string" && (CollectionNodeClass = $e1995378a142960e$var$createCollectionNodeClass(CollectionNodeClass)); 71078 let itemRef = (0, import_react127.useCallback)((element) => { 71079 element?.setProps(props, ref, CollectionNodeClass, rendered, render); 71080 }, [ 71081 props, 71082 ref, 71083 rendered, 71084 render, 71085 CollectionNodeClass 71086 ]), parentNode = (0, import_react127.useContext)($e1995378a142960e$var$SSRContext); 71087 if (parentNode) { 71088 let element = parentNode.ownerDocument.nodesByProps.get(props); 71089 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_react127.default.createElement($e1995378a142960e$var$SSRContext.Provider, { 71090 value: element 71091 }, children) : null; 71092 } 71093 return import_react127.default.createElement(CollectionNodeClass.type, { 71094 ref: itemRef 71095 }, children); 71096} 71097function $e1995378a142960e$export$18af5c7a9e9b3664(CollectionNodeClass, render) { 71098 let Component5 = ({ node: node2 }) => render(node2.props, node2.props.ref, node2), Result = (0, import_react127.forwardRef)((props, ref) => { 71099 let focusableProps = (0, import_react127.useContext)($f645667febf57a63$export$f9762fab77588ecb); 71100 if (!(0, import_react127.useContext)($e1995378a142960e$var$ShallowRenderContext)) { 71101 if (render.length >= 3) throw new Error(render.name + " cannot be rendered outside a collection."); 71102 return render(props, ref); 71103 } 71104 return $e1995378a142960e$var$useSSRCollectionNode(CollectionNodeClass, props, ref, "children" in props ? props.children : null, null, (node2) => ( 71105 // Forward FocusableContext to real DOM tree so tooltips work. 71106 import_react127.default.createElement($f645667febf57a63$export$f9762fab77588ecb.Provider, { 71107 value: focusableProps 71108 }, import_react127.default.createElement(Component5, { 71109 node: node2 71110 })) 71111 )); 71112 }); 71113 return Result.displayName = render.name, Result; 71114} 71115function $e1995378a142960e$export$e953bb1cd0f19726(CollectionNodeClass, render, useChildren = $e1995378a142960e$var$useCollectionChildren) { 71116 let Component5 = ({ node: node2 }) => render(node2.props, node2.props.ref, node2), Result = (0, import_react127.forwardRef)((props, ref) => { 71117 let children = useChildren(props); 71118 var _useSSRCollectionNode; 71119 return (_useSSRCollectionNode = $e1995378a142960e$var$useSSRCollectionNode(CollectionNodeClass, props, ref, null, children, (node2) => import_react127.default.createElement(Component5, { 71120 node: node2 71121 }))) !== null && _useSSRCollectionNode !== void 0 ? _useSSRCollectionNode : import_react127.default.createElement(import_react127.default.Fragment, null); 71122 }); 71123 return Result.displayName = render.name, Result; 71124} 71125function $e1995378a142960e$var$useCollectionChildren(options) { 71126 return $e948873055cbafe4$export$727c8fc270210f13({ 71127 ...options, 71128 addIdAndValue: !0 71129 }); 71130} 71131var $e1995378a142960e$var$CollectionContext = (0, import_react127.createContext)(null); 71132function $e1995378a142960e$export$fb8073518f34e6ec(props) { 71133 let ctx = (0, import_react127.useContext)($e1995378a142960e$var$CollectionContext), dependencies = (ctx?.dependencies || []).concat(props.dependencies), idScope = props.idScope || ctx?.idScope, children = $e1995378a142960e$var$useCollectionChildren({ 71134 ...props, 71135 idScope, 71136 dependencies 71137 }); 71138 return (0, import_react127.useContext)($e1995378a142960e$var$CollectionDocumentContext) && (children = import_react127.default.createElement($e1995378a142960e$var$CollectionRoot, null, children)), ctx = (0, import_react127.useMemo)(() => ({ 71139 dependencies, 71140 idScope 71141 }), [ 71142 idScope, 71143 ...dependencies 71144 ]), import_react127.default.createElement($e1995378a142960e$var$CollectionContext.Provider, { 71145 value: ctx 71146 }, children); 71147} 71148function $e1995378a142960e$var$CollectionRoot({ children }) { 71149 let doc = (0, import_react127.useContext)($e1995378a142960e$var$CollectionDocumentContext), wrappedChildren = (0, import_react127.useMemo)(() => import_react127.default.createElement($e1995378a142960e$var$CollectionDocumentContext.Provider, { 71150 value: null 71151 }, import_react127.default.createElement($e1995378a142960e$var$ShallowRenderContext.Provider, { 71152 value: !0 71153 }, children)), [ 71154 children 71155 ]); 71156 return $b5e257d569688ac6$export$535bd6ca7f90a273() ? import_react127.default.createElement($e1995378a142960e$var$SSRContext.Provider, { 71157 value: doc 71158 }, wrappedChildren) : (0, import_react_dom5.createPortal)(wrappedChildren, doc); 71159} 71160
vendor: 622 bytes, lines 71161-71171
71161// ../../node_modules/react-aria-components/dist/Label.mjs 71162var import_react128 = __toESM(require_react(), 1), $01b77f81d0f07f68$export$75b6ee27786ba447 = (0, import_react128.createContext)({}), $01b77f81d0f07f68$export$b04be29aa201d4f5 = $f39a9eba43920ace$export$86427a43e3e48ebb(function(props, ref) { 71163 [props, ref] = $64fa3d84918910a7$export$29f1550f4b0d4415(props, ref, $01b77f81d0f07f68$export$75b6ee27786ba447); 71164 let { elementType: ElementType = "label", ...labelProps } = props; 71165 return import_react128.default.createElement(ElementType, { 71166 className: "react-aria-Label", 71167 ...labelProps, 71168 ref 71169 }); 71170}); 71171
vendor: 743 bytes, lines 71172-71191
71172// ../../node_modules/@react-aria/label/dist/useLabel.mjs 71173function $d191a55c9702f145$export$8467354a121f1b9f(props) { 71174 let { id, label, "aria-labelledby": ariaLabelledby, "aria-label": ariaLabel, labelElementType = "label" } = props; 71175 id = $bdb11010cef70236$export$f680877a34711e37(id); 71176 let labelId = $bdb11010cef70236$export$f680877a34711e37(), labelProps = {}; 71177 label && (ariaLabelledby = ariaLabelledby ? `${labelId} ${ariaLabelledby}` : labelId, labelProps = { 71178 id: labelId, 71179 htmlFor: labelElementType === "label" ? id : void 0 71180 }); 71181 let fieldProps = $313b98861ee5dd6c$export$d6875122194c7b44({ 71182 id, 71183 "aria-label": ariaLabel, 71184 "aria-labelledby": ariaLabelledby 71185 }); 71186 return { 71187 labelProps, 71188 fieldProps 71189 }; 71190} 71191
vendor: 1,313 bytes, lines 71192-71222
71192// ../../node_modules/@react-aria/progress/dist/useProgressBar.mjs 71193function $204d9ebcedfb8806$export$ed5abd763a836edc(props) { 71194 let { value = 0, minValue = 0, maxValue = 100, valueLabel, isIndeterminate, formatOptions = { 71195 style: "percent" 71196 } } = props, domProps = $65484d02dcb7eb3e$export$457c3d6518dd4c6f(props, { 71197 labelable: !0 71198 }), { labelProps, fieldProps } = $d191a55c9702f145$export$8467354a121f1b9f({ 71199 ...props, 71200 // Progress bar is not an HTML input element so it 71201 // shouldn't be labeled by a <label> element. 71202 labelElementType: "span" 71203 }); 71204 value = $9446cca9a3875146$export$7d15b64cf5a3a4c4(value, minValue, maxValue); 71205 let percentage = (value - minValue) / (maxValue - minValue), formatter2 = $a916eb452884faea$export$b7a616150fdb9f44(formatOptions); 71206 if (!isIndeterminate && !valueLabel) { 71207 let valueToFormat = formatOptions.style === "percent" ? percentage : value; 71208 valueLabel = formatter2.format(valueToFormat); 71209 } 71210 return { 71211 progressBarProps: $3ef42575df84b30b$export$9d1611c77c2fe928(domProps, { 71212 ...fieldProps, 71213 "aria-valuenow": isIndeterminate ? void 0 : value, 71214 "aria-valuemin": minValue, 71215 "aria-valuemax": maxValue, 71216 "aria-valuetext": isIndeterminate ? void 0 : valueLabel, 71217 role: "progressbar" 71218 }), 71219 labelProps 71220 }; 71221} 71222
vendor: 1,621 bytes, lines 71223-71254
71223// ../../node_modules/react-aria-components/dist/ProgressBar.mjs 71224var import_react129 = __toESM(require_react(), 1), $0393f8ab869a0f1a$export$e9f3bf65a26ce129 = (0, import_react129.createContext)(null), $0393f8ab869a0f1a$export$c17561cb55d4db30 = (0, import_react129.forwardRef)(function(props, ref) { 71225 [props, ref] = $64fa3d84918910a7$export$29f1550f4b0d4415(props, ref, $0393f8ab869a0f1a$export$e9f3bf65a26ce129); 71226 let { value = 0, minValue = 0, maxValue = 100, isIndeterminate = !1 } = props; 71227 value = $9446cca9a3875146$export$7d15b64cf5a3a4c4(value, minValue, maxValue); 71228 let [labelRef, label] = $64fa3d84918910a7$export$9d4c57ee4c6ffdd8(!props["aria-label"] && !props["aria-labelledby"]), { progressBarProps, labelProps } = $204d9ebcedfb8806$export$ed5abd763a836edc({ 71229 ...props, 71230 label 71231 }), percentage = isIndeterminate ? void 0 : (value - minValue) / (maxValue - minValue) * 100, renderProps = $64fa3d84918910a7$export$4d86445c2cf5e3({ 71232 ...props, 71233 defaultClassName: "react-aria-ProgressBar", 71234 values: { 71235 percentage, 71236 valueText: progressBarProps["aria-valuetext"], 71237 isIndeterminate 71238 } 71239 }), DOMProps = $65484d02dcb7eb3e$export$457c3d6518dd4c6f(props, { 71240 global: !0 71241 }); 71242 return import_react129.default.createElement("div", { 71243 ...$3ef42575df84b30b$export$9d1611c77c2fe928(DOMProps, renderProps, progressBarProps), 71244 ref, 71245 slot: props.slot || void 0 71246 }, import_react129.default.createElement($01b77f81d0f07f68$export$75b6ee27786ba447.Provider, { 71247 value: { 71248 ...labelProps, 71249 ref: labelRef, 71250 elementType: "span" 71251 } 71252 }, renderProps.children)); 71253}); 71254
vendor: 2,942 bytes, lines 71255-71300
71255// ../../node_modules/@react-aria/live-announcer/dist/LiveAnnouncer.mjs 71256var $319e236875307eab$var$liveAnnouncer = null; 71257function $319e236875307eab$export$a9b970dcc4ae71a9(message, assertiveness = "assertive", timeout = 7e3) { 71258 $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(() => { 71259 $319e236875307eab$var$liveAnnouncer?.isAttached() && $319e236875307eab$var$liveAnnouncer?.announce(message, assertiveness, timeout); 71260 }, 100)); 71261} 71262var $319e236875307eab$var$LiveAnnouncer = class { 71263 isAttached() { 71264 var _this_node; 71265 return (_this_node = this.node) === null || _this_node === void 0 ? void 0 : _this_node.isConnected; 71266 } 71267 createLog(ariaLive) { 71268 let node2 = document.createElement("div"); 71269 return node2.setAttribute("role", "log"), node2.setAttribute("aria-live", ariaLive), node2.setAttribute("aria-relevant", "additions"), node2; 71270 } 71271 destroy() { 71272 this.node && (document.body.removeChild(this.node), this.node = null); 71273 } 71274 announce(message, assertiveness = "assertive", timeout = 7e3) { 71275 var _this_assertiveLog, _this_politeLog; 71276 if (!this.node) return; 71277 let node2 = document.createElement("div"); 71278 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(() => { 71279 node2.remove(); 71280 }, timeout); 71281 } 71282 clear(assertiveness) { 71283 this.node && ((!assertiveness || assertiveness === "assertive") && this.assertiveLog && (this.assertiveLog.innerHTML = ""), (!assertiveness || assertiveness === "polite") && this.politeLog && (this.politeLog.innerHTML = "")); 71284 } 71285 constructor() { 71286 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, { 71287 border: 0, 71288 clip: "rect(0 0 0 0)", 71289 clipPath: "inset(50%)", 71290 height: "1px", 71291 margin: "-1px", 71292 overflow: "hidden", 71293 padding: 0, 71294 position: "absolute", 71295 width: "1px", 71296 whiteSpace: "nowrap" 71297 }), 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)); 71298 } 71299}; 71300
vendor: 2,106 bytes, lines 71301-71351
71301// ../../node_modules/@react-aria/button/dist/useButton.mjs 71302function $701a24aa0da5b062$export$ea18c227d4417cc3(props, ref) { 71303 let { elementType = "button", isDisabled: isDisabled3, onPress, onPressStart, onPressEnd, onPressUp, onPressChange, preventFocusOnPress, allowFocusWhenDisabled, onClick, href, target, rel, type: type5 = "button" } = props, additionalProps; 71304 elementType === "button" ? additionalProps = { 71305 type: type5, 71306 disabled: isDisabled3, 71307 form: props.form, 71308 formAction: props.formAction, 71309 formEncType: props.formEncType, 71310 formMethod: props.formMethod, 71311 formNoValidate: props.formNoValidate, 71312 formTarget: props.formTarget, 71313 name: props.name, 71314 value: props.value 71315 } : additionalProps = { 71316 role: "button", 71317 href: elementType === "a" && !isDisabled3 ? href : void 0, 71318 target: elementType === "a" ? target : void 0, 71319 type: elementType === "input" ? type5 : void 0, 71320 disabled: elementType === "input" ? isDisabled3 : void 0, 71321 "aria-disabled": !isDisabled3 || elementType === "input" ? void 0 : isDisabled3, 71322 rel: elementType === "a" ? rel : void 0 71323 }; 71324 let { pressProps, isPressed } = $f6c31cce2adf654f$export$45712eceda6fad21({ 71325 onPressStart, 71326 onPressEnd, 71327 onPressChange, 71328 onPress, 71329 onPressUp, 71330 onClick, 71331 isDisabled: isDisabled3, 71332 preventFocusOnPress, 71333 ref 71334 }), { focusableProps } = $f645667febf57a63$export$4c014de7c8940b4c(props, ref); 71335 allowFocusWhenDisabled && (focusableProps.tabIndex = isDisabled3 ? -1 : focusableProps.tabIndex); 71336 let buttonProps = $3ef42575df84b30b$export$9d1611c77c2fe928(focusableProps, pressProps, $65484d02dcb7eb3e$export$457c3d6518dd4c6f(props, { 71337 labelable: !0 71338 })); 71339 return { 71340 isPressed, 71341 buttonProps: $3ef42575df84b30b$export$9d1611c77c2fe928(additionalProps, buttonProps, { 71342 "aria-haspopup": props["aria-haspopup"], 71343 "aria-expanded": props["aria-expanded"], 71344 "aria-controls": props["aria-controls"], 71345 "aria-pressed": props["aria-pressed"], 71346 "aria-current": props["aria-current"], 71347 "aria-disabled": props["aria-disabled"] 71348 }) 71349 }; 71350} 71351
vendor: 146 bytes, lines 71352-71354
71352// ../../node_modules/@react-aria/button/node_modules/@react-aria/toolbar/dist/useToolbar.mjs 71353var import_react130 = __toESM(require_react(), 1); 71354
vendor: 3,551 bytes, lines 71355-71414
71355// ../../node_modules/react-aria-components/dist/Button.mjs 71356var import_react131 = __toESM(require_react(), 1), $d2b4bc8c273e7be6$export$24d547caef80ccd1 = (0, import_react131.createContext)({}), $d2b4bc8c273e7be6$export$353f5b6fc5456de1 = $f39a9eba43920ace$export$86427a43e3e48ebb(function(props, ref) { 71357 [props, ref] = $64fa3d84918910a7$export$29f1550f4b0d4415(props, ref, $d2b4bc8c273e7be6$export$24d547caef80ccd1), props = $d2b4bc8c273e7be6$var$disablePendingProps(props); 71358 let ctx = props, { isPending } = ctx, { buttonProps, isPressed } = $701a24aa0da5b062$export$ea18c227d4417cc3(props, ref), { focusProps, isFocused, isFocusVisible } = $f7dceffc5ad7768b$export$4e328f61c538687f(props), { hoverProps, isHovered } = $6179b936705e76d3$export$ae780daf29e6d456({ 71359 ...props, 71360 isDisabled: props.isDisabled || isPending 71361 }), renderValues = { 71362 isHovered, 71363 isPressed: (ctx.isPressed || isPressed) && !isPending, 71364 isFocused, 71365 isFocusVisible, 71366 isDisabled: props.isDisabled || !1, 71367 isPending: isPending ?? !1 71368 }, renderProps = $64fa3d84918910a7$export$4d86445c2cf5e3({ 71369 ...props, 71370 values: renderValues, 71371 defaultClassName: "react-aria-Button" 71372 }), buttonId = $bdb11010cef70236$export$f680877a34711e37(buttonProps.id), progressId = $bdb11010cef70236$export$f680877a34711e37(), ariaLabelledby = buttonProps["aria-labelledby"]; 71373 isPending && (ariaLabelledby ? ariaLabelledby = `${ariaLabelledby} ${progressId}` : buttonProps["aria-label"] && (ariaLabelledby = `${buttonId} ${progressId}`)); 71374 let wasPending = (0, import_react131.useRef)(isPending); 71375 (0, import_react131.useEffect)(() => { 71376 let message = { 71377 "aria-labelledby": ariaLabelledby || buttonId 71378 }; 71379 !wasPending.current && isFocused && isPending ? $319e236875307eab$export$a9b970dcc4ae71a9(message, "assertive") : wasPending.current && isFocused && !isPending && $319e236875307eab$export$a9b970dcc4ae71a9(message, "assertive"), wasPending.current = isPending; 71380 }, [ 71381 isPending, 71382 isFocused, 71383 ariaLabelledby, 71384 buttonId 71385 ]); 71386 let DOMProps = $65484d02dcb7eb3e$export$457c3d6518dd4c6f(props, { 71387 global: !0 71388 }); 71389 return delete DOMProps.onClick, import_react131.default.createElement("button", { 71390 ...$3ef42575df84b30b$export$9d1611c77c2fe928(DOMProps, renderProps, buttonProps, focusProps, hoverProps), 71391 // 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). 71392 // We do this by changing the button's type to button. 71393 type: buttonProps.type === "submit" && isPending ? "button" : buttonProps.type, 71394 id: buttonId, 71395 ref, 71396 "aria-labelledby": ariaLabelledby, 71397 slot: props.slot || void 0, 71398 "aria-disabled": isPending ? "true" : buttonProps["aria-disabled"], 71399 "data-disabled": props.isDisabled || void 0, 71400 "data-pressed": renderValues.isPressed || void 0, 71401 "data-hovered": isHovered || void 0, 71402 "data-focused": isFocused || void 0, 71403 "data-pending": isPending || void 0, 71404 "data-focus-visible": isFocusVisible || void 0 71405 }, import_react131.default.createElement($0393f8ab869a0f1a$export$e9f3bf65a26ce129.Provider, { 71406 value: { 71407 id: progressId 71408 } 71409 }, renderProps.children)); 71410}); 71411function $d2b4bc8c273e7be6$var$disablePendingProps(props) { 71412 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; 71413} 71414
vendor: 5,960 bytes, lines 71415-71540
71415// ../../node_modules/react-aria-components/dist/Popover.mjs 71416var import_react132 = __toESM(require_react(), 1); 71417var $07b14b47974efb58$export$9b9a0cd73afb7ca4 = (0, import_react132.createContext)(null), $07b14b47974efb58$var$PopoverGroupContext = (0, import_react132.createContext)(null), $07b14b47974efb58$export$5b6b19405a83ff9d = (0, import_react132.forwardRef)(function(props, ref) { 71418 [props, ref] = $64fa3d84918910a7$export$29f1550f4b0d4415(props, ref, $07b14b47974efb58$export$9b9a0cd73afb7ca4); 71419 let contextState = (0, import_react132.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(); 71420 if (isHidden3) { 71421 let children = props.children; 71422 return typeof children == "function" && (children = children({ 71423 trigger: props.trigger || null, 71424 placement: "bottom", 71425 isEntering: !1, 71426 isExiting: !1, 71427 defaultChildren: null 71428 })), import_react132.default.createElement(import_react132.default.Fragment, null, children); 71429 } 71430 return state3 && !state3.isOpen && !isExiting ? null : import_react132.default.createElement($07b14b47974efb58$var$PopoverInner, { 71431 ...props, 71432 triggerRef: props.triggerRef, 71433 state: state3, 71434 popoverRef: ref, 71435 isExiting, 71436 dir: direction 71437 }); 71438}); 71439function $07b14b47974efb58$var$PopoverInner({ state: state3, isExiting, UNSTABLE_portalContainer, clearContexts, ...props }) { 71440 let arrowRef = (0, import_react132.useRef)(null), containerRef = (0, import_react132.useRef)(null), groupCtx = (0, import_react132.useContext)($07b14b47974efb58$var$PopoverGroupContext), isSubPopover = groupCtx && props.trigger === "SubmenuTrigger"; 71441 var _props_offset; 71442 let { popoverProps, underlayProps, arrowProps, placement, triggerAnchorPoint } = $f2f8a6077418541e$export$542a6fd13ac93354({ 71443 ...props, 71444 offset: (_props_offset = props.offset) !== null && _props_offset !== void 0 ? _props_offset : 8, 71445 arrowRef, 71446 // If this is a submenu/subdialog, use the root popover's container 71447 // to detect outside interaction and add aria-hidden. 71448 groupRef: isSubPopover ? groupCtx : containerRef 71449 }, state3), ref = props.popoverRef, isEntering = $d3f049242431219c$export$6d3443f2c48bfc20(ref, !!placement) || props.isEntering || !1, renderProps = $64fa3d84918910a7$export$4d86445c2cf5e3({ 71450 ...props, 71451 defaultClassName: "react-aria-Popover", 71452 values: { 71453 trigger: props.trigger || null, 71454 placement, 71455 isEntering, 71456 isExiting 71457 } 71458 }), shouldBeDialog = !props.isNonModal || props.trigger === "SubmenuTrigger", [isDialog, setDialog] = (0, import_react132.useState)(!1); 71459 $f0a04ccd8dbdd83b$export$e5c5a5f917a5871c(() => { 71460 ref.current && setDialog(shouldBeDialog && !ref.current.querySelector("[role=dialog]")); 71461 }, [ 71462 ref, 71463 shouldBeDialog 71464 ]), (0, import_react132.useEffect)(() => { 71465 isDialog && props.trigger !== "SubmenuTrigger" && ref.current && !ref.current.contains(document.activeElement) && $3ad3f6e1647bc98d$export$80f3e147d781571c(ref.current); 71466 }, [ 71467 isDialog, 71468 ref, 71469 props.trigger 71470 ]); 71471 let children = (0, import_react132.useMemo)(() => { 71472 let children2 = renderProps.children; 71473 if (clearContexts) for (let Context of clearContexts) children2 = import_react132.default.createElement(Context.Provider, { 71474 value: null 71475 }, children2); 71476 return children2; 71477 }, [ 71478 renderProps.children, 71479 clearContexts 71480 ]), style = { 71481 ...popoverProps.style, 71482 "--trigger-anchor-point": triggerAnchorPoint ? `${triggerAnchorPoint.x}px ${triggerAnchorPoint.y}px` : void 0, 71483 ...renderProps.style 71484 }, overlay = import_react132.default.createElement("div", { 71485 ...$3ef42575df84b30b$export$9d1611c77c2fe928($65484d02dcb7eb3e$export$457c3d6518dd4c6f(props, { 71486 global: !0 71487 }), popoverProps), 71488 ...renderProps, 71489 role: isDialog ? "dialog" : void 0, 71490 tabIndex: isDialog ? -1 : void 0, 71491 "aria-label": props["aria-label"], 71492 "aria-labelledby": props["aria-labelledby"], 71493 ref, 71494 slot: props.slot || void 0, 71495 style, 71496 dir: props.dir, 71497 "data-trigger": props.trigger, 71498 "data-placement": placement, 71499 "data-entering": isEntering || void 0, 71500 "data-exiting": isExiting || void 0 71501 }, !props.isNonModal && import_react132.default.createElement($86ea4cb521eb2e37$export$2317d149ed6f78c4, { 71502 onDismiss: state3.close 71503 }), import_react132.default.createElement($44f671af83e7d9e0$export$2de4954e8ae13b9f.Provider, { 71504 value: { 71505 ...arrowProps, 71506 placement, 71507 ref: arrowRef 71508 } 71509 }, children), import_react132.default.createElement($86ea4cb521eb2e37$export$2317d149ed6f78c4, { 71510 onDismiss: state3.close 71511 })); 71512 if (!isSubPopover) return import_react132.default.createElement($337b884510726a0d$export$c6fdb837b070b4ff, { 71513 ...props, 71514 shouldContainFocus: isDialog, 71515 isExiting, 71516 portalContainer: UNSTABLE_portalContainer 71517 }, !props.isNonModal && state3.isOpen && import_react132.default.createElement("div", { 71518 "data-testid": "underlay", 71519 ...underlayProps, 71520 style: { 71521 position: "fixed", 71522 inset: 0 71523 } 71524 }), import_react132.default.createElement("div", { 71525 ref: containerRef, 71526 style: { 71527 display: "contents" 71528 } 71529 }, import_react132.default.createElement($07b14b47974efb58$var$PopoverGroupContext.Provider, { 71530 value: containerRef 71531 }, overlay))); 71532 var _ref; 71533 return import_react132.default.createElement($337b884510726a0d$export$c6fdb837b070b4ff, { 71534 ...props, 71535 shouldContainFocus: isDialog, 71536 isExiting, 71537 portalContainer: (_ref = UNSTABLE_portalContainer ?? groupCtx?.current) !== null && _ref !== void 0 ? _ref : void 0 71538 }, overlay); 71539} 71540
vendor: 3,384 bytes, lines 71541-71599
71541// ../../node_modules/react-aria-components/dist/Collection.mjs 71542var import_react133 = __toESM(require_react(), 1), $7135fc7d473fd974$export$d40e14dec8b060a8 = (0, import_react133.createContext)(null), $7135fc7d473fd974$export$6e2c8f0811a474ce = $e1995378a142960e$export$e953bb1cd0f19726("section", (props, ref, section) => { 71543 let { name, render } = (0, import_react133.useContext)($7135fc7d473fd974$export$d40e14dec8b060a8); 71544 return render(props, ref, section, "react-aria-Section"); 71545}), $7135fc7d473fd974$export$a164736487e3f0ae = { 71546 CollectionRoot({ collection, renderDropIndicator }) { 71547 return $7135fc7d473fd974$var$useCollectionRender(collection, null, renderDropIndicator); 71548 }, 71549 CollectionBranch({ collection, parent, renderDropIndicator }) { 71550 return $7135fc7d473fd974$var$useCollectionRender(collection, parent, renderDropIndicator); 71551 } 71552}; 71553function $7135fc7d473fd974$var$useCollectionRender(collection, parent, renderDropIndicator) { 71554 return $e948873055cbafe4$export$727c8fc270210f13({ 71555 items: parent ? collection.getChildren(parent.key) : collection, 71556 dependencies: [ 71557 renderDropIndicator 71558 ], 71559 children(node2) { 71560 let rendered = node2.render(node2); 71561 return !renderDropIndicator || node2.type !== "item" ? rendered : import_react133.default.createElement(import_react133.default.Fragment, null, renderDropIndicator({ 71562 type: "item", 71563 key: node2.key, 71564 dropPosition: "before" 71565 }), rendered, $7135fc7d473fd974$export$2dbbd341daed716d(collection, node2, renderDropIndicator)); 71566 } 71567 }); 71568} 71569function $7135fc7d473fd974$export$2dbbd341daed716d(collection, node2, renderDropIndicator) { 71570 let key = node2.key, keyAfter = collection.getKeyAfter(key), nextItemInFlattenedCollection = keyAfter != null ? collection.getItem(keyAfter) : null; 71571 for (; nextItemInFlattenedCollection != null && nextItemInFlattenedCollection.type !== "item"; ) 71572 keyAfter = collection.getKeyAfter(nextItemInFlattenedCollection.key), nextItemInFlattenedCollection = keyAfter != null ? collection.getItem(keyAfter) : null; 71573 let nextItemInSameLevel = node2.nextKey != null ? collection.getItem(node2.nextKey) : null; 71574 for (; nextItemInSameLevel != null && nextItemInSameLevel.type !== "item"; ) nextItemInSameLevel = nextItemInSameLevel.nextKey != null ? collection.getItem(nextItemInSameLevel.nextKey) : null; 71575 let afterIndicators = []; 71576 if (nextItemInSameLevel == null) { 71577 let current = node2; 71578 for (; current && (!nextItemInFlattenedCollection || current.parentKey !== nextItemInFlattenedCollection.parentKey && nextItemInFlattenedCollection.level < current.level); ) { 71579 let indicator = renderDropIndicator({ 71580 type: "item", 71581 key: current.key, 71582 dropPosition: "after" 71583 }); 71584 (0, import_react133.isValidElement)(indicator) && afterIndicators.push((0, import_react133.cloneElement)(indicator, { 71585 key: `${current.key}-after` 71586 })), current = current.parentKey != null ? collection.getItem(current.parentKey) : null; 71587 } 71588 } 71589 return afterIndicators; 71590} 71591var $7135fc7d473fd974$export$4feb769f8ddf26c5 = (0, import_react133.createContext)($7135fc7d473fd974$export$a164736487e3f0ae); 71592function $7135fc7d473fd974$export$90e00781bc59d8f9(focusedKey) { 71593 return (0, import_react133.useMemo)(() => focusedKey != null ? /* @__PURE__ */ new Set([ 71594 focusedKey 71595 ]) : null, [ 71596 focusedKey 71597 ]); 71598} 71599
vendor: 285 bytes, lines 71600-71602
71600// ../../node_modules/react-aria-components/dist/context.mjs 71601var import_react134 = __toESM(require_react(), 1), $8e6cc465cc68f603$export$b0d3ecf7112093a7 = (0, import_react134.createContext)(null), $8e6cc465cc68f603$export$698f465ec27e93df = (0, import_react134.createContext)(null); 71602
vendor: 604 bytes, lines 71603-71611
71603// ../../node_modules/react-aria-components/dist/Header.mjs 71604var import_react135 = __toESM(require_react(), 1), $72a5793c14baf454$export$e0e4026c12a8bdbb = (0, import_react135.createContext)({}), $72a5793c14baf454$export$8b251419efc915eb = $e1995378a142960e$export$18af5c7a9e9b3664($23b9f4fcf0fe224b$export$5ae2504e948afce5, function(props, ref) { 71605 return [props, ref] = $64fa3d84918910a7$export$29f1550f4b0d4415(props, ref, $72a5793c14baf454$export$e0e4026c12a8bdbb), import_react135.default.createElement("header", { 71606 className: "react-aria-Header", 71607 ...props, 71608 ref 71609 }, props.children); 71610}); 71611
vendor: 514 bytes, lines 71612-71620
71612// ../../node_modules/react-aria-components/dist/Keyboard.mjs 71613var import_react136 = __toESM(require_react(), 1), $63df2425e2108aa8$export$744d98a3b8a94e1c = (0, import_react136.createContext)({}), $63df2425e2108aa8$export$16e4d70cc375e707 = (0, import_react136.forwardRef)(function(props, ref) { 71614 return [props, ref] = $64fa3d84918910a7$export$29f1550f4b0d4415(props, ref, $63df2425e2108aa8$export$744d98a3b8a94e1c), import_react136.default.createElement("kbd", { 71615 dir: "ltr", 71616 ...props, 71617 ref 71618 }); 71619}); 71620
vendor: 502 bytes, lines 71621-71636
71621// ../../node_modules/@react-aria/separator/dist/useSeparator.mjs 71622function $f4b273590fab9f93$export$52210f68a14655d0(props) { 71623 let domProps = $65484d02dcb7eb3e$export$457c3d6518dd4c6f(props, { 71624 labelable: !0 71625 }), ariaOrientation; 71626 return props.orientation === "vertical" && (ariaOrientation = "vertical"), props.elementType !== "hr" ? { 71627 separatorProps: { 71628 ...domProps, 71629 role: "separator", 71630 "aria-orientation": ariaOrientation 71631 } 71632 } : { 71633 separatorProps: domProps 71634 }; 71635} 71636
vendor: 1,557 bytes, lines 71637-71668
71637// ../../node_modules/react-aria-components/dist/Separator.mjs 71638var import_react137 = __toESM(require_react(), 1), $431f98aba6844401$export$6615d83f6de245ce = (0, import_react137.createContext)({}), $431f98aba6844401$export$7750289ca694c0b5 = class extends $23b9f4fcf0fe224b$export$d68d59712b04d9d1 { 71639 filter(collection, newCollection) { 71640 let prevItem = newCollection.getItem(this.prevKey); 71641 if (prevItem && prevItem.type !== "separator") { 71642 let clone3 = this.clone(); 71643 return newCollection.addDescendants(clone3, collection), clone3; 71644 } 71645 return null; 71646 } 71647}; 71648$431f98aba6844401$export$7750289ca694c0b5.type = "separator"; 71649var $431f98aba6844401$export$1ff3c3f08ae963c0 = $e1995378a142960e$export$18af5c7a9e9b3664($431f98aba6844401$export$7750289ca694c0b5, function(props, ref) { 71650 [props, ref] = $64fa3d84918910a7$export$29f1550f4b0d4415(props, ref, $431f98aba6844401$export$6615d83f6de245ce); 71651 let { elementType, orientation, style, className, slot, ...otherProps } = props, Element2 = elementType || "hr"; 71652 Element2 === "hr" && orientation === "vertical" && (Element2 = "div"); 71653 let { separatorProps } = $f4b273590fab9f93$export$52210f68a14655d0({ 71654 ...otherProps, 71655 elementType, 71656 orientation 71657 }), DOMProps = $65484d02dcb7eb3e$export$457c3d6518dd4c6f(props, { 71658 global: !0 71659 }); 71660 return import_react137.default.createElement(Element2, { 71661 ...$3ef42575df84b30b$export$9d1611c77c2fe928(DOMProps, separatorProps), 71662 style, 71663 className: className ?? "react-aria-Separator", 71664 ref, 71665 slot: slot || void 0 71666 }); 71667}); 71668
vendor: 401 bytes, lines 71669-71674
71669// ../../node_modules/@react-aria/menu/dist/ar-AE.mjs 71670var $c0398ad35c3639b7$exports = {}; 71671$c0398ad35c3639b7$exports = { 71672 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" 71673}; 71674
vendor: 552 bytes, lines 71675-71680
71675// ../../node_modules/@react-aria/menu/dist/bg-BG.mjs 71676var $7af657c4165927c3$exports = {}; 71677$7af657c4165927c3$exports = { 71678 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" 71679}; 71680
vendor: 246 bytes, lines 71681-71686
71681// ../../node_modules/@react-aria/menu/dist/cs-CZ.mjs 71682var $d95d4da6d531ab81$exports = {}; 71683$d95d4da6d531ab81$exports = { 71684 longPressMessage: "Dlouh\xFDm stiskem nebo stisknut\xEDm kl\xE1ves Alt + \u0161ipka dol\u016F otev\u0159ete nab\xEDdku" 71685}; 71686
vendor: 210 bytes, lines 71687-71692
71687// ../../node_modules/@react-aria/menu/dist/da-DK.mjs 71688var $24ebda9c775dca17$exports = {}; 71689$24ebda9c775dca17$exports = { 71690 longPressMessage: "Langt tryk eller tryk p\xE5 Alt + pil ned for at \xE5bne menuen" 71691}; 71692
vendor: 233 bytes, lines 71693-71698
71693// ../../node_modules/@react-aria/menu/dist/de-DE.mjs 71694var $743e0dfca6cab1e9$exports = {}; 71695$743e0dfca6cab1e9$exports = { 71696 longPressMessage: "Dr\xFCcken Sie lange oder dr\xFCcken Sie Alt + Nach-unten, um das Men\xFC zu \xF6ffnen" 71697}; 71698
vendor: 493 bytes, lines 71699-71704
71699// ../../node_modules/@react-aria/menu/dist/el-GR.mjs 71700var $a2f41026e05f1c84$exports = {}; 71701$a2f41026e05f1c84$exports = { 71702 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" 71703}; 71704
vendor: 195 bytes, lines 71705-71710
71705// ../../node_modules/@react-aria/menu/dist/en-US.mjs 71706var $43b800e97c901737$exports = {}; 71707$43b800e97c901737$exports = { 71708 longPressMessage: "Long press or press Alt + ArrowDown to open menu" 71709}; 71710
vendor: 212 bytes, lines 71711-71716
71711// ../../node_modules/@react-aria/menu/dist/es-ES.mjs 71712var $442f5f6ac211e29f$exports = {}; 71713$442f5f6ac211e29f$exports = { 71714 longPressMessage: "Mantenga pulsado o pulse Alt + flecha abajo para abrir el men\xFA" 71715}; 71716
vendor: 222 bytes, lines 71717-71722
71717// ../../node_modules/@react-aria/menu/dist/et-EE.mjs 71718var $dff280acfeb2d8ac$exports = {}; 71719$dff280acfeb2d8ac$exports = { 71720 longPressMessage: "Men\xFC\xFC avamiseks vajutage pikalt v\xF5i vajutage klahve Alt + allanool" 71721}; 71722
vendor: 231 bytes, lines 71723-71728
71723// ../../node_modules/@react-aria/menu/dist/fi-FI.mjs 71724var $51608325613944d7$exports = {}; 71725$51608325613944d7$exports = { 71726 longPressMessage: "Avaa valikko painamalla pohjassa tai n\xE4pp\xE4inyhdistelm\xE4ll\xE4 Alt + Alanuoli" 71727}; 71728
vendor: 251 bytes, lines 71729-71734
71729// ../../node_modules/@react-aria/menu/dist/fr-FR.mjs 71730var $c4a1b1eabeaa87be$exports = {}; 71731$c4a1b1eabeaa87be$exports = { 71732 longPressMessage: "Appuyez de mani\xE8re prolong\xE9e ou appuyez sur Alt\xA0+\xA0Fl\xE8che vers le bas pour ouvrir le menu." 71733}; 71734
vendor: 375 bytes, lines 71735-71740
71735// ../../node_modules/@react-aria/menu/dist/he-IL.mjs 71736var $8c74815cdee18d1b$exports = {}; 71737$8c74815cdee18d1b$exports = { 71738 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" 71739}; 71740
vendor: 227 bytes, lines 71741-71746
71741// ../../node_modules/@react-aria/menu/dist/hr-HR.mjs 71742var $fd0e9ef6a7fe0ec9$exports = {}; 71743$fd0e9ef6a7fe0ec9$exports = { 71744 longPressMessage: "Dugo pritisnite ili pritisnite Alt + strelicu prema dolje za otvaranje izbornika" 71745}; 71746
vendor: 243 bytes, lines 71747-71752
71747// ../../node_modules/@react-aria/menu/dist/hu-HU.mjs 71748var $a89a74a39eba465a$exports = {}; 71749$a89a74a39eba465a$exports = { 71750 longPressMessage: "Nyomja meg hosszan, vagy nyomja meg az Alt + lefele ny\xEDl gombot a men\xFC megnyit\xE1s\xE1hoz" 71751}; 71752
vendor: 212 bytes, lines 71753-71758
71753// ../../node_modules/@react-aria/menu/dist/it-IT.mjs 71754var $edc7c66594a0ae8a$exports = {}; 71755$edc7c66594a0ae8a$exports = { 71756 longPressMessage: "Premere a lungo o premere Alt + Freccia gi\xF9 per aprire il menu" 71757}; 71758
vendor: 266 bytes, lines 71759-71764
71759// ../../node_modules/@react-aria/menu/dist/ja-JP.mjs 71760var $f1ab51510712db52$exports = {}; 71761$f1ab51510712db52$exports = { 71762 longPressMessage: "\u9577\u62BC\u3057\u307E\u305F\u306F Alt+\u4E0B\u77E2\u5370\u30AD\u30FC\u3067\u30E1\u30CB\u30E5\u30FC\u3092\u958B\u304F" 71763}; 71764
vendor: 273 bytes, lines 71765-71770
71765// ../../node_modules/@react-aria/menu/dist/ko-KR.mjs 71766var $f9b672d9b82fa3d6$exports = {}; 71767$f9b672d9b82fa3d6$exports = { 71768 longPressMessage: "\uAE38\uAC8C \uB204\uB974\uAC70\uB098 Alt + \uC544\uB798\uCABD \uD654\uC0B4\uD45C\uB97C \uB20C\uB7EC \uBA54\uB274 \uC5F4\uAE30" 71769}; 71770
vendor: 249 bytes, lines 71771-71776
71771// ../../node_modules/@react-aria/menu/dist/lt-LT.mjs 71772var $a385f3910feda499$exports = {}; 71773$a385f3910feda499$exports = { 71774 longPressMessage: "Nor\u0117dami atidaryti meniu, nuspaud\u0119 palaikykite arba paspauskite \u201EAlt + ArrowDown\u201C." 71775}; 71776
vendor: 281 bytes, lines 71777-71782
71777// ../../node_modules/@react-aria/menu/dist/lv-LV.mjs 71778var $4f1bde932c441789$exports = {}; 71779$4f1bde932c441789$exports = { 71780 longPressMessage: "Lai atv\u0113rtu izv\u0113lni, turiet nospiestu vai nospiediet tausti\u0146u kombin\u0101ciju Alt + lejupv\u0113rst\u0101 bulti\u0146a" 71781}; 71782
vendor: 207 bytes, lines 71783-71788
71783// ../../node_modules/@react-aria/menu/dist/nb-NO.mjs 71784var $914a51a8a594d5be$exports = {}; 71785$914a51a8a594d5be$exports = { 71786 longPressMessage: "Langt trykk eller trykk Alt + PilNed for \xE5 \xE5pne menyen" 71787}; 71788
vendor: 214 bytes, lines 71789-71794
71789// ../../node_modules/@react-aria/menu/dist/nl-NL.mjs 71790var $89aaf803103bb500$exports = {}; 71791$89aaf803103bb500$exports = { 71792 longPressMessage: "Druk lang op Alt + pijl-omlaag of druk op Alt om het menu te openen" 71793}; 71794
vendor: 259 bytes, lines 71795-71800
71795// ../../node_modules/@react-aria/menu/dist/pl-PL.mjs 71796var $c685891476dbaaca$exports = {}; 71797$c685891476dbaaca$exports = { 71798 longPressMessage: "Naci\u015Bnij i przytrzymaj lub naci\u015Bnij klawisze Alt + Strza\u0142ka w d\xF3\u0142, aby otworzy\u0107 menu" 71799}; 71800
vendor: 218 bytes, lines 71801-71806
71801// ../../node_modules/@react-aria/menu/dist/pt-BR.mjs 71802var $885879b9b10c2959$exports = {}; 71803$885879b9b10c2959$exports = { 71804 longPressMessage: "Pressione e segure ou pressione Alt + Seta para baixo para abrir o menu" 71805}; 71806
vendor: 215 bytes, lines 71807-71812
71807// ../../node_modules/@react-aria/menu/dist/pt-PT.mjs 71808var $6b39616688a51692$exports = {}; 71809$6b39616688a51692$exports = { 71810 longPressMessage: "Prima continuamente ou prima Alt + Seta Para Baixo para abrir o menu" 71811}; 71812
vendor: 253 bytes, lines 71813-71818
71813// ../../node_modules/@react-aria/menu/dist/ro-RO.mjs 71814var $f26362aed63f47e2$exports = {}; 71815$f26362aed63f47e2$exports = { 71816 longPressMessage: "Ap\u0103sa\u021Bi lung sau ap\u0103sa\u021Bi pe Alt + s\u0103geat\u0103 \xEEn jos pentru a deschide meniul" 71817}; 71818
vendor: 499 bytes, lines 71819-71824
71819// ../../node_modules/@react-aria/menu/dist/ru-RU.mjs 71820var $06cbade644558bf0$exports = {}; 71821$06cbade644558bf0$exports = { 71822 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" 71823}; 71824
vendor: 268 bytes, lines 71825-71830
71825// ../../node_modules/@react-aria/menu/dist/sk-SK.mjs 71826var $0a391ff68f9d59b1$exports = {}; 71827$0a391ff68f9d59b1$exports = { 71828 longPressMessage: "Ponuku otvor\xEDte dlh\xFDm stla\u010Den\xEDm alebo stla\u010Den\xEDm kl\xE1vesu Alt + kl\xE1vesu so \u0161\xEDpkou nadol" 71829}; 71830
vendor: 240 bytes, lines 71831-71836
71831// ../../node_modules/@react-aria/menu/dist/sl-SI.mjs 71832var $8193cf0e649c7928$exports = {}; 71833$8193cf0e649c7928$exports = { 71834 longPressMessage: "Za odprtje menija pritisnite in dr\u017Eite gumb ali pritisnite Alt+pu\u0161\u010Dica navzdol" 71835}; 71836
vendor: 220 bytes, lines 71837-71842
71837// ../../node_modules/@react-aria/menu/dist/sr-SP.mjs 71838var $f398debcce5a5c55$exports = {}; 71839$f398debcce5a5c55$exports = { 71840 longPressMessage: "Dugo pritisnite ili pritisnite Alt + strelicu prema dole da otvorite meni" 71841}; 71842
vendor: 227 bytes, lines 71843-71848
71843// ../../node_modules/@react-aria/menu/dist/sv-SE.mjs 71844var $9e9fef000aa4c013$exports = {}; 71845$9e9fef000aa4c013$exports = { 71846 longPressMessage: "H\xE5ll nedtryckt eller tryck p\xE5 Alt + pil ned\xE5t f\xF6r att \xF6ppna menyn" 71847}; 71848
vendor: 250 bytes, lines 71849-71854
71849// ../../node_modules/@react-aria/menu/dist/tr-TR.mjs 71850var $c016c8183bbe3d68$exports = {}; 71851$c016c8183bbe3d68$exports = { 71852 longPressMessage: "Men\xFCy\xFC a\xE7mak i\xE7in uzun bas\u0131n veya Alt + A\u015Fa\u011F\u0131 Ok tu\u015Funa bas\u0131n" 71853}; 71854
vendor: 571 bytes, lines 71855-71860
71855// ../../node_modules/@react-aria/menu/dist/uk-UA.mjs 71856var $ca4f6c8462244e62$exports = {}; 71857$ca4f6c8462244e62$exports = { 71858 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" 71859}; 71860
vendor: 238 bytes, lines 71861-71866
71861// ../../node_modules/@react-aria/menu/dist/zh-CN.mjs 71862var $2d9960c02ccac927$exports = {}; 71863$2d9960c02ccac927$exports = { 71864 longPressMessage: "\u957F\u6309\u6216\u6309 Alt + \u5411\u4E0B\u65B9\u5411\u952E\u4EE5\u6253\u5F00\u83DC\u5355" 71865}; 71866
vendor: 230 bytes, lines 71867-71872
71867// ../../node_modules/@react-aria/menu/dist/zh-TW.mjs 71868var $f1b682a4c8c5631c$exports = {}; 71869$f1b682a4c8c5631c$exports = { 71870 longPressMessage: "\u9577\u6309\u6216\u6309 Alt+\u5411\u4E0B\u9375\u4EE5\u958B\u555F\u529F\u80FD\u8868" 71871}; 71872
vendor: 1,421 bytes, lines 71873-71911
71873// ../../node_modules/@react-aria/menu/dist/intlStrings.mjs 71874var $2cbb7ca666678a14$exports = {}; 71875$2cbb7ca666678a14$exports = { 71876 "ar-AE": $c0398ad35c3639b7$exports, 71877 "bg-BG": $7af657c4165927c3$exports, 71878 "cs-CZ": $d95d4da6d531ab81$exports, 71879 "da-DK": $24ebda9c775dca17$exports, 71880 "de-DE": $743e0dfca6cab1e9$exports, 71881 "el-GR": $a2f41026e05f1c84$exports, 71882 "en-US": $43b800e97c901737$exports, 71883 "es-ES": $442f5f6ac211e29f$exports, 71884 "et-EE": $dff280acfeb2d8ac$exports, 71885 "fi-FI": $51608325613944d7$exports, 71886 "fr-FR": $c4a1b1eabeaa87be$exports, 71887 "he-IL": $8c74815cdee18d1b$exports, 71888 "hr-HR": $fd0e9ef6a7fe0ec9$exports, 71889 "hu-HU": $a89a74a39eba465a$exports, 71890 "it-IT": $edc7c66594a0ae8a$exports, 71891 "ja-JP": $f1ab51510712db52$exports, 71892 "ko-KR": $f9b672d9b82fa3d6$exports, 71893 "lt-LT": $a385f3910feda499$exports, 71894 "lv-LV": $4f1bde932c441789$exports, 71895 "nb-NO": $914a51a8a594d5be$exports, 71896 "nl-NL": $89aaf803103bb500$exports, 71897 "pl-PL": $c685891476dbaaca$exports, 71898 "pt-BR": $885879b9b10c2959$exports, 71899 "pt-PT": $6b39616688a51692$exports, 71900 "ro-RO": $f26362aed63f47e2$exports, 71901 "ru-RU": $06cbade644558bf0$exports, 71902 "sk-SK": $0a391ff68f9d59b1$exports, 71903 "sl-SI": $8193cf0e649c7928$exports, 71904 "sr-SP": $f398debcce5a5c55$exports, 71905 "sv-SE": $9e9fef000aa4c013$exports, 71906 "tr-TR": $c016c8183bbe3d68$exports, 71907 "uk-UA": $ca4f6c8462244e62$exports, 71908 "zh-CN": $2d9960c02ccac927$exports, 71909 "zh-TW": $f1b682a4c8c5631c$exports 71910}; 71911
vendor: 134 bytes, lines 71912-71914
71912// ../../node_modules/@react-aria/menu/dist/utils.mjs 71913var $fc79756100351201$export$6f49b4016bfc8d56 = /* @__PURE__ */ new WeakMap(); 71914
vendor: 1,195 bytes, lines 71915-71932
71915// ../../node_modules/@react-aria/selection/dist/utils.mjs 71916function $feb5ffebff200149$export$d3e3bd3e26688c04(e) { 71917 return $c87311424ea30a05$export$e1865c3bedcd822b() ? e.altKey : e.ctrlKey; 71918} 71919function $feb5ffebff200149$export$c3d8340acf92597f(collectionRef, key) { 71920 var _collectionRef_current, _collectionRef_current1; 71921 let selector = `[data-key="${CSS.escape(String(key))}"]`, collection = (_collectionRef_current = collectionRef.current) === null || _collectionRef_current === void 0 ? void 0 : _collectionRef_current.dataset.collection; 71922 return collection && (selector = `[data-collection="${CSS.escape(collection)}"]${selector}`), (_collectionRef_current1 = collectionRef.current) === null || _collectionRef_current1 === void 0 ? void 0 : _collectionRef_current1.querySelector(selector); 71923} 71924var $feb5ffebff200149$var$collectionMap = /* @__PURE__ */ new WeakMap(); 71925function $feb5ffebff200149$export$881eb0d9f3605d9d(collection) { 71926 let id = $bdb11010cef70236$export$f680877a34711e37(); 71927 return $feb5ffebff200149$var$collectionMap.set(collection, id), id; 71928} 71929function $feb5ffebff200149$export$6aeb1680a0ae8741(collection) { 71930 return $feb5ffebff200149$var$collectionMap.get(collection); 71931} 71932
vendor: 1,657 bytes, lines 71933-71962
71933// ../../node_modules/@react-aria/selection/dist/useTypeSelect.mjs 71934var import_react138 = __toESM(require_react(), 1), $fb3050f43d946246$var$TYPEAHEAD_DEBOUNCE_WAIT_MS = 1e3; 71935function $fb3050f43d946246$export$e32c88dfddc6e1d8(options) { 71936 let { keyboardDelegate, selectionManager, onTypeSelect } = options, state3 = (0, import_react138.useRef)({ 71937 search: "", 71938 timeout: void 0 71939 }).current, onKeyDown = (e) => { 71940 let character2 = $fb3050f43d946246$var$getStringForKey(e.key); 71941 if (!(!character2 || e.ctrlKey || e.metaKey || !e.currentTarget.contains(e.target) || state3.search.length === 0 && character2 === " ")) { 71942 if (character2 === " " && state3.search.trim().length > 0 && (e.preventDefault(), "continuePropagation" in e || e.stopPropagation()), state3.search += character2, keyboardDelegate.getKeyForSearch != null) { 71943 let key = keyboardDelegate.getKeyForSearch(state3.search, selectionManager.focusedKey); 71944 key == null && (key = keyboardDelegate.getKeyForSearch(state3.search)), key != null && (selectionManager.setFocusedKey(key), onTypeSelect && onTypeSelect(key)); 71945 } 71946 clearTimeout(state3.timeout), state3.timeout = setTimeout(() => { 71947 state3.search = ""; 71948 }, $fb3050f43d946246$var$TYPEAHEAD_DEBOUNCE_WAIT_MS); 71949 } 71950 }; 71951 return { 71952 typeSelectProps: { 71953 // Using a capturing listener to catch the keydown event before 71954 // other hooks in order to handle the Spacebar event. 71955 onKeyDownCapture: keyboardDelegate.getKeyForSearch ? onKeyDown : void 0 71956 } 71957 }; 71958} 71959function $fb3050f43d946246$var$getStringForKey(key) { 71960 return key.length === 1 || !/^[A-Z]/i.test(key) ? key : ""; 71961} 71962
vendor: 16,276 bytes, lines 71963-72186
71963// ../../node_modules/@react-aria/selection/dist/useSelectableCollection.mjs 71964var import_react_dom6 = __toESM(require_react_dom(), 1), import_react139 = __toESM(require_react(), 1); 71965function $ae20dd8cbca75726$export$d6daf82dcd84e87c(options) { 71966 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) => { 71967 var _ref_current; 71968 if (e.altKey && e.key === "Tab" && e.preventDefault(), !(!((_ref_current = ref.current) === null || _ref_current === void 0) && _ref_current.contains(e.target))) return; 71969 let navigateToKey = (key, childFocus) => { 71970 if (key != null) { 71971 if (manager.isLink(key) && linkBehavior === "selection" && selectOnFocus && !$feb5ffebff200149$export$d3e3bd3e26688c04(e)) { 71972 (0, import_react_dom6.flushSync)(() => { 71973 manager.setFocusedKey(key, childFocus); 71974 }); 71975 let item = $feb5ffebff200149$export$c3d8340acf92597f(ref, key), itemProps = manager.getItemProps(key); 71976 item && router.open(item, e, itemProps.href, itemProps.routerOptions); 71977 return; 71978 } 71979 if (manager.setFocusedKey(key, childFocus), manager.isLink(key) && linkBehavior === "override") return; 71980 e.shiftKey && manager.selectionMode === "multiple" ? manager.extendSelection(key) : selectOnFocus && !$feb5ffebff200149$export$d3e3bd3e26688c04(e) && manager.replaceSelection(key); 71981 } 71982 }; 71983 switch (e.key) { 71984 case "ArrowDown": 71985 if (delegate.getKeyBelow) { 71986 var _delegate_getKeyBelow, _delegate_getFirstKey, _delegate_getFirstKey1; 71987 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); 71988 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)); 71989 } 71990 break; 71991 case "ArrowUp": 71992 if (delegate.getKeyAbove) { 71993 var _delegate_getKeyAbove, _delegate_getLastKey, _delegate_getLastKey1; 71994 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); 71995 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)); 71996 } 71997 break; 71998 case "ArrowLeft": 71999 if (delegate.getKeyLeftOf) { 72000 var _delegate_getKeyLeftOf, _delegate_getFirstKey2, _delegate_getLastKey2; 72001 let nextKey = manager.focusedKey != null ? (_delegate_getKeyLeftOf = delegate.getKeyLeftOf) === null || _delegate_getKeyLeftOf === void 0 ? void 0 : _delegate_getKeyLeftOf.call(delegate, manager.focusedKey) : null; 72002 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")); 72003 } 72004 break; 72005 case "ArrowRight": 72006 if (delegate.getKeyRightOf) { 72007 var _delegate_getKeyRightOf, _delegate_getLastKey3, _delegate_getFirstKey3; 72008 let nextKey = manager.focusedKey != null ? (_delegate_getKeyRightOf = delegate.getKeyRightOf) === null || _delegate_getKeyRightOf === void 0 ? void 0 : _delegate_getKeyRightOf.call(delegate, manager.focusedKey) : null; 72009 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")); 72010 } 72011 break; 72012 case "Home": 72013 if (delegate.getFirstKey) { 72014 if (manager.focusedKey === null && e.shiftKey) return; 72015 e.preventDefault(); 72016 let firstKey = delegate.getFirstKey(manager.focusedKey, $21f1aa98acb08317$export$16792effe837dba3(e)); 72017 manager.setFocusedKey(firstKey), firstKey != null && ($21f1aa98acb08317$export$16792effe837dba3(e) && e.shiftKey && manager.selectionMode === "multiple" ? manager.extendSelection(firstKey) : selectOnFocus && manager.replaceSelection(firstKey)); 72018 } 72019 break; 72020 case "End": 72021 if (delegate.getLastKey) { 72022 if (manager.focusedKey === null && e.shiftKey) return; 72023 e.preventDefault(); 72024 let lastKey = delegate.getLastKey(manager.focusedKey, $21f1aa98acb08317$export$16792effe837dba3(e)); 72025 manager.setFocusedKey(lastKey), lastKey != null && ($21f1aa98acb08317$export$16792effe837dba3(e) && e.shiftKey && manager.selectionMode === "multiple" ? manager.extendSelection(lastKey) : selectOnFocus && manager.replaceSelection(lastKey)); 72026 } 72027 break; 72028 case "PageDown": 72029 if (delegate.getKeyPageBelow && manager.focusedKey != null) { 72030 let nextKey = delegate.getKeyPageBelow(manager.focusedKey); 72031 nextKey != null && (e.preventDefault(), navigateToKey(nextKey)); 72032 } 72033 break; 72034 case "PageUp": 72035 if (delegate.getKeyPageAbove && manager.focusedKey != null) { 72036 let nextKey = delegate.getKeyPageAbove(manager.focusedKey); 72037 nextKey != null && (e.preventDefault(), navigateToKey(nextKey)); 72038 } 72039 break; 72040 case "a": 72041 $21f1aa98acb08317$export$16792effe837dba3(e) && manager.selectionMode === "multiple" && disallowSelectAll !== !0 && (e.preventDefault(), manager.selectAll()); 72042 break; 72043 case "Escape": 72044 escapeKeyBehavior === "clearSelection" && !disallowEmptySelection && manager.selectedKeys.size !== 0 && (e.stopPropagation(), e.preventDefault(), manager.clearSelection()); 72045 break; 72046 case "Tab": 72047 if (!allowsTabNavigation) { 72048 if (e.shiftKey) ref.current.focus(); 72049 else { 72050 let walker = $9bf71ea28793e738$export$2d6ec8fc375ceafa(ref.current, { 72051 tabbable: !0 72052 }), next2, last2; 72053 do 72054 last2 = walker.lastChild(), last2 && (next2 = last2); 72055 while (last2); 72056 next2 && !next2.contains(document.activeElement) && $7215afc6de606d6b$export$de79e2c695e052f3(next2); 72057 } 72058 break; 72059 } 72060 } 72061 }, scrollPos = (0, import_react139.useRef)({ 72062 top: 0, 72063 left: 0 72064 }); 72065 $e9faafb641e167db$export$90fc3a17d93f704c(scrollRef, "scroll", isVirtualized ? void 0 : () => { 72066 var _scrollRef_current, _scrollRef_current1, _scrollRef_current_scrollTop, _scrollRef_current_scrollLeft; 72067 scrollPos.current = { 72068 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, 72069 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 72070 }; 72071 }); 72072 let onFocus = (e) => { 72073 if (manager.isFocused) { 72074 e.currentTarget.contains(e.target) || manager.setFocused(!1); 72075 return; 72076 } 72077 if (e.currentTarget.contains(e.target)) { 72078 if (manager.setFocused(!0), manager.focusedKey == null) { 72079 var _delegate_getLastKey, _delegate_getFirstKey; 72080 let navigateToKey = (key) => { 72081 key != null && (manager.setFocusedKey(key), selectOnFocus && !manager.isSelected(key) && manager.replaceSelection(key)); 72082 }, relatedTarget = e.relatedTarget; 72083 var _manager_lastSelectedKey, _manager_firstSelectedKey; 72084 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)); 72085 } else !isVirtualized && scrollRef.current && (scrollRef.current.scrollTop = scrollPos.current.top, scrollRef.current.scrollLeft = scrollPos.current.left); 72086 if (manager.focusedKey != null && scrollRef.current) { 72087 let element = $feb5ffebff200149$export$c3d8340acf92597f(ref, manager.focusedKey); 72088 element instanceof HTMLElement && (!element.contains(document.activeElement) && !shouldUseVirtualFocus && $7215afc6de606d6b$export$de79e2c695e052f3(element), $507fabe10e71c6fb$export$630ff653c5ada6a9() === "keyboard" && $2f04cbc44ee30ce0$export$c826860796309d1b(element, { 72089 containingElement: ref.current 72090 })); 72091 } 72092 } 72093 }, onBlur = (e) => { 72094 e.currentTarget.contains(e.relatedTarget) || manager.setFocused(!1); 72095 }, shouldVirtualFocusFirst = (0, import_react139.useRef)(!1); 72096 $e9faafb641e167db$export$90fc3a17d93f704c(ref, $5671b20cf9b562b2$export$831c820ad60f9d12, shouldUseVirtualFocus ? (e) => { 72097 let { detail } = e; 72098 e.stopPropagation(), manager.setFocused(!0), detail?.focusStrategy === "first" && (shouldVirtualFocusFirst.current = !0); 72099 } : void 0); 72100 let updateActiveDescendant = $8ae05eaa5c114e9c$export$7f54fc3180508a52(() => { 72101 var _delegate_getFirstKey, _delegate_getFirstKey1; 72102 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; 72103 if (keyToFocus == null) { 72104 let previousActiveElement = $d4ee10de306f2510$export$cd4e5573fbe2b576(); 72105 $55f9b1ae81f22853$export$76e4e37e5339496d(ref.current), $55f9b1ae81f22853$export$2b35b76d2e30e129(previousActiveElement, null), manager.collection.size > 0 && (shouldVirtualFocusFirst.current = !1); 72106 } else 72107 manager.setFocusedKey(keyToFocus), shouldVirtualFocusFirst.current = !1; 72108 }); 72109 $ca9b37712f007381$export$72ef708ab07251f1(() => { 72110 shouldVirtualFocusFirst.current && updateActiveDescendant(); 72111 }, [ 72112 manager.collection, 72113 updateActiveDescendant 72114 ]); 72115 let resetFocusFirstFlag = $8ae05eaa5c114e9c$export$7f54fc3180508a52(() => { 72116 manager.collection.size > 0 && (shouldVirtualFocusFirst.current = !1); 72117 }); 72118 $ca9b37712f007381$export$72ef708ab07251f1(() => { 72119 resetFocusFirstFlag(); 72120 }, [ 72121 manager.focusedKey, 72122 resetFocusFirstFlag 72123 ]), $e9faafb641e167db$export$90fc3a17d93f704c(ref, $5671b20cf9b562b2$export$447a38995de2c711, shouldUseVirtualFocus ? (e) => { 72124 var _e_detail; 72125 e.stopPropagation(), manager.setFocused(!1), !((_e_detail = e.detail) === null || _e_detail === void 0) && _e_detail.clearFocusKey && manager.setFocusedKey(null); 72126 } : void 0); 72127 let autoFocusRef = (0, import_react139.useRef)(autoFocus), didAutoFocusRef = (0, import_react139.useRef)(!1); 72128 (0, import_react139.useEffect)(() => { 72129 if (autoFocusRef.current) { 72130 var _delegate_getFirstKey, _delegate_getLastKey; 72131 let focusedKey = null; 72132 var _delegate_getFirstKey1; 72133 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); 72134 var _delegate_getLastKey1; 72135 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); 72136 let selectedKeys = manager.selectedKeys; 72137 if (selectedKeys.size) { 72138 for (let key of selectedKeys) if (manager.canSelectItem(key)) { 72139 focusedKey = key; 72140 break; 72141 } 72142 } 72143 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); 72144 } 72145 }); 72146 let lastFocusedKey = (0, import_react139.useRef)(manager.focusedKey), raf = (0, import_react139.useRef)(null); 72147 (0, import_react139.useEffect)(() => { 72148 if (manager.isFocused && manager.focusedKey != null && (manager.focusedKey !== lastFocusedKey.current || didAutoFocusRef.current) && scrollRef.current && ref.current) { 72149 let modality = $507fabe10e71c6fb$export$630ff653c5ada6a9(), element = $feb5ffebff200149$export$c3d8340acf92597f(ref, manager.focusedKey); 72150 if (!(element instanceof HTMLElement)) 72151 return; 72152 (modality === "keyboard" || didAutoFocusRef.current) && (raf.current && cancelAnimationFrame(raf.current), raf.current = requestAnimationFrame(() => { 72153 scrollRef.current && ($2f04cbc44ee30ce0$export$53a0910f038337bd(scrollRef.current, element), modality !== "virtual" && $2f04cbc44ee30ce0$export$c826860796309d1b(element, { 72154 containingElement: ref.current 72155 })); 72156 })); 72157 } 72158 !shouldUseVirtualFocus && manager.isFocused && manager.focusedKey == null && lastFocusedKey.current != null && ref.current && $3ad3f6e1647bc98d$export$80f3e147d781571c(ref.current), lastFocusedKey.current = manager.focusedKey, didAutoFocusRef.current = !1; 72159 }), (0, import_react139.useEffect)(() => () => { 72160 raf.current && cancelAnimationFrame(raf.current); 72161 }, []), $e9faafb641e167db$export$90fc3a17d93f704c(ref, "react-aria-focus-scope-restore", (e) => { 72162 e.preventDefault(), manager.setFocused(!0); 72163 }); 72164 let handlers = { 72165 onKeyDown, 72166 onFocus, 72167 onBlur, 72168 onMouseDown(e) { 72169 scrollRef.current === e.target && e.preventDefault(); 72170 } 72171 }, { typeSelectProps } = $fb3050f43d946246$export$e32c88dfddc6e1d8({ 72172 keyboardDelegate: delegate, 72173 selectionManager: manager 72174 }); 72175 disallowTypeAhead || (handlers = $3ef42575df84b30b$export$9d1611c77c2fe928(typeSelectProps, handlers)); 72176 let tabIndex; 72177 shouldUseVirtualFocus || (tabIndex = manager.focusedKey == null ? 0 : -1); 72178 let collectionId = $feb5ffebff200149$export$881eb0d9f3605d9d(manager.collection); 72179 return { 72180 collectionProps: $3ef42575df84b30b$export$9d1611c77c2fe928(handlers, { 72181 tabIndex, 72182 "data-collection": collectionId 72183 }) 72184 }; 72185} 72186
vendor: 7,915 bytes, lines 72187-72311
72187// ../../node_modules/@react-aria/selection/dist/useSelectableItem.mjs 72188var import_react140 = __toESM(require_react(), 1); 72189function $880e95eb8b93ba9a$export$ecf600387e221c37(options) { 72190 let { id, selectionManager: manager, key, ref, shouldSelectOnPressUp, shouldUseVirtualFocus, focus, isDisabled: isDisabled3, onAction, allowsDifferentPressOrigin, linkBehavior = "action" } = options, router = $ea8dcbcb9ea1b556$export$9a302a45f65d0572(); 72191 id = $bdb11010cef70236$export$f680877a34711e37(id); 72192 let onSelect = (e) => { 72193 if (e.pointerType === "keyboard" && $feb5ffebff200149$export$d3e3bd3e26688c04(e)) manager.toggleSelection(key); 72194 else { 72195 if (manager.selectionMode === "none") return; 72196 if (manager.isLink(key)) { 72197 if (linkBehavior === "selection" && ref.current) { 72198 let itemProps2 = manager.getItemProps(key); 72199 router.open(ref.current, e, itemProps2.href, itemProps2.routerOptions), manager.setSelectedKeys(manager.selectedKeys); 72200 return; 72201 } else if (linkBehavior === "override" || linkBehavior === "none") return; 72202 } 72203 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); 72204 } 72205 }; 72206 (0, import_react140.useEffect)(() => { 72207 key === manager.focusedKey && manager.isFocused && (shouldUseVirtualFocus ? $55f9b1ae81f22853$export$76e4e37e5339496d(ref.current) : focus ? focus() : document.activeElement !== ref.current && ref.current && $3ad3f6e1647bc98d$export$80f3e147d781571c(ref.current)); 72208 }, [ 72209 ref, 72210 key, 72211 manager.focusedKey, 72212 manager.childFocusStrategy, 72213 manager.isFocused, 72214 shouldUseVirtualFocus 72215 ]), isDisabled3 = isDisabled3 || manager.isDisabled(key); 72216 let itemProps = {}; 72217 !shouldUseVirtualFocus && !isDisabled3 ? itemProps = { 72218 tabIndex: key === manager.focusedKey ? 0 : -1, 72219 onFocus(e) { 72220 e.target === ref.current && manager.setFocusedKey(key); 72221 } 72222 } : isDisabled3 && (itemProps.onMouseDown = (e) => { 72223 e.preventDefault(); 72224 }); 72225 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_react140.useRef)(null), longPressEnabled = hasAction && allowsSelection, longPressEnabledOnPressStart = (0, import_react140.useRef)(!1), hadPrimaryActionOnPressStart = (0, import_react140.useRef)(!1), collectionItemProps = manager.getItemProps(key), performAction = (e) => { 72226 if (onAction) { 72227 var _ref_current; 72228 onAction(), (_ref_current = ref.current) === null || _ref_current === void 0 || _ref_current.dispatchEvent(new CustomEvent("react-aria-item-action", { 72229 bubbles: !0 72230 })); 72231 } 72232 hasLinkAction && ref.current && router.open(ref.current, e, collectionItemProps.href, collectionItemProps.routerOptions); 72233 }, itemPressProps = { 72234 ref 72235 }; 72236 if (shouldSelectOnPressUp ? (itemPressProps.onPressStart = (e) => { 72237 modality.current = e.pointerType, longPressEnabledOnPressStart.current = longPressEnabled, e.pointerType === "keyboard" && (!hasAction || $880e95eb8b93ba9a$var$isSelectionKey()) && onSelect(e); 72238 }, allowsDifferentPressOrigin ? (itemPressProps.onPressUp = hasPrimaryAction ? void 0 : (e) => { 72239 e.pointerType === "mouse" && allowsSelection && onSelect(e); 72240 }, itemPressProps.onPress = hasPrimaryAction ? performAction : (e) => { 72241 e.pointerType !== "keyboard" && e.pointerType !== "mouse" && allowsSelection && onSelect(e); 72242 }) : itemPressProps.onPress = (e) => { 72243 if (hasPrimaryAction || hasSecondaryAction && e.pointerType !== "mouse") { 72244 if (e.pointerType === "keyboard" && !$880e95eb8b93ba9a$var$isActionKey()) return; 72245 performAction(e); 72246 } else e.pointerType !== "keyboard" && allowsSelection && onSelect(e); 72247 }) : (itemPressProps.onPressStart = (e) => { 72248 modality.current = e.pointerType, longPressEnabledOnPressStart.current = longPressEnabled, hadPrimaryActionOnPressStart.current = hasPrimaryAction, allowsSelection && (e.pointerType === "mouse" && !hasPrimaryAction || e.pointerType === "keyboard" && (!allowsActions || $880e95eb8b93ba9a$var$isSelectionKey())) && onSelect(e); 72249 }, itemPressProps.onPress = (e) => { 72250 (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)); 72251 }), itemProps["data-collection"] = $feb5ffebff200149$export$6aeb1680a0ae8741(manager.collection), itemProps["data-key"] = key, itemPressProps.preventFocusOnPress = shouldUseVirtualFocus, shouldUseVirtualFocus && (itemPressProps = $3ef42575df84b30b$export$9d1611c77c2fe928(itemPressProps, { 72252 onPressStart(e) { 72253 e.pointerType !== "touch" && (manager.setFocused(!0), manager.setFocusedKey(key)); 72254 }, 72255 onPress(e) { 72256 e.pointerType === "touch" && (manager.setFocused(!0), manager.setFocusedKey(key)); 72257 } 72258 })), collectionItemProps) 72259 for (let key2 of [ 72260 "onPressStart", 72261 "onPressEnd", 72262 "onPressChange", 72263 "onPress", 72264 "onPressUp", 72265 "onClick" 72266 ]) collectionItemProps[key2] && (itemPressProps[key2] = $ff5963eb1fccf552$export$e08e3b67e392101e(itemPressProps[key2], collectionItemProps[key2])); 72267 let { pressProps, isPressed } = $f6c31cce2adf654f$export$45712eceda6fad21(itemPressProps), onDoubleClick = hasSecondaryAction ? (e) => { 72268 modality.current === "mouse" && (e.stopPropagation(), e.preventDefault(), performAction(e)); 72269 } : void 0, { longPressProps } = $8a26561d2877236e$export$c24ed0104d07eab9({ 72270 isDisabled: !longPressEnabled, 72271 onLongPress(e) { 72272 e.pointerType === "touch" && (onSelect(e), manager.setSelectionBehavior("toggle")); 72273 } 72274 }), onDragStartCapture = (e) => { 72275 modality.current === "touch" && longPressEnabledOnPressStart.current && e.preventDefault(); 72276 }, onClick = linkBehavior !== "none" && manager.isLink(key) ? (e) => { 72277 $ea8dcbcb9ea1b556$export$95185d699e05d4d7.isOpening || e.preventDefault(); 72278 } : void 0; 72279 return { 72280 itemProps: $3ef42575df84b30b$export$9d1611c77c2fe928( 72281 itemProps, 72282 allowsSelection || hasPrimaryAction || shouldUseVirtualFocus && !isDisabled3 ? pressProps : {}, 72283 longPressEnabled ? longPressProps : {}, 72284 { 72285 onDoubleClick, 72286 onDragStartCapture, 72287 onClick, 72288 id 72289 }, 72290 // Prevent DOM focus from moving on mouse down when using virtual focus 72291 shouldUseVirtualFocus ? { 72292 onMouseDown: (e) => e.preventDefault() 72293 } : void 0 72294 ), 72295 isPressed, 72296 isSelected: manager.isSelected(key), 72297 isFocused: manager.isFocused && manager.focusedKey === key, 72298 isDisabled: isDisabled3, 72299 allowsSelection, 72300 hasAction 72301 }; 72302} 72303function $880e95eb8b93ba9a$var$isActionKey() { 72304 let event = window.event; 72305 return event?.key === "Enter"; 72306} 72307function $880e95eb8b93ba9a$var$isSelectionKey() { 72308 let event = window.event; 72309 return event?.key === " " || event?.code === "Space"; 72310} 72311
vendor: 1,898 bytes, lines 72312-72349
72312// ../../node_modules/@react-aria/selection/dist/DOMLayoutDelegate.mjs 72313var $657e4dc4a6e88df0$export$8f5ed9ff9f511381 = class { 72314 getItemRect(key) { 72315 let container = this.ref.current; 72316 if (!container) return null; 72317 let item = key != null ? $feb5ffebff200149$export$c3d8340acf92597f(this.ref, key) : null; 72318 if (!item) return null; 72319 let containerRect = container.getBoundingClientRect(), itemRect = item.getBoundingClientRect(); 72320 return { 72321 x: itemRect.left - containerRect.left - container.clientLeft + container.scrollLeft, 72322 y: itemRect.top - containerRect.top - container.clientTop + container.scrollTop, 72323 width: itemRect.width, 72324 height: itemRect.height 72325 }; 72326 } 72327 getContentSize() { 72328 let container = this.ref.current; 72329 var _container_scrollWidth, _container_scrollHeight; 72330 return { 72331 width: (_container_scrollWidth = container?.scrollWidth) !== null && _container_scrollWidth !== void 0 ? _container_scrollWidth : 0, 72332 height: (_container_scrollHeight = container?.scrollHeight) !== null && _container_scrollHeight !== void 0 ? _container_scrollHeight : 0 72333 }; 72334 } 72335 getVisibleRect() { 72336 let container = this.ref.current; 72337 var _container_scrollLeft, _container_scrollTop, _container_clientWidth, _container_clientHeight; 72338 return { 72339 x: (_container_scrollLeft = container?.scrollLeft) !== null && _container_scrollLeft !== void 0 ? _container_scrollLeft : 0, 72340 y: (_container_scrollTop = container?.scrollTop) !== null && _container_scrollTop !== void 0 ? _container_scrollTop : 0, 72341 width: (_container_clientWidth = container?.clientWidth) !== null && _container_clientWidth !== void 0 ? _container_clientWidth : 0, 72342 height: (_container_clientHeight = container?.clientHeight) !== null && _container_clientHeight !== void 0 ? _container_clientHeight : 0 72343 }; 72344 } 72345 constructor(ref) { 72346 this.ref = ref; 72347 } 72348}; 72349
vendor: 7,087 bytes, lines 72350-72467
72350// ../../node_modules/@react-aria/selection/dist/ListKeyboardDelegate.mjs 72351var $2a25aae57d74318e$export$a05409b8bb224a5a = class { 72352 isDisabled(item) { 72353 var _item_props; 72354 return this.disabledBehavior === "all" && (((_item_props = item.props) === null || _item_props === void 0 ? void 0 : _item_props.isDisabled) || this.disabledKeys.has(item.key)); 72355 } 72356 findNextNonDisabled(key, getNext) { 72357 let nextKey = key; 72358 for (; nextKey != null; ) { 72359 let item = this.collection.getItem(nextKey); 72360 if (item?.type === "item" && !this.isDisabled(item)) return nextKey; 72361 nextKey = getNext(nextKey); 72362 } 72363 return null; 72364 } 72365 getNextKey(key) { 72366 let nextKey = key; 72367 return nextKey = this.collection.getKeyAfter(nextKey), this.findNextNonDisabled(nextKey, (key2) => this.collection.getKeyAfter(key2)); 72368 } 72369 getPreviousKey(key) { 72370 let nextKey = key; 72371 return nextKey = this.collection.getKeyBefore(nextKey), this.findNextNonDisabled(nextKey, (key2) => this.collection.getKeyBefore(key2)); 72372 } 72373 findKey(key, nextKey, shouldSkip) { 72374 let tempKey = key, itemRect = this.layoutDelegate.getItemRect(tempKey); 72375 if (!itemRect || tempKey == null) return null; 72376 let prevRect = itemRect; 72377 do { 72378 if (tempKey = nextKey(tempKey), tempKey == null) break; 72379 itemRect = this.layoutDelegate.getItemRect(tempKey); 72380 } while (itemRect && shouldSkip(prevRect, itemRect) && tempKey != null); 72381 return tempKey; 72382 } 72383 isSameRow(prevRect, itemRect) { 72384 return prevRect.y === itemRect.y || prevRect.x !== itemRect.x; 72385 } 72386 isSameColumn(prevRect, itemRect) { 72387 return prevRect.x === itemRect.x || prevRect.y !== itemRect.y; 72388 } 72389 getKeyBelow(key) { 72390 return this.layout === "grid" && this.orientation === "vertical" ? this.findKey(key, (key2) => this.getNextKey(key2), this.isSameRow) : this.getNextKey(key); 72391 } 72392 getKeyAbove(key) { 72393 return this.layout === "grid" && this.orientation === "vertical" ? this.findKey(key, (key2) => this.getPreviousKey(key2), this.isSameRow) : this.getPreviousKey(key); 72394 } 72395 getNextColumn(key, right2) { 72396 return right2 ? this.getPreviousKey(key) : this.getNextKey(key); 72397 } 72398 getKeyRightOf(key) { 72399 let layoutDelegateMethod = this.direction === "ltr" ? "getKeyRightOf" : "getKeyLeftOf"; 72400 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; 72401 } 72402 getKeyLeftOf(key) { 72403 let layoutDelegateMethod = this.direction === "ltr" ? "getKeyLeftOf" : "getKeyRightOf"; 72404 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; 72405 } 72406 getFirstKey() { 72407 let key = this.collection.getFirstKey(); 72408 return this.findNextNonDisabled(key, (key2) => this.collection.getKeyAfter(key2)); 72409 } 72410 getLastKey() { 72411 let key = this.collection.getLastKey(); 72412 return this.findNextNonDisabled(key, (key2) => this.collection.getKeyBefore(key2)); 72413 } 72414 getKeyPageAbove(key) { 72415 let menu = this.ref.current, itemRect = this.layoutDelegate.getItemRect(key); 72416 if (!itemRect) return null; 72417 if (menu && !$cc38e7bd3fc7b213$export$2bb74740c4e19def(menu)) return this.getFirstKey(); 72418 let nextKey = key; 72419 if (this.orientation === "horizontal") { 72420 let pageX = Math.max(0, itemRect.x + itemRect.width - this.layoutDelegate.getVisibleRect().width); 72421 for (; itemRect && itemRect.x > pageX && nextKey != null; ) 72422 nextKey = this.getKeyAbove(nextKey), itemRect = nextKey == null ? null : this.layoutDelegate.getItemRect(nextKey); 72423 } else { 72424 let pageY = Math.max(0, itemRect.y + itemRect.height - this.layoutDelegate.getVisibleRect().height); 72425 for (; itemRect && itemRect.y > pageY && nextKey != null; ) 72426 nextKey = this.getKeyAbove(nextKey), itemRect = nextKey == null ? null : this.layoutDelegate.getItemRect(nextKey); 72427 } 72428 return nextKey ?? this.getFirstKey(); 72429 } 72430 getKeyPageBelow(key) { 72431 let menu = this.ref.current, itemRect = this.layoutDelegate.getItemRect(key); 72432 if (!itemRect) return null; 72433 if (menu && !$cc38e7bd3fc7b213$export$2bb74740c4e19def(menu)) return this.getLastKey(); 72434 let nextKey = key; 72435 if (this.orientation === "horizontal") { 72436 let pageX = Math.min(this.layoutDelegate.getContentSize().width, itemRect.y - itemRect.width + this.layoutDelegate.getVisibleRect().width); 72437 for (; itemRect && itemRect.x < pageX && nextKey != null; ) 72438 nextKey = this.getKeyBelow(nextKey), itemRect = nextKey == null ? null : this.layoutDelegate.getItemRect(nextKey); 72439 } else { 72440 let pageY = Math.min(this.layoutDelegate.getContentSize().height, itemRect.y - itemRect.height + this.layoutDelegate.getVisibleRect().height); 72441 for (; itemRect && itemRect.y < pageY && nextKey != null; ) 72442 nextKey = this.getKeyBelow(nextKey), itemRect = nextKey == null ? null : this.layoutDelegate.getItemRect(nextKey); 72443 } 72444 return nextKey ?? this.getLastKey(); 72445 } 72446 getKeyForSearch(search, fromKey) { 72447 if (!this.collator) return null; 72448 let collection = this.collection, key = fromKey || this.getFirstKey(); 72449 for (; key != null; ) { 72450 let item = collection.getItem(key); 72451 if (!item) return null; 72452 let substring = item.textValue.slice(0, search.length); 72453 if (item.textValue && this.collator.compare(substring, search) === 0) return key; 72454 key = this.getNextKey(key); 72455 } 72456 return null; 72457 } 72458 constructor(...args) { 72459 if (args.length === 1) { 72460 let opts = args[0]; 72461 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); 72462 } else 72463 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); 72464 this.layout === "stack" && this.orientation === "vertical" && (this.getKeyLeftOf = void 0, this.getKeyRightOf = void 0); 72465 } 72466}; 72467
vendor: 987 bytes, lines 72468-72499
72468// ../../node_modules/@react-aria/selection/dist/useSelectableList.mjs 72469var import_react141 = __toESM(require_react(), 1); 72470function $982254629710d113$export$b95089534ab7c1fd(props) { 72471 let { selectionManager, collection, disabledKeys, ref, keyboardDelegate, layoutDelegate } = props, collator = $325a3faab7a68acd$export$a16aca283550c30d({ 72472 usage: "search", 72473 sensitivity: "base" 72474 }), disabledBehavior = selectionManager.disabledBehavior, delegate = (0, import_react141.useMemo)(() => keyboardDelegate || new $2a25aae57d74318e$export$a05409b8bb224a5a({ 72475 collection, 72476 disabledKeys, 72477 disabledBehavior, 72478 ref, 72479 collator, 72480 layoutDelegate 72481 }), [ 72482 keyboardDelegate, 72483 layoutDelegate, 72484 collection, 72485 disabledKeys, 72486 ref, 72487 collator, 72488 disabledBehavior 72489 ]), { collectionProps } = $ae20dd8cbca75726$export$d6daf82dcd84e87c({ 72490 ...props, 72491 ref, 72492 selectionManager, 72493 keyboardDelegate: delegate 72494 }); 72495 return { 72496 listProps: collectionProps 72497 }; 72498} 72499
vendor: 1,229 bytes, lines 72500-72533
72500// ../../node_modules/@react-aria/menu/dist/useMenu.mjs 72501function $d5336fe17ce95402$export$38eaa17faae8f579(props, state3, ref) { 72502 let { shouldFocusWrap = !0, onKeyDown, onKeyUp, ...otherProps } = props; 72503 !props["aria-label"] && props["aria-labelledby"]; 72504 let domProps = $65484d02dcb7eb3e$export$457c3d6518dd4c6f(props, { 72505 labelable: !0 72506 }), { listProps } = $982254629710d113$export$b95089534ab7c1fd({ 72507 ...otherProps, 72508 ref, 72509 selectionManager: state3.selectionManager, 72510 collection: state3.collection, 72511 disabledKeys: state3.disabledKeys, 72512 shouldFocusWrap, 72513 linkBehavior: "override" 72514 }); 72515 return $fc79756100351201$export$6f49b4016bfc8d56.set(state3, { 72516 onClose: props.onClose, 72517 onAction: props.onAction, 72518 shouldUseVirtualFocus: props.shouldUseVirtualFocus 72519 }), { 72520 menuProps: $3ef42575df84b30b$export$9d1611c77c2fe928(domProps, { 72521 onKeyDown, 72522 onKeyUp 72523 }, { 72524 role: "menu", 72525 ...listProps, 72526 onKeyDown: (e) => { 72527 var _listProps_onKeyDown; 72528 (e.key !== "Escape" || props.shouldUseVirtualFocus) && ((_listProps_onKeyDown = listProps.onKeyDown) === null || _listProps_onKeyDown === void 0 || _listProps_onKeyDown.call(listProps, e)); 72529 } 72530 }) 72531 }; 72532} 72533
vendor: 1,350 bytes, lines 72534-72569
72534// ../../node_modules/@react-stately/collections/dist/Item.mjs 72535var import_react142 = __toESM(require_react(), 1); 72536function $c1d7fb2ec91bae71$var$Item(props) { 72537 return null; 72538} 72539$c1d7fb2ec91bae71$var$Item.getCollectionNode = function* (props, context) { 72540 let { childItems, title, children } = props, rendered = props.title || props.children, textValue = props.textValue || (typeof rendered == "string" ? rendered : "") || props["aria-label"] || ""; 72541 !textValue && context?.suppressTextValueWarning, yield { 72542 type: "item", 72543 props, 72544 rendered, 72545 textValue, 72546 "aria-label": props["aria-label"], 72547 hasChildNodes: $c1d7fb2ec91bae71$var$hasChildItems(props), 72548 *childNodes() { 72549 if (childItems) for (let child of childItems) yield { 72550 type: "item", 72551 value: child 72552 }; 72553 else if (title) { 72554 let items = []; 72555 import_react142.default.Children.forEach(children, (child) => { 72556 items.push({ 72557 type: "item", 72558 element: child 72559 }); 72560 }), yield* items; 72561 } 72562 } 72563 }; 72564}; 72565function $c1d7fb2ec91bae71$var$hasChildItems(props) { 72566 return props.hasChildItems != null ? props.hasChildItems : !!(props.childItems || props.title && import_react142.default.Children.count(props.children) > 0); 72567} 72568var $c1d7fb2ec91bae71$export$6d08773d2e66f8f2 = $c1d7fb2ec91bae71$var$Item; 72569
vendor: 959 bytes, lines 72570-72603
72570// ../../node_modules/@react-stately/collections/dist/Section.mjs 72571var import_react143 = __toESM(require_react(), 1); 72572function $9fc4852771d079eb$var$Section(props) { 72573 return null; 72574} 72575$9fc4852771d079eb$var$Section.getCollectionNode = function* (props) { 72576 let { children, title, items } = props; 72577 yield { 72578 type: "section", 72579 props, 72580 hasChildNodes: !0, 72581 rendered: title, 72582 "aria-label": props["aria-label"], 72583 *childNodes() { 72584 if (typeof children == "function") { 72585 if (!items) throw new Error("props.children was a function but props.items is missing"); 72586 for (let item of items) yield { 72587 type: "item", 72588 value: item, 72589 renderer: children 72590 }; 72591 } else { 72592 let items2 = []; 72593 import_react143.default.Children.forEach(children, (child) => { 72594 items2.push({ 72595 type: "item", 72596 element: child 72597 }); 72598 }), yield* items2; 72599 } 72600 } 72601 }; 72602}; 72603
vendor: 7,358 bytes, lines 72604-72771
72604// ../../node_modules/@react-stately/collections/dist/CollectionBuilder.mjs 72605var import_react144 = __toESM(require_react(), 1), $eb2240fc39a57fa5$export$bf788dd355e3a401 = class { 72606 build(props, context) { 72607 return this.context = context, $eb2240fc39a57fa5$var$iterable(() => this.iterateCollection(props)); 72608 } 72609 *iterateCollection(props) { 72610 let { children, items } = props; 72611 if (import_react144.default.isValidElement(children) && children.type === import_react144.default.Fragment) yield* this.iterateCollection({ 72612 children: children.props.children, 72613 items 72614 }); 72615 else if (typeof children == "function") { 72616 if (!items) throw new Error("props.children was a function but props.items is missing"); 72617 let index4 = 0; 72618 for (let item of items) 72619 yield* this.getFullNode({ 72620 value: item, 72621 index: index4 72622 }, { 72623 renderer: children 72624 }), index4++; 72625 } else { 72626 let items2 = []; 72627 import_react144.default.Children.forEach(children, (child) => { 72628 child && items2.push(child); 72629 }); 72630 let index4 = 0; 72631 for (let item of items2) { 72632 let nodes = this.getFullNode({ 72633 element: item, 72634 index: index4 72635 }, {}); 72636 for (let node2 of nodes) 72637 index4++, yield node2; 72638 } 72639 } 72640 } 72641 getKey(item, partialNode, state3, parentKey) { 72642 if (item.key != null) return item.key; 72643 if (partialNode.type === "cell" && partialNode.key != null) return `${parentKey}${partialNode.key}`; 72644 let v = partialNode.value; 72645 if (v != null) { 72646 var _v_key; 72647 let key = (_v_key = v.key) !== null && _v_key !== void 0 ? _v_key : v.id; 72648 if (key == null) throw new Error("No key found for item"); 72649 return key; 72650 } 72651 return parentKey ? `${parentKey}.${partialNode.index}` : `$.${partialNode.index}`; 72652 } 72653 getChildState(state3, partialNode) { 72654 return { 72655 renderer: partialNode.renderer || state3.renderer 72656 }; 72657 } 72658 *getFullNode(partialNode, state3, parentKey, parentNode) { 72659 if (import_react144.default.isValidElement(partialNode.element) && partialNode.element.type === import_react144.default.Fragment) { 72660 let children = []; 72661 import_react144.default.Children.forEach(partialNode.element.props.children, (child) => { 72662 children.push(child); 72663 }); 72664 var _partialNode_index; 72665 let index4 = (_partialNode_index = partialNode.index) !== null && _partialNode_index !== void 0 ? _partialNode_index : 0; 72666 for (let child of children) yield* this.getFullNode({ 72667 element: child, 72668 index: index4++ 72669 }, state3, parentKey, parentNode); 72670 return; 72671 } 72672 let element = partialNode.element; 72673 if (!element && partialNode.value && state3 && state3.renderer) { 72674 let cached = this.cache.get(partialNode.value); 72675 if (cached && (!cached.shouldInvalidate || !cached.shouldInvalidate(this.context))) { 72676 cached.index = partialNode.index, cached.parentKey = parentNode ? parentNode.key : null, yield cached; 72677 return; 72678 } 72679 element = state3.renderer(partialNode.value); 72680 } 72681 if (import_react144.default.isValidElement(element)) { 72682 let type5 = element.type; 72683 if (typeof type5 != "function" && typeof type5.getCollectionNode != "function") { 72684 let name = element.type; 72685 throw new Error(`Unknown element <${name}> in collection.`); 72686 } 72687 let childNodes = type5.getCollectionNode(element.props, this.context); 72688 var _partialNode_index1; 72689 let index4 = (_partialNode_index1 = partialNode.index) !== null && _partialNode_index1 !== void 0 ? _partialNode_index1 : 0, result = childNodes.next(); 72690 for (; !result.done && result.value; ) { 72691 let childNode = result.value; 72692 partialNode.index = index4; 72693 var _childNode_key; 72694 let nodeKey = (_childNode_key = childNode.key) !== null && _childNode_key !== void 0 ? _childNode_key : null; 72695 nodeKey == null && (nodeKey = childNode.element ? null : this.getKey(element, partialNode, state3, parentKey)); 72696 let children = [ 72697 ...this.getFullNode({ 72698 ...childNode, 72699 key: nodeKey, 72700 index: index4, 72701 wrapper: $eb2240fc39a57fa5$var$compose(partialNode.wrapper, childNode.wrapper) 72702 }, this.getChildState(state3, childNode), parentKey ? `${parentKey}${element.key}` : element.key, parentNode) 72703 ]; 72704 for (let node3 of children) { 72705 var _childNode_value, _ref; 72706 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); 72707 var _parentNode_type; 72708 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.`); 72709 index4++, yield node3; 72710 } 72711 result = childNodes.next(children); 72712 } 72713 return; 72714 } 72715 if (partialNode.key == null || partialNode.type == null) return; 72716 let builder = this; 72717 var _partialNode_value, _partialNode_textValue; 72718 let node2 = { 72719 type: partialNode.type, 72720 props: partialNode.props, 72721 key: partialNode.key, 72722 parentKey: parentNode ? parentNode.key : null, 72723 value: (_partialNode_value = partialNode.value) !== null && _partialNode_value !== void 0 ? _partialNode_value : null, 72724 level: parentNode ? parentNode.level + 1 : 0, 72725 index: partialNode.index, 72726 rendered: partialNode.rendered, 72727 textValue: (_partialNode_textValue = partialNode.textValue) !== null && _partialNode_textValue !== void 0 ? _partialNode_textValue : "", 72728 "aria-label": partialNode["aria-label"], 72729 wrapper: partialNode.wrapper, 72730 shouldInvalidate: partialNode.shouldInvalidate, 72731 hasChildNodes: partialNode.hasChildNodes || !1, 72732 childNodes: $eb2240fc39a57fa5$var$iterable(function* () { 72733 if (!partialNode.hasChildNodes || !partialNode.childNodes) return; 72734 let index4 = 0; 72735 for (let child of partialNode.childNodes()) { 72736 child.key != null && (child.key = `${node2.key}${child.key}`); 72737 let nodes = builder.getFullNode({ 72738 ...child, 72739 index: index4 72740 }, builder.getChildState(state3, child), node2.key, node2); 72741 for (let node3 of nodes) 72742 index4++, yield node3; 72743 } 72744 }) 72745 }; 72746 yield node2; 72747 } 72748 constructor() { 72749 this.cache = /* @__PURE__ */ new WeakMap(); 72750 } 72751}; 72752function $eb2240fc39a57fa5$var$iterable(iterator) { 72753 let cache = [], iterable = null; 72754 return { 72755 *[Symbol.iterator]() { 72756 for (let item of cache) yield item; 72757 iterable || (iterable = iterator()); 72758 for (let item of iterable) 72759 cache.push(item), yield item; 72760 } 72761 }; 72762} 72763function $eb2240fc39a57fa5$var$compose(outer, inner) { 72764 if (outer && inner) return (element) => outer(inner(element)); 72765 if (outer) return outer; 72766 if (inner) return inner; 72767} 72768function $eb2240fc39a57fa5$var$capitalize(str2) { 72769 return str2[0].toUpperCase() + str2.slice(1); 72770} 72771
vendor: 631 bytes, lines 72772-72792
72772// ../../node_modules/@react-stately/collections/dist/useCollection.mjs 72773var import_react145 = __toESM(require_react(), 1); 72774function $7613b1592d41b092$export$6cd28814d92fa9c9(props, factory, context) { 72775 let builder = (0, import_react145.useMemo)(() => new $eb2240fc39a57fa5$export$bf788dd355e3a401(), []), { children, items, collection } = props; 72776 return (0, import_react145.useMemo)(() => { 72777 if (collection) return collection; 72778 let nodes = builder.build({ 72779 children, 72780 items 72781 }, context); 72782 return factory(nodes); 72783 }, [ 72784 builder, 72785 children, 72786 items, 72787 collection, 72788 context, 72789 factory 72790 ]); 72791} 72792
vendor: 1,521 bytes, lines 72793-72825
72793// ../../node_modules/@react-stately/collections/dist/getChildNodes.mjs 72794function $c5a24bc478652b5f$export$1005530eda016c13(node2, collection) { 72795 return typeof collection.getChildren == "function" ? collection.getChildren(node2.key) : node2.childNodes; 72796} 72797function $c5a24bc478652b5f$export$fbdeaa6a76694f71(iterable) { 72798 return $c5a24bc478652b5f$export$5f3398f8733f90e2(iterable, 0); 72799} 72800function $c5a24bc478652b5f$export$5f3398f8733f90e2(iterable, index4) { 72801 if (index4 < 0) return; 72802 let i = 0; 72803 for (let item of iterable) { 72804 if (i === index4) return item; 72805 i++; 72806 } 72807} 72808function $c5a24bc478652b5f$export$8c434b3a7a4dad6(collection, a3, b) { 72809 if (a3.parentKey === b.parentKey) return a3.index - b.index; 72810 let aAncestors = [ 72811 ...$c5a24bc478652b5f$var$getAncestors(collection, a3), 72812 a3 72813 ], bAncestors = [ 72814 ...$c5a24bc478652b5f$var$getAncestors(collection, b), 72815 b 72816 ], firstNonMatchingAncestor = aAncestors.slice(0, bAncestors.length).findIndex((a4, i) => a4 !== bAncestors[i]); 72817 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); 72818} 72819function $c5a24bc478652b5f$var$getAncestors(collection, node2) { 72820 let parents = [], currNode = node2; 72821 for (; currNode?.parentKey != null; ) 72822 currNode = collection.getItem(currNode.parentKey), currNode && parents.unshift(currNode); 72823 return parents; 72824} 72825
vendor: 613 bytes, lines 72826-72837
72826// ../../node_modules/@react-stately/collections/dist/getItemCount.mjs 72827var $453cc9f0df89c0a5$var$cache = /* @__PURE__ */ new WeakMap(); 72828function $453cc9f0df89c0a5$export$77d5aafae4e095b2(collection) { 72829 let count = $453cc9f0df89c0a5$var$cache.get(collection); 72830 if (count != null) return count; 72831 let counter = 0, countItems = (items) => { 72832 for (let item of items) 72833 item.type === "section" ? countItems($c5a24bc478652b5f$export$1005530eda016c13(item, collection)) : item.type === "item" && counter++; 72834 }; 72835 return countItems(collection), $453cc9f0df89c0a5$var$cache.set(collection, counter), counter; 72836} 72837
vendor: 7,089 bytes, lines 72838-72980
72838// ../../node_modules/@react-aria/menu/dist/useMenuItem.mjs 72839var import_react146 = __toESM(require_react(), 1); 72840function $a2e5df62f93c7633$export$9d32628fc2aea7da(props, state3, ref) { 72841 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"; 72842 var _props_isDisabled; 72843 let isDisabled3 = (_props_isDisabled = props.isDisabled) !== null && _props_isDisabled !== void 0 ? _props_isDisabled : selectionManager.isDisabled(key); 72844 var _props_isSelected; 72845 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 = () => { 72846 var _item_props; 72847 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)) { 72848 let onAction = data.onAction; 72849 onAction(key); 72850 } 72851 }, role = "menuitem"; 72852 isTrigger || (selectionManager.selectionMode === "single" ? role = "menuitemradio" : selectionManager.selectionMode === "multiple" && (role = "menuitemcheckbox")); 72853 let labelId = $bdb11010cef70236$export$b4cc09c592e8fdb8(), descriptionId = $bdb11010cef70236$export$b4cc09c592e8fdb8(), keyboardId = $bdb11010cef70236$export$b4cc09c592e8fdb8(), ariaProps = { 72854 id, 72855 "aria-disabled": isDisabled3 || void 0, 72856 role, 72857 "aria-label": props["aria-label"], 72858 "aria-labelledby": labelId, 72859 "aria-describedby": [ 72860 descriptionId, 72861 keyboardId 72862 ].filter(Boolean).join(" ") || void 0, 72863 "aria-controls": props["aria-controls"], 72864 "aria-haspopup": hasPopup, 72865 "aria-expanded": props["aria-expanded"] 72866 }; 72867 selectionManager.selectionMode !== "none" && !isTrigger && (ariaProps["aria-checked"] = isSelected), isVirtualized && (ariaProps["aria-posinset"] = item?.index, ariaProps["aria-setsize"] = $453cc9f0df89c0a5$export$77d5aafae4e095b2(state3.collection)); 72868 let isPressedRef = (0, import_react146.useRef)(!1), onPressChange = (isPressed2) => { 72869 pressChangeProp?.(isPressed2), isPressedRef.current = isPressed2; 72870 }, interaction = (0, import_react146.useRef)(null), onPressUp = (e) => { 72871 e.pointerType !== "keyboard" && (interaction.current = { 72872 pointerType: e.pointerType 72873 }), e.pointerType === "mouse" && (isPressedRef.current || e.target.click()), pressUpProp?.(e); 72874 }, onClick = (e) => { 72875 var _interaction_current, _interaction_current1; 72876 onClickProp?.(e), performAction(), $ea8dcbcb9ea1b556$export$13aea1a3cb5e3f1f(e, router, item.props.href, item?.props.routerOptions); 72877 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); 72878 shouldClose = closeOnSelect ?? shouldClose, onClose && !isTrigger && shouldClose && onClose(), interaction.current = null; 72879 }, { itemProps, isFocused } = $880e95eb8b93ba9a$export$ecf600387e221c37({ 72880 id, 72881 selectionManager, 72882 key, 72883 ref, 72884 shouldSelectOnPressUp: !0, 72885 allowsDifferentPressOrigin: !0, 72886 // Disable all handling of links in useSelectable item 72887 // because we handle it ourselves. The behavior of menus 72888 // is slightly different from other collections because 72889 // actions are performed on key down rather than key up. 72890 linkBehavior: "none", 72891 shouldUseVirtualFocus: data.shouldUseVirtualFocus 72892 }), { pressProps, isPressed } = $f6c31cce2adf654f$export$45712eceda6fad21({ 72893 onPressStart, 72894 onPress, 72895 onPressUp, 72896 onPressChange, 72897 onPressEnd, 72898 isDisabled: isDisabled3 72899 }), { hoverProps } = $6179b936705e76d3$export$ae780daf29e6d456({ 72900 isDisabled: isDisabled3, 72901 onHoverStart(e) { 72902 !$507fabe10e71c6fb$export$b9b3dfddab17db27() && !(isTriggerExpanded && hasPopup) && (selectionManager.setFocused(!0), selectionManager.setFocusedKey(key)), hoverStartProp?.(e); 72903 }, 72904 onHoverChange, 72905 onHoverEnd 72906 }), { keyboardProps } = $46d819fcbaf35654$export$8f71654801c2f7cd({ 72907 onKeyDown: (e) => { 72908 if (e.repeat) { 72909 e.continuePropagation(); 72910 return; 72911 } 72912 switch (e.key) { 72913 case " ": 72914 interaction.current = { 72915 pointerType: "keyboard", 72916 key: " " 72917 }, e.target.click(); 72918 break; 72919 case "Enter": 72920 interaction.current = { 72921 pointerType: "keyboard", 72922 key: "Enter" 72923 }, e.target.tagName !== "A" && e.target.click(); 72924 break; 72925 default: 72926 isTrigger || e.continuePropagation(), onKeyDown?.(e); 72927 break; 72928 } 72929 }, 72930 onKeyUp 72931 }), { focusProps } = $a1ea59d68270f0dd$export$f8168d8dd8fd66e6({ 72932 onBlur, 72933 onFocus, 72934 onFocusChange 72935 }), domProps = $65484d02dcb7eb3e$export$457c3d6518dd4c6f(item?.props); 72936 delete domProps.id; 72937 let linkProps = $ea8dcbcb9ea1b556$export$7e924b3091a3bd18(item?.props); 72938 return { 72939 menuItemProps: { 72940 ...ariaProps, 72941 ...$3ef42575df84b30b$export$9d1611c77c2fe928( 72942 domProps, 72943 linkProps, 72944 isTrigger ? { 72945 onFocus: itemProps.onFocus, 72946 "data-collection": itemProps["data-collection"], 72947 "data-key": itemProps["data-key"] 72948 } : itemProps, 72949 pressProps, 72950 hoverProps, 72951 keyboardProps, 72952 focusProps, 72953 // Prevent DOM focus from moving on mouse down when using virtual focus or this is a submenu/subdialog trigger. 72954 data.shouldUseVirtualFocus || isTrigger ? { 72955 onMouseDown: (e) => e.preventDefault() 72956 } : void 0, 72957 isDisabled3 ? void 0 : { 72958 onClick 72959 } 72960 ), 72961 // 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. 72962 tabIndex: itemProps.tabIndex != null && isTriggerExpanded && !data.shouldUseVirtualFocus ? -1 : itemProps.tabIndex 72963 }, 72964 labelProps: { 72965 id: labelId 72966 }, 72967 descriptionProps: { 72968 id: descriptionId 72969 }, 72970 keyboardShortcutProps: { 72971 id: keyboardId 72972 }, 72973 isFocused, 72974 isFocusVisible: isFocused && selectionManager.isFocused && $507fabe10e71c6fb$export$b9b3dfddab17db27() && !isTriggerExpanded, 72975 isSelected, 72976 isPressed, 72977 isDisabled: isDisabled3 72978 }; 72979} 72980
vendor: 734 bytes, lines 72981-73002
72981// ../../node_modules/@react-aria/menu/dist/useMenuSection.mjs 72982function $3e5eb2498db5b506$export$73f7a44322579622(props) { 72983 let { heading, "aria-label": ariaLabel } = props, headingId = $bdb11010cef70236$export$f680877a34711e37(); 72984 return { 72985 itemProps: { 72986 role: "presentation" 72987 }, 72988 headingProps: heading ? { 72989 // Techincally, menus cannot contain headings according to ARIA. 72990 // We hide the heading from assistive technology, using role="presentation", 72991 // and only use it as a label for the nested group. 72992 id: headingId, 72993 role: "presentation" 72994 } : {}, 72995 groupProps: { 72996 role: "group", 72997 "aria-label": ariaLabel, 72998 "aria-labelledby": heading ? headingId : void 0 72999 } 73000 }; 73001} 73002
vendor: 5,028 bytes, lines 73003-73076
73003// ../../node_modules/@react-aria/menu/dist/useSafelyMouseToSubmenu.mjs 73004var import_react147 = __toESM(require_react(), 1); 73005var $d275435c250248f8$var$ALLOWED_INVALID_MOVEMENTS = 2, $d275435c250248f8$var$THROTTLE_TIME = 50, $d275435c250248f8$var$TIMEOUT_TIME = 1e3, $d275435c250248f8$var$ANGLE_PADDING = Math.PI / 12; 73006function $d275435c250248f8$export$85ec83e04c95f50a(options) { 73007 let { menuRef, submenuRef, isOpen, isDisabled: isDisabled3 } = options, prevPointerPos = (0, import_react147.useRef)(void 0), submenuRect = (0, import_react147.useRef)(void 0), lastProcessedTime = (0, import_react147.useRef)(0), timeout = (0, import_react147.useRef)(void 0), autoCloseTimeout = (0, import_react147.useRef)(void 0), submenuSide = (0, import_react147.useRef)(void 0), movementsTowardsSubmenuCount = (0, import_react147.useRef)(2), [preventPointerEvents, setPreventPointerEvents] = (0, import_react147.useState)(!1); 73008 $9daab02d461809db$export$683480f191c0e3ea({ 73009 ref: submenuRef, 73010 onResize: () => { 73011 submenuRef.current && (submenuRect.current = submenuRef.current.getBoundingClientRect(), submenuSide.current = void 0); 73012 } 73013 }); 73014 let reset2 = () => { 73015 setPreventPointerEvents(!1), movementsTowardsSubmenuCount.current = $d275435c250248f8$var$ALLOWED_INVALID_MOVEMENTS, prevPointerPos.current = void 0; 73016 }, modality = $507fabe10e71c6fb$export$98e20ec92f614cfe(), onPointerDown = $8ae05eaa5c114e9c$export$7f54fc3180508a52((e) => { 73017 preventPointerEvents && e.preventDefault(); 73018 }); 73019 (0, import_react147.useEffect)(() => { 73020 preventPointerEvents && menuRef.current ? menuRef.current.style.pointerEvents = "none" : menuRef.current.style.pointerEvents = ""; 73021 }, [ 73022 menuRef, 73023 preventPointerEvents 73024 ]), (0, import_react147.useEffect)(() => { 73025 let submenu = submenuRef.current, menu = menuRef.current; 73026 if (isDisabled3 || !submenu || !isOpen || modality !== "pointer" || !menu) { 73027 reset2(); 73028 return; 73029 } 73030 submenuRect.current = submenu.getBoundingClientRect(); 73031 let onPointerMove = (e) => { 73032 if (e.pointerType === "touch" || e.pointerType === "pen") return; 73033 let currentTime = Date.now(); 73034 if (currentTime - lastProcessedTime.current < $d275435c250248f8$var$THROTTLE_TIME) return; 73035 clearTimeout(timeout.current), clearTimeout(autoCloseTimeout.current); 73036 let { clientX: mouseX, clientY: mouseY } = e; 73037 if (!prevPointerPos.current) { 73038 prevPointerPos.current = { 73039 x: mouseX, 73040 y: mouseY 73041 }; 73042 return; 73043 } 73044 if (!submenuRect.current) return; 73045 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) { 73046 reset2(); 73047 return; 73048 } 73049 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; 73050 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 = { 73051 x: mouseX, 73052 y: mouseY 73053 }, isMovingTowardsSubmenu && (timeout.current = setTimeout(() => { 73054 reset2(), autoCloseTimeout.current = setTimeout(() => { 73055 let target = document.elementFromPoint(mouseX, mouseY); 73056 target && menu.contains(target) && target.dispatchEvent(new PointerEvent("pointerover", { 73057 bubbles: !0, 73058 cancelable: !0 73059 })); 73060 }, 100); 73061 }, $d275435c250248f8$var$TIMEOUT_TIME)); 73062 }; 73063 return window.addEventListener("pointermove", onPointerMove), window.addEventListener("pointerdown", onPointerDown, !0), () => { 73064 window.removeEventListener("pointermove", onPointerMove), window.removeEventListener("pointerdown", onPointerDown, !0), clearTimeout(timeout.current), clearTimeout(autoCloseTimeout.current), movementsTowardsSubmenuCount.current = $d275435c250248f8$var$ALLOWED_INVALID_MOVEMENTS; 73065 }; 73066 }, [ 73067 isDisabled3, 73068 isOpen, 73069 menuRef, 73070 modality, 73071 setPreventPointerEvents, 73072 onPointerDown, 73073 submenuRef 73074 ]); 73075} 73076
vendor: 4,890 bytes, lines 73077-73169
73077// ../../node_modules/@react-aria/menu/dist/useSubmenuTrigger.mjs 73078var import_react148 = __toESM(require_react(), 1); 73079function $0065b146e7192841$export$7138b0d059a6e743(props, state3, ref) { 73080 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_react148.useRef)(void 0), cancelOpenTimeout = (0, import_react148.useCallback)(() => { 73081 openTimeout.current && (clearTimeout(openTimeout.current), openTimeout.current = void 0); 73082 }, [ 73083 openTimeout 73084 ]), onSubmenuOpen = $8ae05eaa5c114e9c$export$7f54fc3180508a52((focusStrategy) => { 73085 cancelOpenTimeout(), state3.open(focusStrategy); 73086 }), onSubmenuClose = $8ae05eaa5c114e9c$export$7f54fc3180508a52(() => { 73087 cancelOpenTimeout(), state3.close(); 73088 }); 73089 $f0a04ccd8dbdd83b$export$e5c5a5f917a5871c(() => () => { 73090 cancelOpenTimeout(); 73091 }, [ 73092 cancelOpenTimeout 73093 ]); 73094 let submenuKeyDown = (e) => { 73095 if (e.currentTarget.contains(document.activeElement)) 73096 switch (e.key) { 73097 case "ArrowLeft": 73098 direction === "ltr" && e.currentTarget.contains(e.target) && (e.preventDefault(), e.stopPropagation(), onSubmenuClose(), !shouldUseVirtualFocus && ref.current && $7215afc6de606d6b$export$de79e2c695e052f3(ref.current)); 73099 break; 73100 case "ArrowRight": 73101 direction === "rtl" && e.currentTarget.contains(e.target) && (e.preventDefault(), e.stopPropagation(), onSubmenuClose(), !shouldUseVirtualFocus && ref.current && $7215afc6de606d6b$export$de79e2c695e052f3(ref.current)); 73102 break; 73103 case "Escape": 73104 var _submenuRef_current; 73105 !((_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)); 73106 break; 73107 } 73108 }; 73109 var _state_focusStrategy; 73110 let submenuProps = { 73111 id: overlayId, 73112 "aria-labelledby": submenuTriggerId, 73113 submenuLevel: state3.submenuLevel, 73114 ...type5 === "menu" && { 73115 onClose: state3.closeAll, 73116 autoFocus: (_state_focusStrategy = state3.focusStrategy) !== null && _state_focusStrategy !== void 0 ? _state_focusStrategy : void 0, 73117 onKeyDown: submenuKeyDown 73118 } 73119 }, submenuTriggerKeyDown = (e) => { 73120 switch (e.key) { 73121 case "ArrowRight": 73122 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()); 73123 break; 73124 case "ArrowLeft": 73125 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()); 73126 break; 73127 default: 73128 e.continuePropagation(); 73129 break; 73130 } 73131 }, onPressStart = (e) => { 73132 !isDisabled3 && (e.pointerType === "virtual" || e.pointerType === "keyboard") && onSubmenuOpen("first"); 73133 }, onPress = (e) => { 73134 !isDisabled3 && (e.pointerType === "touch" || e.pointerType === "mouse") && onSubmenuOpen(); 73135 }, onHoverChange = (isHovered) => { 73136 isDisabled3 || (isHovered && !state3.isOpen ? openTimeout.current || (openTimeout.current = setTimeout(() => { 73137 onSubmenuOpen(); 73138 }, delay)) : isHovered || cancelOpenTimeout()); 73139 }; 73140 $e9faafb641e167db$export$90fc3a17d93f704c(parentMenuRef, "focusin", (e) => { 73141 var _parentMenuRef_current; 73142 state3.isOpen && (!((_parentMenuRef_current = parentMenuRef.current) === null || _parentMenuRef_current === void 0) && _parentMenuRef_current.contains(e.target)) && e.target !== ref.current && onSubmenuClose(); 73143 }); 73144 let shouldCloseOnInteractOutside = (target) => target !== ref.current; 73145 return $d275435c250248f8$export$85ec83e04c95f50a({ 73146 menuRef: parentMenuRef, 73147 submenuRef, 73148 isOpen: state3.isOpen, 73149 isDisabled: isDisabled3 73150 }), { 73151 submenuTriggerProps: { 73152 id: submenuTriggerId, 73153 "aria-controls": state3.isOpen ? overlayId : void 0, 73154 "aria-haspopup": isDisabled3 ? void 0 : type5, 73155 "aria-expanded": state3.isOpen ? "true" : "false", 73156 onPressStart, 73157 onPress, 73158 onHoverChange, 73159 onKeyDown: submenuTriggerKeyDown, 73160 isOpen: state3.isOpen 73161 }, 73162 submenuProps, 73163 popoverProps: { 73164 isNonModal: !0, 73165 shouldCloseOnInteractOutside 73166 } 73167 }; 73168} 73169
vendor: 1,201 bytes, lines 73170-73200
73170// ../../node_modules/@react-stately/menu/dist/useMenuTriggerState.mjs 73171var import_react149 = __toESM(require_react(), 1); 73172function $a28c903ee9ad8dc5$export$79fefeb1c2091ac3(props) { 73173 let overlayTriggerState = $fc909762b330b746$export$61c6a8c84e605fb6(props), [focusStrategy, setFocusStrategy] = (0, import_react149.useState)(null), [expandedKeysStack, setExpandedKeysStack] = (0, import_react149.useState)([]), closeAll = () => { 73174 setExpandedKeysStack([]), overlayTriggerState.close(); 73175 }; 73176 return { 73177 focusStrategy, 73178 ...overlayTriggerState, 73179 open(focusStrategy2 = null) { 73180 setFocusStrategy(focusStrategy2), overlayTriggerState.open(); 73181 }, 73182 toggle(focusStrategy2 = null) { 73183 setFocusStrategy(focusStrategy2), overlayTriggerState.toggle(); 73184 }, 73185 close() { 73186 closeAll(); 73187 }, 73188 expandedKeysStack, 73189 openSubmenu: (triggerKey, level) => { 73190 setExpandedKeysStack((oldStack) => level > oldStack.length ? oldStack : [ 73191 ...oldStack.slice(0, level), 73192 triggerKey 73193 ]); 73194 }, 73195 closeSubmenu: (triggerKey, level) => { 73196 setExpandedKeysStack((oldStack) => oldStack[level] === triggerKey ? oldStack.slice(0, level) : oldStack); 73197 } 73198 }; 73199} 73200
vendor: 1,704 bytes, lines 73201-73249
73201// ../../node_modules/@react-stately/menu/dist/useSubmenuTriggerState.mjs 73202var import_react150 = __toESM(require_react(), 1); 73203function $e5614764aa47eb35$export$cfc51cf86138bf98(props, state3) { 73204 let { triggerKey } = props, { expandedKeysStack, openSubmenu, closeSubmenu, close: closeAll } = state3, [submenuLevel] = (0, import_react150.useState)(expandedKeysStack?.length), isOpen = (0, import_react150.useMemo)(() => expandedKeysStack[submenuLevel] === triggerKey, [ 73205 expandedKeysStack, 73206 triggerKey, 73207 submenuLevel 73208 ]), [focusStrategy, setFocusStrategy] = (0, import_react150.useState)(null), open = (0, import_react150.useCallback)((focusStrategy2) => { 73209 setFocusStrategy(focusStrategy2 ?? null), openSubmenu(triggerKey, submenuLevel); 73210 }, [ 73211 openSubmenu, 73212 submenuLevel, 73213 triggerKey 73214 ]), close = (0, import_react150.useCallback)(() => { 73215 setFocusStrategy(null), closeSubmenu(triggerKey, submenuLevel); 73216 }, [ 73217 closeSubmenu, 73218 submenuLevel, 73219 triggerKey 73220 ]), toggle = (0, import_react150.useCallback)((focusStrategy2) => { 73221 setFocusStrategy(focusStrategy2 ?? null), isOpen ? close() : open(focusStrategy2); 73222 }, [ 73223 close, 73224 open, 73225 isOpen 73226 ]); 73227 return (0, import_react150.useMemo)(() => ({ 73228 focusStrategy, 73229 isOpen, 73230 open, 73231 close, 73232 closeAll, 73233 submenuLevel, 73234 // 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 73235 // https://github.com/adobe/react-spectrum/pull/4976#discussion_r1336472863 73236 setOpen: () => { 73237 }, 73238 toggle 73239 }), [ 73240 isOpen, 73241 open, 73242 close, 73243 closeAll, 73244 focusStrategy, 73245 toggle, 73246 submenuLevel 73247 ]); 73248} 73249
vendor: 1,906 bytes, lines 73250-73300
73250// ../../node_modules/@react-stately/tree/dist/TreeCollection.mjs 73251var $05ca4cd7c4a5a999$export$863faf230ee2118a = class { 73252 *[Symbol.iterator]() { 73253 yield* this.iterable; 73254 } 73255 get size() { 73256 return this.keyMap.size; 73257 } 73258 getKeys() { 73259 return this.keyMap.keys(); 73260 } 73261 getKeyBefore(key) { 73262 let node2 = this.keyMap.get(key); 73263 var _node_prevKey; 73264 return node2 && (_node_prevKey = node2.prevKey) !== null && _node_prevKey !== void 0 ? _node_prevKey : null; 73265 } 73266 getKeyAfter(key) { 73267 let node2 = this.keyMap.get(key); 73268 var _node_nextKey; 73269 return node2 && (_node_nextKey = node2.nextKey) !== null && _node_nextKey !== void 0 ? _node_nextKey : null; 73270 } 73271 getFirstKey() { 73272 return this.firstKey; 73273 } 73274 getLastKey() { 73275 return this.lastKey; 73276 } 73277 getItem(key) { 73278 var _this_keyMap_get; 73279 return (_this_keyMap_get = this.keyMap.get(key)) !== null && _this_keyMap_get !== void 0 ? _this_keyMap_get : null; 73280 } 73281 at(idx) { 73282 let keys3 = [ 73283 ...this.getKeys() 73284 ]; 73285 return this.getItem(keys3[idx]); 73286 } 73287 constructor(nodes, { expandedKeys } = {}) { 73288 this.keyMap = /* @__PURE__ */ new Map(), this.firstKey = null, this.lastKey = null, this.iterable = nodes, expandedKeys = expandedKeys || /* @__PURE__ */ new Set(); 73289 let visit = (node2) => { 73290 if (this.keyMap.set(node2.key, node2), node2.childNodes && (node2.type === "section" || expandedKeys.has(node2.key))) for (let child of node2.childNodes) visit(child); 73291 }; 73292 for (let node2 of nodes) visit(node2); 73293 let last2 = null, index4 = 0; 73294 for (let [key, node2] of this.keyMap) 73295 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; 73296 var _last_key; 73297 this.lastKey = (_last_key = last2?.key) !== null && _last_key !== void 0 ? _last_key : null; 73298 } 73299}; 73300
vendor: 487 bytes, lines 73301-73307
73301// ../../node_modules/@react-stately/selection/dist/Selection.mjs 73302var $e40ea825a81a3709$export$52baac22726c72bf = class _$e40ea825a81a3709$export$52baac22726c72bf extends Set { 73303 constructor(keys3, anchorKey, currentKey) { 73304 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); 73305 } 73306}; 73307
vendor: 3,068 bytes, lines 73308-73361
73308// ../../node_modules/@react-stately/selection/dist/useMultipleSelectionState.mjs 73309var import_react151 = __toESM(require_react(), 1); 73310function $7af3f5b51489e0b5$var$equalSets(setA, setB) { 73311 if (setA.size !== setB.size) return !1; 73312 for (let item of setA) 73313 if (!setB.has(item)) return !1; 73314 return !0; 73315} 73316function $7af3f5b51489e0b5$export$253fe78d46329472(props) { 73317 let { selectionMode = "none", disallowEmptySelection = !1, allowDuplicateSelectionEvents, selectionBehavior: selectionBehaviorProp = "toggle", disabledBehavior = "all" } = props, isFocusedRef = (0, import_react151.useRef)(!1), [, setFocused] = (0, import_react151.useState)(!1), focusedKeyRef = (0, import_react151.useRef)(null), childFocusStrategyRef = (0, import_react151.useRef)(null), [, setFocusedKey] = (0, import_react151.useState)(null), selectedKeysProp = (0, import_react151.useMemo)(() => $7af3f5b51489e0b5$var$convertSelection(props.selectedKeys), [ 73318 props.selectedKeys 73319 ]), defaultSelectedKeys = (0, import_react151.useMemo)(() => $7af3f5b51489e0b5$var$convertSelection(props.defaultSelectedKeys, new $e40ea825a81a3709$export$52baac22726c72bf()), [ 73320 props.defaultSelectedKeys 73321 ]), [selectedKeys, setSelectedKeys] = $458b0a5536c1a7cf$export$40bfa8c7b0832715(selectedKeysProp, defaultSelectedKeys, props.onSelectionChange), disabledKeysProp = (0, import_react151.useMemo)(() => props.disabledKeys ? new Set(props.disabledKeys) : /* @__PURE__ */ new Set(), [ 73322 props.disabledKeys 73323 ]), [selectionBehavior, setSelectionBehavior] = (0, import_react151.useState)(selectionBehaviorProp); 73324 selectionBehaviorProp === "replace" && selectionBehavior === "toggle" && typeof selectedKeys == "object" && selectedKeys.size === 0 && setSelectionBehavior("replace"); 73325 let lastSelectionBehavior = (0, import_react151.useRef)(selectionBehaviorProp); 73326 return (0, import_react151.useEffect)(() => { 73327 selectionBehaviorProp !== lastSelectionBehavior.current && (setSelectionBehavior(selectionBehaviorProp), lastSelectionBehavior.current = selectionBehaviorProp); 73328 }, [ 73329 selectionBehaviorProp 73330 ]), { 73331 selectionMode, 73332 disallowEmptySelection, 73333 selectionBehavior, 73334 setSelectionBehavior, 73335 get isFocused() { 73336 return isFocusedRef.current; 73337 }, 73338 setFocused(f4) { 73339 isFocusedRef.current = f4, setFocused(f4); 73340 }, 73341 get focusedKey() { 73342 return focusedKeyRef.current; 73343 }, 73344 get childFocusStrategy() { 73345 return childFocusStrategyRef.current; 73346 }, 73347 setFocusedKey(k, childFocusStrategy = "first") { 73348 focusedKeyRef.current = k, childFocusStrategyRef.current = childFocusStrategy, setFocusedKey(k); 73349 }, 73350 selectedKeys, 73351 setSelectedKeys(keys3) { 73352 (allowDuplicateSelectionEvents || !$7af3f5b51489e0b5$var$equalSets(keys3, selectedKeys)) && setSelectedKeys(keys3); 73353 }, 73354 disabledKeys: disabledKeysProp, 73355 disabledBehavior 73356 }; 73357} 73358function $7af3f5b51489e0b5$var$convertSelection(selection, defaultValue) { 73359 return selection ? selection === "all" ? "all" : new $e40ea825a81a3709$export$52baac22726c72bf(selection) : defaultValue; 73360} 73361
vendor: 11,973 bytes, lines 73362-73642
73362// ../../node_modules/@react-stately/selection/dist/SelectionManager.mjs 73363var $d496c0a20b6e58ec$export$6c8a5aaad13c9852 = class _$d496c0a20b6e58ec$export$6c8a5aaad13c9852 { 73364 /** 73365 * The type of selection that is allowed in the collection. 73366 */ 73367 get selectionMode() { 73368 return this.state.selectionMode; 73369 } 73370 /** 73371 * Whether the collection allows empty selection. 73372 */ 73373 get disallowEmptySelection() { 73374 return this.state.disallowEmptySelection; 73375 } 73376 /** 73377 * The selection behavior for the collection. 73378 */ 73379 get selectionBehavior() { 73380 return this.state.selectionBehavior; 73381 } 73382 /** 73383 * Sets the selection behavior for the collection. 73384 */ 73385 setSelectionBehavior(selectionBehavior) { 73386 this.state.setSelectionBehavior(selectionBehavior); 73387 } 73388 /** 73389 * Whether the collection is currently focused. 73390 */ 73391 get isFocused() { 73392 return this.state.isFocused; 73393 } 73394 /** 73395 * Sets whether the collection is focused. 73396 */ 73397 setFocused(isFocused) { 73398 this.state.setFocused(isFocused); 73399 } 73400 /** 73401 * The current focused key in the collection. 73402 */ 73403 get focusedKey() { 73404 return this.state.focusedKey; 73405 } 73406 /** Whether the first or last child of the focused key should receive focus. */ 73407 get childFocusStrategy() { 73408 return this.state.childFocusStrategy; 73409 } 73410 /** 73411 * Sets the focused key. 73412 */ 73413 setFocusedKey(key, childFocusStrategy) { 73414 (key == null || this.collection.getItem(key)) && this.state.setFocusedKey(key, childFocusStrategy); 73415 } 73416 /** 73417 * The currently selected keys in the collection. 73418 */ 73419 get selectedKeys() { 73420 return this.state.selectedKeys === "all" ? new Set(this.getSelectAllKeys()) : this.state.selectedKeys; 73421 } 73422 /** 73423 * The raw selection value for the collection. 73424 * Either 'all' for select all, or a set of keys. 73425 */ 73426 get rawSelection() { 73427 return this.state.selectedKeys; 73428 } 73429 /** 73430 * Returns whether a key is selected. 73431 */ 73432 isSelected(key) { 73433 if (this.state.selectionMode === "none") return !1; 73434 let mappedKey = this.getKey(key); 73435 return mappedKey == null ? !1 : this.state.selectedKeys === "all" ? this.canSelectItem(mappedKey) : this.state.selectedKeys.has(mappedKey); 73436 } 73437 /** 73438 * Whether the selection is empty. 73439 */ 73440 get isEmpty() { 73441 return this.state.selectedKeys !== "all" && this.state.selectedKeys.size === 0; 73442 } 73443 /** 73444 * Whether all items in the collection are selected. 73445 */ 73446 get isSelectAll() { 73447 if (this.isEmpty) return !1; 73448 if (this.state.selectedKeys === "all") return !0; 73449 if (this._isSelectAll != null) return this._isSelectAll; 73450 let allKeys = this.getSelectAllKeys(), selectedKeys = this.state.selectedKeys; 73451 return this._isSelectAll = allKeys.every((k) => selectedKeys.has(k)), this._isSelectAll; 73452 } 73453 get firstSelectedKey() { 73454 let first = null; 73455 for (let key of this.state.selectedKeys) { 73456 let item = this.collection.getItem(key); 73457 (!first || item && $c5a24bc478652b5f$export$8c434b3a7a4dad6(this.collection, item, first) < 0) && (first = item); 73458 } 73459 var _first_key; 73460 return (_first_key = first?.key) !== null && _first_key !== void 0 ? _first_key : null; 73461 } 73462 get lastSelectedKey() { 73463 let last2 = null; 73464 for (let key of this.state.selectedKeys) { 73465 let item = this.collection.getItem(key); 73466 (!last2 || item && $c5a24bc478652b5f$export$8c434b3a7a4dad6(this.collection, item, last2) > 0) && (last2 = item); 73467 } 73468 var _last_key; 73469 return (_last_key = last2?.key) !== null && _last_key !== void 0 ? _last_key : null; 73470 } 73471 get disabledKeys() { 73472 return this.state.disabledKeys; 73473 } 73474 get disabledBehavior() { 73475 return this.state.disabledBehavior; 73476 } 73477 /** 73478 * Extends the selection to the given key. 73479 */ 73480 extendSelection(toKey2) { 73481 if (this.selectionMode === "none") return; 73482 if (this.selectionMode === "single") { 73483 this.replaceSelection(toKey2); 73484 return; 73485 } 73486 let mappedToKey = this.getKey(toKey2); 73487 if (mappedToKey == null) return; 73488 let selection; 73489 if (this.state.selectedKeys === "all") selection = new $e40ea825a81a3709$export$52baac22726c72bf([ 73490 mappedToKey 73491 ], mappedToKey, mappedToKey); 73492 else { 73493 let selectedKeys = this.state.selectedKeys; 73494 var _selectedKeys_anchorKey; 73495 let anchorKey = (_selectedKeys_anchorKey = selectedKeys.anchorKey) !== null && _selectedKeys_anchorKey !== void 0 ? _selectedKeys_anchorKey : mappedToKey; 73496 selection = new $e40ea825a81a3709$export$52baac22726c72bf(selectedKeys, anchorKey, mappedToKey); 73497 var _selectedKeys_currentKey; 73498 for (let key of this.getKeyRange(anchorKey, (_selectedKeys_currentKey = selectedKeys.currentKey) !== null && _selectedKeys_currentKey !== void 0 ? _selectedKeys_currentKey : mappedToKey)) selection.delete(key); 73499 for (let key of this.getKeyRange(mappedToKey, anchorKey)) this.canSelectItem(key) && selection.add(key); 73500 } 73501 this.state.setSelectedKeys(selection); 73502 } 73503 getKeyRange(from2, to) { 73504 let fromItem = this.collection.getItem(from2), toItem = this.collection.getItem(to); 73505 return fromItem && toItem ? $c5a24bc478652b5f$export$8c434b3a7a4dad6(this.collection, fromItem, toItem) <= 0 ? this.getKeyRangeInternal(from2, to) : this.getKeyRangeInternal(to, from2) : []; 73506 } 73507 getKeyRangeInternal(from2, to) { 73508 var _this_layoutDelegate; 73509 if (!((_this_layoutDelegate = this.layoutDelegate) === null || _this_layoutDelegate === void 0) && _this_layoutDelegate.getKeyRange) return this.layoutDelegate.getKeyRange(from2, to); 73510 let keys3 = [], key = from2; 73511 for (; key != null; ) { 73512 let item = this.collection.getItem(key); 73513 if (item && (item.type === "item" || item.type === "cell" && this.allowsCellSelection) && keys3.push(key), key === to) return keys3; 73514 key = this.collection.getKeyAfter(key); 73515 } 73516 return []; 73517 } 73518 getKey(key) { 73519 let item = this.collection.getItem(key); 73520 if (!item || item.type === "cell" && this.allowsCellSelection) return key; 73521 for (; item && item.type !== "item" && item.parentKey != null; ) item = this.collection.getItem(item.parentKey); 73522 return !item || item.type !== "item" ? null : item.key; 73523 } 73524 /** 73525 * Toggles whether the given key is selected. 73526 */ 73527 toggleSelection(key) { 73528 if (this.selectionMode === "none") return; 73529 if (this.selectionMode === "single" && !this.isSelected(key)) { 73530 this.replaceSelection(key); 73531 return; 73532 } 73533 let mappedKey = this.getKey(key); 73534 if (mappedKey == null) return; 73535 let keys3 = new $e40ea825a81a3709$export$52baac22726c72bf(this.state.selectedKeys === "all" ? this.getSelectAllKeys() : this.state.selectedKeys); 73536 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); 73537 } 73538 /** 73539 * Replaces the selection with only the given key. 73540 */ 73541 replaceSelection(key) { 73542 if (this.selectionMode === "none") return; 73543 let mappedKey = this.getKey(key); 73544 if (mappedKey == null) return; 73545 let selection = this.canSelectItem(mappedKey) ? new $e40ea825a81a3709$export$52baac22726c72bf([ 73546 mappedKey 73547 ], mappedKey, mappedKey) : new $e40ea825a81a3709$export$52baac22726c72bf(); 73548 this.state.setSelectedKeys(selection); 73549 } 73550 /** 73551 * Replaces the selection with the given keys. 73552 */ 73553 setSelectedKeys(keys3) { 73554 if (this.selectionMode === "none") return; 73555 let selection = new $e40ea825a81a3709$export$52baac22726c72bf(); 73556 for (let key of keys3) { 73557 let mappedKey = this.getKey(key); 73558 if (mappedKey != null && (selection.add(mappedKey), this.selectionMode === "single")) 73559 break; 73560 } 73561 this.state.setSelectedKeys(selection); 73562 } 73563 getSelectAllKeys() { 73564 let keys3 = [], addKeys = (key) => { 73565 for (; key != null; ) { 73566 if (this.canSelectItem(key)) { 73567 var _getFirstItem; 73568 let item = this.collection.getItem(key); 73569 item?.type === "item" && keys3.push(key); 73570 var _getFirstItem_key; 73571 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); 73572 } 73573 key = this.collection.getKeyAfter(key); 73574 } 73575 }; 73576 return addKeys(this.collection.getFirstKey()), keys3; 73577 } 73578 /** 73579 * Selects all items in the collection. 73580 */ 73581 selectAll() { 73582 !this.isSelectAll && this.selectionMode === "multiple" && this.state.setSelectedKeys("all"); 73583 } 73584 /** 73585 * Removes all keys from the selection. 73586 */ 73587 clearSelection() { 73588 !this.disallowEmptySelection && (this.state.selectedKeys === "all" || this.state.selectedKeys.size > 0) && this.state.setSelectedKeys(new $e40ea825a81a3709$export$52baac22726c72bf()); 73589 } 73590 /** 73591 * Toggles between select all and an empty selection. 73592 */ 73593 toggleSelectAll() { 73594 this.isSelectAll ? this.clearSelection() : this.selectAll(); 73595 } 73596 select(key, e) { 73597 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)); 73598 } 73599 /** 73600 * Returns whether the current selection is equal to the given selection. 73601 */ 73602 isSelectionEqual(selection) { 73603 if (selection === this.state.selectedKeys) return !0; 73604 let selectedKeys = this.selectedKeys; 73605 if (selection.size !== selectedKeys.size) return !1; 73606 for (let key of selection) 73607 if (!selectedKeys.has(key)) return !1; 73608 for (let key of selectedKeys) 73609 if (!selection.has(key)) return !1; 73610 return !0; 73611 } 73612 canSelectItem(key) { 73613 var _item_props; 73614 if (this.state.selectionMode === "none" || this.state.disabledKeys.has(key)) return !1; 73615 let item = this.collection.getItem(key); 73616 return !(!item || !(item == null || (_item_props = item.props) === null || _item_props === void 0) && _item_props.isDisabled || item.type === "cell" && !this.allowsCellSelection); 73617 } 73618 isDisabled(key) { 73619 var _this_collection_getItem_props, _this_collection_getItem; 73620 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)); 73621 } 73622 isLink(key) { 73623 var _this_collection_getItem_props, _this_collection_getItem; 73624 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); 73625 } 73626 getItemProps(key) { 73627 var _this_collection_getItem; 73628 return (_this_collection_getItem = this.collection.getItem(key)) === null || _this_collection_getItem === void 0 ? void 0 : _this_collection_getItem.props; 73629 } 73630 withCollection(collection) { 73631 return new _$d496c0a20b6e58ec$export$6c8a5aaad13c9852(collection, this.state, { 73632 allowsCellSelection: this.allowsCellSelection, 73633 layoutDelegate: this.layoutDelegate || void 0 73634 }); 73635 } 73636 constructor(collection, state3, options) { 73637 this.collection = collection, this.state = state3; 73638 var _options_allowsCellSelection; 73639 this.allowsCellSelection = (_options_allowsCellSelection = options?.allowsCellSelection) !== null && _options_allowsCellSelection !== void 0 ? _options_allowsCellSelection : !1, this._isSelectAll = null, this.layoutDelegate = options?.layoutDelegate || null; 73640 } 73641}; 73642
vendor: 1,546 bytes, lines 73643-73673
73643// ../../node_modules/@react-stately/tree/dist/useTreeState.mjs 73644var import_react152 = __toESM(require_react(), 1); 73645function $875d6693e12af071$export$728d6ba534403756(props) { 73646 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_react152.useMemo)(() => props.disabledKeys ? new Set(props.disabledKeys) : /* @__PURE__ */ new Set(), [ 73647 props.disabledKeys 73648 ]), tree = $7613b1592d41b092$export$6cd28814d92fa9c9(props, (0, import_react152.useCallback)((nodes) => new $05ca4cd7c4a5a999$export$863faf230ee2118a(nodes, { 73649 expandedKeys 73650 }), [ 73651 expandedKeys 73652 ]), null); 73653 return (0, import_react152.useEffect)(() => { 73654 selectionState.focusedKey != null && !tree.getItem(selectionState.focusedKey) && selectionState.setFocusedKey(null); 73655 }, [ 73656 tree, 73657 selectionState.focusedKey 73658 ]), { 73659 collection: tree, 73660 expandedKeys, 73661 disabledKeys, 73662 toggleKey: (key) => { 73663 setExpandedKeys($875d6693e12af071$var$toggleKey(expandedKeys, key)); 73664 }, 73665 setExpandedKeys, 73666 selectionManager: new $d496c0a20b6e58ec$export$6c8a5aaad13c9852(tree, selectionState) 73667 }; 73668} 73669function $875d6693e12af071$var$toggleKey(set3, key) { 73670 let res = new Set(set3); 73671 return res.has(key) ? res.delete(key) : res.add(key), res; 73672} 73673
vendor: 12,792 bytes, lines 73674-73948
73674// ../../node_modules/react-aria-components/dist/Menu.mjs 73675var import_react153 = __toESM(require_react(), 1), $3674c52c6b3c5bce$export$c7e742effb1c51e2 = (0, import_react153.createContext)(null), $3674c52c6b3c5bce$export$24aad8519b95b41b = (0, import_react153.createContext)(null), $3674c52c6b3c5bce$export$795aec4671cbae19 = (0, import_react153.createContext)(null), $3674c52c6b3c5bce$var$SelectionManagerContext = (0, import_react153.createContext)(null); 73676var $3674c52c6b3c5bce$var$SubmenuTriggerContext = (0, import_react153.createContext)(null), $3674c52c6b3c5bce$var$SubmenuTriggerNode = class extends $23b9f4fcf0fe224b$export$d68d59712b04d9d1 { 73677 filter(collection, newCollection, filterFn) { 73678 let triggerNode = collection.getItem(this.firstChildKey); 73679 if (triggerNode && filterFn(triggerNode.textValue, this)) { 73680 let clone3 = this.clone(); 73681 return newCollection.addDescendants(clone3, collection), clone3; 73682 } 73683 return null; 73684 } 73685}; 73686$3674c52c6b3c5bce$var$SubmenuTriggerNode.type = "submenutrigger"; 73687var $3674c52c6b3c5bce$export$ecabc99eeffab7ca = $e1995378a142960e$export$e953bb1cd0f19726($3674c52c6b3c5bce$var$SubmenuTriggerNode, (props, ref, item) => { 73688 let { CollectionBranch } = (0, import_react153.useContext)($7135fc7d473fd974$export$4feb769f8ddf26c5), state3 = (0, import_react153.useContext)($3674c52c6b3c5bce$export$24aad8519b95b41b), rootMenuTriggerState = (0, import_react153.useContext)($3674c52c6b3c5bce$export$795aec4671cbae19), submenuTriggerState = $e5614764aa47eb35$export$cfc51cf86138bf98({ 73689 triggerKey: item.key 73690 }, rootMenuTriggerState), submenuRef = (0, import_react153.useRef)(null), itemRef = $df56164dff5785e2$export$4338b53315abf666(ref), { parentMenuRef, shouldUseVirtualFocus } = (0, import_react153.useContext)($3674c52c6b3c5bce$var$SubmenuTriggerContext), { submenuTriggerProps, submenuProps, popoverProps } = $0065b146e7192841$export$7138b0d059a6e743({ 73691 parentMenuRef, 73692 submenuRef, 73693 delay: props.delay, 73694 shouldUseVirtualFocus 73695 }, submenuTriggerState, itemRef); 73696 return import_react153.default.createElement($64fa3d84918910a7$export$2881499e37b75b9a, { 73697 values: [ 73698 [ 73699 $3674c52c6b3c5bce$var$MenuItemContext, 73700 { 73701 ...submenuTriggerProps, 73702 onAction: void 0, 73703 ref: itemRef 73704 } 73705 ], 73706 [ 73707 $3674c52c6b3c5bce$export$c7e742effb1c51e2, 73708 { 73709 ref: submenuRef, 73710 ...submenuProps 73711 } 73712 ], 73713 [ 73714 $de32f1b87079253c$export$d2f961adcb0afbe, 73715 submenuTriggerState 73716 ], 73717 [ 73718 $07b14b47974efb58$export$9b9a0cd73afb7ca4, 73719 { 73720 trigger: "SubmenuTrigger", 73721 triggerRef: itemRef, 73722 placement: "end top", 73723 "aria-labelledby": submenuProps["aria-labelledby"], 73724 ...popoverProps 73725 } 73726 ] 73727 ] 73728 }, import_react153.default.createElement(CollectionBranch, { 73729 collection: state3.collection, 73730 parent: item 73731 }), props.children[1]); 73732}, (props) => props.children[0]), $3674c52c6b3c5bce$export$d9b273488cd8ce6f = (0, import_react153.forwardRef)(function(props, ref) { 73733 return [props, ref] = $64fa3d84918910a7$export$29f1550f4b0d4415(props, ref, $3674c52c6b3c5bce$export$c7e742effb1c51e2), import_react153.default.createElement($e1995378a142960e$export$bf788dd355e3a401, { 73734 content: import_react153.default.createElement($e1995378a142960e$export$fb8073518f34e6ec, props) 73735 }, (collection) => import_react153.default.createElement($3674c52c6b3c5bce$var$MenuInner, { 73736 props, 73737 collection, 73738 menuRef: ref 73739 })); 73740}); 73741function $3674c52c6b3c5bce$var$MenuInner({ props, collection, menuRef: ref }) { 73742 [props, ref] = $64fa3d84918910a7$export$29f1550f4b0d4415(props, ref, $8e6cc465cc68f603$export$b0d3ecf7112093a7); 73743 let { filter, ...autocompleteMenuProps } = props, filteredCollection = (0, import_react153.useMemo)(() => filter ? collection.filter(filter) : collection, [ 73744 collection, 73745 filter 73746 ]), state3 = $875d6693e12af071$export$728d6ba534403756({ 73747 ...props, 73748 collection: filteredCollection, 73749 children: void 0 73750 }), triggerState = (0, import_react153.useContext)($3674c52c6b3c5bce$export$795aec4671cbae19), { isVirtualized, CollectionRoot } = (0, import_react153.useContext)($7135fc7d473fd974$export$4feb769f8ddf26c5), { menuProps } = $d5336fe17ce95402$export$38eaa17faae8f579({ 73751 ...props, 73752 isVirtualized, 73753 onClose: props.onClose || triggerState?.close 73754 }, state3, ref), renderProps = $64fa3d84918910a7$export$4d86445c2cf5e3({ 73755 defaultClassName: "react-aria-Menu", 73756 className: props.className, 73757 style: props.style, 73758 values: { 73759 isEmpty: state3.collection.size === 0 73760 } 73761 }), emptyState = null; 73762 state3.collection.size === 0 && props.renderEmptyState && (emptyState = import_react153.default.createElement("div", { 73763 role: "menuitem", 73764 style: { 73765 display: "contents" 73766 } 73767 }, props.renderEmptyState())); 73768 let DOMProps = $65484d02dcb7eb3e$export$457c3d6518dd4c6f(props, { 73769 global: !0 73770 }); 73771 return import_react153.default.createElement($9bf71ea28793e738$export$20e40289641fbbb6, null, import_react153.default.createElement("div", { 73772 ...$3ef42575df84b30b$export$9d1611c77c2fe928(DOMProps, renderProps, menuProps), 73773 ref, 73774 slot: props.slot || void 0, 73775 "data-empty": state3.collection.size === 0 || void 0, 73776 onScroll: props.onScroll 73777 }, import_react153.default.createElement($64fa3d84918910a7$export$2881499e37b75b9a, { 73778 values: [ 73779 [ 73780 $3674c52c6b3c5bce$export$24aad8519b95b41b, 73781 state3 73782 ], 73783 [ 73784 $431f98aba6844401$export$6615d83f6de245ce, 73785 { 73786 elementType: "div" 73787 } 73788 ], 73789 [ 73790 $7135fc7d473fd974$export$d40e14dec8b060a8, 73791 { 73792 name: "MenuSection", 73793 render: $3674c52c6b3c5bce$var$MenuSectionInner 73794 } 73795 ], 73796 [ 73797 $3674c52c6b3c5bce$var$SubmenuTriggerContext, 73798 { 73799 parentMenuRef: ref, 73800 shouldUseVirtualFocus: autocompleteMenuProps?.shouldUseVirtualFocus 73801 } 73802 ], 73803 [ 73804 $3674c52c6b3c5bce$var$MenuItemContext, 73805 null 73806 ], 73807 [ 73808 $8e6cc465cc68f603$export$b0d3ecf7112093a7, 73809 null 73810 ], 73811 [ 73812 $8e6cc465cc68f603$export$698f465ec27e93df, 73813 null 73814 ], 73815 [ 73816 $3674c52c6b3c5bce$var$SelectionManagerContext, 73817 state3.selectionManager 73818 ], 73819 /* Ensure root MenuTriggerState is defined, in case Menu is rendered outside a MenuTrigger. */ 73820 /* We assume the context can never change between defined and undefined. */ 73821 /* eslint-disable-next-line react-hooks/rules-of-hooks */ 73822 [ 73823 $3674c52c6b3c5bce$export$795aec4671cbae19, 73824 triggerState ?? $a28c903ee9ad8dc5$export$79fefeb1c2091ac3({}) 73825 ] 73826 ] 73827 }, import_react153.default.createElement(CollectionRoot, { 73828 collection: state3.collection, 73829 persistedKeys: $7135fc7d473fd974$export$90e00781bc59d8f9(state3.selectionManager.focusedKey), 73830 scrollRef: ref 73831 })), emptyState)); 73832} 73833var $3674c52c6b3c5bce$var$GroupSelectionManager = class extends $d496c0a20b6e58ec$export$6c8a5aaad13c9852 { 73834 get focusedKey() { 73835 return this.parent.focusedKey; 73836 } 73837 get isFocused() { 73838 return this.parent.isFocused; 73839 } 73840 setFocusedKey(key, childFocusStrategy) { 73841 return this.parent.setFocusedKey(key, childFocusStrategy); 73842 } 73843 setFocused(isFocused) { 73844 this.parent.setFocused(isFocused); 73845 } 73846 get childFocusStrategy() { 73847 return this.parent.childFocusStrategy; 73848 } 73849 constructor(parent, state3) { 73850 super(parent.collection, state3), this.parent = parent; 73851 } 73852}; 73853function $3674c52c6b3c5bce$var$MenuSectionInner(props, ref, section, className = "react-aria-MenuSection") { 73854 var _section_props, _section_props1; 73855 let state3 = (0, import_react153.useContext)($3674c52c6b3c5bce$export$24aad8519b95b41b), { CollectionBranch } = (0, import_react153.useContext)($7135fc7d473fd974$export$4feb769f8ddf26c5), [headingRef, heading] = $64fa3d84918910a7$export$9d4c57ee4c6ffdd8(); 73856 var _section_props_arialabel; 73857 let { headingProps, groupProps } = $3e5eb2498db5b506$export$73f7a44322579622({ 73858 heading, 73859 "aria-label": (_section_props_arialabel = section.props["aria-label"]) !== null && _section_props_arialabel !== void 0 ? _section_props_arialabel : void 0 73860 }), renderProps = $64fa3d84918910a7$export$4d86445c2cf5e3({ 73861 defaultClassName: className, 73862 className: (_section_props = section.props) === null || _section_props === void 0 ? void 0 : _section_props.className, 73863 style: (_section_props1 = section.props) === null || _section_props1 === void 0 ? void 0 : _section_props1.style, 73864 values: {} 73865 }), parent = (0, import_react153.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, { 73866 global: !0 73867 }); 73868 return delete DOMProps.id, import_react153.default.createElement("section", { 73869 ...$3ef42575df84b30b$export$9d1611c77c2fe928(DOMProps, renderProps, groupProps), 73870 ref 73871 }, import_react153.default.createElement($64fa3d84918910a7$export$2881499e37b75b9a, { 73872 values: [ 73873 [ 73874 $72a5793c14baf454$export$e0e4026c12a8bdbb, 73875 { 73876 ...headingProps, 73877 ref: headingRef 73878 } 73879 ], 73880 [ 73881 $3674c52c6b3c5bce$var$SelectionManagerContext, 73882 manager 73883 ] 73884 ] 73885 }, import_react153.default.createElement(CollectionBranch, { 73886 collection: state3.collection, 73887 parent: section 73888 }))); 73889} 73890var $3674c52c6b3c5bce$export$4b1545b4f2016d26 = $e1995378a142960e$export$e953bb1cd0f19726($23b9f4fcf0fe224b$export$437f11dc9b403b78, $3674c52c6b3c5bce$var$MenuSectionInner), $3674c52c6b3c5bce$var$MenuItemContext = (0, import_react153.createContext)(null), $3674c52c6b3c5bce$export$2ce376c2cc3355c8 = $e1995378a142960e$export$18af5c7a9e9b3664($23b9f4fcf0fe224b$export$fd11f34e1d07f134, function(props, forwardedRef, item) { 73891 var _useSlottedContext; 73892 [props, forwardedRef] = $64fa3d84918910a7$export$29f1550f4b0d4415(props, forwardedRef, $3674c52c6b3c5bce$var$MenuItemContext); 73893 let id = (_useSlottedContext = $64fa3d84918910a7$export$fabf2dc03a41866e($3674c52c6b3c5bce$var$MenuItemContext)) === null || _useSlottedContext === void 0 ? void 0 : _useSlottedContext.id, state3 = (0, import_react153.useContext)($3674c52c6b3c5bce$export$24aad8519b95b41b), ref = $df56164dff5785e2$export$4338b53315abf666(forwardedRef), selectionManager = (0, import_react153.useContext)($3674c52c6b3c5bce$var$SelectionManagerContext), { menuItemProps, labelProps, descriptionProps, keyboardShortcutProps, ...states } = $a2e5df62f93c7633$export$9d32628fc2aea7da({ 73894 ...props, 73895 id, 73896 key: item.key, 73897 selectionManager 73898 }, state3, ref), { hoverProps, isHovered } = $6179b936705e76d3$export$ae780daf29e6d456({ 73899 isDisabled: states.isDisabled 73900 }), renderProps = $64fa3d84918910a7$export$4d86445c2cf5e3({ 73901 ...props, 73902 id: void 0, 73903 children: item.rendered, 73904 defaultClassName: "react-aria-MenuItem", 73905 values: { 73906 ...states, 73907 isHovered, 73908 isFocusVisible: states.isFocusVisible, 73909 selectionMode: selectionManager.selectionMode, 73910 selectionBehavior: selectionManager.selectionBehavior, 73911 hasSubmenu: !!props["aria-haspopup"], 73912 isOpen: props["aria-expanded"] === "true" 73913 } 73914 }), ElementType = props.href ? "a" : "div", DOMProps = $65484d02dcb7eb3e$export$457c3d6518dd4c6f(props, { 73915 global: !0 73916 }); 73917 return delete DOMProps.id, delete DOMProps.onClick, import_react153.default.createElement(ElementType, { 73918 ...$3ef42575df84b30b$export$9d1611c77c2fe928(DOMProps, renderProps, menuItemProps, hoverProps), 73919 ref, 73920 "data-disabled": states.isDisabled || void 0, 73921 "data-hovered": isHovered || void 0, 73922 "data-focused": states.isFocused || void 0, 73923 "data-focus-visible": states.isFocusVisible || void 0, 73924 "data-pressed": states.isPressed || void 0, 73925 "data-selected": states.isSelected || void 0, 73926 "data-selection-mode": selectionManager.selectionMode === "none" ? void 0 : selectionManager.selectionMode, 73927 "data-has-submenu": !!props["aria-haspopup"] || void 0, 73928 "data-open": props["aria-expanded"] === "true" || void 0 73929 }, import_react153.default.createElement($64fa3d84918910a7$export$2881499e37b75b9a, { 73930 values: [ 73931 [ 73932 $514c0188e459b4c0$export$9afb8bc826b033ea, 73933 { 73934 slots: { 73935 [$64fa3d84918910a7$export$c62b8e45d58ddad9]: labelProps, 73936 label: labelProps, 73937 description: descriptionProps 73938 } 73939 } 73940 ], 73941 [ 73942 $63df2425e2108aa8$export$744d98a3b8a94e1c, 73943 keyboardShortcutProps 73944 ] 73945 ] 73946 }, renderProps.children)); 73947}); 73948
vendor: 1,542 bytes, lines 73949-73987
73949// ../../node_modules/@react-aria/dialog/dist/useDialog.mjs 73950var import_react154 = __toESM(require_react(), 1); 73951function $40df3f8667284809$export$d55e7ee900f34e93(props, ref) { 73952 let { role = "dialog" } = props, titleId = $bdb11010cef70236$export$b4cc09c592e8fdb8(); 73953 titleId = props["aria-label"] ? void 0 : titleId; 73954 let isRefocusing = (0, import_react154.useRef)(!1); 73955 return (0, import_react154.useEffect)(() => { 73956 if (ref.current && !ref.current.contains(document.activeElement)) { 73957 $3ad3f6e1647bc98d$export$80f3e147d781571c(ref.current); 73958 let timeout = setTimeout(() => { 73959 (document.activeElement === ref.current || document.activeElement === document.body) && (isRefocusing.current = !0, ref.current && (ref.current.blur(), $3ad3f6e1647bc98d$export$80f3e147d781571c(ref.current)), isRefocusing.current = !1); 73960 }, 500); 73961 return () => { 73962 clearTimeout(timeout); 73963 }; 73964 } 73965 }, [ 73966 ref 73967 ]), $337b884510726a0d$export$14c98a7594375490(), { 73968 dialogProps: { 73969 ...$65484d02dcb7eb3e$export$457c3d6518dd4c6f(props, { 73970 labelable: !0 73971 }), 73972 role, 73973 tabIndex: -1, 73974 "aria-labelledby": props["aria-labelledby"] || titleId, 73975 // Prevent blur events from reaching useOverlay, which may cause 73976 // popovers to close. Since focus is contained within the dialog, 73977 // we don't want this to occur due to the above useEffect. 73978 onBlur: (e) => { 73979 isRefocusing.current && e.stopPropagation(); 73980 } 73981 }, 73982 titleProps: { 73983 id: titleId 73984 } 73985 }; 73986} 73987
vendor: 3,810 bytes, lines 73988-74087
73988// ../../node_modules/react-aria-components/dist/Dialog.mjs 73989var import_react155 = __toESM(require_react(), 1), $de32f1b87079253c$export$8b93a07348a7730c = (0, import_react155.createContext)(null), $de32f1b87079253c$export$d2f961adcb0afbe = (0, import_react155.createContext)(null); 73990function $de32f1b87079253c$export$2e1e1122cf0cba88(props) { 73991 let state3 = $a28c903ee9ad8dc5$export$79fefeb1c2091ac3(props), buttonRef = (0, import_react155.useRef)(null), { triggerProps, overlayProps } = $628037886ba31236$export$f9d5c8beee7d008d({ 73992 type: "dialog" 73993 }, state3, buttonRef), [buttonWidth, setButtonWidth] = (0, import_react155.useState)(null), onResize = (0, import_react155.useCallback)(() => { 73994 buttonRef.current && setButtonWidth(buttonRef.current.offsetWidth + "px"); 73995 }, [ 73996 buttonRef 73997 ]); 73998 return $9daab02d461809db$export$683480f191c0e3ea({ 73999 ref: buttonRef, 74000 onResize 74001 }), triggerProps.id = $bdb11010cef70236$export$f680877a34711e37(), overlayProps["aria-labelledby"] = triggerProps.id, import_react155.default.createElement($64fa3d84918910a7$export$2881499e37b75b9a, { 74002 values: [ 74003 [ 74004 $de32f1b87079253c$export$d2f961adcb0afbe, 74005 state3 74006 ], 74007 [ 74008 $3674c52c6b3c5bce$export$795aec4671cbae19, 74009 state3 74010 ], 74011 [ 74012 $de32f1b87079253c$export$8b93a07348a7730c, 74013 overlayProps 74014 ], 74015 [ 74016 $07b14b47974efb58$export$9b9a0cd73afb7ca4, 74017 { 74018 trigger: "DialogTrigger", 74019 triggerRef: buttonRef, 74020 "aria-labelledby": overlayProps["aria-labelledby"], 74021 style: { 74022 "--trigger-width": buttonWidth 74023 } 74024 } 74025 ] 74026 ] 74027 }, import_react155.default.createElement($f1ab8c75478c6f73$export$3351871ee4b288b8, { 74028 ...triggerProps, 74029 ref: buttonRef, 74030 isPressed: state3.isOpen 74031 }, props.children)); 74032} 74033var $de32f1b87079253c$export$3ddf2d174ce01153 = (0, import_react155.forwardRef)(function(props, ref) { 74034 let originalAriaLabelledby = props["aria-labelledby"]; 74035 [props, ref] = $64fa3d84918910a7$export$29f1550f4b0d4415(props, ref, $de32f1b87079253c$export$8b93a07348a7730c); 74036 let { dialogProps, titleProps } = $40df3f8667284809$export$d55e7ee900f34e93({ 74037 ...props, 74038 // Only pass aria-labelledby from props, not context. 74039 // Context is used as a fallback below. 74040 "aria-labelledby": originalAriaLabelledby 74041 }, ref), state3 = (0, import_react155.useContext)($de32f1b87079253c$export$d2f961adcb0afbe); 74042 !dialogProps["aria-label"] && !dialogProps["aria-labelledby"] && props["aria-labelledby"] && (dialogProps["aria-labelledby"] = props["aria-labelledby"]); 74043 let renderProps = $64fa3d84918910a7$export$4d86445c2cf5e3({ 74044 defaultClassName: "react-aria-Dialog", 74045 className: props.className, 74046 style: props.style, 74047 children: props.children, 74048 values: { 74049 close: state3?.close || (() => { 74050 }) 74051 } 74052 }), DOMProps = $65484d02dcb7eb3e$export$457c3d6518dd4c6f(props, { 74053 global: !0 74054 }); 74055 return import_react155.default.createElement("section", { 74056 ...$3ef42575df84b30b$export$9d1611c77c2fe928(DOMProps, renderProps, dialogProps), 74057 ref, 74058 slot: props.slot || void 0 74059 }, import_react155.default.createElement($64fa3d84918910a7$export$2881499e37b75b9a, { 74060 values: [ 74061 [ 74062 $4e85f108e88277b8$export$d688439359537581, 74063 { 74064 slots: { 74065 [$64fa3d84918910a7$export$c62b8e45d58ddad9]: {}, 74066 title: { 74067 ...titleProps, 74068 level: 2 74069 } 74070 } 74071 } 74072 ], 74073 [ 74074 $d2b4bc8c273e7be6$export$24d547caef80ccd1, 74075 { 74076 slots: { 74077 [$64fa3d84918910a7$export$c62b8e45d58ddad9]: {}, 74078 close: { 74079 onPress: () => state3?.close() 74080 } 74081 } 74082 } 74083 ] 74084 ] 74085 }, renderProps.children)); 74086}); 74087
vendor: 2,055 bytes, lines 74088-74152
74088// src/components/components/Popover/PopoverProvider.tsx 74089var PopoverProvider = ({ 74090 ariaLabel, 74091 placement: placementProp = "bottom-start", 74092 hasChrome = !0, 74093 hasCloseButton = !1, 74094 closeLabel, 74095 offset: offset3 = 8, 74096 padding, 74097 popover, 74098 children, 74099 defaultVisible, 74100 visible, 74101 onVisibleChange, 74102 ...props 74103}) => { 74104 ariaLabel || deprecate( 74105 "The 'ariaLabel' prop on 'PopoverProvider' will become mandatory in Storybook 11. Provide a concise, accessible label describing the popover's purpose." 74106 ); 74107 let placement = convertToReactAriaPlacement(placementProp), [isOpen, setIsOpen] = (0, import_react156.useState)(defaultVisible ?? !1), onOpenChange = (0, import_react156.useCallback)( 74108 (isOpen2) => { 74109 setIsOpen(isOpen2), onVisibleChange?.(isOpen2); 74110 }, 74111 [onVisibleChange] 74112 ), onHide = (0, import_react156.useCallback)(() => onOpenChange(!1), [onOpenChange]); 74113 return import_react156.default.createElement( 74114 $de32f1b87079253c$export$2e1e1122cf0cba88, 74115 { 74116 defaultOpen: defaultVisible, 74117 isOpen: visible ?? isOpen, 74118 onOpenChange, 74119 ...props 74120 }, 74121 import_react156.default.createElement( 74122 $3b117e43dc0ca95d$export$27c701ed9e449e99, 74123 null, 74124 /* React-aria does not inject aria-haspopup='dialog' to support legacy screen readers, so we do it ourselves. */ 74125 (0, import_react156.cloneElement)( 74126 children, 74127 // @ts-expect-error aria-haspopup is a valid ARIA attribute but cloneElement types are too strict 74128 { "aria-haspopup": "dialog" } 74129 ) 74130 ), 74131 import_react156.default.createElement( 74132 $07b14b47974efb58$export$5b6b19405a83ff9d, 74133 { 74134 "aria-label": ariaLabel, 74135 placement, 74136 offset: offset3, 74137 style: { outline: "none" } 74138 }, 74139 import_react156.default.createElement( 74140 Popover, 74141 { 74142 hasChrome, 74143 hideLabel: closeLabel, 74144 onHide: hasCloseButton ? onHide : void 0, 74145 padding 74146 }, 74147 typeof popover == "function" ? popover({ onHide }) : popover 74148 ) 74149 ) 74150 ); 74151}; 74152
74153// src/components/components/tooltip/Tooltip.tsx 74154var import_react157 = __toESM(require_react(), 1); 74155var Tooltip2 = (0, import_react157.forwardRef)((props, ref) => import_react157.default.createElement(Popover, { ref, ...props })); 74156Tooltip2.displayName = "Tooltip"; 74157
vendor: 2,223 bytes, lines 74158-74188
74158// src/components/components/tooltip/lazy-WithTooltip.tsx 74159var import_react159 = __toESM(require_react(), 1), LazyWithTooltip = (0, import_react159.lazy)( 74160 () => Promise.resolve().then(() => (init_WithTooltip(), WithTooltip_exports)).then((mod) => ({ default: mod.WithTooltip })) 74161), WithTooltip = (props) => import_react159.default.createElement(import_react159.Suspense, { fallback: import_react159.default.createElement("div", null) }, import_react159.default.createElement(LazyWithTooltip, { ...props })), LazyWithTooltipPure = (0, import_react159.lazy)( 74162 () => Promise.resolve().then(() => (init_WithTooltip(), WithTooltip_exports)).then((mod) => ({ default: mod.WithTooltipPure })) 74163), WithTooltipPure2 = (props) => import_react159.default.createElement(import_react159.Suspense, { fallback: import_react159.default.createElement("div", null) }, import_react159.default.createElement(LazyWithTooltipPure, { ...props })); 74164 74165// src/components/components/tooltip/TooltipMessage.tsx 74166var import_react160 = __toESM(require_react(), 1); 74167init_client_logger(); 74168init_theming(); 74169var Title3 = styled.div(({ theme: theme3 }) => ({ 74170 fontWeight: theme3.typography.weight.bold 74171})), Desc2 = styled.span(), Links = styled.div(({ theme: theme3 }) => ({ 74172 marginTop: 8, 74173 textAlign: "center", 74174 "> *": { 74175 margin: "0 8px", 74176 fontWeight: theme3.typography.weight.bold 74177 } 74178})), Message2 = styled.div(({ theme: theme3 }) => ({ 74179 color: theme3.color.defaultText, 74180 lineHeight: "18px" 74181})), MessageWrapper = styled.div({ 74182 padding: 15, 74183 width: 280, 74184 boxSizing: "border-box" 74185}), TooltipMessage = ({ title, desc, links }) => (deprecate( 74186 "`TooltipMessage` is deprecated and will be removed in Storybook 11, use `Popover` and `PopoverProvider` instead." 74187), import_react160.default.createElement(MessageWrapper, { "data-deprecated": "TooltipMessage" }, import_react160.default.createElement(Message2, null, title && import_react160.default.createElement(Title3, null, title), desc && import_react160.default.createElement(Desc2, null, desc)), links && import_react160.default.createElement(Links, null, links.map(({ title: linkTitle, ...other }) => import_react160.default.createElement(Link2, { ...other, key: linkTitle }, linkTitle))))); 74188
74189// src/components/components/tooltip/TooltipLinkList.tsx 74190var import_react162 = __toESM(require_react(), 1); 74191init_client_logger(); 74192init_theming(); 74193
vendor: 6,390 bytes, lines 74194-74371
74194// src/components/components/tooltip/ListItem.tsx 74195var import_react161 = __toESM(require_react(), 1); 74196init_client_logger(); 74197var import_memoizerific12 = __toESM(require_memoizerific(), 1); 74198init_theming(); 74199var Title4 = styled(({ active, loading, disabled, ...rest }) => import_react161.default.createElement("span", { ...rest }))( 74200 ({ theme: theme3 }) => ({ 74201 color: theme3.color.defaultText, 74202 // Previously was theme.typography.weight.normal but this weight does not exists in Theme 74203 fontWeight: theme3.typography.weight.regular 74204 }), 74205 ({ active, theme: theme3 }) => active ? { 74206 color: theme3.color.secondary, 74207 fontWeight: theme3.typography.weight.bold 74208 } : {}, 74209 ({ loading, theme: theme3 }) => loading ? { 74210 display: "inline-block", 74211 flex: "none", 74212 ...theme3.animation.inlineGlow 74213 } : {}, 74214 ({ disabled, theme: theme3 }) => disabled ? { 74215 color: theme3.textMutedColor 74216 } : {} 74217), Right = styled.span({ 74218 display: "flex", 74219 "& svg": { 74220 height: 12, 74221 width: 12, 74222 margin: "3px 0", 74223 verticalAlign: "top" 74224 } 74225}), Center = styled.span( 74226 { 74227 flex: 1, 74228 textAlign: "left", 74229 display: "flex", 74230 flexDirection: "column", 74231 minWidth: 0 74232 // required for overflow 74233 }, 74234 ({ isIndented }) => isIndented ? { marginLeft: 24 } : {} 74235), CenterText = styled.span( 74236 ({ theme: theme3 }) => ({ 74237 fontSize: "11px", 74238 lineHeight: "14px" 74239 }), 74240 ({ active, theme: theme3 }) => active ? { 74241 color: theme3.color.secondary 74242 } : {}, 74243 ({ theme: theme3, disabled }) => disabled ? { 74244 color: theme3.textMutedColor 74245 } : {} 74246), Left = styled.span( 74247 ({ active, theme: theme3 }) => active ? { 74248 color: theme3.color.secondary 74249 } : {}, 74250 () => ({ 74251 display: "flex", 74252 maxWidth: 14 74253 }) 74254), Item = styled.button( 74255 ({ theme: theme3 }) => ({ 74256 width: "100%", 74257 minWidth: 0, 74258 // required for overflow 74259 border: "none", 74260 borderRadius: theme3.appBorderRadius, 74261 background: "none", 74262 fontSize: theme3.typography.size.s1, 74263 transition: "background 150ms ease-out", 74264 color: theme3.color.dark, 74265 textDecoration: "none", 74266 justifyContent: "space-between", 74267 lineHeight: "18px", 74268 padding: "7px 10px", 74269 display: "flex", 74270 alignItems: "center", 74271 "& > * + *": { 74272 paddingLeft: 10 74273 }, 74274 "&:focus-visible": { 74275 outline: `2px solid ${theme3.color.secondary}`, 74276 outlineOffset: 0 74277 } 74278 }), 74279 ({ theme: theme3, href, onClick }) => (href || onClick) && { 74280 cursor: "pointer", 74281 "&:hover": { 74282 background: theme3.background.hoverable 74283 }, 74284 "&:hover svg": { 74285 opacity: 1 74286 } 74287 }, 74288 ({ theme: theme3, as }) => as === "label" && { 74289 "&:has(input:not(:disabled))": { 74290 cursor: "pointer", 74291 "&:hover": { 74292 background: theme3.background.hoverable 74293 } 74294 } 74295 }, 74296 ({ disabled }) => disabled && { cursor: "not-allowed" } 74297), getItemProps = (0, import_memoizerific12.default)(100)(({ onClick, input: input2, href, LinkWrapper }) => ({ 74298 ...onClick && { 74299 as: "button", 74300 role: "button", 74301 onClick 74302 }, 74303 ...input2 && { 74304 as: "label" 74305 }, 74306 ...href && { 74307 as: "a", 74308 role: "link", 74309 href, 74310 ...LinkWrapper && { 74311 as: LinkWrapper, 74312 to: href 74313 } 74314 } 74315})), ListItem = (0, import_react161.forwardRef)((props, ref) => { 74316 let { 74317 loading = !1, 74318 title = import_react161.default.createElement("span", null, "Loading state"), 74319 center = null, 74320 right: right2 = null, 74321 active = !1, 74322 disabled = !1, 74323 isIndented = !1, 74324 href = void 0, 74325 onClick = void 0, 74326 icon, 74327 input: input2, 74328 LinkWrapper = void 0, 74329 ...rest 74330 } = props, commonProps = { active, disabled }, itemProps = getItemProps(props), left2 = icon || input2; 74331 return deprecate( 74332 "`ListItem` is deprecated and will be removed in Storybook 11, use `MenuItem` instead." 74333 ), import_react161.default.createElement(Item, { "data-deprecated": "ListItem", ref, ...rest, ...commonProps, ...itemProps }, import_react161.default.createElement(import_react161.default.Fragment, null, left2 && import_react161.default.createElement(Left, { ...commonProps }, left2), title || center ? import_react161.default.createElement(Center, { isIndented: isIndented && !left2 }, title && import_react161.default.createElement(Title4, { ...commonProps, loading }, title), center && import_react161.default.createElement(CenterText, { ...commonProps }, center)) : null, right2 && import_react161.default.createElement(Right, { ...commonProps }, right2))); 74334}); 74335ListItem.displayName = "ListItem"; 74336var ListItem_default = ListItem; 74337 74338// src/components/components/tooltip/TooltipLinkList.tsx 74339var List = styled.div( 74340 { 74341 minWidth: 180, 74342 overflow: "hidden", 74343 overflowY: "auto", 74344 maxHeight: 15.5 * 32 + 8 74345 // 15.5 items at 32px each + 8px padding 74346 }, 74347 ({ theme: theme3 }) => ({ 74348 borderRadius: theme3.appBorderRadius + 2 74349 }), 74350 ({ theme: theme3 }) => theme3.base === "dark" ? { background: theme3.background.content } : {} 74351), Group = styled.div(({ theme: theme3 }) => ({ 74352 padding: 4, 74353 "& + &": { 74354 borderTop: `1px solid ${theme3.appBorderColor}` 74355 } 74356})), Item2 = ({ id, onClick, ...rest }) => { 74357 let { active, disabled, title, href } = rest, handleClick = (0, import_react162.useCallback)( 74358 (event) => onClick?.(event, { id, active, disabled, title, href }), 74359 [onClick, id, active, disabled, title, href] 74360 ); 74361 return import_react162.default.createElement(ListItem_default, { id: `list-item-${id}`, ...rest, ...onClick && { onClick: handleClick } }); 74362}, TooltipLinkList = ({ links, LinkWrapper, ...props }) => { 74363 deprecate( 74364 "`TooltipLinkList` is deprecated and will be removed in Storybook 11, use `ActionList` or `MenuItem` and `WithMenu` instead." 74365 ); 74366 let groups = Array.isArray(links[0]) ? links : [links], isIndented = groups.some( 74367 (group) => group.some((link) => "icon" in link && link.icon || "input" in link && link.input) 74368 ); 74369 return import_react162.default.createElement(List, { "data-deprecated": "TooltipLinkList", ...props, className: "sb-list" }, groups.filter((group) => group.length).map((group, index4) => import_react162.default.createElement(Group, { key: group.map((link) => link.id).join(`~${index4}~`) }, group.map((link) => "content" in link ? import_react162.default.createElement(import_react162.Fragment, { key: link.id }, link.content) : import_react162.default.createElement(Item2, { key: link.id, isIndented, LinkWrapper, ...link }))))); 74370}; 74371
74372// src/components/components/Tabs/Tabs.tsx 74373var import_react168 = __toESM(require_react(), 1); 74374init_client_logger(); 74375init_theming(); 74376
vendor: 19,527 bytes, lines 74377-74903
74377// src/components/components/Bar/Bar.tsx 74378var import_react163 = __toESM(require_react(), 1); 74379init_client_logger(); 74380init_theming(); 74381var StyledBar = styled.div( 74382 ({ backgroundColor, border = !1, innerStyle = {}, scrollable, theme: theme3 }) => ({ 74383 color: theme3.barTextColor, 74384 width: "100%", 74385 minHeight: 40, 74386 flexShrink: 0, 74387 // TODO in Storybook 11: Apply background regardless of border. 74388 scrollbarColor: `${theme3.barTextColor} ${border ? backgroundColor || theme3.barBg : "transparent"}`, 74389 scrollbarWidth: "thin", 74390 overflow: scrollable ? "auto" : "hidden", 74391 overflowY: "hidden", 74392 display: "flex", 74393 alignItems: "center", 74394 gap: scrollable ? 0 : 6, 74395 paddingInline: scrollable ? 0 : 6, 74396 // TODO in Storybook 11: Apply background regardless of border. 74397 ...border ? { 74398 boxShadow: `${theme3.appBorderColor} 0 -1px 0 0 inset`, 74399 background: backgroundColor || theme3.barBg 74400 } : {}, 74401 ...innerStyle 74402 }) 74403), HeightPreserver = styled.div(({ innerStyle }) => ({ 74404 minHeight: 40, 74405 display: "flex", 74406 alignItems: "center", 74407 width: "100%", 74408 gap: 6, 74409 paddingInline: 6, 74410 ...innerStyle 74411})), Bar = (0, import_react163.forwardRef)( 74412 ({ scrollable = !0, children, innerStyle, ...rest }, ref) => import_react163.default.createElement( 74413 StyledBar, 74414 { 74415 ...rest, 74416 ref, 74417 innerStyle: scrollable ? void 0 : innerStyle, 74418 scrollable 74419 }, 74420 scrollable ? import_react163.default.createElement(HeightPreserver, { innerStyle }, children) : children 74421 ) 74422); 74423Bar.displayName = "Bar"; 74424var Side = styled.div( 74425 { 74426 display: "flex", 74427 whiteSpace: "nowrap", 74428 flexBasis: "auto", 74429 marginLeft: 3, 74430 marginRight: 10 74431 }, 74432 ({ scrollable }) => scrollable ? { flexShrink: 0 } : {}, 74433 ({ left: left2 }) => left2 ? { 74434 "& > *": { 74435 marginLeft: 4 74436 } 74437 } : {}, 74438 ({ right: right2 }) => right2 ? { 74439 gap: 6 74440 } : {} 74441); 74442Side.displayName = "Side"; 74443var BarInner = styled.div(({ bgColor }) => ({ 74444 display: "flex", 74445 justifyContent: "space-between", 74446 position: "relative", 74447 flexWrap: "nowrap", 74448 flexShrink: 0, 74449 height: 40, 74450 width: "100%", 74451 backgroundColor: bgColor || "" 74452})), BarWithoutPadding = styled(Bar)({ 74453 paddingInline: 0 74454}), FlexBar = ({ children, backgroundColor, className = "", ...rest }) => { 74455 deprecate('FlexBar is deprecated. Use Bar with justifyContent: "space-between" instead.'); 74456 let [left2, right2] = import_react163.Children.toArray(children); 74457 return import_react163.default.createElement( 74458 BarWithoutPadding, 74459 { 74460 "data-deprecated": "FlexBar", 74461 backgroundColor, 74462 className: `sb-bar ${className}`, 74463 ...rest 74464 }, 74465 import_react163.default.createElement(BarInner, { bgColor: backgroundColor }, import_react163.default.createElement(Side, { scrollable: rest.scrollable, left: !0 }, left2), right2 ? import_react163.default.createElement(Side, { right: !0 }, right2) : null) 74466 ); 74467}; 74468FlexBar.displayName = "FlexBar"; 74469 74470// src/components/components/Tabs/Button.tsx 74471var import_react164 = __toESM(require_react(), 1); 74472init_client_logger(); 74473init_theming(); 74474var isLink = (obj) => typeof obj.props.href == "string", isButton = (obj) => typeof obj.props.href != "string"; 74475function ForwardRefFunction({ children, ...rest }, ref) { 74476 let o = { props: rest, ref }; 74477 if (isLink(o)) 74478 return import_react164.default.createElement("a", { ref: o.ref, ...o.props }, children); 74479 if (isButton(o)) 74480 return import_react164.default.createElement("button", { ref: o.ref, type: "button", ...o.props }, children); 74481 throw new Error("invalid props"); 74482} 74483var ButtonOrLink = (0, import_react164.forwardRef)(ForwardRefFunction); 74484ButtonOrLink.displayName = "ButtonOrLink"; 74485var StyledTabButton = styled(ButtonOrLink, { shouldForwardProp: isPropValid })( 74486 { 74487 whiteSpace: "normal", 74488 display: "inline-flex", 74489 overflow: "hidden", 74490 verticalAlign: "top", 74491 justifyContent: "center", 74492 alignItems: "center", 74493 textAlign: "center", 74494 textDecoration: "none", 74495 "&:empty": { 74496 display: "none" 74497 }, 74498 "&[hidden]": { 74499 display: "none" 74500 } 74501 }, 74502 ({ theme: theme3 }) => ({ 74503 padding: "0 15px", 74504 transition: "color 0.2s linear, border-bottom-color 0.2s linear", 74505 height: 40, 74506 lineHeight: "12px", 74507 cursor: "pointer", 74508 background: "transparent", 74509 border: "0 solid transparent", 74510 borderTop: "3px solid transparent", 74511 borderBottom: "3px solid transparent", 74512 fontWeight: "bold", 74513 fontSize: 13, 74514 "&:focus": { 74515 outline: "0 none", 74516 borderBottomColor: theme3.barSelectedColor 74517 } 74518 }), 74519 ({ active, textColor, theme: theme3 }) => active ? { 74520 color: textColor || theme3.barSelectedColor, 74521 borderBottomColor: theme3.barSelectedColor 74522 } : { 74523 color: textColor || theme3.barTextColor, 74524 borderBottomColor: "transparent", 74525 "&:hover": { 74526 color: theme3.barHoverColor 74527 } 74528 } 74529), TabButton = (0, import_react164.forwardRef)((props, ref) => (deprecate("The `TabButton` component is deprecated. Use `TabList` instead."), import_react164.default.createElement(StyledTabButton, { "data-deprecated": "TabButton", ref, ...props }))); 74530TabButton.displayName = "TabButton"; 74531 74532// src/components/components/Tabs/EmptyTabContent.tsx 74533var import_react165 = __toESM(require_react(), 1); 74534init_theming(); 74535var Wrapper6 = styled.div(({ theme: theme3 }) => ({ 74536 height: "100%", 74537 display: "flex", 74538 padding: 30, 74539 alignItems: "center", 74540 justifyContent: "center", 74541 flexDirection: "column", 74542 gap: 15, 74543 background: theme3.background.content 74544})), Content2 = styled.div({ 74545 display: "flex", 74546 flexDirection: "column", 74547 gap: 4, 74548 maxWidth: 415 74549}), Title5 = styled.div(({ theme: theme3 }) => ({ 74550 fontWeight: theme3.typography.weight.bold, 74551 fontSize: theme3.typography.size.s2 - 1, 74552 textAlign: "center", 74553 color: theme3.color.defaultText 74554})), Footer = styled.div(({ theme: theme3 }) => ({ 74555 fontSize: theme3.typography.size.s2 - 1 74556})), Description2 = styled.div(({ theme: theme3 }) => ({ 74557 fontWeight: theme3.typography.weight.regular, 74558 fontSize: theme3.typography.size.s2 - 1, 74559 textAlign: "center", 74560 color: theme3.textMutedColor 74561})), EmptyTabContent = ({ title, description, footer }) => import_react165.default.createElement(Wrapper6, null, import_react165.default.createElement(Content2, null, import_react165.default.createElement(Title5, null, title), description && import_react165.default.createElement(Description2, null, description)), footer && import_react165.default.createElement(Footer, null, footer)); 74562 74563// src/components/components/Tabs/Tabs.helpers.tsx 74564var import_react166 = __toESM(require_react(), 1); 74565init_client_logger(); 74566init_theming(); 74567var VisuallyHidden = styled.div( 74568 ({ active }) => active ? { display: "block" } : { display: "none" } 74569), childrenToList = (children) => (deprecate("The `childrenToList` tabs helper is deprecated. Use `TabsView` instead."), import_react166.Children.toArray(children).map( 74570 // @ts-expect-error (non strict) 74571 ({ 74572 props: { title, id, color: color2, children: childrenOfChild } 74573 }) => { 74574 let content = Array.isArray( 74575 childrenOfChild 74576 ) ? childrenOfChild[0] : childrenOfChild; 74577 return { 74578 title, 74579 id, 74580 ...color2 ? { color: color2 } : {}, 74581 render: typeof content == "function" ? content : ({ active }) => import_react166.default.createElement(VisuallyHidden, { active, role: "tabpanel" }, content) 74582 }; 74583 } 74584)); 74585 74586// src/components/components/Tabs/Tabs.hooks.tsx 74587var import_react167 = __toESM(require_react(), 1); 74588init_client_logger(); 74589init_theming(); 74590var CollapseIcon2 = styled.span(({ theme: theme3, isActive }) => ({ 74591 display: "inline-block", 74592 width: 0, 74593 height: 0, 74594 marginLeft: 8, 74595 color: isActive ? theme3.color.secondary : theme3.color.mediumdark, 74596 borderRight: "3px solid transparent", 74597 borderLeft: "3px solid transparent", 74598 borderTop: "3px solid", 74599 transition: "transform .1s ease-out" 74600})), AddonButton = styled(TabButton)(({ active, theme: theme3, preActive }) => ` 74601 color: ${preActive || active ? theme3.barSelectedColor : theme3.barTextColor}; 74602 .addon-collapsible-icon { 74603 color: ${preActive || active ? theme3.barSelectedColor : theme3.barTextColor}; 74604 } 74605 &:hover { 74606 color: ${theme3.barHoverColor}; 74607 .addon-collapsible-icon { 74608 color: ${theme3.barHoverColor}; 74609 } 74610 } 74611 `); 74612function useList(list) { 74613 deprecate("The `useList` tabs hook is deprecated. Use `TabsView` instead."); 74614 let tabBarRef = (0, import_react167.useRef)(), addonsRef = (0, import_react167.useRef)(), tabRefs = (0, import_react167.useRef)(/* @__PURE__ */ new Map()), { width: tabBarWidth = 1 } = useResizeObserver2({ 74615 // @ts-expect-error (non strict) 74616 ref: tabBarRef 74617 }), [visibleList, setVisibleList] = (0, import_react167.useState)(list), [invisibleList, setInvisibleList] = (0, import_react167.useState)([]), previousList = (0, import_react167.useRef)(list), AddonTab = (0, import_react167.useCallback)( 74618 ({ 74619 menuName, 74620 actions 74621 }) => { 74622 let isAddonsActive = invisibleList.some(({ active }) => active), [isTooltipVisible, setTooltipVisible] = (0, import_react167.useState)(!1); 74623 return import_react167.default.createElement(import_react167.default.Fragment, null, import_react167.default.createElement( 74624 PopoverProvider, 74625 { 74626 ariaLabel: "Additional tabs", 74627 visible: isTooltipVisible, 74628 onVisibleChange: setTooltipVisible, 74629 placement: "bottom", 74630 popover: import_react167.default.createElement( 74631 TooltipLinkList, 74632 { 74633 links: invisibleList.map(({ title, id, color: color2, active }) => ({ 74634 id, 74635 title, 74636 color: color2, 74637 active, 74638 onClick: (e) => { 74639 e.preventDefault(), actions.onSelect(id); 74640 } 74641 })) 74642 } 74643 ) 74644 }, 74645 import_react167.default.createElement( 74646 AddonButton, 74647 { 74648 id: "addons-menu-button", 74649 ref: addonsRef, 74650 active: isAddonsActive, 74651 preActive: isTooltipVisible, 74652 style: { visibility: invisibleList.length ? "visible" : "hidden" }, 74653 "aria-hidden": !invisibleList.length, 74654 className: "tabbutton", 74655 type: "button", 74656 role: "tab" 74657 }, 74658 menuName, 74659 import_react167.default.createElement( 74660 CollapseIcon2, 74661 { 74662 className: "addon-collapsible-icon", 74663 isActive: isAddonsActive || isTooltipVisible 74664 } 74665 ) 74666 ) 74667 ), invisibleList.map(({ title, id, color: color2 }, index4) => { 74668 let indexId = `index-${index4}`; 74669 return import_react167.default.createElement( 74670 TabButton, 74671 { 74672 id: `tabbutton-${sanitize(id) ?? indexId}`, 74673 style: { visibility: "hidden" }, 74674 "aria-hidden": !0, 74675 tabIndex: -1, 74676 ref: (ref) => { 74677 tabRefs.current.set(id, ref); 74678 }, 74679 className: "tabbutton", 74680 type: "button", 74681 key: id, 74682 textColor: color2, 74683 role: "tab" 74684 }, 74685 title 74686 ); 74687 })); 74688 }, 74689 [invisibleList] 74690 ), setTabLists = (0, import_react167.useCallback)(() => { 74691 if (!tabBarRef.current || !addonsRef.current) 74692 return; 74693 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) => { 74694 let { id } = item, tabButton = tabRefs.current.get(id), { width: tabWidth = 0 } = tabButton?.getBoundingClientRect() || {}, crossBorder = x + widthSum + tabWidth > rightBorder; 74695 return (!crossBorder || !tabButton) && newVisibleList.push(item), widthSum += tabWidth, crossBorder; 74696 }); 74697 (newVisibleList.length !== visibleList.length || previousList.current !== list) && (setVisibleList(newVisibleList), setInvisibleList(newInvisibleList), previousList.current = list); 74698 }, [invisibleList.length, list, visibleList]); 74699 return (0, import_react167.useLayoutEffect)(setTabLists, [setTabLists, tabBarWidth]), { 74700 tabRefs, 74701 addonsRef, 74702 tabBarRef, 74703 visibleList, 74704 invisibleList, 74705 AddonTab 74706 }; 74707} 74708 74709// src/components/components/Tabs/Tabs.tsx 74710var ignoreSsrWarning2 = "/* emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason */", Wrapper7 = styled.div( 74711 ({ theme: theme3, bordered }) => bordered ? { 74712 backgroundClip: "padding-box", 74713 border: `1px solid ${theme3.appBorderColor}`, 74714 borderRadius: theme3.appBorderRadius, 74715 overflow: "hidden", 74716 boxSizing: "border-box" 74717 } : {}, 74718 ({ absolute }) => absolute ? { 74719 width: "100%", 74720 height: "100%", 74721 boxSizing: "border-box", 74722 display: "flex", 74723 flexDirection: "column" 74724 } : { 74725 display: "block" 74726 } 74727), StyledTabBar = styled.div({ 74728 overflow: "hidden", 74729 "&:first-of-type": { 74730 marginLeft: -3 74731 }, 74732 whiteSpace: "nowrap", 74733 flexGrow: 1 74734}), TabBar = (0, import_react168.forwardRef)( 74735 (props, ref) => (deprecate("The `TabBar` component is deprecated. Use `TabsView` instead."), import_react168.default.createElement(StyledTabBar, { "data-deprecated": "TabBar", ...props, ref })) 74736); 74737TabBar.displayName = "TabBar"; 74738var Content3 = styled.div( 74739 { 74740 display: "block", 74741 position: "relative", 74742 container: "tab-content / inline-size" 74743 }, 74744 ({ theme: theme3 }) => ({ 74745 fontSize: theme3.typography.size.s2 - 1, 74746 background: theme3.background.content 74747 }), 74748 ({ bordered, theme: theme3 }) => bordered ? { 74749 borderRadius: `0 0 ${theme3.appBorderRadius - 1}px ${theme3.appBorderRadius - 1}px` 74750 } : {}, 74751 ({ absolute, bordered }) => absolute ? { 74752 height: `calc(100% - ${bordered ? 42 : 40}px)`, 74753 position: "absolute", 74754 left: 0 + (bordered ? 1 : 0), 74755 right: 0 + (bordered ? 1 : 0), 74756 bottom: 0 + (bordered ? 1 : 0), 74757 top: 40 + (bordered ? 1 : 0), 74758 overflow: "auto", 74759 [`& > *:first-child${ignoreSsrWarning2}`]: { 74760 position: "absolute", 74761 left: 0 + (bordered ? 1 : 0), 74762 right: 0 + (bordered ? 1 : 0), 74763 bottom: 0 + (bordered ? 1 : 0), 74764 top: 0 + (bordered ? 1 : 0), 74765 height: `calc(100% - ${bordered ? 2 : 0}px)`, 74766 overflow: "auto" 74767 } 74768 } : {} 74769), TabWrapper = (0, import_react168.forwardRef)( 74770 ({ active, render, children }, ref) => (deprecate("The `TabWrapper` component is deprecated. Use `TabsView` instead."), import_react168.default.createElement(VisuallyHidden, { "data-deprecated": "TabWrapper", ref, active }, render ? render() : children)) 74771); 74772TabWrapper.displayName = "TabWrapper"; 74773var TabErrorBoundary = class extends import_react168.Component { 74774 constructor(props) { 74775 super(props), this.state = { hasError: !1 }; 74776 } 74777 static getDerivedStateFromError() { 74778 return { hasError: !0 }; 74779 } 74780 componentDidCatch(error, info) { 74781 console.error("Error rendering addon panel"), console.error(error), console.error(info.componentStack); 74782 } 74783 render() { 74784 return this.state.hasError && this.props.active ? import_react168.default.createElement( 74785 EmptyTabContent, 74786 { 74787 title: "This addon has errors", 74788 description: "Check your browser logs and addon code to pinpoint what went wrong. This issue was not caused by Storybook." 74789 } 74790 ) : this.props.children; 74791 } 74792}, Tabs = (0, import_react168.memo)( 74793 ({ 74794 children, 74795 selected = null, 74796 actions, 74797 absolute = !1, 74798 bordered = !1, 74799 tools = null, 74800 backgroundColor, 74801 id: htmlId = null, 74802 menuName = "Tabs", 74803 emptyState, 74804 showToolsWhenEmpty 74805 }) => { 74806 deprecate("The `Tabs` component is deprecated. Use `TabsView` instead."); 74807 let list = (0, import_react168.useMemo)( 74808 () => childrenToList(children).map((i, index4) => ({ 74809 ...i, 74810 active: selected ? i.id === selected : index4 === 0 74811 })), 74812 [children, selected] 74813 ), { visibleList, tabBarRef, tabRefs, AddonTab } = useList(list), EmptyContent = emptyState ?? import_react168.default.createElement(EmptyTabContent, { title: "Nothing found" }); 74814 return !showToolsWhenEmpty && list.length === 0 ? EmptyContent : ( 74815 // @ts-expect-error (non strict) 74816 import_react168.default.createElement(Wrapper7, { "data-deprecated": "Tabs", absolute, bordered, id: htmlId }, import_react168.default.createElement(FlexBar, { scrollable: !1, border: !0, backgroundColor }, import_react168.default.createElement(TabBar, { style: { whiteSpace: "normal" }, ref: tabBarRef, role: "tablist" }, visibleList.map(({ title, id, active, color: color2 }, index4) => { 74817 let indexId = `index-${index4}`; 74818 return import_react168.default.createElement( 74819 TabButton, 74820 { 74821 id: `tabbutton-${sanitize(id) ?? indexId}`, 74822 ref: (ref) => { 74823 tabRefs.current.set(id, ref); 74824 }, 74825 className: `tabbutton ${active ? "tabbutton-active" : ""}`, 74826 type: "button", 74827 key: id, 74828 active, 74829 textColor: color2, 74830 onClick: (e) => { 74831 e.preventDefault(), actions.onSelect(id); 74832 }, 74833 role: "tab", 74834 "aria-selected": active 74835 }, 74836 typeof title == "function" ? import_react168.default.createElement("title", null) : title 74837 ); 74838 }), import_react168.default.createElement(AddonTab, { menuName, actions })), tools), import_react168.default.createElement(Content3, { id: "panel-tab-content", bordered, absolute }, list.length ? list.map(({ id, active, render }) => import_react168.default.createElement(TabErrorBoundary, { key: id, active }, import_react168.default.createElement(render, { active }, null))) : EmptyContent)) 74839 ); 74840 } 74841); 74842Tabs.displayName = "Tabs"; 74843var TabsState = class extends import_react168.Component { 74844 constructor(props) { 74845 super(props); 74846 this.handlers = { 74847 onSelect: (id) => this.setState({ selected: id }) 74848 }; 74849 deprecate("The `TabsState` class is deprecated. Use `TabsView` instead."), this.state = { 74850 selected: props.initial 74851 }; 74852 } 74853 render() { 74854 let { bordered = !1, absolute = !1, children, backgroundColor, menuName } = this.props, { selected } = this.state; 74855 return import_react168.default.createElement( 74856 Tabs, 74857 { 74858 bordered, 74859 absolute, 74860 selected, 74861 backgroundColor, 74862 menuName, 74863 actions: this.handlers 74864 }, 74865 children 74866 ); 74867 } 74868}; 74869TabsState.defaultProps = { 74870 children: [], 74871 // @ts-expect-error (non strict) 74872 initial: null, 74873 absolute: !1, 74874 bordered: !1, 74875 backgroundColor: "", 74876 // @ts-expect-error (non strict) 74877 menuName: void 0 74878}; 74879 74880// src/components/components/Bar/Separator.tsx 74881var import_react169 = __toESM(require_react(), 1); 74882init_theming(); 74883var Separator2 = styled.span( 74884 ({ theme: theme3 }) => ({ 74885 display: "inline-block", 74886 width: 1, 74887 height: 20, 74888 background: theme3.appBorderColor, 74889 marginLeft: 2, 74890 marginRight: 2 74891 }), 74892 ({ force }) => force ? {} : { 74893 "& + &": { 74894 display: "none" 74895 } 74896 } 74897); 74898Separator2.displayName = "Separator"; 74899var interleaveSeparators = (list) => list.reduce( 74900 (acc, item, index4) => item ? import_react169.default.createElement(import_react169.Fragment, { key: item.id || item.key || `f-${index4}` }, acc, index4 > 0 ? import_react169.default.createElement(Separator2, { key: `s-${index4}` }) : null, item.render() || item) : acc, 74901 null 74902); 74903
74904// src/components/components/addon-panel/addon-panel.tsx 74905var import_react170 = __toESM(require_react(), 1); 74906init_theming(); 74907init_ScrollArea(); 74908var usePrevious = (value) => { 74909 let ref = (0, import_react170.useRef)(); 74910 return (0, import_react170.useEffect)(() => { 74911 ref.current = value; 74912 }, [value]), ref.current; 74913}, useUpdate = (update2, value) => { 74914 let previousValue = usePrevious(value); 74915 return update2 ? value : previousValue; 74916}, Div2 = styled.div(({ theme: theme3 }) => ({ 74917 fontSize: theme3.typography.size.s2 - 1, 74918 height: "100%" 74919})), AddonPanel = ({ active, children, hasScrollbar = !0 }) => ( 74920 // the hidden attribute is an valid html element that's both accessible and works to visually hide content 74921 import_react170.default.createElement(Div2, { hidden: !active }, hasScrollbar ? import_react170.default.createElement(ScrollArea2, { vertical: !0 }, useUpdate(active, children)) : useUpdate(active, children)) 74922); 74923
74924// src/components/components/Toolbar/Toolbar.tsx 74925var import_react172 = __toESM(require_react(), 1); 74926
vendor: 2,693 bytes, lines 74927-74972
74927// ../../node_modules/@react-aria/toolbar/dist/useToolbar.mjs 74928var import_react171 = __toESM(require_react(), 1); 74929function $2680b1829e803644$export$fa142eb1681c5202(props, ref) { 74930 let { "aria-label": ariaLabel, "aria-labelledby": ariaLabelledBy, orientation = "horizontal" } = props, [isInToolbar, setInToolbar] = (0, import_react171.useState)(!1); 74931 $f0a04ccd8dbdd83b$export$e5c5a5f917a5871c(() => { 74932 var _ref_current_parentElement; 74933 setInToolbar(!!(ref.current && (!((_ref_current_parentElement = ref.current.parentElement) === null || _ref_current_parentElement === void 0) && _ref_current_parentElement.closest('[role="toolbar"]')))); 74934 }); 74935 let { direction } = $18f2051aff69b9bf$export$43bb16f9c6d9e3f7(), shouldReverse = direction === "rtl" && orientation === "horizontal", focusManager = $9bf71ea28793e738$export$c5251b9e124bf29(ref), onKeyDown = (e) => { 74936 if (e.currentTarget.contains(e.target)) { 74937 if (orientation === "horizontal" && e.key === "ArrowRight" || orientation === "vertical" && e.key === "ArrowDown") 74938 shouldReverse ? focusManager.focusPrevious() : focusManager.focusNext(); 74939 else if (orientation === "horizontal" && e.key === "ArrowLeft" || orientation === "vertical" && e.key === "ArrowUp") 74940 shouldReverse ? focusManager.focusNext() : focusManager.focusPrevious(); 74941 else if (e.key === "Tab") { 74942 e.stopPropagation(), lastFocused.current = document.activeElement, e.shiftKey ? focusManager.focusFirst() : focusManager.focusLast(); 74943 return; 74944 } else 74945 return; 74946 e.stopPropagation(), e.preventDefault(); 74947 } 74948 }, lastFocused = (0, import_react171.useRef)(null), onBlur = (e) => { 74949 !e.currentTarget.contains(e.relatedTarget) && !lastFocused.current && (lastFocused.current = e.target); 74950 }, onFocus = (e) => { 74951 var _ref_current; 74952 if (lastFocused.current && !e.currentTarget.contains(e.relatedTarget) && (!((_ref_current = ref.current) === null || _ref_current === void 0) && _ref_current.contains(e.target))) { 74953 var _lastFocused_current; 74954 (_lastFocused_current = lastFocused.current) === null || _lastFocused_current === void 0 || _lastFocused_current.focus(), lastFocused.current = null; 74955 } 74956 }; 74957 return { 74958 toolbarProps: { 74959 ...$65484d02dcb7eb3e$export$457c3d6518dd4c6f(props, { 74960 labelable: !0 74961 }), 74962 role: isInToolbar ? "group" : "toolbar", 74963 "aria-orientation": orientation, 74964 "aria-label": ariaLabel, 74965 "aria-labelledby": ariaLabel == null ? ariaLabelledBy : void 0, 74966 onKeyDownCapture: isInToolbar ? void 0 : onKeyDown, 74967 onFocusCapture: isInToolbar ? void 0 : onFocus, 74968 onBlurCapture: isInToolbar ? void 0 : onBlur 74969 } 74970 }; 74971} 74972
vendor: 914 bytes, lines 74973-75003
74973// src/components/components/Toolbar/Toolbar.tsx 74974var AbstractToolbar = ({ 74975 "aria-label": ariaLabel, 74976 "aria-labelledby": ariaLabelledby, 74977 ...rest 74978}) => { 74979 let ref = (0, import_react172.useRef)(null), { toolbarProps } = $2680b1829e803644$export$fa142eb1681c5202( 74980 { 74981 "aria-label": ariaLabel, 74982 "aria-labelledby": ariaLabelledby, 74983 orientation: "horizontal" 74984 }, 74985 ref 74986 ); 74987 return import_react172.default.createElement("div", { ref, ...toolbarProps, ...rest }); 74988}, Toolbar = ({ 74989 "aria-label": ariaLabel, 74990 "aria-labelledby": ariaLabelledby, 74991 ...rest 74992}) => { 74993 let ref = (0, import_react172.useRef)(null), { toolbarProps } = $2680b1829e803644$export$fa142eb1681c5202( 74994 { 74995 "aria-label": ariaLabel, 74996 "aria-labelledby": ariaLabelledby, 74997 orientation: "horizontal" 74998 }, 74999 ref 75000 ); 75001 return import_react172.default.createElement(Bar, { ref, ...toolbarProps, ...rest }); 75002}; 75003
75004// src/components/components/Tabs/TabList.tsx 75005var import_react174 = __toESM(require_react(), 1); 75006
vendor: 367 bytes, lines 75007-75012
75007// ../../node_modules/@react-aria/tabs/dist/utils.mjs 75008var $99b62ae3ff97ec45$export$c5f62239608282b6 = /* @__PURE__ */ new WeakMap(); 75009function $99b62ae3ff97ec45$export$567fc7097e064344(state3, key, role) { 75010 return state3 ? (typeof key == "string" && (key = key.replace(/\s+/g, "")), `${$99b62ae3ff97ec45$export$c5f62239608282b6.get(state3)}-${role}-${key}`) : ""; 75011} 75012
vendor: 1,516 bytes, lines 75013-75043
75013// ../../node_modules/@react-aria/tabs/dist/useTab.mjs 75014function $0175d55c2a017ebc$export$fdf4756d5b8ef90a(props, state3, ref) { 75015 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({ 75016 selectionManager: manager, 75017 key, 75018 ref, 75019 isDisabled: isDisabled3, 75020 shouldSelectOnPressUp, 75021 linkBehavior: "selection" 75022 }), 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, { 75023 labelable: !0 75024 }); 75025 delete domProps.id; 75026 let linkProps = $ea8dcbcb9ea1b556$export$7e924b3091a3bd18(item?.props), { focusableProps } = $f645667febf57a63$export$4c014de7c8940b4c({ 75027 isDisabled: isDisabled3 75028 }, ref); 75029 return { 75030 tabProps: $3ef42575df84b30b$export$9d1611c77c2fe928(domProps, focusableProps, linkProps, itemProps, { 75031 id: tabId, 75032 "aria-selected": isSelected, 75033 "aria-disabled": isDisabled3 || void 0, 75034 "aria-controls": isSelected ? tabPanelId : void 0, 75035 tabIndex: isDisabled3 ? void 0 : tabIndex, 75036 role: "tab" 75037 }), 75038 isSelected, 75039 isDisabled: isDisabled3, 75040 isPressed 75041 }; 75042} 75043
vendor: 823 bytes, lines 75044-75062
75044// ../../node_modules/@react-aria/tabs/dist/useTabPanel.mjs 75045function $34bce698202e07cb$export$fae0121b5afe572d(props, state3, ref) { 75046 let tabIndex = $83013635b024ae3d$export$eac1895992b9f3d6(ref) ? void 0 : 0; 75047 var _props_id; 75048 let id = $99b62ae3ff97ec45$export$567fc7097e064344(state3, (_props_id = props.id) !== null && _props_id !== void 0 ? _props_id : state3?.selectedKey, "tabpanel"), tabPanelProps = $313b98861ee5dd6c$export$d6875122194c7b44({ 75049 ...props, 75050 id, 75051 "aria-labelledby": $99b62ae3ff97ec45$export$567fc7097e064344(state3, state3?.selectedKey, "tab") 75052 }); 75053 return { 75054 tabPanelProps: $3ef42575df84b30b$export$9d1611c77c2fe928(tabPanelProps, { 75055 tabIndex, 75056 role: "tabpanel", 75057 "aria-describedby": props["aria-describedby"], 75058 "aria-details": props["aria-details"] 75059 }) 75060 }; 75061} 75062
vendor: 1,981 bytes, lines 75063-75107
75063// ../../node_modules/@react-aria/tabs/dist/TabsKeyboardDelegate.mjs 75064var $bfc6f2d60b8a4c40$export$15010ca3c1abe90b = class { 75065 getKeyLeftOf(key) { 75066 return this.flipDirection ? this.getNextKey(key) : this.getPreviousKey(key); 75067 } 75068 getKeyRightOf(key) { 75069 return this.flipDirection ? this.getPreviousKey(key) : this.getNextKey(key); 75070 } 75071 isDisabled(key) { 75072 var _this_collection_getItem_props, _this_collection_getItem; 75073 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); 75074 } 75075 getFirstKey() { 75076 let key = this.collection.getFirstKey(); 75077 return key != null && this.isDisabled(key) && (key = this.getNextKey(key)), key; 75078 } 75079 getLastKey() { 75080 let key = this.collection.getLastKey(); 75081 return key != null && this.isDisabled(key) && (key = this.getPreviousKey(key)), key; 75082 } 75083 getKeyAbove(key) { 75084 return this.tabDirection ? null : this.getPreviousKey(key); 75085 } 75086 getKeyBelow(key) { 75087 return this.tabDirection ? null : this.getNextKey(key); 75088 } 75089 getNextKey(startKey) { 75090 let key = startKey; 75091 do 75092 key = this.collection.getKeyAfter(key), key == null && (key = this.collection.getFirstKey()); 75093 while (key != null && this.isDisabled(key)); 75094 return key; 75095 } 75096 getPreviousKey(startKey) { 75097 let key = startKey; 75098 do 75099 key = this.collection.getKeyBefore(key), key == null && (key = this.collection.getLastKey()); 75100 while (key != null && this.isDisabled(key)); 75101 return key; 75102 } 75103 constructor(collection, direction, orientation, disabledKeys = /* @__PURE__ */ new Set()) { 75104 this.collection = collection, this.flipDirection = direction === "rtl" && orientation === "horizontal", this.disabledKeys = disabledKeys, this.tabDirection = orientation === "horizontal"; 75105 } 75106}; 75107
vendor: 1,329 bytes, lines 75108-75139
75108// ../../node_modules/@react-aria/tabs/dist/useTabList.mjs 75109var import_react173 = __toESM(require_react(), 1); 75110function $58d314389b21fa3f$export$773e389e644c5874(props, state3, ref) { 75111 let { orientation = "horizontal", keyboardActivation = "automatic" } = props, { collection, selectionManager: manager, disabledKeys } = state3, { direction } = $18f2051aff69b9bf$export$43bb16f9c6d9e3f7(), delegate = (0, import_react173.useMemo)(() => new $bfc6f2d60b8a4c40$export$15010ca3c1abe90b(collection, direction, orientation, disabledKeys), [ 75112 collection, 75113 disabledKeys, 75114 orientation, 75115 direction 75116 ]), { collectionProps } = $ae20dd8cbca75726$export$d6daf82dcd84e87c({ 75117 ref, 75118 selectionManager: manager, 75119 keyboardDelegate: delegate, 75120 selectOnFocus: keyboardActivation === "automatic", 75121 disallowEmptySelection: !0, 75122 scrollRef: ref, 75123 linkBehavior: "selection" 75124 }), tabsId = $bdb11010cef70236$export$f680877a34711e37(); 75125 $99b62ae3ff97ec45$export$c5f62239608282b6.set(state3, tabsId); 75126 let tabListLabelProps = $313b98861ee5dd6c$export$d6875122194c7b44({ 75127 ...props, 75128 id: tabsId 75129 }); 75130 return { 75131 tabListProps: { 75132 ...$3ef42575df84b30b$export$9d1611c77c2fe928(collectionProps, tabListLabelProps), 75133 role: "tablist", 75134 "aria-orientation": orientation, 75135 tabIndex: void 0 75136 } 75137 }; 75138} 75139
vendor: 7,916 bytes, lines 75140-75320
75140// src/components/components/Tabs/TabList.tsx 75141init_theming(); 75142var StyledTabButton2 = styled.button( 75143 { 75144 whiteSpace: "normal", 75145 display: "inline-flex", 75146 overflow: "hidden", 75147 verticalAlign: "top", 75148 justifyContent: "center", 75149 alignItems: "center", 75150 textAlign: "center", 75151 textDecoration: "none", 75152 scrollSnapAlign: "start", 75153 "&:empty": { 75154 display: "none" 75155 }, 75156 "&[hidden]": { 75157 display: "none" 75158 } 75159 }, 75160 ({ theme: theme3 }) => ({ 75161 padding: "0 15px", 75162 transition: "color 0.2s linear, border-bottom-color 0.2s linear", 75163 height: 40, 75164 lineHeight: "12px", 75165 cursor: "pointer", 75166 background: "transparent", 75167 border: "0 solid transparent", 75168 borderTop: "3px solid transparent", 75169 borderBottom: "3px solid transparent", 75170 fontWeight: "bold", 75171 fontSize: 13, 75172 "&:focus-visible": { 75173 outline: "0 none", 75174 boxShadow: `inset 0 0 0 2px ${theme3.barSelectedColor}` 75175 } 75176 }), 75177 ({ isSelected, theme: theme3 }) => isSelected ? { 75178 color: theme3.barSelectedColor, 75179 borderBottomColor: theme3.barSelectedColor 75180 } : { 75181 color: theme3.barTextColor, 75182 borderBottomColor: "transparent", 75183 "&:hover": { 75184 color: theme3.barHoverColor 75185 } 75186 } 75187), TabListContainer = styled.div({ 75188 display: "flex", 75189 alignItems: "center", 75190 flexShrink: 0, 75191 position: "relative", 75192 overflow: "hidden" 75193}), ScrollContainer = styled.div({ 75194 display: "flex", 75195 overflowX: "auto", 75196 scrollbarWidth: "none", 75197 msOverflowStyle: "none", 75198 WebkitScrollbar: "none", 75199 scrollSnapType: "x mandatory", 75200 flex: 1, 75201 "&::-webkit-scrollbar": { 75202 display: "none" 75203 } 75204}), StyledTabList = styled.div({ 75205 display: "flex", 75206 flexShrink: 0 75207}), SCROLL_BUTTON_WIDTH = 28, ScrollButtonContainer = styled.div(({ $showStartBorder, $showEndBorder, theme: theme3 }) => ({ 75208 flexShrink: 0, 75209 display: "flex", 75210 alignItems: "center", 75211 justifyContent: "center", 75212 padding: 6, 75213 boxShadow: $showStartBorder ? `inset 1px 0 0 ${theme3.appBorderColor}` : $showEndBorder ? `inset -1px 0 0 ${theme3.appBorderColor}` : "none" 75214})), ScrollButton = styled(Button)({ 75215 flexShrink: 0, 75216 paddingInline: 0, 75217 width: 16 75218}), TabButton2 = ({ item, state: state3 }) => { 75219 let { rendered } = item, tabRef = import_react174.default.useRef(null), typedState = state3, { tabProps, isDisabled: isDisabled3, isPressed, isSelected } = $0175d55c2a017ebc$export$fdf4756d5b8ef90a(item, typedState, tabRef); 75220 return import_react174.default.createElement( 75221 StyledTabButton2, 75222 { 75223 ...tabProps, 75224 isDisabled: isDisabled3, 75225 isPressed, 75226 isSelected, 75227 className: `tabbutton ${isSelected ? "tabbutton-active" : ""}`, 75228 ref: tabRef 75229 }, 75230 rendered 75231 ); 75232}, TabList = ({ state: state3, ...rest }) => { 75233 let containerRef = (0, import_react174.useRef)(null), scrollContainerRef = (0, import_react174.useRef)(null), tabListRef = (0, import_react174.useRef)(null), { tabListProps } = $58d314389b21fa3f$export$773e389e644c5874( 75234 { orientation: "horizontal" }, 75235 state3, 75236 tabListRef 75237 ), [showScrollButtons, setShowScrollButtons] = (0, import_react174.useState)(!1), [canScrollLeft, setCanScrollLeft] = (0, import_react174.useState)(!1), [canScrollRight, setCanScrollRight] = (0, import_react174.useState)(!1), updateScrollState = (0, import_react174.useCallback)(() => { 75238 let scrollContainer = scrollContainerRef.current, container = containerRef.current; 75239 if (!scrollContainer || !container) 75240 return; 75241 let { scrollLeft, scrollWidth, clientWidth } = scrollContainer, availableWidth = container.clientWidth - (showScrollButtons ? SCROLL_BUTTON_WIDTH * 2 : 0), needsScrolling = scrollWidth > availableWidth; 75242 setShowScrollButtons(needsScrolling), needsScrolling ? (setCanScrollLeft(scrollLeft > 0), setCanScrollRight(scrollLeft < scrollWidth - clientWidth)) : (setCanScrollLeft(!1), setCanScrollRight(!1)); 75243 }, [showScrollButtons]), throttledUpdateScrollState = (0, import_react174.useCallback)(() => { 75244 updateScrollState(); 75245 }, [updateScrollState]); 75246 (0, import_react174.useEffect)(() => { 75247 let scrollContainer = scrollContainerRef.current; 75248 if (!scrollContainer || typeof window > "u") 75249 return; 75250 scrollContainer.addEventListener("scroll", throttledUpdateScrollState, { passive: !0 }); 75251 let resizeObserver = null; 75252 typeof ResizeObserver < "u" && (resizeObserver = new ResizeObserver(throttledUpdateScrollState), resizeObserver.observe(scrollContainer)); 75253 let timeoutId = setTimeout(throttledUpdateScrollState, 0); 75254 return () => { 75255 clearTimeout(timeoutId), scrollContainer.removeEventListener("scroll", throttledUpdateScrollState), resizeObserver && resizeObserver.disconnect(); 75256 }; 75257 }, [throttledUpdateScrollState]); 75258 let scroll = (0, import_react174.useCallback)((direction) => { 75259 let scrollContainer = scrollContainerRef.current, container = containerRef.current; 75260 if (!scrollContainer || !container || typeof window > "u") 75261 return; 75262 let availableWidth = container.clientWidth - SCROLL_BUTTON_WIDTH * 2, scrollDistance = direction === "backward" ? -availableWidth : availableWidth; 75263 typeof scrollContainer.scrollBy == "function" ? scrollContainer.scrollBy({ left: scrollDistance, behavior: "smooth" }) : scrollContainer.scrollLeft += scrollDistance; 75264 }, []), scrollBackward = (0, import_react174.useCallback)(() => scroll("backward"), [scroll]), scrollForward = (0, import_react174.useCallback)(() => scroll("forward"), [scroll]); 75265 return import_react174.default.createElement(TabListContainer, { ...rest, ref: containerRef, "data-show-scroll-buttons": showScrollButtons }, showScrollButtons && import_react174.default.createElement(ScrollButtonContainer, { $showEndBorder: canScrollLeft }, import_react174.default.createElement( 75266 ScrollButton, 75267 { 75268 variant: "ghost", 75269 padding: "small", 75270 size: "small", 75271 ariaLabel: "Scroll backward", 75272 disabled: !canScrollLeft, 75273 onClick: scrollBackward, 75274 tabIndex: -1 75275 }, 75276 import_react174.default.createElement(ChevronSmallLeftIcon, null) 75277 )), import_react174.default.createElement(ScrollContainer, { ref: scrollContainerRef }, import_react174.default.createElement(StyledTabList, { ref: tabListRef, ...tabListProps }, [...state3.collection].map((item) => import_react174.default.createElement(TabButton2, { key: item.key, item, state: state3 })))), showScrollButtons && import_react174.default.createElement(ScrollButtonContainer, { $showStartBorder: canScrollRight }, import_react174.default.createElement( 75278 ScrollButton, 75279 { 75280 variant: "ghost", 75281 padding: "small", 75282 size: "small", 75283 ariaLabel: "Scroll forward", 75284 disabled: !canScrollRight, 75285 onClick: scrollForward, 75286 tabIndex: -1 75287 }, 75288 import_react174.default.createElement(ChevronSmallRightIcon, null) 75289 ))); 75290}; 75291 75292// src/components/components/Tabs/TabPanel.tsx 75293var import_react175 = __toESM(require_react(), 1); 75294init_theming(); 75295init_ScrollArea(); 75296var Panel = styled.div({ 75297 overflowY: "hidden", 75298 height: "100%" 75299}), TabPanel = ({ 75300 hasScrollbar = !0, 75301 renderAllChildren = !1, 75302 state: state3 75303}) => { 75304 let ref = (0, import_react175.useRef)(null), typedState = state3, { tabPanelProps } = $34bce698202e07cb$export$fae0121b5afe572d(typedState.selectedItem ?? {}, typedState, ref); 75305 return (renderAllChildren ? [...typedState.collection] : [typedState.selectedItem]).filter((item) => !!item).map((item) => { 75306 let isSelected = typedState.selectedKey === item.key; 75307 return import_react175.default.createElement( 75308 Panel, 75309 { 75310 key: item.key, 75311 ref: isSelected ? ref : void 0, 75312 ...isSelected ? tabPanelProps : {}, 75313 id: isSelected ? `${tabPanelProps.id}`.replace(/null$/, `${item.key}`) : void 0, 75314 hidden: isSelected ? void 0 : !0 75315 }, 75316 hasScrollbar ? import_react175.default.createElement(ScrollArea2, { vertical: !0 }, item.props.children) : item.props.children 75317 ); 75318 }); 75319}; 75320
75321// src/components/components/Tabs/TabsView.tsx 75322var import_react179 = __toESM(require_react(), 1); 75323
vendor: 1,981 bytes, lines 75324-75379
75324// ../../node_modules/@react-stately/list/dist/ListCollection.mjs 75325var $a02d57049d202695$export$d085fb9e920b5ca7 = class { 75326 *[Symbol.iterator]() { 75327 yield* this.iterable; 75328 } 75329 get size() { 75330 return this._size; 75331 } 75332 getKeys() { 75333 return this.keyMap.keys(); 75334 } 75335 getKeyBefore(key) { 75336 let node2 = this.keyMap.get(key); 75337 var _node_prevKey; 75338 return node2 && (_node_prevKey = node2.prevKey) !== null && _node_prevKey !== void 0 ? _node_prevKey : null; 75339 } 75340 getKeyAfter(key) { 75341 let node2 = this.keyMap.get(key); 75342 var _node_nextKey; 75343 return node2 && (_node_nextKey = node2.nextKey) !== null && _node_nextKey !== void 0 ? _node_nextKey : null; 75344 } 75345 getFirstKey() { 75346 return this.firstKey; 75347 } 75348 getLastKey() { 75349 return this.lastKey; 75350 } 75351 getItem(key) { 75352 var _this_keyMap_get; 75353 return (_this_keyMap_get = this.keyMap.get(key)) !== null && _this_keyMap_get !== void 0 ? _this_keyMap_get : null; 75354 } 75355 at(idx) { 75356 let keys3 = [ 75357 ...this.getKeys() 75358 ]; 75359 return this.getItem(keys3[idx]); 75360 } 75361 getChildren(key) { 75362 let node2 = this.keyMap.get(key); 75363 return node2?.childNodes || []; 75364 } 75365 constructor(nodes) { 75366 this.keyMap = /* @__PURE__ */ new Map(), this.firstKey = null, this.lastKey = null, this.iterable = nodes; 75367 let visit = (node2) => { 75368 if (this.keyMap.set(node2.key, node2), node2.childNodes && node2.type === "section") for (let child of node2.childNodes) visit(child); 75369 }; 75370 for (let node2 of nodes) visit(node2); 75371 let last2 = null, index4 = 0, size = 0; 75372 for (let [key, node2] of this.keyMap) 75373 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; 75374 this._size = size; 75375 var _last_key; 75376 this.lastKey = (_last_key = last2?.key) !== null && _last_key !== void 0 ? _last_key : null; 75377 } 75378}; 75379
vendor: 3,710 bytes, lines 75380-75443
75380// ../../node_modules/@react-stately/list/dist/useListState.mjs 75381var import_react176 = __toESM(require_react(), 1); 75382function $e72dd72e1c76a225$export$2f645645f7bca764(props) { 75383 let { filter, layoutDelegate } = props, selectionState = $7af3f5b51489e0b5$export$253fe78d46329472(props), disabledKeys = (0, import_react176.useMemo)(() => props.disabledKeys ? new Set(props.disabledKeys) : /* @__PURE__ */ new Set(), [ 75384 props.disabledKeys 75385 ]), factory = (0, import_react176.useCallback)((nodes) => filter ? new $a02d57049d202695$export$d085fb9e920b5ca7(filter(nodes)) : new $a02d57049d202695$export$d085fb9e920b5ca7(nodes), [ 75386 filter 75387 ]), context = (0, import_react176.useMemo)(() => ({ 75388 suppressTextValueWarning: props.suppressTextValueWarning 75389 }), [ 75390 props.suppressTextValueWarning 75391 ]), collection = $7613b1592d41b092$export$6cd28814d92fa9c9(props, factory, context), selectionManager = (0, import_react176.useMemo)(() => new $d496c0a20b6e58ec$export$6c8a5aaad13c9852(collection, selectionState, { 75392 layoutDelegate 75393 }), [ 75394 collection, 75395 selectionState, 75396 layoutDelegate 75397 ]); 75398 return $e72dd72e1c76a225$var$useFocusedKeyReset(collection, selectionManager), { 75399 collection, 75400 disabledKeys, 75401 selectionManager 75402 }; 75403} 75404function $e72dd72e1c76a225$var$useFocusedKeyReset(collection, selectionManager) { 75405 let cachedCollection = (0, import_react176.useRef)(null); 75406 (0, import_react176.useEffect)(() => { 75407 if (selectionManager.focusedKey != null && !collection.getItem(selectionManager.focusedKey) && cachedCollection.current) { 75408 let startItem = cachedCollection.current.getItem(selectionManager.focusedKey), cachedItemNodes = [ 75409 ...cachedCollection.current.getKeys() 75410 ].map((key) => { 75411 let itemNode = cachedCollection.current.getItem(key); 75412 return itemNode?.type === "item" ? itemNode : null; 75413 }).filter((node2) => node2 !== null), itemNodes = [ 75414 ...collection.getKeys() 75415 ].map((key) => { 75416 let itemNode = collection.getItem(key); 75417 return itemNode?.type === "item" ? itemNode : null; 75418 }).filter((node2) => node2 !== null); 75419 var _cachedItemNodes_length, _itemNodes_length; 75420 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); 75421 var _startItem_index, _startItem_index1, _itemNodes_length1; 75422 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; 75423 for (; index4 >= 0; ) { 75424 if (!selectionManager.isDisabled(itemNodes[index4].key)) { 75425 newNode = itemNodes[index4]; 75426 break; 75427 } 75428 if (index4 < itemNodes.length - 1 && !isReverseSearching) index4++; 75429 else { 75430 isReverseSearching = !0; 75431 var _startItem_index2, _startItem_index3; 75432 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--; 75433 } 75434 } 75435 selectionManager.setFocusedKey(newNode ? newNode.key : null); 75436 } 75437 cachedCollection.current = collection; 75438 }, [ 75439 collection, 75440 selectionManager 75441 ]); 75442} 75443
vendor: 1,418 bytes, lines 75444-75474
75444// ../../node_modules/@react-stately/list/dist/useSingleSelectListState.mjs 75445var import_react177 = __toESM(require_react(), 1); 75446function $a0d645289fe9b86b$export$e7f05e985daf4b5f(props) { 75447 var _props_defaultSelectedKey; 75448 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_react177.useMemo)(() => selectedKey != null ? [ 75449 selectedKey 75450 ] : [], [ 75451 selectedKey 75452 ]), { collection, disabledKeys, selectionManager } = $e72dd72e1c76a225$export$2f645645f7bca764({ 75453 ...props, 75454 selectionMode: "single", 75455 disallowEmptySelection: !0, 75456 allowDuplicateSelectionEvents: !0, 75457 selectedKeys, 75458 onSelectionChange: (keys3) => { 75459 if (keys3 === "all") return; 75460 var _keys_values_next_value; 75461 let key = (_keys_values_next_value = keys3.values().next().value) !== null && _keys_values_next_value !== void 0 ? _keys_values_next_value : null; 75462 key === selectedKey && props.onSelectionChange && props.onSelectionChange(key), setSelectedKey(key); 75463 } 75464 }), selectedItem = selectedKey != null ? collection.getItem(selectedKey) : null; 75465 return { 75466 collection, 75467 disabledKeys, 75468 selectionManager, 75469 selectedKey, 75470 setSelectedKey, 75471 selectedItem 75472 }; 75473} 75474
vendor: 2,910 bytes, lines 75475-75507
75475// ../../node_modules/@react-stately/tabs/dist/useTabListState.mjs 75476var import_react178 = __toESM(require_react(), 1); 75477function $76f919a04c5a7d14$export$4ba071daf4e486(props) { 75478 var _props_defaultSelectedKey, _ref; 75479 let state3 = $a0d645289fe9b86b$export$e7f05e985daf4b5f({ 75480 ...props, 75481 onSelectionChange: props.onSelectionChange ? (key) => { 75482 var _props_onSelectionChange; 75483 key != null && ((_props_onSelectionChange = props.onSelectionChange) === null || _props_onSelectionChange === void 0 || _props_onSelectionChange.call(props, key)); 75484 } : void 0, 75485 suppressTextValueWarning: !0, 75486 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 75487 }), { selectionManager, collection, selectedKey: currentSelectedKey } = state3, lastSelectedKey = (0, import_react178.useRef)(currentSelectedKey); 75488 return (0, import_react178.useEffect)(() => { 75489 let selectedKey = currentSelectedKey; 75490 props.selectedKey == null && (selectionManager.isEmpty || selectedKey == null || !collection.getItem(selectedKey)) && (selectedKey = $76f919a04c5a7d14$var$findDefaultSelectedKey(collection, state3.disabledKeys), selectedKey != null && selectionManager.setSelectedKeys([ 75491 selectedKey 75492 ])), (selectedKey != null && selectionManager.focusedKey == null || !selectionManager.isFocused && selectedKey !== lastSelectedKey.current) && selectionManager.setFocusedKey(selectedKey), lastSelectedKey.current = selectedKey; 75493 }), { 75494 ...state3, 75495 isDisabled: props.isDisabled || !1 75496 }; 75497} 75498function $76f919a04c5a7d14$var$findDefaultSelectedKey(collection, disabledKeys) { 75499 let selectedKey = null; 75500 if (collection) { 75501 var _collection_getItem_props, _collection_getItem, _collection_getItem_props1, _collection_getItem1; 75502 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); 75503 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()); 75504 } 75505 return selectedKey; 75506} 75507
vendor: 2,729 bytes, lines 75508-75577
75508// src/components/components/Tabs/TabsView.tsx 75509init_theming(); 75510var useTabsState = ({ 75511 defaultSelected, 75512 onSelectionChange, 75513 selected, 75514 tabs 75515}) => $76f919a04c5a7d14$export$4ba071daf4e486({ 75516 children: tabs.map(({ children: Children10, id, "aria-label": ariaLabel, title: Title6 }) => import_react179.default.createElement($c1d7fb2ec91bae71$export$6d08773d2e66f8f2, { key: id, "aria-label": ariaLabel, title: typeof Title6 == "function" ? import_react179.default.createElement(Title6, null) : Title6 }, typeof Children10 == "function" ? import_react179.default.createElement(Children10, null) : Children10)), 75517 disabledKeys: tabs.filter(({ isDisabled: isDisabled3 }) => isDisabled3).map(({ id }) => id), 75518 defaultSelectedKey: defaultSelected, 75519 onSelectionChange: (key) => onSelectionChange?.(`${key}`), 75520 selectedKey: selected 75521}), Container5 = styled.div({ 75522 display: "flex", 75523 flexDirection: "column", 75524 height: "100%" 75525}), FlexTabPanel = styled(TabPanel)(() => ({ 75526 flex: 1 75527})), FlexTabList = styled(TabList)(({ $simulatedGap }) => ({ 75528 flex: "1 1 0%", 75529 '&[data-show-scroll-buttons="true"]': { marginInlineEnd: $simulatedGap } 75530})), TabsView = ({ 75531 backgroundColor, 75532 barInnerStyle, 75533 defaultSelected, 75534 emptyState, 75535 onSelectionChange, 75536 panelProps = {}, 75537 selected, 75538 showToolsWhenEmpty, 75539 tabs, 75540 tools, 75541 ...props 75542}) => { 75543 let state3 = useTabsState({ 75544 defaultSelected, 75545 onSelectionChange, 75546 selected, 75547 tabs 75548 }), EmptyContent = emptyState ?? import_react179.default.createElement(EmptyTabContent, { title: "Nothing found" }), hasContent = tabs.length > 0; 75549 return !showToolsWhenEmpty && !hasContent ? EmptyContent : import_react179.default.createElement(Container5, { ...props }, import_react179.default.createElement( 75550 Bar, 75551 { 75552 scrollable: !1, 75553 border: !0, 75554 backgroundColor, 75555 innerStyle: { 75556 display: "flex", 75557 justifyContent: "space-between", 75558 paddingInlineStart: 0, 75559 paddingInlineEnd: 10, 75560 // A11y: the tools must be before the tab list in the DOM for correct tab order. 75561 // This lets us control order without adding a wrapper div, leading to better flex 75562 // behavior on tools for our callees (e.g. containerType: 'inline-size' in a11y-addon). 75563 "> *:not(:last-child)": { 75564 order: 2 75565 }, 75566 "> *": { 75567 flexShrink: 0 75568 }, 75569 ...barInnerStyle, 75570 gap: 0 75571 } 75572 }, 75573 tools, 75574 hasContent ? import_react179.default.createElement(FlexTabList, { state: state3, $simulatedGap: barInnerStyle?.gap ?? 6 }) : import_react179.default.createElement("div", null) 75575 ), hasContent ? import_react179.default.createElement(FlexTabPanel, { state: state3, ...panelProps }) : EmptyContent); 75576}; 75577
75578// src/components/components/Tabs/StatelessTabList.tsx 75579var import_react181 = __toESM(require_react(), 1); 75580
vendor: 7,932 bytes, lines 75581-75752
75581// ../../node_modules/react-aria-components/dist/Tabs.mjs 75582var import_react180 = __toESM(require_react(), 1), $5e8ad37a45e1c704$export$cfa7aa87c26e7d1f = (0, import_react180.createContext)(null), $5e8ad37a45e1c704$export$364712098d2aa57c = (0, import_react180.createContext)(null), $5e8ad37a45e1c704$export$b2539bed5023c21c = (0, import_react180.forwardRef)(function(props, ref) { 75583 [props, ref] = $64fa3d84918910a7$export$29f1550f4b0d4415(props, ref, $5e8ad37a45e1c704$export$cfa7aa87c26e7d1f); 75584 let { children, orientation = "horizontal" } = props; 75585 return children = (0, import_react180.useMemo)(() => typeof children == "function" ? children({ 75586 orientation, 75587 defaultChildren: null 75588 }) : children, [ 75589 children, 75590 orientation 75591 ]), import_react180.default.createElement($e1995378a142960e$export$bf788dd355e3a401, { 75592 content: children 75593 }, (collection) => import_react180.default.createElement($5e8ad37a45e1c704$var$TabsInner, { 75594 props, 75595 collection, 75596 tabsRef: ref 75597 })); 75598}); 75599function $5e8ad37a45e1c704$var$TabsInner({ props, tabsRef: ref, collection }) { 75600 let { orientation = "horizontal" } = props, state3 = $76f919a04c5a7d14$export$4ba071daf4e486({ 75601 ...props, 75602 collection, 75603 children: void 0 75604 }), { focusProps, isFocused, isFocusVisible } = $f7dceffc5ad7768b$export$4e328f61c538687f({ 75605 within: !0 75606 }), values = (0, import_react180.useMemo)(() => ({ 75607 orientation, 75608 isFocusWithin: isFocused, 75609 isFocusVisible 75610 }), [ 75611 orientation, 75612 isFocused, 75613 isFocusVisible 75614 ]), renderProps = $64fa3d84918910a7$export$4d86445c2cf5e3({ 75615 ...props, 75616 defaultClassName: "react-aria-Tabs", 75617 values 75618 }), DOMProps = $65484d02dcb7eb3e$export$457c3d6518dd4c6f(props, { 75619 global: !0 75620 }); 75621 return import_react180.default.createElement("div", { 75622 ...$3ef42575df84b30b$export$9d1611c77c2fe928(DOMProps, renderProps, focusProps), 75623 ref, 75624 slot: props.slot || void 0, 75625 "data-focused": isFocused || void 0, 75626 "data-orientation": orientation, 75627 "data-focus-visible": isFocusVisible || void 0, 75628 "data-disabled": state3.isDisabled || void 0 75629 }, import_react180.default.createElement($64fa3d84918910a7$export$2881499e37b75b9a, { 75630 values: [ 75631 [ 75632 $5e8ad37a45e1c704$export$cfa7aa87c26e7d1f, 75633 props 75634 ], 75635 [ 75636 $5e8ad37a45e1c704$export$364712098d2aa57c, 75637 state3 75638 ] 75639 ] 75640 }, renderProps.children)); 75641} 75642var $5e8ad37a45e1c704$export$e51a686c67fdaa2d = (0, import_react180.forwardRef)(function(props, ref) { 75643 return (0, import_react180.useContext)($5e8ad37a45e1c704$export$364712098d2aa57c) ? import_react180.default.createElement($5e8ad37a45e1c704$var$TabListInner, { 75644 props, 75645 forwardedRef: ref 75646 }) : import_react180.default.createElement($e1995378a142960e$export$fb8073518f34e6ec, props); 75647}); 75648function $5e8ad37a45e1c704$var$TabListInner({ props, forwardedRef: ref }) { 75649 let state3 = (0, import_react180.useContext)($5e8ad37a45e1c704$export$364712098d2aa57c), { CollectionRoot } = (0, import_react180.useContext)($7135fc7d473fd974$export$4feb769f8ddf26c5), { orientation = "horizontal", keyboardActivation = "automatic" } = $64fa3d84918910a7$export$fabf2dc03a41866e($5e8ad37a45e1c704$export$cfa7aa87c26e7d1f), objectRef = $df56164dff5785e2$export$4338b53315abf666(ref), { tabListProps } = $58d314389b21fa3f$export$773e389e644c5874({ 75650 ...props, 75651 orientation, 75652 keyboardActivation 75653 }, state3, objectRef), renderProps = $64fa3d84918910a7$export$4d86445c2cf5e3({ 75654 ...props, 75655 children: null, 75656 defaultClassName: "react-aria-TabList", 75657 values: { 75658 orientation, 75659 state: state3 75660 } 75661 }), DOMProps = $65484d02dcb7eb3e$export$457c3d6518dd4c6f(props, { 75662 global: !0 75663 }); 75664 return delete DOMProps.id, import_react180.default.createElement("div", { 75665 ...$3ef42575df84b30b$export$9d1611c77c2fe928(DOMProps, renderProps, tabListProps), 75666 ref: objectRef, 75667 "data-orientation": orientation || void 0 75668 }, import_react180.default.createElement(CollectionRoot, { 75669 collection: state3.collection, 75670 persistedKeys: $7135fc7d473fd974$export$90e00781bc59d8f9(state3.selectionManager.focusedKey) 75671 })); 75672} 75673var $5e8ad37a45e1c704$var$TabItemNode = class extends $23b9f4fcf0fe224b$export$d68d59712b04d9d1 { 75674}; 75675$5e8ad37a45e1c704$var$TabItemNode.type = "item"; 75676var $5e8ad37a45e1c704$export$3e41faf802a29e71 = $e1995378a142960e$export$18af5c7a9e9b3664($5e8ad37a45e1c704$var$TabItemNode, (props, forwardedRef, item) => { 75677 let state3 = (0, import_react180.useContext)($5e8ad37a45e1c704$export$364712098d2aa57c), ref = $df56164dff5785e2$export$4338b53315abf666(forwardedRef), { tabProps, isSelected, isDisabled: isDisabled3, isPressed } = $0175d55c2a017ebc$export$fdf4756d5b8ef90a({ 75678 key: item.key, 75679 ...props 75680 }, state3, ref), { focusProps, isFocused, isFocusVisible } = $f7dceffc5ad7768b$export$4e328f61c538687f(), { hoverProps, isHovered } = $6179b936705e76d3$export$ae780daf29e6d456({ 75681 isDisabled: isDisabled3, 75682 onHoverStart: props.onHoverStart, 75683 onHoverEnd: props.onHoverEnd, 75684 onHoverChange: props.onHoverChange 75685 }), renderProps = $64fa3d84918910a7$export$4d86445c2cf5e3({ 75686 ...props, 75687 id: void 0, 75688 children: item.rendered, 75689 defaultClassName: "react-aria-Tab", 75690 values: { 75691 isSelected, 75692 isDisabled: isDisabled3, 75693 isFocused, 75694 isFocusVisible, 75695 isPressed, 75696 isHovered 75697 } 75698 }), ElementType = item.props.href ? "a" : "div", DOMProps = $65484d02dcb7eb3e$export$457c3d6518dd4c6f(props, { 75699 global: !0 75700 }); 75701 return delete DOMProps.id, delete DOMProps.onClick, import_react180.default.createElement(ElementType, { 75702 ...$3ef42575df84b30b$export$9d1611c77c2fe928(DOMProps, renderProps, tabProps, focusProps, hoverProps), 75703 ref, 75704 "data-selected": isSelected || void 0, 75705 "data-disabled": isDisabled3 || void 0, 75706 "data-focused": isFocused || void 0, 75707 "data-focus-visible": isFocusVisible || void 0, 75708 "data-pressed": isPressed || void 0, 75709 "data-hovered": isHovered || void 0 75710 }, renderProps.children); 75711}), $5e8ad37a45e1c704$export$3d96ec278d3efce4 = $f39a9eba43920ace$export$86427a43e3e48ebb(function(props, forwardedRef) { 75712 let state3 = (0, import_react180.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({ 75713 ...props, 75714 defaultClassName: "react-aria-TabPanel", 75715 values: { 75716 isFocused, 75717 isFocusVisible, 75718 // @ts-ignore - compatibility with React < 19 75719 isInert: $cdc5a6778b766db2$export$a9d04c5684123369(!isSelected), 75720 state: state3 75721 } 75722 }); 75723 if (!isSelected && !props.shouldForceMount) return null; 75724 let DOMProps = $65484d02dcb7eb3e$export$457c3d6518dd4c6f(otherProps, { 75725 global: !0 75726 }); 75727 delete DOMProps.id; 75728 let domProps = isSelected ? $3ef42575df84b30b$export$9d1611c77c2fe928(DOMProps, tabPanelProps, focusProps, renderProps) : renderProps; 75729 return import_react180.default.createElement("div", { 75730 ...domProps, 75731 ref, 75732 "data-focused": isFocused || void 0, 75733 "data-focus-visible": isFocusVisible || void 0, 75734 // @ts-ignore 75735 inert: $cdc5a6778b766db2$export$a9d04c5684123369(!isSelected || props.inert), 75736 "data-inert": isSelected ? void 0 : "true" 75737 }, import_react180.default.createElement($64fa3d84918910a7$export$2881499e37b75b9a, { 75738 values: [ 75739 [ 75740 $5e8ad37a45e1c704$export$cfa7aa87c26e7d1f, 75741 null 75742 ], 75743 [ 75744 $5e8ad37a45e1c704$export$364712098d2aa57c, 75745 null 75746 ] 75747 ] 75748 }, import_react180.default.createElement($7135fc7d473fd974$export$4feb769f8ddf26c5.Provider, { 75749 value: $7135fc7d473fd974$export$a164736487e3f0ae 75750 }, renderProps.children))); 75751}); 75752
vendor: 4,278 bytes, lines 75753-75827
75753// src/components/components/Tabs/StatelessTabList.tsx 75754init_theming(); 75755var Root2 = styled.div({ 75756 display: "flex", 75757 alignItems: "center", 75758 flexShrink: 0, 75759 position: "relative", 75760 overflow: "hidden" 75761}), ScrollContainer2 = styled.div({ 75762 display: "flex", 75763 overflowX: "auto", 75764 scrollbarWidth: "none", 75765 msOverflowStyle: "none", 75766 WebkitScrollbar: "none", 75767 scrollSnapType: "x mandatory", 75768 flex: 1, 75769 "&::-webkit-scrollbar": { 75770 display: "none" 75771 } 75772}), StyledTabList2 = styled($5e8ad37a45e1c704$export$e51a686c67fdaa2d)({ 75773 display: "flex", 75774 flexShrink: 0 75775}), SCROLL_BUTTON_WIDTH2 = 28, ScrollButtonContainer2 = styled.div(({ $showStartBorder, $showEndBorder, theme: theme3 }) => ({ 75776 flexShrink: 0, 75777 display: "flex", 75778 alignItems: "center", 75779 justifyContent: "center", 75780 padding: 6, 75781 boxShadow: $showStartBorder ? `inset 1px 0 0 ${theme3.appBorderColor}` : $showEndBorder ? `inset -1px 0 0 ${theme3.appBorderColor}` : "none" 75782})), ScrollButton2 = styled(Button)({ 75783 flexShrink: 0, 75784 paddingInline: 0, 75785 width: 16 75786}), StatelessTabList = ({ children, ...rest }) => { 75787 let containerRef = (0, import_react181.useRef)(null), scrollContainerRef = (0, import_react181.useRef)(null), [showScrollButtons, setShowScrollButtons] = (0, import_react181.useState)(!1), [canScrollLeft, setCanScrollLeft] = (0, import_react181.useState)(!1), [canScrollRight, setCanScrollRight] = (0, import_react181.useState)(!1), updateScrollState = (0, import_react181.useCallback)(() => { 75788 let scrollContainer = scrollContainerRef.current, container = containerRef.current; 75789 if (!scrollContainer || !container) 75790 return; 75791 let { scrollLeft, scrollWidth, clientWidth } = scrollContainer, availableWidth = container.clientWidth - (showScrollButtons ? SCROLL_BUTTON_WIDTH2 * 2 : 0), needsScrolling = scrollWidth > availableWidth; 75792 setShowScrollButtons(needsScrolling), needsScrolling ? (setCanScrollLeft(scrollLeft > 0), setCanScrollRight(scrollLeft < scrollWidth - clientWidth)) : (setCanScrollLeft(!1), setCanScrollRight(!1)); 75793 }, [showScrollButtons]), throttledUpdateScrollState = (0, import_react181.useCallback)(() => { 75794 updateScrollState(); 75795 }, [updateScrollState]); 75796 (0, import_react181.useEffect)(() => { 75797 let scrollContainer = scrollContainerRef.current; 75798 if (!scrollContainer || typeof window > "u") 75799 return; 75800 scrollContainer.addEventListener("scroll", throttledUpdateScrollState, { passive: !0 }); 75801 let resizeObserver = null; 75802 typeof ResizeObserver < "u" && (resizeObserver = new ResizeObserver(throttledUpdateScrollState), resizeObserver.observe(scrollContainer)); 75803 let timeoutId = setTimeout(throttledUpdateScrollState, 0); 75804 return () => { 75805 clearTimeout(timeoutId), scrollContainer.removeEventListener("scroll", throttledUpdateScrollState), resizeObserver && resizeObserver.disconnect(); 75806 }; 75807 }, [throttledUpdateScrollState]); 75808 let scroll = (0, import_react181.useCallback)((direction) => { 75809 let scrollContainer = scrollContainerRef.current, container = containerRef.current; 75810 if (!scrollContainer || !container || typeof window > "u") 75811 return; 75812 let availableWidth = container.clientWidth - SCROLL_BUTTON_WIDTH2 * 2, scrollDistance = direction === "backward" ? -availableWidth : availableWidth; 75813 typeof scrollContainer.scrollBy == "function" ? scrollContainer.scrollBy({ left: scrollDistance, behavior: "smooth" }) : scrollContainer.scrollLeft += scrollDistance; 75814 }, []), scrollBackward = (0, import_react181.useCallback)(() => scroll("backward"), [scroll]), scrollForward = (0, import_react181.useCallback)(() => scroll("forward"), [scroll]); 75815 return import_react181.default.createElement(Root2, { ref: containerRef, className: `tablist ${showScrollButtons ? "tablist-has-scroll" : ""}` }, showScrollButtons && import_react181.default.createElement(ScrollButtonContainer2, { $showEndBorder: canScrollLeft }, import_react181.default.createElement( 75816 ScrollButton2, 75817 { 75818 variant: "ghost", 75819 padding: "small", 75820 size: "small", 75821 ariaLabel: "Scroll backward", 75822 disabled: !canScrollLeft, 75823 onClick: scrollBackward, 75824 tabIndex: -1 75825 }, 75826 import_react181.default.createElement(ChevronSmallLeftIcon, null) 75827 )), import_react181.default.createElement(ScrollContainer2, { ref: scrollC
75827ontainerRef }, import_react181.default.createElement(StyledTabList2, { ...rest }, children)), showScrollButtons && import_react181.default.createElement(ScrollButtonContainer2, { $showStartBorder: canScrollRight }, import_react181.default.createElement( 75828 ScrollButton2, 75829 { 75830 variant: "ghost", 75831 padding: "small", 75832 size: "small", 75833 ariaLabel: "Scroll forward", 75834 disabled: !canScrollRight, 75835 onClick: scrollForward, 75836 tabIndex: -1 75837 }, 75838 import_react181.default.createElement(ChevronSmallRightIcon, null) 75839 ))); 75840}; 75841
75842// src/components/components/Tabs/StatelessTabPanel.tsx 75843var import_react182 = __toESM(require_react(), 1); 75844init_theming(); 75845init_ScrollArea(); 75846var Root3 = styled($5e8ad37a45e1c704$export$3d96ec278d3efce4)({ 75847 overflowY: "hidden", 75848 height: "100%", 75849 display: "block", 75850 '&[inert="true"]': { display: "none" } 75851}), StatelessTabPanel = ({ 75852 children, 75853 hasScrollbar = !0, 75854 name, 75855 ...rest 75856}) => import_react182.default.createElement(Root3, { ...rest, shouldForceMount: !0, id: name }, hasScrollbar ? import_react182.default.createElement(ScrollArea2, { vertical: !0 }, children) : children); 75857
vendor: 3,458 bytes, lines 75858-75969
75858// src/components/components/Tabs/StatelessTabsView.tsx 75859var import_react183 = __toESM(require_react(), 1); 75860init_theming(); 75861var Container6 = styled($5e8ad37a45e1c704$export$b2539bed5023c21c)(({ $simulatedGap }) => ({ 75862 display: "flex", 75863 flexDirection: "column", 75864 height: "100%", 75865 ".tablist": { 75866 flex: "1 1 100%" 75867 }, 75868 ".tablist.tablist-has-scroll": { 75869 marginInlineEnd: $simulatedGap 75870 }, 75871 "& > :not(:first-child)": { flex: 1 } 75872})), StatelessTabsView = ({ 75873 backgroundColor, 75874 barInnerStyle, 75875 children, 75876 defaultSelected, 75877 emptyState, 75878 onSelectionChange, 75879 selected, 75880 showToolsWhenEmpty, 75881 tools, 75882 ...props 75883}) => { 75884 let EmptyContent = emptyState ?? import_react183.default.createElement(EmptyTabContent, { title: "Nothing found" }), [tabListChild, ...tabPanelChildren] = import_react183.default.Children.toArray(children), hasContent = tabPanelChildren && tabPanelChildren.length > 0; 75885 return !showToolsWhenEmpty && !hasContent ? EmptyContent : import_react183.default.createElement( 75886 Container6, 75887 { 75888 ...props, 75889 $simulatedGap: barInnerStyle?.gap ?? 6, 75890 defaultSelectedKey: defaultSelected, 75891 onSelectionChange: (k) => onSelectionChange?.(k ? `${k}` : ""), 75892 selectedKey: selected 75893 }, 75894 import_react183.default.createElement( 75895 Bar, 75896 { 75897 scrollable: !1, 75898 border: !0, 75899 backgroundColor, 75900 innerStyle: { 75901 display: "flex", 75902 justifyContent: "space-between", 75903 paddingInlineStart: 0, 75904 paddingInlineEnd: 10, 75905 // A11y: the tools must be before the tab list in the DOM for correct tab order. 75906 // This lets us control order without adding a wrapper div, leading to better flex 75907 // behavior on tools for our callees (e.g. containerType: 'inline-size' in a11y-addon). 75908 "> *:not(:last-child)": { 75909 order: 2 75910 }, 75911 "> *": { 75912 flexShrink: 0 75913 }, 75914 ...barInnerStyle, 75915 gap: 0 75916 } 75917 }, 75918 tools, 75919 hasContent ? tabListChild : import_react183.default.createElement("div", null) 75920 ), 75921 hasContent ? tabPanelChildren : EmptyContent 75922 ); 75923}; 75924 75925// src/components/components/Tabs/StatelessTab.tsx 75926var import_react184 = __toESM(require_react(), 1); 75927init_theming(); 75928var StyledTab = styled($5e8ad37a45e1c704$export$3e41faf802a29e71)(({ theme: theme3 }) => ({ 75929 whiteSpace: "normal", 75930 display: "inline-flex", 75931 overflow: "hidden", 75932 verticalAlign: "top", 75933 justifyContent: "center", 75934 alignItems: "center", 75935 textAlign: "center", 75936 textDecoration: "none", 75937 scrollSnapAlign: "start", 75938 "&:empty": { 75939 display: "none" 75940 }, 75941 "&[hidden]": { 75942 display: "none" 75943 }, 75944 padding: "0 15px", 75945 transition: "color 0.2s linear, border-bottom-color 0.2s linear", 75946 height: 40, 75947 lineHeight: "12px", 75948 cursor: "pointer", 75949 background: "transparent", 75950 border: "0 solid transparent", 75951 borderTop: "3px solid transparent", 75952 borderBottom: "3px solid transparent", 75953 fontWeight: "bold", 75954 fontSize: 13, 75955 "&:focus-visible": { 75956 outline: "0 none", 75957 boxShadow: `inset 0 0 0 2px ${theme3.barSelectedColor}` 75958 }, 75959 color: theme3.barTextColor, 75960 borderBottomColor: "transparent", 75961 "&:hover": { 75962 color: theme3.barHoverColor 75963 }, 75964 "&[data-selected]": { 75965 color: theme3.barSelectedColor, 75966 borderBottomColor: theme3.barSelectedColor 75967 } 75968})), StatelessTab = ({ name, ...props }) => import_react184.default.createElement(StyledTab, { id: name, ...props }); 75969
75970// src/components/brand/StorybookLogo.tsx 75971var import_react185 = __toESM(require_react(), 1), StorybookLogo = ({ alt, ...props }) => import_react185.default.createElement("svg", { width: "200px", height: "40px", viewBox: "0 0 200 40", ...props, role: "img" }, alt ? import_react185.default.createElement("title", null, alt) : null, import_react185.default.createElement("defs", null, import_react185.default.createElement( 75972 "path", 75973 { 75974 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", 75975 id: "a" 75976 } 75977)), import_react185.default.createElement("g", { fill: "none", fillRule: "evenodd" }, import_react185.default.createElement( 75978 "path", 75979 { 75980 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", 75981 fill: "currentColor" 75982 } 75983), import_react185.default.createElement("mask", { id: "b", fill: "#fff" }, import_react185.default.createElement("use", { xlinkHref: "#a" })), import_react185.default.createElement("use", { fill: "#FF4785", fillRule: "nonzero", xlinkHref: "#a" }), import_react185.default.createElement( 75984 "path", 75985 { 75986 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", 75987 fill: "#FFF", 75988 fillRule: "nonzero", 75989 mask: "url(#b)" 75990 } 75991))); 75992
75993// src/components/brand/StorybookIcon.tsx 75994var import_react186 = __toESM(require_react(), 1), StorybookIcon3 = (props) => import_react186.default.createElement("svg", { viewBox: "0 0 64 64", ...props }, import_react186.default.createElement("title", null, "Storybook icon"), import_react186.default.createElement("g", { id: "Artboard", stroke: "none", strokeWidth: "1", fill: "none", fillRule: "evenodd" }, import_react186.default.createElement( 75995 "path", 75996 { 75997 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", 75998 id: "path-1", 75999 fill: "#FF4785", 76000 fillRule: "nonzero" 76001 } 76002), import_react186.default.createElement( 76003 "path", 76004 { 76005 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", 76006 id: "path9_fill-path", 76007 fill: "#FFFFFF", 76008 fillRule: "nonzero" 76009 } 76010), import_react186.default.createElement( 76011 "path", 76012 { 76013 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", 76014 id: "Path", 76015 fill: "#FFFFFF" 76016 } 76017))); 76018
76019// src/components/components/Loader/Loader.tsx 76020var import_react187
vendor: 2,219 bytes, lines 76020-76106
76020 = __toESM(require_react(), 1); 76021init_polished_esm(); 76022init_theming(); 76023 76024// src/components/components/shared/animation.ts 76025init_theming(); 76026var rotate3602 = keyframes` 76027 from { 76028 transform: rotate(0deg); 76029 } 76030 to { 76031 transform: rotate(360deg); 76032 } 76033`; 76034 76035// src/components/components/Loader/Loader.tsx 76036var LoaderWrapper = styled.div(({ size = 32 }) => ({ 76037 borderRadius: "50%", 76038 cursor: "progress", 76039 display: "inline-block", 76040 overflow: "hidden", 76041 position: "absolute", 76042 transition: "all 200ms ease-out", 76043 verticalAlign: "top", 76044 top: "50%", 76045 left: "50%", 76046 marginTop: -(size / 2), 76047 marginLeft: -(size / 2), 76048 height: size, 76049 width: size, 76050 zIndex: 4, 76051 borderWidth: 2, 76052 borderStyle: "solid", 76053 borderColor: "rgba(97, 97, 97, 0.29)", 76054 borderTopColor: "rgb(100,100,100)", 76055 animation: `${rotate3602} 0.7s linear infinite`, 76056 mixBlendMode: "difference" 76057})), ProgressWrapper = styled.div({ 76058 position: "absolute", 76059 display: "flex", 76060 flexDirection: "column", 76061 justifyContent: "center", 76062 alignItems: "center", 76063 width: "100%", 76064 height: "100%" 76065}), ProgressTrack = styled.div(({ theme: theme3 }) => ({ 76066 position: "relative", 76067 width: "80%", 76068 marginBottom: "0.75rem", 76069 maxWidth: 300, 76070 height: 5, 76071 borderRadius: 5, 76072 background: curriedTransparentize$1(0.8, theme3.color.secondary), 76073 overflow: "hidden", 76074 cursor: "progress" 76075})), ProgressBar2 = styled.div(({ theme: theme3 }) => ({ 76076 position: "absolute", 76077 top: 0, 76078 left: 0, 76079 height: "100%", 76080 background: theme3.color.secondary 76081})), ProgressMessage = styled.div(({ theme: theme3 }) => ({ 76082 minHeight: "2em", 76083 fontSize: `${theme3.typography.size.s1}px`, 76084 color: theme3.textMutedColor 76085})), ErrorIcon = styled(LightningOffIcon)(({ theme: theme3 }) => ({ 76086 width: 20, 76087 height: 20, 76088 marginBottom: "0.5rem", 76089 color: theme3.textMutedColor 76090})), ellipsis = keyframes` 76091 from { content: "..." } 76092 33% { content: "." } 76093 66% { content: ".." } 76094 to { content: "..." } 76095`, Ellipsis = styled.span({ 76096 "&::after": { 76097 content: "'...'", 76098 animation: `${ellipsis} 1s linear infinite`, 76099 animationDelay: "1s", 76100 display: "inline-block", 76101 width: "1em", 76102 height: "auto" 76103 } 76104}), Loader = ({ progress, error, size, ...props }) => { 76105 if (error) 76106 return import_react18
vendor: 3,361 bytes, lines 76106-76191
761067.default.createElement(ProgressWrapper, { "aria-label": error.toString(), "aria-live": "polite", role: "status", ...props }, import_react187.default.createElement(ErrorIcon, null), import_react187.default.createElement(ProgressMessage, null, error.message)); 76107 if (progress) { 76108 let { value, modules } = progress, { message } = progress; 76109 return modules && (message += ` ${modules.complete} / ${modules.total} modules`), import_react187.default.createElement( 76110 ProgressWrapper, 76111 { 76112 "aria-label": "Content is loading...", 76113 "aria-live": "polite", 76114 "aria-valuemin": 0, 76115 "aria-valuemax": 100, 76116 "aria-valuenow": value * 100, 76117 "aria-valuetext": message, 76118 role: "progressbar", 76119 ...props 76120 }, 76121 import_react187.default.createElement(ProgressTrack, null, import_react187.default.createElement(ProgressBar2, { style: { width: `${value * 100}%` } })), 76122 import_react187.default.createElement(ProgressMessage, null, message, value < 1 && import_react187.default.createElement(Ellipsis, { key: message })) 76123 ); 76124 } 76125 return import_react187.default.createElement( 76126 LoaderWrapper, 76127 { 76128 "aria-label": "Content is loading...", 76129 "aria-live": "polite", 76130 role: "status", 76131 size, 76132 ...props 76133 } 76134 ); 76135}; 76136 76137// src/components/components/ProgressSpinner/ProgressSpinner.tsx 76138var import_react188 = __toESM(require_react(), 1); 76139init_theming(); 76140var XMLNS = "http://www.w3.org/2000/svg", rotate = keyframes({ 76141 "0%": { 76142 transform: "rotate(0deg)" 76143 }, 76144 "100%": { 76145 transform: "rotate(360deg)" 76146 } 76147}), Wrapper8 = styled.div(({ size }) => ({ 76148 display: "inline-flex", 76149 alignItems: "center", 76150 justifyContent: "center", 76151 position: "relative", 76152 minWidth: size, 76153 minHeight: size 76154})), Circle = styled.svg( 76155 ({ size, width }) => ({ 76156 position: "absolute", 76157 width: `${size}px!important`, 76158 height: `${size}px!important`, 76159 transform: "rotate(-90deg)", 76160 circle: { 76161 r: (size - Math.ceil(width)) / 2, 76162 cx: size / 2, 76163 cy: size / 2, 76164 opacity: 0.15, 76165 fill: "transparent", 76166 stroke: "currentColor", 76167 strokeWidth: width, 76168 strokeLinecap: "round", 76169 strokeDasharray: Math.PI * (size - Math.ceil(width)) 76170 } 76171 }), 76172 ({ progress }) => progress && { 76173 circle: { 76174 opacity: 0.75 76175 } 76176 }, 76177 ({ spinner }) => spinner && { 76178 animation: `${rotate} 1s linear infinite`, 76179 circle: { 76180 opacity: 0.25 76181 } 76182 } 76183), ProgressSpinner = ({ 76184 percentage = void 0, 76185 running = !0, 76186 size = 24, 76187 width = 1.5, 76188 children = null, 76189 ...props 76190}) => typeof percentage == "number" ? import_react188.default.createElement(Wrapper8, { size, ...props }, children, import_react188.default.createElement(Circle, { size, width, xmlns: XMLNS }, import_react188.default.createElement("circle", null)), running && import_react188.default.createElement(Circle, { size, width, xmlns: XMLNS, spinner: !0 }, import_react188.default.createElement("circle", { strokeDashoffset: Math.PI * (size - Math.ceil(width)) * (1 - percentage / 100) })), import_react188.default.createElement(Circle, { size, width, xmlns: XMLNS, progress: !0 }, import_react188.default.createElement("circle", { strokeDashoffset: Math.PI * (size - Math.ceil(width)) * (1 - percentage / 100) }))) : import_react188.default.createElement(Wrapper8, { size, ...props }, children); 76191
76192// src/components/components/utils/getStoryHref.ts 76193init_client_logger(); 76194function parseQuery(queryString) { 76195 let query = {}, pairs = queryString.split("&"); 76196 for (let i = 0; i < pairs.length; i++) { 76197 let pair = pairs[i].split("="); 76198 query[decodeURIComponent(pair[0])] = decodeURIComponent(pair[1] || ""); 76199 } 76200 return query; 76201} 76202var getStoryHref = (baseUrl, storyId, additionalParams = {}) => { 76203 deprecate( 76204 "getStoryHref is deprecated and will be removed in Storybook 11, use the api.getStoryHrefs method instead" 76205 ); 76206 let [url, paramsStr] = baseUrl.split("?"), params = paramsStr ? { 76207 ...parseQuery(paramsStr), 76208 ...additionalParams, 76209 id: storyId 76210 } : { 76211 ...additionalParams, 76212 id: storyId 76213 }; 76214 return `${url}?${Object.entries(params).map((item) => `${item[0]}=${item[1]}`).join("&")}`; 76215}; 76216
76217// src/components/components/clipboard/ClipboardCode.tsx 76218var import_react189 = __toESM(require_react(), 1); 76219init_theming(); 76220var Code3 = styled.pre` 76221 line-height: 18px; 76222 padding: 11px 1rem; 76223 white-space: pre-wrap; 76224 background: rgba(0, 0, 0, 0.05); 76225 color: ${color.darkest}; 76226 border-radius: 3px; 76227 margin: 1rem 0; 76228 width: 100%; 76229 display: block; 76230 overflow: hidden; 76231 font-family: ${typography.fonts.mono}; 76232 font-size: ${typography.size.s2 - 1}px; 76233`, ClipboardCode = ({ code, ...props }) => import_react189.default.createElement(Code3, { id: "clipboard-code", ...props }, code); 76234
76235// src/components/index.ts 76236var components2 = components, resetComponents = {}; 76237Object.keys(components).forEach((key) => { 76238 resetComponents[key] = (0, import_react190.forwardRef)((props, ref) => (0, import_react190
vendor: 2,470 bytes, lines 76238-76292
76238.createElement)(key, { ...props, ref })); 76239}); 76240 76241// src/manager/globals/runtime.ts 76242init_theming(); 76243init_create(); 76244var globalsNameValueMap = { 76245 react: REACT, 76246 "react-dom": REACT_DOM, 76247 "react-dom/client": REACT_DOM_CLIENT, 76248 "@storybook/icons": dist_exports2, 76249 "storybook/manager-api": manager_api_exports, 76250 "storybook/theming": theming_exports, 76251 "storybook/theming/create": create_exports, 76252 "storybook/test": test_exports, 76253 "storybook/internal/channels": channels_exports, 76254 "storybook/internal/client-logger": client_logger_exports, 76255 "storybook/internal/components": components_exports, 76256 "storybook/internal/core-events": core_events_exports, 76257 "storybook/internal/manager-errors": manager_errors_exports, 76258 "storybook/internal/router": router_exports, 76259 "storybook/internal/types": types_exports 76260}; 76261 76262// src/manager/utils/prepareForTelemetry.ts 76263init_dist(); 76264var import_browser_dtector = __toESM(require_browser_dtector_umd_min(), 1), browserInfo; 76265function getBrowserInfo() { 76266 return browserInfo || (browserInfo = new import_browser_dtector.default(scope.navigator?.userAgent).getBrowserInfo()), browserInfo; 76267} 76268var errorMessages = [ 76269 // It's a harmless issue with react-resize-detector that supposedly will be gone when we move to React 18. 76270 // https://github.com/maslianok/react-resize-detector/issues/45#issuecomment-1500958024 76271 "ResizeObserver loop completed with undelivered notifications.", 76272 "ResizeObserver loop limit exceeded", 76273 // Safari does not seem to provide any helpful info on window.onerror 76274 // https://bugs.webkit.org/show_bug.cgi?id=132945 76275 "Script error.", 76276 // When react-dev-tools is installed as a browser extension, it will log this error 76277 "React is running in production mode" 76278], shouldSkipError = (error) => errorMessages.includes(error?.message); 76279function prepareForTelemetry(originalError) { 76280 let error = originalError; 76281 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; 76282} 76283 76284// src/manager/globals-runtime.ts 76285globalPackages.forEach((key) => { 76286 globalThis[globalsNameReferenceMap[key]] = globalsNameValueMap[key]; 76287}); 76288var queuedErrors = []; 76289globalThis.sendTelemetryError = (error) => { 76290 if (shouldSkipError(error)) 76291 return; 76292 let channel
76292 = globalThis.__STORYBOOK_ADDONS_CHANNEL__, preparedError = prepareForTelemetry(error); 76293 if (!channel) { 76294 queuedErrors.push(preparedError); 76295 return; 76296 } 76297 for (; queuedErrors.length > 0; ) { 76298 let queuedError = queuedErrors.shift(); 76299 channel.emit(TELEMETRY_ERROR, queuedError); 76300 } 76301 channel.emit(TELEMETRY_ERROR, preparedError); 76302}; 76303globalThis.addEventListener("error", (args) => { 76304 let error = args.error || args; 76305 globalThis.sendTelemetryError(error); 76306}); 76307globalThis.addEventListener("unhandledrejection", ({ reason }) => { 76308 globalThis.sendTelemetryError(reason); 76309});
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.