| Server IP : 108.167.142.43 / Your IP : 216.73.216.165 Web Server : Apache System : Linux gator4174.hostgator.com 5.14.0-687.39.1.el9_8.x86_64 #1 SMP PREEMPT_DYNAMIC Tue Aug 18 06:09:16 EDT 2026 x86_64 User : delarice ( 2406) PHP Version : 8.3.36 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /home2/delarice/public_html/wp-content/plugins/elementor/assets/js/ |
Upload File : |
(function(react, react_dom) {
//#region \0rolldown/runtime.js
var __create = Object.create;
var __defProp = Object.defineProperty;
var __name = (target, value) => __defProp(target, "name", {
value,
configurable: true
});
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
var __getOwnPropNames = Object.getOwnPropertyNames;
var __getProtoOf = Object.getPrototypeOf;
var __hasOwnProp = Object.prototype.hasOwnProperty;
var __commonJSMin = (cb, mod) => () => (mod || (cb((mod = { exports: {} }).exports, mod), cb = null), mod.exports);
var __copyProps = (to, from, except, desc) => {
if (from && typeof from === "object" || typeof from === "function") {
for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
key = keys[i];
if (!__hasOwnProp.call(to, key) && key !== except) {
__defProp(to, key, {
get: ((k) => from[k]).bind(null, key),
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
});
}
}
}
return to;
};
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
value: mod,
enumerable: true
}) : target, mod));
//#endregion
react = __toESM(react);
react_dom = __toESM(react_dom);
//#region node_modules/react-dom/client.js
var require_client = /* @__PURE__ */ __commonJSMin(((exports) => {
var m$1 = (globalThis.ReactDOM);
var i = m$1.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
exports.createRoot = function(c, o) {
i.usingClientEntryPoint = true;
try {
return m$1.createRoot(c, o);
} finally {
i.usingClientEntryPoint = false;
}
};
}));
//#endregion
//#region assets/dev/js/utils/react.js
var import_client = require_client();
/**
* Support conditional rendering of a React App to the DOM, based on the React version.
* We use `createRoot` when available, but fallback to `ReactDOM.render` for older versions.
*
* @param {Promise.resolve(React).ReactElement} app The app to render.
* @param {HTMLElement} domElement The DOM element to render the app into.
*
* @return {{ unmount: () => void }} The unmount function.
*/
function render(app, domElement) {
var unmountFunction;
try {
var root = (0, import_client.createRoot)(domElement);
root.render(app);
unmountFunction = function unmountFunction() {
root.unmount();
};
} catch (e) {
react_dom.render(app, domElement);
unmountFunction = function unmountFunction() {
react_dom.unmountComponentAtNode(domElement);
};
}
return { unmount: unmountFunction };
}
var react_default = { render };
//#endregion
//#region node_modules/react/cjs/react-jsx-runtime.development.js
/**
* @license React
* react-jsx-runtime.development.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
var require_react_jsx_runtime_development = /* @__PURE__ */ __commonJSMin(((exports) => {
(function() {
"use strict";
var React = (globalThis.React);
var REACT_ELEMENT_TYPE = Symbol.for("react.element");
var REACT_PORTAL_TYPE = Symbol.for("react.portal");
var REACT_FRAGMENT_TYPE = Symbol.for("react.fragment");
var REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode");
var REACT_PROFILER_TYPE = Symbol.for("react.profiler");
var REACT_PROVIDER_TYPE = Symbol.for("react.provider");
var REACT_CONTEXT_TYPE = Symbol.for("react.context");
var REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref");
var REACT_SUSPENSE_TYPE = Symbol.for("react.suspense");
var REACT_SUSPENSE_LIST_TYPE = Symbol.for("react.suspense_list");
var REACT_MEMO_TYPE = Symbol.for("react.memo");
var REACT_LAZY_TYPE = Symbol.for("react.lazy");
var REACT_OFFSCREEN_TYPE = Symbol.for("react.offscreen");
var MAYBE_ITERATOR_SYMBOL = Symbol.iterator;
var FAUX_ITERATOR_SYMBOL = "@@iterator";
function getIteratorFn(maybeIterable) {
if (maybeIterable === null || typeof maybeIterable !== "object") return null;
var maybeIterator = MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL];
if (typeof maybeIterator === "function") return maybeIterator;
return null;
}
var ReactSharedInternals = React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
function error(format) {
for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) args[_key2 - 1] = arguments[_key2];
printWarning("error", format, args);
}
function printWarning(level, format, args) {
var stack = ReactSharedInternals.ReactDebugCurrentFrame.getStackAddendum();
if (stack !== "") {
format += "%s";
args = args.concat([stack]);
}
var argsWithFormat = args.map(function(item) {
return String(item);
});
argsWithFormat.unshift("Warning: " + format);
Function.prototype.apply.call(console[level], console, argsWithFormat);
}
var enableScopeAPI = false;
var enableCacheElement = false;
var enableTransitionTracing = false;
var enableLegacyHidden = false;
var enableDebugTracing = false;
var REACT_MODULE_REFERENCE = Symbol.for("react.module.reference");
function isValidElementType(type) {
if (typeof type === "string" || typeof type === "function") return true;
if (type === REACT_FRAGMENT_TYPE || type === REACT_PROFILER_TYPE || enableDebugTracing || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || enableLegacyHidden || type === REACT_OFFSCREEN_TYPE || enableScopeAPI || enableCacheElement || enableTransitionTracing) return true;
if (typeof type === "object" && type !== null) {
if (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || type.$$typeof === REACT_MODULE_REFERENCE || type.getModuleId !== void 0) return true;
}
return false;
}
function getWrappedName(outerType, innerType, wrapperName) {
var displayName = outerType.displayName;
if (displayName) return displayName;
var functionName = innerType.displayName || innerType.name || "";
return functionName !== "" ? wrapperName + "(" + functionName + ")" : wrapperName;
}
function getContextName(type) {
return type.displayName || "Context";
}
function getComponentNameFromType(type) {
if (type == null) return null;
if (typeof type.tag === "number") error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue.");
if (typeof type === "function") return type.displayName || type.name || null;
if (typeof type === "string") return type;
switch (type) {
case REACT_FRAGMENT_TYPE: return "Fragment";
case REACT_PORTAL_TYPE: return "Portal";
case REACT_PROFILER_TYPE: return "Profiler";
case REACT_STRICT_MODE_TYPE: return "StrictMode";
case REACT_SUSPENSE_TYPE: return "Suspense";
case REACT_SUSPENSE_LIST_TYPE: return "SuspenseList";
}
if (typeof type === "object") switch (type.$$typeof) {
case REACT_CONTEXT_TYPE: return getContextName(type) + ".Consumer";
case REACT_PROVIDER_TYPE: return getContextName(type._context) + ".Provider";
case REACT_FORWARD_REF_TYPE: return getWrappedName(type, type.render, "ForwardRef");
case REACT_MEMO_TYPE:
var outerName = type.displayName || null;
if (outerName !== null) return outerName;
return getComponentNameFromType(type.type) || "Memo";
case REACT_LAZY_TYPE:
var lazyComponent = type;
var payload = lazyComponent._payload;
var init = lazyComponent._init;
try {
return getComponentNameFromType(init(payload));
} catch (x) {
return null;
}
}
return null;
}
var assign = Object.assign;
var disabledDepth = 0;
var prevLog;
var prevInfo;
var prevWarn;
var prevError;
var prevGroup;
var prevGroupCollapsed;
var prevGroupEnd;
function disabledLog() {}
disabledLog.__reactDisabledLog = true;
function disableLogs() {
if (disabledDepth === 0) {
prevLog = console.log;
prevInfo = console.info;
prevWarn = console.warn;
prevError = console.error;
prevGroup = console.group;
prevGroupCollapsed = console.groupCollapsed;
prevGroupEnd = console.groupEnd;
var props = {
configurable: true,
enumerable: true,
value: disabledLog,
writable: true
};
Object.defineProperties(console, {
info: props,
log: props,
warn: props,
error: props,
group: props,
groupCollapsed: props,
groupEnd: props
});
}
disabledDepth++;
}
function reenableLogs() {
disabledDepth--;
if (disabledDepth === 0) {
var props = {
configurable: true,
enumerable: true,
writable: true
};
Object.defineProperties(console, {
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 })
});
}
if (disabledDepth < 0) error("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
}
var ReactCurrentDispatcher = ReactSharedInternals.ReactCurrentDispatcher;
var prefix;
function describeBuiltInComponentFrame(name, source, ownerFn) {
if (prefix === void 0) try {
throw Error();
} catch (x) {
var match = x.stack.trim().match(/\n( *(at )?)/);
prefix = match && match[1] || "";
}
return "\n" + prefix + name;
}
var reentry = false;
var componentFrameCache = new (typeof WeakMap === "function" ? WeakMap : Map)();
function describeNativeComponentFrame(fn, construct) {
if (!fn || reentry) return "";
var frame = componentFrameCache.get(fn);
if (frame !== void 0) return frame;
var control;
reentry = true;
var previousPrepareStackTrace = Error.prepareStackTrace;
Error.prepareStackTrace = void 0;
var previousDispatcher = ReactCurrentDispatcher.current;
ReactCurrentDispatcher.current = null;
disableLogs();
try {
if (construct) {
var Fake = function() {
throw Error();
};
Object.defineProperty(Fake.prototype, "props", { set: function() {
throw Error();
} });
if (typeof Reflect === "object" && Reflect.construct) {
try {
Reflect.construct(Fake, []);
} catch (x) {
control = x;
}
Reflect.construct(fn, [], Fake);
} else {
try {
Fake.call();
} catch (x) {
control = x;
}
fn.call(Fake.prototype);
}
} else {
try {
throw Error();
} catch (x) {
control = x;
}
fn();
}
} catch (sample) {
if (sample && control && typeof sample.stack === "string") {
var sampleLines = sample.stack.split("\n");
var controlLines = control.stack.split("\n");
var s = sampleLines.length - 1;
var c = controlLines.length - 1;
while (s >= 1 && c >= 0 && sampleLines[s] !== controlLines[c]) c--;
for (; s >= 1 && c >= 0; s--, c--) if (sampleLines[s] !== controlLines[c]) {
if (s !== 1 || c !== 1) do {
s--;
c--;
if (c < 0 || sampleLines[s] !== controlLines[c]) {
var _frame = "\n" + sampleLines[s].replace(" at new ", " at ");
if (fn.displayName && _frame.includes("<anonymous>")) _frame = _frame.replace("<anonymous>", fn.displayName);
if (typeof fn === "function") componentFrameCache.set(fn, _frame);
return _frame;
}
} while (s >= 1 && c >= 0);
break;
}
}
} finally {
reentry = false;
ReactCurrentDispatcher.current = previousDispatcher;
reenableLogs();
Error.prepareStackTrace = previousPrepareStackTrace;
}
var name = fn ? fn.displayName || fn.name : "";
var syntheticFrame = name ? describeBuiltInComponentFrame(name) : "";
if (typeof fn === "function") componentFrameCache.set(fn, syntheticFrame);
return syntheticFrame;
}
function describeFunctionComponentFrame(fn, source, ownerFn) {
return describeNativeComponentFrame(fn, false);
}
function shouldConstruct(Component) {
var prototype = Component.prototype;
return !!(prototype && prototype.isReactComponent);
}
function describeUnknownElementTypeFrameInDEV(type, source, ownerFn) {
if (type == null) return "";
if (typeof type === "function") return describeNativeComponentFrame(type, shouldConstruct(type));
if (typeof type === "string") return describeBuiltInComponentFrame(type);
switch (type) {
case REACT_SUSPENSE_TYPE: return describeBuiltInComponentFrame("Suspense");
case REACT_SUSPENSE_LIST_TYPE: return describeBuiltInComponentFrame("SuspenseList");
}
if (typeof type === "object") switch (type.$$typeof) {
case REACT_FORWARD_REF_TYPE: return describeFunctionComponentFrame(type.render);
case REACT_MEMO_TYPE: return describeUnknownElementTypeFrameInDEV(type.type, source, ownerFn);
case REACT_LAZY_TYPE:
var lazyComponent = type;
var payload = lazyComponent._payload;
var init = lazyComponent._init;
try {
return describeUnknownElementTypeFrameInDEV(init(payload), source, ownerFn);
} catch (x) {}
}
return "";
}
var hasOwnProperty = Object.prototype.hasOwnProperty;
var loggedTypeFailures = {};
var ReactDebugCurrentFrame = ReactSharedInternals.ReactDebugCurrentFrame;
function setCurrentlyValidatingElement(element) {
if (element) {
var owner = element._owner;
var stack = describeUnknownElementTypeFrameInDEV(element.type, element._source, owner ? owner.type : null);
ReactDebugCurrentFrame.setExtraStackFrame(stack);
} else ReactDebugCurrentFrame.setExtraStackFrame(null);
}
function checkPropTypes(typeSpecs, values, location, componentName, element) {
var has = Function.call.bind(hasOwnProperty);
for (var typeSpecName in typeSpecs) if (has(typeSpecs, typeSpecName)) {
var error$1 = void 0;
try {
if (typeof typeSpecs[typeSpecName] !== "function") {
var err = Error((componentName || "React class") + ": " + location + " type `" + typeSpecName + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof typeSpecs[typeSpecName] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
err.name = "Invariant Violation";
throw err;
}
error$1 = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
} catch (ex) {
error$1 = ex;
}
if (error$1 && !(error$1 instanceof Error)) {
setCurrentlyValidatingElement(element);
error("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", componentName || "React class", location, typeSpecName, typeof error$1);
setCurrentlyValidatingElement(null);
}
if (error$1 instanceof Error && !(error$1.message in loggedTypeFailures)) {
loggedTypeFailures[error$1.message] = true;
setCurrentlyValidatingElement(element);
error("Failed %s type: %s", location, error$1.message);
setCurrentlyValidatingElement(null);
}
}
}
var isArrayImpl = Array.isArray;
function isArray(a) {
return isArrayImpl(a);
}
function typeName(value) {
return typeof Symbol === "function" && Symbol.toStringTag && value[Symbol.toStringTag] || value.constructor.name || "Object";
}
function willCoercionThrow(value) {
try {
testStringCoercion(value);
return false;
} catch (e) {
return true;
}
}
function testStringCoercion(value) {
return "" + value;
}
function checkKeyStringCoercion(value) {
if (willCoercionThrow(value)) {
error("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", typeName(value));
return testStringCoercion(value);
}
}
var ReactCurrentOwner = ReactSharedInternals.ReactCurrentOwner;
var RESERVED_PROPS = {
key: true,
ref: true,
__self: true,
__source: true
};
var specialPropKeyWarningShown;
var specialPropRefWarningShown;
var didWarnAboutStringRefs = {};
function hasValidRef(config) {
if (hasOwnProperty.call(config, "ref")) {
var getter = Object.getOwnPropertyDescriptor(config, "ref").get;
if (getter && getter.isReactWarning) return false;
}
return config.ref !== void 0;
}
function hasValidKey(config) {
if (hasOwnProperty.call(config, "key")) {
var getter = Object.getOwnPropertyDescriptor(config, "key").get;
if (getter && getter.isReactWarning) return false;
}
return config.key !== void 0;
}
function warnIfStringRefCannotBeAutoConverted(config, self) {
if (typeof config.ref === "string" && ReactCurrentOwner.current && self && ReactCurrentOwner.current.stateNode !== self) {
var componentName = getComponentNameFromType(ReactCurrentOwner.current.type);
if (!didWarnAboutStringRefs[componentName]) {
error("Component \"%s\" contains the string ref \"%s\". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref", getComponentNameFromType(ReactCurrentOwner.current.type), config.ref);
didWarnAboutStringRefs[componentName] = true;
}
}
}
function defineKeyPropWarningGetter(props, displayName) {
var warnAboutAccessingKey = function() {
if (!specialPropKeyWarningShown) {
specialPropKeyWarningShown = true;
error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", displayName);
}
};
warnAboutAccessingKey.isReactWarning = true;
Object.defineProperty(props, "key", {
get: warnAboutAccessingKey,
configurable: true
});
}
function defineRefPropWarningGetter(props, displayName) {
var warnAboutAccessingRef = function() {
if (!specialPropRefWarningShown) {
specialPropRefWarningShown = true;
error("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", displayName);
}
};
warnAboutAccessingRef.isReactWarning = true;
Object.defineProperty(props, "ref", {
get: warnAboutAccessingRef,
configurable: true
});
}
/**
* Factory method to create a new React element. This no longer adheres to
* the class pattern, so do not use new to call it. Also, instanceof check
* will not work. Instead test $$typeof field against Symbol.for('react.element') to check
* if something is a React Element.
*
* @param {*} type
* @param {*} props
* @param {*} key
* @param {string|object} ref
* @param {*} owner
* @param {*} self A *temporary* helper to detect places where `this` is
* different from the `owner` when React.createElement is called, so that we
* can warn. We want to get rid of owner and replace string `ref`s with arrow
* functions, and as long as `this` and owner are the same, there will be no
* change in behavior.
* @param {*} source An annotation object (added by a transpiler or otherwise)
* indicating filename, line number, and/or other information.
* @internal
*/
var ReactElement = function(type, key, ref, self, source, owner, props) {
var element = {
$$typeof: REACT_ELEMENT_TYPE,
type,
key,
ref,
props,
_owner: owner
};
element._store = {};
Object.defineProperty(element._store, "validated", {
configurable: false,
enumerable: false,
writable: true,
value: false
});
Object.defineProperty(element, "_self", {
configurable: false,
enumerable: false,
writable: false,
value: self
});
Object.defineProperty(element, "_source", {
configurable: false,
enumerable: false,
writable: false,
value: source
});
if (Object.freeze) {
Object.freeze(element.props);
Object.freeze(element);
}
return element;
};
/**
* https://github.com/reactjs/rfcs/pull/107
* @param {*} type
* @param {object} props
* @param {string} key
*/
function jsxDEV(type, config, maybeKey, source, self) {
var propName;
var props = {};
var key = null;
var ref = null;
if (maybeKey !== void 0) {
checkKeyStringCoercion(maybeKey);
key = "" + maybeKey;
}
if (hasValidKey(config)) {
checkKeyStringCoercion(config.key);
key = "" + config.key;
}
if (hasValidRef(config)) {
ref = config.ref;
warnIfStringRefCannotBeAutoConverted(config, self);
}
for (propName in config) if (hasOwnProperty.call(config, propName) && !RESERVED_PROPS.hasOwnProperty(propName)) props[propName] = config[propName];
if (type && type.defaultProps) {
var defaultProps = type.defaultProps;
for (propName in defaultProps) if (props[propName] === void 0) props[propName] = defaultProps[propName];
}
if (key || ref) {
var displayName = typeof type === "function" ? type.displayName || type.name || "Unknown" : type;
if (key) defineKeyPropWarningGetter(props, displayName);
if (ref) defineRefPropWarningGetter(props, displayName);
}
return ReactElement(type, key, ref, self, source, ReactCurrentOwner.current, props);
}
var ReactCurrentOwner$1 = ReactSharedInternals.ReactCurrentOwner;
var ReactDebugCurrentFrame$1 = ReactSharedInternals.ReactDebugCurrentFrame;
function setCurrentlyValidatingElement$1(element) {
if (element) {
var owner = element._owner;
var stack = describeUnknownElementTypeFrameInDEV(element.type, element._source, owner ? owner.type : null);
ReactDebugCurrentFrame$1.setExtraStackFrame(stack);
} else ReactDebugCurrentFrame$1.setExtraStackFrame(null);
}
var propTypesMisspellWarningShown = false;
/**
* Verifies the object is a ReactElement.
* See https://reactjs.org/docs/react-api.html#isvalidelement
* @param {?object} object
* @return {boolean} True if `object` is a ReactElement.
* @final
*/
function isValidElement(object) {
return typeof object === "object" && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
}
function getDeclarationErrorAddendum() {
if (ReactCurrentOwner$1.current) {
var name = getComponentNameFromType(ReactCurrentOwner$1.current.type);
if (name) return "\n\nCheck the render method of `" + name + "`.";
}
return "";
}
function getSourceInfoErrorAddendum(source) {
if (source !== void 0) {
var fileName = source.fileName.replace(/^.*[\\\/]/, "");
var lineNumber = source.lineNumber;
return "\n\nCheck your code at " + fileName + ":" + lineNumber + ".";
}
return "";
}
/**
* Warn if there's no key explicitly set on dynamic arrays of children or
* object keys are not valid. This allows us to keep track of children between
* updates.
*/
var ownerHasKeyUseWarning = {};
function getCurrentComponentErrorInfo(parentType) {
var info = getDeclarationErrorAddendum();
if (!info) {
var parentName = typeof parentType === "string" ? parentType : parentType.displayName || parentType.name;
if (parentName) info = "\n\nCheck the top-level render call using <" + parentName + ">.";
}
return info;
}
/**
* Warn if the element doesn't have an explicit key assigned to it.
* This element is in an array. The array could grow and shrink or be
* reordered. All children that haven't already been validated are required to
* have a "key" property assigned to it. Error statuses are cached so a warning
* will only be shown once.
*
* @internal
* @param {ReactElement} element Element that requires a key.
* @param {*} parentType element's parent's type.
*/
function validateExplicitKey(element, parentType) {
if (!element._store || element._store.validated || element.key != null) return;
element._store.validated = true;
var currentComponentErrorInfo = getCurrentComponentErrorInfo(parentType);
if (ownerHasKeyUseWarning[currentComponentErrorInfo]) return;
ownerHasKeyUseWarning[currentComponentErrorInfo] = true;
var childOwner = "";
if (element && element._owner && element._owner !== ReactCurrentOwner$1.current) childOwner = " It was passed a child from " + getComponentNameFromType(element._owner.type) + ".";
setCurrentlyValidatingElement$1(element);
error("Each child in a list should have a unique \"key\" prop.%s%s See https://reactjs.org/link/warning-keys for more information.", currentComponentErrorInfo, childOwner);
setCurrentlyValidatingElement$1(null);
}
/**
* Ensure that every element either is passed in a static location, in an
* array with an explicit keys property defined, or in an object literal
* with valid key property.
*
* @internal
* @param {ReactNode} node Statically passed child of any type.
* @param {*} parentType node's parent's type.
*/
function validateChildKeys(node, parentType) {
if (typeof node !== "object") return;
if (isArray(node)) for (var i = 0; i < node.length; i++) {
var child = node[i];
if (isValidElement(child)) validateExplicitKey(child, parentType);
}
else if (isValidElement(node)) {
if (node._store) node._store.validated = true;
} else if (node) {
var iteratorFn = getIteratorFn(node);
if (typeof iteratorFn === "function") {
if (iteratorFn !== node.entries) {
var iterator = iteratorFn.call(node);
var step;
while (!(step = iterator.next()).done) if (isValidElement(step.value)) validateExplicitKey(step.value, parentType);
}
}
}
}
/**
* Given an element, validate that its props follow the propTypes definition,
* provided by the type.
*
* @param {ReactElement} element
*/
function validatePropTypes(element) {
var type = element.type;
if (type === null || type === void 0 || typeof type === "string") return;
var propTypes;
if (typeof type === "function") propTypes = type.propTypes;
else if (typeof type === "object" && (type.$$typeof === REACT_FORWARD_REF_TYPE || type.$$typeof === REACT_MEMO_TYPE)) propTypes = type.propTypes;
else return;
if (propTypes) {
var name = getComponentNameFromType(type);
checkPropTypes(propTypes, element.props, "prop", name, element);
} else if (type.PropTypes !== void 0 && !propTypesMisspellWarningShown) {
propTypesMisspellWarningShown = true;
error("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", getComponentNameFromType(type) || "Unknown");
}
if (typeof type.getDefaultProps === "function" && !type.getDefaultProps.isReactClassApproved) error("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
}
/**
* Given a fragment, validate that it can only be provided with fragment props
* @param {ReactElement} fragment
*/
function validateFragmentProps(fragment) {
var keys = Object.keys(fragment.props);
for (var i = 0; i < keys.length; i++) {
var key = keys[i];
if (key !== "children" && key !== "key") {
setCurrentlyValidatingElement$1(fragment);
error("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", key);
setCurrentlyValidatingElement$1(null);
break;
}
}
if (fragment.ref !== null) {
setCurrentlyValidatingElement$1(fragment);
error("Invalid attribute `ref` supplied to `React.Fragment`.");
setCurrentlyValidatingElement$1(null);
}
}
var didWarnAboutKeySpread = {};
function jsxWithValidation(type, props, key, isStaticChildren, source, self) {
var validType = isValidElementType(type);
if (!validType) {
var info = "";
if (type === void 0 || typeof type === "object" && type !== null && Object.keys(type).length === 0) info += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.";
var sourceInfo = getSourceInfoErrorAddendum(source);
if (sourceInfo) info += sourceInfo;
else info += getDeclarationErrorAddendum();
var typeString;
if (type === null) typeString = "null";
else if (isArray(type)) typeString = "array";
else if (type !== void 0 && type.$$typeof === REACT_ELEMENT_TYPE) {
typeString = "<" + (getComponentNameFromType(type.type) || "Unknown") + " />";
info = " Did you accidentally export a JSX literal instead of a component?";
} else typeString = typeof type;
error("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", typeString, info);
}
var element = jsxDEV(type, props, key, source, self);
if (element == null) return element;
if (validType) {
var children = props.children;
if (children !== void 0) if (isStaticChildren) if (isArray(children)) {
for (var i = 0; i < children.length; i++) validateChildKeys(children[i], type);
if (Object.freeze) Object.freeze(children);
} else error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
else validateChildKeys(children, type);
}
if (hasOwnProperty.call(props, "key")) {
var componentName = getComponentNameFromType(type);
var keys = Object.keys(props).filter(function(k) {
return k !== "key";
});
var beforeExample = keys.length > 0 ? "{key: someKey, " + keys.join(": ..., ") + ": ...}" : "{key: someKey}";
if (!didWarnAboutKeySpread[componentName + beforeExample]) {
error("A props object containing a \"key\" prop is being spread into JSX:\n let props = %s;\n <%s {...props} />\nReact keys must be passed directly to JSX without using spread:\n let props = %s;\n <%s key={someKey} {...props} />", beforeExample, componentName, keys.length > 0 ? "{" + keys.join(": ..., ") + ": ...}" : "{}", componentName);
didWarnAboutKeySpread[componentName + beforeExample] = true;
}
}
if (type === REACT_FRAGMENT_TYPE) validateFragmentProps(element);
else validatePropTypes(element);
return element;
}
function jsxWithValidationStatic(type, props, key) {
return jsxWithValidation(type, props, key, true);
}
function jsxWithValidationDynamic(type, props, key) {
return jsxWithValidation(type, props, key, false);
}
var jsx = jsxWithValidationDynamic;
var jsxs = jsxWithValidationStatic;
exports.Fragment = REACT_FRAGMENT_TYPE;
exports.jsx = jsx;
exports.jsxs = jsxs;
})();
}));
//#endregion
//#region node_modules/react/jsx-runtime.js
var require_jsx_runtime = /* @__PURE__ */ __commonJSMin(((exports, module) => {
module.exports = require_react_jsx_runtime_development();
}));
//#endregion
//#region \0@oxc-project+runtime@0.140.0/helpers/esm/typeof.js
var import_jsx_runtime = require_jsx_runtime();
function _typeof(o) {
"@babel/helpers - typeof";
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o) {
return typeof o;
} : function(o) {
return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
}, _typeof(o);
}
//#endregion
//#region \0@oxc-project+runtime@0.140.0/helpers/esm/toPrimitive.js
function toPrimitive(t, r) {
if ("object" != _typeof(t) || !t) return t;
var e = t[Symbol.toPrimitive];
if (void 0 !== e) {
var i = e.call(t, r || "default");
if ("object" != _typeof(i)) return i;
throw new TypeError("@@toPrimitive must return a primitive value.");
}
return ("string" === r ? String : Number)(t);
}
//#endregion
//#region \0@oxc-project+runtime@0.140.0/helpers/esm/toPropertyKey.js
function toPropertyKey(t) {
var i = toPrimitive(t, "string");
return "symbol" == _typeof(i) ? i : i + "";
}
//#endregion
//#region \0@oxc-project+runtime@0.140.0/helpers/esm/defineProperty.js
function _defineProperty(e, r, t) {
return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
value: t,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[r] = t, e;
}
//#endregion
//#region \0@oxc-project+runtime@0.140.0/helpers/esm/objectSpread2.js
function ownKeys(e, r) {
var t = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var o = Object.getOwnPropertySymbols(e);
r && (o = o.filter(function(r) {
return Object.getOwnPropertyDescriptor(e, r).enumerable;
})), t.push.apply(t, o);
}
return t;
}
function _objectSpread2(e) {
for (var r = 1; r < arguments.length; r++) {
var t = null != arguments[r] ? arguments[r] : {};
r % 2 ? ownKeys(Object(t), !0).forEach(function(r) {
_defineProperty(e, r, t[r]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function(r) {
Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));
});
}
return e;
}
//#endregion
//#region \0@oxc-project+runtime@0.140.0/helpers/esm/objectWithoutPropertiesLoose.js
function _objectWithoutPropertiesLoose(r, e) {
if (null == r) return {};
var t = {};
for (var n in r) if ({}.hasOwnProperty.call(r, n)) {
if (e.includes(n)) continue;
t[n] = r[n];
}
return t;
}
//#endregion
//#region \0@oxc-project+runtime@0.140.0/helpers/esm/objectWithoutProperties.js
function _objectWithoutProperties(e, t) {
if (null == e) return {};
var o;
var r;
var i = _objectWithoutPropertiesLoose(e, t);
if (Object.getOwnPropertySymbols) {
var s = Object.getOwnPropertySymbols(e);
for (r = 0; r < s.length; r++) o = s[r], t.includes(o) || {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]);
}
return i;
}
//#endregion
//#region \0@oxc-project+runtime@0.140.0/helpers/esm/asyncToGenerator.js
function asyncGeneratorStep(n, t, e, r, o, a, c) {
try {
var i = n[a](c);
var u = i.value;
} catch (n) {
e(n);
return;
}
i.done ? t(u) : Promise.resolve(u).then(r, o);
}
function _asyncToGenerator(n) {
return function() {
var t = this;
var e = arguments;
return new Promise(function(r, o) {
var a = n.apply(t, e);
function _next(n) {
asyncGeneratorStep(a, r, o, _next, _throw, "next", n);
}
function _throw(n) {
asyncGeneratorStep(a, r, o, _next, _throw, "throw", n);
}
_next(void 0);
});
};
}
//#endregion
//#region \0@oxc-project+runtime@0.140.0/helpers/esm/objectDestructuringEmpty.js
function _objectDestructuringEmpty(t) {
if (null == t) throw new TypeError("Cannot destructure " + t);
}
//#endregion
//#region \0@oxc-project+runtime@0.140.0/helpers/esm/extends.js
function _extends() {
return _extends = Object.assign ? Object.assign.bind() : function(n) {
for (var e = 1; e < arguments.length; e++) {
var t = arguments[e];
for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);
}
return n;
}, _extends.apply(null, arguments);
}
//#endregion
//#region \0@oxc-project+runtime@0.140.0/helpers/esm/asyncIterator.js
function _asyncIterator(r) {
var n;
var t;
var o;
var e = 2;
for ("undefined" != typeof Symbol && (t = Symbol.asyncIterator, o = Symbol.iterator); e--;) {
if (t && null != (n = r[t])) return n.call(r);
if (o && null != (n = r[o])) return new AsyncFromSyncIterator(n.call(r));
t = "@@asyncIterator", o = "@@iterator";
}
throw new TypeError("Object is not async iterable");
}
function AsyncFromSyncIterator(r) {
function AsyncFromSyncIteratorContinuation(r) {
if (Object(r) !== r) return Promise.reject(/* @__PURE__ */ new TypeError(r + " is not an object."));
var n = r.done;
return Promise.resolve(r.value).then(function(r) {
return {
value: r,
done: n
};
});
}
return AsyncFromSyncIterator = function AsyncFromSyncIterator(r) {
this.s = r, this.n = r.next;
}, AsyncFromSyncIterator.prototype = {
s: null,
n: null,
next: function next() {
return AsyncFromSyncIteratorContinuation(this.n.apply(this.s, arguments));
},
"return": function _return(r) {
var n = this.s["return"];
return void 0 === n ? Promise.resolve({
value: r,
done: !0
}) : AsyncFromSyncIteratorContinuation(n.apply(this.s, arguments));
},
"throw": function _throw(r) {
var n = this.s["return"];
return void 0 === n ? Promise.reject(r) : AsyncFromSyncIteratorContinuation(n.apply(this.s, arguments));
}
}, new AsyncFromSyncIterator(r);
}
//#endregion
//#region \0@oxc-project+runtime@0.140.0/helpers/esm/OverloadYield.js
function _OverloadYield(e, d) {
this.v = e, this.k = d;
}
//#endregion
//#region \0@oxc-project+runtime@0.140.0/helpers/esm/asyncGeneratorDelegate.js
function _asyncGeneratorDelegate(t) {
var e = {};
var n = !1;
function pump(e, r) {
return n = !0, r = new Promise(function(n) {
n(t[e](r));
}), {
done: !1,
value: new _OverloadYield(r, 1)
};
}
return e["undefined" != typeof Symbol && Symbol.iterator || "@@iterator"] = function() {
return this;
}, e.next = function(t) {
return n ? (n = !1, t) : pump("next", t);
}, "function" == typeof t["throw"] && (e["throw"] = function(t) {
if (n) throw n = !1, t;
return pump("throw", t);
}), "function" == typeof t["return"] && (e["return"] = function(t) {
return n ? (n = !1, t) : pump("return", t);
}), e;
}
//#endregion
//#region \0@oxc-project+runtime@0.140.0/helpers/esm/awaitAsyncGenerator.js
function _awaitAsyncGenerator(e) {
return new _OverloadYield(e, 0);
}
//#endregion
//#region \0@oxc-project+runtime@0.140.0/helpers/esm/wrapAsyncGenerator.js
function _wrapAsyncGenerator(e) {
return function() {
return new AsyncGenerator(e.apply(this, arguments));
};
}
function AsyncGenerator(e) {
var r;
var t;
function resume(r, t) {
try {
var n = e[r](t);
var o = n.value;
var u = o instanceof _OverloadYield;
Promise.resolve(u ? o.v : o).then(function(t) {
if (u) {
var i = "return" === r ? "return" : "next";
if (!o.k || t.done) return resume(i, t);
t = e[i](t).value;
}
settle(n.done ? "return" : "normal", t);
}, function(e) {
resume("throw", e);
});
} catch (e) {
settle("throw", e);
}
}
function settle(e, n) {
switch (e) {
case "return":
r.resolve({
value: n,
done: !0
});
break;
case "throw":
r.reject(n);
break;
default: r.resolve({
value: n,
done: !1
});
}
(r = r.next) ? resume(r.key, r.arg) : t = null;
}
this._invoke = function(e, n) {
return new Promise(function(o, u) {
var i = {
key: e,
arg: n,
resolve: o,
reject: u,
next: null
};
t ? t = t.next = i : (r = t = i, resume(e, n));
});
}, "function" != typeof e["return"] && (this["return"] = void 0);
}
AsyncGenerator.prototype["function" == typeof Symbol && Symbol.asyncIterator || "@@asyncIterator"] = function() {
return this;
}, AsyncGenerator.prototype.next = function(e) {
return this._invoke("next", e);
}, AsyncGenerator.prototype["throw"] = function(e) {
return this._invoke("throw", e);
}, AsyncGenerator.prototype["return"] = function(e) {
return this._invoke("return", e);
};
//#endregion
//#region node_modules/@elementor/elementor-one-assets/index.esm.js
var _excluded = [
"sx",
"color",
"variant"
];
var _excluded2 = [
"sx",
"unstableToColor",
"unstableGradientAngle"
];
var _excluded3 = [
"loading",
"loadingPosition",
"loadingIndicator"
];
var _excluded4 = ["popupId"];
var _excluded5 = ["path", "url"];
var _excluded6 = [
"url",
"path",
"data",
"parse"
];
var _excluded7 = ["rest_route"];
var _excluded8 = ["shape"];
var _excluded9 = ["onDisconnect", "onConnectClick"];
var _excluded10 = ["_f"];
var _excluded11 = ["_f"];
var _excluded12 = [
"ref",
"message",
"type"
];
var _excluded13 = ["name"];
var _excluded14 = ["slotProps"];
var _excluded15 = ["logo"];
var _excluded16 = [
"slotProps",
"logo",
"onClose"
];
var _excluded17 = ["renderInput", "ListboxProps"];
var _excluded18 = ["children"];
var _excluded19 = [
"onClose",
"action",
"secondaryAction",
"children",
"size"
];
var _excluded20 = ["MenuProps"];
var _excluded21 = ["enableCounter"];
var _excluded22 = ["isWrapped", "noPadding"];
var _excluded23 = ["formControl"];
function w(e, t) {
if (null == e) return {};
var r = {};
for (var n in e) if ({}.hasOwnProperty.call(e, n)) {
if (-1 !== t.indexOf(n)) continue;
r[n] = e[n];
}
return r;
}
function _() {
return _ = Object.assign ? Object.assign.bind() : function(e) {
for (var t = 1; t < arguments.length; t++) {
var r = arguments[t];
for (var n in r) ({}).hasOwnProperty.call(r, n) && (e[n] = r[n]);
}
return e;
}, _.apply(null, arguments);
}
function x(e) {
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
}
function S(e) {
if (Object.prototype.hasOwnProperty.call(e, "__esModule")) return e;
var t = e.default;
if ("function" == typeof t) {
var r = function e() {
var r = !1;
try {
r = this instanceof e;
} catch (_unused) {}
return r ? Reflect.construct(t, arguments, this.constructor) : t.apply(this, arguments);
};
r.prototype = t.prototype;
} else r = {};
return Object.defineProperty(r, "__esModule", { value: !0 }), Object.keys(e).forEach(function(t) {
var n = Object.getOwnPropertyDescriptor(e, t);
Object.defineProperty(r, t, n.get ? n : {
enumerable: !0,
get: function() {
return e[t];
}
});
}), r;
}
var C = { exports: {} };
var O = { exports: {} };
var R;
var I;
var M;
var A;
var P;
var N;
var L;
var D;
var j;
var F;
var $;
var B;
var U;
var q = {};
function W() {
return R || (R = 1, function() {
var e = "function" == typeof Symbol && Symbol.for;
var t = e ? Symbol.for("react.element") : 60103;
var r = e ? Symbol.for("react.portal") : 60106;
var n = e ? Symbol.for("react.fragment") : 60107;
var o = e ? Symbol.for("react.strict_mode") : 60108;
var i = e ? Symbol.for("react.profiler") : 60114;
var s = e ? Symbol.for("react.provider") : 60109;
var a = e ? Symbol.for("react.context") : 60110;
var l = e ? Symbol.for("react.async_mode") : 60111;
var c = e ? Symbol.for("react.concurrent_mode") : 60111;
var u = e ? Symbol.for("react.forward_ref") : 60112;
var p = e ? Symbol.for("react.suspense") : 60113;
var d = e ? Symbol.for("react.suspense_list") : 60120;
var f = e ? Symbol.for("react.memo") : 60115;
var h = e ? Symbol.for("react.lazy") : 60116;
var m = e ? Symbol.for("react.block") : 60121;
var g = e ? Symbol.for("react.fundamental") : 60117;
var v = e ? Symbol.for("react.responder") : 60118;
var y = e ? Symbol.for("react.scope") : 60119;
function b(e) {
if ("object" == typeof e && null !== e) {
var d = e.$$typeof;
switch (d) {
case t:
var m = e.type;
switch (m) {
case l:
case c:
case n:
case i:
case o:
case p: return m;
default:
var g = m && m.$$typeof;
switch (g) {
case a:
case u:
case h:
case f:
case s: return g;
default: return d;
}
}
case r: return d;
}
}
}
var w = l;
var _ = c;
var x = a;
var S = s;
var k = t;
var C = u;
var O = n;
var E = h;
var T = f;
var R = r;
var I = i;
var M = o;
var A = p;
var P = !1;
function N(e) {
return b(e) === c;
}
q.AsyncMode = w, q.ConcurrentMode = _, q.ContextConsumer = x, q.ContextProvider = S, q.Element = k, q.ForwardRef = C, q.Fragment = O, q.Lazy = E, q.Memo = T, q.Portal = R, q.Profiler = I, q.StrictMode = M, q.Suspense = A, q.isAsyncMode = function(e) {
return P || (P = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), N(e) || b(e) === l;
}, q.isConcurrentMode = N, q.isContextConsumer = function(e) {
return b(e) === a;
}, q.isContextProvider = function(e) {
return b(e) === s;
}, q.isElement = function(e) {
return "object" == typeof e && null !== e && e.$$typeof === t;
}, q.isForwardRef = function(e) {
return b(e) === u;
}, q.isFragment = function(e) {
return b(e) === n;
}, q.isLazy = function(e) {
return b(e) === h;
}, q.isMemo = function(e) {
return b(e) === f;
}, q.isPortal = function(e) {
return b(e) === r;
}, q.isProfiler = function(e) {
return b(e) === i;
}, q.isStrictMode = function(e) {
return b(e) === o;
}, q.isSuspense = function(e) {
return b(e) === p;
}, q.isValidElementType = function(e) {
return "string" == typeof e || "function" == typeof e || e === n || e === c || e === i || e === o || e === p || e === d || "object" == typeof e && null !== e && (e.$$typeof === h || e.$$typeof === f || e.$$typeof === s || e.$$typeof === a || e.$$typeof === u || e.$$typeof === g || e.$$typeof === v || e.$$typeof === y || e.$$typeof === m);
}, q.typeOf = b;
}()), q;
}
function H() {
return I || (I = 1, O.exports = W()), O.exports;
}
function G() {
if (A) return M;
A = 1;
var e = Object.getOwnPropertySymbols;
var t = Object.prototype.hasOwnProperty;
var r = Object.prototype.propertyIsEnumerable;
return M = function() {
try {
if (!Object.assign) return !1;
var e = /* @__PURE__ */ new String("abc");
if (e[5] = "de", "5" === Object.getOwnPropertyNames(e)[0]) return !1;
for (var t = {}, r = 0; r < 10; r++) t["_" + String.fromCharCode(r)] = r;
if ("0123456789" !== Object.getOwnPropertyNames(t).map(function(e) {
return t[e];
}).join("")) return !1;
var o = {};
return "abcdefghijklmnopqrst".split("").forEach(function(e) {
o[e] = e;
}), "abcdefghijklmnopqrst" === Object.keys(Object.assign({}, o)).join("");
} catch (e) {
return !1;
}
}() ? Object.assign : function(n, o) {
for (var i, s, a = function(e) {
if (null == e) throw new TypeError("Object.assign cannot be called with null or undefined");
return Object(e);
}(n), l = 1; l < arguments.length; l++) {
for (var c in i = Object(arguments[l])) t.call(i, c) && (a[c] = i[c]);
if (e) {
s = e(i);
for (var u = 0; u < s.length; u++) r.call(i, s[u]) && (a[s[u]] = i[s[u]]);
}
}
return a;
}, M;
}
function K() {
return N ? P : (N = 1, P = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
}
function Y() {
return D ? L : (D = 1, L = Function.call.bind(Object.prototype.hasOwnProperty));
}
function Z() {
if (F) return j;
F = 1;
var e = function() {};
var t = K();
var r = {};
var n = Y();
e = function(e) {
var t = "Warning: " + e;
"undefined" != typeof console && console.error(t);
try {
throw new Error(t);
} catch (e) {}
};
function o(o, i, s, a, l) {
for (var c in o) if (n(o, c)) {
var u;
try {
if ("function" != typeof o[c]) {
var p = Error((a || "React class") + ": " + s + " type `" + c + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof o[c] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
throw p.name = "Invariant Violation", p;
}
u = o[c](i, c, a, s, null, t);
} catch (e) {
u = e;
}
if (!u || u instanceof Error || e((a || "React class") + ": type specification of " + s + " `" + c + "` is invalid; the type checker function must return `null` or an `Error` but returned a " + typeof u + ". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."), u instanceof Error && !(u.message in r)) {
r[u.message] = !0;
var d = l ? l() : "";
e("Failed " + s + " type: " + u.message + (null != d ? d : ""));
}
}
}
return o.resetWarningCache = function() {
r = {};
}, j = o;
}
function X() {
if (B) return $;
B = 1;
var e = H();
var t = G();
var r = K();
var n = Y();
var o = Z();
var i = function() {};
function s() {
return null;
}
return i = function(e) {
var t = "Warning: " + e;
"undefined" != typeof console && console.error(t);
try {
throw new Error(t);
} catch (e) {}
}, $ = function(a, l) {
var c = "function" == typeof Symbol && Symbol.iterator;
var u = "<<anonymous>>";
var p = {
array: m("array"),
bigint: m("bigint"),
bool: m("boolean"),
func: m("function"),
number: m("number"),
object: m("object"),
string: m("string"),
symbol: m("symbol"),
any: h(s),
arrayOf: function(e) {
return h(function(t, n, o, i, s) {
if ("function" != typeof e) return new f("Property `" + s + "` of component `" + o + "` has invalid PropType notation inside arrayOf.");
var a = t[n];
if (!Array.isArray(a)) return new f("Invalid " + i + " `" + s + "` of type `" + y(a) + "` supplied to `" + o + "`, expected an array.");
for (var l = 0; l < a.length; l++) {
var c = e(a, l, o, i, s + "[" + l + "]", r);
if (c instanceof Error) return c;
}
return null;
});
},
element: h(function(e, t, r, n, o) {
var i = e[t];
return a(i) ? null : new f("Invalid " + n + " `" + o + "` of type `" + y(i) + "` supplied to `" + r + "`, expected a single ReactElement.");
}),
elementType: h(function(t, r, n, o, i) {
var s = t[r];
return e.isValidElementType(s) ? null : new f("Invalid " + o + " `" + i + "` of type `" + y(s) + "` supplied to `" + n + "`, expected a single ReactElement type.");
}),
instanceOf: function(e) {
return h(function(t, r, n, o, i) {
if (!(t[r] instanceof e)) {
var s = e.name || u;
return new f("Invalid " + o + " `" + i + "` of type `" + ((a = t[r]).constructor && a.constructor.name ? a.constructor.name : u) + "` supplied to `" + n + "`, expected instance of `" + s + "`.");
}
var a;
return null;
});
},
node: h(function(e, t, r, n, o) {
return v(e[t]) ? null : new f("Invalid " + n + " `" + o + "` supplied to `" + r + "`, expected a ReactNode.");
}),
objectOf: function(e) {
return h(function(t, o, i, s, a) {
if ("function" != typeof e) return new f("Property `" + a + "` of component `" + i + "` has invalid PropType notation inside objectOf.");
var l = t[o];
var c = y(l);
if ("object" !== c) return new f("Invalid " + s + " `" + a + "` of type `" + c + "` supplied to `" + i + "`, expected an object.");
for (var u in l) if (n(l, u)) {
var p = e(l, u, i, s, a + "." + u, r);
if (p instanceof Error) return p;
}
return null;
});
},
oneOf: function(e) {
return Array.isArray(e) ? h(function(t, r, n, o, i) {
for (var s = t[r], a = 0; a < e.length; a++) if (d(s, e[a])) return null;
var l = JSON.stringify(e, function(e, t) {
return "symbol" === b(t) ? String(t) : t;
});
return new f("Invalid " + o + " `" + i + "` of value `" + String(s) + "` supplied to `" + n + "`, expected one of " + l + ".");
}) : (i(arguments.length > 1 ? "Invalid arguments supplied to oneOf, expected an array, got " + arguments.length + " arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])." : "Invalid argument supplied to oneOf, expected an array."), s);
},
oneOfType: function(e) {
if (!Array.isArray(e)) return i("Invalid argument supplied to oneOfType, expected an instance of array."), s;
for (var t = 0; t < e.length; t++) {
var o = e[t];
if ("function" != typeof o) return i("Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + w(o) + " at index " + t + "."), s;
}
return h(function(t, o, i, s, a) {
for (var l = [], c = 0; c < e.length; c++) {
var u = (0, e[c])(t, o, i, s, a, r);
if (null == u) return null;
u.data && n(u.data, "expectedType") && l.push(u.data.expectedType);
}
return new f("Invalid " + s + " `" + a + "` supplied to `" + i + "`" + (l.length > 0 ? ", expected one of type [" + l.join(", ") + "]" : "") + ".");
});
},
shape: function(e) {
return h(function(t, n, o, i, s) {
var a = t[n];
var l = y(a);
if ("object" !== l) return new f("Invalid " + i + " `" + s + "` of type `" + l + "` supplied to `" + o + "`, expected `object`.");
for (var c in e) {
var u = e[c];
if ("function" != typeof u) return g(o, i, s, c, b(u));
var p = u(a, c, o, i, s + "." + c, r);
if (p) return p;
}
return null;
});
},
exact: function(e) {
return h(function(o, i, s, a, l) {
var c = o[i];
var u = y(c);
if ("object" !== u) return new f("Invalid " + a + " `" + l + "` of type `" + u + "` supplied to `" + s + "`, expected `object`.");
for (var d in t({}, o[i], e)) {
var h = e[d];
if (n(e, d) && "function" != typeof h) return g(s, a, l, d, b(h));
if (!h) return new f("Invalid " + a + " `" + l + "` key `" + d + "` supplied to `" + s + "`.\nBad object: " + JSON.stringify(o[i], null, " ") + "\nValid keys: " + JSON.stringify(Object.keys(e), null, " "));
var m = h(c, d, s, a, l + "." + d, r);
if (m) return m;
}
return null;
});
}
};
function d(e, t) {
return e === t ? 0 !== e || 1 / e == 1 / t : e != e && t != t;
}
function f(e, t) {
this.message = e, this.data = t && "object" == typeof t ? t : {}, this.stack = "";
}
function h(e) {
var t = {};
var n = 0;
function o(o, s, a, c, p, d, h) {
if (c = c || u, d = d || a, h !== r) {
if (l) {
var m = /* @__PURE__ */ new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");
throw m.name = "Invariant Violation", m;
}
if ("undefined" != typeof console) {
var g = c + ":" + a;
!t[g] && n < 3 && (i("You are manually calling a React.PropTypes validation function for the `" + d + "` prop on `" + c + "`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."), t[g] = !0, n++);
}
}
return null == s[a] ? o ? null === s[a] ? new f("The " + p + " `" + d + "` is marked as required in `" + c + "`, but its value is `null`.") : new f("The " + p + " `" + d + "` is marked as required in `" + c + "`, but its value is `undefined`.") : null : e(s, a, c, p, d);
}
var s = o.bind(null, !1);
return s.isRequired = o.bind(null, !0), s;
}
function m(e) {
return h(function(t, r, n, o, i, s) {
var a = t[r];
return y(a) !== e ? new f("Invalid " + o + " `" + i + "` of type `" + b(a) + "` supplied to `" + n + "`, expected `" + e + "`.", { expectedType: e }) : null;
});
}
function g(e, t, r, n, o) {
return new f((e || "React class") + ": " + t + " type `" + r + "." + n + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + o + "`.");
}
function v(e) {
switch (typeof e) {
case "number":
case "string":
case "undefined": return !0;
case "boolean": return !e;
case "object":
if (Array.isArray(e)) return e.every(v);
if (null === e || a(e)) return !0;
var t = function(e) {
var t = e && (c && e[c] || e["@@iterator"]);
if ("function" == typeof t) return t;
}(e);
if (!t) return !1;
var r;
var n = t.call(e);
if (t !== e.entries) {
for (; !(r = n.next()).done;) if (!v(r.value)) return !1;
} else for (; !(r = n.next()).done;) {
var o = r.value;
if (o && !v(o[1])) return !1;
}
return !0;
default: return !1;
}
}
function y(e) {
var t = typeof e;
return Array.isArray(e) ? "array" : e instanceof RegExp ? "object" : function(e, t) {
return "symbol" === e || !!t && ("Symbol" === t["@@toStringTag"] || "function" == typeof Symbol && t instanceof Symbol);
}(t, e) ? "symbol" : t;
}
function b(e) {
if (null == e) return "" + e;
var t = y(e);
if ("object" === t) {
if (e instanceof Date) return "date";
if (e instanceof RegExp) return "regexp";
}
return t;
}
function w(e) {
var t = b(e);
switch (t) {
case "array":
case "object": return "an " + t;
case "boolean":
case "date":
case "regexp": return "a " + t;
default: return t;
}
}
return f.prototype = Error.prototype, p.checkPropTypes = o, p.resetWarningCache = o.resetWarningCache, p.PropTypes = p, p;
}, $;
}
function Q() {
if (U) return C.exports;
if (U = 1, true) {
var e = H();
C.exports = X()(e.isElement, !0);
}
return C.exports;
}
var ee = x(Q());
function te(e) {
var t;
var r;
var n = "";
if ("string" == typeof e || "number" == typeof e) n += e;
else if ("object" == typeof e) if (Array.isArray(e)) {
var o = e.length;
for (t = 0; t < o; t++) e[t] && (r = te(e[t])) && (n && (n += " "), n += r);
} else for (r in e) e[r] && (n && (n += " "), n += r);
return n;
}
function re() {
for (var e, t, r = 0, n = "", o = arguments.length; r < o; r++) (e = arguments[r]) && (t = te(e)) && (n && (n += " "), n += t);
return n;
}
function ne(e, t, r = void 0) {
const n = {};
return Object.keys(e).forEach((o) => {
n[o] = e[o].reduce((e, n) => {
if (n) {
const o = t(n);
"" !== o && e.push(o), r && r[n] && e.push(r[n]);
}
return e;
}, []).join(" ");
}), n;
}
var oe;
var ie = {};
var se = { exports: {} };
function ae() {
return oe || (oe = 1, (e = se).exports = function(e) {
return e && e.__esModule ? e : { default: e };
}, e.exports.__esModule = !0, e.exports.default = e.exports), se.exports;
var e;
}
var le;
var ce = { exports: {} };
function ue() {
return le || (le = 1, function(e) {
function t() {
return e.exports = t = Object.assign ? Object.assign.bind() : function(e) {
for (var t = 1; t < arguments.length; t++) {
var r = arguments[t];
for (var n in r) ({}).hasOwnProperty.call(r, n) && (e[n] = r[n]);
}
return e;
}, e.exports.__esModule = !0, e.exports.default = e.exports, t.apply(null, arguments);
}
e.exports = t, e.exports.__esModule = !0, e.exports.default = e.exports;
}(ce)), ce.exports;
}
var pe;
var de = { exports: {} };
function fe() {
return pe || (pe = 1, (e = de).exports = function(e, t) {
if (null == e) return {};
var r = {};
for (var n in e) if ({}.hasOwnProperty.call(e, n)) {
if (-1 !== t.indexOf(n)) continue;
r[n] = e[n];
}
return r;
}, e.exports.__esModule = !0, e.exports.default = e.exports), de.exports;
var e;
}
var he = function() {
function e(e) {
var t = this;
this._insertTag = function(e) {
var r = 0 === t.tags.length ? t.insertionPoint ? t.insertionPoint.nextSibling : t.prepend ? t.container.firstChild : t.before : t.tags[t.tags.length - 1].nextSibling;
t.container.insertBefore(e, r), t.tags.push(e);
}, this.isSpeedy = void 0 === e.speedy || e.speedy, this.tags = [], this.ctr = 0, this.nonce = e.nonce, this.key = e.key, this.container = e.container, this.prepend = e.prepend, this.insertionPoint = e.insertionPoint, this.before = null;
}
var t = e.prototype;
return t.hydrate = function(e) {
e.forEach(this._insertTag);
}, t.insert = function(e) {
this.ctr % (this.isSpeedy ? 65e3 : 1) == 0 && this._insertTag(function(e) {
var t = document.createElement("style");
return t.setAttribute("data-emotion", e.key), void 0 !== e.nonce && t.setAttribute("nonce", e.nonce), t.appendChild(document.createTextNode("")), t.setAttribute("data-s", ""), t;
}(this));
var t = this.tags[this.tags.length - 1];
if (this.isSpeedy) {
var r = function(e) {
if (e.sheet) return e.sheet;
for (var t = 0; t < document.styleSheets.length; t++) if (document.styleSheets[t].ownerNode === e) return document.styleSheets[t];
}(t);
try {
r.insertRule(e, r.cssRules.length);
} catch (e) {}
} else t.appendChild(document.createTextNode(e));
this.ctr++;
}, t.flush = function() {
this.tags.forEach(function(e) {
var t;
return null == (t = e.parentNode) ? void 0 : t.removeChild(e);
}), this.tags = [], this.ctr = 0;
}, e;
}();
var me = "-ms-";
var ge = "-moz-";
var ve = "-webkit-";
var ye = "comm";
var be = "rule";
var we = "decl";
var _e = "@keyframes";
var xe = Math.abs;
var Se = String.fromCharCode;
var ke = Object.assign;
function Ce(e) {
return e.trim();
}
function Oe(e, t, r) {
return e.replace(t, r);
}
function Ee(e, t) {
return e.indexOf(t);
}
function Te(e, t) {
return 0 | e.charCodeAt(t);
}
function Re(e, t, r) {
return e.slice(t, r);
}
function Ie(e) {
return e.length;
}
function Me(e) {
return e.length;
}
function Ae(e, t) {
return t.push(e), e;
}
var Pe = 1;
var Ne = 1;
var Le = 0;
var De = 0;
var je = 0;
var Fe = "";
function $e(e, t, r, n, o, i, s) {
return {
value: e,
root: t,
parent: r,
type: n,
props: o,
children: i,
line: Pe,
column: Ne,
length: s,
return: ""
};
}
function Be(e, t) {
return ke($e("", null, null, "", null, null, 0), e, { length: -e.length }, t);
}
function ze() {
return je = De > 0 ? Te(Fe, --De) : 0, Ne--, 10 === je && (Ne = 1, Pe--), je;
}
function Ve() {
return je = De < Le ? Te(Fe, De++) : 0, Ne++, 10 === je && (Ne = 1, Pe++), je;
}
function Ue() {
return Te(Fe, De);
}
function qe() {
return De;
}
function We(e, t) {
return Re(Fe, e, t);
}
function He(e) {
switch (e) {
case 0:
case 9:
case 10:
case 13:
case 32: return 5;
case 33:
case 43:
case 44:
case 47:
case 62:
case 64:
case 126:
case 59:
case 123:
case 125: return 4;
case 58: return 3;
case 34:
case 39:
case 40:
case 91: return 2;
case 41:
case 93: return 1;
}
return 0;
}
function Ge(e) {
return Pe = Ne = 1, Le = Ie(Fe = e), De = 0, [];
}
function Ke(e) {
return Fe = "", e;
}
function Ye(e) {
return Ce(We(De - 1, Je(91 === e ? e + 2 : 40 === e ? e + 1 : e)));
}
function Ze(e) {
for (; (je = Ue()) && je < 33;) Ve();
return He(e) > 2 || He(je) > 3 ? "" : " ";
}
function Xe(e, t) {
for (; --t && Ve() && !(je < 48 || je > 102 || je > 57 && je < 65 || je > 70 && je < 97););
return We(e, qe() + (t < 6 && 32 == Ue() && 32 == Ve()));
}
function Je(e) {
for (; Ve();) switch (je) {
case e: return De;
case 34:
case 39:
34 !== e && 39 !== e && Je(je);
break;
case 40:
41 === e && Je(e);
break;
case 92: Ve();
}
return De;
}
function Qe(e, t) {
for (; Ve() && e + je !== 57 && (e + je !== 84 || 47 !== Ue()););
return "/*" + We(t, De - 1) + "*" + Se(47 === e ? e : Ve());
}
function et(e) {
for (; !He(Ue());) Ve();
return We(e, De);
}
function tt(e) {
return Ke(rt("", null, null, null, [""], e = Ge(e), 0, [0], e));
}
function rt(e, t, r, n, o, i, s, a, l) {
for (var c = 0, u = 0, p = s, d = 0, f = 0, h = 0, m = 1, g = 1, v = 1, y = 0, b = "", w = o, _ = i, x = n, S = b; g;) switch (h = y, y = Ve()) {
case 40: if (108 != h && 58 == Te(S, p - 1)) {
-1 != Ee(S += Oe(Ye(y), "&", "&\f"), "&\f") && (v = -1);
break;
}
case 34:
case 39:
case 91:
S += Ye(y);
break;
case 9:
case 10:
case 13:
case 32:
S += Ze(h);
break;
case 92:
S += Xe(qe() - 1, 7);
continue;
case 47:
switch (Ue()) {
case 42:
case 47:
Ae(ot(Qe(Ve(), qe()), t, r), l);
break;
default: S += "/";
}
break;
case 123 * m: a[c++] = Ie(S) * v;
case 125 * m:
case 59:
case 0:
switch (y) {
case 0:
case 125: g = 0;
case 59 + u:
-1 == v && (S = Oe(S, /\f/g, "")), f > 0 && Ie(S) - p && Ae(f > 32 ? it(S + ";", n, r, p - 1) : it(Oe(S, " ", "") + ";", n, r, p - 2), l);
break;
case 59: S += ";";
default: if (Ae(x = nt(S, t, r, c, u, o, a, b, w = [], _ = [], p), i), 123 === y) if (0 === u) rt(S, t, x, x, w, i, p, a, _);
else switch (99 === d && 110 === Te(S, 3) ? 100 : d) {
case 100:
case 108:
case 109:
case 115:
rt(e, x, x, n && Ae(nt(e, x, x, 0, 0, o, a, b, o, w = [], p), _), o, _, p, a, n ? w : _);
break;
default: rt(S, x, x, x, [""], _, 0, a, _);
}
}
c = u = f = 0, m = v = 1, b = S = "", p = s;
break;
case 58: p = 1 + Ie(S), f = h;
default:
if (m < 1) {
if (123 == y) --m;
else if (125 == y && 0 == m++ && 125 == ze()) continue;
}
switch (S += Se(y), y * m) {
case 38:
v = u > 0 ? 1 : (S += "\f", -1);
break;
case 44:
a[c++] = (Ie(S) - 1) * v, v = 1;
break;
case 64:
45 === Ue() && (S += Ye(Ve())), d = Ue(), u = p = Ie(b = S += et(qe())), y++;
break;
case 45: 45 === h && 2 == Ie(S) && (m = 0);
}
}
return i;
}
function nt(e, t, r, n, o, i, s, a, l, c, u) {
for (var p = o - 1, d = 0 === o ? i : [""], f = Me(d), h = 0, m = 0, g = 0; h < n; ++h) for (var v = 0, y = Re(e, p + 1, p = xe(m = s[h])), b = e; v < f; ++v) (b = Ce(m > 0 ? d[v] + " " + y : Oe(y, /&\f/g, d[v]))) && (l[g++] = b);
return $e(e, t, r, 0 === o ? be : a, l, c, u);
}
function ot(e, t, r) {
return $e(e, t, r, ye, Se(je), Re(e, 2, -2), 0);
}
function it(e, t, r, n) {
return $e(e, t, r, we, Re(e, 0, n), Re(e, n + 1, -1), n);
}
function st(e, t) {
for (var r = "", n = Me(e), o = 0; o < n; o++) r += t(e[o], o, e, t) || "";
return r;
}
function at(e, t, r, n) {
switch (e.type) {
case "@layer": if (e.children.length) break;
case "@import":
case we: return e.return = e.return || e.value;
case ye: return "";
case _e: return e.return = e.value + "{" + st(e.children, n) + "}";
case be: e.value = e.props.join(",");
}
return Ie(r = st(e.children, n)) ? e.return = e.value + "{" + r + "}" : "";
}
function lt(e) {
var t = Object.create(null);
return function(r) {
return void 0 === t[r] && (t[r] = e(r)), t[r];
};
}
var ct = function(e, t, r) {
for (var n = 0, o = 0; n = o, o = Ue(), 38 === n && 12 === o && (t[r] = 1), !He(o);) Ve();
return We(e, De);
};
var ut = /* @__PURE__ */ new WeakMap();
var pt = function(e) {
if ("rule" === e.type && e.parent && !(e.length < 1)) {
for (var t = e.value, r = e.parent, n = e.column === r.column && e.line === r.line; "rule" !== r.type;) if (!(r = r.parent)) return;
if ((1 !== e.props.length || 58 === t.charCodeAt(0) || ut.get(r)) && !n) {
ut.set(e, !0);
for (var o = [], i = function(e, t) {
return Ke(function(e, t) {
var r = -1;
var n = 44;
do
switch (He(n)) {
case 0:
38 === n && 12 === Ue() && (t[r] = 1), e[r] += ct(De - 1, t, r);
break;
case 2:
e[r] += Ye(n);
break;
case 4: if (44 === n) {
e[++r] = 58 === Ue() ? "&\f" : "", t[r] = e[r].length;
break;
}
default: e[r] += Se(n);
}
while (n = Ve());
return e;
}(Ge(e), t));
}(t, o), s = r.props, a = 0, l = 0; a < i.length; a++) for (var c = 0; c < s.length; c++, l++) e.props[l] = o[a] ? i[a].replace(/&\f/g, s[c]) : s[c] + " " + i[a];
}
}
};
var dt = function(e) {
if ("decl" === e.type) {
var t = e.value;
108 === t.charCodeAt(0) && 98 === t.charCodeAt(2) && (e.return = "", e.value = "");
}
};
function ft(e, t) {
switch (function(e, t) {
return 45 ^ Te(e, 0) ? (((t << 2 ^ Te(e, 0)) << 2 ^ Te(e, 1)) << 2 ^ Te(e, 2)) << 2 ^ Te(e, 3) : 0;
}(e, t)) {
case 5103: return ve + "print-" + e + e;
case 5737:
case 4201:
case 3177:
case 3433:
case 1641:
case 4457:
case 2921:
case 5572:
case 6356:
case 5844:
case 3191:
case 6645:
case 3005:
case 6391:
case 5879:
case 5623:
case 6135:
case 4599:
case 4855:
case 4215:
case 6389:
case 5109:
case 5365:
case 5621:
case 3829: return ve + e + e;
case 5349:
case 4246:
case 4810:
case 6968:
case 2756: return ve + e + ge + e + me + e + e;
case 6828:
case 4268: return ve + e + me + e + e;
case 6165: return ve + e + me + "flex-" + e + e;
case 5187: return ve + e + Oe(e, /(\w+).+(:[^]+)/, ve + "box-$1$2" + me + "flex-$1$2") + e;
case 5443: return ve + e + me + "flex-item-" + Oe(e, /flex-|-self/, "") + e;
case 4675: return ve + e + me + "flex-line-pack" + Oe(e, /align-content|flex-|-self/, "") + e;
case 5548: return ve + e + me + Oe(e, "shrink", "negative") + e;
case 5292: return ve + e + me + Oe(e, "basis", "preferred-size") + e;
case 6060: return ve + "box-" + Oe(e, "-grow", "") + ve + e + me + Oe(e, "grow", "positive") + e;
case 4554: return ve + Oe(e, /([^-])(transform)/g, "$1" + ve + "$2") + e;
case 6187: return Oe(Oe(Oe(e, /(zoom-|grab)/, ve + "$1"), /(image-set)/, ve + "$1"), e, "") + e;
case 5495:
case 3959: return Oe(e, /(image-set\([^]*)/, ve + "$1$`$1");
case 4968: return Oe(Oe(e, /(.+:)(flex-)?(.*)/, ve + "box-pack:$3" + me + "flex-pack:$3"), /s.+-b[^;]+/, "justify") + ve + e + e;
case 4095:
case 3583:
case 4068:
case 2532: return Oe(e, /(.+)-inline(.+)/, ve + "$1$2") + e;
case 8116:
case 7059:
case 5753:
case 5535:
case 5445:
case 5701:
case 4933:
case 4677:
case 5533:
case 5789:
case 5021:
case 4765:
if (Ie(e) - 1 - t > 6) switch (Te(e, t + 1)) {
case 109: if (45 !== Te(e, t + 4)) break;
case 102: return Oe(e, /(.+:)(.+)-([^]+)/, "$1" + ve + "$2-$3$1" + ge + (108 == Te(e, t + 3) ? "$3" : "$2-$3")) + e;
case 115: return ~Ee(e, "stretch") ? ft(Oe(e, "stretch", "fill-available"), t) + e : e;
}
break;
case 4949: if (115 !== Te(e, t + 1)) break;
case 6444:
switch (Te(e, Ie(e) - 3 - (~Ee(e, "!important") && 10))) {
case 107: return Oe(e, ":", ":" + ve) + e;
case 101: return Oe(e, /(.+:)([^;!]+)(;|!.+)?/, "$1" + ve + (45 === Te(e, 14) ? "inline-" : "") + "box$3$1" + ve + "$2$3$1" + me + "$2box$3") + e;
}
break;
case 5936:
switch (Te(e, t + 11)) {
case 114: return ve + e + me + Oe(e, /[svh]\w+-[tblr]{2}/, "tb") + e;
case 108: return ve + e + me + Oe(e, /[svh]\w+-[tblr]{2}/, "tb-rl") + e;
case 45: return ve + e + me + Oe(e, /[svh]\w+-[tblr]{2}/, "lr") + e;
}
return ve + e + me + e + e;
}
return e;
}
var ht = [function(e, t, r, n) {
if (e.length > -1 && !e.return) switch (e.type) {
case we:
e.return = ft(e.value, e.length);
break;
case _e: return st([Be(e, { value: Oe(e.value, "@", "@" + ve) })], n);
case be: if (e.length) return function(e, t) {
return e.map(t).join("");
}(e.props, function(t) {
switch (function(e) {
return (e = /(::plac\w+|:read-\w+)/.exec(e)) ? e[0] : e;
}(t)) {
case ":read-only":
case ":read-write": return st([Be(e, { props: [Oe(t, /:(read-\w+)/, ":-moz-$1")] })], n);
case "::placeholder": return st([
Be(e, { props: [Oe(t, /:(plac\w+)/, ":" + ve + "input-$1")] }),
Be(e, { props: [Oe(t, /:(plac\w+)/, ":-moz-$1")] }),
Be(e, { props: [Oe(t, /:(plac\w+)/, me + "input-$1")] })
], n);
}
return "";
});
}
}];
var mt = function(e) {
var t = e.key;
if ("css" === t) {
var r = document.querySelectorAll("style[data-emotion]:not([data-s])");
Array.prototype.forEach.call(r, function(e) {
-1 !== e.getAttribute("data-emotion").indexOf(" ") && (document.head.appendChild(e), e.setAttribute("data-s", ""));
});
}
var n;
var o;
var i = e.stylisPlugins || ht;
var s = {};
var a = [];
n = e.container || document.head, Array.prototype.forEach.call(document.querySelectorAll("style[data-emotion^=\"" + t + " \"]"), function(e) {
for (var t = e.getAttribute("data-emotion").split(" "), r = 1; r < t.length; r++) s[t[r]] = !0;
a.push(e);
});
var l;
var c;
var u = [at, (c = function(e) {
l.insert(e);
}, function(e) {
e.root || (e = e.return) && c(e);
})];
var p = function(e) {
var t = Me(e);
return function(r, n, o, i) {
for (var s = "", a = 0; a < t; a++) s += e[a](r, n, o, i) || "";
return s;
};
}([pt, dt].concat(i, u));
o = function(e, t, r, n) {
l = r, st(tt(e ? e + "{" + t.styles + "}" : t.styles), p), n && (d.inserted[t.name] = !0);
};
var d = {
key: t,
sheet: new he({
key: t,
container: n,
nonce: e.nonce,
speedy: e.speedy,
prepend: e.prepend,
insertionPoint: e.insertionPoint
}),
nonce: e.nonce,
inserted: s,
registered: {},
insert: o
};
return d.sheet.hydrate(a), d;
};
function gt(e, t, r) {
var n = "";
return r.split(" ").forEach(function(r) {
void 0 !== e[r] ? t.push(e[r] + ";") : r && (n += r + " ");
}), n;
}
var vt = function(e, t, r) {
var n = e.key + "-" + t.name;
!1 === r && void 0 === e.registered[n] && (e.registered[n] = t.styles);
};
var yt = function(e, t, r) {
vt(e, t, r);
var n = e.key + "-" + t.name;
if (void 0 === e.inserted[t.name]) {
var o = t;
do
e.insert(t === o ? "." + n : "", o, e.sheet, !0), o = o.next;
while (void 0 !== o);
}
};
var bt = {
animationIterationCount: 1,
aspectRatio: 1,
borderImageOutset: 1,
borderImageSlice: 1,
borderImageWidth: 1,
boxFlex: 1,
boxFlexGroup: 1,
boxOrdinalGroup: 1,
columnCount: 1,
columns: 1,
flex: 1,
flexGrow: 1,
flexPositive: 1,
flexShrink: 1,
flexNegative: 1,
flexOrder: 1,
gridRow: 1,
gridRowEnd: 1,
gridRowSpan: 1,
gridRowStart: 1,
gridColumn: 1,
gridColumnEnd: 1,
gridColumnSpan: 1,
gridColumnStart: 1,
msGridRow: 1,
msGridRowSpan: 1,
msGridColumn: 1,
msGridColumnSpan: 1,
fontWeight: 1,
lineHeight: 1,
opacity: 1,
order: 1,
orphans: 1,
scale: 1,
tabSize: 1,
widows: 1,
zIndex: 1,
zoom: 1,
WebkitLineClamp: 1,
fillOpacity: 1,
floodOpacity: 1,
stopOpacity: 1,
strokeDasharray: 1,
strokeDashoffset: 1,
strokeMiterlimit: 1,
strokeOpacity: 1,
strokeWidth: 1
};
var wt = /[A-Z]|^ms/g;
var _t = /_EMO_([^_]+?)_([^]*?)_EMO_/g;
var xt = function(e) {
return 45 === e.charCodeAt(1);
};
var St = function(e) {
return null != e && "boolean" != typeof e;
};
var kt = lt(function(e) {
return xt(e) ? e : e.replace(wt, "-$&").toLowerCase();
});
var Ct = function(e, t) {
switch (e) {
case "animation":
case "animationName": if ("string" == typeof t) return t.replace(_t, function(e, t, r) {
return Et = {
name: t,
styles: r,
next: Et
}, t;
});
}
return 1 === bt[e] || xt(e) || "number" != typeof t || 0 === t ? t : t + "px";
};
function Ot(e, t, r) {
if (null == r) return "";
var n = r;
if (void 0 !== n.__emotion_styles) return n;
switch (typeof r) {
case "boolean": return "";
case "object":
var o = r;
if (1 === o.anim) return Et = {
name: o.name,
styles: o.styles,
next: Et
}, o.name;
var i = r;
if (void 0 !== i.styles) {
var s = i.next;
if (void 0 !== s) for (; void 0 !== s;) Et = {
name: s.name,
styles: s.styles,
next: Et
}, s = s.next;
return i.styles + ";";
}
return function(e, t, r) {
var n = "";
if (Array.isArray(r)) for (var o = 0; o < r.length; o++) n += Ot(e, t, r[o]) + ";";
else for (var i in r) {
var s = r[i];
if ("object" != typeof s) {
var a = s;
null != t && void 0 !== t[a] ? n += i + "{" + t[a] + "}" : St(a) && (n += kt(i) + ":" + Ct(i, a) + ";");
} else if (!Array.isArray(s) || "string" != typeof s[0] || null != t && void 0 !== t[s[0]]) {
var l = Ot(e, t, s);
switch (i) {
case "animation":
case "animationName":
n += kt(i) + ":" + l + ";";
break;
default: n += i + "{" + l + "}";
}
} else for (var c = 0; c < s.length; c++) St(s[c]) && (n += kt(i) + ":" + Ct(i, s[c]) + ";");
}
return n;
}(e, t, r);
case "function": if (void 0 !== e) {
var a = Et;
var l = r(e);
return Et = a, Ot(e, t, l);
}
}
var c = r;
if (null == t) return c;
var u = t[c];
return void 0 !== u ? u : c;
}
var Et;
var Tt = /label:\s*([^\s;{]+)\s*(;|$)/g;
function Rt(e, t, r) {
if (1 === e.length && "object" == typeof e[0] && null !== e[0] && void 0 !== e[0].styles) return e[0];
var n = !0;
var o = "";
Et = void 0;
var i = e[0];
null == i || void 0 === i.raw ? (n = !1, o += Ot(r, t, i)) : o += i[0];
for (var s = 1; s < e.length; s++) o += Ot(r, t, e[s]), n && (o += i[s]);
Tt.lastIndex = 0;
for (var a, l = ""; null !== (a = Tt.exec(o));) l += "-" + a[1];
return {
name: function(e) {
for (var t, r = 0, n = 0, o = e.length; o >= 4; ++n, o -= 4) t = 1540483477 * (65535 & (t = 255 & e.charCodeAt(n) | (255 & e.charCodeAt(++n)) << 8 | (255 & e.charCodeAt(++n)) << 16 | (255 & e.charCodeAt(++n)) << 24)) + (59797 * (t >>> 16) << 16), r = 1540483477 * (65535 & (t ^= t >>> 24)) + (59797 * (t >>> 16) << 16) ^ 1540483477 * (65535 & r) + (59797 * (r >>> 16) << 16);
switch (o) {
case 3: r ^= (255 & e.charCodeAt(n + 2)) << 16;
case 2: r ^= (255 & e.charCodeAt(n + 1)) << 8;
case 1: r = 1540483477 * (65535 & (r ^= 255 & e.charCodeAt(n))) + (59797 * (r >>> 16) << 16);
}
return (((r = 1540483477 * (65535 & (r ^= r >>> 13)) + (59797 * (r >>> 16) << 16)) ^ r >>> 15) >>> 0).toString(36);
}(o) + l,
styles: o,
next: Et
};
}
var It;
var Mt;
var At = !!react.useInsertionEffect && react.useInsertionEffect;
var Pt = At || function(e) {
return e();
};
var Nt = At || react.useLayoutEffect;
var Lt = react.createContext("undefined" != typeof HTMLElement ? mt({ key: "css" }) : null);
var Dt = Lt.Provider;
var jt = function(e) {
return (0, react.forwardRef)(function(t, r) {
return e(t, (0, react.useContext)(Lt), r);
});
};
var Ft = react.createContext({});
var $t = {}.hasOwnProperty;
var Bt = "__EMOTION_TYPE_PLEASE_DO_NOT_USE__";
var zt = function(e) {
var t = e.cache;
var r = e.serialized;
var n = e.isStringTag;
return vt(t, r, n), Pt(function() {
return yt(t, r, n);
}), null;
};
var Ut = jt(function(e, t, r) {
var o = e.css;
"string" == typeof o && void 0 !== t.registered[o] && (o = t.registered[o]);
var i = e[Bt];
var s = [o];
var a = "";
"string" == typeof e.className ? a = gt(t.registered, s, e.className) : null != e.className && (a = e.className + " ");
var l = Rt(s, void 0, react.useContext(Ft));
a += t.key + "-" + l.name;
var c = {};
for (var u in e) $t.call(e, u) && "css" !== u && u !== Bt && (c[u] = e[u]);
return c.className = a, r && (c.ref = r), react.createElement(react.Fragment, null, react.createElement(zt, {
cache: t,
serialized: l,
isStringTag: "string" == typeof i
}), react.createElement(i, c));
});
var qt = function(e, t) {
var r = arguments;
if (null == t || !$t.call(t, "css")) return react.createElement.apply(void 0, r);
var o = r.length;
var i = new Array(o);
i[0] = Ut, i[1] = function(e, t) {
var r = {};
for (var n in t) $t.call(t, n) && (r[n] = t[n]);
return r[Bt] = e, r;
}(e, t);
for (var s = 2; s < o; s++) i[s] = r[s];
return react.createElement.apply(null, i);
};
It = qt || (qt = {}), Mt || (Mt = It.JSX || (It.JSX = {}));
var Wt = jt(function(e, t) {
var r = Rt([e.styles], void 0, react.useContext(Ft));
var o = react.useRef();
return Nt(function() {
var e = t.key + "-global";
var n = new t.sheet.constructor({
key: e,
nonce: t.sheet.nonce,
container: t.sheet.container,
speedy: t.sheet.isSpeedy
});
var i = !1;
var s = document.querySelector("style[data-emotion=\"" + e + " " + r.name + "\"]");
return t.sheet.tags.length && (n.before = t.sheet.tags[0]), null !== s && (i = !0, s.setAttribute("data-emotion", e), n.hydrate([s])), o.current = [n, i], function() {
n.flush();
};
}, [t]), Nt(function() {
var e = o.current;
var n = e[0];
if (e[1]) e[1] = !1;
else {
if (void 0 !== r.next && yt(t, r.next, !0), n.tags.length) n.before = n.tags[n.tags.length - 1].nextElementSibling, n.flush();
t.insert("", r, n, !1);
}
}, [t, r.name]), null;
});
function Ht() {
for (var e = arguments.length, t = new Array(e), r = 0; r < e; r++) t[r] = arguments[r];
return Rt(t);
}
function Gt() {
var e = Ht.apply(void 0, arguments);
var t = "animation-" + e.name;
return {
name: t,
styles: "@keyframes " + t + "{" + e.styles + "}",
anim: 1,
toString: function() {
return "_EMO_" + this.name + "_" + this.styles + "_EMO_";
}
};
}
var Kt = /^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|popover|popoverTarget|popoverTargetAction|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/;
var Yt = lt(function(e) {
return Kt.test(e) || 111 === e.charCodeAt(0) && 110 === e.charCodeAt(1) && e.charCodeAt(2) < 91;
});
var Zt = function(e) {
return "theme" !== e;
};
var Xt = function(e) {
return "string" == typeof e && e.charCodeAt(0) > 96 ? Yt : Zt;
};
var Jt = function(e, t, r) {
var n;
if (t) {
var o = t.shouldForwardProp;
n = e.__emotion_forwardProp && o ? function(t) {
return e.__emotion_forwardProp(t) && o(t);
} : o;
}
return "function" != typeof n && r && (n = e.__emotion_forwardProp), n;
};
var Qt = function(e) {
var t = e.cache;
var r = e.serialized;
var n = e.isStringTag;
return vt(t, r, n), Pt(function() {
return yt(t, r, n);
}), null;
};
var er = function e(t, r) {
var o;
var i;
var s = t.__emotion_real === t;
var a = s && t.__emotion_base || t;
void 0 !== r && (o = r.label, i = r.target);
var l = Jt(t, r, s);
var c = l || Xt(a);
var u = !c("as");
return function() {
var p = arguments;
var d = s && void 0 !== t.__emotion_styles ? t.__emotion_styles.slice(0) : [];
if (void 0 !== o && d.push("label:" + o + ";"), null == p[0] || void 0 === p[0].raw) d.push.apply(d, p);
else {
var f = p[0];
d.push(f[0]);
for (var h = p.length, m = 1; m < h; m++) d.push(p[m], f[m]);
}
var g = jt(function(e, t, r) {
var o = u && e.as || a;
var s = "";
var p = [];
var f = e;
if (null == e.theme) {
for (var h in f = {}, e) f[h] = e[h];
f.theme = react.useContext(Ft);
}
"string" == typeof e.className ? s = gt(t.registered, p, e.className) : null != e.className && (s = e.className + " ");
var m = Rt(d.concat(p), t.registered, f);
s += t.key + "-" + m.name, void 0 !== i && (s += " " + i);
var g = u && void 0 === l ? Xt(o) : c;
var v = {};
for (var y in e) u && "as" === y || g(y) && (v[y] = e[y]);
return v.className = s, r && (v.ref = r), react.createElement(react.Fragment, null, react.createElement(Qt, {
cache: t,
serialized: m,
isStringTag: "string" == typeof o
}), react.createElement(o, v));
});
return g.displayName = void 0 !== o ? o : "Styled(" + ("string" == typeof a ? a : a.displayName || a.name || "Component") + ")", g.defaultProps = t.defaultProps, g.__emotion_real = g, g.__emotion_base = a, g.__emotion_styles = d, g.__emotion_forwardProp = l, Object.defineProperty(g, "toString", { value: function() {
return "." + i;
} }), g.withComponent = function(t, n) {
return e(t, _({}, r, n, { shouldForwardProp: Jt(g, n, !0) })).apply(void 0, d);
}, g;
};
}.bind(null);
[
"a",
"abbr",
"address",
"area",
"article",
"aside",
"audio",
"b",
"base",
"bdi",
"bdo",
"big",
"blockquote",
"body",
"br",
"button",
"canvas",
"caption",
"cite",
"code",
"col",
"colgroup",
"data",
"datalist",
"dd",
"del",
"details",
"dfn",
"dialog",
"div",
"dl",
"dt",
"em",
"embed",
"fieldset",
"figcaption",
"figure",
"footer",
"form",
"h1",
"h2",
"h3",
"h4",
"h5",
"h6",
"head",
"header",
"hgroup",
"hr",
"html",
"i",
"iframe",
"img",
"input",
"ins",
"kbd",
"keygen",
"label",
"legend",
"li",
"link",
"main",
"map",
"mark",
"marquee",
"menu",
"menuitem",
"meta",
"meter",
"nav",
"noscript",
"object",
"ol",
"optgroup",
"option",
"output",
"p",
"param",
"picture",
"pre",
"progress",
"q",
"rp",
"rt",
"ruby",
"s",
"samp",
"script",
"section",
"select",
"small",
"source",
"span",
"strong",
"style",
"sub",
"summary",
"sup",
"table",
"tbody",
"td",
"textarea",
"tfoot",
"th",
"thead",
"time",
"title",
"tr",
"track",
"u",
"ul",
"var",
"video",
"wbr",
"circle",
"clipPath",
"defs",
"ellipse",
"foreignObject",
"g",
"image",
"line",
"linearGradient",
"mask",
"path",
"pattern",
"polygon",
"polyline",
"radialGradient",
"rect",
"stop",
"svg",
"text",
"tspan"
].forEach(function(e) {
er[e] = er(e);
});
var tr = /* @__PURE__ */ new Map();
function rr(t) {
const { injectFirst: r, enableCssLayer: o, children: i } = t, s = react.useMemo(() => {
const e = `${r}-${o}`;
if ("object" == typeof document && tr.has(e)) return tr.get(e);
const t = function(e, t) {
const r = mt({
key: "css",
prepend: e
});
if (t) {
const e = r.insert;
r.insert = (...t) => (t[1].styles.match(/^@layer\s+[^{]*$/) || (t[1].styles = `@layer mui {${t[1].styles}}`), e(...t));
}
return r;
}(r, o);
return tr.set(e, t), t;
}, [r, o]);
return r || o ? (0, import_jsx_runtime.jsx)(Dt, {
value: s,
children: i
}) : i;
}
function nr(t) {
const { styles: r, defaultTheme: n = {} } = t;
return (0, import_jsx_runtime.jsx)(Wt, { styles: "function" == typeof r ? (e) => {
return r(null == (t = e) || 0 === Object.keys(t).length ? n : e);
var t;
} : r });
}
function or(e, t) {
const r = er(e, t);
return (...t) => {
const n = "string" == typeof e ? `"${e}"` : "component";
return 0 === t.length ? console.error([`MUI: Seems like you called \`styled(${n})()\` without a \`style\` argument.`, "You must provide a `styles` argument: `styled(\"div\")(styleYouForgotToPass)`."].join("\n")) : t.some((e) => void 0 === e) && console.error(`MUI: the styled(${n})(...args) API requires all its args to be defined.`), r(...t);
};
}
rr.propTypes = {
children: ee.node,
enableCssLayer: ee.bool,
injectFirst: ee.bool
}, nr.propTypes = {
defaultTheme: ee.object,
styles: ee.oneOfType([
ee.array,
ee.string,
ee.object,
ee.func
])
};
var ir = (e, t) => {
Array.isArray(e.__emotion_styles) && (e.__emotion_styles = t(e.__emotion_styles));
};
var sr = [];
var ar = S(Object.freeze(Object.defineProperty({
__proto__: null,
GlobalStyles: nr,
StyledEngineProvider: rr,
ThemeContext: Ft,
css: Ht,
default: or,
internal_processStyles: ir,
internal_serializeStyles: function(e) {
return sr[0] = e, Rt(sr);
},
keyframes: Gt
}, Symbol.toStringTag, { value: "Module" })));
function lr(e) {
if ("object" != typeof e || null === e) return !1;
const t = Object.getPrototypeOf(e);
return !(null !== t && t !== Object.prototype && null !== Object.getPrototypeOf(t) || Symbol.toStringTag in e || Symbol.iterator in e);
}
function cr(e) {
if (react.isValidElement(e) || !lr(e)) return e;
const t = {};
return Object.keys(e).forEach((r) => {
t[r] = cr(e[r]);
}), t;
}
function ur(e, t, r = { clone: !0 }) {
const o = r.clone ? _({}, e) : e;
return lr(e) && lr(t) && Object.keys(t).forEach((i) => {
react.isValidElement(t[i]) ? o[i] = t[i] : lr(t[i]) && Object.prototype.hasOwnProperty.call(e, i) && lr(e[i]) ? o[i] = ur(e[i], t[i], r) : r.clone ? o[i] = lr(t[i]) ? cr(t[i]) : t[i] : o[i] = t[i];
}), o;
}
var pr = S(Object.freeze(Object.defineProperty({
__proto__: null,
default: ur,
isPlainObject: lr
}, Symbol.toStringTag, { value: "Module" })));
function dr(e) {
let t = "https://mui.com/production-error/?code=" + e;
for (let e = 1; e < arguments.length; e += 1) t += "&args[]=" + encodeURIComponent(arguments[e]);
return "Minified MUI error #" + e + "; visit " + t + " for the full message.";
}
var fr = Object.freeze(Object.defineProperty({
__proto__: null,
default: dr
}, Symbol.toStringTag, { value: "Module" }));
function hr(e) {
if ("string" != typeof e) throw new Error("MUI: `capitalize(string)` expects a string argument.");
return e.charAt(0).toUpperCase() + e.slice(1);
}
var mr = S(Object.freeze(Object.defineProperty({
__proto__: null,
default: hr
}, Symbol.toStringTag, { value: "Module" })));
var vr = { exports: {} };
var wr;
var _r;
var xr = {};
function Sr() {
return wr || (wr = 1, function() {
function e(e) {
if ("object" == typeof e && null !== e) {
var h = e.$$typeof;
switch (h) {
case t: switch (e = e.type) {
case n:
case i:
case o:
case c:
case u:
case f: return e;
default: switch (e = e && e.$$typeof) {
case a:
case l:
case d:
case p:
case s: return e;
default: return h;
}
}
case r: return h;
}
}
}
var t = Symbol.for("react.transitional.element");
var r = Symbol.for("react.portal");
var n = Symbol.for("react.fragment");
var o = Symbol.for("react.strict_mode");
var i = Symbol.for("react.profiler");
var s = Symbol.for("react.consumer");
var a = Symbol.for("react.context");
var l = Symbol.for("react.forward_ref");
var c = Symbol.for("react.suspense");
var u = Symbol.for("react.suspense_list");
var p = Symbol.for("react.memo");
var d = Symbol.for("react.lazy");
var f = Symbol.for("react.view_transition");
var h = Symbol.for("react.client.reference");
xr.ContextConsumer = s, xr.ContextProvider = a, xr.Element = t, xr.ForwardRef = l, xr.Fragment = n, xr.Lazy = d, xr.Memo = p, xr.Portal = r, xr.Profiler = i, xr.StrictMode = o, xr.Suspense = c, xr.SuspenseList = u, xr.isContextConsumer = function(t) {
return e(t) === s;
}, xr.isContextProvider = function(t) {
return e(t) === a;
}, xr.isElement = function(e) {
return "object" == typeof e && null !== e && e.$$typeof === t;
}, xr.isForwardRef = function(t) {
return e(t) === l;
}, xr.isFragment = function(t) {
return e(t) === n;
}, xr.isLazy = function(t) {
return e(t) === d;
}, xr.isMemo = function(t) {
return e(t) === p;
}, xr.isPortal = function(t) {
return e(t) === r;
}, xr.isProfiler = function(t) {
return e(t) === i;
}, xr.isStrictMode = function(t) {
return e(t) === o;
}, xr.isSuspense = function(t) {
return e(t) === c;
}, xr.isSuspenseList = function(t) {
return e(t) === u;
}, xr.isValidElementType = function(e) {
return "string" == typeof e || "function" == typeof e || e === n || e === i || e === o || e === c || e === u || "object" == typeof e && null !== e && (e.$$typeof === d || e.$$typeof === p || e.$$typeof === a || e.$$typeof === s || e.$$typeof === l || e.$$typeof === h || void 0 !== e.getModuleId);
}, xr.typeOf = e;
}()), xr;
}
function kr() {
return _r || (_r = 1, vr.exports = Sr()), vr.exports;
}
var Cr = kr();
var Or = /^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;
function Er(e) {
const t = `${e}`.match(Or);
return t && t[1] || "";
}
function Tr(e, t = "") {
return e.displayName || e.name || Er(e) || t;
}
function Rr(e, t, r) {
const n = Tr(t);
return e.displayName || ("" !== n ? `${r}(${n})` : r);
}
function Ir(e) {
if (null != e) {
if ("string" == typeof e) return e;
if ("function" == typeof e) return Tr(e, "Component");
if ("object" == typeof e) switch (e.$$typeof) {
case Cr.ForwardRef: return Rr(e, e.render, "ForwardRef");
case Cr.Memo: return Rr(e, e.type, "memo");
default: return;
}
}
}
var Mr = S(Object.freeze(Object.defineProperty({
__proto__: null,
default: Ir,
getFunctionName: Er
}, Symbol.toStringTag, { value: "Module" })));
var Ar = [
"values",
"unit",
"step"
];
function Pr(e) {
const { values: t = {
xs: 0,
sm: 600,
md: 900,
lg: 1200,
xl: 1536
}, unit: r = "px", step: n = 5 } = e, o = w(e, Ar), i = ((e) => {
const t = Object.keys(e).map((t) => ({
key: t,
val: e[t]
})) || [];
return t.sort((e, t) => e.val - t.val), t.reduce((e, t) => _({}, e, { [t.key]: t.val }), {});
})(t), s = Object.keys(i);
function a(e) {
return `@media (min-width:${"number" == typeof t[e] ? t[e] : e}${r})`;
}
function l(e) {
return `@media (max-width:${("number" == typeof t[e] ? t[e] : e) - n / 100}${r})`;
}
function c(e, o) {
const i = s.indexOf(o);
return `@media (min-width:${"number" == typeof t[e] ? t[e] : e}${r}) and (max-width:${(-1 !== i && "number" == typeof t[s[i]] ? t[s[i]] : o) - n / 100}${r})`;
}
return _({
keys: s,
values: i,
up: a,
down: l,
between: c,
only: function(e) {
return s.indexOf(e) + 1 < s.length ? c(e, s[s.indexOf(e) + 1]) : a(e);
},
not: function(e) {
const t = s.indexOf(e);
return 0 === t ? a(s[1]) : t === s.length - 1 ? l(s[t]) : c(e, s[s.indexOf(e) + 1]).replace("@media", "@media not all and");
},
unit: r
}, o);
}
var Nr = { borderRadius: 4 };
var Lr = ee.oneOfType([
ee.number,
ee.string,
ee.object,
ee.array
]);
function Dr(e, t) {
return t ? ur(e, t, { clone: !1 }) : e;
}
var jr = {
xs: 0,
sm: 600,
md: 900,
lg: 1200,
xl: 1536
};
var Fr = {
keys: [
"xs",
"sm",
"md",
"lg",
"xl"
],
up: (e) => `@media (min-width:${jr[e]}px)`
};
function $r(e, t, r) {
const n = e.theme || {};
if (Array.isArray(t)) {
const e = n.breakpoints || Fr;
return t.reduce((n, o, i) => (n[e.up(e.keys[i])] = r(t[i]), n), {});
}
if ("object" == typeof t) {
const e = n.breakpoints || Fr;
return Object.keys(t).reduce((n, o) => {
if (-1 !== Object.keys(e.values || jr).indexOf(o)) n[e.up(o)] = r(t[o], o);
else {
const e = o;
n[e] = t[e];
}
return n;
}, {});
}
return r(t);
}
function Br(e = {}) {
var t;
return (null == (t = e.keys) ? void 0 : t.reduce((t, r) => (t[e.up(r)] = {}, t), {})) || {};
}
function zr(e, t) {
return e.reduce((e, t) => {
const r = e[t];
return (!r || 0 === Object.keys(r).length) && delete e[t], e;
}, t);
}
function Vr({ values: e, breakpoints: t, base: r }) {
const n = r || function(e, t) {
if ("object" != typeof e) return {};
const r = {};
const n = Object.keys(t);
return Array.isArray(e) ? n.forEach((t, n) => {
n < e.length && (r[t] = !0);
}) : n.forEach((t) => {
null != e[t] && (r[t] = !0);
}), r;
}(e, t);
const o = Object.keys(n);
if (0 === o.length) return e;
let i;
return o.reduce((t, r, n) => (Array.isArray(e) ? (t[r] = null != e[n] ? e[n] : e[i], i = n) : "object" == typeof e ? (t[r] = null != e[r] ? e[r] : e[i], i = r) : t[r] = e, t), {});
}
function Ur(e, t, r = !0) {
if (!t || "string" != typeof t) return null;
if (e && e.vars && r) {
const r = `vars.${t}`.split(".").reduce((e, t) => e && e[t] ? e[t] : null, e);
if (null != r) return r;
}
return t.split(".").reduce((e, t) => e && null != e[t] ? e[t] : null, e);
}
function qr(e, t, r, n = r) {
let o;
return o = "function" == typeof e ? e(r) : Array.isArray(e) ? e[r] || n : Ur(e, r) || n, t && (o = t(o, n, e)), o;
}
function Wr(e) {
const { prop: t, cssProperty: r = e.prop, themeKey: n, transform: o } = e, i = (e) => {
if (null == e[t]) return null;
const i = e[t];
const s = Ur(e.theme, n) || {};
return $r(e, i, (e) => {
let n = qr(s, o, e);
return e === n && "string" == typeof e && (n = qr(s, o, `${t}${"default" === e ? "" : hr(e)}`, e)), !1 === r ? n : { [r]: n };
});
};
return i.propTypes = { [t]: Lr }, i.filterProps = [t], i;
}
var Hr = {
m: "margin",
p: "padding"
};
var Gr = {
t: "Top",
r: "Right",
b: "Bottom",
l: "Left",
x: ["Left", "Right"],
y: ["Top", "Bottom"]
};
var Kr = {
marginX: "mx",
marginY: "my",
paddingX: "px",
paddingY: "py"
};
var Yr = function() {
const e = {};
return (t) => (void 0 === e[t] && (e[t] = ((e) => {
if (e.length > 2) {
if (!Kr[e]) return [e];
e = Kr[e];
}
const [t, r] = e.split(""), n = Hr[t], o = Gr[r] || "";
return Array.isArray(o) ? o.map((e) => n + e) : [n + o];
})(t)), e[t]);
}();
var Zr = [
"m",
"mt",
"mr",
"mb",
"ml",
"mx",
"my",
"margin",
"marginTop",
"marginRight",
"marginBottom",
"marginLeft",
"marginX",
"marginY",
"marginInline",
"marginInlineStart",
"marginInlineEnd",
"marginBlock",
"marginBlockStart",
"marginBlockEnd"
];
var Xr = [
"p",
"pt",
"pr",
"pb",
"pl",
"px",
"py",
"padding",
"paddingTop",
"paddingRight",
"paddingBottom",
"paddingLeft",
"paddingX",
"paddingY",
"paddingInline",
"paddingInlineStart",
"paddingInlineEnd",
"paddingBlock",
"paddingBlockStart",
"paddingBlockEnd"
];
var Jr = [...Zr, ...Xr];
function Qr(e, t, r, n) {
var o;
const i = null != (o = Ur(e, t, !1)) ? o : r;
return "number" == typeof i ? (e) => "string" == typeof e ? e : ("number" != typeof e && console.error(`MUI: Expected ${n} argument to be a number or a string, got ${e}.`), i * e) : Array.isArray(i) ? (e) => "string" == typeof e ? e : (Number.isInteger(e) ? e > i.length - 1 && console.error([
`MUI: The value provided (${e}) overflows.`,
`The supported values are: ${JSON.stringify(i)}.`,
`${e} > ${i.length - 1}, you need to add the missing values.`
].join("\n")) : console.error([`MUI: The \`theme.${t}\` array type cannot be combined with non integer values.You should either use an integer value that can be used as index, or define the \`theme.${t}\` as a number.`].join("\n")), i[e]) : "function" == typeof i ? i : (console.error([`MUI: The \`theme.${t}\` value (${i}) is invalid.`, "It should be a number, an array or a function."].join("\n")), () => {});
}
function en(e) {
return Qr(e, "spacing", 8, "spacing");
}
function tn(e, t) {
if ("string" == typeof t || null == t) return t;
const r = e(Math.abs(t));
return t >= 0 ? r : "number" == typeof r ? -r : `-${r}`;
}
function rn(e, t) {
const r = en(e.theme);
return Object.keys(e).map((n) => function(e, t, r, n) {
if (-1 === t.indexOf(r)) return null;
const o = function(e, t) {
return (r) => e.reduce((e, n) => (e[n] = tn(t, r), e), {});
}(Yr(r), n);
return $r(e, e[r], o);
}(e, t, n, r)).reduce(Dr, {});
}
function nn(e) {
return rn(e, Zr);
}
function on(e) {
return rn(e, Xr);
}
function sn(...e) {
const t = e.reduce((e, t) => (t.filterProps.forEach((r) => {
e[r] = t;
}), e), {});
const r = (e) => Object.keys(e).reduce((r, n) => t[n] ? Dr(r, t[n](e)) : r, {});
return r.propTypes = e.reduce((e, t) => Object.assign(e, t.propTypes), {}), r.filterProps = e.reduce((e, t) => e.concat(t.filterProps), []), r;
}
function an(e) {
return "number" != typeof e ? e : `${e}px solid`;
}
function ln(e, t) {
return Wr({
prop: e,
themeKey: "borders",
transform: t
});
}
nn.propTypes = Zr.reduce((e, t) => (e[t] = Lr, e), {}), nn.filterProps = Zr, on.propTypes = Xr.reduce((e, t) => (e[t] = Lr, e), {}), on.filterProps = Xr, Jr.reduce((e, t) => (e[t] = Lr, e), {});
var cn = ln("border", an);
var un = ln("borderTop", an);
var pn = ln("borderRight", an);
var dn = ln("borderBottom", an);
var fn = ln("borderLeft", an);
var hn = ln("borderColor");
var mn = ln("borderTopColor");
var gn = ln("borderRightColor");
var vn = ln("borderBottomColor");
var yn = ln("borderLeftColor");
var bn = ln("outline", an);
var wn = ln("outlineColor");
var _n = (e) => {
if (void 0 !== e.borderRadius && null !== e.borderRadius) {
const t = Qr(e.theme, "shape.borderRadius", 4, "borderRadius");
const r = (e) => ({ borderRadius: tn(t, e) });
return $r(e, e.borderRadius, r);
}
return null;
};
_n.propTypes = { borderRadius: Lr }, _n.filterProps = ["borderRadius"], sn(cn, un, pn, dn, fn, hn, mn, gn, vn, yn, _n, bn, wn);
var xn = (e) => {
if (void 0 !== e.gap && null !== e.gap) {
const t = Qr(e.theme, "spacing", 8, "gap");
const r = (e) => ({ gap: tn(t, e) });
return $r(e, e.gap, r);
}
return null;
};
xn.propTypes = { gap: Lr }, xn.filterProps = ["gap"];
var Sn = (e) => {
if (void 0 !== e.columnGap && null !== e.columnGap) {
const t = Qr(e.theme, "spacing", 8, "columnGap");
const r = (e) => ({ columnGap: tn(t, e) });
return $r(e, e.columnGap, r);
}
return null;
};
Sn.propTypes = { columnGap: Lr }, Sn.filterProps = ["columnGap"];
var kn = (e) => {
if (void 0 !== e.rowGap && null !== e.rowGap) {
const t = Qr(e.theme, "spacing", 8, "rowGap");
const r = (e) => ({ rowGap: tn(t, e) });
return $r(e, e.rowGap, r);
}
return null;
};
function Cn(e, t) {
return "grey" === t ? t : e;
}
function On(e) {
return e <= 1 && 0 !== e ? 100 * e + "%" : e;
}
kn.propTypes = { rowGap: Lr }, kn.filterProps = ["rowGap"], sn(xn, Sn, kn, Wr({ prop: "gridColumn" }), Wr({ prop: "gridRow" }), Wr({ prop: "gridAutoFlow" }), Wr({ prop: "gridAutoColumns" }), Wr({ prop: "gridAutoRows" }), Wr({ prop: "gridTemplateColumns" }), Wr({ prop: "gridTemplateRows" }), Wr({ prop: "gridTemplateAreas" }), Wr({ prop: "gridArea" })), sn(Wr({
prop: "color",
themeKey: "palette",
transform: Cn
}), Wr({
prop: "bgcolor",
cssProperty: "backgroundColor",
themeKey: "palette",
transform: Cn
}), Wr({
prop: "backgroundColor",
themeKey: "palette",
transform: Cn
}));
var En = Wr({
prop: "width",
transform: On
});
var Tn = (e) => {
if (void 0 !== e.maxWidth && null !== e.maxWidth) {
const t = (t) => {
var r;
var n;
const o = (null == (r = e.theme) || null == (r = r.breakpoints) || null == (r = r.values) ? void 0 : r[t]) || jr[t];
return o ? "px" !== (null == (n = e.theme) || null == (n = n.breakpoints) ? void 0 : n.unit) ? { maxWidth: `${o}${e.theme.breakpoints.unit}` } : { maxWidth: o } : { maxWidth: On(t) };
};
return $r(e, e.maxWidth, t);
}
return null;
};
Tn.filterProps = ["maxWidth"];
var Rn = Wr({
prop: "minWidth",
transform: On
});
var In = Wr({
prop: "height",
transform: On
});
var Mn = Wr({
prop: "maxHeight",
transform: On
});
var An = Wr({
prop: "minHeight",
transform: On
});
Wr({
prop: "size",
cssProperty: "width",
transform: On
}), Wr({
prop: "size",
cssProperty: "height",
transform: On
}), sn(En, Tn, Rn, In, Mn, An, Wr({ prop: "boxSizing" }));
var Pn = {
border: {
themeKey: "borders",
transform: an
},
borderTop: {
themeKey: "borders",
transform: an
},
borderRight: {
themeKey: "borders",
transform: an
},
borderBottom: {
themeKey: "borders",
transform: an
},
borderLeft: {
themeKey: "borders",
transform: an
},
borderColor: { themeKey: "palette" },
borderTopColor: { themeKey: "palette" },
borderRightColor: { themeKey: "palette" },
borderBottomColor: { themeKey: "palette" },
borderLeftColor: { themeKey: "palette" },
outline: {
themeKey: "borders",
transform: an
},
outlineColor: { themeKey: "palette" },
borderRadius: {
themeKey: "shape.borderRadius",
style: _n
},
color: {
themeKey: "palette",
transform: Cn
},
bgcolor: {
themeKey: "palette",
cssProperty: "backgroundColor",
transform: Cn
},
backgroundColor: {
themeKey: "palette",
transform: Cn
},
p: { style: on },
pt: { style: on },
pr: { style: on },
pb: { style: on },
pl: { style: on },
px: { style: on },
py: { style: on },
padding: { style: on },
paddingTop: { style: on },
paddingRight: { style: on },
paddingBottom: { style: on },
paddingLeft: { style: on },
paddingX: { style: on },
paddingY: { style: on },
paddingInline: { style: on },
paddingInlineStart: { style: on },
paddingInlineEnd: { style: on },
paddingBlock: { style: on },
paddingBlockStart: { style: on },
paddingBlockEnd: { style: on },
m: { style: nn },
mt: { style: nn },
mr: { style: nn },
mb: { style: nn },
ml: { style: nn },
mx: { style: nn },
my: { style: nn },
margin: { style: nn },
marginTop: { style: nn },
marginRight: { style: nn },
marginBottom: { style: nn },
marginLeft: { style: nn },
marginX: { style: nn },
marginY: { style: nn },
marginInline: { style: nn },
marginInlineStart: { style: nn },
marginInlineEnd: { style: nn },
marginBlock: { style: nn },
marginBlockStart: { style: nn },
marginBlockEnd: { style: nn },
displayPrint: {
cssProperty: !1,
transform: (e) => ({ "@media print": { display: e } })
},
display: {},
overflow: {},
textOverflow: {},
visibility: {},
whiteSpace: {},
flexBasis: {},
flexDirection: {},
flexWrap: {},
justifyContent: {},
alignItems: {},
alignContent: {},
order: {},
flex: {},
flexGrow: {},
flexShrink: {},
alignSelf: {},
justifyItems: {},
justifySelf: {},
gap: { style: xn },
rowGap: { style: kn },
columnGap: { style: Sn },
gridColumn: {},
gridRow: {},
gridAutoFlow: {},
gridAutoColumns: {},
gridAutoRows: {},
gridTemplateColumns: {},
gridTemplateRows: {},
gridTemplateAreas: {},
gridArea: {},
position: {},
zIndex: { themeKey: "zIndex" },
top: {},
right: {},
bottom: {},
left: {},
boxShadow: { themeKey: "shadows" },
width: { transform: On },
maxWidth: { style: Tn },
minWidth: { transform: On },
height: { transform: On },
maxHeight: { transform: On },
minHeight: { transform: On },
boxSizing: {},
fontFamily: { themeKey: "typography" },
fontSize: { themeKey: "typography" },
fontStyle: { themeKey: "typography" },
fontWeight: { themeKey: "typography" },
letterSpacing: {},
textTransform: {},
lineHeight: {},
textAlign: {},
typography: {
cssProperty: !1,
themeKey: "typography"
}
};
function Nn() {
function e(e, t, r, n) {
const o = {
[e]: t,
theme: r
};
const i = n[e];
if (!i) return { [e]: t };
const { cssProperty: s = e, themeKey: a, transform: l, style: c } = i;
if (null == t) return null;
if ("typography" === a && "inherit" === t) return { [e]: t };
const u = Ur(r, a) || {};
return c ? c(o) : $r(o, t, (t) => {
let r = qr(u, l, t);
return t === r && "string" == typeof t && (r = qr(u, l, `${e}${"default" === t ? "" : hr(t)}`, t)), !1 === s ? r : { [s]: r };
});
}
return function t(r) {
var n;
const { sx: o, theme: i = {} } = r || {};
if (!o) return null;
const s = null != (n = i.unstable_sxConfig) ? n : Pn;
function a(r) {
let n = r;
if ("function" == typeof r) n = r(i);
else if ("object" != typeof r) return r;
if (!n) return null;
const o = Br(i.breakpoints);
const a = Object.keys(o);
let l = o;
return Object.keys(n).forEach((r) => {
const o = "function" == typeof (a = n[r]) ? a(i) : a;
var a;
if (null != o) if ("object" == typeof o) if (s[r]) l = Dr(l, e(r, o, i, s));
else {
const e = $r({ theme: i }, o, (e) => ({ [r]: e }));
!function(...e) {
const t = e.reduce((e, t) => e.concat(Object.keys(t)), []);
const r = new Set(t);
return e.every((e) => r.size === Object.keys(e).length);
}(e, o) ? l = Dr(l, e) : l[r] = t({
sx: o,
theme: i
});
}
else l = Dr(l, e(r, o, i, s));
}), zr(a, l);
}
return Array.isArray(o) ? o.map(a) : a(o);
};
}
var Ln = Nn();
function Dn(e, t) {
const r = this;
if (r.vars && "function" == typeof r.getColorSchemeSelector) return { [r.getColorSchemeSelector(e).replace(/(\[[^\]]+\])/, "*:where($1)")]: t };
return r.palette.mode === e ? t : {};
}
Ln.filterProps = ["sx"];
var jn = [
"breakpoints",
"palette",
"spacing",
"shape"
];
function Fn(e = {}, ...t) {
const { breakpoints: r = {}, palette: n = {}, spacing: o, shape: i = {} } = e, s = w(e, jn), a = Pr(r), l = function(e = 8) {
if (e.mui) return e;
const t = en({ spacing: e });
const r = (...e) => (e.length <= 4 || console.error(`MUI: Too many arguments provided, expected between 0 and 4, got ${e.length}`), (0 === e.length ? [1] : e).map((e) => {
const r = t(e);
return "number" == typeof r ? `${r}px` : r;
}).join(" "));
return r.mui = !0, r;
}(o);
let c = ur({
breakpoints: a,
direction: "ltr",
components: {},
palette: _({ mode: "light" }, n),
spacing: l,
shape: _({}, Nr, i)
}, s);
return c.applyStyles = Dn, c = t.reduce((e, t) => ur(e, t), c), c.unstable_sxConfig = _({}, Pn, null == s ? void 0 : s.unstable_sxConfig), c.unstable_sx = function(e) {
return Ln({
sx: e,
theme: this
});
}, c;
}
var $n = S(Object.freeze(Object.defineProperty({
__proto__: null,
default: Fn,
private_createBreakpoints: Pr,
unstable_applyStyles: Dn
}, Symbol.toStringTag, { value: "Module" })));
var Bn = ["sx"];
function zn(e) {
const { sx: t } = e, { systemProps: n, otherProps: o } = ((e) => {
var t;
var r;
const n = {
systemProps: {},
otherProps: {}
};
const o = null != (t = null == e || null == (r = e.theme) ? void 0 : r.unstable_sxConfig) ? t : Pn;
return Object.keys(e).forEach((t) => {
o[t] ? n.systemProps[t] = e[t] : n.otherProps[t] = e[t];
}), n;
})(w(e, Bn));
let i;
return i = Array.isArray(t) ? [n, ...t] : "function" == typeof t ? (...e) => {
const r = t(...e);
return lr(r) ? _({}, n, r) : n;
} : _({}, n, t), _({}, o, { sx: i });
}
var Vn = S(Object.freeze(Object.defineProperty({
__proto__: null,
default: Ln,
extendSxProp: zn,
unstable_createStyleFunctionSx: Nn,
unstable_defaultSxConfig: Pn
}, Symbol.toStringTag, { value: "Module" })));
var Un;
function qn() {
if (Un) return ie;
Un = 1;
var e = ae();
Object.defineProperty(ie, "__esModule", { value: !0 }), ie.default = function(e = {}) {
const { themeId: a, defaultTheme: c = h, rootShouldForwardProp: u = f, slotShouldForwardProp: d = f } = e, b = (e) => (0, l.default)((0, t.default)({}, e, { theme: g((0, t.default)({}, e, {
defaultTheme: c,
themeId: a
})) }));
return b.__mui_systemSx = !0, (e, l = {}) => {
(0, n.internal_processStyles)(e, (e) => e.filter((e) => !(null != e && e.__mui_systemSx)));
const { name: h, slot: w, skipVariantsResolver: _, skipSx: x, overridesResolver: S = v(m(w)) } = l, k = (0, r.default)(l, p), C = void 0 !== _ ? _ : w && "Root" !== w && "root" !== w || !1, O = x || !1;
let E;
h && (E = `${h}-${m(w || "Root")}`);
let T = f;
"Root" === w || "root" === w ? T = u : w ? T = d : function(e) {
return "string" == typeof e && e.charCodeAt(0) > 96;
}(e) && (T = void 0);
const R = (0, n.default)(e, (0, t.default)({
shouldForwardProp: T,
label: E
}, k));
const I = (e) => "function" == typeof e && e.__emotion_real !== e || (0, o.isPlainObject)(e) ? (r) => y(e, (0, t.default)({}, r, { theme: g({
theme: r.theme,
defaultTheme: c,
themeId: a
}) })) : e;
const M = (r, ...n) => {
let o = I(r);
const l = n ? n.map(I) : [];
h && S && l.push((e) => {
const r = g((0, t.default)({}, e, {
defaultTheme: c,
themeId: a
}));
if (!r.components || !r.components[h] || !r.components[h].styleOverrides) return null;
const n = r.components[h].styleOverrides;
const o = {};
return Object.entries(n).forEach(([n, i]) => {
o[n] = y(i, (0, t.default)({}, e, { theme: r }));
}), S(e, o);
}), h && !C && l.push((e) => {
var r;
const n = g((0, t.default)({}, e, {
defaultTheme: c,
themeId: a
}));
return y({ variants: null == n || null == (r = n.components) || null == (r = r[h]) ? void 0 : r.variants }, (0, t.default)({}, e, { theme: n }));
}), O || l.push(b);
const u = l.length - n.length;
if (Array.isArray(r) && u > 0) {
const e = new Array(u).fill("");
o = [...r, ...e], o.raw = [...r.raw, ...e];
}
const p = R(o, ...l);
{
let t;
h && (t = `${h}${(0, i.default)(w || "")}`), void 0 === t && (t = `Styled(${(0, s.default)(e)})`), p.displayName = t;
}
return e.muiName && (p.muiName = e.muiName), p;
};
return R.withConfig && (M.withConfig = R.withConfig), M;
};
}, ie.shouldForwardProp = f, ie.systemDefaultTheme = void 0;
var t = e(ue());
var r = e(fe());
var n = function(e, t) {
if (e && e.__esModule) return e;
if (null === e || "object" != typeof e && "function" != typeof e) return { default: e };
var r = d(t);
if (r && r.has(e)) return r.get(e);
var n = { __proto__: null };
var o = Object.defineProperty && Object.getOwnPropertyDescriptor;
for (var i in e) if ("default" !== i && Object.prototype.hasOwnProperty.call(e, i)) {
var s = o ? Object.getOwnPropertyDescriptor(e, i) : null;
s && (s.get || s.set) ? Object.defineProperty(n, i, s) : n[i] = e[i];
}
return n.default = e, r && r.set(e, n), n;
}(ar);
var o = pr;
var i = e(mr);
var s = e(Mr);
var a = e($n);
var l = e(Vn);
const c = ["ownerState"];
const u = ["variants"];
const p = [
"name",
"slot",
"skipVariantsResolver",
"skipSx",
"overridesResolver"
];
function d(e) {
if ("function" != typeof WeakMap) return null;
var t = /* @__PURE__ */ new WeakMap();
var r = /* @__PURE__ */ new WeakMap();
return (d = function(e) {
return e ? r : t;
})(e);
}
function f(e) {
return "ownerState" !== e && "theme" !== e && "sx" !== e && "as" !== e;
}
const h = ie.systemDefaultTheme = (0, a.default)();
const m = (e) => e ? e.charAt(0).toLowerCase() + e.slice(1) : e;
function g({ defaultTheme: e, theme: t, themeId: r }) {
return n = t, 0 === Object.keys(n).length ? e : t[r] || t;
var n;
}
function v(e) {
return e ? (t, r) => r[e] : null;
}
function y(e, n) {
let { ownerState: o } = n, i = (0, r.default)(n, c);
const s = "function" == typeof e ? e((0, t.default)({ ownerState: o }, i)) : e;
if (Array.isArray(s)) return s.flatMap((e) => y(e, (0, t.default)({ ownerState: o }, i)));
if (s && "object" == typeof s && Array.isArray(s.variants)) {
const { variants: e = [] } = s;
let n = (0, r.default)(s, u);
return e.forEach((e) => {
let r = !0;
"function" == typeof e.props ? r = e.props((0, t.default)({ ownerState: o }, i, o)) : Object.keys(e.props).forEach((t) => {
(null == o ? void 0 : o[t]) !== e.props[t] && i[t] !== e.props[t] && (r = !1);
}), r && (Array.isArray(n) || (n = [n]), n.push("function" == typeof e.style ? e.style((0, t.default)({ ownerState: o }, i, o)) : e.style));
}), n;
}
return s;
}
return ie;
}
var Wn = x(qn());
function Gn(e) {
if ("object" != typeof e || null === e) return !1;
const t = Object.getPrototypeOf(e);
return !(null !== t && t !== Object.prototype && null !== Object.getPrototypeOf(t) || Symbol.toStringTag in e || Symbol.iterator in e);
}
function Kn(e) {
if (react.isValidElement(e) || !Gn(e)) return e;
const t = {};
return Object.keys(e).forEach((r) => {
t[r] = Kn(e[r]);
}), t;
}
function Yn(e, t, r = { clone: !0 }) {
const o = r.clone ? _({}, e) : e;
return Gn(e) && Gn(t) && Object.keys(t).forEach((i) => {
react.isValidElement(t[i]) ? o[i] = t[i] : Gn(t[i]) && Object.prototype.hasOwnProperty.call(e, i) && Gn(e[i]) ? o[i] = Yn(e[i], t[i], r) : r.clone ? o[i] = Gn(t[i]) ? Kn(t[i]) : t[i] : o[i] = t[i];
}), o;
}
var Zn = (e) => e;
var Xn = (() => {
let e = Zn;
return {
configure(t) {
e = t;
},
generate: (t) => e(t),
reset() {
e = Zn;
}
};
})();
var Jn = {
active: "active",
checked: "checked",
completed: "completed",
disabled: "disabled",
error: "error",
expanded: "expanded",
focused: "focused",
focusVisible: "focusVisible",
open: "open",
readOnly: "readOnly",
required: "required",
selected: "selected"
};
function Qn(e, t, r = "Mui") {
const n = Jn[t];
return n ? `${r}-${n}` : `${Xn.generate(e)}-${t}`;
}
var eo = {};
var to = S(fr);
function ro(e, t = Number.MIN_SAFE_INTEGER, r = Number.MAX_SAFE_INTEGER) {
return Math.max(t, Math.min(e, r));
}
var no = S(Object.freeze(Object.defineProperty({
__proto__: null,
default: ro
}, Symbol.toStringTag, { value: "Module" })));
var oo;
function io() {
if (oo) return eo;
oo = 1;
var e = ae();
Object.defineProperty(eo, "__esModule", { value: !0 }), eo.alpha = u, eo.blend = function(e, t, r, n = 1) {
const o = (e, t) => Math.round(Math.pow(Math.pow(e, 1 / n) * (1 - r) + Math.pow(t, 1 / n) * r, n));
const s = i(e);
const l = i(t);
return a({
type: "rgb",
values: [
o(s.values[0], l.values[0]),
o(s.values[1], l.values[1]),
o(s.values[2], l.values[2])
]
});
}, eo.colorChannel = void 0, eo.darken = p, eo.decomposeColor = i, eo.emphasize = f, eo.getContrastRatio = function(e, t) {
const r = c(e);
const n = c(t);
return (Math.max(r, n) + .05) / (Math.min(r, n) + .05);
}, eo.getLuminance = c, eo.hexToRgb = o, eo.hslToRgb = l, eo.lighten = d, eo.private_safeAlpha = function(e, t, r) {
try {
return u(e, t);
} catch (t) {
return r && console.warn(r), e;
}
}, eo.private_safeColorChannel = void 0, eo.private_safeDarken = function(e, t, r) {
try {
return p(e, t);
} catch (t) {
return r && console.warn(r), e;
}
}, eo.private_safeEmphasize = function(e, t, r) {
try {
return f(e, t);
} catch (t) {
return r && console.warn(r), e;
}
}, eo.private_safeLighten = function(e, t, r) {
try {
return d(e, t);
} catch (t) {
return r && console.warn(r), e;
}
}, eo.recomposeColor = a, eo.rgbToHex = function(e) {
if (0 === e.indexOf("#")) return e;
const { values: t } = i(e);
return `#${t.map((e, t) => function(e) {
const t = e.toString(16);
return 1 === t.length ? `0${t}` : t;
}(3 === t ? Math.round(255 * e) : e)).join("")}`;
};
e(to);
var r = e(no);
function n(e, t = 0, n = 1) {
return (e < t || e > n) && console.error(`MUI: The value provided ${e} is out of range [${t}, ${n}].`), (0, r.default)(e, t, n);
}
function o(e) {
e = e.slice(1);
const t = new RegExp(`.{1,${e.length >= 6 ? 2 : 1}}`, "g");
let r = e.match(t);
return r && 1 === r[0].length && (r = r.map((e) => e + e)), r ? `rgb${4 === r.length ? "a" : ""}(${r.map((e, t) => t < 3 ? parseInt(e, 16) : Math.round(parseInt(e, 16) / 255 * 1e3) / 1e3).join(", ")})` : "";
}
function i(e) {
if (e.type) return e;
if ("#" === e.charAt(0)) return i(o(e));
const r = e.indexOf("(");
const n = e.substring(0, r);
if (-1 === [
"rgb",
"rgba",
"hsl",
"hsla",
"color"
].indexOf(n)) throw new Error(`MUI: Unsupported \`${e}\` color.\nThe following formats are supported: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().`);
let s;
let a = e.substring(r + 1, e.length - 1);
if ("color" === n) {
if (a = a.split(" "), s = a.shift(), 4 === a.length && "/" === a[3].charAt(0) && (a[3] = a[3].slice(1)), -1 === [
"srgb",
"display-p3",
"a98-rgb",
"prophoto-rgb",
"rec-2020"
].indexOf(s)) throw new Error(`MUI: unsupported \`${s}\` color space.\nThe following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rgb, rec-2020.`);
} else a = a.split(",");
return a = a.map((e) => parseFloat(e)), {
type: n,
values: a,
colorSpace: s
};
}
const s = (e) => {
const t = i(e);
return t.values.slice(0, 3).map((e, r) => -1 !== t.type.indexOf("hsl") && 0 !== r ? `${e}%` : e).join(" ");
};
function a(e) {
const { type: t, colorSpace: r } = e;
let { values: n } = e;
return -1 !== t.indexOf("rgb") ? n = n.map((e, t) => t < 3 ? parseInt(e, 10) : e) : -1 !== t.indexOf("hsl") && (n[1] = `${n[1]}%`, n[2] = `${n[2]}%`), n = -1 !== t.indexOf("color") ? `${r} ${n.join(" ")}` : `${n.join(", ")}`, `${t}(${n})`;
}
function l(e) {
e = i(e);
const { values: t } = e, r = t[0], n = t[1] / 100, o = t[2] / 100, s = n * Math.min(o, 1 - o), l = (e, t = (e + r / 30) % 12) => o - s * Math.max(Math.min(t - 3, 9 - t, 1), -1);
let c = "rgb";
const u = [
Math.round(255 * l(0)),
Math.round(255 * l(8)),
Math.round(255 * l(4))
];
return "hsla" === e.type && (c += "a", u.push(t[3])), a({
type: c,
values: u
});
}
function c(e) {
let t = "hsl" === (e = i(e)).type || "hsla" === e.type ? i(l(e)).values : e.values;
return t = t.map((t) => ("color" !== e.type && (t /= 255), t <= .03928 ? t / 12.92 : Math.pow((t + .055) / 1.055, 2.4))), Number((.2126 * t[0] + .7152 * t[1] + .0722 * t[2]).toFixed(3));
}
function u(e, t) {
return e = i(e), t = n(t), "rgb" !== e.type && "hsl" !== e.type || (e.type += "a"), "color" === e.type ? e.values[3] = `/${t}` : e.values[3] = t, a(e);
}
function p(e, t) {
if (e = i(e), t = n(t), -1 !== e.type.indexOf("hsl")) e.values[2] *= 1 - t;
else if (-1 !== e.type.indexOf("rgb") || -1 !== e.type.indexOf("color")) for (let r = 0; r < 3; r += 1) e.values[r] *= 1 - t;
return a(e);
}
function d(e, t) {
if (e = i(e), t = n(t), -1 !== e.type.indexOf("hsl")) e.values[2] += (100 - e.values[2]) * t;
else if (-1 !== e.type.indexOf("rgb")) for (let r = 0; r < 3; r += 1) e.values[r] += (255 - e.values[r]) * t;
else if (-1 !== e.type.indexOf("color")) for (let r = 0; r < 3; r += 1) e.values[r] += (1 - e.values[r]) * t;
return a(e);
}
function f(e, t = .15) {
return c(e) > .5 ? p(e, t) : d(e, t);
}
return eo.colorChannel = s, eo.private_safeColorChannel = (e, t) => {
try {
return s(e);
} catch (r) {
return t && console.warn(t), e;
}
}, eo;
}
var so = io();
var ao = {
black: "#000",
white: "#fff"
};
var lo = {
50: "#fafafa",
100: "#f5f5f5",
200: "#eeeeee",
300: "#e0e0e0",
400: "#bdbdbd",
500: "#9e9e9e",
600: "#757575",
700: "#616161",
800: "#424242",
900: "#212121",
A100: "#f5f5f5",
A200: "#eeeeee",
A400: "#bdbdbd",
A700: "#616161"
};
var co = "#f3e5f5";
var uo = "#ce93d8";
var po = "#ba68c8";
var fo = "#ab47bc";
var ho = "#9c27b0";
var mo = "#7b1fa2";
var go = "#e57373";
var vo = "#ef5350";
var yo = "#f44336";
var bo = "#d32f2f";
var wo = "#c62828";
var _o = "#ffb74d";
var xo = "#ffa726";
var So = "#ff9800";
var ko = "#f57c00";
var Co = "#e65100";
var Oo = "#e3f2fd";
var Eo = "#90caf9";
var To = "#42a5f5";
var Ro = "#1976d2";
var Io = "#1565c0";
var Mo = "#4fc3f7";
var Ao = "#29b6f6";
var Po = "#03a9f4";
var No = "#0288d1";
var Lo = "#01579b";
var Do = "#81c784";
var jo = "#66bb6a";
var Fo = "#4caf50";
var $o = "#388e3c";
var Bo = "#2e7d32";
var zo = "#1b5e20";
var Vo = [
"mode",
"contrastThreshold",
"tonalOffset"
];
var Uo = {
text: {
primary: "rgba(0, 0, 0, 0.87)",
secondary: "rgba(0, 0, 0, 0.6)",
disabled: "rgba(0, 0, 0, 0.38)"
},
divider: "rgba(0, 0, 0, 0.12)",
background: {
paper: ao.white,
default: ao.white
},
action: {
active: "rgba(0, 0, 0, 0.54)",
hover: "rgba(0, 0, 0, 0.04)",
hoverOpacity: .04,
selected: "rgba(0, 0, 0, 0.08)",
selectedOpacity: .08,
disabled: "rgba(0, 0, 0, 0.26)",
disabledBackground: "rgba(0, 0, 0, 0.12)",
disabledOpacity: .38,
focus: "rgba(0, 0, 0, 0.12)",
focusOpacity: .12,
activatedOpacity: .12
}
};
var qo = {
text: {
primary: ao.white,
secondary: "rgba(255, 255, 255, 0.7)",
disabled: "rgba(255, 255, 255, 0.5)",
icon: "rgba(255, 255, 255, 0.5)"
},
divider: "rgba(255, 255, 255, 0.12)",
background: {
paper: "#121212",
default: "#121212"
},
action: {
active: ao.white,
hover: "rgba(255, 255, 255, 0.08)",
hoverOpacity: .08,
selected: "rgba(255, 255, 255, 0.16)",
selectedOpacity: .16,
disabled: "rgba(255, 255, 255, 0.3)",
disabledBackground: "rgba(255, 255, 255, 0.12)",
disabledOpacity: .38,
focus: "rgba(255, 255, 255, 0.12)",
focusOpacity: .12,
activatedOpacity: .24
}
};
function Wo(e, t, r, n) {
const o = n.light || n;
const i = n.dark || 1.5 * n;
e[t] || (e.hasOwnProperty(r) ? e[t] = e[r] : "light" === t ? e.light = so.lighten(e.main, o) : "dark" === t && (e.dark = so.darken(e.main, i)));
}
var Ho = [
"fontFamily",
"fontSize",
"fontWeightLight",
"fontWeightRegular",
"fontWeightMedium",
"fontWeightBold",
"htmlFontSize",
"allVariants",
"pxToRem"
];
var Go = { textTransform: "uppercase" };
var Ko = "\"Roboto\", \"Helvetica\", \"Arial\", sans-serif";
function Yo(e, t) {
const r = "function" == typeof t ? t(e) : t, { fontFamily: n = Ko, fontSize: o = 14, fontWeightLight: i = 300, fontWeightRegular: s = 400, fontWeightMedium: a = 500, fontWeightBold: l = 700, htmlFontSize: c = 16, allVariants: u, pxToRem: p } = r, d = w(r, Ho);
"number" != typeof o && console.error("MUI: `fontSize` is required to be a number."), "number" != typeof c && console.error("MUI: `htmlFontSize` is required to be a number.");
const f = o / 14;
const h = p || ((e) => e / c * f + "rem");
const m = (e, t, r, o, i) => {
return _({
fontFamily: n,
fontWeight: e,
fontSize: h(t),
lineHeight: r
}, n === Ko ? { letterSpacing: (s = o / t, Math.round(1e5 * s) / 1e5 + "em") } : {}, i, u);
var s;
};
const g = {
h1: m(i, 96, 1.167, -1.5),
h2: m(i, 60, 1.2, -.5),
h3: m(s, 48, 1.167, 0),
h4: m(s, 34, 1.235, .25),
h5: m(s, 24, 1.334, 0),
h6: m(a, 20, 1.6, .15),
subtitle1: m(s, 16, 1.75, .15),
subtitle2: m(a, 14, 1.57, .1),
body1: m(s, 16, 1.5, .15),
body2: m(s, 14, 1.43, .15),
button: m(a, 14, 1.75, .4, Go),
caption: m(s, 12, 1.66, .4),
overline: m(s, 12, 2.66, 1, Go),
inherit: {
fontFamily: "inherit",
fontWeight: "inherit",
fontSize: "inherit",
lineHeight: "inherit",
letterSpacing: "inherit"
}
};
return Yn(_({
htmlFontSize: c,
pxToRem: h,
fontFamily: n,
fontSize: o,
fontWeightLight: i,
fontWeightRegular: s,
fontWeightMedium: a,
fontWeightBold: l
}, g), d, { clone: !1 });
}
function Zo(...e) {
return [
`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,0.2)`,
`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,0.14)`,
`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,0.12)`
].join(",");
}
var Xo = [
"none",
Zo(0, 2, 1, -1, 0, 1, 1, 0, 0, 1, 3, 0),
Zo(0, 3, 1, -2, 0, 2, 2, 0, 0, 1, 5, 0),
Zo(0, 3, 3, -2, 0, 3, 4, 0, 0, 1, 8, 0),
Zo(0, 2, 4, -1, 0, 4, 5, 0, 0, 1, 10, 0),
Zo(0, 3, 5, -1, 0, 5, 8, 0, 0, 1, 14, 0),
Zo(0, 3, 5, -1, 0, 6, 10, 0, 0, 1, 18, 0),
Zo(0, 4, 5, -2, 0, 7, 10, 1, 0, 2, 16, 1),
Zo(0, 5, 5, -3, 0, 8, 10, 1, 0, 3, 14, 2),
Zo(0, 5, 6, -3, 0, 9, 12, 1, 0, 3, 16, 2),
Zo(0, 6, 6, -3, 0, 10, 14, 1, 0, 4, 18, 3),
Zo(0, 6, 7, -4, 0, 11, 15, 1, 0, 4, 20, 3),
Zo(0, 7, 8, -4, 0, 12, 17, 2, 0, 5, 22, 4),
Zo(0, 7, 8, -4, 0, 13, 19, 2, 0, 5, 24, 4),
Zo(0, 7, 9, -4, 0, 14, 21, 2, 0, 5, 26, 4),
Zo(0, 8, 9, -5, 0, 15, 22, 2, 0, 6, 28, 5),
Zo(0, 8, 10, -5, 0, 16, 24, 2, 0, 6, 30, 5),
Zo(0, 8, 11, -5, 0, 17, 26, 2, 0, 6, 32, 5),
Zo(0, 9, 11, -5, 0, 18, 28, 2, 0, 7, 34, 6),
Zo(0, 9, 12, -6, 0, 19, 29, 2, 0, 7, 36, 6),
Zo(0, 10, 13, -6, 0, 20, 31, 3, 0, 8, 38, 7),
Zo(0, 10, 13, -6, 0, 21, 33, 3, 0, 8, 40, 7),
Zo(0, 10, 14, -6, 0, 22, 35, 3, 0, 8, 42, 7),
Zo(0, 11, 14, -7, 0, 23, 36, 3, 0, 9, 44, 8),
Zo(0, 11, 15, -7, 0, 24, 38, 3, 0, 9, 46, 8)
];
var Jo = [
"duration",
"easing",
"delay"
];
var Qo = {
easeInOut: "cubic-bezier(0.4, 0, 0.2, 1)",
easeOut: "cubic-bezier(0.0, 0, 0.2, 1)",
easeIn: "cubic-bezier(0.4, 0, 1, 1)",
sharp: "cubic-bezier(0.4, 0, 0.6, 1)"
};
var ei = {
shortest: 150,
shorter: 200,
short: 250,
standard: 300,
complex: 375,
enteringScreen: 225,
leavingScreen: 195
};
function ti(e) {
return `${Math.round(e)}ms`;
}
function ri(e) {
if (!e) return 0;
const t = e / 36;
return Math.round(10 * (4 + 15 * Math.pow(t, .25) + t / 5));
}
function ni(e) {
const t = _({}, Qo, e.easing);
const r = _({}, ei, e.duration);
return _({
getAutoHeightDuration: ri,
create: (e = ["all"], n = {}) => {
const { duration: o = r.standard, easing: i = t.easeInOut, delay: s = 0 } = n, a = w(n, Jo);
{
const t = (e) => "string" == typeof e;
const r = (e) => !isNaN(parseFloat(e));
t(e) || Array.isArray(e) || console.error("MUI: Argument \"props\" must be a string or Array."), r(o) || t(o) || console.error(`MUI: Argument "duration" must be a number or a string but found ${o}.`), t(i) || console.error("MUI: Argument \"easing\" must be a string."), r(s) || t(s) || console.error("MUI: Argument \"delay\" must be a number or a string."), "object" != typeof n && console.error(["MUI: Secong argument of transition.create must be an object.", "Arguments should be either `create('prop1', options)` or `create(['prop1', 'prop2'], options)`"].join("\n")), 0 !== Object.keys(a).length && console.error(`MUI: Unrecognized argument(s) [${Object.keys(a).join(",")}].`);
}
return (Array.isArray(e) ? e : [e]).map((e) => `${e} ${"string" == typeof o ? o : ti(o)} ${i} ${"string" == typeof s ? s : ti(s)}`).join(",");
}
}, e, {
easing: t,
duration: r
});
}
var oi = {
mobileStepper: 1e3,
fab: 1050,
speedDial: 1050,
appBar: 1100,
drawer: 1200,
modal: 1300,
snackbar: 1400,
tooltip: 1500
};
var ii = [
"breakpoints",
"mixins",
"spacing",
"palette",
"transitions",
"typography",
"shape"
];
function si(e = {}, ...t) {
const { mixins: r = {}, palette: n = {}, transitions: o = {}, typography: i = {} } = e, s = w(e, ii);
if (e.vars) throw new Error("MUI: `vars` is a private field used for CSS variables support.\nPlease use another name.");
const a = function(e) {
const { mode: t = "light", contrastThreshold: r = 3, tonalOffset: n = .2 } = e, o = w(e, Vo), i = e.primary || function(e = "light") {
return "dark" === e ? {
main: Eo,
light: Oo,
dark: To
} : {
main: Ro,
light: To,
dark: Io
};
}(t), s = e.secondary || function(e = "light") {
return "dark" === e ? {
main: uo,
light: co,
dark: fo
} : {
main: ho,
light: po,
dark: mo
};
}(t), a = e.error || function(e = "light") {
return "dark" === e ? {
main: yo,
light: go,
dark: bo
} : {
main: bo,
light: vo,
dark: wo
};
}(t), l = e.info || function(e = "light") {
return "dark" === e ? {
main: Ao,
light: Mo,
dark: No
} : {
main: No,
light: Po,
dark: Lo
};
}(t), c = e.success || function(e = "light") {
return "dark" === e ? {
main: jo,
light: Do,
dark: $o
} : {
main: Bo,
light: Fo,
dark: zo
};
}(t), u = e.warning || function(e = "light") {
return "dark" === e ? {
main: xo,
light: _o,
dark: ko
} : {
main: "#ed6c02",
light: So,
dark: Co
};
}(t);
function p(e) {
const t = so.getContrastRatio(e, qo.text.primary) >= r ? qo.text.primary : Uo.text.primary;
{
const r = so.getContrastRatio(e, t);
r < 3 && console.error([
`MUI: The contrast ratio of ${r}:1 for ${t} on ${e}`,
"falls below the WCAG recommended absolute minimum contrast ratio of 3:1.",
"https://www.w3.org/TR/2008/REC-WCAG20-20081211/#visual-audio-contrast-contrast"
].join("\n"));
}
return t;
}
const d = ({ color: e, name: t, mainShade: r = 500, lightShade: o = 300, darkShade: i = 700 }) => {
if (!(e = _({}, e)).main && e[r] && (e.main = e[r]), !e.hasOwnProperty("main")) throw new Error(`MUI: The color${t ? ` (${t})` : ""} provided to augmentColor(color) is invalid.\nThe color object needs to have a \`main\` property or a \`${r}\` property.`);
if ("string" != typeof e.main) throw new Error(`MUI: The color${t ? ` (${t})` : ""} provided to augmentColor(color) is invalid.\n\`color.main\` should be a string, but \`${JSON.stringify(e.main)}\` was provided instead.\n\nDid you intend to use one of the following approaches?\n\nimport { green } from "@mui/material/colors";\n\nconst theme1 = createTheme({ palette: {\n primary: green,\n} });\n\nconst theme2 = createTheme({ palette: {\n primary: { main: green[500] },\n} });`);
return Wo(e, "light", o, n), Wo(e, "dark", i, n), e.contrastText || (e.contrastText = p(e.main)), e;
};
const f = {
dark: qo,
light: Uo
};
return f[t] || console.error(`MUI: The palette mode \`${t}\` is not supported.`), Yn(_({
common: _({}, ao),
mode: t,
primary: d({
color: i,
name: "primary"
}),
secondary: d({
color: s,
name: "secondary",
mainShade: "A400",
lightShade: "A200",
darkShade: "A700"
}),
error: d({
color: a,
name: "error"
}),
warning: d({
color: u,
name: "warning"
}),
info: d({
color: l,
name: "info"
}),
success: d({
color: c,
name: "success"
}),
grey: lo,
contrastThreshold: r,
getContrastText: p,
augmentColor: d,
tonalOffset: n
}, f[t]), o);
}(n);
const l = Fn(e);
let c = Yn(l, {
mixins: (u = l.breakpoints, p = r, _({ toolbar: {
minHeight: 56,
[u.up("xs")]: { "@media (orientation: landscape)": { minHeight: 48 } },
[u.up("sm")]: { minHeight: 64 }
} }, p)),
palette: a,
shadows: Xo.slice(),
typography: Yo(a, i),
transitions: ni(o),
zIndex: _({}, oi)
});
var u;
var p;
if (c = Yn(c, s), c = t.reduce((e, t) => Yn(e, t), c), true) {
const e = [
"active",
"checked",
"completed",
"disabled",
"error",
"expanded",
"focused",
"focusVisible",
"required",
"selected"
];
const t = (t, r) => {
let n;
for (n in t) {
const o = t[n];
if (-1 !== e.indexOf(n) && Object.keys(o).length > 0) {
{
const e = Qn("", n);
console.error([
`MUI: The \`${r}\` component increases the CSS specificity of the \`${n}\` internal state.`,
"You can not override it like this: ",
JSON.stringify(t, null, 2),
"",
`Instead, you need to use the '&.${e}' syntax:`,
JSON.stringify({ root: { [`&.${e}`]: o } }, null, 2),
"",
"https://mui.com/r/state-classes-guide"
].join("\n"));
}
t[n] = {};
}
}
};
Object.keys(c.components).forEach((e) => {
const r = c.components[e].styleOverrides;
r && 0 === e.indexOf("Mui") && t(r, e);
});
}
return c.unstable_sxConfig = _({}, Pn, null == s ? void 0 : s.unstable_sxConfig), c.unstable_sx = function(e) {
return Ln({
sx: e,
theme: this
});
}, c;
}
var ai = si();
var li = "$$material";
function ci(e) {
return "ownerState" !== e && "theme" !== e && "sx" !== e && "as" !== e;
}
var ui = (e) => ci(e) && "classes" !== e;
var pi = Wn({
themeId: li,
defaultTheme: ai,
rootShouldForwardProp: ui
});
function di(e, t) {
const r = _({}, t);
return Object.keys(e).forEach((n) => {
if (n.toString().match(/^(components|slots)$/)) r[n] = _({}, e[n], r[n]);
else if (n.toString().match(/^(componentsProps|slotProps)$/)) {
const o = e[n] || {};
const i = t[n];
r[n] = {}, i && Object.keys(i) ? o && Object.keys(o) ? (r[n] = _({}, i), Object.keys(o).forEach((e) => {
r[n][e] = di(o[e], i[e]);
})) : r[n] = i : r[n] = o;
} else void 0 === r[n] && (r[n] = e[n]);
}), r;
}
function fi(e) {
const { theme: t, name: r, props: n } = e;
return t && t.components && t.components[r] && t.components[r].defaultProps ? di(t.components[r].defaultProps, n) : n;
}
function hi(e = null) {
const t = react.useContext(Ft);
return t && (r = t, 0 !== Object.keys(r).length) ? t : e;
var r;
}
var mi = Fn();
function gi(e = mi) {
return hi(e);
}
function vi({ props: e, name: t, defaultTheme: r, themeId: n }) {
let o = gi(r);
return n && (o = o[n] || o), fi({
theme: o,
name: t,
props: e
});
}
function yi({ props: e, name: t }) {
return vi({
props: e,
name: t,
defaultTheme: ai,
themeId: li
});
}
function bi(e) {
if ("string" != typeof e) throw new Error("MUI: `capitalize(string)` expects a string argument.");
return e.charAt(0).toUpperCase() + e.slice(1);
}
var wi = Number.isInteger || function(e) {
return "number" == typeof e && isFinite(e) && Math.floor(e) === e;
};
function _i(e, t, r, n) {
const o = e[t];
if (null == o || !wi(o)) {
const e = function(e) {
const t = typeof e;
switch (t) {
case "number": return Number.isNaN(e) ? "NaN" : Number.isFinite(e) ? e !== Math.floor(e) ? "float" : "number" : "Infinity";
case "object": return null === e ? "null" : e.constructor.name;
default: return t;
}
}(o);
return /* @__PURE__ */ new RangeError(`Invalid ${n} \`${t}\` of type \`${e}\` supplied to \`${r}\`, expected \`integer\`.`);
}
return null;
}
function xi(e, t, ...r) {
return void 0 === e[t] ? null : _i(e, t, ...r);
}
function Si() {
return null;
}
xi.isRequired = _i, Si.isRequired = Si;
var ki = xi;
function Ci(e, t) {
return function(...r) {
return e(...r) || t(...r);
};
}
var Oi = (e) => {
let t;
return t = e < 1 ? 5.11916 * Math.pow(e, 2) : 4.5 * Math.log(e + 1) + 2, (t / 100).toFixed(2);
};
function Ei({ styles: t, themeId: r, defaultTheme: n = {} }) {
const o = gi(n);
return (0, import_jsx_runtime.jsx)(nr, { styles: "function" == typeof t ? t(r && o[r] || o) : t });
}
Ei.propTypes = {
defaultTheme: ee.object,
styles: ee.oneOfType([
ee.array,
ee.func,
ee.number,
ee.object,
ee.string,
ee.bool
]),
themeId: ee.string
};
var Ti = (e) => e;
var Ri = (() => {
let e = Ti;
return {
configure(t) {
e = t;
},
generate: (t) => e(t),
reset() {
e = Ti;
}
};
})();
function Ii(e) {
var t;
var r;
var n = "";
if ("string" == typeof e || "number" == typeof e) n += e;
else if ("object" == typeof e) if (Array.isArray(e)) {
var o = e.length;
for (t = 0; t < o; t++) e[t] && (r = Ii(e[t])) && (n && (n += " "), n += r);
} else for (r in e) e[r] && (n && (n += " "), n += r);
return n;
}
function Mi() {
for (var e, t, r = 0, n = "", o = arguments.length; r < o; r++) (e = arguments[r]) && (t = Ii(e)) && (n && (n += " "), n += t);
return n;
}
var Ai = ["className", "component"];
var Pi = {
active: "active",
checked: "checked",
completed: "completed",
disabled: "disabled",
error: "error",
expanded: "expanded",
focused: "focused",
focusVisible: "focusVisible",
open: "open",
readOnly: "readOnly",
required: "required",
selected: "selected"
};
var Ni = ["ownerState"];
var Li = ["variants"];
var Di = [
"name",
"slot",
"skipVariantsResolver",
"skipSx",
"overridesResolver"
];
function ji(e) {
return "ownerState" !== e && "theme" !== e && "sx" !== e && "as" !== e;
}
var Fi = Fn();
var $i = (e) => e ? e.charAt(0).toLowerCase() + e.slice(1) : e;
function Bi({ defaultTheme: e, theme: t, themeId: r }) {
return n = t, 0 === Object.keys(n).length ? e : t[r] || t;
var n;
}
function zi(e) {
return e ? (t, r) => r[e] : null;
}
function Vi(e, t) {
let { ownerState: r } = t, n = w(t, Ni);
const o = "function" == typeof e ? e(_({ ownerState: r }, n)) : e;
if (Array.isArray(o)) return o.flatMap((e) => Vi(e, _({ ownerState: r }, n)));
if (o && "object" == typeof o && Array.isArray(o.variants)) {
const { variants: e = [] } = o;
let t = w(o, Li);
return e.forEach((e) => {
let o = !0;
"function" == typeof e.props ? o = e.props(_({ ownerState: r }, n, r)) : Object.keys(e.props).forEach((t) => {
(null == r ? void 0 : r[t]) !== e.props[t] && n[t] !== e.props[t] && (o = !1);
}), o && (Array.isArray(t) || (t = [t]), t.push("function" == typeof e.style ? e.style(_({ ownerState: r }, n, r)) : e.style));
}), t;
}
return o;
}
var Ui = function(e = {}) {
const { themeId: t, defaultTheme: r = Fi, rootShouldForwardProp: n = ji, slotShouldForwardProp: o = ji } = e, i = (e) => Ln(_({}, e, { theme: Bi(_({}, e, {
defaultTheme: r,
themeId: t
})) }));
return i.__mui_systemSx = !0, (e, s = {}) => {
ir(e, (e) => e.filter((e) => !(null != e && e.__mui_systemSx)));
const { name: a, slot: l, skipVariantsResolver: c, skipSx: u, overridesResolver: p = zi($i(l)) } = s, d = w(s, Di), f = void 0 !== c ? c : l && "Root" !== l && "root" !== l || !1, h = u || !1;
let m;
a && (m = `${a}-${$i(l || "Root")}`);
let g = ji;
"Root" === l || "root" === l ? g = n : l ? g = o : function(e) {
return "string" == typeof e && e.charCodeAt(0) > 96;
}(e) && (g = void 0);
const v = or(e, _({
shouldForwardProp: g,
label: m
}, d));
const y = (e) => "function" == typeof e && e.__emotion_real !== e || lr(e) ? (n) => Vi(e, _({}, n, { theme: Bi({
theme: n.theme,
defaultTheme: r,
themeId: t
}) })) : e;
const b = (n, ...o) => {
let s = y(n);
const c = o ? o.map(y) : [];
a && p && c.push((e) => {
const n = Bi(_({}, e, {
defaultTheme: r,
themeId: t
}));
if (!n.components || !n.components[a] || !n.components[a].styleOverrides) return null;
const o = n.components[a].styleOverrides;
const i = {};
return Object.entries(o).forEach(([t, r]) => {
i[t] = Vi(r, _({}, e, { theme: n }));
}), p(e, i);
}), a && !f && c.push((e) => {
var n;
const o = Bi(_({}, e, {
defaultTheme: r,
themeId: t
}));
return Vi({ variants: null == o || null == (n = o.components) || null == (n = n[a]) ? void 0 : n.variants }, _({}, e, { theme: o }));
}), h || c.push(i);
const u = c.length - o.length;
if (Array.isArray(n) && u > 0) {
const e = new Array(u).fill("");
s = [...n, ...e], s.raw = [...n.raw, ...e];
}
const d = v(s, ...c);
{
let t;
a && (t = `${a}${hr(l || "")}`), void 0 === t && (t = `Styled(${Ir(e)})`), d.displayName = t;
}
return e.muiName && (d.muiName = e.muiName), d;
};
return v.withConfig && (b.withConfig = v.withConfig), b;
};
}();
var qi = "undefined" != typeof window ? react.useLayoutEffect : react.useEffect;
function Wi(e, t, r, o, i) {
const [s, a] = react.useState(() => i && r ? r(e).matches : o ? o(e).matches : t);
return qi(() => {
let t = !0;
if (!r) return;
const n = r(e);
const o = () => {
t && a(n.matches);
};
return o(), n.addListener(o), () => {
t = !1, n.removeListener(o);
};
}, [e, r]), s;
}
var Hi = react.useSyncExternalStore;
function Gi(e, t, r, o, i) {
const s = react.useCallback(() => t, [t]), a = react.useMemo(() => {
if (i && r) return () => r(e).matches;
if (null !== o) {
const { matches: t } = o(e);
return () => t;
}
return s;
}, [
s,
e,
o,
i,
r
]), [l, c] = react.useMemo(() => {
if (null === r) return [s, () => () => {}];
const t = r(e);
return [() => t.matches, (e) => (t.addListener(e), () => {
t.removeListener(e);
})];
}, [
s,
r,
e
]);
return Hi(c, l, a);
}
function Ki(e, t = {}) {
const r = hi(), o = "undefined" != typeof window && void 0 !== window.matchMedia, { defaultMatches: i = !1, matchMedia: s = o ? window.matchMedia : null, ssrMatchMedia: a = null, noSsr: l = !1 } = fi({
name: "MuiUseMediaQuery",
props: t,
theme: r
});
"function" == typeof e && null === r && console.error([
"MUI: The `query` argument provided is invalid.",
"You are providing a function without a theme in the context.",
"One of the parent elements needs to use a ThemeProvider."
].join("\n"));
let c = "function" == typeof e ? e(r) : e;
c = c.replace(/^@media( ?)/m, "");
const u = (void 0 !== Hi ? Gi : Wi)(c, i, s, a, l);
return react.useDebugValue({
query: c,
match: u
}), u;
}
function Yi(e, t = 0, r = 1) {
return (e < t || e > r) && console.error(`MUI: The value provided ${e} is out of range [${t}, ${r}].`), ro(e, t, r);
}
function Zi(e) {
if (e.type) return e;
if ("#" === e.charAt(0)) return Zi(function(e) {
e = e.slice(1);
const t = new RegExp(`.{1,${e.length >= 6 ? 2 : 1}}`, "g");
let r = e.match(t);
return r && 1 === r[0].length && (r = r.map((e) => e + e)), r ? `rgb${4 === r.length ? "a" : ""}(${r.map((e, t) => t < 3 ? parseInt(e, 16) : Math.round(parseInt(e, 16) / 255 * 1e3) / 1e3).join(", ")})` : "";
}(e));
const t = e.indexOf("(");
const r = e.substring(0, t);
if (-1 === [
"rgb",
"rgba",
"hsl",
"hsla",
"color"
].indexOf(r)) throw new Error(`MUI: Unsupported \`${e}\` color.\nThe following formats are supported: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().`);
let n;
let o = e.substring(t + 1, e.length - 1);
if ("color" === r) {
if (o = o.split(" "), n = o.shift(), 4 === o.length && "/" === o[3].charAt(0) && (o[3] = o[3].slice(1)), -1 === [
"srgb",
"display-p3",
"a98-rgb",
"prophoto-rgb",
"rec-2020"
].indexOf(n)) throw new Error(`MUI: unsupported \`${n}\` color space.\nThe following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rgb, rec-2020.`);
} else o = o.split(",");
return o = o.map((e) => parseFloat(e)), {
type: r,
values: o,
colorSpace: n
};
}
function Xi(e) {
const { type: t, colorSpace: r } = e;
let { values: n } = e;
return -1 !== t.indexOf("rgb") ? n = n.map((e, t) => t < 3 ? parseInt(e, 10) : e) : -1 !== t.indexOf("hsl") && (n[1] = `${n[1]}%`, n[2] = `${n[2]}%`), n = -1 !== t.indexOf("color") ? `${r} ${n.join(" ")}` : `${n.join(", ")}`, `${t}(${n})`;
}
function Ji(e, t) {
return e = Zi(e), t = Yi(t), "rgb" !== e.type && "hsl" !== e.type || (e.type += "a"), "color" === e.type ? e.values[3] = `/${t}` : e.values[3] = t, Xi(e);
}
function Qi(e, t) {
if (e = Zi(e), t = Yi(t), -1 !== e.type.indexOf("hsl")) e.values[2] *= 1 - t;
else if (-1 !== e.type.indexOf("rgb") || -1 !== e.type.indexOf("color")) for (let r = 0; r < 3; r += 1) e.values[r] *= 1 - t;
return Xi(e);
}
function es(e, t) {
if (e = Zi(e), t = Yi(t), -1 !== e.type.indexOf("hsl")) e.values[2] += (100 - e.values[2]) * t;
else if (-1 !== e.type.indexOf("rgb")) for (let r = 0; r < 3; r += 1) e.values[r] += (255 - e.values[r]) * t;
else if (-1 !== e.type.indexOf("color")) for (let r = 0; r < 3; r += 1) e.values[r] += (1 - e.values[r]) * t;
return Xi(e);
}
var ts = "exact-prop: ";
var rs = react.createContext(null);
rs.displayName = "ThemeContext";
var ns = rs;
function os() {
const e = react.useContext(ns);
return react.useDebugValue(e), e;
}
var is = "function" == typeof Symbol && Symbol.for ? Symbol.for("mui.nested") : "__THEME_NESTED__";
function ss(t) {
const { children: r, theme: o } = t, i = os();
null === i && "function" == typeof o && console.error([
"MUI: You are providing a theme function prop to the ThemeProvider component:",
"<ThemeProvider theme={outerTheme => outerTheme} />",
"",
"However, no outer theme is present.",
"Make sure a theme is already injected higher in the React tree or provide a theme object."
].join("\n"));
const s = react.useMemo(() => {
const e = null === i ? o : function(e, t) {
if ("function" == typeof t) {
const r = t(e);
return r || console.error(["MUI: You should return an object from your theme function, i.e.", "<ThemeProvider theme={() => ({})} />"].join("\n")), r;
}
return _({}, e, t);
}(i, o);
return null != e && (e[is] = null !== i), e;
}, [o, i]);
return (0, import_jsx_runtime.jsx)(ns.Provider, {
value: s,
children: r
});
}
ss.propTypes = {
children: ee.node,
theme: ee.oneOfType([ee.object, ee.func]).isRequired
}, ss.propTypes = function(e) {
return _({}, e, { [ts]: (t) => {
const r = Object.keys(t).filter((t) => !e.hasOwnProperty(t));
return r.length > 0 ? /* @__PURE__ */ new Error(`The following props are not supported: ${r.map((e) => `\`${e}\``).join(", ")}. Please remove them.`) : null;
} });
}(ss.propTypes);
var as = "exact-prop: ";
var ls = ["value"];
var cs = react.createContext();
function us(t) {
let { value: r } = t, n = w(t, ls);
return (0, import_jsx_runtime.jsx)(cs.Provider, _({ value: null == r || r }, n));
}
us.propTypes = {
children: ee.node,
value: ee.bool
};
var ps = () => {
const e = react.useContext(cs);
return null != e && e;
};
var ds = react.createContext(void 0);
function fs({ value: t, children: r }) {
return (0, import_jsx_runtime.jsx)(ds.Provider, {
value: t,
children: r
});
}
fs.propTypes = {
children: ee.node,
value: ee.object
};
var hs = {};
function ms(e, t, r, o = !1) {
return react.useMemo(() => {
const n = e && t[e] || t;
if ("function" == typeof r) {
const i = r(n);
const s = e ? _({}, t, { [e]: i }) : i;
return o ? () => s : s;
}
return _({}, t, e ? { [e]: r } : r);
}, [
e,
t,
r,
o
]);
}
function gs(t) {
const { children: r, theme: n, themeId: o } = t, i = hi(hs), s = os() || hs;
(null === i && "function" == typeof n || o && i && !i[o] && "function" == typeof n) && console.error([
"MUI: You are providing a theme function prop to the ThemeProvider component:",
"<ThemeProvider theme={outerTheme => outerTheme} />",
"",
"However, no outer theme is present.",
"Make sure a theme is already injected higher in the React tree or provide a theme object."
].join("\n"));
const a = ms(o, i, n);
const l = ms(o, s, n, !0);
const c = "rtl" === a.direction;
return (0, import_jsx_runtime.jsx)(ss, {
theme: l,
children: (0, import_jsx_runtime.jsx)(Ft.Provider, {
value: a,
children: (0, import_jsx_runtime.jsx)(us, {
value: c,
children: (0, import_jsx_runtime.jsx)(fs, {
value: null == a ? void 0 : a.components,
children: r
})
})
})
});
}
gs.propTypes = {
children: ee.node,
theme: ee.oneOfType([ee.func, ee.object]).isRequired,
themeId: ee.string
}, gs.propTypes = function(e) {
return _({}, e, { [as]: (t) => {
const r = Object.keys(t).filter((t) => !e.hasOwnProperty(t));
return r.length > 0 ? /* @__PURE__ */ new Error(`The following props are not supported: ${r.map((e) => `\`${e}\``).join(", ")}. Please remove them.`) : null;
} });
}(gs.propTypes);
var vs = [
"component",
"direction",
"spacing",
"divider",
"children",
"className",
"useFlexGap"
];
var ys = Fn();
var bs = Ui("div", {
name: "MuiStack",
slot: "Root",
overridesResolver: (e, t) => t.root
});
function ws(e) {
return vi({
props: e,
name: "MuiStack",
defaultTheme: ys
});
}
function _s(e, t) {
const r = react.Children.toArray(e).filter(Boolean);
return r.reduce((e, o, i) => (e.push(o), i < r.length - 1 && e.push(react.cloneElement(t, { key: `separator-${i}` })), e), []);
}
var xs = ({ ownerState: e, theme: t }) => {
let r = _({
display: "flex",
flexDirection: "column"
}, $r({ theme: t }, Vr({
values: e.direction,
breakpoints: t.breakpoints.values
}), (e) => ({ flexDirection: e })));
if (e.spacing) {
const n = en(t);
const o = Object.keys(t.breakpoints.values).reduce((t, r) => (("object" == typeof e.spacing && null != e.spacing[r] || "object" == typeof e.direction && null != e.direction[r]) && (t[r] = !0), t), {});
const i = Vr({
values: e.direction,
base: o
});
const s = Vr({
values: e.spacing,
base: o
});
"object" == typeof i && Object.keys(i).forEach((e, t, r) => {
if (!i[e]) {
const n = t > 0 ? i[r[t - 1]] : "column";
i[e] = n;
}
}), r = ur(r, $r({ theme: t }, s, (t, r) => {
return e.useFlexGap ? { gap: tn(n, t) } : {
"& > :not(style):not(style)": { margin: 0 },
"& > :not(style) ~ :not(style)": { [`margin${o = r ? i[r] : e.direction, {
row: "Left",
"row-reverse": "Right",
column: "Top",
"column-reverse": "Bottom"
}[o]}`]: tn(n, t) }
};
var o;
}));
}
return r = function(e, ...t) {
const r = Br(e);
const n = [r, ...t].reduce((e, t) => ur(e, t), {});
return zr(Object.keys(r), n);
}(t.breakpoints, r), r;
};
function Ss() {
const e = gi(ai);
return react.useDebugValue(e), e[li] || e;
}
function ks(e, t, r = "Mui") {
const n = {};
return t.forEach((t) => {
n[t] = Qn(e, t, r);
}), n;
}
function Cs(e) {
return Qn("MuiPaper", e);
}
ks("MuiPaper", [
"root",
"rounded",
"outlined",
"elevation",
"elevation0",
"elevation1",
"elevation2",
"elevation3",
"elevation4",
"elevation5",
"elevation6",
"elevation7",
"elevation8",
"elevation9",
"elevation10",
"elevation11",
"elevation12",
"elevation13",
"elevation14",
"elevation15",
"elevation16",
"elevation17",
"elevation18",
"elevation19",
"elevation20",
"elevation21",
"elevation22",
"elevation23",
"elevation24"
]);
var Os = [
"className",
"component",
"elevation",
"square",
"variant"
];
var Es = pi("div", {
name: "MuiPaper",
slot: "Root",
overridesResolver: (e, t) => {
const { ownerState: r } = e;
return [
t.root,
t[r.variant],
!r.square && t.rounded,
"elevation" === r.variant && t[`elevation${r.elevation}`]
];
}
})(({ theme: e, ownerState: t }) => {
var r;
return _({
backgroundColor: (e.vars || e).palette.background.paper,
color: (e.vars || e).palette.text.primary,
transition: e.transitions.create("box-shadow")
}, !t.square && { borderRadius: e.shape.borderRadius }, "outlined" === t.variant && { border: `1px solid ${(e.vars || e).palette.divider}` }, "elevation" === t.variant && _({ boxShadow: (e.vars || e).shadows[t.elevation] }, !e.vars && "dark" === e.palette.mode && { backgroundImage: `linear-gradient(${so.alpha("#fff", Oi(t.elevation))}, ${so.alpha("#fff", Oi(t.elevation))})` }, e.vars && { backgroundImage: null == (r = e.vars.overlays) ? void 0 : r[t.elevation] }));
});
var Ts = react.forwardRef(function(t, r) {
const n = yi({
props: t,
name: "MuiPaper"
}), { className: o, component: i = "div", elevation: s = 1, square: a = !1, variant: l = "elevation" } = n, c = w(n, Os), u = _({}, n, {
component: i,
elevation: s,
square: a,
variant: l
}), p = ((e) => {
const { square: t, elevation: r, variant: n, classes: o } = e;
return ne({ root: [
"root",
n,
!t && "rounded",
"elevation" === n && `elevation${r}`
] }, Cs, o);
})(u);
return void 0 === Ss().shadows[s] && console.error([`MUI: The elevation provided <Paper elevation={${s}}> is not available in the theme.`, `Please make sure that \`theme.shadows[${s}]\` is defined.`].join("\n")), (0, import_jsx_runtime.jsx)(Es, _({
as: i,
ownerState: u,
className: re(p.root, o),
ref: r
}, c));
});
Ts.propTypes = {
children: ee.node,
classes: ee.object,
className: ee.string,
component: ee.elementType,
elevation: Ci(ki, (e) => {
const { elevation: t, variant: r } = e;
return t > 0 && "outlined" === r ? /* @__PURE__ */ new Error(`MUI: Combining \`elevation={${t}}\` with \`variant="${r}"\` has no effect. Either use \`elevation={0}\` or use a different \`variant\`.`) : null;
}),
square: ee.bool,
sx: ee.oneOfType([
ee.arrayOf(ee.oneOfType([
ee.func,
ee.object,
ee.bool
])),
ee.func,
ee.object
]),
variant: ee.oneOfType([ee.oneOf(["elevation", "outlined"]), ee.string])
};
var Rs = Ts;
function Is(e) {
return Qn("MuiAppBar", e);
}
ks("MuiAppBar", [
"root",
"positionFixed",
"positionAbsolute",
"positionSticky",
"positionStatic",
"positionRelative",
"colorDefault",
"colorPrimary",
"colorSecondary",
"colorInherit",
"colorTransparent",
"colorError",
"colorInfo",
"colorSuccess",
"colorWarning"
]);
var Ms = [
"className",
"color",
"enableColorOnDark",
"position"
];
var As = (e, t) => e ? `${null == e ? void 0 : e.replace(")", "")}, ${t})` : t;
var Ps = pi(Rs, {
name: "MuiAppBar",
slot: "Root",
overridesResolver: (e, t) => {
const { ownerState: r } = e;
return [
t.root,
t[`position${bi(r.position)}`],
t[`color${bi(r.color)}`]
];
}
})(({ theme: e, ownerState: t }) => {
const r = "light" === e.palette.mode ? e.palette.grey[100] : e.palette.grey[900];
return _({
display: "flex",
flexDirection: "column",
width: "100%",
boxSizing: "border-box",
flexShrink: 0
}, "fixed" === t.position && {
position: "fixed",
zIndex: (e.vars || e).zIndex.appBar,
top: 0,
left: "auto",
right: 0,
"@media print": { position: "absolute" }
}, "absolute" === t.position && {
position: "absolute",
zIndex: (e.vars || e).zIndex.appBar,
top: 0,
left: "auto",
right: 0
}, "sticky" === t.position && {
position: "sticky",
zIndex: (e.vars || e).zIndex.appBar,
top: 0,
left: "auto",
right: 0
}, "static" === t.position && { position: "static" }, "relative" === t.position && { position: "relative" }, !e.vars && _({}, "default" === t.color && {
backgroundColor: r,
color: e.palette.getContrastText(r)
}, t.color && "default" !== t.color && "inherit" !== t.color && "transparent" !== t.color && {
backgroundColor: e.palette[t.color].main,
color: e.palette[t.color].contrastText
}, "inherit" === t.color && { color: "inherit" }, "dark" === e.palette.mode && !t.enableColorOnDark && {
backgroundColor: null,
color: null
}, "transparent" === t.color && _({
backgroundColor: "transparent",
color: "inherit"
}, "dark" === e.palette.mode && { backgroundImage: "none" })), e.vars && _({}, "default" === t.color && {
"--AppBar-background": t.enableColorOnDark ? e.vars.palette.AppBar.defaultBg : As(e.vars.palette.AppBar.darkBg, e.vars.palette.AppBar.defaultBg),
"--AppBar-color": t.enableColorOnDark ? e.vars.palette.text.primary : As(e.vars.palette.AppBar.darkColor, e.vars.palette.text.primary)
}, t.color && !t.color.match(/^(default|inherit|transparent)$/) && {
"--AppBar-background": t.enableColorOnDark ? e.vars.palette[t.color].main : As(e.vars.palette.AppBar.darkBg, e.vars.palette[t.color].main),
"--AppBar-color": t.enableColorOnDark ? e.vars.palette[t.color].contrastText : As(e.vars.palette.AppBar.darkColor, e.vars.palette[t.color].contrastText)
}, {
backgroundColor: "var(--AppBar-background)",
color: "inherit" === t.color ? "inherit" : "var(--AppBar-color)"
}, "transparent" === t.color && {
backgroundImage: "none",
backgroundColor: "transparent",
color: "inherit"
}));
});
var Ns = react.forwardRef(function(t, r) {
const n = yi({
props: t,
name: "MuiAppBar"
}), { className: o, color: i = "primary", enableColorOnDark: s = !1, position: a = "fixed" } = n, l = w(n, Ms), c = _({}, n, {
color: i,
position: a,
enableColorOnDark: s
}), u = ((e) => {
const { color: t, position: r, classes: n } = e;
return ne({ root: [
"root",
`color${bi(t)}`,
`position${bi(r)}`
] }, Is, n);
})(c);
return (0, import_jsx_runtime.jsx)(Ps, _({
square: !0,
component: "header",
ownerState: c,
elevation: 4,
className: re(u.root, o, "fixed" === a && "mui-fixed"),
ref: r
}, l));
});
Ns.propTypes = {
children: ee.node,
classes: ee.object,
className: ee.string,
color: ee.oneOfType([ee.oneOf([
"default",
"inherit",
"primary",
"secondary",
"transparent",
"error",
"info",
"success",
"warning"
]), ee.string]),
enableColorOnDark: ee.bool,
position: ee.oneOf([
"absolute",
"fixed",
"relative",
"static",
"sticky"
]),
sx: ee.oneOfType([
ee.arrayOf(ee.oneOfType([
ee.func,
ee.object,
ee.bool
])),
ee.func,
ee.object
])
};
var Ls = Ns;
var Ds = {
elevation: 0,
color: "default"
};
var js = react.default.forwardRef((e, t) => react.default.createElement(Ls, _objectSpread2(_objectSpread2(_objectSpread2({}, Ds), e), {}, { ref: t })));
js.defaultProps = Ds;
var Fs = js;
var $s = function(t = {}) {
const { createStyledComponent: r = bs, useThemeProps: o = ws, componentName: i = "MuiStack" } = t, s = () => function(e, t, r) {
const n = {};
return Object.keys(e).forEach((t) => {
n[t] = e[t].reduce((e, t) => {
if (t) {
const n = ((e) => function(e, t, r = "Mui") {
const n = Pi[t];
return n ? `${r}-${n}` : `${Ri.generate(e)}-${t}`;
}(i, e))(t);
"" !== n && e.push(n), r && r[t] && e.push(r[t]);
}
return e;
}, []).join(" ");
}), n;
}({ root: ["root"] }, 0, {}), a = r(xs), l = react.forwardRef(function(t, r) {
const n = zn(o(t)), { component: i = "div", direction: l = "column", spacing: c = 0, divider: u, children: p, className: d, useFlexGap: f = !1 } = n, h = w(n, vs), m = {
direction: l,
spacing: c,
useFlexGap: f
}, g = s();
return (0, import_jsx_runtime.jsx)(a, _({
as: i,
ownerState: m,
ref: r,
className: Mi(g.root, d)
}, h, { children: u ? _s(p, u) : p }));
});
return l.propTypes = {
children: ee.node,
direction: ee.oneOfType([
ee.oneOf([
"column-reverse",
"column",
"row-reverse",
"row"
]),
ee.arrayOf(ee.oneOf([
"column-reverse",
"column",
"row-reverse",
"row"
])),
ee.object
]),
divider: ee.node,
spacing: ee.oneOfType([
ee.arrayOf(ee.oneOfType([ee.number, ee.string])),
ee.number,
ee.object,
ee.string
]),
sx: ee.oneOfType([
ee.arrayOf(ee.oneOfType([
ee.func,
ee.object,
ee.bool
])),
ee.func,
ee.object
])
}, l;
}({
createStyledComponent: pi("div", {
name: "MuiStack",
slot: "Root",
overridesResolver: (e, t) => t.root
}),
useThemeProps: (e) => yi({
props: e,
name: "MuiStack"
})
});
$s.propTypes = {
children: ee.node,
component: ee.elementType,
direction: ee.oneOfType([
ee.oneOf([
"column-reverse",
"column",
"row-reverse",
"row"
]),
ee.arrayOf(ee.oneOf([
"column-reverse",
"column",
"row-reverse",
"row"
])),
ee.object
]),
divider: ee.node,
spacing: ee.oneOfType([
ee.arrayOf(ee.oneOfType([ee.number, ee.string])),
ee.number,
ee.object,
ee.string
]),
sx: ee.oneOfType([
ee.arrayOf(ee.oneOfType([
ee.func,
ee.object,
ee.bool
])),
ee.func,
ee.object
]),
useFlexGap: ee.bool
};
var Bs = $s;
var zs = react.default.forwardRef((e, t) => react.default.createElement(Bs, _objectSpread2(_objectSpread2({}, e), {}, { ref: t })));
function Vs(e) {
return Qn("MuiToolbar", e);
}
ks("MuiToolbar", [
"root",
"gutters",
"regular",
"dense"
]);
var Us = [
"className",
"component",
"disableGutters",
"variant"
];
var qs = pi("div", {
name: "MuiToolbar",
slot: "Root",
overridesResolver: (e, t) => {
const { ownerState: r } = e;
return [
t.root,
!r.disableGutters && t.gutters,
t[r.variant]
];
}
})(({ theme: e, ownerState: t }) => _({
position: "relative",
display: "flex",
alignItems: "center"
}, !t.disableGutters && {
paddingLeft: e.spacing(2),
paddingRight: e.spacing(2),
[e.breakpoints.up("sm")]: {
paddingLeft: e.spacing(3),
paddingRight: e.spacing(3)
}
}, "dense" === t.variant && { minHeight: 48 }), ({ theme: e, ownerState: t }) => "regular" === t.variant && e.mixins.toolbar);
var Ws = react.forwardRef(function(t, r) {
const n = yi({
props: t,
name: "MuiToolbar"
}), { className: o, component: i = "div", disableGutters: s = !1, variant: a = "regular" } = n, l = w(n, Us), c = _({}, n, {
component: i,
disableGutters: s,
variant: a
}), u = ((e) => {
const { classes: t, disableGutters: r, variant: n } = e;
return ne({ root: [
"root",
!r && "gutters",
n
] }, Vs, t);
})(c);
return (0, import_jsx_runtime.jsx)(qs, _({
as: i,
className: re(u.root, o),
ref: r,
ownerState: c
}, l));
});
Ws.propTypes = {
children: ee.node,
classes: ee.object,
className: ee.string,
component: ee.elementType,
disableGutters: ee.bool,
sx: ee.oneOfType([
ee.arrayOf(ee.oneOfType([
ee.func,
ee.object,
ee.bool
])),
ee.func,
ee.object
]),
variant: ee.oneOfType([ee.oneOf(["dense", "regular"]), ee.string])
};
var Hs = Ws;
var Gs = react.default.forwardRef((e, t) => react.default.createElement(Hs, _objectSpread2(_objectSpread2({}, e), {}, { ref: t })));
function Ks(e) {
return Qn("MuiTypography", e);
}
ks("MuiTypography", [
"root",
"h1",
"h2",
"h3",
"h4",
"h5",
"h6",
"subtitle1",
"subtitle2",
"body1",
"body2",
"inherit",
"button",
"caption",
"overline",
"alignLeft",
"alignRight",
"alignCenter",
"alignJustify",
"noWrap",
"gutterBottom",
"paragraph"
]);
var Ys = [
"align",
"className",
"component",
"gutterBottom",
"noWrap",
"paragraph",
"variant",
"variantMapping"
];
var Zs = pi("span", {
name: "MuiTypography",
slot: "Root",
overridesResolver: (e, t) => {
const { ownerState: r } = e;
return [
t.root,
r.variant && t[r.variant],
"inherit" !== r.align && t[`align${bi(r.align)}`],
r.noWrap && t.noWrap,
r.gutterBottom && t.gutterBottom,
r.paragraph && t.paragraph
];
}
})(({ theme: e, ownerState: t }) => _({ margin: 0 }, "inherit" === t.variant && { font: "inherit" }, "inherit" !== t.variant && e.typography[t.variant], "inherit" !== t.align && { textAlign: t.align }, t.noWrap && {
overflow: "hidden",
textOverflow: "ellipsis",
whiteSpace: "nowrap"
}, t.gutterBottom && { marginBottom: "0.35em" }, t.paragraph && { marginBottom: 16 }));
var Xs = {
h1: "h1",
h2: "h2",
h3: "h3",
h4: "h4",
h5: "h5",
h6: "h6",
subtitle1: "h6",
subtitle2: "h6",
body1: "p",
body2: "p",
inherit: "p"
};
var Js = {
primary: "primary.main",
textPrimary: "text.primary",
secondary: "secondary.main",
textSecondary: "text.secondary",
error: "error.main"
};
var Qs = react.forwardRef(function(t, r) {
const n = yi({
props: t,
name: "MuiTypography"
}), o = ((e) => Js[e] || e)(n.color), i = zn(_({}, n, { color: o })), { align: s = "inherit", className: a, component: l, gutterBottom: c = !1, noWrap: u = !1, paragraph: p = !1, variant: d = "body1", variantMapping: f = Xs } = i, h = w(i, Ys), m = _({}, i, {
align: s,
color: o,
className: a,
component: l,
gutterBottom: c,
noWrap: u,
paragraph: p,
variant: d,
variantMapping: f
}), g = l || (p ? "p" : f[d] || Xs[d]) || "span", v = ((e) => {
const { align: t, gutterBottom: r, noWrap: n, paragraph: o, variant: i, classes: s } = e;
return ne({ root: [
"root",
i,
"inherit" !== e.align && `align${bi(t)}`,
r && "gutterBottom",
n && "noWrap",
o && "paragraph"
] }, Ks, s);
})(m);
return (0, import_jsx_runtime.jsx)(Zs, _({
as: g,
ref: r,
ownerState: m,
className: re(v.root, a)
}, h));
});
Qs.propTypes = {
align: ee.oneOf([
"center",
"inherit",
"justify",
"left",
"right"
]),
children: ee.node,
classes: ee.object,
className: ee.string,
component: ee.elementType,
gutterBottom: ee.bool,
noWrap: ee.bool,
paragraph: ee.bool,
sx: ee.oneOfType([
ee.arrayOf(ee.oneOfType([
ee.func,
ee.object,
ee.bool
])),
ee.func,
ee.object
]),
variant: ee.oneOfType([ee.oneOf([
"body1",
"body2",
"button",
"caption",
"h1",
"h2",
"h3",
"h4",
"h5",
"h6",
"inherit",
"overline",
"subtitle1",
"subtitle2"
]), ee.string]),
variantMapping: ee.object
};
var ea = Qs;
var ta = { variantMapping: {
display1: "h1",
display2: "h2",
display3: "h3",
display4: "h4",
display5: "h5",
display6: "h6"
} };
var ra = react.default.forwardRef((e, t) => {
const r = _objectSpread2(_objectSpread2(_objectSpread2({}, ta), e), {}, { variantMapping: _objectSpread2(_objectSpread2({}, ta.variantMapping), e.variantMapping) });
return react.default.createElement(ea, _objectSpread2(_objectSpread2({}, r), {}, { ref: t }));
});
ra.defaultProps = ta;
var na = ra;
var oa = ["theme"];
function ia(t) {
let { theme: r } = t, n = w(t, oa);
const o = r[li];
return (0, import_jsx_runtime.jsx)(gs, _({}, n, {
themeId: o ? li : void 0,
theme: o || r
}));
}
ia.propTypes = {
children: ee.node,
theme: ee.oneOfType([ee.object, ee.func]).isRequired
};
var sa = ee.oneOfType([ee.func, ee.object]);
var aa = Ci(ee.elementType, function(e, t, r, n, o) {
const i = e[t];
const s = o || t;
if (null == i || "undefined" == typeof window) return null;
let a;
return "function" != typeof i || function(e) {
const { prototype: t = {} } = e;
return Boolean(t.isReactComponent);
}(i) || (a = "Did you accidentally provide a plain function component instead?"), void 0 !== a ? /* @__PURE__ */ new Error(`Invalid ${n} \`${s}\` supplied to \`${r}\`. Expected an element type that can hold a ref. ${a} For more information see https://mui.com/r/caveat-with-refs-guide`) : null;
});
function la(e, t) {
"function" == typeof e ? e(t) : e && (e.current = t);
}
function ca(...e) {
return react.useMemo(() => e.every((e) => null == e) ? null : (t) => {
e.forEach((e) => {
la(e, t);
});
}, e);
}
var ua = "undefined" != typeof window ? react.useLayoutEffect : react.useEffect;
function pa(e) {
const t = react.useRef(e);
return ua(() => {
t.current = e;
}), react.useRef((...e) => (0, t.current)(...e)).current;
}
var da = {};
var fa = [];
var ha = class ha {
static create() {
return new ha();
}
start(e, t) {
this.clear(), this.currentId = setTimeout(() => {
this.currentId = null, t();
}, e);
}
constructor() {
this.currentId = null, this.clear = () => {
null !== this.currentId && (clearTimeout(this.currentId), this.currentId = null);
}, this.disposeEffect = () => this.clear;
}
};
function ma() {
const e = function(e) {
const t = react.useRef(da);
return t.current === da && (t.current = e(void 0)), t;
}(ha.create).current;
var t;
return t = e.disposeEffect, react.useEffect(t, fa), e;
}
var ga = !0;
var va = !1;
var ya = new ha();
var ba = {
text: !0,
search: !0,
url: !0,
tel: !0,
email: !0,
password: !0,
number: !0,
date: !0,
month: !0,
week: !0,
time: !0,
datetime: !0,
"datetime-local": !0
};
function wa(e) {
e.metaKey || e.altKey || e.ctrlKey || (ga = !0);
}
function _a() {
ga = !1;
}
function xa() {
"hidden" === this.visibilityState && va && (ga = !0);
}
function Sa() {
const e = react.useCallback((e) => {
var t;
null != e && ((t = e.ownerDocument).addEventListener("keydown", wa, !0), t.addEventListener("mousedown", _a, !0), t.addEventListener("pointerdown", _a, !0), t.addEventListener("touchstart", _a, !0), t.addEventListener("visibilitychange", xa, !0));
}, []);
const t = react.useRef(!1);
return {
isFocusVisibleRef: t,
onFocus: function(e) {
return !!function(e) {
const { target: t } = e;
try {
return t.matches(":focus-visible");
} catch (e) {}
return ga || function(e) {
const { type: t, tagName: r } = e;
return !("INPUT" !== r || !ba[t] || e.readOnly) || "TEXTAREA" === r && !e.readOnly || !!e.isContentEditable;
}(t);
}(e) && (t.current = !0, !0);
},
onBlur: function() {
return !!t.current && (va = !0, ya.start(100, () => {
va = !1;
}), t.current = !1, !0);
},
ref: e
};
}
function ka(e, t) {
return ka = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(e, t) {
return e.__proto__ = t, e;
}, ka(e, t);
}
function Ca(e, t) {
e.prototype = Object.create(t.prototype), e.prototype.constructor = e, ka(e, t);
}
var Oa = ee.oneOfType([ee.number, ee.shape({
enter: ee.number,
exit: ee.number,
appear: ee.number
}).isRequired]);
ee.oneOfType([
ee.string,
ee.shape({
enter: ee.string,
exit: ee.string,
active: ee.string
}),
ee.shape({
enter: ee.string,
enterDone: ee.string,
enterActive: ee.string,
exit: ee.string,
exitDone: ee.string,
exitActive: ee.string
})
]);
var Ea = react.default.createContext(null);
var Ta = "unmounted";
var Ra = "exited";
var Ia = "entering";
var Ma = "entered";
var Aa = "exiting";
var Pa = function(e) {
function t(t, r) {
var n = e.call(this, t, r) || this;
var o;
var i = r && !r.isMounting ? t.enter : t.appear;
return n.appearStatus = null, t.in ? i ? (o = Ra, n.appearStatus = Ia) : o = Ma : o = t.unmountOnExit || t.mountOnEnter ? Ta : Ra, n.state = { status: o }, n.nextCallback = null, n;
}
Ca(t, e), t.getDerivedStateFromProps = function(e, t) {
return e.in && t.status === Ta ? { status: Ra } : null;
};
var r = t.prototype;
return r.componentDidMount = function() {
this.updateStatus(!0, this.appearStatus);
}, r.componentDidUpdate = function(e) {
var t = null;
if (e !== this.props) {
var r = this.state.status;
this.props.in ? r !== Ia && r !== Ma && (t = Ia) : r !== Ia && r !== Ma || (t = Aa);
}
this.updateStatus(!1, t);
}, r.componentWillUnmount = function() {
this.cancelNextCallback();
}, r.getTimeouts = function() {
var e;
var t;
var r;
var n = this.props.timeout;
return e = t = r = n, null != n && "number" != typeof n && (e = n.exit, t = n.enter, r = void 0 !== n.appear ? n.appear : t), {
exit: e,
enter: t,
appear: r
};
}, r.updateStatus = function(e, t) {
void 0 === e && (e = !1), null !== t ? (this.cancelNextCallback(), t === Ia ? ((this.props.unmountOnExit || this.props.mountOnEnter) && (this.props.nodeRef ? this.props.nodeRef.current : react_dom.default.findDOMNode(this)), this.performEnter(e)) : this.performExit()) : this.props.unmountOnExit && this.state.status === Ra && this.setState({ status: Ta });
}, r.performEnter = function(e) {
var t = this;
var r = this.props.enter;
var n = this.context ? this.context.isMounting : e;
var o = this.props.nodeRef ? [n] : [react_dom.default.findDOMNode(this), n];
var i = o[0];
var s = o[1];
var a = this.getTimeouts();
var l = n ? a.appear : a.enter;
e || r ? (this.props.onEnter(i, s), this.safeSetState({ status: Ia }, function() {
t.props.onEntering(i, s), t.onTransitionEnd(l, function() {
t.safeSetState({ status: Ma }, function() {
t.props.onEntered(i, s);
});
});
})) : this.safeSetState({ status: Ma }, function() {
t.props.onEntered(i);
});
}, r.performExit = function() {
var e = this;
var t = this.props.exit;
var r = this.getTimeouts();
var n = this.props.nodeRef ? void 0 : react_dom.default.findDOMNode(this);
t ? (this.props.onExit(n), this.safeSetState({ status: Aa }, function() {
e.props.onExiting(n), e.onTransitionEnd(r.exit, function() {
e.safeSetState({ status: Ra }, function() {
e.props.onExited(n);
});
});
})) : this.safeSetState({ status: Ra }, function() {
e.props.onExited(n);
});
}, r.cancelNextCallback = function() {
null !== this.nextCallback && (this.nextCallback.cancel(), this.nextCallback = null);
}, r.safeSetState = function(e, t) {
t = this.setNextCallback(t), this.setState(e, t);
}, r.setNextCallback = function(e) {
var t = this;
var r = !0;
return this.nextCallback = function(n) {
r && (r = !1, t.nextCallback = null, e(n));
}, this.nextCallback.cancel = function() {
r = !1;
}, this.nextCallback;
}, r.onTransitionEnd = function(e, t) {
this.setNextCallback(t);
var r = this.props.nodeRef ? this.props.nodeRef.current : react_dom.default.findDOMNode(this);
var n = null == e && !this.props.addEndListener;
if (r && !n) {
if (this.props.addEndListener) {
var o = this.props.nodeRef ? [this.nextCallback] : [r, this.nextCallback];
var i = o[0];
var s = o[1];
this.props.addEndListener(i, s);
}
null != e && setTimeout(this.nextCallback, e);
} else setTimeout(this.nextCallback, 0);
}, r.render = function() {
var e = this.state.status;
if (e === Ta) return null;
var t = this.props;
var r = t.children;
var n = w(t, [
"children",
"in",
"mountOnEnter",
"unmountOnExit",
"appear",
"enter",
"exit",
"timeout",
"addEndListener",
"onEnter",
"onEntering",
"onEntered",
"onExit",
"onExiting",
"onExited",
"nodeRef"
]);
return react.default.createElement(Ea.Provider, { value: null }, "function" == typeof r ? r(e, n) : react.default.cloneElement(react.default.Children.only(r), n));
}, t;
}(react.default.Component);
function Na() {}
Pa.contextType = Ea, Pa.propTypes = {
nodeRef: ee.shape({ current: "undefined" == typeof Element ? ee.any : function(e, t, r, n, o, i) {
var s = e[t];
return ee.instanceOf(s && "ownerDocument" in s ? s.ownerDocument.defaultView.Element : Element)(e, t, r, n, o, i);
} }),
children: ee.oneOfType([ee.func.isRequired, ee.element.isRequired]).isRequired,
in: ee.bool,
mountOnEnter: ee.bool,
unmountOnExit: ee.bool,
appear: ee.bool,
enter: ee.bool,
exit: ee.bool,
timeout: function(e) {
var t = Oa;
e.addEndListener || (t = t.isRequired);
for (var r = arguments.length, n = new Array(r > 1 ? r - 1 : 0), o = 1; o < r; o++) n[o - 1] = arguments[o];
return t.apply(void 0, [e].concat(n));
},
addEndListener: ee.func,
onEnter: ee.func,
onEntering: ee.func,
onEntered: ee.func,
onExit: ee.func,
onExiting: ee.func,
onExited: ee.func
}, Pa.defaultProps = {
in: !1,
mountOnEnter: !1,
unmountOnExit: !1,
appear: !1,
enter: !0,
exit: !0,
onEnter: Na,
onEntering: Na,
onEntered: Na,
onExit: Na,
onExiting: Na,
onExited: Na
}, Pa.UNMOUNTED = Ta, Pa.EXITED = Ra, Pa.ENTERING = Ia, Pa.ENTERED = Ma, Pa.EXITING = Aa;
var La = Pa;
function Da(e, t) {
var r = Object.create(null);
return e && react.Children.map(e, function(e) {
return e;
}).forEach(function(e) {
r[e.key] = function(e) {
return t && (0, react.isValidElement)(e) ? t(e) : e;
}(e);
}), r;
}
function ja(e, t, r) {
return null != r[t] ? r[t] : e.props[t];
}
function Fa(e, t, r) {
var n = Da(e.children);
var o = function(e, t) {
function r(r) {
return r in t ? t[r] : e[r];
}
e = e || {}, t = t || {};
var n;
var o = Object.create(null);
var i = [];
for (var s in e) s in t ? i.length && (o[s] = i, i = []) : i.push(s);
var a = {};
for (var l in t) {
if (o[l]) for (n = 0; n < o[l].length; n++) {
var c = o[l][n];
a[o[l][n]] = r(c);
}
a[l] = r(l);
}
for (n = 0; n < i.length; n++) a[i[n]] = r(i[n]);
return a;
}(t, n);
return Object.keys(o).forEach(function(i) {
var s = o[i];
if ((0, react.isValidElement)(s)) {
var a = i in t;
var u = i in n;
var p = t[i];
var d = (0, react.isValidElement)(p) && !p.props.in;
!u || a && !d ? u || !a || d ? u && a && (0, react.isValidElement)(p) && (o[i] = (0, react.cloneElement)(s, {
onExited: r.bind(null, s),
in: p.props.in,
exit: ja(s, "exit", e),
enter: ja(s, "enter", e)
})) : o[i] = (0, react.cloneElement)(s, { in: !1 }) : o[i] = (0, react.cloneElement)(s, {
onExited: r.bind(null, s),
in: !0,
exit: ja(s, "exit", e),
enter: ja(s, "enter", e)
});
}
}), o;
}
var $a = Object.values || function(e) {
return Object.keys(e).map(function(t) {
return e[t];
});
};
var Ba = function(e) {
function t(t, r) {
var n;
var o = (n = e.call(this, t, r) || this).handleExited.bind(function(e) {
if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
return e;
}(n));
return n.state = {
contextValue: { isMounting: !0 },
handleExited: o,
firstRender: !0
}, n;
}
Ca(t, e);
var r = t.prototype;
return r.componentDidMount = function() {
this.mounted = !0, this.setState({ contextValue: { isMounting: !1 } });
}, r.componentWillUnmount = function() {
this.mounted = !1;
}, t.getDerivedStateFromProps = function(e, t) {
var r;
var n;
var o = t.children;
var i = t.handleExited;
return {
children: t.firstRender ? (r = e, n = i, Da(r.children, function(e) {
return (0, react.cloneElement)(e, {
onExited: n.bind(null, e),
in: !0,
appear: ja(e, "appear", r),
enter: ja(e, "enter", r),
exit: ja(e, "exit", r)
});
})) : Fa(e, o, i),
firstRender: !1
};
}, r.handleExited = function(e, t) {
var r = Da(this.props.children);
e.key in r || (e.props.onExited && e.props.onExited(t), this.mounted && this.setState(function(t) {
var r = _({}, t.children);
return delete r[e.key], { children: r };
}));
}, r.render = function() {
var e = this.props;
var t = e.component;
var r = e.childFactory;
var n = w(e, ["component", "childFactory"]);
var i = this.state.contextValue;
var s = $a(this.state.children).map(r);
return delete n.appear, delete n.enter, delete n.exit, null === t ? react.default.createElement(Ea.Provider, { value: i }, s) : react.default.createElement(Ea.Provider, { value: i }, react.default.createElement(t, n, s));
}, t;
}(react.default.Component);
Ba.propTypes = {
component: ee.any,
children: ee.node,
appear: ee.bool,
enter: ee.bool,
exit: ee.bool,
childFactory: ee.func
}, Ba.defaultProps = {
component: "div",
childFactory: function(e) {
return e;
}
};
var za = Ba;
function Va(t) {
const { className: r, classes: o, pulsate: i = !1, rippleX: s, rippleY: a, rippleSize: l, in: c, onExited: u, timeout: p } = t, [d, f] = react.useState(!1), h = re(r, o.ripple, o.rippleVisible, i && o.ripplePulsate), m = {
width: l,
height: l,
top: -l / 2 + a,
left: -l / 2 + s
}, g = re(o.child, d && o.childLeaving, i && o.childPulsate);
return c || d || f(!0), react.useEffect(() => {
if (!c && null != u) {
const e = setTimeout(u, p);
return () => {
clearTimeout(e);
};
}
}, [
u,
c,
p
]), (0, import_jsx_runtime.jsx)("span", {
className: h,
style: m,
children: (0, import_jsx_runtime.jsx)("span", { className: g })
});
}
Va.propTypes = {
classes: ee.object.isRequired,
className: ee.string,
in: ee.bool,
onExited: ee.func,
pulsate: ee.bool,
rippleSize: ee.number,
rippleX: ee.number,
rippleY: ee.number,
timeout: ee.number.isRequired
};
var Ua = ks("MuiTouchRipple", [
"root",
"ripple",
"rippleVisible",
"ripplePulsate",
"child",
"childLeaving",
"childPulsate"
]);
var qa = [
"center",
"classes",
"className"
];
var Wa;
var Ha;
var Ga;
var Ka;
var Ya = (e) => e;
var Za = Gt(Wa || (Wa = Ya`
0% {
transform: scale(0);
opacity: 0.1;
}
100% {
transform: scale(1);
opacity: 0.3;
}
`));
var Xa = Gt(Ha || (Ha = Ya`
0% {
opacity: 1;
}
100% {
opacity: 0;
}
`));
var Ja = Gt(Ga || (Ga = Ya`
0% {
transform: scale(1);
}
50% {
transform: scale(0.92);
}
100% {
transform: scale(1);
}
`));
var Qa = pi("span", {
name: "MuiTouchRipple",
slot: "Root"
})({
overflow: "hidden",
pointerEvents: "none",
position: "absolute",
zIndex: 0,
top: 0,
right: 0,
bottom: 0,
left: 0,
borderRadius: "inherit"
});
var el = pi(Va, {
name: "MuiTouchRipple",
slot: "Ripple"
})(Ka || (Ka = Ya`
opacity: 0;
position: absolute;
&.${0} {
opacity: 0.3;
transform: scale(1);
animation-name: ${0};
animation-duration: ${0}ms;
animation-timing-function: ${0};
}
&.${0} {
animation-duration: ${0}ms;
}
& .${0} {
opacity: 1;
display: block;
width: 100%;
height: 100%;
border-radius: 50%;
background-color: currentColor;
}
& .${0} {
opacity: 0;
animation-name: ${0};
animation-duration: ${0}ms;
animation-timing-function: ${0};
}
& .${0} {
position: absolute;
/* @noflip */
left: 0px;
top: 0;
animation-name: ${0};
animation-duration: 2500ms;
animation-timing-function: ${0};
animation-iteration-count: infinite;
animation-delay: 200ms;
}
`), Ua.rippleVisible, Za, 550, ({ theme: e }) => e.transitions.easing.easeInOut, Ua.ripplePulsate, ({ theme: e }) => e.transitions.duration.shorter, Ua.child, Ua.childLeaving, Xa, 550, ({ theme: e }) => e.transitions.easing.easeInOut, Ua.childPulsate, Ja, ({ theme: e }) => e.transitions.easing.easeInOut);
var tl = react.forwardRef(function(t, r) {
const o = yi({
props: t,
name: "MuiTouchRipple"
}), { center: i = !1, classes: s = {}, className: a } = o, l = w(o, qa), [c, u] = react.useState([]), p = react.useRef(0), d = react.useRef(null);
react.useEffect(() => {
d.current && (d.current(), d.current = null);
}, [c]);
const f = react.useRef(!1);
const h = ma();
const m = react.useRef(null);
const g = react.useRef(null);
const v = react.useCallback((t) => {
const { pulsate: r, rippleX: n, rippleY: o, rippleSize: i, cb: a } = t;
u((t) => [...t, (0, import_jsx_runtime.jsx)(el, {
classes: {
ripple: re(s.ripple, Ua.ripple),
rippleVisible: re(s.rippleVisible, Ua.rippleVisible),
ripplePulsate: re(s.ripplePulsate, Ua.ripplePulsate),
child: re(s.child, Ua.child),
childLeaving: re(s.childLeaving, Ua.childLeaving),
childPulsate: re(s.childPulsate, Ua.childPulsate)
},
timeout: 550,
pulsate: r,
rippleX: n,
rippleY: o,
rippleSize: i
}, p.current)]), p.current += 1, d.current = a;
}, [s]);
const y = react.useCallback((e = {}, t = {}, r = () => {}) => {
const { pulsate: n = !1, center: o = i || t.pulsate, fakeElement: s = !1 } = t;
if ("mousedown" === (null == e ? void 0 : e.type) && f.current) return void (f.current = !1);
"touchstart" === (null == e ? void 0 : e.type) && (f.current = !0);
const a = s ? null : g.current;
const l = a ? a.getBoundingClientRect() : {
width: 0,
height: 0,
left: 0,
top: 0
};
let c;
let u;
let p;
if (o || void 0 === e || 0 === e.clientX && 0 === e.clientY || !e.clientX && !e.touches) c = Math.round(l.width / 2), u = Math.round(l.height / 2);
else {
const { clientX: t, clientY: r } = e.touches && e.touches.length > 0 ? e.touches[0] : e;
c = Math.round(t - l.left), u = Math.round(r - l.top);
}
if (o) p = Math.sqrt((2 * Math.pow(l.width, 2) + Math.pow(l.height, 2)) / 3), p % 2 == 0 && (p += 1);
else {
const e = 2 * Math.max(Math.abs((a ? a.clientWidth : 0) - c), c) + 2;
const t = 2 * Math.max(Math.abs((a ? a.clientHeight : 0) - u), u) + 2;
p = Math.sqrt(Math.pow(e, 2) + Math.pow(t, 2));
}
null != e && e.touches ? null === m.current && (m.current = () => {
v({
pulsate: n,
rippleX: c,
rippleY: u,
rippleSize: p,
cb: r
});
}, h.start(80, () => {
m.current && (m.current(), m.current = null);
})) : v({
pulsate: n,
rippleX: c,
rippleY: u,
rippleSize: p,
cb: r
});
}, [
i,
v,
h
]);
const b = react.useCallback(() => {
y({}, { pulsate: !0 });
}, [y]);
const x = react.useCallback((e, t) => {
if (h.clear(), "touchend" === (null == e ? void 0 : e.type) && m.current) return m.current(), m.current = null, void h.start(0, () => {
x(e, t);
});
m.current = null, u((e) => e.length > 0 ? e.slice(1) : e), d.current = t;
}, [h]);
return react.useImperativeHandle(r, () => ({
pulsate: b,
start: y,
stop: x
}), [
b,
y,
x
]), (0, import_jsx_runtime.jsx)(Qa, _({
className: re(Ua.root, s.root, a),
ref: g
}, l, { children: (0, import_jsx_runtime.jsx)(za, {
component: null,
exit: !0,
children: c
}) }));
});
tl.propTypes = {
center: ee.bool,
classes: ee.object,
className: ee.string
};
var rl = tl;
function nl(e) {
return Qn("MuiButtonBase", e);
}
var ol = ks("MuiButtonBase", [
"root",
"disabled",
"focusVisible"
]);
var il = [
"action",
"centerRipple",
"children",
"className",
"component",
"disabled",
"disableRipple",
"disableTouchRipple",
"focusRipple",
"focusVisibleClassName",
"LinkComponent",
"onBlur",
"onClick",
"onContextMenu",
"onDragLeave",
"onFocus",
"onFocusVisible",
"onKeyDown",
"onKeyUp",
"onMouseDown",
"onMouseLeave",
"onMouseUp",
"onTouchEnd",
"onTouchMove",
"onTouchStart",
"tabIndex",
"TouchRippleProps",
"touchRippleRef",
"type"
];
var sl = pi("button", {
name: "MuiButtonBase",
slot: "Root",
overridesResolver: (e, t) => t.root
})({
display: "inline-flex",
alignItems: "center",
justifyContent: "center",
position: "relative",
boxSizing: "border-box",
WebkitTapHighlightColor: "transparent",
backgroundColor: "transparent",
outline: 0,
border: 0,
margin: 0,
borderRadius: 0,
padding: 0,
cursor: "pointer",
userSelect: "none",
verticalAlign: "middle",
MozAppearance: "none",
WebkitAppearance: "none",
textDecoration: "none",
color: "inherit",
"&::-moz-focus-inner": { borderStyle: "none" },
[`&.${ol.disabled}`]: {
pointerEvents: "none",
cursor: "default"
},
"@media print": { colorAdjust: "exact" }
});
var al = react.forwardRef(function(r, o) {
const i = yi({
props: r,
name: "MuiButtonBase"
}), { action: s, centerRipple: a = !1, children: l, className: c, component: u = "button", disabled: p = !1, disableRipple: d = !1, disableTouchRipple: f = !1, focusRipple: h = !1, LinkComponent: m = "a", onBlur: g, onClick: v, onContextMenu: y, onDragLeave: b, onFocus: x, onFocusVisible: S, onKeyDown: k, onKeyUp: C, onMouseDown: O, onMouseLeave: E, onMouseUp: T, onTouchEnd: R, onTouchMove: I, onTouchStart: M, tabIndex: A = 0, TouchRippleProps: P, touchRippleRef: N, type: L } = i, D = w(i, il), j = react.useRef(null), F = react.useRef(null), $ = ca(F, N), { isFocusVisibleRef: B, onFocus: z, onBlur: V, ref: U } = Sa(), [q, W] = react.useState(!1);
p && q && W(!1), react.useImperativeHandle(s, () => ({ focusVisible: () => {
W(!0), j.current.focus();
} }), []);
const [H, G] = react.useState(!1);
react.useEffect(() => {
G(!0);
}, []);
const K = H && !d && !p;
function Y(e, t, r = f) {
return pa((n) => (t && t(n), !r && F.current && F.current[e](n), !0));
}
react.useEffect(() => {
q && h && !d && H && F.current.pulsate();
}, [
d,
h,
q,
H
]);
const Z = Y("start", O);
const X = Y("stop", y);
const J = Y("stop", b);
const Q = Y("stop", T);
const ee = Y("stop", (e) => {
q && e.preventDefault(), E && E(e);
});
const te = Y("start", M);
const oe = Y("stop", R);
const ie = Y("stop", I);
const se = Y("stop", (e) => {
V(e), !1 === B.current && W(!1), g && g(e);
}, !1);
const ae = pa((e) => {
j.current || (j.current = e.currentTarget), z(e), !0 === B.current && (W(!0), S && S(e)), x && x(e);
});
const le = () => {
const e = j.current;
return u && "button" !== u && !("A" === e.tagName && e.href);
};
const ce = react.useRef(!1);
const ue = pa((e) => {
h && !ce.current && q && F.current && " " === e.key && (ce.current = !0, F.current.stop(e, () => {
F.current.start(e);
})), e.target === e.currentTarget && le() && " " === e.key && e.preventDefault(), k && k(e), e.target === e.currentTarget && le() && "Enter" === e.key && !p && (e.preventDefault(), v && v(e));
});
const pe = pa((e) => {
h && " " === e.key && F.current && q && !e.defaultPrevented && (ce.current = !1, F.current.stop(e, () => {
F.current.pulsate(e);
})), C && C(e), v && e.target === e.currentTarget && le() && " " === e.key && !e.defaultPrevented && v(e);
});
let de = u;
"button" === de && (D.href || D.to) && (de = m);
const fe = {};
"button" === de ? (fe.type = void 0 === L ? "button" : L, fe.disabled = p) : (D.href || D.to || (fe.role = "button"), p && (fe["aria-disabled"] = p));
const he = ca(o, U, j);
react.useEffect(() => {
K && !F.current && console.error(["MUI: The `component` prop provided to ButtonBase is invalid.", "Please make sure the children prop is rendered in this custom component."].join("\n"));
}, [K]);
const me = _({}, i, {
centerRipple: a,
component: u,
disabled: p,
disableRipple: d,
disableTouchRipple: f,
focusRipple: h,
tabIndex: A,
focusVisible: q
});
const ge = ((e) => {
const { disabled: t, focusVisible: r, focusVisibleClassName: n, classes: o } = e, i = ne({ root: [
"root",
t && "disabled",
r && "focusVisible"
] }, nl, o);
return r && n && (i.root += ` ${n}`), i;
})(me);
return (0, import_jsx_runtime.jsxs)(sl, _({
as: de,
className: re(ge.root, c),
ownerState: me,
onBlur: se,
onClick: v,
onContextMenu: X,
onFocus: ae,
onKeyDown: ue,
onKeyUp: pe,
onMouseDown: Z,
onMouseLeave: ee,
onMouseUp: Q,
onDragLeave: J,
onTouchEnd: oe,
onTouchMove: ie,
onTouchStart: te,
ref: he,
tabIndex: p ? -1 : A,
type: L
}, fe, D, { children: [l, K ? (0, import_jsx_runtime.jsx)(rl, _({
ref: $,
center: a
}, P)) : null] }));
});
al.propTypes = {
action: sa,
centerRipple: ee.bool,
children: ee.node,
classes: ee.object,
className: ee.string,
component: aa,
disabled: ee.bool,
disableRipple: ee.bool,
disableTouchRipple: ee.bool,
focusRipple: ee.bool,
focusVisibleClassName: ee.string,
href: ee.any,
LinkComponent: ee.elementType,
onBlur: ee.func,
onClick: ee.func,
onContextMenu: ee.func,
onDragLeave: ee.func,
onFocus: ee.func,
onFocusVisible: ee.func,
onKeyDown: ee.func,
onKeyUp: ee.func,
onMouseDown: ee.func,
onMouseLeave: ee.func,
onMouseUp: ee.func,
onTouchEnd: ee.func,
onTouchMove: ee.func,
onTouchStart: ee.func,
sx: ee.oneOfType([
ee.arrayOf(ee.oneOfType([
ee.func,
ee.object,
ee.bool
])),
ee.func,
ee.object
]),
tabIndex: ee.number,
TouchRippleProps: ee.object,
touchRippleRef: ee.oneOfType([ee.func, ee.shape({ current: ee.shape({
pulsate: ee.func.isRequired,
start: ee.func.isRequired,
stop: ee.func.isRequired
}) })]),
type: ee.oneOfType([ee.oneOf([
"button",
"reset",
"submit"
]), ee.string])
};
var ll = al;
function cl(e) {
return Qn("MuiIconButton", e);
}
var ul = ks("MuiIconButton", [
"root",
"disabled",
"colorInherit",
"colorPrimary",
"colorSecondary",
"colorError",
"colorInfo",
"colorSuccess",
"colorWarning",
"edgeStart",
"edgeEnd",
"sizeSmall",
"sizeMedium",
"sizeLarge"
]);
var pl = [
"edge",
"children",
"className",
"color",
"disabled",
"disableFocusRipple",
"size"
];
var dl = pi(ll, {
name: "MuiIconButton",
slot: "Root",
overridesResolver: (e, t) => {
const { ownerState: r } = e;
return [
t.root,
"default" !== r.color && t[`color${bi(r.color)}`],
r.edge && t[`edge${bi(r.edge)}`],
t[`size${bi(r.size)}`]
];
}
})(({ theme: e, ownerState: t }) => _({
textAlign: "center",
flex: "0 0 auto",
fontSize: e.typography.pxToRem(24),
padding: 8,
borderRadius: "50%",
overflow: "visible",
color: (e.vars || e).palette.action.active,
transition: e.transitions.create("background-color", { duration: e.transitions.duration.shortest })
}, !t.disableRipple && { "&:hover": {
backgroundColor: e.vars ? `rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})` : so.alpha(e.palette.action.active, e.palette.action.hoverOpacity),
"@media (hover: none)": { backgroundColor: "transparent" }
} }, "start" === t.edge && { marginLeft: "small" === t.size ? -3 : -12 }, "end" === t.edge && { marginRight: "small" === t.size ? -3 : -12 }), ({ theme: e, ownerState: t }) => {
var r;
const n = null == (r = (e.vars || e).palette) ? void 0 : r[t.color];
return _({}, "inherit" === t.color && { color: "inherit" }, "inherit" !== t.color && "default" !== t.color && _({ color: null == n ? void 0 : n.main }, !t.disableRipple && { "&:hover": _({}, n && { backgroundColor: e.vars ? `rgba(${n.mainChannel} / ${e.vars.palette.action.hoverOpacity})` : so.alpha(n.main, e.palette.action.hoverOpacity) }, { "@media (hover: none)": { backgroundColor: "transparent" } }) }), "small" === t.size && {
padding: 5,
fontSize: e.typography.pxToRem(18)
}, "large" === t.size && {
padding: 12,
fontSize: e.typography.pxToRem(28)
}, { [`&.${ul.disabled}`]: {
backgroundColor: "transparent",
color: (e.vars || e).palette.action.disabled
} });
});
var fl = react.forwardRef(function(t, r) {
const n = yi({
props: t,
name: "MuiIconButton"
}), { edge: o = !1, children: i, className: s, color: a = "default", disabled: l = !1, disableFocusRipple: c = !1, size: u = "medium" } = n, p = w(n, pl), d = _({}, n, {
edge: o,
color: a,
disabled: l,
disableFocusRipple: c,
size: u
}), f = ((e) => {
const { classes: t, disabled: r, color: n, edge: o, size: i } = e;
return ne({ root: [
"root",
r && "disabled",
"default" !== n && `color${bi(n)}`,
o && `edge${bi(o)}`,
`size${bi(i)}`
] }, cl, t);
})(d);
return (0, import_jsx_runtime.jsx)(dl, _({
className: re(f.root, s),
centerRipple: !0,
focusRipple: !c,
disabled: l,
ref: r
}, p, {
ownerState: d,
children: i
}));
});
fl.propTypes = {
children: Ci(ee.node, (e) => react.Children.toArray(e.children).some((e) => react.isValidElement(e) && e.props.onClick) ? new Error([
"MUI: You are providing an onClick event listener to a child of a button element.",
"Prefer applying it to the IconButton directly.",
"This guarantees that the whole <button> will be responsive to click events."
].join("\n")) : null),
classes: ee.object,
className: ee.string,
color: ee.oneOfType([ee.oneOf([
"inherit",
"default",
"primary",
"secondary",
"error",
"info",
"success",
"warning"
]), ee.string]),
disabled: ee.bool,
disableFocusRipple: ee.bool,
disableRipple: ee.bool,
edge: ee.oneOf([
"end",
"start",
!1
]),
size: ee.oneOfType([ee.oneOf([
"small",
"medium",
"large"
]), ee.string]),
sx: ee.oneOfType([
ee.arrayOf(ee.oneOfType([
ee.func,
ee.object,
ee.bool
])),
ee.func,
ee.object
])
};
var hl = fl;
var ml = "&:hover,&:focus,&:active,&:visited";
var gl = "__unstableAccessibleMain";
var vl = "__unstableAccessibleLight";
var yl = "__unstableStates";
var bl = "0.75rem";
var wl = "1.25em";
var _l = "1.25em";
var xl = "1.25em";
var Sl = "eui-rtl";
var kl = [
0,
.75,
1,
1.5,
2.5
];
var Cl = (e, t) => {
const r = {};
const n = {};
return t.forEach((t) => {
n[t] = `Mui${e}-${t}`, r[t] = {
slot: t,
name: `Mui${e}`
};
}), {
slots: r,
classNames: n
};
};
var Ol = (e, ...t) => {
const r = _objectSpread2({}, e);
return r.shape = _objectSpread2({
borderRadius: 8,
__unstableBorderRadiusMultipliers: kl
}, r.shape), si(r, ...t);
};
var El = (e) => function(e) {
return "ownerState" !== e && "theme" !== e && "sx" !== e && "as" !== e;
}(e) && "classes" !== e;
var Rl = Wn({
themeId: li,
defaultTheme: Ol({}),
rootShouldForwardProp: El
});
var Il = (e, t) => {
if (!(t === null || t === void 0 ? void 0 : t.shouldForwardProp)) return Rl(e, t);
const r = t.shouldForwardProp;
const n = _objectSpread2({}, t);
return n.shouldForwardProp = (e) => El(e) && r(e), Rl(e, n);
};
var Ml = "#FFFFFF";
var Al = "#f1f3f3";
var Pl = "#d5d8dc";
var Nl = "#babfc5";
var Ll = "#9da5ae";
var Dl = "#818a96";
var jl = "#69727d";
var Fl = "#515962";
var $l = "#3f444b";
var Bl = "#1f2124";
var zl = "#0c0d0e";
var Vl = "#f3bafd";
var Ul = "#f0abfc";
var ql = "#eb8efb";
var Wl = "#ef4444";
var Hl = "#dc2626";
var Gl = "#b91c1c";
var Kl = "#f59e0b";
var Yl = "#bb5b1d";
var Zl = "#b15211";
var Xl = "#3b82f6";
var Jl = "#2563eb";
var Ql = "#1d4ed8";
var ec = "#10b981";
var tc = "#0a875a";
var rc = "#047857";
var nc = "#99f6e4";
var oc = "#5eead4";
var ic = "#2adfcd";
var sc = "#b51243";
var ac = "#93003f";
var lc = "#7e013b";
var cc = {
styleOverrides: { listbox: ({ theme: e }) => ({
"&.MuiAutocomplete-listboxSizeTiny": { fontSize: "0.875rem" },
"&.MuiAutocomplete-listbox .MuiAutocomplete-option[aria-selected=\"true\"]": { "&,&.Mui-Mui-focused": { backgroundColor: e.palette.action.selected } }
}) },
variants: [{
props: { size: "tiny" },
style: () => ({
"& .MuiOutlinedInput-root": {
padding: "2.5px 0",
"& .MuiAutocomplete-input": {
lineHeight: _l,
height: _l,
padding: "4px 2px 4px 8px"
}
},
"& .MuiFilledInput-root": {
padding: 0,
"& .MuiAutocomplete-input": { padding: "15px 8px 6px" }
},
"& .MuiInput-root": {
paddingBottom: 0,
"& .MuiAutocomplete-input": { padding: "2px 0" }
},
"& .MuiAutocomplete-popupIndicator": { fontSize: "1.5em" },
"& .MuiAutocomplete-clearIndicator": { fontSize: "1.2em" },
"& .MuiAutocomplete-popupIndicator .MuiSvgIcon-root, & .MuiAutocomplete-clearIndicator .MuiSvgIcon-root": { fontSize: "1em" },
"& .MuiInputAdornment-root .MuiIconButton-root": { padding: "2px" },
"& .MuiAutocomplete-tagSizeTiny": { fontSize: bl },
"&.MuiAutocomplete-hasPopupIcon.MuiAutocomplete-hasClearIcon .MuiOutlinedInput-root .MuiAutocomplete-input": { paddingRight: "48px" }
})
}, {
props: {
size: "tiny",
multiple: !0
},
style: () => ({ "& .MuiAutocomplete-tag": { margin: "1.5px 3px" } })
}]
};
var uc = [
"primary",
"secondary",
"error",
"warning",
"info",
"success",
"accent",
"global",
"promotion",
"decorative",
"neutral"
];
var pc = ["primary", "global"];
var dc = uc.filter((e) => !pc.includes(e));
var fc = {
styleOverrides: { root: () => ({
boxShadow: "none",
"&:hover": { boxShadow: "none" }
}) },
variants: uc.map((e) => ({
props: {
variant: "contained",
color: e
},
style: ({ theme: t }) => ({
"& .MuiButtonGroup-grouped:not(:last-of-type), & .MuiButtonGroup-grouped:not(:last-of-type).Mui-disabled": { borderRight: 0 },
"& .MuiButtonGroup-grouped:not(:last-child), & > *:not(:last-child) .MuiButtonGroup-grouped": { borderRight: `1px solid ${t.palette[e].dark}` },
"& .MuiButtonGroup-grouped:not(:last-child).Mui-disabled, & > *:not(:last-child) .MuiButtonGroup-grouped.Mui-disabled": { borderRight: `1px solid ${t.palette.action.disabled}` }
})
}))
};
var hc = { variants: [
{
props: {
color: "primary",
variant: "outlined"
},
style: ({ theme: e }) => ({
color: e.palette.primary.__unstableAccessibleMain,
borderColor: e.palette.primary.__unstableAccessibleMain,
"& .MuiChip-deleteIcon": {
color: e.palette.primary.__unstableAccessibleLight,
"&:hover": { color: e.palette.primary.__unstableAccessibleMain }
}
})
},
{
props: {
color: "global",
variant: "outlined"
},
style: ({ theme: e }) => ({
color: e.palette.global.__unstableAccessibleMain,
borderColor: e.palette.global.__unstableAccessibleMain,
"& .MuiChip-deleteIcon": {
color: e.palette.global.__unstableAccessibleLight,
"&:hover": { color: e.palette.global.__unstableAccessibleMain }
}
})
},
{
props: {
color: "default",
variant: "filled"
},
style: ({ theme: e }) => ({
backgroundColor: "light" === e.palette.mode ? "#EBEBEB" : "#434547",
"&.Mui-focusVisible, &.MuiChip-clickable:hover": { backgroundColor: e.palette.action.focus },
"& .MuiChip-icon": { color: "inherit" }
})
},
...mc(["default"], function(e) {
return {
backgroundColor: {
light: "#EBEBEB",
dark: "#434547"
},
backgroundColorHover: {
light: e.palette.action.focus,
dark: e.palette.action.focus
},
color: {
light: e.palette.text.primary,
dark: e.palette.text.primary
},
deleteIconOpacity: .26,
deleteIconOpacityHover: .7
};
}),
...mc(["primary", "global"], function(e, t) {
const r = e.palette[t];
return {
backgroundColor: {
light: es(r.light, .8),
dark: Qi(r.__unstableAccessibleMain, .8)
},
backgroundColorHover: {
light: es(r.light, .6),
dark: Qi(r.__unstableAccessibleMain, .9)
},
color: {
light: Qi(r.__unstableAccessibleMain, .3),
dark: es(r.light, .3)
},
deleteIconOpacity: .7,
deleteIconOpacityHover: 1
};
}),
...mc(dc, function(e, t) {
return {
backgroundColor: {
light: es(e.palette[t].light, .9),
dark: Qi(e.palette[t].light, .8)
},
backgroundColorHover: {
light: es(e.palette[t].light, .8),
dark: Qi(e.palette[t].light, .9)
},
color: {
light: Qi(e.palette[t].main, .3),
dark: es(e.palette[t].main, .5)
},
deleteIconOpacity: .7,
deleteIconOpacityHover: 1
};
}),
{
props: { size: "tiny" },
style: () => ({
fontSize: bl,
height: "20px",
paddingInline: "5px",
"& .MuiChip-avatar": {
width: "1rem",
height: "1rem",
fontSize: "9px",
marginLeft: 0,
marginRight: "1px"
},
"& .MuiChip-icon": {
fontSize: "1rem",
marginLeft: 0,
marginRight: 0
},
"& .MuiChip-label": {
paddingRight: "3px",
paddingLeft: "3px"
},
"& .MuiChip-deleteIcon": {
fontSize: "0.875rem",
marginLeft: 0,
marginRight: 0
}
})
},
{
props: { size: "small" },
style: () => ({
height: "24px",
paddingInline: "5px",
"& .MuiChip-avatar": {
width: "1.125rem",
height: "1.125rem",
fontSize: "9px",
marginLeft: 0,
marginRight: "2px"
},
"& .MuiChip-icon": {
fontSize: "1.125rem",
marginLeft: 0,
marginRight: 0
},
"& .MuiChip-label": {
paddingRight: "3px",
paddingLeft: "3px"
},
"& .MuiChip-deleteIcon": {
fontSize: "1rem",
marginLeft: 0,
marginRight: 0
}
})
},
{
props: { size: "medium" },
style: () => ({
height: "32px",
paddingInline: "6px",
"& .MuiChip-avatar": {
width: "1.25rem",
height: "1.25rem",
fontSize: "0.75rem",
marginLeft: 0,
marginRight: "2px"
},
"& .MuiChip-icon": {
fontSize: "1.25rem",
marginLeft: 0,
marginRight: 0
},
"& .MuiChip-label": {
paddingRight: "4px",
paddingLeft: "4px"
},
"& .MuiChip-deleteIcon": {
fontSize: "1.125rem",
marginLeft: 0,
marginRight: 0
}
})
}
] };
function mc(e, t) {
return e.map((e) => ({
props: {
color: e,
variant: "standard"
},
style: ({ theme: r }) => {
const n = t(r, e), { mode: o } = r.palette;
return {
backgroundColor: n.backgroundColor[o],
color: n.color[o],
"&.Mui-focusVisible, &.MuiChip-clickable:hover": { backgroundColor: n.backgroundColorHover[o] },
"& .MuiChip-icon": { color: "inherit" },
"& .MuiChip-deleteIcon": {
color: n.color[o],
opacity: n.deleteIconOpacity,
"&:hover,&:focus": {
color: n.color[o],
opacity: n.deleteIconOpacityHover
}
}
};
}
}));
}
var gc = "1rem";
var vc = "0.75rem";
var yc = {
MuiAccordion: {
styleOverrides: { root: ({ theme: e }) => ({
backgroundColor: e.palette.background.default,
"&:before": { content: "none" },
"&.Mui-expanded": { margin: 0 },
"&.MuiAccordion-gutters + .MuiAccordion-root.MuiAccordion-gutters": {
marginTop: e.spacing(1),
marginBottom: e.spacing(0)
},
"&:not(.MuiAccordion-gutters) + .MuiAccordion-root:not(.MuiAccordion-gutters)": { borderTop: 0 },
"&.Mui-disabled": { backgroundColor: e.palette.background.default }
}) },
variants: [{
props: { square: !1 },
style: ({ theme: e }) => {
const t = e.shape.borderRadius * e.shape.__unstableBorderRadiusMultipliers[3];
return {
"&:first-of-type": {
borderTopLeftRadius: t,
borderTopRightRadius: t
},
"&:last-of-type": {
borderBottomLeftRadius: t,
borderBottomRightRadius: t
}
};
}
}]
},
MuiAccordionActions: { styleOverrides: { root: ({ theme: e }) => ({ padding: e.spacing(2) }) } },
MuiAccordionSummary: { styleOverrides: {
root: () => ({ minHeight: "64px" }),
content: ({ theme: e }) => ({
margin: e.spacing(1, 0),
"&.MuiAccordionSummary-content.Mui-expanded": { margin: e.spacing(1, 0) }
})
} },
MuiAccordionSummaryIcon: { styleOverrides: { root: ({ theme: e }) => ({ padding: e.spacing(1, 0) }) } },
MuiAccordionSummaryText: { styleOverrides: { root: ({ theme: e }) => ({
marginTop: 0,
marginBottom: 0,
padding: e.spacing(1, 0)
}) } },
MuiAutocomplete: cc,
MuiAvatar: { variants: [{
props: { variant: "rounded" },
style: ({ theme: e }) => ({ borderRadius: e.shape.borderRadius * e.shape.__unstableBorderRadiusMultipliers[1] })
}] },
MuiButton: {
styleOverrides: { root: ({ theme: e }) => ({
borderRadius: e.shape.borderRadius * e.shape.__unstableBorderRadiusMultipliers[2],
boxShadow: "none",
whiteSpace: "nowrap",
"&:hover": { boxShadow: "none" },
"& .MuiSvgIcon-root": { fill: "currentColor" }
}) },
variants: [
{
props: {
color: "primary",
variant: "outlined"
},
style: ({ theme: e }) => ({
color: e.palette.primary.__unstableAccessibleMain,
borderColor: e.palette.primary.__unstableAccessibleMain,
"&:hover": { borderColor: e.palette.primary.__unstableAccessibleMain }
})
},
{
props: {
color: "primary",
variant: "text"
},
style: ({ theme: e }) => ({ color: e.palette.primary.__unstableAccessibleMain })
},
{
props: {
color: "global",
variant: "outlined"
},
style: ({ theme: e }) => ({
color: e.palette.global.__unstableAccessibleMain,
borderColor: e.palette.global.__unstableAccessibleMain,
"&:hover": { borderColor: e.palette.global.__unstableAccessibleMain }
})
},
{
props: {
color: "global",
variant: "text"
},
style: ({ theme: e }) => ({ color: e.palette.global.__unstableAccessibleMain })
}
]
},
MuiButtonBase: {
defaultProps: { disableRipple: !0 },
styleOverrides: { root: () => ({
"&.MuiButtonBase-root.Mui-focusVisible": { boxShadow: "0 0 0 1px inset" },
".MuiCircularProgress-root": { fontSize: "inherit" }
}) }
},
MuiButtonGroup: fc,
MuiCard: {
defaultProps: {},
styleOverrides: { root: () => ({ position: "relative" }) }
},
MuiCardActions: { styleOverrides: { root: ({ theme: e }) => ({
justifyContent: "flex-end",
padding: e.spacing(1.5, 2)
}) } },
MuiCardGroup: { styleOverrides: { root: () => ({
"& .MuiCard-root.MuiPaper-outlined:not(:last-child)": { borderBottom: 0 },
"& .MuiCard-root.MuiPaper-rounded": {
"&:first-child:not(:last-child)": {
borderBottomRightRadius: 0,
borderBottomLeftRadius: 0
},
"&:not(:first-child):not(:last-child)": { borderRadius: 0 },
"&:last-child:not(:first-child)": {
borderTopRightRadius: 0,
borderTopLeftRadius: 0
}
}
}) } },
MuiCardHeader: { styleOverrides: { action: () => ({ alignSelf: "center" }) } },
MuiChip: hc,
MuiCircularProgress: { styleOverrides: { root: ({ theme: e }) => ({ fontSize: e.spacing(5) }) } },
MuiDialog: { styleOverrides: { paper: ({ theme: e }) => ({ borderRadius: e.shape.borderRadius * e.shape.__unstableBorderRadiusMultipliers[4] }) } },
MuiDialogActions: { styleOverrides: { root: ({ theme: e }) => ({ padding: e.spacing(2, 3) }) } },
MuiDialogContent: { styleOverrides: { dividers: () => ({ "&:last-child": { borderBottom: "none" } }) } },
MuiFilledInput: {
styleOverrides: { root: ({ theme: e }) => ({
borderTopLeftRadius: e.shape.borderRadius * e.shape.__unstableBorderRadiusMultipliers[2],
borderTopRightRadius: e.shape.borderRadius * e.shape.__unstableBorderRadiusMultipliers[2]
}) },
variants: [{
props: { size: "tiny" },
style: ({ theme: e }) => ({
fontSize: bl,
lineHeight: xl,
"& .MuiInputBase-input": {
fontSize: bl,
lineHeight: xl,
height: xl,
padding: "15px 8px 6px"
},
"&.MuiInputBase-adornedStart": { paddingLeft: e.spacing(1) },
"&.MuiInputBase-adornedEnd": { paddingRight: e.spacing(1) },
"& .MuiInputAdornment-root.MuiInputAdornment-positionStart:not(.MuiInputAdornment-hiddenLabel)": { marginTop: e.spacing(1) },
"& .MuiInputAdornment-root:not(.MuiInputAdornment-positionEnd)": { marginRight: 0 },
"& .MuiInputAdornment-root.MuiInputAdornment-positionEnd": { marginLeft: 0 }
})
}, {
props: {
size: "tiny",
multiline: !0
},
style: () => ({ padding: 0 })
}]
},
MuiFormHelperText: { styleOverrides: { root: ({ theme: e }) => ({
color: e.palette.text.tertiary,
margin: e.spacing(.5, 0, 0)
}) } },
MuiFormLabel: { variants: [{
props: { size: "tiny" },
style: () => ({
fontSize: "0.75rem",
lineHeight: "1.6",
fontWeight: "400",
letterSpacing: "0.19px"
})
}, {
props: { size: "small" },
style: ({ theme: e }) => _objectSpread2({}, e.typography.body2)
}] },
MuiIconButton: { variants: [
{
props: { color: "primary" },
style: ({ theme: e }) => ({ color: e.palette.primary.__unstableAccessibleMain })
},
{
props: { color: "global" },
style: ({ theme: e }) => ({ color: e.palette.global.__unstableAccessibleMain })
},
{
props: {
edge: "start",
size: "small"
},
style: ({ theme: e }) => ({ marginLeft: e.spacing(-1.5) })
},
{
props: {
edge: "end",
size: "small"
},
style: ({ theme: e }) => ({ marginRight: e.spacing(-1.5) })
},
{
props: {
edge: "start",
size: "large"
},
style: ({ theme: e }) => ({ marginLeft: e.spacing(-2) })
},
{
props: {
edge: "end",
size: "large"
},
style: ({ theme: e }) => ({ marginRight: e.spacing(-2) })
},
{
props: { size: "tiny" },
style: ({ theme: e }) => ({ padding: e.spacing(.75) })
},
{
props: {
size: "tiny",
edge: "start"
},
style: ({ theme: e }) => ({ marginLeft: e.spacing(-1) })
},
{
props: {
size: "tiny",
edge: "end"
},
style: ({ theme: e }) => ({ marginRight: e.spacing(-1) })
},
{
props: { size: "xsmall" },
style: ({ theme: e }) => ({ padding: e.spacing(.75) })
},
{
props: {
size: "xsmall",
edge: "start"
},
style: ({ theme: e }) => ({ marginLeft: e.spacing(-1) })
},
{
props: {
size: "xsmall",
edge: "end"
},
style: ({ theme: e }) => ({ marginRight: e.spacing(-1) })
},
{
props: { size: "unstableTiny" },
style: ({ theme: e }) => ({ padding: e.spacing(.5) })
},
{
props: {
size: "unstableTiny",
edge: "start"
},
style: ({ theme: e }) => ({ marginLeft: e.spacing(-.5) })
},
{
props: {
size: "unstableTiny",
edge: "end"
},
style: ({ theme: e }) => ({ marginRight: e.spacing(-.5) })
}
] },
MuiInput: { variants: [{
props: { size: "tiny" },
style: ({ theme: e }) => ({
fontSize: bl,
lineHeight: wl,
"&.MuiInput-root": { marginTop: e.spacing(1.5) },
"& .MuiInputBase-input": {
fontSize: bl,
lineHeight: wl,
height: wl,
padding: "6.5px 0"
}
})
}] },
MuiInputAdornment: { styleOverrides: { root: ({ theme: e }) => ({ "&.MuiInputAdornment-sizeTiny": {
"&.MuiInputAdornment-positionStart": { marginRight: e.spacing(.5) },
"&.MuiInputAdornment-positionEnd": { marginLeft: e.spacing(.5) }
} }) } },
MuiInputBase: { styleOverrides: { input: () => ({ ".MuiInputBase-root.Mui-disabled &": { backgroundColor: "initial" } }) } },
MuiInputLabel: { variants: [{
props: {
size: "tiny",
shrink: !1
},
style: () => ({
"&.MuiInputLabel-outlined": { transform: "translate(7.5px, 5.5px) scale(1)" },
"&.MuiInputLabel-standard": { transform: "translate(0px, 18px) scale(1)" },
"&.MuiInputLabel-filled": { transform: "translate(8px, 11px) scale(1)" }
})
}, {
props: {
size: "tiny",
shrink: !0
},
style: () => ({ "&.MuiInputLabel-filled": { transform: "translate(8px, 2px) scale(0.75)" } })
}] },
MuiListItem: { styleOverrides: { root: ({ theme: e }) => ({
color: e.palette.text.primary,
"a&": { [ml]: { color: e.palette.text.primary } }
}) } },
MuiListItemButton: { styleOverrides: { root: ({ theme: e }) => ({
color: e.palette.text.primary,
"&.Mui-selected": {
backgroundColor: e.palette.action.selected,
"&:hover": { backgroundColor: e.palette.action.selected },
"&:focus": { backgroundColor: e.palette.action.focus }
},
"a&": { [ml]: { color: e.palette.text.primary } }
}) } },
MuiListItemIcon: { styleOverrides: { root: ({ theme: e }) => ({
minWidth: "initial",
"&:not(:last-child)": { marginRight: e.spacing(1) }
}) } },
MuiListItemText: { styleOverrides: { root: ({ theme: e }) => ({ color: e.palette.text.primary }) } },
MuiListSubheader: { styleOverrides: { root: ({ theme: e }) => ({
backgroundImage: "linear-gradient(rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.12))",
lineHeight: "36px",
color: e.palette.text.secondary
}) } },
MuiMenuItem: { styleOverrides: { root: ({ theme: e }) => ({
"&.Mui-selected": {
backgroundColor: e.palette.action.selected,
"&:hover": { backgroundColor: e.palette.action.selected },
"&:focus": { backgroundColor: e.palette.action.focus }
},
"a&": { [ml]: { color: e.palette.text.primary } },
"& .MuiListItemIcon-root": { minWidth: "initial" }
}) } },
MuiOutlinedInput: {
styleOverrides: { root: ({ theme: e }) => ({
borderRadius: e.shape.borderRadius * e.shape.__unstableBorderRadiusMultipliers[2],
"&.Mui-focused .MuiInputAdornment-root .MuiOutlinedInput-notchedOutline": {
borderColor: "dark" === e.palette.mode ? "rgba(255, 255, 255, 0.23)" : "rgba(0, 0, 0, 0.23)",
borderWidth: "1px"
}
}) },
variants: [
{
props: { size: "tiny" },
style: ({ theme: e }) => ({
fontSize: bl,
lineHeight: _l,
"&.MuiInputBase-adornedStart": { paddingLeft: e.spacing(1) },
"&.MuiInputBase-adornedEnd": { paddingRight: e.spacing(1) },
"& .MuiInputBase-input": {
fontSize: bl,
lineHeight: _l,
height: _l,
padding: "6.5px 8px"
},
"& .MuiInputAdornment-root + .MuiInputBase-input": { paddingLeft: 0 },
"&:has(.MuiInputBase-input + .MuiInputAdornment-root) .MuiInputBase-input": { paddingRight: 0 }
})
},
{
props: {
size: "tiny",
multiline: !0
},
style: () => ({ padding: 0 })
},
{
props: (e) => !!e.endAdornment && "tiny" === e.size,
style: () => ({ "& .MuiInputAdornment-root .MuiInputBase-root .MuiSelect-select": {
"&.MuiSelect-standard": {
paddingTop: 0,
paddingBottom: 0
},
"&.MuiSelect-outlined,&.MuiSelect-filled": {
paddingTop: "4px",
paddingBottom: "4px"
}
} })
},
{
props: (e) => !!e.endAdornment && "small" === e.size,
style: () => ({ "& .MuiInputAdornment-root .MuiInputBase-root .MuiSelect-select": {
paddingTop: "2.5px",
paddingBottom: "2.5px"
} })
},
{
props: (e) => !(!e.endAdornment || "medium" !== e.size && e.size),
style: () => ({ "& .MuiInputAdornment-root .MuiInputBase-root .MuiSelect-select": {
paddingTop: "8.5px",
paddingBottom: "8.5px"
} })
}
]
},
MuiPagination: { variants: [{
props: { shape: "rounded" },
style: ({ theme: e }) => ({ borderRadius: e.shape.borderRadius * e.shape.__unstableBorderRadiusMultipliers[1] })
}] },
MuiPaper: { variants: [{
props: { square: !1 },
style: ({ theme: e }) => ({ borderRadius: e.shape.borderRadius * e.shape.__unstableBorderRadiusMultipliers[3] })
}] },
MuiSelect: {
styleOverrides: { nativeInput: () => ({ ".MuiInputBase-root.Mui-disabled &": {
backgroundColor: "initial",
opacity: 0
} }) },
variants: [{
props: { size: "tiny" },
style: () => ({
"& .MuiSelect-icon": {
fontSize: gc,
right: "9px"
},
"& .MuiSelect-select.MuiSelect-outlined, & .MuiSelect-select.MuiSelect-filled": { minHeight: _l },
"& .MuiSelect-select.MuiSelect-standard": {
lineHeight: wl,
minHeight: wl
}
})
}]
},
MuiSkeleton: { variants: [{
props: { variant: "rounded" },
style: ({ theme: e }) => ({ borderRadius: e.shape.borderRadius * e.shape.__unstableBorderRadiusMultipliers[1] })
}] },
MuiSnackbarContent: {
defaultProps: {},
styleOverrides: { root: ({ theme: e }) => ({ borderRadius: e.shape.borderRadius * e.shape.__unstableBorderRadiusMultipliers[2] }) }
},
MuiStepConnector: { styleOverrides: { root: ({ theme: e }) => ({ "& .MuiStepConnector-line": { borderColor: e.palette.divider } }) } },
MuiStepIcon: { styleOverrides: { root: ({ theme: e }) => ({ "&:not(.Mui-active) .MuiStepIcon-text": { fill: e.palette.common.white } }) } },
MuiStepLabel: { styleOverrides: { root: () => ({ alignItems: "flex-start" }) } },
MuiStepper: { styleOverrides: { root: () => ({ "& .MuiStepLabel-root": { alignItems: "center" } }) } },
MuiSvgIcon: { variants: [{
props: { fontSize: "tiny" },
style: () => ({ fontSize: "1rem" })
}] },
MuiTab: {
styleOverrides: { root: {
"&:not(.Mui-selected)": { fontWeight: 400 },
"&.Mui-selected": { fontWeight: 700 }
} },
variants: [{
props: { size: "small" },
style: ({ theme: e }) => ({
fontSize: vc,
lineHeight: 1.6,
padding: e.spacing(.75, 1),
minWidth: 72,
"&:not(.MuiTab-labelIcon)": { minHeight: 32 },
"&.MuiTab-labelIcon": { minHeight: 32 }
})
}]
},
MuiTableRow: {
styleOverrides: { root: ({ theme: e }) => ({ "&.Mui-selected": {
backgroundColor: e.palette.action.selected,
"&:hover": { backgroundColor: e.palette.action.selected }
} }) },
variants: [{
props: (e) => "onClick" in e,
style: () => ({ cursor: "pointer" })
}]
},
MuiTabPanel: { styleOverrides: { root: ({ theme: e }) => ({ color: e.palette.text.primary }) } },
MuiTabs: {
styleOverrides: { indicator: { height: "3px" } },
variants: [{
props: { size: "small" },
style: ({ theme: e }) => ({
minHeight: 32,
"& .MuiTab-root": {
fontSize: vc,
lineHeight: 1.6,
padding: e.spacing(.75, 1),
minWidth: 72,
"&:not(.MuiTab-labelIcon)": { minHeight: 32 },
"&.MuiTab-labelIcon": { minHeight: 32 }
}
})
}]
},
MuiTextField: {
styleOverrides: { root: ({ theme: e }) => ({
borderRadius: e.shape.borderRadius * e.shape.__unstableBorderRadiusMultipliers[2],
"& legend": { transition: "unset" }
}) },
variants: [{
props: {
size: "tiny",
select: !0
},
style: () => ({
"& .MuiSelect-icon": {
fontSize: gc,
right: "9px"
},
"& .MuiInputBase-root .MuiSelect-select": { minHeight: "auto" }
})
}]
},
MuiToggleButton: {
styleOverrides: { root: ({ theme: e }) => ({ borderRadius: e.shape.borderRadius * e.shape.__unstableBorderRadiusMultipliers[2] }) },
variants: [
{
props: { color: "primary" },
style: ({ theme: e }) => ({ "&.MuiToggleButton-root.Mui-selected": { color: e.palette.primary.__unstableAccessibleMain } })
},
{
props: { color: "global" },
style: ({ theme: e }) => ({ "&.MuiToggleButton-root.Mui-selected": { color: e.palette.global.__unstableAccessibleMain } })
},
{
props: { size: "tiny" },
style: ({ theme: e }) => ({
fontSize: bl,
lineHeight: 1.3334,
padding: e.spacing(.625)
})
}
]
},
MuiTooltip: { styleOverrides: {
arrow: ({ theme: e }) => ({ color: e.palette.grey[700] }),
tooltip: ({ theme: e }) => ({
backgroundColor: e.palette.grey[700],
borderRadius: e.shape.borderRadius * e.shape.__unstableBorderRadiusMultipliers[1]
})
} }
};
var bc = {
components: yc,
shape: {
borderRadius: 8,
__unstableBorderRadiusMultipliers: kl
},
typography: {
fontFamily: "\"DM Sans\", \"Roboto\", \"Helvetica\", \"Arial\", sans-serif",
display1: { fontSize: "0rem" },
display2: { fontSize: "0rem" },
display3: { fontSize: "0rem" },
display4: { fontSize: "0rem" },
display5: { fontSize: "0rem" },
display6: { fontSize: "0rem" },
button: { textTransform: "none" },
h1: {
fontSize: "6rem",
fontWeight: 700,
lineHeight: 1.167,
letterSpacing: "-0.015625em"
},
h2: {
fontSize: "3.75rem",
fontWeight: 700,
lineHeight: 1.2,
letterSpacing: "-0.01333333em"
},
h3: {
fontSize: "2.75rem",
fontWeight: 700,
lineHeight: 1.182,
letterSpacing: "-0.00681818em"
},
h4: {
fontSize: "2rem",
fontWeight: 700,
lineHeight: 1.25,
letterSpacing: "-0.015625em"
},
h5: {
fontSize: "1.5rem",
fontWeight: 700,
lineHeight: 1.333,
letterSpacing: "-0.025em"
},
h6: {
fontSize: "1.25rem",
fontWeight: 500,
lineHeight: 1.6,
letterSpacing: "-0.015em"
},
subtitle1: {
fontSize: "1rem",
fontWeight: 500,
lineHeight: 1.3125,
letterSpacing: "-0.0125em"
},
subtitle2: {
fontSize: "0.875rem",
fontWeight: 500,
lineHeight: 1.286,
letterSpacing: "-0.025em"
},
body1: {
fontSize: "1rem",
fontWeight: 400,
lineHeight: 1.5,
letterSpacing: "-0.0125em"
},
body2: {
fontSize: "0.875rem",
fontWeight: 400,
lineHeight: 1.429,
letterSpacing: "-0.01785714em"
},
caption: {
fontSize: "0.75rem",
fontWeight: 400,
lineHeight: 1.667,
letterSpacing: "0.00833333em"
},
overline: {
fontSize: "0.75rem",
fontWeight: 400,
lineHeight: 2.667,
letterSpacing: "0.08333333em"
}
},
zIndex: {
mobileStepper: 1e3,
fab: 1050,
speedDial: 1050,
appBar: 1100,
drawer: 1200,
modal: 1300,
snackbar: 1400,
tooltip: 1500
}
};
var wc = "#001436";
var _c = _objectSpread2(_objectSpread2({}, bc), {}, { palette: {
mode: "light",
primary: {
main: Ul,
light: Vl,
dark: ql,
contrastText: zl,
[gl]: "#C00BB9",
[vl]: "#D355CE",
[yl]: { disabled: Ji(Ul, .38) }
},
secondary: {
main: Fl,
light: jl,
dark: $l,
contrastText: Ml,
[yl]: { disabled: Ji(Fl, .38) }
},
grey: {
50: Al,
100: Pl,
200: Nl,
300: Ll,
400: Dl,
500: jl,
600: Fl,
700: $l,
800: Bl,
900: zl
},
text: {
primary: zl,
secondary: $l,
tertiary: jl,
disabled: Ll
},
background: {
paper: Ml,
default: Ml
},
success: {
main: tc,
light: ec,
dark: rc,
contrastText: Ml,
[yl]: { disabled: Ji(tc, .38) }
},
error: {
main: Hl,
light: Wl,
dark: Gl,
contrastText: Ml,
[yl]: { disabled: Ji(Hl, .38) }
},
warning: {
main: Yl,
light: "#d97706",
dark: Zl,
contrastText: Ml,
[yl]: { disabled: Ji(Yl, .38) }
},
info: {
main: Jl,
light: Xl,
dark: Ql,
contrastText: Ml,
[yl]: { disabled: Ji(Jl, .38) }
},
global: {
main: oc,
light: nc,
dark: ic,
contrastText: zl,
[gl]: "#17929B",
[vl]: "#5DB3B9",
[yl]: { disabled: Ji(oc, .38) }
},
accent: {
main: ac,
light: sc,
dark: lc,
contrastText: Ml
},
promotion: {
main: ac,
light: sc,
dark: lc,
contrastText: Ml,
[yl]: { disabled: Ji(ac, .38) }
},
decorative: {
main: oc,
light: nc,
dark: ic,
contrastText: zl,
[yl]: { disabled: Ji(oc, .38) }
},
neutral: {
main: "#ffffff",
light: "#ffffff",
dark: "#ffffff",
contrastText: "#ffffff"
},
paper: { neutral: {
50: "#FCFCFC",
100: "#F9FAFA",
200: "#F3F4F7",
300: "#EDEEF2",
400: "#E7E9EE",
500: "#E1E3EB"
} },
action: {
hover: Ji(wc, .04),
selected: Ji(wc, .08),
focus: Ji(wc, .12)
},
divider: Ji(wc, .12)
} });
var xc = _objectSpread2(_objectSpread2({}, bc), {}, { palette: {
mode: "dark",
primary: {
main: Ul,
light: Vl,
dark: ql,
contrastText: zl,
[gl]: "#C00BB9",
[vl]: "#D355CE",
[yl]: { disabled: Ji(Ul, .38) }
},
secondary: {
main: Ll,
light: Nl,
dark: Dl,
contrastText: zl,
[yl]: { disabled: Ji(Ll, .38) }
},
grey: {
50: Al,
100: Pl,
200: Nl,
300: Ll,
400: Dl,
500: jl,
600: Fl,
700: $l,
800: Bl,
900: zl
},
text: {
primary: Ml,
secondary: Nl,
tertiary: Ll,
disabled: Fl
},
background: {
paper: zl,
default: Bl
},
success: {
main: tc,
light: ec,
dark: rc,
contrastText: Ml,
[yl]: { disabled: Ji(tc, .38) }
},
error: {
main: Hl,
light: Wl,
dark: Gl,
contrastText: Ml,
[yl]: { disabled: Ji(Hl, .38) }
},
warning: {
main: Kl,
light: "#fbbf24",
dark: Zl,
contrastText: "#000000",
[yl]: { disabled: Ji(Kl, .38) }
},
info: {
main: Jl,
light: Xl,
dark: Ql,
contrastText: Ml,
[yl]: { disabled: Ji(Jl, .38) }
},
global: {
main: oc,
light: nc,
dark: ic,
contrastText: zl,
[gl]: "#17929B",
[vl]: "#5DB3B9",
[yl]: { disabled: Ji(oc, .38) }
},
accent: {
main: ac,
light: sc,
dark: lc,
contrastText: Ml
},
promotion: {
main: ac,
light: sc,
dark: lc,
contrastText: Ml,
[yl]: { disabled: Ji(ac, .38) }
},
decorative: {
main: oc,
light: nc,
dark: ic,
contrastText: zl,
[yl]: { disabled: Ji(oc, .38) }
},
neutral: {
main: "#ffffff",
light: "#ffffff",
dark: "#ffffff",
contrastText: "#ffffff"
},
paper: { neutral: {
50: "#27292E",
100: "#23262A",
200: "#1F2124",
300: "#1C1E22",
400: "#151719",
500: "#0E0F11"
} }
} });
var Sc = "#524CFF";
var kc = {
primary: {
main: Sc,
light: "#6B65FF",
dark: "#4C43E5",
contrastText: "#FFFFFF",
[gl]: "#524CFF",
[vl]: "#6B65FF",
[yl]: { disabled: Ji(Sc, .38) }
},
action: { selected: Ji(Sc, .08) }
};
var Cc = Bl;
var Oc = $l;
var Ec = {
primary: {
main: Cc,
light: Oc,
dark: zl,
contrastText: "#FFFFFF",
[gl]: Cc,
[vl]: Oc,
[yl]: { disabled: Ji(Cc, .38) }
},
accent: {
main: Ul,
light: Vl,
dark: ql,
contrastText: zl
}
};
var Tc = Al;
var Rc = "#FFFFFF";
var Ic = {
primary: {
main: Tc,
light: Rc,
dark: Pl,
contrastText: zl,
[gl]: Tc,
[vl]: Rc,
[yl]: { disabled: Ji(Tc, .38) }
},
accent: {
main: Ul,
light: Vl,
dark: ql,
contrastText: zl
}
};
var Mc = Bl;
var Ac = $l;
var Pc = {
primary: {
main: Mc,
light: Ac,
dark: zl,
contrastText: "#FFFFFF",
[gl]: Mc,
[vl]: Ac,
[yl]: { disabled: Ji(Mc, .38) }
},
accent: {
main: "#f00",
light: "#f00",
dark: "#f00",
contrastText: "#f00"
},
decorative: {
main: "#f00",
light: "#f00",
dark: "#f00",
contrastText: "#f00"
},
neutral: {
main: "#f00",
light: "#f00",
dark: "#f00",
contrastText: "#f00"
}
};
var Nc = Al;
var Lc = "#FFFFFF";
var Dc = {
primary: {
main: Nc,
light: Lc,
dark: Pl,
contrastText: zl,
[gl]: Nc,
[vl]: Lc,
[yl]: { disabled: Ji(Nc, .38) }
},
accent: {
main: "#f00",
light: "#f00",
dark: "#f00",
contrastText: "#f00"
},
decorative: {
main: "#f00",
light: "#f00",
dark: "#f00",
contrastText: "#f00"
},
neutral: {
main: "#f00",
light: "#f00",
dark: "#f00",
contrastText: "#f00"
}
};
var jc = (0, react.createContext)(null);
var Fc = ({ value: e, children: t }) => react.createElement(jc.Provider, { value: e }, t);
var $c = { zIndex: bc.zIndex };
var Bc = ["variants"];
function zc(e, t, r) {
const n = Yn(e, t, { clone: !0 });
if ("replace" === r) return n;
const o = t;
const i = e;
const s = n;
for (const e of Object.keys(o)) {
const t = o[e];
const r = i[e];
const n = s[e];
if (t && n) for (const e of Bc) {
const o = t[e];
if (!Array.isArray(o)) continue;
const i = r === null || r === void 0 ? void 0 : r[e];
n[e] = [...Array.isArray(i) ? i : [], ...o];
}
}
return n;
}
var Vc = !0;
function Uc(e) {
return e ? qc(e, {
primary: [
"main",
"light",
"dark",
"contrastText",
"__unstableAccessibleMain",
"__unstableAccessibleLight",
"__unstableTonalMain",
"__unstableTonalDark",
"__unstableSurface",
"__unstableSurfaceMain",
"__unstableSurfaceLight",
"__unstableSurfaceDark",
"__unstableSurfaceTranslucent",
"__unstableStates"
],
secondary: [
"main",
"light",
"dark",
"contrastText",
"__unstableAccessibleMain",
"__unstableAccessibleLight",
"__unstableTonalMain",
"__unstableTonalDark",
"__unstableSurface",
"__unstableSurfaceMain",
"__unstableSurfaceLight",
"__unstableSurfaceDark",
"__unstableSurfaceTranslucent",
"__unstableStates"
],
success: [
"main",
"light",
"dark",
"contrastText",
"__unstableAccessibleMain",
"__unstableAccessibleLight",
"__unstableTonalMain",
"__unstableTonalDark",
"__unstableSurface",
"__unstableSurfaceMain",
"__unstableSurfaceLight",
"__unstableSurfaceDark",
"__unstableSurfaceTranslucent",
"__unstableStates"
],
info: [
"main",
"light",
"dark",
"contrastText",
"__unstableAccessibleMain",
"__unstableAccessibleLight",
"__unstableTonalMain",
"__unstableTonalDark",
"__unstableSurface",
"__unstableSurfaceMain",
"__unstableSurfaceLight",
"__unstableSurfaceDark",
"__unstableSurfaceTranslucent",
"__unstableStates"
],
warning: [
"main",
"light",
"dark",
"contrastText",
"__unstableAccessibleMain",
"__unstableAccessibleLight",
"__unstableTonalMain",
"__unstableTonalDark",
"__unstableSurface",
"__unstableSurfaceMain",
"__unstableSurfaceLight",
"__unstableSurfaceDark",
"__unstableSurfaceTranslucent",
"__unstableStates"
],
error: [
"main",
"light",
"dark",
"contrastText",
"__unstableAccessibleMain",
"__unstableAccessibleLight",
"__unstableTonalMain",
"__unstableTonalDark",
"__unstableSurface",
"__unstableSurfaceMain",
"__unstableSurfaceLight",
"__unstableSurfaceDark",
"__unstableSurfaceTranslucent",
"__unstableStates"
],
background: [
"default",
"paper",
"__unstableSurface",
"__unstableSurfaceMain",
"__unstableSurfaceLight",
"__unstableSurfaceDark",
"__unstableSurfaceTranslucent"
],
decorative: [
"main",
"light",
"dark",
"contrastText",
"__unstableAccessibleMain",
"__unstableAccessibleLight",
"__unstableTonalMain",
"__unstableTonalDark",
"__unstableSurface",
"__unstableSurfaceMain",
"__unstableSurfaceLight",
"__unstableSurfaceDark",
"__unstableSurfaceTranslucent",
"__unstableStates"
],
accent: [
"main",
"light",
"dark",
"contrastText",
"__unstableAccessibleMain",
"__unstableAccessibleLight",
"__unstableTonalMain",
"__unstableTonalDark",
"__unstableSurface",
"__unstableSurfaceMain",
"__unstableSurfaceLight",
"__unstableSurfaceDark",
"__unstableSurfaceTranslucent",
"__unstableStates"
],
neutral: [
"main",
"light",
"dark",
"contrastText",
"__unstableAccessibleMain",
"__unstableAccessibleLight",
"__unstableTonalMain",
"__unstableTonalDark",
"__unstableSurface",
"__unstableSurfaceMain",
"__unstableSurfaceLight",
"__unstableSurfaceDark",
"__unstableSurfaceTranslucent",
"__unstableStates"
],
text: [
"primary",
"secondary",
"tertiary",
"disabled"
],
action: [
"active",
"focus",
"hover",
"disabled",
"disabledBackground",
"selected",
"__unstableGradientAngle"
],
divider: Vc
}) : {};
}
function qc(e, t) {
if (!e || !t) return {};
const r = {};
return Object.entries(t).forEach(([t, n]) => {
if (e[t]) if ("boolean" != typeof n) {
if (Array.isArray(n)) {
const o = e[t];
n.forEach((e) => {
void 0 !== (o === null || o === void 0 ? void 0 : o[e]) && (r[t] = _objectSpread2(_objectSpread2({}, r[t]), {}, { [e]: o[e] }));
});
}
} else r[t] = e[t];
}), r;
}
var Wc = /* @__PURE__ */ new Map();
var Hc = jt(({ colorScheme: e, palette: t, children: r, overrides: n, unstableThemeV0: i }, a) => {
const l = (0, react.useContext)(jc);
const c = a.key === Sl;
const u = e || (l === null || l === void 0 ? void 0 : l.colorScheme) || "auto";
const p = Ki("(prefers-color-scheme: dark)");
const d = "auto" === u && p || "dark" === u;
const f = function(e, t) {
if (!e) return t;
if ("function" != typeof e) return console.error("overrides must be a function"), t;
const r = e(structuredClone(t || $c));
return r && "object" == typeof r ? r : (console.error("overrides function must return an object"), t);
}(n, l === null || l === void 0 ? void 0 : l.overrides);
const h = (i === null || i === void 0 ? void 0 : i.name) || t || (l === null || l === void 0 ? void 0 : l.themeName);
const m = i || (l === null || l === void 0 ? void 0 : l.customTheme);
let g = m ? ((e, t = !1, r = !1) => {
if (!e.name) throw new Error("Custom theme must have a name");
const n = `${e.name}-${t}-${r}`;
if (Wc.has(n)) return Wc.get(n);
const o = { typography: {
subtitle1: {
fontWeight: 500,
lineHeight: 1.3
},
subtitle2: { lineHeight: 1.3 }
} };
r && (o.direction = "rtl");
const i = function(e, t) {
var _r$componentVariantsM;
const { options: r, components: n, palette: o, shadows: i, shape: s, typography: a, zIndex: l } = e, c = { components: n ? zc(yc, n, (_r$componentVariantsM = r === null || r === void 0 ? void 0 : r.componentVariantsMerge) !== null && _r$componentVariantsM !== void 0 ? _r$componentVariantsM : "concat") : yc };
return t && (o === null || o === void 0 ? void 0 : o.dark) ? c.palette = _objectSpread2(_objectSpread2(_objectSpread2({}, xc.palette), Uc(o.dark)), {}, { mode: "dark" }) : o !== null && o !== void 0 && o.light && (c.palette = _objectSpread2(_objectSpread2({}, _c.palette), Uc(o.light))), i && (c.shadows = i), s && (c.shape = s), a && (c.typography = function(e = {}) {
return e ? qc(e, {
fontFamily: Vc,
display1: [
"fontFamily",
"fontSize",
"fontWeight",
"lineHeight",
"letterSpacing"
],
display2: [
"fontFamily",
"fontSize",
"fontWeight",
"lineHeight",
"letterSpacing"
],
display3: [
"fontFamily",
"fontSize",
"fontWeight",
"lineHeight",
"letterSpacing"
],
display4: [
"fontFamily",
"fontSize",
"fontWeight",
"lineHeight",
"letterSpacing"
],
display5: [
"fontFamily",
"fontSize",
"fontWeight",
"lineHeight",
"letterSpacing"
],
display6: [
"fontFamily",
"fontSize",
"fontWeight",
"lineHeight",
"letterSpacing"
],
h1: [
"fontFamily",
"fontSize",
"fontWeight",
"lineHeight",
"letterSpacing"
],
h2: [
"fontFamily",
"fontSize",
"fontWeight",
"lineHeight",
"letterSpacing"
],
h3: [
"fontFamily",
"fontSize",
"fontWeight",
"lineHeight",
"letterSpacing"
],
h4: [
"fontFamily",
"fontSize",
"fontWeight",
"lineHeight",
"letterSpacing"
],
h5: [
"fontFamily",
"fontSize",
"fontWeight",
"lineHeight",
"letterSpacing"
],
h6: [
"fontFamily",
"fontSize",
"fontWeight",
"lineHeight",
"letterSpacing"
],
subtitle1: ["fontFamily"],
subtitle2: ["fontFamily"],
body1: ["fontFamily"],
body2: ["fontFamily"],
caption: ["fontFamily"],
overline: ["fontFamily"],
button: ["fontFamily", "textTransform"]
}) : {};
}(a)), l && (c.zIndex = l), c;
}(e, t);
const s = Ol(i, o);
return Wc.set(n, s), s;
})(m, d, c) : (({ palette: e = "default", rtl: t = !1, isDarkMode: r = !1 } = {}) => {
const n = `${e}-${r}-${t}`;
if (Wc.has(n)) return Wc.get(n);
const o = r ? xc : _c;
const i = {};
"marketing-suite" === e && (i.palette = kc), "unstable" === e && (i.palette = r ? Ic : Ec, i.shape = {
borderRadius: 8,
__unstableBorderRadiusMultipliers: [
0,
.75,
1,
1.5,
2.5
]
}), "argon-beta" === e && (i.palette = r ? Dc : Pc, i.shape = {
borderRadius: 8,
__unstableBorderRadiusMultipliers: [
0,
.75,
1,
1.5,
2.5
]
}), t && (i.direction = "rtl");
const s = Ol(o, i);
return Wc.set(n, s), s;
})({
rtl: c,
isDarkMode: d,
palette: t || (l === null || l === void 0 ? void 0 : l.themeName)
});
return f && (g = ((e, t) => {
if (!t) return e;
const r = {};
return ["zIndex"].forEach((e) => {
e in t && (r[e] = t[e]);
}), Yn(e, r, { clone: !0 });
})(g, f)), react.default.createElement(Fc, { value: {
colorScheme: e,
themeName: h,
overrides: f,
customTheme: m
} }, react.default.createElement(ia, { theme: g }, r));
});
var Gc = ["primary", "secondary"];
var Kc = Il(hl)(({ theme: e, ownerState: t }) => {
const { color: r } = t, o = Ji(((e, t) => {
var _r$main;
if (!t || "default" === t) return e.palette.action.active;
if ("inherit" === t) return e.palette.text.primary;
const r = e.palette[t];
return (_r$main = r === null || r === void 0 ? void 0 : r.main) !== null && _r$main !== void 0 ? _r$main : e.palette.action.active;
})(e, r), .04), i = ((e, t) => {
var _r$yl$disabled;
var _r$yl;
if (!t || "default" === t || "inherit" === t) return e.palette.action.disabled;
const r = e.palette[t];
return (_r$yl$disabled = r === null || r === void 0 || (_r$yl = r[yl]) === null || _r$yl === void 0 ? void 0 : _r$yl.disabled) !== null && _r$yl$disabled !== void 0 ? _r$yl$disabled : e.palette.action.disabled;
})(e, r);
return { variants: [
{
props: (e) => {
var _e$ownerState;
return !((_e$ownerState = e.ownerState) === null || _e$ownerState === void 0 ? void 0 : _e$ownerState.variant) || "ghost" === e.ownerState.variant;
},
style: {
"&:hover": { backgroundColor: o },
"&.Mui-disabled": { color: i }
}
},
{
props: (e) => {
var _e$ownerState2;
var _e$ownerState3;
return ((e, t) => "outlined" === e || "filled" === e && Gc.some((e) => e === t))((_e$ownerState2 = e.ownerState) === null || _e$ownerState2 === void 0 ? void 0 : _e$ownerState2.variant, (_e$ownerState3 = e.ownerState) === null || _e$ownerState3 === void 0 ? void 0 : _e$ownerState3.color);
},
style: { "&& .MuiTouchRipple-root .MuiTouchRipple-ripple .MuiTouchRipple-child": { borderRadius: `${e.shape.borderRadius}px` } }
},
{
props: (e) => {
var _e$ownerState4;
return "outlined" === ((_e$ownerState4 = e.ownerState) === null || _e$ownerState4 === void 0 ? void 0 : _e$ownerState4.variant);
},
style: {
borderRadius: `${e.shape.borderRadius}px`,
border: "1px solid",
borderColor: e.palette.divider,
"&:hover": { backgroundColor: o },
"&.Mui-disabled": { color: i }
}
},
{
props: (e) => {
var _e$ownerState5;
var _e$ownerState6;
return "filled" === ((_e$ownerState5 = e.ownerState) === null || _e$ownerState5 === void 0 ? void 0 : _e$ownerState5.variant) && "primary" === ((_e$ownerState6 = e.ownerState) === null || _e$ownerState6 === void 0 ? void 0 : _e$ownerState6.color);
},
style: {
borderRadius: `${e.shape.borderRadius}px`,
backgroundColor: e.palette.primary.main,
"&:hover": { backgroundColor: e.palette.primary.dark },
"&.Mui-disabled": {
backgroundColor: i,
color: Ji(e.palette.primary.contrastText, .38)
}
}
},
{
props: (e) => {
var _e$ownerState7;
var _e$ownerState8;
return "filled" === ((_e$ownerState7 = e.ownerState) === null || _e$ownerState7 === void 0 ? void 0 : _e$ownerState7.variant) && "secondary" === ((_e$ownerState8 = e.ownerState) === null || _e$ownerState8 === void 0 ? void 0 : _e$ownerState8.color);
},
style: {
borderRadius: `${e.shape.borderRadius}px`,
backgroundColor: Ji(e.palette.secondary.main, .08),
"&:hover": { backgroundColor: Ji(e.palette.secondary.main, .12) },
"&.Mui-disabled": {
backgroundColor: Ji(e.palette.secondary.main, .04),
color: i
}
}
}
] };
});
var Yc = react.default.forwardRef((e, t) => {
const { sx: r = {}, color: n, variant: i = "ghost" } = e, s = _objectWithoutProperties(e, _excluded), a = "filled" === i && !Gc.some((e) => e === n);
a && console.warn("[IconButton] variant=\"filled\" only supports color=\"primary\" | \"secondary\". Falling back to variant=\"ghost\".");
const l = a ? "ghost" : i;
const c = s.href ? ml : "&:hover,&:focus,&:active";
const u = "filled" === l && "primary" === n ? "primary.contrastText" : ((e = "default") => "inherit" === e ? "inherit" : "default" === e ? "action.active" : pc.includes(e) ? `${e}.${gl}` : `${e}.main`)(n);
const p = {
color: u,
[c]: { color: u }
};
const d = _objectSpread2(_objectSpread2({}, e), {}, {
variant: l,
color: n
});
return react.default.createElement(Kc, _objectSpread2(_objectSpread2({}, s), {}, {
ownerState: d,
sx: _objectSpread2(_objectSpread2({}, p), r),
ref: t
}));
});
Yc.displayName = "IconButton";
var Zc = Yc;
function Xc(e) {
return Qn("MuiSvgIcon", e);
}
ks("MuiSvgIcon", [
"root",
"colorPrimary",
"colorSecondary",
"colorAction",
"colorError",
"colorDisabled",
"fontSizeInherit",
"fontSizeSmall",
"fontSizeMedium",
"fontSizeLarge"
]);
var Jc = [
"children",
"className",
"color",
"component",
"fontSize",
"htmlColor",
"inheritViewBox",
"titleAccess",
"viewBox"
];
var Qc = pi("svg", {
name: "MuiSvgIcon",
slot: "Root",
overridesResolver: (e, t) => {
const { ownerState: r } = e;
return [
t.root,
"inherit" !== r.color && t[`color${bi(r.color)}`],
t[`fontSize${bi(r.fontSize)}`]
];
}
})(({ theme: e, ownerState: t }) => {
var r;
var n;
var o;
var i;
var s;
var a;
var l;
var c;
var u;
var p;
var d;
var f;
var h;
return {
userSelect: "none",
width: "1em",
height: "1em",
display: "inline-block",
fill: t.hasSvgAsChild ? void 0 : "currentColor",
flexShrink: 0,
transition: null == (r = e.transitions) || null == (n = r.create) ? void 0 : n.call(r, "fill", { duration: null == (o = e.transitions) || null == (o = o.duration) ? void 0 : o.shorter }),
fontSize: {
inherit: "inherit",
small: (null == (i = e.typography) || null == (s = i.pxToRem) ? void 0 : s.call(i, 20)) || "1.25rem",
medium: (null == (a = e.typography) || null == (l = a.pxToRem) ? void 0 : l.call(a, 24)) || "1.5rem",
large: (null == (c = e.typography) || null == (u = c.pxToRem) ? void 0 : u.call(c, 35)) || "2.1875rem"
}[t.fontSize],
color: null != (p = null == (d = (e.vars || e).palette) || null == (d = d[t.color]) ? void 0 : d.main) ? p : {
action: null == (f = (e.vars || e).palette) || null == (f = f.action) ? void 0 : f.active,
disabled: null == (h = (e.vars || e).palette) || null == (h = h.action) ? void 0 : h.disabled,
inherit: void 0
}[t.color]
};
});
var eu = react.forwardRef(function(r, o) {
const i = yi({
props: r,
name: "MuiSvgIcon"
}), { children: s, className: a, color: l = "inherit", component: c = "svg", fontSize: u = "medium", htmlColor: p, inheritViewBox: d = !1, titleAccess: f, viewBox: h = "0 0 24 24" } = i, m = w(i, Jc), g = react.isValidElement(s) && "svg" === s.type, v = _({}, i, {
color: l,
component: c,
fontSize: u,
instanceFontSize: r.fontSize,
inheritViewBox: d,
viewBox: h,
hasSvgAsChild: g
}), y = {};
d || (y.viewBox = h);
const b = ((e) => {
const { color: t, fontSize: r, classes: n } = e;
return ne({ root: [
"root",
"inherit" !== t && `color${bi(t)}`,
`fontSize${bi(r)}`
] }, Xc, n);
})(v);
return (0, import_jsx_runtime.jsxs)(Qc, _({
as: c,
className: re(b.root, a),
focusable: "false",
color: p,
"aria-hidden": !f || void 0,
role: f ? "img" : void 0,
ref: o
}, y, m, g && s.props, {
ownerState: v,
children: [g ? s.props.children : s, f ? (0, import_jsx_runtime.jsx)("title", { children: f }) : null]
}));
});
eu.propTypes = {
children: ee.node,
classes: ee.object,
className: ee.string,
color: ee.oneOfType([ee.oneOf([
"inherit",
"action",
"disabled",
"primary",
"secondary",
"error",
"info",
"success",
"warning"
]), ee.string]),
component: ee.elementType,
fontSize: ee.oneOfType([ee.oneOf([
"inherit",
"large",
"medium",
"small"
]), ee.string]),
htmlColor: ee.string,
inheritViewBox: ee.bool,
shapeRendering: ee.string,
sx: ee.oneOfType([
ee.arrayOf(ee.oneOfType([
ee.func,
ee.object,
ee.bool
])),
ee.func,
ee.object
]),
titleAccess: ee.string,
viewBox: ee.string
}, eu.muiName = "SvgIcon";
var tu = eu;
var ru = react.default.forwardRef((e, t) => react.default.createElement(tu, _objectSpread2(_objectSpread2({}, e), {}, { ref: t })));
var nu = react.forwardRef((e, t) => react.createElement(ru, _objectSpread2(_objectSpread2({ viewBox: "0 0 24 24" }, e), {}, { ref: t }), react.createElement("path", {
fillRule: "evenodd",
clipRule: "evenodd",
d: "M12 2.25C12.4142 2.25 12.75 2.58579 12.75 3V4C12.75 4.41421 12.4142 4.75 12 4.75C11.5858 4.75 11.25 4.41421 11.25 4V3C11.25 2.58579 11.5858 2.25 12 2.25ZM5.06967 5.06967C5.36256 4.77678 5.83744 4.77678 6.13033 5.06967L6.83033 5.76967C7.12322 6.06256 7.12322 6.53744 6.83033 6.83033C6.53744 7.12322 6.06256 7.12322 5.76967 6.83033L5.06967 6.13033C4.77678 5.83744 4.77678 5.36256 5.06967 5.06967ZM18.9303 5.06967C19.2232 5.36256 19.2232 5.83744 18.9303 6.13033L18.2303 6.83033C17.9374 7.12322 17.4626 7.12322 17.1697 6.83033C16.8768 6.53744 16.8768 6.06256 17.1697 5.76967L17.8697 5.06967C18.1626 4.77678 18.6374 4.77678 18.9303 5.06967ZM12 7.75C11.108 7.75 10.2386 8.03066 9.51498 8.55222C8.79135 9.07378 8.25017 9.80981 7.9681 10.656C7.68602 11.5023 7.67735 12.4158 7.94332 13.2672C8.20928 14.1186 8.7364 14.8648 9.45 15.4C9.47737 15.4205 9.50331 15.4429 9.52763 15.467C9.76639 15.7033 9.97545 15.9663 10.1511 16.25H13.8489C14.0246 15.9663 14.2336 15.7033 14.4724 15.467C14.4967 15.4429 14.5226 15.4205 14.55 15.4C15.2636 14.8648 15.7907 14.1186 16.0567 13.2672C16.3226 12.4158 16.314 11.5023 16.0319 10.656C15.7498 9.80981 15.2086 9.07378 14.485 8.55222C13.7614 8.03066 12.892 7.75 12 7.75ZM14.9408 17.3899C14.9685 17.3444 14.9916 17.2956 15.0092 17.2444C15.1354 16.9955 15.2989 16.7666 15.4949 16.566C16.4376 15.8445 17.1342 14.8485 17.4885 13.7145C17.8483 12.5625 17.8366 11.3266 17.4549 10.1817C17.0733 9.0368 16.3411 8.041 15.3621 7.33536C14.3831 6.62971 13.2068 6.25 12 6.25C10.7932 6.25 9.61694 6.62971 8.63792 7.33536C7.65889 8.041 6.9267 9.0368 6.54507 10.1817C6.16344 11.3266 6.15171 12.5625 6.51155 13.7145C6.86579 14.8485 7.56245 15.8445 8.50515 16.566C8.7009 16.7665 8.86438 16.9951 8.99046 17.2438C9.00821 17.2954 9.03145 17.3446 9.05947 17.3905C9.0918 17.4648 9.12088 17.5406 9.14662 17.6178C9.28311 18.0273 9.3213 18.4632 9.25809 18.8902C9.2527 18.9265 9.25 18.9632 9.25 19C9.25 19.7293 9.53973 20.4288 10.0555 20.9445C10.5712 21.4603 11.2707 21.75 12 21.75C12.7293 21.75 13.4288 21.4603 13.9445 20.9445C14.4603 20.4288 14.75 19.7293 14.75 19C14.75 18.9632 14.7473 18.9265 14.7419 18.8902C14.6787 18.4632 14.7169 18.0273 14.8534 17.6178C14.8792 17.5404 14.9083 17.4644 14.9408 17.3899ZM13.2767 17.75H10.7233C10.7985 18.177 10.8081 18.6141 10.7509 19.0461C10.7625 19.3609 10.8926 19.6604 11.1161 19.8839C11.3505 20.1183 11.6685 20.25 12 20.25C12.3315 20.25 12.6495 20.1183 12.8839 19.8839C13.1074 19.6604 13.2375 19.3609 13.2491 19.0461C13.1919 18.6141 13.2015 18.177 13.2767 17.75ZM2.25 12C2.25 11.5858 2.58579 11.25 3 11.25H4C4.41421 11.25 4.75 11.5858 4.75 12C4.75 12.4142 4.41421 12.75 4 12.75H3C2.58579 12.75 2.25 12.4142 2.25 12ZM19.25 12C19.25 11.5858 19.5858 11.25 20 11.25H21C21.4142 11.25 21.75 11.5858 21.75 12C21.75 12.4142 21.4142 12.75 21 12.75H20C19.5858 12.75 19.25 12.4142 19.25 12Z"
})));
var ou = react.forwardRef((e, t) => react.createElement(ru, _objectSpread2(_objectSpread2({ viewBox: "0 0 24 24" }, e), {}, { ref: t }), react.createElement("path", { d: "M11.75 15.75C12.3023 15.75 12.75 16.1977 12.75 16.75V16.7598C12.75 17.3121 12.3023 17.7598 11.75 17.7598C11.1977 17.7598 10.75 17.3121 10.75 16.7598V16.75C10.75 16.1977 11.1977 15.75 11.75 15.75Z" }), react.createElement("path", { d: "M11.1846 5.80957C11.8554 5.67269 12.5519 5.7716 13.1592 6.08887L13.1611 6.09082C13.7668 6.41042 14.2478 6.92595 14.5283 7.55273C14.8087 8.17938 14.8742 8.88338 14.7158 9.55176C14.5574 10.2202 14.1831 10.8182 13.6494 11.248C13.3136 11.5185 12.9265 11.7121 12.5156 11.8193V13.5C12.5156 13.9142 12.1798 14.25 11.7656 14.25C11.3516 14.2498 11.0156 13.9141 11.0156 13.5V11.167C11.0156 10.7537 11.3504 10.4183 11.7637 10.417C12.1047 10.4159 12.4371 10.2973 12.708 10.0791C12.9791 9.86074 13.1733 9.55417 13.2559 9.20605C13.3384 8.85764 13.3036 8.49103 13.1582 8.16602C13.0131 7.84167 12.7675 7.57909 12.4629 7.41797C12.1603 7.26033 11.8157 7.21168 11.4844 7.2793C11.1523 7.34706 10.8495 7.52873 10.627 7.79688C10.3624 8.11534 9.88993 8.15896 9.57129 7.89453C9.25265 7.63007 9.20839 7.1576 9.47266 6.83887C9.91082 6.31093 10.5138 5.94644 11.1846 5.80957Z" }), react.createElement("path", {
fillRule: "evenodd",
clipRule: "evenodd",
d: "M11.75 2C17.1348 2 21.5 6.36522 21.5 11.75C21.5 17.1348 17.1348 21.5 11.75 21.5C6.36522 21.5 2 17.1348 2 11.75C2 6.36522 6.36522 2 11.75 2ZM11.75 3.5C7.19365 3.5 3.5 7.19365 3.5 11.75C3.5 16.3063 7.19365 20 11.75 20C16.3063 20 20 16.3063 20 11.75C20 7.19365 16.3063 3.5 11.75 3.5Z"
})));
function iu(e) {
return Qn("MuiDivider", e);
}
var su = ks("MuiDivider", [
"root",
"absolute",
"fullWidth",
"inset",
"middle",
"flexItem",
"light",
"vertical",
"withChildren",
"withChildrenVertical",
"textAlignRight",
"textAlignLeft",
"wrapper",
"wrapperVertical"
]);
var au = [
"absolute",
"children",
"className",
"component",
"flexItem",
"light",
"orientation",
"role",
"textAlign",
"variant"
];
var lu = pi("div", {
name: "MuiDivider",
slot: "Root",
overridesResolver: (e, t) => {
const { ownerState: r } = e;
return [
t.root,
r.absolute && t.absolute,
t[r.variant],
r.light && t.light,
"vertical" === r.orientation && t.vertical,
r.flexItem && t.flexItem,
r.children && t.withChildren,
r.children && "vertical" === r.orientation && t.withChildrenVertical,
"right" === r.textAlign && "vertical" !== r.orientation && t.textAlignRight,
"left" === r.textAlign && "vertical" !== r.orientation && t.textAlignLeft
];
}
})(({ theme: e, ownerState: t }) => _({
margin: 0,
flexShrink: 0,
borderWidth: 0,
borderStyle: "solid",
borderColor: (e.vars || e).palette.divider,
borderBottomWidth: "thin"
}, t.absolute && {
position: "absolute",
bottom: 0,
left: 0,
width: "100%"
}, t.light && { borderColor: e.vars ? `rgba(${e.vars.palette.dividerChannel} / 0.08)` : so.alpha(e.palette.divider, .08) }, "inset" === t.variant && { marginLeft: 72 }, "middle" === t.variant && "horizontal" === t.orientation && {
marginLeft: e.spacing(2),
marginRight: e.spacing(2)
}, "middle" === t.variant && "vertical" === t.orientation && {
marginTop: e.spacing(1),
marginBottom: e.spacing(1)
}, "vertical" === t.orientation && {
height: "100%",
borderBottomWidth: 0,
borderRightWidth: "thin"
}, t.flexItem && {
alignSelf: "stretch",
height: "auto"
}), ({ ownerState: e }) => _({}, e.children && {
display: "flex",
whiteSpace: "nowrap",
textAlign: "center",
border: 0,
"&::before, &::after": {
content: "\"\"",
alignSelf: "center"
}
}), ({ theme: e, ownerState: t }) => _({}, t.children && "vertical" !== t.orientation && { "&::before, &::after": {
width: "100%",
borderTop: `thin solid ${(e.vars || e).palette.divider}`
} }), ({ theme: e, ownerState: t }) => _({}, t.children && "vertical" === t.orientation && {
flexDirection: "column",
"&::before, &::after": {
height: "100%",
borderLeft: `thin solid ${(e.vars || e).palette.divider}`
}
}), ({ ownerState: e }) => _({}, "right" === e.textAlign && "vertical" !== e.orientation && {
"&::before": { width: "90%" },
"&::after": { width: "10%" }
}, "left" === e.textAlign && "vertical" !== e.orientation && {
"&::before": { width: "10%" },
"&::after": { width: "90%" }
}));
var cu = pi("span", {
name: "MuiDivider",
slot: "Wrapper",
overridesResolver: (e, t) => {
const { ownerState: r } = e;
return [t.wrapper, "vertical" === r.orientation && t.wrapperVertical];
}
})(({ theme: e, ownerState: t }) => _({
display: "inline-block",
paddingLeft: `calc(${e.spacing(1)} * 1.2)`,
paddingRight: `calc(${e.spacing(1)} * 1.2)`
}, "vertical" === t.orientation && {
paddingTop: `calc(${e.spacing(1)} * 1.2)`,
paddingBottom: `calc(${e.spacing(1)} * 1.2)`
}));
var uu = react.forwardRef(function(t, r) {
const n = yi({
props: t,
name: "MuiDivider"
}), { absolute: o = !1, children: i, className: s, component: a = i ? "div" : "hr", flexItem: l = !1, light: c = !1, orientation: u = "horizontal", role: p = "hr" !== a ? "separator" : void 0, textAlign: d = "center", variant: f = "fullWidth" } = n, h = w(n, au), m = _({}, n, {
absolute: o,
component: a,
flexItem: l,
light: c,
orientation: u,
role: p,
textAlign: d,
variant: f
}), g = ((e) => {
const { absolute: t, children: r, classes: n, flexItem: o, light: i, orientation: s, textAlign: a, variant: l } = e;
return ne({
root: [
"root",
t && "absolute",
l,
i && "light",
"vertical" === s && "vertical",
o && "flexItem",
r && "withChildren",
r && "vertical" === s && "withChildrenVertical",
"right" === a && "vertical" !== s && "textAlignRight",
"left" === a && "vertical" !== s && "textAlignLeft"
],
wrapper: ["wrapper", "vertical" === s && "wrapperVertical"]
}, iu, n);
})(m);
return (0, import_jsx_runtime.jsx)(lu, _({
as: a,
className: re(g.root, s),
role: p,
ref: r,
ownerState: m
}, h, { children: i ? (0, import_jsx_runtime.jsx)(cu, {
className: g.wrapper,
ownerState: m,
children: i
}) : null }));
});
uu.muiSkipListHighlight = !0, uu.propTypes = {
absolute: ee.bool,
children: ee.node,
classes: ee.object,
className: ee.string,
component: ee.elementType,
flexItem: ee.bool,
light: ee.bool,
orientation: ee.oneOf(["horizontal", "vertical"]),
role: ee.string,
sx: ee.oneOfType([
ee.arrayOf(ee.oneOfType([
ee.func,
ee.object,
ee.bool
])),
ee.func,
ee.object
]),
textAlign: ee.oneOf([
"center",
"left",
"right"
]),
variant: ee.oneOfType([ee.oneOf([
"fullWidth",
"inset",
"middle"
]), ee.string])
};
var pu = uu;
var du = react.default.forwardRef((e, t) => react.default.createElement(pu, _objectSpread2(_objectSpread2({}, e), {}, { ref: t })));
var fu = react.forwardRef((e, t) => react.createElement(ru, _objectSpread2(_objectSpread2({ viewBox: "0 0 24 24" }, e), {}, { ref: t }), react.createElement("path", {
fillRule: "evenodd",
clipRule: "evenodd",
d: "M12 3.75C10.2051 3.75 8.75 5.20507 8.75 7C8.75 8.79493 10.2051 10.25 12 10.25C13.7949 10.25 15.25 8.79493 15.25 7C15.25 5.20507 13.7949 3.75 12 3.75ZM7.25 7C7.25 4.37665 9.37665 2.25 12 2.25C14.6234 2.25 16.75 4.37665 16.75 7C16.75 9.62335 14.6234 11.75 12 11.75C9.37665 11.75 7.25 9.62335 7.25 7ZM10 15.75C9.13805 15.75 8.3114 16.0924 7.7019 16.7019C7.09241 17.3114 6.75 18.138 6.75 19V21C6.75 21.4142 6.41421 21.75 6 21.75C5.58579 21.75 5.25 21.4142 5.25 21V19C5.25 17.7402 5.75044 16.532 6.64124 15.6412C7.53204 14.7504 8.74022 14.25 10 14.25H14C15.2598 14.25 16.468 14.7504 17.3588 15.6412C18.2496 16.532 18.75 17.7402 18.75 19V21C18.75 21.4142 18.4142 21.75 18 21.75C17.5858 21.75 17.25 21.4142 17.25 21V19C17.25 18.138 16.9076 17.3114 16.2981 16.7019C15.6886 16.0924 14.862 15.75 14 15.75H10Z"
})));
function hu(e, t) {
const r = _({}, t);
return Object.keys(e).forEach((n) => {
if (n.toString().match(/^(components|slots)$/)) r[n] = _({}, e[n], r[n]);
else if (n.toString().match(/^(componentsProps|slotProps)$/)) {
const o = e[n] || {};
const i = t[n];
r[n] = {}, i && Object.keys(i) ? o && Object.keys(o) ? (r[n] = _({}, i), Object.keys(o).forEach((e) => {
r[n][e] = hu(o[e], i[e]);
})) : r[n] = i : r[n] = o;
} else void 0 === r[n] && (r[n] = e[n]);
}), r;
}
function mu(e) {
return Qn("MuiButton", e);
}
var gu = ks("MuiButton", [
"root",
"text",
"textInherit",
"textPrimary",
"textSecondary",
"textSuccess",
"textError",
"textInfo",
"textWarning",
"outlined",
"outlinedInherit",
"outlinedPrimary",
"outlinedSecondary",
"outlinedSuccess",
"outlinedError",
"outlinedInfo",
"outlinedWarning",
"contained",
"containedInherit",
"containedPrimary",
"containedSecondary",
"containedSuccess",
"containedError",
"containedInfo",
"containedWarning",
"disableElevation",
"focusVisible",
"disabled",
"colorInherit",
"colorPrimary",
"colorSecondary",
"colorSuccess",
"colorError",
"colorInfo",
"colorWarning",
"textSizeSmall",
"textSizeMedium",
"textSizeLarge",
"outlinedSizeSmall",
"outlinedSizeMedium",
"outlinedSizeLarge",
"containedSizeSmall",
"containedSizeMedium",
"containedSizeLarge",
"sizeMedium",
"sizeSmall",
"sizeLarge",
"fullWidth",
"startIcon",
"endIcon",
"icon",
"iconSizeSmall",
"iconSizeMedium",
"iconSizeLarge"
]);
var vu = react.createContext({});
vu.displayName = "ButtonGroupContext";
var yu = vu;
var bu = react.createContext(void 0);
bu.displayName = "ButtonGroupButtonContext";
var wu = bu;
var _u = [
"children",
"color",
"component",
"className",
"disabled",
"disableElevation",
"disableFocusRipple",
"endIcon",
"focusVisibleClassName",
"fullWidth",
"size",
"startIcon",
"type",
"variant"
];
var xu = (e) => _({}, "small" === e.size && { "& > *:nth-of-type(1)": { fontSize: 18 } }, "medium" === e.size && { "& > *:nth-of-type(1)": { fontSize: 20 } }, "large" === e.size && { "& > *:nth-of-type(1)": { fontSize: 22 } });
var Su = pi(ll, {
shouldForwardProp: (e) => ui(e) || "classes" === e,
name: "MuiButton",
slot: "Root",
overridesResolver: (e, t) => {
const { ownerState: r } = e;
return [
t.root,
t[r.variant],
t[`${r.variant}${bi(r.color)}`],
t[`size${bi(r.size)}`],
t[`${r.variant}Size${bi(r.size)}`],
"inherit" === r.color && t.colorInherit,
r.disableElevation && t.disableElevation,
r.fullWidth && t.fullWidth
];
}
})(({ theme: e, ownerState: t }) => {
var r;
var n;
const o = "light" === e.palette.mode ? e.palette.grey[300] : e.palette.grey[800];
const i = "light" === e.palette.mode ? e.palette.grey.A100 : e.palette.grey[700];
return _({}, e.typography.button, {
minWidth: 64,
padding: "6px 16px",
borderRadius: (e.vars || e).shape.borderRadius,
transition: e.transitions.create([
"background-color",
"box-shadow",
"border-color",
"color"
], { duration: e.transitions.duration.short }),
"&:hover": _({
textDecoration: "none",
backgroundColor: e.vars ? `rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})` : so.alpha(e.palette.text.primary, e.palette.action.hoverOpacity),
"@media (hover: none)": { backgroundColor: "transparent" }
}, "text" === t.variant && "inherit" !== t.color && {
backgroundColor: e.vars ? `rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})` : so.alpha(e.palette[t.color].main, e.palette.action.hoverOpacity),
"@media (hover: none)": { backgroundColor: "transparent" }
}, "outlined" === t.variant && "inherit" !== t.color && {
border: `1px solid ${(e.vars || e).palette[t.color].main}`,
backgroundColor: e.vars ? `rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})` : so.alpha(e.palette[t.color].main, e.palette.action.hoverOpacity),
"@media (hover: none)": { backgroundColor: "transparent" }
}, "contained" === t.variant && {
backgroundColor: e.vars ? e.vars.palette.Button.inheritContainedHoverBg : i,
boxShadow: (e.vars || e).shadows[4],
"@media (hover: none)": {
boxShadow: (e.vars || e).shadows[2],
backgroundColor: (e.vars || e).palette.grey[300]
}
}, "contained" === t.variant && "inherit" !== t.color && {
backgroundColor: (e.vars || e).palette[t.color].dark,
"@media (hover: none)": { backgroundColor: (e.vars || e).palette[t.color].main }
}),
"&:active": _({}, "contained" === t.variant && { boxShadow: (e.vars || e).shadows[8] }),
[`&.${gu.focusVisible}`]: _({}, "contained" === t.variant && { boxShadow: (e.vars || e).shadows[6] }),
[`&.${gu.disabled}`]: _({ color: (e.vars || e).palette.action.disabled }, "outlined" === t.variant && { border: `1px solid ${(e.vars || e).palette.action.disabledBackground}` }, "contained" === t.variant && {
color: (e.vars || e).palette.action.disabled,
boxShadow: (e.vars || e).shadows[0],
backgroundColor: (e.vars || e).palette.action.disabledBackground
})
}, "text" === t.variant && { padding: "6px 8px" }, "text" === t.variant && "inherit" !== t.color && { color: (e.vars || e).palette[t.color].main }, "outlined" === t.variant && {
padding: "5px 15px",
border: "1px solid currentColor"
}, "outlined" === t.variant && "inherit" !== t.color && {
color: (e.vars || e).palette[t.color].main,
border: e.vars ? `1px solid rgba(${e.vars.palette[t.color].mainChannel} / 0.5)` : `1px solid ${so.alpha(e.palette[t.color].main, .5)}`
}, "contained" === t.variant && {
color: e.vars ? e.vars.palette.text.primary : null == (r = (n = e.palette).getContrastText) ? void 0 : r.call(n, e.palette.grey[300]),
backgroundColor: e.vars ? e.vars.palette.Button.inheritContainedBg : o,
boxShadow: (e.vars || e).shadows[2]
}, "contained" === t.variant && "inherit" !== t.color && {
color: (e.vars || e).palette[t.color].contrastText,
backgroundColor: (e.vars || e).palette[t.color].main
}, "inherit" === t.color && {
color: "inherit",
borderColor: "currentColor"
}, "small" === t.size && "text" === t.variant && {
padding: "4px 5px",
fontSize: e.typography.pxToRem(13)
}, "large" === t.size && "text" === t.variant && {
padding: "8px 11px",
fontSize: e.typography.pxToRem(15)
}, "small" === t.size && "outlined" === t.variant && {
padding: "3px 9px",
fontSize: e.typography.pxToRem(13)
}, "large" === t.size && "outlined" === t.variant && {
padding: "7px 21px",
fontSize: e.typography.pxToRem(15)
}, "small" === t.size && "contained" === t.variant && {
padding: "4px 10px",
fontSize: e.typography.pxToRem(13)
}, "large" === t.size && "contained" === t.variant && {
padding: "8px 22px",
fontSize: e.typography.pxToRem(15)
}, t.fullWidth && { width: "100%" });
}, ({ ownerState: e }) => e.disableElevation && {
boxShadow: "none",
"&:hover": { boxShadow: "none" },
[`&.${gu.focusVisible}`]: { boxShadow: "none" },
"&:active": { boxShadow: "none" },
[`&.${gu.disabled}`]: { boxShadow: "none" }
});
var ku = pi("span", {
name: "MuiButton",
slot: "StartIcon",
overridesResolver: (e, t) => {
const { ownerState: r } = e;
return [t.startIcon, t[`iconSize${bi(r.size)}`]];
}
})(({ ownerState: e }) => _({
display: "inherit",
marginRight: 8,
marginLeft: -4
}, "small" === e.size && { marginLeft: -2 }, xu(e)));
var Cu = pi("span", {
name: "MuiButton",
slot: "EndIcon",
overridesResolver: (e, t) => {
const { ownerState: r } = e;
return [t.endIcon, t[`iconSize${bi(r.size)}`]];
}
})(({ ownerState: e }) => _({
display: "inherit",
marginRight: -4,
marginLeft: 8
}, "small" === e.size && { marginRight: -2 }, xu(e)));
var Ou = react.forwardRef(function(r, o) {
const i = react.useContext(yu), s = react.useContext(wu), a = yi({
props: hu(i, r),
name: "MuiButton"
}), { children: l, color: c = "primary", component: u = "button", className: p, disabled: d = !1, disableElevation: f = !1, disableFocusRipple: h = !1, endIcon: m, focusVisibleClassName: g, fullWidth: v = !1, size: y = "medium", startIcon: b, type: x, variant: S = "text" } = a, k = w(a, _u), C = _({}, a, {
color: c,
component: u,
disabled: d,
disableElevation: f,
disableFocusRipple: h,
fullWidth: v,
size: y,
type: x,
variant: S
}), O = ((e) => {
const { color: t, disableElevation: r, fullWidth: n, size: o, variant: i, classes: s } = e;
return _({}, s, ne({
root: [
"root",
i,
`${i}${bi(t)}`,
`size${bi(o)}`,
`${i}Size${bi(o)}`,
`color${bi(t)}`,
r && "disableElevation",
n && "fullWidth"
],
label: ["label"],
startIcon: [
"icon",
"startIcon",
`iconSize${bi(o)}`
],
endIcon: [
"icon",
"endIcon",
`iconSize${bi(o)}`
]
}, mu, s));
})(C), E = b && (0, import_jsx_runtime.jsx)(ku, {
className: O.startIcon,
ownerState: C,
children: b
}), T = m && (0, import_jsx_runtime.jsx)(Cu, {
className: O.endIcon,
ownerState: C,
children: m
}), R = s || "";
return (0, import_jsx_runtime.jsxs)(Su, _({
ownerState: C,
className: re(i.className, O.root, p, R),
component: u,
disabled: d,
focusRipple: !h,
focusVisibleClassName: re(O.focusVisible, g),
ref: o,
type: x
}, k, {
classes: O,
children: [
E,
l,
T
]
}));
});
Ou.propTypes = {
children: ee.node,
classes: ee.object,
className: ee.string,
color: ee.oneOfType([ee.oneOf([
"inherit",
"primary",
"secondary",
"success",
"error",
"info",
"warning"
]), ee.string]),
component: ee.elementType,
disabled: ee.bool,
disableElevation: ee.bool,
disableFocusRipple: ee.bool,
disableRipple: ee.bool,
endIcon: ee.node,
focusVisibleClassName: ee.string,
fullWidth: ee.bool,
href: ee.string,
size: ee.oneOfType([ee.oneOf([
"small",
"medium",
"large"
]), ee.string]),
startIcon: ee.node,
sx: ee.oneOfType([
ee.arrayOf(ee.oneOfType([
ee.func,
ee.object,
ee.bool
])),
ee.func,
ee.object
]),
type: ee.oneOfType([ee.oneOf([
"button",
"reset",
"submit"
]), ee.string]),
variant: ee.oneOfType([ee.oneOf([
"contained",
"outlined",
"text"
]), ee.string])
};
var Eu = Ou;
function Tu(e) {
return Qn("MuiCircularProgress", e);
}
ks("MuiCircularProgress", [
"root",
"determinate",
"indeterminate",
"colorPrimary",
"colorSecondary",
"svg",
"circle",
"circleDeterminate",
"circleIndeterminate",
"circleDisableShrink"
]);
var Ru = [
"className",
"color",
"disableShrink",
"size",
"style",
"thickness",
"value",
"variant"
];
var Iu;
var Mu;
var Au;
var Pu;
var Nu = (e) => e;
var Lu = Gt(Iu || (Iu = Nu`
0% {
transform: rotate(0deg);
}
100% {
transform: rotate(360deg);
}
`));
var Du = Gt(Mu || (Mu = Nu`
0% {
stroke-dasharray: 1px, 200px;
stroke-dashoffset: 0;
}
50% {
stroke-dasharray: 100px, 200px;
stroke-dashoffset: -15px;
}
100% {
stroke-dasharray: 100px, 200px;
stroke-dashoffset: -125px;
}
`));
var ju = pi("span", {
name: "MuiCircularProgress",
slot: "Root",
overridesResolver: (e, t) => {
const { ownerState: r } = e;
return [
t.root,
t[r.variant],
t[`color${bi(r.color)}`]
];
}
})(({ ownerState: e, theme: t }) => _({ display: "inline-block" }, "determinate" === e.variant && { transition: t.transitions.create("transform") }, "inherit" !== e.color && { color: (t.vars || t).palette[e.color].main }), ({ ownerState: e }) => "indeterminate" === e.variant && Ht(Au || (Au = Nu`
animation: ${0} 1.4s linear infinite;
`), Lu));
var Fu = pi("svg", {
name: "MuiCircularProgress",
slot: "Svg",
overridesResolver: (e, t) => t.svg
})({ display: "block" });
var $u = pi("circle", {
name: "MuiCircularProgress",
slot: "Circle",
overridesResolver: (e, t) => {
const { ownerState: r } = e;
return [
t.circle,
t[`circle${bi(r.variant)}`],
r.disableShrink && t.circleDisableShrink
];
}
})(({ ownerState: e, theme: t }) => _({ stroke: "currentColor" }, "determinate" === e.variant && { transition: t.transitions.create("stroke-dashoffset") }, "indeterminate" === e.variant && {
strokeDasharray: "80px, 200px",
strokeDashoffset: 0
}), ({ ownerState: e }) => "indeterminate" === e.variant && !e.disableShrink && Ht(Pu || (Pu = Nu`
animation: ${0} 1.4s ease-in-out infinite;
`), Du));
var Bu = react.forwardRef(function(t, r) {
const n = yi({
props: t,
name: "MuiCircularProgress"
}), { className: o, color: i = "primary", disableShrink: s = !1, size: a = 40, style: l, thickness: c = 3.6, value: u = 0, variant: p = "indeterminate" } = n, d = w(n, Ru), f = _({}, n, {
color: i,
disableShrink: s,
size: a,
thickness: c,
value: u,
variant: p
}), h = ((e) => {
const { classes: t, variant: r, color: n, disableShrink: o } = e;
return ne({
root: [
"root",
r,
`color${bi(n)}`
],
svg: ["svg"],
circle: [
"circle",
`circle${bi(r)}`,
o && "circleDisableShrink"
]
}, Tu, t);
})(f), m = {}, g = {}, v = {};
if ("determinate" === p) {
const e = 2 * Math.PI * ((44 - c) / 2);
m.strokeDasharray = e.toFixed(3), v["aria-valuenow"] = Math.round(u), m.strokeDashoffset = `${((100 - u) / 100 * e).toFixed(3)}px`, g.transform = "rotate(-90deg)";
}
return (0, import_jsx_runtime.jsx)(ju, _({
className: re(h.root, o),
style: _({
width: a,
height: a
}, g, l),
ownerState: f,
ref: r,
role: "progressbar"
}, v, d, { children: (0, import_jsx_runtime.jsx)(Fu, {
className: h.svg,
ownerState: f,
viewBox: "22 22 44 44",
children: (0, import_jsx_runtime.jsx)($u, {
className: h.circle,
style: m,
ownerState: f,
cx: 44,
cy: 44,
r: (44 - c) / 2,
fill: "none",
strokeWidth: c
})
}) }));
});
Bu.propTypes = {
classes: ee.object,
className: ee.string,
color: ee.oneOfType([ee.oneOf([
"inherit",
"primary",
"secondary",
"error",
"info",
"success",
"warning"
]), ee.string]),
disableShrink: Ci(ee.bool, (e) => e.disableShrink && e.variant && "indeterminate" !== e.variant ? /* @__PURE__ */ new Error("MUI: You have provided the `disableShrink` prop with a variant other than `indeterminate`. This will have no effect.") : null),
size: ee.oneOfType([ee.number, ee.string]),
style: ee.object,
sx: ee.oneOfType([
ee.arrayOf(ee.oneOfType([
ee.func,
ee.object,
ee.bool
])),
ee.func,
ee.object
]),
thickness: ee.number,
value: ee.number,
variant: ee.oneOf(["determinate", "indeterminate"])
};
var zu = Bu;
var Vu = {
color: "inherit",
size: "1em"
};
var Uu = react.default.forwardRef((e, t) => react.default.createElement(zu, _objectSpread2(_objectSpread2(_objectSpread2({}, Vu), e), {}, { ref: t })));
Uu.defaultProps = Vu;
var qu = Uu;
var Wu = "rgba(0, 0, 0, 0.04)";
var Hu = "rgba(0, 0, 0, 0.08)";
var Gu = Il(Eu)(({ theme: e, ownerState: t }) => {
var _e$palette$i;
var _e$palette$i2;
var _e$palette$i3;
const { color: r, unstableToColor: n, unstableGradientAngle: o } = t, i = r && "inherit" !== r ? r : "primary", s = !!((_e$palette$i = e.palette[i]) === null || _e$palette$i === void 0 ? void 0 : _e$palette$i.__unstableTonalMain), a = ({ variant: e }) => "unstableTonal" === e && s, l = ({ variant: e }) => !!e && ![
"contained",
"outlined",
"text"
].includes(e);
return { variants: [
{
props: () => t.loading && "center" === t.loadingPosition,
style: {
"&.MuiButtonBase-root": { "&, &:hover, &:focus, &:active": { color: "transparent" } },
"& .MuiButton-loadingWrapper": {
display: "contents",
"& .MuiButton-loadingIndicator": {
display: "flex",
position: "absolute",
left: "50%",
transform: "translateX(-50%)",
color: e.palette.action.disabled
}
}
}
},
{
props: (e) => a(e) && "inherit" !== e.color && !e.disabled,
style: {
background: (_e$palette$i2 = e.palette[i]) === null || _e$palette$i2 === void 0 ? void 0 : _e$palette$i2.__unstableTonalMain,
color: e.palette[i].main,
"&:hover": { backgroundColor: (_e$palette$i3 = e.palette[i]) === null || _e$palette$i3 === void 0 ? void 0 : _e$palette$i3.__unstableTonalDark }
}
},
{
props: (e) => e.disabled && l(e),
style: {
background: e.palette.action.disabledBackground,
color: e.palette.action.disabled
}
},
{
props: (e) => a(e) && "inherit" === e.color,
style: {
background: Wu,
color: "inherit",
"&:hover": { backgroundColor: Hu }
}
},
{
props: (e) => "unstableTonal" === e.variant && !s,
style: {
background: "#ff0000",
color: "#ff0000"
}
},
{
props: (e) => "small" === e.size && l(e),
style: {
padding: "4px 10px",
fontSize: e.typography.pxToRem(13)
}
},
{
props: (e) => "large" === e.size && l(e),
style: {
padding: "8px 22px",
fontSize: e.typography.pxToRem(15)
}
},
{
props: (e) => (({ variant: e }) => "unstableGradient" === e && s)(e) && !e.disabled,
style: Qu(e, o, r, n)
},
{
props: (e) => "unstableGradient" === e.variant && !s,
style: {
background: "#ff0000",
color: "#ff0000"
}
}
] };
});
var Ku = (e = "primary", t = "text", r) => {
if (e) return "inherit" === e ? "inherit" : "contained" === t ? `${e}.contrastText` : "unstableTonal" === t ? `${e}.main` : r.palette.primary.__unstableAccessibleMain && pc.includes(e) ? `${e}.${gl}` : `${e}.main`;
};
var Yu = {
loading: !1,
loadingIndicator: react.default.createElement(qu, {
color: "inherit",
size: 16
}),
loadingPosition: "center"
};
var Zu = react.default.forwardRef((e, t) => {
const r = _objectSpread2(_objectSpread2({}, Yu), e), n = react.default.useContext(yu), i = Ss(), _ref = function(e) {
const { loading: t, loadingPosition: r, loadingIndicator: n } = e, i = _objectWithoutProperties(e, _excluded3);
if (!t) return i;
switch (r) {
case "start":
i.startIcon = n;
break;
case "end":
i.endIcon = n;
break;
case "center": i.children = react.default.createElement(Ju, { loadingIndicator: n }, e.children);
}
return _objectSpread2(_objectSpread2({}, i), {}, { disabled: !0 });
}(r), { sx: s = {}, unstableToColor: a, unstableGradientAngle: l } = _ref, c = _objectWithoutProperties(_ref, _excluded2), u = _objectSpread2(_objectSpread2({}, c), {}, {
loading: r.loading,
loadingPosition: r.loadingPosition,
loadingIndicator: r.loadingIndicator,
unstableToColor: a,
unstableGradientAngle: l
});
let p = {};
const d = c.href ? ml : "&:hover,&:focus,&:active";
const f = c.color || (n === null || n === void 0 ? void 0 : n.color);
const h = c.variant || (n === null || n === void 0 ? void 0 : n.variant);
return p = { [d]: { color: Ku(f, h, i) } }, react.default.createElement(Gu, _objectSpread2(_objectSpread2({}, c), {}, {
color: f,
variant: h,
sx: _objectSpread2(_objectSpread2({}, p), s),
ref: t,
ownerState: u
}));
});
var Xu = Zu;
function Ju({ loadingIndicator: e, children: t }) {
return react.default.createElement(react.default.Fragment, null, react.default.createElement("div", { className: "MuiButton-loadingWrapper" }, react.default.createElement("div", { className: "MuiButton-loadingIndicator" }, e)), t);
}
function Qu(e, t, r, n) {
if (!r) return;
const o = r;
const i = function(e, t) {
if (void 0 !== t) return t;
const { __unstableGradientAngle: r } = e.palette.action;
return void 0 !== r ? r : 125;
}(e, t);
let { main: s, __unstableTonalMain: a, __unstableTonalDark: l } = e.palette[o] || {};
"inherit" === r && (s = "inherit", a = Wu, l = Hu);
const c = [a];
const u = [l];
if (n) {
const t = n, { __unstableTonalMain: r, __unstableTonalDark: o } = e.palette[t];
c.push(r), u.push(o);
}
return {
color: s,
backgroundImage: `linear-gradient( ${i}deg, ${c.join(", ")} )`,
"&:hover": { backgroundImage: `linear-gradient( ${i}deg, ${u.join(",")} )` }
};
}
Zu.defaultProps = Yu;
var ep = (e) => "string" == typeof e;
var tp = () => {
let e;
let t;
const r = new Promise((r, n) => {
e = r, t = n;
});
return r.resolve = e, r.reject = t, r;
};
var rp = (e) => null == e ? "" : "" + e;
var np = /###/g;
var op = (e) => e && e.indexOf("###") > -1 ? e.replace(np, ".") : e;
var ip = (e) => !e || ep(e);
var sp = (e, t, r) => {
const n = ep(t) ? t.split(".") : t;
let o = 0;
for (; o < n.length - 1;) {
if (ip(e)) return {};
const t = op(n[o]);
!e[t] && r && (e[t] = new r()), e = Object.prototype.hasOwnProperty.call(e, t) ? e[t] : {}, ++o;
}
return ip(e) ? {} : {
obj: e,
k: op(n[o])
};
};
var ap = (e, t, r) => {
const { obj: n, k: o } = sp(e, t, Object);
if (void 0 !== n || 1 === t.length) return void (n[o] = r);
let i = t[t.length - 1];
let s = t.slice(0, t.length - 1);
let a = sp(e, s, Object);
for (; void 0 === a.obj && s.length;) i = `${s[s.length - 1]}.${i}`, s = s.slice(0, s.length - 1), a = sp(e, s, Object), a !== null && a !== void 0 && a.obj && void 0 !== a.obj[`${a.k}.${i}`] && (a.obj = void 0);
a.obj[`${a.k}.${i}`] = r;
};
var lp = (e, t) => {
const { obj: r, k: n } = sp(e, t);
if (r && Object.prototype.hasOwnProperty.call(r, n)) return r[n];
};
var cp = (e, t, r) => {
for (const n in t) "__proto__" !== n && "constructor" !== n && (n in e ? ep(e[n]) || e[n] instanceof String || ep(t[n]) || t[n] instanceof String ? r && (e[n] = t[n]) : cp(e[n], t[n], r) : e[n] = t[n]);
return e;
};
var up = (e) => e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g, "\\$&");
var pp = {
"&": "&",
"<": "<",
">": ">",
"\"": """,
"'": "'",
"/": "/"
};
var dp = (e) => ep(e) ? e.replace(/[&<>"'\/]/g, (e) => pp[e]) : e;
var fp = [
" ",
",",
"?",
"!",
";"
];
var hp = new class {
getRegExp(e) {
const t = this.regExpMap.get(e);
if (void 0 !== t) return t;
const r = new RegExp(e);
return this.regExpQueue.length === this.capacity && this.regExpMap.delete(this.regExpQueue.shift()), this.regExpMap.set(e, r), this.regExpQueue.push(e), r;
}
constructor(e) {
this.capacity = e, this.regExpMap = /* @__PURE__ */ new Map(), this.regExpQueue = [];
}
}(20);
var mp = (e, t, r = ".") => {
if (!e) return;
if (e[t]) {
if (!Object.prototype.hasOwnProperty.call(e, t)) return;
return e[t];
}
const n = t.split(r);
let o = e;
for (let e = 0; e < n.length;) {
if (!o || "object" != typeof o) return;
let t;
let i = "";
for (let s = e; s < n.length; ++s) if (s !== e && (i += r), i += n[s], t = o[i], void 0 !== t) {
if ([
"string",
"number",
"boolean"
].indexOf(typeof t) > -1 && s < n.length - 1) continue;
e += s - e + 1;
break;
}
o = t;
}
return o;
};
var gp = (e) => e === null || e === void 0 ? void 0 : e.replace(/_/g, "-");
var vp = {
type: "logger",
log(e) {
this.output("log", e);
},
warn(e) {
this.output("warn", e);
},
error(e) {
this.output("error", e);
},
output(e, t) {
var _console;
var _console$apply;
(_console = console) === null || _console === void 0 || (_console = _console[e]) === null || _console === void 0 || (_console$apply = _console.apply) === null || _console$apply === void 0 || _console$apply.call(_console, console, t);
}
};
var yp = class yp {
init(e, t = {}) {
this.prefix = t.prefix || "i18next:", this.logger = e || vp, this.options = t, this.debug = t.debug;
}
log(...e) {
return this.forward(e, "log", "", !0);
}
warn(...e) {
return this.forward(e, "warn", "", !0);
}
error(...e) {
return this.forward(e, "error", "");
}
deprecate(...e) {
return this.forward(e, "warn", "WARNING DEPRECATED: ", !0);
}
forward(e, t, r, n) {
return n && !this.debug ? null : (ep(e[0]) && (e[0] = `${r}${this.prefix} ${e[0]}`), this.logger[t](e));
}
create(e) {
return new yp(this.logger, _objectSpread2({ prefix: `${this.prefix}:${e}:` }, this.options));
}
clone(e) {
return (e = e || this.options).prefix = e.prefix || this.prefix, new yp(this.logger, e);
}
constructor(e, t = {}) {
this.init(e, t);
}
};
var bp = new yp();
var wp = class {
on(e, t) {
return e.split(" ").forEach((e) => {
this.observers[e] || (this.observers[e] = /* @__PURE__ */ new Map());
const r = this.observers[e].get(t) || 0;
this.observers[e].set(t, r + 1);
}), this;
}
off(e, t) {
this.observers[e] && (t ? this.observers[e].delete(t) : delete this.observers[e]);
}
emit(e, ...t) {
this.observers[e] && Array.from(this.observers[e].entries()).forEach(([e, r]) => {
for (let n = 0; n < r; n++) e(...t);
}), this.observers["*"] && Array.from(this.observers["*"].entries()).forEach(([r, n]) => {
for (let o = 0; o < n; o++) r.apply(r, [e, ...t]);
});
}
constructor() {
this.observers = {};
}
};
var _p = class extends wp {
addNamespaces(e) {
this.options.ns.indexOf(e) < 0 && this.options.ns.push(e);
}
removeNamespaces(e) {
const t = this.options.ns.indexOf(e);
t > -1 && this.options.ns.splice(t, 1);
}
getResource(e, t, r, n = {}) {
var _this$data;
const o = void 0 !== n.keySeparator ? n.keySeparator : this.options.keySeparator;
const i = void 0 !== n.ignoreJSONStructure ? n.ignoreJSONStructure : this.options.ignoreJSONStructure;
let s;
e.indexOf(".") > -1 ? s = e.split(".") : (s = [e, t], r && (Array.isArray(r) ? s.push(...r) : ep(r) && o ? s.push(...r.split(o)) : s.push(r)));
const a = lp(this.data, s);
return !a && !t && !r && e.indexOf(".") > -1 && (e = s[0], t = s[1], r = s.slice(2).join(".")), !a && i && ep(r) ? mp((_this$data = this.data) === null || _this$data === void 0 || (_this$data = _this$data[e]) === null || _this$data === void 0 ? void 0 : _this$data[t], r, o) : a;
}
addResource(e, t, r, n, o = { silent: !1 }) {
const i = void 0 !== o.keySeparator ? o.keySeparator : this.options.keySeparator;
let s = [e, t];
r && (s = s.concat(i ? r.split(i) : r)), e.indexOf(".") > -1 && (s = e.split("."), n = t, t = s[1]), this.addNamespaces(t), ap(this.data, s, n), o.silent || this.emit("added", e, t, r, n);
}
addResources(e, t, r, n = { silent: !1 }) {
for (const n in r) (ep(r[n]) || Array.isArray(r[n])) && this.addResource(e, t, n, r[n], { silent: !0 });
n.silent || this.emit("added", e, t, r);
}
addResourceBundle(e, t, r, n, o, i = {
silent: !1,
skipCopy: !1
}) {
let s = [e, t];
e.indexOf(".") > -1 && (s = e.split("."), n = r, r = t, t = s[1]), this.addNamespaces(t);
let a = lp(this.data, s) || {};
i.skipCopy || (r = JSON.parse(JSON.stringify(r))), n ? cp(a, r, o) : a = _objectSpread2(_objectSpread2({}, a), r), ap(this.data, s, a), i.silent || this.emit("added", e, t, r);
}
removeResourceBundle(e, t) {
this.hasResourceBundle(e, t) && delete this.data[e][t], this.removeNamespaces(t), this.emit("removed", e, t);
}
hasResourceBundle(e, t) {
return void 0 !== this.getResource(e, t);
}
getResourceBundle(e, t) {
return t || (t = this.options.defaultNS), this.getResource(e, t);
}
getDataByLanguage(e) {
return this.data[e];
}
hasLanguageSomeTranslations(e) {
const t = this.getDataByLanguage(e);
return !!(t && Object.keys(t) || []).find((e) => t[e] && Object.keys(t[e]).length > 0);
}
toJSON() {
return this.data;
}
constructor(e, t = {
ns: ["translation"],
defaultNS: "translation"
}) {
super(), this.data = e || {}, this.options = t, void 0 === this.options.keySeparator && (this.options.keySeparator = "."), void 0 === this.options.ignoreJSONStructure && (this.options.ignoreJSONStructure = !0);
}
};
var xp = {
processors: {},
addPostProcessor(e) {
this.processors[e.name] = e;
},
handle(e, t, r, n, o) {
return e.forEach((e) => {
var _this$processors$e$pr;
var _this$processors$e;
t = (_this$processors$e$pr = (_this$processors$e = this.processors[e]) === null || _this$processors$e === void 0 ? void 0 : _this$processors$e.process(t, r, n, o)) !== null && _this$processors$e$pr !== void 0 ? _this$processors$e$pr : t;
}), t;
}
};
var Sp = Symbol("i18next/PATH_KEY");
function kp(e, t) {
var _t$keySeparator;
var _t$nsSeparator;
const { [Sp]: r } = e(function() {
const e = [];
const t = Object.create(null);
let r;
return t.get = (n, o) => {
var _r$revoke;
return r === null || r === void 0 || (_r$revoke = r.revoke) === null || _r$revoke === void 0 || _r$revoke.call(r), o === Sp ? e : (e.push(o), r = Proxy.revocable(n, t), r.proxy);
}, Proxy.revocable(Object.create(null), t).proxy;
}()), n = (_t$keySeparator = t === null || t === void 0 ? void 0 : t.keySeparator) !== null && _t$keySeparator !== void 0 ? _t$keySeparator : ".", o = (_t$nsSeparator = t === null || t === void 0 ? void 0 : t.nsSeparator) !== null && _t$nsSeparator !== void 0 ? _t$nsSeparator : ":";
if (r.length > 1 && o) {
const e = t === null || t === void 0 ? void 0 : t.ns;
if ((e ? Array.isArray(e) ? e : [e] : []).includes(r[0])) return `${r[0]}${o}${r.slice(1).join(n)}`;
}
return r.join(n);
}
var Cp = {};
var Op = (e) => !ep(e) && "boolean" != typeof e && "number" != typeof e;
var Ep = class Ep extends wp {
changeLanguage(e) {
e && (this.language = e);
}
exists(e, t = { interpolation: {} }) {
const r = _objectSpread2({}, t);
if (null == e) return !1;
const n = this.resolve(e, r);
if (void 0 === (n === null || n === void 0 ? void 0 : n.res)) return !1;
const o = Op(n.res);
return !1 !== r.returnObjects || !o;
}
extractFromKey(e, t) {
let r = void 0 !== t.nsSeparator ? t.nsSeparator : this.options.nsSeparator;
void 0 === r && (r = ":");
const n = void 0 !== t.keySeparator ? t.keySeparator : this.options.keySeparator;
let o = t.ns || this.options.defaultNS || [];
const i = r && e.indexOf(r) > -1;
const s = !(this.options.userDefinedKeySeparator || t.keySeparator || this.options.userDefinedNsSeparator || t.nsSeparator || ((e, t, r) => {
t = t || "", r = r || "";
const n = fp.filter((e) => t.indexOf(e) < 0 && r.indexOf(e) < 0);
if (0 === n.length) return !0;
const o = hp.getRegExp(`(${n.map((e) => "?" === e ? "\\?" : e).join("|")})`);
let i = !o.test(e);
if (!i) {
const t = e.indexOf(r);
t > 0 && !o.test(e.substring(0, t)) && (i = !0);
}
return i;
})(e, r, n));
if (i && !s) {
const t = e.match(this.interpolator.nestingRegexp);
if (t && t.length > 0) return {
key: e,
namespaces: ep(o) ? [o] : o
};
const i = e.split(r);
(r !== n || r === n && this.options.ns.indexOf(i[0]) > -1) && (o = i.shift()), e = i.join(n);
}
return {
key: e,
namespaces: ep(o) ? [o] : o
};
}
translate(e, t, r) {
let n = "object" == typeof t ? _objectSpread2({}, t) : t;
if ("object" != typeof n && this.options.overloadTranslationOptionHandler && (n = this.options.overloadTranslationOptionHandler(arguments)), "object" == typeof n && (n = _objectSpread2({}, n)), n || (n = {}), null == e) return "";
"function" == typeof e && (e = kp(e, _objectSpread2(_objectSpread2({}, this.options), n))), Array.isArray(e) || (e = [String(e)]);
const o = void 0 !== n.returnDetails ? n.returnDetails : this.options.returnDetails, i = void 0 !== n.keySeparator ? n.keySeparator : this.options.keySeparator, { key: s, namespaces: a } = this.extractFromKey(e[e.length - 1], n), l = a[a.length - 1];
let c = void 0 !== n.nsSeparator ? n.nsSeparator : this.options.nsSeparator;
void 0 === c && (c = ":");
const u = n.lng || this.language;
const p = n.appendNamespaceToCIMode || this.options.appendNamespaceToCIMode;
if ("cimode" === (u === null || u === void 0 ? void 0 : u.toLowerCase())) return p ? o ? {
res: `${l}${c}${s}`,
usedKey: s,
exactUsedKey: s,
usedLng: u,
usedNS: l,
usedParams: this.getUsedParamsDetails(n)
} : `${l}${c}${s}` : o ? {
res: s,
usedKey: s,
exactUsedKey: s,
usedLng: u,
usedNS: l,
usedParams: this.getUsedParamsDetails(n)
} : s;
const d = this.resolve(e, n);
let f = d === null || d === void 0 ? void 0 : d.res;
const h = (d === null || d === void 0 ? void 0 : d.usedKey) || s;
const m = (d === null || d === void 0 ? void 0 : d.exactUsedKey) || s;
const g = void 0 !== n.joinArrays ? n.joinArrays : this.options.joinArrays;
const v = !this.i18nFormat || this.i18nFormat.handleAsObject;
const y = void 0 !== n.count && !ep(n.count);
const b = Ep.hasDefaultValue(n);
const w = y ? this.pluralResolver.getSuffix(u, n.count, n) : "";
const _ = n.ordinal && y ? this.pluralResolver.getSuffix(u, n.count, { ordinal: !1 }) : "";
const x = y && !n.ordinal && 0 === n.count;
const S = x && n[`defaultValue${this.options.pluralSeparator}zero`] || n[`defaultValue${w}`] || n[`defaultValue${_}`] || n.defaultValue;
let k = f;
v && !f && b && (k = S);
const C = Op(k);
const O = Object.prototype.toString.apply(k);
if (!(v && k && C && [
"[object Number]",
"[object Function]",
"[object RegExp]"
].indexOf(O) < 0) || ep(g) && Array.isArray(k)) if (v && ep(g) && Array.isArray(f)) f = f.join(g), f && (f = this.extendTranslation(f, e, n, r));
else {
let t = !1;
let o = !1;
!this.isValidLookup(f) && b && (t = !0, f = S), this.isValidLookup(f) || (o = !0, f = s);
const a = (n.missingKeyNoValueFallbackToKey || this.options.missingKeyNoValueFallbackToKey) && o ? void 0 : f;
const p = b && S !== f && this.options.updateMissing;
if (o || t || p) {
if (this.logger.log(p ? "updateKey" : "missingKey", u, l, s, p ? S : f), i) {
const e = this.resolve(s, _objectSpread2(_objectSpread2({}, n), {}, { keySeparator: !1 }));
e && e.res && this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.");
}
let e = [];
const t = this.languageUtils.getFallbackCodes(this.options.fallbackLng, n.lng || this.language);
if ("fallback" === this.options.saveMissingTo && t && t[0]) for (let r = 0; r < t.length; r++) e.push(t[r]);
else "all" === this.options.saveMissingTo ? e = this.languageUtils.toResolveHierarchy(n.lng || this.language) : e.push(n.lng || this.language);
const r = (e, t, r) => {
var _this$backendConnecto;
const o = b && r !== f ? r : a;
this.options.missingKeyHandler ? this.options.missingKeyHandler(e, l, t, o, p, n) : (_this$backendConnecto = this.backendConnector) !== null && _this$backendConnecto !== void 0 && _this$backendConnecto.saveMissing && this.backendConnector.saveMissing(e, l, t, o, p, n), this.emit("missingKey", e, l, t, f);
};
this.options.saveMissing && (this.options.saveMissingPlurals && y ? e.forEach((e) => {
const t = this.pluralResolver.getSuffixes(e, n);
x && n[`defaultValue${this.options.pluralSeparator}zero`] && t.indexOf(`${this.options.pluralSeparator}zero`) < 0 && t.push(`${this.options.pluralSeparator}zero`), t.forEach((t) => {
r([e], s + t, n[`defaultValue${t}`] || S);
});
}) : r(e, s, S));
}
f = this.extendTranslation(f, e, n, d, r), o && f === s && this.options.appendNamespaceToMissingKey && (f = `${l}${c}${s}`), (o || t) && this.options.parseMissingKeyHandler && (f = this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey ? `${l}${c}${s}` : s, t ? f : void 0, n));
}
else {
if (!n.returnObjects && !this.options.returnObjects) {
this.options.returnedObjectHandler || this.logger.warn("accessing an object - but returnObjects options is not enabled!");
const e = this.options.returnedObjectHandler ? this.options.returnedObjectHandler(h, k, _objectSpread2(_objectSpread2({}, n), {}, { ns: a })) : `key '${s} (${this.language})' returned an object instead of string.`;
return o ? (d.res = e, d.usedParams = this.getUsedParamsDetails(n), d) : e;
}
if (i) {
const e = Array.isArray(k);
const t = e ? [] : {};
const r = e ? m : h;
for (const e in k) if (Object.prototype.hasOwnProperty.call(k, e)) {
const o = `${r}${i}${e}`;
t[e] = b && !f ? this.translate(o, _objectSpread2(_objectSpread2({}, n), {}, {
defaultValue: Op(S) ? S[e] : void 0,
joinArrays: !1,
ns: a
})) : this.translate(o, _objectSpread2(_objectSpread2({}, n), {}, {
joinArrays: !1,
ns: a
})), t[e] === o && (t[e] = k[e]);
}
f = t;
}
}
return o ? (d.res = f, d.usedParams = this.getUsedParamsDetails(n), d) : f;
}
extendTranslation(e, t, r, n, o) {
var _this$i18nFormat;
if ((_this$i18nFormat = this.i18nFormat) === null || _this$i18nFormat === void 0 ? void 0 : _this$i18nFormat.parse) e = this.i18nFormat.parse(e, _objectSpread2(_objectSpread2({}, this.options.interpolation.defaultVariables), r), r.lng || this.language || n.usedLng, n.usedNS, n.usedKey, { resolved: n });
else if (!r.skipInterpolation) {
var _r$interpolation;
r.interpolation && this.interpolator.init(_objectSpread2(_objectSpread2({}, r), {}, { interpolation: _objectSpread2(_objectSpread2({}, this.options.interpolation), r.interpolation) }));
const i = ep(e) && (void 0 !== (r === null || r === void 0 || (_r$interpolation = r.interpolation) === null || _r$interpolation === void 0 ? void 0 : _r$interpolation.skipOnVariables) ? r.interpolation.skipOnVariables : this.options.interpolation.skipOnVariables);
let s;
if (i) {
const t = e.match(this.interpolator.nestingRegexp);
s = t && t.length;
}
let a = r.replace && !ep(r.replace) ? r.replace : r;
if (this.options.interpolation.defaultVariables && (a = _objectSpread2(_objectSpread2({}, this.options.interpolation.defaultVariables), a)), e = this.interpolator.interpolate(e, a, r.lng || this.language || n.usedLng, r), i) {
const t = e.match(this.interpolator.nestingRegexp);
s < (t && t.length) && (r.nest = !1);
}
!r.lng && n && n.res && (r.lng = this.language || n.usedLng), !1 !== r.nest && (e = this.interpolator.nest(e, (...e) => (o === null || o === void 0 ? void 0 : o[0]) !== e[0] || r.context ? this.translate(...e, t) : (this.logger.warn(`It seems you are nesting recursively key: ${e[0]} in key: ${t[0]}`), null), r)), r.interpolation && this.interpolator.reset();
}
const i = r.postProcess || this.options.postProcess;
const s = ep(i) ? [i] : i;
return null != e && s !== null && s !== void 0 && s.length && !1 !== r.applyPostProcessor && (e = xp.handle(s, e, t, this.options && this.options.postProcessPassResolved ? _objectSpread2({ i18nResolved: _objectSpread2(_objectSpread2({}, n), {}, { usedParams: this.getUsedParamsDetails(r) }) }, r) : r, this)), e;
}
resolve(e, t = {}) {
let r;
let n;
let o;
let i;
let s;
return ep(e) && (e = [e]), e.forEach((e) => {
if (this.isValidLookup(r)) return;
const a = this.extractFromKey(e, t);
const l = a.key;
n = l;
let c = a.namespaces;
this.options.fallbackNS && (c = c.concat(this.options.fallbackNS));
const u = void 0 !== t.count && !ep(t.count);
const p = u && !t.ordinal && 0 === t.count;
const d = void 0 !== t.context && (ep(t.context) || "number" == typeof t.context) && "" !== t.context;
const f = t.lngs ? t.lngs : this.languageUtils.toResolveHierarchy(t.lng || this.language, t.fallbackLng);
c.forEach((e) => {
var _this$utils;
var _this$utils2;
this.isValidLookup(r) || (s = e, Cp[`${f[0]}-${e}`] || !((_this$utils = this.utils) === null || _this$utils === void 0 ? void 0 : _this$utils.hasLoadedNamespace) || (_this$utils2 = this.utils) !== null && _this$utils2 !== void 0 && _this$utils2.hasLoadedNamespace(s) || (Cp[`${f[0]}-${e}`] = !0, this.logger.warn(`key "${n}" for languages "${f.join(", ")}" won't get resolved as namespace "${s}" was not yet loaded`, "This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")), f.forEach((n) => {
var _this$i18nFormat2;
if (this.isValidLookup(r)) return;
i = n;
const s = [l];
if ((_this$i18nFormat2 = this.i18nFormat) === null || _this$i18nFormat2 === void 0 ? void 0 : _this$i18nFormat2.addLookupKeys) this.i18nFormat.addLookupKeys(s, l, n, e, t);
else {
let e;
u && (e = this.pluralResolver.getSuffix(n, t.count, t));
const r = `${this.options.pluralSeparator}zero`;
const o = `${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;
if (u && (t.ordinal && 0 === e.indexOf(o) && s.push(l + e.replace(o, this.options.pluralSeparator)), s.push(l + e), p && s.push(l + r)), d) {
const n = `${l}${this.options.contextSeparator || "_"}${t.context}`;
s.push(n), u && (t.ordinal && 0 === e.indexOf(o) && s.push(n + e.replace(o, this.options.pluralSeparator)), s.push(n + e), p && s.push(n + r));
}
}
let a;
for (; a = s.pop();) this.isValidLookup(r) || (o = a, r = this.getResource(n, e, a, t));
}));
});
}), {
res: r,
usedKey: n,
exactUsedKey: o,
usedLng: i,
usedNS: s
};
}
isValidLookup(e) {
return !(void 0 === e || !this.options.returnNull && null === e || !this.options.returnEmptyString && "" === e);
}
getResource(e, t, r, n = {}) {
var _this$i18nFormat3;
return ((_this$i18nFormat3 = this.i18nFormat) === null || _this$i18nFormat3 === void 0 ? void 0 : _this$i18nFormat3.getResource) ? this.i18nFormat.getResource(e, t, r, n) : this.resourceStore.getResource(e, t, r, n);
}
getUsedParamsDetails(e = {}) {
const t = [
"defaultValue",
"ordinal",
"context",
"replace",
"lng",
"lngs",
"fallbackLng",
"ns",
"keySeparator",
"nsSeparator",
"returnObjects",
"returnDetails",
"joinArrays",
"postProcess",
"interpolation"
];
const r = e.replace && !ep(e.replace);
let n = r ? e.replace : e;
if (r && void 0 !== e.count && (n.count = e.count), this.options.interpolation.defaultVariables && (n = _objectSpread2(_objectSpread2({}, this.options.interpolation.defaultVariables), n)), !r) {
n = _objectSpread2({}, n);
for (const e of t) delete n[e];
}
return n;
}
static hasDefaultValue(e) {
for (const t in e) if (Object.prototype.hasOwnProperty.call(e, t) && "defaultValue" === t.substring(0, 12) && void 0 !== e[t]) return !0;
return !1;
}
constructor(e, t = {}) {
var r;
var n;
super(), r = e, n = this, [
"resourceStore",
"languageUtils",
"pluralResolver",
"interpolator",
"backendConnector",
"i18nFormat",
"utils"
].forEach((e) => {
r[e] && (n[e] = r[e]);
}), this.options = t, void 0 === this.options.keySeparator && (this.options.keySeparator = "."), this.logger = bp.create("translator");
}
};
var Tp = class {
getScriptPartFromCode(e) {
if (!(e = gp(e)) || e.indexOf("-") < 0) return null;
const t = e.split("-");
return 2 === t.length ? null : (t.pop(), "x" === t[t.length - 1].toLowerCase() ? null : this.formatLanguageCode(t.join("-")));
}
getLanguagePartFromCode(e) {
if (!(e = gp(e)) || e.indexOf("-") < 0) return e;
const t = e.split("-");
return this.formatLanguageCode(t[0]);
}
formatLanguageCode(e) {
if (ep(e) && e.indexOf("-") > -1) {
let t;
try {
t = Intl.getCanonicalLocales(e)[0];
} catch (e) {}
return t && this.options.lowerCaseLng && (t = t.toLowerCase()), t || (this.options.lowerCaseLng ? e.toLowerCase() : e);
}
return this.options.cleanCode || this.options.lowerCaseLng ? e.toLowerCase() : e;
}
isSupportedCode(e) {
return ("languageOnly" === this.options.load || this.options.nonExplicitSupportedLngs) && (e = this.getLanguagePartFromCode(e)), !this.supportedLngs || !this.supportedLngs.length || this.supportedLngs.indexOf(e) > -1;
}
getBestMatchFromCodes(e) {
if (!e) return null;
let t;
return e.forEach((e) => {
if (t) return;
const r = this.formatLanguageCode(e);
this.options.supportedLngs && !this.isSupportedCode(r) || (t = r);
}), !t && this.options.supportedLngs && e.forEach((e) => {
if (t) return;
const r = this.getScriptPartFromCode(e);
if (this.isSupportedCode(r)) return t = r;
const n = this.getLanguagePartFromCode(e);
if (this.isSupportedCode(n)) return t = n;
t = this.options.supportedLngs.find((e) => e === n ? e : e.indexOf("-") < 0 && n.indexOf("-") < 0 ? void 0 : e.indexOf("-") > 0 && n.indexOf("-") < 0 && e.substring(0, e.indexOf("-")) === n || 0 === e.indexOf(n) && n.length > 1 ? e : void 0);
}), t || (t = this.getFallbackCodes(this.options.fallbackLng)[0]), t;
}
getFallbackCodes(e, t) {
if (!e) return [];
if ("function" == typeof e && (e = e(t)), ep(e) && (e = [e]), Array.isArray(e)) return e;
if (!t) return e.default || [];
let r = e[t];
return r || (r = e[this.getScriptPartFromCode(t)]), r || (r = e[this.formatLanguageCode(t)]), r || (r = e[this.getLanguagePartFromCode(t)]), r || (r = e.default), r || [];
}
toResolveHierarchy(e, t) {
const r = this.getFallbackCodes((!1 === t ? [] : t) || this.options.fallbackLng || [], e);
const n = [];
const o = (e) => {
e && (this.isSupportedCode(e) ? n.push(e) : this.logger.warn(`rejecting language code not found in supportedLngs: ${e}`));
};
return ep(e) && (e.indexOf("-") > -1 || e.indexOf("_") > -1) ? ("languageOnly" !== this.options.load && o(this.formatLanguageCode(e)), "languageOnly" !== this.options.load && "currentOnly" !== this.options.load && o(this.getScriptPartFromCode(e)), "currentOnly" !== this.options.load && o(this.getLanguagePartFromCode(e))) : ep(e) && o(this.formatLanguageCode(e)), r.forEach((e) => {
n.indexOf(e) < 0 && o(this.formatLanguageCode(e));
}), n;
}
constructor(e) {
this.options = e, this.supportedLngs = this.options.supportedLngs || !1, this.logger = bp.create("languageUtils");
}
};
var Rp = {
zero: 0,
one: 1,
two: 2,
few: 3,
many: 4,
other: 5
};
var Ip = {
select: (e) => 1 === e ? "one" : "other",
resolvedOptions: () => ({ pluralCategories: ["one", "other"] })
};
var Mp = class {
clearCache() {
this.pluralRulesCache = {};
}
getRule(e, t = {}) {
const r = gp("dev" === e ? "en" : e);
const n = t.ordinal ? "ordinal" : "cardinal";
const o = JSON.stringify({
cleanedCode: r,
type: n
});
if (o in this.pluralRulesCache) return this.pluralRulesCache[o];
let i;
try {
i = new Intl.PluralRules(r, { type: n });
} catch (r) {
if ("undefined" == typeof Intl) return this.logger.error("No Intl support, please use an Intl polyfill!"), Ip;
if (!e.match(/-|_/)) return Ip;
const n = this.languageUtils.getLanguagePartFromCode(e);
i = this.getRule(n, t);
}
return this.pluralRulesCache[o] = i, i;
}
needsPlural(e, t = {}) {
let r = this.getRule(e, t);
return r || (r = this.getRule("dev", t)), (r === null || r === void 0 ? void 0 : r.resolvedOptions().pluralCategories.length) > 1;
}
getPluralFormsOfKey(e, t, r = {}) {
return this.getSuffixes(e, r).map((e) => `${t}${e}`);
}
getSuffixes(e, t = {}) {
let r = this.getRule(e, t);
return r || (r = this.getRule("dev", t)), r ? r.resolvedOptions().pluralCategories.sort((e, t) => Rp[e] - Rp[t]).map((e) => `${this.options.prepend}${t.ordinal ? `ordinal${this.options.prepend}` : ""}${e}`) : [];
}
getSuffix(e, t, r = {}) {
const n = this.getRule(e, r);
return n ? `${this.options.prepend}${r.ordinal ? `ordinal${this.options.prepend}` : ""}${n.select(t)}` : (this.logger.warn(`no plural rule found for: ${e}`), this.getSuffix("dev", t, r));
}
constructor(e, t = {}) {
this.languageUtils = e, this.options = t, this.logger = bp.create("pluralResolver"), this.pluralRulesCache = {};
}
};
var Ap = (e, t, r, n = ".", o = !0) => {
let i = ((e, t, r) => {
const n = lp(e, r);
return void 0 !== n ? n : lp(t, r);
})(e, t, r);
return !i && o && ep(r) && (i = mp(e, r, n), void 0 === i && (i = mp(t, r, n))), i;
};
var Pp = (e) => e.replace(/\$/g, "$$$$");
var Np = class {
init(e = {}) {
e.interpolation || (e.interpolation = { escapeValue: !0 });
const { escape: t, escapeValue: r, useRawValueToEscape: n, prefix: o, prefixEscaped: i, suffix: s, suffixEscaped: a, formatSeparator: l, unescapeSuffix: c, unescapePrefix: u, nestingPrefix: p, nestingPrefixEscaped: d, nestingSuffix: f, nestingSuffixEscaped: h, nestingOptionsSeparator: m, maxReplaces: g, alwaysFormat: v } = e.interpolation;
this.escape = void 0 !== t ? t : dp, this.escapeValue = void 0 === r || r, this.useRawValueToEscape = void 0 !== n && n, this.prefix = o ? up(o) : i || "{{", this.suffix = s ? up(s) : a || "}}", this.formatSeparator = l || ",", this.unescapePrefix = c ? "" : u || "-", this.unescapeSuffix = this.unescapePrefix ? "" : c || "", this.nestingPrefix = p ? up(p) : d || up("$t("), this.nestingSuffix = f ? up(f) : h || up(")"), this.nestingOptionsSeparator = m || ",", this.maxReplaces = g || 1e3, this.alwaysFormat = void 0 !== v && v, this.resetRegExp();
}
reset() {
this.options && this.init(this.options);
}
resetRegExp() {
const e = (e, t) => (e === null || e === void 0 ? void 0 : e.source) === t ? (e.lastIndex = 0, e) : new RegExp(t, "g");
this.regexp = e(this.regexp, `${this.prefix}(.+?)${this.suffix}`), this.regexpUnescape = e(this.regexpUnescape, `${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`), this.nestingRegexp = e(this.nestingRegexp, `${this.nestingPrefix}((?:[^()"']+|"[^"]*"|'[^']*'|\\((?:[^()]|"[^"]*"|'[^']*')*\\))*?)${this.nestingSuffix}`);
}
interpolate(e, t, r, n) {
var _n$interpolation;
let o;
let i;
let s;
const a = this.options && this.options.interpolation && this.options.interpolation.defaultVariables || {};
const l = (e) => {
if (e.indexOf(this.formatSeparator) < 0) {
const o = Ap(t, a, e, this.options.keySeparator, this.options.ignoreJSONStructure);
return this.alwaysFormat ? this.format(o, void 0, r, _objectSpread2(_objectSpread2(_objectSpread2({}, n), t), {}, { interpolationkey: e })) : o;
}
const o = e.split(this.formatSeparator);
const i = o.shift().trim();
const s = o.join(this.formatSeparator).trim();
return this.format(Ap(t, a, i, this.options.keySeparator, this.options.ignoreJSONStructure), s, r, _objectSpread2(_objectSpread2(_objectSpread2({}, n), t), {}, { interpolationkey: i }));
};
this.resetRegExp();
const c = (n === null || n === void 0 ? void 0 : n.missingInterpolationHandler) || this.options.missingInterpolationHandler;
const u = void 0 !== (n === null || n === void 0 || (_n$interpolation = n.interpolation) === null || _n$interpolation === void 0 ? void 0 : _n$interpolation.skipOnVariables) ? n.interpolation.skipOnVariables : this.options.interpolation.skipOnVariables;
return [{
regex: this.regexpUnescape,
safeValue: (e) => Pp(e)
}, {
regex: this.regexp,
safeValue: (e) => this.escapeValue ? Pp(this.escape(e)) : Pp(e)
}].forEach((t) => {
for (s = 0; o = t.regex.exec(e);) {
const r = o[1].trim();
if (i = l(r), void 0 === i) if ("function" == typeof c) {
const t = c(e, o, n);
i = ep(t) ? t : "";
} else if (n && Object.prototype.hasOwnProperty.call(n, r)) i = "";
else {
if (u) {
i = o[0];
continue;
}
this.logger.warn(`missed to pass in variable ${r} for interpolating ${e}`), i = "";
}
else ep(i) || this.useRawValueToEscape || (i = rp(i));
const a = t.safeValue(i);
if (e = e.replace(o[0], a), u ? (t.regex.lastIndex += i.length, t.regex.lastIndex -= o[0].length) : t.regex.lastIndex = 0, s++, s >= this.maxReplaces) break;
}
}), e;
}
nest(e, t, r = {}) {
let n;
let o;
let i;
const s = (e, t) => {
var _s$length;
var _a$length;
const r = this.nestingOptionsSeparator;
if (e.indexOf(r) < 0) return e;
const n = e.split(new RegExp(`${up(r)}[ ]*{`));
let o = `{${n[1]}`;
e = n[0], o = this.interpolate(o, i);
const s = o.match(/'/g);
const a = o.match(/"/g);
(((_s$length = s === null || s === void 0 ? void 0 : s.length) !== null && _s$length !== void 0 ? _s$length : 0) % 2 == 0 && !a || ((_a$length = a === null || a === void 0 ? void 0 : a.length) !== null && _a$length !== void 0 ? _a$length : 0) % 2 != 0) && (o = o.replace(/'/g, "\""));
try {
i = JSON.parse(o), t && (i = _objectSpread2(_objectSpread2({}, t), i));
} catch (t) {
return this.logger.warn(`failed parsing options string in nesting for key ${e}`, t), `${e}${r}${o}`;
}
return i.defaultValue && i.defaultValue.indexOf(this.prefix) > -1 && delete i.defaultValue, e;
};
for (; n = this.nestingRegexp.exec(e);) {
let a = [];
i = _objectSpread2({}, r), i = i.replace && !ep(i.replace) ? i.replace : i, i.applyPostProcessor = !1, delete i.defaultValue;
const l = /{.*}/.test(n[1]) ? n[1].lastIndexOf("}") + 1 : n[1].indexOf(this.formatSeparator);
if (-1 !== l && (a = n[1].slice(l).split(this.formatSeparator).map((e) => e.trim()).filter(Boolean), n[1] = n[1].slice(0, l)), o = t(s.call(this, n[1].trim(), i), i), o && n[0] === e && !ep(o)) return o;
ep(o) || (o = rp(o)), o || (this.logger.warn(`missed to resolve ${n[1]} for nesting ${e}`), o = ""), a.length && (o = a.reduce((e, t) => this.format(e, t, r.lng, _objectSpread2(_objectSpread2({}, r), {}, { interpolationkey: n[1].trim() })), o.trim())), e = e.replace(n[0], o), this.regexp.lastIndex = 0;
}
return e;
}
constructor(e = {}) {
var _e$interpolation;
this.logger = bp.create("interpolator"), this.options = e, this.format = (e === null || e === void 0 || (_e$interpolation = e.interpolation) === null || _e$interpolation === void 0 ? void 0 : _e$interpolation.format) || ((e) => e), this.init(e);
}
};
var Lp = (e) => {
const t = {};
return (r, n, o) => {
let i = o;
o && o.interpolationkey && o.formatParams && o.formatParams[o.interpolationkey] && o[o.interpolationkey] && (i = _objectSpread2(_objectSpread2({}, i), {}, { [o.interpolationkey]: void 0 }));
const s = n + JSON.stringify(i);
let a = t[s];
return a || (a = e(gp(n), o), t[s] = a), a(r);
};
};
var Dp = (e) => (t, r, n) => e(gp(r), n)(t);
var jp = class {
init(e, t = { interpolation: {} }) {
this.formatSeparator = t.interpolation.formatSeparator || ",";
const r = t.cacheInBuiltFormats ? Lp : Dp;
this.formats = {
number: r((e, t) => {
const r = new Intl.NumberFormat(e, _objectSpread2({}, t));
return (e) => r.format(e);
}),
currency: r((e, t) => {
const r = new Intl.NumberFormat(e, _objectSpread2(_objectSpread2({}, t), {}, { style: "currency" }));
return (e) => r.format(e);
}),
datetime: r((e, t) => {
const r = new Intl.DateTimeFormat(e, _objectSpread2({}, t));
return (e) => r.format(e);
}),
relativetime: r((e, t) => {
const r = new Intl.RelativeTimeFormat(e, _objectSpread2({}, t));
return (e) => r.format(e, t.range || "day");
}),
list: r((e, t) => {
const r = new Intl.ListFormat(e, _objectSpread2({}, t));
return (e) => r.format(e);
})
};
}
add(e, t) {
this.formats[e.toLowerCase().trim()] = t;
}
addCached(e, t) {
this.formats[e.toLowerCase().trim()] = Lp(t);
}
format(e, t, r, n = {}) {
const o = t.split(this.formatSeparator);
if (o.length > 1 && o[0].indexOf("(") > 1 && o[0].indexOf(")") < 0 && o.find((e) => e.indexOf(")") > -1)) {
const e = o.findIndex((e) => e.indexOf(")") > -1);
o[0] = [o[0], ...o.splice(1, e)].join(this.formatSeparator);
}
return o.reduce((e, t) => {
const { formatName: o, formatOptions: i } = ((e) => {
let t = e.toLowerCase().trim();
const r = {};
if (e.indexOf("(") > -1) {
const n = e.split("(");
t = n[0].toLowerCase().trim();
const o = n[1].substring(0, n[1].length - 1);
"currency" === t && o.indexOf(":") < 0 ? r.currency || (r.currency = o.trim()) : "relativetime" === t && o.indexOf(":") < 0 ? r.range || (r.range = o.trim()) : o.split(";").forEach((e) => {
if (e) {
const [t, ...n] = e.split(":"), o = n.join(":").trim().replace(/^'+|'+$/g, ""), i = t.trim();
r[i] || (r[i] = o), "false" === o && (r[i] = !1), "true" === o && (r[i] = !0), isNaN(o) || (r[i] = parseInt(o, 10));
}
});
}
return {
formatName: t,
formatOptions: r
};
})(t);
if (this.formats[o]) {
let t = e;
try {
var _n$formatParams;
const s = (n === null || n === void 0 || (_n$formatParams = n.formatParams) === null || _n$formatParams === void 0 ? void 0 : _n$formatParams[n.interpolationkey]) || {};
const a = s.locale || s.lng || n.locale || n.lng || r;
t = this.formats[o](e, a, _objectSpread2(_objectSpread2(_objectSpread2({}, i), n), s));
} catch (e) {
this.logger.warn(e);
}
return t;
}
return this.logger.warn(`there was no format function for ${o}`), e;
}, e);
}
constructor(e = {}) {
this.logger = bp.create("formatter"), this.options = e, this.init(e);
}
};
var Fp = class extends wp {
queueLoad(e, t, r, n) {
const o = {};
const i = {};
const s = {};
const a = {};
return e.forEach((e) => {
let n = !0;
t.forEach((t) => {
const s = `${e}|${t}`;
!r.reload && this.store.hasResourceBundle(e, t) ? this.state[s] = 2 : this.state[s] < 0 || (1 === this.state[s] ? void 0 === i[s] && (i[s] = !0) : (this.state[s] = 1, n = !1, void 0 === i[s] && (i[s] = !0), void 0 === o[s] && (o[s] = !0), void 0 === a[t] && (a[t] = !0)));
}), n || (s[e] = !0);
}), (Object.keys(o).length || Object.keys(i).length) && this.queue.push({
pending: i,
pendingCount: Object.keys(i).length,
loaded: {},
errors: [],
callback: n
}), {
toLoad: Object.keys(o),
pending: Object.keys(i),
toLoadLanguages: Object.keys(s),
toLoadNamespaces: Object.keys(a)
};
}
loaded(e, t, r) {
const n = e.split("|");
const o = n[0];
const i = n[1];
t && this.emit("failedLoading", o, i, t), !t && r && this.store.addResourceBundle(o, i, r, void 0, void 0, { skipCopy: !0 }), this.state[e] = t ? -1 : 2, t && r && (this.state[e] = 0);
const s = {};
this.queue.forEach((r) => {
((e, t, r) => {
const { obj: n, k: o } = sp(e, t, Object);
n[o] = n[o] || [], n[o].push(r);
})(r.loaded, [o], i), ((e, t) => {
void 0 !== e.pending[t] && (delete e.pending[t], e.pendingCount--);
})(r, e), t && r.errors.push(t), 0 !== r.pendingCount || r.done || (Object.keys(r.loaded).forEach((e) => {
s[e] || (s[e] = {});
const t = r.loaded[e];
t.length && t.forEach((t) => {
void 0 === s[e][t] && (s[e][t] = !0);
});
}), r.done = !0, r.errors.length ? r.callback(r.errors) : r.callback());
}), this.emit("loaded", s), this.queue = this.queue.filter((e) => !e.done);
}
read(e, t, r, n = 0, o = this.retryTimeout, i) {
if (!e.length) return i(null, {});
if (this.readingCalls >= this.maxParallelReads) return void this.waitingReads.push({
lng: e,
ns: t,
fcName: r,
tried: n,
wait: o,
callback: i
});
this.readingCalls++;
const s = (s, a) => {
if (this.readingCalls--, this.waitingReads.length > 0) {
const e = this.waitingReads.shift();
this.read(e.lng, e.ns, e.fcName, e.tried, e.wait, e.callback);
}
s && a && n < this.maxRetries ? setTimeout(() => {
this.read.call(this, e, t, r, n + 1, 2 * o, i);
}, o) : i(s, a);
};
const a = this.backend[r].bind(this.backend);
if (2 !== a.length) return a(e, t, s);
try {
const r = a(e, t);
r && "function" == typeof r.then ? r.then((e) => s(null, e)).catch(s) : s(null, r);
} catch (e) {
s(e);
}
}
prepareLoading(e, t, r = {}, n) {
if (!this.backend) return this.logger.warn("No backend was added via i18next.use. Will not load resources."), n && n();
ep(e) && (e = this.languageUtils.toResolveHierarchy(e)), ep(t) && (t = [t]);
const o = this.queueLoad(e, t, r, n);
if (!o.toLoad.length) return o.pending.length || n(), null;
o.toLoad.forEach((e) => {
this.loadOne(e);
});
}
load(e, t, r) {
this.prepareLoading(e, t, {}, r);
}
reload(e, t, r) {
this.prepareLoading(e, t, { reload: !0 }, r);
}
loadOne(e, t = "") {
const r = e.split("|");
const n = r[0];
const o = r[1];
this.read(n, o, "read", void 0, void 0, (r, i) => {
r && this.logger.warn(`${t}loading namespace ${o} for language ${n} failed`, r), !r && i && this.logger.log(`${t}loaded namespace ${o} for language ${n}`, i), this.loaded(e, r, i);
});
}
saveMissing(e, t, r, n, o, i = {}, s = () => {}) {
var _this$services;
var _this$services2;
if (!((_this$services = this.services) === null || _this$services === void 0 || (_this$services = _this$services.utils) === null || _this$services === void 0 ? void 0 : _this$services.hasLoadedNamespace) || ((_this$services2 = this.services) === null || _this$services2 === void 0 || (_this$services2 = _this$services2.utils) === null || _this$services2 === void 0 ? void 0 : _this$services2.hasLoadedNamespace(t))) {
if (null != r && "" !== r) {
var _this$backend;
if ((_this$backend = this.backend) === null || _this$backend === void 0 ? void 0 : _this$backend.create) {
const a = _objectSpread2(_objectSpread2({}, i), {}, { isUpdate: o });
const l = this.backend.create.bind(this.backend);
if (l.length < 6) try {
let o;
o = 5 === l.length ? l(e, t, r, n, a) : l(e, t, r, n), o && "function" == typeof o.then ? o.then((e) => s(null, e)).catch(s) : s(null, o);
} catch (e) {
s(e);
}
else l(e, t, r, n, s, a);
}
e && e[0] && this.store.addResource(e[0], t, r, n);
}
} else this.logger.warn(`did not save key "${r}" as the namespace "${t}" was not yet loaded`, "This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");
}
constructor(e, t, r, n = {}) {
var _this$backend2;
var _this$backend2$init;
super(), this.backend = e, this.store = t, this.services = r, this.languageUtils = r.languageUtils, this.options = n, this.logger = bp.create("backendConnector"), this.waitingReads = [], this.maxParallelReads = n.maxParallelReads || 10, this.readingCalls = 0, this.maxRetries = n.maxRetries >= 0 ? n.maxRetries : 5, this.retryTimeout = n.retryTimeout >= 1 ? n.retryTimeout : 350, this.state = {}, this.queue = [], (_this$backend2 = this.backend) === null || _this$backend2 === void 0 || (_this$backend2$init = _this$backend2.init) === null || _this$backend2$init === void 0 || _this$backend2$init.call(_this$backend2, r, n.backend, n);
}
};
var $p = () => ({
debug: !1,
initAsync: !0,
ns: ["translation"],
defaultNS: ["translation"],
fallbackLng: ["dev"],
fallbackNS: !1,
supportedLngs: !1,
nonExplicitSupportedLngs: !1,
load: "all",
preload: !1,
simplifyPluralSuffix: !0,
keySeparator: ".",
nsSeparator: ":",
pluralSeparator: "_",
contextSeparator: "_",
partialBundledLanguages: !1,
saveMissing: !1,
updateMissing: !1,
saveMissingTo: "fallback",
saveMissingPlurals: !0,
missingKeyHandler: !1,
missingInterpolationHandler: !1,
postProcess: !1,
postProcessPassResolved: !1,
returnNull: !1,
returnEmptyString: !0,
returnObjects: !1,
joinArrays: !1,
returnedObjectHandler: !1,
parseMissingKeyHandler: !1,
appendNamespaceToMissingKey: !1,
appendNamespaceToCIMode: !1,
overloadTranslationOptionHandler: (e) => {
let t = {};
if ("object" == typeof e[1] && (t = e[1]), ep(e[1]) && (t.defaultValue = e[1]), ep(e[2]) && (t.tDescription = e[2]), "object" == typeof e[2] || "object" == typeof e[3]) {
const r = e[3] || e[2];
Object.keys(r).forEach((e) => {
t[e] = r[e];
});
}
return t;
},
interpolation: {
escapeValue: !0,
format: (e) => e,
prefix: "{{",
suffix: "}}",
formatSeparator: ",",
unescapePrefix: "-",
nestingPrefix: "$t(",
nestingSuffix: ")",
nestingOptionsSeparator: ",",
maxReplaces: 1e3,
skipOnVariables: !0
},
cacheInBuiltFormats: !0
});
var Bp = (e) => {
var _e$supportedLngs;
var _e$supportedLngs$inde;
return ep(e.ns) && (e.ns = [e.ns]), ep(e.fallbackLng) && (e.fallbackLng = [e.fallbackLng]), ep(e.fallbackNS) && (e.fallbackNS = [e.fallbackNS]), ((_e$supportedLngs = e.supportedLngs) === null || _e$supportedLngs === void 0 || (_e$supportedLngs$inde = _e$supportedLngs.indexOf) === null || _e$supportedLngs$inde === void 0 ? void 0 : _e$supportedLngs$inde.call(_e$supportedLngs, "cimode")) < 0 && (e.supportedLngs = e.supportedLngs.concat(["cimode"])), "boolean" == typeof e.initImmediate && (e.initAsync = e.initImmediate), e;
};
var zp = () => {};
var Vp = "__i18next_supportNoticeShown";
var Up = class Up extends wp {
init(e = {}, t) {
var _n$modules;
var _n$modules2;
var _n$options;
var _n$options2;
var _n$options3;
this.isInitializing = !0, "function" == typeof e && (t = e, e = {}), null == e.defaultNS && e.ns && (ep(e.ns) ? e.defaultNS = e.ns : e.ns.indexOf("translation") < 0 && (e.defaultNS = e.ns[0]));
const r = $p();
var n;
this.options = _objectSpread2(_objectSpread2(_objectSpread2({}, r), this.options), Bp(e)), this.options.interpolation = _objectSpread2(_objectSpread2({}, r.interpolation), this.options.interpolation), void 0 !== e.keySeparator && (this.options.userDefinedKeySeparator = e.keySeparator), void 0 !== e.nsSeparator && (this.options.userDefinedNsSeparator = e.nsSeparator), "function" != typeof this.options.overloadTranslationOptionHandler && (this.options.overloadTranslationOptionHandler = r.overloadTranslationOptionHandler), !1 === this.options.showSupportNotice || (n = this, (n === null || n === void 0 || (_n$modules = n.modules) === null || _n$modules === void 0 || (_n$modules = _n$modules.backend) === null || _n$modules === void 0 || (_n$modules = _n$modules.name) === null || _n$modules === void 0 ? void 0 : _n$modules.indexOf("Locize")) > 0 || (n === null || n === void 0 || (_n$modules2 = n.modules) === null || _n$modules2 === void 0 || (_n$modules2 = _n$modules2.backend) === null || _n$modules2 === void 0 || (_n$modules2 = _n$modules2.constructor) === null || _n$modules2 === void 0 || (_n$modules2 = _n$modules2.name) === null || _n$modules2 === void 0 ? void 0 : _n$modules2.indexOf("Locize")) > 0 || n !== null && n !== void 0 && (_n$options = n.options) !== null && _n$options !== void 0 && (_n$options = _n$options.backend) !== null && _n$options !== void 0 && _n$options.backends && n.options.backend.backends.some((e) => {
var _e$name;
var _e$constructor;
return (e === null || e === void 0 || (_e$name = e.name) === null || _e$name === void 0 ? void 0 : _e$name.indexOf("Locize")) > 0 || (e === null || e === void 0 || (_e$constructor = e.constructor) === null || _e$constructor === void 0 || (_e$constructor = _e$constructor.name) === null || _e$constructor === void 0 ? void 0 : _e$constructor.indexOf("Locize")) > 0;
}) || n !== null && n !== void 0 && (_n$options2 = n.options) !== null && _n$options2 !== void 0 && (_n$options2 = _n$options2.backend) !== null && _n$options2 !== void 0 && _n$options2.projectId || n !== null && n !== void 0 && (_n$options3 = n.options) !== null && _n$options3 !== void 0 && (_n$options3 = _n$options3.backend) !== null && _n$options3 !== void 0 && _n$options3.backendOptions && n.options.backend.backendOptions.some((e) => e === null || e === void 0 ? void 0 : e.projectId)) || "undefined" != typeof globalThis && globalThis[Vp] || ("undefined" != typeof console && void 0 !== console.info && console.info("🌐 i18next is maintained with support from Locize — consider powering your project with managed localization (AI, CDN, integrations): https://locize.com 💙"), "undefined" != typeof globalThis && (globalThis[Vp] = !0));
const o = (e) => e ? "function" == typeof e ? new e() : e : null;
if (!this.options.isClone) {
let e;
this.modules.logger ? bp.init(o(this.modules.logger), this.options) : bp.init(null, this.options), e = this.modules.formatter ? this.modules.formatter : jp;
const t = new Tp(this.options);
this.store = new _p(this.options.resources, this.options);
const n = this.services;
n.logger = bp, n.resourceStore = this.store, n.languageUtils = t, n.pluralResolver = new Mp(t, {
prepend: this.options.pluralSeparator,
simplifyPluralSuffix: this.options.simplifyPluralSuffix
}), this.options.interpolation.format && this.options.interpolation.format !== r.interpolation.format && this.logger.deprecate("init: you are still using the legacy format function, please use the new approach: https://www.i18next.com/translation-function/formatting"), !e || this.options.interpolation.format && this.options.interpolation.format !== r.interpolation.format || (n.formatter = o(e), n.formatter.init && n.formatter.init(n, this.options), this.options.interpolation.format = n.formatter.format.bind(n.formatter)), n.interpolator = new Np(this.options), n.utils = { hasLoadedNamespace: this.hasLoadedNamespace.bind(this) }, n.backendConnector = new Fp(o(this.modules.backend), n.resourceStore, n, this.options), n.backendConnector.on("*", (e, ...t) => {
this.emit(e, ...t);
}), this.modules.languageDetector && (n.languageDetector = o(this.modules.languageDetector), n.languageDetector.init && n.languageDetector.init(n, this.options.detection, this.options)), this.modules.i18nFormat && (n.i18nFormat = o(this.modules.i18nFormat), n.i18nFormat.init && n.i18nFormat.init(this)), this.translator = new Ep(this.services, this.options), this.translator.on("*", (e, ...t) => {
this.emit(e, ...t);
}), this.modules.external.forEach((e) => {
e.init && e.init(this);
});
}
if (this.format = this.options.interpolation.format, t || (t = zp), this.options.fallbackLng && !this.services.languageDetector && !this.options.lng) {
const e = this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);
e.length > 0 && "dev" !== e[0] && (this.options.lng = e[0]);
}
this.services.languageDetector || this.options.lng || this.logger.warn("init: no languageDetector is used and no lng is defined"), [
"getResource",
"hasResourceBundle",
"getResourceBundle",
"getDataByLanguage"
].forEach((e) => {
this[e] = (...t) => this.store[e](...t);
}), [
"addResource",
"addResources",
"addResourceBundle",
"removeResourceBundle"
].forEach((e) => {
this[e] = (...t) => (this.store[e](...t), this);
});
const i = tp();
const s = () => {
const e = (e, r) => {
this.isInitializing = !1, this.isInitialized && !this.initializedStoreOnce && this.logger.warn("init: i18next is already initialized. You should call init just once!"), this.isInitialized = !0, this.options.isClone || this.logger.log("initialized", this.options), this.emit("initialized", this.options), i.resolve(r), t(e, r);
};
if (this.languages && !this.isInitialized) return e(null, this.t.bind(this));
this.changeLanguage(this.options.lng, e);
};
return this.options.resources || !this.options.initAsync ? s() : setTimeout(s, 0), i;
}
loadResources(e, t = zp) {
let r = t;
const n = ep(e) ? e : this.language;
if ("function" == typeof e && (r = e), !this.options.resources || this.options.partialBundledLanguages) {
var _this$options$preload;
var _this$options$preload2;
if ("cimode" === (n === null || n === void 0 ? void 0 : n.toLowerCase()) && (!this.options.preload || 0 === this.options.preload.length)) return r();
const e = [];
const t = (t) => {
t && "cimode" !== t && this.services.languageUtils.toResolveHierarchy(t).forEach((t) => {
"cimode" !== t && e.indexOf(t) < 0 && e.push(t);
});
};
n ? t(n) : this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach((e) => t(e)), (_this$options$preload = this.options.preload) === null || _this$options$preload === void 0 || (_this$options$preload2 = _this$options$preload.forEach) === null || _this$options$preload2 === void 0 || _this$options$preload2.call(_this$options$preload, (e) => t(e)), this.services.backendConnector.load(e, this.options.ns, (e) => {
e || this.resolvedLanguage || !this.language || this.setResolvedLanguage(this.language), r(e);
});
} else r(null);
}
reloadResources(e, t, r) {
const n = tp();
return "function" == typeof e && (r = e, e = void 0), "function" == typeof t && (r = t, t = void 0), e || (e = this.languages), t || (t = this.options.ns), r || (r = zp), this.services.backendConnector.reload(e, t, (e) => {
n.resolve(), r(e);
}), n;
}
use(e) {
if (!e) throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");
if (!e.type) throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");
return "backend" === e.type && (this.modules.backend = e), ("logger" === e.type || e.log && e.warn && e.error) && (this.modules.logger = e), "languageDetector" === e.type && (this.modules.languageDetector = e), "i18nFormat" === e.type && (this.modules.i18nFormat = e), "postProcessor" === e.type && xp.addPostProcessor(e), "formatter" === e.type && (this.modules.formatter = e), "3rdParty" === e.type && this.modules.external.push(e), this;
}
setResolvedLanguage(e) {
if (e && this.languages && !(["cimode", "dev"].indexOf(e) > -1)) {
for (let e = 0; e < this.languages.length; e++) {
const t = this.languages[e];
if (!(["cimode", "dev"].indexOf(t) > -1) && this.store.hasLanguageSomeTranslations(t)) {
this.resolvedLanguage = t;
break;
}
}
!this.resolvedLanguage && this.languages.indexOf(e) < 0 && this.store.hasLanguageSomeTranslations(e) && (this.resolvedLanguage = e, this.languages.unshift(e));
}
}
changeLanguage(e, t) {
this.isLanguageChangingTo = e;
const r = tp();
this.emit("languageChanging", e);
const n = (e) => {
this.language = e, this.languages = this.services.languageUtils.toResolveHierarchy(e), this.resolvedLanguage = void 0, this.setResolvedLanguage(e);
};
const o = (o, i) => {
i ? this.isLanguageChangingTo === e && (n(i), this.translator.changeLanguage(i), this.isLanguageChangingTo = void 0, this.emit("languageChanged", i), this.logger.log("languageChanged", i)) : this.isLanguageChangingTo = void 0, r.resolve((...e) => this.t(...e)), t && t(o, (...e) => this.t(...e));
};
const i = (t) => {
var _this$services$langua;
var _this$services$langua2;
e || t || !this.services.languageDetector || (t = []);
const r = ep(t) ? t : t && t[0];
const i = this.store.hasLanguageSomeTranslations(r) ? r : this.services.languageUtils.getBestMatchFromCodes(ep(t) ? [t] : t);
i && (this.language || n(i), this.translator.language || this.translator.changeLanguage(i), (_this$services$langua = this.services.languageDetector) === null || _this$services$langua === void 0 || (_this$services$langua2 = _this$services$langua.cacheUserLanguage) === null || _this$services$langua2 === void 0 || _this$services$langua2.call(_this$services$langua, i)), this.loadResources(i, (e) => {
o(e, i);
});
};
return e || !this.services.languageDetector || this.services.languageDetector.async ? !e && this.services.languageDetector && this.services.languageDetector.async ? 0 === this.services.languageDetector.detect.length ? this.services.languageDetector.detect().then(i) : this.services.languageDetector.detect(i) : i(e) : i(this.services.languageDetector.detect()), r;
}
getFixedT(e, t, r) {
const n = (e, t, ...o) => {
let i;
i = "object" != typeof t ? this.options.overloadTranslationOptionHandler([e, t].concat(o)) : _objectSpread2({}, t), i.lng = i.lng || n.lng, i.lngs = i.lngs || n.lngs, i.ns = i.ns || n.ns, "" !== i.keyPrefix && (i.keyPrefix = i.keyPrefix || r || n.keyPrefix);
const s = this.options.keySeparator || ".";
let a;
return i.keyPrefix && Array.isArray(e) ? a = e.map((e) => ("function" == typeof e && (e = kp(e, _objectSpread2(_objectSpread2({}, this.options), t))), `${i.keyPrefix}${s}${e}`)) : ("function" == typeof e && (e = kp(e, _objectSpread2(_objectSpread2({}, this.options), t))), a = i.keyPrefix ? `${i.keyPrefix}${s}${e}` : e), this.t(a, i);
};
return ep(e) ? n.lng = e : n.lngs = e, n.ns = t, n.keyPrefix = r, n;
}
t(...e) {
var _this$translator;
return (_this$translator = this.translator) === null || _this$translator === void 0 ? void 0 : _this$translator.translate(...e);
}
exists(...e) {
var _this$translator2;
return (_this$translator2 = this.translator) === null || _this$translator2 === void 0 ? void 0 : _this$translator2.exists(...e);
}
setDefaultNamespace(e) {
this.options.defaultNS = e;
}
hasLoadedNamespace(e, t = {}) {
if (!this.isInitialized) return this.logger.warn("hasLoadedNamespace: i18next was not initialized", this.languages), !1;
if (!this.languages || !this.languages.length) return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty", this.languages), !1;
const r = t.lng || this.resolvedLanguage || this.languages[0];
const n = !!this.options && this.options.fallbackLng;
const o = this.languages[this.languages.length - 1];
if ("cimode" === r.toLowerCase()) return !0;
const i = (e, t) => {
const r = this.services.backendConnector.state[`${e}|${t}`];
return -1 === r || 0 === r || 2 === r;
};
if (t.precheck) {
const e = t.precheck(this, i);
if (void 0 !== e) return e;
}
return !(!this.hasResourceBundle(r, e) && this.services.backendConnector.backend && (!this.options.resources || this.options.partialBundledLanguages) && (!i(r, e) || n && !i(o, e)));
}
loadNamespaces(e, t) {
const r = tp();
return this.options.ns ? (ep(e) && (e = [e]), e.forEach((e) => {
this.options.ns.indexOf(e) < 0 && this.options.ns.push(e);
}), this.loadResources((e) => {
r.resolve(), t && t(e);
}), r) : (t && t(), Promise.resolve());
}
loadLanguages(e, t) {
const r = tp();
ep(e) && (e = [e]);
const n = this.options.preload || [];
const o = e.filter((e) => n.indexOf(e) < 0 && this.services.languageUtils.isSupportedCode(e));
return o.length ? (this.options.preload = n.concat(o), this.loadResources((e) => {
r.resolve(), t && t(e);
}), r) : (t && t(), Promise.resolve());
}
dir(e) {
var _this$languages;
var _this$services3;
if (e || (e = this.resolvedLanguage || (((_this$languages = this.languages) === null || _this$languages === void 0 ? void 0 : _this$languages.length) > 0 ? this.languages[0] : this.language)), !e) return "rtl";
try {
const t = new Intl.Locale(e);
if (t && t.getTextInfo) {
const e = t.getTextInfo();
if (e && e.direction) return e.direction;
}
} catch (e) {}
const t = ((_this$services3 = this.services) === null || _this$services3 === void 0 ? void 0 : _this$services3.languageUtils) || new Tp($p());
return e.toLowerCase().indexOf("-latn") > 1 ? "ltr" : [
"ar",
"shu",
"sqr",
"ssh",
"xaa",
"yhd",
"yud",
"aao",
"abh",
"abv",
"acm",
"acq",
"acw",
"acx",
"acy",
"adf",
"ads",
"aeb",
"aec",
"afb",
"ajp",
"apc",
"apd",
"arb",
"arq",
"ars",
"ary",
"arz",
"auz",
"avl",
"ayh",
"ayl",
"ayn",
"ayp",
"bbz",
"pga",
"he",
"iw",
"ps",
"pbt",
"pbu",
"pst",
"prp",
"prd",
"ug",
"ur",
"ydd",
"yds",
"yih",
"ji",
"yi",
"hbo",
"men",
"xmn",
"fa",
"jpr",
"peo",
"pes",
"prs",
"dv",
"sam",
"ckb"
].indexOf(t.getLanguagePartFromCode(e)) > -1 || e.toLowerCase().indexOf("-arab") > 1 ? "rtl" : "ltr";
}
static createInstance(e = {}, t) {
const r = new Up(e, t);
return r.createInstance = Up.createInstance, r;
}
cloneInstance(e = {}, t = zp) {
const r = e.forkResourceStore;
r && delete e.forkResourceStore;
const n = _objectSpread2(_objectSpread2(_objectSpread2({}, this.options), e), {}, { isClone: !0 });
const o = new Up(n);
if (void 0 === e.debug && void 0 === e.prefix || (o.logger = o.logger.clone(e)), [
"store",
"services",
"language"
].forEach((e) => {
o[e] = this[e];
}), o.services = _objectSpread2({}, this.services), o.services.utils = { hasLoadedNamespace: o.hasLoadedNamespace.bind(o) }, r) {
const e = Object.keys(this.store.data).reduce((e, t) => (e[t] = _objectSpread2({}, this.store.data[t]), e[t] = Object.keys(e[t]).reduce((r, n) => (r[n] = _objectSpread2({}, e[t][n]), r), e[t]), e), {});
o.store = new _p(e, n), o.services.resourceStore = o.store;
}
if (e.interpolation) {
const t = _objectSpread2(_objectSpread2(_objectSpread2({}, $p().interpolation), this.options.interpolation), e.interpolation);
const r = _objectSpread2(_objectSpread2({}, n), {}, { interpolation: t });
o.services.interpolator = new Np(r);
}
return o.translator = new Ep(o.services, n), o.translator.on("*", (e, ...t) => {
o.emit(e, ...t);
}), o.init(n, t), o.translator.options = n, o.translator.backendConnector.services.utils = { hasLoadedNamespace: o.hasLoadedNamespace.bind(o) }, o;
}
toJSON() {
return {
options: this.options,
store: this.store,
language: this.language,
languages: this.languages,
resolvedLanguage: this.resolvedLanguage
};
}
constructor(e = {}, t) {
var r;
if (super(), this.options = Bp(e), this.services = {}, this.logger = bp, this.modules = { external: [] }, r = this, Object.getOwnPropertyNames(Object.getPrototypeOf(r)).forEach((e) => {
"function" == typeof r[e] && (r[e] = r[e].bind(r));
}), t && !this.isInitialized && !e.isClone) {
if (!this.options.initAsync) return this.init(e, t), this;
setTimeout(() => {
this.init(e, t);
}, 0);
}
}
};
var qp = Up.createInstance();
var Wp = {};
var Hp = (e, t, r, n) => {
Zp(r) && Wp[r] || (Zp(r) && (Wp[r] = /* @__PURE__ */ new Date()), ((e, t, r, n) => {
var _e$services;
var _e$services2;
var _console2;
const o = [r, _objectSpread2({ code: t }, n || {})];
if (e === null || e === void 0 || (_e$services = e.services) === null || _e$services === void 0 || (_e$services = _e$services.logger) === null || _e$services === void 0 ? void 0 : _e$services.forward) return e.services.logger.forward(o, "warn", "react-i18next::", !0);
Zp(o[0]) && (o[0] = `react-i18next:: ${o[0]}`), (e === null || e === void 0 || (_e$services2 = e.services) === null || _e$services2 === void 0 || (_e$services2 = _e$services2.logger) === null || _e$services2 === void 0 ? void 0 : _e$services2.warn) ? e.services.logger.warn(...o) : (_console2 = console) !== null && _console2 !== void 0 && _console2.warn && console.warn(...o);
})(e, t, r, n));
};
var Gp = (e, t) => () => {
if (e.isInitialized) t();
else {
const r = () => {
setTimeout(() => {
e.off("initialized", r);
}, 0), t();
};
e.on("initialized", r);
}
};
var Kp = (e, t, r) => {
e.loadNamespaces(t, Gp(e, r));
};
var Yp = (e, t, r, n) => {
if (Zp(r) && (r = [r]), e.options.preload && e.options.preload.indexOf(t) > -1) return Kp(e, r, n);
r.forEach((t) => {
e.options.ns.indexOf(t) < 0 && e.options.ns.push(t);
}), e.loadLanguages(t, Gp(e, n));
};
var Zp = (e) => "string" == typeof e;
var Xp = /&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g;
var Jp = {
"&": "&",
"&": "&",
"<": "<",
"<": "<",
">": ">",
">": ">",
"'": "'",
"'": "'",
""": "\"",
""": "\"",
" ": " ",
" ": " ",
"©": "©",
"©": "©",
"®": "®",
"®": "®",
"…": "…",
"…": "…",
"/": "/",
"/": "/"
};
var Qp = (e) => Jp[e];
var ed;
var td = {
bindI18n: "languageChanged",
bindI18nStore: "",
transEmptyNodeValue: "",
transSupportBasicHtmlNodes: !0,
transWrapTextNodes: "",
transKeepBasicHtmlNodesFor: [
"br",
"strong",
"i",
"p"
],
useSuspense: !0,
unescape: (e) => e.replace(Xp, Qp),
transDefaultProps: void 0
};
var rd = {
type: "3rdParty",
init(e) {
((e = {}) => {
td = _objectSpread2(_objectSpread2({}, td), e);
})(e.options.react), ((e) => {
ed = e;
})(e);
}
};
var nd = (0, react.createContext)();
var od = class {
addUsedNamespaces(e) {
e.forEach((e) => {
this.usedNamespaces[e] || (this.usedNamespaces[e] = !0);
});
}
getUsedNamespaces() {
return Object.keys(this.usedNamespaces);
}
constructor() {
this.usedNamespaces = {};
}
};
var sd = { exports: {} };
var cd;
var ud;
var pd = {};
function dd() {
return cd || (cd = 1, function() {
function e(e) {
var t = e.getSnapshot;
e = e.value;
try {
var n = t();
return !r(e, n);
} catch (e) {
return !0;
}
}
"undefined" != typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" == typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
var t = react.default;
var r = "function" == typeof Object.is ? Object.is : function(e, t) {
return e === t && (0 !== e || 1 / e == 1 / t) || e != e && t != t;
};
var n = t.useState;
var i = t.useEffect;
var s = t.useLayoutEffect;
var a = t.useDebugValue;
var l = !1;
var c = !1;
var u = "undefined" == typeof window || void 0 === window.document || void 0 === window.document.createElement ? function(e, t) {
return t();
} : function(o, u) {
l || void 0 === t.startTransition || (l = !0, console.error("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."));
var p = u();
if (!c) {
var d = u();
r(p, d) || (console.error("The result of getSnapshot should be cached to avoid an infinite loop"), c = !0);
}
var f = (d = n({ inst: {
value: p,
getSnapshot: u
} }))[0].inst;
var h = d[1];
return s(function() {
f.value = p, f.getSnapshot = u, e(f) && h({ inst: f });
}, [
o,
p,
u
]), i(function() {
return e(f) && h({ inst: f }), o(function() {
e(f) && h({ inst: f });
});
}, [o]), a(p), p;
};
pd.useSyncExternalStore = void 0 !== t.useSyncExternalStore ? t.useSyncExternalStore : u, "undefined" != typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" == typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
}()), pd;
}
function fd() {
return ud || (ud = 1, sd.exports = dd()), sd.exports;
}
var hd = fd();
var md = {
t: (e, t) => {
return Zp(t) ? t : "object" == typeof (r = t) && null !== r && Zp(t.defaultValue) ? t.defaultValue : Array.isArray(e) ? e[e.length - 1] : e;
var r;
},
ready: !1
};
var gd = () => () => {};
var vd = (e, t = {}) => {
var _i$options2;
var _i$reportNamespaces;
var _i$reportNamespaces$a;
const { i18n: r } = t, { i18n: n, defaultNS: o } = (0, react.useContext)(nd) || {}, i = r || n || ed;
i && !i.reportNamespaces && (i.reportNamespaces = new od()), i || Hp(i, "NO_I18NEXT_INSTANCE", "useTranslation: You will need to pass in an i18next instance by using initReactI18next");
const a = (0, react.useMemo)(() => {
var _i$options;
return _objectSpread2(_objectSpread2(_objectSpread2({}, td), i === null || i === void 0 || (_i$options = i.options) === null || _i$options === void 0 ? void 0 : _i$options.react), t);
}, [i, t]), { useSuspense: l, keyPrefix: c } = a, u = e || o || (i === null || i === void 0 || (_i$options2 = i.options) === null || _i$options2 === void 0 ? void 0 : _i$options2.defaultNS), g = Zp(u) ? [u] : u || ["translation"], v = (0, react.useMemo)(() => g, g);
i === null || i === void 0 || (_i$reportNamespaces = i.reportNamespaces) === null || _i$reportNamespaces === void 0 || (_i$reportNamespaces$a = _i$reportNamespaces.addUsedNamespaces) === null || _i$reportNamespaces$a === void 0 || _i$reportNamespaces$a.call(_i$reportNamespaces, v);
const y = (0, react.useRef)(0), b = (0, react.useCallback)((e) => {
if (!i) return gd;
const { bindI18n: t, bindI18nStore: r } = a, n = () => {
y.current += 1, e();
};
return t && i.on(t, n), r && i.store.on(r, n), () => {
t && t.split(" ").forEach((e) => i.off(e, n)), r && r.split(" ").forEach((e) => i.store.off(e, n));
};
}, [i, a]), w = (0, react.useRef)(), _ = (0, react.useCallback)(() => {
if (!i) return md;
const e = !(!i.isInitialized && !i.initializedStoreOnce) && v.every((e) => ((e, t, r = {}) => t.languages && t.languages.length ? t.hasLoadedNamespace(e, {
lng: r.lng,
precheck: (t, n) => {
if (r.bindI18n && r.bindI18n.indexOf("languageChanging") > -1 && t.services.backendConnector.backend && t.isLanguageChangingTo && !n(t.isLanguageChangingTo, e)) return !1;
}
}) : (Hp(t, "NO_LANGUAGES", "i18n.languages were undefined or empty", { languages: t.languages }), !0))(e, i, a));
const r = t.lng || i.language;
const n = y.current;
const o = w.current;
if (o && o.ready === e && o.lng === r && o.keyPrefix === c && o.revision === n) return o;
const s = {
t: i.getFixedT(r, "fallback" === a.nsMode ? v : v[0], c),
ready: e,
lng: r,
keyPrefix: c,
revision: n
};
return w.current = s, s;
}, [
i,
v,
c,
a,
t.lng
]), [x, S] = (0, react.useState)(0), { t: k, ready: C } = hd.useSyncExternalStore(b, _, _);
(0, react.useEffect)(() => {
if (i && !C && !l) {
const e = () => S((e) => e + 1);
t.lng ? Yp(i, t.lng, v, e) : Kp(i, v, e);
}
}, [
i,
t.lng,
v,
C,
l,
x
]);
const O = i || {};
const E = (0, react.useRef)(null);
const T = (0, react.useRef)();
const R = (e) => {
const t = Object.getOwnPropertyDescriptors(e);
t.__original && delete t.__original;
const r = Object.create(Object.getPrototypeOf(e), t);
if (!Object.prototype.hasOwnProperty.call(r, "__original")) try {
Object.defineProperty(r, "__original", {
value: e,
writable: !1,
enumerable: !1,
configurable: !1
});
} catch (e) {}
return r;
};
const I = (0, react.useMemo)(() => {
const e = O;
const t = e === null || e === void 0 ? void 0 : e.language;
let r = e;
e && (E.current && E.current.__original === e ? T.current !== t ? (r = R(e), E.current = r, T.current = t) : r = E.current : (r = R(e), E.current = r, T.current = t));
const n = [
k,
r,
C
];
return n.t = k, n.i18n = r, n.ready = C, n;
}, [
k,
O,
C,
O.resolvedLanguage,
O.language,
O.languages
]);
if (i && l && !C) throw new Promise((e) => {
const r = () => e();
t.lng ? Yp(i, t.lng, v, r) : Kp(i, v, r);
});
return I;
};
function yd(e) {
if ("undefined" == typeof window) return e;
const t = react.useRef(null);
return react.useLayoutEffect(() => {
t.current = e;
}), react.useCallback((...e) => {
var r;
null === (r = t.current) || void 0 === r || r.call(t, ...e);
}, []);
}
var bd = {};
var wd = {
isOpen: !1,
setAnchorElUsed: !1,
anchorEl: void 0,
anchorPosition: void 0,
hovered: !1,
focused: !1,
_openEventType: null,
_childPopupState: null,
_deferNextOpen: !1,
_deferNextClose: !1
};
function _d({ isOpen: e, popupId: t, variant: r }) {
return _objectSpread2({}, "popover" === r ? {
"aria-haspopup": !0,
"aria-controls": e && null != t ? t : void 0
} : "popper" === r ? { "aria-describedby": e && null != t ? t : void 0 } : void 0);
}
function xd(e) {
return _objectSpread2(_objectSpread2({}, _d(e)), {}, {
onClick: e.open,
onTouchStart: e.open
});
}
function Sd({ isOpen: e, anchorEl: t, anchorPosition: r, close: n, popupId: o, onMouseLeave: i, disableAutoFocus: s, _openEventType: a }) {
return _objectSpread2({
id: o,
anchorEl: t,
anchorPosition: r,
anchorReference: "contextmenu" === a ? "anchorPosition" : "anchorEl",
open: e,
onClose: n,
onMouseLeave: i
}, s && {
autoFocus: !1,
disableAutoFocusItem: !0,
disableAutoFocus: !0,
disableEnforceFocus: !0,
disableRestoreFocus: !0
});
}
function kd(e, t) {
const { anchorEl: r, _childPopupState: n } = t;
return Cd(r, e) || Cd(function(e, { popupId: t }) {
if (!t) return null;
const r = "function" == typeof e.getRootNode ? e.getRootNode() : document;
return "function" == typeof r.getElementById ? r.getElementById(t) : null;
}(e, t), e) || null != n && kd(e, n);
}
function Cd(e, t) {
if (!e) return !1;
for (; t;) {
if (t === e) return !0;
t = t.parentElement;
}
return !1;
}
var Od = 0;
var Td = (_ref2) => {
let { popupId: e } = _ref2;
return function({ parentPopupState: e, popupId: t, variant: r, disableAutoFocus: n }) {
const o = (0, react.useRef)(!0);
(0, react.useEffect)(() => (o.current = !0, () => {
o.current = !1;
}), []);
const [i, s] = (0, react.useState)(wd), a = (0, react.useCallback)((e) => {
o.current && s(e);
}, []), l = (0, react.useCallback)((e) => a((t) => _objectSpread2(_objectSpread2({}, t), {}, {
setAnchorElUsed: !0,
anchorEl: e !== null && e !== void 0 ? e : void 0
})), []), c = yd((e) => (i.isOpen ? g(e) : u(e), i)), u = yd((t) => {
const n = t instanceof Element ? void 0 : t;
const o = t instanceof Element ? t : (null == t ? void 0 : t.currentTarget) instanceof Element ? t.currentTarget : void 0;
if ("touchstart" === (null == n ? void 0 : n.type)) return void a((e) => _objectSpread2(_objectSpread2({}, e), {}, { _deferNextOpen: !0 }));
const i = null == n ? void 0 : n.clientX;
const s = null == n ? void 0 : n.clientY;
const l = "number" == typeof i && "number" == typeof s ? {
left: i,
top: s
} : void 0;
const c = (i) => {
if (t || i.setAnchorElUsed || "dialog" === r || bd.missingEventOrAnchorEl || (bd.missingEventOrAnchorEl = !0, console.error("[material-ui-popup-state] WARNING", "eventOrAnchorEl should be defined if setAnchorEl is not used")), e) {
if (!e.isOpen) return i;
setTimeout(() => e._setChildPopupState(_));
}
const s = _objectSpread2(_objectSpread2({}, i), {}, {
isOpen: !0,
anchorPosition: l,
hovered: "mouseover" === (null == n ? void 0 : n.type) || i.hovered,
focused: "focus" === (null == n ? void 0 : n.type) || i.focused,
_openEventType: null == n ? void 0 : n.type
});
return null != n && n.currentTarget ? i.setAnchorElUsed || (s.anchorEl = null == n ? void 0 : n.currentTarget) : o && (s.anchorEl = o), s;
};
a((e) => e._deferNextOpen ? (setTimeout(() => a(c), 0), _objectSpread2(_objectSpread2({}, e), {}, { _deferNextOpen: !1 })) : c(e));
}), p = (t) => {
const { _childPopupState: r } = t;
return setTimeout(() => {
null == r || r.close(), null == e || e._setChildPopupState(null);
}), _objectSpread2(_objectSpread2({}, t), {}, {
isOpen: !1,
hovered: !1,
focused: !1
});
}, g = yd((e) => {
const t = e instanceof Element ? void 0 : e;
"touchstart" !== (null == t ? void 0 : t.type) ? a((e) => e._deferNextClose ? (setTimeout(() => a(p), 0), _objectSpread2(_objectSpread2({}, e), {}, { _deferNextClose: !1 })) : p(e)) : a((e) => _objectSpread2(_objectSpread2({}, e), {}, { _deferNextClose: !0 }));
}), v = (0, react.useCallback)((e, t) => {
e ? u(t) : g(t);
}, []), y = yd((e) => {
const { relatedTarget: t } = e;
a((e) => !e.hovered || t instanceof Element && kd(t, _) ? e : e.focused ? _objectSpread2(_objectSpread2({}, e), {}, { hovered: !1 }) : p(e));
}), b = yd((e) => {
if (!e) return;
const { relatedTarget: t } = e;
a((e) => !e.focused || t instanceof Element && kd(t, _) ? e : e.hovered ? _objectSpread2(_objectSpread2({}, e), {}, { focused: !1 }) : p(e));
}), w = (0, react.useCallback)((e) => a((t) => _objectSpread2(_objectSpread2({}, t), {}, { _childPopupState: e })), []), _ = _objectSpread2(_objectSpread2({}, i), {}, {
setAnchorEl: l,
popupId: t,
variant: r,
open: u,
close: g,
toggle: c,
setOpen: v,
onBlur: b,
onMouseLeave: y,
disableAutoFocus: n !== null && n !== void 0 ? n : Boolean(i.hovered || i.focused),
_setChildPopupState: w
});
return _;
}(_objectSpread2(_objectSpread2({}, _objectWithoutProperties(_ref2, _excluded4)), {}, { popupId: (0, react.useRef)(e || "eui-popup-" + Od++).current }));
};
var Rd = { exports: {} };
var Ad;
var Pd;
var Nd = {};
function Ld() {
return Ad || (Ad = 1, function() {
var e;
var t = Symbol.for("react.element");
var r = Symbol.for("react.portal");
var n = Symbol.for("react.fragment");
var o = Symbol.for("react.strict_mode");
var i = Symbol.for("react.profiler");
var s = Symbol.for("react.provider");
var a = Symbol.for("react.context");
var l = Symbol.for("react.server_context");
var c = Symbol.for("react.forward_ref");
var u = Symbol.for("react.suspense");
var p = Symbol.for("react.suspense_list");
var d = Symbol.for("react.memo");
var f = Symbol.for("react.lazy");
var h = Symbol.for("react.offscreen");
function m(e) {
if ("object" == typeof e && null !== e) {
var h = e.$$typeof;
switch (h) {
case t:
var m = e.type;
switch (m) {
case n:
case i:
case o:
case u:
case p: return m;
default:
var g = m && m.$$typeof;
switch (g) {
case l:
case a:
case c:
case f:
case d:
case s: return g;
default: return h;
}
}
case r: return h;
}
}
}
e = Symbol.for("react.module.reference");
var g = a;
var v = s;
var y = t;
var b = c;
var w = n;
var _ = f;
var x = d;
var S = r;
var k = i;
var C = o;
var O = u;
var E = p;
var T = !1;
var R = !1;
Nd.ContextConsumer = g, Nd.ContextProvider = v, Nd.Element = y, Nd.ForwardRef = b, Nd.Fragment = w, Nd.Lazy = _, Nd.Memo = x, Nd.Portal = S, Nd.Profiler = k, Nd.StrictMode = C, Nd.Suspense = O, Nd.SuspenseList = E, Nd.isAsyncMode = function(e) {
return T || (T = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")), !1;
}, Nd.isConcurrentMode = function(e) {
return R || (R = !0, console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")), !1;
}, Nd.isContextConsumer = function(e) {
return m(e) === a;
}, Nd.isContextProvider = function(e) {
return m(e) === s;
}, Nd.isElement = function(e) {
return "object" == typeof e && null !== e && e.$$typeof === t;
}, Nd.isForwardRef = function(e) {
return m(e) === c;
}, Nd.isFragment = function(e) {
return m(e) === n;
}, Nd.isLazy = function(e) {
return m(e) === f;
}, Nd.isMemo = function(e) {
return m(e) === d;
}, Nd.isPortal = function(e) {
return m(e) === r;
}, Nd.isProfiler = function(e) {
return m(e) === i;
}, Nd.isStrictMode = function(e) {
return m(e) === o;
}, Nd.isSuspense = function(e) {
return m(e) === u;
}, Nd.isSuspenseList = function(e) {
return m(e) === p;
}, Nd.isValidElementType = function(t) {
return "string" == typeof t || "function" == typeof t || t === n || t === i || t === o || t === u || t === p || t === h || "object" == typeof t && null !== t && (t.$$typeof === f || t.$$typeof === d || t.$$typeof === s || t.$$typeof === a || t.$$typeof === c || t.$$typeof === e || void 0 !== t.getModuleId);
}, Nd.typeOf = m;
}()), Nd;
}
function Dd() {
return Pd || (Pd = 1, Rd.exports = Ld()), Rd.exports;
}
var jd = Dd();
function Fd(e) {
return "string" == typeof e;
}
function $d(e, t, r) {
return void 0 === e || Fd(e) ? t : _({}, t, { ownerState: _({}, t.ownerState, r) });
}
var zd = react.createContext({ disableDefaultClasses: !1 });
function Vd(e, t = []) {
if (void 0 === e) return {};
const r = {};
return Object.keys(e).filter((r) => r.match(/^on[A-Z]/) && "function" == typeof e[r] && !t.includes(r)).forEach((t) => {
r[t] = e[t];
}), r;
}
function Ud(e, t, r) {
return "function" == typeof e ? e(t, r) : e;
}
function qd(e, t, r, n, o) {
const i = e[t];
const s = o || t;
if (null == i || "undefined" == typeof window) return null;
let a;
const l = i.type;
return "function" != typeof l || function(e) {
const { prototype: t = {} } = e;
return Boolean(t.isReactComponent);
}(l) || (a = "Did you accidentally use a plain function component for an element instead?"), void 0 !== a ? /* @__PURE__ */ new Error(`Invalid ${n} \`${s}\` supplied to \`${r}\`. Expected an element that can hold a ref. ${a} For more information see https://mui.com/r/caveat-with-refs-guide`) : null;
}
zd.displayName = "ClassNameConfiguratorContext";
var Wd = Ci(ee.element, qd);
Wd.isRequired = Ci(ee.element.isRequired, qd);
var Hd = Wd;
var Gd = "exact-prop: ";
function Kd(e) {
return _({}, e, { [Gd]: (t) => {
const r = Object.keys(t).filter((t) => !e.hasOwnProperty(t));
return r.length > 0 ? /* @__PURE__ */ new Error(`The following props are not supported: ${r.map((e) => `\`${e}\``).join(", ")}. Please remove them.`) : null;
} });
}
function Yd(e, t, r, n, o) {
const i = e[t];
const s = o || t;
return null == i ? null : i && 1 !== i.nodeType ? /* @__PURE__ */ new Error(`Invalid ${n} \`${s}\` supplied to \`${r}\`. Expected an HTMLElement.`) : null;
}
function Zd(...e) {
return e.reduce((e, t) => null == t ? e : function(...r) {
e.apply(this, r), t.apply(this, r);
}, () => {});
}
function Xd(e, t = 166) {
let r;
function n(...n) {
clearTimeout(r), r = setTimeout(() => {
e.apply(this, n);
}, t);
}
return n.clear = () => {
clearTimeout(r);
}, n;
}
function Jd(e, t) {
var r;
var o;
return react.isValidElement(e) && -1 !== t.indexOf(null != (r = e.type.muiName) ? r : null == (o = e.type) || null == (o = o._payload) || null == (o = o.value) ? void 0 : o.muiName);
}
function Qd(e) {
return e && e.ownerDocument || document;
}
function ef(e) {
return Qd(e).defaultView || window;
}
var tf = 0;
var rf = react["useId".toString()];
function nf(e) {
if (void 0 !== rf) {
const t = rf();
return null != e ? e : t;
}
return function(e) {
const [t, r] = react.useState(e), o = e || t;
return react.useEffect(() => {
null == t && (tf += 1, r(`mui-${tf}`));
}, [t]), o;
}(e);
}
function of({ controlled: e, default: t, name: r, state: o = "value" }) {
const { current: i } = react.useRef(void 0 !== e), [s, a] = react.useState(t), l = i ? e : s;
{
react.useEffect(() => {
i !== (void 0 !== e) && console.error([
`MUI: A component is changing the ${i ? "" : "un"}controlled ${o} state of ${r} to be ${i ? "un" : ""}controlled.`,
"Elements should not switch from uncontrolled to controlled (or vice versa).",
`Decide between using a controlled or uncontrolled ${r} element for the lifetime of the component.`,
"The nature of the state is determined during the first render. It's considered controlled if the value is not `undefined`.",
"More info: https://fb.me/react-controlled-components"
].join("\n"));
}, [
o,
r,
e
]);
const { current: s } = react.useRef(t);
react.useEffect(() => {
i || Object.is(s, t) || console.error([`MUI: A component is changing the default ${o} state of an uncontrolled ${r} after being initialized. To suppress this warning opt to use a controlled ${r}.`].join("\n"));
}, [JSON.stringify(t)]);
}
return [l, react.useCallback((e) => {
i || a(e);
}, [])];
}
function sf(e) {
const t = e.documentElement.clientWidth;
return Math.abs(window.innerWidth - t);
}
var af = (e) => {
const t = react.useRef({});
return react.useEffect(() => {
t.current = e;
}), t.current;
};
function lf(e) {
if (void 0 === e) return {};
const t = {};
return Object.keys(e).filter((t) => !(t.match(/^on[A-Z]/) && "function" == typeof e[t])).forEach((r) => {
t[r] = e[r];
}), t;
}
function cf(e) {
const { getSlotProps: t, additionalProps: r, externalSlotProps: n, externalForwardedProps: o, className: i } = e;
if (!t) {
const e = re(null == r ? void 0 : r.className, i, null == o ? void 0 : o.className, null == n ? void 0 : n.className);
const t = _({}, null == r ? void 0 : r.style, null == o ? void 0 : o.style, null == n ? void 0 : n.style);
const s = _({}, r, o, n);
return e.length > 0 && (s.className = e), Object.keys(t).length > 0 && (s.style = t), {
props: s,
internalRef: void 0
};
}
const s = Vd(_({}, o, n));
const a = lf(n);
const l = lf(o);
const c = t(s);
const u = re(null == c ? void 0 : c.className, null == r ? void 0 : r.className, i, null == o ? void 0 : o.className, null == n ? void 0 : n.className);
const p = _({}, null == c ? void 0 : c.style, null == r ? void 0 : r.style, null == o ? void 0 : o.style, null == n ? void 0 : n.style);
const d = _({}, c, r, l, a);
return u.length > 0 && (d.className = u), Object.keys(p).length > 0 && (d.style = p), {
props: d,
internalRef: c.ref
};
}
var uf = [
"elementType",
"externalSlotProps",
"ownerState",
"skipResolvingSlotProps"
];
function pf(e) {
var t;
const { elementType: r, externalSlotProps: n, ownerState: o, skipResolvingSlotProps: i = !1 } = e, s = w(e, uf), a = i ? {} : Ud(n, o), { props: l, internalRef: c } = cf(_({}, s, { externalSlotProps: a }));
return $d(r, _({}, l, { ref: ca(c, null == a ? void 0 : a.ref, null == (t = e.additionalProps) ? void 0 : t.ref) }), o);
}
var df = react.createContext({});
df.displayName = "ListContext";
var ff = df;
function hf(e) {
return Qn("MuiList", e);
}
ks("MuiList", [
"root",
"padding",
"dense",
"subheader"
]);
var mf = [
"children",
"className",
"component",
"dense",
"disablePadding",
"subheader"
];
var gf = pi("ul", {
name: "MuiList",
slot: "Root",
overridesResolver: (e, t) => {
const { ownerState: r } = e;
return [
t.root,
!r.disablePadding && t.padding,
r.dense && t.dense,
r.subheader && t.subheader
];
}
})(({ ownerState: e }) => _({
listStyle: "none",
margin: 0,
padding: 0,
position: "relative"
}, !e.disablePadding && {
paddingTop: 8,
paddingBottom: 8
}, e.subheader && { paddingTop: 0 }));
var vf = react.forwardRef(function(r, o) {
const i = yi({
props: r,
name: "MuiList"
}), { children: s, className: a, component: l = "ul", dense: c = !1, disablePadding: u = !1, subheader: p } = i, d = w(i, mf), f = react.useMemo(() => ({ dense: c }), [c]), h = _({}, i, {
component: l,
dense: c,
disablePadding: u
}), m = ((e) => {
const { classes: t, disablePadding: r, dense: n, subheader: o } = e;
return ne({ root: [
"root",
!r && "padding",
n && "dense",
o && "subheader"
] }, hf, t);
})(h);
return (0, import_jsx_runtime.jsx)(ff.Provider, {
value: f,
children: (0, import_jsx_runtime.jsxs)(gf, _({
as: l,
className: re(m.root, a),
ref: o,
ownerState: h
}, d, { children: [p, s] }))
});
});
vf.propTypes = {
children: ee.node,
classes: ee.object,
className: ee.string,
component: ee.elementType,
dense: ee.bool,
disablePadding: ee.bool,
subheader: ee.node,
sx: ee.oneOfType([
ee.arrayOf(ee.oneOfType([
ee.func,
ee.object,
ee.bool
])),
ee.func,
ee.object
])
};
var yf = vf;
var bf = [
"actions",
"autoFocus",
"autoFocusItem",
"children",
"className",
"disabledItemsFocusable",
"disableListWrap",
"onKeyDown",
"variant"
];
function wf(e, t, r) {
return e === t ? e.firstChild : t && t.nextElementSibling ? t.nextElementSibling : r ? null : e.firstChild;
}
function _f(e, t, r) {
return e === t ? r ? e.firstChild : e.lastChild : t && t.previousElementSibling ? t.previousElementSibling : r ? null : e.lastChild;
}
function xf(e, t) {
if (void 0 === t) return !0;
let r = e.innerText;
return void 0 === r && (r = e.textContent), r = r.trim().toLowerCase(), 0 !== r.length && (t.repeating ? r[0] === t.keys[0] : 0 === r.indexOf(t.keys.join("")));
}
function Sf(e, t, r, n, o, i) {
let s = !1;
let a = o(e, t, !!t && r);
for (; a;) {
if (a === e.firstChild) {
if (s) return !1;
s = !0;
}
const t = !n && (a.disabled || "true" === a.getAttribute("aria-disabled"));
if (a.hasAttribute("tabindex") && xf(a, i) && !t) return a.focus(), !0;
a = o(e, a, r);
}
return !1;
}
var kf = react.forwardRef(function(t, r) {
const { actions: o, autoFocus: i = !1, autoFocusItem: s = !1, children: a, className: l, disabledItemsFocusable: c = !1, disableListWrap: u = !1, onKeyDown: p, variant: d = "selectedMenu" } = t, f = w(t, bf), h = react.useRef(null), m = react.useRef({
keys: [],
repeating: !0,
previousKeyMatched: !0,
lastTime: null
});
ua(() => {
i && h.current.focus();
}, [i]), react.useImperativeHandle(o, () => ({ adjustStyleForScrollbar: (e, { direction: t }) => {
const r = !h.current.style.width;
if (e.clientHeight < h.current.clientHeight && r) {
const r = `${sf(Qd(e))}px`;
h.current.style["rtl" === t ? "paddingLeft" : "paddingRight"] = r, h.current.style.width = `calc(100% + ${r})`;
}
return h.current;
} }), []);
const g = ca(h, r);
let v = -1;
react.Children.forEach(a, (e, t) => {
react.isValidElement(e) ? (jd.isFragment(e) && console.error(["MUI: The Menu component doesn't accept a Fragment as a child.", "Consider providing an array instead."].join("\n")), e.props.disabled || ("selectedMenu" === d && e.props.selected || -1 === v) && (v = t), v === t && (e.props.disabled || e.props.muiSkipListHighlight || e.type.muiSkipListHighlight) && (v += 1, v >= a.length && (v = -1))) : v === t && (v += 1, v >= a.length && (v = -1));
});
const y = react.Children.map(a, (e, t) => {
if (t === v) {
const t = {};
return s && (t.autoFocus = !0), void 0 === e.props.tabIndex && "selectedMenu" === d && (t.tabIndex = 0), react.cloneElement(e, t);
}
return e;
});
return (0, import_jsx_runtime.jsx)(yf, _({
role: "menu",
ref: g,
className: l,
onKeyDown: (e) => {
const t = h.current;
const r = e.key;
const n = Qd(t).activeElement;
if ("ArrowDown" === r) e.preventDefault(), Sf(t, n, u, c, wf);
else if ("ArrowUp" === r) e.preventDefault(), Sf(t, n, u, c, _f);
else if ("Home" === r) e.preventDefault(), Sf(t, null, u, c, wf);
else if ("End" === r) e.preventDefault(), Sf(t, null, u, c, _f);
else if (1 === r.length) {
const o = m.current;
const i = r.toLowerCase();
const s = performance.now();
o.keys.length > 0 && (s - o.lastTime > 500 ? (o.keys = [], o.repeating = !0, o.previousKeyMatched = !0) : o.repeating && i !== o.keys[0] && (o.repeating = !1)), o.lastTime = s, o.keys.push(i);
const a = n && !o.repeating && xf(n, o);
o.previousKeyMatched && (a || Sf(t, n, !1, c, wf, o)) ? e.preventDefault() : o.previousKeyMatched = !1;
}
p && p(e);
},
tabIndex: i ? 0 : -1
}, f, { children: y }));
});
kf.propTypes = {
autoFocus: ee.bool,
autoFocusItem: ee.bool,
children: ee.node,
className: ee.string,
disabledItemsFocusable: ee.bool,
disableListWrap: ee.bool,
onKeyDown: ee.func,
variant: ee.oneOf(["menu", "selectedMenu"])
};
var Cf = kf;
function Of(e, t) {
var r;
var n;
const { timeout: o, easing: i, style: s = {} } = e;
return {
duration: null != (r = s.transitionDuration) ? r : "number" == typeof o ? o : o[t.mode] || 0,
easing: null != (n = s.transitionTimingFunction) ? n : "object" == typeof i ? i[t.mode] : i,
delay: s.transitionDelay
};
}
var Ef = [
"addEndListener",
"appear",
"children",
"easing",
"in",
"onEnter",
"onEntered",
"onEntering",
"onExit",
"onExited",
"onExiting",
"style",
"timeout",
"TransitionComponent"
];
function Tf(e) {
return `scale(${e}, ${Math.pow(e, 2)})`;
}
var Rf = {
entering: {
opacity: 1,
transform: Tf(1)
},
entered: {
opacity: 1,
transform: "none"
}
};
var If = "undefined" != typeof navigator && /^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent) && /(os |version\/)15(.|_)4/i.test(navigator.userAgent);
var Mf = react.forwardRef(function(t, r) {
const { addEndListener: o, appear: i = !0, children: s, easing: a, in: l, onEnter: c, onEntered: u, onEntering: p, onExit: d, onExited: f, onExiting: h, style: m, timeout: g = "auto", TransitionComponent: v = La } = t, y = w(t, Ef), b = ma(), x = react.useRef(), S = Ss(), k = react.useRef(null), C = ca(k, s.ref, r), O = (e) => (t) => {
if (e) {
const r = k.current;
void 0 === t ? e(r) : e(r, t);
}
}, E = O(p), T = O((e, t) => {
const { duration: r, delay: n, easing: o } = Of({
style: m,
timeout: g,
easing: a
}, { mode: "enter" });
let i;
"auto" === g ? (i = S.transitions.getAutoHeightDuration(e.clientHeight), x.current = i) : i = r, e.style.transition = [S.transitions.create("opacity", {
duration: i,
delay: n
}), S.transitions.create("transform", {
duration: If ? i : .666 * i,
delay: n,
easing: o
})].join(","), c && c(e, t);
}), R = O(u), I = O(h), M = O((e) => {
const { duration: t, delay: r, easing: n } = Of({
style: m,
timeout: g,
easing: a
}, { mode: "exit" });
let o;
"auto" === g ? (o = S.transitions.getAutoHeightDuration(e.clientHeight), x.current = o) : o = t, e.style.transition = [S.transitions.create("opacity", {
duration: o,
delay: r
}), S.transitions.create("transform", {
duration: If ? o : .666 * o,
delay: If ? r : r || .333 * o,
easing: n
})].join(","), e.style.opacity = 0, e.style.transform = Tf(.75), d && d(e);
}), A = O(f);
return (0, import_jsx_runtime.jsx)(v, _({
appear: i,
in: l,
nodeRef: k,
onEnter: T,
onEntered: R,
onEntering: E,
onExit: M,
onExited: A,
onExiting: I,
addEndListener: (e) => {
"auto" === g && b.start(x.current || 0, e), o && o(k.current, e);
},
timeout: "auto" === g ? null : g
}, y, { children: (e, t) => react.cloneElement(s, _({
style: _({
opacity: 0,
transform: Tf(.75),
visibility: "exited" !== e || l ? void 0 : "hidden"
}, Rf[e], m, s.props.style),
ref: C
}, t)) }));
});
Mf.propTypes = {
addEndListener: ee.func,
appear: ee.bool,
children: Hd.isRequired,
easing: ee.oneOfType([ee.shape({
enter: ee.string,
exit: ee.string
}), ee.string]),
in: ee.bool,
onEnter: ee.func,
onEntered: ee.func,
onEntering: ee.func,
onExit: ee.func,
onExited: ee.func,
onExiting: ee.func,
style: ee.object,
timeout: ee.oneOfType([
ee.oneOf(["auto"]),
ee.number,
ee.shape({
appear: ee.number,
enter: ee.number,
exit: ee.number
})
])
}, Mf.muiSupportAuto = !0;
var Af = Mf;
function Pf(e, t) {
t ? e.setAttribute("aria-hidden", "true") : e.removeAttribute("aria-hidden");
}
function Nf(e) {
return parseInt(ef(e).getComputedStyle(e).paddingRight, 10) || 0;
}
function Lf(e, t, r, n, o) {
const i = [
t,
r,
...n
];
[].forEach.call(e.children, (e) => {
const t = -1 === i.indexOf(e);
const r = !function(e) {
const t = -1 !== [
"TEMPLATE",
"SCRIPT",
"STYLE",
"LINK",
"MAP",
"META",
"NOSCRIPT",
"PICTURE",
"COL",
"COLGROUP",
"PARAM",
"SLOT",
"SOURCE",
"TRACK"
].indexOf(e.tagName);
const r = "INPUT" === e.tagName && "hidden" === e.getAttribute("type");
return t || r;
}(e);
t && r && Pf(e, o);
});
}
function Df(e, t) {
let r = -1;
return e.some((e, n) => !!t(e) && (r = n, !0)), r;
}
var jf = new class {
add(e, t) {
let r = this.modals.indexOf(e);
if (-1 !== r) return r;
r = this.modals.length, this.modals.push(e), e.modalRef && Pf(e.modalRef, !1);
const n = function(e) {
const t = [];
return [].forEach.call(e.children, (e) => {
"true" === e.getAttribute("aria-hidden") && t.push(e);
}), t;
}(t);
Lf(t, e.mount, e.modalRef, n, !0);
const o = Df(this.containers, (e) => e.container === t);
return -1 !== o ? (this.containers[o].modals.push(e), r) : (this.containers.push({
modals: [e],
container: t,
restore: null,
hiddenSiblings: n
}), r);
}
mount(e, t) {
const r = Df(this.containers, (t) => -1 !== t.modals.indexOf(e));
const n = this.containers[r];
n.restore || (n.restore = function(e, t) {
const r = [];
const n = e.container;
if (!t.disableScrollLock) {
if (function(e) {
const t = Qd(e);
return t.body === e ? ef(e).innerWidth > t.documentElement.clientWidth : e.scrollHeight > e.clientHeight;
}(n)) {
const e = sf(Qd(n));
r.push({
value: n.style.paddingRight,
property: "padding-right",
el: n
}), n.style.paddingRight = `${Nf(n) + e}px`;
const t = Qd(n).querySelectorAll(".mui-fixed");
[].forEach.call(t, (t) => {
r.push({
value: t.style.paddingRight,
property: "padding-right",
el: t
}), t.style.paddingRight = `${Nf(t) + e}px`;
});
}
let e;
if (n.parentNode instanceof DocumentFragment) e = Qd(n).body;
else {
const t = n.parentElement;
const r = ef(n);
e = "HTML" === (null == t ? void 0 : t.nodeName) && "scroll" === r.getComputedStyle(t).overflowY ? t : n;
}
r.push({
value: e.style.overflow,
property: "overflow",
el: e
}, {
value: e.style.overflowX,
property: "overflow-x",
el: e
}, {
value: e.style.overflowY,
property: "overflow-y",
el: e
}), e.style.overflow = "hidden";
}
return () => {
r.forEach(({ value: e, el: t, property: r }) => {
e ? t.style.setProperty(r, e) : t.style.removeProperty(r);
});
};
}(n, t));
}
remove(e, t = !0) {
const r = this.modals.indexOf(e);
if (-1 === r) return r;
const n = Df(this.containers, (t) => -1 !== t.modals.indexOf(e));
const o = this.containers[n];
if (o.modals.splice(o.modals.indexOf(e), 1), this.modals.splice(r, 1), 0 === o.modals.length) o.restore && o.restore(), e.modalRef && Pf(e.modalRef, t), Lf(o.container, e.mount, e.modalRef, o.hiddenSiblings, !1), this.containers.splice(n, 1);
else {
const e = o.modals[o.modals.length - 1];
e.modalRef && Pf(e.modalRef, !1);
}
return r;
}
isTopModal(e) {
return this.modals.length > 0 && this.modals[this.modals.length - 1] === e;
}
constructor() {
this.containers = void 0, this.modals = void 0, this.modals = [], this.containers = [];
}
}();
var Ff = [
"input",
"select",
"textarea",
"a[href]",
"button",
"[tabindex]",
"audio[controls]",
"video[controls]",
"[contenteditable]:not([contenteditable=\"false\"])"
].join(",");
function $f(e) {
const t = [];
const r = [];
return Array.from(e.querySelectorAll(Ff)).forEach((e, n) => {
const o = function(e) {
const t = parseInt(e.getAttribute("tabindex") || "", 10);
return Number.isNaN(t) ? "true" === e.contentEditable || ("AUDIO" === e.nodeName || "VIDEO" === e.nodeName || "DETAILS" === e.nodeName) && null === e.getAttribute("tabindex") ? 0 : e.tabIndex : t;
}(e);
-1 !== o && function(e) {
return !(e.disabled || "INPUT" === e.tagName && "hidden" === e.type || function(e) {
if ("INPUT" !== e.tagName || "radio" !== e.type) return !1;
if (!e.name) return !1;
const t = (t) => e.ownerDocument.querySelector(`input[type="radio"]${t}`);
let r = t(`[name="${e.name}"]:checked`);
return r || (r = t(`[name="${e.name}"]`)), r !== e;
}(e));
}(e) && (0 === o ? t.push(e) : r.push({
documentOrder: n,
tabIndex: o,
node: e
}));
}), r.sort((e, t) => e.tabIndex === t.tabIndex ? e.documentOrder - t.documentOrder : e.tabIndex - t.tabIndex).map((e) => e.node).concat(t);
}
function Bf() {
return !0;
}
function zf(r) {
const { children: o, disableAutoFocus: i = !1, disableEnforceFocus: s = !1, disableRestoreFocus: a = !1, getTabbable: l = $f, isEnabled: c = Bf, open: u } = r, p = react.useRef(!1), d = react.useRef(null), f = react.useRef(null), h = react.useRef(null), m = react.useRef(null), g = react.useRef(!1), v = react.useRef(null), y = ca(o.ref, v), b = react.useRef(null);
react.useEffect(() => {
u && v.current && (g.current = !i);
}, [i, u]), react.useEffect(() => {
if (!u || !v.current) return;
const e = Qd(v.current);
return v.current.contains(e.activeElement) || (v.current.hasAttribute("tabIndex") || (console.error(["MUI: The modal content node does not accept focus.", "For the benefit of assistive technologies, the tabIndex of the node is being set to \"-1\"."].join("\n")), v.current.setAttribute("tabIndex", "-1")), g.current && v.current.focus()), () => {
a || (h.current && h.current.focus && (p.current = !0, h.current.focus()), h.current = null);
};
}, [u]), react.useEffect(() => {
if (!u || !v.current) return;
const e = Qd(v.current);
const t = (t) => {
b.current = t, !s && c() && "Tab" === t.key && e.activeElement === v.current && t.shiftKey && (p.current = !0, f.current && f.current.focus());
};
const r = () => {
const t = v.current;
if (null === t) return;
if (!e.hasFocus() || !c() || p.current) return void (p.current = !1);
if (t.contains(e.activeElement)) return;
if (s && e.activeElement !== d.current && e.activeElement !== f.current) return;
if (e.activeElement !== m.current) m.current = null;
else if (null !== m.current) return;
if (!g.current) return;
let r = [];
if (e.activeElement !== d.current && e.activeElement !== f.current || (r = l(v.current)), r.length > 0) {
var n;
var o;
const e = Boolean((null == (n = b.current) ? void 0 : n.shiftKey) && "Tab" === (null == (o = b.current) ? void 0 : o.key));
const t = r[0];
const i = r[r.length - 1];
"string" != typeof t && "string" != typeof i && (e ? i.focus() : t.focus());
} else t.focus();
};
e.addEventListener("focusin", r), e.addEventListener("keydown", t, !0);
const n = setInterval(() => {
e.activeElement && "BODY" === e.activeElement.tagName && r();
}, 50);
return () => {
clearInterval(n), e.removeEventListener("focusin", r), e.removeEventListener("keydown", t, !0);
};
}, [
i,
s,
a,
c,
u,
l
]);
const w = (e) => {
null === h.current && (h.current = e.relatedTarget), g.current = !0;
};
return (0, import_jsx_runtime.jsxs)(react.Fragment, { children: [
(0, import_jsx_runtime.jsx)("div", {
tabIndex: u ? 0 : -1,
onFocus: w,
ref: d,
"data-testid": "sentinelStart"
}),
react.cloneElement(o, {
ref: y,
onFocus: (e) => {
null === h.current && (h.current = e.relatedTarget), g.current = !0, m.current = e.target;
const t = o.props.onFocus;
t && t(e);
}
}),
(0, import_jsx_runtime.jsx)("div", {
tabIndex: u ? 0 : -1,
onFocus: w,
ref: f,
"data-testid": "sentinelEnd"
})
] });
}
zf.propTypes = {
children: Hd,
disableAutoFocus: ee.bool,
disableEnforceFocus: ee.bool,
disableRestoreFocus: ee.bool,
getTabbable: ee.func,
isEnabled: ee.func,
open: ee.bool.isRequired
}, zf.propTypes = Kd(zf.propTypes);
var Vf = react.forwardRef(function(t, r) {
const { children: o, container: i, disablePortal: s = !1 } = t, [a, l] = react.useState(null), c = ca(react.isValidElement(o) ? o.ref : null, r);
if (ua(() => {
s || l(function(e) {
return "function" == typeof e ? e() : e;
}(i) || document.body);
}, [i, s]), ua(() => {
if (a && !s) return la(r, a), () => {
la(r, null);
};
}, [
r,
a,
s
]), s) {
if (react.isValidElement(o)) {
const e = { ref: c };
return react.cloneElement(o, e);
}
return (0, import_jsx_runtime.jsx)(react.Fragment, { children: o });
}
return (0, import_jsx_runtime.jsx)(react.Fragment, { children: a ? react_dom.createPortal(o, a) : a });
});
Vf.propTypes = {
children: ee.node,
container: ee.oneOfType([Yd, ee.func]),
disablePortal: ee.bool
}, Vf.propTypes = Kd(Vf.propTypes);
var Uf = [
"addEndListener",
"appear",
"children",
"easing",
"in",
"onEnter",
"onEntered",
"onEntering",
"onExit",
"onExited",
"onExiting",
"style",
"timeout",
"TransitionComponent"
];
var qf = {
entering: { opacity: 1 },
entered: { opacity: 1 }
};
var Wf = react.forwardRef(function(t, r) {
const o = Ss(), i = {
enter: o.transitions.duration.enteringScreen,
exit: o.transitions.duration.leavingScreen
}, { addEndListener: s, appear: a = !0, children: l, easing: c, in: u, onEnter: p, onEntered: d, onEntering: f, onExit: h, onExited: m, onExiting: g, style: v, timeout: y = i, TransitionComponent: b = La } = t, x = w(t, Uf), S = react.useRef(null), k = ca(S, l.ref, r), C = (e) => (t) => {
if (e) {
const r = S.current;
void 0 === t ? e(r) : e(r, t);
}
}, O = C(f), E = C((e, t) => {
const r = Of({
style: v,
timeout: y,
easing: c
}, { mode: "enter" });
e.style.webkitTransition = o.transitions.create("opacity", r), e.style.transition = o.transitions.create("opacity", r), p && p(e, t);
}), T = C(d), R = C(g), I = C((e) => {
const t = Of({
style: v,
timeout: y,
easing: c
}, { mode: "exit" });
e.style.webkitTransition = o.transitions.create("opacity", t), e.style.transition = o.transitions.create("opacity", t), h && h(e);
}), M = C(m);
return (0, import_jsx_runtime.jsx)(b, _({
appear: a,
in: u,
nodeRef: S,
onEnter: E,
onEntered: T,
onEntering: O,
onExit: I,
onExited: M,
onExiting: R,
addEndListener: (e) => {
s && s(S.current, e);
},
timeout: y
}, x, { children: (e, t) => react.cloneElement(l, _({
style: _({
opacity: 0,
visibility: "exited" !== e || u ? void 0 : "hidden"
}, qf[e], v, l.props.style),
ref: k
}, t)) }));
});
Wf.propTypes = {
addEndListener: ee.func,
appear: ee.bool,
children: Hd.isRequired,
easing: ee.oneOfType([ee.shape({
enter: ee.string,
exit: ee.string
}), ee.string]),
in: ee.bool,
onEnter: ee.func,
onEntered: ee.func,
onEntering: ee.func,
onExit: ee.func,
onExited: ee.func,
onExiting: ee.func,
style: ee.object,
timeout: ee.oneOfType([ee.number, ee.shape({
appear: ee.number,
enter: ee.number,
exit: ee.number
})])
};
var Hf = Wf;
function Gf(e) {
return Qn("MuiBackdrop", e);
}
ks("MuiBackdrop", ["root", "invisible"]);
var Kf = [
"children",
"className",
"component",
"components",
"componentsProps",
"invisible",
"open",
"slotProps",
"slots",
"TransitionComponent",
"transitionDuration"
];
var Yf = pi("div", {
name: "MuiBackdrop",
slot: "Root",
overridesResolver: (e, t) => {
const { ownerState: r } = e;
return [t.root, r.invisible && t.invisible];
}
})(({ ownerState: e }) => _({
position: "fixed",
display: "flex",
alignItems: "center",
justifyContent: "center",
right: 0,
bottom: 0,
top: 0,
left: 0,
backgroundColor: "rgba(0, 0, 0, 0.5)",
WebkitTapHighlightColor: "transparent"
}, e.invisible && { backgroundColor: "transparent" }));
var Zf = react.forwardRef(function(t, r) {
var n;
var o;
var i;
const s = yi({
props: t,
name: "MuiBackdrop"
}), { children: a, className: l, component: c = "div", components: u = {}, componentsProps: p = {}, invisible: d = !1, open: f, slotProps: h = {}, slots: m = {}, TransitionComponent: g = Hf, transitionDuration: v } = s, y = w(s, Kf), b = _({}, s, {
component: c,
invisible: d
}), x = ((e) => {
const { classes: t, invisible: r } = e;
return ne({ root: ["root", r && "invisible"] }, Gf, t);
})(b), S = null != (n = h.root) ? n : p.root;
return (0, import_jsx_runtime.jsx)(g, _({
in: f,
timeout: v
}, y, { children: (0, import_jsx_runtime.jsx)(Yf, _({ "aria-hidden": !0 }, S, {
as: null != (o = null != (i = m.root) ? i : u.Root) ? o : c,
className: re(x.root, l, null == S ? void 0 : S.className),
ownerState: _({}, b, null == S ? void 0 : S.ownerState),
classes: x,
ref: r,
children: a
})) }));
});
Zf.propTypes = {
children: ee.node,
classes: ee.object,
className: ee.string,
component: ee.elementType,
components: ee.shape({ Root: ee.elementType }),
componentsProps: ee.shape({ root: ee.object }),
invisible: ee.bool,
open: ee.bool.isRequired,
slotProps: ee.shape({ root: ee.object }),
slots: ee.shape({ root: ee.elementType }),
sx: ee.oneOfType([
ee.arrayOf(ee.oneOfType([
ee.func,
ee.object,
ee.bool
])),
ee.func,
ee.object
]),
TransitionComponent: ee.elementType,
transitionDuration: ee.oneOfType([ee.number, ee.shape({
appear: ee.number,
enter: ee.number,
exit: ee.number
})])
};
var Xf = Zf;
function Jf(e) {
return Qn("MuiModal", e);
}
ks("MuiModal", [
"root",
"hidden",
"backdrop"
]);
var Qf = [
"BackdropComponent",
"BackdropProps",
"classes",
"className",
"closeAfterTransition",
"children",
"container",
"component",
"components",
"componentsProps",
"disableAutoFocus",
"disableEnforceFocus",
"disableEscapeKeyDown",
"disablePortal",
"disableRestoreFocus",
"disableScrollLock",
"hideBackdrop",
"keepMounted",
"onBackdropClick",
"onClose",
"onTransitionEnter",
"onTransitionExited",
"open",
"slotProps",
"slots",
"theme"
];
var eh = pi("div", {
name: "MuiModal",
slot: "Root",
overridesResolver: (e, t) => {
const { ownerState: r } = e;
return [t.root, !r.open && r.exited && t.hidden];
}
})(({ theme: e, ownerState: t }) => _({
position: "fixed",
zIndex: (e.vars || e).zIndex.modal,
right: 0,
bottom: 0,
top: 0,
left: 0
}, !t.open && t.exited && { visibility: "hidden" }));
var th = pi(Xf, {
name: "MuiModal",
slot: "Backdrop",
overridesResolver: (e, t) => t.backdrop
})({ zIndex: -1 });
var rh = react.forwardRef(function(r, o) {
var i;
var s;
var a;
var l;
var c;
var u;
const p = yi({
name: "MuiModal",
props: r
}), { BackdropComponent: d = th, BackdropProps: f, className: h, closeAfterTransition: m = !1, children: g, container: v, component: y, components: b = {}, componentsProps: x = {}, disableAutoFocus: S = !1, disableEnforceFocus: k = !1, disableEscapeKeyDown: C = !1, disablePortal: O = !1, disableRestoreFocus: E = !1, disableScrollLock: T = !1, hideBackdrop: R = !1, keepMounted: I = !1, onBackdropClick: M, open: A, slotProps: P, slots: N } = p, L = w(p, Qf), D = _({}, p, {
closeAfterTransition: m,
disableAutoFocus: S,
disableEnforceFocus: k,
disableEscapeKeyDown: C,
disablePortal: O,
disableRestoreFocus: E,
disableScrollLock: T,
hideBackdrop: R,
keepMounted: I
}), { getRootProps: j, getBackdropProps: F, getTransitionProps: $, portalRef: B, isTopModal: z, exited: V, hasTransition: U } = function(e) {
const { container: t, disableEscapeKeyDown: r = !1, disableScrollLock: o = !1, manager: i = jf, closeAfterTransition: s = !1, onTransitionEnter: a, onTransitionExited: l, children: c, onClose: u, open: p, rootRef: d } = e, f = react.useRef({}), h = react.useRef(null), m = react.useRef(null), g = ca(m, d), [v, y] = react.useState(!p), b = function(e) {
return !!e && e.props.hasOwnProperty("in");
}(c);
let w = !0;
"false" !== e["aria-hidden"] && !1 !== e["aria-hidden"] || (w = !1);
const x = () => (f.current.modalRef = m.current, f.current.mount = h.current, f.current);
const S = () => {
i.mount(x(), { disableScrollLock: o }), m.current && (m.current.scrollTop = 0);
};
const k = pa(() => {
const e = function(e) {
return "function" == typeof e ? e() : e;
}(t) || Qd(h.current).body;
i.add(x(), e), m.current && S();
});
const C = react.useCallback(() => i.isTopModal(x()), [i]);
const O = pa((e) => {
h.current = e, e && (p && C() ? S() : m.current && Pf(m.current, w));
});
const E = react.useCallback(() => {
i.remove(x(), w);
}, [w, i]);
react.useEffect(() => () => {
E();
}, [E]), react.useEffect(() => {
p ? k() : b && s || E();
}, [
p,
E,
b,
s,
k
]);
const T = (e) => (t) => {
var n;
null == (n = e.onKeyDown) || n.call(e, t), "Escape" === t.key && 229 !== t.which && C() && (r || (t.stopPropagation(), u && u(t, "escapeKeyDown")));
};
const R = (e) => (t) => {
var r;
null == (r = e.onClick) || r.call(e, t), t.target === t.currentTarget && u && u(t, "backdropClick");
};
return {
getRootProps: (t = {}) => {
const r = Vd(e);
delete r.onTransitionEnter, delete r.onTransitionExited;
const n = _({}, r, t);
return _({ role: "presentation" }, n, {
onKeyDown: T(n),
ref: g
});
},
getBackdropProps: (e = {}) => _({ "aria-hidden": !0 }, e, {
onClick: R(e),
open: p
}),
getTransitionProps: () => ({
onEnter: Zd(() => {
y(!1), a && a();
}, null == c ? void 0 : c.props.onEnter),
onExited: Zd(() => {
y(!0), l && l(), s && E();
}, null == c ? void 0 : c.props.onExited)
}),
rootRef: g,
portalRef: O,
isTopModal: C,
exited: v,
hasTransition: b
};
}(_({}, D, { rootRef: o })), q = _({}, D, { exited: V }), W = ((e) => {
const { open: t, exited: r, classes: n } = e;
return ne({
root: ["root", !t && r && "hidden"],
backdrop: ["backdrop"]
}, Jf, n);
})(q), H = {};
if (void 0 === g.props.tabIndex && (H.tabIndex = "-1"), U) {
const { onEnter: e, onExited: t } = $();
H.onEnter = e, H.onExited = t;
}
const G = null != (i = null != (s = null == N ? void 0 : N.root) ? s : b.Root) ? i : eh;
const K = null != (a = null != (l = null == N ? void 0 : N.backdrop) ? l : b.Backdrop) ? a : d;
const Y = null != (c = null == P ? void 0 : P.root) ? c : x.root;
const Z = null != (u = null == P ? void 0 : P.backdrop) ? u : x.backdrop;
const X = pf({
elementType: G,
externalSlotProps: Y,
externalForwardedProps: L,
getSlotProps: j,
additionalProps: {
ref: o,
as: y
},
ownerState: q,
className: re(h, null == Y ? void 0 : Y.className, null == W ? void 0 : W.root, !q.open && q.exited && (null == W ? void 0 : W.hidden))
});
const J = pf({
elementType: K,
externalSlotProps: Z,
additionalProps: f,
getSlotProps: (e) => F(_({}, e, { onClick: (t) => {
M && M(t), null != e && e.onClick && e.onClick(t);
} })),
className: re(null == Z ? void 0 : Z.className, null == f ? void 0 : f.className, null == W ? void 0 : W.backdrop),
ownerState: q
});
return I || A || U && !V ? (0, import_jsx_runtime.jsx)(Vf, {
ref: B,
container: v,
disablePortal: O,
children: (0, import_jsx_runtime.jsxs)(G, _({}, X, { children: [!R && d ? (0, import_jsx_runtime.jsx)(K, _({}, J)) : null, (0, import_jsx_runtime.jsx)(zf, {
disableEnforceFocus: k,
disableAutoFocus: S,
disableRestoreFocus: E,
isEnabled: z,
open: A,
children: react.cloneElement(g, H)
})] }))
}) : null;
});
rh.propTypes = {
BackdropComponent: ee.elementType,
BackdropProps: ee.object,
children: Hd.isRequired,
classes: ee.object,
className: ee.string,
closeAfterTransition: ee.bool,
component: ee.elementType,
components: ee.shape({
Backdrop: ee.elementType,
Root: ee.elementType
}),
componentsProps: ee.shape({
backdrop: ee.oneOfType([ee.func, ee.object]),
root: ee.oneOfType([ee.func, ee.object])
}),
container: ee.oneOfType([Yd, ee.func]),
disableAutoFocus: ee.bool,
disableEnforceFocus: ee.bool,
disableEscapeKeyDown: ee.bool,
disablePortal: ee.bool,
disableRestoreFocus: ee.bool,
disableScrollLock: ee.bool,
hideBackdrop: ee.bool,
keepMounted: ee.bool,
onBackdropClick: ee.func,
onClose: ee.func,
onTransitionEnter: ee.func,
onTransitionExited: ee.func,
open: ee.bool.isRequired,
slotProps: ee.shape({
backdrop: ee.oneOfType([ee.func, ee.object]),
root: ee.oneOfType([ee.func, ee.object])
}),
slots: ee.shape({
backdrop: ee.elementType,
root: ee.elementType
}),
sx: ee.oneOfType([
ee.arrayOf(ee.oneOfType([
ee.func,
ee.object,
ee.bool
])),
ee.func,
ee.object
])
};
var nh = rh;
function oh(e) {
return Qn("MuiPopover", e);
}
ks("MuiPopover", ["root", "paper"]);
var ih = ["onEntering"];
var sh = [
"action",
"anchorEl",
"anchorOrigin",
"anchorPosition",
"anchorReference",
"children",
"className",
"container",
"elevation",
"marginThreshold",
"open",
"PaperProps",
"slots",
"slotProps",
"transformOrigin",
"TransitionComponent",
"transitionDuration",
"TransitionProps",
"disableScrollLock"
];
var ah = ["slotProps"];
function lh(e, t) {
let r = 0;
return "number" == typeof t ? r = t : "center" === t ? r = e.height / 2 : "bottom" === t && (r = e.height), r;
}
function ch(e, t) {
let r = 0;
return "number" == typeof t ? r = t : "center" === t ? r = e.width / 2 : "right" === t && (r = e.width), r;
}
function uh(e) {
return [e.horizontal, e.vertical].map((e) => "number" == typeof e ? `${e}px` : e).join(" ");
}
function ph(e) {
return "function" == typeof e ? e() : e;
}
var dh = pi(nh, {
name: "MuiPopover",
slot: "Root",
overridesResolver: (e, t) => t.root
})({});
var fh = pi(Rs, {
name: "MuiPopover",
slot: "Paper",
overridesResolver: (e, t) => t.paper
})({
position: "absolute",
overflowY: "auto",
overflowX: "hidden",
minWidth: 16,
minHeight: 16,
maxWidth: "calc(100% - 32px)",
maxHeight: "calc(100% - 32px)",
outline: 0
});
var hh = react.forwardRef(function(t, r) {
var o;
var i;
var s;
const a = yi({
props: t,
name: "MuiPopover"
}), { action: l, anchorEl: c, anchorOrigin: u = {
vertical: "top",
horizontal: "left"
}, anchorPosition: p, anchorReference: d = "anchorEl", children: f, className: h, container: m, elevation: g = 8, marginThreshold: v = 16, open: y, PaperProps: b = {}, slots: x, slotProps: S, transformOrigin: k = {
vertical: "top",
horizontal: "left"
}, TransitionComponent: C = Af, transitionDuration: O = "auto", TransitionProps: { onEntering: E } = {}, disableScrollLock: T = !1 } = a, R = w(a.TransitionProps, ih), I = w(a, sh), M = null != (o = null == S ? void 0 : S.paper) ? o : b, A = react.useRef(), P = ca(A, M.ref), N = _({}, a, {
anchorOrigin: u,
anchorReference: d,
elevation: g,
marginThreshold: v,
externalPaperSlotProps: M,
transformOrigin: k,
TransitionComponent: C,
transitionDuration: O,
TransitionProps: R
}), L = ((e) => {
const { classes: t } = e;
return ne({
root: ["root"],
paper: ["paper"]
}, oh, t);
})(N), D = react.useCallback(() => {
if ("anchorPosition" === d) return p || console.error("MUI: You need to provide a `anchorPosition` prop when using <Popover anchorReference=\"anchorPosition\" />."), p;
const e = ph(c);
const t = e && 1 === e.nodeType ? e : Qd(A.current).body;
const r = t.getBoundingClientRect();
{
const e = t.getBoundingClientRect();
0 === e.top && 0 === e.left && 0 === e.right && 0 === e.bottom && console.warn([
"MUI: The `anchorEl` prop provided to the component is invalid.",
"The anchor element should be part of the document layout.",
"Make sure the element is present in the document or that it's not display none."
].join("\n"));
}
return {
top: r.top + lh(r, u.vertical),
left: r.left + ch(r, u.horizontal)
};
}, [
c,
u.horizontal,
u.vertical,
p,
d
]), j = react.useCallback((e) => ({
vertical: lh(e, k.vertical),
horizontal: ch(e, k.horizontal)
}), [k.horizontal, k.vertical]), F = react.useCallback((e) => {
const t = {
width: e.offsetWidth,
height: e.offsetHeight
};
const r = j(t);
if ("none" === d) return {
top: null,
left: null,
transformOrigin: uh(r)
};
const n = D();
let o = n.top - r.vertical;
let i = n.left - r.horizontal;
const s = o + t.height;
const a = i + t.width;
const l = ef(ph(c));
const u = l.innerHeight - v;
const p = l.innerWidth - v;
if (null !== v && o < v) {
const e = o - v;
o -= e, r.vertical += e;
} else if (null !== v && s > u) {
const e = s - u;
o -= e, r.vertical += e;
}
if (t.height > u && t.height && u && console.error([
"MUI: The popover component is too tall.",
`Some part of it can not be seen on the screen (${t.height - u}px).`,
"Please consider adding a `max-height` to improve the user-experience."
].join("\n")), null !== v && i < v) {
const e = i - v;
i -= e, r.horizontal += e;
} else if (a > p) {
const e = a - p;
i -= e, r.horizontal += e;
}
return {
top: `${Math.round(o)}px`,
left: `${Math.round(i)}px`,
transformOrigin: uh(r)
};
}, [
c,
d,
D,
j,
v
]), [$, B] = react.useState(y), z = react.useCallback(() => {
const e = A.current;
if (!e) return;
const t = F(e);
null !== t.top && (e.style.top = t.top), null !== t.left && (e.style.left = t.left), e.style.transformOrigin = t.transformOrigin, B(!0);
}, [F]);
react.useEffect(() => (T && window.addEventListener("scroll", z), () => window.removeEventListener("scroll", z)), [
c,
T,
z
]), react.useEffect(() => {
y && z();
}), react.useImperativeHandle(l, () => y ? { updatePosition: () => {
z();
} } : null, [y, z]), react.useEffect(() => {
if (!y) return;
const e = Xd(() => {
z();
});
const t = ef(c);
return t.addEventListener("resize", e), () => {
e.clear(), t.removeEventListener("resize", e);
};
}, [
c,
y,
z
]);
let V = O;
"auto" !== O || C.muiSupportAuto || (V = void 0);
const U = m || (c ? Qd(ph(c)).body : void 0), q = null != (i = null == x ? void 0 : x.root) ? i : dh, W = null != (s = null == x ? void 0 : x.paper) ? s : fh, H = pf({
elementType: W,
externalSlotProps: _({}, M, { style: $ ? M.style : _({}, M.style, { opacity: 0 }) }),
additionalProps: {
elevation: g,
ref: P
},
ownerState: N,
className: re(L.paper, null == M ? void 0 : M.className)
}), G = pf({
elementType: q,
externalSlotProps: (null == S ? void 0 : S.root) || {},
externalForwardedProps: I,
additionalProps: {
ref: r,
slotProps: { backdrop: { invisible: !0 } },
container: U,
open: y
},
ownerState: N,
className: re(L.root, h)
}), { slotProps: K } = G, Y = w(G, ah);
return (0, import_jsx_runtime.jsx)(q, _({}, Y, !Fd(q) && {
slotProps: K,
disableScrollLock: T
}, { children: (0, import_jsx_runtime.jsx)(C, _({
appear: !0,
in: y,
onEntering: (e, t) => {
E && E(e, t), z();
},
onExited: () => {
B(!1);
},
timeout: V
}, R, { children: (0, import_jsx_runtime.jsx)(W, _({}, H, { children: f })) })) }));
});
hh.propTypes = {
action: sa,
anchorEl: Ci(ee.oneOfType([Yd, ee.func]), (e) => {
if (e.open && (!e.anchorReference || "anchorEl" === e.anchorReference)) {
const t = ph(e.anchorEl);
if (!t || 1 !== t.nodeType) return new Error(["MUI: The `anchorEl` prop provided to the component is invalid.", `It should be an Element or PopoverVirtualElement instance but it's \`${t}\` instead.`].join("\n"));
{
const e = t.getBoundingClientRect();
if (0 === e.top && 0 === e.left && 0 === e.right && 0 === e.bottom) return new Error([
"MUI: The `anchorEl` prop provided to the component is invalid.",
"The anchor element should be part of the document layout.",
"Make sure the element is present in the document or that it's not display none."
].join("\n"));
}
}
return null;
}),
anchorOrigin: ee.shape({
horizontal: ee.oneOfType([ee.oneOf([
"center",
"left",
"right"
]), ee.number]).isRequired,
vertical: ee.oneOfType([ee.oneOf([
"bottom",
"center",
"top"
]), ee.number]).isRequired
}),
anchorPosition: ee.shape({
left: ee.number.isRequired,
top: ee.number.isRequired
}),
anchorReference: ee.oneOf([
"anchorEl",
"anchorPosition",
"none"
]),
children: ee.node,
classes: ee.object,
className: ee.string,
container: ee.oneOfType([Yd, ee.func]),
disableScrollLock: ee.bool,
elevation: ki,
marginThreshold: ee.number,
onClose: ee.func,
open: ee.bool.isRequired,
PaperProps: ee.shape({ component: aa }),
slotProps: ee.shape({
paper: ee.oneOfType([ee.func, ee.object]),
root: ee.oneOfType([ee.func, ee.object])
}),
slots: ee.shape({
paper: ee.elementType,
root: ee.elementType
}),
sx: ee.oneOfType([
ee.arrayOf(ee.oneOfType([
ee.func,
ee.object,
ee.bool
])),
ee.func,
ee.object
]),
transformOrigin: ee.shape({
horizontal: ee.oneOfType([ee.oneOf([
"center",
"left",
"right"
]), ee.number]).isRequired,
vertical: ee.oneOfType([ee.oneOf([
"bottom",
"center",
"top"
]), ee.number]).isRequired
}),
TransitionComponent: ee.elementType,
transitionDuration: ee.oneOfType([
ee.oneOf(["auto"]),
ee.number,
ee.shape({
appear: ee.number,
enter: ee.number,
exit: ee.number
})
]),
TransitionProps: ee.object
};
var mh = hh;
function gh(e) {
return Qn("MuiMenu", e);
}
ks("MuiMenu", [
"root",
"paper",
"list"
]);
var vh = ["onEntering"];
var yh = [
"autoFocus",
"children",
"className",
"disableAutoFocusItem",
"MenuListProps",
"onClose",
"open",
"PaperProps",
"PopoverClasses",
"transitionDuration",
"TransitionProps",
"variant",
"slots",
"slotProps"
];
var bh = {
vertical: "top",
horizontal: "right"
};
var wh = {
vertical: "top",
horizontal: "left"
};
var _h = pi(mh, {
shouldForwardProp: (e) => ui(e) || "classes" === e,
name: "MuiMenu",
slot: "Root",
overridesResolver: (e, t) => t.root
})({});
var xh = pi(fh, {
name: "MuiMenu",
slot: "Paper",
overridesResolver: (e, t) => t.paper
})({
maxHeight: "calc(100% - 96px)",
WebkitOverflowScrolling: "touch"
});
var Sh = pi(Cf, {
name: "MuiMenu",
slot: "List",
overridesResolver: (e, t) => t.list
})({ outline: 0 });
var kh = react.forwardRef(function(t, r) {
var o;
var i;
const s = yi({
props: t,
name: "MuiMenu"
}), { autoFocus: a = !0, children: l, className: c, disableAutoFocusItem: u = !1, MenuListProps: p = {}, onClose: d, open: f, PaperProps: h = {}, PopoverClasses: m, transitionDuration: g = "auto", TransitionProps: { onEntering: v } = {}, variant: y = "selectedMenu", slots: b = {}, slotProps: x = {} } = s, S = w(s.TransitionProps, vh), k = w(s, yh), C = ps(), O = _({}, s, {
autoFocus: a,
disableAutoFocusItem: u,
MenuListProps: p,
onEntering: v,
PaperProps: h,
transitionDuration: g,
TransitionProps: S,
variant: y
}), E = ((e) => {
const { classes: t } = e;
return ne({
root: ["root"],
paper: ["paper"],
list: ["list"]
}, gh, t);
})(O), T = a && !u && f, R = react.useRef(null);
let I = -1;
react.Children.map(l, (e, t) => {
react.isValidElement(e) && (jd.isFragment(e) && console.error(["MUI: The Menu component doesn't accept a Fragment as a child.", "Consider providing an array instead."].join("\n")), e.props.disabled || ("selectedMenu" === y && e.props.selected || -1 === I) && (I = t));
});
const M = null != (o = b.paper) ? o : xh;
const A = null != (i = x.paper) ? i : h;
const P = pf({
elementType: b.root,
externalSlotProps: x.root,
ownerState: O,
className: [E.root, c]
});
const N = pf({
elementType: M,
externalSlotProps: A,
ownerState: O,
className: E.paper
});
return (0, import_jsx_runtime.jsx)(_h, _({
onClose: d,
anchorOrigin: {
vertical: "bottom",
horizontal: C ? "right" : "left"
},
transformOrigin: C ? bh : wh,
slots: {
paper: M,
root: b.root
},
slotProps: {
root: P,
paper: N
},
open: f,
ref: r,
transitionDuration: g,
TransitionProps: _({ onEntering: (e, t) => {
R.current && R.current.adjustStyleForScrollbar(e, { direction: C ? "rtl" : "ltr" }), v && v(e, t);
} }, S),
ownerState: O
}, k, {
classes: m,
children: (0, import_jsx_runtime.jsx)(Sh, _({
onKeyDown: (e) => {
"Tab" === e.key && (e.preventDefault(), d && d(e, "tabKeyDown"));
},
actions: R,
autoFocus: a && (-1 === I || u),
autoFocusItem: T,
variant: y
}, p, {
className: re(E.list, p.className),
children: l
}))
}));
});
kh.propTypes = {
anchorEl: ee.oneOfType([Yd, ee.func]),
autoFocus: ee.bool,
children: ee.node,
classes: ee.object,
className: ee.string,
disableAutoFocusItem: ee.bool,
MenuListProps: ee.object,
onClose: ee.func,
open: ee.bool.isRequired,
PaperProps: ee.object,
PopoverClasses: ee.object,
slotProps: ee.shape({
paper: ee.oneOfType([ee.func, ee.object]),
root: ee.oneOfType([ee.func, ee.object])
}),
slots: ee.shape({
paper: ee.elementType,
root: ee.elementType
}),
sx: ee.oneOfType([
ee.arrayOf(ee.oneOfType([
ee.func,
ee.object,
ee.bool
])),
ee.func,
ee.object
]),
transitionDuration: ee.oneOfType([
ee.oneOf(["auto"]),
ee.number,
ee.shape({
appear: ee.number,
enter: ee.number,
exit: ee.number
})
]),
TransitionProps: ee.object,
variant: ee.oneOf(["menu", "selectedMenu"])
};
var Ch = kh;
var Oh = react.default.forwardRef((e, t) => {
var _n$anchorOrigin;
var _n$transformOrigin;
const { direction: r } = Ss(), n = _objectSpread2({}, e);
return "rtl" === r && ((_n$anchorOrigin = n.anchorOrigin) !== null && _n$anchorOrigin !== void 0 && _n$anchorOrigin.horizontal && (n.anchorOrigin = _objectSpread2(_objectSpread2({}, n.anchorOrigin), {}, { horizontal: "left" === n.anchorOrigin.horizontal ? "right" : "left" })), (_n$transformOrigin = n.transformOrigin) !== null && _n$transformOrigin !== void 0 && _n$transformOrigin.horizontal && (n.transformOrigin = _objectSpread2(_objectSpread2({}, n.transformOrigin), {}, { horizontal: "left" === n.transformOrigin.horizontal ? "right" : "left" }))), react.default.createElement(mh, _objectSpread2(_objectSpread2({}, n), {}, { ref: t }));
});
var Eh = { elevation: 6 };
var Th = react.default.forwardRef((e, t) => react.default.createElement(Ch, _objectSpread2(_objectSpread2(_objectSpread2({ as: Oh }, Eh), e), {}, { ref: t })));
Th.defaultProps = Eh;
var Rh = Th;
function Ih(e) {
return Qn("MuiListItemIcon", e);
}
var Mh = ks("MuiListItemIcon", ["root", "alignItemsFlexStart"]);
var Ah = ["className"];
var Ph = pi("div", {
name: "MuiListItemIcon",
slot: "Root",
overridesResolver: (e, t) => {
const { ownerState: r } = e;
return [t.root, "flex-start" === r.alignItems && t.alignItemsFlexStart];
}
})(({ theme: e, ownerState: t }) => _({
minWidth: 56,
color: (e.vars || e).palette.action.active,
flexShrink: 0,
display: "inline-flex"
}, "flex-start" === t.alignItems && { marginTop: 8 }));
var Nh = react.forwardRef(function(t, r) {
const o = yi({
props: t,
name: "MuiListItemIcon"
}), { className: i } = o, s = w(o, Ah), a = _({}, o, { alignItems: react.useContext(ff).alignItems }), l = ((e) => {
const { alignItems: t, classes: r } = e;
return ne({ root: ["root", "flex-start" === t && "alignItemsFlexStart"] }, Ih, r);
})(a);
return (0, import_jsx_runtime.jsx)(Ph, _({
className: re(l.root, i),
ownerState: a,
ref: r
}, s));
});
Nh.propTypes = {
children: ee.node,
classes: ee.object,
className: ee.string,
sx: ee.oneOfType([
ee.arrayOf(ee.oneOfType([
ee.func,
ee.object,
ee.bool
])),
ee.func,
ee.object
])
};
var Lh = Nh;
function Dh(e) {
return Qn("MuiListItemText", e);
}
var jh = ks("MuiListItemText", [
"root",
"multiline",
"dense",
"inset",
"primary",
"secondary"
]);
var Fh = [
"children",
"className",
"disableTypography",
"inset",
"primary",
"primaryTypographyProps",
"secondary",
"secondaryTypographyProps"
];
var $h = pi("div", {
name: "MuiListItemText",
slot: "Root",
overridesResolver: (e, t) => {
const { ownerState: r } = e;
return [
{ [`& .${jh.primary}`]: t.primary },
{ [`& .${jh.secondary}`]: t.secondary },
t.root,
r.inset && t.inset,
r.primary && r.secondary && t.multiline,
r.dense && t.dense
];
}
})(({ ownerState: e }) => _({
flex: "1 1 auto",
minWidth: 0,
marginTop: 4,
marginBottom: 4
}, e.primary && e.secondary && {
marginTop: 6,
marginBottom: 6
}, e.inset && { paddingLeft: 56 }));
var Bh = react.forwardRef(function(r, o) {
const i = yi({
props: r,
name: "MuiListItemText"
}), { children: s, className: a, disableTypography: l = !1, inset: c = !1, primary: u, primaryTypographyProps: p, secondary: d, secondaryTypographyProps: f } = i, h = w(i, Fh), { dense: m } = react.useContext(ff);
let g = null != u ? u : s;
let v = d;
const y = _({}, i, {
disableTypography: l,
inset: c,
primary: !!g,
secondary: !!v,
dense: m
});
const b = ((e) => {
const { classes: t, inset: r, primary: n, secondary: o, dense: i } = e;
return ne({
root: [
"root",
r && "inset",
i && "dense",
n && o && "multiline"
],
primary: ["primary"],
secondary: ["secondary"]
}, Dh, t);
})(y);
return null == g || g.type === ea || l || (g = (0, import_jsx_runtime.jsx)(ea, _({
variant: m ? "body2" : "body1",
className: b.primary,
component: null != p && p.variant ? void 0 : "span",
display: "block"
}, p, { children: g }))), null == v || v.type === ea || l || (v = (0, import_jsx_runtime.jsx)(ea, _({
variant: "body2",
className: b.secondary,
color: "text.secondary",
display: "block"
}, f, { children: v }))), (0, import_jsx_runtime.jsxs)($h, _({
className: re(b.root, a),
ownerState: y,
ref: o
}, h, { children: [g, v] }));
});
Bh.propTypes = {
children: ee.node,
classes: ee.object,
className: ee.string,
disableTypography: ee.bool,
inset: ee.bool,
primary: ee.node,
primaryTypographyProps: ee.object,
secondary: ee.node,
secondaryTypographyProps: ee.object,
sx: ee.oneOfType([
ee.arrayOf(ee.oneOfType([
ee.func,
ee.object,
ee.bool
])),
ee.func,
ee.object
])
};
var zh = Bh;
function Vh(e) {
return Qn("MuiMenuItem", e);
}
var Uh = ks("MuiMenuItem", [
"root",
"focusVisible",
"dense",
"disabled",
"divider",
"gutters",
"selected"
]);
var qh = [
"autoFocus",
"component",
"dense",
"divider",
"disableGutters",
"focusVisibleClassName",
"role",
"tabIndex",
"className"
];
var Wh = pi(ll, {
shouldForwardProp: (e) => ui(e) || "classes" === e,
name: "MuiMenuItem",
slot: "Root",
overridesResolver: (e, t) => {
const { ownerState: r } = e;
return [
t.root,
r.dense && t.dense,
r.divider && t.divider,
!r.disableGutters && t.gutters
];
}
})(({ theme: e, ownerState: t }) => _({}, e.typography.body1, {
display: "flex",
justifyContent: "flex-start",
alignItems: "center",
position: "relative",
textDecoration: "none",
minHeight: 48,
paddingTop: 6,
paddingBottom: 6,
boxSizing: "border-box",
whiteSpace: "nowrap"
}, !t.disableGutters && {
paddingLeft: 16,
paddingRight: 16
}, t.divider && {
borderBottom: `1px solid ${(e.vars || e).palette.divider}`,
backgroundClip: "padding-box"
}, {
"&:hover": {
textDecoration: "none",
backgroundColor: (e.vars || e).palette.action.hover,
"@media (hover: none)": { backgroundColor: "transparent" }
},
[`&.${Uh.selected}`]: {
backgroundColor: e.vars ? `rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})` : so.alpha(e.palette.primary.main, e.palette.action.selectedOpacity),
[`&.${Uh.focusVisible}`]: { backgroundColor: e.vars ? `rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))` : so.alpha(e.palette.primary.main, e.palette.action.selectedOpacity + e.palette.action.focusOpacity) }
},
[`&.${Uh.selected}:hover`]: {
backgroundColor: e.vars ? `rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))` : so.alpha(e.palette.primary.main, e.palette.action.selectedOpacity + e.palette.action.hoverOpacity),
"@media (hover: none)": { backgroundColor: e.vars ? `rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})` : so.alpha(e.palette.primary.main, e.palette.action.selectedOpacity) }
},
[`&.${Uh.focusVisible}`]: { backgroundColor: (e.vars || e).palette.action.focus },
[`&.${Uh.disabled}`]: { opacity: (e.vars || e).palette.action.disabledOpacity },
[`& + .${su.root}`]: {
marginTop: e.spacing(1),
marginBottom: e.spacing(1)
},
[`& + .${su.inset}`]: { marginLeft: 52 },
[`& .${jh.root}`]: {
marginTop: 0,
marginBottom: 0
},
[`& .${jh.inset}`]: { paddingLeft: 36 },
[`& .${Mh.root}`]: { minWidth: 36 }
}, !t.dense && { [e.breakpoints.up("sm")]: { minHeight: "auto" } }, t.dense && _({
minHeight: 32,
paddingTop: 4,
paddingBottom: 4
}, e.typography.body2, { [`& .${Mh.root} svg`]: { fontSize: "1.25rem" } })));
var Hh = react.forwardRef(function(t, r) {
const o = yi({
props: t,
name: "MuiMenuItem"
}), { autoFocus: i = !1, component: s = "li", dense: a = !1, divider: l = !1, disableGutters: c = !1, focusVisibleClassName: u, role: p = "menuitem", tabIndex: d, className: f } = o, h = w(o, qh), m = react.useContext(ff), g = react.useMemo(() => ({
dense: a || m.dense || !1,
disableGutters: c
}), [
m.dense,
a,
c
]), v = react.useRef(null);
ua(() => {
i && (v.current ? v.current.focus() : console.error("MUI: Unable to set focus to a MenuItem whose component has not been rendered."));
}, [i]);
const y = _({}, o, {
dense: g.dense,
divider: l,
disableGutters: c
});
const b = ((e) => {
const { disabled: t, dense: r, divider: n, disableGutters: o, selected: i, classes: s } = e;
return _({}, s, ne({ root: [
"root",
r && "dense",
t && "disabled",
!o && "gutters",
n && "divider",
i && "selected"
] }, Vh, s));
})(o);
const x = ca(v, r);
let S;
return o.disabled || (S = void 0 !== d ? d : -1), (0, import_jsx_runtime.jsx)(ff.Provider, {
value: g,
children: (0, import_jsx_runtime.jsx)(Wh, _({
ref: x,
role: p,
tabIndex: S,
component: s,
focusVisibleClassName: re(b.focusVisible, u),
className: re(b.root, f)
}, h, {
ownerState: y,
classes: b
}))
});
});
Hh.propTypes = {
autoFocus: ee.bool,
children: ee.node,
classes: ee.object,
className: ee.string,
component: ee.elementType,
dense: ee.bool,
disabled: ee.bool,
disableGutters: ee.bool,
divider: ee.bool,
focusVisibleClassName: ee.string,
role: ee.string,
selected: ee.bool,
sx: ee.oneOfType([
ee.arrayOf(ee.oneOfType([
ee.func,
ee.object,
ee.bool
])),
ee.func,
ee.object
]),
tabIndex: ee.number
};
var Gh = Hh;
var Kh = react.default.forwardRef((e, t) => react.default.createElement(Gh, _objectSpread2(_objectSpread2({}, e), {}, { ref: t })));
var Yh = react.default.forwardRef((e, t) => react.default.createElement(Lh, _objectSpread2(_objectSpread2({}, e), {}, { ref: t })));
var Zh = react.default.forwardRef((e, t) => react.default.createElement(zh, _objectSpread2(_objectSpread2({}, e), {}, { ref: t })));
var Xh = react.forwardRef((e, t) => react.createElement(ru, _objectSpread2(_objectSpread2({ viewBox: "0 0 24 24" }, e), {}, { ref: t }), react.createElement("path", {
fillRule: "evenodd",
clipRule: "evenodd",
d: "M14 4C14 3.58579 14.3358 3.25 14.75 3.25H19.75C20.1642 3.25 20.5 3.58579 20.5 4V9C20.5 9.41421 20.1642 9.75 19.75 9.75C19.3358 9.75 19 9.41421 19 9V5.81066L10.2803 14.5303C9.98744 14.8232 9.51256 14.8232 9.21967 14.5303C8.92678 14.2374 8.92678 13.7626 9.21967 13.4697L17.9393 4.75H14.75C14.3358 4.75 14 4.41421 14 4ZM3.80546 7.05546C4.32118 6.53973 5.02065 6.25 5.75 6.25H10.75C11.1642 6.25 11.5 6.58579 11.5 7C11.5 7.41421 11.1642 7.75 10.75 7.75H5.75C5.41848 7.75 5.10054 7.8817 4.86612 8.11612C4.6317 8.35054 4.5 8.66848 4.5 9V18C4.5 18.3315 4.6317 18.6495 4.86612 18.8839C5.10054 19.1183 5.41848 19.25 5.75 19.25H14.75C15.0815 19.25 15.3995 19.1183 15.6339 18.8839C15.8683 18.6495 16 18.3315 16 18V13C16 12.5858 16.3358 12.25 16.75 12.25C17.1642 12.25 17.5 12.5858 17.5 13V18C17.5 18.7293 17.2103 19.4288 16.6945 19.9445C16.1788 20.4603 15.4793 20.75 14.75 20.75H5.75C5.02065 20.75 4.32118 20.4603 3.80546 19.9445C3.28973 19.4288 3 18.7293 3 18V9C3 8.27065 3.28973 7.57118 3.80546 7.05546Z"
})));
var Jh = qp.createInstance();
var Qh;
Jh.use((Qh = (e, t) => fetch((window.elementorOneTopBarConfig.localeLanguageBaseUrls[e] || window.elementorOneTopBarConfig.localeLanguageBaseUrls.en) + t + ".json").then(function(response) {
if (!response.ok) throw new Error("Failed to load locale");
return response.json();
}), {
type: "backend",
init: function(e, t, r) {},
read: function(e, t, r) {
if (Qh.length < 3) try {
var n = Qh(e, t);
n && "function" == typeof n.then ? n.then(function(e) {
return r(null, e && e.default || e);
}).catch(r) : r(null, n);
} catch (e) {
r(e);
}
else Qh(e, t);
}
})).use(rd).init({
lng: "en",
fallbackLng: "en",
ns: "common",
defaultNS: "common",
interpolation: { escapeValue: !1 },
react: { useSuspense: !0 }
});
var em = class {
subscribe(e) {
return this.listeners.add(e), this.onSubscribe(), () => {
this.listeners.delete(e), this.onUnsubscribe();
};
}
hasListeners() {
return this.listeners.size > 0;
}
onSubscribe() {}
onUnsubscribe() {}
constructor() {
this.listeners = /* @__PURE__ */ new Set(), this.subscribe = this.subscribe.bind(this);
}
};
function tm(e, t) {
if (!Object.prototype.hasOwnProperty.call(e, t)) throw new TypeError("attempted to use private field on non-instance");
return e;
}
var rm;
var nm;
var om = 0;
function im(e) {
return "__private_" + om++ + "_" + e;
}
var sm = {
setTimeout: (e, t) => setTimeout(e, t),
clearTimeout: (e) => clearTimeout(e),
setInterval: (e, t) => setInterval(e, t),
clearInterval: (e) => clearInterval(e)
};
var am = new (rm = im("_provider"), nm = im("_providerCalled"), class {
setTimeoutProvider(e) {
tm(this, nm)[nm] && e !== tm(this, rm)[rm] && console.error("[timeoutManager]: Switching provider after calls to previous provider might result in unexpected behavior.", {
previous: tm(this, rm)[rm],
provider: e
}), tm(this, rm)[rm] = e, tm(this, nm)[nm] = !1;
}
setTimeout(e, t) {
return tm(this, nm)[nm] = !0, tm(this, rm)[rm].setTimeout(e, t);
}
clearTimeout(e) {
tm(this, rm)[rm].clearTimeout(e);
}
setInterval(e, t) {
return tm(this, nm)[nm] = !0, tm(this, rm)[rm].setInterval(e, t);
}
clearInterval(e) {
tm(this, rm)[rm].clearInterval(e);
}
constructor() {
Object.defineProperty(this, rm, {
writable: !0,
value: void 0
}), Object.defineProperty(this, nm, {
writable: !0,
value: void 0
}), tm(this, rm)[rm] = sm, tm(this, nm)[nm] = !1;
}
})();
var lm = "undefined" == typeof window || "Deno" in globalThis;
function cm() {}
function um(e) {
return "number" == typeof e && e >= 0 && e !== Infinity;
}
function pm(e, t) {
return Math.max(e + (t || 0) - Date.now(), 0);
}
function dm(e, t) {
return "function" == typeof e ? e(t) : e;
}
function fm(e, t) {
return "function" == typeof e ? e(t) : e;
}
function hm(e, t) {
const { type: r = "all", exact: n, fetchStatus: o, predicate: i, queryKey: s, stale: a } = e;
if (s) {
if (n) {
if (t.queryHash !== gm(s, t.options)) return !1;
} else if (!ym(t.queryKey, s)) return !1;
}
if ("all" !== r) {
const e = t.isActive();
if ("active" === r && !e) return !1;
if ("inactive" === r && e) return !1;
}
return !("boolean" == typeof a && t.isStale() !== a || o && o !== t.state.fetchStatus || i && !i(t));
}
function mm(e, t) {
const { exact: r, status: n, predicate: o, mutationKey: i } = e;
if (i) {
if (!t.options.mutationKey) return !1;
if (r) {
if (vm(t.options.mutationKey) !== vm(i)) return !1;
} else if (!ym(t.options.mutationKey, i)) return !1;
}
return !(n && t.state.status !== n || o && !o(t));
}
function gm(e, t) {
return ((t === null || t === void 0 ? void 0 : t.queryKeyHashFn) || vm)(e);
}
function vm(e) {
return JSON.stringify(e, (e, t) => Sm(t) ? Object.keys(t).sort().reduce((e, r) => (e[r] = t[r], e), {}) : t);
}
function ym(e, t) {
return e === t || typeof e == typeof t && !(!e || !t || "object" != typeof e || "object" != typeof t) && Object.keys(t).every((r) => ym(e[r], t[r]));
}
var bm = Object.prototype.hasOwnProperty;
function wm(e, t, r = 0) {
if (e === t) return e;
if (r > 500) return t;
const n = xm(e) && xm(t);
if (!(n || Sm(e) && Sm(t))) return t;
const o = (n ? e : Object.keys(e)).length;
const i = n ? t : Object.keys(t);
const s = i.length;
const a = n ? new Array(s) : {};
let l = 0;
for (let c = 0; c < s; c++) {
const s = n ? c : i[c];
const u = e[s];
const p = t[s];
if (u === p) {
a[s] = u, (n ? c < o : bm.call(e, s)) && l++;
continue;
}
if (null === u || null === p || "object" != typeof u || "object" != typeof p) {
a[s] = p;
continue;
}
const d = wm(u, p, r + 1);
a[s] = d, d === u && l++;
}
return o === s && l === o ? e : a;
}
function _m(e, t) {
if (!t || Object.keys(e).length !== Object.keys(t).length) return !1;
for (const r in e) if (e[r] !== t[r]) return !1;
return !0;
}
function xm(e) {
return Array.isArray(e) && e.length === Object.keys(e).length;
}
function Sm(e) {
if (!km(e)) return !1;
const t = e.constructor;
if (void 0 === t) return !0;
const r = t.prototype;
return !!km(r) && !!r.hasOwnProperty("isPrototypeOf") && Object.getPrototypeOf(e) === Object.prototype;
}
function km(e) {
return "[object Object]" === Object.prototype.toString.call(e);
}
function Cm(e, t, r) {
if ("function" == typeof r.structuralSharing) return r.structuralSharing(e, t);
if (!1 !== r.structuralSharing) try {
return wm(e, t);
} catch (e) {
throw console.error(`Structural sharing requires data to be JSON serializable. To fix this, turn off structuralSharing or return JSON-serializable data from your queryFn. [${r.queryHash}]: ${e}`), e;
}
return t;
}
function Om(e, t, r = 0) {
const n = [...e, t];
return r && n.length > r ? n.slice(1) : n;
}
function Em(e, t, r = 0) {
const n = [t, ...e];
return r && n.length > r ? n.slice(0, -1) : n;
}
var Tm = Symbol();
function Rm(e, t) {
return e.queryFn === Tm && console.error(`Attempted to invoke queryFn when set to skipToken. This is likely a configuration error. Query hash: '${e.queryHash}'`), !e.queryFn && (t === null || t === void 0 ? void 0 : t.initialPromise) ? () => t.initialPromise : e.queryFn && e.queryFn !== Tm ? e.queryFn : () => Promise.reject(/* @__PURE__ */ new Error(`Missing queryFn: '${e.queryHash}'`));
}
function Im(e, t) {
return "function" == typeof e ? e(...t) : !!e;
}
function Mm(e, t) {
if (!Object.prototype.hasOwnProperty.call(e, t)) throw new TypeError("attempted to use private field on non-instance");
return e;
}
var Am;
var Pm;
var Nm;
var Lm = 0;
function Dm(e) {
return "__private_" + Lm++ + "_" + e;
}
var jm = new (Am = Dm("_focused"), Pm = Dm("_cleanup"), Nm = Dm("_setup"), class extends em {
onSubscribe() {
Mm(this, Pm)[Pm] || this.setEventListener(Mm(this, Nm)[Nm]);
}
onUnsubscribe() {
this.hasListeners() || (null == Mm(this, Pm)[Pm] || Mm(this, Pm)[Pm].call(this), Mm(this, Pm)[Pm] = void 0);
}
setEventListener(e) {
Mm(this, Nm)[Nm] = e, null == Mm(this, Pm)[Pm] || Mm(this, Pm)[Pm].call(this), Mm(this, Pm)[Pm] = e((e) => {
"boolean" == typeof e ? this.setFocused(e) : this.onFocus();
});
}
setFocused(e) {
Mm(this, Am)[Am] !== e && (Mm(this, Am)[Am] = e, this.onFocus());
}
onFocus() {
const e = this.isFocused();
this.listeners.forEach((t) => {
t(e);
});
}
isFocused() {
var _globalThis$document;
return "boolean" == typeof Mm(this, Am)[Am] ? Mm(this, Am)[Am] : "hidden" !== ((_globalThis$document = globalThis.document) === null || _globalThis$document === void 0 ? void 0 : _globalThis$document.visibilityState);
}
constructor() {
super(), Object.defineProperty(this, Am, {
writable: !0,
value: void 0
}), Object.defineProperty(this, Pm, {
writable: !0,
value: void 0
}), Object.defineProperty(this, Nm, {
writable: !0,
value: void 0
}), Mm(this, Nm)[Nm] = (e) => {
if (!lm && window.addEventListener) {
const t = () => e();
return window.addEventListener("visibilitychange", t, !1), () => {
window.removeEventListener("visibilitychange", t);
};
}
};
}
})();
function Fm() {
let e;
let t;
const r = new Promise((r, n) => {
e = r, t = n;
});
function n(e) {
Object.assign(r, e), delete r.resolve, delete r.reject;
}
return r.status = "pending", r.catch(() => {}), r.resolve = (t) => {
n({
status: "fulfilled",
value: t
}), e(t);
}, r.reject = (e) => {
n({
status: "rejected",
reason: e
}), t(e);
}, r;
}
var $m = function(e) {
setTimeout(e, 0);
};
var Bm = function() {
let e = [];
let t = 0;
let r = (e) => {
e();
};
let n = (e) => {
e();
};
let o = $m;
const i = (n) => {
t ? e.push(n) : o(() => {
r(n);
});
};
return {
batch: (i) => {
let s;
t++;
try {
s = i();
} finally {
t--, t || (() => {
const t = e;
e = [], t.length && o(() => {
n(() => {
t.forEach((e) => {
r(e);
});
});
});
})();
}
return s;
},
batchCalls: (e) => (...t) => {
i(() => {
e(...t);
});
},
schedule: i,
setNotifyFunction: (e) => {
r = e;
},
setBatchNotifyFunction: (e) => {
n = e;
},
setScheduler: (e) => {
o = e;
}
};
}();
function zm(e, t) {
if (!Object.prototype.hasOwnProperty.call(e, t)) throw new TypeError("attempted to use private field on non-instance");
return e;
}
var Vm;
var Um;
var qm;
var Wm = 0;
function Hm(e) {
return "__private_" + Wm++ + "_" + e;
}
var Gm = new (Vm = Hm("_online"), Um = Hm("_cleanup"), qm = Hm("_setup"), class extends em {
onSubscribe() {
zm(this, Um)[Um] || this.setEventListener(zm(this, qm)[qm]);
}
onUnsubscribe() {
this.hasListeners() || (null == zm(this, Um)[Um] || zm(this, Um)[Um].call(this), zm(this, Um)[Um] = void 0);
}
setEventListener(e) {
zm(this, qm)[qm] = e, null == zm(this, Um)[Um] || zm(this, Um)[Um].call(this), zm(this, Um)[Um] = e(this.setOnline.bind(this));
}
setOnline(e) {
zm(this, Vm)[Vm] !== e && (zm(this, Vm)[Vm] = e, this.listeners.forEach((t) => {
t(e);
}));
}
isOnline() {
return zm(this, Vm)[Vm];
}
constructor() {
super(), Object.defineProperty(this, Vm, {
writable: !0,
value: void 0
}), Object.defineProperty(this, Um, {
writable: !0,
value: void 0
}), Object.defineProperty(this, qm, {
writable: !0,
value: void 0
}), zm(this, Vm)[Vm] = !0, zm(this, qm)[qm] = (e) => {
if (!lm && window.addEventListener) {
const t = () => e(!0);
const r = () => e(!1);
return window.addEventListener("online", t, !1), window.addEventListener("offline", r, !1), () => {
window.removeEventListener("online", t), window.removeEventListener("offline", r);
};
}
};
}
})();
function Km(e) {
return Math.min(1e3 * Math.pow(2, e), 3e4);
}
function Ym(e) {
return "online" !== (e !== null && e !== void 0 ? e : "online") || Gm.isOnline();
}
var Zm = class extends Error {
constructor(e) {
super("CancelledError"), this.revert = e === null || e === void 0 ? void 0 : e.revert, this.silent = e === null || e === void 0 ? void 0 : e.silent;
}
};
function Xm(e) {
let t;
let r = !1;
let n = 0;
const o = Fm();
const i = () => "pending" !== o.status;
const s = () => jm.isFocused() && ("always" === e.networkMode || Gm.isOnline()) && e.canRun();
const a = () => Ym(e.networkMode) && e.canRun();
const l = (e) => {
i() || (t === null || t === void 0 || t(), o.resolve(e));
};
const c = (e) => {
i() || (t === null || t === void 0 || t(), o.reject(e));
};
const u = () => new Promise((r) => {
var _e$onPause;
t = (e) => {
(i() || s()) && r(e);
}, (_e$onPause = e.onPause) === null || _e$onPause === void 0 || _e$onPause.call(e);
}).then(() => {
var _e$onContinue;
t = void 0, i() || (_e$onContinue = e.onContinue) === null || _e$onContinue === void 0 || _e$onContinue.call(e);
});
const p = () => {
if (i()) return;
let t;
const o = 0 === n ? e.initialPromise : void 0;
try {
t = o !== null && o !== void 0 ? o : e.fn();
} catch (e) {
t = Promise.reject(e);
}
Promise.resolve(t).then(l).catch((t) => {
var _e$retry;
var _e$retryDelay;
var _e$onFail;
if (i()) return;
const o = (_e$retry = e.retry) !== null && _e$retry !== void 0 ? _e$retry : lm ? 0 : 3;
const a = (_e$retryDelay = e.retryDelay) !== null && _e$retryDelay !== void 0 ? _e$retryDelay : Km;
const l = "function" == typeof a ? a(n, t) : a;
const d = !0 === o || "number" == typeof o && n < o || "function" == typeof o && o(n, t);
var f;
!r && d ? (n++, (_e$onFail = e.onFail) === null || _e$onFail === void 0 || _e$onFail.call(e, n, t), (f = l, new Promise((e) => {
am.setTimeout(e, f);
})).then(() => s() ? void 0 : u()).then(() => {
r ? c(t) : p();
})) : c(t);
});
};
return {
promise: o,
status: () => o.status,
cancel: (t) => {
if (!i()) {
var _e$onCancel;
const r = new Zm(t);
c(r), (_e$onCancel = e.onCancel) === null || _e$onCancel === void 0 || _e$onCancel.call(e, r);
}
},
continue: () => (t === null || t === void 0 || t(), o),
cancelRetry: () => {
r = !0;
},
continueRetry: () => {
r = !1;
},
canStart: a,
start: () => (a() ? p() : u().then(p), o)
};
}
function Jm(e, t) {
if (!Object.prototype.hasOwnProperty.call(e, t)) throw new TypeError("attempted to use private field on non-instance");
return e;
}
var Qm;
var eg = 0;
function tg(e) {
return "__private_" + eg++ + "_" + e;
}
var rg = (Qm = tg("_gcTimeout"), class {
destroy() {
this.clearGcTimeout();
}
scheduleGc() {
this.clearGcTimeout(), um(this.gcTime) && (Jm(this, Qm)[Qm] = am.setTimeout(() => {
this.optionalRemove();
}, this.gcTime));
}
updateGcTime(e) {
this.gcTime = Math.max(this.gcTime || 0, e !== null && e !== void 0 ? e : lm ? Infinity : 3e5);
}
clearGcTimeout() {
Jm(this, Qm)[Qm] && (am.clearTimeout(Jm(this, Qm)[Qm]), Jm(this, Qm)[Qm] = void 0);
}
constructor() {
Object.defineProperty(this, Qm, {
writable: !0,
value: void 0
});
}
});
function ng(e, t) {
if (!Object.prototype.hasOwnProperty.call(e, t)) throw new TypeError("attempted to use private field on non-instance");
return e;
}
var og;
var ig;
var sg;
var ag;
var lg;
var cg;
var ug;
var pg;
var dg;
var fg = 0;
function hg(e) {
return "__private_" + fg++ + "_" + e;
}
var mg = (og = hg("_initialState"), ig = hg("_revertState"), sg = hg("_cache"), ag = hg("_client"), lg = hg("_retryer"), cg = hg("_defaultOptions"), ug = hg("_abortSignalConsumed"), pg = hg("_dispatch"), dg = class extends rg {
get meta() {
return this.options.meta;
}
get promise() {
var _ng$lg;
return (_ng$lg = ng(this, lg)[lg]) === null || _ng$lg === void 0 ? void 0 : _ng$lg.promise;
}
setOptions(e) {
if (this.options = _objectSpread2(_objectSpread2({}, ng(this, cg)[cg]), e), this.updateGcTime(this.options.gcTime), this.state && void 0 === this.state.data) {
const e = yg(this.options);
void 0 !== e.data && (this.setState(vg(e.data, e.dataUpdatedAt)), ng(this, og)[og] = e);
}
}
optionalRemove() {
this.observers.length || "idle" !== this.state.fetchStatus || ng(this, sg)[sg].remove(this);
}
setData(e, t) {
const r = Cm(this.state.data, e, this.options);
return ng(this, pg)[pg]({
data: r,
type: "success",
dataUpdatedAt: t === null || t === void 0 ? void 0 : t.updatedAt,
manual: t === null || t === void 0 ? void 0 : t.manual
}), r;
}
setState(e, t) {
ng(this, pg)[pg]({
type: "setState",
state: e,
setStateOptions: t
});
}
cancel(e) {
var _ng$lg2;
var _ng$lg3;
const t = (_ng$lg2 = ng(this, lg)[lg]) === null || _ng$lg2 === void 0 ? void 0 : _ng$lg2.promise;
return (_ng$lg3 = ng(this, lg)[lg]) === null || _ng$lg3 === void 0 || _ng$lg3.cancel(e), t ? t.then(cm).catch(cm) : Promise.resolve();
}
destroy() {
super.destroy(), this.cancel({ silent: !0 });
}
reset() {
this.destroy(), this.setState(ng(this, og)[og]);
}
isActive() {
return this.observers.some((e) => !1 !== fm(e.options.enabled, this));
}
isDisabled() {
return this.getObserversCount() > 0 ? !this.isActive() : this.options.queryFn === Tm || this.state.dataUpdateCount + this.state.errorUpdateCount === 0;
}
isStatic() {
return this.getObserversCount() > 0 && this.observers.some((e) => "static" === dm(e.options.staleTime, this));
}
isStale() {
return this.getObserversCount() > 0 ? this.observers.some((e) => e.getCurrentResult().isStale) : void 0 === this.state.data || this.state.isInvalidated;
}
isStaleByTime(e = 0) {
return void 0 === this.state.data || "static" !== e && (!!this.state.isInvalidated || !pm(this.state.dataUpdatedAt, e));
}
onFocus() {
var _ng$lg4;
const e = this.observers.find((e) => e.shouldFetchOnWindowFocus());
e === null || e === void 0 || e.refetch({ cancelRefetch: !1 }), (_ng$lg4 = ng(this, lg)[lg]) === null || _ng$lg4 === void 0 || _ng$lg4.continue();
}
onOnline() {
var _ng$lg5;
const e = this.observers.find((e) => e.shouldFetchOnReconnect());
e === null || e === void 0 || e.refetch({ cancelRefetch: !1 }), (_ng$lg5 = ng(this, lg)[lg]) === null || _ng$lg5 === void 0 || _ng$lg5.continue();
}
addObserver(e) {
this.observers.includes(e) || (this.observers.push(e), this.clearGcTimeout(), ng(this, sg)[sg].notify({
type: "observerAdded",
query: this,
observer: e
}));
}
removeObserver(e) {
this.observers.includes(e) && (this.observers = this.observers.filter((t) => t !== e), this.observers.length || (ng(this, lg)[lg] && (ng(this, ug)[ug] ? ng(this, lg)[lg].cancel({ revert: !0 }) : ng(this, lg)[lg].cancelRetry()), this.scheduleGc()), ng(this, sg)[sg].notify({
type: "observerRemoved",
query: this,
observer: e
}));
}
getObserversCount() {
return this.observers.length;
}
invalidate() {
this.state.isInvalidated || ng(this, pg)[pg]({ type: "invalidate" });
}
fetch(e, t) {
var _this = this;
return _asyncToGenerator(function* () {
var _ng$lg6;
var _this$options$behavio;
var _i$fetchOptions;
var _i$fetchOptions2;
if ("idle" !== _this.state.fetchStatus && "rejected" !== ((_ng$lg6 = ng(_this, lg)[lg]) === null || _ng$lg6 === void 0 ? void 0 : _ng$lg6.status())) {
if (void 0 !== _this.state.data && (t === null || t === void 0 ? void 0 : t.cancelRefetch)) _this.cancel({ silent: !0 });
else if (ng(_this, lg)[lg]) return ng(_this, lg)[lg].continueRetry(), ng(_this, lg)[lg].promise;
}
if (e && _this.setOptions(e), !_this.options.queryFn) {
const e = _this.observers.find((e) => e.options.queryFn);
e && _this.setOptions(e.options);
}
Array.isArray(_this.options.queryKey) || console.error("As of v4, queryKey needs to be an Array. If you are using a string like 'repoData', please change it to an Array, e.g. ['repoData']");
const r = new AbortController();
const n = (e) => {
Object.defineProperty(e, "signal", {
enumerable: !0,
get: () => (ng(_this, ug)[ug] = !0, r.signal)
});
};
const o = () => {
const e = Rm(_this.options, t);
const r = (() => {
const e = {
client: ng(_this, ag)[ag],
queryKey: _this.queryKey,
meta: _this.meta
};
return n(e), e;
})();
return ng(_this, ug)[ug] = !1, _this.options.persister ? _this.options.persister(e, r, _this) : e(r);
};
const i = (() => {
const e = {
fetchOptions: t,
options: _this.options,
queryKey: _this.queryKey,
client: ng(_this, ag)[ag],
state: _this.state,
fetchFn: o
};
return n(e), e;
})();
(_this$options$behavio = _this.options.behavior) === null || _this$options$behavio === void 0 || _this$options$behavio.onFetch(i, _this), ng(_this, ig)[ig] = _this.state, "idle" !== _this.state.fetchStatus && _this.state.fetchMeta === ((_i$fetchOptions = i.fetchOptions) === null || _i$fetchOptions === void 0 ? void 0 : _i$fetchOptions.meta) || ng(_this, pg)[pg]({
type: "fetch",
meta: (_i$fetchOptions2 = i.fetchOptions) === null || _i$fetchOptions2 === void 0 ? void 0 : _i$fetchOptions2.meta
}), ng(_this, lg)[lg] = Xm({
initialPromise: t === null || t === void 0 ? void 0 : t.initialPromise,
fn: i.fetchFn,
onCancel: (e) => {
e instanceof Zm && e.revert && _this.setState(_objectSpread2(_objectSpread2({}, ng(_this, ig)[ig]), {}, { fetchStatus: "idle" })), r.abort();
},
onFail: (e, t) => {
ng(_this, pg)[pg]({
type: "failed",
failureCount: e,
error: t
});
},
onPause: () => {
ng(_this, pg)[pg]({ type: "pause" });
},
onContinue: () => {
ng(_this, pg)[pg]({ type: "continue" });
},
retry: i.options.retry,
retryDelay: i.options.retryDelay,
networkMode: i.options.networkMode,
canRun: () => !0
});
try {
var _ng$sg$config$onSucce;
var _ng$sg$config;
var _ng$sg$config$onSettl;
var _ng$sg$config2;
const e = yield ng(_this, lg)[lg].start();
if (void 0 === e) throw console.error(`Query data cannot be undefined. Please make sure to return a value other than undefined from your query function. Affected query key: ${_this.queryHash}`), /* @__PURE__ */ new Error(`${_this.queryHash} data is undefined`);
return _this.setData(e), (_ng$sg$config$onSucce = (_ng$sg$config = ng(_this, sg)[sg].config).onSuccess) === null || _ng$sg$config$onSucce === void 0 || _ng$sg$config$onSucce.call(_ng$sg$config, e, _this), (_ng$sg$config$onSettl = (_ng$sg$config2 = ng(_this, sg)[sg].config).onSettled) === null || _ng$sg$config$onSettl === void 0 || _ng$sg$config$onSettl.call(_ng$sg$config2, e, _this.state.error, _this), e;
} catch (e) {
var _ng$sg$config$onError;
var _ng$sg$config3;
var _ng$sg$config$onSettl2;
var _ng$sg$config4;
if (e instanceof Zm) {
if (e.silent) return ng(_this, lg)[lg].promise;
if (e.revert) {
if (void 0 === _this.state.data) throw e;
return _this.state.data;
}
}
throw ng(_this, pg)[pg]({
type: "error",
error: e
}), (_ng$sg$config$onError = (_ng$sg$config3 = ng(_this, sg)[sg].config).onError) === null || _ng$sg$config$onError === void 0 || _ng$sg$config$onError.call(_ng$sg$config3, e, _this), (_ng$sg$config$onSettl2 = (_ng$sg$config4 = ng(_this, sg)[sg].config).onSettled) === null || _ng$sg$config$onSettl2 === void 0 || _ng$sg$config$onSettl2.call(_ng$sg$config4, _this.state.data, e, _this), e;
} finally {
_this.scheduleGc();
}
})();
}
constructor(e) {
var _e$state;
super(), Object.defineProperty(this, pg, { value: bg }), Object.defineProperty(this, og, {
writable: !0,
value: void 0
}), Object.defineProperty(this, ig, {
writable: !0,
value: void 0
}), Object.defineProperty(this, sg, {
writable: !0,
value: void 0
}), Object.defineProperty(this, ag, {
writable: !0,
value: void 0
}), Object.defineProperty(this, lg, {
writable: !0,
value: void 0
}), Object.defineProperty(this, cg, {
writable: !0,
value: void 0
}), Object.defineProperty(this, ug, {
writable: !0,
value: void 0
}), ng(this, ug)[ug] = !1, ng(this, cg)[cg] = e.defaultOptions, this.setOptions(e.options), this.observers = [], ng(this, ag)[ag] = e.client, ng(this, sg)[sg] = ng(this, ag)[ag].getQueryCache(), this.queryKey = e.queryKey, this.queryHash = e.queryHash, ng(this, og)[og] = yg(this.options), this.state = (_e$state = e.state) !== null && _e$state !== void 0 ? _e$state : ng(this, og)[og], this.scheduleGc();
}
}, dg);
function gg(e, t) {
return _objectSpread2({
fetchFailureCount: 0,
fetchFailureReason: null,
fetchStatus: Ym(t.networkMode) ? "fetching" : "paused"
}, void 0 === e && {
error: null,
status: "pending"
});
}
function vg(e, t) {
return {
data: e,
dataUpdatedAt: t !== null && t !== void 0 ? t : Date.now(),
error: null,
isInvalidated: !1,
status: "success"
};
}
function yg(e) {
const t = "function" == typeof e.initialData ? e.initialData() : e.initialData;
const r = void 0 !== t;
const n = r ? "function" == typeof e.initialDataUpdatedAt ? e.initialDataUpdatedAt() : e.initialDataUpdatedAt : 0;
return {
data: t,
dataUpdateCount: 0,
dataUpdatedAt: r ? n !== null && n !== void 0 ? n : Date.now() : 0,
error: null,
errorUpdateCount: 0,
errorUpdatedAt: 0,
fetchFailureCount: 0,
fetchFailureReason: null,
fetchMeta: null,
isInvalidated: !1,
status: r ? "success" : "pending",
fetchStatus: "idle"
};
}
function bg(e) {
this.state = ((t) => {
switch (e.type) {
case "failed": return _objectSpread2(_objectSpread2({}, t), {}, {
fetchFailureCount: e.failureCount,
fetchFailureReason: e.error
});
case "pause": return _objectSpread2(_objectSpread2({}, t), {}, { fetchStatus: "paused" });
case "continue": return _objectSpread2(_objectSpread2({}, t), {}, { fetchStatus: "fetching" });
case "fetch":
var _e$meta;
return _objectSpread2(_objectSpread2(_objectSpread2({}, t), gg(t.data, this.options)), {}, { fetchMeta: (_e$meta = e.meta) !== null && _e$meta !== void 0 ? _e$meta : null });
case "success":
const r = _objectSpread2(_objectSpread2(_objectSpread2({}, t), vg(e.data, e.dataUpdatedAt)), {}, { dataUpdateCount: t.dataUpdateCount + 1 }, !e.manual && {
fetchStatus: "idle",
fetchFailureCount: 0,
fetchFailureReason: null
});
return ng(this, ig)[ig] = e.manual ? r : void 0, r;
case "error":
const n = e.error;
return _objectSpread2(_objectSpread2({}, t), {}, {
error: n,
errorUpdateCount: t.errorUpdateCount + 1,
errorUpdatedAt: Date.now(),
fetchFailureCount: t.fetchFailureCount + 1,
fetchFailureReason: n,
fetchStatus: "idle",
status: "error",
isInvalidated: !0
});
case "invalidate": return _objectSpread2(_objectSpread2({}, t), {}, { isInvalidated: !0 });
case "setState": return _objectSpread2(_objectSpread2({}, t), e.state);
}
})(this.state), Bm.batch(() => {
this.observers.forEach((e) => {
e.onQueryUpdate();
}), ng(this, sg)[sg].notify({
query: this,
type: "updated",
action: e
});
});
}
function wg(e, t) {
if (!Object.prototype.hasOwnProperty.call(e, t)) throw new TypeError("attempted to use private field on non-instance");
return e;
}
var _g;
var xg;
var Sg;
var kg;
var Cg;
var Og;
var Eg;
var Tg;
var Rg;
var Ig;
var Mg;
var Ag;
var Pg;
var Ng;
var Lg;
var Dg;
var jg;
var Fg;
var $g;
var Bg;
var zg;
var Vg;
var Ug;
var qg;
var Wg;
var Hg = 0;
function Gg(e) {
return "__private_" + Hg++ + "_" + e;
}
var Kg = (_g = Gg("_client"), xg = Gg("_currentQuery"), Sg = Gg("_currentQueryInitialState"), kg = Gg("_currentResult"), Cg = Gg("_currentResultState"), Og = Gg("_currentResultOptions"), Eg = Gg("_currentThenable"), Tg = Gg("_selectError"), Rg = Gg("_selectFn"), Ig = Gg("_selectResult"), Mg = Gg("_lastQueryWithDefinedData"), Ag = Gg("_staleTimeoutId"), Pg = Gg("_refetchIntervalId"), Ng = Gg("_currentRefetchInterval"), Lg = Gg("_trackedProps"), Dg = Gg("_executeFetch"), jg = Gg("_updateStaleTimeout"), Fg = Gg("_computeRefetchInterval"), $g = Gg("_updateRefetchInterval"), Bg = Gg("_updateTimers"), zg = Gg("_clearStaleTimeout"), Vg = Gg("_clearRefetchInterval"), Ug = Gg("_updateQuery"), qg = Gg("_notify"), Wg = class extends em {
bindMethods() {
this.refetch = this.refetch.bind(this);
}
onSubscribe() {
1 === this.listeners.size && (wg(this, xg)[xg].addObserver(this), Yg(wg(this, xg)[xg], this.options) ? wg(this, Dg)[Dg]() : this.updateResult(), wg(this, Bg)[Bg]());
}
onUnsubscribe() {
this.hasListeners() || this.destroy();
}
shouldFetchOnReconnect() {
return Zg(wg(this, xg)[xg], this.options, this.options.refetchOnReconnect);
}
shouldFetchOnWindowFocus() {
return Zg(wg(this, xg)[xg], this.options, this.options.refetchOnWindowFocus);
}
destroy() {
this.listeners = /* @__PURE__ */ new Set(), wg(this, zg)[zg](), wg(this, Vg)[Vg](), wg(this, xg)[xg].removeObserver(this);
}
setOptions(e) {
const t = this.options;
const r = wg(this, xg)[xg];
if (this.options = wg(this, _g)[_g].defaultQueryOptions(e), void 0 !== this.options.enabled && "boolean" != typeof this.options.enabled && "function" != typeof this.options.enabled && "boolean" != typeof fm(this.options.enabled, wg(this, xg)[xg])) throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");
wg(this, Ug)[Ug](), wg(this, xg)[xg].setOptions(this.options), t._defaulted && !_m(this.options, t) && wg(this, _g)[_g].getQueryCache().notify({
type: "observerOptionsUpdated",
query: wg(this, xg)[xg],
observer: this
});
const n = this.hasListeners();
n && Xg(wg(this, xg)[xg], r, this.options, t) && wg(this, Dg)[Dg](), this.updateResult(), !n || wg(this, xg)[xg] === r && fm(this.options.enabled, wg(this, xg)[xg]) === fm(t.enabled, wg(this, xg)[xg]) && dm(this.options.staleTime, wg(this, xg)[xg]) === dm(t.staleTime, wg(this, xg)[xg]) || wg(this, jg)[jg]();
const o = wg(this, Fg)[Fg]();
!n || wg(this, xg)[xg] === r && fm(this.options.enabled, wg(this, xg)[xg]) === fm(t.enabled, wg(this, xg)[xg]) && o === wg(this, Ng)[Ng] || wg(this, $g)[$g](o);
}
getOptimisticResult(e) {
const t = wg(this, _g)[_g].getQueryCache().build(wg(this, _g)[_g], e);
const r = this.createResult(t, e);
return n = r, !_m(this.getCurrentResult(), n) && (wg(this, kg)[kg] = r, wg(this, Og)[Og] = this.options, wg(this, Cg)[Cg] = wg(this, xg)[xg].state), r;
var n;
}
getCurrentResult() {
return wg(this, kg)[kg];
}
trackResult(e, t) {
return new Proxy(e, { get: (e, r) => (this.trackProp(r), t === null || t === void 0 || t(r), "promise" === r && (this.trackProp("data"), this.options.experimental_prefetchInRender || "pending" !== wg(this, Eg)[Eg].status || wg(this, Eg)[Eg].reject(/* @__PURE__ */ new Error("experimental_prefetchInRender feature flag is not enabled"))), Reflect.get(e, r)) });
}
trackProp(e) {
wg(this, Lg)[Lg].add(e);
}
getCurrentQuery() {
return wg(this, xg)[xg];
}
refetch(_ref3 = {}) {
let e = _extends({}, (_objectDestructuringEmpty(_ref3), _ref3));
return this.fetch(_objectSpread2({}, e));
}
fetchOptimistic(e) {
const t = wg(this, _g)[_g].defaultQueryOptions(e);
const r = wg(this, _g)[_g].getQueryCache().build(wg(this, _g)[_g], t);
return r.fetch().then(() => this.createResult(r, t));
}
fetch(e) {
var _e$cancelRefetch;
return wg(this, Dg)[Dg](_objectSpread2(_objectSpread2({}, e), {}, { cancelRefetch: (_e$cancelRefetch = e.cancelRefetch) !== null && _e$cancelRefetch !== void 0 ? _e$cancelRefetch : !0 })).then(() => (this.updateResult(), wg(this, kg)[kg]));
}
createResult(e, t) {
const r = wg(this, xg)[xg], n = this.options, o = wg(this, kg)[kg], i = wg(this, Cg)[Cg], s = wg(this, Og)[Og], a = e !== r ? e.state : wg(this, Sg)[Sg], { state: l } = e;
let c;
let u = _objectSpread2({}, l);
let p = !1;
if (t._optimisticResults) {
const o = this.hasListeners();
const i = !o && Yg(e, t);
const s = o && Xg(e, r, t, n);
(i || s) && (u = _objectSpread2(_objectSpread2({}, u), gg(l.data, e.options))), "isRestoring" === t._optimisticResults && (u.fetchStatus = "idle");
}
let { error: d, errorUpdatedAt: f, status: h } = u;
c = u.data;
let m = !1;
if (void 0 !== t.placeholderData && void 0 === c && "pending" === h) {
var _wg$Mg;
let e;
(o === null || o === void 0 ? void 0 : o.isPlaceholderData) && t.placeholderData === (s === null || s === void 0 ? void 0 : s.placeholderData) ? (e = o.data, m = !0) : e = "function" == typeof t.placeholderData ? t.placeholderData((_wg$Mg = wg(this, Mg)[Mg]) === null || _wg$Mg === void 0 ? void 0 : _wg$Mg.state.data, wg(this, Mg)[Mg]) : t.placeholderData, void 0 !== e && (h = "success", c = Cm(o === null || o === void 0 ? void 0 : o.data, e, t), p = !0);
}
if (t.select && void 0 !== c && !m) if (o && c === (i === null || i === void 0 ? void 0 : i.data) && t.select === wg(this, Rg)[Rg]) c = wg(this, Ig)[Ig];
else try {
wg(this, Rg)[Rg] = t.select, c = t.select(c), c = Cm(o === null || o === void 0 ? void 0 : o.data, c, t), wg(this, Ig)[Ig] = c, wg(this, Tg)[Tg] = null;
} catch (e) {
wg(this, Tg)[Tg] = e;
}
wg(this, Tg)[Tg] && (d = wg(this, Tg)[Tg], c = wg(this, Ig)[Ig], f = Date.now(), h = "error");
const g = "fetching" === u.fetchStatus;
const v = "pending" === h;
const y = "error" === h;
const b = v && g;
const w = void 0 !== c;
const _ = {
status: h,
fetchStatus: u.fetchStatus,
isPending: v,
isSuccess: "success" === h,
isError: y,
isInitialLoading: b,
isLoading: b,
data: c,
dataUpdatedAt: u.dataUpdatedAt,
error: d,
errorUpdatedAt: f,
failureCount: u.fetchFailureCount,
failureReason: u.fetchFailureReason,
errorUpdateCount: u.errorUpdateCount,
isFetched: u.dataUpdateCount > 0 || u.errorUpdateCount > 0,
isFetchedAfterMount: u.dataUpdateCount > a.dataUpdateCount || u.errorUpdateCount > a.errorUpdateCount,
isFetching: g,
isRefetching: g && !v,
isLoadingError: y && !w,
isPaused: "paused" === u.fetchStatus,
isPlaceholderData: p,
isRefetchError: y && w,
isStale: Jg(e, t),
refetch: this.refetch,
promise: wg(this, Eg)[Eg],
isEnabled: !1 !== fm(t.enabled, e)
};
if (this.options.experimental_prefetchInRender) {
const t = void 0 !== _.data;
const n = "error" === _.status && !t;
const o = (e) => {
n ? e.reject(_.error) : t && e.resolve(_.data);
};
const i = () => {
const e = wg(this, Eg)[Eg] = _.promise = Fm();
o(e);
};
const s = wg(this, Eg)[Eg];
switch (s.status) {
case "pending":
e.queryHash === r.queryHash && o(s);
break;
case "fulfilled":
(n || _.data !== s.value) && i();
break;
case "rejected": n && _.error === s.reason || i();
}
}
return _;
}
updateResult() {
const e = wg(this, kg)[kg];
const t = this.createResult(wg(this, xg)[xg], this.options);
wg(this, Cg)[Cg] = wg(this, xg)[xg].state, wg(this, Og)[Og] = this.options, void 0 !== wg(this, Cg)[Cg].data && (wg(this, Mg)[Mg] = wg(this, xg)[xg]), _m(t, e) || (wg(this, kg)[kg] = t, wg(this, qg)[qg]({ listeners: (() => {
if (!e) return !0;
const { notifyOnChangeProps: t } = this.options, r = "function" == typeof t ? t() : t;
if ("all" === r || !r && !wg(this, Lg)[Lg].size) return !0;
const n = new Set(r !== null && r !== void 0 ? r : wg(this, Lg)[Lg]);
return this.options.throwOnError && n.add("error"), Object.keys(wg(this, kg)[kg]).some((t) => {
const r = t;
return wg(this, kg)[kg][r] !== e[r] && n.has(r);
});
})() }));
}
onQueryUpdate() {
this.updateResult(), this.hasListeners() && wg(this, Bg)[Bg]();
}
constructor(e, t) {
super(), Object.defineProperty(this, Dg, { value: Qg }), Object.defineProperty(this, jg, { value: ev }), Object.defineProperty(this, Fg, { value: tv }), Object.defineProperty(this, $g, { value: rv }), Object.defineProperty(this, Bg, { value: nv }), Object.defineProperty(this, zg, { value: ov }), Object.defineProperty(this, Vg, { value: iv }), Object.defineProperty(this, Ug, { value: sv }), Object.defineProperty(this, qg, { value: av }), Object.defineProperty(this, _g, {
writable: !0,
value: void 0
}), Object.defineProperty(this, xg, {
writable: !0,
value: void 0
}), Object.defineProperty(this, Sg, {
writable: !0,
value: void 0
}), Object.defineProperty(this, kg, {
writable: !0,
value: void 0
}), Object.defineProperty(this, Cg, {
writable: !0,
value: void 0
}), Object.defineProperty(this, Og, {
writable: !0,
value: void 0
}), Object.defineProperty(this, Eg, {
writable: !0,
value: void 0
}), Object.defineProperty(this, Tg, {
writable: !0,
value: void 0
}), Object.defineProperty(this, Rg, {
writable: !0,
value: void 0
}), Object.defineProperty(this, Ig, {
writable: !0,
value: void 0
}), Object.defineProperty(this, Mg, {
writable: !0,
value: void 0
}), Object.defineProperty(this, Ag, {
writable: !0,
value: void 0
}), Object.defineProperty(this, Pg, {
writable: !0,
value: void 0
}), Object.defineProperty(this, Ng, {
writable: !0,
value: void 0
}), Object.defineProperty(this, Lg, {
writable: !0,
value: void 0
}), wg(this, xg)[xg] = void 0, wg(this, Sg)[Sg] = void 0, wg(this, kg)[kg] = void 0, wg(this, Lg)[Lg] = /* @__PURE__ */ new Set(), this.options = t, wg(this, _g)[_g] = e, wg(this, Tg)[Tg] = null, wg(this, Eg)[Eg] = Fm(), this.bindMethods(), this.setOptions(t);
}
}, Wg);
function Yg(e, t) {
return function(e, t) {
return !1 !== fm(t.enabled, e) && void 0 === e.state.data && !("error" === e.state.status && !1 === t.retryOnMount);
}(e, t) || void 0 !== e.state.data && Zg(e, t, t.refetchOnMount);
}
function Zg(e, t, r) {
if (!1 !== fm(t.enabled, e) && "static" !== dm(t.staleTime, e)) {
const n = "function" == typeof r ? r(e) : r;
return "always" === n || !1 !== n && Jg(e, t);
}
return !1;
}
function Xg(e, t, r, n) {
return (e !== t || !1 === fm(n.enabled, e)) && (!r.suspense || "error" !== e.state.status) && Jg(e, r);
}
function Jg(e, t) {
return !1 !== fm(t.enabled, e) && e.isStaleByTime(dm(t.staleTime, e));
}
function Qg(e) {
wg(this, Ug)[Ug]();
let t = wg(this, xg)[xg].fetch(this.options, e);
return e !== null && e !== void 0 && e.throwOnError || (t = t.catch(cm)), t;
}
function ev() {
wg(this, zg)[zg]();
const e = dm(this.options.staleTime, wg(this, xg)[xg]);
if (lm || wg(this, kg)[kg].isStale || !um(e)) return;
const t = pm(wg(this, kg)[kg].dataUpdatedAt, e) + 1;
wg(this, Ag)[Ag] = am.setTimeout(() => {
wg(this, kg)[kg].isStale || this.updateResult();
}, t);
}
function tv() {
var _ref4;
return (_ref4 = "function" == typeof this.options.refetchInterval ? this.options.refetchInterval(wg(this, xg)[xg]) : this.options.refetchInterval) !== null && _ref4 !== void 0 ? _ref4 : !1;
}
function rv(e) {
wg(this, Vg)[Vg](), wg(this, Ng)[Ng] = e, !lm && !1 !== fm(this.options.enabled, wg(this, xg)[xg]) && um(wg(this, Ng)[Ng]) && 0 !== wg(this, Ng)[Ng] && (wg(this, Pg)[Pg] = am.setInterval(() => {
(this.options.refetchIntervalInBackground || jm.isFocused()) && wg(this, Dg)[Dg]();
}, wg(this, Ng)[Ng]));
}
function nv() {
wg(this, jg)[jg](), wg(this, $g)[$g](wg(this, Fg)[Fg]());
}
function ov() {
wg(this, Ag)[Ag] && (am.clearTimeout(wg(this, Ag)[Ag]), wg(this, Ag)[Ag] = void 0);
}
function iv() {
wg(this, Pg)[Pg] && (am.clearInterval(wg(this, Pg)[Pg]), wg(this, Pg)[Pg] = void 0);
}
function sv() {
const e = wg(this, _g)[_g].getQueryCache().build(wg(this, _g)[_g], this.options);
if (e === wg(this, xg)[xg]) return;
const t = wg(this, xg)[xg];
wg(this, xg)[xg] = e, wg(this, Sg)[Sg] = e.state, this.hasListeners() && (t === null || t === void 0 || t.removeObserver(this), e.addObserver(this));
}
function av(e) {
Bm.batch(() => {
e.listeners && this.listeners.forEach((e) => {
e(wg(this, kg)[kg]);
}), wg(this, _g)[_g].getQueryCache().notify({
query: wg(this, xg)[xg],
type: "observerResultsUpdated"
});
});
}
function lv(e) {
return { onFetch: (t, r) => {
var _t$fetchOptions;
var _t$state$data;
var _t$state$data2;
const n = t.options;
const o = (_t$fetchOptions = t.fetchOptions) === null || _t$fetchOptions === void 0 || (_t$fetchOptions = _t$fetchOptions.meta) === null || _t$fetchOptions === void 0 || (_t$fetchOptions = _t$fetchOptions.fetchMore) === null || _t$fetchOptions === void 0 ? void 0 : _t$fetchOptions.direction;
const i = ((_t$state$data = t.state.data) === null || _t$state$data === void 0 ? void 0 : _t$state$data.pages) || [];
const s = ((_t$state$data2 = t.state.data) === null || _t$state$data2 === void 0 ? void 0 : _t$state$data2.pageParams) || [];
let a = {
pages: [],
pageParams: []
};
let l = 0;
const c = function() {
var _ref6 = _asyncToGenerator(function* () {
let r = !1;
const c = (e) => {
(function(e, r, n) {
let o;
let i = !1;
Object.defineProperty(e, "signal", {
enumerable: !0,
get: () => {
var _o2;
return (_o2 = o) !== null && _o2 !== void 0 || (o = t.signal), i || (i = !0, o.aborted ? n() : o.addEventListener("abort", n, { once: !0 })), o;
}
});
})(e, 0, () => r = !0);
};
const u = Rm(t.options, t.fetchOptions);
const p = function() {
var _ref5 = _asyncToGenerator(function* (e, n, o) {
if (r) return Promise.reject();
if (null == n && e.pages.length) return Promise.resolve(e);
const i = (() => {
const e = {
client: t.client,
queryKey: t.queryKey,
pageParam: n,
direction: o ? "backward" : "forward",
meta: t.options.meta
};
return c(e), e;
})(), s = yield u(i), { maxPages: a } = t.options, l = o ? Em : Om;
return {
pages: l(e.pages, s, a),
pageParams: l(e.pageParams, n, a)
};
});
return function p(_x2, _x3, _x4) {
return _ref5.apply(this, arguments);
};
}();
if (o && i.length) {
const e = "backward" === o;
const t = {
pages: i,
pageParams: s
};
a = yield p(t, (e ? uv : cv)(n, t), e);
} else {
const t = e !== null && e !== void 0 ? e : i.length;
do {
var _s$;
const e = 0 === l ? (_s$ = s[0]) !== null && _s$ !== void 0 ? _s$ : n.initialPageParam : cv(n, a);
if (l > 0 && null == e) break;
a = yield p(a, e), l++;
} while (l < t);
}
return a;
});
return function c() {
return _ref6.apply(this, arguments);
};
}();
t.options.persister ? t.fetchFn = () => {
var _t$options$persister;
var _t$options;
return (_t$options$persister = (_t$options = t.options).persister) === null || _t$options$persister === void 0 ? void 0 : _t$options$persister.call(_t$options, c, {
client: t.client,
queryKey: t.queryKey,
meta: t.options.meta,
signal: t.signal
}, r);
} : t.fetchFn = c;
} };
}
function cv(e, { pages: t, pageParams: r }) {
const n = t.length - 1;
return t.length > 0 ? e.getNextPageParam(t[n], t, r[n], r) : void 0;
}
function uv(e, { pages: t, pageParams: r }) {
var _e$getPreviousPagePar;
return t.length > 0 ? (_e$getPreviousPagePar = e.getPreviousPageParam) === null || _e$getPreviousPagePar === void 0 ? void 0 : _e$getPreviousPagePar.call(e, t[0], t, r[0], r) : void 0;
}
function pv(e, t) {
if (!Object.prototype.hasOwnProperty.call(e, t)) throw new TypeError("attempted to use private field on non-instance");
return e;
}
var dv;
var fv;
var hv;
var mv;
var gv;
var vv;
var yv = 0;
function bv(e) {
return "__private_" + yv++ + "_" + e;
}
var wv = (dv = bv("_client"), fv = bv("_observers"), hv = bv("_mutationCache"), mv = bv("_retryer"), gv = bv("_dispatch"), vv = class extends rg {
setOptions(e) {
this.options = e, this.updateGcTime(this.options.gcTime);
}
get meta() {
return this.options.meta;
}
addObserver(e) {
pv(this, fv)[fv].includes(e) || (pv(this, fv)[fv].push(e), this.clearGcTimeout(), pv(this, hv)[hv].notify({
type: "observerAdded",
mutation: this,
observer: e
}));
}
removeObserver(e) {
pv(this, fv)[fv] = pv(this, fv)[fv].filter((t) => t !== e), this.scheduleGc(), pv(this, hv)[hv].notify({
type: "observerRemoved",
mutation: this,
observer: e
});
}
optionalRemove() {
pv(this, fv)[fv].length || ("pending" === this.state.status ? this.scheduleGc() : pv(this, hv)[hv].remove(this));
}
continue() {
var _pv$mv$continue;
var _pv$mv;
return (_pv$mv$continue = (_pv$mv = pv(this, mv)[mv]) === null || _pv$mv === void 0 ? void 0 : _pv$mv.continue()) !== null && _pv$mv$continue !== void 0 ? _pv$mv$continue : this.execute(this.state.variables);
}
execute(e) {
var _this2 = this;
return _asyncToGenerator(function* () {
var _this$options$retry;
const t = () => {
pv(_this2, gv)[gv]({ type: "continue" });
};
const r = {
client: pv(_this2, dv)[dv],
meta: _this2.options.meta,
mutationKey: _this2.options.mutationKey
};
pv(_this2, mv)[mv] = Xm({
fn: () => _this2.options.mutationFn ? _this2.options.mutationFn(e, r) : Promise.reject(/* @__PURE__ */ new Error("No mutationFn found")),
onFail: (e, t) => {
pv(_this2, gv)[gv]({
type: "failed",
failureCount: e,
error: t
});
},
onPause: () => {
pv(_this2, gv)[gv]({ type: "pause" });
},
onContinue: t,
retry: (_this$options$retry = _this2.options.retry) !== null && _this$options$retry !== void 0 ? _this$options$retry : 0,
retryDelay: _this2.options.retryDelay,
networkMode: _this2.options.networkMode,
canRun: () => pv(_this2, hv)[hv].canRun(_this2)
});
const n = "pending" === _this2.state.status;
const o = !pv(_this2, mv)[mv].canStart();
try {
var _pv$hv$config$onSucce;
var _pv$hv$config;
var _this$options$onSucce;
var _this$options2;
var _pv$hv$config$onSettl;
var _pv$hv$config2;
var _this$options$onSettl;
var _this$options3;
if (n) t();
else {
var _this$options$onMutat;
var _this$options;
pv(_this2, gv)[gv]({
type: "pending",
variables: e,
isPaused: o
}), pv(_this2, hv)[hv].config.onMutate && (yield pv(_this2, hv)[hv].config.onMutate(e, _this2, r));
const t = yield (_this$options$onMutat = (_this$options = _this2.options).onMutate) === null || _this$options$onMutat === void 0 ? void 0 : _this$options$onMutat.call(_this$options, e, r);
t !== _this2.state.context && pv(_this2, gv)[gv]({
type: "pending",
context: t,
variables: e,
isPaused: o
});
}
const i = yield pv(_this2, mv)[mv].start();
return yield (_pv$hv$config$onSucce = (_pv$hv$config = pv(_this2, hv)[hv].config).onSuccess) === null || _pv$hv$config$onSucce === void 0 ? void 0 : _pv$hv$config$onSucce.call(_pv$hv$config, i, e, _this2.state.context, _this2, r), yield (_this$options$onSucce = (_this$options2 = _this2.options).onSuccess) === null || _this$options$onSucce === void 0 ? void 0 : _this$options$onSucce.call(_this$options2, i, e, _this2.state.context, r), yield (_pv$hv$config$onSettl = (_pv$hv$config2 = pv(_this2, hv)[hv].config).onSettled) === null || _pv$hv$config$onSettl === void 0 ? void 0 : _pv$hv$config$onSettl.call(_pv$hv$config2, i, null, _this2.state.variables, _this2.state.context, _this2, r), yield (_this$options$onSettl = (_this$options3 = _this2.options).onSettled) === null || _this$options$onSettl === void 0 ? void 0 : _this$options$onSettl.call(_this$options3, i, null, e, _this2.state.context, r), pv(_this2, gv)[gv]({
type: "success",
data: i
}), i;
} catch (t) {
try {
var _pv$hv$config$onError;
var _pv$hv$config3;
yield (_pv$hv$config$onError = (_pv$hv$config3 = pv(_this2, hv)[hv].config).onError) === null || _pv$hv$config$onError === void 0 ? void 0 : _pv$hv$config$onError.call(_pv$hv$config3, t, e, _this2.state.context, _this2, r);
} catch (e) {
Promise.reject(e);
}
try {
var _this$options$onError;
var _this$options4;
yield (_this$options$onError = (_this$options4 = _this2.options).onError) === null || _this$options$onError === void 0 ? void 0 : _this$options$onError.call(_this$options4, t, e, _this2.state.context, r);
} catch (e) {
Promise.reject(e);
}
try {
var _pv$hv$config$onSettl2;
var _pv$hv$config4;
yield (_pv$hv$config$onSettl2 = (_pv$hv$config4 = pv(_this2, hv)[hv].config).onSettled) === null || _pv$hv$config$onSettl2 === void 0 ? void 0 : _pv$hv$config$onSettl2.call(_pv$hv$config4, void 0, t, _this2.state.variables, _this2.state.context, _this2, r);
} catch (e) {
Promise.reject(e);
}
try {
var _this$options$onSettl2;
var _this$options5;
yield (_this$options$onSettl2 = (_this$options5 = _this2.options).onSettled) === null || _this$options$onSettl2 === void 0 ? void 0 : _this$options$onSettl2.call(_this$options5, void 0, t, e, _this2.state.context, r);
} catch (e) {
Promise.reject(e);
}
throw pv(_this2, gv)[gv]({
type: "error",
error: t
}), t;
} finally {
pv(_this2, hv)[hv].runNext(_this2);
}
})();
}
constructor(e) {
super(), Object.defineProperty(this, gv, { value: _v }), Object.defineProperty(this, dv, {
writable: !0,
value: void 0
}), Object.defineProperty(this, fv, {
writable: !0,
value: void 0
}), Object.defineProperty(this, hv, {
writable: !0,
value: void 0
}), Object.defineProperty(this, mv, {
writable: !0,
value: void 0
}), pv(this, dv)[dv] = e.client, this.mutationId = e.mutationId, pv(this, hv)[hv] = e.mutationCache, pv(this, fv)[fv] = [], this.state = e.state || {
context: void 0,
data: void 0,
error: null,
failureCount: 0,
failureReason: null,
isPaused: !1,
status: "idle",
variables: void 0,
submittedAt: 0
}, this.setOptions(e.options), this.scheduleGc();
}
}, vv);
function _v(e) {
this.state = ((t) => {
switch (e.type) {
case "failed": return _objectSpread2(_objectSpread2({}, t), {}, {
failureCount: e.failureCount,
failureReason: e.error
});
case "pause": return _objectSpread2(_objectSpread2({}, t), {}, { isPaused: !0 });
case "continue": return _objectSpread2(_objectSpread2({}, t), {}, { isPaused: !1 });
case "pending": return _objectSpread2(_objectSpread2({}, t), {}, {
context: e.context,
data: void 0,
failureCount: 0,
failureReason: null,
error: null,
isPaused: e.isPaused,
status: "pending",
variables: e.variables,
submittedAt: Date.now()
});
case "success": return _objectSpread2(_objectSpread2({}, t), {}, {
data: e.data,
failureCount: 0,
failureReason: null,
error: null,
status: "success",
isPaused: !1
});
case "error": return _objectSpread2(_objectSpread2({}, t), {}, {
data: void 0,
error: e.error,
failureCount: t.failureCount + 1,
failureReason: e.error,
isPaused: !1,
status: "error"
});
}
})(this.state), Bm.batch(() => {
pv(this, fv)[fv].forEach((t) => {
t.onMutationUpdate(e);
}), pv(this, hv)[hv].notify({
mutation: this,
type: "updated",
action: e
});
});
}
function xv(e, t) {
if (!Object.prototype.hasOwnProperty.call(e, t)) throw new TypeError("attempted to use private field on non-instance");
return e;
}
var Sv;
var kv;
var Cv;
var Ov = 0;
function Ev(e) {
return "__private_" + Ov++ + "_" + e;
}
var Tv = (Sv = Ev("_mutations"), kv = Ev("_scopes"), Cv = Ev("_mutationId"), class extends em {
build(e, t, r) {
const n = new wv({
client: e,
mutationCache: this,
mutationId: ++xv(this, Cv)[Cv],
options: e.defaultMutationOptions(t),
state: r
});
return this.add(n), n;
}
add(e) {
xv(this, Sv)[Sv].add(e);
const t = Rv(e);
if ("string" == typeof t) {
const r = xv(this, kv)[kv].get(t);
r ? r.push(e) : xv(this, kv)[kv].set(t, [e]);
}
this.notify({
type: "added",
mutation: e
});
}
remove(e) {
if (xv(this, Sv)[Sv].delete(e)) {
const t = Rv(e);
if ("string" == typeof t) {
const r = xv(this, kv)[kv].get(t);
if (r) if (r.length > 1) {
const t = r.indexOf(e);
-1 !== t && r.splice(t, 1);
} else r[0] === e && xv(this, kv)[kv].delete(t);
}
}
this.notify({
type: "removed",
mutation: e
});
}
canRun(e) {
const t = Rv(e);
if ("string" == typeof t) {
const r = xv(this, kv)[kv].get(t);
const n = r === null || r === void 0 ? void 0 : r.find((e) => "pending" === e.state.status);
return !n || n === e;
}
return !0;
}
runNext(e) {
const t = Rv(e);
if ("string" == typeof t) {
var _xv$kv$get;
var _r$continue;
const r = (_xv$kv$get = xv(this, kv)[kv].get(t)) === null || _xv$kv$get === void 0 ? void 0 : _xv$kv$get.find((t) => t !== e && t.state.isPaused);
return (_r$continue = r === null || r === void 0 ? void 0 : r.continue()) !== null && _r$continue !== void 0 ? _r$continue : Promise.resolve();
}
return Promise.resolve();
}
clear() {
Bm.batch(() => {
xv(this, Sv)[Sv].forEach((e) => {
this.notify({
type: "removed",
mutation: e
});
}), xv(this, Sv)[Sv].clear(), xv(this, kv)[kv].clear();
});
}
getAll() {
return Array.from(xv(this, Sv)[Sv]);
}
find(e) {
const t = _objectSpread2({ exact: !0 }, e);
return this.getAll().find((e) => mm(t, e));
}
findAll(e = {}) {
return this.getAll().filter((t) => mm(e, t));
}
notify(e) {
Bm.batch(() => {
this.listeners.forEach((t) => {
t(e);
});
});
}
resumePausedMutations() {
const e = this.getAll().filter((e) => e.state.isPaused);
return Bm.batch(() => Promise.all(e.map((e) => e.continue().catch(cm))));
}
constructor(e = {}) {
super(), Object.defineProperty(this, Sv, {
writable: !0,
value: void 0
}), Object.defineProperty(this, kv, {
writable: !0,
value: void 0
}), Object.defineProperty(this, Cv, {
writable: !0,
value: void 0
}), this.config = e, xv(this, Sv)[Sv] = /* @__PURE__ */ new Set(), xv(this, kv)[kv] = /* @__PURE__ */ new Map(), xv(this, Cv)[Cv] = 0;
}
});
function Rv(e) {
var _e$options$scope;
return (_e$options$scope = e.options.scope) === null || _e$options$scope === void 0 ? void 0 : _e$options$scope.id;
}
function Iv(e, t) {
if (!Object.prototype.hasOwnProperty.call(e, t)) throw new TypeError("attempted to use private field on non-instance");
return e;
}
var Mv;
var Av;
var Pv;
var Nv;
var Lv;
var Dv;
var jv = 0;
function Fv(e) {
return "__private_" + jv++ + "_" + e;
}
var $v = (Mv = Fv("_client"), Av = Fv("_currentResult"), Pv = Fv("_currentMutation"), Nv = Fv("_mutateOptions"), Lv = Fv("_updateResult"), Dv = Fv("_notify"), class extends em {
bindMethods() {
this.mutate = this.mutate.bind(this), this.reset = this.reset.bind(this);
}
setOptions(e) {
var _Iv$Pv;
const t = this.options;
this.options = Iv(this, Mv)[Mv].defaultMutationOptions(e), _m(this.options, t) || Iv(this, Mv)[Mv].getMutationCache().notify({
type: "observerOptionsUpdated",
mutation: Iv(this, Pv)[Pv],
observer: this
}), (t === null || t === void 0 ? void 0 : t.mutationKey) && this.options.mutationKey && vm(t.mutationKey) !== vm(this.options.mutationKey) ? this.reset() : "pending" === ((_Iv$Pv = Iv(this, Pv)[Pv]) === null || _Iv$Pv === void 0 ? void 0 : _Iv$Pv.state.status) && Iv(this, Pv)[Pv].setOptions(this.options);
}
onUnsubscribe() {
var _Iv$Pv2;
this.hasListeners() || (_Iv$Pv2 = Iv(this, Pv)[Pv]) === null || _Iv$Pv2 === void 0 || _Iv$Pv2.removeObserver(this);
}
onMutationUpdate(e) {
Iv(this, Lv)[Lv](), Iv(this, Dv)[Dv](e);
}
getCurrentResult() {
return Iv(this, Av)[Av];
}
reset() {
var _Iv$Pv3;
(_Iv$Pv3 = Iv(this, Pv)[Pv]) === null || _Iv$Pv3 === void 0 || _Iv$Pv3.removeObserver(this), Iv(this, Pv)[Pv] = void 0, Iv(this, Lv)[Lv](), Iv(this, Dv)[Dv]();
}
mutate(e, t) {
var _Iv$Pv4;
return Iv(this, Nv)[Nv] = t, (_Iv$Pv4 = Iv(this, Pv)[Pv]) === null || _Iv$Pv4 === void 0 || _Iv$Pv4.removeObserver(this), Iv(this, Pv)[Pv] = Iv(this, Mv)[Mv].getMutationCache().build(Iv(this, Mv)[Mv], this.options), Iv(this, Pv)[Pv].addObserver(this), Iv(this, Pv)[Pv].execute(e);
}
constructor(e, t) {
super(), Object.defineProperty(this, Lv, { value: Bv }), Object.defineProperty(this, Dv, { value: zv }), Object.defineProperty(this, Mv, {
writable: !0,
value: void 0
}), Object.defineProperty(this, Av, {
writable: !0,
value: void 0
}), Object.defineProperty(this, Pv, {
writable: !0,
value: void 0
}), Object.defineProperty(this, Nv, {
writable: !0,
value: void 0
}), Iv(this, Av)[Av] = void 0, Iv(this, Mv)[Mv] = e, this.setOptions(t), this.bindMethods(), Iv(this, Lv)[Lv]();
}
});
function Bv() {
var _Iv$Pv$state;
var _Iv$Pv5;
const e = (_Iv$Pv$state = (_Iv$Pv5 = Iv(this, Pv)[Pv]) === null || _Iv$Pv5 === void 0 ? void 0 : _Iv$Pv5.state) !== null && _Iv$Pv$state !== void 0 ? _Iv$Pv$state : {
context: void 0,
data: void 0,
error: null,
failureCount: 0,
failureReason: null,
isPaused: !1,
status: "idle",
variables: void 0,
submittedAt: 0
};
Iv(this, Av)[Av] = _objectSpread2(_objectSpread2({}, e), {}, {
isPending: "pending" === e.status,
isSuccess: "success" === e.status,
isError: "error" === e.status,
isIdle: "idle" === e.status,
mutate: this.mutate,
reset: this.reset
});
}
function zv(e) {
Bm.batch(() => {
if (Iv(this, Nv)[Nv] && this.hasListeners()) {
const t = Iv(this, Av)[Av].variables;
const r = Iv(this, Av)[Av].context;
const n = {
client: Iv(this, Mv)[Mv],
meta: this.options.meta,
mutationKey: this.options.mutationKey
};
if ("success" === (e === null || e === void 0 ? void 0 : e.type)) {
try {
var _Iv$Nv$onSuccess;
var _Iv$Nv;
(_Iv$Nv$onSuccess = (_Iv$Nv = Iv(this, Nv)[Nv]).onSuccess) === null || _Iv$Nv$onSuccess === void 0 || _Iv$Nv$onSuccess.call(_Iv$Nv, e.data, t, r, n);
} catch (e) {
Promise.reject(e);
}
try {
var _Iv$Nv$onSettled;
var _Iv$Nv2;
(_Iv$Nv$onSettled = (_Iv$Nv2 = Iv(this, Nv)[Nv]).onSettled) === null || _Iv$Nv$onSettled === void 0 || _Iv$Nv$onSettled.call(_Iv$Nv2, e.data, null, t, r, n);
} catch (e) {
Promise.reject(e);
}
} else if ("error" === (e === null || e === void 0 ? void 0 : e.type)) {
try {
var _Iv$Nv$onError;
var _Iv$Nv3;
(_Iv$Nv$onError = (_Iv$Nv3 = Iv(this, Nv)[Nv]).onError) === null || _Iv$Nv$onError === void 0 || _Iv$Nv$onError.call(_Iv$Nv3, e.error, t, r, n);
} catch (e) {
Promise.reject(e);
}
try {
var _Iv$Nv$onSettled2;
var _Iv$Nv4;
(_Iv$Nv$onSettled2 = (_Iv$Nv4 = Iv(this, Nv)[Nv]).onSettled) === null || _Iv$Nv$onSettled2 === void 0 || _Iv$Nv$onSettled2.call(_Iv$Nv4, void 0, e.error, t, r, n);
} catch (e) {
Promise.reject(e);
}
}
}
this.listeners.forEach((e) => {
e(Iv(this, Av)[Av]);
});
});
}
function Vv(e, t) {
if (!Object.prototype.hasOwnProperty.call(e, t)) throw new TypeError("attempted to use private field on non-instance");
return e;
}
var Uv;
var qv = 0;
function Wv(e) {
return "__private_" + qv++ + "_" + e;
}
var Hv = (Uv = Wv("_queries"), class extends em {
build(e, t, r) {
var _t$queryHash;
const n = t.queryKey;
const o = (_t$queryHash = t.queryHash) !== null && _t$queryHash !== void 0 ? _t$queryHash : gm(n, t);
let i = this.get(o);
return i || (i = new mg({
client: e,
queryKey: n,
queryHash: o,
options: e.defaultQueryOptions(t),
state: r,
defaultOptions: e.getQueryDefaults(n)
}), this.add(i)), i;
}
add(e) {
Vv(this, Uv)[Uv].has(e.queryHash) || (Vv(this, Uv)[Uv].set(e.queryHash, e), this.notify({
type: "added",
query: e
}));
}
remove(e) {
const t = Vv(this, Uv)[Uv].get(e.queryHash);
t && (e.destroy(), t === e && Vv(this, Uv)[Uv].delete(e.queryHash), this.notify({
type: "removed",
query: e
}));
}
clear() {
Bm.batch(() => {
this.getAll().forEach((e) => {
this.remove(e);
});
});
}
get(e) {
return Vv(this, Uv)[Uv].get(e);
}
getAll() {
return [...Vv(this, Uv)[Uv].values()];
}
find(e) {
const t = _objectSpread2({ exact: !0 }, e);
return this.getAll().find((e) => hm(t, e));
}
findAll(e = {}) {
const t = this.getAll();
return Object.keys(e).length > 0 ? t.filter((t) => hm(e, t)) : t;
}
notify(e) {
Bm.batch(() => {
this.listeners.forEach((t) => {
t(e);
});
});
}
onFocus() {
Bm.batch(() => {
this.getAll().forEach((e) => {
e.onFocus();
});
});
}
onOnline() {
Bm.batch(() => {
this.getAll().forEach((e) => {
e.onOnline();
});
});
}
constructor(e = {}) {
super(), Object.defineProperty(this, Uv, {
writable: !0,
value: void 0
}), this.config = e, Vv(this, Uv)[Uv] = /* @__PURE__ */ new Map();
}
});
function Gv(e, t) {
if (!Object.prototype.hasOwnProperty.call(e, t)) throw new TypeError("attempted to use private field on non-instance");
return e;
}
var Kv;
var Yv;
var Zv;
var Xv;
var Jv;
var Qv;
var ey;
var ty;
var ry = 0;
function ny(e) {
return "__private_" + ry++ + "_" + e;
}
var oy = (Kv = ny("_queryCache"), Yv = ny("_mutationCache"), Zv = ny("_defaultOptions"), Xv = ny("_queryDefaults"), Jv = ny("_mutationDefaults"), Qv = ny("_mountCount"), ey = ny("_unsubscribeFocus"), ty = ny("_unsubscribeOnline"), class {
mount() {
var _this3 = this;
Gv(this, Qv)[Qv]++, 1 === Gv(this, Qv)[Qv] && (Gv(this, ey)[ey] = jm.subscribe(function() {
var _ref7 = _asyncToGenerator(function* (e) {
e && (yield _this3.resumePausedMutations(), Gv(_this3, Kv)[Kv].onFocus());
});
return function(_x5) {
return _ref7.apply(this, arguments);
};
}()), Gv(this, ty)[ty] = Gm.subscribe(function() {
var _ref8 = _asyncToGenerator(function* (e) {
e && (yield _this3.resumePausedMutations(), Gv(_this3, Kv)[Kv].onOnline());
});
return function(_x6) {
return _ref8.apply(this, arguments);
};
}()));
}
unmount() {
Gv(this, Qv)[Qv]--, 0 === Gv(this, Qv)[Qv] && (null == Gv(this, ey)[ey] || Gv(this, ey)[ey].call(this), Gv(this, ey)[ey] = void 0, null == Gv(this, ty)[ty] || Gv(this, ty)[ty].call(this), Gv(this, ty)[ty] = void 0);
}
isFetching(e) {
return Gv(this, Kv)[Kv].findAll(_objectSpread2(_objectSpread2({}, e), {}, { fetchStatus: "fetching" })).length;
}
isMutating(e) {
return Gv(this, Yv)[Yv].findAll(_objectSpread2(_objectSpread2({}, e), {}, { status: "pending" })).length;
}
getQueryData(e) {
var _Gv$Kv$get;
const t = this.defaultQueryOptions({ queryKey: e });
return (_Gv$Kv$get = Gv(this, Kv)[Kv].get(t.queryHash)) === null || _Gv$Kv$get === void 0 ? void 0 : _Gv$Kv$get.state.data;
}
ensureQueryData(e) {
const t = this.defaultQueryOptions(e);
const r = Gv(this, Kv)[Kv].build(this, t);
const n = r.state.data;
return void 0 === n ? this.fetchQuery(e) : (e.revalidateIfStale && r.isStaleByTime(dm(t.staleTime, r)) && this.prefetchQuery(t), Promise.resolve(n));
}
getQueriesData(e) {
return Gv(this, Kv)[Kv].findAll(e).map(({ queryKey: e, state: t }) => [e, t.data]);
}
setQueryData(e, t, r) {
const n = this.defaultQueryOptions({ queryKey: e });
const o = Gv(this, Kv)[Kv].get(n.queryHash);
const s = function(e, t) {
return "function" == typeof e ? e(t) : e;
}(t, o === null || o === void 0 ? void 0 : o.state.data);
if (void 0 !== s) return Gv(this, Kv)[Kv].build(this, n).setData(s, _objectSpread2(_objectSpread2({}, r), {}, { manual: !0 }));
}
setQueriesData(e, t, r) {
return Bm.batch(() => Gv(this, Kv)[Kv].findAll(e).map(({ queryKey: e }) => [e, this.setQueryData(e, t, r)]));
}
getQueryState(e) {
var _Gv$Kv$get2;
const t = this.defaultQueryOptions({ queryKey: e });
return (_Gv$Kv$get2 = Gv(this, Kv)[Kv].get(t.queryHash)) === null || _Gv$Kv$get2 === void 0 ? void 0 : _Gv$Kv$get2.state;
}
removeQueries(e) {
const t = Gv(this, Kv)[Kv];
Bm.batch(() => {
t.findAll(e).forEach((e) => {
t.remove(e);
});
});
}
resetQueries(e, t) {
const r = Gv(this, Kv)[Kv];
return Bm.batch(() => (r.findAll(e).forEach((e) => {
e.reset();
}), this.refetchQueries(_objectSpread2({ type: "active" }, e), t)));
}
cancelQueries(e, t = {}) {
const r = _objectSpread2({ revert: !0 }, t);
const n = Bm.batch(() => Gv(this, Kv)[Kv].findAll(e).map((e) => e.cancel(r)));
return Promise.all(n).then(cm).catch(cm);
}
invalidateQueries(e, t = {}) {
return Bm.batch(() => {
var _ref9;
var _e$refetchType;
return Gv(this, Kv)[Kv].findAll(e).forEach((e) => {
e.invalidate();
}), "none" === (e === null || e === void 0 ? void 0 : e.refetchType) ? Promise.resolve() : this.refetchQueries(_objectSpread2(_objectSpread2({}, e), {}, { type: (_ref9 = (_e$refetchType = e === null || e === void 0 ? void 0 : e.refetchType) !== null && _e$refetchType !== void 0 ? _e$refetchType : e === null || e === void 0 ? void 0 : e.type) !== null && _ref9 !== void 0 ? _ref9 : "active" }), t);
});
}
refetchQueries(e, t = {}) {
var _t$cancelRefetch;
const r = _objectSpread2(_objectSpread2({}, t), {}, { cancelRefetch: (_t$cancelRefetch = t.cancelRefetch) !== null && _t$cancelRefetch !== void 0 ? _t$cancelRefetch : !0 });
const n = Bm.batch(() => Gv(this, Kv)[Kv].findAll(e).filter((e) => !e.isDisabled() && !e.isStatic()).map((e) => {
let t = e.fetch(void 0, r);
return r.throwOnError || (t = t.catch(cm)), "paused" === e.state.fetchStatus ? Promise.resolve() : t;
}));
return Promise.all(n).then(cm);
}
fetchQuery(e) {
const t = this.defaultQueryOptions(e);
void 0 === t.retry && (t.retry = !1);
const r = Gv(this, Kv)[Kv].build(this, t);
return r.isStaleByTime(dm(t.staleTime, r)) ? r.fetch(t) : Promise.resolve(r.state.data);
}
prefetchQuery(e) {
return this.fetchQuery(e).then(cm).catch(cm);
}
fetchInfiniteQuery(e) {
return e.behavior = lv(e.pages), this.fetchQuery(e);
}
prefetchInfiniteQuery(e) {
return this.fetchInfiniteQuery(e).then(cm).catch(cm);
}
ensureInfiniteQueryData(e) {
return e.behavior = lv(e.pages), this.ensureQueryData(e);
}
resumePausedMutations() {
return Gm.isOnline() ? Gv(this, Yv)[Yv].resumePausedMutations() : Promise.resolve();
}
getQueryCache() {
return Gv(this, Kv)[Kv];
}
getMutationCache() {
return Gv(this, Yv)[Yv];
}
getDefaultOptions() {
return Gv(this, Zv)[Zv];
}
setDefaultOptions(e) {
Gv(this, Zv)[Zv] = e;
}
setQueryDefaults(e, t) {
Gv(this, Xv)[Xv].set(vm(e), {
queryKey: e,
defaultOptions: t
});
}
getQueryDefaults(e) {
const t = [...Gv(this, Xv)[Xv].values()];
const r = {};
return t.forEach((t) => {
ym(e, t.queryKey) && Object.assign(r, t.defaultOptions);
}), r;
}
setMutationDefaults(e, t) {
Gv(this, Jv)[Jv].set(vm(e), {
mutationKey: e,
defaultOptions: t
});
}
getMutationDefaults(e) {
const t = [...Gv(this, Jv)[Jv].values()];
const r = {};
return t.forEach((t) => {
ym(e, t.mutationKey) && Object.assign(r, t.defaultOptions);
}), r;
}
defaultQueryOptions(e) {
if (e._defaulted) return e;
const t = _objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2({}, Gv(this, Zv)[Zv].queries), this.getQueryDefaults(e.queryKey)), e), {}, { _defaulted: !0 });
return t.queryHash || (t.queryHash = gm(t.queryKey, t)), void 0 === t.refetchOnReconnect && (t.refetchOnReconnect = "always" !== t.networkMode), void 0 === t.throwOnError && (t.throwOnError = !!t.suspense), !t.networkMode && t.persister && (t.networkMode = "offlineFirst"), t.queryFn === Tm && (t.enabled = !1), t;
}
defaultMutationOptions(e) {
return (e === null || e === void 0 ? void 0 : e._defaulted) ? e : _objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2({}, Gv(this, Zv)[Zv].mutations), (e === null || e === void 0 ? void 0 : e.mutationKey) && this.getMutationDefaults(e.mutationKey)), e), {}, { _defaulted: !0 });
}
clear() {
Gv(this, Kv)[Kv].clear(), Gv(this, Yv)[Yv].clear();
}
constructor(e = {}) {
Object.defineProperty(this, Kv, {
writable: !0,
value: void 0
}), Object.defineProperty(this, Yv, {
writable: !0,
value: void 0
}), Object.defineProperty(this, Zv, {
writable: !0,
value: void 0
}), Object.defineProperty(this, Xv, {
writable: !0,
value: void 0
}), Object.defineProperty(this, Jv, {
writable: !0,
value: void 0
}), Object.defineProperty(this, Qv, {
writable: !0,
value: void 0
}), Object.defineProperty(this, ey, {
writable: !0,
value: void 0
}), Object.defineProperty(this, ty, {
writable: !0,
value: void 0
}), Gv(this, Kv)[Kv] = e.queryCache || new Hv(), Gv(this, Yv)[Yv] = e.mutationCache || new Tv(), Gv(this, Zv)[Zv] = e.defaultOptions || {}, Gv(this, Xv)[Xv] = /* @__PURE__ */ new Map(), Gv(this, Jv)[Jv] = /* @__PURE__ */ new Map(), Gv(this, Qv)[Qv] = 0;
}
});
var iy = react.createContext(void 0);
var sy = (e) => {
const t = react.useContext(iy);
if (e) return e;
if (!t) throw new Error("No QueryClient set, use QueryClientProvider to set one");
return t;
};
var ay = ({ client: t, children: r }) => (react.useEffect(() => (t.mount(), () => {
t.unmount();
}), [t]), (0, import_jsx_runtime.jsx)(iy.Provider, {
value: t,
children: r
}));
var ly = react.createContext(!1);
var cy = react.createContext(function() {
let e = !1;
return {
clearReset: () => {
e = !1;
},
reset: () => {
e = !0;
},
isReset: () => e
};
}());
var uy = (e, t, r) => t.fetchOptimistic(e).catch(() => {
r.clearReset();
});
function py(e, t) {
return function(e, t, r) {
var _s$getDefaultOptions$;
var _s$getDefaultOptions$2;
var _s$getDefaultOptions$3;
var _s$getDefaultOptions$4;
if ("object" != typeof e || Array.isArray(e)) throw new Error("Bad argument type. Starting with v5, only the \"Object\" form is allowed when calling query related functions. Please use the error stack to find the culprit call. More info here: https://tanstack.com/query/latest/docs/react/guides/migrating-to-v5#supports-a-single-signature-one-object");
const o = react.useContext(ly);
const i = react.useContext(cy);
const s = sy(r);
const a = s.defaultQueryOptions(e);
(_s$getDefaultOptions$ = s.getDefaultOptions().queries) === null || _s$getDefaultOptions$ === void 0 || (_s$getDefaultOptions$2 = _s$getDefaultOptions$._experimental_beforeQuery) === null || _s$getDefaultOptions$2 === void 0 || _s$getDefaultOptions$2.call(_s$getDefaultOptions$, a);
const l = s.getQueryCache().get(a.queryHash);
a.queryFn || console.error(`[${a.queryHash}]: No queryFn was passed as an option, and no default queryFn was found. The queryFn parameter is only optional when using a default queryFn. More info here: https://tanstack.com/query/latest/docs/framework/react/guides/default-query-function`), a._optimisticResults = o ? "isRestoring" : "optimistic", ((e) => {
if (e.suspense) {
const t = 1e3;
const r = (e) => "static" === e ? e : Math.max(e !== null && e !== void 0 ? e : t, t);
const n = e.staleTime;
e.staleTime = "function" == typeof n ? (...e) => r(n(...e)) : r(n), "number" == typeof e.gcTime && (e.gcTime = Math.max(e.gcTime, t));
}
})(a), ((e, t, r) => {
const n = (r === null || r === void 0 ? void 0 : r.state.error) && "function" == typeof e.throwOnError ? Im(e.throwOnError, [r.state.error, r]) : e.throwOnError;
(e.suspense || e.experimental_prefetchInRender || n) && (t.isReset() || (e.retryOnMount = !1));
})(a, i, l), ((e) => {
react.useEffect(() => {
e.clearReset();
}, [e]);
})(i);
const c = !s.getQueryCache().get(a.queryHash), [u] = react.useState(() => new t(s, a)), p = u.getOptimisticResult(a), d = !o && !1 !== e.subscribed;
if (react.useSyncExternalStore(react.useCallback((e) => {
const t = d ? u.subscribe(Bm.batchCalls(e)) : cm;
return u.updateResult(), t;
}, [u, d]), () => u.getCurrentResult(), () => u.getCurrentResult()), react.useEffect(() => {
u.setOptions(a);
}, [a, u]), ((e, t) => (e === null || e === void 0 ? void 0 : e.suspense) && t.isPending)(a, p)) throw uy(a, u, i);
if ((({ result: e, errorResetBoundary: t, throwOnError: r, query: n, suspense: o }) => e.isError && !t.isReset() && !e.isFetching && n && (o && void 0 === e.data || Im(r, [e.error, n])))({
result: p,
errorResetBoundary: i,
throwOnError: a.throwOnError,
query: l,
suspense: a.suspense
})) throw p.error;
if ((_s$getDefaultOptions$3 = s.getDefaultOptions().queries) === null || _s$getDefaultOptions$3 === void 0 || (_s$getDefaultOptions$4 = _s$getDefaultOptions$3._experimental_afterQuery) === null || _s$getDefaultOptions$4 === void 0 || _s$getDefaultOptions$4.call(_s$getDefaultOptions$3, a, p), a.experimental_prefetchInRender && !lm && ((e, t) => e.isLoading && e.isFetching && !t)(p, o)) {
const e = c ? uy(a, u, i) : l === null || l === void 0 ? void 0 : l.promise;
e === null || e === void 0 || e.catch(cm).finally(() => {
u.updateResult();
});
}
return a.notifyOnChangeProps ? p : u.trackResult(p);
}(e, Kg, t);
}
function dy(e, t) {
const r = sy(t), [o] = react.useState(() => new $v(r, e));
react.useEffect(() => {
o.setOptions(e);
}, [o, e]);
const i = react.useSyncExternalStore(react.useCallback((e) => o.subscribe(Bm.batchCalls(e)), [o]), () => o.getCurrentResult(), () => o.getCurrentResult());
const s = react.useCallback((e, t) => {
o.mutate(e, t).catch(cm);
}, [o]);
if (i.error && Im(o.options.throwOnError, [i.error])) throw i.error;
return _objectSpread2(_objectSpread2({}, i), {}, {
mutate: s,
mutateAsync: i.mutate
});
}
var fy = {
local: {
SUPPORT_FORM_URL: "https://my.stg.elementor.red/support-form/",
FEEDBACK_API: "https://my.stg.elementor.red/feedback/api/v1",
WHATS_NEW_API: "https://my.stg.elementor.red/whats-new/api/v1",
MY_ELEMENTOR_URL: "https://my.stg.elementor.red"
},
development: {
SUPPORT_FORM_URL: "https://my.dev.elementor.red/support-form/",
FEEDBACK_API: "https://my.dev.elementor.red/feedback/api/v1",
WHATS_NEW_API: "https://my.dev.elementor.red/whats-new/api/v1",
MY_ELEMENTOR_URL: "https://my.dev.elementor.red"
},
staging: {
SUPPORT_FORM_URL: "https://my.stg.elementor.red/support-form/",
FEEDBACK_API: "https://my.stg.elementor.red/feedback/api/v1",
WHATS_NEW_API: "https://my.stg.elementor.red/whats-new/api/v1",
MY_ELEMENTOR_URL: "https://my.stg.elementor.red"
},
production: {
SUPPORT_FORM_URL: "https://my.elementor.com/support-form/",
FEEDBACK_API: "https://my.elementor.com/feedback/api/v1",
WHATS_NEW_API: "https://my.elementor.com/whats-new/api/v1",
MY_ELEMENTOR_URL: "https://my.elementor.com"
}
};
function hy(e, t) {
return function() {
return e.apply(t, arguments);
};
}
var { toString: my } = Object.prototype, { getPrototypeOf: gy } = Object, { iterator: vy, toStringTag: yy } = Symbol, by = (wy = Object.create(null), (e) => {
const t = my.call(e);
return wy[t] || (wy[t] = t.slice(8, -1).toLowerCase());
});
var wy;
var _y = (e) => (e = e.toLowerCase(), (t) => by(t) === e), xy = (e) => (t) => typeof t === e, { isArray: Sy } = Array, ky = xy("undefined");
function Cy(e) {
return null !== e && !ky(e) && null !== e.constructor && !ky(e.constructor) && Ty(e.constructor.isBuffer) && e.constructor.isBuffer(e);
}
var Oy = _y("ArrayBuffer"), Ey = xy("string"), Ty = xy("function"), Ry = xy("number"), Iy = (e) => null !== e && "object" == typeof e, My = (e) => {
if ("object" !== by(e)) return !1;
const t = gy(e);
return !(null !== t && t !== Object.prototype && null !== Object.getPrototypeOf(t) || yy in e || vy in e);
}, Ay = _y("Date"), Py = _y("File"), Ny = _y("Blob"), Ly = _y("FileList"), Dy = "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : "undefined" != typeof window ? window : "undefined" != typeof global ? global : {}, jy = void 0 !== Dy.FormData ? Dy.FormData : void 0, Fy = _y("URLSearchParams"), [$y, By, zy, Vy] = [
"ReadableStream",
"Request",
"Response",
"Headers"
].map(_y);
function Uy(e, t, { allOwnKeys: r = !1 } = {}) {
if (null == e) return;
let n;
let o;
if ("object" != typeof e && (e = [e]), Sy(e)) for (n = 0, o = e.length; n < o; n++) t.call(null, e[n], n, e);
else {
if (Cy(e)) return;
const o = r ? Object.getOwnPropertyNames(e) : Object.keys(e);
const i = o.length;
let s;
for (n = 0; n < i; n++) s = o[n], t.call(null, e[s], s, e);
}
}
function qy(e, t) {
if (Cy(e)) return null;
t = t.toLowerCase();
const r = Object.keys(e);
let n;
let o = r.length;
for (; o-- > 0;) if (n = r[o], t === n.toLowerCase()) return n;
return null;
}
var Wy = "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : "undefined" != typeof window ? window : global;
var Hy = (e) => !ky(e) && e !== Wy;
var Gy = (Ky = "undefined" != typeof Uint8Array && gy(Uint8Array), (e) => Ky && e instanceof Ky);
var Ky;
var Yy = _y("HTMLFormElement");
var Zy = (({ hasOwnProperty: e }) => (t, r) => e.call(t, r))(Object.prototype);
var Xy = _y("RegExp");
var Jy = (e, t) => {
const r = Object.getOwnPropertyDescriptors(e);
const n = {};
Uy(r, (r, o) => {
let i;
!1 !== (i = t(r, o, e)) && (n[o] = i || r);
}), Object.defineProperties(e, n);
};
var Qy = _y("AsyncFunction");
var eb = (tb = "function" == typeof setImmediate, rb = Ty(Wy.postMessage), tb ? setImmediate : rb ? ((e, t) => (Wy.addEventListener("message", ({ source: r, data: n }) => {
r === Wy && n === e && t.length && t.shift()();
}, !1), (r) => {
t.push(r), Wy.postMessage(e, "*");
}))(`axios@${Math.random()}`, []) : (e) => setTimeout(e));
var tb;
var rb;
var ob = {
isArray: Sy,
isArrayBuffer: Oy,
isBuffer: Cy,
isFormData: (e) => {
let t;
return e && (jy && e instanceof jy || Ty(e.append) && ("formdata" === (t = by(e)) || "object" === t && Ty(e.toString) && "[object FormData]" === e.toString()));
},
isArrayBufferView: function(e) {
let t;
return t = "undefined" != typeof ArrayBuffer && ArrayBuffer.isView ? ArrayBuffer.isView(e) : e && e.buffer && Oy(e.buffer), t;
},
isString: Ey,
isNumber: Ry,
isBoolean: (e) => !0 === e || !1 === e,
isObject: Iy,
isPlainObject: My,
isEmptyObject: (e) => {
if (!Iy(e) || Cy(e)) return !1;
try {
return 0 === Object.keys(e).length && Object.getPrototypeOf(e) === Object.prototype;
} catch (e) {
return !1;
}
},
isReadableStream: $y,
isRequest: By,
isResponse: zy,
isHeaders: Vy,
isUndefined: ky,
isDate: Ay,
isFile: Py,
isReactNativeBlob: (e) => !(!e || void 0 === e.uri),
isReactNative: (e) => e && void 0 !== e.getParts,
isBlob: Ny,
isRegExp: Xy,
isFunction: Ty,
isStream: (e) => Iy(e) && Ty(e.pipe),
isURLSearchParams: Fy,
isTypedArray: Gy,
isFileList: Ly,
forEach: Uy,
merge: function e() {
const { caseless: t, skipUndefined: r } = Hy(this) && this || {}, n = {}, o = (o, i) => {
if ("__proto__" === i || "constructor" === i || "prototype" === i) return;
const s = t && qy(n, i) || i;
My(n[s]) && My(o) ? n[s] = e(n[s], o) : My(o) ? n[s] = e({}, o) : Sy(o) ? n[s] = o.slice() : r && ky(o) || (n[s] = o);
};
for (let e = 0, t = arguments.length; e < t; e++) arguments[e] && Uy(arguments[e], o);
return n;
},
extend: (e, t, r, { allOwnKeys: n } = {}) => (Uy(t, (t, n) => {
r && Ty(t) ? Object.defineProperty(e, n, {
value: hy(t, r),
writable: !0,
enumerable: !0,
configurable: !0
}) : Object.defineProperty(e, n, {
value: t,
writable: !0,
enumerable: !0,
configurable: !0
});
}, { allOwnKeys: n }), e),
trim: (e) => e.trim ? e.trim() : e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, ""),
stripBOM: (e) => (65279 === e.charCodeAt(0) && (e = e.slice(1)), e),
inherits: (e, t, r, n) => {
e.prototype = Object.create(t.prototype, n), Object.defineProperty(e.prototype, "constructor", {
value: e,
writable: !0,
enumerable: !1,
configurable: !0
}), Object.defineProperty(e, "super", { value: t.prototype }), r && Object.assign(e.prototype, r);
},
toFlatObject: (e, t, r, n) => {
let o;
let i;
let s;
const a = {};
if (t = t || {}, null == e) return t;
do {
for (o = Object.getOwnPropertyNames(e), i = o.length; i-- > 0;) s = o[i], n && !n(s, e, t) || a[s] || (t[s] = e[s], a[s] = !0);
e = !1 !== r && gy(e);
} while (e && (!r || r(e, t)) && e !== Object.prototype);
return t;
},
kindOf: by,
kindOfTest: _y,
endsWith: (e, t, r) => {
e = String(e), (void 0 === r || r > e.length) && (r = e.length), r -= t.length;
const n = e.indexOf(t, r);
return -1 !== n && n === r;
},
toArray: (e) => {
if (!e) return null;
if (Sy(e)) return e;
let t = e.length;
if (!Ry(t)) return null;
const r = new Array(t);
for (; t-- > 0;) r[t] = e[t];
return r;
},
forEachEntry: (e, t) => {
const r = (e && e[vy]).call(e);
let n;
for (; (n = r.next()) && !n.done;) {
const r = n.value;
t.call(e, r[0], r[1]);
}
},
matchAll: (e, t) => {
let r;
const n = [];
for (; null !== (r = e.exec(t));) n.push(r);
return n;
},
isHTMLForm: Yy,
hasOwnProperty: Zy,
hasOwnProp: Zy,
reduceDescriptors: Jy,
freezeMethods: (e) => {
Jy(e, (t, r) => {
if (Ty(e) && -1 !== [
"arguments",
"caller",
"callee"
].indexOf(r)) return !1;
const n = e[r];
Ty(n) && (t.enumerable = !1, "writable" in t ? t.writable = !1 : t.set || (t.set = () => {
throw Error("Can not rewrite read-only method '" + r + "'");
}));
});
},
toObjectSet: (e, t) => {
const r = {};
const n = (e) => {
e.forEach((e) => {
r[e] = !0;
});
};
return Sy(e) ? n(e) : n(String(e).split(t)), r;
},
toCamelCase: (e) => e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g, function(e, t, r) {
return t.toUpperCase() + r;
}),
noop: () => {},
toFiniteNumber: (e, t) => null != e && Number.isFinite(e = +e) ? e : t,
findKey: qy,
global: Wy,
isContextDefined: Hy,
isSpecCompliantForm: function(e) {
return !!(e && Ty(e.append) && "FormData" === e[yy] && e[vy]);
},
toJSONObject: (e) => {
const t = new Array(10);
const r = (e, n) => {
if (Iy(e)) {
if (t.indexOf(e) >= 0) return;
if (Cy(e)) return e;
if (!("toJSON" in e)) {
t[n] = e;
const o = Sy(e) ? [] : {};
return Uy(e, (e, t) => {
const i = r(e, n + 1);
!ky(i) && (o[t] = i);
}), t[n] = void 0, o;
}
}
return e;
};
return r(e, 0);
},
isAsyncFn: Qy,
isThenable: (e) => e && (Iy(e) || Ty(e)) && Ty(e.then) && Ty(e.catch),
setImmediate: eb,
asap: "undefined" != typeof queueMicrotask ? queueMicrotask.bind(Wy) : "undefined" != typeof process && process.nextTick || eb,
isIterable: (e) => null != e && Ty(e[vy])
};
var ib = class ib extends Error {
static from(e, t, r, n, o, i) {
const s = new ib(e.message, t || e.code, r, n, o);
return s.cause = e, s.name = e.name, null != e.status && null == s.status && (s.status = e.status), i && Object.assign(s, i), s;
}
toJSON() {
return {
message: this.message,
name: this.name,
description: this.description,
number: this.number,
fileName: this.fileName,
lineNumber: this.lineNumber,
columnNumber: this.columnNumber,
stack: this.stack,
config: ob.toJSONObject(this.config),
code: this.code,
status: this.status
};
}
constructor(e, t, r, n, o) {
super(e), Object.defineProperty(this, "message", {
value: e,
enumerable: !0,
writable: !0,
configurable: !0
}), this.name = "AxiosError", this.isAxiosError = !0, t && (this.code = t), r && (this.config = r), n && (this.request = n), o && (this.response = o, this.status = o.status);
}
};
ib.ERR_BAD_OPTION_VALUE = "ERR_BAD_OPTION_VALUE", ib.ERR_BAD_OPTION = "ERR_BAD_OPTION", ib.ECONNABORTED = "ECONNABORTED", ib.ETIMEDOUT = "ETIMEDOUT", ib.ERR_NETWORK = "ERR_NETWORK", ib.ERR_FR_TOO_MANY_REDIRECTS = "ERR_FR_TOO_MANY_REDIRECTS", ib.ERR_DEPRECATED = "ERR_DEPRECATED", ib.ERR_BAD_RESPONSE = "ERR_BAD_RESPONSE", ib.ERR_BAD_REQUEST = "ERR_BAD_REQUEST", ib.ERR_CANCELED = "ERR_CANCELED", ib.ERR_NOT_SUPPORT = "ERR_NOT_SUPPORT", ib.ERR_INVALID_URL = "ERR_INVALID_URL";
var sb = ib;
function ab(e) {
return ob.isPlainObject(e) || ob.isArray(e);
}
function lb(e) {
return ob.endsWith(e, "[]") ? e.slice(0, -2) : e;
}
function cb(e, t, r) {
return e ? e.concat(t).map(function(e, t) {
return e = lb(e), !r && t ? "[" + e + "]" : e;
}).join(r ? "." : "") : t;
}
var ub = ob.toFlatObject(ob, {}, null, function(e) {
return /^is[A-Z]/.test(e);
});
function pb(e, t, r) {
if (!ob.isObject(e)) throw new TypeError("target must be an object");
t = t || new FormData();
const n = (r = ob.toFlatObject(r, {
metaTokens: !0,
dots: !1,
indexes: !1
}, !1, function(e, t) {
return !ob.isUndefined(t[e]);
})).metaTokens;
const o = r.visitor || c;
const i = r.dots;
const s = r.indexes;
const a = (r.Blob || "undefined" != typeof Blob && Blob) && ob.isSpecCompliantForm(t);
if (!ob.isFunction(o)) throw new TypeError("visitor must be a function");
function l(e) {
if (null === e) return "";
if (ob.isDate(e)) return e.toISOString();
if (ob.isBoolean(e)) return e.toString();
if (!a && ob.isBlob(e)) throw new sb("Blob is not supported. Use a Buffer instead.");
return ob.isArrayBuffer(e) || ob.isTypedArray(e) ? a && "function" == typeof Blob ? new Blob([e]) : Buffer.from(e) : e;
}
function c(e, r, o) {
let a = e;
if (ob.isReactNative(t) && ob.isReactNativeBlob(e)) return t.append(cb(o, r, i), l(e)), !1;
if (e && !o && "object" == typeof e) {
if (ob.endsWith(r, "{}")) r = n ? r : r.slice(0, -2), e = JSON.stringify(e);
else if (ob.isArray(e) && function(e) {
return ob.isArray(e) && !e.some(ab);
}(e) || (ob.isFileList(e) || ob.endsWith(r, "[]")) && (a = ob.toArray(e))) return r = lb(r), a.forEach(function(e, n) {
!ob.isUndefined(e) && null !== e && t.append(!0 === s ? cb([r], n, i) : null === s ? r : r + "[]", l(e));
}), !1;
}
return !!ab(e) || (t.append(cb(o, r, i), l(e)), !1);
}
const u = [];
const p = Object.assign(ub, {
defaultVisitor: c,
convertValue: l,
isVisitable: ab
});
if (!ob.isObject(e)) throw new TypeError("data must be an object");
return function e(r, n) {
if (!ob.isUndefined(r)) {
if (-1 !== u.indexOf(r)) throw Error("Circular reference detected in " + n.join("."));
u.push(r), ob.forEach(r, function(r, i) {
!0 === (!(ob.isUndefined(r) || null === r) && o.call(t, r, ob.isString(i) ? i.trim() : i, n, p)) && e(r, n ? n.concat(i) : [i]);
}), u.pop();
}
}(e), t;
}
function db(e) {
const t = {
"!": "%21",
"'": "%27",
"(": "%28",
")": "%29",
"~": "%7E",
"%20": "+",
"%00": "\0"
};
return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g, function(e) {
return t[e];
});
}
function fb(e, t) {
this._pairs = [], e && pb(e, this, t);
}
var hb = fb.prototype;
function mb(e) {
return encodeURIComponent(e).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+");
}
function gb(e, t, r) {
if (!t) return e;
const n = r && r.encode || mb;
const o = ob.isFunction(r) ? { serialize: r } : r;
const i = o && o.serialize;
let s;
if (s = i ? i(t, o) : ob.isURLSearchParams(t) ? t.toString() : new fb(t, o).toString(n), s) {
const t = e.indexOf("#");
-1 !== t && (e = e.slice(0, t)), e += (-1 === e.indexOf("?") ? "?" : "&") + s;
}
return e;
}
hb.append = function(e, t) {
this._pairs.push([e, t]);
}, hb.toString = function(e) {
const t = e ? function(t) {
return e.call(this, t, db);
} : db;
return this._pairs.map(function(e) {
return t(e[0]) + "=" + t(e[1]);
}, "").join("&");
};
var vb = class {
use(e, t, r) {
return this.handlers.push({
fulfilled: e,
rejected: t,
synchronous: !!r && r.synchronous,
runWhen: r ? r.runWhen : null
}), this.handlers.length - 1;
}
eject(e) {
this.handlers[e] && (this.handlers[e] = null);
}
clear() {
this.handlers && (this.handlers = []);
}
forEach(e) {
ob.forEach(this.handlers, function(t) {
null !== t && e(t);
});
}
constructor() {
this.handlers = [];
}
};
var yb = {
silentJSONParsing: !0,
forcedJSONParsing: !0,
clarifyTimeoutError: !1,
legacyInterceptorReqResOrdering: !0
};
var bb = {
isBrowser: !0,
classes: {
URLSearchParams: "undefined" != typeof URLSearchParams ? URLSearchParams : fb,
FormData: "undefined" != typeof FormData ? FormData : null,
Blob: "undefined" != typeof Blob ? Blob : null
},
protocols: [
"http",
"https",
"file",
"blob",
"url",
"data"
]
};
var wb = "undefined" != typeof window && "undefined" != typeof document;
var _b = "object" == typeof navigator && navigator || void 0;
var xb = wb && (!_b || [
"ReactNative",
"NativeScript",
"NS"
].indexOf(_b.product) < 0);
var Sb = "undefined" != typeof WorkerGlobalScope && self instanceof WorkerGlobalScope && "function" == typeof self.importScripts;
var kb = wb && window.location.href || "http://localhost";
var Cb = _objectSpread2(_objectSpread2({}, Object.freeze(Object.defineProperty({
__proto__: null,
hasBrowserEnv: wb,
hasStandardBrowserEnv: xb,
hasStandardBrowserWebWorkerEnv: Sb,
navigator: _b,
origin: kb
}, Symbol.toStringTag, { value: "Module" }))), bb);
function Ob(e) {
function t(e, r, n, o) {
let i = e[o++];
if ("__proto__" === i) return !0;
const s = Number.isFinite(+i);
const a = o >= e.length;
return i = !i && ob.isArray(n) ? n.length : i, a ? (ob.hasOwnProp(n, i) ? n[i] = [n[i], r] : n[i] = r, !s) : (n[i] && ob.isObject(n[i]) || (n[i] = []), t(e, r, n[i], o) && ob.isArray(n[i]) && (n[i] = function(e) {
const t = {};
const r = Object.keys(e);
let n;
const o = r.length;
let i;
for (n = 0; n < o; n++) i = r[n], t[i] = e[i];
return t;
}(n[i])), !s);
}
if (ob.isFormData(e) && ob.isFunction(e.entries)) {
const r = {};
return ob.forEachEntry(e, (e, n) => {
t(function(e) {
return ob.matchAll(/\w+|\[(\w*)]/g, e).map((e) => "[]" === e[0] ? "" : e[1] || e[0]);
}(e), n, r, 0);
}), r;
}
return null;
}
var Eb = {
transitional: yb,
adapter: [
"xhr",
"http",
"fetch"
],
transformRequest: [function(e, t) {
const r = t.getContentType() || "";
const n = r.indexOf("application/json") > -1;
const o = ob.isObject(e);
if (o && ob.isHTMLForm(e) && (e = new FormData(e)), ob.isFormData(e)) return n ? JSON.stringify(Ob(e)) : e;
if (ob.isArrayBuffer(e) || ob.isBuffer(e) || ob.isStream(e) || ob.isFile(e) || ob.isBlob(e) || ob.isReadableStream(e)) return e;
if (ob.isArrayBufferView(e)) return e.buffer;
if (ob.isURLSearchParams(e)) return t.setContentType("application/x-www-form-urlencoded;charset=utf-8", !1), e.toString();
let i;
if (o) {
if (r.indexOf("application/x-www-form-urlencoded") > -1) return function(e, t) {
return pb(e, new Cb.classes.URLSearchParams(), _objectSpread2({ visitor: function(e, t, r, n) {
return Cb.isNode && ob.isBuffer(e) ? (this.append(t, e.toString("base64")), !1) : n.defaultVisitor.apply(this, arguments);
} }, t));
}(e, this.formSerializer).toString();
if ((i = ob.isFileList(e)) || r.indexOf("multipart/form-data") > -1) {
const t = this.env && this.env.FormData;
return pb(i ? { "files[]": e } : e, t && new t(), this.formSerializer);
}
}
return o || n ? (t.setContentType("application/json", !1), function(e) {
if (ob.isString(e)) try {
return (0, JSON.parse)(e), ob.trim(e);
} catch (e) {
if ("SyntaxError" !== e.name) throw e;
}
return (0, JSON.stringify)(e);
}(e)) : e;
}],
transformResponse: [function(e) {
const t = this.transitional || Eb.transitional;
const r = t && t.forcedJSONParsing;
const n = "json" === this.responseType;
if (ob.isResponse(e) || ob.isReadableStream(e)) return e;
if (e && ob.isString(e) && (r && !this.responseType || n)) {
const r = !(t && t.silentJSONParsing) && n;
try {
return JSON.parse(e, this.parseReviver);
} catch (e) {
if (r) {
if ("SyntaxError" === e.name) throw sb.from(e, sb.ERR_BAD_RESPONSE, this, null, this.response);
throw e;
}
}
}
return e;
}],
timeout: 0,
xsrfCookieName: "XSRF-TOKEN",
xsrfHeaderName: "X-XSRF-TOKEN",
maxContentLength: -1,
maxBodyLength: -1,
env: {
FormData: Cb.classes.FormData,
Blob: Cb.classes.Blob
},
validateStatus: function(e) {
return e >= 200 && e < 300;
},
headers: { common: {
Accept: "application/json, text/plain, */*",
"Content-Type": void 0
} }
};
ob.forEach([
"delete",
"get",
"head",
"post",
"put",
"patch"
], (e) => {
Eb.headers[e] = {};
});
var Tb = Eb;
var Rb = ob.toObjectSet([
"age",
"authorization",
"content-length",
"content-type",
"etag",
"expires",
"from",
"host",
"if-modified-since",
"if-unmodified-since",
"last-modified",
"location",
"max-forwards",
"proxy-authorization",
"referer",
"retry-after",
"user-agent"
]);
var Ib = Symbol("internals");
function Mb(e, t) {
if (!1 !== e && null != e) {
if (ob.isArray(e)) e.forEach((e) => Mb(e, t));
else if (!((e) => !/[\r\n]/.test(e))(String(e))) throw new Error(`Invalid character in header content ["${t}"]`);
}
}
function Ab(e) {
return e && String(e).trim().toLowerCase();
}
function Pb(e) {
return !1 === e || null == e ? e : ob.isArray(e) ? e.map(Pb) : function(e) {
let t = e.length;
for (; t > 0;) {
const r = e.charCodeAt(t - 1);
if (10 !== r && 13 !== r) break;
t -= 1;
}
return t === e.length ? e : e.slice(0, t);
}(String(e));
}
function Nb(e, t, r, n, o) {
return ob.isFunction(n) ? n.call(this, t, r) : (o && (t = r), ob.isString(t) ? ob.isString(n) ? -1 !== t.indexOf(n) : ob.isRegExp(n) ? n.test(t) : void 0 : void 0);
}
var Lb = class {
set(e, t, r) {
const n = this;
function o(e, t, r) {
const o = Ab(t);
if (!o) throw new Error("header name must be a non-empty string");
const i = ob.findKey(n, o);
(!i || void 0 === n[i] || !0 === r || void 0 === r && !1 !== n[i]) && (Mb(e, t), n[i || t] = Pb(e));
}
const i = (e, t) => ob.forEach(e, (e, r) => o(e, r, t));
if (ob.isPlainObject(e) || e instanceof this.constructor) i(e, t);
else if (ob.isString(e) && (e = e.trim()) && !/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim())) i(((e) => {
const t = {};
let r;
let n;
let o;
return e && e.split("\n").forEach(function(e) {
o = e.indexOf(":"), r = e.substring(0, o).trim().toLowerCase(), n = e.substring(o + 1).trim(), !r || t[r] && Rb[r] || ("set-cookie" === r ? t[r] ? t[r].push(n) : t[r] = [n] : t[r] = t[r] ? t[r] + ", " + n : n);
}), t;
})(e), t);
else if (ob.isObject(e) && ob.isIterable(e)) {
let r;
let n;
let o = {};
for (const t of e) {
if (!ob.isArray(t)) throw TypeError("Object iterator must return a key-value pair");
o[n = t[0]] = (r = o[n]) ? ob.isArray(r) ? [...r, t[1]] : [r, t[1]] : t[1];
}
i(o, t);
} else null != e && o(t, e, r);
return this;
}
get(e, t) {
if (e = Ab(e)) {
const r = ob.findKey(this, e);
if (r) {
const e = this[r];
if (!t) return e;
if (!0 === t) return function(e) {
const t = Object.create(null);
const r = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;
let n;
for (; n = r.exec(e);) t[n[1]] = n[2];
return t;
}(e);
if (ob.isFunction(t)) return t.call(this, e, r);
if (ob.isRegExp(t)) return t.exec(e);
throw new TypeError("parser must be boolean|regexp|function");
}
}
}
has(e, t) {
if (e = Ab(e)) {
const r = ob.findKey(this, e);
return !(!r || void 0 === this[r] || t && !Nb(0, this[r], r, t));
}
return !1;
}
delete(e, t) {
const r = this;
let n = !1;
function o(e) {
if (e = Ab(e)) {
const o = ob.findKey(r, e);
!o || t && !Nb(0, r[o], o, t) || (delete r[o], n = !0);
}
}
return ob.isArray(e) ? e.forEach(o) : o(e), n;
}
clear(e) {
const t = Object.keys(this);
let r = t.length;
let n = !1;
for (; r--;) {
const o = t[r];
e && !Nb(0, this[o], o, e, !0) || (delete this[o], n = !0);
}
return n;
}
normalize(e) {
const t = this;
const r = {};
return ob.forEach(this, (n, o) => {
const i = ob.findKey(r, o);
if (i) return t[i] = Pb(n), void delete t[o];
const s = e ? function(e) {
return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g, (e, t, r) => t.toUpperCase() + r);
}(o) : String(o).trim();
s !== o && delete t[o], t[s] = Pb(n), r[s] = !0;
}), this;
}
concat(...e) {
return this.constructor.concat(this, ...e);
}
toJSON(e) {
const t = Object.create(null);
return ob.forEach(this, (r, n) => {
null != r && !1 !== r && (t[n] = e && ob.isArray(r) ? r.join(", ") : r);
}), t;
}
[Symbol.iterator]() {
return Object.entries(this.toJSON())[Symbol.iterator]();
}
toString() {
return Object.entries(this.toJSON()).map(([e, t]) => e + ": " + t).join("\n");
}
getSetCookie() {
return this.get("set-cookie") || [];
}
get [Symbol.toStringTag]() {
return "AxiosHeaders";
}
static from(e) {
return e instanceof this ? e : new this(e);
}
static concat(e, ...t) {
const r = new this(e);
return t.forEach((e) => r.set(e)), r;
}
static accessor(e) {
const t = (this[Ib] = this[Ib] = { accessors: {} }).accessors;
const r = this.prototype;
function n(e) {
const n = Ab(e);
t[n] || (function(e, t) {
const r = ob.toCamelCase(" " + t);
[
"get",
"set",
"has"
].forEach((n) => {
Object.defineProperty(e, n + r, {
value: function(e, r, o) {
return this[n].call(this, t, e, r, o);
},
configurable: !0
});
});
}(r, e), t[n] = !0);
}
return ob.isArray(e) ? e.forEach(n) : n(e), this;
}
constructor(e) {
e && this.set(e);
}
};
Lb.accessor([
"Content-Type",
"Content-Length",
"Accept",
"Accept-Encoding",
"User-Agent",
"Authorization"
]), ob.reduceDescriptors(Lb.prototype, ({ value: e }, t) => {
let r = t[0].toUpperCase() + t.slice(1);
return {
get: () => e,
set(e) {
this[r] = e;
}
};
}), ob.freezeMethods(Lb);
var Db = Lb;
function jb(e, t) {
const r = this || Tb;
const n = t || r;
const o = Db.from(n.headers);
let i = n.data;
return ob.forEach(e, function(e) {
i = e.call(r, i, o.normalize(), t ? t.status : void 0);
}), o.normalize(), i;
}
function Fb(e) {
return !(!e || !e.__CANCEL__);
}
var $b = class extends sb {
constructor(e, t, r) {
super(null == e ? "canceled" : e, sb.ERR_CANCELED, t, r), this.name = "CanceledError", this.__CANCEL__ = !0;
}
};
function Bb(e, t, r) {
const n = r.config.validateStatus;
r.status && n && !n(r.status) ? t(new sb("Request failed with status code " + r.status, [sb.ERR_BAD_REQUEST, sb.ERR_BAD_RESPONSE][Math.floor(r.status / 100) - 4], r.config, r.request, r)) : e(r);
}
var zb = (e, t, r = 3) => {
let n = 0;
const o = function(e, t) {
e = e || 10;
const r = new Array(e);
const n = new Array(e);
let o;
let i = 0;
let s = 0;
return t = void 0 !== t ? t : 1e3, function(a) {
const l = Date.now();
const c = n[s];
o || (o = l), r[i] = a, n[i] = l;
let u = s;
let p = 0;
for (; u !== i;) p += r[u++], u %= e;
if (i = (i + 1) % e, i === s && (s = (s + 1) % e), l - o < t) return;
const d = c && l - c;
return d ? Math.round(1e3 * p / d) : void 0;
};
}(50, 250);
return function(r, i) {
let s;
let a;
let l = 0;
let c = 1e3 / i;
const u = (r, i = Date.now()) => {
l = i, s = null, a && (clearTimeout(a), a = null), ((r) => {
const i = r.loaded;
const s = r.lengthComputable ? r.total : void 0;
const a = i - n;
const l = o(a);
n = i, e({
loaded: i,
total: s,
progress: s ? i / s : void 0,
bytes: a,
rate: l || void 0,
estimated: l && s && i <= s ? (s - i) / l : void 0,
event: r,
lengthComputable: null != s,
[t ? "download" : "upload"]: !0
});
})(...r);
};
return [(...e) => {
const t = Date.now();
const r = t - l;
r >= c ? u(e, t) : (s = e, a || (a = setTimeout(() => {
a = null, u(s);
}, c - r)));
}, () => s && u(s)];
}(0, r);
};
var Vb = (e, t) => {
const r = null != e;
return [(n) => t[0]({
lengthComputable: r,
total: e,
loaded: n
}), t[1]];
};
var Ub = (e) => (...t) => ob.asap(() => e(...t));
var qb = Cb.hasStandardBrowserEnv ? ((e, t) => (r) => (r = new URL(r, Cb.origin), e.protocol === r.protocol && e.host === r.host && (t || e.port === r.port)))(new URL(Cb.origin), Cb.navigator && /(msie|trident)/i.test(Cb.navigator.userAgent)) : () => !0;
var Wb = Cb.hasStandardBrowserEnv ? {
write(e, t, r, n, o, i, s) {
if ("undefined" == typeof document) return;
const a = [`${e}=${encodeURIComponent(t)}`];
ob.isNumber(r) && a.push(`expires=${new Date(r).toUTCString()}`), ob.isString(n) && a.push(`path=${n}`), ob.isString(o) && a.push(`domain=${o}`), !0 === i && a.push("secure"), ob.isString(s) && a.push(`SameSite=${s}`), document.cookie = a.join("; ");
},
read(e) {
if ("undefined" == typeof document) return null;
const t = document.cookie.match(new RegExp("(?:^|; )" + e + "=([^;]*)"));
return t ? decodeURIComponent(t[1]) : null;
},
remove(e) {
this.write(e, "", Date.now() - 864e5, "/");
}
} : {
write() {},
read: () => null,
remove() {}
};
function Hb(e, t, r) {
let n = !("string" == typeof (o = t) && /^([a-z][a-z\d+\-.]*:)?\/\//i.test(o));
var o;
return e && (n || 0 == r) ? function(e, t) {
return t ? e.replace(/\/?\/$/, "") + "/" + t.replace(/^\/+/, "") : e;
}(e, t) : t;
}
var Gb = (e) => e instanceof Db ? _objectSpread2({}, e) : e;
function Kb(e, t) {
t = t || {};
const r = {};
function n(e, t, r, n) {
return ob.isPlainObject(e) && ob.isPlainObject(t) ? ob.merge.call({ caseless: n }, e, t) : ob.isPlainObject(t) ? ob.merge({}, t) : ob.isArray(t) ? t.slice() : t;
}
function o(e, t, r, o) {
return ob.isUndefined(t) ? ob.isUndefined(e) ? void 0 : n(void 0, e, 0, o) : n(e, t, 0, o);
}
function i(e, t) {
if (!ob.isUndefined(t)) return n(void 0, t);
}
function s(e, t) {
return ob.isUndefined(t) ? ob.isUndefined(e) ? void 0 : n(void 0, e) : n(void 0, t);
}
function a(r, o, i) {
return i in t ? n(r, o) : i in e ? n(void 0, r) : void 0;
}
const l = {
url: i,
method: i,
data: i,
baseURL: s,
transformRequest: s,
transformResponse: s,
paramsSerializer: s,
timeout: s,
timeoutMessage: s,
withCredentials: s,
withXSRFToken: s,
adapter: s,
responseType: s,
xsrfCookieName: s,
xsrfHeaderName: s,
onUploadProgress: s,
onDownloadProgress: s,
decompress: s,
maxContentLength: s,
maxBodyLength: s,
beforeRedirect: s,
transport: s,
httpAgent: s,
httpsAgent: s,
cancelToken: s,
socketPath: s,
responseEncoding: s,
validateStatus: a,
headers: (e, t, r) => o(Gb(e), Gb(t), 0, !0)
};
return ob.forEach(Object.keys(_objectSpread2(_objectSpread2({}, e), t)), function(n) {
if ("__proto__" === n || "constructor" === n || "prototype" === n) return;
const i = ob.hasOwnProp(l, n) ? l[n] : o;
const s = i(e[n], t[n], n);
ob.isUndefined(s) && i !== a || (r[n] = s);
}), r;
}
var Yb = (e) => {
const t = Kb({}, e);
let { data: r, withXSRFToken: n, xsrfHeaderName: o, xsrfCookieName: i, headers: s, auth: a } = t;
if (t.headers = s = Db.from(s), t.url = gb(Hb(t.baseURL, t.url, t.allowAbsoluteUrls), e.params, e.paramsSerializer), a && s.set("Authorization", "Basic " + btoa((a.username || "") + ":" + (a.password ? unescape(encodeURIComponent(a.password)) : ""))), ob.isFormData(r)) {
if (Cb.hasStandardBrowserEnv || Cb.hasStandardBrowserWebWorkerEnv) s.setContentType(void 0);
else if (ob.isFunction(r.getHeaders)) {
const e = r.getHeaders();
const t = ["content-type", "content-length"];
Object.entries(e).forEach(([e, r]) => {
t.includes(e.toLowerCase()) && s.set(e, r);
});
}
}
if (Cb.hasStandardBrowserEnv && (n && ob.isFunction(n) && (n = n(t)), n || !1 !== n && qb(t.url))) {
const e = o && i && Wb.read(i);
e && s.set(o, e);
}
return t;
}, Zb = "undefined" != typeof XMLHttpRequest && function(e) {
return new Promise(function(t, r) {
const n = Yb(e);
let o = n.data;
const i = Db.from(n.headers).normalize();
let s, a, l, c, u, { responseType: p, onUploadProgress: d, onDownloadProgress: f } = n;
function h() {
c && c(), u && u(), n.cancelToken && n.cancelToken.unsubscribe(s), n.signal && n.signal.removeEventListener("abort", s);
}
let m = new XMLHttpRequest();
function g() {
if (!m) return;
const n = Db.from("getAllResponseHeaders" in m && m.getAllResponseHeaders());
Bb(function(e) {
t(e), h();
}, function(e) {
r(e), h();
}, {
data: p && "text" !== p && "json" !== p ? m.response : m.responseText,
status: m.status,
statusText: m.statusText,
headers: n,
config: e,
request: m
}), m = null;
}
m.open(n.method.toUpperCase(), n.url, !0), m.timeout = n.timeout, "onloadend" in m ? m.onloadend = g : m.onreadystatechange = function() {
m && 4 === m.readyState && (0 !== m.status || m.responseURL && 0 === m.responseURL.indexOf("file:")) && setTimeout(g);
}, m.onabort = function() {
m && (r(new sb("Request aborted", sb.ECONNABORTED, e, m)), m = null);
}, m.onerror = function(t) {
const n = t && t.message ? t.message : "Network Error";
const o = new sb(n, sb.ERR_NETWORK, e, m);
o.event = t || null, r(o), m = null;
}, m.ontimeout = function() {
let t = n.timeout ? "timeout of " + n.timeout + "ms exceeded" : "timeout exceeded";
const o = n.transitional || yb;
n.timeoutErrorMessage && (t = n.timeoutErrorMessage), r(new sb(t, o.clarifyTimeoutError ? sb.ETIMEDOUT : sb.ECONNABORTED, e, m)), m = null;
}, void 0 === o && i.setContentType(null), "setRequestHeader" in m && ob.forEach(i.toJSON(), function(e, t) {
m.setRequestHeader(t, e);
}), ob.isUndefined(n.withCredentials) || (m.withCredentials = !!n.withCredentials), p && "json" !== p && (m.responseType = n.responseType), f && ([l, u] = zb(f, !0), m.addEventListener("progress", l)), d && m.upload && ([a, c] = zb(d), m.upload.addEventListener("progress", a), m.upload.addEventListener("loadend", c)), (n.cancelToken || n.signal) && (s = (t) => {
m && (r(!t || t.type ? new $b(null, e, m) : t), m.abort(), m = null);
}, n.cancelToken && n.cancelToken.subscribe(s), n.signal && (n.signal.aborted ? s() : n.signal.addEventListener("abort", s)));
const v = function(e) {
const t = /^([-+\w]{1,25})(:?\/\/|:)/.exec(e);
return t && t[1] || "";
}(n.url);
v && -1 === Cb.protocols.indexOf(v) ? r(new sb("Unsupported protocol " + v + ":", sb.ERR_BAD_REQUEST, e)) : m.send(o || null);
});
}, Xb = (e, t) => {
const { length: r } = e = e ? e.filter(Boolean) : [];
if (t || r) {
let r;
let n = new AbortController();
const o = function(e) {
if (!r) {
r = !0, s();
const t = e instanceof Error ? e : this.reason;
n.abort(t instanceof sb ? t : new $b(t instanceof Error ? t.message : t));
}
};
let i = t && setTimeout(() => {
i = null, o(new sb(`timeout of ${t}ms exceeded`, sb.ETIMEDOUT));
}, t);
const s = () => {
e && (i && clearTimeout(i), i = null, e.forEach((e) => {
e.unsubscribe ? e.unsubscribe(o) : e.removeEventListener("abort", o);
}), e = null);
};
e.forEach((e) => e.addEventListener("abort", o));
const { signal: a } = n;
return a.unsubscribe = () => ob.asap(s), a;
}
}, Jb = function* (e, t) {
let r = e.byteLength;
if (!t || r < t) return void (yield e);
let n;
let o = 0;
for (; o < r;) n = o + t, yield e.slice(o, n), o = n;
}, Qb = (e, t, r, n) => {
const o = (/* @__PURE__ */ function() {
var _ref11 = _wrapAsyncGenerator(function* (e, t) {
var _iteratorAbruptCompletion = false;
var _didIteratorError = false;
var _iteratorError;
try {
for (var _iterator = _asyncIterator((/* @__PURE__ */ function() {
var _ref10 = _wrapAsyncGenerator(function* (e) {
if (e[Symbol.asyncIterator]) return void (yield* _asyncGeneratorDelegate(_asyncIterator(e)));
const t = e.getReader();
try {
for (;;) {
const { done: e, value: r } = yield _awaitAsyncGenerator(t.read());
if (e) break;
yield r;
}
} finally {
yield _awaitAsyncGenerator(t.cancel());
}
});
return function(_x7) {
return _ref10.apply(this, arguments);
};
}())(e)), _step; _iteratorAbruptCompletion = !(_step = yield _awaitAsyncGenerator(_iterator.next())).done; _iteratorAbruptCompletion = false) {
const r = _step.value;
yield* _asyncGeneratorDelegate(_asyncIterator(Jb(r, t)));
}
} catch (err) {
_didIteratorError = true;
_iteratorError = err;
} finally {
try {
if (_iteratorAbruptCompletion && _iterator.return != null) yield _awaitAsyncGenerator(_iterator.return());
} finally {
if (_didIteratorError) throw _iteratorError;
}
}
});
return function(_x8, _x9) {
return _ref11.apply(this, arguments);
};
}())(e, t);
let i;
let s = 0;
let a = (e) => {
i || (i = !0, n && n(e));
};
return new ReadableStream({
pull(e) {
return _asyncToGenerator(function* () {
try {
const { done: t, value: n } = yield o.next();
if (t) return a(), void e.close();
let i = n.byteLength;
if (r) r(s += i);
e.enqueue(new Uint8Array(n));
} catch (e) {
throw a(e), e;
}
})();
},
cancel: (e) => (a(e), o.return())
}, { highWaterMark: 2 });
}, { isFunction: ew } = ob, tw = (({ Request: e, Response: t }) => ({
Request: e,
Response: t
}))(ob.global), { ReadableStream: rw, TextEncoder: nw } = ob.global, ow = (e, ...t) => {
try {
return !!e(...t);
} catch (e) {
return !1;
}
}, iw = (e) => {
e = ob.merge.call({ skipUndefined: !0 }, tw, e);
const { fetch: t, Request: r, Response: n } = e, o = t ? ew(t) : "function" == typeof fetch, i = ew(r), s = ew(n);
if (!o) return !1;
const a = o && ew(rw);
const l = o && ("function" == typeof nw ? (c = new nw(), (e) => c.encode(e)) : function() {
var _ref12 = _asyncToGenerator(function* (e) {
return new Uint8Array(yield new r(e).arrayBuffer());
});
return function(_x10) {
return _ref12.apply(this, arguments);
};
}());
var c;
const u = i && a && ow(() => {
let e = !1;
const t = new rw();
const n = new r(Cb.origin, {
body: t,
method: "POST",
get duplex() {
return e = !0, "half";
}
}).headers.has("Content-Type");
return t.cancel(), e && !n;
});
const p = s && a && ow(() => ob.isReadableStream(new n("").body));
const d = { stream: p && ((e) => e.body) };
o && [
"text",
"arrayBuffer",
"blob",
"formData",
"stream"
].forEach((e) => {
!d[e] && (d[e] = (t, r) => {
let n = t && t[e];
if (n) return n.call(t);
throw new sb(`Response type '${e}' is not supported`, sb.ERR_NOT_SUPPORT, r);
});
});
return function() {
var _ref15 = _asyncToGenerator(function* (e) {
let { url: o, method: s, data: a, signal: c, cancelToken: f, timeout: h, onDownloadProgress: m, onUploadProgress: g, responseType: v, headers: y, withCredentials: b = "same-origin", fetchOptions: w } = Yb(e), _ = t || fetch;
v = v ? (v + "").toLowerCase() : "text";
let x = Xb([c, f && f.toAbortSignal()], h);
let S = null;
const k = x && x.unsubscribe && (() => {
x.unsubscribe();
});
let C;
try {
if (g && u && "get" !== s && "head" !== s && 0 !== (C = yield function() {
var _ref14 = _asyncToGenerator(function* (e, t) {
const n = ob.toFiniteNumber(e.getContentLength());
return null == n ? function() {
var _ref13 = _asyncToGenerator(function* (e) {
if (null == e) return 0;
if (ob.isBlob(e)) return e.size;
if (ob.isSpecCompliantForm(e)) return (yield new r(Cb.origin, {
method: "POST",
body: e
}).arrayBuffer()).byteLength;
return ob.isArrayBufferView(e) || ob.isArrayBuffer(e) ? e.byteLength : (ob.isURLSearchParams(e) && (e += ""), ob.isString(e) ? (yield l(e)).byteLength : void 0);
});
return function(_x11) {
return _ref13.apply(this, arguments);
};
}()(t) : n;
});
return function(_x12, _x13) {
return _ref14.apply(this, arguments);
};
}()(y, a))) {
let e;
let t = new r(o, {
method: "POST",
body: a,
duplex: "half"
});
if (ob.isFormData(a) && (e = t.headers.get("content-type")) && y.setContentType(e), t.body) {
const [e, r] = Vb(C, zb(Ub(g)));
a = Qb(t.body, 65536, e, r);
}
}
ob.isString(b) || (b = b ? "include" : "omit");
const t = i && "credentials" in r.prototype;
const c = _objectSpread2(_objectSpread2({}, w), {}, {
signal: x,
method: s.toUpperCase(),
headers: y.normalize().toJSON(),
body: a,
duplex: "half",
credentials: t ? b : void 0
});
S = i && new r(o, c);
let f = yield i ? _(S, w) : _(o, c);
const h = p && ("stream" === v || "response" === v);
if (p && (m || h && k)) {
const e = {};
[
"status",
"statusText",
"headers"
].forEach((t) => {
e[t] = f[t];
});
const t = ob.toFiniteNumber(f.headers.get("content-length")), [r, o] = m && Vb(t, zb(Ub(m), !0)) || [];
f = new n(Qb(f.body, 65536, r, () => {
o && o(), k && k();
}), e);
}
v = v || "text";
let O = yield d[ob.findKey(d, v) || "text"](f, e);
return !h && k && k(), yield new Promise((t, r) => {
Bb(t, r, {
data: O,
headers: Db.from(f.headers),
status: f.status,
statusText: f.statusText,
config: e,
request: S
});
});
} catch (t) {
if (k && k(), t && "TypeError" === t.name && /Load failed|fetch/i.test(t.message)) throw Object.assign(new sb("Network Error", sb.ERR_NETWORK, e, S, t && t.response), { cause: t.cause || t });
throw sb.from(t, t && t.code, e, S, t && t.response);
}
});
return function(_x14) {
return _ref15.apply(this, arguments);
};
}();
}, sw = /* @__PURE__ */ new Map(), aw = (e) => {
let t = e && e.env || {};
const { fetch: r, Request: n, Response: o } = t, i = [
n,
o,
r
];
let s;
let a;
let l = i.length;
let c = sw;
for (; l--;) s = i[l], a = c.get(s), void 0 === a && c.set(s, a = l ? /* @__PURE__ */ new Map() : iw(t)), c = a;
return a;
};
aw();
var lw = {
http: null,
xhr: Zb,
fetch: { get: aw }
};
ob.forEach(lw, (e, t) => {
if (e) {
try {
Object.defineProperty(e, "name", { value: t });
} catch (e) {}
Object.defineProperty(e, "adapterName", { value: t });
}
});
var cw = (e) => `- ${e}`;
var uw = (e) => ob.isFunction(e) || null === e || !1 === e;
var pw = function(e, t) {
e = ob.isArray(e) ? e : [e];
const { length: r } = e;
let n;
let o;
const i = {};
for (let s = 0; s < r; s++) {
let r;
if (n = e[s], o = n, !uw(n) && (o = lw[(r = String(n)).toLowerCase()], void 0 === o)) throw new sb(`Unknown adapter '${r}'`);
if (o && (ob.isFunction(o) || (o = o.get(t)))) break;
i[r || "#" + s] = o;
}
if (!o) {
const e = Object.entries(i).map(([e, t]) => `adapter ${e} ` + (!1 === t ? "is not supported by the environment" : "is not available in the build"));
let t = r ? e.length > 1 ? "since :\n" + e.map(cw).join("\n") : " " + cw(e[0]) : "as no adapter specified";
throw new sb("There is no suitable adapter to dispatch the request " + t, "ERR_NOT_SUPPORT");
}
return o;
};
function dw(e) {
if (e.cancelToken && e.cancelToken.throwIfRequested(), e.signal && e.signal.aborted) throw new $b(null, e);
}
function fw(e) {
return dw(e), e.headers = Db.from(e.headers), e.data = jb.call(e, e.transformRequest), -1 !== [
"post",
"put",
"patch"
].indexOf(e.method) && e.headers.setContentType("application/x-www-form-urlencoded", !1), pw(e.adapter || Tb.adapter, e)(e).then(function(t) {
return dw(e), t.data = jb.call(e, e.transformResponse, t), t.headers = Db.from(t.headers), t;
}, function(t) {
return Fb(t) || (dw(e), t && t.response && (t.response.data = jb.call(e, e.transformResponse, t.response), t.response.headers = Db.from(t.response.headers))), Promise.reject(t);
});
}
var hw = "1.15.0";
var mw = {};
[
"object",
"boolean",
"number",
"function",
"string",
"symbol"
].forEach((e, t) => {
mw[e] = function(r) {
return typeof r === e || "a" + (t < 1 ? "n " : " ") + e;
};
});
var gw = {};
mw.transitional = function(e, t, r) {
function n(e, t) {
return "[Axios v1.15.0] Transitional option '" + e + "'" + t + (r ? ". " + r : "");
}
return (r, o, i) => {
if (!1 === e) throw new sb(n(o, " has been removed" + (t ? " in " + t : "")), sb.ERR_DEPRECATED);
return t && !gw[o] && (gw[o] = !0, console.warn(n(o, " has been deprecated since v" + t + " and will be removed in the near future"))), !e || e(r, o, i);
};
}, mw.spelling = function(e) {
return (t, r) => (console.warn(`${r} is likely a misspelling of ${e}`), !0);
};
var vw = {
assertOptions: function(e, t, r) {
if ("object" != typeof e) throw new sb("options must be an object", sb.ERR_BAD_OPTION_VALUE);
const n = Object.keys(e);
let o = n.length;
for (; o-- > 0;) {
const i = n[o];
const s = t[i];
if (s) {
const t = e[i];
const r = void 0 === t || s(t, i, e);
if (!0 !== r) throw new sb("option " + i + " must be " + r, sb.ERR_BAD_OPTION_VALUE);
continue;
}
if (!0 !== r) throw new sb("Unknown option " + i, sb.ERR_BAD_OPTION);
}
},
validators: mw
};
var yw = vw.validators;
var bw = class {
request(e, t) {
var _this4 = this;
return _asyncToGenerator(function* () {
try {
return yield _this4._request(e, t);
} catch (e) {
if (e instanceof Error) {
let t = {};
Error.captureStackTrace ? Error.captureStackTrace(t) : t = /* @__PURE__ */ new Error();
const r = (() => {
if (!t.stack) return "";
const e = t.stack.indexOf("\n");
return -1 === e ? "" : t.stack.slice(e + 1);
})();
try {
if (e.stack) {
if (r) {
const t = r.indexOf("\n");
const n = -1 === t ? -1 : r.indexOf("\n", t + 1);
const o = -1 === n ? "" : r.slice(n + 1);
String(e.stack).endsWith(o) || (e.stack += "\n" + r);
}
} else e.stack = r;
} catch (e) {}
}
throw e;
}
})();
}
_request(e, t) {
"string" == typeof e ? (t = t || {}).url = e : t = e || {}, t = Kb(this.defaults, t);
const { transitional: r, paramsSerializer: n, headers: o } = t;
void 0 !== r && vw.assertOptions(r, {
silentJSONParsing: yw.transitional(yw.boolean),
forcedJSONParsing: yw.transitional(yw.boolean),
clarifyTimeoutError: yw.transitional(yw.boolean),
legacyInterceptorReqResOrdering: yw.transitional(yw.boolean)
}, !1), null != n && (ob.isFunction(n) ? t.paramsSerializer = { serialize: n } : vw.assertOptions(n, {
encode: yw.function,
serialize: yw.function
}, !0)), void 0 !== t.allowAbsoluteUrls || (void 0 !== this.defaults.allowAbsoluteUrls ? t.allowAbsoluteUrls = this.defaults.allowAbsoluteUrls : t.allowAbsoluteUrls = !0), vw.assertOptions(t, {
baseUrl: yw.spelling("baseURL"),
withXsrfToken: yw.spelling("withXSRFToken")
}, !0), t.method = (t.method || this.defaults.method || "get").toLowerCase();
let i = o && ob.merge(o.common, o[t.method]);
o && ob.forEach([
"delete",
"get",
"head",
"post",
"put",
"patch",
"common"
], (e) => {
delete o[e];
}), t.headers = Db.concat(i, o);
const s = [];
let a = !0;
this.interceptors.request.forEach(function(e) {
if ("function" == typeof e.runWhen && !1 === e.runWhen(t)) return;
a = a && e.synchronous;
const r = t.transitional || yb;
r && r.legacyInterceptorReqResOrdering ? s.unshift(e.fulfilled, e.rejected) : s.push(e.fulfilled, e.rejected);
});
const l = [];
let c;
this.interceptors.response.forEach(function(e) {
l.push(e.fulfilled, e.rejected);
});
let u;
let p = 0;
if (!a) {
const e = [fw.bind(this), void 0];
for (e.unshift(...s), e.push(...l), u = e.length, c = Promise.resolve(t); p < u;) c = c.then(e[p++], e[p++]);
return c;
}
u = s.length;
let d = t;
for (; p < u;) {
const e = s[p++];
const t = s[p++];
try {
d = e(d);
} catch (e) {
t.call(this, e);
break;
}
}
try {
c = fw.call(this, d);
} catch (e) {
return Promise.reject(e);
}
for (p = 0, u = l.length; p < u;) c = c.then(l[p++], l[p++]);
return c;
}
getUri(e) {
return gb(Hb((e = Kb(this.defaults, e)).baseURL, e.url, e.allowAbsoluteUrls), e.params, e.paramsSerializer);
}
constructor(e) {
this.defaults = e || {}, this.interceptors = {
request: new vb(),
response: new vb()
};
}
};
ob.forEach([
"delete",
"get",
"head",
"options"
], function(e) {
bw.prototype[e] = function(t, r) {
return this.request(Kb(r || {}, {
method: e,
url: t,
data: (r || {}).data
}));
};
}), ob.forEach([
"post",
"put",
"patch"
], function(e) {
function t(t) {
return function(r, n, o) {
return this.request(Kb(o || {}, {
method: e,
headers: t ? { "Content-Type": "multipart/form-data" } : {},
url: r,
data: n
}));
};
}
bw.prototype[e] = t(), bw.prototype[e + "Form"] = t(!0);
});
var ww = bw;
var _w = class _w {
throwIfRequested() {
if (this.reason) throw this.reason;
}
subscribe(e) {
this.reason ? e(this.reason) : this._listeners ? this._listeners.push(e) : this._listeners = [e];
}
unsubscribe(e) {
if (!this._listeners) return;
const t = this._listeners.indexOf(e);
-1 !== t && this._listeners.splice(t, 1);
}
toAbortSignal() {
const e = new AbortController();
const t = (t) => {
e.abort(t);
};
return this.subscribe(t), e.signal.unsubscribe = () => this.unsubscribe(t), e.signal;
}
static source() {
let e;
return {
token: new _w(function(t) {
e = t;
}),
cancel: e
};
}
constructor(e) {
if ("function" != typeof e) throw new TypeError("executor must be a function.");
let t;
this.promise = new Promise(function(e) {
t = e;
});
const r = this;
this.promise.then((e) => {
if (!r._listeners) return;
let t = r._listeners.length;
for (; t-- > 0;) r._listeners[t](e);
r._listeners = null;
}), this.promise.then = (e) => {
let t;
const n = new Promise((e) => {
r.subscribe(e), t = e;
}).then(e);
return n.cancel = function() {
r.unsubscribe(t);
}, n;
}, e(function(e, n, o) {
r.reason || (r.reason = new $b(e, n, o), t(r.reason));
});
}
};
var xw = _w;
var Sw = {
Continue: 100,
SwitchingProtocols: 101,
Processing: 102,
EarlyHints: 103,
Ok: 200,
Created: 201,
Accepted: 202,
NonAuthoritativeInformation: 203,
NoContent: 204,
ResetContent: 205,
PartialContent: 206,
MultiStatus: 207,
AlreadyReported: 208,
ImUsed: 226,
MultipleChoices: 300,
MovedPermanently: 301,
Found: 302,
SeeOther: 303,
NotModified: 304,
UseProxy: 305,
Unused: 306,
TemporaryRedirect: 307,
PermanentRedirect: 308,
BadRequest: 400,
Unauthorized: 401,
PaymentRequired: 402,
Forbidden: 403,
NotFound: 404,
MethodNotAllowed: 405,
NotAcceptable: 406,
ProxyAuthenticationRequired: 407,
RequestTimeout: 408,
Conflict: 409,
Gone: 410,
LengthRequired: 411,
PreconditionFailed: 412,
PayloadTooLarge: 413,
UriTooLong: 414,
UnsupportedMediaType: 415,
RangeNotSatisfiable: 416,
ExpectationFailed: 417,
ImATeapot: 418,
MisdirectedRequest: 421,
UnprocessableEntity: 422,
Locked: 423,
FailedDependency: 424,
TooEarly: 425,
UpgradeRequired: 426,
PreconditionRequired: 428,
TooManyRequests: 429,
RequestHeaderFieldsTooLarge: 431,
UnavailableForLegalReasons: 451,
InternalServerError: 500,
NotImplemented: 501,
BadGateway: 502,
ServiceUnavailable: 503,
GatewayTimeout: 504,
HttpVersionNotSupported: 505,
VariantAlsoNegotiates: 506,
InsufficientStorage: 507,
LoopDetected: 508,
NotExtended: 510,
NetworkAuthenticationRequired: 511,
WebServerIsDown: 521,
ConnectionTimedOut: 522,
OriginIsUnreachable: 523,
TimeoutOccurred: 524,
SslHandshakeFailed: 525,
InvalidSslCertificate: 526
};
Object.entries(Sw).forEach(([e, t]) => {
Sw[t] = e;
});
var kw = Sw;
var Cw = function e(t) {
const r = new ww(t);
const n = hy(ww.prototype.request, r);
return ob.extend(n, ww.prototype, r, { allOwnKeys: !0 }), ob.extend(n, r, null, { allOwnKeys: !0 }), n.create = function(r) {
return e(Kb(t, r));
}, n;
}(Tb);
Cw.Axios = ww, Cw.CanceledError = $b, Cw.CancelToken = xw, Cw.isCancel = Fb, Cw.VERSION = hw, Cw.toFormData = pb, Cw.AxiosError = sb, Cw.Cancel = Cw.CanceledError, Cw.all = function(e) {
return Promise.all(e);
}, Cw.spread = function(e) {
return function(t) {
return e.apply(null, t);
};
}, Cw.isAxiosError = function(e) {
return ob.isObject(e) && !0 === e.isAxiosError;
}, Cw.mergeConfig = Kb, Cw.AxiosHeaders = Db, Cw.formToJSON = (e) => Ob(ob.isHTMLForm(e) ? new FormData(e) : e), Cw.getAdapter = pw, Cw.HttpStatusCode = kw, Cw.default = Cw;
var Ow = class Ow {
static initialize(e) {
Ow.config = e;
}
static create(e, t = 3e4, r) {
if (!Ow.config) throw new Error("HttpClient must be initialized with config before use. Call HttpClient.initialize(config) first.");
const n = Ow.config[e];
if (!n) throw new Error(`Configuration key "${e}" is not found in the environment config`);
return new Ow(n, t, r);
}
get(e, t, r) {
var _this5 = this;
return _asyncToGenerator(function* () {
return _this5.http.get(e, _objectSpread2({ params: t }, r));
})();
}
post(e, t, r) {
var _this6 = this;
return _asyncToGenerator(function* () {
return _this6.http.post(e, t, r);
})();
}
put(e, t, r) {
var _this7 = this;
return _asyncToGenerator(function* () {
return _this7.http.put(e, t, r);
})();
}
delete(e, t) {
var _this8 = this;
return _asyncToGenerator(function* () {
return _this8.http.delete(e, t);
})();
}
getInstance() {
return this.http;
}
constructor(e, t = 3e4, r) {
const n = _objectSpread2({
Accept: "application/json",
"Content-Type": "application/json"
}, r || {});
this.http = Cw.create({
baseURL: e,
timeout: t,
responseType: "json",
headers: n
});
}
};
var Ew;
var Tw;
var Rw;
var Iw;
Ow.config = null, Ew = {
"(": 9,
"!": 8,
"*": 7,
"/": 7,
"%": 7,
"+": 6,
"-": 6,
"<": 5,
"<=": 5,
">": 5,
">=": 5,
"==": 4,
"!=": 4,
"&&": 3,
"||": 2,
"?": 1,
"?:": 1
}, Tw = ["(", "?"], Rw = {
")": ["("],
":": ["?", "?:"]
}, Iw = /<=|>=|==|!=|&&|\|\||\?:|\(|!|\*|\/|%|\+|-|<|>|\?|\)|:/;
var Mw = {
"!": function(e) {
return !e;
},
"*": function(e, t) {
return e * t;
},
"/": function(e, t) {
return e / t;
},
"%": function(e, t) {
return e % t;
},
"+": function(e, t) {
return e + t;
},
"-": function(e, t) {
return e - t;
},
"<": function(e, t) {
return e < t;
},
"<=": function(e, t) {
return e <= t;
},
">": function(e, t) {
return e > t;
},
">=": function(e, t) {
return e >= t;
},
"==": function(e, t) {
return e === t;
},
"!=": function(e, t) {
return e !== t;
},
"&&": function(e, t) {
return e && t;
},
"||": function(e, t) {
return e || t;
},
"?:": function(e, t, r) {
if (e) throw t;
return r;
}
};
var Aw = {
contextDelimiter: "",
onMissingKey: null
};
function Pw(e, t) {
var r;
for (r in this.data = e, this.pluralForms = {}, this.options = {}, Aw) this.options[r] = void 0 !== t && r in t ? t[r] : Aw[r];
}
Pw.prototype.getPluralForm = function(e, t) {
var r;
var n;
var o;
var i;
var s = this.pluralForms[e];
return s || ("function" != typeof (o = (r = this.data[e][""])["Plural-Forms"] || r["plural-forms"] || r.plural_forms) && (n = function(e) {
var t;
var r;
var n;
for (t = e.split(";"), r = 0; r < t.length; r++) if (0 === (n = t[r].trim()).indexOf("plural=")) return n.substr(7);
}(r["Plural-Forms"] || r["plural-forms"] || r.plural_forms), i = function(e) {
var t = function(e) {
for (var t, r, n, o, i = [], s = []; t = e.match(Iw);) {
for (r = t[0], (n = e.substr(0, t.index).trim()) && i.push(n); o = s.pop();) {
if (Rw[r]) {
if (Rw[r][0] === o) {
r = Rw[r][1] || r;
break;
}
} else if (Tw.indexOf(o) >= 0 || Ew[o] < Ew[r]) {
s.push(o);
break;
}
i.push(o);
}
Rw[r] || s.push(r), e = e.substr(t.index + r.length);
}
return (e = e.trim()) && i.push(e), i.concat(s.reverse());
}(e);
return function(e) {
return function(e, t) {
var r;
var n;
var o;
var i;
var s;
var a;
var l = [];
for (r = 0; r < e.length; r++) {
if (s = e[r], i = Mw[s]) {
for (n = i.length, o = Array(n); n--;) o[n] = l.pop();
try {
a = i.apply(null, o);
} catch (e) {
return e;
}
} else a = t.hasOwnProperty(s) ? t[s] : +s;
l.push(a);
}
return l[0];
}(t, e);
};
}(n), o = function(e) {
return +i({ n: e });
}), s = this.pluralForms[e] = o), s(t);
}, Pw.prototype.dcnpgettext = function(e, t, r, n, o) {
var i;
var s;
var a;
return i = void 0 === o ? 0 : this.getPluralForm(e, o), s = r, t && (s = t + this.options.contextDelimiter + r), (a = this.data[e][s]) && a[i] ? a[i] : (this.options.onMissingKey && this.options.onMissingKey(r, e), 0 === i ? r : n);
};
var Nw = { plural_forms: (e) => 1 === e ? 0 : 1 };
var Lw = /^i18n\.(n?gettext|has_translation)(_|$)/;
var Dw = function(e) {
return "string" != typeof e || "" === e ? (console.error("The namespace must be a non-empty string."), !1) : !!/^[a-zA-Z][a-zA-Z0-9_.\-\/]*$/.test(e) || (console.error("The namespace can only contain numbers, letters, dashes, periods, underscores and slashes."), !1);
};
var jw = function(e) {
return "string" != typeof e || "" === e ? (console.error("The hook name must be a non-empty string."), !1) : /^__/.test(e) ? (console.error("The hook name cannot begin with `__`."), !1) : !!/^[a-zA-Z][a-zA-Z0-9_.-]*$/.test(e) || (console.error("The hook name can only contain numbers, letters, dashes, periods and underscores."), !1);
};
var Fw = function(e, t) {
return function(r, n, o, i = 10) {
const s = e[t];
if (!jw(r)) return;
if (!Dw(n)) return;
if ("function" != typeof o) return void console.error("The hook callback must be a function.");
if ("number" != typeof i) return void console.error("If specified, the hook priority must be a number.");
const a = {
callback: o,
priority: i,
namespace: n
};
if (s[r]) {
const e = s[r].handlers;
let t;
for (t = e.length; t > 0 && !(i >= e[t - 1].priority); t--);
t === e.length ? e[t] = a : e.splice(t, 0, a), s.__current.forEach((e) => {
e.name === r && e.currentIndex >= t && e.currentIndex++;
});
} else s[r] = {
handlers: [a],
runs: 0
};
"hookAdded" !== r && e.doAction("hookAdded", r, n, o, i);
};
};
var $w = function(e, t, r = !1) {
return function(n, o) {
const i = e[t];
if (!jw(n)) return;
if (!r && !Dw(o)) return;
if (!i[n]) return 0;
let s = 0;
if (r) s = i[n].handlers.length, i[n] = {
runs: i[n].runs,
handlers: []
};
else {
const e = i[n].handlers;
for (let t = e.length - 1; t >= 0; t--) e[t].namespace === o && (e.splice(t, 1), s++, i.__current.forEach((e) => {
e.name === n && e.currentIndex >= t && e.currentIndex--;
}));
}
return "hookRemoved" !== n && e.doAction("hookRemoved", n, o), s;
};
};
var Bw = function(e, t) {
return function(r, n) {
const o = e[t];
return void 0 !== n ? r in o && o[r].handlers.some((e) => e.namespace === n) : r in o;
};
};
var zw = function(e, t, r, n) {
return function(o, ...i) {
const s = e[t];
s[o] || (s[o] = {
handlers: [],
runs: 0
}), s[o].runs++;
const a = s[o].handlers;
if ("hookAdded" !== o && s.all && a.push(...s.all.handlers), !a || !a.length) return r ? i[0] : void 0;
const l = {
name: o,
currentIndex: 0
};
return (n ? _asyncToGenerator(function* () {
try {
s.__current.add(l);
let e = r ? i[0] : void 0;
for (; l.currentIndex < a.length;) e = yield a[l.currentIndex].callback.apply(null, i), r && (i[0] = e), l.currentIndex++;
return r ? e : void 0;
} finally {
s.__current.delete(l);
}
}) : function() {
try {
s.__current.add(l);
let e = r ? i[0] : void 0;
for (; l.currentIndex < a.length;) e = a[l.currentIndex].callback.apply(null, i), r && (i[0] = e), l.currentIndex++;
return r ? e : void 0;
} finally {
s.__current.delete(l);
}
})();
};
};
var Vw = function(e, t) {
return function() {
var _n$at$name;
var _n$at;
const r = e[t];
return (_n$at$name = (_n$at = Array.from(r.__current).at(-1)) === null || _n$at === void 0 ? void 0 : _n$at.name) !== null && _n$at$name !== void 0 ? _n$at$name : null;
};
};
var Uw = function(e, t) {
return function(r) {
const n = e[t];
return void 0 === r ? n.__current.size > 0 : Array.from(n.__current).some((e) => e.name === r);
};
};
var qw = function(e, t) {
return function(r) {
const n = e[t];
if (jw(r)) return n[r] && n[r].runs ? n[r].runs : 0;
};
};
var Ww = ((e, t, r) => {
const n = new Pw({});
const o = /* @__PURE__ */ new Set();
const i = () => {
o.forEach((e) => e());
};
const s = (e, t = "default") => {
var _n$data$t;
n.data[t] = _objectSpread2(_objectSpread2({}, n.data[t]), e), n.data[t][""] = _objectSpread2(_objectSpread2({}, Nw), (_n$data$t = n.data[t]) === null || _n$data$t === void 0 ? void 0 : _n$data$t[""]), delete n.pluralForms[t];
};
const a = (e, t) => {
s(e, t), i();
};
const l = (e = "default", t, r, o, i) => (n.data[e] || s(void 0, e), n.dcnpgettext(e, t, r, o, i));
const c = (e = "default") => e;
const u = (e, t, n) => {
let o = l(n, t, e);
return r ? (o = r.applyFilters("i18n.gettext_with_context", o, e, t, n), r.applyFilters("i18n.gettext_with_context_" + c(n), o, e, t, n)) : o;
};
if (r) {
const e = (e) => {
Lw.test(e) && i();
};
r.addAction("hookAdded", "core/i18n", e), r.addAction("hookRemoved", "core/i18n", e);
}
return {
getLocaleData: (e = "default") => n.data[e],
setLocaleData: a,
addLocaleData: (e, t = "default") => {
var _n$data$t2;
n.data[t] = _objectSpread2(_objectSpread2(_objectSpread2({}, n.data[t]), e), {}, { "": _objectSpread2(_objectSpread2(_objectSpread2({}, Nw), (_n$data$t2 = n.data[t]) === null || _n$data$t2 === void 0 ? void 0 : _n$data$t2[""]), e === null || e === void 0 ? void 0 : e[""]) }), delete n.pluralForms[t], i();
},
resetLocaleData: (e, t) => {
n.data = {}, n.pluralForms = {}, a(e, t);
},
subscribe: (e) => (o.add(e), () => o.delete(e)),
__: (e, t) => {
let n = l(t, void 0, e);
return r ? (n = r.applyFilters("i18n.gettext", n, e, t), r.applyFilters("i18n.gettext_" + c(t), n, e, t)) : n;
},
_x: u,
_n: (e, t, n, o) => {
let i = l(o, void 0, e, t, n);
return r ? (i = r.applyFilters("i18n.ngettext", i, e, t, n, o), r.applyFilters("i18n.ngettext_" + c(o), i, e, t, n, o)) : i;
},
_nx: (e, t, n, o, i) => {
let s = l(i, o, e, t, n);
return r ? (s = r.applyFilters("i18n.ngettext_with_context", s, e, t, n, o, i), r.applyFilters("i18n.ngettext_with_context_" + c(i), s, e, t, n, o, i)) : s;
},
isRTL: () => "rtl" === u("ltr", "text direction"),
hasTranslation: (e, t, o) => {
var _n$data;
const i = t ? t + "" + e : e;
let s = !!((_n$data = n.data) === null || _n$data === void 0 || (_n$data = _n$data[null != o ? o : "default"]) === null || _n$data === void 0 ? void 0 : _n$data[i]);
return r && (s = r.applyFilters("i18n.has_translation", s, e, t, o), s = r.applyFilters("i18n.has_translation_" + c(o), s, e, t, o)), s;
}
};
})(0, 0, new class {
constructor() {
this.actions = Object.create(null), this.actions.__current = /* @__PURE__ */ new Set(), this.filters = Object.create(null), this.filters.__current = /* @__PURE__ */ new Set(), this.addAction = Fw(this, "actions"), this.addFilter = Fw(this, "filters"), this.removeAction = $w(this, "actions"), this.removeFilter = $w(this, "filters"), this.hasAction = Bw(this, "actions"), this.hasFilter = Bw(this, "filters"), this.removeAllActions = $w(this, "actions", !0), this.removeAllFilters = $w(this, "filters", !0), this.doAction = zw(this, "actions", !1, !1), this.doActionAsync = zw(this, "actions", !1, !0), this.applyFilters = zw(this, "filters", !0, !1), this.applyFiltersAsync = zw(this, "filters", !0, !0), this.currentAction = Vw(this, "actions"), this.currentFilter = Vw(this, "filters"), this.doingAction = Uw(this, "actions"), this.doingFilter = Uw(this, "filters"), this.didAction = qw(this, "actions"), this.didFilter = qw(this, "filters");
}
}());
Ww.getLocaleData.bind(Ww), Ww.setLocaleData.bind(Ww), Ww.resetLocaleData.bind(Ww), Ww.subscribe.bind(Ww);
var Hw = Ww.__.bind(Ww);
Ww._x.bind(Ww), Ww._n.bind(Ww), Ww._nx.bind(Ww), Ww.isRTL.bind(Ww), Ww.hasTranslation.bind(Ww);
var Gw = (e, t) => {
let r;
let n;
let o = e.path;
return "string" == typeof e.namespace && "string" == typeof e.endpoint && (r = e.namespace.replace(/^\/|\/$/g, ""), n = e.endpoint.replace(/^\//, ""), o = n ? r + "/" + n : r), delete e.namespace, delete e.endpoint, t(_objectSpread2(_objectSpread2({}, e), {}, { path: o }));
};
function Kw(e) {
let t = "";
const r = Object.entries(e);
let n;
for (; n = r.shift();) {
let [e, o] = n;
if (Array.isArray(o) || o && o.constructor === Object) {
const t = Object.entries(o).reverse();
for (const [n, o] of t) r.unshift([`${e}[${n}]`, o]);
} else void 0 !== o && (null === o && (o = ""), t += "&" + [e, o].map(encodeURIComponent).join("="));
}
return t.substr(1);
}
function Yw(e) {
try {
return decodeURIComponent(e);
} catch (t) {
return e;
}
}
function Zw(e) {
return (function(e) {
let t;
try {
t = new URL(e, "http://example.com").search.substring(1);
} catch (e) {}
if (t) return t;
}(e) || "").replace(/\+/g, "%20").split("&").reduce((e, t) => {
const [r, n = ""] = t.split("=").filter(Boolean).map(Yw);
return r && function(e, t, r) {
const n = t.length;
const o = n - 1;
for (let i = 0; i < n; i++) {
let n = t[i];
!n && Array.isArray(e) && (n = e.length.toString()), n = [
"__proto__",
"constructor",
"prototype"
].includes(n) ? n.toUpperCase() : n;
const s = !isNaN(Number(t[i + 1]));
e[n] = i === o ? r : e[n] || (s ? [] : {}), Array.isArray(e[n]) && !s && (e[n] = _objectSpread2({}, e[n])), e = e[n];
}
}(e, r.replace(/\]/g, "").split("["), n), e;
}, Object.create(null));
}
function Xw(e = "", t) {
if (!t || !Object.keys(t).length) return e;
let r = e;
const n = e.indexOf("?");
return -1 !== n && (t = Object.assign(Zw(e), t), r = r.substr(0, n)), r + "?" + Kw(t);
}
function Jw(e, t) {
return Zw(e)[t];
}
function Qw(e, t) {
return void 0 !== Jw(e, t);
}
function e_(e, ...t) {
const r = e.indexOf("?");
if (-1 === r) return e;
const n = Zw(e);
const o = e.substr(0, r);
t.forEach((e) => delete n[e]);
const i = Kw(n);
return i ? o + "?" + i : o;
}
function t_(e) {
const t = e.split("?");
const r = t[1];
const n = t[0];
return r ? n + "?" + r.split("&").map((e) => e.split("=")).map((e) => e.map(decodeURIComponent)).sort((e, t) => e[0].localeCompare(t[0])).map((e) => e.map(encodeURIComponent)).map((e) => e.join("=")).join("&") : n;
}
function r_(e, t) {
return Promise.resolve(t ? e.body : new window.Response(JSON.stringify(e.body), {
status: 200,
statusText: "OK",
headers: e.headers
}));
}
var n_ = (_ref16, n) => {
let { path: e, url: t } = _ref16;
return _objectSpread2(_objectSpread2({}, _objectWithoutProperties(_ref16, _excluded5)), {}, {
url: t && Xw(t, n),
path: e && Xw(e, n)
});
};
var o_ = (e) => e.json ? e.json() : Promise.reject(e);
var i_ = (e) => {
const { next: t } = ((e) => {
if (!e) return {};
const t = e.match(/<([^>]+)>; rel="next"/);
return t ? { next: t[1] } : {};
})(e.headers.get("link"));
return t;
};
var s_ = function() {
var _ref17 = _asyncToGenerator(function* (e, t) {
if (!1 === e.parse) return t(e);
if (!((e) => {
const t = !!e.path && -1 !== e.path.indexOf("per_page=-1");
const r = !!e.url && -1 !== e.url.indexOf("per_page=-1");
return t || r;
})(e)) return t(e);
const r = yield g_(_objectSpread2(_objectSpread2({}, n_(e, { per_page: 100 })), {}, { parse: !1 }));
const n = yield o_(r);
if (!Array.isArray(n)) return n;
let o = i_(r);
if (!o) return n;
let i = [].concat(n);
for (; o;) {
const t = yield g_(_objectSpread2(_objectSpread2({}, e), {}, {
path: void 0,
url: o,
parse: !1
}));
const r = yield o_(t);
i = i.concat(r), o = i_(t);
}
return i;
});
return function s_(_x15, _x16) {
return _ref17.apply(this, arguments);
};
}();
var a_ = /* @__PURE__ */ new Set([
"PATCH",
"PUT",
"DELETE"
]);
var l_ = "GET";
var c_ = (e, t = !0) => Promise.resolve(((e, t = !0) => t ? 204 === e.status ? null : e.json ? e.json() : Promise.reject(e) : e)(e, t)).catch((e) => u_(e, t));
function u_(e, t = !0) {
if (!t) throw e;
return ((e) => {
const t = {
code: "invalid_json",
message: Hw("The response is not a valid JSON response.")
};
if (!e || !e.json) throw t;
return e.json().catch(() => {
throw t;
});
})(e).then((e) => {
const t = {
code: "unknown_error",
message: Hw("An unknown error occurred.")
};
throw e || t;
});
}
var p_ = { Accept: "application/json, */*;q=0.1" };
var d_ = { credentials: "include" };
var f_ = [
(e, t) => ("string" != typeof e.url || Qw(e.url, "_locale") || (e.url = Xw(e.url, { _locale: "user" })), "string" != typeof e.path || Qw(e.path, "_locale") || (e.path = Xw(e.path, { _locale: "user" })), t(e)),
Gw,
(e, t) => {
const { method: r = l_ } = e;
return a_.has(r.toUpperCase()) && (e = _objectSpread2(_objectSpread2({}, e), {}, {
headers: _objectSpread2(_objectSpread2({}, e.headers), {}, {
"X-HTTP-Method-Override": r,
"Content-Type": "application/json"
}),
method: "POST"
})), t(e);
},
s_
];
var h_ = (e) => {
if (e.status >= 200 && e.status < 300) return e;
throw e;
};
var m_ = (e) => {
const { url: t, path: r, data: n, parse: o = !0 } = e, i = _objectWithoutProperties(e, _excluded6);
let { body: s, headers: a } = e;
return a = _objectSpread2(_objectSpread2({}, p_), a), n && (s = JSON.stringify(n), a["Content-Type"] = "application/json"), window.fetch(t || r || window.location.href, _objectSpread2(_objectSpread2(_objectSpread2({}, d_), i), {}, {
body: s,
headers: a
})).then((e) => Promise.resolve(e).then(h_).catch((e) => u_(e, o)).then((e) => c_(e, o)), (e) => {
if (e && "AbortError" === e.name) throw e;
throw {
code: "fetch_error",
message: Hw("You are probably offline.")
};
});
};
function g_(e) {
return f_.reduceRight((e, t) => (r) => t(r, e), m_)(e).catch((t) => "rest_cookie_invalid_nonce" !== t.code ? Promise.reject(t) : window.fetch(g_.nonceEndpoint).then(h_).then((e) => e.text()).then((t) => (g_.nonceMiddleware.nonce = t, g_(e))));
}
g_.use = function(e) {
f_.unshift(e);
}, g_.setFetchHandler = function(e) {
m_ = e;
}, g_.createNonceMiddleware = function(e) {
const t = (e, r) => {
const { headers: n = {} } = e;
for (const o in n) if ("x-wp-nonce" === o.toLowerCase() && n[o] === t.nonce) return r(e);
return r(_objectSpread2(_objectSpread2({}, e), {}, { headers: _objectSpread2(_objectSpread2({}, n), {}, { "X-WP-Nonce": t.nonce }) }));
};
return t.nonce = e, t;
}, g_.createPreloadingMiddleware = function(e) {
const t = Object.fromEntries(Object.entries(e).map(([e, t]) => [t_(e), t]));
return (e, r) => {
const { parse: n = !0 } = e;
let o = e.path;
if (!o && e.url) {
const _Zw = Zw(e.url), { rest_route: t } = _Zw, r = _objectWithoutProperties(_Zw, _excluded7);
"string" == typeof t && (o = Xw(t, r));
}
if ("string" != typeof o) return r(e);
const i = e.method || "GET";
const s = t_(o);
if ("GET" === i && t[s]) {
const e = t[s];
return delete t[s], r_(e, !!n);
}
if ("OPTIONS" === i && t[i] && t[i][s]) {
const e = t[i][s];
return delete t[i][s], r_(e, !!n);
}
return r(e);
};
}, g_.createRootURLMiddleware = (e) => (t, r) => Gw(t, (t) => {
let n;
let o = t.url;
let i = t.path;
return "string" == typeof i && (n = e, -1 !== e.indexOf("?") && (i = i.replace("?", "&")), i = i.replace(/^\//, ""), "string" == typeof n && -1 !== n.indexOf("?") && (i = i.replace("?", "&")), o = n + i), r(_objectSpread2(_objectSpread2({}, t), {}, { url: o }));
}), g_.fetchAllMiddleware = s_, g_.mediaUploadMiddleware = (e, t) => {
if (!function(e) {
const t = !!e.method && "POST" === e.method;
return (!!e.path && -1 !== e.path.indexOf("/wp/v2/media") || !!e.url && -1 !== e.url.indexOf("/wp/v2/media")) && t;
}(e)) return t(e);
let r = 0;
const n = (e) => (r++, t({
path: `/wp/v2/media/${e}/post-process`,
method: "POST",
data: { action: "create-image-subsizes" },
parse: !1
}).catch(() => r < 5 ? n(e) : (t({
path: `/wp/v2/media/${e}?force=true`,
method: "DELETE"
}), Promise.reject())));
return t(_objectSpread2(_objectSpread2({}, e), {}, { parse: !1 })).catch((t) => {
const r = t.headers.get("x-wp-upload-attachment-id");
return t.status >= 500 && t.status < 600 && r ? n(r).catch(() => !1 !== e.parse ? Promise.reject({
code: "post_process",
message: Hw("Media upload failed. If this is a photo or a large image, please scale it down and try again.")
}) : Promise.reject(t)) : u_(t, e.parse);
}).then((t) => c_(t, e.parse));
}, g_.createThemePreviewMiddleware = (e) => (t, r) => {
if ("string" == typeof t.url) {
const r = Jw(t.url, "wp_theme_preview");
void 0 === r ? t.url = Xw(t.url, { wp_theme_preview: e }) : "" === r && (t.url = e_(t.url, "wp_theme_preview"));
}
if ("string" == typeof t.path) {
const r = Jw(t.path, "wp_theme_preview");
void 0 === r ? t.path = Xw(t.path, { wp_theme_preview: e }) : "" === r && (t.path = e_(t.path, "wp_theme_preview"));
}
return r(t);
};
var v_ = class extends Error {
constructor(e) {
super(e), this.name = "APIError";
}
};
var y_ = function(e) {
return e.GET = "GET", e.POST = "POST", e.PUT = "PUT", e.PATCH = "PATCH", e.DELETE = "DELETE", e.HEAD = "HEAD", e;
}({});
var b_ = "/wp/v2";
var w_ = class {
static request({ path: e, data: t, params: r, method: n = "POST" }) {
return _asyncToGenerator(function* () {
try {
var _window;
var _a$data;
const o = ((_window = window) === null || _window === void 0 || (_window = _window.elementorOneSettingsData) === null || _window === void 0 ? void 0 : _window.wpRestNonce) || "";
const i = "GET" === n && !e.startsWith(b_);
const a = yield g_({
url: function(e, t) {
var _window2;
const r = (((_window2 = window) === null || _window2 === void 0 || (_window2 = _window2.elementorOneSettingsData) === null || _window2 === void 0 ? void 0 : _window2.wpRestUrl) || "/wp-json/").replace(/\/$/, ""), [n] = e.split("?");
return Xw(`${r}${n}`, t);
}(e, _objectSpread2(_objectSpread2({}, r), i ? { sb_time: (/* @__PURE__ */ new Date()).getTime() } : {})),
method: n,
data: t,
headers: { "X-WP-Nonce": o }
});
if (e.startsWith(b_)) return a;
if (void 0 === (a === null || a === void 0 ? void 0 : a.success)) return a;
if (!a.success) throw new v_(((_a$data = a.data) === null || _a$data === void 0 ? void 0 : _a$data.message) || "Unknown error");
return a.data;
} catch (e) {
throw e instanceof v_ ? e : new v_((e === null || e === void 0 ? void 0 : e.message) || "Unknown error");
}
})();
}
};
var __ = "/elementor-one/v1";
var x_ = class extends w_ {
static initConnect(e = "new") {
return _asyncToGenerator(function* () {
var _window3;
const t = { wp_rest: (_window3 = window) === null || _window3 === void 0 || (_window3 = _window3.elementorOneSettingsData) === null || _window3 === void 0 ? void 0 : _window3.wpRestNonce };
return "update" === e && (t.update_redirect_uri = !0), w_.request({
method: y_.POST,
path: `${__}/connect/authorize`,
data: t
});
})();
}
static disconnect() {
return _asyncToGenerator(function* () {
var _window4;
return w_.request({
method: y_.POST,
path: `${__}/connect/disconnect`,
data: { wp_rest: (_window4 = window) === null || _window4 === void 0 || (_window4 = _window4.elementorOneSettingsData) === null || _window4 === void 0 ? void 0 : _window4.wpRestNonce }
});
})();
}
static getPluginSettings() {
return _asyncToGenerator(function* () {
return w_.request({
method: y_.GET,
path: `${__}/settings`
});
})();
}
static getInstalledPlugins() {
return _asyncToGenerator(function* () {
return w_.request({
method: y_.GET,
path: `${__}/plugins`
});
})();
}
static getNotifications(e, t) {
return _asyncToGenerator(function* () {
return w_.request({
method: y_.GET,
path: `${__}/top-bar/notifications`,
params: {
app_name: e,
app_version: t
}
});
})();
}
static sendFeedback(e) {
return _asyncToGenerator(function* () {
return w_.request({
method: y_.POST,
path: `${__}/top-bar/feedback`,
data: e
});
})();
}
};
var S_ = new Ow("https://ipapi.co/json/");
var k_ = class {
static getCountryCode() {
return _asyncToGenerator(function* () {
const { data: e } = yield S_.get("");
return e.country;
})();
}
};
var C_;
if ("undefined" == typeof window) {
var O_ = { hostname: "" };
C_ = {
crypto: { randomUUID: function() {
throw Error("unsupported");
} },
navigator: {
userAgent: "",
onLine: !0
},
document: {
createElement: function() {
return {};
},
location: O_,
referrer: ""
},
screen: {
width: 0,
height: 0
},
location: O_,
addEventListener: function() {},
removeEventListener: function() {},
dispatchEvent: function() {},
CustomEvent: function() {}
};
} else C_ = window;
var E_ = {
DEBUG: !1,
LIB_VERSION: "2.77.0"
};
var T_ = "__mp_targeting";
var R_ = "__mp_recorder";
var I_ = "__MP_TARGETING_FILENAME__";
function M_(e, t) {
(null == t || t > e.length) && (t = e.length);
for (var r = 0, n = new Array(t); r < t; r++) n[r] = e[r];
return n;
}
function A_(e, t, r, n, o, i, s) {
try {
var a = e[i](s);
var l = a.value;
} catch (e) {
r(e);
return;
}
a.done ? t(l) : Promise.resolve(l).then(n, o);
}
function P_(e) {
return function() {
var t = this;
var r = arguments;
return new Promise(function(n, o) {
var i = e.apply(t, r);
function s(e) {
A_(i, n, o, s, a, "next", e);
}
function a(e) {
A_(i, n, o, s, a, "throw", e);
}
s(void 0);
});
};
}
function N_(e, t, r) {
return N_ = q_() ? Reflect.construct : function(e, t, r) {
var n = [null];
n.push.apply(n, t);
var o = new (Function.bind.apply(e, n))();
return r && z_(o, r.prototype), o;
}, N_.apply(null, arguments);
}
function L_(e, t, r) {
return t && function(e, t) {
for (var r = 0; r < t.length; r++) {
var n = t[r];
n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(e, n.key, n);
}
}(e.prototype, t), e;
}
function D_() {
return D_ = Object.assign || function(e) {
for (var t = 1; t < arguments.length; t++) {
var r = arguments[t];
for (var n in r) Object.prototype.hasOwnProperty.call(r, n) && (e[n] = r[n]);
}
return e;
}, D_.apply(this, arguments);
}
function j_(e) {
return j_ = Object.setPrototypeOf ? Object.getPrototypeOf : function(e) {
return e.__proto__ || Object.getPrototypeOf(e);
}, j_(e);
}
function F_(e, t) {
if ("function" != typeof t && null !== t) throw new TypeError("Super expression must either be null or a function");
e.prototype = Object.create(t && t.prototype, { constructor: {
value: e,
writable: !0,
configurable: !0
} }), t && z_(e, t);
}
function $_(e, t) {
return null != t && "undefined" != typeof Symbol && t[Symbol.hasInstance] ? !!t[Symbol.hasInstance](e) : e instanceof t;
}
function B_(e, t) {
if (null == e) return {};
var r;
var n;
var o = {};
var i = Object.keys(e);
for (n = 0; n < i.length; n++) r = i[n], t.indexOf(r) >= 0 || (o[r] = e[r]);
return o;
}
function z_(e, t) {
return z_ = Object.setPrototypeOf || function(e, t) {
return e.__proto__ = t, e;
}, z_(e, t);
}
function V_(e) {
return e && "undefined" != typeof Symbol && e.constructor === Symbol ? "symbol" : typeof e;
}
function U_(e) {
var t = "function" == typeof Map ? /* @__PURE__ */ new Map() : void 0;
return U_ = function(e) {
if (null === e || (r = e, -1 === Function.toString.call(r).indexOf("[native code]"))) return e;
var r;
if ("function" != typeof e) throw new TypeError("Super expression must either be null or a function");
if (void 0 !== t) {
if (t.has(e)) return t.get(e);
t.set(e, n);
}
function n() {
return N_(e, arguments, j_(this).constructor);
}
return n.prototype = Object.create(e.prototype, { constructor: {
value: n,
enumerable: !1,
writable: !0,
configurable: !0
} }), z_(n, e);
}, U_(e);
}
function q_() {
try {
var e = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
} catch (e) {}
return (q_ = function() {
return !!e;
})();
}
function W_(e, t) {
var r = "undefined" != typeof Symbol && e[Symbol.iterator] || e["@@iterator"];
if (r) return (r = r.call(e)).next.bind(r);
if (Array.isArray(e) || (r = function(e, t) {
if (e) {
if ("string" == typeof e) return M_(e, t);
var r = Object.prototype.toString.call(e).slice(8, -1);
return "Object" === r && e.constructor && (r = e.constructor.name), "Map" === r || "Set" === r ? Array.from(r) : "Arguments" === r || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r) ? M_(e, t) : void 0;
}
}(e)) || t) {
r && (e = r);
var n = 0;
return function() {
return n >= e.length ? { done: !0 } : {
done: !1,
value: e[n++]
};
};
}
throw new TypeError("Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
}
function H_(e, t) {
var r;
var n;
var o;
var i;
var s = {
label: 0,
sent: function() {
if (1 & o[0]) throw o[1];
return o[1];
},
trys: [],
ops: []
};
return i = {
next: a(0),
throw: a(1),
return: a(2)
}, "function" == typeof Symbol && (i[Symbol.iterator] = function() {
return this;
}), i;
function a(i) {
return function(a) {
return function(i) {
if (r) throw new TypeError("Generator is already executing.");
for (; s;) try {
if (r = 1, n && (o = 2 & i[0] ? n.return : i[0] ? n.throw || ((o = n.return) && o.call(n), 0) : n.next) && !(o = o.call(n, i[1])).done) return o;
switch (n = 0, o && (i = [2 & i[0], o.value]), i[0]) {
case 0:
case 1:
o = i;
break;
case 4: return s.label++, {
value: i[1],
done: !1
};
case 5:
s.label++, n = i[1], i = [0];
continue;
case 7:
i = s.ops.pop(), s.trys.pop();
continue;
default:
if (!((o = (o = s.trys).length > 0 && o[o.length - 1]) || 6 !== i[0] && 2 !== i[0])) {
s = 0;
continue;
}
if (3 === i[0] && (!o || i[1] > o[0] && i[1] < o[3])) {
s.label = i[1];
break;
}
if (6 === i[0] && s.label < o[1]) {
s.label = o[1], o = i;
break;
}
if (o && s.label < o[2]) {
s.label = o[2], s.ops.push(i);
break;
}
o[2] && s.ops.pop(), s.trys.pop();
continue;
}
i = t.call(e, s);
} catch (e) {
i = [6, e], n = 0;
} finally {
r = o = 0;
}
if (5 & i[0]) throw i[1];
return {
value: i[0] ? i[1] : void 0,
done: !0
};
}([i, a]);
};
}
}
function G_(e) {
var t = "function" == typeof Symbol && Symbol.iterator;
var r = t && e[t];
var n = 0;
if (r) return r.call(e);
if (e && "number" == typeof e.length) return { next: function() {
return e && n >= e.length && (e = void 0), {
value: e && e[n++],
done: !e
};
} };
throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
}
var K_;
var Y_ = Object.defineProperty;
var Z_ = function(e, t, r) {
return function(e, t, r) {
return t in e ? Y_(e, t, {
enumerable: !0,
configurable: !0,
writable: !0,
value: r
}) : e[t] = r;
}(e, "symbol" !== (void 0 === t ? "undefined" : V_(t)) ? t + "" : t, r);
};
var X_ = Object.defineProperty;
var J_ = function(e, t, r) {
return function(e, t, r) {
return t in e ? X_(e, t, {
enumerable: !0,
configurable: !0,
writable: !0,
value: r
}) : e[t] = r;
}(e, "symbol" !== (void 0 === t ? "undefined" : V_(t)) ? t + "" : t, r);
};
var Q_ = function(e) {
return e[e.Document = 0] = "Document", e[e.DocumentType = 1] = "DocumentType", e[e.Element = 2] = "Element", e[e.Text = 3] = "Text", e[e.CDATA = 4] = "CDATA", e[e.Comment = 5] = "Comment", e;
}(Q_ || {});
var ex = {
Node: [
"childNodes",
"parentNode",
"parentElement",
"textContent"
],
ShadowRoot: ["host", "styleSheets"],
Element: [
"shadowRoot",
"querySelector",
"querySelectorAll"
],
MutationObserver: []
};
var tx = {
Node: ["contains", "getRootNode"],
ShadowRoot: ["getSelection"],
Element: [],
MutationObserver: ["constructor"]
};
var rx = {};
function nx(e) {
if (rx[e]) return rx[e];
var t = globalThis[e];
var r = t.prototype;
var n = e in ex ? ex[e] : void 0;
var o = Boolean(n && n.every(function(e) {
var t;
var n;
return Boolean(null == (n = null == (t = Object.getOwnPropertyDescriptor(r, e)) ? void 0 : t.get) ? void 0 : n.toString().includes("[native code]"));
}));
var i = e in tx ? tx[e] : void 0;
var s = Boolean(i && i.every(function(e) {
var t;
return "function" == typeof r[e] && (null == (t = r[e]) ? void 0 : t.toString().includes("[native code]"));
}));
if (o && s && !globalThis.Zone) return rx[e] = t.prototype, t.prototype;
try {
var a = document.createElement("iframe");
document.body.appendChild(a);
var l = a.contentWindow;
if (!l) return t.prototype;
var c = l[e].prototype;
return document.body.removeChild(a), c ? rx[e] = c : r;
} catch (e) {
return r;
}
}
var ox = {};
function ix(e, t, r) {
var n;
var o = e + "." + String(r);
if (ox[o]) return ox[o].call(t);
var i = nx(e);
var s = null == (n = Object.getOwnPropertyDescriptor(i, r)) ? void 0 : n.get;
return s ? (ox[o] = s, s.call(t)) : t[r];
}
var sx = function(e) {
return ix("Node", e, "childNodes");
};
var ax = function(e) {
return ix("Node", e, "parentNode");
};
var lx = function(e) {
return ix("Node", e, "parentElement");
};
var cx = function(e) {
return ix("Node", e, "textContent");
};
var ux = function(e) {
return e && "host" in e ? ix("ShadowRoot", e, "host") : null;
};
var px = function(e) {
return e && "shadowRoot" in e ? ix("Element", e, "shadowRoot") : null;
};
function dx(e) {
return e.nodeType === e.ELEMENT_NODE;
}
function fx(e) {
var t = e && "host" in e && "mode" in e && ux(e) || null;
return Boolean(t && "shadowRoot" in t && px(t) === e);
}
function hx(e) {
return "[object ShadowRoot]" === Object.prototype.toString.call(e);
}
function mx(e) {
try {
var t = e.rules || e.cssRules;
if (!t) return null;
var r = e.href;
return !r && e.ownerNode && e.ownerNode.ownerDocument && (r = e.ownerNode.ownerDocument.location.href), (n = Array.from(t, function(e) {
return gx(e, r);
}).join("")).includes(" background-clip: text;") && !n.includes(" -webkit-background-clip: text;") && (n = n.replace(/\sbackground-clip:\s*text;/g, " -webkit-background-clip: text; background-clip: text;")), n;
} catch (e) {
return null;
}
var n;
}
function gx(e, t) {
if (function(e) {
return "styleSheet" in e;
}(e)) {
var r;
try {
r = mx(e.styleSheet) || function(e) {
var t = e.cssText;
if (t.split("\"").length < 3) return t;
var r = ["@import", "url(" + JSON.stringify(e.href) + ")"];
return "" === e.layerName ? r.push("layer") : e.layerName && r.push("layer(" + e.layerName + ")"), e.supportsText && r.push("supports(" + e.supportsText + ")"), e.media.length && r.push(e.media.mediaText), r.join(" ") + ";";
}(e);
} catch (t) {
r = e.cssText;
}
return e.styleSheet.href ? Ex(r, e.styleSheet.href) : r;
}
var n;
var o = e.cssText;
return function(e) {
return "selectorText" in e;
}(e) && e.selectorText.includes(":") && (n = /(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm, o = o.replace(n, "$1\\$2")), t ? Ex(o, t) : o;
}
var vx = function() {
function e() {
J_(this, "idNodeMap", /* @__PURE__ */ new Map()), J_(this, "nodeMetaMap", /* @__PURE__ */ new WeakMap());
}
var t = e.prototype;
return t.getId = function(e) {
var t;
if (!e) return -1;
var r = null == (t = this.getMeta(e)) ? void 0 : t.id;
return null != r ? r : -1;
}, t.getNode = function(e) {
return this.idNodeMap.get(e) || null;
}, t.getIds = function() {
return Array.from(this.idNodeMap.keys());
}, t.getMeta = function(e) {
return this.nodeMetaMap.get(e) || null;
}, t.removeNodeFromMap = function(e, t) {
var r = this;
void 0 === t && (t = !1);
var n = this.getId(e);
this.idNodeMap.delete(n), t && this.nodeMetaMap.delete(e), e.childNodes && e.childNodes.forEach(function(e) {
return r.removeNodeFromMap(e, t);
});
}, t.has = function(e) {
return this.idNodeMap.has(e);
}, t.hasNode = function(e) {
return this.nodeMetaMap.has(e);
}, t.add = function(e, t) {
var r = t.id;
this.idNodeMap.set(r, e), this.nodeMetaMap.set(e, t);
}, t.replace = function(e, t) {
var r = this.getNode(e);
if (r) {
var n = this.nodeMetaMap.get(r);
n && this.nodeMetaMap.set(t, n);
}
this.idNodeMap.set(e, t);
}, t.reset = function() {
this.idNodeMap = /* @__PURE__ */ new Map(), this.nodeMetaMap = /* @__PURE__ */ new WeakMap();
}, e;
}();
function yx(e) {
var t = e.element;
var r = e.maskInputOptions;
var n = e.tagName;
var o = e.type;
var i = e.value;
var s = e.maskInputFn;
var a = i || "";
var l = o && bx(o);
return (r[n.toLowerCase()] || l && r[l]) && (a = s ? s(a, t) : "*".repeat(a.length)), a;
}
function bx(e) {
return e.toLowerCase();
}
var wx = "__rrweb_original__";
function _x(e) {
var t = e.type;
return e.hasAttribute("data-rr-is-password") ? "password" : t ? bx(t) : null;
}
function xx(e, t) {
var r;
try {
r = new URL(e, null != t ? t : window.location.href);
} catch (e) {
return null;
}
var n;
var o = r.pathname.match(/\.([0-9a-z]+)(?:$)/i);
return null != (n = null == o ? void 0 : o[1]) ? n : null;
}
var Sx = /url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm;
var kx = /^(?:[a-z+]+:)?\/\//i;
var Cx = /^www\..*/i;
var Ox = /^(data:)([^,]*),(.*)/i;
function Ex(e, t) {
return (e || "").replace(Sx, function(e, r, n, o, i, s) {
var a;
var l = n || i || s;
var c = r || o || "";
if (!l) return e;
if (kx.test(l) || Cx.test(l)) return "url(" + c + l + c + ")";
if (Ox.test(l)) return "url(" + c + l + c + ")";
if ("/" === l[0]) return "url(" + c + (((a = t).indexOf("//") > -1 ? a.split("/").slice(0, 3).join("/") : a.split("/")[0]).split("?")[0] + l) + c + ")";
var u = t.split("/");
var p = l.split("/");
u.pop();
for (var d, f = W_(p); !(d = f()).done;) {
var h = d.value;
"." !== h && (".." === h ? u.pop() : u.push(h));
}
return "url(" + c + u.join("/") + c + ")";
});
}
function Tx(e, t) {
return void 0 === t && (t = !1), t ? e.replace(/(\/\*[^*]*\*\/)|[\s;]/g, "") : e.replace(/(\/\*[^*]*\*\/)|[\s;]/g, "").replace(/0px/g, "0");
}
var Rx;
var Ix;
var Mx = 1;
var Ax = /* @__PURE__ */ new RegExp("[^a-z0-9-_:]");
function Px() {
return Mx++;
}
var Nx = /^[^ \t\n\r\u000c]+/;
var Lx = /^[, \t\n\r\u000c]+/;
var Dx = /* @__PURE__ */ new WeakMap();
function jx(e, t) {
return t && "" !== t.trim() ? Fx(e, t) : t;
}
function Fx(e, t) {
var r = Dx.get(e);
if (r || (r = e.createElement("a"), Dx.set(e, r)), t) {
if (t.startsWith("blob:") || t.startsWith("data:")) return t;
} else t = "";
return r.setAttribute("href", t), r.href;
}
function $x(e, t, r, n) {
return n ? "src" === r || "href" === r && ("use" !== t || "#" !== n[0]) || "xlink:href" === r && "#" !== n[0] ? jx(e, n) : "background" !== r || "table" !== t && "td" !== t && "th" !== t ? "srcset" === r ? function(e, t) {
if ("" === t.trim()) return t;
var r = 0;
function n(e) {
var n;
var o = e.exec(t.substring(r));
return o ? (n = o[0], r += n.length, n) : "";
}
for (var o = []; n(Lx), !(r >= t.length);) {
var i = n(Nx);
if ("," === i.slice(-1)) i = jx(e, i.substring(0, i.length - 1)), o.push(i);
else {
var s = "";
i = jx(e, i);
for (var a = !1;;) {
var l = t.charAt(r);
if ("" === l) {
o.push((i + s).trim());
break;
}
if (a) ")" === l && (a = !1);
else {
if ("," === l) {
r += 1, o.push((i + s).trim());
break;
}
"(" === l && (a = !0);
}
s += l, r += 1;
}
}
}
return o.join(", ");
}(e, n) : "style" === r ? Ex(n, Fx(e)) : "object" === t && "data" === r ? jx(e, n) : n : jx(e, n) : n;
}
function Bx(e, t, r) {
return ("video" === e || "audio" === e) && "autoplay" === t;
}
function zx(e, t, r) {
if (!e) return !1;
if (e.nodeType !== e.ELEMENT_NODE) return !!r && zx(ax(e), t, r);
for (var n = e.classList.length; n--;) {
var o = e.classList[n];
if (t.test(o)) return !0;
}
return !!r && zx(ax(e), t, r);
}
function Vx(e, t, r, n) {
var o;
if (dx(e)) {
if (!sx(o = e).length) return !1;
} else {
if (null === lx(e)) return !1;
o = lx(e);
}
try {
if ("string" == typeof t) {
if (n) {
if (o.closest("." + t)) return !0;
} else if (o.classList.contains(t)) return !0;
} else if (zx(o, t, n)) return !0;
if (r) {
if (n) {
if (o.closest(r)) return !0;
} else if (o.matches(r)) return !0;
}
} catch (e) {}
return !1;
}
function Ux(e, t) {
var r = t.doc;
var n = t.mirror;
var o = t.blockClass;
var i = t.blockSelector;
var s = t.needsMask;
var a = t.inlineStylesheet;
var l = t.maskInputOptions;
var c = void 0 === l ? {} : l;
var u = t.maskTextFn;
var p = t.maskInputFn;
var d = t.dataURLOptions;
var f = void 0 === d ? {} : d;
var h = t.inlineImages;
var m = t.recordCanvas;
var g = t.keepIframeSrcFn;
var v = t.newlyAddedElement;
var y = void 0 !== v && v;
var b = t.cssCaptured;
var w = void 0 !== b && b;
var _ = function(e, t) {
if (t.hasNode(e)) {
var r = t.getId(e);
return 1 === r ? void 0 : r;
}
}(r, n);
switch (e.nodeType) {
case e.DOCUMENT_NODE: return "CSS1Compat" !== e.compatMode ? {
type: Q_.Document,
childNodes: [],
compatMode: e.compatMode
} : {
type: Q_.Document,
childNodes: []
};
case e.DOCUMENT_TYPE_NODE: return {
type: Q_.DocumentType,
name: e.name,
publicId: e.publicId,
systemId: e.systemId,
rootId: _
};
case e.ELEMENT_NODE: return function(e, t) {
for (var r, n = t.doc, o = t.inlineStylesheet, i = t.maskInputOptions, s = void 0 === i ? {} : i, a = t.maskInputFn, l = t.dataURLOptions, c = void 0 === l ? {} : l, u = t.inlineImages, p = t.recordCanvas, d = t.keepIframeSrcFn, f = t.newlyAddedElement, h = void 0 !== f && f, m = t.rootId, g = function(e, t, r) {
try {
if ("string" == typeof t) {
if (e.classList.contains(t)) return !0;
} else for (var n = e.classList.length; n--;) {
var o = e.classList[n];
if (t.test(o)) return !0;
}
if (r) return e.matches(r);
} catch (e) {}
return !1;
}(e, t.blockClass, t.blockSelector), v = function(e) {
if ($_(e, HTMLFormElement)) return "form";
var t = bx(e.tagName);
return Ax.test(t) ? "div" : t;
}(e), y = {}, b = e.attributes.length, w = 0; w < b; w++) {
var _ = e.attributes[w];
Bx(v, _.name) || (y[_.name] = $x(n, v, bx(_.name), _.value));
}
if ("link" === v && o) {
var x = Array.from(n.styleSheets).find(function(t) {
return t.href === e.href;
});
var S = null;
x && (S = mx(x)), S && (delete y.rel, delete y.href, y._cssText = S);
}
if ("style" === v && e.sheet) {
var k = mx(e.sheet);
k && (e.childNodes.length > 1 && (k = function(e, t) {
return function(e, t, r) {
void 0 === r && (r = !1);
var n = Array.from(t.childNodes);
var o = [];
var i = 0;
if (n.length > 1 && e && "string" == typeof e) {
for (var s = Tx(e, r), a = s.length / e.length, l = 1; l < n.length; l++) if (n[l].textContent && "string" == typeof n[l].textContent) {
for (var c = Tx(n[l].textContent, r), u = 3; u < c.length && (c[u].match(/[a-zA-Z0-9]/) || -1 !== c.indexOf(c.substring(0, u), 1)); u++);
for (; u < c.length; u++) {
var p = c.substring(0, u);
var d = s.split(p);
var f = -1;
if (2 === d.length) f = d[0].length;
else if (d.length > 2 && "" === d[0] && "" !== n[l - 1].textContent) f = s.indexOf(p, 1);
else if (1 === d.length) {
if (p = p.substring(0, p.length - 1), (d = s.split(p)).length <= 1) return o.push(e), o;
u = 101;
} else u === c.length - 1 && (f = s.indexOf(p));
if (d.length >= 2 && u > 100) {
var h = n[l - 1].textContent;
if (h && "string" == typeof h) {
var m = Tx(h).length;
f = s.indexOf(p, m);
}
-1 === f && (f = d[0].length);
}
if (-1 !== f) {
for (var g = Math.floor(f / a); g > 0 && g < e.length;) {
if ((i += 1) > 50 * n.length) return o.push(e), o;
var v = Tx(e.substring(0, g), r);
if (v.length === f) {
o.push(e.substring(0, g)), e = e.substring(g), s = s.substring(f);
break;
}
v.length < f ? g += Math.max(1, Math.floor((f - v.length) / a)) : g -= Math.max(1, Math.floor((v.length - f) * a));
}
break;
}
}
}
}
return o.push(e), o;
}(e, t).join("/* rr_split */");
}(k, e)), y._cssText = k);
}
if ("input" === v || "textarea" === v || "select" === v) {
var C = e.value;
var O = e.checked;
"radio" !== y.type && "checkbox" !== y.type && "submit" !== y.type && "button" !== y.type && C ? y.value = yx({
element: e,
type: _x(e),
tagName: v,
value: C,
maskInputOptions: s,
maskInputFn: a
}) : O && (y.checked = O);
}
if ("option" === v && (e.selected && !s.select ? y.selected = !0 : delete y.selected), "dialog" === v && e.open && (y.rr_open_mode = e.matches("dialog:modal") ? "modal" : "non-modal"), "canvas" === v && p) {
if ("2d" === e.__context) (function(e) {
var t = e.getContext("2d");
if (!t) return !0;
for (var r = 0; r < e.width; r += 50) for (var n = 0; n < e.height; n += 50) {
var o = t.getImageData;
var i = wx in o ? o[wx] : o;
if (new Uint32Array(i.call(t, r, n, Math.min(50, e.width - r), Math.min(50, e.height - n)).data.buffer).some(function(e) {
return 0 !== e;
})) return !1;
}
return !0;
})(e) || (y.rr_dataURL = e.toDataURL(c.type, c.quality));
else if (!("__context" in e)) {
var E = e.toDataURL(c.type, c.quality);
var T = n.createElement("canvas");
T.width = e.width, T.height = e.height, E !== T.toDataURL(c.type, c.quality) && (y.rr_dataURL = E);
}
}
if ("img" === v && u) {
Rx || (Rx = n.createElement("canvas"), Ix = Rx.getContext("2d"));
var R = e;
var I = R.currentSrc || R.getAttribute("src") || "<unknown-src>";
var M = R.crossOrigin;
var A = function() {
R.removeEventListener("load", A);
try {
Rx.width = R.naturalWidth, Rx.height = R.naturalHeight, Ix.drawImage(R, 0, 0), y.rr_dataURL = Rx.toDataURL(c.type, c.quality);
} catch (e) {
if ("anonymous" !== R.crossOrigin) return R.crossOrigin = "anonymous", void (R.complete && 0 !== R.naturalWidth ? A() : R.addEventListener("load", A));
console.warn("Cannot inline img src=" + I + "! Error: " + e);
}
"anonymous" === R.crossOrigin && (M ? y.crossOrigin = M : R.removeAttribute("crossorigin"));
};
R.complete && 0 !== R.naturalWidth ? A() : R.addEventListener("load", A);
}
if ("audio" === v || "video" === v) {
var P = y;
P.rr_mediaState = e.paused ? "paused" : "played", P.rr_mediaCurrentTime = e.currentTime, P.rr_mediaPlaybackRate = e.playbackRate, P.rr_mediaMuted = e.muted, P.rr_mediaLoop = e.loop, P.rr_mediaVolume = e.volume;
}
if (h || (e.scrollLeft && (y.rr_scrollLeft = e.scrollLeft), e.scrollTop && (y.rr_scrollTop = e.scrollTop)), g) {
var N = e.getBoundingClientRect();
var L = N.width;
var D = N.height;
y = {
class: y.class,
rr_width: L + "px",
rr_height: D + "px"
};
}
"iframe" !== v || d(y.src) || (e.contentDocument || (y.rr_src = y.src), delete y.src);
try {
customElements.get(v) && (r = !0);
} catch (e) {}
return {
type: Q_.Element,
tagName: v,
attributes: y,
childNodes: [],
isSVG: (j = e, Boolean("svg" === j.tagName || j.ownerSVGElement) || void 0),
needBlock: g,
rootId: m,
isCustom: r
};
var j;
}(e, {
doc: r,
blockClass: o,
blockSelector: i,
inlineStylesheet: a,
maskInputOptions: c,
maskInputFn: p,
dataURLOptions: f,
inlineImages: h,
recordCanvas: m,
keepIframeSrcFn: g,
newlyAddedElement: y,
rootId: _
});
case e.TEXT_NODE: return function(e, t) {
var r = t.needsMask;
var n = t.maskTextFn;
var o = t.rootId;
var i = t.cssCaptured;
var s = ax(e);
var a = s && s.tagName;
var l = "";
var c = "STYLE" === a || void 0;
var u = "SCRIPT" === a || void 0;
return u ? l = "SCRIPT_PLACEHOLDER" : i || (l = cx(e), c && l && (l = Ex(l, Fx(t.doc)))), !c && !u && l && r && (l = n ? n(l, lx(e)) : l.replace(/[\S]/g, "*")), {
type: Q_.Text,
textContent: l || "",
rootId: o
};
}(e, {
doc: r,
needsMask: s,
maskTextFn: u,
rootId: _,
cssCaptured: w
});
case e.CDATA_SECTION_NODE: return {
type: Q_.CDATA,
textContent: "",
rootId: _
};
case e.COMMENT_NODE: return {
type: Q_.Comment,
textContent: cx(e) || "",
rootId: _
};
default: return !1;
}
}
function qx(e) {
return null == e ? "" : e.toLowerCase();
}
function Wx(e, t) {
var r = t.doc;
var n = t.mirror;
var o = t.blockClass;
var i = t.blockSelector;
var s = t.maskTextClass;
var a = t.maskTextSelector;
var l = t.skipChild;
var c = void 0 !== l && l;
var u = t.inlineStylesheet;
var p = void 0 === u || u;
var d = t.maskInputOptions;
var f = void 0 === d ? {} : d;
var h = t.maskTextFn;
var m = t.maskInputFn;
var g = t.slimDOMOptions;
var v = t.dataURLOptions;
var y = void 0 === v ? {} : v;
var b = t.inlineImages;
var w = void 0 !== b && b;
var _ = t.recordCanvas;
var x = void 0 !== _ && _;
var S = t.onSerialize;
var k = t.onIframeLoad;
var C = t.iframeLoadTimeout;
var O = void 0 === C ? 5e3 : C;
var E = t.onStylesheetLoad;
var T = t.stylesheetLoadTimeout;
var R = void 0 === T ? 5e3 : T;
var I = t.keepIframeSrcFn;
var M = void 0 === I ? function() {
return !1;
} : I;
var A = t.newlyAddedElement;
var P = void 0 !== A && A;
var N = t.cssCaptured;
var L = void 0 !== N && N;
var D = t.needsMask;
var j = t.preserveWhiteSpace;
var F = void 0 === j || j;
D || (D = Vx(e, s, a, void 0 === D));
var $;
var B = Ux(e, {
doc: r,
mirror: n,
blockClass: o,
blockSelector: i,
needsMask: D,
inlineStylesheet: p,
maskInputOptions: f,
maskTextFn: h,
maskInputFn: m,
dataURLOptions: y,
inlineImages: w,
recordCanvas: x,
keepIframeSrcFn: M,
newlyAddedElement: P,
cssCaptured: L
});
if (!B) return console.warn(e, "not serialized"), null;
$ = n.hasNode(e) ? n.getId(e) : function(e, t) {
if (t.comment && e.type === Q_.Comment) return !0;
if (e.type === Q_.Element) {
if (t.script && ("script" === e.tagName || "link" === e.tagName && ("preload" === e.attributes.rel && "script" === e.attributes.as || "modulepreload" === e.attributes.rel) || "link" === e.tagName && "prefetch" === e.attributes.rel && "string" == typeof e.attributes.href && "js" === xx(e.attributes.href))) return !0;
if (t.headFavicon && ("link" === e.tagName && "shortcut icon" === e.attributes.rel || "meta" === e.tagName && (qx(e.attributes.name).match(/^msapplication-tile(image|color)$/) || "application-name" === qx(e.attributes.name) || "icon" === qx(e.attributes.rel) || "apple-touch-icon" === qx(e.attributes.rel) || "shortcut icon" === qx(e.attributes.rel)))) return !0;
if ("meta" === e.tagName) {
if (t.headMetaDescKeywords && qx(e.attributes.name).match(/^description|keywords$/)) return !0;
if (t.headMetaSocial && (qx(e.attributes.property).match(/^(og|twitter|fb):/) || qx(e.attributes.name).match(/^(og|twitter):/) || "pinterest" === qx(e.attributes.name))) return !0;
if (t.headMetaRobots && ("robots" === qx(e.attributes.name) || "googlebot" === qx(e.attributes.name) || "bingbot" === qx(e.attributes.name))) return !0;
if (t.headMetaHttpEquiv && void 0 !== e.attributes["http-equiv"]) return !0;
if (t.headMetaAuthorship && ("author" === qx(e.attributes.name) || "generator" === qx(e.attributes.name) || "framework" === qx(e.attributes.name) || "publisher" === qx(e.attributes.name) || "progid" === qx(e.attributes.name) || qx(e.attributes.property).match(/^article:/) || qx(e.attributes.property).match(/^product:/))) return !0;
if (t.headMetaVerification && ("google-site-verification" === qx(e.attributes.name) || "yandex-verification" === qx(e.attributes.name) || "csrf-token" === qx(e.attributes.name) || "p:domain_verify" === qx(e.attributes.name) || "verify-v1" === qx(e.attributes.name) || "verification" === qx(e.attributes.name) || "shopify-checkout-api-token" === qx(e.attributes.name))) return !0;
}
}
return !1;
}(B, g) || !F && B.type === Q_.Text && !B.textContent.replace(/^\s+|\s+$/gm, "").length ? -2 : Px();
var z = Object.assign(B, { id: $ });
if (n.add(e, z), -2 === $) return null;
S && S(e);
var V = !c;
if (z.type === Q_.Element) {
V = V && !z.needBlock, delete z.needBlock;
var U = px(e);
U && hx(U) && (z.isShadowHost = !0);
}
if ((z.type === Q_.Document || z.type === Q_.Element) && V) {
g.headWhitespace && z.type === Q_.Element && "head" === z.tagName && (F = !1);
var q = {
doc: r,
mirror: n,
blockClass: o,
blockSelector: i,
needsMask: D,
maskTextClass: s,
maskTextSelector: a,
skipChild: c,
inlineStylesheet: p,
maskInputOptions: f,
maskTextFn: h,
maskInputFn: m,
slimDOMOptions: g,
dataURLOptions: y,
inlineImages: w,
recordCanvas: x,
preserveWhiteSpace: F,
onSerialize: S,
onIframeLoad: k,
iframeLoadTimeout: O,
onStylesheetLoad: E,
stylesheetLoadTimeout: R,
keepIframeSrcFn: M,
cssCaptured: !1
};
if (z.type === Q_.Element && "textarea" === z.tagName && void 0 !== z.attributes.value);
else {
z.type === Q_.Element && void 0 !== z.attributes._cssText && "string" == typeof z.attributes._cssText && (q.cssCaptured = !0);
for (var W, H = W_(Array.from(sx(e))); !(W = H()).done;) {
var G = Wx(W.value, q);
G && z.childNodes.push(G);
}
}
var K = null;
if (dx(e) && (K = px(e))) for (var Y, Z = W_(Array.from(sx(K))); !(Y = Z()).done;) {
var X = Wx(Y.value, q);
X && (hx(K) && (X.isShadow = !0), z.childNodes.push(X));
}
}
var J = ax(e);
return J && fx(J) && hx(J) && (z.isShadow = !0), z.type === Q_.Element && "iframe" === z.tagName && function(e, t, r) {
var n = e.contentWindow;
if (n) {
var o;
var i = !1;
try {
o = n.document.readyState;
} catch (e) {
return;
}
if ("complete" === o) {
var s = "about:blank";
if (n.location.href !== s || e.src === s || "" === e.src) return setTimeout(t, 0), e.addEventListener("load", t);
e.addEventListener("load", t);
} else {
var a = setTimeout(function() {
i || (t(), i = !0);
}, r);
e.addEventListener("load", function() {
clearTimeout(a), i = !0, t();
});
}
}
}(e, function() {
var t = e.contentDocument;
if (t && k) {
var r = Wx(t, {
doc: t,
mirror: n,
blockClass: o,
blockSelector: i,
needsMask: D,
maskTextClass: s,
maskTextSelector: a,
skipChild: !1,
inlineStylesheet: p,
maskInputOptions: f,
maskTextFn: h,
maskInputFn: m,
slimDOMOptions: g,
dataURLOptions: y,
inlineImages: w,
recordCanvas: x,
preserveWhiteSpace: F,
onSerialize: S,
onIframeLoad: k,
iframeLoadTimeout: O,
onStylesheetLoad: E,
stylesheetLoadTimeout: R,
keepIframeSrcFn: M
});
r && k(e, r);
}
}, O), z.type === Q_.Element && "link" === z.tagName && "string" == typeof z.attributes.rel && ("stylesheet" === z.attributes.rel || "preload" === z.attributes.rel && "string" == typeof z.attributes.href && "css" === xx(z.attributes.href)) && function(e, t, r) {
var n;
var o = !1;
try {
n = e.sheet;
} catch (e) {
return;
}
if (!n) {
var i = setTimeout(function() {
o || (t(), o = !0);
}, r);
e.addEventListener("load", function() {
clearTimeout(i), o = !0, t();
});
}
}(e, function() {
if (E) {
var t = Wx(e, {
doc: r,
mirror: n,
blockClass: o,
blockSelector: i,
needsMask: D,
maskTextClass: s,
maskTextSelector: a,
skipChild: !1,
inlineStylesheet: p,
maskInputOptions: f,
maskTextFn: h,
maskInputFn: m,
slimDOMOptions: g,
dataURLOptions: y,
inlineImages: w,
recordCanvas: x,
preserveWhiteSpace: F,
onSerialize: S,
onIframeLoad: k,
iframeLoadTimeout: O,
onStylesheetLoad: E,
stylesheetLoadTimeout: R,
keepIframeSrcFn: M
});
t && E(e, t);
}
}, R), z;
}
function Hx(e) {
if (e.__esModule) return e;
var t = e.default;
if ("function" == typeof t) {
var r = function e() {
return $_(this, e) ? Reflect.construct(t, arguments, this.constructor) : t.apply(this, arguments);
};
r.prototype = t.prototype;
} else r = {};
return Object.defineProperty(r, "__esModule", { value: !0 }), Object.keys(e).forEach(function(t) {
var n = Object.getOwnPropertyDescriptor(e, t);
Object.defineProperty(r, t, n.get ? n : {
enumerable: !0,
get: function() {
return e[t];
}
});
}), r;
}
var Gx = { exports: {} };
var Kx = String;
var Yx = function() {
return {
isColorSupported: !1,
reset: Kx,
bold: Kx,
dim: Kx,
italic: Kx,
underline: Kx,
inverse: Kx,
hidden: Kx,
strikethrough: Kx,
black: Kx,
red: Kx,
green: Kx,
yellow: Kx,
blue: Kx,
magenta: Kx,
cyan: Kx,
white: Kx,
gray: Kx,
bgBlack: Kx,
bgRed: Kx,
bgGreen: Kx,
bgYellow: Kx,
bgBlue: Kx,
bgMagenta: Kx,
bgCyan: Kx,
bgWhite: Kx
};
};
Gx.exports = Yx(), Gx.exports.createColors = Yx;
var Zx = Gx.exports;
var Xx = Hx(Object.freeze(Object.defineProperty({
__proto__: null,
default: {}
}, Symbol.toStringTag, { value: "Module" })));
var Jx = Zx;
var Qx = Xx;
var eS = function(e) {
function t(r, n, o, i, s, a) {
var l;
return (l = e.call(this, r) || this).name = "CssSyntaxError", l.reason = r, s && (l.file = s), i && (l.source = i), a && (l.plugin = a), void 0 !== n && void 0 !== o && ("number" == typeof n ? (l.line = n, l.column = o) : (l.line = n.line, l.column = n.column, l.endLine = o.line, l.endColumn = o.column)), l.setMessage(), Error.captureStackTrace && Error.captureStackTrace(l, t), l;
}
F_(t, e);
var r = t.prototype;
return r.setMessage = function() {
this.message = this.plugin ? this.plugin + ": " : "", this.message += this.file ? this.file : "<css input>", void 0 !== this.line && (this.message += ":" + this.line + ":" + this.column), this.message += ": " + this.reason;
}, r.showSourceCode = function(e) {
var t = this;
if (!this.source) return "";
var r = this.source;
null == e && (e = Jx.isColorSupported), Qx && e && (r = Qx(r));
var n;
var o;
var i = r.split(/\r?\n/);
var s = Math.max(this.line - 3, 0);
var a = Math.min(this.line + 2, i.length);
var l = String(a).length;
if (e) {
var c = Jx.createColors(!0);
var u = c.bold;
var p = c.gray;
var d = c.red;
n = function(e) {
return u(d(e));
}, o = function(e) {
return p(e);
};
} else n = o = function(e) {
return e;
};
return i.slice(s, a).map(function(e, r) {
var i = s + 1 + r;
var a = " " + (" " + i).slice(-l) + " | ";
if (i === t.line) {
var c = o(a.replace(/\d/g, " ")) + e.slice(0, t.column - 1).replace(/[^\t]/g, " ");
return n(">") + o(a) + e + "\n " + c + n("^");
}
return " " + o(a) + e;
}).join("\n");
}, r.toString = function() {
var e = this.showSourceCode();
return e && (e = "\n\n" + e + "\n"), this.name + ": " + this.message + e;
}, t;
}(U_(Error));
var tS = eS;
eS.default = eS;
var rS = {};
rS.isClean = Symbol("isClean"), rS.my = Symbol("my");
var nS = {
after: "\n",
beforeClose: "\n",
beforeComment: "\n",
beforeDecl: "\n",
beforeOpen: " ",
beforeRule: "\n",
colon: ": ",
commentLeft: " ",
commentRight: " ",
emptyBody: "",
indent: " ",
semicolon: !1
};
var oS = function() {
function e(e) {
this.builder = e;
}
var t = e.prototype;
return t.atrule = function(e, t) {
var r = "@" + e.name;
var n = e.params ? this.rawValue(e, "params") : "";
if (void 0 !== e.raws.afterName ? r += e.raws.afterName : n && (r += " "), e.nodes) this.block(e, r + n);
else {
var o = (e.raws.between || "") + (t ? ";" : "");
this.builder(r + n + o, e);
}
}, t.beforeAfter = function(e, t) {
var r = "decl" === e.type ? this.raw(e, null, "beforeDecl") : "comment" === e.type ? this.raw(e, null, "beforeComment") : "before" === t ? this.raw(e, null, "beforeRule") : this.raw(e, null, "beforeClose");
for (var n = e.parent, o = 0; n && "root" !== n.type;) o += 1, n = n.parent;
if (r.includes("\n")) {
var i = this.raw(e, null, "indent");
if (i.length) for (var s = 0; s < o; s++) r += i;
}
return r;
}, t.block = function(e, t) {
var r;
var n = this.raw(e, "between", "beforeOpen");
this.builder(t + n + "{", e, "start"), e.nodes && e.nodes.length ? (this.body(e), r = this.raw(e, "after")) : r = this.raw(e, "after", "emptyBody"), r && this.builder(r), this.builder("}", e, "end");
}, t.body = function(e) {
for (var t = e.nodes.length - 1; t > 0 && "comment" === e.nodes[t].type;) t -= 1;
for (var r = this.raw(e, "semicolon"), n = 0; n < e.nodes.length; n++) {
var o = e.nodes[n];
var i = this.raw(o, "before");
i && this.builder(i), this.stringify(o, t !== n || r);
}
}, t.comment = function(e) {
var t = this.raw(e, "left", "commentLeft");
var r = this.raw(e, "right", "commentRight");
this.builder("/*" + t + e.text + r + "*/", e);
}, t.decl = function(e, t) {
var r = this.raw(e, "between", "colon");
var n = e.prop + r + this.rawValue(e, "value");
e.important && (n += e.raws.important || " !important"), t && (n += ";"), this.builder(n, e);
}, t.document = function(e) {
this.body(e);
}, t.raw = function(e, t, r) {
var n;
if (r || (r = t), t && void 0 !== (n = e.raws[t])) return n;
var o = e.parent;
if ("before" === r) {
if (!o || "root" === o.type && o.first === e) return "";
if (o && "document" === o.type) return "";
}
if (!o) return nS[r];
var i = e.root();
if (i.rawCache || (i.rawCache = {}), void 0 !== i.rawCache[r]) return i.rawCache[r];
if ("before" === r || "after" === r) return this.beforeAfter(e, r);
var s;
var a = "raw" + ((s = r)[0].toUpperCase() + s.slice(1));
return this[a] ? n = this[a](i, e) : i.walk(function(e) {
if (void 0 !== (n = e.raws[t])) return !1;
}), void 0 === n && (n = nS[r]), i.rawCache[r] = n, n;
}, t.rawBeforeClose = function(e) {
var t;
return e.walk(function(e) {
if (e.nodes && e.nodes.length > 0 && void 0 !== e.raws.after) return (t = e.raws.after).includes("\n") && (t = t.replace(/[^\n]+$/, "")), !1;
}), t && (t = t.replace(/\S/g, "")), t;
}, t.rawBeforeComment = function(e, t) {
var r;
return e.walkComments(function(e) {
if (void 0 !== e.raws.before) return (r = e.raws.before).includes("\n") && (r = r.replace(/[^\n]+$/, "")), !1;
}), void 0 === r ? r = this.raw(t, null, "beforeDecl") : r && (r = r.replace(/\S/g, "")), r;
}, t.rawBeforeDecl = function(e, t) {
var r;
return e.walkDecls(function(e) {
if (void 0 !== e.raws.before) return (r = e.raws.before).includes("\n") && (r = r.replace(/[^\n]+$/, "")), !1;
}), void 0 === r ? r = this.raw(t, null, "beforeRule") : r && (r = r.replace(/\S/g, "")), r;
}, t.rawBeforeOpen = function(e) {
var t;
return e.walk(function(e) {
if ("decl" !== e.type && void 0 !== (t = e.raws.between)) return !1;
}), t;
}, t.rawBeforeRule = function(e) {
var t;
return e.walk(function(r) {
if (r.nodes && (r.parent !== e || e.first !== r) && void 0 !== r.raws.before) return (t = r.raws.before).includes("\n") && (t = t.replace(/[^\n]+$/, "")), !1;
}), t && (t = t.replace(/\S/g, "")), t;
}, t.rawColon = function(e) {
var t;
return e.walkDecls(function(e) {
if (void 0 !== e.raws.between) return t = e.raws.between.replace(/[^\s:]/g, ""), !1;
}), t;
}, t.rawEmptyBody = function(e) {
var t;
return e.walk(function(e) {
if (e.nodes && 0 === e.nodes.length && void 0 !== (t = e.raws.after)) return !1;
}), t;
}, t.rawIndent = function(e) {
return e.raws.indent ? e.raws.indent : (e.walk(function(r) {
var n = r.parent;
if (n && n !== e && n.parent && n.parent === e && void 0 !== r.raws.before) {
var o = r.raws.before.split("\n");
return t = (t = o[o.length - 1]).replace(/\S/g, ""), !1;
}
}), t);
var t;
}, t.rawSemicolon = function(e) {
var t;
return e.walk(function(e) {
if (e.nodes && e.nodes.length && "decl" === e.last.type && void 0 !== (t = e.raws.semicolon)) return !1;
}), t;
}, t.rawValue = function(e, t) {
var r = e[t];
var n = e.raws[t];
return n && n.value === r ? n.raw : r;
}, t.root = function(e) {
this.body(e), e.raws.after && this.builder(e.raws.after);
}, t.rule = function(e) {
this.block(e, this.rawValue(e, "selector")), e.raws.ownSemicolon && this.builder(e.raws.ownSemicolon, e, "end");
}, t.stringify = function(e, t) {
if (!this[e.type]) throw new Error("Unknown AST node type " + e.type + ". Maybe you need to change PostCSS stringifier.");
this[e.type](e, t);
}, e;
}();
var iS = oS;
oS.default = oS;
var sS = iS;
function aS(e, t) {
new sS(t).stringify(e);
}
var lS = aS;
aS.default = aS;
var cS = rS.isClean;
var uS = rS.my;
var pS = tS;
var dS = iS;
var fS = lS;
function hS(e, t) {
var r = new e.constructor();
for (var n in e) if (Object.prototype.hasOwnProperty.call(e, n) && "proxyCache" !== n) {
var o = e[n];
var i = void 0 === o ? "undefined" : V_(o);
"parent" === n && "object" === i ? t && (r[n] = t) : "source" === n ? r[n] = o : Array.isArray(o) ? r[n] = o.map(function(e) {
return hS(e, r);
}) : ("object" === i && null !== o && (o = hS(o)), r[n] = o);
}
return r;
}
var mS = function() {
function e(e) {
for (var t in void 0 === e && (e = {}), this.raws = {}, this[cS] = !1, this[uS] = !0, e) if ("nodes" === t) {
this.nodes = [];
for (var r, n = W_(e[t]); !(r = n()).done;) {
var o = r.value;
"function" == typeof o.clone ? this.append(o.clone()) : this.append(o);
}
} else this[t] = e[t];
}
var t = e.prototype;
return t.addToError = function(e) {
if (e.postcssNode = this, e.stack && this.source && /\n\s{4}at /.test(e.stack)) {
var t = this.source;
e.stack = e.stack.replace(/\n\s{4}at /, "$&" + t.input.from + ":" + t.start.line + ":" + t.start.column + "$&");
}
return e;
}, t.after = function(e) {
return this.parent.insertAfter(this, e), this;
}, t.assign = function(e) {
for (var t in void 0 === e && (e = {}), e) this[t] = e[t];
return this;
}, t.before = function(e) {
return this.parent.insertBefore(this, e), this;
}, t.cleanRaws = function(e) {
delete this.raws.before, delete this.raws.after, e || delete this.raws.between;
}, t.clone = function(e) {
void 0 === e && (e = {});
var t = hS(this);
for (var r in e) t[r] = e[r];
return t;
}, t.cloneAfter = function(e) {
void 0 === e && (e = {});
var t = this.clone(e);
return this.parent.insertAfter(this, t), t;
}, t.cloneBefore = function(e) {
void 0 === e && (e = {});
var t = this.clone(e);
return this.parent.insertBefore(this, t), t;
}, t.error = function(e, t) {
if (void 0 === t && (t = {}), this.source) {
var r = this.rangeBy(t);
var n = r.end;
var o = r.start;
return this.source.input.error(e, {
column: o.column,
line: o.line
}, {
column: n.column,
line: n.line
}, t);
}
return new pS(e);
}, t.getProxyProcessor = function() {
return {
get: function(e, t) {
return "proxyOf" === t ? e : "root" === t ? function() {
return e.root().toProxy();
} : e[t];
},
set: function(e, t, r) {
return e[t] === r || (e[t] = r, "prop" !== t && "value" !== t && "name" !== t && "params" !== t && "important" !== t && "text" !== t || e.markDirty()), !0;
}
};
}, t.markDirty = function() {
if (this[cS]) {
this[cS] = !1;
for (var e = this; e = e.parent;) e[cS] = !1;
}
}, t.next = function() {
if (this.parent) {
var e = this.parent.index(this);
return this.parent.nodes[e + 1];
}
}, t.positionBy = function(e, t) {
var r = this.source.start;
if (e.index) r = this.positionInside(e.index, t);
else if (e.word) {
var n = (t = this.toString()).indexOf(e.word);
-1 !== n && (r = this.positionInside(n, t));
}
return r;
}, t.positionInside = function(e, t) {
for (var r = t || this.toString(), n = this.source.start.column, o = this.source.start.line, i = 0; i < e; i++) "\n" === r[i] ? (n = 1, o += 1) : n += 1;
return {
column: n,
line: o
};
}, t.prev = function() {
if (this.parent) {
var e = this.parent.index(this);
return this.parent.nodes[e - 1];
}
}, t.rangeBy = function(e) {
var t = {
column: this.source.start.column,
line: this.source.start.line
};
var r = this.source.end ? {
column: this.source.end.column + 1,
line: this.source.end.line
} : {
column: t.column + 1,
line: t.line
};
if (e.word) {
var n = this.toString();
var o = n.indexOf(e.word);
-1 !== o && (t = this.positionInside(o, n), r = this.positionInside(o + e.word.length, n));
} else e.start ? t = {
column: e.start.column,
line: e.start.line
} : e.index && (t = this.positionInside(e.index)), e.end ? r = {
column: e.end.column,
line: e.end.line
} : "number" == typeof e.endIndex ? r = this.positionInside(e.endIndex) : e.index && (r = this.positionInside(e.index + 1));
return (r.line < t.line || r.line === t.line && r.column <= t.column) && (r = {
column: t.column + 1,
line: t.line
}), {
end: r,
start: t
};
}, t.raw = function(e, t) {
return new dS().raw(this, e, t);
}, t.remove = function() {
return this.parent && this.parent.removeChild(this), this.parent = void 0, this;
}, t.replaceWith = function() {
for (var e = arguments.length, t = new Array(e), r = 0; r < e; r++) t[r] = arguments[r];
if (this.parent) {
for (var n, o = this, i = !1, s = W_(t); !(n = s()).done;) {
var a = n.value;
a === this ? i = !0 : i ? (this.parent.insertAfter(o, a), o = a) : this.parent.insertBefore(o, a);
}
i || this.remove();
}
return this;
}, t.root = function() {
for (var e = this; e.parent && "document" !== e.parent.type;) e = e.parent;
return e;
}, t.toJSON = function(e, t) {
var r = {};
var n = null == t;
t = t || /* @__PURE__ */ new Map();
var o = 0;
for (var i in this) if (Object.prototype.hasOwnProperty.call(this, i) && "parent" !== i && "proxyCache" !== i) {
var s = this[i];
if (Array.isArray(s)) r[i] = s.map(function(e) {
return "object" === (void 0 === e ? "undefined" : V_(e)) && e.toJSON ? e.toJSON(null, t) : e;
});
else if ("object" === (void 0 === s ? "undefined" : V_(s)) && s.toJSON) r[i] = s.toJSON(null, t);
else if ("source" === i) {
var a = t.get(s.input);
null == a && (a = o, t.set(s.input, o), o++), r[i] = {
end: s.end,
inputId: a,
start: s.start
};
} else r[i] = s;
}
return n && (r.inputs = [].concat(t.keys()).map(function(e) {
return e.toJSON();
})), r;
}, t.toProxy = function() {
return this.proxyCache || (this.proxyCache = new Proxy(this, this.getProxyProcessor())), this.proxyCache;
}, t.toString = function(e) {
void 0 === e && (e = fS), e.stringify && (e = e.stringify);
var t = "";
return e(this, function(e) {
t += e;
}), t;
}, t.warn = function(e, t, r) {
var n = { node: this };
for (var o in r) n[o] = r[o];
return e.warn(t, n);
}, L_(e, [{
key: "proxyOf",
get: function() {
return this;
}
}]), e;
}();
var gS = mS;
mS.default = mS;
var vS = function(e) {
function t(t) {
var r;
return t && void 0 !== t.value && "string" != typeof t.value && (t = D_({}, t, { value: String(t.value) })), (r = e.call(this, t) || this).type = "decl", r;
}
return F_(t, e), L_(t, [{
key: "variable",
get: function() {
return this.prop.startsWith("--") || "$" === this.prop[0];
}
}]), t;
}(gS);
var yS = vS;
vS.default = vS;
var bS = Xx.SourceMapConsumer;
var wS = Xx.SourceMapGenerator;
var _S = Xx.existsSync;
var xS = Xx.readFileSync;
var SS = Xx.dirname;
var kS = Xx.join;
var CS = function() {
function e(e, t) {
if (!1 !== t.map) {
this.loadAnnotation(e), this.inline = this.startWith(this.annotation, "data:");
var r = t.map ? t.map.prev : void 0;
var n = this.loadMap(t.from, r);
!this.mapFile && t.from && (this.mapFile = t.from), this.mapFile && (this.root = SS(this.mapFile)), n && (this.text = n);
}
}
var t = e.prototype;
return t.consumer = function() {
return this.consumerCache || (this.consumerCache = new bS(this.text)), this.consumerCache;
}, t.decodeInline = function(e) {
var t;
if (/^data:application\/json;charset=utf-?8,/.test(e) || /^data:application\/json,/.test(e)) return decodeURIComponent(e.substr(RegExp.lastMatch.length));
if (/^data:application\/json;charset=utf-?8;base64,/.test(e) || /^data:application\/json;base64,/.test(e)) return t = e.substr(RegExp.lastMatch.length), Buffer ? Buffer.from(t, "base64").toString() : window.atob(t);
var r = e.match(/data:application\/json;([^,]+),/)[1];
throw new Error("Unsupported source map encoding " + r);
}, t.getAnnotationURL = function(e) {
return e.replace(/^\/\*\s*# sourceMappingURL=/, "").trim();
}, t.isMap = function(e) {
return "object" === (void 0 === e ? "undefined" : V_(e)) && ("string" == typeof e.mappings || "string" == typeof e._mappings || Array.isArray(e.sections));
}, t.loadAnnotation = function(e) {
var t = e.match(/\/\*\s*# sourceMappingURL=/gm);
if (t) {
var r = e.lastIndexOf(t.pop());
var n = e.indexOf("*/", r);
r > -1 && n > -1 && (this.annotation = this.getAnnotationURL(e.substring(r, n)));
}
}, t.loadFile = function(e) {
if (this.root = SS(e), _S(e)) return this.mapFile = e, xS(e, "utf-8").toString().trim();
}, t.loadMap = function(e, t) {
if (!1 === t) return !1;
if (t) {
if ("string" == typeof t) return t;
if ("function" != typeof t) {
if ($_(t, bS)) return wS.fromSourceMap(t).toString();
if ($_(t, wS)) return t.toString();
if (this.isMap(t)) return JSON.stringify(t);
throw new Error("Unsupported previous source map format: " + t.toString());
}
var r = t(e);
if (r) {
var n = this.loadFile(r);
if (!n) throw new Error("Unable to load previous source map: " + r.toString());
return n;
}
} else {
if (this.inline) return this.decodeInline(this.annotation);
if (this.annotation) {
var o = this.annotation;
return e && (o = kS(SS(e), o)), this.loadFile(o);
}
}
}, t.startWith = function(e, t) {
return !!e && e.substr(0, t.length) === t;
}, t.withContent = function() {
return !!(this.consumer().sourcesContent && this.consumer().sourcesContent.length > 0);
}, e;
}();
var OS = CS;
CS.default = CS;
var ES = Xx.SourceMapConsumer;
var TS = Xx.SourceMapGenerator;
var RS = Xx.fileURLToPath;
var IS = Xx.pathToFileURL;
var MS = Xx.isAbsolute;
var AS = Xx.resolve;
var PS = function(e) {
void 0 === e && (e = 21);
for (var t = "", r = e; r--;) t += "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"[64 * Math.random() | 0];
return t;
};
var NS = Xx;
var LS = tS;
var DS = OS;
var jS = Symbol("fromOffsetCache");
var FS = Boolean(ES && TS);
var $S = Boolean(AS && MS);
var BS = function() {
function e(e, t) {
if (void 0 === t && (t = {}), null == e || "object" === (void 0 === e ? "undefined" : V_(e)) && !e.toString) throw new Error("PostCSS received " + e + " instead of CSS string");
if (this.css = e.toString(), "" === this.css[0] || "" === this.css[0] ? (this.hasBOM = !0, this.css = this.css.slice(1)) : this.hasBOM = !1, t.from && (!$S || /^\w+:\/\//.test(t.from) || MS(t.from) ? this.file = t.from : this.file = AS(t.from)), $S && FS) {
var r = new DS(this.css, t);
if (r.text) {
this.map = r;
var n = r.consumer().file;
!this.file && n && (this.file = this.mapResolve(n));
}
}
this.file || (this.id = "<input css " + PS(6) + ">"), this.map && (this.map.file = this.from);
}
var t = e.prototype;
return t.error = function(e, t, r, n) {
var o;
var i;
var s;
if (void 0 === n && (n = {}), t && "object" === (void 0 === t ? "undefined" : V_(t))) {
var a = t;
var l = r;
if ("number" == typeof a.offset) {
var c = this.fromOffset(a.offset);
t = c.line, r = c.col;
} else t = a.line, r = a.column;
if ("number" == typeof l.offset) {
var u = this.fromOffset(l.offset);
i = u.line, s = u.col;
} else i = l.line, s = l.column;
} else if (!r) {
var p = this.fromOffset(t);
t = p.line, r = p.col;
}
var d = this.origin(t, r, i, s);
return (o = d ? new LS(e, void 0 === d.endLine ? d.line : {
column: d.column,
line: d.line
}, void 0 === d.endLine ? d.column : {
column: d.endColumn,
line: d.endLine
}, d.source, d.file, n.plugin) : new LS(e, void 0 === i ? t : {
column: r,
line: t
}, void 0 === i ? r : {
column: s,
line: i
}, this.css, this.file, n.plugin)).input = {
column: r,
endColumn: s,
endLine: i,
line: t,
source: this.css
}, this.file && (IS && (o.input.url = IS(this.file).toString()), o.input.file = this.file), o;
}, t.fromOffset = function(e) {
var t;
if (this[jS]) t = this[jS];
else {
var r = this.css.split("\n");
t = new Array(r.length);
for (var n = 0, o = 0, i = r.length; o < i; o++) t[o] = n, n += r[o].length + 1;
this[jS] = t;
}
var s = 0;
if (e >= t[t.length - 1]) s = t.length - 1;
else for (var a, l = t.length - 2; s < l;) if (e < t[a = s + (l - s >> 1)]) l = a - 1;
else {
if (!(e >= t[a + 1])) {
s = a;
break;
}
s = a + 1;
}
return {
col: e - t[s] + 1,
line: s + 1
};
}, t.mapResolve = function(e) {
return /^\w+:\/\//.test(e) ? e : AS(this.map.consumer().sourceRoot || this.map.root || ".", e);
}, t.origin = function(e, t, r, n) {
if (!this.map) return !1;
var o;
var i;
var s = this.map.consumer();
var a = s.originalPositionFor({
column: t,
line: e
});
if (!a.source) return !1;
"number" == typeof r && (o = s.originalPositionFor({
column: n,
line: r
})), i = MS(a.source) ? IS(a.source) : new URL(a.source, this.map.consumer().sourceRoot || IS(this.map.mapFile));
var l = {
column: a.column,
endColumn: o && o.column,
endLine: o && o.line,
line: a.line,
url: i.toString()
};
if ("file:" === i.protocol) {
if (!RS) throw new Error("file: protocol is not available in this PostCSS build");
l.file = RS(i);
}
var c = s.sourceContentFor(a.source);
return c && (l.source = c), l;
}, t.toJSON = function() {
for (var e = {}, t = 0, r = [
"hasBOM",
"css",
"file",
"id"
]; t < r.length; t++) {
var n = r[t];
null != this[n] && (e[n] = this[n]);
}
return this.map && (e.map = D_({}, this.map), e.map.consumerCache && (e.map.consumerCache = void 0)), e;
}, L_(e, [{
key: "from",
get: function() {
return this.file || this.id;
}
}]), e;
}();
var zS = BS;
BS.default = BS, NS && NS.registerInput && NS.registerInput(BS);
var VS = Xx.SourceMapConsumer;
var US = Xx.SourceMapGenerator;
var qS = Xx.dirname;
var WS = Xx.relative;
var HS = Xx.resolve;
var GS = Xx.sep;
var KS = Xx.pathToFileURL;
var YS = zS;
var ZS = Boolean(VS && US);
var XS = Boolean(qS && HS && WS && GS);
var QS = function() {
function e(e, t, r, n) {
this.stringify = e, this.mapOpts = r.map || {}, this.root = t, this.opts = r, this.css = n, this.originalCSS = n, this.usesFileUrls = !this.mapOpts.from && this.mapOpts.absolute, this.memoizedFileURLs = /* @__PURE__ */ new Map(), this.memoizedPaths = /* @__PURE__ */ new Map(), this.memoizedURLs = /* @__PURE__ */ new Map();
}
var t = e.prototype;
return t.addAnnotation = function() {
var e = this.isInline() ? "data:application/json;base64," + this.toBase64(this.map.toString()) : "string" == typeof this.mapOpts.annotation ? this.mapOpts.annotation : "function" == typeof this.mapOpts.annotation ? this.mapOpts.annotation(this.opts.to, this.root) : this.outputFile() + ".map";
var t = "\n";
this.css.includes("\r\n") && (t = "\r\n"), this.css += t + "/*# sourceMappingURL=" + e + " */";
}, t.applyPrevMaps = function() {
for (var e, t = W_(this.previous()); !(e = t()).done;) {
var r = e.value;
var n = this.toUrl(this.path(r.file));
var o = r.root || qS(r.file);
var i = void 0;
!1 === this.mapOpts.sourcesContent ? (i = new VS(r.text)).sourcesContent && (i.sourcesContent = null) : i = r.consumer(), this.map.applySourceMap(i, n, this.toUrl(this.path(o)));
}
}, t.clearAnnotation = function() {
if (!1 !== this.mapOpts.annotation) if (this.root) for (var e, t = this.root.nodes.length - 1; t >= 0; t--) "comment" === (e = this.root.nodes[t]).type && 0 === e.text.indexOf("# sourceMappingURL=") && this.root.removeChild(t);
else this.css && (this.css = this.css.replace(/\n*?\/\*#[\S\s]*?\*\/$/gm, ""));
}, t.generate = function() {
if (this.clearAnnotation(), XS && ZS && this.isMap()) return this.generateMap();
var e = "";
return this.stringify(this.root, function(t) {
e += t;
}), [e];
}, t.generateMap = function() {
if (this.root) this.generateString();
else if (1 === this.previous().length) {
var e = this.previous()[0].consumer();
e.file = this.outputFile(), this.map = US.fromSourceMap(e, { ignoreInvalidMapping: !0 });
} else this.map = new US({
file: this.outputFile(),
ignoreInvalidMapping: !0
}), this.map.addMapping({
generated: {
column: 0,
line: 1
},
original: {
column: 0,
line: 1
},
source: this.opts.from ? this.toUrl(this.path(this.opts.from)) : "<no source>"
});
return this.isSourcesContent() && this.setSourcesContent(), this.root && this.previous().length > 0 && this.applyPrevMaps(), this.isAnnotation() && this.addAnnotation(), this.isInline() ? [this.css] : [this.css, this.map];
}, t.generateString = function() {
var e = this;
this.css = "", this.map = new US({
file: this.outputFile(),
ignoreInvalidMapping: !0
});
var t;
var r;
var n = 1;
var o = 1;
var i = "<no source>";
var s = {
generated: {
column: 0,
line: 0
},
original: {
column: 0,
line: 0
},
source: ""
};
this.stringify(this.root, function(a, l, c) {
if (e.css += a, l && "end" !== c && (s.generated.line = n, s.generated.column = o - 1, l.source && l.source.start ? (s.source = e.sourcePath(l), s.original.line = l.source.start.line, s.original.column = l.source.start.column - 1, e.map.addMapping(s)) : (s.source = i, s.original.line = 1, s.original.column = 0, e.map.addMapping(s))), (t = a.match(/\n/g)) ? (n += t.length, r = a.lastIndexOf("\n"), o = a.length - r) : o += a.length, l && "start" !== c) {
var u = l.parent || { raws: {} };
("decl" === l.type || "atrule" === l.type && !l.nodes) && l === u.last && !u.raws.semicolon || (l.source && l.source.end ? (s.source = e.sourcePath(l), s.original.line = l.source.end.line, s.original.column = l.source.end.column - 1, s.generated.line = n, s.generated.column = o - 2, e.map.addMapping(s)) : (s.source = i, s.original.line = 1, s.original.column = 0, s.generated.line = n, s.generated.column = o - 1, e.map.addMapping(s)));
}
});
}, t.isAnnotation = function() {
return !!this.isInline() || (void 0 !== this.mapOpts.annotation ? this.mapOpts.annotation : !this.previous().length || this.previous().some(function(e) {
return e.annotation;
}));
}, t.isInline = function() {
if (void 0 !== this.mapOpts.inline) return this.mapOpts.inline;
var e = this.mapOpts.annotation;
return (void 0 === e || !0 === e) && (!this.previous().length || this.previous().some(function(e) {
return e.inline;
}));
}, t.isMap = function() {
return void 0 !== this.opts.map ? !!this.opts.map : this.previous().length > 0;
}, t.isSourcesContent = function() {
return void 0 !== this.mapOpts.sourcesContent ? this.mapOpts.sourcesContent : !this.previous().length || this.previous().some(function(e) {
return e.withContent();
});
}, t.outputFile = function() {
return this.opts.to ? this.path(this.opts.to) : this.opts.from ? this.path(this.opts.from) : "to.css";
}, t.path = function(e) {
if (this.mapOpts.absolute) return e;
if (60 === e.charCodeAt(0)) return e;
if (/^\w+:\/\//.test(e)) return e;
var t = this.memoizedPaths.get(e);
if (t) return t;
var r = this.opts.to ? qS(this.opts.to) : ".";
"string" == typeof this.mapOpts.annotation && (r = qS(HS(r, this.mapOpts.annotation)));
var n = WS(r, e);
return this.memoizedPaths.set(e, n), n;
}, t.previous = function() {
var e = this;
if (!this.previousMaps) if (this.previousMaps = [], this.root) this.root.walk(function(t) {
if (t.source && t.source.input.map) {
var r = t.source.input.map;
e.previousMaps.includes(r) || e.previousMaps.push(r);
}
});
else {
var t = new YS(this.originalCSS, this.opts);
t.map && this.previousMaps.push(t.map);
}
return this.previousMaps;
}, t.setSourcesContent = function() {
var e = this;
var t = {};
if (this.root) this.root.walk(function(r) {
if (r.source) {
var n = r.source.input.from;
if (n && !t[n]) {
t[n] = !0;
var o = e.usesFileUrls ? e.toFileUrl(n) : e.toUrl(e.path(n));
e.map.setSourceContent(o, r.source.input.css);
}
}
});
else if (this.css) {
var r = this.opts.from ? this.toUrl(this.path(this.opts.from)) : "<no source>";
this.map.setSourceContent(r, this.css);
}
}, t.sourcePath = function(e) {
return this.mapOpts.from ? this.toUrl(this.mapOpts.from) : this.usesFileUrls ? this.toFileUrl(e.source.input.from) : this.toUrl(this.path(e.source.input.from));
}, t.toBase64 = function(e) {
return Buffer ? Buffer.from(e).toString("base64") : window.btoa(unescape(encodeURIComponent(e)));
}, t.toFileUrl = function(e) {
var t = this.memoizedFileURLs.get(e);
if (t) return t;
if (KS) {
var r = KS(e).toString();
return this.memoizedFileURLs.set(e, r), r;
}
throw new Error("`map.absolute` option is not available in this PostCSS build");
}, t.toUrl = function(e) {
var t = this.memoizedURLs.get(e);
if (t) return t;
"\\" === GS && (e = e.replace(/\\/g, "/"));
var r = encodeURI(e).replace(/[#?]/g, encodeURIComponent);
return this.memoizedURLs.set(e, r), r;
}, e;
}();
var ek = function(e) {
function t(t) {
var r;
return (r = e.call(this, t) || this).type = "comment", r;
}
return F_(t, e), t;
}(gS);
var tk = ek;
ek.default = ek;
var rk;
var nk;
var ok;
var ik;
var sk = rS.isClean;
var ak = rS.my;
var lk = yS;
var ck = tk;
function uk(e) {
return e.map(function(e) {
return e.nodes && (e.nodes = uk(e.nodes)), delete e.source, e;
});
}
function pk(e) {
if (e[sk] = !1, e.proxyOf.nodes) for (var t, r = W_(e.proxyOf.nodes); !(t = r()).done;) pk(t.value);
}
var dk = function(e) {
function t() {
return e.apply(this, arguments) || this;
}
F_(t, e);
var r = t.prototype;
return r.append = function() {
for (var e = arguments.length, t = new Array(e), r = 0; r < e; r++) t[r] = arguments[r];
for (var n, o = W_(t); !(n = o()).done;) for (var i, s = n.value, a = W_(this.normalize(s, this.last)); !(i = a()).done;) {
var l = i.value;
this.proxyOf.nodes.push(l);
}
return this.markDirty(), this;
}, r.cleanRaws = function(t) {
if (e.prototype.cleanRaws.call(this, t), this.nodes) for (var r, n = W_(this.nodes); !(r = n()).done;) r.value.cleanRaws(t);
}, r.each = function(e) {
if (this.proxyOf.nodes) {
for (var t, r, n = this.getIterator(); this.indexes[n] < this.proxyOf.nodes.length && (t = this.indexes[n], !1 !== (r = e(this.proxyOf.nodes[t], t)));) this.indexes[n] += 1;
return delete this.indexes[n], r;
}
}, r.every = function(e) {
return this.nodes.every(e);
}, r.getIterator = function() {
this.lastEach || (this.lastEach = 0), this.indexes || (this.indexes = {}), this.lastEach += 1;
var e = this.lastEach;
return this.indexes[e] = 0, e;
}, r.getProxyProcessor = function() {
return {
get: function(e, t) {
return "proxyOf" === t ? e : e[t] ? "each" === t || "string" == typeof t && t.startsWith("walk") ? function() {
for (var r = arguments.length, n = new Array(r), o = 0; o < r; o++) n[o] = arguments[o];
var i;
return (i = e)[t].apply(i, [].concat(n.map(function(e) {
return "function" == typeof e ? function(t, r) {
return e(t.toProxy(), r);
} : e;
})));
} : "every" === t || "some" === t ? function(r) {
return e[t](function(e) {
for (var t = arguments.length, n = new Array(t > 1 ? t - 1 : 0), o = 1; o < t; o++) n[o - 1] = arguments[o];
return r.apply(void 0, [].concat([e.toProxy()], n));
});
} : "root" === t ? function() {
return e.root().toProxy();
} : "nodes" === t ? e.nodes.map(function(e) {
return e.toProxy();
}) : "first" === t || "last" === t ? e[t].toProxy() : e[t] : e[t];
},
set: function(e, t, r) {
return e[t] === r || (e[t] = r, "name" !== t && "params" !== t && "selector" !== t || e.markDirty()), !0;
}
};
}, r.index = function(e) {
return "number" == typeof e ? e : (e.proxyOf && (e = e.proxyOf), this.proxyOf.nodes.indexOf(e));
}, r.insertAfter = function(e, t) {
var r;
var n = this.index(e);
var o = this.normalize(t, this.proxyOf.nodes[n]).reverse();
n = this.index(e);
for (var i, s = W_(o); !(i = s()).done;) {
var a = i.value;
this.proxyOf.nodes.splice(n + 1, 0, a);
}
for (var l in this.indexes) n < (r = this.indexes[l]) && (this.indexes[l] = r + o.length);
return this.markDirty(), this;
}, r.insertBefore = function(e, t) {
var r;
var n = this.index(e);
var o = 0 === n && "prepend";
var i = this.normalize(t, this.proxyOf.nodes[n], o).reverse();
n = this.index(e);
for (var s, a = W_(i); !(s = a()).done;) {
var l = s.value;
this.proxyOf.nodes.splice(n, 0, l);
}
for (var c in this.indexes) n <= (r = this.indexes[c]) && (this.indexes[c] = r + i.length);
return this.markDirty(), this;
}, r.normalize = function(e, r) {
var n = this;
if ("string" == typeof e) e = uk(rk(e).nodes);
else if (void 0 === e) e = [];
else if (Array.isArray(e)) for (var o, i = W_(e = e.slice(0)); !(o = i()).done;) {
var s = o.value;
s.parent && s.parent.removeChild(s, "ignore");
}
else if ("root" === e.type && "document" !== this.type) for (var a, l = W_(e = e.nodes.slice(0)); !(a = l()).done;) {
var c = a.value;
c.parent && c.parent.removeChild(c, "ignore");
}
else if (e.type) e = [e];
else if (e.prop) {
if (void 0 === e.value) throw new Error("Value field is missed in node creation");
"string" != typeof e.value && (e.value = String(e.value)), e = [new lk(e)];
} else if (e.selector) e = [new nk(e)];
else if (e.name) e = [new ok(e)];
else {
if (!e.text) throw new Error("Unknown node type in node creation");
e = [new ck(e)];
}
return e.map(function(e) {
return e[ak] || t.rebuild(e), (e = e.proxyOf).parent && e.parent.removeChild(e), e[sk] && pk(e), void 0 === e.raws.before && r && void 0 !== r.raws.before && (e.raws.before = r.raws.before.replace(/\S/g, "")), e.parent = n.proxyOf, e;
});
}, r.prepend = function() {
for (var e = arguments.length, t = new Array(e), r = 0; r < e; r++) t[r] = arguments[r];
for (var n, o = W_(t = t.reverse()); !(n = o()).done;) {
for (var i, s = n.value, a = this.normalize(s, this.first, "prepend").reverse(), l = W_(a); !(i = l()).done;) {
var c = i.value;
this.proxyOf.nodes.unshift(c);
}
for (var u in this.indexes) this.indexes[u] = this.indexes[u] + a.length;
}
return this.markDirty(), this;
}, r.push = function(e) {
return e.parent = this, this.proxyOf.nodes.push(e), this;
}, r.removeAll = function() {
for (var e, t = W_(this.proxyOf.nodes); !(e = t()).done;) e.value.parent = void 0;
return this.proxyOf.nodes = [], this.markDirty(), this;
}, r.removeChild = function(e) {
var t;
for (var r in e = this.index(e), this.proxyOf.nodes[e].parent = void 0, this.proxyOf.nodes.splice(e, 1), this.indexes) (t = this.indexes[r]) >= e && (this.indexes[r] = t - 1);
return this.markDirty(), this;
}, r.replaceValues = function(e, t, r) {
return r || (r = t, t = {}), this.walkDecls(function(n) {
t.props && !t.props.includes(n.prop) || t.fast && !n.value.includes(t.fast) || (n.value = n.value.replace(e, r));
}), this.markDirty(), this;
}, r.some = function(e) {
return this.nodes.some(e);
}, r.walk = function(e) {
return this.each(function(t, r) {
var n;
try {
n = e(t, r);
} catch (e) {
throw t.addToError(e);
}
return !1 !== n && t.walk && (n = t.walk(e)), n;
});
}, r.walkAtRules = function(e, t) {
return t ? $_(e, RegExp) ? this.walk(function(r, n) {
if ("atrule" === r.type && e.test(r.name)) return t(r, n);
}) : this.walk(function(r, n) {
if ("atrule" === r.type && r.name === e) return t(r, n);
}) : (t = e, this.walk(function(e, r) {
if ("atrule" === e.type) return t(e, r);
}));
}, r.walkComments = function(e) {
return this.walk(function(t, r) {
if ("comment" === t.type) return e(t, r);
});
}, r.walkDecls = function(e, t) {
return t ? $_(e, RegExp) ? this.walk(function(r, n) {
if ("decl" === r.type && e.test(r.prop)) return t(r, n);
}) : this.walk(function(r, n) {
if ("decl" === r.type && r.prop === e) return t(r, n);
}) : (t = e, this.walk(function(e, r) {
if ("decl" === e.type) return t(e, r);
}));
}, r.walkRules = function(e, t) {
return t ? $_(e, RegExp) ? this.walk(function(r, n) {
if ("rule" === r.type && e.test(r.selector)) return t(r, n);
}) : this.walk(function(r, n) {
if ("rule" === r.type && r.selector === e) return t(r, n);
}) : (t = e, this.walk(function(e, r) {
if ("rule" === e.type) return t(e, r);
}));
}, L_(t, [{
key: "first",
get: function() {
if (this.proxyOf.nodes) return this.proxyOf.nodes[0];
}
}, {
key: "last",
get: function() {
if (this.proxyOf.nodes) return this.proxyOf.nodes[this.proxyOf.nodes.length - 1];
}
}]), t;
}(gS);
dk.registerParse = function(e) {
rk = e;
}, dk.registerRule = function(e) {
nk = e;
}, dk.registerAtRule = function(e) {
ok = e;
}, dk.registerRoot = function(e) {
ik = e;
};
var fk = dk;
dk.default = dk, dk.rebuild = function(e) {
"atrule" === e.type ? Object.setPrototypeOf(e, ok.prototype) : "rule" === e.type ? Object.setPrototypeOf(e, nk.prototype) : "decl" === e.type ? Object.setPrototypeOf(e, lk.prototype) : "comment" === e.type ? Object.setPrototypeOf(e, ck.prototype) : "root" === e.type && Object.setPrototypeOf(e, ik.prototype), e[ak] = !0, e.nodes && e.nodes.forEach(function(e) {
dk.rebuild(e);
});
};
var hk;
var mk;
var gk = function(e) {
function t(t) {
var r;
return (r = e.call(this, D_({ type: "document" }, t)) || this).nodes || (r.nodes = []), r;
}
return F_(t, e), t.prototype.toResult = function(e) {
return void 0 === e && (e = {}), new hk(new mk(), this, e).stringify();
}, t;
}(fk);
gk.registerLazyResult = function(e) {
hk = e;
}, gk.registerProcessor = function(e) {
mk = e;
};
var vk = gk;
gk.default = gk;
var yk = {};
var bk = function(e) {
yk[e] || (yk[e] = !0, "undefined" != typeof console && console.warn && console.warn(e));
};
var wk = function() {
function e(e, t) {
if (void 0 === t && (t = {}), this.type = "warning", this.text = e, t.node && t.node.source) {
var r = t.node.rangeBy(t);
this.line = r.start.line, this.column = r.start.column, this.endLine = r.end.line, this.endColumn = r.end.column;
}
for (var n in t) this[n] = t[n];
}
return e.prototype.toString = function() {
return this.node ? this.node.error(this.text, {
index: this.index,
plugin: this.plugin,
word: this.word
}).message : this.plugin ? this.plugin + ": " + this.text : this.text;
}, e;
}();
var _k = wk;
wk.default = wk;
var xk = _k;
var Sk = function() {
function e(e, t, r) {
this.processor = e, this.messages = [], this.root = t, this.opts = r, this.css = void 0, this.map = void 0;
}
var t = e.prototype;
return t.toString = function() {
return this.css;
}, t.warn = function(e, t) {
void 0 === t && (t = {}), t.plugin || this.lastPlugin && this.lastPlugin.postcssPlugin && (t.plugin = this.lastPlugin.postcssPlugin);
var r = new xk(e, t);
return this.messages.push(r), r;
}, t.warnings = function() {
return this.messages.filter(function(e) {
return "warning" === e.type;
});
}, L_(e, [{
key: "content",
get: function() {
return this.css;
}
}]), e;
}();
var kk = Sk;
Sk.default = Sk;
var Ck = "'".charCodeAt(0);
var Ok = "\"".charCodeAt(0);
var Ek = "\\".charCodeAt(0);
var Tk = "/".charCodeAt(0);
var Rk = "\n".charCodeAt(0);
var Ik = " ".charCodeAt(0);
var Mk = "\f".charCodeAt(0);
var Ak = " ".charCodeAt(0);
var Pk = "\r".charCodeAt(0);
var Nk = "[".charCodeAt(0);
var Lk = "]".charCodeAt(0);
var Dk = "(".charCodeAt(0);
var jk = ")".charCodeAt(0);
var Fk = "{".charCodeAt(0);
var $k = "}".charCodeAt(0);
var Bk = ";".charCodeAt(0);
var zk = "*".charCodeAt(0);
var Vk = ":".charCodeAt(0);
var Uk = "@".charCodeAt(0);
var qk = /[\t\n\f\r "#'()/;[\\\]{}]/g;
var Wk = /[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g;
var Hk = /.[\r\n"'(/\\]/;
var Gk = /[\da-f]/i;
var Kk = fk;
var Yk = function(e) {
function t(t) {
var r;
return (r = e.call(this, t) || this).type = "atrule", r;
}
F_(t, e);
var r = t.prototype;
return r.append = function() {
for (var t = arguments.length, r = new Array(t), n = 0; n < t; n++) r[n] = arguments[n];
var o;
return this.proxyOf.nodes || (this.nodes = []), (o = e.prototype.append).call.apply(o, [].concat([this], r));
}, r.prepend = function() {
for (var t = arguments.length, r = new Array(t), n = 0; n < t; n++) r[n] = arguments[n];
var o;
return this.proxyOf.nodes || (this.nodes = []), (o = e.prototype.prepend).call.apply(o, [].concat([this], r));
}, t;
}(Kk);
var Zk = Yk;
Yk.default = Yk, Kk.registerAtRule(Yk);
var Xk;
var Jk;
var Qk = fk;
var eC = function(e) {
function t(t) {
var r;
return (r = e.call(this, t) || this).type = "root", r.nodes || (r.nodes = []), r;
}
F_(t, e);
var r = t.prototype;
return r.normalize = function(t, r, n) {
var o = e.prototype.normalize.call(this, t);
if (r) {
if ("prepend" === n) this.nodes.length > 1 ? r.raws.before = this.nodes[1].raws.before : delete r.raws.before;
else if (this.first !== r) for (var i, s = W_(o); !(i = s()).done;) i.value.raws.before = r.raws.before;
}
return o;
}, r.removeChild = function(t, r) {
var n = this.index(t);
return !r && 0 === n && this.nodes.length > 1 && (this.nodes[1].raws.before = this.nodes[n].raws.before), e.prototype.removeChild.call(this, t);
}, r.toResult = function(e) {
return void 0 === e && (e = {}), new Xk(new Jk(), this, e).stringify();
}, t;
}(Qk);
eC.registerLazyResult = function(e) {
Xk = e;
}, eC.registerProcessor = function(e) {
Jk = e;
};
var tC = eC;
eC.default = eC, Qk.registerRoot(eC);
var rC = {
comma: function(e) {
return rC.split(e, [","], !0);
},
space: function(e) {
return rC.split(e, [
" ",
"\n",
" "
]);
},
split: function(e, t, r) {
for (var n, o = [], i = "", s = !1, a = 0, l = !1, c = "", u = !1, p = W_(e); !(n = p()).done;) {
var d = n.value;
u ? u = !1 : "\\" === d ? u = !0 : l ? d === c && (l = !1) : "\"" === d || "'" === d ? (l = !0, c = d) : "(" === d ? a += 1 : ")" === d ? a > 0 && (a -= 1) : 0 === a && t.includes(d) && (s = !0), s ? ("" !== i && o.push(i.trim()), i = "", s = !1) : i += d;
}
return (r || "" !== i) && o.push(i.trim()), o;
}
};
var nC = rC;
rC.default = rC;
var oC = fk;
var iC = nC;
var sC = function(e) {
function t(t) {
var r;
return (r = e.call(this, t) || this).type = "rule", r.nodes || (r.nodes = []), r;
}
return F_(t, e), L_(t, [{
key: "selectors",
get: function() {
return iC.comma(this.selector);
},
set: function(e) {
var t = this.selector ? this.selector.match(/,\s*/) : null;
var r = t ? t[0] : "," + this.raw("between", "beforeOpen");
this.selector = e.join(r);
}
}]), t;
}(oC);
var aC = sC;
sC.default = sC, oC.registerRule(sC);
var lC = yS;
var cC = tk;
var uC = Zk;
var pC = tC;
var dC = aC;
var fC = {
empty: !0,
space: !0
};
var hC = function() {
function e(e) {
this.input = e, this.root = new pC(), this.current = this.root, this.spaces = "", this.semicolon = !1, this.createTokenizer(), this.root.source = {
input: e,
start: {
column: 1,
line: 1,
offset: 0
}
};
}
var t = e.prototype;
return t.atrule = function(e) {
var t;
var r;
var n;
var o = new uC();
o.name = e[1].slice(1), "" === o.name && this.unnamedAtrule(o, e), this.init(o, e[2]);
for (var i = !1, s = !1, a = [], l = []; !this.tokenizer.endOfFile();) {
if ("(" === (t = (e = this.tokenizer.nextToken())[0]) || "[" === t ? l.push("(" === t ? ")" : "]") : "{" === t && l.length > 0 ? l.push("}") : t === l[l.length - 1] && l.pop(), 0 === l.length) {
if (";" === t) {
o.source.end = this.getPosition(e[2]), o.source.end.offset++, this.semicolon = !0;
break;
}
if ("{" === t) {
s = !0;
break;
}
if ("}" === t) {
if (a.length > 0) {
for (r = a[n = a.length - 1]; r && "space" === r[0];) r = a[--n];
r && (o.source.end = this.getPosition(r[3] || r[2]), o.source.end.offset++);
}
this.end(e);
break;
}
a.push(e);
} else a.push(e);
if (this.tokenizer.endOfFile()) {
i = !0;
break;
}
}
o.raws.between = this.spacesAndCommentsFromEnd(a), a.length ? (o.raws.afterName = this.spacesAndCommentsFromStart(a), this.raw(o, "params", a), i && (e = a[a.length - 1], o.source.end = this.getPosition(e[3] || e[2]), o.source.end.offset++, this.spaces = o.raws.between, o.raws.between = "")) : (o.raws.afterName = "", o.params = ""), s && (o.nodes = [], this.current = o);
}, t.checkMissedSemicolon = function(e) {
var t = this.colon(e);
if (!1 !== t) {
for (var r, n = 0, o = t - 1; o >= 0 && ("space" === (r = e[o])[0] || 2 !== (n += 1)); o--);
throw this.input.error("Missed semicolon", "word" === r[0] ? r[3] + 1 : r[2]);
}
}, t.colon = function(e) {
for (var t, r, n, o, i = 0, s = W_(e.entries()); !(o = s()).done;) {
var a = o.value;
var l = a[0];
if ("(" === (r = (t = a[1])[0]) && (i += 1), ")" === r && (i -= 1), 0 === i && ":" === r) {
if (n) {
if ("word" === n[0] && "progid" === n[1]) continue;
return l;
}
this.doubleColon(t);
}
n = t;
}
return !1;
}, t.comment = function(e) {
var t = new cC();
this.init(t, e[2]), t.source.end = this.getPosition(e[3] || e[2]), t.source.end.offset++;
var r = e[1].slice(2, -2);
if (/^\s*$/.test(r)) t.text = "", t.raws.left = r, t.raws.right = "";
else {
var n = r.match(/^(\s*)([^]*\S)(\s*)$/);
t.text = n[2], t.raws.left = n[1], t.raws.right = n[3];
}
}, t.createTokenizer = function() {
this.tokenizer = function(e, t) {
void 0 === t && (t = {});
var r;
var n;
var o;
var i;
var s;
var a;
var l;
var c;
var u;
var p;
var d = e.css.valueOf();
var f = t.ignoreErrors;
var h = d.length;
var m = 0;
var g = [];
var v = [];
function y(t) {
throw e.error("Unclosed " + t, m);
}
return {
back: function(e) {
v.push(e);
},
endOfFile: function() {
return 0 === v.length && m >= h;
},
nextToken: function(e) {
if (v.length) return v.pop();
if (!(m >= h)) {
var t = !!e && e.ignoreUnclosed;
switch (r = d.charCodeAt(m)) {
case Rk:
case Ik:
case Ak:
case Pk:
case Mk:
n = m;
do
n += 1, r = d.charCodeAt(n);
while (r === Ik || r === Rk || r === Ak || r === Pk || r === Mk);
p = ["space", d.slice(m, n)], m = n - 1;
break;
case Nk:
case Lk:
case Fk:
case $k:
case Vk:
case Bk:
case jk:
var b = String.fromCharCode(r);
p = [
b,
b,
m
];
break;
case Dk:
if (c = g.length ? g.pop()[1] : "", u = d.charCodeAt(m + 1), "url" === c && u !== Ck && u !== Ok && u !== Ik && u !== Rk && u !== Ak && u !== Mk && u !== Pk) {
n = m;
do {
if (a = !1, -1 === (n = d.indexOf(")", n + 1))) {
if (f || t) {
n = m;
break;
}
y("bracket");
}
for (l = n; d.charCodeAt(l - 1) === Ek;) l -= 1, a = !a;
} while (a);
p = [
"brackets",
d.slice(m, n + 1),
m,
n
], m = n;
} else n = d.indexOf(")", m + 1), i = d.slice(m, n + 1), -1 === n || Hk.test(i) ? p = [
"(",
"(",
m
] : (p = [
"brackets",
i,
m,
n
], m = n);
break;
case Ck:
case Ok:
o = r === Ck ? "'" : "\"", n = m;
do {
if (a = !1, -1 === (n = d.indexOf(o, n + 1))) {
if (f || t) {
n = m + 1;
break;
}
y("string");
}
for (l = n; d.charCodeAt(l - 1) === Ek;) l -= 1, a = !a;
} while (a);
p = [
"string",
d.slice(m, n + 1),
m,
n
], m = n;
break;
case Uk:
qk.lastIndex = m + 1, qk.test(d), n = 0 === qk.lastIndex ? d.length - 1 : qk.lastIndex - 2, p = [
"at-word",
d.slice(m, n + 1),
m,
n
], m = n;
break;
case Ek:
for (n = m, s = !0; d.charCodeAt(n + 1) === Ek;) n += 1, s = !s;
if (r = d.charCodeAt(n + 1), s && r !== Tk && r !== Ik && r !== Rk && r !== Ak && r !== Pk && r !== Mk && (n += 1, Gk.test(d.charAt(n)))) {
for (; Gk.test(d.charAt(n + 1));) n += 1;
d.charCodeAt(n + 1) === Ik && (n += 1);
}
p = [
"word",
d.slice(m, n + 1),
m,
n
], m = n;
break;
default: r === Tk && d.charCodeAt(m + 1) === zk ? (0 === (n = d.indexOf("*/", m + 2) + 1) && (f || t ? n = d.length : y("comment")), p = [
"comment",
d.slice(m, n + 1),
m,
n
], m = n) : (Wk.lastIndex = m + 1, Wk.test(d), n = 0 === Wk.lastIndex ? d.length - 1 : Wk.lastIndex - 2, p = [
"word",
d.slice(m, n + 1),
m,
n
], g.push(p), m = n);
}
return m++, p;
}
},
position: function() {
return m;
}
};
}(this.input);
}, t.decl = function(e, t) {
var r = new lC();
this.init(r, e[0][2]);
var n;
var o = e[e.length - 1];
for (";" === o[0] && (this.semicolon = !0, e.pop()), r.source.end = this.getPosition(o[3] || o[2] || function(e) {
for (var t = e.length - 1; t >= 0; t--) {
var r = e[t];
var n = r[3] || r[2];
if (n) return n;
}
}(e)), r.source.end.offset++; "word" !== e[0][0];) 1 === e.length && this.unknownWord(e), r.raws.before += e.shift()[1];
for (r.source.start = this.getPosition(e[0][2]), r.prop = ""; e.length;) {
var i = e[0][0];
if (":" === i || "space" === i || "comment" === i) break;
r.prop += e.shift()[1];
}
for (r.raws.between = ""; e.length;) {
if (":" === (n = e.shift())[0]) {
r.raws.between += n[1];
break;
}
"word" === n[0] && /\w/.test(n[1]) && this.unknownWord([n]), r.raws.between += n[1];
}
"_" !== r.prop[0] && "*" !== r.prop[0] || (r.raws.before += r.prop[0], r.prop = r.prop.slice(1));
for (var s, a = []; e.length && ("space" === (s = e[0][0]) || "comment" === s);) a.push(e.shift());
this.precheckMissedSemicolon(e);
for (var l = e.length - 1; l >= 0; l--) {
if ("!important" === (n = e[l])[1].toLowerCase()) {
r.important = !0;
var c = this.stringFrom(e, l);
" !important" !== (c = this.spacesFromEnd(e) + c) && (r.raws.important = c);
break;
}
if ("important" === n[1].toLowerCase()) {
for (var u = e.slice(0), p = "", d = l; d > 0; d--) {
var f = u[d][0];
if (0 === p.trim().indexOf("!") && "space" !== f) break;
p = u.pop()[1] + p;
}
0 === p.trim().indexOf("!") && (r.important = !0, r.raws.important = p, e = u);
}
if ("space" !== n[0] && "comment" !== n[0]) break;
}
e.some(function(e) {
return "space" !== e[0] && "comment" !== e[0];
}) && (r.raws.between += a.map(function(e) {
return e[1];
}).join(""), a = []), this.raw(r, "value", a.concat(e), t), r.value.includes(":") && !t && this.checkMissedSemicolon(e);
}, t.doubleColon = function(e) {
throw this.input.error("Double colon", { offset: e[2] }, { offset: e[2] + e[1].length });
}, t.emptyRule = function(e) {
var t = new dC();
this.init(t, e[2]), t.selector = "", t.raws.between = "", this.current = t;
}, t.end = function(e) {
this.current.nodes && this.current.nodes.length && (this.current.raws.semicolon = this.semicolon), this.semicolon = !1, this.current.raws.after = (this.current.raws.after || "") + this.spaces, this.spaces = "", this.current.parent ? (this.current.source.end = this.getPosition(e[2]), this.current.source.end.offset++, this.current = this.current.parent) : this.unexpectedClose(e);
}, t.endFile = function() {
this.current.parent && this.unclosedBlock(), this.current.nodes && this.current.nodes.length && (this.current.raws.semicolon = this.semicolon), this.current.raws.after = (this.current.raws.after || "") + this.spaces, this.root.source.end = this.getPosition(this.tokenizer.position());
}, t.freeSemicolon = function(e) {
if (this.spaces += e[1], this.current.nodes) {
var t = this.current.nodes[this.current.nodes.length - 1];
t && "rule" === t.type && !t.raws.ownSemicolon && (t.raws.ownSemicolon = this.spaces, this.spaces = "");
}
}, t.getPosition = function(e) {
var t = this.input.fromOffset(e);
return {
column: t.col,
line: t.line,
offset: e
};
}, t.init = function(e, t) {
this.current.push(e), e.source = {
input: this.input,
start: this.getPosition(t)
}, e.raws.before = this.spaces, this.spaces = "", "comment" !== e.type && (this.semicolon = !1);
}, t.other = function(e) {
for (var t = !1, r = null, n = !1, o = null, i = [], s = e[1].startsWith("--"), a = [], l = e; l;) {
if (r = l[0], a.push(l), "(" === r || "[" === r) o || (o = l), i.push("(" === r ? ")" : "]");
else if (s && n && "{" === r) o || (o = l), i.push("}");
else if (0 === i.length) {
if (";" === r) {
if (n) return void this.decl(a, s);
break;
}
if ("{" === r) return void this.rule(a);
if ("}" === r) {
this.tokenizer.back(a.pop()), t = !0;
break;
}
":" === r && (n = !0);
} else r === i[i.length - 1] && (i.pop(), 0 === i.length && (o = null));
l = this.tokenizer.nextToken();
}
if (this.tokenizer.endOfFile() && (t = !0), i.length > 0 && this.unclosedBracket(o), t && n) {
if (!s) for (; a.length && ("space" === (l = a[a.length - 1][0]) || "comment" === l);) this.tokenizer.back(a.pop());
this.decl(a, s);
} else this.unknownWord(a);
}, t.parse = function() {
for (var e; !this.tokenizer.endOfFile();) switch ((e = this.tokenizer.nextToken())[0]) {
case "space":
this.spaces += e[1];
break;
case ";":
this.freeSemicolon(e);
break;
case "}":
this.end(e);
break;
case "comment":
this.comment(e);
break;
case "at-word":
this.atrule(e);
break;
case "{":
this.emptyRule(e);
break;
default: this.other(e);
}
this.endFile();
}, t.precheckMissedSemicolon = function() {}, t.raw = function(e, t, r, n) {
for (var o, i, s, a, l = r.length, c = "", u = !0, p = 0; p < l; p += 1) "space" !== (i = (o = r[p])[0]) || p !== l - 1 || n ? "comment" === i ? (a = r[p - 1] ? r[p - 1][0] : "empty", s = r[p + 1] ? r[p + 1][0] : "empty", fC[a] || fC[s] || "," === c.slice(-1) ? u = !1 : c += o[1]) : c += o[1] : u = !1;
if (!u) {
var d = r.reduce(function(e, t) {
return e + t[1];
}, "");
e.raws[t] = {
raw: d,
value: c
};
}
e[t] = c;
}, t.rule = function(e) {
e.pop();
var t = new dC();
this.init(t, e[0][2]), t.raws.between = this.spacesAndCommentsFromEnd(e), this.raw(t, "selector", e), this.current = t;
}, t.spacesAndCommentsFromEnd = function(e) {
for (var t, r = ""; e.length && ("space" === (t = e[e.length - 1][0]) || "comment" === t);) r = e.pop()[1] + r;
return r;
}, t.spacesAndCommentsFromStart = function(e) {
for (var t, r = ""; e.length && ("space" === (t = e[0][0]) || "comment" === t);) r += e.shift()[1];
return r;
}, t.spacesFromEnd = function(e) {
for (var t = ""; e.length && "space" === e[e.length - 1][0];) t = e.pop()[1] + t;
return t;
}, t.stringFrom = function(e, t) {
for (var r = "", n = t; n < e.length; n++) r += e[n][1];
return e.splice(t, e.length - t), r;
}, t.unclosedBlock = function() {
var e = this.current.source.start;
throw this.input.error("Unclosed block", e.line, e.column);
}, t.unclosedBracket = function(e) {
throw this.input.error("Unclosed bracket", { offset: e[2] }, { offset: e[2] + 1 });
}, t.unexpectedClose = function(e) {
throw this.input.error("Unexpected }", { offset: e[2] }, { offset: e[2] + 1 });
}, t.unknownWord = function(e) {
throw this.input.error("Unknown word", { offset: e[0][2] }, { offset: e[0][2] + e[0][1].length });
}, t.unnamedAtrule = function(e, t) {
throw this.input.error("At-rule without name", { offset: t[2] }, { offset: t[2] + t[1].length });
}, e;
}();
var mC = fk;
var gC = hC;
var vC = zS;
function yC(e, t) {
var n = new gC(new vC(e, t));
try {
n.parse();
} catch (e) {
throw "CssSyntaxError" === e.name && t && t.from && (/\.scss$/i.test(t.from) ? e.message += "\nYou tried to parse SCSS with the standard CSS parser; try again with the postcss-scss parser" : /\.sass/i.test(t.from) ? e.message += "\nYou tried to parse Sass with the standard CSS parser; try again with the postcss-sass parser" : /\.less$/i.test(t.from) && (e.message += "\nYou tried to parse Less with the standard CSS parser; try again with the postcss-less parser")), e;
}
return n.root;
}
var bC = yC;
yC.default = yC, mC.registerParse(yC);
var wC = rS.isClean;
var _C = rS.my;
var xC = QS;
var SC = lS;
var kC = fk;
var CC = vk;
var OC = bk;
var EC = kk;
var TC = bC;
var RC = tC;
var IC = {
atrule: "AtRule",
comment: "Comment",
decl: "Declaration",
document: "Document",
root: "Root",
rule: "Rule"
};
var MC = {
AtRule: !0,
AtRuleExit: !0,
Comment: !0,
CommentExit: !0,
Declaration: !0,
DeclarationExit: !0,
Document: !0,
DocumentExit: !0,
Once: !0,
OnceExit: !0,
postcssPlugin: !0,
prepare: !0,
Root: !0,
RootExit: !0,
Rule: !0,
RuleExit: !0
};
var AC = {
Once: !0,
postcssPlugin: !0,
prepare: !0
};
function PC(e) {
return "object" === (void 0 === e ? "undefined" : V_(e)) && "function" == typeof e.then;
}
function NC(e) {
var t = !1;
var r = IC[e.type];
return "decl" === e.type ? t = e.prop.toLowerCase() : "atrule" === e.type && (t = e.name.toLowerCase()), t && e.append ? [
r,
r + "-" + t,
0,
r + "Exit",
r + "Exit-" + t
] : t ? [
r,
r + "-" + t,
r + "Exit",
r + "Exit-" + t
] : e.append ? [
r,
0,
r + "Exit"
] : [r, r + "Exit"];
}
function LC(e) {
return {
eventIndex: 0,
events: "document" === e.type ? [
"Document",
0,
"DocumentExit"
] : "root" === e.type ? [
"Root",
0,
"RootExit"
] : NC(e),
iterator: 0,
node: e,
visitorIndex: 0,
visitors: []
};
}
function DC(e) {
return e[wC] = !1, e.nodes && e.nodes.forEach(function(e) {
return DC(e);
}), e;
}
var jC = {};
var FC = function() {
function e(t, r, n) {
var o;
var i = this;
if (this.stringified = !1, this.processed = !1, "object" !== (void 0 === r ? "undefined" : V_(r)) || null === r || "root" !== r.type && "document" !== r.type) if ($_(r, e) || $_(r, EC)) o = DC(r.root), r.map && (void 0 === n.map && (n.map = {}), n.map.inline || (n.map.inline = !1), n.map.prev = r.map);
else {
var s = TC;
n.syntax && (s = n.syntax.parse), n.parser && (s = n.parser), s.parse && (s = s.parse);
try {
o = s(r, n);
} catch (e) {
this.processed = !0, this.error = e;
}
o && !o[_C] && kC.rebuild(o);
}
else o = DC(r);
this.result = new EC(t, o, n), this.helpers = D_({}, jC, {
postcss: jC,
result: this.result
}), this.plugins = this.processor.plugins.map(function(e) {
return "object" === (void 0 === e ? "undefined" : V_(e)) && e.prepare ? D_({}, e, e.prepare(i.result)) : e;
});
}
var t = e.prototype;
return t.async = function() {
return this.error ? Promise.reject(this.error) : this.processed ? Promise.resolve(this.result) : (this.processing || (this.processing = this.runAsync()), this.processing);
}, t.catch = function(e) {
return this.async().catch(e);
}, t.finally = function(e) {
return this.async().then(e, e);
}, t.getAsyncError = function() {
throw new Error("Use process(css).then(cb) to work with async plugins");
}, t.handleError = function(e, t) {
var r = this.result.lastPlugin;
try {
if (t && t.addToError(e), this.error = e, "CssSyntaxError" !== e.name || e.plugin) {
if (r.postcssVersion && true) {
var n = r.postcssPlugin;
var o = r.postcssVersion;
var i = this.result.processor.version;
var s = o.split(".");
var a = i.split(".");
(s[0] !== a[0] || parseInt(s[1]) > parseInt(a[1])) && console.error("Unknown error from PostCSS plugin. Your current PostCSS version is " + i + ", but " + n + " uses " + o + ". Perhaps this is the source of the error below.");
}
} else e.plugin = r.postcssPlugin, e.setMessage();
} catch (e) {
console && console.error && console.error(e);
}
return e;
}, t.prepareVisitors = function() {
var e = this;
this.listeners = {};
for (var t, r = function(t, r, n) {
e.listeners[r] || (e.listeners[r] = []), e.listeners[r].push([t, n]);
}, n = W_(this.plugins); !(t = n()).done;) {
var o = t.value;
if ("object" === (void 0 === o ? "undefined" : V_(o))) for (var i in o) {
if (!MC[i] && /^[A-Z]/.test(i)) throw new Error("Unknown event " + i + " in " + o.postcssPlugin + ". Try to update PostCSS (" + this.processor.version + " now).");
if (!AC[i]) if ("object" === V_(o[i])) for (var s in o[i]) r(o, "*" === s ? i : i + "-" + s.toLowerCase(), o[i][s]);
else "function" == typeof o[i] && r(o, i, o[i]);
}
}
this.hasListener = Object.keys(this.listeners).length > 0;
}, t.runAsync = function() {
var e = this;
return P_(function() {
var t;
var r;
var n;
var o;
var i;
var s;
var a;
var l;
var c;
var u;
var p;
var d;
return H_(this, function(f) {
switch (f.label) {
case 0: e.plugin = 0, t = 0, f.label = 1;
case 1:
if (!(t < e.plugins.length)) return [3, 6];
if (r = e.plugins[t], !PC(n = e.runOnRoot(r))) return [3, 5];
f.label = 2;
case 2: return f.trys.push([
2,
4,
,
5
]), [4, n];
case 3: return f.sent(), [3, 5];
case 4: throw o = f.sent(), e.handleError(o);
case 5: return t++, [3, 1];
case 6:
if (e.prepareVisitors(), !e.hasListener) return [3, 18];
i = e.result.root, f.label = 7;
case 7:
if (i[wC]) return [3, 14];
i[wC] = !0, s = [LC(i)], f.label = 8;
case 8:
if (!(s.length > 0)) return [3, 13];
if (!PC(a = e.visitTick(s))) return [3, 12];
f.label = 9;
case 9: return f.trys.push([
9,
11,
,
12
]), [4, a];
case 10: return f.sent(), [3, 12];
case 11: throw l = f.sent(), c = s[s.length - 1].node, e.handleError(l, c);
case 12: return [3, 8];
case 13: return [3, 7];
case 14:
if (!e.listeners.OnceExit) return [3, 18];
u = function() {
var t;
var r;
var n;
var o;
var s;
return H_(this, function(a) {
switch (a.label) {
case 0: t = d.value, r = t[0], n = t[1], e.result.lastPlugin = r, a.label = 1;
case 1: return a.trys.push([
1,
6,
,
7
]), "document" !== i.type ? [3, 3] : (o = i.nodes.map(function(t) {
return n(t, e.helpers);
}), [4, Promise.all(o)]);
case 2: return a.sent(), [3, 5];
case 3: return [4, n(i, e.helpers)];
case 4: a.sent(), a.label = 5;
case 5: return [3, 7];
case 6: throw s = a.sent(), e.handleError(s);
case 7: return [2];
}
});
}, p = W_(e.listeners.OnceExit), f.label = 15;
case 15: return (d = p()).done ? [3, 18] : [5, G_(u())];
case 16: f.sent(), f.label = 17;
case 17: return [3, 15];
case 18: return e.processed = !0, [2, e.stringify()];
}
});
})();
}, t.runOnRoot = function(e) {
var t = this;
this.result.lastPlugin = e;
try {
if ("object" === (void 0 === e ? "undefined" : V_(e)) && e.Once) {
if ("document" === this.result.root.type) {
var r = this.result.root.nodes.map(function(r) {
return e.Once(r, t.helpers);
});
return PC(r[0]) ? Promise.all(r) : r;
}
return e.Once(this.result.root, this.helpers);
}
if ("function" == typeof e) return e(this.result.root, this.result);
} catch (e) {
throw this.handleError(e);
}
}, t.stringify = function() {
if (this.error) throw this.error;
if (this.stringified) return this.result;
this.stringified = !0, this.sync();
var e = this.result.opts;
var t = SC;
e.syntax && (t = e.syntax.stringify), e.stringifier && (t = e.stringifier), t.stringify && (t = t.stringify);
var r = new xC(t, this.result.root, this.result.opts).generate();
return this.result.css = r[0], this.result.map = r[1], this.result;
}, t.sync = function() {
if (this.error) throw this.error;
if (this.processed) return this.result;
if (this.processed = !0, this.processing) throw this.getAsyncError();
for (var e, t = W_(this.plugins); !(e = t()).done;) {
var r = e.value;
if (PC(this.runOnRoot(r))) throw this.getAsyncError();
}
if (this.prepareVisitors(), this.hasListener) {
for (var n = this.result.root; !n[wC];) n[wC] = !0, this.walkSync(n);
if (this.listeners.OnceExit) if ("document" === n.type) for (var o, i = W_(n.nodes); !(o = i()).done;) {
var s = o.value;
this.visitSync(this.listeners.OnceExit, s);
}
else this.visitSync(this.listeners.OnceExit, n);
}
return this.result;
}, t.then = function(e, t) {
return "from" in this.opts || OC("Without `from` option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to `undefined` to prevent this warning."), this.async().then(e, t);
}, t.toString = function() {
return this.css;
}, t.visitSync = function(e, t) {
for (var r, n = W_(e); !(r = n()).done;) {
var o = r.value;
var i = o[0];
var s = o[1];
this.result.lastPlugin = i;
var a = void 0;
try {
a = s(t, this.helpers);
} catch (e) {
throw this.handleError(e, t.proxyOf);
}
if ("root" !== t.type && "document" !== t.type && !t.parent) return !0;
if (PC(a)) throw this.getAsyncError();
}
}, t.visitTick = function(e) {
var t = e[e.length - 1];
var r = t.node;
var n = t.visitors;
if ("root" === r.type || "document" === r.type || r.parent) {
if (n.length > 0 && t.visitorIndex < n.length) {
var o = n[t.visitorIndex];
var i = o[0];
var s = o[1];
t.visitorIndex += 1, t.visitorIndex === n.length && (t.visitors = [], t.visitorIndex = 0), this.result.lastPlugin = i;
try {
return s(r.toProxy(), this.helpers);
} catch (e) {
throw this.handleError(e, r);
}
}
if (0 !== t.iterator) {
for (var a, l = t.iterator; a = r.nodes[r.indexes[l]];) if (r.indexes[l] += 1, !a[wC]) return a[wC] = !0, void e.push(LC(a));
t.iterator = 0, delete r.indexes[l];
}
for (var c = t.events; t.eventIndex < c.length;) {
var u = c[t.eventIndex];
if (t.eventIndex += 1, 0 === u) return void (r.nodes && r.nodes.length && (r[wC] = !0, t.iterator = r.getIterator()));
if (this.listeners[u]) return void (t.visitors = this.listeners[u]);
}
e.pop();
} else e.pop();
}, t.walkSync = function(e) {
var t = this;
e[wC] = !0;
for (var r, n = W_(NC(e)); !(r = n()).done;) {
var o = r.value;
if (0 === o) e.nodes && e.each(function(e) {
e[wC] || t.walkSync(e);
});
else {
var i = this.listeners[o];
if (i && this.visitSync(i, e.toProxy())) return;
}
}
}, t.warnings = function() {
return this.sync().warnings();
}, L_(e, [
{
key: "content",
get: function() {
return this.stringify().content;
}
},
{
key: "css",
get: function() {
return this.stringify().css;
}
},
{
key: "map",
get: function() {
return this.stringify().map;
}
},
{
key: "messages",
get: function() {
return this.sync().messages;
}
},
{
key: "opts",
get: function() {
return this.result.opts;
}
},
{
key: "processor",
get: function() {
return this.result.processor;
}
},
{
key: "root",
get: function() {
return this.sync().root;
}
},
{
key: Symbol.toStringTag,
get: function() {
return "LazyResult";
}
}
]), e;
}();
FC.registerPostcss = function(e) {
jC = e;
};
var $C = FC;
FC.default = FC, RC.registerLazyResult(FC), CC.registerLazyResult(FC);
var BC = QS;
var zC = lS;
var VC = bk;
var UC = bC;
var qC = kk;
var WC = function() {
function e(e, t, r) {
var n;
t = t.toString(), this.stringified = !1, this._processor = e, this._css = t, this._opts = r, this._map = void 0;
var o = zC;
this.result = new qC(this._processor, n, this._opts), this.result.css = t;
var i = this;
Object.defineProperty(this.result, "root", { get: function() {
return i.root;
} });
var s = new BC(o, n, this._opts, t);
if (s.isMap()) {
var a = s.generate();
var l = a[0];
var c = a[1];
l && (this.result.css = l), c && (this.result.map = c);
} else s.clearAnnotation(), this.result.css = s.css;
}
var t = e.prototype;
return t.async = function() {
return this.error ? Promise.reject(this.error) : Promise.resolve(this.result);
}, t.catch = function(e) {
return this.async().catch(e);
}, t.finally = function(e) {
return this.async().then(e, e);
}, t.sync = function() {
if (this.error) throw this.error;
return this.result;
}, t.then = function(e, t) {
return "from" in this._opts || VC("Without `from` option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to `undefined` to prevent this warning."), this.async().then(e, t);
}, t.toString = function() {
return this._css;
}, t.warnings = function() {
return [];
}, L_(e, [
{
key: "content",
get: function() {
return this.result.css;
}
},
{
key: "css",
get: function() {
return this.result.css;
}
},
{
key: "map",
get: function() {
return this.result.map;
}
},
{
key: "messages",
get: function() {
return [];
}
},
{
key: "opts",
get: function() {
return this.result.opts;
}
},
{
key: "processor",
get: function() {
return this.result.processor;
}
},
{
key: "root",
get: function() {
if (this._root) return this._root;
var e;
var t = UC;
try {
e = t(this._css, this._opts);
} catch (e) {
this.error = e;
}
if (this.error) throw this.error;
return this._root = e, e;
}
},
{
key: Symbol.toStringTag,
get: function() {
return "NoWorkResult";
}
}
]), e;
}();
var HC = WC;
WC.default = WC;
var GC = HC;
var KC = $C;
var YC = vk;
var ZC = tC;
var XC = function() {
function e(e) {
void 0 === e && (e = []), this.version = "8.4.38", this.plugins = this.normalize(e);
}
var t = e.prototype;
return t.normalize = function(e) {
for (var t, r = [], n = W_(e); !(t = n()).done;) {
var o = t.value;
if (!0 === o.postcss ? o = o() : o.postcss && (o = o.postcss), "object" === (void 0 === o ? "undefined" : V_(o)) && Array.isArray(o.plugins)) r = r.concat(o.plugins);
else if ("object" === (void 0 === o ? "undefined" : V_(o)) && o.postcssPlugin) r.push(o);
else if ("function" == typeof o) r.push(o);
else {
if ("object" !== (void 0 === o ? "undefined" : V_(o)) || !o.parse && !o.stringify) throw new Error(o + " is not a PostCSS plugin");
throw new Error("PostCSS syntaxes cannot be used as plugins. Instead, please use one of the syntax/parser/stringifier options as outlined in your PostCSS runner documentation.");
}
}
return r;
}, t.process = function(e, t) {
return void 0 === t && (t = {}), this.plugins.length || t.parser || t.stringifier || t.syntax ? new KC(this, e, t) : new GC(this, e, t);
}, t.use = function(e) {
return this.plugins = this.plugins.concat(this.normalize([e])), this;
}, e;
}();
var JC = XC;
XC.default = XC, ZC.registerProcessor(XC), YC.registerProcessor(XC);
var QC = yS;
var eO = OS;
var tO = tk;
var rO = Zk;
var nO = zS;
var oO = tC;
var iO = aC;
function sO(e, t) {
if (Array.isArray(e)) return e.map(function(e) {
return sO(e);
});
var r = e.inputs;
var n = B_(e, ["inputs"]);
if (r) {
t = [];
for (var o, i = W_(r); !(o = i()).done;) {
var s = D_({}, o.value, { __proto__: nO.prototype });
s.map && (s.map = D_({}, s.map, { __proto__: eO.prototype })), t.push(s);
}
}
if (n.nodes && (n.nodes = e.nodes.map(function(e) {
return sO(e, t);
})), n.source) {
var a = n.source;
var l = a.inputId;
n.source = B_(a, ["inputId"]), null != l && (n.source.input = t[l]);
}
if ("root" === n.type) return new oO(n);
if ("decl" === n.type) return new QC(n);
if ("rule" === n.type) return new iO(n);
if ("comment" === n.type) return new tO(n);
if ("atrule" === n.type) return new rO(n);
throw new Error("Unknown node type: " + e.type);
}
var aO = sO;
sO.default = sO;
var lO = tS;
var cO = yS;
var uO = $C;
var pO = fk;
var dO = JC;
var fO = lS;
var hO = aO;
var mO = vk;
var gO = _k;
var vO = tk;
var yO = Zk;
var bO = kk;
var wO = zS;
var _O = bC;
var xO = nC;
var SO = aC;
var kO = tC;
var CO = gS;
function OO() {
for (var e = arguments.length, t = new Array(e), r = 0; r < e; r++) t[r] = arguments[r];
return 1 === t.length && Array.isArray(t[0]) && (t = t[0]), new dO(t);
}
OO.plugin = function(e, t) {
var r;
var n = !1;
function o() {
for (var r = arguments.length, o = new Array(r), i = 0; i < r; i++) o[i] = arguments[i];
console && console.warn && !n && (n = !0, console.warn(e + ": postcss.plugin was deprecated. Migration guide:\nhttps://evilmartians.com/chronicles/postcss-8-plugin-migration"), {}.LANG && {}.LANG.startsWith("cn") && console.warn(e + ": 里面 postcss.plugin 被弃用. 迁移指南:\nhttps://www.w3ctech.com/topic/2226"));
var s = t.apply(void 0, [].concat(o));
return s.postcssPlugin = e, s.postcssVersion = new dO().version, s;
}
return Object.defineProperty(o, "postcss", { get: function() {
return r || (r = o()), r;
} }), o.process = function(e, t, r) {
return OO([o(r)]).process(e, t);
}, o;
}, OO.stringify = fO, OO.parse = _O, OO.fromJSON = hO, OO.list = xO, OO.comment = function(e) {
return new vO(e);
}, OO.atRule = function(e) {
return new yO(e);
}, OO.decl = function(e) {
return new cO(e);
}, OO.rule = function(e) {
return new SO(e);
}, OO.root = function(e) {
return new kO(e);
}, OO.document = function(e) {
return new mO(e);
}, OO.CssSyntaxError = lO, OO.Declaration = cO, OO.Container = pO, OO.Processor = dO, OO.Document = mO, OO.Comment = vO, OO.Warning = gO, OO.AtRule = yO, OO.Result = bO, OO.Input = wO, OO.Rule = SO, OO.Root = kO, OO.Node = CO, uO.registerPostcss(OO), OO.default = OO;
var EO = Object.defineProperty;
var TO = function(e, t, r) {
return function(e, t, r) {
return t in e ? EO(e, t, {
enumerable: !0,
configurable: !0,
writable: !0,
value: r
}) : e[t] = r;
}(e, "symbol" !== (void 0 === t ? "undefined" : V_(t)) ? t + "" : t, r);
};
function RO(e) {
if (e.__esModule) return e;
var t = e.default;
if ("function" == typeof t) {
var r = function e() {
return $_(this, e) ? Reflect.construct(t, arguments, this.constructor) : t.apply(this, arguments);
};
r.prototype = t.prototype;
} else r = {};
return Object.defineProperty(r, "__esModule", { value: !0 }), Object.keys(e).forEach(function(t) {
var n = Object.getOwnPropertyDescriptor(e, t);
Object.defineProperty(r, t, n.get ? n : {
enumerable: !0,
get: function() {
return e[t];
}
});
}), r;
}
var IO = { exports: {} };
var MO = String;
var AO = function() {
return {
isColorSupported: !1,
reset: MO,
bold: MO,
dim: MO,
italic: MO,
underline: MO,
inverse: MO,
hidden: MO,
strikethrough: MO,
black: MO,
red: MO,
green: MO,
yellow: MO,
blue: MO,
magenta: MO,
cyan: MO,
white: MO,
gray: MO,
bgBlack: MO,
bgRed: MO,
bgGreen: MO,
bgYellow: MO,
bgBlue: MO,
bgMagenta: MO,
bgCyan: MO,
bgWhite: MO
};
};
IO.exports = AO(), IO.exports.createColors = AO;
var PO = IO.exports;
var NO = RO(Object.freeze(Object.defineProperty({
__proto__: null,
default: {}
}, Symbol.toStringTag, { value: "Module" })));
var LO = PO;
var DO = NO;
var jO = function(e) {
function t(r, n, o, i, s, a) {
var l;
return (l = e.call(this, r) || this).name = "CssSyntaxError", l.reason = r, s && (l.file = s), i && (l.source = i), a && (l.plugin = a), void 0 !== n && void 0 !== o && ("number" == typeof n ? (l.line = n, l.column = o) : (l.line = n.line, l.column = n.column, l.endLine = o.line, l.endColumn = o.column)), l.setMessage(), Error.captureStackTrace && Error.captureStackTrace(l, t), l;
}
F_(t, e);
var r = t.prototype;
return r.setMessage = function() {
this.message = this.plugin ? this.plugin + ": " : "", this.message += this.file ? this.file : "<css input>", void 0 !== this.line && (this.message += ":" + this.line + ":" + this.column), this.message += ": " + this.reason;
}, r.showSourceCode = function(e) {
var t = this;
if (!this.source) return "";
var r = this.source;
null == e && (e = LO.isColorSupported), DO && e && (r = DO(r));
var n;
var o;
var i = r.split(/\r?\n/);
var s = Math.max(this.line - 3, 0);
var a = Math.min(this.line + 2, i.length);
var l = String(a).length;
if (e) {
var c = LO.createColors(!0);
var u = c.bold;
var p = c.gray;
var d = c.red;
n = function(e) {
return u(d(e));
}, o = function(e) {
return p(e);
};
} else n = o = function(e) {
return e;
};
return i.slice(s, a).map(function(e, r) {
var i = s + 1 + r;
var a = " " + (" " + i).slice(-l) + " | ";
if (i === t.line) {
var c = o(a.replace(/\d/g, " ")) + e.slice(0, t.column - 1).replace(/[^\t]/g, " ");
return n(">") + o(a) + e + "\n " + c + n("^");
}
return " " + o(a) + e;
}).join("\n");
}, r.toString = function() {
var e = this.showSourceCode();
return e && (e = "\n\n" + e + "\n"), this.name + ": " + this.message + e;
}, t;
}(U_(Error));
var FO = jO;
jO.default = jO;
var $O = {};
$O.isClean = Symbol("isClean"), $O.my = Symbol("my");
var BO = {
after: "\n",
beforeClose: "\n",
beforeComment: "\n",
beforeDecl: "\n",
beforeOpen: " ",
beforeRule: "\n",
colon: ": ",
commentLeft: " ",
commentRight: " ",
emptyBody: "",
indent: " ",
semicolon: !1
};
var zO = function() {
function e(e) {
this.builder = e;
}
var t = e.prototype;
return t.atrule = function(e, t) {
var r = "@" + e.name;
var n = e.params ? this.rawValue(e, "params") : "";
if (void 0 !== e.raws.afterName ? r += e.raws.afterName : n && (r += " "), e.nodes) this.block(e, r + n);
else {
var o = (e.raws.between || "") + (t ? ";" : "");
this.builder(r + n + o, e);
}
}, t.beforeAfter = function(e, t) {
var r = "decl" === e.type ? this.raw(e, null, "beforeDecl") : "comment" === e.type ? this.raw(e, null, "beforeComment") : "before" === t ? this.raw(e, null, "beforeRule") : this.raw(e, null, "beforeClose");
for (var n = e.parent, o = 0; n && "root" !== n.type;) o += 1, n = n.parent;
if (r.includes("\n")) {
var i = this.raw(e, null, "indent");
if (i.length) for (var s = 0; s < o; s++) r += i;
}
return r;
}, t.block = function(e, t) {
var r;
var n = this.raw(e, "between", "beforeOpen");
this.builder(t + n + "{", e, "start"), e.nodes && e.nodes.length ? (this.body(e), r = this.raw(e, "after")) : r = this.raw(e, "after", "emptyBody"), r && this.builder(r), this.builder("}", e, "end");
}, t.body = function(e) {
for (var t = e.nodes.length - 1; t > 0 && "comment" === e.nodes[t].type;) t -= 1;
for (var r = this.raw(e, "semicolon"), n = 0; n < e.nodes.length; n++) {
var o = e.nodes[n];
var i = this.raw(o, "before");
i && this.builder(i), this.stringify(o, t !== n || r);
}
}, t.comment = function(e) {
var t = this.raw(e, "left", "commentLeft");
var r = this.raw(e, "right", "commentRight");
this.builder("/*" + t + e.text + r + "*/", e);
}, t.decl = function(e, t) {
var r = this.raw(e, "between", "colon");
var n = e.prop + r + this.rawValue(e, "value");
e.important && (n += e.raws.important || " !important"), t && (n += ";"), this.builder(n, e);
}, t.document = function(e) {
this.body(e);
}, t.raw = function(e, t, r) {
var n;
if (r || (r = t), t && void 0 !== (n = e.raws[t])) return n;
var o = e.parent;
if ("before" === r) {
if (!o || "root" === o.type && o.first === e) return "";
if (o && "document" === o.type) return "";
}
if (!o) return BO[r];
var i = e.root();
if (i.rawCache || (i.rawCache = {}), void 0 !== i.rawCache[r]) return i.rawCache[r];
if ("before" === r || "after" === r) return this.beforeAfter(e, r);
var s;
var a = "raw" + ((s = r)[0].toUpperCase() + s.slice(1));
return this[a] ? n = this[a](i, e) : i.walk(function(e) {
if (void 0 !== (n = e.raws[t])) return !1;
}), void 0 === n && (n = BO[r]), i.rawCache[r] = n, n;
}, t.rawBeforeClose = function(e) {
var t;
return e.walk(function(e) {
if (e.nodes && e.nodes.length > 0 && void 0 !== e.raws.after) return (t = e.raws.after).includes("\n") && (t = t.replace(/[^\n]+$/, "")), !1;
}), t && (t = t.replace(/\S/g, "")), t;
}, t.rawBeforeComment = function(e, t) {
var r;
return e.walkComments(function(e) {
if (void 0 !== e.raws.before) return (r = e.raws.before).includes("\n") && (r = r.replace(/[^\n]+$/, "")), !1;
}), void 0 === r ? r = this.raw(t, null, "beforeDecl") : r && (r = r.replace(/\S/g, "")), r;
}, t.rawBeforeDecl = function(e, t) {
var r;
return e.walkDecls(function(e) {
if (void 0 !== e.raws.before) return (r = e.raws.before).includes("\n") && (r = r.replace(/[^\n]+$/, "")), !1;
}), void 0 === r ? r = this.raw(t, null, "beforeRule") : r && (r = r.replace(/\S/g, "")), r;
}, t.rawBeforeOpen = function(e) {
var t;
return e.walk(function(e) {
if ("decl" !== e.type && void 0 !== (t = e.raws.between)) return !1;
}), t;
}, t.rawBeforeRule = function(e) {
var t;
return e.walk(function(r) {
if (r.nodes && (r.parent !== e || e.first !== r) && void 0 !== r.raws.before) return (t = r.raws.before).includes("\n") && (t = t.replace(/[^\n]+$/, "")), !1;
}), t && (t = t.replace(/\S/g, "")), t;
}, t.rawColon = function(e) {
var t;
return e.walkDecls(function(e) {
if (void 0 !== e.raws.between) return t = e.raws.between.replace(/[^\s:]/g, ""), !1;
}), t;
}, t.rawEmptyBody = function(e) {
var t;
return e.walk(function(e) {
if (e.nodes && 0 === e.nodes.length && void 0 !== (t = e.raws.after)) return !1;
}), t;
}, t.rawIndent = function(e) {
return e.raws.indent ? e.raws.indent : (e.walk(function(r) {
var n = r.parent;
if (n && n !== e && n.parent && n.parent === e && void 0 !== r.raws.before) {
var o = r.raws.before.split("\n");
return t = (t = o[o.length - 1]).replace(/\S/g, ""), !1;
}
}), t);
var t;
}, t.rawSemicolon = function(e) {
var t;
return e.walk(function(e) {
if (e.nodes && e.nodes.length && "decl" === e.last.type && void 0 !== (t = e.raws.semicolon)) return !1;
}), t;
}, t.rawValue = function(e, t) {
var r = e[t];
var n = e.raws[t];
return n && n.value === r ? n.raw : r;
}, t.root = function(e) {
this.body(e), e.raws.after && this.builder(e.raws.after);
}, t.rule = function(e) {
this.block(e, this.rawValue(e, "selector")), e.raws.ownSemicolon && this.builder(e.raws.ownSemicolon, e, "end");
}, t.stringify = function(e, t) {
if (!this[e.type]) throw new Error("Unknown AST node type " + e.type + ". Maybe you need to change PostCSS stringifier.");
this[e.type](e, t);
}, e;
}();
var VO = zO;
zO.default = zO;
var UO = VO;
function qO(e, t) {
new UO(t).stringify(e);
}
var WO = qO;
qO.default = qO;
var HO = $O.isClean;
var GO = $O.my;
var KO = FO;
var YO = VO;
var ZO = WO;
function XO(e, t) {
var r = new e.constructor();
for (var n in e) if (Object.prototype.hasOwnProperty.call(e, n) && "proxyCache" !== n) {
var o = e[n];
var i = void 0 === o ? "undefined" : V_(o);
"parent" === n && "object" === i ? t && (r[n] = t) : "source" === n ? r[n] = o : Array.isArray(o) ? r[n] = o.map(function(e) {
return XO(e, r);
}) : ("object" === i && null !== o && (o = XO(o)), r[n] = o);
}
return r;
}
var JO = function() {
function e(e) {
for (var t in void 0 === e && (e = {}), this.raws = {}, this[HO] = !1, this[GO] = !0, e) if ("nodes" === t) {
this.nodes = [];
for (var r, n = W_(e[t]); !(r = n()).done;) {
var o = r.value;
"function" == typeof o.clone ? this.append(o.clone()) : this.append(o);
}
} else this[t] = e[t];
}
var t = e.prototype;
return t.addToError = function(e) {
if (e.postcssNode = this, e.stack && this.source && /\n\s{4}at /.test(e.stack)) {
var t = this.source;
e.stack = e.stack.replace(/\n\s{4}at /, "$&" + t.input.from + ":" + t.start.line + ":" + t.start.column + "$&");
}
return e;
}, t.after = function(e) {
return this.parent.insertAfter(this, e), this;
}, t.assign = function(e) {
for (var t in void 0 === e && (e = {}), e) this[t] = e[t];
return this;
}, t.before = function(e) {
return this.parent.insertBefore(this, e), this;
}, t.cleanRaws = function(e) {
delete this.raws.before, delete this.raws.after, e || delete this.raws.between;
}, t.clone = function(e) {
void 0 === e && (e = {});
var t = XO(this);
for (var r in e) t[r] = e[r];
return t;
}, t.cloneAfter = function(e) {
void 0 === e && (e = {});
var t = this.clone(e);
return this.parent.insertAfter(this, t), t;
}, t.cloneBefore = function(e) {
void 0 === e && (e = {});
var t = this.clone(e);
return this.parent.insertBefore(this, t), t;
}, t.error = function(e, t) {
if (void 0 === t && (t = {}), this.source) {
var r = this.rangeBy(t);
var n = r.end;
var o = r.start;
return this.source.input.error(e, {
column: o.column,
line: o.line
}, {
column: n.column,
line: n.line
}, t);
}
return new KO(e);
}, t.getProxyProcessor = function() {
return {
get: function(e, t) {
return "proxyOf" === t ? e : "root" === t ? function() {
return e.root().toProxy();
} : e[t];
},
set: function(e, t, r) {
return e[t] === r || (e[t] = r, "prop" !== t && "value" !== t && "name" !== t && "params" !== t && "important" !== t && "text" !== t || e.markDirty()), !0;
}
};
}, t.markDirty = function() {
if (this[HO]) {
this[HO] = !1;
for (var e = this; e = e.parent;) e[HO] = !1;
}
}, t.next = function() {
if (this.parent) {
var e = this.parent.index(this);
return this.parent.nodes[e + 1];
}
}, t.positionBy = function(e, t) {
var r = this.source.start;
if (e.index) r = this.positionInside(e.index, t);
else if (e.word) {
var n = (t = this.toString()).indexOf(e.word);
-1 !== n && (r = this.positionInside(n, t));
}
return r;
}, t.positionInside = function(e, t) {
for (var r = t || this.toString(), n = this.source.start.column, o = this.source.start.line, i = 0; i < e; i++) "\n" === r[i] ? (n = 1, o += 1) : n += 1;
return {
column: n,
line: o
};
}, t.prev = function() {
if (this.parent) {
var e = this.parent.index(this);
return this.parent.nodes[e - 1];
}
}, t.rangeBy = function(e) {
var t = {
column: this.source.start.column,
line: this.source.start.line
};
var r = this.source.end ? {
column: this.source.end.column + 1,
line: this.source.end.line
} : {
column: t.column + 1,
line: t.line
};
if (e.word) {
var n = this.toString();
var o = n.indexOf(e.word);
-1 !== o && (t = this.positionInside(o, n), r = this.positionInside(o + e.word.length, n));
} else e.start ? t = {
column: e.start.column,
line: e.start.line
} : e.index && (t = this.positionInside(e.index)), e.end ? r = {
column: e.end.column,
line: e.end.line
} : "number" == typeof e.endIndex ? r = this.positionInside(e.endIndex) : e.index && (r = this.positionInside(e.index + 1));
return (r.line < t.line || r.line === t.line && r.column <= t.column) && (r = {
column: t.column + 1,
line: t.line
}), {
end: r,
start: t
};
}, t.raw = function(e, t) {
return new YO().raw(this, e, t);
}, t.remove = function() {
return this.parent && this.parent.removeChild(this), this.parent = void 0, this;
}, t.replaceWith = function() {
for (var e = arguments.length, t = new Array(e), r = 0; r < e; r++) t[r] = arguments[r];
if (this.parent) {
for (var n, o = this, i = !1, s = W_(t); !(n = s()).done;) {
var a = n.value;
a === this ? i = !0 : i ? (this.parent.insertAfter(o, a), o = a) : this.parent.insertBefore(o, a);
}
i || this.remove();
}
return this;
}, t.root = function() {
for (var e = this; e.parent && "document" !== e.parent.type;) e = e.parent;
return e;
}, t.toJSON = function(e, t) {
var r = {};
var n = null == t;
t = t || /* @__PURE__ */ new Map();
var o = 0;
for (var i in this) if (Object.prototype.hasOwnProperty.call(this, i) && "parent" !== i && "proxyCache" !== i) {
var s = this[i];
if (Array.isArray(s)) r[i] = s.map(function(e) {
return "object" === (void 0 === e ? "undefined" : V_(e)) && e.toJSON ? e.toJSON(null, t) : e;
});
else if ("object" === (void 0 === s ? "undefined" : V_(s)) && s.toJSON) r[i] = s.toJSON(null, t);
else if ("source" === i) {
var a = t.get(s.input);
null == a && (a = o, t.set(s.input, o), o++), r[i] = {
end: s.end,
inputId: a,
start: s.start
};
} else r[i] = s;
}
return n && (r.inputs = [].concat(t.keys()).map(function(e) {
return e.toJSON();
})), r;
}, t.toProxy = function() {
return this.proxyCache || (this.proxyCache = new Proxy(this, this.getProxyProcessor())), this.proxyCache;
}, t.toString = function(e) {
void 0 === e && (e = ZO), e.stringify && (e = e.stringify);
var t = "";
return e(this, function(e) {
t += e;
}), t;
}, t.warn = function(e, t, r) {
var n = { node: this };
for (var o in r) n[o] = r[o];
return e.warn(t, n);
}, L_(e, [{
key: "proxyOf",
get: function() {
return this;
}
}]), e;
}();
var QO = JO;
JO.default = JO;
var eE = function(e) {
function t(t) {
var r;
return t && void 0 !== t.value && "string" != typeof t.value && (t = D_({}, t, { value: String(t.value) })), (r = e.call(this, t) || this).type = "decl", r;
}
return F_(t, e), L_(t, [{
key: "variable",
get: function() {
return this.prop.startsWith("--") || "$" === this.prop[0];
}
}]), t;
}(QO);
var tE = eE;
eE.default = eE;
var rE = NO.SourceMapConsumer;
var nE = NO.SourceMapGenerator;
var oE = NO.existsSync;
var iE = NO.readFileSync;
var sE = NO.dirname;
var aE = NO.join;
var lE = function() {
function e(e, t) {
if (!1 !== t.map) {
this.loadAnnotation(e), this.inline = this.startWith(this.annotation, "data:");
var r = t.map ? t.map.prev : void 0;
var n = this.loadMap(t.from, r);
!this.mapFile && t.from && (this.mapFile = t.from), this.mapFile && (this.root = sE(this.mapFile)), n && (this.text = n);
}
}
var t = e.prototype;
return t.consumer = function() {
return this.consumerCache || (this.consumerCache = new rE(this.text)), this.consumerCache;
}, t.decodeInline = function(e) {
var t;
if (/^data:application\/json;charset=utf-?8,/.test(e) || /^data:application\/json,/.test(e)) return decodeURIComponent(e.substr(RegExp.lastMatch.length));
if (/^data:application\/json;charset=utf-?8;base64,/.test(e) || /^data:application\/json;base64,/.test(e)) return t = e.substr(RegExp.lastMatch.length), Buffer ? Buffer.from(t, "base64").toString() : window.atob(t);
var r = e.match(/data:application\/json;([^,]+),/)[1];
throw new Error("Unsupported source map encoding " + r);
}, t.getAnnotationURL = function(e) {
return e.replace(/^\/\*\s*# sourceMappingURL=/, "").trim();
}, t.isMap = function(e) {
return "object" === (void 0 === e ? "undefined" : V_(e)) && ("string" == typeof e.mappings || "string" == typeof e._mappings || Array.isArray(e.sections));
}, t.loadAnnotation = function(e) {
var t = e.match(/\/\*\s*# sourceMappingURL=/gm);
if (t) {
var r = e.lastIndexOf(t.pop());
var n = e.indexOf("*/", r);
r > -1 && n > -1 && (this.annotation = this.getAnnotationURL(e.substring(r, n)));
}
}, t.loadFile = function(e) {
if (this.root = sE(e), oE(e)) return this.mapFile = e, iE(e, "utf-8").toString().trim();
}, t.loadMap = function(e, t) {
if (!1 === t) return !1;
if (t) {
if ("string" == typeof t) return t;
if ("function" != typeof t) {
if ($_(t, rE)) return nE.fromSourceMap(t).toString();
if ($_(t, nE)) return t.toString();
if (this.isMap(t)) return JSON.stringify(t);
throw new Error("Unsupported previous source map format: " + t.toString());
}
var r = t(e);
if (r) {
var n = this.loadFile(r);
if (!n) throw new Error("Unable to load previous source map: " + r.toString());
return n;
}
} else {
if (this.inline) return this.decodeInline(this.annotation);
if (this.annotation) {
var o = this.annotation;
return e && (o = aE(sE(e), o)), this.loadFile(o);
}
}
}, t.startWith = function(e, t) {
return !!e && e.substr(0, t.length) === t;
}, t.withContent = function() {
return !!(this.consumer().sourcesContent && this.consumer().sourcesContent.length > 0);
}, e;
}();
var cE = lE;
lE.default = lE;
var uE = NO.SourceMapConsumer;
var pE = NO.SourceMapGenerator;
var dE = NO.fileURLToPath;
var fE = NO.pathToFileURL;
var hE = NO.isAbsolute;
var mE = NO.resolve;
var gE = function(e) {
void 0 === e && (e = 21);
for (var t = "", r = e; r--;) t += "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"[64 * Math.random() | 0];
return t;
};
var vE = NO;
var yE = FO;
var bE = cE;
var wE = Symbol("fromOffsetCache");
var _E = Boolean(uE && pE);
var xE = Boolean(mE && hE);
var SE = function() {
function e(e, t) {
if (void 0 === t && (t = {}), null == e || "object" === (void 0 === e ? "undefined" : V_(e)) && !e.toString) throw new Error("PostCSS received " + e + " instead of CSS string");
if (this.css = e.toString(), "" === this.css[0] || "" === this.css[0] ? (this.hasBOM = !0, this.css = this.css.slice(1)) : this.hasBOM = !1, t.from && (!xE || /^\w+:\/\//.test(t.from) || hE(t.from) ? this.file = t.from : this.file = mE(t.from)), xE && _E) {
var r = new bE(this.css, t);
if (r.text) {
this.map = r;
var n = r.consumer().file;
!this.file && n && (this.file = this.mapResolve(n));
}
}
this.file || (this.id = "<input css " + gE(6) + ">"), this.map && (this.map.file = this.from);
}
var t = e.prototype;
return t.error = function(e, t, r, n) {
var o;
var i;
var s;
if (void 0 === n && (n = {}), t && "object" === (void 0 === t ? "undefined" : V_(t))) {
var a = t;
var l = r;
if ("number" == typeof a.offset) {
var c = this.fromOffset(a.offset);
t = c.line, r = c.col;
} else t = a.line, r = a.column;
if ("number" == typeof l.offset) {
var u = this.fromOffset(l.offset);
i = u.line, s = u.col;
} else i = l.line, s = l.column;
} else if (!r) {
var p = this.fromOffset(t);
t = p.line, r = p.col;
}
var d = this.origin(t, r, i, s);
return (o = d ? new yE(e, void 0 === d.endLine ? d.line : {
column: d.column,
line: d.line
}, void 0 === d.endLine ? d.column : {
column: d.endColumn,
line: d.endLine
}, d.source, d.file, n.plugin) : new yE(e, void 0 === i ? t : {
column: r,
line: t
}, void 0 === i ? r : {
column: s,
line: i
}, this.css, this.file, n.plugin)).input = {
column: r,
endColumn: s,
endLine: i,
line: t,
source: this.css
}, this.file && (fE && (o.input.url = fE(this.file).toString()), o.input.file = this.file), o;
}, t.fromOffset = function(e) {
var t;
if (this[wE]) t = this[wE];
else {
var r = this.css.split("\n");
t = new Array(r.length);
for (var n = 0, o = 0, i = r.length; o < i; o++) t[o] = n, n += r[o].length + 1;
this[wE] = t;
}
var s = 0;
if (e >= t[t.length - 1]) s = t.length - 1;
else for (var a, l = t.length - 2; s < l;) if (e < t[a = s + (l - s >> 1)]) l = a - 1;
else {
if (!(e >= t[a + 1])) {
s = a;
break;
}
s = a + 1;
}
return {
col: e - t[s] + 1,
line: s + 1
};
}, t.mapResolve = function(e) {
return /^\w+:\/\//.test(e) ? e : mE(this.map.consumer().sourceRoot || this.map.root || ".", e);
}, t.origin = function(e, t, r, n) {
if (!this.map) return !1;
var o;
var i;
var s = this.map.consumer();
var a = s.originalPositionFor({
column: t,
line: e
});
if (!a.source) return !1;
"number" == typeof r && (o = s.originalPositionFor({
column: n,
line: r
})), i = hE(a.source) ? fE(a.source) : new URL(a.source, this.map.consumer().sourceRoot || fE(this.map.mapFile));
var l = {
column: a.column,
endColumn: o && o.column,
endLine: o && o.line,
line: a.line,
url: i.toString()
};
if ("file:" === i.protocol) {
if (!dE) throw new Error("file: protocol is not available in this PostCSS build");
l.file = dE(i);
}
var c = s.sourceContentFor(a.source);
return c && (l.source = c), l;
}, t.toJSON = function() {
for (var e = {}, t = 0, r = [
"hasBOM",
"css",
"file",
"id"
]; t < r.length; t++) {
var n = r[t];
null != this[n] && (e[n] = this[n]);
}
return this.map && (e.map = D_({}, this.map), e.map.consumerCache && (e.map.consumerCache = void 0)), e;
}, L_(e, [{
key: "from",
get: function() {
return this.file || this.id;
}
}]), e;
}();
var kE = SE;
SE.default = SE, vE && vE.registerInput && vE.registerInput(SE);
var CE = NO.SourceMapConsumer;
var OE = NO.SourceMapGenerator;
var EE = NO.dirname;
var TE = NO.relative;
var RE = NO.resolve;
var IE = NO.sep;
var ME = NO.pathToFileURL;
var AE = kE;
var PE = Boolean(CE && OE);
var NE = Boolean(EE && RE && TE && IE);
var DE = function() {
function e(e, t, r, n) {
this.stringify = e, this.mapOpts = r.map || {}, this.root = t, this.opts = r, this.css = n, this.originalCSS = n, this.usesFileUrls = !this.mapOpts.from && this.mapOpts.absolute, this.memoizedFileURLs = /* @__PURE__ */ new Map(), this.memoizedPaths = /* @__PURE__ */ new Map(), this.memoizedURLs = /* @__PURE__ */ new Map();
}
var t = e.prototype;
return t.addAnnotation = function() {
var e = this.isInline() ? "data:application/json;base64," + this.toBase64(this.map.toString()) : "string" == typeof this.mapOpts.annotation ? this.mapOpts.annotation : "function" == typeof this.mapOpts.annotation ? this.mapOpts.annotation(this.opts.to, this.root) : this.outputFile() + ".map";
var t = "\n";
this.css.includes("\r\n") && (t = "\r\n"), this.css += t + "/*# sourceMappingURL=" + e + " */";
}, t.applyPrevMaps = function() {
for (var e, t = W_(this.previous()); !(e = t()).done;) {
var r = e.value;
var n = this.toUrl(this.path(r.file));
var o = r.root || EE(r.file);
var i = void 0;
!1 === this.mapOpts.sourcesContent ? (i = new CE(r.text)).sourcesContent && (i.sourcesContent = null) : i = r.consumer(), this.map.applySourceMap(i, n, this.toUrl(this.path(o)));
}
}, t.clearAnnotation = function() {
if (!1 !== this.mapOpts.annotation) if (this.root) for (var e, t = this.root.nodes.length - 1; t >= 0; t--) "comment" === (e = this.root.nodes[t]).type && 0 === e.text.indexOf("# sourceMappingURL=") && this.root.removeChild(t);
else this.css && (this.css = this.css.replace(/\n*?\/\*#[\S\s]*?\*\/$/gm, ""));
}, t.generate = function() {
if (this.clearAnnotation(), NE && PE && this.isMap()) return this.generateMap();
var e = "";
return this.stringify(this.root, function(t) {
e += t;
}), [e];
}, t.generateMap = function() {
if (this.root) this.generateString();
else if (1 === this.previous().length) {
var e = this.previous()[0].consumer();
e.file = this.outputFile(), this.map = OE.fromSourceMap(e, { ignoreInvalidMapping: !0 });
} else this.map = new OE({
file: this.outputFile(),
ignoreInvalidMapping: !0
}), this.map.addMapping({
generated: {
column: 0,
line: 1
},
original: {
column: 0,
line: 1
},
source: this.opts.from ? this.toUrl(this.path(this.opts.from)) : "<no source>"
});
return this.isSourcesContent() && this.setSourcesContent(), this.root && this.previous().length > 0 && this.applyPrevMaps(), this.isAnnotation() && this.addAnnotation(), this.isInline() ? [this.css] : [this.css, this.map];
}, t.generateString = function() {
var e = this;
this.css = "", this.map = new OE({
file: this.outputFile(),
ignoreInvalidMapping: !0
});
var t;
var r;
var n = 1;
var o = 1;
var i = "<no source>";
var s = {
generated: {
column: 0,
line: 0
},
original: {
column: 0,
line: 0
},
source: ""
};
this.stringify(this.root, function(a, l, c) {
if (e.css += a, l && "end" !== c && (s.generated.line = n, s.generated.column = o - 1, l.source && l.source.start ? (s.source = e.sourcePath(l), s.original.line = l.source.start.line, s.original.column = l.source.start.column - 1, e.map.addMapping(s)) : (s.source = i, s.original.line = 1, s.original.column = 0, e.map.addMapping(s))), (t = a.match(/\n/g)) ? (n += t.length, r = a.lastIndexOf("\n"), o = a.length - r) : o += a.length, l && "start" !== c) {
var u = l.parent || { raws: {} };
("decl" === l.type || "atrule" === l.type && !l.nodes) && l === u.last && !u.raws.semicolon || (l.source && l.source.end ? (s.source = e.sourcePath(l), s.original.line = l.source.end.line, s.original.column = l.source.end.column - 1, s.generated.line = n, s.generated.column = o - 2, e.map.addMapping(s)) : (s.source = i, s.original.line = 1, s.original.column = 0, s.generated.line = n, s.generated.column = o - 1, e.map.addMapping(s)));
}
});
}, t.isAnnotation = function() {
return !!this.isInline() || (void 0 !== this.mapOpts.annotation ? this.mapOpts.annotation : !this.previous().length || this.previous().some(function(e) {
return e.annotation;
}));
}, t.isInline = function() {
if (void 0 !== this.mapOpts.inline) return this.mapOpts.inline;
var e = this.mapOpts.annotation;
return (void 0 === e || !0 === e) && (!this.previous().length || this.previous().some(function(e) {
return e.inline;
}));
}, t.isMap = function() {
return void 0 !== this.opts.map ? !!this.opts.map : this.previous().length > 0;
}, t.isSourcesContent = function() {
return void 0 !== this.mapOpts.sourcesContent ? this.mapOpts.sourcesContent : !this.previous().length || this.previous().some(function(e) {
return e.withContent();
});
}, t.outputFile = function() {
return this.opts.to ? this.path(this.opts.to) : this.opts.from ? this.path(this.opts.from) : "to.css";
}, t.path = function(e) {
if (this.mapOpts.absolute) return e;
if (60 === e.charCodeAt(0)) return e;
if (/^\w+:\/\//.test(e)) return e;
var t = this.memoizedPaths.get(e);
if (t) return t;
var r = this.opts.to ? EE(this.opts.to) : ".";
"string" == typeof this.mapOpts.annotation && (r = EE(RE(r, this.mapOpts.annotation)));
var n = TE(r, e);
return this.memoizedPaths.set(e, n), n;
}, t.previous = function() {
var e = this;
if (!this.previousMaps) if (this.previousMaps = [], this.root) this.root.walk(function(t) {
if (t.source && t.source.input.map) {
var r = t.source.input.map;
e.previousMaps.includes(r) || e.previousMaps.push(r);
}
});
else {
var t = new AE(this.originalCSS, this.opts);
t.map && this.previousMaps.push(t.map);
}
return this.previousMaps;
}, t.setSourcesContent = function() {
var e = this;
var t = {};
if (this.root) this.root.walk(function(r) {
if (r.source) {
var n = r.source.input.from;
if (n && !t[n]) {
t[n] = !0;
var o = e.usesFileUrls ? e.toFileUrl(n) : e.toUrl(e.path(n));
e.map.setSourceContent(o, r.source.input.css);
}
}
});
else if (this.css) {
var r = this.opts.from ? this.toUrl(this.path(this.opts.from)) : "<no source>";
this.map.setSourceContent(r, this.css);
}
}, t.sourcePath = function(e) {
return this.mapOpts.from ? this.toUrl(this.mapOpts.from) : this.usesFileUrls ? this.toFileUrl(e.source.input.from) : this.toUrl(this.path(e.source.input.from));
}, t.toBase64 = function(e) {
return Buffer ? Buffer.from(e).toString("base64") : window.btoa(unescape(encodeURIComponent(e)));
}, t.toFileUrl = function(e) {
var t = this.memoizedFileURLs.get(e);
if (t) return t;
if (ME) {
var r = ME(e).toString();
return this.memoizedFileURLs.set(e, r), r;
}
throw new Error("`map.absolute` option is not available in this PostCSS build");
}, t.toUrl = function(e) {
var t = this.memoizedURLs.get(e);
if (t) return t;
"\\" === IE && (e = e.replace(/\\/g, "/"));
var r = encodeURI(e).replace(/[#?]/g, encodeURIComponent);
return this.memoizedURLs.set(e, r), r;
}, e;
}();
var jE = function(e) {
function t(t) {
var r;
return (r = e.call(this, t) || this).type = "comment", r;
}
return F_(t, e), t;
}(QO);
var FE = jE;
jE.default = jE;
var $E;
var BE;
var zE;
var VE;
var UE = $O.isClean;
var qE = $O.my;
var WE = tE;
var HE = FE;
function GE(e) {
return e.map(function(e) {
return e.nodes && (e.nodes = GE(e.nodes)), delete e.source, e;
});
}
function KE(e) {
if (e[UE] = !1, e.proxyOf.nodes) for (var t, r = W_(e.proxyOf.nodes); !(t = r()).done;) KE(t.value);
}
var YE = function(e) {
function t() {
return e.apply(this, arguments) || this;
}
F_(t, e);
var r = t.prototype;
return r.append = function() {
for (var e = arguments.length, t = new Array(e), r = 0; r < e; r++) t[r] = arguments[r];
for (var n, o = W_(t); !(n = o()).done;) for (var i, s = n.value, a = W_(this.normalize(s, this.last)); !(i = a()).done;) {
var l = i.value;
this.proxyOf.nodes.push(l);
}
return this.markDirty(), this;
}, r.cleanRaws = function(t) {
if (e.prototype.cleanRaws.call(this, t), this.nodes) for (var r, n = W_(this.nodes); !(r = n()).done;) r.value.cleanRaws(t);
}, r.each = function(e) {
if (this.proxyOf.nodes) {
for (var t, r, n = this.getIterator(); this.indexes[n] < this.proxyOf.nodes.length && (t = this.indexes[n], !1 !== (r = e(this.proxyOf.nodes[t], t)));) this.indexes[n] += 1;
return delete this.indexes[n], r;
}
}, r.every = function(e) {
return this.nodes.every(e);
}, r.getIterator = function() {
this.lastEach || (this.lastEach = 0), this.indexes || (this.indexes = {}), this.lastEach += 1;
var e = this.lastEach;
return this.indexes[e] = 0, e;
}, r.getProxyProcessor = function() {
return {
get: function(e, t) {
return "proxyOf" === t ? e : e[t] ? "each" === t || "string" == typeof t && t.startsWith("walk") ? function() {
for (var r = arguments.length, n = new Array(r), o = 0; o < r; o++) n[o] = arguments[o];
var i;
return (i = e)[t].apply(i, [].concat(n.map(function(e) {
return "function" == typeof e ? function(t, r) {
return e(t.toProxy(), r);
} : e;
})));
} : "every" === t || "some" === t ? function(r) {
return e[t](function(e) {
for (var t = arguments.length, n = new Array(t > 1 ? t - 1 : 0), o = 1; o < t; o++) n[o - 1] = arguments[o];
return r.apply(void 0, [].concat([e.toProxy()], n));
});
} : "root" === t ? function() {
return e.root().toProxy();
} : "nodes" === t ? e.nodes.map(function(e) {
return e.toProxy();
}) : "first" === t || "last" === t ? e[t].toProxy() : e[t] : e[t];
},
set: function(e, t, r) {
return e[t] === r || (e[t] = r, "name" !== t && "params" !== t && "selector" !== t || e.markDirty()), !0;
}
};
}, r.index = function(e) {
return "number" == typeof e ? e : (e.proxyOf && (e = e.proxyOf), this.proxyOf.nodes.indexOf(e));
}, r.insertAfter = function(e, t) {
var r;
var n = this.index(e);
var o = this.normalize(t, this.proxyOf.nodes[n]).reverse();
n = this.index(e);
for (var i, s = W_(o); !(i = s()).done;) {
var a = i.value;
this.proxyOf.nodes.splice(n + 1, 0, a);
}
for (var l in this.indexes) n < (r = this.indexes[l]) && (this.indexes[l] = r + o.length);
return this.markDirty(), this;
}, r.insertBefore = function(e, t) {
var r;
var n = this.index(e);
var o = 0 === n && "prepend";
var i = this.normalize(t, this.proxyOf.nodes[n], o).reverse();
n = this.index(e);
for (var s, a = W_(i); !(s = a()).done;) {
var l = s.value;
this.proxyOf.nodes.splice(n, 0, l);
}
for (var c in this.indexes) n <= (r = this.indexes[c]) && (this.indexes[c] = r + i.length);
return this.markDirty(), this;
}, r.normalize = function(e, r) {
var n = this;
if ("string" == typeof e) e = GE($E(e).nodes);
else if (void 0 === e) e = [];
else if (Array.isArray(e)) for (var o, i = W_(e = e.slice(0)); !(o = i()).done;) {
var s = o.value;
s.parent && s.parent.removeChild(s, "ignore");
}
else if ("root" === e.type && "document" !== this.type) for (var a, l = W_(e = e.nodes.slice(0)); !(a = l()).done;) {
var c = a.value;
c.parent && c.parent.removeChild(c, "ignore");
}
else if (e.type) e = [e];
else if (e.prop) {
if (void 0 === e.value) throw new Error("Value field is missed in node creation");
"string" != typeof e.value && (e.value = String(e.value)), e = [new WE(e)];
} else if (e.selector) e = [new BE(e)];
else if (e.name) e = [new zE(e)];
else {
if (!e.text) throw new Error("Unknown node type in node creation");
e = [new HE(e)];
}
return e.map(function(e) {
return e[qE] || t.rebuild(e), (e = e.proxyOf).parent && e.parent.removeChild(e), e[UE] && KE(e), void 0 === e.raws.before && r && void 0 !== r.raws.before && (e.raws.before = r.raws.before.replace(/\S/g, "")), e.parent = n.proxyOf, e;
});
}, r.prepend = function() {
for (var e = arguments.length, t = new Array(e), r = 0; r < e; r++) t[r] = arguments[r];
for (var n, o = W_(t = t.reverse()); !(n = o()).done;) {
for (var i, s = n.value, a = this.normalize(s, this.first, "prepend").reverse(), l = W_(a); !(i = l()).done;) {
var c = i.value;
this.proxyOf.nodes.unshift(c);
}
for (var u in this.indexes) this.indexes[u] = this.indexes[u] + a.length;
}
return this.markDirty(), this;
}, r.push = function(e) {
return e.parent = this, this.proxyOf.nodes.push(e), this;
}, r.removeAll = function() {
for (var e, t = W_(this.proxyOf.nodes); !(e = t()).done;) e.value.parent = void 0;
return this.proxyOf.nodes = [], this.markDirty(), this;
}, r.removeChild = function(e) {
var t;
for (var r in e = this.index(e), this.proxyOf.nodes[e].parent = void 0, this.proxyOf.nodes.splice(e, 1), this.indexes) (t = this.indexes[r]) >= e && (this.indexes[r] = t - 1);
return this.markDirty(), this;
}, r.replaceValues = function(e, t, r) {
return r || (r = t, t = {}), this.walkDecls(function(n) {
t.props && !t.props.includes(n.prop) || t.fast && !n.value.includes(t.fast) || (n.value = n.value.replace(e, r));
}), this.markDirty(), this;
}, r.some = function(e) {
return this.nodes.some(e);
}, r.walk = function(e) {
return this.each(function(t, r) {
var n;
try {
n = e(t, r);
} catch (e) {
throw t.addToError(e);
}
return !1 !== n && t.walk && (n = t.walk(e)), n;
});
}, r.walkAtRules = function(e, t) {
return t ? $_(e, RegExp) ? this.walk(function(r, n) {
if ("atrule" === r.type && e.test(r.name)) return t(r, n);
}) : this.walk(function(r, n) {
if ("atrule" === r.type && r.name === e) return t(r, n);
}) : (t = e, this.walk(function(e, r) {
if ("atrule" === e.type) return t(e, r);
}));
}, r.walkComments = function(e) {
return this.walk(function(t, r) {
if ("comment" === t.type) return e(t, r);
});
}, r.walkDecls = function(e, t) {
return t ? $_(e, RegExp) ? this.walk(function(r, n) {
if ("decl" === r.type && e.test(r.prop)) return t(r, n);
}) : this.walk(function(r, n) {
if ("decl" === r.type && r.prop === e) return t(r, n);
}) : (t = e, this.walk(function(e, r) {
if ("decl" === e.type) return t(e, r);
}));
}, r.walkRules = function(e, t) {
return t ? $_(e, RegExp) ? this.walk(function(r, n) {
if ("rule" === r.type && e.test(r.selector)) return t(r, n);
}) : this.walk(function(r, n) {
if ("rule" === r.type && r.selector === e) return t(r, n);
}) : (t = e, this.walk(function(e, r) {
if ("rule" === e.type) return t(e, r);
}));
}, L_(t, [{
key: "first",
get: function() {
if (this.proxyOf.nodes) return this.proxyOf.nodes[0];
}
}, {
key: "last",
get: function() {
if (this.proxyOf.nodes) return this.proxyOf.nodes[this.proxyOf.nodes.length - 1];
}
}]), t;
}(QO);
YE.registerParse = function(e) {
$E = e;
}, YE.registerRule = function(e) {
BE = e;
}, YE.registerAtRule = function(e) {
zE = e;
}, YE.registerRoot = function(e) {
VE = e;
};
var ZE = YE;
YE.default = YE, YE.rebuild = function(e) {
"atrule" === e.type ? Object.setPrototypeOf(e, zE.prototype) : "rule" === e.type ? Object.setPrototypeOf(e, BE.prototype) : "decl" === e.type ? Object.setPrototypeOf(e, WE.prototype) : "comment" === e.type ? Object.setPrototypeOf(e, HE.prototype) : "root" === e.type && Object.setPrototypeOf(e, VE.prototype), e[qE] = !0, e.nodes && e.nodes.forEach(function(e) {
YE.rebuild(e);
});
};
var XE;
var JE;
var QE = function(e) {
function t(t) {
var r;
return (r = e.call(this, D_({ type: "document" }, t)) || this).nodes || (r.nodes = []), r;
}
return F_(t, e), t.prototype.toResult = function(e) {
return void 0 === e && (e = {}), new XE(new JE(), this, e).stringify();
}, t;
}(ZE);
QE.registerLazyResult = function(e) {
XE = e;
}, QE.registerProcessor = function(e) {
JE = e;
};
var eT = QE;
QE.default = QE;
var tT = {};
var rT = function(e) {
tT[e] || (tT[e] = !0, "undefined" != typeof console && console.warn && console.warn(e));
};
var nT = function() {
function e(e, t) {
if (void 0 === t && (t = {}), this.type = "warning", this.text = e, t.node && t.node.source) {
var r = t.node.rangeBy(t);
this.line = r.start.line, this.column = r.start.column, this.endLine = r.end.line, this.endColumn = r.end.column;
}
for (var n in t) this[n] = t[n];
}
return e.prototype.toString = function() {
return this.node ? this.node.error(this.text, {
index: this.index,
plugin: this.plugin,
word: this.word
}).message : this.plugin ? this.plugin + ": " + this.text : this.text;
}, e;
}();
var oT = nT;
nT.default = nT;
var iT = oT;
var sT = function() {
function e(e, t, r) {
this.processor = e, this.messages = [], this.root = t, this.opts = r, this.css = void 0, this.map = void 0;
}
var t = e.prototype;
return t.toString = function() {
return this.css;
}, t.warn = function(e, t) {
void 0 === t && (t = {}), t.plugin || this.lastPlugin && this.lastPlugin.postcssPlugin && (t.plugin = this.lastPlugin.postcssPlugin);
var r = new iT(e, t);
return this.messages.push(r), r;
}, t.warnings = function() {
return this.messages.filter(function(e) {
return "warning" === e.type;
});
}, L_(e, [{
key: "content",
get: function() {
return this.css;
}
}]), e;
}();
var aT = sT;
sT.default = sT;
var lT = "'".charCodeAt(0);
var cT = "\"".charCodeAt(0);
var uT = "\\".charCodeAt(0);
var pT = "/".charCodeAt(0);
var dT = "\n".charCodeAt(0);
var fT = " ".charCodeAt(0);
var hT = "\f".charCodeAt(0);
var mT = " ".charCodeAt(0);
var gT = "\r".charCodeAt(0);
var vT = "[".charCodeAt(0);
var yT = "]".charCodeAt(0);
var bT = "(".charCodeAt(0);
var wT = ")".charCodeAt(0);
var _T = "{".charCodeAt(0);
var xT = "}".charCodeAt(0);
var ST = ";".charCodeAt(0);
var kT = "*".charCodeAt(0);
var CT = ":".charCodeAt(0);
var OT = "@".charCodeAt(0);
var ET = /[\t\n\f\r "#'()/;[\\\]{}]/g;
var TT = /[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g;
var RT = /.[\r\n"'(/\\]/;
var IT = /[\da-f]/i;
var MT = ZE;
var AT = function(e) {
function t(t) {
var r;
return (r = e.call(this, t) || this).type = "atrule", r;
}
F_(t, e);
var r = t.prototype;
return r.append = function() {
for (var t = arguments.length, r = new Array(t), n = 0; n < t; n++) r[n] = arguments[n];
var o;
return this.proxyOf.nodes || (this.nodes = []), (o = e.prototype.append).call.apply(o, [].concat([this], r));
}, r.prepend = function() {
for (var t = arguments.length, r = new Array(t), n = 0; n < t; n++) r[n] = arguments[n];
var o;
return this.proxyOf.nodes || (this.nodes = []), (o = e.prototype.prepend).call.apply(o, [].concat([this], r));
}, t;
}(MT);
var PT = AT;
AT.default = AT, MT.registerAtRule(AT);
var NT;
var LT;
var DT = ZE;
var jT = function(e) {
function t(t) {
var r;
return (r = e.call(this, t) || this).type = "root", r.nodes || (r.nodes = []), r;
}
F_(t, e);
var r = t.prototype;
return r.normalize = function(t, r, n) {
var o = e.prototype.normalize.call(this, t);
if (r) {
if ("prepend" === n) this.nodes.length > 1 ? r.raws.before = this.nodes[1].raws.before : delete r.raws.before;
else if (this.first !== r) for (var i, s = W_(o); !(i = s()).done;) i.value.raws.before = r.raws.before;
}
return o;
}, r.removeChild = function(t, r) {
var n = this.index(t);
return !r && 0 === n && this.nodes.length > 1 && (this.nodes[1].raws.before = this.nodes[n].raws.before), e.prototype.removeChild.call(this, t);
}, r.toResult = function(e) {
return void 0 === e && (e = {}), new NT(new LT(), this, e).stringify();
}, t;
}(DT);
jT.registerLazyResult = function(e) {
NT = e;
}, jT.registerProcessor = function(e) {
LT = e;
};
var FT = jT;
jT.default = jT, DT.registerRoot(jT);
var $T = {
comma: function(e) {
return $T.split(e, [","], !0);
},
space: function(e) {
return $T.split(e, [
" ",
"\n",
" "
]);
},
split: function(e, t, r) {
for (var n, o = [], i = "", s = !1, a = 0, l = !1, c = "", u = !1, p = W_(e); !(n = p()).done;) {
var d = n.value;
u ? u = !1 : "\\" === d ? u = !0 : l ? d === c && (l = !1) : "\"" === d || "'" === d ? (l = !0, c = d) : "(" === d ? a += 1 : ")" === d ? a > 0 && (a -= 1) : 0 === a && t.includes(d) && (s = !0), s ? ("" !== i && o.push(i.trim()), i = "", s = !1) : i += d;
}
return (r || "" !== i) && o.push(i.trim()), o;
}
};
var BT = $T;
$T.default = $T;
var zT = ZE;
var VT = BT;
var UT = function(e) {
function t(t) {
var r;
return (r = e.call(this, t) || this).type = "rule", r.nodes || (r.nodes = []), r;
}
return F_(t, e), L_(t, [{
key: "selectors",
get: function() {
return VT.comma(this.selector);
},
set: function(e) {
var t = this.selector ? this.selector.match(/,\s*/) : null;
var r = t ? t[0] : "," + this.raw("between", "beforeOpen");
this.selector = e.join(r);
}
}]), t;
}(zT);
var qT = UT;
UT.default = UT, zT.registerRule(UT);
var WT = tE;
var HT = FE;
var GT = PT;
var KT = FT;
var YT = qT;
var ZT = {
empty: !0,
space: !0
};
var XT = function() {
function e(e) {
this.input = e, this.root = new KT(), this.current = this.root, this.spaces = "", this.semicolon = !1, this.createTokenizer(), this.root.source = {
input: e,
start: {
column: 1,
line: 1,
offset: 0
}
};
}
var t = e.prototype;
return t.atrule = function(e) {
var t;
var r;
var n;
var o = new GT();
o.name = e[1].slice(1), "" === o.name && this.unnamedAtrule(o, e), this.init(o, e[2]);
for (var i = !1, s = !1, a = [], l = []; !this.tokenizer.endOfFile();) {
if ("(" === (t = (e = this.tokenizer.nextToken())[0]) || "[" === t ? l.push("(" === t ? ")" : "]") : "{" === t && l.length > 0 ? l.push("}") : t === l[l.length - 1] && l.pop(), 0 === l.length) {
if (";" === t) {
o.source.end = this.getPosition(e[2]), o.source.end.offset++, this.semicolon = !0;
break;
}
if ("{" === t) {
s = !0;
break;
}
if ("}" === t) {
if (a.length > 0) {
for (r = a[n = a.length - 1]; r && "space" === r[0];) r = a[--n];
r && (o.source.end = this.getPosition(r[3] || r[2]), o.source.end.offset++);
}
this.end(e);
break;
}
a.push(e);
} else a.push(e);
if (this.tokenizer.endOfFile()) {
i = !0;
break;
}
}
o.raws.between = this.spacesAndCommentsFromEnd(a), a.length ? (o.raws.afterName = this.spacesAndCommentsFromStart(a), this.raw(o, "params", a), i && (e = a[a.length - 1], o.source.end = this.getPosition(e[3] || e[2]), o.source.end.offset++, this.spaces = o.raws.between, o.raws.between = "")) : (o.raws.afterName = "", o.params = ""), s && (o.nodes = [], this.current = o);
}, t.checkMissedSemicolon = function(e) {
var t = this.colon(e);
if (!1 !== t) {
for (var r, n = 0, o = t - 1; o >= 0 && ("space" === (r = e[o])[0] || 2 !== (n += 1)); o--);
throw this.input.error("Missed semicolon", "word" === r[0] ? r[3] + 1 : r[2]);
}
}, t.colon = function(e) {
for (var t, r, n, o, i = 0, s = W_(e.entries()); !(o = s()).done;) {
var a = o.value;
var l = a[0];
if ("(" === (r = (t = a[1])[0]) && (i += 1), ")" === r && (i -= 1), 0 === i && ":" === r) {
if (n) {
if ("word" === n[0] && "progid" === n[1]) continue;
return l;
}
this.doubleColon(t);
}
n = t;
}
return !1;
}, t.comment = function(e) {
var t = new HT();
this.init(t, e[2]), t.source.end = this.getPosition(e[3] || e[2]), t.source.end.offset++;
var r = e[1].slice(2, -2);
if (/^\s*$/.test(r)) t.text = "", t.raws.left = r, t.raws.right = "";
else {
var n = r.match(/^(\s*)([^]*\S)(\s*)$/);
t.text = n[2], t.raws.left = n[1], t.raws.right = n[3];
}
}, t.createTokenizer = function() {
this.tokenizer = function(e, t) {
void 0 === t && (t = {});
var r;
var n;
var o;
var i;
var s;
var a;
var l;
var c;
var u;
var p;
var d = e.css.valueOf();
var f = t.ignoreErrors;
var h = d.length;
var m = 0;
var g = [];
var v = [];
function y(t) {
throw e.error("Unclosed " + t, m);
}
return {
back: function(e) {
v.push(e);
},
endOfFile: function() {
return 0 === v.length && m >= h;
},
nextToken: function(e) {
if (v.length) return v.pop();
if (!(m >= h)) {
var t = !!e && e.ignoreUnclosed;
switch (r = d.charCodeAt(m)) {
case dT:
case fT:
case mT:
case gT:
case hT:
n = m;
do
n += 1, r = d.charCodeAt(n);
while (r === fT || r === dT || r === mT || r === gT || r === hT);
p = ["space", d.slice(m, n)], m = n - 1;
break;
case vT:
case yT:
case _T:
case xT:
case CT:
case ST:
case wT:
var b = String.fromCharCode(r);
p = [
b,
b,
m
];
break;
case bT:
if (c = g.length ? g.pop()[1] : "", u = d.charCodeAt(m + 1), "url" === c && u !== lT && u !== cT && u !== fT && u !== dT && u !== mT && u !== hT && u !== gT) {
n = m;
do {
if (a = !1, -1 === (n = d.indexOf(")", n + 1))) {
if (f || t) {
n = m;
break;
}
y("bracket");
}
for (l = n; d.charCodeAt(l - 1) === uT;) l -= 1, a = !a;
} while (a);
p = [
"brackets",
d.slice(m, n + 1),
m,
n
], m = n;
} else n = d.indexOf(")", m + 1), i = d.slice(m, n + 1), -1 === n || RT.test(i) ? p = [
"(",
"(",
m
] : (p = [
"brackets",
i,
m,
n
], m = n);
break;
case lT:
case cT:
o = r === lT ? "'" : "\"", n = m;
do {
if (a = !1, -1 === (n = d.indexOf(o, n + 1))) {
if (f || t) {
n = m + 1;
break;
}
y("string");
}
for (l = n; d.charCodeAt(l - 1) === uT;) l -= 1, a = !a;
} while (a);
p = [
"string",
d.slice(m, n + 1),
m,
n
], m = n;
break;
case OT:
ET.lastIndex = m + 1, ET.test(d), n = 0 === ET.lastIndex ? d.length - 1 : ET.lastIndex - 2, p = [
"at-word",
d.slice(m, n + 1),
m,
n
], m = n;
break;
case uT:
for (n = m, s = !0; d.charCodeAt(n + 1) === uT;) n += 1, s = !s;
if (r = d.charCodeAt(n + 1), s && r !== pT && r !== fT && r !== dT && r !== mT && r !== gT && r !== hT && (n += 1, IT.test(d.charAt(n)))) {
for (; IT.test(d.charAt(n + 1));) n += 1;
d.charCodeAt(n + 1) === fT && (n += 1);
}
p = [
"word",
d.slice(m, n + 1),
m,
n
], m = n;
break;
default: r === pT && d.charCodeAt(m + 1) === kT ? (0 === (n = d.indexOf("*/", m + 2) + 1) && (f || t ? n = d.length : y("comment")), p = [
"comment",
d.slice(m, n + 1),
m,
n
], m = n) : (TT.lastIndex = m + 1, TT.test(d), n = 0 === TT.lastIndex ? d.length - 1 : TT.lastIndex - 2, p = [
"word",
d.slice(m, n + 1),
m,
n
], g.push(p), m = n);
}
return m++, p;
}
},
position: function() {
return m;
}
};
}(this.input);
}, t.decl = function(e, t) {
var r = new WT();
this.init(r, e[0][2]);
var n;
var o = e[e.length - 1];
for (";" === o[0] && (this.semicolon = !0, e.pop()), r.source.end = this.getPosition(o[3] || o[2] || function(e) {
for (var t = e.length - 1; t >= 0; t--) {
var r = e[t];
var n = r[3] || r[2];
if (n) return n;
}
}(e)), r.source.end.offset++; "word" !== e[0][0];) 1 === e.length && this.unknownWord(e), r.raws.before += e.shift()[1];
for (r.source.start = this.getPosition(e[0][2]), r.prop = ""; e.length;) {
var i = e[0][0];
if (":" === i || "space" === i || "comment" === i) break;
r.prop += e.shift()[1];
}
for (r.raws.between = ""; e.length;) {
if (":" === (n = e.shift())[0]) {
r.raws.between += n[1];
break;
}
"word" === n[0] && /\w/.test(n[1]) && this.unknownWord([n]), r.raws.between += n[1];
}
"_" !== r.prop[0] && "*" !== r.prop[0] || (r.raws.before += r.prop[0], r.prop = r.prop.slice(1));
for (var s, a = []; e.length && ("space" === (s = e[0][0]) || "comment" === s);) a.push(e.shift());
this.precheckMissedSemicolon(e);
for (var l = e.length - 1; l >= 0; l--) {
if ("!important" === (n = e[l])[1].toLowerCase()) {
r.important = !0;
var c = this.stringFrom(e, l);
" !important" !== (c = this.spacesFromEnd(e) + c) && (r.raws.important = c);
break;
}
if ("important" === n[1].toLowerCase()) {
for (var u = e.slice(0), p = "", d = l; d > 0; d--) {
var f = u[d][0];
if (0 === p.trim().indexOf("!") && "space" !== f) break;
p = u.pop()[1] + p;
}
0 === p.trim().indexOf("!") && (r.important = !0, r.raws.important = p, e = u);
}
if ("space" !== n[0] && "comment" !== n[0]) break;
}
e.some(function(e) {
return "space" !== e[0] && "comment" !== e[0];
}) && (r.raws.between += a.map(function(e) {
return e[1];
}).join(""), a = []), this.raw(r, "value", a.concat(e), t), r.value.includes(":") && !t && this.checkMissedSemicolon(e);
}, t.doubleColon = function(e) {
throw this.input.error("Double colon", { offset: e[2] }, { offset: e[2] + e[1].length });
}, t.emptyRule = function(e) {
var t = new YT();
this.init(t, e[2]), t.selector = "", t.raws.between = "", this.current = t;
}, t.end = function(e) {
this.current.nodes && this.current.nodes.length && (this.current.raws.semicolon = this.semicolon), this.semicolon = !1, this.current.raws.after = (this.current.raws.after || "") + this.spaces, this.spaces = "", this.current.parent ? (this.current.source.end = this.getPosition(e[2]), this.current.source.end.offset++, this.current = this.current.parent) : this.unexpectedClose(e);
}, t.endFile = function() {
this.current.parent && this.unclosedBlock(), this.current.nodes && this.current.nodes.length && (this.current.raws.semicolon = this.semicolon), this.current.raws.after = (this.current.raws.after || "") + this.spaces, this.root.source.end = this.getPosition(this.tokenizer.position());
}, t.freeSemicolon = function(e) {
if (this.spaces += e[1], this.current.nodes) {
var t = this.current.nodes[this.current.nodes.length - 1];
t && "rule" === t.type && !t.raws.ownSemicolon && (t.raws.ownSemicolon = this.spaces, this.spaces = "");
}
}, t.getPosition = function(e) {
var t = this.input.fromOffset(e);
return {
column: t.col,
line: t.line,
offset: e
};
}, t.init = function(e, t) {
this.current.push(e), e.source = {
input: this.input,
start: this.getPosition(t)
}, e.raws.before = this.spaces, this.spaces = "", "comment" !== e.type && (this.semicolon = !1);
}, t.other = function(e) {
for (var t = !1, r = null, n = !1, o = null, i = [], s = e[1].startsWith("--"), a = [], l = e; l;) {
if (r = l[0], a.push(l), "(" === r || "[" === r) o || (o = l), i.push("(" === r ? ")" : "]");
else if (s && n && "{" === r) o || (o = l), i.push("}");
else if (0 === i.length) {
if (";" === r) {
if (n) return void this.decl(a, s);
break;
}
if ("{" === r) return void this.rule(a);
if ("}" === r) {
this.tokenizer.back(a.pop()), t = !0;
break;
}
":" === r && (n = !0);
} else r === i[i.length - 1] && (i.pop(), 0 === i.length && (o = null));
l = this.tokenizer.nextToken();
}
if (this.tokenizer.endOfFile() && (t = !0), i.length > 0 && this.unclosedBracket(o), t && n) {
if (!s) for (; a.length && ("space" === (l = a[a.length - 1][0]) || "comment" === l);) this.tokenizer.back(a.pop());
this.decl(a, s);
} else this.unknownWord(a);
}, t.parse = function() {
for (var e; !this.tokenizer.endOfFile();) switch ((e = this.tokenizer.nextToken())[0]) {
case "space":
this.spaces += e[1];
break;
case ";":
this.freeSemicolon(e);
break;
case "}":
this.end(e);
break;
case "comment":
this.comment(e);
break;
case "at-word":
this.atrule(e);
break;
case "{":
this.emptyRule(e);
break;
default: this.other(e);
}
this.endFile();
}, t.precheckMissedSemicolon = function() {}, t.raw = function(e, t, r, n) {
for (var o, i, s, a, l = r.length, c = "", u = !0, p = 0; p < l; p += 1) "space" !== (i = (o = r[p])[0]) || p !== l - 1 || n ? "comment" === i ? (a = r[p - 1] ? r[p - 1][0] : "empty", s = r[p + 1] ? r[p + 1][0] : "empty", ZT[a] || ZT[s] || "," === c.slice(-1) ? u = !1 : c += o[1]) : c += o[1] : u = !1;
if (!u) {
var d = r.reduce(function(e, t) {
return e + t[1];
}, "");
e.raws[t] = {
raw: d,
value: c
};
}
e[t] = c;
}, t.rule = function(e) {
e.pop();
var t = new YT();
this.init(t, e[0][2]), t.raws.between = this.spacesAndCommentsFromEnd(e), this.raw(t, "selector", e), this.current = t;
}, t.spacesAndCommentsFromEnd = function(e) {
for (var t, r = ""; e.length && ("space" === (t = e[e.length - 1][0]) || "comment" === t);) r = e.pop()[1] + r;
return r;
}, t.spacesAndCommentsFromStart = function(e) {
for (var t, r = ""; e.length && ("space" === (t = e[0][0]) || "comment" === t);) r += e.shift()[1];
return r;
}, t.spacesFromEnd = function(e) {
for (var t = ""; e.length && "space" === e[e.length - 1][0];) t = e.pop()[1] + t;
return t;
}, t.stringFrom = function(e, t) {
for (var r = "", n = t; n < e.length; n++) r += e[n][1];
return e.splice(t, e.length - t), r;
}, t.unclosedBlock = function() {
var e = this.current.source.start;
throw this.input.error("Unclosed block", e.line, e.column);
}, t.unclosedBracket = function(e) {
throw this.input.error("Unclosed bracket", { offset: e[2] }, { offset: e[2] + 1 });
}, t.unexpectedClose = function(e) {
throw this.input.error("Unexpected }", { offset: e[2] }, { offset: e[2] + 1 });
}, t.unknownWord = function(e) {
throw this.input.error("Unknown word", { offset: e[0][2] }, { offset: e[0][2] + e[0][1].length });
}, t.unnamedAtrule = function(e, t) {
throw this.input.error("At-rule without name", { offset: t[2] }, { offset: t[2] + t[1].length });
}, e;
}();
var JT = ZE;
var QT = XT;
var eR = kE;
function tR(e, t) {
var n = new QT(new eR(e, t));
try {
n.parse();
} catch (e) {
throw "CssSyntaxError" === e.name && t && t.from && (/\.scss$/i.test(t.from) ? e.message += "\nYou tried to parse SCSS with the standard CSS parser; try again with the postcss-scss parser" : /\.sass/i.test(t.from) ? e.message += "\nYou tried to parse Sass with the standard CSS parser; try again with the postcss-sass parser" : /\.less$/i.test(t.from) && (e.message += "\nYou tried to parse Less with the standard CSS parser; try again with the postcss-less parser")), e;
}
return n.root;
}
var rR = tR;
tR.default = tR, JT.registerParse(tR);
var nR = $O.isClean;
var oR = $O.my;
var iR = DE;
var sR = WO;
var aR = ZE;
var lR = eT;
var cR = rT;
var uR = aT;
var pR = rR;
var dR = FT;
var fR = {
atrule: "AtRule",
comment: "Comment",
decl: "Declaration",
document: "Document",
root: "Root",
rule: "Rule"
};
var hR = {
AtRule: !0,
AtRuleExit: !0,
Comment: !0,
CommentExit: !0,
Declaration: !0,
DeclarationExit: !0,
Document: !0,
DocumentExit: !0,
Once: !0,
OnceExit: !0,
postcssPlugin: !0,
prepare: !0,
Root: !0,
RootExit: !0,
Rule: !0,
RuleExit: !0
};
var mR = {
Once: !0,
postcssPlugin: !0,
prepare: !0
};
function gR(e) {
return "object" === (void 0 === e ? "undefined" : V_(e)) && "function" == typeof e.then;
}
function vR(e) {
var t = !1;
var r = fR[e.type];
return "decl" === e.type ? t = e.prop.toLowerCase() : "atrule" === e.type && (t = e.name.toLowerCase()), t && e.append ? [
r,
r + "-" + t,
0,
r + "Exit",
r + "Exit-" + t
] : t ? [
r,
r + "-" + t,
r + "Exit",
r + "Exit-" + t
] : e.append ? [
r,
0,
r + "Exit"
] : [r, r + "Exit"];
}
function yR(e) {
return {
eventIndex: 0,
events: "document" === e.type ? [
"Document",
0,
"DocumentExit"
] : "root" === e.type ? [
"Root",
0,
"RootExit"
] : vR(e),
iterator: 0,
node: e,
visitorIndex: 0,
visitors: []
};
}
function bR(e) {
return e[nR] = !1, e.nodes && e.nodes.forEach(function(e) {
return bR(e);
}), e;
}
var wR = {};
var _R = function() {
function e(t, r, n) {
var o;
var i = this;
if (this.stringified = !1, this.processed = !1, "object" !== (void 0 === r ? "undefined" : V_(r)) || null === r || "root" !== r.type && "document" !== r.type) if ($_(r, e) || $_(r, uR)) o = bR(r.root), r.map && (void 0 === n.map && (n.map = {}), n.map.inline || (n.map.inline = !1), n.map.prev = r.map);
else {
var s = pR;
n.syntax && (s = n.syntax.parse), n.parser && (s = n.parser), s.parse && (s = s.parse);
try {
o = s(r, n);
} catch (e) {
this.processed = !0, this.error = e;
}
o && !o[oR] && aR.rebuild(o);
}
else o = bR(r);
this.result = new uR(t, o, n), this.helpers = D_({}, wR, {
postcss: wR,
result: this.result
}), this.plugins = this.processor.plugins.map(function(e) {
return "object" === (void 0 === e ? "undefined" : V_(e)) && e.prepare ? D_({}, e, e.prepare(i.result)) : e;
});
}
var t = e.prototype;
return t.async = function() {
return this.error ? Promise.reject(this.error) : this.processed ? Promise.resolve(this.result) : (this.processing || (this.processing = this.runAsync()), this.processing);
}, t.catch = function(e) {
return this.async().catch(e);
}, t.finally = function(e) {
return this.async().then(e, e);
}, t.getAsyncError = function() {
throw new Error("Use process(css).then(cb) to work with async plugins");
}, t.handleError = function(e, t) {
var r = this.result.lastPlugin;
try {
if (t && t.addToError(e), this.error = e, "CssSyntaxError" !== e.name || e.plugin) {
if (r.postcssVersion && true) {
var n = r.postcssPlugin;
var o = r.postcssVersion;
var i = this.result.processor.version;
var s = o.split(".");
var a = i.split(".");
(s[0] !== a[0] || parseInt(s[1]) > parseInt(a[1])) && console.error("Unknown error from PostCSS plugin. Your current PostCSS version is " + i + ", but " + n + " uses " + o + ". Perhaps this is the source of the error below.");
}
} else e.plugin = r.postcssPlugin, e.setMessage();
} catch (e) {
console && console.error && console.error(e);
}
return e;
}, t.prepareVisitors = function() {
var e = this;
this.listeners = {};
for (var t, r = function(t, r, n) {
e.listeners[r] || (e.listeners[r] = []), e.listeners[r].push([t, n]);
}, n = W_(this.plugins); !(t = n()).done;) {
var o = t.value;
if ("object" === (void 0 === o ? "undefined" : V_(o))) for (var i in o) {
if (!hR[i] && /^[A-Z]/.test(i)) throw new Error("Unknown event " + i + " in " + o.postcssPlugin + ". Try to update PostCSS (" + this.processor.version + " now).");
if (!mR[i]) if ("object" === V_(o[i])) for (var s in o[i]) r(o, "*" === s ? i : i + "-" + s.toLowerCase(), o[i][s]);
else "function" == typeof o[i] && r(o, i, o[i]);
}
}
this.hasListener = Object.keys(this.listeners).length > 0;
}, t.runAsync = function() {
var e = this;
return P_(function() {
var t;
var r;
var n;
var o;
var i;
var s;
var a;
var l;
var c;
var u;
var p;
var d;
return H_(this, function(f) {
switch (f.label) {
case 0: e.plugin = 0, t = 0, f.label = 1;
case 1:
if (!(t < e.plugins.length)) return [3, 6];
if (r = e.plugins[t], !gR(n = e.runOnRoot(r))) return [3, 5];
f.label = 2;
case 2: return f.trys.push([
2,
4,
,
5
]), [4, n];
case 3: return f.sent(), [3, 5];
case 4: throw o = f.sent(), e.handleError(o);
case 5: return t++, [3, 1];
case 6:
if (e.prepareVisitors(), !e.hasListener) return [3, 18];
i = e.result.root, f.label = 7;
case 7:
if (i[nR]) return [3, 14];
i[nR] = !0, s = [yR(i)], f.label = 8;
case 8:
if (!(s.length > 0)) return [3, 13];
if (!gR(a = e.visitTick(s))) return [3, 12];
f.label = 9;
case 9: return f.trys.push([
9,
11,
,
12
]), [4, a];
case 10: return f.sent(), [3, 12];
case 11: throw l = f.sent(), c = s[s.length - 1].node, e.handleError(l, c);
case 12: return [3, 8];
case 13: return [3, 7];
case 14:
if (!e.listeners.OnceExit) return [3, 18];
u = function() {
var t;
var r;
var n;
var o;
var s;
return H_(this, function(a) {
switch (a.label) {
case 0: t = d.value, r = t[0], n = t[1], e.result.lastPlugin = r, a.label = 1;
case 1: return a.trys.push([
1,
6,
,
7
]), "document" !== i.type ? [3, 3] : (o = i.nodes.map(function(t) {
return n(t, e.helpers);
}), [4, Promise.all(o)]);
case 2: return a.sent(), [3, 5];
case 3: return [4, n(i, e.helpers)];
case 4: a.sent(), a.label = 5;
case 5: return [3, 7];
case 6: throw s = a.sent(), e.handleError(s);
case 7: return [2];
}
});
}, p = W_(e.listeners.OnceExit), f.label = 15;
case 15: return (d = p()).done ? [3, 18] : [5, G_(u())];
case 16: f.sent(), f.label = 17;
case 17: return [3, 15];
case 18: return e.processed = !0, [2, e.stringify()];
}
});
})();
}, t.runOnRoot = function(e) {
var t = this;
this.result.lastPlugin = e;
try {
if ("object" === (void 0 === e ? "undefined" : V_(e)) && e.Once) {
if ("document" === this.result.root.type) {
var r = this.result.root.nodes.map(function(r) {
return e.Once(r, t.helpers);
});
return gR(r[0]) ? Promise.all(r) : r;
}
return e.Once(this.result.root, this.helpers);
}
if ("function" == typeof e) return e(this.result.root, this.result);
} catch (e) {
throw this.handleError(e);
}
}, t.stringify = function() {
if (this.error) throw this.error;
if (this.stringified) return this.result;
this.stringified = !0, this.sync();
var e = this.result.opts;
var t = sR;
e.syntax && (t = e.syntax.stringify), e.stringifier && (t = e.stringifier), t.stringify && (t = t.stringify);
var r = new iR(t, this.result.root, this.result.opts).generate();
return this.result.css = r[0], this.result.map = r[1], this.result;
}, t.sync = function() {
if (this.error) throw this.error;
if (this.processed) return this.result;
if (this.processed = !0, this.processing) throw this.getAsyncError();
for (var e, t = W_(this.plugins); !(e = t()).done;) {
var r = e.value;
if (gR(this.runOnRoot(r))) throw this.getAsyncError();
}
if (this.prepareVisitors(), this.hasListener) {
for (var n = this.result.root; !n[nR];) n[nR] = !0, this.walkSync(n);
if (this.listeners.OnceExit) if ("document" === n.type) for (var o, i = W_(n.nodes); !(o = i()).done;) {
var s = o.value;
this.visitSync(this.listeners.OnceExit, s);
}
else this.visitSync(this.listeners.OnceExit, n);
}
return this.result;
}, t.then = function(e, t) {
return "from" in this.opts || cR("Without `from` option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to `undefined` to prevent this warning."), this.async().then(e, t);
}, t.toString = function() {
return this.css;
}, t.visitSync = function(e, t) {
for (var r, n = W_(e); !(r = n()).done;) {
var o = r.value;
var i = o[0];
var s = o[1];
this.result.lastPlugin = i;
var a = void 0;
try {
a = s(t, this.helpers);
} catch (e) {
throw this.handleError(e, t.proxyOf);
}
if ("root" !== t.type && "document" !== t.type && !t.parent) return !0;
if (gR(a)) throw this.getAsyncError();
}
}, t.visitTick = function(e) {
var t = e[e.length - 1];
var r = t.node;
var n = t.visitors;
if ("root" === r.type || "document" === r.type || r.parent) {
if (n.length > 0 && t.visitorIndex < n.length) {
var o = n[t.visitorIndex];
var i = o[0];
var s = o[1];
t.visitorIndex += 1, t.visitorIndex === n.length && (t.visitors = [], t.visitorIndex = 0), this.result.lastPlugin = i;
try {
return s(r.toProxy(), this.helpers);
} catch (e) {
throw this.handleError(e, r);
}
}
if (0 !== t.iterator) {
for (var a, l = t.iterator; a = r.nodes[r.indexes[l]];) if (r.indexes[l] += 1, !a[nR]) return a[nR] = !0, void e.push(yR(a));
t.iterator = 0, delete r.indexes[l];
}
for (var c = t.events; t.eventIndex < c.length;) {
var u = c[t.eventIndex];
if (t.eventIndex += 1, 0 === u) return void (r.nodes && r.nodes.length && (r[nR] = !0, t.iterator = r.getIterator()));
if (this.listeners[u]) return void (t.visitors = this.listeners[u]);
}
e.pop();
} else e.pop();
}, t.walkSync = function(e) {
var t = this;
e[nR] = !0;
for (var r, n = W_(vR(e)); !(r = n()).done;) {
var o = r.value;
if (0 === o) e.nodes && e.each(function(e) {
e[nR] || t.walkSync(e);
});
else {
var i = this.listeners[o];
if (i && this.visitSync(i, e.toProxy())) return;
}
}
}, t.warnings = function() {
return this.sync().warnings();
}, L_(e, [
{
key: "content",
get: function() {
return this.stringify().content;
}
},
{
key: "css",
get: function() {
return this.stringify().css;
}
},
{
key: "map",
get: function() {
return this.stringify().map;
}
},
{
key: "messages",
get: function() {
return this.sync().messages;
}
},
{
key: "opts",
get: function() {
return this.result.opts;
}
},
{
key: "processor",
get: function() {
return this.result.processor;
}
},
{
key: "root",
get: function() {
return this.sync().root;
}
},
{
key: Symbol.toStringTag,
get: function() {
return "LazyResult";
}
}
]), e;
}();
_R.registerPostcss = function(e) {
wR = e;
};
var xR = _R;
_R.default = _R, dR.registerLazyResult(_R), lR.registerLazyResult(_R);
var SR = DE;
var kR = WO;
var CR = rT;
var OR = rR;
var ER = aT;
var TR = function() {
function e(e, t, r) {
var n;
t = t.toString(), this.stringified = !1, this._processor = e, this._css = t, this._opts = r, this._map = void 0;
var o = kR;
this.result = new ER(this._processor, n, this._opts), this.result.css = t;
var i = this;
Object.defineProperty(this.result, "root", { get: function() {
return i.root;
} });
var s = new SR(o, n, this._opts, t);
if (s.isMap()) {
var a = s.generate();
var l = a[0];
var c = a[1];
l && (this.result.css = l), c && (this.result.map = c);
} else s.clearAnnotation(), this.result.css = s.css;
}
var t = e.prototype;
return t.async = function() {
return this.error ? Promise.reject(this.error) : Promise.resolve(this.result);
}, t.catch = function(e) {
return this.async().catch(e);
}, t.finally = function(e) {
return this.async().then(e, e);
}, t.sync = function() {
if (this.error) throw this.error;
return this.result;
}, t.then = function(e, t) {
return "from" in this._opts || CR("Without `from` option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to `undefined` to prevent this warning."), this.async().then(e, t);
}, t.toString = function() {
return this._css;
}, t.warnings = function() {
return [];
}, L_(e, [
{
key: "content",
get: function() {
return this.result.css;
}
},
{
key: "css",
get: function() {
return this.result.css;
}
},
{
key: "map",
get: function() {
return this.result.map;
}
},
{
key: "messages",
get: function() {
return [];
}
},
{
key: "opts",
get: function() {
return this.result.opts;
}
},
{
key: "processor",
get: function() {
return this.result.processor;
}
},
{
key: "root",
get: function() {
if (this._root) return this._root;
var e;
var t = OR;
try {
e = t(this._css, this._opts);
} catch (e) {
this.error = e;
}
if (this.error) throw this.error;
return this._root = e, e;
}
},
{
key: Symbol.toStringTag,
get: function() {
return "NoWorkResult";
}
}
]), e;
}();
var RR = TR;
TR.default = TR;
var IR = RR;
var MR = xR;
var AR = eT;
var PR = FT;
var NR = function() {
function e(e) {
void 0 === e && (e = []), this.version = "8.4.38", this.plugins = this.normalize(e);
}
var t = e.prototype;
return t.normalize = function(e) {
for (var t, r = [], n = W_(e); !(t = n()).done;) {
var o = t.value;
if (!0 === o.postcss ? o = o() : o.postcss && (o = o.postcss), "object" === (void 0 === o ? "undefined" : V_(o)) && Array.isArray(o.plugins)) r = r.concat(o.plugins);
else if ("object" === (void 0 === o ? "undefined" : V_(o)) && o.postcssPlugin) r.push(o);
else if ("function" == typeof o) r.push(o);
else {
if ("object" !== (void 0 === o ? "undefined" : V_(o)) || !o.parse && !o.stringify) throw new Error(o + " is not a PostCSS plugin");
throw new Error("PostCSS syntaxes cannot be used as plugins. Instead, please use one of the syntax/parser/stringifier options as outlined in your PostCSS runner documentation.");
}
}
return r;
}, t.process = function(e, t) {
return void 0 === t && (t = {}), this.plugins.length || t.parser || t.stringifier || t.syntax ? new MR(this, e, t) : new IR(this, e, t);
}, t.use = function(e) {
return this.plugins = this.plugins.concat(this.normalize([e])), this;
}, e;
}();
var LR = NR;
NR.default = NR, PR.registerProcessor(NR), AR.registerProcessor(NR);
var DR = tE;
var jR = cE;
var FR = FE;
var $R = PT;
var BR = kE;
var zR = FT;
var VR = qT;
function UR(e, t) {
if (Array.isArray(e)) return e.map(function(e) {
return UR(e);
});
var r = e.inputs;
var n = B_(e, ["inputs"]);
if (r) {
t = [];
for (var o, i = W_(r); !(o = i()).done;) {
var s = D_({}, o.value, { __proto__: BR.prototype });
s.map && (s.map = D_({}, s.map, { __proto__: jR.prototype })), t.push(s);
}
}
if (n.nodes && (n.nodes = e.nodes.map(function(e) {
return UR(e, t);
})), n.source) {
var a = n.source;
var l = a.inputId;
n.source = B_(a, ["inputId"]), null != l && (n.source.input = t[l]);
}
if ("root" === n.type) return new zR(n);
if ("decl" === n.type) return new DR(n);
if ("rule" === n.type) return new VR(n);
if ("comment" === n.type) return new FR(n);
if ("atrule" === n.type) return new $R(n);
throw new Error("Unknown node type: " + e.type);
}
var qR = UR;
UR.default = UR;
var WR = FO;
var HR = tE;
var GR = xR;
var KR = ZE;
var YR = LR;
var ZR = WO;
var XR = qR;
var JR = eT;
var QR = oT;
var eI = FE;
var tI = PT;
var rI = aT;
var nI = kE;
var oI = rR;
var iI = BT;
var sI = qT;
var aI = FT;
var lI = QO;
function cI() {
for (var e = arguments.length, t = new Array(e), r = 0; r < e; r++) t[r] = arguments[r];
return 1 === t.length && Array.isArray(t[0]) && (t = t[0]), new YR(t);
}
cI.plugin = function(e, t) {
var r;
var n = !1;
function o() {
for (var r = arguments.length, o = new Array(r), i = 0; i < r; i++) o[i] = arguments[i];
console && console.warn && !n && (n = !0, console.warn(e + ": postcss.plugin was deprecated. Migration guide:\nhttps://evilmartians.com/chronicles/postcss-8-plugin-migration"), {}.LANG && {}.LANG.startsWith("cn") && console.warn(e + ": 里面 postcss.plugin 被弃用. 迁移指南:\nhttps://www.w3ctech.com/topic/2226"));
var s = t.apply(void 0, [].concat(o));
return s.postcssPlugin = e, s.postcssVersion = new YR().version, s;
}
return Object.defineProperty(o, "postcss", { get: function() {
return r || (r = o()), r;
} }), o.process = function(e, t, r) {
return cI([o(r)]).process(e, t);
}, o;
}, cI.stringify = ZR, cI.parse = oI, cI.fromJSON = XR, cI.list = iI, cI.comment = function(e) {
return new eI(e);
}, cI.atRule = function(e) {
return new tI(e);
}, cI.decl = function(e) {
return new HR(e);
}, cI.rule = function(e) {
return new sI(e);
}, cI.root = function(e) {
return new aI(e);
}, cI.document = function(e) {
return new JR(e);
}, cI.CssSyntaxError = WR, cI.Declaration = HR, cI.Container = KR, cI.Processor = YR, cI.Document = JR, cI.Comment = eI, cI.Warning = QR, cI.AtRule = tI, cI.Result = rI, cI.Input = nI, cI.Rule = sI, cI.Root = aI, cI.Node = lI, GR.registerPostcss(cI), cI.default = cI;
var uI = function() {
function e() {
for (var e = arguments.length, t = new Array(e), r = 0; r < e; r++) t[r] = arguments[r];
TO(this, "parentElement", null), TO(this, "parentNode", null), TO(this, "ownerDocument"), TO(this, "firstChild", null), TO(this, "lastChild", null), TO(this, "previousSibling", null), TO(this, "nextSibling", null), TO(this, "ELEMENT_NODE", 1), TO(this, "TEXT_NODE", 3), TO(this, "nodeType"), TO(this, "nodeName"), TO(this, "RRNodeType");
}
var t = e.prototype;
return t.contains = function(t) {
if (!$_(t, e)) return !1;
if (t.ownerDocument !== this.ownerDocument) return !1;
if (t === this) return !0;
for (; t.parentNode;) {
if (t.parentNode === this) return !0;
t = t.parentNode;
}
return !1;
}, t.appendChild = function(e) {
throw new Error("RRDomException: Failed to execute 'appendChild' on 'RRNode': This RRNode type does not support this method.");
}, t.insertBefore = function(e, t) {
throw new Error("RRDomException: Failed to execute 'insertBefore' on 'RRNode': This RRNode type does not support this method.");
}, t.removeChild = function(e) {
throw new Error("RRDomException: Failed to execute 'removeChild' on 'RRNode': This RRNode type does not support this method.");
}, t.toString = function() {
return "RRNode";
}, L_(e, [{
key: "childNodes",
get: function() {
for (var e = [], t = this.firstChild; t;) e.push(t), t = t.nextSibling;
return e;
}
}]), e;
}();
var pI = {
Node: [
"childNodes",
"parentNode",
"parentElement",
"textContent"
],
ShadowRoot: ["host", "styleSheets"],
Element: [
"shadowRoot",
"querySelector",
"querySelectorAll"
],
MutationObserver: []
};
var dI = {
Node: ["contains", "getRootNode"],
ShadowRoot: ["getSelection"],
Element: [],
MutationObserver: ["constructor"]
};
var fI = {};
function hI(e) {
if (fI[e]) return fI[e];
var t = globalThis[e];
var r = t.prototype;
var n = e in pI ? pI[e] : void 0;
var o = Boolean(n && n.every(function(e) {
var t;
var n;
return Boolean(null == (n = null == (t = Object.getOwnPropertyDescriptor(r, e)) ? void 0 : t.get) ? void 0 : n.toString().includes("[native code]"));
}));
var i = e in dI ? dI[e] : void 0;
var s = Boolean(i && i.every(function(e) {
var t;
return "function" == typeof r[e] && (null == (t = r[e]) ? void 0 : t.toString().includes("[native code]"));
}));
if (o && s && !globalThis.Zone) return fI[e] = t.prototype, t.prototype;
try {
var a = document.createElement("iframe");
document.body.appendChild(a);
var l = a.contentWindow;
if (!l) return t.prototype;
var c = l[e].prototype;
return document.body.removeChild(a), c ? fI[e] = c : r;
} catch (e) {
return r;
}
}
var mI = {};
function gI(e, t, r) {
var n;
var o = e + "." + String(r);
if (mI[o]) return mI[o].call(t);
var i = hI(e);
var s = null == (n = Object.getOwnPropertyDescriptor(i, r)) ? void 0 : n.get;
return s ? (mI[o] = s, s.call(t)) : t[r];
}
var vI = {};
function yI(e, t, r) {
var n = e + "." + String(r);
if (vI[n]) return vI[n].bind(t);
var o = hI(e)[r];
return "function" != typeof o ? t[r] : (vI[n] = o, o.bind(t));
}
function bI() {
return hI("MutationObserver").constructor;
}
function wI(e, t, r) {
try {
if (!(t in e)) return function() {};
var n = e[t];
var o = r(n);
return "function" == typeof o && (o.prototype = o.prototype || {}, Object.defineProperties(o, { __rrweb_original__: {
enumerable: !1,
value: n
} })), e[t] = o, function() {
e[t] = n;
};
} catch (e) {
return function() {};
}
}
var _I = function(e) {
return gI("Node", e, "childNodes");
};
var xI = function(e) {
return gI("Node", e, "parentNode");
};
var SI = function(e) {
return gI("Node", e, "parentElement");
};
var kI = function(e) {
return gI("Node", e, "textContent");
};
var CI = function(e, t) {
return yI("Node", e, "contains")(t);
};
var OI = function(e) {
return yI("Node", e, "getRootNode")();
};
var EI = function(e) {
return e && "host" in e ? gI("ShadowRoot", e, "host") : null;
};
var TI = function(e) {
return e && "shadowRoot" in e ? gI("Element", e, "shadowRoot") : null;
};
function RI(e, t, r) {
void 0 === r && (r = document);
var n = {
capture: !0,
passive: !0
};
return r.addEventListener(e, t, n), function() {
return r.removeEventListener(e, t, n);
};
}
var II = "Please stop import mirror directly. Instead of that,\r\nnow you can use replayer.getMirror() to access the mirror instance of a replayer,\r\nor you can use record.mirror to access the mirror instance during recording.";
var MI = {
map: {},
getId: function() {
return console.error(II), -1;
},
getNode: function() {
return console.error(II), null;
},
removeNodeFromMap: function() {
console.error(II);
},
has: function() {
return console.error(II), !1;
},
reset: function() {
console.error(II);
}
};
function AI(e, t, r) {
void 0 === r && (r = {});
var n = null;
var o = 0;
return function() {
for (var i = arguments.length, s = new Array(i), a = 0; a < i; a++) s[a] = arguments[a];
var l = Date.now();
o || !1 !== r.leading || (o = l);
var c = t - (l - o);
var u = this;
c <= 0 || c > t ? (n && (clearTimeout(n), n = null), o = l, e.apply(u, s)) : n || !1 === r.trailing || (n = setTimeout(function() {
o = !1 === r.leading ? 0 : Date.now(), n = null, e.apply(u, s);
}, c));
};
}
function PI(e, t, r, n, o) {
void 0 === o && (o = window);
var i = o.Object.getOwnPropertyDescriptor(e, t);
return o.Object.defineProperty(e, t, n ? r : { set: function(e) {
var t = this;
setTimeout(function() {
r.set.call(t, e);
}, 0), i && i.set && i.set.call(this, e);
} }), function() {
return PI(e, t, i || {}, !0);
};
}
"undefined" != typeof window && window.Proxy && window.Reflect && (MI = new Proxy(MI, { get: function(e, t, r) {
return "map" === t && console.error(II), Reflect.get(e, t, r);
} }));
var NI = Date.now;
function LI(e) {
var t;
var r;
var n;
var o;
var i = e.document;
return {
left: i.scrollingElement ? i.scrollingElement.scrollLeft : void 0 !== e.pageXOffset ? e.pageXOffset : i.documentElement.scrollLeft || (null == i ? void 0 : i.body) && (null == (t = SI(i.body)) ? void 0 : t.scrollLeft) || (null == (r = null == i ? void 0 : i.body) ? void 0 : r.scrollLeft) || 0,
top: i.scrollingElement ? i.scrollingElement.scrollTop : void 0 !== e.pageYOffset ? e.pageYOffset : (null == i ? void 0 : i.documentElement.scrollTop) || (null == i ? void 0 : i.body) && (null == (n = SI(i.body)) ? void 0 : n.scrollTop) || (null == (o = null == i ? void 0 : i.body) ? void 0 : o.scrollTop) || 0
};
}
function DI() {
return window.innerHeight || document.documentElement && document.documentElement.clientHeight || document.body && document.body.clientHeight;
}
function jI() {
return window.innerWidth || document.documentElement && document.documentElement.clientWidth || document.body && document.body.clientWidth;
}
function FI(e) {
return e ? e.nodeType === e.ELEMENT_NODE ? e : SI(e) : null;
}
function $I(e, t, r, n) {
if (!e) return !1;
var o = FI(e);
if (!o) return !1;
try {
if ("string" == typeof t) {
if (o.classList.contains(t)) return !0;
if (n && null !== o.closest("." + t)) return !0;
} else if (zx(o, t, n)) return !0;
} catch (e) {}
if (r) {
if (o.matches(r)) return !0;
if (n && null !== o.closest(r)) return !0;
}
return !1;
}
function BI(e, t, r) {
return !("TITLE" !== e.tagName || !r.headTitleMutations) || -2 === t.getId(e);
}
function zI(e, t) {
if (fx(e)) return !1;
var r = t.getId(e);
if (!t.has(r)) return !0;
var n = xI(e);
return (!n || n.nodeType !== e.DOCUMENT_NODE) && (!n || zI(n, t));
}
function VI(e) {
return Boolean(e.changedTouches);
}
function UI(e, t) {
return Boolean("IFRAME" === e.nodeName && t.getMeta(e));
}
function qI(e, t) {
return Boolean("LINK" === e.nodeName && e.nodeType === e.ELEMENT_NODE && e.getAttribute && "stylesheet" === e.getAttribute("rel") && t.getMeta(e));
}
function WI(e) {
return !!e && ($_(e, uI) && "shadowRoot" in e ? Boolean(e.shadowRoot) : Boolean(TI(e)));
}
/[1-9][0-9]{12}/.test(Date.now().toString()) || (NI = function() {
return (/* @__PURE__ */ new Date()).getTime();
});
var HI = function() {
function e() {
Z_(this, "id", 1), Z_(this, "styleIDMap", /* @__PURE__ */ new WeakMap()), Z_(this, "idStyleMap", /* @__PURE__ */ new Map());
}
var t = e.prototype;
return t.getId = function(e) {
var t;
return null != (t = this.styleIDMap.get(e)) ? t : -1;
}, t.has = function(e) {
return this.styleIDMap.has(e);
}, t.add = function(e, t) {
return this.has(e) ? this.getId(e) : (r = void 0 === t ? this.id++ : t, this.styleIDMap.set(e, r), this.idStyleMap.set(r, e), r);
var r;
}, t.getStyle = function(e) {
return this.idStyleMap.get(e) || null;
}, t.reset = function() {
this.styleIDMap = /* @__PURE__ */ new WeakMap(), this.idStyleMap = /* @__PURE__ */ new Map(), this.id = 1;
}, t.generateId = function() {
return this.id++;
}, t.remove = function(e) {
var t = this.styleIDMap.get(e);
return void 0 !== t && (this.styleIDMap.delete(e), this.idStyleMap.delete(t), !0);
}, e;
}();
function GI(e) {
var t;
var r = null;
return "getRootNode" in e && (null == (t = OI(e)) ? void 0 : t.nodeType) === Node.DOCUMENT_FRAGMENT_NODE && EI(OI(e)) && (r = EI(OI(e))), r;
}
function KI(e) {
var t = e.ownerDocument;
return !!t && (CI(t, e) || function(e) {
var t = e.ownerDocument;
if (!t) return !1;
return CI(t, function(e) {
for (var t, r = e; t = GI(r);) r = t;
return r;
}(e));
}(e));
}
var YI = function(e) {
return e[e.DomContentLoaded = 0] = "DomContentLoaded", e[e.Load = 1] = "Load", e[e.FullSnapshot = 2] = "FullSnapshot", e[e.IncrementalSnapshot = 3] = "IncrementalSnapshot", e[e.Meta = 4] = "Meta", e[e.Custom = 5] = "Custom", e[e.Plugin = 6] = "Plugin", e;
}(YI || {});
var ZI = function(e) {
return e[e.Mutation = 0] = "Mutation", e[e.MouseMove = 1] = "MouseMove", e[e.MouseInteraction = 2] = "MouseInteraction", e[e.Scroll = 3] = "Scroll", e[e.ViewportResize = 4] = "ViewportResize", e[e.Input = 5] = "Input", e[e.TouchMove = 6] = "TouchMove", e[e.MediaInteraction = 7] = "MediaInteraction", e[e.StyleSheetRule = 8] = "StyleSheetRule", e[e.CanvasMutation = 9] = "CanvasMutation", e[e.Font = 10] = "Font", e[e.Log = 11] = "Log", e[e.Drag = 12] = "Drag", e[e.StyleDeclaration = 13] = "StyleDeclaration", e[e.Selection = 14] = "Selection", e[e.AdoptedStyleSheet = 15] = "AdoptedStyleSheet", e[e.CustomElement = 16] = "CustomElement", e;
}(ZI || {});
var XI = function(e) {
return e[e.MouseUp = 0] = "MouseUp", e[e.MouseDown = 1] = "MouseDown", e[e.Click = 2] = "Click", e[e.ContextMenu = 3] = "ContextMenu", e[e.DblClick = 4] = "DblClick", e[e.Focus = 5] = "Focus", e[e.Blur = 6] = "Blur", e[e.TouchStart = 7] = "TouchStart", e[e.TouchMove_Departed = 8] = "TouchMove_Departed", e[e.TouchEnd = 9] = "TouchEnd", e[e.TouchCancel = 10] = "TouchCancel", e;
}(XI || {});
var JI = function(e) {
return e[e.Mouse = 0] = "Mouse", e[e.Pen = 1] = "Pen", e[e.Touch = 2] = "Touch", e;
}(JI || {});
var QI = function(e) {
return e[e["2D"] = 0] = "2D", e[e.WebGL = 1] = "WebGL", e[e.WebGL2 = 2] = "WebGL2", e;
}(QI || {});
var eM = function(e) {
return e[e.Play = 0] = "Play", e[e.Pause = 1] = "Pause", e[e.Seeked = 2] = "Seeked", e[e.VolumeChange = 3] = "VolumeChange", e[e.RateChange = 4] = "RateChange", e;
}(eM || {});
var tM = function(e) {
return e[e.Document = 0] = "Document", e[e.DocumentType = 1] = "DocumentType", e[e.Element = 2] = "Element", e[e.Text = 3] = "Text", e[e.CDATA = 4] = "CDATA", e[e.Comment = 5] = "Comment", e;
}(tM || {});
function rM(e) {
return "__ln" in e;
}
var nM;
var oM = function() {
function e() {
Z_(this, "length", 0), Z_(this, "head", null), Z_(this, "tail", null);
}
var t = e.prototype;
return t.get = function(e) {
if (e >= this.length) throw new Error("Position outside of list range");
for (var t = this.head, r = 0; r < e; r++) t = (null == t ? void 0 : t.next) || null;
return t;
}, t.addNode = function(e) {
var t = {
value: e,
previous: null,
next: null
};
if (e.__ln = t, e.previousSibling && rM(e.previousSibling)) {
var r = e.previousSibling.__ln.next;
t.next = r, t.previous = e.previousSibling.__ln, e.previousSibling.__ln.next = t, r && (r.previous = t);
} else if (e.nextSibling && rM(e.nextSibling) && e.nextSibling.__ln.previous) {
var n = e.nextSibling.__ln.previous;
t.previous = n, t.next = e.nextSibling.__ln, e.nextSibling.__ln.previous = t, n && (n.next = t);
} else this.head && (this.head.previous = t), t.next = this.head, this.head = t;
null === t.next && (this.tail = t), this.length++;
}, t.removeNode = function(e) {
var t = e.__ln;
this.head && (t.previous ? (t.previous.next = t.next, t.next ? t.next.previous = t.previous : this.tail = t.previous) : (this.head = t.next, this.head ? this.head.previous = null : this.tail = null), e.__ln && delete e.__ln, this.length--);
}, e;
}();
var iM = function(e, t) {
return e + "@" + t;
};
var sM = function() {
function e() {
var e = this;
Z_(this, "frozen", !1), Z_(this, "locked", !1), Z_(this, "texts", []), Z_(this, "attributes", []), Z_(this, "attributeMap", /* @__PURE__ */ new WeakMap()), Z_(this, "removes", []), Z_(this, "mapRemoves", []), Z_(this, "movedMap", {}), Z_(this, "addedSet", /* @__PURE__ */ new Set()), Z_(this, "movedSet", /* @__PURE__ */ new Set()), Z_(this, "droppedSet", /* @__PURE__ */ new Set()), Z_(this, "removesSubTreeCache", /* @__PURE__ */ new Set()), Z_(this, "mutationCb"), Z_(this, "blockClass"), Z_(this, "blockSelector"), Z_(this, "maskTextClass"), Z_(this, "maskTextSelector"), Z_(this, "inlineStylesheet"), Z_(this, "maskInputOptions"), Z_(this, "maskTextFn"), Z_(this, "maskInputFn"), Z_(this, "keepIframeSrcFn"), Z_(this, "recordCanvas"), Z_(this, "inlineImages"), Z_(this, "slimDOMOptions"), Z_(this, "dataURLOptions"), Z_(this, "doc"), Z_(this, "mirror"), Z_(this, "iframeManager"), Z_(this, "stylesheetManager"), Z_(this, "shadowDomManager"), Z_(this, "canvasManager"), Z_(this, "processedNodeManager"), Z_(this, "unattachedDoc"), Z_(this, "processMutations", function(t) {
t.forEach(e.processMutation), e.emit();
}), Z_(this, "emit", function() {
if (!e.frozen && !e.locked) {
for (var t = [], r = /* @__PURE__ */ new Set(), n = new oM(), o = function(t) {
for (var r = t, n = -2; -2 === n;) n = (r = r && r.nextSibling) && e.mirror.getId(r);
return n;
}, i = function(i) {
var s = xI(i);
if (s && KI(i)) {
var a = !1;
if (i.nodeType === Node.TEXT_NODE) {
var l = s.tagName;
if ("TEXTAREA" === l) return;
"STYLE" === l && e.addedSet.has(s) && (a = !0);
}
var c = fx(s) ? e.mirror.getId(GI(i)) : e.mirror.getId(s);
var u = o(i);
if (-1 === c || -1 === u) return n.addNode(i);
var p = Wx(i, {
doc: e.doc,
mirror: e.mirror,
blockClass: e.blockClass,
blockSelector: e.blockSelector,
maskTextClass: e.maskTextClass,
maskTextSelector: e.maskTextSelector,
skipChild: !0,
newlyAddedElement: !0,
inlineStylesheet: e.inlineStylesheet,
maskInputOptions: e.maskInputOptions,
maskTextFn: e.maskTextFn,
maskInputFn: e.maskInputFn,
slimDOMOptions: e.slimDOMOptions,
dataURLOptions: e.dataURLOptions,
recordCanvas: e.recordCanvas,
inlineImages: e.inlineImages,
onSerialize: function(t) {
UI(t, e.mirror) && e.iframeManager.addIframe(t), qI(t, e.mirror) && e.stylesheetManager.trackLinkElement(t), WI(i) && e.shadowDomManager.addShadowRoot(TI(i), e.doc);
},
onIframeLoad: function(t, r) {
e.iframeManager.attachIframe(t, r), e.shadowDomManager.observeAttachShadow(t);
},
onStylesheetLoad: function(t, r) {
e.stylesheetManager.attachLinkElement(t, r);
},
cssCaptured: a
});
p && (t.push({
parentId: c,
nextId: u,
node: p
}), r.add(p.id));
}
}; e.mapRemoves.length;) {
var s = e.mapRemoves.shift();
e.cleanupRemovedNode(s), e.mirror.removeNodeFromMap(s);
}
for (var a, l = W_(e.movedSet); !(a = l()).done;) {
var c = a.value;
lM(e.removesSubTreeCache, c) && !e.movedSet.has(xI(c)) || i(c);
}
for (var u, p = W_(e.addedSet); !(u = p()).done;) {
var d = u.value;
cM(e.droppedSet, d) || lM(e.removesSubTreeCache, d) ? cM(e.movedSet, d) ? i(d) : e.droppedSet.add(d) : i(d);
}
for (var f = null; n.length;) {
var h = null;
if (f) {
var m = e.mirror.getId(xI(f.value));
var g = o(f.value);
-1 !== m && -1 !== g && (h = f);
}
if (!h) for (var v = n.tail; v;) {
var y = v;
if (v = v.previous, y) {
var b = e.mirror.getId(xI(y.value));
if (-1 === o(y.value)) continue;
if (-1 !== b) {
h = y;
break;
}
var w = y.value;
var _ = xI(w);
if (_ && _.nodeType === Node.DOCUMENT_FRAGMENT_NODE) {
var x = EI(_);
if (-1 !== e.mirror.getId(x)) {
h = y;
break;
}
}
}
}
if (!h) {
for (; n.head;) n.removeNode(n.head.value);
break;
}
f = h.previous, n.removeNode(h.value), i(h.value);
}
var S = {
texts: e.texts.map(function(t) {
var r = t.node;
var n = xI(r);
return n && "TEXTAREA" === n.tagName && e.genTextAreaValueMutation(n), {
id: e.mirror.getId(r),
value: t.value
};
}).filter(function(e) {
return !r.has(e.id);
}).filter(function(t) {
return e.mirror.has(t.id);
}),
attributes: e.attributes.map(function(t) {
var r = t.attributes;
if ("string" == typeof r.style) {
var n = JSON.stringify(t.styleDiff);
var o = JSON.stringify(t._unchangedStyles);
n.length < r.style.length && (n + o).split("var(").length === r.style.split("var(").length && (r.style = t.styleDiff);
}
return {
id: e.mirror.getId(t.node),
attributes: r
};
}).filter(function(e) {
return !r.has(e.id);
}).filter(function(t) {
return e.mirror.has(t.id);
}),
removes: e.removes,
adds: t
};
(S.texts.length || S.attributes.length || S.removes.length || S.adds.length) && (e.texts = [], e.attributes = [], e.attributeMap = /* @__PURE__ */ new WeakMap(), e.removes = [], e.addedSet = /* @__PURE__ */ new Set(), e.movedSet = /* @__PURE__ */ new Set(), e.droppedSet = /* @__PURE__ */ new Set(), e.removesSubTreeCache = /* @__PURE__ */ new Set(), e.movedMap = {}, e.mutationCb(S));
}
}), Z_(this, "genTextAreaValueMutation", function(t) {
var r = e.attributeMap.get(t);
r || (r = {
node: t,
attributes: {},
styleDiff: {},
_unchangedStyles: {}
}, e.attributes.push(r), e.attributeMap.set(t, r));
var n = Array.from(_I(t), function(e) {
return kI(e) || "";
}).join("");
r.attributes.value = yx({
element: t,
maskInputOptions: e.maskInputOptions,
tagName: t.tagName,
type: _x(t),
value: n,
maskInputFn: e.maskInputFn
});
}), Z_(this, "processMutation", function(t) {
if (!BI(t.target, e.mirror, e.slimDOMOptions)) switch (t.type) {
case "characterData":
var r = kI(t.target);
$I(t.target, e.blockClass, e.blockSelector, !1) || r === t.oldValue || e.texts.push({
value: Vx(t.target, e.maskTextClass, e.maskTextSelector, !0) && r ? e.maskTextFn ? e.maskTextFn(r, FI(t.target)) : r.replace(/[\S]/g, "*") : r,
node: t.target
});
break;
case "attributes":
var n = t.target;
var o = t.attributeName;
var i = t.target.getAttribute(o);
if ("value" === o) {
var s = _x(n);
i = yx({
element: n,
maskInputOptions: e.maskInputOptions,
tagName: n.tagName,
type: s,
value: i,
maskInputFn: e.maskInputFn
});
}
if ($I(t.target, e.blockClass, e.blockSelector, !1) || i === t.oldValue) return;
var a = e.attributeMap.get(t.target);
if ("IFRAME" === n.tagName && "src" === o && !e.keepIframeSrcFn(i)) {
if (n.contentDocument) return;
o = "rr_src";
}
if (a || (a = {
node: t.target,
attributes: {},
styleDiff: {},
_unchangedStyles: {}
}, e.attributes.push(a), e.attributeMap.set(t.target, a)), "type" === o && "INPUT" === n.tagName && "password" === (t.oldValue || "").toLowerCase() && n.setAttribute("data-rr-is-password", "true"), !Bx(n.tagName, o)) if (a.attributes[o] = $x(e.doc, bx(n.tagName), bx(o), i), "style" === o) {
if (!e.unattachedDoc) try {
e.unattachedDoc = document.implementation.createHTMLDocument();
} catch (t) {
e.unattachedDoc = e.doc;
}
var l = e.unattachedDoc.createElement("span");
t.oldValue && l.setAttribute("style", t.oldValue);
for (var c, u = W_(Array.from(n.style)); !(c = u()).done;) {
var p = c.value;
var d = n.style.getPropertyValue(p);
var f = n.style.getPropertyPriority(p);
d !== l.style.getPropertyValue(p) || f !== l.style.getPropertyPriority(p) ? a.styleDiff[p] = "" === f ? d : [d, f] : a._unchangedStyles[p] = [d, f];
}
for (var h, m = W_(Array.from(l.style)); !(h = m()).done;) {
var g = h.value;
"" === n.style.getPropertyValue(g) && (a.styleDiff[g] = !1);
}
} else "open" === o && "DIALOG" === n.tagName && (n.matches("dialog:modal") ? a.attributes.rr_open_mode = "modal" : a.attributes.rr_open_mode = "non-modal");
break;
case "childList":
if ($I(t.target, e.blockClass, e.blockSelector, !0)) return;
if ("TEXTAREA" === t.target.tagName) return void e.genTextAreaValueMutation(t.target);
t.addedNodes.forEach(function(r) {
return e.genAdds(r, t.target);
}), t.removedNodes.forEach(function(r) {
var n = e.mirror.getId(r);
var o = fx(t.target) ? e.mirror.getId(EI(t.target)) : e.mirror.getId(t.target);
$I(t.target, e.blockClass, e.blockSelector, !1) || BI(r, e.mirror, e.slimDOMOptions) || !function(e, t) {
return -1 !== t.getId(e);
}(r, e.mirror) || (e.addedSet.has(r) ? (aM(e.addedSet, r), e.droppedSet.add(r)) : e.addedSet.has(t.target) && -1 === n || zI(t.target, e.mirror) || (e.movedSet.has(r) && e.movedMap[iM(n, o)] ? aM(e.movedSet, r) : (e.removes.push({
parentId: o,
id: n,
isShadow: !(!fx(t.target) || !hx(t.target)) || void 0
}), function(e, t) {
for (var r = [e]; r.length;) {
var n = r.pop();
t.has(n) || (t.add(n), _I(n).forEach(function(e) {
return r.push(e);
}));
}
}(r, e.removesSubTreeCache))), e.mapRemoves.push(r));
});
}
}), Z_(this, "genAdds", function(t, r) {
if (!e.processedNodeManager.inOtherBuffer(t, e) && !e.addedSet.has(t) && !e.movedSet.has(t)) {
if (e.mirror.hasNode(t)) {
if (BI(t, e.mirror, e.slimDOMOptions)) return;
e.movedSet.add(t);
var n = null;
r && e.mirror.hasNode(r) && (n = e.mirror.getId(r)), n && -1 !== n && (e.movedMap[iM(e.mirror.getId(t), n)] = !0);
} else e.addedSet.add(t), e.droppedSet.delete(t);
$I(t, e.blockClass, e.blockSelector, !1) || (_I(t).forEach(function(t) {
return e.genAdds(t);
}), WI(t) && _I(TI(t)).forEach(function(r) {
e.processedNodeManager.add(r, e), e.genAdds(r, t);
}));
}
}), Z_(this, "cleanupRemovedNode", function(t) {
if ("IFRAME" === t.nodeName) try {
e.iframeManager.removeIframe(t);
} catch (e) {}
else try {
e.stylesheetManager.cleanupStylesheetsForRemovedNode(t);
} catch (e) {}
t.childNodes.forEach(function(t) {
e.cleanupRemovedNode(t);
});
});
}
var t = e.prototype;
return t.init = function(e) {
var t = this;
[
"mutationCb",
"blockClass",
"blockSelector",
"maskTextClass",
"maskTextSelector",
"inlineStylesheet",
"maskInputOptions",
"maskTextFn",
"maskInputFn",
"keepIframeSrcFn",
"recordCanvas",
"inlineImages",
"slimDOMOptions",
"dataURLOptions",
"doc",
"mirror",
"iframeManager",
"stylesheetManager",
"shadowDomManager",
"canvasManager",
"processedNodeManager"
].forEach(function(r) {
t[r] = e[r];
});
}, t.freeze = function() {
this.frozen = !0, this.canvasManager.freeze();
}, t.unfreeze = function() {
this.frozen = !1, this.canvasManager.unfreeze(), this.emit();
}, t.isFrozen = function() {
return this.frozen;
}, t.lock = function() {
this.locked = !0, this.canvasManager.lock();
}, t.unlock = function() {
this.locked = !1, this.canvasManager.unlock(), this.emit();
}, t.reset = function() {
this.shadowDomManager.reset(), this.canvasManager.reset();
}, t.getDoc = function() {
return this.doc;
}, e;
}();
function aM(e, t) {
e.delete(t), _I(t).forEach(function(t) {
return aM(e, t);
});
}
function lM(e, t, r) {
return 0 !== e.size && function(e, t) {
var r = xI(t);
return !!r && e.has(r);
}(e, t);
}
function cM(e, t) {
return 0 !== e.size && uM(e, t);
}
function uM(e, t) {
var r = xI(t);
return !!r && (!!e.has(r) || uM(e, r));
}
var pM = function(e) {
return nM ? function() {
for (var t = arguments.length, r = new Array(t), n = 0; n < t; n++) r[n] = arguments[n];
try {
return e.apply(void 0, [].concat(r));
} catch (e) {
if (nM && !0 === nM(e)) return;
throw e;
}
} : e;
};
var dM = [];
function fM(e) {
try {
if ("composedPath" in e) {
var t = e.composedPath();
if (t.length) return t[0];
} else if ("path" in e && e.path.length) return e.path[0];
} catch (e) {}
return e && e.target;
}
function hM(e, t) {
var r = new sM();
dM.push(r), r.init(e);
var n = new (bI())(pM(r.processMutations.bind(r)));
return n.observe(t, {
attributes: !0,
attributeOldValue: !0,
characterData: !0,
characterDataOldValue: !0,
childList: !0,
subtree: !0
}), n;
}
function mM(e) {
var t = e.scrollCb;
var r = e.doc;
var n = e.mirror;
var o = e.blockClass;
var i = e.blockSelector;
var s = e.sampling;
return RI("scroll", pM(AI(pM(function(e) {
var s = fM(e);
if (s && !$I(s, o, i, !0)) {
var a = n.getId(s);
if (s === r && r.defaultView) {
var l = LI(r.defaultView);
t({
id: a,
x: l.left,
y: l.top
});
} else t({
id: a,
x: s.scrollLeft,
y: s.scrollTop
});
}
}), s.scroll || 100)), r);
}
var gM = [
"INPUT",
"TEXTAREA",
"SELECT"
];
var vM = /* @__PURE__ */ new WeakMap();
function yM(e) {
return function(e, t) {
if (xM("CSSGroupingRule") && $_(e.parentRule, CSSGroupingRule) || xM("CSSMediaRule") && $_(e.parentRule, CSSMediaRule) || xM("CSSSupportsRule") && $_(e.parentRule, CSSSupportsRule) || xM("CSSConditionRule") && $_(e.parentRule, CSSConditionRule)) {
var r = Array.from(e.parentRule.cssRules).indexOf(e);
t.unshift(r);
} else if (e.parentStyleSheet) {
var n = Array.from(e.parentStyleSheet.cssRules).indexOf(e);
t.unshift(n);
}
return t;
}(e, []);
}
function bM(e, t, r) {
var n;
var o;
return e ? (e.ownerNode ? n = t.getId(e.ownerNode) : o = r.getId(e), {
styleId: o,
id: n
}) : {};
}
function wM(e, t) {
var r;
var n;
var o;
var i;
var s = e.mirror;
var a = e.stylesheetManager;
i = "#document" === t.nodeName ? s.getId(t) : s.getId(EI(t));
var l = "#document" === t.nodeName ? null == (r = t.defaultView) ? void 0 : r.Document : null == (o = null == (n = t.ownerDocument) ? void 0 : n.defaultView) ? void 0 : o.ShadowRoot;
var c = (null == l ? void 0 : l.prototype) ? Object.getOwnPropertyDescriptor(null == l ? void 0 : l.prototype, "adoptedStyleSheets") : void 0;
return null !== i && -1 !== i && l && c ? (Object.defineProperty(t, "adoptedStyleSheets", {
configurable: c.configurable,
enumerable: c.enumerable,
get: function() {
var e;
return null == (e = c.get) ? void 0 : e.call(this);
},
set: function(e) {
var t;
var r = null == (t = c.set) ? void 0 : t.call(this, e);
if (null !== i && -1 !== i) try {
a.adoptStyleSheets(e, i);
} catch (e) {}
return r;
}
}), pM(function() {
Object.defineProperty(t, "adoptedStyleSheets", {
configurable: c.configurable,
enumerable: c.enumerable,
get: c.get,
set: c.set
});
})) : function() {};
}
function _M(e, t) {
void 0 === t && (t = {});
var r;
var n = e.doc.defaultView;
if (!n) return function() {};
(function(e, t) {
var r = e.mutationCb;
var n = e.mousemoveCb;
var o = e.mouseInteractionCb;
var i = e.scrollCb;
var s = e.viewportResizeCb;
var a = e.inputCb;
var l = e.mediaInteractionCb;
var c = e.styleSheetRuleCb;
var u = e.styleDeclarationCb;
var p = e.canvasMutationCb;
var d = e.fontCb;
var f = e.selectionCb;
var h = e.customElementCb;
e.mutationCb = function() {
for (var e = arguments.length, n = new Array(e), o = 0; o < e; o++) n[o] = arguments[o];
var i;
t.mutation && (i = t).mutation.apply(i, [].concat(n)), r.apply(void 0, [].concat(n));
}, e.mousemoveCb = function() {
for (var e = arguments.length, r = new Array(e), o = 0; o < e; o++) r[o] = arguments[o];
var i;
t.mousemove && (i = t).mousemove.apply(i, [].concat(r)), n.apply(void 0, [].concat(r));
}, e.mouseInteractionCb = function() {
for (var e = arguments.length, r = new Array(e), n = 0; n < e; n++) r[n] = arguments[n];
var i;
t.mouseInteraction && (i = t).mouseInteraction.apply(i, [].concat(r)), o.apply(void 0, [].concat(r));
}, e.scrollCb = function() {
for (var e = arguments.length, r = new Array(e), n = 0; n < e; n++) r[n] = arguments[n];
var o;
t.scroll && (o = t).scroll.apply(o, [].concat(r)), i.apply(void 0, [].concat(r));
}, e.viewportResizeCb = function() {
for (var e = arguments.length, r = new Array(e), n = 0; n < e; n++) r[n] = arguments[n];
var o;
t.viewportResize && (o = t).viewportResize.apply(o, [].concat(r)), s.apply(void 0, [].concat(r));
}, e.inputCb = function() {
for (var e = arguments.length, r = new Array(e), n = 0; n < e; n++) r[n] = arguments[n];
var o;
t.input && (o = t).input.apply(o, [].concat(r)), a.apply(void 0, [].concat(r));
}, e.mediaInteractionCb = function() {
for (var e = arguments.length, r = new Array(e), n = 0; n < e; n++) r[n] = arguments[n];
var o;
t.mediaInteaction && (o = t).mediaInteaction.apply(o, [].concat(r)), l.apply(void 0, [].concat(r));
}, e.styleSheetRuleCb = function() {
for (var e = arguments.length, r = new Array(e), n = 0; n < e; n++) r[n] = arguments[n];
var o;
t.styleSheetRule && (o = t).styleSheetRule.apply(o, [].concat(r)), c.apply(void 0, [].concat(r));
}, e.styleDeclarationCb = function() {
for (var e = arguments.length, r = new Array(e), n = 0; n < e; n++) r[n] = arguments[n];
var o;
t.styleDeclaration && (o = t).styleDeclaration.apply(o, [].concat(r)), u.apply(void 0, [].concat(r));
}, e.canvasMutationCb = function() {
for (var e = arguments.length, r = new Array(e), n = 0; n < e; n++) r[n] = arguments[n];
var o;
t.canvasMutation && (o = t).canvasMutation.apply(o, [].concat(r)), p.apply(void 0, [].concat(r));
}, e.fontCb = function() {
for (var e = arguments.length, r = new Array(e), n = 0; n < e; n++) r[n] = arguments[n];
var o;
t.font && (o = t).font.apply(o, [].concat(r)), d.apply(void 0, [].concat(r));
}, e.selectionCb = function() {
for (var e = arguments.length, r = new Array(e), n = 0; n < e; n++) r[n] = arguments[n];
var o;
t.selection && (o = t).selection.apply(o, [].concat(r)), f.apply(void 0, [].concat(r));
}, e.customElementCb = function() {
for (var e = arguments.length, r = new Array(e), n = 0; n < e; n++) r[n] = arguments[n];
var o;
t.customElement && (o = t).customElement.apply(o, [].concat(r)), h.apply(void 0, [].concat(r));
};
})(e, t), e.recordDOM && (r = hM(e, e.doc));
var o;
var i;
var s;
var a;
var l;
var c;
var u;
var p;
var d;
var f = function(e) {
var t = e.mousemoveCb;
var r = e.sampling;
var n = e.doc;
var o = e.mirror;
if (!1 === r.mousemove) return function() {};
var i;
var s = "number" == typeof r.mousemove ? r.mousemove : 50;
var a = "number" == typeof r.mousemoveCallback ? r.mousemoveCallback : 500;
var l = [];
var c = AI(pM(function(e) {
var r = Date.now() - i;
t(l.map(function(e) {
return e.timeOffset -= r, e;
}), e), l = [], i = null;
}), a);
var u = pM(AI(pM(function(e) {
var t = fM(e);
var r = VI(e) ? e.changedTouches[0] : e;
var n = r.clientX;
var s = r.clientY;
i || (i = NI()), l.push({
x: n,
y: s,
id: o.getId(t),
timeOffset: NI() - i
}), c("undefined" != typeof DragEvent && $_(e, DragEvent) ? ZI.Drag : $_(e, MouseEvent) ? ZI.MouseMove : ZI.TouchMove);
}), s, { trailing: !1 }));
var p = [
RI("mousemove", u, n),
RI("touchmove", u, n),
RI("drag", u, n)
];
return pM(function() {
p.forEach(function(e) {
return e();
});
});
}(e);
var h = function(e) {
var t = e.mouseInteractionCb;
var r = e.doc;
var n = e.mirror;
var o = e.blockClass;
var i = e.blockSelector;
var s = e.sampling;
if (!1 === s.mouseInteraction) return function() {};
var a = !0 === s.mouseInteraction || void 0 === s.mouseInteraction ? {} : s.mouseInteraction;
var l = [];
var c = null;
return Object.keys(XI).filter(function(e) {
return Number.isNaN(Number(e)) && !e.endsWith("_Departed") && !1 !== a[e];
}).forEach(function(e) {
var s = bx(e);
var a = function(e) {
return function(r) {
var s = fM(r);
if (!$I(s, o, i, !0)) {
var a = null;
var l = e;
if ("pointerType" in r) {
switch (r.pointerType) {
case "mouse":
a = JI.Mouse;
break;
case "touch":
a = JI.Touch;
break;
case "pen": a = JI.Pen;
}
a === JI.Touch && (XI[e] === XI.MouseDown ? l = "TouchStart" : XI[e] === XI.MouseUp && (l = "TouchEnd"));
} else VI(r) && (a = JI.Touch);
null !== a ? (c = a, (l.startsWith("Touch") && a === JI.Touch || l.startsWith("Mouse") && a === JI.Mouse) && (a = null)) : XI[e] === XI.Click && (a = c, c = null);
var u = VI(r) ? r.changedTouches[0] : r;
if (u) {
var p = n.getId(s);
var d = u.clientX;
var f = u.clientY;
pM(t)(D_({
type: XI[l],
id: p,
x: d,
y: f
}, null !== a && { pointerType: a }));
}
}
};
}(e);
if (window.PointerEvent) switch (XI[e]) {
case XI.MouseDown:
case XI.MouseUp:
s = s.replace("mouse", "pointer");
break;
case XI.TouchStart:
case XI.TouchEnd: return;
}
l.push(RI(s, a, r));
}), pM(function() {
l.forEach(function(e) {
return e();
});
});
}(e);
var m = mM(e);
var g = function(e, t) {
var r = e.viewportResizeCb;
var n = t.win;
var o = -1;
var i = -1;
return RI("resize", pM(AI(pM(function() {
var e = DI();
var t = jI();
o === e && i === t || (r({
width: Number(t),
height: Number(e)
}), o = e, i = t);
}), 200)), n);
}(e, { win: n });
var v = function(e) {
var t = e.inputCb;
var r = e.doc;
var n = e.mirror;
var o = e.blockClass;
var i = e.blockSelector;
var s = e.ignoreClass;
var a = e.ignoreSelector;
var l = e.maskInputOptions;
var c = e.maskInputFn;
var u = e.sampling;
var p = e.userTriggeredOnInput;
function d(e) {
var t = fM(e);
var n = e.isTrusted;
var u = t && t.tagName;
if (t && "OPTION" === u && (t = SI(t)), t && u && !(gM.indexOf(u) < 0) && !$I(t, o, i, !0) && !(t.classList.contains(s) || a && t.matches(a))) {
var d = t.value;
var h = !1;
var m = _x(t) || "";
"radio" === m || "checkbox" === m ? h = t.checked : (l[u.toLowerCase()] || l[m]) && (d = yx({
element: t,
maskInputOptions: l,
tagName: u,
type: m,
value: d,
maskInputFn: c
})), f(t, p ? {
text: d,
isChecked: h,
userTriggered: n
} : {
text: d,
isChecked: h
});
var g = t.name;
"radio" === m && g && h && r.querySelectorAll("input[type=\"radio\"][name=\"" + g + "\"]").forEach(function(e) {
if (e !== t) {
var r = e.value;
f(e, p ? {
text: r,
isChecked: !h,
userTriggered: !1
} : {
text: r,
isChecked: !h
});
}
});
}
}
function f(e, r) {
var o = vM.get(e);
if (!o || o.text !== r.text || o.isChecked !== r.isChecked) {
vM.set(e, r);
var i = n.getId(e);
pM(t)(D_({}, r, { id: i }));
}
}
var h = ("last" === u.input ? ["change"] : ["input", "change"]).map(function(e) {
return RI(e, pM(d), r);
});
var m = r.defaultView;
if (!m) return function() {
h.forEach(function(e) {
return e();
});
};
var g;
var v = m.Object.getOwnPropertyDescriptor(m.HTMLInputElement.prototype, "value");
var y = [
[m.HTMLInputElement.prototype, "value"],
[m.HTMLInputElement.prototype, "checked"],
[m.HTMLSelectElement.prototype, "value"],
[m.HTMLTextAreaElement.prototype, "value"],
[m.HTMLSelectElement.prototype, "selectedIndex"],
[m.HTMLOptionElement.prototype, "selected"]
];
return v && v.set && (g = h).push.apply(g, [].concat(y.map(function(e) {
return PI(e[0], e[1], { set: function() {
pM(d)({
target: this,
isTrusted: !1
});
} }, !1, m);
}))), pM(function() {
h.forEach(function(e) {
return e();
});
});
}(e);
var y = (i = (o = e).mediaInteractionCb, s = o.blockClass, a = o.blockSelector, l = o.mirror, c = o.sampling, u = o.doc, p = pM(function(e) {
return AI(pM(function(t) {
var r = fM(t);
if (r && !$I(r, s, a, !0)) {
var n = r.currentTime;
var o = r.volume;
var c = r.muted;
var u = r.playbackRate;
var p = r.loop;
i({
type: e,
id: l.getId(r),
currentTime: n,
volume: o,
muted: c,
playbackRate: u,
loop: p
});
}
}), c.media || 500);
}), d = [
RI("play", p(eM.Play), u),
RI("pause", p(eM.Pause), u),
RI("seeked", p(eM.Seeked), u),
RI("volumechange", p(eM.VolumeChange), u),
RI("ratechange", p(eM.RateChange), u)
], pM(function() {
d.forEach(function(e) {
return e();
});
}));
var b = function() {};
var w = function() {};
var _ = function() {};
var x = function() {};
e.recordDOM && (b = function(e, t) {
var r = e.styleSheetRuleCb;
var n = e.mirror;
var o = e.stylesheetManager;
var i = t.win;
if (!i.CSSStyleSheet || !i.CSSStyleSheet.prototype) return function() {};
var s = i.CSSStyleSheet.prototype.insertRule;
i.CSSStyleSheet.prototype.insertRule = new Proxy(s, { apply: pM(function(e, t, i) {
var s = i[0];
var a = i[1];
var l = bM(t, n, o.styleMirror);
var c = l.id;
var u = l.styleId;
return (c && -1 !== c || u && -1 !== u) && r({
id: c,
styleId: u,
adds: [{
rule: s,
index: a
}]
}), e.apply(t, i);
}) }), i.CSSStyleSheet.prototype.addRule = function(e, t, r) {
void 0 === r && (r = this.cssRules.length);
var n = e + " { " + t + " }";
return i.CSSStyleSheet.prototype.insertRule.apply(this, [n, r]);
};
var a;
var l;
var c = i.CSSStyleSheet.prototype.deleteRule;
i.CSSStyleSheet.prototype.deleteRule = new Proxy(c, { apply: pM(function(e, t, i) {
var s = i[0];
var a = bM(t, n, o.styleMirror);
var l = a.id;
var c = a.styleId;
return (l && -1 !== l || c && -1 !== c) && r({
id: l,
styleId: c,
removes: [{ index: s }]
}), e.apply(t, i);
}) }), i.CSSStyleSheet.prototype.removeRule = function(e) {
return i.CSSStyleSheet.prototype.deleteRule.apply(this, [e]);
}, i.CSSStyleSheet.prototype.replace && (a = i.CSSStyleSheet.prototype.replace, i.CSSStyleSheet.prototype.replace = new Proxy(a, { apply: pM(function(e, t, i) {
var s = i[0];
var a = bM(t, n, o.styleMirror);
var l = a.id;
var c = a.styleId;
return (l && -1 !== l || c && -1 !== c) && r({
id: l,
styleId: c,
replace: s
}), e.apply(t, i);
}) })), i.CSSStyleSheet.prototype.replaceSync && (l = i.CSSStyleSheet.prototype.replaceSync, i.CSSStyleSheet.prototype.replaceSync = new Proxy(l, { apply: pM(function(e, t, i) {
var s = i[0];
var a = bM(t, n, o.styleMirror);
var l = a.id;
var c = a.styleId;
return (l && -1 !== l || c && -1 !== c) && r({
id: l,
styleId: c,
replaceSync: s
}), e.apply(t, i);
}) }));
var u = {};
SM("CSSGroupingRule") ? u.CSSGroupingRule = i.CSSGroupingRule : (SM("CSSMediaRule") && (u.CSSMediaRule = i.CSSMediaRule), SM("CSSConditionRule") && (u.CSSConditionRule = i.CSSConditionRule), SM("CSSSupportsRule") && (u.CSSSupportsRule = i.CSSSupportsRule));
var p = {};
return Object.entries(u).forEach(function(e) {
var t = e[0];
var i = e[1];
p[t] = {
insertRule: i.prototype.insertRule,
deleteRule: i.prototype.deleteRule
}, i.prototype.insertRule = new Proxy(p[t].insertRule, { apply: pM(function(e, t, i) {
var s = i[0];
var a = i[1];
var l = bM(t.parentStyleSheet, n, o.styleMirror);
var c = l.id;
var u = l.styleId;
return (c && -1 !== c || u && -1 !== u) && r({
id: c,
styleId: u,
adds: [{
rule: s,
index: [].concat(yM(t), [a || 0])
}]
}), e.apply(t, i);
}) }), i.prototype.deleteRule = new Proxy(p[t].deleteRule, { apply: pM(function(e, t, i) {
var s = i[0];
var a = bM(t.parentStyleSheet, n, o.styleMirror);
var l = a.id;
var c = a.styleId;
return (l && -1 !== l || c && -1 !== c) && r({
id: l,
styleId: c,
removes: [{ index: [].concat(yM(t), [s]) }]
}), e.apply(t, i);
}) });
}), pM(function() {
i.CSSStyleSheet.prototype.insertRule = s, i.CSSStyleSheet.prototype.deleteRule = c, a && (i.CSSStyleSheet.prototype.replace = a), l && (i.CSSStyleSheet.prototype.replaceSync = l), Object.entries(u).forEach(function(e) {
var t = e[0];
var r = e[1];
r.prototype.insertRule = p[t].insertRule, r.prototype.deleteRule = p[t].deleteRule;
});
});
}(e, { win: n }), w = wM(e, e.doc), _ = function(e, t) {
var r = e.styleDeclarationCb;
var n = e.mirror;
var o = e.ignoreCSSAttributes;
var i = e.stylesheetManager;
var s = t.win;
var a = s.CSSStyleDeclaration.prototype.setProperty;
s.CSSStyleDeclaration.prototype.setProperty = new Proxy(a, { apply: pM(function(e, t, s) {
var l;
var c = s[0];
var u = s[1];
var p = s[2];
if (o.has(c)) return a.apply(t, [
c,
u,
p
]);
var d = bM(null == (l = t.parentRule) ? void 0 : l.parentStyleSheet, n, i.styleMirror);
var f = d.id;
var h = d.styleId;
return (f && -1 !== f || h && -1 !== h) && r({
id: f,
styleId: h,
set: {
property: c,
value: u,
priority: p
},
index: yM(t.parentRule)
}), e.apply(t, s);
}) });
var l = s.CSSStyleDeclaration.prototype.removeProperty;
return s.CSSStyleDeclaration.prototype.removeProperty = new Proxy(l, { apply: pM(function(e, t, s) {
var a;
var c = s[0];
if (o.has(c)) return l.apply(t, [c]);
var u = bM(null == (a = t.parentRule) ? void 0 : a.parentStyleSheet, n, i.styleMirror);
var p = u.id;
var d = u.styleId;
return (p && -1 !== p || d && -1 !== d) && r({
id: p,
styleId: d,
remove: { property: c },
index: yM(t.parentRule)
}), e.apply(t, s);
}) }), pM(function() {
s.CSSStyleDeclaration.prototype.setProperty = a, s.CSSStyleDeclaration.prototype.removeProperty = l;
});
}(e, { win: n }), e.collectFonts && (x = function(e) {
var t = e.fontCb;
var r = e.doc;
var n = r.defaultView;
if (!n) return function() {};
var o = [];
var i = /* @__PURE__ */ new WeakMap();
var s = n.FontFace;
n.FontFace = function(e, t, r) {
var n = new s(e, t, r);
return i.set(n, {
family: e,
buffer: "string" != typeof t,
descriptors: r,
fontSource: "string" == typeof t ? t : JSON.stringify(Array.from(new Uint8Array(t)))
}), n;
};
var a = wI(r.fonts, "add", function(e) {
return function(r) {
return setTimeout(pM(function() {
var e = i.get(r);
e && (t(e), i.delete(r));
}), 0), e.apply(this, [r]);
};
});
return o.push(function() {
n.FontFace = s;
}), o.push(a), pM(function() {
o.forEach(function(e) {
return e();
});
});
}(e)));
for (var S, k = function(e) {
var t = e.doc;
var r = e.mirror;
var n = e.blockClass;
var o = e.blockSelector;
var i = e.selectionCb;
var s = !0;
var a = pM(function() {
var e = t.getSelection();
if (!(!e || s && (null == e ? void 0 : e.isCollapsed))) {
s = e.isCollapsed || !1;
for (var a = [], l = e.rangeCount || 0, c = 0; c < l; c++) {
var u = e.getRangeAt(c);
var p = u.startContainer;
var d = u.startOffset;
var f = u.endContainer;
var h = u.endOffset;
$I(p, n, o, !0) || $I(f, n, o, !0) || a.push({
start: r.getId(p),
startOffset: d,
end: r.getId(f),
endOffset: h
});
}
i({ ranges: a });
}
});
return a(), RI("selectionchange", a);
}(e), C = function(e) {
var t = e.doc;
var r = e.customElementCb;
var n = t.defaultView;
return n && n.customElements ? wI(n.customElements, "define", function(e) {
return function(t, n, o) {
try {
r({ define: { name: t } });
} catch (e) {
console.warn("Custom element callback failed for " + t);
}
return e.apply(this, [
t,
n,
o
]);
};
}) : function() {};
}(e), O = [], E = W_(e.plugins); !(S = E()).done;) {
var T = S.value;
O.push(T.observer(T.callback, n, T.options));
}
return pM(function() {
dM.forEach(function(e) {
return e.reset();
}), null == r || r.disconnect(), f(), h(), m(), g(), v(), y(), b(), w(), _(), x(), k(), C(), O.forEach(function(e) {
return e();
});
});
}
function xM(e) {
return void 0 !== window[e];
}
function SM(e) {
return Boolean(void 0 !== window[e] && window[e].prototype && "insertRule" in window[e].prototype && "deleteRule" in window[e].prototype);
}
for (var kM = function() {
function e(e) {
Z_(this, "iframeIdToRemoteIdMap", /* @__PURE__ */ new WeakMap()), Z_(this, "iframeRemoteIdToIdMap", /* @__PURE__ */ new WeakMap()), this.generateIdFn = e;
}
var t = e.prototype;
return t.getId = function(e, t, r, n) {
var o = r || this.getIdToRemoteIdMap(e);
var i = n || this.getRemoteIdToIdMap(e);
var s = o.get(t);
return s || (s = this.generateIdFn(), o.set(t, s), i.set(s, t)), s;
}, t.getIds = function(e, t) {
var r = this;
var n = this.getIdToRemoteIdMap(e);
var o = this.getRemoteIdToIdMap(e);
return t.map(function(t) {
return r.getId(e, t, n, o);
});
}, t.getRemoteId = function(e, t, r) {
var n = r || this.getRemoteIdToIdMap(e);
return "number" != typeof t ? t : n.get(t) || -1;
}, t.getRemoteIds = function(e, t) {
var r = this;
var n = this.getRemoteIdToIdMap(e);
return t.map(function(t) {
return r.getRemoteId(e, t, n);
});
}, t.reset = function(e) {
if (!e) return this.iframeIdToRemoteIdMap = /* @__PURE__ */ new WeakMap(), void (this.iframeRemoteIdToIdMap = /* @__PURE__ */ new WeakMap());
this.iframeIdToRemoteIdMap.delete(e), this.iframeRemoteIdToIdMap.delete(e);
}, t.getIdToRemoteIdMap = function(e) {
var t = this.iframeIdToRemoteIdMap.get(e);
return t || (t = /* @__PURE__ */ new Map(), this.iframeIdToRemoteIdMap.set(e, t)), t;
}, t.getRemoteIdToIdMap = function(e) {
var t = this.iframeRemoteIdToIdMap.get(e);
return t || (t = /* @__PURE__ */ new Map(), this.iframeRemoteIdToIdMap.set(e, t)), t;
}, e;
}(), CM = function() {
function e(e) {
Z_(this, "iframes", /* @__PURE__ */ new WeakMap()), Z_(this, "crossOriginIframeMap", /* @__PURE__ */ new WeakMap()), Z_(this, "crossOriginIframeMirror", new kM(Px)), Z_(this, "crossOriginIframeStyleMirror"), Z_(this, "crossOriginIframeRootIdMap", /* @__PURE__ */ new WeakMap()), Z_(this, "iframeContentDocumentMap", /* @__PURE__ */ new WeakMap()), Z_(this, "iframeObserverCleanupMap", /* @__PURE__ */ new WeakMap()), Z_(this, "mirror"), Z_(this, "mutationCb"), Z_(this, "wrappedEmit"), Z_(this, "loadListener"), Z_(this, "stylesheetManager"), Z_(this, "recordCrossOriginIframes"), this.mutationCb = e.mutationCb, this.wrappedEmit = e.wrappedEmit, this.stylesheetManager = e.stylesheetManager, this.recordCrossOriginIframes = e.recordCrossOriginIframes, this.crossOriginIframeStyleMirror = new kM(this.stylesheetManager.styleMirror.generateId.bind(this.stylesheetManager.styleMirror)), this.mirror = e.mirror, this.recordCrossOriginIframes && window.addEventListener("message", this.handleMessage.bind(this));
}
var t = e.prototype;
return t.addIframe = function(e) {
this.iframes.set(e, !0), e.contentWindow && this.crossOriginIframeMap.set(e.contentWindow, e);
}, t.getIframeContentDocument = function(e) {
return this.iframeContentDocumentMap.get(e);
}, t.setObserverCleanup = function(e, t) {
this.iframeObserverCleanupMap.set(e, t);
}, t.getObserverCleanup = function(e) {
return this.iframeObserverCleanupMap.get(e);
}, t.removeIframe = function(e) {
var t = this.iframeContentDocumentMap.get(e);
t && (this.stylesheetManager.cleanupStylesheetsForRemovedNode(t), this.mirror.removeNodeFromMap(t, !0)), this.iframes.delete(e), this.iframeContentDocumentMap.delete(e);
var r = this.iframeObserverCleanupMap.get(e);
if (r) {
try {
r();
} catch (e) {}
this.iframeObserverCleanupMap.delete(e);
}
}, t.addLoadListener = function(e) {
this.loadListener = e;
}, t.attachIframe = function(e, t) {
var r;
var n;
this.mutationCb({
adds: [{
parentId: this.mirror.getId(e),
nextId: null,
node: t
}],
removes: [],
texts: [],
attributes: [],
isAttachIframe: !0
}), e.contentDocument && this.iframeContentDocumentMap.set(e, e.contentDocument), this.recordCrossOriginIframes && (null == (r = e.contentWindow) || r.addEventListener("message", this.handleMessage.bind(this))), null == (n = this.loadListener) || n.call(this, e), e.contentDocument && e.contentDocument.adoptedStyleSheets && e.contentDocument.adoptedStyleSheets.length > 0 && this.stylesheetManager.adoptStyleSheets(e.contentDocument.adoptedStyleSheets, this.mirror.getId(e.contentDocument));
}, t.handleMessage = function(e) {
var t = e;
if ("rrweb" === t.data.type && t.origin === t.data.origin && e.source) {
var r = this.crossOriginIframeMap.get(e.source);
if (r) {
var n = this.transformCrossOriginEvent(r, t.data.event);
n && this.wrappedEmit(n, t.data.isCheckout);
}
}
}, t.transformCrossOriginEvent = function(e, t) {
var r;
var n = this;
switch (t.type) {
case YI.FullSnapshot:
this.crossOriginIframeMirror.reset(e), this.crossOriginIframeStyleMirror.reset(e), this.replaceIdOnNode(t.data.node, e);
var o = t.data.node.id;
return this.crossOriginIframeRootIdMap.set(e, o), this.patchRootIdOnNode(t.data.node, o), {
timestamp: t.timestamp,
type: YI.IncrementalSnapshot,
data: {
source: ZI.Mutation,
adds: [{
parentId: this.mirror.getId(e),
nextId: null,
node: t.data.node
}],
removes: [],
texts: [],
attributes: [],
isAttachIframe: !0
}
};
case YI.Meta:
case YI.Load:
case YI.DomContentLoaded: return !1;
case YI.Plugin: return t;
case YI.Custom: return this.replaceIds(t.data.payload, e, [
"id",
"parentId",
"previousId",
"nextId"
]), t;
case YI.IncrementalSnapshot: switch (t.data.source) {
case ZI.Mutation: return t.data.adds.forEach(function(t) {
n.replaceIds(t, e, [
"parentId",
"nextId",
"previousId"
]), n.replaceIdOnNode(t.node, e);
var r = n.crossOriginIframeRootIdMap.get(e);
r && n.patchRootIdOnNode(t.node, r);
}), t.data.removes.forEach(function(t) {
n.replaceIds(t, e, ["parentId", "id"]);
}), t.data.attributes.forEach(function(t) {
n.replaceIds(t, e, ["id"]);
}), t.data.texts.forEach(function(t) {
n.replaceIds(t, e, ["id"]);
}), t;
case ZI.Drag:
case ZI.TouchMove:
case ZI.MouseMove: return t.data.positions.forEach(function(t) {
n.replaceIds(t, e, ["id"]);
}), t;
case ZI.ViewportResize: return !1;
case ZI.MediaInteraction:
case ZI.MouseInteraction:
case ZI.Scroll:
case ZI.CanvasMutation:
case ZI.Input: return this.replaceIds(t.data, e, ["id"]), t;
case ZI.StyleSheetRule:
case ZI.StyleDeclaration: return this.replaceIds(t.data, e, ["id"]), this.replaceStyleIds(t.data, e, ["styleId"]), t;
case ZI.Font: return t;
case ZI.Selection: return t.data.ranges.forEach(function(t) {
n.replaceIds(t, e, ["start", "end"]);
}), t;
case ZI.AdoptedStyleSheet: return this.replaceIds(t.data, e, ["id"]), this.replaceStyleIds(t.data, e, ["styleIds"]), null == (r = t.data.styles) || r.forEach(function(t) {
n.replaceStyleIds(t, e, ["styleId"]);
}), t;
}
}
return !1;
}, t.replace = function(e, t, r, n) {
for (var o, i = W_(n); !(o = i()).done;) {
var s = o.value;
(Array.isArray(t[s]) || "number" == typeof t[s]) && (Array.isArray(t[s]) ? t[s] = e.getIds(r, t[s]) : t[s] = e.getId(r, t[s]));
}
return t;
}, t.replaceIds = function(e, t, r) {
return this.replace(this.crossOriginIframeMirror, e, t, r);
}, t.replaceStyleIds = function(e, t, r) {
return this.replace(this.crossOriginIframeStyleMirror, e, t, r);
}, t.replaceIdOnNode = function(e, t) {
var r = this;
this.replaceIds(e, t, ["id", "rootId"]), "childNodes" in e && e.childNodes.forEach(function(e) {
r.replaceIdOnNode(e, t);
});
}, t.patchRootIdOnNode = function(e, t) {
var r = this;
e.type === tM.Document || e.rootId || (e.rootId = t), "childNodes" in e && e.childNodes.forEach(function(e) {
r.patchRootIdOnNode(e, t);
});
}, e;
}(), OM = function() {
function e(e) {
Z_(this, "shadowDoms", /* @__PURE__ */ new WeakSet()), Z_(this, "mutationCb"), Z_(this, "scrollCb"), Z_(this, "bypassOptions"), Z_(this, "mirror"), Z_(this, "restoreHandlers", []), this.mutationCb = e.mutationCb, this.scrollCb = e.scrollCb, this.bypassOptions = e.bypassOptions, this.mirror = e.mirror, this.init();
}
var t = e.prototype;
return t.init = function() {
this.reset(), this.patchAttachShadow(Element, document);
}, t.addShadowRoot = function(e, t) {
var r = this;
if (hx(e) && !this.shadowDoms.has(e)) {
this.shadowDoms.add(e);
var n = hM(D_({}, this.bypassOptions, {
doc: t,
mutationCb: this.mutationCb,
mirror: this.mirror,
shadowDomManager: this
}), e);
this.restoreHandlers.push(function() {
return n.disconnect();
}), this.restoreHandlers.push(mM(D_({}, this.bypassOptions, {
scrollCb: this.scrollCb,
doc: e,
mirror: this.mirror
}))), setTimeout(function() {
e.adoptedStyleSheets && e.adoptedStyleSheets.length > 0 && r.bypassOptions.stylesheetManager.adoptStyleSheets(e.adoptedStyleSheets, r.mirror.getId(EI(e))), r.restoreHandlers.push(wM({
mirror: r.mirror,
stylesheetManager: r.bypassOptions.stylesheetManager
}, e));
}, 0);
}
}, t.observeAttachShadow = function(e) {
e.contentWindow && e.contentDocument && this.patchAttachShadow(e.contentWindow.Element, e.contentDocument);
}, t.patchAttachShadow = function(e, t) {
var r = this;
this.restoreHandlers.push(wI(e.prototype, "attachShadow", function(e) {
return function(n) {
var o = e.call(this, n);
var i = TI(this);
return i && KI(this) && r.addShadowRoot(i, t), o;
};
}));
}, t.reset = function() {
this.restoreHandlers.forEach(function(e) {
try {
e();
} catch (e) {}
}), this.restoreHandlers = [], this.shadowDoms = /* @__PURE__ */ new WeakSet();
}, e;
}(), EM = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", TM = "undefined" == typeof Uint8Array ? [] : /* @__PURE__ */ new Uint8Array(256), RM = 0; RM < 64; RM++) TM[EM.charCodeAt(RM)] = RM;
var IM = /* @__PURE__ */ new Map();
var MM = function(e, t, r) {
if (e && (NM(e, t) || "object" === (void 0 === e ? "undefined" : V_(e)))) {
var n = function(e, t) {
var r = IM.get(e);
return r || (r = /* @__PURE__ */ new Map(), IM.set(e, r)), r.has(t) || r.set(t, []), r.get(t);
}(r, e.constructor.name);
var o = n.indexOf(e);
return -1 === o && (o = n.length, n.push(e)), o;
}
};
function AM(e, t, r) {
return $_(e, Array) ? e.map(function(e) {
return AM(e, t, r);
}) : null === e ? e : $_(e, Float32Array) || $_(e, Float64Array) || $_(e, Int32Array) || $_(e, Uint32Array) || $_(e, Uint8Array) || $_(e, Uint16Array) || $_(e, Int16Array) || $_(e, Int8Array) || $_(e, Uint8ClampedArray) ? {
rr_type: e.constructor.name,
args: [Object.values(e)]
} : $_(e, ArrayBuffer) ? {
rr_type: e.constructor.name,
base64: function(e) {
var t;
var r = new Uint8Array(e);
var n = r.length;
var o = "";
for (t = 0; t < n; t += 3) o += EM[r[t] >> 2], o += EM[(3 & r[t]) << 4 | r[t + 1] >> 4], o += EM[(15 & r[t + 1]) << 2 | r[t + 2] >> 6], o += EM[63 & r[t + 2]];
return n % 3 == 2 ? o = o.substring(0, o.length - 1) + "=" : n % 3 == 1 && (o = o.substring(0, o.length - 2) + "=="), o;
}(e)
} : $_(e, DataView) ? {
rr_type: e.constructor.name,
args: [
AM(e.buffer, t, r),
e.byteOffset,
e.byteLength
]
} : $_(e, HTMLImageElement) ? {
rr_type: e.constructor.name,
src: e.src
} : $_(e, HTMLCanvasElement) ? {
rr_type: "HTMLImageElement",
src: e.toDataURL()
} : $_(e, ImageData) ? {
rr_type: e.constructor.name,
args: [
AM(e.data, t, r),
e.width,
e.height
]
} : NM(e, t) || "object" === (void 0 === e ? "undefined" : V_(e)) ? {
rr_type: e.constructor.name,
index: MM(e, t, r)
} : e;
}
var PM = function(e, t, r) {
return e.map(function(e) {
return AM(e, t, r);
});
};
var NM = function(e, t) {
var r = [
"WebGLActiveInfo",
"WebGLBuffer",
"WebGLFramebuffer",
"WebGLProgram",
"WebGLRenderbuffer",
"WebGLShader",
"WebGLShaderPrecisionFormat",
"WebGLTexture",
"WebGLUniformLocation",
"WebGLVertexArrayObject",
"WebGLVertexArrayObjectOES"
].filter(function(e) {
return "function" == typeof t[e];
});
return Boolean(r.find(function(r) {
return $_(e, t[r]);
}));
};
function LM(e, t, r, n) {
var o = [];
try {
var i = wI(e.HTMLCanvasElement.prototype, "getContext", function(e) {
return function(o) {
for (var i = arguments.length, s = new Array(i > 1 ? i - 1 : 0), a = 1; a < i; a++) s[a - 1] = arguments[a];
if (!$I(this, t, r, !0)) {
var l = function(e) {
return "experimental-webgl" === e ? "webgl" : e;
}(o);
if ("__context" in this || (this.__context = l), n && ["webgl", "webgl2"].includes(l)) if (s[0] && "object" === V_(s[0])) {
var c = s[0];
c.preserveDrawingBuffer || (c.preserveDrawingBuffer = !0);
} else s.splice(0, 1, { preserveDrawingBuffer: !0 });
}
return e.apply(this, [].concat([o], s));
};
});
o.push(i);
} catch (e) {
console.error("failed to patch HTMLCanvasElement.prototype.getContext");
}
return function() {
o.forEach(function(e) {
return e();
});
};
}
function DM(e, t, r, n, o, i) {
for (var s, a = function() {
var a = s.value;
if ([
"isContextLost",
"canvas",
"drawingBufferWidth",
"drawingBufferHeight"
].includes(a)) return "continue";
try {
if ("function" != typeof e[a]) return "continue";
var c = wI(e, a, function(e) {
return function() {
for (var s = arguments.length, l = new Array(s), c = 0; c < s; c++) l[c] = arguments[c];
var u = e.apply(this, l);
if (MM(u, i, this), "tagName" in this.canvas && !$I(this.canvas, n, o, !0)) {
var d = {
type: t,
property: a,
args: PM(l, i, this)
};
r(this.canvas, d);
}
return u;
};
});
l.push(c);
} catch (n) {
var u = PI(e, a, { set: function(e) {
r(this.canvas, {
type: t,
property: a,
args: [e],
setter: !0
});
} });
l.push(u);
}
}, l = [], c = W_(Object.getOwnPropertyNames(e)); !(s = c()).done;) a();
return l;
}
var jM;
var FM = "KGZ1bmN0aW9uKCkgewogICJ1c2Ugc3RyaWN0IjsKICB2YXIgY2hhcnMgPSAiQUJDREVGR0hJSktMTU5PUFFSU1RVVldYWVphYmNkZWZnaGlqa2xtbm9wcXJzdHV2d3h5ejAxMjM0NTY3ODkrLyI7CiAgdmFyIGxvb2t1cCA9IHR5cGVvZiBVaW50OEFycmF5ID09PSAidW5kZWZpbmVkIiA/IFtdIDogbmV3IFVpbnQ4QXJyYXkoMjU2KTsKICBmb3IgKHZhciBpID0gMDsgaSA8IGNoYXJzLmxlbmd0aDsgaSsrKSB7CiAgICBsb29rdXBbY2hhcnMuY2hhckNvZGVBdChpKV0gPSBpOwogIH0KICB2YXIgZW5jb2RlID0gZnVuY3Rpb24oYXJyYXlidWZmZXIpIHsKICAgIHZhciBieXRlcyA9IG5ldyBVaW50OEFycmF5KGFycmF5YnVmZmVyKSwgaTIsIGxlbiA9IGJ5dGVzLmxlbmd0aCwgYmFzZTY0ID0gIiI7CiAgICBmb3IgKGkyID0gMDsgaTIgPCBsZW47IGkyICs9IDMpIHsKICAgICAgYmFzZTY0ICs9IGNoYXJzW2J5dGVzW2kyXSA+PiAyXTsKICAgICAgYmFzZTY0ICs9IGNoYXJzWyhieXRlc1tpMl0gJiAzKSA8PCA0IHwgYnl0ZXNbaTIgKyAxXSA+PiA0XTsKICAgICAgYmFzZTY0ICs9IGNoYXJzWyhieXRlc1tpMiArIDFdICYgMTUpIDw8IDIgfCBieXRlc1tpMiArIDJdID4+IDZdOwogICAgICBiYXNlNjQgKz0gY2hhcnNbYnl0ZXNbaTIgKyAyXSAmIDYzXTsKICAgIH0KICAgIGlmIChsZW4gJSAzID09PSAyKSB7CiAgICAgIGJhc2U2NCA9IGJhc2U2NC5zdWJzdHJpbmcoMCwgYmFzZTY0Lmxlbmd0aCAtIDEpICsgIj0iOwogICAgfSBlbHNlIGlmIChsZW4gJSAzID09PSAxKSB7CiAgICAgIGJhc2U2NCA9IGJhc2U2NC5zdWJzdHJpbmcoMCwgYmFzZTY0Lmxlbmd0aCAtIDIpICsgIj09IjsKICAgIH0KICAgIHJldHVybiBiYXNlNjQ7CiAgfTsKICBjb25zdCBsYXN0QmxvYk1hcCA9IC8qIEBfX1BVUkVfXyAqLyBuZXcgTWFwKCk7CiAgY29uc3QgdHJhbnNwYXJlbnRCbG9iTWFwID0gLyogQF9fUFVSRV9fICovIG5ldyBNYXAoKTsKICBhc3luYyBmdW5jdGlvbiBnZXRUcmFuc3BhcmVudEJsb2JGb3Iod2lkdGgsIGhlaWdodCwgZGF0YVVSTE9wdGlvbnMpIHsKICAgIGNvbnN0IGlkID0gYCR7d2lkdGh9LSR7aGVpZ2h0fWA7CiAgICBpZiAoIk9mZnNjcmVlbkNhbnZhcyIgaW4gZ2xvYmFsVGhpcykgewogICAgICBpZiAodHJhbnNwYXJlbnRCbG9iTWFwLmhhcyhpZCkpIHJldHVybiB0cmFuc3BhcmVudEJsb2JNYXAuZ2V0KGlkKTsKICAgICAgY29uc3Qgb2Zmc2NyZWVuID0gbmV3IE9mZnNjcmVlbkNhbnZhcyh3aWR0aCwgaGVpZ2h0KTsKICAgICAgb2Zmc2NyZWVuLmdldENvbnRleHQoIjJkIik7CiAgICAgIGNvbnN0IGJsb2IgPSBhd2FpdCBvZmZzY3JlZW4uY29udmVydFRvQmxvYihkYXRhVVJMT3B0aW9ucyk7CiAgICAgIGNvbnN0IGFycmF5QnVmZmVyID0gYXdhaXQgYmxvYi5hcnJheUJ1ZmZlcigpOwogICAgICBjb25zdCBiYXNlNjQgPSBlbmNvZGUoYXJyYXlCdWZmZXIpOwogICAgICB0cmFuc3BhcmVudEJsb2JNYXAuc2V0KGlkLCBiYXNlNjQpOwogICAgICByZXR1cm4gYmFzZTY0OwogICAgfSBlbHNlIHsKICAgICAgcmV0dXJuICIiOwogICAgfQogIH0KICBjb25zdCB3b3JrZXIgPSBzZWxmOwogIHdvcmtlci5vbm1lc3NhZ2UgPSBhc3luYyBmdW5jdGlvbihlKSB7CiAgICBpZiAoIk9mZnNjcmVlbkNhbnZhcyIgaW4gZ2xvYmFsVGhpcykgewogICAgICBjb25zdCB7IGlkLCBiaXRtYXAsIHdpZHRoLCBoZWlnaHQsIGRhdGFVUkxPcHRpb25zIH0gPSBlLmRhdGE7CiAgICAgIGNvbnN0IHRyYW5zcGFyZW50QmFzZTY0ID0gZ2V0VHJhbnNwYXJlbnRCbG9iRm9yKAogICAgICAgIHdpZHRoLAogICAgICAgIGhlaWdodCwKICAgICAgICBkYXRhVVJMT3B0aW9ucwogICAgICApOwogICAgICBjb25zdCBvZmZzY3JlZW4gPSBuZXcgT2Zmc2NyZWVuQ2FudmFzKHdpZHRoLCBoZWlnaHQpOwogICAgICBjb25zdCBjdHggPSBvZmZzY3JlZW4uZ2V0Q29udGV4dCgiMmQiKTsKICAgICAgY3R4LmRyYXdJbWFnZShiaXRtYXAsIDAsIDApOwogICAgICBiaXRtYXAuY2xvc2UoKTsKICAgICAgY29uc3QgYmxvYiA9IGF3YWl0IG9mZnNjcmVlbi5jb252ZXJ0VG9CbG9iKGRhdGFVUkxPcHRpb25zKTsKICAgICAgY29uc3QgdHlwZSA9IGJsb2IudHlwZTsKICAgICAgY29uc3QgYXJyYXlCdWZmZXIgPSBhd2FpdCBibG9iLmFycmF5QnVmZmVyKCk7CiAgICAgIGNvbnN0IGJhc2U2NCA9IGVuY29kZShhcnJheUJ1ZmZlcik7CiAgICAgIGlmICghbGFzdEJsb2JNYXAuaGFzKGlkKSAmJiBhd2FpdCB0cmFuc3BhcmVudEJhc2U2NCA9PT0gYmFzZTY0KSB7CiAgICAgICAgbGFzdEJsb2JNYXAuc2V0KGlkLCBiYXNlNjQpOwogICAgICAgIHJldHVybiB3b3JrZXIucG9zdE1lc3NhZ2UoeyBpZCB9KTsKICAgICAgfQogICAgICBpZiAobGFzdEJsb2JNYXAuZ2V0KGlkKSA9PT0gYmFzZTY0KSByZXR1cm4gd29ya2VyLnBvc3RNZXNzYWdlKHsgaWQgfSk7CiAgICAgIHdvcmtlci5wb3N0TWVzc2FnZSh7CiAgICAgICAgaWQsCiAgICAgICAgdHlwZSwKICAgICAgICBiYXNlNjQsCiAgICAgICAgd2lkdGgsCiAgICAgICAgaGVpZ2h0CiAgICAgIH0pOwogICAgICBsYXN0QmxvYk1hcC5zZXQoaWQsIGJhc2U2NCk7CiAgICB9IGVsc2UgewogICAgICByZXR1cm4gd29ya2VyLnBvc3RNZXNzYWdlKHsgaWQ6IGUuZGF0YS5pZCB9KTsKICAgIH0KICB9Owp9KSgpOwovLyMgc291cmNlTWFwcGluZ1VSTD1pbWFnZS1iaXRtYXAtZGF0YS11cmwtd29ya2VyLUlKcEM3Z19iLmpzLm1hcAo=";
var $M = "undefined" != typeof window && window.Blob && new Blob([(jM = FM, Uint8Array.from(atob(jM), function(e) {
return e.charCodeAt(0);
}))], { type: "text/javascript;charset=utf-8" });
function BM(e) {
var t;
try {
if (!(t = $M && (window.URL || window.webkitURL).createObjectURL($M))) throw "";
var r = new Worker(t, { name: null == e ? void 0 : e.name });
return r.addEventListener("error", function() {
(window.URL || window.webkitURL).revokeObjectURL(t);
}), r;
} catch (t) {
return new Worker("data:text/javascript;base64," + FM, { name: null == e ? void 0 : e.name });
} finally {
t && (window.URL || window.webkitURL).revokeObjectURL(t);
}
}
var zM;
var VM;
var UM;
var qM = function() {
function e(e) {
var t = this;
Z_(this, "pendingCanvasMutations", /* @__PURE__ */ new Map()), Z_(this, "rafStamps", {
latestId: 0,
invokeId: null
}), Z_(this, "mirror"), Z_(this, "mutationCb"), Z_(this, "resetObservers"), Z_(this, "frozen", !1), Z_(this, "locked", !1), Z_(this, "processMutation", function(e, r) {
!(t.rafStamps.invokeId && t.rafStamps.latestId !== t.rafStamps.invokeId) && t.rafStamps.invokeId || (t.rafStamps.invokeId = t.rafStamps.latestId), t.pendingCanvasMutations.has(e) || t.pendingCanvasMutations.set(e, []), t.pendingCanvasMutations.get(e).push(r);
});
var r = e.sampling;
var n = void 0 === r ? "all" : r;
var o = e.win;
var i = e.blockClass;
var s = e.blockSelector;
var a = e.recordCanvas;
var l = e.dataURLOptions;
this.mutationCb = e.mutationCb, this.mirror = e.mirror, a && "all" === n && this.initCanvasMutationObserver(o, i, s), a && "number" == typeof n && this.initCanvasFPSObserver(n, o, i, s, { dataURLOptions: l });
}
var t = e.prototype;
return t.reset = function() {
this.pendingCanvasMutations.clear(), this.resetObservers && this.resetObservers();
}, t.freeze = function() {
this.frozen = !0;
}, t.unfreeze = function() {
this.frozen = !1;
}, t.lock = function() {
this.locked = !0;
}, t.unlock = function() {
this.locked = !1;
}, t.initCanvasFPSObserver = function(e, t, r, n, o) {
var i = this;
var s = LM(t, r, n, !0);
var a = /* @__PURE__ */ new Map();
var l = new BM();
l.onmessage = function(e) {
var t = e.data.id;
if (a.set(t, !1), "base64" in e.data) {
var r = e.data;
var n = r.base64;
var o = r.type;
var s = r.width;
var l = r.height;
i.mutationCb({
id: t,
type: QI["2D"],
commands: [{
property: "clearRect",
args: [
0,
0,
s,
l
]
}, {
property: "drawImage",
args: [
{
rr_type: "ImageBitmap",
args: [{
rr_type: "Blob",
data: [{
rr_type: "ArrayBuffer",
base64: n
}],
type: o
}]
},
0,
0
]
}]
});
}
};
var c;
var u = 1e3 / e;
var p = 0;
var d = function(e) {
if (p && e - p < u) c = requestAnimationFrame(d);
else {
p = e;
var s;
var f = i;
(s = [], t.document.querySelectorAll("canvas").forEach(function(e) {
$I(e, r, n, !0) || s.push(e);
}), s).forEach(P_(function(e) {
var t;
var r;
var n;
var i;
return H_(this, function(s) {
switch (s.label) {
case 0: return r = f.mirror.getId(e), a.get(r) || 0 === e.width || 0 === e.height ? [2] : (a.set(r, !0), ["webgl", "webgl2"].includes(e.__context) && (n = e.getContext(e.__context), !1 === (null == (t = null == n ? void 0 : n.getContextAttributes()) ? void 0 : t.preserveDrawingBuffer) && n.clear(n.COLOR_BUFFER_BIT)), [4, createImageBitmap(e)]);
case 1: return i = s.sent(), l.postMessage({
id: r,
bitmap: i,
width: e.width,
height: e.height,
dataURLOptions: o.dataURLOptions
}, [i]), [2];
}
});
})), c = requestAnimationFrame(d);
}
};
c = requestAnimationFrame(d), this.resetObservers = function() {
s(), cancelAnimationFrame(c);
};
}, t.initCanvasMutationObserver = function(e, t, r) {
this.startRAFTimestamping(), this.startPendingCanvasMutationFlusher();
var n = LM(e, t, r, !1);
var o = function(e, t, r, n) {
for (var o, i = function() {
var i = o.value;
try {
if ("function" != typeof t.CanvasRenderingContext2D.prototype[i]) return "continue";
var a = wI(t.CanvasRenderingContext2D.prototype, i, function(o) {
return function() {
for (var s = this, a = arguments.length, l = new Array(a), c = 0; c < a; c++) l[c] = arguments[c];
return $I(this.canvas, r, n, !0) || setTimeout(function() {
var r = PM(l, t, s);
e(s.canvas, {
type: QI["2D"],
property: i,
args: r
});
}, 0), o.apply(this, l);
};
});
s.push(a);
} catch (r) {
var l = PI(t.CanvasRenderingContext2D.prototype, i, { set: function(t) {
e(this.canvas, {
type: QI["2D"],
property: i,
args: [t],
setter: !0
});
} });
s.push(l);
}
}, s = [], a = W_(Object.getOwnPropertyNames(t.CanvasRenderingContext2D.prototype)); !(o = a()).done;) i();
return function() {
s.forEach(function(e) {
return e();
});
};
}(this.processMutation.bind(this), e, t, r);
var i = function(e, t, r, n) {
var o;
var i;
var s = [];
return (o = s).push.apply(o, [].concat(DM(t.WebGLRenderingContext.prototype, QI.WebGL, e, r, n, t))), void 0 !== t.WebGL2RenderingContext && (i = s).push.apply(i, [].concat(DM(t.WebGL2RenderingContext.prototype, QI.WebGL2, e, r, n, t))), function() {
s.forEach(function(e) {
return e();
});
};
}(this.processMutation.bind(this), e, t, r);
this.resetObservers = function() {
n(), o(), i();
};
}, t.startPendingCanvasMutationFlusher = function() {
var e = this;
requestAnimationFrame(function() {
return e.flushPendingCanvasMutations();
});
}, t.startRAFTimestamping = function() {
var e = this;
var t = function(r) {
e.rafStamps.latestId = r, requestAnimationFrame(t);
};
requestAnimationFrame(t);
}, t.flushPendingCanvasMutations = function() {
var e = this;
this.pendingCanvasMutations.forEach(function(t, r) {
var n = e.mirror.getId(r);
e.flushPendingCanvasMutationFor(r, n);
}), requestAnimationFrame(function() {
return e.flushPendingCanvasMutations();
});
}, t.flushPendingCanvasMutationFor = function(e, t) {
if (!this.frozen && !this.locked) {
var r = this.pendingCanvasMutations.get(e);
if (r && -1 !== t) {
var n = r.map(function(e) {
return B_(e, ["type"]);
});
var o = r[0].type;
this.mutationCb({
id: t,
type: o,
commands: n
}), this.pendingCanvasMutations.delete(e);
}
}
}, e;
}();
var WM = function() {
function e(e) {
Z_(this, "trackedLinkElements", /* @__PURE__ */ new WeakSet()), Z_(this, "mutationCb"), Z_(this, "adoptedStyleSheetCb"), Z_(this, "styleMirror", new HI()), this.mutationCb = e.mutationCb, this.adoptedStyleSheetCb = e.adoptedStyleSheetCb;
}
var t = e.prototype;
return t.attachLinkElement = function(e, t) {
"_cssText" in t.attributes && this.mutationCb({
adds: [],
removes: [],
texts: [],
attributes: [{
id: t.id,
attributes: t.attributes
}]
}), this.trackLinkElement(e);
}, t.trackLinkElement = function(e) {
this.trackedLinkElements.has(e) || (this.trackedLinkElements.add(e), this.trackStylesheetInLinkElement(e));
}, t.adoptStyleSheets = function(e, t) {
var r;
var n = function() {
var e = o.value;
var t = void 0;
r.styleMirror.has(e) ? t = r.styleMirror.getId(e) : (t = r.styleMirror.add(e), s.push({
styleId: t,
rules: Array.from(e.rules || CSSRule, function(t, r) {
return {
rule: gx(t, e.href),
index: r
};
})
})), i.styleIds.push(t);
};
if (0 !== e.length) {
for (var o, i = {
id: t,
styleIds: []
}, s = [], a = W_(e); !(o = a()).done;) r = this, n();
s.length > 0 && (i.styles = s), this.adoptedStyleSheetCb(i);
}
}, t.reset = function() {
this.styleMirror.reset(), this.trackedLinkElements = /* @__PURE__ */ new WeakSet();
}, t.cleanupStylesheetsForRemovedNode = function(e) {
var t = this;
try {
if (e.nodeType === Node.DOCUMENT_NODE) {
var r = e;
if (r.adoptedStyleSheets) for (var n, o = W_(r.adoptedStyleSheets); !(n = o()).done;) {
var i = n.value;
this.styleMirror.remove(i);
}
}
if ("STYLE" === e.nodeName) {
var s = e;
s.sheet && this.styleMirror.remove(s.sheet);
}
if ("LINK" === e.nodeName && "stylesheet" === e.rel) {
var a = e;
a.sheet && this.styleMirror.remove(a.sheet);
}
e.childNodes && e.childNodes.forEach(function(e) {
t.cleanupStylesheetsForRemovedNode(e);
});
} catch (e) {}
}, t.trackStylesheetInLinkElement = function(e) {}, e;
}();
var HM = function() {
function e() {
Z_(this, "nodeMap", /* @__PURE__ */ new WeakMap()), Z_(this, "active", !1);
}
var t = e.prototype;
return t.inOtherBuffer = function(e, t) {
var r = this.nodeMap.get(e);
return r && Array.from(r).some(function(e) {
return e !== t;
});
}, t.add = function(e, t) {
var r = this;
this.active || (this.active = !0, requestAnimationFrame(function() {
r.nodeMap = /* @__PURE__ */ new WeakMap(), r.active = !1;
})), this.nodeMap.set(e, (this.nodeMap.get(e) || /* @__PURE__ */ new Set()).add(t));
}, t.destroy = function() {}, e;
}();
function GM(e) {
try {
var t = new URL(e).origin;
return "null" !== t ? t : null;
} catch (e) {
return null;
}
}
var KM = !1;
try {
if (2 !== Array.from([1], function(e) {
return 2 * e;
})[0]) {
var YM = document.createElement("iframe");
document.body.appendChild(YM), Array.from = (null == (K_ = YM.contentWindow) ? void 0 : K_.Array.from) || Array.from, document.body.removeChild(YM);
}
} catch (e) {
console.debug("Unable to override Array.from", e);
}
var ZM;
var XM;
var JM = new vx();
function QM(e) {
void 0 === e && (e = {});
var t;
var r = e.emit;
var n = e.checkoutEveryNms;
var o = e.checkoutEveryNth;
var i = e.blockClass;
var s = void 0 === i ? "rr-block" : i;
var a = e.blockSelector;
var l = void 0 === a ? null : a;
var c = e.ignoreClass;
var u = void 0 === c ? "rr-ignore" : c;
var p = e.ignoreSelector;
var d = void 0 === p ? null : p;
var f = e.maskTextClass;
var h = void 0 === f ? "rr-mask" : f;
var m = e.maskTextSelector;
var g = void 0 === m ? null : m;
var v = e.inlineStylesheet;
var y = void 0 === v || v;
var b = e.maskAllInputs;
var w = e.maskInputOptions;
var _ = e.slimDOMOptions;
var x = e.maskInputFn;
var S = e.maskTextFn;
var k = e.hooks;
var C = e.packFn;
var O = e.sampling;
var E = void 0 === O ? {} : O;
var T = e.dataURLOptions;
var R = void 0 === T ? {} : T;
var I = e.mousemoveWait;
var M = e.recordDOM;
var A = void 0 === M || M;
var P = e.recordCanvas;
var N = void 0 !== P && P;
var L = e.recordCrossOriginIframes;
var D = void 0 !== L && L;
var j = e.allowedIframeOrigins;
var F = e.recordAfter;
var $ = void 0 === F ? "DOMContentLoaded" === e.recordAfter ? e.recordAfter : "load" : F;
var B = e.userTriggeredOnInput;
var z = void 0 !== B && B;
var V = e.collectFonts;
var U = void 0 !== V && V;
var q = e.inlineImages;
var W = void 0 !== q && q;
var H = e.plugins;
var G = e.keepIframeSrcFn;
var K = void 0 === G ? function() {
return !1;
} : G;
var Y = e.ignoreCSSAttributes;
var Z = void 0 === Y ? /* @__PURE__ */ new Set([]) : Y;
nM = e.errorHandler, D && j && j.length > 0 && (t = function(e) {
if (!Array.isArray(e) || 0 === e.length) throw new Error("[rrweb] allowedIframeOrigins must be a non-empty array of origin strings.");
for (var t = /* @__PURE__ */ new Set(), r = 0; r < e.length; r++) {
var n = e[r];
if ("string" != typeof n) throw new Error("[rrweb] allowedIframeOrigins[" + r + "] must be a string, got " + (void 0 === n ? "undefined" : V_(n)) + ".");
var o = GM(n);
o && t.add(o);
}
return Object.freeze(t);
}(j), 0 === t.size && (t = void 0));
var J = !D || window.parent === window;
var Q = !1;
if (!J) try {
window.parent.document && (Q = !1);
} catch (e) {
Q = !0;
}
if (J && !r) throw new Error("emit function is required");
if (!J && !Q) return function() {};
void 0 !== I && void 0 === E.mousemove && (E.mousemove = I), JM.reset();
var ee;
var te = !0 === b ? {
color: !0,
date: !0,
"datetime-local": !0,
email: !0,
month: !0,
number: !0,
range: !0,
search: !0,
tel: !0,
text: !0,
time: !0,
url: !0,
week: !0,
textarea: !0,
select: !0,
password: !0,
hidden: !0
} : void 0 !== w ? w : { password: !0 };
var re = !0 === _ || "all" === _ ? {
script: !0,
comment: !0,
headFavicon: !0,
headWhitespace: !0,
headMetaSocial: !0,
headMetaRobots: !0,
headMetaHttpEquiv: !0,
headMetaVerification: !0,
headMetaAuthorship: "all" === _,
headMetaDescKeywords: "all" === _,
headTitleMutations: "all" === _
} : _ || {};
(function(e) {
void 0 === e && (e = window), "NodeList" in e && !e.NodeList.prototype.forEach && (e.NodeList.prototype.forEach = Array.prototype.forEach), "DOMTokenList" in e && !e.DOMTokenList.prototype.forEach && (e.DOMTokenList.prototype.forEach = Array.prototype.forEach);
})();
var ne = 0;
var oe = function(e) {
for (var t, r = W_(H || []); !(t = r()).done;) {
var n = t.value;
n.eventProcessor && (e = n.eventProcessor(e));
}
return C && !Q && (e = C(e)), e;
};
zM = function(e, i) {
var s;
var a = e;
if (a.timestamp = NI(), !(null == (s = dM[0]) ? void 0 : s.isFrozen()) || a.type === YI.FullSnapshot || a.type === YI.IncrementalSnapshot && a.data.source === ZI.Mutation || dM.forEach(function(e) {
return e.unfreeze();
}), J) null == r || r(oe(a), i);
else if (Q) {
var l = {
type: "rrweb",
event: oe(a),
origin: window.location.origin,
isCheckout: i
};
if (t) for (var c, u = W_(t); !(c = u()).done;) {
var p = c.value;
window.parent.postMessage(l, p);
}
else window.parent.postMessage(l, "*");
}
if (a.type === YI.FullSnapshot) ee = a, ne = 0;
else if (a.type === YI.IncrementalSnapshot) {
if (a.data.source === ZI.Mutation && a.data.isAttachIframe) return;
ne++;
var d = o && ne >= o;
var f = n && a.timestamp - ee.timestamp > n;
(d || f) && VM(!0);
}
};
for (var ie, se = function(e) {
zM({
type: YI.IncrementalSnapshot,
data: D_({ source: ZI.Mutation }, e)
});
}, ae = function(e) {
return zM({
type: YI.IncrementalSnapshot,
data: D_({ source: ZI.Scroll }, e)
});
}, le = function(e) {
return zM({
type: YI.IncrementalSnapshot,
data: D_({ source: ZI.CanvasMutation }, e)
});
}, ce = new WM({
mutationCb: se,
adoptedStyleSheetCb: function(e) {
return zM({
type: YI.IncrementalSnapshot,
data: D_({ source: ZI.AdoptedStyleSheet }, e)
});
}
}), ue = new CM({
mirror: JM,
mutationCb: se,
stylesheetManager: ce,
recordCrossOriginIframes: D,
wrappedEmit: zM
}), pe = W_(H || []); !(ie = pe()).done;) {
var de = ie.value;
de.getMirror && de.getMirror({
nodeMirror: JM,
crossOriginIframeMirror: ue.crossOriginIframeMirror,
crossOriginIframeStyleMirror: ue.crossOriginIframeStyleMirror
});
}
var fe = new HM();
UM = new qM({
recordCanvas: N,
mutationCb: le,
win: window,
blockClass: s,
blockSelector: l,
mirror: JM,
sampling: E.canvas,
dataURLOptions: R
});
var he = new OM({
mutationCb: se,
scrollCb: ae,
bypassOptions: {
blockClass: s,
blockSelector: l,
maskTextClass: h,
maskTextSelector: g,
inlineStylesheet: y,
maskInputOptions: te,
dataURLOptions: R,
maskTextFn: S,
maskInputFn: x,
recordCanvas: N,
inlineImages: W,
sampling: E,
slimDOMOptions: re,
iframeManager: ue,
stylesheetManager: ce,
canvasManager: UM,
keepIframeSrcFn: K,
processedNodeManager: fe
},
mirror: JM
});
VM = function(e) {
if (void 0 === e && (e = !1), A) {
zM({
type: YI.Meta,
data: {
href: window.location.href,
width: jI(),
height: DI()
}
}, e), ce.reset(), he.init(), dM.forEach(function(e) {
return e.lock();
});
var t = function(e, t) {
var r = t || {};
var n = r.mirror;
var o = void 0 === n ? new vx() : n;
var i = r.blockClass;
var s = r.blockSelector;
var a = r.maskTextClass;
var l = r.maskTextSelector;
var c = r.inlineStylesheet;
var u = r.inlineImages;
var p = r.recordCanvas;
var d = r.maskAllInputs;
var f = void 0 !== d && d;
var h = r.slimDOM;
var m = void 0 !== h && h;
var g = r.keepIframeSrcFn;
return Wx(e, {
doc: e,
mirror: o,
blockClass: void 0 === i ? "rr-block" : i,
blockSelector: void 0 === s ? null : s,
maskTextClass: void 0 === a ? "rr-mask" : a,
maskTextSelector: void 0 === l ? null : l,
skipChild: !1,
inlineStylesheet: void 0 === c || c,
maskInputOptions: !0 === f ? {
color: !0,
date: !0,
"datetime-local": !0,
email: !0,
month: !0,
number: !0,
range: !0,
search: !0,
tel: !0,
text: !0,
time: !0,
url: !0,
week: !0,
textarea: !0,
select: !0,
password: !0,
hidden: !0
} : !1 === f ? { password: !0 } : f,
maskTextFn: r.maskTextFn,
maskInputFn: r.maskInputFn,
slimDOMOptions: !0 === m || "all" === m ? {
script: !0,
comment: !0,
headFavicon: !0,
headWhitespace: !0,
headMetaDescKeywords: "all" === m,
headMetaSocial: !0,
headMetaRobots: !0,
headMetaHttpEquiv: !0,
headMetaAuthorship: !0,
headMetaVerification: !0
} : !1 === m ? {} : m,
dataURLOptions: r.dataURLOptions,
inlineImages: void 0 !== u && u,
recordCanvas: void 0 !== p && p,
preserveWhiteSpace: r.preserveWhiteSpace,
onSerialize: r.onSerialize,
onIframeLoad: r.onIframeLoad,
iframeLoadTimeout: r.iframeLoadTimeout,
onStylesheetLoad: r.onStylesheetLoad,
stylesheetLoadTimeout: r.stylesheetLoadTimeout,
keepIframeSrcFn: void 0 === g ? function() {
return !1;
} : g,
newlyAddedElement: !1
});
}(document, {
mirror: JM,
blockClass: s,
blockSelector: l,
maskTextClass: h,
maskTextSelector: g,
inlineStylesheet: y,
maskAllInputs: te,
maskTextFn: S,
maskInputFn: x,
slimDOM: re,
dataURLOptions: R,
recordCanvas: N,
inlineImages: W,
onSerialize: function(e) {
UI(e, JM) && ue.addIframe(e), qI(e, JM) && ce.trackLinkElement(e), WI(e) && he.addShadowRoot(TI(e), document);
},
onIframeLoad: function(e, t) {
ue.attachIframe(e, t), he.observeAttachShadow(e);
},
onStylesheetLoad: function(e, t) {
ce.attachLinkElement(e, t);
},
keepIframeSrcFn: K
});
if (!t) return console.warn("Failed to snapshot the document");
zM({
type: YI.FullSnapshot,
data: {
node: t,
initialOffset: LI(window)
}
}, e), dM.forEach(function(e) {
return e.unlock();
}), document.adoptedStyleSheets && document.adoptedStyleSheets.length > 0 && ce.adoptStyleSheets(document.adoptedStyleSheets, JM.getId(document));
}
};
try {
var me = [];
var ge = function(e) {
var t;
return pM(_M)({
mutationCb: se,
mousemoveCb: function(e, t) {
return zM({
type: YI.IncrementalSnapshot,
data: {
source: t,
positions: e
}
});
},
mouseInteractionCb: function(e) {
return zM({
type: YI.IncrementalSnapshot,
data: D_({ source: ZI.MouseInteraction }, e)
});
},
scrollCb: ae,
viewportResizeCb: function(e) {
return zM({
type: YI.IncrementalSnapshot,
data: D_({ source: ZI.ViewportResize }, e)
});
},
inputCb: function(e) {
return zM({
type: YI.IncrementalSnapshot,
data: D_({ source: ZI.Input }, e)
});
},
mediaInteractionCb: function(e) {
return zM({
type: YI.IncrementalSnapshot,
data: D_({ source: ZI.MediaInteraction }, e)
});
},
styleSheetRuleCb: function(e) {
return zM({
type: YI.IncrementalSnapshot,
data: D_({ source: ZI.StyleSheetRule }, e)
});
},
styleDeclarationCb: function(e) {
return zM({
type: YI.IncrementalSnapshot,
data: D_({ source: ZI.StyleDeclaration }, e)
});
},
canvasMutationCb: le,
fontCb: function(e) {
return zM({
type: YI.IncrementalSnapshot,
data: D_({ source: ZI.Font }, e)
});
},
selectionCb: function(e) {
zM({
type: YI.IncrementalSnapshot,
data: D_({ source: ZI.Selection }, e)
});
},
customElementCb: function(e) {
zM({
type: YI.IncrementalSnapshot,
data: D_({ source: ZI.CustomElement }, e)
});
},
blockClass: s,
ignoreClass: u,
ignoreSelector: d,
maskTextClass: h,
maskTextSelector: g,
maskInputOptions: te,
inlineStylesheet: y,
sampling: E,
recordDOM: A,
recordCanvas: N,
inlineImages: W,
userTriggeredOnInput: z,
collectFonts: U,
doc: e,
maskInputFn: x,
maskTextFn: S,
keepIframeSrcFn: K,
blockSelector: l,
slimDOMOptions: re,
dataURLOptions: R,
mirror: JM,
iframeManager: ue,
stylesheetManager: ce,
shadowDomManager: he,
processedNodeManager: fe,
canvasManager: UM,
ignoreCSSAttributes: Z,
plugins: (null == (t = null == H ? void 0 : H.filter(function(e) {
return e.observer;
})) ? void 0 : t.map(function(e) {
return {
observer: e.observer,
options: e.options,
callback: function(t) {
return zM({
type: YI.Plugin,
data: {
plugin: e.name,
payload: t
}
});
}
};
})) || []
}, k);
};
ue.addLoadListener(function(e) {
try {
var t = e.contentDocument;
var r = ge(t);
me.push(r);
var n = ue.getObserverCleanup(e);
ue.setObserverCleanup(e, function() {
if (n) try {
n();
} catch (e) {}
try {
r();
var e = me.indexOf(r);
-1 !== e && me.splice(e, 1), function(e) {
for (var t = dM.length - 1; t >= 0; t--) dM[t].getDoc() === e && dM.splice(t, 1);
}(t);
} catch (e) {}
});
} catch (e) {
console.warn(e);
}
});
var ve = function() {
VM(), me.push(ge(document)), KM = !0;
};
return "interactive" === document.readyState || "complete" === document.readyState ? ve() : (me.push(RI("DOMContentLoaded", function() {
zM({
type: YI.DomContentLoaded,
data: {}
}), "DOMContentLoaded" === $ && ve();
})), me.push(RI("load", function() {
zM({
type: YI.Load,
data: {}
}), "load" === $ && ve();
}, window))), function() {
me.forEach(function(e) {
try {
e();
} catch (e) {
String(e).toLowerCase().includes("cross-origin") || console.warn(e);
}
}), fe.destroy(), KM = !1, nM = void 0;
};
} catch (e) {
console.warn(e);
}
}
QM.addCustomEvent = function(e, t) {
if (!KM) throw new Error("please add custom event after start recording");
zM({
type: YI.Custom,
data: {
tag: e,
payload: t
}
});
}, QM.freezePage = function() {
dM.forEach(function(e) {
return e.freeze();
});
}, QM.takeFullSnapshot = function(e) {
if (!KM) throw new Error("please take full snapshot after start recording");
VM(e);
}, QM.mirror = JM, (XM = ZM || (ZM = {}))[XM.NotStarted = 0] = "NotStarted", XM[XM.Running = 1] = "Running", XM[XM.Stopped = 2] = "Stopped";
var eA = {
Node: [
"childNodes",
"parentNode",
"parentElement",
"textContent"
],
ShadowRoot: ["host", "styleSheets"],
Element: [
"shadowRoot",
"querySelector",
"querySelectorAll"
],
MutationObserver: []
};
var tA = {
Node: ["contains", "getRootNode"],
ShadowRoot: ["getSelection"],
Element: [],
MutationObserver: ["constructor"]
};
var rA = {};
function nA(e) {
if (rA[e]) return rA[e];
var t = globalThis[e];
var r = t.prototype;
var n = e in eA ? eA[e] : void 0;
var o = Boolean(n && n.every(function(e) {
var t;
var n;
return Boolean(null == (n = null == (t = Object.getOwnPropertyDescriptor(r, e)) ? void 0 : t.get) ? void 0 : n.toString().includes("[native code]"));
}));
var i = e in tA ? tA[e] : void 0;
var s = Boolean(i && i.every(function(e) {
var t;
return "function" == typeof r[e] && (null == (t = r[e]) ? void 0 : t.toString().includes("[native code]"));
}));
if (o && s && !globalThis.Zone) return rA[e] = t.prototype, t.prototype;
try {
var a = document.createElement("iframe");
document.body.appendChild(a);
var l = a.contentWindow;
if (!l) return t.prototype;
var c = l[e].prototype;
return document.body.removeChild(a), c ? rA[e] = c : r;
} catch (e) {
return r;
}
}
var oA = {};
function iA(e, t, r) {
var n;
var o = e + "." + String(r);
if (oA[o]) return oA[o].call(t);
var i = nA(e);
var s = null == (n = Object.getOwnPropertyDescriptor(i, r)) ? void 0 : n.get;
return s ? (oA[o] = s, s.call(t)) : t[r];
}
var sA = function(e) {
return iA("Node", e, "parentNode");
};
function aA(e, t, r) {
if (!e) return !1;
if (e.nodeType !== e.ELEMENT_NODE) return aA(sA(e), t);
for (var n = e.classList.length; n--;) {
var o = e.classList[n];
if (t.test(o)) return !0;
}
return aA(sA(e), t);
}
function lA(e) {
if (e.__esModule) return e;
var t = e.default;
if ("function" == typeof t) {
var r = function e() {
return $_(this, e) ? Reflect.construct(t, arguments, this.constructor) : t.apply(this, arguments);
};
r.prototype = t.prototype;
} else r = {};
return Object.defineProperty(r, "__esModule", { value: !0 }), Object.keys(e).forEach(function(t) {
var n = Object.getOwnPropertyDescriptor(e, t);
Object.defineProperty(r, t, n.get ? n : {
enumerable: !0,
get: function() {
return e[t];
}
});
}), r;
}
var cA = { exports: {} };
var uA = String;
var pA = function() {
return {
isColorSupported: !1,
reset: uA,
bold: uA,
dim: uA,
italic: uA,
underline: uA,
inverse: uA,
hidden: uA,
strikethrough: uA,
black: uA,
red: uA,
green: uA,
yellow: uA,
blue: uA,
magenta: uA,
cyan: uA,
white: uA,
gray: uA,
bgBlack: uA,
bgRed: uA,
bgGreen: uA,
bgYellow: uA,
bgBlue: uA,
bgMagenta: uA,
bgCyan: uA,
bgWhite: uA
};
};
cA.exports = pA(), cA.exports.createColors = pA;
var dA = cA.exports;
var fA = lA(Object.freeze(Object.defineProperty({
__proto__: null,
default: {}
}, Symbol.toStringTag, { value: "Module" })));
var hA = dA;
var mA = fA;
var gA = function(e) {
function t(r, n, o, i, s, a) {
var l;
return (l = e.call(this, r) || this).name = "CssSyntaxError", l.reason = r, s && (l.file = s), i && (l.source = i), a && (l.plugin = a), void 0 !== n && void 0 !== o && ("number" == typeof n ? (l.line = n, l.column = o) : (l.line = n.line, l.column = n.column, l.endLine = o.line, l.endColumn = o.column)), l.setMessage(), Error.captureStackTrace && Error.captureStackTrace(l, t), l;
}
F_(t, e);
var r = t.prototype;
return r.setMessage = function() {
this.message = this.plugin ? this.plugin + ": " : "", this.message += this.file ? this.file : "<css input>", void 0 !== this.line && (this.message += ":" + this.line + ":" + this.column), this.message += ": " + this.reason;
}, r.showSourceCode = function(e) {
var t = this;
if (!this.source) return "";
var r = this.source;
null == e && (e = hA.isColorSupported), mA && e && (r = mA(r));
var n;
var o;
var i = r.split(/\r?\n/);
var s = Math.max(this.line - 3, 0);
var a = Math.min(this.line + 2, i.length);
var l = String(a).length;
if (e) {
var c = hA.createColors(!0);
var u = c.bold;
var p = c.gray;
var d = c.red;
n = function(e) {
return u(d(e));
}, o = function(e) {
return p(e);
};
} else n = o = function(e) {
return e;
};
return i.slice(s, a).map(function(e, r) {
var i = s + 1 + r;
var a = " " + (" " + i).slice(-l) + " | ";
if (i === t.line) {
var c = o(a.replace(/\d/g, " ")) + e.slice(0, t.column - 1).replace(/[^\t]/g, " ");
return n(">") + o(a) + e + "\n " + c + n("^");
}
return " " + o(a) + e;
}).join("\n");
}, r.toString = function() {
var e = this.showSourceCode();
return e && (e = "\n\n" + e + "\n"), this.name + ": " + this.message + e;
}, t;
}(U_(Error));
var vA = gA;
gA.default = gA;
var yA = {};
yA.isClean = Symbol("isClean"), yA.my = Symbol("my");
var bA = {
after: "\n",
beforeClose: "\n",
beforeComment: "\n",
beforeDecl: "\n",
beforeOpen: " ",
beforeRule: "\n",
colon: ": ",
commentLeft: " ",
commentRight: " ",
emptyBody: "",
indent: " ",
semicolon: !1
};
var wA = function() {
function e(e) {
this.builder = e;
}
var t = e.prototype;
return t.atrule = function(e, t) {
var r = "@" + e.name;
var n = e.params ? this.rawValue(e, "params") : "";
if (void 0 !== e.raws.afterName ? r += e.raws.afterName : n && (r += " "), e.nodes) this.block(e, r + n);
else {
var o = (e.raws.between || "") + (t ? ";" : "");
this.builder(r + n + o, e);
}
}, t.beforeAfter = function(e, t) {
var r = "decl" === e.type ? this.raw(e, null, "beforeDecl") : "comment" === e.type ? this.raw(e, null, "beforeComment") : "before" === t ? this.raw(e, null, "beforeRule") : this.raw(e, null, "beforeClose");
for (var n = e.parent, o = 0; n && "root" !== n.type;) o += 1, n = n.parent;
if (r.includes("\n")) {
var i = this.raw(e, null, "indent");
if (i.length) for (var s = 0; s < o; s++) r += i;
}
return r;
}, t.block = function(e, t) {
var r;
var n = this.raw(e, "between", "beforeOpen");
this.builder(t + n + "{", e, "start"), e.nodes && e.nodes.length ? (this.body(e), r = this.raw(e, "after")) : r = this.raw(e, "after", "emptyBody"), r && this.builder(r), this.builder("}", e, "end");
}, t.body = function(e) {
for (var t = e.nodes.length - 1; t > 0 && "comment" === e.nodes[t].type;) t -= 1;
for (var r = this.raw(e, "semicolon"), n = 0; n < e.nodes.length; n++) {
var o = e.nodes[n];
var i = this.raw(o, "before");
i && this.builder(i), this.stringify(o, t !== n || r);
}
}, t.comment = function(e) {
var t = this.raw(e, "left", "commentLeft");
var r = this.raw(e, "right", "commentRight");
this.builder("/*" + t + e.text + r + "*/", e);
}, t.decl = function(e, t) {
var r = this.raw(e, "between", "colon");
var n = e.prop + r + this.rawValue(e, "value");
e.important && (n += e.raws.important || " !important"), t && (n += ";"), this.builder(n, e);
}, t.document = function(e) {
this.body(e);
}, t.raw = function(e, t, r) {
var n;
if (r || (r = t), t && void 0 !== (n = e.raws[t])) return n;
var o = e.parent;
if ("before" === r) {
if (!o || "root" === o.type && o.first === e) return "";
if (o && "document" === o.type) return "";
}
if (!o) return bA[r];
var i = e.root();
if (i.rawCache || (i.rawCache = {}), void 0 !== i.rawCache[r]) return i.rawCache[r];
if ("before" === r || "after" === r) return this.beforeAfter(e, r);
var s;
var a = "raw" + ((s = r)[0].toUpperCase() + s.slice(1));
return this[a] ? n = this[a](i, e) : i.walk(function(e) {
if (void 0 !== (n = e.raws[t])) return !1;
}), void 0 === n && (n = bA[r]), i.rawCache[r] = n, n;
}, t.rawBeforeClose = function(e) {
var t;
return e.walk(function(e) {
if (e.nodes && e.nodes.length > 0 && void 0 !== e.raws.after) return (t = e.raws.after).includes("\n") && (t = t.replace(/[^\n]+$/, "")), !1;
}), t && (t = t.replace(/\S/g, "")), t;
}, t.rawBeforeComment = function(e, t) {
var r;
return e.walkComments(function(e) {
if (void 0 !== e.raws.before) return (r = e.raws.before).includes("\n") && (r = r.replace(/[^\n]+$/, "")), !1;
}), void 0 === r ? r = this.raw(t, null, "beforeDecl") : r && (r = r.replace(/\S/g, "")), r;
}, t.rawBeforeDecl = function(e, t) {
var r;
return e.walkDecls(function(e) {
if (void 0 !== e.raws.before) return (r = e.raws.before).includes("\n") && (r = r.replace(/[^\n]+$/, "")), !1;
}), void 0 === r ? r = this.raw(t, null, "beforeRule") : r && (r = r.replace(/\S/g, "")), r;
}, t.rawBeforeOpen = function(e) {
var t;
return e.walk(function(e) {
if ("decl" !== e.type && void 0 !== (t = e.raws.between)) return !1;
}), t;
}, t.rawBeforeRule = function(e) {
var t;
return e.walk(function(r) {
if (r.nodes && (r.parent !== e || e.first !== r) && void 0 !== r.raws.before) return (t = r.raws.before).includes("\n") && (t = t.replace(/[^\n]+$/, "")), !1;
}), t && (t = t.replace(/\S/g, "")), t;
}, t.rawColon = function(e) {
var t;
return e.walkDecls(function(e) {
if (void 0 !== e.raws.between) return t = e.raws.between.replace(/[^\s:]/g, ""), !1;
}), t;
}, t.rawEmptyBody = function(e) {
var t;
return e.walk(function(e) {
if (e.nodes && 0 === e.nodes.length && void 0 !== (t = e.raws.after)) return !1;
}), t;
}, t.rawIndent = function(e) {
return e.raws.indent ? e.raws.indent : (e.walk(function(r) {
var n = r.parent;
if (n && n !== e && n.parent && n.parent === e && void 0 !== r.raws.before) {
var o = r.raws.before.split("\n");
return t = (t = o[o.length - 1]).replace(/\S/g, ""), !1;
}
}), t);
var t;
}, t.rawSemicolon = function(e) {
var t;
return e.walk(function(e) {
if (e.nodes && e.nodes.length && "decl" === e.last.type && void 0 !== (t = e.raws.semicolon)) return !1;
}), t;
}, t.rawValue = function(e, t) {
var r = e[t];
var n = e.raws[t];
return n && n.value === r ? n.raw : r;
}, t.root = function(e) {
this.body(e), e.raws.after && this.builder(e.raws.after);
}, t.rule = function(e) {
this.block(e, this.rawValue(e, "selector")), e.raws.ownSemicolon && this.builder(e.raws.ownSemicolon, e, "end");
}, t.stringify = function(e, t) {
if (!this[e.type]) throw new Error("Unknown AST node type " + e.type + ". Maybe you need to change PostCSS stringifier.");
this[e.type](e, t);
}, e;
}();
var _A = wA;
wA.default = wA;
var xA = _A;
function SA(e, t) {
new xA(t).stringify(e);
}
var kA = SA;
SA.default = SA;
var CA = yA.isClean;
var OA = yA.my;
var EA = vA;
var TA = _A;
var RA = kA;
function IA(e, t) {
var r = new e.constructor();
for (var n in e) if (Object.prototype.hasOwnProperty.call(e, n) && "proxyCache" !== n) {
var o = e[n];
var i = void 0 === o ? "undefined" : V_(o);
"parent" === n && "object" === i ? t && (r[n] = t) : "source" === n ? r[n] = o : Array.isArray(o) ? r[n] = o.map(function(e) {
return IA(e, r);
}) : ("object" === i && null !== o && (o = IA(o)), r[n] = o);
}
return r;
}
var MA = function() {
function e(e) {
for (var t in void 0 === e && (e = {}), this.raws = {}, this[CA] = !1, this[OA] = !0, e) if ("nodes" === t) {
this.nodes = [];
for (var r, n = W_(e[t]); !(r = n()).done;) {
var o = r.value;
"function" == typeof o.clone ? this.append(o.clone()) : this.append(o);
}
} else this[t] = e[t];
}
var t = e.prototype;
return t.addToError = function(e) {
if (e.postcssNode = this, e.stack && this.source && /\n\s{4}at /.test(e.stack)) {
var t = this.source;
e.stack = e.stack.replace(/\n\s{4}at /, "$&" + t.input.from + ":" + t.start.line + ":" + t.start.column + "$&");
}
return e;
}, t.after = function(e) {
return this.parent.insertAfter(this, e), this;
}, t.assign = function(e) {
for (var t in void 0 === e && (e = {}), e) this[t] = e[t];
return this;
}, t.before = function(e) {
return this.parent.insertBefore(this, e), this;
}, t.cleanRaws = function(e) {
delete this.raws.before, delete this.raws.after, e || delete this.raws.between;
}, t.clone = function(e) {
void 0 === e && (e = {});
var t = IA(this);
for (var r in e) t[r] = e[r];
return t;
}, t.cloneAfter = function(e) {
void 0 === e && (e = {});
var t = this.clone(e);
return this.parent.insertAfter(this, t), t;
}, t.cloneBefore = function(e) {
void 0 === e && (e = {});
var t = this.clone(e);
return this.parent.insertBefore(this, t), t;
}, t.error = function(e, t) {
if (void 0 === t && (t = {}), this.source) {
var r = this.rangeBy(t);
var n = r.end;
var o = r.start;
return this.source.input.error(e, {
column: o.column,
line: o.line
}, {
column: n.column,
line: n.line
}, t);
}
return new EA(e);
}, t.getProxyProcessor = function() {
return {
get: function(e, t) {
return "proxyOf" === t ? e : "root" === t ? function() {
return e.root().toProxy();
} : e[t];
},
set: function(e, t, r) {
return e[t] === r || (e[t] = r, "prop" !== t && "value" !== t && "name" !== t && "params" !== t && "important" !== t && "text" !== t || e.markDirty()), !0;
}
};
}, t.markDirty = function() {
if (this[CA]) {
this[CA] = !1;
for (var e = this; e = e.parent;) e[CA] = !1;
}
}, t.next = function() {
if (this.parent) {
var e = this.parent.index(this);
return this.parent.nodes[e + 1];
}
}, t.positionBy = function(e, t) {
var r = this.source.start;
if (e.index) r = this.positionInside(e.index, t);
else if (e.word) {
var n = (t = this.toString()).indexOf(e.word);
-1 !== n && (r = this.positionInside(n, t));
}
return r;
}, t.positionInside = function(e, t) {
for (var r = t || this.toString(), n = this.source.start.column, o = this.source.start.line, i = 0; i < e; i++) "\n" === r[i] ? (n = 1, o += 1) : n += 1;
return {
column: n,
line: o
};
}, t.prev = function() {
if (this.parent) {
var e = this.parent.index(this);
return this.parent.nodes[e - 1];
}
}, t.rangeBy = function(e) {
var t = {
column: this.source.start.column,
line: this.source.start.line
};
var r = this.source.end ? {
column: this.source.end.column + 1,
line: this.source.end.line
} : {
column: t.column + 1,
line: t.line
};
if (e.word) {
var n = this.toString();
var o = n.indexOf(e.word);
-1 !== o && (t = this.positionInside(o, n), r = this.positionInside(o + e.word.length, n));
} else e.start ? t = {
column: e.start.column,
line: e.start.line
} : e.index && (t = this.positionInside(e.index)), e.end ? r = {
column: e.end.column,
line: e.end.line
} : "number" == typeof e.endIndex ? r = this.positionInside(e.endIndex) : e.index && (r = this.positionInside(e.index + 1));
return (r.line < t.line || r.line === t.line && r.column <= t.column) && (r = {
column: t.column + 1,
line: t.line
}), {
end: r,
start: t
};
}, t.raw = function(e, t) {
return new TA().raw(this, e, t);
}, t.remove = function() {
return this.parent && this.parent.removeChild(this), this.parent = void 0, this;
}, t.replaceWith = function() {
for (var e = arguments.length, t = new Array(e), r = 0; r < e; r++) t[r] = arguments[r];
if (this.parent) {
for (var n, o = this, i = !1, s = W_(t); !(n = s()).done;) {
var a = n.value;
a === this ? i = !0 : i ? (this.parent.insertAfter(o, a), o = a) : this.parent.insertBefore(o, a);
}
i || this.remove();
}
return this;
}, t.root = function() {
for (var e = this; e.parent && "document" !== e.parent.type;) e = e.parent;
return e;
}, t.toJSON = function(e, t) {
var r = {};
var n = null == t;
t = t || /* @__PURE__ */ new Map();
var o = 0;
for (var i in this) if (Object.prototype.hasOwnProperty.call(this, i) && "parent" !== i && "proxyCache" !== i) {
var s = this[i];
if (Array.isArray(s)) r[i] = s.map(function(e) {
return "object" === (void 0 === e ? "undefined" : V_(e)) && e.toJSON ? e.toJSON(null, t) : e;
});
else if ("object" === (void 0 === s ? "undefined" : V_(s)) && s.toJSON) r[i] = s.toJSON(null, t);
else if ("source" === i) {
var a = t.get(s.input);
null == a && (a = o, t.set(s.input, o), o++), r[i] = {
end: s.end,
inputId: a,
start: s.start
};
} else r[i] = s;
}
return n && (r.inputs = [].concat(t.keys()).map(function(e) {
return e.toJSON();
})), r;
}, t.toProxy = function() {
return this.proxyCache || (this.proxyCache = new Proxy(this, this.getProxyProcessor())), this.proxyCache;
}, t.toString = function(e) {
void 0 === e && (e = RA), e.stringify && (e = e.stringify);
var t = "";
return e(this, function(e) {
t += e;
}), t;
}, t.warn = function(e, t, r) {
var n = { node: this };
for (var o in r) n[o] = r[o];
return e.warn(t, n);
}, L_(e, [{
key: "proxyOf",
get: function() {
return this;
}
}]), e;
}();
var AA = MA;
MA.default = MA;
var PA = function(e) {
function t(t) {
var r;
return t && void 0 !== t.value && "string" != typeof t.value && (t = D_({}, t, { value: String(t.value) })), (r = e.call(this, t) || this).type = "decl", r;
}
return F_(t, e), L_(t, [{
key: "variable",
get: function() {
return this.prop.startsWith("--") || "$" === this.prop[0];
}
}]), t;
}(AA);
var NA = PA;
PA.default = PA;
var LA = fA.SourceMapConsumer;
var DA = fA.SourceMapGenerator;
var jA = fA.existsSync;
var FA = fA.readFileSync;
var $A = fA.dirname;
var BA = fA.join;
var zA = function() {
function e(e, t) {
if (!1 !== t.map) {
this.loadAnnotation(e), this.inline = this.startWith(this.annotation, "data:");
var r = t.map ? t.map.prev : void 0;
var n = this.loadMap(t.from, r);
!this.mapFile && t.from && (this.mapFile = t.from), this.mapFile && (this.root = $A(this.mapFile)), n && (this.text = n);
}
}
var t = e.prototype;
return t.consumer = function() {
return this.consumerCache || (this.consumerCache = new LA(this.text)), this.consumerCache;
}, t.decodeInline = function(e) {
var t;
if (/^data:application\/json;charset=utf-?8,/.test(e) || /^data:application\/json,/.test(e)) return decodeURIComponent(e.substr(RegExp.lastMatch.length));
if (/^data:application\/json;charset=utf-?8;base64,/.test(e) || /^data:application\/json;base64,/.test(e)) return t = e.substr(RegExp.lastMatch.length), Buffer ? Buffer.from(t, "base64").toString() : window.atob(t);
var r = e.match(/data:application\/json;([^,]+),/)[1];
throw new Error("Unsupported source map encoding " + r);
}, t.getAnnotationURL = function(e) {
return e.replace(/^\/\*\s*# sourceMappingURL=/, "").trim();
}, t.isMap = function(e) {
return "object" === (void 0 === e ? "undefined" : V_(e)) && ("string" == typeof e.mappings || "string" == typeof e._mappings || Array.isArray(e.sections));
}, t.loadAnnotation = function(e) {
var t = e.match(/\/\*\s*# sourceMappingURL=/gm);
if (t) {
var r = e.lastIndexOf(t.pop());
var n = e.indexOf("*/", r);
r > -1 && n > -1 && (this.annotation = this.getAnnotationURL(e.substring(r, n)));
}
}, t.loadFile = function(e) {
if (this.root = $A(e), jA(e)) return this.mapFile = e, FA(e, "utf-8").toString().trim();
}, t.loadMap = function(e, t) {
if (!1 === t) return !1;
if (t) {
if ("string" == typeof t) return t;
if ("function" != typeof t) {
if ($_(t, LA)) return DA.fromSourceMap(t).toString();
if ($_(t, DA)) return t.toString();
if (this.isMap(t)) return JSON.stringify(t);
throw new Error("Unsupported previous source map format: " + t.toString());
}
var r = t(e);
if (r) {
var n = this.loadFile(r);
if (!n) throw new Error("Unable to load previous source map: " + r.toString());
return n;
}
} else {
if (this.inline) return this.decodeInline(this.annotation);
if (this.annotation) {
var o = this.annotation;
return e && (o = BA($A(e), o)), this.loadFile(o);
}
}
}, t.startWith = function(e, t) {
return !!e && e.substr(0, t.length) === t;
}, t.withContent = function() {
return !!(this.consumer().sourcesContent && this.consumer().sourcesContent.length > 0);
}, e;
}();
var VA = zA;
zA.default = zA;
var UA = fA.SourceMapConsumer;
var qA = fA.SourceMapGenerator;
var WA = fA.fileURLToPath;
var HA = fA.pathToFileURL;
var GA = fA.isAbsolute;
var KA = fA.resolve;
var YA = function(e) {
void 0 === e && (e = 21);
for (var t = "", r = e; r--;) t += "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"[64 * Math.random() | 0];
return t;
};
var ZA = fA;
var XA = vA;
var JA = VA;
var QA = Symbol("fromOffsetCache");
var eP = Boolean(UA && qA);
var tP = Boolean(KA && GA);
var rP = function() {
function e(e, t) {
if (void 0 === t && (t = {}), null == e || "object" === (void 0 === e ? "undefined" : V_(e)) && !e.toString) throw new Error("PostCSS received " + e + " instead of CSS string");
if (this.css = e.toString(), "" === this.css[0] || "" === this.css[0] ? (this.hasBOM = !0, this.css = this.css.slice(1)) : this.hasBOM = !1, t.from && (!tP || /^\w+:\/\//.test(t.from) || GA(t.from) ? this.file = t.from : this.file = KA(t.from)), tP && eP) {
var r = new JA(this.css, t);
if (r.text) {
this.map = r;
var n = r.consumer().file;
!this.file && n && (this.file = this.mapResolve(n));
}
}
this.file || (this.id = "<input css " + YA(6) + ">"), this.map && (this.map.file = this.from);
}
var t = e.prototype;
return t.error = function(e, t, r, n) {
var o;
var i;
var s;
if (void 0 === n && (n = {}), t && "object" === (void 0 === t ? "undefined" : V_(t))) {
var a = t;
var l = r;
if ("number" == typeof a.offset) {
var c = this.fromOffset(a.offset);
t = c.line, r = c.col;
} else t = a.line, r = a.column;
if ("number" == typeof l.offset) {
var u = this.fromOffset(l.offset);
i = u.line, s = u.col;
} else i = l.line, s = l.column;
} else if (!r) {
var p = this.fromOffset(t);
t = p.line, r = p.col;
}
var d = this.origin(t, r, i, s);
return (o = d ? new XA(e, void 0 === d.endLine ? d.line : {
column: d.column,
line: d.line
}, void 0 === d.endLine ? d.column : {
column: d.endColumn,
line: d.endLine
}, d.source, d.file, n.plugin) : new XA(e, void 0 === i ? t : {
column: r,
line: t
}, void 0 === i ? r : {
column: s,
line: i
}, this.css, this.file, n.plugin)).input = {
column: r,
endColumn: s,
endLine: i,
line: t,
source: this.css
}, this.file && (HA && (o.input.url = HA(this.file).toString()), o.input.file = this.file), o;
}, t.fromOffset = function(e) {
var t;
if (this[QA]) t = this[QA];
else {
var r = this.css.split("\n");
t = new Array(r.length);
for (var n = 0, o = 0, i = r.length; o < i; o++) t[o] = n, n += r[o].length + 1;
this[QA] = t;
}
var s = 0;
if (e >= t[t.length - 1]) s = t.length - 1;
else for (var a, l = t.length - 2; s < l;) if (e < t[a = s + (l - s >> 1)]) l = a - 1;
else {
if (!(e >= t[a + 1])) {
s = a;
break;
}
s = a + 1;
}
return {
col: e - t[s] + 1,
line: s + 1
};
}, t.mapResolve = function(e) {
return /^\w+:\/\//.test(e) ? e : KA(this.map.consumer().sourceRoot || this.map.root || ".", e);
}, t.origin = function(e, t, r, n) {
if (!this.map) return !1;
var o;
var i;
var s = this.map.consumer();
var a = s.originalPositionFor({
column: t,
line: e
});
if (!a.source) return !1;
"number" == typeof r && (o = s.originalPositionFor({
column: n,
line: r
})), i = GA(a.source) ? HA(a.source) : new URL(a.source, this.map.consumer().sourceRoot || HA(this.map.mapFile));
var l = {
column: a.column,
endColumn: o && o.column,
endLine: o && o.line,
line: a.line,
url: i.toString()
};
if ("file:" === i.protocol) {
if (!WA) throw new Error("file: protocol is not available in this PostCSS build");
l.file = WA(i);
}
var c = s.sourceContentFor(a.source);
return c && (l.source = c), l;
}, t.toJSON = function() {
for (var e = {}, t = 0, r = [
"hasBOM",
"css",
"file",
"id"
]; t < r.length; t++) {
var n = r[t];
null != this[n] && (e[n] = this[n]);
}
return this.map && (e.map = D_({}, this.map), e.map.consumerCache && (e.map.consumerCache = void 0)), e;
}, L_(e, [{
key: "from",
get: function() {
return this.file || this.id;
}
}]), e;
}();
var nP = rP;
rP.default = rP, ZA && ZA.registerInput && ZA.registerInput(rP);
var oP = fA.SourceMapConsumer;
var iP = fA.SourceMapGenerator;
var sP = fA.dirname;
var aP = fA.relative;
var lP = fA.resolve;
var cP = fA.sep;
var uP = fA.pathToFileURL;
var pP = nP;
var dP = Boolean(oP && iP);
var fP = Boolean(sP && lP && aP && cP);
var mP = function() {
function e(e, t, r, n) {
this.stringify = e, this.mapOpts = r.map || {}, this.root = t, this.opts = r, this.css = n, this.originalCSS = n, this.usesFileUrls = !this.mapOpts.from && this.mapOpts.absolute, this.memoizedFileURLs = /* @__PURE__ */ new Map(), this.memoizedPaths = /* @__PURE__ */ new Map(), this.memoizedURLs = /* @__PURE__ */ new Map();
}
var t = e.prototype;
return t.addAnnotation = function() {
var e = this.isInline() ? "data:application/json;base64," + this.toBase64(this.map.toString()) : "string" == typeof this.mapOpts.annotation ? this.mapOpts.annotation : "function" == typeof this.mapOpts.annotation ? this.mapOpts.annotation(this.opts.to, this.root) : this.outputFile() + ".map";
var t = "\n";
this.css.includes("\r\n") && (t = "\r\n"), this.css += t + "/*# sourceMappingURL=" + e + " */";
}, t.applyPrevMaps = function() {
for (var e, t = W_(this.previous()); !(e = t()).done;) {
var r = e.value;
var n = this.toUrl(this.path(r.file));
var o = r.root || sP(r.file);
var i = void 0;
!1 === this.mapOpts.sourcesContent ? (i = new oP(r.text)).sourcesContent && (i.sourcesContent = null) : i = r.consumer(), this.map.applySourceMap(i, n, this.toUrl(this.path(o)));
}
}, t.clearAnnotation = function() {
if (!1 !== this.mapOpts.annotation) if (this.root) for (var e, t = this.root.nodes.length - 1; t >= 0; t--) "comment" === (e = this.root.nodes[t]).type && 0 === e.text.indexOf("# sourceMappingURL=") && this.root.removeChild(t);
else this.css && (this.css = this.css.replace(/\n*?\/\*#[\S\s]*?\*\/$/gm, ""));
}, t.generate = function() {
if (this.clearAnnotation(), fP && dP && this.isMap()) return this.generateMap();
var e = "";
return this.stringify(this.root, function(t) {
e += t;
}), [e];
}, t.generateMap = function() {
if (this.root) this.generateString();
else if (1 === this.previous().length) {
var e = this.previous()[0].consumer();
e.file = this.outputFile(), this.map = iP.fromSourceMap(e, { ignoreInvalidMapping: !0 });
} else this.map = new iP({
file: this.outputFile(),
ignoreInvalidMapping: !0
}), this.map.addMapping({
generated: {
column: 0,
line: 1
},
original: {
column: 0,
line: 1
},
source: this.opts.from ? this.toUrl(this.path(this.opts.from)) : "<no source>"
});
return this.isSourcesContent() && this.setSourcesContent(), this.root && this.previous().length > 0 && this.applyPrevMaps(), this.isAnnotation() && this.addAnnotation(), this.isInline() ? [this.css] : [this.css, this.map];
}, t.generateString = function() {
var e = this;
this.css = "", this.map = new iP({
file: this.outputFile(),
ignoreInvalidMapping: !0
});
var t;
var r;
var n = 1;
var o = 1;
var i = "<no source>";
var s = {
generated: {
column: 0,
line: 0
},
original: {
column: 0,
line: 0
},
source: ""
};
this.stringify(this.root, function(a, l, c) {
if (e.css += a, l && "end" !== c && (s.generated.line = n, s.generated.column = o - 1, l.source && l.source.start ? (s.source = e.sourcePath(l), s.original.line = l.source.start.line, s.original.column = l.source.start.column - 1, e.map.addMapping(s)) : (s.source = i, s.original.line = 1, s.original.column = 0, e.map.addMapping(s))), (t = a.match(/\n/g)) ? (n += t.length, r = a.lastIndexOf("\n"), o = a.length - r) : o += a.length, l && "start" !== c) {
var u = l.parent || { raws: {} };
("decl" === l.type || "atrule" === l.type && !l.nodes) && l === u.last && !u.raws.semicolon || (l.source && l.source.end ? (s.source = e.sourcePath(l), s.original.line = l.source.end.line, s.original.column = l.source.end.column - 1, s.generated.line = n, s.generated.column = o - 2, e.map.addMapping(s)) : (s.source = i, s.original.line = 1, s.original.column = 0, s.generated.line = n, s.generated.column = o - 1, e.map.addMapping(s)));
}
});
}, t.isAnnotation = function() {
return !!this.isInline() || (void 0 !== this.mapOpts.annotation ? this.mapOpts.annotation : !this.previous().length || this.previous().some(function(e) {
return e.annotation;
}));
}, t.isInline = function() {
if (void 0 !== this.mapOpts.inline) return this.mapOpts.inline;
var e = this.mapOpts.annotation;
return (void 0 === e || !0 === e) && (!this.previous().length || this.previous().some(function(e) {
return e.inline;
}));
}, t.isMap = function() {
return void 0 !== this.opts.map ? !!this.opts.map : this.previous().length > 0;
}, t.isSourcesContent = function() {
return void 0 !== this.mapOpts.sourcesContent ? this.mapOpts.sourcesContent : !this.previous().length || this.previous().some(function(e) {
return e.withContent();
});
}, t.outputFile = function() {
return this.opts.to ? this.path(this.opts.to) : this.opts.from ? this.path(this.opts.from) : "to.css";
}, t.path = function(e) {
if (this.mapOpts.absolute) return e;
if (60 === e.charCodeAt(0)) return e;
if (/^\w+:\/\//.test(e)) return e;
var t = this.memoizedPaths.get(e);
if (t) return t;
var r = this.opts.to ? sP(this.opts.to) : ".";
"string" == typeof this.mapOpts.annotation && (r = sP(lP(r, this.mapOpts.annotation)));
var n = aP(r, e);
return this.memoizedPaths.set(e, n), n;
}, t.previous = function() {
var e = this;
if (!this.previousMaps) if (this.previousMaps = [], this.root) this.root.walk(function(t) {
if (t.source && t.source.input.map) {
var r = t.source.input.map;
e.previousMaps.includes(r) || e.previousMaps.push(r);
}
});
else {
var t = new pP(this.originalCSS, this.opts);
t.map && this.previousMaps.push(t.map);
}
return this.previousMaps;
}, t.setSourcesContent = function() {
var e = this;
var t = {};
if (this.root) this.root.walk(function(r) {
if (r.source) {
var n = r.source.input.from;
if (n && !t[n]) {
t[n] = !0;
var o = e.usesFileUrls ? e.toFileUrl(n) : e.toUrl(e.path(n));
e.map.setSourceContent(o, r.source.input.css);
}
}
});
else if (this.css) {
var r = this.opts.from ? this.toUrl(this.path(this.opts.from)) : "<no source>";
this.map.setSourceContent(r, this.css);
}
}, t.sourcePath = function(e) {
return this.mapOpts.from ? this.toUrl(this.mapOpts.from) : this.usesFileUrls ? this.toFileUrl(e.source.input.from) : this.toUrl(this.path(e.source.input.from));
}, t.toBase64 = function(e) {
return Buffer ? Buffer.from(e).toString("base64") : window.btoa(unescape(encodeURIComponent(e)));
}, t.toFileUrl = function(e) {
var t = this.memoizedFileURLs.get(e);
if (t) return t;
if (uP) {
var r = uP(e).toString();
return this.memoizedFileURLs.set(e, r), r;
}
throw new Error("`map.absolute` option is not available in this PostCSS build");
}, t.toUrl = function(e) {
var t = this.memoizedURLs.get(e);
if (t) return t;
"\\" === cP && (e = e.replace(/\\/g, "/"));
var r = encodeURI(e).replace(/[#?]/g, encodeURIComponent);
return this.memoizedURLs.set(e, r), r;
}, e;
}();
var gP = function(e) {
function t(t) {
var r;
return (r = e.call(this, t) || this).type = "comment", r;
}
return F_(t, e), t;
}(AA);
var vP = gP;
gP.default = gP;
var yP;
var bP;
var wP;
var _P;
var xP = yA.isClean;
var SP = yA.my;
var kP = NA;
var CP = vP;
function OP(e) {
return e.map(function(e) {
return e.nodes && (e.nodes = OP(e.nodes)), delete e.source, e;
});
}
function EP(e) {
if (e[xP] = !1, e.proxyOf.nodes) for (var t, r = W_(e.proxyOf.nodes); !(t = r()).done;) EP(t.value);
}
var TP = function(e) {
function t() {
return e.apply(this, arguments) || this;
}
F_(t, e);
var r = t.prototype;
return r.append = function() {
for (var e = arguments.length, t = new Array(e), r = 0; r < e; r++) t[r] = arguments[r];
for (var n, o = W_(t); !(n = o()).done;) for (var i, s = n.value, a = W_(this.normalize(s, this.last)); !(i = a()).done;) {
var l = i.value;
this.proxyOf.nodes.push(l);
}
return this.markDirty(), this;
}, r.cleanRaws = function(t) {
if (e.prototype.cleanRaws.call(this, t), this.nodes) for (var r, n = W_(this.nodes); !(r = n()).done;) r.value.cleanRaws(t);
}, r.each = function(e) {
if (this.proxyOf.nodes) {
for (var t, r, n = this.getIterator(); this.indexes[n] < this.proxyOf.nodes.length && (t = this.indexes[n], !1 !== (r = e(this.proxyOf.nodes[t], t)));) this.indexes[n] += 1;
return delete this.indexes[n], r;
}
}, r.every = function(e) {
return this.nodes.every(e);
}, r.getIterator = function() {
this.lastEach || (this.lastEach = 0), this.indexes || (this.indexes = {}), this.lastEach += 1;
var e = this.lastEach;
return this.indexes[e] = 0, e;
}, r.getProxyProcessor = function() {
return {
get: function(e, t) {
return "proxyOf" === t ? e : e[t] ? "each" === t || "string" == typeof t && t.startsWith("walk") ? function() {
for (var r = arguments.length, n = new Array(r), o = 0; o < r; o++) n[o] = arguments[o];
var i;
return (i = e)[t].apply(i, [].concat(n.map(function(e) {
return "function" == typeof e ? function(t, r) {
return e(t.toProxy(), r);
} : e;
})));
} : "every" === t || "some" === t ? function(r) {
return e[t](function(e) {
for (var t = arguments.length, n = new Array(t > 1 ? t - 1 : 0), o = 1; o < t; o++) n[o - 1] = arguments[o];
return r.apply(void 0, [].concat([e.toProxy()], n));
});
} : "root" === t ? function() {
return e.root().toProxy();
} : "nodes" === t ? e.nodes.map(function(e) {
return e.toProxy();
}) : "first" === t || "last" === t ? e[t].toProxy() : e[t] : e[t];
},
set: function(e, t, r) {
return e[t] === r || (e[t] = r, "name" !== t && "params" !== t && "selector" !== t || e.markDirty()), !0;
}
};
}, r.index = function(e) {
return "number" == typeof e ? e : (e.proxyOf && (e = e.proxyOf), this.proxyOf.nodes.indexOf(e));
}, r.insertAfter = function(e, t) {
var r;
var n = this.index(e);
var o = this.normalize(t, this.proxyOf.nodes[n]).reverse();
n = this.index(e);
for (var i, s = W_(o); !(i = s()).done;) {
var a = i.value;
this.proxyOf.nodes.splice(n + 1, 0, a);
}
for (var l in this.indexes) n < (r = this.indexes[l]) && (this.indexes[l] = r + o.length);
return this.markDirty(), this;
}, r.insertBefore = function(e, t) {
var r;
var n = this.index(e);
var o = 0 === n && "prepend";
var i = this.normalize(t, this.proxyOf.nodes[n], o).reverse();
n = this.index(e);
for (var s, a = W_(i); !(s = a()).done;) {
var l = s.value;
this.proxyOf.nodes.splice(n, 0, l);
}
for (var c in this.indexes) n <= (r = this.indexes[c]) && (this.indexes[c] = r + i.length);
return this.markDirty(), this;
}, r.normalize = function(e, r) {
var n = this;
if ("string" == typeof e) e = OP(yP(e).nodes);
else if (void 0 === e) e = [];
else if (Array.isArray(e)) for (var o, i = W_(e = e.slice(0)); !(o = i()).done;) {
var s = o.value;
s.parent && s.parent.removeChild(s, "ignore");
}
else if ("root" === e.type && "document" !== this.type) for (var a, l = W_(e = e.nodes.slice(0)); !(a = l()).done;) {
var c = a.value;
c.parent && c.parent.removeChild(c, "ignore");
}
else if (e.type) e = [e];
else if (e.prop) {
if (void 0 === e.value) throw new Error("Value field is missed in node creation");
"string" != typeof e.value && (e.value = String(e.value)), e = [new kP(e)];
} else if (e.selector) e = [new bP(e)];
else if (e.name) e = [new wP(e)];
else {
if (!e.text) throw new Error("Unknown node type in node creation");
e = [new CP(e)];
}
return e.map(function(e) {
return e[SP] || t.rebuild(e), (e = e.proxyOf).parent && e.parent.removeChild(e), e[xP] && EP(e), void 0 === e.raws.before && r && void 0 !== r.raws.before && (e.raws.before = r.raws.before.replace(/\S/g, "")), e.parent = n.proxyOf, e;
});
}, r.prepend = function() {
for (var e = arguments.length, t = new Array(e), r = 0; r < e; r++) t[r] = arguments[r];
for (var n, o = W_(t = t.reverse()); !(n = o()).done;) {
for (var i, s = n.value, a = this.normalize(s, this.first, "prepend").reverse(), l = W_(a); !(i = l()).done;) {
var c = i.value;
this.proxyOf.nodes.unshift(c);
}
for (var u in this.indexes) this.indexes[u] = this.indexes[u] + a.length;
}
return this.markDirty(), this;
}, r.push = function(e) {
return e.parent = this, this.proxyOf.nodes.push(e), this;
}, r.removeAll = function() {
for (var e, t = W_(this.proxyOf.nodes); !(e = t()).done;) e.value.parent = void 0;
return this.proxyOf.nodes = [], this.markDirty(), this;
}, r.removeChild = function(e) {
var t;
for (var r in e = this.index(e), this.proxyOf.nodes[e].parent = void 0, this.proxyOf.nodes.splice(e, 1), this.indexes) (t = this.indexes[r]) >= e && (this.indexes[r] = t - 1);
return this.markDirty(), this;
}, r.replaceValues = function(e, t, r) {
return r || (r = t, t = {}), this.walkDecls(function(n) {
t.props && !t.props.includes(n.prop) || t.fast && !n.value.includes(t.fast) || (n.value = n.value.replace(e, r));
}), this.markDirty(), this;
}, r.some = function(e) {
return this.nodes.some(e);
}, r.walk = function(e) {
return this.each(function(t, r) {
var n;
try {
n = e(t, r);
} catch (e) {
throw t.addToError(e);
}
return !1 !== n && t.walk && (n = t.walk(e)), n;
});
}, r.walkAtRules = function(e, t) {
return t ? $_(e, RegExp) ? this.walk(function(r, n) {
if ("atrule" === r.type && e.test(r.name)) return t(r, n);
}) : this.walk(function(r, n) {
if ("atrule" === r.type && r.name === e) return t(r, n);
}) : (t = e, this.walk(function(e, r) {
if ("atrule" === e.type) return t(e, r);
}));
}, r.walkComments = function(e) {
return this.walk(function(t, r) {
if ("comment" === t.type) return e(t, r);
});
}, r.walkDecls = function(e, t) {
return t ? $_(e, RegExp) ? this.walk(function(r, n) {
if ("decl" === r.type && e.test(r.prop)) return t(r, n);
}) : this.walk(function(r, n) {
if ("decl" === r.type && r.prop === e) return t(r, n);
}) : (t = e, this.walk(function(e, r) {
if ("decl" === e.type) return t(e, r);
}));
}, r.walkRules = function(e, t) {
return t ? $_(e, RegExp) ? this.walk(function(r, n) {
if ("rule" === r.type && e.test(r.selector)) return t(r, n);
}) : this.walk(function(r, n) {
if ("rule" === r.type && r.selector === e) return t(r, n);
}) : (t = e, this.walk(function(e, r) {
if ("rule" === e.type) return t(e, r);
}));
}, L_(t, [{
key: "first",
get: function() {
if (this.proxyOf.nodes) return this.proxyOf.nodes[0];
}
}, {
key: "last",
get: function() {
if (this.proxyOf.nodes) return this.proxyOf.nodes[this.proxyOf.nodes.length - 1];
}
}]), t;
}(AA);
TP.registerParse = function(e) {
yP = e;
}, TP.registerRule = function(e) {
bP = e;
}, TP.registerAtRule = function(e) {
wP = e;
}, TP.registerRoot = function(e) {
_P = e;
};
var RP = TP;
TP.default = TP, TP.rebuild = function(e) {
"atrule" === e.type ? Object.setPrototypeOf(e, wP.prototype) : "rule" === e.type ? Object.setPrototypeOf(e, bP.prototype) : "decl" === e.type ? Object.setPrototypeOf(e, kP.prototype) : "comment" === e.type ? Object.setPrototypeOf(e, CP.prototype) : "root" === e.type && Object.setPrototypeOf(e, _P.prototype), e[SP] = !0, e.nodes && e.nodes.forEach(function(e) {
TP.rebuild(e);
});
};
var IP;
var MP;
var AP = function(e) {
function t(t) {
var r;
return (r = e.call(this, D_({ type: "document" }, t)) || this).nodes || (r.nodes = []), r;
}
return F_(t, e), t.prototype.toResult = function(e) {
return void 0 === e && (e = {}), new IP(new MP(), this, e).stringify();
}, t;
}(RP);
AP.registerLazyResult = function(e) {
IP = e;
}, AP.registerProcessor = function(e) {
MP = e;
};
var PP = AP;
AP.default = AP;
var NP = {};
var LP = function(e) {
NP[e] || (NP[e] = !0, "undefined" != typeof console && console.warn && console.warn(e));
};
var DP = function() {
function e(e, t) {
if (void 0 === t && (t = {}), this.type = "warning", this.text = e, t.node && t.node.source) {
var r = t.node.rangeBy(t);
this.line = r.start.line, this.column = r.start.column, this.endLine = r.end.line, this.endColumn = r.end.column;
}
for (var n in t) this[n] = t[n];
}
return e.prototype.toString = function() {
return this.node ? this.node.error(this.text, {
index: this.index,
plugin: this.plugin,
word: this.word
}).message : this.plugin ? this.plugin + ": " + this.text : this.text;
}, e;
}();
var jP = DP;
DP.default = DP;
var FP = jP;
var $P = function() {
function e(e, t, r) {
this.processor = e, this.messages = [], this.root = t, this.opts = r, this.css = void 0, this.map = void 0;
}
var t = e.prototype;
return t.toString = function() {
return this.css;
}, t.warn = function(e, t) {
void 0 === t && (t = {}), t.plugin || this.lastPlugin && this.lastPlugin.postcssPlugin && (t.plugin = this.lastPlugin.postcssPlugin);
var r = new FP(e, t);
return this.messages.push(r), r;
}, t.warnings = function() {
return this.messages.filter(function(e) {
return "warning" === e.type;
});
}, L_(e, [{
key: "content",
get: function() {
return this.css;
}
}]), e;
}();
var BP = $P;
$P.default = $P;
var zP = "'".charCodeAt(0);
var VP = "\"".charCodeAt(0);
var UP = "\\".charCodeAt(0);
var qP = "/".charCodeAt(0);
var WP = "\n".charCodeAt(0);
var HP = " ".charCodeAt(0);
var GP = "\f".charCodeAt(0);
var KP = " ".charCodeAt(0);
var YP = "\r".charCodeAt(0);
var ZP = "[".charCodeAt(0);
var XP = "]".charCodeAt(0);
var JP = "(".charCodeAt(0);
var QP = ")".charCodeAt(0);
var eN = "{".charCodeAt(0);
var tN = "}".charCodeAt(0);
var rN = ";".charCodeAt(0);
var nN = "*".charCodeAt(0);
var oN = ":".charCodeAt(0);
var iN = "@".charCodeAt(0);
var sN = /[\t\n\f\r "#'()/;[\\\]{}]/g;
var aN = /[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g;
var lN = /.[\r\n"'(/\\]/;
var cN = /[\da-f]/i;
var uN = RP;
var pN = function(e) {
function t(t) {
var r;
return (r = e.call(this, t) || this).type = "atrule", r;
}
F_(t, e);
var r = t.prototype;
return r.append = function() {
for (var t = arguments.length, r = new Array(t), n = 0; n < t; n++) r[n] = arguments[n];
var o;
return this.proxyOf.nodes || (this.nodes = []), (o = e.prototype.append).call.apply(o, [].concat([this], r));
}, r.prepend = function() {
for (var t = arguments.length, r = new Array(t), n = 0; n < t; n++) r[n] = arguments[n];
var o;
return this.proxyOf.nodes || (this.nodes = []), (o = e.prototype.prepend).call.apply(o, [].concat([this], r));
}, t;
}(uN);
var dN = pN;
pN.default = pN, uN.registerAtRule(pN);
var fN;
var hN;
var mN = RP;
var gN = function(e) {
function t(t) {
var r;
return (r = e.call(this, t) || this).type = "root", r.nodes || (r.nodes = []), r;
}
F_(t, e);
var r = t.prototype;
return r.normalize = function(t, r, n) {
var o = e.prototype.normalize.call(this, t);
if (r) {
if ("prepend" === n) this.nodes.length > 1 ? r.raws.before = this.nodes[1].raws.before : delete r.raws.before;
else if (this.first !== r) for (var i, s = W_(o); !(i = s()).done;) i.value.raws.before = r.raws.before;
}
return o;
}, r.removeChild = function(t, r) {
var n = this.index(t);
return !r && 0 === n && this.nodes.length > 1 && (this.nodes[1].raws.before = this.nodes[n].raws.before), e.prototype.removeChild.call(this, t);
}, r.toResult = function(e) {
return void 0 === e && (e = {}), new fN(new hN(), this, e).stringify();
}, t;
}(mN);
gN.registerLazyResult = function(e) {
fN = e;
}, gN.registerProcessor = function(e) {
hN = e;
};
var vN = gN;
gN.default = gN, mN.registerRoot(gN);
var yN = {
comma: function(e) {
return yN.split(e, [","], !0);
},
space: function(e) {
return yN.split(e, [
" ",
"\n",
" "
]);
},
split: function(e, t, r) {
for (var n, o = [], i = "", s = !1, a = 0, l = !1, c = "", u = !1, p = W_(e); !(n = p()).done;) {
var d = n.value;
u ? u = !1 : "\\" === d ? u = !0 : l ? d === c && (l = !1) : "\"" === d || "'" === d ? (l = !0, c = d) : "(" === d ? a += 1 : ")" === d ? a > 0 && (a -= 1) : 0 === a && t.includes(d) && (s = !0), s ? ("" !== i && o.push(i.trim()), i = "", s = !1) : i += d;
}
return (r || "" !== i) && o.push(i.trim()), o;
}
};
var bN = yN;
yN.default = yN;
var wN = RP;
var _N = bN;
var xN = function(e) {
function t(t) {
var r;
return (r = e.call(this, t) || this).type = "rule", r.nodes || (r.nodes = []), r;
}
return F_(t, e), L_(t, [{
key: "selectors",
get: function() {
return _N.comma(this.selector);
},
set: function(e) {
var t = this.selector ? this.selector.match(/,\s*/) : null;
var r = t ? t[0] : "," + this.raw("between", "beforeOpen");
this.selector = e.join(r);
}
}]), t;
}(wN);
var SN = xN;
xN.default = xN, wN.registerRule(xN);
var kN = NA;
var CN = vP;
var ON = dN;
var EN = vN;
var TN = SN;
var RN = {
empty: !0,
space: !0
};
var IN = function() {
function e(e) {
this.input = e, this.root = new EN(), this.current = this.root, this.spaces = "", this.semicolon = !1, this.createTokenizer(), this.root.source = {
input: e,
start: {
column: 1,
line: 1,
offset: 0
}
};
}
var t = e.prototype;
return t.atrule = function(e) {
var t;
var r;
var n;
var o = new ON();
o.name = e[1].slice(1), "" === o.name && this.unnamedAtrule(o, e), this.init(o, e[2]);
for (var i = !1, s = !1, a = [], l = []; !this.tokenizer.endOfFile();) {
if ("(" === (t = (e = this.tokenizer.nextToken())[0]) || "[" === t ? l.push("(" === t ? ")" : "]") : "{" === t && l.length > 0 ? l.push("}") : t === l[l.length - 1] && l.pop(), 0 === l.length) {
if (";" === t) {
o.source.end = this.getPosition(e[2]), o.source.end.offset++, this.semicolon = !0;
break;
}
if ("{" === t) {
s = !0;
break;
}
if ("}" === t) {
if (a.length > 0) {
for (r = a[n = a.length - 1]; r && "space" === r[0];) r = a[--n];
r && (o.source.end = this.getPosition(r[3] || r[2]), o.source.end.offset++);
}
this.end(e);
break;
}
a.push(e);
} else a.push(e);
if (this.tokenizer.endOfFile()) {
i = !0;
break;
}
}
o.raws.between = this.spacesAndCommentsFromEnd(a), a.length ? (o.raws.afterName = this.spacesAndCommentsFromStart(a), this.raw(o, "params", a), i && (e = a[a.length - 1], o.source.end = this.getPosition(e[3] || e[2]), o.source.end.offset++, this.spaces = o.raws.between, o.raws.between = "")) : (o.raws.afterName = "", o.params = ""), s && (o.nodes = [], this.current = o);
}, t.checkMissedSemicolon = function(e) {
var t = this.colon(e);
if (!1 !== t) {
for (var r, n = 0, o = t - 1; o >= 0 && ("space" === (r = e[o])[0] || 2 !== (n += 1)); o--);
throw this.input.error("Missed semicolon", "word" === r[0] ? r[3] + 1 : r[2]);
}
}, t.colon = function(e) {
for (var t, r, n, o, i = 0, s = W_(e.entries()); !(o = s()).done;) {
var a = o.value;
var l = a[0];
if ("(" === (r = (t = a[1])[0]) && (i += 1), ")" === r && (i -= 1), 0 === i && ":" === r) {
if (n) {
if ("word" === n[0] && "progid" === n[1]) continue;
return l;
}
this.doubleColon(t);
}
n = t;
}
return !1;
}, t.comment = function(e) {
var t = new CN();
this.init(t, e[2]), t.source.end = this.getPosition(e[3] || e[2]), t.source.end.offset++;
var r = e[1].slice(2, -2);
if (/^\s*$/.test(r)) t.text = "", t.raws.left = r, t.raws.right = "";
else {
var n = r.match(/^(\s*)([^]*\S)(\s*)$/);
t.text = n[2], t.raws.left = n[1], t.raws.right = n[3];
}
}, t.createTokenizer = function() {
this.tokenizer = function(e, t) {
void 0 === t && (t = {});
var r;
var n;
var o;
var i;
var s;
var a;
var l;
var c;
var u;
var p;
var d = e.css.valueOf();
var f = t.ignoreErrors;
var h = d.length;
var m = 0;
var g = [];
var v = [];
function y(t) {
throw e.error("Unclosed " + t, m);
}
return {
back: function(e) {
v.push(e);
},
endOfFile: function() {
return 0 === v.length && m >= h;
},
nextToken: function(e) {
if (v.length) return v.pop();
if (!(m >= h)) {
var t = !!e && e.ignoreUnclosed;
switch (r = d.charCodeAt(m)) {
case WP:
case HP:
case KP:
case YP:
case GP:
n = m;
do
n += 1, r = d.charCodeAt(n);
while (r === HP || r === WP || r === KP || r === YP || r === GP);
p = ["space", d.slice(m, n)], m = n - 1;
break;
case ZP:
case XP:
case eN:
case tN:
case oN:
case rN:
case QP:
var b = String.fromCharCode(r);
p = [
b,
b,
m
];
break;
case JP:
if (c = g.length ? g.pop()[1] : "", u = d.charCodeAt(m + 1), "url" === c && u !== zP && u !== VP && u !== HP && u !== WP && u !== KP && u !== GP && u !== YP) {
n = m;
do {
if (a = !1, -1 === (n = d.indexOf(")", n + 1))) {
if (f || t) {
n = m;
break;
}
y("bracket");
}
for (l = n; d.charCodeAt(l - 1) === UP;) l -= 1, a = !a;
} while (a);
p = [
"brackets",
d.slice(m, n + 1),
m,
n
], m = n;
} else n = d.indexOf(")", m + 1), i = d.slice(m, n + 1), -1 === n || lN.test(i) ? p = [
"(",
"(",
m
] : (p = [
"brackets",
i,
m,
n
], m = n);
break;
case zP:
case VP:
o = r === zP ? "'" : "\"", n = m;
do {
if (a = !1, -1 === (n = d.indexOf(o, n + 1))) {
if (f || t) {
n = m + 1;
break;
}
y("string");
}
for (l = n; d.charCodeAt(l - 1) === UP;) l -= 1, a = !a;
} while (a);
p = [
"string",
d.slice(m, n + 1),
m,
n
], m = n;
break;
case iN:
sN.lastIndex = m + 1, sN.test(d), n = 0 === sN.lastIndex ? d.length - 1 : sN.lastIndex - 2, p = [
"at-word",
d.slice(m, n + 1),
m,
n
], m = n;
break;
case UP:
for (n = m, s = !0; d.charCodeAt(n + 1) === UP;) n += 1, s = !s;
if (r = d.charCodeAt(n + 1), s && r !== qP && r !== HP && r !== WP && r !== KP && r !== YP && r !== GP && (n += 1, cN.test(d.charAt(n)))) {
for (; cN.test(d.charAt(n + 1));) n += 1;
d.charCodeAt(n + 1) === HP && (n += 1);
}
p = [
"word",
d.slice(m, n + 1),
m,
n
], m = n;
break;
default: r === qP && d.charCodeAt(m + 1) === nN ? (0 === (n = d.indexOf("*/", m + 2) + 1) && (f || t ? n = d.length : y("comment")), p = [
"comment",
d.slice(m, n + 1),
m,
n
], m = n) : (aN.lastIndex = m + 1, aN.test(d), n = 0 === aN.lastIndex ? d.length - 1 : aN.lastIndex - 2, p = [
"word",
d.slice(m, n + 1),
m,
n
], g.push(p), m = n);
}
return m++, p;
}
},
position: function() {
return m;
}
};
}(this.input);
}, t.decl = function(e, t) {
var r = new kN();
this.init(r, e[0][2]);
var n;
var o = e[e.length - 1];
for (";" === o[0] && (this.semicolon = !0, e.pop()), r.source.end = this.getPosition(o[3] || o[2] || function(e) {
for (var t = e.length - 1; t >= 0; t--) {
var r = e[t];
var n = r[3] || r[2];
if (n) return n;
}
}(e)), r.source.end.offset++; "word" !== e[0][0];) 1 === e.length && this.unknownWord(e), r.raws.before += e.shift()[1];
for (r.source.start = this.getPosition(e[0][2]), r.prop = ""; e.length;) {
var i = e[0][0];
if (":" === i || "space" === i || "comment" === i) break;
r.prop += e.shift()[1];
}
for (r.raws.between = ""; e.length;) {
if (":" === (n = e.shift())[0]) {
r.raws.between += n[1];
break;
}
"word" === n[0] && /\w/.test(n[1]) && this.unknownWord([n]), r.raws.between += n[1];
}
"_" !== r.prop[0] && "*" !== r.prop[0] || (r.raws.before += r.prop[0], r.prop = r.prop.slice(1));
for (var s, a = []; e.length && ("space" === (s = e[0][0]) || "comment" === s);) a.push(e.shift());
this.precheckMissedSemicolon(e);
for (var l = e.length - 1; l >= 0; l--) {
if ("!important" === (n = e[l])[1].toLowerCase()) {
r.important = !0;
var c = this.stringFrom(e, l);
" !important" !== (c = this.spacesFromEnd(e) + c) && (r.raws.important = c);
break;
}
if ("important" === n[1].toLowerCase()) {
for (var u = e.slice(0), p = "", d = l; d > 0; d--) {
var f = u[d][0];
if (0 === p.trim().indexOf("!") && "space" !== f) break;
p = u.pop()[1] + p;
}
0 === p.trim().indexOf("!") && (r.important = !0, r.raws.important = p, e = u);
}
if ("space" !== n[0] && "comment" !== n[0]) break;
}
e.some(function(e) {
return "space" !== e[0] && "comment" !== e[0];
}) && (r.raws.between += a.map(function(e) {
return e[1];
}).join(""), a = []), this.raw(r, "value", a.concat(e), t), r.value.includes(":") && !t && this.checkMissedSemicolon(e);
}, t.doubleColon = function(e) {
throw this.input.error("Double colon", { offset: e[2] }, { offset: e[2] + e[1].length });
}, t.emptyRule = function(e) {
var t = new TN();
this.init(t, e[2]), t.selector = "", t.raws.between = "", this.current = t;
}, t.end = function(e) {
this.current.nodes && this.current.nodes.length && (this.current.raws.semicolon = this.semicolon), this.semicolon = !1, this.current.raws.after = (this.current.raws.after || "") + this.spaces, this.spaces = "", this.current.parent ? (this.current.source.end = this.getPosition(e[2]), this.current.source.end.offset++, this.current = this.current.parent) : this.unexpectedClose(e);
}, t.endFile = function() {
this.current.parent && this.unclosedBlock(), this.current.nodes && this.current.nodes.length && (this.current.raws.semicolon = this.semicolon), this.current.raws.after = (this.current.raws.after || "") + this.spaces, this.root.source.end = this.getPosition(this.tokenizer.position());
}, t.freeSemicolon = function(e) {
if (this.spaces += e[1], this.current.nodes) {
var t = this.current.nodes[this.current.nodes.length - 1];
t && "rule" === t.type && !t.raws.ownSemicolon && (t.raws.ownSemicolon = this.spaces, this.spaces = "");
}
}, t.getPosition = function(e) {
var t = this.input.fromOffset(e);
return {
column: t.col,
line: t.line,
offset: e
};
}, t.init = function(e, t) {
this.current.push(e), e.source = {
input: this.input,
start: this.getPosition(t)
}, e.raws.before = this.spaces, this.spaces = "", "comment" !== e.type && (this.semicolon = !1);
}, t.other = function(e) {
for (var t = !1, r = null, n = !1, o = null, i = [], s = e[1].startsWith("--"), a = [], l = e; l;) {
if (r = l[0], a.push(l), "(" === r || "[" === r) o || (o = l), i.push("(" === r ? ")" : "]");
else if (s && n && "{" === r) o || (o = l), i.push("}");
else if (0 === i.length) {
if (";" === r) {
if (n) return void this.decl(a, s);
break;
}
if ("{" === r) return void this.rule(a);
if ("}" === r) {
this.tokenizer.back(a.pop()), t = !0;
break;
}
":" === r && (n = !0);
} else r === i[i.length - 1] && (i.pop(), 0 === i.length && (o = null));
l = this.tokenizer.nextToken();
}
if (this.tokenizer.endOfFile() && (t = !0), i.length > 0 && this.unclosedBracket(o), t && n) {
if (!s) for (; a.length && ("space" === (l = a[a.length - 1][0]) || "comment" === l);) this.tokenizer.back(a.pop());
this.decl(a, s);
} else this.unknownWord(a);
}, t.parse = function() {
for (var e; !this.tokenizer.endOfFile();) switch ((e = this.tokenizer.nextToken())[0]) {
case "space":
this.spaces += e[1];
break;
case ";":
this.freeSemicolon(e);
break;
case "}":
this.end(e);
break;
case "comment":
this.comment(e);
break;
case "at-word":
this.atrule(e);
break;
case "{":
this.emptyRule(e);
break;
default: this.other(e);
}
this.endFile();
}, t.precheckMissedSemicolon = function() {}, t.raw = function(e, t, r, n) {
for (var o, i, s, a, l = r.length, c = "", u = !0, p = 0; p < l; p += 1) "space" !== (i = (o = r[p])[0]) || p !== l - 1 || n ? "comment" === i ? (a = r[p - 1] ? r[p - 1][0] : "empty", s = r[p + 1] ? r[p + 1][0] : "empty", RN[a] || RN[s] || "," === c.slice(-1) ? u = !1 : c += o[1]) : c += o[1] : u = !1;
if (!u) {
var d = r.reduce(function(e, t) {
return e + t[1];
}, "");
e.raws[t] = {
raw: d,
value: c
};
}
e[t] = c;
}, t.rule = function(e) {
e.pop();
var t = new TN();
this.init(t, e[0][2]), t.raws.between = this.spacesAndCommentsFromEnd(e), this.raw(t, "selector", e), this.current = t;
}, t.spacesAndCommentsFromEnd = function(e) {
for (var t, r = ""; e.length && ("space" === (t = e[e.length - 1][0]) || "comment" === t);) r = e.pop()[1] + r;
return r;
}, t.spacesAndCommentsFromStart = function(e) {
for (var t, r = ""; e.length && ("space" === (t = e[0][0]) || "comment" === t);) r += e.shift()[1];
return r;
}, t.spacesFromEnd = function(e) {
for (var t = ""; e.length && "space" === e[e.length - 1][0];) t = e.pop()[1] + t;
return t;
}, t.stringFrom = function(e, t) {
for (var r = "", n = t; n < e.length; n++) r += e[n][1];
return e.splice(t, e.length - t), r;
}, t.unclosedBlock = function() {
var e = this.current.source.start;
throw this.input.error("Unclosed block", e.line, e.column);
}, t.unclosedBracket = function(e) {
throw this.input.error("Unclosed bracket", { offset: e[2] }, { offset: e[2] + 1 });
}, t.unexpectedClose = function(e) {
throw this.input.error("Unexpected }", { offset: e[2] }, { offset: e[2] + 1 });
}, t.unknownWord = function(e) {
throw this.input.error("Unknown word", { offset: e[0][2] }, { offset: e[0][2] + e[0][1].length });
}, t.unnamedAtrule = function(e, t) {
throw this.input.error("At-rule without name", { offset: t[2] }, { offset: t[2] + t[1].length });
}, e;
}();
var MN = RP;
var AN = IN;
var PN = nP;
function NN(e, t) {
var n = new AN(new PN(e, t));
try {
n.parse();
} catch (e) {
throw "CssSyntaxError" === e.name && t && t.from && (/\.scss$/i.test(t.from) ? e.message += "\nYou tried to parse SCSS with the standard CSS parser; try again with the postcss-scss parser" : /\.sass/i.test(t.from) ? e.message += "\nYou tried to parse Sass with the standard CSS parser; try again with the postcss-sass parser" : /\.less$/i.test(t.from) && (e.message += "\nYou tried to parse Less with the standard CSS parser; try again with the postcss-less parser")), e;
}
return n.root;
}
var LN = NN;
NN.default = NN, MN.registerParse(NN);
var DN = yA.isClean;
var jN = yA.my;
var FN = mP;
var $N = kA;
var BN = RP;
var zN = PP;
var VN = LP;
var UN = BP;
var qN = LN;
var WN = vN;
var HN = {
atrule: "AtRule",
comment: "Comment",
decl: "Declaration",
document: "Document",
root: "Root",
rule: "Rule"
};
var GN = {
AtRule: !0,
AtRuleExit: !0,
Comment: !0,
CommentExit: !0,
Declaration: !0,
DeclarationExit: !0,
Document: !0,
DocumentExit: !0,
Once: !0,
OnceExit: !0,
postcssPlugin: !0,
prepare: !0,
Root: !0,
RootExit: !0,
Rule: !0,
RuleExit: !0
};
var KN = {
Once: !0,
postcssPlugin: !0,
prepare: !0
};
function YN(e) {
return "object" === (void 0 === e ? "undefined" : V_(e)) && "function" == typeof e.then;
}
function ZN(e) {
var t = !1;
var r = HN[e.type];
return "decl" === e.type ? t = e.prop.toLowerCase() : "atrule" === e.type && (t = e.name.toLowerCase()), t && e.append ? [
r,
r + "-" + t,
0,
r + "Exit",
r + "Exit-" + t
] : t ? [
r,
r + "-" + t,
r + "Exit",
r + "Exit-" + t
] : e.append ? [
r,
0,
r + "Exit"
] : [r, r + "Exit"];
}
function XN(e) {
return {
eventIndex: 0,
events: "document" === e.type ? [
"Document",
0,
"DocumentExit"
] : "root" === e.type ? [
"Root",
0,
"RootExit"
] : ZN(e),
iterator: 0,
node: e,
visitorIndex: 0,
visitors: []
};
}
function JN(e) {
return e[DN] = !1, e.nodes && e.nodes.forEach(function(e) {
return JN(e);
}), e;
}
var QN = {};
var eL = function() {
function e(t, r, n) {
var o;
var i = this;
if (this.stringified = !1, this.processed = !1, "object" !== (void 0 === r ? "undefined" : V_(r)) || null === r || "root" !== r.type && "document" !== r.type) if ($_(r, e) || $_(r, UN)) o = JN(r.root), r.map && (void 0 === n.map && (n.map = {}), n.map.inline || (n.map.inline = !1), n.map.prev = r.map);
else {
var s = qN;
n.syntax && (s = n.syntax.parse), n.parser && (s = n.parser), s.parse && (s = s.parse);
try {
o = s(r, n);
} catch (e) {
this.processed = !0, this.error = e;
}
o && !o[jN] && BN.rebuild(o);
}
else o = JN(r);
this.result = new UN(t, o, n), this.helpers = D_({}, QN, {
postcss: QN,
result: this.result
}), this.plugins = this.processor.plugins.map(function(e) {
return "object" === (void 0 === e ? "undefined" : V_(e)) && e.prepare ? D_({}, e, e.prepare(i.result)) : e;
});
}
var t = e.prototype;
return t.async = function() {
return this.error ? Promise.reject(this.error) : this.processed ? Promise.resolve(this.result) : (this.processing || (this.processing = this.runAsync()), this.processing);
}, t.catch = function(e) {
return this.async().catch(e);
}, t.finally = function(e) {
return this.async().then(e, e);
}, t.getAsyncError = function() {
throw new Error("Use process(css).then(cb) to work with async plugins");
}, t.handleError = function(e, t) {
var r = this.result.lastPlugin;
try {
if (t && t.addToError(e), this.error = e, "CssSyntaxError" !== e.name || e.plugin) {
if (r.postcssVersion && true) {
var n = r.postcssPlugin;
var o = r.postcssVersion;
var i = this.result.processor.version;
var s = o.split(".");
var a = i.split(".");
(s[0] !== a[0] || parseInt(s[1]) > parseInt(a[1])) && console.error("Unknown error from PostCSS plugin. Your current PostCSS version is " + i + ", but " + n + " uses " + o + ". Perhaps this is the source of the error below.");
}
} else e.plugin = r.postcssPlugin, e.setMessage();
} catch (e) {
console && console.error && console.error(e);
}
return e;
}, t.prepareVisitors = function() {
var e = this;
this.listeners = {};
for (var t, r = function(t, r, n) {
e.listeners[r] || (e.listeners[r] = []), e.listeners[r].push([t, n]);
}, n = W_(this.plugins); !(t = n()).done;) {
var o = t.value;
if ("object" === (void 0 === o ? "undefined" : V_(o))) for (var i in o) {
if (!GN[i] && /^[A-Z]/.test(i)) throw new Error("Unknown event " + i + " in " + o.postcssPlugin + ". Try to update PostCSS (" + this.processor.version + " now).");
if (!KN[i]) if ("object" === V_(o[i])) for (var s in o[i]) r(o, "*" === s ? i : i + "-" + s.toLowerCase(), o[i][s]);
else "function" == typeof o[i] && r(o, i, o[i]);
}
}
this.hasListener = Object.keys(this.listeners).length > 0;
}, t.runAsync = function() {
var e = this;
return P_(function() {
var t;
var r;
var n;
var o;
var i;
var s;
var a;
var l;
var c;
var u;
var p;
var d;
return H_(this, function(f) {
switch (f.label) {
case 0: e.plugin = 0, t = 0, f.label = 1;
case 1:
if (!(t < e.plugins.length)) return [3, 6];
if (r = e.plugins[t], !YN(n = e.runOnRoot(r))) return [3, 5];
f.label = 2;
case 2: return f.trys.push([
2,
4,
,
5
]), [4, n];
case 3: return f.sent(), [3, 5];
case 4: throw o = f.sent(), e.handleError(o);
case 5: return t++, [3, 1];
case 6:
if (e.prepareVisitors(), !e.hasListener) return [3, 18];
i = e.result.root, f.label = 7;
case 7:
if (i[DN]) return [3, 14];
i[DN] = !0, s = [XN(i)], f.label = 8;
case 8:
if (!(s.length > 0)) return [3, 13];
if (!YN(a = e.visitTick(s))) return [3, 12];
f.label = 9;
case 9: return f.trys.push([
9,
11,
,
12
]), [4, a];
case 10: return f.sent(), [3, 12];
case 11: throw l = f.sent(), c = s[s.length - 1].node, e.handleError(l, c);
case 12: return [3, 8];
case 13: return [3, 7];
case 14:
if (!e.listeners.OnceExit) return [3, 18];
u = function() {
var t;
var r;
var n;
var o;
var s;
return H_(this, function(a) {
switch (a.label) {
case 0: t = d.value, r = t[0], n = t[1], e.result.lastPlugin = r, a.label = 1;
case 1: return a.trys.push([
1,
6,
,
7
]), "document" !== i.type ? [3, 3] : (o = i.nodes.map(function(t) {
return n(t, e.helpers);
}), [4, Promise.all(o)]);
case 2: return a.sent(), [3, 5];
case 3: return [4, n(i, e.helpers)];
case 4: a.sent(), a.label = 5;
case 5: return [3, 7];
case 6: throw s = a.sent(), e.handleError(s);
case 7: return [2];
}
});
}, p = W_(e.listeners.OnceExit), f.label = 15;
case 15: return (d = p()).done ? [3, 18] : [5, G_(u())];
case 16: f.sent(), f.label = 17;
case 17: return [3, 15];
case 18: return e.processed = !0, [2, e.stringify()];
}
});
})();
}, t.runOnRoot = function(e) {
var t = this;
this.result.lastPlugin = e;
try {
if ("object" === (void 0 === e ? "undefined" : V_(e)) && e.Once) {
if ("document" === this.result.root.type) {
var r = this.result.root.nodes.map(function(r) {
return e.Once(r, t.helpers);
});
return YN(r[0]) ? Promise.all(r) : r;
}
return e.Once(this.result.root, this.helpers);
}
if ("function" == typeof e) return e(this.result.root, this.result);
} catch (e) {
throw this.handleError(e);
}
}, t.stringify = function() {
if (this.error) throw this.error;
if (this.stringified) return this.result;
this.stringified = !0, this.sync();
var e = this.result.opts;
var t = $N;
e.syntax && (t = e.syntax.stringify), e.stringifier && (t = e.stringifier), t.stringify && (t = t.stringify);
var r = new FN(t, this.result.root, this.result.opts).generate();
return this.result.css = r[0], this.result.map = r[1], this.result;
}, t.sync = function() {
if (this.error) throw this.error;
if (this.processed) return this.result;
if (this.processed = !0, this.processing) throw this.getAsyncError();
for (var e, t = W_(this.plugins); !(e = t()).done;) {
var r = e.value;
if (YN(this.runOnRoot(r))) throw this.getAsyncError();
}
if (this.prepareVisitors(), this.hasListener) {
for (var n = this.result.root; !n[DN];) n[DN] = !0, this.walkSync(n);
if (this.listeners.OnceExit) if ("document" === n.type) for (var o, i = W_(n.nodes); !(o = i()).done;) {
var s = o.value;
this.visitSync(this.listeners.OnceExit, s);
}
else this.visitSync(this.listeners.OnceExit, n);
}
return this.result;
}, t.then = function(e, t) {
return "from" in this.opts || VN("Without `from` option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to `undefined` to prevent this warning."), this.async().then(e, t);
}, t.toString = function() {
return this.css;
}, t.visitSync = function(e, t) {
for (var r, n = W_(e); !(r = n()).done;) {
var o = r.value;
var i = o[0];
var s = o[1];
this.result.lastPlugin = i;
var a = void 0;
try {
a = s(t, this.helpers);
} catch (e) {
throw this.handleError(e, t.proxyOf);
}
if ("root" !== t.type && "document" !== t.type && !t.parent) return !0;
if (YN(a)) throw this.getAsyncError();
}
}, t.visitTick = function(e) {
var t = e[e.length - 1];
var r = t.node;
var n = t.visitors;
if ("root" === r.type || "document" === r.type || r.parent) {
if (n.length > 0 && t.visitorIndex < n.length) {
var o = n[t.visitorIndex];
var i = o[0];
var s = o[1];
t.visitorIndex += 1, t.visitorIndex === n.length && (t.visitors = [], t.visitorIndex = 0), this.result.lastPlugin = i;
try {
return s(r.toProxy(), this.helpers);
} catch (e) {
throw this.handleError(e, r);
}
}
if (0 !== t.iterator) {
for (var a, l = t.iterator; a = r.nodes[r.indexes[l]];) if (r.indexes[l] += 1, !a[DN]) return a[DN] = !0, void e.push(XN(a));
t.iterator = 0, delete r.indexes[l];
}
for (var c = t.events; t.eventIndex < c.length;) {
var u = c[t.eventIndex];
if (t.eventIndex += 1, 0 === u) return void (r.nodes && r.nodes.length && (r[DN] = !0, t.iterator = r.getIterator()));
if (this.listeners[u]) return void (t.visitors = this.listeners[u]);
}
e.pop();
} else e.pop();
}, t.walkSync = function(e) {
var t = this;
e[DN] = !0;
for (var r, n = W_(ZN(e)); !(r = n()).done;) {
var o = r.value;
if (0 === o) e.nodes && e.each(function(e) {
e[DN] || t.walkSync(e);
});
else {
var i = this.listeners[o];
if (i && this.visitSync(i, e.toProxy())) return;
}
}
}, t.warnings = function() {
return this.sync().warnings();
}, L_(e, [
{
key: "content",
get: function() {
return this.stringify().content;
}
},
{
key: "css",
get: function() {
return this.stringify().css;
}
},
{
key: "map",
get: function() {
return this.stringify().map;
}
},
{
key: "messages",
get: function() {
return this.sync().messages;
}
},
{
key: "opts",
get: function() {
return this.result.opts;
}
},
{
key: "processor",
get: function() {
return this.result.processor;
}
},
{
key: "root",
get: function() {
return this.sync().root;
}
},
{
key: Symbol.toStringTag,
get: function() {
return "LazyResult";
}
}
]), e;
}();
eL.registerPostcss = function(e) {
QN = e;
};
var tL = eL;
eL.default = eL, WN.registerLazyResult(eL), zN.registerLazyResult(eL);
var rL = mP;
var nL = kA;
var oL = LP;
var iL = LN;
var sL = BP;
var aL = function() {
function e(e, t, r) {
var n;
t = t.toString(), this.stringified = !1, this._processor = e, this._css = t, this._opts = r, this._map = void 0;
var o = nL;
this.result = new sL(this._processor, n, this._opts), this.result.css = t;
var i = this;
Object.defineProperty(this.result, "root", { get: function() {
return i.root;
} });
var s = new rL(o, n, this._opts, t);
if (s.isMap()) {
var a = s.generate();
var l = a[0];
var c = a[1];
l && (this.result.css = l), c && (this.result.map = c);
} else s.clearAnnotation(), this.result.css = s.css;
}
var t = e.prototype;
return t.async = function() {
return this.error ? Promise.reject(this.error) : Promise.resolve(this.result);
}, t.catch = function(e) {
return this.async().catch(e);
}, t.finally = function(e) {
return this.async().then(e, e);
}, t.sync = function() {
if (this.error) throw this.error;
return this.result;
}, t.then = function(e, t) {
return "from" in this._opts || oL("Without `from` option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to `undefined` to prevent this warning."), this.async().then(e, t);
}, t.toString = function() {
return this._css;
}, t.warnings = function() {
return [];
}, L_(e, [
{
key: "content",
get: function() {
return this.result.css;
}
},
{
key: "css",
get: function() {
return this.result.css;
}
},
{
key: "map",
get: function() {
return this.result.map;
}
},
{
key: "messages",
get: function() {
return [];
}
},
{
key: "opts",
get: function() {
return this.result.opts;
}
},
{
key: "processor",
get: function() {
return this.result.processor;
}
},
{
key: "root",
get: function() {
if (this._root) return this._root;
var e;
var t = iL;
try {
e = t(this._css, this._opts);
} catch (e) {
this.error = e;
}
if (this.error) throw this.error;
return this._root = e, e;
}
},
{
key: Symbol.toStringTag,
get: function() {
return "NoWorkResult";
}
}
]), e;
}();
var lL = aL;
aL.default = aL;
var cL = lL;
var uL = tL;
var pL = PP;
var dL = vN;
var fL = function() {
function e(e) {
void 0 === e && (e = []), this.version = "8.4.38", this.plugins = this.normalize(e);
}
var t = e.prototype;
return t.normalize = function(e) {
for (var t, r = [], n = W_(e); !(t = n()).done;) {
var o = t.value;
if (!0 === o.postcss ? o = o() : o.postcss && (o = o.postcss), "object" === (void 0 === o ? "undefined" : V_(o)) && Array.isArray(o.plugins)) r = r.concat(o.plugins);
else if ("object" === (void 0 === o ? "undefined" : V_(o)) && o.postcssPlugin) r.push(o);
else if ("function" == typeof o) r.push(o);
else {
if ("object" !== (void 0 === o ? "undefined" : V_(o)) || !o.parse && !o.stringify) throw new Error(o + " is not a PostCSS plugin");
throw new Error("PostCSS syntaxes cannot be used as plugins. Instead, please use one of the syntax/parser/stringifier options as outlined in your PostCSS runner documentation.");
}
}
return r;
}, t.process = function(e, t) {
return void 0 === t && (t = {}), this.plugins.length || t.parser || t.stringifier || t.syntax ? new uL(this, e, t) : new cL(this, e, t);
}, t.use = function(e) {
return this.plugins = this.plugins.concat(this.normalize([e])), this;
}, e;
}();
var hL = fL;
fL.default = fL, dL.registerProcessor(fL), pL.registerProcessor(fL);
var mL = NA;
var gL = VA;
var vL = vP;
var yL = dN;
var bL = nP;
var wL = vN;
var _L = SN;
function xL(e, t) {
if (Array.isArray(e)) return e.map(function(e) {
return xL(e);
});
var r = e.inputs;
var n = B_(e, ["inputs"]);
if (r) {
t = [];
for (var o, i = W_(r); !(o = i()).done;) {
var s = D_({}, o.value, { __proto__: bL.prototype });
s.map && (s.map = D_({}, s.map, { __proto__: gL.prototype })), t.push(s);
}
}
if (n.nodes && (n.nodes = e.nodes.map(function(e) {
return xL(e, t);
})), n.source) {
var a = n.source;
var l = a.inputId;
n.source = B_(a, ["inputId"]), null != l && (n.source.input = t[l]);
}
if ("root" === n.type) return new wL(n);
if ("decl" === n.type) return new mL(n);
if ("rule" === n.type) return new _L(n);
if ("comment" === n.type) return new vL(n);
if ("atrule" === n.type) return new yL(n);
throw new Error("Unknown node type: " + e.type);
}
var SL = xL;
xL.default = xL;
var kL = vA;
var CL = NA;
var OL = tL;
var EL = RP;
var TL = hL;
var RL = kA;
var IL = SL;
var ML = PP;
var AL = jP;
var PL = vP;
var NL = dN;
var LL = BP;
var DL = nP;
var jL = LN;
var FL = bN;
var $L = SN;
var BL = vN;
var zL = AA;
function VL() {
for (var e = arguments.length, t = new Array(e), r = 0; r < e; r++) t[r] = arguments[r];
return 1 === t.length && Array.isArray(t[0]) && (t = t[0]), new TL(t);
}
VL.plugin = function(e, t) {
var r;
var n = !1;
function o() {
for (var r = arguments.length, o = new Array(r), i = 0; i < r; i++) o[i] = arguments[i];
console && console.warn && !n && (n = !0, console.warn(e + ": postcss.plugin was deprecated. Migration guide:\nhttps://evilmartians.com/chronicles/postcss-8-plugin-migration"), {}.LANG && {}.LANG.startsWith("cn") && console.warn(e + ": 里面 postcss.plugin 被弃用. 迁移指南:\nhttps://www.w3ctech.com/topic/2226"));
var s = t.apply(void 0, [].concat(o));
return s.postcssPlugin = e, s.postcssVersion = new TL().version, s;
}
return Object.defineProperty(o, "postcss", { get: function() {
return r || (r = o()), r;
} }), o.process = function(e, t, r) {
return VL([o(r)]).process(e, t);
}, o;
}, VL.stringify = RL, VL.parse = jL, VL.fromJSON = IL, VL.list = FL, VL.comment = function(e) {
return new PL(e);
}, VL.atRule = function(e) {
return new NL(e);
}, VL.decl = function(e) {
return new CL(e);
}, VL.rule = function(e) {
return new $L(e);
}, VL.root = function(e) {
return new BL(e);
}, VL.document = function(e) {
return new ML(e);
}, VL.CssSyntaxError = kL, VL.Declaration = CL, VL.Container = EL, VL.Processor = TL, VL.Document = ML, VL.Comment = PL, VL.Warning = AL, VL.AtRule = NL, VL.Result = LL, VL.Input = DL, VL.Rule = $L, VL.Root = BL, VL.Node = zL, OL.registerPostcss(VL), VL.default = VL;
var UL = Object.defineProperty;
var qL = function(e, t, r) {
return function(e, t, r) {
return t in e ? UL(e, t, {
enumerable: !0,
configurable: !0,
writable: !0,
value: r
}) : e[t] = r;
}(e, "symbol" !== (void 0 === t ? "undefined" : V_(t)) ? t + "" : t, r);
};
var WL = function() {
function e(e) {
qL(this, "fileName"), qL(this, "functionName"), qL(this, "lineNumber"), qL(this, "columnNumber"), this.fileName = e.fileName || "", this.functionName = e.functionName || "", this.lineNumber = e.lineNumber, this.columnNumber = e.columnNumber;
}
return e.prototype.toString = function() {
var e = this.lineNumber || "";
var t = this.columnNumber || "";
return this.functionName ? this.functionName + " (" + this.fileName + ":" + e + ":" + t + ")" : this.fileName + ":" + e + ":" + t;
}, e;
}();
var HL = /(^|@)\S+:\d+/;
var GL = /^\s*at .*(\S+:\d+|\(native\))/m;
var KL = /^(eval@)?(\[native code])?$/;
var YL = {
parse: function(e) {
return e ? void 0 !== e.stacktrace || void 0 !== e["opera#sourceloc"] ? this.parseOpera(e) : e.stack && e.stack.match(GL) ? this.parseV8OrIE(e) : e.stack ? this.parseFFOrSafari(e) : (console.warn("[console-record-plugin]: Failed to parse error object:", e), []) : [];
},
extractLocation: function(e) {
if (-1 === e.indexOf(":")) return [e];
var t = /(.+?)(?::(\d+))?(?::(\d+))?$/.exec(e.replace(/[()]/g, ""));
if (!t) throw new Error("Cannot parse given url: " + e);
return [
t[1],
t[2] || void 0,
t[3] || void 0
];
},
parseV8OrIE: function(e) {
return e.stack.split("\n").filter(function(e) {
return !!e.match(GL);
}, this).map(function(e) {
e.indexOf("(eval ") > -1 && (e = e.replace(/eval code/g, "eval").replace(/(\(eval at [^()]*)|(\),.*$)/g, ""));
var t = e.replace(/^\s+/, "").replace(/\(eval code/g, "(");
var r = t.match(/ (\((.+):(\d+):(\d+)\)$)/);
var n = (t = r ? t.replace(r[0], "") : t).split(/\s+/).slice(1);
var o = this.extractLocation(r ? r[1] : n.pop());
return new WL({
functionName: n.join(" ") || void 0,
fileName: ["eval", "<anonymous>"].indexOf(o[0]) > -1 ? void 0 : o[0],
lineNumber: o[1],
columnNumber: o[2]
});
}, this);
},
parseFFOrSafari: function(e) {
return e.stack.split("\n").filter(function(e) {
return !e.match(KL);
}, this).map(function(e) {
if (e.indexOf(" > eval") > -1 && (e = e.replace(/ line (\d+)(?: > eval line \d+)* > eval:\d+:\d+/g, ":$1")), -1 === e.indexOf("@") && -1 === e.indexOf(":")) return new WL({ functionName: e });
var t = /((.*".+"[^@]*)?[^@]*)(?:@)/;
var r = e.match(t);
var n = r && r[1] ? r[1] : void 0;
var o = this.extractLocation(e.replace(t, ""));
return new WL({
functionName: n,
fileName: o[0],
lineNumber: o[1],
columnNumber: o[2]
});
}, this);
},
parseOpera: function(e) {
return !e.stacktrace || e.message.indexOf("\n") > -1 && e.message.split("\n").length > e.stacktrace.split("\n").length ? this.parseOpera9(e) : e.stack ? this.parseOpera11(e) : this.parseOpera10(e);
},
parseOpera9: function(e) {
for (var t = /Line (\d+).*script (?:in )?(\S+)/i, r = e.message.split("\n"), n = [], o = 2, i = r.length; o < i; o += 2) {
var s = t.exec(r[o]);
s && n.push(new WL({
fileName: s[2],
lineNumber: parseFloat(s[1])
}));
}
return n;
},
parseOpera10: function(e) {
for (var t = /Line (\d+).*script (?:in )?(\S+)(?:: In function (\S+))?$/i, r = e.stacktrace.split("\n"), n = [], o = 0, i = r.length; o < i; o += 2) {
var s = t.exec(r[o]);
s && n.push(new WL({
functionName: s[3] || void 0,
fileName: s[2],
lineNumber: parseFloat(s[1])
}));
}
return n;
},
parseOpera11: function(e) {
return e.stack.split("\n").filter(function(e) {
return !!e.match(HL) && !e.match(/^Error created at/);
}, this).map(function(e) {
var t = e.split("@");
var r = this.extractLocation(t.pop());
return new WL({
functionName: (t.shift() || "").replace(/<anonymous function(: (\w+))?>/, "$2").replace(/\([^)]*\)/g, "") || void 0,
fileName: r[0],
lineNumber: r[1],
columnNumber: r[2]
});
}, this);
}
};
function ZL(e) {
if (!e || !e.outerHTML) return "";
for (var t = ""; e.parentElement;) {
var r = e.localName;
if (!r) break;
r = r.toLowerCase();
var n = e.parentElement;
var o = [];
if (n.children && n.children.length > 0) for (var i = 0; i < n.children.length; i++) {
var s = n.children[i];
s.localName && s.localName.toLowerCase && s.localName.toLowerCase() === r && o.push(s);
}
o.length > 1 && (r += ":eq(" + o.indexOf(e) + ")"), t = r + (t ? ">" + t : ""), e = n;
}
return t;
}
function XL(e) {
return "[object Object]" === Object.prototype.toString.call(e);
}
function JL(e, t) {
if (0 === t) return !0;
for (var r, n = W_(Object.keys(e)); !(r = n()).done;) {
var o = r.value;
if (XL(e[o]) && JL(e[o], t - 1)) return !0;
}
return !1;
}
function QL(e, t) {
var r = {
numOfKeysLimit: 50,
depthOfLimit: 4
};
Object.assign(r, t);
var n = [];
var o = [];
return JSON.stringify(e, function(e, t) {
if (n.length > 0) {
var i = n.indexOf(this);
~i ? n.splice(i + 1) : n.push(this), ~i ? o.splice(i, Infinity, e) : o.push(e), ~n.indexOf(t) && (t = n[0] === t ? "[Circular ~]" : "[Circular ~." + o.slice(0, n.indexOf(t)).join(".") + "]");
} else n.push(t);
if (null === t) return t;
if (void 0 === t) return "undefined";
if (XL(s = t) && Object.keys(s).length > r.numOfKeysLimit || "function" == typeof s || XL(s) && JL(s, r.depthOfLimit)) return function(e) {
var t = e.toString();
return r.stringLengthLimit && t.length > r.stringLengthLimit && (t = t.slice(0, r.stringLengthLimit) + "..."), t;
}(t);
var s;
if ("bigint" === (void 0 === t ? "undefined" : V_(t))) return t.toString() + "n";
if ($_(t, Event)) {
var a = {};
for (var l in t) {
var c = t[l];
Array.isArray(c) ? a[l] = ZL(c.length ? c[0] : null) : a[l] = c;
}
return a;
}
return $_(t, Node) ? $_(t, HTMLElement) ? t ? t.outerHTML : "" : t.nodeName : $_(t, Error) ? t.stack ? t.stack + "\nEnd of stack for Error object" : t.name + ": " + t.message : t;
});
}
var eD = {
level: [
"assert",
"clear",
"count",
"countReset",
"debug",
"dir",
"dirxml",
"error",
"group",
"groupCollapsed",
"groupEnd",
"info",
"log",
"table",
"time",
"timeEnd",
"timeLog",
"trace",
"warn"
],
lengthThreshold: 1e3,
logger: "console"
};
function tD(e, t, r) {
var n;
var o = r ? Object.assign({}, eD, r) : eD;
var i = o.logger;
if (!i) return function() {};
n = "string" == typeof i ? t[i] : i;
var s = 0;
var a = !1;
var l = [];
if (o.level.includes("error")) {
var c = function(t) {
var r = t.message;
var n = t.error;
e({
level: "error",
trace: YL.parse(n).map(function(e) {
return e.toString();
}),
payload: [QL(r, o.stringifyOptions)]
});
};
t.addEventListener("error", c), l.push(function() {
t.removeEventListener("error", c);
});
var u = function(t) {
var r;
var n;
$_(t.reason, Error) ? n = [QL("Uncaught (in promise) " + (r = t.reason).name + ": " + r.message, o.stringifyOptions)] : (r = /* @__PURE__ */ new Error(), n = [QL("Uncaught (in promise)", o.stringifyOptions), QL(t.reason, o.stringifyOptions)]);
e({
level: "error",
trace: YL.parse(r).map(function(e) {
return e.toString();
}),
payload: n
});
};
t.addEventListener("unhandledrejection", u), l.push(function() {
t.removeEventListener("unhandledrejection", u);
});
}
for (var p, d = W_(o.level); !(p = d()).done;) {
var f = p.value;
l.push(h(n, f));
}
return function() {
l.forEach(function(e) {
return e();
});
};
function h(t, r) {
var n = this;
return t[r] ? function(t, i) {
try {
if (!(i in t)) return function() {};
var l = t[i];
var c = function(t) {
var i = n;
return function() {
for (var n = arguments.length, l = new Array(n), c = 0; c < n; c++) l[c] = arguments[c];
if (t.apply(i, l), !("assert" === r && l[0] || a)) {
a = !0;
try {
var u = YL.parse(/* @__PURE__ */ new Error()).map(function(e) {
return e.toString();
}).splice(1);
var p = ("assert" === r ? l.slice(1) : l).map(function(e) {
return QL(e, o.stringifyOptions);
});
++s < o.lengthThreshold ? e({
level: r,
trace: u,
payload: p
}) : s === o.lengthThreshold && e({
level: "warn",
trace: [],
payload: [QL("The number of log records reached the threshold.")]
});
} catch (e) {
t.apply(void 0, [].concat(["rrweb logger error:", e], l));
} finally {
a = !1;
}
}
};
}(l);
return "function" == typeof c && (c.prototype = c.prototype || {}, Object.defineProperties(c, { __rrweb_original__: {
enumerable: !1,
value: l
} })), t[i] = c, function() {
t[i] = l;
};
} catch (e) {
return function() {};
}
}(t, r) : function() {};
}
}
var rD;
var nD;
var oD;
var iD = C_.setImmediate;
var sD = Object.prototype.toString;
var aD = void 0 !== iD ? function(e) {
return iD(e);
} : setTimeout;
try {
rD = function(e, t, r, n) {
return Object.defineProperty(e, t, {
value: r,
writable: !0,
configurable: !1 !== n
});
};
} catch (e) {
rD = function(e, t, r) {
return e[t] = r, e;
};
}
function lD(e, t) {
oD.add(e, t), nD || (nD = aD(oD.drain));
}
function cD(e) {
var t;
var r = typeof e;
return null === e || "object" !== r && "function" !== r || (t = e.then), "function" == typeof t && t;
}
function uD() {
for (var e = 0; e < this.chain.length; e++) pD(this, 1 === this.state ? this.chain[e].success : this.chain[e].failure, this.chain[e]);
this.chain.length = 0;
}
function pD(e, t, r) {
var n;
var o;
try {
!1 === t ? r.reject(e.msg) : (n = !0 === t ? e.msg : t.call(void 0, e.msg)) === r.promise ? r.reject(TypeError("Promise-chain cycle")) : (o = cD(n)) ? o.call(n, r.resolve, r.reject) : r.resolve(n);
} catch (e) {
r.reject(e);
}
}
function dD(e) {
var t;
var r = this;
if (!r.triggered) {
r.triggered = !0, r.def && (r = r.def);
try {
(t = cD(e)) ? lD(function() {
var n = new mD(r);
try {
t.call(e, function() {
dD.apply(n, arguments);
}, function() {
fD.apply(n, arguments);
});
} catch (e) {
fD.call(n, e);
}
}) : (r.msg = e, r.state = 1, r.chain.length > 0 && lD(uD, r));
} catch (e) {
fD.call(new mD(r), e);
}
}
}
function fD(e) {
var t = this;
t.triggered || (t.triggered = !0, t.def && (t = t.def), t.msg = e, t.state = 2, t.chain.length > 0 && lD(uD, t));
}
function hD(e, t, r, n) {
for (var o = 0; o < t.length; o++) (function(o) {
e.resolve(t[o]).then(function(e) {
r(o, e);
}, n);
})(o);
}
function mD(e) {
this.def = e, this.triggered = !1;
}
function gD(e) {
this.promise = e, this.state = 0, this.triggered = !1, this.chain = [], this.msg = void 0;
}
function vD(e) {
if ("function" != typeof e) throw TypeError("Not a function");
if (0 !== this.__NPO__) throw TypeError("Not a promise");
this.__NPO__ = 1;
var t = new gD(this);
this.then = function(e, r) {
var n = {
success: "function" != typeof e || e,
failure: "function" == typeof r && r
};
return n.promise = new this.constructor(function(e, t) {
if ("function" != typeof e || "function" != typeof t) throw TypeError("Not a function");
n.resolve = e, n.reject = t;
}), t.chain.push(n), 0 !== t.state && lD(uD, t), n.promise;
}, this.catch = function(e) {
return this.then(void 0, e);
};
try {
e.call(void 0, function(e) {
dD.call(t, e);
}, function(e) {
fD.call(t, e);
});
} catch (e) {
fD.call(t, e);
}
}
oD = function() {
var e;
var t;
var r;
function n(e, t) {
this.fn = e, this.self = t, this.next = void 0;
}
return {
add: function(o, i) {
r = new n(o, i), t ? t.next = r : e = r, t = r, r = void 0;
},
drain: function() {
var r = e;
for (e = t = nD = void 0; r;) r.fn.call(r.self), r = r.next;
}
};
}();
var yD;
var bD = rD({}, "constructor", vD, !1);
vD.prototype = bD, rD(bD, "__NPO__", 0, !1), rD(vD, "resolve", function(e) {
return e && "object" == typeof e && 1 === e.__NPO__ ? e : new this(function(t, r) {
if ("function" != typeof t || "function" != typeof r) throw TypeError("Not a function");
t(e);
});
}), rD(vD, "reject", function(e) {
return new this(function(t, r) {
if ("function" != typeof t || "function" != typeof r) throw TypeError("Not a function");
r(e);
});
}), rD(vD, "all", function(e) {
var t = this;
return "[object Array]" !== sD.call(e) ? t.reject(TypeError("Not an array")) : 0 === e.length ? t.resolve([]) : new t(function(r, n) {
if ("function" != typeof r || "function" != typeof n) throw TypeError("Not a function");
var o = e.length;
var i = Array(o);
var s = 0;
hD(t, e, function(e, t) {
i[e] = t, ++s === o && r(i);
}, n);
});
}), rD(vD, "race", function(e) {
var t = this;
return "[object Array]" !== sD.call(e) ? t.reject(TypeError("Not an array")) : new t(function(r, n) {
if ("function" != typeof r || "function" != typeof n) throw TypeError("Not a function");
hD(t, e, function(e, t) {
r(t);
}, n);
});
}), yD = "undefined" != typeof Promise && -1 !== Promise.toString().indexOf("[native code]") ? Promise : vD;
var wD = 864e5;
var _D = Array.prototype;
var xD = Function.prototype;
var SD = Object.prototype;
var kD = _D.slice;
var CD = SD.toString;
var OD = SD.hasOwnProperty;
var ED = C_.console;
var TD = C_.navigator;
var RD = C_.document;
var ID = C_.opera;
var MD = C_.screen;
var AD = TD.userAgent;
var PD = xD.bind;
var ND = _D.forEach;
var LD = _D.indexOf;
var DD = _D.map;
var jD = Array.isArray;
var FD = {};
var $D = { trim: function(e) {
return e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
} };
var BD = {
log: function() {
if (E_.DEBUG && !$D.isUndefined(ED) && ED) try {
ED.log.apply(ED, arguments);
} catch (e) {
$D.each(arguments, function(e) {
ED.log(e);
});
}
},
warn: function() {
if (E_.DEBUG && !$D.isUndefined(ED) && ED) {
var e = ["Mixpanel warning:"].concat($D.toArray(arguments));
try {
ED.warn.apply(ED, e);
} catch (t) {
$D.each(e, function(e) {
ED.warn(e);
});
}
}
},
error: function() {
if (E_.DEBUG && !$D.isUndefined(ED) && ED) {
var e = ["Mixpanel error:"].concat($D.toArray(arguments));
try {
ED.error.apply(ED, e);
} catch (t) {
$D.each(e, function(e) {
ED.error(e);
});
}
}
},
critical: function() {
if (!$D.isUndefined(ED) && ED) {
var e = ["Mixpanel error:"].concat($D.toArray(arguments));
try {
ED.error.apply(ED, e);
} catch (t) {
$D.each(e, function(e) {
ED.error(e);
});
}
}
}
};
var zD = function(e, t) {
return function() {
return arguments[0] = "[" + t + "] " + arguments[0], e.apply(BD, arguments);
};
};
var VD = function(e) {
return {
log: zD(BD.log, e),
error: zD(BD.error, e),
critical: zD(BD.critical, e)
};
};
var UD = function(e) {
return function() {
try {
return e.apply(this, arguments);
} catch (e) {
BD.critical("Implementation error. Please turn on debug and contact support@mixpanel.com."), E_.DEBUG && BD.critical(e);
}
};
};
var qD = function(e) {
var t = e.prototype;
for (var r in t) "function" == typeof t[r] && (t[r] = UD(t[r]));
};
$D.bind = function(e, t) {
var r;
var n;
if (PD && e.bind === PD) return PD.apply(e, kD.call(arguments, 1));
if (!$D.isFunction(e)) throw new TypeError();
return r = kD.call(arguments, 2), n = function() {
if (!(this instanceof n)) return e.apply(t, r.concat(kD.call(arguments)));
var o = {};
o.prototype = e.prototype;
var i = new o();
o.prototype = null;
var s = e.apply(i, r.concat(kD.call(arguments)));
return Object(s) === s ? s : i;
}, n;
}, $D.each = function(e, t, r) {
if (null != e) {
if (ND && e.forEach === ND) e.forEach(t, r);
else if (e.length === +e.length) {
for (var n = 0, o = e.length; n < o; n++) if (n in e && t.call(r, e[n], n, e) === FD) return;
} else for (var i in e) if (OD.call(e, i) && t.call(r, e[i], i, e) === FD) return;
}
}, $D.extend = function(e) {
return $D.each(kD.call(arguments, 1), function(t) {
for (var r in t) void 0 !== t[r] && (e[r] = t[r]);
}), e;
}, $D.isArray = jD || function(e) {
return "[object Array]" === CD.call(e);
}, $D.isFunction = function(e) {
return "function" == typeof e;
}, $D.isArguments = function(e) {
return !(!e || !OD.call(e, "callee"));
}, $D.toArray = function(e) {
return e ? e.toArray ? e.toArray() : $D.isArray(e) || $D.isArguments(e) ? kD.call(e) : $D.values(e) : [];
}, $D.map = function(e, t, r) {
if (DD && e.map === DD) return e.map(t, r);
var n = [];
return $D.each(e, function(e) {
n.push(t.call(r, e));
}), n;
}, $D.keys = function(e) {
var t = [];
return null === e || $D.each(e, function(e, r) {
t[t.length] = r;
}), t;
}, $D.values = function(e) {
var t = [];
return null === e || $D.each(e, function(e) {
t[t.length] = e;
}), t;
}, $D.include = function(e, t) {
var r = !1;
return null === e ? r : LD && e.indexOf === LD ? -1 != e.indexOf(t) : ($D.each(e, function(e) {
if (r || (r = e === t)) return FD;
}), r);
}, $D.includes = function(e, t) {
return -1 !== e.indexOf(t);
}, $D.inherit = function(e, t) {
return e.prototype = new t(), e.prototype.constructor = e, e.superclass = t.prototype, e;
}, $D.isObject = function(e) {
return e === Object(e) && !$D.isArray(e);
}, $D.isEmptyObject = function(e) {
if ($D.isObject(e)) {
for (var t in e) if (OD.call(e, t)) return !1;
return !0;
}
return !1;
}, $D.isUndefined = function(e) {
return void 0 === e;
}, $D.isString = function(e) {
return "[object String]" == CD.call(e);
}, $D.isDate = function(e) {
return "[object Date]" == CD.call(e);
}, $D.isNumber = function(e) {
return "[object Number]" == CD.call(e);
}, $D.isElement = function(e) {
return !(!e || 1 !== e.nodeType);
}, $D.encodeDates = function(e) {
return $D.each(e, function(t, r) {
$D.isDate(t) ? e[r] = $D.formatDate(t) : $D.isObject(t) && (e[r] = $D.encodeDates(t));
}), e;
}, $D.timestamp = function() {
return Date.now = Date.now || function() {
return +/* @__PURE__ */ new Date();
}, Date.now();
}, $D.formatDate = function(e) {
function t(e) {
return e < 10 ? "0" + e : e;
}
return e.getUTCFullYear() + "-" + t(e.getUTCMonth() + 1) + "-" + t(e.getUTCDate()) + "T" + t(e.getUTCHours()) + ":" + t(e.getUTCMinutes()) + ":" + t(e.getUTCSeconds());
}, $D.strip_empty_properties = function(e) {
var t = {};
return $D.each(e, function(e, r) {
$D.isString(e) && e.length > 0 && (t[r] = e);
}), t;
}, $D.truncate = function(e, t) {
var r;
return "string" == typeof e ? r = e.slice(0, t) : $D.isArray(e) ? (r = [], $D.each(e, function(e) {
r.push($D.truncate(e, t));
})) : $D.isObject(e) ? (r = {}, $D.each(e, function(e, n) {
r[n] = $D.truncate(e, t);
})) : r = e, r;
}, $D.JSONEncode = function(e) {
var t = function(e) {
var t = /[\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g;
var r = {
"\b": "\\b",
" ": "\\t",
"\n": "\\n",
"\f": "\\f",
"\r": "\\r",
"\"": "\\\"",
"\\": "\\\\"
};
return t.lastIndex = 0, t.test(e) ? "\"" + e.replace(t, function(e) {
var t = r[e];
return "string" == typeof t ? t : "\\u" + ("0000" + e.charCodeAt(0).toString(16)).slice(-4);
}) + "\"" : "\"" + e + "\"";
};
var r = function(e, n) {
var o = "";
var i = 0;
var s = "";
var a = "";
var l = 0;
var c = o;
var u = [];
var p = n[e];
switch (p && "object" == typeof p && "function" == typeof p.toJSON && (p = p.toJSON(e)), typeof p) {
case "string": return t(p);
case "number": return isFinite(p) ? String(p) : "null";
case "boolean":
case "null": return String(p);
case "object":
if (!p) return "null";
if (o += " ", u = [], "[object Array]" === CD.apply(p)) {
for (l = p.length, i = 0; i < l; i += 1) u[i] = r(i, p) || "null";
return a = 0 === u.length ? "[]" : o ? "[\n" + o + u.join(",\n" + o) + "\n" + c + "]" : "[" + u.join(",") + "]", o = c, a;
}
for (s in p) OD.call(p, s) && (a = r(s, p)) && u.push(t(s) + (o ? ": " : ":") + a);
return a = 0 === u.length ? "{}" : o ? "{" + u.join(",") + c + "}" : "{" + u.join(",") + "}", o = c, a;
}
};
return r("", { "": e });
}, $D.JSONDecode = function() {
var e;
var t;
var r;
var n;
var o = {
"\"": "\"",
"\\": "\\",
"/": "/",
b: "\b",
f: "\f",
n: "\n",
r: "\r",
t: " "
};
var i = function(t) {
var n = new SyntaxError(t);
throw n.at = e, n.text = r, n;
};
var s = function(n) {
return n && n !== t && i("Expected '" + n + "' instead of '" + t + "'"), t = r.charAt(e), e += 1, t;
};
var a = function() {
var e;
var r = "";
for ("-" === t && (r = "-", s("-")); t >= "0" && t <= "9";) r += t, s();
if ("." === t) for (r += "."; s() && t >= "0" && t <= "9";) r += t;
if ("e" === t || "E" === t) for (r += t, s(), "-" !== t && "+" !== t || (r += t, s()); t >= "0" && t <= "9";) r += t, s();
if (e = +r, isFinite(e)) return e;
i("Bad number");
};
var l = function() {
var e;
var r;
var n;
var a = "";
if ("\"" === t) for (; s();) {
if ("\"" === t) return s(), a;
if ("\\" === t) if (s(), "u" === t) {
for (n = 0, r = 0; r < 4 && (e = parseInt(s(), 16), isFinite(e)); r += 1) n = 16 * n + e;
a += String.fromCharCode(n);
} else {
if ("string" != typeof o[t]) break;
a += o[t];
}
else a += t;
}
i("Bad string");
};
var c = function() {
for (; t && t <= " ";) s();
};
return n = function() {
switch (c(), t) {
case "{": return function() {
var e;
var r = {};
if ("{" === t) {
if (s("{"), c(), "}" === t) return s("}"), r;
for (; t;) {
if (e = l(), c(), s(":"), Object.hasOwnProperty.call(r, e) && i("Duplicate key \"" + e + "\""), r[e] = n(), c(), "}" === t) return s("}"), r;
s(","), c();
}
}
i("Bad object");
}();
case "[": return function() {
var e = [];
if ("[" === t) {
if (s("["), c(), "]" === t) return s("]"), e;
for (; t;) {
if (e.push(n()), c(), "]" === t) return s("]"), e;
s(","), c();
}
}
i("Bad array");
}();
case "\"": return l();
case "-": return a();
default: return t >= "0" && t <= "9" ? a() : function() {
switch (t) {
case "t": return s("t"), s("r"), s("u"), s("e"), !0;
case "f": return s("f"), s("a"), s("l"), s("s"), s("e"), !1;
case "n": return s("n"), s("u"), s("l"), s("l"), null;
}
i("Unexpected \"" + t + "\"");
}();
}
}, function(o) {
var s;
return r = o, e = 0, t = " ", s = n(), c(), t && i("Syntax error"), s;
};
}(), $D.base64Encode = function(e) {
var t;
var r;
var n;
var o;
var i;
var s = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";
var a = 0;
var l = 0;
var c = "";
var u = [];
if (!e) return e;
e = $D.utf8Encode(e);
do
t = (i = e.charCodeAt(a++) << 16 | e.charCodeAt(a++) << 8 | e.charCodeAt(a++)) >> 18 & 63, r = i >> 12 & 63, n = i >> 6 & 63, o = 63 & i, u[l++] = s.charAt(t) + s.charAt(r) + s.charAt(n) + s.charAt(o);
while (a < e.length);
switch (c = u.join(""), e.length % 3) {
case 1:
c = c.slice(0, -2) + "==";
break;
case 2: c = c.slice(0, -1) + "=";
}
return c;
}, $D.utf8Encode = function(e) {
var t;
var r;
var n;
var o;
var i = "";
for (t = r = 0, n = (e = (e + "").replace(/\r\n/g, "\n").replace(/\r/g, "\n")).length, o = 0; o < n; o++) {
var s = e.charCodeAt(o);
var a = null;
s < 128 ? r++ : a = s > 127 && s < 2048 ? String.fromCharCode(s >> 6 | 192, 63 & s | 128) : String.fromCharCode(s >> 12 | 224, s >> 6 & 63 | 128, 63 & s | 128), null !== a && (r > t && (i += e.substring(t, r)), i += a, t = r = o + 1);
}
return r > t && (i += e.substring(t, e.length)), i;
}, $D.UUID = function() {
try {
return C_.crypto.randomUUID();
} catch (r) {
for (var e = new Array(36), t = 0; t < 36; t++) e[t] = Math.floor(16 * Math.random());
return e[14] = 4, e[19] = e[19] &= -5, e[19] = e[19] |= 8, e[8] = e[13] = e[18] = e[23] = "-", $D.map(e, function(e) {
return e.toString(16);
}).join("");
}
};
var WD = [
"ahrefsbot",
"ahrefssiteaudit",
"amazonbot",
"baiduspider",
"bingbot",
"bingpreview",
"chrome-lighthouse",
"facebookexternal",
"petalbot",
"pinterest",
"screaming frog",
"yahoo! slurp",
"yandex",
"adsbot-google",
"apis-google",
"duplexweb-google",
"feedfetcher-google",
"google favicon",
"google web preview",
"google-read-aloud",
"googlebot",
"googleweblight",
"mediapartners-google",
"storebot-google"
];
$D.isBlockedUA = function(e) {
var t;
for (e = e.toLowerCase(), t = 0; t < WD.length; t++) if (-1 !== e.indexOf(WD[t])) return !0;
return !1;
}, $D.HTTPBuildQuery = function(e, t) {
var r;
var n;
var o = [];
return $D.isUndefined(t) && (t = "&"), $D.each(e, function(e, t) {
r = encodeURIComponent(e.toString()), n = encodeURIComponent(t), o[o.length] = n + "=" + r;
}), o.join(t);
}, $D.getQueryParam = function(e, t) {
t = t.replace(/[[]/g, "\\[").replace(/[\]]/g, "\\]");
var r = new RegExp("[\\?&]" + t + "=([^&#]*)").exec(e);
if (null === r || r && "string" != typeof r[1] && r[1].length) return "";
var n = r[1];
try {
n = decodeURIComponent(n);
} catch (e) {
BD.error("Skipping decoding for malformed query param: " + n);
}
return n.replace(/\+/g, " ");
}, $D.cookie = {
get: function(e) {
for (var t = e + "=", r = RD.cookie.split(";"), n = 0; n < r.length; n++) {
for (var o = r[n]; " " == o.charAt(0);) o = o.substring(1, o.length);
if (0 === o.indexOf(t)) return decodeURIComponent(o.substring(t.length, o.length));
}
return null;
},
parse: function(e) {
var t;
try {
t = $D.JSONDecode($D.cookie.get(e)) || {};
} catch (e) {}
return t;
},
set_seconds: function(e, t, r, n, o, i, s) {
var a = "";
var l = "";
var c = "";
if (s) a = "; domain=" + s;
else if (n) {
var u = sj(RD.location.hostname);
a = u ? "; domain=." + u : "";
}
if (r) {
var p = /* @__PURE__ */ new Date();
p.setTime(p.getTime() + 1e3 * r), l = "; expires=" + p.toGMTString();
}
i && (o = !0, c = "; SameSite=None"), o && (c += "; secure"), RD.cookie = e + "=" + encodeURIComponent(t) + l + "; path=/" + a + c;
},
set: function(e, t, r, n, o, i, s) {
var a = "";
var l = "";
var c = "";
if (s) a = "; domain=" + s;
else if (n) {
var u = sj(RD.location.hostname);
a = u ? "; domain=." + u : "";
}
if (r) {
var p = /* @__PURE__ */ new Date();
p.setTime(p.getTime() + 24 * r * 60 * 60 * 1e3), l = "; expires=" + p.toGMTString();
}
i && (o = !0, c = "; SameSite=None"), o && (c += "; secure");
var d = e + "=" + encodeURIComponent(t) + l + "; path=/" + a + c;
return RD.cookie = d, d;
},
remove: function(e, t, r) {
$D.cookie.set(e, "", -1, t, !1, !1, r);
}
};
var HD = function(e) {
var t = !0;
try {
var r = "__mplss_" + rj(8);
e.setItem(r, "xyz"), "xyz" !== e.getItem(r) && (t = !1), e.removeItem(r);
} catch (e) {
t = !1;
}
return t;
};
var GD = null;
var KD = function(e, t) {
return null === GD || t ? GD = HD(e || C_.localStorage) : GD;
};
var YD = null;
function ZD(e, t, r) {
var n = function(e) {
BD.error(t + " error: " + e);
};
return {
is_supported: function(n) {
var o = r(e, n);
return o || BD.error(t + " unsupported"), o;
},
error: n,
get: function(t) {
try {
return e.getItem(t);
} catch (e) {
n(e);
}
return null;
},
parse: function(t) {
try {
return $D.JSONDecode(e.getItem(t)) || {};
} catch (e) {}
return null;
},
set: function(t, r) {
try {
e.setItem(t, r);
} catch (e) {
n(e);
}
},
remove: function(t) {
try {
e.removeItem(t);
} catch (e) {
n(e);
}
}
};
}
var XD = null;
var JD = null;
try {
XD = C_.localStorage, JD = C_.sessionStorage;
} catch (e) {}
$D.localStorage = ZD(XD, "localStorage", KD), $D.sessionStorage = ZD(JD, "sessionStorage", function(e, t) {
return null === YD || t ? YD = HD(e || C_.sessionStorage) : YD;
}), $D.register_event = function() {
function e(t) {
return t && (t.preventDefault = e.preventDefault, t.stopPropagation = e.stopPropagation), t;
}
return e.preventDefault = function() {
this.returnValue = !1;
}, e.stopPropagation = function() {
this.cancelBubble = !0;
}, function(t, r, n, o, i) {
if (t) if (t.addEventListener && !o) t.addEventListener(r, n, !!i);
else {
var s = "on" + r;
t[s] = function(t, r, n) {
return function(o) {
if (o = o || e(C_.event)) {
var i;
var s;
var a = !0;
return $D.isFunction(n) && (i = n(o)), s = r.call(t, o), !1 !== i && !1 !== s || (a = !1), a;
}
};
}(t, n, t[s]);
}
else BD.error("No valid element provided to register_event");
};
}();
var QD = /* @__PURE__ */ new RegExp("^(\\w*)\\[(\\w+)([=~\\|\\^\\$\\*]?)=?\"?([^\\]\"]*)\"?\\]$");
$D.dom_query = function() {
function e(e) {
return e.all ? e.all : e.getElementsByTagName("*");
}
var t = /[\t\r\n]/g;
function r(e, r) {
var n = " " + r + " ";
return (" " + e.className + " ").replace(t, " ").indexOf(n) >= 0;
}
function n(t) {
if (!RD.getElementsByTagName) return [];
var n;
var o;
var i;
var s;
var a;
var l;
var c;
var u;
var p;
var d;
var f = t.split(" ");
var h = [RD];
for (l = 0; l < f.length; l++) if ((n = f[l].replace(/^\s+/, "").replace(/\s+$/, "")).indexOf("#") > -1) {
i = (o = n.split("#"))[0];
var m = o[1];
var g = RD.getElementById(m);
if (!g || i && g.nodeName.toLowerCase() != i) return [];
h = [g];
} else if (n.indexOf(".") > -1) {
i = (o = n.split("."))[0];
var v = o[1];
for (i || (i = "*"), s = [], a = 0, c = 0; c < h.length; c++) for (p = "*" == i ? e(h[c]) : h[c].getElementsByTagName(i), u = 0; u < p.length; u++) s[a++] = p[u];
for (h = [], d = 0, c = 0; c < s.length; c++) s[c].className && $D.isString(s[c].className) && r(s[c], v) && (h[d++] = s[c]);
} else {
var y = n.match(QD);
if (y) {
i = y[1];
var b;
var w = y[2];
var _ = y[3];
var x = y[4];
for (i || (i = "*"), s = [], a = 0, c = 0; c < h.length; c++) for (p = "*" == i ? e(h[c]) : h[c].getElementsByTagName(i), u = 0; u < p.length; u++) s[a++] = p[u];
switch (h = [], d = 0, _) {
case "=":
b = function(e) {
return e.getAttribute(w) == x;
};
break;
case "~":
b = function(e) {
return e.getAttribute(w).match(new RegExp("\\b" + x + "\\b"));
};
break;
case "|":
b = function(e) {
return e.getAttribute(w).match(new RegExp("^" + x + "-?"));
};
break;
case "^":
b = function(e) {
return 0 === e.getAttribute(w).indexOf(x);
};
break;
case "$":
b = function(e) {
return e.getAttribute(w).lastIndexOf(x) == e.getAttribute(w).length - x.length;
};
break;
case "*":
b = function(e) {
return e.getAttribute(w).indexOf(x) > -1;
};
break;
default: b = function(e) {
return e.getAttribute(w);
};
}
for (h = [], d = 0, c = 0; c < s.length; c++) b(s[c]) && (h[d++] = s[c]);
} else {
for (i = n, s = [], a = 0, c = 0; c < h.length; c++) for (p = h[c].getElementsByTagName(i), u = 0; u < p.length; u++) s[a++] = p[u];
h = s;
}
}
return h;
}
return function(e) {
return $D.isElement(e) ? [e] : $D.isObject(e) && !$D.isUndefined(e.length) ? e : n.call(this, e);
};
}();
var ej = [
"utm_source",
"utm_medium",
"utm_campaign",
"utm_content",
"utm_term",
"utm_id",
"utm_source_platform",
"utm_campaign_id",
"utm_creative_format",
"utm_marketing_tactic"
];
var tj = [
"dclid",
"fbclid",
"gclid",
"ko_click_id",
"li_fat_id",
"msclkid",
"sccid",
"ttclid",
"twclid",
"wbraid"
];
$D.info = {
campaignParams: function(e) {
var t = "";
var r = {};
return $D.each(ej, function(n) {
(t = $D.getQueryParam(RD.URL, n)).length ? r[n] = t : void 0 !== e && (r[n] = e);
}), r;
},
clickParams: function() {
var e = "";
var t = {};
return $D.each(tj, function(r) {
(e = $D.getQueryParam(RD.URL, r)).length && (t[r] = e);
}), t;
},
marketingParams: function() {
return $D.extend($D.info.campaignParams(), $D.info.clickParams());
},
searchEngine: function(e) {
return 0 === e.search("https?://(.*)google.([^/?]*)") ? "google" : 0 === e.search("https?://(.*)bing.com") ? "bing" : 0 === e.search("https?://(.*)yahoo.com") ? "yahoo" : 0 === e.search("https?://(.*)duckduckgo.com") ? "duckduckgo" : null;
},
searchInfo: function(e) {
var t = $D.info.searchEngine(e);
var r = "yahoo" != t ? "q" : "p";
var n = {};
if (null !== t) {
n.$search_engine = t;
var o = $D.getQueryParam(e, r);
o.length && (n.mp_keyword = o);
}
return n;
},
browser: function(e, t, r) {
return t = t || "", r || $D.includes(e, " OPR/") ? $D.includes(e, "Mini") ? "Opera Mini" : "Opera" : /(BlackBerry|PlayBook|BB10)/i.test(e) ? "BlackBerry" : $D.includes(e, "IEMobile") || $D.includes(e, "WPDesktop") ? "Internet Explorer Mobile" : $D.includes(e, "SamsungBrowser/") ? "Samsung Internet" : $D.includes(e, "Edge") || $D.includes(e, "Edg/") ? "Microsoft Edge" : $D.includes(e, "FBIOS") ? "Facebook Mobile" : $D.includes(e, "Whale/") ? "Whale Browser" : $D.includes(e, "Chrome") ? "Chrome" : $D.includes(e, "CriOS") ? "Chrome iOS" : $D.includes(e, "UCWEB") || $D.includes(e, "UCBrowser") ? "UC Browser" : $D.includes(e, "FxiOS") ? "Firefox iOS" : $D.includes(t, "Apple") ? $D.includes(e, "Mobile") ? "Mobile Safari" : "Safari" : $D.includes(e, "Android") ? "Android Mobile" : $D.includes(e, "Konqueror") ? "Konqueror" : $D.includes(e, "Firefox") ? "Firefox" : $D.includes(e, "MSIE") || $D.includes(e, "Trident/") ? "Internet Explorer" : $D.includes(e, "Gecko") ? "Mozilla" : "";
},
browserVersion: function(e, t, r) {
var n = {
"Internet Explorer Mobile": /rv:(\d+(\.\d+)?)/,
"Microsoft Edge": /Edge?\/(\d+(\.\d+)?)/,
Chrome: /Chrome\/(\d+(\.\d+)?)/,
"Chrome iOS": /CriOS\/(\d+(\.\d+)?)/,
"UC Browser": /(UCBrowser|UCWEB)\/(\d+(\.\d+)?)/,
Safari: /Version\/(\d+(\.\d+)?)/,
"Mobile Safari": /Version\/(\d+(\.\d+)?)/,
Opera: /(Opera|OPR)\/(\d+(\.\d+)?)/,
Firefox: /Firefox\/(\d+(\.\d+)?)/,
"Firefox iOS": /FxiOS\/(\d+(\.\d+)?)/,
Konqueror: /Konqueror:(\d+(\.\d+)?)/,
BlackBerry: /BlackBerry (\d+(\.\d+)?)/,
"Android Mobile": /android\s(\d+(\.\d+)?)/,
"Samsung Internet": /SamsungBrowser\/(\d+(\.\d+)?)/,
"Internet Explorer": /(rv:|MSIE )(\d+(\.\d+)?)/,
Mozilla: /rv:(\d+(\.\d+)?)/,
"Whale Browser": /Whale\/(\d+(\.\d+)?)/
}[$D.info.browser(e, t, r)];
if (void 0 === n) return null;
var o = e.match(n);
return o ? parseFloat(o[o.length - 2]) : null;
},
os: function() {
var e = AD;
return /Windows/i.test(e) ? /Phone/.test(e) || /WPDesktop/.test(e) ? "Windows Phone" : "Windows" : /(iPhone|iPad|iPod)/.test(e) ? "iOS" : /Android/.test(e) ? "Android" : /(BlackBerry|PlayBook|BB10)/i.test(e) ? "BlackBerry" : /Mac/i.test(e) ? "Mac OS X" : /Linux/.test(e) ? "Linux" : /CrOS/.test(e) ? "Chrome OS" : "";
},
device: function(e) {
return /Windows Phone/i.test(e) || /WPDesktop/.test(e) ? "Windows Phone" : /iPad/.test(e) ? "iPad" : /iPod/.test(e) ? "iPod Touch" : /iPhone/.test(e) ? "iPhone" : /(BlackBerry|PlayBook|BB10)/i.test(e) ? "BlackBerry" : /Android/.test(e) ? "Android" : "";
},
referringDomain: function(e) {
var t = e.split("/");
return t.length >= 3 ? t[2] : "";
},
currentUrl: function() {
return C_.location.href;
},
properties: function(e) {
return "object" != typeof e && (e = {}), $D.extend($D.strip_empty_properties({
$os: $D.info.os(),
$browser: $D.info.browser(AD, TD.vendor, ID),
$referrer: RD.referrer,
$referring_domain: $D.info.referringDomain(RD.referrer),
$device: $D.info.device(AD)
}), {
$current_url: $D.info.currentUrl(),
$browser_version: $D.info.browserVersion(AD, TD.vendor, ID),
$screen_height: MD.height,
$screen_width: MD.width,
mp_lib: "web",
$lib_version: E_.LIB_VERSION,
$insert_id: rj(),
time: $D.timestamp() / 1e3
}, $D.strip_empty_properties(e));
},
people_properties: function() {
return $D.extend($D.strip_empty_properties({
$os: $D.info.os(),
$browser: $D.info.browser(AD, TD.vendor, ID)
}), { $browser_version: $D.info.browserVersion(AD, TD.vendor, ID) });
},
mpPageViewProperties: function() {
return $D.strip_empty_properties({
current_page_title: RD.title,
current_domain: C_.location.hostname,
current_url_path: C_.location.pathname,
current_url_protocol: C_.location.protocol,
current_url_search: C_.location.search
});
}
};
var rj = function(e) {
var t = Math.random().toString(36).substring(2, 10) + Math.random().toString(36).substring(2, 10);
return e ? t.substring(0, e) : t;
};
var nj = function() {
return "00-" + $D.UUID().replace(/-/g, "") + "-" + $D.UUID().replace(/-/g, "").substring(0, 16) + "-01";
};
var oj = /[a-z0-9][a-z0-9-]*\.[a-z]+$/i;
var ij = /[a-z0-9][a-z0-9-]+\.[a-z.]{2,6}$/i;
var sj = function(e) {
var t = ij;
var r = e.split(".");
var n = r[r.length - 1];
(n.length > 4 || "com" === n || "org" === n) && (t = oj);
var o = e.match(t);
return o ? o[0] : "";
};
var aj = function() {};
var lj = function(e, t) {
for (var r = !1, n = 0; n < t.length; n++) if (e.match(t[n])) {
r = !0;
break;
}
return r;
};
var cj = null;
var uj = null;
"undefined" != typeof JSON && (cj = JSON.stringify, uj = JSON.parse), cj = cj || $D.JSONEncode, uj = uj || $D.JSONDecode, $D.info = $D.info, $D.info.browser = $D.info.browser, $D.info.browserVersion = $D.info.browserVersion, $D.info.device = $D.info.device, $D.info.properties = $D.info.properties, $D.isBlockedUA = $D.isBlockedUA, $D.isEmptyObject = $D.isEmptyObject, $D.isObject = $D.isObject, $D.JSONDecode = $D.JSONDecode, $D.JSONEncode = $D.JSONEncode, $D.toArray = $D.toArray, $D.NPO = vD;
var pj = "mixpanelRecordingEvents";
var dj = "mixpanelRecordingRegistry";
var fj = [pj, dj];
var hj = function(e) {
this.dbPromise = null, this.storeName = e;
};
function mj(e, t) {
Oj(!0, e, t);
}
function gj(e, t) {
Oj(!1, e, t);
}
function vj(e, t) {
return "1" === Cj(e, t);
}
function yj(e, t) {
if (function(e) {
if (e && e.ignoreDnt) return !1;
var t = e && e.window || C_;
var r = t.navigator || {};
var n = !1;
return $D.each([
r.doNotTrack,
r.msDoNotTrack,
t.doNotTrack
], function(e) {
$D.includes([
!0,
1,
"1",
"yes"
], e) && (n = !0);
}), n;
}(t)) return BD.warn("This browser has \"Do Not Track\" enabled. This will prevent the Mixpanel SDK from sending any data. To ignore the \"Do Not Track\" browser setting, initialize the Mixpanel instance with the config \"ignore_dnt: true\""), !0;
var r = "0" === Cj(e, t);
return r && BD.warn("You are opted out of Mixpanel tracking. This will prevent the Mixpanel SDK from sending any data."), r;
}
function bj(e) {
return Ej(e, function(e) {
return this.get_config(e);
});
}
function wj(e) {
return Ej(e, function(e) {
return this._get_config(e);
});
}
function _j(e) {
return Ej(e, function(e) {
return this._get_config(e);
});
}
function xj(e, t) {
Sj(t = t || {}).remove(kj(e, t), !!t.crossSubdomainCookie, t.cookieDomain);
}
function Sj(e) {
return "localStorage" === (e = e || {}).persistenceType ? $D.localStorage : $D.cookie;
}
function kj(e, t) {
return ((t = t || {}).persistencePrefix || "__mp_opt_in_out_") + e;
}
function Cj(e, t) {
return Sj(t).get(kj(e, t));
}
function Oj(e, t, r) {
$D.isString(t) && t.length ? (Sj(r = r || {}).set(kj(t, r), e ? 1 : 0, $D.isNumber(r.cookieExpiration) ? r.cookieExpiration : null, !!r.crossSubdomainCookie, !!r.secureCookie, !!r.crossSiteCookie, r.cookieDomain), r.track && e && r.track(r.trackEventName || "$opt_in", r.trackProperties, { send_immediately: !0 })) : BD.error("gdpr." + (e ? "optIn" : "optOut") + " called with an invalid token");
}
function Ej(e, t) {
return function() {
var r = !1;
try {
var n = t.call(this, "token");
var o = t.call(this, "ignore_dnt");
var i = t.call(this, "opt_out_tracking_persistence_type");
var s = t.call(this, "opt_out_tracking_cookie_prefix");
var a = t.call(this, "window");
n && (r = yj(n, {
ignoreDnt: o,
persistenceType: i,
persistencePrefix: s,
window: a
}));
} catch (e) {
BD.error("Unexpected error when checking tracking opt-out status: " + e);
}
if (!r) return e.apply(this, arguments);
var l = arguments[arguments.length - 1];
"function" == typeof l && l(0);
};
}
hj.prototype._openDb = function() {
return new yD(function(e, t) {
var r = C_.indexedDB.open("mixpanelBrowserDb", 1);
r.onerror = function() {
t(r.error);
}, r.onsuccess = function() {
e(r.result);
}, r.onupgradeneeded = function(e) {
var t = e.target.result;
fj.forEach(function(e) {
t.createObjectStore(e);
});
};
});
}, hj.prototype.init = function() {
return C_.indexedDB ? (this.dbPromise || (this.dbPromise = this._openDb()), this.dbPromise.then(function(e) {
return e instanceof C_.IDBDatabase ? yD.resolve() : yD.reject(e);
})) : yD.reject("indexedDB is not supported in this browser");
}, hj.prototype.isInitialized = function() {
return !!this.dbPromise;
}, hj.prototype.makeTransaction = function(e, t) {
var r = this.storeName;
var n = function(n) {
return new yD(function(o, i) {
var s = n.transaction(r, e);
s.oncomplete = function() {
o(s);
}, s.onabort = s.onerror = function() {
i(s.error);
}, t(s.objectStore(r));
});
};
return this.dbPromise.then(n).catch(function(e) {
return e && "InvalidStateError" === e.name ? (this.dbPromise = this._openDb(), this.dbPromise.then(n)) : yD.reject(e);
}.bind(this));
}, hj.prototype.setItem = function(e, t) {
return this.makeTransaction("readwrite", function(r) {
r.put(t, e);
});
}, hj.prototype.getItem = function(e) {
var t;
return this.makeTransaction("readonly", function(r) {
t = r.get(e);
}).then(function() {
return t.result;
});
}, hj.prototype.removeItem = function(e) {
return this.makeTransaction("readwrite", function(t) {
t.delete(e);
});
}, hj.prototype.getAll = function() {
var e;
return this.makeTransaction("readonly", function(t) {
e = t.getAll();
}).then(function() {
return e.result;
});
};
var Tj = VD("lock");
var Rj = function(e, t) {
t = t || {}, this.storageKey = e, this.storage = t.storage || C_.localStorage, this.pollIntervalMS = t.pollIntervalMS || 100, this.timeoutMS = t.timeoutMS || 2e3, this.promiseImpl = t.promiseImpl || yD;
};
Rj.prototype.withLock = function(e, t) {
return new this.promiseImpl($D.bind(function(r, n) {
var o = t || (/* @__PURE__ */ new Date()).getTime() + "|" + Math.random();
var i = (/* @__PURE__ */ new Date()).getTime();
var s = this.storageKey;
var a = this.pollIntervalMS;
var l = this.timeoutMS;
var c = this.storage;
var u = s + ":X";
var p = s + ":Y";
var d = s + ":Z";
var f = function(e) {
if ((/* @__PURE__ */ new Date()).getTime() - i > l) return Tj.error("Timeout waiting for mutex on " + s + "; clearing lock. [" + o + "]"), c.removeItem(d), c.removeItem(p), void g();
setTimeout(function() {
try {
e();
} catch (e) {
n(e);
}
}, a * (Math.random() + .1));
};
var h = function(e, t) {
e() ? t() : f(function() {
h(e, t);
});
};
var m = function() {
var e = c.getItem(p);
return !(e && e !== o || (c.setItem(p, o), c.getItem(p) !== o && (KD(c, !0) || n(/* @__PURE__ */ new Error("localStorage support dropped while acquiring lock")), 1)));
};
var g = function() {
c.setItem(u, o), h(m, function() {
c.getItem(u) !== o ? f(function() {
c.getItem(p) === o ? h(function() {
return !c.getItem(d);
}, v) : g();
}) : v();
});
};
var v = function() {
c.setItem(d, "1");
var t = function() {
c.removeItem(d), c.getItem(p) === o && c.removeItem(p), c.getItem(u) === o && c.removeItem(u);
};
e().then(function(e) {
t(), r(e);
}).catch(function(e) {
t(), n(e);
});
};
try {
if (!KD(c, !0)) throw new Error("localStorage support check failed");
g();
} catch (e) {
n(e);
}
}, this));
};
var Ij = function(e) {
this.storage = e || C_.localStorage;
};
Ij.prototype.init = function() {
return yD.resolve();
}, Ij.prototype.isInitialized = function() {
return !0;
}, Ij.prototype.setItem = function(e, t) {
return new yD($D.bind(function(r, n) {
try {
this.storage.setItem(e, cj(t));
} catch (e) {
n(e);
}
r();
}, this));
}, Ij.prototype.getItem = function(e) {
return new yD($D.bind(function(t, r) {
var n;
try {
n = uj(this.storage.getItem(e));
} catch (e) {
r(e);
}
t(n);
}, this));
}, Ij.prototype.removeItem = function(e) {
return new yD($D.bind(function(t, r) {
try {
this.storage.removeItem(e);
} catch (e) {
r(e);
}
t();
}, this));
};
var Mj = VD("batch");
var Aj = function(e, t) {
var r;
var n;
var o;
var i;
t = t || {}, this.storageKey = e, this.usePersistence = t.usePersistence, this.usePersistence && (this.queueStorage = t.queueStorage || new Ij(), this.lock = new Rj(e, {
storage: t.sharedLockStorage || C_.localStorage,
timeoutMS: t.sharedLockTimeoutMS
})), this.reportError = t.errorReporter || $D.bind(Mj.error, Mj), this.pid = t.pid || null, this.memQueue = [], this.initialized = !1, t.enqueueThrottleMs ? this.enqueuePersisted = (r = $D.bind(this._enqueuePersisted, this), n = t.enqueueThrottleMs, o = null, i = [], function(e) {
var t = this;
return i.push(e), o || (o = new yD(function(e) {
setTimeout(function() {
var n = r.apply(t, [i]);
o = null, i = [], e(n);
}, n);
})), o;
}) : this.enqueuePersisted = $D.bind(function(e) {
return this._enqueuePersisted([e]);
}, this);
};
Aj.prototype.ensureInit = function() {
return this.initialized || !this.usePersistence ? yD.resolve() : this.queueStorage.init().then($D.bind(function() {
this.initialized = !0;
}, this)).catch($D.bind(function(e) {
this.reportError("Error initializing queue persistence. Disabling persistence", e), this.initialized = !0, this.usePersistence = !1;
}, this));
}, Aj.prototype.enqueue = function(e, t) {
var r = {
id: rj(),
flushAfter: (/* @__PURE__ */ new Date()).getTime() + 2 * t,
payload: e
};
return this.usePersistence ? this.enqueuePersisted(r) : (this.memQueue.push(r), yD.resolve(!0));
}, Aj.prototype._enqueuePersisted = function(e) {
var t = $D.bind(function() {
return this.ensureInit().then($D.bind(function() {
return this.readFromStorage();
}, this)).then($D.bind(function(t) {
return this.saveToStorage(t.concat(e));
}, this)).then($D.bind(function(t) {
return t && (this.memQueue = this.memQueue.concat(e)), t;
}, this)).catch($D.bind(function(t) {
return this.reportError("Error enqueueing items", t, e), !1;
}, this));
}, this);
return this.lock.withLock(t, this.pid).catch($D.bind(function(e) {
return this.reportError("Error acquiring storage lock", e), !1;
}, this));
}, Aj.prototype.fillBatch = function(e) {
var t = this.memQueue.slice(0, e);
return this.usePersistence && t.length < e ? this.ensureInit().then($D.bind(function() {
return this.readFromStorage();
}, this)).then($D.bind(function(r) {
if (r.length) {
var n = {};
$D.each(t, function(e) {
n[e.id] = !0;
});
for (var o = 0; o < r.length; o++) {
var i = r[o];
if ((/* @__PURE__ */ new Date()).getTime() > i.flushAfter && !n[i.id] && (i.orphaned = !0, t.push(i), t.length >= e)) break;
}
}
return t;
}, this)) : yD.resolve(t);
};
var Pj = function(e, t) {
var r = [];
return $D.each(e, function(e) {
e.id && !t[e.id] && r.push(e);
}), r;
};
Aj.prototype.removeItemsByID = function(e) {
var t = {};
if ($D.each(e, function(e) {
t[e] = !0;
}), this.memQueue = Pj(this.memQueue, t), this.usePersistence) {
var r = $D.bind(function() {
return this.ensureInit().then($D.bind(function() {
return this.readFromStorage();
}, this)).then($D.bind(function(e) {
return e = Pj(e, t), this.saveToStorage(e);
}, this)).then($D.bind(function() {
return this.readFromStorage();
}, this)).then($D.bind(function(e) {
for (var r = 0; r < e.length; r++) {
var n = e[r];
if (n.id && t[n.id]) throw new Error("Item not removed from storage");
}
return !0;
}, this)).catch($D.bind(function(t) {
return this.reportError("Error removing items", t, e), !1;
}, this));
}, this);
return this.lock.withLock(r, this.pid).catch($D.bind(function(e) {
return this.reportError("Error acquiring storage lock", e), !KD(this.lock.storage, !0) && r().then($D.bind(function(e) {
return e || this.queueStorage.removeItem(this.storageKey).then(function() {
return e;
});
}, this)).catch($D.bind(function(e) {
return this.reportError("Error clearing queue", e), !1;
}, this));
}, this));
}
return yD.resolve(!0);
};
var Nj = function(e, t) {
var r = [];
return $D.each(e, function(e) {
var n = e.id;
if (n in t) {
var o = t[n];
null !== o && (e.payload = o, r.push(e));
} else r.push(e);
}), r;
};
Aj.prototype.updatePayloads = function(e) {
return this.memQueue = Nj(this.memQueue, e), this.usePersistence ? this.lock.withLock($D.bind(function() {
return this.ensureInit().then($D.bind(function() {
return this.readFromStorage();
}, this)).then($D.bind(function(t) {
return t = Nj(t, e), this.saveToStorage(t);
}, this)).catch($D.bind(function(t) {
return this.reportError("Error updating items", e, t), !1;
}, this));
}, this), this.pid).catch($D.bind(function(e) {
return this.reportError("Error acquiring storage lock", e), !1;
}, this)) : yD.resolve(!0);
}, Aj.prototype.readFromStorage = function() {
return this.ensureInit().then($D.bind(function() {
return this.queueStorage.getItem(this.storageKey);
}, this)).then($D.bind(function(e) {
return e && ($D.isArray(e) || (this.reportError("Invalid storage entry:", e), e = null)), e || [];
}, this)).catch($D.bind(function(e) {
return this.reportError("Error retrieving queue", e), [];
}, this));
}, Aj.prototype.saveToStorage = function(e) {
return this.ensureInit().then($D.bind(function() {
return this.queueStorage.setItem(this.storageKey, e);
}, this)).then(function() {
return !0;
}).catch($D.bind(function(e) {
return this.reportError("Error saving queue", e), !1;
}, this));
}, Aj.prototype.clear = function() {
return this.memQueue = [], this.usePersistence ? this.ensureInit().then($D.bind(function() {
return this.queueStorage.removeItem(this.storageKey);
}, this)) : yD.resolve();
};
var Lj = VD("batch");
var Dj = function(e, t) {
this.errorReporter = t.errorReporter, this.queue = new Aj(e, {
errorReporter: $D.bind(this.reportError, this),
queueStorage: t.queueStorage,
sharedLockStorage: t.sharedLockStorage,
sharedLockTimeoutMS: t.sharedLockTimeoutMS,
usePersistence: t.usePersistence,
enqueueThrottleMs: t.enqueueThrottleMs
}), this.libConfig = t.libConfig, this.sendRequest = t.sendRequestFunc, this.beforeSendHook = t.beforeSendHook, this.stopAllBatching = t.stopAllBatchingFunc, this.batchSize = this.libConfig.batch_size, this.flushInterval = this.libConfig.batch_flush_interval_ms, this.stopped = !this.libConfig.batch_autostart, this.consecutiveRemovalFailures = 0, this.itemIdsSentSuccessfully = {}, this.flushOnlyOnInterval = t.flushOnlyOnInterval || !1, this._flushPromise = null;
};
Dj.prototype.enqueue = function(e) {
return this.queue.enqueue(e, this.flushInterval);
}, Dj.prototype.start = function() {
return this.stopped = !1, this.consecutiveRemovalFailures = 0, this.flush();
}, Dj.prototype.stop = function() {
this.stopped = !0, this.timeoutID && (clearTimeout(this.timeoutID), this.timeoutID = null);
}, Dj.prototype.clear = function() {
return this.queue.clear();
}, Dj.prototype.resetBatchSize = function() {
this.batchSize = this.libConfig.batch_size;
}, Dj.prototype.resetFlush = function() {
this.scheduleFlush(this.libConfig.batch_flush_interval_ms);
}, Dj.prototype.scheduleFlush = function(e) {
this.flushInterval = e, this.stopped || (this.timeoutID = setTimeout($D.bind(function() {
this.stopped || (this._flushPromise = this.flush());
}, this), this.flushInterval));
}, Dj.prototype.sendRequestPromise = function(e, t) {
return new yD($D.bind(function(r) {
this.sendRequest(e, t, r);
}, this));
}, Dj.prototype.flush = function(e) {
if (this.requestInProgress) return Lj.log("Flush: Request already in progress"), yD.resolve();
this.requestInProgress = !0, e = e || {};
var t = this.libConfig.batch_request_timeout_ms;
var r = (/* @__PURE__ */ new Date()).getTime();
var n = this.batchSize;
return this.queue.fillBatch(n).then($D.bind(function(o) {
var i = o.length === n;
var s = [];
var a = {};
if ($D.each(o, function(e) {
var t = e.payload;
if (this.beforeSendHook && !e.orphaned && (t = this.beforeSendHook(t)), t) {
t.event && t.properties && (t.properties = $D.extend({}, t.properties, { mp_sent_by_lib_version: E_.LIB_VERSION }));
var r = !0;
var n = e.id;
n ? (this.itemIdsSentSuccessfully[n] || 0) > 5 && (this.reportError("[dupe] item ID sent too many times, not sending", {
item: e,
batchSize: o.length,
timesSent: this.itemIdsSentSuccessfully[n]
}), r = !1) : this.reportError("[dupe] found item with no ID", { item: e }), r && s.push(t);
}
a[e.id] = t;
}, this), s.length < 1) return this.requestInProgress = !1, this.resetFlush(), yD.resolve();
var l = $D.bind(function() {
return this.queue.removeItemsByID($D.map(o, function(e) {
return e.id;
})).then($D.bind(function(e) {
return $D.each(o, $D.bind(function(e) {
var t = e.id;
t ? (this.itemIdsSentSuccessfully[t] = this.itemIdsSentSuccessfully[t] || 0, this.itemIdsSentSuccessfully[t]++, this.itemIdsSentSuccessfully[t] > 5 && this.reportError("[dupe] item ID sent too many times", {
item: e,
batchSize: o.length,
timesSent: this.itemIdsSentSuccessfully[t]
})) : this.reportError("[dupe] found item with no ID while removing", { item: e });
}, this)), e ? (this.consecutiveRemovalFailures = 0, this.flushOnlyOnInterval && !i ? (this.resetFlush(), yD.resolve()) : this.flush()) : (++this.consecutiveRemovalFailures > 5 ? (this.reportError("Too many queue failures; disabling batching system."), this.stopAllBatching()) : this.resetFlush(), yD.resolve());
}, this));
}, this);
var c = $D.bind(function(i) {
this.requestInProgress = !1;
try {
if (e.unloading) return this.queue.updatePayloads(a);
if ($D.isObject(i) && "timeout" === i.error && (/* @__PURE__ */ new Date()).getTime() - r >= t) return this.reportError("Network timeout; retrying"), this.flush();
if ($D.isObject(i) && (i.httpStatusCode >= 500 || 429 === i.httpStatusCode || i.httpStatusCode <= 0 && (u = C_.navigator.onLine, !$D.isUndefined(u) && !u) || "timeout" === i.error)) {
var s = 2 * this.flushInterval;
return i.retryAfter && (s = 1e3 * parseInt(i.retryAfter, 10) || s), s = Math.min(6e5, s), this.reportError("Error; retry in " + s + " ms"), this.scheduleFlush(s), yD.resolve();
}
if ($D.isObject(i) && 413 === i.httpStatusCode) {
if (o.length > 1) {
var c = Math.max(1, Math.floor(n / 2));
return this.batchSize = Math.min(this.batchSize, c, o.length - 1), this.reportError("413 response; reducing batch size to " + this.batchSize), this.resetFlush(), yD.resolve();
}
return this.reportError("Single-event request too large; dropping", o), this.resetBatchSize(), l();
}
return l();
} catch (e) {
this.reportError("Error handling API response", e), this.resetFlush();
}
var u;
}, this);
var u = {
method: "POST",
verbose: !0,
ignore_json_errors: !0,
timeout_ms: t
};
return e.unloading && (u.transport = "sendBeacon"), Lj.log("MIXPANEL REQUEST:", s), this.sendRequestPromise(s, u).then(c);
}, this)).catch($D.bind(function(e) {
this.reportError("Error flushing request queue", e), this.resetFlush();
}, this));
}, Dj.prototype.reportError = function(e, t) {
if (Lj.error.apply(Lj.error, arguments), this.errorReporter) try {
t instanceof Error || (t = new Error(e)), this.errorReporter(e, t);
} catch (t) {
Lj.error(t);
}
};
var jj = function(e) {
var t = Date.now();
return !e || t > e.maxExpires || t > e.idleExpires;
};
var Fj = function(e, t) {
if (!$D.isArray(e)) return e && t.critical("record_allowed_iframe_origins must be an array of origin strings, cross-origin recording will be disabled."), [];
for (var r = [], n = 0; n < e.length; n++) try {
var o = new URL(e[n]).origin;
if ("null" === o) {
t.critical(e[n] + " has an opaque origin. Skipping this entry.");
continue;
}
r.push(o);
} catch (r) {
t.critical(e[n] + " is not a valid origin URL. Skipping this entry.");
}
return r;
};
var $j = "change";
var Bj = "click";
var zj = "hashchange";
var Vj = "load";
var Uj = "mp_locationchange";
var qj = "popstate";
var Wj = "scrollend";
var Hj = "scroll";
var Gj = "submit";
var Kj = "visibilitychange";
var Yj = [
"clientX",
"clientY",
"offsetX",
"offsetY",
"pageX",
"pageY",
"screenX",
"screenY",
"x",
"y"
];
var Zj = ["mp-include"];
var Xj = ["mp-no-track"];
var Jj = Xj.concat(["mp-sensitive"]);
var Qj = [
"aria-label",
"aria-labelledby",
"aria-describedby",
"href",
"name",
"role",
"title",
"type"
];
var eF = {
button: !0,
checkbox: !0,
combobox: !0,
grid: !0,
link: !0,
listbox: !0,
menu: !0,
menubar: !0,
menuitem: !0,
menuitemcheckbox: !0,
menuitemradio: !0,
navigation: !0,
option: !0,
radio: !0,
radiogroup: !0,
searchbox: !0,
slider: !0,
spinbutton: !0,
switch: !0,
tab: !0,
tablist: !0,
textbox: !0,
tree: !0,
treegrid: !0,
treeitem: !0
};
var tF = {
base: !0,
head: !0,
html: !0,
link: !0,
meta: !0,
script: !0,
style: !0,
title: !0,
br: !0,
hr: !0,
wbr: !0,
noscript: !0,
picture: !0,
source: !0,
template: !0,
track: !0
};
var rF = {
article: !0,
div: !0,
h1: !0,
h2: !0,
h3: !0,
h4: !0,
h5: !0,
h6: !0,
p: !0,
section: !0,
span: !0
};
var nF = [
"onclick",
"onmousedown",
"onmouseup",
"onpointerdown",
"onpointerup",
"ontouchend",
"ontouchstart"
];
var oF = VD("autocapture");
function iF(e) {
for (var t = {}, r = sF(e).split(" "), n = 0; n < r.length; n++) {
var o = r[n];
o && (t[o] = !0);
}
return t;
}
function sF(e) {
switch (typeof e.className) {
case "string": return e.className;
case "object": return e.className.baseVal || e.getAttribute("class") || "";
default: return "";
}
}
function aF(e) {
if (e.previousElementSibling) return e.previousElementSibling;
do
e = e.previousSibling;
while (e && !dF(e));
return e;
}
function lF(e, t, r, n, o, i) {
var s = {
$classes: sF(e).split(" "),
$tag_name: e.tagName.toLowerCase()
};
var a = e.id;
a && (s.$id = a), gF(e, t, o, i) && $D.each(Qj.concat(n), function(t) {
if (e.hasAttribute(t) && !r[t]) {
var n = e.getAttribute(t);
vF(n) && (s["$attr-" + t] = n);
}
});
for (var l = 1, c = 1, u = e; u = aF(u);) l++, u.tagName === e.tagName && c++;
return s.$nth_child = l, s.$nth_of_type = c, s;
}
function cF(e, t, r, n) {
var o = "";
return gF(e, t, r, n) && e.childNodes && e.childNodes.length && $D.each(e.childNodes, function(e) {
hF(e) && e.textContent && (o += $D.trim(e.textContent).split(/(\s+)/).filter(vF).join("").replace(/[\r\n]/g, " ").replace(/[ ]+/g, " ").substring(0, 255));
}), $D.trim(o);
}
function uF(e, t, r, n) {
if (r) try {
if (!r(e, t)) return !1;
} catch (e) {
return oF.critical("Error while checking element in allowElementCallback", e), !1;
}
if (!n.length) return !0;
for (var o = 0; o < n.length; o++) {
var i = n[o];
try {
if (e.matches(i)) return !0;
} catch (e) {
oF.critical("Error while checking selector: " + i, e);
}
}
return !1;
}
function pF(e, t, r, n) {
var o;
if (r) try {
if (r(e, t)) return !0;
} catch (e) {
return oF.critical("Error while checking element in blockElementCallback", e), !0;
}
if (n && n.length) for (o = 0; o < n.length; o++) {
var i = n[o];
try {
if (e.matches(i)) return !0;
} catch (e) {
oF.critical("Error while checking selector: " + i, e);
}
}
var s = iF(e);
for (o = 0; o < Xj.length; o++) if (s[Xj[o]]) return !0;
return !1;
}
function dF(e) {
return e && 1 === e.nodeType;
}
function fF(e, t) {
return e && e.tagName && e.tagName.toLowerCase() === t.toLowerCase();
}
function hF(e) {
return e && 3 === e.nodeType;
}
function mF(e) {
var t = (e.name || e.id || "").toString().toLowerCase();
return !("string" != typeof t || !/^cc|cardnum|ccnum|creditcard|csc|cvc|cvv|exp|pass|pwd|routing|seccode|securitycode|securitynum|socialsec|socsec|ssn/i.test(t.replace(/[^a-zA-Z0-9]/g, "")));
}
function gF(e, t, r, n) {
var o;
if (!uF(e, t, r, n)) return !1;
for (var i = e; i.parentNode && !fF(i, "body"); i = i.parentNode) {
var s = iF(i);
for (o = 0; o < Jj.length; o++) if (s[Jj[o]]) return !1;
}
var a = iF(e);
for (o = 0; o < Zj.length; o++) if (a[Zj[o]]) return !0;
if (fF(e, "input") || fF(e, "select") || fF(e, "textarea") || "true" === e.getAttribute("contenteditable")) return !1;
var l = e.type || "";
if ("string" == typeof l) switch (l.toLowerCase()) {
case "hidden":
case "password": return !1;
}
return !mF(e);
}
function vF(e) {
if (null === e || $D.isUndefined(e)) return !1;
if ("string" == typeof e) {
if (e = $D.trim(e), /^(?:(4[0-9]{12}(?:[0-9]{3})?)|(5[1-5][0-9]{14})|(6(?:011|5[0-9]{2})[0-9]{12})|(3[47][0-9]{13})|(3(?:0[0-5]|[68][0-9])[0-9]{11})|((?:2131|1800|35[0-9]{3})[0-9]{11}))$/.test((e || "").replace(/[- ]/g, ""))) return !1;
if (/(^\d{3}-?\d{2}-?\d{4}$)/.test(e)) return !1;
}
return !0;
}
function yF(e) {
var t = "onscrollend" in C_;
var r = UD(e);
var n = Wj;
if (!t) {
var o = null;
r = UD(function() {
clearTimeout(o), o = setTimeout(e, 100);
}), n = Hj;
}
return {
listener: r,
eventType: n
};
}
function bF(e) {
var t = e.tagName.toLowerCase();
return !!("button" === t || "input" === t || "select" === t || "textarea" === t || "details" === t || "dialog" === t || e.isContentEditable || e.onclick || e.onmousedown || e.onmouseup || e.ontouchstart || e.ontouchend || function(e) {
for (var t = 0; t < nF.length; t++) if (e.hasAttribute(nF[t])) return !0;
return !1;
}(e) || function(e) {
var t = e.getAttribute("role");
if (!t) return !1;
return eF[t.trim().split(/\s+/)[0].toLowerCase()];
}(e) || "a" === t && e.hasAttribute("href") || e.hasAttribute("tabindex"));
}
function wF(e) {
if (!e || !e.tagName) return !0;
var t = e.tagName.toLowerCase();
if (tF[t]) return !0;
if (bF(e)) return !1;
for (var r = e.parentElement, n = 0; r && n < 5;) {
if (bF(r)) return !1;
if (r.getRootNode && r.getRootNode() !== RD) {
var o = r.getRootNode();
if (o.host && bF(o.host)) return !1;
}
r = r.parentElement, n++;
}
return !!rF[t];
}
function _F(e) {
return "composedPath" in e ? e.composedPath() : [];
}
function xF(e) {
var t = _F(e);
return t && t.length > 0 ? t[0] : e.target || e.srcElement;
}
var SF = ".mp-mask, .fs-mask, .amp-mask, .rr-mask, .ph-mask";
var kF = [
"password",
"email",
"tel",
"hidden"
];
function CF(e) {
return e ? Array.isArray(e) ? e : [e] : [];
}
function OF(e, t) {
return !!t && !!e.closest(t);
}
function EF(e, t) {
var r = (e.getAttribute("type") || "").toLowerCase();
if (-1 !== kF.indexOf(r)) return !0;
var n = (e.getAttribute("autocomplete") || "").toLowerCase();
return !((!n || "" === n || "off" === n) && !e.hasAttribute("data-rr-is-password") && !mF(e) && (t.input.maskAll ? OF(e, t.input.unmaskingSelector) : !OF(e, t.input.maskingSelector) && !OF(e, SF)));
}
function TF(e, t) {
return !(!e || (!t.text._legacyClassRegex || !aA(e, t.text._legacyClassRegex)) && (t.text.maskAll ? OF(e, t.text.unmaskingSelector) : !OF(e, t.text.maskingSelector) && !OF(e, SF)));
}
var RF = VD("network-plugin");
function IF(e) {
return Math.round(Date.now() - e.performance.now());
}
var MF = {
initiatorTypes: [
"audio",
"beacon",
"body",
"css",
"early-hint",
"embed",
"fetch",
"frame",
"iframe",
"icon",
"image",
"img",
"input",
"link",
"navigation",
"object",
"ping",
"script",
"track",
"video",
"xmlhttprequest"
],
ignoreRequestFn: function() {
return !1;
},
recordHeaders: {
request: [],
response: []
},
recordBodyUrls: {
request: [],
response: []
},
recordInitialRequests: !1
};
function AF(e) {
return "resource" === e.entryType;
}
function PF(e, t, r) {
if (!(t in e) || "function" != typeof e[t]) return function() {};
var n = e[t];
return e[t] = r(n), function() {
e[t] = n;
};
}
var NF = 1048576;
function LF(e) {
return e && "string" == typeof e && e.length > NF ? (RF.error("Body truncated from " + e.length + " to " + NF + " characters"), e.substring(0, NF) + "... [truncated]") : e;
}
function DF(e, t, r) {
return !(!t[e] || 0 === t[e].length) && t[e].includes(r.toLowerCase());
}
function jF(e, t, r) {
return !(!t[e] || 0 === t[e].length) && lj(r, t[e]);
}
function FF(e) {
if (null == e) return null;
var t;
if ("string" == typeof e) t = e;
else if (e instanceof Document) t = e.textContent;
else if (e instanceof FormData) t = $D.HTTPBuildQuery(e);
else {
if (!$D.isObject(e)) return "Cannot read body of type " + typeof e;
try {
t = JSON.stringify(e);
} catch (e) {
return "Failed to stringify response object";
}
}
return LF(t);
}
function $F(e) {
return new Promise(function(t) {
var r = setTimeout(function() {
t("Timeout while trying to read body");
}, 500);
try {
e.clone().text().then(function(e) {
clearTimeout(r), t(LF(e));
}, function(e) {
clearTimeout(r), t("Failed to read body: " + String(e));
});
} catch (e) {
clearTimeout(r), t("Failed to read body: " + String(e));
}
});
}
function BF(e, t, r, n, o, i) {
if (void 0 === i && (i = 0), i > 10) return RF.error("Cannot find performance entry"), Promise.resolve(null);
var s = function(e, t) {
for (var r = e.length - 1; r >= 0; r -= 1) if (t(e[r])) return e[r];
}(e.performance.getEntriesByName(r), function(e) {
return AF(e) && e.initiatorType === t && (!n || e.startTime >= n) && (!o || e.startTime <= o);
});
return s ? Promise.resolve(s) : new Promise(function(e) {
setTimeout(e, 50 * i);
}).then(function() {
return BF(e, t, r, n, o, i + 1);
});
}
function zF(e, t, r) {
if (!("performance" in t)) return function() {};
var n = Object.assign({}, MF.recordHeaders, r.recordHeaders || {});
var o = Object.assign({}, MF.recordBodyUrls, r.recordBodyUrls || {});
r = Object.assign({}, r, {
recordHeaders: n,
recordBodyUrls: o
});
var i = Object.assign({}, MF, r);
var s = function(t) {
var r = t.requests.filter(function(e) {
return !lj(e.url, i.ignoreRequestUrls || []) && !i.ignoreRequestFn(e);
});
(r.length > 0 || t.isInitial) && e(Object.assign({}, t, { requests: r }));
};
var a = function(e, t, r) {
if (!t.PerformanceObserver) return RF.error("PerformanceObserver not supported"), function() {};
if (r.recordInitialRequests) e({
requests: t.performance.getEntries().filter(function(e) {
return function(e) {
return "navigation" === e.entryType;
}(e) || AF(e) && r.initiatorTypes.includes(e.initiatorType);
}).map(function(e) {
return {
url: e.name,
initiatorType: e.initiatorType,
status: "responseStatus" in e ? e.responseStatus : void 0,
startTime: Math.round(e.startTime),
endTime: Math.round(e.responseEnd),
timeOrigin: IF(t)
};
}),
isInitial: !0
});
var o = new t.PerformanceObserver(function(n) {
e({ requests: n.getEntries().filter(function(e) {
return AF(e) && r.initiatorTypes.includes(e.initiatorType) && "xmlhttprequest" !== e.initiatorType && "fetch" !== e.initiatorType;
}).map(function(e) {
return {
url: e.name,
initiatorType: e.initiatorType,
status: "responseStatus" in e ? e.responseStatus : void 0,
startTime: Math.round(e.startTime),
endTime: Math.round(e.responseEnd),
timeOrigin: IF(t)
};
}) });
});
return o.observe({ entryTypes: ["navigation", "resource"] }), function() {
o.disconnect();
};
}(s, t, i);
var l = function(e, t, r) {
if (!r.initiatorTypes.includes("xmlhttprequest")) return function() {};
var n = PF(t.XMLHttpRequest.prototype, "open", function(n) {
return function(o, i, s, a, l) {
void 0 === s && (s = !0);
var c;
var u;
var p = this;
var d = new Request(i, { method: o });
var f = {};
var h = {};
var m = p.setRequestHeader.bind(p);
p.setRequestHeader = function(e, t) {
return DF("request", r.recordHeaders, e) && (h[e] = t), m(e, t);
}, f.requestHeaders = h;
var g = p.send.bind(p);
p.send = function(e) {
return jF("request", r.recordBodyUrls, d.url) && (f.requestBody = FF(e)), c = t.performance.now(), g(e);
}, p.addEventListener("readystatechange", function() {
if (p.readyState === p.DONE) {
u = t.performance.now();
var n = {};
var o = p.getAllResponseHeaders();
o && o.trim().split(/[\r\n]+/).forEach(function(e) {
if (e) {
var t = e.indexOf(": ");
if (-1 !== t) {
var o = e.substring(0, t);
var i = e.substring(t + 2);
o && DF("response", r.recordHeaders, o) && (n[o] = i);
}
}
}), f.responseHeaders = n, jF("response", r.recordBodyUrls, d.url) && (f.responseBody = FF(p.response)), BF(t, "xmlhttprequest", d.url, c, u).then(function(r) {
if (r) e({ requests: [{
url: r.name,
method: d.method,
initiatorType: r.initiatorType,
status: p.status,
startTime: Math.round(r.startTime),
endTime: Math.round(r.responseEnd),
timeOrigin: IF(t),
requestHeaders: f.requestHeaders,
requestBody: f.requestBody,
responseHeaders: f.responseHeaders,
responseBody: f.responseBody
}] });
else RF.error("Failed to get performance entry for XHR request to " + d.url);
}).catch(function(e) {
RF.error("Error recording XHR request to " + d.url + ": " + String(e));
});
}
}), n.call(p, o, i, s, a, l);
};
});
return function() {
n();
};
}(s, t, i);
var c = function(e, t, r) {
if (!r.initiatorTypes.includes("fetch")) return function() {};
var n = PF(t, "fetch", function(n) {
return function() {
var o;
var i;
var s;
var a;
var l = new Request(arguments[0], arguments[1]);
var c = {};
var u = Promise.resolve(void 0);
var p = Promise.resolve(void 0);
try {
var d = {};
l.headers.forEach(function(e, t) {
DF("request", r.recordHeaders, t) && (d[t] = e);
}), c.requestHeaders = d, jF("request", r.recordBodyUrls, l.url) && (u = $F(l).then(function(e) {
c.requestBody = e;
})), i = t.performance.now(), a = n.apply(t, arguments).then(function(e) {
o = e, s = t.performance.now();
var n = {};
return o.headers.forEach(function(e, t) {
DF("response", r.recordHeaders, t) && (n[t] = e);
}), c.responseHeaders = n, jF("response", r.recordBodyUrls, l.url) && (p = $F(o).then(function(e) {
c.responseBody = e;
})), o;
});
} catch (e) {
a = Promise.reject(e);
}
return Promise.all([
u,
p,
a
]).then(function() {
return BF(t, "fetch", l.url, i, s);
}).then(function(r) {
if (r) e({ requests: [{
url: r.name,
method: l.method,
initiatorType: r.initiatorType,
status: o ? o.status : void 0,
startTime: Math.round(r.startTime),
endTime: Math.round(r.responseEnd),
timeOrigin: IF(t),
requestHeaders: c.requestHeaders,
requestBody: c.requestBody,
responseHeaders: c.responseHeaders,
responseBody: c.responseBody
}] });
else RF.error("Failed to get performance entry for fetch request to " + l.url);
}).catch(function(e) {
RF.error("Error recording fetch request to " + l.url + ": " + String(e));
}), a;
};
});
return function() {
n();
};
}(s, t, i);
return function() {
a(), l(), c();
};
}
var VF = VD("recorder");
var UF = C_.CompressionStream;
var qF = {
batch_size: 1e3,
batch_flush_interval_ms: 1e4,
batch_request_timeout_ms: 9e4,
batch_autostart: !0
};
var WF = /* @__PURE__ */ new Set([
ZI.MouseMove,
ZI.MouseInteraction,
ZI.Scroll,
ZI.ViewportResize,
ZI.Input,
ZI.TouchMove,
ZI.MediaInteraction,
ZI.Drag,
ZI.Selection
]);
var HF = function(e) {
this._mixpanel = e.mixpanelInstance, this._onIdleTimeout = e.onIdleTimeout || aj, this._onMaxLengthReached = e.onMaxLengthReached || aj, this._onBatchSent = e.onBatchSent || aj, this._rrwebRecord = e.rrwebRecord || null, this._stopRecording = null, this.replayId = e.replayId, this.batchStartUrl = e.batchStartUrl || null, this.replayStartUrl = e.replayStartUrl || null, this.idleExpires = e.idleExpires || null, this.maxExpires = e.maxExpires || null, this.replayStartTime = e.replayStartTime || null, this.lastEventTimestamp = e.lastEventTimestamp || null, this.seqNo = e.seqNo || 0, this.idleTimeoutId = null, this.maxTimeoutId = null, this.recordMaxMs = wD, this.recordMinMs = 0;
var t = KD(e.sharedLockStorage, !0) && !this.getConfig("disable_persistence");
this.batcherKey = "__mprec_" + this.getConfig("name") + "_" + this.getConfig("token") + "_" + this.replayId, this.queueStorage = new hj(pj), this.batcher = new Dj(this.batcherKey, {
errorReporter: this.reportError.bind(this),
flushOnlyOnInterval: !0,
libConfig: qF,
sendRequestFunc: this.flushEventsWithOptOut.bind(this),
queueStorage: this.queueStorage,
sharedLockStorage: e.sharedLockStorage,
usePersistence: t,
stopAllBatchingFunc: this.stopRecording.bind(this),
enqueueThrottleMs: 250,
sharedLockTimeoutMS: 1e4
});
};
HF.prototype.getUserIdInfo = function() {
if (this.finalFlushUserIdInfo) return this.finalFlushUserIdInfo;
var e = { distinct_id: String(this._mixpanel.get_distinct_id()) };
var t = this._mixpanel.get_property("$device_id");
t && (e.$device_id = t);
var r = this._mixpanel.get_property("$user_id");
return r && (e.$user_id = r), e;
}, HF.prototype.unloadPersistedData = function() {
return this.batcher.stop(), this.queueStorage.init().catch(function() {
this.reportError("Error initializing IndexedDB storage for unloading persisted data.");
}.bind(this)).then(function() {
return this.getDurationMs() < this._getRecordMinMs() ? this.queueStorage.removeItem(this.batcherKey) : this.batcher.flush().then(function() {
return this.queueStorage.removeItem(this.batcherKey);
}.bind(this));
}.bind(this));
}, HF.prototype.getConfig = function(e) {
return this._mixpanel.get_config(e);
}, HF.prototype.get_config = function(e) {
return this.getConfig(e);
}, HF.prototype.startRecording = function(e) {
if (null !== this._rrwebRecord) if (null === this._stopRecording) {
this.recordMaxMs = this.getConfig("record_max_ms"), this.recordMaxMs > wD && (this.recordMaxMs = wD, VF.critical("record_max_ms cannot be greater than " + wD + "ms. Capping value.")), this.maxExpires || (this.maxExpires = (/* @__PURE__ */ new Date()).getTime() + this.recordMaxMs), this.recordMinMs = this._getRecordMinMs(), this.replayStartTime || (this.replayStartTime = (/* @__PURE__ */ new Date()).getTime(), this.batchStartUrl = $D.info.currentUrl(), this.replayStartUrl = $D.info.currentUrl()), e || this.recordMinMs > 0 ? this.batcher.stop() : this.batcher.start();
var t = function() {
clearTimeout(this.idleTimeoutId);
var e = this.getConfig("record_idle_timeout_ms");
this.idleTimeoutId = setTimeout(this._onIdleTimeout, e), this.idleExpires = (/* @__PURE__ */ new Date()).getTime() + e;
}.bind(this);
t();
var r = this.getConfig("record_block_selector");
"" !== r && null !== r || (r = void 0);
var n = function(e) {
var t = {
input: {
maskingSelector: "",
unmaskingSelector: "",
maskAll: !0
},
text: {
maskingSelector: "",
unmaskingSelector: "",
maskAll: !0
}
};
var r = e.get_config("record_mask_input_selector");
var n = e.get_config("record_unmask_input_selector");
var o = e.get_config("record_mask_all_inputs");
t.input.maskingSelector = CF(r).join(","), t.input.unmaskingSelector = CF(n).join(","), void 0 !== o && (t.input.maskAll = o);
var i = e.get_config("record_mask_text_selector");
var s = e.get_config("record_unmask_text_selector");
var a = e.get_config("record_mask_all_text");
var l = e.get_config("record_mask_text_class");
var c = CF(i);
if (l) if (l instanceof RegExp) t.text._legacyClassRegex = l;
else {
var u = "." + l;
-1 === c.indexOf(u) && c.push(u);
}
return t.text.maskingSelector = c.join(","), t.text.unmaskingSelector = CF(s).join(","), void 0 === a && void 0 !== i ? t.text.maskAll = !1 : void 0 !== a && (t.text.maskAll = a), t;
}(this._mixpanel);
var o = [];
if (this.getConfig("record_network")) {
var i = this.getConfig("record_network_options") || {};
var s = (i.ignoreRequestUrls || []).slice();
s.push(this._getApiRoute()), i.ignoreRequestUrls = s, o.push(function(e) {
return {
name: "rrweb/network@1.mp",
observer: zF,
options: e
};
}(i));
}
this.getConfig("record_console") && o.push({
name: "rrweb/console@1",
observer: tD,
options: { stringifyOptions: {
stringLengthLimit: 1e3,
numOfKeysLimit: 50,
depthOfLimit: 2
} }
});
var a = Fj(this.getConfig("record_allowed_iframe_origins"), VF);
try {
this._stopRecording = this._rrwebRecord({
emit: function(e) {
this.idleExpires && this.idleExpires < e.timestamp ? this._onIdleTimeout() : (function(e) {
return e.type === YI.IncrementalSnapshot && WF.has(e.data.source);
}(e) && (this.batcher.stopped && (/* @__PURE__ */ new Date()).getTime() - this.replayStartTime >= this.recordMinMs && this.batcher.start(), t()), this.__enqueuePromise = this.batcher.enqueue(e), (null === this.lastEventTimestamp || e.timestamp > this.lastEventTimestamp) && (this.lastEventTimestamp = e.timestamp));
}.bind(this),
blockClass: this.getConfig("record_block_class"),
blockSelector: r,
collectFonts: this.getConfig("record_collect_fonts"),
dataURLOptions: {
type: "image/webp",
quality: .6
},
maskAllInputs: !0,
maskTextSelector: "*",
maskInputFn: this._getMaskFn(EF, n),
maskTextFn: this._getMaskFn(TF, n),
recordCrossOriginIframes: a.length > 0,
allowedIframeOrigins: a,
recordCanvas: this.getConfig("record_canvas"),
sampling: { canvas: 15 },
plugins: o
});
} catch (e) {
this.reportError("Unexpected error when starting rrweb recording.", e);
}
if ("function" != typeof this._stopRecording) return this.reportError("rrweb failed to start, skipping this recording."), this._stopRecording = null, void this.stopRecording();
var l = this.maxExpires - (/* @__PURE__ */ new Date()).getTime();
this.maxTimeoutId = setTimeout(this._onMaxLengthReached.bind(this), l);
} else VF.log("Recording already in progress, skipping startRecording.");
else this.reportError("rrweb record function not provided. ");
}, HF.prototype.stopRecording = function(e) {
if (this.finalFlushUserIdInfo = this.getUserIdInfo(), !this.isRrwebStopped()) {
try {
this._stopRecording();
} catch (e) {
this.reportError("Error with rrweb stopRecording", e);
}
this._stopRecording = null;
}
var t;
return this.batcher.stopped ? t = this.batcher.clear() : e || (t = this.batcher.flush()), this.batcher.stop(), clearTimeout(this.idleTimeoutId), clearTimeout(this.maxTimeoutId), t;
}, HF.prototype.isRrwebStopped = function() {
return null === this._stopRecording;
}, HF.prototype.flushEventsWithOptOut = function(e, t, r) {
var n = function(e) {
0 === e && (this.stopRecording(), r({ error: "Tracking has been opted out, stopping recording." }));
}.bind(this);
this._flushEvents(e, t, r, n);
}, HF.prototype.serialize = function() {
var e;
try {
e = this._mixpanel.get_tab_id();
} catch (t) {
this.reportError("Error getting tab ID for serialization ", t), e = null;
}
return {
replayId: this.replayId,
seqNo: this.seqNo,
replayStartTime: this.replayStartTime,
batchStartUrl: this.batchStartUrl,
replayStartUrl: this.replayStartUrl,
lastEventTimestamp: this.lastEventTimestamp,
idleExpires: this.idleExpires,
maxExpires: this.maxExpires,
tabId: e
};
}, HF.deserialize = function(e, t) {
return new HF($D.extend({}, t, {
replayId: e.replayId,
batchStartUrl: e.batchStartUrl,
replayStartUrl: e.replayStartUrl,
idleExpires: e.idleExpires,
maxExpires: e.maxExpires,
replayStartTime: e.replayStartTime,
lastEventTimestamp: e.lastEventTimestamp,
seqNo: e.seqNo,
sharedLockStorage: t.sharedLockStorage
}));
}, HF.prototype._getApiRoute = function() {
return this.getConfig("api_routes").record;
}, HF.prototype._sendRequest = function(e, t, r, n) {
var o = function(t, r) {
200 === t.status && this.replayId === e && (this.seqNo++, this.batchStartUrl = $D.info.currentUrl()), this._onBatchSent(), n({
status: 0,
httpStatusCode: t.status,
responseBody: r,
retryAfter: t.headers.get("Retry-After")
});
}.bind(this);
var i = this._mixpanel.get_api_host && this._mixpanel.get_api_host("record") || this.getConfig("api_host");
C_.fetch(i + "/" + this._getApiRoute() + "?" + new URLSearchParams(t), {
method: "POST",
headers: {
Authorization: "Basic " + btoa(this.getConfig("token") + ":"),
"Content-Type": "application/octet-stream"
},
body: r
}).then(function(e) {
e.json().then(function(t) {
o(e, t);
}).catch(function(e) {
n({ error: e });
});
}).catch(function(e) {
n({
error: e,
httpStatusCode: 0
});
});
}, HF.prototype._flushEvents = bj(function(e, t, r) {
var n = e.length;
if (n > 0) {
for (var o = this.replayId, i = Infinity, s = -Infinity, a = !1, l = 0; l < n; l++) i = Math.min(i, e[l].timestamp), s = Math.max(s, e[l].timestamp), e[l].type === YI.FullSnapshot && (a = !0);
if (0 === this.seqNo) {
if (!a) return r({ error: "First batch does not contain a full snapshot. Aborting recording." }), void this.stopRecording(!0);
this.replayStartTime = i;
} else this.replayStartTime || (this.reportError("Replay start time not set but seqNo is not 0. Using current batch start time as a fallback."), this.replayStartTime = i);
var c = s - this.replayStartTime;
var u = {
$current_url: this.batchStartUrl,
$lib_version: E_.LIB_VERSION,
batch_start_time: i / 1e3,
mp_lib: "web",
replay_id: o,
replay_length_ms: c,
replay_start_time: this.replayStartTime / 1e3,
replay_start_url: this.replayStartUrl,
seq: this.seqNo
};
var p = JSON.stringify(e);
if (Object.assign(u, this.getUserIdInfo()), function(e, t, r) {
if (!C_.CompressionStream) return !1;
var n = $D.info.browser(e, t, r);
var o = $D.info.browserVersion(e, t, r);
return !(("Safari" === n || "Mobile Safari" === n) && o >= 16.4 && o < 16.6);
}(AD, TD.vendor, ID)) {
var d = new Blob([p], { type: "application/json" }).stream().pipeThrough(new UF("gzip"));
new Response(d).blob().then(function(e) {
u.format = "gzip", this._sendRequest(o, u, e, r);
}.bind(this));
} else u.format = "body", this._sendRequest(o, u, p, r);
}
}), HF.prototype.reportError = function(e, t) {
VF.error.apply(VF.error, arguments);
try {
t || e instanceof Error || (e = new Error(e)), this.getConfig("error_reporter")(e, t);
} catch (t) {
VF.error(t);
}
}, HF.prototype.getDurationMs = function() {
return null === this.replayStartTime ? 0 : null === this.lastEventTimestamp ? (/* @__PURE__ */ new Date()).getTime() - this.replayStartTime : this.lastEventTimestamp - this.replayStartTime;
}, HF.prototype._getRecordMinMs = function() {
var e = this.getConfig("record_min_ms");
return e > 8e3 ? (VF.critical("record_min_ms cannot be greater than 8000ms. Capping value."), 8e3) : e;
}, HF.prototype._getMaskFn = function(e, t) {
return function(r, n) {
if (!r.trim().length) return "";
var o = !0;
try {
o = e(n, t);
} catch (e) {
this.reportError("Error checking if text should be masked, defaulting to masked", e);
}
if (o) {
var i = Math.min(r.length, 1e4);
return "*".repeat(i);
}
return r;
}.bind(this);
};
var GF = function(e) {
this.idb = new hj(dj), this.errorReporter = e.errorReporter, this.mixpanelInstance = e.mixpanelInstance, this.sharedLockStorage = e.sharedLockStorage;
};
GF.prototype.isPersistenceEnabled = function() {
return !this.mixpanelInstance.get_config("disable_persistence");
}, GF.prototype.handleError = function(e) {
this.errorReporter("IndexedDB error: ", e);
}, GF.prototype.setActiveRecording = function(e) {
if (!this.isPersistenceEnabled()) return yD.resolve();
var t = e.tabId;
return t ? this.idb.init().then(function() {
return this.idb.setItem(t, e);
}.bind(this)).catch(this.handleError.bind(this)) : (console.warn("No tab ID is set, cannot persist recording metadata."), yD.resolve());
}, GF.prototype.getActiveRecording = function() {
return this.isPersistenceEnabled() ? this.idb.init().then(function() {
return this.idb.getItem(this.mixpanelInstance.get_tab_id());
}.bind(this)).then(function(e) {
return jj(e) ? null : e;
}.bind(this)).catch(this.handleError.bind(this)) : yD.resolve(null);
}, GF.prototype.clearActiveRecording = function() {
return this.isPersistenceEnabled() ? this.markActiveRecordingExpired() : this.deleteActiveRecording();
}, GF.prototype.markActiveRecordingExpired = function() {
return this.getActiveRecording().then(function(e) {
if (e) return e.maxExpires = 0, this.setActiveRecording(e);
}.bind(this)).catch(this.handleError.bind(this));
}, GF.prototype.deleteActiveRecording = function() {
return this.idb.isInitialized() ? this.idb.removeItem(this.mixpanelInstance.get_tab_id()).catch(this.handleError.bind(this)) : yD.resolve();
}, GF.prototype.flushInactiveRecordings = function() {
return this.isPersistenceEnabled() ? this.idb.init().then(function() {
return this.idb.getAll();
}.bind(this)).then(function(e) {
var t = e.filter(function(e) {
return jj(e);
}).map(function(e) {
return HF.deserialize(e, {
mixpanelInstance: this.mixpanelInstance,
sharedLockStorage: this.sharedLockStorage
}).unloadPersistedData().then(function() {
return this.idb.removeItem(e.tabId);
}.bind(this)).catch(this.handleError.bind(this));
}.bind(this));
return yD.all(t);
}.bind(this)).catch(this.handleError.bind(this)) : yD.resolve([]);
};
var KF = VD("recorder");
var YF = function(e, t, r) {
this.mixpanelInstance = e, this.rrwebRecord = t || QM, this.sharedLockStorage = r, this.recordingRegistry = new GF({
mixpanelInstance: this.mixpanelInstance,
errorReporter: KF.error,
sharedLockStorage: r
}), this._flushInactivePromise = this.recordingRegistry.flushInactiveRecordings(), this.activeRecording = null, this.stopRecordingInProgress = !1;
};
function ZF(e) {
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
}
YF.prototype.startRecording = function(e) {
if (e = e || {}, !this.activeRecording || this.activeRecording.isRrwebStopped()) {
var t = function() {
KF.log("Idle timeout reached, restarting recording."), this.resetRecording();
}.bind(this);
var r = function() {
KF.log("Max recording length reached, stopping recording."), this.resetRecording();
}.bind(this);
var n = function() {
this.recordingRegistry.setActiveRecording(this.activeRecording.serialize()), this.__flushPromise = this.activeRecording.batcher._flushPromise;
}.bind(this);
var o = {
mixpanelInstance: this.mixpanelInstance,
onBatchSent: n,
onIdleTimeout: t,
onMaxLengthReached: r,
replayId: $D.UUID(),
rrwebRecord: this.rrwebRecord,
sharedLockStorage: this.sharedLockStorage
};
return e.activeSerializedRecording ? this.activeRecording = HF.deserialize(e.activeSerializedRecording, o) : this.activeRecording = new HF(o), this.activeRecording.startRecording(e.shouldStopBatcher), this.recordingRegistry.setActiveRecording(this.activeRecording.serialize());
}
KF.log("Recording already in progress, skipping startRecording.");
}, YF.prototype.stopRecording = function() {
return this.stopRecordingInProgress = !0, this._stopCurrentRecording(!1, !0).then(function() {
return this.recordingRegistry.clearActiveRecording();
}.bind(this)).then(function() {
this.stopRecordingInProgress = !1;
}.bind(this));
}, YF.prototype.pauseRecording = function() {
return this._stopCurrentRecording(!1);
}, YF.prototype._stopCurrentRecording = function(e, t) {
if (this.activeRecording) {
var r = this.activeRecording.stopRecording(e);
return t && (this.activeRecording = null), r;
}
return yD.resolve();
}, YF.prototype.resumeRecording = function(e) {
return this.activeRecording && this.activeRecording.isRrwebStopped() ? (this.activeRecording.startRecording(!1), yD.resolve(null)) : this.recordingRegistry.getActiveRecording().then(function(t) {
return t && !this.stopRecordingInProgress ? this.startRecording({ activeSerializedRecording: t }) : e ? this.startRecording({ shouldStopBatcher: !1 }) : (KF.log("No resumable recording found."), null);
}.bind(this));
}, YF.prototype.resetRecording = function() {
this.stopRecording(), this.startRecording({ shouldStopBatcher: !0 });
}, YF.prototype.isRecording = function() {
return this.activeRecording && !this.activeRecording.isRrwebStopped();
}, YF.prototype.getActiveReplayId = function() {
return this.isRecording() ? this.activeRecording.replayId : null;
}, Object.defineProperty(YF.prototype, "replayId", { get: function() {
return this.getActiveReplayId();
} }), C_[R_] = YF;
var XF;
var JF = { exports: {} };
var e$ = ZF((XF || (XF = 1, JF.exports = function() {
Array.isArray || (Array.isArray = function(e) {
return "[object Array]" === Object.prototype.toString.call(e);
});
var e = {};
var t = {
"==": function(e, t) {
return e == t;
},
"===": function(e, t) {
return e === t;
},
"!=": function(e, t) {
return e != t;
},
"!==": function(e, t) {
return e !== t;
},
">": function(e, t) {
return e > t;
},
">=": function(e, t) {
return e >= t;
},
"<": function(e, t, r) {
return void 0 === r ? e < t : e < t && t < r;
},
"<=": function(e, t, r) {
return void 0 === r ? e <= t : e <= t && t <= r;
},
"!!": function(t) {
return e.truthy(t);
},
"!": function(t) {
return !e.truthy(t);
},
"%": function(e, t) {
return e % t;
},
log: function(e) {
return console.log(e), e;
},
in: function(e, t) {
return !(!t || void 0 === t.indexOf) && -1 !== t.indexOf(e);
},
cat: function() {
return Array.prototype.join.call(arguments, "");
},
substr: function(e, t, r) {
if (r < 0) {
var n = String(e).substr(t);
return n.substr(0, n.length + r);
}
return String(e).substr(t, r);
},
"+": function() {
return Array.prototype.reduce.call(arguments, function(e, t) {
return parseFloat(e, 10) + parseFloat(t, 10);
}, 0);
},
"*": function() {
return Array.prototype.reduce.call(arguments, function(e, t) {
return parseFloat(e, 10) * parseFloat(t, 10);
});
},
"-": function(e, t) {
return void 0 === t ? -e : e - t;
},
"/": function(e, t) {
return e / t;
},
min: function() {
return Math.min.apply(this, arguments);
},
max: function() {
return Math.max.apply(this, arguments);
},
merge: function() {
return Array.prototype.reduce.call(arguments, function(e, t) {
return e.concat(t);
}, []);
},
var: function(e, t) {
var r = void 0 === t ? null : t;
var n = this;
if (void 0 === e || "" === e || null === e) return n;
for (var o = String(e).split("."), i = 0; i < o.length; i++) {
if (null == n) return r;
if (void 0 === (n = n[o[i]])) return r;
}
return n;
},
missing: function() {
for (var t = [], r = Array.isArray(arguments[0]) ? arguments[0] : arguments, n = 0; n < r.length; n++) {
var o = r[n];
var i = e.apply({ var: o }, this);
null !== i && "" !== i || t.push(o);
}
return t;
},
missing_some: function(t, r) {
var n = e.apply({ missing: r }, this);
return r.length - n.length >= t ? [] : n;
}
};
return e.is_logic = function(e) {
return "object" == typeof e && null !== e && !Array.isArray(e) && 1 === Object.keys(e).length;
}, e.truthy = function(e) {
return !(Array.isArray(e) && 0 === e.length || !e);
}, e.get_operator = function(e) {
return Object.keys(e)[0];
}, e.get_values = function(t) {
return t[e.get_operator(t)];
}, e.apply = function(r, n) {
if (Array.isArray(r)) return r.map(function(t) {
return e.apply(t, n);
});
if (!e.is_logic(r)) return r;
var o;
var i;
var s;
var a;
var l;
var c = e.get_operator(r);
var u = r[c];
if (Array.isArray(u) || (u = [u]), "if" === c || "?:" == c) {
for (o = 0; o < u.length - 1; o += 2) if (e.truthy(e.apply(u[o], n))) return e.apply(u[o + 1], n);
return u.length === o + 1 ? e.apply(u[o], n) : null;
}
if ("and" === c) {
for (o = 0; o < u.length; o += 1) if (i = e.apply(u[o], n), !e.truthy(i)) return i;
return i;
}
if ("or" === c) {
for (o = 0; o < u.length; o += 1) if (i = e.apply(u[o], n), e.truthy(i)) return i;
return i;
}
if ("filter" === c) return a = e.apply(u[0], n), s = u[1], Array.isArray(a) ? a.filter(function(t) {
return e.truthy(e.apply(s, t));
}) : [];
if ("map" === c) return a = e.apply(u[0], n), s = u[1], Array.isArray(a) ? a.map(function(t) {
return e.apply(s, t);
}) : [];
if ("reduce" === c) return a = e.apply(u[0], n), s = u[1], l = void 0 !== u[2] ? e.apply(u[2], n) : null, Array.isArray(a) ? a.reduce(function(t, r) {
return e.apply(s, {
current: r,
accumulator: t
});
}, l) : l;
if ("all" === c) {
if (a = e.apply(u[0], n), s = u[1], !Array.isArray(a) || !a.length) return !1;
for (o = 0; o < a.length; o += 1) if (!e.truthy(e.apply(s, a[o]))) return !1;
return !0;
}
if ("none" === c) {
if (a = e.apply(u[0], n), s = u[1], !Array.isArray(a) || !a.length) return !0;
for (o = 0; o < a.length; o += 1) if (e.truthy(e.apply(s, a[o]))) return !1;
return !0;
}
if ("some" === c) {
if (a = e.apply(u[0], n), s = u[1], !Array.isArray(a) || !a.length) return !1;
for (o = 0; o < a.length; o += 1) if (e.truthy(e.apply(s, a[o]))) return !0;
return !1;
}
if (u = u.map(function(t) {
return e.apply(t, n);
}), t.hasOwnProperty(c) && "function" == typeof t[c]) return t[c].apply(n, u);
if (c.indexOf(".") > 0) {
var p = String(c).split(".");
var d = t;
for (o = 0; o < p.length; o++) {
if (!d.hasOwnProperty(p[o])) throw new Error("Unrecognized operation " + c + " (failed at " + p.slice(0, o + 1).join(".") + ")");
d = d[p[o]];
}
return d.apply(n, u);
}
throw new Error("Unrecognized operation " + c);
}, e.uses_data = function(t) {
var r = [];
if (e.is_logic(t)) {
var n = e.get_operator(t);
var o = t[n];
Array.isArray(o) || (o = [o]), "var" === n ? r.push(o[0]) : o.forEach(function(t) {
r.push.apply(r, e.uses_data(t));
});
}
return function(e) {
for (var t = [], r = 0, n = e.length; r < n; r++) -1 === t.indexOf(e[r]) && t.push(e[r]);
return t;
}(r);
}, e.add_operation = function(e, r) {
t[e] = r;
}, e.rm_operation = function(e) {
delete t[e];
}, e.rule_like = function(t, r) {
if (r === t) return !0;
if ("@" === r) return !0;
if ("number" === r) return "number" == typeof t;
if ("string" === r) return "string" == typeof t;
if ("array" === r) return Array.isArray(t) && !e.is_logic(t);
if (e.is_logic(r)) {
if (e.is_logic(t)) {
var n = e.get_operator(r);
var o = e.get_operator(t);
if ("@" === n || n === o) return e.rule_like(e.get_values(t, !1), e.get_values(r, !1));
}
return !1;
}
if (Array.isArray(r)) {
if (Array.isArray(t)) {
if (r.length !== t.length) return !1;
for (var i = 0; i < r.length; i += 1) if (!e.rule_like(t[i], r[i])) return !1;
return !0;
}
return !1;
}
return !1;
}, e;
}()), JF.exports));
var t$ = { eventMatchesCriteria: function(e, t, r) {
if (e !== r.event_name) return { matches: !1 };
var n = r.property_filters;
var o = !0;
if (n && !$D.isEmptyObject(n)) try {
o = e$.apply(n, t || {});
} catch (e) {
return {
matches: !1,
error: e.toString()
};
}
return { matches: o };
} };
function r$() {
this.clicks = [];
}
function n$(e, t) {
this.changeCallback = e || function() {}, this.observerConfig = t, this.observedShadowRoots = null, this.shadowObservers = [];
}
C_[T_] = Promise.resolve(t$), r$.prototype.isRageClick = function(e, t) {
var r = (t = t || {}).threshold_px || 30;
var n = t.timeout_ms || 1e3;
var o = t.click_count || 4;
if (t.interactive_elements_only) {
var i = xF(e);
if (!i || wF(i)) return !1;
}
var s = Date.now();
var a = e.pageX;
var l = e.pageY;
var c = this.clicks[this.clicks.length - 1];
if (c && s - c.timestamp < n && Math.sqrt(Math.pow(a - c.x, 2) + Math.pow(l - c.y, 2)) < r) {
if (this.clicks.push({
x: a,
y: l,
timestamp: s
}), this.clicks.length >= o) return this.clicks = [], !0;
} else this.clicks = [{
x: a,
y: l,
timestamp: s
}];
return !1;
}, n$.prototype.getEventTarget = function(e) {
if (this.observedShadowRoots) return xF(e);
}, n$.prototype.observeFromEvent = function(e) {
if (this.observedShadowRoots) for (var t = _F(e), r = 0; r < t.length; r++) {
var n = t[r];
n && n.shadowRoot && this.observeShadowRoot(n.shadowRoot);
}
}, n$.prototype.observeShadowRoot = function(e) {
if (this.observedShadowRoots && !this.observedShadowRoots.has(e)) {
var t = this;
try {
this.observedShadowRoots.add(e);
var r = new window.MutationObserver(function() {
t.changeCallback();
});
r.observe(e, this.observerConfig), this.shadowObservers.push(r);
} catch (e) {
oF.critical("Error while observing shadow root", e);
}
}
}, n$.prototype.start = function() {
this.observedShadowRoots || ("undefined" != typeof WeakSet ? this.observedShadowRoots = /* @__PURE__ */ new WeakSet() : oF.critical("Shadow DOM observation unavailable: WeakSet not supported"));
}, n$.prototype.stop = function() {
if (this.observedShadowRoots) {
for (var e = 0; e < this.shadowObservers.length; e++) try {
this.shadowObservers[e].disconnect();
} catch (e) {
oF.critical("Error while disconnecting shadow DOM observer", e);
}
this.shadowObservers = [], this.observedShadowRoots = null;
}
};
var o$ = [
$j,
"input",
Gj,
"select",
"toggle"
];
var i$ = [Wj];
var s$ = [zj];
var a$ = {
characterData: !0,
childList: !0,
subtree: !0,
attributes: !0,
attributeFilter: [
"style",
"class",
"hidden",
"checked",
"selected",
"value",
"display",
"visibility"
]
};
function l$(e) {
this.eventListeners = [], this.mutationObserver = null, this.shadowDOMObserver = null, this.isTracking = !1, this.lastChangeEventTimestamp = 0, this.pendingClicks = [], this.onDeadClickCallback = e, this.processingActive = !1, this.processingTimeout = null;
}
l$.prototype.addClick = function(e) {
var t = this.shadowDOMObserver && this.shadowDOMObserver.getEventTarget(e);
return t || (t = e.target || e.srcElement), !(!t || wF(t) || (this.shadowDOMObserver && this.shadowDOMObserver.observeFromEvent(e), this.pendingClicks.push({
element: t,
event: e,
timestamp: Date.now()
}), 0));
}, l$.prototype.trackClick = function(e, t) {
if (!this.isTracking) return !1;
var r = this.addClick(e);
return r && this.triggerProcessing(t), r;
}, l$.prototype.getDeadClicks = function(e) {
if (0 === this.pendingClicks.length) return [];
var t = e.timeout_ms;
var r = Date.now();
var n = this.pendingClicks.slice();
this.pendingClicks = [];
for (var o = [], i = 0; i < n.length; i++) {
var s = n[i];
r - s.timestamp >= t ? this.hasChangesAfter(s.timestamp) || o.push(s) : this.pendingClicks.push(s);
}
return o;
}, l$.prototype.hasChangesAfter = function(e) {
return this.lastChangeEventTimestamp >= e - 100;
}, l$.prototype.recordChangeEvent = function() {
this.lastChangeEventTimestamp = Date.now();
}, l$.prototype.triggerProcessing = function(e) {
this.processingActive || (this.processingActive = !0, this.processRecursively(e));
}, l$.prototype.processRecursively = function(e) {
if (this.isTracking && this.onDeadClickCallback) {
var t = e.timeout_ms;
var r = this;
this.processingTimeout = setTimeout(function() {
if (r.processingActive) {
for (var t = r.getDeadClicks(e), n = 0; n < t.length; n++) r.onDeadClickCallback(t[n].event);
r.pendingClicks.length > 0 ? r.processRecursively(e) : r.processingActive = !1;
}
}, t);
} else this.processingActive = !1;
}, l$.prototype.startTracking = function() {
if (!this.isTracking) {
this.isTracking = !0;
var e = this;
o$.forEach(function(t) {
var r = function() {
e.recordChangeEvent();
};
document.addEventListener(t, r, {
capture: !0,
passive: !0
}), e.eventListeners.push({
target: document,
event: t,
handler: r,
options: {
capture: !0,
passive: !0
}
});
}), s$.forEach(function(t) {
var r = function() {
e.recordChangeEvent();
};
window.addEventListener(t, r), e.eventListeners.push({
target: window,
event: t,
handler: r
});
}), i$.forEach(function(t) {
var r = function() {
e.recordChangeEvent();
};
window.addEventListener(t, r, { passive: !0 }), e.eventListeners.push({
target: window,
event: t,
handler: r,
options: { passive: !0 }
});
});
var t = function() {
e.recordChangeEvent();
};
if (document.addEventListener("selectionchange", t), e.eventListeners.push({
target: document,
event: "selectionchange",
handler: t
}), window.MutationObserver) try {
this.mutationObserver = new window.MutationObserver(function() {
e.recordChangeEvent();
}), this.mutationObserver.observe(document.body || document.documentElement, a$);
} catch (e) {
oF.critical("Error while setting up mutation observer", e);
}
if (window.customElements) try {
this.shadowDOMObserver = new n$(function() {
e.recordChangeEvent();
}, a$), this.shadowDOMObserver.start();
} catch (e) {
oF.critical("Error while setting up shadow DOM observer", e), this.shadowDOMObserver = null;
}
}
}, l$.prototype.stopTracking = function() {
if (this.isTracking) {
this.isTracking = !1, this.pendingClicks = [], this.lastChangeEventTimestamp = 0, this.processingActive = !1, this.processingTimeout && (clearTimeout(this.processingTimeout), this.processingTimeout = null);
for (var e = 0; e < this.eventListeners.length; e++) {
var t = this.eventListeners[e];
try {
t.target.removeEventListener(t.event, t.handler, t.options);
} catch (e) {
oF.critical("Error while removing event listener", e);
}
}
if (this.eventListeners = [], this.mutationObserver) {
try {
this.mutationObserver.disconnect();
} catch (e) {
oF.critical("Error while disconnecting mutation observer", e);
}
this.mutationObserver = null;
}
if (this.shadowDOMObserver) {
try {
this.shadowDOMObserver.stop();
} catch (e) {
oF.critical("Error while stopping shadow DOM observer", e);
}
this.shadowDOMObserver = null;
}
}
};
var c$ = "autocapture";
var u$ = "full-url";
var p$ = "allow_selectors";
var d$ = "allow_url_regexes";
var f$ = "block_attrs";
var h$ = "block_element_callback";
var m$ = "block_selectors";
var g$ = "block_url_regexes";
var v$ = "capture_extra_attrs";
var y$ = "capture_text_content";
var b$ = "scroll_capture_all";
var w$ = "scroll_depth_percent_checkpoints";
var _$ = "click";
var x$ = "dead_click";
var S$ = "input";
var k$ = "pageview";
var C$ = "rage_click";
var O$ = "scroll";
var E$ = "page_leave";
var T$ = "submit";
var R$ = {};
R$[p$] = [], R$[d$] = [], R$[f$] = [], R$[h$] = null, R$[m$] = [], R$[g$] = [], R$[v$] = [], R$[y$] = !1, R$[b$] = !1, R$[w$] = [
25,
50,
75,
100
], R$[_$] = !0, R$[x$] = !0, R$[S$] = !0, R$[k$] = u$, R$[C$] = !0, R$[O$] = !0, R$[E$] = !1, R$[T$] = !0;
var I$ = { $mp_autocapture: !0 };
var M$ = "$mp_click";
var A$ = "$mp_dead_click";
var P$ = "$mp_rage_click";
var N$ = function(e) {
this.mp = e, this.maxScrollViewDepth = 0, this.hasTrackedScrollSession = !1, this.previousScrollHeight = 0;
};
N$.prototype.init = function() {
!function() {
try {
return !!RD.createElement("div").matches;
} catch (e) {
return !1;
}
}() ? oF.critical("Autocapture unavailable: missing required DOM APIs") : (this.initPageListeners(), this.initPageviewTracking(), this.initClickTracking(), this.initDeadClickTracking(), this.initInputTracking(), this.initScrollTracking(), this.initSubmitTracking(), this.initRageClickTracking(), this.initPageLeaveTracking());
}, N$.prototype.getFullConfig = function() {
var e = this.mp.get_config(c$);
return e ? $D.isObject(e) ? $D.extend({}, R$, e) : R$ : {};
}, N$.prototype.getConfig = function(e) {
return this.getFullConfig()[e];
}, N$.prototype.currentUrlBlocked = function() {
var e = $D.info.currentUrl();
var t = this.getConfig(d$) || [];
if (t.length) try {
return !lj(e, t);
} catch (e) {
return oF.critical("Error while checking block URL regexes: ", e), !0;
}
var r = this.getConfig(g$) || [];
if (!r || !r.length) return !1;
try {
return lj(e, r);
} catch (e) {
return oF.critical("Error while checking block URL regexes: ", e), !0;
}
}, N$.prototype.pageviewTrackingConfig = function() {
return this.mp.get_config(c$) ? this.getConfig(k$) : this.mp.get_config("track_pageview");
}, N$.prototype.trackDomEvent = function(e, t) {
if (!this.currentUrlBlocked()) {
var r = this.mp.is_recording_heatmap_data() && (t === M$ && !this.getConfig(_$) || t === P$ && !this._getClickTrackingConfig(C$) || t === A$ && !this._getClickTrackingConfig(x$));
var n = function(e, t) {
var r = t.allowElementCallback;
var n = t.allowSelectors || [];
var o = t.blockAttrs || [];
var i = t.blockElementCallback;
var s = t.blockSelectors || [];
var a = t.captureTextContent || !1;
var l = t.captureExtraAttrs || [];
var c = t.capturedForHeatMap || !1;
var u = {};
$D.each(o, function(e) {
u[e] = !0;
});
var p = null;
var d = void 0 === e.target ? e.srcElement : e.target;
if (hF(d) && (d = d.parentNode), function(e, t) {
if (!e || fF(e, "html") || !dF(e)) return !1;
switch (e.tagName.toLowerCase()) {
case "form": return t.type === Gj;
case "input": return -1 === ["button", "submit"].indexOf(e.getAttribute("type")) ? t.type === $j : t.type === Bj;
case "select":
case "textarea": return t.type === $j;
default: return t.type === Bj;
}
}(d, e) && uF(d, e, r, n) && !pF(d, e, i, s)) {
for (var f = [d], h = d; h.parentNode && !fF(h, "body");) f.push(h.parentNode), h = h.parentNode;
var m;
var g = [];
var v = !1;
if ($D.each(f, function(t) {
var o = gF(t, e, r, n);
u.href || "a" !== t.tagName.toLowerCase() || (m = t.getAttribute("href"), m = o && vF(m) && m), pF(t, e, i, s) && (v = !0), g.push(lF(t, e, u, l, r, n));
}, this), !v) {
var y = RD.documentElement;
if (p = {
$event_type: e.type,
$host: C_.location.host,
$pathname: C_.location.pathname,
$elements: g,
$el_attr__href: m,
$viewportHeight: Math.max(y.clientHeight, C_.innerHeight || 0),
$viewportWidth: Math.max(y.clientWidth, C_.innerWidth || 0),
$pageHeight: RD.body.offsetHeight || 0,
$pageWidth: RD.body.offsetWidth || 0
}, $D.each(l, function(e) {
if (!u[e] && d.hasAttribute(e)) {
var t = d.getAttribute(e);
vF(t) && (p["$el_attr__" + e] = t);
}
}), a && (b = cF(d, e, r, n)) && b.length && (p.$el_text = b), e.type === Bj && ($D.each(Yj, function(t) {
t in e && (p["$" + t] = e[t]);
}), c && (p.$captured_for_heatmap = !0), d = function(e) {
for (var t = e.target, r = e.composedPath(), n = 0; n < r.length; n++) {
var o = r[n];
if (fF(o, "a") || fF(o, "button") || fF(o, "input") || fF(o, "select") || o.getAttribute && "button" === o.getAttribute("role")) {
t = o;
break;
}
if (o === t) break;
}
return t;
}(e)), a) {
var b = cF(d, e, r, n);
b && b.length && (p.$el_text = b);
}
if (d) {
if (!uF(d, e, r, n) || pF(d, e, i, s)) return null;
var w = lF(d, e, u, l, r, n);
p.$target = w, p.$el_classes = w.$classes, $D.extend(p, $D.strip_empty_properties({
$el_id: w.$id,
$el_tag_name: w.$tag_name
}));
}
}
}
return p;
}(e, {
allowElementCallback: this.getConfig("allow_element_callback"),
allowSelectors: this.getConfig(p$),
blockAttrs: this.getConfig(f$),
blockElementCallback: this.getConfig(h$),
blockSelectors: this.getConfig(m$),
captureExtraAttrs: this.getConfig(v$),
captureTextContent: this.getConfig(y$),
capturedForHeatMap: r
});
n && ($D.extend(n, I$), this.mp.track(t, n));
}
}, N$.prototype.initPageListeners = function() {
if (C_.removeEventListener(qj, this.listenerPopstate), C_.removeEventListener(zj, this.listenerHashchange), this.pageviewTrackingConfig() || this.getConfig(E$) || this.mp.get_config("record_heatmap_data")) {
this.listenerPopstate = function() {
C_.dispatchEvent(new Event(Uj));
}, this.listenerHashchange = function() {
C_.dispatchEvent(new Event(Uj));
}, C_.addEventListener(qj, this.listenerPopstate), C_.addEventListener(zj, this.listenerHashchange);
var e = C_.history.pushState;
"function" == typeof e && (C_.history.pushState = function(t, r, n) {
e.call(C_.history, t, r, n), C_.dispatchEvent(new Event(Uj));
});
var t = C_.history.replaceState;
"function" == typeof t && (C_.history.replaceState = function(e, r, n) {
t.call(C_.history, e, r, n), C_.dispatchEvent(new Event(Uj));
});
}
}, N$.prototype._getClickTrackingConfig = function(e) {
var t = this.getConfig(e);
return t ? !0 === t ? {} : "object" == typeof t ? t : {} : null;
}, N$.prototype._trackPageLeave = function(e, t, r) {
if (!this.hasTrackedScrollSession && (this.getConfig(E$) || this.mp.is_recording_heatmap_data())) {
this.hasTrackedScrollSession = !0;
var n = Math.max(RD.documentElement.clientHeight, C_.innerHeight || 0);
var o = Math.round(Math.max(this.maxScrollViewDepth - n, 0) / (r - n) * 100);
var i = Math.round(n / r * 100);
r <= n && (o = 100, i = 100);
var s = $D.extend({
$max_scroll_view_depth: this.maxScrollViewDepth,
$max_scroll_percentage: o,
$fold_line_percentage: i,
$scroll_height: r,
$event_type: e.type,
$current_url: t || $D.info.currentUrl(),
$viewportHeight: n,
$viewportWidth: Math.max(RD.documentElement.clientWidth, C_.innerWidth || 0),
$captured_for_heatmap: this.mp.is_recording_heatmap_data()
}, I$);
this.mp.track("$mp_page_leave", s, { transport: "sendBeacon" });
}
}, N$.prototype._initScrollDepthTracking = function() {
if (C_.removeEventListener(Hj, this.listenerScrollDepth), C_.removeEventListener(Wj, this.listenerScrollDepth), this.mp.get_config("record_heatmap_data")) {
oF.log("Initializing scroll depth tracking"), this.maxScrollViewDepth = Math.max(RD.documentElement.clientHeight, C_.innerHeight || 0);
var e = yF(function() {
if (!this.currentUrlBlocked()) {
var e = Math.max(RD.documentElement.clientHeight, C_.innerHeight || 0) + C_.scrollY;
e > this.maxScrollViewDepth && (this.maxScrollViewDepth = e), this.previousScrollHeight = RD.body.scrollHeight;
}
}.bind(this));
this.listenerScrollDepth = e.listener, C_.addEventListener(e.eventType, this.listenerScrollDepth);
}
}, N$.prototype.initClickTracking = function() {
C_.removeEventListener(Bj, this.listenerClick), (this.getConfig(_$) || this.mp.get_config("record_heatmap_data")) && (oF.log("Initializing click tracking"), this.listenerClick = function(e) {
(this.getConfig(_$) || this.mp.is_recording_heatmap_data()) && this.trackDomEvent(e, M$);
}.bind(this), C_.addEventListener(Bj, this.listenerClick));
}, N$.prototype.initDeadClickTracking = function() {
this._getClickTrackingConfig(x$) || this.mp.get_config("record_heatmap_data") ? (oF.log("Initializing dead click tracking"), this._deadClickTracker || (this._deadClickTracker = new l$(function(e) {
this.trackDomEvent(e, A$);
}.bind(this)), this._deadClickTracker.startTracking()), this.listenerDeadClick || (this.listenerDeadClick = function(e) {
var t = this._getClickTrackingConfig(x$);
if ((t || this.mp.is_recording_heatmap_data()) && !this.currentUrlBlocked()) {
var r = t || {};
r.timeout_ms || (r.timeout_ms = 500), this._deadClickTracker.trackClick(e, r);
}
}.bind(this), C_.addEventListener(Bj, this.listenerDeadClick))) : this.stopDeadClickTracking();
}, N$.prototype.initInputTracking = function() {
C_.removeEventListener($j, this.listenerChange), this.getConfig(S$) && (oF.log("Initializing input tracking"), this.listenerChange = function(e) {
this.getConfig(S$) && this.trackDomEvent(e, "$mp_input_change");
}.bind(this), C_.addEventListener($j, this.listenerChange));
}, N$.prototype.initPageviewTracking = function() {
if (C_.removeEventListener(Uj, this.listenerLocationchange), this.pageviewTrackingConfig()) {
oF.log("Initializing pageview tracking");
var e = "";
var t = !1;
this.currentUrlBlocked() || (t = this.mp.track_pageview(I$)), t && (e = $D.info.currentUrl()), this.listenerLocationchange = UD(function() {
if (!this.currentUrlBlocked()) {
var t = $D.info.currentUrl();
var r = !1;
var n = t.split("#")[0].split("?")[0] !== e.split("#")[0].split("?")[0];
var o = this.pageviewTrackingConfig();
o === u$ ? r = t !== e : "url-with-path-and-query-string" === o ? r = t.split("#")[0] !== e.split("#")[0] : "url-with-path" === o && (r = n), r && (this.mp.track_pageview(I$) && (e = t), n && (this.lastScrollCheckpoint = 0, oF.log("Path change: re-initializing scroll depth checkpoints")));
}
}.bind(this)), C_.addEventListener(Uj, this.listenerLocationchange);
}
}, N$.prototype.initRageClickTracking = function() {
C_.removeEventListener(Bj, this.listenerRageClick), (this._getClickTrackingConfig(C$) || this.mp.get_config("record_heatmap_data")) && (oF.log("Initializing rage click tracking"), this._rageClickTracker || (this._rageClickTracker = new r$()), this.listenerRageClick = function(e) {
var t = this._getClickTrackingConfig(C$);
(t || this.mp.is_recording_heatmap_data()) && (this.currentUrlBlocked() || this._rageClickTracker.isRageClick(e, t) && this.trackDomEvent(e, P$));
}.bind(this), C_.addEventListener(Bj, this.listenerRageClick));
}, N$.prototype.initScrollTracking = function() {
if (C_.removeEventListener(Wj, this.listenerScroll), C_.removeEventListener(Hj, this.listenerScroll), this.getConfig(O$)) {
oF.log("Initializing scroll tracking"), this.lastScrollCheckpoint = 0;
var e = yF(function() {
if (this.getConfig(O$) && !this.currentUrlBlocked()) {
var e = this.getConfig(b$);
var t = (this.getConfig(w$) || []).slice().sort(function(e, t) {
return e - t;
});
var r = C_.scrollY;
var n = $D.extend({ $scroll_top: r }, I$);
try {
var o = RD.body.scrollHeight;
var i = Math.round(r / (o - C_.innerHeight) * 100);
if (n.$scroll_height = o, n.$scroll_percentage = i, i > this.lastScrollCheckpoint) for (var s = 0; s < t.length; s++) {
var a = t[s];
i >= a && this.lastScrollCheckpoint < a && (n.$scroll_checkpoint = a, this.lastScrollCheckpoint = a, e = !0);
}
} catch (e) {
oF.critical("Error while calculating scroll percentage", e);
}
e && this.mp.track("$mp_scroll", n);
}
}.bind(this));
this.listenerScroll = e.listener, C_.addEventListener(e.eventType, this.listenerScroll);
}
}, N$.prototype.initSubmitTracking = function() {
C_.removeEventListener(Gj, this.listenerSubmit), this.getConfig(T$) && (oF.log("Initializing submit tracking"), this.listenerSubmit = function(e) {
this.getConfig(T$) && this.trackDomEvent(e, "$mp_submit");
}.bind(this), C_.addEventListener(Gj, this.listenerSubmit));
}, N$.prototype.initPageLeaveTracking = function() {
if (RD.removeEventListener(Kj, this.listenerPageLeaveVisibilitychange), C_.removeEventListener(Uj, this.listenerPageLeaveLocationchange), C_.removeEventListener(Vj, this.listenerPageLoad), this.getConfig(E$) || this.mp.get_config("record_heatmap_data")) {
oF.log("Initializing page visibility tracking."), this._initScrollDepthTracking();
var e = $D.info.currentUrl();
this.listenerPageLoad = function() {
this.previousScrollHeight = RD.body.scrollHeight;
}.bind(this), C_.addEventListener(Vj, this.listenerPageLoad), this.listenerPageLeaveLocationchange = UD(function(t) {
if (!this.currentUrlBlocked()) {
var r = $D.info.currentUrl();
r !== e && (this._trackPageLeave(t, e, this.previousScrollHeight), e = r, this.maxScrollViewDepth = Math.max(RD.documentElement.clientHeight, C_.innerHeight || 0), this.previousScrollHeight = RD.body.scrollHeight, this.hasTrackedScrollSession = !1);
}
}.bind(this)), C_.addEventListener(Uj, this.listenerPageLeaveLocationchange), this.listenerPageLeaveVisibilitychange = function(t) {
RD.hidden && this._trackPageLeave(t, e, this.previousScrollHeight);
}.bind(this), RD.addEventListener(Kj, this.listenerPageLeaveVisibilitychange);
}
}, N$.prototype.stopDeadClickTracking = function() {
this.listenerDeadClick && (C_.removeEventListener(Bj, this.listenerDeadClick), this.listenerDeadClick = null), this._deadClickTracker && (this._deadClickTracker.stopTracking(), this._deadClickTracker = null);
}, qD(N$);
var L$ = function(e, t) {
return C_[T_] && "function" == typeof C_[T_].then || (C_[T_] = new Promise(function(r) {
e(t, r);
}).then(function() {
var e = C_[T_];
if (e && "function" == typeof e.then) return e;
throw new Error("targeting failed to load");
}).catch(function(e) {
throw delete C_[T_], e;
})), C_[T_];
};
var D$ = VD("flags");
var j$ = "flags";
var F$ = "context";
var $$ = {};
$$[F$] = {};
var B$ = function(e) {
this.fetch = C_.fetch, this.getFullApiRoute = e.getFullApiRoute, this.getMpConfig = e.getConfigFunc, this.setMpConfig = e.setConfigFunc, this.getMpProperty = e.getPropertyFunc, this.track = e.trackingFunc, this.loadExtraBundle = e.loadExtraBundle || function() {}, this.targetingSrc = e.targetingSrc || "";
};
B$.prototype.init = function() {
this.minApisSupported() ? (this.flags = null, this.fetchFlags(), this.trackedFeatures = /* @__PURE__ */ new Set(), this.pendingFirstTimeEvents = {}, this.activatedFirstTimeEvents = {}) : D$.critical("Feature Flags unavailable: missing minimum required APIs");
}, B$.prototype.getFullConfig = function() {
var e = this.getMpConfig(j$);
return e ? $D.isObject(e) ? $D.extend({}, $$, e) : $$ : {};
}, B$.prototype.getConfig = function(e) {
return this.getFullConfig()[e];
}, B$.prototype.isSystemEnabled = function() {
return !!this.getMpConfig(j$);
}, B$.prototype.updateContext = function(e, t) {
if (!this.isSystemEnabled()) return D$.critical("Feature Flags not enabled, cannot update context"), Promise.resolve();
var r = this.getMpConfig(j$);
$D.isObject(r) || (r = {});
var n = t && t.replace ? {} : this.getConfig(F$);
return r[F$] = $D.extend({}, n, e), this.setMpConfig(j$, r), this.fetchFlags();
}, B$.prototype.areFlagsReady = function() {
return this.isSystemEnabled() || D$.error("Feature Flags not enabled"), !!this.flags;
}, B$.prototype.fetchFlags = function() {
if (!this.isSystemEnabled()) return Promise.resolve();
var e = this.getMpProperty("distinct_id");
var t = this.getMpProperty("$device_id");
var r = nj();
D$.log("Fetching flags for distinct ID: " + e);
var n = $D.extend({
distinct_id: e,
device_id: t
}, this.getConfig(F$));
var o = new URLSearchParams();
o.set("context", JSON.stringify(n)), o.set("token", this.getMpConfig("token")), o.set("mp_lib", "web"), o.set("$lib_version", E_.LIB_VERSION);
var i = this.getFullApiRoute() + "?" + o.toString();
return this._fetchInProgressStartTime = Date.now(), this.fetchPromise = this.fetch.call(C_, i, {
method: "GET",
headers: {
Authorization: "Basic " + btoa(this.getMpConfig("token") + ":"),
traceparent: r
}
}).then(function(e) {
return this.markFetchComplete(), e.json().then(function(e) {
var t = e.flags;
if (!t) throw new Error("No flags in API response");
var n = /* @__PURE__ */ new Map();
var o = {};
$D.each(t, function(e, t) {
var r = !1;
var o = t + ":";
if ($D.each(this.activatedFirstTimeEvents, function(e, t) {
t.startsWith(o) && (r = !0);
}), r) {
var i = this.flags && this.flags.get(t);
i && n.set(t, i);
} else n.set(t, {
key: e.variant_key,
value: e.variant_value,
experiment_id: e.experiment_id,
is_experiment_active: e.is_experiment_active,
is_qa_tester: e.is_qa_tester
});
}, this);
var i = e.pending_first_time_events;
i && i.length > 0 && $D.each(i, function(e) {
var t = e.flag_key;
var r = function(e, t) {
return e + ":" + t;
}(t, e.first_time_event_hash);
this.activatedFirstTimeEvents[r] || (o[r] = {
flag_key: t,
flag_id: e.flag_id,
project_id: e.project_id,
first_time_event_hash: e.first_time_event_hash,
event_name: e.event_name,
property_filters: e.property_filters,
pending_variant: e.pending_variant
});
}, this), this.activatedFirstTimeEvents && $D.each(this.activatedFirstTimeEvents, function(e, t) {
var r = function(e) {
return e.split(":")[0];
}(t);
e && !n.has(r) && this.flags && this.flags.has(r) && n.set(r, this.flags.get(r));
}, this), this.flags = n, this.pendingFirstTimeEvents = o, this._traceparent = r, this._loadTargetingIfNeeded();
}.bind(this)).catch(function(e) {
this.markFetchComplete(), D$.error(e);
}.bind(this));
}.bind(this)).catch(function(e) {
this.markFetchComplete(), D$.error(e);
}.bind(this)), this.fetchPromise;
}, B$.prototype.markFetchComplete = function() {
this._fetchInProgressStartTime ? (this._fetchStartTime = this._fetchInProgressStartTime, this._fetchCompleteTime = Date.now(), this._fetchLatency = this._fetchCompleteTime - this._fetchStartTime, this._fetchInProgressStartTime = null) : D$.error("Fetch in progress started time not set, cannot mark fetch complete");
}, B$.prototype._loadTargetingIfNeeded = function() {
var e = !1;
$D.each(this.pendingFirstTimeEvents, function(t) {
t.property_filters && !$D.isEmptyObject(t.property_filters) && (e = !0);
}), e && this.getTargeting().then(function() {
D$.log("targeting loaded for property filter evaluation");
});
}, B$.prototype.getTargeting = function() {
return L$(this.loadExtraBundle.bind(this), this.targetingSrc).catch(function(e) {
D$.error("Failed to load targeting: " + e);
}.bind(this));
}, B$.prototype.checkFirstTimeEvents = function(e, t) {
this.pendingFirstTimeEvents && !$D.isEmptyObject(this.pendingFirstTimeEvents) && (C_[T_] && $D.isFunction(C_[T_].then) ? C_[T_].then(function(r) {
this._processFirstTimeEventCheck(e, t, r);
}.bind(this)).catch(function() {
this._processFirstTimeEventCheck(e, t, null);
}.bind(this)) : this._processFirstTimeEventCheck(e, t, null));
}, B$.prototype._processFirstTimeEventCheck = function(e, t, r) {
$D.each(this.pendingFirstTimeEvents, function(n, o) {
if (!this.activatedFirstTimeEvents[o]) {
var i;
var s = n.flag_key;
if (r || !n.property_filters || $D.isEmptyObject(n.property_filters)) {
if (r) {
var a = {
event_name: n.event_name,
property_filters: n.property_filters
};
i = r.eventMatchesCriteria(e, t, a);
} else i = {
matches: e === n.event_name,
error: null
};
if (i.error) D$.error("Error checking first-time event for flag \"" + s + "\": " + i.error);
else if (i.matches) {
D$.log("First-time event matched for flag \"" + s + "\": " + e);
var l = {
key: n.pending_variant.variant_key,
value: n.pending_variant.variant_value,
experiment_id: n.pending_variant.experiment_id,
is_experiment_active: n.pending_variant.is_experiment_active
};
this.flags.set(s, l), this.activatedFirstTimeEvents[o] = !0, this.recordFirstTimeEvent(n.flag_id, n.project_id, n.first_time_event_hash);
}
} else D$.warn("Skipping event check for \"" + s + "\" - property filters require targeting library");
}
}, this);
}, B$.prototype.getFirstTimeEventApiRoute = function(e) {
return this.getFullApiRoute() + "/" + e + "/first-time-events";
}, B$.prototype.recordFirstTimeEvent = function(e, t, r) {
var n = this.getMpProperty("distinct_id");
var o = nj();
var i = new URLSearchParams();
i.set("mp_lib", "web"), i.set("$lib_version", E_.LIB_VERSION);
var s = this.getFirstTimeEventApiRoute(e) + "?" + i.toString();
var a = {
distinct_id: n,
project_id: t,
first_time_event_hash: r
};
D$.log("Recording first-time event for flag: " + e), this.fetch.call(C_, s, {
method: "POST",
headers: {
"Content-Type": "application/json",
Authorization: "Basic " + btoa(this.getMpConfig("token") + ":"),
traceparent: o
},
body: JSON.stringify(a)
}).catch(function(t) {
D$.error("Failed to record first-time event for flag " + e + ": " + t);
});
}, B$.prototype.getVariant = function(e, t) {
return this.fetchPromise ? this.fetchPromise.then(function() {
return this.getVariantSync(e, t);
}.bind(this)).catch(function(e) {
return D$.error(e), t;
}) : new Promise(function(e) {
D$.critical("Feature Flags not initialized"), e(t);
});
}, B$.prototype.getVariantSync = function(e, t) {
if (!this.areFlagsReady()) return D$.log("Flags not loaded yet"), t;
var r = this.flags.get(e);
return r ? (this.trackFeatureCheck(e, r), r) : (D$.log("No flag found: \"" + e + "\""), t);
}, B$.prototype.getVariantValue = function(e, t) {
return this.getVariant(e, { value: t }).then(function(e) {
return e.value;
}).catch(function(e) {
return D$.error(e), t;
});
}, B$.prototype.getFeatureData = function(e, t) {
return D$.critical("mixpanel.flags.get_feature_data() is deprecated and will be removed in a future release. Use mixpanel.flags.get_variant_value() instead."), this.getVariantValue(e, t);
}, B$.prototype.getVariantValueSync = function(e, t) {
return this.getVariantSync(e, { value: t }).value;
}, B$.prototype.isEnabled = function(e, t) {
return this.getVariantValue(e).then(function() {
return this.isEnabledSync(e, t);
}.bind(this)).catch(function(e) {
return D$.error(e), t;
});
}, B$.prototype.isEnabledSync = function(e, t) {
t = t || !1;
var r = this.getVariantValueSync(e, t);
return !0 !== r && !1 !== r && (D$.error("Feature flag \"" + e + "\" value: " + r + " is not a boolean; returning fallback value: " + t), r = t), r;
}, B$.prototype.trackFeatureCheck = function(e, t) {
if (!this.trackedFeatures.has(e)) {
this.trackedFeatures.add(e);
var r = {
"Experiment name": e,
"Variant name": t.key,
$experiment_type: "feature_flag",
"Variant fetch start time": new Date(this._fetchStartTime).toISOString(),
"Variant fetch complete time": new Date(this._fetchCompleteTime).toISOString(),
"Variant fetch latency (ms)": this._fetchLatency,
"Variant fetch traceparent": this._traceparent
};
"undefined" !== t.experiment_id && (r.$experiment_id = t.experiment_id), "undefined" !== t.is_experiment_active && (r.$is_experiment_active = t.is_experiment_active), "undefined" !== t.is_qa_tester && (r.$is_qa_tester = t.is_qa_tester), this.track("$experiment_started", r);
}
}, B$.prototype.minApisSupported = function() {
return !!this.fetch && "undefined" != typeof Promise && "undefined" != typeof Map && "undefined" != typeof Set;
}, qD(B$), B$.prototype.are_flags_ready = B$.prototype.areFlagsReady, B$.prototype.get_variant = B$.prototype.getVariant, B$.prototype.get_variant_sync = B$.prototype.getVariantSync, B$.prototype.get_variant_value = B$.prototype.getVariantValue, B$.prototype.get_variant_value_sync = B$.prototype.getVariantValueSync, B$.prototype.is_enabled = B$.prototype.isEnabled, B$.prototype.is_enabled_sync = B$.prototype.isEnabledSync, B$.prototype.update_context = B$.prototype.updateContext, B$.prototype.get_feature_data = B$.prototype.getFeatureData, B$.prototype.getTargeting = B$.prototype.getTargeting;
var z$ = VD("recorder");
var V$ = "mp_iframe_handshake_request";
var U$ = "mp_iframe_handshake_response";
var q$ = function(e) {
this.mixpanelInstance = e.mixpanelInstance, this.getMpConfig = e.getConfigFunc, this.getTabId = e.getTabIdFunc, this.reportError = e.reportErrorFunc, this.getDistinctId = e.getDistinctIdFunc, this.loadExtraBundle = e.loadExtraBundle, this.recorderSrc = e.recorderSrc, this.targetingSrc = e.targetingSrc, this.libBasePath = e.libBasePath, this._recorder = null, this._parentReplayId = null, this._parentFrameRetryInterval = null;
};
q$.prototype.shouldLoadRecorder = function() {
if (this.getMpConfig("disable_persistence")) return BD.log("Load recorder check skipped due to disable_persistence config"), yD.resolve(!1);
var e = new hj(dj);
var t = this.getTabId();
return e.init().then(function() {
return e.getAll();
}).then(function(e) {
for (var r = 0; r < e.length; r++) if (jj(e[r]) || e[r].tabId === t) return !0;
return !1;
}).catch($D.bind(function(e) {
return this.reportError("Error checking recording registry", e), !1;
}, this));
}, q$.prototype.checkAndStartSessionRecording = function(e, t) {
if (!C_.MutationObserver) return BD.critical("Browser does not support MutationObserver; skipping session recording"), yD.resolve();
var r = $D.bind(function(e) {
return new yD($D.bind(function(t) {
var r = UD($D.bind(function() {
this._recorder = this._recorder || new C_[R_](this.mixpanelInstance), this._recorder.resumeRecording(e), t();
}, this));
if ($D.isUndefined(C_[R_])) {
var n = this.recorderSrc || this.libBasePath + "__MP_RECORDER_FILENAME__";
this.loadExtraBundle(n, r);
} else r();
}, this));
}, this);
var n = Fj(this.getMpConfig("record_allowed_iframe_origins"), z$);
if (n.length > 0 && (this._setupParentFrameListener(n), C_.parent !== C_)) return this._setupChildFrameListener(n, r), this._sendParentFrameRequestWithRetry(n), yD.resolve();
var o = $D.isUndefined(t) ? this.getMpConfig("record_sessions_percent") : t;
var i = o > 0 && 100 * Math.random() <= o;
return e || i ? r(!0) : this.shouldLoadRecorder().then($D.bind(function(e) {
return e ? r(!1) : yD.resolve();
}, this));
}, q$.prototype.isRecording = function() {
if (!this._recorder || !$D.isFunction(this._recorder.isRecording)) return !1;
try {
return this._recorder.isRecording();
} catch (e) {
return this.reportError("Error checking if recording is active", e), !1;
}
}, q$.prototype.startRecordingOnEvent = function(e, t) {
var r = this.isRecording();
var n = this.getMpConfig("recording_event_triggers");
if (!r && n) {
var o = n[e];
if (o && "number" == typeof o.percentage) {
var i = o.percentage;
var s = o.property_filters;
if (s && !$D.isEmptyObject(s)) {
var a = this.targetingSrc || this.libBasePath + I_;
L$(this.loadExtraBundle, a).then(function(r) {
try {
r.eventMatchesCriteria(e, t, {
event_name: e,
property_filters: s
}).matches && this.checkAndStartSessionRecording(!1, i);
} catch (e) {
BD.critical("Could not parse recording event trigger properties logic:", e);
}
}.bind(this)).catch(function(e) {
BD.critical("Failed to load targeting library:", e);
});
} else this.checkAndStartSessionRecording(!1, i);
}
}
}, q$.prototype.stopSessionRecording = function() {
return this._recorder ? this._recorder.stopRecording() : yD.resolve();
}, q$.prototype.pauseSessionRecording = function() {
return this._recorder ? this._recorder.pauseRecording() : yD.resolve();
}, q$.prototype.resumeSessionRecording = function() {
return this._recorder ? this._recorder.resumeRecording() : yD.resolve();
}, q$.prototype.isRecordingHeatmapData = function() {
return this.getSessionReplayId() && this.getMpConfig("record_heatmap_data");
}, q$.prototype.getSessionRecordingProperties = function() {
var e = {};
var t = this.getSessionReplayId();
return t && (e.$mp_replay_id = t), e;
}, q$.prototype.getSessionReplayUrl = function() {
var e = null;
var t = this.getSessionReplayId();
return t && (e = "https://mixpanel.com/projects/replay-redirect?" + $D.HTTPBuildQuery({
replay_id: t,
distinct_id: this.getDistinctId(),
token: this.getMpConfig("token")
})), e;
}, q$.prototype.getSessionReplayId = function() {
if (this._parentReplayId) return this._parentReplayId;
var e = null;
return this._recorder && (e = this._recorder.replayId), e || null;
}, q$.prototype.getRecorder = function() {
return this._recorder;
}, q$.prototype._setupChildFrameListener = function(e, t) {
if (!this._childFrameMessageHandler) {
var r = this;
this._childFrameMessageHandler = function(n) {
if (-1 !== e.indexOf(n.origin)) {
var o = n.data;
o && o.type === U$ && o.token === r.getMpConfig("token") && o.replayId && (r._parentReplayId = o.replayId, o.distinctId && r.mixpanelInstance.identify(o.distinctId), r._parentFrameRetryActive = !1, C_.removeEventListener("message", r._childFrameMessageHandler), r._childFrameMessageHandler = null, t(!0));
}
}, C_.addEventListener("message", this._childFrameMessageHandler);
}
}, q$.prototype._sendParentFrameRequest = function(e) {
var t = {};
t.type = V$, t.token = this.getMpConfig("token");
for (var r = 0; r < e.length; r++) try {
C_.parent.postMessage(t, e[r]);
} catch (e) {}
}, q$.prototype._sendParentFrameRequestWithRetry = function(e) {
var t = this;
var r = 0;
var n = 50;
this._parentFrameRetryActive = !0, this._sendParentFrameRequest(e), function o() {
setTimeout(function() {
!t._parentFrameRetryActive || t._parentReplayId || ++r >= 10 || (t._sendParentFrameRequest(e), n *= 2, o());
}, n);
}();
}, q$.prototype._setupParentFrameListener = function(e) {
if (!this._parentFrameMessageHandler) {
var t = this;
this._parentFrameMessageHandler = function(r) {
if (-1 !== e.indexOf(r.origin)) {
var n = r.data;
if (n && n.type === V$ && n.token === t.getMpConfig("token")) {
var o = t.getSessionReplayId();
if (o) {
var i = {};
i.type = U$, i.token = t.getMpConfig("token"), i.replayId = o, i.distinctId = t.getDistinctId(), r.source.postMessage(i, r.origin);
}
}
}
}, C_.addEventListener("message", this._parentFrameMessageHandler);
}
}, qD(q$);
var W$ = function() {};
W$.prototype.create_properties = function() {}, W$.prototype.event_handler = function() {}, W$.prototype.after_track_handler = function() {}, W$.prototype.init = function(e) {
return this.mp = e, this;
}, W$.prototype.track = function(e, t, r, n) {
var o = this;
var i = $D.dom_query(e);
if (0 !== i.length) return $D.each(i, function(e) {
$D.register_event(e, this.override_event, function(e) {
var i = {};
var s = o.create_properties(r, this);
var a = o.mp.get_config("track_links_timeout");
o.event_handler(e, this, i), window.setTimeout(o.track_callback(n, s, i, !0), a), o.mp.track(t, s, o.track_callback(n, s, i));
});
}, this), !0;
BD.error("The DOM query (" + e + ") returned 0 elements");
}, W$.prototype.track_callback = function(e, t, r, n) {
n = n || !1;
var o = this;
return function() {
r.callback_fired || (r.callback_fired = !0, e && !1 === e(n, t) || o.after_track_handler(t, r, n));
};
}, W$.prototype.create_properties = function(e, t) {
return "function" == typeof e ? e(t) : $D.extend({}, e);
};
var H$ = function() {
this.override_event = "click";
};
$D.inherit(H$, W$), H$.prototype.create_properties = function(e, t) {
var r = H$.superclass.create_properties.apply(this, arguments);
return t.href && (r.url = t.href), r;
}, H$.prototype.event_handler = function(e, t, r) {
r.new_tab = 2 === e.which || e.metaKey || e.ctrlKey || "_blank" === t.target, r.href = t.href, r.new_tab || e.preventDefault();
}, H$.prototype.after_track_handler = function(e, t) {
t.new_tab || setTimeout(function() {
window.location = t.href;
}, 0);
};
var G$ = function() {
this.override_event = "submit";
};
$D.inherit(G$, W$), G$.prototype.event_handler = function(e, t, r) {
r.element = t, e.preventDefault();
}, G$.prototype.after_track_handler = function(e, t) {
setTimeout(function() {
t.element.submit();
}, 0);
};
var K$ = "$set";
var Y$ = "$set_once";
var Z$ = "$unset";
var X$ = "$add";
var J$ = "$append";
var Q$ = "$union";
var eB = "$remove";
var tB = {
set_action: function(e, t) {
var r = {};
var n = {};
return $D.isObject(e) ? $D.each(e, function(e, t) {
this._is_reserved_property(t) || (n[t] = e);
}, this) : n[e] = t, r[K$] = n, r;
},
unset_action: function(e) {
var t = {};
var r = [];
return $D.isArray(e) || (e = [e]), $D.each(e, function(e) {
this._is_reserved_property(e) || r.push(e);
}, this), t[Z$] = r, t;
},
set_once_action: function(e, t) {
var r = {};
var n = {};
return $D.isObject(e) ? $D.each(e, function(e, t) {
this._is_reserved_property(t) || (n[t] = e);
}, this) : n[e] = t, r[Y$] = n, r;
},
union_action: function(e, t) {
var r = {};
var n = {};
return $D.isObject(e) ? $D.each(e, function(e, t) {
this._is_reserved_property(t) || (n[t] = $D.isArray(e) ? e : [e]);
}, this) : n[e] = $D.isArray(t) ? t : [t], r[Q$] = n, r;
},
append_action: function(e, t) {
var r = {};
var n = {};
return $D.isObject(e) ? $D.each(e, function(e, t) {
this._is_reserved_property(t) || (n[t] = e);
}, this) : n[e] = t, r[J$] = n, r;
},
remove_action: function(e, t) {
var r = {};
var n = {};
return $D.isObject(e) ? $D.each(e, function(e, t) {
this._is_reserved_property(t) || (n[t] = e);
}, this) : n[e] = t, r[eB] = n, r;
},
delete_action: function() {
return { $delete: "" };
}
};
var rB = function() {};
$D.extend(rB.prototype, tB), rB.prototype._init = function(e, t, r) {
this._mixpanel = e, this._group_key = t, this._group_id = r;
}, rB.prototype.set = _j(function(e, t, r) {
var n = this.set_action(e, t);
return $D.isObject(e) && (r = t), this._send_request(n, r);
}), rB.prototype.set_once = _j(function(e, t, r) {
var n = this.set_once_action(e, t);
return $D.isObject(e) && (r = t), this._send_request(n, r);
}), rB.prototype.unset = _j(function(e, t) {
var r = this.unset_action(e);
return this._send_request(r, t);
}), rB.prototype.union = _j(function(e, t, r) {
$D.isObject(e) && (r = t);
var n = this.union_action(e, t);
return this._send_request(n, r);
}), rB.prototype.delete = _j(function(e) {
var t = this.delete_action();
return this._send_request(t, e);
}), rB.prototype.remove = _j(function(e, t, r) {
var n = this.remove_action(e, t);
return this._send_request(n, r);
}), rB.prototype._send_request = function(e, t) {
e.$group_key = this._group_key, e.$group_id = this._group_id, e.$token = this._get_config("token");
var r = $D.encodeDates(e);
return this._mixpanel._track_or_batch({
type: "groups",
data: r,
endpoint: this._mixpanel.get_api_host("groups") + "/" + this._get_config("api_routes").groups,
batcher: this._mixpanel.request_batchers.groups
}, t);
}, rB.prototype._is_reserved_property = function(e) {
return "$group_key" === e || "$group_id" === e;
}, rB.prototype._get_config = function(e) {
return this._mixpanel.get_config(e);
}, rB.prototype.toString = function() {
return this._mixpanel.toString() + ".group." + this._group_key + "." + this._group_id;
}, rB.prototype.remove = rB.prototype.remove, rB.prototype.set = rB.prototype.set, rB.prototype.set_once = rB.prototype.set_once, rB.prototype.union = rB.prototype.union, rB.prototype.unset = rB.prototype.unset, rB.prototype.toString = rB.prototype.toString;
var nB = function() {};
$D.extend(nB.prototype, tB), nB.prototype._init = function(e) {
this._mixpanel = e;
}, nB.prototype.set = wj(function(e, t, r) {
var n = this.set_action(e, t);
return $D.isObject(e) && (r = t), this._get_config("save_referrer") && this._mixpanel.persistence.update_referrer_info(document.referrer), n[K$] = $D.extend({}, $D.info.people_properties(), n[K$]), this._send_request(n, r);
}), nB.prototype.set_once = wj(function(e, t, r) {
var n = this.set_once_action(e, t);
return $D.isObject(e) && (r = t), this._send_request(n, r);
}), nB.prototype.unset = wj(function(e, t) {
var r = this.unset_action(e);
return this._send_request(r, t);
}), nB.prototype.increment = wj(function(e, t, r) {
var n = {};
var o = {};
return $D.isObject(e) ? ($D.each(e, function(e, t) {
if (!this._is_reserved_property(t)) {
if (isNaN(parseFloat(e))) return void BD.error("Invalid increment value passed to mixpanel.people.increment - must be a number");
o[t] = e;
}
}, this), r = t) : ($D.isUndefined(t) && (t = 1), o[e] = t), n[X$] = o, this._send_request(n, r);
}), nB.prototype.append = wj(function(e, t, r) {
$D.isObject(e) && (r = t);
var n = this.append_action(e, t);
return this._send_request(n, r);
}), nB.prototype.remove = wj(function(e, t, r) {
$D.isObject(e) && (r = t);
var n = this.remove_action(e, t);
return this._send_request(n, r);
}), nB.prototype.union = wj(function(e, t, r) {
$D.isObject(e) && (r = t);
var n = this.union_action(e, t);
return this._send_request(n, r);
}), nB.prototype.track_charge = wj(function() {
BD.error("mixpanel.people.track_charge() is deprecated and no longer has any effect.");
}), nB.prototype.clear_charges = function(e) {
return this.set("$transactions", [], e);
}, nB.prototype.delete_user = function() {
if (this._identify_called()) {
var e = { $delete: this._mixpanel.get_distinct_id() };
return this._send_request(e);
}
BD.error("mixpanel.people.delete_user() requires you to call identify() first");
}, nB.prototype.toString = function() {
return this._mixpanel.toString() + ".people";
}, nB.prototype._send_request = function(e, t) {
e.$token = this._get_config("token"), e.$distinct_id = this._mixpanel.get_distinct_id();
var r = this._mixpanel.get_property("$device_id");
var n = this._mixpanel.get_property("$user_id");
var o = this._mixpanel.get_property("$had_persisted_distinct_id");
r && (e.$device_id = r), n && (e.$user_id = n), o && (e.$had_persisted_distinct_id = o);
var i = $D.encodeDates(e);
return this._identify_called() ? this._mixpanel._track_or_batch({
type: "people",
data: i,
endpoint: this._mixpanel.get_api_host("people") + "/" + this._get_config("api_routes").engage,
batcher: this._mixpanel.request_batchers.people
}, t) : (this._enqueue(e), $D.isUndefined(t) || (this._get_config("verbose") ? t({
status: -1,
error: null
}) : t(-1)), $D.truncate(i, 255));
}, nB.prototype._get_config = function(e) {
return this._mixpanel.get_config(e);
}, nB.prototype._identify_called = function() {
return !0 === this._mixpanel._flags.identify_called;
}, nB.prototype._enqueue = function(e) {
K$ in e ? this._mixpanel.persistence._add_to_people_queue(K$, e) : Y$ in e ? this._mixpanel.persistence._add_to_people_queue(Y$, e) : Z$ in e ? this._mixpanel.persistence._add_to_people_queue(Z$, e) : X$ in e ? this._mixpanel.persistence._add_to_people_queue(X$, e) : J$ in e ? this._mixpanel.persistence._add_to_people_queue(J$, e) : eB in e ? this._mixpanel.persistence._add_to_people_queue(eB, e) : Q$ in e ? this._mixpanel.persistence._add_to_people_queue(Q$, e) : BD.error("Invalid call to _enqueue():", e);
}, nB.prototype._flush_one_queue = function(e, t, r, n) {
var o = this;
var i = $D.extend({}, this._mixpanel.persistence.load_queue(e));
var s = i;
$D.isUndefined(i) || !$D.isObject(i) || $D.isEmptyObject(i) || (o._mixpanel.persistence._pop_from_people_queue(e, i), o._mixpanel.persistence.save(), n && (s = n(i)), t.call(o, s, function(t, n) {
0 === t && o._mixpanel.persistence._add_to_people_queue(e, i), $D.isUndefined(r) || r(t, n);
}));
}, nB.prototype._flush = function(e, t, r, n, o, i, s) {
var a = this;
this._flush_one_queue(K$, this.set, e), this._flush_one_queue(Y$, this.set_once, n), this._flush_one_queue(Z$, this.unset, i, function(e) {
return $D.keys(e);
}), this._flush_one_queue(X$, this.increment, t), this._flush_one_queue(Q$, this.union, o);
var l = this._mixpanel.persistence.load_queue(J$);
if (!$D.isUndefined(l) && $D.isArray(l) && l.length) for (var c, u = function(e, t) {
0 === e && a._mixpanel.persistence._add_to_people_queue(J$, c), $D.isUndefined(r) || r(e, t);
}, p = l.length - 1; p >= 0; p--) l = this._mixpanel.persistence.load_queue(J$), c = l.pop(), a._mixpanel.persistence.save(), $D.isEmptyObject(c) || a.append(c, u);
var d = this._mixpanel.persistence.load_queue(eB);
if (!$D.isUndefined(d) && $D.isArray(d) && d.length) for (var f, h = function(e, t) {
0 === e && a._mixpanel.persistence._add_to_people_queue(eB, f), $D.isUndefined(s) || s(e, t);
}, m = d.length - 1; m >= 0; m--) d = this._mixpanel.persistence.load_queue(eB), f = d.pop(), a._mixpanel.persistence.save(), $D.isEmptyObject(f) || a.remove(f, h);
}, nB.prototype._is_reserved_property = function(e) {
return "$distinct_id" === e || "$token" === e || "$device_id" === e || "$user_id" === e || "$had_persisted_distinct_id" === e;
}, nB.prototype.set = nB.prototype.set, nB.prototype.set_once = nB.prototype.set_once, nB.prototype.unset = nB.prototype.unset, nB.prototype.increment = nB.prototype.increment, nB.prototype.append = nB.prototype.append, nB.prototype.remove = nB.prototype.remove, nB.prototype.union = nB.prototype.union, nB.prototype.track_charge = nB.prototype.track_charge, nB.prototype.clear_charges = nB.prototype.clear_charges, nB.prototype.delete_user = nB.prototype.delete_user, nB.prototype.toString = nB.prototype.toString;
var oB;
var iB = "__mps";
var sB = "__mpso";
var aB = "__mpus";
var lB = "__mpa";
var cB = "__mpap";
var uB = "__mpr";
var pB = "__mpu";
var dB = "$people_distinct_id";
var fB = "__alias";
var hB = "__timers";
var mB = [
iB,
sB,
aB,
lB,
cB,
uB,
pB,
dB,
fB,
hB
];
var gB = function(e) {
this.props = {}, this.campaign_params_saved = !1, e.persistence_name ? this.name = "mp_" + e.persistence_name : this.name = "mp_" + e.token + "_mixpanel";
var t = e.persistence;
"cookie" !== t && "localStorage" !== t && (BD.critical("Unknown persistence type " + t + "; falling back to cookie"), t = e.persistence = "cookie"), "localStorage" === t && $D.localStorage.is_supported() ? this.storage = $D.localStorage : this.storage = $D.cookie, this.load(), this.update_config(e), this.upgrade(), this.save();
};
gB.prototype.properties = function() {
var e = {};
return this.load(), $D.each(this.props, function(t, r) {
$D.include(mB, r) || (e[r] = t);
}), e;
}, gB.prototype.load = function() {
if (!this.disabled) {
var e = this.storage.parse(this.name);
e && (this.props = $D.extend({}, e));
}
}, gB.prototype.upgrade = function() {
var e;
var t;
this.storage === $D.localStorage ? (e = $D.cookie.parse(this.name), $D.cookie.remove(this.name), $D.cookie.remove(this.name, !0), e && this.register_once(e)) : this.storage === $D.cookie && (t = $D.localStorage.parse(this.name), $D.localStorage.remove(this.name), t && this.register_once(t));
}, gB.prototype.save = function() {
this.disabled || this.storage.set(this.name, cj(this.props), this.expire_days, this.cross_subdomain, this.secure, this.cross_site, this.cookie_domain);
}, gB.prototype.load_prop = function(e) {
return this.load(), this.props[e];
}, gB.prototype.remove = function() {
this.storage.remove(this.name, !1, this.cookie_domain), this.storage.remove(this.name, !0, this.cookie_domain);
}, gB.prototype.clear = function() {
this.remove(), this.props = {};
}, gB.prototype.register_once = function(e, t, r) {
return !!$D.isObject(e) && (void 0 === t && (t = "None"), this.expire_days = void 0 === r ? this.default_expiry : r, this.load(), $D.each(e, function(e, r) {
this.props.hasOwnProperty(r) && this.props[r] !== t || (this.props[r] = e);
}, this), this.save(), !0);
}, gB.prototype.register = function(e, t) {
return !!$D.isObject(e) && (this.expire_days = void 0 === t ? this.default_expiry : t, this.load(), $D.extend(this.props, e), this.save(), !0);
}, gB.prototype.unregister = function(e) {
this.load(), e in this.props && (delete this.props[e], this.save());
}, gB.prototype.update_search_keyword = function(e) {
this.register($D.info.searchInfo(e));
}, gB.prototype.update_referrer_info = function(e) {
this.register_once({
$initial_referrer: e || "$direct",
$initial_referring_domain: $D.info.referringDomain(e) || "$direct"
}, "");
}, gB.prototype.get_referrer_info = function() {
return $D.strip_empty_properties({
$initial_referrer: this.props.$initial_referrer,
$initial_referring_domain: this.props.$initial_referring_domain
});
}, gB.prototype.update_config = function(e) {
this.default_expiry = this.expire_days = e.cookie_expiration, this.set_disabled(e.disable_persistence), this.set_cookie_domain(e.cookie_domain), this.set_cross_site(e.cross_site_cookie), this.set_cross_subdomain(e.cross_subdomain_cookie), this.set_secure(e.secure_cookie);
}, gB.prototype.set_disabled = function(e) {
this.disabled = e, this.disabled ? this.remove() : this.save();
}, gB.prototype.set_cookie_domain = function(e) {
e !== this.cookie_domain && (this.remove(), this.cookie_domain = e, this.save());
}, gB.prototype.set_cross_site = function(e) {
e !== this.cross_site && (this.cross_site = e, this.remove(), this.save());
}, gB.prototype.set_cross_subdomain = function(e) {
e !== this.cross_subdomain && (this.cross_subdomain = e, this.remove(), this.save());
}, gB.prototype.get_cross_subdomain = function() {
return this.cross_subdomain;
}, gB.prototype.set_secure = function(e) {
e !== this.secure && (this.secure = !!e, this.remove(), this.save());
}, gB.prototype._add_to_people_queue = function(e, t) {
var r = this._get_queue_key(e);
var n = t[e];
var o = this._get_or_create_queue(K$);
var i = this._get_or_create_queue(Y$);
var s = this._get_or_create_queue(Z$);
var a = this._get_or_create_queue(X$);
var l = this._get_or_create_queue(Q$);
var c = this._get_or_create_queue(eB, []);
var u = this._get_or_create_queue(J$, []);
r === iB ? ($D.extend(o, n), this._pop_from_people_queue(X$, n), this._pop_from_people_queue(Q$, n), this._pop_from_people_queue(Z$, n)) : r === sB ? ($D.each(n, function(e, t) {
t in i || (i[t] = e);
}), this._pop_from_people_queue(Z$, n)) : r === aB ? $D.each(n, function(e) {
$D.each([
o,
i,
a,
l
], function(t) {
e in t && delete t[e];
}), $D.each(u, function(t) {
e in t && delete t[e];
}), s[e] = !0;
}) : r === lB ? ($D.each(n, function(e, t) {
t in o ? o[t] += e : (t in a || (a[t] = 0), a[t] += e);
}, this), this._pop_from_people_queue(Z$, n)) : r === pB ? ($D.each(n, function(e, t) {
$D.isArray(e) && (t in l || (l[t] = []), $D.each(e, function(e) {
$D.include(l[t], e) || l[t].push(e);
}));
}), this._pop_from_people_queue(Z$, n)) : r === uB ? (c.push(n), this._pop_from_people_queue(J$, n)) : r === cB && (u.push(n), this._pop_from_people_queue(Z$, n)), BD.log("MIXPANEL PEOPLE REQUEST (QUEUED, PENDING IDENTIFY):"), BD.log(t), this.save();
}, gB.prototype._pop_from_people_queue = function(e, t) {
var r = this.props[this._get_queue_key(e)];
$D.isUndefined(r) || $D.each(t, function(t, n) {
e === J$ || e === eB ? $D.each(r, function(e) {
e[n] === t && delete e[n];
}) : delete r[n];
}, this);
}, gB.prototype.load_queue = function(e) {
return this.load_prop(this._get_queue_key(e));
}, gB.prototype._get_queue_key = function(e) {
return e === K$ ? iB : e === Y$ ? sB : e === Z$ ? aB : e === X$ ? lB : e === J$ ? cB : e === eB ? uB : e === Q$ ? pB : void BD.error("Invalid queue:", e);
}, gB.prototype._get_or_create_queue = function(e, t) {
var r = this._get_queue_key(e);
return t = $D.isUndefined(t) ? {} : t, this.props[r] || (this.props[r] = t);
}, gB.prototype.set_event_timer = function(e, t) {
var r = this.load_prop(hB) || {};
r[e] = t, this.props[hB] = r, this.save();
}, gB.prototype.remove_event_timer = function(e) {
var t = (this.load_prop(hB) || {})[e];
return $D.isUndefined(t) || (delete this.props[hB][e], this.save()), t;
};
var vB;
var yB = function(e, t) {
throw new Error(e + " not available in this build.");
};
var bB = "mixpanel";
var wB = "base64";
var _B = "$device:";
var xB = C_.XMLHttpRequest && "withCredentials" in new XMLHttpRequest();
var SB = !xB && -1 === AD.indexOf("MSIE") && -1 === AD.indexOf("Mozilla");
var kB = null;
TD.sendBeacon && (kB = function() {
return TD.sendBeacon.apply(TD, arguments);
});
var CB = {
track: "track/",
engage: "engage/",
groups: "groups/",
record: "record/",
flags: "flags/",
settings: "settings/"
};
var OB = {
api_host: "https://api-js.mixpanel.com",
api_hosts: {},
api_routes: CB,
api_extra_query_params: {},
api_method: "POST",
api_transport: "XHR",
api_payload_format: wB,
app_host: "https://mixpanel.com",
autocapture: !1,
cdn: "https://cdn.mxpnl.com",
cross_site_cookie: !1,
cross_subdomain_cookie: !0,
error_reporter: aj,
flags: !1,
persistence: "cookie",
persistence_name: "",
cookie_domain: "",
cookie_name: "",
loaded: aj,
mp_loader: null,
track_marketing: !0,
track_pageview: !1,
skip_first_touch_marketing: !1,
store_google: !0,
stop_utm_persistence: !1,
save_referrer: !0,
test: !1,
verbose: !1,
img: !1,
debug: !1,
track_links_timeout: 300,
cookie_expiration: 365,
upgrade: !1,
disable_persistence: !1,
disable_cookie: !1,
secure_cookie: !1,
ip: !0,
opt_out_tracking_by_default: !1,
opt_out_persistence_by_default: !1,
opt_out_tracking_persistence_type: "localStorage",
opt_out_tracking_cookie_prefix: null,
property_blacklist: [],
xhr_headers: {},
ignore_dnt: !1,
batch_requests: !0,
batch_size: 50,
batch_flush_interval_ms: 5e3,
batch_request_timeout_ms: 9e4,
batch_autostart: !0,
hooks: {},
record_allowed_iframe_origins: [],
record_block_class: /* @__PURE__ */ new RegExp("^(mp-block|fs-exclude|amp-block|rr-block|ph-no-capture)$"),
record_block_selector: "img, video, audio",
record_canvas: !1,
record_collect_fonts: !1,
record_console: !0,
record_heatmap_data: !1,
recording_event_triggers: {},
record_idle_timeout_ms: 18e5,
record_mask_inputs: !0,
record_max_ms: wD,
record_min_ms: 0,
record_network: !1,
record_network_options: {},
record_sessions_percent: 0,
recorder_src: null,
targeting_src: null,
lib_base_path: "https://cdn.mxpnl.com/libs/",
remote_settings_mode: "disabled"
};
var EB = !1;
var TB = function() {};
var RB = function(e, t, r) {
var n;
var o = r === bB ? vB : vB[r];
if (o && 0 === oB) n = o;
else {
if (o && !$D.isArray(o)) return void BD.error("You have already initialized " + r);
n = new TB();
}
if (n._cached_groups = {}, n._init(e, t, r), n.people = new nB(), n.people._init(n), !n.get_config("skip_first_touch_marketing")) {
var i = $D.info.campaignParams(null);
var s = {};
var a = !1;
$D.each(i, function(e, t) {
s["initial_" + t] = e, e && (a = !0);
}), a && n.people.set_once(s);
}
E_.DEBUG = E_.DEBUG || n.get_config("debug");
var l = 0 === oB ? "module" : "snippet";
return C_.dispatchEvent(new C_.CustomEvent("$mp_sdk_to_extension_event", { detail: {
instance: n,
source: l,
token: e,
name: r,
info: $D.info
} })), !$D.isUndefined(o) && $D.isArray(o) && (n._execute_array.call(n.people, o.people), n._execute_array(o)), n;
};
TB.prototype.init = function(e, t, r) {
if ($D.isUndefined(r)) this.report_error("You must name your new library: init(token, config, name)");
else {
if (r !== bB) {
var n = RB(e, t, r);
return vB[r] = n, n._loaded(), n;
}
this.report_error("You must initialize the main mixpanel object right after you include the Mixpanel js snippet");
}
}, TB.prototype._init = function(e, t, r) {
t = t || {}, this.__loaded = !0, this.config = {};
var n = {};
if ("api_payload_format" in t || (t.api_host || OB.api_host).match(/\.mixpanel\.com/) && (n.api_payload_format = "json"), this.hooks = {}, this.set_config($D.extend({}, OB, n, t, {
name: r,
token: e,
callback_fn: (r === bB ? r : bB + "." + r) + "._jsc"
})), this.recorderManager = new q$({
mixpanelInstance: this,
getConfigFunc: $D.bind(this.get_config, this),
setConfigFunc: $D.bind(this.set_config, this),
getTabIdFunc: $D.bind(this.get_tab_id, this),
reportErrorFunc: $D.bind(this.report_error, this),
getDistinctIdFunc: $D.bind(this.get_distinct_id, this),
recorderSrc: this.get_config("recorder_src"),
targetingSrc: this.get_config("targeting_src"),
libBasePath: this.get_config("lib_base_path"),
loadExtraBundle: yB
}), this._jsc = aj, this.__dom_loaded_queue = [], this.__request_queue = [], this.__disabled_events = [], this._flags = {
disable_all_events: !1,
identify_called: !1
}, this.request_batchers = {}, this._batch_requests = this.get_config("batch_requests"), this._batch_requests) if ($D.localStorage.is_supported(!0) && xB) {
if (this.init_batchers(), kB && C_.addEventListener) {
var o = $D.bind(function() {
this.request_batchers.events.stopped || this.request_batchers.events.flush({ unloading: !0 });
}, this);
C_.addEventListener("pagehide", function(e) {
e.persisted && o();
}), C_.addEventListener("visibilitychange", function() {
"hidden" === RD.visibilityState && o();
});
}
} else this._batch_requests = !1, BD.log("Turning off Mixpanel request-queueing; needs XHR and localStorage support"), $D.each(this.get_batcher_configs(), function(e) {
BD.log("Clearing batch queue " + e.queue_key), $D.localStorage.remove(e.queue_key);
});
this.persistence = this.cookie = new gB(this.config), this.unpersisted_superprops = {}, this._gdpr_init();
var i = $D.UUID();
this.get_distinct_id() || this.register_once({
distinct_id: _B + i,
$device_id: i
}, ""), this.flags = new B$({
getFullApiRoute: $D.bind(function() {
return this.get_api_host("flags") + "/" + this.get_config("api_routes").flags;
}, this),
getConfigFunc: $D.bind(this.get_config, this),
setConfigFunc: $D.bind(this.set_config, this),
getPropertyFunc: $D.bind(this.get_property, this),
trackingFunc: $D.bind(this.track, this),
loadExtraBundle: yB,
targetingSrc: this.get_config("targeting_src") || this.get_config("lib_base_path") + I_
}), this.flags.init(), this.flags = this.flags, this.autocapture = new N$(this), this.autocapture.init(), this._init_tab_id();
var s = this.get_config("remote_settings_mode");
this.__session_recording_init_promise = "strict" === s || "fallback" === s ? this._fetch_remote_settings(s).then($D.bind(function() {
return this._check_and_start_session_recording();
}, this)) : this._check_and_start_session_recording();
}, TB.prototype._init_tab_id = function() {
if (this.get_config("disable_persistence")) BD.log("Tab ID initialization skipped due to disable_persistence config");
else if ($D.sessionStorage.is_supported()) try {
var e = this.get_config("name") + "_" + this.get_config("token");
var t = "mp_tab_id_" + e;
var r = "mp_gen_new_tab_id_" + e;
!$D.sessionStorage.get(r) && $D.sessionStorage.get(t) || $D.sessionStorage.set(t, "$tab-" + $D.UUID()), $D.sessionStorage.set(r, "1"), this.tab_id = $D.sessionStorage.get(t), C_.addEventListener("beforeunload", function() {
$D.sessionStorage.remove(r);
});
} catch (e) {
this.report_error("Error initializing tab id", e);
}
else this.report_error("Session storage is not supported, cannot keep track of unique tab ID.");
}, TB.prototype.get_tab_id = function() {
return this.tab_id || null;
}, TB.prototype._check_and_start_session_recording = bj(function(e) {
return this.recorderManager.checkAndStartSessionRecording(e);
}), TB.prototype._start_recording_on_event = function(e, t) {
return this.recorderManager.startRecordingOnEvent(e, t);
}, TB.prototype.start_session_recording = function() {
return this._check_and_start_session_recording(!0);
}, TB.prototype.stop_session_recording = function() {
return this.recorderManager.stopSessionRecording();
}, TB.prototype.pause_session_recording = function() {
return this.recorderManager.pauseSessionRecording();
}, TB.prototype.resume_session_recording = function() {
return this.recorderManager.resumeSessionRecording();
}, TB.prototype.is_recording_heatmap_data = function() {
return this.recorderManager.isRecordingHeatmapData();
}, TB.prototype.get_session_recording_properties = function() {
return this.recorderManager.getSessionRecordingProperties();
}, TB.prototype.get_session_replay_url = function() {
return this.recorderManager.getSessionReplayUrl();
}, TB.prototype.__get_recorder = function() {
return this.recorderManager.getRecorder();
}, TB.prototype.__get_recording_init_promise = function() {
return this.__session_recording_init_promise;
}, TB.prototype._loaded = function() {
if (this.get_config("loaded")(this), this._set_default_superprops(), this.people.set_once(this.persistence.get_referrer_info()), this.get_config("store_google") && this.get_config("stop_utm_persistence")) {
var e = $D.info.campaignParams(null);
$D.each(e, function(e, t) {
this.unregister(t);
}.bind(this));
}
}, TB.prototype._set_default_superprops = function() {
this.persistence.update_search_keyword(RD.referrer), this.get_config("store_google") && !this.get_config("stop_utm_persistence") && this.register($D.info.campaignParams()), this.get_config("save_referrer") && this.persistence.update_referrer_info(RD.referrer);
}, TB.prototype._dom_loaded = function() {
$D.each(this.__dom_loaded_queue, function(e) {
this._track_dom.apply(this, e);
}, this), this.has_opted_out_tracking() || $D.each(this.__request_queue, function(e) {
this._send_request.apply(this, e);
}, this), delete this.__dom_loaded_queue, delete this.__request_queue;
}, TB.prototype._track_dom = function(e, t) {
if (this.get_config("img")) return this.report_error("You can't use DOM tracking functions with img = true."), !1;
if (!EB) return this.__dom_loaded_queue.push([e, t]), !1;
var r = new e().init(this);
return r.track.apply(r, t);
}, TB.prototype._prepare_callback = function(e, t) {
if ($D.isUndefined(e)) return null;
if (xB) return function(r) {
e(r, t);
};
var r = this._jsc;
var n = "" + Math.floor(1e8 * Math.random());
var o = this.get_config("callback_fn") + "[" + n + "]";
return r[n] = function(o) {
delete r[n], e(o, t);
}, o;
}, TB.prototype._send_request = function(e, t, r, n) {
var o = !0;
if (SB) return this.__request_queue.push(arguments), o;
var i = {
method: this.get_config("api_method"),
transport: this.get_config("api_transport"),
verbose: this.get_config("verbose")
};
var s = null;
n || !$D.isFunction(r) && "string" != typeof r || (n = r, r = null), r = $D.extend(i, r || {}), xB || (r.method = "GET");
var a = "POST" === r.method;
var l = kB && a && "sendbeacon" === r.transport.toLowerCase();
var c = r.verbose;
t.verbose && (c = !0), this.get_config("test") && (t.test = 1), c && (t.verbose = 1), this.get_config("img") && (t.img = 1), xB || (n ? t.callback = n : (c || this.get_config("test")) && (t.callback = "(function(){})")), t.ip = this.get_config("ip") ? 1 : 0, t._ = (/* @__PURE__ */ new Date()).getTime().toString(), a && (s = "data=" + encodeURIComponent(t.data), delete t.data), $D.extend(t, this.get_config("api_extra_query_params")), e += "?" + $D.HTTPBuildQuery(t);
var u = this;
if ("img" in t) {
var p = RD.createElement("img");
p.src = e, RD.body.appendChild(p);
} else if (l) {
try {
o = kB(e, s);
} catch (e) {
u.report_error(e), o = !1;
}
try {
n && n(o ? 1 : 0);
} catch (e) {
u.report_error(e);
}
} else if (xB) try {
var d = new XMLHttpRequest();
d.open(r.method, e, !0);
var f = this.get_config("xhr_headers");
if (a && (f["Content-Type"] = "application/x-www-form-urlencoded"), $D.each(f, function(e, t) {
d.setRequestHeader(t, e);
}), r.timeout_ms && void 0 !== d.timeout) {
d.timeout = r.timeout_ms;
var h = (/* @__PURE__ */ new Date()).getTime();
}
d.withCredentials = !0, d.onreadystatechange = function() {
var e;
if (4 === d.readyState) {
if (200 === d.status) {
if (n) if (c) {
var t;
try {
t = $D.JSONDecode(d.responseText);
} catch (e) {
if (u.report_error(e), !r.ignore_json_errors) return;
t = d.responseText;
}
n(t);
} else n(Number(d.responseText));
} else if (e = d.timeout && !d.status && (/* @__PURE__ */ new Date()).getTime() - h >= d.timeout ? "timeout" : "Bad HTTP status: " + d.status + " " + d.statusText, u.report_error(e), n) if (c) {
var o = d.responseHeaders || {};
n({
status: 0,
httpStatusCode: d.status,
error: e,
retryAfter: o["Retry-After"]
});
} else n(0);
}
}, d.send(s);
} catch (e) {
u.report_error(e), o = !1;
}
else {
var m = RD.createElement("script");
m.type = "text/javascript", m.async = !0, m.defer = !0, m.src = e;
var g = RD.getElementsByTagName("script")[0];
g.parentNode.insertBefore(m, g);
}
return o;
}, TB.prototype._fetch_remote_settings = function(e) {
var t = this;
var r = function() {
"strict" === e && t.set_config({ record_sessions_percent: 0 });
};
if (!C_.AbortController) return BD.critical("Remote settings unavailable: missing minimum required APIs"), r(), Promise.resolve();
var n = this.get_api_host("settings") + "/" + this.get_config("api_routes").settings;
var o = {
$lib_version: E_.LIB_VERSION,
mp_lib: "web",
sdk_config: "1"
};
var i = n + "?" + $D.HTTPBuildQuery(o);
var s = new AbortController();
var a = setTimeout(function() {
s.abort();
}, 500);
var l = {
method: "GET",
headers: { Authorization: "Basic " + btoa(t.get_config("token") + ":") },
signal: s.signal
};
return C_.fetch(i, l).then(function(e) {
return clearTimeout(a), e.ok ? e.json() : (BD.critical("Network response was not ok"), void r());
}).then(function(e) {
if (e && e.sdk_config && e.sdk_config.config) {
var n = e.sdk_config.config;
var o = {};
$D.each(n, function(e, t) {
OB.hasOwnProperty(t) && (o[t] = e);
}), $D.isEmptyObject(o) ? (BD.critical("No valid config keys found in remote settings."), r()) : t.set_config(o);
} else r();
}).catch(function(e) {
clearTimeout(a), BD.critical("Failed to fetch remote settings", e), r();
});
}, TB.prototype._execute_array = function(e) {
var t;
var r = [];
var n = [];
var o = [];
$D.each(e, function(e) {
e && (t = e[0], $D.isArray(t) ? o.push(e) : "function" == typeof e ? e.call(this) : $D.isArray(e) && "alias" === t ? r.push(e) : $D.isArray(e) && -1 !== t.indexOf("track") && "function" == typeof this[t] ? o.push(e) : n.push(e));
}, this);
var i = function(e, t) {
$D.each(e, function(e) {
if ($D.isArray(e[0])) {
var r = t;
$D.each(e, function(e) {
r = r[e[0]].apply(r, e.slice(1));
});
} else this[e[0]].apply(this, e.slice(1));
}, t);
};
i(r, this), i(n, this), i(o, this);
}, TB.prototype.are_batchers_initialized = function() {
return !!this.request_batchers.events;
}, TB.prototype.get_batcher_configs = function() {
var e = "__mpq_" + this.get_config("token");
return this._batcher_configs = this._batcher_configs || {
events: {
type: "events",
api_name: "track",
queue_key: e + "_ev"
},
people: {
type: "people",
api_name: "engage",
queue_key: e + "_pp"
},
groups: {
type: "groups",
api_name: "groups",
queue_key: e + "_gr"
}
}, this._batcher_configs;
}, TB.prototype.init_batchers = function() {
if (!this.are_batchers_initialized()) {
var e = $D.bind(function(e) {
return new Dj(e.queue_key, {
libConfig: this.config,
errorReporter: this.get_config("error_reporter"),
sendRequestFunc: $D.bind(function(t, r, n) {
var o = this.get_config("api_routes");
this._send_request(this.get_api_host(e.api_name) + "/" + o[e.api_name], this._encode_data_for_request(t), r, this._prepare_callback(n, t));
}, this),
beforeSendHook: $D.bind(function(t) {
var r = this._run_hook("before_send_" + e.type, t);
return r ? r[0] : null;
}, this),
stopAllBatchingFunc: $D.bind(this.stop_batch_senders, this),
usePersistence: !0
});
}, this);
var t = this.get_batcher_configs();
this.request_batchers = {
events: e(t.events),
people: e(t.people),
groups: e(t.groups)
};
}
this.get_config("batch_autostart") && this.start_batch_senders();
}, TB.prototype.start_batch_senders = function() {
this._batchers_were_started = !0, this.are_batchers_initialized() && (this._batch_requests = !0, $D.each(this.request_batchers, function(e) {
e.start();
}));
}, TB.prototype.stop_batch_senders = function() {
this._batch_requests = !1, $D.each(this.request_batchers, function(e) {
e.stop(), e.clear();
});
}, TB.prototype.push = function(e) {
this._execute_array([e]);
}, TB.prototype.enable = function(e) {
var t;
var r;
var n;
var o;
if (void 0 === e) this._flags.disable_all_events = !1;
else {
for (t = {}, r = [], n = 0; n < e.length; n++) t[e[n]] = !0;
for (o = 0; o < this.__disabled_events.length; o++) t[this.__disabled_events[o]] || r.push(this.__disabled_events[o]);
this.__disabled_events = r;
}
}, TB.prototype.disable = function(e) {
void 0 === e ? this._flags.disable_all_events = !0 : this.__disabled_events = this.__disabled_events.concat(e);
}, TB.prototype._encode_data_for_request = function(e) {
var t = cj(e);
return this.get_config("api_payload_format") === wB && (t = $D.base64Encode(t)), { data: t };
}, TB.prototype._track_or_batch = function(e, t) {
var r = $D.truncate(e.data, 255);
var n = e.endpoint;
var o = e.batcher;
var i = e.should_send_immediately;
var s = e.send_request_options || {};
t = t || aj;
var a = !0;
var l = $D.bind(function() {
return s.skip_hooks || (r = this._run_hook("before_send_" + e.type, r)) && (r = r[0]), r ? (BD.log("MIXPANEL REQUEST:"), BD.log(r), this._send_request(n, this._encode_data_for_request(r), s, this._prepare_callback(t, r))) : null;
}, this);
return this._batch_requests && !i ? o.enqueue(r).then(function(e) {
e ? t(1, r) : l();
}) : a = l(), a && r;
}, TB.prototype.track = bj(function(e, t, r, n) {
var o;
if (!r || !r.skip_hooks) {
if (null === (o = this._run_hook("before_track", e, t))) return;
e = o[0], t = o[1];
}
n || "function" != typeof r || (n = r, r = null);
var i = (r = r || {}).transport;
i && (r.transport = i);
var s = r.send_immediately;
if ("function" != typeof n && (n = aj), $D.isUndefined(e)) this.report_error("No event name provided to mixpanel.track");
else {
if (!this._event_is_disabled(e)) {
(t = $D.extend({}, t)).token = this.get_config("token");
var a = this.persistence.remove_event_timer(e);
if (!$D.isUndefined(a)) {
var l = (/* @__PURE__ */ new Date()).getTime() - a;
t.$duration = parseFloat((l / 1e3).toFixed(3));
}
this._set_default_superprops();
var c = this.get_config("track_marketing") ? $D.info.marketingParams() : {};
t = $D.extend({}, $D.info.properties({ mp_loader: this.get_config("mp_loader") }), c, this.persistence.properties(), this.unpersisted_superprops, this.get_session_recording_properties(), t);
var u = this.get_config("property_blacklist");
$D.isArray(u) ? $D.each(u, function(e) {
delete t[e];
}) : this.report_error("Invalid value for property_blacklist config: " + u), this._start_recording_on_event(e, t);
var p = {
event: e,
properties: t
};
return o = this._track_or_batch({
type: "events",
data: p,
endpoint: this.get_api_host("events") + "/" + this.get_config("api_routes").track,
batcher: this.request_batchers.events,
should_send_immediately: s,
send_request_options: r
}, n), this.flags && this.flags.checkFirstTimeEvents && this.flags.checkFirstTimeEvents(e, t), o;
}
n(0);
}
}), TB.prototype.set_group = bj(function(e, t, r) {
$D.isArray(t) || (t = [t]);
var n = {};
return n[e] = t, this.register(n), this.people.set(e, t, r);
}), TB.prototype.add_group = bj(function(e, t, r) {
var n = this.get_property(e);
var o = {};
return void 0 === n ? (o[e] = [t], this.register(o)) : -1 === n.indexOf(t) && (n.push(t), o[e] = n, this.register(o)), this.people.union(e, t, r);
}), TB.prototype.remove_group = bj(function(e, t, r) {
var n = this.get_property(e);
if (void 0 !== n) {
var o = n.indexOf(t);
o > -1 && (n.splice(o, 1), this.register({ group_key: n })), 0 === n.length && this.unregister(e);
}
return this.people.remove(e, t, r);
}), TB.prototype.track_with_groups = bj(function(e, t, r, n) {
var o = $D.extend({}, t || {});
return $D.each(r, function(e, t) {
null != e && (o[t] = e);
}), this.track(e, o, n);
}), TB.prototype._create_map_key = function(e, t) {
return e + "_" + JSON.stringify(t);
}, TB.prototype._remove_group_from_cache = function(e, t) {
delete this._cached_groups[this._create_map_key(e, t)];
}, TB.prototype.get_group = function(e, t) {
var r = this._create_map_key(e, t);
var n = this._cached_groups[r];
return void 0 !== n && n._group_key === e && n._group_id === t || ((n = new rB())._init(this, e, t), this._cached_groups[r] = n), n;
}, TB.prototype.track_pageview = bj(function(e, t) {
"object" != typeof e && (e = {});
var r = (t = t || {}).event_name || "$mp_web_page_view";
var n = $D.extend($D.info.mpPageViewProperties(), $D.info.campaignParams(), $D.info.clickParams());
var o = $D.extend({}, n, e);
return this.track(r, o);
}), TB.prototype.track_links = function() {
return this._track_dom.call(this, H$, arguments);
}, TB.prototype.track_forms = function() {
return this._track_dom.call(this, G$, arguments);
}, TB.prototype.time_event = function(e) {
$D.isUndefined(e) ? this.report_error("No event name provided to mixpanel.time_event") : this._event_is_disabled(e) || this.persistence.set_event_timer(e, (/* @__PURE__ */ new Date()).getTime());
};
var IB = { persistent: !0 };
var MB = function(e) {
var t;
return t = $D.isObject(e) ? e : $D.isUndefined(e) ? {} : { days: e }, $D.extend({}, IB, t);
};
TB.prototype.register = function(e, t) {
var r = this._run_hook("before_register", e, t);
if (null !== r) {
e = r[0], t = r[1];
var n = MB(t);
n.persistent ? this.persistence.register(e, n.days) : $D.extend(this.unpersisted_superprops, e);
}
}, TB.prototype.register_once = function(e, t, r) {
var n = this._run_hook("before_register_once", e, t, r);
if (null !== n) {
e = n[0], t = n[1], r = n[2];
var o = MB(r);
o.persistent ? this.persistence.register_once(e, t, o.days) : (void 0 === t && (t = "None"), $D.each(e, function(e, r) {
this.unpersisted_superprops.hasOwnProperty(r) && this.unpersisted_superprops[r] !== t || (this.unpersisted_superprops[r] = e);
}, this));
}
}, TB.prototype.unregister = function(e, t) {
var r = this._run_hook("before_unregister", e, t);
null !== r && (e = r[0], t = r[1], (t = MB(t)).persistent ? this.persistence.unregister(e) : delete this.unpersisted_superprops[e]);
}, TB.prototype._register_single = function(e, t) {
var r = {};
r[e] = t, this.register(r);
}, TB.prototype.identify = function(e, t, r, n, o, i, s, a) {
var l = this._run_hook("before_identify", e);
if (null === l) return -1;
e = l[0];
var c = this.get_distinct_id();
if (e && c !== e) {
if ("string" == typeof e && 0 === e.indexOf(_B)) return this.report_error("distinct_id cannot have $device: prefix"), -1;
this.register({ $user_id: e });
}
if (!this.get_property("$device_id")) {
var u = c;
this.register_once({
$had_persisted_distinct_id: !0,
$device_id: u
}, "");
}
e !== c && e !== this.get_property(fB) && (this.unregister(fB), this.register({ distinct_id: e })), this._flags.identify_called = !0, this.people._flush(t, r, n, o, i, s, a), e !== c && this.track("$identify", {
distinct_id: e,
$anon_distinct_id: c
}, { skip_hooks: !0 }), e !== c && this.flags.fetchFlags();
}, TB.prototype.reset = function() {
this.stop_session_recording(), this.persistence.clear(), this._flags.identify_called = !1;
var e = $D.UUID();
this.register_once({
distinct_id: _B + e,
$device_id: e
}, ""), this._check_and_start_session_recording();
}, TB.prototype.get_distinct_id = function() {
return this.get_property("distinct_id");
}, TB.prototype.alias = function(e, t) {
if (e === this.get_property(dB)) return this.report_error("Attempting to create alias for existing People user - aborting."), -2;
var r = this;
return $D.isUndefined(t) && (t = this.get_distinct_id()), e !== t ? (this._register_single(fB, e), this.track("$create_alias", {
alias: e,
distinct_id: t
}, { skip_hooks: !0 }, function() {
r.identify(e);
})) : (this.report_error("alias matches current distinct_id - skipping api call."), this.identify(e), -1);
}, TB.prototype.name_tag = function(e) {
this._register_single("mp_name_tag", e);
}, TB.prototype.set_config = function(e) {
$D.isObject(e) && ($D.extend(this.config, e), e.batch_size && $D.each(this.request_batchers, function(e) {
e.resetBatchSize();
}), this.get_config("persistence_name") || (this.config.persistence_name = this.config.cookie_name), this.get_config("disable_persistence") || (this.config.disable_persistence = this.config.disable_cookie), this.persistence && this.persistence.update_config(this.config), E_.DEBUG = E_.DEBUG || this.get_config("debug"), ("autocapture" in e || "record_heatmap_data" in e) && this.autocapture && this.autocapture.init(), $D.isObject(e.hooks) && (this.hooks = {}, $D.each(e.hooks, function(e, t) {
if ($D.isFunction(e)) this.hooks[t] = [e];
else if ($D.isArray(e)) {
this.hooks[t] = [];
for (var r = 0; r < e.length; r++) $D.isFunction(e[r]) || BD.critical("Invalid hook added. Hook is not a function"), this.hooks[t].push(e[r]);
} else BD.critical("Invalid hooks added. Ensure that the hook values passed into config.hooks are functions or arrays of functions.");
}, this)));
}, TB.prototype.get_config = function(e) {
return this.config[e];
}, TB.prototype._run_hook = function(e) {
var t = kD.call(arguments, 1);
return $D.each(this.hooks[e], function(r) {
if (null === t) return null;
var n = r.apply(this, t);
void 0 === n ? (this.report_error(e + " hook did not return a valid value"), t = null) : ($D.isArray(n) || (n = [n]), t.splice.apply(t, [0, n.length].concat(n)));
}, this), t;
}, TB.prototype.get_property = function(e) {
return this.persistence.load_prop([e]);
}, TB.prototype.get_api_host = function(e) {
return this.get_config("api_hosts")[e] || this.get_config("api_host");
}, TB.prototype.toString = function() {
var e = this.get_config("name");
return e !== bB && (e = bB + "." + e), e;
}, TB.prototype._event_is_disabled = function(e) {
return $D.isBlockedUA(AD) || this._flags.disable_all_events || $D.include(this.__disabled_events, e);
}, TB.prototype._gdpr_init = function() {
"localStorage" === this.get_config("opt_out_tracking_persistence_type") && $D.localStorage.is_supported() && (!this.has_opted_in_tracking() && this.has_opted_in_tracking({ persistence_type: "cookie" }) && this.opt_in_tracking({ enable_persistence: !1 }), !this.has_opted_out_tracking() && this.has_opted_out_tracking({ persistence_type: "cookie" }) && this.opt_out_tracking({ clear_persistence: !1 }), this.clear_opt_in_out_tracking({
persistence_type: "cookie",
enable_persistence: !1
})), this.has_opted_out_tracking() ? this._gdpr_update_persistence({ clear_persistence: !0 }) : this.has_opted_in_tracking() || !this.get_config("opt_out_tracking_by_default") && !$D.cookie.get("mp_optout") || ($D.cookie.remove("mp_optout"), this.opt_out_tracking({ clear_persistence: this.get_config("opt_out_persistence_by_default") }));
}, TB.prototype._gdpr_update_persistence = function(e) {
var t;
if (e && e.clear_persistence) t = !0;
else {
if (!e || !e.enable_persistence) return;
t = !1;
}
this.get_config("disable_persistence") || this.persistence.disabled === t || this.persistence.set_disabled(t), t ? (this.stop_batch_senders(), this.stop_session_recording()) : this._batchers_were_started && this.start_batch_senders();
}, TB.prototype._gdpr_call_func = function(e, t) {
return t = $D.extend({
track: $D.bind(this.track, this),
persistence_type: this.get_config("opt_out_tracking_persistence_type"),
cookie_prefix: this.get_config("opt_out_tracking_cookie_prefix"),
cookie_expiration: this.get_config("cookie_expiration"),
cross_site_cookie: this.get_config("cross_site_cookie"),
cross_subdomain_cookie: this.get_config("cross_subdomain_cookie"),
cookie_domain: this.get_config("cookie_domain"),
secure_cookie: this.get_config("secure_cookie"),
ignore_dnt: this.get_config("ignore_dnt")
}, t), $D.localStorage.is_supported() || (t.persistence_type = "cookie"), e(this.get_config("token"), {
track: t.track,
trackEventName: t.track_event_name,
trackProperties: t.track_properties,
persistenceType: t.persistence_type,
persistencePrefix: t.cookie_prefix,
cookieDomain: t.cookie_domain,
cookieExpiration: t.cookie_expiration,
crossSiteCookie: t.cross_site_cookie,
crossSubdomainCookie: t.cross_subdomain_cookie,
secureCookie: t.secure_cookie,
ignoreDnt: t.ignore_dnt
});
}, TB.prototype.opt_in_tracking = function(e) {
e = $D.extend({ enable_persistence: !0 }, e), this._gdpr_call_func(mj, e), this._gdpr_update_persistence(e);
}, TB.prototype.opt_out_tracking = function(e) {
(e = $D.extend({
clear_persistence: !0,
delete_user: !0
}, e)).delete_user && this.people && this.people._identify_called() && (this.people.delete_user(), this.people.clear_charges()), this._gdpr_call_func(gj, e), this._gdpr_update_persistence(e);
}, TB.prototype.has_opted_in_tracking = function(e) {
return this._gdpr_call_func(vj, e);
}, TB.prototype.has_opted_out_tracking = function(e) {
return this._gdpr_call_func(yj, e);
}, TB.prototype.clear_opt_in_out_tracking = function(e) {
e = $D.extend({ enable_persistence: !0 }, e), this._gdpr_call_func(xj, e), this._gdpr_update_persistence(e);
}, TB.prototype.report_error = function(e, t) {
BD.error.apply(BD.error, arguments);
try {
t || e instanceof Error || (e = new Error(e)), this.get_config("error_reporter")(e, t);
} catch (t) {
BD.error(t);
}
}, TB.prototype.add_hook = function(e, t) {
this.hooks[e] || (this.hooks[e] = []), this.hooks[e].push(t);
}, TB.prototype.remove_hook = function(e, t) {
var r;
this.hooks[e] && (-1 !== (r = this.hooks[e].indexOf(t)) ? this.hooks[e].splice(r, 1) : BD.log("remove_hook failed. Matching hook was not found"));
}, TB.prototype.init = TB.prototype.init, TB.prototype.reset = TB.prototype.reset, TB.prototype.enable = TB.prototype.enable, TB.prototype.disable = TB.prototype.disable, TB.prototype.time_event = TB.prototype.time_event, TB.prototype.track = TB.prototype.track, TB.prototype.track_links = TB.prototype.track_links, TB.prototype.track_forms = TB.prototype.track_forms, TB.prototype.track_pageview = TB.prototype.track_pageview, TB.prototype.register = TB.prototype.register, TB.prototype.register_once = TB.prototype.register_once, TB.prototype.unregister = TB.prototype.unregister, TB.prototype.identify = TB.prototype.identify, TB.prototype.alias = TB.prototype.alias, TB.prototype.name_tag = TB.prototype.name_tag, TB.prototype.set_config = TB.prototype.set_config, TB.prototype.get_config = TB.prototype.get_config, TB.prototype.get_api_host = TB.prototype.get_api_host, TB.prototype.get_property = TB.prototype.get_property, TB.prototype.get_distinct_id = TB.prototype.get_distinct_id, TB.prototype.toString = TB.prototype.toString, TB.prototype.opt_out_tracking = TB.prototype.opt_out_tracking, TB.prototype.opt_in_tracking = TB.prototype.opt_in_tracking, TB.prototype.has_opted_out_tracking = TB.prototype.has_opted_out_tracking, TB.prototype.has_opted_in_tracking = TB.prototype.has_opted_in_tracking, TB.prototype.clear_opt_in_out_tracking = TB.prototype.clear_opt_in_out_tracking, TB.prototype.get_group = TB.prototype.get_group, TB.prototype.set_group = TB.prototype.set_group, TB.prototype.add_group = TB.prototype.add_group, TB.prototype.remove_group = TB.prototype.remove_group, TB.prototype.add_hook = TB.prototype.add_hook, TB.prototype.remove_hook = TB.prototype.remove_hook, TB.prototype.track_with_groups = TB.prototype.track_with_groups, TB.prototype.start_batch_senders = TB.prototype.start_batch_senders, TB.prototype.stop_batch_senders = TB.prototype.stop_batch_senders, TB.prototype.start_session_recording = TB.prototype.start_session_recording, TB.prototype.stop_session_recording = TB.prototype.stop_session_recording, TB.prototype.pause_session_recording = TB.prototype.pause_session_recording, TB.prototype.resume_session_recording = TB.prototype.resume_session_recording, TB.prototype.get_session_recording_properties = TB.prototype.get_session_recording_properties, TB.prototype.get_session_replay_url = TB.prototype.get_session_replay_url, TB.prototype.get_tab_id = TB.prototype.get_tab_id, TB.prototype.DEFAULT_API_ROUTES = CB, TB.prototype.__get_recorder = TB.prototype.__get_recorder, TB.prototype.__get_recording_init_promise = TB.prototype.__get_recording_init_promise, gB.prototype.properties = gB.prototype.properties, gB.prototype.update_search_keyword = gB.prototype.update_search_keyword, gB.prototype.update_referrer_info = gB.prototype.update_referrer_info, gB.prototype.get_cross_subdomain = gB.prototype.get_cross_subdomain, gB.prototype.clear = gB.prototype.clear;
var AB = {};
var PB = (yB = function(e, t) {
t();
}, oB = 0, (vB = new TB()).init = function(e, t, r) {
if (r) return vB[r] || (vB[r] = AB[r] = RB(e, t, r), vB[r]._loaded()), vB[r];
var n = vB;
AB[bB] ? n = AB[bB] : e && ((n = RB(e, t, bB))._loaded(), AB[bB] = n), vB = n, 1 === oB && (C_[bB] = vB), $D.each(AB, function(e, t) {
t !== bB && (vB[t] = e);
}), vB._ = $D;
}, vB.init(), function() {
function e() {
e.done || (e.done = !0, EB = !0, SB = !1, $D.each(AB, function(e) {
e._dom_loaded();
}));
}
if (RD.addEventListener) "complete" === RD.readyState ? e() : RD.addEventListener("DOMContentLoaded", e, !1);
else if (RD.attachEvent) {
RD.attachEvent("onreadystatechange", e);
var t = !1;
try {
t = null === C_.frameElement;
} catch (e) {}
RD.documentElement.doScroll && t && function t() {
try {
RD.documentElement.doScroll("left");
} catch (e) {
setTimeout(t, 1);
return;
}
e();
}();
}
$D.register_event(C_, "load", e, !0);
}(), vB);
var NB = "elementor-one-assets";
var LB = null;
function DB() {
return LB;
}
var jB = {
initialize(e, t) {
if (!LB) try {
PB.init(e, {
api_host: "https://api-eu.mixpanel.com",
debug: "production" !== t,
track_pageview: !1,
persistence: "localStorage",
persistence_name: NB
}, NB), LB = PB[NB], LB.opt_in_tracking();
} catch (e) {
console.warn("[elementor-one-assets] Failed to initialize tracking:", e);
}
},
registerOnce(e) {
const t = DB();
t === null || t === void 0 || t.register_once(e);
},
track(e, t) {
const r = DB();
r === null || r === void 0 || r.track(e, t);
},
isInitialized: () => null !== LB
};
var FB = "plugin-settings";
var $B = (e) => {
const { enabled: t = !0 } = e || {};
return py({
queryKey: [FB],
queryFn: () => x_.getPluginSettings(),
enabled: t
});
};
var BB = 784;
var zB = "action_type";
var VB = "app_context";
var UB = /* @__PURE__ */ new Set(["elementor", "elementor-home"]);
var qB = new oy({ defaultOptions: { queries: {
refetchOnWindowFocus: !1,
refetchOnMount: !1,
retryOnMount: !1,
retry: !1
} } });
var WB = (0, react.createContext)(null);
var HB = ({ env: t, language: r = "en", isRTL: n = !1, children: o }) => {
const i = (0, react.useMemo)(() => ((e) => fy[e])(t), [t]);
const s = (0, react.useMemo)(() => ({
config: i,
isRTL: n
}), [i, n]);
return (0, react.useEffect)(() => {
Jh.changeLanguage(r);
}, [r]), (0, react.useEffect)(() => {
Ow.initialize(i);
}, [i]), (0, react.useEffect)(() => {
var _window$elementorOneS;
(_window$elementorOneS = window.elementorOneSettingsData) !== null && _window$elementorOneS !== void 0 && _window$elementorOneS.shareUsageData && jB.initialize("150605b3b9f979922f2ac5a52e2dcfe9", t);
}, [t]), (0, import_jsx_runtime.jsx)(ay, {
client: qB,
children: (0, import_jsx_runtime.jsx)(WB.Provider, {
value: s,
children: o
})
});
};
var GB = () => {
const e = (0, react.useContext)(WB);
if (!e) throw new Error("Wrap your component in <ElementorOneAssetsProvider> to access the env config");
return e.config;
};
var KB = Ki;
var YB = () => {
return KB(Ss().breakpoints.down("sm"));
};
var ZB = (e) => e >= 600 && e <= BB;
var XB = (e) => e <= BB ? 46 : 32;
var JB = (e, t) => {
const r = XB(e);
return ZB(e) || e > BB ? r : t >= r ? 0 : r - t;
};
var QB = function(e) {
return e.ACTIVE = "active", e.INACTIVE = "inactive", e;
}({});
function ez(e) {
return Qn("MuiSkeleton", e);
}
ks("MuiSkeleton", [
"root",
"text",
"rectangular",
"rounded",
"circular",
"pulse",
"wave",
"withChildren",
"fitContent",
"heightAuto"
]);
var tz = [
"animation",
"className",
"component",
"height",
"style",
"variant",
"width"
];
var rz;
var nz;
var oz;
var iz;
var sz = (e) => e;
var az = Gt(rz || (rz = sz`
0% {
opacity: 1;
}
50% {
opacity: 0.4;
}
100% {
opacity: 1;
}
`));
var lz = Gt(nz || (nz = sz`
0% {
transform: translateX(-100%);
}
50% {
/* +0.5s of delay between each loop */
transform: translateX(100%);
}
100% {
transform: translateX(100%);
}
`));
var cz = pi("span", {
name: "MuiSkeleton",
slot: "Root",
overridesResolver: (e, t) => {
const { ownerState: r } = e;
return [
t.root,
t[r.variant],
!1 !== r.animation && t[r.animation],
r.hasChildren && t.withChildren,
r.hasChildren && !r.width && t.fitContent,
r.hasChildren && !r.height && t.heightAuto
];
}
})(({ theme: e, ownerState: t }) => {
const r = function(e) {
return String(e).match(/[\d.\-+]*\s*(.*)/)[1] || "";
}(e.shape.borderRadius) || "px";
const n = function(e) {
return parseFloat(e);
}(e.shape.borderRadius);
return _({
display: "block",
backgroundColor: e.vars ? e.vars.palette.Skeleton.bg : Ji(e.palette.text.primary, "light" === e.palette.mode ? .11 : .13),
height: "1.2em"
}, "text" === t.variant && {
marginTop: 0,
marginBottom: 0,
height: "auto",
transformOrigin: "0 55%",
transform: "scale(1, 0.60)",
borderRadius: `${n}${r}/${Math.round(n / .6 * 10) / 10}${r}`,
"&:empty:before": { content: "\"\\00a0\"" }
}, "circular" === t.variant && { borderRadius: "50%" }, "rounded" === t.variant && { borderRadius: (e.vars || e).shape.borderRadius }, t.hasChildren && { "& > *": { visibility: "hidden" } }, t.hasChildren && !t.width && { maxWidth: "fit-content" }, t.hasChildren && !t.height && { height: "auto" });
}, ({ ownerState: e }) => "pulse" === e.animation && Ht(oz || (oz = sz`
animation: ${0} 2s ease-in-out 0.5s infinite;
`), az), ({ ownerState: e, theme: t }) => "wave" === e.animation && Ht(iz || (iz = sz`
position: relative;
overflow: hidden;
/* Fix bug in Safari https://bugs.webkit.org/show_bug.cgi?id=68196 */
-webkit-mask-image: -webkit-radial-gradient(white, black);
&::after {
animation: ${0} 2s linear 0.5s infinite;
background: linear-gradient(
90deg,
transparent,
${0},
transparent
);
content: '';
position: absolute;
transform: translateX(-100%); /* Avoid flash during server-side hydration */
bottom: 0;
left: 0;
right: 0;
top: 0;
}
`), lz, (t.vars || t).palette.action.hover));
var uz = react.forwardRef(function(t, r) {
const n = yi({
props: t,
name: "MuiSkeleton"
}), { animation: o = "pulse", className: i, component: s = "span", height: a, style: l, variant: c = "text", width: u } = n, p = w(n, tz), d = _({}, n, {
animation: o,
component: s,
variant: c,
hasChildren: Boolean(p.children)
}), f = ((e) => {
const { classes: t, variant: r, animation: n, hasChildren: o, width: i, height: s } = e;
return ne({ root: [
"root",
r,
n,
o && "withChildren",
o && !i && "fitContent",
o && !s && "heightAuto"
] }, ez, t);
})(d);
return (0, import_jsx_runtime.jsx)(cz, _({
as: s,
ref: r,
className: re(f.root, i),
ownerState: d
}, p, { style: _({
width: u,
height: a
}, l) }));
});
uz.propTypes = {
animation: ee.oneOf([
"pulse",
"wave",
!1
]),
children: ee.node,
classes: ee.object,
className: ee.string,
component: ee.elementType,
height: ee.oneOfType([ee.number, ee.string]),
style: ee.object,
sx: ee.oneOfType([
ee.arrayOf(ee.oneOfType([
ee.func,
ee.object,
ee.bool
])),
ee.func,
ee.object
]),
variant: ee.oneOfType([ee.oneOf([
"circular",
"rectangular",
"rounded",
"text"
]), ee.string]),
width: ee.oneOfType([ee.number, ee.string])
};
var pz = uz;
var dz = react.default.forwardRef((e, t) => react.default.createElement(pz, _objectSpread2(_objectSpread2({}, e), {}, { ref: t })));
function fz(t, r) {
function o(n, o) {
return (0, import_jsx_runtime.jsx)(tu, _({
"data-testid": `${r}Icon`,
ref: o
}, n, { children: t }));
}
return o.displayName = `${r}Icon`, o.muiName = tu.muiName, react.memo(react.forwardRef(o));
}
var hz = fz((0, import_jsx_runtime.jsx)("path", { d: "M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z" }), "Cancel");
function mz(e) {
return Qn("MuiChip", e);
}
var gz = ks("MuiChip", [
"root",
"sizeSmall",
"sizeMedium",
"colorError",
"colorInfo",
"colorPrimary",
"colorSecondary",
"colorSuccess",
"colorWarning",
"disabled",
"clickable",
"clickableColorPrimary",
"clickableColorSecondary",
"deletable",
"deletableColorPrimary",
"deletableColorSecondary",
"outlined",
"filled",
"outlinedPrimary",
"outlinedSecondary",
"filledPrimary",
"filledSecondary",
"avatar",
"avatarSmall",
"avatarMedium",
"avatarColorPrimary",
"avatarColorSecondary",
"icon",
"iconSmall",
"iconMedium",
"iconColorPrimary",
"iconColorSecondary",
"label",
"labelSmall",
"labelMedium",
"deleteIcon",
"deleteIconSmall",
"deleteIconMedium",
"deleteIconColorPrimary",
"deleteIconColorSecondary",
"deleteIconOutlinedColorPrimary",
"deleteIconOutlinedColorSecondary",
"deleteIconFilledColorPrimary",
"deleteIconFilledColorSecondary",
"focusVisible"
]);
var vz = [
"avatar",
"className",
"clickable",
"color",
"component",
"deleteIcon",
"disabled",
"icon",
"label",
"onClick",
"onDelete",
"onKeyDown",
"onKeyUp",
"size",
"variant",
"tabIndex",
"skipFocusWhenDisabled"
];
var yz = pi("div", {
name: "MuiChip",
slot: "Root",
overridesResolver: (e, t) => {
const { ownerState: r } = e, { color: n, iconColor: o, clickable: i, onDelete: s, size: a, variant: l } = r;
return [
{ [`& .${gz.avatar}`]: t.avatar },
{ [`& .${gz.avatar}`]: t[`avatar${bi(a)}`] },
{ [`& .${gz.avatar}`]: t[`avatarColor${bi(n)}`] },
{ [`& .${gz.icon}`]: t.icon },
{ [`& .${gz.icon}`]: t[`icon${bi(a)}`] },
{ [`& .${gz.icon}`]: t[`iconColor${bi(o)}`] },
{ [`& .${gz.deleteIcon}`]: t.deleteIcon },
{ [`& .${gz.deleteIcon}`]: t[`deleteIcon${bi(a)}`] },
{ [`& .${gz.deleteIcon}`]: t[`deleteIconColor${bi(n)}`] },
{ [`& .${gz.deleteIcon}`]: t[`deleteIcon${bi(l)}Color${bi(n)}`] },
t.root,
t[`size${bi(a)}`],
t[`color${bi(n)}`],
i && t.clickable,
i && "default" !== n && t[`clickableColor${bi(n)})`],
s && t.deletable,
s && "default" !== n && t[`deletableColor${bi(n)}`],
t[l],
t[`${l}${bi(n)}`]
];
}
})(({ theme: e, ownerState: t }) => {
const r = "light" === e.palette.mode ? e.palette.grey[700] : e.palette.grey[300];
return _({
maxWidth: "100%",
fontFamily: e.typography.fontFamily,
fontSize: e.typography.pxToRem(13),
display: "inline-flex",
alignItems: "center",
justifyContent: "center",
height: 32,
color: (e.vars || e).palette.text.primary,
backgroundColor: (e.vars || e).palette.action.selected,
borderRadius: 16,
whiteSpace: "nowrap",
transition: e.transitions.create(["background-color", "box-shadow"]),
cursor: "unset",
outline: 0,
textDecoration: "none",
border: 0,
padding: 0,
verticalAlign: "middle",
boxSizing: "border-box",
[`&.${gz.disabled}`]: {
opacity: (e.vars || e).palette.action.disabledOpacity,
pointerEvents: "none"
},
[`& .${gz.avatar}`]: {
marginLeft: 5,
marginRight: -6,
width: 24,
height: 24,
color: e.vars ? e.vars.palette.Chip.defaultAvatarColor : r,
fontSize: e.typography.pxToRem(12)
},
[`& .${gz.avatarColorPrimary}`]: {
color: (e.vars || e).palette.primary.contrastText,
backgroundColor: (e.vars || e).palette.primary.dark
},
[`& .${gz.avatarColorSecondary}`]: {
color: (e.vars || e).palette.secondary.contrastText,
backgroundColor: (e.vars || e).palette.secondary.dark
},
[`& .${gz.avatarSmall}`]: {
marginLeft: 4,
marginRight: -4,
width: 18,
height: 18,
fontSize: e.typography.pxToRem(10)
},
[`& .${gz.icon}`]: _({
marginLeft: 5,
marginRight: -6
}, "small" === t.size && {
fontSize: 18,
marginLeft: 4,
marginRight: -4
}, t.iconColor === t.color && _({ color: e.vars ? e.vars.palette.Chip.defaultIconColor : r }, "default" !== t.color && { color: "inherit" })),
[`& .${gz.deleteIcon}`]: _({
WebkitTapHighlightColor: "transparent",
color: e.vars ? `rgba(${e.vars.palette.text.primaryChannel} / 0.26)` : so.alpha(e.palette.text.primary, .26),
fontSize: 22,
cursor: "pointer",
margin: "0 5px 0 -6px",
"&:hover": { color: e.vars ? `rgba(${e.vars.palette.text.primaryChannel} / 0.4)` : so.alpha(e.palette.text.primary, .4) }
}, "small" === t.size && {
fontSize: 16,
marginRight: 4,
marginLeft: -4
}, "default" !== t.color && {
color: e.vars ? `rgba(${e.vars.palette[t.color].contrastTextChannel} / 0.7)` : so.alpha(e.palette[t.color].contrastText, .7),
"&:hover, &:active": { color: (e.vars || e).palette[t.color].contrastText }
})
}, "small" === t.size && { height: 24 }, "default" !== t.color && {
backgroundColor: (e.vars || e).palette[t.color].main,
color: (e.vars || e).palette[t.color].contrastText
}, t.onDelete && { [`&.${gz.focusVisible}`]: { backgroundColor: e.vars ? `rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))` : so.alpha(e.palette.action.selected, e.palette.action.selectedOpacity + e.palette.action.focusOpacity) } }, t.onDelete && "default" !== t.color && { [`&.${gz.focusVisible}`]: { backgroundColor: (e.vars || e).palette[t.color].dark } });
}, ({ theme: e, ownerState: t }) => _({}, t.clickable && {
userSelect: "none",
WebkitTapHighlightColor: "transparent",
cursor: "pointer",
"&:hover": { backgroundColor: e.vars ? `rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))` : so.alpha(e.palette.action.selected, e.palette.action.selectedOpacity + e.palette.action.hoverOpacity) },
[`&.${gz.focusVisible}`]: { backgroundColor: e.vars ? `rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))` : so.alpha(e.palette.action.selected, e.palette.action.selectedOpacity + e.palette.action.focusOpacity) },
"&:active": { boxShadow: (e.vars || e).shadows[1] }
}, t.clickable && "default" !== t.color && { [`&:hover, &.${gz.focusVisible}`]: { backgroundColor: (e.vars || e).palette[t.color].dark } }), ({ theme: e, ownerState: t }) => _({}, "outlined" === t.variant && {
backgroundColor: "transparent",
border: e.vars ? `1px solid ${e.vars.palette.Chip.defaultBorder}` : `1px solid ${"light" === e.palette.mode ? e.palette.grey[400] : e.palette.grey[700]}`,
[`&.${gz.clickable}:hover`]: { backgroundColor: (e.vars || e).palette.action.hover },
[`&.${gz.focusVisible}`]: { backgroundColor: (e.vars || e).palette.action.focus },
[`& .${gz.avatar}`]: { marginLeft: 4 },
[`& .${gz.avatarSmall}`]: { marginLeft: 2 },
[`& .${gz.icon}`]: { marginLeft: 4 },
[`& .${gz.iconSmall}`]: { marginLeft: 2 },
[`& .${gz.deleteIcon}`]: { marginRight: 5 },
[`& .${gz.deleteIconSmall}`]: { marginRight: 3 }
}, "outlined" === t.variant && "default" !== t.color && {
color: (e.vars || e).palette[t.color].main,
border: `1px solid ${e.vars ? `rgba(${e.vars.palette[t.color].mainChannel} / 0.7)` : so.alpha(e.palette[t.color].main, .7)}`,
[`&.${gz.clickable}:hover`]: { backgroundColor: e.vars ? `rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})` : so.alpha(e.palette[t.color].main, e.palette.action.hoverOpacity) },
[`&.${gz.focusVisible}`]: { backgroundColor: e.vars ? `rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.focusOpacity})` : so.alpha(e.palette[t.color].main, e.palette.action.focusOpacity) },
[`& .${gz.deleteIcon}`]: {
color: e.vars ? `rgba(${e.vars.palette[t.color].mainChannel} / 0.7)` : so.alpha(e.palette[t.color].main, .7),
"&:hover, &:active": { color: (e.vars || e).palette[t.color].main }
}
}));
var bz = pi("span", {
name: "MuiChip",
slot: "Label",
overridesResolver: (e, t) => {
const { ownerState: r } = e, { size: n } = r;
return [t.label, t[`label${bi(n)}`]];
}
})(({ ownerState: e }) => _({
overflow: "hidden",
textOverflow: "ellipsis",
paddingLeft: 12,
paddingRight: 12,
whiteSpace: "nowrap"
}, "outlined" === e.variant && {
paddingLeft: 11,
paddingRight: 11
}, "small" === e.size && {
paddingLeft: 8,
paddingRight: 8
}, "small" === e.size && "outlined" === e.variant && {
paddingLeft: 7,
paddingRight: 7
}));
function wz(e) {
return "Backspace" === e.key || "Delete" === e.key;
}
var _z = react.forwardRef(function(r, o) {
const i = yi({
props: r,
name: "MuiChip"
}), { avatar: s, className: a, clickable: l, color: c = "default", component: u, deleteIcon: p, disabled: d = !1, icon: f, label: h, onClick: m, onDelete: g, onKeyDown: v, onKeyUp: y, size: b = "medium", variant: x = "filled", tabIndex: S, skipFocusWhenDisabled: k = !1 } = i, C = w(i, vz), O = react.useRef(null), E = ca(O, o), T = (e) => {
e.stopPropagation(), g && g(e);
}, R = !(!1 === l || !m) || l, I = R || g ? ll : u || "div", M = _({}, i, {
component: I,
disabled: d,
size: b,
color: c,
iconColor: react.isValidElement(f) && f.props.color || c,
onDelete: !!g,
clickable: R,
variant: x
}), A = ((e) => {
const { classes: t, disabled: r, size: n, color: o, iconColor: i, onDelete: s, clickable: a, variant: l } = e;
return ne({
root: [
"root",
l,
r && "disabled",
`size${bi(n)}`,
`color${bi(o)}`,
a && "clickable",
a && `clickableColor${bi(o)}`,
s && "deletable",
s && `deletableColor${bi(o)}`,
`${l}${bi(o)}`
],
label: ["label", `label${bi(n)}`],
avatar: [
"avatar",
`avatar${bi(n)}`,
`avatarColor${bi(o)}`
],
icon: [
"icon",
`icon${bi(n)}`,
`iconColor${bi(i)}`
],
deleteIcon: [
"deleteIcon",
`deleteIcon${bi(n)}`,
`deleteIconColor${bi(o)}`,
`deleteIcon${bi(l)}Color${bi(o)}`
]
}, mz, t);
})(M), P = I === ll ? _({
component: u || "div",
focusVisibleClassName: A.focusVisible
}, g && { disableRipple: !0 }) : {};
let N = null;
g && (N = p && react.isValidElement(p) ? react.cloneElement(p, {
className: re(p.props.className, A.deleteIcon),
onClick: T
}) : (0, import_jsx_runtime.jsx)(hz, {
className: re(A.deleteIcon),
onClick: T
}));
let L = null;
s && react.isValidElement(s) && (L = react.cloneElement(s, { className: re(A.avatar, s.props.className) }));
let D = null;
return f && react.isValidElement(f) && (D = react.cloneElement(f, { className: re(A.icon, f.props.className) })), L && D && console.error("MUI: The Chip component can not handle the avatar and the icon prop at the same time. Pick one."), (0, import_jsx_runtime.jsxs)(yz, _({
as: I,
className: re(A.root, a),
disabled: !(!R || !d) || void 0,
onClick: m,
onKeyDown: (e) => {
e.currentTarget === e.target && wz(e) && e.preventDefault(), v && v(e);
},
onKeyUp: (e) => {
e.currentTarget === e.target && (g && wz(e) ? g(e) : "Escape" === e.key && O.current && O.current.blur()), y && y(e);
},
ref: E,
tabIndex: k && d ? -1 : S,
ownerState: M
}, P, C, { children: [
L || D,
(0, import_jsx_runtime.jsx)(bz, {
className: re(A.label),
ownerState: M,
children: h
}),
N
] }));
});
_z.propTypes = {
avatar: ee.element,
children: function(e, t, r, n, o) {
const i = o || t;
return void 0 !== e[t] ? /* @__PURE__ */ new Error(`The prop \`${i}\` is not supported. Please remove it.`) : null;
},
classes: ee.object,
className: ee.string,
clickable: ee.bool,
color: ee.oneOfType([ee.oneOf([
"default",
"primary",
"secondary",
"error",
"info",
"success",
"warning"
]), ee.string]),
component: ee.elementType,
deleteIcon: ee.element,
disabled: ee.bool,
icon: ee.element,
label: ee.node,
onClick: ee.func,
onDelete: ee.func,
onKeyDown: ee.func,
onKeyUp: ee.func,
size: ee.oneOfType([ee.oneOf(["medium", "small"]), ee.string]),
skipFocusWhenDisabled: ee.bool,
sx: ee.oneOfType([
ee.arrayOf(ee.oneOfType([
ee.func,
ee.object,
ee.bool
])),
ee.func,
ee.object
]),
tabIndex: ee.number,
variant: ee.oneOfType([ee.oneOf(["filled", "outlined"]), ee.string])
};
var xz = _z;
var Sz = Il(xz)(({ theme: e, ownerState: t }) => "rounded" !== t.shape ? null : { borderRadius: e.shape.borderRadius * e.shape.__unstableBorderRadiusMultipliers[1] });
var kz = { shape: "pill" };
var Cz = react.default.forwardRef((e, t) => {
const _kz$e = _objectSpread2(_objectSpread2({}, kz), e), { shape: r } = _kz$e, n = _objectWithoutProperties(_kz$e, _excluded8);
return react.default.createElement(Sz, _objectSpread2(_objectSpread2({}, n), {}, {
ref: t,
ownerState: { shape: r }
}));
});
Cz.defaultProps = kz;
var Oz = Cz;
var Ez = Il(Xh)(({ theme: e }) => ({ transform: "rtl" === e.direction ? "scaleX(-1)" : void 0 }));
var Tz = (_ref18) => {
var _window$elementorOneS2;
var _window$elementorOneS3;
let { onDisconnect: n, onConnectClick: o } = _ref18, i = _objectWithoutProperties(_ref18, _excluded9);
const { t: s } = vd("common", { i18n: Jh }), { MY_ELEMENTOR_URL: a } = GB(), l = (_window$elementorOneS2 = (_window$elementorOneS3 = window.elementorOneSettingsData) === null || _window$elementorOneS3 === void 0 ? void 0 : _window$elementorOneS3.canUserManageOptions) !== null && _window$elementorOneS2 !== void 0 ? _window$elementorOneS2 : !1, { data: c, isLoading: u } = $B({ enabled: l }), { mutate: p, isPending: d } = (() => {
const e = sy();
return dy({
mutationFn: (e) => x_.initConnect(e && "string" == typeof e ? e : "new"),
onSuccess: (t) => {
var _window$open;
(_window$open = window.open(t, "_self")) === null || _window$open === void 0 || _window$open.focus(), e.invalidateQueries({ queryKey: [FB] });
}
});
})(), { mutate: f, isPending: h } = (() => {
const e = sy();
return dy({
mutationFn: () => x_.disconnect(),
onSuccess: () => {
e.invalidateQueries({ queryKey: [FB] });
}
});
})();
return (0, import_jsx_runtime.jsx)(Hc, {
colorScheme: "light",
children: (0, import_jsx_runtime.jsx)(Rh, _objectSpread2(_objectSpread2({}, i), {}, {
"data-test": "user-profile-menu",
anchorOrigin: {
vertical: "bottom",
horizontal: "right"
},
transformOrigin: {
vertical: "top",
horizontal: "right"
},
PaperProps: { sx: {
overflow: "visible !important",
borderRadius: 1,
py: 1,
minWidth: 300
} },
children: u ? (0, import_jsx_runtime.jsxs)(zs, {
alignItems: "center",
gap: 1,
children: [
(0, import_jsx_runtime.jsx)(dz, {
variant: "text",
width: "90%",
height: 30
}),
(0, import_jsx_runtime.jsx)(du, { sx: {
mx: 2,
width: "80%"
} }),
(0, import_jsx_runtime.jsx)(dz, {
variant: "text",
width: "90%",
height: 30
})
]
}) : [
(0, import_jsx_runtime.jsxs)(Kh, {
dense: !0,
onClick: function() {
var _ref19 = _asyncToGenerator(function* () {
var _i$onClose;
window.open(a, "_blank"), (_i$onClose = i.onClose) === null || _i$onClose === void 0 || _i$onClose.call(i, {}, "backdropClick");
});
return function onClick() {
return _ref19.apply(this, arguments);
};
}(),
"data-test": "user-menu-go-to-account",
children: [(0, import_jsx_runtime.jsx)(Zh, { children: s("header.userProfileMenu.goToMyAccount") }), (0, import_jsx_runtime.jsx)(Yh, { children: (0, import_jsx_runtime.jsx)(Ez, { fontSize: "small" }) })]
}, "go-to-account"),
(0, import_jsx_runtime.jsx)(du, { sx: { mx: 2 } }, "divider"),
(c === null || c === void 0 ? void 0 : c.isUrlMismatch) ? (0, import_jsx_runtime.jsxs)(Kh, {
dense: !0,
onClick: () => {
var _i$onClose2;
window.location.href = window.location.origin + window.location.pathname + "?page=elementor-home#/home/url-mismatch", (_i$onClose2 = i.onClose) === null || _i$onClose2 === void 0 || _i$onClose2.call(i, {}, "backdropClick");
},
sx: { justifyContent: "space-between" },
"data-test": "user-menu-fix-url-mismatch",
children: [(0, import_jsx_runtime.jsx)(Zh, { children: s("header.userProfileMenu.urlMismatch") }), (0, import_jsx_runtime.jsx)(na, {
sx: { color: "info.main" },
variant: "caption",
children: s("header.userProfileMenu.fixUrlMismatch")
})]
}, "fix-url-mismatch") : (c === null || c === void 0 ? void 0 : c.isConnected) ? (0, import_jsx_runtime.jsxs)(Kh, {
dense: !0,
disabled: h,
"data-test": "user-menu-disconnect",
children: [
(0, import_jsx_runtime.jsxs)(Zh, { children: [
s("header.userProfileMenu.elementorOneActive"),
" ",
(0, import_jsx_runtime.jsx)(Oz, {
variant: "standard",
label: s("header.userProfileMenu.active"),
color: "success",
size: "small"
})
] }),
(0, import_jsx_runtime.jsx)(Zh, {
onClick: () => {
h || f(void 0, { onSuccess: () => {
var _i$onClose3;
n === null || n === void 0 || n(), (_i$onClose3 = i.onClose) === null || _i$onClose3 === void 0 || _i$onClose3.call(i, {}, "backdropClick");
} });
},
sx: {
textAlign: "right",
color: "info.main",
cursor: "pointer"
},
children: s("header.userProfileMenu.disconnect")
}),
(0, import_jsx_runtime.jsx)(Yh, { children: h ? (0, import_jsx_runtime.jsx)(qu, {
size: 16,
"data-test": "user-menu-disconnect-loader"
}) : (0, import_jsx_runtime.jsx)(import_jsx_runtime.Fragment, {}) })
]
}, "disconnect") : (0, import_jsx_runtime.jsxs)(Kh, {
dense: !0,
onClick: () => {
d || (o === null || o === void 0 || o(), p());
},
disabled: d,
sx: { justifyContent: "space-between" },
"data-test": "user-menu-connect",
children: [(0, import_jsx_runtime.jsx)(Zh, { children: s("header.userProfileMenu.connectPreText") }), d ? (0, import_jsx_runtime.jsx)(qu, {
size: 16,
"data-test": "user-menu-connect-loader"
}) : (0, import_jsx_runtime.jsx)(na, {
sx: { color: "info.main" },
variant: "caption",
children: s("header.userProfileMenu.connect")
})]
}, "connect")
]
}))
});
};
var Rz = ({ onDisconnect: n, onClick: o, onConnectClick: i }) => {
const { t: s } = vd("common", { i18n: Jh }), a = YB(), l = Td({
variant: "popover",
popupId: "user-info-popover"
}), c = (e) => {
var _xd$onClick;
var _xd;
o === null || o === void 0 || o(), (_xd$onClick = (_xd = xd(l)).onClick) === null || _xd$onClick === void 0 || _xd$onClick.call(_xd, e);
};
return (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [a ? (0, import_jsx_runtime.jsx)(Zc, _objectSpread2(_objectSpread2({}, xd(l)), {}, {
onClick: c,
"data-test": "header-user-button",
children: (0, import_jsx_runtime.jsx)(fu, {})
})) : (0, import_jsx_runtime.jsx)(Xu, _objectSpread2(_objectSpread2({
startIcon: (0, import_jsx_runtime.jsx)(fu, {}),
color: "inherit",
size: "small"
}, xd(l)), {}, {
onClick: c,
"data-test": "header-user-button",
children: s("header.userInfo")
})), (0, import_jsx_runtime.jsx)(Tz, _objectSpread2({
onDisconnect: n,
onConnectClick: i
}, Sd(l)))] });
};
var Iz = react.forwardRef((e, t) => react.createElement(ru, _objectSpread2(_objectSpread2({ viewBox: "0 0 24 24" }, e), {}, { ref: t }), react.createElement("path", {
fillRule: "evenodd",
clipRule: "evenodd",
d: "M15.0221 2.2505C14.7086 2.2428 14.3993 2.32462 14.1306 2.48639C13.8619 2.64816 13.6449 2.88316 13.5049 3.16386L10.9999 8.19197L3.92384 11.2998C3.49889 11.4865 3.16549 11.8343 2.99698 12.2667C2.82848 12.6992 2.83867 13.1809 3.02531 13.6058L4.63384 17.2682C4.82048 17.6931 5.16829 18.0265 5.60074 18.195C6.0332 18.3635 6.51489 18.3533 6.93984 18.1667L8.9999 17.2619L10.709 21.1532C10.8956 21.5781 11.2434 21.9115 11.6759 22.08C12.1083 22.2485 12.59 22.2383 13.015 22.0517L13.9306 21.6496C14.3555 21.4629 14.6889 21.1151 14.8574 20.6827C15.0259 20.2502 15.0157 19.7685 14.8291 19.3436L13.12 15.4523L14.0159 15.0588L19.4131 16.616C19.7145 16.7029 20.0346 16.7021 20.3355 16.6137C20.6364 16.5253 20.9059 16.3529 21.1124 16.1168C21.3188 15.8807 21.4537 15.5907 21.5013 15.2806C21.5488 14.9707 21.507 14.6537 21.3808 14.3667M21.3808 14.3667L20.4142 12.1659C21.0102 11.7447 21.4752 11.1551 21.7441 10.4649C22.1052 9.53824 22.0834 8.50606 21.6834 7.59546C21.2835 6.68486 20.5382 5.97043 19.6115 5.60934C18.9213 5.3404 18.1726 5.28388 17.4591 5.43778L16.4927 3.23726C16.3667 2.95018 16.1613 2.70457 15.901 2.52988C15.6405 2.35511 15.3357 2.2582 15.0221 2.2505M18.0836 6.85961C18.4152 6.83504 18.7512 6.88399 19.0669 7.00698C19.6229 7.22364 20.0701 7.6523 20.3101 8.19866C20.55 8.74502 20.5631 9.36433 20.3465 9.92035C20.2235 10.236 20.0321 10.5166 19.7897 10.7441L18.0836 6.85961ZM15.1191 3.8401C15.1077 3.81399 15.0889 3.79133 15.0652 3.77544C15.0415 3.75956 15.0138 3.75075 14.9853 3.75005C14.9568 3.74935 14.9287 3.75678 14.9042 3.77149C14.8798 3.7862 14.8601 3.80756 14.8474 3.83308L12.2214 9.10391C12.1432 9.26095 12.0123 9.38559 11.8517 9.45615L10.7072 9.95881L12.5168 14.0789L13.6613 13.5763C13.8219 13.5057 14.0022 13.4937 14.1708 13.5423L19.8288 15.1748C19.8562 15.1827 19.8852 15.1826 19.9126 15.1746C19.9399 15.1665 19.9645 15.1509 19.9832 15.1294C20.002 15.1079 20.0143 15.0816 20.0186 15.0534C20.0229 15.0252 20.0191 14.9964 20.0076 14.9703L15.1191 3.8401ZM11.7466 16.0555L13.4557 19.9468C13.4824 20.0075 13.4838 20.0763 13.4598 20.1381C13.4357 20.1999 13.3881 20.2495 13.3274 20.2762L12.4118 20.6783C12.3511 20.705 12.2823 20.7064 12.2205 20.6824C12.1587 20.6583 12.109 20.6107 12.0824 20.55L10.3733 16.6587L11.7466 16.0555ZM11.1434 14.6821L9.33384 10.562L4.52704 12.6732C4.46633 12.6999 4.4187 12.7496 4.39463 12.8113C4.37056 12.8731 4.37201 12.9419 4.39868 13.0026L6.00721 16.665C6.03387 16.7257 6.08356 16.7733 6.14534 16.7974C6.20712 16.8214 6.27593 16.82 6.33664 16.7933L11.1434 14.6821Z"
})));
var Mz = [
"addEndListener",
"appear",
"children",
"container",
"direction",
"easing",
"in",
"onEnter",
"onEntered",
"onEntering",
"onExit",
"onExited",
"onExiting",
"style",
"timeout",
"TransitionComponent"
];
function Az(e) {
return "function" == typeof e ? e() : e;
}
function Pz(e, t, r) {
const n = function(e, t, r) {
const n = t.getBoundingClientRect();
const o = r && r.getBoundingClientRect();
const i = ef(t);
let s;
if (t.fakeTransform) s = t.fakeTransform;
else {
const e = i.getComputedStyle(t);
s = e.getPropertyValue("-webkit-transform") || e.getPropertyValue("transform");
}
let a = 0;
let l = 0;
if (s && "none" !== s && "string" == typeof s) {
const e = s.split("(")[1].split(")")[0].split(",");
a = parseInt(e[4], 10), l = parseInt(e[5], 10);
}
return "left" === e ? o ? `translateX(${o.right + a - n.left}px)` : `translateX(${i.innerWidth + a - n.left}px)` : "right" === e ? o ? `translateX(-${n.right - o.left - a}px)` : `translateX(-${n.left + n.width - a}px)` : "up" === e ? o ? `translateY(${o.bottom + l - n.top}px)` : `translateY(${i.innerHeight + l - n.top}px)` : o ? `translateY(-${n.top - o.top + n.height - l}px)` : `translateY(-${n.top + n.height - l}px)`;
}(e, t, Az(r));
n && (t.style.webkitTransform = n, t.style.transform = n);
}
var Nz = react.forwardRef(function(t, r) {
const o = Ss(), i = {
enter: o.transitions.easing.easeOut,
exit: o.transitions.easing.sharp
}, s = {
enter: o.transitions.duration.enteringScreen,
exit: o.transitions.duration.leavingScreen
}, { addEndListener: a, appear: l = !0, children: c, container: u, direction: p = "down", easing: d = i, in: f, onEnter: h, onEntered: m, onEntering: g, onExit: v, onExited: y, onExiting: b, style: x, timeout: S = s, TransitionComponent: k = La } = t, C = w(t, Mz), O = react.useRef(null), E = ca(c.ref, O, r), T = (e) => (t) => {
e && (void 0 === t ? e(O.current) : e(O.current, t));
}, R = T((e, t) => {
Pz(p, e, u), h && h(e, t);
}), I = T((e, t) => {
const r = Of({
timeout: S,
style: x,
easing: d
}, { mode: "enter" });
e.style.webkitTransition = o.transitions.create("-webkit-transform", _({}, r)), e.style.transition = o.transitions.create("transform", _({}, r)), e.style.webkitTransform = "none", e.style.transform = "none", g && g(e, t);
}), M = T(m), A = T(b), P = T((e) => {
const t = Of({
timeout: S,
style: x,
easing: d
}, { mode: "exit" });
e.style.webkitTransition = o.transitions.create("-webkit-transform", t), e.style.transition = o.transitions.create("transform", t), Pz(p, e, u), v && v(e);
}), N = T((e) => {
e.style.webkitTransition = "", e.style.transition = "", y && y(e);
}), L = react.useCallback(() => {
O.current && Pz(p, O.current, u);
}, [p, u]);
return react.useEffect(() => {
if (f || "down" === p || "right" === p) return;
const e = Xd(() => {
O.current && Pz(p, O.current, u);
});
const t = ef(O.current);
return t.addEventListener("resize", e), () => {
e.clear(), t.removeEventListener("resize", e);
};
}, [
p,
f,
u
]), react.useEffect(() => {
f || L();
}, [f, L]), (0, import_jsx_runtime.jsx)(k, _({
nodeRef: O,
onEnter: R,
onEntered: M,
onEntering: I,
onExit: P,
onExited: N,
onExiting: A,
addEndListener: (e) => {
a && a(O.current, e);
},
appear: l,
in: f,
timeout: S
}, C, { children: (e, t) => react.cloneElement(c, _({
ref: E,
style: _({ visibility: "exited" !== e || f ? void 0 : "hidden" }, x, c.props.style)
}, t)) }));
});
Nz.propTypes = {
addEndListener: ee.func,
appear: ee.bool,
children: Hd.isRequired,
container: Ci(ee.oneOfType([Yd, ee.func]), (e) => {
if (e.open) {
const t = Az(e.container);
if (t && 1 === t.nodeType) {
const e = t.getBoundingClientRect();
if (0 === e.top && 0 === e.left && 0 === e.right && 0 === e.bottom) return new Error([
"MUI: The `container` prop provided to the component is invalid.",
"The anchor element should be part of the document layout.",
"Make sure the element is present in the document or that it's not display none."
].join("\n"));
} else if (!t || "function" != typeof t.getBoundingClientRect || null != t.contextElement && 1 !== t.contextElement.nodeType) return new Error(["MUI: The `container` prop provided to the component is invalid.", "It should be an HTML element instance."].join("\n"));
}
return null;
}),
direction: ee.oneOf([
"down",
"left",
"right",
"up"
]),
easing: ee.oneOfType([ee.shape({
enter: ee.string,
exit: ee.string
}), ee.string]),
in: ee.bool,
onEnter: ee.func,
onEntered: ee.func,
onEntering: ee.func,
onExit: ee.func,
onExited: ee.func,
onExiting: ee.func,
style: ee.object,
timeout: ee.oneOfType([ee.number, ee.shape({
appear: ee.number,
enter: ee.number,
exit: ee.number
})])
};
var Lz = Nz;
function Dz(e) {
return Qn("MuiDrawer", e);
}
ks("MuiDrawer", [
"root",
"docked",
"paper",
"paperAnchorLeft",
"paperAnchorRight",
"paperAnchorTop",
"paperAnchorBottom",
"paperAnchorDockedLeft",
"paperAnchorDockedRight",
"paperAnchorDockedTop",
"paperAnchorDockedBottom",
"modal"
]);
var jz = ["BackdropProps"];
var Fz = [
"anchor",
"BackdropProps",
"children",
"className",
"elevation",
"hideBackdrop",
"ModalProps",
"onClose",
"open",
"PaperProps",
"SlideProps",
"TransitionComponent",
"transitionDuration",
"variant"
];
var $z = (e, t) => {
const { ownerState: r } = e;
return [
t.root,
("permanent" === r.variant || "persistent" === r.variant) && t.docked,
t.modal
];
};
var Bz = pi(nh, {
name: "MuiDrawer",
slot: "Root",
overridesResolver: $z
})(({ theme: e }) => ({ zIndex: (e.vars || e).zIndex.drawer }));
var zz = pi("div", {
shouldForwardProp: ui,
name: "MuiDrawer",
slot: "Docked",
skipVariantsResolver: !1,
overridesResolver: $z
})({ flex: "0 0 auto" });
var Vz = pi(Rs, {
name: "MuiDrawer",
slot: "Paper",
overridesResolver: (e, t) => {
const { ownerState: r } = e;
return [
t.paper,
t[`paperAnchor${bi(r.anchor)}`],
"temporary" !== r.variant && t[`paperAnchorDocked${bi(r.anchor)}`]
];
}
})(({ theme: e, ownerState: t }) => _({
overflowY: "auto",
display: "flex",
flexDirection: "column",
height: "100%",
flex: "1 0 auto",
zIndex: (e.vars || e).zIndex.drawer,
WebkitOverflowScrolling: "touch",
position: "fixed",
top: 0,
outline: 0
}, "left" === t.anchor && { left: 0 }, "top" === t.anchor && {
top: 0,
left: 0,
right: 0,
height: "auto",
maxHeight: "100%"
}, "right" === t.anchor && { right: 0 }, "bottom" === t.anchor && {
top: "auto",
left: 0,
bottom: 0,
right: 0,
height: "auto",
maxHeight: "100%"
}, "left" === t.anchor && "temporary" !== t.variant && { borderRight: `1px solid ${(e.vars || e).palette.divider}` }, "top" === t.anchor && "temporary" !== t.variant && { borderBottom: `1px solid ${(e.vars || e).palette.divider}` }, "right" === t.anchor && "temporary" !== t.variant && { borderLeft: `1px solid ${(e.vars || e).palette.divider}` }, "bottom" === t.anchor && "temporary" !== t.variant && { borderTop: `1px solid ${(e.vars || e).palette.divider}` }));
var Uz = {
left: "right",
right: "left",
top: "down",
bottom: "up"
};
var qz = react.forwardRef(function(t, r) {
const o = yi({
props: t,
name: "MuiDrawer"
}), i = Ss(), s = ps(), a = {
enter: i.transitions.duration.enteringScreen,
exit: i.transitions.duration.leavingScreen
}, { anchor: l = "left", BackdropProps: c, children: u, className: p, elevation: d = 16, hideBackdrop: f = !1, ModalProps: { BackdropProps: h } = {}, onClose: m, open: g = !1, PaperProps: v = {}, SlideProps: y, TransitionComponent: b = Lz, transitionDuration: x = a, variant: S = "temporary" } = o, k = w(o.ModalProps, jz), C = w(o, Fz), O = react.useRef(!1);
react.useEffect(() => {
O.current = !0;
}, []);
const E = function({ direction: e }, t) {
return "rtl" === e && function(e) {
return -1 !== ["left", "right"].indexOf(e);
}(t) ? Uz[t] : t;
}({ direction: s ? "rtl" : "ltr" }, l);
const T = _({}, o, {
anchor: l,
elevation: d,
open: g,
variant: S
}, C);
const R = ((e) => {
const { classes: t, anchor: r, variant: n } = e;
return ne({
root: ["root"],
docked: [("permanent" === n || "persistent" === n) && "docked"],
modal: ["modal"],
paper: [
"paper",
`paperAnchor${bi(r)}`,
"temporary" !== n && `paperAnchorDocked${bi(r)}`
]
}, Dz, t);
})(T);
const I = (0, import_jsx_runtime.jsx)(Vz, _({
elevation: "temporary" === S ? d : 0,
square: !0
}, v, {
className: re(R.paper, v.className),
ownerState: T,
children: u
}));
if ("permanent" === S) return (0, import_jsx_runtime.jsx)(zz, _({
className: re(R.root, R.docked, p),
ownerState: T,
ref: r
}, C, { children: I }));
const M = (0, import_jsx_runtime.jsx)(b, _({
in: g,
direction: Uz[E],
timeout: x,
appear: O.current
}, y, { children: I }));
return "persistent" === S ? (0, import_jsx_runtime.jsx)(zz, _({
className: re(R.root, R.docked, p),
ownerState: T,
ref: r
}, C, { children: M })) : (0, import_jsx_runtime.jsx)(Bz, _({
BackdropProps: _({}, c, h, { transitionDuration: x }),
className: re(R.root, R.modal, p),
open: g,
ownerState: T,
onClose: m,
hideBackdrop: f,
ref: r
}, C, k, { children: M }));
});
qz.propTypes = {
anchor: ee.oneOf([
"bottom",
"left",
"right",
"top"
]),
BackdropProps: ee.object,
children: ee.node,
classes: ee.object,
className: ee.string,
elevation: ki,
hideBackdrop: ee.bool,
ModalProps: ee.object,
onClose: ee.func,
open: ee.bool,
PaperProps: ee.object,
SlideProps: ee.object,
sx: ee.oneOfType([
ee.arrayOf(ee.oneOfType([
ee.func,
ee.object,
ee.bool
])),
ee.func,
ee.object
]),
transitionDuration: ee.oneOfType([ee.number, ee.shape({
appear: ee.number,
enter: ee.number,
exit: ee.number
})]),
variant: ee.oneOf([
"permanent",
"persistent",
"temporary"
])
};
var Wz = qz;
var Hz = react.default.forwardRef((e, t) => react.default.createElement(Wz, _objectSpread2(_objectSpread2({}, e), {}, { ref: t })));
var Gz = ks("MuiBox", ["root"]);
var Yz = function(t = {}) {
const { themeId: r, defaultTheme: o, defaultClassName: i = "MuiBox-root", generateClassName: s } = t, a = or("div", { shouldForwardProp: (e) => "theme" !== e && "sx" !== e && "as" !== e })(Ln);
return react.forwardRef(function(t, n) {
const l = gi(o), c = zn(t), { className: u, component: p = "div" } = c, d = w(c, Ai);
return (0, import_jsx_runtime.jsx)(a, _({
as: p,
ref: n,
className: Mi(u, s ? s(i) : i),
theme: r && l[r] || l
}, d));
});
}({
themeId: li,
defaultTheme: si(),
defaultClassName: Gz.root,
generateClassName: Xn.generate
});
Yz.propTypes = {
children: ee.node,
component: ee.elementType,
sx: ee.oneOfType([
ee.arrayOf(ee.oneOfType([
ee.func,
ee.object,
ee.bool
])),
ee.func,
ee.object
])
};
var Zz = Yz;
var Xz = react.default.forwardRef((e, t) => react.default.createElement(Zz, _objectSpread2(_objectSpread2({}, e), {}, { ref: t })));
var Jz = () => (0, import_jsx_runtime.jsx)(zs, { children: new Array(3).fill(0).map((r, n) => (0, import_jsx_runtime.jsxs)(Xz, { children: [(0, import_jsx_runtime.jsxs)(zs, {
gap: .5,
sx: { mt: 2 },
children: [
(0, import_jsx_runtime.jsx)(dz, {
variant: "text",
width: 50,
height: 24
}),
(0, import_jsx_runtime.jsx)(dz, {
variant: "text",
width: "100%",
height: 48
}),
(0, import_jsx_runtime.jsx)(dz, {
variant: "rectangular",
width: "100%",
height: 200,
sx: { borderRadius: 1 }
}),
(0, import_jsx_runtime.jsx)(dz, {
variant: "rounded",
width: 100,
height: 32,
sx: {
borderRadius: 3,
mt: 1
}
}),
(0, import_jsx_runtime.jsx)(dz, {
variant: "text",
width: 200,
height: 24
}),
(0, import_jsx_runtime.jsx)(dz, {
variant: "text",
width: 250,
height: 24
}),
(0, import_jsx_runtime.jsx)(dz, {
variant: "text",
width: 170,
height: 24
})
]
}), n < 2 && (0, import_jsx_runtime.jsx)(du, { sx: { mt: 1.5 } })] }, n)) });
var Qz;
var eV = {};
var tV = {};
var rV = {};
var nV = {};
var oV = {};
var iV = {};
function sV() {
return Qz || (Qz = 1, e = iV, Object.defineProperty(e, "__esModule", { value: !0 }), e.Doctype = e.CDATA = e.Tag = e.Style = e.Script = e.Comment = e.Directive = e.Text = e.Root = e.isTag = e.ElementType = void 0, function(e) {
e.Root = "root", e.Text = "text", e.Directive = "directive", e.Comment = "comment", e.Script = "script", e.Style = "style", e.Tag = "tag", e.CDATA = "cdata", e.Doctype = "doctype";
}(t = e.ElementType || (e.ElementType = {})), e.isTag = function(e) {
return e.type === t.Tag || e.type === t.Script || e.type === t.Style;
}, e.Root = t.Root, e.Text = t.Text, e.Directive = t.Directive, e.Comment = t.Comment, e.Script = t.Script, e.Style = t.Style, e.Tag = t.Tag, e.CDATA = t.CDATA, e.Doctype = t.Doctype), iV;
var e;
var t;
}
var aV;
var lV;
var cV = {};
function uV() {
if (aV) return cV;
aV = 1;
var e;
var t = cV && cV.__extends || (e = function(t, r) {
return e = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(e, t) {
e.__proto__ = t;
} || function(e, t) {
for (var r in t) Object.prototype.hasOwnProperty.call(t, r) && (e[r] = t[r]);
}, e(t, r);
}, function(t, r) {
if ("function" != typeof r && null !== r) throw new TypeError("Class extends value " + String(r) + " is not a constructor or null");
function n() {
this.constructor = t;
}
e(t, r), t.prototype = null === r ? Object.create(r) : (n.prototype = r.prototype, new n());
});
var r = cV && cV.__assign || function() {
return r = Object.assign || function(e) {
for (var t, r = 1, n = arguments.length; r < n; r++) for (var o in t = arguments[r]) Object.prototype.hasOwnProperty.call(t, o) && (e[o] = t[o]);
return e;
}, r.apply(this, arguments);
};
Object.defineProperty(cV, "__esModule", { value: !0 }), cV.cloneNode = cV.hasChildren = cV.isDocument = cV.isDirective = cV.isComment = cV.isText = cV.isCDATA = cV.isTag = cV.Element = cV.Document = cV.CDATA = cV.NodeWithChildren = cV.ProcessingInstruction = cV.Comment = cV.Text = cV.DataNode = cV.Node = void 0;
var n = sV();
var o = function() {
function e() {
this.parent = null, this.prev = null, this.next = null, this.startIndex = null, this.endIndex = null;
}
return Object.defineProperty(e.prototype, "parentNode", {
get: function() {
return this.parent;
},
set: function(e) {
this.parent = e;
},
enumerable: !1,
configurable: !0
}), Object.defineProperty(e.prototype, "previousSibling", {
get: function() {
return this.prev;
},
set: function(e) {
this.prev = e;
},
enumerable: !1,
configurable: !0
}), Object.defineProperty(e.prototype, "nextSibling", {
get: function() {
return this.next;
},
set: function(e) {
this.next = e;
},
enumerable: !1,
configurable: !0
}), e.prototype.cloneNode = function(e) {
return void 0 === e && (e = !1), b(this, e);
}, e;
}();
cV.Node = o;
var i = function(e) {
function r(t) {
var r = e.call(this) || this;
return r.data = t, r;
}
return t(r, e), Object.defineProperty(r.prototype, "nodeValue", {
get: function() {
return this.data;
},
set: function(e) {
this.data = e;
},
enumerable: !1,
configurable: !0
}), r;
}(o);
cV.DataNode = i;
var s = function(e) {
function r() {
var t = null !== e && e.apply(this, arguments) || this;
return t.type = n.ElementType.Text, t;
}
return t(r, e), Object.defineProperty(r.prototype, "nodeType", {
get: function() {
return 3;
},
enumerable: !1,
configurable: !0
}), r;
}(i);
cV.Text = s;
var a = function(e) {
function r() {
var t = null !== e && e.apply(this, arguments) || this;
return t.type = n.ElementType.Comment, t;
}
return t(r, e), Object.defineProperty(r.prototype, "nodeType", {
get: function() {
return 8;
},
enumerable: !1,
configurable: !0
}), r;
}(i);
cV.Comment = a;
var l = function(e) {
function r(t, r) {
var o = e.call(this, r) || this;
return o.name = t, o.type = n.ElementType.Directive, o;
}
return t(r, e), Object.defineProperty(r.prototype, "nodeType", {
get: function() {
return 1;
},
enumerable: !1,
configurable: !0
}), r;
}(i);
cV.ProcessingInstruction = l;
var c = function(e) {
function r(t) {
var r = e.call(this) || this;
return r.children = t, r;
}
return t(r, e), Object.defineProperty(r.prototype, "firstChild", {
get: function() {
var e;
return null !== (e = this.children[0]) && void 0 !== e ? e : null;
},
enumerable: !1,
configurable: !0
}), Object.defineProperty(r.prototype, "lastChild", {
get: function() {
return this.children.length > 0 ? this.children[this.children.length - 1] : null;
},
enumerable: !1,
configurable: !0
}), Object.defineProperty(r.prototype, "childNodes", {
get: function() {
return this.children;
},
set: function(e) {
this.children = e;
},
enumerable: !1,
configurable: !0
}), r;
}(o);
cV.NodeWithChildren = c;
var u = function(e) {
function r() {
var t = null !== e && e.apply(this, arguments) || this;
return t.type = n.ElementType.CDATA, t;
}
return t(r, e), Object.defineProperty(r.prototype, "nodeType", {
get: function() {
return 4;
},
enumerable: !1,
configurable: !0
}), r;
}(c);
cV.CDATA = u;
var p = function(e) {
function r() {
var t = null !== e && e.apply(this, arguments) || this;
return t.type = n.ElementType.Root, t;
}
return t(r, e), Object.defineProperty(r.prototype, "nodeType", {
get: function() {
return 9;
},
enumerable: !1,
configurable: !0
}), r;
}(c);
cV.Document = p;
var d = function(e) {
function r(t, r, o, i) {
void 0 === o && (o = []), void 0 === i && (i = "script" === t ? n.ElementType.Script : "style" === t ? n.ElementType.Style : n.ElementType.Tag);
var s = e.call(this, o) || this;
return s.name = t, s.attribs = r, s.type = i, s;
}
return t(r, e), Object.defineProperty(r.prototype, "nodeType", {
get: function() {
return 1;
},
enumerable: !1,
configurable: !0
}), Object.defineProperty(r.prototype, "tagName", {
get: function() {
return this.name;
},
set: function(e) {
this.name = e;
},
enumerable: !1,
configurable: !0
}), Object.defineProperty(r.prototype, "attributes", {
get: function() {
var e = this;
return Object.keys(this.attribs).map(function(t) {
var r;
var n;
return {
name: t,
value: e.attribs[t],
namespace: null === (r = e["x-attribsNamespace"]) || void 0 === r ? void 0 : r[t],
prefix: null === (n = e["x-attribsPrefix"]) || void 0 === n ? void 0 : n[t]
};
});
},
enumerable: !1,
configurable: !0
}), r;
}(c);
function f(e) {
return (0, n.isTag)(e);
}
function h(e) {
return e.type === n.ElementType.CDATA;
}
function m(e) {
return e.type === n.ElementType.Text;
}
function g(e) {
return e.type === n.ElementType.Comment;
}
function v(e) {
return e.type === n.ElementType.Directive;
}
function y(e) {
return e.type === n.ElementType.Root;
}
function b(e, t) {
var n;
if (void 0 === t && (t = !1), m(e)) n = new s(e.data);
else if (g(e)) n = new a(e.data);
else if (f(e)) {
var o = t ? w(e.children) : [];
var i = new d(e.name, r({}, e.attribs), o);
o.forEach(function(e) {
return e.parent = i;
}), null != e.namespace && (i.namespace = e.namespace), e["x-attribsNamespace"] && (i["x-attribsNamespace"] = r({}, e["x-attribsNamespace"])), e["x-attribsPrefix"] && (i["x-attribsPrefix"] = r({}, e["x-attribsPrefix"])), n = i;
} else if (h(e)) {
o = t ? w(e.children) : [];
var c = new u(o);
o.forEach(function(e) {
return e.parent = c;
}), n = c;
} else if (y(e)) {
o = t ? w(e.children) : [];
var b = new p(o);
o.forEach(function(e) {
return e.parent = b;
}), e["x-mode"] && (b["x-mode"] = e["x-mode"]), n = b;
} else {
if (!v(e)) throw new Error("Not implemented yet: ".concat(e.type));
var _ = new l(e.name, e.data);
null != e["x-name"] && (_["x-name"] = e["x-name"], _["x-publicId"] = e["x-publicId"], _["x-systemId"] = e["x-systemId"]), n = _;
}
return n.startIndex = e.startIndex, n.endIndex = e.endIndex, null != e.sourceCodeLocation && (n.sourceCodeLocation = e.sourceCodeLocation), n;
}
function w(e) {
for (var t = e.map(function(e) {
return b(e, !0);
}), r = 1; r < t.length; r++) t[r].prev = t[r - 1], t[r - 1].next = t[r];
return t;
}
return cV.Element = d, cV.isTag = f, cV.isCDATA = h, cV.isText = m, cV.isComment = g, cV.isDirective = v, cV.isDocument = y, cV.hasChildren = function(e) {
return Object.prototype.hasOwnProperty.call(e, "children");
}, cV.cloneNode = b, cV;
}
function pV() {
return lV || (lV = 1, function(e) {
var t = oV && oV.__createBinding || (Object.create ? function(e, t, r, n) {
void 0 === n && (n = r);
var o = Object.getOwnPropertyDescriptor(t, r);
o && !("get" in o ? !t.__esModule : o.writable || o.configurable) || (o = {
enumerable: !0,
get: function() {
return t[r];
}
}), Object.defineProperty(e, n, o);
} : function(e, t, r, n) {
void 0 === n && (n = r), e[n] = t[r];
});
var r = oV && oV.__exportStar || function(e, r) {
for (var n in e) "default" === n || Object.prototype.hasOwnProperty.call(r, n) || t(r, e, n);
};
Object.defineProperty(e, "__esModule", { value: !0 }), e.DomHandler = void 0;
var n = sV();
var o = uV();
r(uV(), e);
var i = {
withStartIndices: !1,
withEndIndices: !1,
xmlMode: !1
};
var s = function() {
function e(e, t, r) {
this.dom = [], this.root = new o.Document(this.dom), this.done = !1, this.tagStack = [this.root], this.lastNode = null, this.parser = null, "function" == typeof t && (r = t, t = i), "object" == typeof e && (t = e, e = void 0), this.callback = null != e ? e : null, this.options = null != t ? t : i, this.elementCB = null != r ? r : null;
}
return e.prototype.onparserinit = function(e) {
this.parser = e;
}, e.prototype.onreset = function() {
this.dom = [], this.root = new o.Document(this.dom), this.done = !1, this.tagStack = [this.root], this.lastNode = null, this.parser = null;
}, e.prototype.onend = function() {
this.done || (this.done = !0, this.parser = null, this.handleCallback(null));
}, e.prototype.onerror = function(e) {
this.handleCallback(e);
}, e.prototype.onclosetag = function() {
this.lastNode = null;
var e = this.tagStack.pop();
this.options.withEndIndices && (e.endIndex = this.parser.endIndex), this.elementCB && this.elementCB(e);
}, e.prototype.onopentag = function(e, t) {
var r = this.options.xmlMode ? n.ElementType.Tag : void 0;
var i = new o.Element(e, t, void 0, r);
this.addNode(i), this.tagStack.push(i);
}, e.prototype.ontext = function(e) {
var t = this.lastNode;
if (t && t.type === n.ElementType.Text) t.data += e, this.options.withEndIndices && (t.endIndex = this.parser.endIndex);
else {
var r = new o.Text(e);
this.addNode(r), this.lastNode = r;
}
}, e.prototype.oncomment = function(e) {
if (this.lastNode && this.lastNode.type === n.ElementType.Comment) this.lastNode.data += e;
else {
var t = new o.Comment(e);
this.addNode(t), this.lastNode = t;
}
}, e.prototype.oncommentend = function() {
this.lastNode = null;
}, e.prototype.oncdatastart = function() {
var e = new o.Text("");
var t = new o.CDATA([e]);
this.addNode(t), e.parent = t, this.lastNode = e;
}, e.prototype.oncdataend = function() {
this.lastNode = null;
}, e.prototype.onprocessinginstruction = function(e, t) {
var r = new o.ProcessingInstruction(e, t);
this.addNode(r);
}, e.prototype.handleCallback = function(e) {
if ("function" == typeof this.callback) this.callback(e, this.dom);
else if (e) throw e;
}, e.prototype.addNode = function(e) {
var t = this.tagStack[this.tagStack.length - 1];
var r = t.children[t.children.length - 1];
this.options.withStartIndices && (e.startIndex = this.parser.startIndex), this.options.withEndIndices && (e.endIndex = this.parser.endIndex), t.children.push(e), r && (e.prev = r, r.next = e), e.parent = t, this.lastNode = null;
}, e;
}();
e.DomHandler = s, e.default = s;
}(oV)), oV;
}
var dV;
var fV;
var hV;
var mV;
var gV = {};
function vV() {
return dV || (dV = 1, e = gV, Object.defineProperty(e, "__esModule", { value: !0 }), e.CARRIAGE_RETURN_PLACEHOLDER_REGEX = e.CARRIAGE_RETURN_PLACEHOLDER = e.CARRIAGE_RETURN_REGEX = e.CARRIAGE_RETURN = e.CASE_SENSITIVE_TAG_NAMES_MAP = e.CASE_SENSITIVE_TAG_NAMES = void 0, e.CASE_SENSITIVE_TAG_NAMES = [
"animateMotion",
"animateTransform",
"clipPath",
"feBlend",
"feColorMatrix",
"feComponentTransfer",
"feComposite",
"feConvolveMatrix",
"feDiffuseLighting",
"feDisplacementMap",
"feDropShadow",
"feFlood",
"feFuncA",
"feFuncB",
"feFuncG",
"feFuncR",
"feGaussianBlur",
"feImage",
"feMerge",
"feMergeNode",
"feMorphology",
"feOffset",
"fePointLight",
"feSpecularLighting",
"feSpotLight",
"feTile",
"feTurbulence",
"foreignObject",
"linearGradient",
"radialGradient",
"textPath"
], e.CASE_SENSITIVE_TAG_NAMES_MAP = e.CASE_SENSITIVE_TAG_NAMES.reduce(function(e, t) {
return e[t.toLowerCase()] = t, e;
}, {}), e.CARRIAGE_RETURN = "\r", e.CARRIAGE_RETURN_REGEX = new RegExp(e.CARRIAGE_RETURN, "g"), e.CARRIAGE_RETURN_PLACEHOLDER = "__HTML_DOM_PARSER_CARRIAGE_RETURN_PLACEHOLDER_".concat(Date.now(), "__"), e.CARRIAGE_RETURN_PLACEHOLDER_REGEX = new RegExp(e.CARRIAGE_RETURN_PLACEHOLDER, "g")), gV;
var e;
}
function yV() {
if (fV) return nV;
fV = 1, Object.defineProperty(nV, "__esModule", { value: !0 }), nV.formatAttributes = r, nV.escapeSpecialCharacters = function(e) {
return e.replace(t.CARRIAGE_RETURN_REGEX, t.CARRIAGE_RETURN_PLACEHOLDER);
}, nV.revertEscapedCharacters = o, nV.formatDOM = function t(i, s, a) {
void 0 === s && (s = null);
for (var l, c = [], u = 0, p = i.length; u < p; u++) {
var d = i[u];
switch (d.nodeType) {
case 1:
var f = n(d.nodeName);
(l = new e.Element(f, r(d.attributes))).children = t("template" === f ? d.content.childNodes : d.childNodes, l);
break;
case 3:
l = new e.Text(o(d.nodeValue));
break;
case 8:
l = new e.Comment(d.nodeValue);
break;
default: continue;
}
var h = c[u - 1] || null;
h && (h.next = l), l.parent = s, l.prev = h, l.next = null, c.push(l);
}
return a && ((l = new e.ProcessingInstruction(a.substring(0, a.indexOf(" ")).toLowerCase(), a)).next = c[0] || null, l.parent = s, c.unshift(l), c[1] && (c[1].prev = c[0])), c;
};
var e = pV();
var t = vV();
function r(e) {
for (var t = {}, r = 0, n = e.length; r < n; r++) {
var o = e[r];
t[o.name] = o.value;
}
return t;
}
function n(e) {
return function(e) {
return t.CASE_SENSITIVE_TAG_NAMES_MAP[e];
}(e = e.toLowerCase()) || e;
}
function o(e) {
return e.replace(t.CARRIAGE_RETURN_PLACEHOLDER_REGEX, t.CARRIAGE_RETURN);
}
return nV;
}
function bV() {
if (hV) return rV;
hV = 1, Object.defineProperty(rV, "__esModule", { value: !0 }), rV.default = function(c) {
var u;
var p;
var f = (c = (0, e.escapeSpecialCharacters)(c)).match(o);
var h = f && f[1] ? f[1].toLowerCase() : "";
switch (h) {
case t:
var m = l(c);
return i.test(c) || null === (u = null == (v = m.querySelector(r)) ? void 0 : v.parentNode) || void 0 === u || u.removeChild(v), s.test(c) || null === (p = null == (v = m.querySelector(n)) ? void 0 : v.parentNode) || void 0 === p || p.removeChild(v), m.querySelectorAll(t);
case r:
case n:
var g = a(c).querySelectorAll(h);
return s.test(c) && i.test(c) ? g[0].parentNode.childNodes : g;
default:
return d ? d(c) : (v = a(c, n).querySelector(n)).childNodes;
var v;
}
};
var e = yV();
var t = "html";
var r = "head";
var n = "body";
var o = /<([a-zA-Z]+[0-9]?)/;
var i = /<head[^]*>/i;
var s = /<body[^]*>/i;
var a = function(e, t) {
throw new Error("This browser does not support `document.implementation.createHTMLDocument`");
};
var l = function(e, t) {
throw new Error("This browser does not support `DOMParser.prototype.parseFromString`");
};
var c = "object" == typeof window && window.DOMParser;
if ("function" == typeof c) {
var u = new c();
a = l = function(e, t) {
return t && (e = "<".concat(t, ">").concat(e, "</").concat(t, ">")), u.parseFromString(e, "text/html");
};
}
if ("object" == typeof document && document.implementation) {
var p = document.implementation.createHTMLDocument();
a = function(e, t) {
if (t) {
var r = p.documentElement.querySelector(t);
return r && (r.innerHTML = e), p;
}
return p.documentElement.innerHTML = e, p;
};
}
var d;
var f = "object" == typeof document && document.createElement("template");
return f && f.content && (d = function(e) {
return f.innerHTML = e, f.content.childNodes;
}), rV;
}
function wV() {
if (mV) return tV;
mV = 1;
var e = tV && tV.__importDefault || function(e) {
return e && e.__esModule ? e : { default: e };
};
Object.defineProperty(tV, "__esModule", { value: !0 }), tV.default = function(e) {
if ("string" != typeof e) throw new TypeError("First argument must be a string");
if (!e) return [];
var o = e.match(n);
var i = o ? o[1] : void 0;
return (0, r.formatDOM)((0, t.default)(e), null, i);
};
var t = e(bV());
var r = yV();
var n = /<(![a-zA-Z\s]+)>/;
return tV;
}
var _V;
var xV;
var SV = {};
var kV = {};
var CV = {};
function OV() {
return _V || (_V = 1, CV.SAME = 0, CV.CAMELCASE = 1, CV.possibleStandardNames = {
accept: 0,
acceptCharset: 1,
"accept-charset": "acceptCharset",
accessKey: 1,
action: 0,
allowFullScreen: 1,
alt: 0,
as: 0,
async: 0,
autoCapitalize: 1,
autoComplete: 1,
autoCorrect: 1,
autoFocus: 1,
autoPlay: 1,
autoSave: 1,
capture: 0,
cellPadding: 1,
cellSpacing: 1,
challenge: 0,
charSet: 1,
checked: 0,
children: 0,
cite: 0,
class: "className",
classID: 1,
className: 1,
cols: 0,
colSpan: 1,
content: 0,
contentEditable: 1,
contextMenu: 1,
controls: 0,
controlsList: 1,
coords: 0,
crossOrigin: 1,
dangerouslySetInnerHTML: 1,
data: 0,
dateTime: 1,
default: 0,
defaultChecked: 1,
defaultValue: 1,
defer: 0,
dir: 0,
disabled: 0,
disablePictureInPicture: 1,
disableRemotePlayback: 1,
download: 0,
draggable: 0,
encType: 1,
enterKeyHint: 1,
for: "htmlFor",
form: 0,
formMethod: 1,
formAction: 1,
formEncType: 1,
formNoValidate: 1,
formTarget: 1,
frameBorder: 1,
headers: 0,
height: 0,
hidden: 0,
high: 0,
href: 0,
hrefLang: 1,
htmlFor: 1,
httpEquiv: 1,
"http-equiv": "httpEquiv",
icon: 0,
id: 0,
innerHTML: 1,
inputMode: 1,
integrity: 0,
is: 0,
itemID: 1,
itemProp: 1,
itemRef: 1,
itemScope: 1,
itemType: 1,
keyParams: 1,
keyType: 1,
kind: 0,
label: 0,
lang: 0,
list: 0,
loop: 0,
low: 0,
manifest: 0,
marginWidth: 1,
marginHeight: 1,
max: 0,
maxLength: 1,
media: 0,
mediaGroup: 1,
method: 0,
min: 0,
minLength: 1,
multiple: 0,
muted: 0,
name: 0,
noModule: 1,
nonce: 0,
noValidate: 1,
open: 0,
optimum: 0,
pattern: 0,
placeholder: 0,
playsInline: 1,
poster: 0,
preload: 0,
profile: 0,
radioGroup: 1,
readOnly: 1,
referrerPolicy: 1,
rel: 0,
required: 0,
reversed: 0,
role: 0,
rows: 0,
rowSpan: 1,
sandbox: 0,
scope: 0,
scoped: 0,
scrolling: 0,
seamless: 0,
selected: 0,
shape: 0,
size: 0,
sizes: 0,
span: 0,
spellCheck: 1,
src: 0,
srcDoc: 1,
srcLang: 1,
srcSet: 1,
start: 0,
step: 0,
style: 0,
summary: 0,
tabIndex: 1,
target: 0,
title: 0,
type: 0,
useMap: 1,
value: 0,
width: 0,
wmode: 0,
wrap: 0,
about: 0,
accentHeight: 1,
"accent-height": "accentHeight",
accumulate: 0,
additive: 0,
alignmentBaseline: 1,
"alignment-baseline": "alignmentBaseline",
allowReorder: 1,
alphabetic: 0,
amplitude: 0,
arabicForm: 1,
"arabic-form": "arabicForm",
ascent: 0,
attributeName: 1,
attributeType: 1,
autoReverse: 1,
azimuth: 0,
baseFrequency: 1,
baselineShift: 1,
"baseline-shift": "baselineShift",
baseProfile: 1,
bbox: 0,
begin: 0,
bias: 0,
by: 0,
calcMode: 1,
capHeight: 1,
"cap-height": "capHeight",
clip: 0,
clipPath: 1,
"clip-path": "clipPath",
clipPathUnits: 1,
clipRule: 1,
"clip-rule": "clipRule",
color: 0,
colorInterpolation: 1,
"color-interpolation": "colorInterpolation",
colorInterpolationFilters: 1,
"color-interpolation-filters": "colorInterpolationFilters",
colorProfile: 1,
"color-profile": "colorProfile",
colorRendering: 1,
"color-rendering": "colorRendering",
contentScriptType: 1,
contentStyleType: 1,
cursor: 0,
cx: 0,
cy: 0,
d: 0,
datatype: 0,
decelerate: 0,
descent: 0,
diffuseConstant: 1,
direction: 0,
display: 0,
divisor: 0,
dominantBaseline: 1,
"dominant-baseline": "dominantBaseline",
dur: 0,
dx: 0,
dy: 0,
edgeMode: 1,
elevation: 0,
enableBackground: 1,
"enable-background": "enableBackground",
end: 0,
exponent: 0,
externalResourcesRequired: 1,
fill: 0,
fillOpacity: 1,
"fill-opacity": "fillOpacity",
fillRule: 1,
"fill-rule": "fillRule",
filter: 0,
filterRes: 1,
filterUnits: 1,
floodOpacity: 1,
"flood-opacity": "floodOpacity",
floodColor: 1,
"flood-color": "floodColor",
focusable: 0,
fontFamily: 1,
"font-family": "fontFamily",
fontSize: 1,
"font-size": "fontSize",
fontSizeAdjust: 1,
"font-size-adjust": "fontSizeAdjust",
fontStretch: 1,
"font-stretch": "fontStretch",
fontStyle: 1,
"font-style": "fontStyle",
fontVariant: 1,
"font-variant": "fontVariant",
fontWeight: 1,
"font-weight": "fontWeight",
format: 0,
from: 0,
fx: 0,
fy: 0,
g1: 0,
g2: 0,
glyphName: 1,
"glyph-name": "glyphName",
glyphOrientationHorizontal: 1,
"glyph-orientation-horizontal": "glyphOrientationHorizontal",
glyphOrientationVertical: 1,
"glyph-orientation-vertical": "glyphOrientationVertical",
glyphRef: 1,
gradientTransform: 1,
gradientUnits: 1,
hanging: 0,
horizAdvX: 1,
"horiz-adv-x": "horizAdvX",
horizOriginX: 1,
"horiz-origin-x": "horizOriginX",
ideographic: 0,
imageRendering: 1,
"image-rendering": "imageRendering",
in2: 0,
in: 0,
inlist: 0,
intercept: 0,
k1: 0,
k2: 0,
k3: 0,
k4: 0,
k: 0,
kernelMatrix: 1,
kernelUnitLength: 1,
kerning: 0,
keyPoints: 1,
keySplines: 1,
keyTimes: 1,
lengthAdjust: 1,
letterSpacing: 1,
"letter-spacing": "letterSpacing",
lightingColor: 1,
"lighting-color": "lightingColor",
limitingConeAngle: 1,
local: 0,
markerEnd: 1,
"marker-end": "markerEnd",
markerHeight: 1,
markerMid: 1,
"marker-mid": "markerMid",
markerStart: 1,
"marker-start": "markerStart",
markerUnits: 1,
markerWidth: 1,
mask: 0,
maskContentUnits: 1,
maskUnits: 1,
mathematical: 0,
mode: 0,
numOctaves: 1,
offset: 0,
opacity: 0,
operator: 0,
order: 0,
orient: 0,
orientation: 0,
origin: 0,
overflow: 0,
overlinePosition: 1,
"overline-position": "overlinePosition",
overlineThickness: 1,
"overline-thickness": "overlineThickness",
paintOrder: 1,
"paint-order": "paintOrder",
panose1: 0,
"panose-1": "panose1",
pathLength: 1,
patternContentUnits: 1,
patternTransform: 1,
patternUnits: 1,
pointerEvents: 1,
"pointer-events": "pointerEvents",
points: 0,
pointsAtX: 1,
pointsAtY: 1,
pointsAtZ: 1,
prefix: 0,
preserveAlpha: 1,
preserveAspectRatio: 1,
primitiveUnits: 1,
property: 0,
r: 0,
radius: 0,
refX: 1,
refY: 1,
renderingIntent: 1,
"rendering-intent": "renderingIntent",
repeatCount: 1,
repeatDur: 1,
requiredExtensions: 1,
requiredFeatures: 1,
resource: 0,
restart: 0,
result: 0,
results: 0,
rotate: 0,
rx: 0,
ry: 0,
scale: 0,
security: 0,
seed: 0,
shapeRendering: 1,
"shape-rendering": "shapeRendering",
slope: 0,
spacing: 0,
specularConstant: 1,
specularExponent: 1,
speed: 0,
spreadMethod: 1,
startOffset: 1,
stdDeviation: 1,
stemh: 0,
stemv: 0,
stitchTiles: 1,
stopColor: 1,
"stop-color": "stopColor",
stopOpacity: 1,
"stop-opacity": "stopOpacity",
strikethroughPosition: 1,
"strikethrough-position": "strikethroughPosition",
strikethroughThickness: 1,
"strikethrough-thickness": "strikethroughThickness",
string: 0,
stroke: 0,
strokeDasharray: 1,
"stroke-dasharray": "strokeDasharray",
strokeDashoffset: 1,
"stroke-dashoffset": "strokeDashoffset",
strokeLinecap: 1,
"stroke-linecap": "strokeLinecap",
strokeLinejoin: 1,
"stroke-linejoin": "strokeLinejoin",
strokeMiterlimit: 1,
"stroke-miterlimit": "strokeMiterlimit",
strokeWidth: 1,
"stroke-width": "strokeWidth",
strokeOpacity: 1,
"stroke-opacity": "strokeOpacity",
suppressContentEditableWarning: 1,
suppressHydrationWarning: 1,
surfaceScale: 1,
systemLanguage: 1,
tableValues: 1,
targetX: 1,
targetY: 1,
textAnchor: 1,
"text-anchor": "textAnchor",
textDecoration: 1,
"text-decoration": "textDecoration",
textLength: 1,
textRendering: 1,
"text-rendering": "textRendering",
to: 0,
transform: 0,
typeof: 0,
u1: 0,
u2: 0,
underlinePosition: 1,
"underline-position": "underlinePosition",
underlineThickness: 1,
"underline-thickness": "underlineThickness",
unicode: 0,
unicodeBidi: 1,
"unicode-bidi": "unicodeBidi",
unicodeRange: 1,
"unicode-range": "unicodeRange",
unitsPerEm: 1,
"units-per-em": "unitsPerEm",
unselectable: 0,
vAlphabetic: 1,
"v-alphabetic": "vAlphabetic",
values: 0,
vectorEffect: 1,
"vector-effect": "vectorEffect",
version: 0,
vertAdvY: 1,
"vert-adv-y": "vertAdvY",
vertOriginX: 1,
"vert-origin-x": "vertOriginX",
vertOriginY: 1,
"vert-origin-y": "vertOriginY",
vHanging: 1,
"v-hanging": "vHanging",
vIdeographic: 1,
"v-ideographic": "vIdeographic",
viewBox: 1,
viewTarget: 1,
visibility: 0,
vMathematical: 1,
"v-mathematical": "vMathematical",
vocab: 0,
widths: 0,
wordSpacing: 1,
"word-spacing": "wordSpacing",
writingMode: 1,
"writing-mode": "writingMode",
x1: 0,
x2: 0,
x: 0,
xChannelSelector: 1,
xHeight: 1,
"x-height": "xHeight",
xlinkActuate: 1,
"xlink:actuate": "xlinkActuate",
xlinkArcrole: 1,
"xlink:arcrole": "xlinkArcrole",
xlinkHref: 1,
"xlink:href": "xlinkHref",
xlinkRole: 1,
"xlink:role": "xlinkRole",
xlinkShow: 1,
"xlink:show": "xlinkShow",
xlinkTitle: 1,
"xlink:title": "xlinkTitle",
xlinkType: 1,
"xlink:type": "xlinkType",
xmlBase: 1,
"xml:base": "xmlBase",
xmlLang: 1,
"xml:lang": "xmlLang",
xmlns: 0,
"xml:space": "xmlSpace",
xmlnsXlink: 1,
"xmlns:xlink": "xmlnsXlink",
xmlSpace: 1,
y1: 0,
y2: 0,
y: 0,
yChannelSelector: 1,
z: 0,
zoomAndPan: 1
}), CV;
}
function EV() {
if (xV) return kV;
function e(e, t, r, n, o, i, s) {
this.acceptsBooleans = 2 === t || 3 === t || 4 === t, this.attributeName = n, this.attributeNamespace = o, this.mustUseProperty = r, this.propertyName = e, this.type = t, this.sanitizeURL = i, this.removeEmptyString = s;
}
xV = 1;
const t = {};
[
"children",
"dangerouslySetInnerHTML",
"defaultValue",
"defaultChecked",
"innerHTML",
"suppressContentEditableWarning",
"suppressHydrationWarning",
"style"
].forEach((r) => {
t[r] = new e(r, 0, !1, r, null, !1, !1);
}), [
["acceptCharset", "accept-charset"],
["className", "class"],
["htmlFor", "for"],
["httpEquiv", "http-equiv"]
].forEach(([r, n]) => {
t[r] = new e(r, 1, !1, n, null, !1, !1);
}), [
"contentEditable",
"draggable",
"spellCheck",
"value"
].forEach((r) => {
t[r] = new e(r, 2, !1, r.toLowerCase(), null, !1, !1);
}), [
"autoReverse",
"externalResourcesRequired",
"focusable",
"preserveAlpha"
].forEach((r) => {
t[r] = new e(r, 2, !1, r, null, !1, !1);
}), [
"allowFullScreen",
"async",
"autoFocus",
"autoPlay",
"controls",
"default",
"defer",
"disabled",
"disablePictureInPicture",
"disableRemotePlayback",
"formNoValidate",
"hidden",
"loop",
"noModule",
"noValidate",
"open",
"playsInline",
"readOnly",
"required",
"reversed",
"scoped",
"seamless",
"itemScope"
].forEach((r) => {
t[r] = new e(r, 3, !1, r.toLowerCase(), null, !1, !1);
}), [
"checked",
"multiple",
"muted",
"selected"
].forEach((r) => {
t[r] = new e(r, 3, !0, r, null, !1, !1);
}), ["capture", "download"].forEach((r) => {
t[r] = new e(r, 4, !1, r, null, !1, !1);
}), [
"cols",
"rows",
"size",
"span"
].forEach((r) => {
t[r] = new e(r, 6, !1, r, null, !1, !1);
}), ["rowSpan", "start"].forEach((r) => {
t[r] = new e(r, 5, !1, r.toLowerCase(), null, !1, !1);
});
const r = /[\-\:]([a-z])/g;
const n = (e) => e[1].toUpperCase();
[
"accent-height",
"alignment-baseline",
"arabic-form",
"baseline-shift",
"cap-height",
"clip-path",
"clip-rule",
"color-interpolation",
"color-interpolation-filters",
"color-profile",
"color-rendering",
"dominant-baseline",
"enable-background",
"fill-opacity",
"fill-rule",
"flood-color",
"flood-opacity",
"font-family",
"font-size",
"font-size-adjust",
"font-stretch",
"font-style",
"font-variant",
"font-weight",
"glyph-name",
"glyph-orientation-horizontal",
"glyph-orientation-vertical",
"horiz-adv-x",
"horiz-origin-x",
"image-rendering",
"letter-spacing",
"lighting-color",
"marker-end",
"marker-mid",
"marker-start",
"overline-position",
"overline-thickness",
"paint-order",
"panose-1",
"pointer-events",
"rendering-intent",
"shape-rendering",
"stop-color",
"stop-opacity",
"strikethrough-position",
"strikethrough-thickness",
"stroke-dasharray",
"stroke-dashoffset",
"stroke-linecap",
"stroke-linejoin",
"stroke-miterlimit",
"stroke-opacity",
"stroke-width",
"text-anchor",
"text-decoration",
"text-rendering",
"underline-position",
"underline-thickness",
"unicode-bidi",
"unicode-range",
"units-per-em",
"v-alphabetic",
"v-hanging",
"v-ideographic",
"v-mathematical",
"vector-effect",
"vert-adv-y",
"vert-origin-x",
"vert-origin-y",
"word-spacing",
"writing-mode",
"xmlns:xlink",
"x-height"
].forEach((o) => {
const i = o.replace(r, n);
t[i] = new e(i, 1, !1, o, null, !1, !1);
}), [
"xlink:actuate",
"xlink:arcrole",
"xlink:role",
"xlink:show",
"xlink:title",
"xlink:type"
].forEach((o) => {
const i = o.replace(r, n);
t[i] = new e(i, 1, !1, o, "http://www.w3.org/1999/xlink", !1, !1);
}), [
"xml:base",
"xml:lang",
"xml:space"
].forEach((o) => {
const i = o.replace(r, n);
t[i] = new e(i, 1, !1, o, "http://www.w3.org/XML/1998/namespace", !1, !1);
}), ["tabIndex", "crossOrigin"].forEach((r) => {
t[r] = new e(r, 1, !1, r.toLowerCase(), null, !1, !1);
}), t.xlinkHref = new e("xlinkHref", 1, !1, "xlink:href", "http://www.w3.org/1999/xlink", !0, !1), [
"src",
"href",
"action",
"formAction"
].forEach((r) => {
t[r] = new e(r, 1, !1, r.toLowerCase(), null, !0, !0);
});
const { CAMELCASE: o, SAME: i, possibleStandardNames: s } = OV(), a = RegExp.prototype.test.bind(/* @__PURE__ */ new RegExp("^(data|aria)-[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$")), l = Object.keys(s).reduce((e, t) => {
const r = s[t];
return r === i ? e[t] = t : r === o ? e[t.toLowerCase()] = t : e[t] = r, e;
}, {});
return kV.BOOLEAN = 3, kV.BOOLEANISH_STRING = 2, kV.NUMERIC = 5, kV.OVERLOADED_BOOLEAN = 4, kV.POSITIVE_NUMERIC = 6, kV.RESERVED = 0, kV.STRING = 1, kV.getPropertyInfo = function(e) {
return t.hasOwnProperty(e) ? t[e] : null;
}, kV.isCustomAttribute = a, kV.possibleStandardNames = l, kV;
}
var TV;
var RV;
var IV;
var MV = {};
var AV = {};
function PV() {
if (RV) return TV;
RV = 1;
var e = /\/\*[^*]*\*+([^/*][^*]*\*+)*\//g;
var t = /\n/g;
var r = /^\s*/;
var n = /^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/;
var o = /^:\s*/;
var i = /^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/;
var s = /^[;\s]*/;
var a = /^\s+|\s+$/g;
var l = "";
function c(e) {
return e ? e.replace(a, l) : l;
}
return TV = function(a, u) {
if ("string" != typeof a) throw new TypeError("First argument must be a string");
if (!a) return [];
u = u || {};
var p = 1;
var d = 1;
function f(e) {
var r = e.match(t);
r && (p += r.length);
var n = e.lastIndexOf("\n");
d = ~n ? e.length - n : d + e.length;
}
function h() {
var e = {
line: p,
column: d
};
return function(t) {
return t.position = new m(e), y(), t;
};
}
function m(e) {
this.start = e, this.end = {
line: p,
column: d
}, this.source = u.source;
}
function g(e) {
var t = /* @__PURE__ */ new Error(u.source + ":" + p + ":" + d + ": " + e);
if (t.reason = e, t.filename = u.source, t.line = p, t.column = d, t.source = a, !u.silent) throw t;
}
function v(e) {
var t = e.exec(a);
if (t) {
var r = t[0];
return f(r), a = a.slice(r.length), t;
}
}
function y() {
v(r);
}
function b(e) {
var t;
for (e = e || []; t = w();) !1 !== t && e.push(t);
return e;
}
function w() {
var e = h();
if ("/" == a.charAt(0) && "*" == a.charAt(1)) {
for (var t = 2; l != a.charAt(t) && ("*" != a.charAt(t) || "/" != a.charAt(t + 1));) ++t;
if (t += 2, l === a.charAt(t - 1)) return g("End of comment missing");
var r = a.slice(2, t - 2);
return d += 2, f(r), a = a.slice(t), d += 2, e({
type: "comment",
comment: r
});
}
}
function _() {
var t = h();
var r = v(n);
if (r) {
if (w(), !v(o)) return g("property missing ':'");
var a = v(i);
var u = t({
type: "declaration",
property: c(r[0].replace(e, l)),
value: a ? c(a[0].replace(e, l)) : l
});
return v(s), u;
}
}
return m.prototype.content = a, y(), function() {
var e;
var t = [];
for (b(t); e = _();) !1 !== e && (t.push(e), b(t));
return t;
}();
}, TV;
}
function NV() {
if (IV) return AV;
IV = 1;
var e = AV && AV.__importDefault || function(e) {
return e && e.__esModule ? e : { default: e };
};
Object.defineProperty(AV, "__esModule", { value: !0 }), AV.default = function(e, r) {
var n = null;
if (!e || "string" != typeof e) return n;
var o = (0, t.default)(e);
var i = "function" == typeof r;
return o.forEach(function(e) {
if ("declaration" === e.type) {
var t = e.property;
var o = e.value;
i ? r(t, o, e) : o && ((n = n || {})[t] = o);
}
}), n;
};
var t = e(PV());
return AV;
}
var LV;
var DV;
var jV;
var FV;
var $V;
var BV = {};
function zV() {
if (LV) return BV;
LV = 1, Object.defineProperty(BV, "__esModule", { value: !0 }), BV.camelCase = void 0;
var e = /^--[a-zA-Z0-9_-]+$/;
var t = /-([a-z])/g;
var r = /^[^-]+$/;
var n = /^-(webkit|moz|ms|o|khtml)-/;
var o = /^-(ms)-/;
var i = function(e, t) {
return t.toUpperCase();
};
var s = function(e, t) {
return "".concat(t, "-");
};
return BV.camelCase = function(a, l) {
return void 0 === l && (l = {}), function(t) {
return !t || r.test(t) || e.test(t);
}(a) ? a : (a = a.toLowerCase(), (a = l.reactCompat ? a.replace(o, s) : a.replace(n, s)).replace(t, i));
}, BV;
}
function VV() {
if (jV) return DV;
jV = 1;
var e = (DV && DV.__importDefault || function(e) {
return e && e.__esModule ? e : { default: e };
})(NV());
var t = zV();
function r(r, n) {
var o = {};
return r && "string" == typeof r ? ((0, e.default)(r, function(e, r) {
e && r && (o[(0, t.camelCase)(e, n)] = r);
}), o) : o;
}
return r.default = r, DV = r;
}
function UV() {
return FV || (FV = 1, function(e) {
var t = MV && MV.__importDefault || function(e) {
return e && e.__esModule ? e : { default: e };
};
Object.defineProperty(e, "__esModule", { value: !0 }), e.returnFirstArg = e.canTextBeChildOfNode = e.ELEMENTS_WITH_NO_TEXT_CHILDREN = e.PRESERVE_CUSTOM_ATTRIBUTES = void 0, e.isCustomComponent = function(e, t) {
return e.includes("-") ? !i.has(e) : Boolean(t && "string" == typeof t.is);
}, e.setStyleProp = function(e, t) {
if ("string" == typeof e) if (e.trim()) try {
t.style = (0, n.default)(e, s);
} catch (e) {
t.style = {};
}
else t.style = {};
};
var r = react.default;
var n = t(VV());
var i = /* @__PURE__ */ new Set([
"annotation-xml",
"color-profile",
"font-face",
"font-face-src",
"font-face-uri",
"font-face-format",
"font-face-name",
"missing-glyph"
]);
var s = { reactCompat: !0 };
e.PRESERVE_CUSTOM_ATTRIBUTES = Number(r.version.split(".")[0]) >= 16, e.ELEMENTS_WITH_NO_TEXT_CHILDREN = /* @__PURE__ */ new Set([
"tr",
"tbody",
"thead",
"tfoot",
"colgroup",
"table",
"head",
"html",
"frameset"
]), e.canTextBeChildOfNode = function(t) {
return !e.ELEMENTS_WITH_NO_TEXT_CHILDREN.has(t.name);
}, e.returnFirstArg = function(e) {
return e;
};
}(MV)), MV;
}
function qV() {
if ($V) return SV;
$V = 1, Object.defineProperty(SV, "__esModule", { value: !0 }), SV.default = function(s, a) {
void 0 === s && (s = {});
var l = {};
var c = Boolean(s.type && o[s.type]);
for (var u in s) {
var p = s[u];
if ((0, e.isCustomAttribute)(u)) l[u] = p;
else {
var d = u.toLowerCase();
var f = i(d);
if (f) {
var h = (0, e.getPropertyInfo)(f);
switch (r.includes(f) && n.includes(a) && !c && (f = i("default" + d)), l[f] = p, h && h.type) {
case e.BOOLEAN:
l[f] = !0;
break;
case e.OVERLOADED_BOOLEAN: "" === p && (l[f] = !0);
}
} else t.PRESERVE_CUSTOM_ATTRIBUTES && (l[u] = p);
}
}
return (0, t.setStyleProp)(s.style, l), l;
};
var e = EV();
var t = UV();
var r = ["checked", "value"];
var n = [
"input",
"select",
"textarea"
];
var o = {
reset: !0,
submit: !0
};
function i(t) {
return e.possibleStandardNames[t];
}
return SV;
}
var WV;
var HV;
var GV = {};
function KV() {
if (WV) return GV;
WV = 1;
var e = GV && GV.__importDefault || function(e) {
return e && e.__esModule ? e : { default: e };
};
Object.defineProperty(GV, "__esModule", { value: !0 }), GV.default = function e(t, o) {
void 0 === o && (o = {});
for (var a = [], l = "function" == typeof o.replace, c = o.transform || n.returnFirstArg, u = o.library || i, p = u.cloneElement, d = u.createElement, f = u.isValidElement, h = t.length, m = 0; m < h; m++) {
var g = t[m];
if (l) {
var v = o.replace(g, m);
if (f(v)) {
h > 1 && (v = p(v, { key: v.key || m })), a.push(c(v, g, m));
continue;
}
}
if ("text" !== g.type) {
var y = g;
var b = {};
s(y) ? ((0, n.setStyleProp)(y.attribs.style, y.attribs), b = y.attribs) : y.attribs && (b = (0, r.default)(y.attribs, y.name));
var w = void 0;
switch (g.type) {
case "script":
case "style":
g.children[0] && (b.dangerouslySetInnerHTML = { __html: g.children[0].data });
break;
case "tag":
"textarea" === g.name && g.children[0] ? b.defaultValue = g.children[0].data : g.children && g.children.length && (w = e(g.children, o));
break;
default: continue;
}
h > 1 && (b.key = m), a.push(c(d(g.name, b, w), g, m));
} else {
var _ = !g.data.trim().length;
if (_ && g.parent && !(0, n.canTextBeChildOfNode)(g.parent)) continue;
if (o.trim && _) continue;
a.push(c(g.data, g, m));
}
}
return 1 === a.length ? a[0] : a;
};
var t = react.default;
var r = e(qV());
var n = UV();
var i = {
cloneElement: t.cloneElement,
createElement: t.createElement,
isValidElement: t.isValidElement
};
function s(e) {
return n.PRESERVE_CUSTOM_ATTRIBUTES && "tag" === e.type && (0, n.isCustomComponent)(e.name, e.attribs);
}
return GV;
}
function YV() {
return HV || (HV = 1, function(e) {
var t = eV && eV.__importDefault || function(e) {
return e && e.__esModule ? e : { default: e };
};
Object.defineProperty(e, "__esModule", { value: !0 }), e.htmlToDOM = e.domToReact = e.attributesToProps = e.Text = e.ProcessingInstruction = e.Element = e.Comment = void 0, e.default = function(e, t) {
if ("string" != typeof e) throw new TypeError("First argument must be a string");
return e ? (0, o.default)((0, r.default)(e, (null == t ? void 0 : t.htmlparser2) || s), t) : [];
};
var r = t(wV());
e.htmlToDOM = r.default;
e.attributesToProps = t(qV()).default;
var o = t(KV());
e.domToReact = o.default;
var i = pV();
Object.defineProperty(e, "Comment", {
enumerable: !0,
get: function() {
return i.Comment;
}
}), Object.defineProperty(e, "Element", {
enumerable: !0,
get: function() {
return i.Element;
}
}), Object.defineProperty(e, "ProcessingInstruction", {
enumerable: !0,
get: function() {
return i.ProcessingInstruction;
}
}), Object.defineProperty(e, "Text", {
enumerable: !0,
get: function() {
return i.Text;
}
});
var s = { lowerCaseAttributeNames: !1 };
}(eV)), eV;
}
var ZV = x(YV()), XV = ZV.default || ZV, { slots: JV, classNames: QV } = Cl("Image", ["root"]), eU = Il("img", JV.root)(({ theme: e, ownerState: t }) => {
const { variant: r = "square" } = t;
return { borderRadius: {
square: void 0,
rounded: e.shape.borderRadius * e.shape.__unstableBorderRadiusMultipliers[2],
circle: "50%"
}[r] };
}), tU = { variant: "square" }, rU = react.default.forwardRef((e, t) => {
const r = yi({
props: _objectSpread2(_objectSpread2({}, tU), e),
name: JV.root.name
});
return react.default.createElement(eU, _objectSpread2(_objectSpread2({}, r), {}, {
ref: t,
className: re([[QV.root, r.className]]),
ownerState: r
}));
});
rU.defaultProps = tU;
var nU = rU;
var oU = ({ id: r, title: n, description: o, topic: i, imageSrc: s, chipTags: a, link: l, readMoreText: c, cta: u, ctaLink: d, onItemClickedCallback: f }) => {
const { t: v } = vd("assets-whatsnew", { i18n: Jh }), [y, b] = (0, react.useState)(!!s);
(0, react.useEffect)(() => {
s && b(!0);
}, [s]);
const w = (0, react.useMemo)(() => {
const t = v(`${r}.description`, { defaultValue: o });
const n = XV(t);
return Array.isArray(n) ? n.map((t, n) => (0, import_jsx_runtime.jsx)(react.Fragment, { children: t }, `${r}-description-${n}`)) : n;
}, [
v,
r,
o
]);
const _ = (0, react.useMemo)(() => {
const e = `${r}.chipTags`;
if (Jh.exists(e, { ns: "assets-whatsnew" })) {
const t = v(e, { returnObjects: !0 });
if (Array.isArray(t) && t.length > 0) return t;
}
return a;
}, [
v,
r,
a
]);
const x = () => {
f === null || f === void 0 || f();
};
return (0, import_jsx_runtime.jsxs)(Xz, {
marginTop: 2,
children: [
i && (0, import_jsx_runtime.jsx)(na, {
variant: "caption",
color: "text.tertiary",
children: v(`${r}.topic`, { defaultValue: i })
}),
(0, import_jsx_runtime.jsx)(na, {
variant: "subtitle1",
color: "text.primary",
children: v(`${r}.title`, { defaultValue: n })
}),
s && (0, import_jsx_runtime.jsxs)(Xz, {
style: {
marginBottom: 16,
position: "relative"
},
children: [y && (0, import_jsx_runtime.jsx)(dz, {
variant: "rectangular",
width: "100%",
height: 200,
sx: { borderRadius: 1 }
}), (0, import_jsx_runtime.jsx)(nU, {
src: s,
alt: v(`${r}.title`, { defaultValue: n }),
onLoad: () => {
b(!1);
},
onError: () => {
b(!1);
},
style: {
width: "100%",
height: "auto",
display: y ? "none" : "block"
}
})]
}),
a && _ && (0, import_jsx_runtime.jsx)(Xz, {
display: "flex",
gap: 1,
flexWrap: "wrap",
marginBottom: 1,
children: a.map((t, n) => {
return (0, import_jsx_runtime.jsx)(Oz, {
variant: "outlined",
label: _[n] || t
}, `${r}-${t}`);
})
}),
(0, import_jsx_runtime.jsxs)(na, {
variant: "body2",
color: (e) => e.palette.text.secondary,
sx: { marginBottom: 1 },
children: [w, c && (0, import_jsx_runtime.jsx)("a", {
href: l,
target: "_blank",
rel: "noreferrer",
onClick: x,
children: " " + v(`${r}.readMoreText`, { defaultValue: c })
})]
}),
u && (0, import_jsx_runtime.jsx)(Xu, {
variant: "contained",
color: "promotion",
href: d,
target: "_blank",
onClick: x,
children: v(`${r}.cta`, { defaultValue: u })
})
]
});
};
var iU = react.forwardRef((e, t) => react.createElement(ru, _objectSpread2(_objectSpread2({ viewBox: "0 0 24 24" }, e), {}, { ref: t }), react.createElement("path", {
fillRule: "evenodd",
clipRule: "evenodd",
d: "M11.9302 3.00684C12.3573 3.03542 12.7729 3.16362 13.1431 3.38184C13.5618 3.6287 13.9074 3.98244 14.1451 4.40625L21.2456 16.6562L21.2915 16.751C21.4597 17.1668 21.524 17.6183 21.4781 18.0645C21.432 18.5106 21.2773 18.9397 21.0279 19.3125C20.7784 19.685 20.4411 19.9915 20.0464 20.2041C19.6517 20.4166 19.2105 20.529 18.7622 20.5322L18.7564 20.5332H4.75638C4.73812 20.5332 4.71964 20.5316 4.7017 20.5303C4.69631 20.5307 4.69052 20.5319 4.6851 20.5322L4.60795 20.5312L4.44388 20.5186C4.06393 20.476 3.69614 20.3543 3.36478 20.1611C2.98591 19.9403 2.66472 19.6317 2.42924 19.2617C2.19395 18.8919 2.051 18.4707 2.01127 18.0342C1.97166 17.5975 2.03678 17.1563 2.2017 16.75L2.2476 16.6562L9.34721 4.40625C9.58473 3.98261 9.93165 3.62868 10.3501 3.38184C10.7731 3.13252 11.2556 3.00006 11.7466 3L11.9302 3.00684ZM11.7574 15.7822C11.2051 15.7822 10.7574 16.2299 10.7574 16.7822C10.7574 17.3345 11.2051 17.7822 11.7574 17.7822H11.7671L11.8697 17.7773C12.3737 17.7259 12.7671 17.2998 12.7671 16.7822C12.7671 16.2647 12.3737 15.8386 11.8697 15.7871L11.7671 15.7822H11.7574ZM11.7564 8.0332C11.3424 8.03352 11.0064 8.36919 11.0064 8.7832V13.7832C11.0069 14.1968 11.3428 14.5329 11.7564 14.5332C12.1702 14.5332 12.5059 14.1969 12.5064 13.7832V8.7832C12.5064 8.36902 12.1706 8.03325 11.7564 8.0332Z"
})));
var sU = ({ appSettings: r }) => {
const { t: n } = vd("common", { i18n: Jh }), { data: o, isLoading: i, error: s } = (({ appName: e, appVersion: t }) => py({
queryKey: [
"notifications",
e,
t
],
queryFn: function() {
var _ref20 = _asyncToGenerator(function* () {
return (yield x_.getNotifications(e, t)).filter((e, t, r) => r.findIndex((t) => t.id === e.id) === t);
});
return function queryFn() {
return _ref20.apply(this, arguments);
};
}(),
retry: !1
}))({
appName: r.slug,
appVersion: r.version
});
return i ? (0, import_jsx_runtime.jsx)(Jz, {}) : s ? (0, import_jsx_runtime.jsxs)(zs, {
sx: { height: "100%" },
alignItems: "center",
justifyContent: "center",
children: [(0, import_jsx_runtime.jsx)(iU, {
color: "error",
fontSize: "large"
}), (0, import_jsx_runtime.jsx)(na, {
variant: "subtitle2",
color: "text.secondary",
textAlign: "center",
children: n("header.whatsNewError")
})]
}) : o === null || o === void 0 ? void 0 : o.map((r, n) => (0, import_jsx_runtime.jsxs)(Xz, {
"data-test": `whats-new-card-${n}`,
children: [(0, import_jsx_runtime.jsx)(oU, _objectSpread2({}, r)), (0, import_jsx_runtime.jsx)(du, { sx: { margin: "16px 0" } })]
}, r.id));
};
var aU = react.forwardRef((e, t) => react.createElement(ru, _objectSpread2(_objectSpread2({ viewBox: "0 0 24 24" }, e), {}, { ref: t }), react.createElement("path", {
fillRule: "evenodd",
clipRule: "evenodd",
d: "M18.5303 5.46967C18.8232 5.76256 18.8232 6.23744 18.5303 6.53033L6.53033 18.5303C6.23744 18.8232 5.76256 18.8232 5.46967 18.5303C5.17678 18.2374 5.17678 17.7626 5.46967 17.4697L17.4697 5.46967C17.7626 5.17678 18.2374 5.17678 18.5303 5.46967Z"
}), react.createElement("path", {
fillRule: "evenodd",
clipRule: "evenodd",
d: "M5.46967 5.46967C5.76256 5.17678 6.23744 5.17678 6.53033 5.46967L18.5303 17.4697C18.8232 17.7626 18.8232 18.2374 18.5303 18.5303C18.2374 18.8232 17.7626 18.8232 17.4697 18.5303L5.46967 6.53033C5.17678 6.23744 5.17678 5.76256 5.46967 5.46967Z"
})));
var lU = ({ appSettings: n, onClose: o }) => {
const { t: i } = vd("common", { i18n: Jh });
return (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [(0, import_jsx_runtime.jsxs)(Xz, {
sx: {
display: "flex",
alignItems: "center",
justifyContent: "space-between"
},
children: [(0, import_jsx_runtime.jsx)(na, {
variant: "subtitle1",
color: "primary.text",
children: i("header.whatsNew")
}), (0, import_jsx_runtime.jsx)(Zc, {
onClick: () => {
o();
},
"data-test": "service-banner-close",
children: (0, import_jsx_runtime.jsx)(aU, {})
})]
}), (0, import_jsx_runtime.jsx)(sU, { appSettings: n })] });
};
function cU(e) {
return yi;
}
function uU(e) {
return Qn("MuiBadge", e);
}
var pU = ks("MuiBadge", [
"root",
"badge",
"dot",
"standard",
"anchorOriginTopRight",
"anchorOriginBottomRight",
"anchorOriginTopLeft",
"anchorOriginBottomLeft",
"invisible",
"colorError",
"colorInfo",
"colorPrimary",
"colorSecondary",
"colorSuccess",
"colorWarning",
"overlapRectangular",
"overlapCircular",
"anchorOriginTopLeftCircular",
"anchorOriginTopLeftRectangular",
"anchorOriginTopRightCircular",
"anchorOriginTopRightRectangular",
"anchorOriginBottomLeftCircular",
"anchorOriginBottomLeftRectangular",
"anchorOriginBottomRightCircular",
"anchorOriginBottomRightRectangular"
]);
var dU = [
"anchorOrigin",
"className",
"classes",
"component",
"components",
"componentsProps",
"children",
"overlap",
"color",
"invisible",
"max",
"badgeContent",
"slots",
"slotProps",
"showZero",
"variant"
];
var fU = cU();
var hU = pi("span", {
name: "MuiBadge",
slot: "Root",
overridesResolver: (e, t) => t.root
})({
position: "relative",
display: "inline-flex",
verticalAlign: "middle",
flexShrink: 0
});
var mU = pi("span", {
name: "MuiBadge",
slot: "Badge",
overridesResolver: (e, t) => {
const { ownerState: r } = e;
return [
t.badge,
t[r.variant],
t[`anchorOrigin${bi(r.anchorOrigin.vertical)}${bi(r.anchorOrigin.horizontal)}${bi(r.overlap)}`],
"default" !== r.color && t[`color${bi(r.color)}`],
r.invisible && t.invisible
];
}
})(({ theme: e }) => {
var t;
return {
display: "flex",
flexDirection: "row",
flexWrap: "wrap",
justifyContent: "center",
alignContent: "center",
alignItems: "center",
position: "absolute",
boxSizing: "border-box",
fontFamily: e.typography.fontFamily,
fontWeight: e.typography.fontWeightMedium,
fontSize: e.typography.pxToRem(12),
minWidth: 20,
lineHeight: 1,
padding: "0 6px",
height: 20,
borderRadius: 10,
zIndex: 1,
transition: e.transitions.create("transform", {
easing: e.transitions.easing.easeInOut,
duration: e.transitions.duration.enteringScreen
}),
variants: [
...Object.keys((null != (t = e.vars) ? t : e).palette).filter((t) => {
var r;
var n;
return (null != (r = e.vars) ? r : e).palette[t].main && (null != (n = e.vars) ? n : e).palette[t].contrastText;
}).map((t) => ({
props: { color: t },
style: {
backgroundColor: (e.vars || e).palette[t].main,
color: (e.vars || e).palette[t].contrastText
}
})),
{
props: { variant: "dot" },
style: {
borderRadius: 4,
height: 8,
minWidth: 8,
padding: 0
}
},
{
props: ({ ownerState: e }) => "top" === e.anchorOrigin.vertical && "right" === e.anchorOrigin.horizontal && "rectangular" === e.overlap,
style: {
top: 0,
right: 0,
transform: "scale(1) translate(50%, -50%)",
transformOrigin: "100% 0%",
[`&.${pU.invisible}`]: { transform: "scale(0) translate(50%, -50%)" }
}
},
{
props: ({ ownerState: e }) => "bottom" === e.anchorOrigin.vertical && "right" === e.anchorOrigin.horizontal && "rectangular" === e.overlap,
style: {
bottom: 0,
right: 0,
transform: "scale(1) translate(50%, 50%)",
transformOrigin: "100% 100%",
[`&.${pU.invisible}`]: { transform: "scale(0) translate(50%, 50%)" }
}
},
{
props: ({ ownerState: e }) => "top" === e.anchorOrigin.vertical && "left" === e.anchorOrigin.horizontal && "rectangular" === e.overlap,
style: {
top: 0,
left: 0,
transform: "scale(1) translate(-50%, -50%)",
transformOrigin: "0% 0%",
[`&.${pU.invisible}`]: { transform: "scale(0) translate(-50%, -50%)" }
}
},
{
props: ({ ownerState: e }) => "bottom" === e.anchorOrigin.vertical && "left" === e.anchorOrigin.horizontal && "rectangular" === e.overlap,
style: {
bottom: 0,
left: 0,
transform: "scale(1) translate(-50%, 50%)",
transformOrigin: "0% 100%",
[`&.${pU.invisible}`]: { transform: "scale(0) translate(-50%, 50%)" }
}
},
{
props: ({ ownerState: e }) => "top" === e.anchorOrigin.vertical && "right" === e.anchorOrigin.horizontal && "circular" === e.overlap,
style: {
top: "14%",
right: "14%",
transform: "scale(1) translate(50%, -50%)",
transformOrigin: "100% 0%",
[`&.${pU.invisible}`]: { transform: "scale(0) translate(50%, -50%)" }
}
},
{
props: ({ ownerState: e }) => "bottom" === e.anchorOrigin.vertical && "right" === e.anchorOrigin.horizontal && "circular" === e.overlap,
style: {
bottom: "14%",
right: "14%",
transform: "scale(1) translate(50%, 50%)",
transformOrigin: "100% 100%",
[`&.${pU.invisible}`]: { transform: "scale(0) translate(50%, 50%)" }
}
},
{
props: ({ ownerState: e }) => "top" === e.anchorOrigin.vertical && "left" === e.anchorOrigin.horizontal && "circular" === e.overlap,
style: {
top: "14%",
left: "14%",
transform: "scale(1) translate(-50%, -50%)",
transformOrigin: "0% 0%",
[`&.${pU.invisible}`]: { transform: "scale(0) translate(-50%, -50%)" }
}
},
{
props: ({ ownerState: e }) => "bottom" === e.anchorOrigin.vertical && "left" === e.anchorOrigin.horizontal && "circular" === e.overlap,
style: {
bottom: "14%",
left: "14%",
transform: "scale(1) translate(-50%, 50%)",
transformOrigin: "0% 100%",
[`&.${pU.invisible}`]: { transform: "scale(0) translate(-50%, 50%)" }
}
},
{
props: { invisible: !0 },
style: { transition: e.transitions.create("transform", {
easing: e.transitions.easing.easeInOut,
duration: e.transitions.duration.leavingScreen
}) }
}
]
};
});
var gU = react.forwardRef(function(r, n) {
var o;
var i;
var s;
var a;
var l;
var c;
const u = fU({
props: r,
name: "MuiBadge"
}), { anchorOrigin: p = {
vertical: "top",
horizontal: "right"
}, className: d, component: f, components: h = {}, componentsProps: m = {}, children: g, overlap: v = "rectangular", color: y = "default", invisible: b = !1, max: x = 99, badgeContent: S, slots: k, slotProps: C, showZero: O = !1, variant: E = "standard" } = u, T = w(u, dU), { badgeContent: R, invisible: I, max: M, displayValue: A } = function(e) {
const { badgeContent: t, invisible: r = !1, max: n = 99, showZero: o = !1 } = e, i = af({
badgeContent: t,
max: n
});
let s = r;
!1 !== r || 0 !== t || o || (s = !0);
const { badgeContent: a, max: l = n } = s ? i : e;
return {
badgeContent: a,
invisible: s,
max: l,
displayValue: a && Number(a) > l ? `${l}+` : a
};
}({
max: x,
invisible: b,
badgeContent: S,
showZero: O
}), P = af({
anchorOrigin: p,
color: y,
overlap: v,
variant: E,
badgeContent: S
}), N = I || null == R && "dot" !== E, { color: L = y, overlap: D = v, anchorOrigin: j = p, variant: F = E } = N ? P : u, $ = "dot" !== F ? A : void 0, B = _({}, u, {
badgeContent: R,
invisible: N,
max: M,
displayValue: $,
showZero: O,
anchorOrigin: j,
color: L,
overlap: D,
variant: F
}), z = ((e) => {
const { color: t, anchorOrigin: r, invisible: n, overlap: o, variant: i, classes: s = {} } = e;
return ne({
root: ["root"],
badge: [
"badge",
i,
n && "invisible",
`anchorOrigin${bi(r.vertical)}${bi(r.horizontal)}`,
`anchorOrigin${bi(r.vertical)}${bi(r.horizontal)}${bi(o)}`,
`overlap${bi(o)}`,
"default" !== t && `color${bi(t)}`
]
}, uU, s);
})(B), V = null != (o = null != (i = null == k ? void 0 : k.root) ? i : h.Root) ? o : hU, U = null != (s = null != (a = null == k ? void 0 : k.badge) ? a : h.Badge) ? s : mU, q = null != (l = null == C ? void 0 : C.root) ? l : m.root, W = null != (c = null == C ? void 0 : C.badge) ? c : m.badge, H = pf({
elementType: V,
externalSlotProps: q,
externalForwardedProps: T,
additionalProps: {
ref: n,
as: f
},
ownerState: B,
className: re(null == q ? void 0 : q.className, z.root, d)
}), G = pf({
elementType: U,
externalSlotProps: W,
ownerState: B,
className: re(z.badge, null == W ? void 0 : W.className)
});
return (0, import_jsx_runtime.jsxs)(V, _({}, H, { children: [g, (0, import_jsx_runtime.jsx)(U, _({}, G, { children: $ }))] }));
});
gU.propTypes = {
anchorOrigin: ee.shape({
horizontal: ee.oneOf(["left", "right"]).isRequired,
vertical: ee.oneOf(["bottom", "top"]).isRequired
}),
badgeContent: ee.node,
children: ee.node,
classes: ee.object,
className: ee.string,
color: ee.oneOfType([ee.oneOf([
"default",
"primary",
"secondary",
"error",
"info",
"success",
"warning"
]), ee.string]),
component: ee.elementType,
components: ee.shape({
Badge: ee.elementType,
Root: ee.elementType
}),
componentsProps: ee.shape({
badge: ee.oneOfType([ee.func, ee.object]),
root: ee.oneOfType([ee.func, ee.object])
}),
invisible: ee.bool,
max: ee.number,
overlap: ee.oneOf(["circular", "rectangular"]),
showZero: ee.bool,
slotProps: ee.shape({
badge: ee.oneOfType([ee.func, ee.object]),
root: ee.oneOfType([ee.func, ee.object])
}),
slots: ee.shape({
badge: ee.elementType,
root: ee.elementType
}),
sx: ee.oneOfType([
ee.arrayOf(ee.oneOfType([
ee.func,
ee.object,
ee.bool
])),
ee.func,
ee.object
]),
variant: ee.oneOfType([ee.oneOf(["dot", "standard"]), ee.string])
};
var vU = gU;
var yU = react.default.forwardRef((e, t) => react.default.createElement(vU, _objectSpread2(_objectSpread2({}, e), {}, { ref: t })));
var bU = ({ appSettings: n, containerSx: o = {}, notificationsApiUrl: i, onClick: s }) => {
vd("assets-whatsnew", { i18n: Jh });
const [a, l] = (0, react.useState)(!1), [c, u] = (0, react.useState)(!1), p = () => {
l(!1);
};
return (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [(0, import_jsx_runtime.jsx)(yU, {
color: "primary",
overlap: "circular",
badgeContent: "",
invisible: c,
variant: "dot",
children: (0, import_jsx_runtime.jsx)(Zc, {
onClick: () => {
s(), a || c || u(!0), l(!a);
},
"data-test": "whats-new-button",
size: "small",
children: (0, import_jsx_runtime.jsx)(Iz, { fontSize: "small" })
})
}), (0, import_jsx_runtime.jsx)(Hc, {
colorScheme: "light",
children: (0, import_jsx_runtime.jsx)(Hz, {
variant: "temporary",
open: a,
disableScrollLock: !0,
anchor: "right",
onClose: p,
sx: o,
disableEnforceFocus: !0,
children: (0, import_jsx_runtime.jsx)(lU, {
appSettings: n,
onClose: p,
notificationsApiUrl: i
})
})
})] });
};
var wU = (e) => "checkbox" === e.type;
var _U = (e) => e instanceof Date;
var xU = (e) => null == e;
var SU = (e) => "object" == typeof e;
var kU = (e) => !xU(e) && !Array.isArray(e) && SU(e) && !_U(e);
var CU = (e) => kU(e) && e.target ? wU(e.target) ? e.target.checked : e.target.value : e;
var OU = (e, t) => e.has(((e) => e.substring(0, e.search(/\.\d+(\.|$)/)) || e)(t));
var EU = "undefined" != typeof window && void 0 !== window.HTMLElement && "undefined" != typeof document;
function TU(e) {
let t;
const r = Array.isArray(e);
const n = "undefined" != typeof FileList && e instanceof FileList;
if (e instanceof Date) t = new Date(e);
else {
if (EU && (e instanceof Blob || n) || !r && !kU(e)) return e;
if (t = r ? [] : Object.create(Object.getPrototypeOf(e)), r || ((e) => {
const t = e.constructor && e.constructor.prototype;
return kU(t) && t.hasOwnProperty("isPrototypeOf");
})(e)) for (const r in e) e.hasOwnProperty(r) && (t[r] = TU(e[r]));
else t = e;
}
return t;
}
var RU = (e) => /^\w*$/.test(e);
var IU = (e) => void 0 === e;
var MU = (e) => Array.isArray(e) ? e.filter(Boolean) : [];
var AU = (e) => MU(e.replace(/["|']|\]/g, "").split(/\.|\[/));
var PU = (e, t, r) => {
if (!t || !kU(e)) return r;
const n = (RU(t) ? [t] : AU(t)).reduce((e, t) => xU(e) ? e : e[t], e);
return IU(n) || n === e ? IU(e[t]) ? r : e[t] : n;
};
var NU = (e) => "boolean" == typeof e;
var LU = (e, t, r) => {
let n = -1;
const o = RU(t) ? [t] : AU(t);
const i = o.length;
const s = i - 1;
for (; ++n < i;) {
const t = o[n];
let i = r;
if (n !== s) {
const r = e[t];
i = kU(r) || Array.isArray(r) ? r : isNaN(+o[n + 1]) ? {} : [];
}
if ("__proto__" === t || "constructor" === t || "prototype" === t) return;
e[t] = i, e = e[t];
}
};
var DU = "blur";
var jU = "onChange";
var FU = "onSubmit";
var $U = "all";
var BU = "pattern";
var zU = "required";
var VU = react.default.createContext(null);
VU.displayName = "HookFormContext";
var UU = () => react.default.useContext(VU);
var qU = (e, t, r, n = !0) => {
const o = { defaultValues: t._defaultValues };
for (const i in e) Object.defineProperty(o, i, { get: () => {
const o = i;
return t._proxyFormState[o] !== $U && (t._proxyFormState[o] = !n || $U), r && (r[o] = !0), e[o];
} });
return o;
};
var WU = "undefined" != typeof window ? react.default.useLayoutEffect : react.default.useEffect;
var HU = (e) => "string" == typeof e;
var GU = (e, t, r, n, o) => HU(e) ? (n && t.watch.add(e), PU(r, e, o)) : Array.isArray(e) ? e.map((e) => (n && t.watch.add(e), PU(r, e))) : (n && (t.watchAll = !0), r);
var KU = (e) => xU(e) || !SU(e);
function YU(e, t, r = /* @__PURE__ */ new WeakSet()) {
if (KU(e) || KU(t)) return e === t;
if (_U(e) && _U(t)) return e.getTime() === t.getTime();
const n = Object.keys(e);
const o = Object.keys(t);
if (n.length !== o.length) return !1;
if (r.has(e) || r.has(t)) return !0;
r.add(e), r.add(t);
for (const i of n) {
const n = e[i];
if (!o.includes(i)) return !1;
if ("ref" !== i) {
const e = t[i];
if (_U(n) && _U(e) || kU(n) && kU(e) || Array.isArray(n) && Array.isArray(e) ? !YU(n, e, r) : n !== e) return !1;
}
}
return !0;
}
var ZU = (e) => e.render(function(e) {
const t = UU(), { name: r, disabled: n, control: i = t.control, shouldUnregister: s, defaultValue: a } = e, l = OU(i._names.array, r), u = function(e) {
const t = UU(), { control: r = t.control, name: n, defaultValue: i, disabled: s, exact: a, compute: l } = e || {}, c = react.default.useRef(i), u = react.default.useRef(l), p = react.default.useRef(void 0);
u.current = l;
const d = react.default.useMemo(() => r._getWatch(n, c.current), [r, n]), [f, h] = react.default.useState(u.current ? u.current(d) : d);
return WU(() => r._subscribe({
name: n,
formState: { values: !0 },
exact: a,
callback: (e) => {
if (!s) {
const t = GU(n, r._names, e.values || r._formValues, !1, c.current);
if (u.current) {
const e = u.current(t);
YU(e, p.current) || (h(e), p.current = e);
} else h(t);
}
}
}), [
r,
s,
n,
a
]), react.default.useEffect(() => r._removeUnmounted()), f;
}({
control: i,
name: r,
defaultValue: react.default.useMemo(() => PU(i._formValues, r, PU(i._defaultValues, r, a)), [
i,
r,
a
]),
exact: !0
}), p = function(e) {
const t = UU(), { control: r = t.control, disabled: n, name: i, exact: s } = e || {}, [a, l] = react.default.useState(r._formState), c = react.default.useRef({
isDirty: !1,
isLoading: !1,
dirtyFields: !1,
touchedFields: !1,
validatingFields: !1,
isValidating: !1,
isValid: !1,
errors: !1
});
return WU(() => r._subscribe({
name: i,
formState: c.current,
exact: s,
callback: (e) => {
!n && l(_objectSpread2(_objectSpread2({}, r._formState), e));
}
}), [
i,
n,
s
]), react.default.useEffect(() => {
c.current.isValid && r._setValid(!0);
}, [r]), react.default.useMemo(() => qU(a, r, c.current, !1), [a, r]);
}({
control: i,
name: r,
exact: !0
}), d = react.default.useRef(e), f = react.default.useRef(i.register(r, _objectSpread2(_objectSpread2({}, e.rules), {}, { value: u }, NU(e.disabled) ? { disabled: e.disabled } : {})));
d.current = e;
const h = react.default.useMemo(() => Object.defineProperties({}, {
invalid: {
enumerable: !0,
get: () => !!PU(p.errors, r)
},
isDirty: {
enumerable: !0,
get: () => !!PU(p.dirtyFields, r)
},
isTouched: {
enumerable: !0,
get: () => !!PU(p.touchedFields, r)
},
isValidating: {
enumerable: !0,
get: () => !!PU(p.validatingFields, r)
},
error: {
enumerable: !0,
get: () => PU(p.errors, r)
}
}), [p, r]);
const m = react.default.useCallback((e) => f.current.onChange({
target: {
value: CU(e),
name: r
},
type: "change"
}), [r]);
const g = react.default.useCallback(() => f.current.onBlur({
target: {
value: PU(i._formValues, r),
name: r
},
type: DU
}), [r, i._formValues]);
const v = react.default.useCallback((e) => {
const t = PU(i._fields, r);
t && e && (t._f.ref = {
focus: () => e.focus && e.focus(),
select: () => e.select && e.select(),
setCustomValidity: (t) => e.setCustomValidity(t),
reportValidity: () => e.reportValidity()
});
}, [i._fields, r]);
const y = react.default.useMemo(() => _objectSpread2(_objectSpread2({
name: r,
value: u
}, NU(n) || p.disabled ? { disabled: p.disabled || n } : {}), {}, {
onChange: m,
onBlur: g,
ref: v
}), [
r,
n,
p.disabled,
m,
g,
v,
u
]);
return react.default.useEffect(() => {
const e = i._options.shouldUnregister || s;
i.register(r, _objectSpread2(_objectSpread2({}, d.current.rules), NU(d.current.disabled) ? { disabled: d.current.disabled } : {}));
const t = (e, t) => {
const r = PU(i._fields, e);
r && r._f && (r._f.mount = t);
};
if (t(r, !0), e) {
const e = TU(PU(i._options.defaultValues, r));
LU(i._defaultValues, r, e), IU(PU(i._formValues, r)) && LU(i._formValues, r, e);
}
return !l && i.register(r), () => {
(l ? e && !i._state.action : e) ? i.unregister(r) : t(r, !1);
};
}, [
r,
i,
l,
s
]), react.default.useEffect(() => {
i._setDisabledField({
disabled: n,
name: r
});
}, [
n,
r,
i
]), react.default.useMemo(() => ({
field: y,
formState: p,
fieldState: h
}), [
y,
p,
h
]);
}(e));
var XU = (e, t, r, n, o) => t ? _objectSpread2(_objectSpread2({}, r[e]), {}, { types: _objectSpread2(_objectSpread2({}, r[e] && r[e].types ? r[e].types : {}), {}, { [n]: o || !0 }) }) : {};
var JU = (e) => Array.isArray(e) ? e : [e];
var QU = () => {
let e = [];
return {
get observers() {
return e;
},
next: (t) => {
for (const r of e) r.next && r.next(t);
},
subscribe: (t) => (e.push(t), { unsubscribe: () => {
e = e.filter((e) => e !== t);
} }),
unsubscribe: () => {
e = [];
}
};
};
var eq = (e) => kU(e) && !Object.keys(e).length;
var tq = (e) => "file" === e.type;
var rq = (e) => "function" == typeof e;
var nq = (e) => {
if (!EU) return !1;
const t = e ? e.ownerDocument : 0;
return e instanceof (t && t.defaultView ? t.defaultView.HTMLElement : HTMLElement);
};
var oq = (e) => "select-multiple" === e.type;
var iq = (e) => "radio" === e.type;
var sq = (e) => nq(e) && e.isConnected;
function aq(e, t) {
const r = Array.isArray(t) ? t : RU(t) ? [t] : AU(t);
const n = 1 === r.length ? e : function(e, t) {
const r = t.slice(0, -1).length;
let n = 0;
for (; n < r;) e = IU(e) ? n++ : e[t[n++]];
return e;
}(e, r);
const o = r.length - 1;
const i = r[o];
return n && delete n[i], 0 !== o && (kU(n) && eq(n) || Array.isArray(n) && function(e) {
for (const t in e) if (e.hasOwnProperty(t) && !IU(e[t])) return !1;
return !0;
}(n)) && aq(e, r.slice(0, -1)), e;
}
var lq = (e) => {
for (const t in e) if (rq(e[t])) return !0;
return !1;
};
function cq(e, t = {}) {
const r = Array.isArray(e);
if (kU(e) || r) for (const r in e) Array.isArray(e[r]) || kU(e[r]) && !lq(e[r]) ? (t[r] = Array.isArray(e[r]) ? [] : {}, cq(e[r], t[r])) : xU(e[r]) || (t[r] = !0);
return t;
}
function uq(e, t, r) {
const n = Array.isArray(e);
if (kU(e) || n) for (const n in e) Array.isArray(e[n]) || kU(e[n]) && !lq(e[n]) ? IU(t) || KU(r[n]) ? r[n] = Array.isArray(e[n]) ? cq(e[n], []) : _objectSpread2({}, cq(e[n])) : uq(e[n], xU(t) ? {} : t[n], r[n]) : r[n] = !YU(e[n], t[n]);
return r;
}
var pq = (e, t) => uq(e, t, cq(t));
var dq = {
value: !1,
isValid: !1
};
var fq = {
value: !0,
isValid: !0
};
var hq = (e) => {
if (Array.isArray(e)) {
if (e.length > 1) {
const t = e.filter((e) => e && e.checked && !e.disabled).map((e) => e.value);
return {
value: t,
isValid: !!t.length
};
}
return e[0].checked && !e[0].disabled ? e[0].attributes && !IU(e[0].attributes.value) ? IU(e[0].value) || "" === e[0].value ? fq : {
value: e[0].value,
isValid: !0
} : fq : dq;
}
return dq;
};
var mq = (e, { valueAsNumber: t, valueAsDate: r, setValueAs: n }) => IU(e) ? e : t ? "" === e ? NaN : e ? +e : e : r && HU(e) ? new Date(e) : n ? n(e) : e;
var gq = {
isValid: !1,
value: null
};
var vq = (e) => Array.isArray(e) ? e.reduce((e, t) => t && t.checked && !t.disabled ? {
isValid: !0,
value: t.value
} : e, gq) : gq;
function yq(e) {
const t = e.ref;
return tq(t) ? t.files : iq(t) ? vq(e.refs).value : oq(t) ? [...t.selectedOptions].map(({ value: e }) => e) : wU(t) ? hq(e.refs).value : mq(IU(t.value) ? e.ref.value : t.value, e);
}
var bq = (e) => e instanceof RegExp;
var wq = (e) => IU(e) ? e : bq(e) ? e.source : kU(e) ? bq(e.value) ? e.value.source : e.value : e;
var _q = (e) => ({
isOnSubmit: !e || e === FU,
isOnBlur: "onBlur" === e,
isOnChange: e === jU,
isOnAll: e === $U,
isOnTouch: "onTouched" === e
});
var xq = "AsyncFunction";
var Sq = (e) => !!e && !!e.validate && !!(rq(e.validate) && e.validate.constructor.name === xq || kU(e.validate) && Object.values(e.validate).find((e) => e.constructor.name === xq));
var kq = (e, t, r) => !r && (t.watchAll || t.watch.has(e) || [...t.watch].some((t) => e.startsWith(t) && /^\.\w+/.test(e.slice(t.length))));
var Cq = (e, t, r, n) => {
for (const o of r || Object.keys(e)) {
const r = PU(e, o);
if (r) {
const { _f: e } = r, i = _objectWithoutProperties(r, _excluded10);
if (e) {
if (e.refs && e.refs[0] && t(e.refs[0], o) && !n) return !0;
if (e.ref && t(e.ref, e.name) && !n) return !0;
if (Cq(i, t)) break;
} else if (kU(i) && Cq(i, t)) break;
}
}
};
function Oq(e, t, r) {
const n = PU(e, r);
if (n || RU(r)) return {
error: n,
name: r
};
const o = r.split(".");
for (; o.length;) {
const n = o.join(".");
const i = PU(t, n);
const s = PU(e, n);
if (i && !Array.isArray(i) && r !== n) return { name: r };
if (s && s.type) return {
name: n,
error: s
};
if (s && s.root && s.root.type) return {
name: `${n}.root`,
error: s.root
};
o.pop();
}
return { name: r };
}
var Eq = (e, t, r) => {
const n = JU(PU(e, r));
return LU(n, "root", t[r]), LU(e, r, n), e;
};
var Tq = (e) => HU(e);
function Rq(e, t, r = "validate") {
if (Tq(e) || Array.isArray(e) && e.every(Tq) || NU(e) && !e) return {
type: r,
message: Tq(e) ? e : "",
ref: t
};
}
var Iq = (e) => kU(e) && !bq(e) ? e : {
value: e,
message: ""
};
var Mq = function() {
var _ref21 = _asyncToGenerator(function* (e, t, r, n, o, i) {
const { ref: s, refs: a, required: l, maxLength: c, minLength: u, min: p, max: d, pattern: f, validate: h, name: m, valueAsNumber: g, mount: v } = e._f, y = PU(r, m);
if (!v || t.has(m)) return {};
const b = a ? a[0] : s;
const w = (e) => {
o && b.reportValidity && (b.setCustomValidity(NU(e) ? "" : e || ""), b.reportValidity());
};
const _ = {};
const x = iq(s);
const S = wU(s);
const k = x || S;
const C = (g || tq(s)) && IU(s.value) && IU(y) || nq(s) && "" === s.value || "" === y || Array.isArray(y) && !y.length;
const O = XU.bind(null, m, n, _);
const E = (e, t, r, n = "maxLength", o = "minLength") => {
const i = e ? t : r;
_[m] = _objectSpread2({
type: e ? n : o,
message: i,
ref: s
}, O(e ? n : o, i));
};
if (i ? !Array.isArray(y) || !y.length : l && (!k && (C || xU(y)) || NU(y) && !y || S && !hq(a).isValid || x && !vq(a).isValid)) {
const { value: e, message: t } = Tq(l) ? {
value: !!l,
message: l
} : Iq(l);
if (e && (_[m] = _objectSpread2({
type: zU,
message: t,
ref: b
}, O(zU, t)), !n)) return w(t), _;
}
if (!(C || xU(p) && xU(d))) {
let e;
let t;
const r = Iq(d);
const o = Iq(p);
if (xU(y) || isNaN(y)) {
const n = s.valueAsDate || new Date(y);
const i = (e) => /* @__PURE__ */ new Date((/* @__PURE__ */ new Date()).toDateString() + " " + e);
const a = "time" == s.type;
const l = "week" == s.type;
HU(r.value) && y && (e = a ? i(y) > i(r.value) : l ? y > r.value : n > new Date(r.value)), HU(o.value) && y && (t = a ? i(y) < i(o.value) : l ? y < o.value : n < new Date(o.value));
} else {
const n = s.valueAsNumber || (y ? +y : y);
xU(r.value) || (e = n > r.value), xU(o.value) || (t = n < o.value);
}
if ((e || t) && (E(!!e, r.message, o.message, "max", "min"), !n)) return w(_[m].message), _;
}
if ((c || u) && !C && (HU(y) || i && Array.isArray(y))) {
const e = Iq(c);
const t = Iq(u);
const r = !xU(e.value) && y.length > +e.value;
const o = !xU(t.value) && y.length < +t.value;
if ((r || o) && (E(r, e.message, t.message), !n)) return w(_[m].message), _;
}
if (f && !C && HU(y)) {
const { value: e, message: t } = Iq(f);
if (bq(e) && !y.match(e) && (_[m] = _objectSpread2({
type: BU,
message: t,
ref: s
}, O(BU, t)), !n)) return w(t), _;
}
if (h) {
if (rq(h)) {
const e = Rq(yield h(y, r), b);
if (e && (_[m] = _objectSpread2(_objectSpread2({}, e), O("validate", e.message)), !n)) return w(e.message), _;
} else if (kU(h)) {
let e = {};
for (const t in h) {
if (!eq(e) && !n) break;
const o = Rq(yield h[t](y, r), b, t);
o && (e = _objectSpread2(_objectSpread2({}, o), O(t, o.message)), w(o.message), n && (_[m] = e));
}
if (!eq(e) && (_[m] = _objectSpread2({ ref: b }, e), !n)) return _;
}
}
return w(!0), _;
});
return function Mq(_x17, _x18, _x19, _x20, _x21, _x22) {
return _ref21.apply(this, arguments);
};
}();
var Aq = {
mode: FU,
reValidateMode: jU,
shouldFocusError: !0
};
function Pq(e = {}) {
let t;
let r = _objectSpread2(_objectSpread2({}, Aq), e);
let n = {
submitCount: 0,
isDirty: !1,
isReady: !1,
isLoading: rq(r.defaultValues),
isValidating: !1,
isSubmitted: !1,
isSubmitting: !1,
isSubmitSuccessful: !1,
isValid: !1,
touchedFields: {},
dirtyFields: {},
validatingFields: {},
errors: r.errors || {},
disabled: r.disabled || !1
};
let o = {};
let i = (kU(r.defaultValues) || kU(r.values)) && TU(r.defaultValues || r.values) || {};
let s = r.shouldUnregister ? {} : TU(i);
let a = {
action: !1,
mount: !1,
watch: !1
};
let l = {
mount: /* @__PURE__ */ new Set(),
disabled: /* @__PURE__ */ new Set(),
unMount: /* @__PURE__ */ new Set(),
array: /* @__PURE__ */ new Set(),
watch: /* @__PURE__ */ new Set()
};
let c = 0;
const u = {
isDirty: !1,
dirtyFields: !1,
validatingFields: !1,
touchedFields: !1,
isValidating: !1,
isValid: !1,
errors: !1
};
let p = _objectSpread2({}, u);
const d = {
array: QU(),
state: QU()
};
const f = r.criteriaMode === $U;
const h = function() {
var _ref22 = _asyncToGenerator(function* (e) {
if (!r.disabled && (u.isValid || p.isValid || e)) {
const e = r.resolver ? eq((yield y()).errors) : yield b(o, !0);
e !== n.isValid && d.state.next({ isValid: e });
}
});
return function h(_x23) {
return _ref22.apply(this, arguments);
};
}();
const m = (e, t) => {
!r.disabled && (u.isValidating || u.validatingFields || p.isValidating || p.validatingFields) && ((e || Array.from(l.mount)).forEach((e) => {
e && (t ? LU(n.validatingFields, e, t) : aq(n.validatingFields, e));
}), d.state.next({
validatingFields: n.validatingFields,
isValidating: !eq(n.validatingFields)
}));
};
const g = (e, t, r, n) => {
const l = PU(o, e);
if (l) {
const o = PU(s, e, IU(r) ? PU(i, e) : r);
IU(o) || n && n.defaultChecked || t ? LU(s, e, t ? o : yq(l._f)) : x(e, o), a.mount && h();
}
};
const v = (e, t, o, s, a) => {
let l = !1;
let c = !1;
const f = { name: e };
if (!r.disabled) {
if (!o || s) {
(u.isDirty || p.isDirty) && (c = n.isDirty, n.isDirty = f.isDirty = w(), l = c !== f.isDirty);
const r = YU(PU(i, e), t);
c = !!PU(n.dirtyFields, e), r ? aq(n.dirtyFields, e) : LU(n.dirtyFields, e, !0), f.dirtyFields = n.dirtyFields, l = l || (u.dirtyFields || p.dirtyFields) && c !== !r;
}
if (o) {
const t = PU(n.touchedFields, e);
t || (LU(n.touchedFields, e, o), f.touchedFields = n.touchedFields, l = l || (u.touchedFields || p.touchedFields) && t !== o);
}
l && a && d.state.next(f);
}
return l ? f : {};
};
const y = function() {
var _ref23 = _asyncToGenerator(function* (e) {
m(e, !0);
const t = yield r.resolver(s, r.context, ((e, t, r, n) => {
const o = {};
for (const r of e) {
const e = PU(t, r);
e && LU(o, r, e._f);
}
return {
criteriaMode: r,
names: [...e],
fields: o,
shouldUseNativeValidation: n
};
})(e || l.mount, o, r.criteriaMode, r.shouldUseNativeValidation));
return m(e), t;
});
return function y(_x24) {
return _ref23.apply(this, arguments);
};
}();
const b = function() {
var _ref24 = _asyncToGenerator(function* (e, t, o = { valid: !0 }) {
for (const i in e) {
const a = e[i];
if (a) {
const { _f: e } = a, c = _objectWithoutProperties(a, _excluded11);
if (e) {
const c = l.array.has(e.name);
const p = a._f && Sq(a._f);
p && u.validatingFields && m([i], !0);
const d = yield Mq(a, l.disabled, s, f, r.shouldUseNativeValidation && !t, c);
if (p && u.validatingFields && m([i]), d[e.name] && (o.valid = !1, t)) break;
!t && (PU(d, e.name) ? c ? Eq(n.errors, d, e.name) : LU(n.errors, e.name, d[e.name]) : aq(n.errors, e.name));
}
!eq(c) && (yield b(c, t, o));
}
}
return o.valid;
});
return function b(_x25, _x26) {
return _ref24.apply(this, arguments);
};
}();
const w = (e, t) => !r.disabled && (e && t && LU(s, e, t), !YU(T(), i));
const _ = (e, t, r) => GU(e, l, _objectSpread2({}, a.mount ? s : IU(t) ? i : HU(e) ? { [e]: t } : t), r, t);
const x = (e, t, r = {}) => {
const n = PU(o, e);
let i = t;
if (n) {
const r = n._f;
r && (!r.disabled && LU(s, e, mq(t, r)), i = nq(r.ref) && xU(t) ? "" : t, oq(r.ref) ? [...r.ref.options].forEach((e) => e.selected = i.includes(e.value)) : r.refs ? wU(r.ref) ? r.refs.forEach((e) => {
e.defaultChecked && e.disabled || (Array.isArray(i) ? e.checked = !!i.find((t) => t === e.value) : e.checked = i === e.value || !!i);
}) : r.refs.forEach((e) => e.checked = e.value === i) : tq(r.ref) ? r.ref.value = "" : (r.ref.value = i, r.ref.type || d.state.next({
name: e,
values: TU(s)
})));
}
(r.shouldDirty || r.shouldTouch) && v(e, i, r.shouldTouch, r.shouldDirty, !0), r.shouldValidate && E(e);
};
const S = (e, t, r) => {
for (const n in t) {
if (!t.hasOwnProperty(n)) return;
const i = t[n];
const s = e + "." + n;
const a = PU(o, s);
(l.array.has(e) || kU(i) || a && !a._f) && !_U(i) ? S(s, i, r) : x(s, i, r);
}
};
const k = (e, t, r = {}) => {
const c = PU(o, e);
const f = l.array.has(e);
const h = TU(t);
LU(s, e, h), f ? (d.array.next({
name: e,
values: TU(s)
}), (u.isDirty || u.dirtyFields || p.isDirty || p.dirtyFields) && r.shouldDirty && d.state.next({
name: e,
dirtyFields: pq(i, s),
isDirty: w(e, h)
})) : !c || c._f || xU(h) ? x(e, h, r) : S(e, h, r), kq(e, l) && d.state.next(_objectSpread2(_objectSpread2({}, n), {}, { name: e })), d.state.next({
name: a.mount ? e : void 0,
values: TU(s)
});
};
const C = function() {
var _ref25 = _asyncToGenerator(function* (e) {
a.mount = !0;
const i = e.target;
let g = i.name;
let w = !0;
const _ = PU(o, g);
const x = (e) => {
w = Number.isNaN(e) || _U(e) && isNaN(e.getTime()) || YU(e, PU(s, g, e));
};
const S = _q(r.mode);
const k = _q(r.reValidateMode);
if (_) {
let a;
let O;
const T = i.type ? yq(_._f) : CU(e);
const R = e.type === DU || "focusout" === e.type;
const I = !((C = _._f).mount && (C.required || C.min || C.max || C.maxLength || C.minLength || C.pattern || C.validate) || r.resolver || PU(n.errors, g) || _._f.deps) || ((e, t, r, n, o) => !o.isOnAll && (!r && o.isOnTouch ? !(t || e) : (r ? n.isOnBlur : o.isOnBlur) ? !e : !(r ? n.isOnChange : o.isOnChange) || e))(R, PU(n.touchedFields, g), n.isSubmitted, k, S);
const M = kq(g, l, R);
LU(s, g, T), R ? i && i.readOnly || (_._f.onBlur && _._f.onBlur(e), t && t(0)) : _._f.onChange && _._f.onChange(e);
const A = v(g, T, R);
const P = !eq(A) || M;
if (!R && d.state.next({
name: g,
type: e.type,
values: TU(s)
}), I) return (u.isValid || p.isValid) && ("onBlur" === r.mode ? R && h() : R || h()), P && d.state.next(_objectSpread2({ name: g }, M ? {} : A));
if (!R && M && d.state.next(_objectSpread2({}, n)), r.resolver) {
const { errors: e } = yield y([g]);
if (x(T), w) {
const t = Oq(n.errors, o, g);
const r = Oq(e, o, t.name || g);
a = r.error, g = r.name, O = eq(e);
}
} else m([g], !0), a = (yield Mq(_, l.disabled, s, f, r.shouldUseNativeValidation))[g], m([g]), x(T), w && (a ? O = !1 : (u.isValid || p.isValid) && (O = yield b(o, !0)));
w && (_._f.deps && E(_._f.deps), ((e, o, i, s) => {
const a = PU(n.errors, e);
const l = (u.isValid || p.isValid) && NU(o) && n.isValid !== o;
var f;
if (r.delayError && i ? (f = () => ((e, t) => {
LU(n.errors, e, t), d.state.next({ errors: n.errors });
})(e, i), t = (e) => {
clearTimeout(c), c = setTimeout(f, e);
}, t(r.delayError)) : (clearTimeout(c), t = null, i ? LU(n.errors, e, i) : aq(n.errors, e)), (i ? !YU(a, i) : a) || !eq(s) || l) {
const t = _objectSpread2(_objectSpread2(_objectSpread2({}, s), l && NU(o) ? { isValid: o } : {}), {}, {
errors: n.errors,
name: e
});
n = _objectSpread2(_objectSpread2({}, n), t), d.state.next(t);
}
})(g, O, a, A));
}
var C;
});
return function C(_x27) {
return _ref25.apply(this, arguments);
};
}();
const O = (e, t) => {
if (PU(n.errors, t) && e.focus) return e.focus(), 1;
};
const E = function() {
var _ref28 = _asyncToGenerator(function* (e, t = {}) {
let i;
let s;
const a = JU(e);
if (r.resolver) {
const t = yield function() {
var _ref26 = _asyncToGenerator(function* (e) {
const { errors: t } = yield y(e);
if (e) for (const r of e) {
const e = PU(t, r);
e ? LU(n.errors, r, e) : aq(n.errors, r);
}
else n.errors = t;
return t;
});
return function(_x28) {
return _ref26.apply(this, arguments);
};
}()(IU(e) ? e : a);
i = eq(t), s = e ? !a.some((e) => PU(t, e)) : i;
} else e ? (s = (yield Promise.all(a.map(function() {
var _ref27 = _asyncToGenerator(function* (e) {
const t = PU(o, e);
return yield b(t && t._f ? { [e]: t } : t);
});
return function(_x29) {
return _ref27.apply(this, arguments);
};
}()))).every(Boolean), (s || n.isValid) && h()) : s = i = yield b(o);
return d.state.next(_objectSpread2(_objectSpread2(_objectSpread2({}, !HU(e) || (u.isValid || p.isValid) && i !== n.isValid ? {} : { name: e }), r.resolver || !e ? { isValid: i } : {}), {}, { errors: n.errors })), t.shouldFocus && !s && Cq(o, O, e ? a : l.mount), s;
});
return function E(_x30) {
return _ref28.apply(this, arguments);
};
}();
const T = (e) => {
const t = _objectSpread2({}, a.mount ? s : i);
return IU(e) ? t : HU(e) ? PU(t, e) : e.map((e) => PU(t, e));
};
const R = (e, t) => ({
invalid: !!PU((t || n).errors, e),
isDirty: !!PU((t || n).dirtyFields, e),
error: PU((t || n).errors, e),
isValidating: !!PU(n.validatingFields, e),
isTouched: !!PU((t || n).touchedFields, e)
});
const I = (e, t, r) => {
const i = (PU(o, e, { _f: {} })._f || {}).ref, s = PU(n.errors, e) || {}, { ref: a, message: l, type: c } = s, u = _objectWithoutProperties(s, _excluded12);
LU(n.errors, e, _objectSpread2(_objectSpread2(_objectSpread2({}, u), t), {}, { ref: i })), d.state.next({
name: e,
errors: n.errors,
isValid: !1
}), r && r.shouldFocus && i && i.focus && i.focus();
};
const M = (e) => d.state.subscribe({ next: (t) => {
var r = e.name;
var o = t.name;
var a = e.exact;
r && o && r !== o && !JU(r).some((e) => e && (a ? e === o : e.startsWith(o) || o.startsWith(e))) || !((e, t, r, n) => {
r(e);
const { name: o } = e, i = _objectWithoutProperties(e, _excluded13);
return eq(i) || Object.keys(i).length >= Object.keys(t).length || Object.keys(i).find((e) => t[e] === (!n || $U));
})(t, e.formState || u, $, e.reRenderRoot) || e.callback(_objectSpread2(_objectSpread2(_objectSpread2({ values: _objectSpread2({}, s) }, n), t), {}, { defaultValues: i }));
} }).unsubscribe;
const A = (e, t = {}) => {
for (const a of e ? JU(e) : l.mount) l.mount.delete(a), l.array.delete(a), t.keepValue || (aq(o, a), aq(s, a)), !t.keepError && aq(n.errors, a), !t.keepDirty && aq(n.dirtyFields, a), !t.keepTouched && aq(n.touchedFields, a), !t.keepIsValidating && aq(n.validatingFields, a), !r.shouldUnregister && !t.keepDefaultValue && aq(i, a);
d.state.next({ values: TU(s) }), d.state.next(_objectSpread2(_objectSpread2({}, n), t.keepDirty ? { isDirty: w() } : {})), !t.keepIsValid && h();
};
const P = ({ disabled: e, name: t }) => {
(NU(e) && a.mount || e || l.disabled.has(t)) && (e ? l.disabled.add(t) : l.disabled.delete(t));
};
const N = (e, t = {}) => {
let n = PU(o, e);
const s = NU(t.disabled) || NU(r.disabled);
return LU(o, e, _objectSpread2(_objectSpread2({}, n || {}), {}, { _f: _objectSpread2(_objectSpread2({}, n && n._f ? n._f : { ref: { name: e } }), {}, {
name: e,
mount: !0
}, t) })), l.mount.add(e), n ? P({
disabled: NU(t.disabled) ? t.disabled : r.disabled,
name: e
}) : g(e, !0, t.value), _objectSpread2(_objectSpread2(_objectSpread2({}, s ? { disabled: t.disabled || r.disabled } : {}), r.progressive ? {
required: !!t.required,
min: wq(t.min),
max: wq(t.max),
minLength: wq(t.minLength),
maxLength: wq(t.maxLength),
pattern: wq(t.pattern)
} : {}), {}, {
name: e,
onChange: C,
onBlur: C,
ref: (s) => {
if (s) {
N(e, t), n = PU(o, e);
const r = IU(s.value) && s.querySelectorAll && s.querySelectorAll("input,select,textarea")[0] || s;
const a = ((e) => iq(e) || wU(e))(r);
const l = n._f.refs || [];
if (a ? l.find((e) => e === r) : r === n._f.ref) return;
LU(o, e, { _f: _objectSpread2(_objectSpread2({}, n._f), a ? {
refs: [
...l.filter(sq),
r,
...Array.isArray(PU(i, e)) ? [{}] : []
],
ref: {
type: r.type,
name: e
}
} : { ref: r }) }), g(e, !1, void 0, r);
} else n = PU(o, e, {}), n._f && (n._f.mount = !1), (r.shouldUnregister || t.shouldUnregister) && (!OU(l.array, e) || !a.action) && l.unMount.add(e);
}
});
};
const L = () => r.shouldFocusError && Cq(o, O, l.mount);
const D = (e, t) => function() {
var _ref29 = _asyncToGenerator(function* (i) {
let a;
i && (i.preventDefault && i.preventDefault(), i.persist && i.persist());
let c = TU(s);
if (d.state.next({ isSubmitting: !0 }), r.resolver) {
const { errors: e, values: t } = yield y();
n.errors = e, c = TU(t);
} else yield b(o);
if (l.disabled.size) for (const e of l.disabled) aq(c, e);
if (aq(n.errors, "root"), eq(n.errors)) {
d.state.next({ errors: {} });
try {
yield e(c, i);
} catch (e) {
a = e;
}
} else t && (yield t(_objectSpread2({}, n.errors), i)), L(), setTimeout(L);
if (d.state.next({
isSubmitted: !0,
isSubmitting: !1,
isSubmitSuccessful: eq(n.errors) && !a,
submitCount: n.submitCount + 1,
errors: n.errors
}), a) throw a;
});
return function(_x31) {
return _ref29.apply(this, arguments);
};
}();
const j = (e, t = {}) => {
const c = e ? TU(e) : i;
const p = TU(c);
const f = eq(e);
const h = f ? i : p;
if (t.keepDefaultValues || (i = c), !t.keepValues) {
if (t.keepDirtyValues) {
const e = /* @__PURE__ */ new Set([...l.mount, ...Object.keys(pq(i, s))]);
for (const t of Array.from(e)) PU(n.dirtyFields, t) ? LU(h, t, PU(s, t)) : k(t, PU(h, t));
} else {
if (EU && IU(e)) for (const e of l.mount) {
const t = PU(o, e);
if (t && t._f) {
const e = Array.isArray(t._f.refs) ? t._f.refs[0] : t._f.ref;
if (nq(e)) {
const t = e.closest("form");
if (t) {
t.reset();
break;
}
}
}
}
if (t.keepFieldsRef) for (const e of l.mount) k(e, PU(h, e));
else o = {};
}
s = r.shouldUnregister ? t.keepDefaultValues ? TU(i) : {} : TU(h), d.array.next({ values: _objectSpread2({}, h) }), d.state.next({ values: _objectSpread2({}, h) });
}
l = {
mount: t.keepDirtyValues ? l.mount : /* @__PURE__ */ new Set(),
unMount: /* @__PURE__ */ new Set(),
array: /* @__PURE__ */ new Set(),
disabled: /* @__PURE__ */ new Set(),
watch: /* @__PURE__ */ new Set(),
watchAll: !1,
focus: ""
}, a.mount = !u.isValid || !!t.keepIsValid || !!t.keepDirtyValues, a.watch = !!r.shouldUnregister, d.state.next({
submitCount: t.keepSubmitCount ? n.submitCount : 0,
isDirty: !f && (t.keepDirty ? n.isDirty : !(!t.keepDefaultValues || YU(e, i))),
isSubmitted: !!t.keepIsSubmitted && n.isSubmitted,
dirtyFields: f ? {} : t.keepDirtyValues ? t.keepDefaultValues && s ? pq(i, s) : n.dirtyFields : t.keepDefaultValues && e ? pq(i, e) : t.keepDirty ? n.dirtyFields : {},
touchedFields: t.keepTouched ? n.touchedFields : {},
errors: t.keepErrors ? n.errors : {},
isSubmitSuccessful: !!t.keepIsSubmitSuccessful && n.isSubmitSuccessful,
isSubmitting: !1,
defaultValues: i
});
};
const F = (e, t) => j(rq(e) ? e(s) : e, t);
const $ = (e) => {
n = _objectSpread2(_objectSpread2({}, n), e);
};
const B = {
control: {
register: N,
unregister: A,
getFieldState: R,
handleSubmit: D,
setError: I,
_subscribe: M,
_runSchema: y,
_focusError: L,
_getWatch: _,
_getDirty: w,
_setValid: h,
_setFieldArray: (e, t = [], l, c, f = !0, h = !0) => {
if (c && l && !r.disabled) {
if (a.action = !0, h && Array.isArray(PU(o, e))) {
const t = l(PU(o, e), c.argA, c.argB);
f && LU(o, e, t);
}
if (h && Array.isArray(PU(n.errors, e))) {
const t = l(PU(n.errors, e), c.argA, c.argB);
f && LU(n.errors, e, t), ((e, t) => {
!MU(PU(e, t)).length && aq(e, t);
})(n.errors, e);
}
if ((u.touchedFields || p.touchedFields) && h && Array.isArray(PU(n.touchedFields, e))) {
const t = l(PU(n.touchedFields, e), c.argA, c.argB);
f && LU(n.touchedFields, e, t);
}
(u.dirtyFields || p.dirtyFields) && (n.dirtyFields = pq(i, s)), d.state.next({
name: e,
isDirty: w(e, t),
dirtyFields: n.dirtyFields,
errors: n.errors,
isValid: n.isValid
});
} else LU(s, e, t);
},
_setDisabledField: P,
_setErrors: (e) => {
n.errors = e, d.state.next({
errors: n.errors,
isValid: !1
});
},
_getFieldArray: (e) => MU(PU(a.mount ? s : i, e, r.shouldUnregister ? PU(i, e, []) : [])),
_reset: j,
_resetDefaultValues: () => rq(r.defaultValues) && r.defaultValues().then((e) => {
F(e, r.resetOptions), d.state.next({ isLoading: !1 });
}),
_removeUnmounted: () => {
for (const e of l.unMount) {
const t = PU(o, e);
t && (t._f.refs ? t._f.refs.every((e) => !sq(e)) : !sq(t._f.ref)) && A(e);
}
l.unMount = /* @__PURE__ */ new Set();
},
_disableForm: (e) => {
NU(e) && (d.state.next({ disabled: e }), Cq(o, (t, r) => {
const n = PU(o, r);
n && (t.disabled = n._f.disabled || e, Array.isArray(n._f.refs) && n._f.refs.forEach((t) => {
t.disabled = n._f.disabled || e;
}));
}, 0, !1));
},
_subjects: d,
_proxyFormState: u,
get _fields() {
return o;
},
get _formValues() {
return s;
},
get _state() {
return a;
},
set _state(e) {
a = e;
},
get _defaultValues() {
return i;
},
get _names() {
return l;
},
set _names(e) {
l = e;
},
get _formState() {
return n;
},
get _options() {
return r;
},
set _options(e) {
r = _objectSpread2(_objectSpread2({}, r), e);
}
},
subscribe: (e) => (a.mount = !0, p = _objectSpread2(_objectSpread2({}, p), e.formState), M(_objectSpread2(_objectSpread2({}, e), {}, { formState: p }))),
trigger: E,
register: N,
handleSubmit: D,
watch: (e, t) => rq(e) ? d.state.subscribe({ next: (r) => "values" in r && e(_(void 0, t), r) }) : _(e, t, !0),
setValue: k,
getValues: T,
reset: F,
resetField: (e, t = {}) => {
PU(o, e) && (IU(t.defaultValue) ? k(e, TU(PU(i, e))) : (k(e, t.defaultValue), LU(i, e, TU(t.defaultValue))), t.keepTouched || aq(n.touchedFields, e), t.keepDirty || (aq(n.dirtyFields, e), n.isDirty = t.defaultValue ? w(e, TU(PU(i, e))) : w()), t.keepError || (aq(n.errors, e), u.isValid && h()), d.state.next(_objectSpread2({}, n)));
},
clearErrors: (e) => {
e && JU(e).forEach((e) => aq(n.errors, e)), d.state.next({ errors: e ? n.errors : {} });
},
unregister: A,
setError: I,
setFocus: (e, t = {}) => {
const r = PU(o, e);
const n = r && r._f;
if (n) {
const e = n.refs ? n.refs[0] : n.ref;
e.focus && (e.focus(), t.shouldSelect && rq(e.select) && e.select());
}
},
getFieldState: R
};
return _objectSpread2(_objectSpread2({}, B), {}, { formControl: B });
}
function Nq(e) {
return Qn("MuiDialog", e);
}
var Lq = ks("MuiDialog", [
"root",
"scrollPaper",
"scrollBody",
"container",
"paper",
"paperScrollPaper",
"paperScrollBody",
"paperWidthFalse",
"paperWidthXs",
"paperWidthSm",
"paperWidthMd",
"paperWidthLg",
"paperWidthXl",
"paperFullWidth",
"paperFullScreen"
]);
var Dq = react.createContext({});
Dq.displayName = "DialogContext";
var jq = Dq;
var Fq = [
"aria-describedby",
"aria-labelledby",
"BackdropComponent",
"BackdropProps",
"children",
"className",
"disableEscapeKeyDown",
"fullScreen",
"fullWidth",
"maxWidth",
"onBackdropClick",
"onClick",
"onClose",
"open",
"PaperComponent",
"PaperProps",
"scroll",
"TransitionComponent",
"transitionDuration",
"TransitionProps"
];
var $q = pi(Xf, {
name: "MuiDialog",
slot: "Backdrop",
overrides: (e, t) => t.backdrop
})({ zIndex: -1 });
var Bq = pi(nh, {
name: "MuiDialog",
slot: "Root",
overridesResolver: (e, t) => t.root
})({ "@media print": { position: "absolute !important" } });
var zq = pi("div", {
name: "MuiDialog",
slot: "Container",
overridesResolver: (e, t) => {
const { ownerState: r } = e;
return [t.container, t[`scroll${bi(r.scroll)}`]];
}
})(({ ownerState: e }) => _({
height: "100%",
"@media print": { height: "auto" },
outline: 0
}, "paper" === e.scroll && {
display: "flex",
justifyContent: "center",
alignItems: "center"
}, "body" === e.scroll && {
overflowY: "auto",
overflowX: "hidden",
textAlign: "center",
"&::after": {
content: "\"\"",
display: "inline-block",
verticalAlign: "middle",
height: "100%",
width: "0"
}
}));
var Vq = pi(Rs, {
name: "MuiDialog",
slot: "Paper",
overridesResolver: (e, t) => {
const { ownerState: r } = e;
return [
t.paper,
t[`scrollPaper${bi(r.scroll)}`],
t[`paperWidth${bi(String(r.maxWidth))}`],
r.fullWidth && t.paperFullWidth,
r.fullScreen && t.paperFullScreen
];
}
})(({ theme: e, ownerState: t }) => _({
margin: 32,
position: "relative",
overflowY: "auto",
"@media print": {
overflowY: "visible",
boxShadow: "none"
}
}, "paper" === t.scroll && {
display: "flex",
flexDirection: "column",
maxHeight: "calc(100% - 64px)"
}, "body" === t.scroll && {
display: "inline-block",
verticalAlign: "middle",
textAlign: "left"
}, !t.maxWidth && { maxWidth: "calc(100% - 64px)" }, "xs" === t.maxWidth && {
maxWidth: "px" === e.breakpoints.unit ? Math.max(e.breakpoints.values.xs, 444) : `max(${e.breakpoints.values.xs}${e.breakpoints.unit}, 444px)`,
[`&.${Lq.paperScrollBody}`]: { [e.breakpoints.down(Math.max(e.breakpoints.values.xs, 444) + 64)]: { maxWidth: "calc(100% - 64px)" } }
}, t.maxWidth && "xs" !== t.maxWidth && {
maxWidth: `${e.breakpoints.values[t.maxWidth]}${e.breakpoints.unit}`,
[`&.${Lq.paperScrollBody}`]: { [e.breakpoints.down(e.breakpoints.values[t.maxWidth] + 64)]: { maxWidth: "calc(100% - 64px)" } }
}, t.fullWidth && { width: "calc(100% - 64px)" }, t.fullScreen && {
margin: 0,
width: "100%",
maxWidth: "100%",
height: "100%",
maxHeight: "none",
borderRadius: 0,
[`&.${Lq.paperScrollBody}`]: {
margin: 0,
maxWidth: "100%"
}
}));
var Uq = react.forwardRef(function(t, r) {
const o = yi({
props: t,
name: "MuiDialog"
}), i = Ss(), s = {
enter: i.transitions.duration.enteringScreen,
exit: i.transitions.duration.leavingScreen
}, { "aria-describedby": a, "aria-labelledby": l, BackdropComponent: c, BackdropProps: u, children: p, className: d, disableEscapeKeyDown: f = !1, fullScreen: h = !1, fullWidth: m = !1, maxWidth: g = "sm", onBackdropClick: v, onClick: y, onClose: b, open: x, PaperComponent: S = Rs, PaperProps: k = {}, scroll: C = "paper", TransitionComponent: O = Hf, transitionDuration: E = s, TransitionProps: T } = o, R = w(o, Fq), I = _({}, o, {
disableEscapeKeyDown: f,
fullScreen: h,
fullWidth: m,
maxWidth: g,
scroll: C
}), M = ((e) => {
const { classes: t, scroll: r, maxWidth: n, fullWidth: o, fullScreen: i } = e;
return ne({
root: ["root"],
container: ["container", `scroll${bi(r)}`],
paper: [
"paper",
`paperScroll${bi(r)}`,
`paperWidth${bi(String(n))}`,
o && "paperFullWidth",
i && "paperFullScreen"
]
}, Nq, t);
})(I), A = react.useRef(), P = nf(l), N = react.useMemo(() => ({ titleId: P }), [P]);
return (0, import_jsx_runtime.jsx)(Bq, _({
className: re(M.root, d),
closeAfterTransition: !0,
components: { Backdrop: $q },
componentsProps: { backdrop: _({
transitionDuration: E,
as: c
}, u) },
disableEscapeKeyDown: f,
onClose: b,
open: x,
ref: r,
onClick: (e) => {
y && y(e), A.current && (A.current = null, v && v(e), b && b(e, "backdropClick"));
},
ownerState: I
}, R, { children: (0, import_jsx_runtime.jsx)(O, _({
appear: !0,
in: x,
timeout: E,
role: "presentation"
}, T, { children: (0, import_jsx_runtime.jsx)(zq, {
className: re(M.container),
onMouseDown: (e) => {
A.current = e.target === e.currentTarget;
},
ownerState: I,
children: (0, import_jsx_runtime.jsx)(Vq, _({
as: S,
elevation: 24,
role: "dialog",
"aria-describedby": a,
"aria-labelledby": P
}, k, {
className: re(M.paper, k.className),
ownerState: I,
children: (0, import_jsx_runtime.jsx)(jq.Provider, {
value: N,
children: p
})
}))
}) })) }));
});
Uq.propTypes = {
"aria-describedby": ee.string,
"aria-labelledby": ee.string,
BackdropComponent: ee.elementType,
BackdropProps: ee.object,
children: ee.node,
classes: ee.object,
className: ee.string,
disableEscapeKeyDown: ee.bool,
fullScreen: ee.bool,
fullWidth: ee.bool,
maxWidth: ee.oneOfType([ee.oneOf([
"xs",
"sm",
"md",
"lg",
"xl",
!1
]), ee.string]),
onBackdropClick: ee.func,
onClick: ee.func,
onClose: ee.func,
open: ee.bool.isRequired,
PaperComponent: ee.elementType,
PaperProps: ee.object,
scroll: ee.oneOf(["body", "paper"]),
sx: ee.oneOfType([
ee.arrayOf(ee.oneOfType([
ee.func,
ee.object,
ee.bool
])),
ee.func,
ee.object
]),
TransitionComponent: ee.elementType,
transitionDuration: ee.oneOfType([ee.number, ee.shape({
appear: ee.number,
enter: ee.number,
exit: ee.number
})]),
TransitionProps: ee.object
};
var qq = Uq;
var Wq = react.default.forwardRef((e, t) => react.default.createElement(qq, _objectSpread2(_objectSpread2({}, e), {}, { ref: t })));
function Hq(e) {
return Qn("MuiDialogContent", e);
}
function Gq(e) {
return Qn("MuiDialogTitle", e);
}
ks("MuiDialogContent", ["root", "dividers"]);
var Kq = ks("MuiDialogTitle", ["root"]);
var Yq = ["className", "dividers"];
var Zq = pi("div", {
name: "MuiDialogContent",
slot: "Root",
overridesResolver: (e, t) => {
const { ownerState: r } = e;
return [t.root, r.dividers && t.dividers];
}
})(({ theme: e, ownerState: t }) => _({
flex: "1 1 auto",
WebkitOverflowScrolling: "touch",
overflowY: "auto",
padding: "20px 24px"
}, t.dividers ? {
padding: "16px 24px",
borderTop: `1px solid ${(e.vars || e).palette.divider}`,
borderBottom: `1px solid ${(e.vars || e).palette.divider}`
} : { [`.${Kq.root} + &`]: { paddingTop: 0 } }));
var Xq = react.forwardRef(function(t, r) {
const n = yi({
props: t,
name: "MuiDialogContent"
}), { className: o, dividers: i = !1 } = n, s = w(n, Yq), a = _({}, n, { dividers: i }), l = ((e) => {
const { classes: t, dividers: r } = e;
return ne({ root: ["root", r && "dividers"] }, Hq, t);
})(a);
return (0, import_jsx_runtime.jsx)(Zq, _({
className: re(l.root, o),
ownerState: a,
ref: r
}, s));
});
Xq.propTypes = {
children: ee.node,
classes: ee.object,
className: ee.string,
dividers: ee.bool,
sx: ee.oneOfType([
ee.arrayOf(ee.oneOfType([
ee.func,
ee.object,
ee.bool
])),
ee.func,
ee.object
])
};
var Jq = Xq;
var Qq = react.default.forwardRef((e, t) => react.default.createElement(Jq, _objectSpread2(_objectSpread2({}, e), {}, { ref: t })));
function eW(e) {
return Qn("MuiDialogActions", e);
}
ks("MuiDialogActions", ["root", "spacing"]);
var tW = ["className", "disableSpacing"];
var rW = pi("div", {
name: "MuiDialogActions",
slot: "Root",
overridesResolver: (e, t) => {
const { ownerState: r } = e;
return [t.root, !r.disableSpacing && t.spacing];
}
})(({ ownerState: e }) => _({
display: "flex",
alignItems: "center",
padding: 8,
justifyContent: "flex-end",
flex: "0 0 auto"
}, !e.disableSpacing && { "& > :not(style) ~ :not(style)": { marginLeft: 8 } }));
var nW = react.forwardRef(function(t, r) {
const n = yi({
props: t,
name: "MuiDialogActions"
}), { className: o, disableSpacing: i = !1 } = n, s = w(n, tW), a = _({}, n, { disableSpacing: i }), l = ((e) => {
const { classes: t, disableSpacing: r } = e;
return ne({ root: ["root", !r && "spacing"] }, eW, t);
})(a);
return (0, import_jsx_runtime.jsx)(rW, _({
className: re(l.root, o),
ownerState: a,
ref: r
}, s));
});
nW.propTypes = {
children: ee.node,
classes: ee.object,
className: ee.string,
disableSpacing: ee.bool,
sx: ee.oneOfType([
ee.arrayOf(ee.oneOfType([
ee.func,
ee.object,
ee.bool
])),
ee.func,
ee.object
])
};
var oW = nW;
var iW = react.default.forwardRef((e, t) => react.default.createElement(oW, _objectSpread2(_objectSpread2({}, e), {}, { ref: t })));
var sW = ["className", "id"];
var aW = pi(ea, {
name: "MuiDialogTitle",
slot: "Root",
overridesResolver: (e, t) => t.root
})({
padding: "16px 24px",
flex: "0 0 auto"
});
var lW = react.forwardRef(function(t, r) {
const o = yi({
props: t,
name: "MuiDialogTitle"
}), { className: i, id: s } = o, a = w(o, sW), l = o, c = ((e) => {
const { classes: t } = e;
return ne({ root: ["root"] }, Gq, t);
})(l), { titleId: u = s } = react.useContext(jq);
return (0, import_jsx_runtime.jsx)(aW, _({
component: "h2",
className: re(c.root, i),
ownerState: l,
ref: r,
variant: "h6",
id: null != s ? s : u
}, a));
});
lW.propTypes = {
children: ee.node,
classes: ee.object,
className: ee.string,
id: ee.string,
sx: ee.oneOfType([
ee.arrayOf(ee.oneOfType([
ee.func,
ee.object,
ee.bool
])),
ee.func,
ee.object
])
};
var cW = lW;
var uW = { variant: "subtitle1" };
var pW = react.default.forwardRef((e, t) => react.default.createElement(cW, _objectSpread2(_objectSpread2(_objectSpread2({}, uW), e), {}, { ref: t })));
pW.defaultProps = uW;
var dW = pW;
function fW(e) {
return null != e && !(Array.isArray(e) && 0 === e.length);
}
function hW(e, t = !1) {
return e && (fW(e.value) && "" !== e.value || t && fW(e.defaultValue) && "" !== e.defaultValue);
}
var mW = react.createContext(void 0);
mW.displayName = "FormControlContext";
var gW = mW;
function vW(e) {
return Qn("MuiFormControl", e);
}
ks("MuiFormControl", [
"root",
"marginNone",
"marginNormal",
"marginDense",
"fullWidth",
"disabled"
]);
var yW = [
"children",
"className",
"color",
"component",
"disabled",
"error",
"focused",
"fullWidth",
"hiddenLabel",
"margin",
"required",
"size",
"variant"
];
var bW = pi("div", {
name: "MuiFormControl",
slot: "Root",
overridesResolver: ({ ownerState: e }, t) => _({}, t.root, t[`margin${bi(e.margin)}`], e.fullWidth && t.fullWidth)
})(({ ownerState: e }) => _({
display: "inline-flex",
flexDirection: "column",
position: "relative",
minWidth: 0,
padding: 0,
margin: 0,
border: 0,
verticalAlign: "top"
}, "normal" === e.margin && {
marginTop: 16,
marginBottom: 8
}, "dense" === e.margin && {
marginTop: 8,
marginBottom: 4
}, e.fullWidth && { width: "100%" }));
var wW = react.forwardRef(function(t, r) {
const o = yi({
props: t,
name: "MuiFormControl"
}), { children: i, className: s, color: a = "primary", component: l = "div", disabled: c = !1, error: u = !1, focused: p, fullWidth: d = !1, hiddenLabel: f = !1, margin: h = "none", required: m = !1, size: g = "medium", variant: v = "outlined" } = o, y = w(o, yW), b = _({}, o, {
color: a,
component: l,
disabled: c,
error: u,
fullWidth: d,
hiddenLabel: f,
margin: h,
required: m,
size: g,
variant: v
}), x = ((e) => {
const { classes: t, margin: r, fullWidth: n } = e;
return ne({ root: [
"root",
"none" !== r && `margin${bi(r)}`,
n && "fullWidth"
] }, vW, t);
})(b), [S, k] = react.useState(() => {
let e = !1;
return i && react.Children.forEach(i, (t) => {
if (!Jd(t, ["Input", "Select"])) return;
const r = Jd(t, ["Select"]) ? t.props.input : t;
r && r.props.startAdornment && (e = !0);
}), e;
}), [C, O] = react.useState(() => {
let e = !1;
return i && react.Children.forEach(i, (t) => {
Jd(t, ["Input", "Select"]) && (hW(t.props, !0) || hW(t.props.inputProps, !0)) && (e = !0);
}), e;
}), [E, T] = react.useState(!1);
c && E && T(!1);
const R = void 0 === p || c ? E : p;
let I;
{
const e = react.useRef(!1);
I = () => (e.current && console.error(["MUI: There are multiple `InputBase` components inside a FormControl.", "This creates visual inconsistencies, only use one `InputBase`."].join("\n")), e.current = !0, () => {
e.current = !1;
});
}
const M = react.useMemo(() => ({
adornedStart: S,
setAdornedStart: k,
color: a,
disabled: c,
error: u,
filled: C,
focused: R,
fullWidth: d,
hiddenLabel: f,
size: g,
onBlur: () => {
T(!1);
},
onEmpty: () => {
O(!1);
},
onFilled: () => {
O(!0);
},
onFocus: () => {
T(!0);
},
registerEffect: I,
required: m,
variant: v
}), [
S,
a,
c,
u,
C,
R,
d,
f,
I,
m,
g,
v
]);
return (0, import_jsx_runtime.jsx)(gW.Provider, {
value: M,
children: (0, import_jsx_runtime.jsx)(bW, _({
as: l,
ownerState: b,
className: re(x.root, s),
ref: r
}, y, { children: i }))
});
});
wW.propTypes = {
children: ee.node,
classes: ee.object,
className: ee.string,
color: ee.oneOfType([ee.oneOf([
"primary",
"secondary",
"error",
"info",
"success",
"warning"
]), ee.string]),
component: ee.elementType,
disabled: ee.bool,
error: ee.bool,
focused: ee.bool,
fullWidth: ee.bool,
hiddenLabel: ee.bool,
margin: ee.oneOf([
"dense",
"none",
"normal"
]),
required: ee.bool,
size: ee.oneOfType([ee.oneOf(["medium", "small"]), ee.string]),
sx: ee.oneOfType([
ee.arrayOf(ee.oneOfType([
ee.func,
ee.object,
ee.bool
])),
ee.func,
ee.object
]),
variant: ee.oneOf([
"filled",
"outlined",
"standard"
])
};
var _W = wW;
function xW() {
return react.useContext(gW);
}
var SW = react.default.forwardRef((e, t) => react.default.createElement(_W, _objectSpread2(_objectSpread2({}, e), {}, { ref: t })));
var kW = react.default.forwardRef((e, t) => react.default.createElement(ru, _objectSpread2(_objectSpread2({ viewBox: "0 0 24 24" }, e), {}, { ref: t }), react.default.createElement("path", {
fillRule: "evenodd",
clipRule: "evenodd",
d: "M18.5303 5.46967C18.8232 5.76256 18.8232 6.23744 18.5303 6.53033L6.53033 18.5303C6.23744 18.8232 5.76256 18.8232 5.46967 18.5303C5.17678 18.2374 5.17678 17.7626 5.46967 17.4697L17.4697 5.46967C17.7626 5.17678 18.2374 5.17678 18.5303 5.46967Z"
}), react.default.createElement("path", {
fillRule: "evenodd",
clipRule: "evenodd",
d: "M5.46967 5.46967C5.76256 5.17678 6.23744 5.17678 6.53033 5.46967L18.5303 17.4697C18.8232 17.7626 18.8232 18.2374 18.5303 18.5303C18.2374 18.8232 17.7626 18.8232 17.4697 18.5303L5.46967 6.53033C5.17678 6.23744 5.17678 5.76256 5.46967 5.46967Z"
}))), { slots: CW, classNames: OW } = Cl("CloseButton", ["root", "icon"]), EW = Il(Zc, CW.root)({}), TW = Il(kW, CW.icon)({}), RW = {
"aria-label": "close",
color: "default"
}, IW = react.default.forwardRef((e, t) => {
var _n$icon;
const r = yi({
props: _objectSpread2(_objectSpread2({}, RW), e),
name: CW.root.name
}), { slotProps: n = {} } = r, i = _objectWithoutProperties(r, _excluded14);
return react.default.createElement(EW, _objectSpread2(_objectSpread2({}, i), {}, {
size: "small",
ref: t,
className: re([[OW.root, i.className]]),
ownerState: r
}), react.default.createElement(TW, _objectSpread2(_objectSpread2({}, n.icon), {}, {
className: re([OW.icon, (_n$icon = n.icon) === null || _n$icon === void 0 ? void 0 : _n$icon.className]),
ownerState: r
})));
});
IW.defaultProps = RW;
var MW = IW;
var AW = Il((e) => react.default.createElement(ru, _objectSpread2({ viewBox: "0 0 32 32" }, e), react.default.createElement("path", {
fillRule: "evenodd",
clipRule: "evenodd",
d: "M2.69648 24.8891C0.938383 22.2579 0 19.1645 0 16C0 11.7566 1.68571 7.68687 4.68629 4.68629C7.68687 1.68571 11.7566 0 16 0C19.1645 0 22.2579 0.938383 24.8891 2.69648C27.5203 4.45459 29.5711 6.95344 30.7821 9.87706C31.9931 12.8007 32.3099 16.0177 31.6926 19.1214C31.0752 22.2251 29.5514 25.0761 27.3137 27.3137C25.0761 29.5514 22.2251 31.0752 19.1214 31.6926C16.0177 32.3099 12.8007 31.9931 9.87706 30.7821C6.95344 29.5711 4.45459 27.5203 2.69648 24.8891ZM12.0006 9.33281H9.33437V22.6665H12.0006V9.33281ZM22.6657 9.33281H14.6669V11.9991H22.6657V9.33281ZM22.6657 14.6654H14.6669V17.3316H22.6657V14.6654ZM22.6657 20.0003H14.6669V22.6665H22.6657V20.0003Z"
})))(({ theme: e }) => ({
width: e.spacing(3),
height: e.spacing(3),
"& path": { fill: e.palette.text.primary },
marginRight: e.spacing(1)
})), PW = Il("span")(({ theme: e }) => ({ marginRight: e.spacing(1) })), NW = (_ref30) => {
let { logo: e } = _ref30, t = _objectWithoutProperties(_ref30, _excluded15);
return !1 === e ? null : e ? react.default.createElement(PW, null, e) : react.default.createElement(AW, _objectSpread2({}, t));
}, { slots: LW, classNames: DW } = Cl("DialogHeader", [
"root",
"logo",
"toolbar"
]), jW = Il(Fs, LW.root)({ "& .MuiDialogTitle-root": { padding: 0 } }), FW = Il(Gs, LW.toolbar)({}), $W = {
color: "transparent",
position: "relative"
}, BW = react.default.forwardRef((e, t) => {
var _n$toolbar;
var _n$logo;
const r = yi({
props: _objectSpread2(_objectSpread2({}, $W), e),
name: LW.root.name
}), { slotProps: n = {}, logo: i, onClose: s } = r, a = _objectWithoutProperties(r, _excluded16);
return react.default.createElement(jW, _objectSpread2(_objectSpread2({}, a), {}, {
ref: t,
className: re([[DW.root, a.className]]),
ownerState: r
}), react.default.createElement(FW, _objectSpread2(_objectSpread2({ variant: "dense" }, n.toolbar), {}, {
className: re([DW.toolbar, (_n$toolbar = n.toolbar) === null || _n$toolbar === void 0 ? void 0 : _n$toolbar.className]),
ownerState: r
}), react.default.createElement(NW, {
logo: i,
className: re([DW.logo, (_n$logo = n.logo) === null || _n$logo === void 0 ? void 0 : _n$logo.className])
}), react.default.createElement(zs, {
direction: "row",
alignItems: "center",
flex: 1
}, r.children), s && react.default.createElement(MW, {
edge: "end",
onClick: s,
sx: { "&.MuiButtonBase-root": { ml: .5 } }
})));
});
BW.defaultProps = $W;
var zW = BW;
var VW = "base";
function UW(e, t) {
const r = Jn[t];
return r ? `${VW}--${r}` : function(e, t) {
return `${VW}-${e}-${t}`;
}(e, t);
}
function qW(e) {
return e.substring(2).toLowerCase();
}
function WW(t) {
const { children: r, disableReactTree: o = !1, mouseEvent: i = "onClick", onClickAway: s, touchEvent: a = "onTouchEnd" } = t, l = react.useRef(!1), c = react.useRef(null), u = react.useRef(!1), p = react.useRef(!1);
react.useEffect(() => (setTimeout(() => {
u.current = !0;
}, 0), () => {
u.current = !1;
}), []);
const d = ca(r.ref, c);
const f = pa((e) => {
const t = p.current;
p.current = !1;
const r = Qd(c.current);
if (!u.current || !c.current || "clientX" in e && function(e, t) {
return t.documentElement.clientWidth < e.clientX || t.documentElement.clientHeight < e.clientY;
}(e, r)) return;
if (l.current) return void (l.current = !1);
let n;
n = e.composedPath ? e.composedPath().indexOf(c.current) > -1 : !r.documentElement.contains(e.target) || c.current.contains(e.target), n || !o && t || s(e);
});
const h = (e) => (t) => {
p.current = !0;
const n = r.props[e];
n && n(t);
};
const m = { ref: d };
return !1 !== a && (m[a] = h(a)), react.useEffect(() => {
if (!1 !== a) {
const e = qW(a);
const t = Qd(c.current);
const r = () => {
l.current = !0;
};
return t.addEventListener(e, f), t.addEventListener("touchmove", r), () => {
t.removeEventListener(e, f), t.removeEventListener("touchmove", r);
};
}
}, [f, a]), !1 !== i && (m[i] = h(i)), react.useEffect(() => {
if (!1 !== i) {
const e = qW(i);
const t = Qd(c.current);
return t.addEventListener(e, f), () => {
t.removeEventListener(e, f);
};
}
}, [f, i]), (0, import_jsx_runtime.jsx)(react.Fragment, { children: react.cloneElement(r, m) });
}
WW.propTypes = {
children: Hd.isRequired,
disableReactTree: ee.bool,
mouseEvent: ee.oneOf([
"onClick",
"onMouseDown",
"onMouseUp",
"onPointerDown",
"onPointerUp",
!1
]),
onClickAway: ee.func.isRequired,
touchEvent: ee.oneOf([
"onTouchEnd",
"onTouchStart",
!1
])
}, WW.propTypes = Kd(WW.propTypes);
var HW = "top";
var GW = "bottom";
var KW = "right";
var YW = "left";
var ZW = "auto";
var XW = [
HW,
GW,
KW,
YW
];
var JW = "start";
var QW = "end";
var eH = "viewport";
var tH = "popper";
var rH = XW.reduce(function(e, t) {
return e.concat([t + "-" + JW, t + "-" + QW]);
}, []);
var nH = [].concat(XW, [ZW]).reduce(function(e, t) {
return e.concat([
t,
t + "-" + JW,
t + "-" + QW
]);
}, []);
var oH = [
"beforeRead",
"read",
"afterRead",
"beforeMain",
"main",
"afterMain",
"beforeWrite",
"write",
"afterWrite"
];
function iH(e) {
return e ? (e.nodeName || "").toLowerCase() : null;
}
function sH(e) {
if (null == e) return window;
if ("[object Window]" !== e.toString()) {
var t = e.ownerDocument;
return t && t.defaultView || window;
}
return e;
}
function aH(e) {
return e instanceof sH(e).Element || e instanceof Element;
}
function lH(e) {
return e instanceof sH(e).HTMLElement || e instanceof HTMLElement;
}
function cH(e) {
return "undefined" != typeof ShadowRoot && (e instanceof sH(e).ShadowRoot || e instanceof ShadowRoot);
}
var uH = {
name: "applyStyles",
enabled: !0,
phase: "write",
fn: function(e) {
var t = e.state;
Object.keys(t.elements).forEach(function(e) {
var r = t.styles[e] || {};
var n = t.attributes[e] || {};
var o = t.elements[e];
lH(o) && iH(o) && (Object.assign(o.style, r), Object.keys(n).forEach(function(e) {
var t = n[e];
!1 === t ? o.removeAttribute(e) : o.setAttribute(e, !0 === t ? "" : t);
}));
});
},
effect: function(e) {
var t = e.state;
var r = {
popper: {
position: t.options.strategy,
left: "0",
top: "0",
margin: "0"
},
arrow: { position: "absolute" },
reference: {}
};
return Object.assign(t.elements.popper.style, r.popper), t.styles = r, t.elements.arrow && Object.assign(t.elements.arrow.style, r.arrow), function() {
Object.keys(t.elements).forEach(function(e) {
var n = t.elements[e];
var o = t.attributes[e] || {};
var i = Object.keys(t.styles.hasOwnProperty(e) ? t.styles[e] : r[e]).reduce(function(e, t) {
return e[t] = "", e;
}, {});
lH(n) && iH(n) && (Object.assign(n.style, i), Object.keys(o).forEach(function(e) {
n.removeAttribute(e);
}));
});
};
},
requires: ["computeStyles"]
};
function pH(e) {
return e.split("-")[0];
}
var dH = Math.max;
var fH = Math.min;
var hH = Math.round;
function mH() {
var e = navigator.userAgentData;
return null != e && e.brands && Array.isArray(e.brands) ? e.brands.map(function(e) {
return e.brand + "/" + e.version;
}).join(" ") : navigator.userAgent;
}
function gH() {
return !/^((?!chrome|android).)*safari/i.test(mH());
}
function vH(e, t, r) {
void 0 === t && (t = !1), void 0 === r && (r = !1);
var n = e.getBoundingClientRect();
var o = 1;
var i = 1;
t && lH(e) && (o = e.offsetWidth > 0 && hH(n.width) / e.offsetWidth || 1, i = e.offsetHeight > 0 && hH(n.height) / e.offsetHeight || 1);
var s = (aH(e) ? sH(e) : window).visualViewport;
var a = !gH() && r;
var l = (n.left + (a && s ? s.offsetLeft : 0)) / o;
var c = (n.top + (a && s ? s.offsetTop : 0)) / i;
var u = n.width / o;
var p = n.height / i;
return {
width: u,
height: p,
top: c,
right: l + u,
bottom: c + p,
left: l,
x: l,
y: c
};
}
function yH(e) {
var t = vH(e);
var r = e.offsetWidth;
var n = e.offsetHeight;
return Math.abs(t.width - r) <= 1 && (r = t.width), Math.abs(t.height - n) <= 1 && (n = t.height), {
x: e.offsetLeft,
y: e.offsetTop,
width: r,
height: n
};
}
function bH(e, t) {
var r = t.getRootNode && t.getRootNode();
if (e.contains(t)) return !0;
if (r && cH(r)) {
var n = t;
do {
if (n && e.isSameNode(n)) return !0;
n = n.parentNode || n.host;
} while (n);
}
return !1;
}
function wH(e) {
return sH(e).getComputedStyle(e);
}
function _H(e) {
return [
"table",
"td",
"th"
].indexOf(iH(e)) >= 0;
}
function xH(e) {
return ((aH(e) ? e.ownerDocument : e.document) || window.document).documentElement;
}
function SH(e) {
return "html" === iH(e) ? e : e.assignedSlot || e.parentNode || (cH(e) ? e.host : null) || xH(e);
}
function kH(e) {
return lH(e) && "fixed" !== wH(e).position ? e.offsetParent : null;
}
function CH(e) {
for (var t = sH(e), r = kH(e); r && _H(r) && "static" === wH(r).position;) r = kH(r);
return r && ("html" === iH(r) || "body" === iH(r) && "static" === wH(r).position) ? t : r || function(e) {
var t = /firefox/i.test(mH());
if (/Trident/i.test(mH()) && lH(e) && "fixed" === wH(e).position) return null;
var r = SH(e);
for (cH(r) && (r = r.host); lH(r) && ["html", "body"].indexOf(iH(r)) < 0;) {
var n = wH(r);
if ("none" !== n.transform || "none" !== n.perspective || "paint" === n.contain || -1 !== ["transform", "perspective"].indexOf(n.willChange) || t && "filter" === n.willChange || t && n.filter && "none" !== n.filter) return r;
r = r.parentNode;
}
return null;
}(e) || t;
}
function OH(e) {
return ["top", "bottom"].indexOf(e) >= 0 ? "x" : "y";
}
function EH(e, t, r) {
return dH(e, fH(t, r));
}
function TH(e) {
return Object.assign({}, {
top: 0,
right: 0,
bottom: 0,
left: 0
}, e);
}
function RH(e, t) {
return t.reduce(function(t, r) {
return t[r] = e, t;
}, {});
}
var IH = {
name: "arrow",
enabled: !0,
phase: "main",
fn: function(e) {
var t;
var r = e.state;
var n = e.name;
var o = e.options;
var i = r.elements.arrow;
var s = r.modifiersData.popperOffsets;
var a = pH(r.placement);
var l = OH(a);
var c = [YW, KW].indexOf(a) >= 0 ? "height" : "width";
if (i && s) {
var u = function(e, t) {
return TH("number" != typeof (e = "function" == typeof e ? e(Object.assign({}, t.rects, { placement: t.placement })) : e) ? e : RH(e, XW));
}(o.padding, r);
var p = yH(i);
var d = "y" === l ? HW : YW;
var f = "y" === l ? GW : KW;
var h = r.rects.reference[c] + r.rects.reference[l] - s[l] - r.rects.popper[c];
var m = s[l] - r.rects.reference[l];
var g = CH(i);
var v = g ? "y" === l ? g.clientHeight || 0 : g.clientWidth || 0 : 0;
var y = h / 2 - m / 2;
var b = u[d];
var w = v - p[c] - u[f];
var _ = v / 2 - p[c] / 2 + y;
var x = EH(b, _, w);
var S = l;
r.modifiersData[n] = ((t = {})[S] = x, t.centerOffset = x - _, t);
}
},
effect: function(e) {
var t = e.state;
var r = e.options.element;
var n = void 0 === r ? "[data-popper-arrow]" : r;
null != n && ("string" != typeof n || (n = t.elements.popper.querySelector(n))) && bH(t.elements.popper, n) && (t.elements.arrow = n);
},
requires: ["popperOffsets"],
requiresIfExists: ["preventOverflow"]
};
function MH(e) {
return e.split("-")[1];
}
var AH = {
top: "auto",
right: "auto",
bottom: "auto",
left: "auto"
};
function PH(e) {
var t;
var r = e.popper;
var n = e.popperRect;
var o = e.placement;
var i = e.variation;
var s = e.offsets;
var a = e.position;
var l = e.gpuAcceleration;
var c = e.adaptive;
var u = e.roundOffsets;
var p = e.isFixed;
var d = s.x;
var f = void 0 === d ? 0 : d;
var h = s.y;
var m = void 0 === h ? 0 : h;
var g = "function" == typeof u ? u({
x: f,
y: m
}) : {
x: f,
y: m
};
f = g.x, m = g.y;
var v = s.hasOwnProperty("x");
var y = s.hasOwnProperty("y");
var b = YW;
var w = HW;
var _ = window;
if (c) {
var x = CH(r);
var S = "clientHeight";
var k = "clientWidth";
x === sH(r) && "static" !== wH(x = xH(r)).position && "absolute" === a && (S = "scrollHeight", k = "scrollWidth"), (o === HW || (o === YW || o === KW) && i === QW) && (w = GW, m -= (p && x === _ && _.visualViewport ? _.visualViewport.height : x[S]) - n.height, m *= l ? 1 : -1), o !== YW && (o !== HW && o !== GW || i !== QW) || (b = KW, f -= (p && x === _ && _.visualViewport ? _.visualViewport.width : x[k]) - n.width, f *= l ? 1 : -1);
}
var C;
var O = Object.assign({ position: a }, c && AH);
var E = !0 === u ? function(e, t) {
var r = e.x;
var n = e.y;
var o = t.devicePixelRatio || 1;
return {
x: hH(r * o) / o || 0,
y: hH(n * o) / o || 0
};
}({
x: f,
y: m
}, sH(r)) : {
x: f,
y: m
};
return f = E.x, m = E.y, l ? Object.assign({}, O, ((C = {})[w] = y ? "0" : "", C[b] = v ? "0" : "", C.transform = (_.devicePixelRatio || 1) <= 1 ? "translate(" + f + "px, " + m + "px)" : "translate3d(" + f + "px, " + m + "px, 0)", C)) : Object.assign({}, O, ((t = {})[w] = y ? m + "px" : "", t[b] = v ? f + "px" : "", t.transform = "", t));
}
var NH = { passive: !0 };
var LH = {
name: "eventListeners",
enabled: !0,
phase: "write",
fn: function() {},
effect: function(e) {
var t = e.state;
var r = e.instance;
var n = e.options;
var o = n.scroll;
var i = void 0 === o || o;
var s = n.resize;
var a = void 0 === s || s;
var l = sH(t.elements.popper);
var c = [].concat(t.scrollParents.reference, t.scrollParents.popper);
return i && c.forEach(function(e) {
e.addEventListener("scroll", r.update, NH);
}), a && l.addEventListener("resize", r.update, NH), function() {
i && c.forEach(function(e) {
e.removeEventListener("scroll", r.update, NH);
}), a && l.removeEventListener("resize", r.update, NH);
};
},
data: {}
};
var DH = {
left: "right",
right: "left",
bottom: "top",
top: "bottom"
};
function jH(e) {
return e.replace(/left|right|bottom|top/g, function(e) {
return DH[e];
});
}
var FH = {
start: "end",
end: "start"
};
function $H(e) {
return e.replace(/start|end/g, function(e) {
return FH[e];
});
}
function BH(e) {
var t = sH(e);
return {
scrollLeft: t.pageXOffset,
scrollTop: t.pageYOffset
};
}
function zH(e) {
return vH(xH(e)).left + BH(e).scrollLeft;
}
function VH(e) {
var t = wH(e);
var r = t.overflow;
var n = t.overflowX;
var o = t.overflowY;
return /auto|scroll|overlay|hidden/.test(r + o + n);
}
function UH(e) {
return [
"html",
"body",
"#document"
].indexOf(iH(e)) >= 0 ? e.ownerDocument.body : lH(e) && VH(e) ? e : UH(SH(e));
}
function qH(e, t) {
var r;
void 0 === t && (t = []);
var n = UH(e);
var o = n === (null == (r = e.ownerDocument) ? void 0 : r.body);
var i = sH(n);
var s = o ? [i].concat(i.visualViewport || [], VH(n) ? n : []) : n;
var a = t.concat(s);
return o ? a : a.concat(qH(SH(s)));
}
function WH(e) {
return Object.assign({}, e, {
left: e.x,
top: e.y,
right: e.x + e.width,
bottom: e.y + e.height
});
}
function HH(e, t, r) {
return t === eH ? WH(function(e, t) {
var r = sH(e);
var n = xH(e);
var o = r.visualViewport;
var i = n.clientWidth;
var s = n.clientHeight;
var a = 0;
var l = 0;
if (o) {
i = o.width, s = o.height;
var c = gH();
(c || !c && "fixed" === t) && (a = o.offsetLeft, l = o.offsetTop);
}
return {
width: i,
height: s,
x: a + zH(e),
y: l
};
}(e, r)) : aH(t) ? function(e, t) {
var r = vH(e, !1, "fixed" === t);
return r.top = r.top + e.clientTop, r.left = r.left + e.clientLeft, r.bottom = r.top + e.clientHeight, r.right = r.left + e.clientWidth, r.width = e.clientWidth, r.height = e.clientHeight, r.x = r.left, r.y = r.top, r;
}(t, r) : WH(function(e) {
var t;
var r = xH(e);
var n = BH(e);
var o = null == (t = e.ownerDocument) ? void 0 : t.body;
var i = dH(r.scrollWidth, r.clientWidth, o ? o.scrollWidth : 0, o ? o.clientWidth : 0);
var s = dH(r.scrollHeight, r.clientHeight, o ? o.scrollHeight : 0, o ? o.clientHeight : 0);
var a = -n.scrollLeft + zH(e);
var l = -n.scrollTop;
return "rtl" === wH(o || r).direction && (a += dH(r.clientWidth, o ? o.clientWidth : 0) - i), {
width: i,
height: s,
x: a,
y: l
};
}(xH(e)));
}
function GH(e) {
var t;
var r = e.reference;
var n = e.element;
var o = e.placement;
var i = o ? pH(o) : null;
var s = o ? MH(o) : null;
var a = r.x + r.width / 2 - n.width / 2;
var l = r.y + r.height / 2 - n.height / 2;
switch (i) {
case HW:
t = {
x: a,
y: r.y - n.height
};
break;
case GW:
t = {
x: a,
y: r.y + r.height
};
break;
case KW:
t = {
x: r.x + r.width,
y: l
};
break;
case YW:
t = {
x: r.x - n.width,
y: l
};
break;
default: t = {
x: r.x,
y: r.y
};
}
var c = i ? OH(i) : null;
if (null != c) {
var u = "y" === c ? "height" : "width";
switch (s) {
case JW:
t[c] = t[c] - (r[u] / 2 - n[u] / 2);
break;
case QW: t[c] = t[c] + (r[u] / 2 - n[u] / 2);
}
}
return t;
}
function KH(e, t) {
void 0 === t && (t = {});
var r = t;
var n = r.placement;
var o = void 0 === n ? e.placement : n;
var i = r.strategy;
var s = void 0 === i ? e.strategy : i;
var a = r.boundary;
var l = void 0 === a ? "clippingParents" : a;
var c = r.rootBoundary;
var u = void 0 === c ? eH : c;
var p = r.elementContext;
var d = void 0 === p ? tH : p;
var f = r.altBoundary;
var h = void 0 !== f && f;
var m = r.padding;
var g = void 0 === m ? 0 : m;
var v = TH("number" != typeof g ? g : RH(g, XW));
var y = d === tH ? "reference" : tH;
var b = e.rects.popper;
var w = e.elements[h ? y : d];
var _ = function(e, t, r, n) {
var o = "clippingParents" === t ? function(e) {
var t = qH(SH(e));
var r = ["absolute", "fixed"].indexOf(wH(e).position) >= 0 && lH(e) ? CH(e) : e;
return aH(r) ? t.filter(function(e) {
return aH(e) && bH(e, r) && "body" !== iH(e);
}) : [];
}(e) : [].concat(t);
var i = [].concat(o, [r]);
var s = i[0];
var a = i.reduce(function(t, r) {
var o = HH(e, r, n);
return t.top = dH(o.top, t.top), t.right = fH(o.right, t.right), t.bottom = fH(o.bottom, t.bottom), t.left = dH(o.left, t.left), t;
}, HH(e, s, n));
return a.width = a.right - a.left, a.height = a.bottom - a.top, a.x = a.left, a.y = a.top, a;
}(aH(w) ? w : w.contextElement || xH(e.elements.popper), l, u, s);
var x = vH(e.elements.reference);
var S = GH({
reference: x,
element: b,
strategy: "absolute",
placement: o
});
var k = WH(Object.assign({}, b, S));
var C = d === tH ? k : x;
var O = {
top: _.top - C.top + v.top,
bottom: C.bottom - _.bottom + v.bottom,
left: _.left - C.left + v.left,
right: C.right - _.right + v.right
};
var E = e.modifiersData.offset;
if (d === tH && E) {
var T = E[o];
Object.keys(O).forEach(function(e) {
var t = [KW, GW].indexOf(e) >= 0 ? 1 : -1;
var r = [HW, GW].indexOf(e) >= 0 ? "y" : "x";
O[e] += T[r] * t;
});
}
return O;
}
function YH(e, t) {
void 0 === t && (t = {});
var r = t;
var n = r.placement;
var o = r.boundary;
var i = r.rootBoundary;
var s = r.padding;
var a = r.flipVariations;
var l = r.allowedAutoPlacements;
var c = void 0 === l ? nH : l;
var u = MH(n);
var p = u ? a ? rH : rH.filter(function(e) {
return MH(e) === u;
}) : XW;
var d = p.filter(function(e) {
return c.indexOf(e) >= 0;
});
0 === d.length && (d = p);
var f = d.reduce(function(t, r) {
return t[r] = KH(e, {
placement: r,
boundary: o,
rootBoundary: i,
padding: s
})[pH(r)], t;
}, {});
return Object.keys(f).sort(function(e, t) {
return f[e] - f[t];
});
}
var ZH = {
name: "flip",
enabled: !0,
phase: "main",
fn: function(e) {
var t = e.state;
var r = e.options;
var n = e.name;
if (!t.modifiersData[n]._skip) {
for (var o = r.mainAxis, i = void 0 === o || o, s = r.altAxis, a = void 0 === s || s, l = r.fallbackPlacements, c = r.padding, u = r.boundary, p = r.rootBoundary, d = r.altBoundary, f = r.flipVariations, h = void 0 === f || f, m = r.allowedAutoPlacements, g = t.options.placement, v = pH(g), y = l || (v !== g && h ? function(e) {
if (pH(e) === ZW) return [];
var t = jH(e);
return [
$H(e),
t,
$H(t)
];
}(g) : [jH(g)]), b = [g].concat(y).reduce(function(e, r) {
return e.concat(pH(r) === ZW ? YH(t, {
placement: r,
boundary: u,
rootBoundary: p,
padding: c,
flipVariations: h,
allowedAutoPlacements: m
}) : r);
}, []), w = t.rects.reference, _ = t.rects.popper, x = /* @__PURE__ */ new Map(), S = !0, k = b[0], C = 0; C < b.length; C++) {
var O = b[C];
var E = pH(O);
var T = MH(O) === JW;
var R = [HW, GW].indexOf(E) >= 0;
var I = R ? "width" : "height";
var M = KH(t, {
placement: O,
boundary: u,
rootBoundary: p,
altBoundary: d,
padding: c
});
var A = R ? T ? KW : YW : T ? GW : HW;
w[I] > _[I] && (A = jH(A));
var P = jH(A);
var N = [];
if (i && N.push(M[E] <= 0), a && N.push(M[A] <= 0, M[P] <= 0), N.every(function(e) {
return e;
})) {
k = O, S = !1;
break;
}
x.set(O, N);
}
if (S) for (var L = function(e) {
var t = b.find(function(t) {
var r = x.get(t);
if (r) return r.slice(0, e).every(function(e) {
return e;
});
});
if (t) return k = t, "break";
}, D = h ? 3 : 1; D > 0 && "break" !== L(D); D--);
t.placement !== k && (t.modifiersData[n]._skip = !0, t.placement = k, t.reset = !0);
}
},
requiresIfExists: ["offset"],
data: { _skip: !1 }
};
function XH(e, t, r) {
return void 0 === r && (r = {
x: 0,
y: 0
}), {
top: e.top - t.height - r.y,
right: e.right - t.width + r.x,
bottom: e.bottom - t.height + r.y,
left: e.left - t.width - r.x
};
}
function JH(e) {
return [
HW,
KW,
GW,
YW
].some(function(t) {
return e[t] >= 0;
});
}
var QH = {
name: "offset",
enabled: !0,
phase: "main",
requires: ["popperOffsets"],
fn: function(e) {
var t = e.state;
var r = e.options;
var n = e.name;
var o = r.offset;
var i = void 0 === o ? [0, 0] : o;
var s = nH.reduce(function(e, r) {
return e[r] = function(e, t, r) {
var n = pH(e);
var o = [YW, HW].indexOf(n) >= 0 ? -1 : 1;
var i = "function" == typeof r ? r(Object.assign({}, t, { placement: e })) : r;
var s = i[0];
var a = i[1];
return s = s || 0, a = (a || 0) * o, [YW, KW].indexOf(n) >= 0 ? {
x: a,
y: s
} : {
x: s,
y: a
};
}(r, t.rects, i), e;
}, {});
var a = s[t.placement];
var l = a.x;
var c = a.y;
null != t.modifiersData.popperOffsets && (t.modifiersData.popperOffsets.x += l, t.modifiersData.popperOffsets.y += c), t.modifiersData[n] = s;
}
};
var eG = {
name: "preventOverflow",
enabled: !0,
phase: "main",
fn: function(e) {
var t = e.state;
var r = e.options;
var n = e.name;
var o = r.mainAxis;
var i = void 0 === o || o;
var s = r.altAxis;
var a = void 0 !== s && s;
var l = r.boundary;
var c = r.rootBoundary;
var u = r.altBoundary;
var p = r.padding;
var d = r.tether;
var f = void 0 === d || d;
var h = r.tetherOffset;
var m = void 0 === h ? 0 : h;
var g = KH(t, {
boundary: l,
rootBoundary: c,
padding: p,
altBoundary: u
});
var v = pH(t.placement);
var y = MH(t.placement);
var b = !y;
var w = OH(v);
var _ = "x" === w ? "y" : "x";
var x = t.modifiersData.popperOffsets;
var S = t.rects.reference;
var k = t.rects.popper;
var C = "function" == typeof m ? m(Object.assign({}, t.rects, { placement: t.placement })) : m;
var O = "number" == typeof C ? {
mainAxis: C,
altAxis: C
} : Object.assign({
mainAxis: 0,
altAxis: 0
}, C);
var E = t.modifiersData.offset ? t.modifiersData.offset[t.placement] : null;
var T = {
x: 0,
y: 0
};
if (x) {
if (i) {
var R;
var I = "y" === w ? HW : YW;
var M = "y" === w ? GW : KW;
var A = "y" === w ? "height" : "width";
var P = x[w];
var N = P + g[I];
var L = P - g[M];
var D = f ? -k[A] / 2 : 0;
var j = y === JW ? S[A] : k[A];
var F = y === JW ? -k[A] : -S[A];
var $ = t.elements.arrow;
var B = f && $ ? yH($) : {
width: 0,
height: 0
};
var z = t.modifiersData["arrow#persistent"] ? t.modifiersData["arrow#persistent"].padding : {
top: 0,
right: 0,
bottom: 0,
left: 0
};
var V = z[I];
var U = z[M];
var q = EH(0, S[A], B[A]);
var W = b ? S[A] / 2 - D - q - V - O.mainAxis : j - q - V - O.mainAxis;
var H = b ? -S[A] / 2 + D + q + U + O.mainAxis : F + q + U + O.mainAxis;
var G = t.elements.arrow && CH(t.elements.arrow);
var K = G ? "y" === w ? G.clientTop || 0 : G.clientLeft || 0 : 0;
var Y = null != (R = null == E ? void 0 : E[w]) ? R : 0;
var Z = P + H - Y;
var X = EH(f ? fH(N, P + W - Y - K) : N, P, f ? dH(L, Z) : L);
x[w] = X, T[w] = X - P;
}
if (a) {
var J;
var Q = "x" === w ? HW : YW;
var ee = "x" === w ? GW : KW;
var te = x[_];
var re = "y" === _ ? "height" : "width";
var ne = te + g[Q];
var oe = te - g[ee];
var ie = -1 !== [HW, YW].indexOf(v);
var se = null != (J = null == E ? void 0 : E[_]) ? J : 0;
var ae = ie ? ne : te - S[re] - k[re] - se + O.altAxis;
var le = ie ? te + S[re] + k[re] - se - O.altAxis : oe;
var ce = f && ie ? function(e, t, r) {
var n = EH(e, t, r);
return n > r ? r : n;
}(ae, te, le) : EH(f ? ae : ne, te, f ? le : oe);
x[_] = ce, T[_] = ce - te;
}
t.modifiersData[n] = T;
}
},
requiresIfExists: ["offset"]
};
function tG(e, t, r) {
void 0 === r && (r = !1);
var n = lH(t);
var o = lH(t) && function(e) {
var t = e.getBoundingClientRect();
var r = hH(t.width) / e.offsetWidth || 1;
var n = hH(t.height) / e.offsetHeight || 1;
return 1 !== r || 1 !== n;
}(t);
var i = xH(t);
var s = vH(e, o, r);
var a = {
scrollLeft: 0,
scrollTop: 0
};
var l = {
x: 0,
y: 0
};
return (n || !n && !r) && (("body" !== iH(t) || VH(i)) && (a = function(e) {
return e !== sH(e) && lH(e) ? {
scrollLeft: (t = e).scrollLeft,
scrollTop: t.scrollTop
} : BH(e);
var t;
}(t)), lH(t) ? ((l = vH(t, !0)).x += t.clientLeft, l.y += t.clientTop) : i && (l.x = zH(i))), {
x: s.left + a.scrollLeft - l.x,
y: s.top + a.scrollTop - l.y,
width: s.width,
height: s.height
};
}
function rG(e) {
var t = /* @__PURE__ */ new Map();
var r = /* @__PURE__ */ new Set();
var n = [];
function o(e) {
r.add(e.name), [].concat(e.requires || [], e.requiresIfExists || []).forEach(function(e) {
if (!r.has(e)) {
var n = t.get(e);
n && o(n);
}
}), n.push(e);
}
return e.forEach(function(e) {
t.set(e.name, e);
}), e.forEach(function(e) {
r.has(e.name) || o(e);
}), n;
}
var nG = {
placement: "bottom",
modifiers: [],
strategy: "absolute"
};
function oG() {
for (var e = arguments.length, t = new Array(e), r = 0; r < e; r++) t[r] = arguments[r];
return !t.some(function(e) {
return !(e && "function" == typeof e.getBoundingClientRect);
});
}
function iG(e) {
void 0 === e && (e = {});
var t = e;
var r = t.defaultModifiers;
var n = void 0 === r ? [] : r;
var o = t.defaultOptions;
var i = void 0 === o ? nG : o;
return function(e, t, r) {
void 0 === r && (r = i);
var o;
var s;
var a = {
placement: "bottom",
orderedModifiers: [],
options: Object.assign({}, nG, i),
modifiersData: {},
elements: {
reference: e,
popper: t
},
attributes: {},
styles: {}
};
var l = [];
var c = !1;
var u = {
state: a,
setOptions: function(r) {
var o = "function" == typeof r ? r(a.options) : r;
p(), a.options = Object.assign({}, i, a.options, o), a.scrollParents = {
reference: aH(e) ? qH(e) : e.contextElement ? qH(e.contextElement) : [],
popper: qH(t)
};
var s;
var c;
var d = function(e) {
var t = rG(e);
return oH.reduce(function(e, r) {
return e.concat(t.filter(function(e) {
return e.phase === r;
}));
}, []);
}((s = [].concat(n, a.options.modifiers), c = s.reduce(function(e, t) {
var r = e[t.name];
return e[t.name] = r ? Object.assign({}, r, t, {
options: Object.assign({}, r.options, t.options),
data: Object.assign({}, r.data, t.data)
}) : t, e;
}, {}), Object.keys(c).map(function(e) {
return c[e];
})));
return a.orderedModifiers = d.filter(function(e) {
return e.enabled;
}), a.orderedModifiers.forEach(function(e) {
var t = e.name;
var r = e.options;
var n = void 0 === r ? {} : r;
var o = e.effect;
if ("function" == typeof o) {
var i = o({
state: a,
name: t,
instance: u,
options: n
});
l.push(i || function() {});
}
}), u.update();
},
forceUpdate: function() {
if (!c) {
var e = a.elements;
var t = e.reference;
var r = e.popper;
if (oG(t, r)) {
a.rects = {
reference: tG(t, CH(r), "fixed" === a.options.strategy),
popper: yH(r)
}, a.reset = !1, a.placement = a.options.placement, a.orderedModifiers.forEach(function(e) {
return a.modifiersData[e.name] = Object.assign({}, e.data);
});
for (var n = 0; n < a.orderedModifiers.length; n++) if (!0 !== a.reset) {
var o = a.orderedModifiers[n];
var i = o.fn;
var s = o.options;
var l = void 0 === s ? {} : s;
var p = o.name;
"function" == typeof i && (a = i({
state: a,
options: l,
name: p,
instance: u
}) || a);
} else a.reset = !1, n = -1;
}
}
},
update: (o = function() {
return new Promise(function(e) {
u.forceUpdate(), e(a);
});
}, function() {
return s || (s = new Promise(function(e) {
Promise.resolve().then(function() {
s = void 0, e(o());
});
})), s;
}),
destroy: function() {
p(), c = !0;
}
};
if (!oG(e, t)) return u;
function p() {
l.forEach(function(e) {
return e();
}), l = [];
}
return u.setOptions(r).then(function(e) {
!c && r.onFirstUpdate && r.onFirstUpdate(e);
}), u;
};
}
var sG = iG({ defaultModifiers: [
LH,
{
name: "popperOffsets",
enabled: !0,
phase: "read",
fn: function(e) {
var t = e.state;
var r = e.name;
t.modifiersData[r] = GH({
reference: t.rects.reference,
element: t.rects.popper,
strategy: "absolute",
placement: t.placement
});
},
data: {}
},
{
name: "computeStyles",
enabled: !0,
phase: "beforeWrite",
fn: function(e) {
var t = e.state;
var r = e.options;
var n = r.gpuAcceleration;
var o = void 0 === n || n;
var i = r.adaptive;
var s = void 0 === i || i;
var a = r.roundOffsets;
var l = void 0 === a || a;
var c = {
placement: pH(t.placement),
variation: MH(t.placement),
popper: t.elements.popper,
popperRect: t.rects.popper,
gpuAcceleration: o,
isFixed: "fixed" === t.options.strategy
};
null != t.modifiersData.popperOffsets && (t.styles.popper = Object.assign({}, t.styles.popper, PH(Object.assign({}, c, {
offsets: t.modifiersData.popperOffsets,
position: t.options.strategy,
adaptive: s,
roundOffsets: l
})))), null != t.modifiersData.arrow && (t.styles.arrow = Object.assign({}, t.styles.arrow, PH(Object.assign({}, c, {
offsets: t.modifiersData.arrow,
position: "absolute",
adaptive: !1,
roundOffsets: l
})))), t.attributes.popper = Object.assign({}, t.attributes.popper, { "data-popper-placement": t.placement });
},
data: {}
},
uH,
QH,
ZH,
eG,
IH,
{
name: "hide",
enabled: !0,
phase: "main",
requiresIfExists: ["preventOverflow"],
fn: function(e) {
var t = e.state;
var r = e.name;
var n = t.rects.reference;
var o = t.rects.popper;
var i = t.modifiersData.preventOverflow;
var s = KH(t, { elementContext: "reference" });
var a = KH(t, { altBoundary: !0 });
var l = XH(s, n);
var c = XH(a, o, i);
var u = JH(l);
var p = JH(c);
t.modifiersData[r] = {
referenceClippingOffsets: l,
popperEscapeOffsets: c,
isReferenceHidden: u,
hasPopperEscaped: p
}, t.attributes.popper = Object.assign({}, t.attributes.popper, {
"data-popper-reference-hidden": u,
"data-popper-escaped": p
});
}
}
] });
var aG = "Popper";
function lG(e) {
return UW(aG, e);
}
(function(e) {
const t = {};
["root"].forEach((r) => {
t[r] = UW(e, r);
});
})(aG);
var cG = [
"anchorEl",
"children",
"direction",
"disablePortal",
"modifiers",
"open",
"placement",
"popperOptions",
"popperRef",
"slotProps",
"slots",
"TransitionProps",
"ownerState"
];
var uG = [
"anchorEl",
"children",
"container",
"direction",
"disablePortal",
"keepMounted",
"modifiers",
"open",
"placement",
"popperOptions",
"popperRef",
"style",
"transition",
"slotProps",
"slots"
];
function pG(e) {
return "function" == typeof e ? e() : e;
}
function dG(e) {
return void 0 !== e.nodeType;
}
var fG = {};
var hG = react.forwardRef(function(t, r) {
var o;
const { anchorEl: i, children: s, direction: a, disablePortal: l, modifiers: c, open: u, placement: p, popperOptions: d, popperRef: f, slotProps: h = {}, slots: m = {}, TransitionProps: g } = t, v = w(t, cG), y = react.useRef(null), b = ca(y, r), x = react.useRef(null), S = ca(x, f), k = react.useRef(S);
ua(() => {
k.current = S;
}, [S]), react.useImperativeHandle(f, () => x.current, []);
const C = function(e, t) {
if ("ltr" === t) return e;
switch (e) {
case "bottom-end": return "bottom-start";
case "bottom-start": return "bottom-end";
case "top-end": return "top-start";
case "top-start": return "top-end";
default: return e;
}
}(p, a), [O, E] = react.useState(C), [T, R] = react.useState(pG(i));
react.useEffect(() => {
x.current && x.current.forceUpdate();
}), react.useEffect(() => {
i && R(pG(i));
}, [i]), ua(() => {
if (!T || !u) return;
if (T && dG(T) && 1 === T.nodeType) {
const e = T.getBoundingClientRect();
0 === e.top && 0 === e.left && 0 === e.right && 0 === e.bottom && console.warn([
"MUI: The `anchorEl` prop provided to the component is invalid.",
"The anchor element should be part of the document layout.",
"Make sure the element is present in the document or that it's not display none."
].join("\n"));
}
let e = [
{
name: "preventOverflow",
options: { altBoundary: l }
},
{
name: "flip",
options: { altBoundary: l }
},
{
name: "onUpdate",
enabled: !0,
phase: "afterWrite",
fn: ({ state: e }) => {
E(e.placement);
}
}
];
null != c && (e = e.concat(c)), d && null != d.modifiers && (e = e.concat(d.modifiers));
const t = sG(T, y.current, _({ placement: C }, d, { modifiers: e }));
return k.current(t), () => {
t.destroy(), k.current(null);
};
}, [
T,
l,
c,
u,
d,
C
]);
const I = { placement: O };
null !== g && (I.TransitionProps = g);
const M = ne({ root: ["root"] }, function(e) {
const { disableDefaultClasses: t } = react.useContext(zd);
return (r) => t ? "" : e(r);
}(lG));
const A = null != (o = m.root) ? o : "div";
const P = pf({
elementType: A,
externalSlotProps: h.root,
externalForwardedProps: v,
additionalProps: {
role: "tooltip",
ref: b
},
ownerState: t,
className: M.root
});
return (0, import_jsx_runtime.jsx)(A, _({}, P, { children: "function" == typeof s ? s(I) : s }));
});
var mG = react.forwardRef(function(t, r) {
const { anchorEl: o, children: i, container: s, direction: a = "ltr", disablePortal: l = !1, keepMounted: c = !1, modifiers: u, open: p, placement: d = "bottom", popperOptions: f = fG, popperRef: h, style: m, transition: g = !1, slotProps: v = {}, slots: y = {} } = t, b = w(t, uG), [x, S] = react.useState(!0);
if (!c && !p && (!g || x)) return null;
let k;
if (s) k = s;
else if (o) {
const e = pG(o);
k = e && dG(e) ? Qd(e).body : Qd(null).body;
}
const C = g ? {
in: p,
onEnter: () => {
S(!1);
},
onExited: () => {
S(!0);
}
} : void 0;
return (0, import_jsx_runtime.jsx)(Vf, {
disablePortal: l,
container: k,
children: (0, import_jsx_runtime.jsx)(hG, _({
anchorEl: o,
direction: a,
disablePortal: l,
modifiers: u,
ref: r,
open: g ? !x : p,
placement: d,
popperOptions: f,
popperRef: h,
slotProps: v,
slots: y
}, b, {
style: _({
position: "fixed",
top: 0,
left: 0,
display: p || !c || g && !x ? void 0 : "none"
}, m),
TransitionProps: C,
children: i
}))
});
});
mG.propTypes = {
anchorEl: Ci(ee.oneOfType([
Yd,
ee.object,
ee.func
]), (e) => {
if (e.open) {
const t = pG(e.anchorEl);
if (t && dG(t) && 1 === t.nodeType) {
const e = t.getBoundingClientRect();
if (0 === e.top && 0 === e.left && 0 === e.right && 0 === e.bottom) return new Error([
"MUI: The `anchorEl` prop provided to the component is invalid.",
"The anchor element should be part of the document layout.",
"Make sure the element is present in the document or that it's not display none."
].join("\n"));
} else if (!t || "function" != typeof t.getBoundingClientRect || !dG(t) && null != t.contextElement && 1 !== t.contextElement.nodeType) return new Error([
"MUI: The `anchorEl` prop provided to the component is invalid.",
"It should be an HTML element instance or a virtualElement ",
"(https://popper.js.org/docs/v2/virtual-elements/)."
].join("\n"));
}
return null;
}),
children: ee.oneOfType([ee.node, ee.func]),
container: ee.oneOfType([Yd, ee.func]),
direction: ee.oneOf(["ltr", "rtl"]),
disablePortal: ee.bool,
keepMounted: ee.bool,
modifiers: ee.arrayOf(ee.shape({
data: ee.object,
effect: ee.func,
enabled: ee.bool,
fn: ee.func,
name: ee.any,
options: ee.object,
phase: ee.oneOf([
"afterMain",
"afterRead",
"afterWrite",
"beforeMain",
"beforeRead",
"beforeWrite",
"main",
"read",
"write"
]),
requires: ee.arrayOf(ee.string),
requiresIfExists: ee.arrayOf(ee.string)
})),
open: ee.bool.isRequired,
placement: ee.oneOf([
"auto-end",
"auto-start",
"auto",
"bottom-end",
"bottom-start",
"bottom",
"left-end",
"left-start",
"left",
"right-end",
"right-start",
"right",
"top-end",
"top-start",
"top"
]),
popperOptions: ee.shape({
modifiers: ee.array,
onFirstUpdate: ee.func,
placement: ee.oneOf([
"auto-end",
"auto-start",
"auto",
"bottom-end",
"bottom-start",
"bottom",
"left-end",
"left-start",
"left",
"right-end",
"right-start",
"right",
"top-end",
"top-start",
"top"
]),
strategy: ee.oneOf(["absolute", "fixed"])
}),
popperRef: sa,
slotProps: ee.shape({ root: ee.oneOfType([ee.func, ee.object]) }),
slots: ee.shape({ root: ee.elementType }),
transition: ee.bool
};
var gG = [
"onChange",
"maxRows",
"minRows",
"style",
"value"
];
function vG(e) {
return parseInt(e, 10) || 0;
}
var yG = {
visibility: "hidden",
position: "absolute",
overflow: "hidden",
height: 0,
top: 0,
left: 0,
transform: "translateZ(0)"
};
var bG = react.forwardRef(function(r, o) {
const { onChange: i, maxRows: s, minRows: a = 1, style: l, value: c } = r, u = w(r, gG), { current: p } = react.useRef(null != c), d = react.useRef(null), f = ca(o, d), h = react.useRef(null), m = react.useCallback(() => {
const e = d.current;
const t = ef(e).getComputedStyle(e);
if ("0px" === t.width) return {
outerHeightStyle: 0,
overflowing: !1
};
const n = h.current;
n.style.width = t.width, n.value = e.value || r.placeholder || "x", "\n" === n.value.slice(-1) && (n.value += " ");
const o = t.boxSizing;
const i = vG(t.paddingBottom) + vG(t.paddingTop);
const l = vG(t.borderBottomWidth) + vG(t.borderTopWidth);
const c = n.scrollHeight;
n.value = "x";
const u = n.scrollHeight;
let p = c;
return a && (p = Math.max(Number(a) * u, p)), s && (p = Math.min(Number(s) * u, p)), p = Math.max(p, u), {
outerHeightStyle: p + ("border-box" === o ? i + l : 0),
overflowing: Math.abs(p - c) <= 1
};
}, [
s,
a,
r.placeholder
]), g = react.useCallback(() => {
const e = m();
if (null == (t = e) || 0 === Object.keys(t).length || 0 === t.outerHeightStyle && !t.overflowing) return;
var t;
const r = d.current;
r.style.height = `${e.outerHeightStyle}px`, r.style.overflow = e.overflowing ? "hidden" : "";
}, [m]);
return ua(() => {
const e = () => {
g();
};
let t;
const r = Xd(e);
const n = d.current;
const o = ef(n);
let i;
return o.addEventListener("resize", r), "undefined" != typeof ResizeObserver && (i = new ResizeObserver(e), i.observe(n)), () => {
r.clear(), cancelAnimationFrame(t), o.removeEventListener("resize", r), i && i.disconnect();
};
}, [m, g]), ua(() => {
g();
}), (0, import_jsx_runtime.jsxs)(react.Fragment, { children: [(0, import_jsx_runtime.jsx)("textarea", _({
value: c,
onChange: (e) => {
p || g(), i && i(e);
},
ref: f,
rows: a,
style: l
}, u)), (0, import_jsx_runtime.jsx)("textarea", {
"aria-hidden": !0,
className: r.className,
readOnly: !0,
ref: h,
tabIndex: -1,
style: _({}, yG, l, {
paddingTop: 0,
paddingBottom: 0
})
})] });
});
function wG(e) {
return void 0 !== e.normalize ? e.normalize("NFD").replace(/[\u0300-\u036f]/g, "") : e;
}
function _G(e, t) {
for (let r = 0; r < e.length; r += 1) if (t(e[r])) return r;
return -1;
}
bG.propTypes = {
className: ee.string,
maxRows: ee.oneOfType([ee.number, ee.string]),
minRows: ee.oneOfType([ee.number, ee.string]),
onChange: ee.func,
placeholder: ee.string,
style: ee.object,
value: ee.oneOfType([
ee.arrayOf(ee.string),
ee.number,
ee.string
])
};
var xG = function(e = {}) {
const { ignoreAccents: t = !0, ignoreCase: r = !0, limit: n, matchFrom: o = "any", stringify: i, trim: s = !1 } = e;
return (e, { inputValue: a, getOptionLabel: l }) => {
let c = s ? a.trim() : a;
r && (c = c.toLowerCase()), t && (c = wG(c));
const u = c ? e.filter((e) => {
let n = (i || l)(e);
return r && (n = n.toLowerCase()), t && (n = wG(n)), "start" === o ? 0 === n.indexOf(c) : n.indexOf(c) > -1;
}) : e;
return "number" == typeof n ? u.slice(0, n) : u;
};
}();
var SG = (e) => {
var t;
return null !== e.current && (null == (t = e.current.parentElement) ? void 0 : t.contains(document.activeElement));
};
var kG;
var CG = {};
function OG() {
if (kG) return CG;
kG = 1, Object.defineProperty(CG, "__esModule", { value: !0 }), CG.default = void 0;
var e = function(e, t) {
if (e && e.__esModule) return e;
if (null === e || "object" != typeof e && "function" != typeof e) return { default: e };
var n = r(t);
if (n && n.has(e)) return n.get(e);
var o = { __proto__: null };
var i = Object.defineProperty && Object.getOwnPropertyDescriptor;
for (var s in e) if ("default" !== s && Object.prototype.hasOwnProperty.call(e, s)) {
var a = i ? Object.getOwnPropertyDescriptor(e, s) : null;
a && (a.get || a.set) ? Object.defineProperty(o, s, a) : o[s] = e[s];
}
return o.default = e, n && n.set(e, o), o;
}(react.default);
var t = ar;
function r(e) {
if ("function" != typeof WeakMap) return null;
var t = /* @__PURE__ */ new WeakMap();
var n = /* @__PURE__ */ new WeakMap();
return (r = function(e) {
return e ? n : t;
})(e);
}
return CG.default = function(r = null) {
const n = e.useContext(t.ThemeContext);
return n && (o = n, 0 !== Object.keys(o).length) ? n : r;
var o;
}, CG;
}
var EG = x(OG());
var TG = [
"anchorEl",
"component",
"components",
"componentsProps",
"container",
"disablePortal",
"keepMounted",
"modifiers",
"open",
"placement",
"popperOptions",
"popperRef",
"transition",
"slots",
"slotProps"
];
var RG = pi(mG, {
name: "MuiPopper",
slot: "Root",
overridesResolver: (e, t) => t.root
})({});
var IG = react.forwardRef(function(t, r) {
var n;
const o = EG(), i = yi({
props: t,
name: "MuiPopper"
}), { anchorEl: s, component: a, components: l, componentsProps: c, container: u, disablePortal: p, keepMounted: d, modifiers: f, open: h, placement: m, popperOptions: g, popperRef: v, transition: y, slots: b, slotProps: x } = i, S = w(i, TG), k = null != (n = null == b ? void 0 : b.root) ? n : null == l ? void 0 : l.Root, C = _({
anchorEl: s,
container: u,
disablePortal: p,
keepMounted: d,
modifiers: f,
open: h,
placement: m,
popperOptions: g,
popperRef: v,
transition: y
}, S);
return (0, import_jsx_runtime.jsx)(RG, _({
as: a,
direction: null == o ? void 0 : o.direction,
slots: { root: k },
slotProps: null != x ? x : c
}, C, { ref: r }));
});
IG.propTypes = {
anchorEl: ee.oneOfType([
Yd,
ee.object,
ee.func
]),
children: ee.oneOfType([ee.node, ee.func]),
component: ee.elementType,
components: ee.shape({ Root: ee.elementType }),
componentsProps: ee.shape({ root: ee.oneOfType([ee.func, ee.object]) }),
container: ee.oneOfType([Yd, ee.func]),
disablePortal: ee.bool,
keepMounted: ee.bool,
modifiers: ee.arrayOf(ee.shape({
data: ee.object,
effect: ee.func,
enabled: ee.bool,
fn: ee.func,
name: ee.any,
options: ee.object,
phase: ee.oneOf([
"afterMain",
"afterRead",
"afterWrite",
"beforeMain",
"beforeRead",
"beforeWrite",
"main",
"read",
"write"
]),
requires: ee.arrayOf(ee.string),
requiresIfExists: ee.arrayOf(ee.string)
})),
open: ee.bool.isRequired,
placement: ee.oneOf([
"auto-end",
"auto-start",
"auto",
"bottom-end",
"bottom-start",
"bottom",
"left-end",
"left-start",
"left",
"right-end",
"right-start",
"right",
"top-end",
"top-start",
"top"
]),
popperOptions: ee.shape({
modifiers: ee.array,
onFirstUpdate: ee.func,
placement: ee.oneOf([
"auto-end",
"auto-start",
"auto",
"bottom-end",
"bottom-start",
"bottom",
"left-end",
"left-start",
"left",
"right-end",
"right-start",
"right",
"top-end",
"top-start",
"top"
]),
strategy: ee.oneOf(["absolute", "fixed"])
}),
popperRef: sa,
slotProps: ee.shape({ root: ee.oneOfType([ee.func, ee.object]) }),
slots: ee.shape({ root: ee.elementType }),
sx: ee.oneOfType([
ee.arrayOf(ee.oneOfType([
ee.func,
ee.object,
ee.bool
])),
ee.func,
ee.object
]),
transition: ee.bool
};
var MG = IG;
function AG(e) {
return Qn("MuiListSubheader", e);
}
ks("MuiListSubheader", [
"root",
"colorPrimary",
"colorInherit",
"gutters",
"inset",
"sticky"
]);
var PG = [
"className",
"color",
"component",
"disableGutters",
"disableSticky",
"inset"
];
var NG = pi("li", {
name: "MuiListSubheader",
slot: "Root",
overridesResolver: (e, t) => {
const { ownerState: r } = e;
return [
t.root,
"default" !== r.color && t[`color${bi(r.color)}`],
!r.disableGutters && t.gutters,
r.inset && t.inset,
!r.disableSticky && t.sticky
];
}
})(({ theme: e, ownerState: t }) => _({
boxSizing: "border-box",
lineHeight: "48px",
listStyle: "none",
color: (e.vars || e).palette.text.secondary,
fontFamily: e.typography.fontFamily,
fontWeight: e.typography.fontWeightMedium,
fontSize: e.typography.pxToRem(14)
}, "primary" === t.color && { color: (e.vars || e).palette.primary.main }, "inherit" === t.color && { color: "inherit" }, !t.disableGutters && {
paddingLeft: 16,
paddingRight: 16
}, t.inset && { paddingLeft: 72 }, !t.disableSticky && {
position: "sticky",
top: 0,
zIndex: 1,
backgroundColor: (e.vars || e).palette.background.paper
}));
var LG = react.forwardRef(function(t, r) {
const n = yi({
props: t,
name: "MuiListSubheader"
}), { className: o, color: i = "default", component: s = "li", disableGutters: a = !1, disableSticky: l = !1, inset: c = !1 } = n, u = w(n, PG), p = _({}, n, {
color: i,
component: s,
disableGutters: a,
disableSticky: l,
inset: c
}), d = ((e) => {
const { classes: t, color: r, disableGutters: n, inset: o, disableSticky: i } = e;
return ne({ root: [
"root",
"default" !== r && `color${bi(r)}`,
!n && "gutters",
o && "inset",
!i && "sticky"
] }, AG, t);
})(p);
return (0, import_jsx_runtime.jsx)(NG, _({
as: s,
className: re(d.root, o),
ref: r,
ownerState: p
}, u));
});
LG.muiSkipListHighlight = !0, LG.propTypes = {
children: ee.node,
classes: ee.object,
className: ee.string,
color: ee.oneOf([
"default",
"inherit",
"primary"
]),
component: ee.elementType,
disableGutters: ee.bool,
disableSticky: ee.bool,
inset: ee.bool,
sx: ee.oneOfType([
ee.arrayOf(ee.oneOfType([
ee.func,
ee.object,
ee.bool
])),
ee.func,
ee.object
])
};
var DG = LG;
function jG({ props: e, states: t, muiFormControl: r }) {
return t.reduce((t, n) => (t[n] = e[n], r && void 0 === e[n] && (t[n] = r[n]), t), {});
}
function FG(t) {
return (0, import_jsx_runtime.jsx)(Ei, _({}, t, {
defaultTheme: ai,
themeId: li
}));
}
function $G(e) {
return Qn("MuiInputBase", e);
}
FG.propTypes = { styles: ee.oneOfType([
ee.array,
ee.func,
ee.number,
ee.object,
ee.string,
ee.bool
]) };
var BG = ks("MuiInputBase", [
"root",
"formControl",
"focused",
"disabled",
"adornedStart",
"adornedEnd",
"error",
"sizeSmall",
"multiline",
"colorSecondary",
"fullWidth",
"hiddenLabel",
"readOnly",
"input",
"inputSizeSmall",
"inputMultiline",
"inputTypeSearch",
"inputAdornedStart",
"inputAdornedEnd",
"inputHiddenLabel"
]);
var zG = [
"aria-describedby",
"autoComplete",
"autoFocus",
"className",
"color",
"components",
"componentsProps",
"defaultValue",
"disabled",
"disableInjectingGlobalStyles",
"endAdornment",
"error",
"fullWidth",
"id",
"inputComponent",
"inputProps",
"inputRef",
"margin",
"maxRows",
"minRows",
"multiline",
"name",
"onBlur",
"onChange",
"onClick",
"onFocus",
"onKeyDown",
"onKeyUp",
"placeholder",
"readOnly",
"renderSuffix",
"rows",
"size",
"slotProps",
"slots",
"startAdornment",
"type",
"value"
];
var VG = (e, t) => {
const { ownerState: r } = e;
return [
t.root,
r.formControl && t.formControl,
r.startAdornment && t.adornedStart,
r.endAdornment && t.adornedEnd,
r.error && t.error,
"small" === r.size && t.sizeSmall,
r.multiline && t.multiline,
r.color && t[`color${bi(r.color)}`],
r.fullWidth && t.fullWidth,
r.hiddenLabel && t.hiddenLabel
];
};
var UG = (e, t) => {
const { ownerState: r } = e;
return [
t.input,
"small" === r.size && t.inputSizeSmall,
r.multiline && t.inputMultiline,
"search" === r.type && t.inputTypeSearch,
r.startAdornment && t.inputAdornedStart,
r.endAdornment && t.inputAdornedEnd,
r.hiddenLabel && t.inputHiddenLabel
];
};
var qG = pi("div", {
name: "MuiInputBase",
slot: "Root",
overridesResolver: VG
})(({ theme: e, ownerState: t }) => _({}, e.typography.body1, {
color: (e.vars || e).palette.text.primary,
lineHeight: "1.4375em",
boxSizing: "border-box",
position: "relative",
cursor: "text",
display: "inline-flex",
alignItems: "center",
[`&.${BG.disabled}`]: {
color: (e.vars || e).palette.text.disabled,
cursor: "default"
}
}, t.multiline && _({ padding: "4px 0 5px" }, "small" === t.size && { paddingTop: 1 }), t.fullWidth && { width: "100%" }));
var WG = pi("input", {
name: "MuiInputBase",
slot: "Input",
overridesResolver: UG
})(({ theme: e, ownerState: t }) => {
const r = "light" === e.palette.mode;
const n = _({ color: "currentColor" }, e.vars ? { opacity: e.vars.opacity.inputPlaceholder } : { opacity: r ? .42 : .5 }, { transition: e.transitions.create("opacity", { duration: e.transitions.duration.shorter }) });
const o = { opacity: "0 !important" };
const i = e.vars ? { opacity: e.vars.opacity.inputPlaceholder } : { opacity: r ? .42 : .5 };
return _({
font: "inherit",
letterSpacing: "inherit",
color: "currentColor",
padding: "4px 0 5px",
border: 0,
boxSizing: "content-box",
background: "none",
height: "1.4375em",
margin: 0,
WebkitTapHighlightColor: "transparent",
display: "block",
minWidth: 0,
width: "100%",
animationName: "mui-auto-fill-cancel",
animationDuration: "10ms",
"&::-webkit-input-placeholder": n,
"&::-moz-placeholder": n,
"&:-ms-input-placeholder": n,
"&::-ms-input-placeholder": n,
"&:focus": { outline: 0 },
"&:invalid": { boxShadow: "none" },
"&::-webkit-search-decoration": { WebkitAppearance: "none" },
[`label[data-shrink=false] + .${BG.formControl} &`]: {
"&::-webkit-input-placeholder": o,
"&::-moz-placeholder": o,
"&:-ms-input-placeholder": o,
"&::-ms-input-placeholder": o,
"&:focus::-webkit-input-placeholder": i,
"&:focus::-moz-placeholder": i,
"&:focus:-ms-input-placeholder": i,
"&:focus::-ms-input-placeholder": i
},
[`&.${BG.disabled}`]: {
opacity: 1,
WebkitTextFillColor: (e.vars || e).palette.text.disabled
},
"&:-webkit-autofill": {
animationDuration: "5000s",
animationName: "mui-auto-fill"
}
}, "small" === t.size && { paddingTop: 1 }, t.multiline && {
height: "auto",
resize: "none",
padding: 0,
paddingTop: 0
}, "search" === t.type && { MozAppearance: "textfield" });
});
var HG = (0, import_jsx_runtime.jsx)(FG, { styles: {
"@keyframes mui-auto-fill": { from: { display: "block" } },
"@keyframes mui-auto-fill-cancel": { from: { display: "block" } }
} });
var GG = react.forwardRef(function(r, o) {
var i;
const s = yi({
props: r,
name: "MuiInputBase"
}), { "aria-describedby": a, autoComplete: l, autoFocus: c, className: u, components: p = {}, componentsProps: d = {}, defaultValue: f, disabled: h, disableInjectingGlobalStyles: m, endAdornment: g, fullWidth: v = !1, id: y, inputComponent: b = "input", inputProps: x = {}, inputRef: S, maxRows: k, minRows: C, multiline: O = !1, name: E, onBlur: T, onChange: R, onClick: I, onFocus: M, onKeyDown: A, onKeyUp: P, placeholder: N, readOnly: L, renderSuffix: D, rows: j, slotProps: F = {}, slots: $ = {}, startAdornment: B, type: z = "text", value: V } = s, U = w(s, zG), q = null != x.value ? x.value : V, { current: W } = react.useRef(null != q), H = react.useRef(), G = react.useCallback((e) => {
e && "INPUT" !== e.nodeName && !e.focus && console.error([
"MUI: You have provided a `inputComponent` to the input component",
"that does not correctly handle the `ref` prop.",
"Make sure the `ref` prop is called with a HTMLInputElement."
].join("\n"));
}, []), K = ca(H, S, x.ref, G), [Y, Z] = react.useState(!1), X = xW();
react.useEffect(() => {
if (X) return X.registerEffect();
}, [X]);
const J = jG({
props: s,
muiFormControl: X,
states: [
"color",
"disabled",
"error",
"hiddenLabel",
"size",
"required",
"filled"
]
});
J.focused = X ? X.focused : Y, react.useEffect(() => {
!X && h && Y && (Z(!1), T && T());
}, [
X,
h,
Y,
T
]);
const Q = X && X.onFilled;
const ee = X && X.onEmpty;
const te = react.useCallback((e) => {
hW(e) ? Q && Q() : ee && ee();
}, [Q, ee]);
ua(() => {
W && te({ value: q });
}, [
q,
te,
W
]), react.useEffect(() => {
te(H.current);
}, []);
let oe = b;
let ie = x;
O && "input" === oe && (j ? ((C || k) && console.warn("MUI: You can not use the `minRows` or `maxRows` props when the input `rows` prop is set."), ie = _({
type: void 0,
minRows: j,
maxRows: j
}, ie)) : ie = _({
type: void 0,
maxRows: k,
minRows: C
}, ie), oe = bG), react.useEffect(() => {
X && X.setAdornedStart(Boolean(B));
}, [X, B]);
const se = _({}, s, {
color: J.color || "primary",
disabled: J.disabled,
endAdornment: g,
error: J.error,
focused: J.focused,
formControl: X,
fullWidth: v,
hiddenLabel: J.hiddenLabel,
multiline: O,
size: J.size,
startAdornment: B,
type: z
});
const ae = ((e) => {
const { classes: t, color: r, disabled: n, error: o, endAdornment: i, focused: s, formControl: a, fullWidth: l, hiddenLabel: c, multiline: u, readOnly: p, size: d, startAdornment: f, type: h } = e;
return ne({
root: [
"root",
`color${bi(r)}`,
n && "disabled",
o && "error",
l && "fullWidth",
s && "focused",
a && "formControl",
d && "medium" !== d && `size${bi(d)}`,
u && "multiline",
f && "adornedStart",
i && "adornedEnd",
c && "hiddenLabel",
p && "readOnly"
],
input: [
"input",
n && "disabled",
"search" === h && "inputTypeSearch",
u && "inputMultiline",
"small" === d && "inputSizeSmall",
c && "inputHiddenLabel",
f && "inputAdornedStart",
i && "inputAdornedEnd",
p && "readOnly"
]
}, $G, t);
})(se);
const le = $.root || p.Root || qG;
const ce = F.root || d.root || {};
const ue = $.input || p.Input || WG;
return ie = _({}, ie, null != (i = F.input) ? i : d.input), (0, import_jsx_runtime.jsxs)(react.Fragment, { children: [!m && HG, (0, import_jsx_runtime.jsxs)(le, _({}, ce, !Fd(le) && { ownerState: _({}, se, ce.ownerState) }, {
ref: o,
onClick: (e) => {
H.current && e.currentTarget === e.target && H.current.focus(), I && I(e);
}
}, U, {
className: re(ae.root, ce.className, u, L && "MuiInputBase-readOnly"),
children: [
B,
(0, import_jsx_runtime.jsx)(gW.Provider, {
value: null,
children: (0, import_jsx_runtime.jsx)(ue, _({
ownerState: se,
"aria-invalid": J.error,
"aria-describedby": a,
autoComplete: l,
autoFocus: c,
defaultValue: f,
disabled: J.disabled,
id: y,
onAnimationStart: (e) => {
te("mui-auto-fill-cancel" === e.animationName ? H.current : { value: "x" });
},
name: E,
placeholder: N,
readOnly: L,
required: J.required,
rows: j,
value: q,
onKeyDown: A,
onKeyUp: P,
type: z
}, ie, !Fd(ue) && {
as: oe,
ownerState: _({}, se, ie.ownerState)
}, {
ref: K,
className: re(ae.input, ie.className, L && "MuiInputBase-readOnly"),
onBlur: (e) => {
T && T(e), x.onBlur && x.onBlur(e), X && X.onBlur ? X.onBlur(e) : Z(!1);
},
onChange: (e, ...t) => {
if (!W) {
const t = e.target || H.current;
if (null == t) throw new Error("MUI: Expected valid input target. Did you use a custom `inputComponent` and forget to forward refs? See https://mui.com/r/input-component-ref-interface for more info.");
te({ value: t.value });
}
x.onChange && x.onChange(e, ...t), R && R(e, ...t);
},
onFocus: (e) => {
J.disabled ? e.stopPropagation() : (M && M(e), x.onFocus && x.onFocus(e), X && X.onFocus ? X.onFocus(e) : Z(!0));
}
}))
}),
g,
D ? D(_({}, J, { startAdornment: B })) : null
]
}))] });
});
GG.propTypes = {
"aria-describedby": ee.string,
autoComplete: ee.string,
autoFocus: ee.bool,
classes: ee.object,
className: ee.string,
color: ee.oneOfType([ee.oneOf([
"primary",
"secondary",
"error",
"info",
"success",
"warning"
]), ee.string]),
components: ee.shape({
Input: ee.elementType,
Root: ee.elementType
}),
componentsProps: ee.shape({
input: ee.object,
root: ee.object
}),
defaultValue: ee.any,
disabled: ee.bool,
disableInjectingGlobalStyles: ee.bool,
endAdornment: ee.node,
error: ee.bool,
fullWidth: ee.bool,
id: ee.string,
inputComponent: aa,
inputProps: ee.object,
inputRef: sa,
margin: ee.oneOf(["dense", "none"]),
maxRows: ee.oneOfType([ee.number, ee.string]),
minRows: ee.oneOfType([ee.number, ee.string]),
multiline: ee.bool,
name: ee.string,
onBlur: ee.func,
onChange: ee.func,
onClick: ee.func,
onFocus: ee.func,
onInvalid: ee.func,
onKeyDown: ee.func,
onKeyUp: ee.func,
placeholder: ee.string,
readOnly: ee.bool,
renderSuffix: ee.func,
required: ee.bool,
rows: ee.oneOfType([ee.number, ee.string]),
size: ee.oneOfType([ee.oneOf(["medium", "small"]), ee.string]),
slotProps: ee.shape({
input: ee.object,
root: ee.object
}),
slots: ee.shape({
input: ee.elementType,
root: ee.elementType
}),
startAdornment: ee.node,
sx: ee.oneOfType([
ee.arrayOf(ee.oneOfType([
ee.func,
ee.object,
ee.bool
])),
ee.func,
ee.object
]),
type: ee.string,
value: ee.any
};
var KG = GG;
function YG(e) {
return Qn("MuiInput", e);
}
var ZG = _({}, BG, ks("MuiInput", [
"root",
"underline",
"input"
]));
function XG(e) {
return Qn("MuiOutlinedInput", e);
}
var JG = _({}, BG, ks("MuiOutlinedInput", [
"root",
"notchedOutline",
"input"
]));
function QG(e) {
return Qn("MuiFilledInput", e);
}
var eK = _({}, BG, ks("MuiFilledInput", [
"root",
"underline",
"input"
]));
var tK = fz((0, import_jsx_runtime.jsx)("path", { d: "M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z" }), "Close");
var rK = fz((0, import_jsx_runtime.jsx)("path", { d: "M7 10l5 5 5-5z" }), "ArrowDropDown");
function nK(e) {
return Qn("MuiAutocomplete", e);
}
var oK = ks("MuiAutocomplete", [
"root",
"expanded",
"fullWidth",
"focused",
"focusVisible",
"tag",
"tagSizeSmall",
"tagSizeMedium",
"hasPopupIcon",
"hasClearIcon",
"inputRoot",
"input",
"inputFocused",
"endAdornment",
"clearIndicator",
"popupIndicator",
"popupIndicatorOpen",
"popper",
"popperDisablePortal",
"paper",
"listbox",
"loading",
"noOptions",
"option",
"groupLabel",
"groupUl"
]);
var iK;
var sK;
var aK = [
"autoComplete",
"autoHighlight",
"autoSelect",
"blurOnSelect",
"ChipProps",
"className",
"clearIcon",
"clearOnBlur",
"clearOnEscape",
"clearText",
"closeText",
"componentsProps",
"defaultValue",
"disableClearable",
"disableCloseOnSelect",
"disabled",
"disabledItemsFocusable",
"disableListWrap",
"disablePortal",
"filterOptions",
"filterSelectedOptions",
"forcePopupIcon",
"freeSolo",
"fullWidth",
"getLimitTagsText",
"getOptionDisabled",
"getOptionKey",
"getOptionLabel",
"isOptionEqualToValue",
"groupBy",
"handleHomeEndKeys",
"id",
"includeInputInList",
"inputValue",
"limitTags",
"ListboxComponent",
"ListboxProps",
"loading",
"loadingText",
"multiple",
"noOptionsText",
"onChange",
"onClose",
"onHighlightChange",
"onInputChange",
"onOpen",
"open",
"openOnFocus",
"openText",
"options",
"PaperComponent",
"PopperComponent",
"popupIcon",
"readOnly",
"renderGroup",
"renderInput",
"renderOption",
"renderTags",
"selectOnFocus",
"size",
"slotProps",
"value"
];
var lK = ["ref"];
var cK = cU();
var uK = pi("div", {
name: "MuiAutocomplete",
slot: "Root",
overridesResolver: (e, t) => {
const { ownerState: r } = e, { fullWidth: n, hasClearIcon: o, hasPopupIcon: i, inputFocused: s, size: a } = r;
return [
{ [`& .${oK.tag}`]: t.tag },
{ [`& .${oK.tag}`]: t[`tagSize${bi(a)}`] },
{ [`& .${oK.inputRoot}`]: t.inputRoot },
{ [`& .${oK.input}`]: t.input },
{ [`& .${oK.input}`]: s && t.inputFocused },
t.root,
n && t.fullWidth,
i && t.hasPopupIcon,
o && t.hasClearIcon
];
}
})({
[`&.${oK.focused} .${oK.clearIndicator}`]: { visibility: "visible" },
"@media (pointer: fine)": { [`&:hover .${oK.clearIndicator}`]: { visibility: "visible" } },
[`& .${oK.tag}`]: {
margin: 3,
maxWidth: "calc(100% - 6px)"
},
[`& .${oK.inputRoot}`]: {
flexWrap: "wrap",
[`.${oK.hasPopupIcon}&, .${oK.hasClearIcon}&`]: { paddingRight: 30 },
[`.${oK.hasPopupIcon}.${oK.hasClearIcon}&`]: { paddingRight: 56 },
[`& .${oK.input}`]: {
width: 0,
minWidth: 30
}
},
[`& .${ZG.root}`]: {
paddingBottom: 1,
"& .MuiInput-input": { padding: "4px 4px 4px 0px" }
},
[`& .${ZG.root}.${BG.sizeSmall}`]: { [`& .${ZG.input}`]: { padding: "2px 4px 3px 0" } },
[`& .${JG.root}`]: {
padding: 9,
[`.${oK.hasPopupIcon}&, .${oK.hasClearIcon}&`]: { paddingRight: 39 },
[`.${oK.hasPopupIcon}.${oK.hasClearIcon}&`]: { paddingRight: 65 },
[`& .${oK.input}`]: { padding: "7.5px 4px 7.5px 5px" },
[`& .${oK.endAdornment}`]: { right: 9 }
},
[`& .${JG.root}.${BG.sizeSmall}`]: {
paddingTop: 6,
paddingBottom: 6,
paddingLeft: 6,
[`& .${oK.input}`]: { padding: "2.5px 4px 2.5px 8px" }
},
[`& .${eK.root}`]: {
paddingTop: 19,
paddingLeft: 8,
[`.${oK.hasPopupIcon}&, .${oK.hasClearIcon}&`]: { paddingRight: 39 },
[`.${oK.hasPopupIcon}.${oK.hasClearIcon}&`]: { paddingRight: 65 },
[`& .${eK.input}`]: { padding: "7px 4px" },
[`& .${oK.endAdornment}`]: { right: 9 }
},
[`& .${eK.root}.${BG.sizeSmall}`]: {
paddingBottom: 1,
[`& .${eK.input}`]: { padding: "2.5px 4px" }
},
[`& .${BG.hiddenLabel}`]: { paddingTop: 8 },
[`& .${eK.root}.${BG.hiddenLabel}`]: {
paddingTop: 0,
paddingBottom: 0,
[`& .${oK.input}`]: {
paddingTop: 16,
paddingBottom: 17
}
},
[`& .${eK.root}.${BG.hiddenLabel}.${BG.sizeSmall}`]: { [`& .${oK.input}`]: {
paddingTop: 8,
paddingBottom: 9
} },
[`& .${oK.input}`]: {
flexGrow: 1,
textOverflow: "ellipsis",
opacity: 0
},
variants: [
{
props: { fullWidth: !0 },
style: { width: "100%" }
},
{
props: { size: "small" },
style: { [`& .${oK.tag}`]: {
margin: 2,
maxWidth: "calc(100% - 4px)"
} }
},
{
props: { inputFocused: !0 },
style: { [`& .${oK.input}`]: { opacity: 1 } }
}
]
});
var pK = pi("div", {
name: "MuiAutocomplete",
slot: "EndAdornment",
overridesResolver: (e, t) => t.endAdornment
})({
position: "absolute",
right: 0,
top: "50%",
transform: "translate(0, -50%)"
});
var dK = pi(hl, {
name: "MuiAutocomplete",
slot: "ClearIndicator",
overridesResolver: (e, t) => t.clearIndicator
})({
marginRight: -2,
padding: 4,
visibility: "hidden"
});
var fK = pi(hl, {
name: "MuiAutocomplete",
slot: "PopupIndicator",
overridesResolver: ({ ownerState: e }, t) => _({}, t.popupIndicator, e.popupOpen && t.popupIndicatorOpen)
})({
padding: 2,
marginRight: -2,
variants: [{
props: { popupOpen: !0 },
style: { transform: "rotate(180deg)" }
}]
});
var hK = pi(MG, {
name: "MuiAutocomplete",
slot: "Popper",
overridesResolver: (e, t) => {
const { ownerState: r } = e;
return [
{ [`& .${oK.option}`]: t.option },
t.popper,
r.disablePortal && t.popperDisablePortal
];
}
})(({ theme: e }) => ({
zIndex: (e.vars || e).zIndex.modal,
variants: [{
props: { disablePortal: !0 },
style: { position: "absolute" }
}]
}));
var mK = pi(Rs, {
name: "MuiAutocomplete",
slot: "Paper",
overridesResolver: (e, t) => t.paper
})(({ theme: e }) => _({}, e.typography.body1, { overflow: "auto" }));
var gK = pi("div", {
name: "MuiAutocomplete",
slot: "Loading",
overridesResolver: (e, t) => t.loading
})(({ theme: e }) => ({
color: (e.vars || e).palette.text.secondary,
padding: "14px 16px"
}));
var vK = pi("div", {
name: "MuiAutocomplete",
slot: "NoOptions",
overridesResolver: (e, t) => t.noOptions
})(({ theme: e }) => ({
color: (e.vars || e).palette.text.secondary,
padding: "14px 16px"
}));
var yK = pi("div", {
name: "MuiAutocomplete",
slot: "Listbox",
overridesResolver: (e, t) => t.listbox
})(({ theme: e }) => ({
listStyle: "none",
margin: 0,
padding: "8px 0",
maxHeight: "40vh",
overflow: "auto",
position: "relative",
[`& .${oK.option}`]: {
minHeight: 48,
display: "flex",
overflow: "hidden",
justifyContent: "flex-start",
alignItems: "center",
cursor: "pointer",
paddingTop: 6,
boxSizing: "border-box",
outline: "0",
WebkitTapHighlightColor: "transparent",
paddingBottom: 6,
paddingLeft: 16,
paddingRight: 16,
[e.breakpoints.up("sm")]: { minHeight: "auto" },
[`&.${oK.focused}`]: {
backgroundColor: (e.vars || e).palette.action.hover,
"@media (hover: none)": { backgroundColor: "transparent" }
},
"&[aria-disabled=\"true\"]": {
opacity: (e.vars || e).palette.action.disabledOpacity,
pointerEvents: "none"
},
[`&.${oK.focusVisible}`]: { backgroundColor: (e.vars || e).palette.action.focus },
"&[aria-selected=\"true\"]": {
backgroundColor: e.vars ? `rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})` : so.alpha(e.palette.primary.main, e.palette.action.selectedOpacity),
[`&.${oK.focused}`]: {
backgroundColor: e.vars ? `rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))` : so.alpha(e.palette.primary.main, e.palette.action.selectedOpacity + e.palette.action.hoverOpacity),
"@media (hover: none)": { backgroundColor: (e.vars || e).palette.action.selected }
},
[`&.${oK.focusVisible}`]: { backgroundColor: e.vars ? `rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))` : so.alpha(e.palette.primary.main, e.palette.action.selectedOpacity + e.palette.action.focusOpacity) }
}
}
}));
var bK = pi(DG, {
name: "MuiAutocomplete",
slot: "GroupLabel",
overridesResolver: (e, t) => t.groupLabel
})(({ theme: e }) => ({
backgroundColor: (e.vars || e).palette.background.paper,
top: -8
}));
var wK = pi("ul", {
name: "MuiAutocomplete",
slot: "GroupUl",
overridesResolver: (e, t) => t.groupUl
})({
padding: 0,
[`& .${oK.option}`]: { paddingLeft: 24 }
});
var _K = react.forwardRef(function(r, o) {
var i;
var s;
var a;
var l;
const c = cK({
props: r,
name: "MuiAutocomplete"
}), { autoComplete: u = !1, autoHighlight: p = !1, autoSelect: d = !1, blurOnSelect: f = !1, ChipProps: h, className: m, clearIcon: g = iK || (iK = (0, import_jsx_runtime.jsx)(tK, { fontSize: "small" })), clearOnBlur: y = !c.freeSolo, clearOnEscape: b = !1, clearText: x = "Clear", closeText: S = "Close", componentsProps: k = {}, defaultValue: C = c.multiple ? [] : null, disableClearable: O = !1, disableCloseOnSelect: E = !1, disabled: T = !1, disabledItemsFocusable: R = !1, disableListWrap: I = !1, disablePortal: M = !1, filterSelectedOptions: A = !1, forcePopupIcon: P = "auto", freeSolo: N = !1, fullWidth: L = !1, getLimitTagsText: D = (e) => `+${e}`, getOptionLabel: j, groupBy: F, handleHomeEndKeys: $ = !c.freeSolo, includeInputInList: B = !1, limitTags: z = -1, ListboxComponent: V = "ul", ListboxProps: U, loading: q = !1, loadingText: W = "Loading…", multiple: H = !1, noOptionsText: G = "No options", openOnFocus: K = !1, openText: Y = "Open", PaperComponent: Z = Rs, PopperComponent: X = MG, popupIcon: J = sK || (sK = (0, import_jsx_runtime.jsx)(rK, {})), readOnly: Q = !1, renderGroup: ee, renderInput: te, renderOption: oe, renderTags: ie, selectOnFocus: se = !c.freeSolo, size: ae = "medium", slotProps: le = {} } = c, ce = w(c, aK), { getRootProps: ue, getInputProps: pe, getInputLabelProps: de, getPopupIndicatorProps: fe, getClearProps: he, getTagProps: me, getListboxProps: ge, getOptionProps: ve, value: ye, dirty: be, expanded: we, id: _e, popupOpen: xe, focused: Se, focusedTag: ke, anchorEl: Ce, setAnchorEl: Oe, inputValue: Ee, groupedOptions: Te } = function(e) {
const { unstable_isActiveElementInListbox: t = SG, unstable_classNamePrefix: r = "Mui", autoComplete: o = !1, autoHighlight: i = !1, autoSelect: s = !1, blurOnSelect: a = !1, clearOnBlur: l = !e.freeSolo, clearOnEscape: c = !1, componentName: u = "useAutocomplete", defaultValue: p = e.multiple ? [] : null, disableClearable: d = !1, disableCloseOnSelect: f = !1, disabled: h, disabledItemsFocusable: m = !1, disableListWrap: g = !1, filterOptions: v = xG, filterSelectedOptions: y = !1, freeSolo: b = !1, getOptionDisabled: w, getOptionKey: x, getOptionLabel: S = (e) => {
var t;
return null != (t = e.label) ? t : e;
}, groupBy: k, handleHomeEndKeys: C = !e.freeSolo, id: O, includeInputInList: E = !1, inputValue: T, isOptionEqualToValue: R = (e, t) => e === t, multiple: I = !1, onChange: M, onClose: A, onHighlightChange: P, onInputChange: N, onOpen: L, open: D, openOnFocus: j = !1, options: F, readOnly: $ = !1, selectOnFocus: B = !e.freeSolo, value: z } = e, V = nf(O);
let U = S;
U = (e) => {
const t = S(e);
if ("string" != typeof t) {
{
const r = void 0 === t ? "undefined" : `${typeof t} (${t})`;
console.error(`MUI: The \`getOptionLabel\` method of ${u} returned ${r} instead of a string for ${JSON.stringify(e)}.`);
}
return String(t);
}
return t;
};
const q = react.useRef(!1), W = react.useRef(!0), H = react.useRef(null), G = react.useRef(null), [K, Y] = react.useState(null), [Z, X] = react.useState(-1), J = i ? 0 : -1, Q = react.useRef(J), [ee, te] = of({
controlled: z,
default: p,
name: u
}), [re, ne] = of({
controlled: T,
default: "",
name: u,
state: "inputValue"
}), [oe, ie] = react.useState(!1), se = react.useCallback((e, t) => {
if (!(I ? ee.length < t.length : null !== t) && !l) return;
let r;
if (I) r = "";
else if (null == t) r = "";
else {
const e = U(t);
r = "string" == typeof e ? e : "";
}
re !== r && (ne(r), N && N(e, r, "reset"));
}, [
U,
re,
I,
N,
ne,
l,
ee
]), [ae, le] = of({
controlled: D,
default: !1,
name: u,
state: "open"
}), [ce, ue] = react.useState(!0), pe = !I && null != ee && re === U(ee), de = ae && !$, fe = de ? v(F.filter((e) => !y || !(I ? ee : [ee]).some((t) => null !== t && R(e, t))), {
inputValue: pe && ce ? "" : re,
getOptionLabel: U
}) : [], he = af({
filteredOptions: fe,
value: ee,
inputValue: re
});
react.useEffect(() => {
const e = ee !== he.value;
oe && !e || b && !e || se(null, ee);
}, [
ee,
se,
oe,
he.value,
b
]);
const me = ae && fe.length > 0 && !$;
if (null !== ee && !b && F.length > 0) {
const e = (I ? ee : [ee]).filter((e) => !F.some((t) => R(t, e)));
e.length > 0 && console.warn([
`MUI: The value provided to ${u} is invalid.`,
`None of the options match with \`${e.length > 1 ? JSON.stringify(e) : JSON.stringify(e[0])}\`.`,
"You can use the `isOptionEqualToValue` prop to customize the equality test."
].join("\n"));
}
const ge = pa((e) => {
-1 === e ? H.current.focus() : K.querySelector(`[data-tag-index="${e}"]`).focus();
});
react.useEffect(() => {
I && Z > ee.length - 1 && (X(-1), ge(-1));
}, [
ee,
I,
Z,
ge
]);
const ve = pa(({ event: e, index: t, reason: n = "auto" }) => {
if (Q.current = t, -1 === t ? H.current.removeAttribute("aria-activedescendant") : H.current.setAttribute("aria-activedescendant", `${V}-option-${t}`), P && P(e, -1 === t ? null : fe[t], n), !G.current) return;
const o = G.current.querySelector(`[role="option"].${r}-focused`);
o && (o.classList.remove(`${r}-focused`), o.classList.remove(`${r}-focusVisible`));
let i = G.current;
if ("listbox" !== G.current.getAttribute("role") && (i = G.current.parentElement.querySelector("[role=\"listbox\"]")), !i) return;
if (-1 === t) return void (i.scrollTop = 0);
const s = G.current.querySelector(`[data-option-index="${t}"]`);
if (s && (s.classList.add(`${r}-focused`), "keyboard" === n && s.classList.add(`${r}-focusVisible`), i.scrollHeight > i.clientHeight && "mouse" !== n && "touch" !== n)) {
const e = s;
const t = i.clientHeight + i.scrollTop;
const r = e.offsetTop + e.offsetHeight;
r > t ? i.scrollTop = r - i.clientHeight : e.offsetTop - e.offsetHeight * (k ? 1.3 : 0) < i.scrollTop && (i.scrollTop = e.offsetTop - e.offsetHeight * (k ? 1.3 : 0));
}
});
const ye = pa(({ event: e, diff: t, direction: r = "next", reason: n = "auto" }) => {
if (!de) return;
const i = function(e, t) {
if (!G.current || e < 0 || e >= fe.length) return -1;
let r = e;
for (;;) {
const n = G.current.querySelector(`[data-option-index="${r}"]`);
const o = !m && (!n || n.disabled || "true" === n.getAttribute("aria-disabled"));
if (n && n.hasAttribute("tabindex") && !o) return r;
if (r = "next" === t ? (r + 1) % fe.length : (r - 1 + fe.length) % fe.length, r === e) return -1;
}
}((() => {
const e = fe.length - 1;
if ("reset" === t) return J;
if ("start" === t) return 0;
if ("end" === t) return e;
const r = Q.current + t;
return r < 0 ? -1 === r && E ? -1 : g && -1 !== Q.current || Math.abs(t) > 1 ? 0 : e : r > e ? r === e + 1 && E ? -1 : g || Math.abs(t) > 1 ? e : 0 : r;
})(), r);
if (ve({
index: i,
reason: n,
event: e
}), o && "reset" !== t) if (-1 === i) H.current.value = re;
else {
const e = U(fe[i]);
H.current.value = e, 0 === e.toLowerCase().indexOf(re.toLowerCase()) && re.length > 0 && H.current.setSelectionRange(re.length, e.length);
}
});
const be = react.useCallback(() => {
if (!de) return;
const e = (() => {
if (-1 !== Q.current && he.filteredOptions && he.filteredOptions.length !== fe.length && he.inputValue === re && (I ? ee.length === he.value.length && he.value.every((e, t) => U(ee[t]) === U(e)) : (e = he.value, t = ee, (e ? U(e) : "") === (t ? U(t) : "")))) {
const e = he.filteredOptions[Q.current];
if (e) return _G(fe, (t) => U(t) === U(e));
}
var e;
var t;
return -1;
})();
if (-1 !== e) return void (Q.current = e);
const t = I ? ee[0] : ee;
if (0 !== fe.length && null != t) {
if (G.current) {
if (null != t) {
const e = fe[Q.current];
if (I && e && -1 !== _G(ee, (t) => R(e, t))) return;
const r = _G(fe, (e) => R(e, t));
-1 === r ? ye({ diff: "reset" }) : ve({ index: r });
return;
}
Q.current >= fe.length - 1 ? ve({ index: fe.length - 1 }) : ve({ index: Q.current });
}
} else ye({ diff: "reset" });
}, [
fe.length,
!I && ee,
y,
ye,
ve,
de,
re,
I
]);
const we = pa((e) => {
la(G, e), e && be();
});
react.useEffect(() => {
H.current && "INPUT" === H.current.nodeName || (H.current && "TEXTAREA" === H.current.nodeName ? console.warn([
`A textarea element was provided to ${u} where input was expected.`,
"This is not a supported scenario but it may work under certain conditions.",
"A textarea keyboard navigation may conflict with Autocomplete controls (for example enter and arrow keys).",
"Make sure to test keyboard navigation and add custom event handlers if necessary."
].join("\n")) : console.error([
`MUI: Unable to find the input element. It was resolved to ${H.current} while an HTMLInputElement was expected.`,
`Instead, ${u} expects an input element.`,
"",
"useAutocomplete" === u ? "Make sure you have bound getInputProps correctly and that the normal ref/effect resolutions order is guaranteed." : "Make sure you have customized the input component correctly."
].join("\n")));
}, [u]), react.useEffect(() => {
be();
}, [be]);
const _e = (e) => {
ae || (le(!0), ue(!0), L && L(e));
};
const xe = (e, t) => {
ae && (le(!1), A && A(e, t));
};
const Se = (e, t, r, n) => {
if (I) {
if (ee.length === t.length && ee.every((e, r) => e === t[r])) return;
} else if (ee === t) return;
M && M(e, t, r, n), te(t);
};
const ke = react.useRef(!1);
const Ce = (e, t, r = "selectOption", n = "options") => {
let o = r;
let i = t;
if (I) {
if (i = Array.isArray(ee) ? ee.slice() : [], true) {
const e = i.filter((e) => R(t, e));
e.length > 1 && console.error([`MUI: The \`isOptionEqualToValue\` method of ${u} does not handle the arguments correctly.`, `The component expects a single value to match a given option but found ${e.length} matches.`].join("\n"));
}
const e = _G(i, (e) => R(t, e));
-1 === e ? i.push(t) : "freeSolo" !== n && (i.splice(e, 1), o = "removeOption");
}
se(e, i), Se(e, i, o, { option: t }), f || e && (e.ctrlKey || e.metaKey) || xe(e, o), (!0 === a || "touch" === a && ke.current || "mouse" === a && !ke.current) && H.current.blur();
};
const Oe = (e, t) => {
if (!I) return;
"" === re && xe(e, "toggleInput");
let r = Z;
-1 === Z ? "" === re && "previous" === t && (r = ee.length - 1) : (r += "next" === t ? 1 : -1, r < 0 && (r = 0), r === ee.length && (r = -1)), r = function(e, t) {
if (-1 === e) return -1;
let r = e;
for (;;) {
if ("next" === t && r === ee.length || "previous" === t && -1 === r) return -1;
const e = K.querySelector(`[data-tag-index="${r}"]`);
if (e && e.hasAttribute("tabindex") && !e.disabled && "true" !== e.getAttribute("aria-disabled")) return r;
r += "next" === t ? 1 : -1;
}
}(r, t), X(r), ge(r);
};
const Ee = (e) => {
q.current = !0, ne(""), N && N(e, "", "clear"), Se(e, I ? [] : null, "clear");
};
const Te = (e) => (t) => {
if (e.onKeyDown && e.onKeyDown(t), !t.defaultMuiPrevented && (-1 !== Z && -1 === ["ArrowLeft", "ArrowRight"].indexOf(t.key) && (X(-1), ge(-1)), 229 !== t.which)) switch (t.key) {
case "Home":
de && C && (t.preventDefault(), ye({
diff: "start",
direction: "next",
reason: "keyboard",
event: t
}));
break;
case "End":
de && C && (t.preventDefault(), ye({
diff: "end",
direction: "previous",
reason: "keyboard",
event: t
}));
break;
case "PageUp":
t.preventDefault(), ye({
diff: -5,
direction: "previous",
reason: "keyboard",
event: t
}), _e(t);
break;
case "PageDown":
t.preventDefault(), ye({
diff: 5,
direction: "next",
reason: "keyboard",
event: t
}), _e(t);
break;
case "ArrowDown":
t.preventDefault(), ye({
diff: 1,
direction: "next",
reason: "keyboard",
event: t
}), _e(t);
break;
case "ArrowUp":
t.preventDefault(), ye({
diff: -1,
direction: "previous",
reason: "keyboard",
event: t
}), _e(t);
break;
case "ArrowLeft":
Oe(t, "previous");
break;
case "ArrowRight":
Oe(t, "next");
break;
case "Enter":
if (-1 !== Q.current && de) {
const e = fe[Q.current];
const r = !!w && w(e);
if (t.preventDefault(), r) return;
Ce(t, e, "selectOption"), o && H.current.setSelectionRange(H.current.value.length, H.current.value.length);
} else b && "" !== re && !1 === pe && (I && t.preventDefault(), Ce(t, re, "createOption", "freeSolo"));
break;
case "Escape":
de ? (t.preventDefault(), t.stopPropagation(), xe(t, "escape")) : c && ("" !== re || I && ee.length > 0) && (t.preventDefault(), t.stopPropagation(), Ee(t));
break;
case "Backspace":
if (I && !$ && "" === re && ee.length > 0) {
const e = -1 === Z ? ee.length - 1 : Z;
const r = ee.slice();
r.splice(e, 1), Se(t, r, "removeOption", { option: ee[e] });
}
break;
case "Delete": if (I && !$ && "" === re && ee.length > 0 && -1 !== Z) {
const e = Z;
const r = ee.slice();
r.splice(e, 1), Se(t, r, "removeOption", { option: ee[e] });
}
}
};
const Re = (e) => {
ie(!0), j && !q.current && _e(e);
};
const Ie = (e) => {
t(G) ? H.current.focus() : (ie(!1), W.current = !0, q.current = !1, s && -1 !== Q.current && de ? Ce(e, fe[Q.current], "blur") : s && b && "" !== re ? Ce(e, re, "blur", "freeSolo") : l && se(e, ee), xe(e, "blur"));
};
const Me = (e) => {
const t = e.target.value;
re !== t && (ne(t), ue(!1), N && N(e, t, "input")), "" === t ? d || I || Se(e, null, "clear") : _e(e);
};
const Ae = (e) => {
const t = Number(e.currentTarget.getAttribute("data-option-index"));
Q.current !== t && ve({
event: e,
index: t,
reason: "mouse"
});
};
const Pe = (e) => {
ve({
event: e,
index: Number(e.currentTarget.getAttribute("data-option-index")),
reason: "touch"
}), ke.current = !0;
};
const Ne = (e) => {
const t = Number(e.currentTarget.getAttribute("data-option-index"));
Ce(e, fe[t], "selectOption"), ke.current = !1;
};
const Le = (e) => (t) => {
const r = ee.slice();
r.splice(e, 1), Se(t, r, "removeOption", { option: ee[e] });
};
const De = (e) => {
ae ? xe(e, "toggleInput") : _e(e);
};
const je = (e) => {
e.currentTarget.contains(e.target) && e.target.getAttribute("id") !== V && e.preventDefault();
};
const Fe = (e) => {
e.currentTarget.contains(e.target) && (H.current.focus(), B && W.current && H.current.selectionEnd - H.current.selectionStart === 0 && H.current.select(), W.current = !1);
};
const $e = (e) => {
h || "" !== re && ae || De(e);
};
let Be = b && re.length > 0;
Be = Be || (I ? ee.length > 0 : null !== ee);
let ze = fe;
if (k) {
const e = /* @__PURE__ */ new Map();
let t = !1;
ze = fe.reduce((r, n, o) => {
const i = k(n);
return r.length > 0 && r[r.length - 1].group === i ? r[r.length - 1].options.push(n) : (e.get(i) && !t && (console.warn(`MUI: The options provided combined with the \`groupBy\` method of ${u} returns duplicated headers.`, "You can solve the issue by sorting the options with the output of `groupBy`."), t = !0), e.set(i, !0), r.push({
key: o,
index: o,
group: i,
options: [n]
})), r;
}, []);
}
return h && oe && Ie(), {
getRootProps: (e = {}) => _({ "aria-owns": me ? `${V}-listbox` : null }, e, {
onKeyDown: Te(e),
onMouseDown: je,
onClick: Fe
}),
getInputLabelProps: () => ({
id: `${V}-label`,
htmlFor: V
}),
getInputProps: () => ({
id: V,
value: re,
onBlur: Ie,
onFocus: Re,
onChange: Me,
onMouseDown: $e,
"aria-activedescendant": de ? "" : null,
"aria-autocomplete": o ? "both" : "list",
"aria-controls": me ? `${V}-listbox` : void 0,
"aria-expanded": me,
autoComplete: "off",
ref: H,
autoCapitalize: "none",
spellCheck: "false",
role: "combobox",
disabled: h
}),
getClearProps: () => ({
tabIndex: -1,
type: "button",
onClick: Ee
}),
getPopupIndicatorProps: () => ({
tabIndex: -1,
type: "button",
onClick: De
}),
getTagProps: ({ index: e }) => _({
key: e,
"data-tag-index": e,
tabIndex: -1
}, !$ && { onDelete: Le(e) }),
getListboxProps: () => ({
role: "listbox",
id: `${V}-listbox`,
"aria-labelledby": `${V}-label`,
ref: we,
onMouseDown: (e) => {
e.preventDefault();
}
}),
getOptionProps: ({ index: e, option: t }) => {
var r;
const n = (I ? ee : [ee]).some((e) => null != e && R(t, e));
const o = !!w && w(t);
return {
key: null != (r = null == x ? void 0 : x(t)) ? r : U(t),
tabIndex: -1,
role: "option",
id: `${V}-option-${e}`,
onMouseMove: Ae,
onClick: Ne,
onTouchStart: Pe,
"data-option-index": e,
"aria-disabled": o,
"aria-selected": n
};
},
id: V,
inputValue: re,
value: ee,
dirty: Be,
expanded: de && K,
popupOpen: de,
focused: oe || -1 !== Z,
anchorEl: K,
setAnchorEl: Y,
focusedTag: Z,
groupedOptions: ze
};
}(_({}, c, { componentName: "Autocomplete" })), Re = !O && !T && be && !Q, Ie = (!N || !0 === P) && !1 !== P, { onMouseDown: Me } = pe(), { ref: Ae } = null != U ? U : {}, Pe = ge(), { ref: Ne } = Pe, Le = w(Pe, lK), De = ca(Ne, Ae), je = j || ((e) => {
var t;
return null != (t = e.label) ? t : e;
}), Fe = _({}, c, {
disablePortal: M,
expanded: we,
focused: Se,
fullWidth: L,
getOptionLabel: je,
hasClearIcon: Re,
hasPopupIcon: Ie,
inputFocused: -1 === ke,
popupOpen: xe,
size: ae
}), $e = ((e) => {
const { classes: t, disablePortal: r, expanded: n, focused: o, fullWidth: i, hasClearIcon: s, hasPopupIcon: a, inputFocused: l, popupOpen: c, size: u } = e;
return ne({
root: [
"root",
n && "expanded",
o && "focused",
i && "fullWidth",
s && "hasClearIcon",
a && "hasPopupIcon"
],
inputRoot: ["inputRoot"],
input: ["input", l && "inputFocused"],
tag: ["tag", `tagSize${bi(u)}`],
endAdornment: ["endAdornment"],
clearIndicator: ["clearIndicator"],
popupIndicator: ["popupIndicator", c && "popupIndicatorOpen"],
popper: ["popper", r && "popperDisablePortal"],
paper: ["paper"],
listbox: ["listbox"],
loading: ["loading"],
noOptions: ["noOptions"],
option: ["option"],
groupLabel: ["groupLabel"],
groupUl: ["groupUl"]
}, nK, t);
})(Fe);
let Be;
if (H && ye.length > 0) {
const t = (e) => _({
className: $e.tag,
disabled: T
}, me(e));
Be = ie ? ie(ye, t, Fe) : ye.map((r, n) => (0, import_jsx_runtime.jsx)(xz, _({
label: je(r),
size: ae
}, t({ index: n }), h)));
}
if (z > -1 && Array.isArray(Be)) {
const t = Be.length - z;
!Se && t > 0 && (Be = Be.splice(0, z), Be.push((0, import_jsx_runtime.jsx)("span", {
className: $e.tag,
children: D(t)
}, Be.length)));
}
const ze = ee || ((r) => (0, import_jsx_runtime.jsxs)("li", { children: [(0, import_jsx_runtime.jsx)(bK, {
className: $e.groupLabel,
ownerState: Fe,
component: "div",
children: r.group
}), (0, import_jsx_runtime.jsx)(wK, {
className: $e.groupUl,
ownerState: Fe,
children: r.children
})] }, r.key));
const Ve = oe || ((e, t) => (0, react.createElement)("li", _({}, e, { key: e.key }), je(t)));
const Ue = (e, t) => {
const r = ve({
option: e,
index: t
});
return Ve(_({}, r, { className: $e.option }), e, {
selected: r["aria-selected"],
index: t,
inputValue: Ee
}, Fe);
};
const qe = null != (i = le.clearIndicator) ? i : k.clearIndicator;
const We = null != (s = le.paper) ? s : k.paper;
const He = null != (a = le.popper) ? a : k.popper;
const Ge = null != (l = le.popupIndicator) ? l : k.popupIndicator;
const Ke = (t) => (0, import_jsx_runtime.jsx)(hK, _({
as: X,
disablePortal: M,
style: { width: Ce ? Ce.clientWidth : null },
ownerState: Fe,
role: "presentation",
anchorEl: Ce,
open: xe
}, He, {
className: re($e.popper, null == He ? void 0 : He.className),
children: (0, import_jsx_runtime.jsx)(mK, _({
ownerState: Fe,
as: Z
}, We, {
className: re($e.paper, null == We ? void 0 : We.className),
children: t
}))
}));
let Ye = null;
return Te.length > 0 ? Ye = Ke((0, import_jsx_runtime.jsx)(yK, _({
as: V,
className: $e.listbox,
ownerState: Fe
}, Le, U, {
ref: De,
children: Te.map((e, t) => F ? ze({
key: e.key,
group: e.group,
children: e.options.map((t, r) => Ue(t, e.index + r))
}) : Ue(e, t))
}))) : q && 0 === Te.length ? Ye = Ke((0, import_jsx_runtime.jsx)(gK, {
className: $e.loading,
ownerState: Fe,
children: W
})) : 0 !== Te.length || N || q || (Ye = Ke((0, import_jsx_runtime.jsx)(vK, {
className: $e.noOptions,
ownerState: Fe,
role: "presentation",
onMouseDown: (e) => {
e.preventDefault();
},
children: G
}))), (0, import_jsx_runtime.jsxs)(react.Fragment, { children: [(0, import_jsx_runtime.jsx)(uK, _({
ref: o,
className: re($e.root, m),
ownerState: Fe
}, ue(ce), { children: te({
id: _e,
disabled: T,
fullWidth: !0,
size: "small" === ae ? "small" : void 0,
InputLabelProps: de(),
InputProps: _({
ref: Oe,
className: $e.inputRoot,
startAdornment: Be,
onClick: (e) => {
e.target === e.currentTarget && Me(e);
}
}, (Re || Ie) && { endAdornment: (0, import_jsx_runtime.jsxs)(pK, {
className: $e.endAdornment,
ownerState: Fe,
children: [Re ? (0, import_jsx_runtime.jsx)(dK, _({}, he(), {
"aria-label": x,
title: x,
ownerState: Fe
}, qe, {
className: re($e.clearIndicator, null == qe ? void 0 : qe.className),
children: g
})) : null, Ie ? (0, import_jsx_runtime.jsx)(fK, _({}, fe(), {
disabled: T,
"aria-label": xe ? S : Y,
title: xe ? S : Y,
ownerState: Fe
}, Ge, {
className: re($e.popupIndicator, null == Ge ? void 0 : Ge.className),
children: J
})) : null]
}) }),
inputProps: _({
className: $e.input,
disabled: T,
readOnly: Q
}, pe())
}) })), Ce ? Ye : null] });
});
_K.propTypes = {
autoComplete: ee.bool,
autoHighlight: ee.bool,
autoSelect: ee.bool,
blurOnSelect: ee.oneOfType([ee.oneOf(["mouse", "touch"]), ee.bool]),
ChipProps: ee.object,
classes: ee.object,
className: ee.string,
clearIcon: ee.node,
clearOnBlur: ee.bool,
clearOnEscape: ee.bool,
clearText: ee.string,
closeText: ee.string,
componentsProps: ee.shape({
clearIndicator: ee.object,
paper: ee.object,
popper: ee.object,
popupIndicator: ee.object
}),
defaultValue: Ci(ee.any, (e) => e.multiple && void 0 !== e.defaultValue && !Array.isArray(e.defaultValue) ? new Error(["MUI: The Autocomplete expects the `defaultValue` prop to be an array when `multiple={true}` or undefined.", `However, ${e.defaultValue} was provided.`].join("\n")) : null),
disableClearable: ee.bool,
disableCloseOnSelect: ee.bool,
disabled: ee.bool,
disabledItemsFocusable: ee.bool,
disableListWrap: ee.bool,
disablePortal: ee.bool,
filterOptions: ee.func,
filterSelectedOptions: ee.bool,
forcePopupIcon: ee.oneOfType([ee.oneOf(["auto"]), ee.bool]),
freeSolo: ee.bool,
fullWidth: ee.bool,
getLimitTagsText: ee.func,
getOptionDisabled: ee.func,
getOptionKey: ee.func,
getOptionLabel: ee.func,
groupBy: ee.func,
handleHomeEndKeys: ee.bool,
id: ee.string,
includeInputInList: ee.bool,
inputValue: ee.string,
isOptionEqualToValue: ee.func,
limitTags: ki,
ListboxComponent: ee.elementType,
ListboxProps: ee.object,
loading: ee.bool,
loadingText: ee.node,
multiple: ee.bool,
noOptionsText: ee.node,
onChange: ee.func,
onClose: ee.func,
onHighlightChange: ee.func,
onInputChange: ee.func,
onKeyDown: ee.func,
onOpen: ee.func,
open: ee.bool,
openOnFocus: ee.bool,
openText: ee.string,
options: ee.array.isRequired,
PaperComponent: ee.elementType,
PopperComponent: ee.elementType,
popupIcon: ee.node,
readOnly: ee.bool,
renderGroup: ee.func,
renderInput: ee.func.isRequired,
renderOption: ee.func,
renderTags: ee.func,
selectOnFocus: ee.bool,
size: ee.oneOfType([ee.oneOf(["small", "medium"]), ee.string]),
slotProps: ee.shape({
clearIndicator: ee.object,
paper: ee.object,
popper: ee.object,
popupIndicator: ee.object
}),
sx: ee.oneOfType([
ee.arrayOf(ee.oneOfType([
ee.func,
ee.object,
ee.bool
])),
ee.func,
ee.object
]),
value: Ci(ee.any, (e) => e.multiple && void 0 !== e.value && !Array.isArray(e.value) ? new Error(["MUI: The Autocomplete expects the `value` prop to be an array when `multiple={true}` or undefined.", `However, ${e.value} was provided.`].join("\n")) : null)
};
var xK = _K;
var SK = "MuiAutocomplete-listbox";
var kK = { slotProps: { paper: { elevation: 6 } } };
var CK = react.default.forwardRef((e, t) => {
var _kK$slotProps;
var _i$slotProps;
const { renderInput: r, ListboxProps: n = {} } = e, i = _objectWithoutProperties(e, _excluded17), s = _objectSpread2(_objectSpread2(_objectSpread2({}, kK), i), {}, { slotProps: _objectSpread2(_objectSpread2(_objectSpread2({}, kK.slotProps), i.slotProps), {}, { paper: _objectSpread2(_objectSpread2({}, (_kK$slotProps = kK.slotProps) === null || _kK$slotProps === void 0 ? void 0 : _kK$slotProps.paper), (_i$slotProps = i.slotProps) === null || _i$slotProps === void 0 ? void 0 : _i$slotProps.paper) }) });
return react.default.createElement(xK, _objectSpread2(_objectSpread2({}, s), {}, {
ListboxProps: _objectSpread2(_objectSpread2({}, n), {}, { className: re([
SK,
`${SK}Size${a = i.size || "medium", a ? a[0].toUpperCase() + a.slice(1) : ""}`,
n.className
]) }),
renderInput: (t) => r === null || r === void 0 ? void 0 : r(function(e, t) {
const r = e;
return t.size && (r.size = t.size), r;
}(t, e)),
ref: t
}));
var a;
});
var OK = [
"className",
"elementType",
"ownerState",
"externalForwardedProps",
"getSlotOwnerState",
"internalForwardedProps"
];
var EK = [
"component",
"slots",
"slotProps"
];
var TK = ["component"];
function RK(e, t) {
const { className: r, elementType: n, ownerState: o, externalForwardedProps: i, getSlotOwnerState: s, internalForwardedProps: a } = t, l = w(t, OK), { component: c, slots: u = { [e]: void 0 }, slotProps: p = { [e]: void 0 } } = i, d = w(i, EK), f = u[e] || n, h = Ud(p[e], o), m = cf(_({ className: r }, l, {
externalForwardedProps: "root" === e ? d : void 0,
externalSlotProps: h
})), { props: { component: g }, internalRef: v } = m, y = w(m.props, TK), b = ca(v, null == h ? void 0 : h.ref, t.ref), x = s ? s(y) : {}, S = _({}, o, x), k = "root" === e ? g || c : g, C = $d(f, _({}, "root" === e && !c && !u[e] && a, "root" !== e && !u[e] && a, y, k && { as: k }, { ref: b }), S);
return Object.keys(x).forEach((e) => {
delete C[e];
}), [f, C];
}
function IK(e) {
return Qn("MuiAlert", e);
}
var MK = ks("MuiAlert", [
"root",
"action",
"icon",
"message",
"filled",
"colorSuccess",
"colorInfo",
"colorWarning",
"colorError",
"filledSuccess",
"filledInfo",
"filledWarning",
"filledError",
"outlined",
"outlinedSuccess",
"outlinedInfo",
"outlinedWarning",
"outlinedError",
"standard",
"standardSuccess",
"standardInfo",
"standardWarning",
"standardError"
]);
var AK = fz((0, import_jsx_runtime.jsx)("path", { d: "M20,12A8,8 0 0,1 12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4C12.76,4 13.5,4.11 14.2, 4.31L15.77,2.74C14.61,2.26 13.34,2 12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0, 0 22,12M7.91,10.08L6.5,11.5L11,16L21,6L19.59,4.58L11,13.17L7.91,10.08Z" }), "SuccessOutlined");
var PK = fz((0, import_jsx_runtime.jsx)("path", { d: "M12 5.99L19.53 19H4.47L12 5.99M12 2L1 21h22L12 2zm1 14h-2v2h2v-2zm0-6h-2v4h2v-4z" }), "ReportProblemOutlined");
var NK = fz((0, import_jsx_runtime.jsx)("path", { d: "M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z" }), "ErrorOutline");
var LK = fz((0, import_jsx_runtime.jsx)("path", { d: "M11,9H13V7H11M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20, 12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10, 10 0 0,0 12,2M11,17H13V11H11V17Z" }), "InfoOutlined");
var DK = [
"action",
"children",
"className",
"closeText",
"color",
"components",
"componentsProps",
"icon",
"iconMapping",
"onClose",
"role",
"severity",
"slotProps",
"slots",
"variant"
];
var jK = cU();
var FK = pi(Rs, {
name: "MuiAlert",
slot: "Root",
overridesResolver: (e, t) => {
const { ownerState: r } = e;
return [
t.root,
t[r.variant],
t[`${r.variant}${bi(r.color || r.severity)}`]
];
}
})(({ theme: e }) => {
const t = "light" === e.palette.mode ? so.darken : so.lighten;
const r = "light" === e.palette.mode ? so.lighten : so.darken;
return _({}, e.typography.body2, {
backgroundColor: "transparent",
display: "flex",
padding: "6px 16px",
variants: [
...Object.entries(e.palette).filter(([, e]) => e.main && e.light).map(([n]) => ({
props: {
colorSeverity: n,
variant: "standard"
},
style: {
color: e.vars ? e.vars.palette.Alert[`${n}Color`] : t(e.palette[n].light, .6),
backgroundColor: e.vars ? e.vars.palette.Alert[`${n}StandardBg`] : r(e.palette[n].light, .9),
[`& .${MK.icon}`]: e.vars ? { color: e.vars.palette.Alert[`${n}IconColor`] } : { color: e.palette[n].main }
}
})),
...Object.entries(e.palette).filter(([, e]) => e.main && e.light).map(([r]) => ({
props: {
colorSeverity: r,
variant: "outlined"
},
style: {
color: e.vars ? e.vars.palette.Alert[`${r}Color`] : t(e.palette[r].light, .6),
border: `1px solid ${(e.vars || e).palette[r].light}`,
[`& .${MK.icon}`]: e.vars ? { color: e.vars.palette.Alert[`${r}IconColor`] } : { color: e.palette[r].main }
}
})),
...Object.entries(e.palette).filter(([, e]) => e.main && e.dark).map(([t]) => ({
props: {
colorSeverity: t,
variant: "filled"
},
style: _({ fontWeight: e.typography.fontWeightMedium }, e.vars ? {
color: e.vars.palette.Alert[`${t}FilledColor`],
backgroundColor: e.vars.palette.Alert[`${t}FilledBg`]
} : {
backgroundColor: "dark" === e.palette.mode ? e.palette[t].dark : e.palette[t].main,
color: e.palette.getContrastText(e.palette[t].main)
})
}))
]
});
});
var $K = pi("div", {
name: "MuiAlert",
slot: "Icon",
overridesResolver: (e, t) => t.icon
})({
marginRight: 12,
padding: "7px 0",
display: "flex",
fontSize: 22,
opacity: .9
});
var BK = pi("div", {
name: "MuiAlert",
slot: "Message",
overridesResolver: (e, t) => t.message
})({
padding: "8px 0",
minWidth: 0,
overflow: "auto"
});
var zK = pi("div", {
name: "MuiAlert",
slot: "Action",
overridesResolver: (e, t) => t.action
})({
display: "flex",
alignItems: "flex-start",
padding: "4px 0 0 16px",
marginLeft: "auto",
marginRight: -8
});
var VK = {
success: (0, import_jsx_runtime.jsx)(AK, { fontSize: "inherit" }),
warning: (0, import_jsx_runtime.jsx)(PK, { fontSize: "inherit" }),
error: (0, import_jsx_runtime.jsx)(NK, { fontSize: "inherit" }),
info: (0, import_jsx_runtime.jsx)(LK, { fontSize: "inherit" })
};
var UK = react.forwardRef(function(r, n) {
const o = jK({
props: r,
name: "MuiAlert"
}), { action: i, children: s, className: a, closeText: l = "Close", color: c, components: u = {}, componentsProps: p = {}, icon: d, iconMapping: f = VK, onClose: h, role: m = "alert", severity: g = "success", slotProps: v = {}, slots: y = {}, variant: b = "standard" } = o, x = w(o, DK), S = _({}, o, {
color: c,
severity: g,
variant: b,
colorSeverity: c || g
}), k = ((e) => {
const { variant: t, color: r, severity: n, classes: o } = e;
return ne({
root: [
"root",
`color${bi(r || n)}`,
`${t}${bi(r || n)}`,
`${t}`
],
icon: ["icon"],
message: ["message"],
action: ["action"]
}, IK, o);
})(S), C = {
slots: _({
closeButton: u.CloseButton,
closeIcon: u.CloseIcon
}, y),
slotProps: _({}, p, v)
}, [O, E] = RK("closeButton", {
elementType: hl,
externalForwardedProps: C,
ownerState: S
}), [T, R] = RK("closeIcon", {
elementType: tK,
externalForwardedProps: C,
ownerState: S
});
return (0, import_jsx_runtime.jsxs)(FK, _({
role: m,
elevation: 0,
ownerState: S,
className: re(k.root, a),
ref: n
}, x, { children: [
!1 !== d ? (0, import_jsx_runtime.jsx)($K, {
ownerState: S,
className: k.icon,
children: d || f[g] || VK[g]
}) : null,
(0, import_jsx_runtime.jsx)(BK, {
ownerState: S,
className: k.message,
children: s
}),
null != i ? (0, import_jsx_runtime.jsx)(zK, {
ownerState: S,
className: k.action,
children: i
}) : null,
null == i && h ? (0, import_jsx_runtime.jsx)(zK, {
ownerState: S,
className: k.action,
children: (0, import_jsx_runtime.jsx)(O, _({
size: "small",
"aria-label": l,
title: l,
color: "inherit",
onClick: h
}, E, { children: (0, import_jsx_runtime.jsx)(T, _({ fontSize: "small" }, R)) }))
}) : null
] }));
});
UK.propTypes = {
action: ee.node,
children: ee.node,
classes: ee.object,
className: ee.string,
closeText: ee.string,
color: ee.oneOfType([ee.oneOf([
"error",
"info",
"success",
"warning"
]), ee.string]),
components: ee.shape({
CloseButton: ee.elementType,
CloseIcon: ee.elementType
}),
componentsProps: ee.shape({
closeButton: ee.object,
closeIcon: ee.object
}),
icon: ee.node,
iconMapping: ee.shape({
error: ee.node,
info: ee.node,
success: ee.node,
warning: ee.node
}),
onClose: ee.func,
role: ee.string,
severity: ee.oneOfType([ee.oneOf([
"error",
"info",
"success",
"warning"
]), ee.string]),
slotProps: ee.shape({
closeButton: ee.oneOfType([ee.func, ee.object]),
closeIcon: ee.oneOfType([ee.func, ee.object])
}),
slots: ee.shape({
closeButton: ee.elementType,
closeIcon: ee.elementType
}),
sx: ee.oneOfType([
ee.arrayOf(ee.oneOfType([
ee.func,
ee.object,
ee.bool
])),
ee.func,
ee.object
]),
variant: ee.oneOfType([ee.oneOf([
"filled",
"outlined",
"standard"
]), ee.string])
};
var qK = Il(UK)(({ theme: e, severity: t, color: r, variant: n, ownerState: o }) => {
const i = "small" === o.size;
const s = function(e, t, r, n) {
const o = t || e;
return o ? "filled" === r ? {
"& .MuiButton-containedInherit:not(.Mui-disabled)": {
color: n.palette[o].main,
backgroundColor: "rgba(255, 255, 255, 1)",
"&:hover": { backgroundColor: "rgba(255, 255, 255, .96)" }
},
"& .MuiButton-outlinedInherit:not(.Mui-disabled):hover": { backgroundColor: n.palette[o].dark },
"& a.MuiButtonBase-root.MuiButton-containedInherit:not(.Mui-disabled)": { [ml]: { color: n.palette[o].main } }
} : {
"&.MuiAlert-root": { color: n.palette.text.secondary },
"& .MuiCloseButton-root": { color: n.palette.action.active },
"& .MuiButton-containedInherit:not(.Mui-disabled)": {
backgroundColor: n.palette[o].main,
color: n.palette[o].contrastText,
"&:hover": {
backgroundColor: n.palette[o].dark,
color: n.palette[o].contrastText
}
},
"& .MuiButton-outlinedInherit:not(.Mui-disabled)": {
borderColor: n.palette[o].main,
color: n.palette[o].main,
"&:hover": {
backgroundColor: Ji(n.palette[o].main, .08),
color: n.palette[o].main
}
},
"& a.MuiButtonBase-root.MuiButton-containedInherit:not(.Mui-disabled)": { [ml]: { color: n.palette[o].contrastText } },
"& a.MuiButtonBase-root.MuiButton-outlinedInherit:not(.Mui-disabled)": { [ml]: { color: n.palette[o].main } }
} : {};
}(t, r, n, e);
const a = function(e, t) {
return "small" !== e.size ? {} : {
"& .MuiButtonBase-root.MuiButton-root": {
fontSize: t.typography.caption.fontSize,
letterSpacing: t.typography.caption.letterSpacing,
lineHeight: 1
},
"& .MuiButtonBase-root.MuiButton-contained": { padding: "8px 9px" },
"& .MuiButtonBase-root.MuiButton-outlined": { padding: "7px 9px" }
};
}(o, e);
const l = i ? _objectSpread2(_objectSpread2({}, e.typography.caption), {}, {
fontWeight: e.typography.subtitle2.fontWeight,
lineHeight: e.typography.subtitle2.lineHeight
}) : e.typography.subtitle2;
const c = i ? _objectSpread2(_objectSpread2({}, e.typography.caption), {}, { lineHeight: e.typography.body2.lineHeight }) : {};
return _objectSpread2(_objectSpread2({
borderRadius: o.square ? void 0 : e.shape.borderRadius * e.shape.__unstableBorderRadiusMultipliers[2],
padding: i ? e.spacing(1.5) : e.spacing(1.5, 2),
"& .MuiAlert-message": _objectSpread2({
width: "100%",
padding: 0,
minHeight: i ? "28px" : "31px",
display: "flex",
flexDirection: "row",
flexWrap: "wrap",
gap: i ? e.spacing(1) : e.spacing(1.5)
}, c),
"& .MuiAlertTitle-root": _objectSpread2({
marginBottom: 0,
lineHeight: "inherit",
marginRight: i ? e.spacing(.25) : e.spacing(.5),
marginTop: 0
}, l),
"& .MuiAlert-icon": {
fontSize: i ? "18px" : "22px",
padding: i ? e.spacing(.25) : 0,
paddingTop: i ? "5px" : e.spacing(.5),
marginRight: i ? e.spacing(.5) : e.spacing(1.5)
},
"& .MuiAlert-action": {
padding: i ? e.spacing(.25, 0, 0) : 0,
marginLeft: i ? e.spacing(.5) : e.spacing(1)
},
"&.MuiAlert-filledWarning": { color: e.palette.common.white }
}, a), s);
}), { slots: WK, classNames: HK } = Cl("Alert", ["actions", "content"]), GK = Il("div", WK.content)(() => ({
flexGrow: 1,
paddingTop: "6px"
})), KK = Il("div", WK.content)(({ theme: e }) => ({
alignItems: "center",
display: "flex",
flexWrap: "wrap",
gap: e.spacing(.25),
maxWidth: "800px"
})), YK = (_ref31) => {
let { children: e } = _ref31, t = _objectWithoutProperties(_ref31, _excluded18);
return react.default.createElement(GK, _objectSpread2({}, t), react.default.createElement(KK, null, e));
}, ZK = Il("div")(({ theme: e, ownerState: t }) => ({
display: "flex",
alignItems: "flex-start",
flexWrap: "wrap",
gap: "small" === t.size ? e.spacing(.5) : e.spacing(1)
})), XK = {
closeText: "Close",
severity: "success",
size: "medium"
}, JK = react.default.forwardRef((e, t) => {
const _XK$e = _objectSpread2(_objectSpread2({}, XK), e), { onClose: r, action: n, secondaryAction: i, children: s, size: a } = _XK$e, l = _objectWithoutProperties(_XK$e, _excluded19), c = Boolean(n || i);
return react.default.createElement(qK, _objectSpread2(_objectSpread2({ iconMapping: {
success: react.default.createElement(eY, null),
error: react.default.createElement(rY, null),
info: react.default.createElement(tY, null),
warning: react.default.createElement(nY, null)
} }, l), {}, {
ref: t,
action: !!r && react.default.createElement(MW, {
color: "inherit",
onClick: r,
slotProps: { icon: { fontSize: "small" === a ? "tiny" : "small" } },
title: l.closeText,
"aria-label": l.closeText
}),
ownerState: {
size: a,
square: l.square
}
}), react.default.createElement(YK, { className: HK.content }, s), c && react.default.createElement(ZK, {
className: HK.actions,
ownerState: { size: a }
}, i, n));
});
JK.defaultProps = XK;
var QK = JK;
function eY() {
return react.default.createElement(ru, {
viewBox: "0 0 24 24",
fontSize: "inherit"
}, react.default.createElement("path", {
fillRule: "evenodd",
clipRule: "evenodd",
d: "M12 2.25C10.7196 2.25 9.45176 2.50219 8.26884 2.99217C7.08591 3.48216 6.01108 4.20034 5.10571 5.10571C4.20034 6.01108 3.48216 7.08591 2.99217 8.26884C2.50219 9.45176 2.25 10.7196 2.25 12C2.25 13.2804 2.50219 14.5482 2.99217 15.7312C3.48216 16.9141 4.20034 17.9889 5.10571 18.8943C6.01108 19.7997 7.08591 20.5178 8.26884 21.0078C9.45176 21.4978 10.7196 21.75 12 21.75C13.2804 21.75 14.5482 21.4978 15.7312 21.0078C16.9141 20.5178 17.9889 19.7997 18.8943 18.8943C19.7997 17.9889 20.5178 16.9141 21.0078 15.7312C21.4978 14.5482 21.75 13.2804 21.75 12C21.75 10.7196 21.4978 9.45176 21.0078 8.26884C20.5178 7.08591 19.7997 6.01108 18.8943 5.10571C17.9889 4.20034 16.9141 3.48216 15.7312 2.99217C14.5482 2.50219 13.2804 2.25 12 2.25ZM16.2415 10.0563C16.5344 9.76339 16.5344 9.28852 16.2415 8.99563C15.9486 8.70273 15.4737 8.70273 15.1809 8.99563L10.7631 13.4134L8.81939 11.4697C8.5265 11.1768 8.05163 11.1768 7.75873 11.4697C7.46584 11.7626 7.46584 12.2374 7.75873 12.5303L10.2328 15.0044C10.3734 15.145 10.5642 15.224 10.7631 15.224C10.962 15.224 11.1528 15.145 11.2934 15.0044L16.2415 10.0563Z"
}));
}
function tY() {
return react.default.createElement(ru, {
viewBox: "0 0 24 24",
fontSize: "inherit"
}, react.default.createElement("path", {
fillRule: "evenodd",
clipRule: "evenodd",
d: "M11.75 2C17.1348 2 21.5 6.36522 21.5 11.75C21.5 17.1348 17.1348 21.5 11.75 21.5C6.36522 21.5 2 17.1348 2 11.75C2 6.36522 6.36522 2 11.75 2ZM10.75 10C10.3358 10 10 10.3358 10 10.75C10 11.1642 10.3358 11.5 10.75 11.5H11V15.75C11 16.1642 11.3358 16.5 11.75 16.5H12.75C13.1642 16.5 13.5 16.1642 13.5 15.75C13.5 15.3358 13.1642 15 12.75 15H12.5V10.75C12.5 10.3618 12.2051 10.0425 11.8271 10.0039L11.75 10H10.75ZM11.4502 6.75C10.8979 6.75 10.4502 7.19772 10.4502 7.75C10.4502 8.30228 10.8979 8.75 11.4502 8.75H11.46L11.5625 8.74512C12.0666 8.69378 12.46 8.26767 12.46 7.75C12.46 7.23233 12.0666 6.80622 11.5625 6.75488L11.46 6.75H11.4502Z"
}));
}
function rY() {
return react.default.createElement(ru, {
viewBox: "0 0 24 24",
fontSize: "inherit"
}, react.default.createElement("path", {
fillRule: "evenodd",
clipRule: "evenodd",
d: "M15.0498 2C15.2873 2 15.5191 2.04048 15.7422 2.13965C15.962 2.23735 16.136 2.37531 16.2803 2.51953L20.9805 7.21973C21.1247 7.36397 21.2627 7.53802 21.3604 7.75781C21.4595 7.98094 21.5 8.21268 21.5 8.4502V15.0498C21.5 15.2873 21.4595 15.5191 21.3604 15.7422C21.2627 15.962 21.1247 16.136 20.9805 16.2803L16.2803 20.9805C16.136 21.1247 15.962 21.2627 15.7422 21.3604C15.5191 21.4595 15.2873 21.5 15.0498 21.5H8.4502C8.21268 21.5 7.98094 21.4595 7.75781 21.3604C7.53802 21.2627 7.36397 21.1247 7.21973 20.9805L2.51953 16.2803C2.37531 16.136 2.23735 15.962 2.13965 15.7422C2.04048 15.5191 2 15.2873 2 15.0498V8.4502C2 8.21268 2.04048 7.98094 2.13965 7.75781C2.23735 7.53802 2.37531 7.36397 2.51953 7.21973L7.21973 2.51953C7.36397 2.37531 7.53802 2.23735 7.75781 2.13965C7.98094 2.04048 8.21268 2 8.4502 2H15.0498ZM11.75 14.75C11.1977 14.75 10.75 15.1977 10.75 15.75C10.75 16.3023 11.1977 16.75 11.75 16.75H11.7598L11.8623 16.7451C12.3665 16.6939 12.7598 16.2678 12.7598 15.75C12.7598 15.2322 12.3665 14.8061 11.8623 14.7549L11.7598 14.75H11.75ZM11.75 7C11.3358 7 11 7.33579 11 7.75V12.75C11 13.1642 11.3358 13.5 11.75 13.5C12.1642 13.5 12.5 13.1642 12.5 12.75V7.75C12.5 7.33579 12.1642 7 11.75 7Z"
}));
}
function nY() {
return react.default.createElement(ru, {
viewBox: "0 0 24 24",
fontSize: "inherit"
}, react.default.createElement("path", {
fillRule: "evenodd",
clipRule: "evenodd",
d: "M11.9302 3.00684C12.3573 3.03542 12.7729 3.16362 13.1431 3.38184C13.5618 3.6287 13.9074 3.98244 14.1451 4.40625L21.2456 16.6562L21.2915 16.751C21.4597 17.1668 21.524 17.6183 21.4781 18.0645C21.432 18.5106 21.2773 18.9397 21.0279 19.3125C20.7784 19.685 20.4411 19.9915 20.0464 20.2041C19.6517 20.4166 19.2105 20.529 18.7622 20.5322L18.7564 20.5332H4.75638C4.73812 20.5332 4.71964 20.5316 4.7017 20.5303C4.69631 20.5307 4.69052 20.5319 4.6851 20.5322L4.60795 20.5312L4.44388 20.5186C4.06393 20.476 3.69614 20.3543 3.36478 20.1611C2.98591 19.9403 2.66472 19.6317 2.42924 19.2617C2.19395 18.8919 2.051 18.4707 2.01127 18.0342C1.97166 17.5975 2.03678 17.1563 2.2017 16.75L2.2476 16.6562L9.34721 4.40625C9.58473 3.98261 9.93165 3.62868 10.3501 3.38184C10.7731 3.13252 11.2556 3.00006 11.7466 3L11.9302 3.00684ZM11.7574 15.7822C11.2051 15.7822 10.7574 16.2299 10.7574 16.7822C10.7574 17.3345 11.2051 17.7822 11.7574 17.7822H11.7671L11.8697 17.7773C12.3737 17.7259 12.7671 17.2998 12.7671 16.7822C12.7671 16.2647 12.3737 15.8386 11.8697 15.7871L11.7671 15.7822H11.7574ZM11.7564 8.0332C11.3424 8.03352 11.0064 8.36919 11.0064 8.7832V13.7832C11.0069 14.1968 11.3428 14.5329 11.7564 14.5332C12.1702 14.5332 12.5059 14.1969 12.5064 13.7832V8.7832C12.5064 8.36902 12.1706 8.03325 11.7564 8.0332Z"
}));
}
var { slots: oY, classNames: iY } = Cl("AlertAction", ["root"]), sY = Il(Xu, oY.root)({}), aY = {
color: "inherit",
variant: "outlined"
}, lY = react.default.forwardRef((e, t) => {
const r = yi({
props: _objectSpread2(_objectSpread2({}, aY), e),
name: oY.root.name
});
return react.default.createElement(sY, _objectSpread2(_objectSpread2({}, r), {}, {
size: "small",
ref: t,
className: re([[iY.root, r.className]]),
ownerState: r
}));
});
lY.defaultProps = aY;
var cY = lY;
function uY(e) {
return Qn("MuiSnackbarContent", e);
}
ks("MuiSnackbarContent", [
"root",
"message",
"action"
]);
var pY = [
"action",
"className",
"message",
"role"
];
var dY = pi(Rs, {
name: "MuiSnackbarContent",
slot: "Root",
overridesResolver: (e, t) => t.root
})(({ theme: e }) => {
const t = "light" === e.palette.mode ? .8 : .98;
const r = so.emphasize(e.palette.background.default, t);
return _({}, e.typography.body2, {
color: e.vars ? e.vars.palette.SnackbarContent.color : e.palette.getContrastText(r),
backgroundColor: e.vars ? e.vars.palette.SnackbarContent.bg : r,
display: "flex",
alignItems: "center",
flexWrap: "wrap",
padding: "6px 16px",
borderRadius: (e.vars || e).shape.borderRadius,
flexGrow: 1,
[e.breakpoints.up("sm")]: {
flexGrow: "initial",
minWidth: 288
}
});
});
var fY = pi("div", {
name: "MuiSnackbarContent",
slot: "Message",
overridesResolver: (e, t) => t.message
})({ padding: "8px 0" });
var hY = pi("div", {
name: "MuiSnackbarContent",
slot: "Action",
overridesResolver: (e, t) => t.action
})({
display: "flex",
alignItems: "center",
marginLeft: "auto",
paddingLeft: 16,
marginRight: -8
});
var mY = react.forwardRef(function(r, n) {
const o = yi({
props: r,
name: "MuiSnackbarContent"
}), { action: i, className: s, message: a, role: l = "alert" } = o, c = w(o, pY), u = o, p = ((e) => {
const { classes: t } = e;
return ne({
root: ["root"],
action: ["action"],
message: ["message"]
}, uY, t);
})(u);
return (0, import_jsx_runtime.jsxs)(dY, _({
role: l,
square: !0,
elevation: 6,
className: re(p.root, s),
ownerState: u,
ref: n
}, c, { children: [(0, import_jsx_runtime.jsx)(fY, {
className: p.message,
ownerState: u,
children: a
}), i ? (0, import_jsx_runtime.jsx)(hY, {
className: p.action,
ownerState: u,
children: i
}) : null] }));
});
mY.propTypes = {
action: ee.node,
classes: ee.object,
className: ee.string,
message: ee.node,
role: ee.string,
sx: ee.oneOfType([
ee.arrayOf(ee.oneOfType([
ee.func,
ee.object,
ee.bool
])),
ee.func,
ee.object
])
};
var gY = mY;
function vY(e) {
return Qn("MuiSnackbar", e);
}
ks("MuiSnackbar", [
"root",
"anchorOriginTopCenter",
"anchorOriginBottomCenter",
"anchorOriginTopRight",
"anchorOriginBottomRight",
"anchorOriginTopLeft",
"anchorOriginBottomLeft"
]);
var yY = ["onEnter", "onExited"];
var bY = [
"action",
"anchorOrigin",
"autoHideDuration",
"children",
"className",
"ClickAwayListenerProps",
"ContentProps",
"disableWindowBlurListener",
"message",
"onBlur",
"onClose",
"onFocus",
"onMouseEnter",
"onMouseLeave",
"open",
"resumeHideDuration",
"TransitionComponent",
"transitionDuration",
"TransitionProps"
];
var wY = pi("div", {
name: "MuiSnackbar",
slot: "Root",
overridesResolver: (e, t) => {
const { ownerState: r } = e;
return [t.root, t[`anchorOrigin${bi(r.anchorOrigin.vertical)}${bi(r.anchorOrigin.horizontal)}`]];
}
})(({ theme: e, ownerState: t }) => _({
zIndex: (e.vars || e).zIndex.snackbar,
position: "fixed",
display: "flex",
left: 8,
right: 8,
justifyContent: "center",
alignItems: "center"
}, "top" === t.anchorOrigin.vertical ? { top: 8 } : { bottom: 8 }, "left" === t.anchorOrigin.horizontal && { justifyContent: "flex-start" }, "right" === t.anchorOrigin.horizontal && { justifyContent: "flex-end" }, { [e.breakpoints.up("sm")]: _({}, "top" === t.anchorOrigin.vertical ? { top: 24 } : { bottom: 24 }, "center" === t.anchorOrigin.horizontal && {
left: "50%",
right: "auto",
transform: "translateX(-50%)"
}, "left" === t.anchorOrigin.horizontal && {
left: 24,
right: "auto"
}, "right" === t.anchorOrigin.horizontal && {
right: 24,
left: "auto"
}) }));
var _Y = react.forwardRef(function(t, r) {
const o = yi({
props: t,
name: "MuiSnackbar"
}), i = Ss(), s = {
enter: i.transitions.duration.enteringScreen,
exit: i.transitions.duration.leavingScreen
}, { action: a, anchorOrigin: { vertical: l, horizontal: c } = {
vertical: "bottom",
horizontal: "left"
}, autoHideDuration: u = null, children: p, className: d, ClickAwayListenerProps: f, ContentProps: h, disableWindowBlurListener: m = !1, message: g, open: v, TransitionComponent: y = Af, transitionDuration: b = s, TransitionProps: { onEnter: x, onExited: S } = {} } = o, k = w(o.TransitionProps, yY), C = w(o, bY), O = _({}, o, {
anchorOrigin: {
vertical: l,
horizontal: c
},
autoHideDuration: u,
disableWindowBlurListener: m,
TransitionComponent: y,
transitionDuration: b
}), E = ((e) => {
const { classes: t, anchorOrigin: r } = e;
return ne({ root: ["root", `anchorOrigin${bi(r.vertical)}${bi(r.horizontal)}`] }, vY, t);
})(O), { getRootProps: T, onClickAway: R } = function(e = {}) {
const { autoHideDuration: t = null, disableWindowBlurListener: r = !1, onClose: o, open: i, resumeHideDuration: s } = e, a = ma();
react.useEffect(() => {
if (i) return document.addEventListener("keydown", e), () => {
document.removeEventListener("keydown", e);
};
function e(e) {
e.defaultPrevented || "Escape" !== e.key && "Esc" !== e.key || null == o || o(e, "escapeKeyDown");
}
}, [i, o]);
const l = pa((e, t) => {
null == o || o(e, t);
});
const c = pa((e) => {
o && null != e && a.start(e, () => {
l(null, "timeout");
});
});
react.useEffect(() => (i && c(t), a.clear), [
i,
t,
c,
a
]);
const u = a.clear;
const p = react.useCallback(() => {
null != t && c(null != s ? s : .5 * t);
}, [
t,
s,
c
]);
const d = (e) => (t) => {
const r = e.onFocus;
null == r || r(t), u();
};
const f = (e) => (t) => {
const r = e.onMouseEnter;
null == r || r(t), u();
};
const h = (e) => (t) => {
const r = e.onMouseLeave;
null == r || r(t), p();
};
return react.useEffect(() => {
if (!r && i) return window.addEventListener("focus", p), window.addEventListener("blur", u), () => {
window.removeEventListener("focus", p), window.removeEventListener("blur", u);
};
}, [
r,
i,
p,
u
]), {
getRootProps: (t = {}) => {
const r = _({}, Vd(e), Vd(t));
return _({ role: "presentation" }, t, r, {
onBlur: (n = r, (e) => {
const t = n.onBlur;
null == t || t(e), p();
}),
onFocus: d(r),
onMouseEnter: f(r),
onMouseLeave: h(r)
});
var n;
},
onClickAway: (e) => {
null == o || o(e, "clickaway");
}
};
}(_({}, O)), [I, M] = react.useState(!0), A = pf({
elementType: wY,
getSlotProps: T,
externalForwardedProps: C,
ownerState: O,
additionalProps: { ref: r },
className: [E.root, d]
});
return !v && I ? null : (0, import_jsx_runtime.jsx)(WW, _({ onClickAway: R }, f, { children: (0, import_jsx_runtime.jsx)(wY, _({}, A, { children: (0, import_jsx_runtime.jsx)(y, _({
appear: !0,
in: v,
timeout: b,
direction: "top" === l ? "down" : "up",
onEnter: (e, t) => {
M(!1), x && x(e, t);
},
onExited: (e) => {
M(!0), S && S(e);
}
}, k, { children: p || (0, import_jsx_runtime.jsx)(gY, _({
message: g,
action: a
}, h)) })) })) }));
});
_Y.propTypes = {
action: ee.node,
anchorOrigin: ee.shape({
horizontal: ee.oneOf([
"center",
"left",
"right"
]).isRequired,
vertical: ee.oneOf(["bottom", "top"]).isRequired
}),
autoHideDuration: ee.number,
children: ee.element,
classes: ee.object,
className: ee.string,
ClickAwayListenerProps: ee.object,
ContentProps: ee.object,
disableWindowBlurListener: ee.bool,
key: () => null,
message: ee.node,
onBlur: ee.func,
onClose: ee.func,
onFocus: ee.func,
onMouseEnter: ee.func,
onMouseLeave: ee.func,
open: ee.bool,
resumeHideDuration: ee.number,
sx: ee.oneOfType([
ee.arrayOf(ee.oneOfType([
ee.func,
ee.object,
ee.bool
])),
ee.func,
ee.object
]),
TransitionComponent: ee.elementType,
transitionDuration: ee.oneOfType([ee.number, ee.shape({
appear: ee.number,
enter: ee.number,
exit: ee.number
})]),
TransitionProps: ee.object
};
var xY = _Y;
var SY = react.default.forwardRef((e, t) => react.default.createElement(xY, _objectSpread2(_objectSpread2({}, e), {}, { ref: t })));
var kY = [
"disableUnderline",
"components",
"componentsProps",
"fullWidth",
"inputComponent",
"multiline",
"slotProps",
"slots",
"type"
];
var CY = pi(qG, {
shouldForwardProp: (e) => ui(e) || "classes" === e,
name: "MuiInput",
slot: "Root",
overridesResolver: (e, t) => {
const { ownerState: r } = e;
return [...VG(e, t), !r.disableUnderline && t.underline];
}
})(({ theme: e, ownerState: t }) => {
let r = "light" === e.palette.mode ? "rgba(0, 0, 0, 0.42)" : "rgba(255, 255, 255, 0.7)";
return e.vars && (r = `rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`), _({ position: "relative" }, t.formControl && { "label + &": { marginTop: 16 } }, !t.disableUnderline && {
"&::after": {
borderBottom: `2px solid ${(e.vars || e).palette[t.color].main}`,
left: 0,
bottom: 0,
content: "\"\"",
position: "absolute",
right: 0,
transform: "scaleX(0)",
transition: e.transitions.create("transform", {
duration: e.transitions.duration.shorter,
easing: e.transitions.easing.easeOut
}),
pointerEvents: "none"
},
[`&.${ZG.focused}:after`]: { transform: "scaleX(1) translateX(0)" },
[`&.${ZG.error}`]: { "&::before, &::after": { borderBottomColor: (e.vars || e).palette.error.main } },
"&::before": {
borderBottom: `1px solid ${r}`,
left: 0,
bottom: 0,
content: "\"\\00a0\"",
position: "absolute",
right: 0,
transition: e.transitions.create("border-bottom-color", { duration: e.transitions.duration.shorter }),
pointerEvents: "none"
},
[`&:hover:not(.${ZG.disabled}, .${ZG.error}):before`]: {
borderBottom: `2px solid ${(e.vars || e).palette.text.primary}`,
"@media (hover: none)": { borderBottom: `1px solid ${r}` }
},
[`&.${ZG.disabled}:before`]: { borderBottomStyle: "dotted" }
});
});
var OY = pi(WG, {
name: "MuiInput",
slot: "Input",
overridesResolver: UG
})({});
var EY = react.forwardRef(function(t, r) {
var n;
var o;
var i;
var s;
const a = yi({
props: t,
name: "MuiInput"
}), { disableUnderline: l, components: c = {}, componentsProps: u, fullWidth: p = !1, inputComponent: d = "input", multiline: f = !1, slotProps: h, slots: m = {}, type: g = "text" } = a, v = w(a, kY), y = ((e) => {
const { classes: t, disableUnderline: r } = e;
return _({}, t, ne({
root: ["root", !r && "underline"],
input: ["input"]
}, YG, t));
})(a), b = { root: { ownerState: { disableUnderline: l } } }, x = (null != h ? h : u) ? Yn(null != h ? h : u, b) : b, S = null != (n = null != (o = m.root) ? o : c.Root) ? n : CY, k = null != (i = null != (s = m.input) ? s : c.Input) ? i : OY;
return (0, import_jsx_runtime.jsx)(KG, _({
slots: {
root: S,
input: k
},
slotProps: x,
fullWidth: p,
inputComponent: d,
multiline: f,
ref: r,
type: g
}, v, { classes: y }));
});
EY.propTypes = {
autoComplete: ee.string,
autoFocus: ee.bool,
classes: ee.object,
color: ee.oneOfType([ee.oneOf(["primary", "secondary"]), ee.string]),
components: ee.shape({
Input: ee.elementType,
Root: ee.elementType
}),
componentsProps: ee.shape({
input: ee.object,
root: ee.object
}),
defaultValue: ee.any,
disabled: ee.bool,
disableUnderline: ee.bool,
endAdornment: ee.node,
error: ee.bool,
fullWidth: ee.bool,
id: ee.string,
inputComponent: ee.elementType,
inputProps: ee.object,
inputRef: sa,
margin: ee.oneOf(["dense", "none"]),
maxRows: ee.oneOfType([ee.number, ee.string]),
minRows: ee.oneOfType([ee.number, ee.string]),
multiline: ee.bool,
name: ee.string,
onChange: ee.func,
placeholder: ee.string,
readOnly: ee.bool,
required: ee.bool,
rows: ee.oneOfType([ee.number, ee.string]),
slotProps: ee.shape({
input: ee.object,
root: ee.object
}),
slots: ee.shape({
input: ee.elementType,
root: ee.elementType
}),
startAdornment: ee.node,
sx: ee.oneOfType([
ee.arrayOf(ee.oneOfType([
ee.func,
ee.object,
ee.bool
])),
ee.func,
ee.object
]),
type: ee.string,
value: ee.any
}, EY.muiName = "Input";
var TY = EY;
var RY = [
"disableUnderline",
"components",
"componentsProps",
"fullWidth",
"hiddenLabel",
"inputComponent",
"multiline",
"slotProps",
"slots",
"type"
];
var IY = pi(qG, {
shouldForwardProp: (e) => ui(e) || "classes" === e,
name: "MuiFilledInput",
slot: "Root",
overridesResolver: (e, t) => {
const { ownerState: r } = e;
return [...VG(e, t), !r.disableUnderline && t.underline];
}
})(({ theme: e, ownerState: t }) => {
var r;
const n = "light" === e.palette.mode;
const o = n ? "rgba(0, 0, 0, 0.42)" : "rgba(255, 255, 255, 0.7)";
const i = n ? "rgba(0, 0, 0, 0.06)" : "rgba(255, 255, 255, 0.09)";
const s = n ? "rgba(0, 0, 0, 0.09)" : "rgba(255, 255, 255, 0.13)";
const a = n ? "rgba(0, 0, 0, 0.12)" : "rgba(255, 255, 255, 0.12)";
return _({
position: "relative",
backgroundColor: e.vars ? e.vars.palette.FilledInput.bg : i,
borderTopLeftRadius: (e.vars || e).shape.borderRadius,
borderTopRightRadius: (e.vars || e).shape.borderRadius,
transition: e.transitions.create("background-color", {
duration: e.transitions.duration.shorter,
easing: e.transitions.easing.easeOut
}),
"&:hover": {
backgroundColor: e.vars ? e.vars.palette.FilledInput.hoverBg : s,
"@media (hover: none)": { backgroundColor: e.vars ? e.vars.palette.FilledInput.bg : i }
},
[`&.${eK.focused}`]: { backgroundColor: e.vars ? e.vars.palette.FilledInput.bg : i },
[`&.${eK.disabled}`]: { backgroundColor: e.vars ? e.vars.palette.FilledInput.disabledBg : a }
}, !t.disableUnderline && {
"&::after": {
borderBottom: `2px solid ${null == (r = (e.vars || e).palette[t.color || "primary"]) ? void 0 : r.main}`,
left: 0,
bottom: 0,
content: "\"\"",
position: "absolute",
right: 0,
transform: "scaleX(0)",
transition: e.transitions.create("transform", {
duration: e.transitions.duration.shorter,
easing: e.transitions.easing.easeOut
}),
pointerEvents: "none"
},
[`&.${eK.focused}:after`]: { transform: "scaleX(1) translateX(0)" },
[`&.${eK.error}`]: { "&::before, &::after": { borderBottomColor: (e.vars || e).palette.error.main } },
"&::before": {
borderBottom: `1px solid ${e.vars ? `rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})` : o}`,
left: 0,
bottom: 0,
content: "\"\\00a0\"",
position: "absolute",
right: 0,
transition: e.transitions.create("border-bottom-color", { duration: e.transitions.duration.shorter }),
pointerEvents: "none"
},
[`&:hover:not(.${eK.disabled}, .${eK.error}):before`]: { borderBottom: `1px solid ${(e.vars || e).palette.text.primary}` },
[`&.${eK.disabled}:before`]: { borderBottomStyle: "dotted" }
}, t.startAdornment && { paddingLeft: 12 }, t.endAdornment && { paddingRight: 12 }, t.multiline && _({ padding: "25px 12px 8px" }, "small" === t.size && {
paddingTop: 21,
paddingBottom: 4
}, t.hiddenLabel && {
paddingTop: 16,
paddingBottom: 17
}, t.hiddenLabel && "small" === t.size && {
paddingTop: 8,
paddingBottom: 9
}));
});
var MY = pi(WG, {
name: "MuiFilledInput",
slot: "Input",
overridesResolver: UG
})(({ theme: e, ownerState: t }) => _({
paddingTop: 25,
paddingRight: 12,
paddingBottom: 8,
paddingLeft: 12
}, !e.vars && { "&:-webkit-autofill": {
WebkitBoxShadow: "light" === e.palette.mode ? null : "0 0 0 100px #266798 inset",
WebkitTextFillColor: "light" === e.palette.mode ? null : "#fff",
caretColor: "light" === e.palette.mode ? null : "#fff",
borderTopLeftRadius: "inherit",
borderTopRightRadius: "inherit"
} }, e.vars && {
"&:-webkit-autofill": {
borderTopLeftRadius: "inherit",
borderTopRightRadius: "inherit"
},
[e.getColorSchemeSelector("dark")]: { "&:-webkit-autofill": {
WebkitBoxShadow: "0 0 0 100px #266798 inset",
WebkitTextFillColor: "#fff",
caretColor: "#fff"
} }
}, "small" === t.size && {
paddingTop: 21,
paddingBottom: 4
}, t.hiddenLabel && {
paddingTop: 16,
paddingBottom: 17
}, t.startAdornment && { paddingLeft: 0 }, t.endAdornment && { paddingRight: 0 }, t.hiddenLabel && "small" === t.size && {
paddingTop: 8,
paddingBottom: 9
}, t.multiline && {
paddingTop: 0,
paddingBottom: 0,
paddingLeft: 0,
paddingRight: 0
}));
var AY = react.forwardRef(function(t, r) {
var n;
var o;
var i;
var s;
const a = yi({
props: t,
name: "MuiFilledInput"
}), { components: l = {}, componentsProps: c, fullWidth: u = !1, inputComponent: p = "input", multiline: d = !1, slotProps: f, slots: h = {}, type: m = "text" } = a, g = w(a, RY), v = _({}, a, {
fullWidth: u,
inputComponent: p,
multiline: d,
type: m
}), y = ((e) => {
const { classes: t, disableUnderline: r } = e;
return _({}, t, ne({
root: ["root", !r && "underline"],
input: ["input"]
}, QG, t));
})(a), b = {
root: { ownerState: v },
input: { ownerState: v }
}, x = (null != f ? f : c) ? Yn(b, null != f ? f : c) : b, S = null != (n = null != (o = h.root) ? o : l.Root) ? n : IY, k = null != (i = null != (s = h.input) ? s : l.Input) ? i : MY;
return (0, import_jsx_runtime.jsx)(KG, _({
slots: {
root: S,
input: k
},
componentsProps: x,
fullWidth: u,
inputComponent: p,
multiline: d,
ref: r,
type: m
}, g, { classes: y }));
});
AY.propTypes = {
autoComplete: ee.string,
autoFocus: ee.bool,
classes: ee.object,
color: ee.oneOfType([ee.oneOf(["primary", "secondary"]), ee.string]),
components: ee.shape({
Input: ee.elementType,
Root: ee.elementType
}),
componentsProps: ee.shape({
input: ee.object,
root: ee.object
}),
defaultValue: ee.any,
disabled: ee.bool,
disableUnderline: ee.bool,
endAdornment: ee.node,
error: ee.bool,
fullWidth: ee.bool,
hiddenLabel: ee.bool,
id: ee.string,
inputComponent: ee.elementType,
inputProps: ee.object,
inputRef: sa,
margin: ee.oneOf(["dense", "none"]),
maxRows: ee.oneOfType([ee.number, ee.string]),
minRows: ee.oneOfType([ee.number, ee.string]),
multiline: ee.bool,
name: ee.string,
onChange: ee.func,
placeholder: ee.string,
readOnly: ee.bool,
required: ee.bool,
rows: ee.oneOfType([ee.number, ee.string]),
slotProps: ee.shape({
input: ee.object,
root: ee.object
}),
slots: ee.shape({
input: ee.elementType,
root: ee.elementType
}),
startAdornment: ee.node,
sx: ee.oneOfType([
ee.arrayOf(ee.oneOfType([
ee.func,
ee.object,
ee.bool
])),
ee.func,
ee.object
]),
type: ee.string,
value: ee.any
}, AY.muiName = "Input";
var PY = AY;
var NY;
var LY = [
"children",
"classes",
"className",
"label",
"notched"
];
var DY = pi("fieldset", { shouldForwardProp: ui })({
textAlign: "left",
position: "absolute",
bottom: 0,
right: 0,
top: -5,
left: 0,
margin: 0,
padding: "0 8px",
pointerEvents: "none",
borderRadius: "inherit",
borderStyle: "solid",
borderWidth: 1,
overflow: "hidden",
minWidth: "0%"
});
var jY = pi("legend", { shouldForwardProp: ui })(({ ownerState: e, theme: t }) => _({
float: "unset",
width: "auto",
overflow: "hidden"
}, !e.withLabel && {
padding: 0,
lineHeight: "11px",
transition: t.transitions.create("width", {
duration: 150,
easing: t.transitions.easing.easeOut
})
}, e.withLabel && _({
display: "block",
padding: 0,
height: 11,
fontSize: "0.75em",
visibility: "hidden",
maxWidth: .01,
transition: t.transitions.create("max-width", {
duration: 50,
easing: t.transitions.easing.easeOut
}),
whiteSpace: "nowrap",
"& > span": {
paddingLeft: 5,
paddingRight: 5,
display: "inline-block",
opacity: 0,
visibility: "visible"
}
}, e.notched && {
maxWidth: "100%",
transition: t.transitions.create("max-width", {
duration: 100,
easing: t.transitions.easing.easeOut,
delay: 50
})
})));
function FY(t) {
const { className: r, label: n, notched: o } = t, i = w(t, LY), s = null != n && "" !== n, a = _({}, t, {
notched: o,
withLabel: s
});
return (0, import_jsx_runtime.jsx)(DY, _({
"aria-hidden": !0,
className: r,
ownerState: a
}, i, { children: (0, import_jsx_runtime.jsx)(jY, {
ownerState: a,
children: s ? (0, import_jsx_runtime.jsx)("span", { children: n }) : NY || (NY = (0, import_jsx_runtime.jsx)("span", {
className: "notranslate",
children: ""
}))
}) }));
}
FY.propTypes = {
children: ee.node,
classes: ee.object,
className: ee.string,
label: ee.node,
notched: ee.bool.isRequired,
style: ee.object
};
var $Y = [
"components",
"fullWidth",
"inputComponent",
"label",
"multiline",
"notched",
"slots",
"type"
];
var BY = pi(qG, {
shouldForwardProp: (e) => ui(e) || "classes" === e,
name: "MuiOutlinedInput",
slot: "Root",
overridesResolver: VG
})(({ theme: e, ownerState: t }) => {
const r = "light" === e.palette.mode ? "rgba(0, 0, 0, 0.23)" : "rgba(255, 255, 255, 0.23)";
return _({
position: "relative",
borderRadius: (e.vars || e).shape.borderRadius,
[`&:hover .${JG.notchedOutline}`]: { borderColor: (e.vars || e).palette.text.primary },
"@media (hover: none)": { [`&:hover .${JG.notchedOutline}`]: { borderColor: e.vars ? `rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)` : r } },
[`&.${JG.focused} .${JG.notchedOutline}`]: {
borderColor: (e.vars || e).palette[t.color].main,
borderWidth: 2
},
[`&.${JG.error} .${JG.notchedOutline}`]: { borderColor: (e.vars || e).palette.error.main },
[`&.${JG.disabled} .${JG.notchedOutline}`]: { borderColor: (e.vars || e).palette.action.disabled }
}, t.startAdornment && { paddingLeft: 14 }, t.endAdornment && { paddingRight: 14 }, t.multiline && _({ padding: "16.5px 14px" }, "small" === t.size && { padding: "8.5px 14px" }));
});
var zY = pi(FY, {
name: "MuiOutlinedInput",
slot: "NotchedOutline",
overridesResolver: (e, t) => t.notchedOutline
})(({ theme: e }) => {
const t = "light" === e.palette.mode ? "rgba(0, 0, 0, 0.23)" : "rgba(255, 255, 255, 0.23)";
return { borderColor: e.vars ? `rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)` : t };
});
var VY = pi(WG, {
name: "MuiOutlinedInput",
slot: "Input",
overridesResolver: UG
})(({ theme: e, ownerState: t }) => _({ padding: "16.5px 14px" }, !e.vars && { "&:-webkit-autofill": {
WebkitBoxShadow: "light" === e.palette.mode ? null : "0 0 0 100px #266798 inset",
WebkitTextFillColor: "light" === e.palette.mode ? null : "#fff",
caretColor: "light" === e.palette.mode ? null : "#fff",
borderRadius: "inherit"
} }, e.vars && {
"&:-webkit-autofill": { borderRadius: "inherit" },
[e.getColorSchemeSelector("dark")]: { "&:-webkit-autofill": {
WebkitBoxShadow: "0 0 0 100px #266798 inset",
WebkitTextFillColor: "#fff",
caretColor: "#fff"
} }
}, "small" === t.size && { padding: "8.5px 14px" }, t.multiline && { padding: 0 }, t.startAdornment && { paddingLeft: 0 }, t.endAdornment && { paddingRight: 0 }));
var UY = react.forwardRef(function(r, o) {
var i;
var s;
var a;
var l;
var c;
const u = yi({
props: r,
name: "MuiOutlinedInput"
}), { components: p = {}, fullWidth: d = !1, inputComponent: f = "input", label: h, multiline: m = !1, notched: g, slots: v = {}, type: y = "text" } = u, b = w(u, $Y), x = ((e) => {
const { classes: t } = e;
return _({}, t, ne({
root: ["root"],
notchedOutline: ["notchedOutline"],
input: ["input"]
}, XG, t));
})(u), S = xW(), k = jG({
props: u,
muiFormControl: S,
states: [
"color",
"disabled",
"error",
"focused",
"hiddenLabel",
"size",
"required"
]
}), C = _({}, u, {
color: k.color || "primary",
disabled: k.disabled,
error: k.error,
focused: k.focused,
formControl: S,
fullWidth: d,
hiddenLabel: k.hiddenLabel,
multiline: m,
size: k.size,
type: y
}), O = null != (i = null != (s = v.root) ? s : p.Root) ? i : BY, E = null != (a = null != (l = v.input) ? l : p.Input) ? a : VY;
return (0, import_jsx_runtime.jsx)(KG, _({
slots: {
root: O,
input: E
},
renderSuffix: (r) => (0, import_jsx_runtime.jsx)(zY, {
ownerState: C,
className: x.notchedOutline,
label: null != h && "" !== h && k.required ? c || (c = (0, import_jsx_runtime.jsxs)(react.Fragment, { children: [
h,
" ",
"*"
] })) : h,
notched: void 0 !== g ? g : Boolean(r.startAdornment || r.filled || r.focused)
}),
fullWidth: d,
inputComponent: f,
multiline: m,
ref: o,
type: y
}, b, { classes: _({}, x, { notchedOutline: null }) }));
});
UY.propTypes = {
autoComplete: ee.string,
autoFocus: ee.bool,
classes: ee.object,
color: ee.oneOfType([ee.oneOf(["primary", "secondary"]), ee.string]),
components: ee.shape({
Input: ee.elementType,
Root: ee.elementType
}),
defaultValue: ee.any,
disabled: ee.bool,
endAdornment: ee.node,
error: ee.bool,
fullWidth: ee.bool,
id: ee.string,
inputComponent: ee.elementType,
inputProps: ee.object,
inputRef: sa,
label: ee.node,
margin: ee.oneOf(["dense", "none"]),
maxRows: ee.oneOfType([ee.number, ee.string]),
minRows: ee.oneOfType([ee.number, ee.string]),
multiline: ee.bool,
name: ee.string,
notched: ee.bool,
onChange: ee.func,
placeholder: ee.string,
readOnly: ee.bool,
required: ee.bool,
rows: ee.oneOfType([ee.number, ee.string]),
slots: ee.shape({
input: ee.elementType,
root: ee.elementType
}),
startAdornment: ee.node,
sx: ee.oneOfType([
ee.arrayOf(ee.oneOfType([
ee.func,
ee.object,
ee.bool
])),
ee.func,
ee.object
]),
type: ee.string,
value: ee.any
}, UY.muiName = "Input";
var qY = UY;
function WY(e) {
return Qn("MuiFormLabel", e);
}
var HY = ks("MuiFormLabel", [
"root",
"colorSecondary",
"focused",
"disabled",
"error",
"filled",
"required",
"asterisk"
]);
var GY = [
"children",
"className",
"color",
"component",
"disabled",
"error",
"filled",
"focused",
"required"
];
var KY = pi("label", {
name: "MuiFormLabel",
slot: "Root",
overridesResolver: ({ ownerState: e }, t) => _({}, t.root, "secondary" === e.color && t.colorSecondary, e.filled && t.filled)
})(({ theme: e, ownerState: t }) => _({ color: (e.vars || e).palette.text.secondary }, e.typography.body1, {
lineHeight: "1.4375em",
padding: 0,
position: "relative",
[`&.${HY.focused}`]: { color: (e.vars || e).palette[t.color].main },
[`&.${HY.disabled}`]: { color: (e.vars || e).palette.text.disabled },
[`&.${HY.error}`]: { color: (e.vars || e).palette.error.main }
}));
var YY = pi("span", {
name: "MuiFormLabel",
slot: "Asterisk",
overridesResolver: (e, t) => t.asterisk
})(({ theme: e }) => ({ [`&.${HY.error}`]: { color: (e.vars || e).palette.error.main } }));
var ZY = react.forwardRef(function(e, r) {
const n = yi({
props: e,
name: "MuiFormLabel"
}), { children: o, className: i, component: s = "label" } = n, a = w(n, GY), l = jG({
props: n,
muiFormControl: xW(),
states: [
"color",
"required",
"focused",
"disabled",
"error",
"filled"
]
}), c = _({}, n, {
color: l.color || "primary",
component: s,
disabled: l.disabled,
error: l.error,
filled: l.filled,
focused: l.focused,
required: l.required
}), u = ((e) => {
const { classes: t, color: r, focused: n, disabled: o, error: i, filled: s, required: a } = e;
return ne({
root: [
"root",
`color${bi(r)}`,
o && "disabled",
i && "error",
s && "filled",
n && "focused",
a && "required"
],
asterisk: ["asterisk", i && "error"]
}, WY, t);
})(c);
return (0, import_jsx_runtime.jsxs)(KY, _({
as: s,
ownerState: c,
className: re(u.root, i),
ref: r
}, a, { children: [o, l.required && (0, import_jsx_runtime.jsxs)(YY, {
ownerState: c,
"aria-hidden": !0,
className: u.asterisk,
children: [" ", "*"]
})] }));
});
ZY.propTypes = {
children: ee.node,
classes: ee.object,
className: ee.string,
color: ee.oneOfType([ee.oneOf([
"error",
"info",
"primary",
"secondary",
"success",
"warning"
]), ee.string]),
component: ee.elementType,
disabled: ee.bool,
error: ee.bool,
filled: ee.bool,
focused: ee.bool,
required: ee.bool,
sx: ee.oneOfType([
ee.arrayOf(ee.oneOfType([
ee.func,
ee.object,
ee.bool
])),
ee.func,
ee.object
])
};
var XY = ZY;
function JY(e) {
return Qn("MuiInputLabel", e);
}
ks("MuiInputLabel", [
"root",
"focused",
"disabled",
"error",
"required",
"asterisk",
"formControl",
"sizeSmall",
"shrink",
"animated",
"standard",
"filled",
"outlined"
]);
var QY = [
"disableAnimation",
"margin",
"shrink",
"variant",
"className"
];
var eZ = pi(XY, {
shouldForwardProp: (e) => ui(e) || "classes" === e,
name: "MuiInputLabel",
slot: "Root",
overridesResolver: (e, t) => {
const { ownerState: r } = e;
return [
{ [`& .${HY.asterisk}`]: t.asterisk },
t.root,
r.formControl && t.formControl,
"small" === r.size && t.sizeSmall,
r.shrink && t.shrink,
!r.disableAnimation && t.animated,
r.focused && t.focused,
t[r.variant]
];
}
})(({ theme: e, ownerState: t }) => _({
display: "block",
transformOrigin: "top left",
whiteSpace: "nowrap",
overflow: "hidden",
textOverflow: "ellipsis",
maxWidth: "100%"
}, t.formControl && {
position: "absolute",
left: 0,
top: 0,
transform: "translate(0, 20px) scale(1)"
}, "small" === t.size && { transform: "translate(0, 17px) scale(1)" }, t.shrink && {
transform: "translate(0, -1.5px) scale(0.75)",
transformOrigin: "top left",
maxWidth: "133%"
}, !t.disableAnimation && { transition: e.transitions.create([
"color",
"transform",
"max-width"
], {
duration: e.transitions.duration.shorter,
easing: e.transitions.easing.easeOut
}) }, "filled" === t.variant && _({
zIndex: 1,
pointerEvents: "none",
transform: "translate(12px, 16px) scale(1)",
maxWidth: "calc(100% - 24px)"
}, "small" === t.size && { transform: "translate(12px, 13px) scale(1)" }, t.shrink && _({
userSelect: "none",
pointerEvents: "auto",
transform: "translate(12px, 7px) scale(0.75)",
maxWidth: "calc(133% - 24px)"
}, "small" === t.size && { transform: "translate(12px, 4px) scale(0.75)" })), "outlined" === t.variant && _({
zIndex: 1,
pointerEvents: "none",
transform: "translate(14px, 16px) scale(1)",
maxWidth: "calc(100% - 24px)"
}, "small" === t.size && { transform: "translate(14px, 9px) scale(1)" }, t.shrink && {
userSelect: "none",
pointerEvents: "auto",
maxWidth: "calc(133% - 32px)",
transform: "translate(14px, -9px) scale(0.75)"
})));
var tZ = react.forwardRef(function(t, r) {
const n = yi({
name: "MuiInputLabel",
props: t
}), { disableAnimation: o = !1, shrink: i, className: s } = n, a = w(n, QY), l = xW();
let c = i;
void 0 === c && l && (c = l.filled || l.focused || l.adornedStart);
const u = jG({
props: n,
muiFormControl: l,
states: [
"size",
"variant",
"required",
"focused"
]
});
const p = _({}, n, {
disableAnimation: o,
formControl: l,
shrink: c,
size: u.size,
variant: u.variant,
required: u.required,
focused: u.focused
});
const d = ((e) => {
const { classes: t, formControl: r, size: n, shrink: o, disableAnimation: i, variant: s, required: a } = e;
return _({}, t, ne({
root: [
"root",
r && "formControl",
!i && "animated",
o && "shrink",
n && "normal" !== n && `size${bi(n)}`,
s
],
asterisk: [a && "asterisk"]
}, JY, t));
})(p);
return (0, import_jsx_runtime.jsx)(eZ, _({
"data-shrink": c,
ownerState: p,
ref: r,
className: re(d.root, s)
}, a, { classes: d }));
});
tZ.propTypes = {
children: ee.node,
classes: ee.object,
className: ee.string,
color: ee.oneOfType([ee.oneOf([
"error",
"info",
"primary",
"secondary",
"success",
"warning"
]), ee.string]),
disableAnimation: ee.bool,
disabled: ee.bool,
error: ee.bool,
focused: ee.bool,
margin: ee.oneOf(["dense"]),
required: ee.bool,
shrink: ee.bool,
size: ee.oneOfType([ee.oneOf(["normal", "small"]), ee.string]),
sx: ee.oneOfType([
ee.arrayOf(ee.oneOfType([
ee.func,
ee.object,
ee.bool
])),
ee.func,
ee.object
]),
variant: ee.oneOf([
"filled",
"outlined",
"standard"
])
};
var rZ = tZ;
function nZ(e) {
return Qn("MuiFormHelperText", e);
}
var oZ = ks("MuiFormHelperText", [
"root",
"error",
"disabled",
"sizeSmall",
"sizeMedium",
"contained",
"focused",
"filled",
"required"
]);
var iZ;
var sZ = [
"children",
"className",
"component",
"disabled",
"error",
"filled",
"focused",
"margin",
"required",
"variant"
];
var aZ = pi("p", {
name: "MuiFormHelperText",
slot: "Root",
overridesResolver: (e, t) => {
const { ownerState: r } = e;
return [
t.root,
r.size && t[`size${bi(r.size)}`],
r.contained && t.contained,
r.filled && t.filled
];
}
})(({ theme: e, ownerState: t }) => _({ color: (e.vars || e).palette.text.secondary }, e.typography.caption, {
textAlign: "left",
marginTop: 3,
marginRight: 0,
marginBottom: 0,
marginLeft: 0,
[`&.${oZ.disabled}`]: { color: (e.vars || e).palette.text.disabled },
[`&.${oZ.error}`]: { color: (e.vars || e).palette.error.main }
}, "small" === t.size && { marginTop: 4 }, t.contained && {
marginLeft: 14,
marginRight: 14
}));
var lZ = react.forwardRef(function(t, r) {
const n = yi({
props: t,
name: "MuiFormHelperText"
}), { children: o, className: i, component: s = "p" } = n, a = w(n, sZ), l = jG({
props: n,
muiFormControl: xW(),
states: [
"variant",
"size",
"disabled",
"error",
"filled",
"focused",
"required"
]
}), c = _({}, n, {
component: s,
contained: "filled" === l.variant || "outlined" === l.variant,
variant: l.variant,
size: l.size,
disabled: l.disabled,
error: l.error,
filled: l.filled,
focused: l.focused,
required: l.required
}), u = ((e) => {
const { classes: t, contained: r, size: n, disabled: o, error: i, filled: s, focused: a, required: l } = e;
return ne({ root: [
"root",
o && "disabled",
i && "error",
n && `size${bi(n)}`,
r && "contained",
a && "focused",
s && "filled",
l && "required"
] }, nZ, t);
})(c);
return (0, import_jsx_runtime.jsx)(aZ, _({
as: s,
ownerState: c,
className: re(u.root, i),
ref: r
}, a, { children: " " === o ? iZ || (iZ = (0, import_jsx_runtime.jsx)("span", {
className: "notranslate",
children: ""
})) : o }));
});
lZ.propTypes = {
children: ee.node,
classes: ee.object,
className: ee.string,
component: ee.elementType,
disabled: ee.bool,
error: ee.bool,
filled: ee.bool,
focused: ee.bool,
margin: ee.oneOf(["dense"]),
required: ee.bool,
sx: ee.oneOfType([
ee.arrayOf(ee.oneOfType([
ee.func,
ee.object,
ee.bool
])),
ee.func,
ee.object
]),
variant: ee.oneOfType([ee.oneOf([
"filled",
"outlined",
"standard"
]), ee.string])
};
var cZ = lZ;
function uZ(e) {
return Qn("MuiNativeSelect", e);
}
var pZ = ks("MuiNativeSelect", [
"root",
"select",
"multiple",
"filled",
"outlined",
"standard",
"disabled",
"icon",
"iconOpen",
"iconFilled",
"iconOutlined",
"iconStandard",
"nativeInput",
"error"
]);
var dZ = [
"className",
"disabled",
"error",
"IconComponent",
"inputRef",
"variant"
];
var fZ = ({ ownerState: e, theme: t }) => _({
MozAppearance: "none",
WebkitAppearance: "none",
userSelect: "none",
borderRadius: 0,
cursor: "pointer",
"&:focus": _({}, t.vars ? { backgroundColor: `rgba(${t.vars.palette.common.onBackgroundChannel} / 0.05)` } : { backgroundColor: "light" === t.palette.mode ? "rgba(0, 0, 0, 0.05)" : "rgba(255, 255, 255, 0.05)" }, { borderRadius: 0 }),
"&::-ms-expand": { display: "none" },
[`&.${pZ.disabled}`]: { cursor: "default" },
"&[multiple]": { height: "auto" },
"&:not([multiple]) option, &:not([multiple]) optgroup": { backgroundColor: (t.vars || t).palette.background.paper },
"&&&": {
paddingRight: 24,
minWidth: 16
}
}, "filled" === e.variant && { "&&&": { paddingRight: 32 } }, "outlined" === e.variant && {
borderRadius: (t.vars || t).shape.borderRadius,
"&:focus": { borderRadius: (t.vars || t).shape.borderRadius },
"&&&": { paddingRight: 32 }
});
var hZ = pi("select", {
name: "MuiNativeSelect",
slot: "Select",
shouldForwardProp: ui,
overridesResolver: (e, t) => {
const { ownerState: r } = e;
return [
t.select,
t[r.variant],
r.error && t.error,
{ [`&.${pZ.multiple}`]: t.multiple }
];
}
})(fZ);
var mZ = ({ ownerState: e, theme: t }) => _({
position: "absolute",
right: 0,
top: "calc(50% - .5em)",
pointerEvents: "none",
color: (t.vars || t).palette.action.active,
[`&.${pZ.disabled}`]: { color: (t.vars || t).palette.action.disabled }
}, e.open && { transform: "rotate(180deg)" }, "filled" === e.variant && { right: 7 }, "outlined" === e.variant && { right: 7 });
var gZ = pi("svg", {
name: "MuiNativeSelect",
slot: "Icon",
overridesResolver: (e, t) => {
const { ownerState: r } = e;
return [
t.icon,
r.variant && t[`icon${bi(r.variant)}`],
r.open && t.iconOpen
];
}
})(mZ);
var vZ = react.forwardRef(function(r, o) {
const { className: i, disabled: s, error: a, IconComponent: l, inputRef: c, variant: u = "standard" } = r, p = w(r, dZ), d = _({}, r, {
disabled: s,
variant: u,
error: a
}), f = ((e) => {
const { classes: t, variant: r, disabled: n, multiple: o, open: i, error: s } = e;
return ne({
select: [
"select",
r,
n && "disabled",
o && "multiple",
s && "error"
],
icon: [
"icon",
`icon${bi(r)}`,
i && "iconOpen",
n && "disabled"
]
}, uZ, t);
})(d);
return (0, import_jsx_runtime.jsxs)(react.Fragment, { children: [(0, import_jsx_runtime.jsx)(hZ, _({
ownerState: d,
className: re(f.select, i),
disabled: s,
ref: c || o
}, p)), r.multiple ? null : (0, import_jsx_runtime.jsx)(gZ, {
as: l,
ownerState: d,
className: f.icon
})] });
});
vZ.propTypes = {
children: ee.node,
classes: ee.object,
className: ee.string,
disabled: ee.bool,
error: ee.bool,
IconComponent: ee.elementType.isRequired,
inputRef: sa,
multiple: ee.bool,
name: ee.string,
onChange: ee.func,
value: ee.any,
variant: ee.oneOf([
"standard",
"outlined",
"filled"
])
};
var yZ = vZ;
function bZ(e) {
return Qn("MuiSelect", e);
}
var wZ = ks("MuiSelect", [
"root",
"select",
"multiple",
"filled",
"outlined",
"standard",
"disabled",
"focused",
"icon",
"iconOpen",
"iconFilled",
"iconOutlined",
"iconStandard",
"nativeInput",
"error"
]);
var _Z;
var xZ = [
"aria-describedby",
"aria-label",
"autoFocus",
"autoWidth",
"children",
"className",
"defaultOpen",
"defaultValue",
"disabled",
"displayEmpty",
"error",
"IconComponent",
"inputRef",
"labelId",
"MenuProps",
"multiple",
"name",
"onBlur",
"onChange",
"onClose",
"onFocus",
"onOpen",
"open",
"readOnly",
"renderValue",
"SelectDisplayProps",
"tabIndex",
"type",
"value",
"variant"
];
var SZ = pi("div", {
name: "MuiSelect",
slot: "Select",
overridesResolver: (e, t) => {
const { ownerState: r } = e;
return [
{ [`&.${wZ.select}`]: t.select },
{ [`&.${wZ.select}`]: t[r.variant] },
{ [`&.${wZ.error}`]: t.error },
{ [`&.${wZ.multiple}`]: t.multiple }
];
}
})(fZ, { [`&.${wZ.select}`]: {
height: "auto",
minHeight: "1.4375em",
textOverflow: "ellipsis",
whiteSpace: "nowrap",
overflow: "hidden"
} });
var kZ = pi("svg", {
name: "MuiSelect",
slot: "Icon",
overridesResolver: (e, t) => {
const { ownerState: r } = e;
return [
t.icon,
r.variant && t[`icon${bi(r.variant)}`],
r.open && t.iconOpen
];
}
})(mZ);
var CZ = pi("input", {
shouldForwardProp: (e) => ci(e) && "classes" !== e,
name: "MuiSelect",
slot: "NativeInput",
overridesResolver: (e, t) => t.nativeInput
})({
bottom: 0,
left: 0,
position: "absolute",
opacity: 0,
pointerEvents: "none",
width: "100%",
boxSizing: "border-box"
});
function OZ(e, t) {
return "object" == typeof t && null !== t ? e === t : String(e) === String(t);
}
function EZ(e) {
return null == e || "string" == typeof e && !e.trim();
}
var TZ = react.forwardRef(function(r, o) {
var i;
const { "aria-describedby": s, "aria-label": a, autoFocus: l, autoWidth: c, children: u, className: p, defaultOpen: d, defaultValue: f, disabled: h, displayEmpty: m, error: g = !1, IconComponent: v, inputRef: y, labelId: b, MenuProps: x = {}, multiple: S, name: k, onBlur: C, onChange: O, onClose: E, onFocus: T, onOpen: R, open: I, readOnly: M, renderValue: A, SelectDisplayProps: P = {}, tabIndex: N, value: L, variant: D = "standard" } = r, j = w(r, xZ), [F, $] = of({
controlled: L,
default: f,
name: "Select"
}), [B, z] = of({
controlled: I,
default: d,
name: "Select"
}), V = react.useRef(null), U = react.useRef(null), [q, W] = react.useState(null), { current: H } = react.useRef(null != I), [G, K] = react.useState(), Y = ca(o, y), Z = react.useCallback((e) => {
U.current = e, e && W(e);
}, []), X = null == q ? void 0 : q.parentNode;
react.useImperativeHandle(Y, () => ({
focus: () => {
U.current.focus();
},
node: V.current,
value: F
}), [F]), react.useEffect(() => {
d && B && q && !H && (K(c ? null : X.clientWidth), U.current.focus());
}, [q, c]), react.useEffect(() => {
l && U.current.focus();
}, [l]), react.useEffect(() => {
if (!b) return;
const e = Qd(U.current).getElementById(b);
if (e) {
const t = () => {
getSelection().isCollapsed && U.current.focus();
};
return e.addEventListener("click", t), () => {
e.removeEventListener("click", t);
};
}
}, [b]);
const J = (e, t) => {
e ? R && R(t) : E && E(t), H || (K(c ? null : X.clientWidth), z(e));
};
const Q = react.Children.toArray(u);
const ee = (e) => (t) => {
let r;
if (t.currentTarget.hasAttribute("tabindex")) {
if (S) {
r = Array.isArray(F) ? F.slice() : [];
const t = F.indexOf(e.props.value);
-1 === t ? r.push(e.props.value) : r.splice(t, 1);
} else r = e.props.value;
if (e.props.onClick && e.props.onClick(t), F !== r && ($(r), O)) {
const n = t.nativeEvent || t;
const o = new n.constructor(n.type, n);
Object.defineProperty(o, "target", {
writable: !0,
value: {
value: r,
name: k
}
}), O(o, e);
}
S || J(!1, t);
}
};
const te = null !== q && B;
let oe;
let ie;
delete j["aria-invalid"];
const se = [];
let ae = !1;
let le = !1;
(hW({ value: F }) || m) && (A ? oe = A(F) : ae = !0);
const ce = Q.map((e) => {
if (!react.isValidElement(e)) return null;
let t;
if (jd.isFragment(e) && console.error(["MUI: The Select component doesn't accept a Fragment as a child.", "Consider providing an array instead."].join("\n")), S) {
if (!Array.isArray(F)) throw new Error("MUI: The `value` prop must be an array when using the `Select` component with `multiple`.");
t = F.some((t) => OZ(t, e.props.value)), t && ae && se.push(e.props.children);
} else t = OZ(F, e.props.value), t && ae && (ie = e.props.children);
return t && (le = !0), react.cloneElement(e, {
"aria-selected": t ? "true" : "false",
onClick: ee(e),
onKeyUp: (t) => {
" " === t.key && t.preventDefault(), e.props.onKeyUp && e.props.onKeyUp(t);
},
role: "option",
selected: t,
value: void 0,
"data-value": e.props.value
});
});
react.useEffect(() => {
if (!le && !S && "" !== F) {
const e = Q.map((e) => e.props.value);
console.warn([
`MUI: You have provided an out-of-range value \`${F}\` for the select ${k ? `(name="${k}") ` : ""}component.`,
"Consider providing a value that matches one of the available options or ''.",
`The available values are ${e.filter((e) => null != e).map((e) => `\`${e}\``).join(", ") || "\"\""}.`
].join("\n"));
}
}, [
le,
Q,
S,
k,
F
]), ae && (oe = S ? 0 === se.length ? null : se.reduce((e, t, r) => (e.push(t), r < se.length - 1 && e.push(", "), e), []) : ie);
let ue;
let pe = G;
!c && H && q && (pe = X.clientWidth), ue = void 0 !== N ? N : h ? null : 0;
const de = P.id || (k ? `mui-component-select-${k}` : void 0);
const fe = _({}, r, {
variant: D,
value: F,
open: te,
error: g
});
const he = ((e) => {
const { classes: t, variant: r, disabled: n, multiple: o, open: i, error: s } = e;
return ne({
select: [
"select",
r,
n && "disabled",
o && "multiple",
s && "error"
],
icon: [
"icon",
`icon${bi(r)}`,
i && "iconOpen",
n && "disabled"
],
nativeInput: ["nativeInput"]
}, bZ, t);
})(fe);
const me = _({}, x.PaperProps, null == (i = x.slotProps) ? void 0 : i.paper);
const ge = nf();
return (0, import_jsx_runtime.jsxs)(react.Fragment, { children: [
(0, import_jsx_runtime.jsx)(SZ, _({
ref: Z,
tabIndex: ue,
role: "combobox",
"aria-controls": ge,
"aria-disabled": h ? "true" : void 0,
"aria-expanded": te ? "true" : "false",
"aria-haspopup": "listbox",
"aria-label": a,
"aria-labelledby": [b, de].filter(Boolean).join(" ") || void 0,
"aria-describedby": s,
onKeyDown: (e) => {
M || -1 !== [
" ",
"ArrowUp",
"ArrowDown",
"Enter"
].indexOf(e.key) && (e.preventDefault(), J(!0, e));
},
onMouseDown: h || M ? null : (e) => {
0 === e.button && (e.preventDefault(), U.current.focus(), J(!0, e));
},
onBlur: (e) => {
!te && C && (Object.defineProperty(e, "target", {
writable: !0,
value: {
value: F,
name: k
}
}), C(e));
},
onFocus: T
}, P, {
ownerState: fe,
className: re(P.className, he.select, p),
id: de,
children: EZ(oe) ? _Z || (_Z = (0, import_jsx_runtime.jsx)("span", {
className: "notranslate",
children: ""
})) : oe
})),
(0, import_jsx_runtime.jsx)(CZ, _({
"aria-invalid": g,
value: Array.isArray(F) ? F.join(",") : F,
name: k,
ref: V,
"aria-hidden": !0,
onChange: (e) => {
const t = Q.find((t) => t.props.value === e.target.value);
void 0 !== t && ($(t.props.value), O && O(e, t));
},
tabIndex: -1,
disabled: h,
className: he.nativeInput,
autoFocus: l,
ownerState: fe
}, j)),
(0, import_jsx_runtime.jsx)(kZ, {
as: v,
className: he.icon,
ownerState: fe
}),
(0, import_jsx_runtime.jsx)(Ch, _({
id: `menu-${k || ""}`,
anchorEl: X,
open: te,
onClose: (e) => {
J(!1, e);
},
anchorOrigin: {
vertical: "bottom",
horizontal: "center"
},
transformOrigin: {
vertical: "top",
horizontal: "center"
}
}, x, {
MenuListProps: _({
"aria-labelledby": b,
role: "listbox",
"aria-multiselectable": S ? "true" : void 0,
disableListWrap: !0,
id: ge
}, x.MenuListProps),
slotProps: _({}, x.slotProps, { paper: _({}, me, { style: _({ minWidth: pe }, null != me ? me.style : null) }) }),
children: ce
}))
] });
});
TZ.propTypes = {
"aria-describedby": ee.string,
"aria-label": ee.string,
autoFocus: ee.bool,
autoWidth: ee.bool,
children: ee.node,
classes: ee.object,
className: ee.string,
defaultOpen: ee.bool,
defaultValue: ee.any,
disabled: ee.bool,
displayEmpty: ee.bool,
error: ee.bool,
IconComponent: ee.elementType.isRequired,
inputRef: sa,
labelId: ee.string,
MenuProps: ee.object,
multiple: ee.bool,
name: ee.string,
onBlur: ee.func,
onChange: ee.func,
onClose: ee.func,
onFocus: ee.func,
onOpen: ee.func,
open: ee.bool,
readOnly: ee.bool,
renderValue: ee.func,
SelectDisplayProps: ee.object,
tabIndex: ee.oneOfType([ee.number, ee.string]),
type: ee.any,
value: ee.any,
variant: ee.oneOf([
"standard",
"outlined",
"filled"
])
};
var RZ = TZ;
var IZ = [
"autoWidth",
"children",
"classes",
"className",
"defaultOpen",
"displayEmpty",
"IconComponent",
"id",
"input",
"inputProps",
"label",
"labelId",
"MenuProps",
"multiple",
"native",
"onClose",
"onOpen",
"open",
"renderValue",
"SelectDisplayProps",
"variant"
];
var MZ = ["root"];
var AZ = {
name: "MuiSelect",
overridesResolver: (e, t) => t.root,
shouldForwardProp: (e) => ui(e) && "variant" !== e,
slot: "Root"
};
var PZ = pi(TY, AZ)("");
var NZ = pi(qY, AZ)("");
var LZ = pi(PY, AZ)("");
var DZ = react.forwardRef(function(t, r) {
const o = yi({
name: "MuiSelect",
props: t
}), { autoWidth: i = !1, children: s, classes: a = {}, className: l, defaultOpen: c = !1, displayEmpty: u = !1, IconComponent: p = rK, id: d, input: f, inputProps: h, label: m, labelId: g, MenuProps: v, multiple: y = !1, native: b = !1, onClose: x, onOpen: S, open: k, renderValue: C, SelectDisplayProps: O, variant: E = "outlined" } = o, T = w(o, IZ), R = b ? yZ : RZ, I = jG({
props: o,
muiFormControl: xW(),
states: ["variant", "error"]
}), M = I.variant || E, A = _({}, o, {
variant: M,
classes: a
}), P = ((e) => {
const { classes: t } = e;
return t;
})(A), N = w(P, MZ), L = f || {
standard: (0, import_jsx_runtime.jsx)(PZ, { ownerState: A }),
outlined: (0, import_jsx_runtime.jsx)(NZ, {
label: m,
ownerState: A
}),
filled: (0, import_jsx_runtime.jsx)(LZ, { ownerState: A })
}[M], D = ca(r, L.ref);
return (0, import_jsx_runtime.jsx)(react.Fragment, { children: react.cloneElement(L, _({
inputComponent: R,
inputProps: _({
children: s,
error: I.error,
IconComponent: p,
variant: M,
type: void 0,
multiple: y
}, b ? { id: d } : {
autoWidth: i,
defaultOpen: c,
displayEmpty: u,
labelId: g,
MenuProps: v,
onClose: x,
onOpen: S,
open: k,
renderValue: C,
SelectDisplayProps: _({ id: d }, O)
}, h, { classes: h ? Yn(N, h.classes) : N }, f ? f.props.inputProps : {})
}, (y && b || u) && "outlined" === M ? { notched: !0 } : {}, {
ref: D,
className: re(L.props.className, l, P.root)
}, !f && { variant: M }, T)) });
});
DZ.propTypes = {
autoWidth: ee.bool,
children: ee.node,
classes: ee.object,
className: ee.string,
defaultOpen: ee.bool,
defaultValue: ee.any,
displayEmpty: ee.bool,
IconComponent: ee.elementType,
id: ee.string,
input: ee.element,
inputProps: ee.object,
label: ee.node,
labelId: ee.string,
MenuProps: ee.object,
multiple: ee.bool,
native: ee.bool,
onChange: ee.func,
onClose: ee.func,
onOpen: ee.func,
open: ee.bool,
renderValue: ee.func,
SelectDisplayProps: ee.object,
sx: ee.oneOfType([
ee.arrayOf(ee.oneOfType([
ee.func,
ee.object,
ee.bool
])),
ee.func,
ee.object
]),
value: ee.oneOfType([ee.oneOf([""]), ee.any]),
variant: ee.oneOf([
"filled",
"outlined",
"standard"
])
}, DZ.muiName = "Select";
var jZ = DZ;
function FZ(e) {
return Qn("MuiTextField", e);
}
ks("MuiTextField", ["root"]);
var $Z = [
"autoComplete",
"autoFocus",
"children",
"className",
"color",
"defaultValue",
"disabled",
"error",
"FormHelperTextProps",
"fullWidth",
"helperText",
"id",
"InputLabelProps",
"inputProps",
"InputProps",
"inputRef",
"label",
"maxRows",
"minRows",
"multiline",
"name",
"onBlur",
"onChange",
"onFocus",
"placeholder",
"required",
"rows",
"select",
"SelectProps",
"type",
"value",
"variant"
];
var BZ = {
standard: TY,
filled: PY,
outlined: qY
};
var zZ = pi(_W, {
name: "MuiTextField",
slot: "Root",
overridesResolver: (e, t) => t.root
})({});
var VZ = react.forwardRef(function(r, n) {
const o = yi({
props: r,
name: "MuiTextField"
}), { autoComplete: i, autoFocus: s = !1, children: a, className: l, color: c = "primary", defaultValue: u, disabled: p = !1, error: d = !1, FormHelperTextProps: f, fullWidth: h = !1, helperText: m, id: g, InputLabelProps: v, inputProps: y, InputProps: b, inputRef: x, label: S, maxRows: k, minRows: C, multiline: O = !1, name: E, onBlur: T, onChange: R, onFocus: I, placeholder: M, required: A = !1, rows: P, select: N = !1, SelectProps: L, type: D, value: j, variant: F = "outlined" } = o, $ = w(o, $Z), B = _({}, o, {
autoFocus: s,
color: c,
disabled: p,
error: d,
fullWidth: h,
multiline: O,
required: A,
select: N,
variant: F
}), z = ((e) => {
const { classes: t } = e;
return ne({ root: ["root"] }, FZ, t);
})(B);
N && !a && console.error("MUI: `children` must be passed when using the `TextField` component with `select`.");
const V = {};
"outlined" === F && (v && void 0 !== v.shrink && (V.notched = v.shrink), V.label = S), N && (L && L.native || (V.id = void 0), V["aria-describedby"] = void 0);
const U = nf(g);
const q = m && U ? `${U}-helper-text` : void 0;
const W = S && U ? `${U}-label` : void 0;
const H = (0, import_jsx_runtime.jsx)(BZ[F], _({
"aria-describedby": q,
autoComplete: i,
autoFocus: s,
defaultValue: u,
fullWidth: h,
multiline: O,
name: E,
rows: P,
maxRows: k,
minRows: C,
type: D,
value: j,
id: U,
inputRef: x,
onBlur: T,
onChange: R,
onFocus: I,
placeholder: M,
inputProps: y
}, V, b));
return (0, import_jsx_runtime.jsxs)(zZ, _({
className: re(z.root, l),
disabled: p,
error: d,
fullWidth: h,
ref: n,
required: A,
color: c,
variant: F,
ownerState: B
}, $, { children: [
null != S && "" !== S && (0, import_jsx_runtime.jsx)(rZ, _({
htmlFor: U,
id: W
}, v, { children: S })),
N ? (0, import_jsx_runtime.jsx)(jZ, _({
"aria-describedby": q,
id: U,
labelId: W,
value: j,
input: H
}, L, { children: a })) : H,
m && (0, import_jsx_runtime.jsx)(cZ, _({ id: q }, f, { children: m }))
] }));
});
VZ.propTypes = {
autoComplete: ee.string,
autoFocus: ee.bool,
children: ee.node,
classes: ee.object,
className: ee.string,
color: ee.oneOfType([ee.oneOf([
"primary",
"secondary",
"error",
"info",
"success",
"warning"
]), ee.string]),
defaultValue: ee.any,
disabled: ee.bool,
error: ee.bool,
FormHelperTextProps: ee.object,
fullWidth: ee.bool,
helperText: ee.node,
id: ee.string,
InputLabelProps: ee.object,
inputProps: ee.object,
InputProps: ee.object,
inputRef: sa,
label: ee.node,
margin: ee.oneOf([
"dense",
"none",
"normal"
]),
maxRows: ee.oneOfType([ee.number, ee.string]),
minRows: ee.oneOfType([ee.number, ee.string]),
multiline: ee.bool,
name: ee.string,
onBlur: ee.func,
onChange: ee.func,
onFocus: ee.func,
placeholder: ee.string,
required: ee.bool,
rows: ee.oneOfType([ee.number, ee.string]),
select: ee.bool,
SelectProps: ee.object,
size: ee.oneOfType([ee.oneOf(["medium", "small"]), ee.string]),
sx: ee.oneOfType([
ee.arrayOf(ee.oneOfType([
ee.func,
ee.object,
ee.bool
])),
ee.func,
ee.object
]),
type: ee.string,
value: ee.any,
variant: ee.oneOf([
"filled",
"outlined",
"standard"
])
};
var UZ = VZ;
var qZ = react.default.forwardRef((e, t) => react.default.createElement(ru, _objectSpread2(_objectSpread2({ viewBox: "0 0 24 24" }, e), {}, { ref: t }), react.default.createElement("path", {
fillRule: "evenodd",
clipRule: "evenodd",
d: "M5.46967 9.21967C5.76256 8.92678 6.23744 8.92678 6.53033 9.21967L12 14.6893L17.4697 9.21967C17.7626 8.92678 18.2374 8.92678 18.5303 9.21967C18.8232 9.51256 18.8232 9.98744 18.5303 10.2803L12.5303 16.2803C12.2374 16.5732 11.7626 16.5732 11.4697 16.2803L5.46967 10.2803C5.17678 9.98744 5.17678 9.51256 5.46967 9.21967Z"
})));
react.default.forwardRef((e, t) => {
const { MenuProps: r = {} } = e, n = _objectWithoutProperties(e, _excluded20);
return react.default.createElement(jZ, _objectSpread2(_objectSpread2({}, n), {}, {
MenuProps: _objectSpread2(_objectSpread2({}, r), {}, { MenuListProps: _objectSpread2({ dense: "tiny" === n.size }, r.MenuListProps || {}) }),
ref: t
}));
}).defaultProps = { IconComponent: qZ };
var HZ = Il(react.default.forwardRef((e, t) => {
var _l$SelectProps;
var _l$SelectProps2;
var _l$inputProps$maxLeng;
var _l$inputProps;
var _l$inputProps3;
const { enableCounter: r } = e, n = _objectWithoutProperties(e, _excluded21), [i, s] = react.default.useState(0), a = react.default.useRef(null), l = _objectSpread2({}, n);
l.select && (l.SelectProps = _objectSpread2({ IconComponent: qZ }, l.SelectProps || {}), "tiny" === l.size && (l.SelectProps.MenuProps = _objectSpread2(_objectSpread2({}, ((_l$SelectProps = l.SelectProps) === null || _l$SelectProps === void 0 ? void 0 : _l$SelectProps.MenuProps) || {}), {}, { MenuListProps: _objectSpread2({ dense: !0 }, ((_l$SelectProps2 = l.SelectProps) === null || _l$SelectProps2 === void 0 || (_l$SelectProps2 = _l$SelectProps2.MenuProps) === null || _l$SelectProps2 === void 0 ? void 0 : _l$SelectProps2.MenuListProps) || {}) }))), "tiny" === l.size && (l.InputLabelProps = _objectSpread2({ size: "tiny" }, l.InputLabelProps || {})), r && (l.inputProps = _objectSpread2(_objectSpread2({}, l.inputProps || {}), {}, { maxLength: (_l$inputProps$maxLeng = (_l$inputProps = l.inputProps) === null || _l$inputProps === void 0 ? void 0 : _l$inputProps.maxLength) !== null && _l$inputProps$maxLeng !== void 0 ? _l$inputProps$maxLeng : 100 }));
const c = react.default.useMemo(() => {
var _l$inputProps$maxLeng2;
var _l$inputProps2;
return r ? react.default.createElement(zs, {
direction: "row",
justifyContent: "space-between",
gap: 1
}, l.helperText, react.default.createElement(na, {
variant: "caption",
color: "text.secondary",
sx: { whiteSpace: "nowrap" }
}, i, " / ", (_l$inputProps$maxLeng2 = (_l$inputProps2 = l.inputProps) === null || _l$inputProps2 === void 0 ? void 0 : _l$inputProps2.maxLength) !== null && _l$inputProps$maxLeng2 !== void 0 ? _l$inputProps$maxLeng2 : 0)) : l.helperText;
}, [
i,
r,
l.helperText,
(_l$inputProps3 = l.inputProps) === null || _l$inputProps3 === void 0 ? void 0 : _l$inputProps3.maxLength
]);
const u = react.default.useCallback((e) => {
a.current = e;
const t = l.inputRef;
"function" == typeof t ? t(e) : t && (t.current = e);
}, [l.inputRef]);
return react.default.useEffect(() => {
if (!r) return;
const e = a.current;
if (!e) return;
const t = () => {
void 0 === l.value || null === l.value || "string" == typeof l.value ? s(e.value.length) : s(0);
};
return t(), e.addEventListener("input", t), () => e.removeEventListener("input", t);
}, [r, l.value]), react.default.createElement(UZ, _objectSpread2(_objectSpread2({}, l), {}, {
helperText: c,
inputRef: u,
ref: t
}));
}))`
width: 100%;
.wp-admin & .MuiInputBase-input,
& .MuiInputBase-input:focus {
background-color: inherit;
border: unset;
box-shadow: none;
min-height: initial;
color: inherit;
outline: 0;
padding: ${({ $isWrapped: e, $noPadding: t, theme: r }) => t ? "0" : e ? `${r.spacing(1)} ${r.spacing(.5)}` : `${r.spacing(2)} ${r.spacing(1.5)}`};
}
`;
var GZ = (_ref32) => {
let { isWrapped: t, noPadding: r } = _ref32, n = _objectWithoutProperties(_ref32, _excluded22);
return (0, import_jsx_runtime.jsx)(HZ, _objectSpread2(_objectSpread2({}, n), {}, {
$isWrapped: t,
$noPadding: r
}));
};
var KZ = function(e) {
return e.EN = "en", e.DE = "de", e.ES = "es", e.IT = "it", e.NL = "nl", e.PT = "pt-PT", e.PT_BR = "pt-BR", e.FR = "fr", e.HE = "he-IL", e;
}({});
var YZ = ({ open: r, onClose: n, colorScheme: i = "light" }) => {
const { t: s } = vd("send-feedback", { i18n: Jh }), { SUPPORT_FORM_URL: a } = GB(), { control: l, handleSubmit: c, reset: u, formState: { isValid: d } } = function(e = {}) {
const t = react.default.useRef(void 0), r = react.default.useRef(void 0), [n, i] = react.default.useState({
isDirty: !1,
isValidating: !1,
isLoading: rq(e.defaultValues),
isSubmitted: !1,
isSubmitting: !1,
isSubmitSuccessful: !1,
isValid: !1,
submitCount: 0,
dirtyFields: {},
touchedFields: {},
validatingFields: {},
errors: e.errors || {},
disabled: e.disabled || !1,
isReady: !1,
defaultValues: rq(e.defaultValues) ? void 0 : e.defaultValues
});
if (!t.current) if (e.formControl) t.current = _objectSpread2(_objectSpread2({}, e.formControl), {}, { formState: n }), e.defaultValues && !rq(e.defaultValues) && e.formControl.reset(e.defaultValues, e.resetOptions);
else {
const _Pq = Pq(e), { formControl: r } = _Pq;
t.current = _objectSpread2(_objectSpread2({}, _objectWithoutProperties(_Pq, _excluded23)), {}, { formState: n });
}
const s = t.current.control;
return s._options = e, WU(() => {
const e = s._subscribe({
formState: s._proxyFormState,
callback: () => i(_objectSpread2({}, s._formState)),
reRenderRoot: !0
});
return i((e) => _objectSpread2(_objectSpread2({}, e), {}, { isReady: !0 })), s._formState.isReady = !0, e;
}, [s]), react.default.useEffect(() => s._disableForm(e.disabled), [s, e.disabled]), react.default.useEffect(() => {
e.mode && (s._options.mode = e.mode), e.reValidateMode && (s._options.reValidateMode = e.reValidateMode);
}, [
s,
e.mode,
e.reValidateMode
]), react.default.useEffect(() => {
e.errors && (s._setErrors(e.errors), s._focusError());
}, [s, e.errors]), react.default.useEffect(() => {
e.shouldUnregister && s._subjects.state.next({ values: s._getWatch() });
}, [s, e.shouldUnregister]), react.default.useEffect(() => {
if (s._proxyFormState.isDirty) {
const e = s._getDirty();
e !== n.isDirty && s._subjects.state.next({ isDirty: e });
}
}, [s, n.isDirty]), react.default.useEffect(() => {
e.values && !YU(e.values, r.current) ? (s._reset(e.values, _objectSpread2({ keepFieldsRef: !0 }, s._options.resetOptions)), r.current = e.values, i((e) => _objectSpread2({}, e))) : s._resetDefaultValues();
}, [s, e.values]), react.default.useEffect(() => {
s._state.mount || (s._setValid(), s._state.mount = !0), s._state.watch && (s._state.watch = !1, s._subjects.state.next(_objectSpread2({}, s._formState))), s._removeUnmounted();
}), t.current.formState = qU(n, s), t.current;
}({
defaultValues: {
product: "",
subject: "",
title: "",
description: ""
},
mode: "onChange"
}), { mutateAsync: f, isPending: m } = dy({ mutationFn: (e) => x_.sendFeedback(e) }), { data: g } = py({
queryKey: ["countryCode"],
queryFn: () => k_.getCountryCode(),
staleTime: Infinity,
gcTime: Infinity
}), [v, y] = (0, react.useState)(null), b = (0, react.useMemo)(() => [
{
label: s("dialog.products.general"),
value: "GENERAL"
},
{
label: s("dialog.products.editor"),
value: "EDITOR"
},
{
label: s("dialog.products.imageOptimization"),
value: "IO"
},
{
label: s("dialog.products.accessibility"),
value: "ALLY"
},
{
label: s("dialog.products.emailDeliverability"),
value: "SM"
},
{
label: s("dialog.products.siteManagement"),
value: "MANAGE"
},
{
label: s("dialog.products.cookieConsent"),
value: "COOKIEZ"
}
], [s]), w = (0, react.useMemo)(() => [
{
label: s("dialog.subjects.leaveFeedback"),
value: s("dialog.subjects.leaveFeedback", { lng: KZ.EN })
},
{
label: s("dialog.subjects.reportBug"),
value: s("dialog.subjects.reportBug", { lng: KZ.EN })
},
{
label: s("dialog.subjects.requestFeature"),
value: s("dialog.subjects.requestFeature", { lng: KZ.EN })
},
{
label: s("dialog.subjects.shareThoughts"),
value: s("dialog.subjects.shareThoughts", { lng: KZ.EN })
}
], [s]), _ = () => {
u(), n();
};
return (0, import_jsx_runtime.jsxs)(Hc, {
colorScheme: i,
children: [(0, import_jsx_runtime.jsxs)(Wq, {
onClose: _,
open: r,
maxWidth: "sm",
fullWidth: !0,
"data-test": "send-feedback-dialog",
children: [(0, import_jsx_runtime.jsx)(zW, {
logo: !1,
onClose: _,
children: (0, import_jsx_runtime.jsx)(dW, {
color: "text.primary",
variant: "subtitle1",
children: s("dialog.title")
})
}), (0, import_jsx_runtime.jsxs)(Xz, {
component: "form",
onSubmit: c((e) => {
f(_objectSpread2(_objectSpread2({}, e), {}, { countryCode: g }), {
onSuccess: () => {
_(), y({
type: "success",
message: s("tooltipSuccess")
});
},
onError: () => {
y({
type: "error",
message: s("tooltipError")
});
}
});
}),
children: [(0, import_jsx_runtime.jsx)(Qq, {
sx: { px: 3 },
dividers: !0,
children: (0, import_jsx_runtime.jsxs)(zs, {
gap: 2,
children: [
(0, import_jsx_runtime.jsx)(ZU, {
name: "product",
control: l,
render: ({ field: { onChange: t, value: r } }) => (0, import_jsx_runtime.jsx)(CK, {
multiple: !1,
options: b,
value: b.find((e) => e.value === r) || null,
onChange: (e, r) => t((r === null || r === void 0 ? void 0 : r.value) || ""),
renderInput: (t) => (0, import_jsx_runtime.jsx)(GZ, _objectSpread2(_objectSpread2({ "data-test": "product-send-feedback-input" }, t), {}, {
isWrapped: !0,
placeholder: s("dialog.fieldProductPlaceholder"),
color: "secondary"
}))
})
}),
(0, import_jsx_runtime.jsx)(ZU, {
name: "subject",
control: l,
render: ({ field: { onChange: t, value: r } }) => (0, import_jsx_runtime.jsx)(CK, {
multiple: !1,
options: w,
value: w.find((e) => e.value === r) || null,
onChange: (e, r) => t((r === null || r === void 0 ? void 0 : r.value) || ""),
renderInput: (t) => (0, import_jsx_runtime.jsx)(GZ, _objectSpread2(_objectSpread2({ "data-test": "subject-send-feedback-input" }, t), {}, {
isWrapped: !0,
placeholder: s("dialog.fieldSubjectPlaceholder"),
color: "secondary"
}))
})
}),
(0, import_jsx_runtime.jsx)(ZU, {
name: "title",
control: l,
rules: {
required: !0,
maxLength: {
value: 90,
message: s("dialog.titleLengthError")
}
},
render: ({ field: t, fieldState: r }) => {
var _r$error;
return (0, import_jsx_runtime.jsx)(SW, {
fullWidth: !0,
children: (0, import_jsx_runtime.jsx)(GZ, _objectSpread2(_objectSpread2({}, t), {}, {
fullWidth: !0,
placeholder: s("dialog.fieldTitlePlaceholder"),
"data-test": "title-send-feedback-input",
error: Boolean(r.error),
helperText: (_r$error = r.error) === null || _r$error === void 0 ? void 0 : _r$error.message,
required: !0,
sx: { "& .MuiInputBase-root": { minHeight: 56 } },
color: "secondary"
}))
});
}
}),
(0, import_jsx_runtime.jsx)(ZU, {
name: "description",
control: l,
rules: {
required: !0,
maxLength: {
value: 1024,
message: s("dialog.descriptionLengthError")
}
},
render: ({ field: t, fieldState: r }) => {
var _r$error2;
return (0, import_jsx_runtime.jsx)(SW, {
fullWidth: !0,
children: (0, import_jsx_runtime.jsx)(GZ, _objectSpread2(_objectSpread2({}, t), {}, {
multiline: !0,
rows: 5,
fullWidth: !0,
noPadding: !0,
placeholder: s("dialog.fieldDescriptionPlaceholder"),
"data-test": "description-send-feedback-input",
error: Boolean(r.error),
helperText: (_r$error2 = r.error) === null || _r$error2 === void 0 ? void 0 : _r$error2.message,
required: !0,
color: "secondary"
}))
});
}
}),
(0, import_jsx_runtime.jsx)(QK, {
severity: "info",
action: (0, import_jsx_runtime.jsx)(cY, {
href: a,
target: "_blank",
color: "info",
children: s("dialog.alert.button")
}),
children: s("dialog.alert.title")
}),
(0, import_jsx_runtime.jsxs)(zs, {
direction: "row",
gap: 1,
children: [(0, import_jsx_runtime.jsx)(na, {
sx: { ml: .5 },
variant: "body2",
color: "text.primary",
children: "• "
}), (0, import_jsx_runtime.jsx)(na, {
variant: "body2",
color: "text.primary",
children: s("dialog.note")
})]
})
]
})
}), (0, import_jsx_runtime.jsxs)(iW, {
sx: {
px: 3,
py: 2,
gap: 1
},
children: [(0, import_jsx_runtime.jsx)(Xu, {
variant: "text",
color: "secondary",
onClick: _,
"data-test": "cancel-send-feedback-modal",
children: s("dialog.cancel")
}), (0, import_jsx_runtime.jsx)(Xu, {
type: "submit",
variant: "contained",
loading: m,
"data-test": "submit-feedback-button",
disabled: !d || m,
children: s("dialog.submit")
})]
})]
})]
}), (0, import_jsx_runtime.jsx)(SY, {
open: Boolean(v),
autoHideDuration: 5e3,
onClose: () => y(null),
anchorOrigin: {
vertical: "bottom",
horizontal: "right"
},
children: (0, import_jsx_runtime.jsx)(QK, {
onClose: () => y(null),
severity: v === null || v === void 0 ? void 0 : v.type,
variant: "filled",
children: v === null || v === void 0 ? void 0 : v.message
})
})]
});
};
var ZZ = (t) => (0, import_jsx_runtime.jsx)(ru, _objectSpread2(_objectSpread2({
width: "25",
height: "24",
viewBox: "0 0 25 24",
fill: "none"
}, t), {}, { children: (0, import_jsx_runtime.jsx)("path", {
d: "M12.1207 0C5.42401 0 0 5.37 0 12C0 18.63 5.42401 24 12.1207 24C18.8174 24 24.2414 18.63 24.2414 12C24.2414 5.37 18.8174 0 12.1207 0ZM8.48448 18H6.06034V6H8.48448V18ZM18.181 18H10.9086V15.6H18.181V18ZM18.181 13.2H10.9086V10.8H18.181V13.2ZM18.181 8.4H10.9086V6H18.181V8.4Z",
fill: "white"
}) }));
var XZ;
var JZ = { exports: {} };
function QZ() {
return XZ || (XZ = 1, function(e, t) {
var r;
function n(e, t) {
var r = [];
var n = 0;
function o(e) {
return r.push(e), t;
}
function i() {
return r[n++];
}
return {
tokenize: function(t) {
return t.replace(e, o);
},
detokenize: function(e) {
return e.replace(new RegExp("(" + t + ")", "g"), i);
}
};
}
r = new function() {
var t = "`COMMENT`";
var r = "[^\\u0020-\\u007e]";
var o = "(?:[0-9]*\\.[0-9]+|[0-9]+)";
var i = "(?:em|ex|px|cm|mm|in|pt|pc|deg|rad|grad|ms|s|hz|khz|%)";
var s = "direction\\s*:\\s*";
var a = "['\"]?\\s*";
var l = "(^|[^a-zA-Z])";
var c = "\\/\\*\\!?\\s*@noflip\\s*\\*\\/";
var u = "(?:(?:(?:\\\\[0-9a-f]{1,6})(?:\\r\\n|\\s)?)|\\\\[^\\r\\n\\f0-9a-f])";
var p = "(?:[_a-z0-9-]|" + r + "|" + u + ")";
var d = o + "(?:\\s*" + i + "|-?(?:[_a-z]|" + r + "|" + u + ")" + p + "*)?";
var f = "((?:-?" + d + ")|(?:inherit|auto))";
var h = "((?:-?" + d + ")|(?:inherit|auto)|(?:calc\\((?:(?:(?:\\(|\\)|\\t| )|(?:-?" + o + "(?:\\s*" + i + ")?)|(?:\\+|\\-|\\*|\\/)){3,})\\)))";
var m = "(#?" + p + "+|(?:rgba?|hsla?)\\([ \\d.,%-]+\\))";
var g = "(?:[!#$%&*-~]|" + r + "|" + u + ")*?";
var v = "(?![a-zA-Z])";
var y = "(?!(" + p + "|\\r?\\n|\\s|#|\\:|\\.|\\,|\\+|>|~|\\(|\\)|\\[|\\]|=|\\*=|~=|\\^=|'[^']*'|\"[^\"]*\"|" + t + ")*?{)";
var b = "(?!" + g + a + "\\))";
var w = "(?=" + g + a + "\\))";
var _ = "(\\s*(?:!important\\s*)?[;}])";
var x = /`TMP`/g;
var S = /`TMPLTR`/g;
var k = /`TMPRTL`/g;
var C = /* @__PURE__ */ new RegExp("\\/\\*[^*]*\\*+([^\\/*][^*]*\\*+)*\\/", "gi");
var O = new RegExp("(" + c + y + "[^;}]+;?)", "gi");
var E = new RegExp("(" + c + "[^\\}]*?})", "gi");
var T = new RegExp("(" + s + ")ltr", "gi");
var R = new RegExp("(" + s + ")rtl", "gi");
var I = new RegExp(l + "(left)" + v + b + y, "gi");
var M = new RegExp(l + "(right)" + v + b + y, "gi");
var A = new RegExp(l + "(left)" + w, "gi");
var P = new RegExp(l + "(right)" + w, "gi");
var N = /(:dir\( *)ltr( *\))/g;
var L = /(:dir\( *)rtl( *\))/g;
var D = new RegExp(l + "(ltr)" + w, "gi");
var j = new RegExp(l + "(rtl)" + w, "gi");
var F = new RegExp(l + "([ns]?)e-resize", "gi");
var $ = new RegExp(l + "([ns]?)w-resize", "gi");
var B = new RegExp("((?:margin|padding|border-width)\\s*:\\s*)" + h + "(\\s+)" + h + "(\\s+)" + h + "(\\s+)" + h + _, "gi");
var z = new RegExp("((?:-color|border-style)\\s*:\\s*)" + m + "(\\s+)" + m + "(\\s+)" + m + "(\\s+)" + m + _, "gi");
var V = new RegExp("(background(?:-position)?\\s*:\\s*(?:[^:;}\\s]+\\s+)*?)(" + d + ")", "gi");
var U = new RegExp("(background-position-x\\s*:\\s*)(-?" + o + "%)", "gi");
var q = new RegExp("(border-radius\\s*:\\s*)" + f + "(?:(?:\\s+" + f + ")(?:\\s+" + f + ")?(?:\\s+" + f + ")?)?(?:(?:(?:\\s*\\/\\s*)" + f + ")(?:\\s+" + f + ")?(?:\\s+" + f + ")?(?:\\s+" + f + ")?)?" + _, "gi");
var W = new RegExp("(box-shadow\\s*:\\s*(?:inset\\s*)?)" + f, "gi");
var H = new RegExp("(text-shadow\\s*:\\s*)" + f + "(\\s*)" + m, "gi");
var G = new RegExp("(text-shadow\\s*:\\s*)" + m + "(\\s*)" + f, "gi");
var K = new RegExp("(text-shadow\\s*:\\s*)" + f, "gi");
var Y = new RegExp("(transform\\s*:[^;}]*)(translateX\\s*\\(\\s*)" + f + "(\\s*\\))", "gi");
var Z = new RegExp("(transform\\s*:[^;}]*)(translate\\s*\\(\\s*)" + f + "((?:\\s*,\\s*" + f + "){0,2}\\s*\\))", "gi");
function X(e, t, r) {
var n;
var o;
return t.split("(").length > t.split(")").length ? e : ("%" === r.slice(-1) && (-1 !== (n = r.indexOf(".")) ? (o = r.length - n - 2, r = (r = 100 - parseFloat(r)).toFixed(o) + "%") : r = 100 - parseFloat(r) + "%"), t + r);
}
function J(e) {
switch (e.length) {
case 4:
e = [
e[1],
e[0],
e[3],
e[2]
];
break;
case 3:
e = [
e[1],
e[0],
e[1],
e[2]
];
break;
case 2:
e = [e[1], e[0]];
break;
case 1: e = [e[0]];
}
return e.join(" ");
}
function Q(e, t) {
var r = [].slice.call(arguments);
var n = r.slice(2, 6).filter(function(e) {
return e;
});
var o = r.slice(6, 10).filter(function(e) {
return e;
});
var i = r[10] || "";
return t + (o.length ? J(n) + " / " + J(o) : J(n)) + i;
}
function ee(e) {
return 0 === parseFloat(e) ? e : "-" === e[0] ? e.slice(1) : "-" + e;
}
function te(e, t, r) {
return t + ee(r);
}
function re(e, t, r, n, o) {
return t + r + ee(n) + o;
}
function ne(e, t, r, n, o) {
return t + r + n + ee(o);
}
return { transform: function(r, o) {
var i = new n(O, "`NOFLIP_SINGLE`");
var s = new n(E, "`NOFLIP_CLASS`");
var a = new n(C, t);
return r = a.tokenize(s.tokenize(i.tokenize(r.replace("`", "%60")))), o.transformDirInUrl && (r = r.replace(N, "$1`TMPLTR`$2").replace(L, "$1`TMPRTL`$2").replace(D, "$1`TMP`").replace(j, "$1ltr").replace(x, "rtl").replace(S, "ltr").replace(k, "rtl")), o.transformEdgeInUrl && (r = r.replace(A, "$1`TMP`").replace(P, "$1left").replace(x, "right")), r = r.replace(T, "$1`TMP`").replace(R, "$1ltr").replace(x, "rtl").replace(I, "$1`TMP`").replace(M, "$1left").replace(x, "right").replace(F, "$1$2`TMP`").replace($, "$1$2e-resize").replace(x, "w-resize").replace(q, Q).replace(W, te).replace(H, ne).replace(G, ne).replace(K, te).replace(Y, re).replace(Z, re).replace(B, "$1$2$3$8$5$6$7$4$9").replace(z, "$1$2$3$8$5$6$7$4$9").replace(V, X).replace(U, X), i.detokenize(s.detokenize(a.detokenize(r)));
} };
}(), e.exports ? t.transform = function(e, t, n) {
var o;
return "object" == typeof t ? o = t : (o = {}, "boolean" == typeof t && (o.transformDirInUrl = t), "boolean" == typeof n && (o.transformEdgeInUrl = n)), r.transform(e, o);
} : "undefined" != typeof window && (window.cssjanus = r);
}(JZ, JZ.exports)), JZ.exports;
}
var eX = x(QZ());
var tX = "-ms-";
var rX = "-moz-";
var nX = "-webkit-";
var oX = "comm";
var iX = "rule";
var sX = "decl";
var aX = "@keyframes";
var lX = Math.abs;
var cX = String.fromCharCode;
var uX = Object.assign;
function pX(e) {
return e.trim();
}
function dX(e, t) {
return (e = t.exec(e)) ? e[0] : e;
}
function fX(e, t, r) {
return e.replace(t, r);
}
function hX(e, t) {
return e.indexOf(t);
}
function mX(e, t) {
return 0 | e.charCodeAt(t);
}
function gX(e, t, r) {
return e.slice(t, r);
}
function vX(e) {
return e.length;
}
function yX(e) {
return e.length;
}
function bX(e, t) {
return t.push(e), e;
}
var wX = 1;
var _X = 1;
var xX = 0;
var SX = 0;
var kX = 0;
var CX = "";
function OX(e, t, r, n, o, i, s) {
return {
value: e,
root: t,
parent: r,
type: n,
props: o,
children: i,
line: wX,
column: _X,
length: s,
return: ""
};
}
function EX(e, t) {
return uX(OX("", null, null, "", null, null, 0), e, { length: -e.length }, t);
}
function TX() {
return kX = SX > 0 ? mX(CX, --SX) : 0, _X--, 10 === kX && (_X = 1, wX--), kX;
}
function RX() {
return kX = SX < xX ? mX(CX, SX++) : 0, _X++, 10 === kX && (_X = 1, wX++), kX;
}
function IX() {
return mX(CX, SX);
}
function MX() {
return SX;
}
function AX(e, t) {
return gX(CX, e, t);
}
function PX(e) {
switch (e) {
case 0:
case 9:
case 10:
case 13:
case 32: return 5;
case 33:
case 43:
case 44:
case 47:
case 62:
case 64:
case 126:
case 59:
case 123:
case 125: return 4;
case 58: return 3;
case 34:
case 39:
case 40:
case 91: return 2;
case 41:
case 93: return 1;
}
return 0;
}
function NX(e) {
return pX(AX(SX - 1, jX(91 === e ? e + 2 : 40 === e ? e + 1 : e)));
}
function LX(e) {
for (; (kX = IX()) && kX < 33;) RX();
return PX(e) > 2 || PX(kX) > 3 ? "" : " ";
}
function DX(e, t) {
for (; --t && RX() && !(kX < 48 || kX > 102 || kX > 57 && kX < 65 || kX > 70 && kX < 97););
return AX(e, MX() + (t < 6 && 32 == IX() && 32 == RX()));
}
function jX(e) {
for (; RX();) switch (kX) {
case e: return SX;
case 34:
case 39:
34 !== e && 39 !== e && jX(kX);
break;
case 40:
41 === e && jX(e);
break;
case 92: RX();
}
return SX;
}
function FX(e, t) {
for (; RX() && e + kX !== 57 && (e + kX !== 84 || 47 !== IX()););
return "/*" + AX(t, SX - 1) + "*" + cX(47 === e ? e : RX());
}
function $X(e) {
for (; !PX(IX());) RX();
return AX(e, SX);
}
function BX(e) {
return function(e) {
return CX = "", e;
}(zX("", null, null, null, [""], e = function(e) {
return wX = _X = 1, xX = vX(CX = e), SX = 0, [];
}(e), 0, [0], e));
}
function zX(e, t, r, n, o, i, s, a, l) {
for (var c = 0, u = 0, p = s, d = 0, f = 0, h = 0, m = 1, g = 1, v = 1, y = 0, b = "", w = o, _ = i, x = n, S = b; g;) switch (h = y, y = RX()) {
case 40: if (108 != h && 58 == mX(S, p - 1)) {
-1 != hX(S += fX(NX(y), "&", "&\f"), "&\f") && (v = -1);
break;
}
case 34:
case 39:
case 91:
S += NX(y);
break;
case 9:
case 10:
case 13:
case 32:
S += LX(h);
break;
case 92:
S += DX(MX() - 1, 7);
continue;
case 47:
switch (IX()) {
case 42:
case 47:
bX(UX(FX(RX(), MX()), t, r), l);
break;
default: S += "/";
}
break;
case 123 * m: a[c++] = vX(S) * v;
case 125 * m:
case 59:
case 0:
switch (y) {
case 0:
case 125: g = 0;
case 59 + u:
f > 0 && vX(S) - p && bX(f > 32 ? qX(S + ";", n, r, p - 1) : qX(fX(S, " ", "") + ";", n, r, p - 2), l);
break;
case 59: S += ";";
default: if (bX(x = VX(S, t, r, c, u, o, a, b, w = [], _ = [], p), i), 123 === y) if (0 === u) zX(S, t, x, x, w, i, p, a, _);
else switch (99 === d && 110 === mX(S, 3) ? 100 : d) {
case 100:
case 109:
case 115:
zX(e, x, x, n && bX(VX(e, x, x, 0, 0, o, a, b, o, w = [], p), _), o, _, p, a, n ? w : _);
break;
default: zX(S, x, x, x, [""], _, 0, a, _);
}
}
c = u = f = 0, m = v = 1, b = S = "", p = s;
break;
case 58: p = 1 + vX(S), f = h;
default:
if (m < 1) {
if (123 == y) --m;
else if (125 == y && 0 == m++ && 125 == TX()) continue;
}
switch (S += cX(y), y * m) {
case 38:
v = u > 0 ? 1 : (S += "\f", -1);
break;
case 44:
a[c++] = (vX(S) - 1) * v, v = 1;
break;
case 64:
45 === IX() && (S += NX(RX())), d = IX(), u = p = vX(b = S += $X(MX())), y++;
break;
case 45: 45 === h && 2 == vX(S) && (m = 0);
}
}
return i;
}
function VX(e, t, r, n, o, i, s, a, l, c, u) {
for (var p = o - 1, d = 0 === o ? i : [""], f = yX(d), h = 0, m = 0, g = 0; h < n; ++h) for (var v = 0, y = gX(e, p + 1, p = lX(m = s[h])), b = e; v < f; ++v) (b = pX(m > 0 ? d[v] + " " + y : fX(y, /&\f/g, d[v]))) && (l[g++] = b);
return OX(e, t, r, 0 === o ? iX : a, l, c, u);
}
function UX(e, t, r) {
return OX(e, t, r, oX, cX(kX), gX(e, 2, -2), 0);
}
function qX(e, t, r, n) {
return OX(e, t, r, sX, gX(e, 0, n), gX(e, n + 1, -1), n);
}
function WX(e, t, r) {
switch (function(e, t) {
return 45 ^ mX(e, 0) ? (((t << 2 ^ mX(e, 0)) << 2 ^ mX(e, 1)) << 2 ^ mX(e, 2)) << 2 ^ mX(e, 3) : 0;
}(e, t)) {
case 5103: return nX + "print-" + e + e;
case 5737:
case 4201:
case 3177:
case 3433:
case 1641:
case 4457:
case 2921:
case 5572:
case 6356:
case 5844:
case 3191:
case 6645:
case 3005:
case 6391:
case 5879:
case 5623:
case 6135:
case 4599:
case 4855:
case 4215:
case 6389:
case 5109:
case 5365:
case 5621:
case 3829: return nX + e + e;
case 4789: return rX + e + e;
case 5349:
case 4246:
case 4810:
case 6968:
case 2756: return nX + e + rX + e + tX + e + e;
case 5936: switch (mX(e, t + 11)) {
case 114: return nX + e + tX + fX(e, /[svh]\w+-[tblr]{2}/, "tb") + e;
case 108: return nX + e + tX + fX(e, /[svh]\w+-[tblr]{2}/, "tb-rl") + e;
case 45: return nX + e + tX + fX(e, /[svh]\w+-[tblr]{2}/, "lr") + e;
}
case 6828:
case 4268:
case 2903: return nX + e + tX + e + e;
case 6165: return nX + e + tX + "flex-" + e + e;
case 5187: return nX + e + fX(e, /(\w+).+(:[^]+)/, nX + "box-$1$2" + tX + "flex-$1$2") + e;
case 5443: return nX + e + tX + "flex-item-" + fX(e, /flex-|-self/g, "") + (dX(e, /flex-|baseline/) ? "" : tX + "grid-row-" + fX(e, /flex-|-self/g, "")) + e;
case 4675: return nX + e + tX + "flex-line-pack" + fX(e, /align-content|flex-|-self/g, "") + e;
case 5548: return nX + e + tX + fX(e, "shrink", "negative") + e;
case 5292: return nX + e + tX + fX(e, "basis", "preferred-size") + e;
case 6060: return nX + "box-" + fX(e, "-grow", "") + nX + e + tX + fX(e, "grow", "positive") + e;
case 4554: return nX + fX(e, /([^-])(transform)/g, "$1" + nX + "$2") + e;
case 6187: return fX(fX(fX(e, /(zoom-|grab)/, nX + "$1"), /(image-set)/, nX + "$1"), e, "") + e;
case 5495:
case 3959: return fX(e, /(image-set\([^]*)/, nX + "$1$`$1");
case 4968: return fX(fX(e, /(.+:)(flex-)?(.*)/, nX + "box-pack:$3" + tX + "flex-pack:$3"), /s.+-b[^;]+/, "justify") + nX + e + e;
case 4200:
if (!dX(e, /flex-|baseline/)) return tX + "grid-column-align" + gX(e, t) + e;
break;
case 2592:
case 3360: return tX + fX(e, "template-", "") + e;
case 4384:
case 3616: return r && r.some(function(e, r) {
return t = r, dX(e.props, /grid-\w+-end/);
}) ? ~hX(e + (r = r[t].value), "span") ? e : tX + fX(e, "-start", "") + e + tX + "grid-row-span:" + (~hX(r, "span") ? dX(r, /\d+/) : +dX(r, /\d+/) - +dX(e, /\d+/)) + ";" : tX + fX(e, "-start", "") + e;
case 4896:
case 4128: return r && r.some(function(e) {
return dX(e.props, /grid-\w+-start/);
}) ? e : tX + fX(fX(e, "-end", "-span"), "span ", "") + e;
case 4095:
case 3583:
case 4068:
case 2532: return fX(e, /(.+)-inline(.+)/, nX + "$1$2") + e;
case 8116:
case 7059:
case 5753:
case 5535:
case 5445:
case 5701:
case 4933:
case 4677:
case 5533:
case 5789:
case 5021:
case 4765:
if (vX(e) - 1 - t > 6) switch (mX(e, t + 1)) {
case 109: if (45 !== mX(e, t + 4)) break;
case 102: return fX(e, /(.+:)(.+)-([^]+)/, "$1" + nX + "$2-$3$1" + rX + (108 == mX(e, t + 3) ? "$3" : "$2-$3")) + e;
case 115: return ~hX(e, "stretch") ? WX(fX(e, "stretch", "fill-available"), t, r) + e : e;
}
break;
case 5152:
case 5920: return fX(e, /(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/, function(t, r, n, o, i, s, a) {
return tX + r + ":" + n + a + (o ? tX + r + "-span:" + (i ? s : +s - +n) + a : "") + e;
});
case 4949:
if (121 === mX(e, t + 6)) return fX(e, ":", ":" + nX) + e;
break;
case 6444:
switch (mX(e, 45 === mX(e, 14) ? 18 : 11)) {
case 120: return fX(e, /(.+:)([^;\s!]+)(;|(\s+)?!.+)?/, "$1" + nX + (45 === mX(e, 14) ? "inline-" : "") + "box$3$1" + nX + "$2$3$1" + tX + "$2box$3") + e;
case 100: return fX(e, ":", ":" + tX) + e;
}
break;
case 5719:
case 2647:
case 2135:
case 3927:
case 2391: return fX(e, "scroll-", "scroll-snap-") + e;
}
return e;
}
function HX(e, t) {
for (var r = "", n = yX(e), o = 0; o < n; o++) r += t(e[o], o, e, t) || "";
return r;
}
function GX(e, t, r) {
switch (e.type) {
case "@import":
case sX:
case oX: return e.return = e.return || e.value;
case iX: e.value = Array.isArray(e.props) ? e.props.join(",") : e.props, Array.isArray(e.children) && e.children.forEach(function(e) {
e.type === oX && (e.children = e.value);
});
}
var n = HX(Array.prototype.concat(e.children), GX);
return vX(n) ? e.return = e.value + "{" + n + "}" : "";
}
function KX(e, t, r, n) {
if (e.type === aX || "@supports" === e.type || e.type === iX && (!e.parent || "@media" === e.parent.type || e.parent.type === iX)) {
var o = eX.transform(GX(e));
e.children = o ? BX(o)[0].children : [], e.return = "";
}
}
Object.defineProperty(KX, "name", { value: "stylisRTLPlugin" });
var YX = mt({
key: Sl,
stylisPlugins: [function(e, t, r, n) {
if (e.length > -1 && !e.return) switch (e.type) {
case sX:
e.return = WX(e.value, e.length, r);
return;
case aX: return HX([EX(e, { value: fX(e.value, "@", "@" + nX) })], n);
case iX: if (e.length) return function(e, t) {
return e.map(t).join("");
}(e.props, function(t) {
switch (dX(t, /(::plac\w+|:read-\w+)/)) {
case ":read-only":
case ":read-write": return HX([EX(e, { props: [fX(t, /:(read-\w+)/, ":-moz-$1")] })], n);
case "::placeholder": return HX([
EX(e, { props: [fX(t, /:(plac\w+)/, ":" + nX + "input-$1")] }),
EX(e, { props: [fX(t, /:(plac\w+)/, ":-moz-$1")] }),
EX(e, { props: [fX(t, /:(plac\w+)/, tX + "input-$1")] })
], n);
}
return "";
});
}
}, KX]
});
var ZX = mt({ key: "eui" });
var XX = ({ rtl: e, children: t }) => react.default.createElement(Dt, { value: e ? YX : ZX }, t);
var JX = react.forwardRef((e, t) => react.createElement(ru, _objectSpread2(_objectSpread2({ viewBox: "0 0 24 24" }, e), {}, { ref: t }), react.createElement("path", {
fillRule: "evenodd",
clipRule: "evenodd",
d: "M12 5.25C12.2508 5.25 12.485 5.37533 12.6241 5.58397L16.1703 10.9033L20.5315 7.41435C20.7777 7.21743 21.1207 7.19544 21.39 7.35933C21.6592 7.52321 21.7973 7.83798 21.7355 8.14709L19.7355 18.1471C19.6654 18.4977 19.3576 18.75 19 18.75H5.00004C4.64253 18.75 4.33472 18.4977 4.26461 18.1471L2.2646 8.14709C2.20278 7.83798 2.34084 7.52321 2.61012 7.35933C2.8794 7.19544 3.22241 7.21743 3.46856 7.41435L7.82977 10.9033L11.376 5.58397C11.5151 5.37533 11.7493 5.25 12 5.25Z"
})));
var QX = ({ isLoading: t = !1, onClick: r }) => {
const { t: n } = vd("common", { i18n: Jh });
return t ? (0, import_jsx_runtime.jsx)(dz, {
variant: "rounded",
width: 90,
height: 30,
"data-test": "header-upgrade-button"
}) : (0, import_jsx_runtime.jsx)(Xu, {
color: "promotion",
variant: "contained",
size: "small",
href: "https://go.elementor.com/wp-dash-admin-top-bar-upgrade/",
onClick: r,
startIcon: (0, import_jsx_runtime.jsx)(JX, { fontSize: "small" }),
"data-test": "header-upgrade-button",
children: n("header.upgrade")
});
};
var eJ = ({ appSettings: n, colorScheme: o = "dark", title: i, multiDelpoymentSlot: a, isWithinWpAdmin: l = !0, containerSx: c = {}, onDisconnect: u }) => {
var _window$elementorOneS4;
var _window$elementorOneS5;
var _window$elementorOneS6;
var _window$elementorOneS7;
const { t: p } = vd("common", { i18n: Jh }), f = ((e) => {
switch (e) {
case "image-optimizer": return "https://go.elementor.com/one-help-center-io/";
case "ally": return "https://go.elementor.com/one-help-center-ally/";
case "elementor-pro":
case "elementor": return "https://go.elementor.com/one-help-center-editor/";
case "site-mailer": return "https://go.elementor.com/one-help-center-sm/";
case "angie": return "https://go.elementor.com/one-help-center-angie/";
case "cookiez": return "https://go.elementor.com/cookiez-help-center/";
default: return "https://go.elementor.com/one-help-center/";
}
})(n.slug), [g, v] = (0, react.useState)(!1), y = YB(), b = (() => {
const e = (0, react.useContext)(WB);
if (!e) throw new Error("Wrap your component in <ElementorOneAssetsProvider> to access RTL orientation");
return e.isRTL;
})(), w = (0, react.useRef)(!1), _ = (_window$elementorOneS4 = (_window$elementorOneS5 = window.elementorOneSettingsData) === null || _window$elementorOneS5 === void 0 ? void 0 : _window$elementorOneS5.canUserManageOptions) !== null && _window$elementorOneS4 !== void 0 ? _window$elementorOneS4 : !1, x = (_window$elementorOneS6 = (_window$elementorOneS7 = window.elementorOneSettingsData) === null || _window$elementorOneS7 === void 0 ? void 0 : _window$elementorOneS7.shareUsageData) !== null && _window$elementorOneS6 !== void 0 ? _window$elementorOneS6 : !1, { data: S } = $B({ enabled: _ }), { shouldShow: k, isLoading: C } = ((e) => {
const { data: t, isLoading: r } = ((e) => {
const { slug: t, enabled: r = !0 } = e, n = UB.has(t);
return py({
queryKey: ["installed-plugins"],
queryFn: () => x_.getInstalledPlugins(),
enabled: r && n
});
})({ slug: e }), n = !t && r, [o, i] = (0, react.useState)(!1);
return (0, react.useEffect)(() => {
let r = !1;
if (UB.has(e)) {
if (n) r = !0;
else if (t === null || t === void 0 ? void 0 : t.length) {
const e = t.find((e) => "elementor" === e.slug);
if (e && e.status !== QB.INACTIVE) {
const e = t.find((e) => "elementor-pro" === e.slug);
r = !e || e.status === QB.INACTIVE;
}
}
}
i(r);
}, [
e,
t,
n
]), {
shouldShow: o,
isLoading: n
};
})(n.slug), O = ((e = !0) => {
const [t, r] = (0, react.useState)(() => window.innerWidth), [n, o] = (0, react.useState)(() => e ? JB(window.innerWidth, window.scrollY) : 0), i = (0, react.useRef)(n), s = (0, react.useRef)(null);
return (0, react.useEffect)(() => {
if (!e) return void o(0);
const t = () => {
const e = window.innerWidth;
r(e), ((e, t) => {
const r = Math.round(JB(e, t));
r !== i.current && (i.current = r, o(r));
})(e, window.scrollY || window.pageYOffset);
};
return t(), window.addEventListener("resize", t), () => window.removeEventListener("resize", t);
}, [e]), (0, react.useEffect)(() => {
if (!e) return;
const r = XB(t);
if (ZB(t) || t > BB) return i.current = r, void o(r);
const n = () => {
null === s.current && (s.current = window.requestAnimationFrame(() => {
s.current = null, a();
}));
};
const a = () => {
const e = window.scrollY || window.pageYOffset;
const t = Math.round(e >= r ? 0 : r - e);
t !== i.current && (i.current = t, o(t));
};
return a(), window.addEventListener("scroll", n, { passive: !0 }), () => {
window.removeEventListener("scroll", n), null !== s.current && (window.cancelAnimationFrame(s.current), s.current = null);
};
}, [e, t]), e ? n : 0;
})(l);
(0, react.useEffect)(() => {
if (x && !w.current) {
const { appType: e, productName: t } = ((e) => {
switch (e) {
case "elementor":
case "elementor-pro": return { appType: "Editor" };
case "elementor-home":
default: return { appType: "Infra" };
case "ally": return {
appType: "Apps",
productName: "app_access"
};
case "image-optimization": return {
appType: "Apps",
productName: "app_io"
};
case "site-mailer": return {
appType: "Apps",
productName: "app_mailer"
};
case "angie": return {
appType: "Apps",
productName: "app_ai"
};
case "cookiez": return {
appType: "Apps",
productName: "app_cookiez"
};
}
})(n.slug), r = { appType: e };
t && (r.productName = t), jB.registerOnce(r), w.current = !0;
}
}, [n.slug, x]);
const E = (e) => {
x && jB.track("top_bar_clicked", {
[zB]: e,
[VB]: n.slug
});
};
return (0, import_jsx_runtime.jsx)(XX, {
rtl: b,
children: (0, import_jsx_runtime.jsxs)(Hc, {
colorScheme: o,
children: [(0, import_jsx_runtime.jsx)(Fs, {
sx: _objectSpread2(_objectSpread2({
position: "sticky",
zIndex: 1100
}, l ? { top: O } : { top: 0 }), c),
children: (0, import_jsx_runtime.jsx)(Gs, {
sx: {
pl: "30px !important",
backgroundColor: "background.paper"
},
variant: "dense",
children: (0, import_jsx_runtime.jsxs)(zs, {
direction: "row",
justifyContent: "space-between",
width: "100%",
children: [(0, import_jsx_runtime.jsxs)(zs, {
direction: "row",
alignItems: "center",
gap: 1,
flexWrap: "nowrap",
children: [(0, import_jsx_runtime.jsx)(ZZ, {}), !y && (0, import_jsx_runtime.jsx)(na, {
variant: "button",
fontSize: "20px",
fontWeight: 400,
whiteSpace: "nowrap",
children: i || p("header.title")
})]
}), (0, import_jsx_runtime.jsxs)(zs, {
direction: "row",
alignItems: "center",
gap: 1,
children: [
k && (0, import_jsx_runtime.jsx)(QX, {
isLoading: C,
onClick: () => E("upgrade")
}),
(S === null || S === void 0 ? void 0 : S.isConnected) && (0, import_jsx_runtime.jsx)(Zc, {
size: "small",
onClick: () => {
E("feedback"), v(!0);
},
"data-test": "header-feedback-button",
children: (0, import_jsx_runtime.jsx)(nu, { fontSize: "small" })
}),
(0, import_jsx_runtime.jsx)(bU, {
appSettings: n,
onClick: () => E("whats_new"),
containerSx: { "& .MuiDrawer-paper": _objectSpread2({
width: 320,
padding: 3
}, l ? {
top: 32,
height: "calc(100vh - 32px)",
"@media (max-width: 784px)": {
top: 46,
height: "calc(100vh - 46px)"
}
} : {}) }
}),
f && (0, import_jsx_runtime.jsx)(Zc, {
size: "small",
href: f,
target: "_blank",
onClick: () => E("help"),
"data-test": "header-help-button",
children: (0, import_jsx_runtime.jsx)(ou, { fontSize: "small" })
}),
a,
_ && (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [(0, import_jsx_runtime.jsx)(du, {
orientation: "vertical",
flexItem: !0,
sx: {
my: 1,
mx: 1
}
}), (0, import_jsx_runtime.jsx)(Rz, {
onDisconnect: u,
onClick: () => E("account"),
onConnectClick: () => E("connect")
})] })
]
})]
})
})
}), (0, import_jsx_runtime.jsx)(YZ, {
open: g,
onClose: () => v(!1)
})]
})
});
};
//#endregion
//#region modules/editor-one/assets/js/shared/is-rtl.js
function isRTL() {
var _elementorCommon$conf;
var _elementorCommon;
return (_elementorCommon$conf = (_elementorCommon = elementorCommon) === null || _elementorCommon === void 0 || (_elementorCommon = _elementorCommon.config) === null || _elementorCommon === void 0 ? void 0 : _elementorCommon.isRTL) !== null && _elementorCommon$conf !== void 0 ? _elementorCommon$conf : false;
}
//#endregion
//#region modules/editor-one/assets/js/sidebar-navigation/components/hooks/use-admin-menu-offset.js
var ADMIN_MENU_WRAP_ID = "adminmenuwrap";
var WPCONTENT_ID = "wpcontent";
var EDITOR_ONE_TOP_BAR_ID = "editor-one-top-bar";
var WPADMINBAR_ID = "wpadminbar";
var INITIALIZED_DATA_ATTR = "data-editor-one-offset-initialized";
var WPFOOTER_ID = "wpfooter";
var WPBODY_CONTENT_ID = "wpbody-content";
var useAdminMenuOffset = function useAdminMenuOffset() {
var cleanupRef = (0, react.useRef)(null);
(0, react.useEffect)(function() {
var adminMenuWrap = document.getElementById(ADMIN_MENU_WRAP_ID);
var wpcontent = document.getElementById(WPCONTENT_ID);
if (!adminMenuWrap || !wpcontent || wpcontent.hasAttribute(INITIALIZED_DATA_ATTR)) return;
var wpfooter = document.getElementById(WPFOOTER_ID);
var wpbodyContent = document.getElementById(WPBODY_CONTENT_ID);
wpbodyContent === null || wpbodyContent === void 0 || wpbodyContent.insertBefore(wpfooter, wpbodyContent.querySelector(":scope > .clear"));
var wpAdminBar = document.getElementById(WPADMINBAR_ID);
var updateOffset = function updateOffset() {
var _document$getElementB;
var _wpAdminBar$clientHei;
var _topBarHeader$clientH;
var topBarHeader = (_document$getElementB = document.getElementById(EDITOR_ONE_TOP_BAR_ID)) === null || _document$getElementB === void 0 ? void 0 : _document$getElementB.querySelector(":scope > header");
var isRtlLanguage = isRTL();
var rect = adminMenuWrap.getBoundingClientRect();
var offset = isRtlLanguage ? document.documentElement.clientWidth - rect.left : rect.right;
var adminBarHeightPx = "".concat((_wpAdminBar$clientHei = wpAdminBar === null || wpAdminBar === void 0 ? void 0 : wpAdminBar.clientHeight) !== null && _wpAdminBar$clientHei !== void 0 ? _wpAdminBar$clientHei : 0, "px");
var topBarHeaderHeightPx = "".concat((_topBarHeader$clientH = topBarHeader === null || topBarHeader === void 0 ? void 0 : topBarHeader.clientHeight) !== null && _topBarHeader$clientH !== void 0 ? _topBarHeader$clientH : 0, "px");
wpcontent.style.setProperty("--editor-one-sidebar-left-offset", "".concat(offset, "px"));
wpcontent.style.setProperty("--e-admin-bar-height", adminBarHeightPx);
wpcontent.style.setProperty("--e-top-bar-header-height", topBarHeaderHeightPx);
};
updateOffset();
var resizeObserver = new ResizeObserver(updateOffset);
resizeObserver.observe(wpcontent);
var topBar = document.getElementById(EDITOR_ONE_TOP_BAR_ID);
if (topBar) resizeObserver.observe(topBar);
window.addEventListener("resize", updateOffset);
wpcontent.setAttribute(INITIALIZED_DATA_ATTR, "true");
cleanupRef.current = function() {
resizeObserver.disconnect();
window.removeEventListener("resize", updateOffset);
wpcontent.removeAttribute(INITIALIZED_DATA_ATTR);
};
return function() {
if (cleanupRef.current) {
cleanupRef.current();
cleanupRef.current = null;
}
};
}, []);
};
//#endregion
//#region node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js
function _arrayWithHoles(r) {
if (Array.isArray(r)) return r;
}
//#endregion
//#region node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js
function _iterableToArrayLimit(r, l) {
var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
if (null != t) {
var e;
var n;
var i;
var u;
var a = [];
var f = !0;
var o = !1;
try {
if (i = (t = t.call(r)).next, 0 === l) {
if (Object(t) !== t) return;
f = !1;
} else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0);
} catch (r) {
o = !0, n = r;
} finally {
try {
if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return;
} finally {
if (o) throw n;
}
}
return a;
}
}
//#endregion
//#region node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js
function _arrayLikeToArray(r, a) {
(null == a || a > r.length) && (a = r.length);
for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
return n;
}
//#endregion
//#region node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js
function _unsupportedIterableToArray(r, a) {
if (r) {
if ("string" == typeof r) return _arrayLikeToArray(r, a);
var t = {}.toString.call(r).slice(8, -1);
return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0;
}
}
//#endregion
//#region node_modules/@babel/runtime/helpers/esm/nonIterableRest.js
function _nonIterableRest() {
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
}
//#endregion
//#region node_modules/@babel/runtime/helpers/esm/slicedToArray.js
function _slicedToArray(r, e) {
return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest();
}
//#endregion
//#region modules/editor-one/assets/js/shared/map-wordpress-locale-to-elementor-one-language.js
function mapWordPressLocaleToElementorOneLanguage(locale) {
if (!locale) return "en";
var _locale$split2 = _slicedToArray(locale.split("_"), 2);
var language = _locale$split2[0];
var region = _locale$split2[1];
if (!region) return language;
return "".concat(language, "-").concat(region);
}
//#endregion
//#region modules/editor-one/assets/js/top-bar/app.js
var App = function App() {
var _window$elementorOneT = window.elementorOneTopBarConfig;
var version = _window$elementorOneT.version;
var title = _window$elementorOneT.title;
var environment = _window$elementorOneT.environment;
var locale = _window$elementorOneT.locale;
var isRtlLanguage = isRTL();
useAdminMenuOffset();
return /*#__PURE__*/ react.default.createElement(HB, {
env: environment,
isRTL: isRtlLanguage,
language: mapWordPressLocaleToElementorOneLanguage(locale)
}, /*#__PURE__*/ react.default.createElement(eJ, {
appSettings: {
slug: "elementor",
version
},
isWithinWpAdmin: true,
title
}));
};
var rootElement = document.getElementById("editor-one-top-bar");
if (rootElement) react_default.render(/*#__PURE__*/ react.default.createElement(App, null), rootElement);
//#endregion
})(React, ReactDOM);
//# sourceMappingURL=editor-one-top-bar.js.map