import React, { ForwardedRef, useContext } from 'react';
import { OriginIconProps } from '../type';
import { Context } from '../context';

function IconTreeRankModelComponent(props: OriginIconProps, ref: ForwardedRef<SVGSVGElement>) {
    const { prefix: prefixFromContext } = useContext(Context);
    const { className = '', prefix: prefixFromProps, width = '1em', height = '1em', useCurrentColor = false, spin, ...rest } = props;

    const prefix = prefixFromProps || prefixFromContext || 'hiagent';
    const loadingKls = spin ? ` ${prefix}-icon-loading` : '';
    return <svg className={`${prefix}-icon ${prefix}-icon-tree_rank_model${loadingKls} ${className}`} width={width} height={height} viewBox="0 0 24 24" fill={useCurrentColor ? 'currentColor' : 'none'} xmlns="http://www.w3.org/2000/svg" {...rest} ref={ref}><g clipPath="url(#svg_ffe9fb711b__clip0_37122_1120218)"><path fill={useCurrentColor ? 'currentColor' : '#26C998'} d="M0 0H24V24H0z"/><mask id="svg_ffe9fb711b__a" maskUnits="userSpaceOnUse" x="4" y="3.4" width="16" height="17" fill={useCurrentColor ? 'currentColor' : '#000'}><path fill={useCurrentColor ? 'currentColor' : '#fff'} d="M4 3.4H20V20.4H4z"/><path fillRule="evenodd" clipRule="evenodd" d="M19 5.50529C19 5.70876 18.8351 5.87371 18.6316 5.87371L6.47368 5.87371L6.47368 19.1369C6.47368 19.3403 6.30874 19.5053 6.10526 19.5053L5.36842 19.5053C5.16495 19.5053 5 19.3403 5 19.1369L5 4.76844C5 4.56497 5.16495 4.40002 5.36842 4.40002L18.6316 4.40002C18.8351 4.40002 19 4.56497 19 4.76845V5.50529ZM12.7366 9.55797C12.7366 9.76144 12.5717 9.92639 12.3682 9.92639L7.94716 9.92639C7.74369 9.92639 7.57874 9.76144 7.57874 9.55797L7.57874 8.82113C7.57874 8.61765 7.74369 8.45271 7.94716 8.45271L12.3682 8.45271C12.5717 8.45271 12.7366 8.61765 12.7366 8.82113L12.7366 9.55797ZM15.316 13.6105C15.316 13.814 15.151 13.9789 14.9476 13.9789L7.94758 13.9789C7.7441 13.9789 7.57915 13.814 7.57915 13.6105L7.57915 12.8737C7.57915 12.6702 7.7441 12.5052 7.94758 12.5052L14.9476 12.5052C15.151 12.5052 15.316 12.6702 15.316 12.8737L15.316 13.6105ZM17.8947 17.6632C17.8947 17.8667 17.7298 18.0316 17.5263 18.0316L7.94737 18.0316C7.7439 18.0316 7.57895 17.8667 7.57895 17.6632L7.57895 16.9263C7.57895 16.7229 7.7439 16.5579 7.94737 16.5579L17.5263 16.5579C17.7298 16.5579 17.8947 16.7229 17.8947 16.9263L17.8947 17.6632Z"/></mask><path fillRule="evenodd" clipRule="evenodd" d="M19 5.50529C19 5.70876 18.8351 5.87371 18.6316 5.87371L6.47368 5.87371L6.47368 19.1369C6.47368 19.3403 6.30874 19.5053 6.10526 19.5053L5.36842 19.5053C5.16495 19.5053 5 19.3403 5 19.1369L5 4.76844C5 4.56497 5.16495 4.40002 5.36842 4.40002L18.6316 4.40002C18.8351 4.40002 19 4.56497 19 4.76845V5.50529ZM12.7366 9.55797C12.7366 9.76144 12.5717 9.92639 12.3682 9.92639L7.94716 9.92639C7.74369 9.92639 7.57874 9.76144 7.57874 9.55797L7.57874 8.82113C7.57874 8.61765 7.74369 8.45271 7.94716 8.45271L12.3682 8.45271C12.5717 8.45271 12.7366 8.61765 12.7366 8.82113L12.7366 9.55797ZM15.316 13.6105C15.316 13.814 15.151 13.9789 14.9476 13.9789L7.94758 13.9789C7.7441 13.9789 7.57915 13.814 7.57915 13.6105L7.57915 12.8737C7.57915 12.6702 7.7441 12.5052 7.94758 12.5052L14.9476 12.5052C15.151 12.5052 15.316 12.6702 15.316 12.8737L15.316 13.6105ZM17.8947 17.6632C17.8947 17.8667 17.7298 18.0316 17.5263 18.0316L7.94737 18.0316C7.7439 18.0316 7.57895 17.8667 7.57895 17.6632L7.57895 16.9263C7.57895 16.7229 7.7439 16.5579 7.94737 16.5579L17.5263 16.5579C17.7298 16.5579 17.8947 16.7229 17.8947 16.9263L17.8947 17.6632Z" fill={useCurrentColor ? 'currentColor' : '#fff'}/><path d="M6.47368 5.87371V5.77371L6.37368 5.77371V5.87371L6.47368 5.87371ZM12.7366 9.55797H12.6366H12.7366ZM7.57874 9.55797H7.47874H7.57874ZM7.57874 8.82113H7.67874H7.57874ZM12.7366 8.82113H12.8366H12.7366ZM15.316 13.6105H15.216H15.316ZM7.57915 13.6105H7.47915H7.57915ZM7.57915 12.8737H7.67915H7.57915ZM15.316 12.8737H15.416H15.316ZM17.8947 17.6632H17.7947H17.8947ZM7.57895 17.6632H7.47895H7.57895ZM7.57895 16.9263H7.67895H7.57895ZM17.8947 16.9263H17.9947H17.8947ZM19 5.50529L18.9 5.50529C18.9 5.65353 18.7798 5.77371 18.6316 5.77371V5.87371V5.97371C18.8903 5.97371 19.1 5.76399 19.1 5.50529L19 5.50529ZM18.6316 5.87371V5.77371L6.47368 5.77371V5.87371V5.97371L18.6316 5.97371V5.87371ZM6.47368 5.87371L6.37368 5.87371L6.37368 19.1369L6.47368 19.1369L6.57368 19.1369L6.57368 5.87371L6.47368 5.87371ZM6.47368 19.1369L6.37368 19.1369C6.37368 19.2851 6.25351 19.4053 6.10526 19.4053V19.5053V19.6053C6.36397 19.6053 6.57368 19.3956 6.57368 19.1369L6.47368 19.1369ZM6.10526 19.5053V19.4053L5.36842 19.4053V19.5053V19.6053L6.10526 19.6053V19.5053ZM5.36842 19.5053V19.4053C5.22018 19.4053 5.1 19.2851 5.1 19.1369L5 19.1369L4.9 19.1369C4.9 19.3956 5.10972 19.6053 5.36842 19.6053V19.5053ZM5 19.1369L5.1 19.1369L5.1 4.76844L5 4.76844L4.9 4.76844L4.9 19.1369L5 19.1369ZM5 4.76844L5.1 4.76844C5.1 4.6202 5.22018 4.50002 5.36842 4.50002V4.40002V4.30002C5.10972 4.30002 4.9 4.50974 4.9 4.76844L5 4.76844ZM5.36842 4.40002V4.50002L18.6316 4.50002V4.40002V4.30002L5.36842 4.30002V4.40002ZM18.6316 4.40002V4.50002C18.7798 4.50002 18.9 4.6202 18.9 4.76845L19 4.76845L19.1 4.76845C19.1 4.50974 18.8903 4.30002 18.6316 4.30002V4.40002ZM19 4.76845L18.9 4.76845V5.50529L19 5.50529L19.1 5.50529V4.76845L19 4.76845ZM12.7366 9.55797H12.6366C12.6366 9.70621 12.5165 9.82639 12.3682 9.82639V9.92639V10.0264C12.6269 10.0264 12.8366 9.81667 12.8366 9.55797H12.7366ZM12.3682 9.92639V9.82639L7.94716 9.82639V9.92639V10.0264L12.3682 10.0264V9.92639ZM7.94716 9.92639V9.82639C7.79892 9.82639 7.67874 9.70621 7.67874 9.55797H7.57874H7.47874C7.47874 9.81667 7.68846 10.0264 7.94716 10.0264V9.92639ZM7.57874 9.55797L7.67874 9.55797L7.67874 8.82113L7.57874 8.82113L7.47874 8.82113L7.47874 9.55797L7.57874 9.55797ZM7.57874 8.82113H7.67874C7.67874 8.67288 7.79892 8.55271 7.94716 8.55271V8.45271V8.35271C7.68846 8.35271 7.47874 8.56243 7.47874 8.82113L7.57874 8.82113ZM7.94716 8.45271V8.55271L12.3682 8.55271V8.45271V8.35271L7.94716 8.35271V8.45271ZM12.3682 8.45271V8.55271C12.5165 8.55271 12.6366 8.67288 12.6366 8.82113H12.7366H12.8366C12.8366 8.56243 12.6269 8.35271 12.3682 8.35271V8.45271ZM12.7366 8.82113L12.6366 8.82113L12.6366 9.55797L12.7366 9.55797L12.8366 9.55797L12.8366 8.82113L12.7366 8.82113ZM15.316 13.6105H15.216C15.216 13.7587 15.0958 13.8789 14.9476 13.8789V13.9789V14.0789C15.2063 14.0789 15.416 13.8692 15.416 13.6105L15.316 13.6105ZM14.9476 13.9789V13.8789L7.94758 13.8789V13.9789V14.0789L14.9476 14.0789V13.9789ZM7.94758 13.9789V13.8789C7.79933 13.8789 7.67915 13.7587 7.67915 13.6105L7.57915 13.6105H7.47915C7.47915 13.8692 7.68887 14.0789 7.94758 14.0789V13.9789ZM7.57915 13.6105L7.67915 13.6105L7.67915 12.8737L7.57915 12.8737L7.47915 12.8737L7.47915 13.6105L7.57915 13.6105ZM7.57915 12.8737H7.67915C7.67915 12.7254 7.79933 12.6052 7.94758 12.6052V12.5052V12.4052C7.68887 12.4052 7.47915 12.615 7.47915 12.8737L7.57915 12.8737ZM7.94758 12.5052V12.6052L14.9476 12.6052V12.5052V12.4052L7.94758 12.4052V12.5052ZM14.9476 12.5052V12.6052C15.0958 12.6052 15.216 12.7254 15.216 12.8737L15.316 12.8737H15.416C15.416 12.615 15.2063 12.4052 14.9476 12.4052V12.5052ZM15.316 12.8737L15.216 12.8737L15.216 13.6105L15.316 13.6105L15.416 13.6105L15.416 12.8737L15.316 12.8737ZM17.8947 17.6632H17.7947C17.7947 17.8114 17.6746 17.9316 17.5263 17.9316V18.0316V18.1316C17.785 18.1316 17.9947 17.9219 17.9947 17.6632H17.8947ZM17.5263 18.0316V17.9316L7.94737 17.9316V18.0316V18.1316L17.5263 18.1316V18.0316ZM7.94737 18.0316V17.9316C7.79912 17.9316 7.67895 17.8114 7.67895 17.6632L7.57895 17.6632H7.47895C7.47895 17.9219 7.68867 18.1316 7.94737 18.1316V18.0316ZM7.57895 17.6632L7.67895 17.6632L7.67895 16.9263L7.57895 16.9263L7.47895 16.9263L7.47895 17.6632L7.57895 17.6632ZM7.57895 16.9263H7.67895C7.67895 16.7781 7.79912 16.6579 7.94737 16.6579V16.5579V16.4579C7.68867 16.4579 7.47895 16.6676 7.47895 16.9263H7.57895ZM7.94737 16.5579V16.6579L17.5263 16.6579V16.5579V16.4579L7.94737 16.4579V16.5579ZM17.5263 16.5579V16.6579C17.6746 16.6579 17.7947 16.7781 17.7947 16.9263H17.8947H17.9947C17.9947 16.6676 17.785 16.4579 17.5263 16.4579V16.5579ZM17.8947 16.9263L17.7947 16.9263L17.7947 17.6632L17.8947 17.6632L17.9947 17.6632L17.9947 16.9263L17.8947 16.9263Z" fill={useCurrentColor ? 'currentColor' : '#fff'} mask="url(#svg_ffe9fb711b__a)"/></g><defs><clipPath id="svg_ffe9fb711b__clip0_37122_1120218"><rect width="24" height="24" rx="6" fill={useCurrentColor ? 'currentColor' : '#fff'}/></clipPath></defs></svg>;
}

const IconTreeRankModel = React.forwardRef(IconTreeRankModelComponent);
export default IconTreeRankModel;
