Viewing File: /home/ubuntu/codegamaai-test/rag_drive/DriveData/build/static/js/main.6f0f0b81.js
/*! For license information please see main.6f0f0b81.js.LICENSE.txt */
(()=>{var e={628:(e,t)=>{"use strict";t.A=function(e,t){if(e&&t){var n=Array.isArray(t)?t:t.split(","),r=e.name||"",o=(e.type||"").toLowerCase(),i=o.replace(/\/.*$/,"");return n.some((function(e){var t=e.trim().toLowerCase();return"."===t.charAt(0)?r.toLowerCase().endsWith(t):t.endsWith("/*")?i===t.replace(/\/.*$/,""):o===t}))}return!0}},445:(e,t)=>{"use strict";t.byteLength=function(e){var t=s(e),n=t[0],r=t[1];return 3*(n+r)/4-r},t.toByteArray=function(e){var t,n,i=s(e),a=i[0],l=i[1],c=new o(function(e,t,n){return 3*(t+n)/4-n}(0,a,l)),u=0,f=l>0?a-4:a;for(n=0;n<f;n+=4)t=r[e.charCodeAt(n)]<<18|r[e.charCodeAt(n+1)]<<12|r[e.charCodeAt(n+2)]<<6|r[e.charCodeAt(n+3)],c[u++]=t>>16&255,c[u++]=t>>8&255,c[u++]=255&t;2===l&&(t=r[e.charCodeAt(n)]<<2|r[e.charCodeAt(n+1)]>>4,c[u++]=255&t);1===l&&(t=r[e.charCodeAt(n)]<<10|r[e.charCodeAt(n+1)]<<4|r[e.charCodeAt(n+2)]>>2,c[u++]=t>>8&255,c[u++]=255&t);return c},t.fromByteArray=function(e){for(var t,r=e.length,o=r%3,i=[],a=16383,s=0,c=r-o;s<c;s+=a)i.push(l(e,s,s+a>c?c:s+a));1===o?(t=e[r-1],i.push(n[t>>2]+n[t<<4&63]+"==")):2===o&&(t=(e[r-2]<<8)+e[r-1],i.push(n[t>>10]+n[t>>4&63]+n[t<<2&63]+"="));return i.join("")};for(var n=[],r=[],o="undefined"!==typeof Uint8Array?Uint8Array:Array,i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0;a<64;++a)n[a]=i[a],r[i.charCodeAt(a)]=a;function s(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");return-1===n&&(n=t),[n,n===t?0:4-n%4]}function l(e,t,r){for(var o,i,a=[],s=t;s<r;s+=3)o=(e[s]<<16&16711680)+(e[s+1]<<8&65280)+(255&e[s+2]),a.push(n[(i=o)>>18&63]+n[i>>12&63]+n[i>>6&63]+n[63&i]);return a.join("")}r["-".charCodeAt(0)]=62,r["_".charCodeAt(0)]=63},382:(e,t,n)=>{"use strict";const r=n(445),o=n(900),i="function"===typeof Symbol&&"function"===typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;t.Buffer=l,t.SlowBuffer=function(e){+e!=e&&(e=0);return l.alloc(+e)},t.INSPECT_MAX_BYTES=50;const a=2147483647;function s(e){if(e>a)throw new RangeError('The value "'+e+'" is invalid for option "size"');const t=new Uint8Array(e);return Object.setPrototypeOf(t,l.prototype),t}function l(e,t,n){if("number"===typeof e){if("string"===typeof t)throw new TypeError('The "string" argument must be of type string. Received type number');return f(e)}return c(e,t,n)}function c(e,t,n){if("string"===typeof e)return function(e,t){"string"===typeof t&&""!==t||(t="utf8");if(!l.isEncoding(t))throw new TypeError("Unknown encoding: "+t);const n=0|m(e,t);let r=s(n);const o=r.write(e,t);o!==n&&(r=r.slice(0,o));return r}(e,t);if(ArrayBuffer.isView(e))return function(e){if(Y(e,Uint8Array)){const t=new Uint8Array(e);return p(t.buffer,t.byteOffset,t.byteLength)}return d(e)}(e);if(null==e)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(Y(e,ArrayBuffer)||e&&Y(e.buffer,ArrayBuffer))return p(e,t,n);if("undefined"!==typeof SharedArrayBuffer&&(Y(e,SharedArrayBuffer)||e&&Y(e.buffer,SharedArrayBuffer)))return p(e,t,n);if("number"===typeof e)throw new TypeError('The "value" argument must not be of type number. Received type number');const r=e.valueOf&&e.valueOf();if(null!=r&&r!==e)return l.from(r,t,n);const o=function(e){if(l.isBuffer(e)){const t=0|h(e.length),n=s(t);return 0===n.length||e.copy(n,0,0,t),n}if(void 0!==e.length)return"number"!==typeof e.length||Q(e.length)?s(0):d(e);if("Buffer"===e.type&&Array.isArray(e.data))return d(e.data)}(e);if(o)return o;if("undefined"!==typeof Symbol&&null!=Symbol.toPrimitive&&"function"===typeof e[Symbol.toPrimitive])return l.from(e[Symbol.toPrimitive]("string"),t,n);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function u(e){if("number"!==typeof e)throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function f(e){return u(e),s(e<0?0:0|h(e))}function d(e){const t=e.length<0?0:0|h(e.length),n=s(t);for(let r=0;r<t;r+=1)n[r]=255&e[r];return n}function p(e,t,n){if(t<0||e.byteLength<t)throw new RangeError('"offset" is outside of buffer bounds');if(e.byteLength<t+(n||0))throw new RangeError('"length" is outside of buffer bounds');let r;return r=void 0===t&&void 0===n?new Uint8Array(e):void 0===n?new Uint8Array(e,t):new Uint8Array(e,t,n),Object.setPrototypeOf(r,l.prototype),r}function h(e){if(e>=a)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a.toString(16)+" bytes");return 0|e}function m(e,t){if(l.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||Y(e,ArrayBuffer))return e.byteLength;if("string"!==typeof e)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);const n=e.length,r=arguments.length>2&&!0===arguments[2];if(!r&&0===n)return 0;let o=!1;for(;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":return $(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return K(e).length;default:if(o)return r?-1:$(e).length;t=(""+t).toLowerCase(),o=!0}}function g(e,t,n){let r=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return P(this,t,n);case"utf8":case"utf-8":return O(this,t,n);case"ascii":return N(this,t,n);case"latin1":case"binary":return T(this,t,n);case"base64":return j(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return L(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function y(e,t,n){const r=e[t];e[t]=e[n],e[n]=r}function v(e,t,n,r,o){if(0===e.length)return-1;if("string"===typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),Q(n=+n)&&(n=o?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(o)return-1;n=e.length-1}else if(n<0){if(!o)return-1;n=0}if("string"===typeof t&&(t=l.from(t,r)),l.isBuffer(t))return 0===t.length?-1:b(e,t,n,r,o);if("number"===typeof t)return t&=255,"function"===typeof Uint8Array.prototype.indexOf?o?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):b(e,[t],n,r,o);throw new TypeError("val must be string, number or Buffer")}function b(e,t,n,r,o){let i,a=1,s=e.length,l=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;a=2,s/=2,l/=2,n/=2}function c(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(o){let r=-1;for(i=n;i<s;i++)if(c(e,i)===c(t,-1===r?0:i-r)){if(-1===r&&(r=i),i-r+1===l)return r*a}else-1!==r&&(i-=i-r),r=-1}else for(n+l>s&&(n=s-l),i=n;i>=0;i--){let n=!0;for(let r=0;r<l;r++)if(c(e,i+r)!==c(t,r)){n=!1;break}if(n)return i}return-1}function w(e,t,n,r){n=Number(n)||0;const o=e.length-n;r?(r=Number(r))>o&&(r=o):r=o;const i=t.length;let a;for(r>i/2&&(r=i/2),a=0;a<r;++a){const r=parseInt(t.substr(2*a,2),16);if(Q(r))return a;e[n+a]=r}return a}function x(e,t,n,r){return G($(t,e.length-n),e,n,r)}function E(e,t,n,r){return G(function(e){const t=[];for(let n=0;n<e.length;++n)t.push(255&e.charCodeAt(n));return t}(t),e,n,r)}function S(e,t,n,r){return G(K(t),e,n,r)}function k(e,t,n,r){return G(function(e,t){let n,r,o;const i=[];for(let a=0;a<e.length&&!((t-=2)<0);++a)n=e.charCodeAt(a),r=n>>8,o=n%256,i.push(o),i.push(r);return i}(t,e.length-n),e,n,r)}function j(e,t,n){return 0===t&&n===e.length?r.fromByteArray(e):r.fromByteArray(e.slice(t,n))}function O(e,t,n){n=Math.min(e.length,n);const r=[];let o=t;for(;o<n;){const t=e[o];let i=null,a=t>239?4:t>223?3:t>191?2:1;if(o+a<=n){let n,r,s,l;switch(a){case 1:t<128&&(i=t);break;case 2:n=e[o+1],128===(192&n)&&(l=(31&t)<<6|63&n,l>127&&(i=l));break;case 3:n=e[o+1],r=e[o+2],128===(192&n)&&128===(192&r)&&(l=(15&t)<<12|(63&n)<<6|63&r,l>2047&&(l<55296||l>57343)&&(i=l));break;case 4:n=e[o+1],r=e[o+2],s=e[o+3],128===(192&n)&&128===(192&r)&&128===(192&s)&&(l=(15&t)<<18|(63&n)<<12|(63&r)<<6|63&s,l>65535&&l<1114112&&(i=l))}}null===i?(i=65533,a=1):i>65535&&(i-=65536,r.push(i>>>10&1023|55296),i=56320|1023&i),r.push(i),o+=a}return function(e){const t=e.length;if(t<=C)return String.fromCharCode.apply(String,e);let n="",r=0;for(;r<t;)n+=String.fromCharCode.apply(String,e.slice(r,r+=C));return n}(r)}t.kMaxLength=a,l.TYPED_ARRAY_SUPPORT=function(){try{const e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),42===e.foo()}catch(e){return!1}}(),l.TYPED_ARRAY_SUPPORT||"undefined"===typeof console||"function"!==typeof console.error||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(l.prototype,"parent",{enumerable:!0,get:function(){if(l.isBuffer(this))return this.buffer}}),Object.defineProperty(l.prototype,"offset",{enumerable:!0,get:function(){if(l.isBuffer(this))return this.byteOffset}}),l.poolSize=8192,l.from=function(e,t,n){return c(e,t,n)},Object.setPrototypeOf(l.prototype,Uint8Array.prototype),Object.setPrototypeOf(l,Uint8Array),l.alloc=function(e,t,n){return function(e,t,n){return u(e),e<=0?s(e):void 0!==t?"string"===typeof n?s(e).fill(t,n):s(e).fill(t):s(e)}(e,t,n)},l.allocUnsafe=function(e){return f(e)},l.allocUnsafeSlow=function(e){return f(e)},l.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==l.prototype},l.compare=function(e,t){if(Y(e,Uint8Array)&&(e=l.from(e,e.offset,e.byteLength)),Y(t,Uint8Array)&&(t=l.from(t,t.offset,t.byteLength)),!l.isBuffer(e)||!l.isBuffer(t))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;let n=e.length,r=t.length;for(let o=0,i=Math.min(n,r);o<i;++o)if(e[o]!==t[o]){n=e[o],r=t[o];break}return n<r?-1:r<n?1:0},l.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}},l.concat=function(e,t){if(!Array.isArray(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return l.alloc(0);let n;if(void 0===t)for(t=0,n=0;n<e.length;++n)t+=e[n].length;const r=l.allocUnsafe(t);let o=0;for(n=0;n<e.length;++n){let t=e[n];if(Y(t,Uint8Array))o+t.length>r.length?(l.isBuffer(t)||(t=l.from(t)),t.copy(r,o)):Uint8Array.prototype.set.call(r,t,o);else{if(!l.isBuffer(t))throw new TypeError('"list" argument must be an Array of Buffers');t.copy(r,o)}o+=t.length}return r},l.byteLength=m,l.prototype._isBuffer=!0,l.prototype.swap16=function(){const e=this.length;if(e%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let t=0;t<e;t+=2)y(this,t,t+1);return this},l.prototype.swap32=function(){const e=this.length;if(e%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let t=0;t<e;t+=4)y(this,t,t+3),y(this,t+1,t+2);return this},l.prototype.swap64=function(){const e=this.length;if(e%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let t=0;t<e;t+=8)y(this,t,t+7),y(this,t+1,t+6),y(this,t+2,t+5),y(this,t+3,t+4);return this},l.prototype.toString=function(){const e=this.length;return 0===e?"":0===arguments.length?O(this,0,e):g.apply(this,arguments)},l.prototype.toLocaleString=l.prototype.toString,l.prototype.equals=function(e){if(!l.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===l.compare(this,e)},l.prototype.inspect=function(){let e="";const n=t.INSPECT_MAX_BYTES;return e=this.toString("hex",0,n).replace(/(.{2})/g,"$1 ").trim(),this.length>n&&(e+=" ... "),"<Buffer "+e+">"},i&&(l.prototype[i]=l.prototype.inspect),l.prototype.compare=function(e,t,n,r,o){if(Y(e,Uint8Array)&&(e=l.from(e,e.offset,e.byteLength)),!l.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===o&&(o=this.length),t<0||n>e.length||r<0||o>this.length)throw new RangeError("out of range index");if(r>=o&&t>=n)return 0;if(r>=o)return-1;if(t>=n)return 1;if(this===e)return 0;let i=(o>>>=0)-(r>>>=0),a=(n>>>=0)-(t>>>=0);const s=Math.min(i,a),c=this.slice(r,o),u=e.slice(t,n);for(let l=0;l<s;++l)if(c[l]!==u[l]){i=c[l],a=u[l];break}return i<a?-1:a<i?1:0},l.prototype.includes=function(e,t,n){return-1!==this.indexOf(e,t,n)},l.prototype.indexOf=function(e,t,n){return v(this,e,t,n,!0)},l.prototype.lastIndexOf=function(e,t,n){return v(this,e,t,n,!1)},l.prototype.write=function(e,t,n,r){if(void 0===t)r="utf8",n=this.length,t=0;else if(void 0===n&&"string"===typeof t)r=t,n=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t>>>=0,isFinite(n)?(n>>>=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}const o=this.length-t;if((void 0===n||n>o)&&(n=o),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");let i=!1;for(;;)switch(r){case"hex":return w(this,e,t,n);case"utf8":case"utf-8":return x(this,e,t,n);case"ascii":case"latin1":case"binary":return E(this,e,t,n);case"base64":return S(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return k(this,e,t,n);default:if(i)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),i=!0}},l.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};const C=4096;function N(e,t,n){let r="";n=Math.min(e.length,n);for(let o=t;o<n;++o)r+=String.fromCharCode(127&e[o]);return r}function T(e,t,n){let r="";n=Math.min(e.length,n);for(let o=t;o<n;++o)r+=String.fromCharCode(e[o]);return r}function P(e,t,n){const r=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>r)&&(n=r);let o="";for(let i=t;i<n;++i)o+=X[e[i]];return o}function L(e,t,n){const r=e.slice(t,n);let o="";for(let i=0;i<r.length-1;i+=2)o+=String.fromCharCode(r[i]+256*r[i+1]);return o}function R(e,t,n){if(e%1!==0||e<0)throw new RangeError("offset is not uint");if(e+t>n)throw new RangeError("Trying to access beyond buffer length")}function A(e,t,n,r,o,i){if(!l.isBuffer(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(n+r>e.length)throw new RangeError("Index out of range")}function _(e,t,n,r,o){H(t,r,o,e,n,7);let i=Number(t&BigInt(4294967295));e[n++]=i,i>>=8,e[n++]=i,i>>=8,e[n++]=i,i>>=8,e[n++]=i;let a=Number(t>>BigInt(32)&BigInt(4294967295));return e[n++]=a,a>>=8,e[n++]=a,a>>=8,e[n++]=a,a>>=8,e[n++]=a,n}function I(e,t,n,r,o){H(t,r,o,e,n,7);let i=Number(t&BigInt(4294967295));e[n+7]=i,i>>=8,e[n+6]=i,i>>=8,e[n+5]=i,i>>=8,e[n+4]=i;let a=Number(t>>BigInt(32)&BigInt(4294967295));return e[n+3]=a,a>>=8,e[n+2]=a,a>>=8,e[n+1]=a,a>>=8,e[n]=a,n+8}function M(e,t,n,r,o,i){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function D(e,t,n,r,i){return t=+t,n>>>=0,i||M(e,0,n,4),o.write(e,t,n,r,23,4),n+4}function F(e,t,n,r,i){return t=+t,n>>>=0,i||M(e,0,n,8),o.write(e,t,n,r,52,8),n+8}l.prototype.slice=function(e,t){const n=this.length;(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);const r=this.subarray(e,t);return Object.setPrototypeOf(r,l.prototype),r},l.prototype.readUintLE=l.prototype.readUIntLE=function(e,t,n){e>>>=0,t>>>=0,n||R(e,t,this.length);let r=this[e],o=1,i=0;for(;++i<t&&(o*=256);)r+=this[e+i]*o;return r},l.prototype.readUintBE=l.prototype.readUIntBE=function(e,t,n){e>>>=0,t>>>=0,n||R(e,t,this.length);let r=this[e+--t],o=1;for(;t>0&&(o*=256);)r+=this[e+--t]*o;return r},l.prototype.readUint8=l.prototype.readUInt8=function(e,t){return e>>>=0,t||R(e,1,this.length),this[e]},l.prototype.readUint16LE=l.prototype.readUInt16LE=function(e,t){return e>>>=0,t||R(e,2,this.length),this[e]|this[e+1]<<8},l.prototype.readUint16BE=l.prototype.readUInt16BE=function(e,t){return e>>>=0,t||R(e,2,this.length),this[e]<<8|this[e+1]},l.prototype.readUint32LE=l.prototype.readUInt32LE=function(e,t){return e>>>=0,t||R(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},l.prototype.readUint32BE=l.prototype.readUInt32BE=function(e,t){return e>>>=0,t||R(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},l.prototype.readBigUInt64LE=J((function(e){W(e>>>=0,"offset");const t=this[e],n=this[e+7];void 0!==t&&void 0!==n||V(e,this.length-8);const r=t+256*this[++e]+65536*this[++e]+this[++e]*2**24,o=this[++e]+256*this[++e]+65536*this[++e]+n*2**24;return BigInt(r)+(BigInt(o)<<BigInt(32))})),l.prototype.readBigUInt64BE=J((function(e){W(e>>>=0,"offset");const t=this[e],n=this[e+7];void 0!==t&&void 0!==n||V(e,this.length-8);const r=t*2**24+65536*this[++e]+256*this[++e]+this[++e],o=this[++e]*2**24+65536*this[++e]+256*this[++e]+n;return(BigInt(r)<<BigInt(32))+BigInt(o)})),l.prototype.readIntLE=function(e,t,n){e>>>=0,t>>>=0,n||R(e,t,this.length);let r=this[e],o=1,i=0;for(;++i<t&&(o*=256);)r+=this[e+i]*o;return o*=128,r>=o&&(r-=Math.pow(2,8*t)),r},l.prototype.readIntBE=function(e,t,n){e>>>=0,t>>>=0,n||R(e,t,this.length);let r=t,o=1,i=this[e+--r];for(;r>0&&(o*=256);)i+=this[e+--r]*o;return o*=128,i>=o&&(i-=Math.pow(2,8*t)),i},l.prototype.readInt8=function(e,t){return e>>>=0,t||R(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},l.prototype.readInt16LE=function(e,t){e>>>=0,t||R(e,2,this.length);const n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},l.prototype.readInt16BE=function(e,t){e>>>=0,t||R(e,2,this.length);const n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},l.prototype.readInt32LE=function(e,t){return e>>>=0,t||R(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},l.prototype.readInt32BE=function(e,t){return e>>>=0,t||R(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},l.prototype.readBigInt64LE=J((function(e){W(e>>>=0,"offset");const t=this[e],n=this[e+7];void 0!==t&&void 0!==n||V(e,this.length-8);const r=this[e+4]+256*this[e+5]+65536*this[e+6]+(n<<24);return(BigInt(r)<<BigInt(32))+BigInt(t+256*this[++e]+65536*this[++e]+this[++e]*2**24)})),l.prototype.readBigInt64BE=J((function(e){W(e>>>=0,"offset");const t=this[e],n=this[e+7];void 0!==t&&void 0!==n||V(e,this.length-8);const r=(t<<24)+65536*this[++e]+256*this[++e]+this[++e];return(BigInt(r)<<BigInt(32))+BigInt(this[++e]*2**24+65536*this[++e]+256*this[++e]+n)})),l.prototype.readFloatLE=function(e,t){return e>>>=0,t||R(e,4,this.length),o.read(this,e,!0,23,4)},l.prototype.readFloatBE=function(e,t){return e>>>=0,t||R(e,4,this.length),o.read(this,e,!1,23,4)},l.prototype.readDoubleLE=function(e,t){return e>>>=0,t||R(e,8,this.length),o.read(this,e,!0,52,8)},l.prototype.readDoubleBE=function(e,t){return e>>>=0,t||R(e,8,this.length),o.read(this,e,!1,52,8)},l.prototype.writeUintLE=l.prototype.writeUIntLE=function(e,t,n,r){if(e=+e,t>>>=0,n>>>=0,!r){A(this,e,t,n,Math.pow(2,8*n)-1,0)}let o=1,i=0;for(this[t]=255&e;++i<n&&(o*=256);)this[t+i]=e/o&255;return t+n},l.prototype.writeUintBE=l.prototype.writeUIntBE=function(e,t,n,r){if(e=+e,t>>>=0,n>>>=0,!r){A(this,e,t,n,Math.pow(2,8*n)-1,0)}let o=n-1,i=1;for(this[t+o]=255&e;--o>=0&&(i*=256);)this[t+o]=e/i&255;return t+n},l.prototype.writeUint8=l.prototype.writeUInt8=function(e,t,n){return e=+e,t>>>=0,n||A(this,e,t,1,255,0),this[t]=255&e,t+1},l.prototype.writeUint16LE=l.prototype.writeUInt16LE=function(e,t,n){return e=+e,t>>>=0,n||A(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},l.prototype.writeUint16BE=l.prototype.writeUInt16BE=function(e,t,n){return e=+e,t>>>=0,n||A(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},l.prototype.writeUint32LE=l.prototype.writeUInt32LE=function(e,t,n){return e=+e,t>>>=0,n||A(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},l.prototype.writeUint32BE=l.prototype.writeUInt32BE=function(e,t,n){return e=+e,t>>>=0,n||A(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},l.prototype.writeBigUInt64LE=J((function(e){return _(this,e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,BigInt(0),BigInt("0xffffffffffffffff"))})),l.prototype.writeBigUInt64BE=J((function(e){return I(this,e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,BigInt(0),BigInt("0xffffffffffffffff"))})),l.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t>>>=0,!r){const r=Math.pow(2,8*n-1);A(this,e,t,n,r-1,-r)}let o=0,i=1,a=0;for(this[t]=255&e;++o<n&&(i*=256);)e<0&&0===a&&0!==this[t+o-1]&&(a=1),this[t+o]=(e/i|0)-a&255;return t+n},l.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t>>>=0,!r){const r=Math.pow(2,8*n-1);A(this,e,t,n,r-1,-r)}let o=n-1,i=1,a=0;for(this[t+o]=255&e;--o>=0&&(i*=256);)e<0&&0===a&&0!==this[t+o+1]&&(a=1),this[t+o]=(e/i|0)-a&255;return t+n},l.prototype.writeInt8=function(e,t,n){return e=+e,t>>>=0,n||A(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},l.prototype.writeInt16LE=function(e,t,n){return e=+e,t>>>=0,n||A(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},l.prototype.writeInt16BE=function(e,t,n){return e=+e,t>>>=0,n||A(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},l.prototype.writeInt32LE=function(e,t,n){return e=+e,t>>>=0,n||A(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},l.prototype.writeInt32BE=function(e,t,n){return e=+e,t>>>=0,n||A(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},l.prototype.writeBigInt64LE=J((function(e){return _(this,e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),l.prototype.writeBigInt64BE=J((function(e){return I(this,e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),l.prototype.writeFloatLE=function(e,t,n){return D(this,e,t,!0,n)},l.prototype.writeFloatBE=function(e,t,n){return D(this,e,t,!1,n)},l.prototype.writeDoubleLE=function(e,t,n){return F(this,e,t,!0,n)},l.prototype.writeDoubleBE=function(e,t,n){return F(this,e,t,!1,n)},l.prototype.copy=function(e,t,n,r){if(!l.isBuffer(e))throw new TypeError("argument should be a Buffer");if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r<n&&(r=n),r===n)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t<r-n&&(r=e.length-t+n);const o=r-n;return this===e&&"function"===typeof Uint8Array.prototype.copyWithin?this.copyWithin(t,n,r):Uint8Array.prototype.set.call(e,this.subarray(n,r),t),o},l.prototype.fill=function(e,t,n,r){if("string"===typeof e){if("string"===typeof t?(r=t,t=0,n=this.length):"string"===typeof n&&(r=n,n=this.length),void 0!==r&&"string"!==typeof r)throw new TypeError("encoding must be a string");if("string"===typeof r&&!l.isEncoding(r))throw new TypeError("Unknown encoding: "+r);if(1===e.length){const t=e.charCodeAt(0);("utf8"===r&&t<128||"latin1"===r)&&(e=t)}}else"number"===typeof e?e&=255:"boolean"===typeof e&&(e=Number(e));if(t<0||this.length<t||this.length<n)throw new RangeError("Out of range index");if(n<=t)return this;let o;if(t>>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"===typeof e)for(o=t;o<n;++o)this[o]=e;else{const i=l.isBuffer(e)?e:l.from(e,r),a=i.length;if(0===a)throw new TypeError('The value "'+e+'" is invalid for argument "value"');for(o=0;o<n-t;++o)this[o+t]=i[o%a]}return this};const B={};function z(e,t,n){B[e]=class extends n{constructor(){super(),Object.defineProperty(this,"message",{value:t.apply(this,arguments),writable:!0,configurable:!0}),this.name="".concat(this.name," [").concat(e,"]"),this.stack,delete this.name}get code(){return e}set code(e){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:e,writable:!0})}toString(){return"".concat(this.name," [").concat(e,"]: ").concat(this.message)}}}function U(e){let t="",n=e.length;const r="-"===e[0]?1:0;for(;n>=r+4;n-=3)t="_".concat(e.slice(n-3,n)).concat(t);return"".concat(e.slice(0,n)).concat(t)}function H(e,t,n,r,o,i){if(e>n||e<t){const r="bigint"===typeof t?"n":"";let o;throw o=i>3?0===t||t===BigInt(0)?">= 0".concat(r," and < 2").concat(r," ** ").concat(8*(i+1)).concat(r):">= -(2".concat(r," ** ").concat(8*(i+1)-1).concat(r,") and < 2 ** ")+"".concat(8*(i+1)-1).concat(r):">= ".concat(t).concat(r," and <= ").concat(n).concat(r),new B.ERR_OUT_OF_RANGE("value",o,e)}!function(e,t,n){W(t,"offset"),void 0!==e[t]&&void 0!==e[t+n]||V(t,e.length-(n+1))}(r,o,i)}function W(e,t){if("number"!==typeof e)throw new B.ERR_INVALID_ARG_TYPE(t,"number",e)}function V(e,t,n){if(Math.floor(e)!==e)throw W(e,n),new B.ERR_OUT_OF_RANGE(n||"offset","an integer",e);if(t<0)throw new B.ERR_BUFFER_OUT_OF_BOUNDS;throw new B.ERR_OUT_OF_RANGE(n||"offset",">= ".concat(n?1:0," and <= ").concat(t),e)}z("ERR_BUFFER_OUT_OF_BOUNDS",(function(e){return e?"".concat(e," is outside of buffer bounds"):"Attempt to access memory outside buffer bounds"}),RangeError),z("ERR_INVALID_ARG_TYPE",(function(e,t){return'The "'.concat(e,'" argument must be of type number. Received type ').concat(typeof t)}),TypeError),z("ERR_OUT_OF_RANGE",(function(e,t,n){let r='The value of "'.concat(e,'" is out of range.'),o=n;return Number.isInteger(n)&&Math.abs(n)>2**32?o=U(String(n)):"bigint"===typeof n&&(o=String(n),(n>BigInt(2)**BigInt(32)||n<-(BigInt(2)**BigInt(32)))&&(o=U(o)),o+="n"),r+=" It must be ".concat(t,". Received ").concat(o),r}),RangeError);const q=/[^+/0-9A-Za-z-_]/g;function $(e,t){let n;t=t||1/0;const r=e.length;let o=null;const i=[];for(let a=0;a<r;++a){if(n=e.charCodeAt(a),n>55295&&n<57344){if(!o){if(n>56319){(t-=3)>-1&&i.push(239,191,189);continue}if(a+1===r){(t-=3)>-1&&i.push(239,191,189);continue}o=n;continue}if(n<56320){(t-=3)>-1&&i.push(239,191,189),o=n;continue}n=65536+(o-55296<<10|n-56320)}else o&&(t-=3)>-1&&i.push(239,191,189);if(o=null,n<128){if((t-=1)<0)break;i.push(n)}else if(n<2048){if((t-=2)<0)break;i.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;i.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;i.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return i}function K(e){return r.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(q,"")).length<2)return"";for(;e.length%4!==0;)e+="=";return e}(e))}function G(e,t,n,r){let o;for(o=0;o<r&&!(o+n>=t.length||o>=e.length);++o)t[o+n]=e[o];return o}function Y(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}function Q(e){return e!==e}const X=function(){const e="0123456789abcdef",t=new Array(256);for(let n=0;n<16;++n){const r=16*n;for(let o=0;o<16;++o)t[r+o]=e[n]+e[o]}return t}();function J(e){return"undefined"===typeof BigInt?Z:e}function Z(){throw new Error("BigInt not supported")}},562:e=>{e.exports=function e(t){return Object.freeze(t),Object.getOwnPropertyNames(t).forEach((function(n){!t.hasOwnProperty(n)||null===t[n]||"object"!==typeof t[n]&&"function"!==typeof t[n]||Object.isFrozen(t[n])||e(t[n])})),t}},789:e=>{"use strict";var t=function(e){return function(e){return!!e&&"object"===typeof e}(e)&&!function(e){var t=Object.prototype.toString.call(e);return"[object RegExp]"===t||"[object Date]"===t||function(e){return e.$$typeof===n}(e)}(e)};var n="function"===typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function r(e,t){return!1!==t.clone&&t.isMergeableObject(e)?l((n=e,Array.isArray(n)?[]:{}),e,t):e;var n}function o(e,t,n){return e.concat(t).map((function(e){return r(e,n)}))}function i(e){return Object.keys(e).concat(function(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter((function(t){return Object.propertyIsEnumerable.call(e,t)})):[]}(e))}function a(e,t){try{return t in e}catch(n){return!1}}function s(e,t,n){var o={};return n.isMergeableObject(e)&&i(e).forEach((function(t){o[t]=r(e[t],n)})),i(t).forEach((function(i){(function(e,t){return a(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))})(e,i)||(a(e,i)&&n.isMergeableObject(t[i])?o[i]=function(e,t){if(!t.customMerge)return l;var n=t.customMerge(e);return"function"===typeof n?n:l}(i,n)(e[i],t[i],n):o[i]=r(t[i],n))})),o}function l(e,n,i){(i=i||{}).arrayMerge=i.arrayMerge||o,i.isMergeableObject=i.isMergeableObject||t,i.cloneUnlessOtherwiseSpecified=r;var a=Array.isArray(n);return a===Array.isArray(e)?a?i.arrayMerge(e,n,i):s(e,n,i):r(n,i)}l.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce((function(e,n){return l(e,n,t)}),{})};var c=l;e.exports=c},219:(e,t,n)=>{"use strict";var r=n(763),o={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},i={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};function l(e){return r.isMemo(e)?a:s[e.$$typeof]||o}s[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[r.Memo]=a;var c=Object.defineProperty,u=Object.getOwnPropertyNames,f=Object.getOwnPropertySymbols,d=Object.getOwnPropertyDescriptor,p=Object.getPrototypeOf,h=Object.prototype;e.exports=function e(t,n,r){if("string"!==typeof n){if(h){var o=p(n);o&&o!==h&&e(t,o,r)}var a=u(n);f&&(a=a.concat(f(n)));for(var s=l(t),m=l(n),g=0;g<a.length;++g){var y=a[g];if(!i[y]&&(!r||!r[y])&&(!m||!m[y])&&(!s||!s[y])){var v=d(n,y);try{c(t,y,v)}catch(b){}}}}return t}},983:(e,t)=>{"use strict";var n="function"===typeof Symbol&&Symbol.for,r=n?Symbol.for("react.element"):60103,o=n?Symbol.for("react.portal"):60106,i=n?Symbol.for("react.fragment"):60107,a=n?Symbol.for("react.strict_mode"):60108,s=n?Symbol.for("react.profiler"):60114,l=n?Symbol.for("react.provider"):60109,c=n?Symbol.for("react.context"):60110,u=n?Symbol.for("react.async_mode"):60111,f=n?Symbol.for("react.concurrent_mode"):60111,d=n?Symbol.for("react.forward_ref"):60112,p=n?Symbol.for("react.suspense"):60113,h=n?Symbol.for("react.suspense_list"):60120,m=n?Symbol.for("react.memo"):60115,g=n?Symbol.for("react.lazy"):60116,y=n?Symbol.for("react.block"):60121,v=n?Symbol.for("react.fundamental"):60117,b=n?Symbol.for("react.responder"):60118,w=n?Symbol.for("react.scope"):60119;function x(e){if("object"===typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case u:case f:case i:case s:case a:case p:return e;default:switch(e=e&&e.$$typeof){case c:case d:case g:case m:case l:return e;default:return t}}case o:return t}}}function E(e){return x(e)===f}t.AsyncMode=u,t.ConcurrentMode=f,t.ContextConsumer=c,t.ContextProvider=l,t.Element=r,t.ForwardRef=d,t.Fragment=i,t.Lazy=g,t.Memo=m,t.Portal=o,t.Profiler=s,t.StrictMode=a,t.Suspense=p,t.isAsyncMode=function(e){return E(e)||x(e)===u},t.isConcurrentMode=E,t.isContextConsumer=function(e){return x(e)===c},t.isContextProvider=function(e){return x(e)===l},t.isElement=function(e){return"object"===typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return x(e)===d},t.isFragment=function(e){return x(e)===i},t.isLazy=function(e){return x(e)===g},t.isMemo=function(e){return x(e)===m},t.isPortal=function(e){return x(e)===o},t.isProfiler=function(e){return x(e)===s},t.isStrictMode=function(e){return x(e)===a},t.isSuspense=function(e){return x(e)===p},t.isValidElementType=function(e){return"string"===typeof e||"function"===typeof e||e===i||e===f||e===s||e===a||e===p||e===h||"object"===typeof e&&null!==e&&(e.$$typeof===g||e.$$typeof===m||e.$$typeof===l||e.$$typeof===c||e.$$typeof===d||e.$$typeof===v||e.$$typeof===b||e.$$typeof===w||e.$$typeof===y)},t.typeOf=x},763:(e,t,n)=>{"use strict";e.exports=n(983)},900:(e,t)=>{t.read=function(e,t,n,r,o){var i,a,s=8*o-r-1,l=(1<<s)-1,c=l>>1,u=-7,f=n?o-1:0,d=n?-1:1,p=e[t+f];for(f+=d,i=p&(1<<-u)-1,p>>=-u,u+=s;u>0;i=256*i+e[t+f],f+=d,u-=8);for(a=i&(1<<-u)-1,i>>=-u,u+=r;u>0;a=256*a+e[t+f],f+=d,u-=8);if(0===i)i=1-c;else{if(i===l)return a?NaN:1/0*(p?-1:1);a+=Math.pow(2,r),i-=c}return(p?-1:1)*a*Math.pow(2,i-r)},t.write=function(e,t,n,r,o,i){var a,s,l,c=8*i-o-1,u=(1<<c)-1,f=u>>1,d=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,p=r?0:i-1,h=r?1:-1,m=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,a=u):(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>=u?(s=0,a=u):a+f>=1?(s=(t*l-1)*Math.pow(2,o),a+=f):(s=t*Math.pow(2,f-1)*Math.pow(2,o),a=0));o>=8;e[n+p]=255&s,p+=h,s/=256,o-=8);for(a=a<<o|s,c+=o;c>0;e[n+p]=255&a,p+=h,a/=256,c-=8);e[n+p-h]|=128*m}},740:e=>{"use strict";e.exports=function(e,t,n,r,o,i,a,s){if(!e){var l;if(void 0===t)l=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var c=[n,r,o,i,a,s],u=0;(l=new Error(t.replace(/%s/g,(function(){return c[u++]})))).name="Invariant Violation"}throw l.framesToPop=1,l}}},123:e=>{"use strict";var t=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(o){return!1}}()?Object.assign:function(e,o){for(var i,a,s=function(e){if(null===e||void 0===e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),l=1;l<arguments.length;l++){for(var c in i=Object(arguments[l]))n.call(i,c)&&(s[c]=i[c]);if(t){a=t(i);for(var u=0;u<a.length;u++)r.call(i,a[u])&&(s[a[u]]=i[a[u]])}}return s}},197:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return(0,i.default)((function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];var o=null;return t.forEach((function(e){if(null==o){var t=e.apply(void 0,n);null!=t&&(o=t)}})),o}))};var r,o=n(534),i=(r=o)&&r.__esModule?r:{default:r};e.exports=t.default},534:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){function t(t,n,r,o,i,a){var s=o||"<<anonymous>>",l=a||r;if(null==n[r])return t?new Error("Required "+i+" `"+l+"` was not specified in `"+s+"`."):null;for(var c=arguments.length,u=Array(c>6?c-6:0),f=6;f<c;f++)u[f-6]=arguments[f];return e.apply(void 0,[n,r,s,i,l].concat(u))}var n=t.bind(null,!1);return n.isRequired=t.bind(null,!0),n},e.exports=t.default},497:(e,t,n)=>{"use strict";var r=n(218);function o(){}function i(){}i.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,i,a){if(a!==r){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:o};return n.PropTypes=n,n}},173:(e,t,n)=>{e.exports=n(497)()},218:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},838:(e,t,n)=>{"use strict";var r=65536,o=4294967295;var i=n(966).Buffer,a=n.g.crypto||n.g.msCrypto;a&&a.getRandomValues?e.exports=function(e,t){if(e>o)throw new RangeError("requested too many random bytes");var n=i.allocUnsafe(e);if(e>0)if(e>r)for(var s=0;s<e;s+=r)a.getRandomValues(n.slice(s,s+r));else a.getRandomValues(n);if("function"===typeof t)return process.nextTick((function(){t(null,n)}));return n}:e.exports=function(){throw new Error("Secure random number generation is not supported by this browser.\nUse Chrome, Firefox or Internet Explorer 11")}},730:(e,t,n)=>{"use strict";var r=n(43),o=n(853);function i(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var a=new Set,s={};function l(e,t){c(e,t),c(e+"Capture",t)}function c(e,t){for(s[e]=t,e=0;e<t.length;e++)a.add(t[e])}var u=!("undefined"===typeof window||"undefined"===typeof window.document||"undefined"===typeof window.document.createElement),f=Object.prototype.hasOwnProperty,d=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,p={},h={};function m(e,t,n,r,o,i,a){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=a}var g={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){g[e]=new m(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];g[t]=new m(t,1,!1,e[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){g[e]=new m(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){g[e]=new m(e,2,!1,e,null,!1,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(e){g[e]=new m(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){g[e]=new m(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){g[e]=new m(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){g[e]=new m(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){g[e]=new m(e,5,!1,e.toLowerCase(),null,!1,!1)}));var y=/[\-:]([a-z])/g;function v(e){return e[1].toUpperCase()}function b(e,t,n,r){var o=g.hasOwnProperty(t)?g[t]:null;(null!==o?0!==o.type:r||!(2<t.length)||"o"!==t[0]&&"O"!==t[0]||"n"!==t[1]&&"N"!==t[1])&&(function(e,t,n,r){if(null===t||"undefined"===typeof t||function(e,t,n,r){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!r&&(null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,n,r))return!0;if(r)return!1;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,n,o,r)&&(n=null),r||null===o?function(e){return!!f.call(h,e)||!f.call(p,e)&&(d.test(e)?h[e]=!0:(p[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):o.mustUseProperty?e[o.propertyName]=null===n?3!==o.type&&"":n:(t=o.attributeName,r=o.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(o=o.type)||4===o&&!0===n?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(e){var t=e.replace(y,v);g[t]=new m(t,1,!1,e,null,!1,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(y,v);g[t]=new m(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(y,v);g[t]=new m(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){g[e]=new m(e,1,!1,e.toLowerCase(),null,!1,!1)})),g.xlinkHref=new m("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){g[e]=new m(e,1,!1,e.toLowerCase(),null,!0,!0)}));var w=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,x=Symbol.for("react.element"),E=Symbol.for("react.portal"),S=Symbol.for("react.fragment"),k=Symbol.for("react.strict_mode"),j=Symbol.for("react.profiler"),O=Symbol.for("react.provider"),C=Symbol.for("react.context"),N=Symbol.for("react.forward_ref"),T=Symbol.for("react.suspense"),P=Symbol.for("react.suspense_list"),L=Symbol.for("react.memo"),R=Symbol.for("react.lazy");Symbol.for("react.scope"),Symbol.for("react.debug_trace_mode");var A=Symbol.for("react.offscreen");Symbol.for("react.legacy_hidden"),Symbol.for("react.cache"),Symbol.for("react.tracing_marker");var _=Symbol.iterator;function I(e){return null===e||"object"!==typeof e?null:"function"===typeof(e=_&&e[_]||e["@@iterator"])?e:null}var M,D=Object.assign;function F(e){if(void 0===M)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);M=t&&t[1]||""}return"\n"+M+e}var B=!1;function z(e,t){if(!e||B)return"";B=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),"object"===typeof Reflect&&Reflect.construct){try{Reflect.construct(t,[])}catch(c){var r=c}Reflect.construct(e,[],t)}else{try{t.call()}catch(c){r=c}e.call(t.prototype)}else{try{throw Error()}catch(c){r=c}e()}}catch(c){if(c&&r&&"string"===typeof c.stack){for(var o=c.stack.split("\n"),i=r.stack.split("\n"),a=o.length-1,s=i.length-1;1<=a&&0<=s&&o[a]!==i[s];)s--;for(;1<=a&&0<=s;a--,s--)if(o[a]!==i[s]){if(1!==a||1!==s)do{if(a--,0>--s||o[a]!==i[s]){var l="\n"+o[a].replace(" at new "," at ");return e.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",e.displayName)),l}}while(1<=a&&0<=s);break}}}finally{B=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?F(e):""}function U(e){switch(e.tag){case 5:return F(e.type);case 16:return F("Lazy");case 13:return F("Suspense");case 19:return F("SuspenseList");case 0:case 2:case 15:return e=z(e.type,!1);case 11:return e=z(e.type.render,!1);case 1:return e=z(e.type,!0);default:return""}}function H(e){if(null==e)return null;if("function"===typeof e)return e.displayName||e.name||null;if("string"===typeof e)return e;switch(e){case S:return"Fragment";case E:return"Portal";case j:return"Profiler";case k:return"StrictMode";case T:return"Suspense";case P:return"SuspenseList"}if("object"===typeof e)switch(e.$$typeof){case C:return(e.displayName||"Context")+".Consumer";case O:return(e._context.displayName||"Context")+".Provider";case N:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case L:return null!==(t=e.displayName||null)?t:H(e.type)||"Memo";case R:t=e._payload,e=e._init;try{return H(e(t))}catch(n){}}return null}function W(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=(e=t.render).displayName||e.name||"",t.displayName||(""!==e?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return H(t);case 8:return t===k?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if("function"===typeof t)return t.displayName||t.name||null;if("string"===typeof t)return t}return null}function V(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function q(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function $(e){e._valueTracker||(e._valueTracker=function(e){var t=q(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&"undefined"!==typeof n&&"function"===typeof n.get&&"function"===typeof n.set){var o=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(e){r=""+e,i.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function K(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=q(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function G(e){if("undefined"===typeof(e=e||("undefined"!==typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function Y(e,t){var n=t.checked;return D({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function Q(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=V(null!=t.value?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function X(e,t){null!=(t=t.checked)&&b(e,"checked",t,!1)}function J(e,t){X(e,t);var n=V(t.value),r=t.type;if(null!=n)"number"===r?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===r||"reset"===r)return void e.removeAttribute("value");t.hasOwnProperty("value")?ee(e,t.type,n):t.hasOwnProperty("defaultValue")&&ee(e,t.type,V(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function Z(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!("submit"!==r&&"reset"!==r||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function ee(e,t,n){"number"===t&&G(e.ownerDocument)===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var te=Array.isArray;function ne(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o<n.length;o++)t["$"+n[o]]=!0;for(n=0;n<e.length;n++)o=t.hasOwnProperty("$"+e[n].value),e[n].selected!==o&&(e[n].selected=o),o&&r&&(e[n].defaultSelected=!0)}else{for(n=""+V(n),t=null,o=0;o<e.length;o++){if(e[o].value===n)return e[o].selected=!0,void(r&&(e[o].defaultSelected=!0));null!==t||e[o].disabled||(t=e[o])}null!==t&&(t.selected=!0)}}function re(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(i(91));return D({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function oe(e,t){var n=t.value;if(null==n){if(n=t.children,t=t.defaultValue,null!=n){if(null!=t)throw Error(i(92));if(te(n)){if(1<n.length)throw Error(i(93));n=n[0]}t=n}null==t&&(t=""),n=t}e._wrapperState={initialValue:V(n)}}function ie(e,t){var n=V(t.value),r=V(t.defaultValue);null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=r&&(e.defaultValue=""+r)}function ae(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}function se(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function le(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?se(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var ce,ue,fe=(ue=function(e,t){if("http://www.w3.org/2000/svg"!==e.namespaceURI||"innerHTML"in e)e.innerHTML=t;else{for((ce=ce||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=ce.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}},"undefined"!==typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,t,n,r){MSApp.execUnsafeLocalFunction((function(){return ue(e,t)}))}:ue);function de(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var pe={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},he=["Webkit","ms","Moz","O"];function me(e,t,n){return null==t||"boolean"===typeof t||""===t?"":n||"number"!==typeof t||0===t||pe.hasOwnProperty(e)&&pe[e]?(""+t).trim():t+"px"}function ge(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),o=me(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}Object.keys(pe).forEach((function(e){he.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),pe[t]=pe[e]}))}));var ye=D({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function ve(e,t){if(t){if(ye[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(i(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(i(60));if("object"!==typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(i(61))}if(null!=t.style&&"object"!==typeof t.style)throw Error(i(62))}}function be(e,t){if(-1===e.indexOf("-"))return"string"===typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var we=null;function xe(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var Ee=null,Se=null,ke=null;function je(e){if(e=wo(e)){if("function"!==typeof Ee)throw Error(i(280));var t=e.stateNode;t&&(t=Eo(t),Ee(e.stateNode,e.type,t))}}function Oe(e){Se?ke?ke.push(e):ke=[e]:Se=e}function Ce(){if(Se){var e=Se,t=ke;if(ke=Se=null,je(e),t)for(e=0;e<t.length;e++)je(t[e])}}function Ne(e,t){return e(t)}function Te(){}var Pe=!1;function Le(e,t,n){if(Pe)return e(t,n);Pe=!0;try{return Ne(e,t,n)}finally{Pe=!1,(null!==Se||null!==ke)&&(Te(),Ce())}}function Re(e,t){var n=e.stateNode;if(null===n)return null;var r=Eo(n);if(null===r)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(r=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!r;break e;default:e=!1}if(e)return null;if(n&&"function"!==typeof n)throw Error(i(231,t,typeof n));return n}var Ae=!1;if(u)try{var _e={};Object.defineProperty(_e,"passive",{get:function(){Ae=!0}}),window.addEventListener("test",_e,_e),window.removeEventListener("test",_e,_e)}catch(ue){Ae=!1}function Ie(e,t,n,r,o,i,a,s,l){var c=Array.prototype.slice.call(arguments,3);try{t.apply(n,c)}catch(u){this.onError(u)}}var Me=!1,De=null,Fe=!1,Be=null,ze={onError:function(e){Me=!0,De=e}};function Ue(e,t,n,r,o,i,a,s,l){Me=!1,De=null,Ie.apply(ze,arguments)}function He(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{0!==(4098&(t=e).flags)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function We(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&(null!==(e=e.alternate)&&(t=e.memoizedState)),null!==t)return t.dehydrated}return null}function Ve(e){if(He(e)!==e)throw Error(i(188))}function qe(e){return null!==(e=function(e){var t=e.alternate;if(!t){if(null===(t=He(e)))throw Error(i(188));return t!==e?null:e}for(var n=e,r=t;;){var o=n.return;if(null===o)break;var a=o.alternate;if(null===a){if(null!==(r=o.return)){n=r;continue}break}if(o.child===a.child){for(a=o.child;a;){if(a===n)return Ve(o),e;if(a===r)return Ve(o),t;a=a.sibling}throw Error(i(188))}if(n.return!==r.return)n=o,r=a;else{for(var s=!1,l=o.child;l;){if(l===n){s=!0,n=o,r=a;break}if(l===r){s=!0,r=o,n=a;break}l=l.sibling}if(!s){for(l=a.child;l;){if(l===n){s=!0,n=a,r=o;break}if(l===r){s=!0,r=a,n=o;break}l=l.sibling}if(!s)throw Error(i(189))}}if(n.alternate!==r)throw Error(i(190))}if(3!==n.tag)throw Error(i(188));return n.stateNode.current===n?e:t}(e))?$e(e):null}function $e(e){if(5===e.tag||6===e.tag)return e;for(e=e.child;null!==e;){var t=$e(e);if(null!==t)return t;e=e.sibling}return null}var Ke=o.unstable_scheduleCallback,Ge=o.unstable_cancelCallback,Ye=o.unstable_shouldYield,Qe=o.unstable_requestPaint,Xe=o.unstable_now,Je=o.unstable_getCurrentPriorityLevel,Ze=o.unstable_ImmediatePriority,et=o.unstable_UserBlockingPriority,tt=o.unstable_NormalPriority,nt=o.unstable_LowPriority,rt=o.unstable_IdlePriority,ot=null,it=null;var at=Math.clz32?Math.clz32:function(e){return e>>>=0,0===e?32:31-(st(e)/lt|0)|0},st=Math.log,lt=Math.LN2;var ct=64,ut=4194304;function ft(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return 4194240&e;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return 130023424&e;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function dt(e,t){var n=e.pendingLanes;if(0===n)return 0;var r=0,o=e.suspendedLanes,i=e.pingedLanes,a=268435455&n;if(0!==a){var s=a&~o;0!==s?r=ft(s):0!==(i&=a)&&(r=ft(i))}else 0!==(a=n&~o)?r=ft(a):0!==i&&(r=ft(i));if(0===r)return 0;if(0!==t&&t!==r&&0===(t&o)&&((o=r&-r)>=(i=t&-t)||16===o&&0!==(4194240&i)))return t;if(0!==(4&r)&&(r|=16&n),0!==(t=e.entangledLanes))for(e=e.entanglements,t&=r;0<t;)o=1<<(n=31-at(t)),r|=e[n],t&=~o;return r}function pt(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;default:return-1}}function ht(e){return 0!==(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function mt(){var e=ct;return 0===(4194240&(ct<<=1))&&(ct=64),e}function gt(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function yt(e,t,n){e.pendingLanes|=t,536870912!==t&&(e.suspendedLanes=0,e.pingedLanes=0),(e=e.eventTimes)[t=31-at(t)]=n}function vt(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-at(n),o=1<<r;o&t|e[r]&t&&(e[r]|=t),n&=~o}}var bt=0;function wt(e){return 1<(e&=-e)?4<e?0!==(268435455&e)?16:536870912:4:1}var xt,Et,St,kt,jt,Ot=!1,Ct=[],Nt=null,Tt=null,Pt=null,Lt=new Map,Rt=new Map,At=[],_t="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function It(e,t){switch(e){case"focusin":case"focusout":Nt=null;break;case"dragenter":case"dragleave":Tt=null;break;case"mouseover":case"mouseout":Pt=null;break;case"pointerover":case"pointerout":Lt.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Rt.delete(t.pointerId)}}function Mt(e,t,n,r,o,i){return null===e||e.nativeEvent!==i?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:i,targetContainers:[o]},null!==t&&(null!==(t=wo(t))&&Et(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,null!==o&&-1===t.indexOf(o)&&t.push(o),e)}function Dt(e){var t=bo(e.target);if(null!==t){var n=He(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=We(n)))return e.blockedOn=t,void jt(e.priority,(function(){St(n)}))}else if(3===t&&n.stateNode.current.memoizedState.isDehydrated)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function Ft(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=Yt(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n)return null!==(t=wo(n))&&Et(t),e.blockedOn=n,!1;var r=new(n=e.nativeEvent).constructor(n.type,n);we=r,n.target.dispatchEvent(r),we=null,t.shift()}return!0}function Bt(e,t,n){Ft(e)&&n.delete(t)}function zt(){Ot=!1,null!==Nt&&Ft(Nt)&&(Nt=null),null!==Tt&&Ft(Tt)&&(Tt=null),null!==Pt&&Ft(Pt)&&(Pt=null),Lt.forEach(Bt),Rt.forEach(Bt)}function Ut(e,t){e.blockedOn===t&&(e.blockedOn=null,Ot||(Ot=!0,o.unstable_scheduleCallback(o.unstable_NormalPriority,zt)))}function Ht(e){function t(t){return Ut(t,e)}if(0<Ct.length){Ut(Ct[0],e);for(var n=1;n<Ct.length;n++){var r=Ct[n];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==Nt&&Ut(Nt,e),null!==Tt&&Ut(Tt,e),null!==Pt&&Ut(Pt,e),Lt.forEach(t),Rt.forEach(t),n=0;n<At.length;n++)(r=At[n]).blockedOn===e&&(r.blockedOn=null);for(;0<At.length&&null===(n=At[0]).blockedOn;)Dt(n),null===n.blockedOn&&At.shift()}var Wt=w.ReactCurrentBatchConfig,Vt=!0;function qt(e,t,n,r){var o=bt,i=Wt.transition;Wt.transition=null;try{bt=1,Kt(e,t,n,r)}finally{bt=o,Wt.transition=i}}function $t(e,t,n,r){var o=bt,i=Wt.transition;Wt.transition=null;try{bt=4,Kt(e,t,n,r)}finally{bt=o,Wt.transition=i}}function Kt(e,t,n,r){if(Vt){var o=Yt(e,t,n,r);if(null===o)Vr(e,t,r,Gt,n),It(e,r);else if(function(e,t,n,r,o){switch(t){case"focusin":return Nt=Mt(Nt,e,t,n,r,o),!0;case"dragenter":return Tt=Mt(Tt,e,t,n,r,o),!0;case"mouseover":return Pt=Mt(Pt,e,t,n,r,o),!0;case"pointerover":var i=o.pointerId;return Lt.set(i,Mt(Lt.get(i)||null,e,t,n,r,o)),!0;case"gotpointercapture":return i=o.pointerId,Rt.set(i,Mt(Rt.get(i)||null,e,t,n,r,o)),!0}return!1}(o,e,t,n,r))r.stopPropagation();else if(It(e,r),4&t&&-1<_t.indexOf(e)){for(;null!==o;){var i=wo(o);if(null!==i&&xt(i),null===(i=Yt(e,t,n,r))&&Vr(e,t,r,Gt,n),i===o)break;o=i}null!==o&&r.stopPropagation()}else Vr(e,t,r,null,n)}}var Gt=null;function Yt(e,t,n,r){if(Gt=null,null!==(e=bo(e=xe(r))))if(null===(t=He(e)))e=null;else if(13===(n=t.tag)){if(null!==(e=We(t)))return e;e=null}else if(3===n){if(t.stateNode.current.memoizedState.isDehydrated)return 3===t.tag?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Gt=e,null}function Qt(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(Je()){case Ze:return 1;case et:return 4;case tt:case nt:return 16;case rt:return 536870912;default:return 16}default:return 16}}var Xt=null,Jt=null,Zt=null;function en(){if(Zt)return Zt;var e,t,n=Jt,r=n.length,o="value"in Xt?Xt.value:Xt.textContent,i=o.length;for(e=0;e<r&&n[e]===o[e];e++);var a=r-e;for(t=1;t<=a&&n[r-t]===o[i-t];t++);return Zt=o.slice(e,1<t?1-t:void 0)}function tn(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}function nn(){return!0}function rn(){return!1}function on(e){function t(t,n,r,o,i){for(var a in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=o,this.target=i,this.currentTarget=null,e)e.hasOwnProperty(a)&&(t=e[a],this[a]=t?t(o):o[a]);return this.isDefaultPrevented=(null!=o.defaultPrevented?o.defaultPrevented:!1===o.returnValue)?nn:rn,this.isPropagationStopped=rn,this}return D(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!==typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=nn)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!==typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=nn)},persist:function(){},isPersistent:nn}),t}var an,sn,ln,cn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},un=on(cn),fn=D({},cn,{view:0,detail:0}),dn=on(fn),pn=D({},fn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:jn,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==ln&&(ln&&"mousemove"===e.type?(an=e.screenX-ln.screenX,sn=e.screenY-ln.screenY):sn=an=0,ln=e),an)},movementY:function(e){return"movementY"in e?e.movementY:sn}}),hn=on(pn),mn=on(D({},pn,{dataTransfer:0})),gn=on(D({},fn,{relatedTarget:0})),yn=on(D({},cn,{animationName:0,elapsedTime:0,pseudoElement:0})),vn=D({},cn,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),bn=on(vn),wn=on(D({},cn,{data:0})),xn={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},En={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},Sn={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function kn(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=Sn[e])&&!!t[e]}function jn(){return kn}var On=D({},fn,{key:function(e){if(e.key){var t=xn[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=tn(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?En[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:jn,charCode:function(e){return"keypress"===e.type?tn(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?tn(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),Cn=on(On),Nn=on(D({},pn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),Tn=on(D({},fn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:jn})),Pn=on(D({},cn,{propertyName:0,elapsedTime:0,pseudoElement:0})),Ln=D({},pn,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),Rn=on(Ln),An=[9,13,27,32],_n=u&&"CompositionEvent"in window,In=null;u&&"documentMode"in document&&(In=document.documentMode);var Mn=u&&"TextEvent"in window&&!In,Dn=u&&(!_n||In&&8<In&&11>=In),Fn=String.fromCharCode(32),Bn=!1;function zn(e,t){switch(e){case"keyup":return-1!==An.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Un(e){return"object"===typeof(e=e.detail)&&"data"in e?e.data:null}var Hn=!1;var Wn={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Vn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!Wn[e.type]:"textarea"===t}function qn(e,t,n,r){Oe(r),0<(t=$r(t,"onChange")).length&&(n=new un("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var $n=null,Kn=null;function Gn(e){Fr(e,0)}function Yn(e){if(K(xo(e)))return e}function Qn(e,t){if("change"===e)return t}var Xn=!1;if(u){var Jn;if(u){var Zn="oninput"in document;if(!Zn){var er=document.createElement("div");er.setAttribute("oninput","return;"),Zn="function"===typeof er.oninput}Jn=Zn}else Jn=!1;Xn=Jn&&(!document.documentMode||9<document.documentMode)}function tr(){$n&&($n.detachEvent("onpropertychange",nr),Kn=$n=null)}function nr(e){if("value"===e.propertyName&&Yn(Kn)){var t=[];qn(t,Kn,e,xe(e)),Le(Gn,t)}}function rr(e,t,n){"focusin"===e?(tr(),Kn=n,($n=t).attachEvent("onpropertychange",nr)):"focusout"===e&&tr()}function or(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return Yn(Kn)}function ir(e,t){if("click"===e)return Yn(t)}function ar(e,t){if("input"===e||"change"===e)return Yn(t)}var sr="function"===typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e===1/t)||e!==e&&t!==t};function lr(e,t){if(sr(e,t))return!0;if("object"!==typeof e||null===e||"object"!==typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var o=n[r];if(!f.call(t,o)||!sr(e[o],t[o]))return!1}return!0}function cr(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function ur(e,t){var n,r=cr(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=cr(r)}}function fr(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?fr(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function dr(){for(var e=window,t=G();t instanceof e.HTMLIFrameElement;){try{var n="string"===typeof t.contentWindow.location.href}catch(r){n=!1}if(!n)break;t=G((e=t.contentWindow).document)}return t}function pr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}function hr(e){var t=dr(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&fr(n.ownerDocument.documentElement,n)){if(null!==r&&pr(n))if(t=r.start,void 0===(e=r.end)&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if((e=(t=n.ownerDocument||document)&&t.defaultView||window).getSelection){e=e.getSelection();var o=n.textContent.length,i=Math.min(r.start,o);r=void 0===r.end?i:Math.min(r.end,o),!e.extend&&i>r&&(o=r,r=i,i=o),o=ur(n,i);var a=ur(n,r);o&&a&&(1!==e.rangeCount||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&((t=t.createRange()).setStart(o.node,o.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(a.node,a.offset)):(t.setEnd(a.node,a.offset),e.addRange(t)))}for(t=[],e=n;e=e.parentNode;)1===e.nodeType&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for("function"===typeof n.focus&&n.focus(),n=0;n<t.length;n++)(e=t[n]).element.scrollLeft=e.left,e.element.scrollTop=e.top}}var mr=u&&"documentMode"in document&&11>=document.documentMode,gr=null,yr=null,vr=null,br=!1;function wr(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;br||null==gr||gr!==G(r)||("selectionStart"in(r=gr)&&pr(r)?r={start:r.selectionStart,end:r.selectionEnd}:r={anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},vr&&lr(vr,r)||(vr=r,0<(r=$r(yr,"onSelect")).length&&(t=new un("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=gr)))}function xr(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Er={animationend:xr("Animation","AnimationEnd"),animationiteration:xr("Animation","AnimationIteration"),animationstart:xr("Animation","AnimationStart"),transitionend:xr("Transition","TransitionEnd")},Sr={},kr={};function jr(e){if(Sr[e])return Sr[e];if(!Er[e])return e;var t,n=Er[e];for(t in n)if(n.hasOwnProperty(t)&&t in kr)return Sr[e]=n[t];return e}u&&(kr=document.createElement("div").style,"AnimationEvent"in window||(delete Er.animationend.animation,delete Er.animationiteration.animation,delete Er.animationstart.animation),"TransitionEvent"in window||delete Er.transitionend.transition);var Or=jr("animationend"),Cr=jr("animationiteration"),Nr=jr("animationstart"),Tr=jr("transitionend"),Pr=new Map,Lr="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function Rr(e,t){Pr.set(e,t),l(t,[e])}for(var Ar=0;Ar<Lr.length;Ar++){var _r=Lr[Ar];Rr(_r.toLowerCase(),"on"+(_r[0].toUpperCase()+_r.slice(1)))}Rr(Or,"onAnimationEnd"),Rr(Cr,"onAnimationIteration"),Rr(Nr,"onAnimationStart"),Rr("dblclick","onDoubleClick"),Rr("focusin","onFocus"),Rr("focusout","onBlur"),Rr(Tr,"onTransitionEnd"),c("onMouseEnter",["mouseout","mouseover"]),c("onMouseLeave",["mouseout","mouseover"]),c("onPointerEnter",["pointerout","pointerover"]),c("onPointerLeave",["pointerout","pointerover"]),l("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),l("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),l("onBeforeInput",["compositionend","keypress","textInput","paste"]),l("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),l("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),l("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Ir="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Mr=new Set("cancel close invalid load scroll toggle".split(" ").concat(Ir));function Dr(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,function(e,t,n,r,o,a,s,l,c){if(Ue.apply(this,arguments),Me){if(!Me)throw Error(i(198));var u=De;Me=!1,De=null,Fe||(Fe=!0,Be=u)}}(r,t,void 0,e),e.currentTarget=null}function Fr(e,t){t=0!==(4&t);for(var n=0;n<e.length;n++){var r=e[n],o=r.event;r=r.listeners;e:{var i=void 0;if(t)for(var a=r.length-1;0<=a;a--){var s=r[a],l=s.instance,c=s.currentTarget;if(s=s.listener,l!==i&&o.isPropagationStopped())break e;Dr(o,s,c),i=l}else for(a=0;a<r.length;a++){if(l=(s=r[a]).instance,c=s.currentTarget,s=s.listener,l!==i&&o.isPropagationStopped())break e;Dr(o,s,c),i=l}}}if(Fe)throw e=Be,Fe=!1,Be=null,e}function Br(e,t){var n=t[go];void 0===n&&(n=t[go]=new Set);var r=e+"__bubble";n.has(r)||(Wr(t,e,2,!1),n.add(r))}function zr(e,t,n){var r=0;t&&(r|=4),Wr(n,e,r,t)}var Ur="_reactListening"+Math.random().toString(36).slice(2);function Hr(e){if(!e[Ur]){e[Ur]=!0,a.forEach((function(t){"selectionchange"!==t&&(Mr.has(t)||zr(t,!1,e),zr(t,!0,e))}));var t=9===e.nodeType?e:e.ownerDocument;null===t||t[Ur]||(t[Ur]=!0,zr("selectionchange",!1,t))}}function Wr(e,t,n,r){switch(Qt(t)){case 1:var o=qt;break;case 4:o=$t;break;default:o=Kt}n=o.bind(null,t,n,e),o=void 0,!Ae||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(o=!0),r?void 0!==o?e.addEventListener(t,n,{capture:!0,passive:o}):e.addEventListener(t,n,!0):void 0!==o?e.addEventListener(t,n,{passive:o}):e.addEventListener(t,n,!1)}function Vr(e,t,n,r,o){var i=r;if(0===(1&t)&&0===(2&t)&&null!==r)e:for(;;){if(null===r)return;var a=r.tag;if(3===a||4===a){var s=r.stateNode.containerInfo;if(s===o||8===s.nodeType&&s.parentNode===o)break;if(4===a)for(a=r.return;null!==a;){var l=a.tag;if((3===l||4===l)&&((l=a.stateNode.containerInfo)===o||8===l.nodeType&&l.parentNode===o))return;a=a.return}for(;null!==s;){if(null===(a=bo(s)))return;if(5===(l=a.tag)||6===l){r=i=a;continue e}s=s.parentNode}}r=r.return}Le((function(){var r=i,o=xe(n),a=[];e:{var s=Pr.get(e);if(void 0!==s){var l=un,c=e;switch(e){case"keypress":if(0===tn(n))break e;case"keydown":case"keyup":l=Cn;break;case"focusin":c="focus",l=gn;break;case"focusout":c="blur",l=gn;break;case"beforeblur":case"afterblur":l=gn;break;case"click":if(2===n.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":l=hn;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":l=mn;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":l=Tn;break;case Or:case Cr:case Nr:l=yn;break;case Tr:l=Pn;break;case"scroll":l=dn;break;case"wheel":l=Rn;break;case"copy":case"cut":case"paste":l=bn;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":l=Nn}var u=0!==(4&t),f=!u&&"scroll"===e,d=u?null!==s?s+"Capture":null:s;u=[];for(var p,h=r;null!==h;){var m=(p=h).stateNode;if(5===p.tag&&null!==m&&(p=m,null!==d&&(null!=(m=Re(h,d))&&u.push(qr(h,m,p)))),f)break;h=h.return}0<u.length&&(s=new l(s,c,null,n,o),a.push({event:s,listeners:u}))}}if(0===(7&t)){if(l="mouseout"===e||"pointerout"===e,(!(s="mouseover"===e||"pointerover"===e)||n===we||!(c=n.relatedTarget||n.fromElement)||!bo(c)&&!c[mo])&&(l||s)&&(s=o.window===o?o:(s=o.ownerDocument)?s.defaultView||s.parentWindow:window,l?(l=r,null!==(c=(c=n.relatedTarget||n.toElement)?bo(c):null)&&(c!==(f=He(c))||5!==c.tag&&6!==c.tag)&&(c=null)):(l=null,c=r),l!==c)){if(u=hn,m="onMouseLeave",d="onMouseEnter",h="mouse","pointerout"!==e&&"pointerover"!==e||(u=Nn,m="onPointerLeave",d="onPointerEnter",h="pointer"),f=null==l?s:xo(l),p=null==c?s:xo(c),(s=new u(m,h+"leave",l,n,o)).target=f,s.relatedTarget=p,m=null,bo(o)===r&&((u=new u(d,h+"enter",c,n,o)).target=p,u.relatedTarget=f,m=u),f=m,l&&c)e:{for(d=c,h=0,p=u=l;p;p=Kr(p))h++;for(p=0,m=d;m;m=Kr(m))p++;for(;0<h-p;)u=Kr(u),h--;for(;0<p-h;)d=Kr(d),p--;for(;h--;){if(u===d||null!==d&&u===d.alternate)break e;u=Kr(u),d=Kr(d)}u=null}else u=null;null!==l&&Gr(a,s,l,u,!1),null!==c&&null!==f&&Gr(a,f,c,u,!0)}if("select"===(l=(s=r?xo(r):window).nodeName&&s.nodeName.toLowerCase())||"input"===l&&"file"===s.type)var g=Qn;else if(Vn(s))if(Xn)g=ar;else{g=or;var y=rr}else(l=s.nodeName)&&"input"===l.toLowerCase()&&("checkbox"===s.type||"radio"===s.type)&&(g=ir);switch(g&&(g=g(e,r))?qn(a,g,n,o):(y&&y(e,s,r),"focusout"===e&&(y=s._wrapperState)&&y.controlled&&"number"===s.type&&ee(s,"number",s.value)),y=r?xo(r):window,e){case"focusin":(Vn(y)||"true"===y.contentEditable)&&(gr=y,yr=r,vr=null);break;case"focusout":vr=yr=gr=null;break;case"mousedown":br=!0;break;case"contextmenu":case"mouseup":case"dragend":br=!1,wr(a,n,o);break;case"selectionchange":if(mr)break;case"keydown":case"keyup":wr(a,n,o)}var v;if(_n)e:{switch(e){case"compositionstart":var b="onCompositionStart";break e;case"compositionend":b="onCompositionEnd";break e;case"compositionupdate":b="onCompositionUpdate";break e}b=void 0}else Hn?zn(e,n)&&(b="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(b="onCompositionStart");b&&(Dn&&"ko"!==n.locale&&(Hn||"onCompositionStart"!==b?"onCompositionEnd"===b&&Hn&&(v=en()):(Jt="value"in(Xt=o)?Xt.value:Xt.textContent,Hn=!0)),0<(y=$r(r,b)).length&&(b=new wn(b,e,null,n,o),a.push({event:b,listeners:y}),v?b.data=v:null!==(v=Un(n))&&(b.data=v))),(v=Mn?function(e,t){switch(e){case"compositionend":return Un(t);case"keypress":return 32!==t.which?null:(Bn=!0,Fn);case"textInput":return(e=t.data)===Fn&&Bn?null:e;default:return null}}(e,n):function(e,t){if(Hn)return"compositionend"===e||!_n&&zn(e,t)?(e=en(),Zt=Jt=Xt=null,Hn=!1,e):null;switch(e){case"paste":default:return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Dn&&"ko"!==t.locale?null:t.data}}(e,n))&&(0<(r=$r(r,"onBeforeInput")).length&&(o=new wn("onBeforeInput","beforeinput",null,n,o),a.push({event:o,listeners:r}),o.data=v))}Fr(a,t)}))}function qr(e,t,n){return{instance:e,listener:t,currentTarget:n}}function $r(e,t){for(var n=t+"Capture",r=[];null!==e;){var o=e,i=o.stateNode;5===o.tag&&null!==i&&(o=i,null!=(i=Re(e,n))&&r.unshift(qr(e,i,o)),null!=(i=Re(e,t))&&r.push(qr(e,i,o))),e=e.return}return r}function Kr(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function Gr(e,t,n,r,o){for(var i=t._reactName,a=[];null!==n&&n!==r;){var s=n,l=s.alternate,c=s.stateNode;if(null!==l&&l===r)break;5===s.tag&&null!==c&&(s=c,o?null!=(l=Re(n,i))&&a.unshift(qr(n,l,s)):o||null!=(l=Re(n,i))&&a.push(qr(n,l,s))),n=n.return}0!==a.length&&e.push({event:t,listeners:a})}var Yr=/\r\n?/g,Qr=/\u0000|\uFFFD/g;function Xr(e){return("string"===typeof e?e:""+e).replace(Yr,"\n").replace(Qr,"")}function Jr(e,t,n){if(t=Xr(t),Xr(e)!==t&&n)throw Error(i(425))}function Zr(){}var eo=null,to=null;function no(e,t){return"textarea"===e||"noscript"===e||"string"===typeof t.children||"number"===typeof t.children||"object"===typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var ro="function"===typeof setTimeout?setTimeout:void 0,oo="function"===typeof clearTimeout?clearTimeout:void 0,io="function"===typeof Promise?Promise:void 0,ao="function"===typeof queueMicrotask?queueMicrotask:"undefined"!==typeof io?function(e){return io.resolve(null).then(e).catch(so)}:ro;function so(e){setTimeout((function(){throw e}))}function lo(e,t){var n=t,r=0;do{var o=n.nextSibling;if(e.removeChild(n),o&&8===o.nodeType)if("/$"===(n=o.data)){if(0===r)return e.removeChild(o),void Ht(t);r--}else"$"!==n&&"$?"!==n&&"$!"!==n||r++;n=o}while(n);Ht(t)}function co(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break;if(8===t){if("$"===(t=e.data)||"$!"===t||"$?"===t)break;if("/$"===t)return null}}return e}function uo(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||"$!"===n||"$?"===n){if(0===t)return e;t--}else"/$"===n&&t++}e=e.previousSibling}return null}var fo=Math.random().toString(36).slice(2),po="__reactFiber$"+fo,ho="__reactProps$"+fo,mo="__reactContainer$"+fo,go="__reactEvents$"+fo,yo="__reactListeners$"+fo,vo="__reactHandles$"+fo;function bo(e){var t=e[po];if(t)return t;for(var n=e.parentNode;n;){if(t=n[mo]||n[po]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=uo(e);null!==e;){if(n=e[po])return n;e=uo(e)}return t}n=(e=n).parentNode}return null}function wo(e){return!(e=e[po]||e[mo])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function xo(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(i(33))}function Eo(e){return e[ho]||null}var So=[],ko=-1;function jo(e){return{current:e}}function Oo(e){0>ko||(e.current=So[ko],So[ko]=null,ko--)}function Co(e,t){ko++,So[ko]=e.current,e.current=t}var No={},To=jo(No),Po=jo(!1),Lo=No;function Ro(e,t){var n=e.type.contextTypes;if(!n)return No;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o,i={};for(o in n)i[o]=t[o];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function Ao(e){return null!==(e=e.childContextTypes)&&void 0!==e}function _o(){Oo(Po),Oo(To)}function Io(e,t,n){if(To.current!==No)throw Error(i(168));Co(To,t),Co(Po,n)}function Mo(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,"function"!==typeof r.getChildContext)return n;for(var o in r=r.getChildContext())if(!(o in t))throw Error(i(108,W(e)||"Unknown",o));return D({},n,r)}function Do(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||No,Lo=To.current,Co(To,e),Co(Po,Po.current),!0}function Fo(e,t,n){var r=e.stateNode;if(!r)throw Error(i(169));n?(e=Mo(e,t,Lo),r.__reactInternalMemoizedMergedChildContext=e,Oo(Po),Oo(To),Co(To,e)):Oo(Po),Co(Po,n)}var Bo=null,zo=!1,Uo=!1;function Ho(e){null===Bo?Bo=[e]:Bo.push(e)}function Wo(){if(!Uo&&null!==Bo){Uo=!0;var e=0,t=bt;try{var n=Bo;for(bt=1;e<n.length;e++){var r=n[e];do{r=r(!0)}while(null!==r)}Bo=null,zo=!1}catch(o){throw null!==Bo&&(Bo=Bo.slice(e+1)),Ke(Ze,Wo),o}finally{bt=t,Uo=!1}}return null}var Vo=[],qo=0,$o=null,Ko=0,Go=[],Yo=0,Qo=null,Xo=1,Jo="";function Zo(e,t){Vo[qo++]=Ko,Vo[qo++]=$o,$o=e,Ko=t}function ei(e,t,n){Go[Yo++]=Xo,Go[Yo++]=Jo,Go[Yo++]=Qo,Qo=e;var r=Xo;e=Jo;var o=32-at(r)-1;r&=~(1<<o),n+=1;var i=32-at(t)+o;if(30<i){var a=o-o%5;i=(r&(1<<a)-1).toString(32),r>>=a,o-=a,Xo=1<<32-at(t)+o|n<<o|r,Jo=i+e}else Xo=1<<i|n<<o|r,Jo=e}function ti(e){null!==e.return&&(Zo(e,1),ei(e,1,0))}function ni(e){for(;e===$o;)$o=Vo[--qo],Vo[qo]=null,Ko=Vo[--qo],Vo[qo]=null;for(;e===Qo;)Qo=Go[--Yo],Go[Yo]=null,Jo=Go[--Yo],Go[Yo]=null,Xo=Go[--Yo],Go[Yo]=null}var ri=null,oi=null,ii=!1,ai=null;function si(e,t){var n=Rc(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,null===(t=e.deletions)?(e.deletions=[n],e.flags|=16):t.push(n)}function li(e,t){switch(e.tag){case 5:var n=e.type;return null!==(t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,ri=e,oi=co(t.firstChild),!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,ri=e,oi=null,!0);case 13:return null!==(t=8!==t.nodeType?null:t)&&(n=null!==Qo?{id:Xo,overflow:Jo}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},(n=Rc(18,null,null,0)).stateNode=t,n.return=e,e.child=n,ri=e,oi=null,!0);default:return!1}}function ci(e){return 0!==(1&e.mode)&&0===(128&e.flags)}function ui(e){if(ii){var t=oi;if(t){var n=t;if(!li(e,t)){if(ci(e))throw Error(i(418));t=co(n.nextSibling);var r=ri;t&&li(e,t)?si(r,n):(e.flags=-4097&e.flags|2,ii=!1,ri=e)}}else{if(ci(e))throw Error(i(418));e.flags=-4097&e.flags|2,ii=!1,ri=e}}}function fi(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;ri=e}function di(e){if(e!==ri)return!1;if(!ii)return fi(e),ii=!0,!1;var t;if((t=3!==e.tag)&&!(t=5!==e.tag)&&(t="head"!==(t=e.type)&&"body"!==t&&!no(e.type,e.memoizedProps)),t&&(t=oi)){if(ci(e))throw pi(),Error(i(418));for(;t;)si(e,t),t=co(t.nextSibling)}if(fi(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(i(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var n=e.data;if("/$"===n){if(0===t){oi=co(e.nextSibling);break e}t--}else"$"!==n&&"$!"!==n&&"$?"!==n||t++}e=e.nextSibling}oi=null}}else oi=ri?co(e.stateNode.nextSibling):null;return!0}function pi(){for(var e=oi;e;)e=co(e.nextSibling)}function hi(){oi=ri=null,ii=!1}function mi(e){null===ai?ai=[e]:ai.push(e)}var gi=w.ReactCurrentBatchConfig;function yi(e,t){if(e&&e.defaultProps){for(var n in t=D({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}var vi=jo(null),bi=null,wi=null,xi=null;function Ei(){xi=wi=bi=null}function Si(e){var t=vi.current;Oo(vi),e._currentValue=t}function ki(e,t,n){for(;null!==e;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,null!==r&&(r.childLanes|=t)):null!==r&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function ji(e,t){bi=e,xi=wi=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(0!==(e.lanes&t)&&(ws=!0),e.firstContext=null)}function Oi(e){var t=e._currentValue;if(xi!==e)if(e={context:e,memoizedValue:t,next:null},null===wi){if(null===bi)throw Error(i(308));wi=e,bi.dependencies={lanes:0,firstContext:e}}else wi=wi.next=e;return t}var Ci=null;function Ni(e){null===Ci?Ci=[e]:Ci.push(e)}function Ti(e,t,n,r){var o=t.interleaved;return null===o?(n.next=n,Ni(t)):(n.next=o.next,o.next=n),t.interleaved=n,Pi(e,r)}function Pi(e,t){e.lanes|=t;var n=e.alternate;for(null!==n&&(n.lanes|=t),n=e,e=e.return;null!==e;)e.childLanes|=t,null!==(n=e.alternate)&&(n.childLanes|=t),n=e,e=e.return;return 3===n.tag?n.stateNode:null}var Li=!1;function Ri(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Ai(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function _i(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Ii(e,t,n){var r=e.updateQueue;if(null===r)return null;if(r=r.shared,0!==(2&Tl)){var o=r.pending;return null===o?t.next=t:(t.next=o.next,o.next=t),r.pending=t,Pi(e,n)}return null===(o=r.interleaved)?(t.next=t,Ni(r)):(t.next=o.next,o.next=t),r.interleaved=t,Pi(e,n)}function Mi(e,t,n){if(null!==(t=t.updateQueue)&&(t=t.shared,0!==(4194240&n))){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,vt(e,n)}}function Di(e,t){var n=e.updateQueue,r=e.alternate;if(null!==r&&n===(r=r.updateQueue)){var o=null,i=null;if(null!==(n=n.firstBaseUpdate)){do{var a={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};null===i?o=i=a:i=i.next=a,n=n.next}while(null!==n);null===i?o=i=t:i=i.next=t}else o=i=t;return n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:i,shared:r.shared,effects:r.effects},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Fi(e,t,n,r){var o=e.updateQueue;Li=!1;var i=o.firstBaseUpdate,a=o.lastBaseUpdate,s=o.shared.pending;if(null!==s){o.shared.pending=null;var l=s,c=l.next;l.next=null,null===a?i=c:a.next=c,a=l;var u=e.alternate;null!==u&&((s=(u=u.updateQueue).lastBaseUpdate)!==a&&(null===s?u.firstBaseUpdate=c:s.next=c,u.lastBaseUpdate=l))}if(null!==i){var f=o.baseState;for(a=0,u=c=l=null,s=i;;){var d=s.lane,p=s.eventTime;if((r&d)===d){null!==u&&(u=u.next={eventTime:p,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var h=e,m=s;switch(d=t,p=n,m.tag){case 1:if("function"===typeof(h=m.payload)){f=h.call(p,f,d);break e}f=h;break e;case 3:h.flags=-65537&h.flags|128;case 0:if(null===(d="function"===typeof(h=m.payload)?h.call(p,f,d):h)||void 0===d)break e;f=D({},f,d);break e;case 2:Li=!0}}null!==s.callback&&0!==s.lane&&(e.flags|=64,null===(d=o.effects)?o.effects=[s]:d.push(s))}else p={eventTime:p,lane:d,tag:s.tag,payload:s.payload,callback:s.callback,next:null},null===u?(c=u=p,l=f):u=u.next=p,a|=d;if(null===(s=s.next)){if(null===(s=o.shared.pending))break;s=(d=s).next,d.next=null,o.lastBaseUpdate=d,o.shared.pending=null}}if(null===u&&(l=f),o.baseState=l,o.firstBaseUpdate=c,o.lastBaseUpdate=u,null!==(t=o.shared.interleaved)){o=t;do{a|=o.lane,o=o.next}while(o!==t)}else null===i&&(o.shared.lanes=0);Dl|=a,e.lanes=a,e.memoizedState=f}}function Bi(e,t,n){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var r=e[t],o=r.callback;if(null!==o){if(r.callback=null,r=n,"function"!==typeof o)throw Error(i(191,o));o.call(r)}}}var zi=(new r.Component).refs;function Ui(e,t,n,r){n=null===(n=n(r,t=e.memoizedState))||void 0===n?t:D({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}var Hi={isMounted:function(e){return!!(e=e._reactInternals)&&He(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=tc(),o=nc(e),i=_i(r,o);i.payload=t,void 0!==n&&null!==n&&(i.callback=n),null!==(t=Ii(e,i,o))&&(rc(t,e,o,r),Mi(t,e,o))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=tc(),o=nc(e),i=_i(r,o);i.tag=1,i.payload=t,void 0!==n&&null!==n&&(i.callback=n),null!==(t=Ii(e,i,o))&&(rc(t,e,o,r),Mi(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=tc(),r=nc(e),o=_i(n,r);o.tag=2,void 0!==t&&null!==t&&(o.callback=t),null!==(t=Ii(e,o,r))&&(rc(t,e,r,n),Mi(t,e,r))}};function Wi(e,t,n,r,o,i,a){return"function"===typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,i,a):!t.prototype||!t.prototype.isPureReactComponent||(!lr(n,r)||!lr(o,i))}function Vi(e,t,n){var r=!1,o=No,i=t.contextType;return"object"===typeof i&&null!==i?i=Oi(i):(o=Ao(t)?Lo:To.current,i=(r=null!==(r=t.contextTypes)&&void 0!==r)?Ro(e,o):No),t=new t(n,i),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=Hi,e.stateNode=t,t._reactInternals=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=i),t}function qi(e,t,n,r){e=t.state,"function"===typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"===typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&Hi.enqueueReplaceState(t,t.state,null)}function $i(e,t,n,r){var o=e.stateNode;o.props=n,o.state=e.memoizedState,o.refs=zi,Ri(e);var i=t.contextType;"object"===typeof i&&null!==i?o.context=Oi(i):(i=Ao(t)?Lo:To.current,o.context=Ro(e,i)),o.state=e.memoizedState,"function"===typeof(i=t.getDerivedStateFromProps)&&(Ui(e,t,i,n),o.state=e.memoizedState),"function"===typeof t.getDerivedStateFromProps||"function"===typeof o.getSnapshotBeforeUpdate||"function"!==typeof o.UNSAFE_componentWillMount&&"function"!==typeof o.componentWillMount||(t=o.state,"function"===typeof o.componentWillMount&&o.componentWillMount(),"function"===typeof o.UNSAFE_componentWillMount&&o.UNSAFE_componentWillMount(),t!==o.state&&Hi.enqueueReplaceState(o,o.state,null),Fi(e,n,o,r),o.state=e.memoizedState),"function"===typeof o.componentDidMount&&(e.flags|=4194308)}function Ki(e,t,n){if(null!==(e=n.ref)&&"function"!==typeof e&&"object"!==typeof e){if(n._owner){if(n=n._owner){if(1!==n.tag)throw Error(i(309));var r=n.stateNode}if(!r)throw Error(i(147,e));var o=r,a=""+e;return null!==t&&null!==t.ref&&"function"===typeof t.ref&&t.ref._stringRef===a?t.ref:(t=function(e){var t=o.refs;t===zi&&(t=o.refs={}),null===e?delete t[a]:t[a]=e},t._stringRef=a,t)}if("string"!==typeof e)throw Error(i(284));if(!n._owner)throw Error(i(290,e))}return e}function Gi(e,t){throw e=Object.prototype.toString.call(t),Error(i(31,"[object Object]"===e?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Yi(e){return(0,e._init)(e._payload)}function Qi(e){function t(t,n){if(e){var r=t.deletions;null===r?(t.deletions=[n],t.flags|=16):r.push(n)}}function n(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function r(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function o(e,t){return(e=_c(e,t)).index=0,e.sibling=null,e}function a(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.flags|=2,n):r:(t.flags|=2,n):(t.flags|=1048576,n)}function s(t){return e&&null===t.alternate&&(t.flags|=2),t}function l(e,t,n,r){return null===t||6!==t.tag?((t=Fc(n,e.mode,r)).return=e,t):((t=o(t,n)).return=e,t)}function c(e,t,n,r){var i=n.type;return i===S?f(e,t,n.props.children,r,n.key):null!==t&&(t.elementType===i||"object"===typeof i&&null!==i&&i.$$typeof===R&&Yi(i)===t.type)?((r=o(t,n.props)).ref=Ki(e,t,n),r.return=e,r):((r=Ic(n.type,n.key,n.props,null,e.mode,r)).ref=Ki(e,t,n),r.return=e,r)}function u(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=Bc(n,e.mode,r)).return=e,t):((t=o(t,n.children||[])).return=e,t)}function f(e,t,n,r,i){return null===t||7!==t.tag?((t=Mc(n,e.mode,r,i)).return=e,t):((t=o(t,n)).return=e,t)}function d(e,t,n){if("string"===typeof t&&""!==t||"number"===typeof t)return(t=Fc(""+t,e.mode,n)).return=e,t;if("object"===typeof t&&null!==t){switch(t.$$typeof){case x:return(n=Ic(t.type,t.key,t.props,null,e.mode,n)).ref=Ki(e,null,t),n.return=e,n;case E:return(t=Bc(t,e.mode,n)).return=e,t;case R:return d(e,(0,t._init)(t._payload),n)}if(te(t)||I(t))return(t=Mc(t,e.mode,n,null)).return=e,t;Gi(e,t)}return null}function p(e,t,n,r){var o=null!==t?t.key:null;if("string"===typeof n&&""!==n||"number"===typeof n)return null!==o?null:l(e,t,""+n,r);if("object"===typeof n&&null!==n){switch(n.$$typeof){case x:return n.key===o?c(e,t,n,r):null;case E:return n.key===o?u(e,t,n,r):null;case R:return p(e,t,(o=n._init)(n._payload),r)}if(te(n)||I(n))return null!==o?null:f(e,t,n,r,null);Gi(e,n)}return null}function h(e,t,n,r,o){if("string"===typeof r&&""!==r||"number"===typeof r)return l(t,e=e.get(n)||null,""+r,o);if("object"===typeof r&&null!==r){switch(r.$$typeof){case x:return c(t,e=e.get(null===r.key?n:r.key)||null,r,o);case E:return u(t,e=e.get(null===r.key?n:r.key)||null,r,o);case R:return h(e,t,n,(0,r._init)(r._payload),o)}if(te(r)||I(r))return f(t,e=e.get(n)||null,r,o,null);Gi(t,r)}return null}function m(o,i,s,l){for(var c=null,u=null,f=i,m=i=0,g=null;null!==f&&m<s.length;m++){f.index>m?(g=f,f=null):g=f.sibling;var y=p(o,f,s[m],l);if(null===y){null===f&&(f=g);break}e&&f&&null===y.alternate&&t(o,f),i=a(y,i,m),null===u?c=y:u.sibling=y,u=y,f=g}if(m===s.length)return n(o,f),ii&&Zo(o,m),c;if(null===f){for(;m<s.length;m++)null!==(f=d(o,s[m],l))&&(i=a(f,i,m),null===u?c=f:u.sibling=f,u=f);return ii&&Zo(o,m),c}for(f=r(o,f);m<s.length;m++)null!==(g=h(f,o,m,s[m],l))&&(e&&null!==g.alternate&&f.delete(null===g.key?m:g.key),i=a(g,i,m),null===u?c=g:u.sibling=g,u=g);return e&&f.forEach((function(e){return t(o,e)})),ii&&Zo(o,m),c}function g(o,s,l,c){var u=I(l);if("function"!==typeof u)throw Error(i(150));if(null==(l=u.call(l)))throw Error(i(151));for(var f=u=null,m=s,g=s=0,y=null,v=l.next();null!==m&&!v.done;g++,v=l.next()){m.index>g?(y=m,m=null):y=m.sibling;var b=p(o,m,v.value,c);if(null===b){null===m&&(m=y);break}e&&m&&null===b.alternate&&t(o,m),s=a(b,s,g),null===f?u=b:f.sibling=b,f=b,m=y}if(v.done)return n(o,m),ii&&Zo(o,g),u;if(null===m){for(;!v.done;g++,v=l.next())null!==(v=d(o,v.value,c))&&(s=a(v,s,g),null===f?u=v:f.sibling=v,f=v);return ii&&Zo(o,g),u}for(m=r(o,m);!v.done;g++,v=l.next())null!==(v=h(m,o,g,v.value,c))&&(e&&null!==v.alternate&&m.delete(null===v.key?g:v.key),s=a(v,s,g),null===f?u=v:f.sibling=v,f=v);return e&&m.forEach((function(e){return t(o,e)})),ii&&Zo(o,g),u}return function e(r,i,a,l){if("object"===typeof a&&null!==a&&a.type===S&&null===a.key&&(a=a.props.children),"object"===typeof a&&null!==a){switch(a.$$typeof){case x:e:{for(var c=a.key,u=i;null!==u;){if(u.key===c){if((c=a.type)===S){if(7===u.tag){n(r,u.sibling),(i=o(u,a.props.children)).return=r,r=i;break e}}else if(u.elementType===c||"object"===typeof c&&null!==c&&c.$$typeof===R&&Yi(c)===u.type){n(r,u.sibling),(i=o(u,a.props)).ref=Ki(r,u,a),i.return=r,r=i;break e}n(r,u);break}t(r,u),u=u.sibling}a.type===S?((i=Mc(a.props.children,r.mode,l,a.key)).return=r,r=i):((l=Ic(a.type,a.key,a.props,null,r.mode,l)).ref=Ki(r,i,a),l.return=r,r=l)}return s(r);case E:e:{for(u=a.key;null!==i;){if(i.key===u){if(4===i.tag&&i.stateNode.containerInfo===a.containerInfo&&i.stateNode.implementation===a.implementation){n(r,i.sibling),(i=o(i,a.children||[])).return=r,r=i;break e}n(r,i);break}t(r,i),i=i.sibling}(i=Bc(a,r.mode,l)).return=r,r=i}return s(r);case R:return e(r,i,(u=a._init)(a._payload),l)}if(te(a))return m(r,i,a,l);if(I(a))return g(r,i,a,l);Gi(r,a)}return"string"===typeof a&&""!==a||"number"===typeof a?(a=""+a,null!==i&&6===i.tag?(n(r,i.sibling),(i=o(i,a)).return=r,r=i):(n(r,i),(i=Fc(a,r.mode,l)).return=r,r=i),s(r)):n(r,i)}}var Xi=Qi(!0),Ji=Qi(!1),Zi={},ea=jo(Zi),ta=jo(Zi),na=jo(Zi);function ra(e){if(e===Zi)throw Error(i(174));return e}function oa(e,t){switch(Co(na,t),Co(ta,e),Co(ea,Zi),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:le(null,"");break;default:t=le(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}Oo(ea),Co(ea,t)}function ia(){Oo(ea),Oo(ta),Oo(na)}function aa(e){ra(na.current);var t=ra(ea.current),n=le(t,e.type);t!==n&&(Co(ta,e),Co(ea,n))}function sa(e){ta.current===e&&(Oo(ea),Oo(ta))}var la=jo(0);function ca(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!==(128&t.flags))return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var ua=[];function fa(){for(var e=0;e<ua.length;e++)ua[e]._workInProgressVersionPrimary=null;ua.length=0}var da=w.ReactCurrentDispatcher,pa=w.ReactCurrentBatchConfig,ha=0,ma=null,ga=null,ya=null,va=!1,ba=!1,wa=0,xa=0;function Ea(){throw Error(i(321))}function Sa(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!sr(e[n],t[n]))return!1;return!0}function ka(e,t,n,r,o,a){if(ha=a,ma=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,da.current=null===e||null===e.memoizedState?ss:ls,e=n(r,o),ba){a=0;do{if(ba=!1,wa=0,25<=a)throw Error(i(301));a+=1,ya=ga=null,t.updateQueue=null,da.current=cs,e=n(r,o)}while(ba)}if(da.current=as,t=null!==ga&&null!==ga.next,ha=0,ya=ga=ma=null,va=!1,t)throw Error(i(300));return e}function ja(){var e=0!==wa;return wa=0,e}function Oa(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===ya?ma.memoizedState=ya=e:ya=ya.next=e,ya}function Ca(){if(null===ga){var e=ma.alternate;e=null!==e?e.memoizedState:null}else e=ga.next;var t=null===ya?ma.memoizedState:ya.next;if(null!==t)ya=t,ga=e;else{if(null===e)throw Error(i(310));e={memoizedState:(ga=e).memoizedState,baseState:ga.baseState,baseQueue:ga.baseQueue,queue:ga.queue,next:null},null===ya?ma.memoizedState=ya=e:ya=ya.next=e}return ya}function Na(e,t){return"function"===typeof t?t(e):t}function Ta(e){var t=Ca(),n=t.queue;if(null===n)throw Error(i(311));n.lastRenderedReducer=e;var r=ga,o=r.baseQueue,a=n.pending;if(null!==a){if(null!==o){var s=o.next;o.next=a.next,a.next=s}r.baseQueue=o=a,n.pending=null}if(null!==o){a=o.next,r=r.baseState;var l=s=null,c=null,u=a;do{var f=u.lane;if((ha&f)===f)null!==c&&(c=c.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),r=u.hasEagerState?u.eagerState:e(r,u.action);else{var d={lane:f,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};null===c?(l=c=d,s=r):c=c.next=d,ma.lanes|=f,Dl|=f}u=u.next}while(null!==u&&u!==a);null===c?s=r:c.next=l,sr(r,t.memoizedState)||(ws=!0),t.memoizedState=r,t.baseState=s,t.baseQueue=c,n.lastRenderedState=r}if(null!==(e=n.interleaved)){o=e;do{a=o.lane,ma.lanes|=a,Dl|=a,o=o.next}while(o!==e)}else null===o&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function Pa(e){var t=Ca(),n=t.queue;if(null===n)throw Error(i(311));n.lastRenderedReducer=e;var r=n.dispatch,o=n.pending,a=t.memoizedState;if(null!==o){n.pending=null;var s=o=o.next;do{a=e(a,s.action),s=s.next}while(s!==o);sr(a,t.memoizedState)||(ws=!0),t.memoizedState=a,null===t.baseQueue&&(t.baseState=a),n.lastRenderedState=a}return[a,r]}function La(){}function Ra(e,t){var n=ma,r=Ca(),o=t(),a=!sr(r.memoizedState,o);if(a&&(r.memoizedState=o,ws=!0),r=r.queue,Va(Ia.bind(null,n,r,e),[e]),r.getSnapshot!==t||a||null!==ya&&1&ya.memoizedState.tag){if(n.flags|=2048,Ba(9,_a.bind(null,n,r,o,t),void 0,null),null===Pl)throw Error(i(349));0!==(30&ha)||Aa(n,t,o)}return o}function Aa(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},null===(t=ma.updateQueue)?(t={lastEffect:null,stores:null},ma.updateQueue=t,t.stores=[e]):null===(n=t.stores)?t.stores=[e]:n.push(e)}function _a(e,t,n,r){t.value=n,t.getSnapshot=r,Ma(t)&&Da(e)}function Ia(e,t,n){return n((function(){Ma(t)&&Da(e)}))}function Ma(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!sr(e,n)}catch(r){return!0}}function Da(e){var t=Pi(e,1);null!==t&&rc(t,e,1,-1)}function Fa(e){var t=Oa();return"function"===typeof e&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Na,lastRenderedState:e},t.queue=e,e=e.dispatch=ns.bind(null,ma,e),[t.memoizedState,e]}function Ba(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=ma.updateQueue)?(t={lastEffect:null,stores:null},ma.updateQueue=t,t.lastEffect=e.next=e):null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function za(){return Ca().memoizedState}function Ua(e,t,n,r){var o=Oa();ma.flags|=e,o.memoizedState=Ba(1|t,n,void 0,void 0===r?null:r)}function Ha(e,t,n,r){var o=Ca();r=void 0===r?null:r;var i=void 0;if(null!==ga){var a=ga.memoizedState;if(i=a.destroy,null!==r&&Sa(r,a.deps))return void(o.memoizedState=Ba(t,n,i,r))}ma.flags|=e,o.memoizedState=Ba(1|t,n,i,r)}function Wa(e,t){return Ua(8390656,8,e,t)}function Va(e,t){return Ha(2048,8,e,t)}function qa(e,t){return Ha(4,2,e,t)}function $a(e,t){return Ha(4,4,e,t)}function Ka(e,t){return"function"===typeof t?(e=e(),t(e),function(){t(null)}):null!==t&&void 0!==t?(e=e(),t.current=e,function(){t.current=null}):void 0}function Ga(e,t,n){return n=null!==n&&void 0!==n?n.concat([e]):null,Ha(4,4,Ka.bind(null,t,e),n)}function Ya(){}function Qa(e,t){var n=Ca();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&Sa(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Xa(e,t){var n=Ca();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&Sa(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Ja(e,t,n){return 0===(21&ha)?(e.baseState&&(e.baseState=!1,ws=!0),e.memoizedState=n):(sr(n,t)||(n=mt(),ma.lanes|=n,Dl|=n,e.baseState=!0),t)}function Za(e,t){var n=bt;bt=0!==n&&4>n?n:4,e(!0);var r=pa.transition;pa.transition={};try{e(!1),t()}finally{bt=n,pa.transition=r}}function es(){return Ca().memoizedState}function ts(e,t,n){var r=nc(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},rs(e))os(t,n);else if(null!==(n=Ti(e,t,n,r))){rc(n,e,r,tc()),is(n,t,r)}}function ns(e,t,n){var r=nc(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(rs(e))os(t,o);else{var i=e.alternate;if(0===e.lanes&&(null===i||0===i.lanes)&&null!==(i=t.lastRenderedReducer))try{var a=t.lastRenderedState,s=i(a,n);if(o.hasEagerState=!0,o.eagerState=s,sr(s,a)){var l=t.interleaved;return null===l?(o.next=o,Ni(t)):(o.next=l.next,l.next=o),void(t.interleaved=o)}}catch(c){}null!==(n=Ti(e,t,o,r))&&(rc(n,e,r,o=tc()),is(n,t,r))}}function rs(e){var t=e.alternate;return e===ma||null!==t&&t===ma}function os(e,t){ba=va=!0;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function is(e,t,n){if(0!==(4194240&n)){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,vt(e,n)}}var as={readContext:Oi,useCallback:Ea,useContext:Ea,useEffect:Ea,useImperativeHandle:Ea,useInsertionEffect:Ea,useLayoutEffect:Ea,useMemo:Ea,useReducer:Ea,useRef:Ea,useState:Ea,useDebugValue:Ea,useDeferredValue:Ea,useTransition:Ea,useMutableSource:Ea,useSyncExternalStore:Ea,useId:Ea,unstable_isNewReconciler:!1},ss={readContext:Oi,useCallback:function(e,t){return Oa().memoizedState=[e,void 0===t?null:t],e},useContext:Oi,useEffect:Wa,useImperativeHandle:function(e,t,n){return n=null!==n&&void 0!==n?n.concat([e]):null,Ua(4194308,4,Ka.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Ua(4194308,4,e,t)},useInsertionEffect:function(e,t){return Ua(4,2,e,t)},useMemo:function(e,t){var n=Oa();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Oa();return t=void 0!==n?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=ts.bind(null,ma,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},Oa().memoizedState=e},useState:Fa,useDebugValue:Ya,useDeferredValue:function(e){return Oa().memoizedState=e},useTransition:function(){var e=Fa(!1),t=e[0];return e=Za.bind(null,e[1]),Oa().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=ma,o=Oa();if(ii){if(void 0===n)throw Error(i(407));n=n()}else{if(n=t(),null===Pl)throw Error(i(349));0!==(30&ha)||Aa(r,t,n)}o.memoizedState=n;var a={value:n,getSnapshot:t};return o.queue=a,Wa(Ia.bind(null,r,a,e),[e]),r.flags|=2048,Ba(9,_a.bind(null,r,a,n,t),void 0,null),n},useId:function(){var e=Oa(),t=Pl.identifierPrefix;if(ii){var n=Jo;t=":"+t+"R"+(n=(Xo&~(1<<32-at(Xo)-1)).toString(32)+n),0<(n=wa++)&&(t+="H"+n.toString(32)),t+=":"}else t=":"+t+"r"+(n=xa++).toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},ls={readContext:Oi,useCallback:Qa,useContext:Oi,useEffect:Va,useImperativeHandle:Ga,useInsertionEffect:qa,useLayoutEffect:$a,useMemo:Xa,useReducer:Ta,useRef:za,useState:function(){return Ta(Na)},useDebugValue:Ya,useDeferredValue:function(e){return Ja(Ca(),ga.memoizedState,e)},useTransition:function(){return[Ta(Na)[0],Ca().memoizedState]},useMutableSource:La,useSyncExternalStore:Ra,useId:es,unstable_isNewReconciler:!1},cs={readContext:Oi,useCallback:Qa,useContext:Oi,useEffect:Va,useImperativeHandle:Ga,useInsertionEffect:qa,useLayoutEffect:$a,useMemo:Xa,useReducer:Pa,useRef:za,useState:function(){return Pa(Na)},useDebugValue:Ya,useDeferredValue:function(e){var t=Ca();return null===ga?t.memoizedState=e:Ja(t,ga.memoizedState,e)},useTransition:function(){return[Pa(Na)[0],Ca().memoizedState]},useMutableSource:La,useSyncExternalStore:Ra,useId:es,unstable_isNewReconciler:!1};function us(e,t){try{var n="",r=t;do{n+=U(r),r=r.return}while(r);var o=n}catch(i){o="\nError generating stack: "+i.message+"\n"+i.stack}return{value:e,source:t,stack:o,digest:null}}function fs(e,t,n){return{value:e,source:null,stack:null!=n?n:null,digest:null!=t?t:null}}function ds(e,t){try{console.error(t.value)}catch(n){setTimeout((function(){throw n}))}}var ps="function"===typeof WeakMap?WeakMap:Map;function hs(e,t,n){(n=_i(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){ql||(ql=!0,$l=r),ds(0,t)},n}function ms(e,t,n){(n=_i(-1,n)).tag=3;var r=e.type.getDerivedStateFromError;if("function"===typeof r){var o=t.value;n.payload=function(){return r(o)},n.callback=function(){ds(0,t)}}var i=e.stateNode;return null!==i&&"function"===typeof i.componentDidCatch&&(n.callback=function(){ds(0,t),"function"!==typeof r&&(null===Kl?Kl=new Set([this]):Kl.add(this));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}function gs(e,t,n){var r=e.pingCache;if(null===r){r=e.pingCache=new ps;var o=new Set;r.set(t,o)}else void 0===(o=r.get(t))&&(o=new Set,r.set(t,o));o.has(n)||(o.add(n),e=Oc.bind(null,e,t,n),t.then(e,e))}function ys(e){do{var t;if((t=13===e.tag)&&(t=null===(t=e.memoizedState)||null!==t.dehydrated),t)return e;e=e.return}while(null!==e);return null}function vs(e,t,n,r,o){return 0===(1&e.mode)?(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,1===n.tag&&(null===n.alternate?n.tag=17:((t=_i(-1,1)).tag=2,Ii(n,t,1))),n.lanes|=1),e):(e.flags|=65536,e.lanes=o,e)}var bs=w.ReactCurrentOwner,ws=!1;function xs(e,t,n,r){t.child=null===e?Ji(t,null,n,r):Xi(t,e.child,n,r)}function Es(e,t,n,r,o){n=n.render;var i=t.ref;return ji(t,o),r=ka(e,t,n,r,i,o),n=ja(),null===e||ws?(ii&&n&&ti(t),t.flags|=1,xs(e,t,r,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,qs(e,t,o))}function Ss(e,t,n,r,o){if(null===e){var i=n.type;return"function"!==typeof i||Ac(i)||void 0!==i.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=Ic(n.type,null,r,t,t.mode,o)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=i,ks(e,t,i,r,o))}if(i=e.child,0===(e.lanes&o)){var a=i.memoizedProps;if((n=null!==(n=n.compare)?n:lr)(a,r)&&e.ref===t.ref)return qs(e,t,o)}return t.flags|=1,(e=_c(i,r)).ref=t.ref,e.return=t,t.child=e}function ks(e,t,n,r,o){if(null!==e){var i=e.memoizedProps;if(lr(i,r)&&e.ref===t.ref){if(ws=!1,t.pendingProps=r=i,0===(e.lanes&o))return t.lanes=e.lanes,qs(e,t,o);0!==(131072&e.flags)&&(ws=!0)}}return Cs(e,t,n,r,o)}function js(e,t,n){var r=t.pendingProps,o=r.children,i=null!==e?e.memoizedState:null;if("hidden"===r.mode)if(0===(1&t.mode))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Co(_l,Al),Al|=n;else{if(0===(1073741824&n))return e=null!==i?i.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Co(_l,Al),Al|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=null!==i?i.baseLanes:n,Co(_l,Al),Al|=r}else null!==i?(r=i.baseLanes|n,t.memoizedState=null):r=n,Co(_l,Al),Al|=r;return xs(e,t,o,n),t.child}function Os(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Cs(e,t,n,r,o){var i=Ao(n)?Lo:To.current;return i=Ro(t,i),ji(t,o),n=ka(e,t,n,r,i,o),r=ja(),null===e||ws?(ii&&r&&ti(t),t.flags|=1,xs(e,t,n,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,qs(e,t,o))}function Ns(e,t,n,r,o){if(Ao(n)){var i=!0;Do(t)}else i=!1;if(ji(t,o),null===t.stateNode)Vs(e,t),Vi(t,n,r),$i(t,n,r,o),r=!0;else if(null===e){var a=t.stateNode,s=t.memoizedProps;a.props=s;var l=a.context,c=n.contextType;"object"===typeof c&&null!==c?c=Oi(c):c=Ro(t,c=Ao(n)?Lo:To.current);var u=n.getDerivedStateFromProps,f="function"===typeof u||"function"===typeof a.getSnapshotBeforeUpdate;f||"function"!==typeof a.UNSAFE_componentWillReceiveProps&&"function"!==typeof a.componentWillReceiveProps||(s!==r||l!==c)&&qi(t,a,r,c),Li=!1;var d=t.memoizedState;a.state=d,Fi(t,r,a,o),l=t.memoizedState,s!==r||d!==l||Po.current||Li?("function"===typeof u&&(Ui(t,n,u,r),l=t.memoizedState),(s=Li||Wi(t,n,s,r,d,l,c))?(f||"function"!==typeof a.UNSAFE_componentWillMount&&"function"!==typeof a.componentWillMount||("function"===typeof a.componentWillMount&&a.componentWillMount(),"function"===typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount()),"function"===typeof a.componentDidMount&&(t.flags|=4194308)):("function"===typeof a.componentDidMount&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),a.props=r,a.state=l,a.context=c,r=s):("function"===typeof a.componentDidMount&&(t.flags|=4194308),r=!1)}else{a=t.stateNode,Ai(e,t),s=t.memoizedProps,c=t.type===t.elementType?s:yi(t.type,s),a.props=c,f=t.pendingProps,d=a.context,"object"===typeof(l=n.contextType)&&null!==l?l=Oi(l):l=Ro(t,l=Ao(n)?Lo:To.current);var p=n.getDerivedStateFromProps;(u="function"===typeof p||"function"===typeof a.getSnapshotBeforeUpdate)||"function"!==typeof a.UNSAFE_componentWillReceiveProps&&"function"!==typeof a.componentWillReceiveProps||(s!==f||d!==l)&&qi(t,a,r,l),Li=!1,d=t.memoizedState,a.state=d,Fi(t,r,a,o);var h=t.memoizedState;s!==f||d!==h||Po.current||Li?("function"===typeof p&&(Ui(t,n,p,r),h=t.memoizedState),(c=Li||Wi(t,n,c,r,d,h,l)||!1)?(u||"function"!==typeof a.UNSAFE_componentWillUpdate&&"function"!==typeof a.componentWillUpdate||("function"===typeof a.componentWillUpdate&&a.componentWillUpdate(r,h,l),"function"===typeof a.UNSAFE_componentWillUpdate&&a.UNSAFE_componentWillUpdate(r,h,l)),"function"===typeof a.componentDidUpdate&&(t.flags|=4),"function"===typeof a.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!==typeof a.componentDidUpdate||s===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),"function"!==typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&d===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=h),a.props=r,a.state=h,a.context=l,r=c):("function"!==typeof a.componentDidUpdate||s===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),"function"!==typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&d===e.memoizedState||(t.flags|=1024),r=!1)}return Ts(e,t,n,r,i,o)}function Ts(e,t,n,r,o,i){Os(e,t);var a=0!==(128&t.flags);if(!r&&!a)return o&&Fo(t,n,!1),qs(e,t,i);r=t.stateNode,bs.current=t;var s=a&&"function"!==typeof n.getDerivedStateFromError?null:r.render();return t.flags|=1,null!==e&&a?(t.child=Xi(t,e.child,null,i),t.child=Xi(t,null,s,i)):xs(e,t,s,i),t.memoizedState=r.state,o&&Fo(t,n,!0),t.child}function Ps(e){var t=e.stateNode;t.pendingContext?Io(0,t.pendingContext,t.pendingContext!==t.context):t.context&&Io(0,t.context,!1),oa(e,t.containerInfo)}function Ls(e,t,n,r,o){return hi(),mi(o),t.flags|=256,xs(e,t,n,r),t.child}var Rs,As,_s,Is,Ms={dehydrated:null,treeContext:null,retryLane:0};function Ds(e){return{baseLanes:e,cachePool:null,transitions:null}}function Fs(e,t,n){var r,o=t.pendingProps,a=la.current,s=!1,l=0!==(128&t.flags);if((r=l)||(r=(null===e||null!==e.memoizedState)&&0!==(2&a)),r?(s=!0,t.flags&=-129):null!==e&&null===e.memoizedState||(a|=1),Co(la,1&a),null===e)return ui(t),null!==(e=t.memoizedState)&&null!==(e=e.dehydrated)?(0===(1&t.mode)?t.lanes=1:"$!"===e.data?t.lanes=8:t.lanes=1073741824,null):(l=o.children,e=o.fallback,s?(o=t.mode,s=t.child,l={mode:"hidden",children:l},0===(1&o)&&null!==s?(s.childLanes=0,s.pendingProps=l):s=Dc(l,o,0,null),e=Mc(e,o,n,null),s.return=t,e.return=t,s.sibling=e,t.child=s,t.child.memoizedState=Ds(n),t.memoizedState=Ms,e):Bs(t,l));if(null!==(a=e.memoizedState)&&null!==(r=a.dehydrated))return function(e,t,n,r,o,a,s){if(n)return 256&t.flags?(t.flags&=-257,zs(e,t,s,r=fs(Error(i(422))))):null!==t.memoizedState?(t.child=e.child,t.flags|=128,null):(a=r.fallback,o=t.mode,r=Dc({mode:"visible",children:r.children},o,0,null),(a=Mc(a,o,s,null)).flags|=2,r.return=t,a.return=t,r.sibling=a,t.child=r,0!==(1&t.mode)&&Xi(t,e.child,null,s),t.child.memoizedState=Ds(s),t.memoizedState=Ms,a);if(0===(1&t.mode))return zs(e,t,s,null);if("$!"===o.data){if(r=o.nextSibling&&o.nextSibling.dataset)var l=r.dgst;return r=l,zs(e,t,s,r=fs(a=Error(i(419)),r,void 0))}if(l=0!==(s&e.childLanes),ws||l){if(null!==(r=Pl)){switch(s&-s){case 4:o=2;break;case 16:o=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:o=32;break;case 536870912:o=268435456;break;default:o=0}0!==(o=0!==(o&(r.suspendedLanes|s))?0:o)&&o!==a.retryLane&&(a.retryLane=o,Pi(e,o),rc(r,e,o,-1))}return gc(),zs(e,t,s,r=fs(Error(i(421))))}return"$?"===o.data?(t.flags|=128,t.child=e.child,t=Nc.bind(null,e),o._reactRetry=t,null):(e=a.treeContext,oi=co(o.nextSibling),ri=t,ii=!0,ai=null,null!==e&&(Go[Yo++]=Xo,Go[Yo++]=Jo,Go[Yo++]=Qo,Xo=e.id,Jo=e.overflow,Qo=t),t=Bs(t,r.children),t.flags|=4096,t)}(e,t,l,o,r,a,n);if(s){s=o.fallback,l=t.mode,r=(a=e.child).sibling;var c={mode:"hidden",children:o.children};return 0===(1&l)&&t.child!==a?((o=t.child).childLanes=0,o.pendingProps=c,t.deletions=null):(o=_c(a,c)).subtreeFlags=14680064&a.subtreeFlags,null!==r?s=_c(r,s):(s=Mc(s,l,n,null)).flags|=2,s.return=t,o.return=t,o.sibling=s,t.child=o,o=s,s=t.child,l=null===(l=e.child.memoizedState)?Ds(n):{baseLanes:l.baseLanes|n,cachePool:null,transitions:l.transitions},s.memoizedState=l,s.childLanes=e.childLanes&~n,t.memoizedState=Ms,o}return e=(s=e.child).sibling,o=_c(s,{mode:"visible",children:o.children}),0===(1&t.mode)&&(o.lanes=n),o.return=t,o.sibling=null,null!==e&&(null===(n=t.deletions)?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=o,t.memoizedState=null,o}function Bs(e,t){return(t=Dc({mode:"visible",children:t},e.mode,0,null)).return=e,e.child=t}function zs(e,t,n,r){return null!==r&&mi(r),Xi(t,e.child,null,n),(e=Bs(t,t.pendingProps.children)).flags|=2,t.memoizedState=null,e}function Us(e,t,n){e.lanes|=t;var r=e.alternate;null!==r&&(r.lanes|=t),ki(e.return,t,n)}function Hs(e,t,n,r,o){var i=e.memoizedState;null===i?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:o}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=r,i.tail=n,i.tailMode=o)}function Ws(e,t,n){var r=t.pendingProps,o=r.revealOrder,i=r.tail;if(xs(e,t,r.children,n),0!==(2&(r=la.current)))r=1&r|2,t.flags|=128;else{if(null!==e&&0!==(128&e.flags))e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&Us(e,n,t);else if(19===e.tag)Us(e,n,t);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(Co(la,r),0===(1&t.mode))t.memoizedState=null;else switch(o){case"forwards":for(n=t.child,o=null;null!==n;)null!==(e=n.alternate)&&null===ca(e)&&(o=n),n=n.sibling;null===(n=o)?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),Hs(t,!1,o,n,i);break;case"backwards":for(n=null,o=t.child,t.child=null;null!==o;){if(null!==(e=o.alternate)&&null===ca(e)){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}Hs(t,!0,n,null,i);break;case"together":Hs(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Vs(e,t){0===(1&t.mode)&&null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2)}function qs(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),Dl|=t.lanes,0===(n&t.childLanes))return null;if(null!==e&&t.child!==e.child)throw Error(i(153));if(null!==t.child){for(n=_c(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=_c(e,e.pendingProps)).return=t;n.sibling=null}return t.child}function $s(e,t){if(!ii)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Ks(e){var t=null!==e.alternate&&e.alternate.child===e.child,n=0,r=0;if(t)for(var o=e.child;null!==o;)n|=o.lanes|o.childLanes,r|=14680064&o.subtreeFlags,r|=14680064&o.flags,o.return=e,o=o.sibling;else for(o=e.child;null!==o;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags,r|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function Gs(e,t,n){var r=t.pendingProps;switch(ni(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ks(t),null;case 1:case 17:return Ao(t.type)&&_o(),Ks(t),null;case 3:return r=t.stateNode,ia(),Oo(Po),Oo(To),fa(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),null!==e&&null!==e.child||(di(t)?t.flags|=4:null===e||e.memoizedState.isDehydrated&&0===(256&t.flags)||(t.flags|=1024,null!==ai&&(sc(ai),ai=null))),As(e,t),Ks(t),null;case 5:sa(t);var o=ra(na.current);if(n=t.type,null!==e&&null!=t.stateNode)_s(e,t,n,r,o),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(null===t.stateNode)throw Error(i(166));return Ks(t),null}if(e=ra(ea.current),di(t)){r=t.stateNode,n=t.type;var a=t.memoizedProps;switch(r[po]=t,r[ho]=a,e=0!==(1&t.mode),n){case"dialog":Br("cancel",r),Br("close",r);break;case"iframe":case"object":case"embed":Br("load",r);break;case"video":case"audio":for(o=0;o<Ir.length;o++)Br(Ir[o],r);break;case"source":Br("error",r);break;case"img":case"image":case"link":Br("error",r),Br("load",r);break;case"details":Br("toggle",r);break;case"input":Q(r,a),Br("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!a.multiple},Br("invalid",r);break;case"textarea":oe(r,a),Br("invalid",r)}for(var l in ve(n,a),o=null,a)if(a.hasOwnProperty(l)){var c=a[l];"children"===l?"string"===typeof c?r.textContent!==c&&(!0!==a.suppressHydrationWarning&&Jr(r.textContent,c,e),o=["children",c]):"number"===typeof c&&r.textContent!==""+c&&(!0!==a.suppressHydrationWarning&&Jr(r.textContent,c,e),o=["children",""+c]):s.hasOwnProperty(l)&&null!=c&&"onScroll"===l&&Br("scroll",r)}switch(n){case"input":$(r),Z(r,a,!0);break;case"textarea":$(r),ae(r);break;case"select":case"option":break;default:"function"===typeof a.onClick&&(r.onclick=Zr)}r=o,t.updateQueue=r,null!==r&&(t.flags|=4)}else{l=9===o.nodeType?o:o.ownerDocument,"http://www.w3.org/1999/xhtml"===e&&(e=se(n)),"http://www.w3.org/1999/xhtml"===e?"script"===n?((e=l.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"===typeof r.is?e=l.createElement(n,{is:r.is}):(e=l.createElement(n),"select"===n&&(l=e,r.multiple?l.multiple=!0:r.size&&(l.size=r.size))):e=l.createElementNS(e,n),e[po]=t,e[ho]=r,Rs(e,t,!1,!1),t.stateNode=e;e:{switch(l=be(n,r),n){case"dialog":Br("cancel",e),Br("close",e),o=r;break;case"iframe":case"object":case"embed":Br("load",e),o=r;break;case"video":case"audio":for(o=0;o<Ir.length;o++)Br(Ir[o],e);o=r;break;case"source":Br("error",e),o=r;break;case"img":case"image":case"link":Br("error",e),Br("load",e),o=r;break;case"details":Br("toggle",e),o=r;break;case"input":Q(e,r),o=Y(e,r),Br("invalid",e);break;case"option":default:o=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},o=D({},r,{value:void 0}),Br("invalid",e);break;case"textarea":oe(e,r),o=re(e,r),Br("invalid",e)}for(a in ve(n,o),c=o)if(c.hasOwnProperty(a)){var u=c[a];"style"===a?ge(e,u):"dangerouslySetInnerHTML"===a?null!=(u=u?u.__html:void 0)&&fe(e,u):"children"===a?"string"===typeof u?("textarea"!==n||""!==u)&&de(e,u):"number"===typeof u&&de(e,""+u):"suppressContentEditableWarning"!==a&&"suppressHydrationWarning"!==a&&"autoFocus"!==a&&(s.hasOwnProperty(a)?null!=u&&"onScroll"===a&&Br("scroll",e):null!=u&&b(e,a,u,l))}switch(n){case"input":$(e),Z(e,r,!1);break;case"textarea":$(e),ae(e);break;case"option":null!=r.value&&e.setAttribute("value",""+V(r.value));break;case"select":e.multiple=!!r.multiple,null!=(a=r.value)?ne(e,!!r.multiple,a,!1):null!=r.defaultValue&&ne(e,!!r.multiple,r.defaultValue,!0);break;default:"function"===typeof o.onClick&&(e.onclick=Zr)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}null!==t.ref&&(t.flags|=512,t.flags|=2097152)}return Ks(t),null;case 6:if(e&&null!=t.stateNode)Is(e,t,e.memoizedProps,r);else{if("string"!==typeof r&&null===t.stateNode)throw Error(i(166));if(n=ra(na.current),ra(ea.current),di(t)){if(r=t.stateNode,n=t.memoizedProps,r[po]=t,(a=r.nodeValue!==n)&&null!==(e=ri))switch(e.tag){case 3:Jr(r.nodeValue,n,0!==(1&e.mode));break;case 5:!0!==e.memoizedProps.suppressHydrationWarning&&Jr(r.nodeValue,n,0!==(1&e.mode))}a&&(t.flags|=4)}else(r=(9===n.nodeType?n:n.ownerDocument).createTextNode(r))[po]=t,t.stateNode=r}return Ks(t),null;case 13:if(Oo(la),r=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(ii&&null!==oi&&0!==(1&t.mode)&&0===(128&t.flags))pi(),hi(),t.flags|=98560,a=!1;else if(a=di(t),null!==r&&null!==r.dehydrated){if(null===e){if(!a)throw Error(i(318));if(!(a=null!==(a=t.memoizedState)?a.dehydrated:null))throw Error(i(317));a[po]=t}else hi(),0===(128&t.flags)&&(t.memoizedState=null),t.flags|=4;Ks(t),a=!1}else null!==ai&&(sc(ai),ai=null),a=!0;if(!a)return 65536&t.flags?t:null}return 0!==(128&t.flags)?(t.lanes=n,t):((r=null!==r)!==(null!==e&&null!==e.memoizedState)&&r&&(t.child.flags|=8192,0!==(1&t.mode)&&(null===e||0!==(1&la.current)?0===Il&&(Il=3):gc())),null!==t.updateQueue&&(t.flags|=4),Ks(t),null);case 4:return ia(),As(e,t),null===e&&Hr(t.stateNode.containerInfo),Ks(t),null;case 10:return Si(t.type._context),Ks(t),null;case 19:if(Oo(la),null===(a=t.memoizedState))return Ks(t),null;if(r=0!==(128&t.flags),null===(l=a.rendering))if(r)$s(a,!1);else{if(0!==Il||null!==e&&0!==(128&e.flags))for(e=t.child;null!==e;){if(null!==(l=ca(e))){for(t.flags|=128,$s(a,!1),null!==(r=l.updateQueue)&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;null!==n;)e=r,(a=n).flags&=14680066,null===(l=a.alternate)?(a.childLanes=0,a.lanes=e,a.child=null,a.subtreeFlags=0,a.memoizedProps=null,a.memoizedState=null,a.updateQueue=null,a.dependencies=null,a.stateNode=null):(a.childLanes=l.childLanes,a.lanes=l.lanes,a.child=l.child,a.subtreeFlags=0,a.deletions=null,a.memoizedProps=l.memoizedProps,a.memoizedState=l.memoizedState,a.updateQueue=l.updateQueue,a.type=l.type,e=l.dependencies,a.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return Co(la,1&la.current|2),t.child}e=e.sibling}null!==a.tail&&Xe()>Wl&&(t.flags|=128,r=!0,$s(a,!1),t.lanes=4194304)}else{if(!r)if(null!==(e=ca(l))){if(t.flags|=128,r=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.flags|=4),$s(a,!0),null===a.tail&&"hidden"===a.tailMode&&!l.alternate&&!ii)return Ks(t),null}else 2*Xe()-a.renderingStartTime>Wl&&1073741824!==n&&(t.flags|=128,r=!0,$s(a,!1),t.lanes=4194304);a.isBackwards?(l.sibling=t.child,t.child=l):(null!==(n=a.last)?n.sibling=l:t.child=l,a.last=l)}return null!==a.tail?(t=a.tail,a.rendering=t,a.tail=t.sibling,a.renderingStartTime=Xe(),t.sibling=null,n=la.current,Co(la,r?1&n|2:1&n),t):(Ks(t),null);case 22:case 23:return dc(),r=null!==t.memoizedState,null!==e&&null!==e.memoizedState!==r&&(t.flags|=8192),r&&0!==(1&t.mode)?0!==(1073741824&Al)&&(Ks(t),6&t.subtreeFlags&&(t.flags|=8192)):Ks(t),null;case 24:case 25:return null}throw Error(i(156,t.tag))}function Ys(e,t){switch(ni(t),t.tag){case 1:return Ao(t.type)&&_o(),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return ia(),Oo(Po),Oo(To),fa(),0!==(65536&(e=t.flags))&&0===(128&e)?(t.flags=-65537&e|128,t):null;case 5:return sa(t),null;case 13:if(Oo(la),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(i(340));hi()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return Oo(la),null;case 4:return ia(),null;case 10:return Si(t.type._context),null;case 22:case 23:return dc(),null;default:return null}}Rs=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},As=function(){},_s=function(e,t,n,r){var o=e.memoizedProps;if(o!==r){e=t.stateNode,ra(ea.current);var i,a=null;switch(n){case"input":o=Y(e,o),r=Y(e,r),a=[];break;case"select":o=D({},o,{value:void 0}),r=D({},r,{value:void 0}),a=[];break;case"textarea":o=re(e,o),r=re(e,r),a=[];break;default:"function"!==typeof o.onClick&&"function"===typeof r.onClick&&(e.onclick=Zr)}for(u in ve(n,r),n=null,o)if(!r.hasOwnProperty(u)&&o.hasOwnProperty(u)&&null!=o[u])if("style"===u){var l=o[u];for(i in l)l.hasOwnProperty(i)&&(n||(n={}),n[i]="")}else"dangerouslySetInnerHTML"!==u&&"children"!==u&&"suppressContentEditableWarning"!==u&&"suppressHydrationWarning"!==u&&"autoFocus"!==u&&(s.hasOwnProperty(u)?a||(a=[]):(a=a||[]).push(u,null));for(u in r){var c=r[u];if(l=null!=o?o[u]:void 0,r.hasOwnProperty(u)&&c!==l&&(null!=c||null!=l))if("style"===u)if(l){for(i in l)!l.hasOwnProperty(i)||c&&c.hasOwnProperty(i)||(n||(n={}),n[i]="");for(i in c)c.hasOwnProperty(i)&&l[i]!==c[i]&&(n||(n={}),n[i]=c[i])}else n||(a||(a=[]),a.push(u,n)),n=c;else"dangerouslySetInnerHTML"===u?(c=c?c.__html:void 0,l=l?l.__html:void 0,null!=c&&l!==c&&(a=a||[]).push(u,c)):"children"===u?"string"!==typeof c&&"number"!==typeof c||(a=a||[]).push(u,""+c):"suppressContentEditableWarning"!==u&&"suppressHydrationWarning"!==u&&(s.hasOwnProperty(u)?(null!=c&&"onScroll"===u&&Br("scroll",e),a||l===c||(a=[])):(a=a||[]).push(u,c))}n&&(a=a||[]).push("style",n);var u=a;(t.updateQueue=u)&&(t.flags|=4)}},Is=function(e,t,n,r){n!==r&&(t.flags|=4)};var Qs=!1,Xs=!1,Js="function"===typeof WeakSet?WeakSet:Set,Zs=null;function el(e,t){var n=e.ref;if(null!==n)if("function"===typeof n)try{n(null)}catch(r){jc(e,t,r)}else n.current=null}function tl(e,t,n){try{n()}catch(r){jc(e,t,r)}}var nl=!1;function rl(e,t,n){var r=t.updateQueue;if(null!==(r=null!==r?r.lastEffect:null)){var o=r=r.next;do{if((o.tag&e)===e){var i=o.destroy;o.destroy=void 0,void 0!==i&&tl(t,n,i)}o=o.next}while(o!==r)}}function ol(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function il(e){var t=e.ref;if(null!==t){var n=e.stateNode;e.tag,e=n,"function"===typeof t?t(e):t.current=e}}function al(e){var t=e.alternate;null!==t&&(e.alternate=null,al(t)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&(null!==(t=e.stateNode)&&(delete t[po],delete t[ho],delete t[go],delete t[yo],delete t[vo])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function sl(e){return 5===e.tag||3===e.tag||4===e.tag}function ll(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||sl(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;5!==e.tag&&6!==e.tag&&18!==e.tag;){if(2&e.flags)continue e;if(null===e.child||4===e.tag)continue e;e.child.return=e,e=e.child}if(!(2&e.flags))return e.stateNode}}function cl(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?8===n.nodeType?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(8===n.nodeType?(t=n.parentNode).insertBefore(e,n):(t=n).appendChild(e),null!==(n=n._reactRootContainer)&&void 0!==n||null!==t.onclick||(t.onclick=Zr));else if(4!==r&&null!==(e=e.child))for(cl(e,t,n),e=e.sibling;null!==e;)cl(e,t,n),e=e.sibling}function ul(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==r&&null!==(e=e.child))for(ul(e,t,n),e=e.sibling;null!==e;)ul(e,t,n),e=e.sibling}var fl=null,dl=!1;function pl(e,t,n){for(n=n.child;null!==n;)hl(e,t,n),n=n.sibling}function hl(e,t,n){if(it&&"function"===typeof it.onCommitFiberUnmount)try{it.onCommitFiberUnmount(ot,n)}catch(s){}switch(n.tag){case 5:Xs||el(n,t);case 6:var r=fl,o=dl;fl=null,pl(e,t,n),dl=o,null!==(fl=r)&&(dl?(e=fl,n=n.stateNode,8===e.nodeType?e.parentNode.removeChild(n):e.removeChild(n)):fl.removeChild(n.stateNode));break;case 18:null!==fl&&(dl?(e=fl,n=n.stateNode,8===e.nodeType?lo(e.parentNode,n):1===e.nodeType&&lo(e,n),Ht(e)):lo(fl,n.stateNode));break;case 4:r=fl,o=dl,fl=n.stateNode.containerInfo,dl=!0,pl(e,t,n),fl=r,dl=o;break;case 0:case 11:case 14:case 15:if(!Xs&&(null!==(r=n.updateQueue)&&null!==(r=r.lastEffect))){o=r=r.next;do{var i=o,a=i.destroy;i=i.tag,void 0!==a&&(0!==(2&i)||0!==(4&i))&&tl(n,t,a),o=o.next}while(o!==r)}pl(e,t,n);break;case 1:if(!Xs&&(el(n,t),"function"===typeof(r=n.stateNode).componentWillUnmount))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(s){jc(n,t,s)}pl(e,t,n);break;case 21:pl(e,t,n);break;case 22:1&n.mode?(Xs=(r=Xs)||null!==n.memoizedState,pl(e,t,n),Xs=r):pl(e,t,n);break;default:pl(e,t,n)}}function ml(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new Js),t.forEach((function(t){var r=Tc.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))}))}}function gl(e,t){var n=t.deletions;if(null!==n)for(var r=0;r<n.length;r++){var o=n[r];try{var a=e,s=t,l=s;e:for(;null!==l;){switch(l.tag){case 5:fl=l.stateNode,dl=!1;break e;case 3:case 4:fl=l.stateNode.containerInfo,dl=!0;break e}l=l.return}if(null===fl)throw Error(i(160));hl(a,s,o),fl=null,dl=!1;var c=o.alternate;null!==c&&(c.return=null),o.return=null}catch(u){jc(o,t,u)}}if(12854&t.subtreeFlags)for(t=t.child;null!==t;)yl(t,e),t=t.sibling}function yl(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(gl(t,e),vl(e),4&r){try{rl(3,e,e.return),ol(3,e)}catch(g){jc(e,e.return,g)}try{rl(5,e,e.return)}catch(g){jc(e,e.return,g)}}break;case 1:gl(t,e),vl(e),512&r&&null!==n&&el(n,n.return);break;case 5:if(gl(t,e),vl(e),512&r&&null!==n&&el(n,n.return),32&e.flags){var o=e.stateNode;try{de(o,"")}catch(g){jc(e,e.return,g)}}if(4&r&&null!=(o=e.stateNode)){var a=e.memoizedProps,s=null!==n?n.memoizedProps:a,l=e.type,c=e.updateQueue;if(e.updateQueue=null,null!==c)try{"input"===l&&"radio"===a.type&&null!=a.name&&X(o,a),be(l,s);var u=be(l,a);for(s=0;s<c.length;s+=2){var f=c[s],d=c[s+1];"style"===f?ge(o,d):"dangerouslySetInnerHTML"===f?fe(o,d):"children"===f?de(o,d):b(o,f,d,u)}switch(l){case"input":J(o,a);break;case"textarea":ie(o,a);break;case"select":var p=o._wrapperState.wasMultiple;o._wrapperState.wasMultiple=!!a.multiple;var h=a.value;null!=h?ne(o,!!a.multiple,h,!1):p!==!!a.multiple&&(null!=a.defaultValue?ne(o,!!a.multiple,a.defaultValue,!0):ne(o,!!a.multiple,a.multiple?[]:"",!1))}o[ho]=a}catch(g){jc(e,e.return,g)}}break;case 6:if(gl(t,e),vl(e),4&r){if(null===e.stateNode)throw Error(i(162));o=e.stateNode,a=e.memoizedProps;try{o.nodeValue=a}catch(g){jc(e,e.return,g)}}break;case 3:if(gl(t,e),vl(e),4&r&&null!==n&&n.memoizedState.isDehydrated)try{Ht(t.containerInfo)}catch(g){jc(e,e.return,g)}break;case 4:default:gl(t,e),vl(e);break;case 13:gl(t,e),vl(e),8192&(o=e.child).flags&&(a=null!==o.memoizedState,o.stateNode.isHidden=a,!a||null!==o.alternate&&null!==o.alternate.memoizedState||(Hl=Xe())),4&r&&ml(e);break;case 22:if(f=null!==n&&null!==n.memoizedState,1&e.mode?(Xs=(u=Xs)||f,gl(t,e),Xs=u):gl(t,e),vl(e),8192&r){if(u=null!==e.memoizedState,(e.stateNode.isHidden=u)&&!f&&0!==(1&e.mode))for(Zs=e,f=e.child;null!==f;){for(d=Zs=f;null!==Zs;){switch(h=(p=Zs).child,p.tag){case 0:case 11:case 14:case 15:rl(4,p,p.return);break;case 1:el(p,p.return);var m=p.stateNode;if("function"===typeof m.componentWillUnmount){r=p,n=p.return;try{t=r,m.props=t.memoizedProps,m.state=t.memoizedState,m.componentWillUnmount()}catch(g){jc(r,n,g)}}break;case 5:el(p,p.return);break;case 22:if(null!==p.memoizedState){El(d);continue}}null!==h?(h.return=p,Zs=h):El(d)}f=f.sibling}e:for(f=null,d=e;;){if(5===d.tag){if(null===f){f=d;try{o=d.stateNode,u?"function"===typeof(a=o.style).setProperty?a.setProperty("display","none","important"):a.display="none":(l=d.stateNode,s=void 0!==(c=d.memoizedProps.style)&&null!==c&&c.hasOwnProperty("display")?c.display:null,l.style.display=me("display",s))}catch(g){jc(e,e.return,g)}}}else if(6===d.tag){if(null===f)try{d.stateNode.nodeValue=u?"":d.memoizedProps}catch(g){jc(e,e.return,g)}}else if((22!==d.tag&&23!==d.tag||null===d.memoizedState||d===e)&&null!==d.child){d.child.return=d,d=d.child;continue}if(d===e)break e;for(;null===d.sibling;){if(null===d.return||d.return===e)break e;f===d&&(f=null),d=d.return}f===d&&(f=null),d.sibling.return=d.return,d=d.sibling}}break;case 19:gl(t,e),vl(e),4&r&&ml(e);case 21:}}function vl(e){var t=e.flags;if(2&t){try{e:{for(var n=e.return;null!==n;){if(sl(n)){var r=n;break e}n=n.return}throw Error(i(160))}switch(r.tag){case 5:var o=r.stateNode;32&r.flags&&(de(o,""),r.flags&=-33),ul(e,ll(e),o);break;case 3:case 4:var a=r.stateNode.containerInfo;cl(e,ll(e),a);break;default:throw Error(i(161))}}catch(s){jc(e,e.return,s)}e.flags&=-3}4096&t&&(e.flags&=-4097)}function bl(e,t,n){Zs=e,wl(e,t,n)}function wl(e,t,n){for(var r=0!==(1&e.mode);null!==Zs;){var o=Zs,i=o.child;if(22===o.tag&&r){var a=null!==o.memoizedState||Qs;if(!a){var s=o.alternate,l=null!==s&&null!==s.memoizedState||Xs;s=Qs;var c=Xs;if(Qs=a,(Xs=l)&&!c)for(Zs=o;null!==Zs;)l=(a=Zs).child,22===a.tag&&null!==a.memoizedState?Sl(o):null!==l?(l.return=a,Zs=l):Sl(o);for(;null!==i;)Zs=i,wl(i,t,n),i=i.sibling;Zs=o,Qs=s,Xs=c}xl(e)}else 0!==(8772&o.subtreeFlags)&&null!==i?(i.return=o,Zs=i):xl(e)}}function xl(e){for(;null!==Zs;){var t=Zs;if(0!==(8772&t.flags)){var n=t.alternate;try{if(0!==(8772&t.flags))switch(t.tag){case 0:case 11:case 15:Xs||ol(5,t);break;case 1:var r=t.stateNode;if(4&t.flags&&!Xs)if(null===n)r.componentDidMount();else{var o=t.elementType===t.type?n.memoizedProps:yi(t.type,n.memoizedProps);r.componentDidUpdate(o,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var a=t.updateQueue;null!==a&&Bi(t,a,r);break;case 3:var s=t.updateQueue;if(null!==s){if(n=null,null!==t.child)switch(t.child.tag){case 5:case 1:n=t.child.stateNode}Bi(t,s,n)}break;case 5:var l=t.stateNode;if(null===n&&4&t.flags){n=l;var c=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":c.autoFocus&&n.focus();break;case"img":c.src&&(n.src=c.src)}}break;case 6:case 4:case 12:case 19:case 17:case 21:case 22:case 23:case 25:break;case 13:if(null===t.memoizedState){var u=t.alternate;if(null!==u){var f=u.memoizedState;if(null!==f){var d=f.dehydrated;null!==d&&Ht(d)}}}break;default:throw Error(i(163))}Xs||512&t.flags&&il(t)}catch(p){jc(t,t.return,p)}}if(t===e){Zs=null;break}if(null!==(n=t.sibling)){n.return=t.return,Zs=n;break}Zs=t.return}}function El(e){for(;null!==Zs;){var t=Zs;if(t===e){Zs=null;break}var n=t.sibling;if(null!==n){n.return=t.return,Zs=n;break}Zs=t.return}}function Sl(e){for(;null!==Zs;){var t=Zs;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{ol(4,t)}catch(l){jc(t,n,l)}break;case 1:var r=t.stateNode;if("function"===typeof r.componentDidMount){var o=t.return;try{r.componentDidMount()}catch(l){jc(t,o,l)}}var i=t.return;try{il(t)}catch(l){jc(t,i,l)}break;case 5:var a=t.return;try{il(t)}catch(l){jc(t,a,l)}}}catch(l){jc(t,t.return,l)}if(t===e){Zs=null;break}var s=t.sibling;if(null!==s){s.return=t.return,Zs=s;break}Zs=t.return}}var kl,jl=Math.ceil,Ol=w.ReactCurrentDispatcher,Cl=w.ReactCurrentOwner,Nl=w.ReactCurrentBatchConfig,Tl=0,Pl=null,Ll=null,Rl=0,Al=0,_l=jo(0),Il=0,Ml=null,Dl=0,Fl=0,Bl=0,zl=null,Ul=null,Hl=0,Wl=1/0,Vl=null,ql=!1,$l=null,Kl=null,Gl=!1,Yl=null,Ql=0,Xl=0,Jl=null,Zl=-1,ec=0;function tc(){return 0!==(6&Tl)?Xe():-1!==Zl?Zl:Zl=Xe()}function nc(e){return 0===(1&e.mode)?1:0!==(2&Tl)&&0!==Rl?Rl&-Rl:null!==gi.transition?(0===ec&&(ec=mt()),ec):0!==(e=bt)?e:e=void 0===(e=window.event)?16:Qt(e.type)}function rc(e,t,n,r){if(50<Xl)throw Xl=0,Jl=null,Error(i(185));yt(e,n,r),0!==(2&Tl)&&e===Pl||(e===Pl&&(0===(2&Tl)&&(Fl|=n),4===Il&&lc(e,Rl)),oc(e,r),1===n&&0===Tl&&0===(1&t.mode)&&(Wl=Xe()+500,zo&&Wo()))}function oc(e,t){var n=e.callbackNode;!function(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,o=e.expirationTimes,i=e.pendingLanes;0<i;){var a=31-at(i),s=1<<a,l=o[a];-1===l?0!==(s&n)&&0===(s&r)||(o[a]=pt(s,t)):l<=t&&(e.expiredLanes|=s),i&=~s}}(e,t);var r=dt(e,e===Pl?Rl:0);if(0===r)null!==n&&Ge(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(null!=n&&Ge(n),1===t)0===e.tag?function(e){zo=!0,Ho(e)}(cc.bind(null,e)):Ho(cc.bind(null,e)),ao((function(){0===(6&Tl)&&Wo()})),n=null;else{switch(wt(r)){case 1:n=Ze;break;case 4:n=et;break;case 16:default:n=tt;break;case 536870912:n=rt}n=Pc(n,ic.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function ic(e,t){if(Zl=-1,ec=0,0!==(6&Tl))throw Error(i(327));var n=e.callbackNode;if(Sc()&&e.callbackNode!==n)return null;var r=dt(e,e===Pl?Rl:0);if(0===r)return null;if(0!==(30&r)||0!==(r&e.expiredLanes)||t)t=yc(e,r);else{t=r;var o=Tl;Tl|=2;var a=mc();for(Pl===e&&Rl===t||(Vl=null,Wl=Xe()+500,pc(e,t));;)try{bc();break}catch(l){hc(e,l)}Ei(),Ol.current=a,Tl=o,null!==Ll?t=0:(Pl=null,Rl=0,t=Il)}if(0!==t){if(2===t&&(0!==(o=ht(e))&&(r=o,t=ac(e,o))),1===t)throw n=Ml,pc(e,0),lc(e,r),oc(e,Xe()),n;if(6===t)lc(e,r);else{if(o=e.current.alternate,0===(30&r)&&!function(e){for(var t=e;;){if(16384&t.flags){var n=t.updateQueue;if(null!==n&&null!==(n=n.stores))for(var r=0;r<n.length;r++){var o=n[r],i=o.getSnapshot;o=o.value;try{if(!sr(i(),o))return!1}catch(s){return!1}}}if(n=t.child,16384&t.subtreeFlags&&null!==n)n.return=t,t=n;else{if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}(o)&&(2===(t=yc(e,r))&&(0!==(a=ht(e))&&(r=a,t=ac(e,a))),1===t))throw n=Ml,pc(e,0),lc(e,r),oc(e,Xe()),n;switch(e.finishedWork=o,e.finishedLanes=r,t){case 0:case 1:throw Error(i(345));case 2:case 5:Ec(e,Ul,Vl);break;case 3:if(lc(e,r),(130023424&r)===r&&10<(t=Hl+500-Xe())){if(0!==dt(e,0))break;if(((o=e.suspendedLanes)&r)!==r){tc(),e.pingedLanes|=e.suspendedLanes&o;break}e.timeoutHandle=ro(Ec.bind(null,e,Ul,Vl),t);break}Ec(e,Ul,Vl);break;case 4:if(lc(e,r),(4194240&r)===r)break;for(t=e.eventTimes,o=-1;0<r;){var s=31-at(r);a=1<<s,(s=t[s])>o&&(o=s),r&=~a}if(r=o,10<(r=(120>(r=Xe()-r)?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*jl(r/1960))-r)){e.timeoutHandle=ro(Ec.bind(null,e,Ul,Vl),r);break}Ec(e,Ul,Vl);break;default:throw Error(i(329))}}}return oc(e,Xe()),e.callbackNode===n?ic.bind(null,e):null}function ac(e,t){var n=zl;return e.current.memoizedState.isDehydrated&&(pc(e,t).flags|=256),2!==(e=yc(e,t))&&(t=Ul,Ul=n,null!==t&&sc(t)),e}function sc(e){null===Ul?Ul=e:Ul.push.apply(Ul,e)}function lc(e,t){for(t&=~Bl,t&=~Fl,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-at(t),r=1<<n;e[n]=-1,t&=~r}}function cc(e){if(0!==(6&Tl))throw Error(i(327));Sc();var t=dt(e,0);if(0===(1&t))return oc(e,Xe()),null;var n=yc(e,t);if(0!==e.tag&&2===n){var r=ht(e);0!==r&&(t=r,n=ac(e,r))}if(1===n)throw n=Ml,pc(e,0),lc(e,t),oc(e,Xe()),n;if(6===n)throw Error(i(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Ec(e,Ul,Vl),oc(e,Xe()),null}function uc(e,t){var n=Tl;Tl|=1;try{return e(t)}finally{0===(Tl=n)&&(Wl=Xe()+500,zo&&Wo())}}function fc(e){null!==Yl&&0===Yl.tag&&0===(6&Tl)&&Sc();var t=Tl;Tl|=1;var n=Nl.transition,r=bt;try{if(Nl.transition=null,bt=1,e)return e()}finally{bt=r,Nl.transition=n,0===(6&(Tl=t))&&Wo()}}function dc(){Al=_l.current,Oo(_l)}function pc(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,oo(n)),null!==Ll)for(n=Ll.return;null!==n;){var r=n;switch(ni(r),r.tag){case 1:null!==(r=r.type.childContextTypes)&&void 0!==r&&_o();break;case 3:ia(),Oo(Po),Oo(To),fa();break;case 5:sa(r);break;case 4:ia();break;case 13:case 19:Oo(la);break;case 10:Si(r.type._context);break;case 22:case 23:dc()}n=n.return}if(Pl=e,Ll=e=_c(e.current,null),Rl=Al=t,Il=0,Ml=null,Bl=Fl=Dl=0,Ul=zl=null,null!==Ci){for(t=0;t<Ci.length;t++)if(null!==(r=(n=Ci[t]).interleaved)){n.interleaved=null;var o=r.next,i=n.pending;if(null!==i){var a=i.next;i.next=o,r.next=a}n.pending=r}Ci=null}return e}function hc(e,t){for(;;){var n=Ll;try{if(Ei(),da.current=as,va){for(var r=ma.memoizedState;null!==r;){var o=r.queue;null!==o&&(o.pending=null),r=r.next}va=!1}if(ha=0,ya=ga=ma=null,ba=!1,wa=0,Cl.current=null,null===n||null===n.return){Il=1,Ml=t,Ll=null;break}e:{var a=e,s=n.return,l=n,c=t;if(t=Rl,l.flags|=32768,null!==c&&"object"===typeof c&&"function"===typeof c.then){var u=c,f=l,d=f.tag;if(0===(1&f.mode)&&(0===d||11===d||15===d)){var p=f.alternate;p?(f.updateQueue=p.updateQueue,f.memoizedState=p.memoizedState,f.lanes=p.lanes):(f.updateQueue=null,f.memoizedState=null)}var h=ys(s);if(null!==h){h.flags&=-257,vs(h,s,l,0,t),1&h.mode&&gs(a,u,t),c=u;var m=(t=h).updateQueue;if(null===m){var g=new Set;g.add(c),t.updateQueue=g}else m.add(c);break e}if(0===(1&t)){gs(a,u,t),gc();break e}c=Error(i(426))}else if(ii&&1&l.mode){var y=ys(s);if(null!==y){0===(65536&y.flags)&&(y.flags|=256),vs(y,s,l,0,t),mi(us(c,l));break e}}a=c=us(c,l),4!==Il&&(Il=2),null===zl?zl=[a]:zl.push(a),a=s;do{switch(a.tag){case 3:a.flags|=65536,t&=-t,a.lanes|=t,Di(a,hs(0,c,t));break e;case 1:l=c;var v=a.type,b=a.stateNode;if(0===(128&a.flags)&&("function"===typeof v.getDerivedStateFromError||null!==b&&"function"===typeof b.componentDidCatch&&(null===Kl||!Kl.has(b)))){a.flags|=65536,t&=-t,a.lanes|=t,Di(a,ms(a,l,t));break e}}a=a.return}while(null!==a)}xc(n)}catch(w){t=w,Ll===n&&null!==n&&(Ll=n=n.return);continue}break}}function mc(){var e=Ol.current;return Ol.current=as,null===e?as:e}function gc(){0!==Il&&3!==Il&&2!==Il||(Il=4),null===Pl||0===(268435455&Dl)&&0===(268435455&Fl)||lc(Pl,Rl)}function yc(e,t){var n=Tl;Tl|=2;var r=mc();for(Pl===e&&Rl===t||(Vl=null,pc(e,t));;)try{vc();break}catch(o){hc(e,o)}if(Ei(),Tl=n,Ol.current=r,null!==Ll)throw Error(i(261));return Pl=null,Rl=0,Il}function vc(){for(;null!==Ll;)wc(Ll)}function bc(){for(;null!==Ll&&!Ye();)wc(Ll)}function wc(e){var t=kl(e.alternate,e,Al);e.memoizedProps=e.pendingProps,null===t?xc(e):Ll=t,Cl.current=null}function xc(e){var t=e;do{var n=t.alternate;if(e=t.return,0===(32768&t.flags)){if(null!==(n=Gs(n,t,Al)))return void(Ll=n)}else{if(null!==(n=Ys(n,t)))return n.flags&=32767,void(Ll=n);if(null===e)return Il=6,void(Ll=null);e.flags|=32768,e.subtreeFlags=0,e.deletions=null}if(null!==(t=t.sibling))return void(Ll=t);Ll=t=e}while(null!==t);0===Il&&(Il=5)}function Ec(e,t,n){var r=bt,o=Nl.transition;try{Nl.transition=null,bt=1,function(e,t,n,r){do{Sc()}while(null!==Yl);if(0!==(6&Tl))throw Error(i(327));n=e.finishedWork;var o=e.finishedLanes;if(null===n)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(i(177));e.callbackNode=null,e.callbackPriority=0;var a=n.lanes|n.childLanes;if(function(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var o=31-at(n),i=1<<o;t[o]=0,r[o]=-1,e[o]=-1,n&=~i}}(e,a),e===Pl&&(Ll=Pl=null,Rl=0),0===(2064&n.subtreeFlags)&&0===(2064&n.flags)||Gl||(Gl=!0,Pc(tt,(function(){return Sc(),null}))),a=0!==(15990&n.flags),0!==(15990&n.subtreeFlags)||a){a=Nl.transition,Nl.transition=null;var s=bt;bt=1;var l=Tl;Tl|=4,Cl.current=null,function(e,t){if(eo=Vt,pr(e=dr())){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{var r=(n=(n=e.ownerDocument)&&n.defaultView||window).getSelection&&n.getSelection();if(r&&0!==r.rangeCount){n=r.anchorNode;var o=r.anchorOffset,a=r.focusNode;r=r.focusOffset;try{n.nodeType,a.nodeType}catch(x){n=null;break e}var s=0,l=-1,c=-1,u=0,f=0,d=e,p=null;t:for(;;){for(var h;d!==n||0!==o&&3!==d.nodeType||(l=s+o),d!==a||0!==r&&3!==d.nodeType||(c=s+r),3===d.nodeType&&(s+=d.nodeValue.length),null!==(h=d.firstChild);)p=d,d=h;for(;;){if(d===e)break t;if(p===n&&++u===o&&(l=s),p===a&&++f===r&&(c=s),null!==(h=d.nextSibling))break;p=(d=p).parentNode}d=h}n=-1===l||-1===c?null:{start:l,end:c}}else n=null}n=n||{start:0,end:0}}else n=null;for(to={focusedElem:e,selectionRange:n},Vt=!1,Zs=t;null!==Zs;)if(e=(t=Zs).child,0!==(1028&t.subtreeFlags)&&null!==e)e.return=t,Zs=e;else for(;null!==Zs;){t=Zs;try{var m=t.alternate;if(0!==(1024&t.flags))switch(t.tag){case 0:case 11:case 15:case 5:case 6:case 4:case 17:break;case 1:if(null!==m){var g=m.memoizedProps,y=m.memoizedState,v=t.stateNode,b=v.getSnapshotBeforeUpdate(t.elementType===t.type?g:yi(t.type,g),y);v.__reactInternalSnapshotBeforeUpdate=b}break;case 3:var w=t.stateNode.containerInfo;1===w.nodeType?w.textContent="":9===w.nodeType&&w.documentElement&&w.removeChild(w.documentElement);break;default:throw Error(i(163))}}catch(x){jc(t,t.return,x)}if(null!==(e=t.sibling)){e.return=t.return,Zs=e;break}Zs=t.return}m=nl,nl=!1}(e,n),yl(n,e),hr(to),Vt=!!eo,to=eo=null,e.current=n,bl(n,e,o),Qe(),Tl=l,bt=s,Nl.transition=a}else e.current=n;if(Gl&&(Gl=!1,Yl=e,Ql=o),a=e.pendingLanes,0===a&&(Kl=null),function(e){if(it&&"function"===typeof it.onCommitFiberRoot)try{it.onCommitFiberRoot(ot,e,void 0,128===(128&e.current.flags))}catch(t){}}(n.stateNode),oc(e,Xe()),null!==t)for(r=e.onRecoverableError,n=0;n<t.length;n++)o=t[n],r(o.value,{componentStack:o.stack,digest:o.digest});if(ql)throw ql=!1,e=$l,$l=null,e;0!==(1&Ql)&&0!==e.tag&&Sc(),a=e.pendingLanes,0!==(1&a)?e===Jl?Xl++:(Xl=0,Jl=e):Xl=0,Wo()}(e,t,n,r)}finally{Nl.transition=o,bt=r}return null}function Sc(){if(null!==Yl){var e=wt(Ql),t=Nl.transition,n=bt;try{if(Nl.transition=null,bt=16>e?16:e,null===Yl)var r=!1;else{if(e=Yl,Yl=null,Ql=0,0!==(6&Tl))throw Error(i(331));var o=Tl;for(Tl|=4,Zs=e.current;null!==Zs;){var a=Zs,s=a.child;if(0!==(16&Zs.flags)){var l=a.deletions;if(null!==l){for(var c=0;c<l.length;c++){var u=l[c];for(Zs=u;null!==Zs;){var f=Zs;switch(f.tag){case 0:case 11:case 15:rl(8,f,a)}var d=f.child;if(null!==d)d.return=f,Zs=d;else for(;null!==Zs;){var p=(f=Zs).sibling,h=f.return;if(al(f),f===u){Zs=null;break}if(null!==p){p.return=h,Zs=p;break}Zs=h}}}var m=a.alternate;if(null!==m){var g=m.child;if(null!==g){m.child=null;do{var y=g.sibling;g.sibling=null,g=y}while(null!==g)}}Zs=a}}if(0!==(2064&a.subtreeFlags)&&null!==s)s.return=a,Zs=s;else e:for(;null!==Zs;){if(0!==(2048&(a=Zs).flags))switch(a.tag){case 0:case 11:case 15:rl(9,a,a.return)}var v=a.sibling;if(null!==v){v.return=a.return,Zs=v;break e}Zs=a.return}}var b=e.current;for(Zs=b;null!==Zs;){var w=(s=Zs).child;if(0!==(2064&s.subtreeFlags)&&null!==w)w.return=s,Zs=w;else e:for(s=b;null!==Zs;){if(0!==(2048&(l=Zs).flags))try{switch(l.tag){case 0:case 11:case 15:ol(9,l)}}catch(E){jc(l,l.return,E)}if(l===s){Zs=null;break e}var x=l.sibling;if(null!==x){x.return=l.return,Zs=x;break e}Zs=l.return}}if(Tl=o,Wo(),it&&"function"===typeof it.onPostCommitFiberRoot)try{it.onPostCommitFiberRoot(ot,e)}catch(E){}r=!0}return r}finally{bt=n,Nl.transition=t}}return!1}function kc(e,t,n){e=Ii(e,t=hs(0,t=us(n,t),1),1),t=tc(),null!==e&&(yt(e,1,t),oc(e,t))}function jc(e,t,n){if(3===e.tag)kc(e,e,n);else for(;null!==t;){if(3===t.tag){kc(t,e,n);break}if(1===t.tag){var r=t.stateNode;if("function"===typeof t.type.getDerivedStateFromError||"function"===typeof r.componentDidCatch&&(null===Kl||!Kl.has(r))){t=Ii(t,e=ms(t,e=us(n,e),1),1),e=tc(),null!==t&&(yt(t,1,e),oc(t,e));break}}t=t.return}}function Oc(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),t=tc(),e.pingedLanes|=e.suspendedLanes&n,Pl===e&&(Rl&n)===n&&(4===Il||3===Il&&(130023424&Rl)===Rl&&500>Xe()-Hl?pc(e,0):Bl|=n),oc(e,t)}function Cc(e,t){0===t&&(0===(1&e.mode)?t=1:(t=ut,0===(130023424&(ut<<=1))&&(ut=4194304)));var n=tc();null!==(e=Pi(e,t))&&(yt(e,t,n),oc(e,n))}function Nc(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),Cc(e,n)}function Tc(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;null!==o&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(i(314))}null!==r&&r.delete(t),Cc(e,n)}function Pc(e,t){return Ke(e,t)}function Lc(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Rc(e,t,n,r){return new Lc(e,t,n,r)}function Ac(e){return!(!(e=e.prototype)||!e.isReactComponent)}function _c(e,t){var n=e.alternate;return null===n?((n=Rc(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=14680064&e.flags,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Ic(e,t,n,r,o,a){var s=2;if(r=e,"function"===typeof e)Ac(e)&&(s=1);else if("string"===typeof e)s=5;else e:switch(e){case S:return Mc(n.children,o,a,t);case k:s=8,o|=8;break;case j:return(e=Rc(12,n,t,2|o)).elementType=j,e.lanes=a,e;case T:return(e=Rc(13,n,t,o)).elementType=T,e.lanes=a,e;case P:return(e=Rc(19,n,t,o)).elementType=P,e.lanes=a,e;case A:return Dc(n,o,a,t);default:if("object"===typeof e&&null!==e)switch(e.$$typeof){case O:s=10;break e;case C:s=9;break e;case N:s=11;break e;case L:s=14;break e;case R:s=16,r=null;break e}throw Error(i(130,null==e?e:typeof e,""))}return(t=Rc(s,n,t,o)).elementType=e,t.type=r,t.lanes=a,t}function Mc(e,t,n,r){return(e=Rc(7,e,r,t)).lanes=n,e}function Dc(e,t,n,r){return(e=Rc(22,e,r,t)).elementType=A,e.lanes=n,e.stateNode={isHidden:!1},e}function Fc(e,t,n){return(e=Rc(6,e,null,t)).lanes=n,e}function Bc(e,t,n){return(t=Rc(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function zc(e,t,n,r,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=gt(0),this.expirationTimes=gt(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=gt(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function Uc(e,t,n,r,o,i,a,s,l){return e=new zc(e,t,n,s,l),1===t?(t=1,!0===i&&(t|=8)):t=0,i=Rc(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Ri(i),e}function Hc(e){if(!e)return No;e:{if(He(e=e._reactInternals)!==e||1!==e.tag)throw Error(i(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Ao(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(null!==t);throw Error(i(171))}if(1===e.tag){var n=e.type;if(Ao(n))return Mo(e,n,t)}return t}function Wc(e,t,n,r,o,i,a,s,l){return(e=Uc(n,r,!0,e,0,i,0,s,l)).context=Hc(null),n=e.current,(i=_i(r=tc(),o=nc(n))).callback=void 0!==t&&null!==t?t:null,Ii(n,i,o),e.current.lanes=o,yt(e,o,r),oc(e,r),e}function Vc(e,t,n,r){var o=t.current,i=tc(),a=nc(o);return n=Hc(n),null===t.context?t.context=n:t.pendingContext=n,(t=_i(i,a)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),null!==(e=Ii(o,t,a))&&(rc(e,o,a,i),Mi(e,o,a)),a}function qc(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function $c(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function Kc(e,t){$c(e,t),(e=e.alternate)&&$c(e,t)}kl=function(e,t,n){if(null!==e)if(e.memoizedProps!==t.pendingProps||Po.current)ws=!0;else{if(0===(e.lanes&n)&&0===(128&t.flags))return ws=!1,function(e,t,n){switch(t.tag){case 3:Ps(t),hi();break;case 5:aa(t);break;case 1:Ao(t.type)&&Do(t);break;case 4:oa(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,o=t.memoizedProps.value;Co(vi,r._currentValue),r._currentValue=o;break;case 13:if(null!==(r=t.memoizedState))return null!==r.dehydrated?(Co(la,1&la.current),t.flags|=128,null):0!==(n&t.child.childLanes)?Fs(e,t,n):(Co(la,1&la.current),null!==(e=qs(e,t,n))?e.sibling:null);Co(la,1&la.current);break;case 19:if(r=0!==(n&t.childLanes),0!==(128&e.flags)){if(r)return Ws(e,t,n);t.flags|=128}if(null!==(o=t.memoizedState)&&(o.rendering=null,o.tail=null,o.lastEffect=null),Co(la,la.current),r)break;return null;case 22:case 23:return t.lanes=0,js(e,t,n)}return qs(e,t,n)}(e,t,n);ws=0!==(131072&e.flags)}else ws=!1,ii&&0!==(1048576&t.flags)&&ei(t,Ko,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Vs(e,t),e=t.pendingProps;var o=Ro(t,To.current);ji(t,n),o=ka(null,t,r,e,o,n);var a=ja();return t.flags|=1,"object"===typeof o&&null!==o&&"function"===typeof o.render&&void 0===o.$$typeof?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Ao(r)?(a=!0,Do(t)):a=!1,t.memoizedState=null!==o.state&&void 0!==o.state?o.state:null,Ri(t),o.updater=Hi,t.stateNode=o,o._reactInternals=t,$i(t,r,e,n),t=Ts(null,t,r,!0,a,n)):(t.tag=0,ii&&a&&ti(t),xs(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Vs(e,t),e=t.pendingProps,r=(o=r._init)(r._payload),t.type=r,o=t.tag=function(e){if("function"===typeof e)return Ac(e)?1:0;if(void 0!==e&&null!==e){if((e=e.$$typeof)===N)return 11;if(e===L)return 14}return 2}(r),e=yi(r,e),o){case 0:t=Cs(null,t,r,e,n);break e;case 1:t=Ns(null,t,r,e,n);break e;case 11:t=Es(null,t,r,e,n);break e;case 14:t=Ss(null,t,r,yi(r.type,e),n);break e}throw Error(i(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,Cs(e,t,r,o=t.elementType===r?o:yi(r,o),n);case 1:return r=t.type,o=t.pendingProps,Ns(e,t,r,o=t.elementType===r?o:yi(r,o),n);case 3:e:{if(Ps(t),null===e)throw Error(i(387));r=t.pendingProps,o=(a=t.memoizedState).element,Ai(e,t),Fi(t,r,null,n);var s=t.memoizedState;if(r=s.element,a.isDehydrated){if(a={element:r,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=a,t.memoizedState=a,256&t.flags){t=Ls(e,t,r,n,o=us(Error(i(423)),t));break e}if(r!==o){t=Ls(e,t,r,n,o=us(Error(i(424)),t));break e}for(oi=co(t.stateNode.containerInfo.firstChild),ri=t,ii=!0,ai=null,n=Ji(t,null,r,n),t.child=n;n;)n.flags=-3&n.flags|4096,n=n.sibling}else{if(hi(),r===o){t=qs(e,t,n);break e}xs(e,t,r,n)}t=t.child}return t;case 5:return aa(t),null===e&&ui(t),r=t.type,o=t.pendingProps,a=null!==e?e.memoizedProps:null,s=o.children,no(r,o)?s=null:null!==a&&no(r,a)&&(t.flags|=32),Os(e,t),xs(e,t,s,n),t.child;case 6:return null===e&&ui(t),null;case 13:return Fs(e,t,n);case 4:return oa(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=Xi(t,null,r,n):xs(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,Es(e,t,r,o=t.elementType===r?o:yi(r,o),n);case 7:return xs(e,t,t.pendingProps,n),t.child;case 8:case 12:return xs(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,a=t.memoizedProps,s=o.value,Co(vi,r._currentValue),r._currentValue=s,null!==a)if(sr(a.value,s)){if(a.children===o.children&&!Po.current){t=qs(e,t,n);break e}}else for(null!==(a=t.child)&&(a.return=t);null!==a;){var l=a.dependencies;if(null!==l){s=a.child;for(var c=l.firstContext;null!==c;){if(c.context===r){if(1===a.tag){(c=_i(-1,n&-n)).tag=2;var u=a.updateQueue;if(null!==u){var f=(u=u.shared).pending;null===f?c.next=c:(c.next=f.next,f.next=c),u.pending=c}}a.lanes|=n,null!==(c=a.alternate)&&(c.lanes|=n),ki(a.return,n,t),l.lanes|=n;break}c=c.next}}else if(10===a.tag)s=a.type===t.type?null:a.child;else if(18===a.tag){if(null===(s=a.return))throw Error(i(341));s.lanes|=n,null!==(l=s.alternate)&&(l.lanes|=n),ki(s,n,t),s=a.sibling}else s=a.child;if(null!==s)s.return=a;else for(s=a;null!==s;){if(s===t){s=null;break}if(null!==(a=s.sibling)){a.return=s.return,s=a;break}s=s.return}a=s}xs(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,ji(t,n),r=r(o=Oi(o)),t.flags|=1,xs(e,t,r,n),t.child;case 14:return o=yi(r=t.type,t.pendingProps),Ss(e,t,r,o=yi(r.type,o),n);case 15:return ks(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:yi(r,o),Vs(e,t),t.tag=1,Ao(r)?(e=!0,Do(t)):e=!1,ji(t,n),Vi(t,r,o),$i(t,r,o,n),Ts(null,t,r,!0,e,n);case 19:return Ws(e,t,n);case 22:return js(e,t,n)}throw Error(i(156,t.tag))};var Gc="function"===typeof reportError?reportError:function(e){console.error(e)};function Yc(e){this._internalRoot=e}function Qc(e){this._internalRoot=e}function Xc(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType)}function Jc(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function Zc(){}function eu(e,t,n,r,o){var i=n._reactRootContainer;if(i){var a=i;if("function"===typeof o){var s=o;o=function(){var e=qc(a);s.call(e)}}Vc(t,a,e,o)}else a=function(e,t,n,r,o){if(o){if("function"===typeof r){var i=r;r=function(){var e=qc(a);i.call(e)}}var a=Wc(t,r,e,0,null,!1,0,"",Zc);return e._reactRootContainer=a,e[mo]=a.current,Hr(8===e.nodeType?e.parentNode:e),fc(),a}for(;o=e.lastChild;)e.removeChild(o);if("function"===typeof r){var s=r;r=function(){var e=qc(l);s.call(e)}}var l=Uc(e,0,!1,null,0,!1,0,"",Zc);return e._reactRootContainer=l,e[mo]=l.current,Hr(8===e.nodeType?e.parentNode:e),fc((function(){Vc(t,l,n,r)})),l}(n,t,e,o,r);return qc(a)}Qc.prototype.render=Yc.prototype.render=function(e){var t=this._internalRoot;if(null===t)throw Error(i(409));Vc(e,t,null,null)},Qc.prototype.unmount=Yc.prototype.unmount=function(){var e=this._internalRoot;if(null!==e){this._internalRoot=null;var t=e.containerInfo;fc((function(){Vc(null,e,null,null)})),t[mo]=null}},Qc.prototype.unstable_scheduleHydration=function(e){if(e){var t=kt();e={blockedOn:null,target:e,priority:t};for(var n=0;n<At.length&&0!==t&&t<At[n].priority;n++);At.splice(n,0,e),0===n&&Dt(e)}},xt=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=ft(t.pendingLanes);0!==n&&(vt(t,1|n),oc(t,Xe()),0===(6&Tl)&&(Wl=Xe()+500,Wo()))}break;case 13:fc((function(){var t=Pi(e,1);if(null!==t){var n=tc();rc(t,e,1,n)}})),Kc(e,1)}},Et=function(e){if(13===e.tag){var t=Pi(e,134217728);if(null!==t)rc(t,e,134217728,tc());Kc(e,134217728)}},St=function(e){if(13===e.tag){var t=nc(e),n=Pi(e,t);if(null!==n)rc(n,e,t,tc());Kc(e,t)}},kt=function(){return bt},jt=function(e,t){var n=bt;try{return bt=e,t()}finally{bt=n}},Ee=function(e,t,n){switch(t){case"input":if(J(e,n),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var o=Eo(r);if(!o)throw Error(i(90));K(r),J(r,o)}}}break;case"textarea":ie(e,n);break;case"select":null!=(t=n.value)&&ne(e,!!n.multiple,t,!1)}},Ne=uc,Te=fc;var tu={usingClientEntryPoint:!1,Events:[wo,xo,Eo,Oe,Ce,uc]},nu={findFiberByHostInstance:bo,bundleType:0,version:"18.2.0",rendererPackageName:"react-dom"},ru={bundleType:nu.bundleType,version:nu.version,rendererPackageName:nu.rendererPackageName,rendererConfig:nu.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:w.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=qe(e))?null:e.stateNode},findFiberByHostInstance:nu.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.2.0-next-9e3b772b8-20220608"};if("undefined"!==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var ou=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!ou.isDisabled&&ou.supportsFiber)try{ot=ou.inject(ru),it=ou}catch(ue){}}t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=tu,t.createPortal=function(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!Xc(t))throw Error(i(200));return function(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:E,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}(e,t,null,n)},t.createRoot=function(e,t){if(!Xc(e))throw Error(i(299));var n=!1,r="",o=Gc;return null!==t&&void 0!==t&&(!0===t.unstable_strictMode&&(n=!0),void 0!==t.identifierPrefix&&(r=t.identifierPrefix),void 0!==t.onRecoverableError&&(o=t.onRecoverableError)),t=Uc(e,1,!1,null,0,n,0,r,o),e[mo]=t.current,Hr(8===e.nodeType?e.parentNode:e),new Yc(t)},t.findDOMNode=function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternals;if(void 0===t){if("function"===typeof e.render)throw Error(i(188));throw e=Object.keys(e).join(","),Error(i(268,e))}return e=null===(e=qe(t))?null:e.stateNode},t.flushSync=function(e){return fc(e)},t.hydrate=function(e,t,n){if(!Jc(t))throw Error(i(200));return eu(null,e,t,!0,n)},t.hydrateRoot=function(e,t,n){if(!Xc(e))throw Error(i(405));var r=null!=n&&n.hydratedSources||null,o=!1,a="",s=Gc;if(null!==n&&void 0!==n&&(!0===n.unstable_strictMode&&(o=!0),void 0!==n.identifierPrefix&&(a=n.identifierPrefix),void 0!==n.onRecoverableError&&(s=n.onRecoverableError)),t=Wc(t,null,e,1,null!=n?n:null,o,0,a,s),e[mo]=t.current,Hr(e),r)for(e=0;e<r.length;e++)o=(o=(n=r[e])._getVersion)(n._source),null==t.mutableSourceEagerHydrationData?t.mutableSourceEagerHydrationData=[n,o]:t.mutableSourceEagerHydrationData.push(n,o);return new Qc(t)},t.render=function(e,t,n){if(!Jc(t))throw Error(i(200));return eu(null,e,t,!1,n)},t.unmountComponentAtNode=function(e){if(!Jc(e))throw Error(i(40));return!!e._reactRootContainer&&(fc((function(){eu(null,null,e,!1,(function(){e._reactRootContainer=null,e[mo]=null}))})),!0)},t.unstable_batchedUpdates=uc,t.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Jc(n))throw Error(i(200));if(null==e||void 0===e._reactInternals)throw Error(i(38));return eu(e,t,n,!1,r)},t.version="18.2.0-next-9e3b772b8-20220608"},391:(e,t,n)=>{"use strict";var r=n(950);t.createRoot=r.createRoot,t.hydrateRoot=r.hydrateRoot},950:(e,t,n)=>{"use strict";!function e(){if("undefined"!==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"===typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}(),e.exports=n(730)},366:e=>{var t="undefined"!==typeof Element,n="function"===typeof Map,r="function"===typeof Set,o="function"===typeof ArrayBuffer&&!!ArrayBuffer.isView;function i(e,a){if(e===a)return!0;if(e&&a&&"object"==typeof e&&"object"==typeof a){if(e.constructor!==a.constructor)return!1;var s,l,c,u;if(Array.isArray(e)){if((s=e.length)!=a.length)return!1;for(l=s;0!==l--;)if(!i(e[l],a[l]))return!1;return!0}if(n&&e instanceof Map&&a instanceof Map){if(e.size!==a.size)return!1;for(u=e.entries();!(l=u.next()).done;)if(!a.has(l.value[0]))return!1;for(u=e.entries();!(l=u.next()).done;)if(!i(l.value[1],a.get(l.value[0])))return!1;return!0}if(r&&e instanceof Set&&a instanceof Set){if(e.size!==a.size)return!1;for(u=e.entries();!(l=u.next()).done;)if(!a.has(l.value[0]))return!1;return!0}if(o&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(a)){if((s=e.length)!=a.length)return!1;for(l=s;0!==l--;)if(e[l]!==a[l])return!1;return!0}if(e.constructor===RegExp)return e.source===a.source&&e.flags===a.flags;if(e.valueOf!==Object.prototype.valueOf&&"function"===typeof e.valueOf&&"function"===typeof a.valueOf)return e.valueOf()===a.valueOf();if(e.toString!==Object.prototype.toString&&"function"===typeof e.toString&&"function"===typeof a.toString)return e.toString()===a.toString();if((s=(c=Object.keys(e)).length)!==Object.keys(a).length)return!1;for(l=s;0!==l--;)if(!Object.prototype.hasOwnProperty.call(a,c[l]))return!1;if(t&&e instanceof Element)return!1;for(l=s;0!==l--;)if(("_owner"!==c[l]&&"__v"!==c[l]&&"__o"!==c[l]||!e.$$typeof)&&!i(e[c[l]],a[c[l]]))return!1;return!0}return e!==e&&a!==a}e.exports=function(e,t){try{return i(e,t)}catch(n){if((n.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw n}}},999:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.set=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(l&&!1!==c.freeze)throw new Error("react-global-configuration - Configuration is already set, the initial call should have 'freeze' set to false to allow for this behaviour (e.g. in testing");null==l&&(l={});if(t)for(var n in t){if(-1===f.indexOf(n))throw new Error("react-global-configuration - Unrecognised option '".concat(n,"' passed to set"));var i=t[n];if(-1!==p.indexOf(n)&&"string"!==typeof i)throw new Error("react-global-configuration - Unexpected value type for ".concat(n," : ").concat(s(i),", string expected"));if(-1!==d.indexOf(n)&&"boolean"!==typeof i)throw new Error("react-global-configuration - Unexpected value type for ".concat(n," : ").concat(s(i),", boolean expected"));-1!==h.indexOf(n)&&(c[n]=i)}var a=void 0!==t.environment?t.environment:"global";t.assign?l[a]=(0,r.default)(g(a),e):l[a]=e;!1!==c.freeze&&Object.freeze&&Object.getOwnPropertyNames?l=(0,o.default)(l):Object.freeze&&Object.getOwnPropertyNames||v("react-global-configuration - Could not call freeze as native functions arent't available")},t.get=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;l||v("react-global-configuration - Configuration has not been set.");var n=y(g(),e);if(u){var r=g(u),o=y(null!==r?r:{},e);n=void 0!==o?o:n}if(void 0!==n)return n;void 0!==e?n=t:(v("react-global-configuration - There is no value with the key: ".concat(e)),n=g());return n},t.serialize=function(e){var t=g(e);return(0,i.default)(t)},t.setEnvironment=function(e){if(void 0===e)throw new Error("react-global-configuration - You have to define an environment");if(null!==e&&"string"!==typeof e)throw new Error("react-global-configuration - Unexpected environment value, null or string expected");return u=e};var r=a(n(123)),o=a(n(562)),i=a(n(474));function a(e){return e&&e.__esModule?e:{default:e}}function s(e){return s="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},s(e)}var l=null,c={},u=null,f=["freeze","assign","environment"],d=["freeze","assign"],p=["environment"],h=["freeze"],m=["development","test"];function g(e){return e=void 0!==e?e:"global",l&&void 0!==l[e]?l[e]:null}function y(e,t){if(t=void 0!==t?t:"","undefined"!==typeof e){var n=t.indexOf(".");return n>-1?y(e[t.substring(0,n)],t.substr(n+1)):e[t]}}function v(e){m.indexOf("production")}},273:(e,t,n)=>{"use strict";var r=n(999);r.get,r.set,r.serialize,r.setEnvironment},861:e=>{"use strict";var t=function(e,t){return e+n(t)},n=function(e){return null===e||"boolean"===typeof e||"undefined"===typeof e?"":"number"===typeof e?e.toString():"string"===typeof e?e:Array.isArray(e)?e.reduce(t,""):function(e){return Object.prototype.hasOwnProperty.call(e,"props")}(e)&&Object.prototype.hasOwnProperty.call(e.props,"children")?n(e.props.children):""};n.default=n,e.exports=n},358:(e,t)=>{"use strict";var n,r=Symbol.for("react.element"),o=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),l=Symbol.for("react.provider"),c=Symbol.for("react.context"),u=Symbol.for("react.server_context"),f=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),p=Symbol.for("react.suspense_list"),h=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),g=Symbol.for("react.offscreen");function y(e){if("object"===typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case i:case s:case a:case d:case p:return e;default:switch(e=e&&e.$$typeof){case u:case c:case f:case m:case h:case l:return e;default:return t}}case o:return t}}}n=Symbol.for("react.module.reference")},706:(e,t,n)=>{"use strict";n(358)},161:(e,t,n)=>{"use strict";var r,o=n(43),i=(r=o)&&"object"===typeof r&&"default"in r?r.default:r;function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var s=!("undefined"===typeof window||!window.document||!window.document.createElement);e.exports=function(e,t,n){if("function"!==typeof e)throw new Error("Expected reducePropsToState to be a function.");if("function"!==typeof t)throw new Error("Expected handleStateChangeOnClient to be a function.");if("undefined"!==typeof n&&"function"!==typeof n)throw new Error("Expected mapStateOnServer to either be undefined or a function.");return function(r){if("function"!==typeof r)throw new Error("Expected WrappedComponent to be a React component.");var l,c=[];function u(){l=e(c.map((function(e){return e.props}))),f.canUseDOM?t(l):n&&(l=n(l))}var f=function(e){var t,n;function o(){return e.apply(this,arguments)||this}n=e,(t=o).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n,o.peek=function(){return l},o.rewind=function(){if(o.canUseDOM)throw new Error("You may only call rewind() on the server. Call peek() to read the current state.");var e=l;return l=void 0,c=[],e};var a=o.prototype;return a.UNSAFE_componentWillMount=function(){c.push(this),u()},a.componentDidUpdate=function(){u()},a.componentWillUnmount=function(){var e=c.indexOf(this);c.splice(e,1),u()},a.render=function(){return i.createElement(r,this.props)},o}(o.PureComponent);return a(f,"displayName","SideEffect("+function(e){return e.displayName||e.name||"Component"}(r)+")"),a(f,"canUseDOM",s),f}}},153:(e,t,n)=>{"use strict";var r=n(43),o=Symbol.for("react.element"),i=Symbol.for("react.fragment"),a=Object.prototype.hasOwnProperty,s=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l={key:!0,ref:!0,__self:!0,__source:!0};function c(e,t,n){var r,i={},c=null,u=null;for(r in void 0!==n&&(c=""+n),void 0!==t.key&&(c=""+t.key),void 0!==t.ref&&(u=t.ref),t)a.call(t,r)&&!l.hasOwnProperty(r)&&(i[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===i[r]&&(i[r]=t[r]);return{$$typeof:o,type:e,key:c,ref:u,props:i,_owner:s.current}}t.Fragment=i,t.jsx=c,t.jsxs=c},202:(e,t)=>{"use strict";var n=Symbol.for("react.element"),r=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),l=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),f=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),p=Symbol.iterator;var h={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},m=Object.assign,g={};function y(e,t,n){this.props=e,this.context=t,this.refs=g,this.updater=n||h}function v(){}function b(e,t,n){this.props=e,this.context=t,this.refs=g,this.updater=n||h}y.prototype.isReactComponent={},y.prototype.setState=function(e,t){if("object"!==typeof e&&"function"!==typeof e&&null!=e)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},y.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},v.prototype=y.prototype;var w=b.prototype=new v;w.constructor=b,m(w,y.prototype),w.isPureReactComponent=!0;var x=Array.isArray,E=Object.prototype.hasOwnProperty,S={current:null},k={key:!0,ref:!0,__self:!0,__source:!0};function j(e,t,r){var o,i={},a=null,s=null;if(null!=t)for(o in void 0!==t.ref&&(s=t.ref),void 0!==t.key&&(a=""+t.key),t)E.call(t,o)&&!k.hasOwnProperty(o)&&(i[o]=t[o]);var l=arguments.length-2;if(1===l)i.children=r;else if(1<l){for(var c=Array(l),u=0;u<l;u++)c[u]=arguments[u+2];i.children=c}if(e&&e.defaultProps)for(o in l=e.defaultProps)void 0===i[o]&&(i[o]=l[o]);return{$$typeof:n,type:e,key:a,ref:s,props:i,_owner:S.current}}function O(e){return"object"===typeof e&&null!==e&&e.$$typeof===n}var C=/\/+/g;function N(e,t){return"object"===typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,(function(e){return t[e]}))}(""+e.key):t.toString(36)}function T(e,t,o,i,a){var s=typeof e;"undefined"!==s&&"boolean"!==s||(e=null);var l=!1;if(null===e)l=!0;else switch(s){case"string":case"number":l=!0;break;case"object":switch(e.$$typeof){case n:case r:l=!0}}if(l)return a=a(l=e),e=""===i?"."+N(l,0):i,x(a)?(o="",null!=e&&(o=e.replace(C,"$&/")+"/"),T(a,t,o,"",(function(e){return e}))):null!=a&&(O(a)&&(a=function(e,t){return{$$typeof:n,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(a,o+(!a.key||l&&l.key===a.key?"":(""+a.key).replace(C,"$&/")+"/")+e)),t.push(a)),1;if(l=0,i=""===i?".":i+":",x(e))for(var c=0;c<e.length;c++){var u=i+N(s=e[c],c);l+=T(s,t,o,u,a)}else if(u=function(e){return null===e||"object"!==typeof e?null:"function"===typeof(e=p&&e[p]||e["@@iterator"])?e:null}(e),"function"===typeof u)for(e=u.call(e),c=0;!(s=e.next()).done;)l+=T(s=s.value,t,o,u=i+N(s,c++),a);else if("object"===s)throw t=String(e),Error("Objects are not valid as a React child (found: "+("[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return l}function P(e,t,n){if(null==e)return e;var r=[],o=0;return T(e,r,"","",(function(e){return t.call(n,e,o++)})),r}function L(e){if(-1===e._status){var t=e._result;(t=t()).then((function(t){0!==e._status&&-1!==e._status||(e._status=1,e._result=t)}),(function(t){0!==e._status&&-1!==e._status||(e._status=2,e._result=t)})),-1===e._status&&(e._status=0,e._result=t)}if(1===e._status)return e._result.default;throw e._result}var R={current:null},A={transition:null},_={ReactCurrentDispatcher:R,ReactCurrentBatchConfig:A,ReactCurrentOwner:S};t.Children={map:P,forEach:function(e,t,n){P(e,(function(){t.apply(this,arguments)}),n)},count:function(e){var t=0;return P(e,(function(){t++})),t},toArray:function(e){return P(e,(function(e){return e}))||[]},only:function(e){if(!O(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},t.Component=y,t.Fragment=o,t.Profiler=a,t.PureComponent=b,t.StrictMode=i,t.Suspense=u,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=_,t.cloneElement=function(e,t,r){if(null===e||void 0===e)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var o=m({},e.props),i=e.key,a=e.ref,s=e._owner;if(null!=t){if(void 0!==t.ref&&(a=t.ref,s=S.current),void 0!==t.key&&(i=""+t.key),e.type&&e.type.defaultProps)var l=e.type.defaultProps;for(c in t)E.call(t,c)&&!k.hasOwnProperty(c)&&(o[c]=void 0===t[c]&&void 0!==l?l[c]:t[c])}var c=arguments.length-2;if(1===c)o.children=r;else if(1<c){l=Array(c);for(var u=0;u<c;u++)l[u]=arguments[u+2];o.children=l}return{$$typeof:n,type:e.type,key:i,ref:a,props:o,_owner:s}},t.createContext=function(e){return(e={$$typeof:l,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null}).Provider={$$typeof:s,_context:e},e.Consumer=e},t.createElement=j,t.createFactory=function(e){var t=j.bind(null,e);return t.type=e,t},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:c,render:e}},t.isValidElement=O,t.lazy=function(e){return{$$typeof:d,_payload:{_status:-1,_result:e},_init:L}},t.memo=function(e,t){return{$$typeof:f,type:e,compare:void 0===t?null:t}},t.startTransition=function(e){var t=A.transition;A.transition={};try{e()}finally{A.transition=t}},t.unstable_act=function(){throw Error("act(...) is not supported in production builds of React.")},t.useCallback=function(e,t){return R.current.useCallback(e,t)},t.useContext=function(e){return R.current.useContext(e)},t.useDebugValue=function(){},t.useDeferredValue=function(e){return R.current.useDeferredValue(e)},t.useEffect=function(e,t){return R.current.useEffect(e,t)},t.useId=function(){return R.current.useId()},t.useImperativeHandle=function(e,t,n){return R.current.useImperativeHandle(e,t,n)},t.useInsertionEffect=function(e,t){return R.current.useInsertionEffect(e,t)},t.useLayoutEffect=function(e,t){return R.current.useLayoutEffect(e,t)},t.useMemo=function(e,t){return R.current.useMemo(e,t)},t.useReducer=function(e,t,n){return R.current.useReducer(e,t,n)},t.useRef=function(e){return R.current.useRef(e)},t.useState=function(e){return R.current.useState(e)},t.useSyncExternalStore=function(e,t,n){return R.current.useSyncExternalStore(e,t,n)},t.useTransition=function(){return R.current.useTransition()},t.version="18.2.0"},43:(e,t,n)=>{"use strict";e.exports=n(202)},579:(e,t,n)=>{"use strict";e.exports=n(153)},966:(e,t,n)=>{var r=n(382),o=r.Buffer;function i(e,t){for(var n in e)t[n]=e[n]}function a(e,t,n){return o(e,t,n)}o.from&&o.alloc&&o.allocUnsafe&&o.allocUnsafeSlow?e.exports=r:(i(r,t),t.Buffer=a),a.prototype=Object.create(o.prototype),i(o,a),a.from=function(e,t,n){if("number"===typeof e)throw new TypeError("Argument must not be a number");return o(e,t,n)},a.alloc=function(e,t,n){if("number"!==typeof e)throw new TypeError("Argument must be a number");var r=o(e);return void 0!==t?"string"===typeof n?r.fill(t,n):r.fill(t):r.fill(0),r},a.allocUnsafe=function(e){if("number"!==typeof e)throw new TypeError("Argument must be a number");return o(e)},a.allocUnsafeSlow=function(e){if("number"!==typeof e)throw new TypeError("Argument must be a number");return r.SlowBuffer(e)}},234:(e,t)=>{"use strict";function n(e,t){var n=e.length;e.push(t);e:for(;0<n;){var r=n-1>>>1,o=e[r];if(!(0<i(o,t)))break e;e[r]=t,e[n]=o,n=r}}function r(e){return 0===e.length?null:e[0]}function o(e){if(0===e.length)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,o=e.length,a=o>>>1;r<a;){var s=2*(r+1)-1,l=e[s],c=s+1,u=e[c];if(0>i(l,n))c<o&&0>i(u,l)?(e[r]=u,e[c]=n,r=c):(e[r]=l,e[s]=n,r=s);else{if(!(c<o&&0>i(u,n)))break e;e[r]=u,e[c]=n,r=c}}}return t}function i(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}if("object"===typeof performance&&"function"===typeof performance.now){var a=performance;t.unstable_now=function(){return a.now()}}else{var s=Date,l=s.now();t.unstable_now=function(){return s.now()-l}}var c=[],u=[],f=1,d=null,p=3,h=!1,m=!1,g=!1,y="function"===typeof setTimeout?setTimeout:null,v="function"===typeof clearTimeout?clearTimeout:null,b="undefined"!==typeof setImmediate?setImmediate:null;function w(e){for(var t=r(u);null!==t;){if(null===t.callback)o(u);else{if(!(t.startTime<=e))break;o(u),t.sortIndex=t.expirationTime,n(c,t)}t=r(u)}}function x(e){if(g=!1,w(e),!m)if(null!==r(c))m=!0,A(E);else{var t=r(u);null!==t&&_(x,t.startTime-e)}}function E(e,n){m=!1,g&&(g=!1,v(O),O=-1),h=!0;var i=p;try{for(w(n),d=r(c);null!==d&&(!(d.expirationTime>n)||e&&!T());){var a=d.callback;if("function"===typeof a){d.callback=null,p=d.priorityLevel;var s=a(d.expirationTime<=n);n=t.unstable_now(),"function"===typeof s?d.callback=s:d===r(c)&&o(c),w(n)}else o(c);d=r(c)}if(null!==d)var l=!0;else{var f=r(u);null!==f&&_(x,f.startTime-n),l=!1}return l}finally{d=null,p=i,h=!1}}"undefined"!==typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var S,k=!1,j=null,O=-1,C=5,N=-1;function T(){return!(t.unstable_now()-N<C)}function P(){if(null!==j){var e=t.unstable_now();N=e;var n=!0;try{n=j(!0,e)}finally{n?S():(k=!1,j=null)}}else k=!1}if("function"===typeof b)S=function(){b(P)};else if("undefined"!==typeof MessageChannel){var L=new MessageChannel,R=L.port2;L.port1.onmessage=P,S=function(){R.postMessage(null)}}else S=function(){y(P,0)};function A(e){j=e,k||(k=!0,S())}function _(e,n){O=y((function(){e(t.unstable_now())}),n)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){m||h||(m=!0,A(E))},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):C=0<e?Math.floor(1e3/e):5},t.unstable_getCurrentPriorityLevel=function(){return p},t.unstable_getFirstCallbackNode=function(){return r(c)},t.unstable_next=function(e){switch(p){case 1:case 2:case 3:var t=3;break;default:t=p}var n=p;p=t;try{return e()}finally{p=n}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=function(){},t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=p;p=e;try{return t()}finally{p=n}},t.unstable_scheduleCallback=function(e,o,i){var a=t.unstable_now();switch("object"===typeof i&&null!==i?i="number"===typeof(i=i.delay)&&0<i?a+i:a:i=a,e){case 1:var s=-1;break;case 2:s=250;break;case 5:s=1073741823;break;case 4:s=1e4;break;default:s=5e3}return e={id:f++,callback:o,priorityLevel:e,startTime:i,expirationTime:s=i+s,sortIndex:-1},i>a?(e.sortIndex=i,n(u,e),null===r(c)&&e===r(u)&&(g?(v(O),O=-1):g=!0,_(x,i-a))):(e.sortIndex=s,n(c,e),m||h||(m=!0,A(E))),e},t.unstable_shouldYield=T,t.unstable_wrapCallback=function(e){var t=p;return function(){var n=p;p=t;try{return e.apply(this,arguments)}finally{p=n}}}},853:(e,t,n)=>{"use strict";e.exports=n(234)},865:e=>{var t=new Error("Element already at target scroll position"),n=new Error("Scroll cancelled"),r=Math.min,o=Date.now;function i(e){return function(i,l,c,u){"function"==typeof(c=c||{})&&(u=c,c={}),"function"!=typeof u&&(u=s);var f=o(),d=i[e],p=c.ease||a,h=isNaN(c.duration)?350:+c.duration,m=!1;return d===l?u(t,i[e]):requestAnimationFrame((function t(a){if(m)return u(n,i[e]);var s=o(),c=r(1,(s-f)/h),g=p(c);i[e]=g*(l-d)+d,c<1?requestAnimationFrame(t):requestAnimationFrame((function(){u(null,i[e])}))})),function(){m=!0}}}function a(e){return.5*(1-Math.cos(Math.PI*e))}function s(){}e.exports={left:i("scrollLeft"),top:i("scrollTop")}},496:function(e,t){var n,r,o;r=[],void 0===(o="function"===typeof(n=function(){function e(e){var t=getComputedStyle(e,null).getPropertyValue("overflow");return t.indexOf("scroll")>-1||t.indexOf("auto")>-1}function t(t){if(t instanceof HTMLElement||t instanceof SVGElement){for(var n=t.parentNode;n.parentNode;){if(e(n))return n;n=n.parentNode}return document.scrollingElement||document.documentElement}}return t})?n.apply(t,r):n)||(e.exports=o)},474:(e,t,n)=>{"use strict";var r=n(838),o=function(){for(var e=r(16),t="",n=0;n<16;++n)t+=e[n].toString(16);return t}(),i=new RegExp('(\\\\)?"@__(F|R|D|M|S|U|I|B)-'+o+'-(\\d+)__@"',"g"),a=/\{\s*\[native code\]\s*\}/g,s=/function.*?\(/,l=/.*?=>.*?/,c=/[<>\/\u2028\u2029]/g,u=["*","async"],f={"<":"\\u003C",">":"\\u003E","/":"\\u002F","\u2028":"\\u2028","\u2029":"\\u2029"};function d(e){return f[e]}e.exports=function e(t,n){n||(n={}),"number"!==typeof n&&"string"!==typeof n||(n={space:n});var r,f=[],p=[],h=[],m=[],g=[],y=[],v=[],b=[];return n.ignoreFunction&&"function"===typeof t&&(t=void 0),void 0===t?String(t):(r=n.isJSON&&!n.space?JSON.stringify(t):JSON.stringify(t,n.isJSON?null:function(e,t){if(n.ignoreFunction&&function(e){var t=[];for(var n in e)"function"===typeof e[n]&&t.push(n);for(var r=0;r<t.length;r++)delete e[t[r]]}(t),!t&&void 0!==t)return t;var r=this[e],i=typeof r;if("object"===i){if(r instanceof RegExp)return"@__R-"+o+"-"+(p.push(r)-1)+"__@";if(r instanceof Date)return"@__D-"+o+"-"+(h.push(r)-1)+"__@";if(r instanceof Map)return"@__M-"+o+"-"+(m.push(r)-1)+"__@";if(r instanceof Set)return"@__S-"+o+"-"+(g.push(r)-1)+"__@"}return"function"===i?"@__F-"+o+"-"+(f.push(r)-1)+"__@":"undefined"===i?"@__U-"+o+"-"+(y.push(r)-1)+"__@":"number"!==i||isNaN(r)||isFinite(r)?"bigint"===i?"@__B-"+o+"-"+(b.push(r)-1)+"__@":t:"@__I-"+o+"-"+(v.push(r)-1)+"__@"},n.space),"string"!==typeof r?String(r):(!0!==n.unsafe&&(r=r.replace(c,d)),0===f.length&&0===p.length&&0===h.length&&0===m.length&&0===g.length&&0===y.length&&0===v.length&&0===b.length?r:r.replace(i,(function(t,r,o,i){return r?t:"D"===o?'new Date("'+h[i].toISOString()+'")':"R"===o?"new RegExp("+e(p[i].source)+', "'+p[i].flags+'")':"M"===o?"new Map("+e(Array.from(m[i].entries()),n)+")":"S"===o?"new Set("+e(Array.from(g[i].values()),n)+")":"U"===o?"undefined":"I"===o?v[i]:"B"===o?'BigInt("'+b[i]+'")':function(e){var t=e.toString();if(a.test(t))throw new TypeError("Serializing native function: "+e.name);if(s.test(t))return t;if(l.test(t))return t;var n=t.indexOf("("),r=t.substr(0,n).trim().split(" ").filter((function(e){return e.length>0}));return r.filter((function(e){return-1===u.indexOf(e)})).length>0?(r.indexOf("async")>-1?"async ":"")+"function"+(r.join("").indexOf("*")>-1?"*":"")+t.substr(n):t}(f[i])}))))}},956:(e,t,n)=>{"use strict";var r=n(43);var o="function"===typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e===1/t)||e!==e&&t!==t},i=r.useState,a=r.useEffect,s=r.useLayoutEffect,l=r.useDebugValue;function c(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!o(e,n)}catch(r){return!0}}var u="undefined"===typeof window||"undefined"===typeof window.document||"undefined"===typeof window.document.createElement?function(e,t){return t()}:function(e,t){var n=t(),r=i({inst:{value:n,getSnapshot:t}}),o=r[0].inst,u=r[1];return s((function(){o.value=n,o.getSnapshot=t,c(o)&&u({inst:o})}),[e,n,t]),a((function(){return c(o)&&u({inst:o}),e((function(){c(o)&&u({inst:o})}))}),[e]),l(n),n};t.useSyncExternalStore=void 0!==r.useSyncExternalStore?r.useSyncExternalStore:u},39:(e,t,n)=>{"use strict";var r=n(43),o=n(461);var i="function"===typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e===1/t)||e!==e&&t!==t},a=o.useSyncExternalStore,s=r.useRef,l=r.useEffect,c=r.useMemo,u=r.useDebugValue;t.useSyncExternalStoreWithSelector=function(e,t,n,r,o){var f=s(null);if(null===f.current){var d={hasValue:!1,value:null};f.current=d}else d=f.current;f=c((function(){function e(e){if(!l){if(l=!0,a=e,e=r(e),void 0!==o&&d.hasValue){var t=d.value;if(o(t,e))return s=t}return s=e}if(t=s,i(a,e))return t;var n=r(e);return void 0!==o&&o(t,n)?t:(a=e,s=n)}var a,s,l=!1,c=void 0===n?null:n;return[function(){return e(t())},null===c?void 0:function(){return e(c())}]}),[t,n,r,o]);var p=a(e,f[0],f[1]);return l((function(){d.hasValue=!0,d.value=p}),[p]),u(p),p}},461:(e,t,n)=>{"use strict";e.exports=n(956)},443:(e,t,n)=>{"use strict";e.exports=n(39)},440:e=>{"use strict";var t=function(){};e.exports=t},139:(e,t)=>{var n;!function(){"use strict";var r={}.hasOwnProperty;function o(){for(var e="",t=0;t<arguments.length;t++){var n=arguments[t];n&&(e=a(e,i(n)))}return e}function i(e){if("string"===typeof e||"number"===typeof e)return e;if("object"!==typeof e)return"";if(Array.isArray(e))return o.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var t="";for(var n in e)r.call(e,n)&&e[n]&&(t=a(t,n));return t}function a(e,t){return t?e?e+" "+t:e+t:e}e.exports?(o.default=o,e.exports=o):void 0===(n=function(){return o}.apply(t,[]))||(e.exports=n)}()}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var i=t[r]={exports:{}};return e[r].call(i.exports,i,i.exports,n),i.exports}n.m=e,n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},(()=>{var e,t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__;n.t=function(r,o){if(1&o&&(r=this(r)),8&o)return r;if("object"===typeof r&&r){if(4&o&&r.__esModule)return r;if(16&o&&"function"===typeof r.then)return r}var i=Object.create(null);n.r(i);var a={};e=e||[null,t({}),t([]),t(t)];for(var s=2&o&&r;"object"==typeof s&&!~e.indexOf(s);s=t(s))Object.getOwnPropertyNames(s).forEach((e=>a[e]=()=>r[e]));return a.default=()=>r,n.d(i,a),i}})(),n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.f={},n.e=e=>Promise.all(Object.keys(n.f).reduce(((t,r)=>(n.f[r](e,t),t)),[])),n.u=e=>"static/js/"+e+".2c1d133f.chunk.js",n.miniCssF=e=>{},n.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"===typeof window)return window}}(),n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{var e={},t="react-learning:";n.l=(r,o,i,a)=>{if(e[r])e[r].push(o);else{var s,l;if(void 0!==i)for(var c=document.getElementsByTagName("script"),u=0;u<c.length;u++){var f=c[u];if(f.getAttribute("src")==r||f.getAttribute("data-webpack")==t+i){s=f;break}}s||(l=!0,(s=document.createElement("script")).charset="utf-8",s.timeout=120,n.nc&&s.setAttribute("nonce",n.nc),s.setAttribute("data-webpack",t+i),s.src=r),e[r]=[o];var d=(t,n)=>{s.onerror=s.onload=null,clearTimeout(p);var o=e[r];if(delete e[r],s.parentNode&&s.parentNode.removeChild(s),o&&o.forEach((e=>e(n))),t)return t(n)},p=setTimeout(d.bind(null,void 0,{type:"timeout",target:s}),12e4);s.onerror=d.bind(null,s.onerror),s.onload=d.bind(null,s.onload),l&&document.head.appendChild(s)}}})(),n.r=e=>{"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.p="/",(()=>{var e={792:0};n.f.j=(t,r)=>{var o=n.o(e,t)?e[t]:void 0;if(0!==o)if(o)r.push(o[2]);else{var i=new Promise(((n,r)=>o=e[t]=[n,r]));r.push(o[2]=i);var a=n.p+n.u(t),s=new Error;n.l(a,(r=>{if(n.o(e,t)&&(0!==(o=e[t])&&(e[t]=void 0),o)){var i=r&&("load"===r.type?"missing":r.type),a=r&&r.target&&r.target.src;s.message="Loading chunk "+t+" failed.\n("+i+": "+a+")",s.name="ChunkLoadError",s.type=i,s.request=a,o[1](s)}}),"chunk-"+t,t)}};var t=(t,r)=>{var o,i,a=r[0],s=r[1],l=r[2],c=0;if(a.some((t=>0!==e[t]))){for(o in s)n.o(s,o)&&(n.m[o]=s[o]);if(l)l(n)}for(t&&t(r);c<a.length;c++)i=a[c],n.o(e,i)&&e[i]&&e[i][0](),e[i]=0},r=self.webpackChunkreact_learning=self.webpackChunkreact_learning||[];r.forEach(t.bind(null,0)),r.push=t.bind(null,r.push.bind(r))})(),(()=>{"use strict";var e={};n.r(e),n.d(e,{hasBrowserEnv:()=>Zp,hasStandardBrowserEnv:()=>eh,hasStandardBrowserWebWorkerEnv:()=>nh});var t,r=n(43),o=n.t(r,2),i=n(391),a=n(950),s=n.t(a,2);function l(){return l=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},l.apply(this,arguments)}!function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"}(t||(t={}));const c="popstate";function u(e,t){if(!1===e||null===e||"undefined"===typeof e)throw new Error(t)}function f(e,t){if(!e){"undefined"!==typeof console&&console.warn(t);try{throw new Error(t)}catch(n){}}}function d(e,t){return{usr:e.state,key:e.key,idx:t}}function p(e,t,n,r){return void 0===n&&(n=null),l({pathname:"string"===typeof e?e:e.pathname,search:"",hash:""},"string"===typeof t?m(t):t,{state:n,key:t&&t.key||r||Math.random().toString(36).substr(2,8)})}function h(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&"?"!==n&&(t+="?"===n.charAt(0)?n:"?"+n),r&&"#"!==r&&(t+="#"===r.charAt(0)?r:"#"+r),t}function m(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function g(e,n,r,o){void 0===o&&(o={});let{window:i=document.defaultView,v5Compat:a=!1}=o,s=i.history,f=t.Pop,m=null,g=y();function y(){return(s.state||{idx:null}).idx}function v(){f=t.Pop;let e=y(),n=null==e?null:e-g;g=e,m&&m({action:f,location:w.location,delta:n})}function b(e){let t="null"!==i.location.origin?i.location.origin:i.location.href,n="string"===typeof e?e:h(e);return n=n.replace(/ $/,"%20"),u(t,"No window.location.(origin|href) available to create URL for href: "+n),new URL(n,t)}null==g&&(g=0,s.replaceState(l({},s.state,{idx:g}),""));let w={get action(){return f},get location(){return e(i,s)},listen(e){if(m)throw new Error("A history only accepts one active listener");return i.addEventListener(c,v),m=e,()=>{i.removeEventListener(c,v),m=null}},createHref:e=>n(i,e),createURL:b,encodeLocation(e){let t=b(e);return{pathname:t.pathname,search:t.search,hash:t.hash}},push:function(e,n){f=t.Push;let o=p(w.location,e,n);r&&r(o,e),g=y()+1;let l=d(o,g),c=w.createHref(o);try{s.pushState(l,"",c)}catch(u){if(u instanceof DOMException&&"DataCloneError"===u.name)throw u;i.location.assign(c)}a&&m&&m({action:f,location:w.location,delta:1})},replace:function(e,n){f=t.Replace;let o=p(w.location,e,n);r&&r(o,e),g=y();let i=d(o,g),l=w.createHref(o);s.replaceState(i,"",l),a&&m&&m({action:f,location:w.location,delta:0})},go:e=>s.go(e)};return w}var y;!function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"}(y||(y={}));new Set(["lazy","caseSensitive","path","id","index","children"]);function v(e,t,n){void 0===n&&(n="/");let r=R(("string"===typeof t?m(t):t).pathname||"/",n);if(null==r)return null;let o=b(e);!function(e){e.sort(((e,t)=>e.score!==t.score?t.score-e.score:function(e,t){let n=e.length===t.length&&e.slice(0,-1).every(((e,n)=>e===t[n]));return n?e[e.length-1]-t[t.length-1]:0}(e.routesMeta.map((e=>e.childrenIndex)),t.routesMeta.map((e=>e.childrenIndex)))))}(o);let i=null;for(let a=0;null==i&&a<o.length;++a){let e=L(r);i=T(o[a],e)}return i}function b(e,t,n,r){void 0===t&&(t=[]),void 0===n&&(n=[]),void 0===r&&(r="");let o=(e,o,i)=>{let a={relativePath:void 0===i?e.path||"":i,caseSensitive:!0===e.caseSensitive,childrenIndex:o,route:e};a.relativePath.startsWith("/")&&(u(a.relativePath.startsWith(r),'Absolute route path "'+a.relativePath+'" nested under path "'+r+'" is not valid. An absolute child route path must start with the combined path of all its parent routes.'),a.relativePath=a.relativePath.slice(r.length));let s=D([r,a.relativePath]),l=n.concat(a);e.children&&e.children.length>0&&(u(!0!==e.index,'Index routes must not have child routes. Please remove all child routes from route path "'+s+'".'),b(e.children,t,l,s)),(null!=e.path||e.index)&&t.push({path:s,score:N(s,e.index),routesMeta:l})};return e.forEach(((e,t)=>{var n;if(""!==e.path&&null!=(n=e.path)&&n.includes("?"))for(let r of w(e.path))o(e,t,r);else o(e,t)})),t}function w(e){let t=e.split("/");if(0===t.length)return[];let[n,...r]=t,o=n.endsWith("?"),i=n.replace(/\?$/,"");if(0===r.length)return o?[i,""]:[i];let a=w(r.join("/")),s=[];return s.push(...a.map((e=>""===e?i:[i,e].join("/")))),o&&s.push(...a),s.map((t=>e.startsWith("/")&&""===t?"/":t))}const x=/^:[\w-]+$/,E=3,S=2,k=1,j=10,O=-2,C=e=>"*"===e;function N(e,t){let n=e.split("/"),r=n.length;return n.some(C)&&(r+=O),t&&(r+=S),n.filter((e=>!C(e))).reduce(((e,t)=>e+(x.test(t)?E:""===t?k:j)),r)}function T(e,t){let{routesMeta:n}=e,r={},o="/",i=[];for(let a=0;a<n.length;++a){let e=n[a],s=a===n.length-1,l="/"===o?t:t.slice(o.length)||"/",c=P({path:e.relativePath,caseSensitive:e.caseSensitive,end:s},l);if(!c)return null;Object.assign(r,c.params);let u=e.route;i.push({params:r,pathname:D([o,c.pathname]),pathnameBase:F(D([o,c.pathnameBase])),route:u}),"/"!==c.pathnameBase&&(o=D([o,c.pathnameBase]))}return i}function P(e,t){"string"===typeof e&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=function(e,t,n){void 0===t&&(t=!1);void 0===n&&(n=!0);f("*"===e||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were "'+e.replace(/\*$/,"/*")+'" because the `*` character must always follow a `/` in the pattern. To get rid of this warning, please change the route path to "'+e.replace(/\*$/,"/*")+'".');let r=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,((e,t,n)=>(r.push({paramName:t,isOptional:null!=n}),n?"/?([^\\/]+)?":"/([^\\/]+)")));e.endsWith("*")?(r.push({paramName:"*"}),o+="*"===e||"/*"===e?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?o+="\\/*$":""!==e&&"/"!==e&&(o+="(?:(?=\\/|$))");let i=new RegExp(o,t?void 0:"i");return[i,r]}(e.path,e.caseSensitive,e.end),o=t.match(n);if(!o)return null;let i=o[0],a=i.replace(/(.)\/+$/,"$1"),s=o.slice(1);return{params:r.reduce(((e,t,n)=>{let{paramName:r,isOptional:o}=t;if("*"===r){let e=s[n]||"";a=i.slice(0,i.length-e.length).replace(/(.)\/+$/,"$1")}const l=s[n];return e[r]=o&&!l?void 0:(l||"").replace(/%2F/g,"/"),e}),{}),pathname:i,pathnameBase:a,pattern:e}}function L(e){try{return e.split("/").map((e=>decodeURIComponent(e).replace(/\//g,"%2F"))).join("/")}catch(t){return f(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent encoding ('+t+")."),e}}function R(e,t){if("/"===t)return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&"/"!==r?null:e.slice(n)||"/"}function A(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified `to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the `to."+n+'` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.'}function _(e){return e.filter(((e,t)=>0===t||e.route.path&&e.route.path.length>0))}function I(e,t){let n=_(e);return t?n.map(((t,n)=>n===e.length-1?t.pathname:t.pathnameBase)):n.map((e=>e.pathnameBase))}function M(e,t,n,r){let o;void 0===r&&(r=!1),"string"===typeof e?o=m(e):(o=l({},e),u(!o.pathname||!o.pathname.includes("?"),A("?","pathname","search",o)),u(!o.pathname||!o.pathname.includes("#"),A("#","pathname","hash",o)),u(!o.search||!o.search.includes("#"),A("#","search","hash",o)));let i,a=""===e||""===o.pathname,s=a?"/":o.pathname;if(null==s)i=n;else{let e=t.length-1;if(!r&&s.startsWith("..")){let t=s.split("/");for(;".."===t[0];)t.shift(),e-=1;o.pathname=t.join("/")}i=e>=0?t[e]:"/"}let c=function(e,t){void 0===t&&(t="/");let{pathname:n,search:r="",hash:o=""}="string"===typeof e?m(e):e,i=n?n.startsWith("/")?n:function(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach((e=>{".."===e?n.length>1&&n.pop():"."!==e&&n.push(e)})),n.length>1?n.join("/"):"/"}(n,t):t;return{pathname:i,search:B(r),hash:z(o)}}(o,i),f=s&&"/"!==s&&s.endsWith("/"),d=(a||"."===s)&&n.endsWith("/");return c.pathname.endsWith("/")||!f&&!d||(c.pathname+="/"),c}const D=e=>e.join("/").replace(/\/\/+/g,"/"),F=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),B=e=>e&&"?"!==e?e.startsWith("?")?e:"?"+e:"",z=e=>e&&"#"!==e?e.startsWith("#")?e:"#"+e:"";Error;function U(e){return null!=e&&"number"===typeof e.status&&"string"===typeof e.statusText&&"boolean"===typeof e.internal&&"data"in e}const H=["post","put","patch","delete"],W=(new Set(H),["get",...H]);new Set(W),new Set([301,302,303,307,308]),new Set([307,308]);Symbol("deferred");function V(){return V=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},V.apply(this,arguments)}const q=r.createContext(null);const $=r.createContext(null);const K=r.createContext(null);const G=r.createContext(null);const Y=r.createContext({outlet:null,matches:[],isDataRoute:!1});const Q=r.createContext(null);function X(){return null!=r.useContext(G)}function J(){return X()||u(!1),r.useContext(G).location}function Z(e){r.useContext(K).static||r.useLayoutEffect(e)}function ee(){let{isDataRoute:e}=r.useContext(Y);return e?function(){let{router:e}=ue(le.UseNavigateStable),t=de(ce.UseNavigateStable),n=r.useRef(!1);Z((()=>{n.current=!0}));let o=r.useCallback((function(r,o){void 0===o&&(o={}),n.current&&("number"===typeof r?e.navigate(r):e.navigate(r,V({fromRouteId:t},o)))}),[e,t]);return o}():function(){X()||u(!1);let e=r.useContext(q),{basename:t,future:n,navigator:o}=r.useContext(K),{matches:i}=r.useContext(Y),{pathname:a}=J(),s=JSON.stringify(I(i,n.v7_relativeSplatPath)),l=r.useRef(!1);Z((()=>{l.current=!0}));let c=r.useCallback((function(n,r){if(void 0===r&&(r={}),!l.current)return;if("number"===typeof n)return void o.go(n);let i=M(n,JSON.parse(s),a,"path"===r.relative);null==e&&"/"!==t&&(i.pathname="/"===i.pathname?t:D([t,i.pathname])),(r.replace?o.replace:o.push)(i,r.state,r)}),[t,o,s,a,e]);return c}()}function te(e,t){let{relative:n}=void 0===t?{}:t,{future:o}=r.useContext(K),{matches:i}=r.useContext(Y),{pathname:a}=J(),s=JSON.stringify(I(i,o.v7_relativeSplatPath));return r.useMemo((()=>M(e,JSON.parse(s),a,"path"===n)),[e,s,a,n])}function ne(e,n,o,i){X()||u(!1);let{navigator:a}=r.useContext(K),{matches:s}=r.useContext(Y),l=s[s.length-1],c=l?l.params:{},f=(l&&l.pathname,l?l.pathnameBase:"/");l&&l.route;let d,p=J();if(n){var h;let e="string"===typeof n?m(n):n;"/"===f||(null==(h=e.pathname)?void 0:h.startsWith(f))||u(!1),d=e}else d=p;let g=d.pathname||"/",y=g;if("/"!==f){let e=f.replace(/^\//,"").split("/");y="/"+g.replace(/^\//,"").split("/").slice(e.length).join("/")}let b=v(e,{pathname:y});let w=se(b&&b.map((e=>Object.assign({},e,{params:Object.assign({},c,e.params),pathname:D([f,a.encodeLocation?a.encodeLocation(e.pathname).pathname:e.pathname]),pathnameBase:"/"===e.pathnameBase?f:D([f,a.encodeLocation?a.encodeLocation(e.pathnameBase).pathname:e.pathnameBase])}))),s,o,i);return n&&w?r.createElement(G.Provider,{value:{location:V({pathname:"/",search:"",hash:"",state:null,key:"default"},d),navigationType:t.Pop}},w):w}function re(){let e=function(){var e;let t=r.useContext(Q),n=fe(ce.UseRouteError),o=de(ce.UseRouteError);if(void 0!==t)return t;return null==(e=n.errors)?void 0:e[o]}(),t=U(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,o="rgba(200,200,200, 0.5)",i={padding:"0.5rem",backgroundColor:o};return r.createElement(r.Fragment,null,r.createElement("h2",null,"Unexpected Application Error!"),r.createElement("h3",{style:{fontStyle:"italic"}},t),n?r.createElement("pre",{style:i},n):null,null)}const oe=r.createElement(re,null);class ie extends r.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||"idle"!==t.revalidation&&"idle"===e.revalidation?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:void 0!==e.error?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){console.error("React Router caught the following error during render",e,t)}render(){return void 0!==this.state.error?r.createElement(Y.Provider,{value:this.props.routeContext},r.createElement(Q.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function ae(e){let{routeContext:t,match:n,children:o}=e,i=r.useContext(q);return i&&i.static&&i.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=n.route.id),r.createElement(Y.Provider,{value:t},o)}function se(e,t,n,o){var i;if(void 0===t&&(t=[]),void 0===n&&(n=null),void 0===o&&(o=null),null==e){var a;if(null==(a=n)||!a.errors)return null;e=n.matches}let s=e,l=null==(i=n)?void 0:i.errors;if(null!=l){let e=s.findIndex((e=>e.route.id&&(null==l?void 0:l[e.route.id])));e>=0||u(!1),s=s.slice(0,Math.min(s.length,e+1))}let c=!1,f=-1;if(n&&o&&o.v7_partialHydration)for(let r=0;r<s.length;r++){let e=s[r];if((e.route.HydrateFallback||e.route.hydrateFallbackElement)&&(f=r),e.route.id){let{loaderData:t,errors:r}=n,o=e.route.loader&&void 0===t[e.route.id]&&(!r||void 0===r[e.route.id]);if(e.route.lazy||o){c=!0,s=f>=0?s.slice(0,f+1):[s[0]];break}}}return s.reduceRight(((e,o,i)=>{let a,u=!1,d=null,p=null;var h;n&&(a=l&&o.route.id?l[o.route.id]:void 0,d=o.route.errorElement||oe,c&&(f<0&&0===i?(h="route-fallback",!1||pe[h]||(pe[h]=!0),u=!0,p=null):f===i&&(u=!0,p=o.route.hydrateFallbackElement||null)));let m=t.concat(s.slice(0,i+1)),g=()=>{let t;return t=a?d:u?p:o.route.Component?r.createElement(o.route.Component,null):o.route.element?o.route.element:e,r.createElement(ae,{match:o,routeContext:{outlet:e,matches:m,isDataRoute:null!=n},children:t})};return n&&(o.route.ErrorBoundary||o.route.errorElement||0===i)?r.createElement(ie,{location:n.location,revalidation:n.revalidation,component:d,error:a,children:g(),routeContext:{outlet:null,matches:m,isDataRoute:!0}}):g()}),null)}var le=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(le||{}),ce=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(ce||{});function ue(e){let t=r.useContext(q);return t||u(!1),t}function fe(e){let t=r.useContext($);return t||u(!1),t}function de(e){let t=function(e){let t=r.useContext(Y);return t||u(!1),t}(),n=t.matches[t.matches.length-1];return n.route.id||u(!1),n.route.id}const pe={};o.startTransition;function he(e){u(!1)}function me(e){let{basename:n="/",children:o=null,location:i,navigationType:a=t.Pop,navigator:s,static:l=!1,future:c}=e;X()&&u(!1);let f=n.replace(/^\/*/,"/"),d=r.useMemo((()=>({basename:f,navigator:s,static:l,future:V({v7_relativeSplatPath:!1},c)})),[f,c,s,l]);"string"===typeof i&&(i=m(i));let{pathname:p="/",search:h="",hash:g="",state:y=null,key:v="default"}=i,b=r.useMemo((()=>{let e=R(p,f);return null==e?null:{location:{pathname:e,search:h,hash:g,state:y,key:v},navigationType:a}}),[f,p,h,g,y,v,a]);return null==b?null:r.createElement(K.Provider,{value:d},r.createElement(G.Provider,{children:o,value:b}))}function ge(e){let{children:t,location:n}=e;return ne(ye(t),n)}new Promise((()=>{}));r.Component;function ye(e,t){void 0===t&&(t=[]);let n=[];return r.Children.forEach(e,((e,o)=>{if(!r.isValidElement(e))return;let i=[...t,o];if(e.type===r.Fragment)return void n.push.apply(n,ye(e.props.children,i));e.type!==he&&u(!1),e.props.index&&e.props.children&&u(!1);let a={id:e.props.id||i.join("-"),caseSensitive:e.props.caseSensitive,element:e.props.element,Component:e.props.Component,index:e.props.index,path:e.props.path,loader:e.props.loader,action:e.props.action,errorElement:e.props.errorElement,ErrorBoundary:e.props.ErrorBoundary,hasErrorBoundary:null!=e.props.ErrorBoundary||null!=e.props.errorElement,shouldRevalidate:e.props.shouldRevalidate,handle:e.props.handle,lazy:e.props.lazy};e.props.children&&(a.children=ye(e.props.children,i)),n.push(a)})),n}function ve(){return ve=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ve.apply(this,arguments)}function be(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);const we=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","unstable_viewTransition"];try{window.__reactRouterVersion="6"}catch(OE){}new Map;const xe=o.startTransition;s.flushSync,o.useId;function Ee(e){let{basename:t,children:n,future:o,window:i}=e,a=r.useRef();null==a.current&&(a.current=function(e){return void 0===e&&(e={}),g((function(e,t){let{pathname:n="/",search:r="",hash:o=""}=m(e.location.hash.substr(1));return n.startsWith("/")||n.startsWith(".")||(n="/"+n),p("",{pathname:n,search:r,hash:o},t.state&&t.state.usr||null,t.state&&t.state.key||"default")}),(function(e,t){let n=e.document.querySelector("base"),r="";if(n&&n.getAttribute("href")){let t=e.location.href,n=t.indexOf("#");r=-1===n?t:t.slice(0,n)}return r+"#"+("string"===typeof t?t:h(t))}),(function(e,t){f("/"===e.pathname.charAt(0),"relative pathnames are not supported in hash history.push("+JSON.stringify(t)+")")}),e)}({window:i,v5Compat:!0}));let s=a.current,[l,c]=r.useState({action:s.action,location:s.location}),{v7_startTransition:u}=o||{},d=r.useCallback((e=>{u&&xe?xe((()=>c(e))):c(e)}),[c,u]);return r.useLayoutEffect((()=>s.listen(d)),[s,d]),r.createElement(me,{basename:t,children:n,location:l.location,navigationType:l.action,navigator:s,future:o})}const Se="undefined"!==typeof window&&"undefined"!==typeof window.document&&"undefined"!==typeof window.document.createElement,ke=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,je=r.forwardRef((function(e,t){let n,{onClick:o,relative:i,reloadDocument:a,replace:s,state:l,target:c,to:f,preventScrollReset:d,unstable_viewTransition:p}=e,m=be(e,we),{basename:g}=r.useContext(K),y=!1;if("string"===typeof f&&ke.test(f)&&(n=f,Se))try{let e=new URL(window.location.href),t=f.startsWith("//")?new URL(e.protocol+f):new URL(f),n=R(t.pathname,g);t.origin===e.origin&&null!=n?f=n+t.search+t.hash:y=!0}catch(OE){}let v=function(e,t){let{relative:n}=void 0===t?{}:t;X()||u(!1);let{basename:o,navigator:i}=r.useContext(K),{hash:a,pathname:s,search:l}=te(e,{relative:n}),c=s;return"/"!==o&&(c="/"===s?o:D([o,s])),i.createHref({pathname:c,search:l,hash:a})}(f,{relative:i}),b=function(e,t){let{target:n,replace:o,state:i,preventScrollReset:a,relative:s,unstable_viewTransition:l}=void 0===t?{}:t,c=ee(),u=J(),f=te(e,{relative:s});return r.useCallback((t=>{if(function(e,t){return 0===e.button&&(!t||"_self"===t)&&!function(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}(e)}(t,n)){t.preventDefault();let n=void 0!==o?o:h(u)===h(f);c(e,{replace:n,state:i,preventScrollReset:a,relative:s,unstable_viewTransition:l})}}),[u,c,f,o,i,n,e,a,s,l])}(f,{replace:s,state:l,target:c,preventScrollReset:d,relative:i,unstable_viewTransition:p});return r.createElement("a",ve({},m,{href:n||v,onClick:y||a?o:function(e){o&&o(e),e.defaultPrevented||b(e)},ref:t,target:c}))}));var Oe,Ce;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(Oe||(Oe={})),function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"}(Ce||(Ce={}));var Ne=n(173),Te=n.n(Ne),Pe=n(161),Le=n.n(Pe),Re=n(366),Ae=n.n(Re),_e=n(123),Ie=n.n(_e),Me="bodyAttributes",De="htmlAttributes",Fe="titleAttributes",Be={BASE:"base",BODY:"body",HEAD:"head",HTML:"html",LINK:"link",META:"meta",NOSCRIPT:"noscript",SCRIPT:"script",STYLE:"style",TITLE:"title"},ze=(Object.keys(Be).map((function(e){return Be[e]})),"charset"),Ue="cssText",He="href",We="http-equiv",Ve="innerHTML",qe="itemprop",$e="name",Ke="property",Ge="rel",Ye="src",Qe="target",Xe={accesskey:"accessKey",charset:"charSet",class:"className",contenteditable:"contentEditable",contextmenu:"contextMenu","http-equiv":"httpEquiv",itemprop:"itemProp",tabindex:"tabIndex"},Je="defaultTitle",Ze="defer",et="encodeSpecialCharacters",tt="onChangeClientState",nt="titleTemplate",rt=Object.keys(Xe).reduce((function(e,t){return e[Xe[t]]=t,e}),{}),ot=[Be.NOSCRIPT,Be.SCRIPT,Be.STYLE],it="data-react-helmet",at="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},st=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),lt=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ct=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n},ut=function(e){return!1===(!(arguments.length>1&&void 0!==arguments[1])||arguments[1])?String(e):String(e).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")},ft=function(e){var t=gt(e,Be.TITLE),n=gt(e,nt);if(n&&t)return n.replace(/%s/g,(function(){return Array.isArray(t)?t.join(""):t}));var r=gt(e,Je);return t||r||void 0},dt=function(e){return gt(e,tt)||function(){}},pt=function(e,t){return t.filter((function(t){return"undefined"!==typeof t[e]})).map((function(t){return t[e]})).reduce((function(e,t){return lt({},e,t)}),{})},ht=function(e,t){return t.filter((function(e){return"undefined"!==typeof e[Be.BASE]})).map((function(e){return e[Be.BASE]})).reverse().reduce((function(t,n){if(!t.length)for(var r=Object.keys(n),o=0;o<r.length;o++){var i=r[o].toLowerCase();if(-1!==e.indexOf(i)&&n[i])return t.concat(n)}return t}),[])},mt=function(e,t,n){var r={};return n.filter((function(t){return!!Array.isArray(t[e])||("undefined"!==typeof t[e]&&xt("Helmet: "+e+' should be of type "Array". Instead found type "'+at(t[e])+'"'),!1)})).map((function(t){return t[e]})).reverse().reduce((function(e,n){var o={};n.filter((function(e){for(var n=void 0,i=Object.keys(e),a=0;a<i.length;a++){var s=i[a],l=s.toLowerCase();-1===t.indexOf(l)||n===Ge&&"canonical"===e[n].toLowerCase()||l===Ge&&"stylesheet"===e[l].toLowerCase()||(n=l),-1===t.indexOf(s)||s!==Ve&&s!==Ue&&s!==qe||(n=s)}if(!n||!e[n])return!1;var c=e[n].toLowerCase();return r[n]||(r[n]={}),o[n]||(o[n]={}),!r[n][c]&&(o[n][c]=!0,!0)})).reverse().forEach((function(t){return e.push(t)}));for(var i=Object.keys(o),a=0;a<i.length;a++){var s=i[a],l=Ie()({},r[s],o[s]);r[s]=l}return e}),[]).reverse()},gt=function(e,t){for(var n=e.length-1;n>=0;n--){var r=e[n];if(r.hasOwnProperty(t))return r[t]}return null},yt=function(){var e=Date.now();return function(t){var n=Date.now();n-e>16?(e=n,t(n)):setTimeout((function(){yt(t)}),0)}}(),vt=function(e){return clearTimeout(e)},bt="undefined"!==typeof window?window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||yt:n.g.requestAnimationFrame||yt,wt="undefined"!==typeof window?window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||vt:n.g.cancelAnimationFrame||vt,xt=function(e){return console&&"function"===typeof console.warn&&console.warn(e)},Et=null,St=function(e,t){var n=e.baseTag,r=e.bodyAttributes,o=e.htmlAttributes,i=e.linkTags,a=e.metaTags,s=e.noscriptTags,l=e.onChangeClientState,c=e.scriptTags,u=e.styleTags,f=e.title,d=e.titleAttributes;Ot(Be.BODY,r),Ot(Be.HTML,o),jt(f,d);var p={baseTag:Ct(Be.BASE,n),linkTags:Ct(Be.LINK,i),metaTags:Ct(Be.META,a),noscriptTags:Ct(Be.NOSCRIPT,s),scriptTags:Ct(Be.SCRIPT,c),styleTags:Ct(Be.STYLE,u)},h={},m={};Object.keys(p).forEach((function(e){var t=p[e],n=t.newTags,r=t.oldTags;n.length&&(h[e]=n),r.length&&(m[e]=p[e].oldTags)})),t&&t(),l(e,h,m)},kt=function(e){return Array.isArray(e)?e.join(""):e},jt=function(e,t){"undefined"!==typeof e&&document.title!==e&&(document.title=kt(e)),Ot(Be.TITLE,t)},Ot=function(e,t){var n=document.getElementsByTagName(e)[0];if(n){for(var r=n.getAttribute(it),o=r?r.split(","):[],i=[].concat(o),a=Object.keys(t),s=0;s<a.length;s++){var l=a[s],c=t[l]||"";n.getAttribute(l)!==c&&n.setAttribute(l,c),-1===o.indexOf(l)&&o.push(l);var u=i.indexOf(l);-1!==u&&i.splice(u,1)}for(var f=i.length-1;f>=0;f--)n.removeAttribute(i[f]);o.length===i.length?n.removeAttribute(it):n.getAttribute(it)!==a.join(",")&&n.setAttribute(it,a.join(","))}},Ct=function(e,t){var n=document.head||document.querySelector(Be.HEAD),r=n.querySelectorAll(e+"["+it+"]"),o=Array.prototype.slice.call(r),i=[],a=void 0;return t&&t.length&&t.forEach((function(t){var n=document.createElement(e);for(var r in t)if(t.hasOwnProperty(r))if(r===Ve)n.innerHTML=t.innerHTML;else if(r===Ue)n.styleSheet?n.styleSheet.cssText=t.cssText:n.appendChild(document.createTextNode(t.cssText));else{var s="undefined"===typeof t[r]?"":t[r];n.setAttribute(r,s)}n.setAttribute(it,"true"),o.some((function(e,t){return a=t,n.isEqualNode(e)}))?o.splice(a,1):i.push(n)})),o.forEach((function(e){return e.parentNode.removeChild(e)})),i.forEach((function(e){return n.appendChild(e)})),{oldTags:o,newTags:i}},Nt=function(e){return Object.keys(e).reduce((function(t,n){var r="undefined"!==typeof e[n]?n+'="'+e[n]+'"':""+n;return t?t+" "+r:r}),"")},Tt=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object.keys(e).reduce((function(t,n){return t[Xe[n]||n]=e[n],t}),t)},Pt=function(e,t,n){switch(e){case Be.TITLE:return{toComponent:function(){return function(e,t,n){var o,i=((o={key:t})[it]=!0,o),a=Tt(n,i);return[r.createElement(Be.TITLE,a,t)]}(0,t.title,t.titleAttributes)},toString:function(){return function(e,t,n,r){var o=Nt(n),i=kt(t);return o?"<"+e+" "+it+'="true" '+o+">"+ut(i,r)+"</"+e+">":"<"+e+" "+it+'="true">'+ut(i,r)+"</"+e+">"}(e,t.title,t.titleAttributes,n)}};case Me:case De:return{toComponent:function(){return Tt(t)},toString:function(){return Nt(t)}};default:return{toComponent:function(){return function(e,t){return t.map((function(t,n){var o,i=((o={key:n})[it]=!0,o);return Object.keys(t).forEach((function(e){var n=Xe[e]||e;if(n===Ve||n===Ue){var r=t.innerHTML||t.cssText;i.dangerouslySetInnerHTML={__html:r}}else i[n]=t[e]})),r.createElement(e,i)}))}(e,t)},toString:function(){return function(e,t,n){return t.reduce((function(t,r){var o=Object.keys(r).filter((function(e){return!(e===Ve||e===Ue)})).reduce((function(e,t){var o="undefined"===typeof r[t]?t:t+'="'+ut(r[t],n)+'"';return e?e+" "+o:o}),""),i=r.innerHTML||r.cssText||"",a=-1===ot.indexOf(e);return t+"<"+e+" "+it+'="true" '+o+(a?"/>":">"+i+"</"+e+">")}),"")}(e,t,n)}}}},Lt=function(e){var t=e.baseTag,n=e.bodyAttributes,r=e.encode,o=e.htmlAttributes,i=e.linkTags,a=e.metaTags,s=e.noscriptTags,l=e.scriptTags,c=e.styleTags,u=e.title,f=void 0===u?"":u,d=e.titleAttributes;return{base:Pt(Be.BASE,t,r),bodyAttributes:Pt(Me,n,r),htmlAttributes:Pt(De,o,r),link:Pt(Be.LINK,i,r),meta:Pt(Be.META,a,r),noscript:Pt(Be.NOSCRIPT,s,r),script:Pt(Be.SCRIPT,l,r),style:Pt(Be.STYLE,c,r),title:Pt(Be.TITLE,{title:f,titleAttributes:d},r)}},Rt=function(e){var t,n;return n=t=function(t){function n(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}(this,t.apply(this,arguments))}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(n,t),n.prototype.shouldComponentUpdate=function(e){return!Ae()(this.props,e)},n.prototype.mapNestedChildrenToProps=function(e,t){if(!t)return null;switch(e.type){case Be.SCRIPT:case Be.NOSCRIPT:return{innerHTML:t};case Be.STYLE:return{cssText:t}}throw new Error("<"+e.type+" /> elements are self-closing and can not contain children. Refer to our API for more information.")},n.prototype.flattenArrayTypeChildren=function(e){var t,n=e.child,r=e.arrayTypeChildren,o=e.newChildProps,i=e.nestedChildren;return lt({},r,((t={})[n.type]=[].concat(r[n.type]||[],[lt({},o,this.mapNestedChildrenToProps(n,i))]),t))},n.prototype.mapObjectTypeChildren=function(e){var t,n,r=e.child,o=e.newProps,i=e.newChildProps,a=e.nestedChildren;switch(r.type){case Be.TITLE:return lt({},o,((t={})[r.type]=a,t.titleAttributes=lt({},i),t));case Be.BODY:return lt({},o,{bodyAttributes:lt({},i)});case Be.HTML:return lt({},o,{htmlAttributes:lt({},i)})}return lt({},o,((n={})[r.type]=lt({},i),n))},n.prototype.mapArrayTypeChildrenToProps=function(e,t){var n=lt({},t);return Object.keys(e).forEach((function(t){var r;n=lt({},n,((r={})[t]=e[t],r))})),n},n.prototype.warnOnInvalidChildren=function(e,t){return!0},n.prototype.mapChildrenToProps=function(e,t){var n=this,o={};return r.Children.forEach(e,(function(e){if(e&&e.props){var r=e.props,i=r.children,a=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object.keys(e).reduce((function(t,n){return t[rt[n]||n]=e[n],t}),t)}(ct(r,["children"]));switch(n.warnOnInvalidChildren(e,i),e.type){case Be.LINK:case Be.META:case Be.NOSCRIPT:case Be.SCRIPT:case Be.STYLE:o=n.flattenArrayTypeChildren({child:e,arrayTypeChildren:o,newChildProps:a,nestedChildren:i});break;default:t=n.mapObjectTypeChildren({child:e,newProps:t,newChildProps:a,nestedChildren:i})}}})),t=this.mapArrayTypeChildrenToProps(o,t)},n.prototype.render=function(){var t=this.props,n=t.children,o=ct(t,["children"]),i=lt({},o);return n&&(i=this.mapChildrenToProps(n,i)),r.createElement(e,i)},st(n,null,[{key:"canUseDOM",set:function(t){e.canUseDOM=t}}]),n}(r.Component),t.propTypes={base:Te().object,bodyAttributes:Te().object,children:Te().oneOfType([Te().arrayOf(Te().node),Te().node]),defaultTitle:Te().string,defer:Te().bool,encodeSpecialCharacters:Te().bool,htmlAttributes:Te().object,link:Te().arrayOf(Te().object),meta:Te().arrayOf(Te().object),noscript:Te().arrayOf(Te().object),onChangeClientState:Te().func,script:Te().arrayOf(Te().object),style:Te().arrayOf(Te().object),title:Te().string,titleAttributes:Te().object,titleTemplate:Te().string},t.defaultProps={defer:!0,encodeSpecialCharacters:!0},t.peek=e.peek,t.rewind=function(){var t=e.rewind();return t||(t=Lt({baseTag:[],bodyAttributes:{},encodeSpecialCharacters:!0,htmlAttributes:{},linkTags:[],metaTags:[],noscriptTags:[],scriptTags:[],styleTags:[],title:"",titleAttributes:{}})),t},n}(Le()((function(e){return{baseTag:ht([He,Qe],e),bodyAttributes:pt(Me,e),defer:gt(e,Ze),encode:gt(e,et),htmlAttributes:pt(De,e),linkTags:mt(Be.LINK,[Ge,He],e),metaTags:mt(Be.META,[$e,ze,We,Ke,qe],e),noscriptTags:mt(Be.NOSCRIPT,[Ve],e),onChangeClientState:dt(e),scriptTags:mt(Be.SCRIPT,[Ye,Ve],e),styleTags:mt(Be.STYLE,[Ue],e),title:ft(e),titleAttributes:pt(Fe,e)}}),(function(e){Et&&wt(Et),e.defer?Et=bt((function(){St(e,(function(){Et=null}))})):(St(e),Et=null)}),Lt)((function(){return null})));Rt.renderStatic=Rt.rewind;n(273);var At=n(579);const _t=e=>{const t=ee();return(0,r.useEffect)((()=>{1!=localStorage.getItem("dashboard_tour")?t("/welcome"):t("/upload")}),[]),(0,At.jsx)(At.Fragment,{})};var It=n(461),Mt=n(443);let Dt=function(e){e()};const Ft=()=>Dt,Bt=Symbol.for("react-redux-context"),zt="undefined"!==typeof globalThis?globalThis:{};function Ut(){var e;if(!r.createContext)return{};const t=null!=(e=zt[Bt])?e:zt[Bt]=new Map;let n=t.get(r.createContext);return n||(n=r.createContext(null),t.set(r.createContext,n)),n}const Ht=Ut();function Wt(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Ht;return function(){return(0,r.useContext)(e)}}const Vt=Wt();let qt=()=>{throw new Error("uSES not initialized!")};const $t=(e,t)=>e===t;function Kt(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Ht;const t=e===Ht?Vt:Wt(e);return function(e){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{equalityFn:o=$t,stabilityCheck:i,noopCheck:a}="function"===typeof n?{equalityFn:n}:n;const{store:s,subscription:l,getServerState:c,stabilityCheck:u,noopCheck:f}=t(),d=((0,r.useRef)(!0),(0,r.useCallback)({[e.name]:t=>e(t)}[e.name],[e,u,i])),p=qt(l.addNestedSub,s.getState,c||s.getState,d,o);return(0,r.useDebugValue)(p),p}}const Gt=Kt();n(219),n(706);const Yt={notify(){},get:()=>[]};function Qt(e,t){let n,r=Yt,o=0,i=!1;function a(){c.onStateChange&&c.onStateChange()}function s(){o++,n||(n=t?t.addNestedSub(a):e.subscribe(a),r=function(){const e=Ft();let t=null,n=null;return{clear(){t=null,n=null},notify(){e((()=>{let e=t;for(;e;)e.callback(),e=e.next}))},get(){let e=[],n=t;for(;n;)e.push(n),n=n.next;return e},subscribe(e){let r=!0,o=n={callback:e,next:null,prev:n};return o.prev?o.prev.next=o:t=o,function(){r&&null!==t&&(r=!1,o.next?o.next.prev=o.prev:n=o.prev,o.prev?o.prev.next=o.next:t=o.next)}}}}())}function l(){o--,n&&0===o&&(n(),n=void 0,r.clear(),r=Yt)}const c={addNestedSub:function(e){s();const t=r.subscribe(e);let n=!1;return()=>{n||(n=!0,t(),l())}},notifyNestedSubs:function(){r.notify()},handleChangeWrapper:a,isSubscribed:function(){return i},trySubscribe:function(){i||(i=!0,s())},tryUnsubscribe:function(){i&&(i=!1,l())},getListeners:()=>r};return c}const Xt=!("undefined"===typeof window||"undefined"===typeof window.document||"undefined"===typeof window.document.createElement)?r.useLayoutEffect:r.useEffect;let Jt=null;const Zt=function(e){let{store:t,context:n,children:o,serverState:i,stabilityCheck:a="once",noopCheck:s="once"}=e;const l=r.useMemo((()=>{const e=Qt(t);return{store:t,subscription:e,getServerState:i?()=>i:void 0,stabilityCheck:a,noopCheck:s}}),[t,i,a,s]),c=r.useMemo((()=>t.getState()),[t]);Xt((()=>{const{subscription:e}=l;return e.onStateChange=e.notifyNestedSubs,e.trySubscribe(),c!==t.getState()&&e.notifyNestedSubs(),()=>{e.tryUnsubscribe(),e.onStateChange=void 0}}),[l,c]);const u=n||Ht;return r.createElement(u.Provider,{value:l},o)};function en(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Ht;const t=e===Ht?Vt:Wt(e);return function(){const{store:e}=t();return e}}const tn=en();function nn(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Ht;const t=e===Ht?tn:en(e);return function(){return t().dispatch}}const rn=nn();var on;function an(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];throw Error("[Immer] minified error nr: "+e+(n.length?" "+n.map((function(e){return"'"+e+"'"})).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function sn(e){return!!e&&!!e[Qn]}function ln(e){var t;return!!e&&(function(e){if(!e||"object"!=typeof e)return!1;var t=Object.getPrototypeOf(e);if(null===t)return!0;var n=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return n===Object||"function"==typeof n&&Function.toString.call(n)===Xn}(e)||Array.isArray(e)||!!e[Yn]||!!(null===(t=e.constructor)||void 0===t?void 0:t[Yn])||mn(e)||gn(e))}function cn(e,t,n){void 0===n&&(n=!1),0===un(e)?(n?Object.keys:Jn)(e).forEach((function(r){n&&"symbol"==typeof r||t(r,e[r],e)})):e.forEach((function(n,r){return t(r,n,e)}))}function un(e){var t=e[Qn];return t?t.i>3?t.i-4:t.i:Array.isArray(e)?1:mn(e)?2:gn(e)?3:0}function fn(e,t){return 2===un(e)?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function dn(e,t){return 2===un(e)?e.get(t):e[t]}function pn(e,t,n){var r=un(e);2===r?e.set(t,n):3===r?e.add(n):e[t]=n}function hn(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}function mn(e){return qn&&e instanceof Map}function gn(e){return $n&&e instanceof Set}function yn(e){return e.o||e.t}function vn(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=Zn(e);delete t[Qn];for(var n=Jn(t),r=0;r<n.length;r++){var o=n[r],i=t[o];!1===i.writable&&(i.writable=!0,i.configurable=!0),(i.get||i.set)&&(t[o]={configurable:!0,writable:!0,enumerable:i.enumerable,value:e[o]})}return Object.create(Object.getPrototypeOf(e),t)}function bn(e,t){return void 0===t&&(t=!1),xn(e)||sn(e)||!ln(e)||(un(e)>1&&(e.set=e.add=e.clear=e.delete=wn),Object.freeze(e),t&&cn(e,(function(e,t){return bn(t,!0)}),!0)),e}function wn(){an(2)}function xn(e){return null==e||"object"!=typeof e||Object.isFrozen(e)}function En(e){var t=er[e];return t||an(18,e),t}function Sn(e,t){er[e]||(er[e]=t)}function kn(){return Wn}function jn(e,t){t&&(En("Patches"),e.u=[],e.s=[],e.v=t)}function On(e){Cn(e),e.p.forEach(Tn),e.p=null}function Cn(e){e===Wn&&(Wn=e.l)}function Nn(e){return Wn={p:[],l:Wn,h:e,m:!0,_:0}}function Tn(e){var t=e[Qn];0===t.i||1===t.i?t.j():t.g=!0}function Pn(e,t){t._=t.p.length;var n=t.p[0],r=void 0!==e&&e!==n;return t.h.O||En("ES5").S(t,e,r),r?(n[Qn].P&&(On(t),an(4)),ln(e)&&(e=Ln(t,e),t.l||An(t,e)),t.u&&En("Patches").M(n[Qn].t,e,t.u,t.s)):e=Ln(t,n,[]),On(t),t.u&&t.v(t.u,t.s),e!==Gn?e:void 0}function Ln(e,t,n){if(xn(t))return t;var r=t[Qn];if(!r)return cn(t,(function(o,i){return Rn(e,r,t,o,i,n)}),!0),t;if(r.A!==e)return t;if(!r.P)return An(e,r.t,!0),r.t;if(!r.I){r.I=!0,r.A._--;var o=4===r.i||5===r.i?r.o=vn(r.k):r.o,i=o,a=!1;3===r.i&&(i=new Set(o),o.clear(),a=!0),cn(i,(function(t,i){return Rn(e,r,o,t,i,n,a)})),An(e,o,!1),n&&e.u&&En("Patches").N(r,n,e.u,e.s)}return r.o}function Rn(e,t,n,r,o,i,a){if(sn(o)){var s=Ln(e,o,i&&t&&3!==t.i&&!fn(t.R,r)?i.concat(r):void 0);if(pn(n,r,s),!sn(s))return;e.m=!1}else a&&n.add(o);if(ln(o)&&!xn(o)){if(!e.h.D&&e._<1)return;Ln(e,o),t&&t.A.l||An(e,o)}}function An(e,t,n){void 0===n&&(n=!1),!e.l&&e.h.D&&e.m&&bn(t,n)}function _n(e,t){var n=e[Qn];return(n?yn(n):e)[t]}function In(e,t){if(t in e)for(var n=Object.getPrototypeOf(e);n;){var r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=Object.getPrototypeOf(n)}}function Mn(e){e.P||(e.P=!0,e.l&&Mn(e.l))}function Dn(e){e.o||(e.o=vn(e.t))}function Fn(e,t,n){var r=mn(t)?En("MapSet").F(t,n):gn(t)?En("MapSet").T(t,n):e.O?function(e,t){var n=Array.isArray(e),r={i:n?1:0,A:t?t.A:kn(),P:!1,I:!1,R:{},l:t,t:e,k:null,o:null,j:null,C:!1},o=r,i=tr;n&&(o=[r],i=nr);var a=Proxy.revocable(o,i),s=a.revoke,l=a.proxy;return r.k=l,r.j=s,l}(t,n):En("ES5").J(t,n);return(n?n.A:kn()).p.push(r),r}function Bn(e){return sn(e)||an(22,e),function e(t){if(!ln(t))return t;var n,r=t[Qn],o=un(t);if(r){if(!r.P&&(r.i<4||!En("ES5").K(r)))return r.t;r.I=!0,n=zn(t,o),r.I=!1}else n=zn(t,o);return cn(n,(function(t,o){r&&dn(r.t,t)===o||pn(n,t,e(o))})),3===o?new Set(n):n}(e)}function zn(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return vn(e)}function Un(){function e(e,t){var n=o[e];return n?n.enumerable=t:o[e]=n={configurable:!0,enumerable:t,get:function(){var t=this[Qn];return tr.get(t,e)},set:function(t){var n=this[Qn];tr.set(n,e,t)}},n}function t(e){for(var t=e.length-1;t>=0;t--){var o=e[t][Qn];if(!o.P)switch(o.i){case 5:r(o)&&Mn(o);break;case 4:n(o)&&Mn(o)}}}function n(e){for(var t=e.t,n=e.k,r=Jn(n),o=r.length-1;o>=0;o--){var i=r[o];if(i!==Qn){var a=t[i];if(void 0===a&&!fn(t,i))return!0;var s=n[i],l=s&&s[Qn];if(l?l.t!==a:!hn(s,a))return!0}}var c=!!t[Qn];return r.length!==Jn(t).length+(c?0:1)}function r(e){var t=e.k;if(t.length!==e.t.length)return!0;var n=Object.getOwnPropertyDescriptor(t,t.length-1);if(n&&!n.get)return!0;for(var r=0;r<t.length;r++)if(!t.hasOwnProperty(r))return!0;return!1}var o={};Sn("ES5",{J:function(t,n){var r=Array.isArray(t),o=function(t,n){if(t){for(var r=Array(n.length),o=0;o<n.length;o++)Object.defineProperty(r,""+o,e(o,!0));return r}var i=Zn(n);delete i[Qn];for(var a=Jn(i),s=0;s<a.length;s++){var l=a[s];i[l]=e(l,t||!!i[l].enumerable)}return Object.create(Object.getPrototypeOf(n),i)}(r,t),i={i:r?5:4,A:n?n.A:kn(),P:!1,I:!1,R:{},l:n,t:t,k:o,o:null,g:!1,C:!1};return Object.defineProperty(o,Qn,{value:i,writable:!0}),o},S:function(e,n,o){o?sn(n)&&n[Qn].A===e&&t(e.p):(e.u&&function e(t){if(t&&"object"==typeof t){var n=t[Qn];if(n){var o=n.t,i=n.k,a=n.R,s=n.i;if(4===s)cn(i,(function(t){t!==Qn&&(void 0!==o[t]||fn(o,t)?a[t]||e(i[t]):(a[t]=!0,Mn(n)))})),cn(o,(function(e){void 0!==i[e]||fn(i,e)||(a[e]=!1,Mn(n))}));else if(5===s){if(r(n)&&(Mn(n),a.length=!0),i.length<o.length)for(var l=i.length;l<o.length;l++)a[l]=!1;else for(var c=o.length;c<i.length;c++)a[c]=!0;for(var u=Math.min(i.length,o.length),f=0;f<u;f++)i.hasOwnProperty(f)||(a[f]=!0),void 0===a[f]&&e(i[f])}}}}(e.p[0]),t(e.p))},K:function(e){return 4===e.i?n(e):r(e)}})}(e=>{qt=e})(Mt.useSyncExternalStoreWithSelector),(e=>{Jt=e})(It.useSyncExternalStore),on=a.unstable_batchedUpdates,Dt=on;var Hn,Wn,Vn="undefined"!=typeof Symbol&&"symbol"==typeof Symbol("x"),qn="undefined"!=typeof Map,$n="undefined"!=typeof Set,Kn="undefined"!=typeof Proxy&&void 0!==Proxy.revocable&&"undefined"!=typeof Reflect,Gn=Vn?Symbol.for("immer-nothing"):((Hn={})["immer-nothing"]=!0,Hn),Yn=Vn?Symbol.for("immer-draftable"):"__$immer_draftable",Qn=Vn?Symbol.for("immer-state"):"__$immer_state",Xn=("undefined"!=typeof Symbol&&Symbol.iterator,""+Object.prototype.constructor),Jn="undefined"!=typeof Reflect&&Reflect.ownKeys?Reflect.ownKeys:void 0!==Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,Zn=Object.getOwnPropertyDescriptors||function(e){var t={};return Jn(e).forEach((function(n){t[n]=Object.getOwnPropertyDescriptor(e,n)})),t},er={},tr={get:function(e,t){if(t===Qn)return e;var n=yn(e);if(!fn(n,t))return function(e,t,n){var r,o=In(t,n);return o?"value"in o?o.value:null===(r=o.get)||void 0===r?void 0:r.call(e.k):void 0}(e,n,t);var r=n[t];return e.I||!ln(r)?r:r===_n(e.t,t)?(Dn(e),e.o[t]=Fn(e.A.h,r,e)):r},has:function(e,t){return t in yn(e)},ownKeys:function(e){return Reflect.ownKeys(yn(e))},set:function(e,t,n){var r=In(yn(e),t);if(null==r?void 0:r.set)return r.set.call(e.k,n),!0;if(!e.P){var o=_n(yn(e),t),i=null==o?void 0:o[Qn];if(i&&i.t===n)return e.o[t]=n,e.R[t]=!1,!0;if(hn(n,o)&&(void 0!==n||fn(e.t,t)))return!0;Dn(e),Mn(e)}return e.o[t]===n&&(void 0!==n||t in e.o)||Number.isNaN(n)&&Number.isNaN(e.o[t])||(e.o[t]=n,e.R[t]=!0),!0},deleteProperty:function(e,t){return void 0!==_n(e.t,t)||t in e.t?(e.R[t]=!1,Dn(e),Mn(e)):delete e.R[t],e.o&&delete e.o[t],!0},getOwnPropertyDescriptor:function(e,t){var n=yn(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r?{writable:!0,configurable:1!==e.i||"length"!==t,enumerable:r.enumerable,value:n[t]}:r},defineProperty:function(){an(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){an(12)}},nr={};cn(tr,(function(e,t){nr[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}})),nr.deleteProperty=function(e,t){return nr.set.call(this,e,t,void 0)},nr.set=function(e,t,n){return tr.set.call(this,e[0],t,n,e[0])};var rr=function(){function e(e){var t=this;this.O=Kn,this.D=!0,this.produce=function(e,n,r){if("function"==typeof e&&"function"!=typeof n){var o=n;n=e;var i=t;return function(e){var t=this;void 0===e&&(e=o);for(var r=arguments.length,a=Array(r>1?r-1:0),s=1;s<r;s++)a[s-1]=arguments[s];return i.produce(e,(function(e){var r;return(r=n).call.apply(r,[t,e].concat(a))}))}}var a;if("function"!=typeof n&&an(6),void 0!==r&&"function"!=typeof r&&an(7),ln(e)){var s=Nn(t),l=Fn(t,e,void 0),c=!0;try{a=n(l),c=!1}finally{c?On(s):Cn(s)}return"undefined"!=typeof Promise&&a instanceof Promise?a.then((function(e){return jn(s,r),Pn(e,s)}),(function(e){throw On(s),e})):(jn(s,r),Pn(a,s))}if(!e||"object"!=typeof e){if(void 0===(a=n(e))&&(a=e),a===Gn&&(a=void 0),t.D&&bn(a,!0),r){var u=[],f=[];En("Patches").M(e,a,u,f),r(u,f)}return a}an(21,e)},this.produceWithPatches=function(e,n){if("function"==typeof e)return function(n){for(var r=arguments.length,o=Array(r>1?r-1:0),i=1;i<r;i++)o[i-1]=arguments[i];return t.produceWithPatches(n,(function(t){return e.apply(void 0,[t].concat(o))}))};var r,o,i=t.produce(e,n,(function(e,t){r=e,o=t}));return"undefined"!=typeof Promise&&i instanceof Promise?i.then((function(e){return[e,r,o]})):[i,r,o]},"boolean"==typeof(null==e?void 0:e.useProxies)&&this.setUseProxies(e.useProxies),"boolean"==typeof(null==e?void 0:e.autoFreeze)&&this.setAutoFreeze(e.autoFreeze)}var t=e.prototype;return t.createDraft=function(e){ln(e)||an(8),sn(e)&&(e=Bn(e));var t=Nn(this),n=Fn(this,e,void 0);return n[Qn].C=!0,Cn(t),n},t.finishDraft=function(e,t){var n=(e&&e[Qn]).A;return jn(n,t),Pn(void 0,n)},t.setAutoFreeze=function(e){this.D=e},t.setUseProxies=function(e){e&&!Kn&&an(20),this.O=e},t.applyPatches=function(e,t){var n;for(n=t.length-1;n>=0;n--){var r=t[n];if(0===r.path.length&&"replace"===r.op){e=r.value;break}}n>-1&&(t=t.slice(n+1));var o=En("Patches").$;return sn(e)?o(e,t):this.produce(e,(function(e){return o(e,t)}))},e}(),or=new rr,ir=or.produce;or.produceWithPatches.bind(or),or.setAutoFreeze.bind(or),or.setUseProxies.bind(or),or.applyPatches.bind(or),or.createDraft.bind(or),or.finishDraft.bind(or);const ar=ir;function sr(e){return sr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},sr(e)}function lr(e){var t=function(e,t){if("object"!=sr(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=sr(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==sr(t)?t:t+""}function cr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ur(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?cr(Object(n),!0).forEach((function(t){var r,o,i;r=e,o=t,i=n[t],(o=lr(o))in r?Object.defineProperty(r,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):r[o]=i})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):cr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function fr(e){return"Minified Redux error #"+e+"; visit https://redux.js.org/Errors?code="+e+" for the full message or use the non-minified dev environment for full errors. "}var dr="function"===typeof Symbol&&Symbol.observable||"@@observable",pr=function(){return Math.random().toString(36).substring(7).split("").join(".")},hr={INIT:"@@redux/INIT"+pr(),REPLACE:"@@redux/REPLACE"+pr(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+pr()}};function mr(e){if("object"!==typeof e||null===e)return!1;for(var t=e;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function gr(e,t,n){var r;if("function"===typeof t&&"function"===typeof n||"function"===typeof n&&"function"===typeof arguments[3])throw new Error(fr(0));if("function"===typeof t&&"undefined"===typeof n&&(n=t,t=void 0),"undefined"!==typeof n){if("function"!==typeof n)throw new Error(fr(1));return n(gr)(e,t)}if("function"!==typeof e)throw new Error(fr(2));var o=e,i=t,a=[],s=a,l=!1;function c(){s===a&&(s=a.slice())}function u(){if(l)throw new Error(fr(3));return i}function f(e){if("function"!==typeof e)throw new Error(fr(4));if(l)throw new Error(fr(5));var t=!0;return c(),s.push(e),function(){if(t){if(l)throw new Error(fr(6));t=!1,c();var n=s.indexOf(e);s.splice(n,1),a=null}}}function d(e){if(!mr(e))throw new Error(fr(7));if("undefined"===typeof e.type)throw new Error(fr(8));if(l)throw new Error(fr(9));try{l=!0,i=o(i,e)}finally{l=!1}for(var t=a=s,n=0;n<t.length;n++){(0,t[n])()}return e}return d({type:hr.INIT}),(r={dispatch:d,subscribe:f,getState:u,replaceReducer:function(e){if("function"!==typeof e)throw new Error(fr(10));o=e,d({type:hr.REPLACE})}})[dr]=function(){var e,t=f;return(e={subscribe:function(e){if("object"!==typeof e||null===e)throw new Error(fr(11));function n(){e.next&&e.next(u())}return n(),{unsubscribe:t(n)}}})[dr]=function(){return this},e},r}function yr(e){for(var t=Object.keys(e),n={},r=0;r<t.length;r++){var o=t[r];0,"function"===typeof e[o]&&(n[o]=e[o])}var i,a=Object.keys(n);try{!function(e){Object.keys(e).forEach((function(t){var n=e[t];if("undefined"===typeof n(void 0,{type:hr.INIT}))throw new Error(fr(12));if("undefined"===typeof n(void 0,{type:hr.PROBE_UNKNOWN_ACTION()}))throw new Error(fr(13))}))}(n)}catch(OE){i=OE}return function(e,t){if(void 0===e&&(e={}),i)throw i;for(var r=!1,o={},s=0;s<a.length;s++){var l=a[s],c=n[l],u=e[l],f=c(u,t);if("undefined"===typeof f){t&&t.type;throw new Error(fr(14))}o[l]=f,r=r||f!==u}return(r=r||a.length!==Object.keys(e).length)?o:e}}function vr(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return 0===t.length?function(e){return e}:1===t.length?t[0]:t.reduce((function(e,t){return function(){return e(t.apply(void 0,arguments))}}))}function br(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){return function(){var n=e.apply(void 0,arguments),r=function(){throw new Error(fr(15))},o={getState:n.getState,dispatch:function(){return r.apply(void 0,arguments)}},i=t.map((function(e){return e(o)}));return r=vr.apply(void 0,i)(n.dispatch),ur(ur({},n),{},{dispatch:r})}}}function wr(e){return function(t){var n=t.dispatch,r=t.getState;return function(t){return function(o){return"function"===typeof o?o(n,r,e):t(o)}}}}var xr=wr();xr.withExtraArgument=wr;const Er=xr;var Sr=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),kr=function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"===typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=(o=a.trys).length>0&&o[o.length-1])&&(6===i[0]||2===i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(OE){i=[6,OE],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}},jr=function(e,t){for(var n=0,r=t.length,o=e.length;n<r;n++,o++)e[o]=t[n];return e},Or=Object.defineProperty,Cr=Object.defineProperties,Nr=Object.getOwnPropertyDescriptors,Tr=Object.getOwnPropertySymbols,Pr=Object.prototype.hasOwnProperty,Lr=Object.prototype.propertyIsEnumerable,Rr=function(e,t,n){return t in e?Or(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n},Ar=function(e,t){for(var n in t||(t={}))Pr.call(t,n)&&Rr(e,n,t[n]);if(Tr)for(var r=0,o=Tr(t);r<o.length;r++){n=o[r];Lr.call(t,n)&&Rr(e,n,t[n])}return e},_r=function(e,t){return Cr(e,Nr(t))},Ir=function(e,t,n){return new Promise((function(r,o){var i=function(e){try{s(n.next(e))}catch(OE){o(OE)}},a=function(e){try{s(n.throw(e))}catch(OE){o(OE)}},s=function(e){return e.done?r(e.value):Promise.resolve(e.value).then(i,a)};s((n=n.apply(e,t)).next())}))},Mr="undefined"!==typeof window&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(0!==arguments.length)return"object"===typeof arguments[0]?vr:vr.apply(null,arguments)};"undefined"!==typeof window&&window.__REDUX_DEVTOOLS_EXTENSION__&&window.__REDUX_DEVTOOLS_EXTENSION__;function Dr(e){if("object"!==typeof e||null===e)return!1;var t=Object.getPrototypeOf(e);if(null===t)return!0;for(var n=t;null!==Object.getPrototypeOf(n);)n=Object.getPrototypeOf(n);return t===n}function Fr(e,t){function n(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];if(t){var o=t.apply(void 0,n);if(!o)throw new Error("prepareAction did not return an object");return Ar(Ar({type:e,payload:o.payload},"meta"in o&&{meta:o.meta}),"error"in o&&{error:o.error})}return{type:e,payload:n[0]}}return n.toString=function(){return""+e},n.type=e,n.match=function(t){return t.type===e},n}var Br=function(e){function t(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];var o=e.apply(this,n)||this;return Object.setPrototypeOf(o,t.prototype),o}return Sr(t,e),Object.defineProperty(t,Symbol.species,{get:function(){return t},enumerable:!1,configurable:!0}),t.prototype.concat=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return e.prototype.concat.apply(this,t)},t.prototype.prepend=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return 1===e.length&&Array.isArray(e[0])?new(t.bind.apply(t,jr([void 0],e[0].concat(this)))):new(t.bind.apply(t,jr([void 0],e.concat(this))))},t}(Array),zr=function(e){function t(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];var o=e.apply(this,n)||this;return Object.setPrototypeOf(o,t.prototype),o}return Sr(t,e),Object.defineProperty(t,Symbol.species,{get:function(){return t},enumerable:!1,configurable:!0}),t.prototype.concat=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return e.prototype.concat.apply(this,t)},t.prototype.prepend=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return 1===e.length&&Array.isArray(e[0])?new(t.bind.apply(t,jr([void 0],e[0].concat(this)))):new(t.bind.apply(t,jr([void 0],e.concat(this))))},t}(Array);function Ur(e){return ln(e)?ar(e,(function(){})):e}function Hr(){return function(e){return function(e){void 0===e&&(e={});var t=e.thunk,n=void 0===t||t,r=(e.immutableCheck,e.serializableCheck,e.actionCreatorCheck,new Br);n&&(!function(e){return"boolean"===typeof e}(n)?r.push(Er.withExtraArgument(n.extraArgument)):r.push(Er));0;return r}(e)}}function Wr(e){var t,n={},r=[],o={addCase:function(e,t){var r="string"===typeof e?e:e.type;if(!r)throw new Error("`builder.addCase` cannot be called with an empty action type");if(r in n)throw new Error("`builder.addCase` cannot be called with two reducers for the same action type");return n[r]=t,o},addMatcher:function(e,t){return r.push({matcher:e,reducer:t}),o},addDefaultCase:function(e){return t=e,o}};return e(o),[n,r,t]}var Vr=function(e){void 0===e&&(e=21);for(var t="",n=e;n--;)t+="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW"[64*Math.random()|0];return t},qr=["name","message","stack","code"],$r=function(e,t){this.payload=e,this.meta=t},Kr=function(e,t){this.payload=e,this.meta=t},Gr=function(e){if("object"===typeof e&&null!==e){for(var t={},n=0,r=qr;n<r.length;n++){var o=r[n];"string"===typeof e[o]&&(t[o]=e[o])}return t}return{message:String(e)}};!function(){function e(e,t,n){var r=Fr(e+"/fulfilled",(function(e,t,n,r){return{payload:e,meta:_r(Ar({},r||{}),{arg:n,requestId:t,requestStatus:"fulfilled"})}})),o=Fr(e+"/pending",(function(e,t,n){return{payload:void 0,meta:_r(Ar({},n||{}),{arg:t,requestId:e,requestStatus:"pending"})}})),i=Fr(e+"/rejected",(function(e,t,r,o,i){return{payload:o,error:(n&&n.serializeError||Gr)(e||"Rejected"),meta:_r(Ar({},i||{}),{arg:r,requestId:t,rejectedWithValue:!!o,requestStatus:"rejected",aborted:"AbortError"===(null==e?void 0:e.name),condition:"ConditionError"===(null==e?void 0:e.name)})}})),a="undefined"!==typeof AbortController?AbortController:function(){function e(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){},reason:void 0,throwIfAborted:function(){}}}return e.prototype.abort=function(){0},e}();return Object.assign((function(e){return function(s,l,c){var u,f=(null==n?void 0:n.idGenerator)?n.idGenerator(e):Vr(),d=new a;function p(e){u=e,d.abort()}var h=function(){return Ir(this,null,(function(){var a,h,m,g,y,v;return kr(this,(function(b){switch(b.label){case 0:return b.trys.push([0,4,,5]),g=null==(a=null==n?void 0:n.condition)?void 0:a.call(n,e,{getState:l,extra:c}),null===(w=g)||"object"!==typeof w||"function"!==typeof w.then?[3,2]:[4,g];case 1:g=b.sent(),b.label=2;case 2:if(!1===g||d.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return!0,y=new Promise((function(e,t){return d.signal.addEventListener("abort",(function(){return t({name:"AbortError",message:u||"Aborted"})}))})),s(o(f,e,null==(h=null==n?void 0:n.getPendingMeta)?void 0:h.call(n,{requestId:f,arg:e},{getState:l,extra:c}))),[4,Promise.race([y,Promise.resolve(t(e,{dispatch:s,getState:l,extra:c,requestId:f,signal:d.signal,abort:p,rejectWithValue:function(e,t){return new $r(e,t)},fulfillWithValue:function(e,t){return new Kr(e,t)}})).then((function(t){if(t instanceof $r)throw t;return t instanceof Kr?r(t.payload,f,e,t.meta):r(t,f,e)}))])];case 3:return m=b.sent(),[3,5];case 4:return v=b.sent(),m=v instanceof $r?i(null,f,e,v.payload,v.meta):i(v,f,e),[3,5];case 5:return n&&!n.dispatchConditionRejection&&i.match(m)&&m.meta.condition||s(m),[2,m]}var w}))}))}();return Object.assign(h,{abort:p,requestId:f,arg:e,unwrap:function(){return h.then(Yr)}})}}),{pending:o,rejected:i,fulfilled:r,typePrefix:e})}e.withTypes=function(){return e}}();function Yr(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}Object.assign;var Qr="listenerMiddleware";Fr(Qr+"/add"),Fr(Qr+"/removeAll"),Fr(Qr+"/remove");"function"===typeof queueMicrotask&&queueMicrotask.bind("undefined"!==typeof window?window:"undefined"!==typeof n.g?n.g:globalThis);var Xr,Jr=function(e){return function(t){setTimeout(t,e)}};"undefined"!==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame:Jr(10);Un();const Zr=function(){return{data:arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},loading:!0,error:!1,buttonDisable:!1}},eo=function(){return{data:arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},loading:!0,error:!1,buttonDisable:!0}},to=e=>({data:e,loading:!1,error:!1,buttonDisable:!1}),no=e=>({data:{},loading:!1,error:e,buttonDisable:!1}),ro=function(e){var t=e.name;if(!t)throw new Error("`name` is a required option for createSlice");var n,r="function"==typeof e.initialState?e.initialState:Ur(e.initialState),o=e.reducers||{},i=Object.keys(o),a={},s={},l={};function c(){var t="function"===typeof e.extraReducers?Wr(e.extraReducers):[e.extraReducers],n=t[0],o=void 0===n?{}:n,i=t[1],a=void 0===i?[]:i,l=t[2],c=void 0===l?void 0:l,u=Ar(Ar({},o),s);return function(e,t,n,r){void 0===n&&(n=[]);var o,i="function"===typeof t?Wr(t):[t,n,r],a=i[0],s=i[1],l=i[2];if(function(e){return"function"===typeof e}(e))o=function(){return Ur(e())};else{var c=Ur(e);o=function(){return c}}function u(e,t){void 0===e&&(e=o());var n=jr([a[t.type]],s.filter((function(e){return(0,e.matcher)(t)})).map((function(e){return e.reducer})));return 0===n.filter((function(e){return!!e})).length&&(n=[l]),n.reduce((function(e,n){if(n){var r;if(sn(e))return void 0===(r=n(e,t))?e:r;if(ln(e))return ar(e,(function(e){return n(e,t)}));if(void 0===(r=n(e,t))){if(null===e)return e;throw Error("A case reducer on a non-draftable value must not return undefined")}return r}return e}),e)}return u.getInitialState=o,u}(r,(function(e){for(var t in u)e.addCase(t,u[t]);for(var n=0,r=a;n<r.length;n++){var o=r[n];e.addMatcher(o.matcher,o.reducer)}c&&e.addDefaultCase(c)}))}return i.forEach((function(e){var n,r,i=o[e],c=t+"/"+e;"reducer"in i?(n=i.reducer,r=i.prepare):n=i,a[e]=n,s[c]=n,l[e]=r?Fr(c,r):Fr(c)})),{name:t,reducer:function(e,t){return n||(n=c()),n(e,t)},actions:l,caseReducers:a,getInitialState:function(){return n||(n=c()),n.getInitialState()}}}({name:"common",initialState:{sidebar:!1,serviceStatus:Zr(),uploadFile:Zr(),trainLLM:Zr(),trainedFileInfo:Zr(),trainLLMCancel:Zr(),startLLMService:Zr(),stopLLMService:Zr(),deleteFile:Zr(),qna:Zr(),contextList:Zr(),contextData:Zr(),deleteContext:Zr(),selectedContext:null,selectedFile:null,chats:[]},reducers:{toggleSidebar:(e,t)=>{e.sidebar=!e.sidebar},serviceStatusStart:(e,t)=>{e.serviceStatus=eo()},serviceStatusSuccess:(e,t)=>{e.serviceStatus=to(t.payload)},serviceStatusFailure:(e,t)=>{e.serviceStatus=no(t.payload)},uploadFileStart:(e,t)=>{e.uploadFile=eo()},uploadFileSuccess:(e,t)=>{e.uploadFile=to(t.payload)},uploadFileFailure:(e,t)=>{e.uploadFile=no(t.payload)},trainLLMStart:(e,t)=>{e.trainLLM=eo()},trainLLMSuccess:(e,t)=>{e.trainLLM=to(t.payload)},trainLLMFailure:(e,t)=>{e.trainLLM=no(t.payload)},trainedFileInfoStart:(e,t)=>{e.trainedFileInfo=eo()},trainedFileInfoSuccess:(e,t)=>{e.trainedFileInfo=to(t.payload)},trainedFileInfoFailure:(e,t)=>{e.trainedFileInfo=no(t.payload)},trainLLMCancelStart:(e,t)=>{e.trainLLMCancel=eo()},trainLLMCancelSuccess:(e,t)=>{e.trainLLMCancel=to(t.payload)},trainLLMCancelFailure:(e,t)=>{e.trainLLMCancel=no(t.payload)},startLLMServiceStart:(e,t)=>{e.startLLMService=eo()},startLLMServiceSuccess:(e,t)=>{e.startLLMService=to(t.payload)},startLLMServiceFailure:(e,t)=>{e.startLLMService=no(t.payload)},stopLLMServiceStart:(e,t)=>{e.stopLLMService=eo()},stopLLMServiceSuccess:(e,t)=>{e.stopLLMService=to(t.payload)},stopLLMServiceFailure:(e,t)=>{e.stopLLMService=no(t.payload)},deleteFileStart:(e,t)=>{e.deleteFile=eo(t.payload)},deleteFileSuccess:(e,t)=>{e.deleteFile=to(t.payload)},deleteFileFailure:(e,t)=>{e.deleteFile=no(t.payload)},qnaStart:(e,t)=>{e.qna=eo(t.payload)},qnaSuccess:(e,t)=>{e.qna=to(t.payload)},qnaFailure:(e,t)=>{e.qna=no(t.payload)},contextListStart:(e,t)=>{e.contextList=eo()},contextListSuccess:(e,t)=>{e.contextList=to(t.payload)},contextListFailure:(e,t)=>{e.contextList=no(t.payload)},contextDataStart:(e,t)=>{e.contextData=eo()},contextDataSuccess:(e,t)=>{e.contextData=to(t.payload)},contextDataFailure:(e,t)=>{e.contextData=no(t.payload)},deleteContextStart:(e,t)=>{e.deleteContext=eo(t.payload)},deleteContextSuccess:(e,t)=>{e.deleteContext=to(t.payload)},deleteContextFailure:(e,t)=>{e.deleteContext=no(t.payload)},setSelectedContext:(e,t)=>{e.selectedContext=t.payload},setChats:(e,t)=>{e.chats=t.payload},setSelectedFile:(e,t)=>{e.selectedFile=t.payload},addQueryToContext:(e,t)=>{let{payload:n}=t;e.chats=[...e.chats,{content:n.query,role:n.role}]}}}),{toggleSidebar:oo,settingsJsonStart:io,serviceStatusFailure:ao,serviceStatusStart:so,serviceStatusSuccess:lo,uploadFileStart:co,uploadFileSuccess:uo,uploadFileFailure:fo,trainLLMStart:po,trainLLMSuccess:ho,trainLLMFailure:mo,trainedFileInfoStart:go,trainedFileInfoSuccess:yo,trainedFileInfoFailure:vo,trainLLMCancelStart:bo,trainLLMCancelSuccess:wo,trainLLMCancelFailure:xo,startLLMServiceStart:Eo,startLLMServiceSuccess:So,startLLMServiceFailure:ko,stopLLMServiceStart:jo,stopLLMServiceSuccess:Oo,stopLLMServiceFailure:Co,deleteFileStart:No,deleteFileSuccess:To,deleteFileFailure:Po,qnaStart:Lo,qnaSuccess:Ro,qnaFailure:Ao,contextListStart:_o,contextListSuccess:Io,contextListFailure:Mo,contextDataStart:Do,contextDataSuccess:Fo,contextDataFailure:Bo,deleteContextStart:zo,deleteContextSuccess:Uo,deleteContextFailure:Ho,setSelectedContext:Wo,setUploadedFiles:Vo,addQueryToContext:qo,setChats:$o,setSelectedFile:Ko}=ro.actions,Go=ro.reducer,Yo=e=>{const t=rn(),n=J(),[o,i]=(0,r.useState)(0),a=Gt((e=>e.common.serviceStatus)),[s,l]=r.useState(!0);(0,r.useEffect)((()=>{!s&&!a.buttonDisable&&Object.keys(a.data).length>0&&i("API is working"==a.data.status?1:0),l(!1)}),[a]);return(0,At.jsx)(At.Fragment,{children:(0,At.jsx)("div",{className:"admin-ui-header-sec",children:(0,At.jsxs)("div",{className:"",style:{width:"100%",display:"flex",justifyContent:"space-between",alignItems:"center"},children:[(0,At.jsxs)("div",{className:"admin-ui-title-sec",children:[(0,At.jsx)("div",{className:"admin-ui-collapse-btn",onClick:()=>t(oo()),children:(0,At.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"#F9AF1A","data-name":"Layer 1",viewBox:"0 0 24 24",children:(0,At.jsx)("path",{d:"M24 3.5c0 .83-.67 1.5-1.5 1.5h-21C.67 5 0 4.33 0 3.5S.67 2 1.5 2h21c.83 0 1.5.67 1.5 1.5zM6.5 20h-5c-.83 0-1.5.67-1.5 1.5S.67 23 1.5 23h5c.83 0 1.5-.67 1.5-1.5S7.33 20 6.5 20zm8-9h-13c-.83 0-1.5.67-1.5 1.5S.67 14 1.5 14h13c.83 0 1.5-.67 1.5-1.5s-.67-1.5-1.5-1.5z"})})}),(0,At.jsx)("h2",{children:(()=>{switch(n.pathname){case"/file-uploading":return"Prompt";case"/upload":return"Upload";case"/fileupload":return"File Upload";case"/chat":return"Chat";default:return"Dashboard"}})()})]}),(0,At.jsx)("div",{className:"status",children:(0,At.jsxs)("div",{className:(e=>1===e?"online-status":"offline-status")(o),children:[(0,At.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"10",height:"10",fill:(e=>1===e?"#197E23":"#FF6A6A")(o),"data-name":"Layer 1",viewBox:"0 0 24 24",children:(0,At.jsx)("path",{d:"M12 0a12 12 0 1012 12A12.013 12.013 0 0012 0z"})}),"LLM ",o?"Online":"Offline"]})})]})})})};var Qo=n(139),Xo=n.n(Qo);const Jo=["xxl","xl","lg","md","sm","xs"],Zo="xs",ei=r.createContext({prefixes:{},breakpoints:Jo,minBreakpoint:Zo}),{Consumer:ti,Provider:ni}=ei;function ri(e,t){const{prefixes:n}=(0,r.useContext)(ei);return e||n[t]||t}function oi(){const{breakpoints:e}=(0,r.useContext)(ei);return e}function ii(){const{minBreakpoint:e}=(0,r.useContext)(ei);return e}function ai(){const{dir:e}=(0,r.useContext)(ei);return"rtl"===e}Te().string,Te().bool,Te().bool,Te().bool,Te().bool;const si=r.forwardRef(((e,t)=>{let{bsPrefix:n,className:r,fluid:o=!1,rounded:i=!1,roundedCircle:a=!1,thumbnail:s=!1,...l}=e;return n=ri(n,"img"),(0,At.jsx)("img",{ref:t,...l,className:Xo()(r,o&&"".concat(n,"-fluid"),i&&"rounded",a&&"rounded-circle",s&&"".concat(n,"-thumbnail"))})}));si.displayName="Image";const li=si,ci=!("undefined"===typeof window||!window.document||!window.document.createElement);var ui=!1,fi=!1;try{var di={get passive(){return ui=!0},get once(){return fi=ui=!0}};ci&&(window.addEventListener("test",di,di),window.removeEventListener("test",di,!0))}catch(OE){}const pi=function(e,t,n,r){if(r&&"boolean"!==typeof r&&!fi){var o=r.once,i=r.capture,a=n;!fi&&o&&(a=n.__once||function e(r){this.removeEventListener(t,e,i),n.call(this,r)},n.__once=a),e.addEventListener(t,a,ui?r:i)}e.addEventListener(t,n,r)};function hi(e){return e&&e.ownerDocument||document}const mi=function(e,t,n,r){var o=r&&"boolean"!==typeof r?r.capture:r;e.removeEventListener(t,n,o),n.__once&&e.removeEventListener(t,n.__once,o)};var gi;function yi(e){if((!gi&&0!==gi||e)&&ci){var t=document.createElement("div");t.style.position="absolute",t.style.top="-9999px",t.style.width="50px",t.style.height="50px",t.style.overflow="scroll",document.body.appendChild(t),gi=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return gi}function vi(){return(0,r.useState)(null)}const bi=function(e){const t=(0,r.useRef)(e);return(0,r.useEffect)((()=>{t.current=e}),[e]),t};function wi(e){const t=bi(e);return(0,r.useCallback)((function(){return t.current&&t.current(...arguments)}),[t])}const xi=e=>e&&"function"!==typeof e?t=>{e.current=t}:e;const Ei=function(e,t){return(0,r.useMemo)((()=>function(e,t){const n=xi(e),r=xi(t);return e=>{n&&n(e),r&&r(e)}}(e,t)),[e,t])};function Si(e){const t=function(e){const t=(0,r.useRef)(e);return t.current=e,t}(e);(0,r.useEffect)((()=>()=>t.current()),[])}function ki(e,t){return function(e){var t=hi(e);return t&&t.defaultView||window}(e).getComputedStyle(e,t)}var ji=/([A-Z])/g;var Oi=/^ms-/;function Ci(e){return function(e){return e.replace(ji,"-$1").toLowerCase()}(e).replace(Oi,"-ms-")}var Ni=/^((translate|rotate|scale)(X|Y|Z|3d)?|matrix(3d)?|perspective|skew(X|Y)?)$/i;const Ti=function(e,t){var n="",r="";if("string"===typeof t)return e.style.getPropertyValue(Ci(t))||ki(e).getPropertyValue(Ci(t));Object.keys(t).forEach((function(o){var i=t[o];i||0===i?!function(e){return!(!e||!Ni.test(e))}(o)?n+=Ci(o)+": "+i+";":r+=o+"("+i+") ":e.style.removeProperty(Ci(o))})),r&&(n+="transform: "+r+";"),e.style.cssText+=";"+n};const Pi=function(e,t,n,r){return pi(e,t,n,r),function(){mi(e,t,n,r)}};function Li(e,t,n){void 0===n&&(n=5);var r=!1,o=setTimeout((function(){r||function(e,t,n,r){if(void 0===n&&(n=!1),void 0===r&&(r=!0),e){var o=document.createEvent("HTMLEvents");o.initEvent(t,n,r),e.dispatchEvent(o)}}(e,"transitionend",!0)}),t+n),i=Pi(e,"transitionend",(function(){r=!0}),{once:!0});return function(){clearTimeout(o),i()}}function Ri(e,t,n,r){null==n&&(n=function(e){var t=Ti(e,"transitionDuration")||"",n=-1===t.indexOf("ms")?1e3:1;return parseFloat(t)*n}(e)||0);var o=Li(e,n,r),i=Pi(e,"transitionend",t);return function(){o(),i()}}function Ai(e){void 0===e&&(e=hi());try{var t=e.activeElement;return t&&t.nodeName?t:null}catch(OE){return e.body}}function _i(e,t){return e.contains?e.contains(t):e.compareDocumentPosition?e===t||!!(16&e.compareDocumentPosition(t)):void 0}function Ii(){const e=(0,r.useRef)(!0),t=(0,r.useRef)((()=>e.current));return(0,r.useEffect)((()=>(e.current=!0,()=>{e.current=!1})),[]),t.current}function Mi(e){const t=(0,r.useRef)(null);return(0,r.useEffect)((()=>{t.current=e})),t.current}const Di="data-rr-ui-";function Fi(e){return"".concat(Di).concat(e)}const Bi=Fi("modal-open");const zi=class{constructor(){let{ownerDocument:e,handleContainerOverflow:t=!0,isRTL:n=!1}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.handleContainerOverflow=t,this.isRTL=n,this.modals=[],this.ownerDocument=e}getScrollbarWidth(){return function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document;const t=e.defaultView;return Math.abs(t.innerWidth-e.documentElement.clientWidth)}(this.ownerDocument)}getElement(){return(this.ownerDocument||document).body}setModalAttributes(e){}removeModalAttributes(e){}setContainerStyle(e){const t={overflow:"hidden"},n=this.isRTL?"paddingLeft":"paddingRight",r=this.getElement();e.style={overflow:r.style.overflow,[n]:r.style[n]},e.scrollBarWidth&&(t[n]="".concat(parseInt(Ti(r,n)||"0",10)+e.scrollBarWidth,"px")),r.setAttribute(Bi,""),Ti(r,t)}reset(){[...this.modals].forEach((e=>this.remove(e)))}removeContainerStyle(e){const t=this.getElement();t.removeAttribute(Bi),Object.assign(t.style,e.style)}add(e){let t=this.modals.indexOf(e);return-1!==t?t:(t=this.modals.length,this.modals.push(e),this.setModalAttributes(e),0!==t||(this.state={scrollBarWidth:this.getScrollbarWidth(),style:{}},this.handleContainerOverflow&&this.setContainerStyle(this.state)),t)}remove(e){const t=this.modals.indexOf(e);-1!==t&&(this.modals.splice(t,1),!this.modals.length&&this.handleContainerOverflow&&this.removeContainerStyle(this.state),this.removeModalAttributes(e))}isTopModal(e){return!!this.modals.length&&this.modals[this.modals.length-1]===e}},Ui=(0,r.createContext)(ci?window:void 0);Ui.Provider;function Hi(){return(0,r.useContext)(Ui)}const Wi=(e,t)=>ci?null==e?(t||hi()).body:("function"===typeof e&&(e=e()),e&&"current"in e&&(e=e.current),e&&("nodeType"in e||e.getBoundingClientRect)?e:null):null;function Vi(e,t){const n=Hi(),[o,i]=(0,r.useState)((()=>Wi(e,null==n?void 0:n.document)));if(!o){const t=Wi(e);t&&i(t)}return(0,r.useEffect)((()=>{t&&o&&t(o)}),[t,o]),(0,r.useEffect)((()=>{const t=Wi(e);t!==o&&i(t)}),[e,o]),o}const qi="undefined"!==typeof n.g&&n.g.navigator&&"ReactNative"===n.g.navigator.product,$i="undefined"!==typeof document||qi?r.useLayoutEffect:r.useEffect;const Ki=function(e){let{children:t,in:n,onExited:o,mountOnEnter:i,unmountOnExit:a}=e;const s=(0,r.useRef)(null),l=(0,r.useRef)(n),c=wi(o);(0,r.useEffect)((()=>{n?l.current=!0:c(s.current)}),[n,c]);const u=Ei(s,t.ref),f=(0,r.cloneElement)(t,{ref:u});return n?f:a||!l.current&&i?null:f},Gi=["onEnter","onEntering","onEntered","onExit","onExiting","onExited","addEndListener","children"];function Yi(e){let{onEnter:t,onEntering:n,onEntered:o,onExit:i,onExiting:a,onExited:s,addEndListener:l,children:c}=e,u=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,Gi);const f=(0,r.useRef)(null),d=Ei(f,"function"===typeof c?null:c.ref),p=e=>t=>{e&&f.current&&e(f.current,t)},h=(0,r.useCallback)(p(t),[t]),m=(0,r.useCallback)(p(n),[n]),g=(0,r.useCallback)(p(o),[o]),y=(0,r.useCallback)(p(i),[i]),v=(0,r.useCallback)(p(a),[a]),b=(0,r.useCallback)(p(s),[s]),w=(0,r.useCallback)(p(l),[l]);return Object.assign({},u,{nodeRef:f},t&&{onEnter:h},n&&{onEntering:m},o&&{onEntered:g},i&&{onExit:y},a&&{onExiting:v},s&&{onExited:b},l&&{addEndListener:w},{children:"function"===typeof c?(e,t)=>c(e,Object.assign({},t,{ref:d})):(0,r.cloneElement)(c,{ref:d})})}const Qi=["component"];const Xi=r.forwardRef(((e,t)=>{let{component:n}=e,r=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,Qi);const o=Yi(r);return(0,At.jsx)(n,Object.assign({ref:t},o))})),Ji=Xi;function Zi(e){let{children:t,in:n,onExited:o,onEntered:i,transition:a}=e;const[s,l]=(0,r.useState)(!n);n&&s&&l(!1);const c=function(e){let{in:t,onTransition:n}=e;const o=(0,r.useRef)(null),i=(0,r.useRef)(!0),a=wi(n);return $i((()=>{if(!o.current)return;let e=!1;return a({in:t,element:o.current,initial:i.current,isStale:()=>e}),()=>{e=!0}}),[t,a]),$i((()=>(i.current=!1,()=>{i.current=!0})),[]),o}({in:!!n,onTransition:e=>{Promise.resolve(a(e)).then((()=>{e.isStale()||(e.in?null==i||i(e.element,e.initial):(l(!0),null==o||o(e.element)))}),(t=>{throw e.in||l(!0),t}))}}),u=Ei(c,t.ref);return s&&!n?null:(0,r.cloneElement)(t,{ref:u})}function ea(e,t,n){return e?(0,At.jsx)(Ji,Object.assign({},n,{component:e})):t?(0,At.jsx)(Zi,Object.assign({},n,{transition:t})):(0,At.jsx)(Ki,Object.assign({},n))}function ta(e){return"Escape"===e.code||27===e.keyCode}const na=["show","role","className","style","children","backdrop","keyboard","onBackdropClick","onEscapeKeyDown","transition","runTransition","backdropTransition","runBackdropTransition","autoFocus","enforceFocus","restoreFocus","restoreFocusOptions","renderDialog","renderBackdrop","manager","container","onShow","onHide","onExit","onExited","onExiting","onEnter","onEntering","onEntered"];let ra;function oa(e){const t=Hi(),n=e||function(e){return ra||(ra=new zi({ownerDocument:null==e?void 0:e.document})),ra}(t),o=(0,r.useRef)({dialog:null,backdrop:null});return Object.assign(o.current,{add:()=>n.add(o.current),remove:()=>n.remove(o.current),isTopModal:()=>n.isTopModal(o.current),setDialogRef:(0,r.useCallback)((e=>{o.current.dialog=e}),[]),setBackdropRef:(0,r.useCallback)((e=>{o.current.backdrop=e}),[])})}const ia=(0,r.forwardRef)(((e,t)=>{let{show:n=!1,role:o="dialog",className:i,style:s,children:l,backdrop:c=!0,keyboard:u=!0,onBackdropClick:f,onEscapeKeyDown:d,transition:p,runTransition:h,backdropTransition:m,runBackdropTransition:g,autoFocus:y=!0,enforceFocus:v=!0,restoreFocus:b=!0,restoreFocusOptions:w,renderDialog:x,renderBackdrop:E=(e=>(0,At.jsx)("div",Object.assign({},e))),manager:S,container:k,onShow:j,onHide:O=(()=>{}),onExit:C,onExited:N,onExiting:T,onEnter:P,onEntering:L,onEntered:R}=e,A=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,na);const _=Hi(),I=Vi(k),M=oa(S),D=Ii(),F=Mi(n),[B,z]=(0,r.useState)(!n),U=(0,r.useRef)(null);(0,r.useImperativeHandle)(t,(()=>M),[M]),ci&&!F&&n&&(U.current=Ai(null==_?void 0:_.document)),n&&B&&z(!1);const H=wi((()=>{if(M.add(),G.current=Pi(document,"keydown",$),K.current=Pi(document,"focus",(()=>setTimeout(V)),!0),j&&j(),y){var e,t;const n=Ai(null!=(e=null==(t=M.dialog)?void 0:t.ownerDocument)?e:null==_?void 0:_.document);M.dialog&&n&&!_i(M.dialog,n)&&(U.current=n,M.dialog.focus())}})),W=wi((()=>{var e;(M.remove(),null==G.current||G.current(),null==K.current||K.current(),b)&&(null==(e=U.current)||null==e.focus||e.focus(w),U.current=null)}));(0,r.useEffect)((()=>{n&&I&&H()}),[n,I,H]),(0,r.useEffect)((()=>{B&&W()}),[B,W]),Si((()=>{W()}));const V=wi((()=>{if(!v||!D()||!M.isTopModal())return;const e=Ai(null==_?void 0:_.document);M.dialog&&e&&!_i(M.dialog,e)&&M.dialog.focus()})),q=wi((e=>{e.target===e.currentTarget&&(null==f||f(e),!0===c&&O())})),$=wi((e=>{u&&ta(e)&&M.isTopModal()&&(null==d||d(e),e.defaultPrevented||O())})),K=(0,r.useRef)(),G=(0,r.useRef)();if(!I)return null;const Y=Object.assign({role:o,ref:M.setDialogRef,"aria-modal":"dialog"===o||void 0},A,{style:s,className:i,tabIndex:-1});let Q=x?x(Y):(0,At.jsx)("div",Object.assign({},Y,{children:r.cloneElement(l,{role:"document"})}));Q=ea(p,h,{unmountOnExit:!0,mountOnEnter:!0,appear:!0,in:!!n,onExit:C,onExiting:T,onExited:function(){z(!0),null==N||N(...arguments)},onEnter:P,onEntering:L,onEntered:R,children:Q});let X=null;return c&&(X=E({ref:M.setBackdropRef,onClick:q}),X=ea(m,g,{in:!!n,appear:!0,mountOnEnter:!0,unmountOnExit:!0,children:X})),(0,At.jsx)(At.Fragment,{children:a.createPortal((0,At.jsxs)(At.Fragment,{children:[X,Q]}),I)})}));ia.displayName="Modal";const aa=Object.assign(ia,{Manager:zi});function sa(e,t){return e.classList?!!t&&e.classList.contains(t):-1!==(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")}var la=Function.prototype.bind.call(Function.prototype.call,[].slice);function ca(e,t){return la(e.querySelectorAll(t))}function ua(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}const fa=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",da=".sticky-top",pa=".navbar-toggler";class ha extends zi{adjustAndStore(e,t,n){const r=t.style[e];t.dataset[e]=r,Ti(t,{[e]:"".concat(parseFloat(Ti(t,e))+n,"px")})}restore(e,t){const n=t.dataset[e];void 0!==n&&(delete t.dataset[e],Ti(t,{[e]:n}))}setContainerStyle(e){super.setContainerStyle(e);const t=this.getElement();var n,r;if(r="modal-open",(n=t).classList?n.classList.add(r):sa(n,r)||("string"===typeof n.className?n.className=n.className+" "+r:n.setAttribute("class",(n.className&&n.className.baseVal||"")+" "+r)),!e.scrollBarWidth)return;const o=this.isRTL?"paddingLeft":"paddingRight",i=this.isRTL?"marginLeft":"marginRight";ca(t,fa).forEach((t=>this.adjustAndStore(o,t,e.scrollBarWidth))),ca(t,da).forEach((t=>this.adjustAndStore(i,t,-e.scrollBarWidth))),ca(t,pa).forEach((t=>this.adjustAndStore(i,t,e.scrollBarWidth)))}removeContainerStyle(e){super.removeContainerStyle(e);const t=this.getElement();var n,r;r="modal-open",(n=t).classList?n.classList.remove(r):"string"===typeof n.className?n.className=ua(n.className,r):n.setAttribute("class",ua(n.className&&n.className.baseVal||"",r));const o=this.isRTL?"paddingLeft":"paddingRight",i=this.isRTL?"marginLeft":"marginRight";ca(t,fa).forEach((e=>this.restore(o,e))),ca(t,da).forEach((e=>this.restore(i,e))),ca(t,pa).forEach((e=>this.restore(i,e)))}}let ma;function ga(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}function ya(e,t){return ya=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},ya(e,t)}const va=!1,ba=r.createContext(null);var wa="unmounted",xa="exited",Ea="entering",Sa="entered",ka="exiting",ja=function(e){var t,n;function o(t,n){var r;r=e.call(this,t,n)||this;var o,i=n&&!n.isMounting?t.enter:t.appear;return r.appearStatus=null,t.in?i?(o=xa,r.appearStatus=Ea):o=Sa:o=t.unmountOnExit||t.mountOnEnter?wa:xa,r.state={status:o},r.nextCallback=null,r}n=e,(t=o).prototype=Object.create(n.prototype),t.prototype.constructor=t,ya(t,n),o.getDerivedStateFromProps=function(e,t){return e.in&&t.status===wa?{status:xa}:null};var i=o.prototype;return i.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},i.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?n!==Ea&&n!==Sa&&(t=Ea):n!==Ea&&n!==Sa||(t=ka)}this.updateStatus(!1,t)},i.componentWillUnmount=function(){this.cancelNextCallback()},i.getTimeouts=function(){var e,t,n,r=this.props.timeout;return e=t=n=r,null!=r&&"number"!==typeof r&&(e=r.exit,t=r.enter,n=void 0!==r.appear?r.appear:t),{exit:e,enter:t,appear:n}},i.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t)if(this.cancelNextCallback(),t===Ea){if(this.props.unmountOnExit||this.props.mountOnEnter){var n=this.props.nodeRef?this.props.nodeRef.current:a.findDOMNode(this);n&&function(e){e.scrollTop}(n)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===xa&&this.setState({status:wa})},i.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,o=this.props.nodeRef?[r]:[a.findDOMNode(this),r],i=o[0],s=o[1],l=this.getTimeouts(),c=r?l.appear:l.enter;!e&&!n||va?this.safeSetState({status:Sa},(function(){t.props.onEntered(i)})):(this.props.onEnter(i,s),this.safeSetState({status:Ea},(function(){t.props.onEntering(i,s),t.onTransitionEnd(c,(function(){t.safeSetState({status:Sa},(function(){t.props.onEntered(i,s)}))}))})))},i.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),r=this.props.nodeRef?void 0:a.findDOMNode(this);t&&!va?(this.props.onExit(r),this.safeSetState({status:ka},(function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,(function(){e.safeSetState({status:xa},(function(){e.props.onExited(r)}))}))}))):this.safeSetState({status:xa},(function(){e.props.onExited(r)}))},i.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},i.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},i.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,t.nextCallback=null,e(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},i.onTransitionEnd=function(e,t){this.setNextCallback(t);var n=this.props.nodeRef?this.props.nodeRef.current:a.findDOMNode(this),r=null==e&&!this.props.addEndListener;if(n&&!r){if(this.props.addEndListener){var o=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],i=o[0],s=o[1];this.props.addEndListener(i,s)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},i.render=function(){var e=this.state.status;if(e===wa)return null;var t=this.props,n=t.children,o=(t.in,t.mountOnEnter,t.unmountOnExit,t.appear,t.enter,t.exit,t.timeout,t.addEndListener,t.onEnter,t.onEntering,t.onEntered,t.onExit,t.onExiting,t.onExited,t.nodeRef,ga(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]));return r.createElement(ba.Provider,{value:null},"function"===typeof n?n(e,o):r.cloneElement(r.Children.only(n),o))},o}(r.Component);function Oa(){}ja.contextType=ba,ja.propTypes={},ja.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Oa,onEntering:Oa,onEntered:Oa,onExit:Oa,onExiting:Oa,onExited:Oa},ja.UNMOUNTED=wa,ja.EXITED=xa,ja.ENTERING=Ea,ja.ENTERED=Sa,ja.EXITING=ka;const Ca=ja;function Na(e,t){const n=Ti(e,t)||"",r=-1===n.indexOf("ms")?1e3:1;return parseFloat(n)*r}function Ta(e,t){const n=Na(e,"transitionDuration"),r=Na(e,"transitionDelay"),o=Ri(e,(n=>{n.target===e&&(o(),t(n))}),n+r)}function Pa(e){return e&&"setState"in e?a.findDOMNode(e):null!=e?e:null}const La=r.forwardRef(((e,t)=>{let{onEnter:n,onEntering:o,onEntered:i,onExit:a,onExiting:s,onExited:l,addEndListener:c,children:u,childRef:f,...d}=e;const p=(0,r.useRef)(null),h=Ei(p,f),m=e=>{h(Pa(e))},g=e=>t=>{e&&p.current&&e(p.current,t)},y=(0,r.useCallback)(g(n),[n]),v=(0,r.useCallback)(g(o),[o]),b=(0,r.useCallback)(g(i),[i]),w=(0,r.useCallback)(g(a),[a]),x=(0,r.useCallback)(g(s),[s]),E=(0,r.useCallback)(g(l),[l]),S=(0,r.useCallback)(g(c),[c]);return(0,At.jsx)(Ca,{ref:t,...d,onEnter:y,onEntered:b,onEntering:v,onExit:w,onExited:E,onExiting:x,addEndListener:S,nodeRef:p,children:"function"===typeof u?(e,t)=>u(e,{...t,ref:m}):r.cloneElement(u,{ref:m})})})),Ra=La,Aa={[Ea]:"show",[Sa]:"show"},_a=r.forwardRef(((e,t)=>{let{className:n,children:o,transitionClasses:i={},onEnter:a,...s}=e;const l={in:!1,timeout:300,mountOnEnter:!1,unmountOnExit:!1,appear:!1,...s},c=(0,r.useCallback)(((e,t)=>{!function(e){e.offsetHeight}(e),null==a||a(e,t)}),[a]);return(0,At.jsx)(Ra,{ref:t,addEndListener:Ta,...l,onEnter:c,childRef:o.ref,children:(e,t)=>r.cloneElement(o,{...t,className:Xo()("fade",n,o.props.className,Aa[e],i[e])})})}));_a.displayName="Fade";const Ia=_a,Ma=r.forwardRef(((e,t)=>{let{className:n,bsPrefix:r,as:o="div",...i}=e;return r=ri(r,"modal-body"),(0,At.jsx)(o,{ref:t,className:Xo()(n,r),...i})}));Ma.displayName="ModalBody";const Da=Ma,Fa=r.createContext({onHide(){}}),Ba=r.forwardRef(((e,t)=>{let{bsPrefix:n,className:r,contentClassName:o,centered:i,size:a,fullscreen:s,children:l,scrollable:c,...u}=e;n=ri(n,"modal");const f="".concat(n,"-dialog"),d="string"===typeof s?"".concat(n,"-fullscreen-").concat(s):"".concat(n,"-fullscreen");return(0,At.jsx)("div",{...u,ref:t,className:Xo()(f,r,a&&"".concat(n,"-").concat(a),i&&"".concat(f,"-centered"),c&&"".concat(f,"-scrollable"),s&&d),children:(0,At.jsx)("div",{className:Xo()("".concat(n,"-content"),o),children:l})})}));Ba.displayName="ModalDialog";const za=Ba,Ua=r.forwardRef(((e,t)=>{let{className:n,bsPrefix:r,as:o="div",...i}=e;return r=ri(r,"modal-footer"),(0,At.jsx)(o,{ref:t,className:Xo()(n,r),...i})}));Ua.displayName="ModalFooter";const Ha=Ua,Wa={"aria-label":Te().string,onClick:Te().func,variant:Te().oneOf(["white"])},Va=r.forwardRef(((e,t)=>{let{className:n,variant:r,"aria-label":o="Close",...i}=e;return(0,At.jsx)("button",{ref:t,type:"button",className:Xo()("btn-close",r&&"btn-close-".concat(r),n),"aria-label":o,...i})}));Va.displayName="CloseButton",Va.propTypes=Wa;const qa=Va,$a=r.forwardRef(((e,t)=>{let{closeLabel:n="Close",closeVariant:o,closeButton:i=!1,onHide:a,children:s,...l}=e;const c=(0,r.useContext)(Fa),u=wi((()=>{null==c||c.onHide(),null==a||a()}));return(0,At.jsxs)("div",{ref:t,...l,children:[s,i&&(0,At.jsx)(qa,{"aria-label":n,variant:o,onClick:u})]})})),Ka=$a,Ga=r.forwardRef(((e,t)=>{let{bsPrefix:n,className:r,closeLabel:o="Close",closeButton:i=!1,...a}=e;return n=ri(n,"modal-header"),(0,At.jsx)(Ka,{ref:t,...a,className:Xo()(r,n),closeLabel:o,closeButton:i})}));Ga.displayName="ModalHeader";const Ya=Ga,Qa=(Xa="h4",r.forwardRef(((e,t)=>(0,At.jsx)("div",{...e,ref:t,className:Xo()(e.className,Xa)}))));var Xa;const Ja=r.forwardRef(((e,t)=>{let{className:n,bsPrefix:r,as:o=Qa,...i}=e;return r=ri(r,"modal-title"),(0,At.jsx)(o,{ref:t,className:Xo()(n,r),...i})}));Ja.displayName="ModalTitle";const Za=Ja;function es(e){return(0,At.jsx)(Ia,{...e,timeout:null})}function ts(e){return(0,At.jsx)(Ia,{...e,timeout:null})}const ns=r.forwardRef(((e,t)=>{let{bsPrefix:n,className:o,style:i,dialogClassName:a,contentClassName:s,children:l,dialogAs:c=za,"data-bs-theme":u,"aria-labelledby":f,"aria-describedby":d,"aria-label":p,show:h=!1,animation:m=!0,backdrop:g=!0,keyboard:y=!0,onEscapeKeyDown:v,onShow:b,onHide:w,container:x,autoFocus:E=!0,enforceFocus:S=!0,restoreFocus:k=!0,restoreFocusOptions:j,onEntered:O,onExit:C,onExiting:N,onEnter:T,onEntering:P,onExited:L,backdropClassName:R,manager:A,..._}=e;const[I,M]=(0,r.useState)({}),[D,F]=(0,r.useState)(!1),B=(0,r.useRef)(!1),z=(0,r.useRef)(!1),U=(0,r.useRef)(null),[H,W]=vi(),V=Ei(t,W),q=wi(w),$=ai();n=ri(n,"modal");const K=(0,r.useMemo)((()=>({onHide:q})),[q]);function G(){return A||function(e){return ma||(ma=new ha(e)),ma}({isRTL:$})}function Y(e){if(!ci)return;const t=G().getScrollbarWidth()>0,n=e.scrollHeight>hi(e).documentElement.clientHeight;M({paddingRight:t&&!n?yi():void 0,paddingLeft:!t&&n?yi():void 0})}const Q=wi((()=>{H&&Y(H.dialog)}));Si((()=>{mi(window,"resize",Q),null==U.current||U.current()}));const X=()=>{B.current=!0},J=e=>{B.current&&H&&e.target===H.dialog&&(z.current=!0),B.current=!1},Z=()=>{F(!0),U.current=Ri(H.dialog,(()=>{F(!1)}))},ee=e=>{"static"!==g?z.current||e.target!==e.currentTarget?z.current=!1:null==w||w():(e=>{e.target===e.currentTarget&&Z()})(e)},te=(0,r.useCallback)((e=>(0,At.jsx)("div",{...e,className:Xo()("".concat(n,"-backdrop"),R,!m&&"show")})),[m,R,n]),ne={...i,...I};ne.display="block";return(0,At.jsx)(Fa.Provider,{value:K,children:(0,At.jsx)(aa,{show:h,ref:V,backdrop:g,container:x,keyboard:!0,autoFocus:E,enforceFocus:S,restoreFocus:k,restoreFocusOptions:j,onEscapeKeyDown:e=>{y?null==v||v(e):(e.preventDefault(),"static"===g&&Z())},onShow:b,onHide:w,onEnter:(e,t)=>{e&&Y(e),null==T||T(e,t)},onEntering:(e,t)=>{null==P||P(e,t),pi(window,"resize",Q)},onEntered:O,onExit:e=>{null==U.current||U.current(),null==C||C(e)},onExiting:N,onExited:e=>{e&&(e.style.display=""),null==L||L(e),mi(window,"resize",Q)},manager:G(),transition:m?es:void 0,backdropTransition:m?ts:void 0,renderBackdrop:te,renderDialog:e=>(0,At.jsx)("div",{role:"dialog",...e,style:ne,className:Xo()(o,n,D&&"".concat(n,"-static"),!m&&"show"),onClick:g?ee:void 0,onMouseUp:J,"data-bs-theme":u,"aria-label":p,"aria-labelledby":f,"aria-describedby":d,children:(0,At.jsx)(c,{..._,onMouseDown:X,className:a,contentClassName:s,children:l})})})})}));ns.displayName="Modal";const rs=Object.assign(ns,{Body:Da,Header:Ya,Title:Za,Footer:Ha,Dialog:za,TRANSITION_DURATION:300,BACKDROP_TRANSITION_DURATION:150}),os=["as","disabled"];function is(e){let{tagName:t,disabled:n,href:r,target:o,rel:i,role:a,onClick:s,tabIndex:l=0,type:c}=e;t||(t=null!=r||null!=o||null!=i?"a":"button");const u={tagName:t};if("button"===t)return[{type:c||"button",disabled:n},u];const f=e=>{(n||"a"===t&&function(e){return!e||"#"===e.trim()}(r))&&e.preventDefault(),n?e.stopPropagation():null==s||s(e)};return"a"===t&&(r||(r="#"),n&&(r=void 0)),[{role:null!=a?a:"button",disabled:void 0,tabIndex:n?void 0:l,href:r,target:"a"===t?o:void 0,"aria-disabled":n||void 0,rel:"a"===t?i:void 0,onClick:f,onKeyDown:e=>{" "===e.key&&(e.preventDefault(),f(e))}},u]}const as=r.forwardRef(((e,t)=>{let{as:n,disabled:r}=e,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,os);const[i,{tagName:a}]=is(Object.assign({tagName:n,disabled:r},o));return(0,At.jsx)(a,Object.assign({},o,i,{ref:t}))}));as.displayName="Button";const ss=as,ls=r.forwardRef(((e,t)=>{let{as:n,bsPrefix:r,variant:o="primary",size:i,active:a=!1,disabled:s=!1,className:l,...c}=e;const u=ri(r,"btn"),[f,{tagName:d}]=is({tagName:n,disabled:s,...c}),p=d;return(0,At.jsx)(p,{...f,...c,ref:t,disabled:s,className:Xo()(l,u,a&&"active",o&&"".concat(u,"-").concat(o),i&&"".concat(u,"-").concat(i),c.href&&s&&"disabled")})}));ls.displayName="Button";const cs=ls,us=e=>{const t=rn(),n=Gt((e=>e.common.serviceStatus)),[o,i]=(0,r.useState)(!0),a=Gt((e=>e.common.startLLMService)),s=Gt((e=>e.common.stopLLMService)),[l,c]=(0,r.useState)(0);return(0,r.useEffect)((()=>{e.emPower&&t(so())}),[e.emPower]),(0,r.useEffect)((()=>{!o&&!n.loading&&Object.keys(n.data).length>0&&c("API is working"==n.data.status?1:0),i(!1)}),[n]),(0,r.useEffect)((()=>{!o&&!a.loading&&Object.keys(a.data).length>0&&(c(1),e.closeEmPowerModal()),i(!1)}),[a]),(0,r.useEffect)((()=>{!o&&!s.loading&&Object.keys(s.data).length>0&&(c(0),e.closeEmPowerModal()),i(!1)}),[s]),(0,At.jsx)(At.Fragment,{children:(0,At.jsx)(rs,{className:"modal-dialog-center rename-thread-modal",size:"md",centered:!0,show:e.emPower,onHide:e.closeEmPowerModal,children:(0,At.jsxs)(rs.Body,{children:[(0,At.jsx)(cs,{className:"modal-close",onClick:()=>e.closeEmPowerModal(),children:(0,At.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"15",height:"15",fill:"none",viewBox:"0 0 11 11",children:(0,At.jsx)("path",{fill:"#979BA2",d:"M10.756.252a.83.83 0 00-1.176 0L5.5 4.324 1.42.244A.83.83 0 10.244 1.42l4.08 4.08-4.08 4.08a.83.83 0 101.176 1.176l4.08-4.08 4.08 4.08a.831.831 0 101.176-1.176L6.676 5.5l4.08-4.08a.836.836 0 000-1.168z"})})}),(0,At.jsxs)("div",{className:"empower-card",children:[(0,At.jsx)("div",{className:"empower-icon-sec",children:(0,At.jsx)(li,{className:"empower-icon",src:window.location.origin+"/img/empower-icon.svg"})}),(0,At.jsxs)("div",{className:"empower-info",children:[(0,At.jsx)("h3",{children:"Empower"}),(0,At.jsx)("p",{children:"Enjoy ultimate control over HaiVe experience with the flexibility to start and stop service as your workflow demands."}),(0,At.jsxs)("div",{className:"empower-service-status",children:[n.buttonDisable?"Checking Service Status":"The LLM Service is currently"," ",(0,At.jsx)("span",{className:"running-service",children:l?"Running...":"Stopped..."})]}),(0,At.jsx)("div",{className:"empower-btn-sec",children:l?(0,At.jsx)(cs,{disabled:n.buttonDisable||s.buttonDisable,onClick:()=>t(jo()),className:"default-btn stop-btn",children:"Stop Service"}):(0,At.jsx)(cs,{disabled:n.buttonDisable||a.buttonDisable,onClick:()=>t(Eo()),className:"default-btn start-btn",children:"Start Service"})})]})]})]})})})};function fs(e){return t=>typeof t===e}var ds=fs("function"),ps=e=>"RegExp"===Object.prototype.toString.call(e).slice(8,-1),hs=e=>!ms(e)&&!(e=>null===e)(e)&&(ds(e)||"object"===typeof e),ms=fs("undefined");function gs(e,t){if(e===t)return!0;if(e&&hs(e)&&t&&hs(t)){if(e.constructor!==t.constructor)return!1;if(Array.isArray(e)&&Array.isArray(t))return function(e,t){const{length:n}=e;if(n!==t.length)return!1;for(let r=n;0!==r--;)if(!gs(e[r],t[r]))return!1;return!0}(e,t);if(e instanceof Map&&t instanceof Map)return function(e,t){if(e.size!==t.size)return!1;for(const n of e.entries())if(!t.has(n[0]))return!1;for(const n of e.entries())if(!gs(n[1],t.get(n[0])))return!1;return!0}(e,t);if(e instanceof Set&&t instanceof Set)return function(e,t){if(e.size!==t.size)return!1;for(const n of e.entries())if(!t.has(n[0]))return!1;return!0}(e,t);if(ArrayBuffer.isView(e)&&ArrayBuffer.isView(t))return function(e,t){if(e.byteLength!==t.byteLength)return!1;const n=new DataView(e.buffer),r=new DataView(t.buffer);let o=e.byteLength;for(;o--;)if(n.getUint8(o)!==r.getUint8(o))return!1;return!0}(e,t);if(ps(e)&&ps(t))return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===t.toString();const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let e=n.length;0!==e--;)if(!Object.prototype.hasOwnProperty.call(t,n[e]))return!1;for(let o=n.length;0!==o--;){const r=n[o];if(("_owner"!==r||!e.$$typeof)&&!gs(e[r],t[r]))return!1}return!0}return!(!Number.isNaN(e)||!Number.isNaN(t))||e===t}var ys=["Array","ArrayBuffer","AsyncFunction","AsyncGenerator","AsyncGeneratorFunction","Date","Error","Function","Generator","GeneratorFunction","HTMLElement","Map","Object","Promise","RegExp","Set","WeakMap","WeakSet"],vs=["bigint","boolean","null","number","string","symbol","undefined"];function bs(e){const t=Object.prototype.toString.call(e).slice(8,-1);return/HTML\w+Element/.test(t)?"HTMLElement":(n=t,ys.includes(n)?t:void 0);var n}function ws(e){return t=>bs(t)===e}function xs(e){return t=>typeof t===e}var Es=["innerHTML","ownerDocument","style","attributes","nodeValue"];function Ss(e){if(null===e)return"null";switch(typeof e){case"bigint":return"bigint";case"boolean":return"boolean";case"number":return"number";case"string":return"string";case"symbol":return"symbol";case"undefined":return"undefined"}if(Ss.array(e))return"Array";if(Ss.plainFunction(e))return"Function";const t=bs(e);return t||"Object"}Ss.array=Array.isArray,Ss.arrayOf=(e,t)=>!(!Ss.array(e)&&!Ss.function(t))&&e.every((e=>t(e))),Ss.asyncGeneratorFunction=e=>"AsyncGeneratorFunction"===bs(e),Ss.asyncFunction=ws("AsyncFunction"),Ss.bigint=xs("bigint"),Ss.boolean=e=>!0===e||!1===e,Ss.date=ws("Date"),Ss.defined=e=>!Ss.undefined(e),Ss.domElement=e=>Ss.object(e)&&!Ss.plainObject(e)&&1===e.nodeType&&Ss.string(e.nodeName)&&Es.every((t=>t in e)),Ss.empty=e=>Ss.string(e)&&0===e.length||Ss.array(e)&&0===e.length||Ss.object(e)&&!Ss.map(e)&&!Ss.set(e)&&0===Object.keys(e).length||Ss.set(e)&&0===e.size||Ss.map(e)&&0===e.size,Ss.error=ws("Error"),Ss.function=xs("function"),Ss.generator=e=>Ss.iterable(e)&&Ss.function(e.next)&&Ss.function(e.throw),Ss.generatorFunction=ws("GeneratorFunction"),Ss.instanceOf=(e,t)=>!(!e||!t)&&Object.getPrototypeOf(e)===t.prototype,Ss.iterable=e=>!Ss.nullOrUndefined(e)&&Ss.function(e[Symbol.iterator]),Ss.map=ws("Map"),Ss.nan=e=>Number.isNaN(e),Ss.null=e=>null===e,Ss.nullOrUndefined=e=>Ss.null(e)||Ss.undefined(e),Ss.number=e=>xs("number")(e)&&!Ss.nan(e),Ss.numericString=e=>Ss.string(e)&&e.length>0&&!Number.isNaN(Number(e)),Ss.object=e=>!Ss.nullOrUndefined(e)&&(Ss.function(e)||"object"===typeof e),Ss.oneOf=(e,t)=>!!Ss.array(e)&&e.indexOf(t)>-1,Ss.plainFunction=ws("Function"),Ss.plainObject=e=>{if("Object"!==bs(e))return!1;const t=Object.getPrototypeOf(e);return null===t||t===Object.getPrototypeOf({})},Ss.primitive=e=>{return Ss.null(e)||(t=typeof e,vs.includes(t));var t},Ss.promise=ws("Promise"),Ss.propertyOf=(e,t,n)=>{if(!Ss.object(e)||!t)return!1;const r=e[t];return Ss.function(n)?n(r):Ss.defined(r)},Ss.regexp=ws("RegExp"),Ss.set=ws("Set"),Ss.string=xs("string"),Ss.symbol=xs("symbol"),Ss.undefined=xs("undefined"),Ss.weakMap=ws("WeakMap"),Ss.weakSet=ws("WeakSet");var ks=Ss;function js(e,t,n){const{actual:r,key:o,previous:i,type:a}=n,s=As(e,o),l=As(t,o);let c=[s,l].every(ks.number)&&("increased"===a?s<l:s>l);return ks.undefined(r)||(c=c&&l===r),ks.undefined(i)||(c=c&&s===i),c}function Os(e,t,n){const{key:r,type:o,value:i}=n,a=As(e,r),s=As(t,r),l="added"===o?a:s,c="added"===o?s:a;return ks.nullOrUndefined(i)?[a,s].every(ks.array)?!c.every(Ls(l)):[a,s].every(ks.plainObject)?function(e,t){return t.some((t=>!e.includes(t)))}(Object.keys(l),Object.keys(c)):![a,s].every((e=>ks.primitive(e)&&ks.defined(e)))&&("added"===o?!ks.defined(a)&&ks.defined(s):ks.defined(a)&&!ks.defined(s)):ks.defined(l)?!(!ks.array(l)&&!ks.plainObject(l))&&function(e,t,n){return!!Rs(e,t)&&([e,t].every(ks.array)?!e.some(Ts(n))&&t.some(Ts(n)):[e,t].every(ks.plainObject)?!Object.entries(e).some(Ns(n))&&Object.entries(t).some(Ns(n)):t===n)}(l,c,i):gs(c,i)}function Cs(e,t){let{key:n}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=As(e,n),o=As(t,n);if(!Rs(r,o))throw new TypeError("Inputs have different types");if(!function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.every((e=>ks.string(e)||ks.array(e)||ks.plainObject(e)))}(r,o))throw new TypeError("Inputs don't have length");return[r,o].every(ks.plainObject)&&(r=Object.keys(r),o=Object.keys(o)),[r,o]}function Ns(e){return t=>{let[n,r]=t;return ks.array(e)?gs(e,r)||e.some((e=>gs(e,r)||ks.array(r)&&Ls(r)(e))):ks.plainObject(e)&&e[n]?!!e[n]&&gs(e[n],r):gs(e,r)}}function Ts(e){return t=>ks.array(e)?e.some((e=>gs(e,t)||ks.array(t)&&Ls(t)(e))):gs(e,t)}function Ps(e,t){return ks.array(e)?e.some((e=>gs(e,t))):gs(e,t)}function Ls(e){return t=>e.some((e=>gs(e,t)))}function Rs(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.every(ks.array)||t.every(ks.number)||t.every(ks.plainObject)||t.every(ks.string)}function As(e,t){if(ks.plainObject(e)||ks.array(e)){if(ks.string(t)){return t.split(".").reduce(((e,t)=>e&&e[t]),e)}return ks.number(t)?e[t]:e}return e}function _s(e,t){if([e,t].some(ks.nullOrUndefined))throw new Error("Missing required parameters");if(![e,t].every((e=>ks.plainObject(e)||ks.array(e))))throw new Error("Expected plain objects or array");return{added:(n,r)=>{try{return Os(e,t,{key:n,type:"added",value:r})}catch{return!1}},changed:(n,r,o)=>{try{const i=As(e,n),a=As(t,n),s=ks.defined(r),l=ks.defined(o);if(s||l){const e=l?Ps(o,i):!Ps(r,i),t=Ps(r,a);return e&&t}return[i,a].every(ks.array)||[i,a].every(ks.plainObject)?!gs(i,a):i!==a}catch{return!1}},changedFrom:(n,r,o)=>{if(!ks.defined(n))return!1;try{const i=As(e,n),a=As(t,n),s=ks.defined(o);return Ps(r,i)&&(s?Ps(o,a):!s)}catch{return!1}},decreased:(n,r,o)=>{if(!ks.defined(n))return!1;try{return js(e,t,{key:n,actual:r,previous:o,type:"decreased"})}catch{return!1}},emptied:n=>{try{const[r,o]=Cs(e,t,{key:n});return!!r.length&&!o.length}catch{return!1}},filled:n=>{try{const[r,o]=Cs(e,t,{key:n});return!r.length&&!!o.length}catch{return!1}},increased:(n,r,o)=>{if(!ks.defined(n))return!1;try{return js(e,t,{key:n,actual:r,previous:o,type:"increased"})}catch{return!1}},removed:(n,r)=>{try{return Os(e,t,{key:n,type:"removed",value:r})}catch{return!1}}}}var Is=n(865),Ms=n(496),Ds=n(789),Fs=n.n(Ds),Bs="undefined"!==typeof window&&"undefined"!==typeof document&&"undefined"!==typeof navigator,zs=function(){for(var e=["Edge","Trident","Firefox"],t=0;t<e.length;t+=1)if(Bs&&navigator.userAgent.indexOf(e[t])>=0)return 1;return 0}();var Us=Bs&&window.Promise?function(e){var t=!1;return function(){t||(t=!0,window.Promise.resolve().then((function(){t=!1,e()})))}}:function(e){var t=!1;return function(){t||(t=!0,setTimeout((function(){t=!1,e()}),zs))}};function Hs(e){return e&&"[object Function]"==={}.toString.call(e)}function Ws(e,t){if(1!==e.nodeType)return[];var n=e.ownerDocument.defaultView.getComputedStyle(e,null);return t?n[t]:n}function Vs(e){return"HTML"===e.nodeName?e:e.parentNode||e.host}function qs(e){if(!e)return document.body;switch(e.nodeName){case"HTML":case"BODY":return e.ownerDocument.body;case"#document":return e.body}var t=Ws(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/(auto|scroll|overlay)/.test(n+o+r)?e:qs(Vs(e))}function $s(e){return e&&e.referenceNode?e.referenceNode:e}var Ks=Bs&&!(!window.MSInputMethodContext||!document.documentMode),Gs=Bs&&/MSIE 10/.test(navigator.userAgent);function Ys(e){return 11===e?Ks:10===e?Gs:Ks||Gs}function Qs(e){if(!e)return document.documentElement;for(var t=Ys(10)?document.body:null,n=e.offsetParent||null;n===t&&e.nextElementSibling;)n=(e=e.nextElementSibling).offsetParent;var r=n&&n.nodeName;return r&&"BODY"!==r&&"HTML"!==r?-1!==["TH","TD","TABLE"].indexOf(n.nodeName)&&"static"===Ws(n,"position")?Qs(n):n:e?e.ownerDocument.documentElement:document.documentElement}function Xs(e){return null!==e.parentNode?Xs(e.parentNode):e}function Js(e,t){if(!e||!e.nodeType||!t||!t.nodeType)return document.documentElement;var n=e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING,r=n?e:t,o=n?t:e,i=document.createRange();i.setStart(r,0),i.setEnd(o,0);var a=i.commonAncestorContainer;if(e!==a&&t!==a||r.contains(o))return function(e){var t=e.nodeName;return"BODY"!==t&&("HTML"===t||Qs(e.firstElementChild)===e)}(a)?a:Qs(a);var s=Xs(e);return s.host?Js(s.host,t):Js(e,Xs(t).host)}function Zs(e){var t="top"===(arguments.length>1&&void 0!==arguments[1]?arguments[1]:"top")?"scrollTop":"scrollLeft",n=e.nodeName;if("BODY"===n||"HTML"===n){var r=e.ownerDocument.documentElement;return(e.ownerDocument.scrollingElement||r)[t]}return e[t]}function el(e,t){var n="x"===t?"Left":"Top",r="Left"===n?"Right":"Bottom";return parseFloat(e["border"+n+"Width"])+parseFloat(e["border"+r+"Width"])}function tl(e,t,n,r){return Math.max(t["offset"+e],t["scroll"+e],n["client"+e],n["offset"+e],n["scroll"+e],Ys(10)?parseInt(n["offset"+e])+parseInt(r["margin"+("Height"===e?"Top":"Left")])+parseInt(r["margin"+("Height"===e?"Bottom":"Right")]):0)}function nl(e){var t=e.body,n=e.documentElement,r=Ys(10)&&getComputedStyle(n);return{height:tl("Height",t,n,r),width:tl("Width",t,n,r)}}var rl=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),ol=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},il=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function al(e){return il({},e,{right:e.left+e.width,bottom:e.top+e.height})}function sl(e){var t={};try{if(Ys(10)){t=e.getBoundingClientRect();var n=Zs(e,"top"),r=Zs(e,"left");t.top+=n,t.left+=r,t.bottom+=n,t.right+=r}else t=e.getBoundingClientRect()}catch(OE){}var o={left:t.left,top:t.top,width:t.right-t.left,height:t.bottom-t.top},i="HTML"===e.nodeName?nl(e.ownerDocument):{},a=i.width||e.clientWidth||o.width,s=i.height||e.clientHeight||o.height,l=e.offsetWidth-a,c=e.offsetHeight-s;if(l||c){var u=Ws(e);l-=el(u,"x"),c-=el(u,"y"),o.width-=l,o.height-=c}return al(o)}function ll(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=Ys(10),o="HTML"===t.nodeName,i=sl(e),a=sl(t),s=qs(e),l=Ws(t),c=parseFloat(l.borderTopWidth),u=parseFloat(l.borderLeftWidth);n&&o&&(a.top=Math.max(a.top,0),a.left=Math.max(a.left,0));var f=al({top:i.top-a.top-c,left:i.left-a.left-u,width:i.width,height:i.height});if(f.marginTop=0,f.marginLeft=0,!r&&o){var d=parseFloat(l.marginTop),p=parseFloat(l.marginLeft);f.top-=c-d,f.bottom-=c-d,f.left-=u-p,f.right-=u-p,f.marginTop=d,f.marginLeft=p}return(r&&!n?t.contains(s):t===s&&"BODY"!==s.nodeName)&&(f=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=Zs(t,"top"),o=Zs(t,"left"),i=n?-1:1;return e.top+=r*i,e.bottom+=r*i,e.left+=o*i,e.right+=o*i,e}(f,t)),f}function cl(e){var t=e.nodeName;if("BODY"===t||"HTML"===t)return!1;if("fixed"===Ws(e,"position"))return!0;var n=Vs(e);return!!n&&cl(n)}function ul(e){if(!e||!e.parentElement||Ys())return document.documentElement;for(var t=e.parentElement;t&&"none"===Ws(t,"transform");)t=t.parentElement;return t||document.documentElement}function fl(e,t,n,r){var o=arguments.length>4&&void 0!==arguments[4]&&arguments[4],i={top:0,left:0},a=o?ul(e):Js(e,$s(t));if("viewport"===r)i=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=e.ownerDocument.documentElement,r=ll(e,n),o=Math.max(n.clientWidth,window.innerWidth||0),i=Math.max(n.clientHeight,window.innerHeight||0),a=t?0:Zs(n),s=t?0:Zs(n,"left");return al({top:a-r.top+r.marginTop,left:s-r.left+r.marginLeft,width:o,height:i})}(a,o);else{var s=void 0;"scrollParent"===r?"BODY"===(s=qs(Vs(t))).nodeName&&(s=e.ownerDocument.documentElement):s="window"===r?e.ownerDocument.documentElement:r;var l=ll(s,a,o);if("HTML"!==s.nodeName||cl(a))i=l;else{var c=nl(e.ownerDocument),u=c.height,f=c.width;i.top+=l.top-l.marginTop,i.bottom=u+l.top,i.left+=l.left-l.marginLeft,i.right=f+l.left}}var d="number"===typeof(n=n||0);return i.left+=d?n:n.left||0,i.top+=d?n:n.top||0,i.right-=d?n:n.right||0,i.bottom-=d?n:n.bottom||0,i}function dl(e,t,n,r,o){var i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0;if(-1===e.indexOf("auto"))return e;var a=fl(n,r,i,o),s={top:{width:a.width,height:t.top-a.top},right:{width:a.right-t.right,height:a.height},bottom:{width:a.width,height:a.bottom-t.bottom},left:{width:t.left-a.left,height:a.height}},l=Object.keys(s).map((function(e){return il({key:e},s[e],{area:(t=s[e],t.width*t.height)});var t})).sort((function(e,t){return t.area-e.area})),c=l.filter((function(e){var t=e.width,r=e.height;return t>=n.clientWidth&&r>=n.clientHeight})),u=c.length>0?c[0].key:l[0].key,f=e.split("-")[1];return u+(f?"-"+f:"")}function pl(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return ll(n,r?ul(t):Js(t,$s(n)),r)}function hl(e){var t=e.ownerDocument.defaultView.getComputedStyle(e),n=parseFloat(t.marginTop||0)+parseFloat(t.marginBottom||0),r=parseFloat(t.marginLeft||0)+parseFloat(t.marginRight||0);return{width:e.offsetWidth+r,height:e.offsetHeight+n}}function ml(e){var t={left:"right",right:"left",bottom:"top",top:"bottom"};return e.replace(/left|right|bottom|top/g,(function(e){return t[e]}))}function gl(e,t,n){n=n.split("-")[0];var r=hl(e),o={width:r.width,height:r.height},i=-1!==["right","left"].indexOf(n),a=i?"top":"left",s=i?"left":"top",l=i?"height":"width",c=i?"width":"height";return o[a]=t[a]+t[l]/2-r[l]/2,o[s]=n===s?t[s]-r[c]:t[ml(s)],o}function yl(e,t){return Array.prototype.find?e.find(t):e.filter(t)[0]}function vl(e,t,n){return(void 0===n?e:e.slice(0,function(e,t,n){if(Array.prototype.findIndex)return e.findIndex((function(e){return e[t]===n}));var r=yl(e,(function(e){return e[t]===n}));return e.indexOf(r)}(e,"name",n))).forEach((function(e){e.function&&console.warn("`modifier.function` is deprecated, use `modifier.fn`!");var n=e.function||e.fn;e.enabled&&Hs(n)&&(t.offsets.popper=al(t.offsets.popper),t.offsets.reference=al(t.offsets.reference),t=n(t,e))})),t}function bl(){if(!this.state.isDestroyed){var e={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};e.offsets.reference=pl(this.state,this.popper,this.reference,this.options.positionFixed),e.placement=dl(this.options.placement,e.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding),e.originalPlacement=e.placement,e.positionFixed=this.options.positionFixed,e.offsets.popper=gl(this.popper,e.offsets.reference,e.placement),e.offsets.popper.position=this.options.positionFixed?"fixed":"absolute",e=vl(this.modifiers,e),this.state.isCreated?this.options.onUpdate(e):(this.state.isCreated=!0,this.options.onCreate(e))}}function wl(e,t){return e.some((function(e){var n=e.name;return e.enabled&&n===t}))}function xl(e){for(var t=[!1,"ms","Webkit","Moz","O"],n=e.charAt(0).toUpperCase()+e.slice(1),r=0;r<t.length;r++){var o=t[r],i=o?""+o+n:e;if("undefined"!==typeof document.body.style[i])return i}return null}function El(){return this.state.isDestroyed=!0,wl(this.modifiers,"applyStyle")&&(this.popper.removeAttribute("x-placement"),this.popper.style.position="",this.popper.style.top="",this.popper.style.left="",this.popper.style.right="",this.popper.style.bottom="",this.popper.style.willChange="",this.popper.style[xl("transform")]=""),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}function Sl(e){var t=e.ownerDocument;return t?t.defaultView:window}function kl(e,t,n,r){var o="BODY"===e.nodeName,i=o?e.ownerDocument.defaultView:e;i.addEventListener(t,n,{passive:!0}),o||kl(qs(i.parentNode),t,n,r),r.push(i)}function jl(e,t,n,r){n.updateBound=r,Sl(e).addEventListener("resize",n.updateBound,{passive:!0});var o=qs(e);return kl(o,"scroll",n.updateBound,n.scrollParents),n.scrollElement=o,n.eventsEnabled=!0,n}function Ol(){this.state.eventsEnabled||(this.state=jl(this.reference,this.options,this.state,this.scheduleUpdate))}function Cl(){this.state.eventsEnabled&&(cancelAnimationFrame(this.scheduleUpdate),this.state=function(e,t){return Sl(e).removeEventListener("resize",t.updateBound),t.scrollParents.forEach((function(e){e.removeEventListener("scroll",t.updateBound)})),t.updateBound=null,t.scrollParents=[],t.scrollElement=null,t.eventsEnabled=!1,t}(this.reference,this.state))}function Nl(e){return""!==e&&!isNaN(parseFloat(e))&&isFinite(e)}function Tl(e,t){Object.keys(t).forEach((function(n){var r="";-1!==["width","height","top","right","bottom","left"].indexOf(n)&&Nl(t[n])&&(r="px"),e.style[n]=t[n]+r}))}var Pl=Bs&&/Firefox/i.test(navigator.userAgent);function Ll(e,t,n){var r=yl(e,(function(e){return e.name===t})),o=!!r&&e.some((function(e){return e.name===n&&e.enabled&&e.order<r.order}));if(!o){var i="`"+t+"`",a="`"+n+"`";console.warn(a+" modifier is required by "+i+" modifier in order to work, be sure to include it before "+i+"!")}return o}var Rl=["auto-start","auto","auto-end","top-start","top","top-end","right-start","right","right-end","bottom-end","bottom","bottom-start","left-end","left","left-start"],Al=Rl.slice(3);function _l(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=Al.indexOf(e),r=Al.slice(n+1).concat(Al.slice(0,n));return t?r.reverse():r}var Il="flip",Ml="clockwise",Dl="counterclockwise";function Fl(e,t,n,r){var o=[0,0],i=-1!==["right","left"].indexOf(r),a=e.split(/(\+|\-)/).map((function(e){return e.trim()})),s=a.indexOf(yl(a,(function(e){return-1!==e.search(/,|\s/)})));a[s]&&-1===a[s].indexOf(",")&&console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead.");var l=/\s*,\s*|\s+/,c=-1!==s?[a.slice(0,s).concat([a[s].split(l)[0]]),[a[s].split(l)[1]].concat(a.slice(s+1))]:[a];return c=c.map((function(e,r){var o=(1===r?!i:i)?"height":"width",a=!1;return e.reduce((function(e,t){return""===e[e.length-1]&&-1!==["+","-"].indexOf(t)?(e[e.length-1]=t,a=!0,e):a?(e[e.length-1]+=t,a=!1,e):e.concat(t)}),[]).map((function(e){return function(e,t,n,r){var o=e.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),i=+o[1],a=o[2];if(!i)return e;if(0===a.indexOf("%")){return al("%p"===a?n:r)[t]/100*i}if("vh"===a||"vw"===a)return("vh"===a?Math.max(document.documentElement.clientHeight,window.innerHeight||0):Math.max(document.documentElement.clientWidth,window.innerWidth||0))/100*i;return i}(e,o,t,n)}))})),c.forEach((function(e,t){e.forEach((function(n,r){Nl(n)&&(o[t]+=n*("-"===e[r-1]?-1:1))}))})),o}var Bl={shift:{order:100,enabled:!0,fn:function(e){var t=e.placement,n=t.split("-")[0],r=t.split("-")[1];if(r){var o=e.offsets,i=o.reference,a=o.popper,s=-1!==["bottom","top"].indexOf(n),l=s?"left":"top",c=s?"width":"height",u={start:ol({},l,i[l]),end:ol({},l,i[l]+i[c]-a[c])};e.offsets.popper=il({},a,u[r])}return e}},offset:{order:200,enabled:!0,fn:function(e,t){var n=t.offset,r=e.placement,o=e.offsets,i=o.popper,a=o.reference,s=r.split("-")[0],l=void 0;return l=Nl(+n)?[+n,0]:Fl(n,i,a,s),"left"===s?(i.top+=l[0],i.left-=l[1]):"right"===s?(i.top+=l[0],i.left+=l[1]):"top"===s?(i.left+=l[0],i.top-=l[1]):"bottom"===s&&(i.left+=l[0],i.top+=l[1]),e.popper=i,e},offset:0},preventOverflow:{order:300,enabled:!0,fn:function(e,t){var n=t.boundariesElement||Qs(e.instance.popper);e.instance.reference===n&&(n=Qs(n));var r=xl("transform"),o=e.instance.popper.style,i=o.top,a=o.left,s=o[r];o.top="",o.left="",o[r]="";var l=fl(e.instance.popper,e.instance.reference,t.padding,n,e.positionFixed);o.top=i,o.left=a,o[r]=s,t.boundaries=l;var c=t.priority,u=e.offsets.popper,f={primary:function(e){var n=u[e];return u[e]<l[e]&&!t.escapeWithReference&&(n=Math.max(u[e],l[e])),ol({},e,n)},secondary:function(e){var n="right"===e?"left":"top",r=u[n];return u[e]>l[e]&&!t.escapeWithReference&&(r=Math.min(u[n],l[e]-("right"===e?u.width:u.height))),ol({},n,r)}};return c.forEach((function(e){var t=-1!==["left","top"].indexOf(e)?"primary":"secondary";u=il({},u,f[t](e))})),e.offsets.popper=u,e},priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:function(e){var t=e.offsets,n=t.popper,r=t.reference,o=e.placement.split("-")[0],i=Math.floor,a=-1!==["top","bottom"].indexOf(o),s=a?"right":"bottom",l=a?"left":"top",c=a?"width":"height";return n[s]<i(r[l])&&(e.offsets.popper[l]=i(r[l])-n[c]),n[l]>i(r[s])&&(e.offsets.popper[l]=i(r[s])),e}},arrow:{order:500,enabled:!0,fn:function(e,t){var n;if(!Ll(e.instance.modifiers,"arrow","keepTogether"))return e;var r=t.element;if("string"===typeof r){if(!(r=e.instance.popper.querySelector(r)))return e}else if(!e.instance.popper.contains(r))return console.warn("WARNING: `arrow.element` must be child of its popper element!"),e;var o=e.placement.split("-")[0],i=e.offsets,a=i.popper,s=i.reference,l=-1!==["left","right"].indexOf(o),c=l?"height":"width",u=l?"Top":"Left",f=u.toLowerCase(),d=l?"left":"top",p=l?"bottom":"right",h=hl(r)[c];s[p]-h<a[f]&&(e.offsets.popper[f]-=a[f]-(s[p]-h)),s[f]+h>a[p]&&(e.offsets.popper[f]+=s[f]+h-a[p]),e.offsets.popper=al(e.offsets.popper);var m=s[f]+s[c]/2-h/2,g=Ws(e.instance.popper),y=parseFloat(g["margin"+u]),v=parseFloat(g["border"+u+"Width"]),b=m-e.offsets.popper[f]-y-v;return b=Math.max(Math.min(a[c]-h,b),0),e.arrowElement=r,e.offsets.arrow=(ol(n={},f,Math.round(b)),ol(n,d,""),n),e},element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:function(e,t){if(wl(e.instance.modifiers,"inner"))return e;if(e.flipped&&e.placement===e.originalPlacement)return e;var n=fl(e.instance.popper,e.instance.reference,t.padding,t.boundariesElement,e.positionFixed),r=e.placement.split("-")[0],o=ml(r),i=e.placement.split("-")[1]||"",a=[];switch(t.behavior){case Il:a=[r,o];break;case Ml:a=_l(r);break;case Dl:a=_l(r,!0);break;default:a=t.behavior}return a.forEach((function(s,l){if(r!==s||a.length===l+1)return e;r=e.placement.split("-")[0],o=ml(r);var c=e.offsets.popper,u=e.offsets.reference,f=Math.floor,d="left"===r&&f(c.right)>f(u.left)||"right"===r&&f(c.left)<f(u.right)||"top"===r&&f(c.bottom)>f(u.top)||"bottom"===r&&f(c.top)<f(u.bottom),p=f(c.left)<f(n.left),h=f(c.right)>f(n.right),m=f(c.top)<f(n.top),g=f(c.bottom)>f(n.bottom),y="left"===r&&p||"right"===r&&h||"top"===r&&m||"bottom"===r&&g,v=-1!==["top","bottom"].indexOf(r),b=!!t.flipVariations&&(v&&"start"===i&&p||v&&"end"===i&&h||!v&&"start"===i&&m||!v&&"end"===i&&g),w=!!t.flipVariationsByContent&&(v&&"start"===i&&h||v&&"end"===i&&p||!v&&"start"===i&&g||!v&&"end"===i&&m),x=b||w;(d||y||x)&&(e.flipped=!0,(d||y)&&(r=a[l+1]),x&&(i=function(e){return"end"===e?"start":"start"===e?"end":e}(i)),e.placement=r+(i?"-"+i:""),e.offsets.popper=il({},e.offsets.popper,gl(e.instance.popper,e.offsets.reference,e.placement)),e=vl(e.instance.modifiers,e,"flip"))})),e},behavior:"flip",padding:5,boundariesElement:"viewport",flipVariations:!1,flipVariationsByContent:!1},inner:{order:700,enabled:!1,fn:function(e){var t=e.placement,n=t.split("-")[0],r=e.offsets,o=r.popper,i=r.reference,a=-1!==["left","right"].indexOf(n),s=-1===["top","left"].indexOf(n);return o[a?"left":"top"]=i[n]-(s?o[a?"width":"height"]:0),e.placement=ml(t),e.offsets.popper=al(o),e}},hide:{order:800,enabled:!0,fn:function(e){if(!Ll(e.instance.modifiers,"hide","preventOverflow"))return e;var t=e.offsets.reference,n=yl(e.instance.modifiers,(function(e){return"preventOverflow"===e.name})).boundaries;if(t.bottom<n.top||t.left>n.right||t.top>n.bottom||t.right<n.left){if(!0===e.hide)return e;e.hide=!0,e.attributes["x-out-of-boundaries"]=""}else{if(!1===e.hide)return e;e.hide=!1,e.attributes["x-out-of-boundaries"]=!1}return e}},computeStyle:{order:850,enabled:!0,fn:function(e,t){var n=t.x,r=t.y,o=e.offsets.popper,i=yl(e.instance.modifiers,(function(e){return"applyStyle"===e.name})).gpuAcceleration;void 0!==i&&console.warn("WARNING: `gpuAcceleration` option moved to `computeStyle` modifier and will not be supported in future versions of Popper.js!");var a=void 0!==i?i:t.gpuAcceleration,s=Qs(e.instance.popper),l=sl(s),c={position:o.position},u=function(e,t){var n=e.offsets,r=n.popper,o=n.reference,i=Math.round,a=Math.floor,s=function(e){return e},l=i(o.width),c=i(r.width),u=-1!==["left","right"].indexOf(e.placement),f=-1!==e.placement.indexOf("-"),d=t?u||f||l%2===c%2?i:a:s,p=t?i:s;return{left:d(l%2===1&&c%2===1&&!f&&t?r.left-1:r.left),top:p(r.top),bottom:p(r.bottom),right:d(r.right)}}(e,window.devicePixelRatio<2||!Pl),f="bottom"===n?"top":"bottom",d="right"===r?"left":"right",p=xl("transform"),h=void 0,m=void 0;if(m="bottom"===f?"HTML"===s.nodeName?-s.clientHeight+u.bottom:-l.height+u.bottom:u.top,h="right"===d?"HTML"===s.nodeName?-s.clientWidth+u.right:-l.width+u.right:u.left,a&&p)c[p]="translate3d("+h+"px, "+m+"px, 0)",c[f]=0,c[d]=0,c.willChange="transform";else{var g="bottom"===f?-1:1,y="right"===d?-1:1;c[f]=m*g,c[d]=h*y,c.willChange=f+", "+d}var v={"x-placement":e.placement};return e.attributes=il({},v,e.attributes),e.styles=il({},c,e.styles),e.arrowStyles=il({},e.offsets.arrow,e.arrowStyles),e},gpuAcceleration:!0,x:"bottom",y:"right"},applyStyle:{order:900,enabled:!0,fn:function(e){var t,n;return Tl(e.instance.popper,e.styles),t=e.instance.popper,n=e.attributes,Object.keys(n).forEach((function(e){!1!==n[e]?t.setAttribute(e,n[e]):t.removeAttribute(e)})),e.arrowElement&&Object.keys(e.arrowStyles).length&&Tl(e.arrowElement,e.arrowStyles),e},onLoad:function(e,t,n,r,o){var i=pl(o,t,e,n.positionFixed),a=dl(n.placement,i,t,e,n.modifiers.flip.boundariesElement,n.modifiers.flip.padding);return t.setAttribute("x-placement",a),Tl(t,{position:n.positionFixed?"fixed":"absolute"}),n},gpuAcceleration:void 0}},zl={placement:"bottom",positionFixed:!1,eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:Bl},Ul=function(){function e(t,n){var r=this,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.scheduleUpdate=function(){return requestAnimationFrame(r.update)},this.update=Us(this.update.bind(this)),this.options=il({},e.Defaults,o),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=t&&t.jquery?t[0]:t,this.popper=n&&n.jquery?n[0]:n,this.options.modifiers={},Object.keys(il({},e.Defaults.modifiers,o.modifiers)).forEach((function(t){r.options.modifiers[t]=il({},e.Defaults.modifiers[t]||{},o.modifiers?o.modifiers[t]:{})})),this.modifiers=Object.keys(this.options.modifiers).map((function(e){return il({name:e},r.options.modifiers[e])})).sort((function(e,t){return e.order-t.order})),this.modifiers.forEach((function(e){e.enabled&&Hs(e.onLoad)&&e.onLoad(r.reference,r.popper,r.options,e,r.state)})),this.update();var i=this.options.eventsEnabled;i&&this.enableEventListeners(),this.state.eventsEnabled=i}return rl(e,[{key:"update",value:function(){return bl.call(this)}},{key:"destroy",value:function(){return El.call(this)}},{key:"enableEventListeners",value:function(){return Ol.call(this)}},{key:"disableEventListeners",value:function(){return Cl.call(this)}}]),e}();Ul.Utils=("undefined"!==typeof window?window:n.g).PopperUtils,Ul.placements=Rl,Ul.Defaults=zl;const Hl=Ul;var Wl=["innerHTML","ownerDocument","style","attributes","nodeValue"],Vl=["Array","ArrayBuffer","AsyncFunction","AsyncGenerator","AsyncGeneratorFunction","Date","Error","Function","Generator","GeneratorFunction","HTMLElement","Map","Object","Promise","RegExp","Set","WeakMap","WeakSet"],ql=["bigint","boolean","null","number","string","symbol","undefined"];function $l(e){var t,n=Object.prototype.toString.call(e).slice(8,-1);return/HTML\w+Element/.test(n)?"HTMLElement":(t=n,Vl.includes(t)?n:void 0)}function Kl(e){return function(t){return $l(t)===e}}function Gl(e){return function(t){return typeof t===e}}function Yl(e){if(null===e)return"null";switch(typeof e){case"bigint":return"bigint";case"boolean":return"boolean";case"number":return"number";case"string":return"string";case"symbol":return"symbol";case"undefined":return"undefined"}if(Yl.array(e))return"Array";if(Yl.plainFunction(e))return"Function";var t=$l(e);return t||"Object"}Yl.array=Array.isArray,Yl.arrayOf=function(e,t){return!(!Yl.array(e)&&!Yl.function(t))&&e.every((function(e){return t(e)}))},Yl.asyncGeneratorFunction=function(e){return"AsyncGeneratorFunction"===$l(e)},Yl.asyncFunction=Kl("AsyncFunction"),Yl.bigint=Gl("bigint"),Yl.boolean=function(e){return!0===e||!1===e},Yl.date=Kl("Date"),Yl.defined=function(e){return!Yl.undefined(e)},Yl.domElement=function(e){return Yl.object(e)&&!Yl.plainObject(e)&&1===e.nodeType&&Yl.string(e.nodeName)&&Wl.every((function(t){return t in e}))},Yl.empty=function(e){return Yl.string(e)&&0===e.length||Yl.array(e)&&0===e.length||Yl.object(e)&&!Yl.map(e)&&!Yl.set(e)&&0===Object.keys(e).length||Yl.set(e)&&0===e.size||Yl.map(e)&&0===e.size},Yl.error=Kl("Error"),Yl.function=Gl("function"),Yl.generator=function(e){return Yl.iterable(e)&&Yl.function(e.next)&&Yl.function(e.throw)},Yl.generatorFunction=Kl("GeneratorFunction"),Yl.instanceOf=function(e,t){return!(!e||!t)&&Object.getPrototypeOf(e)===t.prototype},Yl.iterable=function(e){return!Yl.nullOrUndefined(e)&&Yl.function(e[Symbol.iterator])},Yl.map=Kl("Map"),Yl.nan=function(e){return Number.isNaN(e)},Yl.null=function(e){return null===e},Yl.nullOrUndefined=function(e){return Yl.null(e)||Yl.undefined(e)},Yl.number=function(e){return Gl("number")(e)&&!Yl.nan(e)},Yl.numericString=function(e){return Yl.string(e)&&e.length>0&&!Number.isNaN(Number(e))},Yl.object=function(e){return!Yl.nullOrUndefined(e)&&(Yl.function(e)||"object"===typeof e)},Yl.oneOf=function(e,t){return!!Yl.array(e)&&e.indexOf(t)>-1},Yl.plainFunction=Kl("Function"),Yl.plainObject=function(e){if("Object"!==$l(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.getPrototypeOf({})},Yl.primitive=function(e){return Yl.null(e)||(t=typeof e,ql.includes(t));var t},Yl.promise=Kl("Promise"),Yl.propertyOf=function(e,t,n){if(!Yl.object(e)||!t)return!1;var r=e[t];return Yl.function(n)?n(r):Yl.defined(r)},Yl.regexp=Kl("RegExp"),Yl.set=Kl("Set"),Yl.string=Gl("string"),Yl.symbol=Gl("symbol"),Yl.undefined=Gl("undefined"),Yl.weakMap=Kl("WeakMap"),Yl.weakSet=Kl("WeakSet");const Ql=Yl;function Xl(e){return function(t){return typeof t===e}}var Jl=Xl("function"),Zl=function(e){return"RegExp"===Object.prototype.toString.call(e).slice(8,-1)},ec=function(e){return!tc(e)&&!function(e){return null===e}(e)&&(Jl(e)||"object"===typeof e)},tc=Xl("undefined"),nc=function(e){var t="function"===typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"===typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};function rc(e,t){if(e===t)return!0;if(e&&ec(e)&&t&&ec(t)){if(e.constructor!==t.constructor)return!1;if(Array.isArray(e)&&Array.isArray(t))return function(e,t){var n=e.length;if(n!==t.length)return!1;for(var r=n;0!==r--;)if(!rc(e[r],t[r]))return!1;return!0}(e,t);if(e instanceof Map&&t instanceof Map)return function(e,t){var n,r,o,i;if(e.size!==t.size)return!1;try{for(var a=nc(e.entries()),s=a.next();!s.done;s=a.next()){var l=s.value;if(!t.has(l[0]))return!1}}catch(f){n={error:f}}finally{try{s&&!s.done&&(r=a.return)&&r.call(a)}finally{if(n)throw n.error}}try{for(var c=nc(e.entries()),u=c.next();!u.done;u=c.next())if(!rc((l=u.value)[1],t.get(l[0])))return!1}catch(d){o={error:d}}finally{try{u&&!u.done&&(i=c.return)&&i.call(c)}finally{if(o)throw o.error}}return!0}(e,t);if(e instanceof Set&&t instanceof Set)return function(e,t){var n,r;if(e.size!==t.size)return!1;try{for(var o=nc(e.entries()),i=o.next();!i.done;i=o.next()){var a=i.value;if(!t.has(a[0]))return!1}}catch(s){n={error:s}}finally{try{i&&!i.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}return!0}(e,t);if(ArrayBuffer.isView(e)&&ArrayBuffer.isView(t))return function(e,t){if(e.byteLength!==t.byteLength)return!1;for(var n=new DataView(e.buffer),r=new DataView(t.buffer),o=e.byteLength;o--;)if(n.getUint8(o)!==r.getUint8(o))return!1;return!0}(e,t);if(Zl(e)&&Zl(t))return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===t.toString();var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(var o=n.length;0!==o--;)if(!Object.prototype.hasOwnProperty.call(t,n[o]))return!1;for(o=n.length;0!==o--;){var i=n[o];if(("_owner"!==i||!e.$$typeof)&&!rc(e[i],t[i]))return!1}return!0}return!(!Number.isNaN(e)||!Number.isNaN(t))||e===t}function oc(e,t,n){var r=n.actual,o=n.key,i=n.previous,a=n.type,s=dc(e,o),l=dc(t,o),c=[s,l].every(Ql.number)&&("increased"===a?s<l:s>l);return Ql.undefined(r)||(c=c&&l===r),Ql.undefined(i)||(c=c&&s===i),c}function ic(e,t,n){var r=n.key,o=n.type,i=n.value,a=dc(e,r),s=dc(t,r),l="added"===o?a:s,c="added"===o?s:a;return Ql.nullOrUndefined(i)?[a,s].every(Ql.array)?!c.every(uc(l)):[a,s].every(Ql.plainObject)?function(e,t){return t.some((function(t){return!e.includes(t)}))}(Object.keys(l),Object.keys(c)):![a,s].every((function(e){return Ql.primitive(e)&&Ql.defined(e)}))&&("added"===o?!Ql.defined(a)&&Ql.defined(s):Ql.defined(a)&&!Ql.defined(s)):Ql.defined(l)?!(!Ql.array(l)&&!Ql.plainObject(l))&&function(e,t,n){return!!fc(e,t)&&([e,t].every(Ql.array)?!e.some(lc(n))&&t.some(lc(n)):[e,t].every(Ql.plainObject)?!Object.entries(e).some(sc(n))&&Object.entries(t).some(sc(n)):t===n)}(l,c,i):rc(c,i)}function ac(e,t,n){var r=(void 0===n?{}:n).key,o=dc(e,r),i=dc(t,r);if(!fc(o,i))throw new TypeError("Inputs have different types");if(!function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e.every((function(e){return Ql.string(e)||Ql.array(e)||Ql.plainObject(e)}))}(o,i))throw new TypeError("Inputs don't have length");return[o,i].every(Ql.plainObject)&&(o=Object.keys(o),i=Object.keys(i)),[o,i]}function sc(e){return function(t){var n=t[0],r=t[1];return Ql.array(e)?rc(e,r)||e.some((function(e){return rc(e,r)||Ql.array(r)&&uc(r)(e)})):Ql.plainObject(e)&&e[n]?!!e[n]&&rc(e[n],r):rc(e,r)}}function lc(e){return function(t){return Ql.array(e)?e.some((function(e){return rc(e,t)||Ql.array(t)&&uc(t)(e)})):rc(e,t)}}function cc(e,t){return Ql.array(e)?e.some((function(e){return rc(e,t)})):rc(e,t)}function uc(e){return function(t){return e.some((function(e){return rc(e,t)}))}}function fc(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e.every(Ql.array)||e.every(Ql.number)||e.every(Ql.plainObject)||e.every(Ql.string)}function dc(e,t){return Ql.plainObject(e)||Ql.array(e)?Ql.string(t)?t.split(".").reduce((function(e,t){return e&&e[t]}),e):Ql.number(t)?e[t]:e:e}function pc(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function hc(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?pc(Object(n),!0).forEach((function(t){vc(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):pc(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function mc(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function gc(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,jc(r.key),r)}}function yc(e,t,n){return t&&gc(e.prototype,t),n&&gc(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function vc(e,t,n){return(t=jc(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function bc(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&xc(e,t)}function wc(e){return wc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},wc(e)}function xc(e,t){return xc=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},xc(e,t)}function Ec(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function Sc(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function kc(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(OE){return!1}}();return function(){var n,r=wc(e);if(t){var o=wc(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===typeof t||"function"===typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Sc(e)}(this,n)}}function jc(e){var t=function(e,t){if("object"!==typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===typeof t?t:String(t)}var Oc={flip:{padding:20},preventOverflow:{padding:10}},Cc="The typeValidator argument must be a function with the signature function(props, propName, componentName).",Nc="The error message is optional, but must be a string if provided.";function Tc(e,t,n){return function(e,t){if("function"!==typeof e)throw new TypeError(Cc);if(Boolean(t)&&"string"!==typeof t)throw new TypeError(Nc)}(e,n),function(r,o,i){for(var a=arguments.length,s=new Array(a>3?a-3:0),l=3;l<a;l++)s[l-3]=arguments[l];return function(e,t,n,r){return"boolean"===typeof e?e:"function"===typeof e?e(t,n,r):!0===Boolean(e)&&Boolean(e)}(t,r,o,i)?function(e,t){return Object.hasOwnProperty.call(e,t)}(r,o)?e.apply(void 0,[r,o,i].concat(s)):function(e,t,n,r){return r?new Error(r):new Error("Required ".concat(e[t]," `").concat(t,"` was not specified in `").concat(n,"`."))}(r,o,i,n):e.apply(void 0,[r,o,i].concat(s))}}var Pc={INIT:"init",IDLE:"idle",OPENING:"opening",OPEN:"open",CLOSING:"closing",ERROR:"error"},Lc=void 0!==a.createPortal;function Rc(){return!("undefined"===typeof window||!window.document||!window.document.createElement)}function Ac(){return"ontouchstart"in window&&/Mobi/.test(navigator.userAgent)}function _c(e){var t=e.title,n=e.data,r=e.warn,o=void 0!==r&&r,i=e.debug,a=void 0!==i&&i,s=o?console.warn||console.error:console.log;a&&t&&n&&(console.groupCollapsed("%creact-floater: ".concat(t),"color: #9b00ff; font-weight: bold; font-size: 12px;"),Array.isArray(n)?n.forEach((function(e){Ql.plainObject(e)&&e.key?s.apply(console,[e.key,e.value]):s.apply(console,[e])})):s.apply(console,[n]),console.groupEnd())}function Ic(){}var Mc=function(e){bc(n,e);var t=kc(n);function n(){return mc(this,n),t.apply(this,arguments)}return yc(n,[{key:"componentDidMount",value:function(){Rc()&&(this.node||this.appendNode(),Lc||this.renderPortal())}},{key:"componentDidUpdate",value:function(){Rc()&&(Lc||this.renderPortal())}},{key:"componentWillUnmount",value:function(){Rc()&&this.node&&(Lc||a.unmountComponentAtNode(this.node),this.node&&this.node.parentNode===document.body&&(document.body.removeChild(this.node),this.node=void 0))}},{key:"appendNode",value:function(){var e=this.props,t=e.id,n=e.zIndex;this.node||(this.node=document.createElement("div"),t&&(this.node.id=t),n&&(this.node.style.zIndex=n),document.body.appendChild(this.node))}},{key:"renderPortal",value:function(){if(!Rc())return null;var e=this.props,t=e.children,n=e.setRef;return this.node||this.appendNode(),Lc?a.createPortal(t,this.node):(n(a.unstable_renderSubtreeIntoContainer(this,t.length>1?r.createElement("div",null,t):t[0],this.node)),null)}},{key:"renderReact16",value:function(){var e=this.props,t=e.hasChildren,n=e.placement,r=e.target;return t||r||"center"===n?this.renderPortal():null}},{key:"render",value:function(){return Lc?this.renderReact16():null}}]),n}(r.Component);vc(Mc,"propTypes",{children:Te().oneOfType([Te().element,Te().array]),hasChildren:Te().bool,id:Te().oneOfType([Te().string,Te().number]),placement:Te().string,setRef:Te().func.isRequired,target:Te().oneOfType([Te().object,Te().string]),zIndex:Te().number});var Dc=function(e){bc(n,e);var t=kc(n);function n(){return mc(this,n),t.apply(this,arguments)}return yc(n,[{key:"parentStyle",get:function(){var e=this.props,t=e.placement,n=e.styles.arrow.length,r={pointerEvents:"none",position:"absolute",width:"100%"};return t.startsWith("top")?(r.bottom=0,r.left=0,r.right=0,r.height=n):t.startsWith("bottom")?(r.left=0,r.right=0,r.top=0,r.height=n):t.startsWith("left")?(r.right=0,r.top=0,r.bottom=0):t.startsWith("right")&&(r.left=0,r.top=0),r}},{key:"render",value:function(){var e,t=this.props,n=t.placement,o=t.setArrowRef,i=t.styles.arrow,a=i.color,s=i.display,l=i.length,c=i.margin,u=i.position,f=i.spread,d={display:s,position:u},p=f,h=l;return n.startsWith("top")?(e="0,0 ".concat(p/2,",").concat(h," ").concat(p,",0"),d.bottom=0,d.marginLeft=c,d.marginRight=c):n.startsWith("bottom")?(e="".concat(p,",").concat(h," ").concat(p/2,",0 0,").concat(h),d.top=0,d.marginLeft=c,d.marginRight=c):n.startsWith("left")?(h=f,e="0,0 ".concat(p=l,",").concat(h/2," 0,").concat(h),d.right=0,d.marginTop=c,d.marginBottom=c):n.startsWith("right")&&(h=f,e="".concat(p=l,",").concat(h," ").concat(p,",0 0,").concat(h/2),d.left=0,d.marginTop=c,d.marginBottom=c),r.createElement("div",{className:"__floater__arrow",style:this.parentStyle},r.createElement("span",{ref:o,style:d},r.createElement("svg",{width:p,height:h,version:"1.1",xmlns:"http://www.w3.org/2000/svg"},r.createElement("polygon",{points:e,fill:a}))))}}]),n}(r.Component);vc(Dc,"propTypes",{placement:Te().string.isRequired,setArrowRef:Te().func.isRequired,styles:Te().object.isRequired});var Fc=["color","height","width"];function Bc(e){var t=e.handleClick,n=e.styles,o=n.color,i=n.height,a=n.width,s=Ec(n,Fc);return r.createElement("button",{"aria-label":"close",onClick:t,style:s,type:"button"},r.createElement("svg",{width:"".concat(a,"px"),height:"".concat(i,"px"),viewBox:"0 0 18 18",version:"1.1",xmlns:"http://www.w3.org/2000/svg",preserveAspectRatio:"xMidYMid"},r.createElement("g",null,r.createElement("path",{d:"M8.13911129,9.00268191 L0.171521827,17.0258467 C-0.0498027049,17.248715 -0.0498027049,17.6098394 0.171521827,17.8327545 C0.28204354,17.9443526 0.427188206,17.9998706 0.572051765,17.9998706 C0.71714958,17.9998706 0.862013139,17.9443526 0.972581703,17.8327545 L9.0000937,9.74924618 L17.0276057,17.8327545 C17.1384085,17.9443526 17.2832721,17.9998706 17.4281356,17.9998706 C17.5729992,17.9998706 17.718097,17.9443526 17.8286656,17.8327545 C18.0499901,17.6098862 18.0499901,17.2487618 17.8286656,17.0258467 L9.86135722,9.00268191 L17.8340066,0.973848225 C18.0553311,0.750979934 18.0553311,0.389855532 17.8340066,0.16694039 C17.6126821,-0.0556467968 17.254037,-0.0556467968 17.0329467,0.16694039 L9.00042166,8.25611765 L0.967006424,0.167268345 C0.745681892,-0.0553188426 0.387317931,-0.0553188426 0.165993399,0.167268345 C-0.0553311331,0.390136635 -0.0553311331,0.751261038 0.165993399,0.974176179 L8.13920499,9.00268191 L8.13911129,9.00268191 Z",fill:o}))))}function zc(e){var t=e.content,n=e.footer,o=e.handleClick,i=e.open,a=e.positionWrapper,s=e.showCloseButton,l=e.title,c=e.styles,u={content:r.isValidElement(t)?t:r.createElement("div",{className:"__floater__content",style:c.content},t)};return l&&(u.title=r.isValidElement(l)?l:r.createElement("div",{className:"__floater__title",style:c.title},l)),n&&(u.footer=r.isValidElement(n)?n:r.createElement("div",{className:"__floater__footer",style:c.footer},n)),!s&&!a||Ql.boolean(i)||(u.close=r.createElement(Bc,{styles:c.close,handleClick:o})),r.createElement("div",{className:"__floater__container",style:c.container},u.close,u.title,u.content,u.footer)}Bc.propTypes={handleClick:Te().func.isRequired,styles:Te().object.isRequired},zc.propTypes={content:Te().node.isRequired,footer:Te().node,handleClick:Te().func.isRequired,open:Te().bool,positionWrapper:Te().bool.isRequired,showCloseButton:Te().bool.isRequired,styles:Te().object.isRequired,title:Te().node};var Uc=function(e){bc(n,e);var t=kc(n);function n(){return mc(this,n),t.apply(this,arguments)}return yc(n,[{key:"style",get:function(){var e=this.props,t=e.disableAnimation,n=e.component,r=e.placement,o=e.hideArrow,i=e.status,a=e.styles,s=a.arrow.length,l=a.floater,c=a.floaterCentered,u=a.floaterClosing,f=a.floaterOpening,d=a.floaterWithAnimation,p=a.floaterWithComponent,h={};return o||(r.startsWith("top")?h.padding="0 0 ".concat(s,"px"):r.startsWith("bottom")?h.padding="".concat(s,"px 0 0"):r.startsWith("left")?h.padding="0 ".concat(s,"px 0 0"):r.startsWith("right")&&(h.padding="0 0 0 ".concat(s,"px"))),-1!==[Pc.OPENING,Pc.OPEN].indexOf(i)&&(h=hc(hc({},h),f)),i===Pc.CLOSING&&(h=hc(hc({},h),u)),i!==Pc.OPEN||t||(h=hc(hc({},h),d)),"center"===r&&(h=hc(hc({},h),c)),n&&(h=hc(hc({},h),p)),hc(hc({},l),h)}},{key:"render",value:function(){var e=this.props,t=e.component,n=e.handleClick,o=e.hideArrow,i=e.setFloaterRef,a=e.status,s={},l=["__floater"];return s.content=t?r.isValidElement(t)?r.cloneElement(t,{closeFn:n}):t({closeFn:n}):r.createElement(zc,this.props),a===Pc.OPEN&&l.push("__floater__open"),o||(s.arrow=r.createElement(Dc,this.props)),r.createElement("div",{ref:i,className:l.join(" "),style:this.style},r.createElement("div",{className:"__floater__body"},s.content,s.arrow))}}]),n}(r.Component);vc(Uc,"propTypes",{component:Te().oneOfType([Te().func,Te().element]),content:Te().node,disableAnimation:Te().bool.isRequired,footer:Te().node,handleClick:Te().func.isRequired,hideArrow:Te().bool.isRequired,open:Te().bool,placement:Te().string.isRequired,positionWrapper:Te().bool.isRequired,setArrowRef:Te().func.isRequired,setFloaterRef:Te().func.isRequired,showCloseButton:Te().bool,status:Te().string.isRequired,styles:Te().object.isRequired,title:Te().node});var Hc=function(e){bc(n,e);var t=kc(n);function n(){return mc(this,n),t.apply(this,arguments)}return yc(n,[{key:"render",value:function(){var e,t=this.props,n=t.children,o=t.handleClick,i=t.handleMouseEnter,a=t.handleMouseLeave,s=t.setChildRef,l=t.setWrapperRef,c=t.style,u=t.styles;if(n)if(1===r.Children.count(n))if(r.isValidElement(n)){var f=Ql.function(n.type)?"innerRef":"ref";e=r.cloneElement(r.Children.only(n),vc({},f,s))}else e=r.createElement("span",null,n);else e=n;return e?r.createElement("span",{ref:l,style:hc(hc({},u),c),onClick:o,onMouseEnter:i,onMouseLeave:a},e):null}}]),n}(r.Component);vc(Hc,"propTypes",{children:Te().node,handleClick:Te().func.isRequired,handleMouseEnter:Te().func.isRequired,handleMouseLeave:Te().func.isRequired,setChildRef:Te().func.isRequired,setWrapperRef:Te().func.isRequired,style:Te().object,styles:Te().object.isRequired});var Wc={zIndex:100};var Vc=["arrow","flip","offset"],qc=["position","top","right","bottom","left"],$c=function(e){bc(n,e);var t=kc(n);function n(e){var r;return mc(this,n),vc(Sc(r=t.call(this,e)),"setArrowRef",(function(e){r.arrowRef=e})),vc(Sc(r),"setChildRef",(function(e){r.childRef=e})),vc(Sc(r),"setFloaterRef",(function(e){r.floaterRef=e})),vc(Sc(r),"setWrapperRef",(function(e){r.wrapperRef=e})),vc(Sc(r),"handleTransitionEnd",(function(){var e=r.state.status,t=r.props.callback;r.wrapperPopper&&r.wrapperPopper.instance.update(),r.setState({status:e===Pc.OPENING?Pc.OPEN:Pc.IDLE},(function(){var e=r.state.status;t(e===Pc.OPEN?"open":"close",r.props)}))})),vc(Sc(r),"handleClick",(function(){var e=r.props,t=e.event,n=e.open;if(!Ql.boolean(n)){var o=r.state,i=o.positionWrapper,a=o.status;("click"===r.event||"hover"===r.event&&i)&&(_c({title:"click",data:[{event:t,status:a===Pc.OPEN?"closing":"opening"}],debug:r.debug}),r.toggle())}})),vc(Sc(r),"handleMouseEnter",(function(){var e=r.props,t=e.event,n=e.open;if(!Ql.boolean(n)&&!Ac()){var o=r.state.status;"hover"===r.event&&o===Pc.IDLE&&(_c({title:"mouseEnter",data:[{key:"originalEvent",value:t}],debug:r.debug}),clearTimeout(r.eventDelayTimeout),r.toggle())}})),vc(Sc(r),"handleMouseLeave",(function(){var e=r.props,t=e.event,n=e.eventDelay,o=e.open;if(!Ql.boolean(o)&&!Ac()){var i=r.state,a=i.status,s=i.positionWrapper;"hover"===r.event&&(_c({title:"mouseLeave",data:[{key:"originalEvent",value:t}],debug:r.debug}),n?-1===[Pc.OPENING,Pc.OPEN].indexOf(a)||s||r.eventDelayTimeout||(r.eventDelayTimeout=setTimeout((function(){delete r.eventDelayTimeout,r.toggle()}),1e3*n)):r.toggle(Pc.IDLE))}})),r.state={currentPlacement:e.placement,needsUpdate:!1,positionWrapper:e.wrapperOptions.position&&!!e.target,status:Pc.INIT,statusWrapper:Pc.INIT},r._isMounted=!1,r.hasMounted=!1,Rc()&&window.addEventListener("load",(function(){r.popper&&r.popper.instance.update(),r.wrapperPopper&&r.wrapperPopper.instance.update()})),r}return yc(n,[{key:"componentDidMount",value:function(){if(Rc()){var e=this.state.positionWrapper,t=this.props,n=t.children,r=t.open,o=t.target;this._isMounted=!0,_c({title:"init",data:{hasChildren:!!n,hasTarget:!!o,isControlled:Ql.boolean(r),positionWrapper:e,target:this.target,floater:this.floaterRef},debug:this.debug}),this.hasMounted||(this.initPopper(),this.hasMounted=!0),!n&&o&&Ql.boolean(r)}}},{key:"componentDidUpdate",value:function(e,t){if(Rc()){var n,r=this.props,o=r.autoOpen,i=r.open,a=r.target,s=r.wrapperOptions,l=function(e,t){if([e,t].some(Ql.nullOrUndefined))throw new Error("Missing required parameters");if(![e,t].every((function(e){return Ql.plainObject(e)||Ql.array(e)})))throw new Error("Expected plain objects or array");var n=function(n,r,o){try{var i=dc(e,n),a=dc(t,n),s=Ql.defined(r),l=Ql.defined(o);if(s||l){var c=l?cc(o,i):!cc(r,i),u=cc(r,a);return c&&u}return[i,a].every(Ql.array)||[i,a].every(Ql.plainObject)?!rc(i,a):i!==a}catch(f){return!1}};return{added:function(n,r){try{return ic(e,t,{key:n,type:"added",value:r})}catch(o){return!1}},changed:n,changedFrom:function(n,r,o){if(!Ql.defined(n))return!1;try{var i=dc(e,n),a=dc(t,n),s=Ql.defined(o);return cc(r,i)&&(s?cc(o,a):!s)}catch(l){return!1}},changedTo:function(e,t){return!!Ql.defined(e)&&n(e,t)},decreased:function(n,r,o){if(!Ql.defined(n))return!1;try{return oc(e,t,{key:n,actual:r,previous:o,type:"decreased"})}catch(i){return!1}},emptied:function(n){try{var r=ac(e,t,{key:n}),o=r[0],i=r[1];return!!o.length&&!i.length}catch(a){return!1}},filled:function(n){try{var r=ac(e,t,{key:n}),o=r[0],i=r[1];return!o.length&&!!i.length}catch(a){return!1}},increased:function(n,r,o){if(!Ql.defined(n))return!1;try{return oc(e,t,{key:n,actual:r,previous:o,type:"increased"})}catch(i){return!1}},removed:function(n,r){try{return ic(e,t,{key:n,type:"removed",value:r})}catch(o){return!1}}}}(t,this.state),c=l.changedFrom,u=l.changed;if(e.open!==i)Ql.boolean(i)&&(n=i?Pc.OPENING:Pc.CLOSING),this.toggle(n);e.wrapperOptions.position===s.position&&e.target===a||this.changeWrapperPosition(this.props),(u("status",Pc.IDLE)&&i||c("status",Pc.INIT,Pc.IDLE)&&o)&&this.toggle(Pc.OPEN),this.popper&&u("status",Pc.OPENING)&&this.popper.instance.update(),this.floaterRef&&(u("status",Pc.OPENING)||u("status",Pc.CLOSING))&&function(e,t,n){var r;r=function(o){n(o),function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];e.removeEventListener(t,n,r)}(e,t,r)},function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];e.addEventListener(t,n,r)}(e,t,r,arguments.length>3&&void 0!==arguments[3]&&arguments[3])}(this.floaterRef,"transitionend",this.handleTransitionEnd),u("needsUpdate",!0)&&this.rebuildPopper()}}},{key:"componentWillUnmount",value:function(){Rc()&&(this._isMounted=!1,this.popper&&this.popper.instance.destroy(),this.wrapperPopper&&this.wrapperPopper.instance.destroy())}},{key:"initPopper",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.target,n=this.state.positionWrapper,r=this.props,o=r.disableFlip,i=r.getPopper,a=r.hideArrow,s=r.offset,l=r.placement,c=r.wrapperOptions,u="top"===l||"bottom"===l?"flip":["right","bottom-end","top-end","left","top-start","bottom-start"];if("center"===l)this.setState({status:Pc.IDLE});else if(t&&this.floaterRef){var f=this.options,d=f.arrow,p=f.flip,h=f.offset,m=Ec(f,Vc);new Hl(t,this.floaterRef,{placement:l,modifiers:hc({arrow:hc({enabled:!a,element:this.arrowRef},d),flip:hc({enabled:!o,behavior:u},p),offset:hc({offset:"0, ".concat(s,"px")},h)},m),onCreate:function(t){var n;e.popper=t,null!==(n=e.floaterRef)&&void 0!==n&&n.isConnected?(i(t,"floater"),e._isMounted&&e.setState({currentPlacement:t.placement,status:Pc.IDLE}),l!==t.placement&&setTimeout((function(){t.instance.update()}),1)):e.setState({needsUpdate:!0})},onUpdate:function(t){e.popper=t;var n=e.state.currentPlacement;e._isMounted&&t.placement!==n&&e.setState({currentPlacement:t.placement})}})}if(n){var g=Ql.undefined(c.offset)?0:c.offset;new Hl(this.target,this.wrapperRef,{placement:c.placement||l,modifiers:{arrow:{enabled:!1},offset:{offset:"0, ".concat(g,"px")},flip:{enabled:!1}},onCreate:function(t){e.wrapperPopper=t,e._isMounted&&e.setState({statusWrapper:Pc.IDLE}),i(t,"wrapper"),l!==t.placement&&setTimeout((function(){t.instance.update()}),1)}})}}},{key:"rebuildPopper",value:function(){var e=this;this.floaterRefInterval=setInterval((function(){var t;null!==(t=e.floaterRef)&&void 0!==t&&t.isConnected&&(clearInterval(e.floaterRefInterval),e.setState({needsUpdate:!1}),e.initPopper())}),50)}},{key:"changeWrapperPosition",value:function(e){var t=e.target,n=e.wrapperOptions;this.setState({positionWrapper:n.position&&!!t})}},{key:"toggle",value:function(e){var t=this.state.status===Pc.OPEN?Pc.CLOSING:Pc.OPENING;Ql.undefined(e)||(t=e),this.setState({status:t})}},{key:"debug",get:function(){return this.props.debug||Rc()&&"ReactFloaterDebug"in window&&!!window.ReactFloaterDebug}},{key:"event",get:function(){var e=this.props,t=e.disableHoverToClick,n=e.event;return"hover"===n&&Ac()&&!t?"click":n}},{key:"options",get:function(){var e=this.props.options;return Fs()(Oc,e||{})}},{key:"styles",get:function(){var e,t=this,n=this.state,r=n.status,o=n.positionWrapper,i=n.statusWrapper,a=this.props.styles,s=Fs()(function(e){var t=Fs()(Wc,e.options||{});return{wrapper:{cursor:"help",display:"inline-flex",flexDirection:"column",zIndex:t.zIndex},wrapperPosition:{left:-1e3,position:"absolute",top:-1e3,visibility:"hidden"},floater:{display:"inline-block",filter:"drop-shadow(0 0 3px rgba(0, 0, 0, 0.3))",maxWidth:300,opacity:0,position:"relative",transition:"opacity 0.3s",visibility:"hidden",zIndex:t.zIndex},floaterOpening:{opacity:1,visibility:"visible"},floaterWithAnimation:{opacity:1,transition:"opacity 0.3s, transform 0.2s",visibility:"visible"},floaterWithComponent:{maxWidth:"100%"},floaterClosing:{opacity:0,visibility:"visible"},floaterCentered:{left:"50%",position:"fixed",top:"50%",transform:"translate(-50%, -50%)"},container:{backgroundColor:"#fff",color:"#666",minHeight:60,minWidth:200,padding:20,position:"relative",zIndex:10},title:{borderBottom:"1px solid #555",color:"#555",fontSize:18,marginBottom:5,paddingBottom:6,paddingRight:18},content:{fontSize:15},close:{backgroundColor:"transparent",border:0,borderRadius:0,color:"#555",fontSize:0,height:15,outline:"none",padding:10,position:"absolute",right:0,top:0,width:15,WebkitAppearance:"none"},footer:{borderTop:"1px solid #ccc",fontSize:13,marginTop:10,paddingTop:5},arrow:{color:"#fff",display:"inline-flex",length:16,margin:8,position:"absolute",spread:32},options:t}}(a),a);o&&(e=-1===[Pc.IDLE].indexOf(r)||-1===[Pc.IDLE].indexOf(i)?s.wrapperPosition:this.wrapperPopper.styles,s.wrapper=hc(hc({},s.wrapper),e));if(this.target){var l=window.getComputedStyle(this.target);this.wrapperStyles?s.wrapper=hc(hc({},s.wrapper),this.wrapperStyles):-1===["relative","static"].indexOf(l.position)&&(this.wrapperStyles={},o||(qc.forEach((function(e){t.wrapperStyles[e]=l[e]})),s.wrapper=hc(hc({},s.wrapper),this.wrapperStyles),this.target.style.position="relative",this.target.style.top="auto",this.target.style.right="auto",this.target.style.bottom="auto",this.target.style.left="auto"))}return s}},{key:"target",get:function(){if(!Rc())return null;var e=this.props.target;return e?Ql.domElement(e)?e:document.querySelector(e):this.childRef||this.wrapperRef}},{key:"render",value:function(){var e=this.state,t=e.currentPlacement,n=e.positionWrapper,o=e.status,i=this.props,a=i.children,s=i.component,l=i.content,c=i.disableAnimation,u=i.footer,f=i.hideArrow,d=i.id,p=i.open,h=i.showCloseButton,m=i.style,g=i.target,y=i.title,v=r.createElement(Hc,{handleClick:this.handleClick,handleMouseEnter:this.handleMouseEnter,handleMouseLeave:this.handleMouseLeave,setChildRef:this.setChildRef,setWrapperRef:this.setWrapperRef,style:m,styles:this.styles.wrapper},a),b={};return n?b.wrapperInPortal=v:b.wrapperAsChildren=v,r.createElement("span",null,r.createElement(Mc,{hasChildren:!!a,id:d,placement:t,setRef:this.setFloaterRef,target:g,zIndex:this.styles.options.zIndex},r.createElement(Uc,{component:s,content:l,disableAnimation:c,footer:u,handleClick:this.handleClick,hideArrow:f||"center"===t,open:p,placement:t,positionWrapper:n,setArrowRef:this.setArrowRef,setFloaterRef:this.setFloaterRef,showCloseButton:h,status:o,styles:this.styles,title:y}),b.wrapperInPortal),b.wrapperAsChildren)}}]),n}(r.Component);vc($c,"propTypes",{autoOpen:Te().bool,callback:Te().func,children:Te().node,component:Tc(Te().oneOfType([Te().func,Te().element]),(function(e){return!e.content})),content:Tc(Te().node,(function(e){return!e.component})),debug:Te().bool,disableAnimation:Te().bool,disableFlip:Te().bool,disableHoverToClick:Te().bool,event:Te().oneOf(["hover","click"]),eventDelay:Te().number,footer:Te().node,getPopper:Te().func,hideArrow:Te().bool,id:Te().oneOfType([Te().string,Te().number]),offset:Te().number,open:Te().bool,options:Te().object,placement:Te().oneOf(["top","top-start","top-end","bottom","bottom-start","bottom-end","left","left-start","left-end","right","right-start","right-end","auto","center"]),showCloseButton:Te().bool,style:Te().object,styles:Te().object,target:Te().oneOfType([Te().object,Te().string]),title:Te().node,wrapperOptions:Te().shape({offset:Te().number,placement:Te().oneOf(["top","top-start","top-end","bottom","bottom-start","bottom-end","left","left-start","left-end","right","right-start","right-end","auto"]),position:Te().bool})}),vc($c,"defaultProps",{autoOpen:!1,callback:Ic,debug:!1,disableAnimation:!1,disableFlip:!1,disableHoverToClick:!1,event:"click",eventDelay:.4,getPopper:Ic,hideArrow:!1,offset:15,placement:"bottom",showCloseButton:!1,styles:{},target:null,wrapperOptions:{position:!1}});var Kc=n(861),Gc=Object.defineProperty,Yc=(e,t,n)=>(((e,t,n)=>{t in e?Gc(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n})(e,"symbol"!==typeof t?t+"":t,n),n),Qc="init",Xc="start",Jc="stop",Zc="reset",eu="prev",tu="next",nu="go",ru="close",ou="skip",iu="update",au="tour:start",su="step:before",lu="beacon",cu="tooltip",uu="step:after",fu="tour:end",du="tour:status",pu="error:target_not_found",hu={INIT:"init",READY:"ready",BEACON:"beacon",TOOLTIP:"tooltip",COMPLETE:"complete",ERROR:"error"},mu={IDLE:"idle",READY:"ready",WAITING:"waiting",RUNNING:"running",PAUSED:"paused",SKIPPED:"skipped",FINISHED:"finished",ERROR:"error"};function gu(){return!("undefined"===typeof window||!window.document||!window.document.createElement)}function yu(e){return e?e.getBoundingClientRect():null}function vu(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];const{body:t,documentElement:n}=document;if(!t||!n)return 0;if(e){const e=[t.scrollHeight,t.offsetHeight,n.clientHeight,n.scrollHeight,n.offsetHeight].sort(((e,t)=>e-t)),r=Math.floor(e.length/2);return e.length%2===0?(e[r-1]+e[r])/2:e[r]}return Math.max(t.scrollHeight,t.offsetHeight,n.clientHeight,n.scrollHeight,n.offsetHeight)}function bu(e){return"string"===typeof e?document.querySelector(e):e}function wu(e,t,n){if(!e)return ku();const r=Ms(e);if(r){if(r.isSameNode(ku()))return n?document:ku();if(!(r.scrollHeight>r.offsetHeight)&&!t)return r.style.overflow="initial",ku()}return r}function xu(e,t){if(!e)return!1;const n=wu(e,t);return!!n&&!n.isSameNode(ku())}function Eu(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"fixed";if(!e||!(e instanceof HTMLElement))return!1;const{nodeName:n}=e,r=function(e){return e&&1===e.nodeType?getComputedStyle(e):null}(e);return"BODY"!==n&&"HTML"!==n&&(!(!r||r.position!==t)||!!e.parentNode&&Eu(e.parentNode,t))}function Su(e,t,n){var r;if(!e)return 0;const{offsetTop:o=0,scrollTop:i=0}=null!=(r=Ms(e))?r:{};let a=e.getBoundingClientRect().top+i;o&&(xu(e,n)||function(e){return e.offsetParent!==document.body}(e))&&(a-=o);const s=Math.floor(a-t);return s<0?0:s}function ku(){var e;return null!=(e=document.scrollingElement)?e:document.documentElement}var ju=void 0!==a.createPortal;function Ou(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:navigator.userAgent,t=e;return"undefined"===typeof window?t="node":document.documentMode?t="ie":/Edge/.test(e)?t="edge":Boolean(window.opera)||e.includes(" OPR/")?t="opera":"undefined"!==typeof window.InstallTrigger?t="firefox":window.chrome?t="chrome":/(Version\/([\d._]+).*Safari|CriOS|FxiOS| Mobile\/)/.test(e)&&(t="safari"),t}function Cu(e){const t=[],n=e=>{if("string"===typeof e||"number"===typeof e)t.push(e);else if(Array.isArray(e))e.forEach((e=>n(e)));else if((0,r.isValidElement)(e)){const{children:t}=e.props;Array.isArray(t)?t.forEach((e=>n(e))):n(t)}};return n(e),t.join(" ").trim()}function Nu(e){const t=e.replace(/^#?([\da-f])([\da-f])([\da-f])$/i,((e,t,n,r)=>t+t+n+n+r+r)),n=/^#?([\da-f]{2})([\da-f]{2})([\da-f]{2})$/i.exec(t);return n?[parseInt(n[1],16),parseInt(n[2],16),parseInt(n[3],16)]:[]}function Tu(e){return e.disableBeacon||"center"===e.placement}function Pu(){return!["chrome","safari","firefox","opera"].includes(Ou())}function Lu(e){let{data:t,debug:n=!1,title:r,warn:o=!1}=e;const i=o?console.warn||console.error:console.log;n&&(r&&t?(console.groupCollapsed("%creact-joyride: ".concat(r),"color: #ff0044; font-weight: bold; font-size: 12px;"),Array.isArray(t)?t.forEach((e=>{ks.plainObject(e)&&e.key?i.apply(console,[e.key,e.value]):i.apply(console,[e])})):i.apply(console,[t]),console.groupEnd()):console.error("Missing title or data props"))}function Ru(e){if(!ks.plainObject(e))throw new TypeError("Expected an object");const t={};for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];for(const i in e)({}).hasOwnProperty.call(e,i)&&(r.includes(i)||(t[i]=e[i]));return t}var Au={options:{preventOverflow:{boundariesElement:"scrollParent"}},wrapperOptions:{offset:-18,position:!0}},_u={back:"Back",close:"Close",last:"Last",next:"Next",open:"Open the dialog",skip:"Skip"},Iu={event:"click",placement:"bottom",offset:10,disableBeacon:!1,disableCloseOnEsc:!1,disableOverlay:!1,disableOverlayClose:!1,disableScrollParentFix:!1,disableScrolling:!1,hideBackButton:!1,hideCloseButton:!1,hideFooter:!1,isFixed:!1,locale:_u,showProgress:!1,showSkipButton:!1,spotlightClicks:!1,spotlightPadding:10},Mu={continuous:!1,debug:!1,disableCloseOnEsc:!1,disableOverlay:!1,disableOverlayClose:!1,disableScrolling:!1,disableScrollParentFix:!1,getHelpers:void 0,hideBackButton:!1,run:!0,scrollOffset:20,scrollDuration:300,scrollToFirstStep:!1,showSkipButton:!1,showProgress:!1,spotlightClicks:!1,spotlightPadding:10,steps:[]},Du={arrowColor:"#fff",backgroundColor:"#fff",beaconSize:36,overlayColor:"rgba(0, 0, 0, 0.5)",primaryColor:"#f04",spotlightShadow:"0 0 15px rgba(0, 0, 0, 0.5)",textColor:"#333",width:380,zIndex:100},Fu={backgroundColor:"transparent",border:0,borderRadius:0,color:"#555",cursor:"pointer",fontSize:16,lineHeight:1,padding:8,WebkitAppearance:"none"},Bu={borderRadius:4,position:"absolute"};function zu(e){return function(e){if(!ks.plainObject(e))throw new TypeError("Expected an object");for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];if(!n.length)return e;const o={};for(const i in e)({}).hasOwnProperty.call(e,i)&&n.includes(i)&&(o[i]=e[i]);return o}(e,"beaconComponent","disableCloseOnEsc","disableOverlay","disableOverlayClose","disableScrolling","disableScrollParentFix","floaterProps","hideBackButton","hideCloseButton","locale","showProgress","showSkipButton","spotlightClicks","spotlightPadding","styles","tooltipComponent")}function Uu(e,t){var n,r,o,i,a,s;const l=null!=t?t:{},c=Ds.all([Iu,zu(e),l],{isMergeableObject:ks.plainObject}),u=function(e,t){var n,r,o,i,a;const{floaterProps:s,styles:l}=e,c=Ds(null!=(n=null==t?void 0:t.floaterProps)?n:{},null!=s?s:{}),u=Ds(null!=l?l:{},null!=(r=null==t?void 0:t.styles)?r:{}),f=Ds(Du,u.options||{});let{width:d}=f;window.innerWidth>480&&(d=380),"width"in f&&(d="number"===typeof f.width&&window.innerWidth<f.width?window.innerWidth-30:f.width);const p={bottom:0,left:0,overflow:"hidden",position:"absolute",right:0,top:0,zIndex:f.zIndex},h={beacon:{...Fu,display:"inline-block",height:f.beaconSize,position:"relative",width:f.beaconSize,zIndex:f.zIndex},beaconInner:{animation:"joyride-beacon-inner 1.2s infinite ease-in-out",backgroundColor:f.primaryColor,borderRadius:"50%",display:"block",height:"50%",left:"50%",opacity:.7,position:"absolute",top:"50%",transform:"translate(-50%, -50%)",width:"50%"},beaconOuter:{animation:"joyride-beacon-outer 1.2s infinite ease-in-out",backgroundColor:"rgba(".concat(Nu(f.primaryColor).join(","),", 0.2)"),border:"2px solid ".concat(f.primaryColor),borderRadius:"50%",boxSizing:"border-box",display:"block",height:"100%",left:0,opacity:.9,position:"absolute",top:0,transformOrigin:"center",width:"100%"},tooltip:{backgroundColor:f.backgroundColor,borderRadius:5,boxSizing:"border-box",color:f.textColor,fontSize:16,maxWidth:"100%",padding:15,position:"relative",width:d},tooltipContainer:{lineHeight:1.4,textAlign:"center"},tooltipTitle:{fontSize:18,margin:0},tooltipContent:{padding:"20px 10px"},tooltipFooter:{alignItems:"center",display:"flex",justifyContent:"flex-end",marginTop:15},tooltipFooterSpacer:{flex:1},buttonNext:{...Fu,backgroundColor:f.primaryColor,borderRadius:4,color:"#fff"},buttonBack:{...Fu,color:f.primaryColor,marginLeft:"auto",marginRight:5},buttonClose:{...Fu,color:f.textColor,height:14,padding:15,position:"absolute",right:0,top:0,width:14},buttonSkip:{...Fu,color:f.textColor,fontSize:14},overlay:{...p,backgroundColor:f.overlayColor,mixBlendMode:"hard-light"},overlayLegacy:{...p},overlayLegacyCenter:{...p,backgroundColor:f.overlayColor},spotlight:{...Bu,backgroundColor:"gray"},spotlightLegacy:{...Bu,boxShadow:"0 0 0 9999px ".concat(f.overlayColor,", ").concat(f.spotlightShadow)},floaterStyles:{arrow:{color:null!=(a=null==(i=null==(o=null==c?void 0:c.styles)?void 0:o.arrow)?void 0:i.color)?a:f.arrowColor},options:{zIndex:f.zIndex+100}},options:f};return Ds(h,u)}(e,c),f=xu(bu(c.target),c.disableScrollParentFix),d=Ds.all([Au,null!=(n=e.floaterProps)?n:{},null!=(r=c.floaterProps)?r:{}]);return d.offset=c.offset,d.styles=Ds(null!=(o=d.styles)?o:{},u.floaterStyles),d.offset+=null!=(a=null!=(i=e.spotlightPadding)?i:c.spotlightPadding)?a:0,c.placementBeacon&&d.wrapperOptions&&(d.wrapperOptions.placement=c.placementBeacon),f&&d.options.preventOverflow&&(d.options.preventOverflow.boundariesElement="window"),{...c,locale:Ds.all([_u,null!=(s=e.locale)?s:{},c.locale||{}]),floaterProps:d,styles:Ru(u,"floaterStyles")}}function Hu(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return ks.plainObject(e)?!!e.target||(Lu({title:"validateStep",data:"target is missing from the step",warn:!0,debug:t}),!1):(Lu({title:"validateStep",data:"step must be an object",warn:!0,debug:t}),!1)}function Wu(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return ks.array(e)?e.every((e=>Hu(e,t))):(Lu({title:"validateSteps",data:"steps must be an array",warn:!0,debug:t}),!1)}var Vu,qu={action:"init",controlled:!1,index:0,lifecycle:hu.INIT,origin:null,size:0,status:mu.IDLE},$u=(Vu=Ru(qu,"controlled","size"),Object.keys(Vu)),Ku=class{constructor(e){var t=this;Yc(this,"beaconPopper"),Yc(this,"tooltipPopper"),Yc(this,"data",new Map),Yc(this,"listener"),Yc(this,"store",new Map),Yc(this,"addListener",(e=>{this.listener=e})),Yc(this,"setSteps",(e=>{const{size:t,status:n}=this.getState(),r={size:e.length,status:n};this.data.set("steps",e),n===mu.WAITING&&!t&&e.length&&(r.status=mu.RUNNING),this.setState(r)})),Yc(this,"getPopper",(e=>"beacon"===e?this.beaconPopper:this.tooltipPopper)),Yc(this,"setPopper",((e,t)=>{"beacon"===e?this.beaconPopper=t:this.tooltipPopper=t})),Yc(this,"cleanupPoppers",(()=>{this.beaconPopper=null,this.tooltipPopper=null})),Yc(this,"close",(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;const{index:n,status:r}=t.getState();r===mu.RUNNING&&t.setState({...t.getNextState({action:ru,index:n+1,origin:e})})})),Yc(this,"go",(e=>{const{controlled:t,status:n}=this.getState();if(t||n!==mu.RUNNING)return;const r=this.getSteps()[e];this.setState({...this.getNextState({action:nu,index:e}),status:r?n:mu.FINISHED})})),Yc(this,"info",(()=>this.getState())),Yc(this,"next",(()=>{const{index:e,status:t}=this.getState();t===mu.RUNNING&&this.setState(this.getNextState({action:tu,index:e+1}))})),Yc(this,"open",(()=>{const{status:e}=this.getState();e===mu.RUNNING&&this.setState({...this.getNextState({action:iu,lifecycle:hu.TOOLTIP})})})),Yc(this,"prev",(()=>{const{index:e,status:t}=this.getState();t===mu.RUNNING&&this.setState({...this.getNextState({action:eu,index:e-1})})})),Yc(this,"reset",(function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];const{controlled:n}=t.getState();n||t.setState({...t.getNextState({action:Zc,index:0}),status:e?mu.RUNNING:mu.READY})})),Yc(this,"skip",(()=>{const{status:e}=this.getState();e===mu.RUNNING&&this.setState({action:ou,lifecycle:hu.INIT,status:mu.SKIPPED})})),Yc(this,"start",(e=>{const{index:t,size:n}=this.getState();this.setState({...this.getNextState({action:Xc,index:ks.number(e)?e:t},!0),status:n?mu.RUNNING:mu.WAITING})})),Yc(this,"stop",(function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];const{index:n,status:r}=t.getState();[mu.FINISHED,mu.SKIPPED].includes(r)||t.setState({...t.getNextState({action:Jc,index:n+(e?1:0)}),status:mu.PAUSED})})),Yc(this,"update",(e=>{var t,n;if(!function(e,t){return!(!ks.plainObject(e)||!ks.array(t))&&Object.keys(e).every((e=>t.includes(e)))}(e,$u))throw new Error("State is not valid. Valid keys: ".concat($u.join(", ")));this.setState({...this.getNextState({...this.getState(),...e,action:null!=(t=e.action)?t:iu,origin:null!=(n=e.origin)?n:null},!0)})}));const{continuous:n=!1,stepIndex:r,steps:o=[]}=null!=e?e:{};this.setState({action:Qc,controlled:ks.number(r),continuous:n,index:ks.number(r)?r:0,lifecycle:hu.INIT,origin:null,status:o.length?mu.READY:mu.IDLE},!0),this.beaconPopper=null,this.tooltipPopper=null,this.listener=null,this.setSteps(o)}getState(){return this.store.size?{action:this.store.get("action")||"",controlled:this.store.get("controlled")||!1,index:parseInt(this.store.get("index"),10),lifecycle:this.store.get("lifecycle")||"",origin:this.store.get("origin")||null,size:this.store.get("size")||0,status:this.store.get("status")||""}:{...qu}}getNextState(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];var n,r,o,i,a;const{action:s,controlled:l,index:c,size:u,status:f}=this.getState(),d=ks.number(e.index)?e.index:c,p=l&&!t?c:Math.min(Math.max(d,0),u);return{action:null!=(n=e.action)?n:s,controlled:l,index:p,lifecycle:null!=(r=e.lifecycle)?r:hu.INIT,origin:null!=(o=e.origin)?o:null,size:null!=(i=e.size)?i:u,status:p===u?mu.FINISHED:null!=(a=e.status)?a:f}}getSteps(){const e=this.data.get("steps");return Array.isArray(e)?e:[]}hasUpdatedState(e){return JSON.stringify(e)!==JSON.stringify(this.getState())}setState(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const n=this.getState(),{action:r,index:o,lifecycle:i,origin:a=null,size:s,status:l}={...n,...e};this.store.set("action",r),this.store.set("index",o),this.store.set("lifecycle",i),this.store.set("origin",a),this.store.set("size",s),this.store.set("status",l),t&&(this.store.set("controlled",e.controlled),this.store.set("continuous",e.continuous)),this.listener&&this.hasUpdatedState(n)&&this.listener(this.getState())}getHelpers(){return{close:this.close,go:this.go,info:this.info,next:this.next,open:this.open,prev:this.prev,reset:this.reset,skip:this.skip}}};var Gu=function(e){let{styles:t}=e;return r.createElement("div",{key:"JoyrideSpotlight",className:"react-joyride__spotlight","data-test-id":"spotlight",style:t})},Yu=class extends r.Component{constructor(){super(...arguments),Yc(this,"isActive",!1),Yc(this,"resizeTimeout"),Yc(this,"scrollTimeout"),Yc(this,"scrollParent"),Yc(this,"state",{isScrolling:!1,mouseOverSpotlight:!1,showSpotlight:!0}),Yc(this,"hideSpotlight",(()=>{const{continuous:e,disableOverlay:t,lifecycle:n}=this.props,r=[hu.BEACON,hu.COMPLETE,hu.ERROR];return t||(e?r.includes(n):n!==hu.TOOLTIP)})),Yc(this,"handleMouseMove",(e=>{const{mouseOverSpotlight:t}=this.state,{height:n,left:r,position:o,top:i,width:a}=this.spotlightStyles,s="fixed"===o?e.clientY:e.pageY,l="fixed"===o?e.clientX:e.pageX,c=l>=r&&l<=r+a&&(s>=i&&s<=i+n);c!==t&&this.updateState({mouseOverSpotlight:c})})),Yc(this,"handleScroll",(()=>{const{target:e}=this.props,t=bu(e);if(this.scrollParent!==document){const{isScrolling:e}=this.state;e||this.updateState({isScrolling:!0,showSpotlight:!1}),clearTimeout(this.scrollTimeout),this.scrollTimeout=window.setTimeout((()=>{this.updateState({isScrolling:!1,showSpotlight:!0})}),50)}else Eu(t,"sticky")&&this.updateState({})})),Yc(this,"handleResize",(()=>{clearTimeout(this.resizeTimeout),this.resizeTimeout=window.setTimeout((()=>{this.isActive&&this.forceUpdate()}),100)}))}componentDidMount(){const{debug:e,disableScrolling:t,disableScrollParentFix:n=!1,target:r}=this.props,o=bu(r);this.scrollParent=wu(null!=o?o:document.body,n,!0),this.isActive=!0,window.addEventListener("resize",this.handleResize)}componentDidUpdate(e){var t;const{lifecycle:n,spotlightClicks:r}=this.props,{changed:o}=_s(e,this.props);o("lifecycle",hu.TOOLTIP)&&(null==(t=this.scrollParent)||t.addEventListener("scroll",this.handleScroll,{passive:!0}),setTimeout((()=>{const{isScrolling:e}=this.state;e||this.updateState({showSpotlight:!0})}),100)),(o("spotlightClicks")||o("disableOverlay")||o("lifecycle"))&&(r&&n===hu.TOOLTIP?window.addEventListener("mousemove",this.handleMouseMove,!1):n!==hu.TOOLTIP&&window.removeEventListener("mousemove",this.handleMouseMove))}componentWillUnmount(){var e;this.isActive=!1,window.removeEventListener("mousemove",this.handleMouseMove),window.removeEventListener("resize",this.handleResize),clearTimeout(this.resizeTimeout),clearTimeout(this.scrollTimeout),null==(e=this.scrollParent)||e.removeEventListener("scroll",this.handleScroll)}get overlayStyles(){const{mouseOverSpotlight:e}=this.state,{disableOverlayClose:t,placement:n,styles:r}=this.props;let o=r.overlay;return Pu()&&(o="center"===n?r.overlayLegacyCenter:r.overlayLegacy),{cursor:t?"default":"pointer",height:vu(),pointerEvents:e?"none":"auto",...o}}get spotlightStyles(){var e,t,n;const{showSpotlight:r}=this.state,{disableScrollParentFix:o=!1,spotlightClicks:i,spotlightPadding:a=0,styles:s,target:l}=this.props,c=bu(l),u=yu(c),f=Eu(c),d=function(e,t,n){var r;const o=yu(e),i=wu(e,n),a=xu(e,n);let s=0,l=null!=(r=null==o?void 0:o.top)?r:0;return i instanceof HTMLElement&&(s=i.scrollTop,a||Eu(e)||(l+=s),i.isSameNode(ku())||(l+=ku().scrollTop)),Math.floor(l-t)}(c,a,o);return{...Pu()?s.spotlightLegacy:s.spotlight,height:Math.round((null!=(e=null==u?void 0:u.height)?e:0)+2*a),left:Math.round((null!=(t=null==u?void 0:u.left)?t:0)-a),opacity:r?1:0,pointerEvents:i?"none":"auto",position:f?"fixed":"absolute",top:d,transition:"opacity 0.2s",width:Math.round((null!=(n=null==u?void 0:u.width)?n:0)+2*a)}}updateState(e){this.isActive&&this.setState((t=>({...t,...e})))}render(){const{showSpotlight:e}=this.state,{onClickOverlay:t,placement:n}=this.props,{hideSpotlight:o,overlayStyles:i,spotlightStyles:a}=this;if(o())return null;let s="center"!==n&&e&&r.createElement(Gu,{styles:a});if("safari"===Ou()){const{mixBlendMode:e,zIndex:t,...n}=i;s=r.createElement("div",{style:{...n}},s),delete i.backgroundColor}return r.createElement("div",{className:"react-joyride__overlay","data-test-id":"overlay",onClick:t,role:"presentation",style:i},s)}},Qu=class extends r.Component{constructor(){super(...arguments),Yc(this,"node",null)}componentDidMount(){const{id:e}=this.props;gu()&&(this.node=document.createElement("div"),this.node.id=e,document.body.appendChild(this.node),ju||this.renderReact15())}componentDidUpdate(){gu()&&(ju||this.renderReact15())}componentWillUnmount(){gu()&&this.node&&(ju||a.unmountComponentAtNode(this.node),this.node.parentNode===document.body&&(document.body.removeChild(this.node),this.node=null))}renderReact15(){if(!gu())return;const{children:e}=this.props;this.node&&a.unstable_renderSubtreeIntoContainer(this,e,this.node)}renderReact16(){if(!gu()||!ju)return null;const{children:e}=this.props;return this.node?a.createPortal(e,this.node):null}render(){return ju?this.renderReact16():null}},Xu=class{constructor(e,t){if(Yc(this,"element"),Yc(this,"options"),Yc(this,"canBeTabbed",(e=>{const{tabIndex:t}=e;return!(null===t||t<0)&&this.canHaveFocus(e)})),Yc(this,"canHaveFocus",(e=>{const t=e.nodeName.toLowerCase();return(/input|select|textarea|button|object/.test(t)&&!e.getAttribute("disabled")||"a"===t&&!!e.getAttribute("href"))&&this.isVisible(e)})),Yc(this,"findValidTabElements",(()=>[].slice.call(this.element.querySelectorAll("*"),0).filter(this.canBeTabbed))),Yc(this,"handleKeyDown",(e=>{const{code:t="Tab"}=this.options;e.code===t&&this.interceptTab(e)})),Yc(this,"interceptTab",(e=>{e.preventDefault();const t=this.findValidTabElements(),{shiftKey:n}=e;if(!t.length)return;let r=document.activeElement?t.indexOf(document.activeElement):0;-1===r||!n&&r+1===t.length?r=0:n&&0===r?r=t.length-1:r+=n?-1:1,t[r].focus()})),Yc(this,"isHidden",(e=>{const t=e.offsetWidth<=0&&e.offsetHeight<=0,n=window.getComputedStyle(e);return!(!t||e.innerHTML)||(t&&"visible"!==n.getPropertyValue("overflow")||"none"===n.getPropertyValue("display"))})),Yc(this,"isVisible",(e=>{let t=e;for(;t;)if(t instanceof HTMLElement){if(t===document.body)break;if(this.isHidden(t))return!1;t=t.parentNode}return!0})),Yc(this,"removeScope",(()=>{window.removeEventListener("keydown",this.handleKeyDown)})),Yc(this,"checkFocus",(e=>{document.activeElement!==e&&(e.focus(),window.requestAnimationFrame((()=>this.checkFocus(e))))})),Yc(this,"setFocus",(()=>{const{selector:e}=this.options;if(!e)return;const t=this.element.querySelector(e);t&&window.requestAnimationFrame((()=>this.checkFocus(t)))})),!(e instanceof HTMLElement))throw new TypeError("Invalid parameter: element must be an HTMLElement");this.element=e,this.options=t,window.addEventListener("keydown",this.handleKeyDown,!1),this.setFocus()}},Ju=class extends r.Component{constructor(e){if(super(e),Yc(this,"beacon",null),Yc(this,"setBeaconRef",(e=>{this.beacon=e})),e.beaconComponent)return;const t=document.head||document.getElementsByTagName("head")[0],n=document.createElement("style");n.id="joyride-beacon-animation",e.nonce&&n.setAttribute("nonce",e.nonce);n.appendChild(document.createTextNode("\n @keyframes joyride-beacon-inner {\n 20% {\n opacity: 0.9;\n }\n \n 90% {\n opacity: 0.7;\n }\n }\n \n @keyframes joyride-beacon-outer {\n 0% {\n transform: scale(1);\n }\n \n 45% {\n opacity: 0.7;\n transform: scale(0.75);\n }\n \n 100% {\n opacity: 0.9;\n transform: scale(1);\n }\n }\n ")),t.appendChild(n)}componentDidMount(){const{shouldFocus:e}=this.props;setTimeout((()=>{ks.domElement(this.beacon)&&e&&this.beacon.focus()}),0)}componentWillUnmount(){const e=document.getElementById("joyride-beacon-animation");(null==e?void 0:e.parentNode)&&e.parentNode.removeChild(e)}render(){const{beaconComponent:e,continuous:t,index:n,isLastStep:o,locale:i,onClickOrHover:a,size:s,step:l,styles:c}=this.props,u=ks.string(i.open)?i.open:Kc(i.open),f={"aria-label":u,onClick:a,onMouseEnter:a,ref:this.setBeaconRef,title:u};let d;if(e){const i=e;d=r.createElement(i,{continuous:t,index:n,isLastStep:o,size:s,step:l,...f})}else d=r.createElement("button",{key:"JoyrideBeacon",className:"react-joyride__beacon","data-test-id":"button-beacon",style:c.beacon,type:"button",...f},r.createElement("span",{style:c.beaconInner}),r.createElement("span",{style:c.beaconOuter}));return d}};var Zu=function(e){let{styles:t,...n}=e;const{color:o,height:i,width:a,...s}=t;return r.createElement("button",{style:s,type:"button",...n},r.createElement("svg",{height:"number"===typeof i?"".concat(i,"px"):i,preserveAspectRatio:"xMidYMid",version:"1.1",viewBox:"0 0 18 18",width:"number"===typeof a?"".concat(a,"px"):a,xmlns:"http://www.w3.org/2000/svg"},r.createElement("g",null,r.createElement("path",{d:"M8.13911129,9.00268191 L0.171521827,17.0258467 C-0.0498027049,17.248715 -0.0498027049,17.6098394 0.171521827,17.8327545 C0.28204354,17.9443526 0.427188206,17.9998706 0.572051765,17.9998706 C0.71714958,17.9998706 0.862013139,17.9443526 0.972581703,17.8327545 L9.0000937,9.74924618 L17.0276057,17.8327545 C17.1384085,17.9443526 17.2832721,17.9998706 17.4281356,17.9998706 C17.5729992,17.9998706 17.718097,17.9443526 17.8286656,17.8327545 C18.0499901,17.6098862 18.0499901,17.2487618 17.8286656,17.0258467 L9.86135722,9.00268191 L17.8340066,0.973848225 C18.0553311,0.750979934 18.0553311,0.389855532 17.8340066,0.16694039 C17.6126821,-0.0556467968 17.254037,-0.0556467968 17.0329467,0.16694039 L9.00042166,8.25611765 L0.967006424,0.167268345 C0.745681892,-0.0553188426 0.387317931,-0.0553188426 0.165993399,0.167268345 C-0.0553311331,0.390136635 -0.0553311331,0.751261038 0.165993399,0.974176179 L8.13920499,9.00268191 L8.13911129,9.00268191 Z",fill:o}))))};var ef=function(e){const{backProps:t,closeProps:n,continuous:o,index:i,isLastStep:a,primaryProps:s,size:l,skipProps:c,step:u,tooltipProps:f}=e,{content:d,hideBackButton:p,hideCloseButton:h,hideFooter:m,locale:g,showProgress:y,showSkipButton:v,styles:b,title:w}=u,{back:x,close:E,last:S,next:k,skip:j}=g,O={primary:E};return o&&(O.primary=a?S:k,y&&(O.primary=r.createElement("span",null,O.primary," (",i+1,"/",l,")"))),O.primary&&(O.primary=r.createElement("button",{"data-test-id":"button-primary",style:b.buttonNext,type:"button",...s},O.primary)),v&&!a&&(O.skip=r.createElement("button",{"aria-live":"off","data-test-id":"button-skip",style:b.buttonSkip,type:"button",...c},j)),!p&&i>0&&(O.back=r.createElement("button",{"data-test-id":"button-back",style:b.buttonBack,type:"button",...t},x)),O.close=!h&&r.createElement(Zu,{"data-test-id":"button-close",styles:b.buttonClose,...n}),r.createElement("div",{key:"JoyrideTooltip","aria-label":Cu(w)||Cu(d),className:"react-joyride__tooltip",style:b.tooltip,...f},r.createElement("div",{style:b.tooltipContainer},w&&r.createElement("h1",{"aria-label":Cu(w),style:b.tooltipTitle},w),r.createElement("div",{style:b.tooltipContent},d)),!m&&r.createElement("div",{style:b.tooltipFooter},r.createElement("div",{style:b.tooltipFooterSpacer},O.skip),O.back,O.primary),O.close)},tf=class extends r.Component{constructor(){super(...arguments),Yc(this,"handleClickBack",(e=>{e.preventDefault();const{helpers:t}=this.props;t.prev()})),Yc(this,"handleClickClose",(e=>{e.preventDefault();const{helpers:t}=this.props;t.close("button_close")})),Yc(this,"handleClickPrimary",(e=>{e.preventDefault();const{continuous:t,helpers:n}=this.props;t?n.next():n.close("button_primary")})),Yc(this,"handleClickSkip",(e=>{e.preventDefault();const{helpers:t}=this.props;t.skip()})),Yc(this,"getElementsProps",(()=>{const{continuous:e,isLastStep:t,setTooltipRef:n,step:r}=this.props,o=Cu(r.locale.back),i=Cu(r.locale.close),a=Cu(r.locale.last),s=Cu(r.locale.next),l=Cu(r.locale.skip);let c=e?s:i;return t&&(c=a),{backProps:{"aria-label":o,"data-action":"back",onClick:this.handleClickBack,role:"button",title:o},closeProps:{"aria-label":i,"data-action":"close",onClick:this.handleClickClose,role:"button",title:i},primaryProps:{"aria-label":c,"data-action":"primary",onClick:this.handleClickPrimary,role:"button",title:c},skipProps:{"aria-label":l,"data-action":"skip",onClick:this.handleClickSkip,role:"button",title:l},tooltipProps:{"aria-modal":!0,ref:n,role:"alertdialog"}}}))}render(){const{continuous:e,index:t,isLastStep:n,setTooltipRef:o,size:i,step:a}=this.props,{beaconComponent:s,tooltipComponent:l,...c}=a;let u;if(l){const a={...this.getElementsProps(),continuous:e,index:t,isLastStep:n,size:i,step:c,setTooltipRef:o},s=l;u=r.createElement(s,{...a})}else u=r.createElement(ef,{...this.getElementsProps(),continuous:e,index:t,isLastStep:n,size:i,step:a});return u}},nf=class extends r.Component{constructor(){super(...arguments),Yc(this,"scope",null),Yc(this,"tooltip",null),Yc(this,"handleClickHoverBeacon",(e=>{const{step:t,store:n}=this.props;"mouseenter"===e.type&&"hover"!==t.event||n.update({lifecycle:hu.TOOLTIP})})),Yc(this,"setTooltipRef",(e=>{this.tooltip=e})),Yc(this,"setPopper",((e,t)=>{var n;const{action:r,lifecycle:o,step:i,store:a}=this.props;"wrapper"===t?a.setPopper("beacon",e):a.setPopper("tooltip",e),a.getPopper("beacon")&&a.getPopper("tooltip")&&o===hu.INIT&&a.update({action:r,lifecycle:hu.READY}),(null==(n=i.floaterProps)?void 0:n.getPopper)&&i.floaterProps.getPopper(e,t)})),Yc(this,"renderTooltip",(e=>{const{continuous:t,helpers:n,index:o,size:i,step:a}=this.props;return r.createElement(tf,{continuous:t,helpers:n,index:o,isLastStep:o+1===i,setTooltipRef:this.setTooltipRef,size:i,step:a,...e})}))}componentDidMount(){const{debug:e,index:t}=this.props;Lu({title:"step:".concat(t),data:[{key:"props",value:this.props}],debug:e})}componentDidUpdate(e){var t;const{action:n,callback:r,continuous:o,controlled:i,debug:a,helpers:s,index:l,lifecycle:c,status:u,step:f,store:d}=this.props,{changed:p,changedFrom:h}=_s(e,this.props),m=s.info(),g=o&&n!==ru&&(l>0||n===eu),y=p("action")||p("index")||p("lifecycle")||p("status"),v=h("lifecycle",[hu.TOOLTIP,hu.INIT],hu.INIT),b=p("action",[tu,eu,ou,ru]),w=i&&l===e.index;if(b&&(v||w)&&r({...m,index:e.index,lifecycle:hu.COMPLETE,step:e.step,type:uu}),"center"===f.placement&&u===mu.RUNNING&&p("index")&&n!==Xc&&c===hu.INIT&&d.update({lifecycle:hu.READY}),y){const e=bu(f.target),t=!!e,o=t&&function(e){var t;if(!e)return!1;let n=e;for(;n&&n!==document.body;){if(n instanceof HTMLElement){const{display:e,visibility:t}=getComputedStyle(n);if("none"===e||"hidden"===t)return!1}n=null!=(t=n.parentElement)?t:null}return!0}(e);o?(h("status",mu.READY,mu.RUNNING)||h("lifecycle",hu.INIT,hu.READY))&&r({...m,step:f,type:su}):(console.warn(t?"Target not visible":"Target not mounted",f),r({...m,type:pu,step:f}),i||d.update({index:l+(n===eu?-1:1)}))}h("lifecycle",hu.INIT,hu.READY)&&d.update({lifecycle:Tu(f)||g?hu.TOOLTIP:hu.BEACON}),p("index")&&Lu({title:"step:".concat(c),data:[{key:"props",value:this.props}],debug:a}),p("lifecycle",hu.BEACON)&&r({...m,step:f,type:lu}),p("lifecycle",hu.TOOLTIP)&&(r({...m,step:f,type:cu}),this.tooltip&&(this.scope=new Xu(this.tooltip,{selector:"[data-action=primary]"}),this.scope.setFocus())),h("lifecycle",[hu.TOOLTIP,hu.INIT],hu.INIT)&&(null==(t=this.scope)||t.removeScope(),d.cleanupPoppers())}componentWillUnmount(){var e;null==(e=this.scope)||e.removeScope()}get open(){const{lifecycle:e,step:t}=this.props;return Tu(t)||e===hu.TOOLTIP}render(){const{continuous:e,debug:t,index:n,nonce:o,shouldScroll:i,size:a,step:s}=this.props,l=bu(s.target);return Hu(s)&&ks.domElement(l)?r.createElement("div",{key:"JoyrideStep-".concat(n),className:"react-joyride__step"},r.createElement($c,{...s.floaterProps,component:this.renderTooltip,debug:t,getPopper:this.setPopper,id:"react-joyride-step-".concat(n),open:this.open,placement:s.placement,target:s.target},r.createElement(Ju,{beaconComponent:s.beaconComponent,continuous:e,index:n,isLastStep:n+1===a,locale:s.locale,nonce:o,onClickOrHover:this.handleClickHoverBeacon,shouldFocus:i,size:a,step:s,styles:s.styles}))):null}},rf=class extends r.Component{constructor(e){super(e),Yc(this,"helpers"),Yc(this,"store"),Yc(this,"callback",(e=>{const{callback:t}=this.props;ks.function(t)&&t(e)})),Yc(this,"handleKeyboard",(e=>{const{index:t,lifecycle:n}=this.state,{steps:r}=this.props,o=r[t];n===hu.TOOLTIP&&"Escape"===e.code&&o&&!o.disableCloseOnEsc&&this.store.close("keyboard")})),Yc(this,"handleClickOverlay",(()=>{const{index:e}=this.state,{steps:t}=this.props;Uu(this.props,t[e]).disableOverlayClose||this.helpers.close("overlay")})),Yc(this,"syncState",(e=>{this.setState(e)}));const{debug:t,getHelpers:n,run:r,stepIndex:o}=e;this.store=function(e){return new Ku(e)}({...e,controlled:r&&ks.number(o)}),this.helpers=this.store.getHelpers();const{addListener:i}=this.store;Lu({title:"init",data:[{key:"props",value:this.props},{key:"state",value:this.state}],debug:t}),i(this.syncState),n&&n(this.helpers),this.state=this.store.getState()}componentDidMount(){if(!gu())return;const{debug:e,disableCloseOnEsc:t,run:n,steps:r}=this.props,{start:o}=this.store;Wu(r,e)&&n&&o(),t||document.body.addEventListener("keydown",this.handleKeyboard,{passive:!0})}componentDidUpdate(e,t){if(!gu())return;const{action:n,controlled:r,index:o,lifecycle:i,status:a}=this.state,{debug:s,run:l,stepIndex:c,steps:u}=this.props,{stepIndex:f,steps:d}=e,{reset:p,setSteps:h,start:m,stop:g,update:y}=this.store,{changed:v}=_s(e,this.props),{changed:b,changedFrom:w}=_s(t,this.state),x=Uu(this.props,u[o]),E=!gs(d,u),S=ks.number(c)&&v("stepIndex"),k=bu(x.target);if(E&&(Wu(u,s)?h(u):console.warn("Steps are not valid",u)),v("run")&&(l?m(c):g()),S){let e=ks.number(f)&&f<c?tu:eu;n===Jc&&(e=Xc),[mu.FINISHED,mu.SKIPPED].includes(a)||y({action:n===ru?ru:e,index:c,lifecycle:hu.INIT})}r||a!==mu.RUNNING||0!==o||k||(this.store.update({index:o+1}),this.callback({...this.state,type:pu,step:x}));const j={...this.state,index:o,step:x};if(b("action",[tu,eu,ou,ru])&&b("status",mu.PAUSED)){const e=Uu(this.props,u[t.index]);this.callback({...j,index:t.index,lifecycle:hu.COMPLETE,step:e,type:uu})}if(b("status",[mu.FINISHED,mu.SKIPPED])){const e=Uu(this.props,u[t.index]);r||this.callback({...j,index:t.index,lifecycle:hu.COMPLETE,step:e,type:uu}),this.callback({...j,type:fu,step:e,index:t.index}),p()}else w("status",[mu.IDLE,mu.READY],mu.RUNNING)?this.callback({...j,type:au}):(b("status")||b("action",Zc))&&this.callback({...j,type:du});this.scrollToStep(t),"center"===x.placement&&a===mu.RUNNING&&i===hu.INIT&&this.store.update({lifecycle:hu.READY})}componentWillUnmount(){const{disableCloseOnEsc:e}=this.props;e||document.body.removeEventListener("keydown",this.handleKeyboard)}scrollToStep(e){const{index:t,lifecycle:n,status:r}=this.state,{debug:o,disableScrollParentFix:i=!1,scrollDuration:a,scrollOffset:s=20,scrollToFirstStep:l=!1,steps:c}=this.props,u=Uu(this.props,c[t]),f=bu(u.target),d=function(e){const{isFirstStep:t,lifecycle:n,previousLifecycle:r,scrollToFirstStep:o,step:i,target:a}=e;return!i.disableScrolling&&(!t||o||n===hu.TOOLTIP)&&"center"!==i.placement&&(!i.isFixed||!Eu(a))&&r!==n&&[hu.BEACON,hu.TOOLTIP].includes(n)}({isFirstStep:0===t,lifecycle:n,previousLifecycle:e.lifecycle,scrollToFirstStep:l,step:u,target:f});if(r===mu.RUNNING&&d){const e=xu(f,i),l=wu(f,i);let c=Math.floor(Su(f,s,i))||0;Lu({title:"scrollToStep",data:[{key:"index",value:t},{key:"lifecycle",value:n},{key:"status",value:r}],debug:o});const d=this.store.getPopper("beacon"),p=this.store.getPopper("tooltip");if(n===hu.BEACON&&d){const{offsets:t,placement:n}=d;["bottom"].includes(n)||e||(c=Math.floor(t.popper.top-s))}else if(n===hu.TOOLTIP&&p){const{flipped:t,offsets:n,placement:r}=p;!["top","right","left"].includes(r)||t||e?c-=u.spotlightPadding:c=Math.floor(n.popper.top-s)}c=c>=0?c:0,r===mu.RUNNING&&function(e,t){const{duration:n,element:r}=t;return new Promise(((t,o)=>{const{scrollTop:i}=r,a=e>i?e-i:i-e;Is.top(r,e,{duration:a<100?50:n},(e=>e&&"Element already at target scroll position"!==e.message?o(e):t()))}))}(c,{element:l,duration:a}).then((()=>{setTimeout((()=>{var e;null==(e=this.store.getPopper("tooltip"))||e.instance.update()}),10)}))}}render(){if(!gu())return null;const{index:e,lifecycle:t,status:n}=this.state,{continuous:o=!1,debug:i=!1,nonce:a,scrollToFirstStep:s=!1,steps:l}=this.props,c={};if(n===mu.RUNNING&&l[e]){const n=Uu(this.props,l[e]);c.step=r.createElement(nf,{...this.state,callback:this.callback,continuous:o,debug:i,helpers:this.helpers,nonce:a,shouldScroll:!n.disableScrolling&&(0!==e||s),step:n,store:this.store}),c.overlay=r.createElement(Qu,{id:"react-joyride-portal"},r.createElement(Yu,{...n,continuous:o,debug:i,lifecycle:t,onClickOverlay:this.handleClickOverlay}))}return r.createElement("div",{className:"react-joyride"},c.step,c.overlay)}};Yc(rf,"defaultProps",Mu);var of=rf;const af=e=>{const t=J(),[n,o]=(0,r.useState)(!1),[i,a]=(0,r.useState)(0),[s,l]=(0,r.useState)(!0),c=Gt((e=>e.common.serviceStatus)),u=()=>(0,At.jsx)("div",{className:"tour-step-1",children:(0,At.jsx)(li,{src:window.location.origin+"/img/tour/upload-file-tour-img.png",className:"tour-step-img"})}),f=()=>(0,At.jsx)("div",{className:"tour-step-2",children:(0,At.jsx)(li,{src:window.location.origin+"/img/tour/manage-file-tour-img.png",className:"tour-step-img"})}),d=()=>(0,At.jsx)("div",{className:"tour-step-3",children:(0,At.jsx)(li,{src:window.location.origin+"/img/tour/prompt-tour-img.png",className:"tour-step-img"})}),p=()=>(0,At.jsx)("div",{className:"tour-step-4",children:(0,At.jsx)(li,{src:window.location.origin+"/img/tour/empower-tour-img.png",className:"tour-step-img"})}),h=[{target:".my-first-step",title:"Upload Files",content:(0,At.jsx)(u,{}),disableBeacon:!0,placement:"right"},{target:".my-second-step",title:"Manage Files",content:(0,At.jsx)(f,{}),disableBeacon:!0,placement:"right"},{target:".my-third-step",title:"Begin with Prompt!",content:(0,At.jsx)(d,{}),disableBeacon:!0,placement:"right"},{target:".my-fourth-step",title:"Empower Service",content:(0,At.jsx)(p,{}),disableBeacon:!0,placement:"top"}];return(0,r.useEffect)((()=>{!c.buttonDisable&&Object.keys(c.data).length>0&&a("API is working"==c.data.status?1:0),l(!1)}),[c]),(0,At.jsxs)(At.Fragment,{children:[(0,At.jsx)("div",{className:"admin-ui-sidebar",children:(0,At.jsxs)("div",{className:"admin-ui-sidebar-collapse",children:[(0,At.jsx)("div",{className:"admin-ui-collapse-logo-sec",children:(0,At.jsx)(je,{className:"",to:"/",children:(0,At.jsx)(li,{className:"admin-ui-collapse-logo",src:window.location.origin+"/img/file-refiner-logo.png"})})}),1!=localStorage.getItem("dashboard_tour")?(0,At.jsx)(of,{steps:h,run:!0,continuous:!0,spotlightClicks:!0,scrollToFirstStep:!0,disableScrolling:!0,showSkipButton:!0,showProgress:!0,disableOverlayClose:!0,callback:e=>{["next","skip"].includes(e.action)&&(["skip"].includes(e.action)&&"complete"==e.lifecycle||["next"].includes(e.action)&&"init"==e.lifecycle)&&localStorage.setItem("dashboard_tour",1)},hideCloseButton:!0,autoStart:!0,className:"joyride-dashboard",styles:{options:{borderRadius:"0",arrowColor:"#fff",backgroundColor:"#fff",overlayColor:"#312f2f",primaryColor:"#000",textColor:"#004a14",width:550,zIndex:99999},buttonNext:{fontSize:"0.9em",padding:"1em 1em",display:"inline-block",backgroundColor:"#195097",border:"0",letterSpacing:".5px",borderRadius:"0!important",fontWeight:"500",marginLeft:"16px",outline:"none!important",position:"relative"},overlay:{backgroundColor:"none",mixBlendMode:"unset"},spotlight:{backgroundColor:"#FFFFFF66",borderRadius:0,boxShadow:"0px 0px 0px 9999px rgba(0,0,0,0.7)",marginTop:"10px",marginLeft:"0px",maxHeight:"59px",maxWidth:"4.8em"}},...e,children:"Test"}):null,(0,At.jsxs)("div",{className:"admin-ui-collapse-body",children:[(0,At.jsxs)("ul",{className:"admin-ui-sidebar-list list-unstyled",children:[(0,At.jsx)("li",{children:(0,At.jsx)(je,{to:"/upload",className:"my-first-step ".concat("/upload"==t.pathname&&"active"),children:(0,At.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24","data-name":"Layer 1",viewBox:"0 0 24 24",children:(0,At.jsx)("path",{d:"M24 15v4c0 2.757-2.243 5-5 5H5c-2.757 0-5-2.243-5-5v-4c0-1.654 1.346-3 3-3h3c1.103 0 2 .897 2 2s.897 2 2 2h4c1.103 0 2-.897 2-2s.897-2 2-2h3c1.654 0 3 1.346 3 3zM8.707 5.293L11 3v7a1 1 0 102 0V3l2.293 2.293a.997.997 0 001.414 0 .999.999 0 000-1.414L13.414.586a1.99 1.99 0 00-1.4-.583L12 0l-.014.003a1.989 1.989 0 00-1.4.583L7.293 3.879a.999.999 0 101.414 1.414z"})})})}),(0,At.jsx)("li",{children:(0,At.jsx)(je,{to:"/file-uploading",className:"my-second-step ".concat("/file-uploading"==t.pathname&&"active"),children:(0,At.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24","data-name":"Layer 1",viewBox:"0 0 24 24",children:(0,At.jsx)("path",{d:"M19.5 24a1 1 0 01-.929-.628l-.844-2.113-2.116-.891a1.007 1.007 0 01.035-1.857l2.088-.791.837-2.092a1.008 1.008 0 011.858 0l.841 2.1 2.1.841a1.007 1.007 0 010 1.858l-2.1.841-.841 2.1A1 1 0 0119.5 24zM10 21a2 2 0 01-1.936-1.413L6.45 14.54l-5.063-1.694a2.032 2.032 0 01.052-3.871l5.023-1.534 1.692-5.054A1.956 1.956 0 0110.108 1a2 2 0 011.917 1.439l1.532 5.015 5.03 1.61a2.042 2.042 0 010 3.872l-5.039 1.612-1.612 5.039A2 2 0 0110 21zM20.5 7a1 1 0 01-.97-.757l-.357-1.43-1.433-.385a1 1 0 01.034-1.94l1.4-.325.356-1.406a1 1 0 011.94 0l.354 1.418 1.418.355a1 1 0 010 1.94l-1.418.355-.354 1.418A1 1 0 0120.5 7z"})})})}),(0,At.jsx)("li",{children:(0,At.jsx)(je,{to:"/chat",className:"my-third-step ".concat("/chat"==t.pathname&&"active"),children:(0,At.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24","data-name":"Layer 1",viewBox:"0 0 24 24",children:(0,At.jsx)("path",{d:"M14 7V.46a6.977 6.977 0 012.465 1.59l3.484 3.486A6.954 6.954 0 0121.54 8H15a1 1 0 01-1-1zm8 3.485V19a5.006 5.006 0 01-5 5H7a5.006 5.006 0 01-5-5V5a5.006 5.006 0 015-5h4.515c.163 0 .324.013.485.024V7a3 3 0 003 3h6.976c.011.161.024.322.024.485zM14 19a1 1 0 00-1-1H8a1 1 0 000 2h5a1 1 0 001-1zm3-4a1 1 0 00-1-1H8a1 1 0 000 2h8a1 1 0 001-1z"})})})})]}),(0,At.jsx)("ul",{className:"admin-ui-sidebar-list empower-icon list-unstyled",children:(0,At.jsx)("li",{children:(0,At.jsx)(je,{onClick:()=>o(!0),type:"button",className:"my-fourth-step ".concat(i?"status-active":""),children:(0,At.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",x:"0",y:"0",enableBackground:"new 0 0 512.292 512.292",version:"1.1",viewBox:"0 0 512.292 512.292",xmlSpace:"preserve",children:[(0,At.jsx)("path",{d:"M256.061 0c17.673 0 32 14.327 32 32v106.667c0 17.673-14.327 32-32 32-17.673 0-32-14.327-32-32V32c0-17.673 14.326-32 32-32z"}),(0,At.jsx)("path",{d:"M330.727 105.387a30.998 30.998 0 0014.315 26.581c80.432 49.143 105.796 154.185 56.652 234.616S247.51 472.38 167.078 423.237 61.282 269.052 110.426 188.62a170.676 170.676 0 0156.269-56.418 31.384 31.384 0 0014.699-26.795c.049-17.673-14.238-32.039-31.911-32.088a31.994 31.994 0 00-17.155 4.931C22.233 146.634-11.58 291.318 56.803 401.412s213.067 143.907 323.161 75.524 143.907-213.067 75.524-323.161a234.675 234.675 0 00-75.524-75.524c-14.997-9.461-34.824-4.973-44.285 10.024a32.106 32.106 0 00-4.952 17.112z"})]})})})})]})]})}),(0,At.jsx)(us,{emPower:n,closeEmPowerModal:()=>{o(!1)},setEmPower:o})]})},sf=e=>{const t=rn(),n=J(),[o,i]=(0,r.useState)(!1),[a,s]=(0,r.useState)(0),[l,c]=(0,r.useState)(!0),u=Gt((e=>e.common.serviceStatus));return(0,r.useEffect)((()=>{!u.buttonDisable&&Object.keys(u.data).length>0&&s("API is working"==u.data.status?1:0),c(!1)}),[u]),(0,At.jsxs)(At.Fragment,{children:[(0,At.jsx)("div",{className:"admin-ui-sidebar admin-ui-collapse-sidebar",children:(0,At.jsxs)("div",{className:"admin-ui-sidebar-collapse",children:[(0,At.jsxs)("div",{className:"admin-ui-logo-sec",children:[(0,At.jsx)(je,{className:"",to:"/",children:(0,At.jsx)(li,{className:"admin-ui-logo",src:window.location.origin+"/img/haive-text-logo.svg"})}),(0,At.jsx)(cs,{className:"offcanvas-close",onClick:()=>t(oo()),children:(0,At.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"30",height:"30",fill:"#fff","data-name":"Layer 1",viewBox:"0 0 24 24",children:(0,At.jsx)("path",{d:"M23.341 9.48l-3.501-6A5.016 5.016 0 0015.522 1H8.451a5.02 5.02 0 00-4.319 2.48l-3.501 6a5.01 5.01 0 000 5.039l3.501 6a5.016 5.016 0 004.318 2.48h7.071a5.02 5.02 0 004.319-2.48l3.5-6a5.01 5.01 0 000-5.039zm-1.729 4.031l-3.499 6a3.011 3.011 0 01-2.592 1.488H8.45a3.01 3.01 0 01-2.591-1.488l-3.5-6a3.004 3.004 0 010-3.023l3.499-6A3.011 3.011 0 018.45 3h7.071a3.01 3.01 0 012.591 1.488l3.5 6a3.004 3.004 0 010 3.023zm-5.905-3.805l-2.293 2.293 2.293 2.293a.999.999 0 11-1.414 1.414L12 13.413l-2.293 2.293a.997.997 0 01-1.414 0 .999.999 0 010-1.414l2.293-2.293-2.293-2.293a.999.999 0 111.414-1.414L12 10.585l2.293-2.293a.999.999 0 111.414 1.414z"})})})]}),(0,At.jsxs)("div",{className:"admin-ui-collapse-body",children:[(0,At.jsxs)("ul",{className:"admin-ui-sidebar-list list-unstyled",onClick:()=>t(oo()),children:[(0,At.jsx)("li",{children:(0,At.jsxs)(je,{to:"/upload",className:"".concat("/upload"==n.pathname&&"active"),children:[(0,At.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24","data-name":"Layer 1",viewBox:"0 0 24 24",children:(0,At.jsx)("path",{d:"M24 15v4c0 2.757-2.243 5-5 5H5c-2.757 0-5-2.243-5-5v-4c0-1.654 1.346-3 3-3h3c1.103 0 2 .897 2 2s.897 2 2 2h4c1.103 0 2-.897 2-2s.897-2 2-2h3c1.654 0 3 1.346 3 3zM8.707 5.293L11 3v7a1 1 0 102 0V3l2.293 2.293a.997.997 0 001.414 0 .999.999 0 000-1.414L13.414.586a1.99 1.99 0 00-1.4-.583L12 0l-.014.003a1.989 1.989 0 00-1.4.583L7.293 3.879a.999.999 0 101.414 1.414z"})}),(0,At.jsx)("span",{children:"Upload"})]})}),(0,At.jsx)("li",{children:(0,At.jsxs)(je,{to:"/file-uploading",className:"".concat("/file-uploading"==n.pathname&&"active"),children:[(0,At.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24","data-name":"Layer 1",viewBox:"0 0 24 24",children:(0,At.jsx)("path",{d:"M19.5 24a1 1 0 01-.929-.628l-.844-2.113-2.116-.891a1.007 1.007 0 01.035-1.857l2.088-.791.837-2.092a1.008 1.008 0 011.858 0l.841 2.1 2.1.841a1.007 1.007 0 010 1.858l-2.1.841-.841 2.1A1 1 0 0119.5 24zM10 21a2 2 0 01-1.936-1.413L6.45 14.54l-5.063-1.694a2.032 2.032 0 01.052-3.871l5.023-1.534 1.692-5.054A1.956 1.956 0 0110.108 1a2 2 0 011.917 1.439l1.532 5.015 5.03 1.61a2.042 2.042 0 010 3.872l-5.039 1.612-1.612 5.039A2 2 0 0110 21zM20.5 7a1 1 0 01-.97-.757l-.357-1.43-1.433-.385a1 1 0 01.034-1.94l1.4-.325.356-1.406a1 1 0 011.94 0l.354 1.418 1.418.355a1 1 0 010 1.94l-1.418.355-.354 1.418A1 1 0 0120.5 7z"})}),(0,At.jsx)("span",{children:"Prompt"})]})}),(0,At.jsx)("li",{children:(0,At.jsxs)(je,{to:"/chat",className:"".concat("/chat"==n.pathname&&"active"),children:[(0,At.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24","data-name":"Layer 1",viewBox:"0 0 24 24",children:(0,At.jsx)("path",{d:"M14 7V.46a6.977 6.977 0 012.465 1.59l3.484 3.486A6.954 6.954 0 0121.54 8H15a1 1 0 01-1-1zm8 3.485V19a5.006 5.006 0 01-5 5H7a5.006 5.006 0 01-5-5V5a5.006 5.006 0 015-5h4.515c.163 0 .324.013.485.024V7a3 3 0 003 3h6.976c.011.161.024.322.024.485zM14 19a1 1 0 00-1-1H8a1 1 0 000 2h5a1 1 0 001-1zm3-4a1 1 0 00-1-1H8a1 1 0 000 2h8a1 1 0 001-1z"})}),(0,At.jsx)("span",{children:"File"})]})})]}),(0,At.jsx)("ul",{className:"admin-ui-sidebar-list empower-icon list-unstyled ".concat(a?"status-active":""),children:(0,At.jsx)("li",{children:(0,At.jsxs)(je,{onClick:()=>i(!0),type:"button",className:"".concat(a?"status-active":""),children:[(0,At.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",x:"0",y:"0",enableBackground:"new 0 0 512.292 512.292",version:"1.1",viewBox:"0 0 512.292 512.292",xmlSpace:"preserve",fill:"#195097",children:[(0,At.jsx)("path",{d:"M256.061 0c17.673 0 32 14.327 32 32v106.667c0 17.673-14.327 32-32 32-17.673 0-32-14.327-32-32V32c0-17.673 14.326-32 32-32z"}),(0,At.jsx)("path",{d:"M330.727 105.387a30.998 30.998 0 0014.315 26.581c80.432 49.143 105.796 154.185 56.652 234.616S247.51 472.38 167.078 423.237 61.282 269.052 110.426 188.62a170.676 170.676 0 0156.269-56.418 31.384 31.384 0 0014.699-26.795c.049-17.673-14.238-32.039-31.911-32.088a31.994 31.994 0 00-17.155 4.931C22.233 146.634-11.58 291.318 56.803 401.412s213.067 143.907 323.161 75.524 143.907-213.067 75.524-323.161a234.675 234.675 0 00-75.524-75.524c-14.997-9.461-34.824-4.973-44.285 10.024a32.106 32.106 0 00-4.952 17.112z"})]}),(0,At.jsx)("span",{className:"".concat(a?"status-active":""),children:"Empower"})]})})})]})]})}),(0,At.jsx)(us,{emPower:o,closeEmPowerModal:()=>{i(!1)},setEmPower:i})]})};function lf(){return Gt((e=>e.common.sidebar))?(0,At.jsx)(sf,{}):(0,At.jsx)(af,{})}const cf=e=>{const t=Gt((e=>e.common.sidebar)),n=rn();return(0,r.useEffect)((()=>{n(so())}),[]),(0,r.useEffect)((()=>{}),[t]),(0,At.jsx)(At.Fragment,{children:(0,At.jsxs)("div",{className:"admin-ui-sec",children:[(0,At.jsx)(lf,{}),(0,At.jsxs)("div",{className:"admin-ui-main-wrapper ".concat(t?"admin-collapse-main-wrapper":""),children:[(0,At.jsx)(Yo,{}),e.children]})]})})};function uf(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=uf(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}const ff=function(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=uf(e))&&(r&&(r+=" "),r+=t);return r},df=e=>"number"==typeof e&&!isNaN(e),pf=e=>"string"==typeof e,hf=e=>"function"==typeof e,mf=e=>pf(e)||hf(e)?e:null,gf=e=>(0,r.isValidElement)(e)||pf(e)||hf(e)||df(e);function yf(e){let{enter:t,exit:n,appendPosition:o=!1,collapse:i=!0,collapseDuration:a=300}=e;return function(e){let{children:s,position:l,preventExitTransition:c,done:u,nodeRef:f,isIn:d}=e;const p=o?"".concat(t,"--").concat(l):t,h=o?"".concat(n,"--").concat(l):n,m=(0,r.useRef)(0);return(0,r.useLayoutEffect)((()=>{const e=f.current,t=p.split(" "),n=r=>{r.target===f.current&&(e.dispatchEvent(new Event("d")),e.removeEventListener("animationend",n),e.removeEventListener("animationcancel",n),0===m.current&&"animationcancel"!==r.type&&e.classList.remove(...t))};e.classList.add(...t),e.addEventListener("animationend",n),e.addEventListener("animationcancel",n)}),[]),(0,r.useEffect)((()=>{const e=f.current,t=()=>{e.removeEventListener("animationend",t),i?function(e,t,n){void 0===n&&(n=300);const{scrollHeight:r,style:o}=e;requestAnimationFrame((()=>{o.minHeight="initial",o.height=r+"px",o.transition="all ".concat(n,"ms"),requestAnimationFrame((()=>{o.height="0",o.padding="0",o.margin="0",setTimeout(t,n)}))}))}(e,u,a):u()};d||(c?t():(m.current=1,e.className+=" ".concat(h),e.addEventListener("animationend",t)))}),[d]),r.createElement(r.Fragment,null,s)}}function vf(e,t){return null!=e?{content:e.content,containerId:e.props.containerId,id:e.props.toastId,theme:e.props.theme,type:e.props.type,data:e.props.data||{},isLoading:e.props.isLoading,icon:e.props.icon,status:t}:{}}const bf={list:new Map,emitQueue:new Map,on(e,t){return this.list.has(e)||this.list.set(e,[]),this.list.get(e).push(t),this},off(e,t){if(t){const n=this.list.get(e).filter((e=>e!==t));return this.list.set(e,n),this}return this.list.delete(e),this},cancelEmit(e){const t=this.emitQueue.get(e);return t&&(t.forEach(clearTimeout),this.emitQueue.delete(e)),this},emit(e){this.list.has(e)&&this.list.get(e).forEach((t=>{const n=setTimeout((()=>{t(...[].slice.call(arguments,1))}),0);this.emitQueue.has(e)||this.emitQueue.set(e,[]),this.emitQueue.get(e).push(n)}))}},wf=e=>{let{theme:t,type:n,...o}=e;return r.createElement("svg",{viewBox:"0 0 24 24",width:"100%",height:"100%",fill:"colored"===t?"currentColor":"var(--toastify-icon-color-".concat(n,")"),...o})},xf={info:function(e){return r.createElement(wf,{...e},r.createElement("path",{d:"M12 0a12 12 0 1012 12A12.013 12.013 0 0012 0zm.25 5a1.5 1.5 0 11-1.5 1.5 1.5 1.5 0 011.5-1.5zm2.25 13.5h-4a1 1 0 010-2h.75a.25.25 0 00.25-.25v-4.5a.25.25 0 00-.25-.25h-.75a1 1 0 010-2h1a2 2 0 012 2v4.75a.25.25 0 00.25.25h.75a1 1 0 110 2z"}))},warning:function(e){return r.createElement(wf,{...e},r.createElement("path",{d:"M23.32 17.191L15.438 2.184C14.728.833 13.416 0 11.996 0c-1.42 0-2.733.833-3.443 2.184L.533 17.448a4.744 4.744 0 000 4.368C1.243 23.167 2.555 24 3.975 24h16.05C22.22 24 24 22.044 24 19.632c0-.904-.251-1.746-.68-2.44zm-9.622 1.46c0 1.033-.724 1.823-1.698 1.823s-1.698-.79-1.698-1.822v-.043c0-1.028.724-1.822 1.698-1.822s1.698.79 1.698 1.822v.043zm.039-12.285l-.84 8.06c-.057.581-.408.943-.897.943-.49 0-.84-.367-.896-.942l-.84-8.065c-.057-.624.25-1.095.779-1.095h1.91c.528.005.84.476.784 1.1z"}))},success:function(e){return r.createElement(wf,{...e},r.createElement("path",{d:"M12 0a12 12 0 1012 12A12.014 12.014 0 0012 0zm6.927 8.2l-6.845 9.289a1.011 1.011 0 01-1.43.188l-4.888-3.908a1 1 0 111.25-1.562l4.076 3.261 6.227-8.451a1 1 0 111.61 1.183z"}))},error:function(e){return r.createElement(wf,{...e},r.createElement("path",{d:"M11.983 0a12.206 12.206 0 00-8.51 3.653A11.8 11.8 0 000 12.207 11.779 11.779 0 0011.8 24h.214A12.111 12.111 0 0024 11.791 11.766 11.766 0 0011.983 0zM10.5 16.542a1.476 1.476 0 011.449-1.53h.027a1.527 1.527 0 011.523 1.47 1.475 1.475 0 01-1.449 1.53h-.027a1.529 1.529 0 01-1.523-1.47zM11 12.5v-6a1 1 0 012 0v6a1 1 0 11-2 0z"}))},spinner:function(){return r.createElement("div",{className:"Toastify__spinner"})}};function Ef(e){return e.targetTouches&&e.targetTouches.length>=1?e.targetTouches[0].clientX:e.clientX}function Sf(e){return e.targetTouches&&e.targetTouches.length>=1?e.targetTouches[0].clientY:e.clientY}function kf(e){let{closeToast:t,theme:n,ariaLabel:o="close"}=e;return r.createElement("button",{className:"Toastify__close-button Toastify__close-button--".concat(n),type:"button",onClick:e=>{e.stopPropagation(),t(e)},"aria-label":o},r.createElement("svg",{"aria-hidden":"true",viewBox:"0 0 14 16"},r.createElement("path",{fillRule:"evenodd",d:"M7.71 8.23l3.75 3.75-1.48 1.48-3.75-3.75-3.75 3.75L1 11.98l3.75-3.75L1 4.48 2.48 3l3.75 3.75L9.98 3l1.48 1.48-3.75 3.75z"})))}function jf(e){let{delay:t,isRunning:n,closeToast:o,type:i="default",hide:a,className:s,style:l,controlledProgress:c,progress:u,rtl:f,isIn:d,theme:p}=e;const h=a||c&&0===u,m={...l,animationDuration:"".concat(t,"ms"),animationPlayState:n?"running":"paused",opacity:h?0:1};c&&(m.transform="scaleX(".concat(u,")"));const g=ff("Toastify__progress-bar",c?"Toastify__progress-bar--controlled":"Toastify__progress-bar--animated","Toastify__progress-bar-theme--".concat(p),"Toastify__progress-bar--".concat(i),{"Toastify__progress-bar--rtl":f}),y=hf(s)?s({rtl:f,type:i,defaultClassName:g}):ff(g,s);return r.createElement("div",{role:"progressbar","aria-hidden":h?"true":"false","aria-label":"notification timer",className:y,style:m,[c&&u>=1?"onTransitionEnd":"onAnimationEnd"]:c&&u<1?null:()=>{d&&o()}})}const Of=e=>{const{isRunning:t,preventExitTransition:n,toastRef:o,eventHandlers:i}=function(e){const[t,n]=(0,r.useState)(!1),[o,i]=(0,r.useState)(!1),a=(0,r.useRef)(null),s=(0,r.useRef)({start:0,x:0,y:0,delta:0,removalDistance:0,canCloseOnClick:!0,canDrag:!1,boundingRect:null,didMove:!1}).current,l=(0,r.useRef)(e),{autoClose:c,pauseOnHover:u,closeToast:f,onClick:d,closeOnClick:p}=e;function h(t){if(e.draggable){"touchstart"===t.nativeEvent.type&&t.nativeEvent.preventDefault(),s.didMove=!1,document.addEventListener("mousemove",v),document.addEventListener("mouseup",b),document.addEventListener("touchmove",v),document.addEventListener("touchend",b);const n=a.current;s.canCloseOnClick=!0,s.canDrag=!0,s.boundingRect=n.getBoundingClientRect(),n.style.transition="",s.x=Ef(t.nativeEvent),s.y=Sf(t.nativeEvent),"x"===e.draggableDirection?(s.start=s.x,s.removalDistance=n.offsetWidth*(e.draggablePercent/100)):(s.start=s.y,s.removalDistance=n.offsetHeight*(80===e.draggablePercent?1.5*e.draggablePercent:e.draggablePercent/100))}}function m(t){if(s.boundingRect){const{top:n,bottom:r,left:o,right:i}=s.boundingRect;"touchend"!==t.nativeEvent.type&&e.pauseOnHover&&s.x>=o&&s.x<=i&&s.y>=n&&s.y<=r?y():g()}}function g(){n(!0)}function y(){n(!1)}function v(n){const r=a.current;s.canDrag&&r&&(s.didMove=!0,t&&y(),s.x=Ef(n),s.y=Sf(n),s.delta="x"===e.draggableDirection?s.x-s.start:s.y-s.start,s.start!==s.x&&(s.canCloseOnClick=!1),r.style.transform="translate".concat(e.draggableDirection,"(").concat(s.delta,"px)"),r.style.opacity=""+(1-Math.abs(s.delta/s.removalDistance)))}function b(){document.removeEventListener("mousemove",v),document.removeEventListener("mouseup",b),document.removeEventListener("touchmove",v),document.removeEventListener("touchend",b);const t=a.current;if(s.canDrag&&s.didMove&&t){if(s.canDrag=!1,Math.abs(s.delta)>s.removalDistance)return i(!0),void e.closeToast();t.style.transition="transform 0.2s, opacity 0.2s",t.style.transform="translate".concat(e.draggableDirection,"(0)"),t.style.opacity="1"}}(0,r.useEffect)((()=>{l.current=e})),(0,r.useEffect)((()=>(a.current&&a.current.addEventListener("d",g,{once:!0}),hf(e.onOpen)&&e.onOpen((0,r.isValidElement)(e.children)&&e.children.props),()=>{const e=l.current;hf(e.onClose)&&e.onClose((0,r.isValidElement)(e.children)&&e.children.props)})),[]),(0,r.useEffect)((()=>(e.pauseOnFocusLoss&&(document.hasFocus()||y(),window.addEventListener("focus",g),window.addEventListener("blur",y)),()=>{e.pauseOnFocusLoss&&(window.removeEventListener("focus",g),window.removeEventListener("blur",y))})),[e.pauseOnFocusLoss]);const w={onMouseDown:h,onTouchStart:h,onMouseUp:m,onTouchEnd:m};return c&&u&&(w.onMouseEnter=y,w.onMouseLeave=g),p&&(w.onClick=e=>{d&&d(e),s.canCloseOnClick&&f()}),{playToast:g,pauseToast:y,isRunning:t,preventExitTransition:o,toastRef:a,eventHandlers:w}}(e),{closeButton:a,children:s,autoClose:l,onClick:c,type:u,hideProgressBar:f,closeToast:d,transition:p,position:h,className:m,style:g,bodyClassName:y,bodyStyle:v,progressClassName:b,progressStyle:w,updateId:x,role:E,progress:S,rtl:k,toastId:j,deleteToast:O,isIn:C,isLoading:N,iconOut:T,closeOnClick:P,theme:L}=e,R=ff("Toastify__toast","Toastify__toast-theme--".concat(L),"Toastify__toast--".concat(u),{"Toastify__toast--rtl":k},{"Toastify__toast--close-on-click":P}),A=hf(m)?m({rtl:k,position:h,type:u,defaultClassName:R}):ff(R,m),_=!!S||!l,I={closeToast:d,type:u,theme:L};let M=null;return!1===a||(M=hf(a)?a(I):(0,r.isValidElement)(a)?(0,r.cloneElement)(a,I):kf(I)),r.createElement(p,{isIn:C,done:O,position:h,preventExitTransition:n,nodeRef:o},r.createElement("div",{id:j,onClick:c,className:A,...i,style:g,ref:o},r.createElement("div",{...C&&{role:E},className:hf(y)?y({type:u}):ff("Toastify__toast-body",y),style:v},null!=T&&r.createElement("div",{className:ff("Toastify__toast-icon",{"Toastify--animate-icon Toastify__zoom-enter":!N})},T),r.createElement("div",null,s)),M,r.createElement(jf,{...x&&!_?{key:"pb-".concat(x)}:{},rtl:k,theme:L,delay:l,isRunning:t,isIn:C,closeToast:d,hide:f,type:u,style:w,className:b,controlledProgress:_,progress:S||0})))},Cf=function(e,t){return void 0===t&&(t=!1),{enter:"Toastify--animate Toastify__".concat(e,"-enter"),exit:"Toastify--animate Toastify__".concat(e,"-exit"),appendPosition:t}},Nf=yf(Cf("bounce",!0)),Tf=(yf(Cf("slide",!0)),yf(Cf("zoom")),yf(Cf("flip")),(0,r.forwardRef)(((e,t)=>{const{getToastToRender:n,containerRef:o,isToastActive:i}=function(e){const[,t]=(0,r.useReducer)((e=>e+1),0),[n,o]=(0,r.useState)([]),i=(0,r.useRef)(null),a=(0,r.useRef)(new Map).current,s=e=>-1!==n.indexOf(e),l=(0,r.useRef)({toastKey:1,displayedToast:0,count:0,queue:[],props:e,containerId:null,isToastActive:s,getToast:e=>a.get(e)}).current;function c(e){let{containerId:t}=e;const{limit:n}=l.props;!n||t&&l.containerId!==t||(l.count-=l.queue.length,l.queue=[])}function u(e){o((t=>null==e?[]:t.filter((t=>t!==e))))}function f(){const{toastContent:e,toastProps:t,staleId:n}=l.queue.shift();p(e,t,n)}function d(e,n){let{delay:o,staleId:s,...c}=n;if(!gf(e)||function(e){return!i.current||l.props.enableMultiContainer&&e.containerId!==l.props.containerId||a.has(e.toastId)&&null==e.updateId}(c))return;const{toastId:d,updateId:h,data:m}=c,{props:g}=l,y=()=>u(d),v=null==h;v&&l.count++;const b={...g,style:g.toastStyle,key:l.toastKey++,...Object.fromEntries(Object.entries(c).filter((e=>{let[t,n]=e;return null!=n}))),toastId:d,updateId:h,data:m,closeToast:y,isIn:!1,className:mf(c.className||g.toastClassName),bodyClassName:mf(c.bodyClassName||g.bodyClassName),progressClassName:mf(c.progressClassName||g.progressClassName),autoClose:!c.isLoading&&(w=c.autoClose,x=g.autoClose,!1===w||df(w)&&w>0?w:x),deleteToast(){const e=vf(a.get(d),"removed");a.delete(d),bf.emit(4,e);const n=l.queue.length;if(l.count=null==d?l.count-l.displayedToast:l.count-1,l.count<0&&(l.count=0),n>0){const e=null==d?l.props.limit:1;if(1===n||1===e)l.displayedToast++,f();else{const t=e>n?n:e;l.displayedToast=t;for(let e=0;e<t;e++)f()}}else t()}};var w,x;b.iconOut=function(e){let{theme:t,type:n,isLoading:o,icon:i}=e,a=null;const s={theme:t,type:n};return!1===i||(hf(i)?a=i(s):(0,r.isValidElement)(i)?a=(0,r.cloneElement)(i,s):pf(i)||df(i)?a=i:o?a=xf.spinner():(e=>e in xf)(n)&&(a=xf[n](s))),a}(b),hf(c.onOpen)&&(b.onOpen=c.onOpen),hf(c.onClose)&&(b.onClose=c.onClose),b.closeButton=g.closeButton,!1===c.closeButton||gf(c.closeButton)?b.closeButton=c.closeButton:!0===c.closeButton&&(b.closeButton=!gf(g.closeButton)||g.closeButton);let E=e;(0,r.isValidElement)(e)&&!pf(e.type)?E=(0,r.cloneElement)(e,{closeToast:y,toastProps:b,data:m}):hf(e)&&(E=e({closeToast:y,toastProps:b,data:m})),g.limit&&g.limit>0&&l.count>g.limit&&v?l.queue.push({toastContent:E,toastProps:b,staleId:s}):df(o)?setTimeout((()=>{p(E,b,s)}),o):p(E,b,s)}function p(e,t,n){const{toastId:r}=t;n&&a.delete(n);const i={content:e,props:t};a.set(r,i),o((e=>[...e,r].filter((e=>e!==n)))),bf.emit(4,vf(i,null==i.props.updateId?"added":"updated"))}return(0,r.useEffect)((()=>(l.containerId=e.containerId,bf.cancelEmit(3).on(0,d).on(1,(e=>i.current&&u(e))).on(5,c).emit(2,l),()=>{a.clear(),bf.emit(3,l)})),[]),(0,r.useEffect)((()=>{l.props=e,l.isToastActive=s,l.displayedToast=n.length})),{getToastToRender:function(t){const n=new Map,r=Array.from(a.values());return e.newestOnTop&&r.reverse(),r.forEach((e=>{const{position:t}=e.props;n.has(t)||n.set(t,[]),n.get(t).push(e)})),Array.from(n,(e=>t(e[0],e[1])))},containerRef:i,isToastActive:s}}(e),{className:a,style:s,rtl:l,containerId:c}=e;function u(e){const t=ff("Toastify__toast-container","Toastify__toast-container--".concat(e),{"Toastify__toast-container--rtl":l});return hf(a)?a({position:e,rtl:l,defaultClassName:t}):ff(t,mf(a))}return(0,r.useEffect)((()=>{t&&(t.current=o.current)}),[]),r.createElement("div",{ref:o,className:"Toastify",id:c},n(((e,t)=>{const n=t.length?{...s}:{...s,pointerEvents:"none"};return r.createElement("div",{className:u(e),style:n,key:"container-".concat(e)},t.map(((e,n)=>{let{content:o,props:a}=e;return r.createElement(Of,{...a,isIn:i(a.toastId),style:{...a.style,"--nth":n+1,"--len":t.length},key:"toast-".concat(a.key)},o)})))})))})));Tf.displayName="ToastContainer",Tf.defaultProps={position:"top-right",transition:Nf,autoClose:5e3,closeButton:kf,pauseOnHover:!0,pauseOnFocusLoss:!0,closeOnClick:!0,draggable:!0,draggablePercent:80,draggableDirection:"x",role:"alert",theme:"light"};let Pf,Lf=new Map,Rf=[],Af=1;function _f(){return""+Af++}function If(e){return e&&(pf(e.toastId)||df(e.toastId))?e.toastId:_f()}function Mf(e,t){return Lf.size>0?bf.emit(0,e,t):Rf.push({content:e,options:t}),t.toastId}function Df(e,t){return{...t,type:t&&t.type||e,toastId:If(t)}}function Ff(e){return(t,n)=>Mf(t,Df(e,n))}function Bf(e,t){return Mf(e,Df("default",t))}Bf.loading=(e,t)=>Mf(e,Df("default",{isLoading:!0,autoClose:!1,closeOnClick:!1,closeButton:!1,draggable:!1,...t})),Bf.promise=function(e,t,n){let r,{pending:o,error:i,success:a}=t;o&&(r=pf(o)?Bf.loading(o,n):Bf.loading(o.render,{...n,...o}));const s={isLoading:null,autoClose:null,closeOnClick:null,closeButton:null,draggable:null},l=(e,t,o)=>{if(null==t)return void Bf.dismiss(r);const i={type:e,...s,...n,data:o},a=pf(t)?{render:t}:t;return r?Bf.update(r,{...i,...a}):Bf(a.render,{...i,...a}),o},c=hf(e)?e():e;return c.then((e=>l("success",a,e))).catch((e=>l("error",i,e))),c},Bf.success=Ff("success"),Bf.info=Ff("info"),Bf.error=Ff("error"),Bf.warning=Ff("warning"),Bf.warn=Bf.warning,Bf.dark=(e,t)=>Mf(e,Df("default",{theme:"dark",...t})),Bf.dismiss=e=>{Lf.size>0?bf.emit(1,e):Rf=Rf.filter((t=>null!=e&&t.options.toastId!==e))},Bf.clearWaitingQueue=function(e){return void 0===e&&(e={}),bf.emit(5,e)},Bf.isActive=e=>{let t=!1;return Lf.forEach((n=>{n.isToastActive&&n.isToastActive(e)&&(t=!0)})),t},Bf.update=function(e,t){void 0===t&&(t={}),setTimeout((()=>{const n=function(e,t){let{containerId:n}=t;const r=Lf.get(n||Pf);return r&&r.getToast(e)}(e,t);if(n){const{props:r,content:o}=n,i={delay:100,...r,...t,toastId:t.toastId||e,updateId:_f()};i.toastId!==e&&(i.staleId=e);const a=i.render||o;delete i.render,Mf(a,i)}}),0)},Bf.done=e=>{Bf.update(e,{progress:1})},Bf.onChange=e=>(bf.on(4,e),()=>{bf.off(4,e)}),Bf.POSITION={TOP_LEFT:"top-left",TOP_RIGHT:"top-right",TOP_CENTER:"top-center",BOTTOM_LEFT:"bottom-left",BOTTOM_RIGHT:"bottom-right",BOTTOM_CENTER:"bottom-center"},Bf.TYPE={INFO:"info",SUCCESS:"success",WARNING:"warning",ERROR:"error",DEFAULT:"default"},bf.on(2,(e=>{Pf=e.containerId||e,Lf.set(Pf,e),Rf.forEach((e=>{bf.emit(0,e.content,e.options)})),Rf=[]})).on(3,(e=>{Lf.delete(e.containerId||e),0===Lf.size&&bf.off(0).off(1).off(5)}));const zf=r.forwardRef(((e,t)=>{let{bsPrefix:n,className:r,as:o="div",...i}=e;const a=ri(n,"row"),s=oi(),l=ii(),c="".concat(a,"-cols"),u=[];return s.forEach((e=>{const t=i[e];let n;delete i[e],null!=t&&"object"===typeof t?({cols:n}=t):n=t;const r=e!==l?"-".concat(e):"";null!=n&&u.push("".concat(c).concat(r,"-").concat(n))})),(0,At.jsx)(o,{ref:t,...i,className:Xo()(r,a,...u)})}));zf.displayName="Row";const Uf=zf;const Hf=r.forwardRef(((e,t)=>{const[{className:n,...r},{as:o="div",bsPrefix:i,spans:a}]=function(e){let{as:t,bsPrefix:n,className:r,...o}=e;n=ri(n,"col");const i=oi(),a=ii(),s=[],l=[];return i.forEach((e=>{const t=o[e];let r,i,c;delete o[e],"object"===typeof t&&null!=t?({span:r,offset:i,order:c}=t):r=t;const u=e!==a?"-".concat(e):"";r&&s.push(!0===r?"".concat(n).concat(u):"".concat(n).concat(u,"-").concat(r)),null!=c&&l.push("order".concat(u,"-").concat(c)),null!=i&&l.push("offset".concat(u,"-").concat(i))})),[{...o,className:Xo()(r,...s,...l)},{as:t,bsPrefix:n,spans:s}]}(e);return(0,At.jsx)(o,{...r,ref:t,className:Xo()(n,!a.length&&i)})}));Hf.displayName="Col";const Wf=Hf;function Vf(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{l(r.next(e))}catch(OE){i(OE)}}function s(e){try{l(r.throw(e))}catch(OE){i(OE)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((r=r.apply(e,t||[])).next())}))}function qf(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"===typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(s){return function(l){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,s[0]&&(a=0)),a;)try{if(n=1,r&&(o=2&s[0]?r.return:s[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,s[1])).done)return o;switch(r=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,r=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!(o=(o=a.trys).length>0&&o[o.length-1])&&(6===s[0]||2===s[0])){a=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){a.label=s[1];break}if(6===s[0]&&a.label<o[1]){a.label=o[1],o=s;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(s);break}o[2]&&a.ops.pop(),a.trys.pop();continue}s=t.call(e,a)}catch(OE){s=[6,OE],r=0}finally{n=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,l])}}}Object.create;function $f(e,t){var n="function"===typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(s){o={error:s}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}function Kf(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}Object.create;"function"===typeof SuppressedError&&SuppressedError;var Gf=new Map([["aac","audio/aac"],["abw","application/x-abiword"],["arc","application/x-freearc"],["avif","image/avif"],["avi","video/x-msvideo"],["azw","application/vnd.amazon.ebook"],["bin","application/octet-stream"],["bmp","image/bmp"],["bz","application/x-bzip"],["bz2","application/x-bzip2"],["cda","application/x-cdf"],["csh","application/x-csh"],["css","text/css"],["csv","text/csv"],["doc","application/msword"],["docx","application/vnd.openxmlformats-officedocument.wordprocessingml.document"],["eot","application/vnd.ms-fontobject"],["epub","application/epub+zip"],["gz","application/gzip"],["gif","image/gif"],["heic","image/heic"],["heif","image/heif"],["htm","text/html"],["html","text/html"],["ico","image/vnd.microsoft.icon"],["ics","text/calendar"],["jar","application/java-archive"],["jpeg","image/jpeg"],["jpg","image/jpeg"],["js","text/javascript"],["json","application/json"],["jsonld","application/ld+json"],["mid","audio/midi"],["midi","audio/midi"],["mjs","text/javascript"],["mp3","audio/mpeg"],["mp4","video/mp4"],["mpeg","video/mpeg"],["mpkg","application/vnd.apple.installer+xml"],["odp","application/vnd.oasis.opendocument.presentation"],["ods","application/vnd.oasis.opendocument.spreadsheet"],["odt","application/vnd.oasis.opendocument.text"],["oga","audio/ogg"],["ogv","video/ogg"],["ogx","application/ogg"],["opus","audio/opus"],["otf","font/otf"],["png","image/png"],["pdf","application/pdf"],["php","application/x-httpd-php"],["ppt","application/vnd.ms-powerpoint"],["pptx","application/vnd.openxmlformats-officedocument.presentationml.presentation"],["rar","application/vnd.rar"],["rtf","application/rtf"],["sh","application/x-sh"],["svg","image/svg+xml"],["swf","application/x-shockwave-flash"],["tar","application/x-tar"],["tif","image/tiff"],["tiff","image/tiff"],["ts","video/mp2t"],["ttf","font/ttf"],["txt","text/plain"],["vsd","application/vnd.visio"],["wav","audio/wav"],["weba","audio/webm"],["webm","video/webm"],["webp","image/webp"],["woff","font/woff"],["woff2","font/woff2"],["xhtml","application/xhtml+xml"],["xls","application/vnd.ms-excel"],["xlsx","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"],["xml","application/xml"],["xul","application/vnd.mozilla.xul+xml"],["zip","application/zip"],["7z","application/x-7z-compressed"],["mkv","video/x-matroska"],["mov","video/quicktime"],["msg","application/vnd.ms-outlook"]]);function Yf(e,t){var n=function(e){var t=e.name;if(t&&-1!==t.lastIndexOf(".")&&!e.type){var n=t.split(".").pop().toLowerCase(),r=Gf.get(n);r&&Object.defineProperty(e,"type",{value:r,writable:!1,configurable:!1,enumerable:!0})}return e}(e);if("string"!==typeof n.path){var r=e.webkitRelativePath;Object.defineProperty(n,"path",{value:"string"===typeof t?t:"string"===typeof r&&r.length>0?r:e.name,writable:!1,configurable:!1,enumerable:!0})}return n}var Qf=[".DS_Store","Thumbs.db"];function Xf(e){return"object"===typeof e&&null!==e}function Jf(e){return nd(e.target.files).map((function(e){return Yf(e)}))}function Zf(e){return Vf(this,void 0,void 0,(function(){return qf(this,(function(t){switch(t.label){case 0:return[4,Promise.all(e.map((function(e){return e.getFile()})))];case 1:return[2,t.sent().map((function(e){return Yf(e)}))]}}))}))}function ed(e,t){return Vf(this,void 0,void 0,(function(){var n;return qf(this,(function(r){switch(r.label){case 0:return e.items?(n=nd(e.items).filter((function(e){return"file"===e.kind})),"drop"!==t?[2,n]:[4,Promise.all(n.map(rd))]):[3,2];case 1:return[2,td(od(r.sent()))];case 2:return[2,td(nd(e.files).map((function(e){return Yf(e)})))]}}))}))}function td(e){return e.filter((function(e){return-1===Qf.indexOf(e.name)}))}function nd(e){if(null===e)return[];for(var t=[],n=0;n<e.length;n++){var r=e[n];t.push(r)}return t}function rd(e){if("function"!==typeof e.webkitGetAsEntry)return id(e);var t=e.webkitGetAsEntry();return t&&t.isDirectory?sd(t):id(e)}function od(e){return e.reduce((function(e,t){return Kf(Kf([],$f(e),!1),$f(Array.isArray(t)?od(t):[t]),!1)}),[])}function id(e){var t=e.getAsFile();if(!t)return Promise.reject("".concat(e," is not a File"));var n=Yf(t);return Promise.resolve(n)}function ad(e){return Vf(this,void 0,void 0,(function(){return qf(this,(function(t){return[2,e.isDirectory?sd(e):ld(e)]}))}))}function sd(e){var t=e.createReader();return new Promise((function(e,n){var r=[];!function o(){var i=this;t.readEntries((function(t){return Vf(i,void 0,void 0,(function(){var i,a,s;return qf(this,(function(l){switch(l.label){case 0:if(t.length)return[3,5];l.label=1;case 1:return l.trys.push([1,3,,4]),[4,Promise.all(r)];case 2:return i=l.sent(),e(i),[3,4];case 3:return a=l.sent(),n(a),[3,4];case 4:return[3,6];case 5:s=Promise.all(t.map(ad)),r.push(s),o(),l.label=6;case 6:return[2]}}))}))}),(function(e){n(e)}))}()}))}function ld(e){return Vf(this,void 0,void 0,(function(){return qf(this,(function(t){return[2,new Promise((function(t,n){e.file((function(n){var r=Yf(n,e.fullPath);t(r)}),(function(e){n(e)}))}))]}))}))}var cd=n(628);function ud(e){return function(e){if(Array.isArray(e))return gd(e)}(e)||function(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||md(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function fd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function dd(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?fd(Object(n),!0).forEach((function(t){pd(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):fd(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function pd(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function hd(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,o,i=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(l){s=!0,o=l}finally{try{a||null==n.return||n.return()}finally{if(s)throw o}}return i}(e,t)||md(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function md(e,t){if(e){if("string"===typeof e)return gd(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?gd(e,t):void 0}}function gd(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var yd="file-invalid-type",vd="file-too-large",bd="file-too-small",wd="too-many-files",xd=function(e){e=Array.isArray(e)&&1===e.length?e[0]:e;var t=Array.isArray(e)?"one of ".concat(e.join(", ")):e;return{code:yd,message:"File type must be ".concat(t)}},Ed=function(e){return{code:vd,message:"File is larger than ".concat(e," ").concat(1===e?"byte":"bytes")}},Sd=function(e){return{code:bd,message:"File is smaller than ".concat(e," ").concat(1===e?"byte":"bytes")}},kd={code:wd,message:"Too many files"};function jd(e,t){var n="application/x-moz-file"===e.type||(0,cd.A)(e,t);return[n,n?null:xd(t)]}function Od(e,t,n){if(Cd(e.size))if(Cd(t)&&Cd(n)){if(e.size>n)return[!1,Ed(n)];if(e.size<t)return[!1,Sd(t)]}else{if(Cd(t)&&e.size<t)return[!1,Sd(t)];if(Cd(n)&&e.size>n)return[!1,Ed(n)]}return[!0,null]}function Cd(e){return void 0!==e&&null!==e}function Nd(e){return"function"===typeof e.isPropagationStopped?e.isPropagationStopped():"undefined"!==typeof e.cancelBubble&&e.cancelBubble}function Td(e){return e.dataTransfer?Array.prototype.some.call(e.dataTransfer.types,(function(e){return"Files"===e||"application/x-moz-file"===e})):!!e.target&&!!e.target.files}function Pd(e){e.preventDefault()}function Ld(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return t.some((function(t){return!Nd(e)&&t&&t.apply(void 0,[e].concat(r)),Nd(e)}))}}function Rd(e){return"audio/*"===e||"video/*"===e||"image/*"===e||"text/*"===e||/\w+\/[-+.\w]+/g.test(e)}function Ad(e){return/^.*\.[\w]+$/.test(e)}var _d=["children"],Id=["open"],Md=["refKey","role","onKeyDown","onFocus","onBlur","onClick","onDragEnter","onDragOver","onDragLeave","onDrop"],Dd=["refKey","onChange","onClick"];function Fd(e){return function(e){if(Array.isArray(e))return Ud(e)}(e)||function(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||zd(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Bd(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,o,i=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(l){s=!0,o=l}finally{try{a||null==n.return||n.return()}finally{if(s)throw o}}return i}(e,t)||zd(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function zd(e,t){if(e){if("string"===typeof e)return Ud(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ud(e,t):void 0}}function Ud(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Hd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Wd(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Hd(Object(n),!0).forEach((function(t){Vd(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Hd(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Vd(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function qd(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var $d=(0,r.forwardRef)((function(e,t){var n=e.children,o=Yd(qd(e,_d)),i=o.open,a=qd(o,Id);return(0,r.useImperativeHandle)(t,(function(){return{open:i}}),[i]),r.createElement(r.Fragment,null,n(Wd(Wd({},a),{},{open:i})))}));$d.displayName="Dropzone";var Kd={disabled:!1,getFilesFromEvent:function(e){return Vf(this,void 0,void 0,(function(){return qf(this,(function(t){return Xf(e)&&Xf(e.dataTransfer)?[2,ed(e.dataTransfer,e.type)]:function(e){return Xf(e)&&Xf(e.target)}(e)?[2,Jf(e)]:Array.isArray(e)&&e.every((function(e){return"getFile"in e&&"function"===typeof e.getFile}))?[2,Zf(e)]:[2,[]]}))}))},maxSize:1/0,minSize:0,multiple:!0,maxFiles:0,preventDropOnDocument:!0,noClick:!1,noKeyboard:!1,noDrag:!1,noDragEventsBubbling:!1,validator:null,useFsAccessApi:!0,autoFocus:!1};$d.defaultProps=Kd,$d.propTypes={children:Te().func,accept:Te().objectOf(Te().arrayOf(Te().string)),multiple:Te().bool,preventDropOnDocument:Te().bool,noClick:Te().bool,noKeyboard:Te().bool,noDrag:Te().bool,noDragEventsBubbling:Te().bool,minSize:Te().number,maxSize:Te().number,maxFiles:Te().number,disabled:Te().bool,getFilesFromEvent:Te().func,onFileDialogCancel:Te().func,onFileDialogOpen:Te().func,useFsAccessApi:Te().bool,autoFocus:Te().bool,onDragEnter:Te().func,onDragLeave:Te().func,onDragOver:Te().func,onDrop:Te().func,onDropAccepted:Te().func,onDropRejected:Te().func,onError:Te().func,validator:Te().func};var Gd={isFocused:!1,isFileDialogActive:!1,isDragActive:!1,isDragAccept:!1,isDragReject:!1,acceptedFiles:[],fileRejections:[]};function Yd(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=Wd(Wd({},Kd),e),n=t.accept,o=t.disabled,i=t.getFilesFromEvent,a=t.maxSize,s=t.minSize,l=t.multiple,c=t.maxFiles,u=t.onDragEnter,f=t.onDragLeave,d=t.onDragOver,p=t.onDrop,h=t.onDropAccepted,m=t.onDropRejected,g=t.onFileDialogCancel,y=t.onFileDialogOpen,v=t.useFsAccessApi,b=t.autoFocus,w=t.preventDropOnDocument,x=t.noClick,E=t.noKeyboard,S=t.noDrag,k=t.noDragEventsBubbling,j=t.onError,O=t.validator,C=(0,r.useMemo)((function(){return function(e){if(Cd(e))return Object.entries(e).reduce((function(e,t){var n=hd(t,2),r=n[0],o=n[1];return[].concat(ud(e),[r],ud(o))}),[]).filter((function(e){return Rd(e)||Ad(e)})).join(",")}(n)}),[n]),N=(0,r.useMemo)((function(){return function(e){return Cd(e)?[{description:"Files",accept:Object.entries(e).filter((function(e){var t=hd(e,2),n=t[0],r=t[1],o=!0;return Rd(n)||(console.warn('Skipped "'.concat(n,'" because it is not a valid MIME type. Check https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types/Common_types for a list of valid MIME types.')),o=!1),Array.isArray(r)&&r.every(Ad)||(console.warn('Skipped "'.concat(n,'" because an invalid file extension was provided.')),o=!1),o})).reduce((function(e,t){var n=hd(t,2),r=n[0],o=n[1];return dd(dd({},e),{},pd({},r,o))}),{})}]:e}(n)}),[n]),T=(0,r.useMemo)((function(){return"function"===typeof y?y:Xd}),[y]),P=(0,r.useMemo)((function(){return"function"===typeof g?g:Xd}),[g]),L=(0,r.useRef)(null),R=(0,r.useRef)(null),A=Bd((0,r.useReducer)(Qd,Gd),2),_=A[0],I=A[1],M=_.isFocused,D=_.isFileDialogActive,F=(0,r.useRef)("undefined"!==typeof window&&window.isSecureContext&&v&&"showOpenFilePicker"in window),B=function(){!F.current&&D&&setTimeout((function(){R.current&&(R.current.files.length||(I({type:"closeDialog"}),P()))}),300)};(0,r.useEffect)((function(){return window.addEventListener("focus",B,!1),function(){window.removeEventListener("focus",B,!1)}}),[R,D,P,F]);var z=(0,r.useRef)([]),U=function(e){L.current&&L.current.contains(e.target)||(e.preventDefault(),z.current=[])};(0,r.useEffect)((function(){return w&&(document.addEventListener("dragover",Pd,!1),document.addEventListener("drop",U,!1)),function(){w&&(document.removeEventListener("dragover",Pd),document.removeEventListener("drop",U))}}),[L,w]),(0,r.useEffect)((function(){return!o&&b&&L.current&&L.current.focus(),function(){}}),[L,b,o]);var H=(0,r.useCallback)((function(e){j?j(e):console.error(e)}),[j]),W=(0,r.useCallback)((function(e){e.preventDefault(),e.persist(),ne(e),z.current=[].concat(Fd(z.current),[e.target]),Td(e)&&Promise.resolve(i(e)).then((function(t){if(!Nd(e)||k){var n=t.length,r=n>0&&function(e){var t=e.files,n=e.accept,r=e.minSize,o=e.maxSize,i=e.multiple,a=e.maxFiles,s=e.validator;return!(!i&&t.length>1||i&&a>=1&&t.length>a)&&t.every((function(e){var t=hd(jd(e,n),1)[0],i=hd(Od(e,r,o),1)[0],a=s?s(e):null;return t&&i&&!a}))}({files:t,accept:C,minSize:s,maxSize:a,multiple:l,maxFiles:c,validator:O});I({isDragAccept:r,isDragReject:n>0&&!r,isDragActive:!0,type:"setDraggedFiles"}),u&&u(e)}})).catch((function(e){return H(e)}))}),[i,u,H,k,C,s,a,l,c,O]),V=(0,r.useCallback)((function(e){e.preventDefault(),e.persist(),ne(e);var t=Td(e);if(t&&e.dataTransfer)try{e.dataTransfer.dropEffect="copy"}catch(n){}return t&&d&&d(e),!1}),[d,k]),q=(0,r.useCallback)((function(e){e.preventDefault(),e.persist(),ne(e);var t=z.current.filter((function(e){return L.current&&L.current.contains(e)})),n=t.indexOf(e.target);-1!==n&&t.splice(n,1),z.current=t,t.length>0||(I({type:"setDraggedFiles",isDragActive:!1,isDragAccept:!1,isDragReject:!1}),Td(e)&&f&&f(e))}),[L,f,k]),$=(0,r.useCallback)((function(e,t){var n=[],r=[];e.forEach((function(e){var t=Bd(jd(e,C),2),o=t[0],i=t[1],l=Bd(Od(e,s,a),2),c=l[0],u=l[1],f=O?O(e):null;if(o&&c&&!f)n.push(e);else{var d=[i,u];f&&(d=d.concat(f)),r.push({file:e,errors:d.filter((function(e){return e}))})}})),(!l&&n.length>1||l&&c>=1&&n.length>c)&&(n.forEach((function(e){r.push({file:e,errors:[kd]})})),n.splice(0)),I({acceptedFiles:n,fileRejections:r,type:"setFiles"}),p&&p(n,r,t),r.length>0&&m&&m(r,t),n.length>0&&h&&h(n,t)}),[I,l,C,s,a,c,p,h,m,O]),K=(0,r.useCallback)((function(e){e.preventDefault(),e.persist(),ne(e),z.current=[],Td(e)&&Promise.resolve(i(e)).then((function(t){Nd(e)&&!k||$(t,e)})).catch((function(e){return H(e)})),I({type:"reset"})}),[i,$,H,k]),G=(0,r.useCallback)((function(){if(F.current){I({type:"openDialog"}),T();var e={multiple:l,types:N};window.showOpenFilePicker(e).then((function(e){return i(e)})).then((function(e){$(e,null),I({type:"closeDialog"})})).catch((function(e){!function(e){return e instanceof DOMException&&("AbortError"===e.name||e.code===e.ABORT_ERR)}(e)?!function(e){return e instanceof DOMException&&("SecurityError"===e.name||e.code===e.SECURITY_ERR)}(e)?H(e):(F.current=!1,R.current?(R.current.value=null,R.current.click()):H(new Error("Cannot open the file picker because the https://developer.mozilla.org/en-US/docs/Web/API/File_System_Access_API is not supported and no <input> was provided."))):(P(e),I({type:"closeDialog"}))}))}else R.current&&(I({type:"openDialog"}),T(),R.current.value=null,R.current.click())}),[I,T,P,v,$,H,N,l]),Y=(0,r.useCallback)((function(e){L.current&&L.current.isEqualNode(e.target)&&(" "!==e.key&&"Enter"!==e.key&&32!==e.keyCode&&13!==e.keyCode||(e.preventDefault(),G()))}),[L,G]),Q=(0,r.useCallback)((function(){I({type:"focus"})}),[]),X=(0,r.useCallback)((function(){I({type:"blur"})}),[]),J=(0,r.useCallback)((function(){x||(!function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window.navigator.userAgent;return function(e){return-1!==e.indexOf("MSIE")||-1!==e.indexOf("Trident/")}(e)||function(e){return-1!==e.indexOf("Edge/")}(e)}()?G():setTimeout(G,0))}),[x,G]),Z=function(e){return o?null:e},ee=function(e){return E?null:Z(e)},te=function(e){return S?null:Z(e)},ne=function(e){k&&e.stopPropagation()},re=(0,r.useMemo)((function(){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.refKey,n=void 0===t?"ref":t,r=e.role,i=e.onKeyDown,a=e.onFocus,s=e.onBlur,l=e.onClick,c=e.onDragEnter,u=e.onDragOver,f=e.onDragLeave,d=e.onDrop,p=qd(e,Md);return Wd(Wd(Vd({onKeyDown:ee(Ld(i,Y)),onFocus:ee(Ld(a,Q)),onBlur:ee(Ld(s,X)),onClick:Z(Ld(l,J)),onDragEnter:te(Ld(c,W)),onDragOver:te(Ld(u,V)),onDragLeave:te(Ld(f,q)),onDrop:te(Ld(d,K)),role:"string"===typeof r&&""!==r?r:"presentation"},n,L),o||E?{}:{tabIndex:0}),p)}}),[L,Y,Q,X,J,W,V,q,K,E,S,o]),oe=(0,r.useCallback)((function(e){e.stopPropagation()}),[]),ie=(0,r.useMemo)((function(){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.refKey,n=void 0===t?"ref":t,r=e.onChange,o=e.onClick,i=qd(e,Dd);return Wd(Wd({},Vd({accept:C,multiple:l,type:"file",style:{display:"none"},onChange:Z(Ld(r,K)),onClick:Z(Ld(o,oe)),tabIndex:-1},n,R)),i)}}),[R,n,l,K,o]);return Wd(Wd({},_),{},{isFocused:M&&!o,getRootProps:re,getInputProps:ie,rootRef:L,inputRef:R,open:Z(G)})}function Qd(e,t){switch(t.type){case"focus":return Wd(Wd({},e),{},{isFocused:!0});case"blur":return Wd(Wd({},e),{},{isFocused:!1});case"openDialog":return Wd(Wd({},Gd),{},{isFileDialogActive:!0});case"closeDialog":return Wd(Wd({},e),{},{isFileDialogActive:!1});case"setDraggedFiles":return Wd(Wd({},e),{},{isDragActive:t.isDragActive,isDragAccept:t.isDragAccept,isDragReject:t.isDragReject});case"setFiles":return Wd(Wd({},e),{},{acceptedFiles:t.acceptedFiles,fileRejections:t.fileRejections});case"reset":return Wd({},Gd);default:return e}}function Xd(){}const Jd=e=>Bf.success(e,{position:"top-right",autoClose:3e3,hideProgressBar:!1,closeOnClick:!0,draggable:!0,progress:void 0,pauseOnHover:!1,theme:"colored",style:{background:"linear-gradient(90deg, #10b981 0%, #3ADE99 100%)",fontSize:"13px",fontWeight:"bold"}}),Zd=e=>Bf.error(e,{position:"top-right",autoClose:3e3,hideProgressBar:!1,closeOnClick:!0,draggable:!0,progress:void 0,pauseOnHover:!1,theme:"colored",style:{background:"linear-gradient(90deg, #93291E 0%, #ff5724 100%)",fontSize:"13px",fontWeight:"bold"}});function ep(e,t){return function(){return e.apply(t,arguments)}}const{toString:tp}=Object.prototype,{getPrototypeOf:np}=Object,rp=(op=Object.create(null),e=>{const t=tp.call(e);return op[t]||(op[t]=t.slice(8,-1).toLowerCase())});var op;const ip=e=>(e=e.toLowerCase(),t=>rp(t)===e),ap=e=>t=>typeof t===e,{isArray:sp}=Array,lp=ap("undefined");const cp=ip("ArrayBuffer");const up=ap("string"),fp=ap("function"),dp=ap("number"),pp=e=>null!==e&&"object"===typeof e,hp=e=>{if("object"!==rp(e))return!1;const t=np(e);return(null===t||t===Object.prototype||null===Object.getPrototypeOf(t))&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},mp=ip("Date"),gp=ip("File"),yp=ip("Blob"),vp=ip("FileList"),bp=ip("URLSearchParams");function wp(e,t){let n,r,{allOwnKeys:o=!1}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(null!==e&&"undefined"!==typeof e)if("object"!==typeof e&&(e=[e]),sp(e))for(n=0,r=e.length;n<r;n++)t.call(null,e[n],n,e);else{const r=o?Object.getOwnPropertyNames(e):Object.keys(e),i=r.length;let a;for(n=0;n<i;n++)a=r[n],t.call(null,e[a],a,e)}}function xp(e,t){t=t.toLowerCase();const n=Object.keys(e);let r,o=n.length;for(;o-- >0;)if(r=n[o],t===r.toLowerCase())return r;return null}const Ep="undefined"!==typeof globalThis?globalThis:"undefined"!==typeof self?self:"undefined"!==typeof window?window:global,Sp=e=>!lp(e)&&e!==Ep;const kp=(jp="undefined"!==typeof Uint8Array&&np(Uint8Array),e=>jp&&e instanceof jp);var jp;const Op=ip("HTMLFormElement"),Cp=(e=>{let{hasOwnProperty:t}=e;return(e,n)=>t.call(e,n)})(Object.prototype),Np=ip("RegExp"),Tp=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};wp(n,((n,o)=>{let i;!1!==(i=t(n,o,e))&&(r[o]=i||n)})),Object.defineProperties(e,r)},Pp="abcdefghijklmnopqrstuvwxyz",Lp="0123456789",Rp={DIGIT:Lp,ALPHA:Pp,ALPHA_DIGIT:Pp+Pp.toUpperCase()+Lp};const Ap=ip("AsyncFunction"),_p={isArray:sp,isArrayBuffer:cp,isBuffer:function(e){return null!==e&&!lp(e)&&null!==e.constructor&&!lp(e.constructor)&&fp(e.constructor.isBuffer)&&e.constructor.isBuffer(e)},isFormData:e=>{let t;return e&&("function"===typeof FormData&&e instanceof FormData||fp(e.append)&&("formdata"===(t=rp(e))||"object"===t&&fp(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){let t;return t="undefined"!==typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&cp(e.buffer),t},isString:up,isNumber:dp,isBoolean:e=>!0===e||!1===e,isObject:pp,isPlainObject:hp,isUndefined:lp,isDate:mp,isFile:gp,isBlob:yp,isRegExp:Np,isFunction:fp,isStream:e=>pp(e)&&fp(e.pipe),isURLSearchParams:bp,isTypedArray:kp,isFileList:vp,forEach:wp,merge:function e(){const{caseless:t}=Sp(this)&&this||{},n={},r=(r,o)=>{const i=t&&xp(n,o)||o;hp(n[i])&&hp(r)?n[i]=e(n[i],r):hp(r)?n[i]=e({},r):sp(r)?n[i]=r.slice():n[i]=r};for(let o=0,i=arguments.length;o<i;o++)arguments[o]&&wp(arguments[o],r);return n},extend:function(e,t,n){let{allOwnKeys:r}=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return wp(t,((t,r)=>{n&&fp(t)?e[r]=ep(t,n):e[r]=t}),{allOwnKeys:r}),e},trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},toFlatObject:(e,t,n,r)=>{let o,i,a;const s={};if(t=t||{},null==e)return t;do{for(o=Object.getOwnPropertyNames(e),i=o.length;i-- >0;)a=o[i],r&&!r(a,e,t)||s[a]||(t[a]=e[a],s[a]=!0);e=!1!==n&&np(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:rp,kindOfTest:ip,endsWith:(e,t,n)=>{e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return-1!==r&&r===n},toArray:e=>{if(!e)return null;if(sp(e))return e;let t=e.length;if(!dp(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},forEachEntry:(e,t)=>{const n=(e&&e[Symbol.iterator]).call(e);let r;for(;(r=n.next())&&!r.done;){const n=r.value;t.call(e,n[0],n[1])}},matchAll:(e,t)=>{let n;const r=[];for(;null!==(n=e.exec(t));)r.push(n);return r},isHTMLForm:Op,hasOwnProperty:Cp,hasOwnProp:Cp,reduceDescriptors:Tp,freezeMethods:e=>{Tp(e,((t,n)=>{if(fp(e)&&-1!==["arguments","caller","callee"].indexOf(n))return!1;const r=e[n];fp(r)&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")}))}))},toObjectSet:(e,t)=>{const n={},r=e=>{e.forEach((e=>{n[e]=!0}))};return sp(e)?r(e):r(String(e).split(t)),n},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,(function(e,t,n){return t.toUpperCase()+n})),noop:()=>{},toFiniteNumber:(e,t)=>(e=+e,Number.isFinite(e)?e:t),findKey:xp,global:Ep,isContextDefined:Sp,ALPHABET:Rp,generateString:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:16,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Rp.ALPHA_DIGIT,n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n},isSpecCompliantForm:function(e){return!!(e&&fp(e.append)&&"FormData"===e[Symbol.toStringTag]&&e[Symbol.iterator])},toJSONObject:e=>{const t=new Array(10),n=(e,r)=>{if(pp(e)){if(t.indexOf(e)>=0)return;if(!("toJSON"in e)){t[r]=e;const o=sp(e)?[]:{};return wp(e,((e,t)=>{const i=n(e,r+1);!lp(i)&&(o[t]=i)})),t[r]=void 0,o}}return e};return n(e,0)},isAsyncFn:Ap,isThenable:e=>e&&(pp(e)||fp(e))&&fp(e.then)&&fp(e.catch)};function Ip(e,t,n,r,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),o&&(this.response=o)}_p.inherits(Ip,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:_p.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const Mp=Ip.prototype,Dp={};["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","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach((e=>{Dp[e]={value:e}})),Object.defineProperties(Ip,Dp),Object.defineProperty(Mp,"isAxiosError",{value:!0}),Ip.from=(e,t,n,r,o,i)=>{const a=Object.create(Mp);return _p.toFlatObject(e,a,(function(e){return e!==Error.prototype}),(e=>"isAxiosError"!==e)),Ip.call(a,e.message,t,n,r,o),a.cause=e,a.name=e.name,i&&Object.assign(a,i),a};const Fp=Ip;function Bp(e){return _p.isPlainObject(e)||_p.isArray(e)}function zp(e){return _p.endsWith(e,"[]")?e.slice(0,-2):e}function Up(e,t,n){return e?e.concat(t).map((function(e,t){return e=zp(e),!n&&t?"["+e+"]":e})).join(n?".":""):t}const Hp=_p.toFlatObject(_p,{},null,(function(e){return/^is[A-Z]/.test(e)}));const Wp=function(e,t,n){if(!_p.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;const r=(n=_p.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(e,t){return!_p.isUndefined(t[e])}))).metaTokens,o=n.visitor||c,i=n.dots,a=n.indexes,s=(n.Blob||"undefined"!==typeof Blob&&Blob)&&_p.isSpecCompliantForm(t);if(!_p.isFunction(o))throw new TypeError("visitor must be a function");function l(e){if(null===e)return"";if(_p.isDate(e))return e.toISOString();if(!s&&_p.isBlob(e))throw new Fp("Blob is not supported. Use a Buffer instead.");return _p.isArrayBuffer(e)||_p.isTypedArray(e)?s&&"function"===typeof Blob?new Blob([e]):Buffer.from(e):e}function c(e,n,o){let s=e;if(e&&!o&&"object"===typeof e)if(_p.endsWith(n,"{}"))n=r?n:n.slice(0,-2),e=JSON.stringify(e);else if(_p.isArray(e)&&function(e){return _p.isArray(e)&&!e.some(Bp)}(e)||(_p.isFileList(e)||_p.endsWith(n,"[]"))&&(s=_p.toArray(e)))return n=zp(n),s.forEach((function(e,r){!_p.isUndefined(e)&&null!==e&&t.append(!0===a?Up([n],r,i):null===a?n:n+"[]",l(e))})),!1;return!!Bp(e)||(t.append(Up(o,n,i),l(e)),!1)}const u=[],f=Object.assign(Hp,{defaultVisitor:c,convertValue:l,isVisitable:Bp});if(!_p.isObject(e))throw new TypeError("data must be an object");return function e(n,r){if(!_p.isUndefined(n)){if(-1!==u.indexOf(n))throw Error("Circular reference detected in "+r.join("."));u.push(n),_p.forEach(n,(function(n,i){!0===(!(_p.isUndefined(n)||null===n)&&o.call(t,n,_p.isString(i)?i.trim():i,r,f))&&e(n,r?r.concat(i):[i])})),u.pop()}}(e),t};function Vp(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,(function(e){return t[e]}))}function qp(e,t){this._pairs=[],e&&Wp(e,this,t)}const $p=qp.prototype;$p.append=function(e,t){this._pairs.push([e,t])},$p.toString=function(e){const t=e?function(t){return e.call(this,t,Vp)}:Vp;return this._pairs.map((function(e){return t(e[0])+"="+t(e[1])}),"").join("&")};const Kp=qp;function Gp(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Yp(e,t,n){if(!t)return e;const r=n&&n.encode||Gp,o=n&&n.serialize;let i;if(i=o?o(t,n):_p.isURLSearchParams(t)?t.toString():new Kp(t,n).toString(r),i){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+i}return e}const Qp=class{constructor(){this.handlers=[]}use(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){_p.forEach(this.handlers,(function(t){null!==t&&e(t)}))}},Xp={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Jp={isBrowser:!0,classes:{URLSearchParams:"undefined"!==typeof URLSearchParams?URLSearchParams:Kp,FormData:"undefined"!==typeof FormData?FormData:null,Blob:"undefined"!==typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]},Zp="undefined"!==typeof window&&"undefined"!==typeof document,eh=(th="undefined"!==typeof navigator&&navigator.product,Zp&&["ReactNative","NativeScript","NS"].indexOf(th)<0);var th;const nh="undefined"!==typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"===typeof self.importScripts,rh={...e,...Jp};const oh=function(e){function t(e,n,r,o){let i=e[o++];if("__proto__"===i)return!0;const a=Number.isFinite(+i),s=o>=e.length;if(i=!i&&_p.isArray(r)?r.length:i,s)return _p.hasOwnProp(r,i)?r[i]=[r[i],n]:r[i]=n,!a;r[i]&&_p.isObject(r[i])||(r[i]=[]);return t(e,n,r[i],o)&&_p.isArray(r[i])&&(r[i]=function(e){const t={},n=Object.keys(e);let r;const o=n.length;let i;for(r=0;r<o;r++)i=n[r],t[i]=e[i];return t}(r[i])),!a}if(_p.isFormData(e)&&_p.isFunction(e.entries)){const n={};return _p.forEachEntry(e,((e,r)=>{t(function(e){return _p.matchAll(/\w+|\[(\w*)]/g,e).map((e=>"[]"===e[0]?"":e[1]||e[0]))}(e),r,n,0)})),n}return null};const ih={transitional:Xp,adapter:["xhr","http"],transformRequest:[function(e,t){const n=t.getContentType()||"",r=n.indexOf("application/json")>-1,o=_p.isObject(e);o&&_p.isHTMLForm(e)&&(e=new FormData(e));if(_p.isFormData(e))return r?JSON.stringify(oh(e)):e;if(_p.isArrayBuffer(e)||_p.isBuffer(e)||_p.isStream(e)||_p.isFile(e)||_p.isBlob(e))return e;if(_p.isArrayBufferView(e))return e.buffer;if(_p.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let i;if(o){if(n.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return Wp(e,new rh.classes.URLSearchParams,Object.assign({visitor:function(e,t,n,r){return rh.isNode&&_p.isBuffer(e)?(this.append(t,e.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)}},t))}(e,this.formSerializer).toString();if((i=_p.isFileList(e))||n.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return Wp(i?{"files[]":e}:e,t&&new t,this.formSerializer)}}return o||r?(t.setContentType("application/json",!1),function(e,t,n){if(_p.isString(e))try{return(t||JSON.parse)(e),_p.trim(e)}catch(OE){if("SyntaxError"!==OE.name)throw OE}return(n||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=this.transitional||ih.transitional,n=t&&t.forcedJSONParsing,r="json"===this.responseType;if(e&&_p.isString(e)&&(n&&!this.responseType||r)){const n=!(t&&t.silentJSONParsing)&&r;try{return JSON.parse(e)}catch(OE){if(n){if("SyntaxError"===OE.name)throw Fp.from(OE,Fp.ERR_BAD_RESPONSE,this,null,this.response);throw OE}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:rh.classes.FormData,Blob:rh.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};_p.forEach(["delete","get","head","post","put","patch"],(e=>{ih.headers[e]={}}));const ah=ih,sh=_p.toObjectSet(["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"]),lh=Symbol("internals");function ch(e){return e&&String(e).trim().toLowerCase()}function uh(e){return!1===e||null==e?e:_p.isArray(e)?e.map(uh):String(e)}function fh(e,t,n,r,o){return _p.isFunction(r)?r.call(this,t,n):(o&&(t=n),_p.isString(t)?_p.isString(r)?-1!==t.indexOf(r):_p.isRegExp(r)?r.test(t):void 0:void 0)}class dh{constructor(e){e&&this.set(e)}set(e,t,n){const r=this;function o(e,t,n){const o=ch(t);if(!o)throw new Error("header name must be a non-empty string");const i=_p.findKey(r,o);(!i||void 0===r[i]||!0===n||void 0===n&&!1!==r[i])&&(r[i||t]=uh(e))}const i=(e,t)=>_p.forEach(e,((e,n)=>o(e,n,t)));return _p.isPlainObject(e)||e instanceof this.constructor?i(e,t):_p.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim())?i((e=>{const t={};let n,r,o;return e&&e.split("\n").forEach((function(e){o=e.indexOf(":"),n=e.substring(0,o).trim().toLowerCase(),r=e.substring(o+1).trim(),!n||t[n]&&sh[n]||("set-cookie"===n?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)})),t})(e),t):null!=e&&o(t,e,n),this}get(e,t){if(e=ch(e)){const n=_p.findKey(this,e);if(n){const e=this[n];if(!t)return e;if(!0===t)return function(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}(e);if(_p.isFunction(t))return t.call(this,e,n);if(_p.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=ch(e)){const n=_p.findKey(this,e);return!(!n||void 0===this[n]||t&&!fh(0,this[n],n,t))}return!1}delete(e,t){const n=this;let r=!1;function o(e){if(e=ch(e)){const o=_p.findKey(n,e);!o||t&&!fh(0,n[o],o,t)||(delete n[o],r=!0)}}return _p.isArray(e)?e.forEach(o):o(e),r}clear(e){const t=Object.keys(this);let n=t.length,r=!1;for(;n--;){const o=t[n];e&&!fh(0,this[o],o,e,!0)||(delete this[o],r=!0)}return r}normalize(e){const t=this,n={};return _p.forEach(this,((r,o)=>{const i=_p.findKey(n,o);if(i)return t[i]=uh(r),void delete t[o];const a=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,((e,t,n)=>t.toUpperCase()+n))}(o):String(o).trim();a!==o&&delete t[o],t[a]=uh(r),n[a]=!0})),this}concat(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.constructor.concat(this,...t)}toJSON(e){const t=Object.create(null);return _p.forEach(this,((n,r)=>{null!=n&&!1!==n&&(t[r]=e&&_p.isArray(n)?n.join(", "):n)})),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map((e=>{let[t,n]=e;return t+": "+n})).join("\n")}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e){const t=new this(e);for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return r.forEach((e=>t.set(e))),t}static accessor(e){const t=(this[lh]=this[lh]={accessors:{}}).accessors,n=this.prototype;function r(e){const r=ch(e);t[r]||(!function(e,t){const n=_p.toCamelCase(" "+t);["get","set","has"].forEach((r=>{Object.defineProperty(e,r+n,{value:function(e,n,o){return this[r].call(this,t,e,n,o)},configurable:!0})}))}(n,e),t[r]=!0)}return _p.isArray(e)?e.forEach(r):r(e),this}}dh.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),_p.reduceDescriptors(dh.prototype,((e,t)=>{let{value:n}=e,r=t[0].toUpperCase()+t.slice(1);return{get:()=>n,set(e){this[r]=e}}})),_p.freezeMethods(dh);const ph=dh;function hh(e,t){const n=this||ah,r=t||n,o=ph.from(r.headers);let i=r.data;return _p.forEach(e,(function(e){i=e.call(n,i,o.normalize(),t?t.status:void 0)})),o.normalize(),i}function mh(e){return!(!e||!e.__CANCEL__)}function gh(e,t,n){Fp.call(this,null==e?"canceled":e,Fp.ERR_CANCELED,t,n),this.name="CanceledError"}_p.inherits(gh,Fp,{__CANCEL__:!0});const yh=gh;const vh=rh.hasStandardBrowserEnv?{write(e,t,n,r,o,i){const a=[e+"="+encodeURIComponent(t)];_p.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),_p.isString(r)&&a.push("path="+r),_p.isString(o)&&a.push("domain="+o),!0===i&&a.push("secure"),document.cookie=a.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read:()=>null,remove(){}};function bh(e,t){return e&&!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)?function(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}(e,t):t}const wh=rh.hasStandardBrowserEnv?function(){const e=/(msie|trident)/i.test(navigator.userAgent),t=document.createElement("a");let n;function r(n){let r=n;return e&&(t.setAttribute("href",r),r=t.href),t.setAttribute("href",r),{href:t.href,protocol:t.protocol?t.protocol.replace(/:$/,""):"",host:t.host,search:t.search?t.search.replace(/^\?/,""):"",hash:t.hash?t.hash.replace(/^#/,""):"",hostname:t.hostname,port:t.port,pathname:"/"===t.pathname.charAt(0)?t.pathname:"/"+t.pathname}}return n=r(window.location.href),function(e){const t=_p.isString(e)?r(e):e;return t.protocol===n.protocol&&t.host===n.host}}():function(){return!0};const xh=function(e,t){e=e||10;const n=new Array(e),r=new Array(e);let o,i=0,a=0;return t=void 0!==t?t:1e3,function(s){const l=Date.now(),c=r[a];o||(o=l),n[i]=s,r[i]=l;let u=a,f=0;for(;u!==i;)f+=n[u++],u%=e;if(i=(i+1)%e,i===a&&(a=(a+1)%e),l-o<t)return;const d=c&&l-c;return d?Math.round(1e3*f/d):void 0}};function Eh(e,t){let n=0;const r=xh(50,250);return o=>{const i=o.loaded,a=o.lengthComputable?o.total:void 0,s=i-n,l=r(s);n=i;const c={loaded:i,total:a,progress:a?i/a:void 0,bytes:s,rate:l||void 0,estimated:l&&a&&i<=a?(a-i)/l:void 0,event:o};c[t?"download":"upload"]=!0,e(c)}}const Sh="undefined"!==typeof XMLHttpRequest&&function(e){return new Promise((function(t,n){let r=e.data;const o=ph.from(e.headers).normalize();let i,a,{responseType:s,withXSRFToken:l}=e;function c(){e.cancelToken&&e.cancelToken.unsubscribe(i),e.signal&&e.signal.removeEventListener("abort",i)}if(_p.isFormData(r))if(rh.hasStandardBrowserEnv||rh.hasStandardBrowserWebWorkerEnv)o.setContentType(!1);else if(!1!==(a=o.getContentType())){const[e,...t]=a?a.split(";").map((e=>e.trim())).filter(Boolean):[];o.setContentType([e||"multipart/form-data",...t].join("; "))}let u=new XMLHttpRequest;if(e.auth){const t=e.auth.username||"",n=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";o.set("Authorization","Basic "+btoa(t+":"+n))}const f=bh(e.baseURL,e.url);function d(){if(!u)return;const r=ph.from("getAllResponseHeaders"in u&&u.getAllResponseHeaders());!function(e,t,n){const r=n.config.validateStatus;n.status&&r&&!r(n.status)?t(new Fp("Request failed with status code "+n.status,[Fp.ERR_BAD_REQUEST,Fp.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):e(n)}((function(e){t(e),c()}),(function(e){n(e),c()}),{data:s&&"text"!==s&&"json"!==s?u.response:u.responseText,status:u.status,statusText:u.statusText,headers:r,config:e,request:u}),u=null}if(u.open(e.method.toUpperCase(),Yp(f,e.params,e.paramsSerializer),!0),u.timeout=e.timeout,"onloadend"in u?u.onloadend=d:u.onreadystatechange=function(){u&&4===u.readyState&&(0!==u.status||u.responseURL&&0===u.responseURL.indexOf("file:"))&&setTimeout(d)},u.onabort=function(){u&&(n(new Fp("Request aborted",Fp.ECONNABORTED,e,u)),u=null)},u.onerror=function(){n(new Fp("Network Error",Fp.ERR_NETWORK,e,u)),u=null},u.ontimeout=function(){let t=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const r=e.transitional||Xp;e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),n(new Fp(t,r.clarifyTimeoutError?Fp.ETIMEDOUT:Fp.ECONNABORTED,e,u)),u=null},rh.hasStandardBrowserEnv&&(l&&_p.isFunction(l)&&(l=l(e)),l||!1!==l&&wh(f))){const t=e.xsrfHeaderName&&e.xsrfCookieName&&vh.read(e.xsrfCookieName);t&&o.set(e.xsrfHeaderName,t)}void 0===r&&o.setContentType(null),"setRequestHeader"in u&&_p.forEach(o.toJSON(),(function(e,t){u.setRequestHeader(t,e)})),_p.isUndefined(e.withCredentials)||(u.withCredentials=!!e.withCredentials),s&&"json"!==s&&(u.responseType=e.responseType),"function"===typeof e.onDownloadProgress&&u.addEventListener("progress",Eh(e.onDownloadProgress,!0)),"function"===typeof e.onUploadProgress&&u.upload&&u.upload.addEventListener("progress",Eh(e.onUploadProgress)),(e.cancelToken||e.signal)&&(i=t=>{u&&(n(!t||t.type?new yh(null,e,u):t),u.abort(),u=null)},e.cancelToken&&e.cancelToken.subscribe(i),e.signal&&(e.signal.aborted?i():e.signal.addEventListener("abort",i)));const p=function(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}(f);p&&-1===rh.protocols.indexOf(p)?n(new Fp("Unsupported protocol "+p+":",Fp.ERR_BAD_REQUEST,e)):u.send(r||null)}))},kh={http:null,xhr:Sh};_p.forEach(kh,((e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(OE){}Object.defineProperty(e,"adapterName",{value:t})}}));const jh=e=>"- ".concat(e),Oh=e=>_p.isFunction(e)||null===e||!1===e,Ch=e=>{e=_p.isArray(e)?e:[e];const{length:t}=e;let n,r;const o={};for(let i=0;i<t;i++){let t;if(n=e[i],r=n,!Oh(n)&&(r=kh[(t=String(n)).toLowerCase()],void 0===r))throw new Fp("Unknown adapter '".concat(t,"'"));if(r)break;o[t||"#"+i]=r}if(!r){const e=Object.entries(o).map((e=>{let[t,n]=e;return"adapter ".concat(t," ")+(!1===n?"is not supported by the environment":"is not available in the build")}));let n=t?e.length>1?"since :\n"+e.map(jh).join("\n"):" "+jh(e[0]):"as no adapter specified";throw new Fp("There is no suitable adapter to dispatch the request "+n,"ERR_NOT_SUPPORT")}return r};function Nh(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new yh(null,e)}function Th(e){Nh(e),e.headers=ph.from(e.headers),e.data=hh.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1);return Ch(e.adapter||ah.adapter)(e).then((function(t){return Nh(e),t.data=hh.call(e,e.transformResponse,t),t.headers=ph.from(t.headers),t}),(function(t){return mh(t)||(Nh(e),t&&t.response&&(t.response.data=hh.call(e,e.transformResponse,t.response),t.response.headers=ph.from(t.response.headers))),Promise.reject(t)}))}const Ph=e=>e instanceof ph?{...e}:e;function Lh(e,t){t=t||{};const n={};function r(e,t,n){return _p.isPlainObject(e)&&_p.isPlainObject(t)?_p.merge.call({caseless:n},e,t):_p.isPlainObject(t)?_p.merge({},t):_p.isArray(t)?t.slice():t}function o(e,t,n){return _p.isUndefined(t)?_p.isUndefined(e)?void 0:r(void 0,e,n):r(e,t,n)}function i(e,t){if(!_p.isUndefined(t))return r(void 0,t)}function a(e,t){return _p.isUndefined(t)?_p.isUndefined(e)?void 0:r(void 0,e):r(void 0,t)}function s(n,o,i){return i in t?r(n,o):i in e?r(void 0,n):void 0}const l={url:i,method:i,data:i,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken: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:s,headers:(e,t)=>o(Ph(e),Ph(t),!0)};return _p.forEach(Object.keys(Object.assign({},e,t)),(function(r){const i=l[r]||o,a=i(e[r],t[r],r);_p.isUndefined(a)&&i!==s||(n[r]=a)})),n}const Rh="1.6.8",Ah={};["object","boolean","number","function","string","symbol"].forEach(((e,t)=>{Ah[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}));const _h={};Ah.transitional=function(e,t,n){function r(e,t){return"[Axios v1.6.8] Transitional option '"+e+"'"+t+(n?". "+n:"")}return(n,o,i)=>{if(!1===e)throw new Fp(r(o," has been removed"+(t?" in "+t:"")),Fp.ERR_DEPRECATED);return t&&!_h[o]&&(_h[o]=!0,console.warn(r(o," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,o,i)}};const Ih={assertOptions:function(e,t,n){if("object"!==typeof e)throw new Fp("options must be an object",Fp.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let o=r.length;for(;o-- >0;){const i=r[o],a=t[i];if(a){const t=e[i],n=void 0===t||a(t,i,e);if(!0!==n)throw new Fp("option "+i+" must be "+n,Fp.ERR_BAD_OPTION_VALUE)}else if(!0!==n)throw new Fp("Unknown option "+i,Fp.ERR_BAD_OPTION)}},validators:Ah},Mh=Ih.validators;class Dh{constructor(e){this.defaults=e,this.interceptors={request:new Qp,response:new Qp}}async request(e,t){try{return await this._request(e,t)}catch(n){if(n instanceof Error){let e;Error.captureStackTrace?Error.captureStackTrace(e={}):e=new Error;const t=e.stack?e.stack.replace(/^.+\n/,""):"";n.stack?t&&!String(n.stack).endsWith(t.replace(/^.+\n.+\n/,""))&&(n.stack+="\n"+t):n.stack=t}throw n}}_request(e,t){"string"===typeof e?(t=t||{}).url=e:t=e||{},t=Lh(this.defaults,t);const{transitional:n,paramsSerializer:r,headers:o}=t;void 0!==n&&Ih.assertOptions(n,{silentJSONParsing:Mh.transitional(Mh.boolean),forcedJSONParsing:Mh.transitional(Mh.boolean),clarifyTimeoutError:Mh.transitional(Mh.boolean)},!1),null!=r&&(_p.isFunction(r)?t.paramsSerializer={serialize:r}:Ih.assertOptions(r,{encode:Mh.function,serialize:Mh.function},!0)),t.method=(t.method||this.defaults.method||"get").toLowerCase();let i=o&&_p.merge(o.common,o[t.method]);o&&_p.forEach(["delete","get","head","post","put","patch","common"],(e=>{delete o[e]})),t.headers=ph.concat(i,o);const a=[];let s=!0;this.interceptors.request.forEach((function(e){"function"===typeof e.runWhen&&!1===e.runWhen(t)||(s=s&&e.synchronous,a.unshift(e.fulfilled,e.rejected))}));const l=[];let c;this.interceptors.response.forEach((function(e){l.push(e.fulfilled,e.rejected)}));let u,f=0;if(!s){const e=[Th.bind(this),void 0];for(e.unshift.apply(e,a),e.push.apply(e,l),u=e.length,c=Promise.resolve(t);f<u;)c=c.then(e[f++],e[f++]);return c}u=a.length;let d=t;for(f=0;f<u;){const e=a[f++],t=a[f++];try{d=e(d)}catch(p){t.call(this,p);break}}try{c=Th.call(this,d)}catch(p){return Promise.reject(p)}for(f=0,u=l.length;f<u;)c=c.then(l[f++],l[f++]);return c}getUri(e){return Yp(bh((e=Lh(this.defaults,e)).baseURL,e.url),e.params,e.paramsSerializer)}}_p.forEach(["delete","get","head","options"],(function(e){Dh.prototype[e]=function(t,n){return this.request(Lh(n||{},{method:e,url:t,data:(n||{}).data}))}})),_p.forEach(["post","put","patch"],(function(e){function t(t){return function(n,r,o){return this.request(Lh(o||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:r}))}}Dh.prototype[e]=t(),Dh.prototype[e+"Form"]=t(!0)}));const Fh=Dh;class Bh{constructor(e){if("function"!==typeof e)throw new TypeError("executor must be a function.");let t;this.promise=new Promise((function(e){t=e}));const n=this;this.promise.then((e=>{if(!n._listeners)return;let t=n._listeners.length;for(;t-- >0;)n._listeners[t](e);n._listeners=null})),this.promise.then=e=>{let t;const r=new Promise((e=>{n.subscribe(e),t=e})).then(e);return r.cancel=function(){n.unsubscribe(t)},r},e((function(e,r,o){n.reason||(n.reason=new yh(e,r,o),t(n.reason))}))}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}static source(){let e;const t=new Bh((function(t){e=t}));return{token:t,cancel:e}}}const zh=Bh;const Uh={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Uh).forEach((e=>{let[t,n]=e;Uh[n]=t}));const Hh=Uh;const Wh=function e(t){const n=new Fh(t),r=ep(Fh.prototype.request,n);return _p.extend(r,Fh.prototype,n,{allOwnKeys:!0}),_p.extend(r,n,null,{allOwnKeys:!0}),r.create=function(n){return e(Lh(t,n))},r}(ah);Wh.Axios=Fh,Wh.CanceledError=yh,Wh.CancelToken=zh,Wh.isCancel=mh,Wh.VERSION=Rh,Wh.toFormData=Wp,Wh.AxiosError=Fp,Wh.Cancel=Wh.CanceledError,Wh.all=function(e){return Promise.all(e)},Wh.spread=function(e){return function(t){return e.apply(null,t)}},Wh.isAxiosError=function(e){return _p.isObject(e)&&!0===e.isAxiosError},Wh.mergeConfig=Lh,Wh.AxiosHeaders=ph,Wh.formToJSON=e=>oh(_p.isHTMLForm(e)?new FormData(e):e),Wh.getAdapter=Ch,Wh.HttpStatusCode=Hh,Wh.default=Wh;const Vh=Wh,qh="http://localhost:5003/",$h={postMethod:async function(e,t){const n=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:qh)+e;let r=new FormData;for(var o in t)r.append(o,t[o]);let i={headers:{Authorization:"Bearer "+(localStorage.getItem("token")?localStorage.getItem("token"):sessionStorage.getItem("token")?sessionStorage.getItem("token"):"")}};return await Vh.post(n,r,i)},getMethod:async function(e){const t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:qh)+e;let n={headers:{Authorization:"Bearer "+(localStorage.getItem("token")?localStorage.getItem("token"):sessionStorage.getItem("token")?sessionStorage.getItem("token"):"")}};return await Vh.get(t,n)},servicePostMethod:async function(e){const t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:"http://localhost:5005/")+e;let n={headers:{Authorization:"Bearer "+(localStorage.getItem("token")?localStorage.getItem("token"):sessionStorage.getItem("token")?sessionStorage.getItem("token"):"")}};return await Vh.post(t,n)},queryPostMethod:async function(e,t){const n=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:"http://localhost:5004/")+e;let r=new FormData;for(var o in t)r.append(o,t[o]);let i={headers:{Authorization:"Bearer "+(localStorage.getItem("token")?localStorage.getItem("token"):sessionStorage.getItem("token")?sessionStorage.getItem("token"):"")}};return await Vh.post(n,r,i)}},Kh=$h,Gh=e=>{const t=ee(),n=rn(),o=Gt((e=>e.common.uploadFile)),[i,a]=(0,r.useState)([]),[s,l]=(0,r.useState)(!1),[c,u]=(0,r.useState)(!0),[f,d]=(0,r.useState)(!1),{getRootProps:p,getInputProps:h,isFocused:m,isDragAccept:g,isDragReject:y}=(Gt((e=>e.common.uploadedFiles)),Yd({accept:{"text/txt":[".txt"],"text/csv":[".csv"],"text/markdown":[".md"],"application/pdf":[".pdf"],"application/vnd.openxmlformats-officedocument.wordprocessingml.document":[".docx"]},maxFiles:10,useFsAccessApi:!1,onDrop:(e,t)=>{let n=e.filter((e=>{const t=e.name.slice(e.name.lastIndexOf("."));return".md"==t?"text/markdown":h().accept.includes(t)&&e.type}));if(n=n.map((e=>Object.assign(e,{preview:URL.createObjectURL(e)}))),i.length+e.length>10||t.length>10)Zd("".concat("You can select max ".concat(10," files")));else if(n.length>0){const e=n.filter((e=>!i.some((t=>t.name===e.name))));a([...i,...e]),e.length<n.length&&Zd("Cannot upload same files again")}else Zd("Invalid File Type");l(!1)},onDragEnter:()=>{l(!0)},onDragLeave:()=>{l(!1)}})),v={flex:1,display:"flex",flexDirection:"column",alignItems:"center",padding:"20px",borderWidth:1,borderRadius:0,borderColor:"#03363d",borderStyle:"dashed",outline:"none",transition:"border .24s ease-in-out"},b={borderColor:"#03363d"},w={borderColor:"#03363d"},x={borderColor:"#03363d"},E=(0,r.useMemo)((()=>({...v,...m?b:{},...g?w:{},...y?x:{}})),[m,g,y]);return(0,r.useEffect)((()=>{!c&&!o.buttonDisable&&Object.keys(o.data).length>0&&(a([]),n(po({user_id:"123",bot_id:"12345"}))),u(!1)}),[o]),(0,At.jsx)(At.Fragment,{children:(0,At.jsx)("div",{className:"admin-ui-body-sec upload-ui-body-sec",children:(0,At.jsx)("div",{className:"file-upload-option-sec",children:(0,At.jsx)(Uf,{className:"justify-content-md-center",children:(0,At.jsx)(Wf,{md:12,children:(0,At.jsx)("div",{className:"file-upload-option-box",children:(0,At.jsxs)(Uf,{className:"justify-content-md-center align-items-center",children:[(0,At.jsxs)(Wf,{md:6,children:[i.length>0?(0,At.jsxs)("div",{className:"file-upload-option-card mb-3",style:{textAlign:"left"},children:[(0,At.jsx)("h5",{children:"Selected Files"}),i.map(((e,t)=>(0,At.jsxs)("div",{className:"upload-preview-sec ".concat(e.size/1024>=5120?"large-file":""),children:[(0,At.jsx)("svg",{width:"24",height:"24",viewBox:"0 0 18 22",xmlns:"http://www.w3.org/2000/svg",children:(0,At.jsx)("path",{d:"M17.0297 5.76641C17.1703 5.90703 17.25 6.09687 17.25 6.29609V20.75C17.25 21.1648 16.9148 21.5 16.5 21.5H1.5C1.08516 21.5 0.75 21.1648 0.75 20.75V1.25C0.75 0.835156 1.08516 0.5 1.5 0.5H11.4539C11.6531 0.5 11.8453 0.579688 11.9859 0.720313L17.0297 5.76641ZM15.5203 6.64062L11.1094 2.22969V6.64062H15.5203ZM4.5 10.2969C4.45027 10.2969 4.40258 10.3166 4.36742 10.3518C4.33225 10.387 4.3125 10.4346 4.3125 10.4844V11.6094C4.3125 11.6591 4.33225 11.7068 4.36742 11.742C4.40258 11.7771 4.45027 11.7969 4.5 11.7969H13.5C13.5497 11.7969 13.5974 11.7771 13.6326 11.742C13.6677 11.7068 13.6875 11.6591 13.6875 11.6094V10.4844C13.6875 10.4346 13.6677 10.387 13.6326 10.3518C13.5974 10.3166 13.5497 10.2969 13.5 10.2969H4.5ZM4.5 13.4844C4.45027 13.4844 4.40258 13.5041 4.36742 13.5393C4.33225 13.5745 4.3125 13.6221 4.3125 13.6719V14.7969C4.3125 14.8466 4.33225 14.8943 4.36742 14.9295C4.40258 14.9646 4.45027 14.9844 4.5 14.9844H8.8125C8.86223 14.9844 8.90992 14.9646 8.94508 14.9295C8.98025 14.8943 9 14.8466 9 14.7969V13.6719C9 13.6221 8.98025 13.5745 8.94508 13.5393C8.90992 13.5041 8.86223 13.4844 8.8125 13.4844H4.5Z",fill:e.size/1024<5120?"#195097":"#e00b0b"})}),(0,At.jsxs)("div",{className:"w-100",children:[(0,At.jsx)("p",{className:"file-upload-name",children:e.name}),(0,At.jsx)("span",{className:"file-upload-size",children:e.size>=1024?(e.size/1048576).toFixed(2)+"MB":(e.size/1024).toFixed(2)+" KB"}),e.size/1024>5120&&(0,At.jsxs)("p",{className:"file-size-error",children:[(0,At.jsx)("strong",{children:"Error:"})," File exceed more than"," ",5," MB"]})]}),(0,At.jsx)("div",{onClick:()=>{(e=>{const t=i.filter(((t,n)=>n!==e));a(t)})(t);i.filter(((e,n)=>n!==t))},children:(0,At.jsx)("svg",{width:"24",height:"24",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,At.jsx)("path",{d:"M8 1C9.85652 1 11.637 1.7375 12.9497 3.05025C14.2625 4.36301 15 6.14348 15 8C15 9.85652 14.2625 11.637 12.9497 12.9497C11.637 14.2625 9.85652 15 8 15C6.14348 15 4.36301 14.2625 3.05025 12.9497C1.7375 11.637 1 9.85652 1 8C1 6.14348 1.7375 4.36301 3.05025 3.05025C4.36301 1.7375 6.14348 1 8 1ZM8 7.151L6.374 5.525C6.26142 5.41242 6.10872 5.34917 5.9495 5.34917C5.79028 5.34917 5.63758 5.41242 5.525 5.525C5.41242 5.63758 5.34917 5.79028 5.34917 5.9495C5.34917 6.10872 5.41242 6.26142 5.525 6.374L7.151 8L5.525 9.626C5.46925 9.68175 5.42503 9.74793 5.39486 9.82076C5.36469 9.8936 5.34917 9.97166 5.34917 10.0505C5.34917 10.1293 5.36469 10.2074 5.39486 10.2802C5.42503 10.3531 5.46925 10.4193 5.525 10.475C5.58075 10.5307 5.64693 10.575 5.71976 10.6051C5.7926 10.6353 5.87066 10.6508 5.9495 10.6508C6.02834 10.6508 6.1064 10.6353 6.17924 10.6051C6.25207 10.575 6.31825 10.5307 6.374 10.475L8 8.849L9.626 10.475C9.68175 10.5307 9.74793 10.575 9.82076 10.6051C9.8936 10.6353 9.97166 10.6508 10.0505 10.6508C10.1293 10.6508 10.2074 10.6353 10.2802 10.6051C10.3531 10.575 10.4193 10.5307 10.475 10.475C10.5307 10.4193 10.575 10.3531 10.6051 10.2802C10.6353 10.2074 10.6508 10.1293 10.6508 10.0505C10.6508 9.97166 10.6353 9.8936 10.6051 9.82076C10.575 9.74793 10.5307 9.68175 10.475 9.626L8.849 8L10.475 6.374C10.5307 6.31825 10.575 6.25207 10.6051 6.17924C10.6353 6.1064 10.6508 6.02834 10.6508 5.9495C10.6508 5.87066 10.6353 5.7926 10.6051 5.71976C10.575 5.64693 10.5307 5.58075 10.475 5.525C10.4193 5.46925 10.3531 5.42503 10.2802 5.39486C10.2074 5.36469 10.1293 5.34917 10.0505 5.34917C9.97166 5.34917 9.8936 5.36469 9.82076 5.39486C9.74793 5.42503 9.68175 5.46925 9.626 5.525L8 7.151Z",fill:e.size/1024<5120?"#195097":"#e00b0b"})})})]},e.name))),(0,At.jsxs)(cs,{className:"chat-main-wrapper-footer-submit-btn",disabled:f,onClick:async()=>{d(!0);var e=new FormData;i.forEach((t=>{e.append("files",t)}));var n={method:"POST",body:e,redirect:"follow"};let r=await fetch(qh+"uploadfile?user_id=123&bot_id=12345",n).then((e=>e.json())).catch((e=>e));1==r.success?(Jd(r.message),a([]),t("/file-uploading")):Zd("Something went wrong. Please try again."),d(!1)},style:{justifyContent:"center"},children:[(0,At.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",fill:"#fff",height:"20","data-name":"Layer 1",viewBox:"0 0 24 24",children:(0,At.jsx)("path",{d:"M.172 3.708A2.745 2.745 0 01.917.713 2.745 2.745 0 013.965.282l18.09 8.444A3.584 3.584 0 0124 10.999H4.048L.229 3.835a1.446 1.446 0 01-.057-.127zM4.062 13L.309 20.175a.944.944 0 00-.054.122 2.744 2.744 0 00.749 2.993 2.756 2.756 0 001.841.708c.409 0 .819-.092 1.201-.279l18.011-8.438a3.582 3.582 0 001.945-2.28H4.062z"})}),f?"Uploading...":"Upload"]})]}):null,(0,At.jsxs)("div",{...p({style:E,onDrop:e=>{},onChange:e=>{}}),className:"file-upload-option-card",children:[(0,At.jsx)("input",{...h()}),(0,At.jsx)("div",{class:"file-upload-option-icon-sec",children:(0,At.jsx)(li,{className:"file-upload-option-icon",src:window.location.origin+"/img/upload/upload-icon.svg",type:"image/png"})}),(0,At.jsx)("h4",{children:"Drag & drop files here"}),(0,At.jsx)("div",{className:"separate-divider",children:(0,At.jsx)("span",{children:"Or"})}),(0,At.jsx)(cs,{className:"browse-file-btn",children:"Browse Files"}),(0,At.jsxs)("div",{className:"file-upload-options-supported-card",children:[(0,At.jsx)("p",{children:"Supported Files"}),(0,At.jsxs)("div",{className:"file-upload-option-supported-format-box",children:[(0,At.jsx)("div",{className:"file-upload-option-supported-format-card",children:"TXT"}),(0,At.jsx)("div",{className:"file-upload-option-supported-format-card",children:"XLS"}),(0,At.jsx)("div",{className:"file-upload-option-supported-format-card",children:"PDF"}),(0,At.jsx)("div",{className:"file-upload-option-supported-format-card",children:"DOC"}),(0,At.jsx)("div",{className:"file-upload-option-supported-format-card",children:"MD"})]})]})]})]}),(0,At.jsx)(Wf,{md:6,children:(0,At.jsx)("div",{className:"welcome-right-sec",children:(0,At.jsxs)("div",{className:"welcome-instruction-content",children:[(0,At.jsx)("div",{className:"welcome-instruction-icon-sec",children:(0,At.jsx)(li,{className:"welcome-upload-icon-sec",src:window.location.origin+"/img/welcome/upload-file-img.png"})}),(0,At.jsx)("h3",{children:"Seed the bot knowledge base by uploading training resources."}),(0,At.jsxs)("ul",{className:"list-unstyled welcome-instruction-list",children:[(0,At.jsxs)("li",{children:[(0,At.jsxs)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,At.jsx)("rect",{x:"0.5",y:"0.5",width:"22.76",height:"22.3251",rx:"11.1625",fill:"#195097"}),(0,At.jsx)("path",{d:"M10.013 13.9198L7.99173 11.8985C7.76455 11.6713 7.39756 11.6713 7.17038 11.8985C6.94321 12.1256 6.94321 12.4926 7.17038 12.7198L9.60529 15.1547C9.83247 15.3819 10.1995 15.3819 10.4266 15.1547L16.5896 8.99173C16.8168 8.76455 16.8168 8.39756 16.5896 8.17038C16.3624 7.94321 15.9955 7.94321 15.7683 8.17038L10.013 13.9198Z",fill:"white",stroke:"white"}),(0,At.jsx)("rect",{x:"0.5",y:"0.5",width:"22.76",height:"22.3251",rx:"11.1625",stroke:"#195097"})]}),(0,At.jsx)("span",{children:"See what it's like when all the tools and data an agent needs are unified on a single pane of glass, providing the entire context of a customer's issue."})]}),(0,At.jsxs)("li",{children:[(0,At.jsxs)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,At.jsx)("rect",{x:"0.5",y:"0.5",width:"22.76",height:"22.3251",rx:"11.1625",fill:"#195097"}),(0,At.jsx)("path",{d:"M10.013 13.9198L7.99173 11.8985C7.76455 11.6713 7.39756 11.6713 7.17038 11.8985C6.94321 12.1256 6.94321 12.4926 7.17038 12.7198L9.60529 15.1547C9.83247 15.3819 10.1995 15.3819 10.4266 15.1547L16.5896 8.99173C16.8168 8.76455 16.8168 8.39756 16.5896 8.17038C16.3624 7.94321 15.9955 7.94321 15.7683 8.17038L10.013 13.9198Z",fill:"white",stroke:"white"}),(0,At.jsx)("rect",{x:"0.5",y:"0.5",width:"22.76",height:"22.3251",rx:"11.1625",stroke:"#195097"})]}),(0,At.jsx)("span",{children:"Watch how customer interactions can be converted seamlessly between channels, keeping all data and context preserved."})]})]})]})})})]})})})})})})})};function Yh(e,t,n){const o=(0,r.useRef)(void 0!==e),[i,a]=(0,r.useState)(t),s=void 0!==e,l=o.current;return o.current=s,!s&&l&&i!==t&&a(t),[s?e:i,(0,r.useCallback)((function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];const[o,...i]=t;let s=null==n?void 0:n(o,...i);return a(o),s}),[n])]}const Qh={prefix:String(Math.round(1e10*Math.random())),current:0},Xh=r.createContext(Qh),Jh=r.createContext(!1);let Zh=Boolean("undefined"!==typeof window&&window.document&&window.document.createElement),em=new WeakMap;function tm(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=(0,r.useContext)(Xh),n=(0,r.useRef)(null);if(null===n.current&&!e){var o,i;let e=null===(i=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)||void 0===i||null===(o=i.ReactCurrentOwner)||void 0===o?void 0:o.current;if(e){let n=em.get(e);null==n?em.set(e,{id:t.current,state:e.memoizedState}):e.memoizedState!==n.state&&(t.current=n.id,em.delete(e))}n.current=++t.current}return n.current}const nm="function"===typeof r.useId?function(e){let t=r.useId(),[n]=(0,r.useState)("function"===typeof r.useSyncExternalStore?r.useSyncExternalStore(im,rm,om):(0,r.useContext)(Jh)),o=n?"react-aria":"react-aria".concat(Qh.prefix);return e||"".concat(o,"-").concat(t)}:function(e){let t=(0,r.useContext)(Xh);t!==Qh||Zh||console.warn("When server rendering, you must wrap your application in an <SSRProvider> to ensure consistent ids are generated between the client and server.");let n=tm(!!e),o="react-aria".concat(t.prefix);return e||"".concat(o,"-").concat(n)};function rm(){return!1}function om(){return!0}function im(e){return()=>{}}const am=r.createContext(null),sm=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return null!=e?String(e):t||null},lm=r.createContext(null),cm=["active","eventKey","mountOnEnter","transition","unmountOnExit","role","onEnter","onEntering","onEntered","onExit","onExiting","onExited"],um=["activeKey","getControlledId","getControllerId"],fm=["as"];function dm(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}function pm(e){let{active:t,eventKey:n,mountOnEnter:o,transition:i,unmountOnExit:a,role:s="tabpanel",onEnter:l,onEntering:c,onEntered:u,onExit:f,onExiting:d,onExited:p}=e,h=dm(e,cm);const m=(0,r.useContext)(am);if(!m)return[Object.assign({},h,{role:s}),{eventKey:n,isActive:t,mountOnEnter:o,transition:i,unmountOnExit:a,onEnter:l,onEntering:c,onEntered:u,onExit:f,onExiting:d,onExited:p}];const{activeKey:g,getControlledId:y,getControllerId:v}=m,b=dm(m,um),w=sm(n);return[Object.assign({},h,{role:s,id:y(n),"aria-labelledby":v(n)}),{eventKey:n,isActive:null==t&&null!=w?sm(g)===w:t,transition:i||b.transition,mountOnEnter:null!=o?o:b.mountOnEnter,unmountOnExit:null!=a?a:b.unmountOnExit,onEnter:l,onEntering:c,onEntered:u,onExit:f,onExiting:d,onExited:p}]}const hm=r.forwardRef(((e,t)=>{let{as:n="div"}=e,r=dm(e,fm);const[o,{isActive:i,onEnter:a,onEntering:s,onEntered:l,onExit:c,onExiting:u,onExited:f,mountOnEnter:d,unmountOnExit:p,transition:h=Ki}]=pm(r);return(0,At.jsx)(am.Provider,{value:null,children:(0,At.jsx)(lm.Provider,{value:null,children:(0,At.jsx)(h,{in:i,onEnter:a,onEntering:s,onEntered:l,onExit:c,onExiting:u,onExited:f,mountOnEnter:d,unmountOnExit:p,children:(0,At.jsx)(n,Object.assign({},o,{ref:t,hidden:!i,"aria-hidden":!i}))})})})}));hm.displayName="TabPanel";const mm=e=>{const{id:t,generateChildId:n,onSelect:o,activeKey:i,defaultActiveKey:a,transition:s,mountOnEnter:l,unmountOnExit:c,children:u}=e,[f,d]=Yh(i,a,o),p=nm(t),h=(0,r.useMemo)((()=>n||((e,t)=>p?"".concat(p,"-").concat(t,"-").concat(e):null)),[p,n]),m=(0,r.useMemo)((()=>({onSelect:d,activeKey:f,transition:s,mountOnEnter:l||!1,unmountOnExit:c||!1,getControlledId:e=>h(e,"tabpane"),getControllerId:e=>h(e,"tab")})),[d,f,s,l,c,h]);return(0,At.jsx)(am.Provider,{value:m,children:(0,At.jsx)(lm.Provider,{value:d||null,children:u})})};mm.Panel=hm;const gm=mm;function ym(e){return"boolean"===typeof e?e?Ia:Ki:e}const vm=e=>{let{transition:t,...n}=e;return(0,At.jsx)(gm,{...n,transition:ym(t)})};vm.displayName="TabContainer";const bm=vm,wm=r.forwardRef(((e,t)=>{let{className:n,bsPrefix:r,as:o="div",...i}=e;return r=ri(r,"tab-content"),(0,At.jsx)(o,{ref:t,className:Xo()(n,r),...i})}));wm.displayName="TabContent";const xm=wm,Em=r.forwardRef(((e,t)=>{let{bsPrefix:n,transition:r,...o}=e;const[{className:i,as:a="div",...s},{isActive:l,onEnter:c,onEntering:u,onEntered:f,onExit:d,onExiting:p,onExited:h,mountOnEnter:m,unmountOnExit:g,transition:y=Ia}]=pm({...o,transition:ym(r)}),v=ri(n,"tab-pane");return(0,At.jsx)(am.Provider,{value:null,children:(0,At.jsx)(lm.Provider,{value:null,children:(0,At.jsx)(y,{in:l,onEnter:c,onEntering:u,onEntered:f,onExit:d,onExiting:p,onExited:h,mountOnEnter:m,unmountOnExit:g,children:(0,At.jsx)(a,{...s,ref:t,className:Xo()(i,v,l&&"active")})})})})}));Em.displayName="TabPane";const Sm=Em,km={eventKey:Te().oneOfType([Te().string,Te().number]),title:Te().node.isRequired,disabled:Te().bool,tabClassName:Te().string,tabAttrs:Te().object},jm=()=>{throw new Error("ReactBootstrap: The `Tab` component is not meant to be rendered! It's an abstract component that is only valid as a direct Child of the `Tabs` Component. For custom tabs components use TabPane and TabsContainer directly")};jm.propTypes=km;const Om=Object.assign(jm,{Container:bm,Content:xm,Pane:Sm});n(197);function Cm(){return Cm=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Cm.apply(this,arguments)}n(740);function Nm(e){return"default"+e.charAt(0).toUpperCase()+e.substr(1)}function Tm(e){var t=function(e,t){if("object"!==typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===typeof t?t:String(t)}function Pm(e,t,n){var o=(0,r.useRef)(void 0!==e),i=(0,r.useState)(t),a=i[0],s=i[1],l=void 0!==e,c=o.current;return o.current=l,!l&&c&&a!==t&&s(t),[l?e:a,(0,r.useCallback)((function(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),o=1;o<t;o++)r[o-1]=arguments[o];n&&n.apply(void 0,[e].concat(r)),s(e)}),[n])]}function Lm(e,t){return Object.keys(t).reduce((function(n,r){var o,i=n,a=i[Nm(r)],s=i[r],l=ga(i,[Nm(r),r].map(Tm)),c=t[r],u=Pm(s,a,e[c]),f=u[0],d=u[1];return Cm({},l,((o={})[r]=f,o[c]=d,o))}),e)}function Rm(){var e=this.constructor.getDerivedStateFromProps(this.props,this.state);null!==e&&void 0!==e&&this.setState(e)}function Am(e){this.setState(function(t){var n=this.constructor.getDerivedStateFromProps(e,t);return null!==n&&void 0!==n?n:null}.bind(this))}function _m(e,t){try{var n=this.props,r=this.state;this.props=e,this.state=t,this.__reactInternalSnapshotFlag=!0,this.__reactInternalSnapshot=this.getSnapshotBeforeUpdate(n,r)}finally{this.props=n,this.state=r}}Rm.__suppressDeprecationWarning=!0,Am.__suppressDeprecationWarning=!0,_m.__suppressDeprecationWarning=!0;function Im(){const[,e]=(0,r.useReducer)((e=>!e),!1);return e}const Mm=r.createContext(null);Mm.displayName="NavContext";const Dm=Mm,Fm=["as","active","eventKey"];function Bm(e){let{key:t,onClick:n,active:o,id:i,role:a,disabled:s}=e;const l=(0,r.useContext)(lm),c=(0,r.useContext)(Dm),u=(0,r.useContext)(am);let f=o;const d={role:a};if(c){a||"tablist"!==c.role||(d.role="tab");const e=c.getControllerId(null!=t?t:null),n=c.getControlledId(null!=t?t:null);d[Fi("event-key")]=t,d.id=e||i,f=null==o&&null!=t?c.activeKey===t:o,!f&&(null!=u&&u.unmountOnExit||null!=u&&u.mountOnEnter)||(d["aria-controls"]=n)}return"tab"===d.role&&(d["aria-selected"]=f,f||(d.tabIndex=-1),s&&(d.tabIndex=-1,d["aria-disabled"]=!0)),d.onClick=wi((e=>{s||(null==n||n(e),null!=t&&l&&!e.isPropagationStopped()&&l(t,e))})),[d,{isActive:f}]}const zm=r.forwardRef(((e,t)=>{let{as:n=ss,active:r,eventKey:o}=e,i=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,Fm);const[a,s]=Bm(Object.assign({key:sm(o,i.href),active:r},i));return a[Fi("active")]=s.isActive,(0,At.jsx)(n,Object.assign({},i,a,{ref:t}))}));zm.displayName="NavItem";const Um=zm,Hm=["as","onSelect","activeKey","role","onKeyDown"];const Wm=()=>{},Vm=Fi("event-key"),qm=r.forwardRef(((e,t)=>{let{as:n="div",onSelect:o,activeKey:i,role:a,onKeyDown:s}=e,l=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,Hm);const c=Im(),u=(0,r.useRef)(!1),f=(0,r.useContext)(lm),d=(0,r.useContext)(am);let p,h;d&&(a=a||"tablist",i=d.activeKey,p=d.getControlledId,h=d.getControllerId);const m=(0,r.useRef)(null),g=e=>{const t=m.current;if(!t)return null;const n=ca(t,"[".concat(Vm,"]:not([aria-disabled=true])")),r=t.querySelector("[aria-selected=true]");if(!r||r!==document.activeElement)return null;const o=n.indexOf(r);if(-1===o)return null;let i=o+e;return i>=n.length&&(i=0),i<0&&(i=n.length-1),n[i]},y=(e,t)=>{null!=e&&(null==o||o(e,t),null==f||f(e,t))};(0,r.useEffect)((()=>{if(m.current&&u.current){const e=m.current.querySelector("[".concat(Vm,"][aria-selected=true]"));null==e||e.focus()}u.current=!1}));const v=Ei(t,m);return(0,At.jsx)(lm.Provider,{value:y,children:(0,At.jsx)(Dm.Provider,{value:{role:a,activeKey:sm(i),getControlledId:p||Wm,getControllerId:h||Wm},children:(0,At.jsx)(n,Object.assign({},l,{onKeyDown:e=>{if(null==s||s(e),!d)return;let t;switch(e.key){case"ArrowLeft":case"ArrowUp":t=g(-1);break;case"ArrowRight":case"ArrowDown":t=g(1);break;default:return}var n;t&&(e.preventDefault(),y(t.dataset[(n="EventKey","".concat("rrUi").concat(n))]||null,e),u.current=!0,c())},ref:v,role:a}))})})}));qm.displayName="Nav";const $m=Object.assign(qm,{Item:Um}),Km=r.createContext(null);Km.displayName="NavbarContext";const Gm=Km,Ym=r.createContext(null);Ym.displayName="CardHeaderContext";const Qm=Ym,Xm=r.forwardRef(((e,t)=>{let{className:n,bsPrefix:r,as:o="div",...i}=e;return r=ri(r,"nav-item"),(0,At.jsx)(o,{ref:t,className:Xo()(n,r),...i})}));Xm.displayName="NavItem";const Jm=Xm;new WeakMap;const Zm=["onKeyDown"];const eg=r.forwardRef(((e,t)=>{let{onKeyDown:n}=e,r=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,Zm);const[o]=is(Object.assign({tagName:"a"},r)),i=wi((e=>{o.onKeyDown(e),null==n||n(e)}));return(a=r.href)&&"#"!==a.trim()&&"button"!==r.role?(0,At.jsx)("a",Object.assign({ref:t},r,{onKeyDown:n})):(0,At.jsx)("a",Object.assign({ref:t},r,o,{onKeyDown:i}));var a}));eg.displayName="Anchor";const tg=eg,ng=r.forwardRef(((e,t)=>{let{bsPrefix:n,className:r,as:o=tg,active:i,eventKey:a,disabled:s=!1,...l}=e;n=ri(n,"nav-link");const[c,u]=Bm({key:sm(a,l.href),active:i,disabled:s,...l});return(0,At.jsx)(o,{...l,...c,ref:t,disabled:s,className:Xo()(r,n,s&&"disabled",u.isActive&&"active")})}));ng.displayName="NavLink";const rg=ng,og=r.forwardRef(((e,t)=>{const{as:n="div",bsPrefix:o,variant:i,fill:a=!1,justify:s=!1,navbar:l,navbarScroll:c,className:u,activeKey:f,...d}=Lm(e,{activeKey:"onSelect"}),p=ri(o,"nav");let h,m,g=!1;const y=(0,r.useContext)(Gm),v=(0,r.useContext)(Qm);return y?(h=y.bsPrefix,g=null==l||l):v&&({cardHeaderBsPrefix:m}=v),(0,At.jsx)($m,{as:n,ref:t,activeKey:f,className:Xo()(u,{[p]:!g,["".concat(h,"-nav")]:g,["".concat(h,"-nav-scroll")]:g&&c,["".concat(m,"-").concat(i)]:!!m,["".concat(p,"-").concat(i)]:!!i,["".concat(p,"-fill")]:a,["".concat(p,"-justified")]:s}),...d})}));og.displayName="Nav";const ig=Object.assign(og,{Item:Jm,Link:rg}),ag=2**31-1;function sg(e,t,n){const r=n-Date.now();e.current=r<=ag?setTimeout(t,r):setTimeout((()=>sg(e,t,n)),ag)}function lg(){const e=Ii(),t=(0,r.useRef)();return Si((()=>clearTimeout(t.current))),(0,r.useMemo)((()=>{const n=()=>clearTimeout(t.current);return{set:function(r){let o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;e()&&(n(),o<=ag?t.current=setTimeout(r,o):sg(t,r,Date.now()+o))},clear:n,handleRef:t}}),[])}var cg=n(440),ug=n.n(cg),fg=Object.prototype.hasOwnProperty;function dg(e,t,n){for(n of e.keys())if(pg(n,t))return n}function pg(e,t){var n,r,o;if(e===t)return!0;if(e&&t&&(n=e.constructor)===t.constructor){if(n===Date)return e.getTime()===t.getTime();if(n===RegExp)return e.toString()===t.toString();if(n===Array){if((r=e.length)===t.length)for(;r--&&pg(e[r],t[r]););return-1===r}if(n===Set){if(e.size!==t.size)return!1;for(r of e){if((o=r)&&"object"===typeof o&&!(o=dg(t,o)))return!1;if(!t.has(o))return!1}return!0}if(n===Map){if(e.size!==t.size)return!1;for(r of e){if((o=r[0])&&"object"===typeof o&&!(o=dg(t,o)))return!1;if(!pg(r[1],t.get(o)))return!1}return!0}if(n===ArrayBuffer)e=new Uint8Array(e),t=new Uint8Array(t);else if(n===DataView){if((r=e.byteLength)===t.byteLength)for(;r--&&e.getInt8(r)===t.getInt8(r););return-1===r}if(ArrayBuffer.isView(e)){if((r=e.byteLength)===t.byteLength)for(;r--&&e[r]===t[r];);return-1===r}if(!n||"object"===typeof e){for(n in r=0,e){if(fg.call(e,n)&&++r&&!fg.call(t,n))return!1;if(!(n in t)||!pg(e[n],t[n]))return!1}return Object.keys(t).length===r}}return e!==e&&t!==t}const hg=function(e){const t=Ii();return[e[0],(0,r.useCallback)((n=>{if(t())return e[1](n)}),[t,e[1]])]};function mg(e){return e.split("-")[0]}function gg(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function yg(e){return e instanceof gg(e).Element||e instanceof Element}function vg(e){return e instanceof gg(e).HTMLElement||e instanceof HTMLElement}function bg(e){return"undefined"!==typeof ShadowRoot&&(e instanceof gg(e).ShadowRoot||e instanceof ShadowRoot)}var wg=Math.max,xg=Math.min,Eg=Math.round;function Sg(){var e=navigator.userAgentData;return null!=e&&e.brands&&Array.isArray(e.brands)?e.brands.map((function(e){return e.brand+"/"+e.version})).join(" "):navigator.userAgent}function kg(){return!/^((?!chrome|android).)*safari/i.test(Sg())}function jg(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);var r=e.getBoundingClientRect(),o=1,i=1;t&&vg(e)&&(o=e.offsetWidth>0&&Eg(r.width)/e.offsetWidth||1,i=e.offsetHeight>0&&Eg(r.height)/e.offsetHeight||1);var a=(yg(e)?gg(e):window).visualViewport,s=!kg()&&n,l=(r.left+(s&&a?a.offsetLeft:0))/o,c=(r.top+(s&&a?a.offsetTop:0))/i,u=r.width/o,f=r.height/i;return{width:u,height:f,top:c,right:l+u,bottom:c+f,left:l,x:l,y:c}}function Og(e){var t=jg(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function Cg(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&bg(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function Ng(e){return e?(e.nodeName||"").toLowerCase():null}function Tg(e){return gg(e).getComputedStyle(e)}function Pg(e){return["table","td","th"].indexOf(Ng(e))>=0}function Lg(e){return((yg(e)?e.ownerDocument:e.document)||window.document).documentElement}function Rg(e){return"html"===Ng(e)?e:e.assignedSlot||e.parentNode||(bg(e)?e.host:null)||Lg(e)}function Ag(e){return vg(e)&&"fixed"!==Tg(e).position?e.offsetParent:null}function _g(e){for(var t=gg(e),n=Ag(e);n&&Pg(n)&&"static"===Tg(n).position;)n=Ag(n);return n&&("html"===Ng(n)||"body"===Ng(n)&&"static"===Tg(n).position)?t:n||function(e){var t=/firefox/i.test(Sg());if(/Trident/i.test(Sg())&&vg(e)&&"fixed"===Tg(e).position)return null;var n=Rg(e);for(bg(n)&&(n=n.host);vg(n)&&["html","body"].indexOf(Ng(n))<0;){var r=Tg(n);if("none"!==r.transform||"none"!==r.perspective||"paint"===r.contain||-1!==["transform","perspective"].indexOf(r.willChange)||t&&"filter"===r.willChange||t&&r.filter&&"none"!==r.filter)return n;n=n.parentNode}return null}(e)||t}function Ig(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Mg(e,t,n){return wg(e,xg(t,n))}function Dg(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function Fg(e,t){return t.reduce((function(t,n){return t[n]=e,t}),{})}var Bg="top",zg="bottom",Ug="right",Hg="left",Wg="auto",Vg=[Bg,zg,Ug,Hg],qg="start",$g="end",Kg="clippingParents",Gg="viewport",Yg="popper",Qg="reference",Xg=Vg.reduce((function(e,t){return e.concat([t+"-"+qg,t+"-"+$g])}),[]),Jg=[].concat(Vg,[Wg]).reduce((function(e,t){return e.concat([t,t+"-"+qg,t+"-"+$g])}),[]),Zg=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];const ey={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n=e.state,r=e.name,o=e.options,i=n.elements.arrow,a=n.modifiersData.popperOffsets,s=mg(n.placement),l=Ig(s),c=[Hg,Ug].indexOf(s)>=0?"height":"width";if(i&&a){var u=function(e,t){return Dg("number"!==typeof(e="function"===typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:Fg(e,Vg))}(o.padding,n),f=Og(i),d="y"===l?Bg:Hg,p="y"===l?zg:Ug,h=n.rects.reference[c]+n.rects.reference[l]-a[l]-n.rects.popper[c],m=a[l]-n.rects.reference[l],g=_g(i),y=g?"y"===l?g.clientHeight||0:g.clientWidth||0:0,v=h/2-m/2,b=u[d],w=y-f[c]-u[p],x=y/2-f[c]/2+v,E=Mg(b,x,w),S=l;n.modifiersData[r]=((t={})[S]=E,t.centerOffset=E-x,t)}},effect:function(e){var t=e.state,n=e.options.element,r=void 0===n?"[data-popper-arrow]":n;null!=r&&("string"!==typeof r||(r=t.elements.popper.querySelector(r)))&&Cg(t.elements.popper,r)&&(t.elements.arrow=r)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function ty(e){return e.split("-")[1]}var ny={top:"auto",right:"auto",bottom:"auto",left:"auto"};function ry(e){var t,n=e.popper,r=e.popperRect,o=e.placement,i=e.variation,a=e.offsets,s=e.position,l=e.gpuAcceleration,c=e.adaptive,u=e.roundOffsets,f=e.isFixed,d=a.x,p=void 0===d?0:d,h=a.y,m=void 0===h?0:h,g="function"===typeof u?u({x:p,y:m}):{x:p,y:m};p=g.x,m=g.y;var y=a.hasOwnProperty("x"),v=a.hasOwnProperty("y"),b=Hg,w=Bg,x=window;if(c){var E=_g(n),S="clientHeight",k="clientWidth";if(E===gg(n)&&"static"!==Tg(E=Lg(n)).position&&"absolute"===s&&(S="scrollHeight",k="scrollWidth"),o===Bg||(o===Hg||o===Ug)&&i===$g)w=zg,m-=(f&&E===x&&x.visualViewport?x.visualViewport.height:E[S])-r.height,m*=l?1:-1;if(o===Hg||(o===Bg||o===zg)&&i===$g)b=Ug,p-=(f&&E===x&&x.visualViewport?x.visualViewport.width:E[k])-r.width,p*=l?1:-1}var j,O=Object.assign({position:s},c&&ny),C=!0===u?function(e,t){var n=e.x,r=e.y,o=t.devicePixelRatio||1;return{x:Eg(n*o)/o||0,y:Eg(r*o)/o||0}}({x:p,y:m},gg(n)):{x:p,y:m};return p=C.x,m=C.y,l?Object.assign({},O,((j={})[w]=v?"0":"",j[b]=y?"0":"",j.transform=(x.devicePixelRatio||1)<=1?"translate("+p+"px, "+m+"px)":"translate3d("+p+"px, "+m+"px, 0)",j)):Object.assign({},O,((t={})[w]=v?m+"px":"",t[b]=y?p+"px":"",t.transform="",t))}const oy={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=void 0===r||r,i=n.adaptive,a=void 0===i||i,s=n.roundOffsets,l=void 0===s||s,c={placement:mg(t.placement),variation:ty(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,ry(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:l})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,ry(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}};var iy={passive:!0};const ay={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,n=e.instance,r=e.options,o=r.scroll,i=void 0===o||o,a=r.resize,s=void 0===a||a,l=gg(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&c.forEach((function(e){e.addEventListener("scroll",n.update,iy)})),s&&l.addEventListener("resize",n.update,iy),function(){i&&c.forEach((function(e){e.removeEventListener("scroll",n.update,iy)})),s&&l.removeEventListener("resize",n.update,iy)}},data:{}};var sy={left:"right",right:"left",bottom:"top",top:"bottom"};function ly(e){return e.replace(/left|right|bottom|top/g,(function(e){return sy[e]}))}var cy={start:"end",end:"start"};function uy(e){return e.replace(/start|end/g,(function(e){return cy[e]}))}function fy(e){var t=gg(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function dy(e){return jg(Lg(e)).left+fy(e).scrollLeft}function py(e){var t=Tg(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function hy(e){return["html","body","#document"].indexOf(Ng(e))>=0?e.ownerDocument.body:vg(e)&&py(e)?e:hy(Rg(e))}function my(e,t){var n;void 0===t&&(t=[]);var r=hy(e),o=r===(null==(n=e.ownerDocument)?void 0:n.body),i=gg(r),a=o?[i].concat(i.visualViewport||[],py(r)?r:[]):r,s=t.concat(a);return o?s:s.concat(my(Rg(a)))}function gy(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function yy(e,t,n){return t===Gg?gy(function(e,t){var n=gg(e),r=Lg(e),o=n.visualViewport,i=r.clientWidth,a=r.clientHeight,s=0,l=0;if(o){i=o.width,a=o.height;var c=kg();(c||!c&&"fixed"===t)&&(s=o.offsetLeft,l=o.offsetTop)}return{width:i,height:a,x:s+dy(e),y:l}}(e,n)):yg(t)?function(e,t){var n=jg(e,!1,"fixed"===t);return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}(t,n):gy(function(e){var t,n=Lg(e),r=fy(e),o=null==(t=e.ownerDocument)?void 0:t.body,i=wg(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),a=wg(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),s=-r.scrollLeft+dy(e),l=-r.scrollTop;return"rtl"===Tg(o||n).direction&&(s+=wg(n.clientWidth,o?o.clientWidth:0)-i),{width:i,height:a,x:s,y:l}}(Lg(e)))}function vy(e,t,n,r){var o="clippingParents"===t?function(e){var t=my(Rg(e)),n=["absolute","fixed"].indexOf(Tg(e).position)>=0&&vg(e)?_g(e):e;return yg(n)?t.filter((function(e){return yg(e)&&Cg(e,n)&&"body"!==Ng(e)})):[]}(e):[].concat(t),i=[].concat(o,[n]),a=i[0],s=i.reduce((function(t,n){var o=yy(e,n,r);return t.top=wg(o.top,t.top),t.right=xg(o.right,t.right),t.bottom=xg(o.bottom,t.bottom),t.left=wg(o.left,t.left),t}),yy(e,a,r));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function by(e){var t,n=e.reference,r=e.element,o=e.placement,i=o?mg(o):null,a=o?ty(o):null,s=n.x+n.width/2-r.width/2,l=n.y+n.height/2-r.height/2;switch(i){case Bg:t={x:s,y:n.y-r.height};break;case zg:t={x:s,y:n.y+n.height};break;case Ug:t={x:n.x+n.width,y:l};break;case Hg:t={x:n.x-r.width,y:l};break;default:t={x:n.x,y:n.y}}var c=i?Ig(i):null;if(null!=c){var u="y"===c?"height":"width";switch(a){case qg:t[c]=t[c]-(n[u]/2-r[u]/2);break;case $g:t[c]=t[c]+(n[u]/2-r[u]/2)}}return t}function wy(e,t){void 0===t&&(t={});var n=t,r=n.placement,o=void 0===r?e.placement:r,i=n.strategy,a=void 0===i?e.strategy:i,s=n.boundary,l=void 0===s?Kg:s,c=n.rootBoundary,u=void 0===c?Gg:c,f=n.elementContext,d=void 0===f?Yg:f,p=n.altBoundary,h=void 0!==p&&p,m=n.padding,g=void 0===m?0:m,y=Dg("number"!==typeof g?g:Fg(g,Vg)),v=d===Yg?Qg:Yg,b=e.rects.popper,w=e.elements[h?v:d],x=vy(yg(w)?w:w.contextElement||Lg(e.elements.popper),l,u,a),E=jg(e.elements.reference),S=by({reference:E,element:b,strategy:"absolute",placement:o}),k=gy(Object.assign({},b,S)),j=d===Yg?k:E,O={top:x.top-j.top+y.top,bottom:j.bottom-x.bottom+y.bottom,left:x.left-j.left+y.left,right:j.right-x.right+y.right},C=e.modifiersData.offset;if(d===Yg&&C){var N=C[o];Object.keys(O).forEach((function(e){var t=[Ug,zg].indexOf(e)>=0?1:-1,n=[Bg,zg].indexOf(e)>=0?"y":"x";O[e]+=N[n]*t}))}return O}const xy={name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,i=void 0===o||o,a=n.altAxis,s=void 0===a||a,l=n.fallbackPlacements,c=n.padding,u=n.boundary,f=n.rootBoundary,d=n.altBoundary,p=n.flipVariations,h=void 0===p||p,m=n.allowedAutoPlacements,g=t.options.placement,y=mg(g),v=l||(y===g||!h?[ly(g)]:function(e){if(mg(e)===Wg)return[];var t=ly(e);return[uy(e),t,uy(t)]}(g)),b=[g].concat(v).reduce((function(e,n){return e.concat(mg(n)===Wg?function(e,t){void 0===t&&(t={});var n=t,r=n.placement,o=n.boundary,i=n.rootBoundary,a=n.padding,s=n.flipVariations,l=n.allowedAutoPlacements,c=void 0===l?Jg:l,u=ty(r),f=u?s?Xg:Xg.filter((function(e){return ty(e)===u})):Vg,d=f.filter((function(e){return c.indexOf(e)>=0}));0===d.length&&(d=f);var p=d.reduce((function(t,n){return t[n]=wy(e,{placement:n,boundary:o,rootBoundary:i,padding:a})[mg(n)],t}),{});return Object.keys(p).sort((function(e,t){return p[e]-p[t]}))}(t,{placement:n,boundary:u,rootBoundary:f,padding:c,flipVariations:h,allowedAutoPlacements:m}):n)}),[]),w=t.rects.reference,x=t.rects.popper,E=new Map,S=!0,k=b[0],j=0;j<b.length;j++){var O=b[j],C=mg(O),N=ty(O)===qg,T=[Bg,zg].indexOf(C)>=0,P=T?"width":"height",L=wy(t,{placement:O,boundary:u,rootBoundary:f,altBoundary:d,padding:c}),R=T?N?Ug:Hg:N?zg:Bg;w[P]>x[P]&&(R=ly(R));var A=ly(R),_=[];if(i&&_.push(L[C]<=0),s&&_.push(L[R]<=0,L[A]<=0),_.every((function(e){return e}))){k=O,S=!1;break}E.set(O,_)}if(S)for(var I=function(e){var t=b.find((function(t){var n=E.get(t);if(n)return n.slice(0,e).every((function(e){return e}))}));if(t)return k=t,"break"},M=h?3:1;M>0;M--){if("break"===I(M))break}t.placement!==k&&(t.modifiersData[r]._skip=!0,t.placement=k,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function Ey(e,t,n){return void 0===n&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function Sy(e){return[Bg,Ug,zg,Hg].some((function(t){return e[t]>=0}))}const ky={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.options,r=e.name,o=n.offset,i=void 0===o?[0,0]:o,a=Jg.reduce((function(e,n){return e[n]=function(e,t,n){var r=mg(e),o=[Hg,Bg].indexOf(r)>=0?-1:1,i="function"===typeof n?n(Object.assign({},t,{placement:e})):n,a=i[0],s=i[1];return a=a||0,s=(s||0)*o,[Hg,Ug].indexOf(r)>=0?{x:s,y:a}:{x:a,y:s}}(n,t.rects,i),e}),{}),s=a[t.placement],l=s.x,c=s.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=c),t.modifiersData[r]=a}};const jy={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,i=void 0===o||o,a=n.altAxis,s=void 0!==a&&a,l=n.boundary,c=n.rootBoundary,u=n.altBoundary,f=n.padding,d=n.tether,p=void 0===d||d,h=n.tetherOffset,m=void 0===h?0:h,g=wy(t,{boundary:l,rootBoundary:c,padding:f,altBoundary:u}),y=mg(t.placement),v=ty(t.placement),b=!v,w=Ig(y),x="x"===w?"y":"x",E=t.modifiersData.popperOffsets,S=t.rects.reference,k=t.rects.popper,j="function"===typeof m?m(Object.assign({},t.rects,{placement:t.placement})):m,O="number"===typeof j?{mainAxis:j,altAxis:j}:Object.assign({mainAxis:0,altAxis:0},j),C=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,N={x:0,y:0};if(E){if(i){var T,P="y"===w?Bg:Hg,L="y"===w?zg:Ug,R="y"===w?"height":"width",A=E[w],_=A+g[P],I=A-g[L],M=p?-k[R]/2:0,D=v===qg?S[R]:k[R],F=v===qg?-k[R]:-S[R],B=t.elements.arrow,z=p&&B?Og(B):{width:0,height:0},U=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},H=U[P],W=U[L],V=Mg(0,S[R],z[R]),q=b?S[R]/2-M-V-H-O.mainAxis:D-V-H-O.mainAxis,$=b?-S[R]/2+M+V+W+O.mainAxis:F+V+W+O.mainAxis,K=t.elements.arrow&&_g(t.elements.arrow),G=K?"y"===w?K.clientTop||0:K.clientLeft||0:0,Y=null!=(T=null==C?void 0:C[w])?T:0,Q=A+$-Y,X=Mg(p?xg(_,A+q-Y-G):_,A,p?wg(I,Q):I);E[w]=X,N[w]=X-A}if(s){var J,Z="x"===w?Bg:Hg,ee="x"===w?zg:Ug,te=E[x],ne="y"===x?"height":"width",re=te+g[Z],oe=te-g[ee],ie=-1!==[Bg,Hg].indexOf(y),ae=null!=(J=null==C?void 0:C[x])?J:0,se=ie?re:te-S[ne]-k[ne]-ae+O.altAxis,le=ie?te+S[ne]+k[ne]-ae-O.altAxis:oe,ce=p&&ie?function(e,t,n){var r=Mg(e,t,n);return r>n?n:r}(se,te,le):Mg(p?se:re,te,p?le:oe);E[x]=ce,N[x]=ce-te}t.modifiersData[r]=N}},requiresIfExists:["offset"]};function Oy(e,t,n){void 0===n&&(n=!1);var r=vg(t),o=vg(t)&&function(e){var t=e.getBoundingClientRect(),n=Eg(t.width)/e.offsetWidth||1,r=Eg(t.height)/e.offsetHeight||1;return 1!==n||1!==r}(t),i=Lg(t),a=jg(e,o,n),s={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!n)&&(("body"!==Ng(t)||py(i))&&(s=function(e){return e!==gg(e)&&vg(e)?{scrollLeft:(t=e).scrollLeft,scrollTop:t.scrollTop}:fy(e);var t}(t)),vg(t)?((l=jg(t,!0)).x+=t.clientLeft,l.y+=t.clientTop):i&&(l.x=dy(i))),{x:a.left+s.scrollLeft-l.x,y:a.top+s.scrollTop-l.y,width:a.width,height:a.height}}function Cy(e){var t=new Map,n=new Set,r=[];function o(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach((function(e){if(!n.has(e)){var r=t.get(e);r&&o(r)}})),r.push(e)}return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){n.has(e.name)||o(e)})),r}function Ny(e){var t;return function(){return t||(t=new Promise((function(n){Promise.resolve().then((function(){t=void 0,n(e())}))}))),t}}var Ty={placement:"bottom",modifiers:[],strategy:"absolute"};function Py(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some((function(e){return!(e&&"function"===typeof e.getBoundingClientRect)}))}function Ly(e){void 0===e&&(e={});var t=e,n=t.defaultModifiers,r=void 0===n?[]:n,o=t.defaultOptions,i=void 0===o?Ty:o;return function(e,t,n){void 0===n&&(n=i);var o={placement:"bottom",orderedModifiers:[],options:Object.assign({},Ty,i),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},a=[],s=!1,l={state:o,setOptions:function(n){var s="function"===typeof n?n(o.options):n;c(),o.options=Object.assign({},i,o.options,s),o.scrollParents={reference:yg(e)?my(e):e.contextElement?my(e.contextElement):[],popper:my(t)};var u=function(e){var t=Cy(e);return Zg.reduce((function(e,n){return e.concat(t.filter((function(e){return e.phase===n})))}),[])}(function(e){var t=e.reduce((function(e,t){var n=e[t.name];return e[t.name]=n?Object.assign({},n,t,{options:Object.assign({},n.options,t.options),data:Object.assign({},n.data,t.data)}):t,e}),{});return Object.keys(t).map((function(e){return t[e]}))}([].concat(r,o.options.modifiers)));return o.orderedModifiers=u.filter((function(e){return e.enabled})),o.orderedModifiers.forEach((function(e){var t=e.name,n=e.options,r=void 0===n?{}:n,i=e.effect;if("function"===typeof i){var s=i({state:o,name:t,instance:l,options:r}),c=function(){};a.push(s||c)}})),l.update()},forceUpdate:function(){if(!s){var e=o.elements,t=e.reference,n=e.popper;if(Py(t,n)){o.rects={reference:Oy(t,_g(n),"fixed"===o.options.strategy),popper:Og(n)},o.reset=!1,o.placement=o.options.placement,o.orderedModifiers.forEach((function(e){return o.modifiersData[e.name]=Object.assign({},e.data)}));for(var r=0;r<o.orderedModifiers.length;r++)if(!0!==o.reset){var i=o.orderedModifiers[r],a=i.fn,c=i.options,u=void 0===c?{}:c,f=i.name;"function"===typeof a&&(o=a({state:o,options:u,name:f,instance:l})||o)}else o.reset=!1,r=-1}}},update:Ny((function(){return new Promise((function(e){l.forceUpdate(),e(o)}))})),destroy:function(){c(),s=!0}};if(!Py(e,t))return l;function c(){a.forEach((function(e){return e()})),a=[]}return l.setOptions(n).then((function(e){!s&&n.onFirstUpdate&&n.onFirstUpdate(e)})),l}}const Ry=Ly({defaultModifiers:[{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,i=t.modifiersData.preventOverflow,a=wy(t,{elementContext:"reference"}),s=wy(t,{altBoundary:!0}),l=Ey(a,r),c=Ey(s,o,i),u=Sy(l),f=Sy(c);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:f},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":f})}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=by({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}},oy,ay,ky,xy,jy,ey]}),Ay=["enabled","placement","strategy","modifiers"];const _y={name:"applyStyles",enabled:!1,phase:"afterWrite",fn:()=>{}},Iy={name:"ariaDescribedBy",enabled:!0,phase:"afterWrite",effect:e=>{let{state:t}=e;return()=>{const{reference:e,popper:n}=t.elements;if("removeAttribute"in e){const t=(e.getAttribute("aria-describedby")||"").split(",").filter((e=>e.trim()!==n.id));t.length?e.setAttribute("aria-describedby",t.join(",")):e.removeAttribute("aria-describedby")}}},fn:e=>{let{state:t}=e;var n;const{popper:r,reference:o}=t.elements,i=null==(n=r.getAttribute("role"))?void 0:n.toLowerCase();if(r.id&&"tooltip"===i&&"setAttribute"in o){const e=o.getAttribute("aria-describedby");if(e&&-1!==e.split(",").indexOf(r.id))return;o.setAttribute("aria-describedby",e?"".concat(e,",").concat(r.id):r.id)}}},My=[];const Dy=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{enabled:o=!0,placement:i="bottom",strategy:a="absolute",modifiers:s=My}=n,l=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(n,Ay);const c=(0,r.useRef)(s),u=(0,r.useRef)(),f=(0,r.useCallback)((()=>{var e;null==(e=u.current)||e.update()}),[]),d=(0,r.useCallback)((()=>{var e;null==(e=u.current)||e.forceUpdate()}),[]),[p,h]=hg((0,r.useState)({placement:i,update:f,forceUpdate:d,attributes:{},styles:{popper:{},arrow:{}}})),m=(0,r.useMemo)((()=>({name:"updateStateModifier",enabled:!0,phase:"write",requires:["computeStyles"],fn:e=>{let{state:t}=e;const n={},r={};Object.keys(t.elements).forEach((e=>{n[e]=t.styles[e],r[e]=t.attributes[e]})),h({state:t,styles:n,attributes:r,update:f,forceUpdate:d,placement:t.placement})}})),[f,d,h]),g=(0,r.useMemo)((()=>(pg(c.current,s)||(c.current=s),c.current)),[s]);return(0,r.useEffect)((()=>{u.current&&o&&u.current.setOptions({placement:i,strategy:a,modifiers:[...g,m,_y]})}),[a,i,m,o,g]),(0,r.useEffect)((()=>{if(o&&null!=e&&null!=t)return u.current=Ry(e,t,Object.assign({},l,{placement:i,strategy:a,modifiers:[...g,Iy,m]})),()=>{null!=u.current&&(u.current.destroy(),u.current=void 0,h((e=>Object.assign({},e,{attributes:{},styles:{popper:{}}}))))}}),[o,e,t]),p},Fy=()=>{};const By=e=>e&&("current"in e?e.current:e),zy={click:"mousedown",mouseup:"mousedown",pointerup:"pointerdown"};const Uy=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Fy,{disabled:n,clickTrigger:o="click"}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const i=(0,r.useRef)(!1),a=(0,r.useRef)(!1),s=(0,r.useCallback)((t=>{const n=By(e);var r;ug()(!!n,"ClickOutside captured a close event but does not have a ref to compare it to. useClickOutside(), should be passed a ref that resolves to a DOM node"),i.current=!n||!!((r=t).metaKey||r.altKey||r.ctrlKey||r.shiftKey)||!function(e){return 0===e.button}(t)||!!_i(n,t.target)||a.current,a.current=!1}),[e]),l=wi((t=>{const n=By(e);n&&_i(n,t.target)&&(a.current=!0)})),c=wi((e=>{i.current||t(e)}));(0,r.useEffect)((()=>{var t,r;if(n||null==e)return;const i=hi(By(e)),a=i.defaultView||window;let u=null!=(t=a.event)?t:null==(r=a.parent)?void 0:r.event,f=null;zy[o]&&(f=Pi(i,zy[o],l,!0));const d=Pi(i,o,s,!0),p=Pi(i,o,(e=>{e!==u?c(e):u=void 0}));let h=[];return"ontouchstart"in i.documentElement&&(h=[].slice.call(i.body.children).map((e=>Pi(e,"mousemove",Fy)))),()=>{null==f||f(),d(),p(),h.forEach((e=>e()))}}),[e,n,o,s,l,c])},Hy=()=>{};const Wy=function(e,t){let{disabled:n,clickTrigger:o}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const i=t||Hy;Uy(e,i,{disabled:n,clickTrigger:o});const a=wi((e=>{ta(e)&&i(e)}));(0,r.useEffect)((()=>{if(n||null==e)return;const t=hi(By(e));let r=(t.defaultView||window).event;const o=Pi(t,"keyup",(e=>{e!==r?a(e):r=void 0}));return()=>{o()}}),[e,n,a])};function Vy(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Array.isArray(e)?e:Object.keys(e).map((t=>(e[t].name=t,e[t])))}function qy(e){let{enabled:t,enableEvents:n,placement:r,flip:o,offset:i,fixed:a,containerPadding:s,arrowElement:l,popperConfig:c={}}=e;var u,f,d,p,h;const m=function(e){const t={};return Array.isArray(e)?(null==e||e.forEach((e=>{t[e.name]=e})),t):e||t}(c.modifiers);return Object.assign({},c,{placement:r,enabled:t,strategy:a?"fixed":c.strategy,modifiers:Vy(Object.assign({},m,{eventListeners:{enabled:n,options:null==(u=m.eventListeners)?void 0:u.options},preventOverflow:Object.assign({},m.preventOverflow,{options:s?Object.assign({padding:s},null==(f=m.preventOverflow)?void 0:f.options):null==(d=m.preventOverflow)?void 0:d.options}),offset:{options:Object.assign({offset:i},null==(p=m.offset)?void 0:p.options)},arrow:Object.assign({},m.arrow,{enabled:!!l,options:Object.assign({},null==(h=m.arrow)?void 0:h.options,{element:l})}),flip:Object.assign({enabled:!!o},m.flip)}))})}const $y=r.forwardRef(((e,t)=>{const{flip:n,offset:o,placement:i,containerPadding:s,popperConfig:l={},transition:c,runTransition:u}=e,[f,d]=vi(),[p,h]=vi(),m=Ei(d,t),g=Vi(e.container),y=Vi(e.target),[v,b]=(0,r.useState)(!e.show),w=Dy(y,f,qy({placement:i,enableEvents:!!e.show,containerPadding:s||5,flip:n,offset:o,arrowElement:p,popperConfig:l}));e.show&&v&&b(!1);const x=e.show||!v;if(Wy(f,e.onHide,{disabled:!e.rootClose||e.rootCloseDisabled,clickTrigger:e.rootCloseEvent}),!x)return null;const{onExit:E,onExiting:S,onEnter:k,onEntering:j,onEntered:O}=e;let C=e.children(Object.assign({},w.attributes.popper,{style:w.styles.popper,ref:m}),{popper:w,placement:i,show:!!e.show,arrowProps:Object.assign({},w.attributes.arrow,{style:w.styles.arrow,ref:h})});return C=ea(c,u,{in:!!e.show,appear:!0,mountOnEnter:!0,unmountOnExit:!0,children:C,onExit:E,onExiting:S,onExited:function(){b(!0),e.onExited&&e.onExited(...arguments)},onEnter:k,onEntering:j,onEntered:O}),g?a.createPortal(C,g):null}));$y.displayName="Overlay";const Ky=$y,Gy=r.forwardRef(((e,t)=>{let{className:n,bsPrefix:r,as:o="div",...i}=e;return r=ri(r,"popover-header"),(0,At.jsx)(o,{ref:t,className:Xo()(n,r),...i})}));Gy.displayName="PopoverHeader";const Yy=Gy,Qy=r.forwardRef(((e,t)=>{let{className:n,bsPrefix:r,as:o="div",...i}=e;return r=ri(r,"popover-body"),(0,At.jsx)(o,{ref:t,className:Xo()(n,r),...i})}));Qy.displayName="PopoverBody";const Xy=Qy;r.Component;function Jy(e,t){let n=e;return"left"===e?n=t?"end":"start":"right"===e&&(n=t?"start":"end"),n}function Zy(){return{position:arguments.length>0&&void 0!==arguments[0]?arguments[0]:"absolute",top:"0",left:"0",opacity:"0",pointerEvents:"none"}}const ev=r.forwardRef(((e,t)=>{let{bsPrefix:n,placement:r="right",className:o,style:i,children:a,body:s,arrowProps:l,hasDoneInitialMeasure:c,popper:u,show:f,...d}=e;const p=ri(n,"popover"),h=ai(),[m]=(null==r?void 0:r.split("-"))||[],g=Jy(m,h);let y=i;return f&&!c&&(y={...i,...Zy(null==u?void 0:u.strategy)}),(0,At.jsxs)("div",{ref:t,role:"tooltip",style:y,"x-placement":m,className:Xo()(o,p,m&&"bs-popover-".concat(g)),...d,children:[(0,At.jsx)("div",{className:"popover-arrow",...l}),s?(0,At.jsx)(Xy,{children:a}):a]})})),tv=Object.assign(ev,{Header:Yy,Body:Xy,POPPER_OFFSET:[0,8]}),nv=r.forwardRef(((e,t)=>{let{bsPrefix:n,placement:r="right",className:o,style:i,children:a,arrowProps:s,hasDoneInitialMeasure:l,popper:c,show:u,...f}=e;n=ri(n,"tooltip");const d=ai(),[p]=(null==r?void 0:r.split("-"))||[],h=Jy(p,d);let m=i;return u&&!l&&(m={...i,...Zy(null==c?void 0:c.strategy)}),(0,At.jsxs)("div",{ref:t,style:m,role:"tooltip","x-placement":p,className:Xo()(o,n,"bs-tooltip-".concat(h)),...f,children:[(0,At.jsx)("div",{className:"tooltip-arrow",...s}),(0,At.jsx)("div",{className:"".concat(n,"-inner"),children:a})]})}));nv.displayName="Tooltip";const rv=Object.assign(nv,{TOOLTIP_OFFSET:[0,6]});const ov=r.forwardRef(((e,t)=>{let{children:n,transition:o=Ia,popperConfig:i={},rootClose:a=!1,placement:s="top",show:l=!1,...c}=e;const u=(0,r.useRef)({}),[f,d]=(0,r.useState)(null),[p,h]=function(e){const t=(0,r.useRef)(null),n=ri(void 0,"popover"),o=ri(void 0,"tooltip"),i=(0,r.useMemo)((()=>({name:"offset",options:{offset:()=>{if(e)return e;if(t.current){if(sa(t.current,n))return tv.POPPER_OFFSET;if(sa(t.current,o))return rv.TOOLTIP_OFFSET}return[0,0]}}})),[e,n,o]);return[t,[i]]}(c.offset),m=Ei(t,p),g=!0===o?Ia:o||void 0,y=wi((e=>{d(e),null==i||null==i.onFirstUpdate||i.onFirstUpdate(e)}));return $i((()=>{f&&c.target&&(null==u.current.scheduleUpdate||u.current.scheduleUpdate())}),[f,c.target]),(0,r.useEffect)((()=>{l||d(null)}),[l]),(0,At.jsx)(Ky,{...c,ref:m,popperConfig:{...i,modifiers:h.concat(i.modifiers||[]),onFirstUpdate:y},transition:g,rootClose:a,placement:s,show:l,children:(e,t)=>{let{arrowProps:a,popper:s,show:l}=t;var c,d;!function(e,t){const{ref:n}=e,{ref:r}=t;e.ref=n.__wrapped||(n.__wrapped=e=>n(Pa(e))),t.ref=r.__wrapped||(r.__wrapped=e=>r(Pa(e)))}(e,a);const p=null==s?void 0:s.placement,h=Object.assign(u.current,{state:null==s?void 0:s.state,scheduleUpdate:null==s?void 0:s.update,placement:p,outOfBoundaries:(null==s||null==(c=s.state)||null==(d=c.modifiersData.hide)?void 0:d.isReferenceHidden)||!1,strategy:i.strategy}),m=!!f;return"function"===typeof n?n({...e,placement:p,show:l,...!o&&l&&{className:"show"},popper:h,arrowProps:a,hasDoneInitialMeasure:m}):r.cloneElement(n,{...e,placement:p,arrowProps:a,popper:h,hasDoneInitialMeasure:m,className:Xo()(n.props.className,!o&&l&&"show"),style:{...n.props.style,...e.style}})}})}));ov.displayName="Overlay";const iv=ov;function av(e,t,n){const[r]=t,o=r.currentTarget,i=r.relatedTarget||r.nativeEvent[n];i&&i===o||_i(o,i)||e(...t)}Te().oneOf(["click","hover","focus"]);const sv=e=>{let{trigger:t=["hover","focus"],overlay:n,children:o,popperConfig:i={},show:a,defaultShow:s=!1,onToggle:l,delay:c,placement:u,flip:f=u&&-1!==u.indexOf("auto"),...d}=e;const p=(0,r.useRef)(null),h=Ei(p,o.ref),m=lg(),g=(0,r.useRef)(""),[y,v]=Pm(a,s,l),b=function(e){return e&&"object"===typeof e?e:{show:e,hide:e}}(c),{onFocus:w,onBlur:x,onClick:E}="function"!==typeof o?r.Children.only(o).props:{},S=(0,r.useCallback)((()=>{m.clear(),g.current="show",b.show?m.set((()=>{"show"===g.current&&v(!0)}),b.show):v(!0)}),[b.show,v,m]),k=(0,r.useCallback)((()=>{m.clear(),g.current="hide",b.hide?m.set((()=>{"hide"===g.current&&v(!1)}),b.hide):v(!1)}),[b.hide,v,m]),j=(0,r.useCallback)((function(){S(),null==w||w(...arguments)}),[S,w]),O=(0,r.useCallback)((function(){k(),null==x||x(...arguments)}),[k,x]),C=(0,r.useCallback)((function(){v(!y),null==E||E(...arguments)}),[E,v,y]),N=(0,r.useCallback)((function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];av(S,t,"fromElement")}),[S]),T=(0,r.useCallback)((function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];av(k,t,"toElement")}),[k]),P=null==t?[]:[].concat(t),L={ref:e=>{h(Pa(e))}};return-1!==P.indexOf("click")&&(L.onClick=C),-1!==P.indexOf("focus")&&(L.onFocus=j,L.onBlur=O),-1!==P.indexOf("hover")&&(L.onMouseOver=N,L.onMouseOut=T),(0,At.jsxs)(At.Fragment,{children:["function"===typeof o?o(L):(0,r.cloneElement)(o,L),(0,At.jsx)(iv,{...d,show:y,onHide:k,flip:f,placement:u,popperConfig:i,target:p.current,children:n})]})};var lv=function(e,t){return lv=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},lv(e,t)};var cv=50,uv=50;function fv(e){var t=e.className,n=e.counterClockwise,o=e.dashRatio,i=e.pathRadius,a=e.strokeWidth,s=e.style;return(0,r.createElement)("path",{className:t,style:Object.assign({},s,pv({pathRadius:i,dashRatio:o,counterClockwise:n})),d:dv({pathRadius:i,counterClockwise:n}),strokeWidth:a,fillOpacity:0})}function dv(e){var t=e.pathRadius,n=e.counterClockwise?1:0;return"\n M "+cv+","+uv+"\n m 0,-"+t+"\n a "+t+","+t+" "+n+" 1 1 0,"+2*t+"\n a "+t+","+t+" "+n+" 1 1 0,-"+2*t+"\n "}function pv(e){var t=e.counterClockwise,n=e.dashRatio,r=e.pathRadius,o=2*Math.PI*r,i=(1-n)*o;return{strokeDasharray:o+"px "+o+"px",strokeDashoffset:(t?-i:i)+"px"}}!function(e){function t(){return null!==e&&e.apply(this,arguments)||this}(function(e,t){function n(){this.constructor=e}lv(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)})(t,e),t.prototype.getBackgroundPadding=function(){return this.props.background?this.props.backgroundPadding:0},t.prototype.getPathRadius=function(){return 50-this.props.strokeWidth/2-this.getBackgroundPadding()},t.prototype.getPathRatio=function(){var e=this.props,t=e.value,n=e.minValue,r=e.maxValue;return(Math.min(Math.max(t,n),r)-n)/(r-n)},t.prototype.render=function(){var e=this.props,t=e.circleRatio,n=e.className,o=e.classes,i=e.counterClockwise,a=e.styles,s=e.strokeWidth,l=e.text,c=this.getPathRadius(),u=this.getPathRatio();return(0,r.createElement)("svg",{className:o.root+" "+n,style:a.root,viewBox:"0 0 100 100","data-test-id":"CircularProgressbar"},this.props.background?(0,r.createElement)("circle",{className:o.background,style:a.background,cx:cv,cy:uv,r:50}):null,(0,r.createElement)(fv,{className:o.trail,counterClockwise:i,dashRatio:t,pathRadius:c,strokeWidth:s,style:a.trail}),(0,r.createElement)(fv,{className:o.path,counterClockwise:i,dashRatio:u*t,pathRadius:c,strokeWidth:s,style:a.path}),l?(0,r.createElement)("text",{className:o.text,style:a.text,x:cv,y:uv},l):null)},t.defaultProps={background:!1,backgroundPadding:0,circleRatio:1,classes:{root:"CircularProgressbar",trail:"CircularProgressbar-trail",path:"CircularProgressbar-path",text:"CircularProgressbar-text",background:"CircularProgressbar-background"},counterClockwise:!1,className:"",maxValue:100,minValue:0,strokeWidth:8,styles:{root:{},trail:{},path:{},text:{},background:{}},text:""}}(r.Component);const hv=r.createContext({}),mv=!0;function gv(e){let{baseColor:t,highlightColor:n,width:r,height:o,borderRadius:i,circle:a,direction:s,duration:l,enableAnimation:c=mv}=e;const u={};return"rtl"===s&&(u["--animation-direction"]="reverse"),"number"===typeof l&&(u["--animation-duration"]="".concat(l,"s")),c||(u["--pseudo-element-display"]="none"),"string"!==typeof r&&"number"!==typeof r||(u.width=r),"string"!==typeof o&&"number"!==typeof o||(u.height=o),"string"!==typeof i&&"number"!==typeof i||(u.borderRadius=i),a&&(u.borderRadius="50%"),"undefined"!==typeof t&&(u["--base-color"]=t),"undefined"!==typeof n&&(u["--highlight-color"]=n),u}function yv(e){let{count:t=1,wrapper:n,className:o,containerClassName:i,containerTestId:a,circle:s=!1,style:l,...c}=e;var u,f,d;const p=r.useContext(hv),h={...c};for(const[r,x]of Object.entries(c))"undefined"===typeof x&&delete h[r];const m={...p,...h,circle:s},g={...l,...gv(m)};let y="react-loading-skeleton";o&&(y+=" ".concat(o));const v=null!==(u=m.inline)&&void 0!==u&&u,b=[],w=Math.ceil(t);for(let x=0;x<w;x++){let e=g;if(w>t&&x===w-1){const n=null!==(f=e.width)&&void 0!==f?f:"100%",r=t%1,o="number"===typeof n?n*r:"calc(".concat(n," * ").concat(r,")");e={...e,width:o}}const n=r.createElement("span",{className:y,style:e,key:x},"\u200c");v?b.push(n):b.push(r.createElement(r.Fragment,{key:x},n,r.createElement("br",null)))}return r.createElement("span",{className:i,"data-testid":a,"aria-live":"polite","aria-busy":null!==(d=m.enableAnimation)&&void 0!==d?d:mv},n?b.map(((e,t)=>r.createElement(n,{key:t},e))):b)}const vv=()=>(0,At.jsx)(At.Fragment,{children:(0,At.jsxs)("div",{className:"no-bot-exists-card",children:[(0,At.jsx)("div",{className:"no-bot-exists-img-sec",children:(0,At.jsx)(li,{className:"no-bot-exists-img",src:window.location.origin+"/img/nodata-found-img.png"})}),(0,At.jsx)("div",{className:"no-bot-exists-info",children:(0,At.jsx)("h4",{children:"No Data Found"})})]})}),bv=e=>{const t=rn(),n=Gt((e=>e.common.trainedFileInfo)),o=Gt((e=>e.common.trainLLM)),[i,a]=r.useState(!0);return(0,r.useEffect)((()=>{!i&&Object.keys(n.data).length>0&&e.setStep(1),a(!1)}),[n]),(0,At.jsx)(At.Fragment,{children:(0,At.jsx)("div",{className:"file-uploading-processing-frame",children:n.buttonDisable?(0,At.jsxs)(At.Fragment,{children:[(0,At.jsx)(yv,{circle:!0,height:150,width:150}),(0,At.jsx)(yv,{height:20,width:200}),(0,At.jsx)(yv,{height:50,width:200})]}):Object.keys(n.data).length>0?(0,At.jsxs)(r.Fragment,{children:[o.loading?(0,At.jsxs)("div",{className:"processing-frame",children:[(0,At.jsx)(li,{className:"btn-loader",src:window.location.origin+"/img/btn-loader.gif"}),(0,At.jsx)("span",{children:"Training Initiated..."})]}):(0,At.jsxs)(At.Fragment,{children:[(0,At.jsx)("div",{className:"file-upload-initisat-status",children:(0,At.jsx)("span",{className:"file-initisat-success",children:(0,At.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",x:"0",y:"0",enableBackground:"new 0 0 507.506 507.506",version:"1.1",viewBox:"0 0 507.506 507.506",xmlSpace:"preserve",fill:"#195097",children:(0,At.jsx)("path",{d:"M163.865 436.934a54.228 54.228 0 01-38.4-15.915L9.369 304.966c-12.492-12.496-12.492-32.752 0-45.248 12.496-12.492 32.752-12.492 45.248 0l109.248 109.248L452.889 79.942c12.496-12.492 32.752-12.492 45.248 0 12.492 12.496 12.492 32.752 0 45.248L202.265 421.019a54.228 54.228 0 01-38.4 15.915z"})})})}),(0,At.jsx)("span",{className:"training-msg",children:"Training Completed Successfully."})]}),(0,At.jsx)("div",{className:"file-uploading-processing-action text-center",children:(0,At.jsx)(cs,{className:"file-processing-btn",disabled:n.buttonDisable,onClick:()=>t(go({user_id:"123",bot_id:"12345"})),children:n.buttonDisable?"Loading":"Refresh Status"})})]}):(0,At.jsx)(vv,{})})})},wv=e=>{const t=rn(),n=Gt((e=>e.common.trainedFileInfo)),r=Gt((e=>e.common.trainLLM));return(0,At.jsx)(At.Fragment,{children:n.buttonDisable?(0,At.jsx)(yv,{height:50,width:200}):Object.keys(n.data).length>0?(0,At.jsxs)("div",{className:"file-upload-initisat-frame",children:[n.data.data.non_trained_file_names.length>0?(0,At.jsx)("div",{className:"file-upload-initisat-status",children:(0,At.jsx)("span",{className:"file-initisat-success",children:(0,At.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",x:"0",y:"0",enableBackground:"new 0 0 507.506 507.506",version:"1.1",viewBox:"0 0 507.506 507.506",xmlSpace:"preserve",fill:"#195097",children:(0,At.jsx)("path",{d:"M163.865 436.934a54.228 54.228 0 01-38.4-15.915L9.369 304.966c-12.492-12.496-12.492-32.752 0-45.248 12.496-12.492 32.752-12.492 45.248 0l109.248 109.248L452.889 79.942c12.496-12.492 32.752-12.492 45.248 0 12.492 12.496 12.492 32.752 0 45.248L202.265 421.019a54.228 54.228 0 01-38.4 15.915z"})})})}):(0,At.jsx)(li,{style:{width:"300px",marginBottom:"1em"},className:"file-upload-option-img",src:window.location.origin+"/img/upload/upload-right-img.png",type:"image/png"}),(0,At.jsxs)("div",{className:"file-upload-initisat-info",children:[n.data.data.non_trained_file_names.length>0?(0,At.jsxs)("h3",{children:[n.data.data.non_trained_file_names.length," Files Uploaded Successfully"]}):(0,At.jsx)("h3",{children:" Please Upload Files To Initiate Training."}),n.data.data.non_trained_file_names.length>0&&(0,At.jsx)("p",{children:"All the files are prepared and ready for bot training"})]}),(0,At.jsxs)("div",{className:"file-upload-initisat-action",children:[(0,At.jsx)(cs,{disabled:n.data.data.non_trained_file_names.length<1||r.buttonDisable,onClick:()=>{t(po({user_id:"123",bot_id:"12345"})),e.setStep(2)},className:"default-green-btn",children:r.buttonDisable?"Loading":"Initiate Training"}),(0,At.jsxs)(je,{style:{textDecoration:"none",display:"flex",alignItems:"center"},to:"/upload",className:"btn-no-border-bg",children:[(0,At.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"#195097",children:(0,At.jsx)("path",{d:"M16.5 10.5h-3v-3a1.5 1.5 0 00-3 0v3h-3a1.5 1.5 0 000 3h3v3a1.5 1.5 0 003 0v-3h3a1.5 1.5 0 000-3z"})}),(0,At.jsx)("span",{children:"Add Files..."})]})]})]}):(0,At.jsx)(vv,{})})},xv=e=>{const t=rn(),n=Gt((e=>e.common.trainedFileInfo)),o=Gt((e=>e.common.contextList)),[i,a]=(0,r.useState)(1),s=ee();return(0,r.useEffect)((()=>{a(1),t(_o({bot_id:12345,user_id:123})),t(go({user_id:"123",bot_id:"12345"}))}),[]),(0,At.jsx)(At.Fragment,{children:(0,At.jsx)("div",{className:"admin-ui-body-sec",children:(0,At.jsx)("div",{className:"file-upload-sec-wrapped",children:(0,At.jsxs)(Uf,{children:[(0,At.jsx)(Wf,{md:5,children:(0,At.jsxs)("div",{className:"file-uploading-processing-wrapped",children:[1==i&&(0,At.jsx)(wv,{setStep:a}),2==i&&(0,At.jsx)(bv,{setStep:a})]})}),(0,At.jsx)(Wf,{md:7,children:(0,At.jsxs)("div",{className:"file-upload-file-card-wrapped",children:[(0,At.jsxs)("div",{className:"file-upload-title",children:[(0,At.jsx)("div",{className:"file-upload-title-info",children:(0,At.jsx)("h4",{children:"Training Files"})}),(0,At.jsx)("div",{className:"file-upload-title-btn",children:(0,At.jsx)(cs,{className:"btn-no-border-bg",children:"Remove All"})})]}),(0,At.jsx)("div",{className:"file-tabs-card-wrapped",children:(0,At.jsxs)(Om.Container,{id:"file-uploading-tabs",defaultActiveKey:"all",children:[(0,At.jsxs)(ig,{variant:"pills",className:"flex-row",children:[(0,At.jsx)(ig.Item,{children:(0,At.jsxs)(ig.Link,{eventKey:"all",children:["All Uploads",(0,At.jsx)("span",{children:n.buttonDisable?"-":Object.keys(n.data).length>0?n.data.data.trained_file_names.length+n.data.data.non_trained_file_names.length:"0"})]})}),(0,At.jsx)(ig.Item,{children:(0,At.jsxs)(ig.Link,{eventKey:"complete",children:["Completed ",(0,At.jsx)("span",{children:n.buttonDisable?"-":Object.keys(n.data).length>0?n.data.data.trained_file_names.length:"0"})," "]})}),(0,At.jsx)(ig.Item,{children:(0,At.jsxs)(ig.Link,{eventKey:"faile",children:["Incomplete ",(0,At.jsx)("span",{children:n.buttonDisable?"-":Object.keys(n.data).length>0?n.data.data.non_trained_file_names.length:"0"})," "]})})]}),(0,At.jsxs)(Om.Content,{children:[(0,At.jsx)(Om.Pane,{eventKey:"all",children:(0,At.jsx)("div",{className:"file-uploading-wrapped",children:n.buttonDisable?(0,At.jsx)(yv,{className:"mb-2",containerClassName:"skeleton",count:5,height:60}):Object.keys(n.data).length>0&&(n.data.data.trained_file_names.length>0||n.data.data.non_trained_file_names.length>0)?(0,At.jsxs)(r.Fragment,{children:[n.data.data.trained_file_names.length>0?n.data.data.trained_file_names.map(((e,n)=>(0,At.jsxs)("div",{className:"file-upload-full-card",children:[(0,At.jsxs)("div",{className:"file-upload-full-card-info",children:[(0,At.jsx)("div",{className:"file-upload-card-icon",children:(0,At.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",x:"0",y:"0",enableBackground:"new 0 0 507.506 507.506",version:"1.1",viewBox:"0 0 507.506 507.506",xmlSpace:"preserve",fill:"#195097",children:(0,At.jsx)("path",{d:"M163.865 436.934a54.228 54.228 0 01-38.4-15.915L9.369 304.966c-12.492-12.496-12.492-32.752 0-45.248 12.496-12.492 32.752-12.492 45.248 0l109.248 109.248L452.889 79.942c12.496-12.492 32.752-12.492 45.248 0 12.492 12.496 12.492 32.752 0 45.248L202.265 421.019a54.228 54.228 0 01-38.4 15.915z"})})}),(0,At.jsx)("div",{className:"file-upload-card-info",children:(0,At.jsx)("h4",{children:e})}),(0,At.jsx)("div",{className:"file-upload-card-size",children:(0,At.jsx)("p",{className:"file-upload-type",children:e.substring(e.lastIndexOf(".")+1).toUpperCase()})})]}),(0,At.jsxs)("div",{className:"file-upload-full-card-btn",style:{display:"flex",gap:"1em"},children:[(0,At.jsx)(sv,{placement:"top",trigger:["hover"],overlay:(0,At.jsx)(rv,{id:"tooltip",children:(0,At.jsx)("strong",{children:"New Thread"})}),children:(0,At.jsx)(cs,{className:"new-threads-btn",onClick:()=>{return n=e,void(!o.buttonDisable&&Object.keys(o.data).length>0&&(t(Ko(n)),s("/chat")));var n},children:(0,At.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",fill:"none",viewBox:"0 0 20 18",children:[(0,At.jsxs)("g",{clipPath:"url(#clip0_117_1767)",children:[(0,At.jsx)("path",{fill:"#195097",fillRule:"evenodd",d:"M10.8 1.338H4.333c-1.149 0-2.251.47-3.064 1.306A4.526 4.526 0 000 5.797V16.5a.913.913 0 00.254.63.854.854 0 00.613.261H13c1.15 0 2.251-.47 3.064-1.306a4.526 4.526 0 001.27-3.153V9.365c-3.682 0-6.667-2.995-6.667-6.69 0-.457.046-.905.133-1.337zM5.49 7.806a.854.854 0 01.576-.225c.23 0 .45.094.614.261a.907.907 0 01.254.63v1.784l-.007.105a.899.899 0 01-.304.578.85.85 0 01-1.187-.071.907.907 0 01-.236-.612V8.473l.006-.105a.899.899 0 01.285-.562zm5.164.036a.845.845 0 011.226 0 .904.904 0 01.254.63v1.784a.904.904 0 01-.254.631.851.851 0 01-1.226 0 .907.907 0 01-.254-.63V8.472c0-.237.091-.464.254-.63z",clipRule:"evenodd"}),(0,At.jsx)("path",{stroke:"#195097",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M13.913 3.545h2.667m0 0h2.666m-2.666 0V.87m0 2.675v2.676"})]}),(0,At.jsx)("defs",{children:(0,At.jsx)("clipPath",{id:"clip0_117_1767",children:(0,At.jsx)("path",{fill:"#fff",d:"M0 0H20V17.391H0z"})})})]})})}),(0,At.jsx)(sv,{placement:"top",trigger:["hover"],overlay:(0,At.jsx)(rv,{id:"tooltip",children:(0,At.jsx)("strong",{children:"Delete File"})}),children:(0,At.jsx)(cs,{className:"btn-no-border-bg",onClick:()=>t(No({user_id:"123",bot_id:"12345",file_name:e})),children:(0,At.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",enableBackground:"new 0 0 512 512",viewBox:"0 0 24 24",fill:"#195097",children:(0,At.jsx)("path",{fill:"#",d:"M14.121 12L18 8.117A1.5 1.5 0 0015.883 6L12 9.879 8.11 5.988A1.5 1.5 0 105.988 8.11L9.879 12 6 15.882A1.5 1.5 0 108.118 18L12 14.121 15.878 18A1.5 1.5 0 0018 15.878z","data-original":"#000000"})})})})]})]},n))):null,n.data.data.non_trained_file_names.length>0?n.data.data.non_trained_file_names.map(((e,n)=>(0,At.jsxs)("div",{className:"file-upload-full-card",children:[(0,At.jsxs)("div",{className:"file-upload-full-card-info",children:[(0,At.jsx)("div",{className:"file-upload-card-icon",children:(0,At.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",viewBox:"0 0 24 24",fill:"#FF6060",children:(0,At.jsx)("path",{d:"M14.121 12L18 8.117A1.5 1.5 0 0015.883 6L12 9.879 8.11 5.988A1.5 1.5 0 105.988 8.11L9.879 12 6 15.882A1.5 1.5 0 108.118 18L12 14.121 15.878 18A1.5 1.5 0 0018 15.878z"})})}),(0,At.jsx)("div",{className:"file-upload-card-info",children:(0,At.jsx)("h4",{children:e})}),(0,At.jsx)("div",{className:"file-upload-card-size",children:(0,At.jsx)("p",{className:"file-upload-type",children:e.substring(e.lastIndexOf(".")+1).toUpperCase()})})]}),(0,At.jsx)("div",{className:"file-upload-full-card-btn",children:(0,At.jsx)(sv,{placement:"top",trigger:["hover"],overlay:(0,At.jsx)(rv,{id:"tooltip",children:(0,At.jsx)("strong",{children:"Delete File"})}),children:(0,At.jsx)(cs,{className:"btn-no-border-bg",onClick:()=>t(No({user_id:"123",bot_id:"12345",file_name:e})),children:(0,At.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",enableBackground:"new 0 0 512 512",viewBox:"0 0 24 24",children:(0,At.jsx)("path",{fill:"#d5d5d5",d:"M14.121 12L18 8.117A1.5 1.5 0 0015.883 6L12 9.879 8.11 5.988A1.5 1.5 0 105.988 8.11L9.879 12 6 15.882A1.5 1.5 0 108.118 18L12 14.121 15.878 18A1.5 1.5 0 0018 15.878z","data-original":"#000000"})})})})})]},n))):null]}):(0,At.jsx)(vv,{})})}),(0,At.jsx)(Om.Pane,{eventKey:"complete",children:(0,At.jsx)("div",{className:"file-uploading-wrapped",children:n.loading?(0,At.jsx)(yv,{className:"mb-2",containerClassName:"skeleton",count:5,height:60}):Object.keys(n.data).length>0&&n.data.data.trained_file_names.length>0?(0,At.jsx)(r.Fragment,{children:n.data.data.trained_file_names.map(((e,n)=>(0,At.jsxs)("div",{className:"file-upload-full-card",children:[(0,At.jsxs)("div",{className:"file-upload-full-card-info",children:[(0,At.jsx)("div",{className:"file-upload-card-icon",children:(0,At.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",x:"0",y:"0",enableBackground:"new 0 0 507.506 507.506",version:"1.1",viewBox:"0 0 507.506 507.506",xmlSpace:"preserve",fill:"#195097",children:(0,At.jsx)("path",{d:"M163.865 436.934a54.228 54.228 0 01-38.4-15.915L9.369 304.966c-12.492-12.496-12.492-32.752 0-45.248 12.496-12.492 32.752-12.492 45.248 0l109.248 109.248L452.889 79.942c12.496-12.492 32.752-12.492 45.248 0 12.492 12.496 12.492 32.752 0 45.248L202.265 421.019a54.228 54.228 0 01-38.4 15.915z"})})}),(0,At.jsx)("div",{className:"file-upload-card-info",children:(0,At.jsx)("h4",{children:e})}),(0,At.jsx)("div",{className:"file-upload-card-size",children:(0,At.jsx)("p",{className:"file-upload-type",children:e.substring(e.lastIndexOf(".")+1).toUpperCase()})})]}),(0,At.jsx)("div",{className:"file-upload-full-card-btn",children:(0,At.jsx)(sv,{placement:"top",trigger:["hover"],overlay:(0,At.jsx)(rv,{id:"tooltip",children:(0,At.jsx)("strong",{children:"Delete File"})}),children:(0,At.jsx)(cs,{className:"btn-no-border-bg",onClick:()=>t(No({user_id:"123",bot_id:"12345",file_name:e})),children:(0,At.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",enableBackground:"new 0 0 512 512",viewBox:"0 0 24 24",children:(0,At.jsx)("path",{fill:"#d5d5d5",d:"M14.121 12L18 8.117A1.5 1.5 0 0015.883 6L12 9.879 8.11 5.988A1.5 1.5 0 105.988 8.11L9.879 12 6 15.882A1.5 1.5 0 108.118 18L12 14.121 15.878 18A1.5 1.5 0 0018 15.878z","data-original":"#000000"})})})})})]},n)))}):(0,At.jsx)(vv,{})})}),(0,At.jsx)(Om.Pane,{eventKey:"faile",children:(0,At.jsx)("div",{className:"file-uploading-wrapped",children:n.loading?(0,At.jsx)(yv,{className:"mb-2",containerClassName:"skeleton",count:5,height:60}):Object.keys(n.data).length>0&&n.data.data.non_trained_file_names.length>0?(0,At.jsx)(r.Fragment,{children:n.data.data.non_trained_file_names.map(((e,n)=>(0,At.jsxs)("div",{className:"file-upload-full-card",children:[(0,At.jsxs)("div",{className:"file-upload-full-card-info",children:[(0,At.jsx)("div",{className:"file-upload-card-icon",children:(0,At.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",viewBox:"0 0 24 24",fill:"#FF6060",children:(0,At.jsx)("path",{d:"M14.121 12L18 8.117A1.5 1.5 0 0015.883 6L12 9.879 8.11 5.988A1.5 1.5 0 105.988 8.11L9.879 12 6 15.882A1.5 1.5 0 108.118 18L12 14.121 15.878 18A1.5 1.5 0 0018 15.878z"})})}),(0,At.jsx)("div",{className:"file-upload-card-info",children:(0,At.jsx)("h4",{children:e})}),(0,At.jsx)("div",{className:"file-upload-card-size",children:(0,At.jsx)("p",{className:"file-upload-type",children:e.substring(e.lastIndexOf(".")+1).toUpperCase()})})]}),(0,At.jsx)("div",{className:"file-upload-full-card-btn",children:(0,At.jsx)(sv,{placement:"top",trigger:["hover"],overlay:(0,At.jsx)(rv,{id:"tooltip",children:(0,At.jsx)("strong",{children:"Delete File"})}),children:(0,At.jsx)(cs,{className:"btn-no-border-bg",onClick:()=>t(No({user_id:"123",bot_id:"12345",file_name:e})),children:(0,At.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",enableBackground:"new 0 0 512 512",viewBox:"0 0 24 24",children:(0,At.jsx)("path",{fill:"#d5d5d5",d:"M14.121 12L18 8.117A1.5 1.5 0 0015.883 6L12 9.879 8.11 5.988A1.5 1.5 0 105.988 8.11L9.879 12 6 15.882A1.5 1.5 0 108.118 18L12 14.121 15.878 18A1.5 1.5 0 0018 15.878z","data-original":"#000000"})})})})})]},n)))}):(0,At.jsx)(vv,{})})})]})]})})]})})]})})})})},Ev=r.createContext(null),Sv=["children"];const kv=()=>{};function jv(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=(0,r.useContext)(Ev),[n,o]=vi(),i=(0,r.useRef)(!1),{flip:a,offset:s,rootCloseEvent:l,fixed:c=!1,placement:u,popperConfig:f={},enableEventListeners:d=!0,usePopper:p=!!t}=e,h=null==(null==t?void 0:t.show)?!!e.show:t.show;h&&!i.current&&(i.current=!0);const{placement:m,setMenu:g,menuElement:y,toggleElement:v}=t||{},b=Dy(v,y,qy({placement:u||m||"bottom-start",enabled:p,enableEvents:null==d?h:d,offset:s,flip:a,fixed:c,arrowElement:n,popperConfig:f})),w=Object.assign({ref:g||kv,"aria-labelledby":null==v?void 0:v.id},b.attributes.popper,{style:b.styles.popper}),x={show:h,placement:m,hasShown:i.current,toggle:null==t?void 0:t.toggle,popper:p?b:null,arrowProps:p?Object.assign({ref:o},b.attributes.arrow,{style:b.styles.arrow}):{}};return Uy(y,(e=>{null==t||t.toggle(!1,e)}),{clickTrigger:l,disabled:!h}),[w,x]}function Ov(e){let{children:t}=e,n=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,Sv);const[r,o]=jv(n);return(0,At.jsx)(At.Fragment,{children:t(r,o)})}Ov.displayName="DropdownMenu",Ov.defaultProps={usePopper:!0};const Cv=Ov,Nv=e=>{var t;return"menu"===(null==(t=e.getAttribute("role"))?void 0:t.toLowerCase())},Tv=()=>{};function Pv(){const e=nm(),{show:t=!1,toggle:n=Tv,setToggle:o,menuElement:i}=(0,r.useContext)(Ev)||{},a=(0,r.useCallback)((e=>{n(!t,e)}),[t,n]),s={id:e,ref:o||Tv,onClick:a,"aria-expanded":!!t};return i&&Nv(i)&&(s["aria-haspopup"]=!0),[s,{show:t,toggle:n}]}function Lv(e){let{children:t}=e;const[n,r]=Pv();return(0,At.jsx)(At.Fragment,{children:t(n,r)})}Lv.displayName="DropdownToggle";const Rv=Lv,Av=["eventKey","disabled","onClick","active","as"];function _v(e){let{key:t,href:n,active:o,disabled:i,onClick:a}=e;const s=(0,r.useContext)(lm),l=(0,r.useContext)(Dm),{activeKey:c}=l||{},u=sm(t,n),f=null==o&&null!=t?sm(c)===u:o;return[{onClick:wi((e=>{i||(null==a||a(e),s&&!e.isPropagationStopped()&&s(u,e))})),"aria-disabled":i||void 0,"aria-selected":f,[Fi("dropdown-item")]:""},{isActive:f}]}const Iv=r.forwardRef(((e,t)=>{let{eventKey:n,disabled:r,onClick:o,active:i,as:a=ss}=e,s=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,Av);const[l]=_v({key:n,href:s.href,disabled:r,onClick:o,active:i});return(0,At.jsx)(a,Object.assign({},s,{ref:t},l))}));Iv.displayName="DropdownItem";const Mv=Iv;function Dv(){const e=Im(),t=(0,r.useRef)(null),n=(0,r.useCallback)((n=>{t.current=n,e()}),[e]);return[t,n]}function Fv(e){let{defaultShow:t,show:n,onSelect:o,onToggle:i,itemSelector:a="* [".concat(Fi("dropdown-item"),"]"),focusFirstItemOnShow:s,placement:l="bottom-start",children:c}=e;const u=Hi(),[f,d]=Yh(n,t,i),[p,h]=Dv(),m=p.current,[g,y]=Dv(),v=g.current,b=Mi(f),w=(0,r.useRef)(null),x=(0,r.useRef)(!1),E=(0,r.useContext)(lm),S=(0,r.useCallback)((function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null==t?void 0:t.type;d(e,{originalEvent:t,source:n})}),[d]),k=wi(((e,t)=>{null==o||o(e,t),S(!1,t,"select"),t.isPropagationStopped()||null==E||E(e,t)})),j=(0,r.useMemo)((()=>({toggle:S,placement:l,show:f,menuElement:m,toggleElement:v,setMenu:h,setToggle:y})),[S,l,f,m,v,h,y]);m&&b&&!f&&(x.current=m.contains(m.ownerDocument.activeElement));const O=wi((()=>{v&&v.focus&&v.focus()})),C=wi((()=>{const e=w.current;let t=s;if(null==t&&(t=!(!p.current||!Nv(p.current))&&"keyboard"),!1===t||"keyboard"===t&&!/^key.+$/.test(e))return;const n=ca(p.current,a)[0];n&&n.focus&&n.focus()}));(0,r.useEffect)((()=>{f?C():x.current&&(x.current=!1,O())}),[f,x,O,C]),(0,r.useEffect)((()=>{w.current=null}));const N=(e,t)=>{if(!p.current)return null;const n=ca(p.current,a);let r=n.indexOf(e)+t;return r=Math.max(0,Math.min(r,n.length)),n[r]};return function(e,t,n){let o=arguments.length>3&&void 0!==arguments[3]&&arguments[3];const i=wi(n);(0,r.useEffect)((()=>{const n="function"===typeof e?e():e;return n.addEventListener(t,i,o),()=>n.removeEventListener(t,i,o)}),[e])}((0,r.useCallback)((()=>u.document),[u]),"keydown",(e=>{var t,n;const{key:r}=e,o=e.target,i=null==(t=p.current)?void 0:t.contains(o),a=null==(n=g.current)?void 0:n.contains(o);if(/input|textarea/i.test(o.tagName)&&(" "===r||"Escape"!==r&&i||"Escape"===r&&"search"===o.type))return;if(!i&&!a)return;if("Tab"===r&&(!p.current||!f))return;w.current=e.type;const s={originalEvent:e,source:e.type};switch(r){case"ArrowUp":{const t=N(o,-1);return t&&t.focus&&t.focus(),void e.preventDefault()}case"ArrowDown":if(e.preventDefault(),f){const e=N(o,1);e&&e.focus&&e.focus()}else d(!0,s);return;case"Tab":pi(o.ownerDocument,"keyup",(e=>{var t;("Tab"!==e.key||e.target)&&null!=(t=p.current)&&t.contains(e.target)||d(!1,s)}),{once:!0});break;case"Escape":"Escape"===r&&(e.preventDefault(),e.stopPropagation()),d(!1,s)}})),(0,At.jsx)(lm.Provider,{value:k,children:(0,At.jsx)(Ev.Provider,{value:j,children:c})})}Fv.displayName="Dropdown",Fv.Menu=Cv,Fv.Toggle=Rv,Fv.Item=Mv;const Bv=Fv,zv=r.createContext({});zv.displayName="DropdownContext";const Uv=zv,Hv=r.forwardRef(((e,t)=>{let{className:n,bsPrefix:r,as:o="hr",role:i="separator",...a}=e;return r=ri(r,"dropdown-divider"),(0,At.jsx)(o,{ref:t,className:Xo()(n,r),role:i,...a})}));Hv.displayName="DropdownDivider";const Wv=Hv,Vv=r.forwardRef(((e,t)=>{let{className:n,bsPrefix:r,as:o="div",role:i="heading",...a}=e;return r=ri(r,"dropdown-header"),(0,At.jsx)(o,{ref:t,className:Xo()(n,r),role:i,...a})}));Vv.displayName="DropdownHeader";const qv=Vv,$v=r.forwardRef(((e,t)=>{let{bsPrefix:n,className:r,eventKey:o,disabled:i=!1,onClick:a,active:s,as:l=tg,...c}=e;const u=ri(n,"dropdown-item"),[f,d]=_v({key:o,href:c.href,disabled:i,onClick:a,active:s});return(0,At.jsx)(l,{...c,...f,ref:t,className:Xo()(r,u,d.isActive&&"active",i&&"disabled")})}));$v.displayName="DropdownItem";const Kv=$v,Gv=r.forwardRef(((e,t)=>{let{className:n,bsPrefix:r,as:o="span",...i}=e;return r=ri(r,"dropdown-item-text"),(0,At.jsx)(o,{ref:t,className:Xo()(n,r),...i})}));Gv.displayName="DropdownItemText";const Yv=Gv,Qv=r.createContext(null);Qv.displayName="InputGroupContext";const Xv=Qv;function Jv(e,t){return e}function Zv(e,t,n){let r=e?n?"bottom-start":"bottom-end":n?"bottom-end":"bottom-start";return"up"===t?r=e?n?"top-start":"top-end":n?"top-end":"top-start":"end"===t?r=e?n?"left-end":"right-end":n?"left-start":"right-start":"start"===t?r=e?n?"right-end":"left-end":n?"right-start":"left-start":"down-centered"===t?r="bottom":"up-centered"===t&&(r="top"),r}const eb=r.forwardRef(((e,t)=>{let{bsPrefix:n,className:o,align:i,rootCloseEvent:a,flip:s=!0,show:l,renderOnMount:c,as:u="div",popperConfig:f,variant:d,...p}=e,h=!1;const m=(0,r.useContext)(Gm),g=ri(n,"dropdown-menu"),{align:y,drop:v,isRTL:b}=(0,r.useContext)(Uv);i=i||y;const w=(0,r.useContext)(Xv),x=[];if(i)if("object"===typeof i){const e=Object.keys(i);if(e.length){const t=e[0],n=i[t];h="start"===n,x.push("".concat(g,"-").concat(t,"-").concat(n))}}else"end"===i&&(h=!0);const E=Zv(h,v,b),[S,{hasShown:k,popper:j,show:O,toggle:C}]=jv({flip:s,rootCloseEvent:a,show:l,usePopper:!m&&0===x.length,offset:[0,2],popperConfig:f,placement:E});if(S.ref=Ei(Jv(t),S.ref),$i((()=>{O&&(null==j||j.update())}),[O]),!k&&!c&&!w)return null;"string"!==typeof u&&(S.show=O,S.close=()=>null==C?void 0:C(!1),S.align=i);let N=p.style;return null!=j&&j.placement&&(N={...p.style,...S.style},p["x-placement"]=j.placement),(0,At.jsx)(u,{...p,...S,style:N,...(x.length||m)&&{"data-bs-popper":"static"},className:Xo()(o,g,O&&"show",h&&"".concat(g,"-end"),d&&"".concat(g,"-").concat(d),...x)})}));eb.displayName="DropdownMenu";const tb=eb,nb=r.forwardRef(((e,t)=>{let{bsPrefix:n,split:o,className:i,childBsPrefix:a,as:s=cs,...l}=e;const c=ri(n,"dropdown-toggle"),u=(0,r.useContext)(Ev);void 0!==a&&(l.bsPrefix=a);const[f]=Pv();return f.ref=Ei(f.ref,Jv(t)),(0,At.jsx)(s,{className:Xo()(i,c,o&&"".concat(c,"-split"),(null==u?void 0:u.show)&&"show"),...f,...l})}));nb.displayName="DropdownToggle";const rb=nb,ob=r.forwardRef(((e,t)=>{const{bsPrefix:n,drop:o="down",show:i,className:a,align:s="start",onSelect:l,onToggle:c,focusFirstItemOnShow:u,as:f="div",navbar:d,autoClose:p=!0,...h}=Lm(e,{show:"onToggle"}),m=(0,r.useContext)(Xv),g=ri(n,"dropdown"),y=ai(),v=wi(((e,t)=>{var n,r;var o;(null==(n=t.originalEvent)||null==(r=n.target)?void 0:r.classList.contains("dropdown-toggle"))&&"mousedown"===t.source||(t.originalEvent.currentTarget!==document||"keydown"===t.source&&"Escape"!==t.originalEvent.key||(t.source="rootClose"),o=t.source,(!1===p?"click"===o:"inside"===p?"rootClose"!==o:"outside"!==p||"select"!==o)&&(null==c||c(e,t)))})),b=Zv("end"===s,o,y),w=(0,r.useMemo)((()=>({align:s,drop:o,isRTL:y})),[s,o,y]),x={down:g,"down-centered":"".concat(g,"-center"),up:"dropup","up-centered":"dropup-center dropup",end:"dropend",start:"dropstart"};return(0,At.jsx)(Uv.Provider,{value:w,children:(0,At.jsx)(Bv,{placement:b,show:i,onSelect:l,onToggle:v,focusFirstItemOnShow:u,itemSelector:".".concat(g,"-item:not(.disabled):not(:disabled)"),children:m?h.children:(0,At.jsx)(f,{...h,ref:t,className:Xo()(a,i&&"show",x[o])})})})}));ob.displayName="Dropdown";const ib=Object.assign(ob,{Toggle:rb,Menu:tb,Item:Kv,ItemText:Yv,Divider:Wv,Header:qv}),ab={type:Te().string,tooltip:Te().bool,as:Te().elementType},sb=r.forwardRef(((e,t)=>{let{as:n="div",className:r,type:o="valid",tooltip:i=!1,...a}=e;return(0,At.jsx)(n,{...a,ref:t,className:Xo()(r,"".concat(o,"-").concat(i?"tooltip":"feedback"))})}));sb.displayName="Feedback",sb.propTypes=ab;const lb=sb,cb=r.createContext({}),ub=r.forwardRef(((e,t)=>{let{id:n,bsPrefix:o,className:i,type:a="checkbox",isValid:s=!1,isInvalid:l=!1,as:c="input",...u}=e;const{controlId:f}=(0,r.useContext)(cb);return o=ri(o,"form-check-input"),(0,At.jsx)(c,{...u,ref:t,type:a,id:n||f,className:Xo()(i,o,s&&"is-valid",l&&"is-invalid")})}));ub.displayName="FormCheckInput";const fb=ub,db=r.forwardRef(((e,t)=>{let{bsPrefix:n,className:o,htmlFor:i,...a}=e;const{controlId:s}=(0,r.useContext)(cb);return n=ri(n,"form-check-label"),(0,At.jsx)("label",{...a,ref:t,htmlFor:i||s,className:Xo()(o,n)})}));db.displayName="FormCheckLabel";const pb=db;const hb=r.forwardRef(((e,t)=>{let{id:n,bsPrefix:o,bsSwitchPrefix:i,inline:a=!1,reverse:s=!1,disabled:l=!1,isValid:c=!1,isInvalid:u=!1,feedbackTooltip:f=!1,feedback:d,feedbackType:p,className:h,style:m,title:g="",type:y="checkbox",label:v,children:b,as:w="input",...x}=e;o=ri(o,"form-check"),i=ri(i,"form-switch");const{controlId:E}=(0,r.useContext)(cb),S=(0,r.useMemo)((()=>({controlId:n||E})),[E,n]),k=!b&&null!=v&&!1!==v||function(e,t){return r.Children.toArray(e).some((e=>r.isValidElement(e)&&e.type===t))}(b,pb),j=(0,At.jsx)(fb,{...x,type:"switch"===y?"checkbox":y,ref:t,isValid:c,isInvalid:u,disabled:l,as:w});return(0,At.jsx)(cb.Provider,{value:S,children:(0,At.jsx)("div",{style:m,className:Xo()(h,k&&o,a&&"".concat(o,"-inline"),s&&"".concat(o,"-reverse"),"switch"===y&&i),children:b||(0,At.jsxs)(At.Fragment,{children:[j,k&&(0,At.jsx)(pb,{title:g,children:v}),d&&(0,At.jsx)(lb,{type:p,tooltip:f,children:d})]})})})}));hb.displayName="FormCheck";const mb=Object.assign(hb,{Input:fb,Label:pb}),gb=r.forwardRef(((e,t)=>{let{bsPrefix:n,type:o,size:i,htmlSize:a,id:s,className:l,isValid:c=!1,isInvalid:u=!1,plaintext:f,readOnly:d,as:p="input",...h}=e;const{controlId:m}=(0,r.useContext)(cb);return n=ri(n,"form-control"),(0,At.jsx)(p,{...h,type:o,size:a,ref:t,readOnly:d,id:s||m,className:Xo()(l,f?"".concat(n,"-plaintext"):n,i&&"".concat(n,"-").concat(i),"color"===o&&"".concat(n,"-color"),c&&"is-valid",u&&"is-invalid")})}));gb.displayName="FormControl";const yb=Object.assign(gb,{Feedback:lb}),vb=r.forwardRef(((e,t)=>{let{className:n,bsPrefix:r,as:o="div",...i}=e;return r=ri(r,"form-floating"),(0,At.jsx)(o,{ref:t,className:Xo()(n,r),...i})}));vb.displayName="FormFloating";const bb=vb,wb=r.forwardRef(((e,t)=>{let{controlId:n,as:o="div",...i}=e;const a=(0,r.useMemo)((()=>({controlId:n})),[n]);return(0,At.jsx)(cb.Provider,{value:a,children:(0,At.jsx)(o,{...i,ref:t})})}));wb.displayName="FormGroup";const xb=wb,Eb=r.forwardRef(((e,t)=>{let{as:n="label",bsPrefix:o,column:i=!1,visuallyHidden:a=!1,className:s,htmlFor:l,...c}=e;const{controlId:u}=(0,r.useContext)(cb);o=ri(o,"form-label");let f="col-form-label";"string"===typeof i&&(f="".concat(f," ").concat(f,"-").concat(i));const d=Xo()(s,o,a&&"visually-hidden",i&&f);return l=l||u,i?(0,At.jsx)(Wf,{ref:t,as:"label",className:d,htmlFor:l,...c}):(0,At.jsx)(n,{ref:t,className:d,htmlFor:l,...c})}));Eb.displayName="FormLabel";const Sb=Eb,kb=r.forwardRef(((e,t)=>{let{bsPrefix:n,className:o,id:i,...a}=e;const{controlId:s}=(0,r.useContext)(cb);return n=ri(n,"form-range"),(0,At.jsx)("input",{...a,type:"range",ref:t,className:Xo()(o,n),id:i||s})}));kb.displayName="FormRange";const jb=kb,Ob=r.forwardRef(((e,t)=>{let{bsPrefix:n,size:o,htmlSize:i,className:a,isValid:s=!1,isInvalid:l=!1,id:c,...u}=e;const{controlId:f}=(0,r.useContext)(cb);return n=ri(n,"form-select"),(0,At.jsx)("select",{...u,size:i,ref:t,className:Xo()(a,n,o&&"".concat(n,"-").concat(o),s&&"is-valid",l&&"is-invalid"),id:c||f})}));Ob.displayName="FormSelect";const Cb=Ob,Nb=r.forwardRef(((e,t)=>{let{bsPrefix:n,className:r,as:o="small",muted:i,...a}=e;return n=ri(n,"form-text"),(0,At.jsx)(o,{...a,ref:t,className:Xo()(r,n,i&&"text-muted")})}));Nb.displayName="FormText";const Tb=Nb,Pb=r.forwardRef(((e,t)=>(0,At.jsx)(mb,{...e,ref:t,type:"switch"})));Pb.displayName="Switch";const Lb=Object.assign(Pb,{Input:mb.Input,Label:mb.Label}),Rb=r.forwardRef(((e,t)=>{let{bsPrefix:n,className:r,children:o,controlId:i,label:a,...s}=e;return n=ri(n,"form-floating"),(0,At.jsxs)(xb,{ref:t,className:Xo()(r,n),controlId:i,...s,children:[o,(0,At.jsx)("label",{htmlFor:i,children:a})]})}));Rb.displayName="FloatingLabel";const Ab=Rb,_b={_ref:Te().any,validated:Te().bool,as:Te().elementType},Ib=r.forwardRef(((e,t)=>{let{className:n,validated:r,as:o="form",...i}=e;return(0,At.jsx)(o,{...i,ref:t,className:Xo()(n,r&&"was-validated")})}));Ib.displayName="Form",Ib.propTypes=_b;const Mb=Object.assign(Ib,{Group:xb,Control:yb,Floating:bb,Check:mb,Switch:Lb,Label:Sb,Text:Tb,Range:jb,Select:Cb,FloatingLabel:Ab}),Db=r.forwardRef(((e,t)=>{let{className:n,bsPrefix:r,as:o="span",...i}=e;return r=ri(r,"input-group-text"),(0,At.jsx)(o,{ref:t,className:Xo()(n,r),...i})}));Db.displayName="InputGroupText";const Fb=Db,Bb=r.forwardRef(((e,t)=>{let{bsPrefix:n,size:o,hasValidation:i,className:a,as:s="div",...l}=e;n=ri(n,"input-group");const c=(0,r.useMemo)((()=>({})),[]);return(0,At.jsx)(Xv.Provider,{value:c,children:(0,At.jsx)(s,{ref:t,...l,className:Xo()(a,n,o&&"".concat(n,"-").concat(o),i&&"has-validation")})})}));Bb.displayName="InputGroup";const zb=Object.assign(Bb,{Text:Fb,Radio:e=>(0,At.jsx)(Fb,{children:(0,At.jsx)(fb,{type:"radio",...e})}),Checkbox:e=>(0,At.jsx)(Fb,{children:(0,At.jsx)(fb,{type:"checkbox",...e})})}),Ub=e=>(0,At.jsx)(At.Fragment,{children:(0,At.jsxs)("div",{className:"chat-main-wrapper-sec chat-mobile-wrapper-sec",children:[(0,At.jsx)("div",{className:"chat-main-wrapper-header-sec",children:(0,At.jsx)(Mb,{className:"chat-search-form-sec",children:(0,At.jsxs)("div",{className:"chat-search-header-card",children:[(0,At.jsxs)(zb,{className:"mb-0",children:[(0,At.jsx)(Mb.Control,{placeholder:"Type a command or search..."}),(0,At.jsx)(zb.Text,{id:"basic-addon2",children:(0,At.jsx)(cs,{type:"button",className:"search-btn",children:(0,At.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",fill:"none",viewBox:"0 0 18 18",children:(0,At.jsx)("path",{fill:"#03363D",stroke:"#03363D",d:"M16.806 15.873l-4.208-4.207A6.532 6.532 0 007.374 1.002a6.537 6.537 0 00-6.372 6.362 6.532 6.532 0 006.033 6.684 6.537 6.537 0 004.628-1.448l4.208 4.206a.662.662 0 00.935-.935v.002zM2.353 7.549A5.19 5.19 0 018.56 2.46a5.193 5.193 0 013.784 7.078 5.191 5.191 0 01-8.469 1.682 5.195 5.195 0 01-1.522-3.67z"})})})})]}),(0,At.jsx)(cs,{className:"chat-clear-btn",children:(0,At.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",x:"0",y:"0",enableBackground:"new 0 0 500.696 500.696",version:"1.1",viewBox:"0 0 500.696 500.696",xmlSpace:"preserve",children:(0,At.jsx)("path",{d:"M121.232 158.288l-44.245 12.971a107.438 107.438 0 00-66.411 56.213 106.095 106.095 0 00-2.923 85.739c.149.384.341.747.491 1.131l36.693-5.995a204.793 204.793 0 0091.733-51.925c8.424-8.247 21.939-8.104 30.187.32 8.247 8.424 8.104 21.939-.32 30.187a248.514 248.514 0 01-112.96 63.168l-25.003 4.139a272.556 272.556 0 0052.907 62.507l43.797-16.256 29.867-14.933a203.613 203.613 0 0076.608-66.944l11.072-16.235c6.366-9.914 19.563-12.791 29.478-6.426 9.914 6.366 12.791 19.563 6.426 29.478-.211.329-.432.652-.661.969l-11.051 16.235a246.085 246.085 0 01-92.736 81.067l-33.067 16.491-17.984 6.656a282.152 282.152 0 00142.805 38.4h19.712a21.566 21.566 0 0012.331-3.883 352.134 352.134 0 00109.291-119.168L174.906 134.053a270.07 270.07 0 01-53.674 24.235zM494.373 21.755c-8.433-8.403-22.074-8.403-30.507 0L362.234 123.387l-6.827-6.677c-37.156-36.291-95.028-40.603-137.152-10.219-1.963 1.408-3.904 2.581-5.888 3.947l213.909 210.005a303.48 303.48 0 0014.933-56.875 107.286 107.286 0 00-30.997-93.312l-17.067-16.725 101.271-101.27c8.391-8.444 8.372-22.085-.043-30.506z"})})})]})})}),(0,At.jsxs)("div",{className:"chat-main-wrapper-body-sec",children:[(0,At.jsxs)("div",{className:"chat-main-sender-sec",children:[(0,At.jsx)("div",{className:"chat-main-sender-icon-sec",children:(0,At.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",fill:"#195097",x:"0",y:"0",enableBackground:"new 0 0 512 512",version:"1.1",viewBox:"0 0 512 512",xmlSpace:"preserve",children:[(0,At.jsx)("circle",{cx:"256",cy:"128",r:"128"}),(0,At.jsx)("path",{d:"M256 298.667c-105.99.118-191.882 86.01-192 192C64 502.449 73.551 512 85.333 512h341.333c11.782 0 21.333-9.551 21.333-21.333-.117-105.99-86.009-191.883-191.999-192z"})]})}),(0,At.jsxs)("div",{className:"chat-main-sender-message-sec",children:[(0,At.jsx)("div",{className:"chat-main-sender-message",children:"The advantages of Artificial Intelligence"}),(0,At.jsx)(cs,{className:"chat-main-sender-edit-btn",children:(0,At.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",fill:"none",viewBox:"0 0 24 24",children:[(0,At.jsx)("path",{fill:"#9DA3AE",fillRule:"evenodd",d:"M3.25 22a.75.75 0 01.75-.75h16a.75.75 0 010 1.5H4a.75.75 0 01-.75-.75z",clipRule:"evenodd"}),(0,At.jsx)("path",{fill:"#9DA3AE",d:"M11.52 14.929l5.917-5.917a8.232 8.232 0 01-2.661-1.787 8.232 8.232 0 01-1.788-2.662L7.07 10.48c-.462.462-.693.692-.891.947a5.24 5.24 0 00-.599.969c-.139.291-.242.601-.449 1.22l-1.088 3.267a.848.848 0 001.073 1.073l3.266-1.088c.62-.207.93-.31 1.221-.45.344-.163.669-.364.969-.598.255-.199.485-.43.947-.891zM19.079 7.37a3.146 3.146 0 00-4.45-4.449l-.71.71.031.09c.26.749.751 1.732 1.674 2.655A7.003 7.003 0 0018.37 8.08l.71-.71z"})]})})]})]}),(0,At.jsxs)("div",{className:"chat-main-receiver-sec",children:[(0,At.jsx)("div",{className:"chat-main-receiver-icon-sec",children:(0,At.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"#fff",width:"20",height:"20","data-name":"Layer 1",viewBox:"0 0 24 24",children:(0,At.jsx)("path",{d:"M19.5 24a1 1 0 01-.929-.628l-.844-2.113-2.116-.891a1.007 1.007 0 01.035-1.857l2.088-.791.837-2.092a1.008 1.008 0 011.858 0l.841 2.1 2.1.841a1.007 1.007 0 010 1.858l-2.1.841-.841 2.1A1 1 0 0119.5 24zM10 21a2 2 0 01-1.936-1.413L6.45 14.54l-5.063-1.694a2.032 2.032 0 01.052-3.871l5.023-1.534 1.692-5.054A1.956 1.956 0 0110.108 1a2 2 0 011.917 1.439l1.532 5.015 5.03 1.61a2.042 2.042 0 010 3.872l-5.039 1.612-1.612 5.039A2 2 0 0110 21zM20.5 7a1 1 0 01-.97-.757l-.357-1.43-1.433-.385a1 1 0 01.034-1.94l1.4-.325.356-1.406a1 1 0 011.94 0l.354 1.418 1.418.355a1 1 0 010 1.94l-1.418.355-.354 1.418A1 1 0 0120.5 7z"})})}),(0,At.jsx)("div",{className:"chat-main-receiver-message-sec",children:(0,At.jsx)("div",{className:"chat-main-receiver-message",children:'Unfortunately, the question "What\'s the average speed of a unicorn?" has no definitive answer as unicorns are mythical creatures. While they are often depicted as swift and graceful, there is no scientific data to confirm their actual speed. However, we can explore some possible interpretations of the question: 1. Unicorns in Myth and Legend: In mythology and folklore, unicorns are often described as being very fast. They are frequently depicted galloping across meadows or leaping over obstacles. However, there are no specific references to their exact speed. Some literary works, like the Chronicles of Narnia, have attempted to quantify their speed. For example, in The Horse and His Boy, a unicorn is described as being able to outpace a group of horses. Based on these descriptions, we can make an educated guess that unicorns are likely much faster than average horses, which can reach speeds of up to 55 mph. 2. Unicorns as Startup Companies: In modern business terminology, "unicorn" refers to a startup company with a valuation of over $1 billion. The "speed" of a unicorn can be measured by the time it takes to reach this valuation.'})})]}),(0,At.jsxs)("div",{className:"chat-main-sender-sec",children:[(0,At.jsx)("div",{className:"chat-main-sender-icon-sec",children:(0,At.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",fill:"#195097",x:"0",y:"0",enableBackground:"new 0 0 512 512",version:"1.1",viewBox:"0 0 512 512",xmlSpace:"preserve",children:[(0,At.jsx)("circle",{cx:"256",cy:"128",r:"128"}),(0,At.jsx)("path",{d:"M256 298.667c-105.99.118-191.882 86.01-192 192C64 502.449 73.551 512 85.333 512h341.333c11.782 0 21.333-9.551 21.333-21.333-.117-105.99-86.009-191.883-191.999-192z"})]})}),(0,At.jsxs)("div",{className:"chat-main-sender-message-sec",children:[(0,At.jsx)("div",{className:"chat-main-sender-message",children:"The advantages of Artificial Intelligence"}),(0,At.jsx)(cs,{className:"chat-main-sender-edit-btn",children:(0,At.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",fill:"none",viewBox:"0 0 24 24",children:[(0,At.jsx)("path",{fill:"#9DA3AE",fillRule:"evenodd",d:"M3.25 22a.75.75 0 01.75-.75h16a.75.75 0 010 1.5H4a.75.75 0 01-.75-.75z",clipRule:"evenodd"}),(0,At.jsx)("path",{fill:"#9DA3AE",d:"M11.52 14.929l5.917-5.917a8.232 8.232 0 01-2.661-1.787 8.232 8.232 0 01-1.788-2.662L7.07 10.48c-.462.462-.693.692-.891.947a5.24 5.24 0 00-.599.969c-.139.291-.242.601-.449 1.22l-1.088 3.267a.848.848 0 001.073 1.073l3.266-1.088c.62-.207.93-.31 1.221-.45.344-.163.669-.364.969-.598.255-.199.485-.43.947-.891zM19.079 7.37a3.146 3.146 0 00-4.45-4.449l-.71.71.031.09c.26.749.751 1.732 1.674 2.655A7.003 7.003 0 0018.37 8.08l.71-.71z"})]})})]})]}),(0,At.jsxs)("div",{className:"chat-main-receiver-sec",children:[(0,At.jsx)("div",{className:"chat-main-receiver-icon-sec",children:(0,At.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"#fff",width:"20",height:"20","data-name":"Layer 1",viewBox:"0 0 24 24",children:(0,At.jsx)("path",{d:"M19.5 24a1 1 0 01-.929-.628l-.844-2.113-2.116-.891a1.007 1.007 0 01.035-1.857l2.088-.791.837-2.092a1.008 1.008 0 011.858 0l.841 2.1 2.1.841a1.007 1.007 0 010 1.858l-2.1.841-.841 2.1A1 1 0 0119.5 24zM10 21a2 2 0 01-1.936-1.413L6.45 14.54l-5.063-1.694a2.032 2.032 0 01.052-3.871l5.023-1.534 1.692-5.054A1.956 1.956 0 0110.108 1a2 2 0 011.917 1.439l1.532 5.015 5.03 1.61a2.042 2.042 0 010 3.872l-5.039 1.612-1.612 5.039A2 2 0 0110 21zM20.5 7a1 1 0 01-.97-.757l-.357-1.43-1.433-.385a1 1 0 01.034-1.94l1.4-.325.356-1.406a1 1 0 011.94 0l.354 1.418 1.418.355a1 1 0 010 1.94l-1.418.355-.354 1.418A1 1 0 0120.5 7z"})})}),(0,At.jsx)("div",{className:"chat-main-receiver-message-sec",children:(0,At.jsx)("div",{className:"chat-main-receiver-message",children:'Unfortunately, the question "What\'s the average speed of a unicorn?" has no definitive answer as unicorns are mythical creatures. While they are often depicted as swift and graceful, there is no scientific data to confirm their actual speed. However, we can explore some possible interpretations of the question: 1. Unicorns in Myth and Legend: In mythology and folklore, unicorns are often described as being very fast. They are frequently depicted galloping across meadows or leaping over obstacles. However, there are no specific references to their exact speed. Some literary works, like the Chronicles of Narnia, have attempted to quantify their speed. For example, in The Horse and His Boy, a unicorn is described as being able to outpace a group of horses. Based on these descriptions, we can make an educated guess that unicorns are likely much faster than average horses, which can reach speeds of up to 55 mph. 2. Unicorns as Startup Companies: In modern business terminology, "unicorn" refers to a startup company with a valuation of over $1 billion. The "speed" of a unicorn can be measured by the time it takes to reach this valuation.'})})]}),(0,At.jsxs)("div",{className:"chat-main-sender-sec",children:[(0,At.jsx)("div",{className:"chat-main-sender-icon-sec",children:(0,At.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",fill:"#195097",x:"0",y:"0",enableBackground:"new 0 0 512 512",version:"1.1",viewBox:"0 0 512 512",xmlSpace:"preserve",children:[(0,At.jsx)("circle",{cx:"256",cy:"128",r:"128"}),(0,At.jsx)("path",{d:"M256 298.667c-105.99.118-191.882 86.01-192 192C64 502.449 73.551 512 85.333 512h341.333c11.782 0 21.333-9.551 21.333-21.333-.117-105.99-86.009-191.883-191.999-192z"})]})}),(0,At.jsxs)("div",{className:"chat-main-sender-message-sec",children:[(0,At.jsx)("div",{className:"chat-main-sender-message",children:"The advantages of Artificial Intelligence"}),(0,At.jsx)(cs,{className:"chat-main-sender-edit-btn",children:(0,At.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",fill:"none",viewBox:"0 0 24 24",children:[(0,At.jsx)("path",{fill:"#9DA3AE",fillRule:"evenodd",d:"M3.25 22a.75.75 0 01.75-.75h16a.75.75 0 010 1.5H4a.75.75 0 01-.75-.75z",clipRule:"evenodd"}),(0,At.jsx)("path",{fill:"#9DA3AE",d:"M11.52 14.929l5.917-5.917a8.232 8.232 0 01-2.661-1.787 8.232 8.232 0 01-1.788-2.662L7.07 10.48c-.462.462-.693.692-.891.947a5.24 5.24 0 00-.599.969c-.139.291-.242.601-.449 1.22l-1.088 3.267a.848.848 0 001.073 1.073l3.266-1.088c.62-.207.93-.31 1.221-.45.344-.163.669-.364.969-.598.255-.199.485-.43.947-.891zM19.079 7.37a3.146 3.146 0 00-4.45-4.449l-.71.71.031.09c.26.749.751 1.732 1.674 2.655A7.003 7.003 0 0018.37 8.08l.71-.71z"})]})})]})]}),(0,At.jsxs)("div",{className:"chat-main-receiver-sec",children:[(0,At.jsx)("div",{className:"chat-main-receiver-icon-sec",children:(0,At.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"#fff",width:"20",height:"20","data-name":"Layer 1",viewBox:"0 0 24 24",children:(0,At.jsx)("path",{d:"M19.5 24a1 1 0 01-.929-.628l-.844-2.113-2.116-.891a1.007 1.007 0 01.035-1.857l2.088-.791.837-2.092a1.008 1.008 0 011.858 0l.841 2.1 2.1.841a1.007 1.007 0 010 1.858l-2.1.841-.841 2.1A1 1 0 0119.5 24zM10 21a2 2 0 01-1.936-1.413L6.45 14.54l-5.063-1.694a2.032 2.032 0 01.052-3.871l5.023-1.534 1.692-5.054A1.956 1.956 0 0110.108 1a2 2 0 011.917 1.439l1.532 5.015 5.03 1.61a2.042 2.042 0 010 3.872l-5.039 1.612-1.612 5.039A2 2 0 0110 21zM20.5 7a1 1 0 01-.97-.757l-.357-1.43-1.433-.385a1 1 0 01.034-1.94l1.4-.325.356-1.406a1 1 0 011.94 0l.354 1.418 1.418.355a1 1 0 010 1.94l-1.418.355-.354 1.418A1 1 0 0120.5 7z"})})}),(0,At.jsx)("div",{className:"chat-main-receiver-message-sec",children:(0,At.jsx)("div",{className:"chat-main-receiver-message",children:'Unfortunately, the question "What\'s the average speed of a unicorn?" has no definitive answer as unicorns are mythical creatures. While they are often depicted as swift and graceful, there is no scientific data to confirm their actual speed. However, we can explore some possible interpretations of the question: 1. Unicorns in Myth and Legend: In mythology and folklore, unicorns are often described as being very fast. They are frequently depicted galloping across meadows or leaping over obstacles. However, there are no specific references to their exact speed. Some literary works, like the Chronicles of Narnia, have attempted to quantify their speed. For example, in The Horse and His Boy, a unicorn is described as being able to outpace a group of horses. Based on these descriptions, we can make an educated guess that unicorns are likely much faster than average horses, which can reach speeds of up to 55 mph. 2. Unicorns as Startup Companies: In modern business terminology, "unicorn" refers to a startup company with a valuation of over $1 billion. The "speed" of a unicorn can be measured by the time it takes to reach this valuation.'})})]}),(0,At.jsxs)("div",{className:"chat-main-message-action-btn-sec",children:[(0,At.jsxs)(cs,{className:"chat-main-message-action-btn",children:[(0,At.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",fill:"#2A2A2A",x:"0",y:"0",enableBackground:"new 0 0 512 512",version:"1.1",viewBox:"0 0 512 512",xmlSpace:"preserve",children:[(0,At.jsx)("path",{d:"M256 448c-82.436-.094-149.239-66.898-149.333-149.333v-192c0-4.267.277-8.533.64-12.629-39.168 16.826-64.576 55.333-64.64 97.962v213.333C42.737 464.214 90.452 511.93 149.333 512h128c42.629-.064 81.136-25.473 97.963-64.64-4.267.363-8.363.64-12.629.64H256zM451.307 69.803l-48.725-50.325A64.01 64.01 0 00384 6.4v78.933h78.08a63.723 63.723 0 00-10.773-15.53z"}),(0,At.jsx)("path",{d:"M362.667 85.333c0 11.782 9.551 21.333 21.333 21.333h84.608a63.6 63.6 0 00-17.301-36.864l-48.725-50.325A64.24 64.24 0 00362.667.618v84.715z"}),(0,At.jsx)("path",{d:"M320 85.333V0h-64c-58.881.071-106.596 47.786-106.667 106.667v192c.071 58.881 47.786 106.596 106.667 106.667h106.667c58.881-.071 106.596-47.786 106.667-106.667V149.333H384c-35.346 0-64-28.653-64-64z"})]}),"Copy"]}),(0,At.jsxs)(cs,{className:"chat-main-message-action-btn",children:[(0,At.jsx)("svg",{width:"20",height:"20",fill:"#2A2A2A",xmlns:"http://www.w3.org/2000/svg","data-name":"Layer 1",viewBox:"0 0 24 24",children:(0,At.jsx)("path",{d:"M22.065 9.002a10.508 10.508 0 00-7.067-7.067A2.002 2.002 0 0013 0h-2a2.001 2.001 0 00-1.998 1.935 10.508 10.508 0 00-7.067 7.067A2.002 2.002 0 000 11v2c0 1.081.862 1.964 1.935 1.998a10.508 10.508 0 007.067 7.067A2.002 2.002 0 0011 24h2a2.001 2.001 0 001.998-1.935 10.508 10.508 0 007.067-7.067A2.002 2.002 0 0024 13v-2a2.001 2.001 0 00-1.935-1.998zM11 2h2v2h-2V2zM4 13H2v-2h2v2zm7 9v-2h2v2h-2zm8.956-7.001a8.506 8.506 0 01-4.957 4.957A2.001 2.001 0 0013 18h-2a2.001 2.001 0 00-1.999 1.956 8.506 8.506 0 01-4.957-4.957A2.001 2.001 0 006 13v-2a2.001 2.001 0 00-1.956-1.999 8.506 8.506 0 014.957-4.957A2.001 2.001 0 0011 6h2a2.001 2.001 0 001.999-1.956 8.506 8.506 0 014.957 4.957A2.001 2.001 0 0018 11v2c0 1.088.873 1.976 1.956 1.999zM22 13h-2v-2h2v2z"})}),"Regenerate Response"]})]})]}),(0,At.jsx)("div",{className:"chat-main-wrapper-footer-sec",children:(0,At.jsx)(Mb,{className:"chat-main-wrapper-typing-form",children:(0,At.jsxs)("div",{className:"chat-main-wrapper-typing-box",children:[(0,At.jsx)("div",{className:"chat-main-wrapper-footer-input-sec",children:(0,At.jsx)(Mb.Group,{className:"mb-0",controlId:"exampleForm.ControlInput1",children:(0,At.jsx)(Mb.Control,{type:"text",placeholder:"Ask or search anything..."})})}),(0,At.jsx)("div",{className:"chat-main-wrapper-footer-submit-sec",children:(0,At.jsxs)(cs,{className:"chat-main-wrapper-footer-submit-btn",children:[(0,At.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",fill:"#fff",height:"20","data-name":"Layer 1",viewBox:"0 0 24 24",children:(0,At.jsx)("path",{d:"M.172 3.708A2.745 2.745 0 01.917.713 2.745 2.745 0 013.965.282l18.09 8.444A3.584 3.584 0 0124 10.999H4.048L.229 3.835a1.446 1.446 0 01-.057-.127zM4.062 13L.309 20.175a.944.944 0 00-.054.122 2.744 2.744 0 00.749 2.993 2.756 2.756 0 001.841.708c.409 0 .819-.092 1.201-.279l18.011-8.438a3.582 3.582 0 001.945-2.28H4.062z"})}),"Submit"]})})]})})})]})}),Hb=e=>(0,At.jsx)(At.Fragment,{children:(0,At.jsx)(rs,{className:"modal-dialog-center rename-thread-modal",size:"md",centered:!0,show:e.renameThread,onHide:e.closeRenameThreadModal,children:(0,At.jsxs)(rs.Body,{children:[(0,At.jsx)("h4",{children:"Rename Thread"}),(0,At.jsx)(cs,{className:"modal-close",onClick:()=>e.closeRenameThreadModal(),children:(0,At.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"15",height:"15",fill:"none",viewBox:"0 0 11 11",children:(0,At.jsx)("path",{fill:"#979BA2",d:"M10.756.252a.83.83 0 00-1.176 0L5.5 4.324 1.42.244A.83.83 0 10.244 1.42l4.08 4.08-4.08 4.08a.83.83 0 101.176 1.176l4.08-4.08 4.08 4.08a.831.831 0 101.176-1.176L6.676 5.5l4.08-4.08a.836.836 0 000-1.168z"})})}),(0,At.jsx)("div",{className:"rename-thread-form-sec",children:(0,At.jsxs)(Mb,{className:"rename-thread-form",children:[(0,At.jsx)(Mb.Group,{className:"mb-3",controlId:"exampleForm.ControlInput1",children:(0,At.jsx)(Mb.Control,{type:"text",placeholder:"Thread Name"})}),(0,At.jsxs)("div",{className:"rename-thread-btn-sec",children:[(0,At.jsx)(cs,{className:"default-grey-btn",onClick:()=>e.closeRenameThreadModal(),children:"Cancel"}),(0,At.jsx)(cs,{className:"default-btn",children:"Rename"})]})]})})]})})}),Wb=()=>(0,At.jsx)(At.Fragment,{children:(0,At.jsxs)("div",{className:"no-chat-found-card",children:[(0,At.jsx)("div",{className:"no-chat-found-img-sec",children:(0,At.jsx)(li,{className:"no-chat-found-img",src:window.location.origin+"/img/no-chat-found-img.svg"})}),(0,At.jsxs)("div",{className:"no-chat-found-info",children:[(0,At.jsx)("h4",{children:"No chats currently!"}),(0,At.jsx)("p",{children:"Begin entering prompts to display results"})]})]})}),Vb=e=>{const t=rn(),[n,o]=(0,r.useState)(!1),i=Gt((e=>e.common.contextList)),a=Gt((e=>e.common.selectedContext)),s=Gt((e=>e.common.contextData)),[l,c]=(0,r.useState)(""),u=Gt((e=>e.common.qna)),[f,d]=(0,r.useState)(!1),p=Gt((e=>e.common.chats)),[h,m]=(0,r.useState)([]),g=Gt((e=>e.common.deleteContext)),y=Gt((e=>e.common.selectedFile)),v=(0,r.useRef)(null),b=(0,r.useRef)(),[w,x]=(0,r.useState)({notify:!1,msg_count:0,is_at_bottom:!0});(0,r.useEffect)((()=>{if(y){var e,n;let r=null===(e=i.data)||void 0===e||null===(n=e.data)||void 0===n?void 0:n.context_id.find((e=>e.file_name==y));r?t(Wo(r.id)):S(y)}else t(_o({bot_id:12345,user_id:123}));return()=>{t(Ko(null))}}),[]),(0,r.useEffect)((()=>{if(!i.buttonDisable&&Object.keys(i.data).length>0&&i.data.data.context_id.length>0){let e=i.data.data.context_id.map(((e,t)=>({id:e.id,title:e.title})));m(e.reverse()),!y&&t(Wo(i.data.data.context_id[e.length-1].id))}}),[i]),(0,r.useEffect)((()=>{c(""),a&&t(Do({bot_id:12345,user_id:123,uuid:a}))}),[a]),(0,r.useEffect)((()=>{!f&&!s.buttonDisable&&Object.keys(s.data).length>0?t($o(s.data.data?s.data.data.data.history:[])):t($o([])),d(!1)}),[s]);const E=e=>{var n,r,o;(e.preventDefault(),l)&&(t(qo({query:l,role:"user"})),t(Lo({bot_id:12345,user_id:123,prompt:"You are an intelligent bot that provides answers based on the context you receive.",context_id:a,query:l,file_name:(null===(n=i.data)||void 0===n||null===(r=n.data)||void 0===r||null===(o=r.context_id)||void 0===o?void 0:o.filter((e=>e.id==a))[0].file_name)||"all"})),c(""))};(0,r.useEffect)((()=>{!f&&!u.buttonDisable&&Object.keys(u.data).length>0&&t(qo({query:u.data.response,role:"assistant"})),d(!1)}),[u]);const S=e=>{let n=Math.floor(1e7+9e7*Math.random());t(Io({...i.data,data:{...i.data.data,context_id:[...i.data.data.context_id,{id:n,title:"New Thread",file_name:e}]}})),t(Wo(n)),t($o([]))};return(0,r.useEffect)((()=>{!f&&!g.loading&&Object.keys(g.data).length>0&&t(_o({bot_id:12345,user_id:123})),d(!1)}),[g]),(0,At.jsxs)("div",{className:"admin-ui-body-sec",children:[(0,At.jsx)("div",{className:"chat-layout-sec",children:(0,At.jsxs)(Uf,{className:"g-0",children:[(0,At.jsx)(Wf,{md:3,children:(0,At.jsxs)("div",{className:"chat-threads-sidebar-sec",children:[(0,At.jsxs)("div",{className:"chat-threads-header-sec",children:[(0,At.jsx)("h3",{children:"Threads"}),(0,At.jsxs)(cs,{className:"new-threads-btn",onClick:()=>S("all"),children:[(0,At.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",fill:"none",viewBox:"0 0 20 18",children:[(0,At.jsxs)("g",{clipPath:"url(#clip0_117_1767)",children:[(0,At.jsx)("path",{fill:"#195097",fillRule:"evenodd",d:"M10.8 1.338H4.333c-1.149 0-2.251.47-3.064 1.306A4.526 4.526 0 000 5.797V16.5a.913.913 0 00.254.63.854.854 0 00.613.261H13c1.15 0 2.251-.47 3.064-1.306a4.526 4.526 0 001.27-3.153V9.365c-3.682 0-6.667-2.995-6.667-6.69 0-.457.046-.905.133-1.337zM5.49 7.806a.854.854 0 01.576-.225c.23 0 .45.094.614.261a.907.907 0 01.254.63v1.784l-.007.105a.899.899 0 01-.304.578.85.85 0 01-1.187-.071.907.907 0 01-.236-.612V8.473l.006-.105a.899.899 0 01.285-.562zm5.164.036a.845.845 0 011.226 0 .904.904 0 01.254.63v1.784a.904.904 0 01-.254.631.851.851 0 01-1.226 0 .907.907 0 01-.254-.63V8.472c0-.237.091-.464.254-.63z",clipRule:"evenodd"}),(0,At.jsx)("path",{stroke:"#195097",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M13.913 3.545h2.667m0 0h2.666m-2.666 0V.87m0 2.675v2.676"})]}),(0,At.jsx)("defs",{children:(0,At.jsx)("clipPath",{id:"clip0_117_1767",children:(0,At.jsx)("path",{fill:"#fff",d:"M0 0H20V17.391H0z"})})})]}),(0,At.jsx)("span",{children:"New Thread"})]})]}),(0,At.jsx)("div",{className:"chat-threads-body-sec",children:(0,At.jsx)("ul",{className:"list-unstyled chat-threads-list-sec",children:i.loading?(0,At.jsx)(yv,{count:5,height:35}):h.length>0?h.map(((e,n)=>(0,At.jsxs)("li",{className:"".concat(a==e.id&&"active"),onClick:()=>t(Wo(e.id)),children:[(0,At.jsxs)("div",{style:{display:"flex",gap:"0.5em",alignItems:"center"},children:[(0,At.jsx)("div",{className:"chat-threads-list-icon-sec",children:(0,At.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 15 15",children:(0,At.jsx)("path",{fill:"#DDE5E5",fillRule:"evenodd",d:"M11.25.5c.995 0 1.948.41 2.652 1.139A3.963 3.963 0 0115 4.389v6.222c0 1.031-.395 2.02-1.098 2.75A3.683 3.683 0 0111.25 14.5H.75a.737.737 0 01-.53-.228.793.793 0 01-.22-.55V4.39c0-1.032.395-2.02 1.098-2.75A3.683 3.683 0 013.75.5h7.5zm-6 5.444a.735.735 0 00-.498.197.787.787 0 00-.247.49l-.005.091v1.556c0 .198.073.389.205.533a.733.733 0 001.027.063.786.786 0 00.263-.505L6 8.278V6.722a.793.793 0 00-.22-.55.737.737 0 00-.53-.228zm4.5 0a.737.737 0 00-.53.228.793.793 0 00-.22.55v1.556c0 .206.079.404.22.55.14.146.331.228.53.228s.39-.082.53-.228a.792.792 0 00.22-.55V6.722a.792.792 0 00-.22-.55.737.737 0 00-.53-.228z",clipRule:"evenodd"})})}),(0,At.jsx)("div",{className:"chat-threads-list-title-sec",children:e.title})]}),(0,At.jsxs)(ib,{className:"chat-threads-list-dropdown-sec",children:[(0,At.jsx)(ib.Toggle,{variant:"success",id:"dropdown-basic",children:(0,At.jsx)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",class:"icon-md",children:(0,At.jsx)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M3 12C3 10.8954 3.89543 10 5 10C6.10457 10 7 10.8954 7 12C7 13.1046 6.10457 14 5 14C3.89543 14 3 13.1046 3 12ZM10 12C10 10.8954 10.8954 10 12 10C13.1046 10 14 10.8954 14 12C14 13.1046 13.1046 14 12 14C10.8954 14 10 13.1046 10 12ZM17 12C17 10.8954 17.8954 10 19 10C20.1046 10 21 10.8954 21 12C21 13.1046 20.1046 14 19 14C17.8954 14 17 13.1046 17 12Z",fill:"currentColor"})})}),(0,At.jsx)(ib.Menu,{children:(0,At.jsxs)(ib.Item,{className:"dropdown-delete-item",onClick:()=>i.data.data.context_id.find((t=>t.id==e.id))?t(zo({uuid:a})):m(h.filter((t=>t.id!==e.id))),children:[(0,At.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",fill:"#FF6A6A",viewBox:"0 0 24 24",children:[(0,At.jsx)("path",{fill:"",d:"M3 6.524c0-.395.327-.714.73-.714h4.788c.006-.842.098-1.995.932-2.793A3.68 3.68 0 0112 2a3.68 3.68 0 012.55 1.017c.834.798.926 1.951.932 2.793h4.788c.403 0 .73.32.73.714a.722.722 0 01-.73.714H3.73A.722.722 0 013 6.524z"}),(0,At.jsx)("path",{fill:"#FF6A6A",fillRule:"evenodd",d:"M11.596 22h.808c2.783 0 4.174 0 5.08-.886.904-.886.996-2.34 1.181-5.246l.267-4.187c.1-1.577.15-2.366-.303-2.866-.454-.5-1.22-.5-2.753-.5H8.124c-1.533 0-2.3 0-2.753.5-.454.5-.404 1.289-.303 2.866l.267 4.188c.185 2.906.277 4.36 1.182 5.245.905.886 2.296.886 5.079.886zm-1.35-9.812c-.04-.433-.408-.75-.82-.707-.413.044-.713.43-.672.865l.5 5.263c.04.434.408.75.82.707.413-.044.713-.43.672-.864l-.5-5.264zm4.329-.707c.412.044.713.43.671.865l-.5 5.263c-.04.434-.409.75-.82.707-.413-.044-.713-.43-.672-.864l.5-5.264c.04-.433.409-.75.82-.707z",clipRule:"evenodd"})]}),(0,At.jsx)("span",{children:"Delete"})]})})]})]},n))):(0,At.jsx)(vv,{})})})]})}),(0,At.jsxs)(Wf,{md:9,children:[(0,At.jsxs)("div",{className:"chat-main-wrapper-sec mobile-hide",children:[(0,At.jsx)("div",{className:"chat-main-wrapper-header-sec",children:(0,At.jsx)("h3",{className:"mb-3",children:s.buttonDisable?(0,At.jsx)(yv,{width:200,height:30}):a&&h.length>0&&h.filter((e=>e.id==a)).length>0?h.filter((e=>e.id==a))[0].title:""})}),(0,At.jsx)("div",{className:"chat-main-wrapper-body-sec",ref:v,children:s.buttonDisable?(0,At.jsx)(yv,{count:5,height:30,className:"mb-3"}):p.length>0?(0,At.jsxs)(At.Fragment,{children:[p.map(((e,t)=>(0,At.jsx)(r.Fragment,{children:"user"==e.role?(0,At.jsxs)("div",{className:"chat-main-sender-sec",children:[(0,At.jsx)("div",{className:"chat-main-sender-icon-sec",children:(0,At.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",fill:"#195097",x:"0",y:"0",enableBackground:"new 0 0 512 512",version:"1.1",viewBox:"0 0 512 512",xmlSpace:"preserve",children:[(0,At.jsx)("circle",{cx:"256",cy:"128",r:"128"}),(0,At.jsx)("path",{d:"M256 298.667c-105.99.118-191.882 86.01-192 192C64 502.449 73.551 512 85.333 512h341.333c11.782 0 21.333-9.551 21.333-21.333-.117-105.99-86.009-191.883-191.999-192z"})]})}),(0,At.jsx)("div",{className:"chat-main-sender-message-sec",children:(0,At.jsx)("div",{className:"chat-main-sender-message",children:e.content})})]}):(0,At.jsxs)("div",{className:"chat-main-receiver-sec",children:[(0,At.jsx)("div",{className:"chat-main-receiver-icon-sec",children:(0,At.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"#fff",width:"20",height:"20","data-name":"Layer 1",viewBox:"0 0 24 24",children:(0,At.jsx)("path",{d:"M19.5 24a1 1 0 01-.929-.628l-.844-2.113-2.116-.891a1.007 1.007 0 01.035-1.857l2.088-.791.837-2.092a1.008 1.008 0 011.858 0l.841 2.1 2.1.841a1.007 1.007 0 010 1.858l-2.1.841-.841 2.1A1 1 0 0119.5 24zM10 21a2 2 0 01-1.936-1.413L6.45 14.54l-5.063-1.694a2.032 2.032 0 01.052-3.871l5.023-1.534 1.692-5.054A1.956 1.956 0 0110.108 1a2 2 0 011.917 1.439l1.532 5.015 5.03 1.61a2.042 2.042 0 010 3.872l-5.039 1.612-1.612 5.039A2 2 0 0110 21zM20.5 7a1 1 0 01-.97-.757l-.357-1.43-1.433-.385a1 1 0 01.034-1.94l1.4-.325.356-1.406a1 1 0 011.94 0l.354 1.418 1.418.355a1 1 0 010 1.94l-1.418.355-.354 1.418A1 1 0 0120.5 7z"})})}),(0,At.jsx)("div",{className:"chat-main-receiver-message-sec",children:(0,At.jsx)("div",{className:"chat-main-receiver-message",children:e.content})})]})},t))),(0,At.jsx)("div",{ref:b})]}):(0,At.jsx)(Wb,{})}),(0,At.jsx)("div",{className:"chat-main-wrapper-footer-sec",children:(0,At.jsx)(Mb,{onSubmit:e=>E(e),className:"chat-main-wrapper-typing-form",children:(0,At.jsxs)("div",{className:"chat-main-wrapper-typing-box",children:[(0,At.jsx)("div",{className:"chat-main-wrapper-footer-input-sec",children:(0,At.jsx)(Mb.Group,{className:"mb-0",controlId:"exampleForm.ControlInput1",children:(0,At.jsx)(Mb.Control,{type:"text",placeholder:"Ask or search anything...",onChange:e=>c(e.target.value),disabled:u.buttonDisable,value:l})})}),(0,At.jsx)("div",{className:"chat-main-wrapper-footer-submit-sec",children:(0,At.jsxs)(cs,{disabled:!l||u.buttonDisable,onClick:E,className:"chat-main-wrapper-footer-submit-btn",children:[(0,At.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",fill:"#fff",height:"20","data-name":"Layer 1",viewBox:"0 0 24 24",children:(0,At.jsx)("path",{d:"M.172 3.708A2.745 2.745 0 01.917.713 2.745 2.745 0 013.965.282l18.09 8.444A3.584 3.584 0 0124 10.999H4.048L.229 3.835a1.446 1.446 0 01-.057-.127zM4.062 13L.309 20.175a.944.944 0 00-.054.122 2.744 2.744 0 00.749 2.993 2.756 2.756 0 001.841.708c.409 0 .819-.092 1.201-.279l18.011-8.438a3.582 3.582 0 001.945-2.28H4.062z"})}),u.buttonDisable?(0,At.jsx)("span",{children:"Sending..."}):(0,At.jsx)("span",{children:"Send"})]})})]})})})]}),(0,At.jsx)(Ub,{})]})]})}),(0,At.jsx)(Hb,{renameThread:n,closeRenameThreadModal:()=>{o(!1)},setRenameThread:o})]})},qb=()=>(0,At.jsxs)("div",{className:"no-bot-exists-card mt-5",children:[(0,At.jsx)("div",{className:"no-bot-exists-img-sec",children:(0,At.jsx)(li,{className:"no-bot-exists-img",src:window.location.origin+"/img/404_error.png"})}),(0,At.jsx)("div",{className:"no-bot-exists-info",children:(0,At.jsx)("h4",{children:"This page you are looking not available"})}),(0,At.jsx)(je,{to:"/",className:"settings-btn",children:"Back To Home"})]}),$b=e=>(0,At.jsx)(At.Fragment,{children:(0,At.jsx)("div",{className:"welcome-page-body-sec",children:(0,At.jsxs)("div",{className:"welcome-page-box",children:[(0,At.jsxs)("div",{className:"welcome-left-sec",children:[(0,At.jsx)("h2",{children:"Welcome to HaiVE"}),(0,At.jsxs)("div",{className:"welcome-page-card",children:[(0,At.jsx)("p",{children:"I am your onboarding buddy, and I'm here to help if you have any questions. Please follow this tour to familiarize yourself with our platform."}),(0,At.jsx)("p",{children:(0,At.jsx)("small",{children:"Experience seamless communication with the bot through this application, where you can enjoy a variety of features:"})}),(0,At.jsxs)("div",{className:"welcome-page-img-sec",children:[(0,At.jsx)(li,{className:"welcome-page-img",src:window.location.origin+"/img/welcome/welcome-img.png"}),(0,At.jsxs)("div",{className:"welcome-page-btn-sec",children:[(0,At.jsx)(je,{to:"/upload",className:"get-started-btn",children:"Get Started"}),(0,At.jsx)(cs,{onClick:()=>localStorage.setItem("dashboard_tour",0),className:"default-btn",children:"Begin Tour"})]})]})]})]}),(0,At.jsx)("div",{className:"welcome-right-sec",children:(0,At.jsxs)("div",{className:"welcome-instruction-content",children:[(0,At.jsx)("div",{className:"welcome-instruction-icon-sec",children:(0,At.jsx)(li,{className:"welcome-instruction-icon",src:window.location.origin+"/img/welcome/welcome-icon.png"})}),(0,At.jsx)("h3",{children:"Seed the bot knowledge base by uploading training resources."}),(0,At.jsxs)("ul",{className:"list-unstyled welcome-instruction-list",children:[(0,At.jsxs)("li",{children:[(0,At.jsxs)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,At.jsx)("rect",{x:"0.5",y:"0.5",width:"22.76",height:"22.3251",rx:"11.1625",fill:"#195097"}),(0,At.jsx)("path",{d:"M10.013 13.9198L7.99173 11.8985C7.76455 11.6713 7.39756 11.6713 7.17038 11.8985C6.94321 12.1256 6.94321 12.4926 7.17038 12.7198L9.60529 15.1547C9.83247 15.3819 10.1995 15.3819 10.4266 15.1547L16.5896 8.99173C16.8168 8.76455 16.8168 8.39756 16.5896 8.17038C16.3624 7.94321 15.9955 7.94321 15.7683 8.17038L10.013 13.9198Z",fill:"white",stroke:"white"}),(0,At.jsx)("rect",{x:"0.5",y:"0.5",width:"22.76",height:"22.3251",rx:"11.1625",stroke:"#195097"})]}),(0,At.jsx)("span",{children:"See what it's like when all the tools and data an agent needs are unified on a single pane of glass, providing the entire context of a customer's issue."})]}),(0,At.jsxs)("li",{children:[(0,At.jsxs)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,At.jsx)("rect",{x:"0.5",y:"0.5",width:"22.76",height:"22.3251",rx:"11.1625",fill:"#195097"}),(0,At.jsx)("path",{d:"M10.013 13.9198L7.99173 11.8985C7.76455 11.6713 7.39756 11.6713 7.17038 11.8985C6.94321 12.1256 6.94321 12.4926 7.17038 12.7198L9.60529 15.1547C9.83247 15.3819 10.1995 15.3819 10.4266 15.1547L16.5896 8.99173C16.8168 8.76455 16.8168 8.39756 16.5896 8.17038C16.3624 7.94321 15.9955 7.94321 15.7683 8.17038L10.013 13.9198Z",fill:"white",stroke:"white"}),(0,At.jsx)("rect",{x:"0.5",y:"0.5",width:"22.76",height:"22.3251",rx:"11.1625",stroke:"#195097"})]}),(0,At.jsx)("span",{children:"Watch how customer interactions can be converted seamlessly between channels, keeping all data and context preserved."})]})]})]})})]})})}),Kb=(window.$,e=>{let{component:t,layout:n,screenProps:r,...o}=e;return(0,At.jsx)(n,{screenProps:r,...o,children:(0,At.jsx)(t,{})})}),Gb=()=>{const[e,t]=(0,r.useState)(!0),[n,o]=(0,r.useState)(!0);return(0,At.jsxs)(At.Fragment,{children:[(0,At.jsx)(Tf,{}),(0,At.jsx)(Ee,{children:(0,At.jsxs)(ge,{children:[(0,At.jsx)(he,{path:"/",element:(0,At.jsx)(Kb,{component:_t,layout:cf})}),(0,At.jsx)(he,{path:"/upload",element:(0,At.jsx)(Kb,{component:Gh,layout:cf})}),(0,At.jsx)(he,{path:"/file-uploading",element:(0,At.jsx)(Kb,{component:xv,layout:cf})}),(0,At.jsx)(he,{path:"/chat",element:(0,At.jsx)(Kb,{component:Vb,layout:cf})}),(0,At.jsx)(he,{path:"/welcome",element:(0,At.jsx)(Kb,{component:$b,layout:cf})}),(0,At.jsx)(he,{path:"/*",element:(0,At.jsx)(Kb,{component:qb,layout:cf})})]})})]})};var Yb=function(e){return"@@redux-saga/"+e},Qb=Yb("CANCEL_PROMISE"),Xb=Yb("CHANNEL_END"),Jb=Yb("IO"),Zb=Yb("MATCH"),ew=Yb("MULTICAST"),tw=Yb("SAGA_ACTION"),nw=Yb("SELF_CANCELLATION"),rw=Yb("TASK"),ow=Yb("TASK_CANCEL"),iw=Yb("TERMINATE"),aw=Yb("LOCATION"),sw=function(e){return null!==e&&void 0!==e},lw=function(e){return"function"===typeof e},cw=function(e){return"string"===typeof e},uw=Array.isArray,fw=function(e){return e&&lw(e.then)},dw=function(e){return e&&lw(e.next)&&lw(e.throw)},pw=function e(t){return t&&(cw(t)||gw(t)||lw(t)||uw(t)&&t.every(e))},hw=function(e){return e&&lw(e.take)&&lw(e.close)},mw=function(e){return lw(e)&&e.hasOwnProperty("toString")},gw=function(e){return Boolean(e)&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype},yw=function(e){return hw(e)&&e[ew]},vw=function(e){return function(){return e}},bw=vw(!0),ww=function(){};var xw=function(e){return e};"function"===typeof Symbol&&Symbol.asyncIterator&&Symbol.asyncIterator;var Ew=function(e,t){Cm(e,t),Object.getOwnPropertySymbols&&Object.getOwnPropertySymbols(t).forEach((function(n){e[n]=t[n]}))};function Sw(e,t){var n=e.indexOf(t);n>=0&&e.splice(n,1)}var kw=function(e){throw e},jw=function(e){return{value:e,done:!0}};function Ow(e,t,n){void 0===t&&(t=kw),void 0===n&&(n="iterator");var r={meta:{name:n},next:e,throw:t,return:jw,isSagaIterator:!0};return"undefined"!==typeof Symbol&&(r[Symbol.iterator]=function(){return r}),r}function Cw(e,t){var n=t.sagaStack;console.error(e),console.error(n)}var Nw=function(e){return Array.apply(null,new Array(e))},Tw=function(e){return function(t){return e(Object.defineProperty(t,tw,{value:!0}))}},Pw=function(e){return e===iw},Lw=function(e){return e===ow},Rw=function(e){return Pw(e)||Lw(e)};function Aw(e,t){var n=Object.keys(e),r=n.length;var o,i=0,a=uw(e)?Nw(r):{},s={};return n.forEach((function(e){var n=function(n,s){o||(s||Rw(n)?(t.cancel(),t(n,s)):(a[e]=n,++i===r&&(o=!0,t(a))))};n.cancel=ww,s[e]=n})),t.cancel=function(){o||(o=!0,n.forEach((function(e){return s[e].cancel()})))},s}function _w(e){return{name:e.name||"anonymous",location:Iw(e)}}function Iw(e){return e[aw]}function Mw(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return 0===t.length?function(e){return e}:1===t.length?t[0]:t.reduce((function(e,t){return function(){return e(t.apply(void 0,arguments))}}))}function Dw(e,t){void 0===e&&(e=10);var n=new Array(e),r=0,o=0,i=0,a=function(t){n[o]=t,o=(o+1)%e,r++},s=function(){if(0!=r){var t=n[i];return n[i]=null,r--,i=(i+1)%e,t}},l=function(){for(var e=[];r;)e.push(s());return e};return{isEmpty:function(){return 0==r},put:function(s){var c;if(r<e)a(s);else switch(t){case 1:throw new Error("Channel's Buffer overflow!");case 3:n[o]=s,i=o=(o+1)%e;break;case 4:c=2*e,n=l(),r=n.length,o=n.length,i=0,n.length=c,e=c,a(s)}},take:s,flush:l}}var Fw=function(e){return Dw(e,4)},Bw="TAKE",zw="PUT",Uw="ALL",Hw="RACE",Ww="CALL",Vw="CPS",qw="FORK",$w="JOIN",Kw="CANCEL",Gw="SELECT",Yw="ACTION_CHANNEL",Qw="CANCELLED",Xw="FLUSH",Jw="GET_CONTEXT",Zw="SET_CONTEXT",ex=function(e,t){var n;return(n={})[Jb]=!0,n.combinator=!1,n.type=e,n.payload=t,n};function tx(e,t){return void 0===e&&(e="*"),pw(e)?(sw(t)&&console.warn("take(pattern) takes one argument but two were provided. Consider passing an array for listening to several action types"),ex(Bw,{pattern:e})):yw(e)&&sw(t)&&pw(t)?ex(Bw,{channel:e,pattern:t}):hw(e)?(sw(t)&&console.warn("take(channel) takes one argument but two were provided. Second argument is ignored."),ex(Bw,{channel:e})):void 0}function nx(e){var t=ex(Uw,e);return t.combinator=!0,t}function rx(e,t){var n,r=null;return lw(e)?n=e:(uw(e)?(r=e[0],n=e[1]):(r=e.context,n=e.fn),r&&cw(n)&&lw(r[n])&&(n=r[n])),{context:r,fn:n,args:t}}function ox(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return ex(qw,rx(e,n))}function ix(e){void 0===e&&(e=xw);for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return ex(Gw,{selector:e,args:n})}function ax(){var e={};return e.promise=new Promise((function(t,n){e.resolve=t,e.reject=n})),e}const sx=ax;var lx=[],cx=0;function ux(e){try{px(),e()}finally{hx()}}function fx(e){lx.push(e),cx||(px(),mx())}function dx(e){try{return px(),e()}finally{mx()}}function px(){cx++}function hx(){cx--}function mx(){var e;for(hx();!cx&&void 0!==(e=lx.shift());)ux(e)}var gx=function(e){return function(t){return e.some((function(e){return xx(e)(t)}))}},yx=function(e){return function(t){return e(t)}},vx=function(e){return function(t){return t.type===String(e)}},bx=function(e){return function(t){return t.type===e}},wx=function(){return bw};function xx(e){var t="*"===e?wx:cw(e)?vx:uw(e)?gx:mw(e)?vx:lw(e)?yx:gw(e)?bx:null;if(null===t)throw new Error("invalid pattern: "+e);return t(e)}var Ex={type:Xb},Sx=function(e){return e&&e.type===Xb};function kx(e){void 0===e&&(e=Fw());var t=!1,n=[];return{take:function(r){t&&e.isEmpty()?r(Ex):e.isEmpty()?(n.push(r),r.cancel=function(){Sw(n,r)}):r(e.take())},put:function(r){if(!t){if(0===n.length)return e.put(r);n.shift()(r)}},flush:function(n){t&&e.isEmpty()?n(Ex):n(e.flush())},close:function(){if(!t){t=!0;var e=n;n=[];for(var r=0,o=e.length;r<o;r++){(0,e[r])(Ex)}}}}}function jx(){var e=function(){var e,t=!1,n=[],r=n,o=function(){r===n&&(r=n.slice())},i=function(){t=!0;var e=n=r;r=[],e.forEach((function(e){e(Ex)}))};return(e={})[ew]=!0,e.put=function(e){if(!t)if(Sx(e))i();else for(var o=n=r,a=0,s=o.length;a<s;a++){var l=o[a];l[Zb](e)&&(l.cancel(),l(e))}},e.take=function(e,n){void 0===n&&(n=wx),t?e(Ex):(e[Zb]=n,o(),r.push(e),e.cancel=function(e){var t=!1;return function(){t||(t=!0,e())}}((function(){o(),Sw(r,e)})))},e.close=i,e}(),t=e.put;return e.put=function(e){e[tw]?t(e):fx((function(){t(e)}))},e}var Ox=0,Cx=1,Nx=2,Tx=3;function Px(e,t){var n=e[Qb];lw(n)&&(t.cancel=n),e.then(t,(function(e){t(e,!0)}))}var Lx,Rx=0,Ax=function(){return++Rx};function _x(e){e.isRunning()&&e.cancel()}var Ix=((Lx={})[Bw]=function(e,t,n){var r=t.channel,o=void 0===r?e.channel:r,i=t.pattern,a=t.maybe,s=function(e){e instanceof Error?n(e,!0):!Sx(e)||a?n(e):n(iw)};try{o.take(s,sw(i)?xx(i):null)}catch(l){return void n(l,!0)}n.cancel=s.cancel},Lx[zw]=function(e,t,n){var r=t.channel,o=t.action,i=t.resolve;fx((function(){var t;try{t=(r?r.put:e.dispatch)(o)}catch(a){return void n(a,!0)}i&&fw(t)?Px(t,n):n(t)}))},Lx[Uw]=function(e,t,n,r){var o=r.digestEffect,i=Rx,a=Object.keys(t);if(0!==a.length){var s=Aw(t,n);a.forEach((function(e){o(t[e],i,s[e],e)}))}else n(uw(t)?[]:{})},Lx[Hw]=function(e,t,n,r){var o=r.digestEffect,i=Rx,a=Object.keys(t),s=uw(t)?Nw(a.length):{},l={},c=!1;a.forEach((function(e){var t=function(t,r){c||(r||Rw(t)?(n.cancel(),n(t,r)):(n.cancel(),c=!0,s[e]=t,n(s)))};t.cancel=ww,l[e]=t})),n.cancel=function(){c||(c=!0,a.forEach((function(e){return l[e].cancel()})))},a.forEach((function(e){c||o(t[e],i,l[e],e)}))},Lx[Ww]=function(e,t,n,r){var o=t.context,i=t.fn,a=t.args,s=r.task;try{var l=i.apply(o,a);if(fw(l))return void Px(l,n);if(dw(l))return void $x(e,l,s.context,Rx,_w(i),!1,n);n(l)}catch(c){n(c,!0)}},Lx[Vw]=function(e,t,n){var r=t.context,o=t.fn,i=t.args;try{var a=function(e,t){!function(e){return null===e||void 0===e}(e)?n(e,!0):n(t)};o.apply(r,i.concat(a)),a.cancel&&(n.cancel=a.cancel)}catch(s){n(s,!0)}},Lx[qw]=function(e,t,n,r){var o=t.context,i=t.fn,a=t.args,s=t.detached,l=r.task,c=function(e){var t=e.context,n=e.fn,r=e.args;try{var o=n.apply(t,r);if(dw(o))return o;var i=!1;return Ow((function(e){return i?{value:e,done:!0}:(i=!0,{value:o,done:!fw(o)})}))}catch(a){return Ow((function(){throw a}))}}({context:o,fn:i,args:a}),u=function(e,t){return e.isSagaIterator?{name:e.meta.name}:_w(t)}(c,i);dx((function(){var t=$x(e,c,l.context,Rx,u,s,void 0);s?n(t):t.isRunning()?(l.queue.addTask(t),n(t)):t.isAborted()?l.queue.abort(t.error()):n(t)}))},Lx[$w]=function(e,t,n,r){var o=r.task,i=function(e,t){if(e.isRunning()){var n={task:o,cb:t};t.cancel=function(){e.isRunning()&&Sw(e.joiners,n)},e.joiners.push(n)}else e.isAborted()?t(e.error(),!0):t(e.result())};if(uw(t)){if(0===t.length)return void n([]);var a=Aw(t,n);t.forEach((function(e,t){i(e,a[t])}))}else i(t,n)},Lx[Kw]=function(e,t,n,r){var o=r.task;t===nw?_x(o):uw(t)?t.forEach(_x):_x(t),n()},Lx[Gw]=function(e,t,n){var r=t.selector,o=t.args;try{n(r.apply(void 0,[e.getState()].concat(o)))}catch(i){n(i,!0)}},Lx[Yw]=function(e,t,n){var r=t.pattern,o=kx(t.buffer),i=xx(r),a=function t(n){Sx(n)||e.channel.take(t,i),o.put(n)},s=o.close;o.close=function(){a.cancel(),s()},e.channel.take(a,i),n(o)},Lx[Qw]=function(e,t,n,r){n(r.task.isCancelled())},Lx[Xw]=function(e,t,n){t.flush(n)},Lx[Jw]=function(e,t,n,r){n(r.task.context[t])},Lx[Zw]=function(e,t,n,r){var o=r.task;Ew(o.context,t),n()},Lx);function Mx(e,t){return e+"?"+t}function Dx(e){var t=e.name,n=e.location;return n?t+" "+Mx(n.fileName,n.lineNumber):t}function Fx(e){var t=function(e,t){var n;return(n=[]).concat.apply(n,t.map(e))}((function(e){return e.cancelledTasks}),e);return t.length?["Tasks cancelled due to error:"].concat(t).join("\n"):""}var Bx=null,zx=[],Ux=function(e){e.crashedEffect=Bx,zx.push(e)},Hx=function(){Bx=null,zx.length=0},Wx=function(e){Bx=e},Vx=function(){var e=zx[0],t=zx.slice(1),n=e.crashedEffect?function(e){var t=Iw(e);return t?t.code+" "+Mx(t.fileName,t.lineNumber):""}(e.crashedEffect):null;return["The above error occurred in task "+Dx(e.meta)+(n?" \n when executing effect "+n:"")].concat(t.map((function(e){return" created by "+Dx(e.meta)})),[Fx(zx)]).join("\n")};function qx(e,t,n,r,o,i,a){var s;void 0===a&&(a=ww);var l,c,u=Ox,f=null,d=[],p=Object.create(n),h=function(e,t,n){var r,o=[],i=!1;function a(e){t(),l(),n(e,!0)}function s(t){o.push(t),t.cont=function(s,l){i||(Sw(o,t),t.cont=ww,l?a(s):(t===e&&(r=s),o.length||(i=!0,n(r))))}}function l(){i||(i=!0,o.forEach((function(e){e.cont=ww,e.cancel()})),o=[])}return s(e),{addTask:s,cancelAll:l,abort:a,getTasks:function(){return o}}}(t,(function(){d.push.apply(d,h.getTasks().map((function(e){return e.meta.name})))}),m);function m(t,n){if(n){if(u=Nx,Ux({meta:o,cancelledTasks:d}),g.isRoot){var r=Vx();Hx(),e.onError(t,{sagaStack:r})}c=t,f&&f.reject(t)}else t===ow?u=Cx:u!==Cx&&(u=Tx),l=t,f&&f.resolve(t);g.cont(t,n),g.joiners.forEach((function(e){e.cb(t,n)})),g.joiners=null}var g=((s={})[rw]=!0,s.id=r,s.meta=o,s.isRoot=i,s.context=p,s.joiners=[],s.queue=h,s.cancel=function(){u===Ox&&(u=Cx,h.cancelAll(),m(ow,!1))},s.cont=a,s.end=m,s.setContext=function(e){Ew(p,e)},s.toPromise=function(){return f||(f=sx(),u===Nx?f.reject(c):u!==Ox&&f.resolve(l)),f.promise},s.isRunning=function(){return u===Ox},s.isCancelled=function(){return u===Cx||u===Ox&&t.status===Cx},s.isAborted=function(){return u===Nx},s.result=function(){return l},s.error=function(){return c},s);return g}function $x(e,t,n,r,o,i,a){var s=e.finalizeRunEffect((function(t,n,r){if(fw(t))Px(t,r);else if(dw(t))$x(e,t,c.context,n,o,!1,r);else if(t&&t[Jb]){(0,Ix[t.type])(e,t.payload,r,u)}else r(t)}));f.cancel=ww;var l={meta:o,cancel:function(){l.status===Ox&&(l.status=Cx,f(ow))},status:Ox},c=qx(e,l,n,r,o,i,a),u={task:c,digestEffect:d};return a&&(a.cancel=c.cancel),f(),c;function f(e,n){try{var o;n?(o=t.throw(e),Hx()):Lw(e)?(l.status=Cx,f.cancel(),o=lw(t.return)?t.return(ow):{done:!0,value:ow}):o=Pw(e)?lw(t.return)?t.return():{done:!0}:t.next(e),o.done?(l.status!==Cx&&(l.status=Tx),l.cont(o.value)):d(o.value,r,f)}catch(i){if(l.status===Cx)throw i;l.status=Nx,l.cont(i,!0)}}function d(t,n,r,o){void 0===o&&(o="");var i,a=Ax();function l(n,o){i||(i=!0,r.cancel=ww,e.sagaMonitor&&(o?e.sagaMonitor.effectRejected(a,n):e.sagaMonitor.effectResolved(a,n)),o&&Wx(t),r(n,o))}e.sagaMonitor&&e.sagaMonitor.effectTriggered({effectId:a,parentEffectId:n,label:o,effect:t}),l.cancel=ww,r.cancel=function(){i||(i=!0,l.cancel(),l.cancel=ww,e.sagaMonitor&&e.sagaMonitor.effectCancelled(a))},s(t,a,l)}}function Kx(e,t){var n=e.channel,r=void 0===n?jx():n,o=e.dispatch,i=e.getState,a=e.context,s=void 0===a?{}:a,l=e.sagaMonitor,c=e.effectMiddlewares,u=e.onError,f=void 0===u?Cw:u;for(var d=arguments.length,p=new Array(d>2?d-2:0),h=2;h<d;h++)p[h-2]=arguments[h];var m=t.apply(void 0,p);var g,y=Ax();if(l&&(l.rootSagaStarted=l.rootSagaStarted||ww,l.effectTriggered=l.effectTriggered||ww,l.effectResolved=l.effectResolved||ww,l.effectRejected=l.effectRejected||ww,l.effectCancelled=l.effectCancelled||ww,l.actionDispatched=l.actionDispatched||ww,l.rootSagaStarted({effectId:y,saga:t,args:p})),c){var v=Mw.apply(void 0,c);g=function(e){return function(t,n,r){return v((function(t){return e(t,n,r)}))(t)}}}else g=xw;var b={channel:r,dispatch:Tw(o),getState:i,sagaMonitor:l,onError:f,finalizeRunEffect:g};return dx((function(){var e=$x(b,m,s,y,_w(t),!0,void 0);return l&&l.effectResolved(y,e),e}))}const Gx=function(e){var t,n=void 0===e?{}:e,r=n.context,o=void 0===r?{}:r,i=n.channel,a=void 0===i?jx():i,s=n.sagaMonitor,l=ga(n,["context","channel","sagaMonitor"]);function c(e){var n=e.getState,r=e.dispatch;return t=Kx.bind(null,Cm({},l,{context:o,channel:a,dispatch:r,getState:n,sagaMonitor:s})),function(e){return function(t){s&&s.actionDispatched&&s.actionDispatched(t);var n=e(t);return a.put(t),n}}}return c.run=function(){return t.apply(void 0,arguments)},c.setContext=function(e){Ew(o,e)},c};var Yx=function(e){return{done:!0,value:e}},Qx={};function Xx(e){return hw(e)?"channel":mw(e)?String(e):lw(e)?e.name:String(e)}function Jx(e,t,n){var r,o,i,a=t;function s(t,n){if(a===Qx)return Yx(t);if(n&&!o)throw a=Qx,n;r&&r(t);var s=n?e[o](n):e[a]();return a=s.nextState,i=s.effect,r=s.stateUpdater,o=s.errorState,a===Qx?Yx(t):i}return Ow(s,(function(e){return s(null,e)}),n)}function Zx(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];var i,a,s={done:!1,value:tx(e)},l=function(e){return{done:!1,value:ox.apply(void 0,[t].concat(r,[e]))}},c=function(e){return{done:!1,value:(t=e,void 0===t&&(t=nw),ex(Kw,t))};var t},u=function(e){return i=e},f=function(e){return a=e};return Jx({q1:function(){return{nextState:"q2",effect:s,stateUpdater:f}},q2:function(){return i?{nextState:"q3",effect:c(i)}:{nextState:"q1",effect:l(a),stateUpdater:u}},q3:function(){return{nextState:"q1",effect:l(a),stateUpdater:u}}},"q1","takeLatest("+Xx(e)+", "+t.name+")")}function eE(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];return ox.apply(void 0,[Zx,e,t].concat(r))}const tE=()=>{localStorage.removeItem("token"),sessionStorage.removeItem("token")},nE=async e=>{let{apiUrl:t,success:n,failure:r,successCallback:o=!1,failureCallback:i=!1,successNotify:a=!0,errorNotify:s=!0}=e;try{const e=await Kh.getMethod(t);e.data?(o?n(e.data.data):SE.dispatch(n(e.data)),a&&Jd(e.data.message)):(i?r(e.data):SE.dispatch(r(e.data)),s&&Zd(e.data.error),e.data.error_code&&401===e.data.error_code&&tE())}catch(l){i?r(l):SE.dispatch(r(l)),s&&Zd(l.message)}},rE=async e=>{let{apiUrl:t,payload:n,success:r,failure:o,successCallback:i=!1,failureCallback:a=!1,successNotify:s=!0,errorNotify:l=!0}=e;try{const e=await Kh.postMethod(t,n);e.data.success?(i?r(e.data.data):SE.dispatch(r(e.data)),s&&Jd(e.data.message)):(a?o(e.data):SE.dispatch(o(e.data)),l&&Zd(e.data.error),e.data.error_code&&401===e.data.error_code&&tE())}catch(c){a?o(c):SE.dispatch(o(c)),l&&Zd(c.message)}},oE=async e=>{let{apiUrl:t,success:n,failure:r,successCallback:o=!1,failureCallback:i=!1,successNotify:a=!0,errorNotify:s=!0}=e;try{const e=await Kh.getMethod(t);e.data.success?(o?n(e.data.data):SE.dispatch(n(e.data)),a&&Jd(e.data.message)):(i?r(e.data):SE.dispatch(r(e.data)),s&&Zd(e.data.error),e.data.error_code&&401===e.data.error_code&&tE())}catch(l){i?r(l):SE.dispatch(r(l)),s&&Zd(l.message)}},iE=async e=>{let{apiUrl:t,payload:n,success:r,failure:o,successCallback:i=!1,failureCallback:a=!1,successNotify:s=!0,errorNotify:l=!0}=e;try{const e=await Kh.servicePostMethod(t,n);e.data.message?(i?r(e.data):SE.dispatch(r(e.data)),s&&Jd(e.data.message)):(a?o(e.data):SE.dispatch(o(e.data)),l&&Zd(e.data.error),e.data.error_code&&401===e.data.error_code&&tE())}catch(c){a?o(c):SE.dispatch(o(c)),l&&Zd(c.message)}},aE=async e=>{let{apiUrl:t,payload:n,success:r,failure:o,successCallback:i=!1,failureCallback:a=!1,successNotify:s=!0,errorNotify:l=!0}=e;try{const e=await Kh.queryPostMethod(t,n);e.data.success?(i?r(e.data.data):SE.dispatch(r(e.data)),s&&Jd(e.data.message)):(a?o(e.data):SE.dispatch(o(e.data)),l&&Zd(e.data.error),e.data.error_code&&401===e.data.error_code&&tE())}catch(c){a?o(c):SE.dispatch(o(c)),l&&Zd(c.message)}};function*sE(e){yield nE({apiUrl:"status",payload:e.payload,successNotify:!1,success:lo,failure:ao})}function*lE(e){yield rE({apiUrl:"uploadfile?user_id=123&bot_id=12345",payload:e.payload,successNotify:!0,success:uo,failure:fo})}function*cE(e){yield rE({apiUrl:"api/v1/file_info",payload:e.payload,successNotify:!1,success:yo,failure:vo})}function*uE(e){const t=yield ix((e=>e.common.trainedFileInfo.data));yield rE({apiUrl:"api/v1/delete_file",payload:e.payload,successNotify:!0,successCallback:!0,success:n=>{SE.dispatch(To(n)),SE.dispatch(yo({...t,data:{...t.data,trained_file_names:t.data.trained_file_names.filter((t=>t!==e.payload.file_name)),non_trained_file_names:t.data.non_trained_file_names.filter((t=>t!==e.payload.file_name))}}))},failure:Po})}function*fE(e){yield iE({apiUrl:"start",payload:e.payload,successNotify:!0,successCallback:!0,success:e=>{SE.dispatch(So(e)),SE.dispatch(so())},failure:ko})}function*dE(e){yield iE({apiUrl:"stop",payload:e.payload,successNotify:!0,successCallback:!0,success:e=>{SE.dispatch(Oo(e)),SE.dispatch(so())},failure:Co})}function*pE(e){yield aE({apiUrl:"api/v1/train",payload:e.payload,successNotify:!0,successCallback:!0,success:e=>{SE.dispatch(ho(e)),SE.dispatch(go({bot_id:12345,user_id:123}))},failure:mo})}function*hE(e){yield aE({apiUrl:"train_llm_cancel",payload:e.payload,successNotify:!1,success:wo,failure:xo})}function*mE(e){yield ix((e=>e.common.contextData.data.data));yield aE({apiUrl:"api/v1/query",payload:e.payload,successNotify:!1,successCallback:!0,success:e=>{SE.dispatch(Ro(e))},failure:Ao})}function*gE(e){yield oE({apiUrl:"api/v1/get_all_context_id",payload:e.payload,successNotify:!1,success:Io,failure:Mo})}function*yE(e){yield rE({apiUrl:"api/v1/get_context_data",payload:e.payload,successNotify:!1,success:Fo,failure:Bo})}function*vE(e){yield rE({apiUrl:"api/v1/delete_context_data",payload:e.payload,successNotify:!0,success:Uo,failure:Ho})}function*bE(){yield nx([yield eE("common/serviceStatusStart",sE),yield eE("common/uploadFileStart",lE),yield eE("common/trainedFileInfoStart",cE),yield eE("common/deleteFileStart",uE),yield eE("common/startLLMServiceStart",fE),yield eE("common/stopLLMServiceStart",dE),yield eE("common/trainLLMStart",pE),yield eE("common/trainLLMCancelStart",hE),yield eE("common/qnaStart",mE),yield eE("common/contextListStart",gE),yield eE("common/contextDataStart",yE),yield eE("common/deleteContextStart",vE)])}const wE={common:Go},xE=Gx(),EE=function(e){var t,n=Hr(),r=e||{},o=r.reducer,i=void 0===o?void 0:o,a=r.middleware,s=void 0===a?n():a,l=r.devTools,c=void 0===l||l,u=r.preloadedState,f=void 0===u?void 0:u,d=r.enhancers,p=void 0===d?void 0:d;if("function"===typeof i)t=i;else{if(!Dr(i))throw new Error('"reducer" is a required argument, and must be a function or an object of functions that can be passed to combineReducers');t=yr(i)}var h=s;"function"===typeof h&&(h=h(n));var m=br.apply(void 0,h),g=vr;c&&(g=Mr(Ar({trace:!1},"object"===typeof c&&c)));var y=new zr(m),v=y;return Array.isArray(p)?v=jr([m],p):"function"===typeof p&&(v=p(y)),gr(t,f,g.apply(void 0,v))}({reducer:wE,middleware:[xE]});xE.run((function*(){yield nx([ox(bE)])}));const SE=EE;const kE=function(){return(0,At.jsx)(Zt,{store:SE,children:(0,At.jsx)(Gb,{})})},jE=e=>{e&&e instanceof Function&&n.e(453).then(n.bind(n,453)).then((t=>{let{getCLS:n,getFID:r,getFCP:o,getLCP:i,getTTFB:a}=t;n(e),r(e),o(e),i(e),a(e)}))};i.createRoot(document.getElementById("root")).render((0,At.jsx)(kE,{})),jE()})()})();
//# sourceMappingURL=main.6f0f0b81.js.map
Back to Directory
File Manager