teko-file-history
Version:
File history component for Teko system
1 lines • 152 kB
JavaScript
import{notification as e,Card as t,Steps as r,Modal as n,Row as o,Col as i,Tag as a,Table as u,Button as l,Typography as s,Divider as c,Tooltip as f,Upload as d,Spin as p}from"antd";import*as h from"react";import m,{createContext as y,useState as g,useEffect as v,useContext as b}from"react";import w from"dayjs";import E from"antd/es/typography/Paragraph";import S from"antd/es/typography/Text";var T=function(){return T=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},T.apply(this,arguments)};function O(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r}function k(e,t,r,n){return new(r||(r=Promise))((function(o,i){function a(e){try{l(n.next(e))}catch(e){i(e)}}function u(e){try{l(n.throw(e))}catch(e){i(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,u)}l((n=n.apply(e,t||[])).next())}))}function A(e,t){var r,n,o,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},a=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return a.next=u(0),a.throw=u(1),a.return=u(2),"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function u(u){return function(l){return function(u){if(r)throw new TypeError("Generator is already executing.");for(;a&&(a=0,u[0]&&(i=0)),i;)try{if(r=1,n&&(o=2&u[0]?n.return:u[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,u[1])).done)return o;switch(n=0,o&&(u=[2&u[0],o.value]),u[0]){case 0:case 1:o=u;break;case 4:return i.label++,{value:u[1],done:!1};case 5:i.label++,n=u[1],u=[0];continue;case 7:u=i.ops.pop(),i.trys.pop();continue;default:if(!(o=i.trys,(o=o.length>0&&o[o.length-1])||6!==u[0]&&2!==u[0])){i=0;continue}if(3===u[0]&&(!o||u[1]>o[0]&&u[1]<o[3])){i.label=u[1];break}if(6===u[0]&&i.label<o[1]){i.label=o[1],o=u;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(u);break}o[2]&&i.ops.pop(),i.trys.pop();continue}u=t.call(e,i)}catch(e){u=[6,e],n=0}finally{r=o=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}([u,l])}}}function x(e,t,r){if(r||2===arguments.length)for(var n,o=0,i=t.length;o<i;o++)!n&&o in t||(n||(n=Array.prototype.slice.call(t,0,o)),n[o]=t[o]);return e.concat(n||Array.prototype.slice.call(t))}"function"==typeof SuppressedError&&SuppressedError;var C,R={DEV:"https://files.dev.tekoapis.net",STAG:"https://files.stage.tekoapis.net",PROD:"https://files.tekoapis.com"},F={DEV:"https://fps-bff.dev.tekoapis.net",STAG:"https://fps-bff.stag.tekoapis.net",PROD:"https://fps-bff.tekoapis.com"},P={DEV:"https://loyalty.develop.tekoapis.net",STAG:"https://loyalty.stage.tekoapis.net",PROD:"https://loyalty.tekoapis.com"},j={extension:".xlsx",mimeType:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"},D={extension:".pdf",mimeType:"application/pdf"},I=[{extension:".xls",mimeType:"application/vnd.ms-excel"},j,{extension:".csv",mimeType:"text/csv"},D],N={page:1,pageSize:10},U="".concat("DD/MM/YYYY"," ").concat("HH:mm:ss"),_={INIT:{code:"INIT",name:"Pending",color:"#FF7E17",colorCode:"orange"},PROCESSING:{code:"PROCESSING",name:"Processing",color:"#1954ADFF",colorCode:"blue"},FINISHED:{code:"FINISHED",name:"Finished",color:"#259B24",colorCode:"green"},FAILED:{code:"FAILED",name:"Failed",color:"#C1051C",colorCode:"red"}},B={clientId:0,env:"",language:"vi",classNames:{displayFlex:"d-flex",flexColumn:"flex-column",gapBase:"gap-base",gapHalf:"gap-half",marginBottomZero:"mb-0",marginTopHalf:"mt-half",marginHorizontalBase:"mx-base",paddingHorizontalBase:"px-base",paddingVerticalHalf:"py-half",textErrorColor:"text-error",textPrimaryColor:"text-primary"},tableProps:{isShowDebug:!0,isShowReload:!0,isShowCreatedBy:!0},uploaderProps:{importFileTemplateUrl:"",isShowUploader:!0,uploaderPosition:"right",maxFileSize:5,inputFileTypes:["xlsx"]},shouldReload:!1,setShouldReload:function(){},translate:function(e){return e}},M=y(B),L="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},V={exports:{}},z=function(e,t){return function(){for(var r=new Array(arguments.length),n=0;n<r.length;n++)r[n]=arguments[n];return e.apply(t,r)}},H=z,Y=Object.prototype.toString,q=(C=Object.create(null),function(e){var t=Y.call(e);return C[t]||(C[t]=t.slice(8,-1).toLowerCase())});function W(e){return e=e.toLowerCase(),function(t){return q(t)===e}}function G(e){return Array.isArray(e)}function J(e){return void 0===e}var $=W("ArrayBuffer");function K(e){return null!==e&&"object"==typeof e}function Z(e){if("object"!==q(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}var X=W("Date"),Q=W("File"),ee=W("Blob"),te=W("FileList");function re(e){return"[object Function]"===Y.call(e)}var ne=W("URLSearchParams");function oe(e,t){if(null!=e)if("object"!=typeof e&&(e=[e]),G(e))for(var r=0,n=e.length;r<n;r++)t.call(null,e[r],r,e);else for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.call(null,e[o],o,e)}var ie,ae=(ie="undefined"!=typeof Uint8Array&&Object.getPrototypeOf(Uint8Array),function(e){return ie&&e instanceof ie}),ue={isArray:G,isArrayBuffer:$,isBuffer:function(e){return null!==e&&!J(e)&&null!==e.constructor&&!J(e.constructor)&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)},isFormData:function(e){var t="[object FormData]";return e&&("function"==typeof FormData&&e instanceof FormData||Y.call(e)===t||re(e.toString)&&e.toString()===t)},isArrayBufferView:function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&$(e.buffer)},isString:function(e){return"string"==typeof e},isNumber:function(e){return"number"==typeof e},isObject:K,isPlainObject:Z,isUndefined:J,isDate:X,isFile:Q,isBlob:ee,isFunction:re,isStream:function(e){return K(e)&&re(e.pipe)},isURLSearchParams:ne,isStandardBrowserEnv:function(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&("undefined"!=typeof window&&"undefined"!=typeof document)},forEach:oe,merge:function e(){var t={};function r(r,n){Z(t[n])&&Z(r)?t[n]=e(t[n],r):Z(r)?t[n]=e({},r):G(r)?t[n]=r.slice():t[n]=r}for(var n=0,o=arguments.length;n<o;n++)oe(arguments[n],r);return t},extend:function(e,t,r){return oe(t,(function(t,n){e[n]=r&&"function"==typeof t?H(t,r):t})),e},trim:function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")},stripBOM:function(e){return 65279===e.charCodeAt(0)&&(e=e.slice(1)),e},inherits:function(e,t,r,n){e.prototype=Object.create(t.prototype,n),e.prototype.constructor=e,r&&Object.assign(e.prototype,r)},toFlatObject:function(e,t,r){var n,o,i,a={};t=t||{};do{for(o=(n=Object.getOwnPropertyNames(e)).length;o-- >0;)a[i=n[o]]||(t[i]=e[i],a[i]=!0);e=Object.getPrototypeOf(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},kindOf:q,kindOfTest:W,endsWith:function(e,t,r){e=String(e),(void 0===r||r>e.length)&&(r=e.length),r-=t.length;var n=e.indexOf(t,r);return-1!==n&&n===r},toArray:function(e){if(!e)return null;var t=e.length;if(J(t))return null;for(var r=new Array(t);t-- >0;)r[t]=e[t];return r},isTypedArray:ae,isFileList:te},le=ue;function se(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}var ce=function(e,t,r){if(!t)return e;var n;if(r)n=r(t);else if(le.isURLSearchParams(t))n=t.toString();else{var o=[];le.forEach(t,(function(e,t){null!=e&&(le.isArray(e)?t+="[]":e=[e],le.forEach(e,(function(e){le.isDate(e)?e=e.toISOString():le.isObject(e)&&(e=JSON.stringify(e)),o.push(se(t)+"="+se(e))})))})),n=o.join("&")}if(n){var i=e.indexOf("#");-1!==i&&(e=e.slice(0,i)),e+=(-1===e.indexOf("?")?"?":"&")+n}return e},fe=ue;function de(){this.handlers=[]}de.prototype.use=function(e,t,r){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!r&&r.synchronous,runWhen:r?r.runWhen:null}),this.handlers.length-1},de.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},de.prototype.forEach=function(e){fe.forEach(this.handlers,(function(t){null!==t&&e(t)}))};var pe=de,he="undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{};function me(){throw new Error("setTimeout has not been defined")}function ye(){throw new Error("clearTimeout has not been defined")}var ge=me,ve=ye;function be(e){if(ge===setTimeout)return setTimeout(e,0);if((ge===me||!ge)&&setTimeout)return ge=setTimeout,setTimeout(e,0);try{return ge(e,0)}catch(t){try{return ge.call(null,e,0)}catch(t){return ge.call(this,e,0)}}}"function"==typeof he.setTimeout&&(ge=setTimeout),"function"==typeof he.clearTimeout&&(ve=clearTimeout);var we,Ee=[],Se=!1,Te=-1;function Oe(){Se&&we&&(Se=!1,we.length?Ee=we.concat(Ee):Te=-1,Ee.length&&ke())}function ke(){if(!Se){var e=be(Oe);Se=!0;for(var t=Ee.length;t;){for(we=Ee,Ee=[];++Te<t;)we&&we[Te].run();Te=-1,t=Ee.length}we=null,Se=!1,function(e){if(ve===clearTimeout)return clearTimeout(e);if((ve===ye||!ve)&&clearTimeout)return ve=clearTimeout,clearTimeout(e);try{return ve(e)}catch(t){try{return ve.call(null,e)}catch(t){return ve.call(this,e)}}}(e)}}function Ae(e,t){this.fun=e,this.array=t}Ae.prototype.run=function(){this.fun.apply(null,this.array)};function xe(){}var Ce=xe,Re=xe,Fe=xe,Pe=xe,je=xe,De=xe,Ie=xe;var Ne=he.performance||{},Ue=Ne.now||Ne.mozNow||Ne.msNow||Ne.oNow||Ne.webkitNow||function(){return(new Date).getTime()};var _e=new Date;var Be={nextTick:function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];Ee.push(new Ae(e,t)),1!==Ee.length||Se||be(ke)},title:"browser",browser:!0,env:{},argv:[],version:"",versions:{},on:Ce,addListener:Re,once:Fe,off:Pe,removeListener:je,removeAllListeners:De,emit:Ie,binding:function(e){throw new Error("process.binding is not supported")},cwd:function(){return"/"},chdir:function(e){throw new Error("process.chdir is not supported")},umask:function(){return 0},hrtime:function(e){var t=.001*Ue.call(Ne),r=Math.floor(t),n=Math.floor(t%1*1e9);return e&&(r-=e[0],(n-=e[1])<0&&(r--,n+=1e9)),[r,n]},platform:"browser",release:{},config:{},uptime:function(){return(new Date-_e)/1e3}},Me=ue,Le=ue;function Ve(e,t,r,n,o){Error.call(this),this.message=e,this.name="AxiosError",t&&(this.code=t),r&&(this.config=r),n&&(this.request=n),o&&(this.response=o)}Le.inherits(Ve,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code,status:this.response&&this.response.status?this.response.status:null}}});var ze=Ve.prototype,He={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED"].forEach((function(e){He[e]={value:e}})),Object.defineProperties(Ve,He),Object.defineProperty(ze,"isAxiosError",{value:!0}),Ve.from=function(e,t,r,n,o,i){var a=Object.create(ze);return Le.toFlatObject(e,a,(function(e){return e!==Error.prototype})),Ve.call(a,e.message,t,r,n,o),a.name=e.name,i&&Object.assign(a,i),a};var Ye=Ve,qe={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},We=[],Ge=[],Je="undefined"!=typeof Uint8Array?Uint8Array:Array,$e=!1;function Ke(){$e=!0;for(var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t=0;t<64;++t)We[t]=e[t],Ge[e.charCodeAt(t)]=t;Ge["-".charCodeAt(0)]=62,Ge["_".charCodeAt(0)]=63}function Ze(e,t,r){for(var n,o,i=[],a=t;a<r;a+=3)n=(e[a]<<16)+(e[a+1]<<8)+e[a+2],i.push(We[(o=n)>>18&63]+We[o>>12&63]+We[o>>6&63]+We[63&o]);return i.join("")}function Xe(e){var t;$e||Ke();for(var r=e.length,n=r%3,o="",i=[],a=16383,u=0,l=r-n;u<l;u+=a)i.push(Ze(e,u,u+a>l?l:u+a));return 1===n?(t=e[r-1],o+=We[t>>2],o+=We[t<<4&63],o+="=="):2===n&&(t=(e[r-2]<<8)+e[r-1],o+=We[t>>10],o+=We[t>>4&63],o+=We[t<<2&63],o+="="),i.push(o),i.join("")}function Qe(e,t,r,n,o){var i,a,u=8*o-n-1,l=(1<<u)-1,s=l>>1,c=-7,f=r?o-1:0,d=r?-1:1,p=e[t+f];for(f+=d,i=p&(1<<-c)-1,p>>=-c,c+=u;c>0;i=256*i+e[t+f],f+=d,c-=8);for(a=i&(1<<-c)-1,i>>=-c,c+=n;c>0;a=256*a+e[t+f],f+=d,c-=8);if(0===i)i=1-s;else{if(i===l)return a?NaN:1/0*(p?-1:1);a+=Math.pow(2,n),i-=s}return(p?-1:1)*a*Math.pow(2,i-n)}function et(e,t,r,n,o,i){var a,u,l,s=8*i-o-1,c=(1<<s)-1,f=c>>1,d=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,p=n?0:i-1,h=n?1:-1,m=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(u=isNaN(t)?1:0,a=c):(a=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-a))<1&&(a--,l*=2),(t+=a+f>=1?d/l:d*Math.pow(2,1-f))*l>=2&&(a++,l/=2),a+f>=c?(u=0,a=c):a+f>=1?(u=(t*l-1)*Math.pow(2,o),a+=f):(u=t*Math.pow(2,f-1)*Math.pow(2,o),a=0));o>=8;e[r+p]=255&u,p+=h,u/=256,o-=8);for(a=a<<o|u,s+=o;s>0;e[r+p]=255&a,p+=h,a/=256,s-=8);e[r+p-h]|=128*m}var tt={}.toString,rt=Array.isArray||function(e){return"[object Array]"==tt.call(e)};function nt(){return it.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function ot(e,t){if(nt()<t)throw new RangeError("Invalid typed array length");return it.TYPED_ARRAY_SUPPORT?(e=new Uint8Array(t)).__proto__=it.prototype:(null===e&&(e=new it(t)),e.length=t),e}function it(e,t,r){if(!(it.TYPED_ARRAY_SUPPORT||this instanceof it))return new it(e,t,r);if("number"==typeof e){if("string"==typeof t)throw new Error("If encoding is specified then the first argument must be a string");return lt(this,e)}return at(this,e,t,r)}function at(e,t,r,n){if("number"==typeof t)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer?function(e,t,r,n){if(t.byteLength,r<0||t.byteLength<r)throw new RangeError("'offset' is out of bounds");if(t.byteLength<r+(n||0))throw new RangeError("'length' is out of bounds");t=void 0===r&&void 0===n?new Uint8Array(t):void 0===n?new Uint8Array(t,r):new Uint8Array(t,r,n);it.TYPED_ARRAY_SUPPORT?(e=t).__proto__=it.prototype:e=st(e,t);return e}(e,t,r,n):"string"==typeof t?function(e,t,r){"string"==typeof r&&""!==r||(r="utf8");if(!it.isEncoding(r))throw new TypeError('"encoding" must be a valid string encoding');var n=0|dt(t,r);e=ot(e,n);var o=e.write(t,r);o!==n&&(e=e.slice(0,o));return e}(e,t,r):function(e,t){if(ft(t)){var r=0|ct(t.length);return 0===(e=ot(e,r)).length||t.copy(e,0,0,r),e}if(t){if("undefined"!=typeof ArrayBuffer&&t.buffer instanceof ArrayBuffer||"length"in t)return"number"!=typeof t.length||(n=t.length)!=n?ot(e,0):st(e,t);if("Buffer"===t.type&&rt(t.data))return st(e,t.data)}var n;throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(e,t)}function ut(e){if("number"!=typeof e)throw new TypeError('"size" argument must be a number');if(e<0)throw new RangeError('"size" argument must not be negative')}function lt(e,t){if(ut(t),e=ot(e,t<0?0:0|ct(t)),!it.TYPED_ARRAY_SUPPORT)for(var r=0;r<t;++r)e[r]=0;return e}function st(e,t){var r=t.length<0?0:0|ct(t.length);e=ot(e,r);for(var n=0;n<r;n+=1)e[n]=255&t[n];return e}function ct(e){if(e>=nt())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+nt().toString(16)+" bytes");return 0|e}function ft(e){return!(null==e||!e._isBuffer)}function dt(e,t){if(ft(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var r=e.length;if(0===r)return 0;for(var n=!1;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":case void 0:return Mt(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return Lt(e).length;default:if(n)return Mt(e).length;t=(""+t).toLowerCase(),n=!0}}function pt(e,t,r){var n=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return"";if((r>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return Ct(this,t,r);case"utf8":case"utf-8":return Ot(this,t,r);case"ascii":return At(this,t,r);case"latin1":case"binary":return xt(this,t,r);case"base64":return Tt(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Rt(this,t,r);default:if(n)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),n=!0}}function ht(e,t,r){var n=e[t];e[t]=e[r],e[r]=n}function mt(e,t,r,n,o){if(0===e.length)return-1;if("string"==typeof r?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,isNaN(r)&&(r=o?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(o)return-1;r=e.length-1}else if(r<0){if(!o)return-1;r=0}if("string"==typeof t&&(t=it.from(t,n)),ft(t))return 0===t.length?-1:yt(e,t,r,n,o);if("number"==typeof t)return t&=255,it.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?o?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):yt(e,[t],r,n,o);throw new TypeError("val must be string, number or Buffer")}function yt(e,t,r,n,o){var i,a=1,u=e.length,l=t.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(e.length<2||t.length<2)return-1;a=2,u/=2,l/=2,r/=2}function s(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(o){var c=-1;for(i=r;i<u;i++)if(s(e,i)===s(t,-1===c?0:i-c)){if(-1===c&&(c=i),i-c+1===l)return c*a}else-1!==c&&(i-=i-c),c=-1}else for(r+l>u&&(r=u-l),i=r;i>=0;i--){for(var f=!0,d=0;d<l;d++)if(s(e,i+d)!==s(t,d)){f=!1;break}if(f)return i}return-1}function gt(e,t,r,n){r=Number(r)||0;var o=e.length-r;n?(n=Number(n))>o&&(n=o):n=o;var i=t.length;if(i%2!=0)throw new TypeError("Invalid hex string");n>i/2&&(n=i/2);for(var a=0;a<n;++a){var u=parseInt(t.substr(2*a,2),16);if(isNaN(u))return a;e[r+a]=u}return a}function vt(e,t,r,n){return Vt(Mt(t,e.length-r),e,r,n)}function bt(e,t,r,n){return Vt(function(e){for(var t=[],r=0;r<e.length;++r)t.push(255&e.charCodeAt(r));return t}(t),e,r,n)}function wt(e,t,r,n){return bt(e,t,r,n)}function Et(e,t,r,n){return Vt(Lt(t),e,r,n)}function St(e,t,r,n){return Vt(function(e,t){for(var r,n,o,i=[],a=0;a<e.length&&!((t-=2)<0);++a)n=(r=e.charCodeAt(a))>>8,o=r%256,i.push(o),i.push(n);return i}(t,e.length-r),e,r,n)}function Tt(e,t,r){return 0===t&&r===e.length?Xe(e):Xe(e.slice(t,r))}function Ot(e,t,r){r=Math.min(e.length,r);for(var n=[],o=t;o<r;){var i,a,u,l,s=e[o],c=null,f=s>239?4:s>223?3:s>191?2:1;if(o+f<=r)switch(f){case 1:s<128&&(c=s);break;case 2:128==(192&(i=e[o+1]))&&(l=(31&s)<<6|63&i)>127&&(c=l);break;case 3:i=e[o+1],a=e[o+2],128==(192&i)&&128==(192&a)&&(l=(15&s)<<12|(63&i)<<6|63&a)>2047&&(l<55296||l>57343)&&(c=l);break;case 4:i=e[o+1],a=e[o+2],u=e[o+3],128==(192&i)&&128==(192&a)&&128==(192&u)&&(l=(15&s)<<18|(63&i)<<12|(63&a)<<6|63&u)>65535&&l<1114112&&(c=l)}null===c?(c=65533,f=1):c>65535&&(c-=65536,n.push(c>>>10&1023|55296),c=56320|1023&c),n.push(c),o+=f}return function(e){var t=e.length;if(t<=kt)return String.fromCharCode.apply(String,e);var r="",n=0;for(;n<t;)r+=String.fromCharCode.apply(String,e.slice(n,n+=kt));return r}(n)}it.TYPED_ARRAY_SUPPORT=void 0===he.TYPED_ARRAY_SUPPORT||he.TYPED_ARRAY_SUPPORT,nt(),it.poolSize=8192,it._augment=function(e){return e.__proto__=it.prototype,e},it.from=function(e,t,r){return at(null,e,t,r)},it.TYPED_ARRAY_SUPPORT&&(it.prototype.__proto__=Uint8Array.prototype,it.__proto__=Uint8Array),it.alloc=function(e,t,r){return function(e,t,r,n){return ut(t),t<=0?ot(e,t):void 0!==r?"string"==typeof n?ot(e,t).fill(r,n):ot(e,t).fill(r):ot(e,t)}(null,e,t,r)},it.allocUnsafe=function(e){return lt(null,e)},it.allocUnsafeSlow=function(e){return lt(null,e)},it.isBuffer=function(e){return null!=e&&(!!e._isBuffer||zt(e)||function(e){return"function"==typeof e.readFloatLE&&"function"==typeof e.slice&&zt(e.slice(0,0))}(e))},it.compare=function(e,t){if(!ft(e)||!ft(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var r=e.length,n=t.length,o=0,i=Math.min(r,n);o<i;++o)if(e[o]!==t[o]){r=e[o],n=t[o];break}return r<n?-1:n<r?1:0},it.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},it.concat=function(e,t){if(!rt(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return it.alloc(0);var r;if(void 0===t)for(t=0,r=0;r<e.length;++r)t+=e[r].length;var n=it.allocUnsafe(t),o=0;for(r=0;r<e.length;++r){var i=e[r];if(!ft(i))throw new TypeError('"list" argument must be an Array of Buffers');i.copy(n,o),o+=i.length}return n},it.byteLength=dt,it.prototype._isBuffer=!0,it.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)ht(this,t,t+1);return this},it.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)ht(this,t,t+3),ht(this,t+1,t+2);return this},it.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)ht(this,t,t+7),ht(this,t+1,t+6),ht(this,t+2,t+5),ht(this,t+3,t+4);return this},it.prototype.toString=function(){var e=0|this.length;return 0===e?"":0===arguments.length?Ot(this,0,e):pt.apply(this,arguments)},it.prototype.equals=function(e){if(!ft(e))throw new TypeError("Argument must be a Buffer");return this===e||0===it.compare(this,e)},it.prototype.inspect=function(){var e="";return this.length>0&&(e=this.toString("hex",0,50).match(/.{2}/g).join(" "),this.length>50&&(e+=" ... ")),"<Buffer "+e+">"},it.prototype.compare=function(e,t,r,n,o){if(!ft(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===r&&(r=e?e.length:0),void 0===n&&(n=0),void 0===o&&(o=this.length),t<0||r>e.length||n<0||o>this.length)throw new RangeError("out of range index");if(n>=o&&t>=r)return 0;if(n>=o)return-1;if(t>=r)return 1;if(this===e)return 0;for(var i=(o>>>=0)-(n>>>=0),a=(r>>>=0)-(t>>>=0),u=Math.min(i,a),l=this.slice(n,o),s=e.slice(t,r),c=0;c<u;++c)if(l[c]!==s[c]){i=l[c],a=s[c];break}return i<a?-1:a<i?1:0},it.prototype.includes=function(e,t,r){return-1!==this.indexOf(e,t,r)},it.prototype.indexOf=function(e,t,r){return mt(this,e,t,r,!0)},it.prototype.lastIndexOf=function(e,t,r){return mt(this,e,t,r,!1)},it.prototype.write=function(e,t,r,n){if(void 0===t)n="utf8",r=this.length,t=0;else if(void 0===r&&"string"==typeof t)n=t,r=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t|=0,isFinite(r)?(r|=0,void 0===n&&(n="utf8")):(n=r,r=void 0)}var o=this.length-t;if((void 0===r||r>o)&&(r=o),e.length>0&&(r<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var i=!1;;)switch(n){case"hex":return gt(this,e,t,r);case"utf8":case"utf-8":return vt(this,e,t,r);case"ascii":return bt(this,e,t,r);case"latin1":case"binary":return wt(this,e,t,r);case"base64":return Et(this,e,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return St(this,e,t,r);default:if(i)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),i=!0}},it.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var kt=4096;function At(e,t,r){var n="";r=Math.min(e.length,r);for(var o=t;o<r;++o)n+=String.fromCharCode(127&e[o]);return n}function xt(e,t,r){var n="";r=Math.min(e.length,r);for(var o=t;o<r;++o)n+=String.fromCharCode(e[o]);return n}function Ct(e,t,r){var n=e.length;(!t||t<0)&&(t=0),(!r||r<0||r>n)&&(r=n);for(var o="",i=t;i<r;++i)o+=Bt(e[i]);return o}function Rt(e,t,r){for(var n=e.slice(t,r),o="",i=0;i<n.length;i+=2)o+=String.fromCharCode(n[i]+256*n[i+1]);return o}function Ft(e,t,r){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+t>r)throw new RangeError("Trying to access beyond buffer length")}function Pt(e,t,r,n,o,i){if(!ft(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>o||t<i)throw new RangeError('"value" argument is out of bounds');if(r+n>e.length)throw new RangeError("Index out of range")}function jt(e,t,r,n){t<0&&(t=65535+t+1);for(var o=0,i=Math.min(e.length-r,2);o<i;++o)e[r+o]=(t&255<<8*(n?o:1-o))>>>8*(n?o:1-o)}function Dt(e,t,r,n){t<0&&(t=4294967295+t+1);for(var o=0,i=Math.min(e.length-r,4);o<i;++o)e[r+o]=t>>>8*(n?o:3-o)&255}function It(e,t,r,n,o,i){if(r+n>e.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function Nt(e,t,r,n,o){return o||It(e,0,r,4),et(e,t,r,n,23,4),r+4}function Ut(e,t,r,n,o){return o||It(e,0,r,8),et(e,t,r,n,52,8),r+8}it.prototype.slice=function(e,t){var r,n=this.length;if((e=~~e)<0?(e+=n)<0&&(e=0):e>n&&(e=n),(t=void 0===t?n:~~t)<0?(t+=n)<0&&(t=0):t>n&&(t=n),t<e&&(t=e),it.TYPED_ARRAY_SUPPORT)(r=this.subarray(e,t)).__proto__=it.prototype;else{var o=t-e;r=new it(o,void 0);for(var i=0;i<o;++i)r[i]=this[i+e]}return r},it.prototype.readUIntLE=function(e,t,r){e|=0,t|=0,r||Ft(e,t,this.length);for(var n=this[e],o=1,i=0;++i<t&&(o*=256);)n+=this[e+i]*o;return n},it.prototype.readUIntBE=function(e,t,r){e|=0,t|=0,r||Ft(e,t,this.length);for(var n=this[e+--t],o=1;t>0&&(o*=256);)n+=this[e+--t]*o;return n},it.prototype.readUInt8=function(e,t){return t||Ft(e,1,this.length),this[e]},it.prototype.readUInt16LE=function(e,t){return t||Ft(e,2,this.length),this[e]|this[e+1]<<8},it.prototype.readUInt16BE=function(e,t){return t||Ft(e,2,this.length),this[e]<<8|this[e+1]},it.prototype.readUInt32LE=function(e,t){return t||Ft(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},it.prototype.readUInt32BE=function(e,t){return t||Ft(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},it.prototype.readIntLE=function(e,t,r){e|=0,t|=0,r||Ft(e,t,this.length);for(var n=this[e],o=1,i=0;++i<t&&(o*=256);)n+=this[e+i]*o;return n>=(o*=128)&&(n-=Math.pow(2,8*t)),n},it.prototype.readIntBE=function(e,t,r){e|=0,t|=0,r||Ft(e,t,this.length);for(var n=t,o=1,i=this[e+--n];n>0&&(o*=256);)i+=this[e+--n]*o;return i>=(o*=128)&&(i-=Math.pow(2,8*t)),i},it.prototype.readInt8=function(e,t){return t||Ft(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},it.prototype.readInt16LE=function(e,t){t||Ft(e,2,this.length);var r=this[e]|this[e+1]<<8;return 32768&r?4294901760|r:r},it.prototype.readInt16BE=function(e,t){t||Ft(e,2,this.length);var r=this[e+1]|this[e]<<8;return 32768&r?4294901760|r:r},it.prototype.readInt32LE=function(e,t){return t||Ft(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},it.prototype.readInt32BE=function(e,t){return t||Ft(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},it.prototype.readFloatLE=function(e,t){return t||Ft(e,4,this.length),Qe(this,e,!0,23,4)},it.prototype.readFloatBE=function(e,t){return t||Ft(e,4,this.length),Qe(this,e,!1,23,4)},it.prototype.readDoubleLE=function(e,t){return t||Ft(e,8,this.length),Qe(this,e,!0,52,8)},it.prototype.readDoubleBE=function(e,t){return t||Ft(e,8,this.length),Qe(this,e,!1,52,8)},it.prototype.writeUIntLE=function(e,t,r,n){(e=+e,t|=0,r|=0,n)||Pt(this,e,t,r,Math.pow(2,8*r)-1,0);var o=1,i=0;for(this[t]=255&e;++i<r&&(o*=256);)this[t+i]=e/o&255;return t+r},it.prototype.writeUIntBE=function(e,t,r,n){(e=+e,t|=0,r|=0,n)||Pt(this,e,t,r,Math.pow(2,8*r)-1,0);var o=r-1,i=1;for(this[t+o]=255&e;--o>=0&&(i*=256);)this[t+o]=e/i&255;return t+r},it.prototype.writeUInt8=function(e,t,r){return e=+e,t|=0,r||Pt(this,e,t,1,255,0),it.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},it.prototype.writeUInt16LE=function(e,t,r){return e=+e,t|=0,r||Pt(this,e,t,2,65535,0),it.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):jt(this,e,t,!0),t+2},it.prototype.writeUInt16BE=function(e,t,r){return e=+e,t|=0,r||Pt(this,e,t,2,65535,0),it.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):jt(this,e,t,!1),t+2},it.prototype.writeUInt32LE=function(e,t,r){return e=+e,t|=0,r||Pt(this,e,t,4,4294967295,0),it.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):Dt(this,e,t,!0),t+4},it.prototype.writeUInt32BE=function(e,t,r){return e=+e,t|=0,r||Pt(this,e,t,4,4294967295,0),it.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):Dt(this,e,t,!1),t+4},it.prototype.writeIntLE=function(e,t,r,n){if(e=+e,t|=0,!n){var o=Math.pow(2,8*r-1);Pt(this,e,t,r,o-1,-o)}var i=0,a=1,u=0;for(this[t]=255&e;++i<r&&(a*=256);)e<0&&0===u&&0!==this[t+i-1]&&(u=1),this[t+i]=(e/a|0)-u&255;return t+r},it.prototype.writeIntBE=function(e,t,r,n){if(e=+e,t|=0,!n){var o=Math.pow(2,8*r-1);Pt(this,e,t,r,o-1,-o)}var i=r-1,a=1,u=0;for(this[t+i]=255&e;--i>=0&&(a*=256);)e<0&&0===u&&0!==this[t+i+1]&&(u=1),this[t+i]=(e/a|0)-u&255;return t+r},it.prototype.writeInt8=function(e,t,r){return e=+e,t|=0,r||Pt(this,e,t,1,127,-128),it.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},it.prototype.writeInt16LE=function(e,t,r){return e=+e,t|=0,r||Pt(this,e,t,2,32767,-32768),it.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):jt(this,e,t,!0),t+2},it.prototype.writeInt16BE=function(e,t,r){return e=+e,t|=0,r||Pt(this,e,t,2,32767,-32768),it.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):jt(this,e,t,!1),t+2},it.prototype.writeInt32LE=function(e,t,r){return e=+e,t|=0,r||Pt(this,e,t,4,2147483647,-2147483648),it.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):Dt(this,e,t,!0),t+4},it.prototype.writeInt32BE=function(e,t,r){return e=+e,t|=0,r||Pt(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),it.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):Dt(this,e,t,!1),t+4},it.prototype.writeFloatLE=function(e,t,r){return Nt(this,e,t,!0,r)},it.prototype.writeFloatBE=function(e,t,r){return Nt(this,e,t,!1,r)},it.prototype.writeDoubleLE=function(e,t,r){return Ut(this,e,t,!0,r)},it.prototype.writeDoubleBE=function(e,t,r){return Ut(this,e,t,!1,r)},it.prototype.copy=function(e,t,r,n){if(r||(r=0),n||0===n||(n=this.length),t>=e.length&&(t=e.length),t||(t=0),n>0&&n<r&&(n=r),n===r)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(r<0||r>=this.length)throw new RangeError("sourceStart out of bounds");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),e.length-t<n-r&&(n=e.length-t+r);var o,i=n-r;if(this===e&&r<t&&t<n)for(o=i-1;o>=0;--o)e[o+t]=this[o+r];else if(i<1e3||!it.TYPED_ARRAY_SUPPORT)for(o=0;o<i;++o)e[o+t]=this[o+r];else Uint8Array.prototype.set.call(e,this.subarray(r,r+i),t);return i},it.prototype.fill=function(e,t,r,n){if("string"==typeof e){if("string"==typeof t?(n=t,t=0,r=this.length):"string"==typeof r&&(n=r,r=this.length),1===e.length){var o=e.charCodeAt(0);o<256&&(e=o)}if(void 0!==n&&"string"!=typeof n)throw new TypeError("encoding must be a string");if("string"==typeof n&&!it.isEncoding(n))throw new TypeError("Unknown encoding: "+n)}else"number"==typeof e&&(e&=255);if(t<0||this.length<t||this.length<r)throw new RangeError("Out of range index");if(r<=t)return this;var i;if(t>>>=0,r=void 0===r?this.length:r>>>0,e||(e=0),"number"==typeof e)for(i=t;i<r;++i)this[i]=e;else{var a=ft(e)?e:Mt(new it(e,n).toString()),u=a.length;for(i=0;i<r-t;++i)this[i+t]=a[i%u]}return this};var _t=/[^+\/0-9A-Za-z-_]/g;function Bt(e){return e<16?"0"+e.toString(16):e.toString(16)}function Mt(e,t){var r;t=t||1/0;for(var n=e.length,o=null,i=[],a=0;a<n;++a){if((r=e.charCodeAt(a))>55295&&r<57344){if(!o){if(r>56319){(t-=3)>-1&&i.push(239,191,189);continue}if(a+1===n){(t-=3)>-1&&i.push(239,191,189);continue}o=r;continue}if(r<56320){(t-=3)>-1&&i.push(239,191,189),o=r;continue}r=65536+(o-55296<<10|r-56320)}else o&&(t-=3)>-1&&i.push(239,191,189);if(o=null,r<128){if((t-=1)<0)break;i.push(r)}else if(r<2048){if((t-=2)<0)break;i.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;i.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;i.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return i}function Lt(e){return function(e){var t,r,n,o,i,a;$e||Ke();var u=e.length;if(u%4>0)throw new Error("Invalid string. Length must be a multiple of 4");i="="===e[u-2]?2:"="===e[u-1]?1:0,a=new Je(3*u/4-i),n=i>0?u-4:u;var l=0;for(t=0,r=0;t<n;t+=4,r+=3)o=Ge[e.charCodeAt(t)]<<18|Ge[e.charCodeAt(t+1)]<<12|Ge[e.charCodeAt(t+2)]<<6|Ge[e.charCodeAt(t+3)],a[l++]=o>>16&255,a[l++]=o>>8&255,a[l++]=255&o;return 2===i?(o=Ge[e.charCodeAt(t)]<<2|Ge[e.charCodeAt(t+1)]>>4,a[l++]=255&o):1===i&&(o=Ge[e.charCodeAt(t)]<<10|Ge[e.charCodeAt(t+1)]<<4|Ge[e.charCodeAt(t+2)]>>2,a[l++]=o>>8&255,a[l++]=255&o),a}(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace(_t,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function Vt(e,t,r,n){for(var o=0;o<n&&!(o+r>=t.length||o>=e.length);++o)t[o+r]=e[o];return o}function zt(e){return!!e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}var Ht=ue;var Yt=function(e,t){t=t||new FormData;var r=[];function n(e){return null===e?"":Ht.isDate(e)?e.toISOString():Ht.isArrayBuffer(e)||Ht.isTypedArray(e)?"function"==typeof Blob?new Blob([e]):it.from(e):e}return function e(o,i){if(Ht.isPlainObject(o)||Ht.isArray(o)){if(-1!==r.indexOf(o))throw Error("Circular reference detected in "+i);r.push(o),Ht.forEach(o,(function(r,o){if(!Ht.isUndefined(r)){var a,u=i?i+"."+o:o;if(r&&!i&&"object"==typeof r)if(Ht.endsWith(o,"{}"))r=JSON.stringify(r);else if(Ht.endsWith(o,"[]")&&(a=Ht.toArray(r)))return void a.forEach((function(e){!Ht.isUndefined(e)&&t.append(u,n(e))}));e(r,u)}})),r.pop()}else t.append(i,n(o))}(e),t},qt=Ye,Wt=ue,Gt=Wt.isStandardBrowserEnv()?{write:function(e,t,r,n,o,i){var a=[];a.push(e+"="+encodeURIComponent(t)),Wt.isNumber(r)&&a.push("expires="+new Date(r).toGMTString()),Wt.isString(n)&&a.push("path="+n),Wt.isString(o)&&a.push("domain="+o),!0===i&&a.push("secure"),document.cookie=a.join("; ")},read:function(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}},Jt=function(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)},$t=function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e},Kt=function(e,t){return e&&!Jt(t)?$t(e,t):t},Zt=ue,Xt=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"],Qt=ue,er=Qt.isStandardBrowserEnv()?function(){var e,t=/(msie|trident)/i.test(navigator.userAgent),r=document.createElement("a");function n(e){var n=e;return t&&(r.setAttribute("href",n),n=r.href),r.setAttribute("href",n),{href:r.href,protocol:r.protocol?r.protocol.replace(/:$/,""):"",host:r.host,search:r.search?r.search.replace(/^\?/,""):"",hash:r.hash?r.hash.replace(/^#/,""):"",hostname:r.hostname,port:r.port,pathname:"/"===r.pathname.charAt(0)?r.pathname:"/"+r.pathname}}return e=n(window.location.href),function(t){var r=Qt.isString(t)?n(t):t;return r.protocol===e.protocol&&r.host===e.host}}():function(){return!0},tr=Ye;function rr(e){tr.call(this,null==e?"canceled":e,tr.ERR_CANCELED),this.name="CanceledError"}ue.inherits(rr,tr,{__CANCEL__:!0});var nr=rr,or=ue,ir=function(e,t,r){var n=r.config.validateStatus;r.status&&n&&!n(r.status)?t(new qt("Request failed with status code "+r.status,[qt.ERR_BAD_REQUEST,qt.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r)):e(r)},ar=Gt,ur=ce,lr=Kt,sr=function(e){var t,r,n,o={};return e?(Zt.forEach(e.split("\n"),(function(e){if(n=e.indexOf(":"),t=Zt.trim(e.substr(0,n)).toLowerCase(),r=Zt.trim(e.substr(n+1)),t){if(o[t]&&Xt.indexOf(t)>=0)return;o[t]="set-cookie"===t?(o[t]?o[t]:[]).concat([r]):o[t]?o[t]+", "+r:r}})),o):o},cr=er,fr=qe,dr=Ye,pr=nr,hr=function(e){var t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""},mr=function(e){return new Promise((function(t,r){var n,o=e.data,i=e.headers,a=e.responseType;function u(){e.cancelToken&&e.cancelToken.unsubscribe(n),e.signal&&e.signal.removeEventListener("abort",n)}or.isFormData(o)&&or.isStandardBrowserEnv()&&delete i["Content-Type"];var l=new XMLHttpRequest;if(e.auth){var s=e.auth.username||"",c=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";i.Authorization="Basic "+btoa(s+":"+c)}var f=lr(e.baseURL,e.url);function d(){if(l){var n="getAllResponseHeaders"in l?sr(l.getAllResponseHeaders()):null,o={data:a&&"text"!==a&&"json"!==a?l.response:l.responseText,status:l.status,statusText:l.statusText,headers:n,config:e,request:l};ir((function(e){t(e),u()}),(function(e){r(e),u()}),o),l=null}}if(l.open(e.method.toUpperCase(),ur(f,e.params,e.paramsSerializer),!0),l.timeout=e.timeout,"onloadend"in l?l.onloadend=d:l.onreadystatechange=function(){l&&4===l.readyState&&(0!==l.status||l.responseURL&&0===l.responseURL.indexOf("file:"))&&setTimeout(d)},l.onabort=function(){l&&(r(new dr("Request aborted",dr.ECONNABORTED,e,l)),l=null)},l.onerror=function(){r(new dr("Network Error",dr.ERR_NETWORK,e,l,l)),l=null},l.ontimeout=function(){var t=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded",n=e.transitional||fr;e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),r(new dr(t,n.clarifyTimeoutError?dr.ETIMEDOUT:dr.ECONNABORTED,e,l)),l=null},or.isStandardBrowserEnv()){var p=(e.withCredentials||cr(f))&&e.xsrfCookieName?ar.read(e.xsrfCookieName):void 0;p&&(i[e.xsrfHeaderName]=p)}"setRequestHeader"in l&&or.forEach(i,(function(e,t){void 0===o&&"content-type"===t.toLowerCase()?delete i[t]:l.setRequestHeader(t,e)})),or.isUndefined(e.withCredentials)||(l.withCredentials=!!e.withCredentials),a&&"json"!==a&&(l.responseType=e.responseType),"function"==typeof e.onDownloadProgress&&l.addEventListener("progress",e.onDownloadProgress),"function"==typeof e.onUploadProgress&&l.upload&&l.upload.addEventListener("progress",e.onUploadProgress),(e.cancelToken||e.signal)&&(n=function(e){l&&(r(!e||e&&e.type?new pr:e),l.abort(),l=null)},e.cancelToken&&e.cancelToken.subscribe(n),e.signal&&(e.signal.aborted?n():e.signal.addEventListener("abort",n))),o||(o=null);var h=hr(f);h&&-1===["http","https","file"].indexOf(h)?r(new dr("Unsupported protocol "+h+":",dr.ERR_BAD_REQUEST,e)):l.send(o)}))},yr=ue,gr=function(e,t){Me.forEach(e,(function(r,n){n!==t&&n.toUpperCase()===t.toUpperCase()&&(e[t]=r,delete e[n])}))},vr=Ye,br=Yt,wr={"Content-Type":"application/x-www-form-urlencoded"};function Er(e,t){!yr.isUndefined(e)&&yr.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}var Sr,Tr={transitional:qe,adapter:(("undefined"!=typeof XMLHttpRequest||"[object process]"===Object.prototype.toString.call(Be))&&(Sr=mr),Sr),transformRequest:[function(e,t){if(gr(t,"Accept"),gr(t,"Content-Type"),yr.isFormData(e)||yr.isArrayBuffer(e)||yr.isBuffer(e)||yr.isStream(e)||yr.isFile(e)||yr.isBlob(e))return e;if(yr.isArrayBufferView(e))return e.buffer;if(yr.isURLSearchParams(e))return Er(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString();var r,n=yr.isObject(e),o=t&&t["Content-Type"];if((r=yr.isFileList(e))||n&&"multipart/form-data"===o){var i=this.env&&this.env.FormData;return br(r?{"files[]":e}:e,i&&new i)}return n||"application/json"===o?(Er(t,"application/json"),function(e,t,r){if(yr.isString(e))try{return(t||JSON.parse)(e),yr.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(r||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){var t=this.transitional||Tr.transitional,r=t&&t.silentJSONParsing,n=t&&t.forcedJSONParsing,o=!r&&"json"===this.responseType;if(o||n&&yr.isString(e)&&e.length)try{return JSON.parse(e)}catch(e){if(o){if("SyntaxError"===e.name)throw vr.from(e,vr.ERR_BAD_RESPONSE,this,null,this.response);throw e}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:null},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};yr.forEach(["delete","get","head"],(function(e){Tr.headers[e]={}})),yr.forEach(["post","put","patch"],(function(e){Tr.headers[e]=yr.merge(wr)}));var Or=Tr,kr=ue,Ar=Or,xr=function(e){return!(!e||!e.__CANCEL__)},Cr=ue,Rr=function(e,t,r){var n=this||Ar;return kr.forEach(r,(function(r){e=r.call(n,e,t)})),e},Fr=xr,Pr=Or,jr=nr;function Dr(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new jr}var Ir=ue,Nr=function(e,t){t=t||{};var r={};function n(e,t){return Ir.isPlainObject(e)&&Ir.isPlainObject(t)?Ir.merge(e,t):Ir.isPlainObject(t)?Ir.merge({},t):Ir.isArray(t)?t.slice():t}function o(r){return Ir.isUndefined(t[r])?Ir.isUndefined(e[r])?void 0:n(void 0,e[r]):n(e[r],t[r])}function i(e){if(!Ir.isUndefined(t[e]))return n(void 0,t[e])}function a(r){return Ir.isUndefined(t[r])?Ir.isUndefined(e[r])?void 0:n(void 0,e[r]):n(void 0,t[r])}function u(r){return r in t?n(e[r],t[r]):r in e?n(void 0,e[r]):void 0}var l={url:i,method:i,data:i,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:u};return Ir.forEach(Object.keys(e).concat(Object.keys(t)),(function(e){var t=l[e]||o,n=t(e);Ir.isUndefined(n)&&t!==u||(r[e]=n)})),r},Ur="0.27.2",_r=Ur,Br=Ye,Mr={};["object","boolean","number","function","string","symbol"].forEach((function(e,t){Mr[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}}));var Lr={};Mr.transitional=function(e,t,r){function n(e,t){return"[Axios v"+_r+"] Transitional option '"+e+"'"+t+(r?". "+r:"")}return function(r,o,i){if(!1===e)throw new Br(n(o," has been removed"+(t?" in "+t:"")),Br.ERR_DEPRECATED);return t&&!Lr[o]&&(Lr[o]=!0,console.warn(n(o," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(r,o,i)}};var Vr={assertOptions:function(e,t,r){if("object"!=typeof e)throw new Br("options must be an object",Br.ERR_BAD_OPTION_VALUE);for(var n=Object.keys(e),o=n.length;o-- >0;){var i=n[o],a=t[i];if(a){var u=e[i],l=void 0===u||a(u,i,e);if(!0!==l)throw new Br("option "+i+" must be "+l,Br.ERR_BAD_OPTION_VALUE)}else if(!0!==r)throw new Br("Unknown option "+i,Br.ERR_BAD_OPTION)}},validators:Mr},zr=ue,Hr=ce,Yr=pe,qr=function(e){return Dr(e),e.headers=e.headers||{},e.data=Rr.call(e,e.data,e.headers,e.transformRequest),e.headers=Cr.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),Cr.forEach(["delete","get","head","post","put","patch","common"],(function(t){delete e.headers[t]})),(e.adapter||Pr.adapter)(e).then((function(t){return Dr(e),t.data=Rr.call(e,t.data,t.headers,e.transformResponse),t}),(function(t){return Fr(t)||(Dr(e),t&&t.response&&(t.response.data=Rr.call(e,t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)}))},Wr=Nr,Gr=Kt,Jr=Vr,$r=Jr.validators;function Kr(e){this.defaults=e,this.interceptors={request:new Yr,response:new Yr}}Kr.prototype.request=function(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},(t=Wr(this.defaults,t)).method?t.method=t.method.toLowerCase():this.defaults.method?t.method=this.defaults.method.toLowerCase():t.method="get";var r=t.transitional;void 0!==r&&Jr.assertOptions(r,{silentJSONParsing:$r.transitional($r.boolean),forcedJSONParsing:$r.transitional($r.boolean),clarifyTimeoutError:$r.transitional($r.boolean)},!1);var n=[],o=!0;this.interceptors.request.forEach((function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(o=o&&e.synchronous,n.unshift(e.fulfilled,e.rejected))}));var i,a=[];if(this.interceptors.response.forEach((function(e){a.push(e.fulfilled,e.rejected)})),!o){var u=[qr,void 0];for(Array.prototype.unshift.apply(u,n),u=u.concat(a),i=Promise.resolve(t);u.length;)i=i.then(u.shift(),u.shift());return i}for(var l=t;n.length;){var s=n.shift(),c=n.shift();try{l=s(l)}catch(e){c(e);break}}try{i=qr(l)}catch(e){return Promise.reject(e)}for(;a.length;)i=i.then(a.shift(),a.shift());return i},Kr.prototype.getUri=function(e){e=Wr(this.defaults,e);var t=Gr(e.baseURL,e.url);return Hr(t,e.params,e.paramsSerializer)},zr.forEach(["delete","get","head","options"],(function(e){Kr.prototype[e]=function(t,r){return this.request(Wr(r||{},{method:e,url:t,data:(r||{}).data}))}})),zr.forEach(["post","put","patch"],(function(e){function t(t){return function(r,n,o){return this.request(Wr(o||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:r,data:n}))}}Kr.prototype[e]=t(),Kr.prototype[e+"Form"]=t(!0)}));var Zr=Kr,Xr=nr;function Qr(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");var t;this.promise=new Promise((function(e){t=e}));var r=this;this.promise.then((function(e){if(r._listeners){var t,n=r._listeners.length;for(t=0;t<n;t++)r._listeners[t](e);r._listeners=null}})),this.promise.then=function(e){var t,n=new Promise((function(e){r.subscribe(e),t=e})).then(e);return n.cancel=function(){r.unsubscribe(t)},n},e((function(e){r.reason||(r.reason=new Xr(e),t(r.reason))}))}Qr.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},Qr.prototype.subscribe=function(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]},Qr.prototype.unsubscribe=function(e){if(this._listeners){var t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}},Qr.source=function(){var e;return{token:new Qr((function(t){e=t})),cancel:e}};var en=Qr,tn=ue,rn=ue,nn=z,on=Zr,an=Nr;var un=function e(t){var r=new on(t),n=nn(on.prototype.request,r);return rn.extend(n,on.prototype,r),rn.extend(n,r),n.create=function(r){return e(an(t,r))},n}(Or);un.Axios=on,un.CanceledError=nr,un.CancelToken=en,un.isCancel=xr,un.VERSION=Ur,un.toFormData=Yt,un.AxiosError=Ye,un.Cancel=un.CanceledError,un.all=function(e){return Promise.all(e)},un.spread=function(e){return function(t){return e.apply(null,t)}},un.isAxiosError=function(e){return tn.isObject(e)&&!0===e.isAxiosError},V.exports=un,V.exports.default=un;var ln=V.exports,sn=function(e,t){var r=13===e.toString().length?e/1e3:e;return w.unix(r).format(null!=t?t:U)},cn=function(e,t){var r=e.clientId,n=e.tableProps,o=void 0===n?{}:n,i=e.classNames,a=void 0===i?{}:i,u=e.uploaderProps,l=void 0===u?{}:u,s=e.isOverwriteDBConfig,c=void 0!==s&&s,f=O(e,["clientId","tableProps","classNames","uploaderProps","isOverwriteDBConfig"]),d=t.clientId,p=t.uiConfig,h=(void 0===p?{}:p).importHistoryTable,m=void 0===h?{}:h,y=O(t,["clientId","uiConfig"]),g=B.tableProps,v=B.uploaderProps,b=B.classNames,w=O(B,["tableProps","uploaderProps","classNames"]);return T(T(T({},w),{clientId:null!=d?d:r,classNames:T(T({},b),a),tableProps:T({},c?T(T(T({},g),m),o):T(T(T({},g),o),m)),uploaderProps:T({},c?T(T(T({},v),y),l):T(T(T({},v),l),y))}),f)},fn=function(t,r){var n,o,i,a,u;if(!ln.isCancel(t)){var l=t.response,s=null!==(u=null!==(o=null===(n=null==l?void 0:l.data)||void 0===n?void 0:n.message)&&void 0!==o?o:null===(a=null===(i=null==l?void 0:l.data)||void 0===i?void 0:i.error)||void 0===a?void 0:a.message)&&void 0!==u?u:r("SomethingWentWrongTryAgainLater");e.error({message:r("Error"),description:s})}},dn=function(t){"http"===(window.origin||window.location.origin||"").split(":")[0]&&e.error({message:"Error",description:t})},pn=function(e){switch(e){case"en":default:return"en-US";case"vi":return"vi";case"fr":return"fr";case"id":return"id";case"km":return"km";case"ms":return"ms";case"zh":return"zh-Hans"}},hn={exports:{}};hn.exports=function e(t,r,n){var o,i,a=window,u="application/octet-stream",l=n||u,s=t,c=!r&&!n&&s,f=document.createElement("a"),d=function(e){return String(e)},p=a.Blob||a.MozBlob||a.WebKitBlob||d,h=r||"download";if(p=p.call?p.bind(a):Blob,"true"===String(this)&&(l=(s=[s,l])[0],s=s[1]),c&&c.length<2048&&(h=c.split("/").pop().split("?")[0],f.href=c,-1!==f.href.indexOf(c))){var m=new XMLHttpRequest;return m.open("GET",c,!0),m.responseType="blob",m.onload=function(t){e(t.target.response,h,u)},setTimeout((function(){m.send()}),0),m}if(/^data:([\w+-]+\/[\w+.-]+)?[,;]/.test(s)){if(!(s.length>2096103.424&&p!==d))return navigator.msSaveBlob?navigator.msSaveBlob(b(s),h):w(s);l=(s=b(s)).type||u}else if(/([\x80-\xff])/.test(s)){for(var y=0,g=new Uint8Array(s.length),v=g.length;y<v;++y)g[y]=s.charCodeAt(y);s=new p([g],{type:l})}function b(e){for(var t=e.split(/[:;,]/),r=t[1],n=("base64"==t[2]?atob:decodeURIComponent)(t.pop()),o=n.length,i=0,a=new Uint8Array(o);i<o;++i)a[i]=n.charCodeAt(i);return new p([a],{type:r})}function w(e,t){if("download"in f)return f.href=e,f.setAttribute("download",h),f.className="download-js-link",f.innerHTML="downloading...",f.style.display="none",document.body.appendChild(f),setTimeout((function(){f.click(),document.body.removeChild(f),!0===t&&setTimeout((function(){a.URL.revokeObjectURL(f.href)}),250)}),66),!0;if(/(Version)\/(\d+)\.(\d+)(?:\.(\d+))?.*Safari\//.test(navigator.userAgent))return/^data:/.test(e)&&(e="data:"+e.replace(/^data:([\w\/\-\+]+)/,u)),window.open(e)||confirm("Displaying New Document\n\nUse Save As... to download, then click back to return to this page.")&&(location.href=e),!0;var r=document.createElement("iframe");document.body.appendChild(r),!t&&/^data:/.test(e)&&(e="data:"+e.replace(/^data:([\w\/\-\+]+)/,u)),r.src=e,setTimeout((function(){document.body.removeChild(r)}),333)}if(o=s instanceof p?s:new p([s],{type:l}),navigator.msSaveBlob)return navigator.msSaveBlob(o,h);if(a.URL)w(a.URL.createObjectURL(o),!0);else{if("string"==typeof o||o