vrfi-design-system 1.0.75 → 1.0.76

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/main.es.js CHANGED
@@ -49541,7 +49541,7 @@ const zfe = ({
49541
49541
  children: e
49542
49542
  }
49543
49543
  ) });
49544
- var WP = /* @__PURE__ */ ((e) => (e.PRIMARY = "primary", e.DEFAULT = "default", e))(WP || {}), tc = /* @__PURE__ */ ((e) => (e.SMALL = "small", e.LARGE = "large", e))(tc || {}), uh = /* @__PURE__ */ ((e) => (e.PRIMARY = "#0cadfd", e.WHITE = "white", e))(uh || {}), Uc = /* @__PURE__ */ ((e) => (e.PRIMARY = "primary", e.SECONDARY = "secondary", e.TERTIARY = "tertiary", e))(Uc || {}), Rfe = /* @__PURE__ */ ((e) => (e.BUTTON = "button", e.TEXT_BOX = "textbox", e.SWITCH = "switch", e.COMBOBOX = "combobox", e.LISTBOX = "listbox", e.RADIO = "radio", e.HEADING = "heading", e.IMAGE = "img", e.TABLE = "table", e.OPTION = "option", e.DIALOG = "dialog", e.TAB = "tab", e.ALERT = "alert", e.CHECKBOX = "checkbox", e))(Rfe || {}), Km = /* @__PURE__ */ ((e) => (e.ASC = "asc", e.DESC = "desc", e.EMPTY = "", e.ASCEND = "ascend", e))(Km || {}), iE = /* @__PURE__ */ ((e) => (e.ASCEND = "ascend", e.DESCEND = "descend", e))(iE || {}), QP = class {
49544
+ var WP = /* @__PURE__ */ ((e) => (e.PRIMARY = "primary", e.DEFAULT = "default", e))(WP || {}), tc = /* @__PURE__ */ ((e) => (e.SMALL = "small", e.LARGE = "large", e))(tc || {}), uh = /* @__PURE__ */ ((e) => (e.PRIMARY = "#0cadfd", e.WHITE = "white", e))(uh || {}), Uc = /* @__PURE__ */ ((e) => (e.PRIMARY = "primary", e.SECONDARY = "secondary", e.TERTIARY = "tertiary", e))(Uc || {}), Rfe = /* @__PURE__ */ ((e) => (e.BUTTON = "button", e.TEXT_BOX = "textbox", e.SWITCH = "switch", e.COMBOBOX = "combobox", e.LISTBOX = "listbox", e.RADIO = "radio", e.HEADING = "heading", e.IMAGE = "img", e.TABLE = "table", e.OPTION = "option", e.DIALOG = "dialog", e.TAB = "tab", e.CHECKBOX = "checkbox", e.ROW = "row", e.LOADING = "loading", e))(Rfe || {}), Km = /* @__PURE__ */ ((e) => (e.ASC = "asc", e.DESC = "desc", e.EMPTY = "", e.ASCEND = "ascend", e))(Km || {}), iE = /* @__PURE__ */ ((e) => (e.ASCEND = "ascend", e.DESCEND = "descend", e))(iE || {}), QP = class {
49545
49545
  constructor() {
49546
49546
  this.listeners = /* @__PURE__ */ new Set(), this.subscribe = this.subscribe.bind(this);
49547
49547
  }
package/dist/main.umd.js CHANGED
@@ -425,7 +425,7 @@ html body {
425
425
  ${n}-eye,
426
426
  ${n}-download,
427
427
  ${n}-delete
428
- `]:{zIndex:10,width:r,margin:`0 ${re(e.marginXXS)}`,fontSize:r,cursor:"pointer",transition:`all ${e.motionDurationSlow}`,color:o,"&:hover":{color:o},svg:{verticalAlign:"baseline"}}},[`${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% - ${re(a(e.paddingXS).mul(2).equal())})`},[`${l}-uploading`]:{[`&${l}`]:{backgroundColor:e.colorFillAlter},[`&::before, ${n}-eye, ${n}-download, ${n}-delete`]:{display:"none"}},[`${l}-progress`]:{bottom:e.marginXL,width:`calc(100% - ${re(a(e.paddingXS).mul(2).equal())})`,paddingInlineStart:0}}}),[`${t}-wrapper${t}-picture-circle-wrapper`]:{[`${t}${t}-select`]:{borderRadius:"50%"}}}},Vae=e=>{const{componentCls:t}=e;return{[`${t}-rtl`]:{direction:"rtl"}}},Xae=e=>{const{componentCls:t,colorTextDisabled:n}=e;return{[`${t}-wrapper`]:Object.assign(Object.assign({},Fn(e)),{[t]:{outline:0,"input[type='file']":{cursor:"pointer"}},[`${t}-select`]:{display:"inline-block"},[`${t}-disabled`]:{color:n,cursor:"not-allowed"}})}},Kae=$n("Upload",e=>{const{fontSizeHeading3:t,fontHeight:n,lineWidth:r,controlHeightLG:o,calc:a}=e,i=An(e,{uploadThumbnailSize:a(t).mul(2).equal(),uploadProgressOffset:a(a(n).div(2)).add(r).equal(),uploadPicCardSize:a(o).mul(2.55).equal()});return[Xae(i),Fae(i),Wae(i),Qae(i),_ae(i),Jae(i),Vae(i),kC(i)]},e=>({actionsColor:e.colorTextDescription}));function Lm(e){return Object.assign(Object.assign({},e),{lastModified:e.lastModified,lastModifiedDate:e.lastModifiedDate,name:e.name,size:e.size,type:e.type,uid:e.uid,percent:0,originFileObj:e})}function $m(e,t){const n=Le(t),r=n.findIndex(o=>{let{uid:a}=o;return a===e.uid});return r===-1?n.push(e):n[r]=e,n}function iE(e,t){const n=e.uid!==void 0?"uid":"name";return t.filter(r=>r[n]===e[n])[0]}function Gae(e,t){const n=e.uid!==void 0?"uid":"name",r=t.filter(o=>o[n]!==e[n]);return r.length===t.length?null:r}const Uae=function(){const t=(arguments.length>0&&arguments[0]!==void 0?arguments[0]:"").split("/"),r=t[t.length-1].split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(r)||[""])[0]},Cz=e=>e.indexOf("image/")===0,Yae=e=>{if(e.type&&!e.thumbUrl)return Cz(e.type);const t=e.thumbUrl||e.url||"",n=Uae(t);return/^data:image\//.test(t)||/(webp|svg|png|gif|jpg|jpeg|jfif|bmp|dpg|ico|heic|heif)$/i.test(n)?!0:!(/^data:/.test(t)||n)},Tl=200;function qae(e){return new Promise(t=>{if(!e.type||!Cz(e.type)){t("");return}const n=document.createElement("canvas");n.width=Tl,n.height=Tl,n.style.cssText=`position: fixed; left: 0; top: 0; width: ${Tl}px; height: ${Tl}px; z-index: 9999; display: none;`,document.body.appendChild(n);const r=n.getContext("2d"),o=new Image;if(o.onload=()=>{const{width:a,height:i}=o;let l=Tl,s=Tl,u=0,A=0;a>i?(s=i*(Tl/a),A=-(s-l)/2):(l=a*(Tl/i),u=-(l-s)/2),r.drawImage(o,u,A,l,s);const f=n.toDataURL();document.body.removeChild(n),window.URL.revokeObjectURL(o.src),t(f)},o.crossOrigin="anonymous",e.type.startsWith("image/svg+xml")){const a=new FileReader;a.onload=()=>{a.result&&typeof a.result=="string"&&(o.src=a.result)},a.readAsDataURL(e)}else if(e.type.startsWith("image/gif")){const a=new FileReader;a.onload=()=>{a.result&&t(a.result)},a.readAsDataURL(e)}else o.src=window.URL.createObjectURL(e)})}const Zae=c.forwardRef((e,t)=>{let{prefixCls:n,className:r,style:o,locale:a,listType:i,file:l,items:s,progress:u,iconRender:A,actionIconRender:f,itemRender:g,isImgUrl:m,showPreviewIcon:h,showRemoveIcon:b,showDownloadIcon:p,previewIcon:C,removeIcon:y,downloadIcon:E,extra:x,onPreview:w,onDownload:P,onClose:O}=e;var I,T;const{status:D}=l,[M,H]=c.useState(D);c.useEffect(()=>{D!=="removed"&&H(D)},[D]);const[L,N]=c.useState(!1);c.useEffect(()=>{const le=setTimeout(()=>{N(!0)},300);return()=>{clearTimeout(le)}},[]);const j=A(l);let z=c.createElement("div",{className:`${n}-icon`},j);if(i==="picture"||i==="picture-card"||i==="picture-circle")if(M==="uploading"||!l.thumbUrl&&!l.url){const le=ce(`${n}-list-item-thumbnail`,{[`${n}-list-item-file`]:M!=="uploading"});z=c.createElement("div",{className:le},j)}else{const le=m!=null&&m(l)?c.createElement("img",{src:l.thumbUrl||l.url,alt:l.name,className:`${n}-list-item-image`,crossOrigin:l.crossOrigin}):j,U=ce(`${n}-list-item-thumbnail`,{[`${n}-list-item-file`]:m&&!m(l)});z=c.createElement("a",{className:U,onClick:de=>w(l,de),href:l.url||l.thumbUrl,target:"_blank",rel:"noopener noreferrer"},le)}const B=ce(`${n}-list-item`,`${n}-list-item-${M}`),_=typeof l.linkProps=="string"?JSON.parse(l.linkProps):l.linkProps,k=b?f((typeof y=="function"?y(l):y)||c.createElement(LB,null),()=>O(l),n,a.removeFile,!0):null,$=p&&M==="done"?f((typeof E=="function"?E(l):E)||c.createElement($B,null),()=>P(l),n,a.downloadFile):null,F=i!=="picture-card"&&i!=="picture-circle"&&c.createElement("span",{key:"download-delete",className:ce(`${n}-list-item-actions`,{picture:i==="picture"})},$,k),W=typeof x=="function"?x(l):x,Q=W&&c.createElement("span",{className:`${n}-list-item-extra`},W),V=ce(`${n}-list-item-name`),G=l.url?c.createElement("a",Object.assign({key:"view",target:"_blank",rel:"noopener noreferrer",className:V,title:l.name},_,{href:l.url,onClick:le=>w(l,le)}),l.name,Q):c.createElement("span",{key:"view",className:V,onClick:le=>w(l,le),title:l.name},l.name,Q),oe=h&&(l.url||l.thumbUrl)?c.createElement("a",{href:l.url||l.thumbUrl,target:"_blank",rel:"noopener noreferrer",onClick:le=>w(l,le),title:a.previewFile},typeof C=="function"?C(l):C||c.createElement(fm,null)):null,te=(i==="picture-card"||i==="picture-circle")&&M!=="uploading"&&c.createElement("span",{className:`${n}-list-item-actions`},oe,M==="done"&&$,k),{getPrefixCls:ie}=c.useContext(It),Ae=ie(),ue=c.createElement("div",{className:B},z,G,F,te,L&&c.createElement(io,{motionName:`${Ae}-fade`,visible:M==="uploading",motionDeadline:2e3},le=>{let{className:U}=le;const de="percent"in l?c.createElement(mw,Object.assign({},u,{type:"line",percent:l.percent,"aria-label":l["aria-label"],"aria-labelledby":l["aria-labelledby"]})):null;return c.createElement("div",{className:ce(`${n}-list-item-progress`,U)},de)})),ee=l.response&&typeof l.response=="string"?l.response:((I=l.error)===null||I===void 0?void 0:I.statusText)||((T=l.error)===null||T===void 0?void 0:T.message)||a.uploadError,Z=M==="error"?c.createElement(ea,{title:ee,getPopupContainer:le=>le.parentNode},ue):ue;return c.createElement("div",{className:ce(`${n}-list-item-container`,r),style:o,ref:t},g?g(Z,l,s,{download:P.bind(null,l),preview:w.bind(null,l),remove:O.bind(null,l)}):Z)}),eie=(e,t)=>{const{listType:n="text",previewFile:r=qae,onPreview:o,onDownload:a,onRemove:i,locale:l,iconRender:s,isImageUrl:u=Yae,prefixCls:A,items:f=[],showPreviewIcon:g=!0,showRemoveIcon:m=!0,showDownloadIcon:h=!1,removeIcon:b,previewIcon:p,downloadIcon:C,extra:y,progress:E={size:[-1,2],showInfo:!1},appendAction:x,appendActionVisible:w=!0,itemRender:P,disabled:O}=e,I=ly(),[T,D]=c.useState(!1);c.useEffect(()=>{n!=="picture"&&n!=="picture-card"&&n!=="picture-circle"||(f||[]).forEach(V=>{typeof document>"u"||typeof window>"u"||!window.FileReader||!window.File||!(V.originFileObj instanceof File||V.originFileObj instanceof Blob)||V.thumbUrl!==void 0||(V.thumbUrl="",r&&r(V.originFileObj).then(G=>{V.thumbUrl=G||"",I()}))})},[n,f,r]),c.useEffect(()=>{D(!0)},[]);const M=(V,G)=>{if(o)return G==null||G.preventDefault(),o(V)},H=V=>{typeof a=="function"?a(V):V.url&&window.open(V.url)},L=V=>{i==null||i(V)},N=V=>{if(s)return s(V,n);const G=V.status==="uploading",oe=u!=null&&u(V)?c.createElement(GB,null):c.createElement(_B,null);let te=G?c.createElement(Wi,null):c.createElement(KB,null);return n==="picture"?te=G?c.createElement(Wi,null):oe:(n==="picture-card"||n==="picture-circle")&&(te=G?l.uploading:oe),te},j=(V,G,oe,te,ie)=>{const Ae={type:"text",size:"small",title:te,onClick:ue=>{var ee,Z;G(),c.isValidElement(V)&&((Z=(ee=V.props).onClick)===null||Z===void 0||Z.call(ee,ue))},className:`${oe}-list-item-action`};if(ie&&(Ae.disabled=O),c.isValidElement(V)){const ue=to(V,Object.assign(Object.assign({},V.props),{onClick:()=>{}}));return c.createElement(lo,Object.assign({},Ae,{icon:ue}))}return c.createElement(lo,Object.assign({},Ae),c.createElement("span",null,V))};c.useImperativeHandle(t,()=>({handlePreview:M,handleDownload:H}));const{getPrefixCls:z}=c.useContext(It),B=z("upload",A),_=z(),k=ce(`${B}-list`,`${B}-list-${n}`),$=Le(f.map(V=>({key:V.uid,file:V})));let W={motionDeadline:2e3,motionName:`${B}-${n==="picture-card"||n==="picture-circle"?"animate-inline":"animate"}`,keys:$,motionAppear:T};const Q=c.useMemo(()=>{const V=Object.assign({},iC(_));return delete V.onAppearEnd,delete V.onEnterEnd,delete V.onLeaveEnd,V},[_]);return n!=="picture-card"&&n!=="picture-circle"&&(W=Object.assign(Object.assign({},Q),W)),c.createElement("div",{className:k},c.createElement(Gb,Object.assign({},W,{component:!1}),V=>{let{key:G,file:oe,className:te,style:ie}=V;return c.createElement(Zae,{key:G,locale:l,prefixCls:B,className:te,style:ie,file:oe,items:f,progress:E,listType:n,isImgUrl:u,showPreviewIcon:g,showRemoveIcon:m,showDownloadIcon:h,removeIcon:b,previewIcon:p,downloadIcon:C,extra:y,iconRender:N,actionIconRender:j,itemRender:P,onPreview:M,onDownload:H,onClose:L})}),x&&c.createElement(io,Object.assign({},W,{visible:w,forceRender:!0}),V=>{let{className:G,style:oe}=V;return to(x,te=>({className:ce(te.className,G),style:Object.assign(Object.assign(Object.assign({},oe),{pointerEvents:G?"none":void 0}),te.style)}))}))},yz=c.forwardRef(eie);process.env.NODE_ENV!=="production"&&(yz.displayName="UploadList");var tie=function(e,t,n,r){function o(a){return a instanceof n?a:new n(function(i){i(a)})}return new(n||(n=Promise))(function(a,i){function l(A){try{u(r.next(A))}catch(f){i(f)}}function s(A){try{u(r.throw(A))}catch(f){i(f)}}function u(A){A.done?a(A.value):o(A.value).then(l,s)}u((r=r.apply(e,t||[])).next())})};const Sd=`__LIST_IGNORE_${Date.now()}__`,nie=(e,t)=>{const{fileList:n,defaultFileList:r,onRemove:o,showUploadList:a=!0,listType:i="text",onPreview:l,onDownload:s,onChange:u,onDrop:A,previewFile:f,disabled:g,locale:m,iconRender:h,isImageUrl:b,progress:p,prefixCls:C,className:y,type:E="select",children:x,style:w,itemRender:P,maxCount:O,data:I={},multiple:T=!1,hasControlInside:D=!0,action:M="",accept:H="",supportServerRender:L=!0,rootClassName:N}=e,j=c.useContext(Uo),z=g??j,[B,_]=En(r||[],{value:n,postState:be=>be??[]}),[k,$]=c.useState("drop"),F=c.useRef(null),W=c.useRef(null);if(process.env.NODE_ENV!=="production"){const be=vn("Upload");process.env.NODE_ENV!=="production"&&be("fileList"in e||!("value"in e),"usage","`value` is not a valid prop, do you mean `fileList`?"),be.deprecated(!("transformFile"in e),"transformFile","beforeUpload")}c.useMemo(()=>{const be=Date.now();(n||[]).forEach((Be,Se)=>{!Be.uid&&!Object.isFrozen(Be)&&(Be.uid=`__AUTO__${be}_${Se}__`)})},[n]);const Q=(be,Be,Se)=>{let he=Le(Be),Me=!1;O===1?he=he.slice(-1):O&&(Me=he.length>O,he=he.slice(0,O)),Rn.flushSync(()=>{_(he)});const ut={file:be,fileList:he};Se&&(ut.event=Se),(!Me||be.status==="removed"||he.some(pt=>pt.uid===be.uid))&&Rn.flushSync(()=>{u==null||u(ut)})},V=(be,Be)=>tie(void 0,void 0,void 0,function*(){const{beforeUpload:Se,transformFile:he}=e;let Me=be;if(Se){const ut=yield Se(be,Be);if(ut===!1)return!1;if(delete be[Sd],ut===Sd)return Object.defineProperty(be,Sd,{value:!0,configurable:!0}),!1;typeof ut=="object"&&ut&&(Me=ut)}return he&&(Me=yield he(Me)),Me}),G=be=>{const Be=be.filter(Me=>!Me.file[Sd]);if(!Be.length)return;const Se=Be.map(Me=>Lm(Me.file));let he=Le(B);Se.forEach(Me=>{he=$m(Me,he)}),Se.forEach((Me,ut)=>{let pt=Me;if(Be[ut].parsedFile)Me.status="uploading";else{const{originFileObj:dt}=Me;let Rt;try{Rt=new File([dt],dt.name,{type:dt.type})}catch{Rt=new Blob([dt],{type:dt.type}),Rt.name=dt.name,Rt.lastModifiedDate=new Date,Rt.lastModified=new Date().getTime()}Rt.uid=Me.uid,pt=Rt}Q(pt,he)})},oe=(be,Be,Se)=>{try{typeof be=="string"&&(be=JSON.parse(be))}catch{}if(!iE(Be,B))return;const he=Lm(Be);he.status="done",he.percent=100,he.response=be,he.xhr=Se;const Me=$m(he,B);Q(he,Me)},te=(be,Be)=>{if(!iE(Be,B))return;const Se=Lm(Be);Se.status="uploading",Se.percent=be.percent;const he=$m(Se,B);Q(Se,he,be)},ie=(be,Be,Se)=>{if(!iE(Se,B))return;const he=Lm(Se);he.error=be,he.response=Be,he.status="error";const Me=$m(he,B);Q(he,Me)},Ae=be=>{let Be;Promise.resolve(typeof o=="function"?o(be):o).then(Se=>{var he;if(Se===!1)return;const Me=Gae(be,B);Me&&(Be=Object.assign(Object.assign({},be),{status:"removed"}),B==null||B.forEach(ut=>{const pt=Be.uid!==void 0?"uid":"name";ut[pt]===Be[pt]&&!Object.isFrozen(ut)&&(ut.status="removed")}),(he=F.current)===null||he===void 0||he.abort(Be),Q(Be,Me))})},ue=be=>{$(be.type),be.type==="drop"&&(A==null||A(be))};c.useImperativeHandle(t,()=>({onBatchStart:G,onSuccess:oe,onProgress:te,onError:ie,fileList:B,upload:F.current,nativeElement:W.current}));const{getPrefixCls:ee,direction:Z,upload:le}=c.useContext(It),U=ee("upload",C),de=Object.assign(Object.assign({onBatchStart:G,onError:ie,onProgress:te,onSuccess:oe},e),{data:I,multiple:T,action:M,accept:H,supportServerRender:L,prefixCls:U,disabled:z,beforeUpload:V,onChange:void 0,hasControlInside:D});delete de.className,delete de.style,(!x||z)&&delete de.id;const fe=`${U}-wrapper`,[Ce,ve,Te]=Kae(U,fe),[xe]=ki("Upload",$a.Upload),{showRemoveIcon:we,showPreviewIcon:ze,showDownloadIcon:me,removeIcon:ye,previewIcon:Ie,downloadIcon:Re,extra:Xe}=typeof a=="boolean"?{}:a,Ue=typeof we>"u"?!z:!!we,nt=(be,Be)=>a?c.createElement(yz,{prefixCls:U,listType:i,items:B,previewFile:f,onPreview:l,onDownload:s,onRemove:Ae,showRemoveIcon:Ue,showPreviewIcon:ze,showDownloadIcon:me,removeIcon:ye,previewIcon:Ie,downloadIcon:Re,iconRender:h,extra:Xe,locale:Object.assign(Object.assign({},xe),m),isImageUrl:b,progress:p,appendAction:be,appendActionVisible:Be,itemRender:P,disabled:z}):be,Fe=ce(fe,y,N,ve,Te,le==null?void 0:le.className,{[`${U}-rtl`]:Z==="rtl",[`${U}-picture-card-wrapper`]:i==="picture-card",[`${U}-picture-circle-wrapper`]:i==="picture-circle"}),qe=Object.assign(Object.assign({},le==null?void 0:le.style),w);if(E==="drag"){const be=ce(ve,U,`${U}-drag`,{[`${U}-drag-uploading`]:B.some(Be=>Be.status==="uploading"),[`${U}-drag-hover`]:k==="dragover",[`${U}-disabled`]:z,[`${U}-rtl`]:Z==="rtl"});return Ce(c.createElement("span",{className:Fe,ref:W},c.createElement("div",{className:be,style:qe,onDrop:ue,onDragOver:ue,onDragLeave:ue},c.createElement(aE,Object.assign({},de,{ref:F,className:`${U}-btn`}),c.createElement("div",{className:`${U}-drag-container`},x))),nt()))}const Ve=ce(U,`${U}-select`,{[`${U}-disabled`]:z}),je=c.createElement("div",{className:Ve,style:x?void 0:{display:"none"}},c.createElement(aE,Object.assign({},de,{ref:F})));return Ce(i==="picture-card"||i==="picture-circle"?c.createElement("span",{className:Fe,ref:W},nt(je,!!x)):c.createElement("span",{className:Fe,ref:W},je,nt()))},lE=c.forwardRef(nie);process.env.NODE_ENV!=="production"&&(lE.displayName="Upload");var rie=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const wz=c.forwardRef((e,t)=>{var{style:n,height:r,hasControlInside:o=!1}=e,a=rie(e,["style","height","hasControlInside"]);return c.createElement(lE,Object.assign({ref:t,hasControlInside:o},a,{type:"drag",style:Object.assign(Object.assign({},n),{height:r})}))});process.env.NODE_ENV!=="production"&&(wz.displayName="Dragger");const Od=lE;Od.Dragger=wz,Od.LIST_IGNORE=Sd;const Id={modalContainer:"_modalContainer_grobn_24",modalTitle:"_modalTitle_grobn_28",warningIcon:"_warningIcon_grobn_33",successIcon:"_successIcon_grobn_40",modalTitleText:"_modalTitleText_grobn_47"};var sE=(e=>(e.SUCCESS="success",e.DANGER="danger",e.BASIC="basic",e.WARNING="warning",e))(sE||{});const Ez=({children:e,onClose:t,visible:n,title:r,width:o,onOK:a,footer:i,confirmLoading:l,modalType:s="basic",modalTitleIcon:u,...A})=>K.jsx("div",{className:Id.modalContainer,children:K.jsx(ta,{width:o,footer:i,title:K.jsxs("span",{className:Id.modalTitle,children:[(s==="success"||s==="warning")&&K.jsx("span",{className:s==="success"?Id.successIcon:Id.warningIcon,children:K.jsx("i",{"data-testid":`modal-icon-${s}`,className:s==="success"?xn.SUCCESS_SOLID_ICON:xn.ALERT})}),K.jsxs("span",{className:Id.modalTitleText,children:[" ",r," "]})]}),visible:n,confirmLoading:l,onOk:a??t,onCancel:t,className:s,...A,children:e})});var km=(e=>(e.PRIMARY="primary",e.DEFAULT="default",e))(km||{}),Dl=(e=>(e.SMALL="small",e.LARGE="large",e))(Dl||{}),Td=(e=>(e.PRIMARY="#0cadfd",e.WHITE="white",e))(Td||{}),zs=(e=>(e.PRIMARY="primary",e.SECONDARY="secondary",e.TERTIARY="tertiary",e))(zs||{}),xz=(e=>(e.BUTTON="button",e.TEXT_BOX="textbox",e.SWITCH="switch",e.COMBOBOX="combobox",e.LISTBOX="listbox",e.RADIO="radio",e.HEADING="heading",e.IMAGE="img",e.TABLE="table",e.OPTION="option",e.DIALOG="dialog",e.TAB="tab",e.ALERT="alert",e.CHECKBOX="checkbox",e))(xz||{}),Dd=(e=>(e.ASC="asc",e.DESC="desc",e.EMPTY="",e.ASCEND="ascend",e))(Dd||{}),Fm=(e=>(e.ASCEND="ascend",e.DESCEND="descend",e))(Fm||{}),cE=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},_m=typeof window>"u"||"Deno"in globalThis;function oie(){}function Pz(e){return typeof e=="number"&&e>=0&&e!==1/0}function aie(e,t){return Math.max(e+(t||0)-Date.now(),0)}function Jm(e,t){return typeof e=="function"?e(t):e}function Ei(e,t){return typeof e=="function"?e(t):e}function uE(e,t){if(e===t)return e;const n=Sz(e)&&Sz(t);if(n||Oz(e)&&Oz(t)){const r=n?e:Object.keys(e),o=r.length,a=n?t:Object.keys(t),i=a.length,l=n?[]:{};let s=0;for(let u=0;u<i;u++){const A=n?u:a[u];(!n&&r.includes(A)||n)&&e[A]===void 0&&t[A]===void 0?(l[A]=void 0,s++):(l[A]=uE(e[A],t[A]),l[A]===e[A]&&e[A]!==void 0&&s++)}return o===i&&s===o?e:l}return t}function AE(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(e[n]!==t[n])return!1;return!0}function Sz(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function Oz(e){if(!Iz(e))return!1;const t=e.constructor;if(t===void 0)return!0;const n=t.prototype;return!(!Iz(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function Iz(e){return Object.prototype.toString.call(e)==="[object Object]"}function Tz(e,t,n){if(typeof n.structuralSharing=="function")return n.structuralSharing(e,t);if(n.structuralSharing!==!1){if(process.env.NODE_ENV!=="production")try{return uE(e,t)}catch(r){console.error(`Structural sharing requires data to be JSON serializable. To fix this, turn off structuralSharing or return JSON-serializable data from your queryFn. [${n.queryHash}]: ${r}`)}return uE(e,t)}return t}function iie(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function lie(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var Dz=Symbol();function sie(e,t){return process.env.NODE_ENV!=="production"&&e.queryFn===Dz&&console.error(`Attempted to invoke queryFn when set to skipToken. This is likely a configuration error. Query hash: '${e.queryHash}'`),!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===Dz?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}var cie=($H=class extends cE{constructor(){super();Tr(this,ac);Tr(this,Gl);Tr(this,Ku);Ln(this,Ku,t=>{if(!_m&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){yt(this,Gl)||this.setEventListener(yt(this,Ku))}onUnsubscribe(){var t;this.hasListeners()||((t=yt(this,Gl))==null||t.call(this),Ln(this,Gl,void 0))}setEventListener(t){var n;Ln(this,Ku,t),(n=yt(this,Gl))==null||n.call(this),Ln(this,Gl,t(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()}))}setFocused(t){yt(this,ac)!==t&&(Ln(this,ac,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(n=>{n(t)})}isFocused(){var t;return typeof yt(this,ac)=="boolean"?yt(this,ac):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},ac=new WeakMap,Gl=new WeakMap,Ku=new WeakMap,$H),uie=new cie,Aie=(kH=class extends cE{constructor(){super();Tr(this,Gu,!0);Tr(this,Ul);Tr(this,Uu);Ln(this,Uu,t=>{if(!_m&&window.addEventListener){const n=()=>t(!0),r=()=>t(!1);return window.addEventListener("online",n,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",n),window.removeEventListener("offline",r)}}})}onSubscribe(){yt(this,Ul)||this.setEventListener(yt(this,Uu))}onUnsubscribe(){var t;this.hasListeners()||((t=yt(this,Ul))==null||t.call(this),Ln(this,Ul,void 0))}setEventListener(t){var n;Ln(this,Uu,t),(n=yt(this,Ul))==null||n.call(this),Ln(this,Ul,t(this.setOnline.bind(this)))}setOnline(t){yt(this,Gu)!==t&&(Ln(this,Gu,t),this.listeners.forEach(r=>{r(t)}))}isOnline(){return yt(this,Gu)}},Gu=new WeakMap,Ul=new WeakMap,Uu=new WeakMap,kH),die=new Aie;function fie(e){return(e??"online")==="online"?die.isOnline():!0}function gie(){let e=[],t=0,n=l=>{l()},r=l=>{l()},o=l=>setTimeout(l,0);const a=l=>{t?e.push(l):o(()=>{n(l)})},i=()=>{const l=e;e=[],l.length&&o(()=>{r(()=>{l.forEach(s=>{n(s)})})})};return{batch:l=>{let s;t++;try{s=l()}finally{t--,t||i()}return s},batchCalls:l=>(...s)=>{a(()=>{l(...s)})},schedule:a,setNotifyFunction:l=>{n=l},setBatchNotifyFunction:l=>{r=l},setScheduler:l=>{o=l}}}var Nz=gie();function vie(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:fie(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function Bz(e){return{onFetch:(t,n)=>{var A,f,g,m,h;const r=t.options,o=(g=(f=(A=t.fetchOptions)==null?void 0:A.meta)==null?void 0:f.fetchMore)==null?void 0:g.direction,a=((m=t.state.data)==null?void 0:m.pages)||[],i=((h=t.state.data)==null?void 0:h.pageParams)||[];let l={pages:[],pageParams:[]},s=0;const u=async()=>{let b=!1;const p=E=>{Object.defineProperty(E,"signal",{enumerable:!0,get:()=>(t.signal.aborted?b=!0:t.signal.addEventListener("abort",()=>{b=!0}),t.signal)})},C=sie(t.options,t.fetchOptions),y=async(E,x,w)=>{if(b)return Promise.reject();if(x==null&&E.pages.length)return Promise.resolve(E);const P={queryKey:t.queryKey,pageParam:x,direction:w?"backward":"forward",meta:t.options.meta};p(P);const O=await C(P),{maxPages:I}=t.options,T=w?lie:iie;return{pages:T(E.pages,O,I),pageParams:T(E.pageParams,x,I)}};if(o&&a.length){const E=o==="backward",x=E?Mz:dE,w={pages:a,pageParams:i},P=x(r,w);l=await y(w,P,E)}else{const E=a.length;do{const x=s===0?i[0]??r.initialPageParam:dE(r,l);if(s>0&&x==null)break;l=await y(l,x),s++}while(s<E)}return l};t.options.persister?t.fetchFn=()=>{var b,p;return(p=(b=t.options).persister)==null?void 0:p.call(b,u,{queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n)}:t.fetchFn=u}}}function dE(e,{pages:t,pageParams:n}){const r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function Mz(e,{pages:t,pageParams:n}){var r;return t.length>0?(r=e.getPreviousPageParam)==null?void 0:r.call(e,t[0],t,n[0],n):void 0}function mie(e,t){return t?dE(e,t)!=null:!1}function pie(e,t){return!t||!e.getPreviousPageParam?!1:Mz(e,t)!=null}var hie=(FH=class extends cE{constructor(t,n){super();Tr(this,Xn);Tr(this,_o);Tr(this,Dn);Tr(this,hf);Tr(this,wo);Tr(this,ic);Tr(this,Yu);Tr(this,Bi);Tr(this,bf);Tr(this,qu);Tr(this,Zu);Tr(this,lc);Tr(this,sc);Tr(this,Yl);Tr(this,eA,new Set);this.options=n,Ln(this,_o,t),Ln(this,Bi,null),this.bindMethods(),this.setOptions(n)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(yt(this,Dn).addObserver(this),zz(yt(this,Dn),this.options)?_r(this,Xn,Hf).call(this):this.updateResult(),_r(this,Xn,r1).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return fE(yt(this,Dn),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return fE(yt(this,Dn),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,_r(this,Xn,o1).call(this),_r(this,Xn,a1).call(this),yt(this,Dn).removeObserver(this)}setOptions(t,n){const r=this.options,o=yt(this,Dn);if(this.options=yt(this,_o).defaultQueryOptions(t),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof Ei(this.options.enabled,yt(this,Dn))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");_r(this,Xn,i1).call(this),yt(this,Dn).setOptions(this.options),r._defaulted&&!AE(this.options,r)&&yt(this,_o).getQueryCache().notify({type:"observerOptionsUpdated",query:yt(this,Dn),observer:this});const a=this.hasListeners();a&&Rz(yt(this,Dn),o,this.options,r)&&_r(this,Xn,Hf).call(this),this.updateResult(n),a&&(yt(this,Dn)!==o||Ei(this.options.enabled,yt(this,Dn))!==Ei(r.enabled,yt(this,Dn))||Jm(this.options.staleTime,yt(this,Dn))!==Jm(r.staleTime,yt(this,Dn)))&&_r(this,Xn,e1).call(this);const i=_r(this,Xn,t1).call(this);a&&(yt(this,Dn)!==o||Ei(this.options.enabled,yt(this,Dn))!==Ei(r.enabled,yt(this,Dn))||i!==yt(this,Yl))&&_r(this,Xn,n1).call(this,i)}getOptimisticResult(t){const n=yt(this,_o).getQueryCache().build(yt(this,_o),t),r=this.createResult(n,t);return Cie(this,r)&&(Ln(this,wo,r),Ln(this,Yu,this.options),Ln(this,ic,yt(this,Dn).state)),r}getCurrentResult(){return yt(this,wo)}trackResult(t,n){const r={};return Object.keys(t).forEach(o=>{Object.defineProperty(r,o,{configurable:!1,enumerable:!0,get:()=>(this.trackProp(o),n==null||n(o),t[o])})}),r}trackProp(t){yt(this,eA).add(t)}getCurrentQuery(){return yt(this,Dn)}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const n=yt(this,_o).defaultQueryOptions(t),r=yt(this,_o).getQueryCache().build(yt(this,_o),n);return r.isFetchingOptimistic=!0,r.fetch().then(()=>this.createResult(r,n))}fetch(t){return _r(this,Xn,Hf).call(this,{...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),yt(this,wo)))}createResult(t,n){var O;const r=yt(this,Dn),o=this.options,a=yt(this,wo),i=yt(this,ic),l=yt(this,Yu),u=t!==r?t.state:yt(this,hf),{state:A}=t;let f={...A},g=!1,m;if(n._optimisticResults){const I=this.hasListeners(),T=!I&&zz(t,n),D=I&&Rz(t,r,n,o);(T||D)&&(f={...f,...vie(A.data,t.options)}),n._optimisticResults==="isRestoring"&&(f.fetchStatus="idle")}let{error:h,errorUpdatedAt:b,status:p}=f;if(n.select&&f.data!==void 0)if(a&&f.data===(i==null?void 0:i.data)&&n.select===yt(this,bf))m=yt(this,qu);else try{Ln(this,bf,n.select),m=n.select(f.data),m=Tz(a==null?void 0:a.data,m,n),Ln(this,qu,m),Ln(this,Bi,null)}catch(I){Ln(this,Bi,I)}else m=f.data;if(n.placeholderData!==void 0&&m===void 0&&p==="pending"){let I;if(a!=null&&a.isPlaceholderData&&n.placeholderData===(l==null?void 0:l.placeholderData))I=a.data;else if(I=typeof n.placeholderData=="function"?n.placeholderData((O=yt(this,Zu))==null?void 0:O.state.data,yt(this,Zu)):n.placeholderData,n.select&&I!==void 0)try{I=n.select(I),Ln(this,Bi,null)}catch(T){Ln(this,Bi,T)}I!==void 0&&(p="success",m=Tz(a==null?void 0:a.data,I,n),g=!0)}yt(this,Bi)&&(h=yt(this,Bi),m=yt(this,qu),b=Date.now(),p="error");const C=f.fetchStatus==="fetching",y=p==="pending",E=p==="error",x=y&&C,w=m!==void 0;return{status:p,fetchStatus:f.fetchStatus,isPending:y,isSuccess:p==="success",isError:E,isInitialLoading:x,isLoading:x,data:m,dataUpdatedAt:f.dataUpdatedAt,error:h,errorUpdatedAt:b,failureCount:f.fetchFailureCount,failureReason:f.fetchFailureReason,errorUpdateCount:f.errorUpdateCount,isFetched:f.dataUpdateCount>0||f.errorUpdateCount>0,isFetchedAfterMount:f.dataUpdateCount>u.dataUpdateCount||f.errorUpdateCount>u.errorUpdateCount,isFetching:C,isRefetching:C&&!y,isLoadingError:E&&!w,isPaused:f.fetchStatus==="paused",isPlaceholderData:g,isRefetchError:E&&w,isStale:gE(t,n),refetch:this.refetch}}updateResult(t){const n=yt(this,wo),r=this.createResult(yt(this,Dn),this.options);if(Ln(this,ic,yt(this,Dn).state),Ln(this,Yu,this.options),yt(this,ic).data!==void 0&&Ln(this,Zu,yt(this,Dn)),AE(r,n))return;Ln(this,wo,r);const o={},a=()=>{if(!n)return!0;const{notifyOnChangeProps:i}=this.options,l=typeof i=="function"?i():i;if(l==="all"||!l&&!yt(this,eA).size)return!0;const s=new Set(l??yt(this,eA));return this.options.throwOnError&&s.add("error"),Object.keys(yt(this,wo)).some(u=>{const A=u;return yt(this,wo)[A]!==n[A]&&s.has(A)})};(t==null?void 0:t.listeners)!==!1&&a()&&(o.listeners=!0),_r(this,Xn,UL).call(this,{...o,...t})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&_r(this,Xn,r1).call(this)}},_o=new WeakMap,Dn=new WeakMap,hf=new WeakMap,wo=new WeakMap,ic=new WeakMap,Yu=new WeakMap,Bi=new WeakMap,bf=new WeakMap,qu=new WeakMap,Zu=new WeakMap,lc=new WeakMap,sc=new WeakMap,Yl=new WeakMap,eA=new WeakMap,Xn=new WeakSet,Hf=function(t){_r(this,Xn,i1).call(this);let n=yt(this,Dn).fetch(this.options,t);return t!=null&&t.throwOnError||(n=n.catch(oie)),n},e1=function(){_r(this,Xn,o1).call(this);const t=Jm(this.options.staleTime,yt(this,Dn));if(_m||yt(this,wo).isStale||!Pz(t))return;const r=aie(yt(this,wo).dataUpdatedAt,t)+1;Ln(this,lc,setTimeout(()=>{yt(this,wo).isStale||this.updateResult()},r))},t1=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(yt(this,Dn)):this.options.refetchInterval)??!1},n1=function(t){_r(this,Xn,a1).call(this),Ln(this,Yl,t),!(_m||Ei(this.options.enabled,yt(this,Dn))===!1||!Pz(yt(this,Yl))||yt(this,Yl)===0)&&Ln(this,sc,setInterval(()=>{(this.options.refetchIntervalInBackground||uie.isFocused())&&_r(this,Xn,Hf).call(this)},yt(this,Yl)))},r1=function(){_r(this,Xn,e1).call(this),_r(this,Xn,n1).call(this,_r(this,Xn,t1).call(this))},o1=function(){yt(this,lc)&&(clearTimeout(yt(this,lc)),Ln(this,lc,void 0))},a1=function(){yt(this,sc)&&(clearInterval(yt(this,sc)),Ln(this,sc,void 0))},i1=function(){const t=yt(this,_o).getQueryCache().build(yt(this,_o),this.options);if(t===yt(this,Dn))return;const n=yt(this,Dn);Ln(this,Dn,t),Ln(this,hf,t.state),this.hasListeners()&&(n==null||n.removeObserver(this),t.addObserver(this))},UL=function(t){Nz.batch(()=>{t.listeners&&this.listeners.forEach(n=>{n(yt(this,wo))}),yt(this,_o).getQueryCache().notify({query:yt(this,Dn),type:"observerResultsUpdated"})})},FH);function bie(e,t){return Ei(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function zz(e,t){return bie(e,t)||e.state.data!==void 0&&fE(e,t,t.refetchOnMount)}function fE(e,t,n){if(Ei(t.enabled,e)!==!1){const r=typeof n=="function"?n(e):n;return r==="always"||r!==!1&&gE(e,t)}return!1}function Rz(e,t,n,r){return(e!==t||Ei(r.enabled,e)===!1)&&(!n.suspense||e.state.status!=="error")&&gE(e,n)}function gE(e,t){return Ei(t.enabled,e)!==!1&&e.isStaleByTime(Jm(t.staleTime,e))}function Cie(e,t){return!AE(e.getCurrentResult(),t)}var yie=class extends hie{constructor(e,t){super(e,t)}bindMethods(){super.bindMethods(),this.fetchNextPage=this.fetchNextPage.bind(this),this.fetchPreviousPage=this.fetchPreviousPage.bind(this)}setOptions(e,t){super.setOptions({...e,behavior:Bz()},t)}getOptimisticResult(e){return e.behavior=Bz(),super.getOptimisticResult(e)}fetchNextPage(e){return this.fetch({...e,meta:{fetchMore:{direction:"forward"}}})}fetchPreviousPage(e){return this.fetch({...e,meta:{fetchMore:{direction:"backward"}}})}createResult(e,t){var h,b;const{state:n}=e,r=super.createResult(e,t),{isFetching:o,isRefetching:a,isError:i,isRefetchError:l}=r,s=(b=(h=n.fetchMeta)==null?void 0:h.fetchMore)==null?void 0:b.direction,u=i&&s==="forward",A=o&&s==="forward",f=i&&s==="backward",g=o&&s==="backward";return{...r,fetchNextPage:this.fetchNextPage,fetchPreviousPage:this.fetchPreviousPage,hasNextPage:mie(t,n.data),hasPreviousPage:pie(t,n.data),isFetchNextPageError:u,isFetchingNextPage:A,isFetchPreviousPageError:f,isFetchingPreviousPage:g,isRefetchError:l&&!u&&!f,isRefetching:a&&!A&&!g}}},wie=c.createContext(void 0),Eie=e=>{const t=c.useContext(wie);if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},jz=c.createContext(!1),xie=()=>c.useContext(jz);jz.Provider;function Pie(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var Sie=c.createContext(Pie()),Oie=()=>c.useContext(Sie);function Iie(e,t){return typeof e=="function"?e(...t):!!e}var Tie=(e,t)=>{(e.suspense||e.throwOnError)&&(t.isReset()||(e.retryOnMount=!1))},Die=e=>{c.useEffect(()=>{e.clearReset()},[e])},Nie=({result:e,errorResetBoundary:t,throwOnError:n,query:r})=>e.isError&&!t.isReset()&&!e.isFetching&&r&&Iie(n,[e.error,r]),Bie=e=>{e.suspense&&(typeof e.staleTime!="number"&&(e.staleTime=1e3),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3)))},Mie=(e,t)=>(e==null?void 0:e.suspense)&&t.isPending,zie=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function Rie(e,t,n){var u,A,f,g;if(process.env.NODE_ENV!=="production"&&(typeof e!="object"||Array.isArray(e)))throw new Error('Bad argument type. Starting with v5, only the "Object" form is allowed when calling query related functions. Please use the error stack to find the culprit call. More info here: https://tanstack.com/query/latest/docs/react/guides/migrating-to-v5#supports-a-single-signature-one-object');const r=Eie(),o=xie(),a=Oie(),i=r.defaultQueryOptions(e);(A=(u=r.getDefaultOptions().queries)==null?void 0:u._experimental_beforeQuery)==null||A.call(u,i),i._optimisticResults=o?"isRestoring":"optimistic",Bie(i),Tie(i,a),Die(a);const[l]=c.useState(()=>new t(r,i)),s=l.getOptimisticResult(i);if(c.useSyncExternalStore(c.useCallback(m=>{const h=o?()=>{}:l.subscribe(Nz.batchCalls(m));return l.updateResult(),h},[l,o]),()=>l.getCurrentResult(),()=>l.getCurrentResult()),c.useEffect(()=>{l.setOptions(i,{listeners:!1})},[i,l]),Mie(i,s))throw zie(i,l,a);if(Nie({result:s,errorResetBoundary:a,throwOnError:i.throwOnError,query:r.getQueryCache().get(i.queryHash)}))throw s.error;return(g=(f=r.getDefaultOptions().queries)==null?void 0:f._experimental_afterQuery)==null||g.call(f,i,s),i.notifyOnChangeProps?s:l.trackResult(s)}function jie(e,t){return Rie(e,yie)}var Wm={exports:{}};/**
428
+ `]:{zIndex:10,width:r,margin:`0 ${re(e.marginXXS)}`,fontSize:r,cursor:"pointer",transition:`all ${e.motionDurationSlow}`,color:o,"&:hover":{color:o},svg:{verticalAlign:"baseline"}}},[`${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% - ${re(a(e.paddingXS).mul(2).equal())})`},[`${l}-uploading`]:{[`&${l}`]:{backgroundColor:e.colorFillAlter},[`&::before, ${n}-eye, ${n}-download, ${n}-delete`]:{display:"none"}},[`${l}-progress`]:{bottom:e.marginXL,width:`calc(100% - ${re(a(e.paddingXS).mul(2).equal())})`,paddingInlineStart:0}}}),[`${t}-wrapper${t}-picture-circle-wrapper`]:{[`${t}${t}-select`]:{borderRadius:"50%"}}}},Vae=e=>{const{componentCls:t}=e;return{[`${t}-rtl`]:{direction:"rtl"}}},Xae=e=>{const{componentCls:t,colorTextDisabled:n}=e;return{[`${t}-wrapper`]:Object.assign(Object.assign({},Fn(e)),{[t]:{outline:0,"input[type='file']":{cursor:"pointer"}},[`${t}-select`]:{display:"inline-block"},[`${t}-disabled`]:{color:n,cursor:"not-allowed"}})}},Kae=$n("Upload",e=>{const{fontSizeHeading3:t,fontHeight:n,lineWidth:r,controlHeightLG:o,calc:a}=e,i=An(e,{uploadThumbnailSize:a(t).mul(2).equal(),uploadProgressOffset:a(a(n).div(2)).add(r).equal(),uploadPicCardSize:a(o).mul(2.55).equal()});return[Xae(i),Fae(i),Wae(i),Qae(i),_ae(i),Jae(i),Vae(i),kC(i)]},e=>({actionsColor:e.colorTextDescription}));function Lm(e){return Object.assign(Object.assign({},e),{lastModified:e.lastModified,lastModifiedDate:e.lastModifiedDate,name:e.name,size:e.size,type:e.type,uid:e.uid,percent:0,originFileObj:e})}function $m(e,t){const n=Le(t),r=n.findIndex(o=>{let{uid:a}=o;return a===e.uid});return r===-1?n.push(e):n[r]=e,n}function iE(e,t){const n=e.uid!==void 0?"uid":"name";return t.filter(r=>r[n]===e[n])[0]}function Gae(e,t){const n=e.uid!==void 0?"uid":"name",r=t.filter(o=>o[n]!==e[n]);return r.length===t.length?null:r}const Uae=function(){const t=(arguments.length>0&&arguments[0]!==void 0?arguments[0]:"").split("/"),r=t[t.length-1].split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(r)||[""])[0]},Cz=e=>e.indexOf("image/")===0,Yae=e=>{if(e.type&&!e.thumbUrl)return Cz(e.type);const t=e.thumbUrl||e.url||"",n=Uae(t);return/^data:image\//.test(t)||/(webp|svg|png|gif|jpg|jpeg|jfif|bmp|dpg|ico|heic|heif)$/i.test(n)?!0:!(/^data:/.test(t)||n)},Tl=200;function qae(e){return new Promise(t=>{if(!e.type||!Cz(e.type)){t("");return}const n=document.createElement("canvas");n.width=Tl,n.height=Tl,n.style.cssText=`position: fixed; left: 0; top: 0; width: ${Tl}px; height: ${Tl}px; z-index: 9999; display: none;`,document.body.appendChild(n);const r=n.getContext("2d"),o=new Image;if(o.onload=()=>{const{width:a,height:i}=o;let l=Tl,s=Tl,u=0,A=0;a>i?(s=i*(Tl/a),A=-(s-l)/2):(l=a*(Tl/i),u=-(l-s)/2),r.drawImage(o,u,A,l,s);const f=n.toDataURL();document.body.removeChild(n),window.URL.revokeObjectURL(o.src),t(f)},o.crossOrigin="anonymous",e.type.startsWith("image/svg+xml")){const a=new FileReader;a.onload=()=>{a.result&&typeof a.result=="string"&&(o.src=a.result)},a.readAsDataURL(e)}else if(e.type.startsWith("image/gif")){const a=new FileReader;a.onload=()=>{a.result&&t(a.result)},a.readAsDataURL(e)}else o.src=window.URL.createObjectURL(e)})}const Zae=c.forwardRef((e,t)=>{let{prefixCls:n,className:r,style:o,locale:a,listType:i,file:l,items:s,progress:u,iconRender:A,actionIconRender:f,itemRender:g,isImgUrl:m,showPreviewIcon:h,showRemoveIcon:b,showDownloadIcon:p,previewIcon:C,removeIcon:y,downloadIcon:E,extra:x,onPreview:w,onDownload:P,onClose:O}=e;var I,T;const{status:D}=l,[M,H]=c.useState(D);c.useEffect(()=>{D!=="removed"&&H(D)},[D]);const[L,N]=c.useState(!1);c.useEffect(()=>{const le=setTimeout(()=>{N(!0)},300);return()=>{clearTimeout(le)}},[]);const j=A(l);let z=c.createElement("div",{className:`${n}-icon`},j);if(i==="picture"||i==="picture-card"||i==="picture-circle")if(M==="uploading"||!l.thumbUrl&&!l.url){const le=ce(`${n}-list-item-thumbnail`,{[`${n}-list-item-file`]:M!=="uploading"});z=c.createElement("div",{className:le},j)}else{const le=m!=null&&m(l)?c.createElement("img",{src:l.thumbUrl||l.url,alt:l.name,className:`${n}-list-item-image`,crossOrigin:l.crossOrigin}):j,U=ce(`${n}-list-item-thumbnail`,{[`${n}-list-item-file`]:m&&!m(l)});z=c.createElement("a",{className:U,onClick:de=>w(l,de),href:l.url||l.thumbUrl,target:"_blank",rel:"noopener noreferrer"},le)}const B=ce(`${n}-list-item`,`${n}-list-item-${M}`),_=typeof l.linkProps=="string"?JSON.parse(l.linkProps):l.linkProps,k=b?f((typeof y=="function"?y(l):y)||c.createElement(LB,null),()=>O(l),n,a.removeFile,!0):null,$=p&&M==="done"?f((typeof E=="function"?E(l):E)||c.createElement($B,null),()=>P(l),n,a.downloadFile):null,F=i!=="picture-card"&&i!=="picture-circle"&&c.createElement("span",{key:"download-delete",className:ce(`${n}-list-item-actions`,{picture:i==="picture"})},$,k),W=typeof x=="function"?x(l):x,Q=W&&c.createElement("span",{className:`${n}-list-item-extra`},W),V=ce(`${n}-list-item-name`),G=l.url?c.createElement("a",Object.assign({key:"view",target:"_blank",rel:"noopener noreferrer",className:V,title:l.name},_,{href:l.url,onClick:le=>w(l,le)}),l.name,Q):c.createElement("span",{key:"view",className:V,onClick:le=>w(l,le),title:l.name},l.name,Q),oe=h&&(l.url||l.thumbUrl)?c.createElement("a",{href:l.url||l.thumbUrl,target:"_blank",rel:"noopener noreferrer",onClick:le=>w(l,le),title:a.previewFile},typeof C=="function"?C(l):C||c.createElement(fm,null)):null,te=(i==="picture-card"||i==="picture-circle")&&M!=="uploading"&&c.createElement("span",{className:`${n}-list-item-actions`},oe,M==="done"&&$,k),{getPrefixCls:ie}=c.useContext(It),Ae=ie(),ue=c.createElement("div",{className:B},z,G,F,te,L&&c.createElement(io,{motionName:`${Ae}-fade`,visible:M==="uploading",motionDeadline:2e3},le=>{let{className:U}=le;const de="percent"in l?c.createElement(mw,Object.assign({},u,{type:"line",percent:l.percent,"aria-label":l["aria-label"],"aria-labelledby":l["aria-labelledby"]})):null;return c.createElement("div",{className:ce(`${n}-list-item-progress`,U)},de)})),ee=l.response&&typeof l.response=="string"?l.response:((I=l.error)===null||I===void 0?void 0:I.statusText)||((T=l.error)===null||T===void 0?void 0:T.message)||a.uploadError,Z=M==="error"?c.createElement(ea,{title:ee,getPopupContainer:le=>le.parentNode},ue):ue;return c.createElement("div",{className:ce(`${n}-list-item-container`,r),style:o,ref:t},g?g(Z,l,s,{download:P.bind(null,l),preview:w.bind(null,l),remove:O.bind(null,l)}):Z)}),eie=(e,t)=>{const{listType:n="text",previewFile:r=qae,onPreview:o,onDownload:a,onRemove:i,locale:l,iconRender:s,isImageUrl:u=Yae,prefixCls:A,items:f=[],showPreviewIcon:g=!0,showRemoveIcon:m=!0,showDownloadIcon:h=!1,removeIcon:b,previewIcon:p,downloadIcon:C,extra:y,progress:E={size:[-1,2],showInfo:!1},appendAction:x,appendActionVisible:w=!0,itemRender:P,disabled:O}=e,I=ly(),[T,D]=c.useState(!1);c.useEffect(()=>{n!=="picture"&&n!=="picture-card"&&n!=="picture-circle"||(f||[]).forEach(V=>{typeof document>"u"||typeof window>"u"||!window.FileReader||!window.File||!(V.originFileObj instanceof File||V.originFileObj instanceof Blob)||V.thumbUrl!==void 0||(V.thumbUrl="",r&&r(V.originFileObj).then(G=>{V.thumbUrl=G||"",I()}))})},[n,f,r]),c.useEffect(()=>{D(!0)},[]);const M=(V,G)=>{if(o)return G==null||G.preventDefault(),o(V)},H=V=>{typeof a=="function"?a(V):V.url&&window.open(V.url)},L=V=>{i==null||i(V)},N=V=>{if(s)return s(V,n);const G=V.status==="uploading",oe=u!=null&&u(V)?c.createElement(GB,null):c.createElement(_B,null);let te=G?c.createElement(Wi,null):c.createElement(KB,null);return n==="picture"?te=G?c.createElement(Wi,null):oe:(n==="picture-card"||n==="picture-circle")&&(te=G?l.uploading:oe),te},j=(V,G,oe,te,ie)=>{const Ae={type:"text",size:"small",title:te,onClick:ue=>{var ee,Z;G(),c.isValidElement(V)&&((Z=(ee=V.props).onClick)===null||Z===void 0||Z.call(ee,ue))},className:`${oe}-list-item-action`};if(ie&&(Ae.disabled=O),c.isValidElement(V)){const ue=to(V,Object.assign(Object.assign({},V.props),{onClick:()=>{}}));return c.createElement(lo,Object.assign({},Ae,{icon:ue}))}return c.createElement(lo,Object.assign({},Ae),c.createElement("span",null,V))};c.useImperativeHandle(t,()=>({handlePreview:M,handleDownload:H}));const{getPrefixCls:z}=c.useContext(It),B=z("upload",A),_=z(),k=ce(`${B}-list`,`${B}-list-${n}`),$=Le(f.map(V=>({key:V.uid,file:V})));let W={motionDeadline:2e3,motionName:`${B}-${n==="picture-card"||n==="picture-circle"?"animate-inline":"animate"}`,keys:$,motionAppear:T};const Q=c.useMemo(()=>{const V=Object.assign({},iC(_));return delete V.onAppearEnd,delete V.onEnterEnd,delete V.onLeaveEnd,V},[_]);return n!=="picture-card"&&n!=="picture-circle"&&(W=Object.assign(Object.assign({},Q),W)),c.createElement("div",{className:k},c.createElement(Gb,Object.assign({},W,{component:!1}),V=>{let{key:G,file:oe,className:te,style:ie}=V;return c.createElement(Zae,{key:G,locale:l,prefixCls:B,className:te,style:ie,file:oe,items:f,progress:E,listType:n,isImgUrl:u,showPreviewIcon:g,showRemoveIcon:m,showDownloadIcon:h,removeIcon:b,previewIcon:p,downloadIcon:C,extra:y,iconRender:N,actionIconRender:j,itemRender:P,onPreview:M,onDownload:H,onClose:L})}),x&&c.createElement(io,Object.assign({},W,{visible:w,forceRender:!0}),V=>{let{className:G,style:oe}=V;return to(x,te=>({className:ce(te.className,G),style:Object.assign(Object.assign(Object.assign({},oe),{pointerEvents:G?"none":void 0}),te.style)}))}))},yz=c.forwardRef(eie);process.env.NODE_ENV!=="production"&&(yz.displayName="UploadList");var tie=function(e,t,n,r){function o(a){return a instanceof n?a:new n(function(i){i(a)})}return new(n||(n=Promise))(function(a,i){function l(A){try{u(r.next(A))}catch(f){i(f)}}function s(A){try{u(r.throw(A))}catch(f){i(f)}}function u(A){A.done?a(A.value):o(A.value).then(l,s)}u((r=r.apply(e,t||[])).next())})};const Sd=`__LIST_IGNORE_${Date.now()}__`,nie=(e,t)=>{const{fileList:n,defaultFileList:r,onRemove:o,showUploadList:a=!0,listType:i="text",onPreview:l,onDownload:s,onChange:u,onDrop:A,previewFile:f,disabled:g,locale:m,iconRender:h,isImageUrl:b,progress:p,prefixCls:C,className:y,type:E="select",children:x,style:w,itemRender:P,maxCount:O,data:I={},multiple:T=!1,hasControlInside:D=!0,action:M="",accept:H="",supportServerRender:L=!0,rootClassName:N}=e,j=c.useContext(Uo),z=g??j,[B,_]=En(r||[],{value:n,postState:be=>be??[]}),[k,$]=c.useState("drop"),F=c.useRef(null),W=c.useRef(null);if(process.env.NODE_ENV!=="production"){const be=vn("Upload");process.env.NODE_ENV!=="production"&&be("fileList"in e||!("value"in e),"usage","`value` is not a valid prop, do you mean `fileList`?"),be.deprecated(!("transformFile"in e),"transformFile","beforeUpload")}c.useMemo(()=>{const be=Date.now();(n||[]).forEach((Be,Se)=>{!Be.uid&&!Object.isFrozen(Be)&&(Be.uid=`__AUTO__${be}_${Se}__`)})},[n]);const Q=(be,Be,Se)=>{let he=Le(Be),Me=!1;O===1?he=he.slice(-1):O&&(Me=he.length>O,he=he.slice(0,O)),Rn.flushSync(()=>{_(he)});const ut={file:be,fileList:he};Se&&(ut.event=Se),(!Me||be.status==="removed"||he.some(pt=>pt.uid===be.uid))&&Rn.flushSync(()=>{u==null||u(ut)})},V=(be,Be)=>tie(void 0,void 0,void 0,function*(){const{beforeUpload:Se,transformFile:he}=e;let Me=be;if(Se){const ut=yield Se(be,Be);if(ut===!1)return!1;if(delete be[Sd],ut===Sd)return Object.defineProperty(be,Sd,{value:!0,configurable:!0}),!1;typeof ut=="object"&&ut&&(Me=ut)}return he&&(Me=yield he(Me)),Me}),G=be=>{const Be=be.filter(Me=>!Me.file[Sd]);if(!Be.length)return;const Se=Be.map(Me=>Lm(Me.file));let he=Le(B);Se.forEach(Me=>{he=$m(Me,he)}),Se.forEach((Me,ut)=>{let pt=Me;if(Be[ut].parsedFile)Me.status="uploading";else{const{originFileObj:dt}=Me;let Rt;try{Rt=new File([dt],dt.name,{type:dt.type})}catch{Rt=new Blob([dt],{type:dt.type}),Rt.name=dt.name,Rt.lastModifiedDate=new Date,Rt.lastModified=new Date().getTime()}Rt.uid=Me.uid,pt=Rt}Q(pt,he)})},oe=(be,Be,Se)=>{try{typeof be=="string"&&(be=JSON.parse(be))}catch{}if(!iE(Be,B))return;const he=Lm(Be);he.status="done",he.percent=100,he.response=be,he.xhr=Se;const Me=$m(he,B);Q(he,Me)},te=(be,Be)=>{if(!iE(Be,B))return;const Se=Lm(Be);Se.status="uploading",Se.percent=be.percent;const he=$m(Se,B);Q(Se,he,be)},ie=(be,Be,Se)=>{if(!iE(Se,B))return;const he=Lm(Se);he.error=be,he.response=Be,he.status="error";const Me=$m(he,B);Q(he,Me)},Ae=be=>{let Be;Promise.resolve(typeof o=="function"?o(be):o).then(Se=>{var he;if(Se===!1)return;const Me=Gae(be,B);Me&&(Be=Object.assign(Object.assign({},be),{status:"removed"}),B==null||B.forEach(ut=>{const pt=Be.uid!==void 0?"uid":"name";ut[pt]===Be[pt]&&!Object.isFrozen(ut)&&(ut.status="removed")}),(he=F.current)===null||he===void 0||he.abort(Be),Q(Be,Me))})},ue=be=>{$(be.type),be.type==="drop"&&(A==null||A(be))};c.useImperativeHandle(t,()=>({onBatchStart:G,onSuccess:oe,onProgress:te,onError:ie,fileList:B,upload:F.current,nativeElement:W.current}));const{getPrefixCls:ee,direction:Z,upload:le}=c.useContext(It),U=ee("upload",C),de=Object.assign(Object.assign({onBatchStart:G,onError:ie,onProgress:te,onSuccess:oe},e),{data:I,multiple:T,action:M,accept:H,supportServerRender:L,prefixCls:U,disabled:z,beforeUpload:V,onChange:void 0,hasControlInside:D});delete de.className,delete de.style,(!x||z)&&delete de.id;const fe=`${U}-wrapper`,[Ce,ve,Te]=Kae(U,fe),[xe]=ki("Upload",$a.Upload),{showRemoveIcon:we,showPreviewIcon:ze,showDownloadIcon:me,removeIcon:ye,previewIcon:Ie,downloadIcon:Re,extra:Xe}=typeof a=="boolean"?{}:a,Ue=typeof we>"u"?!z:!!we,nt=(be,Be)=>a?c.createElement(yz,{prefixCls:U,listType:i,items:B,previewFile:f,onPreview:l,onDownload:s,onRemove:Ae,showRemoveIcon:Ue,showPreviewIcon:ze,showDownloadIcon:me,removeIcon:ye,previewIcon:Ie,downloadIcon:Re,iconRender:h,extra:Xe,locale:Object.assign(Object.assign({},xe),m),isImageUrl:b,progress:p,appendAction:be,appendActionVisible:Be,itemRender:P,disabled:z}):be,Fe=ce(fe,y,N,ve,Te,le==null?void 0:le.className,{[`${U}-rtl`]:Z==="rtl",[`${U}-picture-card-wrapper`]:i==="picture-card",[`${U}-picture-circle-wrapper`]:i==="picture-circle"}),qe=Object.assign(Object.assign({},le==null?void 0:le.style),w);if(E==="drag"){const be=ce(ve,U,`${U}-drag`,{[`${U}-drag-uploading`]:B.some(Be=>Be.status==="uploading"),[`${U}-drag-hover`]:k==="dragover",[`${U}-disabled`]:z,[`${U}-rtl`]:Z==="rtl"});return Ce(c.createElement("span",{className:Fe,ref:W},c.createElement("div",{className:be,style:qe,onDrop:ue,onDragOver:ue,onDragLeave:ue},c.createElement(aE,Object.assign({},de,{ref:F,className:`${U}-btn`}),c.createElement("div",{className:`${U}-drag-container`},x))),nt()))}const Ve=ce(U,`${U}-select`,{[`${U}-disabled`]:z}),je=c.createElement("div",{className:Ve,style:x?void 0:{display:"none"}},c.createElement(aE,Object.assign({},de,{ref:F})));return Ce(i==="picture-card"||i==="picture-circle"?c.createElement("span",{className:Fe,ref:W},nt(je,!!x)):c.createElement("span",{className:Fe,ref:W},je,nt()))},lE=c.forwardRef(nie);process.env.NODE_ENV!=="production"&&(lE.displayName="Upload");var rie=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const wz=c.forwardRef((e,t)=>{var{style:n,height:r,hasControlInside:o=!1}=e,a=rie(e,["style","height","hasControlInside"]);return c.createElement(lE,Object.assign({ref:t,hasControlInside:o},a,{type:"drag",style:Object.assign(Object.assign({},n),{height:r})}))});process.env.NODE_ENV!=="production"&&(wz.displayName="Dragger");const Od=lE;Od.Dragger=wz,Od.LIST_IGNORE=Sd;const Id={modalContainer:"_modalContainer_grobn_24",modalTitle:"_modalTitle_grobn_28",warningIcon:"_warningIcon_grobn_33",successIcon:"_successIcon_grobn_40",modalTitleText:"_modalTitleText_grobn_47"};var sE=(e=>(e.SUCCESS="success",e.DANGER="danger",e.BASIC="basic",e.WARNING="warning",e))(sE||{});const Ez=({children:e,onClose:t,visible:n,title:r,width:o,onOK:a,footer:i,confirmLoading:l,modalType:s="basic",modalTitleIcon:u,...A})=>K.jsx("div",{className:Id.modalContainer,children:K.jsx(ta,{width:o,footer:i,title:K.jsxs("span",{className:Id.modalTitle,children:[(s==="success"||s==="warning")&&K.jsx("span",{className:s==="success"?Id.successIcon:Id.warningIcon,children:K.jsx("i",{"data-testid":`modal-icon-${s}`,className:s==="success"?xn.SUCCESS_SOLID_ICON:xn.ALERT})}),K.jsxs("span",{className:Id.modalTitleText,children:[" ",r," "]})]}),visible:n,confirmLoading:l,onOk:a??t,onCancel:t,className:s,...A,children:e})});var km=(e=>(e.PRIMARY="primary",e.DEFAULT="default",e))(km||{}),Dl=(e=>(e.SMALL="small",e.LARGE="large",e))(Dl||{}),Td=(e=>(e.PRIMARY="#0cadfd",e.WHITE="white",e))(Td||{}),zs=(e=>(e.PRIMARY="primary",e.SECONDARY="secondary",e.TERTIARY="tertiary",e))(zs||{}),xz=(e=>(e.BUTTON="button",e.TEXT_BOX="textbox",e.SWITCH="switch",e.COMBOBOX="combobox",e.LISTBOX="listbox",e.RADIO="radio",e.HEADING="heading",e.IMAGE="img",e.TABLE="table",e.OPTION="option",e.DIALOG="dialog",e.TAB="tab",e.CHECKBOX="checkbox",e.ROW="row",e.LOADING="loading",e))(xz||{}),Dd=(e=>(e.ASC="asc",e.DESC="desc",e.EMPTY="",e.ASCEND="ascend",e))(Dd||{}),Fm=(e=>(e.ASCEND="ascend",e.DESCEND="descend",e))(Fm||{}),cE=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},_m=typeof window>"u"||"Deno"in globalThis;function oie(){}function Pz(e){return typeof e=="number"&&e>=0&&e!==1/0}function aie(e,t){return Math.max(e+(t||0)-Date.now(),0)}function Jm(e,t){return typeof e=="function"?e(t):e}function Ei(e,t){return typeof e=="function"?e(t):e}function uE(e,t){if(e===t)return e;const n=Sz(e)&&Sz(t);if(n||Oz(e)&&Oz(t)){const r=n?e:Object.keys(e),o=r.length,a=n?t:Object.keys(t),i=a.length,l=n?[]:{};let s=0;for(let u=0;u<i;u++){const A=n?u:a[u];(!n&&r.includes(A)||n)&&e[A]===void 0&&t[A]===void 0?(l[A]=void 0,s++):(l[A]=uE(e[A],t[A]),l[A]===e[A]&&e[A]!==void 0&&s++)}return o===i&&s===o?e:l}return t}function AE(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(e[n]!==t[n])return!1;return!0}function Sz(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function Oz(e){if(!Iz(e))return!1;const t=e.constructor;if(t===void 0)return!0;const n=t.prototype;return!(!Iz(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function Iz(e){return Object.prototype.toString.call(e)==="[object Object]"}function Tz(e,t,n){if(typeof n.structuralSharing=="function")return n.structuralSharing(e,t);if(n.structuralSharing!==!1){if(process.env.NODE_ENV!=="production")try{return uE(e,t)}catch(r){console.error(`Structural sharing requires data to be JSON serializable. To fix this, turn off structuralSharing or return JSON-serializable data from your queryFn. [${n.queryHash}]: ${r}`)}return uE(e,t)}return t}function iie(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function lie(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var Dz=Symbol();function sie(e,t){return process.env.NODE_ENV!=="production"&&e.queryFn===Dz&&console.error(`Attempted to invoke queryFn when set to skipToken. This is likely a configuration error. Query hash: '${e.queryHash}'`),!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===Dz?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}var cie=($H=class extends cE{constructor(){super();Tr(this,ac);Tr(this,Gl);Tr(this,Ku);Ln(this,Ku,t=>{if(!_m&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){yt(this,Gl)||this.setEventListener(yt(this,Ku))}onUnsubscribe(){var t;this.hasListeners()||((t=yt(this,Gl))==null||t.call(this),Ln(this,Gl,void 0))}setEventListener(t){var n;Ln(this,Ku,t),(n=yt(this,Gl))==null||n.call(this),Ln(this,Gl,t(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()}))}setFocused(t){yt(this,ac)!==t&&(Ln(this,ac,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(n=>{n(t)})}isFocused(){var t;return typeof yt(this,ac)=="boolean"?yt(this,ac):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},ac=new WeakMap,Gl=new WeakMap,Ku=new WeakMap,$H),uie=new cie,Aie=(kH=class extends cE{constructor(){super();Tr(this,Gu,!0);Tr(this,Ul);Tr(this,Uu);Ln(this,Uu,t=>{if(!_m&&window.addEventListener){const n=()=>t(!0),r=()=>t(!1);return window.addEventListener("online",n,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",n),window.removeEventListener("offline",r)}}})}onSubscribe(){yt(this,Ul)||this.setEventListener(yt(this,Uu))}onUnsubscribe(){var t;this.hasListeners()||((t=yt(this,Ul))==null||t.call(this),Ln(this,Ul,void 0))}setEventListener(t){var n;Ln(this,Uu,t),(n=yt(this,Ul))==null||n.call(this),Ln(this,Ul,t(this.setOnline.bind(this)))}setOnline(t){yt(this,Gu)!==t&&(Ln(this,Gu,t),this.listeners.forEach(r=>{r(t)}))}isOnline(){return yt(this,Gu)}},Gu=new WeakMap,Ul=new WeakMap,Uu=new WeakMap,kH),die=new Aie;function fie(e){return(e??"online")==="online"?die.isOnline():!0}function gie(){let e=[],t=0,n=l=>{l()},r=l=>{l()},o=l=>setTimeout(l,0);const a=l=>{t?e.push(l):o(()=>{n(l)})},i=()=>{const l=e;e=[],l.length&&o(()=>{r(()=>{l.forEach(s=>{n(s)})})})};return{batch:l=>{let s;t++;try{s=l()}finally{t--,t||i()}return s},batchCalls:l=>(...s)=>{a(()=>{l(...s)})},schedule:a,setNotifyFunction:l=>{n=l},setBatchNotifyFunction:l=>{r=l},setScheduler:l=>{o=l}}}var Nz=gie();function vie(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:fie(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function Bz(e){return{onFetch:(t,n)=>{var A,f,g,m,h;const r=t.options,o=(g=(f=(A=t.fetchOptions)==null?void 0:A.meta)==null?void 0:f.fetchMore)==null?void 0:g.direction,a=((m=t.state.data)==null?void 0:m.pages)||[],i=((h=t.state.data)==null?void 0:h.pageParams)||[];let l={pages:[],pageParams:[]},s=0;const u=async()=>{let b=!1;const p=E=>{Object.defineProperty(E,"signal",{enumerable:!0,get:()=>(t.signal.aborted?b=!0:t.signal.addEventListener("abort",()=>{b=!0}),t.signal)})},C=sie(t.options,t.fetchOptions),y=async(E,x,w)=>{if(b)return Promise.reject();if(x==null&&E.pages.length)return Promise.resolve(E);const P={queryKey:t.queryKey,pageParam:x,direction:w?"backward":"forward",meta:t.options.meta};p(P);const O=await C(P),{maxPages:I}=t.options,T=w?lie:iie;return{pages:T(E.pages,O,I),pageParams:T(E.pageParams,x,I)}};if(o&&a.length){const E=o==="backward",x=E?Mz:dE,w={pages:a,pageParams:i},P=x(r,w);l=await y(w,P,E)}else{const E=a.length;do{const x=s===0?i[0]??r.initialPageParam:dE(r,l);if(s>0&&x==null)break;l=await y(l,x),s++}while(s<E)}return l};t.options.persister?t.fetchFn=()=>{var b,p;return(p=(b=t.options).persister)==null?void 0:p.call(b,u,{queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n)}:t.fetchFn=u}}}function dE(e,{pages:t,pageParams:n}){const r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function Mz(e,{pages:t,pageParams:n}){var r;return t.length>0?(r=e.getPreviousPageParam)==null?void 0:r.call(e,t[0],t,n[0],n):void 0}function mie(e,t){return t?dE(e,t)!=null:!1}function pie(e,t){return!t||!e.getPreviousPageParam?!1:Mz(e,t)!=null}var hie=(FH=class extends cE{constructor(t,n){super();Tr(this,Xn);Tr(this,_o);Tr(this,Dn);Tr(this,hf);Tr(this,wo);Tr(this,ic);Tr(this,Yu);Tr(this,Bi);Tr(this,bf);Tr(this,qu);Tr(this,Zu);Tr(this,lc);Tr(this,sc);Tr(this,Yl);Tr(this,eA,new Set);this.options=n,Ln(this,_o,t),Ln(this,Bi,null),this.bindMethods(),this.setOptions(n)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(yt(this,Dn).addObserver(this),zz(yt(this,Dn),this.options)?_r(this,Xn,Hf).call(this):this.updateResult(),_r(this,Xn,r1).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return fE(yt(this,Dn),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return fE(yt(this,Dn),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,_r(this,Xn,o1).call(this),_r(this,Xn,a1).call(this),yt(this,Dn).removeObserver(this)}setOptions(t,n){const r=this.options,o=yt(this,Dn);if(this.options=yt(this,_o).defaultQueryOptions(t),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof Ei(this.options.enabled,yt(this,Dn))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");_r(this,Xn,i1).call(this),yt(this,Dn).setOptions(this.options),r._defaulted&&!AE(this.options,r)&&yt(this,_o).getQueryCache().notify({type:"observerOptionsUpdated",query:yt(this,Dn),observer:this});const a=this.hasListeners();a&&Rz(yt(this,Dn),o,this.options,r)&&_r(this,Xn,Hf).call(this),this.updateResult(n),a&&(yt(this,Dn)!==o||Ei(this.options.enabled,yt(this,Dn))!==Ei(r.enabled,yt(this,Dn))||Jm(this.options.staleTime,yt(this,Dn))!==Jm(r.staleTime,yt(this,Dn)))&&_r(this,Xn,e1).call(this);const i=_r(this,Xn,t1).call(this);a&&(yt(this,Dn)!==o||Ei(this.options.enabled,yt(this,Dn))!==Ei(r.enabled,yt(this,Dn))||i!==yt(this,Yl))&&_r(this,Xn,n1).call(this,i)}getOptimisticResult(t){const n=yt(this,_o).getQueryCache().build(yt(this,_o),t),r=this.createResult(n,t);return Cie(this,r)&&(Ln(this,wo,r),Ln(this,Yu,this.options),Ln(this,ic,yt(this,Dn).state)),r}getCurrentResult(){return yt(this,wo)}trackResult(t,n){const r={};return Object.keys(t).forEach(o=>{Object.defineProperty(r,o,{configurable:!1,enumerable:!0,get:()=>(this.trackProp(o),n==null||n(o),t[o])})}),r}trackProp(t){yt(this,eA).add(t)}getCurrentQuery(){return yt(this,Dn)}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const n=yt(this,_o).defaultQueryOptions(t),r=yt(this,_o).getQueryCache().build(yt(this,_o),n);return r.isFetchingOptimistic=!0,r.fetch().then(()=>this.createResult(r,n))}fetch(t){return _r(this,Xn,Hf).call(this,{...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),yt(this,wo)))}createResult(t,n){var O;const r=yt(this,Dn),o=this.options,a=yt(this,wo),i=yt(this,ic),l=yt(this,Yu),u=t!==r?t.state:yt(this,hf),{state:A}=t;let f={...A},g=!1,m;if(n._optimisticResults){const I=this.hasListeners(),T=!I&&zz(t,n),D=I&&Rz(t,r,n,o);(T||D)&&(f={...f,...vie(A.data,t.options)}),n._optimisticResults==="isRestoring"&&(f.fetchStatus="idle")}let{error:h,errorUpdatedAt:b,status:p}=f;if(n.select&&f.data!==void 0)if(a&&f.data===(i==null?void 0:i.data)&&n.select===yt(this,bf))m=yt(this,qu);else try{Ln(this,bf,n.select),m=n.select(f.data),m=Tz(a==null?void 0:a.data,m,n),Ln(this,qu,m),Ln(this,Bi,null)}catch(I){Ln(this,Bi,I)}else m=f.data;if(n.placeholderData!==void 0&&m===void 0&&p==="pending"){let I;if(a!=null&&a.isPlaceholderData&&n.placeholderData===(l==null?void 0:l.placeholderData))I=a.data;else if(I=typeof n.placeholderData=="function"?n.placeholderData((O=yt(this,Zu))==null?void 0:O.state.data,yt(this,Zu)):n.placeholderData,n.select&&I!==void 0)try{I=n.select(I),Ln(this,Bi,null)}catch(T){Ln(this,Bi,T)}I!==void 0&&(p="success",m=Tz(a==null?void 0:a.data,I,n),g=!0)}yt(this,Bi)&&(h=yt(this,Bi),m=yt(this,qu),b=Date.now(),p="error");const C=f.fetchStatus==="fetching",y=p==="pending",E=p==="error",x=y&&C,w=m!==void 0;return{status:p,fetchStatus:f.fetchStatus,isPending:y,isSuccess:p==="success",isError:E,isInitialLoading:x,isLoading:x,data:m,dataUpdatedAt:f.dataUpdatedAt,error:h,errorUpdatedAt:b,failureCount:f.fetchFailureCount,failureReason:f.fetchFailureReason,errorUpdateCount:f.errorUpdateCount,isFetched:f.dataUpdateCount>0||f.errorUpdateCount>0,isFetchedAfterMount:f.dataUpdateCount>u.dataUpdateCount||f.errorUpdateCount>u.errorUpdateCount,isFetching:C,isRefetching:C&&!y,isLoadingError:E&&!w,isPaused:f.fetchStatus==="paused",isPlaceholderData:g,isRefetchError:E&&w,isStale:gE(t,n),refetch:this.refetch}}updateResult(t){const n=yt(this,wo),r=this.createResult(yt(this,Dn),this.options);if(Ln(this,ic,yt(this,Dn).state),Ln(this,Yu,this.options),yt(this,ic).data!==void 0&&Ln(this,Zu,yt(this,Dn)),AE(r,n))return;Ln(this,wo,r);const o={},a=()=>{if(!n)return!0;const{notifyOnChangeProps:i}=this.options,l=typeof i=="function"?i():i;if(l==="all"||!l&&!yt(this,eA).size)return!0;const s=new Set(l??yt(this,eA));return this.options.throwOnError&&s.add("error"),Object.keys(yt(this,wo)).some(u=>{const A=u;return yt(this,wo)[A]!==n[A]&&s.has(A)})};(t==null?void 0:t.listeners)!==!1&&a()&&(o.listeners=!0),_r(this,Xn,UL).call(this,{...o,...t})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&_r(this,Xn,r1).call(this)}},_o=new WeakMap,Dn=new WeakMap,hf=new WeakMap,wo=new WeakMap,ic=new WeakMap,Yu=new WeakMap,Bi=new WeakMap,bf=new WeakMap,qu=new WeakMap,Zu=new WeakMap,lc=new WeakMap,sc=new WeakMap,Yl=new WeakMap,eA=new WeakMap,Xn=new WeakSet,Hf=function(t){_r(this,Xn,i1).call(this);let n=yt(this,Dn).fetch(this.options,t);return t!=null&&t.throwOnError||(n=n.catch(oie)),n},e1=function(){_r(this,Xn,o1).call(this);const t=Jm(this.options.staleTime,yt(this,Dn));if(_m||yt(this,wo).isStale||!Pz(t))return;const r=aie(yt(this,wo).dataUpdatedAt,t)+1;Ln(this,lc,setTimeout(()=>{yt(this,wo).isStale||this.updateResult()},r))},t1=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(yt(this,Dn)):this.options.refetchInterval)??!1},n1=function(t){_r(this,Xn,a1).call(this),Ln(this,Yl,t),!(_m||Ei(this.options.enabled,yt(this,Dn))===!1||!Pz(yt(this,Yl))||yt(this,Yl)===0)&&Ln(this,sc,setInterval(()=>{(this.options.refetchIntervalInBackground||uie.isFocused())&&_r(this,Xn,Hf).call(this)},yt(this,Yl)))},r1=function(){_r(this,Xn,e1).call(this),_r(this,Xn,n1).call(this,_r(this,Xn,t1).call(this))},o1=function(){yt(this,lc)&&(clearTimeout(yt(this,lc)),Ln(this,lc,void 0))},a1=function(){yt(this,sc)&&(clearInterval(yt(this,sc)),Ln(this,sc,void 0))},i1=function(){const t=yt(this,_o).getQueryCache().build(yt(this,_o),this.options);if(t===yt(this,Dn))return;const n=yt(this,Dn);Ln(this,Dn,t),Ln(this,hf,t.state),this.hasListeners()&&(n==null||n.removeObserver(this),t.addObserver(this))},UL=function(t){Nz.batch(()=>{t.listeners&&this.listeners.forEach(n=>{n(yt(this,wo))}),yt(this,_o).getQueryCache().notify({query:yt(this,Dn),type:"observerResultsUpdated"})})},FH);function bie(e,t){return Ei(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function zz(e,t){return bie(e,t)||e.state.data!==void 0&&fE(e,t,t.refetchOnMount)}function fE(e,t,n){if(Ei(t.enabled,e)!==!1){const r=typeof n=="function"?n(e):n;return r==="always"||r!==!1&&gE(e,t)}return!1}function Rz(e,t,n,r){return(e!==t||Ei(r.enabled,e)===!1)&&(!n.suspense||e.state.status!=="error")&&gE(e,n)}function gE(e,t){return Ei(t.enabled,e)!==!1&&e.isStaleByTime(Jm(t.staleTime,e))}function Cie(e,t){return!AE(e.getCurrentResult(),t)}var yie=class extends hie{constructor(e,t){super(e,t)}bindMethods(){super.bindMethods(),this.fetchNextPage=this.fetchNextPage.bind(this),this.fetchPreviousPage=this.fetchPreviousPage.bind(this)}setOptions(e,t){super.setOptions({...e,behavior:Bz()},t)}getOptimisticResult(e){return e.behavior=Bz(),super.getOptimisticResult(e)}fetchNextPage(e){return this.fetch({...e,meta:{fetchMore:{direction:"forward"}}})}fetchPreviousPage(e){return this.fetch({...e,meta:{fetchMore:{direction:"backward"}}})}createResult(e,t){var h,b;const{state:n}=e,r=super.createResult(e,t),{isFetching:o,isRefetching:a,isError:i,isRefetchError:l}=r,s=(b=(h=n.fetchMeta)==null?void 0:h.fetchMore)==null?void 0:b.direction,u=i&&s==="forward",A=o&&s==="forward",f=i&&s==="backward",g=o&&s==="backward";return{...r,fetchNextPage:this.fetchNextPage,fetchPreviousPage:this.fetchPreviousPage,hasNextPage:mie(t,n.data),hasPreviousPage:pie(t,n.data),isFetchNextPageError:u,isFetchingNextPage:A,isFetchPreviousPageError:f,isFetchingPreviousPage:g,isRefetchError:l&&!u&&!f,isRefetching:a&&!A&&!g}}},wie=c.createContext(void 0),Eie=e=>{const t=c.useContext(wie);if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},jz=c.createContext(!1),xie=()=>c.useContext(jz);jz.Provider;function Pie(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var Sie=c.createContext(Pie()),Oie=()=>c.useContext(Sie);function Iie(e,t){return typeof e=="function"?e(...t):!!e}var Tie=(e,t)=>{(e.suspense||e.throwOnError)&&(t.isReset()||(e.retryOnMount=!1))},Die=e=>{c.useEffect(()=>{e.clearReset()},[e])},Nie=({result:e,errorResetBoundary:t,throwOnError:n,query:r})=>e.isError&&!t.isReset()&&!e.isFetching&&r&&Iie(n,[e.error,r]),Bie=e=>{e.suspense&&(typeof e.staleTime!="number"&&(e.staleTime=1e3),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3)))},Mie=(e,t)=>(e==null?void 0:e.suspense)&&t.isPending,zie=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function Rie(e,t,n){var u,A,f,g;if(process.env.NODE_ENV!=="production"&&(typeof e!="object"||Array.isArray(e)))throw new Error('Bad argument type. Starting with v5, only the "Object" form is allowed when calling query related functions. Please use the error stack to find the culprit call. More info here: https://tanstack.com/query/latest/docs/react/guides/migrating-to-v5#supports-a-single-signature-one-object');const r=Eie(),o=xie(),a=Oie(),i=r.defaultQueryOptions(e);(A=(u=r.getDefaultOptions().queries)==null?void 0:u._experimental_beforeQuery)==null||A.call(u,i),i._optimisticResults=o?"isRestoring":"optimistic",Bie(i),Tie(i,a),Die(a);const[l]=c.useState(()=>new t(r,i)),s=l.getOptimisticResult(i);if(c.useSyncExternalStore(c.useCallback(m=>{const h=o?()=>{}:l.subscribe(Nz.batchCalls(m));return l.updateResult(),h},[l,o]),()=>l.getCurrentResult(),()=>l.getCurrentResult()),c.useEffect(()=>{l.setOptions(i,{listeners:!1})},[i,l]),Mie(i,s))throw zie(i,l,a);if(Nie({result:s,errorResetBoundary:a,throwOnError:i.throwOnError,query:r.getQueryCache().get(i.queryHash)}))throw s.error;return(g=(f=r.getDefaultOptions().queries)==null?void 0:f._experimental_afterQuery)==null||g.call(f,i,s),i.notifyOnChangeProps?s:l.trackResult(s)}function jie(e,t){return Rie(e,yie)}var Wm={exports:{}};/**
429
429
  * @license
430
430
  * Lodash <https://lodash.com/>
431
431
  * Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vrfi-design-system",
3
- "version": "1.0.75",
3
+ "version": "1.0.76",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "main": "./dist/main.umd.js",