teko-file-history
Version:
File history component for Teko system
1 lines • 157 kB
JavaScript
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("antd"),t=require("react"),r=require("dayjs"),n=require("antd/es/typography/Paragraph"),o=require("antd/es/typography/Text");function a(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}function i(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach((function(r){if("default"!==r){var n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:function(){return e[r]}})}})),t.default=e,Object.freeze(t)}var u=a(t),l=i(t),s=a(r),c=a(n),f=a(o),d=function(){return d=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},d.apply(this,arguments)};function p(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 h(e,t,r,n){return new(r||(r=Promise))((function(o,a){function i(e){try{l(n.next(e))}catch(e){a(e)}}function u(e){try{l(n.throw(e))}catch(e){a(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(i,u)}l((n=n.apply(e,t||[])).next())}))}function m(e,t){var r,n,o,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},i=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return i.next=u(0),i.throw=u(1),i.return=u(2),"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(u){return function(l){return function(u){if(r)throw new TypeError("Generator is already executing.");for(;i&&(i=0,u[0]&&(a=0)),a;)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 a.label++,{value:u[1],done:!1};case 5:a.label++,n=u[1],u=[0];continue;case 7:u=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==u[0]&&2!==u[0])){a=0;continue}if(3===u[0]&&(!o||u[1]>o[0]&&u[1]<o[3])){a.label=u[1];break}if(6===u[0]&&a.label<o[1]){a.label=o[1],o=u;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(u);break}o[2]&&a.ops.pop(),a.trys.pop();continue}u=t.call(e,a)}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 y(e,t,r){if(r||2===arguments.length)for(var n,o=0,a=t.length;o<a;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 g,v={DEV:"https://files.dev.tekoapis.net",STAG:"https://files.stage.tekoapis.net",PROD:"https://files.tekoapis.com"},b={DEV:"https://fps-bff.dev.tekoapis.net",STAG:"https://fps-bff.stag.tekoapis.net",PROD:"https://fps-bff.tekoapis.com"},w={DEV:"https://loyalty.develop.tekoapis.net",STAG:"https://loyalty.stage.tekoapis.net",PROD:"https://loyalty.tekoapis.com"},E={extension:".xlsx",mimeType:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"},S={extension:".pdf",mimeType:"application/pdf"},T=[{extension:".png",mimeType:"image/png"},{extension:".jpg",mimeType:"image/jpg"},{extension:".jpeg",mimeType:"image/jpeg"}],O=[{extension:".xls",mimeType:"application/vnd.ms-excel"},E,{extension:".csv",mimeType:"text/csv"},S],k={page:1,pageSize:10},A="".concat("DD/MM/YYYY"," ").concat("HH:mm:ss"),x={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"}},C=/^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$/,R={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}},F=t.createContext(R),P="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},j={exports:{}},D=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)}},I=D,N=Object.prototype.toString,U=(g=Object.create(null),function(e){var t=N.call(e);return g[t]||(g[t]=t.slice(8,-1).toLowerCase())});function _(e){return e=e.toLowerCase(),function(t){return U(t)===e}}function B(e){return Array.isArray(e)}function M(e){return void 0===e}var L=_("ArrayBuffer");function V(e){return null!==e&&"object"==typeof e}function z(e){if("object"!==U(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}var H=_("Date"),q=_("File"),Y=_("Blob"),W=_("FileList");function G(e){return"[object Function]"===N.call(e)}var J=_("URLSearchParams");function $(e,t){if(null!=e)if("object"!=typeof e&&(e=[e]),B(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 K,Z=(K="undefined"!=typeof Uint8Array&&Object.getPrototypeOf(Uint8Array),function(e){return K&&e instanceof K}),X={isArray:B,isArrayBuffer:L,isBuffer:function(e){return null!==e&&!M(e)&&null!==e.constructor&&!M(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||N.call(e)===t||G(e.toString)&&e.toString()===t)},isArrayBufferView:function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&L(e.buffer)},isString:function(e){return"string"==typeof e},isNumber:function(e){return"number"==typeof e},isObject:V,isPlainObject:z,isUndefined:M,isDate:H,isFile:q,isBlob:Y,isFunction:G,isStream:function(e){return V(e)&&G(e.pipe)},isURLSearchParams:J,isStandardBrowserEnv:function(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&("undefined"!=typeof window&&"undefined"!=typeof document)},forEach:$,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):B(r)?t[n]=r.slice():t[n]=r}for(var n=0,o=arguments.length;n<o;n++)$(arguments[n],r);return t},extend:function(e,t,r){return $(t,(function(t,n){e[n]=r&&"function"==typeof t?I(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,a,i={};t=t||{};do{for(o=(n=Object.getOwnPropertyNames(e)).length;o-- >0;)i[a=n[o]]||(t[a]=e[a],i[a]=!0);e=Object.getPrototypeOf(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},kindOf:U,kindOfTest:_,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(M(t))return null;for(var r=new Array(t);t-- >0;)r[t]=e[t];return r},isTypedArray:Z,isFileList:W},Q=X;function ee(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}var te=function(e,t,r){if(!t)return e;var n;if(r)n=r(t);else if(Q.isURLSearchParams(t))n=t.toString();else{var o=[];Q.forEach(t,(function(e,t){null!=e&&(Q.isArray(e)?t+="[]":e=[e],Q.forEach(e,(function(e){Q.isDate(e)?e=e.toISOString():Q.isObject(e)&&(e=JSON.stringify(e)),o.push(ee(t)+"="+ee(e))})))})),n=o.join("&")}if(n){var a=e.indexOf("#");-1!==a&&(e=e.slice(0,a)),e+=(-1===e.indexOf("?")?"?":"&")+n}return e},re=X;function ne(){this.handlers=[]}ne.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},ne.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},ne.prototype.forEach=function(e){re.forEach(this.handlers,(function(t){null!==t&&e(t)}))};var oe=ne,ae="undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{};function ie(){throw new Error("setTimeout has not been defined")}function ue(){throw new Error("clearTimeout has not been defined")}var le=ie,se=ue;function ce(e){if(le===setTimeout)return setTimeout(e,0);if((le===ie||!le)&&setTimeout)return le=setTimeout,setTimeout(e,0);try{return le(e,0)}catch(t){try{return le.call(null,e,0)}catch(t){return le.call(this,e,0)}}}"function"==typeof ae.setTimeout&&(le=setTimeout),"function"==typeof ae.clearTimeout&&(se=clearTimeout);var fe,de=[],pe=!1,he=-1;function me(){pe&&fe&&(pe=!1,fe.length?de=fe.concat(de):he=-1,de.length&&ye())}function ye(){if(!pe){var e=ce(me);pe=!0;for(var t=de.length;t;){for(fe=de,de=[];++he<t;)fe&&fe[he].run();he=-1,t=de.length}fe=null,pe=!1,function(e){if(se===clearTimeout)return clearTimeout(e);if((se===ue||!se)&&clearTimeout)return se=clearTimeout,clearTimeout(e);try{return se(e)}catch(t){try{return se.call(null,e)}catch(t){return se.call(this,e)}}}(e)}}function ge(e,t){this.fun=e,this.array=t}ge.prototype.run=function(){this.fun.apply(null,this.array)};function ve(){}var be=ve,we=ve,Ee=ve,Se=ve,Te=ve,Oe=ve,ke=ve;var Ae=ae.performance||{},xe=Ae.now||Ae.mozNow||Ae.msNow||Ae.oNow||Ae.webkitNow||function(){return(new Date).getTime()};var Ce=new Date;var Re={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];de.push(new ge(e,t)),1!==de.length||pe||ce(ye)},title:"browser",browser:!0,env:{},argv:[],version:"",versions:{},on:be,addListener:we,once:Ee,off:Se,removeListener:Te,removeAllListeners:Oe,emit:ke,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*xe.call(Ae),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-Ce)/1e3}},Fe=X,Pe=X;function je(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)}Pe.inherits(je,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 De=je.prototype,Ie={};["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){Ie[e]={value:e}})),Object.defineProperties(je,Ie),Object.defineProperty(De,"isAxiosError",{value:!0}),je.from=function(e,t,r,n,o,a){var i=Object.create(De);return Pe.toFlatObject(e,i,(function(e){return e!==Error.prototype})),je.call(i,e.message,t,r,n,o),i.name=e.name,a&&Object.assign(i,a),i};var Ne=je,Ue={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},_e=[],Be=[],Me="undefined"!=typeof Uint8Array?Uint8Array:Array,Le=!1;function Ve(){Le=!0;for(var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t=0;t<64;++t)_e[t]=e[t],Be[e.charCodeAt(t)]=t;Be["-".charCodeAt(0)]=62,Be["_".charCodeAt(0)]=63}function ze(e,t,r){for(var n,o,a=[],i=t;i<r;i+=3)n=(e[i]<<16)+(e[i+1]<<8)+e[i+2],a.push(_e[(o=n)>>18&63]+_e[o>>12&63]+_e[o>>6&63]+_e[63&o]);return a.join("")}function He(e){var t;Le||Ve();for(var r=e.length,n=r%3,o="",a=[],i=16383,u=0,l=r-n;u<l;u+=i)a.push(ze(e,u,u+i>l?l:u+i));return 1===n?(t=e[r-1],o+=_e[t>>2],o+=_e[t<<4&63],o+="=="):2===n&&(t=(e[r-2]<<8)+e[r-1],o+=_e[t>>10],o+=_e[t>>4&63],o+=_e[t<<2&63],o+="="),a.push(o),a.join("")}function qe(e,t,r,n,o){var a,i,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,a=p&(1<<-c)-1,p>>=-c,c+=u;c>0;a=256*a+e[t+f],f+=d,c-=8);for(i=a&(1<<-c)-1,a>>=-c,c+=n;c>0;i=256*i+e[t+f],f+=d,c-=8);if(0===a)a=1-s;else{if(a===l)return i?NaN:1/0*(p?-1:1);i+=Math.pow(2,n),a-=s}return(p?-1:1)*i*Math.pow(2,a-n)}function Ye(e,t,r,n,o,a){var i,u,l,s=8*a-o-1,c=(1<<s)-1,f=c>>1,d=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,p=n?0:a-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,i=c):(i=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-i))<1&&(i--,l*=2),(t+=i+f>=1?d/l:d*Math.pow(2,1-f))*l>=2&&(i++,l/=2),i+f>=c?(u=0,i=c):i+f>=1?(u=(t*l-1)*Math.pow(2,o),i+=f):(u=t*Math.pow(2,f-1)*Math.pow(2,o),i=0));o>=8;e[r+p]=255&u,p+=h,u/=256,o-=8);for(i=i<<o|u,s+=o;s>0;e[r+p]=255&i,p+=h,i/=256,s-=8);e[r+p-h]|=128*m}var We={}.toString,Ge=Array.isArray||function(e){return"[object Array]"==We.call(e)};function Je(){return Ke.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function $e(e,t){if(Je()<t)throw new RangeError("Invalid typed array length");return Ke.TYPED_ARRAY_SUPPORT?(e=new Uint8Array(t)).__proto__=Ke.prototype:(null===e&&(e=new Ke(t)),e.length=t),e}function Ke(e,t,r){if(!(Ke.TYPED_ARRAY_SUPPORT||this instanceof Ke))return new Ke(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 Qe(this,e)}return Ze(this,e,t,r)}function Ze(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);Ke.TYPED_ARRAY_SUPPORT?(e=t).__proto__=Ke.prototype:e=et(e,t);return e}(e,t,r,n):"string"==typeof t?function(e,t,r){"string"==typeof r&&""!==r||(r="utf8");if(!Ke.isEncoding(r))throw new TypeError('"encoding" must be a valid string encoding');var n=0|nt(t,r);e=$e(e,n);var o=e.write(t,r);o!==n&&(e=e.slice(0,o));return e}(e,t,r):function(e,t){if(rt(t)){var r=0|tt(t.length);return 0===(e=$e(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?$e(e,0):et(e,t);if("Buffer"===t.type&&Ge(t.data))return et(e,t.data)}var n;throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(e,t)}function Xe(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 Qe(e,t){if(Xe(t),e=$e(e,t<0?0:0|tt(t)),!Ke.TYPED_ARRAY_SUPPORT)for(var r=0;r<t;++r)e[r]=0;return e}function et(e,t){var r=t.length<0?0:0|tt(t.length);e=$e(e,r);for(var n=0;n<r;n+=1)e[n]=255&t[n];return e}function tt(e){if(e>=Je())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+Je().toString(16)+" bytes");return 0|e}function rt(e){return!(null==e||!e._isBuffer)}function nt(e,t){if(rt(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 Ft(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return Pt(e).length;default:if(n)return Ft(e).length;t=(""+t).toLowerCase(),n=!0}}function ot(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 bt(this,t,r);case"utf8":case"utf-8":return mt(this,t,r);case"ascii":return gt(this,t,r);case"latin1":case"binary":return vt(this,t,r);case"base64":return ht(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return wt(this,t,r);default:if(n)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),n=!0}}function at(e,t,r){var n=e[t];e[t]=e[r],e[r]=n}function it(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=Ke.from(t,n)),rt(t))return 0===t.length?-1:ut(e,t,r,n,o);if("number"==typeof t)return t&=255,Ke.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?o?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):ut(e,[t],r,n,o);throw new TypeError("val must be string, number or Buffer")}function ut(e,t,r,n,o){var a,i=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;i=2,u/=2,l/=2,r/=2}function s(e,t){return 1===i?e[t]:e.readUInt16BE(t*i)}if(o){var c=-1;for(a=r;a<u;a++)if(s(e,a)===s(t,-1===c?0:a-c)){if(-1===c&&(c=a),a-c+1===l)return c*i}else-1!==c&&(a-=a-c),c=-1}else for(r+l>u&&(r=u-l),a=r;a>=0;a--){for(var f=!0,d=0;d<l;d++)if(s(e,a+d)!==s(t,d)){f=!1;break}if(f)return a}return-1}function lt(e,t,r,n){r=Number(r)||0;var o=e.length-r;n?(n=Number(n))>o&&(n=o):n=o;var a=t.length;if(a%2!=0)throw new TypeError("Invalid hex string");n>a/2&&(n=a/2);for(var i=0;i<n;++i){var u=parseInt(t.substr(2*i,2),16);if(isNaN(u))return i;e[r+i]=u}return i}function st(e,t,r,n){return jt(Ft(t,e.length-r),e,r,n)}function ct(e,t,r,n){return jt(function(e){for(var t=[],r=0;r<e.length;++r)t.push(255&e.charCodeAt(r));return t}(t),e,r,n)}function ft(e,t,r,n){return ct(e,t,r,n)}function dt(e,t,r,n){return jt(Pt(t),e,r,n)}function pt(e,t,r,n){return jt(function(e,t){for(var r,n,o,a=[],i=0;i<e.length&&!((t-=2)<0);++i)n=(r=e.charCodeAt(i))>>8,o=r%256,a.push(o),a.push(n);return a}(t,e.length-r),e,r,n)}function ht(e,t,r){return 0===t&&r===e.length?He(e):He(e.slice(t,r))}function mt(e,t,r){r=Math.min(e.length,r);for(var n=[],o=t;o<r;){var a,i,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&(a=e[o+1]))&&(l=(31&s)<<6|63&a)>127&&(c=l);break;case 3:a=e[o+1],i=e[o+2],128==(192&a)&&128==(192&i)&&(l=(15&s)<<12|(63&a)<<6|63&i)>2047&&(l<55296||l>57343)&&(c=l);break;case 4:a=e[o+1],i=e[o+2],u=e[o+3],128==(192&a)&&128==(192&i)&&128==(192&u)&&(l=(15&s)<<18|(63&a)<<12|(63&i)<<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<=yt)return String.fromCharCode.apply(String,e);var r="",n=0;for(;n<t;)r+=String.fromCharCode.apply(String,e.slice(n,n+=yt));return r}(n)}Ke.TYPED_ARRAY_SUPPORT=void 0===ae.TYPED_ARRAY_SUPPORT||ae.TYPED_ARRAY_SUPPORT,Je(),Ke.poolSize=8192,Ke._augment=function(e){return e.__proto__=Ke.prototype,e},Ke.from=function(e,t,r){return Ze(null,e,t,r)},Ke.TYPED_ARRAY_SUPPORT&&(Ke.prototype.__proto__=Uint8Array.prototype,Ke.__proto__=Uint8Array),Ke.alloc=function(e,t,r){return function(e,t,r,n){return Xe(t),t<=0?$e(e,t):void 0!==r?"string"==typeof n?$e(e,t).fill(r,n):$e(e,t).fill(r):$e(e,t)}(null,e,t,r)},Ke.allocUnsafe=function(e){return Qe(null,e)},Ke.allocUnsafeSlow=function(e){return Qe(null,e)},Ke.isBuffer=function(e){return null!=e&&(!!e._isBuffer||Dt(e)||function(e){return"function"==typeof e.readFloatLE&&"function"==typeof e.slice&&Dt(e.slice(0,0))}(e))},Ke.compare=function(e,t){if(!rt(e)||!rt(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var r=e.length,n=t.length,o=0,a=Math.min(r,n);o<a;++o)if(e[o]!==t[o]){r=e[o],n=t[o];break}return r<n?-1:n<r?1:0},Ke.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}},Ke.concat=function(e,t){if(!Ge(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return Ke.alloc(0);var r;if(void 0===t)for(t=0,r=0;r<e.length;++r)t+=e[r].length;var n=Ke.allocUnsafe(t),o=0;for(r=0;r<e.length;++r){var a=e[r];if(!rt(a))throw new TypeError('"list" argument must be an Array of Buffers');a.copy(n,o),o+=a.length}return n},Ke.byteLength=nt,Ke.prototype._isBuffer=!0,Ke.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)at(this,t,t+1);return this},Ke.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)at(this,t,t+3),at(this,t+1,t+2);return this},Ke.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)at(this,t,t+7),at(this,t+1,t+6),at(this,t+2,t+5),at(this,t+3,t+4);return this},Ke.prototype.toString=function(){var e=0|this.length;return 0===e?"":0===arguments.length?mt(this,0,e):ot.apply(this,arguments)},Ke.prototype.equals=function(e){if(!rt(e))throw new TypeError("Argument must be a Buffer");return this===e||0===Ke.compare(this,e)},Ke.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+">"},Ke.prototype.compare=function(e,t,r,n,o){if(!rt(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 a=(o>>>=0)-(n>>>=0),i=(r>>>=0)-(t>>>=0),u=Math.min(a,i),l=this.slice(n,o),s=e.slice(t,r),c=0;c<u;++c)if(l[c]!==s[c]){a=l[c],i=s[c];break}return a<i?-1:i<a?1:0},Ke.prototype.includes=function(e,t,r){return-1!==this.indexOf(e,t,r)},Ke.prototype.indexOf=function(e,t,r){return it(this,e,t,r,!0)},Ke.prototype.lastIndexOf=function(e,t,r){return it(this,e,t,r,!1)},Ke.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 a=!1;;)switch(n){case"hex":return lt(this,e,t,r);case"utf8":case"utf-8":return st(this,e,t,r);case"ascii":return ct(this,e,t,r);case"latin1":case"binary":return ft(this,e,t,r);case"base64":return dt(this,e,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return pt(this,e,t,r);default:if(a)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),a=!0}},Ke.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var yt=4096;function gt(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 vt(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 bt(e,t,r){var n=e.length;(!t||t<0)&&(t=0),(!r||r<0||r>n)&&(r=n);for(var o="",a=t;a<r;++a)o+=Rt(e[a]);return o}function wt(e,t,r){for(var n=e.slice(t,r),o="",a=0;a<n.length;a+=2)o+=String.fromCharCode(n[a]+256*n[a+1]);return o}function Et(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 St(e,t,r,n,o,a){if(!rt(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>o||t<a)throw new RangeError('"value" argument is out of bounds');if(r+n>e.length)throw new RangeError("Index out of range")}function Tt(e,t,r,n){t<0&&(t=65535+t+1);for(var o=0,a=Math.min(e.length-r,2);o<a;++o)e[r+o]=(t&255<<8*(n?o:1-o))>>>8*(n?o:1-o)}function Ot(e,t,r,n){t<0&&(t=4294967295+t+1);for(var o=0,a=Math.min(e.length-r,4);o<a;++o)e[r+o]=t>>>8*(n?o:3-o)&255}function kt(e,t,r,n,o,a){if(r+n>e.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function At(e,t,r,n,o){return o||kt(e,0,r,4),Ye(e,t,r,n,23,4),r+4}function xt(e,t,r,n,o){return o||kt(e,0,r,8),Ye(e,t,r,n,52,8),r+8}Ke.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),Ke.TYPED_ARRAY_SUPPORT)(r=this.subarray(e,t)).__proto__=Ke.prototype;else{var o=t-e;r=new Ke(o,void 0);for(var a=0;a<o;++a)r[a]=this[a+e]}return r},Ke.prototype.readUIntLE=function(e,t,r){e|=0,t|=0,r||Et(e,t,this.length);for(var n=this[e],o=1,a=0;++a<t&&(o*=256);)n+=this[e+a]*o;return n},Ke.prototype.readUIntBE=function(e,t,r){e|=0,t|=0,r||Et(e,t,this.length);for(var n=this[e+--t],o=1;t>0&&(o*=256);)n+=this[e+--t]*o;return n},Ke.prototype.readUInt8=function(e,t){return t||Et(e,1,this.length),this[e]},Ke.prototype.readUInt16LE=function(e,t){return t||Et(e,2,this.length),this[e]|this[e+1]<<8},Ke.prototype.readUInt16BE=function(e,t){return t||Et(e,2,this.length),this[e]<<8|this[e+1]},Ke.prototype.readUInt32LE=function(e,t){return t||Et(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},Ke.prototype.readUInt32BE=function(e,t){return t||Et(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},Ke.prototype.readIntLE=function(e,t,r){e|=0,t|=0,r||Et(e,t,this.length);for(var n=this[e],o=1,a=0;++a<t&&(o*=256);)n+=this[e+a]*o;return n>=(o*=128)&&(n-=Math.pow(2,8*t)),n},Ke.prototype.readIntBE=function(e,t,r){e|=0,t|=0,r||Et(e,t,this.length);for(var n=t,o=1,a=this[e+--n];n>0&&(o*=256);)a+=this[e+--n]*o;return a>=(o*=128)&&(a-=Math.pow(2,8*t)),a},Ke.prototype.readInt8=function(e,t){return t||Et(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},Ke.prototype.readInt16LE=function(e,t){t||Et(e,2,this.length);var r=this[e]|this[e+1]<<8;return 32768&r?4294901760|r:r},Ke.prototype.readInt16BE=function(e,t){t||Et(e,2,this.length);var r=this[e+1]|this[e]<<8;return 32768&r?4294901760|r:r},Ke.prototype.readInt32LE=function(e,t){return t||Et(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},Ke.prototype.readInt32BE=function(e,t){return t||Et(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},Ke.prototype.readFloatLE=function(e,t){return t||Et(e,4,this.length),qe(this,e,!0,23,4)},Ke.prototype.readFloatBE=function(e,t){return t||Et(e,4,this.length),qe(this,e,!1,23,4)},Ke.prototype.readDoubleLE=function(e,t){return t||Et(e,8,this.length),qe(this,e,!0,52,8)},Ke.prototype.readDoubleBE=function(e,t){return t||Et(e,8,this.length),qe(this,e,!1,52,8)},Ke.prototype.writeUIntLE=function(e,t,r,n){(e=+e,t|=0,r|=0,n)||St(this,e,t,r,Math.pow(2,8*r)-1,0);var o=1,a=0;for(this[t]=255&e;++a<r&&(o*=256);)this[t+a]=e/o&255;return t+r},Ke.prototype.writeUIntBE=function(e,t,r,n){(e=+e,t|=0,r|=0,n)||St(this,e,t,r,Math.pow(2,8*r)-1,0);var o=r-1,a=1;for(this[t+o]=255&e;--o>=0&&(a*=256);)this[t+o]=e/a&255;return t+r},Ke.prototype.writeUInt8=function(e,t,r){return e=+e,t|=0,r||St(this,e,t,1,255,0),Ke.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},Ke.prototype.writeUInt16LE=function(e,t,r){return e=+e,t|=0,r||St(this,e,t,2,65535,0),Ke.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):Tt(this,e,t,!0),t+2},Ke.prototype.writeUInt16BE=function(e,t,r){return e=+e,t|=0,r||St(this,e,t,2,65535,0),Ke.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):Tt(this,e,t,!1),t+2},Ke.prototype.writeUInt32LE=function(e,t,r){return e=+e,t|=0,r||St(this,e,t,4,4294967295,0),Ke.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):Ot(this,e,t,!0),t+4},Ke.prototype.writeUInt32BE=function(e,t,r){return e=+e,t|=0,r||St(this,e,t,4,4294967295,0),Ke.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):Ot(this,e,t,!1),t+4},Ke.prototype.writeIntLE=function(e,t,r,n){if(e=+e,t|=0,!n){var o=Math.pow(2,8*r-1);St(this,e,t,r,o-1,-o)}var a=0,i=1,u=0;for(this[t]=255&e;++a<r&&(i*=256);)e<0&&0===u&&0!==this[t+a-1]&&(u=1),this[t+a]=(e/i|0)-u&255;return t+r},Ke.prototype.writeIntBE=function(e,t,r,n){if(e=+e,t|=0,!n){var o=Math.pow(2,8*r-1);St(this,e,t,r,o-1,-o)}var a=r-1,i=1,u=0;for(this[t+a]=255&e;--a>=0&&(i*=256);)e<0&&0===u&&0!==this[t+a+1]&&(u=1),this[t+a]=(e/i|0)-u&255;return t+r},Ke.prototype.writeInt8=function(e,t,r){return e=+e,t|=0,r||St(this,e,t,1,127,-128),Ke.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},Ke.prototype.writeInt16LE=function(e,t,r){return e=+e,t|=0,r||St(this,e,t,2,32767,-32768),Ke.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):Tt(this,e,t,!0),t+2},Ke.prototype.writeInt16BE=function(e,t,r){return e=+e,t|=0,r||St(this,e,t,2,32767,-32768),Ke.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):Tt(this,e,t,!1),t+2},Ke.prototype.writeInt32LE=function(e,t,r){return e=+e,t|=0,r||St(this,e,t,4,2147483647,-2147483648),Ke.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):Ot(this,e,t,!0),t+4},Ke.prototype.writeInt32BE=function(e,t,r){return e=+e,t|=0,r||St(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),Ke.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):Ot(this,e,t,!1),t+4},Ke.prototype.writeFloatLE=function(e,t,r){return At(this,e,t,!0,r)},Ke.prototype.writeFloatBE=function(e,t,r){return At(this,e,t,!1,r)},Ke.prototype.writeDoubleLE=function(e,t,r){return xt(this,e,t,!0,r)},Ke.prototype.writeDoubleBE=function(e,t,r){return xt(this,e,t,!1,r)},Ke.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,a=n-r;if(this===e&&r<t&&t<n)for(o=a-1;o>=0;--o)e[o+t]=this[o+r];else if(a<1e3||!Ke.TYPED_ARRAY_SUPPORT)for(o=0;o<a;++o)e[o+t]=this[o+r];else Uint8Array.prototype.set.call(e,this.subarray(r,r+a),t);return a},Ke.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&&!Ke.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 a;if(t>>>=0,r=void 0===r?this.length:r>>>0,e||(e=0),"number"==typeof e)for(a=t;a<r;++a)this[a]=e;else{var i=rt(e)?e:Ft(new Ke(e,n).toString()),u=i.length;for(a=0;a<r-t;++a)this[a+t]=i[a%u]}return this};var Ct=/[^+\/0-9A-Za-z-_]/g;function Rt(e){return e<16?"0"+e.toString(16):e.toString(16)}function Ft(e,t){var r;t=t||1/0;for(var n=e.length,o=null,a=[],i=0;i<n;++i){if((r=e.charCodeAt(i))>55295&&r<57344){if(!o){if(r>56319){(t-=3)>-1&&a.push(239,191,189);continue}if(i+1===n){(t-=3)>-1&&a.push(239,191,189);continue}o=r;continue}if(r<56320){(t-=3)>-1&&a.push(239,191,189),o=r;continue}r=65536+(o-55296<<10|r-56320)}else o&&(t-=3)>-1&&a.push(239,191,189);if(o=null,r<128){if((t-=1)<0)break;a.push(r)}else if(r<2048){if((t-=2)<0)break;a.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;a.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;a.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return a}function Pt(e){return function(e){var t,r,n,o,a,i;Le||Ve();var u=e.length;if(u%4>0)throw new Error("Invalid string. Length must be a multiple of 4");a="="===e[u-2]?2:"="===e[u-1]?1:0,i=new Me(3*u/4-a),n=a>0?u-4:u;var l=0;for(t=0,r=0;t<n;t+=4,r+=3)o=Be[e.charCodeAt(t)]<<18|Be[e.charCodeAt(t+1)]<<12|Be[e.charCodeAt(t+2)]<<6|Be[e.charCodeAt(t+3)],i[l++]=o>>16&255,i[l++]=o>>8&255,i[l++]=255&o;return 2===a?(o=Be[e.charCodeAt(t)]<<2|Be[e.charCodeAt(t+1)]>>4,i[l++]=255&o):1===a&&(o=Be[e.charCodeAt(t)]<<10|Be[e.charCodeAt(t+1)]<<4|Be[e.charCodeAt(t+2)]>>2,i[l++]=o>>8&255,i[l++]=255&o),i}(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace(Ct,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function jt(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 Dt(e){return!!e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}var It=X;var Nt=function(e,t){t=t||new FormData;var r=[];function n(e){return null===e?"":It.isDate(e)?e.toISOString():It.isArrayBuffer(e)||It.isTypedArray(e)?"function"==typeof Blob?new Blob([e]):Ke.from(e):e}return function e(o,a){if(It.isPlainObject(o)||It.isArray(o)){if(-1!==r.indexOf(o))throw Error("Circular reference detected in "+a);r.push(o),It.forEach(o,(function(r,o){if(!It.isUndefined(r)){var i,u=a?a+"."+o:o;if(r&&!a&&"object"==typeof r)if(It.endsWith(o,"{}"))r=JSON.stringify(r);else if(It.endsWith(o,"[]")&&(i=It.toArray(r)))return void i.forEach((function(e){!It.isUndefined(e)&&t.append(u,n(e))}));e(r,u)}})),r.pop()}else t.append(a,n(o))}(e),t},Ut=Ne,_t=X,Bt=_t.isStandardBrowserEnv()?{write:function(e,t,r,n,o,a){var i=[];i.push(e+"="+encodeURIComponent(t)),_t.isNumber(r)&&i.push("expires="+new Date(r).toGMTString()),_t.isString(n)&&i.push("path="+n),_t.isString(o)&&i.push("domain="+o),!0===a&&i.push("secure"),document.cookie=i.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(){}},Mt=function(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)},Lt=function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e},Vt=function(e,t){return e&&!Mt(t)?Lt(e,t):t},zt=X,Ht=["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=X,Yt=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},Wt=Ne;function Gt(e){Wt.call(this,null==e?"canceled":e,Wt.ERR_CANCELED),this.name="CanceledError"}X.inherits(Gt,Wt,{__CANCEL__:!0});var Jt=Gt,$t=X,Kt=function(e,t,r){var n=r.config.validateStatus;r.status&&n&&!n(r.status)?t(new Ut("Request failed with status code "+r.status,[Ut.ERR_BAD_REQUEST,Ut.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r)):e(r)},Zt=Bt,Xt=te,Qt=Vt,er=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]&&Ht.indexOf(t)>=0)return;o[t]="set-cookie"===t?(o[t]?o[t]:[]).concat([r]):o[t]?o[t]+", "+r:r}})),o):o},tr=Yt,rr=Ue,nr=Ne,or=Jt,ar=function(e){var t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""},ir=function(e){return new Promise((function(t,r){var n,o=e.data,a=e.headers,i=e.responseType;function u(){e.cancelToken&&e.cancelToken.unsubscribe(n),e.signal&&e.signal.removeEventListener("abort",n)}$t.isFormData(o)&&$t.isStandardBrowserEnv()&&delete a["Content-Type"];var l=new XMLHttpRequest;if(e.auth){var s=e.auth.username||"",c=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";a.Authorization="Basic "+btoa(s+":"+c)}var f=Qt(e.baseURL,e.url);function d(){if(l){var n="getAllResponseHeaders"in l?er(l.getAllResponseHeaders()):null,o={data:i&&"text"!==i&&"json"!==i?l.response:l.responseText,status:l.status,statusText:l.statusText,headers:n,config:e,request:l};Kt((function(e){t(e),u()}),(function(e){r(e),u()}),o),l=null}}if(l.open(e.method.toUpperCase(),Xt(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 nr("Request aborted",nr.ECONNABORTED,e,l)),l=null)},l.onerror=function(){r(new nr("Network Error",nr.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||rr;e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),r(new nr(t,n.clarifyTimeoutError?nr.ETIMEDOUT:nr.ECONNABORTED,e,l)),l=null},$t.isStandardBrowserEnv()){var p=(e.withCredentials||tr(f))&&e.xsrfCookieName?Zt.read(e.xsrfCookieName):void 0;p&&(a[e.xsrfHeaderName]=p)}"setRequestHeader"in l&&$t.forEach(a,(function(e,t){void 0===o&&"content-type"===t.toLowerCase()?delete a[t]:l.setRequestHeader(t,e)})),$t.isUndefined(e.withCredentials)||(l.withCredentials=!!e.withCredentials),i&&"json"!==i&&(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 or: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=ar(f);h&&-1===["http","https","file"].indexOf(h)?r(new nr("Unsupported protocol "+h+":",nr.ERR_BAD_REQUEST,e)):l.send(o)}))},ur=X,lr=function(e,t){Fe.forEach(e,(function(r,n){n!==t&&n.toUpperCase()===t.toUpperCase()&&(e[t]=r,delete e[n])}))},sr=Ne,cr=Nt,fr={"Content-Type":"application/x-www-form-urlencoded"};function dr(e,t){!ur.isUndefined(e)&&ur.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}var pr,hr={transitional:Ue,adapter:(("undefined"!=typeof XMLHttpRequest||"[object process]"===Object.prototype.toString.call(Re))&&(pr=ir),pr),transformRequest:[function(e,t){if(lr(t,"Accept"),lr(t,"Content-Type"),ur.isFormData(e)||ur.isArrayBuffer(e)||ur.isBuffer(e)||ur.isStream(e)||ur.isFile(e)||ur.isBlob(e))return e;if(ur.isArrayBufferView(e))return e.buffer;if(ur.isURLSearchParams(e))return dr(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString();var r,n=ur.isObject(e),o=t&&t["Content-Type"];if((r=ur.isFileList(e))||n&&"multipart/form-data"===o){var a=this.env&&this.env.FormData;return cr(r?{"files[]":e}:e,a&&new a)}return n||"application/json"===o?(dr(t,"application/json"),function(e,t,r){if(ur.isString(e))try{return(t||JSON.parse)(e),ur.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(r||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){var t=this.transitional||hr.transitional,r=t&&t.silentJSONParsing,n=t&&t.forcedJSONParsing,o=!r&&"json"===this.responseType;if(o||n&&ur.isString(e)&&e.length)try{return JSON.parse(e)}catch(e){if(o){if("SyntaxError"===e.name)throw sr.from(e,sr.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, */*"}}};ur.forEach(["delete","get","head"],(function(e){hr.headers[e]={}})),ur.forEach(["post","put","patch"],(function(e){hr.headers[e]=ur.merge(fr)}));var mr=hr,yr=X,gr=mr,vr=function(e){return!(!e||!e.__CANCEL__)},br=X,wr=function(e,t,r){var n=this||gr;return yr.forEach(r,(function(r){e=r.call(n,e,t)})),e},Er=vr,Sr=mr,Tr=Jt;function Or(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Tr}var kr=X,Ar=function(e,t){t=t||{};var r={};function n(e,t){return kr.isPlainObject(e)&&kr.isPlainObject(t)?kr.merge(e,t):kr.isPlainObject(t)?kr.merge({},t):kr.isArray(t)?t.slice():t}function o(r){return kr.isUndefined(t[r])?kr.isUndefined(e[r])?void 0:n(void 0,e[r]):n(e[r],t[r])}function a(e){if(!kr.isUndefined(t[e]))return n(void 0,t[e])}function i(r){return kr.isUndefined(t[r])?kr.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:a,method:a,data:a,baseURL:i,transformRequest:i,transformResponse:i,paramsSerializer:i,timeout:i,timeoutMessage:i,withCredentials:i,adapter:i,responseType:i,xsrfCookieName:i,xsrfHeaderName:i,onUploadProgress:i,onDownloadProgress:i,decompress:i,maxContentLength:i,maxBodyLength:i,beforeRedirect:i,transport:i,httpAgent:i,httpsAgent:i,cancelToken:i,socketPath:i,responseEncoding:i,validateStatus:u};return kr.forEach(Object.keys(e).concat(Object.keys(t)),(function(e){var t=l[e]||o,n=t(e);kr.isUndefined(n)&&t!==u||(r[e]=n)})),r},xr="0.27.2",Cr=xr,Rr=Ne,Fr={};["object","boolean","number","function","string","symbol"].forEach((function(e,t){Fr[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}}));var Pr={};Fr.transitional=function(e,t,r){function n(e,t){return"[Axios v"+Cr+"] Transitional option '"+e+"'"+t+(r?". "+r:"")}return function(r,o,a){if(!1===e)throw new Rr(n(o," has been removed"+(t?" in "+t:"")),Rr.ERR_DEPRECATED);return t&&!Pr[o]&&(Pr[o]=!0,console.warn(n(o," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(r,o,a)}};var jr={assertOptions:function(e,t,r){if("object"!=typeof e)throw new Rr("options must be an object",Rr.ERR_BAD_OPTION_VALUE);for(var n=Object.keys(e),o=n.length;o-- >0;){var a=n[o],i=t[a];if(i){var u=e[a],l=void 0===u||i(u,a,e);if(!0!==l)throw new Rr("option "+a+" must be "+l,Rr.ERR_BAD_OPTION_VALUE)}else if(!0!==r)throw new Rr("Unknown option "+a,Rr.ERR_BAD_OPTION)}},validators:Fr},Dr=X,Ir=te,Nr=oe,Ur=function(e){return Or(e),e.headers=e.headers||{},e.data=wr.call(e,e.data,e.headers,e.transformRequest),e.headers=br.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),br.forEach(["delete","get","head","post","put","patch","common"],(function(t){delete e.headers[t]})),(e.adapter||Sr.adapter)(e).then((function(t){return Or(e),t.data=wr.call(e,t.data,t.headers,e.transformResponse),t}),(function(t){return Er(t)||(Or(e),t&&t.response&&(t.response.data=wr.call(e,t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)}))},_r=Ar,Br=Vt,Mr=jr,Lr=Mr.validators;function Vr(e){this.defaults=e,this.interceptors={request:new Nr,response:new Nr}}Vr.prototype.request=function(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},(t=_r(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&&Mr.assertOptions(r,{silentJSONParsing:Lr.transitional(Lr.boolean),forcedJSONParsing:Lr.transitional(Lr.boolean),clarifyTimeoutError:Lr.transitional(Lr.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 a,i=[];if(this.interceptors.response.forEach((function(e){i.push(e.fulfilled,e.rejected)})),!o){var u=[Ur,void 0];for(Array.prototype.unshift.apply(u,n),u=u.concat(i),a=Promise.resolve(t);u.length;)a=a.then(u.shift(),u.shift());return a}for(var l=t;n.length;){var s=n.shift(),c=n.shift();try{l=s(l)}catch(e){c(e);break}}try{a=Ur(l)}catch(e){return Promise.reject(e)}for(;i.length;)a=a.then(i.shift(),i.shift());return a},Vr.prototype.getUri=function(e){e=_r(this.defaults,e);var t=Br(e.baseURL,e.url);return Ir(t,e.params,e.paramsSerializer)},Dr.forEach(["delete","get","head","options"],(function(e){Vr.prototype[e]=function(t,r){return this.request(_r(r||{},{method:e,url:t,data:(r||{}).data}))}})),Dr.forEach(["post","put","patch"],(function(e){function t(t){return function(r,n,o){return this.request(_r(o||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:r,data:n}))}}Vr.prototype[e]=t(),Vr.prototype[e+"Form"]=t(!0)}));var zr=Vr,Hr=Jt;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 Hr(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 Yr=qr,Wr=X,Gr=X,Jr=D,$r=zr,Kr=Ar;var Zr=function e(t){var r=new $r(t),n=Jr($r.prototype.request,r);return Gr.extend(n,$r.prototype,r),Gr.extend(n,r),n.create=function(r){return e(Kr(t,r))},n}(mr);Zr.Axios=$r,Zr.CanceledError=Jt,Zr.CancelToken=Yr,Zr.isCancel=vr,Zr.VERSION=xr,Zr.toFormData=Nt,Zr.AxiosError=Ne,Zr.Cancel=Zr.CanceledError,Zr.all=function(e){return Promise.all(e)},Zr.spread=function(e){return function(t){return e.apply(null,t)}},Zr.isAxiosError=function(e){return Wr.isObject(e)&&!0===e.isAxiosError},j.exports=Zr,j.exports.default=Zr;var Xr=j.exports,Qr=function(e,t){var r=13===e.toString().length?e/1e3:e;return s.default.unix(r).format(null!=t?t:A)},en=function(e,t){var r=e.clientId,n=e.tableProps,o=void 0===n?{}:n,a=e.classNames,i=void 0===a?{}:a,u=e.uploaderProps,l=void 0===u?{}:u,s=e.isOverwriteDBConfig,c=void 0!==s&&s,f=p(e,["clientId","tableProps","classNames","uploaderProps","isOverwriteDBConfig"]),h=t.clientId,m=t.uiConfig,y=(void 0===m?{}:m).importHistoryTable,g=void 0===y?{}:y,v=p(t,["clientId","uiConfig"]),b=R.tableProps,w=R.uploaderProps,E=R.classNames,S=p(R,["tableProps","uploaderProps","classNames"]);return d(d(d({},S),{clientId:null!=h?h:r,classNames:d(d({},E),i),tableProps:d({},c?d(d(d({},b),g),o):d(d(d({},b),o),g)),uploaderProps:d({},c?d(d(d({},w),v),l):d(d(d({},w),l),v))}),f)},tn=function(t,r){var n,o,a,i,u;if(!Xr.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===(i=null===(a=null==l?void 0:l.data)||void 0===a?void 0:a.error)||void 0===i?void 0:i.message)&&void 0!==u?u:r("SomethingWentWrongTryAgainLater");e.notification.error({message:r("Error"),description:s})}},rn=function(t){"http"===(window.origin||window.location.origin||"").split(":")[0]&&e.notification.error({message:"Error",description:t})},nn=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"}},on={exports:{}};on.exports=function e(t,r,n){var o,a,i=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=i.Blob||i.MozBlob||i.WebKitBlob||d,h=r||"download";if(p=p.call?p.bind(i):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,a=0,i=new Uint8Array(o);a<o;++a)i[a]=n.charCodeAt(a);return new p([i],{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(){i.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 thi