@emailmaker/emailmaker 1.0.91 → 1.0.92

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.
Files changed (69) hide show
  1. package/README.md +32 -2
  2. package/asset-manifest.json +31 -26
  3. package/emailmaker-esm.js +1 -1
  4. package/emailmaker.js +1 -1
  5. package/iframe/429.js +1 -1
  6. package/iframe/766.js +1 -1
  7. package/iframe/iframe-eblock.bd2a2a73469f802abf17.html +1 -0
  8. package/iframe/iframe.bd2a2a73469f802abf17.html +1 -0
  9. package/iframe/js/826.c1a995fb.js +1 -0
  10. package/iframe/sandbox-eblock.js +1 -1
  11. package/iframe/sandbox.js +1 -1
  12. package/package.json +1 -1
  13. package/plugin.html +1 -1
  14. package/plugin_blocks_test.html +1 -1
  15. package/plugin_default.html +1 -1
  16. package/plugin_idigital.html +1 -1
  17. package/plugin_nota.html +1 -1
  18. package/plugin_s.html +1 -1
  19. package/static/css/2458.05166c0a.chunk.css +1 -0
  20. package/static/css/6501.e131603e.chunk.css +1 -0
  21. package/static/css/9272.a4e58dd0.chunk.css +1 -0
  22. package/static/js/1390.87d39fe1.js +2 -0
  23. package/static/js/{1538.c37b25fc.chunk.js → 1538.06811304.chunk.js} +2 -2
  24. package/static/js/241.9aaa5790.js +2 -0
  25. package/static/js/{6498.bfe18798.js.LICENSE.txt → 241.9aaa5790.js.LICENSE.txt} +1 -1
  26. package/static/js/2458.504bef1c.chunk.js +2 -0
  27. package/static/js/3017.2e1f6413.chunk.js +1 -0
  28. package/static/js/3085.b9d27236.chunk.js +2 -0
  29. package/static/js/4560.b03bbb3f.chunk.js +2 -0
  30. package/static/js/4560.b03bbb3f.chunk.js.LICENSE.txt +101 -0
  31. package/static/js/6501.616f4dec.chunk.js +1 -0
  32. package/static/js/7091.d1a56e4b.js +1 -0
  33. package/static/js/7729.13361a78.js +1 -0
  34. package/static/js/8285.c8bdf11b.js +2 -0
  35. package/static/js/{1302.39ea1b43.js.LICENSE.txt → 8285.c8bdf11b.js.LICENSE.txt} +1 -14
  36. package/static/js/8408.459779d0.js +2 -0
  37. package/static/js/8408.459779d0.js.LICENSE.txt +9 -0
  38. package/static/js/898.2dcef4f3.js +2 -0
  39. package/static/js/9272.d5a35d82.chunk.js +1 -0
  40. package/static/js/9960.6dcf66f0.chunk.js +2 -0
  41. package/static/js/9960.6dcf66f0.chunk.js.LICENSE.txt +30 -0
  42. package/static/js/emailmaker_core.1c694217.js +2 -0
  43. package/static/media/project-email-back.0ce470def19ce7c063e0.svg +29 -0
  44. package/translations.pot +39 -15
  45. package/emailmaker.d.ts +0 -1292
  46. package/iframe/iframe-eblock.71b56f41e572450c6715.html +0 -1
  47. package/iframe/iframe.71b56f41e572450c6715.html +0 -1
  48. package/iframe/js/826.f9cbc257.js +0 -1
  49. package/static/css/3397.f2d44d65.chunk.css +0 -1
  50. package/static/js/1302.39ea1b43.js +0 -2
  51. package/static/js/3017.1bbeda89.chunk.js +0 -1
  52. package/static/js/3085.59662838.chunk.js +0 -2
  53. package/static/js/3273.6cedb8e0.js +0 -2
  54. package/static/js/3397.19e55db9.chunk.js +0 -2
  55. package/static/js/3758.c4bda075.js +0 -2
  56. package/static/js/3927.eb1dc39e.js +0 -1
  57. package/static/js/4138.7f4f36d7.js +0 -1
  58. package/static/js/6498.bfe18798.js +0 -2
  59. package/static/js/985.162f7f7b.js +0 -1
  60. package/static/js/9880.74dc5e4f.chunk.js +0 -2
  61. package/static/js/9880.74dc5e4f.chunk.js.LICENSE.txt +0 -9
  62. package/static/js/emailmaker_core.4a93d2c5.js +0 -2
  63. /package/iframe/js/{826.f9cbc257.js.LICENSE.txt → 826.c1a995fb.js.LICENSE.txt} +0 -0
  64. /package/static/js/{3273.6cedb8e0.js.LICENSE.txt → 1390.87d39fe1.js.LICENSE.txt} +0 -0
  65. /package/static/js/{1538.c37b25fc.chunk.js.LICENSE.txt → 1538.06811304.chunk.js.LICENSE.txt} +0 -0
  66. /package/static/js/{3397.19e55db9.chunk.js.LICENSE.txt → 2458.504bef1c.chunk.js.LICENSE.txt} +0 -0
  67. /package/static/js/{3085.59662838.chunk.js.LICENSE.txt → 3085.b9d27236.chunk.js.LICENSE.txt} +0 -0
  68. /package/static/js/{3758.c4bda075.js.LICENSE.txt → 898.2dcef4f3.js.LICENSE.txt} +0 -0
  69. /package/static/js/{emailmaker_core.4a93d2c5.js.LICENSE.txt → emailmaker_core.1c694217.js.LICENSE.txt} +0 -0
