"use client"; import { n as __toESM, t as __commonJSMin } from "./chunk-CO3PsZeE.js"; import { t as require_react } from "./react.js"; import { t as require_react_dom } from "./react-dom.js"; import { $ as RefIcon$17, A as RefIcon$12, B as RefIcon$28, C as RefIcon$36, Ct as presetPalettes, D as RefIcon$35, Dt as clsx, E as RefIcon$51, Et as FastColor, F as RefIcon$41, G as RefIcon$48, H as RefIcon$45, I as RefIcon$50, J as RefIcon$30, K as RefIcon$8, L as RefIcon$20, M as RefIcon$38, N as RefIcon$40, O as RefIcon$16, Ot as IconContext, P as RefIcon$39, Q as RefIcon$3, R as RefIcon$34, S as RefIcon$21, St as gold, T as RefIcon$49, Tt as generate, U as RefIcon$13, V as RefIcon$4, W as RefIcon$47, X as RefIcon$46, Y as RefIcon$44, Z as RefIcon, _ as RefIcon$7, _t as removeCSS, a as supportRef, at as RefIcon$18, b as RefIcon$6, bt as canUseDom, c as useMemo$44, d as RefIcon$33, et as RefIcon$9, f as RefIcon$10, g as RefIcon$32, gt as getShadowRoot, h as RefIcon$26, ht as warningOnce, i as supportNodeRef, it as RefIcon$37, j as RefIcon$2, k as RefIcon$5, l as RefIcon$25, m as RefIcon$19, mt as warning$2, n as fillRef, nt as RefIcon$42, o as useComposeRef, ot as RefIcon$11, p as RefIcon$15, pt as noteOnce, q as RefIcon$29, r as getNodeRef, rt as RefIcon$43, s as isFragment$1, t as composeRef, tt as RefIcon$1, u as RefIcon$24, v as RefIcon$23, vt as updateCSS, w as RefIcon$14, wt as presetPrimaryColors, x as RefIcon$31, xt as blue, y as RefIcon$22, yt as contains, z as RefIcon$27 } from "./ref-CC_C1lUG.js"; import { t as require_client } from "./client-Cx8rFc1g.js"; //#region node_modules/antd/es/_util/getReactMajorVersionCanDelMe.js var import_react = /* @__PURE__ */ __toESM(require_react()); function getReactMajorVersion() { return Number.parseInt(import_react.version.split(".")[0], 10); } //#endregion //#region node_modules/@rc-component/util/es/hooks/useEvent.js var useEvent = (callback) => { const fnRef = import_react.useRef(callback); fnRef.current = callback; return import_react.useCallback((...args) => fnRef.current?.(...args), []); }; //#endregion //#region node_modules/@rc-component/util/es/hooks/useLayoutEffect.js /** * Wrap `React.useLayoutEffect` which will not throw warning message in test env */ var useInternalLayoutEffect = canUseDom() ? import_react.useLayoutEffect : import_react.useEffect; var useLayoutEffect$1 = (callback, deps) => { const firstMountRef = import_react.useRef(true); useInternalLayoutEffect(() => { return callback(firstMountRef.current); }, deps); useInternalLayoutEffect(() => { firstMountRef.current = false; return () => { firstMountRef.current = true; }; }, []); }; var useLayoutUpdateEffect = (callback, deps) => { useLayoutEffect$1((firstMount) => { if (!firstMount) return callback(); }, deps); }; //#endregion //#region node_modules/@rc-component/util/es/hooks/useState.js /** * Same as React.useState but `setState` accept `ignoreDestroy` param to not to setState after destroyed. * We do not make this auto is to avoid real memory leak. * Developer should confirm it's safe to ignore themselves. */ var useSafeState = (defaultValue) => { const destroyRef = import_react.useRef(false); const [value, setValue] = import_react.useState(defaultValue); import_react.useEffect(() => { destroyRef.current = false; return () => { destroyRef.current = true; }; }, []); function safeSetState(updater, ignoreDestroy) { if (ignoreDestroy && destroyRef.current) return; setValue(updater); } return [value, safeSetState]; }; //#endregion //#region node_modules/@rc-component/util/es/hooks/useControlledState.js /** * Similar to `useState` but will use props value if provided. * From React 18, we do not need safe `useState` since it will not throw for unmounted update. * This hooks remove the `onChange` & `postState` logic since we only need basic merged state logic. */ function useControlledState(defaultStateValue, value) { const [innerValue, setInnerValue] = (0, import_react.useState)(defaultStateValue); const mergedValue = value !== void 0 ? value : innerValue; useLayoutEffect$1((mount) => { if (!mount) setInnerValue(value); }, [value]); return [mergedValue, setInnerValue]; } //#endregion //#region node_modules/@rc-component/util/es/utils/get.js function get(entity, path) { let current = entity; for (let i = 0; i < path.length; i += 1) { if (current === null || current === void 0) return; current = current[path[i]]; } return current; } //#endregion //#region node_modules/@rc-component/util/es/utils/set.js function internalSet(entity, paths, value, removeIfUndefined) { if (!paths.length) return value; const [path, ...restPath] = paths; let clone; if (!entity && typeof path === "number") clone = []; else if (Array.isArray(entity)) clone = [...entity]; else clone = { ...entity }; if (removeIfUndefined && value === void 0 && restPath.length === 1) delete clone[path][restPath[0]]; else clone[path] = internalSet(clone[path], restPath, value, removeIfUndefined); return clone; } function set(entity, paths, value, removeIfUndefined = false) { if (paths.length && removeIfUndefined && value === void 0 && !get(entity, paths.slice(0, -1))) return entity; return internalSet(entity, paths, value, removeIfUndefined); } function isObject(obj) { return typeof obj === "object" && obj !== null && Object.getPrototypeOf(obj) === Object.prototype; } function createEmpty(source) { return Array.isArray(source) ? [] : {}; } var keys = typeof Reflect === "undefined" ? Object.keys : Reflect.ownKeys; /** * Merge multiple objects. Support custom merge logic. * @param sources object sources * @param config.prepareArray Customize array prepare function. * It will return empty [] by default. * So when match array, it will auto be override with next array in sources. */ function mergeWith(sources, config = {}) { const { prepareArray } = config; const finalPrepareArray = prepareArray || (() => []); let clone = createEmpty(sources[0]); sources.forEach((src) => { function internalMerge(path, parentLoopSet) { const loopSet = new Set(parentLoopSet); const value = get(src, path); const isArr = Array.isArray(value); if (isArr || isObject(value)) { if (!loopSet.has(value)) { loopSet.add(value); const originValue = get(clone, path); if (isArr) clone = set(clone, path, finalPrepareArray(originValue, value)); else if (!originValue || typeof originValue !== "object") clone = set(clone, path, createEmpty(value)); keys(value).forEach((key) => { if (Object.getOwnPropertyDescriptor(value, key).enumerable) internalMerge([...path, key], loopSet); }); } } else clone = set(clone, path, value); } internalMerge([]); }); return clone; } /** * Merge multiple objects into a new single object. * Arrays will be replaced by default. */ function merge$1(...sources) { return mergeWith(sources); } //#endregion //#region node_modules/@rc-component/util/es/omit.js function omit(obj, fields) { const clone = Object.assign({}, obj); if (Array.isArray(fields)) fields.forEach((key) => { delete clone[key]; }); return clone; } //#endregion //#region node_modules/@rc-component/util/es/Children/toArray.js function toArray$8(children, option = {}) { let ret = []; import_react.Children.forEach(children, (child) => { if ((child === void 0 || child === null) && !option.keepEmpty) return; if (Array.isArray(child)) ret = ret.concat(toArray$8(child)); else if (isFragment$1(child) && child.props) ret = ret.concat(toArray$8(child.props.children, option)); else ret.push(child); }); return ret; } //#endregion //#region node_modules/antd/es/_util/warning.js function noop$4() {} var { resetWarned: rcResetWarned } = warningOnce; var deprecatedWarnList = null; var _warning = noop$4; _warning = (valid, component, message) => { warningOnce(valid, `[antd: ${component}] ${message}`); }; var warning$1 = _warning; var WarningContext = /* @__PURE__ */ import_react.createContext({}); /** * This is a hook but we not named as `useWarning` * since this is only used in development. * We should always wrap this in `if (process.env.NODE_ENV !== 'production')` condition */ var devUseWarning = (component) => { const { strict } = import_react.useContext(WarningContext); const typeWarning = (valid, type, message) => { if (!valid) if (strict === false && type === "deprecated") { const existWarning = deprecatedWarnList; if (!deprecatedWarnList) deprecatedWarnList = {}; deprecatedWarnList[component] = deprecatedWarnList[component] || []; if (!deprecatedWarnList[component].includes(message || "")) deprecatedWarnList[component].push(message || ""); if (!existWarning) console.warn("[antd] There exists deprecated usage in your code:", deprecatedWarnList); } else warning$1(valid, component, message); }; typeWarning.deprecated = (valid, oldProp, newProp, message = "") => { typeWarning(valid, "deprecated", `\`${oldProp}\` is deprecated. Please use \`${newProp}\` instead.${message ? ` ${message}` : ""}`); }; return typeWarning; }; //#endregion //#region node_modules/@rc-component/util/es/Dom/findDOMNode.js function isDOM(node) { return node instanceof HTMLElement || node instanceof SVGElement; } /** * Retrieves a DOM node via a ref, and does not invoke `findDOMNode`. */ function getDOM(node) { if (node && typeof node === "object" && isDOM(node.nativeElement)) return node.nativeElement; if (isDOM(node)) return node; return null; } //#endregion //#region node_modules/@rc-component/resize-observer/es/Collection.js var CollectionContext = /* @__PURE__ */ import_react.createContext(null); /** * Collect all the resize event from children ResizeObserver */ function Collection({ children, onBatchResize }) { const resizeIdRef = import_react.useRef(0); const resizeInfosRef = import_react.useRef([]); const onCollectionResize = import_react.useContext(CollectionContext); const onResize = import_react.useCallback((size, element, data) => { resizeIdRef.current += 1; const currentId = resizeIdRef.current; resizeInfosRef.current.push({ size, element, data }); Promise.resolve().then(() => { if (currentId === resizeIdRef.current) { onBatchResize?.(resizeInfosRef.current); resizeInfosRef.current = []; } }); onCollectionResize?.(size, element, data); }, [onBatchResize, onCollectionResize]); return /* @__PURE__ */ import_react.createElement(CollectionContext.Provider, { value: onResize }, children); } //#endregion //#region node_modules/@rc-component/resize-observer/es/utils/observerUtil.js var elementListeners = /* @__PURE__ */ new Map(); function onResize(entities) { entities.forEach((entity) => { const { target } = entity; elementListeners.get(target)?.forEach((listener) => listener(target)); }); } var observer; function ensureResizeObserver() { if (!observer) observer = new ResizeObserver(onResize); return observer; } function observe(element, callback) { if (!elementListeners.has(element)) { elementListeners.set(element, /* @__PURE__ */ new Set()); ensureResizeObserver().observe(element); } elementListeners.get(element).add(callback); } function unobserve(element, callback) { if (elementListeners.has(element)) { elementListeners.get(element).delete(callback); if (!elementListeners.get(element).size) { ensureResizeObserver().unobserve(element); elementListeners.delete(element); } } } //#endregion //#region node_modules/@rc-component/resize-observer/es/useResizeObserver.js function useResizeObserver(enabled, getTarget, onDelayResize, onSyncResize) { const sizeRef = import_react.useRef({ width: -1, height: -1, offsetWidth: -1, offsetHeight: -1 }); const onInternalResize = useEvent((target) => { const { width, height } = target.getBoundingClientRect(); const { offsetWidth, offsetHeight } = target; /** * Resize observer trigger when content size changed. * In most case we just care about element size, * let's use `boundary` instead of `contentRect` here to avoid shaking. */ const fixedWidth = Math.floor(width); const fixedHeight = Math.floor(height); if (sizeRef.current.width !== fixedWidth || sizeRef.current.height !== fixedHeight || sizeRef.current.offsetWidth !== offsetWidth || sizeRef.current.offsetHeight !== offsetHeight) { const size = { width: fixedWidth, height: fixedHeight, offsetWidth, offsetHeight }; sizeRef.current = size; const mergedOffsetWidth = offsetWidth === Math.round(width) ? width : offsetWidth; const mergedOffsetHeight = offsetHeight === Math.round(height) ? height : offsetHeight; const sizeInfo = { ...size, offsetWidth: mergedOffsetWidth, offsetHeight: mergedOffsetHeight }; onSyncResize?.(sizeInfo, target); Promise.resolve().then(() => { onDelayResize?.(sizeInfo, target); }); } }); const isFuncTarget = typeof getTarget === "function"; const funcTargetIdRef = import_react.useRef(0); import_react.useEffect(() => { const target = isFuncTarget ? getTarget() : getTarget; if (target && enabled) observe(target, onInternalResize); else if (enabled && isFuncTarget) funcTargetIdRef.current += 1; return () => { if (target) unobserve(target, onInternalResize); }; }, [enabled, isFuncTarget ? funcTargetIdRef.current : getTarget]); } //#endregion //#region node_modules/@rc-component/resize-observer/es/SingleObserver/index.js function SingleObserver(props, ref) { const { children, disabled, onResize, data } = props; const elementRef = import_react.useRef(null); const onCollectionResize = import_react.useContext(CollectionContext); const isRenderProps = typeof children === "function"; const mergedChildren = isRenderProps ? children(elementRef) : children; const canRef = !isRenderProps && /* @__PURE__ */ import_react.isValidElement(mergedChildren) && supportRef(mergedChildren); const mergedRef = useComposeRef(canRef ? getNodeRef(mergedChildren) : null, elementRef); const getDomElement = () => { return getDOM(elementRef.current); }; import_react.useImperativeHandle(ref, () => getDomElement()); useResizeObserver(!disabled, getDomElement, onResize, (sizeInfo, target) => { onCollectionResize?.(sizeInfo, target, data); }); return canRef ? /* @__PURE__ */ import_react.cloneElement(mergedChildren, { ref: mergedRef }) : mergedChildren; } var RefSingleObserver = /* @__PURE__ */ import_react.forwardRef(SingleObserver); RefSingleObserver.displayName = "SingleObserver"; //#endregion //#region node_modules/@rc-component/resize-observer/es/index.js function _extends$99() { _extends$99 = Object.assign ? Object.assign.bind() : function(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) if (Object.prototype.hasOwnProperty.call(source, key)) target[key] = source[key]; } return target; }; return _extends$99.apply(this, arguments); } var INTERNAL_PREFIX_KEY = "rc-observer-key"; function ResizeObserver$1(props, ref) { const { children } = props; const childNodes = typeof children === "function" ? [children] : toArray$8(children); if (childNodes.length > 1) warning$2(false, "Find more than one child node with `children` in ResizeObserver. Please use ResizeObserver.Collection instead."); else if (childNodes.length === 0) warning$2(false, "`children` of ResizeObserver is empty. Nothing is in observe."); return childNodes.map((child, index) => { const key = child?.key || `${INTERNAL_PREFIX_KEY}-${index}`; return /* @__PURE__ */ import_react.createElement(RefSingleObserver, _extends$99({}, props, { key, ref: index === 0 ? ref : void 0 }), child); }); } var RefResizeObserver = /* @__PURE__ */ import_react.forwardRef(ResizeObserver$1); RefResizeObserver.displayName = "ResizeObserver"; RefResizeObserver.Collection = Collection; //#endregion //#region node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js function _arrayLikeToArray$34(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/arrayWithoutHoles.js function _arrayWithoutHoles$8(r) { if (Array.isArray(r)) return _arrayLikeToArray$34(r); } //#endregion //#region node_modules/@babel/runtime/helpers/esm/iterableToArray.js function _iterableToArray$8(r) { if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r); } //#endregion //#region node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js function _unsupportedIterableToArray$34(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$34(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$34(r, a) : void 0; } } //#endregion //#region node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js function _nonIterableSpread$8() { throw new TypeError("Invalid attempt to spread 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/toConsumableArray.js function _toConsumableArray$8(r) { return _arrayWithoutHoles$8(r) || _iterableToArray$8(r) || _unsupportedIterableToArray$34(r) || _nonIterableSpread$8(); } //#endregion //#region node_modules/@rc-component/util/es/raf.js var raf = (callback) => +setTimeout(callback, 16); var caf = (num) => clearTimeout(num); if (typeof window !== "undefined" && "requestAnimationFrame" in window) { raf = (callback) => window.requestAnimationFrame(callback); caf = (handle) => window.cancelAnimationFrame(handle); } var rafUUID = 0; var rafIds = /* @__PURE__ */ new Map(); function cleanup(id) { rafIds.delete(id); } var wrapperRaf = (callback, times = 1) => { rafUUID += 1; const id = rafUUID; function callRef(leftTimes) { if (leftTimes === 0) { cleanup(id); callback(); } else { const realId = raf(() => { callRef(leftTimes - 1); }); rafIds.set(id, realId); } } callRef(times); return id; }; wrapperRaf.cancel = (id) => { const realId = rafIds.get(id); cleanup(id); return caf(realId); }; wrapperRaf.ids = () => rafIds; //#endregion //#region node_modules/antd/es/_util/throttleByAnimationFrame.js function throttleByAnimationFrame(fn) { let requestId = null; const later = (args) => () => { requestId = null; fn.apply(void 0, _toConsumableArray$8(args)); }; const throttled = (...args) => { if (requestId === null) requestId = wrapperRaf(later(args)); }; throttled.cancel = () => { wrapperRaf.cancel(requestId); requestId = null; }; return throttled; } var defaultIconPrefixCls = "anticon"; var Variants = [ "outlined", "borderless", "filled", "underlined" ]; var defaultGetPrefixCls = (suffixCls, customizePrefixCls) => { if (customizePrefixCls) return customizePrefixCls; return suffixCls ? `ant-${suffixCls}` : "ant"; }; var ConfigContext = /* @__PURE__ */ import_react.createContext({ getPrefixCls: defaultGetPrefixCls, iconPrefixCls: defaultIconPrefixCls }); var { Consumer: ConfigConsumer } = ConfigContext; var EMPTY_OBJECT = {}; /** * Get ConfigProvider configured component props. * This help to reduce bundle size for saving `?.` operator. * Do not use as `useMemo` deps since we do not cache the object here. * * NOTE: not refactor this with `useMemo` since memo will cost another memory space, * which will waste both compare calculation & memory. */ function useComponentConfig(propName) { const context = import_react.useContext(ConfigContext); const { getPrefixCls, direction, getPopupContainer, renderEmpty } = context; return { classNames: EMPTY_OBJECT, styles: EMPTY_OBJECT, ...context[propName], getPrefixCls, direction, getPopupContainer, renderEmpty }; } //#endregion //#region node_modules/@emotion/hash/dist/hash.browser.esm.js function murmur2(str) { var h = 0; var k, i = 0, len = str.length; for (; len >= 4; ++i, len -= 4) { k = str.charCodeAt(i) & 255 | (str.charCodeAt(++i) & 255) << 8 | (str.charCodeAt(++i) & 255) << 16 | (str.charCodeAt(++i) & 255) << 24; k = (k & 65535) * 1540483477 + ((k >>> 16) * 59797 << 16); k ^= k >>> 24; h = (k & 65535) * 1540483477 + ((k >>> 16) * 59797 << 16) ^ (h & 65535) * 1540483477 + ((h >>> 16) * 59797 << 16); } switch (len) { case 3: h ^= (str.charCodeAt(i + 2) & 255) << 16; case 2: h ^= (str.charCodeAt(i + 1) & 255) << 8; case 1: h ^= str.charCodeAt(i) & 255; h = (h & 65535) * 1540483477 + ((h >>> 16) * 59797 << 16); } h ^= h >>> 13; h = (h & 65535) * 1540483477 + ((h >>> 16) * 59797 << 16); return ((h ^ h >>> 15) >>> 0).toString(36); } //#endregion //#region node_modules/@rc-component/util/es/isEqual.js /** * Deeply compares two object literals. * @param obj1 object 1 * @param obj2 object 2 * @param shallow shallow compare * @returns */ function isEqual(obj1, obj2, shallow = false) { const refSet = /* @__PURE__ */ new Set(); function deepEqual(a, b, level = 1) { const circular = refSet.has(a); warningOnce(!circular, "Warning: There may be circular references"); if (circular) return false; if (a === b) return true; if (shallow && level > 1) return false; refSet.add(a); const newLevel = level + 1; if (Array.isArray(a)) { if (!Array.isArray(b) || a.length !== b.length) return false; for (let i = 0; i < a.length; i++) if (!deepEqual(a[i], b[i], newLevel)) return false; return true; } if (a && b && typeof a === "object" && typeof b === "object") { const keys = Object.keys(a); if (keys.length !== Object.keys(b).length) return false; return keys.every((key) => deepEqual(a[key], b[key], newLevel)); } return false; } return deepEqual(obj1, obj2); } //#endregion //#region node_modules/@ant-design/cssinjs/es/Cache.js var SPLIT$1 = "%"; /** Connect key with `SPLIT` */ function pathKey(keys) { return keys.join(SPLIT$1); } /** Record update id for extract static style order. */ var updateId = 0; var Entity = class { instanceId; constructor(instanceId) { this.instanceId = instanceId; } /** @private Internal cache map. Do not access this directly */ cache = /* @__PURE__ */ new Map(); /** @private Record update times for each key */ updateTimes = /* @__PURE__ */ new Map(); extracted = /* @__PURE__ */ new Set(); get(keys) { return this.opGet(pathKey(keys)); } /** A fast get cache with `get` concat. */ opGet(keyPathStr) { return this.cache.get(keyPathStr) || null; } update(keys, valueFn) { return this.opUpdate(pathKey(keys), valueFn); } /** A fast get cache with `get` concat. */ opUpdate(keyPathStr, valueFn) { const nextValue = valueFn(this.cache.get(keyPathStr)); if (nextValue === null) { this.cache.delete(keyPathStr); this.updateTimes.delete(keyPathStr); } else { this.cache.set(keyPathStr, nextValue); this.updateTimes.set(keyPathStr, updateId); updateId += 1; } } }; //#endregion //#region node_modules/@ant-design/cssinjs/es/StyleContext.js var ATTR_TOKEN = "data-token-hash"; var ATTR_MARK = "data-css-hash"; var ATTR_CACHE_PATH = "data-cache-path"; var CSS_IN_JS_INSTANCE = "__cssinjs_instance__"; function createCache() { const cssinjsInstanceId = Math.random().toString(12).slice(2); if (typeof document !== "undefined" && document.head && document.body) { const styles = document.body.querySelectorAll(`style[data-css-hash]`) || []; const { firstChild } = document.head; Array.from(styles).forEach((style) => { style[CSS_IN_JS_INSTANCE] ||= cssinjsInstanceId; if (style["__cssinjs_instance__"] === cssinjsInstanceId) document.head.insertBefore(style, firstChild); }); const styleHash = {}; Array.from(document.querySelectorAll(`style[${ATTR_MARK}]`)).forEach((style) => { const hash = style.getAttribute(ATTR_MARK); if (styleHash[hash]) { if (style["__cssinjs_instance__"] === cssinjsInstanceId) style.parentNode?.removeChild(style); } else styleHash[hash] = true; }); } return new Entity(cssinjsInstanceId); } var StyleContext = /* @__PURE__ */ import_react.createContext({ hashPriority: "low", cache: createCache(), defaultCache: true, autoPrefix: false }); //#endregion //#region node_modules/@ant-design/cssinjs/es/theme/ThemeCache.js function sameDerivativeOption(left, right) { if (left.length !== right.length) return false; for (let i = 0; i < left.length; i++) if (left[i] !== right[i]) return false; return true; } var ThemeCache = class ThemeCache { static MAX_CACHE_SIZE = 20; static MAX_CACHE_OFFSET = 5; cache; keys; cacheCallTimes; constructor() { this.cache = /* @__PURE__ */ new Map(); this.keys = []; this.cacheCallTimes = 0; } size() { return this.keys.length; } internalGet(derivativeOption, updateCallTimes = false) { let cache = { map: this.cache }; derivativeOption.forEach((derivative) => { if (!cache) cache = void 0; else cache = cache?.map?.get(derivative); }); if (cache?.value && updateCallTimes) cache.value[1] = this.cacheCallTimes++; return cache?.value; } get(derivativeOption) { return this.internalGet(derivativeOption, true)?.[0]; } has(derivativeOption) { return !!this.internalGet(derivativeOption); } set(derivativeOption, value) { if (!this.has(derivativeOption)) { if (this.size() + 1 > ThemeCache.MAX_CACHE_SIZE + ThemeCache.MAX_CACHE_OFFSET) { const [targetKey] = this.keys.reduce((result, key) => { const [, callTimes] = result; if (this.internalGet(key)[1] < callTimes) return [key, this.internalGet(key)[1]]; return result; }, [this.keys[0], this.cacheCallTimes]); this.delete(targetKey); } this.keys.push(derivativeOption); } let cache = this.cache; derivativeOption.forEach((derivative, index) => { if (index === derivativeOption.length - 1) cache.set(derivative, { value: [value, this.cacheCallTimes++] }); else { const cacheValue = cache.get(derivative); if (!cacheValue) cache.set(derivative, { map: /* @__PURE__ */ new Map() }); else if (!cacheValue.map) cacheValue.map = /* @__PURE__ */ new Map(); cache = cache.get(derivative).map; } }); } deleteByPath(currentCache, derivatives) { const cache = currentCache.get(derivatives[0]); if (derivatives.length === 1) { if (!cache.map) currentCache.delete(derivatives[0]); else currentCache.set(derivatives[0], { map: cache.map }); return cache.value?.[0]; } const result = this.deleteByPath(cache.map, derivatives.slice(1)); if ((!cache.map || cache.map.size === 0) && !cache.value) currentCache.delete(derivatives[0]); return result; } delete(derivativeOption) { if (this.has(derivativeOption)) { this.keys = this.keys.filter((item) => !sameDerivativeOption(item, derivativeOption)); return this.deleteByPath(this.cache, derivativeOption); } } }; //#endregion //#region node_modules/@ant-design/cssinjs/es/theme/Theme.js var uuid$4 = 0; /** * Theme with algorithms to derive tokens from design tokens. * Use `createTheme` first which will help to manage the theme instance cache. */ var Theme = class { derivatives; id; constructor(derivatives) { this.derivatives = Array.isArray(derivatives) ? derivatives : [derivatives]; this.id = uuid$4; if (derivatives.length === 0) warning$2(derivatives.length > 0, "[Ant Design CSS-in-JS] Theme should have at least one derivative function."); uuid$4 += 1; } getDerivativeToken(token) { return this.derivatives.reduce((result, derivative) => derivative(token, result), void 0); } }; //#endregion //#region node_modules/@ant-design/cssinjs/es/theme/createTheme.js var cacheThemes = new ThemeCache(); /** * Same as new Theme, but will always return same one if `derivative` not changed. */ function createTheme(derivatives) { const derivativeArr = Array.isArray(derivatives) ? derivatives : [derivatives]; if (!cacheThemes.has(derivativeArr)) cacheThemes.set(derivativeArr, new Theme(derivativeArr)); return cacheThemes.get(derivativeArr); } //#endregion //#region node_modules/@ant-design/cssinjs/es/util/index.js var resultCache = /* @__PURE__ */ new WeakMap(); var RESULT_VALUE = {}; function memoResult(callback, deps) { let current = resultCache; for (let i = 0; i < deps.length; i += 1) { const dep = deps[i]; if (!current.has(dep)) current.set(dep, /* @__PURE__ */ new WeakMap()); current = current.get(dep); } if (!current.has(RESULT_VALUE)) current.set(RESULT_VALUE, callback()); return current.get(RESULT_VALUE); } var flattenTokenCache = /* @__PURE__ */ new WeakMap(); /** * Flatten token to string, this will auto cache the result when token not change */ function flattenToken(token) { let str = flattenTokenCache.get(token) || ""; if (!str) { Object.keys(token).forEach((key) => { const value = token[key]; str += key; if (value instanceof Theme) str += value.id; else if (value && typeof value === "object") str += flattenToken(value); else str += value; }); str = murmur2(str); flattenTokenCache.set(token, str); } return str; } /** * Convert derivative token to key string */ function token2key(token, salt) { return murmur2(`${salt}_${flattenToken(token)}`); } `random-${Date.now()}-${Math.random()}`.replace(/\./g, ""); var isClientSide = canUseDom(); function unit$1(num) { if (typeof num === "number") return `${num}px`; return num; } function where(options) { const { hashCls, hashPriority = "low" } = options || {}; if (!hashCls) return ""; const hashSelector = `.${hashCls}`; return hashPriority === "low" ? `:where(${hashSelector})` : hashSelector; } var isNonNullable$1 = (val) => { return val !== void 0 && val !== null; }; /** * Get nonce value and inject it into CSS config if available. */ function injectCSPNonce(config, nonce) { const nonceStr = typeof nonce === "function" ? nonce() : nonce; if (nonceStr) return { ...config, csp: { ...config.csp, nonce: nonceStr } }; return config; } //#endregion //#region node_modules/@ant-design/cssinjs/es/util/css-variables.js var token2CSSVar = (token, prefix = "") => { return `--${prefix ? `${prefix}-` : ""}${token}`.replace(/([a-z0-9])([A-Z])/g, "$1-$2").replace(/([A-Z]+)([A-Z][a-z0-9]+)/g, "$1-$2").replace(/([a-z])([A-Z0-9])/g, "$1-$2").toLowerCase(); }; var serializeCSSVar = (cssVars, hashId, options) => { const { hashCls, hashPriority = "low", scope } = options || {}; if (!Object.keys(cssVars).length) return ""; const baseSelector = `${where({ hashCls, hashPriority })}.${hashId}`; const scopes = [scope].flat().filter(Boolean); return `${scopes.length ? scopes.map((s) => `${baseSelector}.${s}`).join(", ") : baseSelector}{${Object.entries(cssVars).map(([key, value]) => `${key}:${value};`).join("")}}`; }; var transformToken = (token, themeKey, config) => { const { hashCls, hashPriority = "low", prefix, unitless, ignore, preserve } = config || {}; const cssVars = {}; const result = {}; Object.entries(token).forEach(([key, value]) => { if (preserve?.[key]) result[key] = value; else if ((typeof value === "string" || typeof value === "number") && !ignore?.[key]) { const cssVar = token2CSSVar(key, prefix); cssVars[cssVar] = typeof value === "number" && !unitless?.[key] ? `${value}px` : String(value); result[key] = `var(${cssVar})`; } }); return [result, serializeCSSVar(cssVars, themeKey, { scope: config?.scope, hashCls, hashPriority })]; }; //#endregion //#region node_modules/@ant-design/cssinjs/es/hooks/useHMR.js var webpackHMR = false; function useDevHMR() { return webpackHMR; } if (typeof module !== "undefined" && module && module.hot && typeof window !== "undefined") { const win = typeof globalThis !== "undefined" ? globalThis : typeof window !== "undefined" ? window : null; if (win && typeof win.webpackHotUpdate === "function") { const originWebpackHotUpdate = win.webpackHotUpdate; win.webpackHotUpdate = (...args) => { webpackHMR = true; setTimeout(() => { webpackHMR = false; }, 0); return originWebpackHotUpdate(...args); }; } } //#endregion //#region node_modules/@ant-design/cssinjs/es/hooks/useGlobalCache.js var effectMap = /* @__PURE__ */ new Map(); function useGlobalCache(prefix, keyPath, cacheFn, onCacheRemove, onCacheEffect) { const { cache: globalCache } = import_react.useContext(StyleContext); const fullPathStr = pathKey([prefix, ...keyPath]); const HMRUpdate = useDevHMR(); const buildCache = (updater) => { globalCache.opUpdate(fullPathStr, (prevCache) => { const [times = 0, cache] = prevCache || [void 0, void 0]; let tmpCache = cache; if (cache && HMRUpdate) { onCacheRemove?.(tmpCache, HMRUpdate); tmpCache = null; } const data = [times, tmpCache || cacheFn()]; return updater ? updater(data) : data; }); }; import_react.useMemo(() => { buildCache(); }, [fullPathStr]); let cacheEntity = globalCache.opGet(fullPathStr); if (!cacheEntity) { buildCache(); cacheEntity = globalCache.opGet(fullPathStr); } const cacheContent = cacheEntity[1]; (0, import_react.useInsertionEffect)(() => { buildCache(([times, cache]) => [times + 1, cache]); if (!effectMap.has(fullPathStr)) { onCacheEffect?.(cacheContent); effectMap.set(fullPathStr, true); Promise.resolve().then(() => { effectMap.delete(fullPathStr); }); } return () => { globalCache.opUpdate(fullPathStr, (prevCache) => { const [times = 0, cache] = prevCache || []; if (times - 1 === 0) { onCacheRemove?.(cache, false); effectMap.delete(fullPathStr); return null; } return [times - 1, cache]; }); }; }, [fullPathStr]); return cacheContent; } //#endregion //#region node_modules/@ant-design/cssinjs/es/hooks/useCacheToken.js var EMPTY_OVERRIDE = {}; var hashPrefix = "css-dev-only-do-not-override"; var tokenKeys = /* @__PURE__ */ new Map(); function recordCleanToken(tokenKey) { tokenKeys.set(tokenKey, (tokenKeys.get(tokenKey) || 0) + 1); } function removeStyleTags(key, instanceId) { if (typeof document !== "undefined") document.querySelectorAll(`style[${ATTR_TOKEN}="${key}"]`).forEach((style) => { if (style["__cssinjs_instance__"] === instanceId) style.parentNode?.removeChild(style); }); } var TOKEN_THRESHOLD = -1; function cleanTokenStyle(tokenKey, instanceId) { tokenKeys.set(tokenKey, (tokenKeys.get(tokenKey) || 0) - 1); const cleanableKeyList = /* @__PURE__ */ new Set(); tokenKeys.forEach((value, key) => { if (value <= 0) cleanableKeyList.add(key); }); if (tokenKeys.size - cleanableKeyList.size > TOKEN_THRESHOLD) cleanableKeyList.forEach((key) => { removeStyleTags(key, instanceId); tokenKeys.delete(key); }); } var getComputedToken$1 = (originToken, overrideToken, theme, format) => { let mergedDerivativeToken = { ...theme.getDerivativeToken(originToken), ...overrideToken }; if (format) mergedDerivativeToken = format(mergedDerivativeToken); return mergedDerivativeToken; }; var TOKEN_PREFIX = "token"; /** * Cache theme derivative token as global shared one * @param theme Theme entity * @param tokens List of tokens, used for cache. Please do not dynamic generate object directly * @param option Additional config * @returns Call Theme.getDerivativeToken(tokenObject) to get token */ function useCacheToken(theme, tokens, option) { const { cache: { instanceId }, container, hashPriority } = (0, import_react.useContext)(StyleContext); const { salt = "", override = EMPTY_OVERRIDE, formatToken, getComputedToken: compute, cssVar, nonce } = option; const mergedToken = memoResult(() => Object.assign({}, ...tokens), tokens); const tokenStr = flattenToken(mergedToken); const overrideTokenStr = flattenToken(override); const cssVarStr = flattenToken(cssVar); return useGlobalCache(TOKEN_PREFIX, [ salt, theme.id, tokenStr, overrideTokenStr, cssVarStr ], () => { const mergedDerivativeToken = compute ? compute(mergedToken, override, theme) : getComputedToken$1(mergedToken, override, theme, formatToken); const actualToken = { ...mergedDerivativeToken }; const mergedSalt = `${salt}_${cssVar.prefix}`; const hashId = murmur2(mergedSalt); const hashCls = `${hashPrefix}-${hashId}`; actualToken._tokenKey = token2key(actualToken, mergedSalt); const [tokenWithCssVar, cssVarsStr] = transformToken(mergedDerivativeToken, cssVar.key, { prefix: cssVar.prefix, ignore: cssVar.ignore, unitless: cssVar.unitless, preserve: cssVar.preserve, hashPriority, hashCls: cssVar.hashed ? hashCls : void 0 }); tokenWithCssVar._hashId = hashId; recordCleanToken(cssVar.key); return [ tokenWithCssVar, hashCls, actualToken, cssVarsStr, cssVar.key ]; }, ([, , , , themeKey]) => { cleanTokenStyle(themeKey, instanceId); }, ([, , , cssVarsStr, themeKey]) => { if (!cssVarsStr) return; let mergedCSSConfig = { mark: ATTR_MARK, prepend: "queue", attachTo: container, priority: -999 }; mergedCSSConfig = injectCSPNonce(mergedCSSConfig, nonce); const style = updateCSS(cssVarsStr, murmur2(`css-var-${themeKey}`), mergedCSSConfig); style[CSS_IN_JS_INSTANCE] = instanceId; style.setAttribute(ATTR_TOKEN, themeKey); }); } //#endregion //#region node_modules/@emotion/unitless/dist/unitless.browser.esm.js var unitlessKeys = { animationIterationCount: 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, 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 }; //#endregion //#region node_modules/stylis/src/Enum.js var MS = "-ms-"; var MOZ = "-moz-"; var WEBKIT = "-webkit-"; var COMMENT = "comm"; var RULESET = "rule"; var DECLARATION = "decl"; var IMPORT = "@import"; var NAMESPACE = "@namespace"; var KEYFRAMES = "@keyframes"; var LAYER = "@layer"; //#endregion //#region node_modules/stylis/src/Utility.js /** * @param {number} * @return {number} */ var abs = Math.abs; /** * @param {number} * @return {string} */ var from = String.fromCharCode; /** * @param {object} * @return {object} */ var assign = Object.assign; /** * @param {string} value * @param {number} length * @return {number} */ function hash(value, length) { return charat(value, 0) ^ 45 ? (((length << 2 ^ charat(value, 0)) << 2 ^ charat(value, 1)) << 2 ^ charat(value, 2)) << 2 ^ charat(value, 3) : 0; } /** * @param {string} value * @return {string} */ function trim(value) { return value.trim(); } /** * @param {string} value * @param {RegExp} pattern * @return {string?} */ function match$1(value, pattern) { return (value = pattern.exec(value)) ? value[0] : value; } /** * @param {string} value * @param {(string|RegExp)} pattern * @param {string} replacement * @return {string} */ function replace(value, pattern, replacement) { return value.replace(pattern, replacement); } /** * @param {string} value * @param {string} search * @return {number} */ function indexof(value, search) { return value.indexOf(search); } /** * @param {string} value * @param {number} index * @return {number} */ function charat(value, index) { return value.charCodeAt(index) | 0; } /** * @param {string} value * @param {number} begin * @param {number} end * @return {string} */ function substr(value, begin, end) { return value.slice(begin, end); } /** * @param {string} value * @return {number} */ function strlen(value) { return value.length; } /** * @param {any[]} value * @return {number} */ function sizeof(value) { return value.length; } /** * @param {any} value * @param {any[]} array * @return {any} */ function append(value, array) { return array.push(value), value; } /** * @param {string[]} array * @param {function} callback * @return {string} */ function combine(array, callback) { return array.map(callback).join(""); } /** * @param {string[]} array * @param {RegExp} pattern * @return {string[]} */ function filter$1(array, pattern) { return array.filter(function(value) { return !match$1(value, pattern); }); } //#endregion //#region node_modules/stylis/src/Tokenizer.js var line = 1; var column = 1; var length = 0; var position$1 = 0; var character = 0; var characters = ""; /** * @param {string} value * @param {object | null} root * @param {object | null} parent * @param {string} type * @param {string[] | string} props * @param {object[] | string} children * @param {object[]} siblings * @param {number} length */ function node(value, root, parent, type, props, children, length, siblings) { return { value, root, parent, type, props, children, line, column, length, return: "", siblings }; } /** * @param {object} root * @param {object} props * @return {object} */ function copy$1(root, props) { return assign(node("", null, null, "", null, null, 0, root.siblings), root, { length: -root.length }, props); } /** * @param {object} root */ function lift(root) { while (root.root) root = copy$1(root.root, { children: [root] }); append(root, root.siblings); } /** * @return {number} */ function char() { return character; } /** * @return {number} */ function prev() { character = position$1 > 0 ? charat(characters, --position$1) : 0; if (column--, character === 10) column = 1, line--; return character; } /** * @return {number} */ function next() { character = position$1 < length ? charat(characters, position$1++) : 0; if (column++, character === 10) column = 1, line++; return character; } /** * @return {number} */ function peek() { return charat(characters, position$1); } /** * @return {number} */ function caret() { return position$1; } /** * @param {number} begin * @param {number} end * @return {string} */ function slice(begin, end) { return substr(characters, begin, end); } /** * @param {number} type * @return {number} */ function token(type) { switch (type) { 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; } /** * @param {string} value * @return {any[]} */ function alloc(value) { return line = column = 1, length = strlen(characters = value), position$1 = 0, []; } /** * @param {any} value * @return {any} */ function dealloc(value) { return characters = "", value; } /** * @param {number} type * @return {string} */ function delimit(type) { return trim(slice(position$1 - 1, delimiter(type === 91 ? type + 2 : type === 40 ? type + 1 : type))); } /** * @param {number} type * @return {string} */ function whitespace$1(type) { while (character = peek()) if (character < 33) next(); else break; return token(type) > 2 || token(character) > 3 ? "" : " "; } /** * @param {number} index * @param {number} count * @return {string} */ function escaping(index, count) { while (--count && next()) if (character < 48 || character > 102 || character > 57 && character < 65 || character > 70 && character < 97) break; return slice(index, caret() + (count < 6 && peek() == 32 && next() == 32)); } /** * @param {number} type * @return {number} */ function delimiter(type) { while (next()) switch (character) { case type: return position$1; case 34: case 39: if (type !== 34 && type !== 39) delimiter(character); break; case 40: if (type === 41) delimiter(type); break; case 92: next(); break; } return position$1; } /** * @param {number} type * @param {number} index * @return {number} */ function commenter(type, index) { while (next()) if (type + character === 57) break; else if (type + character === 84 && peek() === 47) break; return "/*" + slice(index, position$1 - 1) + "*" + from(type === 47 ? type : next()); } /** * @param {number} index * @return {string} */ function identifier(index) { while (!token(peek())) next(); return slice(index, position$1); } //#endregion //#region node_modules/stylis/src/Parser.js /** * @param {string} value * @return {object[]} */ function compile(value) { return dealloc(parse("", null, null, null, [""], value = alloc(value), 0, [0], value)); } /** * @param {string} value * @param {object} root * @param {object?} parent * @param {string[]} rule * @param {string[]} rules * @param {string[]} rulesets * @param {number[]} pseudo * @param {number[]} points * @param {string[]} declarations * @return {object} */ function parse(value, root, parent, rule, rules, rulesets, pseudo, points, declarations) { var index = 0; var offset = 0; var length = pseudo; var atrule = 0; var property = 0; var previous = 0; var variable = 1; var scanning = 1; var ampersand = 1; var parens = 0; var character = 0; var type = ""; var props = rules; var children = rulesets; var reference = rule; var characters = type; while (scanning) switch (previous = character, character = next()) { case 40: if (previous != 108 && charat(characters, length - 1) == 58) parens++, characters += "("; else characters += delimit(character); break; case 41: parens--, characters += ")"; break; case 34: case 39: case 91: characters += delimit(character); break; case 9: case 10: case 13: case 32: if (parens > 0) { characters += from(character); break; } characters += whitespace$1(previous); break; case 92: characters += escaping(caret() - 1, 7); continue; case 47: switch (peek()) { case 42: case 47: append(comment(commenter(next(), caret()), root, parent, declarations), declarations); if ((token(previous || 1) == 5 || token(peek() || 1) == 5) && strlen(characters) && substr(characters, -1, void 0) !== " ") characters += " "; break; default: characters += "/"; } break; case 123 * variable: points[index++] = strlen(characters) * ampersand; case 125 * variable: case 59: case 0: if (parens > 0 && character) { characters += from(character); break; } switch (character) { case 0: case 125: scanning = 0; case 59 + offset: if (ampersand == -1) characters = replace(characters, /\f/g, ""); if (property > 0 && (strlen(characters) - length || variable === 0)) append(property > 32 ? declaration(characters + ";", rule, parent, length - 1, declarations) : declaration(replace(characters, " ", "") + ";", rule, parent, length - 2, declarations), declarations); break; case 59: characters += ";"; default: append(reference = ruleset(characters, root, parent, index, offset, rules, points, type, props = [], children = [], length, rulesets), rulesets); if (character === 123) if (offset === 0) parse(characters, root, reference, reference, props, rulesets, length, points, children); else { switch (atrule) { case 99: if (charat(characters, 3) === 110) break; case 108: if (charat(characters, 2) === 97) break; default: offset = 0; case 100: case 109: case 115: } if (offset) parse(value, reference, reference, rule && append(ruleset(value, reference, reference, 0, 0, rules, points, type, rules, props = [], length, children), children), rules, children, length, points, rule ? props : children); else parse(characters, reference, reference, reference, [""], children, 0, points, children); } } index = offset = property = 0, variable = ampersand = 1, type = characters = "", length = pseudo; break; case 58: length = 1 + strlen(characters), property = previous; default: if (variable < 1) { if (character == 123) --variable; else if (character == 125 && variable++ == 0 && prev() == 125) continue; } switch (characters += from(character), character * variable) { case 38: ampersand = offset > 0 ? 1 : (characters += "\f", -1); break; case 44: if (parens > 0) break; points[index++] = (strlen(characters) - 1) * ampersand, ampersand = 1; break; case 64: if (peek() === 45) characters += delimit(next()); atrule = peek(), offset = length = strlen(type = characters += identifier(caret())), character++; break; case 45: if (previous === 45 && strlen(characters) == 2) variable = 0; } } return rulesets; } /** * @param {string} value * @param {object} root * @param {object?} parent * @param {number} index * @param {number} offset * @param {string[]} rules * @param {number[]} points * @param {string} type * @param {string[]} props * @param {string[]} children * @param {number} length * @param {object[]} siblings * @return {object} */ function ruleset(value, root, parent, index, offset, rules, points, type, props, children, length, siblings) { var post = offset - 1; var rule = offset === 0 ? rules : [""]; var size = sizeof(rule); for (var i = 0, j = 0, k = 0; i < index; ++i) for (var x = 0, y = substr(value, post + 1, post = abs(j = points[i])), z = value; x < size; ++x) if (z = trim(j > 0 ? rule[x] + " " + y : replace(y, /&\f/g, rule[x]))) props[k++] = z; return node(value, root, parent, offset === 0 ? RULESET : type, props, children, length, siblings); } /** * @param {number} value * @param {object} root * @param {object?} parent * @param {object[]} siblings * @return {object} */ function comment(value, root, parent, siblings) { return node(value, root, parent, COMMENT, from(char()), substr(value, 2, -2), 0, siblings); } /** * @param {string} value * @param {object} root * @param {object?} parent * @param {number} length * @param {object[]} siblings * @return {object} */ function declaration(value, root, parent, length, siblings) { return node(value, root, parent, DECLARATION, substr(value, 0, length), substr(value, length + 1, -1), length, siblings); } //#endregion //#region node_modules/stylis/src/Prefixer.js /** * @param {string} value * @param {number} length * @param {object[]} children * @return {string} */ function prefix(value, length, children) { switch (hash(value, length)) { case 5103: return WEBKIT + "print-" + value + value; 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 4215: case 6389: case 5109: case 5365: case 5621: case 3829: case 6391: case 5879: case 5623: case 6135: case 4599: return WEBKIT + value + value; case 4855: return WEBKIT + value.replace("add", "source-over").replace("substract", "source-out").replace("intersect", "source-in").replace("exclude", "xor") + value; case 4789: return MOZ + value + value; case 5349: case 4246: case 4810: case 6968: case 2756: return WEBKIT + value + MOZ + value + MS + value + value; case 5936: switch (charat(value, length + 11)) { case 114: return WEBKIT + value + MS + replace(value, /[svh]\w+-[tblr]{2}/, "tb") + value; case 108: return WEBKIT + value + MS + replace(value, /[svh]\w+-[tblr]{2}/, "tb-rl") + value; case 45: return WEBKIT + value + MS + replace(value, /[svh]\w+-[tblr]{2}/, "lr") + value; } case 6828: case 4268: case 2903: return WEBKIT + value + MS + value + value; case 6165: return WEBKIT + value + MS + "flex-" + value + value; case 5187: return WEBKIT + value + replace(value, /(\w+).+(:[^]+)/, WEBKIT + "box-$1$2" + MS + "flex-$1$2") + value; case 5443: return WEBKIT + value + MS + "flex-item-" + replace(value, /flex-|-self/g, "") + (!match$1(value, /flex-|baseline/) ? MS + "grid-row-" + replace(value, /flex-|-self/g, "") : "") + value; case 4675: return WEBKIT + value + MS + "flex-line-pack" + replace(value, /align-content|flex-|-self/g, "") + value; case 5548: return WEBKIT + value + MS + replace(value, "shrink", "negative") + value; case 5292: return WEBKIT + value + MS + replace(value, "basis", "preferred-size") + value; case 6060: return WEBKIT + "box-" + replace(value, "-grow", "") + WEBKIT + value + MS + replace(value, "grow", "positive") + value; case 4554: return WEBKIT + replace(value, /([^-])(transform)/g, "$1" + WEBKIT + "$2") + value; case 6187: return replace(replace(replace(value, /(zoom-|grab)/, WEBKIT + "$1"), /(image-set)/, WEBKIT + "$1"), value, "") + value; case 5495: case 3959: return replace(value, /(image-set\([^]*)/, WEBKIT + "$1$`$1"); case 4968: return replace(replace(value, /(.+:)(flex-)?(.*)/, WEBKIT + "box-pack:$3" + MS + "flex-pack:$3"), /space-between/, "justify") + WEBKIT + value + value; case 4200: if (!match$1(value, /flex-|baseline/)) return MS + "grid-column-align" + substr(value, length) + value; break; case 2592: case 3360: return MS + replace(value, "template-", "") + value; case 4384: case 3616: if (children && children.some(function(element, index) { return length = index, match$1(element.props, /grid-\w+-end/); })) return ~indexof(value + (children = children[length].value), "span") ? value : MS + replace(value, "-start", "") + value + MS + "grid-row-span:" + (~indexof(children, "span") ? match$1(children, /\d+/) : +match$1(children, /\d+/) - +match$1(value, /\d+/)) + ";"; return MS + replace(value, "-start", "") + value; case 4896: case 4128: return children && children.some(function(element) { return match$1(element.props, /grid-\w+-start/); }) ? value : MS + replace(replace(value, "-end", "-span"), "span ", "") + value; case 4095: case 3583: case 4068: case 2532: return replace(value, /(.+)-inline(.+)/, WEBKIT + "$1$2") + value; 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 (strlen(value) - 1 - length > 6) switch (charat(value, length + 1)) { case 109: if (charat(value, length + 4) !== 45) break; case 102: return replace(value, /(.+:)(.+)-([^]+)/, "$1" + WEBKIT + "$2-$3$1" + MOZ + (charat(value, length + 3) == 108 ? "$3" : "$2-$3")) + value; case 115: return ~indexof(value, "stretch") ? prefix(replace(value, "stretch", "fill-available"), length, children) + value : value; } break; case 5152: case 5920: return replace(value, /(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/, function(_, a, b, c, d, e, f) { return MS + a + ":" + b + f + (c ? MS + a + "-span:" + (d ? e : +e - +b) + f : "") + value; }); case 4949: if (charat(value, length + 6) === 121) return replace(value, ":", ":" + WEBKIT) + value; break; case 6444: switch (charat(value, charat(value, 14) === 45 ? 18 : 11)) { case 120: return replace(value, /(.+:)([^;\s!]+)(;|(\s+)?!.+)?/, "$1" + WEBKIT + (charat(value, 14) === 45 ? "inline-" : "") + "box$3$1" + WEBKIT + "$2$3$1" + MS + "$2box$3") + value; case 100: return replace(value, ":", ":" + MS) + value; } break; case 5719: case 2647: case 2135: case 3927: case 2391: return replace(value, "scroll-", "scroll-snap-") + value; } return value; } //#endregion //#region node_modules/stylis/src/Serializer.js /** * @param {object[]} children * @param {function} callback * @return {string} */ function serialize(children, callback) { var output = ""; for (var i = 0; i < children.length; i++) output += callback(children[i], i, children, callback) || ""; return output; } /** * @param {object} element * @param {number} index * @param {object[]} children * @param {function} callback * @return {string} */ function stringify$2(element, index, children, callback) { switch (element.type) { case LAYER: if (element.children.length) break; case IMPORT: case NAMESPACE: case DECLARATION: return element.return = element.return || element.value; case COMMENT: return ""; case KEYFRAMES: return element.return = element.value + "{" + serialize(element.children, callback) + "}"; case RULESET: if (!strlen(element.value = element.props.join(","))) return ""; } return strlen(children = serialize(element.children, callback)) ? element.return = element.value + "{" + children + "}" : ""; } //#endregion //#region node_modules/stylis/src/Middleware.js /** * @param {function[]} collection * @return {function} */ function middleware(collection) { var length = sizeof(collection); return function(element, index, children, callback) { var output = ""; for (var i = 0; i < length; i++) output += collection[i](element, index, children, callback) || ""; return output; }; } /** * @param {object} element * @param {number} index * @param {object[]} children * @param {function} callback */ function prefixer(element, index, children, callback) { if (element.length > -1) { if (!element.return) switch (element.type) { case DECLARATION: element.return = prefix(element.value, element.length, children); return; case KEYFRAMES: return serialize([copy$1(element, { value: replace(element.value, "@", "@" + WEBKIT) })], callback); case RULESET: if (element.length) return combine(children = element.props, function(value) { switch (match$1(value, callback = /(::plac\w+|:read-\w+)/)) { case ":read-only": case ":read-write": lift(copy$1(element, { props: [replace(value, /:(read-\w+)/, ":" + MOZ + "$1")] })); lift(copy$1(element, { props: [value] })); assign(element, { props: filter$1(children, callback) }); break; case "::placeholder": lift(copy$1(element, { props: [replace(value, /:(plac\w+)/, ":" + WEBKIT + "input-$1")] })); lift(copy$1(element, { props: [replace(value, /:(plac\w+)/, ":" + MOZ + "$1")] })); lift(copy$1(element, { props: [replace(value, /:(plac\w+)/, MS + "input-$1")] })); lift(copy$1(element, { props: [value] })); assign(element, { props: filter$1(children, callback) }); break; } return ""; }); } } } //#endregion //#region node_modules/@ant-design/cssinjs/es/linters/utils.js function lintWarning(message, info) { const { path, parentSelectors } = info; warningOnce(false, `[Ant Design CSS-in-JS] ${path ? `Error in ${path}: ` : ""}${message}${parentSelectors.length ? ` Selector: ${parentSelectors.join(" | ")}` : ""}`); } //#endregion //#region node_modules/@ant-design/cssinjs/es/linters/contentQuotesLinter.js var linter$1 = (key, value, info) => { if (key === "content") { if (typeof value !== "string" || [ "normal", "none", "initial", "inherit", "unset" ].indexOf(value) === -1 && !/(attr|counters?|url|(((repeating-)?(linear|radial))|conic)-gradient)\(|(no-)?(open|close)-quote/.test(value) && !value.startsWith("var(") && (value.charAt(0) !== value.charAt(value.length - 1) || value.charAt(0) !== "\"" && value.charAt(0) !== "'")) lintWarning(`You seem to be using a value for 'content' without quotes, try replacing it with \`content: '"${value}"'\`.`, info); } }; //#endregion //#region node_modules/@ant-design/cssinjs/es/linters/hashedAnimationLinter.js var linter = (key, value, info) => { if (key === "animation") { if (info.hashId && value !== "none") lintWarning(`You seem to be using hashed animation '${value}', in which case 'animationName' with Keyframe as value is recommended.`, info); } }; //#endregion //#region node_modules/@ant-design/cssinjs/es/util/cacheMapUtil.js var ATTR_CACHE_MAP = "data-ant-cssinjs-cache-path"; /** * This marks style from the css file. * Which means not exist in `