var __assign = (this && this.__assign) || function () {
    __assign = Object.assign || function(t) {
        for (var s, i = 1, n = arguments.length; i < n; i++) {
            s = arguments[i];
            for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
                t[p] = s[p];
        }
        return t;
    };
    return __assign.apply(this, arguments);
};
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
    if (k2 === undefined) k2 = k;
    var desc = Object.getOwnPropertyDescriptor(m, k);
    if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
      desc = { enumerable: true, get: function() { return m[k]; } };
    }
    Object.defineProperty(o, k2, desc);
}) : (function(o, m, k, k2) {
    if (k2 === undefined) k2 = k;
    o[k2] = m[k];
}));
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
    Object.defineProperty(o, "default", { enumerable: true, value: v });
}) : function(o, v) {
    o["default"] = v;
});
var __importStar = (this && this.__importStar) || function (mod) {
    if (mod && mod.__esModule) return mod;
    var result = {};
    if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
    __setModuleDefault(result, mod);
    return result;
};
var __rest = (this && this.__rest) || function (s, e) {
    var t = {};
    for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
        t[p] = s[p];
    if (s != null && typeof Object.getOwnPropertySymbols === "function")
        for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
            if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
                t[p[i]] = s[p[i]];
        }
    return t;
};
(function (factory) {
    if (typeof module === "object" && typeof module.exports === "object") {
        var v = factory(require, exports);
        if (v !== undefined) module.exports = v;
    }
    else if (typeof define === "function" && define.amd) {
        define(["require", "exports", "react", "../context"], factory);
    }
})(function (require, exports) {
    "use strict";
    Object.defineProperty(exports, "__esModule", { value: true });
    var react_1 = __importStar(require("react"));
    var context_1 = require("../context");
    function IconTreeAgentComponent(props, ref) {
        var prefixFromContext = (0, react_1.useContext)(context_1.Context).prefix;
        var _a = props.className, className = _a === void 0 ? '' : _a, prefixFromProps = props.prefix, _b = props.width, width = _b === void 0 ? '1em' : _b, _c = props.height, height = _c === void 0 ? '1em' : _c, _d = props.useCurrentColor, useCurrentColor = _d === void 0 ? false : _d, spin = props.spin, rest = __rest(props, ["className", "prefix", "width", "height", "useCurrentColor", "spin"]);
        var prefix = prefixFromProps || prefixFromContext || 'hiagent';
        var loadingKls = spin ? " ".concat(prefix, "-icon-loading") : '';
        return react_1.default.createElement("svg", __assign({ className: "".concat(prefix, "-icon ").concat(prefix, "-icon-tree_agent").concat(loadingKls, " ").concat(className), width: width, height: height, viewBox: "0 0 24 24", fill: useCurrentColor ? 'currentColor' : 'none', xmlns: "http://www.w3.org/2000/svg" }, rest, { ref: ref }),
            react_1.default.createElement("rect", { width: "24", height: "24", rx: "6", fill: useCurrentColor ? 'currentColor' : '#A061EF' }),
            react_1.default.createElement("g", { fill: useCurrentColor ? 'currentColor' : '#fff' },
                react_1.default.createElement("path", { d: "M8.27521 8.05347C8.5625 7.43791 9.4378 7.43791 9.72509 8.05347L11.1045 11.0092C11.184 11.1794 11.3208 11.3163 11.4911 11.3958L14.4468 12.7752C15.0623 13.0624 15.0623 13.9378 14.4468 14.225L11.4911 15.6045C11.3208 15.6839 11.184 15.8208 11.1045 15.9911L9.72509 18.9468C9.4378 19.5623 8.5625 19.5623 8.27521 18.9468L6.89578 15.9911C6.81631 15.8208 6.67945 15.6839 6.50917 15.6045L3.55347 14.225C2.93791 13.9378 2.93791 13.0624 3.55347 12.7752L6.50917 11.3958C6.67945 11.3163 6.81631 11.1794 6.89578 11.0092L8.27521 8.05347zM16.9421 3.41527C17.1419 2.90878 17.8587 2.90878 18.0585 3.41527L18.6775 4.98483C18.7385 5.13947 18.8609 5.26187 19.0155 5.32286L20.5851 5.94188C21.0916 6.14164 21.0916 6.85844 20.5851 7.0582L19.0155 7.67722C18.8609 7.73821 18.7385 7.86062 18.6775 8.01525L18.0585 9.58481C17.8587 10.0913 17.1419 10.0913 16.9421 9.58481L16.3231 8.01525C16.2621 7.86061 16.1397 7.73821 15.9851 7.67722L14.4155 7.0582C13.909 6.85844 13.909 6.14164 14.4155 5.94188L15.9851 5.32286C16.1397 5.26187 16.2621 5.13946 16.3231 4.98483L16.9421 3.41527zM17.1281 14.9435C17.2613 14.6058 17.7391 14.6058 17.8723 14.9435L18.4264 16.3484C18.4671 16.4515 18.5487 16.5331 18.6518 16.5738L20.0567 17.1279C20.3944 17.2611 20.3944 17.7389 20.0567 17.8721L18.6518 18.4262C18.5487 18.4669 18.4671 18.5485 18.4264 18.6516L17.8723 20.0565C17.7391 20.3942 17.2613 20.3942 17.1281 20.0565L16.574 18.6516C16.5333 18.5485 16.4517 18.4669 16.3486 18.4262L14.9437 17.8721C14.606 17.7389 14.606 17.2611 14.9437 17.1279L16.3486 16.5738C16.4517 16.5331 16.5333 16.4515 16.574 16.3484L17.1281 14.9435z" })));
    }
    var IconTreeAgent = react_1.default.forwardRef(IconTreeAgentComponent);
    exports.default = IconTreeAgent;
});