@@ -0,0 +1 @@
1
+ "use strict";(globalThis.webpackChunkemail_maker=globalThis.webpackChunkemail_maker||[]).push([[9272],{3886:(e,t,r)=>{r.r(t),r.d(t,{default:()=>E});var s=r(98173),i=r(2604),l=r(40120),a=r(48753),o=r(98447),d=r(38826),n=r(12543),c=r(871),f=r(47014),u=r(23424),h=r(80772),_=r(84572),g=r(48956),m=r(27941),p=r(32947),I=r(85954),O=(r(51731),r(73180));let A;var M;(M=A||(A={})).isEqual=function(e,t,r=(e,t)=>e===t){if(e===t)return!0;const s=e.length;if(s!==t.length)return!1;for(let i=0;i<s;i++)if(!r(e[i],t[i]))return!1;return!0},M.unique=function(e,t){t||(t=e=>e);const r=new Set;return e.filter((e=>{const s=t(e),i=!r.has(s);return r.add(s),i}))};var v,F=r(62272),P=r(90614),D=r(15626);class b{constructor(e){this._folders=new Map,e&&this.addMany(e)}add(e){this._folders.set(e.id,e)}replace(e,t){this.remove(e),this.add(t);for(const r of this._folders.values())r.parentId===e&&(r.parentId=r.id)}addMany(e){e.forEach((e=>this.add(e)))}remove(e){this._folders.delete(e)}has(e){return this._folders.has(e)}get(e){return this._folders.get(e)}getAll(){return[...this._folders.values()]}getPath(e){const t=this._folders.get(e);if(!t)return"";const r=[t.name];let s=t.parentId;for(;s;){const e=this._folders.get(s);if(!e)break;r.unshift(e.name),s=e.parentId}return r.join("/")}getIdToPathMap(){const e=new Map;for(const[t]of this._folders)e.set(t,this.getPath(t));return e}getPathToIdMap(){const e=new Map;for(const[t]of this._folders){const r=this.getPath(t);e.set(r,t)}return e}clear(){this._folders.clear()}getAllSubfolders(e){const t=[],r=e=>{for(const s of this._folders.values())s.parentId===e&&(t.push(s),r(s.id))};return r(e),t}removeSubtree(e,t=!0){const r=[],s=this._folders.get(e);if(!s)return[];t&&r.push(s);const i=this.getAllSubfolders(e);r.push(...i);for(const l of r)this._folders.delete(l.id);return r}findIdByPath(e){const t=e.split("/").filter(Boolean);if(0===t.length)return;let r;for(const[s,i]of this._folders)if(i.name===t[0]&&!i.parentId){r=i;break}if(r){for(let e=1;e<t.length;e++){const s=t[e];let i;for(const e of this._folders.values())if(e.name===s&&e.parentId===r.id){i=e;break}if(!i)return;r=i}return r}}}let w=(0,r(51213).A)(v=class{constructor(e){this._dataProvider=e,this._folderMap=void 0,this._filesMap=new Map,this._fileRequests=Object.create(null)}_getFolderMap(){return this._folderMap||(this._folderMap=this._doGetFolderMap())}async _doGetFolderMap(){const e=await this._dataProvider.getFolders();return new b(e||[])}async getFolders(){return(await this._getFolderMap()).getAll()}async _getFiles({folderId:e,search:t,sortBy:r,sortOrder:s,page:i,limit:l}){const a=await this._dataProvider.getFiles({folderId:e,search:t,sortBy:r,sortOrder:s,page:i,limit:l}),o=(null===a||void 0===a?void 0:a.files)||[];for(const d of o)this._filesMap.set(d.id,d);return{files:o,pagination:a.pagination}}_doGetFiles(e){"root"===e.folderId&&(e.folderId="");const{folderId:t="root",search:r,sortBy:s="name",sortOrder:i="asc",page:l=1,limit:a=0}=e,o=`@@@@search=${r}@@@@sortBy=${s}@@@@sortOrder=${i}@@@@page=${l}@@@@limit=${a}`,d=this._fileRequests[t]||(this._fileRequests[t]=Object.create(null));return(d[o]||(d[o]=this._getFiles({folderId:t,search:r,sortBy:s,sortOrder:i,page:l,limit:a}))).then((e=>({...e,files:e.files})))}getFiles(e){return this._doGetFiles(e).then((e=>({...e,files:e.files.filter((e=>!e.isFolder))})))}async getFile(e){if(this._dataProvider.getFile)return this._dataProvider.getFile(e);{const t=this._filesMap.get(e);if(!t||!t.url)throw new Error("File not found");return(await fetch(t.url)).blob()}}async deleteFile(e){const t=this._filesMap.get(e);if(!t)throw new Error("File not found");const r=await this._dataProvider.deleteFile(e);return r&&(this._filesMap.delete(e),this._fileRequests[t.folderId]=Object.create(null)),r}async createFolder({name:e,parentId:t}){"root"===t&&(t="");const r=await this._getFolderMap(),s=await this._dataProvider.createFolder({name:e,parentId:t});return r.add(s),s}async deleteFolder(e){const t=await this._getFolderMap(),r=await this._dataProvider.deleteFolder(e);if(r){const r=t.removeSubtree(e),s=new Set(r.map((e=>e.id))),i=[...this._filesMap.values()];for(const e of i)s.has(e.folderId)&&this._filesMap.delete(e.id);this._fileRequests[e]=Object.create(null)}return r}async uploadFile(e){"root"===e.folderId&&(e.folderId="");const t=await this._dataProvider.uploadFile(e);return this._filesMap.set(t.id,t),this._fileRequests[t.folderId]=Object.create(null),t}async renameFile(e,t){const r=await this._dataProvider.renameFile(e,t);return this._filesMap.set(r.id,r),this._fileRequests[r.folderId]=Object.create(null),r}async moveItem({itemId:e,targetFolderId:t,isFolder:r}){if("root"===t&&(t=""),r)this._fileRequests[e]=Object.create(null);else{const t=this._filesMap.get(e);t&&(this._fileRequests[t.folderId]=Object.create(null))}const s=await this._dataProvider.moveItem({itemId:e,targetFolderId:t,isFolder:r});if(s){if(r)this._folderMap=void 0;else{const r=this._filesMap.get(e);r&&this._filesMap.set(e,{...r,folderId:t})}this._fileRequests[t]=Object.create(null)}return s}async copyItem({itemId:e,targetFolderId:t,isFolder:r}){if(!this._dataProvider.copyItem)throw new Error;if("root"===t&&(t=""),r)this._fileRequests[e]=Object.create(null);else{const t=this._filesMap.get(e);t&&(this._fileRequests[t.folderId]=Object.create(null))}const s=await this._dataProvider.copyItem({itemId:e,targetFolderId:t,isFolder:r});if(s){if(r)this._folderMap=void 0;else{const r=this._filesMap.get(e);r&&this._filesMap.set(s.id,{...r,folderId:t,id:s.id,url:s.url,date:(new Date).toISOString(),lastEdited:(new Date).toISOString()})}this._fileRequests[t]=Object.create(null)}return s}async uploadFileByUrl(e){const t=await this._dataProvider.uploadFileByUrl(e);return this._filesMap.set(t.id,t),this._fileRequests[t.folderId]=Object.create(null),t}async updateFile(e,t){const r=await this._dataProvider.updateFile(e,t);return this._filesMap.set(r.id,r),this._fileRequests[r.folderId]=Object.create(null),r}async renameFolder(e,t){const r=await this._getFolderMap(),s=await this._dataProvider.renameFolder(e,t);if(r.replace(e,s),e!==s.id){for(const t of this._filesMap.values())t.folderId===e&&(t.folderId=s.id);delete this._fileRequests[e]}return s}})||v;var L=r(64909);const{useToken:y}=l.A,E=({storageProvider:e})=>{var t,r;const l=(0,m.rD)(),{projectId:M,emailId:v,blockId:b}=(0,F.g)(),{__:E}=(0,n.s9)(),U=(0,i.wA)(),G=(0,i.d4)(f.B$),R=(0,i.d4)(f.C1),S=(0,i.d4)(u.cL),[k,C]=(0,s.useState)(""),[B,q]=(0,s.useState)("my_files"),[N,j]=(0,s.useState)(!1),[T,x]=(0,s.useState)(0),K=(0,i.d4)(_.yN),$=(0,i.d4)(h.js),[Y,z]=(0,s.useState)(""),H=(0,i.d4)(h.Ac),{token:Q}=y(),{error:J}=(0,L.hN)();let W=!(G||(null===(t=R.id)||void 0===t?void 0:t.toString())!==(null===K||void 0===K||null===(r=K.members)||void 0===r?void 0:r.owner.ID))&&!0;const V=(0,s.useMemo)((()=>({img:$,background:H})),[$,H]);(0,s.useEffect)((()=>{S.includes("UPLOAD_BACKGROUND_MODAL")?(C("background"),V.background&&z(V.background)):S.includes("UPLOAD_IMAGE_MODAL")&&(C("img"),V.img&&z(V.img)),S===p.lx.UPLOAD_IMAGE_MODAL||S===p.lx.UPLOAD_BACKGROUND_MODAL?q("editor"):S===p.lx.UPLOAD_IMAGE_MODAL_AI||S===p.lx.UPLOAD_BACKGROUND_MODAL_AI?W?(j(!0),x(2)):q("ai"):S===p.lx.UPLOAD_IMAGE_MODAL_UPLOAD||S===p.lx.UPLOAD_BACKGROUND_MODAL_UPLOAD?q("my_files"):S===p.lx.UPLOAD_IMAGE_MODAL_STOCK||S===p.lx.UPLOAD_BACKGROUND_MODAL_STOCK?W?(j(!0),x(3)):q("stock_images"):S===p.lx.UPLOAD_IMAGE_MODAL_GIF||S===p.lx.UPLOAD_BACKGROUND_MODAL_GIF?W?(j(!0),x(3)):q("gif"):S===p.lx.UPLOAD_IMAGE_MODAL_EDIT||S===p.lx.UPLOAD_BACKGROUND_MODAL_EDIT?(W?(j(!0),x(5)):q("editor"),U((0,u.Wz)(p.lx.IMAGE_EDITOR_MODAL))):q("my_files")}),[S,U,W,V]);const Z=(0,O.mx)((async()=>e?new w(e):(J(E("Error when initializing file manager")),null)),[e,J,E]),X=s.createElement(d.A,{style:{fontSize:32,margin:-16},spin:!0}),[ee,te]=(0,s.useState)((()=>[])),re=(0,s.useCallback)((e=>{A.isEqual(e,ee)||te(e)}),[ee]),[se]=(0,c.Mv)(),ie=(0,s.useCallback)((async()=>{if(Z){const e=ee[0];if(e){const t=e.url||e.thumbnailUrl;"img"===k?U((0,h.tm)(t)):"background"===k&&U((0,h.e_)(t))}}U((0,u.Oo)()),C("")}),[Z,U,u.Oo,ee,k]),le=(0,s.useCallback)((async e=>{if(Z&&e){const t=e.url||e.thumbnailUrl;"img"===k?U((0,h.tm)(t)):"background"===k&&U((0,h.e_)(t))}U((0,u.Oo)()),C("")}),[Z,U,u.Oo,k]),ae=(0,s.useCallback)((async()=>{U((0,u.Oo)()),C("")}),[U,u.Oo]),[oe,{data:de=[]}]=(0,c.gg)(),ne=(null===l||void 0===l?void 0:l.handleLimitUsageEmitter)||(0,P.ml)(D.AZ.ON_LIMIT_ID),ce=(0,s.useCallback)((async function(e){try{await oe(e).unwrap()}catch(t){}}),[oe]);return k&&Z?s.createElement(s.Fragment,null,!W&&s.createElement(a.A,{className:"file-manager",closable:!0,footer:null,open:!!B,width:"100vw",style:{top:0,height:"100vh",padding:10,maxWidth:"none"},onOk:ie,onCancel:()=>{C(""),U((0,u.Oo)())}},s.createElement(o.A,{spinning:!Z,indicator:X},Z&&("editor"===B?s.createElement(I.BC,{onSave:le,onClose:ae,dataProviders:Z,theme:R.theme,file:Y}):s.createElement(I.KG,{dataProviders:Z,onChangeSelection:re,config:{activeLibraryItem:B,REACT_APP_GIPHY_KEY:"Nh77eBlPeMn1ed9MBAvL542NUGeNO26F",UNSPLASH_KEY:"S5iNcLqYgRBIOLQdluHdTsCJnjCvahzhG7JfYQOrV7o",APP_NAME_UNSPLASH:"Nh77eBlPeMn1ed9MBAvL542NUGeNO26F",fileForEdit:Y,projectId:M,elementId:v||b,pushToGTM:null===l||void 0===l?void 0:l.pushToGTM,handleLimitUsageEmitter:ne,sseQuery:ce,messages:de,sendAIImageRequest:(null===l||void 0===l?void 0:l.sendAIImageRequest)||se,locale:R.locale,theme:R.theme,customTheme:Q}})))),s.createElement(g.A,{open:N,onCancel:()=>j(!1),initialSlide:T,sideOnOk:void 0})):null}}}]);
@@ -0,0 +1,2 @@
1
+ /*! For license information please see 9960.6dcf66f0.chunk.js.LICENSE.txt */
2
+ "use strict";(globalThis.webpackChunkemail_maker=globalThis.webpackChunkemail_maker||[]).push([[9960],{76293:(e,t,n)=>{n.d(t,{A:()=>s});var r=n(9793),o=n(98173);const i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M536.1 273H488c-4.4 0-8 3.6-8 8v275.3c0 2.6 1.2 5 3.3 6.5l165.3 120.7c3.6 2.6 8.6 1.9 11.2-1.7l28.6-39c2.7-3.7 1.9-8.7-1.7-11.2L544.1 528.5V281c0-4.4-3.6-8-8-8zm219.8 75.2l156.8 38.3c5 1.2 9.9-2.6 9.9-7.7l.8-161.5c0-6.7-7.7-10.5-12.9-6.3L752.9 334.1a8 8 0 003 14.1zm167.7 301.1l-56.7-19.5a8 8 0 00-10.1 4.8c-1.9 5.1-3.9 10.1-6 15.1-17.8 42.1-43.3 80-75.9 112.5a353 353 0 01-112.5 75.9 352.18 352.18 0 01-137.7 27.8c-47.8 0-94.1-9.3-137.7-27.8a353 353 0 01-112.5-75.9c-32.5-32.5-58-70.4-75.9-112.5A353.44 353.44 0 01171 512c0-47.8 9.3-94.2 27.8-137.8 17.8-42.1 43.3-80 75.9-112.5a353 353 0 01112.5-75.9C430.6 167.3 477 158 524.8 158s94.1 9.3 137.7 27.8A353 353 0 01775 261.7c10.2 10.3 19.8 21 28.6 32.3l59.8-46.8C784.7 146.6 662.2 81.9 524.6 82 285 82.1 92.6 276.7 95 516.4 97.4 751.9 288.9 942 524.8 942c185.5 0 343.5-117.6 403.7-282.3 1.5-4.2-.7-8.9-4.9-10.4z"}}]},name:"history",theme:"outlined"};var a=n(8880),l=function(e,t){return o.createElement(a.A,(0,r.A)({},e,{ref:t,icon:i}))};const s=o.forwardRef(l)},5889:(e,t,n)=>{n.d(t,{A:()=>s});var r=n(9793),o=n(98173);const i={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M885.2 446.3l-.2-.8-112.2-285.1c-5-16.1-19.9-27.2-36.8-27.2H281.2c-17 0-32.1 11.3-36.9 27.6L139.4 443l-.3.7-.2.8c-1.3 4.9-1.7 9.9-1 14.8-.1 1.6-.2 3.2-.2 4.8V830a60.9 60.9 0 0060.8 60.8h627.2c33.5 0 60.8-27.3 60.9-60.8V464.1c0-1.3 0-2.6-.1-3.7.4-4.9 0-9.6-1.3-14.1zm-295.8-43l-.3 15.7c-.8 44.9-31.8 75.1-77.1 75.1-22.1 0-41.1-7.1-54.8-20.6S436 441.2 435.6 419l-.3-15.7H229.5L309 210h399.2l81.7 193.3H589.4zm-375 76.8h157.3c24.3 57.1 76 90.8 140.4 90.8 33.7 0 65-9.4 90.3-27.2 22.2-15.6 39.5-37.4 50.7-63.6h156.5V814H214.4V480.1z"}}]},name:"inbox",theme:"outlined"};var a=n(8880),l=function(e,t){return o.createElement(a.A,(0,r.A)({},e,{ref:t,icon:i}))};const s=o.forwardRef(l)},81214:(e,t,n)=>{n.d(t,{A:()=>o});var r=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|inert|itemProp|itemScope|itemType|itemID|itemRef|on|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/;const o=function(e){var t={};return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}((function(e){return r.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91}))},6476:(e,t,n)=>{n.d(t,{A:()=>te});var r=n(98173),o=n(63448),i=n(36236),a=n(42567),l=n(80320),s=n(85591),c=n.n(s),u=n(89408),d=n(5462),p=n(9793),m=n(2250),f=n(64916),h={percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1,gapPosition:"bottom"},g=function(){var e=(0,r.useRef)([]),t=(0,r.useRef)(null);return(0,r.useEffect)((function(){var n=Date.now(),r=!1;e.current.forEach((function(e){if(e){r=!0;var o=e.style;o.transitionDuration=".3s, .3s, .3s, .06s",t.current&&n-t.current<100&&(o.transitionDuration="0s, 0s")}})),r&&(t.current=Date.now())})),e.current};var v=n(53575),y=n(712),b=n(15717),w=0,$=(0,b.A)();const C=function(e){var t=r.useState(),n=(0,y.A)(t,2),o=n[0],i=n[1];return r.useEffect((function(){i("rc_progress_".concat(function(){var e;return $?(e=w,w+=1):e="TEST_OR_SSR",e}()))}),[]),e||o};var k=function(e){var t=e.bg,n=e.children;return r.createElement("div",{style:{width:"100%",height:"100%",background:t}},n)};function E(e,t){return Object.keys(e).map((function(n){var r=parseFloat(n),o="".concat(Math.floor(r*t),"%");return"".concat(e[n]," ").concat(o)}))}const S=r.forwardRef((function(e,t){var n=e.prefixCls,o=e.color,i=e.gradientId,a=e.radius,l=e.style,s=e.ptg,c=e.strokeLinecap,u=e.strokeWidth,d=e.size,p=e.gapDegree,m=o&&"object"===(0,v.A)(o),f=m?"#FFF":void 0,h=d/2,g=r.createElement("circle",{className:"".concat(n,"-circle-path"),r:a,cx:h,cy:h,stroke:f,strokeLinecap:c,strokeWidth:u,opacity:0===s?0:1,style:l,ref:t});if(!m)return g;var y="".concat(i,"-conic"),b=p?"".concat(180+p/2,"deg"):"0deg",w=E(o,(360-p)/360),$=E(o,1),C="conic-gradient(from ".concat(b,", ").concat(w.join(", "),")"),S="linear-gradient(to ".concat(p?"bottom":"top",", ").concat($.join(", "),")");return r.createElement(r.Fragment,null,r.createElement("mask",{id:y},g),r.createElement("foreignObject",{x:0,y:0,width:d,height:d,mask:"url(#".concat(y,")")},r.createElement(k,{bg:S},r.createElement(k,{bg:C}))))}));var x=100,O=function(e,t,n,r,o,i,a,l,s,c){var u=arguments.length>10&&void 0!==arguments[10]?arguments[10]:0,d=n/100*360*((360-i)/360),p=0===i?0:{bottom:0,top:180,left:90,right:-90}[a],m=(100-r)/100*t;"round"===s&&100!==r&&(m+=c/2)>=t&&(m=t-.01);return{stroke:"string"===typeof l?l:void 0,strokeDasharray:"".concat(t,"px ").concat(e),strokeDashoffset:m+u,transform:"rotate(".concat(o+d+p,"deg)"),transformOrigin:"".concat(50,"px ").concat(50,"px"),transition:"stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s, opacity .3s ease 0s",fillOpacity:0}},A=["id","prefixCls","steps","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"];function D(e){var t=null!==e&&void 0!==e?e:[];return Array.isArray(t)?t:[t]}const j=function(e){var t=(0,m.A)((0,m.A)({},h),e),n=t.id,o=t.prefixCls,i=t.steps,a=t.strokeWidth,l=t.trailWidth,s=t.gapDegree,u=void 0===s?0:s,d=t.gapPosition,y=t.trailColor,b=t.strokeLinecap,w=t.style,$=t.className,k=t.strokeColor,E=t.percent,j=(0,f.A)(t,A),R=C(n),T="".concat(R,"-gradient"),L=50-a/2,P=2*Math.PI*L,I=u>0?90+u/2:-90,M=P*((360-u)/360),N="object"===(0,v.A)(i)?i:{count:i,space:2},F=N.count,z=N.space,_=D(E),H=D(k),U=H.find((function(e){return e&&"object"===(0,v.A)(e)})),B=U&&"object"===(0,v.A)(U)?"butt":b,W=O(P,M,0,100,I,u,d,y,B,a),X=g();return r.createElement("svg",(0,p.A)({className:c()("".concat(o,"-circle"),$),viewBox:"0 0 ".concat(x," ").concat(x),style:w,id:n,role:"presentation"},j),!F&&r.createElement("circle",{className:"".concat(o,"-circle-trail"),r:L,cx:50,cy:50,stroke:y,strokeLinecap:B,strokeWidth:l||a,style:W}),F?function(){var e=Math.round(F*(_[0]/100)),t=100/F,n=0;return new Array(F).fill(null).map((function(i,l){var s=l<=e-1?H[0]:y,c=s&&"object"===(0,v.A)(s)?"url(#".concat(T,")"):void 0,p=O(P,M,n,t,I,u,d,s,"butt",a,z);return n+=100*(M-p.strokeDashoffset+z)/M,r.createElement("circle",{key:l,className:"".concat(o,"-circle-path"),r:L,cx:50,cy:50,stroke:c,strokeWidth:a,opacity:1,style:p,ref:function(e){X[l]=e}})}))}():function(){var e=0;return _.map((function(t,n){var i=H[n]||H[H.length-1],l=O(P,M,e,t,I,u,d,i,B,a);return e+=t,r.createElement(S,{key:n,color:i,ptg:t,radius:L,prefixCls:o,gradientId:T,style:l,strokeLinecap:B,strokeWidth:a,gapDegree:u,ref:function(e){X[n]=e},size:x})})).reverse()}())};var R=n(13785),T=n(46695);function L(e){return!e||e<0?0:e>100?100:e}function P(e){let{success:t,successPercent:n}=e,r=n;return t&&"progress"in t&&(r=t.progress),t&&"percent"in t&&(r=t.percent),r}const I=e=>{let{percent:t,success:n,successPercent:r}=e;const o=L(P({success:n,successPercent:r}));return[o,L(L(t)-o)]},M=(e,t,n)=>{var r,o,i,a;let l=-1,s=-1;if("step"===t){const t=n.steps,r=n.strokeWidth;"string"===typeof e||"undefined"===typeof e?(l="small"===e?2:14,s=null!==r&&void 0!==r?r:8):"number"===typeof e?[l,s]=[e,e]:[l=14,s=8]=e,l*=t}else if("line"===t){const t=null===n||void 0===n?void 0:n.strokeWidth;"string"===typeof e||"undefined"===typeof e?s=t||("small"===e?6:8):"number"===typeof e?[l,s]=[e,e]:[l=-1,s=8]=e}else"circle"!==t&&"dashboard"!==t||("string"===typeof e||"undefined"===typeof e?[l,s]="small"===e?[60,60]:[120,120]:"number"===typeof e?[l,s]=[e,e]:(l=null!==(o=null!==(r=e[0])&&void 0!==r?r:e[1])&&void 0!==o?o:120,s=null!==(a=null!==(i=e[0])&&void 0!==i?i:e[1])&&void 0!==a?a:120));return[l,s]},N=e=>{const{prefixCls:t,trailColor:n=null,strokeLinecap:o="round",gapPosition:i,gapDegree:a,width:l=120,type:s,children:u,success:d,size:p=l}=e,[m,f]=M(p,"circle");let{strokeWidth:h}=e;void 0===h&&(h=Math.max((e=>3/e*100)(m),6));const g={width:m,height:f,fontSize:.15*m+6},v=r.useMemo((()=>a||0===a?a:"dashboard"===s?75:void 0),[a,s]),y=i||"dashboard"===s&&"bottom"||void 0,b="[object Object]"===Object.prototype.toString.call(e.strokeColor),w=(e=>{let{success:t={},strokeColor:n}=e;const{strokeColor:r}=t;return[r||T.uy.green,n||null]})({success:d,strokeColor:e.strokeColor}),$=c()(`${t}-inner`,{[`${t}-circle-gradient`]:b}),C=r.createElement(j,{percent:I(e),strokeWidth:h,trailWidth:h,strokeColor:w,strokeLinecap:o,trailColor:n,prefixCls:t,gapDegree:v,gapPosition:y});return r.createElement("div",{className:$,style:g},m<=20?r.createElement(R.A,{title:u},r.createElement("span",null,C)):r.createElement(r.Fragment,null,C,u))};var F=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(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(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 z=(e,t)=>{const{from:n=T.uy.blue,to:r=T.uy.blue,direction:o=("rtl"===t?"to left":"to right")}=e,i=F(e,["from","to","direction"]);if(0!==Object.keys(i).length){return{backgroundImage:`linear-gradient(${o}, ${(e=>{let t=[];return Object.keys(e).forEach((n=>{const r=parseFloat(n.replace(/%/g,""));isNaN(r)||t.push({key:r,value:e[n]})})),t=t.sort(((e,t)=>e.key-t.key)),t.map((e=>{let{key:t,value:n}=e;return`${n} ${t}%`})).join(", ")})(i)})`}}return{backgroundImage:`linear-gradient(${o}, ${n}, ${r})`}},_=e=>{const{prefixCls:t,direction:n,percent:o,size:i,strokeWidth:a,strokeColor:l,strokeLinecap:s="round",children:c,trailColor:u=null,success:d}=e,p=l&&"string"!==typeof l?z(l,n):{backgroundColor:l},m="square"===s||"butt"===s?0:void 0,f={backgroundColor:u||void 0,borderRadius:m},h=null!==i&&void 0!==i?i:[-1,a||("small"===i?6:8)],[g,v]=M(h,"line",{strokeWidth:a});const y=Object.assign({width:`${L(o)}%`,height:v,borderRadius:m},p),b=P(e),w={width:`${L(b)}%`,height:v,borderRadius:m,backgroundColor:null===d||void 0===d?void 0:d.strokeColor},$={width:g<0?"100%":g,height:v};return r.createElement(r.Fragment,null,r.createElement("div",{className:`${t}-outer`,style:$},r.createElement("div",{className:`${t}-inner`,style:f},r.createElement("div",{className:`${t}-bg`,style:y}),void 0!==b?r.createElement("div",{className:`${t}-success-bg`,style:w}):null)),c)},H=e=>{const{size:t,steps:n,percent:o=0,strokeWidth:i=8,strokeColor:a,trailColor:l=null,prefixCls:s,children:u}=e,d=Math.round(n*(o/100)),p=null!==t&&void 0!==t?t:["small"===t?2:14,i],[m,f]=M(p,"step",{steps:n,strokeWidth:i}),h=m/n,g=new Array(n);for(let v=0;v<n;v++){const e=Array.isArray(a)?a[v]:a;g[v]=r.createElement("div",{key:v,className:c()(`${s}-steps-item`,{[`${s}-steps-item-active`]:v<=d-1}),style:{backgroundColor:v<=d-1?e:l,width:h,height:f}})}return r.createElement("div",{className:`${s}-steps-outer`},g,u)};var U=n(12602),B=n(76660),W=n(33456),X=n(41887);const Y=e=>{const t=e?"100%":"-100%";return new U.Mo(`antProgress${e?"RTL":"LTR"}Active`,{"0%":{transform:`translateX(${t}) scaleX(0)`,opacity:.1},"20%":{transform:`translateX(${t}) scaleX(0)`,opacity:.5},to:{transform:"translateX(0) scaleX(1)",opacity:0}})},q=e=>{const{componentCls:t,iconCls:n}=e;return{[t]:Object.assign(Object.assign({},(0,B.dF)(e)),{display:"inline-block","&-rtl":{direction:"rtl"},"&-line":{position:"relative",width:"100%",fontSize:e.fontSize,marginInlineEnd:e.marginXS,marginBottom:e.marginXS},[`${t}-outer`]:{display:"inline-block",width:"100%"},[`&${t}-show-info`]:{[`${t}-outer`]:{marginInlineEnd:`calc(-2em - ${e.marginXS}px)`,paddingInlineEnd:`calc(2em + ${e.paddingXS}px)`}},[`${t}-inner`]:{position:"relative",display:"inline-block",width:"100%",overflow:"hidden",verticalAlign:"middle",backgroundColor:e.remainingColor,borderRadius:e.lineBorderRadius},[`${t}-inner:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.defaultColor}},[`${t}-success-bg, ${t}-bg`]:{position:"relative",backgroundColor:e.defaultColor,borderRadius:e.lineBorderRadius,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOutCirc}`},[`${t}-success-bg`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,backgroundColor:e.colorSuccess},[`${t}-text`]:{display:"inline-block",width:"2em",marginInlineStart:e.marginXS,color:e.colorText,lineHeight:1,whiteSpace:"nowrap",textAlign:"start",verticalAlign:"middle",wordBreak:"normal",[n]:{fontSize:e.fontSize}},[`&${t}-status-active`]:{[`${t}-bg::before`]:{position:"absolute",inset:0,backgroundColor:e.colorBgContainer,borderRadius:e.lineBorderRadius,opacity:0,animationName:Y(),animationDuration:e.progressActiveMotionDuration,animationTimingFunction:e.motionEaseOutQuint,animationIterationCount:"infinite",content:'""'}},[`&${t}-rtl${t}-status-active`]:{[`${t}-bg::before`]:{animationName:Y(!0)}},[`&${t}-status-exception`]:{[`${t}-bg`]:{backgroundColor:e.colorError},[`${t}-text`]:{color:e.colorError}},[`&${t}-status-exception ${t}-inner:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.colorError}},[`&${t}-status-success`]:{[`${t}-bg`]:{backgroundColor:e.colorSuccess},[`${t}-text`]:{color:e.colorSuccess}},[`&${t}-status-success ${t}-inner:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.colorSuccess}}})}},V=e=>{const{componentCls:t,iconCls:n}=e;return{[t]:{[`${t}-circle-trail`]:{stroke:e.remainingColor},[`&${t}-circle ${t}-inner`]:{position:"relative",lineHeight:1,backgroundColor:"transparent"},[`&${t}-circle ${t}-text`]:{position:"absolute",insetBlockStart:"50%",insetInlineStart:0,width:"100%",margin:0,padding:0,color:e.circleTextColor,fontSize:e.circleTextFontSize,lineHeight:1,whiteSpace:"normal",textAlign:"center",transform:"translateY(-50%)",[n]:{fontSize:e.fontSize/e.fontSizeSM+"em"}},[`${t}-circle&-status-exception`]:{[`${t}-text`]:{color:e.colorError}},[`${t}-circle&-status-success`]:{[`${t}-text`]:{color:e.colorSuccess}}},[`${t}-inline-circle`]:{lineHeight:1,[`${t}-inner`]:{verticalAlign:"bottom"}}}},G=e=>{const{componentCls:t}=e;return{[t]:{[`${t}-steps`]:{display:"inline-block","&-outer":{display:"flex",flexDirection:"row",alignItems:"center"},"&-item":{flexShrink:0,minWidth:e.progressStepMinWidth,marginInlineEnd:e.progressStepMarginInlineEnd,backgroundColor:e.remainingColor,transition:`all ${e.motionDurationSlow}`,"&-active":{backgroundColor:e.defaultColor}}}}}},Q=e=>{const{componentCls:t,iconCls:n}=e;return{[t]:{[`${t}-small&-line, ${t}-small&-line ${t}-text ${n}`]:{fontSize:e.fontSizeSM}}}},K=(0,W.A)("Progress",(e=>{const t=e.marginXXS/2,n=(0,X.h1)(e,{progressStepMarginInlineEnd:t,progressStepMinWidth:t,progressActiveMotionDuration:"2.4s"});return[q(n),V(n),G(n),Q(n)]}),(e=>({circleTextColor:e.colorText,defaultColor:e.colorInfo,remainingColor:e.colorFillSecondary,lineBorderRadius:100,circleTextFontSize:"1em"})));var J=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(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(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 Z=["normal","exception","active","success"],ee=r.forwardRef(((e,t)=>{const{prefixCls:n,className:s,rootClassName:p,steps:m,strokeColor:f,percent:h=0,size:g="default",showInfo:v=!0,type:y="line",status:b,format:w,style:$}=e,C=J(e,["prefixCls","className","rootClassName","steps","strokeColor","percent","size","showInfo","type","status","format","style"]),k=r.useMemo((()=>{var t,n;const r=P(e);return parseInt(void 0!==r?null===(t=null!==r&&void 0!==r?r:0)||void 0===t?void 0:t.toString():null===(n=null!==h&&void 0!==h?h:0)||void 0===n?void 0:n.toString(),10)}),[h,e.success,e.successPercent]),E=r.useMemo((()=>!Z.includes(b)&&k>=100?"success":b||"normal"),[b,k]),{getPrefixCls:S,direction:x,progress:O}=r.useContext(d.QO),A=S("progress",n),[D,j]=K(A),R=r.useMemo((()=>{if(!v)return null;const t=P(e);let n;const s="line"===y;return w||"exception"!==E&&"success"!==E?n=(w||(e=>`${e}%`))(L(h),L(t)):"exception"===E?n=s?r.createElement(a.A,null):r.createElement(l.A,null):"success"===E&&(n=s?r.createElement(o.A,null):r.createElement(i.A,null)),r.createElement("span",{className:`${A}-text`,title:"string"===typeof n?n:void 0},n)}),[v,h,k,E,y,A,w]);const T=Array.isArray(f)?f[0]:f,I="string"===typeof f||Array.isArray(f)?f:void 0;let F;"line"===y?F=m?r.createElement(H,Object.assign({},e,{strokeColor:I,prefixCls:A,steps:m}),R):r.createElement(_,Object.assign({},e,{strokeColor:T,prefixCls:A,direction:x}),R):"circle"!==y&&"dashboard"!==y||(F=r.createElement(N,Object.assign({},e,{strokeColor:T,prefixCls:A,progressStatus:E}),R));const z=c()(A,`${A}-status-${E}`,`${A}-${("dashboard"===y?"circle":m&&"steps")||y}`,{[`${A}-inline-circle`]:"circle"===y&&M(g,"circle")[0]<=20,[`${A}-show-info`]:v,[`${A}-${g}`]:"string"===typeof g,[`${A}-rtl`]:"rtl"===x},null===O||void 0===O?void 0:O.className,s,p,j);return D(r.createElement("div",Object.assign({ref:t,style:Object.assign(Object.assign({},null===O||void 0===O?void 0:O.style),$),className:z,role:"progressbar","aria-valuenow":k},(0,u.A)(C,["trailColor","strokeWidth","width","gapDegree","gapPosition","strokeLinecap","success","successPercent"])),F))}));const te=ee},55415:(e,t,n)=>{n.d(t,{A:()=>We});var r=n(98173),o=n(83912),i=n(85740),a=n(85591),l=n.n(a),s=n(9793),c=n(26786),u=n(96212),d=n(91586),p=n(8068),m=n(70908),f=n(64916),h=n(82542),g=n(53575),v=n(44980),y=n(14902);function b(e){var t=e.responseText||e.response;if(!t)return t;try{return JSON.parse(t)}catch(n){return t}}function w(e){var t=new XMLHttpRequest;e.onProgress&&t.upload&&(t.upload.onprogress=function(t){t.total>0&&(t.percent=t.loaded/t.total*100),e.onProgress(t)});var n=new FormData;e.data&&Object.keys(e.data).forEach((function(t){var r=e.data[t];Array.isArray(r)?r.forEach((function(e){n.append("".concat(t,"[]"),e)})):n.append(t,r)})),e.file instanceof Blob?n.append(e.filename,e.file,e.file.name):n.append(e.filename,e.file),t.onerror=function(t){e.onError(t)},t.onload=function(){return t.status<200||t.status>=300?e.onError(function(e,t){var n="cannot ".concat(e.method," ").concat(e.action," ").concat(t.status,"'"),r=new Error(n);return r.status=t.status,r.method=e.method,r.url=e.action,r}(e,t),b(t)):e.onSuccess(b(t),t)},t.open(e.method,e.action,!0),e.withCredentials&&"withCredentials"in t&&(t.withCredentials=!0);var r=e.headers||{};return null!==r["X-Requested-With"]&&t.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(r).forEach((function(e){null!==r[e]&&t.setRequestHeader(e,r[e])})),t.send(n),{abort:function(){t.abort()}}}var $=+new Date,C=0;function k(){return"rc-upload-".concat($,"-").concat(++C)}var E=n(44449);const S=function(e,t){if(e&&t){var n=Array.isArray(t)?t:t.split(","),r=e.name||"",o=e.type||"",i=o.replace(/\/.*$/,"");return n.some((function(e){var t=e.trim();if(/^\*(\/\*)?$/.test(e))return!0;if("."===t.charAt(0)){var n=r.toLowerCase(),a=t.toLowerCase(),l=[a];return".jpg"!==a&&".jpeg"!==a||(l=[".jpg",".jpeg"]),l.some((function(e){return n.endsWith(e)}))}return/\/\*$/.test(t)?i===t.replace(/\/.*$/,""):o===t||!!/^\w+$/.test(t)&&((0,E.Ay)(!1,"Upload takes an invalidate 'accept' type '".concat(t,"'.Skip for check.")),!0)}))}return!0};const x=function(e,t,n){var r=function e(r,o){r&&(r.path=o||"",r.isFile?r.file((function(e){n(e)&&(r.fullPath&&!e.webkitRelativePath&&(Object.defineProperties(e,{webkitRelativePath:{writable:!0}}),e.webkitRelativePath=r.fullPath.replace(/^\//,""),Object.defineProperties(e,{webkitRelativePath:{writable:!1}})),t([e]))})):r.isDirectory&&function(e,t){var n=e.createReader(),r=[];!function e(){n.readEntries((function(n){var o=Array.prototype.slice.apply(n);r=r.concat(o),o.length?e():t(r)}))}()}(r,(function(t){t.forEach((function(t){e(t,"".concat(o).concat(r.name,"/"))}))})))};e.forEach((function(e){r(e.webkitGetAsEntry())}))};var O=["component","prefixCls","className","disabled","id","style","multiple","accept","capture","children","directory","openFileDialogOnClick","onMouseEnter","onMouseLeave"],A=function(e){(0,d.A)(n,e);var t=(0,p.A)(n);function n(){var e;(0,c.A)(this,n);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return(e=t.call.apply(t,[this].concat(i))).state={uid:k()},e.reqs={},e.fileInput=void 0,e._isMounted=void 0,e.onChange=function(t){var n=e.props,r=n.accept,i=n.directory,a=t.target.files,l=(0,o.A)(a).filter((function(e){return!i||S(e,r)}));e.uploadFiles(l),e.reset()},e.onClick=function(t){var n=e.fileInput;if(n){var r=t.target,o=e.props.onClick;if(r&&"BUTTON"===r.tagName)n.parentNode.focus(),r.blur();n.click(),o&&o(t)}},e.onKeyDown=function(t){"Enter"===t.key&&e.onClick(t)},e.onFileDrop=function(t){var n=e.props.multiple;if(t.preventDefault(),"dragover"!==t.type)if(e.props.directory)x(Array.prototype.slice.call(t.dataTransfer.items),e.uploadFiles,(function(t){return S(t,e.props.accept)}));else{var r=(0,o.A)(t.dataTransfer.files).filter((function(t){return S(t,e.props.accept)}));!1===n&&(r=r.slice(0,1)),e.uploadFiles(r)}},e.uploadFiles=function(t){var n=(0,o.A)(t),r=n.map((function(t){return t.uid=k(),e.processFile(t,n)}));Promise.all(r).then((function(t){var n=e.props.onBatchStart;null===n||void 0===n||n(t.map((function(e){return{file:e.origin,parsedFile:e.parsedFile}}))),t.filter((function(e){return null!==e.parsedFile})).forEach((function(t){e.post(t)}))}))},e.processFile=function(){var t=(0,v.A)((0,h.A)().mark((function t(n,r){var o,i,a,l,s,c,u,d,p;return(0,h.A)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(o=e.props.beforeUpload,i=n,!o){t.next=14;break}return t.prev=3,t.next=6,o(n,r);case 6:i=t.sent,t.next=12;break;case 9:t.prev=9,t.t0=t.catch(3),i=!1;case 12:if(!1!==i){t.next=14;break}return t.abrupt("return",{origin:n,parsedFile:null,action:null,data:null});case 14:if("function"!==typeof(a=e.props.action)){t.next=21;break}return t.next=18,a(n);case 18:l=t.sent,t.next=22;break;case 21:l=a;case 22:if("function"!==typeof(s=e.props.data)){t.next=29;break}return t.next=26,s(n);case 26:c=t.sent,t.next=30;break;case 29:c=s;case 30:return u="object"!==(0,g.A)(i)&&"string"!==typeof i||!i?n:i,d=u instanceof File?u:new File([u],n.name,{type:n.type}),(p=d).uid=n.uid,t.abrupt("return",{origin:n,data:c,parsedFile:p,action:l});case 35:case"end":return t.stop()}}),t,null,[[3,9]])})));return function(e,n){return t.apply(this,arguments)}}(),e.saveFileInput=function(t){e.fileInput=t},e}return(0,u.A)(n,[{key:"componentDidMount",value:function(){this._isMounted=!0}},{key:"componentWillUnmount",value:function(){this._isMounted=!1,this.abort()}},{key:"post",value:function(e){var t=this,n=e.data,r=e.origin,o=e.action,i=e.parsedFile;if(this._isMounted){var a=this.props,l=a.onStart,s=a.customRequest,c=a.name,u=a.headers,d=a.withCredentials,p=a.method,m=r.uid,f=s||w,h={action:o,filename:c,data:n,file:i,headers:u,withCredentials:d,method:p||"post",onProgress:function(e){var n=t.props.onProgress;null===n||void 0===n||n(e,i)},onSuccess:function(e,n){var r=t.props.onSuccess;null===r||void 0===r||r(e,i,n),delete t.reqs[m]},onError:function(e,n){var r=t.props.onError;null===r||void 0===r||r(e,n,i),delete t.reqs[m]}};l(r),this.reqs[m]=f(h)}}},{key:"reset",value:function(){this.setState({uid:k()})}},{key:"abort",value:function(e){var t=this.reqs;if(e){var n=e.uid?e.uid:e;t[n]&&t[n].abort&&t[n].abort(),delete t[n]}else Object.keys(t).forEach((function(e){t[e]&&t[e].abort&&t[e].abort(),delete t[e]}))}},{key:"render",value:function(){var e=this.props,t=e.component,n=e.prefixCls,o=e.className,i=e.disabled,a=e.id,c=e.style,u=e.multiple,d=e.accept,p=e.capture,h=e.children,g=e.directory,v=e.openFileDialogOnClick,b=e.onMouseEnter,w=e.onMouseLeave,$=(0,f.A)(e,O),C=l()((0,m.A)((0,m.A)((0,m.A)({},n,!0),"".concat(n,"-disabled"),i),o,o)),k=g?{directory:"directory",webkitdirectory:"webkitdirectory"}:{},E=i?{}:{onClick:v?this.onClick:function(){},onKeyDown:v?this.onKeyDown:function(){},onMouseEnter:b,onMouseLeave:w,onDrop:this.onFileDrop,onDragOver:this.onFileDrop,tabIndex:"0"};return r.createElement(t,(0,s.A)({},E,{className:C,role:"button",style:c}),r.createElement("input",(0,s.A)({},(0,y.A)($,{aria:!0,data:!0}),{id:a,disabled:i,type:"file",ref:this.saveFileInput,onClick:function(e){return e.stopPropagation()},key:this.state.uid,style:{display:"none"},accept:d},k,{multiple:u,onChange:this.onChange},null!=p?{capture:p}:{})),h)}}]),n}(r.Component);const D=A;function j(){}var R=function(e){(0,d.A)(n,e);var t=(0,p.A)(n);function n(){var e;(0,c.A)(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return(e=t.call.apply(t,[this].concat(o))).uploader=void 0,e.saveUploader=function(t){e.uploader=t},e}return(0,u.A)(n,[{key:"abort",value:function(e){this.uploader.abort(e)}},{key:"render",value:function(){return r.createElement(D,(0,s.A)({},this.props,{ref:this.saveUploader}))}}]),n}(r.Component);R.defaultProps={component:"span",prefixCls:"rc-upload",data:{},headers:{},name:"file",multipart:!1,onStart:j,onError:j,onSuccess:j,multiple:!1,beforeUpload:null,customRequest:null,withCredentials:!1,openFileDialogOnClick:!0};const T=R;var L=n(57144),P=n(5462),I=n(47886),M=n(46555),N=n(94609),F=n(76660),z=n(44800),_=n(33456),H=n(41887);const U=e=>{const{componentCls:t,iconCls:n}=e;return{[`${t}-wrapper`]:{[`${t}-drag`]:{position:"relative",width:"100%",height:"100%",textAlign:"center",background:e.colorFillAlter,border:`${e.lineWidth}px dashed ${e.colorBorder}`,borderRadius:e.borderRadiusLG,cursor:"pointer",transition:`border-color ${e.motionDurationSlow}`,[t]:{padding:`${e.padding}px 0`},[`${t}-btn`]:{display:"table",width:"100%",height:"100%",outline:"none"},[`${t}-drag-container`]:{display:"table-cell",verticalAlign:"middle"},[`&:not(${t}-disabled):hover`]:{borderColor:e.colorPrimaryHover},[`p${t}-drag-icon`]:{marginBottom:e.margin,[n]:{color:e.colorPrimary,fontSize:e.uploadThumbnailSize}},[`p${t}-text`]:{margin:`0 0 ${e.marginXXS}px`,color:e.colorTextHeading,fontSize:e.fontSizeLG},[`p${t}-hint`]:{color:e.colorTextDescription,fontSize:e.fontSize},[`&${t}-disabled`]:{[`p${t}-drag-icon ${n},\n p${t}-text,\n p${t}-hint\n `]:{color:e.colorTextDisabled}}}}}},B=e=>{const{componentCls:t,antCls:n,iconCls:r,fontSize:o,lineHeight:i}=e,a=`${t}-list-item`,l=`${a}-actions`,s=`${a}-action`,c=Math.round(o*i);return{[`${t}-wrapper`]:{[`${t}-list`]:Object.assign(Object.assign({},(0,F.t6)()),{lineHeight:e.lineHeight,[a]:{position:"relative",height:e.lineHeight*o,marginTop:e.marginXS,fontSize:o,display:"flex",alignItems:"center",transition:`background-color ${e.motionDurationSlow}`,"&:hover":{backgroundColor:e.controlItemBgHover},[`${a}-name`]:Object.assign(Object.assign({},F.L9),{padding:`0 ${e.paddingXS}px`,lineHeight:i,flex:"auto",transition:`all ${e.motionDurationSlow}`}),[l]:{[s]:{opacity:0},[`${s}${n}-btn-sm`]:{height:c,border:0,lineHeight:1,"> span":{transform:"scale(1)"}},[`\n ${s}:focus-visible,\n &.picture ${s}\n `]:{opacity:1},[r]:{color:e.actionsColor,transition:`all ${e.motionDurationSlow}`},[`&:hover ${r}`]:{color:e.colorText}},[`${t}-icon ${r}`]:{color:e.colorTextDescription,fontSize:o},[`${a}-progress`]:{position:"absolute",bottom:-e.uploadProgressOffset,width:"100%",paddingInlineStart:o+e.paddingXS,fontSize:o,lineHeight:0,pointerEvents:"none","> div":{margin:0}}},[`${a}:hover ${s}`]:{opacity:1,color:e.colorText},[`${a}-error`]:{color:e.colorError,[`${a}-name, ${t}-icon ${r}`]:{color:e.colorError},[l]:{[`${r}, ${r}:hover`]:{color:e.colorError},[s]:{opacity:1}}},[`${t}-list-item-container`]:{transition:`opacity ${e.motionDurationSlow}, height ${e.motionDurationSlow}`,"&::before":{display:"table",width:0,height:0,content:'""'}}})}}};var W=n(12602),X=n(83389);const Y=new W.Mo("uploadAnimateInlineIn",{from:{width:0,height:0,margin:0,padding:0,opacity:0}}),q=new W.Mo("uploadAnimateInlineOut",{to:{width:0,height:0,margin:0,padding:0,opacity:0}}),V=e=>{const{componentCls:t}=e,n=`${t}-animate-inline`;return[{[`${t}-wrapper`]:{[`${n}-appear, ${n}-enter, ${n}-leave`]:{animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseInOutCirc,animationFillMode:"forwards"},[`${n}-appear, ${n}-enter`]:{animationName:Y},[`${n}-leave`]:{animationName:q}}},{[`${t}-wrapper`]:(0,X.p9)(e)},Y,q]};var G=n(46695),Q=n(43507);const K=e=>{const{componentCls:t,iconCls:n,uploadThumbnailSize:r,uploadProgressOffset:o}=e,i=`${t}-list`,a=`${i}-item`;return{[`${t}-wrapper`]:{[`\n ${i}${i}-picture,\n ${i}${i}-picture-card,\n ${i}${i}-picture-circle\n `]:{[a]:{position:"relative",height:r+2*e.lineWidth+2*e.paddingXS,padding:e.paddingXS,border:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusLG,"&:hover":{background:"transparent"},[`${a}-thumbnail`]:Object.assign(Object.assign({},F.L9),{width:r,height:r,lineHeight:`${r+e.paddingSM}px`,textAlign:"center",flex:"none",[n]:{fontSize:e.fontSizeHeading2,color:e.colorPrimary},img:{display:"block",width:"100%",height:"100%",overflow:"hidden"}}),[`${a}-progress`]:{bottom:o,width:`calc(100% - ${2*e.paddingSM}px)`,marginTop:0,paddingInlineStart:r+e.paddingXS}},[`${a}-error`]:{borderColor:e.colorError,[`${a}-thumbnail ${n}`]:{[`svg path[fill='${G.z1[0]}']`]:{fill:e.colorErrorBg},[`svg path[fill='${G.z1.primary}']`]:{fill:e.colorError}}},[`${a}-uploading`]:{borderStyle:"dashed",[`${a}-name`]:{marginBottom:o}}},[`${i}${i}-picture-circle ${a}`]:{[`&, &::before, ${a}-thumbnail`]:{borderRadius:"50%"}}}}},J=e=>{const{componentCls:t,iconCls:n,fontSizeLG:r,colorTextLightSolid:o}=e,i=`${t}-list`,a=`${i}-item`,l=e.uploadPicCardSize;return{[`\n ${t}-wrapper${t}-picture-card-wrapper,\n ${t}-wrapper${t}-picture-circle-wrapper\n `]:Object.assign(Object.assign({},(0,F.t6)()),{display:"inline-block",width:"100%",[`${t}${t}-select`]:{width:l,height:l,marginInlineEnd:e.marginXS,marginBottom:e.marginXS,textAlign:"center",verticalAlign:"top",backgroundColor:e.colorFillAlter,border:`${e.lineWidth}px dashed ${e.colorBorder}`,borderRadius:e.borderRadiusLG,cursor:"pointer",transition:`border-color ${e.motionDurationSlow}`,[`> ${t}`]:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%",textAlign:"center"},[`&:not(${t}-disabled):hover`]:{borderColor:e.colorPrimary}},[`${i}${i}-picture-card, ${i}${i}-picture-circle`]:{[`${i}-item-container`]:{display:"inline-block",width:l,height:l,marginBlock:`0 ${e.marginXS}px`,marginInline:`0 ${e.marginXS}px`,verticalAlign:"top"},"&::after":{display:"none"},[a]:{height:"100%",margin:0,"&::before":{position:"absolute",zIndex:1,width:`calc(100% - ${2*e.paddingXS}px)`,height:`calc(100% - ${2*e.paddingXS}px)`,backgroundColor:e.colorBgMask,opacity:0,transition:`all ${e.motionDurationSlow}`,content:'" "'}},[`${a}:hover`]:{[`&::before, ${a}-actions`]:{opacity:1}},[`${a}-actions`]:{position:"absolute",insetInlineStart:0,zIndex:10,width:"100%",whiteSpace:"nowrap",textAlign:"center",opacity:0,transition:`all ${e.motionDurationSlow}`,[`${n}-eye, ${n}-download, ${n}-delete`]:{zIndex:10,width:r,margin:`0 ${e.marginXXS}px`,fontSize:r,cursor:"pointer",transition:`all ${e.motionDurationSlow}`,svg:{verticalAlign:"baseline"}}},[`${a}-actions, ${a}-actions:hover`]:{[`${n}-eye, ${n}-download, ${n}-delete`]:{color:new Q.q(o).setAlpha(.65).toRgbString(),"&:hover":{color:o}}},[`${a}-thumbnail, ${a}-thumbnail img`]:{position:"static",display:"block",width:"100%",height:"100%",objectFit:"contain"},[`${a}-name`]:{display:"none",textAlign:"center"},[`${a}-file + ${a}-name`]:{position:"absolute",bottom:e.margin,display:"block",width:`calc(100% - ${2*e.paddingXS}px)`},[`${a}-uploading`]:{[`&${a}`]:{backgroundColor:e.colorFillAlter},[`&::before, ${n}-eye, ${n}-download, ${n}-delete`]:{display:"none"}},[`${a}-progress`]:{bottom:e.marginXL,width:`calc(100% - ${2*e.paddingXS}px)`,paddingInlineStart:0}}}),[`${t}-wrapper${t}-picture-circle-wrapper`]:{[`${t}${t}-select`]:{borderRadius:"50%"}}}},Z=e=>{const{componentCls:t}=e;return{[`${t}-rtl`]:{direction:"rtl"}}},ee=e=>{const{componentCls:t,colorTextDisabled:n}=e;return{[`${t}-wrapper`]:Object.assign(Object.assign({},(0,F.dF)(e)),{[t]:{outline:0,"input[type='file']":{cursor:"pointer"}},[`${t}-select`]:{display:"inline-block"},[`${t}-disabled`]:{color:n,cursor:"not-allowed"}})}},te=(0,_.A)("Upload",(e=>{const{fontSizeHeading3:t,fontSize:n,lineHeight:r,lineWidth:o,controlHeightLG:i}=e,a=Math.round(n*r),l=(0,H.h1)(e,{uploadThumbnailSize:2*t,uploadProgressOffset:a/2+o,uploadPicCardSize:2.55*i});return[ee(l),U(l),K(l),J(l),B(l),V(l),Z(l),(0,z.A)(l)]}),(e=>({actionsColor:e.colorTextDescription})));const ne={icon:function(e,t){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M534 352V136H232v752h560V394H576a42 42 0 01-42-42z",fill:t}},{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM602 137.8L790.2 326H602V137.8zM792 888H232V136h302v216a42 42 0 0042 42h216v494z",fill:e}}]}},name:"file",theme:"twotone"};var re=n(8880),oe=function(e,t){return r.createElement(re.A,(0,s.A)({},e,{ref:t,icon:ne}))};const ie=r.forwardRef(oe);var ae=n(38826);const le={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M779.3 196.6c-94.2-94.2-247.6-94.2-341.7 0l-261 260.8c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l261-260.8c32.4-32.4 75.5-50.2 121.3-50.2s88.9 17.8 121.2 50.2c32.4 32.4 50.2 75.5 50.2 121.2 0 45.8-17.8 88.8-50.2 121.2l-266 265.9-43.1 43.1c-40.3 40.3-105.8 40.3-146.1 0-19.5-19.5-30.2-45.4-30.2-73s10.7-53.5 30.2-73l263.9-263.8c6.7-6.6 15.5-10.3 24.9-10.3h.1c9.4 0 18.1 3.7 24.7 10.3 6.7 6.7 10.3 15.5 10.3 24.9 0 9.3-3.7 18.1-10.3 24.7L372.4 653c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l215.6-215.6c19.9-19.9 30.8-46.3 30.8-74.4s-11-54.6-30.8-74.4c-41.1-41.1-107.9-41-149 0L463 364 224.8 602.1A172.22 172.22 0 00174 724.8c0 46.3 18.1 89.8 50.8 122.5 33.9 33.8 78.3 50.7 122.7 50.7 44.4 0 88.8-16.9 122.6-50.7l309.2-309C824.8 492.7 850 432 850 367.5c.1-64.6-25.1-125.3-70.7-170.9z"}}]},name:"paper-clip",theme:"outlined"};var se=function(e,t){return r.createElement(re.A,(0,s.A)({},e,{ref:t,icon:le}))};const ce=r.forwardRef(se);const ue={icon:function(e,t){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 160H96c-17.7 0-32 14.3-32 32v640c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V192c0-17.7-14.3-32-32-32zm-40 632H136v-39.9l138.5-164.3 150.1 178L658.1 489 888 761.6V792zm0-129.8L664.2 396.8c-3.2-3.8-9-3.8-12.2 0L424.6 666.4l-144-170.7c-3.2-3.8-9-3.8-12.2 0L136 652.7V232h752v430.2z",fill:e}},{tag:"path",attrs:{d:"M424.6 765.8l-150.1-178L136 752.1V792h752v-30.4L658.1 489z",fill:t}},{tag:"path",attrs:{d:"M136 652.7l132.4-157c3.2-3.8 9-3.8 12.2 0l144 170.7L652 396.8c3.2-3.8 9-3.8 12.2 0L888 662.2V232H136v420.7zM304 280a88 88 0 110 176 88 88 0 010-176z",fill:t}},{tag:"path",attrs:{d:"M276 368a28 28 0 1056 0 28 28 0 10-56 0z",fill:t}},{tag:"path",attrs:{d:"M304 456a88 88 0 100-176 88 88 0 000 176zm0-116c15.5 0 28 12.5 28 28s-12.5 28-28 28-28-12.5-28-28 12.5-28 28-28z",fill:e}}]}},name:"picture",theme:"twotone"};var de=function(e,t){return r.createElement(re.A,(0,s.A)({},e,{ref:t,icon:ue}))};const pe=r.forwardRef(de);var me=n(52039),fe=n(69736),he=n(72548),ge=n(66823),ve=n(37969);function ye(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 be(e,t){const n=(0,o.A)(t),r=n.findIndex((t=>{let{uid:n}=t;return n===e.uid}));return-1===r?n.push(e):n[r]=e,n}function we(e,t){const n=void 0!==e.uid?"uid":"name";return t.filter((t=>t[n]===e[n]))[0]}const $e=e=>0===e.indexOf("image/"),Ce=e=>{if(e.type&&!e.thumbUrl)return $e(e.type);const t=e.thumbUrl||e.url||"",n=function(){const e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"").split("/"),t=e[e.length-1].split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(t)||[""])[0]}(t);return!(!/^data:image\//.test(t)&&!/(webp|svg|png|gif|jpg|jpeg|jfif|bmp|dpg|ico|heic|heif)$/i.test(n))||!/^data:/.test(t)&&!n},ke=200;function Ee(e){return new Promise((t=>{if(!e.type||!$e(e.type))return void t("");const n=document.createElement("canvas");n.width=ke,n.height=ke,n.style.cssText="position: fixed; left: 0; top: 0; width: 200px; height: 200px; z-index: 9999; display: none;",document.body.appendChild(n);const r=n.getContext("2d"),o=new Image;if(o.onload=()=>{const{width:e,height:i}=o;let a=ke,l=ke,s=0,c=0;e>i?(l=i*(ke/e),c=-(l-a)/2):(a=e*(ke/i),s=-(a-l)/2),r.drawImage(o,s,c,a,l);const u=n.toDataURL();document.body.removeChild(n),window.URL.revokeObjectURL(o.src),t(u)},o.crossOrigin="anonymous",e.type.startsWith("image/svg+xml")){const t=new FileReader;t.onload=()=>{t.result&&(o.src=t.result)},t.readAsDataURL(e)}else if(e.type.startsWith("image/gif")){const n=new FileReader;n.onload=()=>{n.result&&t(n.result)},n.readAsDataURL(e)}else o.src=window.URL.createObjectURL(e)}))}var Se=n(40186);const xe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M505.7 661a8 8 0 0012.6 0l112-141.7c4.1-5.2.4-12.9-6.3-12.9h-74.1V168c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v338.3H400c-6.7 0-10.4 7.7-6.3 12.9l112 141.8zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"}}]},name:"download",theme:"outlined"};var Oe=function(e,t){return r.createElement(re.A,(0,s.A)({},e,{ref:t,icon:xe}))};const Ae=r.forwardRef(Oe);var De=n(67756),je=n(6476),Re=n(13785);const Te=r.forwardRef(((e,t)=>{let{prefixCls:n,className:o,style:i,locale:a,listType:s,file:c,items:u,progress:d,iconRender:p,actionIconRender:m,itemRender:f,isImgUrl:h,showPreviewIcon:g,showRemoveIcon:v,showDownloadIcon:y,previewIcon:b,removeIcon:w,downloadIcon:$,onPreview:C,onDownload:k,onClose:E}=e;var S,x;const{status:O}=c,[A,D]=r.useState(O);r.useEffect((()=>{"removed"!==O&&D(O)}),[O]);const[j,R]=r.useState(!1);r.useEffect((()=>{const e=setTimeout((()=>{R(!0)}),300);return()=>{clearTimeout(e)}}),[]);const T=p(c);let L=r.createElement("div",{className:`${n}-icon`},T);if("picture"===s||"picture-card"===s||"picture-circle"===s)if("uploading"===A||!c.thumbUrl&&!c.url){const e=l()(`${n}-list-item-thumbnail`,{[`${n}-list-item-file`]:"uploading"!==A});L=r.createElement("div",{className:e},T)}else{const e=(null===h||void 0===h?void 0:h(c))?r.createElement("img",{src:c.thumbUrl||c.url,alt:c.name,className:`${n}-list-item-image`,crossOrigin:c.crossOrigin}):T,t=l()(`${n}-list-item-thumbnail`,{[`${n}-list-item-file`]:h&&!h(c)});L=r.createElement("a",{className:t,onClick:e=>C(c,e),href:c.url||c.thumbUrl,target:"_blank",rel:"noopener noreferrer"},e)}const I=l()(`${n}-list-item`,`${n}-list-item-${A}`),M="string"===typeof c.linkProps?JSON.parse(c.linkProps):c.linkProps,N=v?m(("function"===typeof w?w(c):w)||r.createElement(Se.A,null),(()=>E(c)),n,a.removeFile):null,F=y&&"done"===A?m(("function"===typeof $?$(c):$)||r.createElement(Ae,null),(()=>k(c)),n,a.downloadFile):null,z="picture-card"!==s&&"picture-circle"!==s&&r.createElement("span",{key:"download-delete",className:l()(`${n}-list-item-actions`,{picture:"picture"===s})},F,N),_=l()(`${n}-list-item-name`),H=c.url?[r.createElement("a",Object.assign({key:"view",target:"_blank",rel:"noopener noreferrer",className:_,title:c.name},M,{href:c.url,onClick:e=>C(c,e)}),c.name),z]:[r.createElement("span",{key:"view",className:_,onClick:e=>C(c,e),title:c.name},c.name),z],U=g?r.createElement("a",{href:c.url||c.thumbUrl,target:"_blank",rel:"noopener noreferrer",style:c.url||c.thumbUrl?void 0:{pointerEvents:"none",opacity:.5},onClick:e=>C(c,e),title:a.previewFile},"function"===typeof b?b(c):b||r.createElement(De.A,null)):null,B=("picture-card"===s||"picture-circle"===s)&&"uploading"!==A&&r.createElement("span",{className:`${n}-list-item-actions`},U,"done"===A&&F,N),{getPrefixCls:W}=r.useContext(P.QO),X=W(),Y=r.createElement("div",{className:I},L,H,B,j&&r.createElement(me.Ay,{motionName:`${X}-fade`,visible:"uploading"===A,motionDeadline:2e3},(e=>{let{className:t}=e;const o="percent"in c?r.createElement(je.A,Object.assign({},d,{type:"line",percent:c.percent,"aria-label":c["aria-label"],"aria-labelledby":c["aria-labelledby"]})):null;return r.createElement("div",{className:l()(`${n}-list-item-progress`,t)},o)}))),q=c.response&&"string"===typeof c.response?c.response:(null===(S=c.error)||void 0===S?void 0:S.statusText)||(null===(x=c.error)||void 0===x?void 0:x.message)||a.uploadError,V="error"===A?r.createElement(Re.A,{title:q,getPopupContainer:e=>e.parentNode},Y):Y;return r.createElement("div",{className:l()(`${n}-list-item-container`,o),style:i,ref:t},f?f(V,c,u,{download:k.bind(null,c),preview:C.bind(null,c),remove:E.bind(null,c)}):V)})),Le=Te,Pe=(e,t)=>{const{listType:n="text",previewFile:i=Ee,onPreview:a,onDownload:s,onRemove:c,locale:u,iconRender:d,isImageUrl:p=Ce,prefixCls:m,items:f=[],showPreviewIcon:h=!0,showRemoveIcon:g=!0,showDownloadIcon:v=!1,removeIcon:y,previewIcon:b,downloadIcon:w,progress:$={size:[-1,2],showInfo:!1},appendAction:C,appendActionVisible:k=!0,itemRender:E,disabled:S}=e,x=(0,fe.A)(),[O,A]=r.useState(!1);r.useEffect((()=>{"picture"!==n&&"picture-card"!==n&&"picture-circle"!==n||(f||[]).forEach((e=>{"undefined"!==typeof document&&"undefined"!==typeof window&&window.FileReader&&window.File&&(e.originFileObj instanceof File||e.originFileObj instanceof Blob)&&void 0===e.thumbUrl&&(e.thumbUrl="",i&&i(e.originFileObj).then((t=>{e.thumbUrl=t||"",x()})))}))}),[n,f,i]),r.useEffect((()=>{A(!0)}),[]);const D=(e,t)=>{if(a)return null===t||void 0===t||t.preventDefault(),a(e)},j=e=>{"function"===typeof s?s(e):e.url&&window.open(e.url)},R=e=>{null===c||void 0===c||c(e)},T=e=>{if(d)return d(e,n);const t="uploading"===e.status,o=p&&p(e)?r.createElement(pe,null):r.createElement(ie,null);let i=t?r.createElement(ae.A,null):r.createElement(ce,null);return"picture"===n?i=t?r.createElement(ae.A,null):o:"picture-card"!==n&&"picture-circle"!==n||(i=t?u.uploading:o),i},L=(e,t,n,o)=>{const i={type:"text",size:"small",title:o,onClick:n=>{t(),(0,ge.zO)(e)&&e.props.onClick&&e.props.onClick(n)},className:`${n}-list-item-action`,disabled:S};if((0,ge.zO)(e)){const t=(0,ge.Ob)(e,Object.assign(Object.assign({},e.props),{onClick:()=>{}}));return r.createElement(ve.Ay,Object.assign({},i,{icon:t}))}return r.createElement(ve.Ay,Object.assign({},i),r.createElement("span",null,e))};r.useImperativeHandle(t,(()=>({handlePreview:D,handleDownload:j})));const{getPrefixCls:I}=r.useContext(P.QO),M=I("upload",m),N=I(),F=l()(`${M}-list`,`${M}-list-${n}`),z=(0,o.A)(f.map((e=>({key:e.uid,file:e}))));let _={motionDeadline:2e3,motionName:`${M}-${"picture-card"===n||"picture-circle"===n?"animate-inline":"animate"}`,keys:z,motionAppear:O};const H=r.useMemo((()=>{const e=Object.assign({},(0,he.A)(N));return delete e.onAppearEnd,delete e.onEnterEnd,delete e.onLeaveEnd,e}),[N]);return"picture-card"!==n&&"picture-circle"!==n&&(_=Object.assign(Object.assign({},H),_)),r.createElement("div",{className:F},r.createElement(me.aF,Object.assign({},_,{component:!1}),(e=>{let{key:t,file:o,className:i,style:a}=e;return r.createElement(Le,{key:t,locale:u,prefixCls:M,className:i,style:a,file:o,items:f,progress:$,listType:n,isImgUrl:p,showPreviewIcon:h,showRemoveIcon:g,showDownloadIcon:v,removeIcon:y,previewIcon:b,downloadIcon:w,iconRender:T,actionIconRender:L,itemRender:E,onPreview:D,onDownload:j,onClose:R})})),C&&r.createElement(me.Ay,Object.assign({},_,{visible:k,forceRender:!0}),(e=>{let{className:t,style:n}=e;return(0,ge.Ob)(C,(e=>({className:l()(e.className,t),style:Object.assign(Object.assign(Object.assign({},n),{pointerEvents:t?"none":void 0}),e.style)})))})))};const Ie=r.forwardRef(Pe);var Me=function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{s(r.next(e))}catch(t){i(t)}}function l(e){try{s(r.throw(e))}catch(t){i(t)}}function s(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,l)}s((r=r.apply(e,t||[])).next())}))};const Ne=`__LIST_IGNORE_${Date.now()}__`,Fe=(e,t)=>{const{fileList:n,defaultFileList:a,onRemove:s,showUploadList:c=!0,listType:u="text",onPreview:d,onDownload:p,onChange:m,onDrop:f,previewFile:h,disabled:g,locale:v,iconRender:y,isImageUrl:b,progress:w,prefixCls:$,className:C,type:k="select",children:E,style:S,itemRender:x,maxCount:O,data:A={},multiple:D=!1,action:j="",accept:R="",supportServerRender:F=!0,rootClassName:z}=e,_=r.useContext(I.A),H=null!==g&&void 0!==g?g:_,[U,B]=(0,L.A)(a||[],{value:n,postState:e=>null!==e&&void 0!==e?e:[]}),[W,X]=r.useState("drop"),Y=r.useRef(null);r.useMemo((()=>{const e=Date.now();(n||[]).forEach(((t,n)=>{t.uid||Object.isFrozen(t)||(t.uid=`__AUTO__${e}_${n}__`)}))}),[n]);const q=(e,t,n)=>{let r=(0,o.A)(t),a=!1;1===O?r=r.slice(-1):O&&(a=r.length>O,r=r.slice(0,O)),(0,i.flushSync)((()=>{B(r)}));const l={file:e,fileList:r};n&&(l.event=n),a&&!r.some((t=>t.uid===e.uid))||(0,i.flushSync)((()=>{null===m||void 0===m||m(l)}))},V=e=>{const t=e.filter((e=>!e.file[Ne]));if(!t.length)return;const n=t.map((e=>ye(e.file)));let r=(0,o.A)(U);n.forEach((e=>{r=be(e,r)})),n.forEach(((e,n)=>{let o=e;if(t[n].parsedFile)e.status="uploading";else{const{originFileObj:t}=e;let n;try{n=new File([t],t.name,{type:t.type})}catch(i){n=new Blob([t],{type:t.type}),n.name=t.name,n.lastModifiedDate=new Date,n.lastModified=(new Date).getTime()}n.uid=e.uid,o=n}q(o,r)}))},G=(e,t,n)=>{try{"string"===typeof e&&(e=JSON.parse(e))}catch(i){}if(!we(t,U))return;const r=ye(t);r.status="done",r.percent=100,r.response=e,r.xhr=n;const o=be(r,U);q(r,o)},Q=(e,t)=>{if(!we(t,U))return;const n=ye(t);n.status="uploading",n.percent=e.percent;const r=be(n,U);q(n,r,e)},K=(e,t,n)=>{if(!we(n,U))return;const r=ye(n);r.error=e,r.response=t,r.status="error";const o=be(r,U);q(r,o)},J=e=>{let t;Promise.resolve("function"===typeof s?s(e):s).then((n=>{var r;if(!1===n)return;const o=function(e,t){const n=void 0!==e.uid?"uid":"name",r=t.filter((t=>t[n]!==e[n]));return r.length===t.length?null:r}(e,U);o&&(t=Object.assign(Object.assign({},e),{status:"removed"}),null===U||void 0===U||U.forEach((e=>{const n=void 0!==t.uid?"uid":"name";e[n]!==t[n]||Object.isFrozen(e)||(e.status="removed")})),null===(r=Y.current)||void 0===r||r.abort(t),q(t,o))}))},Z=e=>{X(e.type),"drop"===e.type&&(null===f||void 0===f||f(e))};r.useImperativeHandle(t,(()=>({onBatchStart:V,onSuccess:G,onProgress:Q,onError:K,fileList:U,upload:Y.current})));const{getPrefixCls:ee,direction:ne,upload:re}=r.useContext(P.QO),oe=ee("upload",$),ie=Object.assign(Object.assign({onBatchStart:V,onError:K,onProgress:Q,onSuccess:G},e),{data:A,multiple:D,action:j,accept:R,supportServerRender:F,prefixCls:oe,disabled:H,beforeUpload:(t,n)=>Me(void 0,void 0,void 0,(function*(){const{beforeUpload:r,transformFile:o}=e;let i=t;if(r){const e=yield r(t,n);if(!1===e)return!1;if(delete t[Ne],e===Ne)return Object.defineProperty(t,Ne,{value:!0,configurable:!0}),!1;"object"===typeof e&&e&&(i=e)}return o&&(i=yield o(i)),i})),onChange:void 0});delete ie.className,delete ie.style,E&&!H||delete ie.id;const[ae,le]=te(oe),[se]=(0,M.default)("Upload",N.default.Upload),{showRemoveIcon:ce,showPreviewIcon:ue,showDownloadIcon:de,removeIcon:pe,previewIcon:me,downloadIcon:fe}="boolean"===typeof c?{}:c,he=(e,t)=>c?r.createElement(Ie,{prefixCls:oe,listType:u,items:U,previewFile:h,onPreview:d,onDownload:p,onRemove:J,showRemoveIcon:!H&&ce,showPreviewIcon:ue,showDownloadIcon:de,removeIcon:pe,previewIcon:me,downloadIcon:fe,iconRender:y,locale:Object.assign(Object.assign({},se),v),isImageUrl:b,progress:w,appendAction:e,appendActionVisible:t,itemRender:x,disabled:H}):e,ge=l()(`${oe}-wrapper`,C,z,le,null===re||void 0===re?void 0:re.className,{[`${oe}-rtl`]:"rtl"===ne,[`${oe}-picture-card-wrapper`]:"picture-card"===u,[`${oe}-picture-circle-wrapper`]:"picture-circle"===u}),ve=Object.assign(Object.assign({},null===re||void 0===re?void 0:re.style),S);if("drag"===k){const e=l()(le,oe,`${oe}-drag`,{[`${oe}-drag-uploading`]:U.some((e=>"uploading"===e.status)),[`${oe}-drag-hover`]:"dragover"===W,[`${oe}-disabled`]:H,[`${oe}-rtl`]:"rtl"===ne});return ae(r.createElement("span",{className:ge},r.createElement("div",{className:e,style:ve,onDrop:Z,onDragOver:Z,onDragLeave:Z},r.createElement(T,Object.assign({},ie,{ref:Y,className:`${oe}-btn`}),r.createElement("div",{className:`${oe}-drag-container`},E))),he()))}const $e=l()(oe,`${oe}-select`,{[`${oe}-disabled`]:H}),Ce=(ke=E?void 0:{display:"none"},r.createElement("div",{className:$e,style:ke},r.createElement(T,Object.assign({},ie,{ref:Y}))));var ke;return ae("picture-card"===u||"picture-circle"===u?r.createElement("span",{className:ge},he(Ce,!!E)):r.createElement("span",{className:ge},Ce,he()))};const ze=r.forwardRef(Fe);var _e=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(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(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 He=r.forwardRef(((e,t)=>{var{style:n,height:o}=e,i=_e(e,["style","height"]);return r.createElement(ze,Object.assign({ref:t},i,{type:"drag",style:Object.assign(Object.assign({},n),{height:o})}))}));const Ue=He,Be=ze;Be.Dragger=Ue,Be.LIST_IGNORE=Ne;const We=Be},20127:(e,t,n)=>{n.d(t,{A:()=>u});var r=n(98173),o=function(e,t){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},o(e,t)};var i=function(){return i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},i.apply(this,arguments)};var a="Pixel",l="Percent",s={unit:l,value:.8};function c(e){return"number"===typeof e?{unit:l,value:100*e}:"string"===typeof e?e.match(/^(\d*(\.\d+)?)px$/)?{unit:a,value:parseFloat(e)}:e.match(/^(\d*(\.\d+)?)%$/)?{unit:l,value:parseFloat(e)}:s:s}const u=function(e){function t(t){var n=e.call(this,t)||this;return n.lastScrollTop=0,n.actionTriggered=!1,n.startY=0,n.currentY=0,n.dragging=!1,n.maxPullDownDistance=0,n.getScrollableTarget=function(){return n.props.scrollableTarget instanceof HTMLElement?n.props.scrollableTarget:"string"===typeof n.props.scrollableTarget?document.getElementById(n.props.scrollableTarget):(n.props.scrollableTarget,null)},n.onStart=function(e){n.lastScrollTop||(n.dragging=!0,e instanceof MouseEvent?n.startY=e.pageY:e instanceof TouchEvent&&(n.startY=e.touches[0].pageY),n.currentY=n.startY,n._infScroll&&(n._infScroll.style.willChange="transform",n._infScroll.style.transition="transform 0.2s cubic-bezier(0,0,0.31,1)"))},n.onMove=function(e){n.dragging&&(e instanceof MouseEvent?n.currentY=e.pageY:e instanceof TouchEvent&&(n.currentY=e.touches[0].pageY),n.currentY<n.startY||(n.currentY-n.startY>=Number(n.props.pullDownToRefreshThreshold)&&n.setState({pullToRefreshThresholdBreached:!0}),n.currentY-n.startY>1.5*n.maxPullDownDistance||n._infScroll&&(n._infScroll.style.overflow="visible",n._infScroll.style.transform="translate3d(0px, "+(n.currentY-n.startY)+"px, 0px)")))},n.onEnd=function(){n.startY=0,n.currentY=0,n.dragging=!1,n.state.pullToRefreshThresholdBreached&&(n.props.refreshFunction&&n.props.refreshFunction(),n.setState({pullToRefreshThresholdBreached:!1})),requestAnimationFrame((function(){n._infScroll&&(n._infScroll.style.overflow="auto",n._infScroll.style.transform="none",n._infScroll.style.willChange="unset")}))},n.onScrollListener=function(e){"function"===typeof n.props.onScroll&&setTimeout((function(){return n.props.onScroll&&n.props.onScroll(e)}),0);var t=n.props.height||n._scrollableNode?e.target:document.documentElement.scrollTop?document.documentElement:document.body;n.actionTriggered||((n.props.inverse?n.isElementAtTop(t,n.props.scrollThreshold):n.isElementAtBottom(t,n.props.scrollThreshold))&&n.props.hasMore&&(n.actionTriggered=!0,n.setState({showLoader:!0}),n.props.next&&n.props.next()),n.lastScrollTop=t.scrollTop)},n.state={showLoader:!1,pullToRefreshThresholdBreached:!1,prevDataLength:t.dataLength},n.throttledOnScrollListener=function(e,t,n,r){var o,i=!1,a=0;function l(){o&&clearTimeout(o)}function s(){var s=this,c=Date.now()-a,u=arguments;function d(){a=Date.now(),n.apply(s,u)}i||(r&&!o&&d(),l(),void 0===r&&c>e?d():!0!==t&&(o=setTimeout(r?function(){o=void 0}:d,void 0===r?e-c:e)))}return"boolean"!==typeof t&&(r=n,n=t,t=void 0),s.cancel=function(){l(),i=!0},s}(150,n.onScrollListener).bind(n),n.onStart=n.onStart.bind(n),n.onMove=n.onMove.bind(n),n.onEnd=n.onEnd.bind(n),n}return function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}(t,e),t.prototype.componentDidMount=function(){if("undefined"===typeof this.props.dataLength)throw new Error('mandatory prop "dataLength" is missing. The prop is needed when loading more content. Check README.md for usage');if(this._scrollableNode=this.getScrollableTarget(),this.el=this.props.height?this._infScroll:this._scrollableNode||window,this.el&&this.el.addEventListener("scroll",this.throttledOnScrollListener),"number"===typeof this.props.initialScrollY&&this.el&&this.el instanceof HTMLElement&&this.el.scrollHeight>this.props.initialScrollY&&this.el.scrollTo(0,this.props.initialScrollY),this.props.pullDownToRefresh&&this.el&&(this.el.addEventListener("touchstart",this.onStart),this.el.addEventListener("touchmove",this.onMove),this.el.addEventListener("touchend",this.onEnd),this.el.addEventListener("mousedown",this.onStart),this.el.addEventListener("mousemove",this.onMove),this.el.addEventListener("mouseup",this.onEnd),this.maxPullDownDistance=this._pullDown&&this._pullDown.firstChild&&this._pullDown.firstChild.getBoundingClientRect().height||0,this.forceUpdate(),"function"!==typeof this.props.refreshFunction))throw new Error('Mandatory prop "refreshFunction" missing.\n Pull Down To Refresh functionality will not work\n as expected. Check README.md for usage\'')},t.prototype.componentWillUnmount=function(){this.el&&(this.el.removeEventListener("scroll",this.throttledOnScrollListener),this.props.pullDownToRefresh&&(this.el.removeEventListener("touchstart",this.onStart),this.el.removeEventListener("touchmove",this.onMove),this.el.removeEventListener("touchend",this.onEnd),this.el.removeEventListener("mousedown",this.onStart),this.el.removeEventListener("mousemove",this.onMove),this.el.removeEventListener("mouseup",this.onEnd)))},t.prototype.componentDidUpdate=function(e){this.props.dataLength!==e.dataLength&&(this.actionTriggered=!1,this.setState({showLoader:!1}))},t.getDerivedStateFromProps=function(e,t){return e.dataLength!==t.prevDataLength?i(i({},t),{prevDataLength:e.dataLength}):null},t.prototype.isElementAtTop=function(e,t){void 0===t&&(t=.8);var n=e===document.body||e===document.documentElement?window.screen.availHeight:e.clientHeight,r=c(t);return r.unit===a?e.scrollTop<=r.value+n-e.scrollHeight+1:e.scrollTop<=r.value/100+n-e.scrollHeight+1},t.prototype.isElementAtBottom=function(e,t){void 0===t&&(t=.8);var n=e===document.body||e===document.documentElement?window.screen.availHeight:e.clientHeight,r=c(t);return r.unit===a?e.scrollTop+n>=e.scrollHeight-r.value:e.scrollTop+n>=r.value/100*e.scrollHeight},t.prototype.render=function(){var e=this,t=i({height:this.props.height||"auto",overflow:"auto",WebkitOverflowScrolling:"touch"},this.props.style),n=this.props.hasChildren||!!(this.props.children&&this.props.children instanceof Array&&this.props.children.length),o=this.props.pullDownToRefresh&&this.props.height?{overflow:"auto"}:{};return r.createElement("div",{style:o,className:"infinite-scroll-component__outerdiv"},r.createElement("div",{className:"infinite-scroll-component "+(this.props.className||""),ref:function(t){return e._infScroll=t},style:t},this.props.pullDownToRefresh&&r.createElement("div",{style:{position:"relative"},ref:function(t){return e._pullDown=t}},r.createElement("div",{style:{position:"absolute",left:0,right:0,top:-1*this.maxPullDownDistance}},this.state.pullToRefreshThresholdBreached?this.props.releaseToRefreshContent:this.props.pullDownToRefreshContent)),this.props.children,!this.state.showLoader&&!n&&this.props.hasMore&&this.props.loader,this.state.showLoader&&this.props.hasMore&&this.props.loader,!this.props.hasMore&&this.props.endMessage))},t}(r.Component)},21867:(e,t,n)=>{n.d(t,{A:()=>d});var r=n(98173);function o(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function i(){return i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(this,arguments)}function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function l(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?a(Object(n),!0).forEach((function(t){s(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function s(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const c={breakpointCols:void 0,className:void 0,columnClassName:void 0,children:void 0,columnAttrs:void 0,column:void 0};class u extends r.Component{constructor(e){let t;super(e),this.reCalculateColumnCount=this.reCalculateColumnCount.bind(this),this.reCalculateColumnCountDebounce=this.reCalculateColumnCountDebounce.bind(this),t=this.props.breakpointCols&&this.props.breakpointCols.default?this.props.breakpointCols.default:parseInt(this.props.breakpointCols)||2,this.state={columnCount:t}}componentDidMount(){this.reCalculateColumnCount(),window&&window.addEventListener("resize",this.reCalculateColumnCountDebounce)}componentDidUpdate(){this.reCalculateColumnCount()}componentWillUnmount(){window&&window.removeEventListener("resize",this.reCalculateColumnCountDebounce)}reCalculateColumnCountDebounce(){window&&window.requestAnimationFrame?(window.cancelAnimationFrame&&window.cancelAnimationFrame(this._lastRecalculateAnimationFrame),this._lastRecalculateAnimationFrame=window.requestAnimationFrame((()=>{this.reCalculateColumnCount()}))):this.reCalculateColumnCount()}reCalculateColumnCount(){const e=window&&window.innerWidth||1/0;let t=this.props.breakpointCols;"object"!==typeof t&&(t={default:parseInt(t)||2});let n=1/0,r=t.default||2;for(let o in t){const i=parseInt(o);i>0&&e<=i&&i<n&&(n=i,r=t[o])}r=Math.max(1,parseInt(r)||1),this.state.columnCount!==r&&this.setState({columnCount:r})}itemsInColumns(){const e=this.state.columnCount,t=new Array(e),n=r.Children.toArray(this.props.children);for(let r=0;r<n.length;r++){const o=r%e;t[o]||(t[o]=[]),t[o].push(n[r])}return t}renderColumns(){const{column:e,columnAttrs:t={},columnClassName:n}=this.props,o=this.itemsInColumns(),a=100/o.length+"%";let s=n;s&&"string"!==typeof s&&(this.logDeprecated('The property "columnClassName" requires a string'),"undefined"===typeof s&&(s="my-masonry-grid_column"));const c=l(l(l({},e),t),{},{style:l(l({},t.style),{},{width:a}),className:s});return o.map(((e,t)=>r.createElement("div",i({},c,{key:t}),e)))}logDeprecated(e){}render(){const e=this.props,{children:t,breakpointCols:n,columnClassName:a,columnAttrs:l,column:s,className:c}=e,u=o(e,["children","breakpointCols","columnClassName","columnAttrs","column","className"]);let d=c;return"string"!==typeof c&&(this.logDeprecated('The property "className" requires a string'),"undefined"===typeof c&&(d="my-masonry-grid")),r.createElement("div",i({},u,{className:d}),this.renderColumns())}}u.defaultProps=c;const d=u},22811:(e,t,n)=>{var r=n(98173),o=Symbol.for("react.element"),i=Symbol.for("react.fragment"),a=Object.prototype.hasOwnProperty,l=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,s={key:!0,ref:!0,__self:!0,__source:!0};function c(e,t,n){var r,i={},c=null,u=null;for(r in void 0!==n&&(c=""+n),void 0!==t.key&&(c=""+t.key),void 0!==t.ref&&(u=t.ref),t)a.call(t,r)&&!s.hasOwnProperty(r)&&(i[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===i[r]&&(i[r]=t[r]);return{$$typeof:o,type:e,key:c,ref:u,props:i,_owner:l.current}}t.Fragment=i,t.jsx=c,t.jsxs=c},23689:(e,t,n)=>{e.exports=n(22811)}}]);
@@ -0,0 +1,30 @@
1
+ /*! *****************************************************************************
2
+ Copyright (c) Microsoft Corporation. All rights reserved.
3
+ Licensed under the Apache License, Version 2.0 (the "License"); you may not use
4
+ this file except in compliance with the License. You may obtain a copy of the
5
+ License at http://www.apache.org/licenses/LICENSE-2.0
6
+
7
+ THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
8
+ KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
9
+ WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
10
+ MERCHANTABLITY OR NON-INFRINGEMENT.
11
+
12
+ See the Apache Version 2.0 License for specific language governing permissions
13
+ and limitations under the License.
14
+ ***************************************************************************** */
15
+
16
+ /**
17
+ * @license React
18
+ * react-jsx-runtime.production.min.js
19
+ *
20
+ * Copyright (c) Facebook, Inc. and its affiliates.
21
+ *
22
+ * This source code is licensed under the MIT license found in the
23
+ * LICENSE file in the root directory of this source tree.
24
+ */
25
+
26
+ /**![download](data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAiIGhlaWdodD0iNTAiIGZpbGw9IiNjYWNhY2EiIHZpZXdCb3g9IjY0IDY0IDg5NiA4OTYiIGZvY3VzYWJsZT0iZmFsc2UiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTUwNS43IDY2MWE4IDggMCAwMDEyLjYgMGwxMTItMTQxLjdjNC4xLTUuMi40LTEyLjktNi4zLTEyLjloLTc0LjFWMTY4YzAtNC40LTMuNi04LTgtOGgtNjBjLTQuNCAwLTggMy42LTggOHYzMzguM0g0MDBjLTYuNyAwLTEwLjQgNy43LTYuMyAxMi45bDExMiAxNDEuOHpNODc4IDYyNmgtNjBjLTQuNCAwLTggMy42LTggOHYxNTRIMjE0VjYzNGMwLTQuNC0zLjYtOC04LThoLTYwYy00LjQgMC04IDMuNi04IDh2MTk4YzAgMTcuNyAxNC4zIDMyIDMyIDMyaDY4NGMxNy43IDAgMzItMTQuMyAzMi0zMlY2MzRjMC00LjQtMy42LTgtOC04eiIgLz48L3N2Zz4=) */
27
+
28
+ /**![paper-clip](data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAiIGhlaWdodD0iNTAiIGZpbGw9IiNjYWNhY2EiIHZpZXdCb3g9IjY0IDY0IDg5NiA4OTYiIGZvY3VzYWJsZT0iZmFsc2UiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTc3OS4zIDE5Ni42Yy05NC4yLTk0LjItMjQ3LjYtOTQuMi0zNDEuNyAwbC0yNjEgMjYwLjhjLTEuNyAxLjctMi42IDQtMi42IDYuNHMuOSA0LjcgMi42IDYuNGwzNi45IDM2LjlhOSA5IDAgMDAxMi43IDBsMjYxLTI2MC44YzMyLjQtMzIuNCA3NS41LTUwLjIgMTIxLjMtNTAuMnM4OC45IDE3LjggMTIxLjIgNTAuMmMzMi40IDMyLjQgNTAuMiA3NS41IDUwLjIgMTIxLjIgMCA0NS44LTE3LjggODguOC01MC4yIDEyMS4ybC0yNjYgMjY1LjktNDMuMSA0My4xYy00MC4zIDQwLjMtMTA1LjggNDAuMy0xNDYuMSAwLTE5LjUtMTkuNS0zMC4yLTQ1LjQtMzAuMi03M3MxMC43LTUzLjUgMzAuMi03M2wyNjMuOS0yNjMuOGM2LjctNi42IDE1LjUtMTAuMyAyNC45LTEwLjNoLjFjOS40IDAgMTguMSAzLjcgMjQuNyAxMC4zIDYuNyA2LjcgMTAuMyAxNS41IDEwLjMgMjQuOSAwIDkuMy0zLjcgMTguMS0xMC4zIDI0LjdMMzcyLjQgNjUzYy0xLjcgMS43LTIuNiA0LTIuNiA2LjRzLjkgNC43IDIuNiA2LjRsMzYuOSAzNi45YTkgOSAwIDAwMTIuNyAwbDIxNS42LTIxNS42YzE5LjktMTkuOSAzMC44LTQ2LjMgMzAuOC03NC40cy0xMS01NC42LTMwLjgtNzQuNGMtNDEuMS00MS4xLTEwNy45LTQxLTE0OSAwTDQ2MyAzNjQgMjI0LjggNjAyLjFBMTcyLjIyIDE3Mi4yMiAwIDAwMTc0IDcyNC44YzAgNDYuMyAxOC4xIDg5LjggNTAuOCAxMjIuNSAzMy45IDMzLjggNzguMyA1MC43IDEyMi43IDUwLjcgNDQuNCAwIDg4LjgtMTYuOSAxMjIuNi01MC43bDMwOS4yLTMwOUM4MjQuOCA0OTIuNyA4NTAgNDMyIDg1MCAzNjcuNWMuMS02NC42LTI1LjEtMTI1LjMtNzAuNy0xNzAuOXoiIC8+PC9zdmc+) */
29
+
30
+ /**![picture](data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAiIGhlaWdodD0iNTAiIGZpbGw9IiNjYWNhY2EiIHZpZXdCb3g9IjY0IDY0IDg5NiA4OTYiIGZvY3VzYWJsZT0iZmFsc2UiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTkyOCAxNjBIOTZjLTE3LjcgMC0zMiAxNC4zLTMyIDMydjY0MGMwIDE3LjcgMTQuMyAzMiAzMiAzMmg4MzJjMTcuNyAwIDMyLTE0LjMgMzItMzJWMTkyYzAtMTcuNy0xNC4zLTMyLTMyLTMyem0tNDAgNjMySDEzNnYtMzkuOWwxMzguNS0xNjQuMyAxNTAuMSAxNzhMNjU4LjEgNDg5IDg4OCA3NjEuNlY3OTJ6bTAtMTI5LjhMNjY0LjIgMzk2LjhjLTMuMi0zLjgtOS0zLjgtMTIuMiAwTDQyNC42IDY2Ni40bC0xNDQtMTcwLjdjLTMuMi0zLjgtOS0zLjgtMTIuMiAwTDEzNiA2NTIuN1YyMzJoNzUydjQzMC4yeiIgZmlsbD0iIzE2NzdmZiIgLz48cGF0aCBkPSJNNDI0LjYgNzY1LjhsLTE1MC4xLTE3OEwxMzYgNzUyLjFWNzkyaDc1MnYtMzAuNEw2NTguMSA0ODl6IiBmaWxsPSIjZTZmNGZmIiAvPjxwYXRoIGQ9Ik0xMzYgNjUyLjdsMTMyLjQtMTU3YzMuMi0zLjggOS0zLjggMTIuMiAwbDE0NCAxNzAuN0w2NTIgMzk2LjhjMy4yLTMuOCA5LTMuOCAxMi4yIDBMODg4IDY2Mi4yVjIzMkgxMzZ2NDIwLjd6TTMwNCAyODBhODggODggMCAxMTAgMTc2IDg4IDg4IDAgMDEwLTE3NnoiIGZpbGw9IiNlNmY0ZmYiIC8+PHBhdGggZD0iTTI3NiAzNjhhMjggMjggMCAxMDU2IDAgMjggMjggMCAxMC01NiAweiIgZmlsbD0iI2U2ZjRmZiIgLz48cGF0aCBkPSJNMzA0IDQ1NmE4OCA4OCAwIDEwMC0xNzYgODggODggMCAwMDAgMTc2em0wLTExNmMxNS41IDAgMjggMTIuNSAyOCAyOHMtMTIuNSAyOC0yOCAyOC0yOC0xMi41LTI4LTI4IDEyLjUtMjggMjgtMjh6IiBmaWxsPSIjMTY3N2ZmIiAvPjwvc3ZnPg==) */