diff --git a/aws/src/lambdas/genPass/index.ts b/aws/src/lambdas/genPass/index.ts index 1a291c4..271eca4 100644 --- a/aws/src/lambdas/genPass/index.ts +++ b/aws/src/lambdas/genPass/index.ts @@ -20,10 +20,9 @@ const handler = async (event: APIGatewayProxyEventV2): Promise{ - //if (!inputValue) return; +export async function calculatePassword(argon2_salt:string) : Promise{ + + const db_val = "test_db_val" // FETCH THIS FROM DB. THIS IS WHAT WILL BE USED FOR CALCULATING CUSTOM SALT INDICIES const enc_name = "Name"; const enc_email = "name@gmail.com" const enc_phone = "5555555555" const site_domain = "amazon.com" + + const prepped_salt = db_val + "-" + argon2_salt; - const hashed_name = await extractHash((await hashText(enc_name, argon2_salt)).body); - const hashed_email = await extractHash((await hashText(enc_email, argon2_salt)).body); - const hashed_phone = await extractHash((await hashText(enc_phone, argon2_salt)).body); - const hashed_domain = await extractHash((await hashText(site_domain, argon2_salt)).body); + const hashed_name = await extractHash((await hashText(enc_name, prepped_salt)).body); + const hashed_email = await extractHash((await hashText(enc_email, prepped_salt)).body); + const hashed_phone = await extractHash((await hashText(enc_phone, prepped_salt)).body); + const hashed_domain = await extractHash((await hashText(site_domain, prepped_salt)).body); - const salt_indicies = await CalculateSalts(inputValue); // For now input value will go into calculating salt indicies for testing. Will change to an internal db value + const salt_indicies = await CalculateSalts(db_val); /*const salt1 = await hashText(securityAnswers[salt_indicies[0]]) const salt2 = await hashText(securityAnswers[salt_indicies[1]]) @@ -41,7 +44,7 @@ export async function calculatePassword(inputValue: string, argon2_salt:string) console.log(salt_indicies) const arranged_string = hashed_name+salt2+hashed_phone+salt1+hashed_domain+salt3+hashed_email; - const fullHash = await hashText(arranged_string, argon2_salt); + const fullHash = await hashText(arranged_string, prepped_salt); const extractedHash = extractHash(fullHash.body); console.log(fullHash) console.log(extractedHash) diff --git a/extension/src/hashpass/app/popup/page.tsx b/extension/src/hashpass/app/popup/page.tsx index b66a4c6..149112e 100644 --- a/extension/src/hashpass/app/popup/page.tsx +++ b/extension/src/hashpass/app/popup/page.tsx @@ -7,6 +7,12 @@ export default function Home() { <>
Welcome to HashPass
+ + ); diff --git a/extension/src/hashpass/app/security_components/components/password_generator.tsx b/extension/src/hashpass/app/security_components/components/password_generator.tsx index 7dcf2a5..8e3cb88 100644 --- a/extension/src/hashpass/app/security_components/components/password_generator.tsx +++ b/extension/src/hashpass/app/security_components/components/password_generator.tsx @@ -1,11 +1,11 @@ 'use client'; import React, { useState } from 'react'; -import { CalculateSalts } from './salt_calculator'; -import { hashText, extractHash } from '../tools/hashing_tool'; +//import { CalculateSalts } from './salt_calculator'; +//import { hashText, extractHash } from '../tools/hashing_tool'; -const securityAnswers: string[] = [ +/*const securityAnswers: string[] = [ "Fluffy", // Answer to: "What was the name of your first pet?" "Maple Street", // Answer to: "What street did you grow up on?" "Blue", // Answer to: "What is your favorite color?" @@ -16,40 +16,24 @@ const securityAnswers: string[] = [ "Hawaii", // Answer to: "Where did you go on your honeymoon?" "Superman", // Answer to: "Who is your childhood hero?" "Beethoven", // Answer to: "What is your favorite composer or musician?" -]; - - -export async function calculatePassword(inputValue: string) : Promise{ - //if (!inputValue) return; - - const enc_name = "Name"; - const enc_email = "name@gmail.com" - const enc_phone = "5555555555" - const site_domain = "amazon.com" - - const hashed_name = await hashText(enc_name); - const hashed_email = await hashText(enc_email); - const hashed_phone = await hashText(enc_phone); - const hashed_domain = await hashText(site_domain); - - const salt_indicies = await CalculateSalts(inputValue); // For now input value will go into calculating salt indicies for testing. Will change to an internal db value - - /*const salt1 = await hashText(securityAnswers[salt_indicies[0]]) - const salt2 = await hashText(securityAnswers[salt_indicies[1]]) - const salt3 = await hashText(securityAnswers[salt_indicies[2]])*/ - const salt1 = securityAnswers[salt_indicies[0]]; - const salt2 = securityAnswers[salt_indicies[1]]; - const salt3 = securityAnswers[salt_indicies[2]]; - - console.log(salt_indicies) - - const arranged_string = hashed_name+salt2+hashed_phone+salt1+hashed_domain+salt3+hashed_email; - const fullHash = await hashText(arranged_string) - const extractedHash = extractHash(fullHash); - console.log(fullHash) - console.log(extractedHash) - - return extractedHash; +];*/ + + +export const calculatePassword = async (salt: string): Promise => { + try { + const response = await fetch('https://a5yz9onkp8.execute-api.us-east-1.amazonaws.com/default/gen_password', { + method: 'POST', + headers: { 'Content-Type': 'application/json' }, + body: JSON.stringify({ + salt: salt, + }), + }); + const data = await response.json(); + return data.hash || ''; + } catch (error) { + console.error('Hash error:', error); + return ''; // Return empty string in case of an error. + } } diff --git a/extension/src/hashpass/app/site_login_popup/site_login_component.tsx b/extension/src/hashpass/app/site_login_popup/site_login_component.tsx index 807d4b1..f6326ff 100644 --- a/extension/src/hashpass/app/site_login_popup/site_login_component.tsx +++ b/extension/src/hashpass/app/site_login_popup/site_login_component.tsx @@ -5,8 +5,8 @@ import { decrypt } from "../security_components/tools/AES_tool" import {calculatePassword} from '../security_components/components/password_generator'; export default function Site_LogIn() { - const userId = "testuserid2" // This value will be the user's id in plaintext (retrieved from DB) - const userIdEncrypted = "HCxyVsfCvxXKyw/rMRpuTJv99PHUrIZhJHICv4zgkMTHXBtgHJi2" // This value will be the user's id in ciphertext (retrieved from DB) + const userId = "testuserid" // This value will be the user's id in plaintext (retrieved from DB) + const userIdEncrypted = "8gb2BSJbvxtRs53WGHs6jBoVBztcA03gIFv8t8Bm/CLt6fGKkEY=" // This value will be the user's id in ciphertext (retrieved from DB) //valid simple pass for testing is testkey const [keyString, setKeyString] = useState(""); @@ -20,6 +20,7 @@ export default function Site_LogIn() { const decryptedText = await decrypt(userIdEncrypted, keyString); console.log("Decrypted Data: " + decryptedText); + if(decryptedText === userId){ console.log("Valid Simple passphrase: User Authenticated") const password = await calculatePassword(keyString); diff --git a/extension/src/hashpass/app/site_signup_popup/site_signup_component.tsx b/extension/src/hashpass/app/site_signup_popup/site_signup_component.tsx index 3558dd1..85d7b3b 100644 --- a/extension/src/hashpass/app/site_signup_popup/site_signup_component.tsx +++ b/extension/src/hashpass/app/site_signup_popup/site_signup_component.tsx @@ -6,7 +6,7 @@ import { parse } from "tldts"; export default function Site_SignUp() { const UUID = "f98699a0-d010-4a68-833e-fc9cbbcdf800" - const userIdEncrypted = "DSvanR4myji5VmzC06OutTH+nsVUbcOc0pqP7iLPgePsrNj5obsMXkZd+yI9m6MRzf/Xeq921dzq73rvTi/zEQ==" + const userIdEncrypted = "W3CeGzefGlIYyBS5RjiZnFmBI0RdTc8EJDQmwLM1LyUw3zTfGa6botvDVJvE2JlMM5/P8FZOjPRPC7TXJ/B02A==" // valid simple pass for testing is Passpass@1 const [keyString, setKeyString] = useState(""); diff --git a/extension/src/hashpass/public/dist/components.bundle.js b/extension/src/hashpass/public/dist/components.bundle.js index fcc728d..280f7fd 100644 --- a/extension/src/hashpass/public/dist/components.bundle.js +++ b/extension/src/hashpass/public/dist/components.bundle.js @@ -7,30 +7,30 @@ var Components = (() => { var __getOwnPropNames = Object.getOwnPropertyNames; var __getProtoOf = Object.getPrototypeOf; var __hasOwnProp = Object.prototype.hasOwnProperty; - var __commonJS = (cb, mod3) => function __require() { - return mod3 || (0, cb[__getOwnPropNames(cb)[0]])((mod3 = { exports: {} }).exports, mod3), mod3.exports; + var __commonJS = (cb, mod) => function __require() { + return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports; }; var __export = (target, all) => { - for (var name315 in all) - __defProp(target, name315, { get: all[name315], enumerable: true }); + for (var name in all) + __defProp(target, name, { get: all[name], enumerable: true }); }; - var __copyProps = (to2, from, except, desc) => { + var __copyProps = (to, from, except, desc) => { if (from && typeof from === "object" || typeof from === "function") { for (let key of __getOwnPropNames(from)) - if (!__hasOwnProp.call(to2, key) && key !== except) - __defProp(to2, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); + if (!__hasOwnProp.call(to, key) && key !== except) + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); } - return to2; + return to; }; - var __toESM = (mod3, isNodeMode, target) => (target = mod3 != null ? __create(__getProtoOf(mod3)) : {}, __copyProps( + var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps( // If the importer is in node compatibility mode or this is not an ESM // file that has been converted to a CommonJS file using a Babel- // compatible transform (i.e. "__esModule" has not been set), then set // "default" to the CommonJS "module.exports" for node compatibility. - isNodeMode || !mod3 || !mod3.__esModule ? __defProp(target, "default", { value: mod3, enumerable: true }) : target, - mod3 + isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target, + mod )); - var __toCommonJS = (mod3) => __copyProps(__defProp({}, "__esModule", { value: true }), mod3); + var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); // node_modules/react/cjs/react.development.js var require_react_development = __commonJS({ @@ -84,7 +84,7 @@ var Components = (() => { try { testStringCoercion(value); var JSCompiler_inline_result = false; - } catch (e3) { + } catch (e) { JSCompiler_inline_result = true; } if (JSCompiler_inline_result) { @@ -180,20 +180,20 @@ var Components = (() => { if (0 === disabledDepth) { var props = { configurable: true, enumerable: true, writable: true }; Object.defineProperties(console, { - log: assign2({}, props, { value: prevLog }), - info: assign2({}, props, { value: prevInfo }), - warn: assign2({}, props, { value: prevWarn }), - error: assign2({}, props, { value: prevError }), - group: assign2({}, props, { value: prevGroup }), - groupCollapsed: assign2({}, props, { value: prevGroupCollapsed }), - groupEnd: assign2({}, props, { value: prevGroupEnd }) + log: assign({}, props, { value: prevLog }), + info: assign({}, props, { value: prevInfo }), + warn: assign({}, props, { value: prevWarn }), + error: assign({}, props, { value: prevError }), + group: assign({}, props, { value: prevGroup }), + groupCollapsed: assign({}, props, { value: prevGroupCollapsed }), + groupEnd: assign({}, props, { value: prevGroupEnd }) }); } 0 > disabledDepth && console.error( "disabledDepth fell below zero. This is a bug in React. Please file an issue." ); } - function describeBuiltInComponentFrame(name315) { + function describeBuiltInComponentFrame(name) { if (void 0 === prefix) try { throw Error(); @@ -202,7 +202,7 @@ var Components = (() => { prefix = match && match[1] || ""; suffix = -1 < x.stack.indexOf("\n at") ? " ()" : -1 < x.stack.indexOf("@") ? "@unknown:0:0" : ""; } - return "\n" + prefix + name315 + suffix; + return "\n" + prefix + name + suffix; } function describeNativeComponentFrame(fn, construct) { if (!fn || reentry) return ""; @@ -344,12 +344,12 @@ var Components = (() => { var dispatcher = ReactSharedInternals.A; return null === dispatcher ? null : dispatcher.getOwner(); } - function hasValidKey(config4) { - if (hasOwnProperty2.call(config4, "key")) { - var getter = Object.getOwnPropertyDescriptor(config4, "key").get; + function hasValidKey(config) { + if (hasOwnProperty.call(config, "key")) { + var getter = Object.getOwnPropertyDescriptor(config, "key").get; if (getter && getter.isReactWarning) return false; } - return void 0 !== config4.key; + return void 0 !== config.key; } function defineKeyPropWarningGetter(props, displayName) { function warnAboutAccessingKey() { @@ -372,8 +372,8 @@ var Components = (() => { componentName = this.props.ref; return void 0 !== componentName ? componentName : null; } - function ReactElement(type, key, self2, source, owner, props) { - self2 = props.ref; + function ReactElement(type, key, self, source, owner, props) { + self = props.ref; type = { $$typeof: REACT_ELEMENT_TYPE, type, @@ -381,7 +381,7 @@ var Components = (() => { props, _owner: owner }; - null !== (void 0 !== self2 ? self2 : null) ? Object.defineProperty(type, "ref", { + null !== (void 0 !== self ? self : null) ? Object.defineProperty(type, "ref", { enumerable: false, get: elementRefGetterWithDeprecationWarning }) : Object.defineProperty(type, "ref", { enumerable: false, value: null }); @@ -416,14 +416,14 @@ var Components = (() => { function validateChildKeys(node, parentType) { if ("object" === typeof node && node && node.$$typeof !== REACT_CLIENT_REFERENCE) { if (isArrayImpl(node)) - for (var i2 = 0; i2 < node.length; i2++) { - var child = node[i2]; + for (var i = 0; i < node.length; i++) { + var child = node[i]; isValidElement(child) && validateExplicitKey(child, parentType); } else if (isValidElement(node)) node._store && (node._store.validated = 1); - else if (i2 = getIteratorFn(node), "function" === typeof i2 && i2 !== node.entries && (i2 = i2.call(node), i2 !== node)) - for (; !(node = i2.next()).done; ) + else if (i = getIteratorFn(node), "function" === typeof i && i !== node.entries && (i = i.call(node), i !== node)) + for (; !(node = i.next()).done; ) isValidElement(node.value) && validateExplicitKey(node.value, parentType); } } @@ -455,14 +455,14 @@ var Components = (() => { info || (parentType = getComponentNameFromType(parentType)) && (info = "\n\nCheck the top-level render call using <" + parentType + ">."); return info; } - function escape2(key) { + function escape(key) { var escaperLookup = { "=": "=0", ":": "=2" }; return "$" + key.replace(/[=:]/g, function(match) { return escaperLookup[match]; }); } - function getElementKey(element, index2) { - return "object" === typeof element && null !== element && null != element.key ? (checkKeyStringCoercion(element.key), escape2("" + element.key)) : index2.toString(36); + function getElementKey(element, index) { + return "object" === typeof element && null !== element && null != element.key ? (checkKeyStringCoercion(element.key), escape("" + element.key)) : index.toString(36); } function noop$1() { } @@ -535,19 +535,19 @@ var Components = (() => { invokeCallback = 0; childKey = "" === nameSoFar ? "." : nameSoFar + ":"; if (isArrayImpl(children)) - for (var i2 = 0; i2 < children.length; i2++) - nameSoFar = children[i2], type = childKey + getElementKey(nameSoFar, i2), invokeCallback += mapIntoArray( + for (var i = 0; i < children.length; i++) + nameSoFar = children[i], type = childKey + getElementKey(nameSoFar, i), invokeCallback += mapIntoArray( nameSoFar, array, escapedPrefix, type, callback ); - else if (i2 = getIteratorFn(children), "function" === typeof i2) - for (i2 === children.entries && (didWarnAboutMaps || console.warn( + else if (i = getIteratorFn(children), "function" === typeof i) + for (i === children.entries && (didWarnAboutMaps || console.warn( "Using Maps as children is not supported. Use an array of keyed ReactElements instead." - ), didWarnAboutMaps = true), children = i2.call(children), i2 = 0; !(nameSoFar = children.next()).done; ) - nameSoFar = nameSoFar.value, type = childKey + getElementKey(nameSoFar, i2++), invokeCallback += mapIntoArray( + ), didWarnAboutMaps = true), children = i.call(children), i = 0; !(nameSoFar = children.next()).done; ) + nameSoFar = nameSoFar.value, type = childKey + getElementKey(nameSoFar, i++), invokeCallback += mapIntoArray( nameSoFar, array, escapedPrefix, @@ -572,9 +572,9 @@ var Components = (() => { } function mapChildren(children, func, context) { if (null == children) return children; - var result = [], count2 = 0; + var result = [], count = 0; mapIntoArray(children, result, "", "", function(child) { - return func.call(context, child, count2++); + return func.call(context, child, count++); }); return result; } @@ -642,36 +642,36 @@ var Components = (() => { ); actScopeDepth = prevActScopeDepth; } - function recursivelyFlushAsyncActWork(returnValue, resolve2, reject) { + function recursivelyFlushAsyncActWork(returnValue, resolve, reject) { var queue = ReactSharedInternals.actQueue; if (null !== queue) if (0 !== queue.length) try { flushActQueue(queue); enqueueTask(function() { - return recursivelyFlushAsyncActWork(returnValue, resolve2, reject); + return recursivelyFlushAsyncActWork(returnValue, resolve, reject); }); return; } catch (error) { ReactSharedInternals.thrownErrors.push(error); } else ReactSharedInternals.actQueue = null; - 0 < ReactSharedInternals.thrownErrors.length ? (queue = aggregateErrors(ReactSharedInternals.thrownErrors), ReactSharedInternals.thrownErrors.length = 0, reject(queue)) : resolve2(returnValue); + 0 < ReactSharedInternals.thrownErrors.length ? (queue = aggregateErrors(ReactSharedInternals.thrownErrors), ReactSharedInternals.thrownErrors.length = 0, reject(queue)) : resolve(returnValue); } function flushActQueue(queue) { if (!isFlushing) { isFlushing = true; - var i2 = 0; + var i = 0; try { - for (; i2 < queue.length; i2++) { - var callback = queue[i2]; + for (; i < queue.length; i++) { + var callback = queue[i]; do { ReactSharedInternals.didUsePromise = false; var continuation = callback(false); if (null !== continuation) { if (ReactSharedInternals.didUsePromise) { - queue[i2] = callback; - queue.splice(0, i2); + queue[i] = callback; + queue.splice(0, i); return; } callback = continuation; @@ -680,7 +680,7 @@ var Components = (() => { } queue.length = 0; } catch (error) { - queue.splice(0, i2 + 1), ReactSharedInternals.thrownErrors.push(error); + queue.splice(0, i + 1), ReactSharedInternals.thrownErrors.push(error); } finally { isFlushing = false; } @@ -702,7 +702,7 @@ var Components = (() => { enqueueSetState: function(publicInstance) { warnNoop(publicInstance, "setState"); } - }, assign2 = Object.assign, emptyObject = {}; + }, assign = Object.assign, emptyObject = {}; Object.freeze(emptyObject); Component.prototype.isReactComponent = {}; Component.prototype.setState = function(partialState, callback) { @@ -730,7 +730,7 @@ var Components = (() => { ComponentDummy.prototype = Component.prototype; deprecatedAPIs = PureComponent.prototype = new ComponentDummy(); deprecatedAPIs.constructor = PureComponent; - assign2(deprecatedAPIs, Component.prototype); + assign(deprecatedAPIs, Component.prototype); deprecatedAPIs.isPureReactComponent = true; var isArrayImpl = Array.isArray, REACT_CLIENT_REFERENCE$2 = Symbol.for("react.client.reference"), ReactSharedInternals = { H: null, @@ -743,7 +743,7 @@ var Components = (() => { didUsePromise: false, thrownErrors: [], getCurrentStack: null - }, hasOwnProperty2 = Object.prototype.hasOwnProperty, REACT_CLIENT_REFERENCE$1 = Symbol.for("react.client.reference"), disabledDepth = 0, prevLog, prevInfo, prevWarn, prevError, prevGroup, prevGroupCollapsed, prevGroupEnd; + }, hasOwnProperty = Object.prototype.hasOwnProperty, REACT_CLIENT_REFERENCE$1 = Symbol.for("react.client.reference"), disabledDepth = 0, prevLog, prevInfo, prevWarn, prevError, prevGroup, prevGroupCollapsed, prevGroupEnd; disabledLog.__reactDisabledLog = true; var prefix, suffix, reentry = false; var componentFrameCache = new ("function" === typeof WeakMap ? WeakMap : Map)(); @@ -825,7 +825,7 @@ var Components = (() => { )); }); return { - then: function(resolve2, reject) { + then: function(resolve, reject) { didAwaitActCall = true; thenable.then( function(returnValue) { @@ -835,7 +835,7 @@ var Components = (() => { flushActQueue(queue), enqueueTask(function() { return recursivelyFlushAsyncActWork( returnValue, - resolve2, + resolve, reject ); }); @@ -849,7 +849,7 @@ var Components = (() => { ReactSharedInternals.thrownErrors.length = 0; reject(_thrownError); } - } else resolve2(returnValue); + } else resolve(returnValue); }, function(error) { popActScope(prevActQueue, prevActScopeDepth); @@ -871,15 +871,15 @@ var Components = (() => { if (0 < ReactSharedInternals.thrownErrors.length) throw callback = aggregateErrors(ReactSharedInternals.thrownErrors), ReactSharedInternals.thrownErrors.length = 0, callback; return { - then: function(resolve2, reject) { + then: function(resolve, reject) { didAwaitActCall = true; 0 === prevActScopeDepth ? (ReactSharedInternals.actQueue = queue, enqueueTask(function() { return recursivelyFlushAsyncActWork( returnValue$jscomp$0, - resolve2, + resolve, reject ); - })) : resolve2(returnValue$jscomp$0); + })) : resolve(returnValue$jscomp$0); } }; }; @@ -888,35 +888,35 @@ var Components = (() => { return fn.apply(null, arguments); }; }; - exports.cloneElement = function(element, config4, children) { + exports.cloneElement = function(element, config, children) { if (null === element || void 0 === element) throw Error( "The argument must be a React element, but you passed " + element + "." ); - var props = assign2({}, element.props), key = element.key, owner = element._owner; - if (null != config4) { + var props = assign({}, element.props), key = element.key, owner = element._owner; + if (null != config) { var JSCompiler_inline_result; a: { - if (hasOwnProperty2.call(config4, "ref") && (JSCompiler_inline_result = Object.getOwnPropertyDescriptor( - config4, + if (hasOwnProperty.call(config, "ref") && (JSCompiler_inline_result = Object.getOwnPropertyDescriptor( + config, "ref" ).get) && JSCompiler_inline_result.isReactWarning) { JSCompiler_inline_result = false; break a; } - JSCompiler_inline_result = void 0 !== config4.ref; + JSCompiler_inline_result = void 0 !== config.ref; } JSCompiler_inline_result && (owner = getOwner()); - hasValidKey(config4) && (checkKeyStringCoercion(config4.key), key = "" + config4.key); - for (propName in config4) - !hasOwnProperty2.call(config4, propName) || "key" === propName || "__self" === propName || "__source" === propName || "ref" === propName && void 0 === config4.ref || (props[propName] = config4[propName]); + hasValidKey(config) && (checkKeyStringCoercion(config.key), key = "" + config.key); + for (propName in config) + !hasOwnProperty.call(config, propName) || "key" === propName || "__self" === propName || "__source" === propName || "ref" === propName && void 0 === config.ref || (props[propName] = config[propName]); } var propName = arguments.length - 2; if (1 === propName) props.children = children; else if (1 < propName) { JSCompiler_inline_result = Array(propName); - for (var i2 = 0; i2 < propName; i2++) - JSCompiler_inline_result[i2] = arguments[i2 + 2]; + for (var i = 0; i < propName; i++) + JSCompiler_inline_result[i] = arguments[i + 2]; props.children = JSCompiler_inline_result; } props = ReactElement(element.type, key, void 0, void 0, owner, props); @@ -942,47 +942,47 @@ var Components = (() => { defaultValue._currentRenderer2 = null; return defaultValue; }; - exports.createElement = function(type, config4, children) { + exports.createElement = function(type, config, children) { if (isValidElementType(type)) - for (var i2 = 2; i2 < arguments.length; i2++) - validateChildKeys(arguments[i2], type); + for (var i = 2; i < arguments.length; i++) + validateChildKeys(arguments[i], type); else { - i2 = ""; + i = ""; if (void 0 === type || "object" === typeof type && null !== type && 0 === Object.keys(type).length) - i2 += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports."; + i += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports."; if (null === type) var typeString = "null"; else - isArrayImpl(type) ? typeString = "array" : void 0 !== type && type.$$typeof === REACT_ELEMENT_TYPE ? (typeString = "<" + (getComponentNameFromType(type.type) || "Unknown") + " />", i2 = " Did you accidentally export a JSX literal instead of a component?") : typeString = typeof type; + isArrayImpl(type) ? typeString = "array" : void 0 !== type && type.$$typeof === REACT_ELEMENT_TYPE ? (typeString = "<" + (getComponentNameFromType(type.type) || "Unknown") + " />", i = " Did you accidentally export a JSX literal instead of a component?") : typeString = typeof type; console.error( "React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", typeString, - i2 + i ); } var propName; - i2 = {}; + i = {}; typeString = null; - if (null != config4) - for (propName in didWarnAboutOldJSXRuntime || !("__self" in config4) || "key" in config4 || (didWarnAboutOldJSXRuntime = true, console.warn( + if (null != config) + for (propName in didWarnAboutOldJSXRuntime || !("__self" in config) || "key" in config || (didWarnAboutOldJSXRuntime = true, console.warn( "Your app (or one of its dependencies) is using an outdated JSX transform. Update to the modern JSX transform for faster performance: https://react.dev/link/new-jsx-transform" - )), hasValidKey(config4) && (checkKeyStringCoercion(config4.key), typeString = "" + config4.key), config4) - hasOwnProperty2.call(config4, propName) && "key" !== propName && "__self" !== propName && "__source" !== propName && (i2[propName] = config4[propName]); + )), hasValidKey(config) && (checkKeyStringCoercion(config.key), typeString = "" + config.key), config) + hasOwnProperty.call(config, propName) && "key" !== propName && "__self" !== propName && "__source" !== propName && (i[propName] = config[propName]); var childrenLength = arguments.length - 2; - if (1 === childrenLength) i2.children = children; + if (1 === childrenLength) i.children = children; else if (1 < childrenLength) { for (var childArray = Array(childrenLength), _i = 0; _i < childrenLength; _i++) childArray[_i] = arguments[_i + 2]; Object.freeze && Object.freeze(childArray); - i2.children = childArray; + i.children = childArray; } if (type && type.defaultProps) for (propName in childrenLength = type.defaultProps, childrenLength) - void 0 === i2[propName] && (i2[propName] = childrenLength[propName]); + void 0 === i[propName] && (i[propName] = childrenLength[propName]); typeString && defineKeyPropWarningGetter( - i2, + i, "function" === typeof type ? type.displayName || type.name || "Unknown" : type ); - return ReactElement(type, typeString, void 0, void 0, getOwner(), i2); + return ReactElement(type, typeString, void 0, void 0, getOwner(), i); }; exports.createRef = function() { var refObject = { current: null }; @@ -1009,9 +1009,9 @@ var Components = (() => { get: function() { return ownName; }, - set: function(name315) { - ownName = name315; - render.name || render.displayName || (Object.defineProperty(render, "name", { value: name315 }), render.displayName = name315); + set: function(name) { + ownName = name; + render.name || render.displayName || (Object.defineProperty(render, "name", { value: name }), render.displayName = name); } }); return elementType; @@ -1024,29 +1024,29 @@ var Components = (() => { _init: lazyInitializer }; }; - exports.memo = function(type, compare2) { + exports.memo = function(type, compare) { isValidElementType(type) || console.error( "memo: The first argument must be a component. Instead received: %s", null === type ? "null" : typeof type ); - compare2 = { + compare = { $$typeof: REACT_MEMO_TYPE, type, - compare: void 0 === compare2 ? null : compare2 + compare: void 0 === compare ? null : compare }; var ownName; - Object.defineProperty(compare2, "displayName", { + Object.defineProperty(compare, "displayName", { enumerable: false, configurable: true, get: function() { return ownName; }, - set: function(name315) { - ownName = name315; - type.name || type.displayName || (Object.defineProperty(type, "name", { value: name315 }), type.displayName = name315); + set: function(name) { + ownName = name; + type.name || type.displayName || (Object.defineProperty(type, "name", { value: name }), type.displayName = name); } }); - return compare2; + return compare; }; exports.startTransition = function(scope) { var prevTransition = ReactSharedInternals.T, currentTransition = {}; @@ -1212,12 +1212,12 @@ var Components = (() => { } } function push(heap, node) { - var index2 = heap.length; + var index = heap.length; heap.push(node); - a: for (; 0 < index2; ) { - var parentIndex = index2 - 1 >>> 1, parent = heap[parentIndex]; - if (0 < compare2(parent, node)) - heap[parentIndex] = node, heap[index2] = parent, index2 = parentIndex; + a: for (; 0 < index; ) { + var parentIndex = index - 1 >>> 1, parent = heap[parentIndex]; + if (0 < compare(parent, node)) + heap[parentIndex] = node, heap[index] = parent, index = parentIndex; else break a; } } @@ -1229,20 +1229,20 @@ var Components = (() => { var first = heap[0], last = heap.pop(); if (last !== first) { heap[0] = last; - a: for (var index2 = 0, length = heap.length, halfLength = length >>> 1; index2 < halfLength; ) { - var leftIndex = 2 * (index2 + 1) - 1, left = heap[leftIndex], rightIndex = leftIndex + 1, right = heap[rightIndex]; - if (0 > compare2(left, last)) - rightIndex < length && 0 > compare2(right, left) ? (heap[index2] = right, heap[rightIndex] = last, index2 = rightIndex) : (heap[index2] = left, heap[leftIndex] = last, index2 = leftIndex); - else if (rightIndex < length && 0 > compare2(right, last)) - heap[index2] = right, heap[rightIndex] = last, index2 = rightIndex; + a: for (var index = 0, length = heap.length, halfLength = length >>> 1; index < halfLength; ) { + var leftIndex = 2 * (index + 1) - 1, left = heap[leftIndex], rightIndex = leftIndex + 1, right = heap[rightIndex]; + if (0 > compare(left, last)) + rightIndex < length && 0 > compare(right, left) ? (heap[index] = right, heap[rightIndex] = last, index = rightIndex) : (heap[index] = left, heap[leftIndex] = last, index = leftIndex); + else if (rightIndex < length && 0 > compare(right, last)) + heap[index] = right, heap[rightIndex] = last, index = rightIndex; else break a; } } return first; } - function compare2(a, b) { - var diff2 = a.sortIndex - b.sortIndex; - return 0 !== diff2 ? diff2 : a.id - b.id; + function compare(a, b) { + var diff = a.sortIndex - b.sortIndex; + return 0 !== diff ? diff : a.id - b.id; } function advanceTimers(currentTime) { for (var timer = peek(timerQueue); null !== timer; ) { @@ -1446,7 +1446,7 @@ var Components = (() => { try { testStringCoercion(key); var JSCompiler_inline_result = false; - } catch (e3) { + } catch (e) { JSCompiler_inline_result = true; } JSCompiler_inline_result && (console.error( @@ -1698,18 +1698,18 @@ var Components = (() => { fiber = fiber.next, id--; return fiber; } - function copyWithSetImpl(obj, path, index2, value) { - if (index2 >= path.length) return value; - var key = path[index2], updated = isArrayImpl(obj) ? obj.slice() : assign2({}, obj); - updated[key] = copyWithSetImpl(obj[key], path, index2 + 1, value); + function copyWithSetImpl(obj, path, index, value) { + if (index >= path.length) return value; + var key = path[index], updated = isArrayImpl(obj) ? obj.slice() : assign({}, obj); + updated[key] = copyWithSetImpl(obj[key], path, index + 1, value); return updated; } function copyWithRename(obj, oldPath, newPath) { if (oldPath.length !== newPath.length) console.warn("copyWithRename() expects paths of the same length"); else { - for (var i2 = 0; i2 < newPath.length - 1; i2++) - if (oldPath[i2] !== newPath[i2]) { + for (var i = 0; i < newPath.length - 1; i++) + if (oldPath[i] !== newPath[i]) { console.warn( "copyWithRename() expects paths to be the same except for the deepest key" ); @@ -1718,21 +1718,21 @@ var Components = (() => { return copyWithRenameImpl(obj, oldPath, newPath, 0); } } - function copyWithRenameImpl(obj, oldPath, newPath, index2) { - var oldKey = oldPath[index2], updated = isArrayImpl(obj) ? obj.slice() : assign2({}, obj); - index2 + 1 === oldPath.length ? (updated[newPath[index2]] = updated[oldKey], isArrayImpl(updated) ? updated.splice(oldKey, 1) : delete updated[oldKey]) : updated[oldKey] = copyWithRenameImpl( + function copyWithRenameImpl(obj, oldPath, newPath, index) { + var oldKey = oldPath[index], updated = isArrayImpl(obj) ? obj.slice() : assign({}, obj); + index + 1 === oldPath.length ? (updated[newPath[index]] = updated[oldKey], isArrayImpl(updated) ? updated.splice(oldKey, 1) : delete updated[oldKey]) : updated[oldKey] = copyWithRenameImpl( obj[oldKey], oldPath, newPath, - index2 + 1 + index + 1 ); return updated; } - function copyWithDeleteImpl(obj, path, index2) { - var key = path[index2], updated = isArrayImpl(obj) ? obj.slice() : assign2({}, obj); - if (index2 + 1 === path.length) + function copyWithDeleteImpl(obj, path, index) { + var key = path[index], updated = isArrayImpl(obj) ? obj.slice() : assign({}, obj); + if (index + 1 === path.length) return isArrayImpl(updated) ? updated.splice(key, 1) : delete updated[key], updated; - updated[key] = copyWithDeleteImpl(obj[key], path, index2 + 1); + updated[key] = copyWithDeleteImpl(obj[key], path, index + 1); return updated; } function shouldSuspendImpl() { @@ -1741,8 +1741,8 @@ var Components = (() => { function shouldErrorImpl() { return null; } - function createFiber(tag2, pendingProps, key, mode2) { - return new FiberNode(tag2, pendingProps, key, mode2); + function createFiber(tag, pendingProps, key, mode) { + return new FiberNode(tag, pendingProps, key, mode); } function warnInvalidHookAccess() { console.error( @@ -1892,8 +1892,8 @@ var Components = (() => { case 29: type = fiber._debugInfo; if (null != type) { - for (var i2 = type.length - 1; 0 <= i2; i2--) - if ("string" === typeof type[i2].name) return type[i2].name; + for (var i = type.length - 1; 0 <= i; i--) + if ("string" === typeof type[i].name) return type[i].name; } if (null !== fiber.return) return getComponentNameFromFiber(fiber.return); @@ -1934,20 +1934,20 @@ var Components = (() => { if (0 === disabledDepth) { var props = { configurable: true, enumerable: true, writable: true }; Object.defineProperties(console, { - log: assign2({}, props, { value: prevLog }), - info: assign2({}, props, { value: prevInfo }), - warn: assign2({}, props, { value: prevWarn }), - error: assign2({}, props, { value: prevError }), - group: assign2({}, props, { value: prevGroup }), - groupCollapsed: assign2({}, props, { value: prevGroupCollapsed }), - groupEnd: assign2({}, props, { value: prevGroupEnd }) + log: assign({}, props, { value: prevLog }), + info: assign({}, props, { value: prevInfo }), + warn: assign({}, props, { value: prevWarn }), + error: assign({}, props, { value: prevError }), + group: assign({}, props, { value: prevGroup }), + groupCollapsed: assign({}, props, { value: prevGroupCollapsed }), + groupEnd: assign({}, props, { value: prevGroupEnd }) }); } 0 > disabledDepth && console.error( "disabledDepth fell below zero. This is a bug in React. Please file an issue." ); } - function describeBuiltInComponentFrame(name315) { + function describeBuiltInComponentFrame(name) { if (void 0 === prefix) try { throw Error(); @@ -1956,7 +1956,7 @@ var Components = (() => { prefix = match && match[1] || ""; suffix = -1 < x.stack.indexOf("\n at") ? " ()" : -1 < x.stack.indexOf("@") ? "@unknown:0:0" : ""; } - return "\n" + prefix + name315 + suffix; + return "\n" + prefix + name + suffix; } function describeNativeComponentFrame(fn, construct) { if (!fn || reentry) return ""; @@ -2092,8 +2092,8 @@ var Components = (() => { info += describeFiber(workInProgress2); var debugInfo = workInProgress2._debugInfo; if (debugInfo) - for (var i2 = debugInfo.length - 1; 0 <= i2; i2--) { - var entry = debugInfo[i2]; + for (var i = debugInfo.length - 1; 0 <= i; i--) { + var entry = debugInfo[i]; if ("string" === typeof entry.name) { var JSCompiler_temp_const = info, env = entry.env; var JSCompiler_inline_result = describeBuiltInComponentFrame( @@ -2231,11 +2231,11 @@ var Components = (() => { return a.stateNode.current === a ? fiber : alternate; } function findCurrentHostFiberImpl(node) { - var tag2 = node.tag; - if (5 === tag2 || 26 === tag2 || 27 === tag2 || 6 === tag2) return node; + var tag = node.tag; + if (5 === tag || 26 === tag || 27 === tag || 6 === tag) return node; for (node = node.child; null !== node; ) { - tag2 = findCurrentHostFiberImpl(node); - if (null !== tag2) return tag2; + tag = findCurrentHostFiberImpl(node); + if (null !== tag) return tag; node = node.sibling; } return null; @@ -2323,7 +2323,7 @@ var Components = (() => { function willCoercionThrow(value) { try { return testStringCoercion(value), false; - } catch (e3) { + } catch (e) { return true; } } @@ -2436,7 +2436,7 @@ var Components = (() => { } function clz32Fallback(x) { x >>>= 0; - return 0 === x ? 32 : 31 - (log4(x) / LN22 | 0) | 0; + return 0 === x ? 32 : 31 - (log(x) / LN2 | 0) | 0; } function getLabelForLane(lane) { if (lane & 1) return "SyncHydrationLane"; @@ -2577,7 +2577,7 @@ var Components = (() => { return lane; } function createLaneMap(initial) { - for (var laneMap = [], i2 = 0; 31 > i2; i2++) laneMap.push(initial); + for (var laneMap = [], i = 0; 31 > i; i++) laneMap.push(initial); return laneMap; } function markRootUpdated$1(root2, updateLane) { @@ -2596,13 +2596,13 @@ var Components = (() => { root2.shellSuspendCounter = 0; var entanglements = root2.entanglements, expirationTimes = root2.expirationTimes, hiddenUpdates = root2.hiddenUpdates; for (remainingLanes = previouslyPendingLanes & ~remainingLanes; 0 < remainingLanes; ) { - var index2 = 31 - clz32(remainingLanes), lane = 1 << index2; - entanglements[index2] = 0; - expirationTimes[index2] = -1; - var hiddenUpdatesForLane = hiddenUpdates[index2]; + var index = 31 - clz32(remainingLanes), lane = 1 << index; + entanglements[index] = 0; + expirationTimes[index] = -1; + var hiddenUpdatesForLane = hiddenUpdates[index]; if (null !== hiddenUpdatesForLane) - for (hiddenUpdates[index2] = null, index2 = 0; index2 < hiddenUpdatesForLane.length; index2++) { - var update = hiddenUpdatesForLane[index2]; + for (hiddenUpdates[index] = null, index = 0; index < hiddenUpdatesForLane.length; index++) { + var update = hiddenUpdatesForLane[index]; null !== update && (update.lane &= -536870913); } remainingLanes &= ~lane; @@ -2620,29 +2620,29 @@ var Components = (() => { function markRootEntangled(root2, entangledLanes) { var rootEntangledLanes = root2.entangledLanes |= entangledLanes; for (root2 = root2.entanglements; rootEntangledLanes; ) { - var index2 = 31 - clz32(rootEntangledLanes), lane = 1 << index2; - lane & entangledLanes | root2[index2] & entangledLanes && (root2[index2] |= entangledLanes); + var index = 31 - clz32(rootEntangledLanes), lane = 1 << index; + lane & entangledLanes | root2[index] & entangledLanes && (root2[index] |= entangledLanes); rootEntangledLanes &= ~lane; } } function addFiberToLanesMap(root2, fiber, lanes) { if (isDevToolsPresent) for (root2 = root2.pendingUpdatersLaneMap; 0 < lanes; ) { - var index2 = 31 - clz32(lanes), lane = 1 << index2; - root2[index2].add(fiber); + var index = 31 - clz32(lanes), lane = 1 << index; + root2[index].add(fiber); lanes &= ~lane; } } function movePendingFibersToMemoized(root2, lanes) { if (isDevToolsPresent) for (var pendingUpdatersLaneMap = root2.pendingUpdatersLaneMap, memoizedUpdaters = root2.memoizedUpdaters; 0 < lanes; ) { - var index2 = 31 - clz32(lanes); - root2 = 1 << index2; - index2 = pendingUpdatersLaneMap[index2]; - 0 < index2.size && (index2.forEach(function(fiber) { + var index = 31 - clz32(lanes); + root2 = 1 << index; + index = pendingUpdatersLaneMap[index]; + 0 < index.size && (index.forEach(function(fiber) { var alternate = fiber.alternate; null !== alternate && memoizedUpdaters.has(alternate) || memoizedUpdaters.add(fiber); - }), index2.clear()); + }), index.clear()); lanes &= ~root2; } } @@ -2692,15 +2692,15 @@ var Components = (() => { } function getInstanceFromNode(node) { if (node = node[internalInstanceKey] || node[internalContainerInstanceKey]) { - var tag2 = node.tag; - if (5 === tag2 || 6 === tag2 || 13 === tag2 || 26 === tag2 || 27 === tag2 || 3 === tag2) + var tag = node.tag; + if (5 === tag || 6 === tag || 13 === tag || 26 === tag || 27 === tag || 3 === tag) return node; } return null; } function getNodeFromInstance(inst) { - var tag2 = inst.tag; - if (5 === tag2 || 26 === tag2 || 27 === tag2 || 6 === tag2) + var tag = inst.tag; + if (5 === tag || 26 === tag || 27 === tag || 6 === tag) return inst.stateNode; throw Error("getNodeFromInstance: Invalid argument."); } @@ -2712,21 +2712,21 @@ var Components = (() => { function markNodeAsHoistable(node) { node[internalHoistableMarker] = true; } - function registerTwoPhaseEvent(registrationName, dependencies316) { - registerDirectEvent(registrationName, dependencies316); - registerDirectEvent(registrationName + "Capture", dependencies316); + function registerTwoPhaseEvent(registrationName, dependencies) { + registerDirectEvent(registrationName, dependencies); + registerDirectEvent(registrationName + "Capture", dependencies); } - function registerDirectEvent(registrationName, dependencies316) { + function registerDirectEvent(registrationName, dependencies) { registrationNameDependencies[registrationName] && console.error( "EventRegistry: More than one plugin attempted to publish the same registration name, `%s`.", registrationName ); - registrationNameDependencies[registrationName] = dependencies316; + registrationNameDependencies[registrationName] = dependencies; var lowerCasedName = registrationName.toLowerCase(); possibleRegistrationNames[lowerCasedName] = registrationName; "onDoubleClick" === registrationName && (possibleRegistrationNames.ondblclick = registrationName); - for (registrationName = 0; registrationName < dependencies316.length; registrationName++) - allNativeEvents.add(dependencies316[registrationName]); + for (registrationName = 0; registrationName < dependencies.length; registrationName++) + allNativeEvents.add(dependencies[registrationName]); } function checkControlledValueProps(tagName, props) { hasReadOnlyValue[props.type] || props.onChange || props.onInput || props.readOnly || props.disabled || null == props.value || ("select" === tagName ? console.error( @@ -2739,9 +2739,9 @@ var Components = (() => { ); } function isAttributeNameSafe(attributeName) { - if (hasOwnProperty2.call(validatedAttributeNameCache, attributeName)) + if (hasOwnProperty.call(validatedAttributeNameCache, attributeName)) return true; - if (hasOwnProperty2.call(illegalAttributeNameCache, attributeName)) + if (hasOwnProperty.call(illegalAttributeNameCache, attributeName)) return false; if (VALID_ATTRIBUTE_NAME_REGEX.test(attributeName)) return validatedAttributeNameCache[attributeName] = true; @@ -2749,9 +2749,9 @@ var Components = (() => { console.error("Invalid attribute name: `%s`", attributeName); return false; } - function getValueForAttributeOnCustomComponent(node, name315, expected) { - if (isAttributeNameSafe(name315)) { - if (!node.hasAttribute(name315)) { + function getValueForAttributeOnCustomComponent(node, name, expected) { + if (isAttributeNameSafe(name)) { + if (!node.hasAttribute(name)) { switch (typeof expected) { case "symbol": case "object": @@ -2763,61 +2763,61 @@ var Components = (() => { } return void 0 === expected ? void 0 : null; } - node = node.getAttribute(name315); + node = node.getAttribute(name); if ("" === node && true === expected) return true; - checkAttributeStringCoercion(expected, name315); + checkAttributeStringCoercion(expected, name); return node === "" + expected ? expected : node; } } - function setValueForAttribute(node, name315, value) { - if (isAttributeNameSafe(name315)) - if (null === value) node.removeAttribute(name315); + function setValueForAttribute(node, name, value) { + if (isAttributeNameSafe(name)) + if (null === value) node.removeAttribute(name); else { switch (typeof value) { case "undefined": case "function": case "symbol": - node.removeAttribute(name315); + node.removeAttribute(name); return; case "boolean": - var prefix2 = name315.toLowerCase().slice(0, 5); + var prefix2 = name.toLowerCase().slice(0, 5); if ("data-" !== prefix2 && "aria-" !== prefix2) { - node.removeAttribute(name315); + node.removeAttribute(name); return; } } - checkAttributeStringCoercion(value, name315); - node.setAttribute(name315, "" + value); + checkAttributeStringCoercion(value, name); + node.setAttribute(name, "" + value); } } - function setValueForKnownAttribute(node, name315, value) { - if (null === value) node.removeAttribute(name315); + function setValueForKnownAttribute(node, name, value) { + if (null === value) node.removeAttribute(name); else { switch (typeof value) { case "undefined": case "function": case "symbol": case "boolean": - node.removeAttribute(name315); + node.removeAttribute(name); return; } - checkAttributeStringCoercion(value, name315); - node.setAttribute(name315, "" + value); + checkAttributeStringCoercion(value, name); + node.setAttribute(name, "" + value); } } - function setValueForNamespacedAttribute(node, namespace, name315, value) { - if (null === value) node.removeAttribute(name315); + function setValueForNamespacedAttribute(node, namespace, name, value) { + if (null === value) node.removeAttribute(name); else { switch (typeof value) { case "undefined": case "function": case "symbol": case "boolean": - node.removeAttribute(name315); + node.removeAttribute(name); return; } - checkAttributeStringCoercion(value, name315); - node.setAttributeNS(namespace, name315, "" + value); + checkAttributeStringCoercion(value, name); + node.setAttributeNS(namespace, name, "" + value); } } function getToStringValue(value) { @@ -2846,11 +2846,11 @@ var Components = (() => { checkFormFieldValueStringCoercion(node[valueField]); var currentValue = "" + node[valueField]; if (!node.hasOwnProperty(valueField) && "undefined" !== typeof descriptor && "function" === typeof descriptor.get && "function" === typeof descriptor.set) { - var get2 = descriptor.get, set = descriptor.set; + var get = descriptor.get, set = descriptor.set; Object.defineProperty(node, valueField, { configurable: true, get: function() { - return get2.call(this); + return get.call(this); }, set: function(value) { checkFormFieldValueStringCoercion(value); @@ -2894,7 +2894,7 @@ var Components = (() => { if ("undefined" === typeof doc) return null; try { return doc.activeElement || doc.body; - } catch (e3) { + } catch (e) { return doc.body; } } @@ -2918,7 +2918,7 @@ var Components = (() => { props.type ), didWarnValueDefaultValue$1 = true); } - function updateInput(element, value, defaultValue, lastDefaultValue, checked, defaultChecked, type, name315) { + function updateInput(element, value, defaultValue, lastDefaultValue, checked, defaultChecked, type, name) { element.name = ""; null != type && "function" !== typeof type && "symbol" !== typeof type && "boolean" !== typeof type ? (checkAttributeStringCoercion(type, "type"), element.type = type) : element.removeAttribute("type"); if (null != value) @@ -2932,9 +2932,9 @@ var Components = (() => { null != value ? setDefaultValue(element, type, getToStringValue(value)) : null != defaultValue ? setDefaultValue(element, type, getToStringValue(defaultValue)) : null != lastDefaultValue && element.removeAttribute("value"); null == checked && null != defaultChecked && (element.defaultChecked = !!defaultChecked); null != checked && (element.checked = checked && "function" !== typeof checked && "symbol" !== typeof checked); - null != name315 && "function" !== typeof name315 && "symbol" !== typeof name315 && "boolean" !== typeof name315 ? (checkAttributeStringCoercion(name315, "name"), element.name = "" + getToStringValue(name315)) : element.removeAttribute("name"); + null != name && "function" !== typeof name && "symbol" !== typeof name && "boolean" !== typeof name ? (checkAttributeStringCoercion(name, "name"), element.name = "" + getToStringValue(name)) : element.removeAttribute("name"); } - function initInput(element, value, defaultValue, checked, defaultChecked, type, name315, isHydrating2) { + function initInput(element, value, defaultValue, checked, defaultChecked, type, name, isHydrating2) { null != type && "function" !== typeof type && "symbol" !== typeof type && "boolean" !== typeof type && (checkAttributeStringCoercion(type, "type"), element.type = type); if (null != value || null != defaultValue) { if (!("submit" !== type && "reset" !== type || void 0 !== value && null !== value)) @@ -2948,7 +2948,7 @@ var Components = (() => { checked = "function" !== typeof checked && "symbol" !== typeof checked && !!checked; element.checked = isHydrating2 ? element.checked : !!checked; element.defaultChecked = !!checked; - null != name315 && "function" !== typeof name315 && "symbol" !== typeof name315 && "boolean" !== typeof name315 && (checkAttributeStringCoercion(name315, "name"), element.name = name315); + null != name && "function" !== typeof name && "symbol" !== typeof name && "boolean" !== typeof name && (checkAttributeStringCoercion(name, "name"), element.name = name); } function setDefaultValue(node, type, value) { "number" === type && getActiveElement(node.ownerDocument) === node || node.defaultValue === "" + value || (node.defaultValue = "" + value); @@ -2973,20 +2973,20 @@ var Components = (() => { node = node.options; if (multiple) { multiple = {}; - for (var i2 = 0; i2 < propValue.length; i2++) - multiple["$" + propValue[i2]] = true; + for (var i = 0; i < propValue.length; i++) + multiple["$" + propValue[i]] = true; for (propValue = 0; propValue < node.length; propValue++) - i2 = multiple.hasOwnProperty("$" + node[propValue].value), node[propValue].selected !== i2 && (node[propValue].selected = i2), i2 && setDefaultSelected && (node[propValue].defaultSelected = true); + i = multiple.hasOwnProperty("$" + node[propValue].value), node[propValue].selected !== i && (node[propValue].selected = i), i && setDefaultSelected && (node[propValue].defaultSelected = true); } else { propValue = "" + getToStringValue(propValue); multiple = null; - for (i2 = 0; i2 < node.length; i2++) { - if (node[i2].value === propValue) { - node[i2].selected = true; - setDefaultSelected && (node[i2].defaultSelected = true); + for (i = 0; i < node.length; i++) { + if (node[i].value === propValue) { + node[i].selected = true; + setDefaultSelected && (node[i].defaultSelected = true); return; } - null !== multiple || node[i2].disabled || (multiple = node[i2]); + null !== multiple || node[i].disabled || (multiple = node[i]); } null !== multiple && (multiple.selected = true); } @@ -3112,9 +3112,9 @@ var Components = (() => { if (isArrayImpl(value)) return "[...]"; if (value.$$typeof === REACT_ELEMENT_TYPE) return (maxLength = getComponentNameFromType(value.type)) ? "<" + maxLength + ">" : "<...>"; - var name315 = objectName(value); - if ("Object" === name315) { - name315 = ""; + var name = objectName(value); + if ("Object" === name) { + name = ""; maxLength -= 2; for (var propName in value) if (value.hasOwnProperty(propName)) { @@ -3127,14 +3127,14 @@ var Components = (() => { ); maxLength -= jsonPropName.length; if (0 > maxLength) { - name315 += "" === name315 ? "..." : ", ..."; + name += "" === name ? "..." : ", ..."; break; } - name315 += ("" === name315 ? "" : ",") + propName + ":" + jsonPropName; + name += ("" === name ? "" : ",") + propName + ":" + jsonPropName; } - return "{" + name315 + "}"; + return "{" + name + "}"; } - return name315; + return name; case "function": return (maxLength = value.displayName || value.name) ? "function " + maxLength : "function"; default: @@ -3145,7 +3145,7 @@ var Components = (() => { return "string" !== typeof value || needsEscaping.test(value) ? "{" + describeValue(value, maxLength - 2) + "}" : value.length > maxLength - 2 ? 5 > maxLength ? '"..."' : '"' + value.slice(0, maxLength - 5) + '..."' : '"' + value + '"'; } function describeExpandedElement(type, props, rowPrefix) { - var remainingRowLength = 120 - rowPrefix.length - type.length, properties2 = [], propName; + var remainingRowLength = 120 - rowPrefix.length - type.length, properties = [], propName; for (propName in props) if (props.hasOwnProperty(propName) && "children" !== propName) { var propValue = describePropValue( @@ -3153,24 +3153,24 @@ var Components = (() => { 120 - rowPrefix.length - propName.length - 1 ); remainingRowLength -= propName.length + propValue.length + 2; - properties2.push(propName + "=" + propValue); + properties.push(propName + "=" + propValue); } - return 0 === properties2.length ? rowPrefix + "<" + type + ">\n" : 0 < remainingRowLength ? rowPrefix + "<" + type + " " + properties2.join(" ") + ">\n" : rowPrefix + "<" + type + "\n" + rowPrefix + " " + properties2.join("\n" + rowPrefix + " ") + "\n" + rowPrefix + ">\n"; + return 0 === properties.length ? rowPrefix + "<" + type + ">\n" : 0 < remainingRowLength ? rowPrefix + "<" + type + " " + properties.join(" ") + ">\n" : rowPrefix + "<" + type + "\n" + rowPrefix + " " + properties.join("\n" + rowPrefix + " ") + "\n" + rowPrefix + ">\n"; } function describePropertiesDiff(clientObject, serverObject, indent) { - var properties2 = "", remainingServerProperties = assign2({}, serverObject), propName; + var properties = "", remainingServerProperties = assign({}, serverObject), propName; for (propName in clientObject) if (clientObject.hasOwnProperty(propName)) { delete remainingServerProperties[propName]; var maxLength = 120 - 2 * indent - propName.length - 2, clientPropValue = describeValue(clientObject[propName], maxLength); - serverObject.hasOwnProperty(propName) ? (maxLength = describeValue(serverObject[propName], maxLength), properties2 += added(indent) + propName + ": " + clientPropValue + "\n", properties2 += removed(indent) + propName + ": " + maxLength + "\n") : properties2 += added(indent) + propName + ": " + clientPropValue + "\n"; + serverObject.hasOwnProperty(propName) ? (maxLength = describeValue(serverObject[propName], maxLength), properties += added(indent) + propName + ": " + clientPropValue + "\n", properties += removed(indent) + propName + ": " + maxLength + "\n") : properties += added(indent) + propName + ": " + clientPropValue + "\n"; } for (var _propName in remainingServerProperties) remainingServerProperties.hasOwnProperty(_propName) && (clientObject = describeValue( remainingServerProperties[_propName], 120 - 2 * indent - _propName.length - 2 - ), properties2 += removed(indent) + _propName + ": " + clientObject + "\n"); - return properties2; + ), properties += removed(indent) + _propName + ": " + clientObject + "\n"); + return properties; } function describeElementDiff(type, clientProps, serverProps, indent) { var content = "", serverPropNames = /* @__PURE__ */ new Map(); @@ -3245,21 +3245,21 @@ var Components = (() => { skipToNode = ""; var debugInfo = node.fiber._debugInfo; if (debugInfo) - for (var i2 = 0; i2 < debugInfo.length; i2++) { - var serverComponentName = debugInfo[i2].name; + for (var i = 0; i < debugInfo.length; i++) { + var serverComponentName = debugInfo[i].name; "string" === typeof serverComponentName && (skipToNode += indentation(indent) + "<" + serverComponentName + ">\n", indent++); } debugInfo = ""; - i2 = node.fiber.pendingProps; + i = node.fiber.pendingProps; if (6 === node.fiber.tag) - debugInfo = describeTextDiff(i2, node.serverProps, indent), indent++; + debugInfo = describeTextDiff(i, node.serverProps, indent), indent++; else if (serverComponentName = describeFiberType(node.fiber), null !== serverComponentName) if (void 0 === node.serverProps) { debugInfo = indent; var maxLength = 120 - 2 * debugInfo - serverComponentName.length - 2, content = ""; - for (propName in i2) - if (i2.hasOwnProperty(propName) && "children" !== propName) { - var propValue = describePropValue(i2[propName], 15); + for (propName in i) + if (i.hasOwnProperty(propName) && "children" !== propName) { + var propValue = describePropValue(i[propName], 15); maxLength -= propName.length + propValue.length + 2; if (0 > maxLength) { content += " ..."; @@ -3272,25 +3272,25 @@ var Components = (() => { } else null === node.serverProps ? (debugInfo = describeExpandedElement( serverComponentName, - i2, + i, added(indent) ), indent++) : "string" === typeof node.serverProps ? console.error( "Should not have matched a non HostText fiber to a Text node. This is a bug in React." ) : (debugInfo = describeElementDiff( serverComponentName, - i2, + i, node.serverProps, indent ), indent++); var propName = ""; - i2 = node.fiber.child; - for (serverComponentName = 0; i2 && serverComponentName < node.children.length; ) - maxLength = node.children[serverComponentName], maxLength.fiber === i2 ? (propName += describeNode(maxLength, indent), serverComponentName++) : propName += describeSiblingFiber(i2, indent), i2 = i2.sibling; - i2 && 0 < node.children.length && (propName += indentation(indent) + "...\n"); - i2 = node.serverTail; + i = node.fiber.child; + for (serverComponentName = 0; i && serverComponentName < node.children.length; ) + maxLength = node.children[serverComponentName], maxLength.fiber === i ? (propName += describeNode(maxLength, indent), serverComponentName++) : propName += describeSiblingFiber(i, indent), i = i.sibling; + i && 0 < node.children.length && (propName += indentation(indent) + "...\n"); + i = node.serverTail; null === node.serverProps && indent--; - for (node = 0; node < i2.length; node++) - serverComponentName = i2[node], propName = "string" === typeof serverComponentName ? propName + (removed(indent) + describeTextNode(serverComponentName, 120 - 2 * indent) + "\n") : propName + describeExpandedElement( + for (node = 0; node < i.length; node++) + serverComponentName = i[node], propName = "string" === typeof serverComponentName ? propName + (removed(indent) + describeTextNode(serverComponentName, 120 - 2 * indent) + "\n") : propName + describeExpandedElement( serverComponentName.type, serverComponentName.props, removed(indent) @@ -3315,51 +3315,51 @@ var Components = (() => { }, distanceFromLeaf++, fiber = fiber.return; return null !== node ? describeDiff(node).replaceAll(/^[+-]/gm, ">") : ""; } - function updatedAncestorInfoDev(oldInfo, tag2) { - oldInfo = assign2({}, oldInfo || emptyAncestorInfoDev); - var info = { tag: tag2 }; - -1 !== inScopeTags.indexOf(tag2) && (oldInfo.aTagInScope = null, oldInfo.buttonTagInScope = null, oldInfo.nobrTagInScope = null); - -1 !== buttonScopeTags.indexOf(tag2) && (oldInfo.pTagInButtonScope = null); - -1 !== specialTags.indexOf(tag2) && "address" !== tag2 && "div" !== tag2 && "p" !== tag2 && (oldInfo.listItemTagAutoclosing = null, oldInfo.dlItemTagAutoclosing = null); + function updatedAncestorInfoDev(oldInfo, tag) { + oldInfo = assign({}, oldInfo || emptyAncestorInfoDev); + var info = { tag }; + -1 !== inScopeTags.indexOf(tag) && (oldInfo.aTagInScope = null, oldInfo.buttonTagInScope = null, oldInfo.nobrTagInScope = null); + -1 !== buttonScopeTags.indexOf(tag) && (oldInfo.pTagInButtonScope = null); + -1 !== specialTags.indexOf(tag) && "address" !== tag && "div" !== tag && "p" !== tag && (oldInfo.listItemTagAutoclosing = null, oldInfo.dlItemTagAutoclosing = null); oldInfo.current = info; - "form" === tag2 && (oldInfo.formTag = info); - "a" === tag2 && (oldInfo.aTagInScope = info); - "button" === tag2 && (oldInfo.buttonTagInScope = info); - "nobr" === tag2 && (oldInfo.nobrTagInScope = info); - "p" === tag2 && (oldInfo.pTagInButtonScope = info); - "li" === tag2 && (oldInfo.listItemTagAutoclosing = info); - if ("dd" === tag2 || "dt" === tag2) oldInfo.dlItemTagAutoclosing = info; - "#document" === tag2 || "html" === tag2 ? oldInfo.containerTagInScope = null : oldInfo.containerTagInScope || (oldInfo.containerTagInScope = info); + "form" === tag && (oldInfo.formTag = info); + "a" === tag && (oldInfo.aTagInScope = info); + "button" === tag && (oldInfo.buttonTagInScope = info); + "nobr" === tag && (oldInfo.nobrTagInScope = info); + "p" === tag && (oldInfo.pTagInButtonScope = info); + "li" === tag && (oldInfo.listItemTagAutoclosing = info); + if ("dd" === tag || "dt" === tag) oldInfo.dlItemTagAutoclosing = info; + "#document" === tag || "html" === tag ? oldInfo.containerTagInScope = null : oldInfo.containerTagInScope || (oldInfo.containerTagInScope = info); return oldInfo; } - function isTagValidWithParent(tag2, parentTag) { + function isTagValidWithParent(tag, parentTag) { switch (parentTag) { case "select": - return "hr" === tag2 || "option" === tag2 || "optgroup" === tag2 || "#text" === tag2; + return "hr" === tag || "option" === tag || "optgroup" === tag || "#text" === tag; case "optgroup": - return "option" === tag2 || "#text" === tag2; + return "option" === tag || "#text" === tag; case "option": - return "#text" === tag2; + return "#text" === tag; case "tr": - return "th" === tag2 || "td" === tag2 || "style" === tag2 || "script" === tag2 || "template" === tag2; + return "th" === tag || "td" === tag || "style" === tag || "script" === tag || "template" === tag; case "tbody": case "thead": case "tfoot": - return "tr" === tag2 || "style" === tag2 || "script" === tag2 || "template" === tag2; + return "tr" === tag || "style" === tag || "script" === tag || "template" === tag; case "colgroup": - return "col" === tag2 || "template" === tag2; + return "col" === tag || "template" === tag; case "table": - return "caption" === tag2 || "colgroup" === tag2 || "tbody" === tag2 || "tfoot" === tag2 || "thead" === tag2 || "style" === tag2 || "script" === tag2 || "template" === tag2; + return "caption" === tag || "colgroup" === tag || "tbody" === tag || "tfoot" === tag || "thead" === tag || "style" === tag || "script" === tag || "template" === tag; case "head": - return "base" === tag2 || "basefont" === tag2 || "bgsound" === tag2 || "link" === tag2 || "meta" === tag2 || "title" === tag2 || "noscript" === tag2 || "noframes" === tag2 || "style" === tag2 || "script" === tag2 || "template" === tag2; + return "base" === tag || "basefont" === tag || "bgsound" === tag || "link" === tag || "meta" === tag || "title" === tag || "noscript" === tag || "noframes" === tag || "style" === tag || "script" === tag || "template" === tag; case "html": - return "head" === tag2 || "body" === tag2 || "frameset" === tag2; + return "head" === tag || "body" === tag || "frameset" === tag; case "frameset": - return "frame" === tag2; + return "frame" === tag; case "#document": - return "html" === tag2; + return "html" === tag; } - switch (tag2) { + switch (tag) { case "h1": case "h2": case "h3": @@ -3388,8 +3388,8 @@ var Components = (() => { } return true; } - function findInvalidAncestorForTag(tag2, ancestorInfo) { - switch (tag2) { + function findInvalidAncestorForTag(tag, ancestorInfo) { + switch (tag) { case "address": case "article": case "aside": @@ -3516,8 +3516,8 @@ var Components = (() => { } node.textContent = text; } - function camelize(string2) { - return string2.replace(hyphenPattern, function(_, character) { + function camelize(string) { + return string.replace(hyphenPattern, function(_, character) { return character.toUpperCase(); }); } @@ -3557,8 +3557,8 @@ var Components = (() => { if (prevStyles) { for (var key in prevStyles) if (prevStyles.hasOwnProperty(key) && !styles.hasOwnProperty(key)) - for (var longhands = shorthandToLonghand[key] || [key], i2 = 0; i2 < longhands.length; i2++) - expandedUpdates[longhands[i2]] = key; + for (var longhands = shorthandToLonghand[key] || [key], i = 0; i < longhands.length; i++) + expandedUpdates[longhands[i]] = key; } for (var _key in styles) if (styles.hasOwnProperty(_key) && (!prevStyles || prevStyles[_key] !== styles[_key])) @@ -3570,12 +3570,12 @@ var Components = (() => { _key[key[longhands]] = key$jscomp$0; key$jscomp$0 = {}; for (var _key2 in expandedUpdates) - if (key = expandedUpdates[_key2], (longhands = _key[_key2]) && key !== longhands && (i2 = key + "," + longhands, !key$jscomp$0[i2])) { - key$jscomp$0[i2] = true; - i2 = console; + if (key = expandedUpdates[_key2], (longhands = _key[_key2]) && key !== longhands && (i = key + "," + longhands, !key$jscomp$0[i])) { + key$jscomp$0[i] = true; + i = console; var value = styles[key]; - i2.error.call( - i2, + i.error.call( + i, "%s a style property during rerender (%s) when a conflicting property is set (%s) can lead to styling bugs. To avoid this, don't mix shorthand and non-shorthand properties for the same value; instead, replace the shorthand with separate values.", null == value || "boolean" === typeof value || "" === value ? "Removing" : "Updating", key, @@ -3607,36 +3607,36 @@ var Components = (() => { return true; } } - function getAttributeAlias(name315) { - return aliases.get(name315) || name315; + function getAttributeAlias(name) { + return aliases.get(name) || name; } - function validateProperty$1(tagName, name315) { - if (hasOwnProperty2.call(warnedProperties$1, name315) && warnedProperties$1[name315]) + function validateProperty$1(tagName, name) { + if (hasOwnProperty.call(warnedProperties$1, name) && warnedProperties$1[name]) return true; - if (rARIACamel$1.test(name315)) { - tagName = "aria-" + name315.slice(4).toLowerCase(); + if (rARIACamel$1.test(name)) { + tagName = "aria-" + name.slice(4).toLowerCase(); tagName = ariaProperties.hasOwnProperty(tagName) ? tagName : null; if (null == tagName) return console.error( "Invalid ARIA attribute `%s`. ARIA attributes follow the pattern aria-* and must be lowercase.", - name315 - ), warnedProperties$1[name315] = true; - if (name315 !== tagName) + name + ), warnedProperties$1[name] = true; + if (name !== tagName) return console.error( "Invalid ARIA attribute `%s`. Did you mean `%s`?", - name315, + name, tagName - ), warnedProperties$1[name315] = true; + ), warnedProperties$1[name] = true; } - if (rARIA$1.test(name315)) { - tagName = name315.toLowerCase(); + if (rARIA$1.test(name)) { + tagName = name.toLowerCase(); tagName = ariaProperties.hasOwnProperty(tagName) ? tagName : null; - if (null == tagName) return warnedProperties$1[name315] = true, false; - name315 !== tagName && (console.error( + if (null == tagName) return warnedProperties$1[name] = true, false; + name !== tagName && (console.error( "Unknown ARIA attribute `%s`. Did you mean `%s`?", - name315, + name, tagName - ), warnedProperties$1[name315] = true); + ), warnedProperties$1[name] = true); } return true; } @@ -3657,70 +3657,70 @@ var Components = (() => { type ); } - function validateProperty(tagName, name315, value, eventRegistry) { - if (hasOwnProperty2.call(warnedProperties, name315) && warnedProperties[name315]) + function validateProperty(tagName, name, value, eventRegistry) { + if (hasOwnProperty.call(warnedProperties, name) && warnedProperties[name]) return true; - var lowerCasedName = name315.toLowerCase(); + var lowerCasedName = name.toLowerCase(); if ("onfocusin" === lowerCasedName || "onfocusout" === lowerCasedName) return console.error( "React uses onFocus and onBlur instead of onFocusIn and onFocusOut. All React events are normalized to bubble, so onFocusIn and onFocusOut are not needed/supported by React." - ), warnedProperties[name315] = true; - if ("function" === typeof value && ("form" === tagName && "action" === name315 || "input" === tagName && "formAction" === name315 || "button" === tagName && "formAction" === name315)) + ), warnedProperties[name] = true; + if ("function" === typeof value && ("form" === tagName && "action" === name || "input" === tagName && "formAction" === name || "button" === tagName && "formAction" === name)) return true; if (null != eventRegistry) { tagName = eventRegistry.possibleRegistrationNames; - if (eventRegistry.registrationNameDependencies.hasOwnProperty(name315)) + if (eventRegistry.registrationNameDependencies.hasOwnProperty(name)) return true; eventRegistry = tagName.hasOwnProperty(lowerCasedName) ? tagName[lowerCasedName] : null; if (null != eventRegistry) return console.error( "Invalid event handler property `%s`. Did you mean `%s`?", - name315, + name, eventRegistry - ), warnedProperties[name315] = true; - if (EVENT_NAME_REGEX.test(name315)) + ), warnedProperties[name] = true; + if (EVENT_NAME_REGEX.test(name)) return console.error( "Unknown event handler property `%s`. It will be ignored.", - name315 - ), warnedProperties[name315] = true; - } else if (EVENT_NAME_REGEX.test(name315)) - return INVALID_EVENT_NAME_REGEX.test(name315) && console.error( + name + ), warnedProperties[name] = true; + } else if (EVENT_NAME_REGEX.test(name)) + return INVALID_EVENT_NAME_REGEX.test(name) && console.error( "Invalid event handler property `%s`. React events use the camelCase naming convention, for example `onClick`.", - name315 - ), warnedProperties[name315] = true; - if (rARIA.test(name315) || rARIACamel.test(name315)) return true; + name + ), warnedProperties[name] = true; + if (rARIA.test(name) || rARIACamel.test(name)) return true; if ("innerhtml" === lowerCasedName) return console.error( "Directly setting property `innerHTML` is not permitted. For more information, lookup documentation on `dangerouslySetInnerHTML`." - ), warnedProperties[name315] = true; + ), warnedProperties[name] = true; if ("aria" === lowerCasedName) return console.error( "The `aria` attribute is reserved for future use in React. Pass individual `aria-` attributes instead." - ), warnedProperties[name315] = true; + ), warnedProperties[name] = true; if ("is" === lowerCasedName && null !== value && void 0 !== value && "string" !== typeof value) return console.error( "Received a `%s` for a string attribute `is`. If this is expected, cast the value to a string.", typeof value - ), warnedProperties[name315] = true; + ), warnedProperties[name] = true; if ("number" === typeof value && isNaN(value)) return console.error( "Received NaN for the `%s` attribute. If this is expected, cast the value to a string.", - name315 - ), warnedProperties[name315] = true; + name + ), warnedProperties[name] = true; if (possibleStandardNames.hasOwnProperty(lowerCasedName)) { - if (lowerCasedName = possibleStandardNames[lowerCasedName], lowerCasedName !== name315) + if (lowerCasedName = possibleStandardNames[lowerCasedName], lowerCasedName !== name) return console.error( "Invalid DOM property `%s`. Did you mean `%s`?", - name315, + name, lowerCasedName - ), warnedProperties[name315] = true; - } else if (name315 !== lowerCasedName) + ), warnedProperties[name] = true; + } else if (name !== lowerCasedName) return console.error( "React does not recognize the `%s` prop on a DOM element. If you intentionally want it to appear in the DOM as a custom attribute, spell it as lowercase `%s` instead. If you accidentally passed it from a parent component, remove it from the DOM element.", - name315, + name, lowerCasedName - ), warnedProperties[name315] = true; - switch (name315) { + ), warnedProperties[name] = true; + switch (name) { case "dangerouslySetInnerHTML": case "children": case "style": @@ -3737,7 +3737,7 @@ var Components = (() => { } switch (typeof value) { case "boolean": - switch (name315) { + switch (name) { case "autoFocus": case "checked": case "multiple": @@ -3778,34 +3778,34 @@ var Components = (() => { case "inert": return true; default: - lowerCasedName = name315.toLowerCase().slice(0, 5); + lowerCasedName = name.toLowerCase().slice(0, 5); if ("data-" === lowerCasedName || "aria-" === lowerCasedName) return true; value ? console.error( 'Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.', value, - name315, - name315, + name, + name, value, - name315 + name ) : console.error( 'Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.\n\nIf you used to conditionally omit it with %s={condition && value}, pass %s={condition ? value : undefined} instead.', value, - name315, - name315, + name, + name, value, - name315, - name315, - name315 + name, + name, + name ); - return warnedProperties[name315] = true; + return warnedProperties[name] = true; } case "function": case "symbol": - return warnedProperties[name315] = true, false; + return warnedProperties[name] = true, false; case "string": if ("false" === value || "true" === value) { - switch (name315) { + switch (name) { case "checked": case "selected": case "multiple": @@ -3840,12 +3840,12 @@ var Components = (() => { console.error( "Received the string `%s` for the boolean attribute `%s`. %s Did you mean %s={%s}?", value, - name315, + name, "false" === value ? "The browser will interpret it as a truthy value." : 'Although this works, it will not work as expected if you pass the string "false".', - name315, + name, value ); - warnedProperties[name315] = true; + warnedProperties[name] = true; } } return true; @@ -4010,7 +4010,7 @@ var Components = (() => { this.isPropagationStopped = functionThatReturnsFalse; return this; } - assign2(SyntheticBaseEvent.prototype, { + assign(SyntheticBaseEvent.prototype, { preventDefault: function() { this.defaultPrevented = true; var event = this.nativeEvent; @@ -4157,7 +4157,7 @@ var Components = (() => { if (keysA.length !== keysB.length) return false; for (keysB = 0; keysB < keysA.length; keysB++) { var currentKey = keysA[keysB]; - if (!hasOwnProperty2.call(objB, currentKey) || !objectIs(objA[currentKey], objB[currentKey])) + if (!hasOwnProperty.call(objB, currentKey) || !objectIs(objA[currentKey], objB[currentKey])) return false; } return true; @@ -4285,15 +4285,15 @@ var Components = (() => { registerTwoPhaseEvent(reactName, [domEventName]); } function finishQueueingConcurrentUpdates() { - for (var endIndex = concurrentQueuesIndex, i2 = concurrentlyUpdatedLanes = concurrentQueuesIndex = 0; i2 < endIndex; ) { - var fiber = concurrentQueues[i2]; - concurrentQueues[i2++] = null; - var queue = concurrentQueues[i2]; - concurrentQueues[i2++] = null; - var update = concurrentQueues[i2]; - concurrentQueues[i2++] = null; - var lane = concurrentQueues[i2]; - concurrentQueues[i2++] = null; + for (var endIndex = concurrentQueuesIndex, i = concurrentlyUpdatedLanes = concurrentQueuesIndex = 0; i < endIndex; ) { + var fiber = concurrentQueues[i]; + concurrentQueues[i++] = null; + var queue = concurrentQueues[i]; + concurrentQueues[i++] = null; + var update = concurrentQueues[i]; + concurrentQueues[i++] = null; + var lane = concurrentQueues[i]; + concurrentQueues[i++] = null; if (null !== queue && null !== update) { var pending = queue.pending; null === pending ? update.next = update : (update.next = pending.next, pending.next = update); @@ -4379,8 +4379,8 @@ var Components = (() => { null !== resolveFamily && "function" === typeof WeakSet && (null === failedBoundaries && (failedBoundaries = /* @__PURE__ */ new WeakSet()), failedBoundaries.add(fiber)); } function scheduleFibersWithFamiliesRecursively(fiber, updatedFamilies, staleFamilies) { - var alternate = fiber.alternate, child = fiber.child, sibling = fiber.sibling, tag2 = fiber.tag, type = fiber.type, candidateType = null; - switch (tag2) { + var alternate = fiber.alternate, child = fiber.child, sibling = fiber.sibling, tag = fiber.tag, type = fiber.type, candidateType = null; + switch (tag) { case 0: case 15: case 1: @@ -4393,7 +4393,7 @@ var Components = (() => { throw Error("Expected resolveFamily to be set during hot reload."); var needsRender = false; type = false; - null !== candidateType && (candidateType = resolveFamily(candidateType), void 0 !== candidateType && (staleFamilies.has(candidateType) ? type = true : updatedFamilies.has(candidateType) && (1 === tag2 ? type = true : needsRender = true))); + null !== candidateType && (candidateType = resolveFamily(candidateType), void 0 !== candidateType && (staleFamilies.has(candidateType) ? type = true : updatedFamilies.has(candidateType) && (1 === tag ? type = true : needsRender = true))); null !== failedBoundaries && (failedBoundaries.has(fiber) || null !== alternate && failedBoundaries.has(alternate)) && (type = true); type && (fiber._debugNeedsRemount = true); if (type || needsRender) @@ -4482,7 +4482,7 @@ var Components = (() => { treeForkProvider = workInProgress2; treeForkCount = totalChildren; } - function pushTreeId(workInProgress2, totalChildren, index2) { + function pushTreeId(workInProgress2, totalChildren, index) { warnIfNotHydrating(); idStack[idStackIndex++] = treeContextId; idStack[idStackIndex++] = treeContextOverflow; @@ -4492,17 +4492,17 @@ var Components = (() => { workInProgress2 = treeContextOverflow; var baseLength = 32 - clz32(baseIdWithLeadingBit) - 1; baseIdWithLeadingBit &= ~(1 << baseLength); - index2 += 1; + index += 1; var length = 32 - clz32(totalChildren) + baseLength; if (30 < length) { var numberOfOverflowBits = baseLength - baseLength % 5; length = (baseIdWithLeadingBit & (1 << numberOfOverflowBits) - 1).toString(32); baseIdWithLeadingBit >>= numberOfOverflowBits; baseLength -= numberOfOverflowBits; - treeContextId = 1 << 32 - clz32(totalChildren) + baseLength | index2 << baseLength | baseIdWithLeadingBit; + treeContextId = 1 << 32 - clz32(totalChildren) + baseLength | index << baseLength | baseIdWithLeadingBit; treeContextOverflow = length + workInProgress2; } else - treeContextId = 1 << length | index2 << baseLength | baseIdWithLeadingBit, treeContextOverflow = workInProgress2; + treeContextId = 1 << length | index << baseLength | baseIdWithLeadingBit, treeContextOverflow = workInProgress2; } function pushMaterializedTreeId(workInProgress2) { warnIfNotHydrating(); @@ -4558,12 +4558,12 @@ var Components = (() => { didSuspendOrErrorDEV || (fiber = buildHydrationDiffNode(fiber, 0), fiber.serverProps = null, null !== rejectedCandidate && (rejectedCandidate = describeHydratableInstanceForDevWarnings(rejectedCandidate), fiber.serverTail.push(rejectedCandidate))); } function throwOnHydrationMismatch(fiber) { - var diff2 = "", diffRoot = hydrationDiffRootDEV; - null !== diffRoot && (hydrationDiffRootDEV = null, diff2 = describeDiff(diffRoot)); + var diff = "", diffRoot = hydrationDiffRootDEV; + null !== diffRoot && (hydrationDiffRootDEV = null, diff = describeDiff(diffRoot)); queueHydrationError( createCapturedValueAtFiber( Error( - "Hydration failed because the server rendered HTML didn't match the client. As a result this tree will be regenerated on the client. This can happen if a SSR-ed Client Component used:\n\n- A server/client branch `if (typeof window !== 'undefined')`.\n- Variable input such as `Date.now()` or `Math.random()` which changes each time it's called.\n- Date formatting in a user's locale which doesn't match the server.\n- External changing data without sending a snapshot of it along with the HTML.\n- Invalid HTML tag nesting.\n\nIt can also happen if the client has a browser extension installed which messes with the HTML before React loaded.\n\nhttps://react.dev/link/hydration-mismatch" + diff2 + "Hydration failed because the server rendered HTML didn't match the client. As a result this tree will be regenerated on the client. This can happen if a SSR-ed Client Component used:\n\n- A server/client branch `if (typeof window !== 'undefined')`.\n- Variable input such as `Date.now()` or `Math.random()` which changes each time it's called.\n- Date formatting in a user's locale which doesn't match the server.\n- External changing data without sending a snapshot of it along with the HTML.\n- Invalid HTML tag nesting.\n\nIt can also happen if the client has a browser extension installed which messes with the HTML before React loaded.\n\nhttps://react.dev/link/hydration-mismatch" + diff ), fiber ) @@ -4711,13 +4711,13 @@ var Components = (() => { } function noop$3() { } - function trackUsedThenable(thenableState2, thenable, index2) { + function trackUsedThenable(thenableState2, thenable, index) { null !== ReactSharedInternals.actQueue && (ReactSharedInternals.didUsePromise = true); var trackedThenables = thenableState2.thenables; - index2 = trackedThenables[index2]; - void 0 === index2 ? trackedThenables.push(thenable) : index2 !== thenable && (thenableState2.didWarnAboutUncachedPromise || (thenableState2.didWarnAboutUncachedPromise = true, console.error( + index = trackedThenables[index]; + void 0 === index ? trackedThenables.push(thenable) : index !== thenable && (thenableState2.didWarnAboutUncachedPromise || (thenableState2.didWarnAboutUncachedPromise = true, console.error( "A component was suspended by an uncached promise. Creating promises inside a Client Component or hook is not yet supported, except via a Suspense-compatible library or framework." - )), thenable.then(noop$3, noop$3), thenable = index2); + )), thenable.then(noop$3, noop$3), thenable = index); switch (thenable.status) { case "fulfilled": return thenable.value; @@ -4784,8 +4784,8 @@ var Components = (() => { return previousDebugInfo; } function validateFragmentProps(element, fiber, returnFiber) { - for (var keys = Object.keys(element.props), i2 = 0; i2 < keys.length; i2++) { - var key = keys[i2]; + for (var keys = Object.keys(element.props), i = 0; i < keys.length; i++) { + var key = keys[i]; if ("children" !== key && "key" !== key) { null === fiber && (fiber = createFiberFromElement(element, returnFiber.mode, 0), fiber._debugInfo = currentDebugInfo, fiber.return = returnFiber); runWithFiberInDEV( @@ -4803,10 +4803,10 @@ var Components = (() => { } } function unwrapThenable(thenable) { - var index2 = thenableIndexCounter$1; + var index = thenableIndexCounter$1; thenableIndexCounter$1 += 1; null === thenableState$1 && (thenableState$1 = createThenableState()); - return trackUsedThenable(thenableState$1, thenable, index2); + return trackUsedThenable(thenableState$1, thenable, index); } function coerceRef(workInProgress2, element) { element = element.props.ref; @@ -5455,9 +5455,9 @@ var Components = (() => { var debugInfo = fiber._debugInfo = currentDebugInfo; fiber._debugOwner = returnFiber._debugOwner; if (null != debugInfo) { - for (var i2 = debugInfo.length - 1; 0 <= i2; i2--) - if ("string" === typeof debugInfo[i2].stack) { - fiber._debugOwner = debugInfo[i2]; + for (var i = debugInfo.length - 1; 0 <= i; i--) + if ("string" === typeof debugInfo[i].stack) { + fiber._debugOwner = debugInfo[i]; break; } } @@ -5517,8 +5517,8 @@ var Components = (() => { shellBoundary === fiber && (shellBoundary = null); pop(suspenseStackCursor, fiber); } - function findFirstSuspended(row2) { - for (var node = row2; null !== node; ) { + function findFirstSuspended(row) { + for (var node = row; null !== node; ) { if (13 === node.tag) { var state = node.memoizedState; if (null !== state && (state = state.dehydrated, null === state || state.data === SUSPENSE_PENDING_START_DATA || state.data === SUSPENSE_FALLBACK_START_DATA)) @@ -5530,9 +5530,9 @@ var Components = (() => { node = node.child; continue; } - if (node === row2) break; + if (node === row) break; for (; null === node.sibling; ) { - if (null === node.return || node.return === row2) return null; + if (null === node.return || node.return === row) return null; node = node.return; } node.sibling.return = node.return; @@ -5570,8 +5570,8 @@ var Components = (() => { currentEntangledActionThenable = { status: "pending", value: void 0, - then: function(resolve2) { - entangledListeners.push(resolve2); + then: function(resolve) { + entangledListeners.push(resolve); } }; } @@ -5586,7 +5586,7 @@ var Components = (() => { currentEntangledListeners = null; currentEntangledLane = 0; currentEntangledActionThenable = null; - for (var i2 = 0; i2 < listeners.length; i2++) (0, listeners[i2])(); + for (var i = 0; i < listeners.length; i++) (0, listeners[i])(); } } function chainThenableValue(thenable, result) { @@ -5594,15 +5594,15 @@ var Components = (() => { status: "pending", value: null, reason: null, - then: function(resolve2) { - listeners.push(resolve2); + then: function(resolve) { + listeners.push(resolve); } }; thenable.then( function() { thenableWithOverride.status = "fulfilled"; thenableWithOverride.value = result; - for (var i2 = 0; i2 < listeners.length; i2++) (0, listeners[i2])(result); + for (var i = 0; i < listeners.length; i++) (0, listeners[i])(result); }, function(error) { thenableWithOverride.status = "rejected"; @@ -5635,9 +5635,9 @@ var Components = (() => { currentlyRenderingFiber$1 ); if (!didWarnAboutMismatchedHooksForComponent.has(componentName2) && (didWarnAboutMismatchedHooksForComponent.add(componentName2), null !== hookTypesDev)) { - for (var table = "", i2 = 0; i2 <= hookTypesUpdateIndexDev; i2++) { - var oldHookName = hookTypesDev[i2], newHookName = i2 === hookTypesUpdateIndexDev ? hookName : oldHookName; - for (oldHookName = i2 + 1 + ". " + oldHookName; 30 > oldHookName.length; ) + for (var table = "", i = 0; i <= hookTypesUpdateIndexDev; i++) { + var oldHookName = hookTypesDev[i], newHookName = i === hookTypesUpdateIndexDev ? hookName : oldHookName; + for (oldHookName = i + 1 + ". " + oldHookName; 30 > oldHookName.length; ) oldHookName += " "; oldHookName += newHookName + "\n"; table += oldHookName; @@ -5682,8 +5682,8 @@ var Components = (() => { "[" + prevDeps.join(", ") + "]", "[" + nextDeps.join(", ") + "]" ); - for (var i2 = 0; i2 < prevDeps.length && i2 < nextDeps.length; i2++) - if (!objectIs(nextDeps[i2], prevDeps[i2])) return false; + for (var i = 0; i < prevDeps.length && i < nextDeps.length; i++) + if (!objectIs(nextDeps[i], prevDeps[i])) return false; return true; } function renderWithHooks(current2, workInProgress2, Component, props, secondArg, nextRenderLanes) { @@ -5856,12 +5856,12 @@ var Components = (() => { return workInProgressHook; } function useThenable(thenable) { - var index2 = thenableIndexCounter; + var index = thenableIndexCounter; thenableIndexCounter += 1; null === thenableState && (thenableState = createThenableState()); - thenable = trackUsedThenable(thenableState, thenable, index2); - index2 = currentlyRenderingFiber$1; - null === (null === workInProgressHook ? index2.memoizedState : workInProgressHook.next) && (index2 = index2.alternate, ReactSharedInternals.H = null !== index2 && null !== index2.memoizedState ? HooksDispatcherOnUpdateInDEV : HooksDispatcherOnMountInDEV); + thenable = trackUsedThenable(thenableState, thenable, index); + index = currentlyRenderingFiber$1; + null === (null === workInProgressHook ? index.memoizedState : workInProgressHook.next) && (index = index.alternate, ReactSharedInternals.H = null !== index && null !== index.memoizedState ? HooksDispatcherOnUpdateInDEV : HooksDispatcherOnMountInDEV); return thenable; } function use(usable) { @@ -5871,7 +5871,7 @@ var Components = (() => { } throw Error("An unsupported type was passed to use(): " + String(usable)); } - function useMemoCache(size2) { + function useMemoCache(size) { var memoCache = null, updateQueue = currentlyRenderingFiber$1.updateQueue; null !== updateQueue && (memoCache = updateQueue.memoCache); if (null == memoCache) { @@ -5888,13 +5888,13 @@ var Components = (() => { updateQueue.memoCache = memoCache; updateQueue = memoCache.data[memoCache.index]; if (void 0 === updateQueue || ignorePreviousDependencies) - for (updateQueue = memoCache.data[memoCache.index] = Array(size2), current2 = 0; current2 < size2; current2++) + for (updateQueue = memoCache.data[memoCache.index] = Array(size), current2 = 0; current2 < size; current2++) updateQueue[current2] = REACT_MEMO_CACHE_SENTINEL; else - updateQueue.length !== size2 && console.error( + updateQueue.length !== size && console.error( "Expected a constant size argument for each invocation of useMemoCache. The previous cache was allocated with size %s but size %s was requested.", updateQueue.length, - size2 + size ); memoCache.index++; return updateQueue; @@ -6304,7 +6304,7 @@ var Components = (() => { } function notifyActionListeners(actionNode) { actionNode = actionNode.listeners; - for (var i2 = 0; i2 < actionNode.length; i2++) (0, actionNode[i2])(); + for (var i = 0; i < actionNode.length; i++) (0, actionNode[i])(); } function actionStateReducer(oldState, newState) { return newState; @@ -6427,13 +6427,13 @@ var Components = (() => { currentStateHook.memoizedState = action; return [stateHook, dispatch, false]; } - function pushEffect(tag2, create, inst, deps) { - tag2 = { tag: tag2, create, inst, deps, next: null }; + function pushEffect(tag, create, inst, deps) { + tag = { tag, create, inst, deps, next: null }; create = currentlyRenderingFiber$1.updateQueue; null === create && (create = createFunctionComponentUpdateQueue(), currentlyRenderingFiber$1.updateQueue = create); inst = create.lastEffect; - null === inst ? create.lastEffect = tag2.next = tag2 : (deps = inst.next, inst.next = tag2, tag2.next = deps, create.lastEffect = tag2); - return tag2; + null === inst ? create.lastEffect = tag.next = tag : (deps = inst.next, inst.next = tag, tag.next = deps, create.lastEffect = tag); + return tag; } function mountRef(initialValue) { var hook = mountWorkInProgressHook(); @@ -6919,7 +6919,7 @@ var Components = (() => { "%s.getDerivedStateFromProps(): A valid state object (or null) must be returned. You have returned undefined.", ctor ))); - prevState = null === partialState || void 0 === partialState ? prevState : assign2({}, prevState, partialState); + prevState = null === partialState || void 0 === partialState ? prevState : assign({}, prevState, partialState); workInProgress2.memoizedState = prevState; 0 === workInProgress2.lanes && (workInProgress2.updateQueue.baseState = prevState); } @@ -6972,7 +6972,7 @@ var Components = (() => { "ref" !== propName && (newProps[propName] = baseProps[propName]); } if (Component = Component.defaultProps) { - newProps === baseProps && (newProps = assign2({}, newProps)); + newProps === baseProps && (newProps = assign({}, newProps)); for (var _propName in Component) void 0 === newProps[_propName] && (newProps[_propName] = Component[_propName]); } @@ -8031,8 +8031,8 @@ var Components = (() => { primaryChildren.return = workInProgress2; return workInProgress2.child = primaryChildren; } - function mountWorkInProgressOffscreenFiber(offscreenProps, mode2) { - return createFiberFromOffscreen(offscreenProps, mode2, 0, null); + function mountWorkInProgressOffscreenFiber(offscreenProps, mode) { + return createFiberFromOffscreen(offscreenProps, mode, 0, null); } function retrySuspenseComponentWithoutHydrating(current2, workInProgress2, renderLanes2) { reconcileChildFibers(workInProgress2, current2.child, null, renderLanes2); @@ -8054,13 +8054,13 @@ var Components = (() => { propagationRoot ); } - function validateSuspenseListNestedChild(childSlot, index2) { + function validateSuspenseListNestedChild(childSlot, index) { var isAnArray = isArrayImpl(childSlot); childSlot = !isAnArray && "function" === typeof getIteratorFn(childSlot); return isAnArray || childSlot ? (isAnArray = isAnArray ? "array" : "iterable", console.error( "A nested %s was passed to row #%s in . Wrap it in an additional SuspenseList to configure its revealOrder: ... {%s} ... ", isAnArray, - index2, + index, isAnArray ), false) : true; } @@ -8118,12 +8118,12 @@ var Components = (() => { ))); a: if (("forwards" === revealOrder || "backwards" === revealOrder) && void 0 !== nextProps && null !== nextProps && false !== nextProps) if (isArrayImpl(nextProps)) - for (var i2 = 0; i2 < nextProps.length; i2++) { - if (!validateSuspenseListNestedChild(nextProps[i2], i2)) break a; + for (var i = 0; i < nextProps.length; i++) { + if (!validateSuspenseListNestedChild(nextProps[i], i)) break a; } - else if (i2 = getIteratorFn(nextProps), "function" === typeof i2) { - if (i2 = i2.call(nextProps)) - for (var step = i2.next(), _i = 0; !step.done; step = i2.next()) { + else if (i = getIteratorFn(nextProps), "function" === typeof i) { + if (i = i.call(nextProps)) + for (var step = i.next(), _i = 0; !step.done; step = i.next()) { if (!validateSuspenseListNestedChild(step.value, _i)) break a; _i++; } @@ -8782,8 +8782,8 @@ var Components = (() => { a: for (; null !== list; ) { var dependency = list; list = fiber; - for (var i2 = 0; i2 < contexts.length; i2++) - if (dependency.context === contexts[i2]) { + for (var i = 0; i < contexts.length; i++) + if (dependency.context === contexts[i]) { list.lanes |= renderLanes2; dependency = list.alternate; null !== dependency && (dependency.lanes |= renderLanes2); @@ -8970,14 +8970,14 @@ var Components = (() => { queue = queue.firstBaseUpdate; if (null !== queue) { do { - var clone5 = { + var clone = { lane: queue.lane, tag: queue.tag, payload: queue.payload, callback: null, next: null }; - null === newLast ? newFirst = newLast = clone5 : newLast = newLast.next = clone5; + null === newLast ? newFirst = newLast = clone : newLast = newLast.next = clone; queue = queue.next; } while (null !== queue); null === newLast ? newFirst = newLast = capturedUpdate : newLast = newLast.next = capturedUpdate; @@ -9083,7 +9083,7 @@ var Components = (() => { isDisallowedContextReadInDEV = false; } else partialState = nextState; if (null === partialState || void 0 === partialState) break a; - newState = assign2({}, newState, partialState); + newState = assign({}, newState, partialState); break a; case ForceUpdate: hasForceUpdate = true; @@ -9455,18 +9455,18 @@ var Components = (() => { } } function insertOrAppendPlacementNodeIntoContainer(node, before, parent) { - var tag2 = node.tag; - if (5 === tag2 || 6 === tag2) + var tag = node.tag; + if (5 === tag || 6 === tag) node = node.stateNode, before ? 8 === parent.nodeType ? parent.parentNode.insertBefore(node, before) : parent.insertBefore(node, before) : (8 === parent.nodeType ? (before = parent.parentNode, before.insertBefore(node, parent)) : (before = parent, before.appendChild(node)), parent = parent._reactRootContainer, null !== parent && void 0 !== parent || null !== before.onclick || (before.onclick = noop$1)); - else if (4 !== tag2 && 27 !== tag2 && (node = node.child, null !== node)) + else if (4 !== tag && 27 !== tag && (node = node.child, null !== node)) for (insertOrAppendPlacementNodeIntoContainer(node, before, parent), node = node.sibling; null !== node; ) insertOrAppendPlacementNodeIntoContainer(node, before, parent), node = node.sibling; } function insertOrAppendPlacementNode(node, before, parent) { - var tag2 = node.tag; - if (5 === tag2 || 6 === tag2) + var tag = node.tag; + if (5 === tag || 6 === tag) node = node.stateNode, before ? parent.insertBefore(node, before) : parent.appendChild(node); - else if (4 !== tag2 && 27 !== tag2 && (node = node.child, null !== node)) + else if (4 !== tag && 27 !== tag && (node = node.child, null !== node)) for (insertOrAppendPlacementNode(node, before, parent), node = node.sibling; null !== node; ) insertOrAppendPlacementNode(node, before, parent), node = node.sibling; } @@ -10002,8 +10002,8 @@ var Components = (() => { function recursivelyTraverseMutationEffects(root$jscomp$0, parentFiber) { var deletions = parentFiber.deletions; if (null !== deletions) - for (var i2 = 0; i2 < deletions.length; i2++) { - var root2 = root$jscomp$0, returnFiber = parentFiber, deletedFiber = deletions[i2], parent = returnFiber; + for (var i = 0; i < deletions.length; i++) { + var root2 = root$jscomp$0, returnFiber = parentFiber, deletedFiber = deletions[i], parent = returnFiber; a: for (; null !== parent; ) { switch (parent.tag) { case 27: @@ -10096,9 +10096,9 @@ var Components = (() => { root2 ).get(flags + (current2.href || "")); if (maybeNodes) { - for (var i2 = 0; i2 < maybeNodes.length; i2++) - if (hoistableRoot = maybeNodes[i2], hoistableRoot.getAttribute("href") === (null == current2.href ? null : current2.href) && hoistableRoot.getAttribute("rel") === (null == current2.rel ? null : current2.rel) && hoistableRoot.getAttribute("title") === (null == current2.title ? null : current2.title) && hoistableRoot.getAttribute("crossorigin") === (null == current2.crossOrigin ? null : current2.crossOrigin)) { - maybeNodes.splice(i2, 1); + for (var i = 0; i < maybeNodes.length; i++) + if (hoistableRoot = maybeNodes[i], hoistableRoot.getAttribute("href") === (null == current2.href ? null : current2.href) && hoistableRoot.getAttribute("rel") === (null == current2.rel ? null : current2.rel) && hoistableRoot.getAttribute("title") === (null == current2.title ? null : current2.title) && hoistableRoot.getAttribute("crossorigin") === (null == current2.crossOrigin ? null : current2.crossOrigin)) { + maybeNodes.splice(i, 1); break b; } } @@ -10112,12 +10112,12 @@ var Components = (() => { "content", root2 ).get(flags + (current2.content || ""))) { - for (i2 = 0; i2 < maybeNodes.length; i2++) - if (hoistableRoot = maybeNodes[i2], checkAttributeStringCoercion( + for (i = 0; i < maybeNodes.length; i++) + if (hoistableRoot = maybeNodes[i], checkAttributeStringCoercion( current2.content, "content" ), hoistableRoot.getAttribute("content") === (null == current2.content ? null : "" + current2.content) && hoistableRoot.getAttribute("name") === (null == current2.name ? null : current2.name) && hoistableRoot.getAttribute("property") === (null == current2.property ? null : current2.property) && hoistableRoot.getAttribute("http-equiv") === (null == current2.httpEquiv ? null : current2.httpEquiv) && hoistableRoot.getAttribute("charset") === (null == current2.charSet ? null : current2.charSet)) { - maybeNodes.splice(i2, 1); + maybeNodes.splice(i, 1); break b; } } @@ -10167,10 +10167,10 @@ var Components = (() => { hoistableRoot = finishedWork.stateNode; maybeNodes = finishedWork.memoizedProps; try { - for (i2 = hoistableRoot.firstChild; i2; ) { - var nextNode = i2.nextSibling, nodeName = i2.nodeName; - i2[internalHoistableMarker] || "HEAD" === nodeName || "BODY" === nodeName || "SCRIPT" === nodeName || "STYLE" === nodeName || "LINK" === nodeName && "stylesheet" === i2.rel.toLowerCase() || hoistableRoot.removeChild(i2); - i2 = nextNode; + for (i = hoistableRoot.firstChild; i; ) { + var nextNode = i.nextSibling, nodeName = i.nodeName; + i[internalHoistableMarker] || "HEAD" === nodeName || "BODY" === nodeName || "SCRIPT" === nodeName || "STYLE" === nodeName || "LINK" === nodeName && "stylesheet" === i.rel.toLowerCase() || hoistableRoot.removeChild(i); + i = nextNode; } runWithFiberInDEV( finishedWork, @@ -10273,11 +10273,11 @@ var Components = (() => { break; case 22: flags & 512 && (offscreenSubtreeWasHidden || null === current2 || safelyDetachRef(current2, current2.return)); - i2 = null !== finishedWork.memoizedState; + i = null !== finishedWork.memoizedState; nextNode = null !== current2 && null !== current2.memoizedState; nodeName = offscreenSubtreeIsHidden; var prevOffscreenSubtreeWasHidden = offscreenSubtreeWasHidden; - offscreenSubtreeIsHidden = nodeName || i2; + offscreenSubtreeIsHidden = nodeName || i; offscreenSubtreeWasHidden = prevOffscreenSubtreeWasHidden || nextNode; recursivelyTraverseMutationEffects(root2, finishedWork); offscreenSubtreeWasHidden = prevOffscreenSubtreeWasHidden; @@ -10287,13 +10287,13 @@ var Components = (() => { root2._current = finishedWork; root2._visibility &= ~OffscreenDetached; root2._visibility |= root2._pendingVisibility & OffscreenDetached; - if (flags & 8192 && (root2._visibility = i2 ? root2._visibility & ~OffscreenVisible : root2._visibility | OffscreenVisible, i2 && (root2 = offscreenSubtreeIsHidden || offscreenSubtreeWasHidden, null === current2 || nextNode || root2 || recursivelyTraverseDisappearLayoutEffects(finishedWork)), null === finishedWork.memoizedProps || "manual" !== finishedWork.memoizedProps.mode)) + if (flags & 8192 && (root2._visibility = i ? root2._visibility & ~OffscreenVisible : root2._visibility | OffscreenVisible, i && (root2 = offscreenSubtreeIsHidden || offscreenSubtreeWasHidden, null === current2 || nextNode || root2 || recursivelyTraverseDisappearLayoutEffects(finishedWork)), null === finishedWork.memoizedProps || "manual" !== finishedWork.memoizedProps.mode)) a: for (current2 = null, root2 = finishedWork; ; ) { if (5 === root2.tag || 26 === root2.tag || 27 === root2.tag) { if (null === current2) { nextNode = current2 = root2; try { - hoistableRoot = nextNode.stateNode, i2 ? runWithFiberInDEV( + hoistableRoot = nextNode.stateNode, i ? runWithFiberInDEV( nextNode, hideInstance, hoistableRoot @@ -10311,7 +10311,7 @@ var Components = (() => { if (null === current2) { nextNode = root2; try { - maybeNodes = nextNode.stateNode, i2 ? runWithFiberInDEV( + maybeNodes = nextNode.stateNode, i ? runWithFiberInDEV( nextNode, hideTextInstance, maybeNodes @@ -10822,8 +10822,8 @@ var Components = (() => { var deletions = parentFiber.deletions; if (0 !== (parentFiber.flags & 16)) { if (null !== deletions) - for (var i2 = 0; i2 < deletions.length; i2++) { - var childToDelete = deletions[i2]; + for (var i = 0; i < deletions.length; i++) { + var childToDelete = deletions[i]; nextEffect = childToDelete; commitPassiveUnmountEffectsInsideOfDeletedTree_begin( childToDelete, @@ -10870,8 +10870,8 @@ var Components = (() => { var deletions = parentFiber.deletions; if (0 !== (parentFiber.flags & 16)) { if (null !== deletions) - for (var i2 = 0; i2 < deletions.length; i2++) { - var childToDelete = deletions[i2]; + for (var i = 0; i < deletions.length; i++) { + var childToDelete = deletions[i]; nextEffect = childToDelete; commitPassiveUnmountEffectsInsideOfDeletedTree_begin( childToDelete, @@ -10943,15 +10943,15 @@ var Components = (() => { } } } - function FiberNode(tag2, pendingProps, key, mode2) { - this.tag = tag2; + function FiberNode(tag, pendingProps, key, mode) { + this.tag = tag; this.key = key; this.sibling = this.child = this.return = this.stateNode = this.type = this.elementType = null; this.index = 0; this.refCleanup = this.ref = null; this.pendingProps = pendingProps; this.dependencies = this.memoizedState = this.updateQueue = this.memoizedProps = null; - this.mode = mode2; + this.mode = mode; this.subtreeFlags = this.flags = 0; this.deletions = null; this.childLanes = this.lanes = 0; @@ -11020,7 +11020,7 @@ var Components = (() => { }, workInProgress2.selfBaseDuration = current2.selfBaseDuration, workInProgress2.treeBaseDuration = current2.treeBaseDuration); return workInProgress2; } - function createFiberFromTypeAndProps(type, key, pendingProps, owner, mode2, lanes) { + function createFiberFromTypeAndProps(type, key, pendingProps, owner, mode, lanes) { var fiberTag = 0, resolvedType = type; if ("function" === typeof type) shouldConstruct(type) && (fiberTag = 1), resolvedType = resolveFunctionForHotReloading(resolvedType); @@ -11031,26 +11031,26 @@ var Components = (() => { case REACT_FRAGMENT_TYPE: return createFiberFromFragment( pendingProps.children, - mode2, + mode, lanes, key ); case REACT_STRICT_MODE_TYPE: fiberTag = 8; - mode2 |= StrictLegacyMode; - mode2 |= StrictEffectsMode; + mode |= StrictLegacyMode; + mode |= StrictEffectsMode; break; case REACT_PROFILER_TYPE: - return type = pendingProps, owner = mode2, "string" !== typeof type.id && console.error( + return type = pendingProps, owner = mode, "string" !== typeof type.id && console.error( 'Profiler must specify an "id" of type `string` as a prop. Received the type `%s` instead.', typeof type.id ), key = createFiber(12, type, key, owner | ProfileMode), key.elementType = REACT_PROFILER_TYPE, key.lanes = lanes, key.stateNode = { effectDuration: 0, passiveEffectDuration: 0 }, key; case REACT_SUSPENSE_TYPE: - return key = createFiber(13, pendingProps, key, mode2), key.elementType = REACT_SUSPENSE_TYPE, key.lanes = lanes, key; + return key = createFiber(13, pendingProps, key, mode), key.elementType = REACT_SUSPENSE_TYPE, key.lanes = lanes, key; case REACT_SUSPENSE_LIST_TYPE: - return key = createFiber(19, pendingProps, key, mode2), key.elementType = REACT_SUSPENSE_LIST_TYPE, key.lanes = lanes, key; + return key = createFiber(19, pendingProps, key, mode), key.elementType = REACT_SUSPENSE_LIST_TYPE, key.lanes = lanes, key; case REACT_OFFSCREEN_TYPE: - return createFiberFromOffscreen(pendingProps, mode2, lanes, key); + return createFiberFromOffscreen(pendingProps, mode, lanes, key); default: if ("object" === typeof type && null !== type) switch (type.$$typeof) { @@ -11084,32 +11084,32 @@ var Components = (() => { ); resolvedType = null; } - key = createFiber(fiberTag, pendingProps, key, mode2); + key = createFiber(fiberTag, pendingProps, key, mode); key.elementType = type; key.type = resolvedType; key.lanes = lanes; key._debugOwner = owner; return key; } - function createFiberFromElement(element, mode2, lanes) { - mode2 = createFiberFromTypeAndProps( + function createFiberFromElement(element, mode, lanes) { + mode = createFiberFromTypeAndProps( element.type, element.key, element.props, element._owner, - mode2, + mode, lanes ); - mode2._debugOwner = element._owner; - return mode2; + mode._debugOwner = element._owner; + return mode; } - function createFiberFromFragment(elements, mode2, lanes, key) { - elements = createFiber(7, elements, key, mode2); + function createFiberFromFragment(elements, mode, lanes, key) { + elements = createFiber(7, elements, key, mode); elements.lanes = lanes; return elements; } - function createFiberFromOffscreen(pendingProps, mode2, lanes, key) { - pendingProps = createFiber(22, pendingProps, key, mode2); + function createFiberFromOffscreen(pendingProps, mode, lanes, key) { + pendingProps = createFiber(22, pendingProps, key, mode); pendingProps.elementType = REACT_OFFSCREEN_TYPE; pendingProps.lanes = lanes; var primaryChildInstance = { @@ -11145,25 +11145,25 @@ var Components = (() => { pendingProps.stateNode = primaryChildInstance; return pendingProps; } - function createFiberFromText(content, mode2, lanes) { - content = createFiber(6, content, null, mode2); + function createFiberFromText(content, mode, lanes) { + content = createFiber(6, content, null, mode); content.lanes = lanes; return content; } - function createFiberFromPortal(portal, mode2, lanes) { - mode2 = createFiber( + function createFiberFromPortal(portal, mode, lanes) { + mode = createFiber( 4, null !== portal.children ? portal.children : [], portal.key, - mode2 + mode ); - mode2.lanes = lanes; - mode2.stateNode = { + mode.lanes = lanes; + mode.stateNode = { containerInfo: portal.containerInfo, pendingChildren: null, implementation: portal.implementation }; - return mode2; + return mode; } function markUpdate(workInProgress2) { workInProgress2.flags |= 4; @@ -11345,7 +11345,7 @@ var Components = (() => { }) : current2.createElement(renderLanes2), -1 === renderLanes2.indexOf("-") && (renderLanes2 !== renderLanes2.toLowerCase() && console.error( "<%s /> is using incorrect casing. Use PascalCase for React components, or lowercase for HTML elements.", renderLanes2 - ), "[object HTMLUnknownElement]" !== Object.prototype.toString.call(current2) || hasOwnProperty2.call( + ), "[object HTMLUnknownElement]" !== Object.prototype.toString.call(current2) || hasOwnProperty.call( warnedUnknownTags, renderLanes2 ) || (warnedUnknownTags[renderLanes2] = true, console.error( @@ -11889,10 +11889,10 @@ var Components = (() => { } function isRenderConsistentWithExternalStores(finishedWork) { for (var node = finishedWork; ; ) { - var tag2 = node.tag; - if ((0 === tag2 || 11 === tag2 || 15 === tag2) && node.flags & 16384 && (tag2 = node.updateQueue, null !== tag2 && (tag2 = tag2.stores, null !== tag2))) - for (var i2 = 0; i2 < tag2.length; i2++) { - var check = tag2[i2], getSnapshot = check.getSnapshot; + var tag = node.tag; + if ((0 === tag || 11 === tag || 15 === tag) && node.flags & 16384 && (tag = node.updateQueue, null !== tag && (tag = tag.stores, null !== tag))) + for (var i = 0; i < tag.length; i++) { + var check = tag[i], getSnapshot = check.getSnapshot; check = check.value; try { if (!objectIs(getSnapshot(), check)) return false; @@ -11900,9 +11900,9 @@ var Components = (() => { return false; } } - tag2 = node.child; - if (node.subtreeFlags & 16384 && null !== tag2) - tag2.return = node, node = tag2; + tag = node.child; + if (node.subtreeFlags & 16384 && null !== tag) + tag.return = node, node = tag; else { if (node === finishedWork) break; for (; null === node.sibling; ) { @@ -11923,8 +11923,8 @@ var Components = (() => { didAttemptEntireTree && (root2.warmLanes |= suspendedLanes); didAttemptEntireTree = root2.expirationTimes; for (var lanes = suspendedLanes; 0 < lanes; ) { - var index2 = 31 - clz32(lanes), lane = 1 << index2; - didAttemptEntireTree[index2] = -1; + var index = 31 - clz32(lanes), lane = 1 << index; + didAttemptEntireTree[index] = -1; lanes &= ~lane; } 0 !== spawnedLane && markSpawnedDeferredLane(root2, spawnedLane, suspendedLanes); @@ -11967,8 +11967,8 @@ var Components = (() => { var allEntangledLanes = root2.entangledLanes; if (0 !== allEntangledLanes) for (root2 = root2.entanglements, allEntangledLanes &= lanes; 0 < allEntangledLanes; ) { - var index2 = 31 - clz32(allEntangledLanes), lane = 1 << index2; - lanes |= root2[index2]; + var index = 31 - clz32(allEntangledLanes), lane = 1 << index; + lanes |= root2[index]; allEntangledLanes &= ~lane; } entangledRenderLanes = lanes; @@ -12695,13 +12695,13 @@ var Components = (() => { } function warnAboutUpdateOnNotYetMountedFiberInDEV(fiber) { if ((executionContext & RenderContext) === NoContext) { - var tag2 = fiber.tag; - if (3 === tag2 || 1 === tag2 || 0 === tag2 || 11 === tag2 || 14 === tag2 || 15 === tag2) { - tag2 = getComponentNameFromFiber(fiber) || "ReactComponent"; + var tag = fiber.tag; + if (3 === tag || 1 === tag || 0 === tag || 11 === tag || 14 === tag || 15 === tag) { + tag = getComponentNameFromFiber(fiber) || "ReactComponent"; if (null !== didWarnStateUpdateForNotYetMountedComponent) { - if (didWarnStateUpdateForNotYetMountedComponent.has(tag2)) return; - didWarnStateUpdateForNotYetMountedComponent.add(tag2); - } else didWarnStateUpdateForNotYetMountedComponent = /* @__PURE__ */ new Set([tag2]); + if (didWarnStateUpdateForNotYetMountedComponent.has(tag)) return; + didWarnStateUpdateForNotYetMountedComponent.add(tag); + } else didWarnStateUpdateForNotYetMountedComponent = /* @__PURE__ */ new Set([tag]); runWithFiberInDEV(fiber, function() { console.error( "Can't perform a React state update on a component that hasn't mounted yet. This indicates that you have a side-effect in your render function that asynchronously later calls tries to update the component. Move this work to useEffect instead." @@ -12776,10 +12776,10 @@ var Components = (() => { } function scheduleTaskForRootDuringMicrotask(root2, currentTime) { for (var suspendedLanes = root2.suspendedLanes, pingedLanes = root2.pingedLanes, expirationTimes = root2.expirationTimes, lanes = root2.pendingLanes & -62914561; 0 < lanes; ) { - var index2 = 31 - clz32(lanes), lane = 1 << index2, expirationTime = expirationTimes[index2]; + var index = 31 - clz32(lanes), lane = 1 << index, expirationTime = expirationTimes[index]; if (-1 === expirationTime) { if (0 === (lane & suspendedLanes) || 0 !== (lane & pingedLanes)) - expirationTimes[index2] = computeExpirationTime(lane, currentTime); + expirationTimes[index] = computeExpirationTime(lane, currentTime); } else expirationTime <= currentTime && (root2.expiredLanes |= lane); lanes &= ~lane; } @@ -12942,8 +12942,8 @@ var Components = (() => { } function processDispatchQueue(dispatchQueue, eventSystemFlags) { eventSystemFlags = 0 !== (eventSystemFlags & 4); - for (var i2 = 0; i2 < dispatchQueue.length; i2++) { - var _dispatchQueue$i = dispatchQueue[i2]; + for (var i = 0; i < dispatchQueue.length; i++) { + var _dispatchQueue$i = dispatchQueue[i]; a: { var previousInstance = void 0, event = _dispatchQueue$i.event; _dispatchQueue$i = _dispatchQueue$i.listeners; @@ -13488,13 +13488,13 @@ var Components = (() => { } function noop$1() { } - function setProp(domElement, tag2, key, value, props, prevValue) { + function setProp(domElement, tag, key, value, props, prevValue) { switch (key) { case "children": if ("string" === typeof value) - validateTextNesting(value, tag2), "body" === tag2 || "textarea" === tag2 && "" === value || setTextContent(domElement, value); + validateTextNesting(value, tag), "body" === tag || "textarea" === tag && "" === value || setTextContent(domElement, value); else if ("number" === typeof value || "bigint" === typeof value) - validateTextNesting("" + value, tag2), "body" !== tag2 && setTextContent(domElement, "" + value); + validateTextNesting("" + value, tag), "body" !== tag && setTextContent(domElement, "" + value); break; case "className": setValueForKnownAttribute(domElement, "class", value); @@ -13513,13 +13513,13 @@ var Components = (() => { setValueForStyles(domElement, value, prevValue); break; case "data": - if ("object" !== tag2) { + if ("object" !== tag) { setValueForKnownAttribute(domElement, "data", value); break; } case "src": case "href": - if ("" === value && ("a" !== tag2 || "href" !== key)) { + if ("" === value && ("a" !== tag || "href" !== key)) { "src" === key ? console.error( 'An empty string ("") was passed to the %s attribute. This may cause the browser to download the whole page again over the network. To fix this, either do not render the element at all or pass null to %s instead of an empty string.', key, @@ -13542,15 +13542,15 @@ var Components = (() => { break; case "action": case "formAction": - null != value && ("form" === tag2 ? "formAction" === key ? console.error( + null != value && ("form" === tag ? "formAction" === key ? console.error( "You can only pass the formAction prop to or