(function(y,l){typeof exports=="object"&&typeof module<"u"?l(exports,require("vue"),require("lodash-es"),require("dayjs"),require("ant-design-vue"),require("@purge-icons/generated")):typeof define=="function"&&define.amd?define(["exports","vue","lodash-es","dayjs","ant-design-vue","@purge-icons/generated"],l):(y=typeof globalThis<"u"?globalThis:y||self,l(y.index={},y.Vue,null,null,null,y.Iconify))})(this,function(y,l,je,$e,Se,R){"use strict";const I="g";function $(e,n,t){let r=e;return n&&(r+=`__${n}`),t&&(r+=`--${t}`),r}function G(e,n=!1){const t=n?`.${I}-${e}`:`${I}-${e}`;return{b:()=>$(t),e:s=>s?$(t,s):"",m:s=>s?$(t,"",s):"",em:(s,a)=>s&&a?$(t,s,a):""}}const P="G",W=Object.prototype.toString;function Y(e,n){return W.call(e)===`[object ${n}]`}function J(e){return Y(e,"String")}for(let e=0;e<=15;e++)e.toString(16);/*!
 * is-plain-object <https://github.com/jonschlinkert/is-plain-object>
 *
 * Copyright (c) 2014-2017, Jon Schlinkert.
 * Released under the MIT License.
 */function k(e){return Object.prototype.toString.call(e)==="[object Object]"}function H(e){var n,t;return k(e)===!1?!1:(n=e.constructor,n===void 0?!0:(t=n.prototype,!(k(t)===!1||t.hasOwnProperty("isPrototypeOf")===!1)))}function j(){return j=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},j.apply(this,arguments)}function N(e,n){if(e==null)return{};var t,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n.indexOf(t=i[r])>=0||(o[t]=e[t]);return o}const w={silent:!1,logLevel:"warn"},K=["validator"],C=Object.prototype,E=C.toString,Q=C.hasOwnProperty,q=/^\s*function (\w+)/;function z(e){var n;const t=(n=e==null?void 0:e.type)!==null&&n!==void 0?n:e;if(t){const r=t.toString().match(q);return r?r[1]:""}return""}const v=H,V=e=>e;let f=V;process.env.NODE_ENV!=="production"&&(f=typeof console<"u"?function(n,t=w.logLevel){w.silent===!1&&console[t](`[VueTypes warn]: ${n}`)}:V);const m=(e,n)=>Q.call(e,n),U=Number.isInteger||function(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e},b=Array.isArray||function(e){return E.call(e)==="[object Array]"},O=e=>E.call(e)==="[object Function]",S=e=>v(e)&&m(e,"_vueTypes_name"),B=e=>v(e)&&(m(e,"type")||["_vueTypes_name","validator","default","required"].some(n=>m(e,n)));function x(e,n){return Object.defineProperty(e.bind(n),"__original",{value:e})}function h(e,n,t=!1){let r,o=!0,i="";r=v(e)?e:{type:e};const c=S(r)?r._vueTypes_name+" - ":"";if(B(r)&&r.type!==null){if(r.type===void 0||r.type===!0||!r.required&&n===void 0)return o;b(r.type)?(o=r.type.some(s=>h(s,n,!0)===!0),i=r.type.map(s=>z(s)).join(" or ")):(i=z(r),o=i==="Array"?b(n):i==="Object"?v(n):i==="String"||i==="Number"||i==="Boolean"||i==="Function"?function(s){if(s==null)return"";const a=s.constructor.toString().match(q);return a?a[1]:""}(n)===i:n instanceof r.type)}if(!o){const s=`${c}value "${n}" should be of type "${i}"`;return t===!1?(f(s),!1):s}if(m(r,"validator")&&O(r.validator)){const s=f,a=[];if(f=u=>{a.push(u)},o=r.validator(n),f=s,!o){const u=(a.length>1?"* ":"")+a.join(`
* `);return a.length=0,t===!1?(f(u),o):u}}return o}function d(e,n){const t=Object.defineProperties(n,{_vueTypes_name:{value:e,writable:!0},isRequired:{get(){return this.required=!0,this}},def:{value(o){return o===void 0?(m(this,"default")&&delete this.default,this):O(o)||h(this,o,!0)===!0?(this.default=b(o)?()=>[...o]:v(o)?()=>Object.assign({},o):o,this):(f(`${this._vueTypes_name} - invalid default value: "${o}"`),this)}}}),{validator:r}=t;return O(r)&&(t.validator=x(r,t)),t}function g(e,n){const t=d(e,n);return Object.defineProperty(t,"validate",{value(r){return O(this.validator)&&f(`${this._vueTypes_name} - calling .validate() will overwrite the current custom validator function. Validator info:
${JSON.stringify(this)}`),this.validator=x(r,this),this}})}function A(e,n,t){const r=function(a){const u={};return Object.getOwnPropertyNames(a).forEach(p=>{u[p]=Object.getOwnPropertyDescriptor(a,p)}),Object.defineProperties({},u)}(n);if(r._vueTypes_name=e,!v(t))return r;const{validator:o}=t,i=N(t,K);if(O(o)){let{validator:a}=r;a&&(a=(s=(c=a).__original)!==null&&s!==void 0?s:c),r.validator=x(a?function(u){return a.call(this,u)&&o.call(this,u)}:o,r)}var c,s;return Object.assign(r,i)}function T(e){return e.replace(/^(?!\s*$)/gm,"  ")}const X=()=>g("any",{}),Z=()=>g("function",{type:Function}),ee=()=>g("boolean",{type:Boolean}),te=()=>g("string",{type:String}),ne=()=>g("number",{type:Number}),re=()=>g("array",{type:Array}),oe=()=>g("object",{type:Object}),ie=()=>d("integer",{type:Number,validator:e=>U(e)}),se=()=>d("symbol",{validator:e=>typeof e=="symbol"});function ae(e,n="custom validation failed"){if(typeof e!="function")throw new TypeError("[VueTypes error]: You must provide a function as argument");return d(e.name||"<<anonymous function>>",{type:null,validator(t){const r=e(t);return r||f(`${this._vueTypes_name} - ${n}`),r}})}function ce(e){if(!b(e))throw new TypeError("[VueTypes error]: You must provide an array as argument.");const n=`oneOf - value should be one of "${e.join('", "')}".`,t=e.reduce((r,o)=>{if(o!=null){const i=o.constructor;r.indexOf(i)===-1&&r.push(i)}return r},[]);return d("oneOf",{type:t.length>0?t:void 0,validator(r){const o=e.indexOf(r)!==-1;return o||f(n),o}})}function le(e){if(!b(e))throw new TypeError("[VueTypes error]: You must provide an array as argument");let n=!1,t=[];for(let o=0;o<e.length;o+=1){const i=e[o];if(B(i)){if(S(i)&&i._vueTypes_name==="oneOf"&&i.type){t=t.concat(i.type);continue}if(O(i.validator)&&(n=!0),i.type===!0||!i.type){f('oneOfType - invalid usage of "true" or "null" as types.');continue}t=t.concat(i.type)}else t.push(i)}t=t.filter((o,i)=>t.indexOf(o)===i);const r=t.length>0?t:null;return d("oneOfType",n?{type:r,validator(o){const i=[],c=e.some(s=>{const a=h(S(s)&&s._vueTypes_name==="oneOf"?s.type||null:s,o,!0);return typeof a=="string"&&i.push(a),a===!0});return c||f(`oneOfType - provided value does not match any of the ${i.length} passed-in validators:
${T(i.join(`
`))}`),c}}:{type:r})}function ue(e){return d("arrayOf",{type:Array,validator(n){let t="";const r=n.every(o=>(t=h(e,o,!0),t===!0));return r||f(`arrayOf - value validation error:
${T(t)}`),r}})}function fe(e){return d("instanceOf",{type:e})}function de(e){return d("objectOf",{type:Object,validator(n){let t="";const r=Object.keys(n).every(o=>(t=h(e,n[o],!0),t===!0));return r||f(`objectOf - value validation error:
${T(t)}`),r}})}function pe(e){const n=Object.keys(e),t=n.filter(o=>{var i;return!((i=e[o])===null||i===void 0||!i.required)}),r=d("shape",{type:Object,validator(o){if(!v(o))return!1;const i=Object.keys(o);if(t.length>0&&t.some(c=>i.indexOf(c)===-1)){const c=t.filter(s=>i.indexOf(s)===-1);return f(c.length===1?`shape - required property "${c[0]}" is not defined.`:`shape - required properties "${c.join('", "')}" are not defined.`),!1}return i.every(c=>{if(n.indexOf(c)===-1)return this._vueTypes_isLoose===!0||(f(`shape - shape definition does not include a "${c}" property. Allowed keys: "${n.join('", "')}".`),!1);const s=h(e[c],o[c],!0);return typeof s=="string"&&f(`shape - "${c}" property validation error:
 ${T(s)}`),s===!0})}});return Object.defineProperty(r,"_vueTypes_isLoose",{writable:!0,value:!1}),Object.defineProperty(r,"loose",{get(){return this._vueTypes_isLoose=!0,this}}),r}const ye=["name","validate","getter"],ge=(()=>{var e;return(e=class{static get any(){return X()}static get func(){return Z().def(this.defaults.func)}static get bool(){return ee().def(this.defaults.bool)}static get string(){return te().def(this.defaults.string)}static get number(){return ne().def(this.defaults.number)}static get array(){return re().def(this.defaults.array)}static get object(){return oe().def(this.defaults.object)}static get integer(){return ie().def(this.defaults.integer)}static get symbol(){return se()}static get nullable(){return{type:null}}static extend(n){if(b(n))return n.forEach(a=>this.extend(a)),this;const{name:t,validate:r=!1,getter:o=!1}=n,i=N(n,ye);if(m(this,t))throw new TypeError(`[VueTypes error]: Type "${t}" already defined`);const{type:c}=i;if(S(c))return delete i.type,Object.defineProperty(this,t,o?{get:()=>A(t,c,i)}:{value(...a){const u=A(t,c,i);return u.validator&&(u.validator=u.validator.bind(u,...a)),u}});let s;return s=o?{get(){const a=Object.assign({},i);return r?g(t,a):d(t,a)},enumerable:!0}:{value(...a){const u=Object.assign({},i);let p;return p=r?g(t,u):d(t,u),u.validator&&(p.validator=u.validator.bind(p,...a)),p},enumerable:!0},Object.defineProperty(this,t,s)}}).defaults={},e.sensibleDefaults=void 0,e.config=w,e.custom=ae,e.oneOf=ce,e.instanceOf=fe,e.oneOfType=le,e.arrayOf=ue,e.objectOf=de,e.shape=pe,e.utils={validate:(n,t)=>h(t,n,!0)===!0,toType:(n,t,r=!1)=>r?g(n,t):d(n,t)},e})();function D(e={func:()=>{},bool:!0,string:"",number:0,array:()=>[],object:()=>({}),integer:0}){var n;return(n=class extends ge{static get sensibleDefaults(){return j({},this.defaults)}static set sensibleDefaults(t){this.defaults=t!==!1?j({},t!==!0?t:e):{}}}).defaults=j({},e),n}class Te extends D(){}D({func:void 0,bool:void 0,string:void 0,number:void 0,object:void 0,integer:void 0}).extend([{name:"style",getter:!0,type:[String,Object],default:void 0},{name:"VNodeChild",getter:!0,type:void 0}]);const ve=l.defineComponent({name:`${P}SvgIcon`,props:{prefix:{type:String,default:"icon"},name:{type:String,required:!0},size:{type:[Number,String],default:16},spin:{type:Boolean,default:!1}},setup(e){const t=G("svg-icon").b(),r=l.computed(()=>`#${e.prefix}-${e.name}`),o=l.computed(()=>{const{size:i}=e;let c=`${i}`;return c=`${c.replace("px","")}px`,{width:c,height:c}});return{symbolId:r,prefixCls:t,getStyle:o}}}),xe="",L=(e,n)=>{const t=e.__vccOpts||e;for(const[r,o]of n)t[r]=o;return t},he=["xlink:href"];function me(e,n,t,r,o,i){return l.openBlock(),l.createElementBlock("svg",{class:l.normalizeClass([e.prefixCls,e.$attrs.class,e.spin&&"svg-icon-spin"]),style:l.normalizeStyle(e.getStyle),"aria-hidden":"true"},[l.createElementVNode("use",{"xlink:href":e.symbolId},null,8,he)],6)}const F=L(ve,[["render",me]]),M="|svg",be=l.defineComponent({name:`${P}Icon`,components:{SvgIcon:F},props:{icon:String,color:String,size:{type:[String,Number],default:16},spin:{type:Boolean,default:!1},prefix:{type:String,default:""}},setup(e){const n=l.ref(null),t=l.computed(()=>{var s;return(s=e.icon)==null?void 0:s.endsWith(M)}),r=l.computed(()=>e.icon.replace(M,"")),o=l.computed(()=>`${e.prefix?e.prefix+":":""}${e.icon}`),i=async()=>{if(l.unref(t))return;const s=l.unref(n);if(!s)return;await l.nextTick();const a=l.unref(o);if(!a)return;const u=R.renderSVG(a,{});if(u)s.textContent="",s.appendChild(u);else{const p=document.createElement("span");p.className="iconify",p.dataset.icon=a,s.textContent="",s.appendChild(p)}},c=l.computed(()=>{const{size:s,color:a}=e;let u=s;return J(s)&&(u=parseInt(s,10)),{fontSize:`${u}px`,color:a,display:"inline-flex"}});return l.watch(()=>e.icon,i,{flush:"post"}),l.onMounted(i),{elRef:n,getWrapStyle:c,isSvgIcon:t,getSvgIcon:r}}}),Ie="";function Oe(e,n,t,r,o,i){const c=l.resolveComponent("SvgIcon");return e.isSvgIcon?(l.openBlock(),l.createBlock(c,{key:0,size:e.size,name:e.getSvgIcon,class:l.normalizeClass([e.$attrs.class,"anticon"]),spin:e.spin},null,8,["size","name","class","spin"])):(l.openBlock(),l.createElementBlock("span",{key:1,ref:"elRef",class:l.normalizeClass([e.$attrs.class,"app-iconify anticon",e.spin&&"app-iconify-spin"]),style:l.normalizeStyle(e.getWrapStyle)},null,6))}const _=L(be,[["render",Oe]]);_.install=function(e,n){e.component(n||_.name,_)};const _e={title:"Icon 图标",category:"通用",status:"100%",install(e){e.component(_.name,_)}};y.Icon=_,y.SvgIcon=F,y.default=_e,Object.defineProperties(y,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
