sand-components-vben 2.7.155 → 2.7.156

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sand-components-vben",
3
- "version": "2.7.155",
3
+ "version": "2.7.156",
4
4
  "description": "",
5
5
  "main": "sand-components-vben.js",
6
6
  "scripts": {
@@ -13783,7 +13783,8 @@ const hE = /* @__PURE__ */ Ge({
13783
13783
  try {
13784
13784
  const f = await o.upload(
13785
13785
  i.url ? rt.VITE_GLOB_UPLOAD_URL + i.url : rt.VITE_GLOB_UPLOAD_URL + "/system/file/upload",
13786
- { file: p }
13786
+ { file: p },
13787
+ { timeout: 3e5 }
13787
13788
  );
13788
13789
  r("change", f);
13789
13790
  } catch (f) {
@@ -143,7 +143,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
143
143
  ${Object.keys(n).map(a=>`--${e}-${a}: ${n[a]};`).join(`
144
144
  `)}
145
145
  }
146
- `.trim()}function vRe(e,t){const n=bRe(e,t);Ro()?Xf(n,`${ARe}-dynamic-theme`):Ga(!1,"ConfigProvider","SSR do not support dynamic theme with css variables.")}const yRe=e=>{const[t,n]=ig();return UR(u.computed(()=>({theme:t.value,token:n.value,hashId:"",path:["ant-design-icons",e.value]})),()=>[{[`.${e.value}`]:q(q({},ime()),{[`.${e.value} .${e.value}-icon`]:{display:"block"}})}])};function CRe(e,t){const n=u.computed(()=>(e==null?void 0:e.value)||{}),r=u.computed(()=>n.value.inherit===!1||!(t!=null&&t.value)?z8:t.value);return u.computed(()=>{if(!(e!=null&&e.value))return t==null?void 0:t.value;const o=q({},r.value.components);return Object.keys(e.value.components||{}).forEach(a=>{o[a]=q(q({},o[a]),e.value.components[a])}),q(q(q({},r.value),n.value),{token:q(q({},r.value.token),n.value.token),components:o})})}var TRe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const RRe="ant";function _d(){return Ur.prefixCls||RRe}function PQ(){return Ur.iconPrefixCls||yR}const Cx=u.reactive({}),Ur=u.reactive({});u.watchEffect(()=>{q(Ur,Cx),Ur.prefixCls=_d(),Ur.iconPrefixCls=PQ(),Ur.getPrefixCls=(e,t)=>t||(e?`${Ur.prefixCls}-${e}`:Ur.prefixCls),Ur.getRootPrefixCls=()=>Ur.prefixCls?Ur.prefixCls:_d()});let Tx;const IRe=e=>{Tx&&Tx(),Tx=u.watchEffect(()=>{q(Cx,u.reactive(e)),q(Ur,u.reactive(e))}),e.theme&&vRe(_d(),e.theme)},xRe=()=>({getPrefixCls:(e,t)=>t||(e?`${_d()}-${e}`:_d()),getIconPrefixCls:PQ,getRootPrefixCls:()=>Ur.prefixCls?Ur.prefixCls:_d()}),Og=u.defineComponent({compatConfig:{MODE:3},name:"AConfigProvider",inheritAttrs:!1,props:yfe(),setup(e,t){let{slots:n}=t;const r=TR(),i=(B,L)=>{const{prefixCls:U="ant"}=e;if(L)return L;const V=U||r.getPrefixCls("");return B?`${V}-${B}`:V},o=u.computed(()=>e.iconPrefixCls||r.iconPrefixCls.value||yR),a=u.computed(()=>o.value!==r.iconPrefixCls.value),s=u.computed(()=>{var B;return e.csp||((B=r.csp)===null||B===void 0?void 0:B.value)}),l=yRe(o),c=CRe(u.computed(()=>e.theme),u.computed(()=>{var B;return(B=r.theme)===null||B===void 0?void 0:B.value})),d=B=>(e.renderEmpty||n.renderEmpty||r.renderEmpty||hme)(B),p=u.computed(()=>{var B,L;return(B=e.autoInsertSpaceInButton)!==null&&B!==void 0?B:(L=r.autoInsertSpaceInButton)===null||L===void 0?void 0:L.value}),f=u.computed(()=>{var B;return e.locale||((B=r.locale)===null||B===void 0?void 0:B.value)});u.watch(f,()=>{Cx.locale=f.value},{immediate:!0});const g=u.computed(()=>{var B;return e.direction||((B=r.direction)===null||B===void 0?void 0:B.value)}),m=u.computed(()=>{var B,L;return(B=e.space)!==null&&B!==void 0?B:(L=r.space)===null||L===void 0?void 0:L.value}),E=u.computed(()=>{var B,L;return(B=e.virtual)!==null&&B!==void 0?B:(L=r.virtual)===null||L===void 0?void 0:L.value}),h=u.computed(()=>{var B,L;return(B=e.dropdownMatchSelectWidth)!==null&&B!==void 0?B:(L=r.dropdownMatchSelectWidth)===null||L===void 0?void 0:L.value}),A=u.computed(()=>{var B;return e.getTargetContainer!==void 0?e.getTargetContainer:(B=r.getTargetContainer)===null||B===void 0?void 0:B.value}),S=u.computed(()=>{var B;return e.getPopupContainer!==void 0?e.getPopupContainer:(B=r.getPopupContainer)===null||B===void 0?void 0:B.value}),b=u.computed(()=>{var B;return e.pageHeader!==void 0?e.pageHeader:(B=r.pageHeader)===null||B===void 0?void 0:B.value}),v=u.computed(()=>{var B;return e.input!==void 0?e.input:(B=r.input)===null||B===void 0?void 0:B.value}),C=u.computed(()=>{var B;return e.pagination!==void 0?e.pagination:(B=r.pagination)===null||B===void 0?void 0:B.value}),y=u.computed(()=>{var B;return e.form!==void 0?e.form:(B=r.form)===null||B===void 0?void 0:B.value}),T=u.computed(()=>{var B;return e.select!==void 0?e.select:(B=r.select)===null||B===void 0?void 0:B.value}),R=u.computed(()=>e.componentSize),O=u.computed(()=>e.componentDisabled),I=u.computed(()=>{var B,L;return(B=e.wave)!==null&&B!==void 0?B:(L=r.wave)===null||L===void 0?void 0:L.value}),x={csp:s,autoInsertSpaceInButton:p,locale:f,direction:g,space:m,virtual:E,dropdownMatchSelectWidth:h,getPrefixCls:i,iconPrefixCls:o,theme:u.computed(()=>{var B,L;return(B=c.value)!==null&&B!==void 0?B:(L=r.theme)===null||L===void 0?void 0:L.value}),renderEmpty:d,getTargetContainer:A,getPopupContainer:S,pageHeader:b,input:v,pagination:C,form:y,select:T,componentSize:R,componentDisabled:O,transformCellText:u.computed(()=>e.transformCellText),wave:I},N=u.computed(()=>{const B=c.value||{},{algorithm:L,token:U}=B,V=TRe(B,["algorithm","token"]),G=L&&(!Array.isArray(L)||L.length>0)?S8(L):void 0;return q(q({},V),{theme:G,token:q(q({},sS),U)})}),w=u.computed(()=>{var B,L;let U={};return f.value&&(U=((B=f.value.Form)===null||B===void 0?void 0:B.defaultValidateMessages)||((L=pc.Form)===null||L===void 0?void 0:L.defaultValidateMessages)||{}),e.form&&e.form.validateMessages&&(U=q(q({},U),e.form.validateMessages)),U});Cfe(x),bfe({validateMessages:w}),t5(R),n8(O);const F=B=>{var L,U;let V=a.value?l((L=n.default)===null||L===void 0?void 0:L.call(n)):(U=n.default)===null||U===void 0?void 0:U.call(n);if(e.theme){const G=function(){return V}();V=u.createVNode(dme,{value:N.value},{default:()=>[G]})}return u.createVNode(FTe,{locale:f.value||B,ANT_MARK__:Sx},{default:()=>[V]})};return u.watchEffect(()=>{g.value&&(vt.config({rtl:g.value==="rtl"}),Bd.config({rtl:g.value==="rtl"}))}),()=>u.createVNode(o8,{children:(B,L,U)=>F(U)},null)}});Og.config=IRe,Og.install=function(e){e.component(Og.name,Og)};var ORe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M257.7 752c2 0 4-.2 6-.5L431.9 722c2-.4 3.9-1.3 5.3-2.8l423.9-423.9a9.96 9.96 0 000-14.1L694.9 114.9c-1.9-1.9-4.4-2.9-7.1-2.9s-5.2 1-7.1 2.9L256.8 538.8c-1.5 1.5-2.4 3.3-2.8 5.3l-29.5 168.2a33.5 33.5 0 009.4 29.8c6.6 6.4 14.9 9.9 23.8 9.9zm67.4-174.4L687.8 215l73.3 73.3-362.7 362.6-88.9 15.7 15.6-89zM880 836H144c-17.7 0-32 14.3-32 32v36c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-36c0-17.7-14.3-32-32-32z"}}]},name:"edit",theme:"outlined"};function UQ(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?Object(arguments[t]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable}))),r.forEach(function(i){NRe(e,i,n[i])})}return e}function NRe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Rx=function(t,n){var r=UQ({},t,n.attrs);return u.createVNode(sn,UQ({},r,{icon:ORe}),null)};Rx.displayName="EditOutlined",Rx.inheritAttrs=!1;var DRe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M952 474H829.8C812.5 327.6 696.4 211.5 550 194.2V72c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v122.2C327.6 211.5 211.5 327.6 194.2 474H72c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h122.2C211.5 696.4 327.6 812.5 474 829.8V952c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V829.8C696.4 812.5 812.5 696.4 829.8 550H952c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8zM512 756c-134.8 0-244-109.2-244-244s109.2-244 244-244 244 109.2 244 244-109.2 244-244 244z"}},{tag:"path",attrs:{d:"M512 392c-32.1 0-62.1 12.4-84.8 35.2-22.7 22.7-35.2 52.7-35.2 84.8s12.5 62.1 35.2 84.8C449.9 619.4 480 632 512 632s62.1-12.5 84.8-35.2C619.4 574.1 632 544 632 512s-12.5-62.1-35.2-84.8A118.57 118.57 0 00512 392z"}}]},name:"aim",theme:"outlined"};function VQ(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?Object(arguments[t]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable}))),r.forEach(function(i){wRe(e,i,n[i])})}return e}function wRe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Ix=function(t,n){var r=VQ({},t,n.attrs);return u.createVNode(sn,VQ({},r,{icon:DRe}),null)};Ix.displayName="AimOutlined",Ix.inheritAttrs=!1;var kRe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M391 240.9c-.8-6.6-8.9-9.4-13.6-4.7l-43.7 43.7L200 146.3a8.03 8.03 0 00-11.3 0l-42.4 42.3a8.03 8.03 0 000 11.3L280 333.6l-43.9 43.9a8.01 8.01 0 004.7 13.6L401 410c5.1.6 9.5-3.7 8.9-8.9L391 240.9zm10.1 373.2L240.8 633c-6.6.8-9.4 8.9-4.7 13.6l43.9 43.9L146.3 824a8.03 8.03 0 000 11.3l42.4 42.3c3.1 3.1 8.2 3.1 11.3 0L333.7 744l43.7 43.7A8.01 8.01 0 00391 783l18.9-160.1c.6-5.1-3.7-9.4-8.8-8.8zm221.8-204.2L783.2 391c6.6-.8 9.4-8.9 4.7-13.6L744 333.6 877.7 200c3.1-3.1 3.1-8.2 0-11.3l-42.4-42.3a8.03 8.03 0 00-11.3 0L690.3 279.9l-43.7-43.7a8.01 8.01 0 00-13.6 4.7L614.1 401c-.6 5.2 3.7 9.5 8.8 8.9zM744 690.4l43.9-43.9a8.01 8.01 0 00-4.7-13.6L623 614c-5.1-.6-9.5 3.7-8.9 8.9L633 783.1c.8 6.6 8.9 9.4 13.6 4.7l43.7-43.7L824 877.7c3.1 3.1 8.2 3.1 11.3 0l42.4-42.3c3.1-3.1 3.1-8.2 0-11.3L744 690.4z"}}]},name:"fullscreen-exit",theme:"outlined"};function QQ(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?Object(arguments[t]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable}))),r.forEach(function(i){BRe(e,i,n[i])})}return e}function BRe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var xx=function(t,n){var r=QQ({},t,n.attrs);return u.createVNode(sn,QQ({},r,{icon:kRe}),null)};xx.displayName="FullscreenExitOutlined",xx.inheritAttrs=!1;var _Re={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M290 236.4l43.9-43.9a8.01 8.01 0 00-4.7-13.6L169 160c-5.1-.6-9.5 3.7-8.9 8.9L179 329.1c.8 6.6 8.9 9.4 13.6 4.7l43.7-43.7L370 423.7c3.1 3.1 8.2 3.1 11.3 0l42.4-42.3c3.1-3.1 3.1-8.2 0-11.3L290 236.4zm352.7 187.3c3.1 3.1 8.2 3.1 11.3 0l133.7-133.6 43.7 43.7a8.01 8.01 0 0013.6-4.7L863.9 169c.6-5.1-3.7-9.5-8.9-8.9L694.8 179c-6.6.8-9.4 8.9-4.7 13.6l43.9 43.9L600.3 370a8.03 8.03 0 000 11.3l42.4 42.4zM845 694.9c-.8-6.6-8.9-9.4-13.6-4.7l-43.7 43.7L654 600.3a8.03 8.03 0 00-11.3 0l-42.4 42.3a8.03 8.03 0 000 11.3L734 787.6l-43.9 43.9a8.01 8.01 0 004.7 13.6L855 864c5.1.6 9.5-3.7 8.9-8.9L845 694.9zm-463.7-94.6a8.03 8.03 0 00-11.3 0L236.3 733.9l-43.7-43.7a8.01 8.01 0 00-13.6 4.7L160.1 855c-.6 5.1 3.7 9.5 8.9 8.9L329.2 845c6.6-.8 9.4-8.9 4.7-13.6L290 787.6 423.7 654c3.1-3.1 3.1-8.2 0-11.3l-42.4-42.4z"}}]},name:"fullscreen",theme:"outlined"};function GQ(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?Object(arguments[t]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable}))),r.forEach(function(i){MRe(e,i,n[i])})}return e}function MRe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Ox=function(t,n){var r=GQ({},t,n.attrs);return u.createVNode(sn,GQ({},r,{icon:_Re}),null)};Ox.displayName="FullscreenOutlined",Ox.inheritAttrs=!1;var FRe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M696 480H544V328c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v152H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h152v152c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V544h152c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8z"}},{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}}]},name:"plus-circle",theme:"outlined"};function KQ(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?Object(arguments[t]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable}))),r.forEach(function(i){LRe(e,i,n[i])})}return e}function LRe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Nx=function(t,n){var r=KQ({},t,n.attrs);return u.createVNode(sn,KQ({},r,{icon:FRe}),null)};Nx.displayName="PlusCircleOutlined",Nx.inheritAttrs=!1;var PRe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M931.4 498.9L94.9 79.5c-3.4-1.7-7.3-2.1-11-1.2a15.99 15.99 0 00-11.7 19.3l86.2 352.2c1.3 5.3 5.2 9.6 10.4 11.3l147.7 50.7-147.6 50.7c-5.2 1.8-9.1 6-10.3 11.3L72.2 926.5c-.9 3.7-.5 7.6 1.2 10.9 3.9 7.9 13.5 11.1 21.5 7.2l836.5-417c3.1-1.5 5.6-4.1 7.2-7.1 3.9-8 .7-17.6-7.2-21.6zM170.8 826.3l50.3-205.6 295.2-101.3c2.3-.8 4.2-2.6 5-5 1.4-4.2-.8-8.7-5-10.2L221.1 403 171 198.2l628 314.9-628.2 313.2z"}}]},name:"send",theme:"outlined"};function YQ(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?Object(arguments[t]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable}))),r.forEach(function(i){URe(e,i,n[i])})}return e}function URe(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 r=YQ({},t,n.attrs);return u.createVNode(sn,YQ({},r,{icon:PRe}),null)};jS.displayName="SendOutlined",jS.inheritAttrs=!1;var VRe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M483.2 790.3L861.4 412c1.7-1.7 2.5-4 2.3-6.3l-25.5-301.4c-.7-7.8-6.8-13.9-14.6-14.6L522.2 64.3c-2.3-.2-4.7.6-6.3 2.3L137.7 444.8a8.03 8.03 0 000 11.3l334.2 334.2c3.1 3.2 8.2 3.2 11.3 0zm62.6-651.7l224.6 19 19 224.6L477.5 694 233.9 450.5l311.9-311.9zm60.16 186.23a48 48 0 1067.88-67.89 48 48 0 10-67.88 67.89zM889.7 539.8l-39.6-39.5a8.03 8.03 0 00-11.3 0l-362 361.3-237.6-237a8.03 8.03 0 00-11.3 0l-39.6 39.5a8.03 8.03 0 000 11.3l243.2 242.8 39.6 39.5c3.1 3.1 8.2 3.1 11.3 0l407.3-406.6c3.1-3.1 3.1-8.2 0-11.3z"}}]},name:"tags",theme:"outlined"};function qQ(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?Object(arguments[t]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable}))),r.forEach(function(i){QRe(e,i,n[i])})}return e}function QRe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Dx=function(t,n){var r=qQ({},t,n.attrs);return u.createVNode(sn,qQ({},r,{icon:VRe}),null)};Dx.displayName="TagsOutlined",Dx.inheritAttrs=!1;var GRe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M858.5 763.6a374 374 0 00-80.6-119.5 375.63 375.63 0 00-119.5-80.6c-.4-.2-.8-.3-1.2-.5C719.5 518 760 444.7 760 362c0-137-111-248-248-248S264 225 264 362c0 82.7 40.5 156 102.8 201.1-.4.2-.8.3-1.2.5-44.8 18.9-85 46-119.5 80.6a375.63 375.63 0 00-80.6 119.5A371.7 371.7 0 00136 901.8a8 8 0 008 8.2h60c4.4 0 7.9-3.5 8-7.8 2-77.2 33-149.5 87.8-204.3 56.7-56.7 132-87.9 212.2-87.9s155.5 31.2 212.2 87.9C779 752.7 810 825 812 902.2c.1 4.4 3.6 7.8 8 7.8h60a8 8 0 008-8.2c-1-47.8-10.9-94.3-29.5-138.2zM512 534c-45.9 0-89.1-17.9-121.6-50.4S340 407.9 340 362c0-45.9 17.9-89.1 50.4-121.6S466.1 190 512 190s89.1 17.9 121.6 50.4S684 316.1 684 362c0 45.9-17.9 89.1-50.4 121.6S557.9 534 512 534z"}}]},name:"user",theme:"outlined"};function HQ(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?Object(arguments[t]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable}))),r.forEach(function(i){KRe(e,i,n[i])})}return e}function KRe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var wx=function(t,n){var r=HQ({},t,n.attrs);return u.createVNode(sn,HQ({},r,{icon:GRe}),null)};wx.displayName="UserOutlined",wx.inheritAttrs=!1;const Ye={requestClient:null,VITE_GLOB_UPLOAD_URL:"",VITE_GLOB_BASE_URL:"",VITE_GLOB_AI_URL:"",permissions:[],GMapKey:"0984e1fbda9b82265a41a9bbb99f4b39",GMapSecret:"55e3d27496eb89cc2f256761dfe1c79a",namespace:""};function YRe(e){Ye.requestClient=e.requestClient,Ye.VITE_GLOB_UPLOAD_URL=e.VITE_GLOB_UPLOAD_URL,Ye.VITE_GLOB_BASE_URL=e.VITE_GLOB_BASE_URL,Ye.VITE_GLOB_AI_URL=e.VITE_GLOB_AI_URL?e.VITE_GLOB_AI_URL:"/ai-api",Ye.permissions=e.permissions||[],Ye.namespace=e.namespace||"",e.GMapKey&&(Ye.GMapKey=e.GMapKey,Ye.GMapSecret=e.GMapSecret)}const Md=u.defineComponent({__name:"BaseUpload",props:{type:{type:String,default:"file"},fileType:{type:Array,default:()=>[]},size:{type:Number,default:0},url:{type:String,default:""},disabled:{type:Boolean,default:!1},multiple:{type:Boolean,default:!1},maxCount:{type:Number,default:20},limitUpload:{type:Boolean,default:!1},fileLength:{type:Number,default:0}},emits:["change"],setup(e,{expose:t,emit:n}){const r=n,i=e;let o=new jf(Ye.requestClient);const a=u.ref(0),s=u.ref(!1),l=async f=>{try{const g=await o.upload(i.url?Ye.VITE_GLOB_UPLOAD_URL+i.url:Ye.VITE_GLOB_UPLOAD_URL+"/system/file/upload",{file:f});r("change",g)}catch(g){throw console.log(g),g}},c=(f,g)=>{const m=f.name.split(".").pop(),E=g.indexOf(f);if(E===0&&(s.value=!1,a.value=0,i.limitUpload&&i.maxCount>0)){const h=i.maxCount-i.fileLength;if(g.length>h)return vt.error(`最多还能上传 ${h} 个文件,您选择了 ${g.length} 个,请重新选择`),!1;s.value=!0}return i.limitUpload&&!s.value?!1:i.type==="image"&&!f.type.includes("image")?(vt.error(`图片格式不正确, 请上传${i.fileType.join("/")}图片格式文件!`),s.value=!1,!1):i.type==="file"&&i.fileType.length&&!i.fileType.includes(m)?(vt.error(`文件格式不正确, 请上传${i.fileType.join("/")}后缀的格式文件!`),s.value=!1,!1):i.size>0&&f.size/1024/1024>i.size?(vt.error(`上传文件大小不能超过 ${i.size} MB!`),s.value=!1,!1):(l(f),i.limitUpload&&a.value++,E===g.length-1&&(s.value=!1,a.value=0),!1)},d=f=>Array.isArray(f)?f.map(g=>{const m=String(g).trim();return m.startsWith(".")?m:`.${m}`}).join(","):"";return t({resetBatchState:()=>{a.value=0,s.value=!1}}),(f,g)=>{const m=u.resolveComponent("a-upload");return u.openBlock(),u.createElementBlock("div",null,[u.createVNode(m,{"before-upload":c,showUploadList:!1,disabled:e.disabled,multiple:e.multiple,accept:d(e.fileType)},{default:u.withCtx(()=>[u.renderSlot(f.$slots,"default")]),_:3},8,["disabled","multiple","accept"])])}}});function JQ(e,t){return function(){return e.apply(t,arguments)}}const{toString:qRe}=Object.prototype,{getPrototypeOf:kx}=Object,zS=(e=>t=>{const n=qRe.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),ko=e=>(e=e.toLowerCase(),t=>zS(t)===e),WS=e=>t=>typeof t===e,{isArray:Fd}=Array,Ng=WS("undefined");function HRe(e){return e!==null&&!Ng(e)&&e.constructor!==null&&!Ng(e.constructor)&&Oi(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const jQ=ko("ArrayBuffer");function JRe(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&jQ(e.buffer),t}const jRe=WS("string"),Oi=WS("function"),zQ=WS("number"),ZS=e=>e!==null&&typeof e=="object",zRe=e=>e===!0||e===!1,XS=e=>{if(zS(e)!=="object")return!1;const t=kx(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},WRe=ko("Date"),ZRe=ko("File"),XRe=ko("Blob"),$Re=ko("FileList"),eIe=e=>ZS(e)&&Oi(e.pipe),tIe=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Oi(e.append)&&((t=zS(e))==="formdata"||t==="object"&&Oi(e.toString)&&e.toString()==="[object FormData]"))},nIe=ko("URLSearchParams"),[rIe,iIe,oIe,aIe]=["ReadableStream","Request","Response","Headers"].map(ko),sIe=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Dg(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,i;if(typeof e!="object"&&(e=[e]),Fd(e))for(r=0,i=e.length;r<i;r++)t.call(null,e[r],r,e);else{const o=n?Object.getOwnPropertyNames(e):Object.keys(e),a=o.length;let s;for(r=0;r<a;r++)s=o[r],t.call(null,e[s],s,e)}}function WQ(e,t){t=t.toLowerCase();const n=Object.keys(e);let r=n.length,i;for(;r-- >0;)if(i=n[r],t===i.toLowerCase())return i;return null}const Bc=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,ZQ=e=>!Ng(e)&&e!==Bc;function Bx(){const{caseless:e}=ZQ(this)&&this||{},t={},n=(r,i)=>{const o=e&&WQ(t,i)||i;XS(t[o])&&XS(r)?t[o]=Bx(t[o],r):XS(r)?t[o]=Bx({},r):Fd(r)?t[o]=r.slice():t[o]=r};for(let r=0,i=arguments.length;r<i;r++)arguments[r]&&Dg(arguments[r],n);return t}const lIe=(e,t,n,{allOwnKeys:r}={})=>(Dg(t,(i,o)=>{n&&Oi(i)?e[o]=JQ(i,n):e[o]=i},{allOwnKeys:r}),e),cIe=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),uIe=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},dIe=(e,t,n,r)=>{let i,o,a;const s={};if(t=t||{},e==null)return t;do{for(i=Object.getOwnPropertyNames(e),o=i.length;o-- >0;)a=i[o],(!r||r(a,e,t))&&!s[a]&&(t[a]=e[a],s[a]=!0);e=n!==!1&&kx(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},pIe=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},fIe=e=>{if(!e)return null;if(Fd(e))return e;let t=e.length;if(!zQ(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},gIe=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&kx(Uint8Array)),mIe=(e,t)=>{const r=(e&&e[Symbol.iterator]).call(e);let i;for(;(i=r.next())&&!i.done;){const o=i.value;t.call(e,o[0],o[1])}},hIe=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},EIe=ko("HTMLFormElement"),SIe=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,i){return r.toUpperCase()+i}),XQ=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),AIe=ko("RegExp"),$Q=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};Dg(n,(i,o)=>{let a;(a=t(i,o,e))!==!1&&(r[o]=a||i)}),Object.defineProperties(e,r)},bIe=e=>{$Q(e,(t,n)=>{if(Oi(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(Oi(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},vIe=(e,t)=>{const n={},r=i=>{i.forEach(o=>{n[o]=!0})};return Fd(e)?r(e):r(String(e).split(t)),n},yIe=()=>{},CIe=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t,_x="abcdefghijklmnopqrstuvwxyz",eG="0123456789",tG={DIGIT:eG,ALPHA:_x,ALPHA_DIGIT:_x+_x.toUpperCase()+eG},TIe=(e=16,t=tG.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n};function RIe(e){return!!(e&&Oi(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const IIe=e=>{const t=new Array(10),n=(r,i)=>{if(ZS(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[i]=r;const o=Fd(r)?[]:{};return Dg(r,(a,s)=>{const l=n(a,i+1);!Ng(l)&&(o[s]=l)}),t[i]=void 0,o}}return r};return n(e,0)},xIe=ko("AsyncFunction"),OIe=e=>e&&(ZS(e)||Oi(e))&&Oi(e.then)&&Oi(e.catch),nG=((e,t)=>e?setImmediate:t?((n,r)=>(Bc.addEventListener("message",({source:i,data:o})=>{i===Bc&&o===n&&r.length&&r.shift()()},!1),i=>{r.push(i),Bc.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",Oi(Bc.postMessage)),NIe=typeof queueMicrotask<"u"?queueMicrotask.bind(Bc):typeof process<"u"&&process.nextTick||nG,oe={isArray:Fd,isArrayBuffer:jQ,isBuffer:HRe,isFormData:tIe,isArrayBufferView:JRe,isString:jRe,isNumber:zQ,isBoolean:zRe,isObject:ZS,isPlainObject:XS,isReadableStream:rIe,isRequest:iIe,isResponse:oIe,isHeaders:aIe,isUndefined:Ng,isDate:WRe,isFile:ZRe,isBlob:XRe,isRegExp:AIe,isFunction:Oi,isStream:eIe,isURLSearchParams:nIe,isTypedArray:gIe,isFileList:$Re,forEach:Dg,merge:Bx,extend:lIe,trim:sIe,stripBOM:cIe,inherits:uIe,toFlatObject:dIe,kindOf:zS,kindOfTest:ko,endsWith:pIe,toArray:fIe,forEachEntry:mIe,matchAll:hIe,isHTMLForm:EIe,hasOwnProperty:XQ,hasOwnProp:XQ,reduceDescriptors:$Q,freezeMethods:bIe,toObjectSet:vIe,toCamelCase:SIe,noop:yIe,toFiniteNumber:CIe,findKey:WQ,global:Bc,isContextDefined:ZQ,ALPHABET:tG,generateString:TIe,isSpecCompliantForm:RIe,toJSONObject:IIe,isAsyncFn:xIe,isThenable:OIe,setImmediate:nG,asap:NIe};function at(e,t,n,r,i){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),i&&(this.response=i,this.status=i.status?i.status:null)}oe.inherits(at,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:oe.toJSONObject(this.config),code:this.code,status:this.status}}});const rG=at.prototype,iG={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{iG[e]={value:e}}),Object.defineProperties(at,iG),Object.defineProperty(rG,"isAxiosError",{value:!0}),at.from=(e,t,n,r,i,o)=>{const a=Object.create(rG);return oe.toFlatObject(e,a,function(l){return l!==Error.prototype},s=>s!=="isAxiosError"),at.call(a,e.message,t,n,r,i),a.cause=e,a.name=e.name,o&&Object.assign(a,o),a};const DIe=null;function Mx(e){return oe.isPlainObject(e)||oe.isArray(e)}function oG(e){return oe.endsWith(e,"[]")?e.slice(0,-2):e}function aG(e,t,n){return e?e.concat(t).map(function(i,o){return i=oG(i),!n&&o?"["+i+"]":i}).join(n?".":""):t}function wIe(e){return oe.isArray(e)&&!e.some(Mx)}const kIe=oe.toFlatObject(oe,{},null,function(t){return/^is[A-Z]/.test(t)});function $S(e,t,n){if(!oe.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=oe.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(E,h){return!oe.isUndefined(h[E])});const r=n.metaTokens,i=n.visitor||d,o=n.dots,a=n.indexes,l=(n.Blob||typeof Blob<"u"&&Blob)&&oe.isSpecCompliantForm(t);if(!oe.isFunction(i))throw new TypeError("visitor must be a function");function c(m){if(m===null)return"";if(oe.isDate(m))return m.toISOString();if(!l&&oe.isBlob(m))throw new at("Blob is not supported. Use a Buffer instead.");return oe.isArrayBuffer(m)||oe.isTypedArray(m)?l&&typeof Blob=="function"?new Blob([m]):Buffer.from(m):m}function d(m,E,h){let A=m;if(m&&!h&&typeof m=="object"){if(oe.endsWith(E,"{}"))E=r?E:E.slice(0,-2),m=JSON.stringify(m);else if(oe.isArray(m)&&wIe(m)||(oe.isFileList(m)||oe.endsWith(E,"[]"))&&(A=oe.toArray(m)))return E=oG(E),A.forEach(function(b,v){!(oe.isUndefined(b)||b===null)&&t.append(a===!0?aG([E],v,o):a===null?E:E+"[]",c(b))}),!1}return Mx(m)?!0:(t.append(aG(h,E,o),c(m)),!1)}const p=[],f=Object.assign(kIe,{defaultVisitor:d,convertValue:c,isVisitable:Mx});function g(m,E){if(!oe.isUndefined(m)){if(p.indexOf(m)!==-1)throw Error("Circular reference detected in "+E.join("."));p.push(m),oe.forEach(m,function(A,S){(!(oe.isUndefined(A)||A===null)&&i.call(t,A,oe.isString(S)?S.trim():S,E,f))===!0&&g(A,E?E.concat(S):[S])}),p.pop()}}if(!oe.isObject(e))throw new TypeError("data must be an object");return g(e),t}function sG(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function Fx(e,t){this._pairs=[],e&&$S(e,this,t)}const lG=Fx.prototype;lG.append=function(t,n){this._pairs.push([t,n])},lG.toString=function(t){const n=t?function(r){return t.call(this,r,sG)}:sG;return this._pairs.map(function(i){return n(i[0])+"="+n(i[1])},"").join("&")};function BIe(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function cG(e,t,n){if(!t)return e;const r=n&&n.encode||BIe;oe.isFunction(n)&&(n={serialize:n});const i=n&&n.serialize;let o;if(i?o=i(t,n):o=oe.isURLSearchParams(t)?t.toString():new Fx(t,n).toString(r),o){const a=e.indexOf("#");a!==-1&&(e=e.slice(0,a)),e+=(e.indexOf("?")===-1?"?":"&")+o}return e}let uG=class{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){oe.forEach(this.handlers,function(r){r!==null&&t(r)})}};const dG={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},_Ie={isBrowser:!0,classes:{URLSearchParams:typeof URLSearchParams<"u"?URLSearchParams:Fx,FormData:typeof FormData<"u"?FormData:null,Blob:typeof Blob<"u"?Blob:null},protocols:["http","https","file","blob","url","data"]},Lx=typeof window<"u"&&typeof document<"u",Px=typeof navigator=="object"&&navigator||void 0,MIe=Lx&&(!Px||["ReactNative","NativeScript","NS"].indexOf(Px.product)<0),FIe=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",LIe=Lx&&window.location.href||"http://localhost",Vr={...Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Lx,hasStandardBrowserEnv:MIe,hasStandardBrowserWebWorkerEnv:FIe,navigator:Px,origin:LIe},Symbol.toStringTag,{value:"Module"})),..._Ie};function PIe(e,t){return $S(e,new Vr.classes.URLSearchParams,Object.assign({visitor:function(n,r,i,o){return Vr.isNode&&oe.isBuffer(n)?(this.append(r,n.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)}},t))}function UIe(e){return oe.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function VIe(e){const t={},n=Object.keys(e);let r;const i=n.length;let o;for(r=0;r<i;r++)o=n[r],t[o]=e[o];return t}function pG(e){function t(n,r,i,o){let a=n[o++];if(a==="__proto__")return!0;const s=Number.isFinite(+a),l=o>=n.length;return a=!a&&oe.isArray(i)?i.length:a,l?(oe.hasOwnProp(i,a)?i[a]=[i[a],r]:i[a]=r,!s):((!i[a]||!oe.isObject(i[a]))&&(i[a]=[]),t(n,r,i[a],o)&&oe.isArray(i[a])&&(i[a]=VIe(i[a])),!s)}if(oe.isFormData(e)&&oe.isFunction(e.entries)){const n={};return oe.forEachEntry(e,(r,i)=>{t(UIe(r),i,n,0)}),n}return null}function QIe(e,t,n){if(oe.isString(e))try{return(t||JSON.parse)(e),oe.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(0,JSON.stringify)(e)}const wg={transitional:dG,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",i=r.indexOf("application/json")>-1,o=oe.isObject(t);if(o&&oe.isHTMLForm(t)&&(t=new FormData(t)),oe.isFormData(t))return i?JSON.stringify(pG(t)):t;if(oe.isArrayBuffer(t)||oe.isBuffer(t)||oe.isStream(t)||oe.isFile(t)||oe.isBlob(t)||oe.isReadableStream(t))return t;if(oe.isArrayBufferView(t))return t.buffer;if(oe.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let s;if(o){if(r.indexOf("application/x-www-form-urlencoded")>-1)return PIe(t,this.formSerializer).toString();if((s=oe.isFileList(t))||r.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return $S(s?{"files[]":t}:t,l&&new l,this.formSerializer)}}return o||i?(n.setContentType("application/json",!1),QIe(t)):t}],transformResponse:[function(t){const n=this.transitional||wg.transitional,r=n&&n.forcedJSONParsing,i=this.responseType==="json";if(oe.isResponse(t)||oe.isReadableStream(t))return t;if(t&&oe.isString(t)&&(r&&!this.responseType||i)){const a=!(n&&n.silentJSONParsing)&&i;try{return JSON.parse(t)}catch(s){if(a)throw s.name==="SyntaxError"?at.from(s,at.ERR_BAD_RESPONSE,this,null,this.response):s}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Vr.classes.FormData,Blob:Vr.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};oe.forEach(["delete","get","head","post","put","patch"],e=>{wg.headers[e]={}});const GIe=oe.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),KIe=e=>{const t={};let n,r,i;return e&&e.split(`
146
+ `.trim()}function vRe(e,t){const n=bRe(e,t);Ro()?Xf(n,`${ARe}-dynamic-theme`):Ga(!1,"ConfigProvider","SSR do not support dynamic theme with css variables.")}const yRe=e=>{const[t,n]=ig();return UR(u.computed(()=>({theme:t.value,token:n.value,hashId:"",path:["ant-design-icons",e.value]})),()=>[{[`.${e.value}`]:q(q({},ime()),{[`.${e.value} .${e.value}-icon`]:{display:"block"}})}])};function CRe(e,t){const n=u.computed(()=>(e==null?void 0:e.value)||{}),r=u.computed(()=>n.value.inherit===!1||!(t!=null&&t.value)?z8:t.value);return u.computed(()=>{if(!(e!=null&&e.value))return t==null?void 0:t.value;const o=q({},r.value.components);return Object.keys(e.value.components||{}).forEach(a=>{o[a]=q(q({},o[a]),e.value.components[a])}),q(q(q({},r.value),n.value),{token:q(q({},r.value.token),n.value.token),components:o})})}var TRe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const RRe="ant";function _d(){return Ur.prefixCls||RRe}function PQ(){return Ur.iconPrefixCls||yR}const Cx=u.reactive({}),Ur=u.reactive({});u.watchEffect(()=>{q(Ur,Cx),Ur.prefixCls=_d(),Ur.iconPrefixCls=PQ(),Ur.getPrefixCls=(e,t)=>t||(e?`${Ur.prefixCls}-${e}`:Ur.prefixCls),Ur.getRootPrefixCls=()=>Ur.prefixCls?Ur.prefixCls:_d()});let Tx;const IRe=e=>{Tx&&Tx(),Tx=u.watchEffect(()=>{q(Cx,u.reactive(e)),q(Ur,u.reactive(e))}),e.theme&&vRe(_d(),e.theme)},xRe=()=>({getPrefixCls:(e,t)=>t||(e?`${_d()}-${e}`:_d()),getIconPrefixCls:PQ,getRootPrefixCls:()=>Ur.prefixCls?Ur.prefixCls:_d()}),Og=u.defineComponent({compatConfig:{MODE:3},name:"AConfigProvider",inheritAttrs:!1,props:yfe(),setup(e,t){let{slots:n}=t;const r=TR(),i=(B,L)=>{const{prefixCls:U="ant"}=e;if(L)return L;const V=U||r.getPrefixCls("");return B?`${V}-${B}`:V},o=u.computed(()=>e.iconPrefixCls||r.iconPrefixCls.value||yR),a=u.computed(()=>o.value!==r.iconPrefixCls.value),s=u.computed(()=>{var B;return e.csp||((B=r.csp)===null||B===void 0?void 0:B.value)}),l=yRe(o),c=CRe(u.computed(()=>e.theme),u.computed(()=>{var B;return(B=r.theme)===null||B===void 0?void 0:B.value})),d=B=>(e.renderEmpty||n.renderEmpty||r.renderEmpty||hme)(B),p=u.computed(()=>{var B,L;return(B=e.autoInsertSpaceInButton)!==null&&B!==void 0?B:(L=r.autoInsertSpaceInButton)===null||L===void 0?void 0:L.value}),f=u.computed(()=>{var B;return e.locale||((B=r.locale)===null||B===void 0?void 0:B.value)});u.watch(f,()=>{Cx.locale=f.value},{immediate:!0});const g=u.computed(()=>{var B;return e.direction||((B=r.direction)===null||B===void 0?void 0:B.value)}),m=u.computed(()=>{var B,L;return(B=e.space)!==null&&B!==void 0?B:(L=r.space)===null||L===void 0?void 0:L.value}),E=u.computed(()=>{var B,L;return(B=e.virtual)!==null&&B!==void 0?B:(L=r.virtual)===null||L===void 0?void 0:L.value}),h=u.computed(()=>{var B,L;return(B=e.dropdownMatchSelectWidth)!==null&&B!==void 0?B:(L=r.dropdownMatchSelectWidth)===null||L===void 0?void 0:L.value}),A=u.computed(()=>{var B;return e.getTargetContainer!==void 0?e.getTargetContainer:(B=r.getTargetContainer)===null||B===void 0?void 0:B.value}),S=u.computed(()=>{var B;return e.getPopupContainer!==void 0?e.getPopupContainer:(B=r.getPopupContainer)===null||B===void 0?void 0:B.value}),b=u.computed(()=>{var B;return e.pageHeader!==void 0?e.pageHeader:(B=r.pageHeader)===null||B===void 0?void 0:B.value}),v=u.computed(()=>{var B;return e.input!==void 0?e.input:(B=r.input)===null||B===void 0?void 0:B.value}),C=u.computed(()=>{var B;return e.pagination!==void 0?e.pagination:(B=r.pagination)===null||B===void 0?void 0:B.value}),y=u.computed(()=>{var B;return e.form!==void 0?e.form:(B=r.form)===null||B===void 0?void 0:B.value}),T=u.computed(()=>{var B;return e.select!==void 0?e.select:(B=r.select)===null||B===void 0?void 0:B.value}),R=u.computed(()=>e.componentSize),O=u.computed(()=>e.componentDisabled),I=u.computed(()=>{var B,L;return(B=e.wave)!==null&&B!==void 0?B:(L=r.wave)===null||L===void 0?void 0:L.value}),x={csp:s,autoInsertSpaceInButton:p,locale:f,direction:g,space:m,virtual:E,dropdownMatchSelectWidth:h,getPrefixCls:i,iconPrefixCls:o,theme:u.computed(()=>{var B,L;return(B=c.value)!==null&&B!==void 0?B:(L=r.theme)===null||L===void 0?void 0:L.value}),renderEmpty:d,getTargetContainer:A,getPopupContainer:S,pageHeader:b,input:v,pagination:C,form:y,select:T,componentSize:R,componentDisabled:O,transformCellText:u.computed(()=>e.transformCellText),wave:I},N=u.computed(()=>{const B=c.value||{},{algorithm:L,token:U}=B,V=TRe(B,["algorithm","token"]),G=L&&(!Array.isArray(L)||L.length>0)?S8(L):void 0;return q(q({},V),{theme:G,token:q(q({},sS),U)})}),w=u.computed(()=>{var B,L;let U={};return f.value&&(U=((B=f.value.Form)===null||B===void 0?void 0:B.defaultValidateMessages)||((L=pc.Form)===null||L===void 0?void 0:L.defaultValidateMessages)||{}),e.form&&e.form.validateMessages&&(U=q(q({},U),e.form.validateMessages)),U});Cfe(x),bfe({validateMessages:w}),t5(R),n8(O);const F=B=>{var L,U;let V=a.value?l((L=n.default)===null||L===void 0?void 0:L.call(n)):(U=n.default)===null||U===void 0?void 0:U.call(n);if(e.theme){const G=function(){return V}();V=u.createVNode(dme,{value:N.value},{default:()=>[G]})}return u.createVNode(FTe,{locale:f.value||B,ANT_MARK__:Sx},{default:()=>[V]})};return u.watchEffect(()=>{g.value&&(vt.config({rtl:g.value==="rtl"}),Bd.config({rtl:g.value==="rtl"}))}),()=>u.createVNode(o8,{children:(B,L,U)=>F(U)},null)}});Og.config=IRe,Og.install=function(e){e.component(Og.name,Og)};var ORe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M257.7 752c2 0 4-.2 6-.5L431.9 722c2-.4 3.9-1.3 5.3-2.8l423.9-423.9a9.96 9.96 0 000-14.1L694.9 114.9c-1.9-1.9-4.4-2.9-7.1-2.9s-5.2 1-7.1 2.9L256.8 538.8c-1.5 1.5-2.4 3.3-2.8 5.3l-29.5 168.2a33.5 33.5 0 009.4 29.8c6.6 6.4 14.9 9.9 23.8 9.9zm67.4-174.4L687.8 215l73.3 73.3-362.7 362.6-88.9 15.7 15.6-89zM880 836H144c-17.7 0-32 14.3-32 32v36c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-36c0-17.7-14.3-32-32-32z"}}]},name:"edit",theme:"outlined"};function UQ(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?Object(arguments[t]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable}))),r.forEach(function(i){NRe(e,i,n[i])})}return e}function NRe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Rx=function(t,n){var r=UQ({},t,n.attrs);return u.createVNode(sn,UQ({},r,{icon:ORe}),null)};Rx.displayName="EditOutlined",Rx.inheritAttrs=!1;var DRe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M952 474H829.8C812.5 327.6 696.4 211.5 550 194.2V72c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v122.2C327.6 211.5 211.5 327.6 194.2 474H72c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h122.2C211.5 696.4 327.6 812.5 474 829.8V952c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V829.8C696.4 812.5 812.5 696.4 829.8 550H952c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8zM512 756c-134.8 0-244-109.2-244-244s109.2-244 244-244 244 109.2 244 244-109.2 244-244 244z"}},{tag:"path",attrs:{d:"M512 392c-32.1 0-62.1 12.4-84.8 35.2-22.7 22.7-35.2 52.7-35.2 84.8s12.5 62.1 35.2 84.8C449.9 619.4 480 632 512 632s62.1-12.5 84.8-35.2C619.4 574.1 632 544 632 512s-12.5-62.1-35.2-84.8A118.57 118.57 0 00512 392z"}}]},name:"aim",theme:"outlined"};function VQ(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?Object(arguments[t]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable}))),r.forEach(function(i){wRe(e,i,n[i])})}return e}function wRe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Ix=function(t,n){var r=VQ({},t,n.attrs);return u.createVNode(sn,VQ({},r,{icon:DRe}),null)};Ix.displayName="AimOutlined",Ix.inheritAttrs=!1;var kRe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M391 240.9c-.8-6.6-8.9-9.4-13.6-4.7l-43.7 43.7L200 146.3a8.03 8.03 0 00-11.3 0l-42.4 42.3a8.03 8.03 0 000 11.3L280 333.6l-43.9 43.9a8.01 8.01 0 004.7 13.6L401 410c5.1.6 9.5-3.7 8.9-8.9L391 240.9zm10.1 373.2L240.8 633c-6.6.8-9.4 8.9-4.7 13.6l43.9 43.9L146.3 824a8.03 8.03 0 000 11.3l42.4 42.3c3.1 3.1 8.2 3.1 11.3 0L333.7 744l43.7 43.7A8.01 8.01 0 00391 783l18.9-160.1c.6-5.1-3.7-9.4-8.8-8.8zm221.8-204.2L783.2 391c6.6-.8 9.4-8.9 4.7-13.6L744 333.6 877.7 200c3.1-3.1 3.1-8.2 0-11.3l-42.4-42.3a8.03 8.03 0 00-11.3 0L690.3 279.9l-43.7-43.7a8.01 8.01 0 00-13.6 4.7L614.1 401c-.6 5.2 3.7 9.5 8.8 8.9zM744 690.4l43.9-43.9a8.01 8.01 0 00-4.7-13.6L623 614c-5.1-.6-9.5 3.7-8.9 8.9L633 783.1c.8 6.6 8.9 9.4 13.6 4.7l43.7-43.7L824 877.7c3.1 3.1 8.2 3.1 11.3 0l42.4-42.3c3.1-3.1 3.1-8.2 0-11.3L744 690.4z"}}]},name:"fullscreen-exit",theme:"outlined"};function QQ(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?Object(arguments[t]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable}))),r.forEach(function(i){BRe(e,i,n[i])})}return e}function BRe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var xx=function(t,n){var r=QQ({},t,n.attrs);return u.createVNode(sn,QQ({},r,{icon:kRe}),null)};xx.displayName="FullscreenExitOutlined",xx.inheritAttrs=!1;var _Re={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M290 236.4l43.9-43.9a8.01 8.01 0 00-4.7-13.6L169 160c-5.1-.6-9.5 3.7-8.9 8.9L179 329.1c.8 6.6 8.9 9.4 13.6 4.7l43.7-43.7L370 423.7c3.1 3.1 8.2 3.1 11.3 0l42.4-42.3c3.1-3.1 3.1-8.2 0-11.3L290 236.4zm352.7 187.3c3.1 3.1 8.2 3.1 11.3 0l133.7-133.6 43.7 43.7a8.01 8.01 0 0013.6-4.7L863.9 169c.6-5.1-3.7-9.5-8.9-8.9L694.8 179c-6.6.8-9.4 8.9-4.7 13.6l43.9 43.9L600.3 370a8.03 8.03 0 000 11.3l42.4 42.4zM845 694.9c-.8-6.6-8.9-9.4-13.6-4.7l-43.7 43.7L654 600.3a8.03 8.03 0 00-11.3 0l-42.4 42.3a8.03 8.03 0 000 11.3L734 787.6l-43.9 43.9a8.01 8.01 0 004.7 13.6L855 864c5.1.6 9.5-3.7 8.9-8.9L845 694.9zm-463.7-94.6a8.03 8.03 0 00-11.3 0L236.3 733.9l-43.7-43.7a8.01 8.01 0 00-13.6 4.7L160.1 855c-.6 5.1 3.7 9.5 8.9 8.9L329.2 845c6.6-.8 9.4-8.9 4.7-13.6L290 787.6 423.7 654c3.1-3.1 3.1-8.2 0-11.3l-42.4-42.4z"}}]},name:"fullscreen",theme:"outlined"};function GQ(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?Object(arguments[t]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable}))),r.forEach(function(i){MRe(e,i,n[i])})}return e}function MRe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Ox=function(t,n){var r=GQ({},t,n.attrs);return u.createVNode(sn,GQ({},r,{icon:_Re}),null)};Ox.displayName="FullscreenOutlined",Ox.inheritAttrs=!1;var FRe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M696 480H544V328c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v152H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h152v152c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V544h152c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8z"}},{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}}]},name:"plus-circle",theme:"outlined"};function KQ(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?Object(arguments[t]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable}))),r.forEach(function(i){LRe(e,i,n[i])})}return e}function LRe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Nx=function(t,n){var r=KQ({},t,n.attrs);return u.createVNode(sn,KQ({},r,{icon:FRe}),null)};Nx.displayName="PlusCircleOutlined",Nx.inheritAttrs=!1;var PRe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M931.4 498.9L94.9 79.5c-3.4-1.7-7.3-2.1-11-1.2a15.99 15.99 0 00-11.7 19.3l86.2 352.2c1.3 5.3 5.2 9.6 10.4 11.3l147.7 50.7-147.6 50.7c-5.2 1.8-9.1 6-10.3 11.3L72.2 926.5c-.9 3.7-.5 7.6 1.2 10.9 3.9 7.9 13.5 11.1 21.5 7.2l836.5-417c3.1-1.5 5.6-4.1 7.2-7.1 3.9-8 .7-17.6-7.2-21.6zM170.8 826.3l50.3-205.6 295.2-101.3c2.3-.8 4.2-2.6 5-5 1.4-4.2-.8-8.7-5-10.2L221.1 403 171 198.2l628 314.9-628.2 313.2z"}}]},name:"send",theme:"outlined"};function YQ(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?Object(arguments[t]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable}))),r.forEach(function(i){URe(e,i,n[i])})}return e}function URe(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 r=YQ({},t,n.attrs);return u.createVNode(sn,YQ({},r,{icon:PRe}),null)};jS.displayName="SendOutlined",jS.inheritAttrs=!1;var VRe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M483.2 790.3L861.4 412c1.7-1.7 2.5-4 2.3-6.3l-25.5-301.4c-.7-7.8-6.8-13.9-14.6-14.6L522.2 64.3c-2.3-.2-4.7.6-6.3 2.3L137.7 444.8a8.03 8.03 0 000 11.3l334.2 334.2c3.1 3.2 8.2 3.2 11.3 0zm62.6-651.7l224.6 19 19 224.6L477.5 694 233.9 450.5l311.9-311.9zm60.16 186.23a48 48 0 1067.88-67.89 48 48 0 10-67.88 67.89zM889.7 539.8l-39.6-39.5a8.03 8.03 0 00-11.3 0l-362 361.3-237.6-237a8.03 8.03 0 00-11.3 0l-39.6 39.5a8.03 8.03 0 000 11.3l243.2 242.8 39.6 39.5c3.1 3.1 8.2 3.1 11.3 0l407.3-406.6c3.1-3.1 3.1-8.2 0-11.3z"}}]},name:"tags",theme:"outlined"};function qQ(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?Object(arguments[t]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable}))),r.forEach(function(i){QRe(e,i,n[i])})}return e}function QRe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Dx=function(t,n){var r=qQ({},t,n.attrs);return u.createVNode(sn,qQ({},r,{icon:VRe}),null)};Dx.displayName="TagsOutlined",Dx.inheritAttrs=!1;var GRe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M858.5 763.6a374 374 0 00-80.6-119.5 375.63 375.63 0 00-119.5-80.6c-.4-.2-.8-.3-1.2-.5C719.5 518 760 444.7 760 362c0-137-111-248-248-248S264 225 264 362c0 82.7 40.5 156 102.8 201.1-.4.2-.8.3-1.2.5-44.8 18.9-85 46-119.5 80.6a375.63 375.63 0 00-80.6 119.5A371.7 371.7 0 00136 901.8a8 8 0 008 8.2h60c4.4 0 7.9-3.5 8-7.8 2-77.2 33-149.5 87.8-204.3 56.7-56.7 132-87.9 212.2-87.9s155.5 31.2 212.2 87.9C779 752.7 810 825 812 902.2c.1 4.4 3.6 7.8 8 7.8h60a8 8 0 008-8.2c-1-47.8-10.9-94.3-29.5-138.2zM512 534c-45.9 0-89.1-17.9-121.6-50.4S340 407.9 340 362c0-45.9 17.9-89.1 50.4-121.6S466.1 190 512 190s89.1 17.9 121.6 50.4S684 316.1 684 362c0 45.9-17.9 89.1-50.4 121.6S557.9 534 512 534z"}}]},name:"user",theme:"outlined"};function HQ(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?Object(arguments[t]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable}))),r.forEach(function(i){KRe(e,i,n[i])})}return e}function KRe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var wx=function(t,n){var r=HQ({},t,n.attrs);return u.createVNode(sn,HQ({},r,{icon:GRe}),null)};wx.displayName="UserOutlined",wx.inheritAttrs=!1;const Ye={requestClient:null,VITE_GLOB_UPLOAD_URL:"",VITE_GLOB_BASE_URL:"",VITE_GLOB_AI_URL:"",permissions:[],GMapKey:"0984e1fbda9b82265a41a9bbb99f4b39",GMapSecret:"55e3d27496eb89cc2f256761dfe1c79a",namespace:""};function YRe(e){Ye.requestClient=e.requestClient,Ye.VITE_GLOB_UPLOAD_URL=e.VITE_GLOB_UPLOAD_URL,Ye.VITE_GLOB_BASE_URL=e.VITE_GLOB_BASE_URL,Ye.VITE_GLOB_AI_URL=e.VITE_GLOB_AI_URL?e.VITE_GLOB_AI_URL:"/ai-api",Ye.permissions=e.permissions||[],Ye.namespace=e.namespace||"",e.GMapKey&&(Ye.GMapKey=e.GMapKey,Ye.GMapSecret=e.GMapSecret)}const Md=u.defineComponent({__name:"BaseUpload",props:{type:{type:String,default:"file"},fileType:{type:Array,default:()=>[]},size:{type:Number,default:0},url:{type:String,default:""},disabled:{type:Boolean,default:!1},multiple:{type:Boolean,default:!1},maxCount:{type:Number,default:20},limitUpload:{type:Boolean,default:!1},fileLength:{type:Number,default:0}},emits:["change"],setup(e,{expose:t,emit:n}){const r=n,i=e;let o=new jf(Ye.requestClient);const a=u.ref(0),s=u.ref(!1),l=async f=>{try{const g=await o.upload(i.url?Ye.VITE_GLOB_UPLOAD_URL+i.url:Ye.VITE_GLOB_UPLOAD_URL+"/system/file/upload",{file:f},{timeout:3e5});r("change",g)}catch(g){throw console.log(g),g}},c=(f,g)=>{const m=f.name.split(".").pop(),E=g.indexOf(f);if(E===0&&(s.value=!1,a.value=0,i.limitUpload&&i.maxCount>0)){const h=i.maxCount-i.fileLength;if(g.length>h)return vt.error(`最多还能上传 ${h} 个文件,您选择了 ${g.length} 个,请重新选择`),!1;s.value=!0}return i.limitUpload&&!s.value?!1:i.type==="image"&&!f.type.includes("image")?(vt.error(`图片格式不正确, 请上传${i.fileType.join("/")}图片格式文件!`),s.value=!1,!1):i.type==="file"&&i.fileType.length&&!i.fileType.includes(m)?(vt.error(`文件格式不正确, 请上传${i.fileType.join("/")}后缀的格式文件!`),s.value=!1,!1):i.size>0&&f.size/1024/1024>i.size?(vt.error(`上传文件大小不能超过 ${i.size} MB!`),s.value=!1,!1):(l(f),i.limitUpload&&a.value++,E===g.length-1&&(s.value=!1,a.value=0),!1)},d=f=>Array.isArray(f)?f.map(g=>{const m=String(g).trim();return m.startsWith(".")?m:`.${m}`}).join(","):"";return t({resetBatchState:()=>{a.value=0,s.value=!1}}),(f,g)=>{const m=u.resolveComponent("a-upload");return u.openBlock(),u.createElementBlock("div",null,[u.createVNode(m,{"before-upload":c,showUploadList:!1,disabled:e.disabled,multiple:e.multiple,accept:d(e.fileType)},{default:u.withCtx(()=>[u.renderSlot(f.$slots,"default")]),_:3},8,["disabled","multiple","accept"])])}}});function JQ(e,t){return function(){return e.apply(t,arguments)}}const{toString:qRe}=Object.prototype,{getPrototypeOf:kx}=Object,zS=(e=>t=>{const n=qRe.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),ko=e=>(e=e.toLowerCase(),t=>zS(t)===e),WS=e=>t=>typeof t===e,{isArray:Fd}=Array,Ng=WS("undefined");function HRe(e){return e!==null&&!Ng(e)&&e.constructor!==null&&!Ng(e.constructor)&&Oi(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const jQ=ko("ArrayBuffer");function JRe(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&jQ(e.buffer),t}const jRe=WS("string"),Oi=WS("function"),zQ=WS("number"),ZS=e=>e!==null&&typeof e=="object",zRe=e=>e===!0||e===!1,XS=e=>{if(zS(e)!=="object")return!1;const t=kx(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},WRe=ko("Date"),ZRe=ko("File"),XRe=ko("Blob"),$Re=ko("FileList"),eIe=e=>ZS(e)&&Oi(e.pipe),tIe=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Oi(e.append)&&((t=zS(e))==="formdata"||t==="object"&&Oi(e.toString)&&e.toString()==="[object FormData]"))},nIe=ko("URLSearchParams"),[rIe,iIe,oIe,aIe]=["ReadableStream","Request","Response","Headers"].map(ko),sIe=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Dg(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,i;if(typeof e!="object"&&(e=[e]),Fd(e))for(r=0,i=e.length;r<i;r++)t.call(null,e[r],r,e);else{const o=n?Object.getOwnPropertyNames(e):Object.keys(e),a=o.length;let s;for(r=0;r<a;r++)s=o[r],t.call(null,e[s],s,e)}}function WQ(e,t){t=t.toLowerCase();const n=Object.keys(e);let r=n.length,i;for(;r-- >0;)if(i=n[r],t===i.toLowerCase())return i;return null}const Bc=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,ZQ=e=>!Ng(e)&&e!==Bc;function Bx(){const{caseless:e}=ZQ(this)&&this||{},t={},n=(r,i)=>{const o=e&&WQ(t,i)||i;XS(t[o])&&XS(r)?t[o]=Bx(t[o],r):XS(r)?t[o]=Bx({},r):Fd(r)?t[o]=r.slice():t[o]=r};for(let r=0,i=arguments.length;r<i;r++)arguments[r]&&Dg(arguments[r],n);return t}const lIe=(e,t,n,{allOwnKeys:r}={})=>(Dg(t,(i,o)=>{n&&Oi(i)?e[o]=JQ(i,n):e[o]=i},{allOwnKeys:r}),e),cIe=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),uIe=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},dIe=(e,t,n,r)=>{let i,o,a;const s={};if(t=t||{},e==null)return t;do{for(i=Object.getOwnPropertyNames(e),o=i.length;o-- >0;)a=i[o],(!r||r(a,e,t))&&!s[a]&&(t[a]=e[a],s[a]=!0);e=n!==!1&&kx(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},pIe=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},fIe=e=>{if(!e)return null;if(Fd(e))return e;let t=e.length;if(!zQ(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},gIe=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&kx(Uint8Array)),mIe=(e,t)=>{const r=(e&&e[Symbol.iterator]).call(e);let i;for(;(i=r.next())&&!i.done;){const o=i.value;t.call(e,o[0],o[1])}},hIe=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},EIe=ko("HTMLFormElement"),SIe=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,i){return r.toUpperCase()+i}),XQ=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),AIe=ko("RegExp"),$Q=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};Dg(n,(i,o)=>{let a;(a=t(i,o,e))!==!1&&(r[o]=a||i)}),Object.defineProperties(e,r)},bIe=e=>{$Q(e,(t,n)=>{if(Oi(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(Oi(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},vIe=(e,t)=>{const n={},r=i=>{i.forEach(o=>{n[o]=!0})};return Fd(e)?r(e):r(String(e).split(t)),n},yIe=()=>{},CIe=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t,_x="abcdefghijklmnopqrstuvwxyz",eG="0123456789",tG={DIGIT:eG,ALPHA:_x,ALPHA_DIGIT:_x+_x.toUpperCase()+eG},TIe=(e=16,t=tG.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n};function RIe(e){return!!(e&&Oi(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const IIe=e=>{const t=new Array(10),n=(r,i)=>{if(ZS(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[i]=r;const o=Fd(r)?[]:{};return Dg(r,(a,s)=>{const l=n(a,i+1);!Ng(l)&&(o[s]=l)}),t[i]=void 0,o}}return r};return n(e,0)},xIe=ko("AsyncFunction"),OIe=e=>e&&(ZS(e)||Oi(e))&&Oi(e.then)&&Oi(e.catch),nG=((e,t)=>e?setImmediate:t?((n,r)=>(Bc.addEventListener("message",({source:i,data:o})=>{i===Bc&&o===n&&r.length&&r.shift()()},!1),i=>{r.push(i),Bc.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",Oi(Bc.postMessage)),NIe=typeof queueMicrotask<"u"?queueMicrotask.bind(Bc):typeof process<"u"&&process.nextTick||nG,oe={isArray:Fd,isArrayBuffer:jQ,isBuffer:HRe,isFormData:tIe,isArrayBufferView:JRe,isString:jRe,isNumber:zQ,isBoolean:zRe,isObject:ZS,isPlainObject:XS,isReadableStream:rIe,isRequest:iIe,isResponse:oIe,isHeaders:aIe,isUndefined:Ng,isDate:WRe,isFile:ZRe,isBlob:XRe,isRegExp:AIe,isFunction:Oi,isStream:eIe,isURLSearchParams:nIe,isTypedArray:gIe,isFileList:$Re,forEach:Dg,merge:Bx,extend:lIe,trim:sIe,stripBOM:cIe,inherits:uIe,toFlatObject:dIe,kindOf:zS,kindOfTest:ko,endsWith:pIe,toArray:fIe,forEachEntry:mIe,matchAll:hIe,isHTMLForm:EIe,hasOwnProperty:XQ,hasOwnProp:XQ,reduceDescriptors:$Q,freezeMethods:bIe,toObjectSet:vIe,toCamelCase:SIe,noop:yIe,toFiniteNumber:CIe,findKey:WQ,global:Bc,isContextDefined:ZQ,ALPHABET:tG,generateString:TIe,isSpecCompliantForm:RIe,toJSONObject:IIe,isAsyncFn:xIe,isThenable:OIe,setImmediate:nG,asap:NIe};function at(e,t,n,r,i){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),i&&(this.response=i,this.status=i.status?i.status:null)}oe.inherits(at,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:oe.toJSONObject(this.config),code:this.code,status:this.status}}});const rG=at.prototype,iG={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{iG[e]={value:e}}),Object.defineProperties(at,iG),Object.defineProperty(rG,"isAxiosError",{value:!0}),at.from=(e,t,n,r,i,o)=>{const a=Object.create(rG);return oe.toFlatObject(e,a,function(l){return l!==Error.prototype},s=>s!=="isAxiosError"),at.call(a,e.message,t,n,r,i),a.cause=e,a.name=e.name,o&&Object.assign(a,o),a};const DIe=null;function Mx(e){return oe.isPlainObject(e)||oe.isArray(e)}function oG(e){return oe.endsWith(e,"[]")?e.slice(0,-2):e}function aG(e,t,n){return e?e.concat(t).map(function(i,o){return i=oG(i),!n&&o?"["+i+"]":i}).join(n?".":""):t}function wIe(e){return oe.isArray(e)&&!e.some(Mx)}const kIe=oe.toFlatObject(oe,{},null,function(t){return/^is[A-Z]/.test(t)});function $S(e,t,n){if(!oe.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=oe.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(E,h){return!oe.isUndefined(h[E])});const r=n.metaTokens,i=n.visitor||d,o=n.dots,a=n.indexes,l=(n.Blob||typeof Blob<"u"&&Blob)&&oe.isSpecCompliantForm(t);if(!oe.isFunction(i))throw new TypeError("visitor must be a function");function c(m){if(m===null)return"";if(oe.isDate(m))return m.toISOString();if(!l&&oe.isBlob(m))throw new at("Blob is not supported. Use a Buffer instead.");return oe.isArrayBuffer(m)||oe.isTypedArray(m)?l&&typeof Blob=="function"?new Blob([m]):Buffer.from(m):m}function d(m,E,h){let A=m;if(m&&!h&&typeof m=="object"){if(oe.endsWith(E,"{}"))E=r?E:E.slice(0,-2),m=JSON.stringify(m);else if(oe.isArray(m)&&wIe(m)||(oe.isFileList(m)||oe.endsWith(E,"[]"))&&(A=oe.toArray(m)))return E=oG(E),A.forEach(function(b,v){!(oe.isUndefined(b)||b===null)&&t.append(a===!0?aG([E],v,o):a===null?E:E+"[]",c(b))}),!1}return Mx(m)?!0:(t.append(aG(h,E,o),c(m)),!1)}const p=[],f=Object.assign(kIe,{defaultVisitor:d,convertValue:c,isVisitable:Mx});function g(m,E){if(!oe.isUndefined(m)){if(p.indexOf(m)!==-1)throw Error("Circular reference detected in "+E.join("."));p.push(m),oe.forEach(m,function(A,S){(!(oe.isUndefined(A)||A===null)&&i.call(t,A,oe.isString(S)?S.trim():S,E,f))===!0&&g(A,E?E.concat(S):[S])}),p.pop()}}if(!oe.isObject(e))throw new TypeError("data must be an object");return g(e),t}function sG(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function Fx(e,t){this._pairs=[],e&&$S(e,this,t)}const lG=Fx.prototype;lG.append=function(t,n){this._pairs.push([t,n])},lG.toString=function(t){const n=t?function(r){return t.call(this,r,sG)}:sG;return this._pairs.map(function(i){return n(i[0])+"="+n(i[1])},"").join("&")};function BIe(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function cG(e,t,n){if(!t)return e;const r=n&&n.encode||BIe;oe.isFunction(n)&&(n={serialize:n});const i=n&&n.serialize;let o;if(i?o=i(t,n):o=oe.isURLSearchParams(t)?t.toString():new Fx(t,n).toString(r),o){const a=e.indexOf("#");a!==-1&&(e=e.slice(0,a)),e+=(e.indexOf("?")===-1?"?":"&")+o}return e}let uG=class{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){oe.forEach(this.handlers,function(r){r!==null&&t(r)})}};const dG={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},_Ie={isBrowser:!0,classes:{URLSearchParams:typeof URLSearchParams<"u"?URLSearchParams:Fx,FormData:typeof FormData<"u"?FormData:null,Blob:typeof Blob<"u"?Blob:null},protocols:["http","https","file","blob","url","data"]},Lx=typeof window<"u"&&typeof document<"u",Px=typeof navigator=="object"&&navigator||void 0,MIe=Lx&&(!Px||["ReactNative","NativeScript","NS"].indexOf(Px.product)<0),FIe=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",LIe=Lx&&window.location.href||"http://localhost",Vr={...Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Lx,hasStandardBrowserEnv:MIe,hasStandardBrowserWebWorkerEnv:FIe,navigator:Px,origin:LIe},Symbol.toStringTag,{value:"Module"})),..._Ie};function PIe(e,t){return $S(e,new Vr.classes.URLSearchParams,Object.assign({visitor:function(n,r,i,o){return Vr.isNode&&oe.isBuffer(n)?(this.append(r,n.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)}},t))}function UIe(e){return oe.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function VIe(e){const t={},n=Object.keys(e);let r;const i=n.length;let o;for(r=0;r<i;r++)o=n[r],t[o]=e[o];return t}function pG(e){function t(n,r,i,o){let a=n[o++];if(a==="__proto__")return!0;const s=Number.isFinite(+a),l=o>=n.length;return a=!a&&oe.isArray(i)?i.length:a,l?(oe.hasOwnProp(i,a)?i[a]=[i[a],r]:i[a]=r,!s):((!i[a]||!oe.isObject(i[a]))&&(i[a]=[]),t(n,r,i[a],o)&&oe.isArray(i[a])&&(i[a]=VIe(i[a])),!s)}if(oe.isFormData(e)&&oe.isFunction(e.entries)){const n={};return oe.forEachEntry(e,(r,i)=>{t(UIe(r),i,n,0)}),n}return null}function QIe(e,t,n){if(oe.isString(e))try{return(t||JSON.parse)(e),oe.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(0,JSON.stringify)(e)}const wg={transitional:dG,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",i=r.indexOf("application/json")>-1,o=oe.isObject(t);if(o&&oe.isHTMLForm(t)&&(t=new FormData(t)),oe.isFormData(t))return i?JSON.stringify(pG(t)):t;if(oe.isArrayBuffer(t)||oe.isBuffer(t)||oe.isStream(t)||oe.isFile(t)||oe.isBlob(t)||oe.isReadableStream(t))return t;if(oe.isArrayBufferView(t))return t.buffer;if(oe.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let s;if(o){if(r.indexOf("application/x-www-form-urlencoded")>-1)return PIe(t,this.formSerializer).toString();if((s=oe.isFileList(t))||r.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return $S(s?{"files[]":t}:t,l&&new l,this.formSerializer)}}return o||i?(n.setContentType("application/json",!1),QIe(t)):t}],transformResponse:[function(t){const n=this.transitional||wg.transitional,r=n&&n.forcedJSONParsing,i=this.responseType==="json";if(oe.isResponse(t)||oe.isReadableStream(t))return t;if(t&&oe.isString(t)&&(r&&!this.responseType||i)){const a=!(n&&n.silentJSONParsing)&&i;try{return JSON.parse(t)}catch(s){if(a)throw s.name==="SyntaxError"?at.from(s,at.ERR_BAD_RESPONSE,this,null,this.response):s}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Vr.classes.FormData,Blob:Vr.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};oe.forEach(["delete","get","head","post","put","patch"],e=>{wg.headers[e]={}});const GIe=oe.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),KIe=e=>{const t={};let n,r,i;return e&&e.split(`
147
147
  `).forEach(function(a){i=a.indexOf(":"),n=a.substring(0,i).trim().toLowerCase(),r=a.substring(i+1).trim(),!(!n||t[n]&&GIe[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},fG=Symbol("internals");function kg(e){return e&&String(e).trim().toLowerCase()}function eA(e){return e===!1||e==null?e:oe.isArray(e)?e.map(eA):String(e)}function YIe(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const qIe=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Ux(e,t,n,r,i){if(oe.isFunction(r))return r.call(this,t,n);if(i&&(t=n),!!oe.isString(t)){if(oe.isString(r))return t.indexOf(r)!==-1;if(oe.isRegExp(r))return r.test(t)}}function HIe(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function JIe(e,t){const n=oe.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(i,o,a){return this[r].call(this,t,i,o,a)},configurable:!0})})}class si{constructor(t){t&&this.set(t)}set(t,n,r){const i=this;function o(s,l,c){const d=kg(l);if(!d)throw new Error("header name must be a non-empty string");const p=oe.findKey(i,d);(!p||i[p]===void 0||c===!0||c===void 0&&i[p]!==!1)&&(i[p||l]=eA(s))}const a=(s,l)=>oe.forEach(s,(c,d)=>o(c,d,l));if(oe.isPlainObject(t)||t instanceof this.constructor)a(t,n);else if(oe.isString(t)&&(t=t.trim())&&!qIe(t))a(KIe(t),n);else if(oe.isHeaders(t))for(const[s,l]of t.entries())o(l,s,r);else t!=null&&o(n,t,r);return this}get(t,n){if(t=kg(t),t){const r=oe.findKey(this,t);if(r){const i=this[r];if(!n)return i;if(n===!0)return YIe(i);if(oe.isFunction(n))return n.call(this,i,r);if(oe.isRegExp(n))return n.exec(i);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=kg(t),t){const r=oe.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||Ux(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let i=!1;function o(a){if(a=kg(a),a){const s=oe.findKey(r,a);s&&(!n||Ux(r,r[s],s,n))&&(delete r[s],i=!0)}}return oe.isArray(t)?t.forEach(o):o(t),i}clear(t){const n=Object.keys(this);let r=n.length,i=!1;for(;r--;){const o=n[r];(!t||Ux(this,this[o],o,t,!0))&&(delete this[o],i=!0)}return i}normalize(t){const n=this,r={};return oe.forEach(this,(i,o)=>{const a=oe.findKey(r,o);if(a){n[a]=eA(i),delete n[o];return}const s=t?HIe(o):String(o).trim();s!==o&&delete n[o],n[s]=eA(i),r[s]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return oe.forEach(this,(r,i)=>{r!=null&&r!==!1&&(n[i]=t&&oe.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(`
148
148
  `)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(i=>r.set(i)),r}static accessor(t){const r=(this[fG]=this[fG]={accessors:{}}).accessors,i=this.prototype;function o(a){const s=kg(a);r[s]||(JIe(i,a),r[s]=!0)}return oe.isArray(t)?t.forEach(o):o(t),this}}si.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),oe.reduceDescriptors(si.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}}),oe.freezeMethods(si);function Vx(e,t){const n=this||wg,r=t||n,i=si.from(r.headers);let o=r.data;return oe.forEach(e,function(s){o=s.call(n,o,i.normalize(),t?t.status:void 0)}),i.normalize(),o}function gG(e){return!!(e&&e.__CANCEL__)}function Ld(e,t,n){at.call(this,e??"canceled",at.ERR_CANCELED,t,n),this.name="CanceledError"}oe.inherits(Ld,at,{__CANCEL__:!0});function mG(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new at("Request failed with status code "+n.status,[at.ERR_BAD_REQUEST,at.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function jIe(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function zIe(e,t){e=e||10;const n=new Array(e),r=new Array(e);let i=0,o=0,a;return t=t!==void 0?t:1e3,function(l){const c=Date.now(),d=r[o];a||(a=c),n[i]=l,r[i]=c;let p=o,f=0;for(;p!==i;)f+=n[p++],p=p%e;if(i=(i+1)%e,i===o&&(o=(o+1)%e),c-a<t)return;const g=d&&c-d;return g?Math.round(f*1e3/g):void 0}}function WIe(e,t){let n=0,r=1e3/t,i,o;const a=(c,d=Date.now())=>{n=d,i=null,o&&(clearTimeout(o),o=null),e.apply(null,c)};return[(...c)=>{const d=Date.now(),p=d-n;p>=r?a(c,d):(i=c,o||(o=setTimeout(()=>{o=null,a(i)},r-p)))},()=>i&&a(i)]}const tA=(e,t,n=3)=>{let r=0;const i=zIe(50,250);return WIe(o=>{const a=o.loaded,s=o.lengthComputable?o.total:void 0,l=a-r,c=i(l),d=a<=s;r=a;const p={loaded:a,total:s,progress:s?a/s:void 0,bytes:l,rate:c||void 0,estimated:c&&s&&d?(s-a)/c:void 0,event:o,lengthComputable:s!=null,[t?"download":"upload"]:!0};e(p)},n)},hG=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},EG=e=>(...t)=>oe.asap(()=>e(...t)),ZIe=Vr.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,Vr.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(Vr.origin),Vr.navigator&&/(msie|trident)/i.test(Vr.navigator.userAgent)):()=>!0,XIe=Vr.hasStandardBrowserEnv?{write(e,t,n,r,i,o){const a=[e+"="+encodeURIComponent(t)];oe.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),oe.isString(r)&&a.push("path="+r),oe.isString(i)&&a.push("domain="+i),o===!0&&a.push("secure"),document.cookie=a.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function $Ie(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function exe(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function SG(e,t){return e&&!$Ie(t)?exe(e,t):t}const AG=e=>e instanceof si?{...e}:e;function _c(e,t){t=t||{};const n={};function r(c,d,p,f){return oe.isPlainObject(c)&&oe.isPlainObject(d)?oe.merge.call({caseless:f},c,d):oe.isPlainObject(d)?oe.merge({},d):oe.isArray(d)?d.slice():d}function i(c,d,p,f){if(oe.isUndefined(d)){if(!oe.isUndefined(c))return r(void 0,c,p,f)}else return r(c,d,p,f)}function o(c,d){if(!oe.isUndefined(d))return r(void 0,d)}function a(c,d){if(oe.isUndefined(d)){if(!oe.isUndefined(c))return r(void 0,c)}else return r(void 0,d)}function s(c,d,p){if(p in t)return r(c,d);if(p in e)return r(void 0,c)}const l={url:o,method:o,data:o,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:s,headers:(c,d,p)=>i(AG(c),AG(d),p,!0)};return oe.forEach(Object.keys(Object.assign({},e,t)),function(d){const p=l[d]||i,f=p(e[d],t[d],d);oe.isUndefined(f)&&p!==s||(n[d]=f)}),n}const bG=e=>{const t=_c({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:i,xsrfCookieName:o,headers:a,auth:s}=t;t.headers=a=si.from(a),t.url=cG(SG(t.baseURL,t.url),e.params,e.paramsSerializer),s&&a.set("Authorization","Basic "+btoa((s.username||"")+":"+(s.password?unescape(encodeURIComponent(s.password)):"")));let l;if(oe.isFormData(n)){if(Vr.hasStandardBrowserEnv||Vr.hasStandardBrowserWebWorkerEnv)a.setContentType(void 0);else if((l=a.getContentType())!==!1){const[c,...d]=l?l.split(";").map(p=>p.trim()).filter(Boolean):[];a.setContentType([c||"multipart/form-data",...d].join("; "))}}if(Vr.hasStandardBrowserEnv&&(r&&oe.isFunction(r)&&(r=r(t)),r||r!==!1&&ZIe(t.url))){const c=i&&o&&XIe.read(o);c&&a.set(i,c)}return t},txe=typeof XMLHttpRequest<"u"&&function(e){return new Promise(function(n,r){const i=bG(e);let o=i.data;const a=si.from(i.headers).normalize();let{responseType:s,onUploadProgress:l,onDownloadProgress:c}=i,d,p,f,g,m;function E(){g&&g(),m&&m(),i.cancelToken&&i.cancelToken.unsubscribe(d),i.signal&&i.signal.removeEventListener("abort",d)}let h=new XMLHttpRequest;h.open(i.method.toUpperCase(),i.url,!0),h.timeout=i.timeout;function A(){if(!h)return;const b=si.from("getAllResponseHeaders"in h&&h.getAllResponseHeaders()),C={data:!s||s==="text"||s==="json"?h.responseText:h.response,status:h.status,statusText:h.statusText,headers:b,config:e,request:h};mG(function(T){n(T),E()},function(T){r(T),E()},C),h=null}"onloadend"in h?h.onloadend=A:h.onreadystatechange=function(){!h||h.readyState!==4||h.status===0&&!(h.responseURL&&h.responseURL.indexOf("file:")===0)||setTimeout(A)},h.onabort=function(){h&&(r(new at("Request aborted",at.ECONNABORTED,e,h)),h=null)},h.onerror=function(){r(new at("Network Error",at.ERR_NETWORK,e,h)),h=null},h.ontimeout=function(){let v=i.timeout?"timeout of "+i.timeout+"ms exceeded":"timeout exceeded";const C=i.transitional||dG;i.timeoutErrorMessage&&(v=i.timeoutErrorMessage),r(new at(v,C.clarifyTimeoutError?at.ETIMEDOUT:at.ECONNABORTED,e,h)),h=null},o===void 0&&a.setContentType(null),"setRequestHeader"in h&&oe.forEach(a.toJSON(),function(v,C){h.setRequestHeader(C,v)}),oe.isUndefined(i.withCredentials)||(h.withCredentials=!!i.withCredentials),s&&s!=="json"&&(h.responseType=i.responseType),c&&([f,m]=tA(c,!0),h.addEventListener("progress",f)),l&&h.upload&&([p,g]=tA(l),h.upload.addEventListener("progress",p),h.upload.addEventListener("loadend",g)),(i.cancelToken||i.signal)&&(d=b=>{h&&(r(!b||b.type?new Ld(null,e,h):b),h.abort(),h=null)},i.cancelToken&&i.cancelToken.subscribe(d),i.signal&&(i.signal.aborted?d():i.signal.addEventListener("abort",d)));const S=jIe(i.url);if(S&&Vr.protocols.indexOf(S)===-1){r(new at("Unsupported protocol "+S+":",at.ERR_BAD_REQUEST,e));return}h.send(o||null)})},nxe=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let r=new AbortController,i;const o=function(c){if(!i){i=!0,s();const d=c instanceof Error?c:this.reason;r.abort(d instanceof at?d:new Ld(d instanceof Error?d.message:d))}};let a=t&&setTimeout(()=>{a=null,o(new at(`timeout ${t} of ms exceeded`,at.ETIMEDOUT))},t);const s=()=>{e&&(a&&clearTimeout(a),a=null,e.forEach(c=>{c.unsubscribe?c.unsubscribe(o):c.removeEventListener("abort",o)}),e=null)};e.forEach(c=>c.addEventListener("abort",o));const{signal:l}=r;return l.unsubscribe=()=>oe.asap(s),l}},rxe=function*(e,t){let n=e.byteLength;if(n<t){yield e;return}let r=0,i;for(;r<n;)i=r+t,yield e.slice(r,i),r=i},ixe=async function*(e,t){for await(const n of oxe(e))yield*rxe(n,t)},oxe=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:n,value:r}=await t.read();if(n)break;yield r}}finally{await t.cancel()}},vG=(e,t,n,r)=>{const i=ixe(e,t);let o=0,a,s=l=>{a||(a=!0,r&&r(l))};return new ReadableStream({async pull(l){try{const{done:c,value:d}=await i.next();if(c){s(),l.close();return}let p=d.byteLength;if(n){let f=o+=p;n(f)}l.enqueue(new Uint8Array(d))}catch(c){throw s(c),c}},cancel(l){return s(l),i.return()}},{highWaterMark:2})},nA=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",yG=nA&&typeof ReadableStream=="function",axe=nA&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),CG=(e,...t)=>{try{return!!e(...t)}catch{return!1}},sxe=yG&&CG(()=>{let e=!1;const t=new Request(Vr.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),TG=64*1024,Qx=yG&&CG(()=>oe.isReadableStream(new Response("").body)),rA={stream:Qx&&(e=>e.body)};nA&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!rA[t]&&(rA[t]=oe.isFunction(e[t])?n=>n[t]():(n,r)=>{throw new at(`Response type '${t}' is not supported`,at.ERR_NOT_SUPPORT,r)})})})(new Response);const lxe=async e=>{if(e==null)return 0;if(oe.isBlob(e))return e.size;if(oe.isSpecCompliantForm(e))return(await new Request(Vr.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if(oe.isArrayBufferView(e)||oe.isArrayBuffer(e))return e.byteLength;if(oe.isURLSearchParams(e)&&(e=e+""),oe.isString(e))return(await axe(e)).byteLength},cxe=async(e,t)=>{const n=oe.toFiniteNumber(e.getContentLength());return n??lxe(t)},Gx={http:DIe,xhr:txe,fetch:nA&&(async e=>{let{url:t,method:n,data:r,signal:i,cancelToken:o,timeout:a,onDownloadProgress:s,onUploadProgress:l,responseType:c,headers:d,withCredentials:p="same-origin",fetchOptions:f}=bG(e);c=c?(c+"").toLowerCase():"text";let g=nxe([i,o&&o.toAbortSignal()],a),m;const E=g&&g.unsubscribe&&(()=>{g.unsubscribe()});let h;try{if(l&&sxe&&n!=="get"&&n!=="head"&&(h=await cxe(d,r))!==0){let C=new Request(t,{method:"POST",body:r,duplex:"half"}),y;if(oe.isFormData(r)&&(y=C.headers.get("content-type"))&&d.setContentType(y),C.body){const[T,R]=hG(h,tA(EG(l)));r=vG(C.body,TG,T,R)}}oe.isString(p)||(p=p?"include":"omit");const A="credentials"in Request.prototype;m=new Request(t,{...f,signal:g,method:n.toUpperCase(),headers:d.normalize().toJSON(),body:r,duplex:"half",credentials:A?p:void 0});let S=await fetch(m);const b=Qx&&(c==="stream"||c==="response");if(Qx&&(s||b&&E)){const C={};["status","statusText","headers"].forEach(O=>{C[O]=S[O]});const y=oe.toFiniteNumber(S.headers.get("content-length")),[T,R]=s&&hG(y,tA(EG(s),!0))||[];S=new Response(vG(S.body,TG,T,()=>{R&&R(),E&&E()}),C)}c=c||"text";let v=await rA[oe.findKey(rA,c)||"text"](S,e);return!b&&E&&E(),await new Promise((C,y)=>{mG(C,y,{data:v,headers:si.from(S.headers),status:S.status,statusText:S.statusText,config:e,request:m})})}catch(A){throw E&&E(),A&&A.name==="TypeError"&&/fetch/i.test(A.message)?Object.assign(new at("Network Error",at.ERR_NETWORK,e,m),{cause:A.cause||A}):at.from(A,A&&A.code,e,m)}})};oe.forEach(Gx,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const RG=e=>`- ${e}`,uxe=e=>oe.isFunction(e)||e===null||e===!1,IG={getAdapter:e=>{e=oe.isArray(e)?e:[e];const{length:t}=e;let n,r;const i={};for(let o=0;o<t;o++){n=e[o];let a;if(r=n,!uxe(n)&&(r=Gx[(a=String(n)).toLowerCase()],r===void 0))throw new at(`Unknown adapter '${a}'`);if(r)break;i[a||"#"+o]=r}if(!r){const o=Object.entries(i).map(([s,l])=>`adapter ${s} `+(l===!1?"is not supported by the environment":"is not available in the build"));let a=t?o.length>1?`since :
149
149
  `+o.map(RG).join(`