ant-design-x-vue 0.1.4 → 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.umd.js CHANGED
@@ -1,5 +1,5 @@
1
- (function(R,a){typeof exports=="object"&&typeof module<"u"?a(exports,require("vue"),require("ant-design-vue")):typeof define=="function"&&define.amd?define(["exports","vue","ant-design-vue"],a):(R=typeof globalThis<"u"?globalThis:R||self,a(R.index={},R.Vue,R.Antdv))})(this,function(R,a,O){"use strict";var iu=Object.defineProperty;var lu=(R,a,O)=>a in R?iu(R,a,{enumerable:!0,configurable:!0,writable:!0,value:O}):R[a]=O;var Ve=(R,a,O)=>lu(R,typeof a!="symbol"?a+"":a,O);var ie;const Ca=e=>{const t=e;return t.install=function(n){n.component(t.displayName||t.name,e)},e};function Kn(e){return{type:Object,default:e}}function Pt(e){return{type:Boolean,default:e}}function Sa(e,t){const n={validator:()=>!0,default:e};return n}function Zn(e){return{type:Array,default:e}}function Yn(e){return{type:String,default:e}}function va(e,t){return e?{type:e,default:t}:Sa(t)}const xa="anticon",wa=Symbol("configProvider"),$a={getPrefixCls:(e,t)=>t||(e?`ant-${e}`:"ant"),iconPrefixCls:a.computed(()=>xa),getPopupContainer:a.computed(()=>()=>document.body),direction:a.computed(()=>"ltr")},Na=()=>a.inject(wa,$a),Ta="ant";function G(){const{getPrefixCls:e,direction:t,csp:n,iconPrefixCls:r,theme:o}=Na();return{theme:o,getPrefixCls:e,direction:t,csp:n,iconPrefixCls:r}}function X(e,t){const n=Object.create(null);for(const r in e)t.includes(r)||Object.defineProperty(n,r,{enumerable:!0,get:()=>e[r]});return n}const Pa=e=>{const t=e;return t.install=function(n){n.component(t.displayName||t.name,e)},e};function ne(e){return{type:Object,default:e}}function Ot(e){return{type:Boolean,default:e}}function Oa(e,t){const n={validator:()=>!0,default:e};return n}function Qn(e){return{type:Array,default:e}}function Jn(e){return{type:String,default:e}}function Ea(e,t){return e?{type:e,default:t}:Oa(t)}const _n=Symbol("XProviderContext"),Et=a.shallowRef(),Aa=e=>{a.provide(_n,e),a.watch(e,()=>{Et.value=a.unref(e),a.triggerRef(Et)},{immediate:!0,deep:!0})},Ra=()=>a.inject(_n,a.computed(()=>Et.value||{})),Ma=a.defineComponent({props:{value:ne()},setup(e,{slots:t}){return Aa(a.computed(()=>e.value)),()=>{var n;return(n=t.default)==null?void 0:n.call(t)}}}),Ia=a.defineComponent({name:"AXConfigProvider",inheritAttrs:!1,__name:"index",props:{bubble:{},conversations:{},prompts:{},sender:{},suggestion:{},thoughtChain:{},attachments:{},welcome:{},iconPrefixCls:{},getTargetContainer:{},getPopupContainer:{},prefixCls:{},getPrefixCls:{},renderEmpty:{},transformCellText:{},csp:{},input:{},autoInsertSpaceInButton:{type:Boolean},locale:{},pageHeader:{},componentSize:{},componentDisabled:{type:Boolean},direction:{},space:{},virtual:{type:Boolean},dropdownMatchSelectWidth:{},form:{},pagination:{},theme:{},select:{},wave:{}},setup(e){const t=X(e,["attachments","bubble","conversations","prompts","suggestion","thoughtChain","welcome"]),n=a.useSlots(),r=a.computed(()=>({attachments:e.attachments,bubble:e.bubble,conversations:e.conversations,prompts:e.prompts,suggestion:e.suggestion,thoughtChain:e.thoughtChain,welcome:e.welcome})),{theme:o}=G(),i=a.computed(()=>({...(o==null?void 0:o.value)||{},...t.theme})),l=a.computed(()=>{var s;return(s=n.default)==null?void 0:s.call(n)});return()=>a.createVNode(Ma,{value:r.value},{default:()=>[a.createVNode(O.ConfigProvider,a.mergeProps(t,{theme:i.value}),{default:()=>[l.value]})]})}}),Ha={classNames:{},styles:{},className:"",style:{}},se=e=>{const t=Ra();return a.computed(()=>({...Ha,...a.unref(t)[e]}))};function L(e){const t=typeof e=="function"?e():e,n=a.ref(t);function r(o){n.value=o}return[n,r]}function ge(e){return typeof e=="string"}const Va=(e,t,n,r)=>{const[o,i]=L(""),[l,s]=L(1),c=a.computed(()=>t.value&&ge(e.value));return a.watch(e,()=>{const f=a.unref(o);i(e.value),!c.value&&ge(e.value)?s(e.value.length):ge(e.value)&&ge(f)&&e.value.indexOf(f)!==0&&s(1)}),a.watch([l,t,e],()=>{if(c.value&&ge(e.value)&&a.unref(l)<e.value.length){const f=setTimeout(()=>{s(a.unref(l)+n.value)},r.value);a.onWatcherCleanup(()=>{clearTimeout(f)})}},{immediate:!0}),[a.computed(()=>c.value&&ge(e.value)?e.value.slice(0,a.unref(l)):e.value),a.computed(()=>c.value&&ge(e.value)&&a.unref(l)<e.value.length)]};function Ba(e){const t=a.computed(()=>!!a.toValue(e)),n={step:1,interval:50,suffix:null},r=a.computed(()=>{const o=a.toValue(e);return{...n,...typeof o=="object"?o:{}}});return[t,a.computed(()=>r.value.step),a.computed(()=>r.value.interval),a.computed(()=>r.value.suffix)]}const La=a.defineComponent({name:"AXBubbleLoading",__name:"loading",props:{prefixCls:null},setup(e){return()=>a.createVNode("span",{class:`${e.prefixCls}-dot`},[a.createVNode("i",{class:`${e.prefixCls}-dot-item`,key:"item-1"},null),a.createVNode("i",{class:`${e.prefixCls}-dot-item`,key:"item-2"},null),a.createVNode("i",{class:`${e.prefixCls}-dot-item`,key:"item-3"},null)])}});function At(e){for(var t=0,n,r=0,o=e.length;o>=4;++r,o-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}const er="%";let ja=class{constructor(t){this.cache=new Map,this.instanceId=t}get(t){return this.cache.get(Array.isArray(t)?t.join(er):t)||null}update(t,n){const r=Array.isArray(t)?t.join(er):t,o=this.cache.get(r),i=n(o);i===null?this.cache.delete(r):this.cache.set(r,i)}};const tr="data-token-hash",ce="data-css-hash",za="data-cache-path",we="__cssinjs_instance__";function Be(){const e=Math.random().toString(12).slice(2);if(typeof document<"u"&&document.head&&document.body){const t=document.body.querySelectorAll(`style[${ce}]`)||[],{firstChild:n}=document.head;Array.from(t).forEach(o=>{o[we]=o[we]||e,o[we]===e&&document.head.insertBefore(o,n)});const r={};Array.from(document.querySelectorAll(`style[${ce}]`)).forEach(o=>{var l;const i=o.getAttribute(ce);r[i]?o[we]===e&&((l=o.parentNode)==null||l.removeChild(o)):r[i]=!0})}return new ja(e)}const nr=Symbol("StyleContextKey"),Fa=()=>{var n,r,o;const e=a.getCurrentInstance();let t;if(e&&e.appContext){const i=(o=(r=(n=e.appContext)==null?void 0:n.config)==null?void 0:r.globalProperties)==null?void 0:o.__ANTDV_CSSINJS_CACHE__;i?t=i:(t=Be(),e.appContext.config.globalProperties&&(e.appContext.config.globalProperties.__ANTDV_CSSINJS_CACHE__=t))}else t=Be();return t},rr={cache:Be(),defaultCache:!0,hashPriority:"low"},Le=()=>{const e=Fa();return a.inject(nr,a.shallowRef({...rr,cache:e}))},or=e=>{const t=Le(),n=a.shallowRef({...rr,cache:Be()});return a.watch([()=>a.unref(e),t],()=>{const r={...t.value},o=a.unref(e);Object.keys(o).forEach(l=>{const s=o[l];o[l]!==void 0&&(r[l]=s)});const{cache:i}=o;r.cache=r.cache||Be(),r.defaultCache=!i&&t.value.defaultCache,n.value=r},{immediate:!0}),a.provide(nr,n),n},Da=()=>({autoClear:Ot(),mock:Jn(),cache:ne(),defaultCache:Ot(),hashPriority:Jn(),container:Ea(),ssrInline:Ot(),transformers:Qn(),linters:Qn()}),ka=Pa(a.defineComponent({name:"AStyleProvider",inheritAttrs:!1,props:Da(),setup(e,{slots:t}){return or(e),()=>{var n;return(n=t.default)==null?void 0:n.call(t)}}})),Xa={useStyleInject:Le,useStyleProvider:or,StyleProvider:ka};function Wa(){return!1}let Rt=!1;function Ga(){return Rt}const qa=process.env.NODE_ENV==="production"?Wa:Ga;if(process.env.NODE_ENV!=="production"&&typeof module<"u"&&module&&module.hot&&typeof window<"u"){const e=window;if(typeof e.webpackHotUpdate=="function"){const t=e.webpackHotUpdate;e.webpackHotUpdate=(...n)=>(Rt=!0,setTimeout(()=>{Rt=!1},0),t(...n))}}function Mt(e,t,n,r){const o=Le(),i=a.shallowRef(""),l=a.shallowRef();a.watchEffect(()=>{i.value=[e,...t.value].join("%")});const s=qa(),c=d=>{o.value.cache.update(d,f=>{const[u=0,m]=f||[];return u-1===0?(r==null||r(m,!1),null):[u-1,m]})};return a.watch(i,(d,f)=>{f&&c(f),o.value.cache.update(d,u=>{const[m=0,p]=u||[];let g=p;process.env.NODE_ENV!=="production"&&p&&s&&(r==null||r(g,s),g=null);const h=g||n();return[m+1,h]}),l.value=o.value.cache.get(i.value)[1]},{immediate:!0}),a.onBeforeUnmount(()=>{c(i.value)}),l}function $e(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function Ua(e,t){return e&&e.contains?e.contains(t):!1}const ar="data-vc-order",Ka="vc-util-key",It=new Map;function ir({mark:e}={}){return e?e.startsWith("data-")?e:`data-${e}`:Ka}function Je(e){return e.attachTo?e.attachTo:document.querySelector("head")||document.body}function Za(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function lr(e){return Array.from((It.get(e)||e).children).filter(t=>t.tagName==="STYLE")}function sr(e,t={}){if(!$e())return null;const{csp:n,prepend:r}=t,o=document.createElement("style");o.setAttribute(ar,Za(r)),n!=null&&n.nonce&&(o.nonce=n==null?void 0:n.nonce),o.innerHTML=e;const i=Je(t),{firstChild:l}=i;if(r){if(r==="queue"){const s=lr(i).filter(c=>["prepend","prependQueue"].includes(c.getAttribute(ar)));if(s.length)return i.insertBefore(o,s[s.length-1].nextSibling),o}i.insertBefore(o,l)}else i.appendChild(o);return o}function cr(e,t={}){const n=Je(t);return lr(n).find(r=>r.getAttribute(ir(t))===e)}function Ht(e,t={}){const n=cr(e,t);n&&Je(t).removeChild(n)}function Ya(e,t){const n=It.get(e);if(!n||!Ua(document,n)){const r=sr("",t),{parentNode:o}=r;It.set(e,o),e.removeChild(r)}}function Vt(e,t,n={}){var l,s,c;const r=Je(n);Ya(r,n);const o=cr(t,n);if(o)return(l=n.csp)!=null&&l.nonce&&o.nonce!==((s=n.csp)==null?void 0:s.nonce)&&(o.nonce=(c=n.csp)==null?void 0:c.nonce),o.innerHTML!==e&&(o.innerHTML=e),o;const i=sr(e,n);return i.setAttribute(ir(n),t),i}function Qa(e,t){if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}let Ja=(ie=class{constructor(){this.cache=new Map,this.keys=[],this.cacheCallTimes=0}size(){return this.keys.length}internalGet(t,n=!1){let r={map:this.cache};return t.forEach(o=>{var i;r?r=(i=r==null?void 0:r.map)==null?void 0:i.get(o):r=void 0}),r!=null&&r.value&&n&&(r.value[1]=this.cacheCallTimes++),r==null?void 0:r.value}get(t){var n;return(n=this.internalGet(t,!0))==null?void 0:n[0]}has(t){return!!this.internalGet(t)}set(t,n){if(!this.has(t)){if(this.size()+1>ie.MAX_CACHE_SIZE+ie.MAX_CACHE_OFFSET){const[o]=this.keys.reduce((i,l)=>{const[,s]=i;return this.internalGet(l)[1]<s?[l,this.internalGet(l)[1]]:i},[this.keys[0],this.cacheCallTimes]);this.delete(o)}this.keys.push(t)}let r=this.cache;t.forEach((o,i)=>{if(i===t.length-1)r.set(o,{value:[n,this.cacheCallTimes++]});else{const l=r.get(o);l?l.map||(l.map=new Map):r.set(o,{map:new Map}),r=r.get(o).map}})}deleteByPath(t,n){var i;const r=t.get(n[0]);if(n.length===1)return r.map?t.set(n[0],{map:r.map}):t.delete(n[0]),(i=r.value)==null?void 0:i[0];const o=this.deleteByPath(r.map,n.slice(1));return(!r.map||r.map.size===0)&&!r.value&&t.delete(n[0]),o}delete(t){if(this.has(t))return this.keys=this.keys.filter(n=>!Qa(n,t)),this.deleteByPath(this.cache,t)}},ie.MAX_CACHE_SIZE=20,ie.MAX_CACHE_OFFSET=5,ie),Bt={};function dr(e,t){process.env.NODE_ENV!=="production"&&!e&&console!==void 0&&console.error(`Warning: ${t}`)}function _a(){Bt={}}function ei(e,t,n){!t&&!Bt[n]&&(e(!1,n),Bt[n]=!0)}function ur(e,t){ei(dr,e,t)}function fr(){}let re=null;function ti(){re=null,_a()}let Lt=fr;process.env.NODE_ENV!=="production"&&(Lt=(e,t,n)=>{ur(e,`[antd: ${t}] ${n}`),process.env.NODE_ENV==="test"&&ti()});const hr=Symbol("WarningContext"),jt=a.shallowRef(),ni=e=>{a.provide(hr,e),a.watch(e,()=>{jt.value=a.unref(e),a.triggerRef(jt)},{immediate:!0,deep:!0})},ri=()=>a.inject(hr,a.computed(()=>jt.value||{}));a.defineComponent({props:{value:ne()},setup(e,{slots:t}){return ni(a.computed(()=>e.value)),()=>{var n;return(n=t.default)==null?void 0:n.call(t)}}}),process.env.NODE_ENV;const oi=Lt;let mr=0,gr=class{constructor(t){this.derivatives=Array.isArray(t)?t:[t],this.id=mr,t.length===0&&oi(t.length>0,"[Ant Design Vue CSS-in-JS] Theme should have at least one derivative function."),mr+=1}getDerivativeToken(t){return this.derivatives.reduce((n,r)=>r(t,n),void 0)}};const zt=new Ja;function ai(e){const t=Array.isArray(e)?e:[e];return zt.has(t)||zt.set(t,new gr(t)),zt.get(t)}const pr=new WeakMap;function _e(e){let t=pr.get(e)||"";return t||(Object.keys(e).forEach(n=>{const r=e[n];t+=n,r instanceof gr?t+=r.id:r&&typeof r=="object"?t+=_e(r):t+=r}),pr.set(e,t)),t}function ii(e,t){return At(`${t}_${_e(e)}`)}const je=`random-${Date.now()}-${Math.random()}`.replace(/\./g,""),br="_bAmBoO_";function li(e,t,n){var r,o;if($e()){Vt(e,je);const i=document.createElement("div");i.style.position="fixed",i.style.left="0",i.style.top="0",t==null||t(i),document.body.appendChild(i),process.env.NODE_ENV!=="production"&&(i.innerHTML="Test",i.style.zIndex="9999999");const l=n?n(i):(r=getComputedStyle(i).content)==null?void 0:r.includes(br);return(o=i.parentNode)==null||o.removeChild(i),Ht(je),l}return!1}let Ft;function si(){return Ft===void 0&&(Ft=li(`@layer ${je} { .${je} { content: "${br}"!important; } }`,e=>{e.className=je})),Ft}const ci=$e();function Z(e){return typeof e=="number"?`${e}px`:e}const et=(e,t="")=>`--${t?`${t}-`:""}${e}`.replace(/([a-z0-9])([A-Z])/g,"$1-$2").replace(/([A-Z]+)([A-Z][a-z0-9]+)/g,"$1-$2").replace(/([a-z])([A-Z0-9])/g,"$1-$2").toLowerCase(),di=(e,t,n)=>Object.keys(e).length?`.${t}${n!=null&&n.scope?`.${n.scope}`:""}{${Object.entries(e).map(([r,o])=>`${r}:${o};`).join("")}}`:"",ui=(e,t,n)=>{const r={},o={};return Object.entries(e).forEach(([i,l])=>{var s,c,d;if((s=n==null?void 0:n.preserve)!=null&&s[i])o[i]=l;else if((typeof l=="string"||typeof l=="number")&&!((c=n==null?void 0:n.ignore)!=null&&c[i])){const f=et(i,n==null?void 0:n.prefix);r[f]=typeof l=="number"&&!((d=n==null?void 0:n.unitless)!=null&&d[i])?`${l}px`:String(l),o[i]=`var(${f})`}}),[o,di(r,t,{scope:n==null?void 0:n.scope})]},yr={},fi=process.env.NODE_ENV==="production",hi=process.env.NODE_ENV==="prerender",mi=!fi&&!hi?"css-dev-only-do-not-override":"css",pe=new Map;function gi(e){pe.set(e,(pe.get(e)||0)+1)}function pi(e,t){typeof document<"u"&&document.querySelectorAll(`style[${tr}="${e}"]`).forEach(r=>{var o;r[we]===t&&((o=r.parentNode)==null||o.removeChild(r))})}const bi=0;function yi(e,t){pe.set(e,(pe.get(e)||0)-1);const n=Array.from(pe.keys()),r=n.filter(o=>(pe.get(o)||0)<=0);n.length-r.length>bi&&r.forEach(o=>{pi(o,t),pe.delete(o)})}const Ci=(e,t,n,r)=>{let i={...n==null?void 0:n.getDerivativeToken(e),...t};return r&&(i=r(i)),i};function Si(e,t,n=a.ref({})){const r=Le(),o=a.computed(()=>Object.assign({},...t.value||[])),i=a.computed(()=>_e(o.value)),l=a.computed(()=>{var c;return _e(((c=n.value)==null?void 0:c.override)||yr)});return Mt("token",a.computed(()=>{var c,d;return[((c=n.value)==null?void 0:c.salt)||"",(d=e.value)==null?void 0:d.id,i.value,l.value]}),()=>{const{salt:c="",override:d=yr,formatToken:f,getComputedToken:u}=n.value||{},m=u?u(o.value,d,e.value):Ci(o.value,d,e.value,f),p=ii(m,c);m._tokenKey=p,gi(p);const g=`${mi}-${At(p)}`;return m._hashId=g,[m,g]},c=>{var d;yi(c[0]._tokenKey,(d=r.value)==null?void 0:d.cache.instanceId)})}var vi={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},Cr="comm",Sr="rule",vr="decl",xi="@import",wi="@keyframes",$i="@layer",xr=Math.abs,Dt=String.fromCharCode;function wr(e){return e.trim()}function tt(e,t,n){return e.replace(t,n)}function Ni(e,t,n){return e.indexOf(t,n)}function ze(e,t){return e.charCodeAt(t)|0}function Ne(e,t,n){return e.slice(t,n)}function _(e){return e.length}function Ti(e){return e.length}function nt(e,t){return t.push(e),e}var rt=1,Te=1,$r=0,U=0,j=0,Pe="";function kt(e,t,n,r,o,i,l,s){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:rt,column:Te,length:l,return:"",siblings:s}}function Pi(){return j}function Oi(){return j=U>0?ze(Pe,--U):0,Te--,j===10&&(Te=1,rt--),j}function Y(){return j=U<$r?ze(Pe,U++):0,Te++,j===10&&(Te=1,rt++),j}function de(){return ze(Pe,U)}function ot(){return U}function at(e,t){return Ne(Pe,e,t)}function Fe(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function Ei(e){return rt=Te=1,$r=_(Pe=e),U=0,[]}function Ai(e){return Pe="",e}function Xt(e){return wr(at(U-1,Wt(e===91?e+2:e===40?e+1:e)))}function Ri(e){for(;(j=de())&&j<33;)Y();return Fe(e)>2||Fe(j)>3?"":" "}function Mi(e,t){for(;--t&&Y()&&!(j<48||j>102||j>57&&j<65||j>70&&j<97););return at(e,ot()+(t<6&&de()==32&&Y()==32))}function Wt(e){for(;Y();)switch(j){case e:return U;case 34:case 39:e!==34&&e!==39&&Wt(j);break;case 40:e===41&&Wt(e);break;case 92:Y();break}return U}function Ii(e,t){for(;Y()&&e+j!==57;)if(e+j===84&&de()===47)break;return"/*"+at(t,U-1)+"*"+Dt(e===47?e:Y())}function Hi(e){for(;!Fe(de());)Y();return at(e,U)}function Vi(e){return Ai(it("",null,null,null,[""],e=Ei(e),0,[0],e))}function it(e,t,n,r,o,i,l,s,c){for(var d=0,f=0,u=l,m=0,p=0,g=0,h=1,b=1,v=1,$=0,S="",C=o,x=i,w=r,y=S;b;)switch(g=$,$=Y()){case 40:if(g!=108&&ze(y,u-1)==58){Ni(y+=tt(Xt($),"&","&\f"),"&\f",xr(d?s[d-1]:0))!=-1&&(v=-1);break}case 34:case 39:case 91:y+=Xt($);break;case 9:case 10:case 13:case 32:y+=Ri(g);break;case 92:y+=Mi(ot()-1,7);continue;case 47:switch(de()){case 42:case 47:nt(Bi(Ii(Y(),ot()),t,n,c),c),(Fe(g||1)==5||Fe(de()||1)==5)&&_(y)&&Ne(y,-1,void 0)!==" "&&(y+=" ");break;default:y+="/"}break;case 123*h:s[d++]=_(y)*v;case 125*h:case 59:case 0:switch($){case 0:case 125:b=0;case 59+f:v==-1&&(y=tt(y,/\f/g,"")),p>0&&(_(y)-u||h===0&&g===47)&&nt(p>32?Tr(y+";",r,n,u-1,c):Tr(tt(y," ","")+";",r,n,u-2,c),c);break;case 59:y+=";";default:if(nt(w=Nr(y,t,n,d,f,o,s,S,C=[],x=[],u,i),i),$===123)if(f===0)it(y,t,w,w,C,i,u,s,x);else switch(m===99&&ze(y,3)===110?100:m){case 100:case 108:case 109:case 115:it(e,w,w,r&&nt(Nr(e,w,w,0,0,o,s,S,o,C=[],u,x),x),o,x,u,s,r?C:x);break;default:it(y,w,w,w,[""],x,0,s,x)}}d=f=p=0,h=v=1,S=y="",u=l;break;case 58:u=1+_(y),p=g;default:if(h<1){if($==123)--h;else if($==125&&h++==0&&Oi()==125)continue}switch(y+=Dt($),$*h){case 38:v=f>0?1:(y+="\f",-1);break;case 44:s[d++]=(_(y)-1)*v,v=1;break;case 64:de()===45&&(y+=Xt(Y())),m=de(),f=u=_(S=y+=Hi(ot())),$++;break;case 45:g===45&&_(y)==2&&(h=0)}}return i}function Nr(e,t,n,r,o,i,l,s,c,d,f,u){for(var m=o-1,p=o===0?i:[""],g=Ti(p),h=0,b=0,v=0;h<r;++h)for(var $=0,S=Ne(e,m+1,m=xr(b=l[h])),C=e;$<g;++$)(C=wr(b>0?p[$]+" "+S:tt(S,/&\f/g,p[$])))&&(c[v++]=C);return kt(e,t,n,o===0?Sr:s,c,d,f,u)}function Bi(e,t,n,r){return kt(e,t,n,Cr,Dt(Pi()),Ne(e,2,-2),0,r)}function Tr(e,t,n,r,o){return kt(e,t,n,vr,Ne(e,0,r),Ne(e,r+1,-1),r,o)}function Gt(e,t){for(var n="",r=0;r<e.length;r++)n+=t(e[r],r,e,t)||"";return n}function Li(e,t,n,r){switch(e.type){case $i:if(e.children.length)break;case xi:case vr:return e.return=e.return||e.value;case Cr:return"";case wi:return e.return=e.value+"{"+Gt(e.children,r)+"}";case Sr:if(!_(e.value=e.props.join(",")))return""}return _(n=Gt(e.children,r))?e.return=e.value+"{"+n+"}":""}function Pr(e,t){const{path:n,parentSelectors:r}=t;ur(!1,`[Ant Design Vue CSS-in-JS] ${n?`Error in '${n}': `:""}${e}${r.length?` Selector info: ${r.join(" -> ")}`:""}`)}const ji=(e,t,n)=>{if(e==="content"){const r=/(attr|counters?|url|(((repeating-)?(linear|radial))|conic)-gradient)\(|(no-)?(open|close)-quote/;(typeof t!="string"||["normal","none","initial","inherit","unset"].indexOf(t)===-1&&!r.test(t)&&(t.charAt(0)!==t.charAt(t.length-1)||t.charAt(0)!=='"'&&t.charAt(0)!=="'"))&&Pr(`You seem to be using a value for 'content' without quotes, try replacing it with \`content: '"${t}"'\`.`,n)}},zi=(e,t,n)=>{e==="animation"&&n.hashId&&t!=="none"&&Pr(`You seem to be using hashed animation '${t}', in which case 'animationName' with Keyframe as value is recommended.`,n)},Or="data-ant-cssinjs-cache-path",Fi="_FILE_STYLE__";let be,Er=!0;function Di(){var e;if(!be&&(be={},$e())){const t=document.createElement("div");t.className=Or,t.style.position="fixed",t.style.visibility="hidden",t.style.top="-9999px",document.body.appendChild(t);let n=getComputedStyle(t).content||"";n=n.replace(/^"/,"").replace(/"$/,""),n.split(";").forEach(o=>{const[i,l]=o.split(":");be[i]=l});const r=document.querySelector(`style[${Or}]`);r&&(Er=!1,(e=r.parentNode)==null||e.removeChild(r)),document.body.removeChild(t)}}function ki(e){return Di(),!!be[e]}function Xi(e){const t=be[e];let n=null;if(t&&$e())if(Er)n=Fi;else{const r=document.querySelector(`style[${ce}="${be[e]}"]`);r?n=r.innerHTML:delete be[e]}return[n,t]}const Ar=$e(),Rr="_skip_check_",Mr="_multi_value_";function Ir(e){return Gt(Vi(e),Li).replace(/\{%%%\:[^;];}/g,";")}function Wi(e){return typeof e=="object"&&e&&(Rr in e||Mr in e)}function Gi(e,t,n){if(!t)return e;const r=`.${t}`,o=n==="low"?`:where(${r})`:r;return e.split(",").map(l=>{var f;const s=l.trim().split(/\s+/);let c=s[0]||"";const d=((f=c.match(/^\w+/))==null?void 0:f[0])||"";return c=`${d}${o}${c.slice(d.length)}`,[c,...s.slice(1)].join(" ")}).join(",")}const qt=new Set;process.env.NODE_ENV;const Ut=(e,t={},{root:n,injectHash:r,parentSelectors:o}={root:!0,parentSelectors:[]})=>{const{hashId:i,layer:l,path:s,hashPriority:c,transformers:d=[],linters:f=[]}=t;let u="",m={};function p(b){const v=b.getName(i);if(!m[v]){const[$]=Ut(b.style,t,{root:!1,parentSelectors:o});m[v]=`@keyframes ${b.getName(i)}${$}`}}function g(b,v=[]){return b.forEach($=>{Array.isArray($)?g($,v):$&&v.push($)}),v}return g(Array.isArray(e)?e:[e]).forEach(b=>{const v=typeof b=="string"&&!n?{}:b;if(typeof v=="string")u+=`${v}
2
- `;else if(v._keyframe)p(v);else{const $=d.reduce((S,C)=>{var x;return((x=C==null?void 0:C.visit)==null?void 0:x.call(C,S))||S},v);Object.keys($).forEach(S=>{const C=$[S];if(typeof C=="object"&&C&&(S!=="animationName"||!C._keyframe)&&!Wi(C)){let x=!1,w=S.trim(),y=!1;(n||r)&&i?w.startsWith("@")?x=!0:w=Gi(S,i,c):n&&!i&&(w==="&"||w==="")&&(w="",y=!0);const[T,P]=Ut(C,t,{root:y,injectHash:x,parentSelectors:[...o,w]});m={...m,...P},u+=`${w}${T}`}else{let x=function(y,T){process.env.NODE_ENV!=="production"&&(typeof C!="object"||!(C!=null&&C[Rr]))&&[ji,zi,...f].forEach(M=>M(y,T,{path:s,hashId:i,parentSelectors:o}));const P=y.replace(/[A-Z]/g,M=>`-${M.toLowerCase()}`);let A=T;!vi[y]&&typeof A=="number"&&A!==0&&(A=`${A}px`),y==="animationName"&&(T!=null&&T._keyframe)&&(p(T),A=T.getName(i)),u+=`${P}:${A};`};const w=(C==null?void 0:C.value)??C;typeof C=="object"&&(C!=null&&C[Mr])&&Array.isArray(w)?w.forEach(y=>{x(S,y)}):x(S,w)}})}}),n?l&&si():u=`{${u}}`,[u,m]};function Hr(e,t){return At(`${e.join("%")}${t}`)}function Vr(e,t){const n=Le(),r=a.computed(()=>{var l;return(l=e.value)==null?void 0:l.token._tokenKey}),o=a.computed(()=>{var l;return[r.value,...((l=e.value)==null?void 0:l.path)||[]]});let i=Ar;return process.env.NODE_ENV!=="production"&&n.value.mock!==void 0&&(i=n.value.mock==="client"),Mt("style",o,()=>{const{path:l,hashId:s,layer:c,nonce:d,clientOnly:f,order:u=0}=e.value||{},m=o.value.join("|");if(ki(m)){const[y,T]=Xi(m);if(y)return[y,r.value,T,{},f,u]}const p=t(),{hashPriority:g,container:h,transformers:b,linters:v,cache:$}=n.value,[S,C]=Ut(p,{hashId:s,hashPriority:g,layer:c,path:l==null?void 0:l.join("-"),transformers:b,linters:v}),x=Ir(S),w=Hr(o.value,x);if(i){const y={mark:ce,prepend:"queue",attachTo:h,priority:u},T=typeof d=="function"?d():d;T&&(y.csp={nonce:T});const P=Vt(x,w,y);P[we]=$.instanceId,P.setAttribute(tr,r.value),process.env.NODE_ENV!=="production"&&P.setAttribute(za,o.value.join("|")),Object.keys(C).forEach(A=>{qt.has(A)||(qt.add(A),Vt(Ir(C[A]),`_effect-${A}`,{mark:ce,prepend:"queue",attachTo:h}))})}return[x,r.value,w,C,f,u]},([,,l],s)=>{(s||n.value.autoClear)&&Ar&&Ht(l,{mark:ce})}),l=>l}const qi="cssVar",Ui=(e,t)=>{const{key:n,prefix:r,unitless:o,ignore:i,token:l,scope:s=""}=e;useContext(Xa);const{_tokenKey:c}=l,d=[...e.path,n,s,c];return Mt(qi,d,()=>{const u=t(),[m,p]=ui(u,n,{prefix:r,unitless:o,ignore:i,scope:s}),g=Hr(d,p);return[m,p,g,n]},([,,u])=>{ci&&Ht(u,{mark:ce})})};class Br{constructor(t,n){this._keyframe=!0,this.name=t,this.style=n}getName(t=""){return t?`${t}-${this.name}`:this.name}}function Oe(e){return e.notSplit=!0,e}Oe(["borderTop","borderBottom"]),Oe(["borderTop"]),Oe(["borderBottom"]),Oe(["borderLeft","borderRight"]),Oe(["borderLeft"]),Oe(["borderRight"]);class Lr{}const jr="CALC_UNIT",Ki=new RegExp(jr,"g");function Kt(e){return typeof e=="number"?`${e}${jr}`:e}class ye extends Lr{constructor(t,n){super(),this.result="";const r=typeof t;this.unitlessCssVar=n,t instanceof ye?this.result=`(${t.result})`:r==="number"?this.result=Kt(t):r==="string"&&(this.result=t)}add(t){return t instanceof ye?this.result=`${this.result} + ${t.getResult()}`:(typeof t=="number"||typeof t=="string")&&(this.result=`${this.result} + ${Kt(t)}`),this.lowPriority=!0,this}sub(t){return t instanceof ye?this.result=`${this.result} - ${t.getResult()}`:(typeof t=="number"||typeof t=="string")&&(this.result=`${this.result} - ${Kt(t)}`),this.lowPriority=!0,this}mul(t){return this.lowPriority&&(this.result=`(${this.result})`),t instanceof ye?this.result=`${this.result} * ${t.getResult(!0)}`:(typeof t=="number"||typeof t=="string")&&(this.result=`${this.result} * ${t}`),this.lowPriority=!1,this}div(t){return this.lowPriority&&(this.result=`(${this.result})`),t instanceof ye?this.result=`${this.result} / ${t.getResult(!0)}`:(typeof t=="number"||typeof t=="string")&&(this.result=`${this.result} / ${t}`),this.lowPriority=!1,this}getResult(t){return this.lowPriority||t?`(${this.result})`:this.result}equal(t){const{unit:n}=t||{};let r=!0;return typeof n=="boolean"?r=n:Array.from(this.unitlessCssVar).some(o=>this.result.includes(o))&&(r=!1),this.result=this.result.replace(Ki,r?"px":""),typeof this.lowPriority<"u"?`calc(${this.result})`:this.result}}class Ce extends Lr{constructor(t){super(),this.result=0,t instanceof Ce?this.result=t.result:typeof t=="number"&&(this.result=t)}add(t){return t instanceof Ce?this.result+=t.result:typeof t=="number"&&(this.result+=t),this}sub(t){return t instanceof Ce?this.result-=t.result:typeof t=="number"&&(this.result-=t),this}mul(t){return t instanceof Ce?this.result*=t.result:typeof t=="number"&&(this.result*=t),this}div(t){return t instanceof Ce?this.result/=t.result:typeof t=="number"&&(this.result/=t),this}equal(){return this.result}}const Zi=(e,t)=>{const n=e==="css"?ye:Ce;return r=>new n(r,t)},zr=(e,t)=>`${[t,e.replace(/([A-Z]+)([A-Z][a-z]+)/g,"$1-$2").replace(/([a-z])([A-Z])/g,"$1-$2")].filter(Boolean).join("-")}`;function Fr(e,t={},n,r){const o={...t[e]};if(r!=null&&r.deprecatedTokens){const{deprecatedTokens:l}=r;l.forEach(([s,c])=>{process.env.NODE_ENV!=="production"&&dr(!(o!=null&&o[s]),`Component Token \`${String(s)}\` of ${String(e)} is deprecated. Please use \`${String(c)}\` instead.`),(o!=null&&o[s]||o!=null&&o[c])&&(o[c]??(o[c]=o==null?void 0:o[s]))})}const i={...n,...o};return Object.keys(i).forEach(l=>{i[l]===t[l]&&delete i[l]}),i}const Dr=process.env.NODE_ENV!=="production"||typeof CSSINJS_STATISTIC<"u";let Zt=!0;function ee(...e){if(!Dr)return Object.assign({},...e);Zt=!1;const t={};return e.forEach(n=>{if(typeof n!="object")return;Object.keys(n).forEach(o=>{Object.defineProperty(t,o,{configurable:!0,enumerable:!0,get:()=>n[o]})})}),Zt=!0,t}const kr={};function Yi(){}const Qi=e=>{let t,n=e,r=Yi;return Dr&&typeof Proxy<"u"&&(t=new Set,n=new Proxy(e,{get(o,i){return Zt&&(t==null||t.add(i)),o[i]}}),r=(o,i)=>{var l;kr[o]={global:Array.from(t),component:{...(l=kr[o])==null?void 0:l.component,...i}}}),{token:n,keys:t,flush:r}};function Xr(e,t={},n){return typeof n=="function"?n(ee(t,t[e]??{})):n??{}}function Ji(e){return e==="js"?{max:Math.max,min:Math.min}:{max:(...t)=>`max(${t.map(n=>Z(n)).join(",")})`,min:(...t)=>`min(${t.map(n=>Z(n)).join(",")})`}}const _i=1e3*60*10;class el{constructor(){Ve(this,"map",new Map);Ve(this,"objectIDMap",new WeakMap);Ve(this,"nextID",0);Ve(this,"lastAccessBeat",new Map);Ve(this,"accessBeat",0)}set(t,n){this.clear();const r=this.getCompositeKey(t);this.map.set(r,n),this.lastAccessBeat.set(r,Date.now())}get(t){const n=this.getCompositeKey(t),r=this.map.get(n);return this.lastAccessBeat.set(n,Date.now()),this.accessBeat+=1,r}getCompositeKey(t){return t.map(r=>r&&typeof r=="object"?`obj_${this.getObjectID(r)}`:`${typeof r}_${r}`).join("|")}getObjectID(t){if(this.objectIDMap.has(t))return this.objectIDMap.get(t);const n=this.nextID;return this.objectIDMap.set(t,n),this.nextID+=1,n}clear(){if(this.accessBeat>1e4){const t=Date.now();this.lastAccessBeat.forEach((n,r)=>{t-n>_i&&(this.map.delete(r),this.lastAccessBeat.delete(r))}),this.accessBeat=0}}}const Wr=new el;function tl(e,t){return a.computed(()=>{const n=Wr.get(t);if(n)return n;const r=e();return Wr.set(t,r),r})}const nl=()=>({});function rl(e){const{useCSP:t=nl,useToken:n,usePrefix:r,getResetStyles:o,getCommonStyle:i,getCompUnitless:l}=e;function s(u,m,p,g){const h=Array.isArray(u)?u[0]:u;function b(y){return`${String(h)}${y.slice(0,1).toUpperCase()}${y.slice(1)}`}const v=(g==null?void 0:g.unitless)||{},S={...typeof l=="function"?l(u):{},[b("zIndexPopup")]:!0};Object.keys(v).forEach(y=>{S[b(y)]=v[y]});const C={...g,unitless:S,prefixToken:b},x=d(u,m,p,C),w=c(h,p,C);return(y,T=a.toValue(y))=>{const[,P]=x(a.toValue(y),T),[A,M]=w(T);return[A,P,M]}}function c(u,m,p){const{unitless:g,injectStyle:h=!0,prefixToken:b,ignore:v}=p,$=({rootCls:C,cssVar:x={}})=>{const{realToken:w}=n();return Ui({path:[u],prefix:x.prefix,key:x.key,unitless:g,ignore:v,token:w,scope:C},()=>{const y=Xr(u,w,m),T=Fr(u,w,y,{deprecatedTokens:p==null?void 0:p.deprecatedTokens});return Object.keys(y).forEach(P=>{T[b(P)]=T[P],delete T[P]}),T}),null};return C=>{const{cssVar:x}=n();return[w=>h&&x?a.createVNode(a.Fragment,null,[a.createVNode($,{rootCls:C,cssVar:x,component:u},null),w]):w,x==null?void 0:x.key]}}function d(u,m,p,g={}){const h=Array.isArray(u)?u:[u,u],[b]=h,v=h.join("-"),$=e.layer||{name:"antd"};return(S,C=S)=>{const{theme:x,realToken:w,hashId:y,token:T,cssVar:P}=n(),{rootPrefixCls:A,iconPrefixCls:M}=r(),W=t(),I=P?"css":"js",B=a.unref(tl(()=>{const xe=new Set;return P&&Object.keys(g.unitless||{}).forEach(He=>{xe.add(et(He,P.prefix)),xe.add(et(He,zr(b,P.prefix)))}),Zi(I,xe)},[I,b,P==null?void 0:P.prefix])),{max:k,min:J}=Ji(I),Ie=a.computed(()=>({theme:x.value,token:T.value,hashId:y.value,nonce:()=>W.nonce,clientOnly:g.clientOnly,layer:$,order:g.order||-999}));return typeof o=="function"&&Vr(a.computed(()=>({...Ie.value,clientOnly:!1,path:["Shared",A]})),()=>o(T.value,{prefix:{rootPrefixCls:A,iconPrefixCls:M},csp:W})),[Vr(a.computed(()=>({...Ie.value,path:[v,S,M]})),()=>{if(g.injectStyle===!1)return[];const{token:xe,flush:He}=Qi(T),me=Xr(b,w,p),Tt=`.${S}`,Ye=Fr(b,w,me,{deprecatedTokens:g.deprecatedTokens});P&&me&&typeof me=="object"&&Object.keys(me).forEach(Qe=>{me[Qe]=`var(${et(Qe,zr(b,P.prefix))})`});const E=a.computed(()=>ee(xe.value,{componentCls:Tt,prefixCls:S,iconCls:`.${M}`,antCls:`.${A}`,calc:B,max:k,min:J},P?me:Ye)),z=a.computed(()=>m(E.value,{hashId:y.value,prefixCls:S,rootPrefixCls:A,iconPrefixCls:M}));He(b,Ye);const le=typeof i=="function"?i(E.value,S,C,g.resetFont):null;return[g.resetStyle===!1?null:le,z.value]}),y]}}function f(u,m,p,g={}){const h=d(u,m,p,{resetStyle:!1,order:-998,...g});return({prefixCls:v,rootCls:$=v})=>(h(v,$),null)}return{genStyleHooks:s,genSubStyleComponent:f,genComponentStyleHook:d}}const ol={size:!0,sizeSM:!0,sizeLG:!0,sizeMD:!0,sizeXS:!0,sizeXXS:!0,sizeMS:!0,sizeXL:!0,sizeXXL:!0,sizeUnit:!0,sizeStep:!0,motionBase:!0,motionUnit:!0},al={lineHeight:!0,lineHeightSM:!0,lineHeightLG:!0,lineHeightHeading1:!0,lineHeightHeading2:!0,lineHeightHeading3:!0,lineHeightHeading4:!0,lineHeightHeading5:!0,opacityLoading:!0,fontWeightStrong:!0,zIndexPopupBase:!0,zIndexBase:!0,opacityImage:!0};function H(){return H=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},H.apply(null,arguments)}function D(e,t){il(e)&&(e="100%");var n=ll(e);return e=t===360?e:Math.min(t,Math.max(0,parseFloat(e))),n&&(e=parseInt(String(e*t),10)/100),Math.abs(e-t)<1e-6?1:(t===360?e=(e<0?e%t+t:e%t)/parseFloat(String(t)):e=e%t/parseFloat(String(t)),e)}function lt(e){return Math.min(1,Math.max(0,e))}function il(e){return typeof e=="string"&&e.indexOf(".")!==-1&&parseFloat(e)===1}function ll(e){return typeof e=="string"&&e.indexOf("%")!==-1}function Gr(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function st(e){return e<=1?"".concat(Number(e)*100,"%"):e}function Se(e){return e.length===1?"0"+e:String(e)}function sl(e,t,n){return{r:D(e,255)*255,g:D(t,255)*255,b:D(n,255)*255}}function qr(e,t,n){e=D(e,255),t=D(t,255),n=D(n,255);var r=Math.max(e,t,n),o=Math.min(e,t,n),i=0,l=0,s=(r+o)/2;if(r===o)l=0,i=0;else{var c=r-o;switch(l=s>.5?c/(2-r-o):c/(r+o),r){case e:i=(t-n)/c+(t<n?6:0);break;case t:i=(n-e)/c+2;break;case n:i=(e-t)/c+4;break}i/=6}return{h:i,s:l,l:s}}function Yt(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*(6*n):n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function cl(e,t,n){var r,o,i;if(e=D(e,360),t=D(t,100),n=D(n,100),t===0)o=n,i=n,r=n;else{var l=n<.5?n*(1+t):n+t-n*t,s=2*n-l;r=Yt(s,l,e+1/3),o=Yt(s,l,e),i=Yt(s,l,e-1/3)}return{r:r*255,g:o*255,b:i*255}}function Qt(e,t,n){e=D(e,255),t=D(t,255),n=D(n,255);var r=Math.max(e,t,n),o=Math.min(e,t,n),i=0,l=r,s=r-o,c=r===0?0:s/r;if(r===o)i=0;else{switch(r){case e:i=(t-n)/s+(t<n?6:0);break;case t:i=(n-e)/s+2;break;case n:i=(e-t)/s+4;break}i/=6}return{h:i,s:c,v:l}}function dl(e,t,n){e=D(e,360)*6,t=D(t,100),n=D(n,100);var r=Math.floor(e),o=e-r,i=n*(1-t),l=n*(1-o*t),s=n*(1-(1-o)*t),c=r%6,d=[n,l,i,i,s,n][c],f=[s,n,n,l,i,i][c],u=[i,i,s,n,n,l][c];return{r:d*255,g:f*255,b:u*255}}function Jt(e,t,n,r){var o=[Se(Math.round(e).toString(16)),Se(Math.round(t).toString(16)),Se(Math.round(n).toString(16))];return r&&o[0].startsWith(o[0].charAt(1))&&o[1].startsWith(o[1].charAt(1))&&o[2].startsWith(o[2].charAt(1))?o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0):o.join("")}function ul(e,t,n,r,o){var i=[Se(Math.round(e).toString(16)),Se(Math.round(t).toString(16)),Se(Math.round(n).toString(16)),Se(fl(r))];return o&&i[0].startsWith(i[0].charAt(1))&&i[1].startsWith(i[1].charAt(1))&&i[2].startsWith(i[2].charAt(1))&&i[3].startsWith(i[3].charAt(1))?i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0)+i[3].charAt(0):i.join("")}function fl(e){return Math.round(parseFloat(e)*255).toString(16)}function Ur(e){return q(e)/255}function q(e){return parseInt(e,16)}function hl(e){return{r:e>>16,g:(e&65280)>>8,b:e&255}}var _t={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};function Ee(e){var t={r:0,g:0,b:0},n=1,r=null,o=null,i=null,l=!1,s=!1;return typeof e=="string"&&(e=pl(e)),typeof e=="object"&&(oe(e.r)&&oe(e.g)&&oe(e.b)?(t=sl(e.r,e.g,e.b),l=!0,s=String(e.r).substr(-1)==="%"?"prgb":"rgb"):oe(e.h)&&oe(e.s)&&oe(e.v)?(r=st(e.s),o=st(e.v),t=dl(e.h,r,o),l=!0,s="hsv"):oe(e.h)&&oe(e.s)&&oe(e.l)&&(r=st(e.s),i=st(e.l),t=cl(e.h,r,i),l=!0,s="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(n=e.a)),n=Gr(n),{ok:l,format:e.format||s,r:Math.min(255,Math.max(t.r,0)),g:Math.min(255,Math.max(t.g,0)),b:Math.min(255,Math.max(t.b,0)),a:n}}var ml="[-\\+]?\\d+%?",gl="[-\\+]?\\d*\\.\\d+%?",ue="(?:".concat(gl,")|(?:").concat(ml,")"),en="[\\s|\\(]+(".concat(ue,")[,|\\s]+(").concat(ue,")[,|\\s]+(").concat(ue,")\\s*\\)?"),tn="[\\s|\\(]+(".concat(ue,")[,|\\s]+(").concat(ue,")[,|\\s]+(").concat(ue,")[,|\\s]+(").concat(ue,")\\s*\\)?"),Q={CSS_UNIT:new RegExp(ue),rgb:new RegExp("rgb"+en),rgba:new RegExp("rgba"+tn),hsl:new RegExp("hsl"+en),hsla:new RegExp("hsla"+tn),hsv:new RegExp("hsv"+en),hsva:new RegExp("hsva"+tn),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/};function pl(e){if(e=e.trim().toLowerCase(),e.length===0)return!1;var t=!1;if(_t[e])e=_t[e],t=!0;else if(e==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var n=Q.rgb.exec(e);return n?{r:n[1],g:n[2],b:n[3]}:(n=Q.rgba.exec(e),n?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=Q.hsl.exec(e),n?{h:n[1],s:n[2],l:n[3]}:(n=Q.hsla.exec(e),n?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=Q.hsv.exec(e),n?{h:n[1],s:n[2],v:n[3]}:(n=Q.hsva.exec(e),n?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=Q.hex8.exec(e),n?{r:q(n[1]),g:q(n[2]),b:q(n[3]),a:Ur(n[4]),format:t?"name":"hex8"}:(n=Q.hex6.exec(e),n?{r:q(n[1]),g:q(n[2]),b:q(n[3]),format:t?"name":"hex"}:(n=Q.hex4.exec(e),n?{r:q(n[1]+n[1]),g:q(n[2]+n[2]),b:q(n[3]+n[3]),a:Ur(n[4]+n[4]),format:t?"name":"hex8"}:(n=Q.hex3.exec(e),n?{r:q(n[1]+n[1]),g:q(n[2]+n[2]),b:q(n[3]+n[3]),format:t?"name":"hex"}:!1)))))))))}function oe(e){return!!Q.CSS_UNIT.exec(String(e))}var te=function(){function e(t,n){t===void 0&&(t=""),n===void 0&&(n={});var r;if(t instanceof e)return t;typeof t=="number"&&(t=hl(t)),this.originalInput=t;var o=Ee(t);this.originalInput=t,this.r=o.r,this.g=o.g,this.b=o.b,this.a=o.a,this.roundA=Math.round(100*this.a)/100,this.format=(r=n.format)!==null&&r!==void 0?r:o.format,this.gradientType=n.gradientType,this.r<1&&(this.r=Math.round(this.r)),this.g<1&&(this.g=Math.round(this.g)),this.b<1&&(this.b=Math.round(this.b)),this.isValid=o.ok}return e.prototype.isDark=function(){return this.getBrightness()<128},e.prototype.isLight=function(){return!this.isDark()},e.prototype.getBrightness=function(){var t=this.toRgb();return(t.r*299+t.g*587+t.b*114)/1e3},e.prototype.getLuminance=function(){var t=this.toRgb(),n,r,o,i=t.r/255,l=t.g/255,s=t.b/255;return i<=.03928?n=i/12.92:n=Math.pow((i+.055)/1.055,2.4),l<=.03928?r=l/12.92:r=Math.pow((l+.055)/1.055,2.4),s<=.03928?o=s/12.92:o=Math.pow((s+.055)/1.055,2.4),.2126*n+.7152*r+.0722*o},e.prototype.getAlpha=function(){return this.a},e.prototype.setAlpha=function(t){return this.a=Gr(t),this.roundA=Math.round(100*this.a)/100,this},e.prototype.isMonochrome=function(){var t=this.toHsl().s;return t===0},e.prototype.toHsv=function(){var t=Qt(this.r,this.g,this.b);return{h:t.h*360,s:t.s,v:t.v,a:this.a}},e.prototype.toHsvString=function(){var t=Qt(this.r,this.g,this.b),n=Math.round(t.h*360),r=Math.round(t.s*100),o=Math.round(t.v*100);return this.a===1?"hsv(".concat(n,", ").concat(r,"%, ").concat(o,"%)"):"hsva(".concat(n,", ").concat(r,"%, ").concat(o,"%, ").concat(this.roundA,")")},e.prototype.toHsl=function(){var t=qr(this.r,this.g,this.b);return{h:t.h*360,s:t.s,l:t.l,a:this.a}},e.prototype.toHslString=function(){var t=qr(this.r,this.g,this.b),n=Math.round(t.h*360),r=Math.round(t.s*100),o=Math.round(t.l*100);return this.a===1?"hsl(".concat(n,", ").concat(r,"%, ").concat(o,"%)"):"hsla(".concat(n,", ").concat(r,"%, ").concat(o,"%, ").concat(this.roundA,")")},e.prototype.toHex=function(t){return t===void 0&&(t=!1),Jt(this.r,this.g,this.b,t)},e.prototype.toHexString=function(t){return t===void 0&&(t=!1),"#"+this.toHex(t)},e.prototype.toHex8=function(t){return t===void 0&&(t=!1),ul(this.r,this.g,this.b,this.a,t)},e.prototype.toHex8String=function(t){return t===void 0&&(t=!1),"#"+this.toHex8(t)},e.prototype.toHexShortString=function(t){return t===void 0&&(t=!1),this.a===1?this.toHexString(t):this.toHex8String(t)},e.prototype.toRgb=function(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}},e.prototype.toRgbString=function(){var t=Math.round(this.r),n=Math.round(this.g),r=Math.round(this.b);return this.a===1?"rgb(".concat(t,", ").concat(n,", ").concat(r,")"):"rgba(".concat(t,", ").concat(n,", ").concat(r,", ").concat(this.roundA,")")},e.prototype.toPercentageRgb=function(){var t=function(n){return"".concat(Math.round(D(n,255)*100),"%")};return{r:t(this.r),g:t(this.g),b:t(this.b),a:this.a}},e.prototype.toPercentageRgbString=function(){var t=function(n){return Math.round(D(n,255)*100)};return this.a===1?"rgb(".concat(t(this.r),"%, ").concat(t(this.g),"%, ").concat(t(this.b),"%)"):"rgba(".concat(t(this.r),"%, ").concat(t(this.g),"%, ").concat(t(this.b),"%, ").concat(this.roundA,")")},e.prototype.toName=function(){if(this.a===0)return"transparent";if(this.a<1)return!1;for(var t="#"+Jt(this.r,this.g,this.b,!1),n=0,r=Object.entries(_t);n<r.length;n++){var o=r[n],i=o[0],l=o[1];if(t===l)return i}return!1},e.prototype.toString=function(t){var n=!!t;t=t??this.format;var r=!1,o=this.a<1&&this.a>=0,i=!n&&o&&(t.startsWith("hex")||t==="name");return i?t==="name"&&this.a===0?this.toName():this.toRgbString():(t==="rgb"&&(r=this.toRgbString()),t==="prgb"&&(r=this.toPercentageRgbString()),(t==="hex"||t==="hex6")&&(r=this.toHexString()),t==="hex3"&&(r=this.toHexString(!0)),t==="hex4"&&(r=this.toHex8String(!0)),t==="hex8"&&(r=this.toHex8String()),t==="name"&&(r=this.toName()),t==="hsl"&&(r=this.toHslString()),t==="hsv"&&(r=this.toHsvString()),r||this.toHexString())},e.prototype.toNumber=function(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)},e.prototype.clone=function(){return new e(this.toString())},e.prototype.lighten=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.l+=t/100,n.l=lt(n.l),new e(n)},e.prototype.brighten=function(t){t===void 0&&(t=10);var n=this.toRgb();return n.r=Math.max(0,Math.min(255,n.r-Math.round(255*-(t/100)))),n.g=Math.max(0,Math.min(255,n.g-Math.round(255*-(t/100)))),n.b=Math.max(0,Math.min(255,n.b-Math.round(255*-(t/100)))),new e(n)},e.prototype.darken=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.l-=t/100,n.l=lt(n.l),new e(n)},e.prototype.tint=function(t){return t===void 0&&(t=10),this.mix("white",t)},e.prototype.shade=function(t){return t===void 0&&(t=10),this.mix("black",t)},e.prototype.desaturate=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.s-=t/100,n.s=lt(n.s),new e(n)},e.prototype.saturate=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.s+=t/100,n.s=lt(n.s),new e(n)},e.prototype.greyscale=function(){return this.desaturate(100)},e.prototype.spin=function(t){var n=this.toHsl(),r=(n.h+t)%360;return n.h=r<0?360+r:r,new e(n)},e.prototype.mix=function(t,n){n===void 0&&(n=50);var r=this.toRgb(),o=new e(t).toRgb(),i=n/100,l={r:(o.r-r.r)*i+r.r,g:(o.g-r.g)*i+r.g,b:(o.b-r.b)*i+r.b,a:(o.a-r.a)*i+r.a};return new e(l)},e.prototype.analogous=function(t,n){t===void 0&&(t=6),n===void 0&&(n=30);var r=this.toHsl(),o=360/n,i=[this];for(r.h=(r.h-(o*t>>1)+720)%360;--t;)r.h=(r.h+o)%360,i.push(new e(r));return i},e.prototype.complement=function(){var t=this.toHsl();return t.h=(t.h+180)%360,new e(t)},e.prototype.monochromatic=function(t){t===void 0&&(t=6);for(var n=this.toHsv(),r=n.h,o=n.s,i=n.v,l=[],s=1/t;t--;)l.push(new e({h:r,s:o,v:i})),i=(i+s)%1;return l},e.prototype.splitcomplement=function(){var t=this.toHsl(),n=t.h;return[this,new e({h:(n+72)%360,s:t.s,l:t.l}),new e({h:(n+216)%360,s:t.s,l:t.l})]},e.prototype.onBackground=function(t){var n=this.toRgb(),r=new e(t).toRgb(),o=n.a+r.a*(1-n.a);return new e({r:(n.r*n.a+r.r*r.a*(1-n.a))/o,g:(n.g*n.a+r.g*r.a*(1-n.a))/o,b:(n.b*n.a+r.b*r.a*(1-n.a))/o,a:o})},e.prototype.triad=function(){return this.polyad(3)},e.prototype.tetrad=function(){return this.polyad(4)},e.prototype.polyad=function(t){for(var n=this.toHsl(),r=n.h,o=[this],i=360/t,l=1;l<t;l++)o.push(new e({h:(r+l*i)%360,s:n.s,l:n.l}));return o},e.prototype.equals=function(t){return this.toRgbString()===new e(t).toRgbString()},e}();function nn(e){return e>=0&&e<=255}function ct(e,t){const{r:n,g:r,b:o,a:i}=new te(e).toRgb();if(i<1)return e;const{r:l,g:s,b:c}=new te(t).toRgb();for(let d=.01;d<=1;d+=.01){const f=Math.round((n-l*(1-d))/d),u=Math.round((r-s*(1-d))/d),m=Math.round((o-c*(1-d))/d);if(nn(f)&&nn(u)&&nn(m))return new te({r:f,g:u,b:m,a:Math.round(d*100)/100}).toRgbString()}return new te({r:n,g:r,b:o,a:1}).toRgbString()}const Kr={blue:"#1677ff",purple:"#722ED1",cyan:"#13C2C2",green:"#52C41A",magenta:"#EB2F96",pink:"#eb2f96",red:"#F5222D",orange:"#FA8C16",yellow:"#FADB14",volcano:"#FA541C",geekblue:"#2F54EB",gold:"#FAAD14",lime:"#A0D911"},Zr=H(H({},Kr),{colorPrimary:"#1677ff",colorSuccess:"#52c41a",colorWarning:"#faad14",colorError:"#ff4d4f",colorInfo:"#1677ff",colorTextBase:"",colorBgBase:"",fontFamily:`-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,
1
+ (function(M,a){typeof exports=="object"&&typeof module<"u"?a(exports,require("vue"),require("ant-design-vue")):typeof define=="function"&&define.amd?define(["exports","vue","ant-design-vue"],a):(M=typeof globalThis<"u"?globalThis:M||self,a(M.index={},M.Vue,M.Antdv))})(this,function(M,a,O){"use strict";var lu=Object.defineProperty;var su=(M,a,O)=>a in M?lu(M,a,{enumerable:!0,configurable:!0,writable:!0,value:O}):M[a]=O;var Ve=(M,a,O)=>su(M,typeof a!="symbol"?a+"":a,O);var ie;const Sa=e=>{const t=e;return t.install=function(n){n.component(t.displayName||t.name,e)},e};function Kn(e){return{type:Object,default:e}}function Pt(e){return{type:Boolean,default:e}}function Ca(e,t){const n={validator:()=>!0,default:e};return n}function Zn(e){return{type:Array,default:e}}function Yn(e){return{type:String,default:e}}function va(e,t){return e?{type:e,default:t}:Ca(t)}const xa="anticon",wa=Symbol("configProvider"),$a={getPrefixCls:(e,t)=>t||(e?`ant-${e}`:"ant"),iconPrefixCls:a.computed(()=>xa),getPopupContainer:a.computed(()=>()=>document.body),direction:a.computed(()=>"ltr")},Na=()=>a.inject(wa,$a),Ta="ant";function G(){const{getPrefixCls:e,direction:t,csp:n,iconPrefixCls:r,theme:o}=Na();return{theme:o,getPrefixCls:e,direction:t,csp:n,iconPrefixCls:r}}function W(e,t){const n=Object.create(null);for(const r in e)t.includes(r)||Object.defineProperty(n,r,{enumerable:!0,get:()=>e[r]});return n}const Pa=e=>{const t=e;return t.install=function(n){n.component(t.displayName||t.name,e)},e};function ne(e){return{type:Object,default:e}}function Ot(e){return{type:Boolean,default:e}}function Oa(e,t){const n={validator:()=>!0,default:e};return n}function Qn(e){return{type:Array,default:e}}function Jn(e){return{type:String,default:e}}function Ea(e,t){return e?{type:e,default:t}:Oa(t)}const _n=Symbol("XProviderContext"),Et=a.shallowRef(),Aa=e=>{a.provide(_n,e),a.watch(e,()=>{Et.value=a.unref(e),a.triggerRef(Et)},{immediate:!0,deep:!0})},Ra=()=>a.inject(_n,a.computed(()=>Et.value||{})),Ma=a.defineComponent({props:{value:ne()},setup(e,{slots:t}){return Aa(a.computed(()=>e.value)),()=>{var n;return(n=t.default)==null?void 0:n.call(t)}}}),Ia=a.defineComponent({name:"AXConfigProvider",inheritAttrs:!1,__name:"index",props:{bubble:{},conversations:{},prompts:{},sender:{},suggestion:{},thoughtChain:{},attachments:{},welcome:{},iconPrefixCls:{},getTargetContainer:{},getPopupContainer:{},prefixCls:{},getPrefixCls:{},renderEmpty:{},transformCellText:{},csp:{},input:{},autoInsertSpaceInButton:{type:Boolean},locale:{},pageHeader:{},componentSize:{},componentDisabled:{type:Boolean},direction:{},space:{},virtual:{type:Boolean},dropdownMatchSelectWidth:{},form:{},pagination:{},theme:{},select:{},wave:{}},setup(e){const t=W(e,["attachments","bubble","conversations","prompts","suggestion","thoughtChain","welcome"]),n=a.useSlots(),r=a.computed(()=>({attachments:e.attachments,bubble:e.bubble,conversations:e.conversations,prompts:e.prompts,suggestion:e.suggestion,thoughtChain:e.thoughtChain,welcome:e.welcome})),{theme:o}=G(),i=a.computed(()=>({...(o==null?void 0:o.value)||{},...t.theme})),l=a.computed(()=>{var s;return(s=n.default)==null?void 0:s.call(n)});return()=>a.createVNode(Ma,{value:r.value},{default:()=>[a.createVNode(O.ConfigProvider,a.mergeProps(t,{theme:i.value}),{default:()=>[l.value]})]})}}),Ha={classNames:{},styles:{},className:"",style:{}},se=e=>{const t=Ra();return a.computed(()=>({...Ha,...a.unref(t)[e]}))};function L(e){const t=typeof e=="function"?e():e,n=a.ref(t);function r(o){n.value=o}return[n,r]}function ge(e){return typeof e=="string"}const Va=(e,t,n,r)=>{const[o,i]=L(""),[l,s]=L(1),c=a.computed(()=>t.value&&ge(e.value));return a.watch(e,()=>{const f=a.unref(o);i(e.value),!c.value&&ge(e.value)?s(e.value.length):ge(e.value)&&ge(f)&&e.value.indexOf(f)!==0&&s(1)}),a.watch([l,t,e],()=>{if(c.value&&ge(e.value)&&a.unref(l)<e.value.length){const f=setTimeout(()=>{s(a.unref(l)+n.value)},r.value);a.onWatcherCleanup(()=>{clearTimeout(f)})}},{immediate:!0}),[a.computed(()=>c.value&&ge(e.value)?e.value.slice(0,a.unref(l)):e.value),a.computed(()=>c.value&&ge(e.value)&&a.unref(l)<e.value.length)]};function Ba(e){const t=a.computed(()=>!!a.toValue(e)),n={step:1,interval:50,suffix:null},r=a.computed(()=>{const o=a.toValue(e);return{...n,...typeof o=="object"?o:{}}});return[t,a.computed(()=>r.value.step),a.computed(()=>r.value.interval),a.computed(()=>r.value.suffix)]}const La=a.defineComponent({name:"AXBubbleLoading",__name:"loading",props:{prefixCls:null},setup(e){return()=>a.createVNode("span",{class:`${e.prefixCls}-dot`},[a.createVNode("i",{class:`${e.prefixCls}-dot-item`,key:"item-1"},null),a.createVNode("i",{class:`${e.prefixCls}-dot-item`,key:"item-2"},null),a.createVNode("i",{class:`${e.prefixCls}-dot-item`,key:"item-3"},null)])}});function At(e){for(var t=0,n,r=0,o=e.length;o>=4;++r,o-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}const er="%";let ja=class{constructor(t){this.cache=new Map,this.instanceId=t}get(t){return this.cache.get(Array.isArray(t)?t.join(er):t)||null}update(t,n){const r=Array.isArray(t)?t.join(er):t,o=this.cache.get(r),i=n(o);i===null?this.cache.delete(r):this.cache.set(r,i)}};const tr="data-token-hash",ce="data-css-hash",za="data-cache-path",we="__cssinjs_instance__";function Be(){const e=Math.random().toString(12).slice(2);if(typeof document<"u"&&document.head&&document.body){const t=document.body.querySelectorAll(`style[${ce}]`)||[],{firstChild:n}=document.head;Array.from(t).forEach(o=>{o[we]=o[we]||e,o[we]===e&&document.head.insertBefore(o,n)});const r={};Array.from(document.querySelectorAll(`style[${ce}]`)).forEach(o=>{var l;const i=o.getAttribute(ce);r[i]?o[we]===e&&((l=o.parentNode)==null||l.removeChild(o)):r[i]=!0})}return new ja(e)}const nr=Symbol("StyleContextKey"),Fa=()=>{var n,r,o;const e=a.getCurrentInstance();let t;if(e&&e.appContext){const i=(o=(r=(n=e.appContext)==null?void 0:n.config)==null?void 0:r.globalProperties)==null?void 0:o.__ANTDV_CSSINJS_CACHE__;i?t=i:(t=Be(),e.appContext.config.globalProperties&&(e.appContext.config.globalProperties.__ANTDV_CSSINJS_CACHE__=t))}else t=Be();return t},rr={cache:Be(),defaultCache:!0,hashPriority:"low"},Le=()=>{const e=Fa();return a.inject(nr,a.shallowRef({...rr,cache:e}))},or=e=>{const t=Le(),n=a.shallowRef({...rr,cache:Be()});return a.watch([()=>a.unref(e),t],()=>{const r={...t.value},o=a.unref(e);Object.keys(o).forEach(l=>{const s=o[l];o[l]!==void 0&&(r[l]=s)});const{cache:i}=o;r.cache=r.cache||Be(),r.defaultCache=!i&&t.value.defaultCache,n.value=r},{immediate:!0}),a.provide(nr,n),n},Da=()=>({autoClear:Ot(),mock:Jn(),cache:ne(),defaultCache:Ot(),hashPriority:Jn(),container:Ea(),ssrInline:Ot(),transformers:Qn(),linters:Qn()}),ka=Pa(a.defineComponent({name:"AStyleProvider",inheritAttrs:!1,props:Da(),setup(e,{slots:t}){return or(e),()=>{var n;return(n=t.default)==null?void 0:n.call(t)}}})),Xa={useStyleInject:Le,useStyleProvider:or,StyleProvider:ka};function Wa(){return!1}let Rt=!1;function Ga(){return Rt}const qa=process.env.NODE_ENV==="production"?Wa:Ga;if(process.env.NODE_ENV!=="production"&&typeof module<"u"&&module&&module.hot&&typeof window<"u"){const e=window;if(typeof e.webpackHotUpdate=="function"){const t=e.webpackHotUpdate;e.webpackHotUpdate=(...n)=>(Rt=!0,setTimeout(()=>{Rt=!1},0),t(...n))}}function Mt(e,t,n,r){const o=Le(),i=a.shallowRef(""),l=a.shallowRef();a.watchEffect(()=>{i.value=[e,...t.value].join("%")});const s=qa(),c=d=>{o.value.cache.update(d,f=>{const[u=0,m]=f||[];return u-1===0?(r==null||r(m,!1),null):[u-1,m]})};return a.watch(i,(d,f)=>{f&&c(f),o.value.cache.update(d,u=>{const[m=0,p]=u||[];let g=p;process.env.NODE_ENV!=="production"&&p&&s&&(r==null||r(g,s),g=null);const h=g||n();return[m+1,h]}),l.value=o.value.cache.get(i.value)[1]},{immediate:!0}),a.onBeforeUnmount(()=>{c(i.value)}),l}function $e(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function Ua(e,t){return e&&e.contains?e.contains(t):!1}const ar="data-vc-order",Ka="vc-util-key",It=new Map;function ir({mark:e}={}){return e?e.startsWith("data-")?e:`data-${e}`:Ka}function Je(e){return e.attachTo?e.attachTo:document.querySelector("head")||document.body}function Za(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function lr(e){return Array.from((It.get(e)||e).children).filter(t=>t.tagName==="STYLE")}function sr(e,t={}){if(!$e())return null;const{csp:n,prepend:r}=t,o=document.createElement("style");o.setAttribute(ar,Za(r)),n!=null&&n.nonce&&(o.nonce=n==null?void 0:n.nonce),o.innerHTML=e;const i=Je(t),{firstChild:l}=i;if(r){if(r==="queue"){const s=lr(i).filter(c=>["prepend","prependQueue"].includes(c.getAttribute(ar)));if(s.length)return i.insertBefore(o,s[s.length-1].nextSibling),o}i.insertBefore(o,l)}else i.appendChild(o);return o}function cr(e,t={}){const n=Je(t);return lr(n).find(r=>r.getAttribute(ir(t))===e)}function Ht(e,t={}){const n=cr(e,t);n&&Je(t).removeChild(n)}function Ya(e,t){const n=It.get(e);if(!n||!Ua(document,n)){const r=sr("",t),{parentNode:o}=r;It.set(e,o),e.removeChild(r)}}function Vt(e,t,n={}){var l,s,c;const r=Je(n);Ya(r,n);const o=cr(t,n);if(o)return(l=n.csp)!=null&&l.nonce&&o.nonce!==((s=n.csp)==null?void 0:s.nonce)&&(o.nonce=(c=n.csp)==null?void 0:c.nonce),o.innerHTML!==e&&(o.innerHTML=e),o;const i=sr(e,n);return i.setAttribute(ir(n),t),i}function Qa(e,t){if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}let Ja=(ie=class{constructor(){this.cache=new Map,this.keys=[],this.cacheCallTimes=0}size(){return this.keys.length}internalGet(t,n=!1){let r={map:this.cache};return t.forEach(o=>{var i;r?r=(i=r==null?void 0:r.map)==null?void 0:i.get(o):r=void 0}),r!=null&&r.value&&n&&(r.value[1]=this.cacheCallTimes++),r==null?void 0:r.value}get(t){var n;return(n=this.internalGet(t,!0))==null?void 0:n[0]}has(t){return!!this.internalGet(t)}set(t,n){if(!this.has(t)){if(this.size()+1>ie.MAX_CACHE_SIZE+ie.MAX_CACHE_OFFSET){const[o]=this.keys.reduce((i,l)=>{const[,s]=i;return this.internalGet(l)[1]<s?[l,this.internalGet(l)[1]]:i},[this.keys[0],this.cacheCallTimes]);this.delete(o)}this.keys.push(t)}let r=this.cache;t.forEach((o,i)=>{if(i===t.length-1)r.set(o,{value:[n,this.cacheCallTimes++]});else{const l=r.get(o);l?l.map||(l.map=new Map):r.set(o,{map:new Map}),r=r.get(o).map}})}deleteByPath(t,n){var i;const r=t.get(n[0]);if(n.length===1)return r.map?t.set(n[0],{map:r.map}):t.delete(n[0]),(i=r.value)==null?void 0:i[0];const o=this.deleteByPath(r.map,n.slice(1));return(!r.map||r.map.size===0)&&!r.value&&t.delete(n[0]),o}delete(t){if(this.has(t))return this.keys=this.keys.filter(n=>!Qa(n,t)),this.deleteByPath(this.cache,t)}},ie.MAX_CACHE_SIZE=20,ie.MAX_CACHE_OFFSET=5,ie),Bt={};function dr(e,t){process.env.NODE_ENV!=="production"&&!e&&console!==void 0&&console.error(`Warning: ${t}`)}function _a(){Bt={}}function ei(e,t,n){!t&&!Bt[n]&&(e(!1,n),Bt[n]=!0)}function ur(e,t){ei(dr,e,t)}function fr(){}let re=null;function ti(){re=null,_a()}let Lt=fr;process.env.NODE_ENV!=="production"&&(Lt=(e,t,n)=>{ur(e,`[antd: ${t}] ${n}`),process.env.NODE_ENV==="test"&&ti()});const hr=Symbol("WarningContext"),jt=a.shallowRef(),ni=e=>{a.provide(hr,e),a.watch(e,()=>{jt.value=a.unref(e),a.triggerRef(jt)},{immediate:!0,deep:!0})},ri=()=>a.inject(hr,a.computed(()=>jt.value||{}));a.defineComponent({props:{value:ne()},setup(e,{slots:t}){return ni(a.computed(()=>e.value)),()=>{var n;return(n=t.default)==null?void 0:n.call(t)}}}),process.env.NODE_ENV;const oi=Lt;let mr=0,gr=class{constructor(t){this.derivatives=Array.isArray(t)?t:[t],this.id=mr,t.length===0&&oi(t.length>0,"[Ant Design Vue CSS-in-JS] Theme should have at least one derivative function."),mr+=1}getDerivativeToken(t){return this.derivatives.reduce((n,r)=>r(t,n),void 0)}};const zt=new Ja;function ai(e){const t=Array.isArray(e)?e:[e];return zt.has(t)||zt.set(t,new gr(t)),zt.get(t)}const pr=new WeakMap;function _e(e){let t=pr.get(e)||"";return t||(Object.keys(e).forEach(n=>{const r=e[n];t+=n,r instanceof gr?t+=r.id:r&&typeof r=="object"?t+=_e(r):t+=r}),pr.set(e,t)),t}function ii(e,t){return At(`${t}_${_e(e)}`)}const je=`random-${Date.now()}-${Math.random()}`.replace(/\./g,""),br="_bAmBoO_";function li(e,t,n){var r,o;if($e()){Vt(e,je);const i=document.createElement("div");i.style.position="fixed",i.style.left="0",i.style.top="0",t==null||t(i),document.body.appendChild(i),process.env.NODE_ENV!=="production"&&(i.innerHTML="Test",i.style.zIndex="9999999");const l=n?n(i):(r=getComputedStyle(i).content)==null?void 0:r.includes(br);return(o=i.parentNode)==null||o.removeChild(i),Ht(je),l}return!1}let Ft;function si(){return Ft===void 0&&(Ft=li(`@layer ${je} { .${je} { content: "${br}"!important; } }`,e=>{e.className=je})),Ft}const ci=$e();function Z(e){return typeof e=="number"?`${e}px`:e}const et=(e,t="")=>`--${t?`${t}-`:""}${e}`.replace(/([a-z0-9])([A-Z])/g,"$1-$2").replace(/([A-Z]+)([A-Z][a-z0-9]+)/g,"$1-$2").replace(/([a-z])([A-Z0-9])/g,"$1-$2").toLowerCase(),di=(e,t,n)=>Object.keys(e).length?`.${t}${n!=null&&n.scope?`.${n.scope}`:""}{${Object.entries(e).map(([r,o])=>`${r}:${o};`).join("")}}`:"",ui=(e,t,n)=>{const r={},o={};return Object.entries(e).forEach(([i,l])=>{var s,c,d;if((s=n==null?void 0:n.preserve)!=null&&s[i])o[i]=l;else if((typeof l=="string"||typeof l=="number")&&!((c=n==null?void 0:n.ignore)!=null&&c[i])){const f=et(i,n==null?void 0:n.prefix);r[f]=typeof l=="number"&&!((d=n==null?void 0:n.unitless)!=null&&d[i])?`${l}px`:String(l),o[i]=`var(${f})`}}),[o,di(r,t,{scope:n==null?void 0:n.scope})]},yr={},fi=process.env.NODE_ENV==="production",hi=process.env.NODE_ENV==="prerender",mi=!fi&&!hi?"css-dev-only-do-not-override":"css",pe=new Map;function gi(e){pe.set(e,(pe.get(e)||0)+1)}function pi(e,t){typeof document<"u"&&document.querySelectorAll(`style[${tr}="${e}"]`).forEach(r=>{var o;r[we]===t&&((o=r.parentNode)==null||o.removeChild(r))})}const bi=0;function yi(e,t){pe.set(e,(pe.get(e)||0)-1);const n=Array.from(pe.keys()),r=n.filter(o=>(pe.get(o)||0)<=0);n.length-r.length>bi&&r.forEach(o=>{pi(o,t),pe.delete(o)})}const Si=(e,t,n,r)=>{let i={...n==null?void 0:n.getDerivativeToken(e),...t};return r&&(i=r(i)),i};function Ci(e,t,n=a.ref({})){const r=Le(),o=a.computed(()=>Object.assign({},...t.value||[])),i=a.computed(()=>_e(o.value)),l=a.computed(()=>{var c;return _e(((c=n.value)==null?void 0:c.override)||yr)});return Mt("token",a.computed(()=>{var c,d;return[((c=n.value)==null?void 0:c.salt)||"",(d=e.value)==null?void 0:d.id,i.value,l.value]}),()=>{const{salt:c="",override:d=yr,formatToken:f,getComputedToken:u}=n.value||{},m=u?u(o.value,d,e.value):Si(o.value,d,e.value,f),p=ii(m,c);m._tokenKey=p,gi(p);const g=`${mi}-${At(p)}`;return m._hashId=g,[m,g]},c=>{var d;yi(c[0]._tokenKey,(d=r.value)==null?void 0:d.cache.instanceId)})}var vi={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},Sr="comm",Cr="rule",vr="decl",xi="@import",wi="@keyframes",$i="@layer",xr=Math.abs,Dt=String.fromCharCode;function wr(e){return e.trim()}function tt(e,t,n){return e.replace(t,n)}function Ni(e,t,n){return e.indexOf(t,n)}function ze(e,t){return e.charCodeAt(t)|0}function Ne(e,t,n){return e.slice(t,n)}function _(e){return e.length}function Ti(e){return e.length}function nt(e,t){return t.push(e),e}var rt=1,Te=1,$r=0,U=0,j=0,Pe="";function kt(e,t,n,r,o,i,l,s){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:rt,column:Te,length:l,return:"",siblings:s}}function Pi(){return j}function Oi(){return j=U>0?ze(Pe,--U):0,Te--,j===10&&(Te=1,rt--),j}function Y(){return j=U<$r?ze(Pe,U++):0,Te++,j===10&&(Te=1,rt++),j}function de(){return ze(Pe,U)}function ot(){return U}function at(e,t){return Ne(Pe,e,t)}function Fe(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function Ei(e){return rt=Te=1,$r=_(Pe=e),U=0,[]}function Ai(e){return Pe="",e}function Xt(e){return wr(at(U-1,Wt(e===91?e+2:e===40?e+1:e)))}function Ri(e){for(;(j=de())&&j<33;)Y();return Fe(e)>2||Fe(j)>3?"":" "}function Mi(e,t){for(;--t&&Y()&&!(j<48||j>102||j>57&&j<65||j>70&&j<97););return at(e,ot()+(t<6&&de()==32&&Y()==32))}function Wt(e){for(;Y();)switch(j){case e:return U;case 34:case 39:e!==34&&e!==39&&Wt(j);break;case 40:e===41&&Wt(e);break;case 92:Y();break}return U}function Ii(e,t){for(;Y()&&e+j!==57;)if(e+j===84&&de()===47)break;return"/*"+at(t,U-1)+"*"+Dt(e===47?e:Y())}function Hi(e){for(;!Fe(de());)Y();return at(e,U)}function Vi(e){return Ai(it("",null,null,null,[""],e=Ei(e),0,[0],e))}function it(e,t,n,r,o,i,l,s,c){for(var d=0,f=0,u=l,m=0,p=0,g=0,h=1,b=1,v=1,w=0,C="",S=o,$=i,x=r,y=C;b;)switch(g=w,w=Y()){case 40:if(g!=108&&ze(y,u-1)==58){Ni(y+=tt(Xt(w),"&","&\f"),"&\f",xr(d?s[d-1]:0))!=-1&&(v=-1);break}case 34:case 39:case 91:y+=Xt(w);break;case 9:case 10:case 13:case 32:y+=Ri(g);break;case 92:y+=Mi(ot()-1,7);continue;case 47:switch(de()){case 42:case 47:nt(Bi(Ii(Y(),ot()),t,n,c),c),(Fe(g||1)==5||Fe(de()||1)==5)&&_(y)&&Ne(y,-1,void 0)!==" "&&(y+=" ");break;default:y+="/"}break;case 123*h:s[d++]=_(y)*v;case 125*h:case 59:case 0:switch(w){case 0:case 125:b=0;case 59+f:v==-1&&(y=tt(y,/\f/g,"")),p>0&&(_(y)-u||h===0&&g===47)&&nt(p>32?Tr(y+";",r,n,u-1,c):Tr(tt(y," ","")+";",r,n,u-2,c),c);break;case 59:y+=";";default:if(nt(x=Nr(y,t,n,d,f,o,s,C,S=[],$=[],u,i),i),w===123)if(f===0)it(y,t,x,x,S,i,u,s,$);else switch(m===99&&ze(y,3)===110?100:m){case 100:case 108:case 109:case 115:it(e,x,x,r&&nt(Nr(e,x,x,0,0,o,s,C,o,S=[],u,$),$),o,$,u,s,r?S:$);break;default:it(y,x,x,x,[""],$,0,s,$)}}d=f=p=0,h=v=1,C=y="",u=l;break;case 58:u=1+_(y),p=g;default:if(h<1){if(w==123)--h;else if(w==125&&h++==0&&Oi()==125)continue}switch(y+=Dt(w),w*h){case 38:v=f>0?1:(y+="\f",-1);break;case 44:s[d++]=(_(y)-1)*v,v=1;break;case 64:de()===45&&(y+=Xt(Y())),m=de(),f=u=_(C=y+=Hi(ot())),w++;break;case 45:g===45&&_(y)==2&&(h=0)}}return i}function Nr(e,t,n,r,o,i,l,s,c,d,f,u){for(var m=o-1,p=o===0?i:[""],g=Ti(p),h=0,b=0,v=0;h<r;++h)for(var w=0,C=Ne(e,m+1,m=xr(b=l[h])),S=e;w<g;++w)(S=wr(b>0?p[w]+" "+C:tt(C,/&\f/g,p[w])))&&(c[v++]=S);return kt(e,t,n,o===0?Cr:s,c,d,f,u)}function Bi(e,t,n,r){return kt(e,t,n,Sr,Dt(Pi()),Ne(e,2,-2),0,r)}function Tr(e,t,n,r,o){return kt(e,t,n,vr,Ne(e,0,r),Ne(e,r+1,-1),r,o)}function Gt(e,t){for(var n="",r=0;r<e.length;r++)n+=t(e[r],r,e,t)||"";return n}function Li(e,t,n,r){switch(e.type){case $i:if(e.children.length)break;case xi:case vr:return e.return=e.return||e.value;case Sr:return"";case wi:return e.return=e.value+"{"+Gt(e.children,r)+"}";case Cr:if(!_(e.value=e.props.join(",")))return""}return _(n=Gt(e.children,r))?e.return=e.value+"{"+n+"}":""}function Pr(e,t){const{path:n,parentSelectors:r}=t;ur(!1,`[Ant Design Vue CSS-in-JS] ${n?`Error in '${n}': `:""}${e}${r.length?` Selector info: ${r.join(" -> ")}`:""}`)}const ji=(e,t,n)=>{if(e==="content"){const r=/(attr|counters?|url|(((repeating-)?(linear|radial))|conic)-gradient)\(|(no-)?(open|close)-quote/;(typeof t!="string"||["normal","none","initial","inherit","unset"].indexOf(t)===-1&&!r.test(t)&&(t.charAt(0)!==t.charAt(t.length-1)||t.charAt(0)!=='"'&&t.charAt(0)!=="'"))&&Pr(`You seem to be using a value for 'content' without quotes, try replacing it with \`content: '"${t}"'\`.`,n)}},zi=(e,t,n)=>{e==="animation"&&n.hashId&&t!=="none"&&Pr(`You seem to be using hashed animation '${t}', in which case 'animationName' with Keyframe as value is recommended.`,n)},Or="data-ant-cssinjs-cache-path",Fi="_FILE_STYLE__";let be,Er=!0;function Di(){var e;if(!be&&(be={},$e())){const t=document.createElement("div");t.className=Or,t.style.position="fixed",t.style.visibility="hidden",t.style.top="-9999px",document.body.appendChild(t);let n=getComputedStyle(t).content||"";n=n.replace(/^"/,"").replace(/"$/,""),n.split(";").forEach(o=>{const[i,l]=o.split(":");be[i]=l});const r=document.querySelector(`style[${Or}]`);r&&(Er=!1,(e=r.parentNode)==null||e.removeChild(r)),document.body.removeChild(t)}}function ki(e){return Di(),!!be[e]}function Xi(e){const t=be[e];let n=null;if(t&&$e())if(Er)n=Fi;else{const r=document.querySelector(`style[${ce}="${be[e]}"]`);r?n=r.innerHTML:delete be[e]}return[n,t]}const Ar=$e(),Rr="_skip_check_",Mr="_multi_value_";function Ir(e){return Gt(Vi(e),Li).replace(/\{%%%\:[^;];}/g,";")}function Wi(e){return typeof e=="object"&&e&&(Rr in e||Mr in e)}function Gi(e,t,n){if(!t)return e;const r=`.${t}`,o=n==="low"?`:where(${r})`:r;return e.split(",").map(l=>{var f;const s=l.trim().split(/\s+/);let c=s[0]||"";const d=((f=c.match(/^\w+/))==null?void 0:f[0])||"";return c=`${d}${o}${c.slice(d.length)}`,[c,...s.slice(1)].join(" ")}).join(",")}const qt=new Set;process.env.NODE_ENV;const Ut=(e,t={},{root:n,injectHash:r,parentSelectors:o}={root:!0,parentSelectors:[]})=>{const{hashId:i,layer:l,path:s,hashPriority:c,transformers:d=[],linters:f=[]}=t;let u="",m={};function p(b){const v=b.getName(i);if(!m[v]){const[w]=Ut(b.style,t,{root:!1,parentSelectors:o});m[v]=`@keyframes ${b.getName(i)}${w}`}}function g(b,v=[]){return b.forEach(w=>{Array.isArray(w)?g(w,v):w&&v.push(w)}),v}return g(Array.isArray(e)?e:[e]).forEach(b=>{const v=typeof b=="string"&&!n?{}:b;if(typeof v=="string")u+=`${v}
2
+ `;else if(v._keyframe)p(v);else{const w=d.reduce((C,S)=>{var $;return(($=S==null?void 0:S.visit)==null?void 0:$.call(S,C))||C},v);Object.keys(w).forEach(C=>{const S=w[C];if(typeof S=="object"&&S&&(C!=="animationName"||!S._keyframe)&&!Wi(S)){let $=!1,x=C.trim(),y=!1;(n||r)&&i?x.startsWith("@")?$=!0:x=Gi(C,i,c):n&&!i&&(x==="&"||x==="")&&(x="",y=!0);const[N,A]=Ut(S,t,{root:y,injectHash:$,parentSelectors:[...o,x]});m={...m,...A},u+=`${x}${N}`}else{let $=function(y,N){process.env.NODE_ENV!=="production"&&(typeof S!="object"||!(S!=null&&S[Rr]))&&[ji,zi,...f].forEach(R=>R(y,N,{path:s,hashId:i,parentSelectors:o}));const A=y.replace(/[A-Z]/g,R=>`-${R.toLowerCase()}`);let P=N;!vi[y]&&typeof P=="number"&&P!==0&&(P=`${P}px`),y==="animationName"&&(N!=null&&N._keyframe)&&(p(N),P=N.getName(i)),u+=`${A}:${P};`};const x=(S==null?void 0:S.value)??S;typeof S=="object"&&(S!=null&&S[Mr])&&Array.isArray(x)?x.forEach(y=>{$(C,y)}):$(C,x)}})}}),n?l&&si():u=`{${u}}`,[u,m]};function Hr(e,t){return At(`${e.join("%")}${t}`)}function Vr(e,t){const n=Le(),r=a.computed(()=>{var l;return(l=e.value)==null?void 0:l.token._tokenKey}),o=a.computed(()=>{var l;return[r.value,...((l=e.value)==null?void 0:l.path)||[]]});let i=Ar;return process.env.NODE_ENV!=="production"&&n.value.mock!==void 0&&(i=n.value.mock==="client"),Mt("style",o,()=>{const{path:l,hashId:s,layer:c,nonce:d,clientOnly:f,order:u=0}=e.value||{},m=o.value.join("|");if(ki(m)){const[y,N]=Xi(m);if(y)return[y,r.value,N,{},f,u]}const p=t(),{hashPriority:g,container:h,transformers:b,linters:v,cache:w}=n.value,[C,S]=Ut(p,{hashId:s,hashPriority:g,layer:c,path:l==null?void 0:l.join("-"),transformers:b,linters:v}),$=Ir(C),x=Hr(o.value,$);if(i){const y={mark:ce,prepend:"queue",attachTo:h,priority:u},N=typeof d=="function"?d():d;N&&(y.csp={nonce:N});const A=Vt($,x,y);A[we]=w.instanceId,A.setAttribute(tr,r.value),process.env.NODE_ENV!=="production"&&A.setAttribute(za,o.value.join("|")),Object.keys(S).forEach(P=>{qt.has(P)||(qt.add(P),Vt(Ir(S[P]),`_effect-${P}`,{mark:ce,prepend:"queue",attachTo:h}))})}return[$,r.value,x,S,f,u]},([,,l],s)=>{(s||n.value.autoClear)&&Ar&&Ht(l,{mark:ce})}),l=>l}const qi="cssVar",Ui=(e,t)=>{const{key:n,prefix:r,unitless:o,ignore:i,token:l,scope:s=""}=e;useContext(Xa);const{_tokenKey:c}=l,d=[...e.path,n,s,c];return Mt(qi,d,()=>{const u=t(),[m,p]=ui(u,n,{prefix:r,unitless:o,ignore:i,scope:s}),g=Hr(d,p);return[m,p,g,n]},([,,u])=>{ci&&Ht(u,{mark:ce})})};class Br{constructor(t,n){this._keyframe=!0,this.name=t,this.style=n}getName(t=""){return t?`${t}-${this.name}`:this.name}}function Oe(e){return e.notSplit=!0,e}Oe(["borderTop","borderBottom"]),Oe(["borderTop"]),Oe(["borderBottom"]),Oe(["borderLeft","borderRight"]),Oe(["borderLeft"]),Oe(["borderRight"]);class Lr{}const jr="CALC_UNIT",Ki=new RegExp(jr,"g");function Kt(e){return typeof e=="number"?`${e}${jr}`:e}class ye extends Lr{constructor(t,n){super(),this.result="";const r=typeof t;this.unitlessCssVar=n,t instanceof ye?this.result=`(${t.result})`:r==="number"?this.result=Kt(t):r==="string"&&(this.result=t)}add(t){return t instanceof ye?this.result=`${this.result} + ${t.getResult()}`:(typeof t=="number"||typeof t=="string")&&(this.result=`${this.result} + ${Kt(t)}`),this.lowPriority=!0,this}sub(t){return t instanceof ye?this.result=`${this.result} - ${t.getResult()}`:(typeof t=="number"||typeof t=="string")&&(this.result=`${this.result} - ${Kt(t)}`),this.lowPriority=!0,this}mul(t){return this.lowPriority&&(this.result=`(${this.result})`),t instanceof ye?this.result=`${this.result} * ${t.getResult(!0)}`:(typeof t=="number"||typeof t=="string")&&(this.result=`${this.result} * ${t}`),this.lowPriority=!1,this}div(t){return this.lowPriority&&(this.result=`(${this.result})`),t instanceof ye?this.result=`${this.result} / ${t.getResult(!0)}`:(typeof t=="number"||typeof t=="string")&&(this.result=`${this.result} / ${t}`),this.lowPriority=!1,this}getResult(t){return this.lowPriority||t?`(${this.result})`:this.result}equal(t){const{unit:n}=t||{};let r=!0;return typeof n=="boolean"?r=n:Array.from(this.unitlessCssVar).some(o=>this.result.includes(o))&&(r=!1),this.result=this.result.replace(Ki,r?"px":""),typeof this.lowPriority<"u"?`calc(${this.result})`:this.result}}class Se extends Lr{constructor(t){super(),this.result=0,t instanceof Se?this.result=t.result:typeof t=="number"&&(this.result=t)}add(t){return t instanceof Se?this.result+=t.result:typeof t=="number"&&(this.result+=t),this}sub(t){return t instanceof Se?this.result-=t.result:typeof t=="number"&&(this.result-=t),this}mul(t){return t instanceof Se?this.result*=t.result:typeof t=="number"&&(this.result*=t),this}div(t){return t instanceof Se?this.result/=t.result:typeof t=="number"&&(this.result/=t),this}equal(){return this.result}}const Zi=(e,t)=>{const n=e==="css"?ye:Se;return r=>new n(r,t)},zr=(e,t)=>`${[t,e.replace(/([A-Z]+)([A-Z][a-z]+)/g,"$1-$2").replace(/([a-z])([A-Z])/g,"$1-$2")].filter(Boolean).join("-")}`;function Fr(e,t={},n,r){const o={...t[e]};if(r!=null&&r.deprecatedTokens){const{deprecatedTokens:l}=r;l.forEach(([s,c])=>{process.env.NODE_ENV!=="production"&&dr(!(o!=null&&o[s]),`Component Token \`${String(s)}\` of ${String(e)} is deprecated. Please use \`${String(c)}\` instead.`),(o!=null&&o[s]||o!=null&&o[c])&&(o[c]??(o[c]=o==null?void 0:o[s]))})}const i={...n,...o};return Object.keys(i).forEach(l=>{i[l]===t[l]&&delete i[l]}),i}const Dr=process.env.NODE_ENV!=="production"||typeof CSSINJS_STATISTIC<"u";let Zt=!0;function ee(...e){if(!Dr)return Object.assign({},...e);Zt=!1;const t={};return e.forEach(n=>{if(typeof n!="object")return;Object.keys(n).forEach(o=>{Object.defineProperty(t,o,{configurable:!0,enumerable:!0,get:()=>n[o]})})}),Zt=!0,t}const kr={};function Yi(){}const Qi=e=>{let t,n=e,r=Yi;return Dr&&typeof Proxy<"u"&&(t=new Set,n=new Proxy(e,{get(o,i){return Zt&&(t==null||t.add(i)),o[i]}}),r=(o,i)=>{var l;kr[o]={global:Array.from(t),component:{...(l=kr[o])==null?void 0:l.component,...i}}}),{token:n,keys:t,flush:r}};function Xr(e,t={},n){return typeof n=="function"?n(ee(t,t[e]??{})):n??{}}function Ji(e){return e==="js"?{max:Math.max,min:Math.min}:{max:(...t)=>`max(${t.map(n=>Z(n)).join(",")})`,min:(...t)=>`min(${t.map(n=>Z(n)).join(",")})`}}const _i=1e3*60*10;class el{constructor(){Ve(this,"map",new Map);Ve(this,"objectIDMap",new WeakMap);Ve(this,"nextID",0);Ve(this,"lastAccessBeat",new Map);Ve(this,"accessBeat",0)}set(t,n){this.clear();const r=this.getCompositeKey(t);this.map.set(r,n),this.lastAccessBeat.set(r,Date.now())}get(t){const n=this.getCompositeKey(t),r=this.map.get(n);return this.lastAccessBeat.set(n,Date.now()),this.accessBeat+=1,r}getCompositeKey(t){return t.map(r=>r&&typeof r=="object"?`obj_${this.getObjectID(r)}`:`${typeof r}_${r}`).join("|")}getObjectID(t){if(this.objectIDMap.has(t))return this.objectIDMap.get(t);const n=this.nextID;return this.objectIDMap.set(t,n),this.nextID+=1,n}clear(){if(this.accessBeat>1e4){const t=Date.now();this.lastAccessBeat.forEach((n,r)=>{t-n>_i&&(this.map.delete(r),this.lastAccessBeat.delete(r))}),this.accessBeat=0}}}const Wr=new el;function tl(e,t){return a.computed(()=>{const n=Wr.get(t);if(n)return n;const r=e();return Wr.set(t,r),r})}const nl=()=>({});function rl(e){const{useCSP:t=nl,useToken:n,usePrefix:r,getResetStyles:o,getCommonStyle:i,getCompUnitless:l}=e;function s(u,m,p,g){const h=Array.isArray(u)?u[0]:u;function b(y){return`${String(h)}${y.slice(0,1).toUpperCase()}${y.slice(1)}`}const v=(g==null?void 0:g.unitless)||{},C={...typeof l=="function"?l(u):{},[b("zIndexPopup")]:!0};Object.keys(v).forEach(y=>{C[b(y)]=v[y]});const S={...g,unitless:C,prefixToken:b},$=d(u,m,p,S),x=c(h,p,S);return(y,N=a.toValue(y))=>{const[,A]=$(a.toValue(y),N),[P,R]=x(N);return[P,A,R]}}function c(u,m,p){const{unitless:g,injectStyle:h=!0,prefixToken:b,ignore:v}=p,w=({rootCls:S,cssVar:$={}})=>{const{realToken:x}=n();return Ui({path:[u],prefix:$.prefix,key:$.key,unitless:g,ignore:v,token:x,scope:S},()=>{const y=Xr(u,x,m),N=Fr(u,x,y,{deprecatedTokens:p==null?void 0:p.deprecatedTokens});return Object.keys(y).forEach(A=>{N[b(A)]=N[A],delete N[A]}),N}),null};return S=>{const{cssVar:$}=n();return[x=>h&&$?a.createVNode(a.Fragment,null,[a.createVNode(w,{rootCls:S,cssVar:$,component:u},null),x]):x,$==null?void 0:$.key]}}function d(u,m,p,g={}){const h=Array.isArray(u)?u:[u,u],[b]=h,v=h.join("-"),w=e.layer||{name:"antd"};return(C,S=C)=>{const{theme:$,realToken:x,hashId:y,token:N,cssVar:A}=n(),{rootPrefixCls:P,iconPrefixCls:R}=r(),F=t(),I=A?"css":"js",B=a.unref(tl(()=>{const xe=new Set;return A&&Object.keys(g.unitless||{}).forEach(He=>{xe.add(et(He,A.prefix)),xe.add(et(He,zr(b,A.prefix)))}),Zi(I,xe)},[I,b,A==null?void 0:A.prefix])),{max:X,min:J}=Ji(I),Ie=a.computed(()=>({theme:$.value,token:N.value,hashId:y.value,nonce:()=>F.nonce,clientOnly:g.clientOnly,layer:w,order:g.order||-999}));return typeof o=="function"&&Vr(a.computed(()=>({...Ie.value,clientOnly:!1,path:["Shared",P]})),()=>o(N.value,{prefix:{rootPrefixCls:P,iconPrefixCls:R},csp:F})),[Vr(a.computed(()=>({...Ie.value,path:[v,C,R]})),()=>{if(g.injectStyle===!1)return[];const{token:xe,flush:He}=Qi(N),me=Xr(b,x,p),Tt=`.${C}`,Ye=Fr(b,x,me,{deprecatedTokens:g.deprecatedTokens});A&&me&&typeof me=="object"&&Object.keys(me).forEach(Qe=>{me[Qe]=`var(${et(Qe,zr(b,A.prefix))})`});const E=a.computed(()=>ee(xe.value,{componentCls:Tt,prefixCls:C,iconCls:`.${R}`,antCls:`.${P}`,calc:B,max:X,min:J},A?me:Ye)),z=a.computed(()=>m(E.value,{hashId:y.value,prefixCls:C,rootPrefixCls:P,iconPrefixCls:R}));He(b,Ye);const le=typeof i=="function"?i(E.value,C,S,g.resetFont):null;return[g.resetStyle===!1?null:le,z.value]}),y]}}function f(u,m,p,g={}){const h=d(u,m,p,{resetStyle:!1,order:-998,...g});return({prefixCls:v,rootCls:w=v})=>(h(v,w),null)}return{genStyleHooks:s,genSubStyleComponent:f,genComponentStyleHook:d}}const ol={size:!0,sizeSM:!0,sizeLG:!0,sizeMD:!0,sizeXS:!0,sizeXXS:!0,sizeMS:!0,sizeXL:!0,sizeXXL:!0,sizeUnit:!0,sizeStep:!0,motionBase:!0,motionUnit:!0},al={lineHeight:!0,lineHeightSM:!0,lineHeightLG:!0,lineHeightHeading1:!0,lineHeightHeading2:!0,lineHeightHeading3:!0,lineHeightHeading4:!0,lineHeightHeading5:!0,opacityLoading:!0,fontWeightStrong:!0,zIndexPopupBase:!0,zIndexBase:!0,opacityImage:!0};function H(){return H=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},H.apply(null,arguments)}function k(e,t){il(e)&&(e="100%");var n=ll(e);return e=t===360?e:Math.min(t,Math.max(0,parseFloat(e))),n&&(e=parseInt(String(e*t),10)/100),Math.abs(e-t)<1e-6?1:(t===360?e=(e<0?e%t+t:e%t)/parseFloat(String(t)):e=e%t/parseFloat(String(t)),e)}function lt(e){return Math.min(1,Math.max(0,e))}function il(e){return typeof e=="string"&&e.indexOf(".")!==-1&&parseFloat(e)===1}function ll(e){return typeof e=="string"&&e.indexOf("%")!==-1}function Gr(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function st(e){return e<=1?"".concat(Number(e)*100,"%"):e}function Ce(e){return e.length===1?"0"+e:String(e)}function sl(e,t,n){return{r:k(e,255)*255,g:k(t,255)*255,b:k(n,255)*255}}function qr(e,t,n){e=k(e,255),t=k(t,255),n=k(n,255);var r=Math.max(e,t,n),o=Math.min(e,t,n),i=0,l=0,s=(r+o)/2;if(r===o)l=0,i=0;else{var c=r-o;switch(l=s>.5?c/(2-r-o):c/(r+o),r){case e:i=(t-n)/c+(t<n?6:0);break;case t:i=(n-e)/c+2;break;case n:i=(e-t)/c+4;break}i/=6}return{h:i,s:l,l:s}}function Yt(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*(6*n):n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function cl(e,t,n){var r,o,i;if(e=k(e,360),t=k(t,100),n=k(n,100),t===0)o=n,i=n,r=n;else{var l=n<.5?n*(1+t):n+t-n*t,s=2*n-l;r=Yt(s,l,e+1/3),o=Yt(s,l,e),i=Yt(s,l,e-1/3)}return{r:r*255,g:o*255,b:i*255}}function Qt(e,t,n){e=k(e,255),t=k(t,255),n=k(n,255);var r=Math.max(e,t,n),o=Math.min(e,t,n),i=0,l=r,s=r-o,c=r===0?0:s/r;if(r===o)i=0;else{switch(r){case e:i=(t-n)/s+(t<n?6:0);break;case t:i=(n-e)/s+2;break;case n:i=(e-t)/s+4;break}i/=6}return{h:i,s:c,v:l}}function dl(e,t,n){e=k(e,360)*6,t=k(t,100),n=k(n,100);var r=Math.floor(e),o=e-r,i=n*(1-t),l=n*(1-o*t),s=n*(1-(1-o)*t),c=r%6,d=[n,l,i,i,s,n][c],f=[s,n,n,l,i,i][c],u=[i,i,s,n,n,l][c];return{r:d*255,g:f*255,b:u*255}}function Jt(e,t,n,r){var o=[Ce(Math.round(e).toString(16)),Ce(Math.round(t).toString(16)),Ce(Math.round(n).toString(16))];return r&&o[0].startsWith(o[0].charAt(1))&&o[1].startsWith(o[1].charAt(1))&&o[2].startsWith(o[2].charAt(1))?o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0):o.join("")}function ul(e,t,n,r,o){var i=[Ce(Math.round(e).toString(16)),Ce(Math.round(t).toString(16)),Ce(Math.round(n).toString(16)),Ce(fl(r))];return o&&i[0].startsWith(i[0].charAt(1))&&i[1].startsWith(i[1].charAt(1))&&i[2].startsWith(i[2].charAt(1))&&i[3].startsWith(i[3].charAt(1))?i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0)+i[3].charAt(0):i.join("")}function fl(e){return Math.round(parseFloat(e)*255).toString(16)}function Ur(e){return q(e)/255}function q(e){return parseInt(e,16)}function hl(e){return{r:e>>16,g:(e&65280)>>8,b:e&255}}var _t={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};function Ee(e){var t={r:0,g:0,b:0},n=1,r=null,o=null,i=null,l=!1,s=!1;return typeof e=="string"&&(e=pl(e)),typeof e=="object"&&(oe(e.r)&&oe(e.g)&&oe(e.b)?(t=sl(e.r,e.g,e.b),l=!0,s=String(e.r).substr(-1)==="%"?"prgb":"rgb"):oe(e.h)&&oe(e.s)&&oe(e.v)?(r=st(e.s),o=st(e.v),t=dl(e.h,r,o),l=!0,s="hsv"):oe(e.h)&&oe(e.s)&&oe(e.l)&&(r=st(e.s),i=st(e.l),t=cl(e.h,r,i),l=!0,s="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(n=e.a)),n=Gr(n),{ok:l,format:e.format||s,r:Math.min(255,Math.max(t.r,0)),g:Math.min(255,Math.max(t.g,0)),b:Math.min(255,Math.max(t.b,0)),a:n}}var ml="[-\\+]?\\d+%?",gl="[-\\+]?\\d*\\.\\d+%?",ue="(?:".concat(gl,")|(?:").concat(ml,")"),en="[\\s|\\(]+(".concat(ue,")[,|\\s]+(").concat(ue,")[,|\\s]+(").concat(ue,")\\s*\\)?"),tn="[\\s|\\(]+(".concat(ue,")[,|\\s]+(").concat(ue,")[,|\\s]+(").concat(ue,")[,|\\s]+(").concat(ue,")\\s*\\)?"),Q={CSS_UNIT:new RegExp(ue),rgb:new RegExp("rgb"+en),rgba:new RegExp("rgba"+tn),hsl:new RegExp("hsl"+en),hsla:new RegExp("hsla"+tn),hsv:new RegExp("hsv"+en),hsva:new RegExp("hsva"+tn),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/};function pl(e){if(e=e.trim().toLowerCase(),e.length===0)return!1;var t=!1;if(_t[e])e=_t[e],t=!0;else if(e==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var n=Q.rgb.exec(e);return n?{r:n[1],g:n[2],b:n[3]}:(n=Q.rgba.exec(e),n?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=Q.hsl.exec(e),n?{h:n[1],s:n[2],l:n[3]}:(n=Q.hsla.exec(e),n?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=Q.hsv.exec(e),n?{h:n[1],s:n[2],v:n[3]}:(n=Q.hsva.exec(e),n?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=Q.hex8.exec(e),n?{r:q(n[1]),g:q(n[2]),b:q(n[3]),a:Ur(n[4]),format:t?"name":"hex8"}:(n=Q.hex6.exec(e),n?{r:q(n[1]),g:q(n[2]),b:q(n[3]),format:t?"name":"hex"}:(n=Q.hex4.exec(e),n?{r:q(n[1]+n[1]),g:q(n[2]+n[2]),b:q(n[3]+n[3]),a:Ur(n[4]+n[4]),format:t?"name":"hex8"}:(n=Q.hex3.exec(e),n?{r:q(n[1]+n[1]),g:q(n[2]+n[2]),b:q(n[3]+n[3]),format:t?"name":"hex"}:!1)))))))))}function oe(e){return!!Q.CSS_UNIT.exec(String(e))}var te=function(){function e(t,n){t===void 0&&(t=""),n===void 0&&(n={});var r;if(t instanceof e)return t;typeof t=="number"&&(t=hl(t)),this.originalInput=t;var o=Ee(t);this.originalInput=t,this.r=o.r,this.g=o.g,this.b=o.b,this.a=o.a,this.roundA=Math.round(100*this.a)/100,this.format=(r=n.format)!==null&&r!==void 0?r:o.format,this.gradientType=n.gradientType,this.r<1&&(this.r=Math.round(this.r)),this.g<1&&(this.g=Math.round(this.g)),this.b<1&&(this.b=Math.round(this.b)),this.isValid=o.ok}return e.prototype.isDark=function(){return this.getBrightness()<128},e.prototype.isLight=function(){return!this.isDark()},e.prototype.getBrightness=function(){var t=this.toRgb();return(t.r*299+t.g*587+t.b*114)/1e3},e.prototype.getLuminance=function(){var t=this.toRgb(),n,r,o,i=t.r/255,l=t.g/255,s=t.b/255;return i<=.03928?n=i/12.92:n=Math.pow((i+.055)/1.055,2.4),l<=.03928?r=l/12.92:r=Math.pow((l+.055)/1.055,2.4),s<=.03928?o=s/12.92:o=Math.pow((s+.055)/1.055,2.4),.2126*n+.7152*r+.0722*o},e.prototype.getAlpha=function(){return this.a},e.prototype.setAlpha=function(t){return this.a=Gr(t),this.roundA=Math.round(100*this.a)/100,this},e.prototype.isMonochrome=function(){var t=this.toHsl().s;return t===0},e.prototype.toHsv=function(){var t=Qt(this.r,this.g,this.b);return{h:t.h*360,s:t.s,v:t.v,a:this.a}},e.prototype.toHsvString=function(){var t=Qt(this.r,this.g,this.b),n=Math.round(t.h*360),r=Math.round(t.s*100),o=Math.round(t.v*100);return this.a===1?"hsv(".concat(n,", ").concat(r,"%, ").concat(o,"%)"):"hsva(".concat(n,", ").concat(r,"%, ").concat(o,"%, ").concat(this.roundA,")")},e.prototype.toHsl=function(){var t=qr(this.r,this.g,this.b);return{h:t.h*360,s:t.s,l:t.l,a:this.a}},e.prototype.toHslString=function(){var t=qr(this.r,this.g,this.b),n=Math.round(t.h*360),r=Math.round(t.s*100),o=Math.round(t.l*100);return this.a===1?"hsl(".concat(n,", ").concat(r,"%, ").concat(o,"%)"):"hsla(".concat(n,", ").concat(r,"%, ").concat(o,"%, ").concat(this.roundA,")")},e.prototype.toHex=function(t){return t===void 0&&(t=!1),Jt(this.r,this.g,this.b,t)},e.prototype.toHexString=function(t){return t===void 0&&(t=!1),"#"+this.toHex(t)},e.prototype.toHex8=function(t){return t===void 0&&(t=!1),ul(this.r,this.g,this.b,this.a,t)},e.prototype.toHex8String=function(t){return t===void 0&&(t=!1),"#"+this.toHex8(t)},e.prototype.toHexShortString=function(t){return t===void 0&&(t=!1),this.a===1?this.toHexString(t):this.toHex8String(t)},e.prototype.toRgb=function(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}},e.prototype.toRgbString=function(){var t=Math.round(this.r),n=Math.round(this.g),r=Math.round(this.b);return this.a===1?"rgb(".concat(t,", ").concat(n,", ").concat(r,")"):"rgba(".concat(t,", ").concat(n,", ").concat(r,", ").concat(this.roundA,")")},e.prototype.toPercentageRgb=function(){var t=function(n){return"".concat(Math.round(k(n,255)*100),"%")};return{r:t(this.r),g:t(this.g),b:t(this.b),a:this.a}},e.prototype.toPercentageRgbString=function(){var t=function(n){return Math.round(k(n,255)*100)};return this.a===1?"rgb(".concat(t(this.r),"%, ").concat(t(this.g),"%, ").concat(t(this.b),"%)"):"rgba(".concat(t(this.r),"%, ").concat(t(this.g),"%, ").concat(t(this.b),"%, ").concat(this.roundA,")")},e.prototype.toName=function(){if(this.a===0)return"transparent";if(this.a<1)return!1;for(var t="#"+Jt(this.r,this.g,this.b,!1),n=0,r=Object.entries(_t);n<r.length;n++){var o=r[n],i=o[0],l=o[1];if(t===l)return i}return!1},e.prototype.toString=function(t){var n=!!t;t=t??this.format;var r=!1,o=this.a<1&&this.a>=0,i=!n&&o&&(t.startsWith("hex")||t==="name");return i?t==="name"&&this.a===0?this.toName():this.toRgbString():(t==="rgb"&&(r=this.toRgbString()),t==="prgb"&&(r=this.toPercentageRgbString()),(t==="hex"||t==="hex6")&&(r=this.toHexString()),t==="hex3"&&(r=this.toHexString(!0)),t==="hex4"&&(r=this.toHex8String(!0)),t==="hex8"&&(r=this.toHex8String()),t==="name"&&(r=this.toName()),t==="hsl"&&(r=this.toHslString()),t==="hsv"&&(r=this.toHsvString()),r||this.toHexString())},e.prototype.toNumber=function(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)},e.prototype.clone=function(){return new e(this.toString())},e.prototype.lighten=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.l+=t/100,n.l=lt(n.l),new e(n)},e.prototype.brighten=function(t){t===void 0&&(t=10);var n=this.toRgb();return n.r=Math.max(0,Math.min(255,n.r-Math.round(255*-(t/100)))),n.g=Math.max(0,Math.min(255,n.g-Math.round(255*-(t/100)))),n.b=Math.max(0,Math.min(255,n.b-Math.round(255*-(t/100)))),new e(n)},e.prototype.darken=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.l-=t/100,n.l=lt(n.l),new e(n)},e.prototype.tint=function(t){return t===void 0&&(t=10),this.mix("white",t)},e.prototype.shade=function(t){return t===void 0&&(t=10),this.mix("black",t)},e.prototype.desaturate=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.s-=t/100,n.s=lt(n.s),new e(n)},e.prototype.saturate=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.s+=t/100,n.s=lt(n.s),new e(n)},e.prototype.greyscale=function(){return this.desaturate(100)},e.prototype.spin=function(t){var n=this.toHsl(),r=(n.h+t)%360;return n.h=r<0?360+r:r,new e(n)},e.prototype.mix=function(t,n){n===void 0&&(n=50);var r=this.toRgb(),o=new e(t).toRgb(),i=n/100,l={r:(o.r-r.r)*i+r.r,g:(o.g-r.g)*i+r.g,b:(o.b-r.b)*i+r.b,a:(o.a-r.a)*i+r.a};return new e(l)},e.prototype.analogous=function(t,n){t===void 0&&(t=6),n===void 0&&(n=30);var r=this.toHsl(),o=360/n,i=[this];for(r.h=(r.h-(o*t>>1)+720)%360;--t;)r.h=(r.h+o)%360,i.push(new e(r));return i},e.prototype.complement=function(){var t=this.toHsl();return t.h=(t.h+180)%360,new e(t)},e.prototype.monochromatic=function(t){t===void 0&&(t=6);for(var n=this.toHsv(),r=n.h,o=n.s,i=n.v,l=[],s=1/t;t--;)l.push(new e({h:r,s:o,v:i})),i=(i+s)%1;return l},e.prototype.splitcomplement=function(){var t=this.toHsl(),n=t.h;return[this,new e({h:(n+72)%360,s:t.s,l:t.l}),new e({h:(n+216)%360,s:t.s,l:t.l})]},e.prototype.onBackground=function(t){var n=this.toRgb(),r=new e(t).toRgb(),o=n.a+r.a*(1-n.a);return new e({r:(n.r*n.a+r.r*r.a*(1-n.a))/o,g:(n.g*n.a+r.g*r.a*(1-n.a))/o,b:(n.b*n.a+r.b*r.a*(1-n.a))/o,a:o})},e.prototype.triad=function(){return this.polyad(3)},e.prototype.tetrad=function(){return this.polyad(4)},e.prototype.polyad=function(t){for(var n=this.toHsl(),r=n.h,o=[this],i=360/t,l=1;l<t;l++)o.push(new e({h:(r+l*i)%360,s:n.s,l:n.l}));return o},e.prototype.equals=function(t){return this.toRgbString()===new e(t).toRgbString()},e}();function nn(e){return e>=0&&e<=255}function ct(e,t){const{r:n,g:r,b:o,a:i}=new te(e).toRgb();if(i<1)return e;const{r:l,g:s,b:c}=new te(t).toRgb();for(let d=.01;d<=1;d+=.01){const f=Math.round((n-l*(1-d))/d),u=Math.round((r-s*(1-d))/d),m=Math.round((o-c*(1-d))/d);if(nn(f)&&nn(u)&&nn(m))return new te({r:f,g:u,b:m,a:Math.round(d*100)/100}).toRgbString()}return new te({r:n,g:r,b:o,a:1}).toRgbString()}const Kr={blue:"#1677ff",purple:"#722ED1",cyan:"#13C2C2",green:"#52C41A",magenta:"#EB2F96",pink:"#eb2f96",red:"#F5222D",orange:"#FA8C16",yellow:"#FADB14",volcano:"#FA541C",geekblue:"#2F54EB",gold:"#FAAD14",lime:"#A0D911"},Zr=H(H({},Kr),{colorPrimary:"#1677ff",colorSuccess:"#52c41a",colorWarning:"#faad14",colorError:"#ff4d4f",colorInfo:"#1677ff",colorTextBase:"",colorBgBase:"",fontFamily:`-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,
3
3
  'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',
4
4
  'Noto Color Emoji'`,fontSize:14,lineWidth:1,lineType:"solid",motionUnit:.1,motionBase:0,motionEaseOutCirc:"cubic-bezier(0.08, 0.82, 0.17, 1)",motionEaseInOutCirc:"cubic-bezier(0.78, 0.14, 0.15, 0.86)",motionEaseOut:"cubic-bezier(0.215, 0.61, 0.355, 1)",motionEaseInOut:"cubic-bezier(0.645, 0.045, 0.355, 1)",motionEaseOutBack:"cubic-bezier(0.12, 0.4, 0.29, 1.46)",motionEaseInBack:"cubic-bezier(0.71, -0.46, 0.88, 0.6)",motionEaseInQuint:"cubic-bezier(0.755, 0.05, 0.855, 0.06)",motionEaseOutQuint:"cubic-bezier(0.23, 1, 0.32, 1)",borderRadius:6,sizeUnit:4,sizeStep:4,sizePopupArrow:16,controlHeight:32,zIndexBase:0,zIndexPopupBase:1e3,opacityImage:1,wireframe:!1});var bl=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};function yl(e){const{override:t}=e,n=bl(e,["override"]),r=H({},t);Object.keys(Zr).forEach(p=>{delete r[p]});const o=H(H({},n),r),i=480,l=576,s=768,c=992,d=1200,f=1600,u=2e3;return H(H(H({},o),{colorLink:o.colorInfoText,colorLinkHover:o.colorInfoHover,colorLinkActive:o.colorInfoActive,colorFillContent:o.colorFillSecondary,colorFillContentHover:o.colorFill,colorFillAlter:o.colorFillQuaternary,colorBgContainerDisabled:o.colorFillTertiary,colorBorderBg:o.colorBgContainer,colorSplit:ct(o.colorBorderSecondary,o.colorBgContainer),colorTextPlaceholder:o.colorTextQuaternary,colorTextDisabled:o.colorTextQuaternary,colorTextHeading:o.colorText,colorTextLabel:o.colorTextSecondary,colorTextDescription:o.colorTextTertiary,colorTextLightSolid:o.colorWhite,colorHighlight:o.colorError,colorBgTextHover:o.colorFillSecondary,colorBgTextActive:o.colorFill,colorIcon:o.colorTextTertiary,colorIconHover:o.colorText,colorErrorOutline:ct(o.colorErrorBg,o.colorBgContainer),colorWarningOutline:ct(o.colorWarningBg,o.colorBgContainer),fontSizeIcon:o.fontSizeSM,lineWidth:o.lineWidth,controlOutlineWidth:o.lineWidth*2,controlInteractiveSize:o.controlHeight/2,controlItemBgHover:o.colorFillTertiary,controlItemBgActive:o.colorPrimaryBg,controlItemBgActiveHover:o.colorPrimaryBgHover,controlItemBgActiveDisabled:o.colorFill,controlTmpOutline:o.colorFillQuaternary,controlOutline:ct(o.colorPrimaryBg,o.colorBgContainer),lineType:o.lineType,borderRadius:o.borderRadius,borderRadiusXS:o.borderRadiusXS,borderRadiusSM:o.borderRadiusSM,borderRadiusLG:o.borderRadiusLG,fontWeightStrong:600,opacityLoading:.65,linkDecoration:"none",linkHoverDecoration:"none",linkFocusDecoration:"none",controlPaddingHorizontal:12,controlPaddingHorizontalSM:8,paddingXXS:o.sizeXXS,paddingXS:o.sizeXS,paddingSM:o.sizeSM,padding:o.size,paddingMD:o.sizeMD,paddingLG:o.sizeLG,paddingXL:o.sizeXL,paddingContentHorizontalLG:o.sizeLG,paddingContentVerticalLG:o.sizeMS,paddingContentHorizontal:o.sizeMS,paddingContentVertical:o.sizeSM,paddingContentHorizontalSM:o.size,paddingContentVerticalSM:o.sizeXS,marginXXS:o.sizeXXS,marginXS:o.sizeXS,marginSM:o.sizeSM,margin:o.size,marginMD:o.sizeMD,marginLG:o.sizeLG,marginXL:o.sizeXL,marginXXL:o.sizeXXL,boxShadow:`
5
5
  0 1px 2px 0 rgba(0, 0, 0, 0.03),
@@ -33,11 +33,11 @@
33
33
  0 -6px 16px 0 rgba(0, 0, 0, 0.08),
34
34
  0 -3px 6px -4px rgba(0, 0, 0, 0.12),
35
35
  0 -9px 28px 8px rgba(0, 0, 0, 0.05)
36
- `,boxShadowTabsOverflowLeft:"inset 10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowRight:"inset -10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowTop:"inset 0 10px 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowBottom:"inset 0 -10px 8px -8px rgba(0, 0, 0, 0.08)"}),r)}const Cl="1.0.3",Yr="%";class Sl{constructor(t){this.cache=new Map,this.instanceId=t}get(t){return this.cache.get(Array.isArray(t)?t.join(Yr):t)||null}update(t,n){const r=Array.isArray(t)?t.join(Yr):t,o=this.cache.get(r),i=n(o);i===null?this.cache.delete(r):this.cache.set(r,i)}}const rn="data-css-hash",dt="__cssinjs_instance__";function De(){const e=Math.random().toString(12).slice(2);if(typeof document<"u"&&document.head&&document.body){const t=document.body.querySelectorAll(`style[${rn}]`)||[],{firstChild:n}=document.head;Array.from(t).forEach(o=>{o[dt]=o[dt]||e,o[dt]===e&&document.head.insertBefore(o,n)});const r={};Array.from(document.querySelectorAll(`style[${rn}]`)).forEach(o=>{var i;const l=o.getAttribute(rn);r[l]?o[dt]===e&&((i=o.parentNode)===null||i===void 0||i.removeChild(o)):r[l]=!0})}return new Sl(e)}const Qr=Symbol("StyleContextKey"),vl=()=>{var e,t,n;const r=a.getCurrentInstance();let o;if(r&&r.appContext){const i=(n=(t=(e=r.appContext)===null||e===void 0?void 0:e.config)===null||t===void 0?void 0:t.globalProperties)===null||n===void 0?void 0:n.__ANTDV_CSSINJS_CACHE__;i?o=i:(o=De(),r.appContext.config.globalProperties&&(r.appContext.config.globalProperties.__ANTDV_CSSINJS_CACHE__=o))}else o=De();return o},Jr={cache:De(),defaultCache:!0,hashPriority:"low"},xl=()=>{const e=vl();return a.inject(Qr,a.shallowRef(H(H({},Jr),{cache:e})))},wl=e=>{const t=xl(),n=a.shallowRef(H(H({},Jr),{cache:De()}));return a.watch([()=>a.unref(e),t],()=>{const r=H({},t.value),o=a.unref(e);Object.keys(o).forEach(l=>{const s=o[l];o[l]!==void 0&&(r[l]=s)});const{cache:i}=o;r.cache=r.cache||De(),r.defaultCache=!i&&t.value.defaultCache,n.value=r},{immediate:!0}),a.provide(Qr,n),n},$l=()=>({autoClear:Pt(),mock:Yn(),cache:Kn(),defaultCache:Pt(),hashPriority:Yn(),container:va(),ssrInline:Pt(),transformers:Zn(),linters:Zn()});Ca(a.defineComponent({name:"AStyleProvider",inheritAttrs:!1,props:$l(),setup(e,t){let{slots:n}=t;return wl(e),()=>{var r;return(r=n.default)===null||r===void 0?void 0:r.call(n)}}}));function Nl(e,t){if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}class Ae{constructor(){this.cache=new Map,this.keys=[],this.cacheCallTimes=0}size(){return this.keys.length}internalGet(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r={map:this.cache};return t.forEach(o=>{var i;r?r=(i=r==null?void 0:r.map)===null||i===void 0?void 0:i.get(o):r=void 0}),r!=null&&r.value&&n&&(r.value[1]=this.cacheCallTimes++),r==null?void 0:r.value}get(t){var n;return(n=this.internalGet(t,!0))===null||n===void 0?void 0:n[0]}has(t){return!!this.internalGet(t)}set(t,n){if(!this.has(t)){if(this.size()+1>Ae.MAX_CACHE_SIZE+Ae.MAX_CACHE_OFFSET){const[o]=this.keys.reduce((i,l)=>{const[,s]=i;return this.internalGet(l)[1]<s?[l,this.internalGet(l)[1]]:i},[this.keys[0],this.cacheCallTimes]);this.delete(o)}this.keys.push(t)}let r=this.cache;t.forEach((o,i)=>{if(i===t.length-1)r.set(o,{value:[n,this.cacheCallTimes++]});else{const l=r.get(o);l?l.map||(l.map=new Map):r.set(o,{map:new Map}),r=r.get(o).map}})}deleteByPath(t,n){var r;const o=t.get(n[0]);if(n.length===1)return o.map?t.set(n[0],{map:o.map}):t.delete(n[0]),(r=o.value)===null||r===void 0?void 0:r[0];const i=this.deleteByPath(o.map,n.slice(1));return(!o.map||o.map.size===0)&&!o.value&&t.delete(n[0]),i}delete(t){if(this.has(t))return this.keys=this.keys.filter(n=>!Nl(n,t)),this.deleteByPath(this.cache,t)}}Ae.MAX_CACHE_SIZE=20,Ae.MAX_CACHE_OFFSET=5;let on={};function Tl(e,t){process.env.NODE_ENV!=="production"&&!e&&console!==void 0&&console.error(`Warning: ${t}`)}function Pl(){on={}}function Ol(e,t,n){!t&&!on[n]&&(e(!1,n),on[n]=!0)}function El(e,t){Ol(Tl,e,t)}function Al(){}let _r=Al;process.env.NODE_ENV!=="production"&&(_r=(e,t,n)=>{El(e,`[ant-design-vue: ${t}] ${n}`),process.env.NODE_ENV==="test"&&Pl()});let eo=0;class Rl{constructor(t){this.derivatives=Array.isArray(t)?t:[t],this.id=eo,t.length===0&&_r(t.length>0,"[Ant Design Vue CSS-in-JS] Theme should have at least one derivative function."),eo+=1}getDerivativeToken(t){return this.derivatives.reduce((n,r)=>r(t,n),void 0)}}const an=new Ae;function Ml(e){const t=Array.isArray(e)?e:[e];return an.has(t)||an.set(t,new Rl(t)),an.get(t)}process.env.NODE_ENV,process.env.NODE_ENV;const Il=new Set;process.env.NODE_ENV;function Re(e){return e.notSplit=!0,e}Re(["borderTop","borderBottom"]),Re(["borderTop"]),Re(["borderBottom"]),Re(["borderLeft","borderRight"]),Re(["borderLeft"]),Re(["borderRight"]);var ut=2,to=.16,Hl=.05,Vl=.05,Bl=.15,no=5,ro=4,Ll=[{index:7,opacity:.15},{index:6,opacity:.25},{index:5,opacity:.3},{index:5,opacity:.45},{index:5,opacity:.65},{index:5,opacity:.85},{index:4,opacity:.9},{index:3,opacity:.95},{index:2,opacity:.97},{index:1,opacity:.98}];function oo(e){var t=e.r,n=e.g,r=e.b,o=Qt(t,n,r);return{h:o.h*360,s:o.s,v:o.v}}function ft(e){var t=e.r,n=e.g,r=e.b;return"#".concat(Jt(t,n,r,!1))}function jl(e,t,n){var r=n/100,o={r:(t.r-e.r)*r+e.r,g:(t.g-e.g)*r+e.g,b:(t.b-e.b)*r+e.b};return o}function ao(e,t,n){var r;return Math.round(e.h)>=60&&Math.round(e.h)<=240?r=n?Math.round(e.h)-ut*t:Math.round(e.h)+ut*t:r=n?Math.round(e.h)+ut*t:Math.round(e.h)-ut*t,r<0?r+=360:r>=360&&(r-=360),r}function io(e,t,n){if(e.h===0&&e.s===0)return e.s;var r;return n?r=e.s-to*t:t===ro?r=e.s+to:r=e.s+Hl*t,r>1&&(r=1),n&&t===no&&r>.1&&(r=.1),r<.06&&(r=.06),Number(r.toFixed(2))}function lo(e,t,n){var r;return n?r=e.v+Vl*t:r=e.v-Bl*t,r>1&&(r=1),Number(r.toFixed(2))}function ke(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=[],r=Ee(e),o=no;o>0;o-=1){var i=oo(r),l=ft(Ee({h:ao(i,o,!0),s:io(i,o,!0),v:lo(i,o,!0)}));n.push(l)}n.push(ft(r));for(var s=1;s<=ro;s+=1){var c=oo(r),d=ft(Ee({h:ao(c,s),s:io(c,s),v:lo(c,s)}));n.push(d)}return t.theme==="dark"?Ll.map(function(f){var u=f.index,m=f.opacity,p=ft(jl(Ee(t.backgroundColor||"#141414"),Ee(n[u]),m*100));return p}):n}var ln={red:"#F5222D",volcano:"#FA541C",orange:"#FA8C16",gold:"#FAAD14",yellow:"#FADB14",lime:"#A0D911",green:"#52C41A",cyan:"#13C2C2",blue:"#1890FF",geekblue:"#2F54EB",purple:"#722ED1",magenta:"#EB2F96",grey:"#666666"},ht={},sn={};Object.keys(ln).forEach(function(e){ht[e]=ke(ln[e]),ht[e].primary=ht[e][5],sn[e]=ke(ln[e],{theme:"dark",backgroundColor:"#141414"}),sn[e].primary=sn[e][5]});var zl=ht.blue;const Fl=e=>{const{controlHeight:t}=e;return{controlHeightSM:t*.75,controlHeightXS:t*.5,controlHeightLG:t*1.25}};function Dl(e){const{sizeUnit:t,sizeStep:n}=e;return{sizeXXL:t*(n+8),sizeXL:t*(n+4),sizeLG:t*(n+2),sizeMD:t*(n+1),sizeMS:t*n,size:t*n,sizeSM:t*(n-1),sizeXS:t*(n-2),sizeXXS:t*(n-3)}}function kl(e,t){let{generateColorPalettes:n,generateNeutralColorPalettes:r}=t;const{colorSuccess:o,colorWarning:i,colorError:l,colorInfo:s,colorPrimary:c,colorBgBase:d,colorTextBase:f}=e,u=n(c),m=n(o),p=n(i),g=n(l),h=n(s),b=r(d,f);return H(H({},b),{colorPrimaryBg:u[1],colorPrimaryBgHover:u[2],colorPrimaryBorder:u[3],colorPrimaryBorderHover:u[4],colorPrimaryHover:u[5],colorPrimary:u[6],colorPrimaryActive:u[7],colorPrimaryTextHover:u[8],colorPrimaryText:u[9],colorPrimaryTextActive:u[10],colorSuccessBg:m[1],colorSuccessBgHover:m[2],colorSuccessBorder:m[3],colorSuccessBorderHover:m[4],colorSuccessHover:m[4],colorSuccess:m[6],colorSuccessActive:m[7],colorSuccessTextHover:m[8],colorSuccessText:m[9],colorSuccessTextActive:m[10],colorErrorBg:g[1],colorErrorBgHover:g[2],colorErrorBorder:g[3],colorErrorBorderHover:g[4],colorErrorHover:g[5],colorError:g[6],colorErrorActive:g[7],colorErrorTextHover:g[8],colorErrorText:g[9],colorErrorTextActive:g[10],colorWarningBg:p[1],colorWarningBgHover:p[2],colorWarningBorder:p[3],colorWarningBorderHover:p[4],colorWarningHover:p[4],colorWarning:p[6],colorWarningActive:p[7],colorWarningTextHover:p[8],colorWarningText:p[9],colorWarningTextActive:p[10],colorInfoBg:h[1],colorInfoBgHover:h[2],colorInfoBorder:h[3],colorInfoBorderHover:h[4],colorInfoHover:h[4],colorInfo:h[6],colorInfoActive:h[7],colorInfoTextHover:h[8],colorInfoText:h[9],colorInfoTextActive:h[10],colorBgMask:new te("#000").setAlpha(.45).toRgbString(),colorWhite:"#fff"})}const Xl=e=>{let t=e,n=e,r=e,o=e;return e<6&&e>=5?t=e+1:e<16&&e>=6?t=e+2:e>=16&&(t=16),e<7&&e>=5?n=4:e<8&&e>=7?n=5:e<14&&e>=8?n=6:e<16&&e>=14?n=7:e>=16&&(n=8),e<6&&e>=2?r=1:e>=6&&(r=2),e>4&&e<8?o=4:e>=8&&(o=6),{borderRadius:e>16?16:e,borderRadiusXS:r,borderRadiusSM:n,borderRadiusLG:t,borderRadiusOuter:o}};function Wl(e){const{motionUnit:t,motionBase:n,borderRadius:r,lineWidth:o}=e;return H({motionDurationFast:`${(n+t).toFixed(1)}s`,motionDurationMid:`${(n+t*2).toFixed(1)}s`,motionDurationSlow:`${(n+t*3).toFixed(1)}s`,lineWidthBold:o+1},Xl(r))}const ae=(e,t)=>new te(e).setAlpha(t).toRgbString(),Xe=(e,t)=>new te(e).darken(t).toHexString(),Gl=e=>{const t=ke(e);return{1:t[0],2:t[1],3:t[2],4:t[3],5:t[4],6:t[5],7:t[6],8:t[4],9:t[5],10:t[6]}},ql=(e,t)=>{const n=e||"#fff",r=t||"#000";return{colorBgBase:n,colorTextBase:r,colorText:ae(r,.88),colorTextSecondary:ae(r,.65),colorTextTertiary:ae(r,.45),colorTextQuaternary:ae(r,.25),colorFill:ae(r,.15),colorFillSecondary:ae(r,.06),colorFillTertiary:ae(r,.04),colorFillQuaternary:ae(r,.02),colorBgLayout:Xe(n,4),colorBgContainer:Xe(n,0),colorBgElevated:Xe(n,0),colorBgSpotlight:ae(r,.85),colorBorder:Xe(n,15),colorBorderSecondary:Xe(n,6)}};function Ul(e){const t=new Array(10).fill(null).map((n,r)=>{const o=r-1,i=e*Math.pow(2.71828,o/5),l=r>1?Math.floor(i):Math.ceil(i);return Math.floor(l/2)*2});return t[1]=e,t.map(n=>{const r=n+8;return{size:n,lineHeight:r/n}})}const Kl=e=>{const t=Ul(e),n=t.map(o=>o.size),r=t.map(o=>o.lineHeight);return{fontSizeSM:n[0],fontSize:n[1],fontSizeLG:n[2],fontSizeXL:n[3],fontSizeHeading1:n[6],fontSizeHeading2:n[5],fontSizeHeading3:n[4],fontSizeHeading4:n[3],fontSizeHeading5:n[2],lineHeight:r[1],lineHeightLG:r[2],lineHeightSM:r[0],lineHeightHeading1:r[6],lineHeightHeading2:r[5],lineHeightHeading3:r[4],lineHeightHeading4:r[3],lineHeightHeading5:r[2]}};function Zl(e){const t=Object.keys(Kr).map(n=>{const r=ke(e[n]);return new Array(10).fill(1).reduce((o,i,l)=>(o[`${n}-${l+1}`]=r[l],o),{})}).reduce((n,r)=>(n=H(H({},n),r),n),{});return H(H(H(H(H(H(H({},e),t),kl(e,{generateColorPalettes:Gl,generateNeutralColorPalettes:ql})),Kl(e.fontSize)),Dl(e)),Fl(e)),Wl(e))}Ml(Zl);const Yl={token:Zr,hashed:!0},so=Symbol("DesignTokenContext"),cn=a.shallowRef(),Ql=e=>{a.provide(so,e),a.watch(e,()=>{cn.value=a.unref(e),a.triggerRef(cn)},{immediate:!0,deep:!0})},Jl=()=>a.inject(so,a.computed(()=>cn.value||Yl));a.defineComponent({props:{value:Kn()},setup(e,t){let{slots:n}=t;return Ql(a.computed(()=>e.value)),()=>{var r;return(r=n.default)===null||r===void 0?void 0:r.call(n)}}});const _l=ai(O.theme.defaultAlgorithm),es={screenXS:!0,screenXSMin:!0,screenXSMax:!0,screenSM:!0,screenSMMin:!0,screenSMMax:!0,screenMD:!0,screenMDMin:!0,screenMDMax:!0,screenLG:!0,screenLGMin:!0,screenLGMax:!0,screenXL:!0,screenXLMin:!0,screenXLMax:!0,screenXXL:!0,screenXXLMin:!0},co=(e,t,n)=>{const r=n.getDerivativeToken(e),{override:o,...i}=t;let l={...r,override:o};return l=yl(l),i&&Object.entries(i).forEach(([s,c])=>{const{theme:d,...f}=c;let u=f;d&&(u=co({...l,...f},{override:f},d)),l[s]=u}),l};function ts(){const e=Jl(),{override:t,cssVar:n}=a.unref(e),r=a.computed(()=>e.value.token),o=a.computed(()=>e.value.hashed),i=a.computed(()=>e.value.theme??_l),l=Si(a.computed(()=>i.value),a.computed(()=>[O.theme.defaultSeed,r.value]),a.computed(()=>({salt:`${Cl}-${o.value||""}`,override:t,getComputedToken:co,cssVar:n&&{prefix:n.prefix,key:n.key,unitless:al,ignore:ol,preserve:es}}))),[s,c,d]=a.unref(l),f=a.computed(()=>l.value[0]),u=a.computed(()=>o.value?l.value[1]:"");return[i,d,u,f,n]}const{genStyleHooks:fe,genComponentStyleHook:su,genSubStyleComponent:cu}=rl({usePrefix:()=>{const{getPrefixCls:e,iconPrefixCls:t}=G();return{iconPrefixCls:a.unref(t),rootPrefixCls:e()}},useToken:()=>{const[e,t,n,r,o]=ts();return{theme:e,realToken:t,hashId:n,token:r,cssVar:o}},useCSP:()=>{const{csp:e}=G();return(e==null?void 0:e.value)??{}},layer:{name:"antdx",dependencies:["antd"]}}),ns=e=>{const{componentCls:t,paddingSM:n,padding:r}=e;return{[t]:{[`${t}-content`]:{"&-filled,&-outlined,&-shadow":{padding:`${Z(n)} ${Z(r)}`,borderRadius:e.borderRadiusLG},"&-filled":{backgroundColor:e.colorFillContent},"&-outlined":{border:`1px solid ${e.colorBorderSecondary}`},"&-shadow":{boxShadow:e.boxShadowTertiary}}}}},rs=e=>{const{componentCls:t,fontSize:n,lineHeight:r,paddingSM:o,padding:i,calc:l}=e,s=l(n).mul(r).div(2).add(o).equal(),c=`${t}-content`;return{[t]:{[c]:{"&-round":{borderRadius:{_skip_check_:!0,value:s},paddingInline:l(i).mul(1.25).equal()}},[`&-start ${c}-corner`]:{borderStartStartRadius:e.borderRadiusXS},[`&-end ${c}-corner`]:{borderStartEndRadius:e.borderRadiusXS}}}},os=e=>{const{componentCls:t,padding:n}=e;return{[`${t}-list`]:{display:"flex",flexDirection:"column",gap:n,overflowY:"auto"}}},as=new Br("loadingMove",{"0%":{transform:"translateY(0)"},"10%":{transform:"translateY(4px)"},"20%":{transform:"translateY(0)"},"30%":{transform:"translateY(-4px)"},"40%":{transform:"translateY(0)"}}),is=new Br("cursorBlink",{"0%":{opacity:1},"50%":{opacity:0},"100%":{opacity:1}}),ls=e=>{const{componentCls:t,fontSize:n,lineHeight:r,paddingSM:o,colorText:i,calc:l}=e;return{[t]:{display:"flex",columnGap:o,[`&${t}-end`]:{justifyContent:"end",flexDirection:"row-reverse",[`& ${t}-content-wrapper`]:{alignItems:"flex-end"}},[`&${t}-rtl`]:{direction:"rtl"},[`&${t}-typing ${t}-content:last-child::after`]:{content:'"|"',fontWeight:900,userSelect:"none",opacity:1,marginInlineStart:"0.1em",animationName:is,animationDuration:"0.8s",animationIterationCount:"infinite",animationTimingFunction:"linear"},[`& ${t}-avatar`]:{display:"inline-flex",justifyContent:"center",alignSelf:"flex-start"},[`& ${t}-header, & ${t}-footer`]:{fontSize:n,lineHeight:r,color:e.colorText},[`& ${t}-header`]:{marginBottom:e.paddingXXS},[`& ${t}-footer`]:{marginTop:o},[`& ${t}-content-wrapper`]:{flex:"auto",display:"flex",flexDirection:"column",alignItems:"flex-start",minWidth:0,maxWidth:"100%"},[`& ${t}-content`]:{position:"relative",boxSizing:"border-box",minWidth:0,maxWidth:"100%",color:i,fontSize:e.fontSize,lineHeight:e.lineHeight,minHeight:l(o).mul(2).add(l(r).mul(n)).equal(),wordBreak:"break-word",[`& ${t}-dot`]:{position:"relative",height:"100%",display:"flex",alignItems:"center",columnGap:e.marginXS,padding:`0 ${Z(e.paddingXXS)}`,"&-item":{backgroundColor:e.colorPrimary,borderRadius:"100%",width:4,height:4,animationName:as,animationDuration:"2s",animationIterationCount:"infinite",animationTimingFunction:"linear","&:nth-child(1)":{animationDelay:"0s"},"&:nth-child(2)":{animationDelay:"0.2s"},"&:nth-child(3)":{animationDelay:"0.4s"}}}}}}},uo=fe("Bubble",e=>{const t=ee(e,{});return[ls(t),os(t),ns(t),rs(t)]},()=>({})),fo=Symbol("BubbleContext"),dn=a.shallowRef(),ss=e=>{a.provide(fo,e),a.watch(e,()=>{dn.value=a.unref(e),a.triggerRef(dn)},{immediate:!0,deep:!0})},cs=()=>a.inject(fo,a.computed(()=>dn.value||{})),ds=a.defineComponent({props:{value:ne()},setup(e,{slots:t}){return ss(a.computed(()=>e.value)),()=>{var n;return(n=t.default)==null?void 0:n.call(t)}}}),ho=a.defineComponent({name:"AXBubble",__name:"Bubble",props:a.mergeDefaults({prefixCls:null,rootClassName:null,styles:null,classNames:null,avatar:null,placement:null,loading:{type:Boolean},typing:null,content:null,messageRender:{type:Function},loadingRender:{type:Function},variant:null,shape:null,onTypingComplete:null,header:null,footer:null},{classNames:()=>({}),styles:()=>({}),placement:"start",loading:!1,content:"",variant:"filled"}),setup(e,{expose:t}){const n=X(e,["prefixCls","rootClassName","classNames","styles","avatar","placement","loading","loadingRender","typing","content","messageRender","variant","shape","onTypingComplete","header","footer"]);a.toRef(e,"content"),a.toRef(e,"prefixCls");const r=a.ref(e.content);a.watch(()=>e.content,()=>{r.value=e.content});const{onUpdate:o}=a.unref(cs()),i=a.ref(null),{direction:l,getPrefixCls:s}=G(),c=s("bubble",e.prefixCls),d=se("bubble"),[f,u,m,p]=Ba(()=>e.typing),[g,h]=Va(r,f,u,m),b=a.ref(!1);a.watch(g,()=>{o==null||o()}),a.watchEffect(()=>{var P;!h.value&&!e.loading?b.value||(b.value=!0,(P=e.onTypingComplete)==null||P.call(e)):b.value=!1});const[v,$,S]=uo(()=>c),C=a.computed(()=>[c,e.rootClassName,d.value.className,$.value,S,`${c}-${e.placement}`,{[`${c}-rtl`]:l.value==="rtl"},{[`${c}-typing`]:h.value&&!e.loading&&!e.messageRender&&!p.value}]),x=a.computed(()=>a.isVNode(e.avatar)?e.avatar:a.createVNode(O.Avatar,e.avatar,null)),w=a.computed(()=>e.messageRender?e.messageRender(g.value):g.value),y=a.computed(()=>e.loading?e.loadingRender?e.loadingRender():a.createVNode(La,{prefixCls:c},null):a.createVNode(a.Fragment,null,[w.value,h.value&&a.toValue(p)])),T=a.computed(()=>{const P=a.createVNode("div",{style:{...d.value.styles.content,...e.styles.content},class:[`${c}-content`,`${c}-content-${e.variant}`,{[`${c}-content-${e.shape}`]:e.shape},d.value.classNames.content,e.classNames.content]},[a.toValue(y)]);return e.header||e.footer?a.createVNode("div",{class:`${c}-content-wrapper`},[e.header&&a.createVNode("div",{class:[`${c}-header`,d.value.classNames.header,e.classNames.header],style:{...d.value.styles.header,...e.styles.header}},[e.header]),P,e.footer&&a.createVNode("div",{class:[`${c}-footer`,d.value.classNames.footer,e.classNames.footer],style:{...d.value.styles.footer,...e.styles.footer}},[e.footer])]):P});return t({nativeElement:i}),()=>v(a.createVNode("div",a.mergeProps({style:{...d.value.style},class:a.toValue(C)},n,{ref:i}),[e.avatar&&a.createVNode("div",{style:{...d.value.styles.avatar,...e.styles.avatar},class:[`${c}-avatar`,d.value.classNames.avatar,e.classNames.avatar]},[a.toValue(x)]),a.toValue(T)]))}});function us(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var mo={exports:{}};/*!
36
+ `,boxShadowTabsOverflowLeft:"inset 10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowRight:"inset -10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowTop:"inset 0 10px 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowBottom:"inset 0 -10px 8px -8px rgba(0, 0, 0, 0.08)"}),r)}const Sl="1.0.3",Yr="%";class Cl{constructor(t){this.cache=new Map,this.instanceId=t}get(t){return this.cache.get(Array.isArray(t)?t.join(Yr):t)||null}update(t,n){const r=Array.isArray(t)?t.join(Yr):t,o=this.cache.get(r),i=n(o);i===null?this.cache.delete(r):this.cache.set(r,i)}}const rn="data-css-hash",dt="__cssinjs_instance__";function De(){const e=Math.random().toString(12).slice(2);if(typeof document<"u"&&document.head&&document.body){const t=document.body.querySelectorAll(`style[${rn}]`)||[],{firstChild:n}=document.head;Array.from(t).forEach(o=>{o[dt]=o[dt]||e,o[dt]===e&&document.head.insertBefore(o,n)});const r={};Array.from(document.querySelectorAll(`style[${rn}]`)).forEach(o=>{var i;const l=o.getAttribute(rn);r[l]?o[dt]===e&&((i=o.parentNode)===null||i===void 0||i.removeChild(o)):r[l]=!0})}return new Cl(e)}const Qr=Symbol("StyleContextKey"),vl=()=>{var e,t,n;const r=a.getCurrentInstance();let o;if(r&&r.appContext){const i=(n=(t=(e=r.appContext)===null||e===void 0?void 0:e.config)===null||t===void 0?void 0:t.globalProperties)===null||n===void 0?void 0:n.__ANTDV_CSSINJS_CACHE__;i?o=i:(o=De(),r.appContext.config.globalProperties&&(r.appContext.config.globalProperties.__ANTDV_CSSINJS_CACHE__=o))}else o=De();return o},Jr={cache:De(),defaultCache:!0,hashPriority:"low"},xl=()=>{const e=vl();return a.inject(Qr,a.shallowRef(H(H({},Jr),{cache:e})))},wl=e=>{const t=xl(),n=a.shallowRef(H(H({},Jr),{cache:De()}));return a.watch([()=>a.unref(e),t],()=>{const r=H({},t.value),o=a.unref(e);Object.keys(o).forEach(l=>{const s=o[l];o[l]!==void 0&&(r[l]=s)});const{cache:i}=o;r.cache=r.cache||De(),r.defaultCache=!i&&t.value.defaultCache,n.value=r},{immediate:!0}),a.provide(Qr,n),n},$l=()=>({autoClear:Pt(),mock:Yn(),cache:Kn(),defaultCache:Pt(),hashPriority:Yn(),container:va(),ssrInline:Pt(),transformers:Zn(),linters:Zn()});Sa(a.defineComponent({name:"AStyleProvider",inheritAttrs:!1,props:$l(),setup(e,t){let{slots:n}=t;return wl(e),()=>{var r;return(r=n.default)===null||r===void 0?void 0:r.call(n)}}}));function Nl(e,t){if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}class Ae{constructor(){this.cache=new Map,this.keys=[],this.cacheCallTimes=0}size(){return this.keys.length}internalGet(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r={map:this.cache};return t.forEach(o=>{var i;r?r=(i=r==null?void 0:r.map)===null||i===void 0?void 0:i.get(o):r=void 0}),r!=null&&r.value&&n&&(r.value[1]=this.cacheCallTimes++),r==null?void 0:r.value}get(t){var n;return(n=this.internalGet(t,!0))===null||n===void 0?void 0:n[0]}has(t){return!!this.internalGet(t)}set(t,n){if(!this.has(t)){if(this.size()+1>Ae.MAX_CACHE_SIZE+Ae.MAX_CACHE_OFFSET){const[o]=this.keys.reduce((i,l)=>{const[,s]=i;return this.internalGet(l)[1]<s?[l,this.internalGet(l)[1]]:i},[this.keys[0],this.cacheCallTimes]);this.delete(o)}this.keys.push(t)}let r=this.cache;t.forEach((o,i)=>{if(i===t.length-1)r.set(o,{value:[n,this.cacheCallTimes++]});else{const l=r.get(o);l?l.map||(l.map=new Map):r.set(o,{map:new Map}),r=r.get(o).map}})}deleteByPath(t,n){var r;const o=t.get(n[0]);if(n.length===1)return o.map?t.set(n[0],{map:o.map}):t.delete(n[0]),(r=o.value)===null||r===void 0?void 0:r[0];const i=this.deleteByPath(o.map,n.slice(1));return(!o.map||o.map.size===0)&&!o.value&&t.delete(n[0]),i}delete(t){if(this.has(t))return this.keys=this.keys.filter(n=>!Nl(n,t)),this.deleteByPath(this.cache,t)}}Ae.MAX_CACHE_SIZE=20,Ae.MAX_CACHE_OFFSET=5;let on={};function Tl(e,t){process.env.NODE_ENV!=="production"&&!e&&console!==void 0&&console.error(`Warning: ${t}`)}function Pl(){on={}}function Ol(e,t,n){!t&&!on[n]&&(e(!1,n),on[n]=!0)}function El(e,t){Ol(Tl,e,t)}function Al(){}let _r=Al;process.env.NODE_ENV!=="production"&&(_r=(e,t,n)=>{El(e,`[ant-design-vue: ${t}] ${n}`),process.env.NODE_ENV==="test"&&Pl()});let eo=0;class Rl{constructor(t){this.derivatives=Array.isArray(t)?t:[t],this.id=eo,t.length===0&&_r(t.length>0,"[Ant Design Vue CSS-in-JS] Theme should have at least one derivative function."),eo+=1}getDerivativeToken(t){return this.derivatives.reduce((n,r)=>r(t,n),void 0)}}const an=new Ae;function Ml(e){const t=Array.isArray(e)?e:[e];return an.has(t)||an.set(t,new Rl(t)),an.get(t)}process.env.NODE_ENV,process.env.NODE_ENV;const Il=new Set;process.env.NODE_ENV;function Re(e){return e.notSplit=!0,e}Re(["borderTop","borderBottom"]),Re(["borderTop"]),Re(["borderBottom"]),Re(["borderLeft","borderRight"]),Re(["borderLeft"]),Re(["borderRight"]);var ut=2,to=.16,Hl=.05,Vl=.05,Bl=.15,no=5,ro=4,Ll=[{index:7,opacity:.15},{index:6,opacity:.25},{index:5,opacity:.3},{index:5,opacity:.45},{index:5,opacity:.65},{index:5,opacity:.85},{index:4,opacity:.9},{index:3,opacity:.95},{index:2,opacity:.97},{index:1,opacity:.98}];function oo(e){var t=e.r,n=e.g,r=e.b,o=Qt(t,n,r);return{h:o.h*360,s:o.s,v:o.v}}function ft(e){var t=e.r,n=e.g,r=e.b;return"#".concat(Jt(t,n,r,!1))}function jl(e,t,n){var r=n/100,o={r:(t.r-e.r)*r+e.r,g:(t.g-e.g)*r+e.g,b:(t.b-e.b)*r+e.b};return o}function ao(e,t,n){var r;return Math.round(e.h)>=60&&Math.round(e.h)<=240?r=n?Math.round(e.h)-ut*t:Math.round(e.h)+ut*t:r=n?Math.round(e.h)+ut*t:Math.round(e.h)-ut*t,r<0?r+=360:r>=360&&(r-=360),r}function io(e,t,n){if(e.h===0&&e.s===0)return e.s;var r;return n?r=e.s-to*t:t===ro?r=e.s+to:r=e.s+Hl*t,r>1&&(r=1),n&&t===no&&r>.1&&(r=.1),r<.06&&(r=.06),Number(r.toFixed(2))}function lo(e,t,n){var r;return n?r=e.v+Vl*t:r=e.v-Bl*t,r>1&&(r=1),Number(r.toFixed(2))}function ke(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=[],r=Ee(e),o=no;o>0;o-=1){var i=oo(r),l=ft(Ee({h:ao(i,o,!0),s:io(i,o,!0),v:lo(i,o,!0)}));n.push(l)}n.push(ft(r));for(var s=1;s<=ro;s+=1){var c=oo(r),d=ft(Ee({h:ao(c,s),s:io(c,s),v:lo(c,s)}));n.push(d)}return t.theme==="dark"?Ll.map(function(f){var u=f.index,m=f.opacity,p=ft(jl(Ee(t.backgroundColor||"#141414"),Ee(n[u]),m*100));return p}):n}var ln={red:"#F5222D",volcano:"#FA541C",orange:"#FA8C16",gold:"#FAAD14",yellow:"#FADB14",lime:"#A0D911",green:"#52C41A",cyan:"#13C2C2",blue:"#1890FF",geekblue:"#2F54EB",purple:"#722ED1",magenta:"#EB2F96",grey:"#666666"},ht={},sn={};Object.keys(ln).forEach(function(e){ht[e]=ke(ln[e]),ht[e].primary=ht[e][5],sn[e]=ke(ln[e],{theme:"dark",backgroundColor:"#141414"}),sn[e].primary=sn[e][5]});var zl=ht.blue;const Fl=e=>{const{controlHeight:t}=e;return{controlHeightSM:t*.75,controlHeightXS:t*.5,controlHeightLG:t*1.25}};function Dl(e){const{sizeUnit:t,sizeStep:n}=e;return{sizeXXL:t*(n+8),sizeXL:t*(n+4),sizeLG:t*(n+2),sizeMD:t*(n+1),sizeMS:t*n,size:t*n,sizeSM:t*(n-1),sizeXS:t*(n-2),sizeXXS:t*(n-3)}}function kl(e,t){let{generateColorPalettes:n,generateNeutralColorPalettes:r}=t;const{colorSuccess:o,colorWarning:i,colorError:l,colorInfo:s,colorPrimary:c,colorBgBase:d,colorTextBase:f}=e,u=n(c),m=n(o),p=n(i),g=n(l),h=n(s),b=r(d,f);return H(H({},b),{colorPrimaryBg:u[1],colorPrimaryBgHover:u[2],colorPrimaryBorder:u[3],colorPrimaryBorderHover:u[4],colorPrimaryHover:u[5],colorPrimary:u[6],colorPrimaryActive:u[7],colorPrimaryTextHover:u[8],colorPrimaryText:u[9],colorPrimaryTextActive:u[10],colorSuccessBg:m[1],colorSuccessBgHover:m[2],colorSuccessBorder:m[3],colorSuccessBorderHover:m[4],colorSuccessHover:m[4],colorSuccess:m[6],colorSuccessActive:m[7],colorSuccessTextHover:m[8],colorSuccessText:m[9],colorSuccessTextActive:m[10],colorErrorBg:g[1],colorErrorBgHover:g[2],colorErrorBorder:g[3],colorErrorBorderHover:g[4],colorErrorHover:g[5],colorError:g[6],colorErrorActive:g[7],colorErrorTextHover:g[8],colorErrorText:g[9],colorErrorTextActive:g[10],colorWarningBg:p[1],colorWarningBgHover:p[2],colorWarningBorder:p[3],colorWarningBorderHover:p[4],colorWarningHover:p[4],colorWarning:p[6],colorWarningActive:p[7],colorWarningTextHover:p[8],colorWarningText:p[9],colorWarningTextActive:p[10],colorInfoBg:h[1],colorInfoBgHover:h[2],colorInfoBorder:h[3],colorInfoBorderHover:h[4],colorInfoHover:h[4],colorInfo:h[6],colorInfoActive:h[7],colorInfoTextHover:h[8],colorInfoText:h[9],colorInfoTextActive:h[10],colorBgMask:new te("#000").setAlpha(.45).toRgbString(),colorWhite:"#fff"})}const Xl=e=>{let t=e,n=e,r=e,o=e;return e<6&&e>=5?t=e+1:e<16&&e>=6?t=e+2:e>=16&&(t=16),e<7&&e>=5?n=4:e<8&&e>=7?n=5:e<14&&e>=8?n=6:e<16&&e>=14?n=7:e>=16&&(n=8),e<6&&e>=2?r=1:e>=6&&(r=2),e>4&&e<8?o=4:e>=8&&(o=6),{borderRadius:e>16?16:e,borderRadiusXS:r,borderRadiusSM:n,borderRadiusLG:t,borderRadiusOuter:o}};function Wl(e){const{motionUnit:t,motionBase:n,borderRadius:r,lineWidth:o}=e;return H({motionDurationFast:`${(n+t).toFixed(1)}s`,motionDurationMid:`${(n+t*2).toFixed(1)}s`,motionDurationSlow:`${(n+t*3).toFixed(1)}s`,lineWidthBold:o+1},Xl(r))}const ae=(e,t)=>new te(e).setAlpha(t).toRgbString(),Xe=(e,t)=>new te(e).darken(t).toHexString(),Gl=e=>{const t=ke(e);return{1:t[0],2:t[1],3:t[2],4:t[3],5:t[4],6:t[5],7:t[6],8:t[4],9:t[5],10:t[6]}},ql=(e,t)=>{const n=e||"#fff",r=t||"#000";return{colorBgBase:n,colorTextBase:r,colorText:ae(r,.88),colorTextSecondary:ae(r,.65),colorTextTertiary:ae(r,.45),colorTextQuaternary:ae(r,.25),colorFill:ae(r,.15),colorFillSecondary:ae(r,.06),colorFillTertiary:ae(r,.04),colorFillQuaternary:ae(r,.02),colorBgLayout:Xe(n,4),colorBgContainer:Xe(n,0),colorBgElevated:Xe(n,0),colorBgSpotlight:ae(r,.85),colorBorder:Xe(n,15),colorBorderSecondary:Xe(n,6)}};function Ul(e){const t=new Array(10).fill(null).map((n,r)=>{const o=r-1,i=e*Math.pow(2.71828,o/5),l=r>1?Math.floor(i):Math.ceil(i);return Math.floor(l/2)*2});return t[1]=e,t.map(n=>{const r=n+8;return{size:n,lineHeight:r/n}})}const Kl=e=>{const t=Ul(e),n=t.map(o=>o.size),r=t.map(o=>o.lineHeight);return{fontSizeSM:n[0],fontSize:n[1],fontSizeLG:n[2],fontSizeXL:n[3],fontSizeHeading1:n[6],fontSizeHeading2:n[5],fontSizeHeading3:n[4],fontSizeHeading4:n[3],fontSizeHeading5:n[2],lineHeight:r[1],lineHeightLG:r[2],lineHeightSM:r[0],lineHeightHeading1:r[6],lineHeightHeading2:r[5],lineHeightHeading3:r[4],lineHeightHeading4:r[3],lineHeightHeading5:r[2]}};function Zl(e){const t=Object.keys(Kr).map(n=>{const r=ke(e[n]);return new Array(10).fill(1).reduce((o,i,l)=>(o[`${n}-${l+1}`]=r[l],o),{})}).reduce((n,r)=>(n=H(H({},n),r),n),{});return H(H(H(H(H(H(H({},e),t),kl(e,{generateColorPalettes:Gl,generateNeutralColorPalettes:ql})),Kl(e.fontSize)),Dl(e)),Fl(e)),Wl(e))}Ml(Zl);const Yl={token:Zr,hashed:!0},so=Symbol("DesignTokenContext"),cn=a.shallowRef(),Ql=e=>{a.provide(so,e),a.watch(e,()=>{cn.value=a.unref(e),a.triggerRef(cn)},{immediate:!0,deep:!0})},Jl=()=>a.inject(so,a.computed(()=>cn.value||Yl));a.defineComponent({props:{value:Kn()},setup(e,t){let{slots:n}=t;return Ql(a.computed(()=>e.value)),()=>{var r;return(r=n.default)===null||r===void 0?void 0:r.call(n)}}});const _l=ai(O.theme.defaultAlgorithm),es={screenXS:!0,screenXSMin:!0,screenXSMax:!0,screenSM:!0,screenSMMin:!0,screenSMMax:!0,screenMD:!0,screenMDMin:!0,screenMDMax:!0,screenLG:!0,screenLGMin:!0,screenLGMax:!0,screenXL:!0,screenXLMin:!0,screenXLMax:!0,screenXXL:!0,screenXXLMin:!0},co=(e,t,n)=>{const r=n.getDerivativeToken(e),{override:o,...i}=t;let l={...r,override:o};return l=yl(l),i&&Object.entries(i).forEach(([s,c])=>{const{theme:d,...f}=c;let u=f;d&&(u=co({...l,...f},{override:f},d)),l[s]=u}),l};function ts(){const e=Jl(),{override:t,cssVar:n}=a.unref(e),r=a.computed(()=>e.value.token),o=a.computed(()=>e.value.hashed),i=a.computed(()=>e.value.theme??_l),l=Ci(a.computed(()=>i.value),a.computed(()=>[O.theme.defaultSeed,r.value]),a.computed(()=>({salt:`${Sl}-${o.value||""}`,override:t,getComputedToken:co,cssVar:n&&{prefix:n.prefix,key:n.key,unitless:al,ignore:ol,preserve:es}}))),[s,c,d]=a.unref(l),f=a.computed(()=>l.value[0]),u=a.computed(()=>o.value?l.value[1]:"");return[i,d,u,f,n]}const{genStyleHooks:fe,genComponentStyleHook:cu,genSubStyleComponent:du}=rl({usePrefix:()=>{const{getPrefixCls:e,iconPrefixCls:t}=G();return{iconPrefixCls:a.unref(t),rootPrefixCls:e()}},useToken:()=>{const[e,t,n,r,o]=ts();return{theme:e,realToken:t,hashId:n,token:r,cssVar:o}},useCSP:()=>{const{csp:e}=G();return(e==null?void 0:e.value)??{}},layer:{name:"antdx",dependencies:["antd"]}}),ns=e=>{const{componentCls:t,paddingSM:n,padding:r}=e;return{[t]:{[`${t}-content`]:{"&-filled,&-outlined,&-shadow":{padding:`${Z(n)} ${Z(r)}`,borderRadius:e.borderRadiusLG},"&-filled":{backgroundColor:e.colorFillContent},"&-outlined":{border:`1px solid ${e.colorBorderSecondary}`},"&-shadow":{boxShadow:e.boxShadowTertiary}}}}},rs=e=>{const{componentCls:t,fontSize:n,lineHeight:r,paddingSM:o,padding:i,calc:l}=e,s=l(n).mul(r).div(2).add(o).equal(),c=`${t}-content`;return{[t]:{[c]:{"&-round":{borderRadius:{_skip_check_:!0,value:s},paddingInline:l(i).mul(1.25).equal()}},[`&-start ${c}-corner`]:{borderStartStartRadius:e.borderRadiusXS},[`&-end ${c}-corner`]:{borderStartEndRadius:e.borderRadiusXS}}}},os=e=>{const{componentCls:t,padding:n}=e;return{[`${t}-list`]:{display:"flex",flexDirection:"column",gap:n,overflowY:"auto"}}},as=new Br("loadingMove",{"0%":{transform:"translateY(0)"},"10%":{transform:"translateY(4px)"},"20%":{transform:"translateY(0)"},"30%":{transform:"translateY(-4px)"},"40%":{transform:"translateY(0)"}}),is=new Br("cursorBlink",{"0%":{opacity:1},"50%":{opacity:0},"100%":{opacity:1}}),ls=e=>{const{componentCls:t,fontSize:n,lineHeight:r,paddingSM:o,colorText:i,calc:l}=e;return{[t]:{display:"flex",columnGap:o,[`&${t}-end`]:{justifyContent:"end",flexDirection:"row-reverse",[`& ${t}-content-wrapper`]:{alignItems:"flex-end"}},[`&${t}-rtl`]:{direction:"rtl"},[`&${t}-typing ${t}-content:last-child::after`]:{content:'"|"',fontWeight:900,userSelect:"none",opacity:1,marginInlineStart:"0.1em",animationName:is,animationDuration:"0.8s",animationIterationCount:"infinite",animationTimingFunction:"linear"},[`& ${t}-avatar`]:{display:"inline-flex",justifyContent:"center",alignSelf:"flex-start"},[`& ${t}-header, & ${t}-footer`]:{fontSize:n,lineHeight:r,color:e.colorText},[`& ${t}-header`]:{marginBottom:e.paddingXXS},[`& ${t}-footer`]:{marginTop:o},[`& ${t}-content-wrapper`]:{flex:"auto",display:"flex",flexDirection:"column",alignItems:"flex-start",minWidth:0,maxWidth:"100%"},[`& ${t}-content`]:{position:"relative",boxSizing:"border-box",minWidth:0,maxWidth:"100%",color:i,fontSize:e.fontSize,lineHeight:e.lineHeight,minHeight:l(o).mul(2).add(l(r).mul(n)).equal(),wordBreak:"break-word",[`& ${t}-dot`]:{position:"relative",height:"100%",display:"flex",alignItems:"center",columnGap:e.marginXS,padding:`0 ${Z(e.paddingXXS)}`,"&-item":{backgroundColor:e.colorPrimary,borderRadius:"100%",width:4,height:4,animationName:as,animationDuration:"2s",animationIterationCount:"infinite",animationTimingFunction:"linear","&:nth-child(1)":{animationDelay:"0s"},"&:nth-child(2)":{animationDelay:"0.2s"},"&:nth-child(3)":{animationDelay:"0.4s"}}}}}}},uo=fe("Bubble",e=>{const t=ee(e,{});return[ls(t),os(t),ns(t),rs(t)]},()=>({})),fo=Symbol("BubbleContext"),dn=a.shallowRef(),ss=e=>{a.provide(fo,e),a.watch(e,()=>{dn.value=a.unref(e),a.triggerRef(dn)},{immediate:!0,deep:!0})},cs=()=>a.inject(fo,a.computed(()=>dn.value||{})),ds=a.defineComponent({props:{value:ne()},setup(e,{slots:t}){return ss(a.computed(()=>e.value)),()=>{var n;return(n=t.default)==null?void 0:n.call(t)}}}),ho=a.defineComponent({name:"AXBubble",__name:"Bubble",props:a.mergeDefaults({prefixCls:null,rootClassName:null,styles:null,classNames:null,avatar:null,placement:null,loading:{type:Boolean},typing:null,content:null,messageRender:{type:Function},loadingRender:{type:Function},variant:null,shape:null,onTypingComplete:null,header:null,footer:null},{classNames:()=>({}),styles:()=>({}),placement:"start",loading:!1,content:"",variant:"filled"}),setup(e,{expose:t}){const n=W(e,["prefixCls","rootClassName","classNames","styles","avatar","placement","loading","loadingRender","typing","content","messageRender","variant","shape","onTypingComplete","header","footer"]);a.toRef(e,"content"),a.toRef(e,"prefixCls");const r=a.useSlots(),o=a.ref(e.content);a.watch(()=>e.content,()=>{o.value=e.content});const{onUpdate:i}=a.unref(cs()),l=a.ref(null),{direction:s,getPrefixCls:c}=G(),d=c("bubble",e.prefixCls),f=se("bubble"),[u,m,p,g]=Ba(()=>e.typing),[h,b]=Va(o,u,m,p),v=a.ref(!1);a.watch(h,()=>{i==null||i()}),a.watchEffect(()=>{var P;!b.value&&!e.loading?v.value||(v.value=!0,(P=e.onTypingComplete)==null||P.call(e)):v.value=!1});const[w,C,S]=uo(()=>d),$=a.computed(()=>[d,e.rootClassName,f.value.className,C.value,S,`${d}-${e.placement}`,{[`${d}-rtl`]:s.value==="rtl"},{[`${d}-typing`]:b.value&&!e.loading&&!e.messageRender&&!r.message&&!g.value}]),x=a.computed(()=>r.avatar?r.avatar():a.isVNode(e.avatar)?e.avatar:a.createVNode(O.Avatar,e.avatar,null)),y=a.computed(()=>r.message?r.message({content:h.value}):e.messageRender?e.messageRender(h.value):h.value),N=a.computed(()=>e.loading?r.loading?r.loading():e.loadingRender?e.loadingRender():a.createVNode(La,{prefixCls:d},null):a.createVNode(a.Fragment,null,[y.value,b.value&&a.toValue(g)])),A=a.computed(()=>{const P=a.createVNode("div",{style:{...f.value.styles.content,...e.styles.content},class:[`${d}-content`,`${d}-content-${e.variant}`,{[`${d}-content-${e.shape}`]:e.shape},f.value.classNames.content,e.classNames.content]},[a.toValue(N)]),R=r.header?r.header():e.header,F=r.footer?r.footer():e.footer;return R||F?a.createVNode("div",{class:`${d}-content-wrapper`},[R&&a.createVNode("div",{class:[`${d}-header`,f.value.classNames.header,e.classNames.header],style:{...f.value.styles.header,...e.styles.header}},[R]),P,F&&a.createVNode("div",{class:[`${d}-footer`,f.value.classNames.footer,e.classNames.footer],style:{...f.value.styles.footer,...e.styles.footer}},[F])]):P});return t({nativeElement:l}),()=>w(a.createVNode("div",a.mergeProps({style:{...f.value.style},class:a.toValue($)},n,{ref:l}),[e.avatar&&a.createVNode("div",{style:{...f.value.styles.avatar,...e.styles.avatar},class:[`${d}-avatar`,f.value.classNames.avatar,e.classNames.avatar]},[a.toValue(x)]),a.toValue(A)]))}});function us(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var mo={exports:{}};/*!
37
37
  Copyright (c) 2018 Jed Watson.
38
38
  Licensed under the MIT License (MIT), see
39
39
  http://jedwatson.github.io/classnames
40
- */(function(e){(function(){var t={}.hasOwnProperty;function n(){for(var i="",l=0;l<arguments.length;l++){var s=arguments[l];s&&(i=o(i,r(s)))}return i}function r(i){if(typeof i=="string"||typeof i=="number")return i;if(typeof i!="object")return"";if(Array.isArray(i))return n.apply(null,i);if(i.toString!==Object.prototype.toString&&!i.toString.toString().includes("[native code]"))return i.toString();var l="";for(var s in i)t.call(i,s)&&i[s]&&(l=o(l,s));return l}function o(i,l){return l?i?i+" "+l:i+l:i}e.exports?(n.default=n,e.exports=n):window.classNames=n})()})(mo);var fs=mo.exports;const N=us(fs);function mt(e){const t=a.ref(e),n=a.ref(r=>{t.value&&t.value(r)});return t.value=e,n.value}const go=`accept acceptcharset accesskey action allowfullscreen allowtransparency
40
+ */(function(e){(function(){var t={}.hasOwnProperty;function n(){for(var i="",l=0;l<arguments.length;l++){var s=arguments[l];s&&(i=o(i,r(s)))}return i}function r(i){if(typeof i=="string"||typeof i=="number")return i;if(typeof i!="object")return"";if(Array.isArray(i))return n.apply(null,i);if(i.toString!==Object.prototype.toString&&!i.toString.toString().includes("[native code]"))return i.toString();var l="";for(var s in i)t.call(i,s)&&i[s]&&(l=o(l,s));return l}function o(i,l){return l?i?i+" "+l:i+l:i}e.exports?(n.default=n,e.exports=n):window.classNames=n})()})(mo);var fs=mo.exports;const T=us(fs);function mt(e){const t=a.ref(e),n=a.ref(r=>{t.value&&t.value(r)});return t.value=e,n.value}const go=`accept acceptcharset accesskey action allowfullscreen allowtransparency
41
41
  alt async autocomplete autofocus autoplay capture cellpadding cellspacing challenge
42
42
  charset checked classid class colspan cols content contenteditable contextmenu
43
43
  controls coords crossorigin data datetime default defer dir disabled download draggable
@@ -54,7 +54,7 @@ summary tabindex target title type usemap value width wmode wrap onCopy onCut on
54
54
  onMouseenter onMouseleave onMousemove onMouseout onMouseover onMouseup onSelect onTouchcancel
55
55
  onTouchend onTouchmove onTouchstart onTouchstartPassive onTouchmovePassive onScroll onWheel onAbort onCanplay onCanplaythrough
56
56
  onDurationchange onEmptied onEncrypted onEnded onError onLoadeddata onLoadedmetadata
57
- onLoadstart onPause onPlay onPlaying onProgress onRatechange onSeeked onSeeking onStalled onSuspend onTimeupdate onVolumechange onWaiting onLoad onError`.split(/[\s\n]+/),hs="aria-",ms="data-";function po(e,t){return e.indexOf(t)===0}function Me(e,t=!1){let n;t===!1?n={aria:!0,data:!0,attr:!0}:t===!0?n={aria:!0}:n={...t};const r={};return Object.keys(e).forEach(o=>{(n.aria&&(o==="role"||po(o,hs))||n.data&&po(o,ms)||n.attr&&(go.includes(o)||go.includes(o.toLowerCase())))&&(r[o]=e[o])}),r}function gs(e){const[t,n]=L(e.value.length),r=a.computed(()=>e.value.slice(0,a.unref(t))),o=a.computed(()=>{const l=a.unref(r)[a.unref(r).length-1];return l?l.key:null});a.watch(e,()=>{var l;if(!(a.unref(r).length&&a.unref(r).every((s,c)=>{var d;return s.key===((d=e.value[c])==null?void 0:d.key)}))){if(a.unref(r).length===0)n(1);else for(let s=0;s<a.unref(r).length;s+=1)if(a.unref(r)[s].key!==((l=e.value[s])==null?void 0:l.key)){n(s);break}}},{immediate:!0,deep:!0});const i=mt(l=>{l===a.unref(o)&&n(a.unref(t)+1)});return[r,i]}function ps(e,t){const n=o=>typeof t=="function"?t(o):t?t[o.role]||{}:{};return a.computed(()=>(e.value||[]).map((o,i)=>{const l=o.key??`preset_${i}`;return{...n(o),...o,key:l}}))}const bs=1,bo=a.defineComponent({name:"AXBubbleList",inheritAttrs:!1,__name:"BubbleList",props:a.mergeDefaults({prefixCls:null,rootClassName:null,items:null,autoScroll:{type:Boolean},roles:null},{autoScroll:!0}),setup(e,{expose:t}){const n=X(e,["prefixCls","rootClassName","items","autoScroll","roles"]);a.toRef(e,"items"),a.toRef(e,"prefixCls");const r=a.useAttrs(),o=Me(a.mergeProps(n,r),{attr:!0,aria:!0}),i=a.ref(e.items);a.watch(()=>e.items,()=>{i.value=e.items});const l=a.ref(null),s=a.ref({}),{getPrefixCls:c}=G(),d=c("bubble",e.prefixCls),f=`${d}-list`,[u,m,p]=uo(d),[g,h]=L(!1);a.watchEffect(()=>{h(!0),a.onWatcherCleanup(()=>{h(!1)})});const b=ps(i,e.roles),[v,$]=gs(b),[S,C]=L(!0),[x,w]=L(0),y=A=>{const M=A.target;C(M.scrollHeight-Math.abs(M.scrollTop)-M.clientHeight<=bs)};a.watch(x,()=>{e.autoScroll&&a.unref(l)&&a.unref(S)&&a.unref(l).scrollTo({top:a.unref(l).scrollHeight})}),a.watch(()=>a.unref(v).length,()=>{var A;if(e.autoScroll){const M=(A=a.unref(v)[a.unref(v).length-2])==null?void 0:A.key,W=a.unref(s)[M];if(W){const{nativeElement:I}=W,{top:B=0,bottom:k=0}=(I==null?void 0:I.getBoundingClientRect())??{},{top:J,bottom:Ie}=a.unref(l).getBoundingClientRect();B<Ie&&k>J&&(w(a.unref(x)+1),C(!0))}}});const T=mt(()=>{e.autoScroll&&w(a.unref(x)+1)}),P=a.computed(()=>({onUpdate:T}));return t({nativeElement:l,scrollTo:({key:A,offset:M,behavior:W="smooth",block:I})=>{if(typeof M=="number")a.unref(l).scrollTo({top:M,behavior:W});else if(A!==void 0){const B=a.unref(s)[A];if(B){const k=a.unref(v).findIndex(J=>J.key===A);C(k===a.unref(v).length-1),B.nativeElement.scrollIntoView({behavior:W,block:I})}}}}),()=>u(a.createVNode(ds,{value:P.value},{default:()=>[a.createVNode("div",a.mergeProps(o,{class:N(f,e.rootClassName,m.value,p,{[`${f}-reach-end`]:S.value}),ref:l,onScroll:y}),[a.unref(v).map(({key:A,onTypingComplete:M,...W})=>a.createVNode(ho,a.mergeProps(W,{key:A,ref:I=>{I?s.value[A]=I:delete s.value[A]},typing:g.value?W.typing:!1,onTypingComplete:()=>{M==null||M(),$(A)}}),null))])]}))}}),ys=Object.assign(ho,{List:bo});var Cs=Symbol("iconContext"),yo=function(){return a.inject(Cs,{prefixCls:a.ref("anticon"),rootClassName:a.ref(""),csp:a.ref()})};function un(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function Ss(e,t){return e&&e.contains?e.contains(t):!1}var Co="data-vc-order",vs="vc-icon-key",fn=new Map;function So(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.mark;return t?t.startsWith("data-")?t:"data-".concat(t):vs}function hn(e){if(e.attachTo)return e.attachTo;var t=document.querySelector("head");return t||document.body}function xs(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function vo(e){return Array.from((fn.get(e)||e).children).filter(function(t){return t.tagName==="STYLE"})}function xo(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!un())return null;var n=t.csp,r=t.prepend,o=document.createElement("style");o.setAttribute(Co,xs(r)),n&&n.nonce&&(o.nonce=n.nonce),o.innerHTML=e;var i=hn(t),l=i.firstChild;if(r){if(r==="queue"){var s=vo(i).filter(function(c){return["prepend","prependQueue"].includes(c.getAttribute(Co))});if(s.length)return i.insertBefore(o,s[s.length-1].nextSibling),o}i.insertBefore(o,l)}else i.appendChild(o);return o}function ws(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=hn(t);return vo(n).find(function(r){return r.getAttribute(So(t))===e})}function $s(e,t){var n=fn.get(e);if(!n||!Ss(document,n)){var r=xo("",t),o=r.parentNode;fn.set(e,o),e.removeChild(r)}}function Ns(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=hn(n);$s(r,n);var o=ws(t,n);if(o)return n.csp&&n.csp.nonce&&o.nonce!==n.csp.nonce&&(o.nonce=n.csp.nonce),o.innerHTML!==e&&(o.innerHTML=e),o;var i=xo(e,n);return i.setAttribute(So(n),t),i}function wo(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?Object(arguments[t]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(o){return Object.getOwnPropertyDescriptor(n,o).enumerable}))),r.forEach(function(o){Ts(e,o,n[o])})}return e}function Ts(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ps(e,t){process.env.NODE_ENV!=="production"&&!e&&console!==void 0&&console.error("Warning: ".concat(t))}function Os(e,t){Ps(e,"[@ant-design/icons-vue] ".concat(t))}function $o(e){return typeof e=="object"&&typeof e.name=="string"&&typeof e.theme=="string"&&(typeof e.icon=="object"||typeof e.icon=="function")}function mn(e,t,n){return n?a.h(e.tag,wo({key:t},n,e.attrs),(e.children||[]).map(function(r,o){return mn(r,"".concat(t,"-").concat(e.tag,"-").concat(o))})):a.h(e.tag,wo({key:t},e.attrs),(e.children||[]).map(function(r,o){return mn(r,"".concat(t,"-").concat(e.tag,"-").concat(o))}))}function No(e){return ke(e)[0]}function To(e){return e?Array.isArray(e)?e:[e]:[]}var Es=`
57
+ onLoadstart onPause onPlay onPlaying onProgress onRatechange onSeeked onSeeking onStalled onSuspend onTimeupdate onVolumechange onWaiting onLoad onError`.split(/[\s\n]+/),hs="aria-",ms="data-";function po(e,t){return e.indexOf(t)===0}function Me(e,t=!1){let n;t===!1?n={aria:!0,data:!0,attr:!0}:t===!0?n={aria:!0}:n={...t};const r={};return Object.keys(e).forEach(o=>{(n.aria&&(o==="role"||po(o,hs))||n.data&&po(o,ms)||n.attr&&(go.includes(o)||go.includes(o.toLowerCase())))&&(r[o]=e[o])}),r}function gs(e){const[t,n]=L(e.value.length),r=a.computed(()=>e.value.slice(0,a.unref(t))),o=a.computed(()=>{const l=a.unref(r)[a.unref(r).length-1];return l?l.key:null});a.watch(e,()=>{var l;if(!(a.unref(r).length&&a.unref(r).every((s,c)=>{var d;return s.key===((d=e.value[c])==null?void 0:d.key)}))){if(a.unref(r).length===0)n(1);else for(let s=0;s<a.unref(r).length;s+=1)if(a.unref(r)[s].key!==((l=e.value[s])==null?void 0:l.key)){n(s);break}}},{immediate:!0,deep:!0});const i=mt(l=>{l===a.unref(o)&&n(a.unref(t)+1)});return[r,i]}function ps(e,t){const n=o=>typeof t=="function"?t(o):t?t[o.role]||{}:{};return a.computed(()=>(e.value||[]).map((o,i)=>{const l=o.key??`preset_${i}`;return{...n(o),...o,key:l}}))}const bs=1,bo=a.defineComponent({name:"AXBubbleList",inheritAttrs:!1,__name:"BubbleList",props:a.mergeDefaults({prefixCls:null,rootClassName:null,items:null,autoScroll:{type:Boolean},roles:null},{autoScroll:!0}),setup(e,{expose:t}){const n=W(e,["prefixCls","rootClassName","items","autoScroll","roles"]);a.toRef(e,"items"),a.toRef(e,"prefixCls");const r=a.useAttrs(),o=Me(a.mergeProps(n,r),{attr:!0,aria:!0}),i=a.ref(e.items);a.watch(()=>e.items,()=>{i.value=e.items});const l=a.ref(null),s=a.ref({}),{getPrefixCls:c}=G(),d=c("bubble",e.prefixCls),f=`${d}-list`,[u,m,p]=uo(d),[g,h]=L(!1);a.watchEffect(()=>{h(!0),a.onWatcherCleanup(()=>{h(!1)})});const b=ps(i,e.roles),[v,w]=gs(b),[C,S]=L(!0),[$,x]=L(0),y=P=>{const R=P.target;S(R.scrollHeight-Math.abs(R.scrollTop)-R.clientHeight<=bs)};a.watch($,()=>{e.autoScroll&&a.unref(l)&&a.unref(C)&&a.unref(l).scrollTo({top:a.unref(l).scrollHeight})}),a.watch(()=>a.unref(v).length,()=>{var P;if(e.autoScroll){const R=(P=a.unref(v)[a.unref(v).length-2])==null?void 0:P.key,F=a.unref(s)[R];if(F){const{nativeElement:I}=F,{top:B=0,bottom:X=0}=(I==null?void 0:I.getBoundingClientRect())??{},{top:J,bottom:Ie}=a.unref(l).getBoundingClientRect();B<Ie&&X>J&&(x(a.unref($)+1),S(!0))}}});const N=mt(()=>{e.autoScroll&&x(a.unref($)+1)}),A=a.computed(()=>({onUpdate:N}));return t({nativeElement:l,scrollTo:({key:P,offset:R,behavior:F="smooth",block:I})=>{if(typeof R=="number")a.unref(l).scrollTo({top:R,behavior:F});else if(P!==void 0){const B=a.unref(s)[P];if(B){const X=a.unref(v).findIndex(J=>J.key===P);S(X===a.unref(v).length-1),B.nativeElement.scrollIntoView({behavior:F,block:I})}}}}),()=>u(a.createVNode(ds,{value:A.value},{default:()=>[a.createVNode("div",a.mergeProps(o,{class:T(f,e.rootClassName,m.value,p,{[`${f}-reach-end`]:C.value}),ref:l,onScroll:y}),[a.unref(v).map(({key:P,onTypingComplete:R,...F})=>a.createVNode(ho,a.mergeProps(F,{key:P,ref:I=>{I?s.value[P]=I:delete s.value[P]},typing:g.value?F.typing:!1,onTypingComplete:()=>{R==null||R(),w(P)}}),null))])]}))}}),ys=Object.assign(ho,{List:bo});var Ss=Symbol("iconContext"),yo=function(){return a.inject(Ss,{prefixCls:a.ref("anticon"),rootClassName:a.ref(""),csp:a.ref()})};function un(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function Cs(e,t){return e&&e.contains?e.contains(t):!1}var So="data-vc-order",vs="vc-icon-key",fn=new Map;function Co(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.mark;return t?t.startsWith("data-")?t:"data-".concat(t):vs}function hn(e){if(e.attachTo)return e.attachTo;var t=document.querySelector("head");return t||document.body}function xs(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function vo(e){return Array.from((fn.get(e)||e).children).filter(function(t){return t.tagName==="STYLE"})}function xo(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!un())return null;var n=t.csp,r=t.prepend,o=document.createElement("style");o.setAttribute(So,xs(r)),n&&n.nonce&&(o.nonce=n.nonce),o.innerHTML=e;var i=hn(t),l=i.firstChild;if(r){if(r==="queue"){var s=vo(i).filter(function(c){return["prepend","prependQueue"].includes(c.getAttribute(So))});if(s.length)return i.insertBefore(o,s[s.length-1].nextSibling),o}i.insertBefore(o,l)}else i.appendChild(o);return o}function ws(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=hn(t);return vo(n).find(function(r){return r.getAttribute(Co(t))===e})}function $s(e,t){var n=fn.get(e);if(!n||!Cs(document,n)){var r=xo("",t),o=r.parentNode;fn.set(e,o),e.removeChild(r)}}function Ns(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=hn(n);$s(r,n);var o=ws(t,n);if(o)return n.csp&&n.csp.nonce&&o.nonce!==n.csp.nonce&&(o.nonce=n.csp.nonce),o.innerHTML!==e&&(o.innerHTML=e),o;var i=xo(e,n);return i.setAttribute(Co(n),t),i}function wo(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?Object(arguments[t]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(o){return Object.getOwnPropertyDescriptor(n,o).enumerable}))),r.forEach(function(o){Ts(e,o,n[o])})}return e}function Ts(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ps(e,t){process.env.NODE_ENV!=="production"&&!e&&console!==void 0&&console.error("Warning: ".concat(t))}function Os(e,t){Ps(e,"[@ant-design/icons-vue] ".concat(t))}function $o(e){return typeof e=="object"&&typeof e.name=="string"&&typeof e.theme=="string"&&(typeof e.icon=="object"||typeof e.icon=="function")}function mn(e,t,n){return n?a.h(e.tag,wo({key:t},n,e.attrs),(e.children||[]).map(function(r,o){return mn(r,"".concat(t,"-").concat(e.tag,"-").concat(o))})):a.h(e.tag,wo({key:t},e.attrs),(e.children||[]).map(function(r,o){return mn(r,"".concat(t,"-").concat(e.tag,"-").concat(o))}))}function No(e){return ke(e)[0]}function To(e){return e?Array.isArray(e)?e:[e]:[]}var Es=`
58
58
  .anticon {
59
59
  display: inline-block;
60
60
  color: inherit;
@@ -110,7 +110,7 @@ summary tabindex target title type usemap value width wmode wrap onCopy onCut on
110
110
  }
111
111
  `;function Po(e){return e&&e.getRootNode&&e.getRootNode()}function As(e){return un()?Po(e)instanceof ShadowRoot:!1}function Rs(e){return As(e)?Po(e):null}var Ms=function(){var t=yo(),n=t.prefixCls,r=t.csp,o=a.getCurrentInstance(),i=Es;n&&(i=i.replace(/anticon/g,n.value)),a.nextTick(function(){if(un()){var l=o.vnode.el,s=Rs(l);Ns(i,"@ant-design-vue-icons",{prepend:!0,csp:r.value,attachTo:s})}})},Is=["icon","primaryColor","secondaryColor"];function Hs(e,t){if(e==null)return{};var n=Vs(e,t),r,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)r=i[o],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Vs(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i<r.length;i++)o=r[i],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}function gt(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?Object(arguments[t]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(o){return Object.getOwnPropertyDescriptor(n,o).enumerable}))),r.forEach(function(o){Bs(e,o,n[o])})}return e}function Bs(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var We=a.reactive({primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1});function Ls(e){var t=e.primaryColor,n=e.secondaryColor;We.primaryColor=t,We.secondaryColor=n||No(t),We.calculated=!!n}function js(){return gt({},We)}var he=function(t,n){var r=gt({},t,n.attrs),o=r.icon,i=r.primaryColor,l=r.secondaryColor,s=Hs(r,Is),c=We;if(i&&(c={primaryColor:i,secondaryColor:l||No(i)}),Os($o(o),"icon should be icon definiton, but got ".concat(o)),!$o(o))return null;var d=o;return d&&typeof d.icon=="function"&&(d=gt({},d,{icon:d.icon(c.primaryColor,c.secondaryColor)})),mn(d.icon,"svg-".concat(d.name),gt({},s,{"data-icon":d.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"}))};he.props={icon:Object,primaryColor:String,secondaryColor:String,focusable:String},he.inheritAttrs=!1,he.displayName="IconBase",he.getTwoToneColors=js,he.setTwoToneColors=Ls;function zs(e,t){return Xs(e)||ks(e,t)||Ds(e,t)||Fs()}function Fs(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
112
112
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Ds(e,t){if(e){if(typeof e=="string")return Oo(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Oo(e,t)}}function Oo(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function ks(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r=[],o=!0,i=!1,l,s;try{for(n=n.call(e);!(o=(l=n.next()).done)&&(r.push(l.value),!(t&&r.length===t));o=!0);}catch(c){i=!0,s=c}finally{try{!o&&n.return!=null&&n.return()}finally{if(i)throw s}}return r}}function Xs(e){if(Array.isArray(e))return e}function Eo(e){var t=To(e),n=zs(t,2),r=n[0],o=n[1];return he.setTwoToneColors({primaryColor:r,secondaryColor:o})}function Ws(){var e=he.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor}var Gs=a.defineComponent({name:"InsertStyles",setup:function(){return Ms(),function(){return null}}}),qs=["class","icon","spin","rotate","tabindex","twoToneColor","onClick"];function Us(e,t){return Qs(e)||Ys(e,t)||Zs(e,t)||Ks()}function Ks(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
113
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Zs(e,t){if(e){if(typeof e=="string")return Ao(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Ao(e,t)}}function Ao(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Ys(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r=[],o=!0,i=!1,l,s;try{for(n=n.call(e);!(o=(l=n.next()).done)&&(r.push(l.value),!(t&&r.length===t));o=!0);}catch(c){i=!0,s=c}finally{try{!o&&n.return!=null&&n.return()}finally{if(i)throw s}}return r}}function Qs(e){if(Array.isArray(e))return e}function Ro(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?Object(arguments[t]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(o){return Object.getOwnPropertyDescriptor(n,o).enumerable}))),r.forEach(function(o){Ge(e,o,n[o])})}return e}function Ge(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Js(e,t){if(e==null)return{};var n=_s(e,t),r,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)r=i[o],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function _s(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i<r.length;i++)o=r[i],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}Eo(zl.primary);var V=function(t,n){var r,o=Ro({},t,n.attrs),i=o.class,l=o.icon,s=o.spin,c=o.rotate,d=o.tabindex,f=o.twoToneColor,u=o.onClick,m=Js(o,qs),p=yo(),g=p.prefixCls,h=p.rootClassName,b=(r={},Ge(r,h.value,!!h.value),Ge(r,g.value,!0),Ge(r,"".concat(g.value,"-").concat(l.name),!!l.name),Ge(r,"".concat(g.value,"-spin"),!!s||l.name==="loading"),r),v=d;v===void 0&&u&&(v=-1);var $=c?{msTransform:"rotate(".concat(c,"deg)"),transform:"rotate(".concat(c,"deg)")}:void 0,S=To(f),C=Us(S,2),x=C[0],w=C[1];return a.createVNode("span",Ro({role:"img","aria-label":l.name},m,{onClick:u,class:[b,i],tabindex:v}),[a.createVNode(he,{icon:l,primaryColor:x,secondaryColor:w,style:$},null),a.createVNode(Gs,null,null)])};V.props={spin:Boolean,rotate:Number,icon:Object,twoToneColor:[String,Array]},V.displayName="AntdIcon",V.inheritAttrs=!1,V.getTwoToneColor=Ws,V.setTwoToneColor=Eo;var ec={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M868 545.5L536.1 163a31.96 31.96 0 00-48.3 0L156 545.5a7.97 7.97 0 006 13.2h81c4.6 0 9-2 12.1-5.5L474 300.9V864c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V300.9l218.9 252.3c3 3.5 7.4 5.5 12.1 5.5h81c6.8 0 10.5-8 6-13.2z"}}]},name:"arrow-up",theme:"outlined"};function Mo(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?Object(arguments[t]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(o){return Object.getOwnPropertyDescriptor(n,o).enumerable}))),r.forEach(function(o){tc(e,o,n[o])})}return e}function tc(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var gn=function(t,n){var r=Mo({},t,n.attrs);return a.createVNode(V,Mo({},r,{icon:ec}),null)};gn.displayName="ArrowUpOutlined",gn.inheritAttrs=!1;var nc={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M682 455V311l-76 76v68c-.1 50.7-42 92.1-94 92a95.8 95.8 0 01-52-15l-54 55c29.1 22.4 65.9 36 106 36 93.8 0 170-75.1 170-168z"}},{tag:"path",attrs:{d:"M833 446h-60c-4.4 0-8 3.6-8 8 0 140.3-113.7 254-254 254-63 0-120.7-23-165-61l-54 54a334.01 334.01 0 00179 81v102H326c-13.9 0-24.9 14.3-25 32v36c.1 4.4 2.9 8 6 8h408c3.2 0 6-3.6 6-8v-36c0-17.7-11-32-25-32H547V782c165.3-17.9 294-157.9 294-328 0-4.4-3.6-8-8-8zm13.1-377.7l-43.5-41.9a8 8 0 00-11.2.1l-129 129C634.3 101.2 577 64 511 64c-93.9 0-170 75.3-170 168v224c0 6.7.4 13.3 1.2 19.8l-68 68A252.33 252.33 0 01258 454c-.2-4.4-3.8-8-8-8h-60c-4.4 0-8 3.6-8 8 0 53 12.5 103 34.6 147.4l-137 137a8.03 8.03 0 000 11.3l42.7 42.7c3.1 3.1 8.2 3.1 11.3 0L846.2 79.8l.1-.1c3.1-3.2 3-8.3-.2-11.4zM417 401V232c0-50.6 41.9-92 94-92 46 0 84.1 32.3 92.3 74.7L417 401z"}}]},name:"audio-muted",theme:"outlined"};function Io(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?Object(arguments[t]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(o){return Object.getOwnPropertyDescriptor(n,o).enumerable}))),r.forEach(function(o){rc(e,o,n[o])})}return e}function rc(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var pn=function(t,n){var r=Io({},t,n.attrs);return a.createVNode(V,Io({},r,{icon:nc}),null)};pn.displayName="AudioMutedOutlined",pn.inheritAttrs=!1;var oc={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M842 454c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8 0 140.3-113.7 254-254 254S258 594.3 258 454c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8 0 168.7 126.6 307.9 290 327.6V884H326.7c-13.7 0-24.7 14.3-24.7 32v36c0 4.4 2.8 8 6.2 8h407.6c3.4 0 6.2-3.6 6.2-8v-36c0-17.7-11-32-24.7-32H548V782.1c165.3-18 294-158 294-328.1zM512 624c93.9 0 170-75.2 170-168V232c0-92.8-76.1-168-170-168s-170 75.2-170 168v224c0 92.8 76.1 168 170 168zm-94-392c0-50.6 41.9-92 94-92s94 41.4 94 92v224c0 50.6-41.9 92-94 92s-94-41.4-94-92V232z"}}]},name:"audio",theme:"outlined"};function Ho(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?Object(arguments[t]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(o){return Object.getOwnPropertyDescriptor(n,o).enumerable}))),r.forEach(function(o){ac(e,o,n[o])})}return e}function ac(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var bn=function(t,n){var r=Ho({},t,n.attrs);return a.createVNode(V,Ho({},r,{icon:oc}),null)};bn.displayName="AudioOutlined",bn.inheritAttrs=!1;var ic={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M899.1 869.6l-53-305.6H864c14.4 0 26-11.6 26-26V346c0-14.4-11.6-26-26-26H618V138c0-14.4-11.6-26-26-26H432c-14.4 0-26 11.6-26 26v182H160c-14.4 0-26 11.6-26 26v192c0 14.4 11.6 26 26 26h17.9l-53 305.6a25.95 25.95 0 0025.6 30.4h723c1.5 0 3-.1 4.4-.4a25.88 25.88 0 0021.2-30zM204 390h272V182h72v208h272v104H204V390zm468 440V674c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v156H416V674c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v156H202.8l45.1-260H776l45.1 260H672z"}}]},name:"clear",theme:"outlined"};function Vo(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?Object(arguments[t]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(o){return Object.getOwnPropertyDescriptor(n,o).enumerable}))),r.forEach(function(o){lc(e,o,n[o])})}return e}function lc(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var yn=function(t,n){var r=Vo({},t,n.attrs);return a.createVNode(V,Vo({},r,{icon:ic}),null)};yn.displayName="ClearOutlined",yn.inheritAttrs=!1;var sc={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z"}}]},name:"close-circle",theme:"filled"};function Bo(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?Object(arguments[t]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(o){return Object.getOwnPropertyDescriptor(n,o).enumerable}))),r.forEach(function(o){cc(e,o,n[o])})}return e}function cc(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Cn=function(t,n){var r=Bo({},t,n.attrs);return a.createVNode(V,Bo({},r,{icon:sc}),null)};Cn.displayName="CloseCircleFilled",Cn.inheritAttrs=!1;var dc={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M799.86 166.31c.02 0 .04.02.08.06l57.69 57.7c.04.03.05.05.06.08a.12.12 0 010 .06c0 .03-.02.05-.06.09L569.93 512l287.7 287.7c.04.04.05.06.06.09a.12.12 0 010 .07c0 .02-.02.04-.06.08l-57.7 57.69c-.03.04-.05.05-.07.06a.12.12 0 01-.07 0c-.03 0-.05-.02-.09-.06L512 569.93l-287.7 287.7c-.04.04-.06.05-.09.06a.12.12 0 01-.07 0c-.02 0-.04-.02-.08-.06l-57.69-57.7c-.04-.03-.05-.05-.06-.07a.12.12 0 010-.07c0-.03.02-.05.06-.09L454.07 512l-287.7-287.7c-.04-.04-.05-.06-.06-.09a.12.12 0 010-.07c0-.02.02-.04.06-.08l57.7-57.69c.03-.04.05-.05.07-.06a.12.12 0 01.07 0c.03 0 .05.02.09.06L512 454.07l287.7-287.7c.04-.04.06-.05.09-.06a.12.12 0 01.07 0z"}}]},name:"close",theme:"outlined"};function Lo(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?Object(arguments[t]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(o){return Object.getOwnPropertyDescriptor(n,o).enumerable}))),r.forEach(function(o){uc(e,o,n[o])})}return e}function uc(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Sn=function(t,n){var r=Lo({},t,n.attrs);return a.createVNode(V,Lo({},r,{icon:dc}),null)};Sn.displayName="CloseOutlined",Sn.inheritAttrs=!1;var fc={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M176 511a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"ellipsis",theme:"outlined"};function jo(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?Object(arguments[t]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(o){return Object.getOwnPropertyDescriptor(n,o).enumerable}))),r.forEach(function(o){hc(e,o,n[o])})}return e}function hc(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var vn=function(t,n){var r=jo({},t,n.attrs);return a.createVNode(V,jo({},r,{icon:fc}),null)};vn.displayName="EllipsisOutlined",vn.inheritAttrs=!1;var mc={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.7c6 6 9.4 14.1 9.4 22.6V928c0 17.7-14.3 32-32 32H192c-17.7 0-32-14.3-32-32V96c0-17.7 14.3-32 32-32h424.7c8.5 0 16.7 3.4 22.7 9.4l215.2 215.3zM790.2 326L602 137.8V326h188.2zM575.34 477.84l-61.22 102.3L452.3 477.8a12 12 0 00-10.27-5.79h-38.44a12 12 0 00-6.4 1.85 12 12 0 00-3.75 16.56l82.34 130.42-83.45 132.78a12 12 0 00-1.84 6.39 12 12 0 0012 12h34.46a12 12 0 0010.21-5.7l62.7-101.47 62.3 101.45a12 12 0 0010.23 5.72h37.48a12 12 0 006.48-1.9 12 12 0 003.62-16.58l-83.83-130.55 85.3-132.47a12 12 0 001.9-6.5 12 12 0 00-12-12h-35.7a12 12 0 00-10.29 5.84z"}}]},name:"file-excel",theme:"filled"};function zo(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?Object(arguments[t]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(o){return Object.getOwnPropertyDescriptor(n,o).enumerable}))),r.forEach(function(o){gc(e,o,n[o])})}return e}function gc(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var xn=function(t,n){var r=zo({},t,n.attrs);return a.createVNode(V,zo({},r,{icon:mc}),null)};xn.displayName="FileExcelFilled",xn.inheritAttrs=!1;var pc={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.7L639.4 73.4c-6-6-14.2-9.4-22.7-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.6-9.4-22.6zM400 402c22.1 0 40 17.9 40 40s-17.9 40-40 40-40-17.9-40-40 17.9-40 40-40zm296 294H328c-6.7 0-10.4-7.7-6.3-12.9l99.8-127.2a8 8 0 0112.6 0l41.1 52.4 77.8-99.2a8 8 0 0112.6 0l136.5 174c4.3 5.2.5 12.9-6.1 12.9zm-94-370V137.8L790.2 326H602z"}}]},name:"file-image",theme:"filled"};function Fo(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?Object(arguments[t]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(o){return Object.getOwnPropertyDescriptor(n,o).enumerable}))),r.forEach(function(o){bc(e,o,n[o])})}return e}function bc(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var wn=function(t,n){var r=Fo({},t,n.attrs);return a.createVNode(V,Fo({},r,{icon:pc}),null)};wn.displayName="FileImageFilled",wn.inheritAttrs=!1;var yc={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.7c6 6 9.4 14.1 9.4 22.6V928c0 17.7-14.3 32-32 32H192c-17.7 0-32-14.3-32-32V96c0-17.7 14.3-32 32-32h424.7c8.5 0 16.7 3.4 22.7 9.4l215.2 215.3zM790.2 326L602 137.8V326h188.2zM426.13 600.93l59.11 132.97a16 16 0 0014.62 9.5h24.06a16 16 0 0014.63-9.51l59.1-133.35V758a16 16 0 0016.01 16H641a16 16 0 0016-16V486a16 16 0 00-16-16h-34.75a16 16 0 00-14.67 9.62L512.1 662.2l-79.48-182.59a16 16 0 00-14.67-9.61H383a16 16 0 00-16 16v272a16 16 0 0016 16h27.13a16 16 0 0016-16V600.93z"}}]},name:"file-markdown",theme:"filled"};function Do(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?Object(arguments[t]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(o){return Object.getOwnPropertyDescriptor(n,o).enumerable}))),r.forEach(function(o){Cc(e,o,n[o])})}return e}function Cc(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var $n=function(t,n){var r=Do({},t,n.attrs);return a.createVNode(V,Do({},r,{icon:yc}),null)};$n.displayName="FileMarkdownFilled",$n.inheritAttrs=!1;var Sc={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.7c6 6 9.4 14.1 9.4 22.6V928c0 17.7-14.3 32-32 32H192c-17.7 0-32-14.3-32-32V96c0-17.7 14.3-32 32-32h424.7c8.5 0 16.7 3.4 22.7 9.4l215.2 215.3zM790.2 326L602 137.8V326h188.2zM633.22 637.26c-15.18-.5-31.32.67-49.65 2.96-24.3-14.99-40.66-35.58-52.28-65.83l1.07-4.38 1.24-5.18c4.3-18.13 6.61-31.36 7.3-44.7.52-10.07-.04-19.36-1.83-27.97-3.3-18.59-16.45-29.46-33.02-30.13-15.45-.63-29.65 8-33.28 21.37-5.91 21.62-2.45 50.07 10.08 98.59-15.96 38.05-37.05 82.66-51.2 107.54-18.89 9.74-33.6 18.6-45.96 28.42-16.3 12.97-26.48 26.3-29.28 40.3-1.36 6.49.69 14.97 5.36 21.92 5.3 7.88 13.28 13 22.85 13.74 24.15 1.87 53.83-23.03 86.6-79.26 3.29-1.1 6.77-2.26 11.02-3.7l11.9-4.02c7.53-2.54 12.99-4.36 18.39-6.11 23.4-7.62 41.1-12.43 57.2-15.17 27.98 14.98 60.32 24.8 82.1 24.8 17.98 0 30.13-9.32 34.52-23.99 3.85-12.88.8-27.82-7.48-36.08-8.56-8.41-24.3-12.43-45.65-13.12zM385.23 765.68v-.36l.13-.34a54.86 54.86 0 015.6-10.76c4.28-6.58 10.17-13.5 17.47-20.87 3.92-3.95 8-7.8 12.79-12.12 1.07-.96 7.91-7.05 9.19-8.25l11.17-10.4-8.12 12.93c-12.32 19.64-23.46 33.78-33 43-3.51 3.4-6.6 5.9-9.1 7.51a16.43 16.43 0 01-2.61 1.42c-.41.17-.77.27-1.13.3a2.2 2.2 0 01-1.12-.15 2.07 2.07 0 01-1.27-1.91zM511.17 547.4l-2.26 4-1.4-4.38c-3.1-9.83-5.38-24.64-6.01-38-.72-15.2.49-24.32 5.29-24.32 6.74 0 9.83 10.8 10.07 27.05.22 14.28-2.03 29.14-5.7 35.65zm-5.81 58.46l1.53-4.05 2.09 3.8c11.69 21.24 26.86 38.96 43.54 51.31l3.6 2.66-4.39.9c-16.33 3.38-31.54 8.46-52.34 16.85 2.17-.88-21.62 8.86-27.64 11.17l-5.25 2.01 2.8-4.88c12.35-21.5 23.76-47.32 36.05-79.77zm157.62 76.26c-7.86 3.1-24.78.33-54.57-12.39l-7.56-3.22 8.2-.6c23.3-1.73 39.8-.45 49.42 3.07 4.1 1.5 6.83 3.39 8.04 5.55a4.64 4.64 0 01-1.36 6.31 6.7 6.7 0 01-2.17 1.28z"}}]},name:"file-pdf",theme:"filled"};function ko(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?Object(arguments[t]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(o){return Object.getOwnPropertyDescriptor(n,o).enumerable}))),r.forEach(function(o){vc(e,o,n[o])})}return e}function vc(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Nn=function(t,n){var r=ko({},t,n.attrs);return a.createVNode(V,ko({},r,{icon:Sc}),null)};Nn.displayName="FilePdfFilled",Nn.inheritAttrs=!1;var xc={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.7c6 6 9.4 14.1 9.4 22.6V928c0 17.7-14.3 32-32 32H192c-17.7 0-32-14.3-32-32V96c0-17.7 14.3-32 32-32h424.7c8.5 0 16.7 3.4 22.7 9.4l215.2 215.3zM790.2 326L602 137.8V326h188.2zM468.53 760v-91.54h59.27c60.57 0 100.2-39.65 100.2-98.12 0-58.22-39.58-98.34-99.98-98.34H424a12 12 0 00-12 12v276a12 12 0 0012 12h32.53a12 12 0 0012-12zm0-139.33h34.9c47.82 0 67.19-12.93 67.19-50.33 0-32.05-18.12-50.12-49.87-50.12h-52.22v100.45z"}}]},name:"file-ppt",theme:"filled"};function Xo(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?Object(arguments[t]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(o){return Object.getOwnPropertyDescriptor(n,o).enumerable}))),r.forEach(function(o){wc(e,o,n[o])})}return e}function wc(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Tn=function(t,n){var r=Xo({},t,n.attrs);return a.createVNode(V,Xo({},r,{icon:xc}),null)};Tn.displayName="FilePptFilled",Tn.inheritAttrs=!1;var $c={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.7c6 6 9.4 14.1 9.4 22.6V928c0 17.7-14.3 32-32 32H192c-17.7 0-32-14.3-32-32V96c0-17.7 14.3-32 32-32h424.7c8.5 0 16.7 3.4 22.7 9.4l215.2 215.3zM790.2 326L602 137.8V326h188.2zM320 482a8 8 0 00-8 8v48a8 8 0 008 8h384a8 8 0 008-8v-48a8 8 0 00-8-8H320zm0 136a8 8 0 00-8 8v48a8 8 0 008 8h184a8 8 0 008-8v-48a8 8 0 00-8-8H320z"}}]},name:"file-text",theme:"filled"};function Wo(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?Object(arguments[t]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(o){return Object.getOwnPropertyDescriptor(n,o).enumerable}))),r.forEach(function(o){Nc(e,o,n[o])})}return e}function Nc(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Pn=function(t,n){var r=Wo({},t,n.attrs);return a.createVNode(V,Wo({},r,{icon:$c}),null)};Pn.displayName="FileTextFilled",Pn.inheritAttrs=!1;var Tc={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.7c6 6 9.4 14.1 9.4 22.6V928c0 17.7-14.3 32-32 32H192c-17.7 0-32-14.3-32-32V96c0-17.7 14.3-32 32-32h424.7c8.5 0 16.7 3.4 22.7 9.4l215.2 215.3zM790.2 326L602 137.8V326h188.2zM512 566.1l52.81 197a12 12 0 0011.6 8.9h31.77a12 12 0 0011.6-8.88l74.37-276a12 12 0 00.4-3.12 12 12 0 00-12-12h-35.57a12 12 0 00-11.7 9.31l-45.78 199.1-49.76-199.32A12 12 0 00528.1 472h-32.2a12 12 0 00-11.64 9.1L434.6 680.01 388.5 481.3a12 12 0 00-11.68-9.29h-35.39a12 12 0 00-3.11.41 12 12 0 00-8.47 14.7l74.17 276A12 12 0 00415.6 772h31.99a12 12 0 0011.59-8.9l52.81-197z"}}]},name:"file-word",theme:"filled"};function Go(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?Object(arguments[t]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(o){return Object.getOwnPropertyDescriptor(n,o).enumerable}))),r.forEach(function(o){Pc(e,o,n[o])})}return e}function Pc(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var On=function(t,n){var r=Go({},t,n.attrs);return a.createVNode(V,Go({},r,{icon:Tc}),null)};On.displayName="FileWordFilled",On.inheritAttrs=!1;var Oc={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.7c6 6 9.4 14.1 9.4 22.6V928c0 17.7-14.3 32-32 32H192c-17.7 0-32-14.3-32-32V96c0-17.7 14.3-32 32-32h424.7c8.5 0 16.7 3.4 22.7 9.4l215.2 215.3zM790.2 326L602 137.8V326h188.2zM296 136v64h64v-64h-64zm64 64v64h64v-64h-64zm-64 64v64h64v-64h-64zm64 64v64h64v-64h-64zm-64 64v64h64v-64h-64zm64 64v64h64v-64h-64zm-64 64v64h64v-64h-64zm0 64v160h128V584H296zm48 48h32v64h-32v-64z"}}]},name:"file-zip",theme:"filled"};function qo(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?Object(arguments[t]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(o){return Object.getOwnPropertyDescriptor(n,o).enumerable}))),r.forEach(function(o){Ec(e,o,n[o])})}return e}function Ec(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var En=function(t,n){var r=qo({},t,n.attrs);return a.createVNode(V,qo({},r,{icon:Oc}),null)};En.displayName="FileZipFilled",En.inheritAttrs=!1;var Ac={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z"}}]},name:"left",theme:"outlined"};function Uo(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?Object(arguments[t]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(o){return Object.getOwnPropertyDescriptor(n,o).enumerable}))),r.forEach(function(o){Rc(e,o,n[o])})}return e}function Rc(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var pt=function(t,n){var r=Uo({},t,n.attrs);return a.createVNode(V,Uo({},r,{icon:Ac}),null)};pt.displayName="LeftOutlined",pt.inheritAttrs=!1;var Mc={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z"}},{tag:"path",attrs:{d:"M192 474h672q8 0 8 8v60q0 8-8 8H160q-8 0-8-8v-60q0-8 8-8z"}}]},name:"plus",theme:"outlined"};function Ko(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?Object(arguments[t]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(o){return Object.getOwnPropertyDescriptor(n,o).enumerable}))),r.forEach(function(o){Ic(e,o,n[o])})}return e}function Ic(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var An=function(t,n){var r=Ko({},t,n.attrs);return a.createVNode(V,Ko({},r,{icon:Mc}),null)};An.displayName="PlusOutlined",An.inheritAttrs=!1;var Hc={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z"}}]},name:"right",theme:"outlined"};function Zo(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?Object(arguments[t]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(o){return Object.getOwnPropertyDescriptor(n,o).enumerable}))),r.forEach(function(o){Vc(e,o,n[o])})}return e}function Vc(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var bt=function(t,n){var r=Zo({},t,n.attrs);return a.createVNode(V,Zo({},r,{icon:Hc}),null)};bt.displayName="RightOutlined",bt.inheritAttrs=!1;const Bc=a.defineComponent({name:"AXConversationsItem",__name:"ConversationsItem",props:{info:null,prefixCls:null,direction:null,menu:null,active:{type:Boolean},onClick:{type:Function}},setup(e){const t=X(e,["prefixCls","info","class","direction","onClick","active","menu"]);a.toRef(e,"class");const n=a.computed(()=>Me(t,{aria:!0,data:!0,attr:!0})),r=m=>{m.stopPropagation()},o=a.computed(()=>e.info.disabled),[i,l]=L(!1),[s,c]=L(!1),d=a.computed(()=>N(e.class,`${e.prefixCls}-item`,{[`${e.prefixCls}-item-active`]:e.active&&!o.value},{[`${e.prefixCls}-item-disabled`]:o.value})),f=()=>{!o.value&&e.onClick&&e.onClick(e.info)},u=m=>{m&&c(!m)};return()=>a.createVNode(O.Tooltip,{title:e.info.label,open:i.value&&s.value,onOpenChange:c,placement:e.direction==="rtl"?"left":"right"},{default:()=>[a.createVNode("li",a.mergeProps(n.value,{class:d.value,onClick:f}),[e.info.icon&&a.createVNode("div",{class:`${e.prefixCls}-icon`},[e.info.icon]),a.createVNode(O.Typography.Text,{class:`${e.prefixCls}-label`,ellipsis:{onEllipsis:l},content:e.info.label},null),e.menu&&!o.value&&a.createVNode(O.Dropdown,{placement:e.direction==="rtl"?"bottomLeft":"bottomRight",trigger:["click"],disabled:o.value,onOpenChange:u},{default:()=>a.createVNode(vn,{onClick:r,disabled:o.value,class:`${e.prefixCls}-menu-icon`},null),overlay:()=>a.createVNode(O.Menu,e.menu,null)})])]})}}),Yo=Symbol("GroupTitleContext"),Rn=a.shallowRef(),Lc=e=>{a.provide(Yo,e),a.watch(e,()=>{Rn.value=a.unref(e),a.triggerRef(Rn)},{immediate:!0,deep:!0})},jc=()=>a.inject(Yo,a.computed(()=>Rn.value||{})),zc=a.defineComponent({props:{value:ne()},setup(e,{slots:t}){return Lc(a.computed(()=>e.value)),()=>{var n;return(n=t.default)==null?void 0:n.call(t)}}}),Qo=a.defineComponent({name:"AXConversationsGroupTitle",__name:"GroupTitle",setup(e){const t=a.useSlots(),n=jc(),r=a.computed(()=>{var o;return(o=t.default)==null?void 0:o.call(t)});return()=>a.createVNode("div",{class:N(`${n.value.prefixCls}-group-title`)},[r.value&&a.createVNode(O.Typography.Text,null,{default:()=>[r.value]})])}});function Jo(e,t){const{defaultValue:n,value:r=a.ref()}=t||{};let o=typeof e=="function"?e():e;r.value!==void 0&&(o=a.unref(r)),n!==void 0&&(o=typeof n=="function"?n():n);const i=a.ref(o),l=a.ref(o);a.watchEffect(()=>{let c=r.value!==void 0?r.value:i.value;t.postState&&(c=t.postState(c)),l.value=c});function s(c){const d=l.value;i.value=c,a.toRaw(l.value)!==c&&t.onChange&&t.onChange(c,d)}return a.watch(r,()=>{i.value=r.value}),[l,s]}const Mn="__ungrouped",Fc=(e,t=[])=>{const n=a.computed(()=>{if(!a.toValue(e))return{enableGroup:!1,sort:void 0,title:void 0};let r={sort:void 0,title:void 0};return typeof a.toValue(e)=="object"&&(r={...r,...a.toValue(e)}),{enableGroup:!0,sort:r.sort,title:r.title}});return a.computed(()=>{if(!n.value.enableGroup)return{groupList:[{name:Mn,data:a.toValue(t),title:void 0}],enableGroup:n.value.enableGroup};const r=a.toValue(t).reduce((l,s)=>{const c=s.group||Mn;return l[c]||(l[c]=[]),l[c].push(s),l},{});return{groupList:(n.value.sort?Object.keys(r).sort(n.value.sort):Object.keys(r)).map(l=>({name:l===Mn?void 0:l,title:n.value.title,data:r[l]})),enableGroup:n.value.enableGroup}})},Dc=e=>{const{componentCls:t}=e;return{[t]:{display:"flex",flexDirection:"column",gap:e.paddingXXS,overflowY:"auto",padding:e.paddingSM,[`&${t}-rtl`]:{direction:"rtl"},[`& ${t}-list`]:{display:"flex",gap:e.paddingXXS,flexDirection:"column",paddingLeft:0,[`& ${t}-item`]:{paddingInlineStart:e.paddingXL},[`& ${t}-label`]:{color:e.colorTextDescription}},[`& ${t}-item`]:{display:"flex",height:e.controlHeightLG,minHeight:e.controlHeightLG,gap:e.paddingXS,padding:`0 ${Z(e.paddingXS)}`,alignItems:"center",borderRadius:e.borderRadiusLG,cursor:"pointer",transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,"&:hover":{backgroundColor:e.colorBgTextHover},"&-active":{backgroundColor:e.colorBgTextHover,[`& ${t}-label, ${t}-menu-icon`]:{color:e.colorText}},"&-disabled":{cursor:"not-allowed",[`& ${t}-label`]:{color:e.colorTextDisabled}},"&:hover, &-active":{[`& ${t}-menu-icon`]:{opacity:1}}},[`& ${t}-label`]:{flex:1,color:e.colorText},[`& ${t}-menu-icon`]:{opacity:0,fontSize:e.fontSizeXL},[`& ${t}-group-title`]:{display:"flex",alignItems:"center",height:e.controlHeightLG,minHeight:e.controlHeightLG,padding:`0 ${Z(e.paddingXS)}`}}}},kc=fe("Conversations",e=>{const t=ee(e,{});return Dc(t)},()=>({})),Xc=a.defineComponent({name:"AXConversations",__name:"Conversations",props:a.mergeDefaults({items:null,activeKey:null,defaultActiveKey:null,onActiveChange:{type:Function},menu:{type:Function},groupable:{type:Boolean},styles:null,classNames:null,prefixCls:null,rootClassName:null},{styles:()=>({}),classNames:()=>({})}),setup(e){const t=X(e,["prefixCls","rootClassName","items","activeKey","defaultActiveKey","onActiveChange","menu","styles","classNames","groupable","class","style"]);a.toRef(e,"class"),a.toRef(e,"activeKey"),a.toRef(e,"prefixCls");const n=a.ref(e.activeKey),r=a.computed(()=>Me(t,{attr:!0,aria:!0,data:!0})),[o,i]=Jo(e.defaultActiveKey,{value:n});a.watch(()=>e.activeKey,()=>{n.value=e.activeKey});const l=Fc(()=>e.groupable,()=>e.items),{getPrefixCls:s,direction:c}=G(),d=a.computed(()=>s("conversations",e.prefixCls)),f=se("conversations"),[u,m,p]=kc(d),g=a.computed(()=>N(d.value,f.value.className,e.class,e.rootClassName,m.value,p,{[`${d.value}-rtl`]:c.value==="rtl"})),h=b=>{i(b.key),e.onActiveChange&&e.onActiveChange(b.key)};return()=>u(a.createVNode("ul",a.mergeProps(r.value,{style:{...typeof f.value.style=="object"?f.value.style:{},...typeof e.style=="object"?e.style:{}},class:g.value}),[l.value.groupList.map((b,v)=>{const $=b.data.map((S,C)=>a.createVNode(Bc,{key:S.key||`key-${C}`,info:S,prefixCls:d.value,direction:c.value,class:N(e.classNames.item,f.value.classNames.item),style:{...f.value.styles.item,...e.styles.item},menu:typeof e.menu=="function"?e.menu(S):e.menu,active:o.value===S.key,onClick:h},null));return l.value.enableGroup?a.createVNode("li",{key:b.name||`key-${v}`},[a.createVNode(zc,{value:{prefixCls:d.value}},{default:()=>{var S;return[((S=b.title)==null?void 0:S.call(b,b.name,{components:{GroupTitle:Qo}}))||a.createVNode(Qo,{key:b.name},{default:()=>[b.name]})]}}),a.createVNode("ul",{class:`${d.value}-list`},[$])]):$})]))}}),Wc=e=>{const{componentCls:t,calc:n}=e,r=n(e.fontSizeHeading3).mul(e.lineHeightHeading3).equal(),o=n(e.fontSize).mul(e.lineHeight).equal();return{[t]:{gap:e.padding,[`${t}-icon`]:{height:n(r).add(o).add(e.paddingXXS).equal(),display:"flex",img:{height:"100%"}},[`${t}-content-wrapper`]:{gap:e.paddingXS,flex:"auto",minWidth:0,[`${t}-title-wrapper`]:{gap:e.paddingXS},[`${t}-title`]:{margin:0},[`${t}-extra`]:{marginInlineStart:"auto"}}}}},Gc=e=>{const{componentCls:t}=e;return{[t]:{"&-filled":{paddingInline:e.padding,paddingBlock:e.paddingSM,background:e.colorFillContent,borderRadius:e.borderRadiusLG},"&-borderless":{[`${t}-title`]:{fontSize:e.fontSizeHeading3,lineHeight:e.lineHeightHeading3}}}}},qc=fe("Welcome",e=>{const t=ee(e,{});return[Wc(t),Gc(t)]},()=>({})),Uc=a.defineComponent({name:"AXWelcome",__name:"Welcome",props:a.mergeDefaults({prefixCls:null,rootClassName:null,className:null,style:null,variant:null,classNames:null,styles:null,icon:null,title:null,description:null,extra:null},{variant:"filled",classNames:()=>({}),styles:()=>({})}),setup(e){a.toRef(e,"prefixCls");const{direction:t,getPrefixCls:n}=G(),r=n("welcome",e.prefixCls),o=se("welcome"),[i,l,s]=qc(r),c=a.computed(()=>{if(!e.icon)return null;let u=e.icon;return typeof e.icon=="string"&&e.icon.startsWith("http")&&(u=a.createVNode("img",{src:e.icon,alt:"icon"},null)),a.createVNode("div",{class:N(`${r}-icon`,o.value.classNames.icon,e.classNames.icon),style:e.styles.icon},[u])}),d=a.computed(()=>e.title?a.createVNode(O.Typography.Title,{level:4,class:N(`${r}-title`,o.value.classNames.title,e.classNames.title),style:e.styles.title},{default:()=>[e.title]}):null),f=a.computed(()=>e.extra?a.createVNode("div",{class:N(`${r}-extra`,o.value.classNames.extra,e.classNames.extra),style:e.styles.extra},[e.extra]):null);return()=>i(a.createVNode(O.Flex,{class:N(r,o.value.className,e.className,e.rootClassName,l.value,s,`${r}-${e.variant}`,{[`${r}-rtl`]:t.value==="rtl"}),style:e.style},{default:()=>[c.value,a.createVNode(O.Flex,{vertical:!0,class:`${r}-content-wrapper`},{default:()=>[e.extra?a.createVNode(O.Flex,{align:"flex-start",class:`${r}-title-wrapper`},{default:()=>[d.value,f.value]}):d.value,e.description&&a.createVNode(O.Typography.Text,{class:N(`${r}-description`,o.value.classNames.description,e.classNames.description),style:e.styles.description},{default:()=>[e.description]})]})]}))}}),Kc=e=>{const{componentCls:t}=e;return{[t]:{"&, & *":{boxSizing:"border-box"},maxWidth:"100%",[`&${t}-rtl`]:{direction:"rtl"},[`& ${t}-title`]:{marginBlockStart:0,fontWeight:"normal",color:e.colorTextTertiary},[`& ${t}-list`]:{display:"flex",gap:e.paddingSM,overflowX:"scroll","&::-webkit-scrollbar":{display:"none"},listStyle:"none",paddingInlineStart:0,marginBlock:0,alignItems:"stretch","&-wrap":{flexWrap:"wrap"},"&-vertical":{flexDirection:"column",alignItems:"flex-start"}},[`${t}-item`]:{flex:"none",display:"flex",gap:e.paddingXS,height:"auto",paddingBlock:e.paddingSM,paddingInline:e.padding,alignItems:"flex-start",justifyContent:"flex-start",background:e.colorBgContainer,borderRadius:e.borderRadiusLG,transition:["border","background"].map(n=>`${n} ${e.motionDurationSlow}`).join(","),border:`${Z(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`,[`&:not(${t}-item-has-nest)`]:{"&:hover":{cursor:"pointer",background:e.colorFillTertiary},"&:active":{background:e.colorFill}},[`${t}-content`]:{flex:"auto",minWidth:0,display:"flex",gap:e.paddingXXS,flexDirection:"column",alignItems:"flex-start"},[`${t}-icon, ${t}-label, ${t}-desc`]:{margin:0,padding:0,fontSize:e.fontSize,lineHeight:e.lineHeight,textAlign:"start",whiteSpace:"normal"},[`${t}-label`]:{color:e.colorTextHeading,fontWeight:500},[`${t}-label + ${t}-desc`]:{color:e.colorTextTertiary},[`&${t}-item-disabled`]:{pointerEvents:"none",background:e.colorBgContainerDisabled,[`${t}-label, ${t}-desc`]:{color:e.colorTextTertiary}}}}}},Zc=e=>{const{componentCls:t}=e;return{[t]:{[`${t}-item-has-nest`]:{[`> ${t}-content`]:{[`> ${t}-label`]:{fontSize:e.fontSizeLG,lineHeight:e.lineHeightLG}}},[`&${t}-nested`]:{marginTop:e.paddingXS,alignSelf:"stretch",[`${t}-list`]:{alignItems:"stretch"},[`${t}-item`]:{border:0,background:e.colorFillQuaternary}}}}},Yc=fe("Prompts",e=>{const t=ee(e,{});return[Kc(t),Zc(t)]},()=>({})),_o=a.defineComponent({name:"AXPrompts",__name:"Prompts",props:a.mergeDefaults({items:null,title:null,onItemClick:{type:Function},vertical:{type:Boolean},wrap:{type:Boolean},styles:null,classNames:null,prefixCls:null,rootClassName:null},{styles:()=>({}),classNames:()=>({})}),setup(e){const t=X(e,["prefixCls","title","class","items","onItemClick","vertical","wrap","rootClassName","styles","classNames","style"]);a.toRef(e,"class"),a.toRef(e,"prefixCls");const{getPrefixCls:n,direction:r}=G(),o=n("prompts",e.prefixCls),i=se("prompts"),[l,s,c]=Yc(o),d=a.computed(()=>N(o,i.value.className,e.class,e.rootClassName,s.value,c,{[`${o}-rtl`]:r.value==="rtl"})),f=a.computed(()=>N(`${o}-list`,i.value.classNames.list,e.classNames.list,{[`${o}-list-wrap`]:e.wrap},{[`${o}-list-vertical`]:e.vertical}));return()=>{var u;return l(a.createVNode("div",a.mergeProps(t,{class:d.value,style:{...typeof e.style=="object"?e.style:{},...typeof i.value.style=="object"?i.value.style:{}}}),[e.title&&a.createVNode(O.Typography.Title,{level:5,class:N(`${o}-title`,i.value.classNames.title,e.classNames.title),style:{...i.value.styles.title,...e.styles.title}},{default:()=>[e.title]}),a.createVNode("div",{class:f.value,style:{...i.value.styles.list,...e.styles.list}},[(u=e.items)==null?void 0:u.map((m,p)=>{const g=m.children&&m.children.length>0;return a.createVNode("div",{key:m.key||`key_${p}`,style:{...i.value.styles.item,...e.styles.item},class:N(`${o}-item`,i.value.classNames.item,e.classNames.item,{[`${o}-item-disabled`]:m.disabled,[`${o}-item-has-nest`]:g}),onClick:()=>{!g&&e.onItemClick&&e.onItemClick({data:m})}},[m.icon&&a.createVNode("div",{class:`${o}-icon`},[m.icon]),a.createVNode("div",{class:N(`${o}-content`,i.value.classNames.itemContent,e.classNames.itemContent),style:{...i.value.styles.itemContent,...e.styles.itemContent}},[m.label&&a.createVNode("h6",{class:`${o}-label`},[m.label]),m.description&&a.createVNode("p",{class:`${o}-desc`},[m.description]),g&&a.createVNode(_o,{class:`${o}-nested`,items:m.children,vertical:!0,onItemClick:e.onItemClick,classNames:{list:e.classNames.subList,item:e.classNames.subItem},styles:{list:e.styles.subList,item:e.styles.subItem}},null)])])})])]))}}}),Qc=e=>{const{componentCls:t,antCls:n}=e;return{[t]:{[`${n}-cascader-menus ${n}-cascader-menu`]:{height:"auto"},[`${t}-item`]:{"&-icon":{marginInlineEnd:e.paddingXXS},"&-extra":{marginInlineStart:e.padding}},[`&${t}-block`]:{[`${t}-item-extra`]:{marginInlineStart:"auto"}}}}},Jc=fe("Suggestion",e=>{const t=ee(e,{});return Qc(t)},()=>({}));function _c(e,t,n,r,o){const[i,l]=L([]),s=(p,g=i.value)=>{let h=a.toValue(e);for(let b=0;b<p-1;b+=1){const v=g[b],$=h.find(S=>S.value===v);if(!$)break;h=$.children||[]}return h},c=p=>p.map((g,h)=>{const v=s(h+1,p).find($=>$.value===g);return v==null?void 0:v.value}),d=p=>{const g=i.value.length||1,h=s(g),b=h.findIndex(S=>S.value===i.value[g-1]),v=h.length,$=h[(b+p+v)%v];l([...i.value.slice(0,g-1),$.value])},f=()=>{i.value.length>1&&l(i.value.slice(0,i.value.length-1))},u=()=>{const p=s(i.value.length+1);p.length&&l([...i.value,p[0].value])},m=mt(p=>{if(a.toValue(t))switch(console.log("e.key",p),p.key){case"ArrowDown":d(1),p.preventDefault();break;case"ArrowUp":d(-1),p.preventDefault();break;case"ArrowRight":a.toValue(n)?f():u(),p.preventDefault();break;case"ArrowLeft":a.toValue(n)?u():f(),p.preventDefault();break;case"Enter":s(i.value.length+1).length||r(c(i.value)),p.preventDefault();break;case"Escape":o(),p.preventDefault();break}});return a.watch(()=>a.toValue(t),()=>{a.toValue(t)&&l([a.toValue(e)[0].value])},{immediate:!0}),[i,m]}const ed=a.defineComponent({name:"AXSuggestion",__name:"Suggestion",props:a.mergeDefaults({prefixCls:null,className:null,rootClassName:null,style:null,children:{type:Function},open:{type:Boolean},onOpenChange:{type:Function},items:{type:Function},onSelect:{type:Function},block:{type:Boolean},styles:null,classNames:null},{open:!1}),setup(e){a.toRef(e,"prefixCls");const{direction:t,getPrefixCls:n}=G(),r=a.computed(()=>n("suggestion",e.prefixCls));`${r.value}`;const o=a.computed(()=>t.value==="rtl"),i=se("suggestion"),[l,s,c]=Jc(r),[d,f]=L(e.open),[u,m]=L(),p=x=>{var w;f(x),(w=e.onOpenChange)==null||w.call(e,x)},g=x=>{x===!1?p(!1):(m(x),p(!0))},h=()=>{p(!1)},b=a.computed(()=>typeof e.items=="function"?e.items(u.value):e.items),v=x=>{e.onSelect&&e.onSelect(x[x.length-1]),p(!1)},[$,S]=_c(b,d,o,v,h),C=a.computed(()=>{var x;return(x=e.children)==null?void 0:x.call(e,{onTrigger:g,onKeyDown:S})});return()=>l(a.createVNode(O.Cascader,{options:b.value,open:d.value,value:$.value,placement:o.value?"topRight":"topLeft",onDropdownVisibleChange:x=>{x||h()},class:N(e.rootClassName,r.value,s,c,{[`${r.value}-block`]:e.block}),onChange:v,dropdownMatchSelectWidth:e.block},{default:()=>a.createVNode("div",{class:N(r.value,i.value.className,e.rootClassName,e.className,`${r.value}-wrapper`,s.value,c),style:{...i.value.style,...e.style}},[C.value])}))}}),ea=Symbol("SenderHeaderContext"),In=a.shallowRef(),td=e=>{a.provide(ea,e),a.watch(e,()=>{In.value=a.unref(e),a.triggerRef(In)},{immediate:!0,deep:!0})},nd=()=>a.inject(ea,a.computed(()=>In.value||{})),rd=a.defineComponent({props:{value:ne()},setup(e,{slots:t}){return td(a.computed(()=>e.value)),()=>{var n;return(n=t.default)==null?void 0:n.call(t)}}}),ta=Symbol("ActionButtonContext"),Hn=a.shallowRef(),od=e=>{a.provide(ta,e),a.watch(e,()=>{Hn.value=a.unref(e),a.triggerRef(Hn)},{immediate:!0,deep:!0})},Vn=()=>a.inject(ta,a.computed(()=>Hn.value||{})),ad=a.defineComponent({props:{value:ne()},setup(e,{slots:t}){return od(a.computed(()=>e.value)),()=>{var n;return(n=t.default)==null?void 0:n.call(t)}}}),yt=a.defineComponent({name:"AXSenderActionButton",__name:"index",props:a.mergeDefaults({prefixCls:null,type:null,htmlType:null,shape:null,size:null,loading:null,disabled:null,ghost:null,block:null,danger:null,icon:null,href:null,target:null,title:null,onClick:null,onMousedown:null,action:null},{type:"text",disabled:void 0}),setup(e){const t=X(e,["action","type","disabled","onClick"]);a.toRef(e,"onClick"),a.toRef(e,"disabled");const n=a.useSlots(),r=Vn(),o=a.computed(()=>{var d;const s=r.value.disabled,c=(d=r.value)==null?void 0:d[`${e.action}Disabled`];return s??e.disabled??c}),i=a.computed(()=>r.value.prefixCls),l=a.computed(()=>{var s;return(s=r.value)==null?void 0:s[e.action]});return()=>a.createVNode(O.Button,a.mergeProps({type:e.type},t,{onClick:s=>{o.value||(l.value&&l.value(),e.onClick&&!Array.isArray(e.onClick)&&e.onClick(s))},class:N(i.value,{[`${i.value}-disabled`]:o.value})}),{icon:()=>n.default()})}}),id=a.defineComponent({name:"AXSenderClearButton",__name:"ClearButton",props:a.mergeDefaults({prefixCls:null,type:null,htmlType:null,shape:null,size:null,loading:null,disabled:null,ghost:null,block:null,danger:null,icon:null,href:null,target:null,title:null,onClick:null,onMousedown:null},{disabled:void 0}),setup(e){const t=X(e,["disabled"]);return()=>a.createVNode(yt,a.mergeProps({disabled:e.disabled},t,{action:"onClear"}),{default:()=>[a.createVNode(yn,null,null)]})}}),ld=a.defineComponent({name:"AXSenderStopLoading",__name:"StopLoading",props:{className:null},setup(e){const t=e;return()=>a.createVNode("svg",{color:"currentColor",viewBox:"0 0 1000 1000",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",class:t.className},[a.createVNode("title",null,[a.createTextVNode("Stop Loading")]),a.createVNode("rect",{fill:"currentColor",height:"250",rx:"24",ry:"24",width:"250",x:"375",y:"375"},null),a.createVNode("circle",{cx:"500",cy:"500",fill:"none",r:"450",stroke:"currentColor","stroke-width":"100",opacity:"0.45"},null),a.createVNode("circle",{cx:"500",cy:"500",fill:"none",r:"450",stroke:"currentColor","stroke-width":"100","stroke-dasharray":"600 9999999"},[a.createVNode("animateTransform",{attributeName:"transform",dur:"1s",from:"0 500 500",repeatCount:"indefinite",to:"360 500 500",type:"rotate"},null)])])}}),na=a.defineComponent({name:"AXSenderLoadingButton",__name:"LoadingButton",props:a.mergeDefaults({prefixCls:null,type:null,htmlType:null,shape:null,size:null,loading:null,disabled:null,ghost:null,block:null,danger:null,icon:null,href:null,target:null,title:null,onClick:null,onMousedown:null},{type:"primary",shape:"circle",icon:null,disabled:void 0}),setup(e){const t=X(e,["type","shape","icon","disabled"]),n=Vn(),{token:r}=O.theme.useToken();return()=>a.createVNode(yt,a.mergeProps({type:e.type,disabled:e.disabled,shape:e.shape},t,{style:{backgroundColor:"transparent",color:r.value.colorPrimary},class:N(`${n.value.prefixCls}-loading-button`),action:"onCancel"}),{default:()=>[a.createVNode(ld,{className:`${n.value.prefixCls}-loading-icon`},null)]})}}),ra=a.defineComponent({name:"AXSenderLoadingButton",__name:"SendButton",props:a.mergeDefaults({prefixCls:null,type:null,htmlType:null,shape:null,size:null,loading:null,disabled:null,ghost:null,block:null,danger:null,icon:null,href:null,target:null,title:null,onClick:null,onMousedown:null},{type:"primary",shape:"circle",disabled:void 0}),setup(e){const t=X(e,["type","shape","disabled"]);return()=>a.createVNode(yt,a.mergeProps({type:e.type,shape:e.shape,disabled:e.disabled},t,{action:"onSend"}),{default:()=>[a.createVNode(gn,null,null)]})}}),qe=1e3,Ue=4,Ct=140,St=250,oa=500,vt=.8,sd=a.defineComponent({name:"AXSenderRecordingIcon",__name:"RecordingIcon",props:{className:null},setup(e){const t=Ct/2;return()=>a.createVNode("svg",{color:"currentColor",viewBox:`0 0 ${qe} ${qe}`,xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",class:e.className},[a.createVNode("title",null,[a.createTextVNode("Speech Recording")]),Array.from({length:Ue}).map((n,r)=>{const o=(qe-Ct*Ue)/(Ue-1),i=r*(o+Ct),l=qe/2-St/2,s=qe/2-oa/2;return a.createVNode("rect",{fill:"currentColor",rx:t,ry:t,height:St,width:Ct,x:i,y:l,key:r},[a.createVNode("animate",{attributeName:"height",values:`${St}; ${oa}; ${St}`,keyTimes:"0; 0.5; 1",dur:`${vt}s`,begin:`${vt/Ue*r}s`,repeatCount:"indefinite"},null),a.createVNode("animate",{attributeName:"y",values:`${l}; ${s}; ${l}`,keyTimes:"0; 0.5; 1",dur:`${vt}s`,begin:`${vt/Ue*r}s`,repeatCount:"indefinite"},null)])})])}}),cd=a.defineComponent({name:"AXSenderSpeechButton",__name:"index",props:a.mergeDefaults({prefixCls:null,type:null,htmlType:null,shape:null,size:null,loading:null,disabled:null,ghost:null,block:null,danger:null,icon:null,href:null,target:null,title:null,onClick:null,onMousedown:null},{type:"text",disabled:void 0}),setup(e){const t=X(e,["type","disabled"]),n=Vn(),{token:r}=O.theme.useToken(),o=a.computed(()=>n.value.speechRecording),i=a.computed(()=>n.value.prefixCls),l=a.computed(()=>{let s;return o.value?s=a.createVNode(sd,{className:`${i.value}-recording-icon`},null):n.value.onSpeechDisabled?s=a.createVNode(pn,null,null):s=a.createVNode(bn,null,null),s});return()=>a.createVNode(yt,a.mergeProps({type:e.type,disabled:e.disabled},t,{style:{display:"flex",justifyContent:"center",alignItems:"center",color:r.value.colorPrimary},action:"onSpeech"}),{default:()=>[l.value]})}}),dd=e=>{const{componentCls:t,calc:n}=e,r=`${t}-header`;return{[t]:{[r]:{borderBottomWidth:e.lineWidth,borderBottomStyle:"solid",borderBottomColor:e.colorBorder,"&-header":{background:e.colorFillAlter,fontSize:e.fontSize,lineHeight:e.lineHeight,paddingBlock:n(e.paddingSM).sub(e.lineWidthBold).equal(),paddingInlineStart:e.padding,paddingInlineEnd:e.paddingXS,display:"flex",[`${r}-title`]:{flex:"auto"}},"&-content":{padding:e.padding},"&-motion":{transition:["height","border"].map(o=>`${o} ${e.motionDurationSlow}`).join(","),overflow:"hidden","&-enter-start, &-leave-active":{borderBottomColor:"transparent"},"&-hidden":{display:"none"}},"&-collapse-transition":{"&-enter-active":{transition:["max-height","padding-top","padding-bottom"].map(o=>`${o} ${e.motionDurationSlow} ${e.motionEaseInOut}`).join(",")},"&-leave-active":{transition:["max-height","padding-top","padding-bottom"].map(o=>`${o} ${e.motionDurationSlow} ${e.motionEaseInOut}`).join(",")}}}}}},ud=e=>{const{componentCls:t,padding:n,paddingSM:r,paddingXS:o,lineWidth:i,lineWidthBold:l,calc:s}=e;return{[t]:{position:"relative",width:"100%",boxSizing:"border-box",boxShadow:`${e.boxShadowTertiary}`,transition:`background ${e.motionDurationSlow}`,borderRadius:{_skip_check_:!0,value:s(e.borderRadius).mul(2).equal()},borderColor:e.colorBorder,borderWidth:0,borderStyle:"solid","&:after":{content:'""',position:"absolute",inset:0,pointerEvents:"none",transition:`border-color ${e.motionDurationSlow}`,borderRadius:{_skip_check_:!0,value:"inherit"},borderStyle:"inherit",borderColor:"inherit",borderWidth:i},"&:focus-within":{boxShadow:`${e.boxShadowSecondary}`,borderColor:e.colorPrimary,"&:after":{borderWidth:l}},"&-disabled":{background:e.colorBgContainerDisabled},[`&${t}-rtl`]:{direction:"rtl"},[`${t}-content`]:{display:"flex",gap:o,width:"100%",paddingBlock:r,paddingInlineStart:n,paddingInlineEnd:r,boxSizing:"border-box",alignItems:"flex-end"},[`${t}-prefix`]:{flex:"none"},[`${t}-input`]:{padding:0,borderRadius:0,flex:"auto",alignSelf:"center",minHeight:"auto"},[`${t}-actions-list`]:{flex:"none",display:"flex","&-presets":{gap:e.paddingXS}},[`${t}-actions-btn`]:{"&-disabled":{opacity:.45},"&-loading-button":{padding:0,border:0},"&-loading-icon":{height:e.controlHeight,width:e.controlHeight,verticalAlign:"top"},"&-recording-icon":{height:"1.2em",width:"1.2em",verticalAlign:"top"}}}}},fd=fe("Sender",e=>{const{paddingXS:t,calc:n}=e,r=ee(e,{SenderContentMaxWidth:`calc(100% - ${Z(n(t).add(32).equal())})`});return[ud(r),dd(r)]},()=>({}));let xt;!xt&&typeof window<"u"&&(xt=window.SpeechRecognition||window.webkitSpeechRecognition);function hd(e,t){const n=e,r=a.computed(()=>{const h=a.toValue(t);return typeof h=="object"?{controlledRecording:h.recording,onControlledRecordingChange:h.onRecordingChange,speechInControlled:typeof h.recording=="boolean"}:{controlledRecording:void 0,onControlledRecordingChange:void 0,speechInControlled:!1}}),o=a.computed(()=>r.value.controlledRecording),i=r.value.onControlledRecordingChange,l=r.value.speechInControlled,s=a.ref(null);a.watchEffect(()=>{if(typeof navigator<"u"&&"permissions"in navigator){let h=null;navigator.permissions.query({name:"microphone"}).then(b=>{s.value=b.state,b.onchange=function(){s.value=this.state},h=b}),a.onWatcherCleanup(()=>{h&&(h.onchange=null)})}});const c=a.computed(()=>xt&&s.value!=="denied"),d=a.ref(null),[f,u]=Jo(!1,{value:o}),m=a.ref(!1),p=()=>{if(c.value&&!d.value){const h=new xt;h.onstart=()=>{u(!0)},h.onend=()=>{u(!1)},h.onresult=b=>{var v,$,S;if(!m.value){const C=(S=($=(v=b.results)==null?void 0:v[0])==null?void 0:$[0])==null?void 0:S.transcript;n(C)}m.value=!1},d.value=h}};return{speechPermission:c,triggerSpeech:h=>{h&&!f.value||(m.value=h,l?i==null||i(!f.value):(p(),d.value&&(f.value?(d.value.stop(),i==null||i(!1)):(d.value.start(),i==null||i(!0)))))},recording:f}}function md(e,t){for(var n=e,r=0;r<t.length;r+=1){if(n==null)return;n=n[t[r]]}return n}const gd=a.defineComponent({name:"AXSender",__name:"Sender",props:a.mergeDefaults({onKeyPress:{type:Function},prefixCls:null,defaultValue:null,value:null,loading:{type:Boolean},placeholder:null,readOnly:{type:Boolean},submitType:{type:[String,Boolean]},disabled:{type:Boolean},onSubmit:{type:Function},onChange:{type:Function},onCancel:null,onKeyDown:{type:Function},onPaste:{type:Function},onPasteFile:{type:Function},components:null,styles:null,rootClassName:null,classNames:null,style:null,className:null,actions:{type:Function},allowSpeech:null,prefix:null,header:null},{styles:()=>({}),classNames:()=>({}),submitType:"enter",disabled:void 0}),emits:["update:value"],setup(e,{expose:t,emit:n}){const r=X(e,["prefixCls","styles","classNames","className","rootClassName","style","defaultValue","value","placeholder","readOnly","submitType","onSubmit","loading","components","onCancel","onChange","actions","onKeyPress","onKeyDown","disabled","allowSpeech","prefix","header","onPaste","onPasteFile"]);a.toRef(e,"prefixCls");function o(E,z,le){return md(E,z)||le}const i=n,l=a.useSlots(),{direction:s,getPrefixCls:c}=G(),d=a.computed(()=>c("sender",e.prefixCls)),f=a.ref(null),u=a.ref(null),m=se("sender"),p=a.computed(()=>`${d.value}-input`),[g,h,b]=fd(d.value),v=a.computed(()=>N(d.value,m.value.className,e.className,e.rootClassName,h.value,b,{[`${d.value}-rtl`]:s.value==="rtl",[`${d.value}-disabled`]:e.disabled})),$=a.computed(()=>`${d.value}-actions-btn`),S=a.computed(()=>`${d.value}-actions-list`),C=a.ref(e.value??e.defaultValue??""),x=E=>{C.value=E};a.watch(()=>e.value,()=>{x(e.value)});const w=(E,z)=>{x(E),i("update:value",E),e.onChange&&e.onChange(E,z)},{speechPermission:y,triggerSpeech:T,recording:P}=hd(E=>{w(`${C.value} ${E}`)},()=>e.allowSpeech),A=o(e.components,["input"],O.Input.TextArea),M=a.computed(()=>Me(r,{attr:!0,aria:!0,data:!0})),W=a.computed(()=>({...M.value,ref:u})),I=()=>{C.value&&e.onSubmit&&!e.loading&&e.onSubmit(C.value)},B=()=>{w("")},k=a.ref(!1),J=()=>{k.value=!0},Ie=()=>{k.value=!1},Un=E=>{const z=E.key==="Enter"&&!k.value;switch(e.submitType){case"enter":z&&!E.shiftKey&&(E.preventDefault(),I());break;case"shiftEnter":z&&E.shiftKey&&(E.preventDefault(),I());break}e.onKeyPress&&e.onKeyPress(E)},xe=E=>{var le,Qe;const z=(le=E.clipboardData)==null?void 0:le.files[0];z&&e.onPasteFile&&(e.onPasteFile(z),E.preventDefault()),(Qe=e.onPaste)==null||Qe.call(e,E)},He=E=>{var z,le;E.target!==((z=f.value)==null?void 0:z.querySelector(`.${p.value}`))&&E.preventDefault(),(le=u.value)==null||le.focus()},me=a.computed(()=>{let E=a.createVNode(O.Flex,{class:`${S.value}-presets`},{default:()=>[e.allowSpeech&&a.createVNode(cd,null,null),e.loading?a.createVNode(na,null,null):a.createVNode(ra,null,null)]});const z={components:{SendButton:ra,ClearButton:id,LoadingButton:na}};return l.actions?E=l.actions({ori:E,info:z}):typeof e.actions=="function"?E=e.actions(E,z):e.actions&&(E=e.actions),E}),Tt=a.computed(()=>l.header?l.header():e.header),Ye=a.computed(()=>l.prefix?l.prefix():e.prefix);return t({nativeElement:f.value,focus:E=>{var z;return(z=u.value)==null?void 0:z.focus(E)},blur:()=>{var E;return(E=u.value)==null?void 0:E.blur()}}),()=>g(a.createVNode("div",{ref:f,class:v.value,style:{...m.value.style,...e.style}},[Tt.value&&a.createVNode(rd,{value:{prefixCls:d.value}},{default:()=>[Tt.value]}),a.createVNode("div",{class:`${d.value}-content`,onMousedown:He},[Ye.value&&a.createVNode("div",{class:N(`${d.value}-prefix`,m.value.classNames.prefix,e.classNames.prefix),style:{...m.value.styles.prefix,...e.styles.prefix}},[Ye.value]),a.createVNode(A,a.mergeProps(W.value,{disabled:e.disabled,style:{...m.value.styles.input,...e.styles.input},class:N(p.value,m.value.classNames.input,e.classNames.input),autoSize:{maxRows:8},value:C.value,onChange:E=>{w(E.target.value,E),T(!0)},onPressEnter:Un,onCompositionstart:J,onCompositionend:Ie,onKeydown:e.onKeyDown,placeholder:e.placeholder,onPaste:xe,bordered:!1,readOnly:e.readOnly}),null),a.createVNode("div",{class:N(S.value,m.value.classNames.actions,e.classNames.actions),style:{...m.value.styles.actions,...e.styles.actions}},[a.createVNode(ad,{value:{prefixCls:$.value,onSend:I,onSendDisabled:!C.value,onClear:B,onClearDisabled:!C.value,onCancel:e.onCancel,onCancelDisabled:!e.loading,onSpeech:()=>T(!1),onSpeechDisabled:!y.value,speechRecording:P.value,disabled:e.disabled}},{default:()=>[me.value]})])])]))}}),pd=a.defineComponent({name:"AXCollapseTransition",__name:"CollapseTransition",props:{prefixCls:null},setup(e){const t=e,n=a.computed(()=>t.prefixCls+"-collapse-transition"),r={beforeEnter(o){o.dataset||(o.dataset={}),o.dataset.oldPaddingTop=o.style.paddingTop,o.dataset.oldPaddingBottom=o.style.paddingBottom,o.style.maxHeight=0,o.style.paddingTop=0,o.style.paddingBottom=0},enter(o){o.dataset.oldOverflow=o.style.overflow,o.scrollHeight!==0?(o.style.maxHeight=`${o.scrollHeight}px`,o.style.paddingTop=o.dataset.oldPaddingTop,o.style.paddingBottom=o.dataset.oldPaddingBottom):(o.style.maxHeight=`${o.dataset.oldMaxHeight||999}px`,o.style.paddingTop=o.dataset.oldPaddingTop,o.style.paddingBottom=o.dataset.oldPaddingBottom),o.style.overflow="hidden"},afterEnter(o){o.style.maxHeight="",o.style.overflow=o.dataset.oldOverflow},beforeLeave(o){o.dataset||(o.dataset={}),o.dataset.oldMaxHeight=o.scrollHeight,o.dataset.oldPaddingTop=o.style.paddingTop,o.dataset.oldPaddingBottom=o.style.paddingBottom,o.dataset.oldOverflow=o.style.overflow,o.style.overflow="hidden",o.style.maxHeight=`${o.scrollHeight}px`},leave(o){o.scrollHeight!==0&&(o.style.maxHeight=0,o.style.paddingTop=0,o.style.paddingBottom=0)},afterLeave(o){o.style.maxHeight="",o.style.overflow=o.dataset.oldOverflow,o.style.paddingTop=o.dataset.oldPaddingTop,o.style.paddingBottom=o.dataset.oldPaddingBottom}};return(o,i)=>(a.openBlock(),a.createBlock(a.Transition,a.mergeProps({name:n.value},a.toHandlers(r)),{default:a.withCtx(()=>[a.renderSlot(o.$slots,"default")]),_:3},16,["name"]))}}),bd=a.defineComponent({name:"AXSenderHeader",inheritAttrs:!1,__name:"SenderHeader",props:a.mergeDefaults({forceRender:{type:Boolean},open:{type:Boolean},onOpenChange:{type:Function},title:null,children:null,className:null,style:null,classNames:null,styles:null,closable:{type:Boolean}},{classNames:()=>({}),styles:()=>({})}),setup(e){a.toRef(e,"classNames");const t=a.useSlots(),n=nd(),r=a.computed(()=>`${n.value.prefixCls}-header`),o=a.useAttrs();return()=>a.createVNode(pd,{prefixCls:r.value},{default:()=>{var i;return[e.open&&a.createVNode("div",a.mergeProps(o,{class:N(r.value,e.className),style:{...e.style}}),[(e.closable!==!1||e.title)&&a.createVNode("div",{class:N(`${r.value}-header`,e.classNames.header),style:{...e.styles.header}},[a.createVNode("div",{class:`${r.value}-title`},[e.title]),e.closable!==!1&&a.createVNode("div",{class:`${r.value}-close`},[a.createVNode(O.Button,{type:"text",icon:a.createVNode(Sn,null,null),size:"small",onClick:()=>{var l;(l=e.onOpenChange)==null||l.call(e,!e.open)}},null)])]),t.default&&a.createVNode("div",{class:N(`${r.value}-content`,e.classNames.content),style:{...e.styles.content}},[(i=t.default)==null?void 0:i.call(t)])])]}})}}),yd=Object.assign(gd,{Header:bd}),aa=Symbol("AttachmentContext"),Bn=a.shallowRef(),Cd=e=>{a.provide(aa,e),a.watch(e,()=>{Bn.value=a.unref(e),a.triggerRef(Bn)},{immediate:!0,deep:!0})},wt=()=>a.inject(aa,a.computed(()=>Bn.value||{})),Sd=a.defineComponent({inheritAttrs:!1,props:{value:ne()},setup(e,{slots:t}){return Cd(a.computed(()=>e.value)),()=>{var n;return(n=t.default)==null?void 0:n.call(t)}}}),vd=a.defineComponent({name:"AXAttachmentsPlaceholderUploader",__name:"PlaceholderUploader",props:a.mergeDefaults({prefixCls:null,placeholder:null,upload:null,className:null,style:null},{placeholder:()=>({})}),setup(e,{expose:t}){const n=`${e.prefixCls}-placeholder`,r=a.computed(()=>e.placeholder||{}),o=a.useTemplateRef("upload-dragger"),i=wt(),[l,s]=L(!1),c=()=>{s(!0)},d=m=>{m.currentTarget.contains(m.relatedTarget)||s(!1)},f=()=>{s(!1)};t({nativeElement:o});const u=a.computed(()=>a.isVNode(e.placeholder)?e.placeholder:a.createVNode(O.Flex,{align:"center",justify:"center",vertical:!0,class:`${n}-inner`},{default:()=>[a.createVNode(O.Typography.Text,{class:`${n}-icon`},{default:()=>[r.value.icon]}),a.createVNode(O.Typography.Title,{class:`${n}-title`,level:5},{default:()=>[r.value.title]}),a.createVNode(O.Typography.Text,{class:`${n}-description`,type:"secondary"},{default:()=>[r.value.description]})]}));return()=>a.createVNode("div",{class:N(n,{[`${n}-drag-in`]:l.value,[`${n}-disabled`]:i.value.disabled},e.className),onDragenter:c,onDragleave:d,onDrop:f,"aria-hidden":i.value.disabled,style:e.style},[a.createVNode(O.Upload.Dragger,a.mergeProps({showUploadList:!1},e.upload,{ref:"upload-dragger",style:{padding:0,border:0,background:"transparent"}}),{default:()=>[u.value]})])}}),ia=a.defineComponent({name:"AXAttachmentsDropArea",__name:"DropArea",props:{prefixCls:null,className:null,getDropContainer:{type:Function},children:null},setup(e){const t=wt(),[n,r]=L(),[o,i]=L(null);a.watch(()=>e.getDropContainer,()=>{var d;const c=(d=e.getDropContainer)==null?void 0:d.call(e);n.value!==c&&r(c)}),a.watch(()=>!!n.value,()=>{if(n.value){const c=()=>{i(!0)},d=m=>{m.preventDefault()},f=m=>{m.relatedTarget||i(!1)},u=m=>{i(!1),m.preventDefault()};document.addEventListener("dragenter",c),document.addEventListener("dragover",d),document.addEventListener("dragleave",f),document.addEventListener("drop",u),a.onWatcherCleanup(()=>{document.removeEventListener("dragenter",c),document.removeEventListener("dragover",d),document.removeEventListener("dragleave",f),document.removeEventListener("drop",u)})}});const l=a.computed(()=>e.getDropContainer&&n.value&&!t.value.disabled),s=`${e.prefixCls}-drop-area`;return()=>l.value?a.createVNode(a.Teleport,{to:n.value},{default:()=>[a.createVNode("div",{class:N(s,e.className,{[`${s}-on-body`]:n.value.tagName==="BODY"}),style:{display:o.value?"block":"none"}},[e.children])]}):null}}),la=a.defineComponent({name:"AXAttachmentsSilentUploader",__name:"SilentUploader",props:{children:null,upload:null,rootClassName:null},setup(e,{expose:t}){const n=a.useTemplateRef("upload");return t({nativeElement:n}),()=>a.createVNode(O.Upload,a.mergeProps(e.upload,{showUploadList:!1,ref:"upload"}),{default:()=>[e.children]})}}),sa=(e,t)=>{const n=e.__vccOpts||e;for(const[r,o]of t)n[r]=o;return n},xd={},wd={width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"};function $d(e,t){return a.openBlock(),a.createElementBlock("svg",wd,t[0]||(t[0]=[a.createElementVNode("title",null,"audio",-1),a.createElementVNode("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},[a.createElementVNode("path",{d:"M14.1178571,4.0125 C14.225,4.11964286 14.2857143,4.26428571 14.2857143,4.41607143 L14.2857143,15.4285714 C14.2857143,15.7446429 14.0303571,16 13.7142857,16 L2.28571429,16 C1.96964286,16 1.71428571,15.7446429 1.71428571,15.4285714 L1.71428571,0.571428571 C1.71428571,0.255357143 1.96964286,0 2.28571429,0 L9.86964286,0 C10.0214286,0 10.1678571,0.0607142857 10.275,0.167857143 L14.1178571,4.0125 Z M10.7315824,7.11216117 C10.7428131,7.15148751 10.7485063,7.19218979 10.7485063,7.23309113 L10.7485063,8.07742614 C10.7484199,8.27364959 10.6183424,8.44607275 10.4296853,8.50003683 L8.32984514,9.09986306 L8.32984514,11.7071803 C8.32986605,12.5367078 7.67249692,13.217028 6.84345686,13.2454634 L6.79068592,13.2463395 C6.12766108,13.2463395 5.53916361,12.8217001 5.33010655,12.1924966 C5.1210495,11.563293 5.33842118,10.8709227 5.86959669,10.4741173 C6.40077221,10.0773119 7.12636292,10.0652587 7.67042486,10.4442027 L7.67020842,7.74937024 L7.68449368,7.74937024 C7.72405122,7.59919041 7.83988806,7.48101083 7.98924584,7.4384546 L10.1880418,6.81004755 C10.42156,6.74340323 10.6648954,6.87865515 10.7315824,7.11216117 Z M9.60714286,1.31785714 L12.9678571,4.67857143 L9.60714286,4.67857143 L9.60714286,1.31785714 Z",fill:"currentColor"})],-1)]))}const Nd=sa(xd,[["render",$d]]),Td={},Pd={width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"};function Od(e,t){return a.openBlock(),a.createElementBlock("svg",Pd,t[0]||(t[0]=[a.createElementVNode("title",null,"video",-1),a.createElementVNode("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},[a.createElementVNode("path",{d:"M14.1178571,4.0125 C14.225,4.11964286 14.2857143,4.26428571 14.2857143,4.41607143 L14.2857143,15.4285714 C14.2857143,15.7446429 14.0303571,16 13.7142857,16 L2.28571429,16 C1.96964286,16 1.71428571,15.7446429 1.71428571,15.4285714 L1.71428571,0.571428571 C1.71428571,0.255357143 1.96964286,0 2.28571429,0 L9.86964286,0 C10.0214286,0 10.1678571,0.0607142857 10.275,0.167857143 L14.1178571,4.0125 Z M12.9678571,4.67857143 L9.60714286,1.31785714 L9.60714286,4.67857143 L12.9678571,4.67857143 Z M10.5379461,10.3101106 L6.68957555,13.0059749 C6.59910784,13.0693494 6.47439406,13.0473861 6.41101953,12.9569184 C6.3874624,12.9232903 6.37482581,12.8832269 6.37482581,12.8421686 L6.37482581,7.45043999 C6.37482581,7.33998304 6.46436886,7.25043999 6.57482581,7.25043999 C6.61588409,7.25043999 6.65594753,7.26307658 6.68957555,7.28663371 L10.5379461,9.98249803 C10.6284138,10.0458726 10.6503772,10.1705863 10.5870027,10.2610541 C10.5736331,10.2801392 10.5570312,10.2967411 10.5379461,10.3101106 Z",fill:"currentColor"})],-1)]))}const Ed=sa(Td,[["render",Od]]),Ad=e=>e.indexOf("image/")===0,$t=200;function Rd(e){return new Promise(t=>{if(!e||!e.type||!Ad(e.type)){t("");return}const n=new Image;if(n.onload=()=>{const{width:r,height:o}=n,i=r/o,l=i>1?$t:$t*i,s=i>1?$t/i:$t,c=document.createElement("canvas");c.width=l,c.height=s,c.style.cssText=`position: fixed; left: 0; top: 0; width: ${l}px; height: ${s}px; z-index: 9999; display: none;`,document.body.appendChild(c),c.getContext("2d").drawImage(n,0,0,l,s);const f=c.toDataURL();document.body.removeChild(c),window.URL.revokeObjectURL(n.src),t(f)},n.crossOrigin="anonymous",e.type.startsWith("image/svg+xml")){const r=new FileReader;r.onload=()=>{r.result&&typeof r.result=="string"&&(n.src=r.result)},r.readAsDataURL(e)}else if(e.type.startsWith("image/gif")){const r=new FileReader;r.onload=()=>{r.result&&t(r.result)},r.readAsDataURL(e)}else n.src=window.URL.createObjectURL(e)})}function Ke(e){"@babel/helpers - typeof";return Ke=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ke(e)}function Md(e,t){if(Ke(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Ke(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Id(e){var t=Md(e,"string");return Ke(t)=="symbol"?t:t+""}function K(e,t,n){return(t=Id(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const F=Math.round;function Ln(e,t){const n=e.replace(/^[^(]*\((.*)/,"$1").replace(/\).*/,"").match(/\d*\.?\d+%?/g)||[],r=n.map(o=>parseFloat(o));for(let o=0;o<3;o+=1)r[o]=t(r[o]||0,n[o]||"",o);return n[3]?r[3]=n[3].includes("%")?r[3]/100:r[3]:r[3]=1,r}const ca=(e,t,n)=>n===0?e:e/100;function Ze(e,t){const n=t||255;return e>n?n:e<0?0:e}class jn{constructor(t){K(this,"isValid",!0),K(this,"r",0),K(this,"g",0),K(this,"b",0),K(this,"a",1),K(this,"_h",void 0),K(this,"_s",void 0),K(this,"_l",void 0),K(this,"_v",void 0),K(this,"_max",void 0),K(this,"_min",void 0),K(this,"_brightness",void 0);function n(r){return r[0]in t&&r[1]in t&&r[2]in t}if(t)if(typeof t=="string"){let o=function(i){return r.startsWith(i)};const r=t.trim();/^#?[A-F\d]{3,8}$/i.test(r)?this.fromHexString(r):o("rgb")?this.fromRgbString(r):o("hsl")?this.fromHslString(r):(o("hsv")||o("hsb"))&&this.fromHsvString(r)}else if(t instanceof jn)this.r=t.r,this.g=t.g,this.b=t.b,this.a=t.a,this._h=t._h,this._s=t._s,this._l=t._l,this._v=t._v;else if(n("rgb"))this.r=Ze(t.r),this.g=Ze(t.g),this.b=Ze(t.b),this.a=typeof t.a=="number"?Ze(t.a,1):1;else if(n("hsl"))this.fromHsl(t);else if(n("hsv"))this.fromHsv(t);else throw new Error("@ant-design/fast-color: unsupported input "+JSON.stringify(t))}setR(t){return this._sc("r",t)}setG(t){return this._sc("g",t)}setB(t){return this._sc("b",t)}setA(t){return this._sc("a",t,1)}setHue(t){const n=this.toHsv();return n.h=t,this._c(n)}getLuminance(){function t(i){const l=i/255;return l<=.03928?l/12.92:Math.pow((l+.055)/1.055,2.4)}const n=t(this.r),r=t(this.g),o=t(this.b);return .2126*n+.7152*r+.0722*o}getHue(){if(typeof this._h>"u"){const t=this.getMax()-this.getMin();t===0?this._h=0:this._h=F(60*(this.r===this.getMax()?(this.g-this.b)/t+(this.g<this.b?6:0):this.g===this.getMax()?(this.b-this.r)/t+2:(this.r-this.g)/t+4))}return this._h}getSaturation(){if(typeof this._s>"u"){const t=this.getMax()-this.getMin();t===0?this._s=0:this._s=t/this.getMax()}return this._s}getLightness(){return typeof this._l>"u"&&(this._l=(this.getMax()+this.getMin())/510),this._l}getValue(){return typeof this._v>"u"&&(this._v=this.getMax()/255),this._v}getBrightness(){return typeof this._brightness>"u"&&(this._brightness=(this.r*299+this.g*587+this.b*114)/1e3),this._brightness}darken(t=10){const n=this.getHue(),r=this.getSaturation();let o=this.getLightness()-t/100;return o<0&&(o=0),this._c({h:n,s:r,l:o,a:this.a})}lighten(t=10){const n=this.getHue(),r=this.getSaturation();let o=this.getLightness()+t/100;return o>1&&(o=1),this._c({h:n,s:r,l:o,a:this.a})}mix(t,n=50){const r=this._c(t),o=n/100,i=s=>(r[s]-this[s])*o+this[s],l={r:F(i("r")),g:F(i("g")),b:F(i("b")),a:F(i("a")*100)/100};return this._c(l)}tint(t=10){return this.mix({r:255,g:255,b:255,a:1},t)}shade(t=10){return this.mix({r:0,g:0,b:0,a:1},t)}onBackground(t){const n=this._c(t),r=this.a+n.a*(1-this.a),o=i=>F((this[i]*this.a+n[i]*n.a*(1-this.a))/r);return this._c({r:o("r"),g:o("g"),b:o("b"),a:r})}isDark(){return this.getBrightness()<128}isLight(){return this.getBrightness()>=128}equals(t){return this.r===t.r&&this.g===t.g&&this.b===t.b&&this.a===t.a}clone(){return this._c(this)}toHexString(){let t="#";const n=(this.r||0).toString(16);t+=n.length===2?n:"0"+n;const r=(this.g||0).toString(16);t+=r.length===2?r:"0"+r;const o=(this.b||0).toString(16);if(t+=o.length===2?o:"0"+o,typeof this.a=="number"&&this.a>=0&&this.a<1){const i=F(this.a*255).toString(16);t+=i.length===2?i:"0"+i}return t}toHsl(){return{h:this.getHue(),s:this.getSaturation(),l:this.getLightness(),a:this.a}}toHslString(){const t=this.getHue(),n=F(this.getSaturation()*100),r=F(this.getLightness()*100);return this.a!==1?`hsla(${t},${n}%,${r}%,${this.a})`:`hsl(${t},${n}%,${r}%)`}toHsv(){return{h:this.getHue(),s:this.getSaturation(),v:this.getValue(),a:this.a}}toRgb(){return{r:this.r,g:this.g,b:this.b,a:this.a}}toRgbString(){return this.a!==1?`rgba(${this.r},${this.g},${this.b},${this.a})`:`rgb(${this.r},${this.g},${this.b})`}toString(){return this.toRgbString()}_sc(t,n,r){const o=this.clone();return o[t]=Ze(n,r),o}_c(t){return new this.constructor(t)}getMax(){return typeof this._max>"u"&&(this._max=Math.max(this.r,this.g,this.b)),this._max}getMin(){return typeof this._min>"u"&&(this._min=Math.min(this.r,this.g,this.b)),this._min}fromHexString(t){const n=t.replace("#","");function r(o,i){return parseInt(n[o]+n[i||o],16)}n.length<6?(this.r=r(0),this.g=r(1),this.b=r(2),this.a=n[3]?r(3)/255:1):(this.r=r(0,1),this.g=r(2,3),this.b=r(4,5),this.a=n[6]?r(6,7)/255:1)}fromHsl({h:t,s:n,l:r,a:o}){if(this._h=t%360,this._s=n,this._l=r,this.a=typeof o=="number"?o:1,n<=0){const m=F(r*255);this.r=m,this.g=m,this.b=m}let i=0,l=0,s=0;const c=t/60,d=(1-Math.abs(2*r-1))*n,f=d*(1-Math.abs(c%2-1));c>=0&&c<1?(i=d,l=f):c>=1&&c<2?(i=f,l=d):c>=2&&c<3?(l=d,s=f):c>=3&&c<4?(l=f,s=d):c>=4&&c<5?(i=f,s=d):c>=5&&c<6&&(i=d,s=f);const u=r-d/2;this.r=F((i+u)*255),this.g=F((l+u)*255),this.b=F((s+u)*255)}fromHsv({h:t,s:n,v:r,a:o}){this._h=t%360,this._s=n,this._v=r,this.a=typeof o=="number"?o:1;const i=F(r*255);if(this.r=i,this.g=i,this.b=i,n<=0)return;const l=t/60,s=Math.floor(l),c=l-s,d=F(r*(1-n)*255),f=F(r*(1-n*c)*255),u=F(r*(1-n*(1-c))*255);switch(s){case 0:this.g=u,this.b=d;break;case 1:this.r=f,this.b=d;break;case 2:this.r=d,this.b=u;break;case 3:this.r=d,this.g=f;break;case 4:this.r=u,this.g=d;break;case 5:default:this.g=d,this.b=f;break}}fromHsvString(t){const n=Ln(t,ca);this.fromHsv({h:n[0],s:n[1],v:n[2],a:n[3]})}fromHslString(t){const n=Ln(t,ca);this.fromHsl({h:n[0],s:n[1],l:n[2],a:n[3]})}fromRgbString(t){const n=Ln(t,(r,o)=>o.includes("%")?F(r/100*255):r);this.r=n[0],this.g=n[1],this.b=n[2],this.a=n[3]}}const Hd=e=>{const{componentCls:t,calc:n}=e,r=`${t}-list-card`,o=n(e.fontSize).mul(e.lineHeight).mul(2).add(e.paddingSM).add(e.paddingSM).equal();return{[r]:{borderRadius:e.borderRadius,position:"relative",background:e.colorFillContent,borderWidth:e.lineWidth,borderStyle:"solid",borderColor:"transparent",flex:"none",[`${r}-name,${r}-desc`]:{display:"flex",flexWrap:"nowrap",maxWidth:"100%"},[`${r}-ellipsis-prefix`]:{flex:"0 1 auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},[`${r}-ellipsis-suffix`]:{flex:"none"},"&-type-overview":{padding:n(e.paddingSM).sub(e.lineWidth).equal(),paddingInlineStart:n(e.padding).add(e.lineWidth).equal(),display:"flex",flexWrap:"nowrap",gap:e.paddingXS,alignItems:"flex-start",width:236,[`${r}-icon`]:{fontSize:n(e.fontSizeLG).mul(2).equal(),lineHeight:1,paddingTop:n(e.paddingXXS).mul(1.5).equal(),flex:"none"},[`${r}-content`]:{flex:"auto",minWidth:0,display:"flex",flexDirection:"column",alignItems:"stretch"},[`${r}-desc`]:{color:e.colorTextTertiary}},"&-type-preview":{width:o,height:o,lineHeight:1,[`&:not(${r}-status-error)`]:{border:0},img:{width:"100%",height:"100%",verticalAlign:"top",objectFit:"cover",borderRadius:"inherit"},[`${r}-img-mask`]:{position:"absolute",inset:0,display:"flex",justifyContent:"center",alignItems:"center",background:`rgba(0, 0, 0, ${e.opacityLoading})`,borderRadius:"inherit"},[`&${r}-status-error`]:{[`img, ${r}-img-mask`]:{borderRadius:n(e.borderRadius).sub(e.lineWidth).equal()},[`${r}-desc`]:{paddingInline:e.paddingXXS}},[`${r}-progress`]:{}},[`${r}-remove`]:{position:"absolute",top:0,insetInlineEnd:0,border:0,padding:e.paddingXXS,background:"transparent",lineHeight:1,transform:"translate(50%, -50%)",fontSize:e.fontSize,cursor:"pointer",opacity:e.opacityLoading,display:"none","&:dir(rtl)":{transform:"translate(-50%, -50%)"},"&:hover":{opacity:1},"&:active":{opacity:e.opacityLoading}},[`&:hover ${r}-remove`]:{display:"block"},"&-status-error":{borderColor:e.colorError,[`${r}-desc`]:{color:e.colorError}},"&-motion":{overflow:"hidden",transition:["opacity","width","margin","padding"].map(i=>`${i} ${e.motionDurationSlow}`).join(","),[`${r}-remove`]:{display:"none !important"},"&-appear-start":{width:0,transition:"none"},"&-leave-active":{opacity:0,width:0,paddingInline:0,borderInlineWidth:0,marginInlineEnd:n(e.paddingSM).mul(-1).equal()}}}}},zn={"&, *":{boxSizing:"border-box"}},Vd=e=>{const{componentCls:t,calc:n,antCls:r}=e,o=`${t}-drop-area`,i=`${t}-placeholder`;return{[o]:{position:"absolute",inset:0,zIndex:e.zIndexPopupBase,...zn,"&-on-body":{position:"fixed",inset:0},"&-hide-placement":{[`${i}-inner`]:{display:"none"}},[i]:{padding:0}},"&":{[i]:{height:"100%",borderRadius:e.borderRadius,borderWidth:e.lineWidthBold,borderStyle:"dashed",borderColor:"transparent",padding:e.padding,position:"relative",backdropFilter:"blur(10px)",...zn,[`${r}-upload-wrapper ${r}-upload${r}-upload-btn`]:{padding:0},[`&${i}-drag-in`]:{borderColor:e.colorPrimaryHover},[`&${i}-disabled`]:{opacity:.25,pointerEvents:"none"},[`${i}-inner`]:{gap:n(e.paddingXXS).div(2).equal()},[`${i}-icon`]:{fontSize:e.fontSizeHeading2,lineHeight:1},[`${i}-title${i}-title`]:{margin:0,fontSize:e.fontSize,lineHeight:e.lineHeight},[`${i}-description`]:{}}}}},Bd=e=>{const{componentCls:t,calc:n}=e,r=`${t}-list`,o=n(e.fontSize).mul(e.lineHeight).mul(2).add(e.paddingSM).add(e.paddingSM).equal();return{[t]:{position:"relative",width:"100%",...zn,[r]:{display:"flex",flexWrap:"wrap",gap:e.paddingSM,fontSize:e.fontSize,lineHeight:e.lineHeight,color:e.colorText,paddingBlock:e.paddingSM,paddingInline:e.padding,width:"100%",background:e.colorBgContainer,scrollbarWidth:"none","-ms-overflow-style":"none","&::-webkit-scrollbar":{display:"none"},"&-overflow-scrollX, &-overflow-scrollY":{"&:before, &:after":{content:'""',position:"absolute",opacity:0,transition:`opacity ${e.motionDurationSlow}`,zIndex:1}},"&-overflow-ping-start:before":{opacity:1},"&-overflow-ping-end:after":{opacity:1},"&-overflow-scrollX":{overflowX:"auto",overflowY:"hidden",flexWrap:"nowrap","&:before, &:after":{insetBlock:0,width:8},"&:before":{insetInlineStart:0,background:"linear-gradient(to right, rgba(0,0,0,0.06), rgba(0,0,0,0));"},"&:after":{insetInlineEnd:0,background:"linear-gradient(to left, rgba(0,0,0,0.06), rgba(0,0,0,0));"},"&:dir(rtl)":{"&:before":{background:"linear-gradient(to left, rgba(0,0,0,0.06), rgba(0,0,0,0));"},"&:after":{background:"linear-gradient(to right, rgba(0,0,0,0.06), rgba(0,0,0,0));"}}},"&-overflow-scrollY":{overflowX:"hidden",overflowY:"auto",maxHeight:n(o).mul(3).equal(),"&:before, &:after":{insetInline:0,height:8},"&:before":{insetBlockStart:0,background:"linear-gradient(to bottom, rgba(0,0,0,0.06), rgba(0,0,0,0));"},"&:after":{insetBlockEnd:0,background:"linear-gradient(to top, rgba(0,0,0,0.06), rgba(0,0,0,0));"}},"&-upload-btn":{width:o,height:o,fontSize:e.fontSizeHeading2,color:"#999"},"&-prev-btn, &-next-btn":{position:"absolute",top:"50%",transform:"translateY(-50%)",boxShadow:e.boxShadowTertiary,opacity:0,pointerEvents:"none"},"&-prev-btn":{left:{_skip_check_:!0,value:e.padding}},"&-next-btn":{right:{_skip_check_:!0,value:e.padding}},"&:dir(ltr)":{[`&${r}-overflow-ping-start ${r}-prev-btn`]:{opacity:1,pointerEvents:"auto"},[`&${r}-overflow-ping-end ${r}-next-btn`]:{opacity:1,pointerEvents:"auto"}},"&:dir(rtl)":{[`&${r}-overflow-ping-end ${r}-prev-btn`]:{opacity:1,pointerEvents:"auto"},[`&${r}-overflow-ping-start ${r}-next-btn`]:{opacity:1,pointerEvents:"auto"}}}}}},da=fe("Attachments",e=>{const t=ee(e,{});return[Vd(t),Bd(t),Hd(t)]},e=>{const{colorBgContainer:t}=e;return{colorBgPlaceholderHover:new jn(t).setA(.85).toRgbString()}}),Fn=" ",Dn="#8c8c8c",ua=a.defineComponent({name:"AXAttachmentsFileListCard",__name:"FileListCard",props:{prefixCls:null,item:null,onRemove:{type:Function},className:null,style:null},setup(e,{expose:t}){a.toRef(e,"prefixCls");const n=["png","jpg","jpeg","gif","bmp","webp","svg"],r=[{icon:a.createVNode(xn,null,null),color:"#22b35e",ext:["xlsx","xls"]},{icon:a.createVNode(wn,null,null),color:Dn,ext:n},{icon:a.createVNode($n,null,null),color:Dn,ext:["md","mdx"]},{icon:a.createVNode(Nn,null,null),color:"#ff4d4f",ext:["pdf"]},{icon:a.createVNode(Tn,null,null),color:"#ff6e31",ext:["ppt","pptx"]},{icon:a.createVNode(On,null,null),color:"#1677ff",ext:["doc","docx"]},{icon:a.createVNode(En,null,null),color:"#fab714",ext:["zip","rar","7z","tar","gz"]},{icon:a.createVNode(Ed,null,null),color:"#ff4d4f",ext:["mp4","avi","mov","wmv","flv","mkv"]},{icon:a.createVNode(Nd,null,null),color:"#8c8c8c",ext:["mp3","wav","flac","ape","aac","ogg"]}];function o(I,B){return B.some(k=>I.toLowerCase()===`.${k}`)}function i(I){let B=I;const k=["B","KB","MB","GB","TB","PB","EB"];let J=0;for(;B>=1024&&J<k.length-1;)B/=1024,J++;return`${B.toFixed(0)} ${k[J]}`}const l=wt(),s=a.computed(()=>l.value.disabled),c=a.computed(()=>e.item.name),d=a.computed(()=>e.item.size),f=a.computed(()=>e.item.percent),u=a.computed(()=>e.item.status||"done"),m=a.computed(()=>e.item.description),{getPrefixCls:p}=G(),g=a.computed(()=>p("attachment",e.prefixCls)),h=`${g.value}-list-card`,[b,v,$]=da(g),S=a.useTemplateRef("file-list-card-container"),C=a.computed(()=>{const I=c.value||"",B=I.match(/^(.*)\.[^.]+$/);return{namePrefix:B?B[1]:I,nameSuffix:B?I.slice(B[1].length):""}}),x=a.computed(()=>o(C.value.nameSuffix,n)),w=a.computed(()=>m.value?m.value:u.value==="uploading"?`${f.value||0}%`:u.value==="error"?e.item.response||Fn:d.value?i(d.value):Fn),y=a.computed(()=>{for(const{ext:I,icon:B,color:k}of r)if(o(C.value.nameSuffix,I))return{icon:B,iconColor:k};return{icon:a.createVNode(Pn,{key:"defaultIcon"},null),iconColor:Dn}}),[T,P]=L();a.watch(()=>e.item.originFileObj,()=>{if(e.item.originFileObj){let I=!0;Rd(e.item.originFileObj).then(B=>{I&&P(B)}),a.onWatcherCleanup(()=>{I=!1})}P(void 0)},{immediate:!0});const A=a.computed(()=>e.item.thumbUrl||e.item.url||T.value),M=a.computed(()=>x.value&&(e.item.originFileObj||A.value)),W=a.computed(()=>M.value?a.createVNode(a.Fragment,null,[a.createVNode("img",{alt:"preview",src:A.value},null),u.value!=="done"&&a.createVNode("div",{class:`${h}-img-mask`},[u.value==="uploading"&&f.value!==void 0&&a.createVNode(O.Progress,{percent:f.value,prefixCls:h},null),u.value==="error"&&a.createVNode("div",{class:`${h}-desc`},[a.createVNode("div",{class:`${h}-ellipsis-prefix`},[w.value])])])]):a.createVNode(a.Fragment,null,[a.createVNode("div",{class:`${h}-icon`,style:{color:y.value.iconColor}},[y.value.icon]),a.createVNode("div",{class:`${h}-content`},[a.createVNode("div",{class:`${h}-name`},[a.createVNode("div",{class:`${h}-ellipsis-prefix`},[C.value.namePrefix??Fn]),a.createVNode("div",{class:`${h}-ellipsis-suffix`},[C.value.nameSuffix])]),a.createVNode("div",{class:`${h}-desc`},[a.createVNode("div",{class:`${h}-ellipsis-prefix`},[w.value])])])]));return t({nativeElement:S}),()=>b(a.createVNode("div",{class:N(h,{[`${h}-status-${u.value}`]:u.value,[`${h}-type-preview`]:M.value,[`${h}-type-overview`]:!M.value},e.className,v.value,$),style:e.style,ref:"file-list-card-container"},[W.value,!s.value&&e.onRemove&&a.createVNode("button",{type:"button",class:`${h}-remove`,onClick:()=>{e.onRemove(e.item)}},[a.createVNode(Cn,null,null)])]))}}),fa=1,Ld=a.defineComponent({name:"AXAttachmentsFileList",__name:"FileList",props:{prefixCls:null,items:null,onRemove:{type:Function},overflow:null,upload:null,listClassName:null,listStyle:null,itemClassName:null,itemStyle:null},setup(e){const t=a.computed(()=>`${e.prefixCls}-list`),n=a.useTemplateRef("file-list-container"),[r,o]=L(!1),i=wt();a.watchEffect(()=>{o(!0),a.onWatcherCleanup(()=>{o(!1)})});const[l,s]=L(!1),[c,d]=L(!1),f=()=>{const g=n.value;g&&(e.overflow==="scrollX"?(s(Math.abs(g.scrollLeft)>=fa),d(g.scrollWidth-g.clientWidth-Math.abs(g.scrollLeft)>=fa)):e.overflow==="scrollY"&&(s(g.scrollTop!==0),d(g.scrollHeight-g.clientHeight!==g.scrollTop)))};a.watch(()=>e.overflow,()=>{f()},{immediate:!0});const u=g=>{const h=n.value;h&&h.scrollTo({left:h.scrollLeft+g*h.clientWidth,behavior:"smooth"})},m=()=>{u(-1)},p=()=>{u(1)};return()=>a.createVNode("div",{class:N(t.value,{[`${t.value}-overflow-${e.overflow}`]:e.overflow,[`${t.value}-overflow-ping-start`]:l.value,[`${t.value}-overflow-ping-end`]:c.value},e.listClassName),ref:"file-list-container",onScroll:f,style:e.listStyle},[e.items.map(g=>a.createVNode(ua,{key:g.uid,prefixCls:e.prefixCls,item:g,onRemove:e.onRemove,className:N(e.itemClassName),style:{...e.itemStyle}},null)),!i.value.disabled&&a.createVNode(la,{upload:e.upload,children:a.createVNode(O.Button,{class:`${t.value}-upload-btn`,type:"dashed"},{default:()=>[a.createVNode(An,{class:`${t.value}-upload-btn-icon`},null)]})},null),e.overflow==="scrollX"&&a.createVNode(a.Fragment,null,[a.createVNode(O.Button,{size:"small",shape:"circle",class:`${t.value}-prev-btn`,icon:a.createVNode(pt,null,null),onClick:m},null),a.createVNode(O.Button,{size:"small",shape:"circle",class:`${t.value}-next-btn`,icon:a.createVNode(bt,null,null),onClick:p},null)])])}});function jd(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!a.isVNode(e)}const zd=a.defineComponent({name:"AXAttachments",__name:"Attachments",props:a.mergeDefaults({capture:null,type:null,name:null,defaultFileList:null,action:null,directory:null,data:null,method:null,headers:null,showUploadList:null,multiple:null,accept:null,beforeUpload:null,onChange:{type:Function},"onUpdate:fileList":null,onDrop:null,listType:null,onPreview:null,onDownload:null,onReject:null,onRemove:null,remove:null,supportServerRender:null,disabled:{type:Boolean},prefixCls:null,customRequest:null,withCredentials:null,openFileDialogOnClick:null,locale:null,id:null,previewFile:null,transformFile:null,iconRender:null,isImageUrl:null,progress:null,itemRender:null,maxCount:null,height:null,removeIcon:null,downloadIcon:null,previewIcon:null,rootClassName:null,rootStyle:null,style:null,className:null,classNames:null,styles:null,children:null,placeholder:{type:Function},getDropContainer:{type:Function},items:null,overflow:null},{items:()=>[],classNames:()=>({}),styles:()=>({})}),setup(e,{expose:t}){const n=X(e,["prefixCls","rootClassName","rootStyle","className","style","items","children","getDropContainer","placeholder","onChange","overflow","disabled","classNames","styles"]);a.toRef(e,"prefixCls");const{getPrefixCls:r,direction:o}=G(),i=r("attachment",e.prefixCls),l=se("attachments"),s=a.computed(()=>l.value.classNames),c=a.computed(()=>l.value.styles),d=a.useTemplateRef("attachments-container"),f=a.useTemplateRef("attachments-upload"),[u,m,p]=da(i),g=a.computed(()=>N(m.value,p)),[h,b]=L(e.items);a.watch(()=>e.items,()=>{b(e.items)});const v=w=>{var y;b(w.fileList),(y=e.onChange)==null||y.call(e,w)},$=a.computed(()=>({...n,fileList:h.value,onChange:v})),S=w=>{const y=h.value.filter(T=>T.uid!==w.uid);v({file:w,fileList:y})},C=(w,y,T)=>{const P=typeof e.placeholder=="function"?e.placeholder(w):e.placeholder;return a.createVNode(vd,{placeholder:P,upload:$.value,prefixCls:i,className:N(s.value.placeholder,e.classNames.placeholder),style:{...c.value.placeholder,...e.styles.placeholder,...y==null?void 0:y.style}},null)},x=a.computed(()=>{let w;if(e.children)return a.createVNode(a.Fragment,null,[a.createVNode(la,{upload:$.value,rootClassName:e.rootClassName,ref:"attachments-upload",children:e.children},null),a.createVNode(ia,{getDropContainer:e.getDropContainer,prefixCls:i,className:N(g.value,e.rootClassName),children:C("drop")},null)]);const y=h.value.length>0;return a.createVNode("div",{class:N(i,g.value,{[`${i}-rtl`]:o.value==="rtl"},e.className,e.rootClassName),style:{...e.rootStyle,...e.style},dir:o.value||"ltr",ref:"attachments-container"},[a.createVNode(Ld,{prefixCls:i,items:h.value,onRemove:S,overflow:e.overflow,upload:$.value,listClassName:N(s.value.list,e.classNames.list),listStyle:{...c.value.list,...e.styles.list,...!y&&{display:"none"}},itemClassName:N(s.value.item,e.classNames.item),itemStyle:{...c.value.item,...e.styles.item}},null),C("inline",y?{style:{display:"none"}}:{},f.value),a.createVNode(ia,{getDropContainer:e.getDropContainer||(()=>d.value),prefixCls:i,className:g.value},jd(w=C("drop"))?w:{default:()=>[w]})])});return t({nativeElement:d.value,upload:w=>{var T,P;const y=(P=(T=f.value)==null?void 0:T.nativeElement)==null?void 0:P.querySelector('input[type="file"]');if(y){const A=new DataTransfer;A.items.add(w),y.files=A.files,y.dispatchEvent(new Event("change",{bubbles:!0}))}}}),()=>u(a.createVNode(Sd,{value:{disabled:e.disabled}},{default:()=>[x.value]}))}}),Fd=Object.assign(zd,{FileCard:ua}),Dd=(e,t,n)=>{const r=a.computed(()=>{const s=a.toValue(e);let c={expandedKeys:[],onExpand:()=>{}};return s?(typeof s=="object"&&(c={...c,...s}),{enableCollapse:!0,customizeExpandedKeys:c.expandedKeys,customizeOnExpand:c.onExpand}):{enableCollapse:!1,customizeExpandedKeys:c.expandedKeys,customizeOnExpand:c.onExpand}}),[o,i]=L(r.value.customizeExpandedKeys),l=s=>{var d,f;if(!r.value.enableCollapse)return;const c=o.value.includes(s)?o.value.filter(u=>u!==s):[...o.value,s];(f=(d=r.value).customizeOnExpand)==null||f.call(d,c),i(c)};return[a.computed(()=>r.value.enableCollapse),o,l]};var Nt=(e=>(e.PENDING="pending",e.SUCCESS="success",e.ERROR="error",e))(Nt||{});const kd=e=>{const{componentCls:t}=e,n=`${t}-item`,r={[Nt.PENDING]:e.colorPrimaryText,[Nt.SUCCESS]:e.colorSuccessText,[Nt.ERROR]:e.colorErrorText},o=Object.keys(r);return o.reduce((i,l)=>{const s=r[l];return o.forEach(c=>{const d=`& ${n}-${l}-${c}`,f=l===c?{}:{backgroundColor:"none !important",backgroundImage:`linear-gradient(${s}, ${r[c]})`};i[d]={[`& ${n}-icon, & > *::before`]:{backgroundColor:`${s} !important`},"& > :last-child::before":f}}),i},{})},Xd=e=>{const{calc:t,componentCls:n}=e,r=`${n}-item`,o={content:'""',width:t(e.lineWidth).mul(2).equal(),display:"block",position:"absolute",insetInlineEnd:"none",backgroundColor:e.colorTextPlaceholder};return{"& > :last-child > :last-child":{"&::before":{display:"none !important"},[`&${r}-footer`]:{"&::before":{display:"block !important",bottom:0}}},[`& > ${r}`]:{[`& ${r}-header, & ${r}-content, & ${r}-footer`]:{position:"relative","&::before":{bottom:t(e.itemGap).mul(-1).equal()}},[`& ${r}-header, & ${r}-content`]:{marginInlineStart:t(e.itemSize).mul(-1).equal(),"&::before":{...o,insetInlineStart:t(e.itemSize).div(2).sub(e.lineWidth).equal()}},[`& ${r}-header::before`]:{top:e.itemSize,bottom:t(e.itemGap).mul(-2).equal()},[`& ${r}-content::before`]:{top:"100%"},[`& ${r}-footer::before`]:{...o,top:0,insetInlineStart:t(e.itemSize).div(-2).sub(e.lineWidth).equal()}}}},Wd=e=>{const{componentCls:t}=e,n=`${t}-item`;return{[n]:{display:"flex",flexDirection:"column",[`& ${n}-collapsible`]:{cursor:"pointer"},[`& ${n}-header`]:{display:"flex",marginBottom:e.itemGap,gap:e.itemGap,alignItems:"flex-start",[`& ${n}-icon`]:{height:e.itemSize,width:e.itemSize,fontSize:e.itemFontSize,display:"flex",justifyContent:"center",alignItems:"center"},[`& ${n}-extra`]:{height:e.itemSize,maxHeight:e.itemSize},[`& ${n}-header-box`]:{flex:1,display:"flex",flexDirection:"column",overflow:"hidden",[`& ${n}-title`]:{height:e.itemSize,lineHeight:`${Z(e.itemSize)}`,maxHeight:e.itemSize,fontSize:e.itemFontSize,[`& ${n}-collapse-icon`]:{marginInlineEnd:e.marginXS}},[`& ${n}-desc`]:{fontSize:e.itemFontSize}}},[`& ${n}-content`]:{[`& ${n}-content-hidden`]:{display:"none"},[`& ${n}-content-box`]:{padding:e.itemGap,display:"inline-block",maxWidth:`calc(100% - ${e.itemSize})`,borderRadius:e.borderRadiusLG,backgroundColor:e.colorBgContainer,border:`${Z(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`}},[`& ${n}-footer`]:{marginTop:e.itemGap,display:"inline-flex"}}}},kn=(e,t="middle")=>{const{componentCls:n}=e,r={large:{itemSize:e.itemSizeLG,itemGap:e.itemGapLG,itemFontSize:e.itemFontSizeLG},middle:{itemSize:e.itemSize,itemGap:e.itemGap,itemFontSize:e.itemFontSize},small:{itemSize:e.itemSizeSM,itemGap:e.itemGapSM,itemFontSize:e.itemFontSizeSM}}[t];return{[`&${n}-${t}`]:{paddingInlineStart:r.itemSize,gap:r.itemGap,...Wd({...e,...r}),...Xd({...e,...r})}}},Gd=e=>{const{componentCls:t}=e;return{[t]:{display:"flex",flexDirection:"column",...kd(e),...kn(e),...kn(e,"large"),...kn(e,"small"),[`&${t}-rtl`]:{direction:"rtl"}}}},qd=fe("ThoughtChain",e=>{const t=ee(e,{itemFontSizeSM:e.fontSizeSM,itemSizeSM:e.calc(e.controlHeightXS).add(e.controlHeightSM).div(2).equal(),itemGapSM:e.marginSM,itemFontSize:e.fontSize,itemSize:e.calc(e.controlHeightSM).add(e.controlHeight).div(2).equal(),itemGap:e.margin,itemFontSizeLG:e.fontSizeLG,itemSizeLG:e.calc(e.controlHeight).add(e.controlHeightLG).div(2).equal(),itemGapLG:e.marginLG});return[Gd(t)]}),ha=Symbol("ThoughtChainNodeContext"),Xn=a.shallowRef(),Ud=e=>{a.provide(ha,e),a.watch(e,()=>{Xn.value=a.unref(e),a.triggerRef(Xn)},{immediate:!0,deep:!0})},Kd=()=>a.inject(ha,a.computed(()=>Xn.value||{})),Zd=a.defineComponent({props:{value:ne()},setup(e,{slots:t}){return Ud(a.computed(()=>e.value)),()=>{var n;return(n=t.default)==null?void 0:n.call(t)}}}),Yd=a.defineComponent({name:"AXThoughtChainNode",__name:"item",props:a.mergeDefaults({info:null,nextStatus:null,onClick:{type:Function}},{info:()=>({})}),setup(e){const t=X(e,["info","nextStatus","onClick"]),n=a.computed(()=>Me(t,{attr:!0,aria:!0,data:!0})),r=Kd(),o=a.computed(()=>r.value.prefixCls),i=a.computed(()=>r.value.enableCollapse),l=a.computed(()=>r.value.expandedKeys),s=a.computed(()=>r.value.direction),c=a.computed(()=>r.value.classNames),d=a.computed(()=>r.value.styles),f=a.useId(),u=a.computed(()=>e.info.key??f),m=a.computed(()=>e.info.icon),p=a.computed(()=>e.info.title),g=a.computed(()=>e.info.extra),h=a.computed(()=>e.info.content),b=a.computed(()=>e.info.footer),v=a.computed(()=>e.info.status),$=a.computed(()=>e.info.description),S=a.computed(()=>`${o.value}-item`),C=()=>{var y;return(y=e.onClick)==null?void 0:y.call(e,u.value)},x=a.computed(()=>{var y;return(y=l.value)==null?void 0:y.includes(u.value)}),w=a.computed(()=>i.value?x.value:!0);return()=>a.createVNode("div",a.mergeProps(n.value,{class:N(S.value,{[`${S.value}-${v.value}${e.nextStatus?`-${e.nextStatus}`:""}`]:v.value},t.class),style:t.style}),[a.createVNode("div",{class:N(`${S.value}-header`,c.value.itemHeader),style:d.value.itemHeader,onClick:C},[a.createVNode(O.Avatar,{icon:m.value,class:`${S.value}-icon`},null),a.createVNode("div",{class:N(`${S.value}-header-box`,{[`${S.value}-collapsible`]:i.value&&h.value})},[a.createVNode(O.Typography.Text,{strong:!0,ellipsis:{tooltip:{placement:s.value==="rtl"?"topRight":"topLeft",title:p.value}},class:`${S.value}-title`},{default:()=>[i.value&&h.value&&(s.value==="rtl"?a.createVNode(pt,{class:`${S.value}-collapse-icon`,rotate:x.value?-90:0},null):a.createVNode(bt,{class:`${S.value}-collapse-icon`,rotate:x.value?90:0},null)),p.value]}),$.value&&a.createVNode(O.Typography.Text,{class:`${S.value}-desc`,ellipsis:{tooltip:{placement:s.value==="rtl"?"topRight":"topLeft",title:$.value}},type:"secondary"},{default:()=>[$.value]})]),g.value&&a.createVNode("div",{class:`${S.value}-extra`},[g.value])]),h.value&&a.withDirectives(a.createVNode("div",{class:N(`${S.value}-content`)},[a.createVNode("div",{class:N(`${S.value}-content-box`,c.value.itemContent),style:d.value.itemContent},[h.value])]),[[a.vShow,w.value]]),b.value&&a.createVNode("div",{class:N(`${S.value}-footer`,c.value.itemFooter),style:d.value.itemFooter},[b.value])])}}),Qd=a.defineComponent({name:"AXThoughtChain",__name:"ThoughtChain",props:a.mergeDefaults({items:null,collapsible:{type:Boolean},size:null,styles:null,classNames:null,prefixCls:null,rootClassName:null},{styles:()=>({}),classNames:()=>({}),size:"middle"}),setup(e){const t=X(e,["prefixCls","rootClassName","class","items","collapsible","styles","style","classNames","size"]);a.toRef(e,"class"),a.toRef(e,"prefixCls");const n=a.computed(()=>Me(t,{attr:!0,aria:!0,data:!0})),{getPrefixCls:r,direction:o}=G(),i=a.computed(()=>r()),l=a.computed(()=>r("thought-chain",e.prefixCls)),s=se("thoughtChain"),[c,d,f]=Dd(()=>e.collapsible,l.value,i.value),[u,m,p]=qd(l),g=a.computed(()=>N(e.class,e.rootClassName,l.value,s.value.className,m.value,p,{[`${l.value}-rtl`]:o.value==="rtl"},`${l.value}-${e.size}`));return()=>u(a.createVNode("div",a.mergeProps(n.value,{class:g.value,style:{...typeof s.value.style=="object"?s.value.style:{},...typeof e.style=="object"?e.style:{}}}),[a.createVNode(Zd,{value:{prefixCls:l.value,enableCollapse:c.value,expandedKeys:d.value,direction:o.value,classNames:{itemHeader:N(s.value.classNames.itemHeader,e.classNames.itemHeader),itemContent:N(s.value.classNames.itemContent,e.classNames.itemContent),itemFooter:N(s.value.classNames.itemFooter,e.classNames.itemFooter)},styles:{itemHeader:{...s.value.styles.itemHeader,...e.styles.itemHeader},itemContent:{...s.value.styles.itemContent,...e.styles.itemContent},itemFooter:{...s.value.styles.itemFooter,...e.styles.itemFooter}}}},{default:()=>{var h;return[(h=e.items)==null?void 0:h.map((b,v)=>{var $;return a.createVNode(Yd,{key:b.key||`key_${v}`,class:N(s.value.classNames.item,e.classNames.item),style:{...s.value.styles.item,...e.styles.item},info:{...b,icon:b.icon||v+1},onClick:f,nextStatus:(($=e.items[v+1])==null?void 0:$.status)||b.status},null)})]}})]))}}),Jd=`
113
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Zs(e,t){if(e){if(typeof e=="string")return Ao(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Ao(e,t)}}function Ao(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Ys(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r=[],o=!0,i=!1,l,s;try{for(n=n.call(e);!(o=(l=n.next()).done)&&(r.push(l.value),!(t&&r.length===t));o=!0);}catch(c){i=!0,s=c}finally{try{!o&&n.return!=null&&n.return()}finally{if(i)throw s}}return r}}function Qs(e){if(Array.isArray(e))return e}function Ro(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?Object(arguments[t]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(o){return Object.getOwnPropertyDescriptor(n,o).enumerable}))),r.forEach(function(o){Ge(e,o,n[o])})}return e}function Ge(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Js(e,t){if(e==null)return{};var n=_s(e,t),r,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)r=i[o],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function _s(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i<r.length;i++)o=r[i],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}Eo(zl.primary);var V=function(t,n){var r,o=Ro({},t,n.attrs),i=o.class,l=o.icon,s=o.spin,c=o.rotate,d=o.tabindex,f=o.twoToneColor,u=o.onClick,m=Js(o,qs),p=yo(),g=p.prefixCls,h=p.rootClassName,b=(r={},Ge(r,h.value,!!h.value),Ge(r,g.value,!0),Ge(r,"".concat(g.value,"-").concat(l.name),!!l.name),Ge(r,"".concat(g.value,"-spin"),!!s||l.name==="loading"),r),v=d;v===void 0&&u&&(v=-1);var w=c?{msTransform:"rotate(".concat(c,"deg)"),transform:"rotate(".concat(c,"deg)")}:void 0,C=To(f),S=Us(C,2),$=S[0],x=S[1];return a.createVNode("span",Ro({role:"img","aria-label":l.name},m,{onClick:u,class:[b,i],tabindex:v}),[a.createVNode(he,{icon:l,primaryColor:$,secondaryColor:x,style:w},null),a.createVNode(Gs,null,null)])};V.props={spin:Boolean,rotate:Number,icon:Object,twoToneColor:[String,Array]},V.displayName="AntdIcon",V.inheritAttrs=!1,V.getTwoToneColor=Ws,V.setTwoToneColor=Eo;var ec={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M868 545.5L536.1 163a31.96 31.96 0 00-48.3 0L156 545.5a7.97 7.97 0 006 13.2h81c4.6 0 9-2 12.1-5.5L474 300.9V864c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V300.9l218.9 252.3c3 3.5 7.4 5.5 12.1 5.5h81c6.8 0 10.5-8 6-13.2z"}}]},name:"arrow-up",theme:"outlined"};function Mo(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?Object(arguments[t]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(o){return Object.getOwnPropertyDescriptor(n,o).enumerable}))),r.forEach(function(o){tc(e,o,n[o])})}return e}function tc(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var gn=function(t,n){var r=Mo({},t,n.attrs);return a.createVNode(V,Mo({},r,{icon:ec}),null)};gn.displayName="ArrowUpOutlined",gn.inheritAttrs=!1;var nc={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M682 455V311l-76 76v68c-.1 50.7-42 92.1-94 92a95.8 95.8 0 01-52-15l-54 55c29.1 22.4 65.9 36 106 36 93.8 0 170-75.1 170-168z"}},{tag:"path",attrs:{d:"M833 446h-60c-4.4 0-8 3.6-8 8 0 140.3-113.7 254-254 254-63 0-120.7-23-165-61l-54 54a334.01 334.01 0 00179 81v102H326c-13.9 0-24.9 14.3-25 32v36c.1 4.4 2.9 8 6 8h408c3.2 0 6-3.6 6-8v-36c0-17.7-11-32-25-32H547V782c165.3-17.9 294-157.9 294-328 0-4.4-3.6-8-8-8zm13.1-377.7l-43.5-41.9a8 8 0 00-11.2.1l-129 129C634.3 101.2 577 64 511 64c-93.9 0-170 75.3-170 168v224c0 6.7.4 13.3 1.2 19.8l-68 68A252.33 252.33 0 01258 454c-.2-4.4-3.8-8-8-8h-60c-4.4 0-8 3.6-8 8 0 53 12.5 103 34.6 147.4l-137 137a8.03 8.03 0 000 11.3l42.7 42.7c3.1 3.1 8.2 3.1 11.3 0L846.2 79.8l.1-.1c3.1-3.2 3-8.3-.2-11.4zM417 401V232c0-50.6 41.9-92 94-92 46 0 84.1 32.3 92.3 74.7L417 401z"}}]},name:"audio-muted",theme:"outlined"};function Io(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?Object(arguments[t]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(o){return Object.getOwnPropertyDescriptor(n,o).enumerable}))),r.forEach(function(o){rc(e,o,n[o])})}return e}function rc(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var pn=function(t,n){var r=Io({},t,n.attrs);return a.createVNode(V,Io({},r,{icon:nc}),null)};pn.displayName="AudioMutedOutlined",pn.inheritAttrs=!1;var oc={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M842 454c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8 0 140.3-113.7 254-254 254S258 594.3 258 454c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8 0 168.7 126.6 307.9 290 327.6V884H326.7c-13.7 0-24.7 14.3-24.7 32v36c0 4.4 2.8 8 6.2 8h407.6c3.4 0 6.2-3.6 6.2-8v-36c0-17.7-11-32-24.7-32H548V782.1c165.3-18 294-158 294-328.1zM512 624c93.9 0 170-75.2 170-168V232c0-92.8-76.1-168-170-168s-170 75.2-170 168v224c0 92.8 76.1 168 170 168zm-94-392c0-50.6 41.9-92 94-92s94 41.4 94 92v224c0 50.6-41.9 92-94 92s-94-41.4-94-92V232z"}}]},name:"audio",theme:"outlined"};function Ho(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?Object(arguments[t]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(o){return Object.getOwnPropertyDescriptor(n,o).enumerable}))),r.forEach(function(o){ac(e,o,n[o])})}return e}function ac(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var bn=function(t,n){var r=Ho({},t,n.attrs);return a.createVNode(V,Ho({},r,{icon:oc}),null)};bn.displayName="AudioOutlined",bn.inheritAttrs=!1;var ic={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M899.1 869.6l-53-305.6H864c14.4 0 26-11.6 26-26V346c0-14.4-11.6-26-26-26H618V138c0-14.4-11.6-26-26-26H432c-14.4 0-26 11.6-26 26v182H160c-14.4 0-26 11.6-26 26v192c0 14.4 11.6 26 26 26h17.9l-53 305.6a25.95 25.95 0 0025.6 30.4h723c1.5 0 3-.1 4.4-.4a25.88 25.88 0 0021.2-30zM204 390h272V182h72v208h272v104H204V390zm468 440V674c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v156H416V674c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v156H202.8l45.1-260H776l45.1 260H672z"}}]},name:"clear",theme:"outlined"};function Vo(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?Object(arguments[t]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(o){return Object.getOwnPropertyDescriptor(n,o).enumerable}))),r.forEach(function(o){lc(e,o,n[o])})}return e}function lc(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var yn=function(t,n){var r=Vo({},t,n.attrs);return a.createVNode(V,Vo({},r,{icon:ic}),null)};yn.displayName="ClearOutlined",yn.inheritAttrs=!1;var sc={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z"}}]},name:"close-circle",theme:"filled"};function Bo(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?Object(arguments[t]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(o){return Object.getOwnPropertyDescriptor(n,o).enumerable}))),r.forEach(function(o){cc(e,o,n[o])})}return e}function cc(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Sn=function(t,n){var r=Bo({},t,n.attrs);return a.createVNode(V,Bo({},r,{icon:sc}),null)};Sn.displayName="CloseCircleFilled",Sn.inheritAttrs=!1;var dc={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M799.86 166.31c.02 0 .04.02.08.06l57.69 57.7c.04.03.05.05.06.08a.12.12 0 010 .06c0 .03-.02.05-.06.09L569.93 512l287.7 287.7c.04.04.05.06.06.09a.12.12 0 010 .07c0 .02-.02.04-.06.08l-57.7 57.69c-.03.04-.05.05-.07.06a.12.12 0 01-.07 0c-.03 0-.05-.02-.09-.06L512 569.93l-287.7 287.7c-.04.04-.06.05-.09.06a.12.12 0 01-.07 0c-.02 0-.04-.02-.08-.06l-57.69-57.7c-.04-.03-.05-.05-.06-.07a.12.12 0 010-.07c0-.03.02-.05.06-.09L454.07 512l-287.7-287.7c-.04-.04-.05-.06-.06-.09a.12.12 0 010-.07c0-.02.02-.04.06-.08l57.7-57.69c.03-.04.05-.05.07-.06a.12.12 0 01.07 0c.03 0 .05.02.09.06L512 454.07l287.7-287.7c.04-.04.06-.05.09-.06a.12.12 0 01.07 0z"}}]},name:"close",theme:"outlined"};function Lo(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?Object(arguments[t]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(o){return Object.getOwnPropertyDescriptor(n,o).enumerable}))),r.forEach(function(o){uc(e,o,n[o])})}return e}function uc(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Cn=function(t,n){var r=Lo({},t,n.attrs);return a.createVNode(V,Lo({},r,{icon:dc}),null)};Cn.displayName="CloseOutlined",Cn.inheritAttrs=!1;var fc={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M176 511a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"ellipsis",theme:"outlined"};function jo(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?Object(arguments[t]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(o){return Object.getOwnPropertyDescriptor(n,o).enumerable}))),r.forEach(function(o){hc(e,o,n[o])})}return e}function hc(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var vn=function(t,n){var r=jo({},t,n.attrs);return a.createVNode(V,jo({},r,{icon:fc}),null)};vn.displayName="EllipsisOutlined",vn.inheritAttrs=!1;var mc={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.7c6 6 9.4 14.1 9.4 22.6V928c0 17.7-14.3 32-32 32H192c-17.7 0-32-14.3-32-32V96c0-17.7 14.3-32 32-32h424.7c8.5 0 16.7 3.4 22.7 9.4l215.2 215.3zM790.2 326L602 137.8V326h188.2zM575.34 477.84l-61.22 102.3L452.3 477.8a12 12 0 00-10.27-5.79h-38.44a12 12 0 00-6.4 1.85 12 12 0 00-3.75 16.56l82.34 130.42-83.45 132.78a12 12 0 00-1.84 6.39 12 12 0 0012 12h34.46a12 12 0 0010.21-5.7l62.7-101.47 62.3 101.45a12 12 0 0010.23 5.72h37.48a12 12 0 006.48-1.9 12 12 0 003.62-16.58l-83.83-130.55 85.3-132.47a12 12 0 001.9-6.5 12 12 0 00-12-12h-35.7a12 12 0 00-10.29 5.84z"}}]},name:"file-excel",theme:"filled"};function zo(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?Object(arguments[t]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(o){return Object.getOwnPropertyDescriptor(n,o).enumerable}))),r.forEach(function(o){gc(e,o,n[o])})}return e}function gc(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var xn=function(t,n){var r=zo({},t,n.attrs);return a.createVNode(V,zo({},r,{icon:mc}),null)};xn.displayName="FileExcelFilled",xn.inheritAttrs=!1;var pc={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.7L639.4 73.4c-6-6-14.2-9.4-22.7-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.6-9.4-22.6zM400 402c22.1 0 40 17.9 40 40s-17.9 40-40 40-40-17.9-40-40 17.9-40 40-40zm296 294H328c-6.7 0-10.4-7.7-6.3-12.9l99.8-127.2a8 8 0 0112.6 0l41.1 52.4 77.8-99.2a8 8 0 0112.6 0l136.5 174c4.3 5.2.5 12.9-6.1 12.9zm-94-370V137.8L790.2 326H602z"}}]},name:"file-image",theme:"filled"};function Fo(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?Object(arguments[t]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(o){return Object.getOwnPropertyDescriptor(n,o).enumerable}))),r.forEach(function(o){bc(e,o,n[o])})}return e}function bc(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var wn=function(t,n){var r=Fo({},t,n.attrs);return a.createVNode(V,Fo({},r,{icon:pc}),null)};wn.displayName="FileImageFilled",wn.inheritAttrs=!1;var yc={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.7c6 6 9.4 14.1 9.4 22.6V928c0 17.7-14.3 32-32 32H192c-17.7 0-32-14.3-32-32V96c0-17.7 14.3-32 32-32h424.7c8.5 0 16.7 3.4 22.7 9.4l215.2 215.3zM790.2 326L602 137.8V326h188.2zM426.13 600.93l59.11 132.97a16 16 0 0014.62 9.5h24.06a16 16 0 0014.63-9.51l59.1-133.35V758a16 16 0 0016.01 16H641a16 16 0 0016-16V486a16 16 0 00-16-16h-34.75a16 16 0 00-14.67 9.62L512.1 662.2l-79.48-182.59a16 16 0 00-14.67-9.61H383a16 16 0 00-16 16v272a16 16 0 0016 16h27.13a16 16 0 0016-16V600.93z"}}]},name:"file-markdown",theme:"filled"};function Do(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?Object(arguments[t]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(o){return Object.getOwnPropertyDescriptor(n,o).enumerable}))),r.forEach(function(o){Sc(e,o,n[o])})}return e}function Sc(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var $n=function(t,n){var r=Do({},t,n.attrs);return a.createVNode(V,Do({},r,{icon:yc}),null)};$n.displayName="FileMarkdownFilled",$n.inheritAttrs=!1;var Cc={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.7c6 6 9.4 14.1 9.4 22.6V928c0 17.7-14.3 32-32 32H192c-17.7 0-32-14.3-32-32V96c0-17.7 14.3-32 32-32h424.7c8.5 0 16.7 3.4 22.7 9.4l215.2 215.3zM790.2 326L602 137.8V326h188.2zM633.22 637.26c-15.18-.5-31.32.67-49.65 2.96-24.3-14.99-40.66-35.58-52.28-65.83l1.07-4.38 1.24-5.18c4.3-18.13 6.61-31.36 7.3-44.7.52-10.07-.04-19.36-1.83-27.97-3.3-18.59-16.45-29.46-33.02-30.13-15.45-.63-29.65 8-33.28 21.37-5.91 21.62-2.45 50.07 10.08 98.59-15.96 38.05-37.05 82.66-51.2 107.54-18.89 9.74-33.6 18.6-45.96 28.42-16.3 12.97-26.48 26.3-29.28 40.3-1.36 6.49.69 14.97 5.36 21.92 5.3 7.88 13.28 13 22.85 13.74 24.15 1.87 53.83-23.03 86.6-79.26 3.29-1.1 6.77-2.26 11.02-3.7l11.9-4.02c7.53-2.54 12.99-4.36 18.39-6.11 23.4-7.62 41.1-12.43 57.2-15.17 27.98 14.98 60.32 24.8 82.1 24.8 17.98 0 30.13-9.32 34.52-23.99 3.85-12.88.8-27.82-7.48-36.08-8.56-8.41-24.3-12.43-45.65-13.12zM385.23 765.68v-.36l.13-.34a54.86 54.86 0 015.6-10.76c4.28-6.58 10.17-13.5 17.47-20.87 3.92-3.95 8-7.8 12.79-12.12 1.07-.96 7.91-7.05 9.19-8.25l11.17-10.4-8.12 12.93c-12.32 19.64-23.46 33.78-33 43-3.51 3.4-6.6 5.9-9.1 7.51a16.43 16.43 0 01-2.61 1.42c-.41.17-.77.27-1.13.3a2.2 2.2 0 01-1.12-.15 2.07 2.07 0 01-1.27-1.91zM511.17 547.4l-2.26 4-1.4-4.38c-3.1-9.83-5.38-24.64-6.01-38-.72-15.2.49-24.32 5.29-24.32 6.74 0 9.83 10.8 10.07 27.05.22 14.28-2.03 29.14-5.7 35.65zm-5.81 58.46l1.53-4.05 2.09 3.8c11.69 21.24 26.86 38.96 43.54 51.31l3.6 2.66-4.39.9c-16.33 3.38-31.54 8.46-52.34 16.85 2.17-.88-21.62 8.86-27.64 11.17l-5.25 2.01 2.8-4.88c12.35-21.5 23.76-47.32 36.05-79.77zm157.62 76.26c-7.86 3.1-24.78.33-54.57-12.39l-7.56-3.22 8.2-.6c23.3-1.73 39.8-.45 49.42 3.07 4.1 1.5 6.83 3.39 8.04 5.55a4.64 4.64 0 01-1.36 6.31 6.7 6.7 0 01-2.17 1.28z"}}]},name:"file-pdf",theme:"filled"};function ko(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?Object(arguments[t]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(o){return Object.getOwnPropertyDescriptor(n,o).enumerable}))),r.forEach(function(o){vc(e,o,n[o])})}return e}function vc(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Nn=function(t,n){var r=ko({},t,n.attrs);return a.createVNode(V,ko({},r,{icon:Cc}),null)};Nn.displayName="FilePdfFilled",Nn.inheritAttrs=!1;var xc={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.7c6 6 9.4 14.1 9.4 22.6V928c0 17.7-14.3 32-32 32H192c-17.7 0-32-14.3-32-32V96c0-17.7 14.3-32 32-32h424.7c8.5 0 16.7 3.4 22.7 9.4l215.2 215.3zM790.2 326L602 137.8V326h188.2zM468.53 760v-91.54h59.27c60.57 0 100.2-39.65 100.2-98.12 0-58.22-39.58-98.34-99.98-98.34H424a12 12 0 00-12 12v276a12 12 0 0012 12h32.53a12 12 0 0012-12zm0-139.33h34.9c47.82 0 67.19-12.93 67.19-50.33 0-32.05-18.12-50.12-49.87-50.12h-52.22v100.45z"}}]},name:"file-ppt",theme:"filled"};function Xo(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?Object(arguments[t]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(o){return Object.getOwnPropertyDescriptor(n,o).enumerable}))),r.forEach(function(o){wc(e,o,n[o])})}return e}function wc(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Tn=function(t,n){var r=Xo({},t,n.attrs);return a.createVNode(V,Xo({},r,{icon:xc}),null)};Tn.displayName="FilePptFilled",Tn.inheritAttrs=!1;var $c={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.7c6 6 9.4 14.1 9.4 22.6V928c0 17.7-14.3 32-32 32H192c-17.7 0-32-14.3-32-32V96c0-17.7 14.3-32 32-32h424.7c8.5 0 16.7 3.4 22.7 9.4l215.2 215.3zM790.2 326L602 137.8V326h188.2zM320 482a8 8 0 00-8 8v48a8 8 0 008 8h384a8 8 0 008-8v-48a8 8 0 00-8-8H320zm0 136a8 8 0 00-8 8v48a8 8 0 008 8h184a8 8 0 008-8v-48a8 8 0 00-8-8H320z"}}]},name:"file-text",theme:"filled"};function Wo(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?Object(arguments[t]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(o){return Object.getOwnPropertyDescriptor(n,o).enumerable}))),r.forEach(function(o){Nc(e,o,n[o])})}return e}function Nc(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Pn=function(t,n){var r=Wo({},t,n.attrs);return a.createVNode(V,Wo({},r,{icon:$c}),null)};Pn.displayName="FileTextFilled",Pn.inheritAttrs=!1;var Tc={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.7c6 6 9.4 14.1 9.4 22.6V928c0 17.7-14.3 32-32 32H192c-17.7 0-32-14.3-32-32V96c0-17.7 14.3-32 32-32h424.7c8.5 0 16.7 3.4 22.7 9.4l215.2 215.3zM790.2 326L602 137.8V326h188.2zM512 566.1l52.81 197a12 12 0 0011.6 8.9h31.77a12 12 0 0011.6-8.88l74.37-276a12 12 0 00.4-3.12 12 12 0 00-12-12h-35.57a12 12 0 00-11.7 9.31l-45.78 199.1-49.76-199.32A12 12 0 00528.1 472h-32.2a12 12 0 00-11.64 9.1L434.6 680.01 388.5 481.3a12 12 0 00-11.68-9.29h-35.39a12 12 0 00-3.11.41 12 12 0 00-8.47 14.7l74.17 276A12 12 0 00415.6 772h31.99a12 12 0 0011.59-8.9l52.81-197z"}}]},name:"file-word",theme:"filled"};function Go(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?Object(arguments[t]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(o){return Object.getOwnPropertyDescriptor(n,o).enumerable}))),r.forEach(function(o){Pc(e,o,n[o])})}return e}function Pc(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var On=function(t,n){var r=Go({},t,n.attrs);return a.createVNode(V,Go({},r,{icon:Tc}),null)};On.displayName="FileWordFilled",On.inheritAttrs=!1;var Oc={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.7c6 6 9.4 14.1 9.4 22.6V928c0 17.7-14.3 32-32 32H192c-17.7 0-32-14.3-32-32V96c0-17.7 14.3-32 32-32h424.7c8.5 0 16.7 3.4 22.7 9.4l215.2 215.3zM790.2 326L602 137.8V326h188.2zM296 136v64h64v-64h-64zm64 64v64h64v-64h-64zm-64 64v64h64v-64h-64zm64 64v64h64v-64h-64zm-64 64v64h64v-64h-64zm64 64v64h64v-64h-64zm-64 64v64h64v-64h-64zm0 64v160h128V584H296zm48 48h32v64h-32v-64z"}}]},name:"file-zip",theme:"filled"};function qo(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?Object(arguments[t]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(o){return Object.getOwnPropertyDescriptor(n,o).enumerable}))),r.forEach(function(o){Ec(e,o,n[o])})}return e}function Ec(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var En=function(t,n){var r=qo({},t,n.attrs);return a.createVNode(V,qo({},r,{icon:Oc}),null)};En.displayName="FileZipFilled",En.inheritAttrs=!1;var Ac={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z"}}]},name:"left",theme:"outlined"};function Uo(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?Object(arguments[t]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(o){return Object.getOwnPropertyDescriptor(n,o).enumerable}))),r.forEach(function(o){Rc(e,o,n[o])})}return e}function Rc(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var pt=function(t,n){var r=Uo({},t,n.attrs);return a.createVNode(V,Uo({},r,{icon:Ac}),null)};pt.displayName="LeftOutlined",pt.inheritAttrs=!1;var Mc={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z"}},{tag:"path",attrs:{d:"M192 474h672q8 0 8 8v60q0 8-8 8H160q-8 0-8-8v-60q0-8 8-8z"}}]},name:"plus",theme:"outlined"};function Ko(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?Object(arguments[t]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(o){return Object.getOwnPropertyDescriptor(n,o).enumerable}))),r.forEach(function(o){Ic(e,o,n[o])})}return e}function Ic(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var An=function(t,n){var r=Ko({},t,n.attrs);return a.createVNode(V,Ko({},r,{icon:Mc}),null)};An.displayName="PlusOutlined",An.inheritAttrs=!1;var Hc={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z"}}]},name:"right",theme:"outlined"};function Zo(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?Object(arguments[t]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(o){return Object.getOwnPropertyDescriptor(n,o).enumerable}))),r.forEach(function(o){Vc(e,o,n[o])})}return e}function Vc(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var bt=function(t,n){var r=Zo({},t,n.attrs);return a.createVNode(V,Zo({},r,{icon:Hc}),null)};bt.displayName="RightOutlined",bt.inheritAttrs=!1;const Bc=a.defineComponent({name:"AXConversationsItem",__name:"ConversationsItem",props:{info:null,prefixCls:null,direction:null,menu:null,active:{type:Boolean},onClick:{type:Function}},setup(e){const t=W(e,["prefixCls","info","class","direction","onClick","active","menu"]);a.toRef(e,"class");const n=a.computed(()=>Me(t,{aria:!0,data:!0,attr:!0})),r=m=>{m.stopPropagation()},o=a.computed(()=>e.info.disabled),[i,l]=L(!1),[s,c]=L(!1),d=a.computed(()=>T(e.class,`${e.prefixCls}-item`,{[`${e.prefixCls}-item-active`]:e.active&&!o.value},{[`${e.prefixCls}-item-disabled`]:o.value})),f=()=>{!o.value&&e.onClick&&e.onClick(e.info)},u=m=>{m&&c(!m)};return()=>a.createVNode(O.Tooltip,{title:e.info.label,open:i.value&&s.value,onOpenChange:c,placement:e.direction==="rtl"?"left":"right"},{default:()=>[a.createVNode("li",a.mergeProps(n.value,{class:d.value,onClick:f}),[e.info.icon&&a.createVNode("div",{class:`${e.prefixCls}-icon`},[e.info.icon]),a.createVNode(O.Typography.Text,{class:`${e.prefixCls}-label`,ellipsis:{onEllipsis:l},content:e.info.label},null),e.menu&&!o.value&&a.createVNode(O.Dropdown,{placement:e.direction==="rtl"?"bottomLeft":"bottomRight",trigger:["click"],disabled:o.value,onOpenChange:u},{default:()=>a.createVNode(vn,{onClick:r,disabled:o.value,class:`${e.prefixCls}-menu-icon`},null),overlay:()=>a.createVNode(O.Menu,e.menu,null)})])]})}}),Yo=Symbol("GroupTitleContext"),Rn=a.shallowRef(),Lc=e=>{a.provide(Yo,e),a.watch(e,()=>{Rn.value=a.unref(e),a.triggerRef(Rn)},{immediate:!0,deep:!0})},jc=()=>a.inject(Yo,a.computed(()=>Rn.value||{})),zc=a.defineComponent({props:{value:ne()},setup(e,{slots:t}){return Lc(a.computed(()=>e.value)),()=>{var n;return(n=t.default)==null?void 0:n.call(t)}}}),Qo=a.defineComponent({name:"AXConversationsGroupTitle",__name:"GroupTitle",setup(e){const t=a.useSlots(),n=jc(),r=a.computed(()=>{var o;return(o=t.default)==null?void 0:o.call(t)});return()=>a.createVNode("div",{class:T(`${n.value.prefixCls}-group-title`)},[r.value&&a.createVNode(O.Typography.Text,null,{default:()=>[r.value]})])}});function Jo(e,t){const{defaultValue:n,value:r=a.ref()}=t||{};let o=typeof e=="function"?e():e;r.value!==void 0&&(o=a.unref(r)),n!==void 0&&(o=typeof n=="function"?n():n);const i=a.ref(o),l=a.ref(o);a.watchEffect(()=>{let c=r.value!==void 0?r.value:i.value;t.postState&&(c=t.postState(c)),l.value=c});function s(c){const d=l.value;i.value=c,a.toRaw(l.value)!==c&&t.onChange&&t.onChange(c,d)}return a.watch(r,()=>{i.value=r.value}),[l,s]}const Mn="__ungrouped",Fc=(e,t=[])=>{const n=a.computed(()=>{if(!a.toValue(e))return{enableGroup:!1,sort:void 0,title:void 0};let r={sort:void 0,title:void 0};return typeof a.toValue(e)=="object"&&(r={...r,...a.toValue(e)}),{enableGroup:!0,sort:r.sort,title:r.title}});return a.computed(()=>{if(!n.value.enableGroup)return{groupList:[{name:Mn,data:a.toValue(t),title:void 0}],enableGroup:n.value.enableGroup};const r=a.toValue(t).reduce((l,s)=>{const c=s.group||Mn;return l[c]||(l[c]=[]),l[c].push(s),l},{});return{groupList:(n.value.sort?Object.keys(r).sort(n.value.sort):Object.keys(r)).map(l=>({name:l===Mn?void 0:l,title:n.value.title,data:r[l]})),enableGroup:n.value.enableGroup}})},Dc=e=>{const{componentCls:t}=e;return{[t]:{display:"flex",flexDirection:"column",gap:e.paddingXXS,overflowY:"auto",padding:e.paddingSM,[`&${t}-rtl`]:{direction:"rtl"},[`& ${t}-list`]:{display:"flex",gap:e.paddingXXS,flexDirection:"column",paddingLeft:0,[`& ${t}-item`]:{paddingInlineStart:e.paddingXL},[`& ${t}-label`]:{color:e.colorTextDescription}},[`& ${t}-item`]:{display:"flex",height:e.controlHeightLG,minHeight:e.controlHeightLG,gap:e.paddingXS,padding:`0 ${Z(e.paddingXS)}`,alignItems:"center",borderRadius:e.borderRadiusLG,cursor:"pointer",transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,"&:hover":{backgroundColor:e.colorBgTextHover},"&-active":{backgroundColor:e.colorBgTextHover,[`& ${t}-label, ${t}-menu-icon`]:{color:e.colorText}},"&-disabled":{cursor:"not-allowed",[`& ${t}-label`]:{color:e.colorTextDisabled}},"&:hover, &-active":{[`& ${t}-menu-icon`]:{opacity:1}}},[`& ${t}-label`]:{flex:1,color:e.colorText},[`& ${t}-menu-icon`]:{opacity:0,fontSize:e.fontSizeXL},[`& ${t}-group-title`]:{display:"flex",alignItems:"center",height:e.controlHeightLG,minHeight:e.controlHeightLG,padding:`0 ${Z(e.paddingXS)}`}}}},kc=fe("Conversations",e=>{const t=ee(e,{});return Dc(t)},()=>({})),Xc=a.defineComponent({name:"AXConversations",__name:"Conversations",props:a.mergeDefaults({items:null,activeKey:null,defaultActiveKey:null,onActiveChange:{type:Function},menu:{type:Function},groupable:{type:Boolean},styles:null,classNames:null,prefixCls:null,rootClassName:null},{styles:()=>({}),classNames:()=>({})}),setup(e){const t=W(e,["prefixCls","rootClassName","items","activeKey","defaultActiveKey","onActiveChange","menu","styles","classNames","groupable","class","style"]);a.toRef(e,"class"),a.toRef(e,"activeKey"),a.toRef(e,"prefixCls");const n=a.ref(e.activeKey),r=a.computed(()=>Me(t,{attr:!0,aria:!0,data:!0})),[o,i]=Jo(e.defaultActiveKey,{value:n});a.watch(()=>e.activeKey,()=>{n.value=e.activeKey});const l=Fc(()=>e.groupable,()=>e.items),{getPrefixCls:s,direction:c}=G(),d=a.computed(()=>s("conversations",e.prefixCls)),f=se("conversations"),[u,m,p]=kc(d),g=a.computed(()=>T(d.value,f.value.className,e.class,e.rootClassName,m.value,p,{[`${d.value}-rtl`]:c.value==="rtl"})),h=b=>{i(b.key),e.onActiveChange&&e.onActiveChange(b.key)};return()=>u(a.createVNode("ul",a.mergeProps(r.value,{style:{...typeof f.value.style=="object"?f.value.style:{},...typeof e.style=="object"?e.style:{}},class:g.value}),[l.value.groupList.map((b,v)=>{const w=b.data.map((C,S)=>a.createVNode(Bc,{key:C.key||`key-${S}`,info:C,prefixCls:d.value,direction:c.value,class:T(e.classNames.item,f.value.classNames.item),style:{...f.value.styles.item,...e.styles.item},menu:typeof e.menu=="function"?e.menu(C):e.menu,active:o.value===C.key,onClick:h},null));return l.value.enableGroup?a.createVNode("li",{key:b.name||`key-${v}`},[a.createVNode(zc,{value:{prefixCls:d.value}},{default:()=>{var C;return[((C=b.title)==null?void 0:C.call(b,b.name,{components:{GroupTitle:Qo}}))||a.createVNode(Qo,{key:b.name},{default:()=>[b.name]})]}}),a.createVNode("ul",{class:`${d.value}-list`},[w])]):w})]))}}),Wc=e=>{const{componentCls:t,calc:n}=e,r=n(e.fontSizeHeading3).mul(e.lineHeightHeading3).equal(),o=n(e.fontSize).mul(e.lineHeight).equal();return{[t]:{gap:e.padding,[`${t}-icon`]:{height:n(r).add(o).add(e.paddingXXS).equal(),display:"flex",img:{height:"100%"}},[`${t}-content-wrapper`]:{gap:e.paddingXS,flex:"auto",minWidth:0,[`${t}-title-wrapper`]:{gap:e.paddingXS},[`${t}-title`]:{margin:0},[`${t}-extra`]:{marginInlineStart:"auto"}}}}},Gc=e=>{const{componentCls:t}=e;return{[t]:{"&-filled":{paddingInline:e.padding,paddingBlock:e.paddingSM,background:e.colorFillContent,borderRadius:e.borderRadiusLG},"&-borderless":{[`${t}-title`]:{fontSize:e.fontSizeHeading3,lineHeight:e.lineHeightHeading3}}}}},qc=fe("Welcome",e=>{const t=ee(e,{});return[Wc(t),Gc(t)]},()=>({}));function Uc(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!a.isVNode(e)}const Kc=a.defineComponent({name:"AXWelcome",__name:"Welcome",props:a.mergeDefaults({prefixCls:null,rootClassName:null,className:null,style:null,variant:null,classNames:null,styles:null,icon:null,title:null,description:null,extra:null},{variant:"filled",classNames:()=>({}),styles:()=>({})}),setup(e){a.toRef(e,"prefixCls");const t=a.useSlots(),{direction:n,getPrefixCls:r}=G(),o=r("welcome",e.prefixCls),i=se("welcome"),[l,s,c]=qc(o),d=a.computed(()=>{const p=t.icon?t.icon():e.icon;if(!p)return null;let g=p;return typeof p=="string"&&p.startsWith("http")&&(g=a.createVNode("img",{src:p,alt:"icon"},null)),a.createVNode("div",{class:T(`${o}-icon`,i.value.classNames.icon,e.classNames.icon),style:e.styles.icon},[g])}),f=a.computed(()=>{const p=t.title?t.title():e.title;return p?a.createVNode(O.Typography.Title,{level:4,class:T(`${o}-title`,i.value.classNames.title,e.classNames.title),style:e.styles.title},Uc(p)?p:{default:()=>[p]}):null}),u=a.computed(()=>t.description?t.description():e.description),m=a.computed(()=>{const p=t.extra?t.extra():e.extra;return p?a.createVNode("div",{class:T(`${o}-extra`,i.value.classNames.extra,e.classNames.extra),style:e.styles.extra},[p]):null});return()=>l(a.createVNode(O.Flex,{class:T(o,i.value.className,e.className,e.rootClassName,s.value,c,`${o}-${e.variant}`,{[`${o}-rtl`]:n.value==="rtl"}),style:e.style},{default:()=>[d.value,a.createVNode(O.Flex,{vertical:!0,class:`${o}-content-wrapper`},{default:()=>[t.extra||e.extra?a.createVNode(O.Flex,{align:"flex-start",class:`${o}-title-wrapper`},{default:()=>[f.value,m.value]}):f.value,u.value&&a.createVNode(O.Typography.Text,{class:T(`${o}-description`,i.value.classNames.description,e.classNames.description),style:e.styles.description},{default:()=>[u.value]})]})]}))}}),Zc=e=>{const{componentCls:t}=e;return{[t]:{"&, & *":{boxSizing:"border-box"},maxWidth:"100%",[`&${t}-rtl`]:{direction:"rtl"},[`& ${t}-title`]:{marginBlockStart:0,fontWeight:"normal",color:e.colorTextTertiary},[`& ${t}-list`]:{display:"flex",gap:e.paddingSM,overflowX:"scroll","&::-webkit-scrollbar":{display:"none"},listStyle:"none",paddingInlineStart:0,marginBlock:0,alignItems:"stretch","&-wrap":{flexWrap:"wrap"},"&-vertical":{flexDirection:"column",alignItems:"flex-start"}},[`${t}-item`]:{flex:"none",display:"flex",gap:e.paddingXS,height:"auto",paddingBlock:e.paddingSM,paddingInline:e.padding,alignItems:"flex-start",justifyContent:"flex-start",background:e.colorBgContainer,borderRadius:e.borderRadiusLG,transition:["border","background"].map(n=>`${n} ${e.motionDurationSlow}`).join(","),border:`${Z(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`,[`&:not(${t}-item-has-nest)`]:{"&:hover":{cursor:"pointer",background:e.colorFillTertiary},"&:active":{background:e.colorFill}},[`${t}-content`]:{flex:"auto",minWidth:0,display:"flex",gap:e.paddingXXS,flexDirection:"column",alignItems:"flex-start"},[`${t}-icon, ${t}-label, ${t}-desc`]:{margin:0,padding:0,fontSize:e.fontSize,lineHeight:e.lineHeight,textAlign:"start",whiteSpace:"normal"},[`${t}-label`]:{color:e.colorTextHeading,fontWeight:500},[`${t}-label + ${t}-desc`]:{color:e.colorTextTertiary},[`&${t}-item-disabled`]:{pointerEvents:"none",background:e.colorBgContainerDisabled,[`${t}-label, ${t}-desc`]:{color:e.colorTextTertiary}}}}}},Yc=e=>{const{componentCls:t}=e;return{[t]:{[`${t}-item-has-nest`]:{[`> ${t}-content`]:{[`> ${t}-label`]:{fontSize:e.fontSizeLG,lineHeight:e.lineHeightLG}}},[`&${t}-nested`]:{marginTop:e.paddingXS,alignSelf:"stretch",[`${t}-list`]:{alignItems:"stretch"},[`${t}-item`]:{border:0,background:e.colorFillQuaternary}}}}},Qc=fe("Prompts",e=>{const t=ee(e,{});return[Zc(t),Yc(t)]},()=>({})),_o=a.defineComponent({name:"AXPrompts",__name:"Prompts",props:a.mergeDefaults({items:null,title:null,onItemClick:{type:Function},vertical:{type:Boolean},wrap:{type:Boolean},styles:null,classNames:null,prefixCls:null,rootClassName:null},{styles:()=>({}),classNames:()=>({})}),setup(e){const t=W(e,["prefixCls","title","class","items","onItemClick","vertical","wrap","rootClassName","styles","classNames","style"]);a.toRef(e,"class"),a.toRef(e,"prefixCls");const n=a.useSlots(),{getPrefixCls:r,direction:o}=G(),i=r("prompts",e.prefixCls),l=se("prompts"),[s,c,d]=Qc(i),f=a.computed(()=>T(i,l.value.className,e.class,e.rootClassName,c.value,d,{[`${i}-rtl`]:o.value==="rtl"})),u=a.computed(()=>T(`${i}-list`,l.value.classNames.list,e.classNames.list,{[`${i}-list-wrap`]:e.wrap},{[`${i}-list-vertical`]:e.vertical})),m=a.computed(()=>n.title?n.title():e.title);return()=>{var p;return s(a.createVNode("div",a.mergeProps(t,{class:f.value,style:{...typeof e.style=="object"?e.style:{},...typeof l.value.style=="object"?l.value.style:{}}}),[m.value&&a.createVNode(O.Typography.Title,{level:5,class:T(`${i}-title`,l.value.classNames.title,e.classNames.title),style:{...l.value.styles.title,...e.styles.title}},{default:()=>[m.value]}),a.createVNode("div",{class:u.value,style:{...l.value.styles.list,...e.styles.list}},[(p=e.items)==null?void 0:p.map((g,h)=>{const b=g.children&&g.children.length>0;return a.createVNode("div",{key:g.key||`key_${h}`,style:{...l.value.styles.item,...e.styles.item},class:T(`${i}-item`,l.value.classNames.item,e.classNames.item,{[`${i}-item-disabled`]:g.disabled,[`${i}-item-has-nest`]:b}),onClick:()=>{!b&&e.onItemClick&&e.onItemClick({data:g})}},[g.icon&&a.createVNode("div",{class:`${i}-icon`},[g.icon]),a.createVNode("div",{class:T(`${i}-content`,l.value.classNames.itemContent,e.classNames.itemContent),style:{...l.value.styles.itemContent,...e.styles.itemContent}},[g.label&&a.createVNode("h6",{class:`${i}-label`},[g.label]),g.description&&a.createVNode("p",{class:`${i}-desc`},[g.description]),b&&a.createVNode(_o,{class:`${i}-nested`,items:g.children,vertical:!0,onItemClick:e.onItemClick,classNames:{list:e.classNames.subList,item:e.classNames.subItem},styles:{list:e.styles.subList,item:e.styles.subItem}},null)])])})])]))}}}),Jc=e=>{const{componentCls:t,antCls:n}=e;return{[t]:{[`${n}-cascader-menus ${n}-cascader-menu`]:{height:"auto"},[`${t}-item`]:{"&-icon":{marginInlineEnd:e.paddingXXS},"&-extra":{marginInlineStart:e.padding}},[`&${t}-block`]:{[`${t}-item-extra`]:{marginInlineStart:"auto"}}}}},_c=fe("Suggestion",e=>{const t=ee(e,{});return Jc(t)},()=>({}));function ed(e,t,n,r,o){const[i,l]=L([]),s=(p,g=i.value)=>{let h=a.toValue(e);for(let b=0;b<p-1;b+=1){const v=g[b],w=h.find(C=>C.value===v);if(!w)break;h=w.children||[]}return h},c=p=>p.map((g,h)=>{const v=s(h+1,p).find(w=>w.value===g);return v==null?void 0:v.value}),d=p=>{const g=i.value.length||1,h=s(g),b=h.findIndex(C=>C.value===i.value[g-1]),v=h.length,w=h[(b+p+v)%v];l([...i.value.slice(0,g-1),w.value])},f=()=>{i.value.length>1&&l(i.value.slice(0,i.value.length-1))},u=()=>{const p=s(i.value.length+1);p.length&&l([...i.value,p[0].value])},m=mt(p=>{if(a.toValue(t))switch(console.log("e.key",p),p.key){case"ArrowDown":d(1),p.preventDefault();break;case"ArrowUp":d(-1),p.preventDefault();break;case"ArrowRight":a.toValue(n)?f():u(),p.preventDefault();break;case"ArrowLeft":a.toValue(n)?u():f(),p.preventDefault();break;case"Enter":s(i.value.length+1).length||r(c(i.value)),p.preventDefault();break;case"Escape":o(),p.preventDefault();break}});return a.watch(()=>a.toValue(t),()=>{a.toValue(t)&&l([a.toValue(e)[0].value])},{immediate:!0}),[i,m]}const td=a.defineComponent({name:"AXSuggestion",__name:"Suggestion",props:a.mergeDefaults({prefixCls:null,className:null,rootClassName:null,style:null,children:{type:Function},open:{type:Boolean},onOpenChange:{type:Function},items:{type:Function},onSelect:{type:Function},block:{type:Boolean},styles:null,classNames:null},{open:!1}),setup(e){a.toRef(e,"prefixCls");const t=a.useSlots(),{direction:n,getPrefixCls:r}=G(),o=a.computed(()=>r("suggestion",e.prefixCls));`${o.value}`;const i=a.computed(()=>n.value==="rtl"),l=se("suggestion"),[s,c,d]=_c(o),[f,u]=L(e.open),[m,p]=L(),g=x=>{var y;u(x),(y=e.onOpenChange)==null||y.call(e,x)},h=x=>{x===!1?g(!1):(p(x),g(!0))},b=()=>{g(!1)},v=a.computed(()=>typeof e.items=="function"?e.items(m.value):e.items),w=x=>{e.onSelect&&e.onSelect(x[x.length-1]),g(!1)},[C,S]=ed(v,f,i,w,b),$=a.computed(()=>{var x;return t.default?t.default({onTrigger:h,onKeyDown:S}):(x=e.children)==null?void 0:x.call(e,{onTrigger:h,onKeyDown:S})});return()=>s(a.createVNode(O.Cascader,{options:v.value,open:f.value,value:C.value,placement:i.value?"topRight":"topLeft",onDropdownVisibleChange:x=>{x||b()},class:T(e.rootClassName,o.value,c,d,{[`${o.value}-block`]:e.block}),onChange:w,dropdownMatchSelectWidth:e.block},{default:()=>a.createVNode("div",{class:T(o.value,l.value.className,e.rootClassName,e.className,`${o.value}-wrapper`,c.value,d),style:{...l.value.style,...e.style}},[$.value])}))}}),ea=Symbol("SenderHeaderContext"),In=a.shallowRef(),nd=e=>{a.provide(ea,e),a.watch(e,()=>{In.value=a.unref(e),a.triggerRef(In)},{immediate:!0,deep:!0})},rd=()=>a.inject(ea,a.computed(()=>In.value||{})),od=a.defineComponent({props:{value:ne()},setup(e,{slots:t}){return nd(a.computed(()=>e.value)),()=>{var n;return(n=t.default)==null?void 0:n.call(t)}}}),ta=Symbol("ActionButtonContext"),Hn=a.shallowRef(),ad=e=>{a.provide(ta,e),a.watch(e,()=>{Hn.value=a.unref(e),a.triggerRef(Hn)},{immediate:!0,deep:!0})},Vn=()=>a.inject(ta,a.computed(()=>Hn.value||{})),id=a.defineComponent({props:{value:ne()},setup(e,{slots:t}){return ad(a.computed(()=>e.value)),()=>{var n;return(n=t.default)==null?void 0:n.call(t)}}}),yt=a.defineComponent({name:"AXSenderActionButton",__name:"index",props:a.mergeDefaults({prefixCls:null,type:null,htmlType:null,shape:null,size:null,loading:null,disabled:null,ghost:null,block:null,danger:null,icon:null,href:null,target:null,title:null,onClick:null,onMousedown:null,action:null},{type:"text",disabled:void 0}),setup(e){const t=W(e,["action","type","disabled","onClick"]);a.toRef(e,"onClick"),a.toRef(e,"disabled");const n=a.useSlots(),r=Vn(),o=a.computed(()=>{var d;const s=r.value.disabled,c=(d=r.value)==null?void 0:d[`${e.action}Disabled`];return s??e.disabled??c}),i=a.computed(()=>r.value.prefixCls),l=a.computed(()=>{var s;return(s=r.value)==null?void 0:s[e.action]});return()=>a.createVNode(O.Button,a.mergeProps({type:e.type},t,{onClick:s=>{o.value||(l.value&&l.value(),e.onClick&&!Array.isArray(e.onClick)&&e.onClick(s))},class:T(i.value,{[`${i.value}-disabled`]:o.value})}),{icon:()=>n.default()})}}),ld=a.defineComponent({name:"AXSenderClearButton",__name:"ClearButton",props:a.mergeDefaults({prefixCls:null,type:null,htmlType:null,shape:null,size:null,loading:null,disabled:null,ghost:null,block:null,danger:null,icon:null,href:null,target:null,title:null,onClick:null,onMousedown:null},{disabled:void 0}),setup(e){const t=W(e,["disabled"]);return()=>a.createVNode(yt,a.mergeProps({disabled:e.disabled},t,{action:"onClear"}),{default:()=>[a.createVNode(yn,null,null)]})}}),sd=a.defineComponent({name:"AXSenderStopLoading",__name:"StopLoading",props:{className:null},setup(e){const t=e;return()=>a.createVNode("svg",{color:"currentColor",viewBox:"0 0 1000 1000",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",class:t.className},[a.createVNode("title",null,[a.createTextVNode("Stop Loading")]),a.createVNode("rect",{fill:"currentColor",height:"250",rx:"24",ry:"24",width:"250",x:"375",y:"375"},null),a.createVNode("circle",{cx:"500",cy:"500",fill:"none",r:"450",stroke:"currentColor","stroke-width":"100",opacity:"0.45"},null),a.createVNode("circle",{cx:"500",cy:"500",fill:"none",r:"450",stroke:"currentColor","stroke-width":"100","stroke-dasharray":"600 9999999"},[a.createVNode("animateTransform",{attributeName:"transform",dur:"1s",from:"0 500 500",repeatCount:"indefinite",to:"360 500 500",type:"rotate"},null)])])}}),na=a.defineComponent({name:"AXSenderLoadingButton",__name:"LoadingButton",props:a.mergeDefaults({prefixCls:null,type:null,htmlType:null,shape:null,size:null,loading:null,disabled:null,ghost:null,block:null,danger:null,icon:null,href:null,target:null,title:null,onClick:null,onMousedown:null},{type:"primary",shape:"circle",icon:null,disabled:void 0}),setup(e){const t=W(e,["type","shape","icon","disabled"]),n=Vn(),{token:r}=O.theme.useToken();return()=>a.createVNode(yt,a.mergeProps({type:e.type,disabled:e.disabled,shape:e.shape},t,{style:{backgroundColor:"transparent",color:r.value.colorPrimary},class:T(`${n.value.prefixCls}-loading-button`),action:"onCancel"}),{default:()=>[a.createVNode(sd,{className:`${n.value.prefixCls}-loading-icon`},null)]})}}),ra=a.defineComponent({name:"AXSenderLoadingButton",__name:"SendButton",props:a.mergeDefaults({prefixCls:null,type:null,htmlType:null,shape:null,size:null,loading:null,disabled:null,ghost:null,block:null,danger:null,icon:null,href:null,target:null,title:null,onClick:null,onMousedown:null},{type:"primary",shape:"circle",disabled:void 0}),setup(e){const t=W(e,["type","shape","disabled"]);return()=>a.createVNode(yt,a.mergeProps({type:e.type,shape:e.shape,disabled:e.disabled},t,{action:"onSend"}),{default:()=>[a.createVNode(gn,null,null)]})}}),qe=1e3,Ue=4,St=140,Ct=250,oa=500,vt=.8,cd=a.defineComponent({name:"AXSenderRecordingIcon",__name:"RecordingIcon",props:{className:null},setup(e){const t=St/2;return()=>a.createVNode("svg",{color:"currentColor",viewBox:`0 0 ${qe} ${qe}`,xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",class:e.className},[a.createVNode("title",null,[a.createTextVNode("Speech Recording")]),Array.from({length:Ue}).map((n,r)=>{const o=(qe-St*Ue)/(Ue-1),i=r*(o+St),l=qe/2-Ct/2,s=qe/2-oa/2;return a.createVNode("rect",{fill:"currentColor",rx:t,ry:t,height:Ct,width:St,x:i,y:l,key:r},[a.createVNode("animate",{attributeName:"height",values:`${Ct}; ${oa}; ${Ct}`,keyTimes:"0; 0.5; 1",dur:`${vt}s`,begin:`${vt/Ue*r}s`,repeatCount:"indefinite"},null),a.createVNode("animate",{attributeName:"y",values:`${l}; ${s}; ${l}`,keyTimes:"0; 0.5; 1",dur:`${vt}s`,begin:`${vt/Ue*r}s`,repeatCount:"indefinite"},null)])})])}}),dd=a.defineComponent({name:"AXSenderSpeechButton",__name:"index",props:a.mergeDefaults({prefixCls:null,type:null,htmlType:null,shape:null,size:null,loading:null,disabled:null,ghost:null,block:null,danger:null,icon:null,href:null,target:null,title:null,onClick:null,onMousedown:null},{type:"text",disabled:void 0}),setup(e){const t=W(e,["type","disabled"]),n=Vn(),{token:r}=O.theme.useToken(),o=a.computed(()=>n.value.speechRecording),i=a.computed(()=>n.value.prefixCls),l=a.computed(()=>{let s;return o.value?s=a.createVNode(cd,{className:`${i.value}-recording-icon`},null):n.value.onSpeechDisabled?s=a.createVNode(pn,null,null):s=a.createVNode(bn,null,null),s});return()=>a.createVNode(yt,a.mergeProps({type:e.type,disabled:e.disabled},t,{style:{display:"flex",justifyContent:"center",alignItems:"center",color:r.value.colorPrimary},action:"onSpeech"}),{default:()=>[l.value]})}}),ud=e=>{const{componentCls:t,calc:n}=e,r=`${t}-header`;return{[t]:{[r]:{borderBottomWidth:e.lineWidth,borderBottomStyle:"solid",borderBottomColor:e.colorBorder,"&-header":{background:e.colorFillAlter,fontSize:e.fontSize,lineHeight:e.lineHeight,paddingBlock:n(e.paddingSM).sub(e.lineWidthBold).equal(),paddingInlineStart:e.padding,paddingInlineEnd:e.paddingXS,display:"flex",[`${r}-title`]:{flex:"auto"}},"&-content":{padding:e.padding},"&-motion":{transition:["height","border"].map(o=>`${o} ${e.motionDurationSlow}`).join(","),overflow:"hidden","&-enter-start, &-leave-active":{borderBottomColor:"transparent"},"&-hidden":{display:"none"}},"&-collapse-transition":{"&-enter-active":{transition:["max-height","padding-top","padding-bottom"].map(o=>`${o} ${e.motionDurationSlow} ${e.motionEaseInOut}`).join(",")},"&-leave-active":{transition:["max-height","padding-top","padding-bottom"].map(o=>`${o} ${e.motionDurationSlow} ${e.motionEaseInOut}`).join(",")}}}}}},fd=e=>{const{componentCls:t,padding:n,paddingSM:r,paddingXS:o,lineWidth:i,lineWidthBold:l,calc:s}=e;return{[t]:{position:"relative",width:"100%",boxSizing:"border-box",boxShadow:`${e.boxShadowTertiary}`,transition:`background ${e.motionDurationSlow}`,borderRadius:{_skip_check_:!0,value:s(e.borderRadius).mul(2).equal()},borderColor:e.colorBorder,borderWidth:0,borderStyle:"solid","&:after":{content:'""',position:"absolute",inset:0,pointerEvents:"none",transition:`border-color ${e.motionDurationSlow}`,borderRadius:{_skip_check_:!0,value:"inherit"},borderStyle:"inherit",borderColor:"inherit",borderWidth:i},"&:focus-within":{boxShadow:`${e.boxShadowSecondary}`,borderColor:e.colorPrimary,"&:after":{borderWidth:l}},"&-disabled":{background:e.colorBgContainerDisabled},[`&${t}-rtl`]:{direction:"rtl"},[`${t}-content`]:{display:"flex",gap:o,width:"100%",paddingBlock:r,paddingInlineStart:n,paddingInlineEnd:r,boxSizing:"border-box",alignItems:"flex-end"},[`${t}-prefix`]:{flex:"none"},[`${t}-input`]:{padding:0,borderRadius:0,flex:"auto",alignSelf:"center",minHeight:"auto"},[`${t}-actions-list`]:{flex:"none",display:"flex","&-presets":{gap:e.paddingXS}},[`${t}-actions-btn`]:{"&-disabled":{opacity:.45},"&-loading-button":{padding:0,border:0},"&-loading-icon":{height:e.controlHeight,width:e.controlHeight,verticalAlign:"top"},"&-recording-icon":{height:"1.2em",width:"1.2em",verticalAlign:"top"}}}}},hd=fe("Sender",e=>{const{paddingXS:t,calc:n}=e,r=ee(e,{SenderContentMaxWidth:`calc(100% - ${Z(n(t).add(32).equal())})`});return[fd(r),ud(r)]},()=>({}));let xt;!xt&&typeof window<"u"&&(xt=window.SpeechRecognition||window.webkitSpeechRecognition);function md(e,t){const n=e,r=a.computed(()=>{const h=a.toValue(t);return typeof h=="object"?{controlledRecording:h.recording,onControlledRecordingChange:h.onRecordingChange,speechInControlled:typeof h.recording=="boolean"}:{controlledRecording:void 0,onControlledRecordingChange:void 0,speechInControlled:!1}}),o=a.computed(()=>r.value.controlledRecording),i=r.value.onControlledRecordingChange,l=r.value.speechInControlled,s=a.ref(null);a.watchEffect(()=>{if(typeof navigator<"u"&&"permissions"in navigator){let h=null;navigator.permissions.query({name:"microphone"}).then(b=>{s.value=b.state,b.onchange=function(){s.value=this.state},h=b}),a.onWatcherCleanup(()=>{h&&(h.onchange=null)})}});const c=a.computed(()=>xt&&s.value!=="denied"),d=a.ref(null),[f,u]=Jo(!1,{value:o}),m=a.ref(!1),p=()=>{if(c.value&&!d.value){const h=new xt;h.onstart=()=>{u(!0)},h.onend=()=>{u(!1)},h.onresult=b=>{var v,w,C;if(!m.value){const S=(C=(w=(v=b.results)==null?void 0:v[0])==null?void 0:w[0])==null?void 0:C.transcript;n(S)}m.value=!1},d.value=h}};return{speechPermission:c,triggerSpeech:h=>{h&&!f.value||(m.value=h,l?i==null||i(!f.value):(p(),d.value&&(f.value?(d.value.stop(),i==null||i(!1)):(d.value.start(),i==null||i(!0)))))},recording:f}}function gd(e,t){for(var n=e,r=0;r<t.length;r+=1){if(n==null)return;n=n[t[r]]}return n}const pd=a.defineComponent({name:"AXSender",__name:"Sender",props:a.mergeDefaults({onKeyPress:{type:Function},prefixCls:null,defaultValue:null,value:null,loading:{type:Boolean},placeholder:null,readOnly:{type:Boolean},submitType:{type:[String,Boolean]},disabled:{type:Boolean},onSubmit:{type:Function},onChange:{type:Function},onCancel:null,onKeyDown:{type:Function},onPaste:{type:Function},onPasteFile:{type:Function},components:null,styles:null,rootClassName:null,classNames:null,style:null,className:null,actions:{type:Function},allowSpeech:null,prefix:null,header:null},{styles:()=>({}),classNames:()=>({}),submitType:"enter",disabled:void 0}),emits:["update:value"],setup(e,{expose:t,emit:n}){const r=W(e,["prefixCls","styles","classNames","className","rootClassName","style","defaultValue","value","placeholder","readOnly","submitType","onSubmit","loading","components","onCancel","onChange","actions","onKeyPress","onKeyDown","disabled","allowSpeech","prefix","header","onPaste","onPasteFile"]);a.toRef(e,"prefixCls");function o(E,z,le){return gd(E,z)||le}const i=n,l=a.useSlots(),{direction:s,getPrefixCls:c}=G(),d=a.computed(()=>c("sender",e.prefixCls)),f=a.ref(null),u=a.ref(null),m=se("sender"),p=a.computed(()=>`${d.value}-input`),[g,h,b]=hd(d.value),v=a.computed(()=>T(d.value,m.value.className,e.className,e.rootClassName,h.value,b,{[`${d.value}-rtl`]:s.value==="rtl",[`${d.value}-disabled`]:e.disabled})),w=a.computed(()=>`${d.value}-actions-btn`),C=a.computed(()=>`${d.value}-actions-list`),S=a.ref(e.value??e.defaultValue??""),$=E=>{S.value=E};a.watch(()=>e.value,()=>{$(e.value)});const x=(E,z)=>{$(E),i("update:value",E),e.onChange&&e.onChange(E,z)},{speechPermission:y,triggerSpeech:N,recording:A}=md(E=>{x(`${S.value} ${E}`)},()=>e.allowSpeech),P=o(e.components,["input"],O.Input.TextArea),R=a.computed(()=>Me(r,{attr:!0,aria:!0,data:!0})),F=a.computed(()=>({...R.value,ref:u})),I=()=>{S.value&&e.onSubmit&&!e.loading&&e.onSubmit(S.value)},B=()=>{x("")},X=a.ref(!1),J=()=>{X.value=!0},Ie=()=>{X.value=!1},Un=E=>{const z=E.key==="Enter"&&!X.value;switch(e.submitType){case"enter":z&&!E.shiftKey&&(E.preventDefault(),I());break;case"shiftEnter":z&&E.shiftKey&&(E.preventDefault(),I());break}e.onKeyPress&&e.onKeyPress(E)},xe=E=>{var le,Qe;const z=(le=E.clipboardData)==null?void 0:le.files[0];z&&e.onPasteFile&&(e.onPasteFile(z),E.preventDefault()),(Qe=e.onPaste)==null||Qe.call(e,E)},He=E=>{var z,le;E.target!==((z=f.value)==null?void 0:z.querySelector(`.${p.value}`))&&E.preventDefault(),(le=u.value)==null||le.focus()},me=a.computed(()=>{let E=a.createVNode(O.Flex,{class:`${C.value}-presets`},{default:()=>[e.allowSpeech&&a.createVNode(dd,null,null),e.loading?a.createVNode(na,null,null):a.createVNode(ra,null,null)]});const z={components:{SendButton:ra,ClearButton:ld,LoadingButton:na}};return l.actions?E=l.actions({ori:E,info:z}):typeof e.actions=="function"?E=e.actions(E,z):e.actions&&(E=e.actions),E}),Tt=a.computed(()=>l.header?l.header():e.header),Ye=a.computed(()=>l.prefix?l.prefix():e.prefix);return t({nativeElement:f.value,focus:E=>{var z;return(z=u.value)==null?void 0:z.focus(E)},blur:()=>{var E;return(E=u.value)==null?void 0:E.blur()}}),()=>g(a.createVNode("div",{ref:f,class:v.value,style:{...m.value.style,...e.style}},[Tt.value&&a.createVNode(od,{value:{prefixCls:d.value}},{default:()=>[Tt.value]}),a.createVNode("div",{class:`${d.value}-content`,onMousedown:He},[Ye.value&&a.createVNode("div",{class:T(`${d.value}-prefix`,m.value.classNames.prefix,e.classNames.prefix),style:{...m.value.styles.prefix,...e.styles.prefix}},[Ye.value]),a.createVNode(P,a.mergeProps(F.value,{disabled:e.disabled,style:{...m.value.styles.input,...e.styles.input},class:T(p.value,m.value.classNames.input,e.classNames.input),autoSize:{maxRows:8},value:S.value,onChange:E=>{x(E.target.value,E),N(!0)},onPressEnter:Un,onCompositionstart:J,onCompositionend:Ie,onKeydown:e.onKeyDown,placeholder:e.placeholder,onPaste:xe,bordered:!1,readOnly:e.readOnly}),null),a.createVNode("div",{class:T(C.value,m.value.classNames.actions,e.classNames.actions),style:{...m.value.styles.actions,...e.styles.actions}},[a.createVNode(id,{value:{prefixCls:w.value,onSend:I,onSendDisabled:!S.value,onClear:B,onClearDisabled:!S.value,onCancel:e.onCancel,onCancelDisabled:!e.loading,onSpeech:()=>N(!1),onSpeechDisabled:!y.value,speechRecording:A.value,disabled:e.disabled}},{default:()=>[me.value]})])])]))}}),bd=a.defineComponent({name:"AXCollapseTransition",__name:"CollapseTransition",props:{prefixCls:null},setup(e){const t=e,n=a.computed(()=>t.prefixCls+"-collapse-transition"),r={beforeEnter(o){o.dataset||(o.dataset={}),o.dataset.oldPaddingTop=o.style.paddingTop,o.dataset.oldPaddingBottom=o.style.paddingBottom,o.style.maxHeight=0,o.style.paddingTop=0,o.style.paddingBottom=0},enter(o){o.dataset.oldOverflow=o.style.overflow,o.scrollHeight!==0?(o.style.maxHeight=`${o.scrollHeight}px`,o.style.paddingTop=o.dataset.oldPaddingTop,o.style.paddingBottom=o.dataset.oldPaddingBottom):(o.style.maxHeight=`${o.dataset.oldMaxHeight||999}px`,o.style.paddingTop=o.dataset.oldPaddingTop,o.style.paddingBottom=o.dataset.oldPaddingBottom),o.style.overflow="hidden"},afterEnter(o){o.style.maxHeight="",o.style.overflow=o.dataset.oldOverflow},beforeLeave(o){o.dataset||(o.dataset={}),o.dataset.oldMaxHeight=o.scrollHeight,o.dataset.oldPaddingTop=o.style.paddingTop,o.dataset.oldPaddingBottom=o.style.paddingBottom,o.dataset.oldOverflow=o.style.overflow,o.style.overflow="hidden",o.style.maxHeight=`${o.scrollHeight}px`},leave(o){o.scrollHeight!==0&&(o.style.maxHeight=0,o.style.paddingTop=0,o.style.paddingBottom=0)},afterLeave(o){o.style.maxHeight="",o.style.overflow=o.dataset.oldOverflow,o.style.paddingTop=o.dataset.oldPaddingTop,o.style.paddingBottom=o.dataset.oldPaddingBottom}};return(o,i)=>(a.openBlock(),a.createBlock(a.Transition,a.mergeProps({name:n.value},a.toHandlers(r)),{default:a.withCtx(()=>[a.renderSlot(o.$slots,"default")]),_:3},16,["name"]))}}),yd=a.defineComponent({name:"AXSenderHeader",inheritAttrs:!1,__name:"SenderHeader",props:a.mergeDefaults({forceRender:{type:Boolean},open:{type:Boolean},onOpenChange:{type:Function},title:null,children:null,className:null,style:null,classNames:null,styles:null,closable:{type:Boolean}},{classNames:()=>({}),styles:()=>({})}),setup(e){a.toRef(e,"classNames");const t=a.useSlots(),n=rd(),r=a.computed(()=>`${n.value.prefixCls}-header`),o=a.useAttrs();return()=>a.createVNode(bd,{prefixCls:r.value},{default:()=>{var i;return[e.open&&a.createVNode("div",a.mergeProps(o,{class:T(r.value,e.className),style:{...e.style}}),[(e.closable!==!1||e.title)&&a.createVNode("div",{class:T(`${r.value}-header`,e.classNames.header),style:{...e.styles.header}},[a.createVNode("div",{class:`${r.value}-title`},[e.title]),e.closable!==!1&&a.createVNode("div",{class:`${r.value}-close`},[a.createVNode(O.Button,{type:"text",icon:a.createVNode(Cn,null,null),size:"small",onClick:()=>{var l;(l=e.onOpenChange)==null||l.call(e,!e.open)}},null)])]),t.default&&a.createVNode("div",{class:T(`${r.value}-content`,e.classNames.content),style:{...e.styles.content}},[(i=t.default)==null?void 0:i.call(t)])])]}})}}),Sd=Object.assign(pd,{Header:yd}),aa=Symbol("AttachmentContext"),Bn=a.shallowRef(),Cd=e=>{a.provide(aa,e),a.watch(e,()=>{Bn.value=a.unref(e),a.triggerRef(Bn)},{immediate:!0,deep:!0})},wt=()=>a.inject(aa,a.computed(()=>Bn.value||{})),vd=a.defineComponent({inheritAttrs:!1,props:{value:ne()},setup(e,{slots:t}){return Cd(a.computed(()=>e.value)),()=>{var n;return(n=t.default)==null?void 0:n.call(t)}}}),xd=a.defineComponent({name:"AXAttachmentsPlaceholderUploader",__name:"PlaceholderUploader",props:a.mergeDefaults({prefixCls:null,placeholder:null,upload:null,className:null,style:null},{placeholder:()=>({})}),setup(e,{expose:t}){const n=`${e.prefixCls}-placeholder`,r=a.computed(()=>e.placeholder||{}),o=a.useTemplateRef("upload-dragger"),i=wt(),[l,s]=L(!1),c=()=>{s(!0)},d=m=>{m.currentTarget.contains(m.relatedTarget)||s(!1)},f=()=>{s(!1)};t({nativeElement:o});const u=a.computed(()=>a.isVNode(e.placeholder)?e.placeholder:a.createVNode(O.Flex,{align:"center",justify:"center",vertical:!0,class:`${n}-inner`},{default:()=>[a.createVNode(O.Typography.Text,{class:`${n}-icon`},{default:()=>[r.value.icon]}),a.createVNode(O.Typography.Title,{class:`${n}-title`,level:5},{default:()=>[r.value.title]}),a.createVNode(O.Typography.Text,{class:`${n}-description`,type:"secondary"},{default:()=>[r.value.description]})]}));return()=>a.createVNode("div",{class:T(n,{[`${n}-drag-in`]:l.value,[`${n}-disabled`]:i.value.disabled},e.className),onDragenter:c,onDragleave:d,onDrop:f,"aria-hidden":i.value.disabled,style:e.style},[a.createVNode(O.Upload.Dragger,a.mergeProps({showUploadList:!1},e.upload,{ref:"upload-dragger",style:{padding:0,border:0,background:"transparent"}}),{default:()=>[u.value]})])}}),ia=a.defineComponent({name:"AXAttachmentsDropArea",__name:"DropArea",props:{prefixCls:null,className:null,getDropContainer:{type:Function},children:null},setup(e){const t=wt(),[n,r]=L(),[o,i]=L(null);a.watch(()=>e.getDropContainer,()=>{var d;const c=(d=e.getDropContainer)==null?void 0:d.call(e);n.value!==c&&r(c)}),a.watch(()=>!!n.value,()=>{if(n.value){const c=()=>{i(!0)},d=m=>{m.preventDefault()},f=m=>{m.relatedTarget||i(!1)},u=m=>{i(!1),m.preventDefault()};document.addEventListener("dragenter",c),document.addEventListener("dragover",d),document.addEventListener("dragleave",f),document.addEventListener("drop",u),a.onWatcherCleanup(()=>{document.removeEventListener("dragenter",c),document.removeEventListener("dragover",d),document.removeEventListener("dragleave",f),document.removeEventListener("drop",u)})}});const l=a.computed(()=>e.getDropContainer&&n.value&&!t.value.disabled),s=`${e.prefixCls}-drop-area`;return()=>l.value?a.createVNode(a.Teleport,{to:n.value},{default:()=>[a.createVNode("div",{class:T(s,e.className,{[`${s}-on-body`]:n.value.tagName==="BODY"}),style:{display:o.value?"block":"none"}},[e.children])]}):null}}),la=a.defineComponent({name:"AXAttachmentsSilentUploader",__name:"SilentUploader",props:{children:null,upload:null,rootClassName:null},setup(e,{expose:t}){const n=a.useTemplateRef("upload");return t({nativeElement:n}),()=>a.createVNode(O.Upload,a.mergeProps(e.upload,{showUploadList:!1,ref:"upload"}),{default:()=>[e.children]})}}),sa=(e,t)=>{const n=e.__vccOpts||e;for(const[r,o]of t)n[r]=o;return n},wd={},$d={width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"};function Nd(e,t){return a.openBlock(),a.createElementBlock("svg",$d,t[0]||(t[0]=[a.createElementVNode("title",null,"audio",-1),a.createElementVNode("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},[a.createElementVNode("path",{d:"M14.1178571,4.0125 C14.225,4.11964286 14.2857143,4.26428571 14.2857143,4.41607143 L14.2857143,15.4285714 C14.2857143,15.7446429 14.0303571,16 13.7142857,16 L2.28571429,16 C1.96964286,16 1.71428571,15.7446429 1.71428571,15.4285714 L1.71428571,0.571428571 C1.71428571,0.255357143 1.96964286,0 2.28571429,0 L9.86964286,0 C10.0214286,0 10.1678571,0.0607142857 10.275,0.167857143 L14.1178571,4.0125 Z M10.7315824,7.11216117 C10.7428131,7.15148751 10.7485063,7.19218979 10.7485063,7.23309113 L10.7485063,8.07742614 C10.7484199,8.27364959 10.6183424,8.44607275 10.4296853,8.50003683 L8.32984514,9.09986306 L8.32984514,11.7071803 C8.32986605,12.5367078 7.67249692,13.217028 6.84345686,13.2454634 L6.79068592,13.2463395 C6.12766108,13.2463395 5.53916361,12.8217001 5.33010655,12.1924966 C5.1210495,11.563293 5.33842118,10.8709227 5.86959669,10.4741173 C6.40077221,10.0773119 7.12636292,10.0652587 7.67042486,10.4442027 L7.67020842,7.74937024 L7.68449368,7.74937024 C7.72405122,7.59919041 7.83988806,7.48101083 7.98924584,7.4384546 L10.1880418,6.81004755 C10.42156,6.74340323 10.6648954,6.87865515 10.7315824,7.11216117 Z M9.60714286,1.31785714 L12.9678571,4.67857143 L9.60714286,4.67857143 L9.60714286,1.31785714 Z",fill:"currentColor"})],-1)]))}const Td=sa(wd,[["render",Nd]]),Pd={},Od={width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"};function Ed(e,t){return a.openBlock(),a.createElementBlock("svg",Od,t[0]||(t[0]=[a.createElementVNode("title",null,"video",-1),a.createElementVNode("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},[a.createElementVNode("path",{d:"M14.1178571,4.0125 C14.225,4.11964286 14.2857143,4.26428571 14.2857143,4.41607143 L14.2857143,15.4285714 C14.2857143,15.7446429 14.0303571,16 13.7142857,16 L2.28571429,16 C1.96964286,16 1.71428571,15.7446429 1.71428571,15.4285714 L1.71428571,0.571428571 C1.71428571,0.255357143 1.96964286,0 2.28571429,0 L9.86964286,0 C10.0214286,0 10.1678571,0.0607142857 10.275,0.167857143 L14.1178571,4.0125 Z M12.9678571,4.67857143 L9.60714286,1.31785714 L9.60714286,4.67857143 L12.9678571,4.67857143 Z M10.5379461,10.3101106 L6.68957555,13.0059749 C6.59910784,13.0693494 6.47439406,13.0473861 6.41101953,12.9569184 C6.3874624,12.9232903 6.37482581,12.8832269 6.37482581,12.8421686 L6.37482581,7.45043999 C6.37482581,7.33998304 6.46436886,7.25043999 6.57482581,7.25043999 C6.61588409,7.25043999 6.65594753,7.26307658 6.68957555,7.28663371 L10.5379461,9.98249803 C10.6284138,10.0458726 10.6503772,10.1705863 10.5870027,10.2610541 C10.5736331,10.2801392 10.5570312,10.2967411 10.5379461,10.3101106 Z",fill:"currentColor"})],-1)]))}const Ad=sa(Pd,[["render",Ed]]),Rd=e=>e.indexOf("image/")===0,$t=200;function Md(e){return new Promise(t=>{if(!e||!e.type||!Rd(e.type)){t("");return}const n=new Image;if(n.onload=()=>{const{width:r,height:o}=n,i=r/o,l=i>1?$t:$t*i,s=i>1?$t/i:$t,c=document.createElement("canvas");c.width=l,c.height=s,c.style.cssText=`position: fixed; left: 0; top: 0; width: ${l}px; height: ${s}px; z-index: 9999; display: none;`,document.body.appendChild(c),c.getContext("2d").drawImage(n,0,0,l,s);const f=c.toDataURL();document.body.removeChild(c),window.URL.revokeObjectURL(n.src),t(f)},n.crossOrigin="anonymous",e.type.startsWith("image/svg+xml")){const r=new FileReader;r.onload=()=>{r.result&&typeof r.result=="string"&&(n.src=r.result)},r.readAsDataURL(e)}else if(e.type.startsWith("image/gif")){const r=new FileReader;r.onload=()=>{r.result&&t(r.result)},r.readAsDataURL(e)}else n.src=window.URL.createObjectURL(e)})}function Ke(e){"@babel/helpers - typeof";return Ke=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ke(e)}function Id(e,t){if(Ke(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Ke(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Hd(e){var t=Id(e,"string");return Ke(t)=="symbol"?t:t+""}function K(e,t,n){return(t=Hd(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const D=Math.round;function Ln(e,t){const n=e.replace(/^[^(]*\((.*)/,"$1").replace(/\).*/,"").match(/\d*\.?\d+%?/g)||[],r=n.map(o=>parseFloat(o));for(let o=0;o<3;o+=1)r[o]=t(r[o]||0,n[o]||"",o);return n[3]?r[3]=n[3].includes("%")?r[3]/100:r[3]:r[3]=1,r}const ca=(e,t,n)=>n===0?e:e/100;function Ze(e,t){const n=t||255;return e>n?n:e<0?0:e}class jn{constructor(t){K(this,"isValid",!0),K(this,"r",0),K(this,"g",0),K(this,"b",0),K(this,"a",1),K(this,"_h",void 0),K(this,"_s",void 0),K(this,"_l",void 0),K(this,"_v",void 0),K(this,"_max",void 0),K(this,"_min",void 0),K(this,"_brightness",void 0);function n(r){return r[0]in t&&r[1]in t&&r[2]in t}if(t)if(typeof t=="string"){let o=function(i){return r.startsWith(i)};const r=t.trim();/^#?[A-F\d]{3,8}$/i.test(r)?this.fromHexString(r):o("rgb")?this.fromRgbString(r):o("hsl")?this.fromHslString(r):(o("hsv")||o("hsb"))&&this.fromHsvString(r)}else if(t instanceof jn)this.r=t.r,this.g=t.g,this.b=t.b,this.a=t.a,this._h=t._h,this._s=t._s,this._l=t._l,this._v=t._v;else if(n("rgb"))this.r=Ze(t.r),this.g=Ze(t.g),this.b=Ze(t.b),this.a=typeof t.a=="number"?Ze(t.a,1):1;else if(n("hsl"))this.fromHsl(t);else if(n("hsv"))this.fromHsv(t);else throw new Error("@ant-design/fast-color: unsupported input "+JSON.stringify(t))}setR(t){return this._sc("r",t)}setG(t){return this._sc("g",t)}setB(t){return this._sc("b",t)}setA(t){return this._sc("a",t,1)}setHue(t){const n=this.toHsv();return n.h=t,this._c(n)}getLuminance(){function t(i){const l=i/255;return l<=.03928?l/12.92:Math.pow((l+.055)/1.055,2.4)}const n=t(this.r),r=t(this.g),o=t(this.b);return .2126*n+.7152*r+.0722*o}getHue(){if(typeof this._h>"u"){const t=this.getMax()-this.getMin();t===0?this._h=0:this._h=D(60*(this.r===this.getMax()?(this.g-this.b)/t+(this.g<this.b?6:0):this.g===this.getMax()?(this.b-this.r)/t+2:(this.r-this.g)/t+4))}return this._h}getSaturation(){if(typeof this._s>"u"){const t=this.getMax()-this.getMin();t===0?this._s=0:this._s=t/this.getMax()}return this._s}getLightness(){return typeof this._l>"u"&&(this._l=(this.getMax()+this.getMin())/510),this._l}getValue(){return typeof this._v>"u"&&(this._v=this.getMax()/255),this._v}getBrightness(){return typeof this._brightness>"u"&&(this._brightness=(this.r*299+this.g*587+this.b*114)/1e3),this._brightness}darken(t=10){const n=this.getHue(),r=this.getSaturation();let o=this.getLightness()-t/100;return o<0&&(o=0),this._c({h:n,s:r,l:o,a:this.a})}lighten(t=10){const n=this.getHue(),r=this.getSaturation();let o=this.getLightness()+t/100;return o>1&&(o=1),this._c({h:n,s:r,l:o,a:this.a})}mix(t,n=50){const r=this._c(t),o=n/100,i=s=>(r[s]-this[s])*o+this[s],l={r:D(i("r")),g:D(i("g")),b:D(i("b")),a:D(i("a")*100)/100};return this._c(l)}tint(t=10){return this.mix({r:255,g:255,b:255,a:1},t)}shade(t=10){return this.mix({r:0,g:0,b:0,a:1},t)}onBackground(t){const n=this._c(t),r=this.a+n.a*(1-this.a),o=i=>D((this[i]*this.a+n[i]*n.a*(1-this.a))/r);return this._c({r:o("r"),g:o("g"),b:o("b"),a:r})}isDark(){return this.getBrightness()<128}isLight(){return this.getBrightness()>=128}equals(t){return this.r===t.r&&this.g===t.g&&this.b===t.b&&this.a===t.a}clone(){return this._c(this)}toHexString(){let t="#";const n=(this.r||0).toString(16);t+=n.length===2?n:"0"+n;const r=(this.g||0).toString(16);t+=r.length===2?r:"0"+r;const o=(this.b||0).toString(16);if(t+=o.length===2?o:"0"+o,typeof this.a=="number"&&this.a>=0&&this.a<1){const i=D(this.a*255).toString(16);t+=i.length===2?i:"0"+i}return t}toHsl(){return{h:this.getHue(),s:this.getSaturation(),l:this.getLightness(),a:this.a}}toHslString(){const t=this.getHue(),n=D(this.getSaturation()*100),r=D(this.getLightness()*100);return this.a!==1?`hsla(${t},${n}%,${r}%,${this.a})`:`hsl(${t},${n}%,${r}%)`}toHsv(){return{h:this.getHue(),s:this.getSaturation(),v:this.getValue(),a:this.a}}toRgb(){return{r:this.r,g:this.g,b:this.b,a:this.a}}toRgbString(){return this.a!==1?`rgba(${this.r},${this.g},${this.b},${this.a})`:`rgb(${this.r},${this.g},${this.b})`}toString(){return this.toRgbString()}_sc(t,n,r){const o=this.clone();return o[t]=Ze(n,r),o}_c(t){return new this.constructor(t)}getMax(){return typeof this._max>"u"&&(this._max=Math.max(this.r,this.g,this.b)),this._max}getMin(){return typeof this._min>"u"&&(this._min=Math.min(this.r,this.g,this.b)),this._min}fromHexString(t){const n=t.replace("#","");function r(o,i){return parseInt(n[o]+n[i||o],16)}n.length<6?(this.r=r(0),this.g=r(1),this.b=r(2),this.a=n[3]?r(3)/255:1):(this.r=r(0,1),this.g=r(2,3),this.b=r(4,5),this.a=n[6]?r(6,7)/255:1)}fromHsl({h:t,s:n,l:r,a:o}){if(this._h=t%360,this._s=n,this._l=r,this.a=typeof o=="number"?o:1,n<=0){const m=D(r*255);this.r=m,this.g=m,this.b=m}let i=0,l=0,s=0;const c=t/60,d=(1-Math.abs(2*r-1))*n,f=d*(1-Math.abs(c%2-1));c>=0&&c<1?(i=d,l=f):c>=1&&c<2?(i=f,l=d):c>=2&&c<3?(l=d,s=f):c>=3&&c<4?(l=f,s=d):c>=4&&c<5?(i=f,s=d):c>=5&&c<6&&(i=d,s=f);const u=r-d/2;this.r=D((i+u)*255),this.g=D((l+u)*255),this.b=D((s+u)*255)}fromHsv({h:t,s:n,v:r,a:o}){this._h=t%360,this._s=n,this._v=r,this.a=typeof o=="number"?o:1;const i=D(r*255);if(this.r=i,this.g=i,this.b=i,n<=0)return;const l=t/60,s=Math.floor(l),c=l-s,d=D(r*(1-n)*255),f=D(r*(1-n*c)*255),u=D(r*(1-n*(1-c))*255);switch(s){case 0:this.g=u,this.b=d;break;case 1:this.r=f,this.b=d;break;case 2:this.r=d,this.b=u;break;case 3:this.r=d,this.g=f;break;case 4:this.r=u,this.g=d;break;case 5:default:this.g=d,this.b=f;break}}fromHsvString(t){const n=Ln(t,ca);this.fromHsv({h:n[0],s:n[1],v:n[2],a:n[3]})}fromHslString(t){const n=Ln(t,ca);this.fromHsl({h:n[0],s:n[1],l:n[2],a:n[3]})}fromRgbString(t){const n=Ln(t,(r,o)=>o.includes("%")?D(r/100*255):r);this.r=n[0],this.g=n[1],this.b=n[2],this.a=n[3]}}const Vd=e=>{const{componentCls:t,calc:n}=e,r=`${t}-list-card`,o=n(e.fontSize).mul(e.lineHeight).mul(2).add(e.paddingSM).add(e.paddingSM).equal();return{[r]:{borderRadius:e.borderRadius,position:"relative",background:e.colorFillContent,borderWidth:e.lineWidth,borderStyle:"solid",borderColor:"transparent",flex:"none",[`${r}-name,${r}-desc`]:{display:"flex",flexWrap:"nowrap",maxWidth:"100%"},[`${r}-ellipsis-prefix`]:{flex:"0 1 auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},[`${r}-ellipsis-suffix`]:{flex:"none"},"&-type-overview":{padding:n(e.paddingSM).sub(e.lineWidth).equal(),paddingInlineStart:n(e.padding).add(e.lineWidth).equal(),display:"flex",flexWrap:"nowrap",gap:e.paddingXS,alignItems:"flex-start",width:236,[`${r}-icon`]:{fontSize:n(e.fontSizeLG).mul(2).equal(),lineHeight:1,paddingTop:n(e.paddingXXS).mul(1.5).equal(),flex:"none"},[`${r}-content`]:{flex:"auto",minWidth:0,display:"flex",flexDirection:"column",alignItems:"stretch"},[`${r}-desc`]:{color:e.colorTextTertiary}},"&-type-preview":{width:o,height:o,lineHeight:1,[`&:not(${r}-status-error)`]:{border:0},img:{width:"100%",height:"100%",verticalAlign:"top",objectFit:"cover",borderRadius:"inherit"},[`${r}-img-mask`]:{position:"absolute",inset:0,display:"flex",justifyContent:"center",alignItems:"center",background:`rgba(0, 0, 0, ${e.opacityLoading})`,borderRadius:"inherit"},[`&${r}-status-error`]:{[`img, ${r}-img-mask`]:{borderRadius:n(e.borderRadius).sub(e.lineWidth).equal()},[`${r}-desc`]:{paddingInline:e.paddingXXS}},[`${r}-progress`]:{}},[`${r}-remove`]:{position:"absolute",top:0,insetInlineEnd:0,border:0,padding:e.paddingXXS,background:"transparent",lineHeight:1,transform:"translate(50%, -50%)",fontSize:e.fontSize,cursor:"pointer",opacity:e.opacityLoading,display:"none","&:dir(rtl)":{transform:"translate(-50%, -50%)"},"&:hover":{opacity:1},"&:active":{opacity:e.opacityLoading}},[`&:hover ${r}-remove`]:{display:"block"},"&-status-error":{borderColor:e.colorError,[`${r}-desc`]:{color:e.colorError}},"&-motion":{overflow:"hidden",transition:["opacity","width","margin","padding"].map(i=>`${i} ${e.motionDurationSlow}`).join(","),[`${r}-remove`]:{display:"none !important"},"&-appear-start":{width:0,transition:"none"},"&-leave-active":{opacity:0,width:0,paddingInline:0,borderInlineWidth:0,marginInlineEnd:n(e.paddingSM).mul(-1).equal()}}}}},zn={"&, *":{boxSizing:"border-box"}},Bd=e=>{const{componentCls:t,calc:n,antCls:r}=e,o=`${t}-drop-area`,i=`${t}-placeholder`;return{[o]:{position:"absolute",inset:0,zIndex:e.zIndexPopupBase,...zn,"&-on-body":{position:"fixed",inset:0},"&-hide-placement":{[`${i}-inner`]:{display:"none"}},[i]:{padding:0}},"&":{[i]:{height:"100%",borderRadius:e.borderRadius,borderWidth:e.lineWidthBold,borderStyle:"dashed",borderColor:"transparent",padding:e.padding,position:"relative",backdropFilter:"blur(10px)",...zn,[`${r}-upload-wrapper ${r}-upload${r}-upload-btn`]:{padding:0},[`&${i}-drag-in`]:{borderColor:e.colorPrimaryHover},[`&${i}-disabled`]:{opacity:.25,pointerEvents:"none"},[`${i}-inner`]:{gap:n(e.paddingXXS).div(2).equal()},[`${i}-icon`]:{fontSize:e.fontSizeHeading2,lineHeight:1},[`${i}-title${i}-title`]:{margin:0,fontSize:e.fontSize,lineHeight:e.lineHeight},[`${i}-description`]:{}}}}},Ld=e=>{const{componentCls:t,calc:n}=e,r=`${t}-list`,o=n(e.fontSize).mul(e.lineHeight).mul(2).add(e.paddingSM).add(e.paddingSM).equal();return{[t]:{position:"relative",width:"100%",...zn,[r]:{display:"flex",flexWrap:"wrap",gap:e.paddingSM,fontSize:e.fontSize,lineHeight:e.lineHeight,color:e.colorText,paddingBlock:e.paddingSM,paddingInline:e.padding,width:"100%",background:e.colorBgContainer,scrollbarWidth:"none","-ms-overflow-style":"none","&::-webkit-scrollbar":{display:"none"},"&-overflow-scrollX, &-overflow-scrollY":{"&:before, &:after":{content:'""',position:"absolute",opacity:0,transition:`opacity ${e.motionDurationSlow}`,zIndex:1}},"&-overflow-ping-start:before":{opacity:1},"&-overflow-ping-end:after":{opacity:1},"&-overflow-scrollX":{overflowX:"auto",overflowY:"hidden",flexWrap:"nowrap","&:before, &:after":{insetBlock:0,width:8},"&:before":{insetInlineStart:0,background:"linear-gradient(to right, rgba(0,0,0,0.06), rgba(0,0,0,0));"},"&:after":{insetInlineEnd:0,background:"linear-gradient(to left, rgba(0,0,0,0.06), rgba(0,0,0,0));"},"&:dir(rtl)":{"&:before":{background:"linear-gradient(to left, rgba(0,0,0,0.06), rgba(0,0,0,0));"},"&:after":{background:"linear-gradient(to right, rgba(0,0,0,0.06), rgba(0,0,0,0));"}}},"&-overflow-scrollY":{overflowX:"hidden",overflowY:"auto",maxHeight:n(o).mul(3).equal(),"&:before, &:after":{insetInline:0,height:8},"&:before":{insetBlockStart:0,background:"linear-gradient(to bottom, rgba(0,0,0,0.06), rgba(0,0,0,0));"},"&:after":{insetBlockEnd:0,background:"linear-gradient(to top, rgba(0,0,0,0.06), rgba(0,0,0,0));"}},"&-upload-btn":{width:o,height:o,fontSize:e.fontSizeHeading2,color:"#999"},"&-prev-btn, &-next-btn":{position:"absolute",top:"50%",transform:"translateY(-50%)",boxShadow:e.boxShadowTertiary,opacity:0,pointerEvents:"none"},"&-prev-btn":{left:{_skip_check_:!0,value:e.padding}},"&-next-btn":{right:{_skip_check_:!0,value:e.padding}},"&:dir(ltr)":{[`&${r}-overflow-ping-start ${r}-prev-btn`]:{opacity:1,pointerEvents:"auto"},[`&${r}-overflow-ping-end ${r}-next-btn`]:{opacity:1,pointerEvents:"auto"}},"&:dir(rtl)":{[`&${r}-overflow-ping-end ${r}-prev-btn`]:{opacity:1,pointerEvents:"auto"},[`&${r}-overflow-ping-start ${r}-next-btn`]:{opacity:1,pointerEvents:"auto"}}}}}},da=fe("Attachments",e=>{const t=ee(e,{});return[Bd(t),Ld(t),Vd(t)]},e=>{const{colorBgContainer:t}=e;return{colorBgPlaceholderHover:new jn(t).setA(.85).toRgbString()}}),Fn=" ",Dn="#8c8c8c",ua=a.defineComponent({name:"AXAttachmentsFileListCard",__name:"FileListCard",props:{prefixCls:null,item:null,onRemove:{type:Function},className:null,style:null},setup(e,{expose:t}){a.toRef(e,"prefixCls");const n=["png","jpg","jpeg","gif","bmp","webp","svg"],r=[{icon:a.createVNode(xn,null,null),color:"#22b35e",ext:["xlsx","xls"]},{icon:a.createVNode(wn,null,null),color:Dn,ext:n},{icon:a.createVNode($n,null,null),color:Dn,ext:["md","mdx"]},{icon:a.createVNode(Nn,null,null),color:"#ff4d4f",ext:["pdf"]},{icon:a.createVNode(Tn,null,null),color:"#ff6e31",ext:["ppt","pptx"]},{icon:a.createVNode(On,null,null),color:"#1677ff",ext:["doc","docx"]},{icon:a.createVNode(En,null,null),color:"#fab714",ext:["zip","rar","7z","tar","gz"]},{icon:a.createVNode(Ad,null,null),color:"#ff4d4f",ext:["mp4","avi","mov","wmv","flv","mkv"]},{icon:a.createVNode(Td,null,null),color:"#8c8c8c",ext:["mp3","wav","flac","ape","aac","ogg"]}];function o(I,B){return B.some(X=>I.toLowerCase()===`.${X}`)}function i(I){let B=I;const X=["B","KB","MB","GB","TB","PB","EB"];let J=0;for(;B>=1024&&J<X.length-1;)B/=1024,J++;return`${B.toFixed(0)} ${X[J]}`}const l=wt(),s=a.computed(()=>l.value.disabled),c=a.computed(()=>e.item.name),d=a.computed(()=>e.item.size),f=a.computed(()=>e.item.percent),u=a.computed(()=>e.item.status||"done"),m=a.computed(()=>e.item.description),{getPrefixCls:p}=G(),g=a.computed(()=>p("attachment",e.prefixCls)),h=`${g.value}-list-card`,[b,v,w]=da(g),C=a.useTemplateRef("file-list-card-container"),S=a.computed(()=>{const I=c.value||"",B=I.match(/^(.*)\.[^.]+$/);return{namePrefix:B?B[1]:I,nameSuffix:B?I.slice(B[1].length):""}}),$=a.computed(()=>o(S.value.nameSuffix,n)),x=a.computed(()=>m.value?m.value:u.value==="uploading"?`${f.value||0}%`:u.value==="error"?e.item.response||Fn:d.value?i(d.value):Fn),y=a.computed(()=>{for(const{ext:I,icon:B,color:X}of r)if(o(S.value.nameSuffix,I))return{icon:B,iconColor:X};return{icon:a.createVNode(Pn,{key:"defaultIcon"},null),iconColor:Dn}}),[N,A]=L();a.watch(()=>e.item.originFileObj,()=>{if(e.item.originFileObj){let I=!0;Md(e.item.originFileObj).then(B=>{I&&A(B)}),a.onWatcherCleanup(()=>{I=!1})}A(void 0)},{immediate:!0});const P=a.computed(()=>e.item.thumbUrl||e.item.url||N.value),R=a.computed(()=>$.value&&(e.item.originFileObj||P.value)),F=a.computed(()=>R.value?a.createVNode(a.Fragment,null,[a.createVNode("img",{alt:"preview",src:P.value},null),u.value!=="done"&&a.createVNode("div",{class:`${h}-img-mask`},[u.value==="uploading"&&f.value!==void 0&&a.createVNode(O.Progress,{percent:f.value,prefixCls:h},null),u.value==="error"&&a.createVNode("div",{class:`${h}-desc`},[a.createVNode("div",{class:`${h}-ellipsis-prefix`},[x.value])])])]):a.createVNode(a.Fragment,null,[a.createVNode("div",{class:`${h}-icon`,style:{color:y.value.iconColor}},[y.value.icon]),a.createVNode("div",{class:`${h}-content`},[a.createVNode("div",{class:`${h}-name`},[a.createVNode("div",{class:`${h}-ellipsis-prefix`},[S.value.namePrefix??Fn]),a.createVNode("div",{class:`${h}-ellipsis-suffix`},[S.value.nameSuffix])]),a.createVNode("div",{class:`${h}-desc`},[a.createVNode("div",{class:`${h}-ellipsis-prefix`},[x.value])])])]));return t({nativeElement:C}),()=>b(a.createVNode("div",{class:T(h,{[`${h}-status-${u.value}`]:u.value,[`${h}-type-preview`]:R.value,[`${h}-type-overview`]:!R.value},e.className,v.value,w),style:e.style,ref:"file-list-card-container"},[F.value,!s.value&&e.onRemove&&a.createVNode("button",{type:"button",class:`${h}-remove`,onClick:()=>{e.onRemove(e.item)}},[a.createVNode(Sn,null,null)])]))}}),fa=1,jd=a.defineComponent({name:"AXAttachmentsFileList",__name:"FileList",props:{prefixCls:null,items:null,onRemove:{type:Function},overflow:null,upload:null,listClassName:null,listStyle:null,itemClassName:null,itemStyle:null},setup(e){const t=a.computed(()=>`${e.prefixCls}-list`),n=a.useTemplateRef("file-list-container"),[r,o]=L(!1),i=wt();a.watchEffect(()=>{o(!0),a.onWatcherCleanup(()=>{o(!1)})});const[l,s]=L(!1),[c,d]=L(!1),f=()=>{const g=n.value;g&&(e.overflow==="scrollX"?(s(Math.abs(g.scrollLeft)>=fa),d(g.scrollWidth-g.clientWidth-Math.abs(g.scrollLeft)>=fa)):e.overflow==="scrollY"&&(s(g.scrollTop!==0),d(g.scrollHeight-g.clientHeight!==g.scrollTop)))};a.watch(()=>e.overflow,()=>{f()},{immediate:!0});const u=g=>{const h=n.value;h&&h.scrollTo({left:h.scrollLeft+g*h.clientWidth,behavior:"smooth"})},m=()=>{u(-1)},p=()=>{u(1)};return()=>a.createVNode("div",{class:T(t.value,{[`${t.value}-overflow-${e.overflow}`]:e.overflow,[`${t.value}-overflow-ping-start`]:l.value,[`${t.value}-overflow-ping-end`]:c.value},e.listClassName),ref:"file-list-container",onScroll:f,style:e.listStyle},[e.items.map(g=>a.createVNode(ua,{key:g.uid,prefixCls:e.prefixCls,item:g,onRemove:e.onRemove,className:T(e.itemClassName),style:{...e.itemStyle}},null)),!i.value.disabled&&a.createVNode(la,{upload:e.upload,children:a.createVNode(O.Button,{class:`${t.value}-upload-btn`,type:"dashed"},{default:()=>[a.createVNode(An,{class:`${t.value}-upload-btn-icon`},null)]})},null),e.overflow==="scrollX"&&a.createVNode(a.Fragment,null,[a.createVNode(O.Button,{size:"small",shape:"circle",class:`${t.value}-prev-btn`,icon:a.createVNode(pt,null,null),onClick:m},null),a.createVNode(O.Button,{size:"small",shape:"circle",class:`${t.value}-next-btn`,icon:a.createVNode(bt,null,null),onClick:p},null)])])}});function zd(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!a.isVNode(e)}const Fd=a.defineComponent({name:"AXAttachments",__name:"Attachments",props:a.mergeDefaults({capture:null,type:null,name:null,defaultFileList:null,action:null,directory:null,data:null,method:null,headers:null,showUploadList:null,multiple:null,accept:null,beforeUpload:null,onChange:{type:Function},"onUpdate:fileList":null,onDrop:null,listType:null,onPreview:null,onDownload:null,onReject:null,onRemove:null,remove:null,supportServerRender:null,disabled:{type:Boolean},prefixCls:null,customRequest:null,withCredentials:null,openFileDialogOnClick:null,locale:null,id:null,previewFile:null,transformFile:null,iconRender:null,isImageUrl:null,progress:null,itemRender:null,maxCount:null,height:null,removeIcon:null,downloadIcon:null,previewIcon:null,rootClassName:null,rootStyle:null,style:null,className:null,classNames:null,styles:null,children:null,placeholder:{type:Function},getDropContainer:{type:Function},items:null,overflow:null},{items:()=>[],classNames:()=>({}),styles:()=>({})}),setup(e,{expose:t}){const n=W(e,["prefixCls","rootClassName","rootStyle","className","style","items","children","getDropContainer","placeholder","onChange","overflow","disabled","classNames","styles"]);a.toRef(e,"prefixCls");const r=a.useSlots(),{getPrefixCls:o,direction:i}=G(),l=o("attachment",e.prefixCls),s=se("attachments"),c=a.computed(()=>s.value.classNames),d=a.computed(()=>s.value.styles),f=a.useTemplateRef("attachments-container"),u=a.useTemplateRef("attachments-upload"),[m,p,g]=da(l),h=a.computed(()=>T(p.value,g)),[b,v]=L(e.items);a.watch(()=>e.items,()=>{v(e.items)});const w=y=>{var N;v(y.fileList),(N=e.onChange)==null||N.call(e,y)},C=a.computed(()=>({...n,fileList:b.value,onChange:w})),S=y=>{const N=b.value.filter(A=>A.uid!==y.uid);w({file:y,fileList:N})},$=(y,N,A)=>{const P=r.placeholder?r.placeholder({type:y}):typeof e.placeholder=="function"?e.placeholder(y):e.placeholder;return a.createVNode(xd,{placeholder:P,upload:C.value,prefixCls:l,className:T(c.value.placeholder,e.classNames.placeholder),style:{...d.value.placeholder,...e.styles.placeholder,...N==null?void 0:N.style}},null)},x=a.computed(()=>{let y;if(e.children)return a.createVNode(a.Fragment,null,[a.createVNode(la,{upload:C.value,rootClassName:e.rootClassName,ref:"attachments-upload",children:e.children},null),a.createVNode(ia,{getDropContainer:e.getDropContainer,prefixCls:l,className:T(h.value,e.rootClassName),children:$("drop")},null)]);const N=b.value.length>0;return a.createVNode("div",{class:T(l,h.value,{[`${l}-rtl`]:i.value==="rtl"},e.className,e.rootClassName),style:{...e.rootStyle,...e.style},dir:i.value||"ltr",ref:"attachments-container"},[a.createVNode(jd,{prefixCls:l,items:b.value,onRemove:S,overflow:e.overflow,upload:C.value,listClassName:T(c.value.list,e.classNames.list),listStyle:{...d.value.list,...e.styles.list,...!N&&{display:"none"}},itemClassName:T(c.value.item,e.classNames.item),itemStyle:{...d.value.item,...e.styles.item}},null),$("inline",N?{style:{display:"none"}}:{},u.value),a.createVNode(ia,{getDropContainer:e.getDropContainer||(()=>f.value),prefixCls:l,className:h.value},zd(y=$("drop"))?y:{default:()=>[y]})])});return t({nativeElement:f.value,upload:y=>{var A,P;const N=(P=(A=u.value)==null?void 0:A.nativeElement)==null?void 0:P.querySelector('input[type="file"]');if(N){const R=new DataTransfer;R.items.add(y),N.files=R.files,N.dispatchEvent(new Event("change",{bubbles:!0}))}}}),()=>m(a.createVNode(vd,{value:{disabled:e.disabled}},{default:()=>[x.value]}))}}),Dd=Object.assign(Fd,{FileCard:ua}),kd=(e,t,n)=>{const r=a.computed(()=>{const s=a.toValue(e);let c={expandedKeys:[],onExpand:()=>{}};return s?(typeof s=="object"&&(c={...c,...s}),{enableCollapse:!0,customizeExpandedKeys:c.expandedKeys,customizeOnExpand:c.onExpand}):{enableCollapse:!1,customizeExpandedKeys:c.expandedKeys,customizeOnExpand:c.onExpand}}),[o,i]=L(r.value.customizeExpandedKeys),l=s=>{var d,f;if(!r.value.enableCollapse)return;const c=o.value.includes(s)?o.value.filter(u=>u!==s):[...o.value,s];(f=(d=r.value).customizeOnExpand)==null||f.call(d,c),i(c)};return[a.computed(()=>r.value.enableCollapse),o,l]};var Nt=(e=>(e.PENDING="pending",e.SUCCESS="success",e.ERROR="error",e))(Nt||{});const Xd=e=>{const{componentCls:t}=e,n=`${t}-item`,r={[Nt.PENDING]:e.colorPrimaryText,[Nt.SUCCESS]:e.colorSuccessText,[Nt.ERROR]:e.colorErrorText},o=Object.keys(r);return o.reduce((i,l)=>{const s=r[l];return o.forEach(c=>{const d=`& ${n}-${l}-${c}`,f=l===c?{}:{backgroundColor:"none !important",backgroundImage:`linear-gradient(${s}, ${r[c]})`};i[d]={[`& ${n}-icon, & > *::before`]:{backgroundColor:`${s} !important`},"& > :last-child::before":f}}),i},{})},Wd=e=>{const{calc:t,componentCls:n}=e,r=`${n}-item`,o={content:'""',width:t(e.lineWidth).mul(2).equal(),display:"block",position:"absolute",insetInlineEnd:"none",backgroundColor:e.colorTextPlaceholder};return{"& > :last-child > :last-child":{"&::before":{display:"none !important"},[`&${r}-footer`]:{"&::before":{display:"block !important",bottom:0}}},[`& > ${r}`]:{[`& ${r}-header, & ${r}-content, & ${r}-footer`]:{position:"relative","&::before":{bottom:t(e.itemGap).mul(-1).equal()}},[`& ${r}-header, & ${r}-content`]:{marginInlineStart:t(e.itemSize).mul(-1).equal(),"&::before":{...o,insetInlineStart:t(e.itemSize).div(2).sub(e.lineWidth).equal()}},[`& ${r}-header::before`]:{top:e.itemSize,bottom:t(e.itemGap).mul(-2).equal()},[`& ${r}-content::before`]:{top:"100%"},[`& ${r}-footer::before`]:{...o,top:0,insetInlineStart:t(e.itemSize).div(-2).sub(e.lineWidth).equal()}}}},Gd=e=>{const{componentCls:t}=e,n=`${t}-item`;return{[n]:{display:"flex",flexDirection:"column",[`& ${n}-collapsible`]:{cursor:"pointer"},[`& ${n}-header`]:{display:"flex",marginBottom:e.itemGap,gap:e.itemGap,alignItems:"flex-start",[`& ${n}-icon`]:{height:e.itemSize,width:e.itemSize,fontSize:e.itemFontSize,display:"flex",justifyContent:"center",alignItems:"center"},[`& ${n}-extra`]:{height:e.itemSize,maxHeight:e.itemSize},[`& ${n}-header-box`]:{flex:1,display:"flex",flexDirection:"column",overflow:"hidden",[`& ${n}-title`]:{height:e.itemSize,lineHeight:`${Z(e.itemSize)}`,maxHeight:e.itemSize,fontSize:e.itemFontSize,[`& ${n}-collapse-icon`]:{marginInlineEnd:e.marginXS}},[`& ${n}-desc`]:{fontSize:e.itemFontSize}}},[`& ${n}-content`]:{[`& ${n}-content-hidden`]:{display:"none"},[`& ${n}-content-box`]:{padding:e.itemGap,display:"inline-block",maxWidth:`calc(100% - ${e.itemSize})`,borderRadius:e.borderRadiusLG,backgroundColor:e.colorBgContainer,border:`${Z(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`}},[`& ${n}-footer`]:{marginTop:e.itemGap,display:"inline-flex"}}}},kn=(e,t="middle")=>{const{componentCls:n}=e,r={large:{itemSize:e.itemSizeLG,itemGap:e.itemGapLG,itemFontSize:e.itemFontSizeLG},middle:{itemSize:e.itemSize,itemGap:e.itemGap,itemFontSize:e.itemFontSize},small:{itemSize:e.itemSizeSM,itemGap:e.itemGapSM,itemFontSize:e.itemFontSizeSM}}[t];return{[`&${n}-${t}`]:{paddingInlineStart:r.itemSize,gap:r.itemGap,...Gd({...e,...r}),...Wd({...e,...r})}}},qd=e=>{const{componentCls:t}=e;return{[t]:{display:"flex",flexDirection:"column",...Xd(e),...kn(e),...kn(e,"large"),...kn(e,"small"),[`&${t}-rtl`]:{direction:"rtl"}}}},Ud=fe("ThoughtChain",e=>{const t=ee(e,{itemFontSizeSM:e.fontSizeSM,itemSizeSM:e.calc(e.controlHeightXS).add(e.controlHeightSM).div(2).equal(),itemGapSM:e.marginSM,itemFontSize:e.fontSize,itemSize:e.calc(e.controlHeightSM).add(e.controlHeight).div(2).equal(),itemGap:e.margin,itemFontSizeLG:e.fontSizeLG,itemSizeLG:e.calc(e.controlHeight).add(e.controlHeightLG).div(2).equal(),itemGapLG:e.marginLG});return[qd(t)]}),ha=Symbol("ThoughtChainNodeContext"),Xn=a.shallowRef(),Kd=e=>{a.provide(ha,e),a.watch(e,()=>{Xn.value=a.unref(e),a.triggerRef(Xn)},{immediate:!0,deep:!0})},Zd=()=>a.inject(ha,a.computed(()=>Xn.value||{})),Yd=a.defineComponent({props:{value:ne()},setup(e,{slots:t}){return Kd(a.computed(()=>e.value)),()=>{var n;return(n=t.default)==null?void 0:n.call(t)}}}),Qd=a.defineComponent({name:"AXThoughtChainNode",__name:"item",props:a.mergeDefaults({info:null,nextStatus:null,onClick:{type:Function}},{info:()=>({})}),setup(e){const t=W(e,["info","nextStatus","onClick"]),n=a.computed(()=>Me(t,{attr:!0,aria:!0,data:!0})),r=Zd(),o=a.computed(()=>r.value.prefixCls),i=a.computed(()=>r.value.enableCollapse),l=a.computed(()=>r.value.expandedKeys),s=a.computed(()=>r.value.direction),c=a.computed(()=>r.value.classNames),d=a.computed(()=>r.value.styles),f=a.useId(),u=a.computed(()=>e.info.key??f),m=a.computed(()=>e.info.icon),p=a.computed(()=>e.info.title),g=a.computed(()=>e.info.extra),h=a.computed(()=>e.info.content),b=a.computed(()=>e.info.footer),v=a.computed(()=>e.info.status),w=a.computed(()=>e.info.description),C=a.computed(()=>`${o.value}-item`),S=()=>{var y;return(y=e.onClick)==null?void 0:y.call(e,u.value)},$=a.computed(()=>{var y;return(y=l.value)==null?void 0:y.includes(u.value)}),x=a.computed(()=>i.value?$.value:!0);return()=>a.createVNode("div",a.mergeProps(n.value,{class:T(C.value,{[`${C.value}-${v.value}${e.nextStatus?`-${e.nextStatus}`:""}`]:v.value},t.class),style:t.style}),[a.createVNode("div",{class:T(`${C.value}-header`,c.value.itemHeader),style:d.value.itemHeader,onClick:S},[a.createVNode(O.Avatar,{icon:m.value,class:`${C.value}-icon`},null),a.createVNode("div",{class:T(`${C.value}-header-box`,{[`${C.value}-collapsible`]:i.value&&h.value})},[a.createVNode(O.Typography.Text,{strong:!0,ellipsis:{tooltip:{placement:s.value==="rtl"?"topRight":"topLeft",title:p.value}},class:`${C.value}-title`},{default:()=>[i.value&&h.value&&(s.value==="rtl"?a.createVNode(pt,{class:`${C.value}-collapse-icon`,rotate:$.value?-90:0},null):a.createVNode(bt,{class:`${C.value}-collapse-icon`,rotate:$.value?90:0},null)),p.value]}),w.value&&a.createVNode(O.Typography.Text,{class:`${C.value}-desc`,ellipsis:{tooltip:{placement:s.value==="rtl"?"topRight":"topLeft",title:w.value}},type:"secondary"},{default:()=>[w.value]})]),g.value&&a.createVNode("div",{class:`${C.value}-extra`},[g.value])]),h.value&&a.withDirectives(a.createVNode("div",{class:T(`${C.value}-content`)},[a.createVNode("div",{class:T(`${C.value}-content-box`,c.value.itemContent),style:d.value.itemContent},[h.value])]),[[a.vShow,x.value]]),b.value&&a.createVNode("div",{class:T(`${C.value}-footer`,c.value.itemFooter),style:d.value.itemFooter},[b.value])])}}),Jd=a.defineComponent({name:"AXThoughtChain",__name:"ThoughtChain",props:a.mergeDefaults({items:null,collapsible:{type:Boolean},size:null,styles:null,classNames:null,prefixCls:null,rootClassName:null},{styles:()=>({}),classNames:()=>({}),size:"middle"}),setup(e){const t=W(e,["prefixCls","rootClassName","class","items","collapsible","styles","style","classNames","size"]);a.toRef(e,"class"),a.toRef(e,"prefixCls");const n=a.computed(()=>Me(t,{attr:!0,aria:!0,data:!0})),{getPrefixCls:r,direction:o}=G(),i=a.computed(()=>r()),l=a.computed(()=>r("thought-chain",e.prefixCls)),s=se("thoughtChain"),[c,d,f]=kd(()=>e.collapsible,l.value,i.value),[u,m,p]=Ud(l),g=a.computed(()=>T(e.class,e.rootClassName,l.value,s.value.className,m.value,p,{[`${l.value}-rtl`]:o.value==="rtl"},`${l.value}-${e.size}`));return()=>u(a.createVNode("div",a.mergeProps(n.value,{class:g.value,style:{...typeof s.value.style=="object"?s.value.style:{},...typeof e.style=="object"?e.style:{}}}),[a.createVNode(Yd,{value:{prefixCls:l.value,enableCollapse:c.value,expandedKeys:d.value,direction:o.value,classNames:{itemHeader:T(s.value.classNames.itemHeader,e.classNames.itemHeader),itemContent:T(s.value.classNames.itemContent,e.classNames.itemContent),itemFooter:T(s.value.classNames.itemFooter,e.classNames.itemFooter)},styles:{itemHeader:{...s.value.styles.itemHeader,...e.styles.itemHeader},itemContent:{...s.value.styles.itemContent,...e.styles.itemContent},itemFooter:{...s.value.styles.itemFooter,...e.styles.itemFooter}}}},{default:()=>{var h;return[(h=e.items)==null?void 0:h.map((b,v)=>{var w;return a.createVNode(Qd,{key:b.key||`key_${v}`,class:T(s.value.classNames.item,e.classNames.item),style:{...s.value.styles.item,...e.styles.item},info:{...b,icon:b.icon||v+1},onClick:f,nextStatus:((w=e.items[v+1])==null?void 0:w.status)||b.status},null)})]}})]))}}),_d=`
114
114
 
115
- `,_d=`
116
- `,ma=":",Wn=e=>(e??"").trim()!=="";function eu(){let e="";return new TransformStream({transform(t,n){e+=t;const r=e.split(Jd);r.slice(0,-1).forEach(o=>{Wn(o)&&n.enqueue(o)}),e=r[r.length-1]},flush(t){Wn(e)&&t.enqueue(e)}})}function tu(){return new TransformStream({transform(e,t){const r=e.split(_d).reduce((o,i)=>{const l=i.indexOf(ma);if(l===-1)throw new Error(`The key-value separator "${ma}" is not found in the sse line chunk!`);const s=i.slice(0,l);if(!Wn(s))return o;const c=i.slice(l+1);return{...o,[s]:c}},{});Object.keys(r).length!==0&&t.enqueue(r)}})}function Gn(e){const{readableStream:t,transformStream:n}=e;if(!(t instanceof ReadableStream))throw new Error("The options.readableStream must be an instance of ReadableStream.");const r=new TextDecoderStream,o=n?t.pipeThrough(r).pipeThrough(n):t.pipeThrough(r).pipeThrough(eu()).pipeThrough(tu());return o[Symbol.asyncIterator]=async function*(){const i=this.getReader();for(;;){const{done:l,value:s}=await i.read();if(l)break;s&&(yield s)}},o}const ga=async(e,t={})=>{const{fetch:n=globalThis.fetch,middlewares:r={},...o}=t;if(typeof n!="function")throw new Error("The options.fetch must be a typeof fetch function!");let i=[e,o];typeof r.onRequest=="function"&&(i=await r.onRequest(...i));let l=await n(...i);if(typeof r.onResponse=="function"){const s=await r.onResponse(l);if(!(s instanceof Response))throw new Error("The options.onResponse must return a Response instance!");l=s}if(!l.ok)throw new Error(`Fetch failed with status ${l.status}`);if(!l.body)throw new Error("The response body is empty.");return l},ve=class ve{constructor(t){this.create=async(l,s,c)=>{var f;const d={method:"POST",body:JSON.stringify({model:this.model,...l}),headers:this.defaultHeaders};try{const u=await ga(this.baseURL,{fetch:this.customOptions.fetch,...d});if(c){await this.customResponseHandler(u,s,c);return}const m=u.headers.get("content-type")||"";switch(m.split(";")[0].trim()){case"text/event-stream":await this.sseResponseHandler(u,s);break;case"application/json":await this.jsonResponseHandler(u,s);break;default:throw new Error(`The response content-type: ${m} is not support!`)}}catch(u){const m=u instanceof Error?u:new Error("Unknown error!");throw(f=s==null?void 0:s.onError)==null||f.call(s,m),m}},this.customResponseHandler=async(l,s,c)=>{var f,u;const d=[];for await(const m of Gn({readableStream:l.body,transformStream:c}))d.push(m),(f=s==null?void 0:s.onUpdate)==null||f.call(s,m);(u=s==null?void 0:s.onSuccess)==null||u.call(s,d)},this.sseResponseHandler=async(l,s)=>{var d,f;const c=[];for await(const u of Gn({readableStream:l.body}))c.push(u),(d=s==null?void 0:s.onUpdate)==null||d.call(s,u);(f=s==null?void 0:s.onSuccess)==null||f.call(s,c)},this.jsonResponseHandler=async(l,s)=>{var d,f;const c=await l.json();(d=s==null?void 0:s.onUpdate)==null||d.call(s,c),(f=s==null?void 0:s.onSuccess)==null||f.call(s,[c])};const{baseURL:n,model:r,dangerouslyApiKey:o,...i}=t;this.baseURL=t.baseURL,this.model=t.model,this.defaultHeaders={"Content-Type":"application/json",...t.dangerouslyApiKey&&{Authorization:t.dangerouslyApiKey}},this.customOptions=i}static init(t){if(!t.baseURL||typeof t.baseURL!="string")throw new Error("The baseURL is not valid!");const n=t.fetch||t.baseURL;return ve.instanceBuffer.has(n)||ve.instanceBuffer.set(n,new ve(t)),ve.instanceBuffer.get(n)}};ve.instanceBuffer=new Map;let qn=ve;const pa=qn.init;let ba=0;class ya{constructor(t){this.requestingMap={},this.request=(n,r)=>{const{request:o}=this.config,{onUpdate:i,onSuccess:l,onError:s}=r,c=ba;ba+=1,this.requestingMap[c]=!0,o==null||o(n,{onUpdate:d=>{this.requestingMap[c]&&i(d)},onSuccess:d=>{this.requestingMap[c]&&(l(d),this.finishRequest(c))},onError:d=>{this.requestingMap[c]&&(s(d),this.finishRequest(c))}})},this.config=t}finishRequest(t){delete this.requestingMap[t]}isRequesting(){return Object.keys(this.requestingMap).length>0}}function nu(e){const{request:t,...n}=e;return{agent:a.computed(()=>new ya({request:t||pa({baseURL:n.baseURL,model:n.model,dangerouslyApiKey:n.dangerouslyApiKey}).create,...n}))}}function ru(e,t){const n=a.ref(e);function r(o){const i=typeof o=="function"?o(n.value):o;i!==n.value&&t(i,n.value),n.value=i}return[n,r]}function ou(e){return Array.isArray(e)?e:[e]}function au(e){const{defaultMessages:t,agent:n,requestFallback:r,requestPlaceholder:o,parser:i}=e,l=a.ref(0),s=a.computed(()=>(t||[]).map((h,b)=>({id:`default_${b}`,status:"local",...h}))),[c,d]=ru(s.value,()=>{}),f=(h,b)=>{const v={id:`msg_${l.value}`,message:h,status:b};return l.value+=1,v},u=a.computed(()=>{const h=[];return c.value.forEach(b=>{const v=i?i(b.message):b.message,$=ou(v);$.forEach((S,C)=>{let x=b.id;$.length>1&&(x=`${x}_${C}`),h.push({id:x,message:S,status:b.status})})}),h}),m=h=>h.filter(b=>b.status!=="loading"&&b.status!=="error").map(b=>b.message),p=()=>m(c.value);return{onRequest:mt(h=>{if(!n)throw new Error("The agent parameter is required when using the onRequest method in an agent generated by useXAgent.");let b=null;d(S=>{let C=[...S,f(h,"local")];if(o){let x;typeof o=="function"?x=o(h,{messages:m(C)}):x=o;const w=f(x,"loading");b=w.id,C=[...C,w]}return C});let v=null;const $=(S,C)=>{let x=c.value.find(w=>w.id===v);return x?d(w=>w.map(y=>y.id===v?{...y,message:S,status:C}:y)):(x=f(S,C),d(w=>[...w.filter(T=>T.id!==b),x]),v=x.id),x};n.request({message:h,messages:p()},{onUpdate:S=>{$(S,"loading")},onSuccess:S=>{$(S,"success")},onError:async S=>{if(r){let C;typeof r=="function"?C=await r(h,{error:S,messages:p()}):C=r,d(x=>[...x.filter(w=>w.id!==b&&w.id!==v),f(C,"error")])}else d(C=>C.filter(x=>x.id!==b&&x.id!==v))}})}),messages:c,parsedMessages:u,setMessages:d}}Object.defineProperty(R,"theme",{enumerable:!0,get:()=>O.theme}),R.Attachments=Fd,R.Bubble=ys,R.BubbleList=bo,R.Conversations=Xc,R.Prompts=_o,R.Sender=yd,R.Suggestion=ed,R.ThoughtChain=Qd,R.Welcome=Uc,R.XAgent=ya,R.XFetch=ga,R.XProvider=Ia,R.XRequest=pa,R.XStream=Gn,R.defaultPrefixCls=Ta,R.useXAgent=nu,R.useXChat=au,R.useXProviderContext=G,Object.defineProperty(R,Symbol.toStringTag,{value:"Module"})});
115
+ `,eu=`
116
+ `,ma=":",Wn=e=>(e??"").trim()!=="";function tu(){let e="";return new TransformStream({transform(t,n){e+=t;const r=e.split(_d);r.slice(0,-1).forEach(o=>{Wn(o)&&n.enqueue(o)}),e=r[r.length-1]},flush(t){Wn(e)&&t.enqueue(e)}})}function nu(){return new TransformStream({transform(e,t){const r=e.split(eu).reduce((o,i)=>{const l=i.indexOf(ma);if(l===-1)throw new Error(`The key-value separator "${ma}" is not found in the sse line chunk!`);const s=i.slice(0,l);if(!Wn(s))return o;const c=i.slice(l+1);return{...o,[s]:c}},{});Object.keys(r).length!==0&&t.enqueue(r)}})}function Gn(e){const{readableStream:t,transformStream:n}=e;if(!(t instanceof ReadableStream))throw new Error("The options.readableStream must be an instance of ReadableStream.");const r=new TextDecoderStream,o=n?t.pipeThrough(r).pipeThrough(n):t.pipeThrough(r).pipeThrough(tu()).pipeThrough(nu());return o[Symbol.asyncIterator]=async function*(){const i=this.getReader();for(;;){const{done:l,value:s}=await i.read();if(l)break;s&&(yield s)}},o}const ga=async(e,t={})=>{const{fetch:n=globalThis.fetch,middlewares:r={},...o}=t;if(typeof n!="function")throw new Error("The options.fetch must be a typeof fetch function!");let i=[e,o];typeof r.onRequest=="function"&&(i=await r.onRequest(...i));let l=await n(...i);if(typeof r.onResponse=="function"){const s=await r.onResponse(l);if(!(s instanceof Response))throw new Error("The options.onResponse must return a Response instance!");l=s}if(!l.ok)throw new Error(`Fetch failed with status ${l.status}`);if(!l.body)throw new Error("The response body is empty.");return l},ve=class ve{constructor(t){this.create=async(l,s,c)=>{var f;const d={method:"POST",body:JSON.stringify({model:this.model,...l}),headers:this.defaultHeaders};try{const u=await ga(this.baseURL,{fetch:this.customOptions.fetch,...d});if(c){await this.customResponseHandler(u,s,c);return}const m=u.headers.get("content-type")||"";switch(m.split(";")[0].trim()){case"text/event-stream":await this.sseResponseHandler(u,s);break;case"application/json":await this.jsonResponseHandler(u,s);break;default:throw new Error(`The response content-type: ${m} is not support!`)}}catch(u){const m=u instanceof Error?u:new Error("Unknown error!");throw(f=s==null?void 0:s.onError)==null||f.call(s,m),m}},this.customResponseHandler=async(l,s,c)=>{var f,u;const d=[];for await(const m of Gn({readableStream:l.body,transformStream:c}))d.push(m),(f=s==null?void 0:s.onUpdate)==null||f.call(s,m);(u=s==null?void 0:s.onSuccess)==null||u.call(s,d)},this.sseResponseHandler=async(l,s)=>{var d,f;const c=[];for await(const u of Gn({readableStream:l.body}))c.push(u),(d=s==null?void 0:s.onUpdate)==null||d.call(s,u);(f=s==null?void 0:s.onSuccess)==null||f.call(s,c)},this.jsonResponseHandler=async(l,s)=>{var d,f;const c=await l.json();(d=s==null?void 0:s.onUpdate)==null||d.call(s,c),(f=s==null?void 0:s.onSuccess)==null||f.call(s,[c])};const{baseURL:n,model:r,dangerouslyApiKey:o,...i}=t;this.baseURL=t.baseURL,this.model=t.model,this.defaultHeaders={"Content-Type":"application/json",...t.dangerouslyApiKey&&{Authorization:t.dangerouslyApiKey}},this.customOptions=i}static init(t){if(!t.baseURL||typeof t.baseURL!="string")throw new Error("The baseURL is not valid!");const n=t.fetch||t.baseURL;return ve.instanceBuffer.has(n)||ve.instanceBuffer.set(n,new ve(t)),ve.instanceBuffer.get(n)}};ve.instanceBuffer=new Map;let qn=ve;const pa=qn.init;let ba=0;class ya{constructor(t){this.requestingMap={},this.request=(n,r)=>{const{request:o}=this.config,{onUpdate:i,onSuccess:l,onError:s}=r,c=ba;ba+=1,this.requestingMap[c]=!0,o==null||o(n,{onUpdate:d=>{this.requestingMap[c]&&i(d)},onSuccess:d=>{this.requestingMap[c]&&(l(d),this.finishRequest(c))},onError:d=>{this.requestingMap[c]&&(s(d),this.finishRequest(c))}})},this.config=t}finishRequest(t){delete this.requestingMap[t]}isRequesting(){return Object.keys(this.requestingMap).length>0}}function ru(e){const{request:t,...n}=e;return[a.computed(()=>new ya({request:t||pa({baseURL:n.baseURL,model:n.model,dangerouslyApiKey:n.dangerouslyApiKey}).create,...n}))]}function ou(e,t){const n=a.ref(e);function r(o){const i=typeof o=="function"?o(n.value):o;i!==n.value&&t(i,n.value),n.value=i}return[n,r]}function au(e){return Array.isArray(e)?e:[e]}function iu(e){const{defaultMessages:t,agent:n,requestFallback:r,requestPlaceholder:o,parser:i}=e,l=a.ref(0),s=a.computed(()=>(t||[]).map((h,b)=>({id:`default_${b}`,status:"local",...h}))),[c,d]=ou(s.value,()=>{}),f=(h,b)=>{const v={id:`msg_${l.value}`,message:h,status:b};return l.value+=1,v},u=a.computed(()=>{const h=[];return c.value.forEach(b=>{const v=i?i(b.message):b.message,w=au(v);w.forEach((C,S)=>{let $=b.id;w.length>1&&($=`${$}_${S}`),h.push({id:$,message:C,status:b.status})})}),h}),m=h=>h.filter(b=>b.status!=="loading"&&b.status!=="error").map(b=>b.message),p=()=>m(c.value);return{onRequest:mt(h=>{if(!n)throw new Error("The agent parameter is required when using the onRequest method in an agent generated by useXAgent.");let b=null;d(C=>{let S=[...C,f(h,"local")];if(o){let $;typeof o=="function"?$=o(h,{messages:m(S)}):$=o;const x=f($,"loading");b=x.id,S=[...S,x]}return S});let v=null;const w=(C,S)=>{let $=c.value.find(x=>x.id===v);return $?d(x=>x.map(y=>y.id===v?{...y,message:C,status:S}:y)):($=f(C,S),d(x=>[...x.filter(N=>N.id!==b),$]),v=$.id),$};n.request({message:h,messages:p()},{onUpdate:C=>{w(C,"loading")},onSuccess:C=>{w(C,"success")},onError:async C=>{if(r){let S;typeof r=="function"?S=await r(h,{error:C,messages:p()}):S=r,d($=>[...$.filter(x=>x.id!==b&&x.id!==v),f(S,"error")])}else d(S=>S.filter($=>$.id!==b&&$.id!==v))}})}),messages:c,parsedMessages:u,setMessages:d}}Object.defineProperty(M,"theme",{enumerable:!0,get:()=>O.theme}),M.Attachments=Dd,M.Bubble=ys,M.BubbleList=bo,M.Conversations=Xc,M.Prompts=_o,M.Sender=Sd,M.Suggestion=td,M.ThoughtChain=Jd,M.Welcome=Kc,M.XAgent=ya,M.XFetch=ga,M.XProvider=Ia,M.XRequest=pa,M.XStream=Gn,M.defaultPrefixCls=Ta,M.useXAgent=ru,M.useXChat=iu,M.useXProviderContext=G,Object.defineProperty(M,Symbol.toStringTag,{value:"Module"})});