import{cX as k,g as u,cY as E,cZ as L,c_ as T}from"./app-D7zH3Nl5.js";var W=["class","component","viewBox","spin","rotate","tabindex","onClick"];function f(e){for(var a=1;a<arguments.length;a++){var r=arguments[a]!=null?Object(arguments[a]):{},t=Object.keys(r);typeof Object.getOwnPropertySymbols=="function"&&(t=t.concat(Object.getOwnPropertySymbols(r).filter(function(n){return Object.getOwnPropertyDescriptor(r,n).enumerable}))),t.forEach(function(n){p(e,n,r[n])})}return e}function p(e,a,r){return a in e?Object.defineProperty(e,a,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[a]=r,e}function A(e,a){if(e==null)return{};var r=D(e,a),t,n;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)t=o[n],!(a.indexOf(t)>=0)&&Object.prototype.propertyIsEnumerable.call(e,t)&&(r[t]=e[t])}return r}function D(e,a){if(e==null)return{};var r={},t=Object.keys(e),n,o;for(o=0;o<t.length;o++)n=t[o],!(a.indexOf(n)>=0)&&(r[n]=e[n]);return r}var d=function(a,r){var t,n=r.attrs,o=r.slots,i=f({},a,n),j=i.class,b=i.component,l=i.viewBox,m=i.spin,v=i.rotate,w=i.tabindex,x=i.onClick,y=A(i,W),O=k(),C=O.prefixCls,I=O.rootClassName,s=o.default&&o.default(),P=s&&s.length,h=o.component,S=(t={},p(t,I.value,!!I.value),p(t,C.value,!0),t),B=p({},"".concat(C.value,"-spin"),m===""||!!m),_=v?{msTransform:"rotate(".concat(v,"deg)"),transform:"rotate(".concat(v,"deg)")}:void 0,c=f({},L,{viewBox:l,class:B,style:_});l||delete c.viewBox;var N=function(){return b?u(b,c,{default:function(){return[s]}}):h?h(c):P?(T(!!l||s.length===1&&s[0]&&s[0].type==="use"),u("svg",f({},c,{viewBox:l}),[s])):null},g=w;return g===void 0&&x&&(g=-1,y.tabindex=g),u("span",f({role:"img"},y,{onClick:x,class:[S,j]}),[N(),u(E,null,null)])};d.props={spin:Boolean,rotate:Number,viewBox:String,ariaLabel:String};d.inheritAttrs=!1;d.displayName="Icon";export{d as I};
