(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[3059],{13059:function(se,j,f){"use strict";f.r(j),f.d(j,{default:function(){return ne}});var D=f(22122),U=f(6610),O=f(5991),$=f(10379),L=f(44144),Z=f(67294),w=f(96156),W=f(81253),T=f(55507),B=f(90484),H=f(92137),A=f(85061),X=f(94184),K=f.n(X),q=f(64217);function x(o,n){var d="cannot ".concat(o.method," ").concat(o.action," ").concat(n.status,"'"),e=new Error(d);return e.status=n.status,e.method=o.method,e.url=o.action,e}function N(o){var n=o.responseText||o.response;if(!n)return n;try{return JSON.parse(n)}catch(d){return n}}function G(o){var n=new XMLHttpRequest;o.onProgress&&n.upload&&(n.upload.onprogress=function(r){r.total>0&&(r.percent=r.loaded/r.total*100),o.onProgress(r)});var d=new FormData;o.data&&Object.keys(o.data).forEach(function(t){var r=o.data[t];if(Array.isArray(r)){r.forEach(function(i){d.append("".concat(t,"[]"),i)});return}d.append(t,r)}),o.file instanceof Blob?d.append(o.filename,o.file,o.file.name):d.append(o.filename,o.file),n.onerror=function(r){o.onError(r)},n.onload=function(){return n.status<200||n.status>=300?o.onError(x(o,n),N(n)):o.onSuccess(N(n),n)},n.open(o.method,o.action,!0),o.withCredentials&&"withCredentials"in n&&(n.withCredentials=!0);var e=o.headers||{};return e["X-Requested-With"]!==null&&n.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(e).forEach(function(t){e[t]!==null&&n.setRequestHeader(t,e[t])}),n.send(d),{abort:function(){n.abort()}}}var J=+new Date,z=0;function M(){return"rc-upload-".concat(J,"-").concat(++z)}var Q=f(80334),R=function(o,n){if(o&&n){var d=Array.isArray(n)?n:n.split(","),e=o.name||"",t=o.type||"",r=t.replace(/\/.*$/,"");return d.some(function(i){var a=i.trim();if(/^\*(\/\*)?$/.test(i))return!0;if(a.charAt(0)==="."){var l=e.toLowerCase(),s=a.toLowerCase(),c=[s];return(s===".jpg"||s===".jpeg")&&(c=[".jpg",".jpeg"]),c.some(function(v){return l.endsWith(v)})}return/\/\*$/.test(a)?r===a.replace(/\/.*$/,""):t===a?!0:/^\w+$/.test(a)?((0,Q.ZP)(!1,"Upload takes an invalidate 'accept' type '".concat(a,"'.Skip for check.")),!0):!1})}return!0};function V(o,n){var d=o.createReader(),e=[];function t(){d.readEntries(function(r){var i=Array.prototype.slice.apply(r);e=e.concat(i);var a=!i.length;a?n(e):t()})}t()}var Y=function(n,d,e){var t=function r(i,a){i.path=a||"",i.isFile?i.file(function(l){e(l)&&(i.fullPath&&!l.webkitRelativePath&&(Object.defineProperties(l,{webkitRelativePath:{writable:!0}}),l.webkitRelativePath=i.fullPath.replace(/^\//,""),Object.defineProperties(l,{webkitRelativePath:{writable:!1}})),d([l]))}):i.isDirectory&&V(i,function(l){l.forEach(function(s){r(s,"".concat(a).concat(i.name,"/"))})})};n.forEach(function(r){t(r.webkitGetAsEntry())})},_=Y,ee=["component","prefixCls","className","disabled","id","style","multiple","accept","capture","children","directory","openFileDialogOnClick","onMouseEnter","onMouseLeave"],re=function(o){(0,$.Z)(d,o);var n=(0,L.Z)(d);function d(){var e;(0,U.Z)(this,d);for(var t=arguments.length,r=new Array(t),i=0;i