ant-design-x-vue 1.1.0 → 1.1.2

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/README.md CHANGED
@@ -3,6 +3,7 @@
3
3
  [![npm version][npm-version-src]][npm-version-href]
4
4
  [![npm downloads][npm-downloads-src]][npm-downloads-href]
5
5
  [![bundle][bundle-src]][bundle-href]
6
+ ![vue][vue-version-src]
6
7
  [![Github Actions][github-actions-src]][github-actions-href]
7
8
  ![Netlify Build][netlify-build-src]
8
9
  [![License][license-src]][license-href]
@@ -110,6 +111,7 @@ $ pnpm lint
110
111
  [npm-downloads-href]: https://npmjs.com/package/ant-design-x-vue
111
112
  [bundle-src]: https://img.shields.io/bundlephobia/minzip/ant-design-x-vue?style=flat
112
113
  [bundle-href]: https://bundlephobia.com/result?p=ant-design-x-vue
114
+ [vue-version-src]: https://img.shields.io/badge/vue-%20%3E%3D%203.5-47c219
113
115
  [github-actions-src]: https://img.shields.io/github/actions/workflow/status/wzc520pyfm/ant-design-x-vue/ci.yml?branch=main&style=flat
114
116
  [github-actions-href]: https://github.com/wzc520pyfm/ant-design-x-vue/actions?query=workflow%3Aci
115
117
  [netlify-build-src]: https://img.shields.io/netlify/cb006e4e-afce-4c3e-9652-6f8a065b5b6e
