function _define_property(obj, key, value) {
    if (key in obj) {
        Object.defineProperty(obj, key, {
            value: value,
            enumerable: true,
            configurable: true,
            writable: true
        });
    } else {
        obj[key] = value;
    }
    return obj;
}
function _object_spread(target) {
    for(var i = 1; i < arguments.length; i++){
        var source = arguments[i] != null ? arguments[i] : {};
        var ownKeys = Object.keys(source);
        if (typeof Object.getOwnPropertySymbols === "function") {
            ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
                return Object.getOwnPropertyDescriptor(source, sym).enumerable;
            }));
        }
        ownKeys.forEach(function(key) {
            _define_property(target, key, source[key]);
        });
    }
    return target;
}
function ownKeys(object, enumerableOnly) {
    var keys = Object.keys(object);
    if (Object.getOwnPropertySymbols) {
        var symbols = Object.getOwnPropertySymbols(object);
        if (enumerableOnly) {
            symbols = symbols.filter(function(sym) {
                return Object.getOwnPropertyDescriptor(object, sym).enumerable;
            });
        }
        keys.push.apply(keys, symbols);
    }
    return keys;
}
function _object_spread_props(target, source) {
    source = source != null ? source : {};
    if (Object.getOwnPropertyDescriptors) {
        Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
    } else {
        ownKeys(Object(source)).forEach(function(key) {
            Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
        });
    }
    return target;
}
import { DEFAULT_TEXT_SWAP_DURATION_MS, TEXT_SWAP_EASING } from "../Components/TextSwap/constants";
import { textSwapEnterAnimationBoth, textSwapEnterKeyframes } from "../Components/TextSwap/textSwapMotion";
import { MOBILE_BREAKPOINT, MOBILE_PADDING } from "../Constants/mobile";
import { resetComponent, useEditorStyleRegister } from "../Hooks/useStyle";
// ── Table ──────────────────────────────────────────────────────────────────
var TABLE_BORDER = '1px solid var(--agentic-ui-table-border-color, #E7E9E8)';
var TABLE_RADIUS = 'var(--agentic-ui-table-border-radius, 8px)';
var TABLE_ACTION_BUTTON_SIZE = 20;
var TABLE_ACTION_BUTTON_GAP = '2px';
var TABLE_ACTION_BUTTON_ICON_SIZE = 12;
var TABLE_CELL = {
    verticalAlign: 'top',
    padding: 'var(--agentic-ui-table-cell-padding, 16px 12px)',
    textAlign: 'left',
    lineHeight: '24px',
    fontSize: '1em',
    minWidth: 'var(--agentic-ui-table-cell-min-width, 40px)',
    width: 'var(--agentic-ui-table-cell-min-width, 40px)',
    whiteSpace: 'nowrap',
    overflow: 'hidden',
    textOverflow: 'ellipsis',
    zIndex: 1,
    background: 'inherit'
};
var genTableStyle = function genTableStyle(token, mobileBreakpoint, mobilePadding) {
    var tableCls = "".concat(token.componentCls, "-content-table");
    var _obj, _obj1;
    return _object_spread_props(_object_spread((_obj1 = {}, _define_property(_obj1, tableCls, {
        width: '100%',
        maxWidth: '100%',
        minWidth: 0,
        position: 'relative',
        '&-container': _define_property({
            maxWidth: '100%',
            minWidth: 0,
            outline: 'none',
            position: 'relative',
            marginBottom: 12
        }, "&:hover ".concat(tableCls, "-readonly-table-actions"), {
            opacity: 1,
            transform: 'translateX(50%)',
            top: -24
        }),
        '&-editor-table': {
            marginTop: '1em'
        },
        '&-readonly-table-actions': {
            opacity: 0,
            position: 'absolute',
            top: 20,
            display: 'flex',
            gap: 8,
            right: '50%',
            zIndex: 1000,
            backgroundColor: 'var(--color-gray-bg-page-light)',
            borderRadius: 'var(--radius-control-base)',
            padding: '4px 8px',
            boxShadow: 'var(--shadow-control-base)',
            border: 'none',
            transform: 'translateX(50%)',
            transition: 'all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1)',
            color: 'var(--color-gray-text-default)'
        },
        // Dark theme for table actions
        '&-dark': _define_property({}, "".concat(tableCls, "-readonly-table-actions"), {
            backgroundColor: 'var(--color-gray-bg-page-dark, #1f1f1f)',
            color: 'rgba(255, 255, 255, 0.85)'
        }),
        table: (_obj = {
            borderCollapse: 'separate',
            borderSpacing: 0,
            width: 'max-content',
            tableLayout: 'fixed',
            margin: '16px 0',
            maxWidth: '100%',
            position: 'relative',
            fontVariant: 'tabular-nums',
            borderRadius: TABLE_RADIUS,
            border: TABLE_BORDER
        }, // readonly：overflow: hidden，不影响编辑态 UI
        _define_property(_obj, "&".concat(tableCls, "-readonly-table"), {
            width: '100%',
            tableLayout: 'auto',
            overflow: 'hidden',
            border: TABLE_BORDER
        }), _define_property(_obj, "th", _object_spread_props(_object_spread({}, TABLE_CELL), {
            backgroundColor: 'var(--agentic-ui-table-header-bg, #f7f7f9)',
            border: 'none',
            borderBottom: TABLE_BORDER,
            borderLeft: 'none',
            borderTop: 'none',
            fontWeight: 600
        })), _define_property(_obj, 'th:not(:first-child)', {
            borderLeft: TABLE_BORDER
        }), _define_property(_obj, 'td:not(.config-td)', _object_spread_props(_object_spread({}, TABLE_CELL), {
            position: 'relative',
            borderBottom: TABLE_BORDER,
            borderLeft: TABLE_BORDER,
            'div[data-be="paragraph"]': {
                margin: 0,
                textWrap: 'auto'
            }
        })), _define_property(_obj, 'th.config-th, td.config-td', {
            borderBottom: TABLE_BORDER,
            borderLeft: TABLE_BORDER
        }), _define_property(_obj, 'tr td.config-td:first-child', {
            borderLeft: 'none'
        }), _define_property(_obj, 'td:first-child:not(.config-td)', {
            borderLeft: 'none'
        }), _define_property(_obj, 'tr:last-child td:not(.config-td)', {
            borderBottom: 'none'
        }), _define_property(_obj, 'tr td:first-child:not(.config-td)', {
            fontWeight: 600
        }), _define_property(_obj, 'tbody tr:not(.config-tr)', {
            animation: textSwapEnterAnimationBoth(DEFAULT_TEXT_SWAP_DURATION_MS, TEXT_SWAP_EASING)
        }), _define_property(_obj, 'tbody tr:not(.config-tr):hover', {
            background: 'linear-gradient(var(--agentic-ui-table-hover-bg, rgba(0, 0, 0, 0.04)), var(--agentic-ui-table-hover-bg, rgba(0, 0, 0, 0.04))), linear-gradient(var(--agentic-ui-table-cell-bg, var(--color-gray-bg-card-white)), var(--agentic-ui-table-cell-bg, var(--color-gray-bg-card-white)))'
        }), _define_property(_obj, "@media (max-width: ".concat(mobileBreakpoint, ")"), {
            'th, td': {
                padding: mobilePadding
            }
        }), _obj)
    }), _define_property(_obj1, "".concat(token.componentCls, "-table-td"), _define_property({
        padding: '8px',
        verticalAlign: 'middle',
        wordWrap: 'break-word',
        wordBreak: 'break-all',
        overflow: 'hidden',
        textOverflow: 'ellipsis',
        whiteSpace: 'pre-wrap',
        '&[data-select="true"]:after': {
            content: '" "',
            position: 'absolute',
            top: 0,
            left: 0,
            right: 0,
            bottom: 0,
            zIndex: 2,
            pointerEvents: 'none',
            backgroundColor: 'var(--color-primary-control-fill-secondary-hover)'
        }
    }, "@media (max-width: ".concat(mobileBreakpoint, ")"), {
        padding: '2px'
    })), _define_property(_obj1, "".concat(token.componentCls, "-table-row-index"), {
        display: 'table-row'
    }), _define_property(_obj1, "".concat(token.componentCls, "-table-cell-index"), {
        width: 12,
        maxWidth: 12,
        padding: 0,
        position: 'relative',
        verticalAlign: 'middle',
        backgroundColor: 'var(--color-gray-control-fill-secondary)',
        '&:hover': {
            backgroundColor: 'var(--color-gray-control-fill-secondary-hover)'
        }
    }), _define_property(_obj1, "".concat(token.componentCls, "-table-cell-index-action-buttons"), {
        position: 'absolute',
        top: 4,
        left: -24,
        zIndex: 1000,
        alignItems: 'center',
        flexDirection: 'column',
        gap: TABLE_ACTION_BUTTON_GAP,
        opacity: 0,
        display: 'none',
        transition: 'opacity 0.2s cubic-bezier(0.645, 0.045, 0.355, 1)'
    }), _define_property(_obj1, "".concat(token.componentCls, "-table-cell-index-action-buttons-visible"), {
        opacity: 1,
        display: 'flex'
    }), _define_property(_obj1, "".concat(token.componentCls, "-table-cell-index-action-button"), {
        padding: 2,
        display: 'flex',
        alignItems: 'center',
        zIndex: 1000,
        justifyContent: 'center',
        fontSize: TABLE_ACTION_BUTTON_ICON_SIZE,
        border: TABLE_BORDER,
        width: TABLE_ACTION_BUTTON_SIZE,
        height: TABLE_ACTION_BUTTON_SIZE,
        cursor: 'pointer',
        backgroundPosition: '50%',
        backgroundRepeat: 'no-repeat',
        transition: 'color 0.2s cubic-bezier(0.645, 0.045, 0.355, 1), background-color 0.2s cubic-bezier(0.645, 0.045, 0.355, 1)',
        borderRadius: '4px',
        background: 'var(--color-gray-bg-card-white)',
        boxShadow: 'var(--shadow-border-base)',
        color: 'var(--color-gray-text-secondary)',
        '&:hover': {
            backgroundColor: 'var(--color-gray-bg-card-white)',
            boxShadow: 'var(--shadow-control-lg)'
        }
    }), _define_property(_obj1, "".concat(token.componentCls, "-table-cell-index-delete-icon"), {
        '&:hover': {
            color: 'var(--color-red-text-default)'
        }
    }), _define_property(_obj1, "".concat(token.componentCls, "-table-cell-index-insert-row-before"), {
        '&:hover': {
            color: 'var(--color-green-text-default)'
        }
    }), _define_property(_obj1, "".concat(token.componentCls, "-table-cell-index-insert-row-after"), {
        '&:hover': {
            color: 'var(--color-green-text-default)'
        }
    }), _define_property(_obj1, "".concat(token.componentCls, "-table-cell-index-spacer"), {
        cursor: 'pointer',
        backgroundColor: 'var(--color-gray-control-fill-secondary)',
        '&:hover': {
            backgroundColor: 'var(--color-gray-control-fill-secondary-hover)'
        }
    }), _define_property(_obj1, "".concat(token.componentCls, "-table-cell-index-spacer-action-buttons"), {
        position: 'absolute',
        top: -28,
        right: '50%',
        transform: 'translateX(50%)',
        zIndex: 10,
        display: 'flex',
        alignItems: 'center',
        gap: TABLE_ACTION_BUTTON_GAP,
        opacity: 0,
        transition: 'opacity 0.2s cubic-bezier(0.645, 0.045, 0.355, 1)'
    }), _define_property(_obj1, "".concat(token.componentCls, "-table-cell-index-spacer-action-buttons-visible"), {
        opacity: 1
    }), _define_property(_obj1, "".concat(token.componentCls, "-table-cell-index-spacer-action-button"), {
        padding: 2,
        display: 'flex',
        alignItems: 'center',
        justifyContent: 'center',
        fontSize: TABLE_ACTION_BUTTON_ICON_SIZE,
        border: TABLE_BORDER,
        width: TABLE_ACTION_BUTTON_SIZE,
        height: TABLE_ACTION_BUTTON_SIZE,
        cursor: 'pointer',
        backgroundPosition: '50%',
        backgroundRepeat: 'no-repeat',
        transition: 'color 0.2s cubic-bezier(0.645, 0.045, 0.355, 1), background-color 0.2s cubic-bezier(0.645, 0.045, 0.355, 1)',
        borderRadius: '4px',
        background: 'var(--color-gray-bg-card-white)',
        boxShadow: 'var(--shadow-border-base)',
        color: 'var(--color-gray-text-secondary)',
        '&:hover': {
            backgroundColor: 'var(--color-gray-bg-card-white)',
            boxShadow: 'var(--shadow-control-lg)'
        }
    }), _define_property(_obj1, "".concat(token.componentCls, "-table-cell-index-spacer-delete-icon"), {
        '&:hover': {
            color: 'var(--color-red-text-default)'
        }
    }), _define_property(_obj1, "".concat(token.componentCls, "-table-cell-index-spacer-insert-column-before"), {
        '&:hover': {
            color: 'var(--color-green-text-default)'
        }
    }), _define_property(_obj1, "".concat(token.componentCls, "-table-cell-index-spacer-insert-column-after"), {
        '&:hover': {
            color: 'var(--color-green-text-default)'
        }
    }), _obj1), textSwapEnterKeyframes), {
        '@media (prefers-reduced-motion: reduce)': _define_property({}, "".concat(tableCls, " table tbody tr:not(.config-tr)"), {
            animation: 'none'
        })
    });
};
var genStyle = function genStyle(token) {
    var _obj, _obj1;
    return _define_property({}, token.componentCls, _object_spread((_obj1 = {
        '--agentic-ui-table-cell-padding': 'var(--agentic-ui-editor-table-cell-padding-default, 6px 8px)',
        boxSizing: 'border-box',
        height: 'max-content',
        maxWidth: '100%',
        outline: 'none',
        tabSize: 4,
        position: 'relative',
        lineHeight: 1.7,
        whiteSpace: 'normal',
        // 主容器默认样式
        display: 'flex',
        flexDirection: 'column',
        maxHeight: '100%',
        font: 'var(--font-text-paragraph-lg)',
        letterSpacing: 'var(--letter-spacing-paragraph-lg, normal)',
        color: 'var(--color-gray-text-default)',
        // 全局样式
        '*': {
            scrollbarWidth: 'thin',
            scrollbarColor: 'hsl(240 5.9% 90%) transparent',
            boxSizing: 'border-box'
        },
        'div[data-composition] div:not([data-no-focus]).empty:first-child::before': {
            display: 'none'
        },
        '> *': {
            boxSizing: 'border-box',
            scrollbarWidth: 'thin',
            fontVariantNumeric: 'tabular-nums',
            WebkitTextSizeAdjust: '100%',
            msTextSizeAdjust: '100%',
            WebkitFontSmoothing: 'antialiased',
            scrollbarColor: 'hsl(#e4e4e7) transparent'
        },
        '&-edit-area': {
            outline: 'none !important'
        },
        '&-toolbar-container': {
            width: '100%',
            maxWidth: '100%',
            position: 'sticky',
            zIndex: 99,
            top: 0
        },
        '&-container': _define_property({
            // 默认 padding，可以通过 contentStyle 覆盖
            // 使用 CSS 变量，允许通过内联样式覆盖
            padding: 'var(--agentic-ui-content-padding, 4px 20px)',
            overflow: 'auto',
            display: 'flex',
            position: 'relative',
            gap: 24,
            outline: 'none'
        }, "@media (max-width: ".concat(MOBILE_BREAKPOINT, ")"), {
            padding: 'var(--agentic-ui-content-padding, 4px 4px)'
        }),
        '&-focus': {
            height: 64
        }
    }, _define_property(_obj1, "".concat(token.componentCls, "-list"), (_obj = {
        listStyle: 'disc',
        marginBottom: '0',
        marginTop: '0',
        '&-container': {
            marginTop: '0.5em',
            marginBottom: '0.5em'
        },
        'div[data-be="paragraph"]': {
            display: 'block',
            marginBottom: '0 !important',
            marginTop: '0 !important',
            paddingTop: '0 !important',
            paddingBottom: '0 !important'
        }
    }, _define_property(_obj, "li:not(".concat(token.componentCls, "-list-task) > :first-child [data-drag-handle]"), {
        paddingLeft: '2px',
        paddingRight: '12px',
        left: '-44px !important'
    }), _define_property(_obj, "li".concat(token.componentCls, "-list-task > :nth-child(2) [data-drag-handle]"), {
        paddingLeft: '2px',
        paddingRight: '10px',
        left: '-50px !important'
    }), _define_property(_obj, '&-check-item', {
        display: 'flex',
        alignItems: 'center',
        position: 'absolute',
        userSelect: 'none',
        height: '1.87em',
        left: '0',
        top: '0',
        zIndex: 10
    }), _define_property(_obj, '&-item', _define_property({
        position: 'relative',
        wordBreak: 'break-all',
        gap: '4px',
        "> [data-be='list']": {
            marginBottom: '0'
        }
    }, "&".concat(token.componentCls, "-list-task"), {
        paddingLeft: '24px',
        display: 'flex',
        alignItems: 'center'
    })), _define_property(_obj, '&.ol', _define_property({
        '&::marker': {
            color: 'var(--color-gray-text-light)'
        }
    }, "&".concat(token.componentCls, "-list"), _define_property({
        listStyle: 'decimal'
    }, "& ol".concat(token.componentCls, "-list"), _define_property({
        listStyle: 'lower-alpha',
        paddingLeft: 'var(--padding-4x)'
    }, "& ol".concat(token.componentCls, "-list"), _define_property({
        listStyle: 'lower-roman'
    }, "& ol".concat(token.componentCls, "-list"), {
        listStyle: 'decimal'
    }))))), _define_property(_obj, '&.ul', _define_property({}, "&".concat(token.componentCls, "-list"), _define_property({
        listStyle: 'disc'
    }, "& ul".concat(token.componentCls, "-list"), _define_property({
        listStyle: 'circle',
        paddingLeft: 'var(--padding-4x)'
    }, "& ul".concat(token.componentCls, "-list"), _define_property({
        listStyle: 'square'
    }, "& ul".concat(token.componentCls, "-list"), {
        listStyle: 'disc'
    }))))), _define_property(_obj, '&[data-task]', {
        listStyle: 'none !important',
        paddingLeft: '0'
    }), _obj)), // --- LinkCard (BEM: block__element) ---
    _define_property(_obj1, "".concat(token.componentCls, "-link-card"), {
        cursor: 'pointer',
        position: 'relative',
        display: 'flex',
        alignItems: 'center'
    }), _define_property(_obj1, "".concat(token.componentCls, "-link-card__container"), {
        padding: 12,
        border: '1px solid var(--color-gray-border-light)',
        borderRadius: '0.5em',
        margin: '8px 0',
        width: '100%',
        maxHeight: '120px',
        minHeight: 72,
        backgroundImage: 'linear-gradient(rgb(249, 251, 255) 0%, rgb(243, 248, 255) 100%)',
        flex: 1,
        display: 'flex',
        alignItems: 'center',
        gap: 12,
        color: 'var(--color-gray-text-default)',
        justifyContent: 'space-between',
        '& [data-icon-box]': {
            padding: '0 18px',
            color: 'var(--color-gray-text-light)',
            cursor: 'pointer',
            '&:hover': {
                color: 'var(--color-primary-control-fill-primary)'
            }
        }
    }), _define_property(_obj1, "".concat(token.componentCls, "-link-card__content"), {
        display: 'flex',
        alignItems: 'center',
        gap: 12,
        color: 'var(--color-gray-text-default)',
        fontSize: 16,
        flex: 1,
        minWidth: 0
    }), _define_property(_obj1, "".concat(token.componentCls, "-link-card__title"), {
        overflow: 'ellipsis',
        textOverflow: 'ellipsis',
        textWrap: 'nowrap',
        textDecoration: 'none',
        display: 'block',
        color: 'var(--color-gray-text-default)'
    }), _define_property(_obj1, "".concat(token.componentCls, "-link-card__description"), {
        flex: 1,
        minWidth: 0,
        marginTop: 4,
        lineHeight: '24px',
        display: 'flex',
        fontSize: 12,
        color: 'rgba(0,0,0,0.45)',
        justifyContent: 'space-between'
    }), _define_property(_obj1, "".concat(token.componentCls, "-link-card__collaborators"), {
        flex: 1,
        minWidth: 0,
        display: 'flex',
        justifyContent: 'space-between'
    }), _define_property(_obj1, "".concat(token.componentCls, "-link-card__update-time"), {
        color: 'rgba(0,0,0,0.45)',
        fontSize: 12
    }), // --- TagPopup ---
    _define_property(_obj1, "".concat(token.componentCls, "-tag-popup"), {
        position: 'relative',
        cursor: 'pointer',
        padding: '0px 4px',
        margin: '0 2px',
        display: 'inline-flex',
        font: 'var(--font-text-body-base)',
        color: 'var(--color-primary-text-secondary)',
        borderRadius: 'var(--radius-control-sm)',
        background: 'var(--color-primary-bg-tip)',
        '[data-tag-popup-input]': {
            color: 'var(--color-primary-text-default, rgba(20, 22, 28, 0.88))',
            '&:not([data-composition]).empty::before': {
                color: 'var(--color-gray-text-light, rgba(80, 94, 119, 0.53))',
                content: 'attr(title)',
                userSelect: 'none',
                position: 'absolute',
                left: '4px',
                top: 0
            },
            '&:hover::before': {
                opacity: 0.6
            },
            '&.empty::after': {
                content: 'attr(title)',
                opacity: 0,
                overflow: 'hidden',
                userSelect: 'none'
            }
        },
        '&-arrow': {
            position: 'absolute',
            right: '4px',
            top: '50%',
            transform: 'translateY(-50%)',
            color: 'var(--color-primary-text-disabled)',
            transition: 'transform 0.2s ease',
            '&.open': {
                transform: 'translateY(-50%) rotate(180deg)'
            }
        },
        '&-has-arrow': {
            paddingRight: '12px'
        },
        '&-loading': {
        }
    }), // --- Mermaid ---
    _define_property(_obj1, "".concat(token.componentCls, "-mermaid"), {
        // 基础容器样式
        height: '240px',
        minWidth: '300px',
        maxWidth: '800px',
        minHeight: '240px',
        display: 'flex',
        flexDirection: 'column',
        alignItems: 'center',
        alignSelf: 'stretch',
        zIndex: 5,
        color: 'rgb(27, 27, 27)',
        padding: '1em',
        margin: '1em 0',
        fontSize: '0.8em',
        lineHeight: '1.5',
        overflowX: 'auto',
        whiteSpace: 'pre-wrap',
        wordBreak: 'break-all',
        fontFamily: "'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace",
        wordWrap: 'break-word',
        borderRadius: '12px',
        background: 'var(--color-gray-bg-card-white)',
        boxShadow: 'var(--shadow-control-base)',
        // SVG 渲染优化
        '& svg': {
            // 节点样式
            '& .node': {
                '& rect, & circle, & ellipse, & polygon': {
                    stroke: 'var(--color-gray-text-default)',
                    strokeWidth: '1px',
                    fill: 'var(--color-gray-bg-card-white)'
                }
            },
            // 节点标签 - 更大的字体
            '& .nodeLabel': {
                fontWeight: 500,
                fill: 'var(--color-gray-text-default) !important'
            },
            // 边标签 - 稍小一些但仍然清晰
            '& .edgeLabel': {
                fill: 'var(--color-gray-text-secondary) !important'
            },
            // 专门针对流程图的文字
            '& .flowchart-label': {
                fill: 'var(--color-gray-text-default) !important'
            },
            // 针对不同类型的标签
            '& .label': {
                fill: 'var(--color-gray-text-default) !important'
            }
        },
        // 错误状态样式
        '&-error': {
            color: 'var(--color-red-text-default)',
            background: 'var(--color-red-bg-page-light)',
            border: '1px solid var(--color-red-border-default)',
            padding: '12px',
            borderRadius: '4px',
            textAlign: 'left',
            '& pre': {
                margin: '8px 0 0',
                background: 'var(--color-gray-bg-page-light)',
                padding: '8px',
                borderRadius: '4px',
                fontSize: '12px'
            }
        }
    }), _obj1), genTableStyle(token, MOBILE_BREAKPOINT, MOBILE_PADDING)));
};
/**
 * BubbleChat
 * @param prefixCls
 * @returns
 */ export function useStyle(prefixCls) {
    return useEditorStyleRegister('MarkdownEditor', function(token) {
        var editorToken = _object_spread_props(_object_spread({}, token), {
            componentCls: ".".concat(prefixCls)
        });
        return [
            resetComponent(editorToken),
            genStyle(editorToken)
        ];
    });
}