package/dist/index.mjs CHANGED
@@ -28345,51 +28345,45 @@ const Ea = {
28345
28345
  inheritAttrs: !1,
28346
28346
  __name: "index",
28347
28347
  props: {
28348
- bubble: {},
28349
- conversations: {},
28350
- prompts: {},
28351
- sender: {},
28352
- suggestion: {},
28353
- thoughtChain: {},
28354
- attachments: {},
28355
- welcome: {},
28356
- iconPrefixCls: {},
28357
- getTargetContainer: {},
28358
- getPopupContainer: {},
28359
- prefixCls: {},
28360
- getPrefixCls: {},
28361
- renderEmpty: {},
28362
- transformCellText: {},
28363
- csp: {},
28364
- input: {},
28365
- autoInsertSpaceInButton: {
28366
- type: Boolean
28367
- },
28368
- locale: {},
28369
- pageHeader: {},
28370
- componentSize: {},
28371
- componentDisabled: {
28372
- type: Boolean
28373
- },
28374
- direction: {},
28375
- space: {},
28376
- virtual: {
28377
- type: Boolean
28378
- },
28379
- dropdownMatchSelectWidth: {},
28380
- form: {},
28381
- pagination: {},
28382
- theme: {},
28383
- select: {},
28384
- wave: {}
28348
+ bubble: null,
28349
+ conversations: null,
28350
+ prompts: null,
28351
+ sender: null,
28352
+ suggestion: null,
28353
+ thoughtChain: null,
28354
+ attachments: null,
28355
+ welcome: null,
28356
+ iconPrefixCls: null,
28357
+ getTargetContainer: null,
28358
+ getPopupContainer: null,
28359
+ prefixCls: null,
28360
+ getPrefixCls: null,
28361
+ renderEmpty: null,
28362
+ transformCellText: null,
28363
+ csp: null,
28364
+ input: null,
28365
+ autoInsertSpaceInButton: null,
28366
+ locale: null,
28367
+ pageHeader: null,
28368
+ componentSize: null,
28369
+ componentDisabled: null,
28370
+ direction: null,
28371
+ space: null,
28372
+ virtual: null,
28373
+ dropdownMatchSelectWidth: null,
28374
+ form: null,
28375
+ pagination: null,
28376
+ theme: null,
28377
+ select: null,
28378
+ wave: null
28385
28379
  },
28386
28380
  setup(e) {
28387
- const t = it(e, ["attachments", "bubble", "conversations", "prompts", "suggestion", "thoughtChain", "welcome"]), n = Tt(), o = S(() => ({
28381
+ const t = it(e, ["attachments", "bubble", "conversations", "prompts", "sender", "suggestion", "thoughtChain", "welcome"]), n = Tt(), o = S(() => ({
28388
28382
  attachments: e.attachments,
28389
28383
  bubble: e.bubble,
28390
28384
  conversations: e.conversations,
28391
28385
  prompts: e.prompts,
28392
- // sender,
28386
+ sender: e.sender,
28393
28387
  suggestion: e.suggestion,
28394
28388
  thoughtChain: e.thoughtChain,
28395
28389
  welcome: e.welcome
@@ -30482,9 +30476,7 @@ const Ol = "__ungrouped", LA = (e, t = []) => {
30482
30476
  menu: {
30483
30477
  type: Function
30484
30478
  },
30485
- groupable: {
30486
- type: Boolean
30487
- },
30479
+ groupable: null,
30488
30480
  styles: null,
30489
30481
  classNames: null,
30490
30482
  prefixCls: null,
@@ -31520,6 +31512,12 @@ const sM = (e) => {
31520
31512
  paddingInlineStart: e.padding,
31521
31513
  paddingInlineEnd: e.paddingXS,
31522
31514
  display: "flex",
31515
+ borderRadius: {
31516
+ _skip_check_: !0,
31517
+ value: n(e.borderRadius).mul(2).equal()
31518
+ },
31519
+ borderBottomRightRadius: 0,
31520
+ borderBottomLeftRadius: 0,
31523
31521
  [`${o}-title`]: {
31524
31522
  flex: "auto"
31525
31523
  }
@@ -31788,9 +31786,7 @@ const mM = /* @__PURE__ */ k({
31788
31786
  type: Function
31789
31787
  },
31790
31788
  header: null,
31791
- autoSize: {
31792
- type: Boolean
31793
- }
31789
+ autoSize: null
31794
31790
  }, {
31795
31791
  styles: () => ({}),
31796
31792
  classNames: () => ({}),
@@ -31949,9 +31945,7 @@ const mM = /* @__PURE__ */ k({
31949
31945
  ...e.styles.input
31950
31946
  },
31951
31947
  class: de(h.value, m.value.classNames.input, e.classNames.input),
31952
- autoSize: {
31953
- maxRows: 8
31954
- },
31948
+ autoSize: e.autoSize,
31955
31949
  value: x.value,
31956
31950
  onChange: (W) => {
31957
31951
  C(W.target.value, W), R(!0);
@@ -32618,9 +32612,9 @@ class pu {
32618
32612
  }
32619
32613
  }
32620
32614
  const EM = (e) => {
32621
- const { componentCls: t, calc: n } = e, o = `${t}-list-card`, r = n(e.fontSize).mul(e.lineHeight).mul(2).add(e.paddingSM).add(e.paddingSM).equal();
32615
+ const { componentCls: t, antCls: n, calc: o } = e, r = `${t}-list-card`, i = o(e.fontSize).mul(e.lineHeight).mul(2).add(e.paddingSM).add(e.paddingSM).equal();
32622
32616
  return {
32623
- [o]: {
32617
+ [r]: {
32624
32618
  borderRadius: e.borderRadius,
32625
32619
  position: "relative",
32626
32620
  background: e.colorFillContent,
@@ -32629,67 +32623,72 @@ const EM = (e) => {
32629
32623
  borderColor: "transparent",
32630
32624
  flex: "none",
32631
32625
  // =============================== Desc ================================
32632
- [`${o}-name,${o}-desc`]: {
32626
+ [`${r}-name,${r}-desc`]: {
32633
32627
  display: "flex",
32634
32628
  flexWrap: "nowrap",
32635
32629
  maxWidth: "100%"
32636
32630
  },
32637
- [`${o}-ellipsis-prefix`]: {
32631
+ [`${r}-ellipsis-prefix`]: {
32638
32632
  flex: "0 1 auto",
32639
32633
  minWidth: 0,
32640
32634
  overflow: "hidden",
32641
32635
  textOverflow: "ellipsis",
32642
32636
  whiteSpace: "nowrap"
32643
32637
  },
32644
- [`${o}-ellipsis-suffix`]: {
32638
+ [`${r}-ellipsis-suffix`]: {
32645
32639
  flex: "none"
32646
32640
  },
32647
32641
  // ============================= Overview ==============================
32648
32642
  "&-type-overview": {
32649
- padding: n(e.paddingSM).sub(e.lineWidth).equal(),
32650
- paddingInlineStart: n(e.padding).add(e.lineWidth).equal(),
32643
+ padding: o(e.paddingSM).sub(e.lineWidth).equal(),
32644
+ paddingInlineStart: o(e.padding).add(e.lineWidth).equal(),
32651
32645
  display: "flex",
32652
32646
  flexWrap: "nowrap",
32653
32647
  gap: e.paddingXS,
32654
32648
  alignItems: "flex-start",
32655
32649
  width: 236,
32656
32650
  // Icon
32657
- [`${o}-icon`]: {
32658
- fontSize: n(e.fontSizeLG).mul(2).equal(),
32651
+ [`${r}-icon`]: {
32652
+ fontSize: o(e.fontSizeLG).mul(2).equal(),
32659
32653
  lineHeight: 1,
32660
- paddingTop: n(e.paddingXXS).mul(1.5).equal(),
32654
+ paddingTop: o(e.paddingXXS).mul(1.5).equal(),
32661
32655
  flex: "none"
32662
32656
  },
32663
32657
  // Content
32664
- [`${o}-content`]: {
32658
+ [`${r}-content`]: {
32665
32659
  flex: "auto",
32666
32660
  minWidth: 0,
32667
32661
  display: "flex",
32668
32662
  flexDirection: "column",
32669
32663
  alignItems: "stretch"
32670
32664
  },
32671
- [`${o}-desc`]: {
32665
+ [`${r}-desc`]: {
32672
32666
  color: e.colorTextTertiary
32673
32667
  }
32674
32668
  },
32675
32669
  // ============================== Preview ==============================
32676
32670
  "&-type-preview": {
32677
- width: r,
32678
- height: r,
32671
+ width: i,
32672
+ height: i,
32679
32673
  lineHeight: 1,
32680
- [`&:not(${o}-status-error)`]: {
32674
+ display: "flex",
32675
+ alignItems: "center",
32676
+ [`&:not(${r}-status-error)`]: {
32681
32677
  border: 0
32682
32678
  },
32683
32679
  // Img
32684
- img: {
32680
+ [`${n}-image`]: {
32685
32681
  width: "100%",
32686
32682
  height: "100%",
32687
- verticalAlign: "top",
32688
- objectFit: "cover",
32689
- borderRadius: "inherit"
32683
+ borderRadius: "inherit",
32684
+ img: {
32685
+ height: "100%",
32686
+ objectFit: "cover",
32687
+ borderRadius: "inherit"
32688
+ }
32690
32689
  },
32691
32690
  // Mask
32692
- [`${o}-img-mask`]: {
32691
+ [`${r}-img-mask`]: {
32693
32692
  position: "absolute",
32694
32693
  inset: 0,
32695
32694
  display: "flex",
@@ -32699,19 +32698,19 @@ const EM = (e) => {
32699
32698
  borderRadius: "inherit"
32700
32699
  },
32701
32700
  // Error
32702
- [`&${o}-status-error`]: {
32703
- [`img, ${o}-img-mask`]: {
32704
- borderRadius: n(e.borderRadius).sub(e.lineWidth).equal()
32701
+ [`&${r}-status-error`]: {
32702
+ [`img, ${r}-img-mask`]: {
32703
+ borderRadius: o(e.borderRadius).sub(e.lineWidth).equal()
32705
32704
  },
32706
- [`${o}-desc`]: {
32705
+ [`${r}-desc`]: {
32707
32706
  paddingInline: e.paddingXXS
32708
32707
  }
32709
32708
  },
32710
32709
  // Progress
32711
- [`${o}-progress`]: {}
32710
+ [`${r}-progress`]: {}
32712
32711
  },
32713
32712
  // ============================ Remove Icon ============================
32714
- [`${o}-remove`]: {
32713
+ [`${r}-remove`]: {
32715
32714
  position: "absolute",
32716
32715
  top: 0,
32717
32716
  insetInlineEnd: 0,
@@ -32734,21 +32733,21 @@ const EM = (e) => {
32734
32733
  opacity: e.opacityLoading
32735
32734
  }
32736
32735
  },
32737
- [`&:hover ${o}-remove`]: {
32736
+ [`&:hover ${r}-remove`]: {
32738
32737
  display: "block"
32739
32738
  },
32740
32739
  // ============================== Status ===============================
32741
32740
  "&-status-error": {
32742
32741
  borderColor: e.colorError,
32743
- [`${o}-desc`]: {
32742
+ [`${r}-desc`]: {
32744
32743
  color: e.colorError
32745
32744
  }
32746
32745
  },
32747
32746
  // ============================== Motion ===============================
32748
32747
  "&-motion": {
32749
32748
  overflow: "hidden",
32750
- transition: ["opacity", "width", "margin", "padding"].map((i) => `${i} ${e.motionDurationSlow}`).join(","),
32751
- [`${o}-remove`]: {
32749
+ transition: ["opacity", "width", "margin", "padding"].map((a) => `${a} ${e.motionDurationSlow}`).join(","),
32750
+ [`${r}-remove`]: {
32752
32751
  display: "none !important"
32753
32752
  },
32754
32753
  "&-appear-start": {
@@ -32760,7 +32759,7 @@ const EM = (e) => {
32760
32759
  width: 0,
32761
32760
  paddingInline: 0,
32762
32761
  borderInlineWidth: 0,
32763
- marginInlineEnd: n(e.paddingSM).mul(-1).equal()
32762
+ marginInlineEnd: o(e.paddingSM).mul(-1).equal()
32764
32763
  }
32765
32764
  }
32766
32765
  }
package/dist/index.umd.js CHANGED
@@ -267,7 +267,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
267
267
  `]:{color:e.colorTextDisabled}}}}}},L3=e=>{const{componentCls:t,antCls:n,iconCls:o,fontSize:r,lineHeight:a}=e,l=`${t}-list-item`,s=`${l}-actions`,c=`${l}-action`,u=Math.round(r*a);return{[`${t}-wrapper`]:{[`${t}-list`]:h(h({},Eo()),{lineHeight:e.lineHeight,[l]:{position:"relative",height:e.lineHeight*r,marginTop:e.marginXS,fontSize:r,display:"flex",alignItems:"center",transition:`background-color ${e.motionDurationSlow}`,"&:hover":{backgroundColor:e.controlItemBgHover},[`${l}-name`]:h(h({},Ft),{padding:`0 ${e.paddingXS}px`,lineHeight:a,flex:"auto",transition:`all ${e.motionDurationSlow}`}),[s]:{[c]:{opacity:0},[`${c}${n}-btn-sm`]:{height:u,border:0,lineHeight:1,"> span":{transform:"scale(1)"}},[`
268
268
  ${c}:focus,
269
269
  &.picture ${c}
270
- `]:{opacity:1},[o]:{color:e.colorTextDescription,transition:`all ${e.motionDurationSlow}`},[`&:hover ${o}`]:{color:e.colorText}},[`${t}-icon ${o}`]:{color:e.colorTextDescription,fontSize:r},[`${l}-progress`]:{position:"absolute",bottom:-e.uploadProgressOffset,width:"100%",paddingInlineStart:r+e.paddingXS,fontSize:r,lineHeight:0,pointerEvents:"none","> div":{margin:0}}},[`${l}:hover ${c}`]:{opacity:1,color:e.colorText},[`${l}-error`]:{color:e.colorError,[`${l}-name, ${t}-icon ${o}`]:{color:e.colorError},[s]:{[`${o}, ${o}:hover`]:{color:e.colorError},[c]:{opacity:1}}},[`${t}-list-item-container`]:{transition:`opacity ${e.motionDurationSlow}, height ${e.motionDurationSlow}`,"&::before":{display:"table",width:0,height:0,content:'""'}}})}}},Lh=new fe("uploadAnimateInlineIn",{from:{width:0,height:0,margin:0,padding:0,opacity:0}}),zh=new fe("uploadAnimateInlineOut",{to:{width:0,height:0,margin:0,padding:0,opacity:0}}),z3=e=>{const{componentCls:t}=e,n=`${t}-animate-inline`;return[{[`${t}-wrapper`]:{[`${n}-appear, ${n}-enter, ${n}-leave`]:{animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseInOutCirc,animationFillMode:"forwards"},[`${n}-appear, ${n}-enter`]:{animationName:Lh},[`${n}-leave`]:{animationName:zh}}},Lh,zh]},j3=e=>{const{componentCls:t,iconCls:n,uploadThumbnailSize:o,uploadProgressOffset:r}=e,a=`${t}-list`,l=`${a}-item`;return{[`${t}-wrapper`]:{[`${a}${a}-picture, ${a}${a}-picture-card`]:{[l]:{position:"relative",height:o+e.lineWidth*2+e.paddingXS*2,padding:e.paddingXS,border:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusLG,"&:hover":{background:"transparent"},[`${l}-thumbnail`]:h(h({},Ft),{width:o,height:o,lineHeight:`${o+e.paddingSM}px`,textAlign:"center",flex:"none",[n]:{fontSize:e.fontSizeHeading2,color:e.colorPrimary},img:{display:"block",width:"100%",height:"100%",overflow:"hidden"}}),[`${l}-progress`]:{bottom:r,width:`calc(100% - ${e.paddingSM*2}px)`,marginTop:0,paddingInlineStart:o+e.paddingXS}},[`${l}-error`]:{borderColor:e.colorError,[`${l}-thumbnail ${n}`]:{"svg path[fill='#e6f7ff']":{fill:e.colorErrorBg},"svg path[fill='#1890ff']":{fill:e.colorError}}},[`${l}-uploading`]:{borderStyle:"dashed",[`${l}-name`]:{marginBottom:r}}}}}},F3=e=>{const{componentCls:t,iconCls:n,fontSizeLG:o,colorTextLightSolid:r}=e,a=`${t}-list`,l=`${a}-item`,s=e.uploadPicCardSize;return{[`${t}-wrapper${t}-picture-card-wrapper`]:h(h({},Eo()),{display:"inline-block",width:"100%",[`${t}${t}-select`]:{width:s,height:s,marginInlineEnd:e.marginXS,marginBottom:e.marginXS,textAlign:"center",verticalAlign:"top",backgroundColor:e.colorFillAlter,border:`${e.lineWidth}px dashed ${e.colorBorder}`,borderRadius:e.borderRadiusLG,cursor:"pointer",transition:`border-color ${e.motionDurationSlow}`,[`> ${t}`]:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%",textAlign:"center"},[`&:not(${t}-disabled):hover`]:{borderColor:e.colorPrimary}},[`${a}${a}-picture-card`]:{[`${a}-item-container`]:{display:"inline-block",width:s,height:s,marginBlock:`0 ${e.marginXS}px`,marginInline:`0 ${e.marginXS}px`,verticalAlign:"top"},"&::after":{display:"none"},[l]:{height:"100%",margin:0,"&::before":{position:"absolute",zIndex:1,width:`calc(100% - ${e.paddingXS*2}px)`,height:`calc(100% - ${e.paddingXS*2}px)`,backgroundColor:e.colorBgMask,opacity:0,transition:`all ${e.motionDurationSlow}`,content:'" "'}},[`${l}:hover`]:{[`&::before, ${l}-actions`]:{opacity:1}},[`${l}-actions`]:{position:"absolute",insetInlineStart:0,zIndex:10,width:"100%",whiteSpace:"nowrap",textAlign:"center",opacity:0,transition:`all ${e.motionDurationSlow}`,[`${n}-eye, ${n}-download, ${n}-delete`]:{zIndex:10,width:o,margin:`0 ${e.marginXXS}px`,fontSize:o,cursor:"pointer",transition:`all ${e.motionDurationSlow}`}},[`${l}-actions, ${l}-actions:hover`]:{[`${n}-eye, ${n}-download, ${n}-delete`]:{color:new Ce(r).setAlpha(.65).toRgbString(),"&:hover":{color:r}}},[`${l}-thumbnail, ${l}-thumbnail img`]:{position:"static",display:"block",width:"100%",height:"100%",objectFit:"contain"},[`${l}-name`]:{display:"none",textAlign:"center"},[`${l}-file + ${l}-name`]:{position:"absolute",bottom:e.margin,display:"block",width:`calc(100% - ${e.paddingXS*2}px)`},[`${l}-uploading`]:{[`&${l}`]:{backgroundColor:e.colorFillAlter},[`&::before, ${n}-eye, ${n}-download, ${n}-delete`]:{display:"none"}},[`${l}-progress`]:{bottom:e.marginXL,width:`calc(100% - ${e.paddingXS*2}px)`,paddingInlineStart:0}}})}},H3=e=>{const{componentCls:t}=e;return{[`${t}-rtl`]:{direction:"rtl"}}},_3=e=>{const{componentCls:t,colorTextDisabled:n}=e;return{[`${t}-wrapper`]:h(h({},Me(e)),{[t]:{outline:0,"input[type='file']":{cursor:"pointer"}},[`${t}-select`]:{display:"inline-block"},[`${t}-disabled`]:{color:n,cursor:"not-allowed"}})}},k3=Ee("Upload",e=>{const{fontSizeHeading3:t,fontSize:n,lineHeight:o,lineWidth:r,controlHeightLG:a}=e,l=Math.round(n*o),s=ve(e,{uploadThumbnailSize:t*2,uploadProgressOffset:l/2+r,uploadPicCardSize:a*2.55});return[_3(s),B3(s),j3(s),F3(s),L3(s),z3(s),H3(s),zp(s)]});var W3=function(e,t,n,o){function r(a){return a instanceof n?a:new n(function(l){l(a)})}return new(n||(n=Promise))(function(a,l){function s(d){try{u(o.next(d))}catch(f){l(f)}}function c(d){try{u(o.throw(d))}catch(f){l(f)}}function u(d){d.done?a(d.value):r(d.value).then(s,c)}u((o=o.apply(e,t||[])).next())})},X3=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]]);return n};const fr=`__LIST_IGNORE_${Date.now()}__`,Wi=i.defineComponent({compatConfig:{MODE:3},name:"AUpload",inheritAttrs:!1,props:Re(Vh(),{type:"select",multiple:!1,action:"",data:{},accept:"",showUploadList:!0,listType:"text",supportServerRender:!0}),setup(e,t){let{slots:n,attrs:o,expose:r}=t;const a=pi(),{prefixCls:l,direction:s,disabled:c}=ye("upload",e),[u,d]=k3(l),f=on(),p=i.computed(()=>{var R;return(R=c.value)!==null&&R!==void 0?R:f.value}),[m,v]=Xt(e.defaultFileList||[],{value:i.toRef(e,"fileList"),postState:R=>{const z=Date.now();return(R??[]).map((A,j)=>(!A.uid&&!Object.isFrozen(A)&&(A.uid=`__AUTO__${z}_${j}__`),A))}}),g=i.ref("drop"),y=i.ref(null);i.onMounted(()=>{Je(e.fileList!==void 0||o.value===void 0,"Upload","`value` is not a valid prop, do you mean `fileList`?"),Je(e.transformFile===void 0,"Upload","`transformFile` is deprecated. Please use `beforeUpload` directly."),Je(e.remove===void 0,"Upload","`remove` props is deprecated. Please use `remove` event.")});const b=(R,z,A)=>{var j,O;let T=[...z];e.maxCount===1?T=T.slice(-1):e.maxCount&&(T=T.slice(0,e.maxCount)),v(T);const D={file:R,fileList:T};A&&(D.event=A),(j=e["onUpdate:fileList"])===null||j===void 0||j.call(e,D.fileList),(O=e.onChange)===null||O===void 0||O.call(e,D),a.onFieldChange()},S=(R,z)=>W3(this,void 0,void 0,function*(){const{beforeUpload:A,transformFile:j}=e;let O=R;if(A){const T=yield A(R,z);if(T===!1)return!1;if(delete R[fr],T===fr)return Object.defineProperty(R,fr,{value:!0,configurable:!0}),!1;typeof T=="object"&&T&&(O=T)}return j&&(O=yield j(O)),O}),$=R=>{const z=R.filter(O=>!O.file[fr]);if(!z.length)return;const A=z.map(O=>_i(O.file));let j=[...m.value];A.forEach(O=>{j=ki(O,j)}),A.forEach((O,T)=>{let D=O;if(z[T].parsedFile)O.status="uploading";else{const{originFileObj:V}=O;let N;try{N=new File([V],V.name,{type:V.type})}catch{N=new Blob([V],{type:V.type}),N.name=V.name,N.lastModifiedDate=new Date,N.lastModified=new Date().getTime()}N.uid=O.uid,D=N}b(D,j)})},x=(R,z,A)=>{try{typeof R=="string"&&(R=JSON.parse(R))}catch{}if(!Xs(z,m.value))return;const j=_i(z);j.status="done",j.percent=100,j.response=R,j.xhr=A;const O=ki(j,m.value);b(j,O)},w=(R,z)=>{if(!Xs(z,m.value))return;const A=_i(z);A.status="uploading",A.percent=R.percent;const j=ki(A,m.value);b(A,j,R)},P=(R,z,A)=>{if(!Xs(A,m.value))return;const j=_i(A);j.error=R,j.response=z,j.status="error";const O=ki(j,m.value);b(j,O)},C=R=>{let z;const A=e.onRemove||e.remove;Promise.resolve(typeof A=="function"?A(R):A).then(j=>{var O,T;if(j===!1)return;const D=P3(R,m.value);D&&(z=h(h({},R),{status:"removed"}),(O=m.value)===null||O===void 0||O.forEach(V=>{const N=z.uid!==void 0?"uid":"name";V[N]===z[N]&&!Object.isFrozen(V)&&(V.status="removed")}),(T=y.value)===null||T===void 0||T.abort(z),b(z,D))})},I=R=>{var z;g.value=R.type,R.type==="drop"&&((z=e.onDrop)===null||z===void 0||z.call(e,R))};r({onBatchStart:$,onSuccess:x,onProgress:w,onError:P,fileList:m,upload:y});const[M]=xy("Upload",Bt.Upload,i.computed(()=>e.locale)),E=(R,z)=>{const{removeIcon:A,previewIcon:j,downloadIcon:O,previewFile:T,onPreview:D,onDownload:V,isImageUrl:N,progress:F,itemRender:_,iconRender:G,showUploadList:Z}=e,{showDownloadIcon:te,showPreviewIcon:oe,showRemoveIcon:J}=typeof Z=="boolean"?{}:Z;return Z?i.createVNode(D3,{prefixCls:l.value,listType:e.listType,items:m.value,previewFile:T,onPreview:D,onDownload:V,onRemove:C,showRemoveIcon:!p.value&&J,showPreviewIcon:oe,showDownloadIcon:te,removeIcon:A,previewIcon:j,downloadIcon:O,iconRender:G,locale:M.value,isImageUrl:N,progress:F,itemRender:_,appendActionVisible:z,appendAction:R},h({},n)):R==null?void 0:R()};return()=>{var R,z,A;const{listType:j,type:O}=e,{class:T,style:D}=o,V=X3(o,["class","style"]),N=h(h(h({onBatchStart:$,onError:P,onProgress:w,onSuccess:x},V),e),{id:(R=e.id)!==null&&R!==void 0?R:a.id.value,prefixCls:l.value,beforeUpload:S,onChange:void 0,disabled:p.value});delete N.remove,(!n.default||p.value)&&delete N.id;const F={[`${l.value}-rtl`]:s.value==="rtl"};if(O==="drag"){const te=Q(l.value,{[`${l.value}-drag`]:!0,[`${l.value}-drag-uploading`]:m.value.some(oe=>oe.status==="uploading"),[`${l.value}-drag-hover`]:g.value==="dragover",[`${l.value}-disabled`]:p.value,[`${l.value}-rtl`]:s.value==="rtl"},o.class,d.value);return u(i.createVNode("span",B(B({},o),{},{class:Q(`${l.value}-wrapper`,F,T,d.value)}),[i.createVNode("div",{class:te,onDrop:I,onDragover:I,onDragleave:I,style:o.style},[i.createVNode(Eh,B(B({},N),{},{ref:y,class:`${l.value}-btn`}),B({default:()=>[i.createVNode("div",{class:`${l.value}-drag-container`},[(z=n.default)===null||z===void 0?void 0:z.call(n)])]},n))]),E()]))}const _=Q(l.value,{[`${l.value}-select`]:!0,[`${l.value}-select-${j}`]:!0,[`${l.value}-disabled`]:p.value,[`${l.value}-rtl`]:s.value==="rtl"}),G=Be((A=n.default)===null||A===void 0?void 0:A.call(n)),Z=te=>i.createVNode("div",{class:_,style:te},[i.createVNode(Eh,B(B({},N),{},{ref:y}),n)]);return u(j==="picture-card"?i.createVNode("span",B(B({},o),{},{class:Q(`${l.value}-wrapper`,`${l.value}-picture-card-wrapper`,F,o.class,d.value)}),[E(Z,!!G.length)]):i.createVNode("span",B(B({},o),{},{class:Q(`${l.value}-wrapper`,F,o.class,d.value)}),[Z(G.length?void 0:{display:"none"}),E()]))}}});var jh=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]]);return n};const Ks=i.defineComponent({compatConfig:{MODE:3},name:"AUploadDragger",inheritAttrs:!1,props:Vh(),setup(e,t){let{slots:n,attrs:o}=t;return()=>{const{height:r}=e,a=jh(e,["height"]),{style:l}=o,s=jh(o,["style"]),c=h(h(h({},a),s),{type:"drag",style:h(h({},l),{height:typeof r=="number"?`${r}px`:r})});return i.createVNode(Wi,c,n)}}}),Fh=h(Wi,{Dragger:Ks,LIST_IGNORE:fr,install(e){return e.component(Wi.name,Wi),e.component(Ks.name,Ks),e}});var U3={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 Hh(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?Object(arguments[t]):{},o=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(o=o.concat(Object.getOwnPropertySymbols(n).filter(function(r){return Object.getOwnPropertyDescriptor(n,r).enumerable}))),o.forEach(function(r){K3(e,r,n[r])})}return e}function K3(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Gs=function(t,n){var o=Hh({},t,n.attrs);return i.createVNode(ie,Hh({},o,{icon:U3}),null)};Gs.displayName="ArrowUpOutlined",Gs.inheritAttrs=!1;var G3={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 _h(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?Object(arguments[t]):{},o=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(o=o.concat(Object.getOwnPropertySymbols(n).filter(function(r){return Object.getOwnPropertyDescriptor(n,r).enumerable}))),o.forEach(function(r){q3(e,r,n[r])})}return e}function q3(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var qs=function(t,n){var o=_h({},t,n.attrs);return i.createVNode(ie,_h({},o,{icon:G3}),null)};qs.displayName="AudioMutedOutlined",qs.inheritAttrs=!1;var Y3={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 kh(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?Object(arguments[t]):{},o=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(o=o.concat(Object.getOwnPropertySymbols(n).filter(function(r){return Object.getOwnPropertyDescriptor(n,r).enumerable}))),o.forEach(function(r){Z3(e,r,n[r])})}return e}function Z3(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Ys=function(t,n){var o=kh({},t,n.attrs);return i.createVNode(ie,kh({},o,{icon:Y3}),null)};Ys.displayName="AudioOutlined",Ys.inheritAttrs=!1;var Q3={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 Wh(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?Object(arguments[t]):{},o=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(o=o.concat(Object.getOwnPropertySymbols(n).filter(function(r){return Object.getOwnPropertyDescriptor(n,r).enumerable}))),o.forEach(function(r){J3(e,r,n[r])})}return e}function J3(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Zs=function(t,n){var o=Wh({},t,n.attrs);return i.createVNode(ie,Wh({},o,{icon:Q3}),null)};Zs.displayName="ClearOutlined",Zs.inheritAttrs=!1;var eE={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 Xh(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?Object(arguments[t]):{},o=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(o=o.concat(Object.getOwnPropertySymbols(n).filter(function(r){return Object.getOwnPropertyDescriptor(n,r).enumerable}))),o.forEach(function(r){tE(e,r,n[r])})}return e}function tE(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Qs=function(t,n){var o=Xh({},t,n.attrs);return i.createVNode(ie,Xh({},o,{icon:eE}),null)};Qs.displayName="FileExcelFilled",Qs.inheritAttrs=!1;var nE={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 Uh(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?Object(arguments[t]):{},o=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(o=o.concat(Object.getOwnPropertySymbols(n).filter(function(r){return Object.getOwnPropertyDescriptor(n,r).enumerable}))),o.forEach(function(r){oE(e,r,n[r])})}return e}function oE(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Js=function(t,n){var o=Uh({},t,n.attrs);return i.createVNode(ie,Uh({},o,{icon:nE}),null)};Js.displayName="FileImageFilled",Js.inheritAttrs=!1;var rE={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 Kh(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?Object(arguments[t]):{},o=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(o=o.concat(Object.getOwnPropertySymbols(n).filter(function(r){return Object.getOwnPropertyDescriptor(n,r).enumerable}))),o.forEach(function(r){iE(e,r,n[r])})}return e}function iE(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ec=function(t,n){var o=Kh({},t,n.attrs);return i.createVNode(ie,Kh({},o,{icon:rE}),null)};ec.displayName="FileMarkdownFilled",ec.inheritAttrs=!1;var aE={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 Gh(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?Object(arguments[t]):{},o=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(o=o.concat(Object.getOwnPropertySymbols(n).filter(function(r){return Object.getOwnPropertyDescriptor(n,r).enumerable}))),o.forEach(function(r){lE(e,r,n[r])})}return e}function lE(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var tc=function(t,n){var o=Gh({},t,n.attrs);return i.createVNode(ie,Gh({},o,{icon:aE}),null)};tc.displayName="FilePdfFilled",tc.inheritAttrs=!1;var sE={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 qh(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?Object(arguments[t]):{},o=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(o=o.concat(Object.getOwnPropertySymbols(n).filter(function(r){return Object.getOwnPropertyDescriptor(n,r).enumerable}))),o.forEach(function(r){cE(e,r,n[r])})}return e}function cE(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var nc=function(t,n){var o=qh({},t,n.attrs);return i.createVNode(ie,qh({},o,{icon:sE}),null)};nc.displayName="FilePptFilled",nc.inheritAttrs=!1;var uE={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 Yh(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?Object(arguments[t]):{},o=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(o=o.concat(Object.getOwnPropertySymbols(n).filter(function(r){return Object.getOwnPropertyDescriptor(n,r).enumerable}))),o.forEach(function(r){dE(e,r,n[r])})}return e}function dE(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var oc=function(t,n){var o=Yh({},t,n.attrs);return i.createVNode(ie,Yh({},o,{icon:uE}),null)};oc.displayName="FileTextFilled",oc.inheritAttrs=!1;var fE={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 Zh(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?Object(arguments[t]):{},o=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(o=o.concat(Object.getOwnPropertySymbols(n).filter(function(r){return Object.getOwnPropertyDescriptor(n,r).enumerable}))),o.forEach(function(r){pE(e,r,n[r])})}return e}function pE(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var rc=function(t,n){var o=Zh({},t,n.attrs);return i.createVNode(ie,Zh({},o,{icon:fE}),null)};rc.displayName="FileWordFilled",rc.inheritAttrs=!1;var mE={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 Qh(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?Object(arguments[t]):{},o=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(o=o.concat(Object.getOwnPropertySymbols(n).filter(function(r){return Object.getOwnPropertyDescriptor(n,r).enumerable}))),o.forEach(function(r){gE(e,r,n[r])})}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}var ic=function(t,n){var o=Qh({},t,n.attrs);return i.createVNode(ie,Qh({},o,{icon:mE}),null)};ic.displayName="FileZipFilled",ic.inheritAttrs=!1;const Jh=["wrap","nowrap","wrap-reverse"],e0=["flex-start","flex-end","start","end","center","space-between","space-around","space-evenly","stretch","normal","left","right"],t0=["center","start","end","flex-start","flex-end","self-start","self-end","baseline","normal","stretch"],hE=(e,t)=>{const n={};return Jh.forEach(o=>{n[`${e}-wrap-${o}`]=t.wrap===o}),n},vE=(e,t)=>{const n={};return t0.forEach(o=>{n[`${e}-align-${o}`]=t.align===o}),n[`${e}-align-stretch`]=!t.align&&!!t.vertical,n},yE=(e,t)=>{const n={};return e0.forEach(o=>{n[`${e}-justify-${o}`]=t.justify===o}),n};function bE(e,t){return Q(h(h(h({},hE(e,t)),vE(e,t)),yE(e,t)))}const CE=e=>{const{componentCls:t}=e;return{[t]:{display:"flex","&-vertical":{flexDirection:"column"},"&-rtl":{direction:"rtl"},"&:empty":{display:"none"}}}},SE=e=>{const{componentCls:t}=e;return{[t]:{"&-gap-small":{gap:e.flexGapSM},"&-gap-middle":{gap:e.flexGap},"&-gap-large":{gap:e.flexGapLG}}}},wE=e=>{const{componentCls:t}=e,n={};return Jh.forEach(o=>{n[`${t}-wrap-${o}`]={flexWrap:o}}),n},$E=e=>{const{componentCls:t}=e,n={};return t0.forEach(o=>{n[`${t}-align-${o}`]={alignItems:o}}),n},xE=e=>{const{componentCls:t}=e,n={};return e0.forEach(o=>{n[`${t}-justify-${o}`]={justifyContent:o}}),n},OE=Ee("Flex",e=>{const t=ve(e,{flexGapSM:e.paddingXS,flexGap:e.padding,flexGapLG:e.paddingLG});return[CE(t),SE(t),wE(t),$E(t),xE(t)]});function n0(e){return["small","middle","large"].includes(e)}const PE=()=>({prefixCls:Ne(),vertical:be(),wrap:Ne(),justify:Ne(),align:Ne(),flex:ot([Number,String]),gap:ot([Number,String]),component:De()});var IE=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]]);return n};const TE=i.defineComponent({name:"AFlex",inheritAttrs:!1,props:PE(),setup(e,t){let{slots:n,attrs:o}=t;const{flex:r,direction:a}=bo(),{prefixCls:l}=ye("flex",e),[s,c]=OE(l),u=i.computed(()=>{var d;return[l.value,c.value,bE(l.value,e),{[`${l.value}-rtl`]:a.value==="rtl",[`${l.value}-gap-${e.gap}`]:n0(e.gap),[`${l.value}-vertical`]:(d=e.vertical)!==null&&d!==void 0?d:r==null?void 0:r.value.vertical}]});return()=>{var d;const{flex:f,gap:p,component:m="div"}=e,v=IE(e,["flex","gap","component"]),g={};return f&&(g.flex=f),p&&!n0(p)&&(g.gap=`${p}px`),s(i.createVNode(m,B({class:[o.class,u.value],style:[o.style,g]},$e(v,["justify","wrap","align","vertical"])),{default:()=>[(d=n.default)===null||d===void 0?void 0:d.call(n)]}))}}}),pr=Dt(TE),Jt=(e,t)=>new Ce(e).setAlpha(t).toRgbString(),uo=(e,t)=>new Ce(e).lighten(t).toHexString(),NE=e=>{const t=$t(e,{theme:"dark"});return{1:t[0],2:t[1],3:t[2],4:t[3],5:t[6],6:t[5],7:t[4],8:t[6],9:t[5],10:t[4]}},EE=(e,t)=>{const n=e||"#000",o=t||"#fff";return{colorBgBase:n,colorTextBase:o,colorText:Jt(o,.85),colorTextSecondary:Jt(o,.65),colorTextTertiary:Jt(o,.45),colorTextQuaternary:Jt(o,.25),colorFill:Jt(o,.18),colorFillSecondary:Jt(o,.12),colorFillTertiary:Jt(o,.08),colorFillQuaternary:Jt(o,.04),colorBgElevated:uo(n,12),colorBgContainer:uo(n,8),colorBgLayout:uo(n,0),colorBgSpotlight:uo(n,26),colorBorder:uo(n,26),colorBorderSecondary:uo(n,19)}},RE=(e,t)=>{const n=Object.keys(Na).map(r=>{const a=$t(e[r],{theme:"dark"});return new Array(10).fill(1).reduce((l,s,c)=>(l[`${r}-${c+1}`]=a[c],l),{})}).reduce((r,a)=>(r=h(h({},r),a),r),{}),o=t??_r(e);return h(h(h({},o),n),Ju(e,{generateColorPalettes:NE,generateNeutralColorPalettes:EE}))};function ME(e){const{sizeUnit:t,sizeStep:n}=e,o=n-2;return{sizeXXL:t*(o+10),sizeXL:t*(o+6),sizeLG:t*(o+2),sizeMD:t*(o+2),sizeMS:t*(o+1),size:t*o,sizeSM:t*o,sizeXS:t*(o-1),sizeXXS:t*(o-1)}}const AE=(e,t)=>{const n=t??_r(e),o=n.fontSizeSM,r=n.controlHeight-4;return h(h(h(h(h({},n),ME(t??e)),ed(o)),{controlHeight:r}),Qu(h(h({},n),{controlHeight:r})))};function VE(){const[e,t,n]=un();return{theme:e,token:t,hashId:n}}const mr={defaultConfig:Ro,defaultSeed:Ro.token,useToken:VE,defaultAlgorithm:_r,darkAlgorithm:RE,compactAlgorithm:AE},DE=i.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=je(e,["attachments","bubble","conversations","prompts","suggestion","thoughtChain","welcome"]),n=i.useSlots(),o=i.computed(()=>({attachments:e.attachments,bubble:e.bubble,conversations:e.conversations,prompts:e.prompts,suggestion:e.suggestion,thoughtChain:e.thoughtChain,welcome:e.welcome})),{theme:r}=We(),a=i.computed(()=>({...(r==null?void 0:r.value)||{},...t.theme})),l=i.computed(()=>{var s;return(s=n.default)==null?void 0:s.call(n)});return()=>i.createVNode(Dv,{value:o.value},{default:()=>[i.createVNode(co,i.mergeProps(t,{theme:a.value}),{default:()=>[l.value]})]})}}),BE={classNames:{},styles:{},className:"",style:{}},en=e=>{const t=Vv();return i.computed(()=>({...BE,...i.unref(t)[e]}))};function Te(e){const t=typeof e=="function"?e():e,n=i.ref(t);function o(r){n.value=r}return[n,o]}function Pn(e){return typeof e=="string"}const LE=(e,t,n,o)=>{const[r,a]=Te(""),[l,s]=Te(1),c=i.computed(()=>t.value&&Pn(e.value));return i.watch(e,()=>{const d=i.unref(r);a(e.value),!c.value&&Pn(e.value)?s(e.value.length):Pn(e.value)&&Pn(d)&&e.value.indexOf(d)!==0&&s(1)}),i.watch([l,t,e],()=>{if(c.value&&Pn(e.value)&&i.unref(l)<e.value.length){const d=setTimeout(()=>{s(i.unref(l)+n.value)},o.value);i.onWatcherCleanup(()=>{clearTimeout(d)})}},{immediate:!0}),[i.computed(()=>c.value&&Pn(e.value)?e.value.slice(0,i.unref(l)):e.value),i.computed(()=>c.value&&Pn(e.value)&&i.unref(l)<e.value.length)]};function zE(e){const t=i.computed(()=>!!i.toValue(e)),n={step:1,interval:50,suffix:null},o=i.computed(()=>{const r=i.toValue(e);return{...n,...typeof r=="object"?r:{}}});return[t,i.computed(()=>o.value.step),i.computed(()=>o.value.interval),i.computed(()=>o.value.suffix)]}const jE=i.defineComponent({name:"AXBubbleLoading",__name:"loading",props:{prefixCls:null},setup(e){return()=>i.createVNode("span",{class:`${e.prefixCls}-dot`},[i.createVNode("i",{class:`${e.prefixCls}-dot-item`,key:"item-1"},null),i.createVNode("i",{class:`${e.prefixCls}-dot-item`,key:"item-2"},null),i.createVNode("i",{class:`${e.prefixCls}-dot-item`,key:"item-3"},null)])}}),o0="%";class FE{constructor(t){this.cache=new Map,this.instanceId=t}get(t){return this.cache.get(Array.isArray(t)?t.join(o0):t)||null}update(t,n){const o=Array.isArray(t)?t.join(o0):t,r=this.cache.get(o),a=n(r);a===null?this.cache.delete(o):this.cache.set(o,a)}}const r0="data-token-hash",tn="data-css-hash",fo="__cssinjs_instance__";function gr(){const e=Math.random().toString(12).slice(2);if(typeof document<"u"&&document.head&&document.body){const t=document.body.querySelectorAll(`style[${tn}]`)||[],{firstChild:n}=document.head;Array.from(t).forEach(r=>{r[fo]=r[fo]||e,r[fo]===e&&document.head.insertBefore(r,n)});const o={};Array.from(document.querySelectorAll(`style[${tn}]`)).forEach(r=>{var l;const a=r.getAttribute(tn);o[a]?r[fo]===e&&((l=r.parentNode)==null||l.removeChild(r)):o[a]=!0})}return new FE(e)}const i0=Symbol("StyleContextKey"),HE=()=>{var n,o,r;const e=i.getCurrentInstance();let t;if(e&&e.appContext){const a=(r=(o=(n=e.appContext)==null?void 0:n.config)==null?void 0:o.globalProperties)==null?void 0:r.__ANTDV_CSSINJS_CACHE__;a?t=a:(t=gr(),e.appContext.config.globalProperties&&(e.appContext.config.globalProperties.__ANTDV_CSSINJS_CACHE__=t))}else t=gr();return t},a0={cache:gr(),defaultCache:!0,hashPriority:"low"},hr=()=>{const e=HE();return i.inject(i0,i.shallowRef({...a0,cache:e}))},l0=e=>{const t=hr(),n=i.shallowRef({...a0,cache:gr()});return i.watch([()=>i.unref(e),t],()=>{const o={...t.value},r=i.unref(e);Object.keys(r).forEach(l=>{const s=r[l];r[l]!==void 0&&(o[l]=s)});const{cache:a}=r;o.cache=o.cache||gr(),o.defaultCache=!a&&t.value.defaultCache,n.value=o},{immediate:!0}),i.provide(i0,n),n},_E=()=>({autoClear:aa(),mock:Fc(),cache:St(),defaultCache:aa(),hashPriority:Fc(),container:Mv(),ssrInline:aa(),transformers:jc(),linters:jc()}),kE=Ev(i.defineComponent({name:"AStyleProvider",inheritAttrs:!1,props:_E(),setup(e,{slots:t}){return l0(e),()=>{var n;return(n=t.default)==null?void 0:n.call(t)}}})),WE={useStyleInject:hr,useStyleProvider:l0,StyleProvider:kE};function ac(e,t,n,o){const r=hr(),a=i.shallowRef(""),l=i.shallowRef();i.watchEffect(()=>{a.value=[e,...t.value].join("%")});const s=c=>{r.value.cache.update(c,u=>{const[d=0,f]=u||[];return d-1===0?(o==null||o(f,!1),null):[d-1,f]})};return i.watch(a,(c,u)=>{u&&s(u),r.value.cache.update(c,d=>{const[f=0,p]=d||[],v=p||n();return[f+1,v]}),l.value=r.value.cache.get(a.value)[1]},{immediate:!0}),i.onBeforeUnmount(()=>{s(a.value)}),l}function po(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function XE(e,t){return e&&e.contains?e.contains(t):!1}const s0="data-vc-order",UE="vc-util-key",lc=new Map;function c0({mark:e}={}){return e?e.startsWith("data-")?e:`data-${e}`:UE}function Xi(e){return e.attachTo?e.attachTo:document.querySelector("head")||document.body}function KE(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function u0(e){return Array.from((lc.get(e)||e).children).filter(t=>t.tagName==="STYLE")}function d0(e,t={}){if(!po())return null;const{csp:n,prepend:o}=t,r=document.createElement("style");r.setAttribute(s0,KE(o)),n!=null&&n.nonce&&(r.nonce=n==null?void 0:n.nonce),r.innerHTML=e;const a=Xi(t),{firstChild:l}=a;if(o){if(o==="queue"){const s=u0(a).filter(c=>["prepend","prependQueue"].includes(c.getAttribute(s0)));if(s.length)return a.insertBefore(r,s[s.length-1].nextSibling),r}a.insertBefore(r,l)}else a.appendChild(r);return r}function f0(e,t={}){const n=Xi(t);return u0(n).find(o=>o.getAttribute(c0(t))===e)}function sc(e,t={}){const n=f0(e,t);n&&Xi(t).removeChild(n)}function GE(e,t){const n=lc.get(e);if(!n||!XE(document,n)){const o=d0("",t),{parentNode:r}=o;lc.set(e,r),e.removeChild(o)}}function cc(e,t,n={}){var l,s,c;const o=Xi(n);GE(o,n);const r=f0(t,n);if(r)return(l=n.csp)!=null&&l.nonce&&r.nonce!==((s=n.csp)==null?void 0:s.nonce)&&(r.nonce=(c=n.csp)==null?void 0:c.nonce),r.innerHTML!==e&&(r.innerHTML=e),r;const a=d0(e,n);return a.setAttribute(c0(n),t),a}function qE(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}const ho=class ho{constructor(){this.cache=new Map,this.keys=[],this.cacheCallTimes=0}size(){return this.keys.length}internalGet(t,n=!1){let o={map:this.cache};return t.forEach(r=>{var a;o?o=(a=o==null?void 0:o.map)==null?void 0:a.get(r):o=void 0}),o!=null&&o.value&&n&&(o.value[1]=this.cacheCallTimes++),o==null?void 0:o.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>ho.MAX_CACHE_SIZE+ho.MAX_CACHE_OFFSET){const[r]=this.keys.reduce((a,l)=>{const[,s]=a;return this.internalGet(l)[1]<s?[l,this.internalGet(l)[1]]:a},[this.keys[0],this.cacheCallTimes]);this.delete(r)}this.keys.push(t)}let o=this.cache;t.forEach((r,a)=>{if(a===t.length-1)o.set(r,{value:[n,this.cacheCallTimes++]});else{const l=o.get(r);l?l.map||(l.map=new Map):o.set(r,{map:new Map}),o=o.get(r).map}})}deleteByPath(t,n){var a;const o=t.get(n[0]);if(n.length===1)return o.map?t.set(n[0],{map:o.map}):t.delete(n[0]),(a=o.value)==null?void 0:a[0];const r=this.deleteByPath(o.map,n.slice(1));return(!o.map||o.map.size===0)&&!o.value&&t.delete(n[0]),r}delete(t){if(this.has(t))return this.keys=this.keys.filter(n=>!qE(n,t)),this.deleteByPath(this.cache,t)}};ho.MAX_CACHE_SIZE=20,ho.MAX_CACHE_OFFSET=5;let uc=ho;function YE(){}let ZE=YE;const QE=Symbol("WarningContext"),p0=i.shallowRef(),JE=e=>{i.provide(QE,e),i.watch(e,()=>{p0.value=i.unref(e),i.triggerRef(p0)},{immediate:!0,deep:!0})};i.defineComponent({props:{value:St()},setup(e,{slots:t}){return JE(i.computed(()=>e.value)),()=>{var n;return(n=t.default)==null?void 0:n.call(t)}}});let m0=0;class g0{constructor(t){this.derivatives=Array.isArray(t)?t:[t],this.id=m0,t.length===0&&ZE(t.length>0),m0+=1}getDerivativeToken(t){return this.derivatives.reduce((n,o)=>o(t,n),void 0)}}const dc=new uc;function e8(e){const t=Array.isArray(e)?e:[e];return dc.has(t)||dc.set(t,new g0(t)),dc.get(t)}const h0=new WeakMap;function Ui(e){let t=h0.get(e)||"";return t||(Object.keys(e).forEach(n=>{const o=e[n];t+=n,o instanceof g0?t+=o.id:o&&typeof o=="object"?t+=Ui(o):t+=o}),h0.set(e,t)),t}function t8(e,t){return Ln(`${t}_${Ui(e)}`)}const vr=`random-${Date.now()}-${Math.random()}`.replace(/\./g,""),v0="_bAmBoO_";function n8(e,t,n){var o,r;if(po()){cc(e,vr);const a=document.createElement("div");a.style.position="fixed",a.style.left="0",a.style.top="0",t==null||t(a),document.body.appendChild(a);const l=n?n(a):(o=getComputedStyle(a).content)==null?void 0:o.includes(v0);return(r=a.parentNode)==null||r.removeChild(a),sc(vr),l}return!1}let fc;function o8(){return fc===void 0&&(fc=n8(`@layer ${vr} { .${vr} { content: "${v0}"!important; } }`,e=>{e.className=vr})),fc}const r8=po();function ft(e){return typeof e=="number"?`${e}px`:e}const Ki=(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(),i8=(e,t,n)=>Object.keys(e).length?`.${t}${n!=null&&n.scope?`.${n.scope}`:""}{${Object.entries(e).map(([o,r])=>`${o}:${r};`).join("")}}`:"",a8=(e,t,n)=>{const o={},r={};return Object.entries(e).forEach(([a,l])=>{var s,c,u;if((s=n==null?void 0:n.preserve)!=null&&s[a])r[a]=l;else if((typeof l=="string"||typeof l=="number")&&!((c=n==null?void 0:n.ignore)!=null&&c[a])){const d=Ki(a,n==null?void 0:n.prefix);o[d]=typeof l=="number"&&!((u=n==null?void 0:n.unitless)!=null&&u[a])?`${l}px`:String(l),r[a]=`var(${d})`}}),[r,i8(o,t,{scope:n==null?void 0:n.scope})]},y0={},l8="css",In=new Map;function s8(e){In.set(e,(In.get(e)||0)+1)}function c8(e,t){typeof document<"u"&&document.querySelectorAll(`style[${r0}="${e}"]`).forEach(o=>{var r;o[fo]===t&&((r=o.parentNode)==null||r.removeChild(o))})}const u8=0;function d8(e,t){In.set(e,(In.get(e)||0)-1);const n=Array.from(In.keys()),o=n.filter(r=>(In.get(r)||0)<=0);n.length-o.length>u8&&o.forEach(r=>{c8(r,t),In.delete(r)})}const f8=(e,t,n,o)=>{let a={...n==null?void 0:n.getDerivativeToken(e),...t};return o&&(a=o(a)),a};function p8(e,t,n=i.ref({})){const o=hr(),r=i.computed(()=>Object.assign({},...t.value||[])),a=i.computed(()=>Ui(r.value)),l=i.computed(()=>{var c;return Ui(((c=n.value)==null?void 0:c.override)||y0)});return ac("token",i.computed(()=>{var c,u;return[((c=n.value)==null?void 0:c.salt)||"",(u=e.value)==null?void 0:u.id,a.value,l.value]}),()=>{const{salt:c="",override:u=y0,formatToken:d,getComputedToken:f}=n.value||{},p=f?f(r.value,u,e.value):f8(r.value,u,e.value,d),m=t8(p,c);p._tokenKey=m,s8(m);const v=`${l8}-${Ln(m)}`;return p._hashId=v,[p,v]},c=>{var u;d8(c[0]._tokenKey,(u=o.value)==null?void 0:u.cache.instanceId)})}var m8={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};const b0="data-ant-cssinjs-cache-path",g8="_FILE_STYLE__";let Tn,C0=!0;function h8(){var e;if(!Tn&&(Tn={},po())){const t=document.createElement("div");t.className=b0,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(r=>{const[a,l]=r.split(":");Tn[a]=l});const o=document.querySelector(`style[${b0}]`);o&&(C0=!1,(e=o.parentNode)==null||e.removeChild(o)),document.body.removeChild(t)}}function v8(e){return h8(),!!Tn[e]}function y8(e){const t=Tn[e];let n=null;if(t&&po())if(C0)n=g8;else{const o=document.querySelector(`style[${tn}="${Tn[e]}"]`);o?n=o.innerHTML:delete Tn[e]}return[n,t]}const S0=po(),b8="_skip_check_",w0="_multi_value_";function $0(e){return Br(Mu(e),Du).replace(/\{%%%\:[^;];}/g,";")}function C8(e){return typeof e=="object"&&e&&(b8 in e||w0 in e)}function S8(e,t,n){if(!t)return e;const o=`.${t}`,r=n==="low"?`:where(${o})`:o;return e.split(",").map(l=>{var d;const s=l.trim().split(/\s+/);let c=s[0]||"";const u=((d=c.match(/^\w+/))==null?void 0:d[0])||"";return c=`${u}${r}${c.slice(u.length)}`,[c,...s.slice(1)].join(" ")}).join(",")}const x0=new Set,pc=(e,t={},{root:n,injectHash:o,parentSelectors:r}={root:!0,parentSelectors:[]})=>{const{hashId:a,layer:l,path:s,hashPriority:c,transformers:u=[],linters:d=[]}=t;let f="",p={};function m(y){const b=y.getName(a);if(!p[b]){const[S]=pc(y.style,t,{root:!1,parentSelectors:r});p[b]=`@keyframes ${y.getName(a)}${S}`}}function v(y,b=[]){return y.forEach(S=>{Array.isArray(S)?v(S,b):S&&b.push(S)}),b}return v(Array.isArray(e)?e:[e]).forEach(y=>{const b=typeof y=="string"&&!n?{}:y;if(typeof b=="string")f+=`${b}
270
+ `]:{opacity:1},[o]:{color:e.colorTextDescription,transition:`all ${e.motionDurationSlow}`},[`&:hover ${o}`]:{color:e.colorText}},[`${t}-icon ${o}`]:{color:e.colorTextDescription,fontSize:r},[`${l}-progress`]:{position:"absolute",bottom:-e.uploadProgressOffset,width:"100%",paddingInlineStart:r+e.paddingXS,fontSize:r,lineHeight:0,pointerEvents:"none","> div":{margin:0}}},[`${l}:hover ${c}`]:{opacity:1,color:e.colorText},[`${l}-error`]:{color:e.colorError,[`${l}-name, ${t}-icon ${o}`]:{color:e.colorError},[s]:{[`${o}, ${o}:hover`]:{color:e.colorError},[c]:{opacity:1}}},[`${t}-list-item-container`]:{transition:`opacity ${e.motionDurationSlow}, height ${e.motionDurationSlow}`,"&::before":{display:"table",width:0,height:0,content:'""'}}})}}},Lh=new fe("uploadAnimateInlineIn",{from:{width:0,height:0,margin:0,padding:0,opacity:0}}),zh=new fe("uploadAnimateInlineOut",{to:{width:0,height:0,margin:0,padding:0,opacity:0}}),z3=e=>{const{componentCls:t}=e,n=`${t}-animate-inline`;return[{[`${t}-wrapper`]:{[`${n}-appear, ${n}-enter, ${n}-leave`]:{animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseInOutCirc,animationFillMode:"forwards"},[`${n}-appear, ${n}-enter`]:{animationName:Lh},[`${n}-leave`]:{animationName:zh}}},Lh,zh]},j3=e=>{const{componentCls:t,iconCls:n,uploadThumbnailSize:o,uploadProgressOffset:r}=e,a=`${t}-list`,l=`${a}-item`;return{[`${t}-wrapper`]:{[`${a}${a}-picture, ${a}${a}-picture-card`]:{[l]:{position:"relative",height:o+e.lineWidth*2+e.paddingXS*2,padding:e.paddingXS,border:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusLG,"&:hover":{background:"transparent"},[`${l}-thumbnail`]:h(h({},Ft),{width:o,height:o,lineHeight:`${o+e.paddingSM}px`,textAlign:"center",flex:"none",[n]:{fontSize:e.fontSizeHeading2,color:e.colorPrimary},img:{display:"block",width:"100%",height:"100%",overflow:"hidden"}}),[`${l}-progress`]:{bottom:r,width:`calc(100% - ${e.paddingSM*2}px)`,marginTop:0,paddingInlineStart:o+e.paddingXS}},[`${l}-error`]:{borderColor:e.colorError,[`${l}-thumbnail ${n}`]:{"svg path[fill='#e6f7ff']":{fill:e.colorErrorBg},"svg path[fill='#1890ff']":{fill:e.colorError}}},[`${l}-uploading`]:{borderStyle:"dashed",[`${l}-name`]:{marginBottom:r}}}}}},F3=e=>{const{componentCls:t,iconCls:n,fontSizeLG:o,colorTextLightSolid:r}=e,a=`${t}-list`,l=`${a}-item`,s=e.uploadPicCardSize;return{[`${t}-wrapper${t}-picture-card-wrapper`]:h(h({},Eo()),{display:"inline-block",width:"100%",[`${t}${t}-select`]:{width:s,height:s,marginInlineEnd:e.marginXS,marginBottom:e.marginXS,textAlign:"center",verticalAlign:"top",backgroundColor:e.colorFillAlter,border:`${e.lineWidth}px dashed ${e.colorBorder}`,borderRadius:e.borderRadiusLG,cursor:"pointer",transition:`border-color ${e.motionDurationSlow}`,[`> ${t}`]:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%",textAlign:"center"},[`&:not(${t}-disabled):hover`]:{borderColor:e.colorPrimary}},[`${a}${a}-picture-card`]:{[`${a}-item-container`]:{display:"inline-block",width:s,height:s,marginBlock:`0 ${e.marginXS}px`,marginInline:`0 ${e.marginXS}px`,verticalAlign:"top"},"&::after":{display:"none"},[l]:{height:"100%",margin:0,"&::before":{position:"absolute",zIndex:1,width:`calc(100% - ${e.paddingXS*2}px)`,height:`calc(100% - ${e.paddingXS*2}px)`,backgroundColor:e.colorBgMask,opacity:0,transition:`all ${e.motionDurationSlow}`,content:'" "'}},[`${l}:hover`]:{[`&::before, ${l}-actions`]:{opacity:1}},[`${l}-actions`]:{position:"absolute",insetInlineStart:0,zIndex:10,width:"100%",whiteSpace:"nowrap",textAlign:"center",opacity:0,transition:`all ${e.motionDurationSlow}`,[`${n}-eye, ${n}-download, ${n}-delete`]:{zIndex:10,width:o,margin:`0 ${e.marginXXS}px`,fontSize:o,cursor:"pointer",transition:`all ${e.motionDurationSlow}`}},[`${l}-actions, ${l}-actions:hover`]:{[`${n}-eye, ${n}-download, ${n}-delete`]:{color:new Ce(r).setAlpha(.65).toRgbString(),"&:hover":{color:r}}},[`${l}-thumbnail, ${l}-thumbnail img`]:{position:"static",display:"block",width:"100%",height:"100%",objectFit:"contain"},[`${l}-name`]:{display:"none",textAlign:"center"},[`${l}-file + ${l}-name`]:{position:"absolute",bottom:e.margin,display:"block",width:`calc(100% - ${e.paddingXS*2}px)`},[`${l}-uploading`]:{[`&${l}`]:{backgroundColor:e.colorFillAlter},[`&::before, ${n}-eye, ${n}-download, ${n}-delete`]:{display:"none"}},[`${l}-progress`]:{bottom:e.marginXL,width:`calc(100% - ${e.paddingXS*2}px)`,paddingInlineStart:0}}})}},H3=e=>{const{componentCls:t}=e;return{[`${t}-rtl`]:{direction:"rtl"}}},_3=e=>{const{componentCls:t,colorTextDisabled:n}=e;return{[`${t}-wrapper`]:h(h({},Me(e)),{[t]:{outline:0,"input[type='file']":{cursor:"pointer"}},[`${t}-select`]:{display:"inline-block"},[`${t}-disabled`]:{color:n,cursor:"not-allowed"}})}},k3=Ee("Upload",e=>{const{fontSizeHeading3:t,fontSize:n,lineHeight:o,lineWidth:r,controlHeightLG:a}=e,l=Math.round(n*o),s=ve(e,{uploadThumbnailSize:t*2,uploadProgressOffset:l/2+r,uploadPicCardSize:a*2.55});return[_3(s),B3(s),j3(s),F3(s),L3(s),z3(s),H3(s),zp(s)]});var W3=function(e,t,n,o){function r(a){return a instanceof n?a:new n(function(l){l(a)})}return new(n||(n=Promise))(function(a,l){function s(d){try{u(o.next(d))}catch(f){l(f)}}function c(d){try{u(o.throw(d))}catch(f){l(f)}}function u(d){d.done?a(d.value):r(d.value).then(s,c)}u((o=o.apply(e,t||[])).next())})},X3=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]]);return n};const fr=`__LIST_IGNORE_${Date.now()}__`,Wi=i.defineComponent({compatConfig:{MODE:3},name:"AUpload",inheritAttrs:!1,props:Re(Vh(),{type:"select",multiple:!1,action:"",data:{},accept:"",showUploadList:!0,listType:"text",supportServerRender:!0}),setup(e,t){let{slots:n,attrs:o,expose:r}=t;const a=pi(),{prefixCls:l,direction:s,disabled:c}=ye("upload",e),[u,d]=k3(l),f=on(),p=i.computed(()=>{var R;return(R=c.value)!==null&&R!==void 0?R:f.value}),[m,v]=Xt(e.defaultFileList||[],{value:i.toRef(e,"fileList"),postState:R=>{const z=Date.now();return(R??[]).map((A,j)=>(!A.uid&&!Object.isFrozen(A)&&(A.uid=`__AUTO__${z}_${j}__`),A))}}),g=i.ref("drop"),y=i.ref(null);i.onMounted(()=>{Je(e.fileList!==void 0||o.value===void 0,"Upload","`value` is not a valid prop, do you mean `fileList`?"),Je(e.transformFile===void 0,"Upload","`transformFile` is deprecated. Please use `beforeUpload` directly."),Je(e.remove===void 0,"Upload","`remove` props is deprecated. Please use `remove` event.")});const b=(R,z,A)=>{var j,O;let T=[...z];e.maxCount===1?T=T.slice(-1):e.maxCount&&(T=T.slice(0,e.maxCount)),v(T);const D={file:R,fileList:T};A&&(D.event=A),(j=e["onUpdate:fileList"])===null||j===void 0||j.call(e,D.fileList),(O=e.onChange)===null||O===void 0||O.call(e,D),a.onFieldChange()},S=(R,z)=>W3(this,void 0,void 0,function*(){const{beforeUpload:A,transformFile:j}=e;let O=R;if(A){const T=yield A(R,z);if(T===!1)return!1;if(delete R[fr],T===fr)return Object.defineProperty(R,fr,{value:!0,configurable:!0}),!1;typeof T=="object"&&T&&(O=T)}return j&&(O=yield j(O)),O}),$=R=>{const z=R.filter(O=>!O.file[fr]);if(!z.length)return;const A=z.map(O=>_i(O.file));let j=[...m.value];A.forEach(O=>{j=ki(O,j)}),A.forEach((O,T)=>{let D=O;if(z[T].parsedFile)O.status="uploading";else{const{originFileObj:V}=O;let N;try{N=new File([V],V.name,{type:V.type})}catch{N=new Blob([V],{type:V.type}),N.name=V.name,N.lastModifiedDate=new Date,N.lastModified=new Date().getTime()}N.uid=O.uid,D=N}b(D,j)})},x=(R,z,A)=>{try{typeof R=="string"&&(R=JSON.parse(R))}catch{}if(!Xs(z,m.value))return;const j=_i(z);j.status="done",j.percent=100,j.response=R,j.xhr=A;const O=ki(j,m.value);b(j,O)},w=(R,z)=>{if(!Xs(z,m.value))return;const A=_i(z);A.status="uploading",A.percent=R.percent;const j=ki(A,m.value);b(A,j,R)},P=(R,z,A)=>{if(!Xs(A,m.value))return;const j=_i(A);j.error=R,j.response=z,j.status="error";const O=ki(j,m.value);b(j,O)},C=R=>{let z;const A=e.onRemove||e.remove;Promise.resolve(typeof A=="function"?A(R):A).then(j=>{var O,T;if(j===!1)return;const D=P3(R,m.value);D&&(z=h(h({},R),{status:"removed"}),(O=m.value)===null||O===void 0||O.forEach(V=>{const N=z.uid!==void 0?"uid":"name";V[N]===z[N]&&!Object.isFrozen(V)&&(V.status="removed")}),(T=y.value)===null||T===void 0||T.abort(z),b(z,D))})},I=R=>{var z;g.value=R.type,R.type==="drop"&&((z=e.onDrop)===null||z===void 0||z.call(e,R))};r({onBatchStart:$,onSuccess:x,onProgress:w,onError:P,fileList:m,upload:y});const[M]=xy("Upload",Bt.Upload,i.computed(()=>e.locale)),E=(R,z)=>{const{removeIcon:A,previewIcon:j,downloadIcon:O,previewFile:T,onPreview:D,onDownload:V,isImageUrl:N,progress:F,itemRender:_,iconRender:G,showUploadList:Z}=e,{showDownloadIcon:te,showPreviewIcon:oe,showRemoveIcon:J}=typeof Z=="boolean"?{}:Z;return Z?i.createVNode(D3,{prefixCls:l.value,listType:e.listType,items:m.value,previewFile:T,onPreview:D,onDownload:V,onRemove:C,showRemoveIcon:!p.value&&J,showPreviewIcon:oe,showDownloadIcon:te,removeIcon:A,previewIcon:j,downloadIcon:O,iconRender:G,locale:M.value,isImageUrl:N,progress:F,itemRender:_,appendActionVisible:z,appendAction:R},h({},n)):R==null?void 0:R()};return()=>{var R,z,A;const{listType:j,type:O}=e,{class:T,style:D}=o,V=X3(o,["class","style"]),N=h(h(h({onBatchStart:$,onError:P,onProgress:w,onSuccess:x},V),e),{id:(R=e.id)!==null&&R!==void 0?R:a.id.value,prefixCls:l.value,beforeUpload:S,onChange:void 0,disabled:p.value});delete N.remove,(!n.default||p.value)&&delete N.id;const F={[`${l.value}-rtl`]:s.value==="rtl"};if(O==="drag"){const te=Q(l.value,{[`${l.value}-drag`]:!0,[`${l.value}-drag-uploading`]:m.value.some(oe=>oe.status==="uploading"),[`${l.value}-drag-hover`]:g.value==="dragover",[`${l.value}-disabled`]:p.value,[`${l.value}-rtl`]:s.value==="rtl"},o.class,d.value);return u(i.createVNode("span",B(B({},o),{},{class:Q(`${l.value}-wrapper`,F,T,d.value)}),[i.createVNode("div",{class:te,onDrop:I,onDragover:I,onDragleave:I,style:o.style},[i.createVNode(Eh,B(B({},N),{},{ref:y,class:`${l.value}-btn`}),B({default:()=>[i.createVNode("div",{class:`${l.value}-drag-container`},[(z=n.default)===null||z===void 0?void 0:z.call(n)])]},n))]),E()]))}const _=Q(l.value,{[`${l.value}-select`]:!0,[`${l.value}-select-${j}`]:!0,[`${l.value}-disabled`]:p.value,[`${l.value}-rtl`]:s.value==="rtl"}),G=Be((A=n.default)===null||A===void 0?void 0:A.call(n)),Z=te=>i.createVNode("div",{class:_,style:te},[i.createVNode(Eh,B(B({},N),{},{ref:y}),n)]);return u(j==="picture-card"?i.createVNode("span",B(B({},o),{},{class:Q(`${l.value}-wrapper`,`${l.value}-picture-card-wrapper`,F,o.class,d.value)}),[E(Z,!!G.length)]):i.createVNode("span",B(B({},o),{},{class:Q(`${l.value}-wrapper`,F,o.class,d.value)}),[Z(G.length?void 0:{display:"none"}),E()]))}}});var jh=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]]);return n};const Ks=i.defineComponent({compatConfig:{MODE:3},name:"AUploadDragger",inheritAttrs:!1,props:Vh(),setup(e,t){let{slots:n,attrs:o}=t;return()=>{const{height:r}=e,a=jh(e,["height"]),{style:l}=o,s=jh(o,["style"]),c=h(h(h({},a),s),{type:"drag",style:h(h({},l),{height:typeof r=="number"?`${r}px`:r})});return i.createVNode(Wi,c,n)}}}),Fh=h(Wi,{Dragger:Ks,LIST_IGNORE:fr,install(e){return e.component(Wi.name,Wi),e.component(Ks.name,Ks),e}});var U3={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 Hh(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?Object(arguments[t]):{},o=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(o=o.concat(Object.getOwnPropertySymbols(n).filter(function(r){return Object.getOwnPropertyDescriptor(n,r).enumerable}))),o.forEach(function(r){K3(e,r,n[r])})}return e}function K3(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Gs=function(t,n){var o=Hh({},t,n.attrs);return i.createVNode(ie,Hh({},o,{icon:U3}),null)};Gs.displayName="ArrowUpOutlined",Gs.inheritAttrs=!1;var G3={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 _h(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?Object(arguments[t]):{},o=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(o=o.concat(Object.getOwnPropertySymbols(n).filter(function(r){return Object.getOwnPropertyDescriptor(n,r).enumerable}))),o.forEach(function(r){q3(e,r,n[r])})}return e}function q3(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var qs=function(t,n){var o=_h({},t,n.attrs);return i.createVNode(ie,_h({},o,{icon:G3}),null)};qs.displayName="AudioMutedOutlined",qs.inheritAttrs=!1;var Y3={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 kh(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?Object(arguments[t]):{},o=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(o=o.concat(Object.getOwnPropertySymbols(n).filter(function(r){return Object.getOwnPropertyDescriptor(n,r).enumerable}))),o.forEach(function(r){Z3(e,r,n[r])})}return e}function Z3(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Ys=function(t,n){var o=kh({},t,n.attrs);return i.createVNode(ie,kh({},o,{icon:Y3}),null)};Ys.displayName="AudioOutlined",Ys.inheritAttrs=!1;var Q3={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 Wh(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?Object(arguments[t]):{},o=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(o=o.concat(Object.getOwnPropertySymbols(n).filter(function(r){return Object.getOwnPropertyDescriptor(n,r).enumerable}))),o.forEach(function(r){J3(e,r,n[r])})}return e}function J3(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Zs=function(t,n){var o=Wh({},t,n.attrs);return i.createVNode(ie,Wh({},o,{icon:Q3}),null)};Zs.displayName="ClearOutlined",Zs.inheritAttrs=!1;var eE={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 Xh(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?Object(arguments[t]):{},o=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(o=o.concat(Object.getOwnPropertySymbols(n).filter(function(r){return Object.getOwnPropertyDescriptor(n,r).enumerable}))),o.forEach(function(r){tE(e,r,n[r])})}return e}function tE(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Qs=function(t,n){var o=Xh({},t,n.attrs);return i.createVNode(ie,Xh({},o,{icon:eE}),null)};Qs.displayName="FileExcelFilled",Qs.inheritAttrs=!1;var nE={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 Uh(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?Object(arguments[t]):{},o=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(o=o.concat(Object.getOwnPropertySymbols(n).filter(function(r){return Object.getOwnPropertyDescriptor(n,r).enumerable}))),o.forEach(function(r){oE(e,r,n[r])})}return e}function oE(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Js=function(t,n){var o=Uh({},t,n.attrs);return i.createVNode(ie,Uh({},o,{icon:nE}),null)};Js.displayName="FileImageFilled",Js.inheritAttrs=!1;var rE={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 Kh(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?Object(arguments[t]):{},o=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(o=o.concat(Object.getOwnPropertySymbols(n).filter(function(r){return Object.getOwnPropertyDescriptor(n,r).enumerable}))),o.forEach(function(r){iE(e,r,n[r])})}return e}function iE(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ec=function(t,n){var o=Kh({},t,n.attrs);return i.createVNode(ie,Kh({},o,{icon:rE}),null)};ec.displayName="FileMarkdownFilled",ec.inheritAttrs=!1;var aE={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 Gh(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?Object(arguments[t]):{},o=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(o=o.concat(Object.getOwnPropertySymbols(n).filter(function(r){return Object.getOwnPropertyDescriptor(n,r).enumerable}))),o.forEach(function(r){lE(e,r,n[r])})}return e}function lE(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var tc=function(t,n){var o=Gh({},t,n.attrs);return i.createVNode(ie,Gh({},o,{icon:aE}),null)};tc.displayName="FilePdfFilled",tc.inheritAttrs=!1;var sE={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 qh(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?Object(arguments[t]):{},o=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(o=o.concat(Object.getOwnPropertySymbols(n).filter(function(r){return Object.getOwnPropertyDescriptor(n,r).enumerable}))),o.forEach(function(r){cE(e,r,n[r])})}return e}function cE(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var nc=function(t,n){var o=qh({},t,n.attrs);return i.createVNode(ie,qh({},o,{icon:sE}),null)};nc.displayName="FilePptFilled",nc.inheritAttrs=!1;var uE={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 Yh(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?Object(arguments[t]):{},o=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(o=o.concat(Object.getOwnPropertySymbols(n).filter(function(r){return Object.getOwnPropertyDescriptor(n,r).enumerable}))),o.forEach(function(r){dE(e,r,n[r])})}return e}function dE(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var oc=function(t,n){var o=Yh({},t,n.attrs);return i.createVNode(ie,Yh({},o,{icon:uE}),null)};oc.displayName="FileTextFilled",oc.inheritAttrs=!1;var fE={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 Zh(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?Object(arguments[t]):{},o=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(o=o.concat(Object.getOwnPropertySymbols(n).filter(function(r){return Object.getOwnPropertyDescriptor(n,r).enumerable}))),o.forEach(function(r){pE(e,r,n[r])})}return e}function pE(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var rc=function(t,n){var o=Zh({},t,n.attrs);return i.createVNode(ie,Zh({},o,{icon:fE}),null)};rc.displayName="FileWordFilled",rc.inheritAttrs=!1;var mE={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 Qh(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?Object(arguments[t]):{},o=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(o=o.concat(Object.getOwnPropertySymbols(n).filter(function(r){return Object.getOwnPropertyDescriptor(n,r).enumerable}))),o.forEach(function(r){gE(e,r,n[r])})}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}var ic=function(t,n){var o=Qh({},t,n.attrs);return i.createVNode(ie,Qh({},o,{icon:mE}),null)};ic.displayName="FileZipFilled",ic.inheritAttrs=!1;const Jh=["wrap","nowrap","wrap-reverse"],e0=["flex-start","flex-end","start","end","center","space-between","space-around","space-evenly","stretch","normal","left","right"],t0=["center","start","end","flex-start","flex-end","self-start","self-end","baseline","normal","stretch"],hE=(e,t)=>{const n={};return Jh.forEach(o=>{n[`${e}-wrap-${o}`]=t.wrap===o}),n},vE=(e,t)=>{const n={};return t0.forEach(o=>{n[`${e}-align-${o}`]=t.align===o}),n[`${e}-align-stretch`]=!t.align&&!!t.vertical,n},yE=(e,t)=>{const n={};return e0.forEach(o=>{n[`${e}-justify-${o}`]=t.justify===o}),n};function bE(e,t){return Q(h(h(h({},hE(e,t)),vE(e,t)),yE(e,t)))}const CE=e=>{const{componentCls:t}=e;return{[t]:{display:"flex","&-vertical":{flexDirection:"column"},"&-rtl":{direction:"rtl"},"&:empty":{display:"none"}}}},SE=e=>{const{componentCls:t}=e;return{[t]:{"&-gap-small":{gap:e.flexGapSM},"&-gap-middle":{gap:e.flexGap},"&-gap-large":{gap:e.flexGapLG}}}},wE=e=>{const{componentCls:t}=e,n={};return Jh.forEach(o=>{n[`${t}-wrap-${o}`]={flexWrap:o}}),n},$E=e=>{const{componentCls:t}=e,n={};return t0.forEach(o=>{n[`${t}-align-${o}`]={alignItems:o}}),n},xE=e=>{const{componentCls:t}=e,n={};return e0.forEach(o=>{n[`${t}-justify-${o}`]={justifyContent:o}}),n},OE=Ee("Flex",e=>{const t=ve(e,{flexGapSM:e.paddingXS,flexGap:e.padding,flexGapLG:e.paddingLG});return[CE(t),SE(t),wE(t),$E(t),xE(t)]});function n0(e){return["small","middle","large"].includes(e)}const PE=()=>({prefixCls:Ne(),vertical:be(),wrap:Ne(),justify:Ne(),align:Ne(),flex:ot([Number,String]),gap:ot([Number,String]),component:De()});var IE=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]]);return n};const TE=i.defineComponent({name:"AFlex",inheritAttrs:!1,props:PE(),setup(e,t){let{slots:n,attrs:o}=t;const{flex:r,direction:a}=bo(),{prefixCls:l}=ye("flex",e),[s,c]=OE(l),u=i.computed(()=>{var d;return[l.value,c.value,bE(l.value,e),{[`${l.value}-rtl`]:a.value==="rtl",[`${l.value}-gap-${e.gap}`]:n0(e.gap),[`${l.value}-vertical`]:(d=e.vertical)!==null&&d!==void 0?d:r==null?void 0:r.value.vertical}]});return()=>{var d;const{flex:f,gap:p,component:m="div"}=e,v=IE(e,["flex","gap","component"]),g={};return f&&(g.flex=f),p&&!n0(p)&&(g.gap=`${p}px`),s(i.createVNode(m,B({class:[o.class,u.value],style:[o.style,g]},$e(v,["justify","wrap","align","vertical"])),{default:()=>[(d=n.default)===null||d===void 0?void 0:d.call(n)]}))}}}),pr=Dt(TE),Jt=(e,t)=>new Ce(e).setAlpha(t).toRgbString(),uo=(e,t)=>new Ce(e).lighten(t).toHexString(),NE=e=>{const t=$t(e,{theme:"dark"});return{1:t[0],2:t[1],3:t[2],4:t[3],5:t[6],6:t[5],7:t[4],8:t[6],9:t[5],10:t[4]}},EE=(e,t)=>{const n=e||"#000",o=t||"#fff";return{colorBgBase:n,colorTextBase:o,colorText:Jt(o,.85),colorTextSecondary:Jt(o,.65),colorTextTertiary:Jt(o,.45),colorTextQuaternary:Jt(o,.25),colorFill:Jt(o,.18),colorFillSecondary:Jt(o,.12),colorFillTertiary:Jt(o,.08),colorFillQuaternary:Jt(o,.04),colorBgElevated:uo(n,12),colorBgContainer:uo(n,8),colorBgLayout:uo(n,0),colorBgSpotlight:uo(n,26),colorBorder:uo(n,26),colorBorderSecondary:uo(n,19)}},RE=(e,t)=>{const n=Object.keys(Na).map(r=>{const a=$t(e[r],{theme:"dark"});return new Array(10).fill(1).reduce((l,s,c)=>(l[`${r}-${c+1}`]=a[c],l),{})}).reduce((r,a)=>(r=h(h({},r),a),r),{}),o=t??_r(e);return h(h(h({},o),n),Ju(e,{generateColorPalettes:NE,generateNeutralColorPalettes:EE}))};function ME(e){const{sizeUnit:t,sizeStep:n}=e,o=n-2;return{sizeXXL:t*(o+10),sizeXL:t*(o+6),sizeLG:t*(o+2),sizeMD:t*(o+2),sizeMS:t*(o+1),size:t*o,sizeSM:t*o,sizeXS:t*(o-1),sizeXXS:t*(o-1)}}const AE=(e,t)=>{const n=t??_r(e),o=n.fontSizeSM,r=n.controlHeight-4;return h(h(h(h(h({},n),ME(t??e)),ed(o)),{controlHeight:r}),Qu(h(h({},n),{controlHeight:r})))};function VE(){const[e,t,n]=un();return{theme:e,token:t,hashId:n}}const mr={defaultConfig:Ro,defaultSeed:Ro.token,useToken:VE,defaultAlgorithm:_r,darkAlgorithm:RE,compactAlgorithm:AE},DE=i.defineComponent({name:"AXConfigProvider",inheritAttrs:!1,__name:"index",props:{bubble:null,conversations:null,prompts:null,sender:null,suggestion:null,thoughtChain:null,attachments:null,welcome:null,iconPrefixCls:null,getTargetContainer:null,getPopupContainer:null,prefixCls:null,getPrefixCls:null,renderEmpty:null,transformCellText:null,csp:null,input:null,autoInsertSpaceInButton:null,locale:null,pageHeader:null,componentSize:null,componentDisabled:null,direction:null,space:null,virtual:null,dropdownMatchSelectWidth:null,form:null,pagination:null,theme:null,select:null,wave:null},setup(e){const t=je(e,["attachments","bubble","conversations","prompts","sender","suggestion","thoughtChain","welcome"]),n=i.useSlots(),o=i.computed(()=>({attachments:e.attachments,bubble:e.bubble,conversations:e.conversations,prompts:e.prompts,sender:e.sender,suggestion:e.suggestion,thoughtChain:e.thoughtChain,welcome:e.welcome})),{theme:r}=We(),a=i.computed(()=>({...(r==null?void 0:r.value)||{},...t.theme})),l=i.computed(()=>{var s;return(s=n.default)==null?void 0:s.call(n)});return()=>i.createVNode(Dv,{value:o.value},{default:()=>[i.createVNode(co,i.mergeProps(t,{theme:a.value}),{default:()=>[l.value]})]})}}),BE={classNames:{},styles:{},className:"",style:{}},en=e=>{const t=Vv();return i.computed(()=>({...BE,...i.unref(t)[e]}))};function Te(e){const t=typeof e=="function"?e():e,n=i.ref(t);function o(r){n.value=r}return[n,o]}function Pn(e){return typeof e=="string"}const LE=(e,t,n,o)=>{const[r,a]=Te(""),[l,s]=Te(1),c=i.computed(()=>t.value&&Pn(e.value));return i.watch(e,()=>{const d=i.unref(r);a(e.value),!c.value&&Pn(e.value)?s(e.value.length):Pn(e.value)&&Pn(d)&&e.value.indexOf(d)!==0&&s(1)}),i.watch([l,t,e],()=>{if(c.value&&Pn(e.value)&&i.unref(l)<e.value.length){const d=setTimeout(()=>{s(i.unref(l)+n.value)},o.value);i.onWatcherCleanup(()=>{clearTimeout(d)})}},{immediate:!0}),[i.computed(()=>c.value&&Pn(e.value)?e.value.slice(0,i.unref(l)):e.value),i.computed(()=>c.value&&Pn(e.value)&&i.unref(l)<e.value.length)]};function zE(e){const t=i.computed(()=>!!i.toValue(e)),n={step:1,interval:50,suffix:null},o=i.computed(()=>{const r=i.toValue(e);return{...n,...typeof r=="object"?r:{}}});return[t,i.computed(()=>o.value.step),i.computed(()=>o.value.interval),i.computed(()=>o.value.suffix)]}const jE=i.defineComponent({name:"AXBubbleLoading",__name:"loading",props:{prefixCls:null},setup(e){return()=>i.createVNode("span",{class:`${e.prefixCls}-dot`},[i.createVNode("i",{class:`${e.prefixCls}-dot-item`,key:"item-1"},null),i.createVNode("i",{class:`${e.prefixCls}-dot-item`,key:"item-2"},null),i.createVNode("i",{class:`${e.prefixCls}-dot-item`,key:"item-3"},null)])}}),o0="%";class FE{constructor(t){this.cache=new Map,this.instanceId=t}get(t){return this.cache.get(Array.isArray(t)?t.join(o0):t)||null}update(t,n){const o=Array.isArray(t)?t.join(o0):t,r=this.cache.get(o),a=n(r);a===null?this.cache.delete(o):this.cache.set(o,a)}}const r0="data-token-hash",tn="data-css-hash",fo="__cssinjs_instance__";function gr(){const e=Math.random().toString(12).slice(2);if(typeof document<"u"&&document.head&&document.body){const t=document.body.querySelectorAll(`style[${tn}]`)||[],{firstChild:n}=document.head;Array.from(t).forEach(r=>{r[fo]=r[fo]||e,r[fo]===e&&document.head.insertBefore(r,n)});const o={};Array.from(document.querySelectorAll(`style[${tn}]`)).forEach(r=>{var l;const a=r.getAttribute(tn);o[a]?r[fo]===e&&((l=r.parentNode)==null||l.removeChild(r)):o[a]=!0})}return new FE(e)}const i0=Symbol("StyleContextKey"),HE=()=>{var n,o,r;const e=i.getCurrentInstance();let t;if(e&&e.appContext){const a=(r=(o=(n=e.appContext)==null?void 0:n.config)==null?void 0:o.globalProperties)==null?void 0:r.__ANTDV_CSSINJS_CACHE__;a?t=a:(t=gr(),e.appContext.config.globalProperties&&(e.appContext.config.globalProperties.__ANTDV_CSSINJS_CACHE__=t))}else t=gr();return t},a0={cache:gr(),defaultCache:!0,hashPriority:"low"},hr=()=>{const e=HE();return i.inject(i0,i.shallowRef({...a0,cache:e}))},l0=e=>{const t=hr(),n=i.shallowRef({...a0,cache:gr()});return i.watch([()=>i.unref(e),t],()=>{const o={...t.value},r=i.unref(e);Object.keys(r).forEach(l=>{const s=r[l];r[l]!==void 0&&(o[l]=s)});const{cache:a}=r;o.cache=o.cache||gr(),o.defaultCache=!a&&t.value.defaultCache,n.value=o},{immediate:!0}),i.provide(i0,n),n},_E=()=>({autoClear:aa(),mock:Fc(),cache:St(),defaultCache:aa(),hashPriority:Fc(),container:Mv(),ssrInline:aa(),transformers:jc(),linters:jc()}),kE=Ev(i.defineComponent({name:"AStyleProvider",inheritAttrs:!1,props:_E(),setup(e,{slots:t}){return l0(e),()=>{var n;return(n=t.default)==null?void 0:n.call(t)}}})),WE={useStyleInject:hr,useStyleProvider:l0,StyleProvider:kE};function ac(e,t,n,o){const r=hr(),a=i.shallowRef(""),l=i.shallowRef();i.watchEffect(()=>{a.value=[e,...t.value].join("%")});const s=c=>{r.value.cache.update(c,u=>{const[d=0,f]=u||[];return d-1===0?(o==null||o(f,!1),null):[d-1,f]})};return i.watch(a,(c,u)=>{u&&s(u),r.value.cache.update(c,d=>{const[f=0,p]=d||[],v=p||n();return[f+1,v]}),l.value=r.value.cache.get(a.value)[1]},{immediate:!0}),i.onBeforeUnmount(()=>{s(a.value)}),l}function po(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function XE(e,t){return e&&e.contains?e.contains(t):!1}const s0="data-vc-order",UE="vc-util-key",lc=new Map;function c0({mark:e}={}){return e?e.startsWith("data-")?e:`data-${e}`:UE}function Xi(e){return e.attachTo?e.attachTo:document.querySelector("head")||document.body}function KE(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function u0(e){return Array.from((lc.get(e)||e).children).filter(t=>t.tagName==="STYLE")}function d0(e,t={}){if(!po())return null;const{csp:n,prepend:o}=t,r=document.createElement("style");r.setAttribute(s0,KE(o)),n!=null&&n.nonce&&(r.nonce=n==null?void 0:n.nonce),r.innerHTML=e;const a=Xi(t),{firstChild:l}=a;if(o){if(o==="queue"){const s=u0(a).filter(c=>["prepend","prependQueue"].includes(c.getAttribute(s0)));if(s.length)return a.insertBefore(r,s[s.length-1].nextSibling),r}a.insertBefore(r,l)}else a.appendChild(r);return r}function f0(e,t={}){const n=Xi(t);return u0(n).find(o=>o.getAttribute(c0(t))===e)}function sc(e,t={}){const n=f0(e,t);n&&Xi(t).removeChild(n)}function GE(e,t){const n=lc.get(e);if(!n||!XE(document,n)){const o=d0("",t),{parentNode:r}=o;lc.set(e,r),e.removeChild(o)}}function cc(e,t,n={}){var l,s,c;const o=Xi(n);GE(o,n);const r=f0(t,n);if(r)return(l=n.csp)!=null&&l.nonce&&r.nonce!==((s=n.csp)==null?void 0:s.nonce)&&(r.nonce=(c=n.csp)==null?void 0:c.nonce),r.innerHTML!==e&&(r.innerHTML=e),r;const a=d0(e,n);return a.setAttribute(c0(n),t),a}function qE(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}const ho=class ho{constructor(){this.cache=new Map,this.keys=[],this.cacheCallTimes=0}size(){return this.keys.length}internalGet(t,n=!1){let o={map:this.cache};return t.forEach(r=>{var a;o?o=(a=o==null?void 0:o.map)==null?void 0:a.get(r):o=void 0}),o!=null&&o.value&&n&&(o.value[1]=this.cacheCallTimes++),o==null?void 0:o.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>ho.MAX_CACHE_SIZE+ho.MAX_CACHE_OFFSET){const[r]=this.keys.reduce((a,l)=>{const[,s]=a;return this.internalGet(l)[1]<s?[l,this.internalGet(l)[1]]:a},[this.keys[0],this.cacheCallTimes]);this.delete(r)}this.keys.push(t)}let o=this.cache;t.forEach((r,a)=>{if(a===t.length-1)o.set(r,{value:[n,this.cacheCallTimes++]});else{const l=o.get(r);l?l.map||(l.map=new Map):o.set(r,{map:new Map}),o=o.get(r).map}})}deleteByPath(t,n){var a;const o=t.get(n[0]);if(n.length===1)return o.map?t.set(n[0],{map:o.map}):t.delete(n[0]),(a=o.value)==null?void 0:a[0];const r=this.deleteByPath(o.map,n.slice(1));return(!o.map||o.map.size===0)&&!o.value&&t.delete(n[0]),r}delete(t){if(this.has(t))return this.keys=this.keys.filter(n=>!qE(n,t)),this.deleteByPath(this.cache,t)}};ho.MAX_CACHE_SIZE=20,ho.MAX_CACHE_OFFSET=5;let uc=ho;function YE(){}let ZE=YE;const QE=Symbol("WarningContext"),p0=i.shallowRef(),JE=e=>{i.provide(QE,e),i.watch(e,()=>{p0.value=i.unref(e),i.triggerRef(p0)},{immediate:!0,deep:!0})};i.defineComponent({props:{value:St()},setup(e,{slots:t}){return JE(i.computed(()=>e.value)),()=>{var n;return(n=t.default)==null?void 0:n.call(t)}}});let m0=0;class g0{constructor(t){this.derivatives=Array.isArray(t)?t:[t],this.id=m0,t.length===0&&ZE(t.length>0),m0+=1}getDerivativeToken(t){return this.derivatives.reduce((n,o)=>o(t,n),void 0)}}const dc=new uc;function e8(e){const t=Array.isArray(e)?e:[e];return dc.has(t)||dc.set(t,new g0(t)),dc.get(t)}const h0=new WeakMap;function Ui(e){let t=h0.get(e)||"";return t||(Object.keys(e).forEach(n=>{const o=e[n];t+=n,o instanceof g0?t+=o.id:o&&typeof o=="object"?t+=Ui(o):t+=o}),h0.set(e,t)),t}function t8(e,t){return Ln(`${t}_${Ui(e)}`)}const vr=`random-${Date.now()}-${Math.random()}`.replace(/\./g,""),v0="_bAmBoO_";function n8(e,t,n){var o,r;if(po()){cc(e,vr);const a=document.createElement("div");a.style.position="fixed",a.style.left="0",a.style.top="0",t==null||t(a),document.body.appendChild(a);const l=n?n(a):(o=getComputedStyle(a).content)==null?void 0:o.includes(v0);return(r=a.parentNode)==null||r.removeChild(a),sc(vr),l}return!1}let fc;function o8(){return fc===void 0&&(fc=n8(`@layer ${vr} { .${vr} { content: "${v0}"!important; } }`,e=>{e.className=vr})),fc}const r8=po();function ft(e){return typeof e=="number"?`${e}px`:e}const Ki=(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(),i8=(e,t,n)=>Object.keys(e).length?`.${t}${n!=null&&n.scope?`.${n.scope}`:""}{${Object.entries(e).map(([o,r])=>`${o}:${r};`).join("")}}`:"",a8=(e,t,n)=>{const o={},r={};return Object.entries(e).forEach(([a,l])=>{var s,c,u;if((s=n==null?void 0:n.preserve)!=null&&s[a])r[a]=l;else if((typeof l=="string"||typeof l=="number")&&!((c=n==null?void 0:n.ignore)!=null&&c[a])){const d=Ki(a,n==null?void 0:n.prefix);o[d]=typeof l=="number"&&!((u=n==null?void 0:n.unitless)!=null&&u[a])?`${l}px`:String(l),r[a]=`var(${d})`}}),[r,i8(o,t,{scope:n==null?void 0:n.scope})]},y0={},l8="css",In=new Map;function s8(e){In.set(e,(In.get(e)||0)+1)}function c8(e,t){typeof document<"u"&&document.querySelectorAll(`style[${r0}="${e}"]`).forEach(o=>{var r;o[fo]===t&&((r=o.parentNode)==null||r.removeChild(o))})}const u8=0;function d8(e,t){In.set(e,(In.get(e)||0)-1);const n=Array.from(In.keys()),o=n.filter(r=>(In.get(r)||0)<=0);n.length-o.length>u8&&o.forEach(r=>{c8(r,t),In.delete(r)})}const f8=(e,t,n,o)=>{let a={...n==null?void 0:n.getDerivativeToken(e),...t};return o&&(a=o(a)),a};function p8(e,t,n=i.ref({})){const o=hr(),r=i.computed(()=>Object.assign({},...t.value||[])),a=i.computed(()=>Ui(r.value)),l=i.computed(()=>{var c;return Ui(((c=n.value)==null?void 0:c.override)||y0)});return ac("token",i.computed(()=>{var c,u;return[((c=n.value)==null?void 0:c.salt)||"",(u=e.value)==null?void 0:u.id,a.value,l.value]}),()=>{const{salt:c="",override:u=y0,formatToken:d,getComputedToken:f}=n.value||{},p=f?f(r.value,u,e.value):f8(r.value,u,e.value,d),m=t8(p,c);p._tokenKey=m,s8(m);const v=`${l8}-${Ln(m)}`;return p._hashId=v,[p,v]},c=>{var u;d8(c[0]._tokenKey,(u=o.value)==null?void 0:u.cache.instanceId)})}var m8={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};const b0="data-ant-cssinjs-cache-path",g8="_FILE_STYLE__";let Tn,C0=!0;function h8(){var e;if(!Tn&&(Tn={},po())){const t=document.createElement("div");t.className=b0,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(r=>{const[a,l]=r.split(":");Tn[a]=l});const o=document.querySelector(`style[${b0}]`);o&&(C0=!1,(e=o.parentNode)==null||e.removeChild(o)),document.body.removeChild(t)}}function v8(e){return h8(),!!Tn[e]}function y8(e){const t=Tn[e];let n=null;if(t&&po())if(C0)n=g8;else{const o=document.querySelector(`style[${tn}="${Tn[e]}"]`);o?n=o.innerHTML:delete Tn[e]}return[n,t]}const S0=po(),b8="_skip_check_",w0="_multi_value_";function $0(e){return Br(Mu(e),Du).replace(/\{%%%\:[^;];}/g,";")}function C8(e){return typeof e=="object"&&e&&(b8 in e||w0 in e)}function S8(e,t,n){if(!t)return e;const o=`.${t}`,r=n==="low"?`:where(${o})`:o;return e.split(",").map(l=>{var d;const s=l.trim().split(/\s+/);let c=s[0]||"";const u=((d=c.match(/^\w+/))==null?void 0:d[0])||"";return c=`${u}${r}${c.slice(u.length)}`,[c,...s.slice(1)].join(" ")}).join(",")}const x0=new Set,pc=(e,t={},{root:n,injectHash:o,parentSelectors:r}={root:!0,parentSelectors:[]})=>{const{hashId:a,layer:l,path:s,hashPriority:c,transformers:u=[],linters:d=[]}=t;let f="",p={};function m(y){const b=y.getName(a);if(!p[b]){const[S]=pc(y.style,t,{root:!1,parentSelectors:r});p[b]=`@keyframes ${y.getName(a)}${S}`}}function v(y,b=[]){return y.forEach(S=>{Array.isArray(S)?v(S,b):S&&b.push(S)}),b}return v(Array.isArray(e)?e:[e]).forEach(y=>{const b=typeof y=="string"&&!n?{}:y;if(typeof b=="string")f+=`${b}
271
271
  `;else if(b._keyframe)m(b);else{const S=u.reduce(($,x)=>{var w;return((w=x==null?void 0:x.visit)==null?void 0:w.call(x,$))||$},b);Object.keys(S).forEach($=>{const x=S[$];if(typeof x=="object"&&x&&($!=="animationName"||!x._keyframe)&&!C8(x)){let w=!1,P=$.trim(),C=!1;(n||o)&&a?P.startsWith("@")?w=!0:P=S8($,a,c):n&&!a&&(P==="&"||P==="")&&(P="",C=!0);const[I,M]=pc(x,t,{root:C,injectHash:w,parentSelectors:[...r,P]});p={...p,...M},f+=`${P}${I}`}else{let w=function(C,I){const M=C.replace(/[A-Z]/g,R=>`-${R.toLowerCase()}`);let E=I;!m8[C]&&typeof E=="number"&&E!==0&&(E=`${E}px`),C==="animationName"&&(I!=null&&I._keyframe)&&(m(I),E=I.getName(a)),f+=`${M}:${E};`};const P=(x==null?void 0:x.value)??x;typeof x=="object"&&(x!=null&&x[w0])&&Array.isArray(P)?P.forEach(C=>{w($,C)}):w($,P)}})}}),n?l&&o8():f=`{${f}}`,[f,p]};function O0(e,t){return Ln(`${e.join("%")}${t}`)}function P0(e,t){const n=hr(),o=i.computed(()=>{var l;return(l=e.value)==null?void 0:l.token._tokenKey}),r=i.computed(()=>{var l;return[o.value,...((l=e.value)==null?void 0:l.path)||[]]});let a=S0;return ac("style",r,()=>{const{path:l,hashId:s,layer:c,nonce:u,clientOnly:d,order:f=0}=e.value||{},p=r.value.join("|");if(v8(p)){const[C,I]=y8(p);if(C)return[C,o.value,I,{},d,f]}const m=t(),{hashPriority:v,container:g,transformers:y,linters:b,cache:S}=n.value,[$,x]=pc(m,{hashId:s,hashPriority:v,layer:c,path:l==null?void 0:l.join("-"),transformers:y,linters:b}),w=$0($),P=O0(r.value,w);if(a){const C={mark:tn,prepend:"queue",attachTo:g,priority:f},I=typeof u=="function"?u():u;I&&(C.csp={nonce:I});const M=cc(w,P,C);M[fo]=S.instanceId,M.setAttribute(r0,o.value),Object.keys(x).forEach(E=>{x0.has(E)||(x0.add(E),cc($0(x[E]),`_effect-${E}`,{mark:tn,prepend:"queue",attachTo:g}))})}return[w,o.value,P,x,d,f]},([,,l],s)=>{(s||n.value.autoClear)&&S0&&sc(l,{mark:tn})}),l=>l}const w8="cssVar",$8=(e,t)=>{const{key:n,prefix:o,unitless:r,ignore:a,token:l,scope:s=""}=e;useContext(WE);const{_tokenKey:c}=l,u=[...e.path,n,s,c];return ac(w8,u,()=>{const f=t(),[p,m]=a8(f,n,{prefix:o,unitless:r,ignore:a,scope:s}),v=O0(u,m);return[p,m,v,n]},([,,f])=>{r8&&sc(f,{mark:tn})})};class I0{constructor(t,n){this._keyframe=!0,this.name=t,this.style=n}getName(t=""){return t?`${t}-${this.name}`:this.name}}function mo(e){return e.notSplit=!0,e}mo(["borderTop","borderBottom"]),mo(["borderTop"]),mo(["borderBottom"]),mo(["borderLeft","borderRight"]),mo(["borderLeft"]),mo(["borderRight"]);class T0{}const N0="CALC_UNIT",x8=new RegExp(N0,"g");function mc(e){return typeof e=="number"?`${e}${N0}`:e}class Nn extends T0{constructor(t,n){super(),this.result="";const o=typeof t;this.unitlessCssVar=n,t instanceof Nn?this.result=`(${t.result})`:o==="number"?this.result=mc(t):o==="string"&&(this.result=t)}add(t){return t instanceof Nn?this.result=`${this.result} + ${t.getResult()}`:(typeof t=="number"||typeof t=="string")&&(this.result=`${this.result} + ${mc(t)}`),this.lowPriority=!0,this}sub(t){return t instanceof Nn?this.result=`${this.result} - ${t.getResult()}`:(typeof t=="number"||typeof t=="string")&&(this.result=`${this.result} - ${mc(t)}`),this.lowPriority=!0,this}mul(t){return this.lowPriority&&(this.result=`(${this.result})`),t instanceof Nn?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 Nn?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 o=!0;return typeof n=="boolean"?o=n:Array.from(this.unitlessCssVar).some(r=>this.result.includes(r))&&(o=!1),this.result=this.result.replace(x8,o?"px":""),typeof this.lowPriority<"u"?`calc(${this.result})`:this.result}}class En extends T0{constructor(t){super(),this.result=0,t instanceof En?this.result=t.result:typeof t=="number"&&(this.result=t)}add(t){return t instanceof En?this.result+=t.result:typeof t=="number"&&(this.result+=t),this}sub(t){return t instanceof En?this.result-=t.result:typeof t=="number"&&(this.result-=t),this}mul(t){return t instanceof En?this.result*=t.result:typeof t=="number"&&(this.result*=t),this}div(t){return t instanceof En?this.result/=t.result:typeof t=="number"&&(this.result/=t),this}equal(){return this.result}}const O8=(e,t)=>{const n=e==="css"?Nn:En;return o=>new n(o,t)},E0=(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 R0(e,t={},n,o){const r={...t[e]};if(o!=null&&o.deprecatedTokens){const{deprecatedTokens:l}=o;l.forEach(([s,c])=>{(r!=null&&r[s]||r!=null&&r[c])&&(r[c]??(r[c]=r==null?void 0:r[s]))})}const a={...n,...r};return Object.keys(a).forEach(l=>{a[l]===t[l]&&delete a[l]}),a}const M0=typeof CSSINJS_STATISTIC<"u";let gc=!0;function Ct(...e){if(!M0)return Object.assign({},...e);gc=!1;const t={};return e.forEach(n=>{if(typeof n!="object")return;Object.keys(n).forEach(r=>{Object.defineProperty(t,r,{configurable:!0,enumerable:!0,get:()=>n[r]})})}),gc=!0,t}const A0={};function P8(){}const I8=e=>{let t,n=e,o=P8;return M0&&typeof Proxy<"u"&&(t=new Set,n=new Proxy(e,{get(r,a){return gc&&(t==null||t.add(a)),r[a]}}),o=(r,a)=>{var l;A0[r]={global:Array.from(t),component:{...(l=A0[r])==null?void 0:l.component,...a}}}),{token:n,keys:t,flush:o}};function V0(e,t={},n){return typeof n=="function"?n(Ct(t,t[e]??{})):n??{}}function T8(e){return e==="js"?{max:Math.max,min:Math.min}:{max:(...t)=>`max(${t.map(n=>ft(n)).join(",")})`,min:(...t)=>`min(${t.map(n=>ft(n)).join(",")})`}}const N8=1e3*60*10;class E8{constructor(){vo(this,"map",new Map);vo(this,"objectIDMap",new WeakMap);vo(this,"nextID",0);vo(this,"lastAccessBeat",new Map);vo(this,"accessBeat",0)}set(t,n){this.clear();const o=this.getCompositeKey(t);this.map.set(o,n),this.lastAccessBeat.set(o,Date.now())}get(t){const n=this.getCompositeKey(t),o=this.map.get(n);return this.lastAccessBeat.set(n,Date.now()),this.accessBeat+=1,o}getCompositeKey(t){return t.map(o=>o&&typeof o=="object"?`obj_${this.getObjectID(o)}`:`${typeof o}_${o}`).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,o)=>{t-n>N8&&(this.map.delete(o),this.lastAccessBeat.delete(o))}),this.accessBeat=0}}}const D0=new E8;function R8(e,t){return i.computed(()=>{const n=D0.get(t);if(n)return n;const o=e();return D0.set(t,o),o})}const M8=()=>({});function A8(e){const{useCSP:t=M8,useToken:n,usePrefix:o,getResetStyles:r,getCommonStyle:a,getCompUnitless:l}=e;function s(f,p,m,v){const g=Array.isArray(f)?f[0]:f;function y(C){return`${String(g)}${C.slice(0,1).toUpperCase()}${C.slice(1)}`}const b=(v==null?void 0:v.unitless)||{},$={...typeof l=="function"?l(f):{},[y("zIndexPopup")]:!0};Object.keys(b).forEach(C=>{$[y(C)]=b[C]});const x={...v,unitless:$,prefixToken:y},w=u(f,p,m,x),P=c(g,m,x);return(C,I=i.toValue(C))=>{const[,M]=w(i.toValue(C),I),[E,R]=P(I);return[E,M,R]}}function c(f,p,m){const{unitless:v,injectStyle:g=!0,prefixToken:y,ignore:b}=m,S=({rootCls:x,cssVar:w={}})=>{const{realToken:P}=n();return $8({path:[f],prefix:w.prefix,key:w.key,unitless:v,ignore:b,token:P,scope:x},()=>{const C=V0(f,P,p),I=R0(f,P,C,{deprecatedTokens:m==null?void 0:m.deprecatedTokens});return Object.keys(C).forEach(M=>{I[y(M)]=I[M],delete I[M]}),I}),null};return x=>{const{cssVar:w}=n();return[P=>g&&w?i.createVNode(i.Fragment,null,[i.createVNode(S,{rootCls:x,cssVar:w,component:f},null),P]):P,w==null?void 0:w.key]}}function u(f,p,m,v={}){const g=Array.isArray(f)?f:[f,f],[y]=g,b=g.join("-"),S=e.layer||{name:"antd"};return($,x=$)=>{const{theme:w,realToken:P,hashId:C,token:I,cssVar:M}=n(),{rootPrefixCls:E,iconPrefixCls:R}=o(),z=t(),A=M?"css":"js",j=i.unref(R8(()=>{const N=new Set;return M&&Object.keys(v.unitless||{}).forEach(F=>{N.add(Ki(F,M.prefix)),N.add(Ki(F,E0(y,M.prefix)))}),O8(A,N)},[A,y,M==null?void 0:M.prefix])),{max:O,min:T}=T8(A),D=i.computed(()=>({theme:w.value,token:I.value,hashId:C.value,nonce:()=>z.nonce,clientOnly:v.clientOnly,layer:S,order:v.order||-999}));return typeof r=="function"&&P0(i.computed(()=>({...D.value,clientOnly:!1,path:["Shared",E]})),()=>r(I.value,{prefix:{rootPrefixCls:E,iconPrefixCls:R},csp:z})),[P0(i.computed(()=>({...D.value,path:[b,$,R]})),()=>{if(v.injectStyle===!1)return[];const{token:N,flush:F}=I8(I),_=V0(y,P,m),G=`.${$}`,Z=R0(y,P,_,{deprecatedTokens:v.deprecatedTokens});M&&_&&typeof _=="object"&&Object.keys(_).forEach(k=>{_[k]=`var(${Ki(k,E0(y,M.prefix))})`});const te=i.computed(()=>Ct(N.value,{componentCls:G,prefixCls:$,iconCls:`.${R}`,antCls:`.${E}`,calc:j,max:O,min:T},M?_:Z)),oe=i.computed(()=>p(te.value,{hashId:C.value,prefixCls:$,rootPrefixCls:E,iconPrefixCls:R}));F(y,Z);const J=typeof a=="function"?a(te.value,$,x,v.resetFont):null;return[v.resetStyle===!1?null:J,oe.value]}),C]}}function d(f,p,m,v={}){const g=u(f,p,m,{resetStyle:!1,order:-998,...v});return({prefixCls:b,rootCls:S=b})=>(g(b,S),null)}return{genStyleHooks:s,genSubStyleComponent:d,genComponentStyleHook:u}}const V8={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},D8={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},B8="1.0.3",L8=e8(mr.defaultAlgorithm),z8={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},B0=(e,t,n)=>{const o=n.getDerivativeToken(e),{override:r,...a}=t;let l={...o,override:r};return l=td(l),a&&Object.entries(a).forEach(([s,c])=>{const{theme:u,...d}=c;let f=d;u&&(f=B0({...l,...d},{override:d},u)),l[s]=f}),l};function j8(){const e=qb(),{override:t,cssVar:n}=i.unref(e),o=i.computed(()=>e.value.token),r=i.computed(()=>e.value.hashed),a=i.computed(()=>e.value.theme??L8),l=p8(i.computed(()=>a.value),i.computed(()=>[mr.defaultSeed,o.value]),i.computed(()=>({salt:`${B8}-${r.value||""}`,override:t,getComputedToken:B0,cssVar:n&&{prefix:n.prefix,key:n.key,unitless:D8,ignore:V8,preserve:z8}}))),[s,c,u]=i.unref(l),d=i.computed(()=>l.value[0]),f=i.computed(()=>r.value?l.value[1]:"");return[a,u,f,d,n]}const{genStyleHooks:nn,genComponentStyleHook:Y5,genSubStyleComponent:Z5}=A8({usePrefix:()=>{const{getPrefixCls:e,iconPrefixCls:t}=We();return{iconPrefixCls:i.unref(t),rootPrefixCls:e()}},useToken:()=>{const[e,t,n,o,r]=j8();return{theme:e,realToken:t,hashId:n,token:o,cssVar:r}},useCSP:()=>{const{csp:e}=We();return(e==null?void 0:e.value)??{}},layer:{name:"antdx",dependencies:["antd"]}}),F8=e=>{const{componentCls:t,paddingSM:n,padding:o}=e;return{[t]:{[`${t}-content`]:{"&-filled,&-outlined,&-shadow":{padding:`${ft(n)} ${ft(o)}`,borderRadius:e.borderRadiusLG},"&-filled":{backgroundColor:e.colorFillContent},"&-outlined":{border:`1px solid ${e.colorBorderSecondary}`},"&-shadow":{boxShadow:e.boxShadowTertiary}}}}},H8=e=>{const{componentCls:t,fontSize:n,lineHeight:o,paddingSM:r,padding:a,calc:l}=e,s=l(n).mul(o).div(2).add(r).equal(),c=`${t}-content`;return{[t]:{[c]:{"&-round":{borderRadius:{_skip_check_:!0,value:s},paddingInline:l(a).mul(1.25).equal()}},[`&-start ${c}-corner`]:{borderStartStartRadius:e.borderRadiusXS},[`&-end ${c}-corner`]:{borderStartEndRadius:e.borderRadiusXS}}}},_8=e=>{const{componentCls:t,padding:n}=e;return{[`${t}-list`]:{display:"flex",flexDirection:"column",gap:n,overflowY:"auto"}}},k8=new I0("loadingMove",{"0%":{transform:"translateY(0)"},"10%":{transform:"translateY(4px)"},"20%":{transform:"translateY(0)"},"30%":{transform:"translateY(-4px)"},"40%":{transform:"translateY(0)"}}),W8=new I0("cursorBlink",{"0%":{opacity:1},"50%":{opacity:0},"100%":{opacity:1}}),X8=e=>{const{componentCls:t,fontSize:n,lineHeight:o,paddingSM:r,colorText:a,calc:l}=e;return{[t]:{display:"flex",columnGap:r,[`&${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:W8,animationDuration:"0.8s",animationIterationCount:"infinite",animationTimingFunction:"linear"},[`& ${t}-avatar`]:{display:"inline-flex",justifyContent:"center",alignSelf:"flex-start"},[`& ${t}-header, & ${t}-footer`]:{fontSize:n,lineHeight:o,color:e.colorText},[`& ${t}-header`]:{marginBottom:e.paddingXXS},[`& ${t}-footer`]:{marginTop:r},[`& ${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:a,fontSize:e.fontSize,lineHeight:e.lineHeight,minHeight:l(r).mul(2).add(l(o).mul(n)).equal(),wordBreak:"break-word",[`& ${t}-dot`]:{position:"relative",height:"100%",display:"flex",alignItems:"center",columnGap:e.marginXS,padding:`0 ${ft(e.paddingXXS)}`,"&-item":{backgroundColor:e.colorPrimary,borderRadius:"100%",width:4,height:4,animationName:k8,animationDuration:"2s",animationIterationCount:"infinite",animationTimingFunction:"linear","&:nth-child(1)":{animationDelay:"0s"},"&:nth-child(2)":{animationDelay:"0.2s"},"&:nth-child(3)":{animationDelay:"0.4s"}}}}}}},L0=nn("Bubble",e=>{const t=Ct(e,{});return[X8(t),_8(t),F8(t),H8(t)]},()=>({})),z0=Symbol("BubbleContext"),hc=i.shallowRef(),U8=e=>{i.provide(z0,e),i.watch(e,()=>{hc.value=i.unref(e),i.triggerRef(hc)},{immediate:!0,deep:!0})},K8=()=>i.inject(z0,i.computed(()=>hc.value||{})),G8=i.defineComponent({props:{value:St()},setup(e,{slots:t}){return U8(i.computed(()=>e.value)),()=>{var n;return(n=t.default)==null?void 0:n.call(t)}}}),j0=i.defineComponent({name:"AXBubble",__name:"Bubble",props:i.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=je(e,["prefixCls","rootClassName","classNames","styles","avatar","placement","loading","loadingRender","typing","content","messageRender","variant","shape","onTypingComplete","header","footer"]);i.toRef(e,"content"),i.toRef(e,"prefixCls");const o=i.useSlots(),r=i.ref(e.content);i.watch(()=>e.content,()=>{r.value=e.content});const{onUpdate:a}=i.unref(K8()),l=i.ref(null),{direction:s,getPrefixCls:c}=We(),u=c("bubble",e.prefixCls),d=en("bubble"),[f,p,m,v]=zE(()=>e.typing),[g,y]=LE(r,f,p,m),b=i.ref(!1);i.watch(g,()=>{a==null||a()}),i.watchEffect(()=>{var E;!y.value&&!e.loading?b.value||(b.value=!0,(E=e.onTypingComplete)==null||E.call(e)):b.value=!1});const[S,$,x]=L0(()=>u),w=i.computed(()=>[u,e.rootClassName,d.value.className,$.value,x,`${u}-${e.placement}`,{[`${u}-rtl`]:s.value==="rtl"},{[`${u}-typing`]:y.value&&!e.loading&&!e.messageRender&&!o.message&&!v.value}]),P=i.computed(()=>o.avatar?o.avatar():i.isVNode(e.avatar)?e.avatar:i.createVNode(Cn,e.avatar,null)),C=i.computed(()=>o.message?o.message({content:g.value}):e.messageRender?e.messageRender(g.value):g.value),I=i.computed(()=>e.loading?o.loading?o.loading():e.loadingRender?e.loadingRender():i.createVNode(jE,{prefixCls:u},null):i.createVNode(i.Fragment,null,[C.value,y.value&&i.toValue(v)])),M=i.computed(()=>{const E=i.createVNode("div",{style:{...d.value.styles.content,...e.styles.content},class:[`${u}-content`,`${u}-content-${e.variant}`,{[`${u}-content-${e.shape}`]:e.shape},d.value.classNames.content,e.classNames.content]},[i.toValue(I)]),R=o.header?o.header():e.header,z=o.footer?o.footer():e.footer;return R||z?i.createVNode("div",{class:`${u}-content-wrapper`},[R&&i.createVNode("div",{class:[`${u}-header`,d.value.classNames.header,e.classNames.header],style:{...d.value.styles.header,...e.styles.header}},[R]),E,z&&i.createVNode("div",{class:[`${u}-footer`,d.value.classNames.footer,e.classNames.footer],style:{...d.value.styles.footer,...e.styles.footer}},[z])]):E});return t({nativeElement:l}),()=>S(i.createVNode("div",i.mergeProps({style:{...d.value.style},class:i.toValue(w)},n,{ref:l}),[(o.avatar||e.avatar)&&i.createVNode("div",{style:{...d.value.styles.avatar,...e.styles.avatar},class:[`${u}-avatar`,d.value.classNames.avatar,e.classNames.avatar]},[i.toValue(P)]),i.toValue(M)]))}});var F0={exports:{}};/*!
272
272
  Copyright (c) 2018 Jed Watson.
273
273
  Licensed under the MIT License (MIT), see
@@ -289,7 +289,7 @@ summary tabindex target title type usemap value width wmode wrap onCopy onCut on
289
289
  onMouseenter onMouseleave onMousemove onMouseout onMouseover onMouseup onSelect onTouchcancel
290
290
  onTouchend onTouchmove onTouchstart onTouchstartPassive onTouchmovePassive onScroll onWheel onAbort onCanplay onCanplaythrough
291
291
  onDurationchange onEmptied onEncrypted onEnded onError onLoadeddata onLoadedmetadata
292
- onLoadstart onPause onPlay onPlaying onProgress onRatechange onSeeked onSeeking onStalled onSuspend onTimeupdate onVolumechange onWaiting onLoad onError`.split(/[\s\n]+/),Y8="aria-",Z8="data-";function _0(e,t){return e.indexOf(t)===0}function go(e,t=!1){let n;t===!1?n={aria:!0,data:!0,attr:!0}:t===!0?n={aria:!0}:n={...t};const o={};return Object.keys(e).forEach(r=>{(n.aria&&(r==="role"||_0(r,Y8))||n.data&&_0(r,Z8)||n.attr&&(H0.includes(r)||H0.includes(r.toLowerCase())))&&(o[r]=e[r])}),o}function Q8(e){const[t,n]=Te(e.value.length),o=i.computed(()=>e.value.slice(0,i.unref(t))),r=i.computed(()=>{const l=i.unref(o)[i.unref(o).length-1];return l?l.key:null});i.watch(e,()=>{var l;if(!(i.unref(o).length&&i.unref(o).every((s,c)=>{var u;return s.key===((u=e.value[c])==null?void 0:u.key)}))){if(i.unref(o).length===0)n(1);else for(let s=0;s<i.unref(o).length;s+=1)if(i.unref(o)[s].key!==((l=e.value[s])==null?void 0:l.key)){n(s);break}}},{immediate:!0,deep:!0});const a=Gi(l=>{l===i.unref(r)&&n(i.unref(t)+1)});return[o,a]}function J8(e,t){const n=(r,a)=>{var l;return typeof t.value=="function"?t.value(r,a):t?((l=t.value)==null?void 0:l[r.role])||{}:{}};return i.computed(()=>(e.value||[]).map((r,a)=>{const l=r.key??`preset_${a}`;return{...n(r,a),...r,key:l}}))}const eR=1,k0=i.defineComponent({name:"AXBubbleList",inheritAttrs:!1,__name:"BubbleList",props:i.mergeDefaults({prefixCls:null,rootClassName:null,items:null,autoScroll:{type:Boolean},roles:null},{autoScroll:!0}),setup(e,{expose:t}){const n=je(e,["prefixCls","rootClassName","items","autoScroll","roles"]);i.toRef(e,"roles"),i.toRef(e,"items"),i.toRef(e,"prefixCls");const o=i.useAttrs(),r=go(i.mergeProps(n,o),{attr:!0,aria:!0}),a=i.ref(e.items),l=i.ref(e.roles);i.watch(()=>e.items,()=>{a.value=e.items}),i.watch(()=>e.roles,()=>{l.value=e.roles});const s=i.ref(null),c=i.ref({}),{getPrefixCls:u}=We(),d=u("bubble",e.prefixCls),f=`${d}-list`,[p,m,v]=L0(d),[g,y]=Te(!1);i.watchEffect(()=>{y(!0),i.onWatcherCleanup(()=>{y(!1)})});const b=J8(a,l),[S,$]=Q8(b),[x,w]=Te(!0),[P,C]=Te(0),I=R=>{const z=R.target;w(z.scrollHeight-Math.abs(z.scrollTop)-z.clientHeight<=eR)};i.watch(P,()=>{e.autoScroll&&i.unref(s)&&i.unref(x)&&i.nextTick(()=>{i.unref(s).scrollTo({top:i.unref(s).scrollHeight})})}),i.watch(()=>i.unref(S).length,()=>{var R;if(e.autoScroll){const z=(R=i.unref(S)[i.unref(S).length-2])==null?void 0:R.key,A=i.unref(c)[z];if(A){const{nativeElement:j}=A,{top:O=0,bottom:T=0}=(j==null?void 0:j.getBoundingClientRect())??{},{top:D,bottom:V}=i.unref(s).getBoundingClientRect();O<V&&T>D&&(C(i.unref(P)+1),w(!0))}}});const M=Gi(()=>{e.autoScroll&&C(i.unref(P)+1)}),E=i.computed(()=>({onUpdate:M}));return t({nativeElement:s,scrollTo:({key:R,offset:z,behavior:A="smooth",block:j})=>{if(typeof z=="number")i.unref(s).scrollTo({top:z,behavior:A});else if(R!==void 0){const O=i.unref(c)[R];if(O){const T=i.unref(S).findIndex(D=>D.key===R);w(T===i.unref(S).length-1),O.nativeElement.scrollIntoView({behavior:A,block:j})}}}}),()=>p(i.createVNode(G8,{value:E.value},{default:()=>[i.createVNode("div",i.mergeProps(r,{class:ae(f,e.rootClassName,m.value,v,{[`${f}-reach-end`]:x.value}),ref:s,onScroll:I}),[i.unref(S).map(({key:R,onTypingComplete:z,...A})=>i.createVNode(j0,i.mergeProps(A,{key:R,ref:j=>{j?c.value[R]=j:delete c.value[R]},typing:g.value?A.typing:!1,onTypingComplete:()=>{z==null||z(),$(R)}}),null))])]}))}}),tR=Object.assign(j0,{List:k0}),nR=i.defineComponent({name:"AXConversationsItem",__name:"ConversationsItem",props:{info:null,prefixCls:null,direction:null,menu:null,active:{type:Boolean},onClick:{type:Function}},setup(e){const t=je(e,["prefixCls","info","class","direction","onClick","active","menu"]);i.toRef(e,"class");const n=i.computed(()=>go(t,{aria:!0,data:!0,attr:!0})),o=g=>{g.stopPropagation()},r=i.computed(()=>e.info.disabled),[a,l]=Te(!1),[s,c]=Te(!1),u=i.computed(()=>ae(e.class,`${e.prefixCls}-item`,{[`${e.prefixCls}-item-active`]:e.active&&!r.value},{[`${e.prefixCls}-item-disabled`]:r.value})),d=()=>{!r.value&&e.onClick&&e.onClick(e.info)},f=g=>{g&&c(!g)},p=i.computed(()=>{var g;return(g=e.menu)==null?void 0:g.trigger}),m=i.computed(()=>{const{trigger:g,...y}=e.menu||{};return y}),v=g=>{const y=i.createVNode(Yo,{onClick:o,class:`${e.prefixCls}-menu-icon`},null);return p.value?typeof p.value=="function"?p.value(g,{originNode:y}):p.value:y};return()=>i.createVNode(Kt,{title:e.info.label,open:a.value&&s.value,onOpenChange:c,placement:e.direction==="rtl"?"left":"right"},{default:()=>[i.createVNode("li",i.mergeProps(n.value,{class:u.value,onClick:d}),[e.info.icon&&i.createVNode("div",{class:`${e.prefixCls}-icon`},[e.info.icon]),i.createVNode(Oe.Text,{class:`${e.prefixCls}-label`,ellipsis:{onEllipsis:l}},{default:()=>[e.info.label]}),!r.value&&e.menu&&i.createVNode(Sn,{placement:e.direction==="rtl"?"bottomLeft":"bottomRight",trigger:["click"],disabled:r.value,onOpenChange:f},{default:()=>v(e.info),overlay:()=>i.createVNode(Yt,m.value,null)})])]})}}),W0=Symbol("GroupTitleContext"),vc=i.shallowRef(),oR=e=>{i.provide(W0,e),i.watch(e,()=>{vc.value=i.unref(e),i.triggerRef(vc)},{immediate:!0,deep:!0})},rR=()=>i.inject(W0,i.computed(()=>vc.value||{})),iR=i.defineComponent({props:{value:St()},setup(e,{slots:t}){return oR(i.computed(()=>e.value)),()=>{var n;return(n=t.default)==null?void 0:n.call(t)}}}),X0=i.defineComponent({name:"AXConversationsGroupTitle",__name:"GroupTitle",setup(e){const t=i.useSlots(),n=rR(),o=i.computed(()=>{var r;return(r=t.default)==null?void 0:r.call(t)});return()=>i.createVNode("div",{class:ae(`${n.value.prefixCls}-group-title`)},[o.value&&i.createVNode(Oe.Text,null,{default:()=>[o.value]})])}});function U0(e,t){const{defaultValue:n,value:o=i.ref()}=t||{};let r=typeof e=="function"?e():e;o.value!==void 0&&(r=i.unref(o)),n!==void 0&&(r=typeof n=="function"?n():n);const a=i.ref(r),l=i.ref(r);i.watchEffect(()=>{let c=o.value!==void 0?o.value:a.value;t.postState&&(c=t.postState(c)),l.value=c});function s(c){const u=l.value;a.value=c,i.toRaw(l.value)!==c&&t.onChange&&t.onChange(c,u)}return i.watch(o,()=>{a.value=o.value}),[l,s]}const yc="__ungrouped",aR=(e,t=[])=>{const n=i.computed(()=>{if(!i.toValue(e))return{enableGroup:!1,sort:void 0,title:void 0};let o={sort:void 0,title:void 0};return typeof i.toValue(e)=="object"&&(o={...o,...i.toValue(e)}),{enableGroup:!0,sort:o.sort,title:o.title}});return i.computed(()=>{if(!n.value.enableGroup)return{groupList:[{name:yc,data:i.toValue(t),title:void 0}],enableGroup:n.value.enableGroup};const o=i.toValue(t).reduce((l,s)=>{const c=s.group||yc;return l[c]||(l[c]=[]),l[c].push(s),l},{});return{groupList:(n.value.sort?Object.keys(o).sort(n.value.sort):Object.keys(o)).map(l=>({name:l===yc?void 0:l,title:n.value.title,data:o[l]})),enableGroup:n.value.enableGroup}})},lR=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 ${ft(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,overflow:"hidden",textOverflow:"ellipsis",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 ${ft(e.paddingXS)}`}}}},sR=nn("Conversations",e=>{const t=Ct(e,{});return lR(t)},()=>({})),cR=i.defineComponent({name:"AXConversations",__name:"Conversations",props:i.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=je(e,["prefixCls","rootClassName","items","activeKey","defaultActiveKey","onActiveChange","menu","styles","classNames","groupable","class","style"]);i.toRef(e,"class"),i.toRef(e,"activeKey"),i.toRef(e,"prefixCls");const n=i.ref(e.activeKey),o=i.computed(()=>go(t,{attr:!0,aria:!0,data:!0})),[r,a]=U0(e.defaultActiveKey,{value:n});i.watch(()=>e.activeKey,()=>{n.value=e.activeKey});const l=aR(()=>e.groupable,()=>e.items),{getPrefixCls:s,direction:c}=We(),u=i.computed(()=>s("conversations",e.prefixCls)),d=en("conversations"),[f,p,m]=sR(u),v=i.computed(()=>ae(u.value,d.value.className,e.class,e.rootClassName,p.value,m,{[`${u.value}-rtl`]:c.value==="rtl"})),g=y=>{a(y.key),e.onActiveChange&&e.onActiveChange(y.key)};return()=>f(i.createVNode("ul",i.mergeProps(o.value,{style:{...typeof d.value.style=="object"?d.value.style:{},...typeof e.style=="object"?e.style:{}},class:v.value}),[l.value.groupList.map((y,b)=>{const S=y.data.map(($,x)=>i.createVNode(nR,{key:$.key||`key-${x}`,info:$,prefixCls:u.value,direction:c.value,class:ae(e.classNames.item,d.value.classNames.item),style:{...d.value.styles.item,...e.styles.item},menu:typeof e.menu=="function"?e.menu($):e.menu,active:r.value===$.key,onClick:g},null));return l.value.enableGroup?i.createVNode("li",{key:y.name||`key-${b}`},[i.createVNode(iR,{value:{prefixCls:u.value}},{default:()=>{var $;return[(($=y.title)==null?void 0:$.call(y,y.name,{components:{GroupTitle:X0}}))||i.createVNode(X0,{key:y.name},{default:()=>[y.name]})]}}),i.createVNode("ul",{class:`${u.value}-list`},[S])]):S})]))}}),uR=e=>{const{componentCls:t,calc:n}=e,o=n(e.fontSizeHeading3).mul(e.lineHeightHeading3).equal(),r=n(e.fontSize).mul(e.lineHeight).equal();return{[t]:{gap:e.padding,[`${t}-icon`]:{height:n(o).add(r).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"}}}}},dR=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}}}}},fR=nn("Welcome",e=>{const t=Ct(e,{});return[uR(t),dR(t)]},()=>({}));function pR(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!i.isVNode(e)}const mR=i.defineComponent({name:"AXWelcome",__name:"Welcome",props:i.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){i.toRef(e,"prefixCls");const t=i.useSlots(),{direction:n,getPrefixCls:o}=We(),r=o("welcome",e.prefixCls),a=en("welcome"),[l,s,c]=fR(r),u=i.computed(()=>{const m=t.icon?t.icon():e.icon;if(!m)return null;let v=m;return typeof m=="string"&&m.startsWith("http")&&(v=i.createVNode("img",{src:m,alt:"icon"},null)),i.createVNode("div",{class:ae(`${r}-icon`,a.value.classNames.icon,e.classNames.icon),style:e.styles.icon},[v])}),d=i.computed(()=>{const m=t.title?t.title():e.title;return m?i.createVNode(Oe.Title,{level:4,class:ae(`${r}-title`,a.value.classNames.title,e.classNames.title),style:e.styles.title},pR(m)?m:{default:()=>[m]}):null}),f=i.computed(()=>t.description?t.description():e.description),p=i.computed(()=>{const m=t.extra?t.extra():e.extra;return m?i.createVNode("div",{class:ae(`${r}-extra`,a.value.classNames.extra,e.classNames.extra),style:e.styles.extra},[m]):null});return()=>l(i.createVNode(pr,{class:ae(r,a.value.className,e.className,e.rootClassName,s.value,c,`${r}-${e.variant}`,{[`${r}-rtl`]:n.value==="rtl"}),style:e.style},{default:()=>[u.value,i.createVNode(pr,{vertical:!0,class:`${r}-content-wrapper`},{default:()=>[t.extra||e.extra?i.createVNode(pr,{align:"flex-start",class:`${r}-title-wrapper`},{default:()=>[d.value,p.value]}):d.value,f.value&&i.createVNode(Oe.Text,{class:ae(`${r}-description`,a.value.classNames.description,e.classNames.description),style:e.styles.description},{default:()=>[f.value]})]})]}))}}),gR=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:`${ft(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}}}}}},hR=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}}}}},vR=nn("Prompts",e=>{const t=Ct(e,{});return[gR(t),hR(t)]},()=>({})),K0=i.defineComponent({name:"AXPrompts",__name:"Prompts",props:i.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=je(e,["prefixCls","title","class","items","onItemClick","vertical","wrap","rootClassName","styles","classNames","style"]);i.toRef(e,"class"),i.toRef(e,"prefixCls");const n=i.useSlots(),{getPrefixCls:o,direction:r}=We(),a=o("prompts",e.prefixCls),l=en("prompts"),[s,c,u]=vR(a),d=i.computed(()=>ae(a,l.value.className,e.class,e.rootClassName,c.value,u,{[`${a}-rtl`]:r.value==="rtl"})),f=i.computed(()=>ae(`${a}-list`,l.value.classNames.list,e.classNames.list,{[`${a}-list-wrap`]:e.wrap},{[`${a}-list-vertical`]:e.vertical})),p=i.computed(()=>n.title?n.title():e.title);return()=>{var m;return s(i.createVNode("div",i.mergeProps(t,{class:d.value,style:{...typeof e.style=="object"?e.style:{},...typeof l.value.style=="object"?l.value.style:{}}}),[p.value&&i.createVNode(Oe.Title,{level:5,class:ae(`${a}-title`,l.value.classNames.title,e.classNames.title),style:{...l.value.styles.title,...e.styles.title}},{default:()=>[p.value]}),i.createVNode("div",{class:f.value,style:{...l.value.styles.list,...e.styles.list}},[(m=e.items)==null?void 0:m.map((v,g)=>{const y=v.children&&v.children.length>0;return i.createVNode("div",{key:v.key||`key_${g}`,style:{...l.value.styles.item,...e.styles.item},class:ae(`${a}-item`,l.value.classNames.item,e.classNames.item,{[`${a}-item-disabled`]:v.disabled,[`${a}-item-has-nest`]:y}),onClick:()=>{!y&&e.onItemClick&&e.onItemClick({data:v})}},[v.icon&&i.createVNode("div",{class:`${a}-icon`},[v.icon]),i.createVNode("div",{class:ae(`${a}-content`,l.value.classNames.itemContent,e.classNames.itemContent),style:{...l.value.styles.itemContent,...e.styles.itemContent}},[v.label&&i.createVNode("h6",{class:`${a}-label`},[v.label]),v.description&&i.createVNode("p",{class:`${a}-desc`},[v.description]),y&&i.createVNode(K0,{class:`${a}-nested`,items:v.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)])])})])]))}}}),yR=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"}}}}},bR=nn("Suggestion",e=>{const t=Ct(e,{});return yR(t)},()=>({}));function CR(e,t,n,o,r){const[a,l]=Te([]),s=(m,v=a.value)=>{let g=i.toValue(e);for(let y=0;y<m-1;y+=1){const b=v[y],S=g.find($=>$.value===b);if(!S)break;g=S.children||[]}return g},c=m=>m.map((v,g)=>{const b=s(g+1,m).find(S=>S.value===v);return b==null?void 0:b.value}),u=m=>{const v=a.value.length||1,g=s(v),y=g.findIndex($=>$.value===a.value[v-1]),b=g.length,S=g[(y+m+b)%b];l([...a.value.slice(0,v-1),S.value])},d=()=>{a.value.length>1&&l(a.value.slice(0,a.value.length-1))},f=()=>{const m=s(a.value.length+1);m.length&&l([...a.value,m[0].value])},p=Gi(m=>{if(i.toValue(t))switch(console.log("e.key",m),m.key){case"ArrowDown":u(1),m.preventDefault();break;case"ArrowUp":u(-1),m.preventDefault();break;case"ArrowRight":i.toValue(n)?d():f(),m.preventDefault();break;case"ArrowLeft":i.toValue(n)?f():d(),m.preventDefault();break;case"Enter":s(a.value.length+1).length||o(c(a.value)),m.preventDefault();break;case"Escape":r(),m.preventDefault();break}});return i.watch(()=>i.toValue(t),()=>{i.toValue(t)&&l([i.toValue(e)[0].value])},{immediate:!0}),[a,p]}const SR=i.defineComponent({name:"AXSuggestion",__name:"Suggestion",props:i.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){i.toRef(e,"prefixCls");const t=i.useSlots(),{direction:n,getPrefixCls:o}=We(),r=i.computed(()=>o("suggestion",e.prefixCls));`${r.value}`;const a=i.computed(()=>n.value==="rtl"),l=en("suggestion"),[s,c,u]=bR(r),[d,f]=Te(e.open),[p,m]=Te(),v=P=>{var C;f(P),(C=e.onOpenChange)==null||C.call(e,P)},g=P=>{P===!1?v(!1):(m(P),v(!0))},y=()=>{v(!1)},b=i.computed(()=>typeof e.items=="function"?e.items(p.value):e.items),S=P=>{e.onSelect&&e.onSelect(P[P.length-1]),v(!1)},[$,x]=CR(b,d,a,S,y),w=i.computed(()=>{var P;return t.default?t.default({onTrigger:g,onKeyDown:x}):(P=e.children)==null?void 0:P.call(e,{onTrigger:g,onKeyDown:x})});return()=>s(i.createVNode(t6,{options:b.value,open:d.value,value:$.value,placement:a.value?"topRight":"topLeft",onDropdownVisibleChange:P=>{P||y()},class:ae(e.rootClassName,r.value,c,u,{[`${r.value}-block`]:e.block}),onChange:S,dropdownMatchSelectWidth:e.block},{default:()=>i.createVNode("div",{class:ae(r.value,l.value.className,e.rootClassName,e.className,`${r.value}-wrapper`,c.value,u),style:{...l.value.style,...e.style}},[w.value])}))}}),G0=Symbol("SenderHeaderContext"),bc=i.shallowRef(),wR=e=>{i.provide(G0,e),i.watch(e,()=>{bc.value=i.unref(e),i.triggerRef(bc)},{immediate:!0,deep:!0})},$R=()=>i.inject(G0,i.computed(()=>bc.value||{})),xR=i.defineComponent({props:{value:St()},setup(e,{slots:t}){return wR(i.computed(()=>e.value)),()=>{var n;return(n=t.default)==null?void 0:n.call(t)}}}),q0=Symbol("ActionButtonContext"),Cc=i.shallowRef(),OR=e=>{i.provide(q0,e),i.watch(e,()=>{Cc.value=i.unref(e),i.triggerRef(Cc)},{immediate:!0,deep:!0})},Sc=()=>i.inject(q0,i.computed(()=>Cc.value||{})),PR=i.defineComponent({props:{value:St()},setup(e,{slots:t}){return OR(i.computed(()=>e.value)),()=>{var n;return(n=t.default)==null?void 0:n.call(t)}}}),qi=i.defineComponent({name:"AXSenderActionButton",__name:"index",props:i.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=je(e,["action","type","disabled","onClick"]);i.toRef(e,"disabled");const n=i.useSlots(),o=Sc(),r=i.computed(()=>{var c;const l=o.value.disabled,s=(c=o.value)==null?void 0:c[`${e.action}Disabled`];return e.disabled??l??s}),a=i.computed(()=>o.value.prefixCls);return()=>i.createVNode(_e,i.mergeProps({type:e.type},t,{onClick:l=>{var s,c;r.value||((c=(s=o.value)==null?void 0:s[e.action])==null||c.call(s),e.onClick&&!Array.isArray(e.onClick)&&e.onClick(l))},class:ae(a.value,{[`${a.value}-disabled`]:r.value})}),{icon:()=>n.default()})}}),IR=i.defineComponent({name:"AXSenderClearButton",__name:"ClearButton",props:i.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=je(e,["disabled"]);return()=>i.createVNode(qi,i.mergeProps({disabled:e.disabled},t,{action:"onClear"}),{default:()=>[i.createVNode(Zs,null,null)]})}}),TR=i.defineComponent({name:"AXSenderStopLoading",__name:"StopLoading",props:{className:null},setup(e){const t=e;return()=>i.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},[i.createVNode("title",null,[i.createTextVNode("Stop Loading")]),i.createVNode("rect",{fill:"currentColor",height:"250",rx:"24",ry:"24",width:"250",x:"375",y:"375"},null),i.createVNode("circle",{cx:"500",cy:"500",fill:"none",r:"450",stroke:"currentColor","stroke-width":"100",opacity:"0.45"},null),i.createVNode("circle",{cx:"500",cy:"500",fill:"none",r:"450",stroke:"currentColor","stroke-width":"100","stroke-dasharray":"600 9999999"},[i.createVNode("animateTransform",{attributeName:"transform",dur:"1s",from:"0 500 500",repeatCount:"indefinite",to:"360 500 500",type:"rotate"},null)])])}}),Y0=i.defineComponent({name:"AXSenderLoadingButton",__name:"LoadingButton",props:i.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=je(e,["type","shape","icon","disabled"]),n=Sc(),{token:o}=mr.useToken();return()=>i.createVNode(qi,i.mergeProps({type:e.type,disabled:e.disabled,shape:e.shape},t,{style:{backgroundColor:"transparent",color:o.value.colorPrimary},class:ae(`${n.value.prefixCls}-loading-button`),action:"onCancel"}),{default:()=>[i.createVNode(TR,{className:`${n.value.prefixCls}-loading-icon`},null)]})}}),Z0=i.defineComponent({name:"AXSenderLoadingButton",__name:"SendButton",props:i.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=je(e,["type","shape","disabled"]);return()=>i.createVNode(qi,i.mergeProps({type:e.type,shape:e.shape,disabled:e.disabled},t,{action:"onSend"}),{default:()=>[i.createVNode(Gs,null,null)]})}}),yr=1e3,br=4,Yi=140,Zi=250,Q0=500,Qi=.8,NR=i.defineComponent({name:"AXSenderRecordingIcon",__name:"RecordingIcon",props:{className:null},setup(e){const t=Yi/2;return()=>i.createVNode("svg",{color:"currentColor",viewBox:`0 0 ${yr} ${yr}`,xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",class:e.className},[i.createVNode("title",null,[i.createTextVNode("Speech Recording")]),Array.from({length:br}).map((n,o)=>{const r=(yr-Yi*br)/(br-1),a=o*(r+Yi),l=yr/2-Zi/2,s=yr/2-Q0/2;return i.createVNode("rect",{fill:"currentColor",rx:t,ry:t,height:Zi,width:Yi,x:a,y:l,key:o},[i.createVNode("animate",{attributeName:"height",values:`${Zi}; ${Q0}; ${Zi}`,keyTimes:"0; 0.5; 1",dur:`${Qi}s`,begin:`${Qi/br*o}s`,repeatCount:"indefinite"},null),i.createVNode("animate",{attributeName:"y",values:`${l}; ${s}; ${l}`,keyTimes:"0; 0.5; 1",dur:`${Qi}s`,begin:`${Qi/br*o}s`,repeatCount:"indefinite"},null)])})])}}),J0=i.defineComponent({name:"AXSenderSpeechButton",__name:"index",props:i.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=je(e,["type","disabled"]),n=Sc(),{token:o}=mr.useToken(),r=i.computed(()=>n.value.speechRecording),a=i.computed(()=>n.value.prefixCls),l=i.computed(()=>{let s;return r.value?s=i.createVNode(NR,{className:`${a.value}-recording-icon`},null):n.value.onSpeechDisabled?s=i.createVNode(qs,null,null):s=i.createVNode(Ys,null,null),s});return()=>i.createVNode(qi,i.mergeProps({type:e.type,disabled:e.disabled},t,{style:{display:"flex",justifyContent:"center",alignItems:"center",color:o.value.colorPrimary},action:"onSpeech"}),{default:()=>[l.value]})}}),Cr=i.defineComponent({name:"AXTransitionCollapse",__name:"TransitionCollapse",props:{prefixCls:{default:"ax"}},setup(e){const t=e,n=i.useSlots(),o=i.computed(()=>t.prefixCls+"-transition-collapse"),r={beforeEnter(a){a.dataset||(a.dataset={}),a.dataset.oldPaddingTop=a.style.paddingTop,a.dataset.oldPaddingBottom=a.style.paddingBottom,a.style.maxHeight="0",a.style.paddingTop="0",a.style.paddingBottom="0"},enter(a){a.dataset.oldOverflow=a.style.overflow,a.scrollHeight!==0?(a.style.maxHeight=`${a.scrollHeight}px`,a.style.paddingTop=a.dataset.oldPaddingTop,a.style.paddingBottom=a.dataset.oldPaddingBottom):(a.style.maxHeight=`${a.dataset.oldMaxHeight||"999"}px`,a.style.paddingTop=a.dataset.oldPaddingTop,a.style.paddingBottom=a.dataset.oldPaddingBottom),a.style.overflow="hidden"},afterEnter(a){a.style.maxHeight="",a.style.overflow=a.dataset.oldOverflow},beforeLeave(a){a.dataset||(a.dataset={}),a.dataset.oldMaxHeight=a.scrollHeight,a.dataset.oldPaddingTop=a.style.paddingTop,a.dataset.oldPaddingBottom=a.style.paddingBottom,a.dataset.oldOverflow=a.style.overflow,a.style.overflow="hidden",a.style.maxHeight=`${a.scrollHeight}px`},leave(a){a.scrollHeight!==0&&(a.style.maxHeight="0",a.style.paddingTop="0",a.style.paddingBottom="0")},afterLeave(a){a.style.maxHeight="",a.style.overflow=a.dataset.oldOverflow,a.style.paddingTop=a.dataset.oldPaddingTop,a.style.paddingBottom=a.dataset.oldPaddingBottom}};return()=>i.createVNode(i.Transition,{name:o.value,onBeforeEnter:r.beforeEnter,onEnter:r.enter,onAfterEnter:r.afterEnter,onBeforeLeave:r.beforeLeave,onLeave:r.leave,onAfterLeave:r.afterLeave},{default:()=>{var a;return[(a=n.default)==null?void 0:a.call(n)]}})}}),ev=e=>{const{componentCls:t}=e,n=`${t}-transition-collapse`;return{[t]:{[n]:{"&-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(",")}}}}};Cr.install=function(e){return e.component(Cr.name,Cr),e};const ER=e=>{const{componentCls:t,calc:n}=e,o=`${t}-header`;return{[t]:{[o]:{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",[`${o}-title`]:{flex:"auto"}},"&-content":{padding:e.padding},"&-motion":{transition:["height","border"].map(r=>`${r} ${e.motionDurationSlow}`).join(","),overflow:"hidden","&-enter-start, &-leave-active":{borderBottomColor:"transparent"},"&-hidden":{display:"none"}}}}}},RR=e=>{const{componentCls:t,padding:n,paddingSM:o,paddingXS:r,paddingXXS:a,lineWidth:l,lineWidthBold:s,calc:c}=e;return{[t]:{position:"relative",width:"100%",boxSizing:"border-box",boxShadow:`${e.boxShadowTertiary}`,transition:`background ${e.motionDurationSlow}`,borderRadius:{_skip_check_:!0,value:c(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:l},"&:focus-within":{boxShadow:`${e.boxShadowSecondary}`,borderColor:e.colorPrimary,"&:after":{borderWidth:s}},"&-disabled":{background:e.colorBgContainerDisabled},[`&${t}-rtl`]:{direction:"rtl"},[`${t}-content`]:{display:"flex",gap:r,width:"100%",paddingBlock:o,paddingInlineStart:n,paddingInlineEnd:o,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"}},[`${t}-footer`]:{paddingInlineStart:n,paddingInlineEnd:o,paddingBlockEnd:o,paddingBlockStart:a,boxSizing:"border-box"}}}},MR=nn("Sender",e=>{const{paddingXS:t,calc:n}=e,o=Ct(e,{SenderContentMaxWidth:`calc(100% - ${ft(n(t).add(32).equal())})`});return[RR(o),ER(o),ev(o)]},()=>({}));let Ji;!Ji&&typeof window<"u"&&(Ji=window.SpeechRecognition||window.webkitSpeechRecognition);function AR(e,t){const n=e,o=i.computed(()=>{const g=i.toValue(t);return typeof g=="object"?{controlledRecording:g.recording,onControlledRecordingChange:g.onRecordingChange,speechInControlled:typeof g.recording=="boolean"}:{controlledRecording:void 0,onControlledRecordingChange:void 0,speechInControlled:!1}}),r=i.computed(()=>o.value.controlledRecording),a=o.value.onControlledRecordingChange,l=o.value.speechInControlled,s=i.ref(null);i.watchEffect(()=>{if(typeof navigator<"u"&&"permissions"in navigator){let g=null;navigator.permissions.query({name:"microphone"}).then(y=>{s.value=y.state,y.onchange=function(){s.value=this.state},g=y}),i.onWatcherCleanup(()=>{g&&(g.onchange=null)})}});const c=i.computed(()=>Ji&&s.value!=="denied"),u=i.ref(null),[d,f]=U0(!1,{value:r}),p=i.ref(!1),m=()=>{if(c.value&&!u.value){const g=new Ji;g.onstart=()=>{f(!0)},g.onend=()=>{f(!1)},g.onresult=y=>{var b,S,$;if(!p.value){const x=($=(S=(b=y.results)==null?void 0:b[0])==null?void 0:S[0])==null?void 0:$.transcript;n(x)}p.value=!1},u.value=g}};return{speechPermission:c,triggerSpeech:g=>{g&&!d.value||(p.value=g,l?a==null||a(!d.value):(m(),u.value&&(d.value?(u.value.stop(),a==null||a(!1)):(u.value.start(),a==null||a(!0)))))},recording:d}}function VR(e,t){for(var n=e,o=0;o<t.length;o+=1){if(n==null)return;n=n[t[o]]}return n}const DR=i.defineComponent({name:"AXSender",__name:"Sender",props:i.mergeDefaults({onKeyPress:{type:Function},onFocus:null,onBlur:null,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,Boolean]},allowSpeech:null,prefix:null,footer:{type:Function},header:null,autoSize:{type:Boolean}},{styles:()=>({}),classNames:()=>({}),submitType:"enter",actions:void 0,disabled:void 0,autoSize:()=>({maxRows:8})}),emits:["update:value"],setup(e,{expose:t,emit:n}){const o=je(e,["prefixCls","styles","classNames","className","rootClassName","style","defaultValue","value","placeholder","readOnly","submitType","onSubmit","loading","components","onCancel","onChange","actions","onKeyPress","onKeyDown","disabled","allowSpeech","prefix","footer","header","onPaste","onPasteFile","autoSize"]);i.toRef(e,"prefixCls");function r(k,Y,X){return VR(k,Y)||X}const a={SendButton:Z0,ClearButton:IR,LoadingButton:Y0,SpeechButton:J0},l=n,s=i.useSlots(),{direction:c,getPrefixCls:u}=We(),d=i.computed(()=>u("sender",e.prefixCls)),f=i.ref(null),p=i.ref(null),m=en("sender"),v=i.computed(()=>`${d.value}-input`),[g,y,b]=MR(d.value),S=i.computed(()=>ae(d.value,m.value.className,e.className,e.rootClassName,y.value,b,{[`${d.value}-rtl`]:c.value==="rtl",[`${d.value}-disabled`]:e.disabled})),$=i.computed(()=>`${d.value}-actions-btn`),x=i.computed(()=>`${d.value}-actions-list`),w=i.ref(e.value??e.defaultValue??""),P=k=>{w.value=k};i.watch(()=>e.value,()=>{P(e.value)});const C=(k,Y)=>{P(k),l("update:value",k),e.onChange&&e.onChange(k,Y)},{speechPermission:I,triggerSpeech:M,recording:E}=AR(k=>{C(`${w.value} ${k}`)},()=>e.allowSpeech),R=r(e.components,["input"],Ae.TextArea),z=i.computed(()=>go(o,{attr:!0,aria:!0,data:!0})),A=i.computed(()=>({...z.value,ref:p})),j=()=>{w.value&&e.onSubmit&&!e.loading&&e.onSubmit(w.value)},O=()=>{C("")},T=i.ref(!1),D=()=>{T.value=!0},V=()=>{T.value=!1},N=k=>{const Y=k.key==="Enter"&&!T.value;switch(e.submitType){case"enter":Y&&!k.shiftKey&&(k.preventDefault(),j());break;case"shiftEnter":Y&&k.shiftKey&&(k.preventDefault(),j());break}e.onKeyPress&&e.onKeyPress(k)},F=k=>{var X,L;const Y=(X=k.clipboardData)==null?void 0:X.files;Y!=null&&Y.length&&e.onPasteFile&&(e.onPasteFile(Y[0],Y),k.preventDefault()),(L=e.onPaste)==null||L.call(e,k)},_=k=>{var Y,X;k.target!==((Y=f.value)==null?void 0:Y.querySelector(`.${v.value}`))&&k.preventDefault(),(X=p.value)==null||X.focus()},G=i.computed(()=>{let k=i.createVNode(pr,{class:`${x.value}-presets`},{default:()=>[e.allowSpeech&&i.createVNode(J0,null,null),e.loading?i.createVNode(Y0,null,null):i.createVNode(Z0,null,null)]});const Y={components:a};return s.actions?k=s.actions({ori:k,info:Y}):typeof e.actions=="function"?k=e.actions(k,Y):(e.actions||e.actions===!1)&&(k=e.actions),k}),Z=i.computed(()=>({prefixCls:$.value,onSend:j,onSendDisabled:!w.value,onClear:O,onClearDisabled:!w.value,onCancel:e.onCancel,onCancelDisabled:!e.loading,onSpeech:()=>M(!1),onSpeechDisabled:!I.value,speechRecording:E.value,disabled:e.disabled})),te=i.computed(()=>{let k=null;const Y={components:a};return s.footer?k=s.footer({info:Y}):typeof e.footer=="function"?k=e.footer({components:a}):e.footer&&(k=e.footer),k}),oe=i.computed(()=>s.header?s.header():e.header),J=i.computed(()=>s.prefix?s.prefix():e.prefix);return t({nativeElement:f.value,focus:k=>{var Y;return(Y=p.value)==null?void 0:Y.focus(k)},blur:()=>{var k;return(k=p.value)==null?void 0:k.blur()}}),()=>g(i.createVNode("div",{ref:f,class:S.value,style:{...m.value.style,...e.style}},[oe.value&&i.createVNode(xR,{value:{prefixCls:d.value}},{default:()=>[oe.value]}),i.createVNode(PR,{value:Z.value},{default:()=>[i.createVNode("div",{class:`${d.value}-content`,onMousedown:_},[J.value&&i.createVNode("div",{class:ae(`${d.value}-prefix`,m.value.classNames.prefix,e.classNames.prefix),style:{...m.value.styles.prefix,...e.styles.prefix}},[J.value]),i.createVNode(R,i.mergeProps(A.value,{disabled:e.disabled,style:{...m.value.styles.input,...e.styles.input},class:ae(v.value,m.value.classNames.input,e.classNames.input),autoSize:{maxRows:8},value:w.value,onChange:k=>{C(k.target.value,k),M(!0)},onPressEnter:N,onCompositionstart:D,onCompositionend:V,onKeydown:e.onKeyDown,placeholder:e.placeholder,onPaste:F,bordered:!1,readOnly:e.readOnly}),null),G.value&&i.createVNode("div",{class:ae(x.value,m.value.classNames.actions,e.classNames.actions),style:{...m.value.styles.actions,...e.styles.actions}},[G.value])]),te.value&&i.createVNode("div",{class:ae(`${d.value}-footer`,m.value.classNames.footer,e.classNames.footer),style:{...m.value.styles.footer,...e.styles.footer}},[te.value])]})]))}}),BR=i.defineComponent({name:"AXSenderHeader",inheritAttrs:!1,__name:"SenderHeader",props:i.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){i.toRef(e,"classNames");const t=i.useSlots(),n=$R(),o=i.computed(()=>`${n.value.prefixCls}-header`),r=i.useAttrs();return()=>i.createVNode(Cr,{prefixCls:n.value.prefixCls},{default:()=>{var a;return[e.open||e.forceRender?i.withDirectives(i.createVNode("div",i.mergeProps(r,{class:ae(o.value,e.className),style:{...e.style}}),[(e.closable!==!1||e.title)&&i.createVNode("div",{class:ae(`${o.value}-header`,e.classNames.header),style:{...e.styles.header}},[i.createVNode("div",{class:`${o.value}-title`},[e.title]),e.closable!==!1&&i.createVNode("div",{class:`${o.value}-close`},[i.createVNode(_e,{type:"text",icon:i.createVNode(Rt,null,null),size:"small",onClick:()=>{var l;(l=e.onOpenChange)==null||l.call(e,!e.open)}},null)])]),t.default&&i.createVNode("div",{class:ae(`${o.value}-content`,e.classNames.content),style:{...e.styles.content}},[(a=t.default)==null?void 0:a.call(t)])]),[[i.vShow,e.open]]):null]}})}}),LR=Object.assign(DR,{Header:BR}),tv=Symbol("AttachmentContext"),wc=i.shallowRef(),zR=e=>{i.provide(tv,e),i.watch(e,()=>{wc.value=i.unref(e),i.triggerRef(wc)},{immediate:!0,deep:!0})},ea=()=>i.inject(tv,i.computed(()=>wc.value||{})),jR=i.defineComponent({inheritAttrs:!1,props:{value:St()},setup(e,{slots:t}){return zR(i.computed(()=>e.value)),()=>{var n;return(n=t.default)==null?void 0:n.call(t)}}}),FR=i.defineComponent({name:"AXAttachmentsPlaceholderUploader",__name:"PlaceholderUploader",props:i.mergeDefaults({prefixCls:null,placeholder:null,upload:null,className:null,style:null},{placeholder:()=>({})}),setup(e,{expose:t}){const n=`${e.prefixCls}-placeholder`,o=i.computed(()=>e.placeholder||{}),r=i.useTemplateRef("upload-dragger"),a=ea(),[l,s]=Te(!1),c=()=>{s(!0)},u=m=>{m.currentTarget.contains(m.relatedTarget)||s(!1)},d=()=>{s(!1)};t({nativeElement:r});const f=m=>Array.isArray(m)&&m.every(i.isVNode),p=i.computed(()=>i.isVNode(e.placeholder)||f(e.placeholder)?e.placeholder:i.createVNode(pr,{align:"center",justify:"center",vertical:!0,class:`${n}-inner`},{default:()=>[i.createVNode(Oe.Text,{class:`${n}-icon`},{default:()=>[o.value.icon]}),i.createVNode(Oe.Title,{class:`${n}-title`,level:5},{default:()=>[o.value.title]}),i.createVNode(Oe.Text,{class:`${n}-description`,type:"secondary"},{default:()=>[o.value.description]})]}));return()=>i.createVNode("div",{class:ae(n,{[`${n}-drag-in`]:l.value,[`${n}-disabled`]:a.value.disabled},e.className),onDragenter:c,onDragleave:u,onDrop:d,"aria-hidden":a.value.disabled,style:e.style},[i.createVNode(Fh.Dragger,i.mergeProps({showUploadList:!1},e.upload,{ref:"upload-dragger",style:{padding:0,border:0,background:"transparent"}}),{default:()=>[p.value]})])}}),nv=i.defineComponent({name:"AXAttachmentsDropArea",__name:"DropArea",props:{prefixCls:null,className:null,getDropContainer:{type:Function},children:null},setup(e){const t=ea(),[n,o]=Te(),[r,a]=Te(null);i.onMounted(()=>{var c;o((c=e.getDropContainer)==null?void 0:c.call(e))}),i.watch(()=>i.toValue(e.getDropContainer),()=>{var u;const c=(u=e.getDropContainer)==null?void 0:u.call(e);n.value!==c&&o(c)}),i.watch(()=>!!n.value,()=>{if(n.value){const c=()=>{a(!0)},u=p=>{p.preventDefault()},d=p=>{p.relatedTarget||a(!1)},f=p=>{a(!1),p.preventDefault()};document.addEventListener("dragenter",c),document.addEventListener("dragover",u),document.addEventListener("dragleave",d),document.addEventListener("drop",f),i.onWatcherCleanup(()=>{document.removeEventListener("dragenter",c),document.removeEventListener("dragover",u),document.removeEventListener("dragleave",d),document.removeEventListener("drop",f)})}});const l=i.computed(()=>e.getDropContainer&&n.value&&!t.value.disabled),s=`${e.prefixCls}-drop-area`;return()=>l.value?i.createVNode(i.Teleport,{to:n.value},{default:()=>[i.createVNode("div",{class:ae(s,e.className,{[`${s}-on-body`]:n.value.tagName==="BODY"}),style:{display:r.value?"block":"none"}},[e.children])]}):null}}),ov=i.defineComponent({name:"AXAttachmentsSilentUploader",__name:"SilentUploader",props:{children:null,upload:null,rootClassName:null},setup(e,{expose:t}){const n=i.useTemplateRef("upload");return t({nativeElement:n}),()=>i.createVNode(Fh,i.mergeProps(e.upload,{showUploadList:!1,ref:"upload"}),{default:()=>[e.children]})}}),rv=(e,t)=>{const n=e.__vccOpts||e;for(const[o,r]of t)n[o]=r;return n},HR={},_R={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 kR(e,t){return i.openBlock(),i.createElementBlock("svg",_R,t[0]||(t[0]=[i.createElementVNode("title",null,"audio",-1),i.createElementVNode("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},[i.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 WR=rv(HR,[["render",kR]]),XR={},UR={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 KR(e,t){return i.openBlock(),i.createElementBlock("svg",UR,t[0]||(t[0]=[i.createElementVNode("title",null,"video",-1),i.createElementVNode("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},[i.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 GR=rv(XR,[["render",KR]]),qR=e=>e.indexOf("image/")===0,ta=200;function YR(e){return new Promise(t=>{if(!e||!e.type||!qR(e.type)){t("");return}const n=new Image;if(n.onload=()=>{const{width:o,height:r}=n,a=o/r,l=a>1?ta:ta*a,s=a>1?ta/a:ta,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 d=c.toDataURL();document.body.removeChild(c),window.URL.revokeObjectURL(n.src),t(d)},n.crossOrigin="anonymous",e.type.startsWith("image/svg+xml")){const o=new FileReader;o.onload=()=>{o.result&&typeof o.result=="string"&&(n.src=o.result)},o.readAsDataURL(e)}else if(e.type.startsWith("image/gif")){const o=new FileReader;o.onload=()=>{o.result&&t(o.result)},o.readAsDataURL(e)}else n.src=window.URL.createObjectURL(e)})}const Ve=Math.round;function $c(e,t){const n=e.replace(/^[^(]*\((.*)/,"$1").replace(/\).*/,"").match(/\d*\.?\d+%?/g)||[],o=n.map(r=>parseFloat(r));for(let r=0;r<3;r+=1)o[r]=t(o[r]||0,n[r]||"",r);return n[3]?o[3]=n[3].includes("%")?o[3]/100:o[3]:o[3]=1,o}const iv=(e,t,n)=>n===0?e:e/100;function Sr(e,t){const n=t||255;return e>n?n:e<0?0:e}class xc{constructor(t){Ue(this,"isValid",!0),Ue(this,"r",0),Ue(this,"g",0),Ue(this,"b",0),Ue(this,"a",1),Ue(this,"_h",void 0),Ue(this,"_s",void 0),Ue(this,"_l",void 0),Ue(this,"_v",void 0),Ue(this,"_max",void 0),Ue(this,"_min",void 0),Ue(this,"_brightness",void 0);function n(o){return o[0]in t&&o[1]in t&&o[2]in t}if(t)if(typeof t=="string"){let r=function(a){return o.startsWith(a)};const o=t.trim();/^#?[A-F\d]{3,8}$/i.test(o)?this.fromHexString(o):r("rgb")?this.fromRgbString(o):r("hsl")?this.fromHslString(o):(r("hsv")||r("hsb"))&&this.fromHsvString(o)}else if(t instanceof xc)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=Sr(t.r),this.g=Sr(t.g),this.b=Sr(t.b),this.a=typeof t.a=="number"?Sr(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(a){const l=a/255;return l<=.03928?l/12.92:Math.pow((l+.055)/1.055,2.4)}const n=t(this.r),o=t(this.g),r=t(this.b);return .2126*n+.7152*o+.0722*r}getHue(){if(typeof this._h>"u"){const t=this.getMax()-this.getMin();t===0?this._h=0:this._h=Ve(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(),o=this.getSaturation();let r=this.getLightness()-t/100;return r<0&&(r=0),this._c({h:n,s:o,l:r,a:this.a})}lighten(t=10){const n=this.getHue(),o=this.getSaturation();let r=this.getLightness()+t/100;return r>1&&(r=1),this._c({h:n,s:o,l:r,a:this.a})}mix(t,n=50){const o=this._c(t),r=n/100,a=s=>(o[s]-this[s])*r+this[s],l={r:Ve(a("r")),g:Ve(a("g")),b:Ve(a("b")),a:Ve(a("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),o=this.a+n.a*(1-this.a),r=a=>Ve((this[a]*this.a+n[a]*n.a*(1-this.a))/o);return this._c({r:r("r"),g:r("g"),b:r("b"),a:o})}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 o=(this.g||0).toString(16);t+=o.length===2?o:"0"+o;const r=(this.b||0).toString(16);if(t+=r.length===2?r:"0"+r,typeof this.a=="number"&&this.a>=0&&this.a<1){const a=Ve(this.a*255).toString(16);t+=a.length===2?a:"0"+a}return t}toHsl(){return{h:this.getHue(),s:this.getSaturation(),l:this.getLightness(),a:this.a}}toHslString(){const t=this.getHue(),n=Ve(this.getSaturation()*100),o=Ve(this.getLightness()*100);return this.a!==1?`hsla(${t},${n}%,${o}%,${this.a})`:`hsl(${t},${n}%,${o}%)`}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,o){const r=this.clone();return r[t]=Sr(n,o),r}_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 o(r,a){return parseInt(n[r]+n[a||r],16)}n.length<6?(this.r=o(0),this.g=o(1),this.b=o(2),this.a=n[3]?o(3)/255:1):(this.r=o(0,1),this.g=o(2,3),this.b=o(4,5),this.a=n[6]?o(6,7)/255:1)}fromHsl({h:t,s:n,l:o,a:r}){if(this._h=t%360,this._s=n,this._l=o,this.a=typeof r=="number"?r:1,n<=0){const p=Ve(o*255);this.r=p,this.g=p,this.b=p}let a=0,l=0,s=0;const c=t/60,u=(1-Math.abs(2*o-1))*n,d=u*(1-Math.abs(c%2-1));c>=0&&c<1?(a=u,l=d):c>=1&&c<2?(a=d,l=u):c>=2&&c<3?(l=u,s=d):c>=3&&c<4?(l=d,s=u):c>=4&&c<5?(a=d,s=u):c>=5&&c<6&&(a=u,s=d);const f=o-u/2;this.r=Ve((a+f)*255),this.g=Ve((l+f)*255),this.b=Ve((s+f)*255)}fromHsv({h:t,s:n,v:o,a:r}){this._h=t%360,this._s=n,this._v=o,this.a=typeof r=="number"?r:1;const a=Ve(o*255);if(this.r=a,this.g=a,this.b=a,n<=0)return;const l=t/60,s=Math.floor(l),c=l-s,u=Ve(o*(1-n)*255),d=Ve(o*(1-n*c)*255),f=Ve(o*(1-n*(1-c))*255);switch(s){case 0:this.g=f,this.b=u;break;case 1:this.r=d,this.b=u;break;case 2:this.r=u,this.b=f;break;case 3:this.r=u,this.g=d;break;case 4:this.r=f,this.g=u;break;case 5:default:this.g=u,this.b=d;break}}fromHsvString(t){const n=$c(t,iv);this.fromHsv({h:n[0],s:n[1],v:n[2],a:n[3]})}fromHslString(t){const n=$c(t,iv);this.fromHsl({h:n[0],s:n[1],l:n[2],a:n[3]})}fromRgbString(t){const n=$c(t,(o,r)=>r.includes("%")?Ve(o/100*255):o);this.r=n[0],this.g=n[1],this.b=n[2],this.a=n[3]}}const ZR=e=>{const{componentCls:t,calc:n}=e,o=`${t}-list-card`,r=n(e.fontSize).mul(e.lineHeight).mul(2).add(e.paddingSM).add(e.paddingSM).equal();return{[o]:{borderRadius:e.borderRadius,position:"relative",background:e.colorFillContent,borderWidth:e.lineWidth,borderStyle:"solid",borderColor:"transparent",flex:"none",[`${o}-name,${o}-desc`]:{display:"flex",flexWrap:"nowrap",maxWidth:"100%"},[`${o}-ellipsis-prefix`]:{flex:"0 1 auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},[`${o}-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,[`${o}-icon`]:{fontSize:n(e.fontSizeLG).mul(2).equal(),lineHeight:1,paddingTop:n(e.paddingXXS).mul(1.5).equal(),flex:"none"},[`${o}-content`]:{flex:"auto",minWidth:0,display:"flex",flexDirection:"column",alignItems:"stretch"},[`${o}-desc`]:{color:e.colorTextTertiary}},"&-type-preview":{width:r,height:r,lineHeight:1,[`&:not(${o}-status-error)`]:{border:0},img:{width:"100%",height:"100%",verticalAlign:"top",objectFit:"cover",borderRadius:"inherit"},[`${o}-img-mask`]:{position:"absolute",inset:0,display:"flex",justifyContent:"center",alignItems:"center",background:`rgba(0, 0, 0, ${e.opacityLoading})`,borderRadius:"inherit"},[`&${o}-status-error`]:{[`img, ${o}-img-mask`]:{borderRadius:n(e.borderRadius).sub(e.lineWidth).equal()},[`${o}-desc`]:{paddingInline:e.paddingXXS}},[`${o}-progress`]:{}},[`${o}-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 ${o}-remove`]:{display:"block"},"&-status-error":{borderColor:e.colorError,[`${o}-desc`]:{color:e.colorError}},"&-motion":{overflow:"hidden",transition:["opacity","width","margin","padding"].map(a=>`${a} ${e.motionDurationSlow}`).join(","),[`${o}-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()}}}}},Oc={"&, *":{boxSizing:"border-box"}},QR=e=>{const{componentCls:t,calc:n,antCls:o}=e,r=`${t}-drop-area`,a=`${t}-placeholder`;return{[r]:{position:"absolute",inset:0,zIndex:e.zIndexPopupBase,...Oc,"&-on-body":{position:"fixed",inset:0},"&-hide-placement":{[`${a}-inner`]:{display:"none"}},[a]:{padding:0}},"&":{[a]:{height:"100%",borderRadius:e.borderRadius,borderWidth:e.lineWidthBold,borderStyle:"dashed",borderColor:"transparent",padding:e.padding,position:"relative",backdropFilter:"blur(10px)",...Oc,[`${o}-upload-wrapper ${o}-upload${o}-upload-btn`]:{padding:0},[`&${a}-drag-in`]:{borderColor:e.colorPrimaryHover},[`&${a}-disabled`]:{opacity:.25,pointerEvents:"none"},[`${a}-inner`]:{gap:n(e.paddingXXS).div(2).equal()},[`${a}-icon`]:{fontSize:e.fontSizeHeading2,lineHeight:1},[`${a}-title${a}-title`]:{margin:0,fontSize:e.fontSize,lineHeight:e.lineHeight},[`${a}-description`]:{}}}}},JR=e=>{const{componentCls:t,calc:n}=e,o=`${t}-list`,r=n(e.fontSize).mul(e.lineHeight).mul(2).add(e.paddingSM).add(e.paddingSM).equal();return{[t]:{position:"relative",width:"100%",...Oc,[o]:{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(r).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:r,height:r,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)":{[`&${o}-overflow-ping-start ${o}-prev-btn`]:{opacity:1,pointerEvents:"auto"},[`&${o}-overflow-ping-end ${o}-next-btn`]:{opacity:1,pointerEvents:"auto"}},"&:dir(rtl)":{[`&${o}-overflow-ping-end ${o}-prev-btn`]:{opacity:1,pointerEvents:"auto"},[`&${o}-overflow-ping-start ${o}-next-btn`]:{opacity:1,pointerEvents:"auto"}}}}}},av=nn("Attachments",e=>{const t=Ct(e,{});return[QR(t),JR(t),ZR(t)]},e=>{const{colorBgContainer:t}=e;return{colorBgPlaceholderHover:new xc(t).setA(.85).toRgbString()}}),Pc=" ",Ic="#8c8c8c",lv=i.defineComponent({name:"AXAttachmentsFileListCard",__name:"FileListCard",props:{prefixCls:null,item:null,onRemove:{type:Function},className:null,style:null,imageProps:null},setup(e,{expose:t}){i.toRef(e,"prefixCls");const n=["png","jpg","jpeg","gif","bmp","webp","svg"],o=[{icon:i.createVNode(Qs,null,null),color:"#22b35e",ext:["xlsx","xls"]},{icon:i.createVNode(Js,null,null),color:Ic,ext:n},{icon:i.createVNode(ec,null,null),color:Ic,ext:["md","mdx"]},{icon:i.createVNode(tc,null,null),color:"#ff4d4f",ext:["pdf"]},{icon:i.createVNode(nc,null,null),color:"#ff6e31",ext:["ppt","pptx"]},{icon:i.createVNode(rc,null,null),color:"#1677ff",ext:["doc","docx"]},{icon:i.createVNode(ic,null,null),color:"#fab714",ext:["zip","rar","7z","tar","gz"]},{icon:i.createVNode(GR,null,null),color:"#ff4d4f",ext:["mp4","avi","mov","wmv","flv","mkv"]},{icon:i.createVNode(WR,null,null),color:"#8c8c8c",ext:["mp3","wav","flac","ape","aac","ogg"]}];function r(A,j){return j.some(O=>A.toLowerCase()===`.${O}`)}function a(A){let j=A;const O=["B","KB","MB","GB","TB","PB","EB"];let T=0;for(;j>=1024&&T<O.length-1;)j/=1024,T++;return`${j.toFixed(0)} ${O[T]}`}const l=ea(),s=i.computed(()=>l.value.disabled),c=i.computed(()=>e.item.name),u=i.computed(()=>e.item.size),d=i.computed(()=>e.item.percent),f=i.computed(()=>e.item.status||"done"),p=i.computed(()=>e.item.description),{getPrefixCls:m}=We(),v=i.computed(()=>m("attachment",e.prefixCls)),g=`${v.value}-list-card`,[y,b,S]=av(v),$=i.useTemplateRef("file-list-card-container"),x=i.computed(()=>{const A=c.value||"",j=A.match(/^(.*)\.[^.]+$/);return{namePrefix:j?j[1]:A,nameSuffix:j?A.slice(j[1].length):""}}),w=i.computed(()=>r(x.value.nameSuffix,n)),P=i.computed(()=>p.value?p.value:f.value==="uploading"?`${d.value||0}%`:f.value==="error"?e.item.response||Pc:u.value?a(u.value):Pc),C=i.computed(()=>{for(const{ext:A,icon:j,color:O}of o)if(r(x.value.nameSuffix,A))return{icon:j,iconColor:O};return{icon:i.createVNode(oc,{key:"defaultIcon"},null),iconColor:Ic}}),[I,M]=Te();i.watch(()=>e.item.originFileObj,()=>{if(e.item.originFileObj){let A=!0;YR(e.item.originFileObj).then(j=>{A&&M(j)}),i.onWatcherCleanup(()=>{A=!1})}M(void 0)},{immediate:!0});const E=i.computed(()=>e.item.thumbUrl||e.item.url||I.value),R=i.computed(()=>w.value&&(e.item.originFileObj||E.value)),z=i.computed(()=>R.value?i.createVNode(i.Fragment,null,[E.value&&i.createVNode(xn,i.mergeProps(e.imageProps,{alt:"preview",src:E.value}),null),f.value!=="done"&&i.createVNode("div",{class:`${g}-img-mask`},[f.value==="uploading"&&d.value!==void 0&&i.createVNode(bh,{percent:d.value,prefixCls:g},null),f.value==="error"&&i.createVNode("div",{class:`${g}-desc`},[i.createVNode("div",{class:`${g}-ellipsis-prefix`},[P.value])])])]):i.createVNode(i.Fragment,null,[i.createVNode("div",{class:`${g}-icon`,style:{color:C.value.iconColor}},[C.value.icon]),i.createVNode("div",{class:`${g}-content`},[i.createVNode("div",{class:`${g}-name`},[i.createVNode("div",{class:`${g}-ellipsis-prefix`},[x.value.namePrefix??Pc]),i.createVNode("div",{class:`${g}-ellipsis-suffix`},[x.value.nameSuffix])]),i.createVNode("div",{class:`${g}-desc`},[i.createVNode("div",{class:`${g}-ellipsis-prefix`},[P.value])])])]));return t({nativeElement:$}),()=>y(i.createVNode("div",{class:ae(g,{[`${g}-status-${f.value}`]:f.value,[`${g}-type-preview`]:R.value,[`${g}-type-overview`]:!R.value},e.className,b.value,S),style:e.style,ref:"file-list-card-container"},[z.value,!s.value&&e.onRemove&&i.createVNode("button",{type:"button",class:`${g}-remove`,onClick:()=>{e.onRemove(e.item)}},[i.createVNode(dt,null,null)])]))}}),sv=1,e5=i.defineComponent({name:"AXAttachmentsFileList",__name:"FileList",props:{prefixCls:null,items:null,onRemove:{type:Function},overflow:null,upload:null,imageProps:null,listClassName:null,listStyle:null,itemClassName:null,itemStyle:null},setup(e){const t=i.computed(()=>`${e.prefixCls}-list`),n=i.useTemplateRef("file-list-container"),[o,r]=Te(!1),a=ea();i.watchEffect(()=>{r(!0),i.onWatcherCleanup(()=>{r(!1)})});const[l,s]=Te(!1),[c,u]=Te(!1),d=()=>{const v=n.value;v&&(e.overflow==="scrollX"?(s(Math.abs(v.scrollLeft)>=sv),u(v.scrollWidth-v.clientWidth-Math.abs(v.scrollLeft)>=sv)):e.overflow==="scrollY"&&(s(v.scrollTop!==0),u(v.scrollHeight-v.clientHeight!==v.scrollTop)))};i.watch([()=>e.overflow,()=>e.items.length],()=>{i.nextTick(()=>{d()})},{immediate:!0});const f=v=>{const g=n.value;g&&g.scrollTo({left:g.scrollLeft+v*g.clientWidth,behavior:"smooth"})},p=()=>{f(-1)},m=()=>{f(1)};return()=>i.createVNode("div",{class:ae(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:d,style:e.listStyle},[e.items.map(v=>i.createVNode(lv,{key:v.uid,prefixCls:e.prefixCls,item:v,onRemove:e.onRemove,className:ae(e.itemClassName),imageProps:e.imageProps,style:{...e.itemStyle}},null)),!a.value.disabled&&i.createVNode(ov,{upload:e.upload,children:i.createVNode(_e,{class:`${t.value}-upload-btn`,type:"dashed"},{default:()=>[i.createVNode(us,{class:`${t.value}-upload-btn-icon`},null)]})},null),e.overflow==="scrollX"&&i.createVNode(i.Fragment,null,[i.createVNode(_e,{size:"small",shape:"circle",class:`${t.value}-prev-btn`,icon:i.createVNode(ao,null,null),onClick:p},null),i.createVNode(_e,{size:"small",shape:"circle",class:`${t.value}-next-btn`,icon:i.createVNode(Gt,null,null),onClick:m},null)])])}}),t5=i.defineComponent({name:"AXAttachments",__name:"Attachments",props:i.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,imageProps:null},{items:()=>[],classNames:()=>({}),styles:()=>({})}),setup(e,{expose:t}){const n=je(e,["prefixCls","rootClassName","rootStyle","className","style","items","children","getDropContainer","placeholder","onChange","onRemove","overflow","imageProps","disabled","classNames","styles"]);i.toRef(e,"prefixCls");const o=i.useSlots(),{getPrefixCls:r,direction:a}=We(),l=r("attachment",e.prefixCls),s=en("attachments"),c=i.computed(()=>s.value.classNames),u=i.computed(()=>s.value.styles),d=i.useTemplateRef("attachments-container"),f=i.useTemplateRef("attachments-upload"),[p,m,v]=av(l),g=i.computed(()=>ae(m.value,v)),[y,b]=Te(e.items);i.watch(()=>e.items,()=>{b(e.items)});const S=C=>{var I;b(C.fileList),(I=e.onChange)==null||I.call(e,C)},$=i.computed(()=>({...n,fileList:y.value,onChange:S})),x=C=>Promise.resolve(typeof e.onRemove=="function"?e.onRemove(C):e.onRemove).then(I=>{if(I===!1)return;const M=y.value.filter(E=>E.uid!==C.uid);S({file:{...C,status:"removed"},fileList:M})}),w=(C,I,M)=>{const E=o.placeholder?o.placeholder({type:C}):typeof e.placeholder=="function"?e.placeholder(C):e.placeholder;return i.createVNode(FR,{placeholder:E,upload:$.value,prefixCls:l,className:ae(c.value.placeholder,e.classNames.placeholder),style:{...u.value.placeholder,...e.styles.placeholder,...I==null?void 0:I.style}},null)},P=i.computed(()=>y.value.length>0);return t({nativeElement:d.value,upload:C=>{var M,E;const I=(E=(M=f.value)==null?void 0:M.nativeElement)==null?void 0:E.querySelector('input[type="file"]');if(I){const R=new DataTransfer;R.items.add(C),I.files=R.files,I.dispatchEvent(new Event("change",{bubbles:!0}))}}}),()=>p(i.createVNode(jR,{value:{disabled:e.disabled}},{default:()=>[e.children?i.createVNode(i.Fragment,null,[i.createVNode(ov,{upload:$.value,rootClassName:e.rootClassName,ref:"attachments-upload",children:e.children},null),i.createVNode(nv,{getDropContainer:e.getDropContainer,prefixCls:l,className:ae(g.value,e.rootClassName),children:w("drop")},null)]):i.createVNode("div",{class:ae(l,g.value,{[`${l}-rtl`]:a.value==="rtl"},e.className,e.rootClassName),style:{...e.rootStyle,...e.style},dir:a.value||"ltr",ref:"attachments-container"},[i.createVNode(e5,{prefixCls:l,items:y.value,onRemove:x,overflow:e.overflow,upload:$.value,listClassName:ae(c.value.list,e.classNames.list),listStyle:{...u.value.list,...e.styles.list,...!P.value&&{display:"none"}},itemClassName:ae(c.value.item,e.classNames.item),itemStyle:{...u.value.item,...e.styles.item},imageProps:e.imageProps},null),w("inline",P.value?{style:{display:"none"}}:{},f.value),i.createVNode(nv,{getDropContainer:e.getDropContainer||(()=>d.value),prefixCls:l,className:g.value,children:w("drop")},null)])]}))}}),n5=Object.assign(t5,{FileCard:lv}),o5=(e,t,n)=>{const o=i.computed(()=>{const s=i.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}}),[r,a]=Te(o.value.customizeExpandedKeys),l=s=>{var u,d;if(!o.value.enableCollapse)return;const c=r.value.includes(s)?r.value.filter(f=>f!==s):[...r.value,s];(d=(u=o.value).customizeOnExpand)==null||d.call(u,c),a(c)};return[i.computed(()=>o.value.enableCollapse),r,l]};var na=(e=>(e.PENDING="pending",e.SUCCESS="success",e.ERROR="error",e))(na||{});const r5=e=>{const{componentCls:t}=e,n=`${t}-item`,o={[na.PENDING]:e.colorPrimaryText,[na.SUCCESS]:e.colorSuccessText,[na.ERROR]:e.colorErrorText},r=Object.keys(o);return r.reduce((a,l)=>{const s=o[l];return r.forEach(c=>{const u=`& ${n}-${l}-${c}`,d=l===c?{}:{backgroundColor:"none !important",backgroundImage:`linear-gradient(${s}, ${o[c]})`};a[u]={[`& ${n}-icon, & > *::before`]:{backgroundColor:`${s} !important`},"& > :last-child::before":d}}),a},{})},i5=e=>{const{calc:t,componentCls:n}=e,o=`${n}-item`,r={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"},[`&${o}-footer`]:{"&::before":{display:"block !important",bottom:0}}},[`& > ${o}`]:{[`& ${o}-header, & ${o}-content, & ${o}-footer`]:{position:"relative","&::before":{bottom:t(e.itemGap).mul(-1).equal()}},[`& ${o}-header, & ${o}-content`]:{marginInlineStart:t(e.itemSize).mul(-1).equal(),"&::before":{...r,insetInlineStart:t(e.itemSize).div(2).sub(e.lineWidth).equal()}},[`& ${o}-header::before`]:{top:e.itemSize,bottom:t(e.itemGap).mul(-2).equal()},[`& ${o}-content::before`]:{top:"100%"},[`& ${o}-footer::before`]:{...r,top:0,insetInlineStart:t(e.itemSize).div(-2).sub(e.lineWidth).equal()}}}},a5=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:`${ft(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:`${ft(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`}},[`& ${n}-footer`]:{marginTop:e.itemGap,display:"inline-flex"}}}},Tc=(e,t="middle")=>{const{componentCls:n}=e,o={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:o.itemSize,gap:o.itemGap,...a5({...e,...o}),...i5({...e,...o})}}},l5=e=>{const{componentCls:t}=e;return{[t]:{display:"flex",flexDirection:"column",...r5(e),...Tc(e),...Tc(e,"large"),...Tc(e,"small"),[`&${t}-rtl`]:{direction:"rtl"}}}},s5=nn("ThoughtChain",e=>{const t=Ct(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[l5(t),ev(t)]}),cv=Symbol("ThoughtChainNodeContext"),Nc=i.shallowRef(),c5=e=>{i.provide(cv,e),i.watch(e,()=>{Nc.value=i.unref(e),i.triggerRef(Nc)},{immediate:!0,deep:!0})},u5=()=>i.inject(cv,i.computed(()=>Nc.value||{})),d5=i.defineComponent({props:{value:St()},setup(e,{slots:t}){return c5(i.computed(()=>e.value)),()=>{var n;return(n=t.default)==null?void 0:n.call(t)}}}),f5=i.defineComponent({name:"AXThoughtChainNode",__name:"item",props:i.mergeDefaults({info:null,nextStatus:null,onClick:{type:Function}},{info:()=>({})}),setup(e){const t=je(e,["info","nextStatus","onClick"]),n=i.computed(()=>go(t,{attr:!0,aria:!0,data:!0})),o=u5(),r=i.computed(()=>o.value.prefixCls),a=i.computed(()=>o.value.enableCollapse),l=i.computed(()=>o.value.expandedKeys),s=i.computed(()=>o.value.direction),c=i.computed(()=>o.value.classNames),u=i.computed(()=>o.value.styles),d=i.useId(),f=i.computed(()=>e.info.key??d),p=i.computed(()=>e.info.icon),m=i.computed(()=>e.info.title),v=i.computed(()=>e.info.extra),g=i.computed(()=>e.info.content),y=i.computed(()=>e.info.footer),b=i.computed(()=>e.info.status),S=i.computed(()=>e.info.description),$=i.computed(()=>`${r.value}-item`),x=()=>{var C;return(C=e.onClick)==null?void 0:C.call(e,f.value)},w=i.computed(()=>{var C;return(C=l.value)==null?void 0:C.includes(f.value)}),P=i.computed(()=>a.value?w.value:!0);return()=>i.createVNode("div",i.mergeProps(n.value,{class:ae($.value,{[`${$.value}-${b.value}${e.nextStatus?`-${e.nextStatus}`:""}`]:b.value},t.class),style:t.style}),[i.createVNode("div",{class:ae(`${$.value}-header`,c.value.itemHeader),style:u.value.itemHeader,onClick:x},[i.createVNode(Cn,{icon:p.value,class:`${$.value}-icon`},null),i.createVNode("div",{class:ae(`${$.value}-header-box`,{[`${$.value}-collapsible`]:a.value&&g.value})},[i.createVNode(Oe.Text,{strong:!0,ellipsis:{tooltip:{placement:s.value==="rtl"?"topRight":"topLeft",title:m.value}},class:`${$.value}-title`},{default:()=>[a.value&&g.value&&(s.value==="rtl"?i.createVNode(ao,{class:`${$.value}-collapse-icon`,rotate:w.value?-90:0},null):i.createVNode(Gt,{class:`${$.value}-collapse-icon`,rotate:w.value?90:0},null)),m.value]}),S.value&&i.createVNode(Oe.Text,{class:`${$.value}-desc`,ellipsis:{tooltip:{placement:s.value==="rtl"?"topRight":"topLeft",title:S.value}},type:"secondary"},{default:()=>[S.value]})]),v.value&&i.createVNode("div",{class:`${$.value}-extra`},[v.value])]),i.createVNode(Cr,{prefixCls:r.value},{default:()=>[g.value&&i.withDirectives(i.createVNode("div",{class:ae(`${$.value}-content`)},[i.createVNode("div",{class:ae(`${$.value}-content-box`,c.value.itemContent),style:u.value.itemContent},[g.value])]),[[i.vShow,P.value]])]}),y.value&&i.createVNode("div",{class:ae(`${$.value}-footer`,c.value.itemFooter),style:u.value.itemFooter},[y.value])])}}),p5=i.defineComponent({name:"AXThoughtChain",__name:"ThoughtChain",props:i.mergeDefaults({items:null,collapsible:{type:Boolean},size:null,styles:null,classNames:null,prefixCls:null,rootClassName:null},{styles:()=>({}),classNames:()=>({}),size:"middle"}),setup(e){const t=je(e,["prefixCls","rootClassName","class","items","collapsible","styles","style","classNames","size"]);i.toRef(e,"class"),i.toRef(e,"prefixCls");const n=i.computed(()=>go(t,{attr:!0,aria:!0,data:!0})),{getPrefixCls:o,direction:r}=We(),a=i.computed(()=>o()),l=i.computed(()=>o("thought-chain",e.prefixCls)),s=en("thoughtChain"),[c,u,d]=o5(()=>e.collapsible,l.value,a.value),[f,p,m]=s5(l),v=i.computed(()=>ae(e.class,e.rootClassName,l.value,s.value.className,p.value,m,{[`${l.value}-rtl`]:r.value==="rtl"},`${l.value}-${e.size}`));return()=>f(i.createVNode("div",i.mergeProps(n.value,{class:v.value,style:{...typeof s.value.style=="object"?s.value.style:{},...typeof e.style=="object"?e.style:{}}}),[i.createVNode(d5,{value:{prefixCls:l.value,enableCollapse:c.value,expandedKeys:u.value,direction:r.value,classNames:{itemHeader:ae(s.value.classNames.itemHeader,e.classNames.itemHeader),itemContent:ae(s.value.classNames.itemContent,e.classNames.itemContent),itemFooter:ae(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 g;return[(g=e.items)==null?void 0:g.map((y,b)=>{var S;return i.createVNode(f5,{key:y.key||`key_${b}`,class:ae(s.value.classNames.item,e.classNames.item),style:{...s.value.styles.item,...e.styles.item},info:{...y,icon:y.icon||b+1},onClick:d,nextStatus:((S=e.items[b+1])==null?void 0:S.status)||y.status},null)})]}})]))}}),m5=`
292
+ onLoadstart onPause onPlay onPlaying onProgress onRatechange onSeeked onSeeking onStalled onSuspend onTimeupdate onVolumechange onWaiting onLoad onError`.split(/[\s\n]+/),Y8="aria-",Z8="data-";function _0(e,t){return e.indexOf(t)===0}function go(e,t=!1){let n;t===!1?n={aria:!0,data:!0,attr:!0}:t===!0?n={aria:!0}:n={...t};const o={};return Object.keys(e).forEach(r=>{(n.aria&&(r==="role"||_0(r,Y8))||n.data&&_0(r,Z8)||n.attr&&(H0.includes(r)||H0.includes(r.toLowerCase())))&&(o[r]=e[r])}),o}function Q8(e){const[t,n]=Te(e.value.length),o=i.computed(()=>e.value.slice(0,i.unref(t))),r=i.computed(()=>{const l=i.unref(o)[i.unref(o).length-1];return l?l.key:null});i.watch(e,()=>{var l;if(!(i.unref(o).length&&i.unref(o).every((s,c)=>{var u;return s.key===((u=e.value[c])==null?void 0:u.key)}))){if(i.unref(o).length===0)n(1);else for(let s=0;s<i.unref(o).length;s+=1)if(i.unref(o)[s].key!==((l=e.value[s])==null?void 0:l.key)){n(s);break}}},{immediate:!0,deep:!0});const a=Gi(l=>{l===i.unref(r)&&n(i.unref(t)+1)});return[o,a]}function J8(e,t){const n=(r,a)=>{var l;return typeof t.value=="function"?t.value(r,a):t?((l=t.value)==null?void 0:l[r.role])||{}:{}};return i.computed(()=>(e.value||[]).map((r,a)=>{const l=r.key??`preset_${a}`;return{...n(r,a),...r,key:l}}))}const eR=1,k0=i.defineComponent({name:"AXBubbleList",inheritAttrs:!1,__name:"BubbleList",props:i.mergeDefaults({prefixCls:null,rootClassName:null,items:null,autoScroll:{type:Boolean},roles:null},{autoScroll:!0}),setup(e,{expose:t}){const n=je(e,["prefixCls","rootClassName","items","autoScroll","roles"]);i.toRef(e,"roles"),i.toRef(e,"items"),i.toRef(e,"prefixCls");const o=i.useAttrs(),r=go(i.mergeProps(n,o),{attr:!0,aria:!0}),a=i.ref(e.items),l=i.ref(e.roles);i.watch(()=>e.items,()=>{a.value=e.items}),i.watch(()=>e.roles,()=>{l.value=e.roles});const s=i.ref(null),c=i.ref({}),{getPrefixCls:u}=We(),d=u("bubble",e.prefixCls),f=`${d}-list`,[p,m,v]=L0(d),[g,y]=Te(!1);i.watchEffect(()=>{y(!0),i.onWatcherCleanup(()=>{y(!1)})});const b=J8(a,l),[S,$]=Q8(b),[x,w]=Te(!0),[P,C]=Te(0),I=R=>{const z=R.target;w(z.scrollHeight-Math.abs(z.scrollTop)-z.clientHeight<=eR)};i.watch(P,()=>{e.autoScroll&&i.unref(s)&&i.unref(x)&&i.nextTick(()=>{i.unref(s).scrollTo({top:i.unref(s).scrollHeight})})}),i.watch(()=>i.unref(S).length,()=>{var R;if(e.autoScroll){const z=(R=i.unref(S)[i.unref(S).length-2])==null?void 0:R.key,A=i.unref(c)[z];if(A){const{nativeElement:j}=A,{top:O=0,bottom:T=0}=(j==null?void 0:j.getBoundingClientRect())??{},{top:D,bottom:V}=i.unref(s).getBoundingClientRect();O<V&&T>D&&(C(i.unref(P)+1),w(!0))}}});const M=Gi(()=>{e.autoScroll&&C(i.unref(P)+1)}),E=i.computed(()=>({onUpdate:M}));return t({nativeElement:s,scrollTo:({key:R,offset:z,behavior:A="smooth",block:j})=>{if(typeof z=="number")i.unref(s).scrollTo({top:z,behavior:A});else if(R!==void 0){const O=i.unref(c)[R];if(O){const T=i.unref(S).findIndex(D=>D.key===R);w(T===i.unref(S).length-1),O.nativeElement.scrollIntoView({behavior:A,block:j})}}}}),()=>p(i.createVNode(G8,{value:E.value},{default:()=>[i.createVNode("div",i.mergeProps(r,{class:ae(f,e.rootClassName,m.value,v,{[`${f}-reach-end`]:x.value}),ref:s,onScroll:I}),[i.unref(S).map(({key:R,onTypingComplete:z,...A})=>i.createVNode(j0,i.mergeProps(A,{key:R,ref:j=>{j?c.value[R]=j:delete c.value[R]},typing:g.value?A.typing:!1,onTypingComplete:()=>{z==null||z(),$(R)}}),null))])]}))}}),tR=Object.assign(j0,{List:k0}),nR=i.defineComponent({name:"AXConversationsItem",__name:"ConversationsItem",props:{info:null,prefixCls:null,direction:null,menu:null,active:{type:Boolean},onClick:{type:Function}},setup(e){const t=je(e,["prefixCls","info","class","direction","onClick","active","menu"]);i.toRef(e,"class");const n=i.computed(()=>go(t,{aria:!0,data:!0,attr:!0})),o=g=>{g.stopPropagation()},r=i.computed(()=>e.info.disabled),[a,l]=Te(!1),[s,c]=Te(!1),u=i.computed(()=>ae(e.class,`${e.prefixCls}-item`,{[`${e.prefixCls}-item-active`]:e.active&&!r.value},{[`${e.prefixCls}-item-disabled`]:r.value})),d=()=>{!r.value&&e.onClick&&e.onClick(e.info)},f=g=>{g&&c(!g)},p=i.computed(()=>{var g;return(g=e.menu)==null?void 0:g.trigger}),m=i.computed(()=>{const{trigger:g,...y}=e.menu||{};return y}),v=g=>{const y=i.createVNode(Yo,{onClick:o,class:`${e.prefixCls}-menu-icon`},null);return p.value?typeof p.value=="function"?p.value(g,{originNode:y}):p.value:y};return()=>i.createVNode(Kt,{title:e.info.label,open:a.value&&s.value,onOpenChange:c,placement:e.direction==="rtl"?"left":"right"},{default:()=>[i.createVNode("li",i.mergeProps(n.value,{class:u.value,onClick:d}),[e.info.icon&&i.createVNode("div",{class:`${e.prefixCls}-icon`},[e.info.icon]),i.createVNode(Oe.Text,{class:`${e.prefixCls}-label`,ellipsis:{onEllipsis:l}},{default:()=>[e.info.label]}),!r.value&&e.menu&&i.createVNode(Sn,{placement:e.direction==="rtl"?"bottomLeft":"bottomRight",trigger:["click"],disabled:r.value,onOpenChange:f},{default:()=>v(e.info),overlay:()=>i.createVNode(Yt,m.value,null)})])]})}}),W0=Symbol("GroupTitleContext"),vc=i.shallowRef(),oR=e=>{i.provide(W0,e),i.watch(e,()=>{vc.value=i.unref(e),i.triggerRef(vc)},{immediate:!0,deep:!0})},rR=()=>i.inject(W0,i.computed(()=>vc.value||{})),iR=i.defineComponent({props:{value:St()},setup(e,{slots:t}){return oR(i.computed(()=>e.value)),()=>{var n;return(n=t.default)==null?void 0:n.call(t)}}}),X0=i.defineComponent({name:"AXConversationsGroupTitle",__name:"GroupTitle",setup(e){const t=i.useSlots(),n=rR(),o=i.computed(()=>{var r;return(r=t.default)==null?void 0:r.call(t)});return()=>i.createVNode("div",{class:ae(`${n.value.prefixCls}-group-title`)},[o.value&&i.createVNode(Oe.Text,null,{default:()=>[o.value]})])}});function U0(e,t){const{defaultValue:n,value:o=i.ref()}=t||{};let r=typeof e=="function"?e():e;o.value!==void 0&&(r=i.unref(o)),n!==void 0&&(r=typeof n=="function"?n():n);const a=i.ref(r),l=i.ref(r);i.watchEffect(()=>{let c=o.value!==void 0?o.value:a.value;t.postState&&(c=t.postState(c)),l.value=c});function s(c){const u=l.value;a.value=c,i.toRaw(l.value)!==c&&t.onChange&&t.onChange(c,u)}return i.watch(o,()=>{a.value=o.value}),[l,s]}const yc="__ungrouped",aR=(e,t=[])=>{const n=i.computed(()=>{if(!i.toValue(e))return{enableGroup:!1,sort:void 0,title:void 0};let o={sort:void 0,title:void 0};return typeof i.toValue(e)=="object"&&(o={...o,...i.toValue(e)}),{enableGroup:!0,sort:o.sort,title:o.title}});return i.computed(()=>{if(!n.value.enableGroup)return{groupList:[{name:yc,data:i.toValue(t),title:void 0}],enableGroup:n.value.enableGroup};const o=i.toValue(t).reduce((l,s)=>{const c=s.group||yc;return l[c]||(l[c]=[]),l[c].push(s),l},{});return{groupList:(n.value.sort?Object.keys(o).sort(n.value.sort):Object.keys(o)).map(l=>({name:l===yc?void 0:l,title:n.value.title,data:o[l]})),enableGroup:n.value.enableGroup}})},lR=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 ${ft(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,overflow:"hidden",textOverflow:"ellipsis",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 ${ft(e.paddingXS)}`}}}},sR=nn("Conversations",e=>{const t=Ct(e,{});return lR(t)},()=>({})),cR=i.defineComponent({name:"AXConversations",__name:"Conversations",props:i.mergeDefaults({items:null,activeKey:null,defaultActiveKey:null,onActiveChange:{type:Function},menu:{type:Function},groupable:null,styles:null,classNames:null,prefixCls:null,rootClassName:null},{styles:()=>({}),classNames:()=>({})}),setup(e){const t=je(e,["prefixCls","rootClassName","items","activeKey","defaultActiveKey","onActiveChange","menu","styles","classNames","groupable","class","style"]);i.toRef(e,"class"),i.toRef(e,"activeKey"),i.toRef(e,"prefixCls");const n=i.ref(e.activeKey),o=i.computed(()=>go(t,{attr:!0,aria:!0,data:!0})),[r,a]=U0(e.defaultActiveKey,{value:n});i.watch(()=>e.activeKey,()=>{n.value=e.activeKey});const l=aR(()=>e.groupable,()=>e.items),{getPrefixCls:s,direction:c}=We(),u=i.computed(()=>s("conversations",e.prefixCls)),d=en("conversations"),[f,p,m]=sR(u),v=i.computed(()=>ae(u.value,d.value.className,e.class,e.rootClassName,p.value,m,{[`${u.value}-rtl`]:c.value==="rtl"})),g=y=>{a(y.key),e.onActiveChange&&e.onActiveChange(y.key)};return()=>f(i.createVNode("ul",i.mergeProps(o.value,{style:{...typeof d.value.style=="object"?d.value.style:{},...typeof e.style=="object"?e.style:{}},class:v.value}),[l.value.groupList.map((y,b)=>{const S=y.data.map(($,x)=>i.createVNode(nR,{key:$.key||`key-${x}`,info:$,prefixCls:u.value,direction:c.value,class:ae(e.classNames.item,d.value.classNames.item),style:{...d.value.styles.item,...e.styles.item},menu:typeof e.menu=="function"?e.menu($):e.menu,active:r.value===$.key,onClick:g},null));return l.value.enableGroup?i.createVNode("li",{key:y.name||`key-${b}`},[i.createVNode(iR,{value:{prefixCls:u.value}},{default:()=>{var $;return[(($=y.title)==null?void 0:$.call(y,y.name,{components:{GroupTitle:X0}}))||i.createVNode(X0,{key:y.name},{default:()=>[y.name]})]}}),i.createVNode("ul",{class:`${u.value}-list`},[S])]):S})]))}}),uR=e=>{const{componentCls:t,calc:n}=e,o=n(e.fontSizeHeading3).mul(e.lineHeightHeading3).equal(),r=n(e.fontSize).mul(e.lineHeight).equal();return{[t]:{gap:e.padding,[`${t}-icon`]:{height:n(o).add(r).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"}}}}},dR=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}}}}},fR=nn("Welcome",e=>{const t=Ct(e,{});return[uR(t),dR(t)]},()=>({}));function pR(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!i.isVNode(e)}const mR=i.defineComponent({name:"AXWelcome",__name:"Welcome",props:i.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){i.toRef(e,"prefixCls");const t=i.useSlots(),{direction:n,getPrefixCls:o}=We(),r=o("welcome",e.prefixCls),a=en("welcome"),[l,s,c]=fR(r),u=i.computed(()=>{const m=t.icon?t.icon():e.icon;if(!m)return null;let v=m;return typeof m=="string"&&m.startsWith("http")&&(v=i.createVNode("img",{src:m,alt:"icon"},null)),i.createVNode("div",{class:ae(`${r}-icon`,a.value.classNames.icon,e.classNames.icon),style:e.styles.icon},[v])}),d=i.computed(()=>{const m=t.title?t.title():e.title;return m?i.createVNode(Oe.Title,{level:4,class:ae(`${r}-title`,a.value.classNames.title,e.classNames.title),style:e.styles.title},pR(m)?m:{default:()=>[m]}):null}),f=i.computed(()=>t.description?t.description():e.description),p=i.computed(()=>{const m=t.extra?t.extra():e.extra;return m?i.createVNode("div",{class:ae(`${r}-extra`,a.value.classNames.extra,e.classNames.extra),style:e.styles.extra},[m]):null});return()=>l(i.createVNode(pr,{class:ae(r,a.value.className,e.className,e.rootClassName,s.value,c,`${r}-${e.variant}`,{[`${r}-rtl`]:n.value==="rtl"}),style:e.style},{default:()=>[u.value,i.createVNode(pr,{vertical:!0,class:`${r}-content-wrapper`},{default:()=>[t.extra||e.extra?i.createVNode(pr,{align:"flex-start",class:`${r}-title-wrapper`},{default:()=>[d.value,p.value]}):d.value,f.value&&i.createVNode(Oe.Text,{class:ae(`${r}-description`,a.value.classNames.description,e.classNames.description),style:e.styles.description},{default:()=>[f.value]})]})]}))}}),gR=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:`${ft(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}}}}}},hR=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}}}}},vR=nn("Prompts",e=>{const t=Ct(e,{});return[gR(t),hR(t)]},()=>({})),K0=i.defineComponent({name:"AXPrompts",__name:"Prompts",props:i.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=je(e,["prefixCls","title","class","items","onItemClick","vertical","wrap","rootClassName","styles","classNames","style"]);i.toRef(e,"class"),i.toRef(e,"prefixCls");const n=i.useSlots(),{getPrefixCls:o,direction:r}=We(),a=o("prompts",e.prefixCls),l=en("prompts"),[s,c,u]=vR(a),d=i.computed(()=>ae(a,l.value.className,e.class,e.rootClassName,c.value,u,{[`${a}-rtl`]:r.value==="rtl"})),f=i.computed(()=>ae(`${a}-list`,l.value.classNames.list,e.classNames.list,{[`${a}-list-wrap`]:e.wrap},{[`${a}-list-vertical`]:e.vertical})),p=i.computed(()=>n.title?n.title():e.title);return()=>{var m;return s(i.createVNode("div",i.mergeProps(t,{class:d.value,style:{...typeof e.style=="object"?e.style:{},...typeof l.value.style=="object"?l.value.style:{}}}),[p.value&&i.createVNode(Oe.Title,{level:5,class:ae(`${a}-title`,l.value.classNames.title,e.classNames.title),style:{...l.value.styles.title,...e.styles.title}},{default:()=>[p.value]}),i.createVNode("div",{class:f.value,style:{...l.value.styles.list,...e.styles.list}},[(m=e.items)==null?void 0:m.map((v,g)=>{const y=v.children&&v.children.length>0;return i.createVNode("div",{key:v.key||`key_${g}`,style:{...l.value.styles.item,...e.styles.item},class:ae(`${a}-item`,l.value.classNames.item,e.classNames.item,{[`${a}-item-disabled`]:v.disabled,[`${a}-item-has-nest`]:y}),onClick:()=>{!y&&e.onItemClick&&e.onItemClick({data:v})}},[v.icon&&i.createVNode("div",{class:`${a}-icon`},[v.icon]),i.createVNode("div",{class:ae(`${a}-content`,l.value.classNames.itemContent,e.classNames.itemContent),style:{...l.value.styles.itemContent,...e.styles.itemContent}},[v.label&&i.createVNode("h6",{class:`${a}-label`},[v.label]),v.description&&i.createVNode("p",{class:`${a}-desc`},[v.description]),y&&i.createVNode(K0,{class:`${a}-nested`,items:v.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)])])})])]))}}}),yR=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"}}}}},bR=nn("Suggestion",e=>{const t=Ct(e,{});return yR(t)},()=>({}));function CR(e,t,n,o,r){const[a,l]=Te([]),s=(m,v=a.value)=>{let g=i.toValue(e);for(let y=0;y<m-1;y+=1){const b=v[y],S=g.find($=>$.value===b);if(!S)break;g=S.children||[]}return g},c=m=>m.map((v,g)=>{const b=s(g+1,m).find(S=>S.value===v);return b==null?void 0:b.value}),u=m=>{const v=a.value.length||1,g=s(v),y=g.findIndex($=>$.value===a.value[v-1]),b=g.length,S=g[(y+m+b)%b];l([...a.value.slice(0,v-1),S.value])},d=()=>{a.value.length>1&&l(a.value.slice(0,a.value.length-1))},f=()=>{const m=s(a.value.length+1);m.length&&l([...a.value,m[0].value])},p=Gi(m=>{if(i.toValue(t))switch(console.log("e.key",m),m.key){case"ArrowDown":u(1),m.preventDefault();break;case"ArrowUp":u(-1),m.preventDefault();break;case"ArrowRight":i.toValue(n)?d():f(),m.preventDefault();break;case"ArrowLeft":i.toValue(n)?f():d(),m.preventDefault();break;case"Enter":s(a.value.length+1).length||o(c(a.value)),m.preventDefault();break;case"Escape":r(),m.preventDefault();break}});return i.watch(()=>i.toValue(t),()=>{i.toValue(t)&&l([i.toValue(e)[0].value])},{immediate:!0}),[a,p]}const SR=i.defineComponent({name:"AXSuggestion",__name:"Suggestion",props:i.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){i.toRef(e,"prefixCls");const t=i.useSlots(),{direction:n,getPrefixCls:o}=We(),r=i.computed(()=>o("suggestion",e.prefixCls));`${r.value}`;const a=i.computed(()=>n.value==="rtl"),l=en("suggestion"),[s,c,u]=bR(r),[d,f]=Te(e.open),[p,m]=Te(),v=P=>{var C;f(P),(C=e.onOpenChange)==null||C.call(e,P)},g=P=>{P===!1?v(!1):(m(P),v(!0))},y=()=>{v(!1)},b=i.computed(()=>typeof e.items=="function"?e.items(p.value):e.items),S=P=>{e.onSelect&&e.onSelect(P[P.length-1]),v(!1)},[$,x]=CR(b,d,a,S,y),w=i.computed(()=>{var P;return t.default?t.default({onTrigger:g,onKeyDown:x}):(P=e.children)==null?void 0:P.call(e,{onTrigger:g,onKeyDown:x})});return()=>s(i.createVNode(t6,{options:b.value,open:d.value,value:$.value,placement:a.value?"topRight":"topLeft",onDropdownVisibleChange:P=>{P||y()},class:ae(e.rootClassName,r.value,c,u,{[`${r.value}-block`]:e.block}),onChange:S,dropdownMatchSelectWidth:e.block},{default:()=>i.createVNode("div",{class:ae(r.value,l.value.className,e.rootClassName,e.className,`${r.value}-wrapper`,c.value,u),style:{...l.value.style,...e.style}},[w.value])}))}}),G0=Symbol("SenderHeaderContext"),bc=i.shallowRef(),wR=e=>{i.provide(G0,e),i.watch(e,()=>{bc.value=i.unref(e),i.triggerRef(bc)},{immediate:!0,deep:!0})},$R=()=>i.inject(G0,i.computed(()=>bc.value||{})),xR=i.defineComponent({props:{value:St()},setup(e,{slots:t}){return wR(i.computed(()=>e.value)),()=>{var n;return(n=t.default)==null?void 0:n.call(t)}}}),q0=Symbol("ActionButtonContext"),Cc=i.shallowRef(),OR=e=>{i.provide(q0,e),i.watch(e,()=>{Cc.value=i.unref(e),i.triggerRef(Cc)},{immediate:!0,deep:!0})},Sc=()=>i.inject(q0,i.computed(()=>Cc.value||{})),PR=i.defineComponent({props:{value:St()},setup(e,{slots:t}){return OR(i.computed(()=>e.value)),()=>{var n;return(n=t.default)==null?void 0:n.call(t)}}}),qi=i.defineComponent({name:"AXSenderActionButton",__name:"index",props:i.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=je(e,["action","type","disabled","onClick"]);i.toRef(e,"disabled");const n=i.useSlots(),o=Sc(),r=i.computed(()=>{var c;const l=o.value.disabled,s=(c=o.value)==null?void 0:c[`${e.action}Disabled`];return e.disabled??l??s}),a=i.computed(()=>o.value.prefixCls);return()=>i.createVNode(_e,i.mergeProps({type:e.type},t,{onClick:l=>{var s,c;r.value||((c=(s=o.value)==null?void 0:s[e.action])==null||c.call(s),e.onClick&&!Array.isArray(e.onClick)&&e.onClick(l))},class:ae(a.value,{[`${a.value}-disabled`]:r.value})}),{icon:()=>n.default()})}}),IR=i.defineComponent({name:"AXSenderClearButton",__name:"ClearButton",props:i.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=je(e,["disabled"]);return()=>i.createVNode(qi,i.mergeProps({disabled:e.disabled},t,{action:"onClear"}),{default:()=>[i.createVNode(Zs,null,null)]})}}),TR=i.defineComponent({name:"AXSenderStopLoading",__name:"StopLoading",props:{className:null},setup(e){const t=e;return()=>i.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},[i.createVNode("title",null,[i.createTextVNode("Stop Loading")]),i.createVNode("rect",{fill:"currentColor",height:"250",rx:"24",ry:"24",width:"250",x:"375",y:"375"},null),i.createVNode("circle",{cx:"500",cy:"500",fill:"none",r:"450",stroke:"currentColor","stroke-width":"100",opacity:"0.45"},null),i.createVNode("circle",{cx:"500",cy:"500",fill:"none",r:"450",stroke:"currentColor","stroke-width":"100","stroke-dasharray":"600 9999999"},[i.createVNode("animateTransform",{attributeName:"transform",dur:"1s",from:"0 500 500",repeatCount:"indefinite",to:"360 500 500",type:"rotate"},null)])])}}),Y0=i.defineComponent({name:"AXSenderLoadingButton",__name:"LoadingButton",props:i.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=je(e,["type","shape","icon","disabled"]),n=Sc(),{token:o}=mr.useToken();return()=>i.createVNode(qi,i.mergeProps({type:e.type,disabled:e.disabled,shape:e.shape},t,{style:{backgroundColor:"transparent",color:o.value.colorPrimary},class:ae(`${n.value.prefixCls}-loading-button`),action:"onCancel"}),{default:()=>[i.createVNode(TR,{className:`${n.value.prefixCls}-loading-icon`},null)]})}}),Z0=i.defineComponent({name:"AXSenderLoadingButton",__name:"SendButton",props:i.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=je(e,["type","shape","disabled"]);return()=>i.createVNode(qi,i.mergeProps({type:e.type,shape:e.shape,disabled:e.disabled},t,{action:"onSend"}),{default:()=>[i.createVNode(Gs,null,null)]})}}),yr=1e3,br=4,Yi=140,Zi=250,Q0=500,Qi=.8,NR=i.defineComponent({name:"AXSenderRecordingIcon",__name:"RecordingIcon",props:{className:null},setup(e){const t=Yi/2;return()=>i.createVNode("svg",{color:"currentColor",viewBox:`0 0 ${yr} ${yr}`,xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",class:e.className},[i.createVNode("title",null,[i.createTextVNode("Speech Recording")]),Array.from({length:br}).map((n,o)=>{const r=(yr-Yi*br)/(br-1),a=o*(r+Yi),l=yr/2-Zi/2,s=yr/2-Q0/2;return i.createVNode("rect",{fill:"currentColor",rx:t,ry:t,height:Zi,width:Yi,x:a,y:l,key:o},[i.createVNode("animate",{attributeName:"height",values:`${Zi}; ${Q0}; ${Zi}`,keyTimes:"0; 0.5; 1",dur:`${Qi}s`,begin:`${Qi/br*o}s`,repeatCount:"indefinite"},null),i.createVNode("animate",{attributeName:"y",values:`${l}; ${s}; ${l}`,keyTimes:"0; 0.5; 1",dur:`${Qi}s`,begin:`${Qi/br*o}s`,repeatCount:"indefinite"},null)])})])}}),J0=i.defineComponent({name:"AXSenderSpeechButton",__name:"index",props:i.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=je(e,["type","disabled"]),n=Sc(),{token:o}=mr.useToken(),r=i.computed(()=>n.value.speechRecording),a=i.computed(()=>n.value.prefixCls),l=i.computed(()=>{let s;return r.value?s=i.createVNode(NR,{className:`${a.value}-recording-icon`},null):n.value.onSpeechDisabled?s=i.createVNode(qs,null,null):s=i.createVNode(Ys,null,null),s});return()=>i.createVNode(qi,i.mergeProps({type:e.type,disabled:e.disabled},t,{style:{display:"flex",justifyContent:"center",alignItems:"center",color:o.value.colorPrimary},action:"onSpeech"}),{default:()=>[l.value]})}}),Cr=i.defineComponent({name:"AXTransitionCollapse",__name:"TransitionCollapse",props:{prefixCls:{default:"ax"}},setup(e){const t=e,n=i.useSlots(),o=i.computed(()=>t.prefixCls+"-transition-collapse"),r={beforeEnter(a){a.dataset||(a.dataset={}),a.dataset.oldPaddingTop=a.style.paddingTop,a.dataset.oldPaddingBottom=a.style.paddingBottom,a.style.maxHeight="0",a.style.paddingTop="0",a.style.paddingBottom="0"},enter(a){a.dataset.oldOverflow=a.style.overflow,a.scrollHeight!==0?(a.style.maxHeight=`${a.scrollHeight}px`,a.style.paddingTop=a.dataset.oldPaddingTop,a.style.paddingBottom=a.dataset.oldPaddingBottom):(a.style.maxHeight=`${a.dataset.oldMaxHeight||"999"}px`,a.style.paddingTop=a.dataset.oldPaddingTop,a.style.paddingBottom=a.dataset.oldPaddingBottom),a.style.overflow="hidden"},afterEnter(a){a.style.maxHeight="",a.style.overflow=a.dataset.oldOverflow},beforeLeave(a){a.dataset||(a.dataset={}),a.dataset.oldMaxHeight=a.scrollHeight,a.dataset.oldPaddingTop=a.style.paddingTop,a.dataset.oldPaddingBottom=a.style.paddingBottom,a.dataset.oldOverflow=a.style.overflow,a.style.overflow="hidden",a.style.maxHeight=`${a.scrollHeight}px`},leave(a){a.scrollHeight!==0&&(a.style.maxHeight="0",a.style.paddingTop="0",a.style.paddingBottom="0")},afterLeave(a){a.style.maxHeight="",a.style.overflow=a.dataset.oldOverflow,a.style.paddingTop=a.dataset.oldPaddingTop,a.style.paddingBottom=a.dataset.oldPaddingBottom}};return()=>i.createVNode(i.Transition,{name:o.value,onBeforeEnter:r.beforeEnter,onEnter:r.enter,onAfterEnter:r.afterEnter,onBeforeLeave:r.beforeLeave,onLeave:r.leave,onAfterLeave:r.afterLeave},{default:()=>{var a;return[(a=n.default)==null?void 0:a.call(n)]}})}}),ev=e=>{const{componentCls:t}=e,n=`${t}-transition-collapse`;return{[t]:{[n]:{"&-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(",")}}}}};Cr.install=function(e){return e.component(Cr.name,Cr),e};const ER=e=>{const{componentCls:t,calc:n}=e,o=`${t}-header`;return{[t]:{[o]:{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",borderRadius:{_skip_check_:!0,value:n(e.borderRadius).mul(2).equal()},borderBottomRightRadius:0,borderBottomLeftRadius:0,[`${o}-title`]:{flex:"auto"}},"&-content":{padding:e.padding},"&-motion":{transition:["height","border"].map(r=>`${r} ${e.motionDurationSlow}`).join(","),overflow:"hidden","&-enter-start, &-leave-active":{borderBottomColor:"transparent"},"&-hidden":{display:"none"}}}}}},RR=e=>{const{componentCls:t,padding:n,paddingSM:o,paddingXS:r,paddingXXS:a,lineWidth:l,lineWidthBold:s,calc:c}=e;return{[t]:{position:"relative",width:"100%",boxSizing:"border-box",boxShadow:`${e.boxShadowTertiary}`,transition:`background ${e.motionDurationSlow}`,borderRadius:{_skip_check_:!0,value:c(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:l},"&:focus-within":{boxShadow:`${e.boxShadowSecondary}`,borderColor:e.colorPrimary,"&:after":{borderWidth:s}},"&-disabled":{background:e.colorBgContainerDisabled},[`&${t}-rtl`]:{direction:"rtl"},[`${t}-content`]:{display:"flex",gap:r,width:"100%",paddingBlock:o,paddingInlineStart:n,paddingInlineEnd:o,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"}},[`${t}-footer`]:{paddingInlineStart:n,paddingInlineEnd:o,paddingBlockEnd:o,paddingBlockStart:a,boxSizing:"border-box"}}}},MR=nn("Sender",e=>{const{paddingXS:t,calc:n}=e,o=Ct(e,{SenderContentMaxWidth:`calc(100% - ${ft(n(t).add(32).equal())})`});return[RR(o),ER(o),ev(o)]},()=>({}));let Ji;!Ji&&typeof window<"u"&&(Ji=window.SpeechRecognition||window.webkitSpeechRecognition);function AR(e,t){const n=e,o=i.computed(()=>{const g=i.toValue(t);return typeof g=="object"?{controlledRecording:g.recording,onControlledRecordingChange:g.onRecordingChange,speechInControlled:typeof g.recording=="boolean"}:{controlledRecording:void 0,onControlledRecordingChange:void 0,speechInControlled:!1}}),r=i.computed(()=>o.value.controlledRecording),a=o.value.onControlledRecordingChange,l=o.value.speechInControlled,s=i.ref(null);i.watchEffect(()=>{if(typeof navigator<"u"&&"permissions"in navigator){let g=null;navigator.permissions.query({name:"microphone"}).then(y=>{s.value=y.state,y.onchange=function(){s.value=this.state},g=y}),i.onWatcherCleanup(()=>{g&&(g.onchange=null)})}});const c=i.computed(()=>Ji&&s.value!=="denied"),u=i.ref(null),[d,f]=U0(!1,{value:r}),p=i.ref(!1),m=()=>{if(c.value&&!u.value){const g=new Ji;g.onstart=()=>{f(!0)},g.onend=()=>{f(!1)},g.onresult=y=>{var b,S,$;if(!p.value){const x=($=(S=(b=y.results)==null?void 0:b[0])==null?void 0:S[0])==null?void 0:$.transcript;n(x)}p.value=!1},u.value=g}};return{speechPermission:c,triggerSpeech:g=>{g&&!d.value||(p.value=g,l?a==null||a(!d.value):(m(),u.value&&(d.value?(u.value.stop(),a==null||a(!1)):(u.value.start(),a==null||a(!0)))))},recording:d}}function VR(e,t){for(var n=e,o=0;o<t.length;o+=1){if(n==null)return;n=n[t[o]]}return n}const DR=i.defineComponent({name:"AXSender",__name:"Sender",props:i.mergeDefaults({onKeyPress:{type:Function},onFocus:null,onBlur:null,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,Boolean]},allowSpeech:null,prefix:null,footer:{type:Function},header:null,autoSize:null},{styles:()=>({}),classNames:()=>({}),submitType:"enter",actions:void 0,disabled:void 0,autoSize:()=>({maxRows:8})}),emits:["update:value"],setup(e,{expose:t,emit:n}){const o=je(e,["prefixCls","styles","classNames","className","rootClassName","style","defaultValue","value","placeholder","readOnly","submitType","onSubmit","loading","components","onCancel","onChange","actions","onKeyPress","onKeyDown","disabled","allowSpeech","prefix","footer","header","onPaste","onPasteFile","autoSize"]);i.toRef(e,"prefixCls");function r(k,Y,X){return VR(k,Y)||X}const a={SendButton:Z0,ClearButton:IR,LoadingButton:Y0,SpeechButton:J0},l=n,s=i.useSlots(),{direction:c,getPrefixCls:u}=We(),d=i.computed(()=>u("sender",e.prefixCls)),f=i.ref(null),p=i.ref(null),m=en("sender"),v=i.computed(()=>`${d.value}-input`),[g,y,b]=MR(d.value),S=i.computed(()=>ae(d.value,m.value.className,e.className,e.rootClassName,y.value,b,{[`${d.value}-rtl`]:c.value==="rtl",[`${d.value}-disabled`]:e.disabled})),$=i.computed(()=>`${d.value}-actions-btn`),x=i.computed(()=>`${d.value}-actions-list`),w=i.ref(e.value??e.defaultValue??""),P=k=>{w.value=k};i.watch(()=>e.value,()=>{P(e.value)});const C=(k,Y)=>{P(k),l("update:value",k),e.onChange&&e.onChange(k,Y)},{speechPermission:I,triggerSpeech:M,recording:E}=AR(k=>{C(`${w.value} ${k}`)},()=>e.allowSpeech),R=r(e.components,["input"],Ae.TextArea),z=i.computed(()=>go(o,{attr:!0,aria:!0,data:!0})),A=i.computed(()=>({...z.value,ref:p})),j=()=>{w.value&&e.onSubmit&&!e.loading&&e.onSubmit(w.value)},O=()=>{C("")},T=i.ref(!1),D=()=>{T.value=!0},V=()=>{T.value=!1},N=k=>{const Y=k.key==="Enter"&&!T.value;switch(e.submitType){case"enter":Y&&!k.shiftKey&&(k.preventDefault(),j());break;case"shiftEnter":Y&&k.shiftKey&&(k.preventDefault(),j());break}e.onKeyPress&&e.onKeyPress(k)},F=k=>{var X,L;const Y=(X=k.clipboardData)==null?void 0:X.files;Y!=null&&Y.length&&e.onPasteFile&&(e.onPasteFile(Y[0],Y),k.preventDefault()),(L=e.onPaste)==null||L.call(e,k)},_=k=>{var Y,X;k.target!==((Y=f.value)==null?void 0:Y.querySelector(`.${v.value}`))&&k.preventDefault(),(X=p.value)==null||X.focus()},G=i.computed(()=>{let k=i.createVNode(pr,{class:`${x.value}-presets`},{default:()=>[e.allowSpeech&&i.createVNode(J0,null,null),e.loading?i.createVNode(Y0,null,null):i.createVNode(Z0,null,null)]});const Y={components:a};return s.actions?k=s.actions({ori:k,info:Y}):typeof e.actions=="function"?k=e.actions(k,Y):(e.actions||e.actions===!1)&&(k=e.actions),k}),Z=i.computed(()=>({prefixCls:$.value,onSend:j,onSendDisabled:!w.value,onClear:O,onClearDisabled:!w.value,onCancel:e.onCancel,onCancelDisabled:!e.loading,onSpeech:()=>M(!1),onSpeechDisabled:!I.value,speechRecording:E.value,disabled:e.disabled})),te=i.computed(()=>{let k=null;const Y={components:a};return s.footer?k=s.footer({info:Y}):typeof e.footer=="function"?k=e.footer({components:a}):e.footer&&(k=e.footer),k}),oe=i.computed(()=>s.header?s.header():e.header),J=i.computed(()=>s.prefix?s.prefix():e.prefix);return t({nativeElement:f.value,focus:k=>{var Y;return(Y=p.value)==null?void 0:Y.focus(k)},blur:()=>{var k;return(k=p.value)==null?void 0:k.blur()}}),()=>g(i.createVNode("div",{ref:f,class:S.value,style:{...m.value.style,...e.style}},[oe.value&&i.createVNode(xR,{value:{prefixCls:d.value}},{default:()=>[oe.value]}),i.createVNode(PR,{value:Z.value},{default:()=>[i.createVNode("div",{class:`${d.value}-content`,onMousedown:_},[J.value&&i.createVNode("div",{class:ae(`${d.value}-prefix`,m.value.classNames.prefix,e.classNames.prefix),style:{...m.value.styles.prefix,...e.styles.prefix}},[J.value]),i.createVNode(R,i.mergeProps(A.value,{disabled:e.disabled,style:{...m.value.styles.input,...e.styles.input},class:ae(v.value,m.value.classNames.input,e.classNames.input),autoSize:e.autoSize,value:w.value,onChange:k=>{C(k.target.value,k),M(!0)},onPressEnter:N,onCompositionstart:D,onCompositionend:V,onKeydown:e.onKeyDown,placeholder:e.placeholder,onPaste:F,bordered:!1,readOnly:e.readOnly}),null),G.value&&i.createVNode("div",{class:ae(x.value,m.value.classNames.actions,e.classNames.actions),style:{...m.value.styles.actions,...e.styles.actions}},[G.value])]),te.value&&i.createVNode("div",{class:ae(`${d.value}-footer`,m.value.classNames.footer,e.classNames.footer),style:{...m.value.styles.footer,...e.styles.footer}},[te.value])]})]))}}),BR=i.defineComponent({name:"AXSenderHeader",inheritAttrs:!1,__name:"SenderHeader",props:i.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){i.toRef(e,"classNames");const t=i.useSlots(),n=$R(),o=i.computed(()=>`${n.value.prefixCls}-header`),r=i.useAttrs();return()=>i.createVNode(Cr,{prefixCls:n.value.prefixCls},{default:()=>{var a;return[e.open||e.forceRender?i.withDirectives(i.createVNode("div",i.mergeProps(r,{class:ae(o.value,e.className),style:{...e.style}}),[(e.closable!==!1||e.title)&&i.createVNode("div",{class:ae(`${o.value}-header`,e.classNames.header),style:{...e.styles.header}},[i.createVNode("div",{class:`${o.value}-title`},[e.title]),e.closable!==!1&&i.createVNode("div",{class:`${o.value}-close`},[i.createVNode(_e,{type:"text",icon:i.createVNode(Rt,null,null),size:"small",onClick:()=>{var l;(l=e.onOpenChange)==null||l.call(e,!e.open)}},null)])]),t.default&&i.createVNode("div",{class:ae(`${o.value}-content`,e.classNames.content),style:{...e.styles.content}},[(a=t.default)==null?void 0:a.call(t)])]),[[i.vShow,e.open]]):null]}})}}),LR=Object.assign(DR,{Header:BR}),tv=Symbol("AttachmentContext"),wc=i.shallowRef(),zR=e=>{i.provide(tv,e),i.watch(e,()=>{wc.value=i.unref(e),i.triggerRef(wc)},{immediate:!0,deep:!0})},ea=()=>i.inject(tv,i.computed(()=>wc.value||{})),jR=i.defineComponent({inheritAttrs:!1,props:{value:St()},setup(e,{slots:t}){return zR(i.computed(()=>e.value)),()=>{var n;return(n=t.default)==null?void 0:n.call(t)}}}),FR=i.defineComponent({name:"AXAttachmentsPlaceholderUploader",__name:"PlaceholderUploader",props:i.mergeDefaults({prefixCls:null,placeholder:null,upload:null,className:null,style:null},{placeholder:()=>({})}),setup(e,{expose:t}){const n=`${e.prefixCls}-placeholder`,o=i.computed(()=>e.placeholder||{}),r=i.useTemplateRef("upload-dragger"),a=ea(),[l,s]=Te(!1),c=()=>{s(!0)},u=m=>{m.currentTarget.contains(m.relatedTarget)||s(!1)},d=()=>{s(!1)};t({nativeElement:r});const f=m=>Array.isArray(m)&&m.every(i.isVNode),p=i.computed(()=>i.isVNode(e.placeholder)||f(e.placeholder)?e.placeholder:i.createVNode(pr,{align:"center",justify:"center",vertical:!0,class:`${n}-inner`},{default:()=>[i.createVNode(Oe.Text,{class:`${n}-icon`},{default:()=>[o.value.icon]}),i.createVNode(Oe.Title,{class:`${n}-title`,level:5},{default:()=>[o.value.title]}),i.createVNode(Oe.Text,{class:`${n}-description`,type:"secondary"},{default:()=>[o.value.description]})]}));return()=>i.createVNode("div",{class:ae(n,{[`${n}-drag-in`]:l.value,[`${n}-disabled`]:a.value.disabled},e.className),onDragenter:c,onDragleave:u,onDrop:d,"aria-hidden":a.value.disabled,style:e.style},[i.createVNode(Fh.Dragger,i.mergeProps({showUploadList:!1},e.upload,{ref:"upload-dragger",style:{padding:0,border:0,background:"transparent"}}),{default:()=>[p.value]})])}}),nv=i.defineComponent({name:"AXAttachmentsDropArea",__name:"DropArea",props:{prefixCls:null,className:null,getDropContainer:{type:Function},children:null},setup(e){const t=ea(),[n,o]=Te(),[r,a]=Te(null);i.onMounted(()=>{var c;o((c=e.getDropContainer)==null?void 0:c.call(e))}),i.watch(()=>i.toValue(e.getDropContainer),()=>{var u;const c=(u=e.getDropContainer)==null?void 0:u.call(e);n.value!==c&&o(c)}),i.watch(()=>!!n.value,()=>{if(n.value){const c=()=>{a(!0)},u=p=>{p.preventDefault()},d=p=>{p.relatedTarget||a(!1)},f=p=>{a(!1),p.preventDefault()};document.addEventListener("dragenter",c),document.addEventListener("dragover",u),document.addEventListener("dragleave",d),document.addEventListener("drop",f),i.onWatcherCleanup(()=>{document.removeEventListener("dragenter",c),document.removeEventListener("dragover",u),document.removeEventListener("dragleave",d),document.removeEventListener("drop",f)})}});const l=i.computed(()=>e.getDropContainer&&n.value&&!t.value.disabled),s=`${e.prefixCls}-drop-area`;return()=>l.value?i.createVNode(i.Teleport,{to:n.value},{default:()=>[i.createVNode("div",{class:ae(s,e.className,{[`${s}-on-body`]:n.value.tagName==="BODY"}),style:{display:r.value?"block":"none"}},[e.children])]}):null}}),ov=i.defineComponent({name:"AXAttachmentsSilentUploader",__name:"SilentUploader",props:{children:null,upload:null,rootClassName:null},setup(e,{expose:t}){const n=i.useTemplateRef("upload");return t({nativeElement:n}),()=>i.createVNode(Fh,i.mergeProps(e.upload,{showUploadList:!1,ref:"upload"}),{default:()=>[e.children]})}}),rv=(e,t)=>{const n=e.__vccOpts||e;for(const[o,r]of t)n[o]=r;return n},HR={},_R={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 kR(e,t){return i.openBlock(),i.createElementBlock("svg",_R,t[0]||(t[0]=[i.createElementVNode("title",null,"audio",-1),i.createElementVNode("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},[i.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 WR=rv(HR,[["render",kR]]),XR={},UR={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 KR(e,t){return i.openBlock(),i.createElementBlock("svg",UR,t[0]||(t[0]=[i.createElementVNode("title",null,"video",-1),i.createElementVNode("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},[i.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 GR=rv(XR,[["render",KR]]),qR=e=>e.indexOf("image/")===0,ta=200;function YR(e){return new Promise(t=>{if(!e||!e.type||!qR(e.type)){t("");return}const n=new Image;if(n.onload=()=>{const{width:o,height:r}=n,a=o/r,l=a>1?ta:ta*a,s=a>1?ta/a:ta,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 d=c.toDataURL();document.body.removeChild(c),window.URL.revokeObjectURL(n.src),t(d)},n.crossOrigin="anonymous",e.type.startsWith("image/svg+xml")){const o=new FileReader;o.onload=()=>{o.result&&typeof o.result=="string"&&(n.src=o.result)},o.readAsDataURL(e)}else if(e.type.startsWith("image/gif")){const o=new FileReader;o.onload=()=>{o.result&&t(o.result)},o.readAsDataURL(e)}else n.src=window.URL.createObjectURL(e)})}const Ve=Math.round;function $c(e,t){const n=e.replace(/^[^(]*\((.*)/,"$1").replace(/\).*/,"").match(/\d*\.?\d+%?/g)||[],o=n.map(r=>parseFloat(r));for(let r=0;r<3;r+=1)o[r]=t(o[r]||0,n[r]||"",r);return n[3]?o[3]=n[3].includes("%")?o[3]/100:o[3]:o[3]=1,o}const iv=(e,t,n)=>n===0?e:e/100;function Sr(e,t){const n=t||255;return e>n?n:e<0?0:e}class xc{constructor(t){Ue(this,"isValid",!0),Ue(this,"r",0),Ue(this,"g",0),Ue(this,"b",0),Ue(this,"a",1),Ue(this,"_h",void 0),Ue(this,"_s",void 0),Ue(this,"_l",void 0),Ue(this,"_v",void 0),Ue(this,"_max",void 0),Ue(this,"_min",void 0),Ue(this,"_brightness",void 0);function n(o){return o[0]in t&&o[1]in t&&o[2]in t}if(t)if(typeof t=="string"){let r=function(a){return o.startsWith(a)};const o=t.trim();/^#?[A-F\d]{3,8}$/i.test(o)?this.fromHexString(o):r("rgb")?this.fromRgbString(o):r("hsl")?this.fromHslString(o):(r("hsv")||r("hsb"))&&this.fromHsvString(o)}else if(t instanceof xc)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=Sr(t.r),this.g=Sr(t.g),this.b=Sr(t.b),this.a=typeof t.a=="number"?Sr(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(a){const l=a/255;return l<=.03928?l/12.92:Math.pow((l+.055)/1.055,2.4)}const n=t(this.r),o=t(this.g),r=t(this.b);return .2126*n+.7152*o+.0722*r}getHue(){if(typeof this._h>"u"){const t=this.getMax()-this.getMin();t===0?this._h=0:this._h=Ve(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(),o=this.getSaturation();let r=this.getLightness()-t/100;return r<0&&(r=0),this._c({h:n,s:o,l:r,a:this.a})}lighten(t=10){const n=this.getHue(),o=this.getSaturation();let r=this.getLightness()+t/100;return r>1&&(r=1),this._c({h:n,s:o,l:r,a:this.a})}mix(t,n=50){const o=this._c(t),r=n/100,a=s=>(o[s]-this[s])*r+this[s],l={r:Ve(a("r")),g:Ve(a("g")),b:Ve(a("b")),a:Ve(a("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),o=this.a+n.a*(1-this.a),r=a=>Ve((this[a]*this.a+n[a]*n.a*(1-this.a))/o);return this._c({r:r("r"),g:r("g"),b:r("b"),a:o})}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 o=(this.g||0).toString(16);t+=o.length===2?o:"0"+o;const r=(this.b||0).toString(16);if(t+=r.length===2?r:"0"+r,typeof this.a=="number"&&this.a>=0&&this.a<1){const a=Ve(this.a*255).toString(16);t+=a.length===2?a:"0"+a}return t}toHsl(){return{h:this.getHue(),s:this.getSaturation(),l:this.getLightness(),a:this.a}}toHslString(){const t=this.getHue(),n=Ve(this.getSaturation()*100),o=Ve(this.getLightness()*100);return this.a!==1?`hsla(${t},${n}%,${o}%,${this.a})`:`hsl(${t},${n}%,${o}%)`}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,o){const r=this.clone();return r[t]=Sr(n,o),r}_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 o(r,a){return parseInt(n[r]+n[a||r],16)}n.length<6?(this.r=o(0),this.g=o(1),this.b=o(2),this.a=n[3]?o(3)/255:1):(this.r=o(0,1),this.g=o(2,3),this.b=o(4,5),this.a=n[6]?o(6,7)/255:1)}fromHsl({h:t,s:n,l:o,a:r}){if(this._h=t%360,this._s=n,this._l=o,this.a=typeof r=="number"?r:1,n<=0){const p=Ve(o*255);this.r=p,this.g=p,this.b=p}let a=0,l=0,s=0;const c=t/60,u=(1-Math.abs(2*o-1))*n,d=u*(1-Math.abs(c%2-1));c>=0&&c<1?(a=u,l=d):c>=1&&c<2?(a=d,l=u):c>=2&&c<3?(l=u,s=d):c>=3&&c<4?(l=d,s=u):c>=4&&c<5?(a=d,s=u):c>=5&&c<6&&(a=u,s=d);const f=o-u/2;this.r=Ve((a+f)*255),this.g=Ve((l+f)*255),this.b=Ve((s+f)*255)}fromHsv({h:t,s:n,v:o,a:r}){this._h=t%360,this._s=n,this._v=o,this.a=typeof r=="number"?r:1;const a=Ve(o*255);if(this.r=a,this.g=a,this.b=a,n<=0)return;const l=t/60,s=Math.floor(l),c=l-s,u=Ve(o*(1-n)*255),d=Ve(o*(1-n*c)*255),f=Ve(o*(1-n*(1-c))*255);switch(s){case 0:this.g=f,this.b=u;break;case 1:this.r=d,this.b=u;break;case 2:this.r=u,this.b=f;break;case 3:this.r=u,this.g=d;break;case 4:this.r=f,this.g=u;break;case 5:default:this.g=u,this.b=d;break}}fromHsvString(t){const n=$c(t,iv);this.fromHsv({h:n[0],s:n[1],v:n[2],a:n[3]})}fromHslString(t){const n=$c(t,iv);this.fromHsl({h:n[0],s:n[1],l:n[2],a:n[3]})}fromRgbString(t){const n=$c(t,(o,r)=>r.includes("%")?Ve(o/100*255):o);this.r=n[0],this.g=n[1],this.b=n[2],this.a=n[3]}}const ZR=e=>{const{componentCls:t,antCls:n,calc:o}=e,r=`${t}-list-card`,a=o(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:o(e.paddingSM).sub(e.lineWidth).equal(),paddingInlineStart:o(e.padding).add(e.lineWidth).equal(),display:"flex",flexWrap:"nowrap",gap:e.paddingXS,alignItems:"flex-start",width:236,[`${r}-icon`]:{fontSize:o(e.fontSizeLG).mul(2).equal(),lineHeight:1,paddingTop:o(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:a,height:a,lineHeight:1,display:"flex",alignItems:"center",[`&:not(${r}-status-error)`]:{border:0},[`${n}-image`]:{width:"100%",height:"100%",borderRadius:"inherit",img:{height:"100%",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:o(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(l=>`${l} ${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:o(e.paddingSM).mul(-1).equal()}}}}},Oc={"&, *":{boxSizing:"border-box"}},QR=e=>{const{componentCls:t,calc:n,antCls:o}=e,r=`${t}-drop-area`,a=`${t}-placeholder`;return{[r]:{position:"absolute",inset:0,zIndex:e.zIndexPopupBase,...Oc,"&-on-body":{position:"fixed",inset:0},"&-hide-placement":{[`${a}-inner`]:{display:"none"}},[a]:{padding:0}},"&":{[a]:{height:"100%",borderRadius:e.borderRadius,borderWidth:e.lineWidthBold,borderStyle:"dashed",borderColor:"transparent",padding:e.padding,position:"relative",backdropFilter:"blur(10px)",...Oc,[`${o}-upload-wrapper ${o}-upload${o}-upload-btn`]:{padding:0},[`&${a}-drag-in`]:{borderColor:e.colorPrimaryHover},[`&${a}-disabled`]:{opacity:.25,pointerEvents:"none"},[`${a}-inner`]:{gap:n(e.paddingXXS).div(2).equal()},[`${a}-icon`]:{fontSize:e.fontSizeHeading2,lineHeight:1},[`${a}-title${a}-title`]:{margin:0,fontSize:e.fontSize,lineHeight:e.lineHeight},[`${a}-description`]:{}}}}},JR=e=>{const{componentCls:t,calc:n}=e,o=`${t}-list`,r=n(e.fontSize).mul(e.lineHeight).mul(2).add(e.paddingSM).add(e.paddingSM).equal();return{[t]:{position:"relative",width:"100%",...Oc,[o]:{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(r).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:r,height:r,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)":{[`&${o}-overflow-ping-start ${o}-prev-btn`]:{opacity:1,pointerEvents:"auto"},[`&${o}-overflow-ping-end ${o}-next-btn`]:{opacity:1,pointerEvents:"auto"}},"&:dir(rtl)":{[`&${o}-overflow-ping-end ${o}-prev-btn`]:{opacity:1,pointerEvents:"auto"},[`&${o}-overflow-ping-start ${o}-next-btn`]:{opacity:1,pointerEvents:"auto"}}}}}},av=nn("Attachments",e=>{const t=Ct(e,{});return[QR(t),JR(t),ZR(t)]},e=>{const{colorBgContainer:t}=e;return{colorBgPlaceholderHover:new xc(t).setA(.85).toRgbString()}}),Pc=" ",Ic="#8c8c8c",lv=i.defineComponent({name:"AXAttachmentsFileListCard",__name:"FileListCard",props:{prefixCls:null,item:null,onRemove:{type:Function},className:null,style:null,imageProps:null},setup(e,{expose:t}){i.toRef(e,"prefixCls");const n=["png","jpg","jpeg","gif","bmp","webp","svg"],o=[{icon:i.createVNode(Qs,null,null),color:"#22b35e",ext:["xlsx","xls"]},{icon:i.createVNode(Js,null,null),color:Ic,ext:n},{icon:i.createVNode(ec,null,null),color:Ic,ext:["md","mdx"]},{icon:i.createVNode(tc,null,null),color:"#ff4d4f",ext:["pdf"]},{icon:i.createVNode(nc,null,null),color:"#ff6e31",ext:["ppt","pptx"]},{icon:i.createVNode(rc,null,null),color:"#1677ff",ext:["doc","docx"]},{icon:i.createVNode(ic,null,null),color:"#fab714",ext:["zip","rar","7z","tar","gz"]},{icon:i.createVNode(GR,null,null),color:"#ff4d4f",ext:["mp4","avi","mov","wmv","flv","mkv"]},{icon:i.createVNode(WR,null,null),color:"#8c8c8c",ext:["mp3","wav","flac","ape","aac","ogg"]}];function r(A,j){return j.some(O=>A.toLowerCase()===`.${O}`)}function a(A){let j=A;const O=["B","KB","MB","GB","TB","PB","EB"];let T=0;for(;j>=1024&&T<O.length-1;)j/=1024,T++;return`${j.toFixed(0)} ${O[T]}`}const l=ea(),s=i.computed(()=>l.value.disabled),c=i.computed(()=>e.item.name),u=i.computed(()=>e.item.size),d=i.computed(()=>e.item.percent),f=i.computed(()=>e.item.status||"done"),p=i.computed(()=>e.item.description),{getPrefixCls:m}=We(),v=i.computed(()=>m("attachment",e.prefixCls)),g=`${v.value}-list-card`,[y,b,S]=av(v),$=i.useTemplateRef("file-list-card-container"),x=i.computed(()=>{const A=c.value||"",j=A.match(/^(.*)\.[^.]+$/);return{namePrefix:j?j[1]:A,nameSuffix:j?A.slice(j[1].length):""}}),w=i.computed(()=>r(x.value.nameSuffix,n)),P=i.computed(()=>p.value?p.value:f.value==="uploading"?`${d.value||0}%`:f.value==="error"?e.item.response||Pc:u.value?a(u.value):Pc),C=i.computed(()=>{for(const{ext:A,icon:j,color:O}of o)if(r(x.value.nameSuffix,A))return{icon:j,iconColor:O};return{icon:i.createVNode(oc,{key:"defaultIcon"},null),iconColor:Ic}}),[I,M]=Te();i.watch(()=>e.item.originFileObj,()=>{if(e.item.originFileObj){let A=!0;YR(e.item.originFileObj).then(j=>{A&&M(j)}),i.onWatcherCleanup(()=>{A=!1})}M(void 0)},{immediate:!0});const E=i.computed(()=>e.item.thumbUrl||e.item.url||I.value),R=i.computed(()=>w.value&&(e.item.originFileObj||E.value)),z=i.computed(()=>R.value?i.createVNode(i.Fragment,null,[E.value&&i.createVNode(xn,i.mergeProps(e.imageProps,{alt:"preview",src:E.value}),null),f.value!=="done"&&i.createVNode("div",{class:`${g}-img-mask`},[f.value==="uploading"&&d.value!==void 0&&i.createVNode(bh,{percent:d.value,prefixCls:g},null),f.value==="error"&&i.createVNode("div",{class:`${g}-desc`},[i.createVNode("div",{class:`${g}-ellipsis-prefix`},[P.value])])])]):i.createVNode(i.Fragment,null,[i.createVNode("div",{class:`${g}-icon`,style:{color:C.value.iconColor}},[C.value.icon]),i.createVNode("div",{class:`${g}-content`},[i.createVNode("div",{class:`${g}-name`},[i.createVNode("div",{class:`${g}-ellipsis-prefix`},[x.value.namePrefix??Pc]),i.createVNode("div",{class:`${g}-ellipsis-suffix`},[x.value.nameSuffix])]),i.createVNode("div",{class:`${g}-desc`},[i.createVNode("div",{class:`${g}-ellipsis-prefix`},[P.value])])])]));return t({nativeElement:$}),()=>y(i.createVNode("div",{class:ae(g,{[`${g}-status-${f.value}`]:f.value,[`${g}-type-preview`]:R.value,[`${g}-type-overview`]:!R.value},e.className,b.value,S),style:e.style,ref:"file-list-card-container"},[z.value,!s.value&&e.onRemove&&i.createVNode("button",{type:"button",class:`${g}-remove`,onClick:()=>{e.onRemove(e.item)}},[i.createVNode(dt,null,null)])]))}}),sv=1,e5=i.defineComponent({name:"AXAttachmentsFileList",__name:"FileList",props:{prefixCls:null,items:null,onRemove:{type:Function},overflow:null,upload:null,imageProps:null,listClassName:null,listStyle:null,itemClassName:null,itemStyle:null},setup(e){const t=i.computed(()=>`${e.prefixCls}-list`),n=i.useTemplateRef("file-list-container"),[o,r]=Te(!1),a=ea();i.watchEffect(()=>{r(!0),i.onWatcherCleanup(()=>{r(!1)})});const[l,s]=Te(!1),[c,u]=Te(!1),d=()=>{const v=n.value;v&&(e.overflow==="scrollX"?(s(Math.abs(v.scrollLeft)>=sv),u(v.scrollWidth-v.clientWidth-Math.abs(v.scrollLeft)>=sv)):e.overflow==="scrollY"&&(s(v.scrollTop!==0),u(v.scrollHeight-v.clientHeight!==v.scrollTop)))};i.watch([()=>e.overflow,()=>e.items.length],()=>{i.nextTick(()=>{d()})},{immediate:!0});const f=v=>{const g=n.value;g&&g.scrollTo({left:g.scrollLeft+v*g.clientWidth,behavior:"smooth"})},p=()=>{f(-1)},m=()=>{f(1)};return()=>i.createVNode("div",{class:ae(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:d,style:e.listStyle},[e.items.map(v=>i.createVNode(lv,{key:v.uid,prefixCls:e.prefixCls,item:v,onRemove:e.onRemove,className:ae(e.itemClassName),imageProps:e.imageProps,style:{...e.itemStyle}},null)),!a.value.disabled&&i.createVNode(ov,{upload:e.upload,children:i.createVNode(_e,{class:`${t.value}-upload-btn`,type:"dashed"},{default:()=>[i.createVNode(us,{class:`${t.value}-upload-btn-icon`},null)]})},null),e.overflow==="scrollX"&&i.createVNode(i.Fragment,null,[i.createVNode(_e,{size:"small",shape:"circle",class:`${t.value}-prev-btn`,icon:i.createVNode(ao,null,null),onClick:p},null),i.createVNode(_e,{size:"small",shape:"circle",class:`${t.value}-next-btn`,icon:i.createVNode(Gt,null,null),onClick:m},null)])])}}),t5=i.defineComponent({name:"AXAttachments",__name:"Attachments",props:i.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,imageProps:null},{items:()=>[],classNames:()=>({}),styles:()=>({})}),setup(e,{expose:t}){const n=je(e,["prefixCls","rootClassName","rootStyle","className","style","items","children","getDropContainer","placeholder","onChange","onRemove","overflow","imageProps","disabled","classNames","styles"]);i.toRef(e,"prefixCls");const o=i.useSlots(),{getPrefixCls:r,direction:a}=We(),l=r("attachment",e.prefixCls),s=en("attachments"),c=i.computed(()=>s.value.classNames),u=i.computed(()=>s.value.styles),d=i.useTemplateRef("attachments-container"),f=i.useTemplateRef("attachments-upload"),[p,m,v]=av(l),g=i.computed(()=>ae(m.value,v)),[y,b]=Te(e.items);i.watch(()=>e.items,()=>{b(e.items)});const S=C=>{var I;b(C.fileList),(I=e.onChange)==null||I.call(e,C)},$=i.computed(()=>({...n,fileList:y.value,onChange:S})),x=C=>Promise.resolve(typeof e.onRemove=="function"?e.onRemove(C):e.onRemove).then(I=>{if(I===!1)return;const M=y.value.filter(E=>E.uid!==C.uid);S({file:{...C,status:"removed"},fileList:M})}),w=(C,I,M)=>{const E=o.placeholder?o.placeholder({type:C}):typeof e.placeholder=="function"?e.placeholder(C):e.placeholder;return i.createVNode(FR,{placeholder:E,upload:$.value,prefixCls:l,className:ae(c.value.placeholder,e.classNames.placeholder),style:{...u.value.placeholder,...e.styles.placeholder,...I==null?void 0:I.style}},null)},P=i.computed(()=>y.value.length>0);return t({nativeElement:d.value,upload:C=>{var M,E;const I=(E=(M=f.value)==null?void 0:M.nativeElement)==null?void 0:E.querySelector('input[type="file"]');if(I){const R=new DataTransfer;R.items.add(C),I.files=R.files,I.dispatchEvent(new Event("change",{bubbles:!0}))}}}),()=>p(i.createVNode(jR,{value:{disabled:e.disabled}},{default:()=>[e.children?i.createVNode(i.Fragment,null,[i.createVNode(ov,{upload:$.value,rootClassName:e.rootClassName,ref:"attachments-upload",children:e.children},null),i.createVNode(nv,{getDropContainer:e.getDropContainer,prefixCls:l,className:ae(g.value,e.rootClassName),children:w("drop")},null)]):i.createVNode("div",{class:ae(l,g.value,{[`${l}-rtl`]:a.value==="rtl"},e.className,e.rootClassName),style:{...e.rootStyle,...e.style},dir:a.value||"ltr",ref:"attachments-container"},[i.createVNode(e5,{prefixCls:l,items:y.value,onRemove:x,overflow:e.overflow,upload:$.value,listClassName:ae(c.value.list,e.classNames.list),listStyle:{...u.value.list,...e.styles.list,...!P.value&&{display:"none"}},itemClassName:ae(c.value.item,e.classNames.item),itemStyle:{...u.value.item,...e.styles.item},imageProps:e.imageProps},null),w("inline",P.value?{style:{display:"none"}}:{},f.value),i.createVNode(nv,{getDropContainer:e.getDropContainer||(()=>d.value),prefixCls:l,className:g.value,children:w("drop")},null)])]}))}}),n5=Object.assign(t5,{FileCard:lv}),o5=(e,t,n)=>{const o=i.computed(()=>{const s=i.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}}),[r,a]=Te(o.value.customizeExpandedKeys),l=s=>{var u,d;if(!o.value.enableCollapse)return;const c=r.value.includes(s)?r.value.filter(f=>f!==s):[...r.value,s];(d=(u=o.value).customizeOnExpand)==null||d.call(u,c),a(c)};return[i.computed(()=>o.value.enableCollapse),r,l]};var na=(e=>(e.PENDING="pending",e.SUCCESS="success",e.ERROR="error",e))(na||{});const r5=e=>{const{componentCls:t}=e,n=`${t}-item`,o={[na.PENDING]:e.colorPrimaryText,[na.SUCCESS]:e.colorSuccessText,[na.ERROR]:e.colorErrorText},r=Object.keys(o);return r.reduce((a,l)=>{const s=o[l];return r.forEach(c=>{const u=`& ${n}-${l}-${c}`,d=l===c?{}:{backgroundColor:"none !important",backgroundImage:`linear-gradient(${s}, ${o[c]})`};a[u]={[`& ${n}-icon, & > *::before`]:{backgroundColor:`${s} !important`},"& > :last-child::before":d}}),a},{})},i5=e=>{const{calc:t,componentCls:n}=e,o=`${n}-item`,r={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"},[`&${o}-footer`]:{"&::before":{display:"block !important",bottom:0}}},[`& > ${o}`]:{[`& ${o}-header, & ${o}-content, & ${o}-footer`]:{position:"relative","&::before":{bottom:t(e.itemGap).mul(-1).equal()}},[`& ${o}-header, & ${o}-content`]:{marginInlineStart:t(e.itemSize).mul(-1).equal(),"&::before":{...r,insetInlineStart:t(e.itemSize).div(2).sub(e.lineWidth).equal()}},[`& ${o}-header::before`]:{top:e.itemSize,bottom:t(e.itemGap).mul(-2).equal()},[`& ${o}-content::before`]:{top:"100%"},[`& ${o}-footer::before`]:{...r,top:0,insetInlineStart:t(e.itemSize).div(-2).sub(e.lineWidth).equal()}}}},a5=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:`${ft(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:`${ft(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`}},[`& ${n}-footer`]:{marginTop:e.itemGap,display:"inline-flex"}}}},Tc=(e,t="middle")=>{const{componentCls:n}=e,o={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:o.itemSize,gap:o.itemGap,...a5({...e,...o}),...i5({...e,...o})}}},l5=e=>{const{componentCls:t}=e;return{[t]:{display:"flex",flexDirection:"column",...r5(e),...Tc(e),...Tc(e,"large"),...Tc(e,"small"),[`&${t}-rtl`]:{direction:"rtl"}}}},s5=nn("ThoughtChain",e=>{const t=Ct(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[l5(t),ev(t)]}),cv=Symbol("ThoughtChainNodeContext"),Nc=i.shallowRef(),c5=e=>{i.provide(cv,e),i.watch(e,()=>{Nc.value=i.unref(e),i.triggerRef(Nc)},{immediate:!0,deep:!0})},u5=()=>i.inject(cv,i.computed(()=>Nc.value||{})),d5=i.defineComponent({props:{value:St()},setup(e,{slots:t}){return c5(i.computed(()=>e.value)),()=>{var n;return(n=t.default)==null?void 0:n.call(t)}}}),f5=i.defineComponent({name:"AXThoughtChainNode",__name:"item",props:i.mergeDefaults({info:null,nextStatus:null,onClick:{type:Function}},{info:()=>({})}),setup(e){const t=je(e,["info","nextStatus","onClick"]),n=i.computed(()=>go(t,{attr:!0,aria:!0,data:!0})),o=u5(),r=i.computed(()=>o.value.prefixCls),a=i.computed(()=>o.value.enableCollapse),l=i.computed(()=>o.value.expandedKeys),s=i.computed(()=>o.value.direction),c=i.computed(()=>o.value.classNames),u=i.computed(()=>o.value.styles),d=i.useId(),f=i.computed(()=>e.info.key??d),p=i.computed(()=>e.info.icon),m=i.computed(()=>e.info.title),v=i.computed(()=>e.info.extra),g=i.computed(()=>e.info.content),y=i.computed(()=>e.info.footer),b=i.computed(()=>e.info.status),S=i.computed(()=>e.info.description),$=i.computed(()=>`${r.value}-item`),x=()=>{var C;return(C=e.onClick)==null?void 0:C.call(e,f.value)},w=i.computed(()=>{var C;return(C=l.value)==null?void 0:C.includes(f.value)}),P=i.computed(()=>a.value?w.value:!0);return()=>i.createVNode("div",i.mergeProps(n.value,{class:ae($.value,{[`${$.value}-${b.value}${e.nextStatus?`-${e.nextStatus}`:""}`]:b.value},t.class),style:t.style}),[i.createVNode("div",{class:ae(`${$.value}-header`,c.value.itemHeader),style:u.value.itemHeader,onClick:x},[i.createVNode(Cn,{icon:p.value,class:`${$.value}-icon`},null),i.createVNode("div",{class:ae(`${$.value}-header-box`,{[`${$.value}-collapsible`]:a.value&&g.value})},[i.createVNode(Oe.Text,{strong:!0,ellipsis:{tooltip:{placement:s.value==="rtl"?"topRight":"topLeft",title:m.value}},class:`${$.value}-title`},{default:()=>[a.value&&g.value&&(s.value==="rtl"?i.createVNode(ao,{class:`${$.value}-collapse-icon`,rotate:w.value?-90:0},null):i.createVNode(Gt,{class:`${$.value}-collapse-icon`,rotate:w.value?90:0},null)),m.value]}),S.value&&i.createVNode(Oe.Text,{class:`${$.value}-desc`,ellipsis:{tooltip:{placement:s.value==="rtl"?"topRight":"topLeft",title:S.value}},type:"secondary"},{default:()=>[S.value]})]),v.value&&i.createVNode("div",{class:`${$.value}-extra`},[v.value])]),i.createVNode(Cr,{prefixCls:r.value},{default:()=>[g.value&&i.withDirectives(i.createVNode("div",{class:ae(`${$.value}-content`)},[i.createVNode("div",{class:ae(`${$.value}-content-box`,c.value.itemContent),style:u.value.itemContent},[g.value])]),[[i.vShow,P.value]])]}),y.value&&i.createVNode("div",{class:ae(`${$.value}-footer`,c.value.itemFooter),style:u.value.itemFooter},[y.value])])}}),p5=i.defineComponent({name:"AXThoughtChain",__name:"ThoughtChain",props:i.mergeDefaults({items:null,collapsible:{type:Boolean},size:null,styles:null,classNames:null,prefixCls:null,rootClassName:null},{styles:()=>({}),classNames:()=>({}),size:"middle"}),setup(e){const t=je(e,["prefixCls","rootClassName","class","items","collapsible","styles","style","classNames","size"]);i.toRef(e,"class"),i.toRef(e,"prefixCls");const n=i.computed(()=>go(t,{attr:!0,aria:!0,data:!0})),{getPrefixCls:o,direction:r}=We(),a=i.computed(()=>o()),l=i.computed(()=>o("thought-chain",e.prefixCls)),s=en("thoughtChain"),[c,u,d]=o5(()=>e.collapsible,l.value,a.value),[f,p,m]=s5(l),v=i.computed(()=>ae(e.class,e.rootClassName,l.value,s.value.className,p.value,m,{[`${l.value}-rtl`]:r.value==="rtl"},`${l.value}-${e.size}`));return()=>f(i.createVNode("div",i.mergeProps(n.value,{class:v.value,style:{...typeof s.value.style=="object"?s.value.style:{},...typeof e.style=="object"?e.style:{}}}),[i.createVNode(d5,{value:{prefixCls:l.value,enableCollapse:c.value,expandedKeys:u.value,direction:r.value,classNames:{itemHeader:ae(s.value.classNames.itemHeader,e.classNames.itemHeader),itemContent:ae(s.value.classNames.itemContent,e.classNames.itemContent),itemFooter:ae(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 g;return[(g=e.items)==null?void 0:g.map((y,b)=>{var S;return i.createVNode(f5,{key:y.key||`key_${b}`,class:ae(s.value.classNames.item,e.classNames.item),style:{...s.value.styles.item,...e.styles.item},info:{...y,icon:y.icon||b+1},onClick:d,nextStatus:((S=e.items[b+1])==null?void 0:S.status)||y.status},null)})]}})]))}}),m5=`
293
293
 
294
294
  `,g5=`
295
295
  `,uv=":",Ec=e=>(e??"").trim()!=="";function h5(){let e="";return new TransformStream({transform(t,n){e+=t;const o=e.split(m5);o.slice(0,-1).forEach(r=>{Ec(r)&&n.enqueue(r)}),e=o[o.length-1]},flush(t){Ec(e)&&t.enqueue(e)}})}function v5(){return new TransformStream({transform(e,t){const o=e.split(g5).reduce((r,a)=>{const l=a.indexOf(uv);if(l===-1)throw new Error(`The key-value separator "${uv}" is not found in the sse line chunk!`);const s=a.slice(0,l);if(!Ec(s))return r;const c=a.slice(l+1);return{...r,[s]:c}},{});Object.keys(o).length!==0&&t.enqueue(o)}})}function Rc(e){const{readableStream:t,transformStream:n}=e;if(!(t instanceof ReadableStream))throw new Error("The options.readableStream must be an instance of ReadableStream.");const o=new TextDecoderStream,r=n?t.pipeThrough(o).pipeThrough(n):t.pipeThrough(o).pipeThrough(h5()).pipeThrough(v5());return r[Symbol.asyncIterator]=async function*(){const a=this.getReader();for(;;){const{done:l,value:s}=await a.read();if(l)break;s&&(yield s)}},r}const dv=async(e,t={})=>{const{fetch:n=globalThis.fetch,middlewares:o={},...r}=t;if(typeof n!="function")throw new Error("The options.fetch must be a typeof fetch function!");let a=[e,r];typeof o.onRequest=="function"&&(a=await o.onRequest(...a));let l=await n(...a);if(typeof o.onResponse=="function"){const s=await o.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},Rn=class Rn{constructor(t){this.create=async(l,s,c)=>{var d;const u={method:"POST",body:JSON.stringify({model:this.model,...l}),headers:this.defaultHeaders};try{const f=await dv(this.baseURL,{fetch:this.customOptions.fetch,...u});if(c){await this.customResponseHandler(f,s,c);return}const p=f.headers.get("content-type")||"";switch(p.split(";")[0].trim()){case"text/event-stream":await this.sseResponseHandler(f,s);break;case"application/json":await this.jsonResponseHandler(f,s);break;default:throw new Error(`The response content-type: ${p} is not support!`)}}catch(f){const p=f instanceof Error?f:new Error("Unknown error!");throw(d=s==null?void 0:s.onError)==null||d.call(s,p),p}},this.customResponseHandler=async(l,s,c)=>{var d,f;const u=[];for await(const p of Rc({readableStream:l.body,transformStream:c}))u.push(p),(d=s==null?void 0:s.onUpdate)==null||d.call(s,p);(f=s==null?void 0:s.onSuccess)==null||f.call(s,u)},this.sseResponseHandler=async(l,s)=>{var u,d;const c=[];for await(const f of Rc({readableStream:l.body}))c.push(f),(u=s==null?void 0:s.onUpdate)==null||u.call(s,f);(d=s==null?void 0:s.onSuccess)==null||d.call(s,c)},this.jsonResponseHandler=async(l,s)=>{var u,d;const c=await l.json();(u=s==null?void 0:s.onUpdate)==null||u.call(s,c),(d=s==null?void 0:s.onSuccess)==null||d.call(s,[c])};const{baseURL:n,model:o,dangerouslyApiKey:r,...a}=t;this.baseURL=t.baseURL,this.model=t.model,this.defaultHeaders={"Content-Type":"application/json",...t.dangerouslyApiKey&&{Authorization:t.dangerouslyApiKey}},this.customOptions=a}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 Rn.instanceBuffer.has(n)||Rn.instanceBuffer.set(n,new Rn(t)),Rn.instanceBuffer.get(n)}};Rn.instanceBuffer=new Map;let Mc=Rn;const fv=Mc.init;let pv=0;class mv{constructor(t){this.requestingMap={},this.request=(n,o)=>{const{request:r}=this.config,{onUpdate:a,onSuccess:l,onError:s}=o,c=pv;pv+=1,this.requestingMap[c]=!0,r==null||r(n,{onUpdate:u=>{this.requestingMap[c]&&a(u)},onSuccess:u=>{this.requestingMap[c]&&(l(u),this.finishRequest(c))},onError:u=>{this.requestingMap[c]&&(s(u),this.finishRequest(c))}})},this.config=t}finishRequest(t){delete this.requestingMap[t]}isRequesting(){return Object.keys(this.requestingMap).length>0}}function y5(e){const{request:t,...n}=e;return[i.computed(()=>new mv({request:t||fv({baseURL:n.baseURL,model:n.model,dangerouslyApiKey:n.dangerouslyApiKey}).create,...n}))]}function b5(e,t){const n=i.ref(e);function o(r){const a=typeof r=="function"?r(n.value):r;a!==n.value&&t(a,n.value),n.value=a}return[n,o]}function C5(e){return Array.isArray(e)?e:[e]}function S5(e){const{defaultMessages:t,agent:n,requestFallback:o,requestPlaceholder:r,parser:a}=e,l=i.ref(0),s=i.computed(()=>(t||[]).map((g,y)=>({id:`default_${y}`,status:"local",...g}))),[c,u]=b5(s.value,()=>{}),d=(g,y)=>{const b={id:`msg_${l.value}`,message:g,status:y};return l.value+=1,b},f=i.computed(()=>{const g=[];return c.value.forEach(y=>{const b=a?a(y.message):y.message,S=C5(b);S.forEach(($,x)=>{let w=y.id;S.length>1&&(w=`${w}_${x}`),g.push({id:w,message:$,status:y.status})})}),g}),p=g=>g.filter(y=>y.status!=="loading"&&y.status!=="error").map(y=>y.message),m=()=>p(c.value);return{onRequest:Gi(g=>{if(!n)throw new Error("The agent parameter is required when using the onRequest method in an agent generated by useXAgent.");let y=null;u($=>{let x=[...$,d(g,"local")];if(r){let w;typeof r=="function"?w=r(g,{messages:p(x)}):w=r;const P=d(w,"loading");y=P.id,x=[...x,P]}return x});let b=null;const S=($,x)=>{let w=c.value.find(P=>P.id===b);return w?u(P=>P.map(C=>C.id===b?{...C,message:$,status:x}:C)):(w=d($,x),u(P=>[...P.filter(I=>I.id!==y),w]),b=w.id),w};n.request({message:g,messages:m()},{onUpdate:$=>{S($,"loading")},onSuccess:$=>{S($,"success")},onError:async $=>{if(o){let x;typeof o=="function"?x=await o(g,{error:$,messages:m()}):x=o,u(w=>[...w.filter(P=>P.id!==y&&P.id!==b),d(x,"error")])}else u(x=>x.filter(w=>w.id!==y&&w.id!==b))}})}),messages:c,parsedMessages:f,setMessages:u}}me.Attachments=n5,me.Bubble=tR,me.BubbleList=k0,me.Conversations=cR,me.Prompts=K0,me.Sender=LR,me.Suggestion=SR,me.ThoughtChain=p5,me.Welcome=mR,me.XAgent=mv,me.XFetch=dv,me.XProvider=DE,me.XRequest=fv,me.XStream=Rc,me.defaultPrefixCls=Nv,me.theme=mr,me.useXAgent=y5,me.useXChat=S5,me.useXProviderContext=We,Object.defineProperty(me,Symbol.toStringTag,{value:"Module"})});
@@ -3,6 +3,7 @@ import type { AnyObject } from '../_util/type';
3
3
  import GroupTitle from './GroupTitle.vue';
4
4
  import type { ConfigProviderProps, DirectionType } from 'ant-design-vue/es/config-provider';
5
5
  import type { MenuProps } from 'ant-design-vue';
6
+ import type { AvoidValidation } from '../type-utility';
6
7
  type GroupType = string;
7
8
  /**
8
9
  * @desc 会话数据
@@ -74,7 +75,7 @@ export interface ConversationsProps extends HTMLAttributes {
74
75
  * @desc 是否支持分组, 开启后默认按 {@link Conversation.group} 字段分组
75
76
  * @descEN If grouping is supported, it defaults to the {@link Conversation.group} field
76
77
  */
77
- groupable?: boolean | Groupable;
78
+ groupable?: AvoidValidation<boolean | Groupable>;
78
79
  /**
79
80
  * @desc 语义化结构 style
80
81
  * @descEN Semantic structure styles
@@ -10,8 +10,8 @@ declare function __VLS_template(): {
10
10
  header?(): VNode;
11
11
  prefix?(): VNode;
12
12
  actions?(props?: {
13
- ori?: VNode;
14
- info?: {
13
+ ori: VNode;
14
+ info: {
15
15
  components: {
16
16
  SendButton: typeof SendButton;
17
17
  ClearButton: typeof ClearButton;
@@ -21,7 +21,7 @@ declare function __VLS_template(): {
21
21
  };
22
22
  }): VNode;
23
23
  footer?(props?: {
24
- info?: {
24
+ info: {
25
25
  components: {
26
26
  SendButton: typeof SendButton;
27
27
  ClearButton: typeof ClearButton;
@@ -34,8 +34,8 @@ declare function __VLS_template(): {
34
34
  header?(): VNode;
35
35
  prefix?(): VNode;
36
36
  actions?(props?: {
37
- ori?: VNode;
38
- info?: {
37
+ ori: VNode;
38
+ info: {
39
39
  components: {
40
40
  SendButton: typeof SendButton;
41
41
  ClearButton: typeof ClearButton;
@@ -45,7 +45,7 @@ declare function __VLS_template(): {
45
45
  };
46
46
  }): VNode;
47
47
  footer?(props?: {
48
- info?: {
48
+ info: {
49
49
  components: {
50
50
  SendButton: typeof SendButton;
51
51
  ClearButton: typeof ClearButton;
@@ -38,8 +38,8 @@ declare const Sender: {
38
38
  header?(): import("vue").VNode;
39
39
  prefix?(): import("vue").VNode;
40
40
  actions?(props?: {
41
- ori?: import("vue").VNode;
42
- info?: {
41
+ ori: import("vue").VNode;
42
+ info: {
43
43
  components: {
44
44
  SendButton: typeof import("./components/SendButton.vue").default;
45
45
  ClearButton: typeof import("./components/ClearButton.vue").default;
@@ -49,7 +49,7 @@ declare const Sender: {
49
49
  };
50
50
  }): import("vue").VNode;
51
51
  footer?(props?: {
52
- info?: {
52
+ info: {
53
53
  components: {
54
54
  SendButton: typeof import("./components/SendButton.vue").default;
55
55
  ClearButton: typeof import("./components/ClearButton.vue").default;
@@ -62,8 +62,8 @@ declare const Sender: {
62
62
  header?(): import("vue").VNode;
63
63
  prefix?(): import("vue").VNode;
64
64
  actions?(props?: {
65
- ori?: import("vue").VNode;
66
- info?: {
65
+ ori: import("vue").VNode;
66
+ info: {
67
67
  components: {
68
68
  SendButton: typeof import("./components/SendButton.vue").default;
69
69
  ClearButton: typeof import("./components/ClearButton.vue").default;
@@ -73,7 +73,7 @@ declare const Sender: {
73
73
  };
74
74
  }): import("vue").VNode;
75
75
  footer?(props?: {
76
- info?: {
76
+ info: {
77
77
  components: {
78
78
  SendButton: typeof import("./components/SendButton.vue").default;
79
79
  ClearButton: typeof import("./components/ClearButton.vue").default;
@@ -1,7 +1,7 @@
1
1
  import type { ButtonProps, TextAreaProps } from "ant-design-vue";
2
2
  import { Input } from "ant-design-vue";
3
3
  import type { ChangeEvent, ClipboardEventHandler, KeyboardEventHandler } from "ant-design-vue/es/_util/EventInterface";
4
- import type { ConfigProviderProps } from "ant-design-vue/es/config-provider/context";
4
+ import type { ConfigProviderProps } from "ant-design-vue";
5
5
  import type { CSSProperties, VNode } from "vue";
6
6
  import type { AllowSpeech } from "./useSpeech";
7
7
  import type { InputRef } from "ant-design-vue/es/vc-input/inputProps";
@@ -65,10 +65,10 @@ export interface SenderProps {
65
65
  prefix?: VNode;
66
66
  footer?: VNode | FooterRender;
67
67
  header?: VNode;
68
- autoSize?: boolean | {
68
+ autoSize?: AvoidValidation<boolean | {
69
69
  minRows?: number;
70
70
  maxRows?: number;
71
- };
71
+ }>;
72
72
  }
73
73
  export type SenderRef = {
74
74
  nativeElement: HTMLDivElement;
@@ -1,14 +1,14 @@
1
1
  import { type AnyObject } from '../_util/type';
2
- import { AttachmentsProps } from '../attachments';
3
- import type { BubbleProps } from '../bubble';
2
+ import { AttachmentsProps } from 'ant-design-x-vue/attachments';
3
+ import type { BubbleProps } from 'ant-design-x-vue/bubble';
4
4
  import { ComputedRef, CSSProperties } from 'vue';
5
- import type { ConfigProviderProps as OriAntdConfigProviderProps } from 'ant-design-vue/es/config-provider';
6
- import type { ConversationsProps } from '../conversations';
7
- import type { PromptsProps } from '../prompts';
8
- import type { SenderProps } from '../sender';
9
- import type { SuggestionProps } from '../suggestion';
10
- import type { ThoughtChainProps } from '../thought-chain';
11
- import type { WelcomeProps } from '../welcome';
5
+ import type { ConfigProviderProps as OriAntdConfigProviderProps } from 'ant-design-vue';
6
+ import type { ConversationsProps } from 'ant-design-x-vue/conversations';
7
+ import type { PromptsProps } from 'ant-design-x-vue/prompts';
8
+ import type { SenderProps } from 'ant-design-x-vue/sender';
9
+ import type { SuggestionProps } from 'ant-design-x-vue/suggestion';
10
+ import type { ThoughtChainProps } from 'ant-design-x-vue/thought-chain';
11
+ import type { WelcomeProps } from 'ant-design-x-vue/welcome';
12
12
  export interface AntdConfigProviderProps {
13
13
  iconPrefixCls?: OriAntdConfigProviderProps['iconPrefixCls'];
14
14
  getTargetContainer?: OriAntdConfigProviderProps['getTargetContainer'];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ant-design-x-vue",
3
- "version": "1.1.0",
3
+ "version": "1.1.2",
4
4
  "description": "Craft AI-driven interfaces effortlessly",
5
5
  "keywords": [
6
6
  "AI",
@@ -82,7 +82,7 @@
82
82
  },
83
83
  "peerDependencies": {
84
84
  "ant-design-vue": ">=4.0.0",
85
- "vue": ">=3.3.0"
85
+ "vue": ">=3.5.0"
86
86
  },
87
87
  "devDependencies": {
88
88
  "@ant-design/icons-vue": "^7.0.1",