3 lines
No EOL
305 KiB
JavaScript
3 lines
No EOL
305 KiB
JavaScript
/*! For license information please see main.3703e36b.js.LICENSE.txt */
|
|
!function(){var e={228:function(e){e.exports=function(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},e.exports.__esModule=!0,e.exports.default=e.exports},858:function(e){e.exports=function(e){if(Array.isArray(e))return e},e.exports.__esModule=!0,e.exports.default=e.exports},646:function(e,t,n){var r=n(228);e.exports=function(e){if(Array.isArray(e))return r(e)},e.exports.__esModule=!0,e.exports.default=e.exports},506:function(e){e.exports=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e},e.exports.__esModule=!0,e.exports.default=e.exports},575:function(e){e.exports=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},e.exports.__esModule=!0,e.exports.default=e.exports},913:function(e){function t(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)}}e.exports=function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e},e.exports.__esModule=!0,e.exports.default=e.exports},269:function(e,t,n){var r=n(379);e.exports=function(e,t){var n="undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=r(e))||t&&e&&"number"===typeof e.length){n&&(e=n);var a=0,i=function(){};return{s:i,n:function(){return a>=e.length?{done:!0}:{done:!1,value:e[a++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,l=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return l=e.done,e},e:function(e){s=!0,o=e},f:function(){try{l||null==n.return||n.return()}finally{if(s)throw o}}}},e.exports.__esModule=!0,e.exports.default=e.exports},842:function(e,t,n){var r=n(754),a=n(67),i=n(585);e.exports=function(e){var t=a();return function(){var n,a=r(e);if(t){var o=r(this).constructor;n=Reflect.construct(a,arguments,o)}else n=a.apply(this,arguments);return i(this,n)}},e.exports.__esModule=!0,e.exports.default=e.exports},713:function(e){e.exports=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},e.exports.__esModule=!0,e.exports.default=e.exports},754:function(e){function t(n){return e.exports=t=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},e.exports.__esModule=!0,e.exports.default=e.exports,t(n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},205:function(e,t,n){var r=n(489);e.exports=function(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&&r(e,t)},e.exports.__esModule=!0,e.exports.default=e.exports},67:function(e){e.exports=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(e){return!1}},e.exports.__esModule=!0,e.exports.default=e.exports},860:function(e){e.exports=function(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)},e.exports.__esModule=!0,e.exports.default=e.exports},884:function(e){e.exports=function(e,t){var n=null==e?null:"undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,a,i=[],o=!0,l=!1;try{for(n=n.call(e);!(o=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);o=!0);}catch(s){l=!0,a=s}finally{try{o||null==n.return||n.return()}finally{if(l)throw a}}return i}},e.exports.__esModule=!0,e.exports.default=e.exports},521:function(e){e.exports=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.")},e.exports.__esModule=!0,e.exports.default=e.exports},206:function(e){e.exports=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.")},e.exports.__esModule=!0,e.exports.default=e.exports},585:function(e,t,n){var r=n(8).default,a=n(506);e.exports=function(e,t){if(t&&("object"===r(t)||"function"===typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return a(e)},e.exports.__esModule=!0,e.exports.default=e.exports},489:function(e){function t(n,r){return e.exports=t=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},e.exports.__esModule=!0,e.exports.default=e.exports,t(n,r)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},769:function(e,t,n){var r=n(858),a=n(884),i=n(379),o=n(521);e.exports=function(e,t){return r(e)||a(e,t)||i(e,t)||o()},e.exports.__esModule=!0,e.exports.default=e.exports},319:function(e,t,n){var r=n(646),a=n(860),i=n(379),o=n(206);e.exports=function(e){return r(e)||a(e)||i(e)||o()},e.exports.__esModule=!0,e.exports.default=e.exports},8:function(e){function t(n){return e.exports=t="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},e.exports.__esModule=!0,e.exports.default=e.exports,t(n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},379:function(e,t,n){var r=n(228);e.exports=function(e,t){if(e){if("string"===typeof e)return r(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)?r(e,t):void 0}},e.exports.__esModule=!0,e.exports.default=e.exports},9:function(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),o=i[0],l=i[1],u=new a(function(e,t,n){return 3*(t+n)/4-n}(0,o,l)),c=0,f=l>0?o-4:o;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)],u[c++]=t>>16&255,u[c++]=t>>8&255,u[c++]=255&t;2===l&&(t=r[e.charCodeAt(n)]<<2|r[e.charCodeAt(n+1)]>>4,u[c++]=255&t);1===l&&(t=r[e.charCodeAt(n)]<<10|r[e.charCodeAt(n+1)]<<4|r[e.charCodeAt(n+2)]>>2,u[c++]=t>>8&255,u[c++]=255&t);return u},t.fromByteArray=function(e){for(var t,r=e.length,a=r%3,i=[],o=16383,l=0,s=r-a;l<s;l+=o)i.push(u(e,l,l+o>s?s:l+o));1===a?(t=e[r-1],i.push(n[t>>2]+n[t<<4&63]+"==")):2===a&&(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=[],a="undefined"!==typeof Uint8Array?Uint8Array:Array,i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",o=0,l=i.length;o<l;++o)n[o]=i[o],r[i.charCodeAt(o)]=o;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 u(e,t,r){for(var a,i,o=[],l=t;l<r;l+=3)a=(e[l]<<16&16711680)+(e[l+1]<<8&65280)+(255&e[l+2]),o.push(n[(i=a)>>18&63]+n[i>>12&63]+n[i>>6&63]+n[63&i]);return o.join("")}r["-".charCodeAt(0)]=62,r["_".charCodeAt(0)]=63},778:function(e,t,n){"use strict";var r=n(575).default,a=n(913).default,i=n(506).default,o=n(205).default,l=n(842).default,s=n(9),u=n(38),c="function"===typeof Symbol&&"function"===typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;t.Buffer=h,t.SlowBuffer=function(e){+e!=e&&(e=0);return h.alloc(+e)},t.INSPECT_MAX_BYTES=50;var f=2147483647;function d(e){if(e>f)throw new RangeError('The value "'+e+'" is invalid for option "size"');var t=new Uint8Array(e);return Object.setPrototypeOf(t,h.prototype),t}function h(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 v(e)}return p(e,t,n)}function p(e,t,n){if("string"===typeof e)return function(e,t){"string"===typeof t&&""!==t||(t="utf8");if(!h.isEncoding(t))throw new TypeError("Unknown encoding: "+t);var n=0|w(e,t),r=d(n),a=r.write(e,t);a!==n&&(r=r.slice(0,a));return r}(e,t);if(ArrayBuffer.isView(e))return function(e){if(ee(e,Uint8Array)){var t=new Uint8Array(e);return y(t.buffer,t.byteOffset,t.byteLength)}return g(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(ee(e,ArrayBuffer)||e&&ee(e.buffer,ArrayBuffer))return y(e,t,n);if("undefined"!==typeof SharedArrayBuffer&&(ee(e,SharedArrayBuffer)||e&&ee(e.buffer,SharedArrayBuffer)))return y(e,t,n);if("number"===typeof e)throw new TypeError('The "value" argument must not be of type number. Received type number');var r=e.valueOf&&e.valueOf();if(null!=r&&r!==e)return h.from(r,t,n);var a=function(e){if(h.isBuffer(e)){var t=0|b(e.length),n=d(t);return 0===n.length||e.copy(n,0,0,t),n}if(void 0!==e.length)return"number"!==typeof e.length||te(e.length)?d(0):g(e);if("Buffer"===e.type&&Array.isArray(e.data))return g(e.data)}(e);if(a)return a;if("undefined"!==typeof Symbol&&null!=Symbol.toPrimitive&&"function"===typeof e[Symbol.toPrimitive])return h.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 m(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 v(e){return m(e),d(e<0?0:0|b(e))}function g(e){for(var t=e.length<0?0:0|b(e.length),n=d(t),r=0;r<t;r+=1)n[r]=255&e[r];return n}function y(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');var 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,h.prototype),r}function b(e){if(e>=f)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+f.toString(16)+" bytes");return 0|e}function w(e,t){if(h.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||ee(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);var n=e.length,r=arguments.length>2&&!0===arguments[2];if(!r&&0===n)return 0;for(var a=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":return K(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return X(e).length;default:if(a)return r?-1:K(e).length;t=(""+t).toLowerCase(),a=!0}}function k(e,t,n){var 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 L(this,t,n);case"utf8":case"utf-8":return A(this,t,n);case"ascii":return O(this,t,n);case"latin1":case"binary":return z(this,t,n);case"base64":return I(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return P(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function x(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function _(e,t,n,r,a){if(0===e.length)return-1;if("string"===typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),te(n=+n)&&(n=a?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(a)return-1;n=e.length-1}else if(n<0){if(!a)return-1;n=0}if("string"===typeof t&&(t=h.from(t,r)),h.isBuffer(t))return 0===t.length?-1:S(e,t,n,r,a);if("number"===typeof t)return t&=255,"function"===typeof Uint8Array.prototype.indexOf?a?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):S(e,[t],n,r,a);throw new TypeError("val must be string, number or Buffer")}function S(e,t,n,r,a){var i,o=1,l=e.length,s=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;o=2,l/=2,s/=2,n/=2}function u(e,t){return 1===o?e[t]:e.readUInt16BE(t*o)}if(a){var c=-1;for(i=n;i<l;i++)if(u(e,i)===u(t,-1===c?0:i-c)){if(-1===c&&(c=i),i-c+1===s)return c*o}else-1!==c&&(i-=i-c),c=-1}else for(n+s>l&&(n=l-s),i=n;i>=0;i--){for(var f=!0,d=0;d<s;d++)if(u(e,i+d)!==u(t,d)){f=!1;break}if(f)return i}return-1}function E(e,t,n,r){n=Number(n)||0;var a=e.length-n;r?(r=Number(r))>a&&(r=a):r=a;var i,o=t.length;for(r>o/2&&(r=o/2),i=0;i<r;++i){var l=parseInt(t.substr(2*i,2),16);if(te(l))return i;e[n+i]=l}return i}function C(e,t,n,r){return J(K(t,e.length-n),e,n,r)}function j(e,t,n,r){return J(function(e){for(var t=[],n=0;n<e.length;++n)t.push(255&e.charCodeAt(n));return t}(t),e,n,r)}function N(e,t,n,r){return J(X(t),e,n,r)}function R(e,t,n,r){return J(function(e,t){for(var n,r,a,i=[],o=0;o<e.length&&!((t-=2)<0);++o)r=(n=e.charCodeAt(o))>>8,a=n%256,i.push(a),i.push(r);return i}(t,e.length-n),e,n,r)}function I(e,t,n){return 0===t&&n===e.length?s.fromByteArray(e):s.fromByteArray(e.slice(t,n))}function A(e,t,n){n=Math.min(e.length,n);for(var r=[],a=t;a<n;){var i=e[a],o=null,l=i>239?4:i>223?3:i>191?2:1;if(a+l<=n){var s=void 0,u=void 0,c=void 0,f=void 0;switch(l){case 1:i<128&&(o=i);break;case 2:128===(192&(s=e[a+1]))&&(f=(31&i)<<6|63&s)>127&&(o=f);break;case 3:s=e[a+1],u=e[a+2],128===(192&s)&&128===(192&u)&&(f=(15&i)<<12|(63&s)<<6|63&u)>2047&&(f<55296||f>57343)&&(o=f);break;case 4:s=e[a+1],u=e[a+2],c=e[a+3],128===(192&s)&&128===(192&u)&&128===(192&c)&&(f=(15&i)<<18|(63&s)<<12|(63&u)<<6|63&c)>65535&&f<1114112&&(o=f)}}null===o?(o=65533,l=1):o>65535&&(o-=65536,r.push(o>>>10&1023|55296),o=56320|1023&o),r.push(o),a+=l}return function(e){var t=e.length;if(t<=T)return String.fromCharCode.apply(String,e);var n="",r=0;for(;r<t;)n+=String.fromCharCode.apply(String,e.slice(r,r+=T));return n}(r)}t.kMaxLength=f,h.TYPED_ARRAY_SUPPORT=function(){try{var e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),42===e.foo()}catch(n){return!1}}(),h.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(h.prototype,"parent",{enumerable:!0,get:function(){if(h.isBuffer(this))return this.buffer}}),Object.defineProperty(h.prototype,"offset",{enumerable:!0,get:function(){if(h.isBuffer(this))return this.byteOffset}}),h.poolSize=8192,h.from=function(e,t,n){return p(e,t,n)},Object.setPrototypeOf(h.prototype,Uint8Array.prototype),Object.setPrototypeOf(h,Uint8Array),h.alloc=function(e,t,n){return function(e,t,n){return m(e),e<=0?d(e):void 0!==t?"string"===typeof n?d(e).fill(t,n):d(e).fill(t):d(e)}(e,t,n)},h.allocUnsafe=function(e){return v(e)},h.allocUnsafeSlow=function(e){return v(e)},h.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==h.prototype},h.compare=function(e,t){if(ee(e,Uint8Array)&&(e=h.from(e,e.offset,e.byteLength)),ee(t,Uint8Array)&&(t=h.from(t,t.offset,t.byteLength)),!h.isBuffer(e)||!h.isBuffer(t))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;for(var n=e.length,r=t.length,a=0,i=Math.min(n,r);a<i;++a)if(e[a]!==t[a]){n=e[a],r=t[a];break}return n<r?-1:r<n?1:0},h.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}},h.concat=function(e,t){if(!Array.isArray(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return h.alloc(0);var n;if(void 0===t)for(t=0,n=0;n<e.length;++n)t+=e[n].length;var r=h.allocUnsafe(t),a=0;for(n=0;n<e.length;++n){var i=e[n];if(ee(i,Uint8Array))a+i.length>r.length?(h.isBuffer(i)||(i=h.from(i)),i.copy(r,a)):Uint8Array.prototype.set.call(r,i,a);else{if(!h.isBuffer(i))throw new TypeError('"list" argument must be an Array of Buffers');i.copy(r,a)}a+=i.length}return r},h.byteLength=w,h.prototype._isBuffer=!0,h.prototype.swap16=function(){var e=this.length;if(e%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)x(this,t,t+1);return this},h.prototype.swap32=function(){var e=this.length;if(e%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)x(this,t,t+3),x(this,t+1,t+2);return this},h.prototype.swap64=function(){var e=this.length;if(e%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)x(this,t,t+7),x(this,t+1,t+6),x(this,t+2,t+5),x(this,t+3,t+4);return this},h.prototype.toString=function(){var e=this.length;return 0===e?"":0===arguments.length?A(this,0,e):k.apply(this,arguments)},h.prototype.toLocaleString=h.prototype.toString,h.prototype.equals=function(e){if(!h.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===h.compare(this,e)},h.prototype.inspect=function(){var e="",n=t.INSPECT_MAX_BYTES;return e=this.toString("hex",0,n).replace(/(.{2})/g,"$1 ").trim(),this.length>n&&(e+=" ... "),"<Buffer "+e+">"},c&&(h.prototype[c]=h.prototype.inspect),h.prototype.compare=function(e,t,n,r,a){if(ee(e,Uint8Array)&&(e=h.from(e,e.offset,e.byteLength)),!h.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===a&&(a=this.length),t<0||n>e.length||r<0||a>this.length)throw new RangeError("out of range index");if(r>=a&&t>=n)return 0;if(r>=a)return-1;if(t>=n)return 1;if(this===e)return 0;for(var i=(a>>>=0)-(r>>>=0),o=(n>>>=0)-(t>>>=0),l=Math.min(i,o),s=this.slice(r,a),u=e.slice(t,n),c=0;c<l;++c)if(s[c]!==u[c]){i=s[c],o=u[c];break}return i<o?-1:o<i?1:0},h.prototype.includes=function(e,t,n){return-1!==this.indexOf(e,t,n)},h.prototype.indexOf=function(e,t,n){return _(this,e,t,n,!0)},h.prototype.lastIndexOf=function(e,t,n){return _(this,e,t,n,!1)},h.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)}var a=this.length-t;if((void 0===n||n>a)&&(n=a),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var i=!1;;)switch(r){case"hex":return E(this,e,t,n);case"utf8":case"utf-8":return C(this,e,t,n);case"ascii":case"latin1":case"binary":return j(this,e,t,n);case"base64":return N(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return R(this,e,t,n);default:if(i)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),i=!0}},h.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var T=4096;function O(e,t,n){var r="";n=Math.min(e.length,n);for(var a=t;a<n;++a)r+=String.fromCharCode(127&e[a]);return r}function z(e,t,n){var r="";n=Math.min(e.length,n);for(var a=t;a<n;++a)r+=String.fromCharCode(e[a]);return r}function L(e,t,n){var r=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>r)&&(n=r);for(var a="",i=t;i<n;++i)a+=ne[e[i]];return a}function P(e,t,n){for(var r=e.slice(t,n),a="",i=0;i<r.length-1;i+=2)a+=String.fromCharCode(r[i]+256*r[i+1]);return a}function M(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 D(e,t,n,r,a,i){if(!h.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>a||t<i)throw new RangeError('"value" argument is out of bounds');if(n+r>e.length)throw new RangeError("Index out of range")}function F(e,t,n,r,a){$(t,r,a,e,n,7);var i=Number(t&BigInt(4294967295));e[n++]=i,i>>=8,e[n++]=i,i>>=8,e[n++]=i,i>>=8,e[n++]=i;var o=Number(t>>BigInt(32)&BigInt(4294967295));return e[n++]=o,o>>=8,e[n++]=o,o>>=8,e[n++]=o,o>>=8,e[n++]=o,n}function B(e,t,n,r,a){$(t,r,a,e,n,7);var 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;var o=Number(t>>BigInt(32)&BigInt(4294967295));return e[n+3]=o,o>>=8,e[n+2]=o,o>>=8,e[n+1]=o,o>>=8,e[n]=o,n+8}function U(e,t,n,r,a,i){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function H(e,t,n,r,a){return t=+t,n>>>=0,a||U(e,0,n,4),u.write(e,t,n,r,23,4),n+4}function W(e,t,n,r,a){return t=+t,n>>>=0,a||U(e,0,n,8),u.write(e,t,n,r,52,8),n+8}h.prototype.slice=function(e,t){var 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);var r=this.subarray(e,t);return Object.setPrototypeOf(r,h.prototype),r},h.prototype.readUintLE=h.prototype.readUIntLE=function(e,t,n){e>>>=0,t>>>=0,n||M(e,t,this.length);for(var r=this[e],a=1,i=0;++i<t&&(a*=256);)r+=this[e+i]*a;return r},h.prototype.readUintBE=h.prototype.readUIntBE=function(e,t,n){e>>>=0,t>>>=0,n||M(e,t,this.length);for(var r=this[e+--t],a=1;t>0&&(a*=256);)r+=this[e+--t]*a;return r},h.prototype.readUint8=h.prototype.readUInt8=function(e,t){return e>>>=0,t||M(e,1,this.length),this[e]},h.prototype.readUint16LE=h.prototype.readUInt16LE=function(e,t){return e>>>=0,t||M(e,2,this.length),this[e]|this[e+1]<<8},h.prototype.readUint16BE=h.prototype.readUInt16BE=function(e,t){return e>>>=0,t||M(e,2,this.length),this[e]<<8|this[e+1]},h.prototype.readUint32LE=h.prototype.readUInt32LE=function(e,t){return e>>>=0,t||M(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},h.prototype.readUint32BE=h.prototype.readUInt32BE=function(e,t){return e>>>=0,t||M(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},h.prototype.readBigUInt64LE=re((function(e){G(e>>>=0,"offset");var t=this[e],n=this[e+7];void 0!==t&&void 0!==n||Y(e,this.length-8);var r=t+this[++e]*Math.pow(2,8)+this[++e]*Math.pow(2,16)+this[++e]*Math.pow(2,24),a=this[++e]+this[++e]*Math.pow(2,8)+this[++e]*Math.pow(2,16)+n*Math.pow(2,24);return BigInt(r)+(BigInt(a)<<BigInt(32))})),h.prototype.readBigUInt64BE=re((function(e){G(e>>>=0,"offset");var t=this[e],n=this[e+7];void 0!==t&&void 0!==n||Y(e,this.length-8);var r=t*Math.pow(2,24)+this[++e]*Math.pow(2,16)+this[++e]*Math.pow(2,8)+this[++e],a=this[++e]*Math.pow(2,24)+this[++e]*Math.pow(2,16)+this[++e]*Math.pow(2,8)+n;return(BigInt(r)<<BigInt(32))+BigInt(a)})),h.prototype.readIntLE=function(e,t,n){e>>>=0,t>>>=0,n||M(e,t,this.length);for(var r=this[e],a=1,i=0;++i<t&&(a*=256);)r+=this[e+i]*a;return r>=(a*=128)&&(r-=Math.pow(2,8*t)),r},h.prototype.readIntBE=function(e,t,n){e>>>=0,t>>>=0,n||M(e,t,this.length);for(var r=t,a=1,i=this[e+--r];r>0&&(a*=256);)i+=this[e+--r]*a;return i>=(a*=128)&&(i-=Math.pow(2,8*t)),i},h.prototype.readInt8=function(e,t){return e>>>=0,t||M(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},h.prototype.readInt16LE=function(e,t){e>>>=0,t||M(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},h.prototype.readInt16BE=function(e,t){e>>>=0,t||M(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},h.prototype.readInt32LE=function(e,t){return e>>>=0,t||M(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},h.prototype.readInt32BE=function(e,t){return e>>>=0,t||M(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},h.prototype.readBigInt64LE=re((function(e){G(e>>>=0,"offset");var t=this[e],n=this[e+7];void 0!==t&&void 0!==n||Y(e,this.length-8);var r=this[e+4]+this[e+5]*Math.pow(2,8)+this[e+6]*Math.pow(2,16)+(n<<24);return(BigInt(r)<<BigInt(32))+BigInt(t+this[++e]*Math.pow(2,8)+this[++e]*Math.pow(2,16)+this[++e]*Math.pow(2,24))})),h.prototype.readBigInt64BE=re((function(e){G(e>>>=0,"offset");var t=this[e],n=this[e+7];void 0!==t&&void 0!==n||Y(e,this.length-8);var r=(t<<24)+this[++e]*Math.pow(2,16)+this[++e]*Math.pow(2,8)+this[++e];return(BigInt(r)<<BigInt(32))+BigInt(this[++e]*Math.pow(2,24)+this[++e]*Math.pow(2,16)+this[++e]*Math.pow(2,8)+n)})),h.prototype.readFloatLE=function(e,t){return e>>>=0,t||M(e,4,this.length),u.read(this,e,!0,23,4)},h.prototype.readFloatBE=function(e,t){return e>>>=0,t||M(e,4,this.length),u.read(this,e,!1,23,4)},h.prototype.readDoubleLE=function(e,t){return e>>>=0,t||M(e,8,this.length),u.read(this,e,!0,52,8)},h.prototype.readDoubleBE=function(e,t){return e>>>=0,t||M(e,8,this.length),u.read(this,e,!1,52,8)},h.prototype.writeUintLE=h.prototype.writeUIntLE=function(e,t,n,r){(e=+e,t>>>=0,n>>>=0,r)||D(this,e,t,n,Math.pow(2,8*n)-1,0);var a=1,i=0;for(this[t]=255&e;++i<n&&(a*=256);)this[t+i]=e/a&255;return t+n},h.prototype.writeUintBE=h.prototype.writeUIntBE=function(e,t,n,r){(e=+e,t>>>=0,n>>>=0,r)||D(this,e,t,n,Math.pow(2,8*n)-1,0);var a=n-1,i=1;for(this[t+a]=255&e;--a>=0&&(i*=256);)this[t+a]=e/i&255;return t+n},h.prototype.writeUint8=h.prototype.writeUInt8=function(e,t,n){return e=+e,t>>>=0,n||D(this,e,t,1,255,0),this[t]=255&e,t+1},h.prototype.writeUint16LE=h.prototype.writeUInt16LE=function(e,t,n){return e=+e,t>>>=0,n||D(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},h.prototype.writeUint16BE=h.prototype.writeUInt16BE=function(e,t,n){return e=+e,t>>>=0,n||D(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},h.prototype.writeUint32LE=h.prototype.writeUInt32LE=function(e,t,n){return e=+e,t>>>=0,n||D(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},h.prototype.writeUint32BE=h.prototype.writeUInt32BE=function(e,t,n){return e=+e,t>>>=0,n||D(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},h.prototype.writeBigUInt64LE=re((function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return F(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))})),h.prototype.writeBigUInt64BE=re((function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return B(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))})),h.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t>>>=0,!r){var a=Math.pow(2,8*n-1);D(this,e,t,n,a-1,-a)}var i=0,o=1,l=0;for(this[t]=255&e;++i<n&&(o*=256);)e<0&&0===l&&0!==this[t+i-1]&&(l=1),this[t+i]=(e/o>>0)-l&255;return t+n},h.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t>>>=0,!r){var a=Math.pow(2,8*n-1);D(this,e,t,n,a-1,-a)}var i=n-1,o=1,l=0;for(this[t+i]=255&e;--i>=0&&(o*=256);)e<0&&0===l&&0!==this[t+i+1]&&(l=1),this[t+i]=(e/o>>0)-l&255;return t+n},h.prototype.writeInt8=function(e,t,n){return e=+e,t>>>=0,n||D(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},h.prototype.writeInt16LE=function(e,t,n){return e=+e,t>>>=0,n||D(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},h.prototype.writeInt16BE=function(e,t,n){return e=+e,t>>>=0,n||D(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},h.prototype.writeInt32LE=function(e,t,n){return e=+e,t>>>=0,n||D(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},h.prototype.writeInt32BE=function(e,t,n){return e=+e,t>>>=0,n||D(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},h.prototype.writeBigInt64LE=re((function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return F(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),h.prototype.writeBigInt64BE=re((function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return B(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),h.prototype.writeFloatLE=function(e,t,n){return H(this,e,t,!0,n)},h.prototype.writeFloatBE=function(e,t,n){return H(this,e,t,!1,n)},h.prototype.writeDoubleLE=function(e,t,n){return W(this,e,t,!0,n)},h.prototype.writeDoubleBE=function(e,t,n){return W(this,e,t,!1,n)},h.prototype.copy=function(e,t,n,r){if(!h.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);var a=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),a},h.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&&!h.isEncoding(r))throw new TypeError("Unknown encoding: "+r);if(1===e.length){var a=e.charCodeAt(0);("utf8"===r&&a<128||"latin1"===r)&&(e=a)}}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;var i;if(t>>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"===typeof e)for(i=t;i<n;++i)this[i]=e;else{var o=h.isBuffer(e)?e:h.from(e,r),l=o.length;if(0===l)throw new TypeError('The value "'+e+'" is invalid for argument "value"');for(i=0;i<n-t;++i)this[i+t]=o[i%l]}return this};var q={};function Z(e,t,n){q[e]=function(n){o(u,n);var s=l(u);function u(){var n;return r(this,u),n=s.call(this),Object.defineProperty(i(n),"message",{value:t.apply(i(n),arguments),writable:!0,configurable:!0}),n.name="".concat(n.name," [").concat(e,"]"),n.stack,delete n.name,n}return a(u,[{key:"code",get:function(){return e},set:function(e){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:e,writable:!0})}},{key:"toString",value:function(){return"".concat(this.name," [").concat(e,"]: ").concat(this.message)}}]),u}(n)}function V(e){for(var t="",n=e.length,r="-"===e[0]?1:0;n>=r+4;n-=3)t="_".concat(e.slice(n-3,n)).concat(t);return"".concat(e.slice(0,n)).concat(t)}function $(e,t,n,r,a,i){if(e>n||e<t){var o,l="bigint"===typeof t?"n":"";throw o=i>3?0===t||t===BigInt(0)?">= 0".concat(l," and < 2").concat(l," ** ").concat(8*(i+1)).concat(l):">= -(2".concat(l," ** ").concat(8*(i+1)-1).concat(l,") and < 2 ** ")+"".concat(8*(i+1)-1).concat(l):">= ".concat(t).concat(l," and <= ").concat(n).concat(l),new q.ERR_OUT_OF_RANGE("value",o,e)}!function(e,t,n){G(t,"offset"),void 0!==e[t]&&void 0!==e[t+n]||Y(t,e.length-(n+1))}(r,a,i)}function G(e,t){if("number"!==typeof e)throw new q.ERR_INVALID_ARG_TYPE(t,"number",e)}function Y(e,t,n){if(Math.floor(e)!==e)throw G(e,n),new q.ERR_OUT_OF_RANGE(n||"offset","an integer",e);if(t<0)throw new q.ERR_BUFFER_OUT_OF_BOUNDS;throw new q.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){var r='The value of "'.concat(e,'" is out of range.'),a=n;return Number.isInteger(n)&&Math.abs(n)>Math.pow(2,32)?a=V(String(n)):"bigint"===typeof n&&(a=String(n),(n>Math.pow(BigInt(2),BigInt(32))||n<-Math.pow(BigInt(2),BigInt(32)))&&(a=V(a)),a+="n"),r+=" It must be ".concat(t,". Received ").concat(a)}),RangeError);var Q=/[^+/0-9A-Za-z-_]/g;function K(e,t){var n;t=t||1/0;for(var r=e.length,a=null,i=[],o=0;o<r;++o){if((n=e.charCodeAt(o))>55295&&n<57344){if(!a){if(n>56319){(t-=3)>-1&&i.push(239,191,189);continue}if(o+1===r){(t-=3)>-1&&i.push(239,191,189);continue}a=n;continue}if(n<56320){(t-=3)>-1&&i.push(239,191,189),a=n;continue}n=65536+(a-55296<<10|n-56320)}else a&&(t-=3)>-1&&i.push(239,191,189);if(a=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 X(e){return s.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 J(e,t,n,r){var a;for(a=0;a<r&&!(a+n>=t.length||a>=e.length);++a)t[a+n]=e[a];return a}function ee(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}function te(e){return e!==e}var ne=function(){for(var e="0123456789abcdef",t=new Array(256),n=0;n<16;++n)for(var r=16*n,a=0;a<16;++a)t[r+a]=e[n]+e[a];return t}();function re(e){return"undefined"===typeof BigInt?ae:e}function ae(){throw new Error("BigInt not supported")}},412:function(e){"use strict";var t="%[a-f0-9]{2}",n=new RegExp(t,"gi"),r=new RegExp("("+t+")+","gi");function a(e,t){try{return decodeURIComponent(e.join(""))}catch(i){}if(1===e.length)return e;t=t||1;var n=e.slice(0,t),r=e.slice(t);return Array.prototype.concat.call([],a(n),a(r))}function i(e){try{return decodeURIComponent(e)}catch(i){for(var t=e.match(n),r=1;r<t.length;r++)t=(e=a(t,r).join("")).match(n);return e}}e.exports=function(e){if("string"!==typeof e)throw new TypeError("Expected `encodedURI` to be of type `string`, got `"+typeof e+"`");try{return e=e.replace(/\+/g," "),decodeURIComponent(e)}catch(t){return function(e){for(var n={"%FE%FF":"\ufffd\ufffd","%FF%FE":"\ufffd\ufffd"},a=r.exec(e);a;){try{n[a[0]]=decodeURIComponent(a[0])}catch(t){var o=i(a[0]);o!==a[0]&&(n[a[0]]=o)}a=r.exec(e)}n["%C2"]="\ufffd";for(var l=Object.keys(n),s=0;s<l.length;s++){var u=l[s];e=e.replace(new RegExp(u,"g"),n[u])}return e}(e)}}},683:function(e){"use strict";e.exports=function(e,t){for(var n={},r=Object.keys(e),a=Array.isArray(t),i=0;i<r.length;i++){var o=r[i],l=e[o];(a?-1!==t.indexOf(o):t(o,l,e))&&(n[o]=l)}return n}},38:function(e,t){t.read=function(e,t,n,r,a){var i,o,l=8*a-r-1,s=(1<<l)-1,u=s>>1,c=-7,f=n?a-1:0,d=n?-1:1,h=e[t+f];for(f+=d,i=h&(1<<-c)-1,h>>=-c,c+=l;c>0;i=256*i+e[t+f],f+=d,c-=8);for(o=i&(1<<-c)-1,i>>=-c,c+=r;c>0;o=256*o+e[t+f],f+=d,c-=8);if(0===i)i=1-u;else{if(i===s)return o?NaN:1/0*(h?-1:1);o+=Math.pow(2,r),i-=u}return(h?-1:1)*o*Math.pow(2,i-r)},t.write=function(e,t,n,r,a,i){var o,l,s,u=8*i-a-1,c=(1<<u)-1,f=c>>1,d=23===a?Math.pow(2,-24)-Math.pow(2,-77):0,h=r?0:i-1,p=r?1:-1,m=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(l=isNaN(t)?1:0,o=c):(o=Math.floor(Math.log(t)/Math.LN2),t*(s=Math.pow(2,-o))<1&&(o--,s*=2),(t+=o+f>=1?d/s:d*Math.pow(2,1-f))*s>=2&&(o++,s/=2),o+f>=c?(l=0,o=c):o+f>=1?(l=(t*s-1)*Math.pow(2,a),o+=f):(l=t*Math.pow(2,f-1)*Math.pow(2,a),o=0));a>=8;e[n+h]=255&l,h+=p,l/=256,a-=8);for(o=o<<a|l,u+=a;u>0;e[n+h]=255&o,h+=p,o/=256,u-=8);e[n+h-p]|=128*m}},245:function(e,t,n){"use strict";var r=n(713).default,a=n(769).default,i=n(269).default,o=n(319).default,l=n(499),s=n(412),u=n(845),c=n(683),f=Symbol("encodeFragmentIdentifier");function d(e){if("string"!==typeof e||1!==e.length)throw new TypeError("arrayFormatSeparator must be single character string")}function h(e,t){return t.encode?t.strict?l(e):encodeURIComponent(e):e}function p(e,t){return t.decode?s(e):e}function m(e){return Array.isArray(e)?e.sort():"object"===typeof e?m(Object.keys(e)).sort((function(e,t){return Number(e)-Number(t)})).map((function(t){return e[t]})):e}function v(e){var t=e.indexOf("#");return-1!==t&&(e=e.slice(0,t)),e}function g(e){var t=(e=v(e)).indexOf("?");return-1===t?"":e.slice(t+1)}function y(e,t){return t.parseNumbers&&!Number.isNaN(Number(e))&&"string"===typeof e&&""!==e.trim()?e=Number(e):!t.parseBooleans||null===e||"true"!==e.toLowerCase()&&"false"!==e.toLowerCase()||(e="true"===e.toLowerCase()),e}function b(e,t){d((t=Object.assign({decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1},t)).arrayFormatSeparator);var n=function(e){var t;switch(e.arrayFormat){case"index":return function(e,n,r){t=/\[(\d*)\]$/.exec(e),e=e.replace(/\[\d*\]$/,""),t?(void 0===r[e]&&(r[e]={}),r[e][t[1]]=n):r[e]=n};case"bracket":return function(e,n,r){t=/(\[\])$/.exec(e),e=e.replace(/\[\]$/,""),t?void 0!==r[e]?r[e]=[].concat(r[e],n):r[e]=[n]:r[e]=n};case"colon-list-separator":return function(e,n,r){t=/(:list)$/.exec(e),e=e.replace(/:list$/,""),t?void 0!==r[e]?r[e]=[].concat(r[e],n):r[e]=[n]:r[e]=n};case"comma":case"separator":return function(t,n,r){var a="string"===typeof n&&n.includes(e.arrayFormatSeparator),i="string"===typeof n&&!a&&p(n,e).includes(e.arrayFormatSeparator);n=i?p(n,e):n;var o=a||i?n.split(e.arrayFormatSeparator).map((function(t){return p(t,e)})):null===n?n:p(n,e);r[t]=o};case"bracket-separator":return function(t,n,r){var a=/(\[\])$/.test(t);if(t=t.replace(/\[\]$/,""),a){var i=null===n?[]:n.split(e.arrayFormatSeparator).map((function(t){return p(t,e)}));void 0!==r[t]?r[t]=[].concat(r[t],i):r[t]=i}else r[t]=n?p(n,e):n};default:return function(e,t,n){void 0!==n[e]?n[e]=[].concat(n[e],t):n[e]=t}}}(t),r=Object.create(null);if("string"!==typeof e)return r;if(!(e=e.trim().replace(/^[?#&]/,"")))return r;var o,l=i(e.split("&"));try{for(l.s();!(o=l.n()).done;){var s=o.value;if(""!==s){var c=u(t.decode?s.replace(/\+/g," "):s,"="),f=a(c,2),h=f[0],v=f[1];v=void 0===v?null:["comma","separator","bracket-separator"].includes(t.arrayFormat)?v:p(v,t),n(p(h,t),v,r)}}}catch(E){l.e(E)}finally{l.f()}for(var g=0,b=Object.keys(r);g<b.length;g++){var w=b[g],k=r[w];if("object"===typeof k&&null!==k)for(var x=0,_=Object.keys(k);x<_.length;x++){var S=_[x];k[S]=y(k[S],t)}else r[w]=y(k,t)}return!1===t.sort?r:(!0===t.sort?Object.keys(r).sort():Object.keys(r).sort(t.sort)).reduce((function(e,t){var n=r[t];return Boolean(n)&&"object"===typeof n&&!Array.isArray(n)?e[t]=m(n):e[t]=n,e}),Object.create(null))}t.extract=g,t.parse=b,t.stringify=function(e,t){if(!e)return"";d((t=Object.assign({encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:","},t)).arrayFormatSeparator);for(var n=function(n){return t.skipNull&&(null===(r=e[n])||void 0===r)||t.skipEmptyString&&""===e[n];var r},r=function(e){switch(e.arrayFormat){case"index":return function(t){return function(n,r){var a=n.length;return void 0===r||e.skipNull&&null===r||e.skipEmptyString&&""===r?n:[].concat(o(n),null===r?[[h(t,e),"[",a,"]"].join("")]:[[h(t,e),"[",h(a,e),"]=",h(r,e)].join("")])}};case"bracket":return function(t){return function(n,r){return void 0===r||e.skipNull&&null===r||e.skipEmptyString&&""===r?n:[].concat(o(n),null===r?[[h(t,e),"[]"].join("")]:[[h(t,e),"[]=",h(r,e)].join("")])}};case"colon-list-separator":return function(t){return function(n,r){return void 0===r||e.skipNull&&null===r||e.skipEmptyString&&""===r?n:[].concat(o(n),null===r?[[h(t,e),":list="].join("")]:[[h(t,e),":list=",h(r,e)].join("")])}};case"comma":case"separator":case"bracket-separator":var t="bracket-separator"===e.arrayFormat?"[]=":"=";return function(n){return function(r,a){return void 0===a||e.skipNull&&null===a||e.skipEmptyString&&""===a?r:(a=null===a?"":a,0===r.length?[[h(n,e),t,h(a,e)].join("")]:[[r,h(a,e)].join(e.arrayFormatSeparator)])}};default:return function(t){return function(n,r){return void 0===r||e.skipNull&&null===r||e.skipEmptyString&&""===r?n:[].concat(o(n),null===r?[h(t,e)]:[[h(t,e),"=",h(r,e)].join("")])}}}}(t),a={},i=0,l=Object.keys(e);i<l.length;i++){var s=l[i];n(s)||(a[s]=e[s])}var u=Object.keys(a);return!1!==t.sort&&u.sort(t.sort),u.map((function(n){var a=e[n];return void 0===a?"":null===a?h(n,t):Array.isArray(a)?0===a.length&&"bracket-separator"===t.arrayFormat?h(n,t)+"[]":a.reduce(r(n),[]).join("&"):h(n,t)+"="+h(a,t)})).filter((function(e){return e.length>0})).join("&")},t.parseUrl=function(e,t){t=Object.assign({decode:!0},t);var n=u(e,"#"),r=a(n,2),i=r[0],o=r[1];return Object.assign({url:i.split("?")[0]||"",query:b(g(e),t)},t&&t.parseFragmentIdentifier&&o?{fragmentIdentifier:p(o,t)}:{})},t.stringifyUrl=function(e,n){n=Object.assign(r({encode:!0,strict:!0},f,!0),n);var a=v(e.url).split("?")[0]||"",i=t.extract(e.url),o=t.parse(i,{sort:!1}),l=Object.assign(o,e.query),s=t.stringify(l,n);s&&(s="?".concat(s));var u=function(e){var t="",n=e.indexOf("#");return-1!==n&&(t=e.slice(n)),t}(e.url);return e.fragmentIdentifier&&(u="#".concat(n[f]?h(e.fragmentIdentifier,n):e.fragmentIdentifier)),"".concat(a).concat(s).concat(u)},t.pick=function(e,n,a){a=Object.assign(r({parseFragmentIdentifier:!0},f,!1),a);var i=t.parseUrl(e,a),o=i.url,l=i.query,s=i.fragmentIdentifier;return t.stringifyUrl({url:o,query:c(l,n),fragmentIdentifier:s},a)},t.exclude=function(e,n,r){var a=Array.isArray(n)?function(e){return!n.includes(e)}:function(e,t){return!n(e,t)};return t.pick(e,a,r)}},463:function(e,t,n){"use strict";var r=n(791),a=n(296);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 o=new Set,l={};function s(e,t){u(e,t),u(e+"Capture",t)}function u(e,t){for(l[e]=t,e=0;e<t.length;e++)o.add(t[e])}var c=!("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]*$/,h={},p={};function m(e,t,n,r,a,i,o){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=a,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=o}var v={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){v[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];v[t]=new m(t,1,!1,e[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){v[e]=new m(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){v[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){v[e]=new m(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){v[e]=new m(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){v[e]=new m(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){v[e]=new m(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){v[e]=new m(e,5,!1,e.toLowerCase(),null,!1,!1)}));var g=/[\-:]([a-z])/g;function y(e){return e[1].toUpperCase()}function b(e,t,n,r){var a=v.hasOwnProperty(t)?v[t]:null;(null!==a?0!==a.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,a,r)&&(n=null),r||null===a?function(e){return!!f.call(p,e)||!f.call(h,e)&&(d.test(e)?p[e]=!0:(h[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):a.mustUseProperty?e[a.propertyName]=null===n?3!==a.type&&"":n:(t=a.attributeName,r=a.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(a=a.type)||4===a&&!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(g,y);v[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(g,y);v[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(g,y);v[t]=new m(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){v[e]=new m(e,1,!1,e.toLowerCase(),null,!1,!1)})),v.xlinkHref=new m("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){v[e]=new m(e,1,!1,e.toLowerCase(),null,!0,!0)}));var w=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,k=Symbol.for("react.element"),x=Symbol.for("react.portal"),_=Symbol.for("react.fragment"),S=Symbol.for("react.strict_mode"),E=Symbol.for("react.profiler"),C=Symbol.for("react.provider"),j=Symbol.for("react.context"),N=Symbol.for("react.forward_ref"),R=Symbol.for("react.suspense"),I=Symbol.for("react.suspense_list"),A=Symbol.for("react.memo"),T=Symbol.for("react.lazy");Symbol.for("react.scope"),Symbol.for("react.debug_trace_mode");var O=Symbol.for("react.offscreen");Symbol.for("react.legacy_hidden"),Symbol.for("react.cache"),Symbol.for("react.tracing_marker");var z=Symbol.iterator;function L(e){return null===e||"object"!==typeof e?null:"function"===typeof(e=z&&e[z]||e["@@iterator"])?e:null}var P,M=Object.assign;function D(e){if(void 0===P)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);P=t&&t[1]||""}return"\n"+P+e}var F=!1;function B(e,t){if(!e||F)return"";F=!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(u){var r=u}Reflect.construct(e,[],t)}else{try{t.call()}catch(u){r=u}e.call(t.prototype)}else{try{throw Error()}catch(u){r=u}e()}}catch(u){if(u&&r&&"string"===typeof u.stack){for(var a=u.stack.split("\n"),i=r.stack.split("\n"),o=a.length-1,l=i.length-1;1<=o&&0<=l&&a[o]!==i[l];)l--;for(;1<=o&&0<=l;o--,l--)if(a[o]!==i[l]){if(1!==o||1!==l)do{if(o--,0>--l||a[o]!==i[l]){var s="\n"+a[o].replace(" at new "," at ");return e.displayName&&s.includes("<anonymous>")&&(s=s.replace("<anonymous>",e.displayName)),s}}while(1<=o&&0<=l);break}}}finally{F=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?D(e):""}function U(e){switch(e.tag){case 5:return D(e.type);case 16:return D("Lazy");case 13:return D("Suspense");case 19:return D("SuspenseList");case 0:case 2:case 15:return e=B(e.type,!1);case 11:return e=B(e.type.render,!1);case 1:return e=B(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 _:return"Fragment";case x:return"Portal";case E:return"Profiler";case S:return"StrictMode";case R:return"Suspense";case I:return"SuspenseList"}if("object"===typeof e)switch(e.$$typeof){case j:return(e.displayName||"Context")+".Consumer";case C: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 A:return null!==(t=e.displayName||null)?t:H(e.type)||"Memo";case T: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===S?"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 q(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function Z(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function V(e){e._valueTracker||(e._valueTracker=function(e){var t=Z(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 a=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return a.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 $(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Z(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 M({},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=q(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 K(e,t){null!=(t=t.checked)&&b(e,"checked",t,!1)}function X(e,t){K(e,t);var n=q(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,q(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function J(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 a=0;a<n.length;a++)t["$"+n[a]]=!0;for(n=0;n<e.length;n++)a=t.hasOwnProperty("$"+e[n].value),e[n].selected!==a&&(e[n].selected=a),a&&r&&(e[n].defaultSelected=!0)}else{for(n=""+q(n),t=null,a=0;a<e.length;a++){if(e[a].value===n)return e[a].selected=!0,void(r&&(e[a].defaultSelected=!0));null!==t||e[a].disabled||(t=e[a])}null!==t&&(t.selected=!0)}}function re(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(i(91));return M({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function ae(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:q(n)}}function ie(e,t){var n=q(t.value),r=q(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 oe(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}function le(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 se(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?le(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var ue,ce,fe=(ce=function(e,t){if("http://www.w3.org/2000/svg"!==e.namespaceURI||"innerHTML"in e)e.innerHTML=t;else{for((ue=ue||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=ue.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 ce(e,t)}))}:ce);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 he={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},pe=["Webkit","ms","Moz","O"];function me(e,t,n){return null==t||"boolean"===typeof t||""===t?"":n||"number"!==typeof t||0===t||he.hasOwnProperty(e)&&he[e]?(""+t).trim():t+"px"}function ve(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),a=me(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,a):e[n]=a}}Object.keys(he).forEach((function(e){pe.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),he[t]=he[e]}))}));var ge=M({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 ye(e,t){if(t){if(ge[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 ke(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var xe=null,_e=null,Se=null;function Ee(e){if(e=ba(e)){if("function"!==typeof xe)throw Error(i(280));var t=e.stateNode;t&&(t=ka(t),xe(e.stateNode,e.type,t))}}function Ce(e){_e?Se?Se.push(e):Se=[e]:_e=e}function je(){if(_e){var e=_e,t=Se;if(Se=_e=null,Ee(e),t)for(e=0;e<t.length;e++)Ee(t[e])}}function Ne(e,t){return e(t)}function Re(){}var Ie=!1;function Ae(e,t,n){if(Ie)return e(t,n);Ie=!0;try{return Ne(e,t,n)}finally{Ie=!1,(null!==_e||null!==Se)&&(Re(),je())}}function Te(e,t){var n=e.stateNode;if(null===n)return null;var r=ka(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 Oe=!1;if(c)try{var ze={};Object.defineProperty(ze,"passive",{get:function(){Oe=!0}}),window.addEventListener("test",ze,ze),window.removeEventListener("test",ze,ze)}catch(ce){Oe=!1}function Le(e,t,n,r,a,i,o,l,s){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(c){this.onError(c)}}var Pe=!1,Me=null,De=!1,Fe=null,Be={onError:function(e){Pe=!0,Me=e}};function Ue(e,t,n,r,a,i,o,l,s){Pe=!1,Me=null,Le.apply(Be,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 qe(e){if(He(e)!==e)throw Error(i(188))}function Ze(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 a=n.return;if(null===a)break;var o=a.alternate;if(null===o){if(null!==(r=a.return)){n=r;continue}break}if(a.child===o.child){for(o=a.child;o;){if(o===n)return qe(a),e;if(o===r)return qe(a),t;o=o.sibling}throw Error(i(188))}if(n.return!==r.return)n=a,r=o;else{for(var l=!1,s=a.child;s;){if(s===n){l=!0,n=a,r=o;break}if(s===r){l=!0,r=a,n=o;break}s=s.sibling}if(!l){for(s=o.child;s;){if(s===n){l=!0,n=o,r=a;break}if(s===r){l=!0,r=o,n=a;break}s=s.sibling}if(!l)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))?Ve(e):null}function Ve(e){if(5===e.tag||6===e.tag)return e;for(e=e.child;null!==e;){var t=Ve(e);if(null!==t)return t;e=e.sibling}return null}var $e=a.unstable_scheduleCallback,Ge=a.unstable_cancelCallback,Ye=a.unstable_shouldYield,Qe=a.unstable_requestPaint,Ke=a.unstable_now,Xe=a.unstable_getCurrentPriorityLevel,Je=a.unstable_ImmediatePriority,et=a.unstable_UserBlockingPriority,tt=a.unstable_NormalPriority,nt=a.unstable_LowPriority,rt=a.unstable_IdlePriority,at=null,it=null;var ot=Math.clz32?Math.clz32:function(e){return 0===(e>>>=0)?32:31-(lt(e)/st|0)|0},lt=Math.log,st=Math.LN2;var ut=64,ct=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,a=e.suspendedLanes,i=e.pingedLanes,o=268435455&n;if(0!==o){var l=o&~a;0!==l?r=ft(l):0!==(i&=o)&&(r=ft(i))}else 0!==(o=n&~a)?r=ft(o):0!==i&&(r=ft(i));if(0===r)return 0;if(0!==t&&t!==r&&0===(t&a)&&((a=r&-r)>=(i=t&-t)||16===a&&0!==(4194240&i)))return t;if(0!==(4&r)&&(r|=16&n),0!==(t=e.entangledLanes))for(e=e.entanglements,t&=r;0<t;)a=1<<(n=31-ot(t)),r|=e[n],t&=~a;return r}function ht(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 pt(e){return 0!==(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function mt(){var e=ut;return 0===(4194240&(ut<<=1))&&(ut=64),e}function vt(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function gt(e,t,n){e.pendingLanes|=t,536870912!==t&&(e.suspendedLanes=0,e.pingedLanes=0),(e=e.eventTimes)[t=31-ot(t)]=n}function yt(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-ot(n),a=1<<r;a&t|e[r]&t&&(e[r]|=t),n&=~a}}var bt=0;function wt(e){return 1<(e&=-e)?4<e?0!==(268435455&e)?16:536870912:4:1}var kt,xt,_t,St,Et,Ct=!1,jt=[],Nt=null,Rt=null,It=null,At=new Map,Tt=new Map,Ot=[],zt="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 Lt(e,t){switch(e){case"focusin":case"focusout":Nt=null;break;case"dragenter":case"dragleave":Rt=null;break;case"mouseover":case"mouseout":It=null;break;case"pointerover":case"pointerout":At.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Tt.delete(t.pointerId)}}function Pt(e,t,n,r,a,i){return null===e||e.nativeEvent!==i?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:i,targetContainers:[a]},null!==t&&(null!==(t=ba(t))&&xt(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,null!==a&&-1===t.indexOf(a)&&t.push(a),e)}function Mt(e){var t=ya(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 Et(e.priority,(function(){_t(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 Dt(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=ba(n))&&xt(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 Ft(e,t,n){Dt(e)&&n.delete(t)}function Bt(){Ct=!1,null!==Nt&&Dt(Nt)&&(Nt=null),null!==Rt&&Dt(Rt)&&(Rt=null),null!==It&&Dt(It)&&(It=null),At.forEach(Ft),Tt.forEach(Ft)}function Ut(e,t){e.blockedOn===t&&(e.blockedOn=null,Ct||(Ct=!0,a.unstable_scheduleCallback(a.unstable_NormalPriority,Bt)))}function Ht(e){function t(t){return Ut(t,e)}if(0<jt.length){Ut(jt[0],e);for(var n=1;n<jt.length;n++){var r=jt[n];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==Nt&&Ut(Nt,e),null!==Rt&&Ut(Rt,e),null!==It&&Ut(It,e),At.forEach(t),Tt.forEach(t),n=0;n<Ot.length;n++)(r=Ot[n]).blockedOn===e&&(r.blockedOn=null);for(;0<Ot.length&&null===(n=Ot[0]).blockedOn;)Mt(n),null===n.blockedOn&&Ot.shift()}var Wt=w.ReactCurrentBatchConfig,qt=!0;function Zt(e,t,n,r){var a=bt,i=Wt.transition;Wt.transition=null;try{bt=1,$t(e,t,n,r)}finally{bt=a,Wt.transition=i}}function Vt(e,t,n,r){var a=bt,i=Wt.transition;Wt.transition=null;try{bt=4,$t(e,t,n,r)}finally{bt=a,Wt.transition=i}}function $t(e,t,n,r){if(qt){var a=Yt(e,t,n,r);if(null===a)qr(e,t,r,Gt,n),Lt(e,r);else if(function(e,t,n,r,a){switch(t){case"focusin":return Nt=Pt(Nt,e,t,n,r,a),!0;case"dragenter":return Rt=Pt(Rt,e,t,n,r,a),!0;case"mouseover":return It=Pt(It,e,t,n,r,a),!0;case"pointerover":var i=a.pointerId;return At.set(i,Pt(At.get(i)||null,e,t,n,r,a)),!0;case"gotpointercapture":return i=a.pointerId,Tt.set(i,Pt(Tt.get(i)||null,e,t,n,r,a)),!0}return!1}(a,e,t,n,r))r.stopPropagation();else if(Lt(e,r),4&t&&-1<zt.indexOf(e)){for(;null!==a;){var i=ba(a);if(null!==i&&kt(i),null===(i=Yt(e,t,n,r))&&qr(e,t,r,Gt,n),i===a)break;a=i}null!==a&&r.stopPropagation()}else qr(e,t,r,null,n)}}var Gt=null;function Yt(e,t,n,r){if(Gt=null,null!==(e=ya(e=ke(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(Xe()){case Je:return 1;case et:return 4;case tt:case nt:return 16;case rt:return 536870912;default:return 16}default:return 16}}var Kt=null,Xt=null,Jt=null;function en(){if(Jt)return Jt;var e,t,n=Xt,r=n.length,a="value"in Kt?Kt.value:Kt.textContent,i=a.length;for(e=0;e<r&&n[e]===a[e];e++);var o=r-e;for(t=1;t<=o&&n[r-t]===a[i-t];t++);return Jt=a.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 an(e){function t(t,n,r,a,i){for(var o in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=a,this.target=i,this.currentTarget=null,e)e.hasOwnProperty(o)&&(t=e[o],this[o]=t?t(a):a[o]);return this.isDefaultPrevented=(null!=a.defaultPrevented?a.defaultPrevented:!1===a.returnValue)?nn:rn,this.isPropagationStopped=rn,this}return M(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 on,ln,sn,un={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},cn=an(un),fn=M({},un,{view:0,detail:0}),dn=an(fn),hn=M({},fn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:En,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!==sn&&(sn&&"mousemove"===e.type?(on=e.screenX-sn.screenX,ln=e.screenY-sn.screenY):ln=on=0,sn=e),on)},movementY:function(e){return"movementY"in e?e.movementY:ln}}),pn=an(hn),mn=an(M({},hn,{dataTransfer:0})),vn=an(M({},fn,{relatedTarget:0})),gn=an(M({},un,{animationName:0,elapsedTime:0,pseudoElement:0})),yn=M({},un,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),bn=an(yn),wn=an(M({},un,{data:0})),kn={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},xn={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"},_n={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Sn(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=_n[e])&&!!t[e]}function En(){return Sn}var Cn=M({},fn,{key:function(e){if(e.key){var t=kn[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?xn[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:En,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}}),jn=an(Cn),Nn=an(M({},hn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),Rn=an(M({},fn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:En})),In=an(M({},un,{propertyName:0,elapsedTime:0,pseudoElement:0})),An=M({},hn,{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}),Tn=an(An),On=[9,13,27,32],zn=c&&"CompositionEvent"in window,Ln=null;c&&"documentMode"in document&&(Ln=document.documentMode);var Pn=c&&"TextEvent"in window&&!Ln,Mn=c&&(!zn||Ln&&8<Ln&&11>=Ln),Dn=String.fromCharCode(32),Fn=!1;function Bn(e,t){switch(e){case"keyup":return-1!==On.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 qn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!Wn[e.type]:"textarea"===t}function Zn(e,t,n,r){Ce(r),0<(t=Vr(t,"onChange")).length&&(n=new cn("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Vn=null,$n=null;function Gn(e){Dr(e,0)}function Yn(e){if($(wa(e)))return e}function Qn(e,t){if("change"===e)return t}var Kn=!1;if(c){var Xn;if(c){var Jn="oninput"in document;if(!Jn){var er=document.createElement("div");er.setAttribute("oninput","return;"),Jn="function"===typeof er.oninput}Xn=Jn}else Xn=!1;Kn=Xn&&(!document.documentMode||9<document.documentMode)}function tr(){Vn&&(Vn.detachEvent("onpropertychange",nr),$n=Vn=null)}function nr(e){if("value"===e.propertyName&&Yn($n)){var t=[];Zn(t,$n,e,ke(e)),Ae(Gn,t)}}function rr(e,t,n){"focusin"===e?(tr(),$n=n,(Vn=t).attachEvent("onpropertychange",nr)):"focusout"===e&&tr()}function ar(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return Yn($n)}function ir(e,t){if("click"===e)return Yn(t)}function or(e,t){if("input"===e||"change"===e)return Yn(t)}var lr="function"===typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e===1/t)||e!==e&&t!==t};function sr(e,t){if(lr(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 a=n[r];if(!f.call(t,a)||!lr(e[a],t[a]))return!1}return!0}function ur(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function cr(e,t){var n,r=ur(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=ur(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 hr(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 pr(e){var t=dr(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&fr(n.ownerDocument.documentElement,n)){if(null!==r&&hr(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 a=n.textContent.length,i=Math.min(r.start,a);r=void 0===r.end?i:Math.min(r.end,a),!e.extend&&i>r&&(a=r,r=i,i=a),a=cr(n,i);var o=cr(n,r);a&&o&&(1!==e.rangeCount||e.anchorNode!==a.node||e.anchorOffset!==a.offset||e.focusNode!==o.node||e.focusOffset!==o.offset)&&((t=t.createRange()).setStart(a.node,a.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(o.node,o.offset)):(t.setEnd(o.node,o.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=c&&"documentMode"in document&&11>=document.documentMode,vr=null,gr=null,yr=null,br=!1;function wr(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;br||null==vr||vr!==G(r)||("selectionStart"in(r=vr)&&hr(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},yr&&sr(yr,r)||(yr=r,0<(r=Vr(gr,"onSelect")).length&&(t=new cn("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=vr)))}function kr(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var xr={animationend:kr("Animation","AnimationEnd"),animationiteration:kr("Animation","AnimationIteration"),animationstart:kr("Animation","AnimationStart"),transitionend:kr("Transition","TransitionEnd")},_r={},Sr={};function Er(e){if(_r[e])return _r[e];if(!xr[e])return e;var t,n=xr[e];for(t in n)if(n.hasOwnProperty(t)&&t in Sr)return _r[e]=n[t];return e}c&&(Sr=document.createElement("div").style,"AnimationEvent"in window||(delete xr.animationend.animation,delete xr.animationiteration.animation,delete xr.animationstart.animation),"TransitionEvent"in window||delete xr.transitionend.transition);var Cr=Er("animationend"),jr=Er("animationiteration"),Nr=Er("animationstart"),Rr=Er("transitionend"),Ir=new Map,Ar="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 Tr(e,t){Ir.set(e,t),s(t,[e])}for(var Or=0;Or<Ar.length;Or++){var zr=Ar[Or];Tr(zr.toLowerCase(),"on"+(zr[0].toUpperCase()+zr.slice(1)))}Tr(Cr,"onAnimationEnd"),Tr(jr,"onAnimationIteration"),Tr(Nr,"onAnimationStart"),Tr("dblclick","onDoubleClick"),Tr("focusin","onFocus"),Tr("focusout","onBlur"),Tr(Rr,"onTransitionEnd"),u("onMouseEnter",["mouseout","mouseover"]),u("onMouseLeave",["mouseout","mouseover"]),u("onPointerEnter",["pointerout","pointerover"]),u("onPointerLeave",["pointerout","pointerover"]),s("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),s("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),s("onBeforeInput",["compositionend","keypress","textInput","paste"]),s("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),s("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),s("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Lr="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(" "),Pr=new Set("cancel close invalid load scroll toggle".split(" ").concat(Lr));function Mr(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,function(e,t,n,r,a,o,l,s,u){if(Ue.apply(this,arguments),Pe){if(!Pe)throw Error(i(198));var c=Me;Pe=!1,Me=null,De||(De=!0,Fe=c)}}(r,t,void 0,e),e.currentTarget=null}function Dr(e,t){t=0!==(4&t);for(var n=0;n<e.length;n++){var r=e[n],a=r.event;r=r.listeners;e:{var i=void 0;if(t)for(var o=r.length-1;0<=o;o--){var l=r[o],s=l.instance,u=l.currentTarget;if(l=l.listener,s!==i&&a.isPropagationStopped())break e;Mr(a,l,u),i=s}else for(o=0;o<r.length;o++){if(s=(l=r[o]).instance,u=l.currentTarget,l=l.listener,s!==i&&a.isPropagationStopped())break e;Mr(a,l,u),i=s}}}if(De)throw e=Fe,De=!1,Fe=null,e}function Fr(e,t){var n=t[ma];void 0===n&&(n=t[ma]=new Set);var r=e+"__bubble";n.has(r)||(Wr(t,e,2,!1),n.add(r))}function Br(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,o.forEach((function(t){"selectionchange"!==t&&(Pr.has(t)||Br(t,!1,e),Br(t,!0,e))}));var t=9===e.nodeType?e:e.ownerDocument;null===t||t[Ur]||(t[Ur]=!0,Br("selectionchange",!1,t))}}function Wr(e,t,n,r){switch(Qt(t)){case 1:var a=Zt;break;case 4:a=Vt;break;default:a=$t}n=a.bind(null,t,n,e),a=void 0,!Oe||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(a=!0),r?void 0!==a?e.addEventListener(t,n,{capture:!0,passive:a}):e.addEventListener(t,n,!0):void 0!==a?e.addEventListener(t,n,{passive:a}):e.addEventListener(t,n,!1)}function qr(e,t,n,r,a){var i=r;if(0===(1&t)&&0===(2&t)&&null!==r)e:for(;;){if(null===r)return;var o=r.tag;if(3===o||4===o){var l=r.stateNode.containerInfo;if(l===a||8===l.nodeType&&l.parentNode===a)break;if(4===o)for(o=r.return;null!==o;){var s=o.tag;if((3===s||4===s)&&((s=o.stateNode.containerInfo)===a||8===s.nodeType&&s.parentNode===a))return;o=o.return}for(;null!==l;){if(null===(o=ya(l)))return;if(5===(s=o.tag)||6===s){r=i=o;continue e}l=l.parentNode}}r=r.return}Ae((function(){var r=i,a=ke(n),o=[];e:{var l=Ir.get(e);if(void 0!==l){var s=cn,u=e;switch(e){case"keypress":if(0===tn(n))break e;case"keydown":case"keyup":s=jn;break;case"focusin":u="focus",s=vn;break;case"focusout":u="blur",s=vn;break;case"beforeblur":case"afterblur":s=vn;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":s=pn;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":s=mn;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":s=Rn;break;case Cr:case jr:case Nr:s=gn;break;case Rr:s=In;break;case"scroll":s=dn;break;case"wheel":s=Tn;break;case"copy":case"cut":case"paste":s=bn;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":s=Nn}var c=0!==(4&t),f=!c&&"scroll"===e,d=c?null!==l?l+"Capture":null:l;c=[];for(var h,p=r;null!==p;){var m=(h=p).stateNode;if(5===h.tag&&null!==m&&(h=m,null!==d&&(null!=(m=Te(p,d))&&c.push(Zr(p,m,h)))),f)break;p=p.return}0<c.length&&(l=new s(l,u,null,n,a),o.push({event:l,listeners:c}))}}if(0===(7&t)){if(s="mouseout"===e||"pointerout"===e,(!(l="mouseover"===e||"pointerover"===e)||n===we||!(u=n.relatedTarget||n.fromElement)||!ya(u)&&!u[pa])&&(s||l)&&(l=a.window===a?a:(l=a.ownerDocument)?l.defaultView||l.parentWindow:window,s?(s=r,null!==(u=(u=n.relatedTarget||n.toElement)?ya(u):null)&&(u!==(f=He(u))||5!==u.tag&&6!==u.tag)&&(u=null)):(s=null,u=r),s!==u)){if(c=pn,m="onMouseLeave",d="onMouseEnter",p="mouse","pointerout"!==e&&"pointerover"!==e||(c=Nn,m="onPointerLeave",d="onPointerEnter",p="pointer"),f=null==s?l:wa(s),h=null==u?l:wa(u),(l=new c(m,p+"leave",s,n,a)).target=f,l.relatedTarget=h,m=null,ya(a)===r&&((c=new c(d,p+"enter",u,n,a)).target=h,c.relatedTarget=f,m=c),f=m,s&&u)e:{for(d=u,p=0,h=c=s;h;h=$r(h))p++;for(h=0,m=d;m;m=$r(m))h++;for(;0<p-h;)c=$r(c),p--;for(;0<h-p;)d=$r(d),h--;for(;p--;){if(c===d||null!==d&&c===d.alternate)break e;c=$r(c),d=$r(d)}c=null}else c=null;null!==s&&Gr(o,l,s,c,!1),null!==u&&null!==f&&Gr(o,f,u,c,!0)}if("select"===(s=(l=r?wa(r):window).nodeName&&l.nodeName.toLowerCase())||"input"===s&&"file"===l.type)var v=Qn;else if(qn(l))if(Kn)v=or;else{v=ar;var g=rr}else(s=l.nodeName)&&"input"===s.toLowerCase()&&("checkbox"===l.type||"radio"===l.type)&&(v=ir);switch(v&&(v=v(e,r))?Zn(o,v,n,a):(g&&g(e,l,r),"focusout"===e&&(g=l._wrapperState)&&g.controlled&&"number"===l.type&&ee(l,"number",l.value)),g=r?wa(r):window,e){case"focusin":(qn(g)||"true"===g.contentEditable)&&(vr=g,gr=r,yr=null);break;case"focusout":yr=gr=vr=null;break;case"mousedown":br=!0;break;case"contextmenu":case"mouseup":case"dragend":br=!1,wr(o,n,a);break;case"selectionchange":if(mr)break;case"keydown":case"keyup":wr(o,n,a)}var y;if(zn)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?Bn(e,n)&&(b="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(b="onCompositionStart");b&&(Mn&&"ko"!==n.locale&&(Hn||"onCompositionStart"!==b?"onCompositionEnd"===b&&Hn&&(y=en()):(Xt="value"in(Kt=a)?Kt.value:Kt.textContent,Hn=!0)),0<(g=Vr(r,b)).length&&(b=new wn(b,e,null,n,a),o.push({event:b,listeners:g}),y?b.data=y:null!==(y=Un(n))&&(b.data=y))),(y=Pn?function(e,t){switch(e){case"compositionend":return Un(t);case"keypress":return 32!==t.which?null:(Fn=!0,Dn);case"textInput":return(e=t.data)===Dn&&Fn?null:e;default:return null}}(e,n):function(e,t){if(Hn)return"compositionend"===e||!zn&&Bn(e,t)?(e=en(),Jt=Xt=Kt=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 Mn&&"ko"!==t.locale?null:t.data}}(e,n))&&(0<(r=Vr(r,"onBeforeInput")).length&&(a=new wn("onBeforeInput","beforeinput",null,n,a),o.push({event:a,listeners:r}),a.data=y))}Dr(o,t)}))}function Zr(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Vr(e,t){for(var n=t+"Capture",r=[];null!==e;){var a=e,i=a.stateNode;5===a.tag&&null!==i&&(a=i,null!=(i=Te(e,n))&&r.unshift(Zr(e,i,a)),null!=(i=Te(e,t))&&r.push(Zr(e,i,a))),e=e.return}return r}function $r(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function Gr(e,t,n,r,a){for(var i=t._reactName,o=[];null!==n&&n!==r;){var l=n,s=l.alternate,u=l.stateNode;if(null!==s&&s===r)break;5===l.tag&&null!==u&&(l=u,a?null!=(s=Te(n,i))&&o.unshift(Zr(n,s,l)):a||null!=(s=Te(n,i))&&o.push(Zr(n,s,l))),n=n.return}0!==o.length&&e.push({event:t,listeners:o})}var Yr=/\r\n?/g,Qr=/\u0000|\uFFFD/g;function Kr(e){return("string"===typeof e?e:""+e).replace(Yr,"\n").replace(Qr,"")}function Xr(e,t,n){if(t=Kr(t),Kr(e)!==t&&n)throw Error(i(425))}function Jr(){}var ea=null,ta=null;function na(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 ra="function"===typeof setTimeout?setTimeout:void 0,aa="function"===typeof clearTimeout?clearTimeout:void 0,ia="function"===typeof Promise?Promise:void 0,oa="function"===typeof queueMicrotask?queueMicrotask:"undefined"!==typeof ia?function(e){return ia.resolve(null).then(e).catch(la)}:ra;function la(e){setTimeout((function(){throw e}))}function sa(e,t){var n=t,r=0;do{var a=n.nextSibling;if(e.removeChild(n),a&&8===a.nodeType)if("/$"===(n=a.data)){if(0===r)return e.removeChild(a),void Ht(t);r--}else"$"!==n&&"$?"!==n&&"$!"!==n||r++;n=a}while(n);Ht(t)}function ua(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 ca(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 fa=Math.random().toString(36).slice(2),da="__reactFiber$"+fa,ha="__reactProps$"+fa,pa="__reactContainer$"+fa,ma="__reactEvents$"+fa,va="__reactListeners$"+fa,ga="__reactHandles$"+fa;function ya(e){var t=e[da];if(t)return t;for(var n=e.parentNode;n;){if(t=n[pa]||n[da]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=ca(e);null!==e;){if(n=e[da])return n;e=ca(e)}return t}n=(e=n).parentNode}return null}function ba(e){return!(e=e[da]||e[pa])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function wa(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(i(33))}function ka(e){return e[ha]||null}var xa=[],_a=-1;function Sa(e){return{current:e}}function Ea(e){0>_a||(e.current=xa[_a],xa[_a]=null,_a--)}function Ca(e,t){_a++,xa[_a]=e.current,e.current=t}var ja={},Na=Sa(ja),Ra=Sa(!1),Ia=ja;function Aa(e,t){var n=e.type.contextTypes;if(!n)return ja;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var a,i={};for(a in n)i[a]=t[a];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function Ta(e){return null!==(e=e.childContextTypes)&&void 0!==e}function Oa(){Ea(Ra),Ea(Na)}function za(e,t,n){if(Na.current!==ja)throw Error(i(168));Ca(Na,t),Ca(Ra,n)}function La(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,"function"!==typeof r.getChildContext)return n;for(var a in r=r.getChildContext())if(!(a in t))throw Error(i(108,W(e)||"Unknown",a));return M({},n,r)}function Pa(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||ja,Ia=Na.current,Ca(Na,e),Ca(Ra,Ra.current),!0}function Ma(e,t,n){var r=e.stateNode;if(!r)throw Error(i(169));n?(e=La(e,t,Ia),r.__reactInternalMemoizedMergedChildContext=e,Ea(Ra),Ea(Na),Ca(Na,e)):Ea(Ra),Ca(Ra,n)}var Da=null,Fa=!1,Ba=!1;function Ua(e){null===Da?Da=[e]:Da.push(e)}function Ha(){if(!Ba&&null!==Da){Ba=!0;var e=0,t=bt;try{var n=Da;for(bt=1;e<n.length;e++){var r=n[e];do{r=r(!0)}while(null!==r)}Da=null,Fa=!1}catch(a){throw null!==Da&&(Da=Da.slice(e+1)),$e(Je,Ha),a}finally{bt=t,Ba=!1}}return null}var Wa=[],qa=0,Za=null,Va=0,$a=[],Ga=0,Ya=null,Qa=1,Ka="";function Xa(e,t){Wa[qa++]=Va,Wa[qa++]=Za,Za=e,Va=t}function Ja(e,t,n){$a[Ga++]=Qa,$a[Ga++]=Ka,$a[Ga++]=Ya,Ya=e;var r=Qa;e=Ka;var a=32-ot(r)-1;r&=~(1<<a),n+=1;var i=32-ot(t)+a;if(30<i){var o=a-a%5;i=(r&(1<<o)-1).toString(32),r>>=o,a-=o,Qa=1<<32-ot(t)+a|n<<a|r,Ka=i+e}else Qa=1<<i|n<<a|r,Ka=e}function ei(e){null!==e.return&&(Xa(e,1),Ja(e,1,0))}function ti(e){for(;e===Za;)Za=Wa[--qa],Wa[qa]=null,Va=Wa[--qa],Wa[qa]=null;for(;e===Ya;)Ya=$a[--Ga],$a[Ga]=null,Ka=$a[--Ga],$a[Ga]=null,Qa=$a[--Ga],$a[Ga]=null}var ni=null,ri=null,ai=!1,ii=null;function oi(e,t){var n=Au(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,ni=e,ri=ua(t.firstChild),!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,ni=e,ri=null,!0);case 13:return null!==(t=8!==t.nodeType?null:t)&&(n=null!==Ya?{id:Qa,overflow:Ka}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},(n=Au(18,null,null,0)).stateNode=t,n.return=e,e.child=n,ni=e,ri=null,!0);default:return!1}}function si(e){return 0!==(1&e.mode)&&0===(128&e.flags)}function ui(e){if(ai){var t=ri;if(t){var n=t;if(!li(e,t)){if(si(e))throw Error(i(418));t=ua(n.nextSibling);var r=ni;t&&li(e,t)?oi(r,n):(e.flags=-4097&e.flags|2,ai=!1,ni=e)}}else{if(si(e))throw Error(i(418));e.flags=-4097&e.flags|2,ai=!1,ni=e}}}function ci(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;ni=e}function fi(e){if(e!==ni)return!1;if(!ai)return ci(e),ai=!0,!1;var t;if((t=3!==e.tag)&&!(t=5!==e.tag)&&(t="head"!==(t=e.type)&&"body"!==t&&!na(e.type,e.memoizedProps)),t&&(t=ri)){if(si(e))throw di(),Error(i(418));for(;t;)oi(e,t),t=ua(t.nextSibling)}if(ci(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){ri=ua(e.nextSibling);break e}t--}else"$"!==n&&"$!"!==n&&"$?"!==n||t++}e=e.nextSibling}ri=null}}else ri=ni?ua(e.stateNode.nextSibling):null;return!0}function di(){for(var e=ri;e;)e=ua(e.nextSibling)}function hi(){ri=ni=null,ai=!1}function pi(e){null===ii?ii=[e]:ii.push(e)}var mi=w.ReactCurrentBatchConfig;function vi(e,t){if(e&&e.defaultProps){for(var n in t=M({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}var gi=Sa(null),yi=null,bi=null,wi=null;function ki(){wi=bi=yi=null}function xi(e){var t=gi.current;Ea(gi),e._currentValue=t}function _i(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 Si(e,t){yi=e,wi=bi=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(0!==(e.lanes&t)&&(wl=!0),e.firstContext=null)}function Ei(e){var t=e._currentValue;if(wi!==e)if(e={context:e,memoizedValue:t,next:null},null===bi){if(null===yi)throw Error(i(308));bi=e,yi.dependencies={lanes:0,firstContext:e}}else bi=bi.next=e;return t}var Ci=null;function ji(e){null===Ci?Ci=[e]:Ci.push(e)}function Ni(e,t,n,r){var a=t.interleaved;return null===a?(n.next=n,ji(t)):(n.next=a.next,a.next=n),t.interleaved=n,Ri(e,r)}function Ri(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 Ii=!1;function Ai(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Ti(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 Oi(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function zi(e,t,n){var r=e.updateQueue;if(null===r)return null;if(r=r.shared,0!==(2&Ns)){var a=r.pending;return null===a?t.next=t:(t.next=a.next,a.next=t),r.pending=t,Ri(e,n)}return null===(a=r.interleaved)?(t.next=t,ji(r)):(t.next=a.next,a.next=t),r.interleaved=t,Ri(e,n)}function Li(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,yt(e,n)}}function Pi(e,t){var n=e.updateQueue,r=e.alternate;if(null!==r&&n===(r=r.updateQueue)){var a=null,i=null;if(null!==(n=n.firstBaseUpdate)){do{var o={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};null===i?a=i=o:i=i.next=o,n=n.next}while(null!==n);null===i?a=i=t:i=i.next=t}else a=i=t;return n={baseState:r.baseState,firstBaseUpdate:a,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 Mi(e,t,n,r){var a=e.updateQueue;Ii=!1;var i=a.firstBaseUpdate,o=a.lastBaseUpdate,l=a.shared.pending;if(null!==l){a.shared.pending=null;var s=l,u=s.next;s.next=null,null===o?i=u:o.next=u,o=s;var c=e.alternate;null!==c&&((l=(c=c.updateQueue).lastBaseUpdate)!==o&&(null===l?c.firstBaseUpdate=u:l.next=u,c.lastBaseUpdate=s))}if(null!==i){var f=a.baseState;for(o=0,c=u=s=null,l=i;;){var d=l.lane,h=l.eventTime;if((r&d)===d){null!==c&&(c=c.next={eventTime:h,lane:0,tag:l.tag,payload:l.payload,callback:l.callback,next:null});e:{var p=e,m=l;switch(d=t,h=n,m.tag){case 1:if("function"===typeof(p=m.payload)){f=p.call(h,f,d);break e}f=p;break e;case 3:p.flags=-65537&p.flags|128;case 0:if(null===(d="function"===typeof(p=m.payload)?p.call(h,f,d):p)||void 0===d)break e;f=M({},f,d);break e;case 2:Ii=!0}}null!==l.callback&&0!==l.lane&&(e.flags|=64,null===(d=a.effects)?a.effects=[l]:d.push(l))}else h={eventTime:h,lane:d,tag:l.tag,payload:l.payload,callback:l.callback,next:null},null===c?(u=c=h,s=f):c=c.next=h,o|=d;if(null===(l=l.next)){if(null===(l=a.shared.pending))break;l=(d=l).next,d.next=null,a.lastBaseUpdate=d,a.shared.pending=null}}if(null===c&&(s=f),a.baseState=s,a.firstBaseUpdate=u,a.lastBaseUpdate=c,null!==(t=a.shared.interleaved)){a=t;do{o|=a.lane,a=a.next}while(a!==t)}else null===i&&(a.shared.lanes=0);Ps|=o,e.lanes=o,e.memoizedState=f}}function Di(e,t,n){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var r=e[t],a=r.callback;if(null!==a){if(r.callback=null,r=n,"function"!==typeof a)throw Error(i(191,a));a.call(r)}}}var Fi=(new r.Component).refs;function Bi(e,t,n,r){n=null===(n=n(r,t=e.memoizedState))||void 0===n?t:M({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}var Ui={isMounted:function(e){return!!(e=e._reactInternals)&&He(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=eu(),a=tu(e),i=Oi(r,a);i.payload=t,void 0!==n&&null!==n&&(i.callback=n),null!==(t=zi(e,i,a))&&(nu(t,e,a,r),Li(t,e,a))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=eu(),a=tu(e),i=Oi(r,a);i.tag=1,i.payload=t,void 0!==n&&null!==n&&(i.callback=n),null!==(t=zi(e,i,a))&&(nu(t,e,a,r),Li(t,e,a))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=eu(),r=tu(e),a=Oi(n,r);a.tag=2,void 0!==t&&null!==t&&(a.callback=t),null!==(t=zi(e,a,r))&&(nu(t,e,r,n),Li(t,e,r))}};function Hi(e,t,n,r,a,i,o){return"function"===typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,i,o):!t.prototype||!t.prototype.isPureReactComponent||(!sr(n,r)||!sr(a,i))}function Wi(e,t,n){var r=!1,a=ja,i=t.contextType;return"object"===typeof i&&null!==i?i=Ei(i):(a=Ta(t)?Ia:Na.current,i=(r=null!==(r=t.contextTypes)&&void 0!==r)?Aa(e,a):ja),t=new t(n,i),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=Ui,e.stateNode=t,t._reactInternals=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=a,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&&Ui.enqueueReplaceState(t,t.state,null)}function Zi(e,t,n,r){var a=e.stateNode;a.props=n,a.state=e.memoizedState,a.refs=Fi,Ai(e);var i=t.contextType;"object"===typeof i&&null!==i?a.context=Ei(i):(i=Ta(t)?Ia:Na.current,a.context=Aa(e,i)),a.state=e.memoizedState,"function"===typeof(i=t.getDerivedStateFromProps)&&(Bi(e,t,i,n),a.state=e.memoizedState),"function"===typeof t.getDerivedStateFromProps||"function"===typeof a.getSnapshotBeforeUpdate||"function"!==typeof a.UNSAFE_componentWillMount&&"function"!==typeof a.componentWillMount||(t=a.state,"function"===typeof a.componentWillMount&&a.componentWillMount(),"function"===typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount(),t!==a.state&&Ui.enqueueReplaceState(a,a.state,null),Mi(e,n,a,r),a.state=e.memoizedState),"function"===typeof a.componentDidMount&&(e.flags|=4194308)}function Vi(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 a=r,o=""+e;return null!==t&&null!==t.ref&&"function"===typeof t.ref&&t.ref._stringRef===o?t.ref:(t=function(e){var t=a.refs;t===Fi&&(t=a.refs={}),null===e?delete t[o]:t[o]=e},t._stringRef=o,t)}if("string"!==typeof e)throw Error(i(284));if(!n._owner)throw Error(i(290,e))}return e}function $i(e,t){throw e=Object.prototype.toString.call(t),Error(i(31,"[object Object]"===e?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Gi(e){return(0,e._init)(e._payload)}function Yi(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 a(e,t){return(e=Ou(e,t)).index=0,e.sibling=null,e}function o(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 l(t){return e&&null===t.alternate&&(t.flags|=2),t}function s(e,t,n,r){return null===t||6!==t.tag?((t=Mu(n,e.mode,r)).return=e,t):((t=a(t,n)).return=e,t)}function u(e,t,n,r){var i=n.type;return i===_?f(e,t,n.props.children,r,n.key):null!==t&&(t.elementType===i||"object"===typeof i&&null!==i&&i.$$typeof===T&&Gi(i)===t.type)?((r=a(t,n.props)).ref=Vi(e,t,n),r.return=e,r):((r=zu(n.type,n.key,n.props,null,e.mode,r)).ref=Vi(e,t,n),r.return=e,r)}function c(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=Du(n,e.mode,r)).return=e,t):((t=a(t,n.children||[])).return=e,t)}function f(e,t,n,r,i){return null===t||7!==t.tag?((t=Lu(n,e.mode,r,i)).return=e,t):((t=a(t,n)).return=e,t)}function d(e,t,n){if("string"===typeof t&&""!==t||"number"===typeof t)return(t=Mu(""+t,e.mode,n)).return=e,t;if("object"===typeof t&&null!==t){switch(t.$$typeof){case k:return(n=zu(t.type,t.key,t.props,null,e.mode,n)).ref=Vi(e,null,t),n.return=e,n;case x:return(t=Du(t,e.mode,n)).return=e,t;case T:return d(e,(0,t._init)(t._payload),n)}if(te(t)||L(t))return(t=Lu(t,e.mode,n,null)).return=e,t;$i(e,t)}return null}function h(e,t,n,r){var a=null!==t?t.key:null;if("string"===typeof n&&""!==n||"number"===typeof n)return null!==a?null:s(e,t,""+n,r);if("object"===typeof n&&null!==n){switch(n.$$typeof){case k:return n.key===a?u(e,t,n,r):null;case x:return n.key===a?c(e,t,n,r):null;case T:return h(e,t,(a=n._init)(n._payload),r)}if(te(n)||L(n))return null!==a?null:f(e,t,n,r,null);$i(e,n)}return null}function p(e,t,n,r,a){if("string"===typeof r&&""!==r||"number"===typeof r)return s(t,e=e.get(n)||null,""+r,a);if("object"===typeof r&&null!==r){switch(r.$$typeof){case k:return u(t,e=e.get(null===r.key?n:r.key)||null,r,a);case x:return c(t,e=e.get(null===r.key?n:r.key)||null,r,a);case T:return p(e,t,n,(0,r._init)(r._payload),a)}if(te(r)||L(r))return f(t,e=e.get(n)||null,r,a,null);$i(t,r)}return null}function m(a,i,l,s){for(var u=null,c=null,f=i,m=i=0,v=null;null!==f&&m<l.length;m++){f.index>m?(v=f,f=null):v=f.sibling;var g=h(a,f,l[m],s);if(null===g){null===f&&(f=v);break}e&&f&&null===g.alternate&&t(a,f),i=o(g,i,m),null===c?u=g:c.sibling=g,c=g,f=v}if(m===l.length)return n(a,f),ai&&Xa(a,m),u;if(null===f){for(;m<l.length;m++)null!==(f=d(a,l[m],s))&&(i=o(f,i,m),null===c?u=f:c.sibling=f,c=f);return ai&&Xa(a,m),u}for(f=r(a,f);m<l.length;m++)null!==(v=p(f,a,m,l[m],s))&&(e&&null!==v.alternate&&f.delete(null===v.key?m:v.key),i=o(v,i,m),null===c?u=v:c.sibling=v,c=v);return e&&f.forEach((function(e){return t(a,e)})),ai&&Xa(a,m),u}function v(a,l,s,u){var c=L(s);if("function"!==typeof c)throw Error(i(150));if(null==(s=c.call(s)))throw Error(i(151));for(var f=c=null,m=l,v=l=0,g=null,y=s.next();null!==m&&!y.done;v++,y=s.next()){m.index>v?(g=m,m=null):g=m.sibling;var b=h(a,m,y.value,u);if(null===b){null===m&&(m=g);break}e&&m&&null===b.alternate&&t(a,m),l=o(b,l,v),null===f?c=b:f.sibling=b,f=b,m=g}if(y.done)return n(a,m),ai&&Xa(a,v),c;if(null===m){for(;!y.done;v++,y=s.next())null!==(y=d(a,y.value,u))&&(l=o(y,l,v),null===f?c=y:f.sibling=y,f=y);return ai&&Xa(a,v),c}for(m=r(a,m);!y.done;v++,y=s.next())null!==(y=p(m,a,v,y.value,u))&&(e&&null!==y.alternate&&m.delete(null===y.key?v:y.key),l=o(y,l,v),null===f?c=y:f.sibling=y,f=y);return e&&m.forEach((function(e){return t(a,e)})),ai&&Xa(a,v),c}return function e(r,i,o,s){if("object"===typeof o&&null!==o&&o.type===_&&null===o.key&&(o=o.props.children),"object"===typeof o&&null!==o){switch(o.$$typeof){case k:e:{for(var u=o.key,c=i;null!==c;){if(c.key===u){if((u=o.type)===_){if(7===c.tag){n(r,c.sibling),(i=a(c,o.props.children)).return=r,r=i;break e}}else if(c.elementType===u||"object"===typeof u&&null!==u&&u.$$typeof===T&&Gi(u)===c.type){n(r,c.sibling),(i=a(c,o.props)).ref=Vi(r,c,o),i.return=r,r=i;break e}n(r,c);break}t(r,c),c=c.sibling}o.type===_?((i=Lu(o.props.children,r.mode,s,o.key)).return=r,r=i):((s=zu(o.type,o.key,o.props,null,r.mode,s)).ref=Vi(r,i,o),s.return=r,r=s)}return l(r);case x:e:{for(c=o.key;null!==i;){if(i.key===c){if(4===i.tag&&i.stateNode.containerInfo===o.containerInfo&&i.stateNode.implementation===o.implementation){n(r,i.sibling),(i=a(i,o.children||[])).return=r,r=i;break e}n(r,i);break}t(r,i),i=i.sibling}(i=Du(o,r.mode,s)).return=r,r=i}return l(r);case T:return e(r,i,(c=o._init)(o._payload),s)}if(te(o))return m(r,i,o,s);if(L(o))return v(r,i,o,s);$i(r,o)}return"string"===typeof o&&""!==o||"number"===typeof o?(o=""+o,null!==i&&6===i.tag?(n(r,i.sibling),(i=a(i,o)).return=r,r=i):(n(r,i),(i=Mu(o,r.mode,s)).return=r,r=i),l(r)):n(r,i)}}var Qi=Yi(!0),Ki=Yi(!1),Xi={},Ji=Sa(Xi),eo=Sa(Xi),to=Sa(Xi);function no(e){if(e===Xi)throw Error(i(174));return e}function ro(e,t){switch(Ca(to,t),Ca(eo,e),Ca(Ji,Xi),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:se(null,"");break;default:t=se(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}Ea(Ji),Ca(Ji,t)}function ao(){Ea(Ji),Ea(eo),Ea(to)}function io(e){no(to.current);var t=no(Ji.current),n=se(t,e.type);t!==n&&(Ca(eo,e),Ca(Ji,n))}function oo(e){eo.current===e&&(Ea(Ji),Ea(eo))}var lo=Sa(0);function so(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 uo=[];function co(){for(var e=0;e<uo.length;e++)uo[e]._workInProgressVersionPrimary=null;uo.length=0}var fo=w.ReactCurrentDispatcher,ho=w.ReactCurrentBatchConfig,po=0,mo=null,vo=null,go=null,yo=!1,bo=!1,wo=0,ko=0;function xo(){throw Error(i(321))}function _o(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!lr(e[n],t[n]))return!1;return!0}function So(e,t,n,r,a,o){if(po=o,mo=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,fo.current=null===e||null===e.memoizedState?ll:sl,e=n(r,a),bo){o=0;do{if(bo=!1,wo=0,25<=o)throw Error(i(301));o+=1,go=vo=null,t.updateQueue=null,fo.current=ul,e=n(r,a)}while(bo)}if(fo.current=ol,t=null!==vo&&null!==vo.next,po=0,go=vo=mo=null,yo=!1,t)throw Error(i(300));return e}function Eo(){var e=0!==wo;return wo=0,e}function Co(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===go?mo.memoizedState=go=e:go=go.next=e,go}function jo(){if(null===vo){var e=mo.alternate;e=null!==e?e.memoizedState:null}else e=vo.next;var t=null===go?mo.memoizedState:go.next;if(null!==t)go=t,vo=e;else{if(null===e)throw Error(i(310));e={memoizedState:(vo=e).memoizedState,baseState:vo.baseState,baseQueue:vo.baseQueue,queue:vo.queue,next:null},null===go?mo.memoizedState=go=e:go=go.next=e}return go}function No(e,t){return"function"===typeof t?t(e):t}function Ro(e){var t=jo(),n=t.queue;if(null===n)throw Error(i(311));n.lastRenderedReducer=e;var r=vo,a=r.baseQueue,o=n.pending;if(null!==o){if(null!==a){var l=a.next;a.next=o.next,o.next=l}r.baseQueue=a=o,n.pending=null}if(null!==a){o=a.next,r=r.baseState;var s=l=null,u=null,c=o;do{var f=c.lane;if((po&f)===f)null!==u&&(u=u.next={lane:0,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null}),r=c.hasEagerState?c.eagerState:e(r,c.action);else{var d={lane:f,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null};null===u?(s=u=d,l=r):u=u.next=d,mo.lanes|=f,Ps|=f}c=c.next}while(null!==c&&c!==o);null===u?l=r:u.next=s,lr(r,t.memoizedState)||(wl=!0),t.memoizedState=r,t.baseState=l,t.baseQueue=u,n.lastRenderedState=r}if(null!==(e=n.interleaved)){a=e;do{o=a.lane,mo.lanes|=o,Ps|=o,a=a.next}while(a!==e)}else null===a&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function Io(e){var t=jo(),n=t.queue;if(null===n)throw Error(i(311));n.lastRenderedReducer=e;var r=n.dispatch,a=n.pending,o=t.memoizedState;if(null!==a){n.pending=null;var l=a=a.next;do{o=e(o,l.action),l=l.next}while(l!==a);lr(o,t.memoizedState)||(wl=!0),t.memoizedState=o,null===t.baseQueue&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function Ao(){}function To(e,t){var n=mo,r=jo(),a=t(),o=!lr(r.memoizedState,a);if(o&&(r.memoizedState=a,wl=!0),r=r.queue,qo(Lo.bind(null,n,r,e),[e]),r.getSnapshot!==t||o||null!==go&&1&go.memoizedState.tag){if(n.flags|=2048,Fo(9,zo.bind(null,n,r,a,t),void 0,null),null===Rs)throw Error(i(349));0!==(30&po)||Oo(n,t,a)}return a}function Oo(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},null===(t=mo.updateQueue)?(t={lastEffect:null,stores:null},mo.updateQueue=t,t.stores=[e]):null===(n=t.stores)?t.stores=[e]:n.push(e)}function zo(e,t,n,r){t.value=n,t.getSnapshot=r,Po(t)&&Mo(e)}function Lo(e,t,n){return n((function(){Po(t)&&Mo(e)}))}function Po(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!lr(e,n)}catch(r){return!0}}function Mo(e){var t=Ri(e,1);null!==t&&nu(t,e,1,-1)}function Do(e){var t=Co();return"function"===typeof e&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:No,lastRenderedState:e},t.queue=e,e=e.dispatch=nl.bind(null,mo,e),[t.memoizedState,e]}function Fo(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=mo.updateQueue)?(t={lastEffect:null,stores:null},mo.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 Bo(){return jo().memoizedState}function Uo(e,t,n,r){var a=Co();mo.flags|=e,a.memoizedState=Fo(1|t,n,void 0,void 0===r?null:r)}function Ho(e,t,n,r){var a=jo();r=void 0===r?null:r;var i=void 0;if(null!==vo){var o=vo.memoizedState;if(i=o.destroy,null!==r&&_o(r,o.deps))return void(a.memoizedState=Fo(t,n,i,r))}mo.flags|=e,a.memoizedState=Fo(1|t,n,i,r)}function Wo(e,t){return Uo(8390656,8,e,t)}function qo(e,t){return Ho(2048,8,e,t)}function Zo(e,t){return Ho(4,2,e,t)}function Vo(e,t){return Ho(4,4,e,t)}function $o(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 Go(e,t,n){return n=null!==n&&void 0!==n?n.concat([e]):null,Ho(4,4,$o.bind(null,t,e),n)}function Yo(){}function Qo(e,t){var n=jo();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&_o(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Ko(e,t){var n=jo();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&_o(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Xo(e,t,n){return 0===(21&po)?(e.baseState&&(e.baseState=!1,wl=!0),e.memoizedState=n):(lr(n,t)||(n=mt(),mo.lanes|=n,Ps|=n,e.baseState=!0),t)}function Jo(e,t){var n=bt;bt=0!==n&&4>n?n:4,e(!0);var r=ho.transition;ho.transition={};try{e(!1),t()}finally{bt=n,ho.transition=r}}function el(){return jo().memoizedState}function tl(e,t,n){var r=tu(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},rl(e))al(t,n);else if(null!==(n=Ni(e,t,n,r))){nu(n,e,r,eu()),il(n,t,r)}}function nl(e,t,n){var r=tu(e),a={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(rl(e))al(t,a);else{var i=e.alternate;if(0===e.lanes&&(null===i||0===i.lanes)&&null!==(i=t.lastRenderedReducer))try{var o=t.lastRenderedState,l=i(o,n);if(a.hasEagerState=!0,a.eagerState=l,lr(l,o)){var s=t.interleaved;return null===s?(a.next=a,ji(t)):(a.next=s.next,s.next=a),void(t.interleaved=a)}}catch(u){}null!==(n=Ni(e,t,a,r))&&(nu(n,e,r,a=eu()),il(n,t,r))}}function rl(e){var t=e.alternate;return e===mo||null!==t&&t===mo}function al(e,t){bo=yo=!0;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function il(e,t,n){if(0!==(4194240&n)){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,yt(e,n)}}var ol={readContext:Ei,useCallback:xo,useContext:xo,useEffect:xo,useImperativeHandle:xo,useInsertionEffect:xo,useLayoutEffect:xo,useMemo:xo,useReducer:xo,useRef:xo,useState:xo,useDebugValue:xo,useDeferredValue:xo,useTransition:xo,useMutableSource:xo,useSyncExternalStore:xo,useId:xo,unstable_isNewReconciler:!1},ll={readContext:Ei,useCallback:function(e,t){return Co().memoizedState=[e,void 0===t?null:t],e},useContext:Ei,useEffect:Wo,useImperativeHandle:function(e,t,n){return n=null!==n&&void 0!==n?n.concat([e]):null,Uo(4194308,4,$o.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Uo(4194308,4,e,t)},useInsertionEffect:function(e,t){return Uo(4,2,e,t)},useMemo:function(e,t){var n=Co();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Co();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=tl.bind(null,mo,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},Co().memoizedState=e},useState:Do,useDebugValue:Yo,useDeferredValue:function(e){return Co().memoizedState=e},useTransition:function(){var e=Do(!1),t=e[0];return e=Jo.bind(null,e[1]),Co().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=mo,a=Co();if(ai){if(void 0===n)throw Error(i(407));n=n()}else{if(n=t(),null===Rs)throw Error(i(349));0!==(30&po)||Oo(r,t,n)}a.memoizedState=n;var o={value:n,getSnapshot:t};return a.queue=o,Wo(Lo.bind(null,r,o,e),[e]),r.flags|=2048,Fo(9,zo.bind(null,r,o,n,t),void 0,null),n},useId:function(){var e=Co(),t=Rs.identifierPrefix;if(ai){var n=Ka;t=":"+t+"R"+(n=(Qa&~(1<<32-ot(Qa)-1)).toString(32)+n),0<(n=wo++)&&(t+="H"+n.toString(32)),t+=":"}else t=":"+t+"r"+(n=ko++).toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},sl={readContext:Ei,useCallback:Qo,useContext:Ei,useEffect:qo,useImperativeHandle:Go,useInsertionEffect:Zo,useLayoutEffect:Vo,useMemo:Ko,useReducer:Ro,useRef:Bo,useState:function(){return Ro(No)},useDebugValue:Yo,useDeferredValue:function(e){return Xo(jo(),vo.memoizedState,e)},useTransition:function(){return[Ro(No)[0],jo().memoizedState]},useMutableSource:Ao,useSyncExternalStore:To,useId:el,unstable_isNewReconciler:!1},ul={readContext:Ei,useCallback:Qo,useContext:Ei,useEffect:qo,useImperativeHandle:Go,useInsertionEffect:Zo,useLayoutEffect:Vo,useMemo:Ko,useReducer:Io,useRef:Bo,useState:function(){return Io(No)},useDebugValue:Yo,useDeferredValue:function(e){var t=jo();return null===vo?t.memoizedState=e:Xo(t,vo.memoizedState,e)},useTransition:function(){return[Io(No)[0],jo().memoizedState]},useMutableSource:Ao,useSyncExternalStore:To,useId:el,unstable_isNewReconciler:!1};function cl(e,t){try{var n="",r=t;do{n+=U(r),r=r.return}while(r);var a=n}catch(i){a="\nError generating stack: "+i.message+"\n"+i.stack}return{value:e,source:t,stack:a,digest:null}}function fl(e,t,n){return{value:e,source:null,stack:null!=n?n:null,digest:null!=t?t:null}}function dl(e,t){try{console.error(t.value)}catch(n){setTimeout((function(){throw n}))}}var hl="function"===typeof WeakMap?WeakMap:Map;function pl(e,t,n){(n=Oi(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){qs||(qs=!0,Zs=r),dl(0,t)},n}function ml(e,t,n){(n=Oi(-1,n)).tag=3;var r=e.type.getDerivedStateFromError;if("function"===typeof r){var a=t.value;n.payload=function(){return r(a)},n.callback=function(){dl(0,t)}}var i=e.stateNode;return null!==i&&"function"===typeof i.componentDidCatch&&(n.callback=function(){dl(0,t),"function"!==typeof r&&(null===Vs?Vs=new Set([this]):Vs.add(this));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}function vl(e,t,n){var r=e.pingCache;if(null===r){r=e.pingCache=new hl;var a=new Set;r.set(t,a)}else void 0===(a=r.get(t))&&(a=new Set,r.set(t,a));a.has(n)||(a.add(n),e=Eu.bind(null,e,t,n),t.then(e,e))}function gl(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 yl(e,t,n,r,a){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=Oi(-1,1)).tag=2,zi(n,t,1))),n.lanes|=1),e):(e.flags|=65536,e.lanes=a,e)}var bl=w.ReactCurrentOwner,wl=!1;function kl(e,t,n,r){t.child=null===e?Ki(t,null,n,r):Qi(t,e.child,n,r)}function xl(e,t,n,r,a){n=n.render;var i=t.ref;return Si(t,a),r=So(e,t,n,r,i,a),n=Eo(),null===e||wl?(ai&&n&&ei(t),t.flags|=1,kl(e,t,r,a),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~a,ql(e,t,a))}function _l(e,t,n,r,a){if(null===e){var i=n.type;return"function"!==typeof i||Tu(i)||void 0!==i.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=zu(n.type,null,r,t,t.mode,a)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=i,Sl(e,t,i,r,a))}if(i=e.child,0===(e.lanes&a)){var o=i.memoizedProps;if((n=null!==(n=n.compare)?n:sr)(o,r)&&e.ref===t.ref)return ql(e,t,a)}return t.flags|=1,(e=Ou(i,r)).ref=t.ref,e.return=t,t.child=e}function Sl(e,t,n,r,a){if(null!==e){var i=e.memoizedProps;if(sr(i,r)&&e.ref===t.ref){if(wl=!1,t.pendingProps=r=i,0===(e.lanes&a))return t.lanes=e.lanes,ql(e,t,a);0!==(131072&e.flags)&&(wl=!0)}}return jl(e,t,n,r,a)}function El(e,t,n){var r=t.pendingProps,a=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},Ca(Os,Ts),Ts|=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,Ca(Os,Ts),Ts|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=null!==i?i.baseLanes:n,Ca(Os,Ts),Ts|=r}else null!==i?(r=i.baseLanes|n,t.memoizedState=null):r=n,Ca(Os,Ts),Ts|=r;return kl(e,t,a,n),t.child}function Cl(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function jl(e,t,n,r,a){var i=Ta(n)?Ia:Na.current;return i=Aa(t,i),Si(t,a),n=So(e,t,n,r,i,a),r=Eo(),null===e||wl?(ai&&r&&ei(t),t.flags|=1,kl(e,t,n,a),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~a,ql(e,t,a))}function Nl(e,t,n,r,a){if(Ta(n)){var i=!0;Pa(t)}else i=!1;if(Si(t,a),null===t.stateNode)Wl(e,t),Wi(t,n,r),Zi(t,n,r,a),r=!0;else if(null===e){var o=t.stateNode,l=t.memoizedProps;o.props=l;var s=o.context,u=n.contextType;"object"===typeof u&&null!==u?u=Ei(u):u=Aa(t,u=Ta(n)?Ia:Na.current);var c=n.getDerivedStateFromProps,f="function"===typeof c||"function"===typeof o.getSnapshotBeforeUpdate;f||"function"!==typeof o.UNSAFE_componentWillReceiveProps&&"function"!==typeof o.componentWillReceiveProps||(l!==r||s!==u)&&qi(t,o,r,u),Ii=!1;var d=t.memoizedState;o.state=d,Mi(t,r,o,a),s=t.memoizedState,l!==r||d!==s||Ra.current||Ii?("function"===typeof c&&(Bi(t,n,c,r),s=t.memoizedState),(l=Ii||Hi(t,n,l,r,d,s,u))?(f||"function"!==typeof o.UNSAFE_componentWillMount&&"function"!==typeof o.componentWillMount||("function"===typeof o.componentWillMount&&o.componentWillMount(),"function"===typeof o.UNSAFE_componentWillMount&&o.UNSAFE_componentWillMount()),"function"===typeof o.componentDidMount&&(t.flags|=4194308)):("function"===typeof o.componentDidMount&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=s),o.props=r,o.state=s,o.context=u,r=l):("function"===typeof o.componentDidMount&&(t.flags|=4194308),r=!1)}else{o=t.stateNode,Ti(e,t),l=t.memoizedProps,u=t.type===t.elementType?l:vi(t.type,l),o.props=u,f=t.pendingProps,d=o.context,"object"===typeof(s=n.contextType)&&null!==s?s=Ei(s):s=Aa(t,s=Ta(n)?Ia:Na.current);var h=n.getDerivedStateFromProps;(c="function"===typeof h||"function"===typeof o.getSnapshotBeforeUpdate)||"function"!==typeof o.UNSAFE_componentWillReceiveProps&&"function"!==typeof o.componentWillReceiveProps||(l!==f||d!==s)&&qi(t,o,r,s),Ii=!1,d=t.memoizedState,o.state=d,Mi(t,r,o,a);var p=t.memoizedState;l!==f||d!==p||Ra.current||Ii?("function"===typeof h&&(Bi(t,n,h,r),p=t.memoizedState),(u=Ii||Hi(t,n,u,r,d,p,s)||!1)?(c||"function"!==typeof o.UNSAFE_componentWillUpdate&&"function"!==typeof o.componentWillUpdate||("function"===typeof o.componentWillUpdate&&o.componentWillUpdate(r,p,s),"function"===typeof o.UNSAFE_componentWillUpdate&&o.UNSAFE_componentWillUpdate(r,p,s)),"function"===typeof o.componentDidUpdate&&(t.flags|=4),"function"===typeof o.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!==typeof o.componentDidUpdate||l===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),"function"!==typeof o.getSnapshotBeforeUpdate||l===e.memoizedProps&&d===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=p),o.props=r,o.state=p,o.context=s,r=u):("function"!==typeof o.componentDidUpdate||l===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),"function"!==typeof o.getSnapshotBeforeUpdate||l===e.memoizedProps&&d===e.memoizedState||(t.flags|=1024),r=!1)}return Rl(e,t,n,r,i,a)}function Rl(e,t,n,r,a,i){Cl(e,t);var o=0!==(128&t.flags);if(!r&&!o)return a&&Ma(t,n,!1),ql(e,t,i);r=t.stateNode,bl.current=t;var l=o&&"function"!==typeof n.getDerivedStateFromError?null:r.render();return t.flags|=1,null!==e&&o?(t.child=Qi(t,e.child,null,i),t.child=Qi(t,null,l,i)):kl(e,t,l,i),t.memoizedState=r.state,a&&Ma(t,n,!0),t.child}function Il(e){var t=e.stateNode;t.pendingContext?za(0,t.pendingContext,t.pendingContext!==t.context):t.context&&za(0,t.context,!1),ro(e,t.containerInfo)}function Al(e,t,n,r,a){return hi(),pi(a),t.flags|=256,kl(e,t,n,r),t.child}var Tl,Ol,zl,Ll={dehydrated:null,treeContext:null,retryLane:0};function Pl(e){return{baseLanes:e,cachePool:null,transitions:null}}function Ml(e,t,n){var r,a=t.pendingProps,o=lo.current,l=!1,s=0!==(128&t.flags);if((r=s)||(r=(null===e||null!==e.memoizedState)&&0!==(2&o)),r?(l=!0,t.flags&=-129):null!==e&&null===e.memoizedState||(o|=1),Ca(lo,1&o),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):(s=a.children,e=a.fallback,l?(a=t.mode,l=t.child,s={mode:"hidden",children:s},0===(1&a)&&null!==l?(l.childLanes=0,l.pendingProps=s):l=Pu(s,a,0,null),e=Lu(e,a,n,null),l.return=t,e.return=t,l.sibling=e,t.child=l,t.child.memoizedState=Pl(n),t.memoizedState=Ll,e):Dl(t,s));if(null!==(o=e.memoizedState)&&null!==(r=o.dehydrated))return function(e,t,n,r,a,o,l){if(n)return 256&t.flags?(t.flags&=-257,Fl(e,t,l,r=fl(Error(i(422))))):null!==t.memoizedState?(t.child=e.child,t.flags|=128,null):(o=r.fallback,a=t.mode,r=Pu({mode:"visible",children:r.children},a,0,null),(o=Lu(o,a,l,null)).flags|=2,r.return=t,o.return=t,r.sibling=o,t.child=r,0!==(1&t.mode)&&Qi(t,e.child,null,l),t.child.memoizedState=Pl(l),t.memoizedState=Ll,o);if(0===(1&t.mode))return Fl(e,t,l,null);if("$!"===a.data){if(r=a.nextSibling&&a.nextSibling.dataset)var s=r.dgst;return r=s,Fl(e,t,l,r=fl(o=Error(i(419)),r,void 0))}if(s=0!==(l&e.childLanes),wl||s){if(null!==(r=Rs)){switch(l&-l){case 4:a=2;break;case 16:a=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:a=32;break;case 536870912:a=268435456;break;default:a=0}0!==(a=0!==(a&(r.suspendedLanes|l))?0:a)&&a!==o.retryLane&&(o.retryLane=a,Ri(e,a),nu(r,e,a,-1))}return mu(),Fl(e,t,l,r=fl(Error(i(421))))}return"$?"===a.data?(t.flags|=128,t.child=e.child,t=ju.bind(null,e),a._reactRetry=t,null):(e=o.treeContext,ri=ua(a.nextSibling),ni=t,ai=!0,ii=null,null!==e&&($a[Ga++]=Qa,$a[Ga++]=Ka,$a[Ga++]=Ya,Qa=e.id,Ka=e.overflow,Ya=t),(t=Dl(t,r.children)).flags|=4096,t)}(e,t,s,a,r,o,n);if(l){l=a.fallback,s=t.mode,r=(o=e.child).sibling;var u={mode:"hidden",children:a.children};return 0===(1&s)&&t.child!==o?((a=t.child).childLanes=0,a.pendingProps=u,t.deletions=null):(a=Ou(o,u)).subtreeFlags=14680064&o.subtreeFlags,null!==r?l=Ou(r,l):(l=Lu(l,s,n,null)).flags|=2,l.return=t,a.return=t,a.sibling=l,t.child=a,a=l,l=t.child,s=null===(s=e.child.memoizedState)?Pl(n):{baseLanes:s.baseLanes|n,cachePool:null,transitions:s.transitions},l.memoizedState=s,l.childLanes=e.childLanes&~n,t.memoizedState=Ll,a}return e=(l=e.child).sibling,a=Ou(l,{mode:"visible",children:a.children}),0===(1&t.mode)&&(a.lanes=n),a.return=t,a.sibling=null,null!==e&&(null===(n=t.deletions)?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=a,t.memoizedState=null,a}function Dl(e,t){return(t=Pu({mode:"visible",children:t},e.mode,0,null)).return=e,e.child=t}function Fl(e,t,n,r){return null!==r&&pi(r),Qi(t,e.child,null,n),(e=Dl(t,t.pendingProps.children)).flags|=2,t.memoizedState=null,e}function Bl(e,t,n){e.lanes|=t;var r=e.alternate;null!==r&&(r.lanes|=t),_i(e.return,t,n)}function Ul(e,t,n,r,a){var i=e.memoizedState;null===i?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:a}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=r,i.tail=n,i.tailMode=a)}function Hl(e,t,n){var r=t.pendingProps,a=r.revealOrder,i=r.tail;if(kl(e,t,r.children,n),0!==(2&(r=lo.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&&Bl(e,n,t);else if(19===e.tag)Bl(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(Ca(lo,r),0===(1&t.mode))t.memoizedState=null;else switch(a){case"forwards":for(n=t.child,a=null;null!==n;)null!==(e=n.alternate)&&null===so(e)&&(a=n),n=n.sibling;null===(n=a)?(a=t.child,t.child=null):(a=n.sibling,n.sibling=null),Ul(t,!1,a,n,i);break;case"backwards":for(n=null,a=t.child,t.child=null;null!==a;){if(null!==(e=a.alternate)&&null===so(e)){t.child=a;break}e=a.sibling,a.sibling=n,n=a,a=e}Ul(t,!0,n,null,i);break;case"together":Ul(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Wl(e,t){0===(1&t.mode)&&null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2)}function ql(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),Ps|=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=Ou(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=Ou(e,e.pendingProps)).return=t;n.sibling=null}return t.child}function Zl(e,t){if(!ai)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 Vl(e){var t=null!==e.alternate&&e.alternate.child===e.child,n=0,r=0;if(t)for(var a=e.child;null!==a;)n|=a.lanes|a.childLanes,r|=14680064&a.subtreeFlags,r|=14680064&a.flags,a.return=e,a=a.sibling;else for(a=e.child;null!==a;)n|=a.lanes|a.childLanes,r|=a.subtreeFlags,r|=a.flags,a.return=e,a=a.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function $l(e,t,n){var r=t.pendingProps;switch(ti(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Vl(t),null;case 1:case 17:return Ta(t.type)&&Oa(),Vl(t),null;case 3:return r=t.stateNode,ao(),Ea(Ra),Ea(Na),co(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),null!==e&&null!==e.child||(fi(t)?t.flags|=4:null===e||e.memoizedState.isDehydrated&&0===(256&t.flags)||(t.flags|=1024,null!==ii&&(ou(ii),ii=null))),Vl(t),null;case 5:oo(t);var a=no(to.current);if(n=t.type,null!==e&&null!=t.stateNode)Ol(e,t,n,r),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(null===t.stateNode)throw Error(i(166));return Vl(t),null}if(e=no(Ji.current),fi(t)){r=t.stateNode,n=t.type;var o=t.memoizedProps;switch(r[da]=t,r[ha]=o,e=0!==(1&t.mode),n){case"dialog":Fr("cancel",r),Fr("close",r);break;case"iframe":case"object":case"embed":Fr("load",r);break;case"video":case"audio":for(a=0;a<Lr.length;a++)Fr(Lr[a],r);break;case"source":Fr("error",r);break;case"img":case"image":case"link":Fr("error",r),Fr("load",r);break;case"details":Fr("toggle",r);break;case"input":Q(r,o),Fr("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!o.multiple},Fr("invalid",r);break;case"textarea":ae(r,o),Fr("invalid",r)}for(var s in ye(n,o),a=null,o)if(o.hasOwnProperty(s)){var u=o[s];"children"===s?"string"===typeof u?r.textContent!==u&&(!0!==o.suppressHydrationWarning&&Xr(r.textContent,u,e),a=["children",u]):"number"===typeof u&&r.textContent!==""+u&&(!0!==o.suppressHydrationWarning&&Xr(r.textContent,u,e),a=["children",""+u]):l.hasOwnProperty(s)&&null!=u&&"onScroll"===s&&Fr("scroll",r)}switch(n){case"input":V(r),J(r,o,!0);break;case"textarea":V(r),oe(r);break;case"select":case"option":break;default:"function"===typeof o.onClick&&(r.onclick=Jr)}r=a,t.updateQueue=r,null!==r&&(t.flags|=4)}else{s=9===a.nodeType?a:a.ownerDocument,"http://www.w3.org/1999/xhtml"===e&&(e=le(n)),"http://www.w3.org/1999/xhtml"===e?"script"===n?((e=s.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"===typeof r.is?e=s.createElement(n,{is:r.is}):(e=s.createElement(n),"select"===n&&(s=e,r.multiple?s.multiple=!0:r.size&&(s.size=r.size))):e=s.createElementNS(e,n),e[da]=t,e[ha]=r,Tl(e,t),t.stateNode=e;e:{switch(s=be(n,r),n){case"dialog":Fr("cancel",e),Fr("close",e),a=r;break;case"iframe":case"object":case"embed":Fr("load",e),a=r;break;case"video":case"audio":for(a=0;a<Lr.length;a++)Fr(Lr[a],e);a=r;break;case"source":Fr("error",e),a=r;break;case"img":case"image":case"link":Fr("error",e),Fr("load",e),a=r;break;case"details":Fr("toggle",e),a=r;break;case"input":Q(e,r),a=Y(e,r),Fr("invalid",e);break;case"option":default:a=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},a=M({},r,{value:void 0}),Fr("invalid",e);break;case"textarea":ae(e,r),a=re(e,r),Fr("invalid",e)}for(o in ye(n,a),u=a)if(u.hasOwnProperty(o)){var c=u[o];"style"===o?ve(e,c):"dangerouslySetInnerHTML"===o?null!=(c=c?c.__html:void 0)&&fe(e,c):"children"===o?"string"===typeof c?("textarea"!==n||""!==c)&&de(e,c):"number"===typeof c&&de(e,""+c):"suppressContentEditableWarning"!==o&&"suppressHydrationWarning"!==o&&"autoFocus"!==o&&(l.hasOwnProperty(o)?null!=c&&"onScroll"===o&&Fr("scroll",e):null!=c&&b(e,o,c,s))}switch(n){case"input":V(e),J(e,r,!1);break;case"textarea":V(e),oe(e);break;case"option":null!=r.value&&e.setAttribute("value",""+q(r.value));break;case"select":e.multiple=!!r.multiple,null!=(o=r.value)?ne(e,!!r.multiple,o,!1):null!=r.defaultValue&&ne(e,!!r.multiple,r.defaultValue,!0);break;default:"function"===typeof a.onClick&&(e.onclick=Jr)}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 Vl(t),null;case 6:if(e&&null!=t.stateNode)zl(0,t,e.memoizedProps,r);else{if("string"!==typeof r&&null===t.stateNode)throw Error(i(166));if(n=no(to.current),no(Ji.current),fi(t)){if(r=t.stateNode,n=t.memoizedProps,r[da]=t,(o=r.nodeValue!==n)&&null!==(e=ni))switch(e.tag){case 3:Xr(r.nodeValue,n,0!==(1&e.mode));break;case 5:!0!==e.memoizedProps.suppressHydrationWarning&&Xr(r.nodeValue,n,0!==(1&e.mode))}o&&(t.flags|=4)}else(r=(9===n.nodeType?n:n.ownerDocument).createTextNode(r))[da]=t,t.stateNode=r}return Vl(t),null;case 13:if(Ea(lo),r=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(ai&&null!==ri&&0!==(1&t.mode)&&0===(128&t.flags))di(),hi(),t.flags|=98560,o=!1;else if(o=fi(t),null!==r&&null!==r.dehydrated){if(null===e){if(!o)throw Error(i(318));if(!(o=null!==(o=t.memoizedState)?o.dehydrated:null))throw Error(i(317));o[da]=t}else hi(),0===(128&t.flags)&&(t.memoizedState=null),t.flags|=4;Vl(t),o=!1}else null!==ii&&(ou(ii),ii=null),o=!0;if(!o)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&lo.current)?0===zs&&(zs=3):mu())),null!==t.updateQueue&&(t.flags|=4),Vl(t),null);case 4:return ao(),null===e&&Hr(t.stateNode.containerInfo),Vl(t),null;case 10:return xi(t.type._context),Vl(t),null;case 19:if(Ea(lo),null===(o=t.memoizedState))return Vl(t),null;if(r=0!==(128&t.flags),null===(s=o.rendering))if(r)Zl(o,!1);else{if(0!==zs||null!==e&&0!==(128&e.flags))for(e=t.child;null!==e;){if(null!==(s=so(e))){for(t.flags|=128,Zl(o,!1),null!==(r=s.updateQueue)&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;null!==n;)e=r,(o=n).flags&=14680066,null===(s=o.alternate)?(o.childLanes=0,o.lanes=e,o.child=null,o.subtreeFlags=0,o.memoizedProps=null,o.memoizedState=null,o.updateQueue=null,o.dependencies=null,o.stateNode=null):(o.childLanes=s.childLanes,o.lanes=s.lanes,o.child=s.child,o.subtreeFlags=0,o.deletions=null,o.memoizedProps=s.memoizedProps,o.memoizedState=s.memoizedState,o.updateQueue=s.updateQueue,o.type=s.type,e=s.dependencies,o.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return Ca(lo,1&lo.current|2),t.child}e=e.sibling}null!==o.tail&&Ke()>Hs&&(t.flags|=128,r=!0,Zl(o,!1),t.lanes=4194304)}else{if(!r)if(null!==(e=so(s))){if(t.flags|=128,r=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.flags|=4),Zl(o,!0),null===o.tail&&"hidden"===o.tailMode&&!s.alternate&&!ai)return Vl(t),null}else 2*Ke()-o.renderingStartTime>Hs&&1073741824!==n&&(t.flags|=128,r=!0,Zl(o,!1),t.lanes=4194304);o.isBackwards?(s.sibling=t.child,t.child=s):(null!==(n=o.last)?n.sibling=s:t.child=s,o.last=s)}return null!==o.tail?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=Ke(),t.sibling=null,n=lo.current,Ca(lo,r?1&n|2:1&n),t):(Vl(t),null);case 22:case 23:return fu(),r=null!==t.memoizedState,null!==e&&null!==e.memoizedState!==r&&(t.flags|=8192),r&&0!==(1&t.mode)?0!==(1073741824&Ts)&&(Vl(t),6&t.subtreeFlags&&(t.flags|=8192)):Vl(t),null;case 24:case 25:return null}throw Error(i(156,t.tag))}function Gl(e,t){switch(ti(t),t.tag){case 1:return Ta(t.type)&&Oa(),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return ao(),Ea(Ra),Ea(Na),co(),0!==(65536&(e=t.flags))&&0===(128&e)?(t.flags=-65537&e|128,t):null;case 5:return oo(t),null;case 13:if(Ea(lo),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 Ea(lo),null;case 4:return ao(),null;case 10:return xi(t.type._context),null;case 22:case 23:return fu(),null;default:return null}}Tl=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}},Ol=function(e,t,n,r){var a=e.memoizedProps;if(a!==r){e=t.stateNode,no(Ji.current);var i,o=null;switch(n){case"input":a=Y(e,a),r=Y(e,r),o=[];break;case"select":a=M({},a,{value:void 0}),r=M({},r,{value:void 0}),o=[];break;case"textarea":a=re(e,a),r=re(e,r),o=[];break;default:"function"!==typeof a.onClick&&"function"===typeof r.onClick&&(e.onclick=Jr)}for(c in ye(n,r),n=null,a)if(!r.hasOwnProperty(c)&&a.hasOwnProperty(c)&&null!=a[c])if("style"===c){var s=a[c];for(i in s)s.hasOwnProperty(i)&&(n||(n={}),n[i]="")}else"dangerouslySetInnerHTML"!==c&&"children"!==c&&"suppressContentEditableWarning"!==c&&"suppressHydrationWarning"!==c&&"autoFocus"!==c&&(l.hasOwnProperty(c)?o||(o=[]):(o=o||[]).push(c,null));for(c in r){var u=r[c];if(s=null!=a?a[c]:void 0,r.hasOwnProperty(c)&&u!==s&&(null!=u||null!=s))if("style"===c)if(s){for(i in s)!s.hasOwnProperty(i)||u&&u.hasOwnProperty(i)||(n||(n={}),n[i]="");for(i in u)u.hasOwnProperty(i)&&s[i]!==u[i]&&(n||(n={}),n[i]=u[i])}else n||(o||(o=[]),o.push(c,n)),n=u;else"dangerouslySetInnerHTML"===c?(u=u?u.__html:void 0,s=s?s.__html:void 0,null!=u&&s!==u&&(o=o||[]).push(c,u)):"children"===c?"string"!==typeof u&&"number"!==typeof u||(o=o||[]).push(c,""+u):"suppressContentEditableWarning"!==c&&"suppressHydrationWarning"!==c&&(l.hasOwnProperty(c)?(null!=u&&"onScroll"===c&&Fr("scroll",e),o||s===u||(o=[])):(o=o||[]).push(c,u))}n&&(o=o||[]).push("style",n);var c=o;(t.updateQueue=c)&&(t.flags|=4)}},zl=function(e,t,n,r){n!==r&&(t.flags|=4)};var Yl=!1,Ql=!1,Kl="function"===typeof WeakSet?WeakSet:Set,Xl=null;function Jl(e,t){var n=e.ref;if(null!==n)if("function"===typeof n)try{n(null)}catch(r){Su(e,t,r)}else n.current=null}function es(e,t,n){try{n()}catch(r){Su(e,t,r)}}var ts=!1;function ns(e,t,n){var r=t.updateQueue;if(null!==(r=null!==r?r.lastEffect:null)){var a=r=r.next;do{if((a.tag&e)===e){var i=a.destroy;a.destroy=void 0,void 0!==i&&es(t,n,i)}a=a.next}while(a!==r)}}function rs(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 as(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 is(e){var t=e.alternate;null!==t&&(e.alternate=null,is(t)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&(null!==(t=e.stateNode)&&(delete t[da],delete t[ha],delete t[ma],delete t[va],delete t[ga])),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 os(e){return 5===e.tag||3===e.tag||4===e.tag}function ls(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||os(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 ss(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=Jr));else if(4!==r&&null!==(e=e.child))for(ss(e,t,n),e=e.sibling;null!==e;)ss(e,t,n),e=e.sibling}function us(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(us(e,t,n),e=e.sibling;null!==e;)us(e,t,n),e=e.sibling}var cs=null,fs=!1;function ds(e,t,n){for(n=n.child;null!==n;)hs(e,t,n),n=n.sibling}function hs(e,t,n){if(it&&"function"===typeof it.onCommitFiberUnmount)try{it.onCommitFiberUnmount(at,n)}catch(l){}switch(n.tag){case 5:Ql||Jl(n,t);case 6:var r=cs,a=fs;cs=null,ds(e,t,n),fs=a,null!==(cs=r)&&(fs?(e=cs,n=n.stateNode,8===e.nodeType?e.parentNode.removeChild(n):e.removeChild(n)):cs.removeChild(n.stateNode));break;case 18:null!==cs&&(fs?(e=cs,n=n.stateNode,8===e.nodeType?sa(e.parentNode,n):1===e.nodeType&&sa(e,n),Ht(e)):sa(cs,n.stateNode));break;case 4:r=cs,a=fs,cs=n.stateNode.containerInfo,fs=!0,ds(e,t,n),cs=r,fs=a;break;case 0:case 11:case 14:case 15:if(!Ql&&(null!==(r=n.updateQueue)&&null!==(r=r.lastEffect))){a=r=r.next;do{var i=a,o=i.destroy;i=i.tag,void 0!==o&&(0!==(2&i)||0!==(4&i))&&es(n,t,o),a=a.next}while(a!==r)}ds(e,t,n);break;case 1:if(!Ql&&(Jl(n,t),"function"===typeof(r=n.stateNode).componentWillUnmount))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(l){Su(n,t,l)}ds(e,t,n);break;case 21:ds(e,t,n);break;case 22:1&n.mode?(Ql=(r=Ql)||null!==n.memoizedState,ds(e,t,n),Ql=r):ds(e,t,n);break;default:ds(e,t,n)}}function ps(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new Kl),t.forEach((function(t){var r=Nu.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))}))}}function ms(e,t){var n=t.deletions;if(null!==n)for(var r=0;r<n.length;r++){var a=n[r];try{var o=e,l=t,s=l;e:for(;null!==s;){switch(s.tag){case 5:cs=s.stateNode,fs=!1;break e;case 3:case 4:cs=s.stateNode.containerInfo,fs=!0;break e}s=s.return}if(null===cs)throw Error(i(160));hs(o,l,a),cs=null,fs=!1;var u=a.alternate;null!==u&&(u.return=null),a.return=null}catch(c){Su(a,t,c)}}if(12854&t.subtreeFlags)for(t=t.child;null!==t;)vs(t,e),t=t.sibling}function vs(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(ms(t,e),gs(e),4&r){try{ns(3,e,e.return),rs(3,e)}catch(v){Su(e,e.return,v)}try{ns(5,e,e.return)}catch(v){Su(e,e.return,v)}}break;case 1:ms(t,e),gs(e),512&r&&null!==n&&Jl(n,n.return);break;case 5:if(ms(t,e),gs(e),512&r&&null!==n&&Jl(n,n.return),32&e.flags){var a=e.stateNode;try{de(a,"")}catch(v){Su(e,e.return,v)}}if(4&r&&null!=(a=e.stateNode)){var o=e.memoizedProps,l=null!==n?n.memoizedProps:o,s=e.type,u=e.updateQueue;if(e.updateQueue=null,null!==u)try{"input"===s&&"radio"===o.type&&null!=o.name&&K(a,o),be(s,l);var c=be(s,o);for(l=0;l<u.length;l+=2){var f=u[l],d=u[l+1];"style"===f?ve(a,d):"dangerouslySetInnerHTML"===f?fe(a,d):"children"===f?de(a,d):b(a,f,d,c)}switch(s){case"input":X(a,o);break;case"textarea":ie(a,o);break;case"select":var h=a._wrapperState.wasMultiple;a._wrapperState.wasMultiple=!!o.multiple;var p=o.value;null!=p?ne(a,!!o.multiple,p,!1):h!==!!o.multiple&&(null!=o.defaultValue?ne(a,!!o.multiple,o.defaultValue,!0):ne(a,!!o.multiple,o.multiple?[]:"",!1))}a[ha]=o}catch(v){Su(e,e.return,v)}}break;case 6:if(ms(t,e),gs(e),4&r){if(null===e.stateNode)throw Error(i(162));a=e.stateNode,o=e.memoizedProps;try{a.nodeValue=o}catch(v){Su(e,e.return,v)}}break;case 3:if(ms(t,e),gs(e),4&r&&null!==n&&n.memoizedState.isDehydrated)try{Ht(t.containerInfo)}catch(v){Su(e,e.return,v)}break;case 4:default:ms(t,e),gs(e);break;case 13:ms(t,e),gs(e),8192&(a=e.child).flags&&(o=null!==a.memoizedState,a.stateNode.isHidden=o,!o||null!==a.alternate&&null!==a.alternate.memoizedState||(Us=Ke())),4&r&&ps(e);break;case 22:if(f=null!==n&&null!==n.memoizedState,1&e.mode?(Ql=(c=Ql)||f,ms(t,e),Ql=c):ms(t,e),gs(e),8192&r){if(c=null!==e.memoizedState,(e.stateNode.isHidden=c)&&!f&&0!==(1&e.mode))for(Xl=e,f=e.child;null!==f;){for(d=Xl=f;null!==Xl;){switch(p=(h=Xl).child,h.tag){case 0:case 11:case 14:case 15:ns(4,h,h.return);break;case 1:Jl(h,h.return);var m=h.stateNode;if("function"===typeof m.componentWillUnmount){r=h,n=h.return;try{t=r,m.props=t.memoizedProps,m.state=t.memoizedState,m.componentWillUnmount()}catch(v){Su(r,n,v)}}break;case 5:Jl(h,h.return);break;case 22:if(null!==h.memoizedState){ks(d);continue}}null!==p?(p.return=h,Xl=p):ks(d)}f=f.sibling}e:for(f=null,d=e;;){if(5===d.tag){if(null===f){f=d;try{a=d.stateNode,c?"function"===typeof(o=a.style).setProperty?o.setProperty("display","none","important"):o.display="none":(s=d.stateNode,l=void 0!==(u=d.memoizedProps.style)&&null!==u&&u.hasOwnProperty("display")?u.display:null,s.style.display=me("display",l))}catch(v){Su(e,e.return,v)}}}else if(6===d.tag){if(null===f)try{d.stateNode.nodeValue=c?"":d.memoizedProps}catch(v){Su(e,e.return,v)}}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:ms(t,e),gs(e),4&r&&ps(e);case 21:}}function gs(e){var t=e.flags;if(2&t){try{e:{for(var n=e.return;null!==n;){if(os(n)){var r=n;break e}n=n.return}throw Error(i(160))}switch(r.tag){case 5:var a=r.stateNode;32&r.flags&&(de(a,""),r.flags&=-33),us(e,ls(e),a);break;case 3:case 4:var o=r.stateNode.containerInfo;ss(e,ls(e),o);break;default:throw Error(i(161))}}catch(l){Su(e,e.return,l)}e.flags&=-3}4096&t&&(e.flags&=-4097)}function ys(e,t,n){Xl=e,bs(e,t,n)}function bs(e,t,n){for(var r=0!==(1&e.mode);null!==Xl;){var a=Xl,i=a.child;if(22===a.tag&&r){var o=null!==a.memoizedState||Yl;if(!o){var l=a.alternate,s=null!==l&&null!==l.memoizedState||Ql;l=Yl;var u=Ql;if(Yl=o,(Ql=s)&&!u)for(Xl=a;null!==Xl;)s=(o=Xl).child,22===o.tag&&null!==o.memoizedState?xs(a):null!==s?(s.return=o,Xl=s):xs(a);for(;null!==i;)Xl=i,bs(i,t,n),i=i.sibling;Xl=a,Yl=l,Ql=u}ws(e)}else 0!==(8772&a.subtreeFlags)&&null!==i?(i.return=a,Xl=i):ws(e)}}function ws(e){for(;null!==Xl;){var t=Xl;if(0!==(8772&t.flags)){var n=t.alternate;try{if(0!==(8772&t.flags))switch(t.tag){case 0:case 11:case 15:Ql||rs(5,t);break;case 1:var r=t.stateNode;if(4&t.flags&&!Ql)if(null===n)r.componentDidMount();else{var a=t.elementType===t.type?n.memoizedProps:vi(t.type,n.memoizedProps);r.componentDidUpdate(a,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var o=t.updateQueue;null!==o&&Di(t,o,r);break;case 3:var l=t.updateQueue;if(null!==l){if(n=null,null!==t.child)switch(t.child.tag){case 5:case 1:n=t.child.stateNode}Di(t,l,n)}break;case 5:var s=t.stateNode;if(null===n&&4&t.flags){n=s;var u=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":u.autoFocus&&n.focus();break;case"img":u.src&&(n.src=u.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 c=t.alternate;if(null!==c){var f=c.memoizedState;if(null!==f){var d=f.dehydrated;null!==d&&Ht(d)}}}break;default:throw Error(i(163))}Ql||512&t.flags&&as(t)}catch(h){Su(t,t.return,h)}}if(t===e){Xl=null;break}if(null!==(n=t.sibling)){n.return=t.return,Xl=n;break}Xl=t.return}}function ks(e){for(;null!==Xl;){var t=Xl;if(t===e){Xl=null;break}var n=t.sibling;if(null!==n){n.return=t.return,Xl=n;break}Xl=t.return}}function xs(e){for(;null!==Xl;){var t=Xl;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{rs(4,t)}catch(s){Su(t,n,s)}break;case 1:var r=t.stateNode;if("function"===typeof r.componentDidMount){var a=t.return;try{r.componentDidMount()}catch(s){Su(t,a,s)}}var i=t.return;try{as(t)}catch(s){Su(t,i,s)}break;case 5:var o=t.return;try{as(t)}catch(s){Su(t,o,s)}}}catch(s){Su(t,t.return,s)}if(t===e){Xl=null;break}var l=t.sibling;if(null!==l){l.return=t.return,Xl=l;break}Xl=t.return}}var _s,Ss=Math.ceil,Es=w.ReactCurrentDispatcher,Cs=w.ReactCurrentOwner,js=w.ReactCurrentBatchConfig,Ns=0,Rs=null,Is=null,As=0,Ts=0,Os=Sa(0),zs=0,Ls=null,Ps=0,Ms=0,Ds=0,Fs=null,Bs=null,Us=0,Hs=1/0,Ws=null,qs=!1,Zs=null,Vs=null,$s=!1,Gs=null,Ys=0,Qs=0,Ks=null,Xs=-1,Js=0;function eu(){return 0!==(6&Ns)?Ke():-1!==Xs?Xs:Xs=Ke()}function tu(e){return 0===(1&e.mode)?1:0!==(2&Ns)&&0!==As?As&-As:null!==mi.transition?(0===Js&&(Js=mt()),Js):0!==(e=bt)?e:e=void 0===(e=window.event)?16:Qt(e.type)}function nu(e,t,n,r){if(50<Qs)throw Qs=0,Ks=null,Error(i(185));gt(e,n,r),0!==(2&Ns)&&e===Rs||(e===Rs&&(0===(2&Ns)&&(Ms|=n),4===zs&&lu(e,As)),ru(e,r),1===n&&0===Ns&&0===(1&t.mode)&&(Hs=Ke()+500,Fa&&Ha()))}function ru(e,t){var n=e.callbackNode;!function(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,a=e.expirationTimes,i=e.pendingLanes;0<i;){var o=31-ot(i),l=1<<o,s=a[o];-1===s?0!==(l&n)&&0===(l&r)||(a[o]=ht(l,t)):s<=t&&(e.expiredLanes|=l),i&=~l}}(e,t);var r=dt(e,e===Rs?As: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){Fa=!0,Ua(e)}(su.bind(null,e)):Ua(su.bind(null,e)),oa((function(){0===(6&Ns)&&Ha()})),n=null;else{switch(wt(r)){case 1:n=Je;break;case 4:n=et;break;case 16:default:n=tt;break;case 536870912:n=rt}n=Ru(n,au.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function au(e,t){if(Xs=-1,Js=0,0!==(6&Ns))throw Error(i(327));var n=e.callbackNode;if(xu()&&e.callbackNode!==n)return null;var r=dt(e,e===Rs?As:0);if(0===r)return null;if(0!==(30&r)||0!==(r&e.expiredLanes)||t)t=vu(e,r);else{t=r;var a=Ns;Ns|=2;var o=pu();for(Rs===e&&As===t||(Ws=null,Hs=Ke()+500,du(e,t));;)try{yu();break}catch(s){hu(e,s)}ki(),Es.current=o,Ns=a,null!==Is?t=0:(Rs=null,As=0,t=zs)}if(0!==t){if(2===t&&(0!==(a=pt(e))&&(r=a,t=iu(e,a))),1===t)throw n=Ls,du(e,0),lu(e,r),ru(e,Ke()),n;if(6===t)lu(e,r);else{if(a=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 a=n[r],i=a.getSnapshot;a=a.value;try{if(!lr(i(),a))return!1}catch(l){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}(a)&&(2===(t=vu(e,r))&&(0!==(o=pt(e))&&(r=o,t=iu(e,o))),1===t))throw n=Ls,du(e,0),lu(e,r),ru(e,Ke()),n;switch(e.finishedWork=a,e.finishedLanes=r,t){case 0:case 1:throw Error(i(345));case 2:case 5:ku(e,Bs,Ws);break;case 3:if(lu(e,r),(130023424&r)===r&&10<(t=Us+500-Ke())){if(0!==dt(e,0))break;if(((a=e.suspendedLanes)&r)!==r){eu(),e.pingedLanes|=e.suspendedLanes&a;break}e.timeoutHandle=ra(ku.bind(null,e,Bs,Ws),t);break}ku(e,Bs,Ws);break;case 4:if(lu(e,r),(4194240&r)===r)break;for(t=e.eventTimes,a=-1;0<r;){var l=31-ot(r);o=1<<l,(l=t[l])>a&&(a=l),r&=~o}if(r=a,10<(r=(120>(r=Ke()-r)?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Ss(r/1960))-r)){e.timeoutHandle=ra(ku.bind(null,e,Bs,Ws),r);break}ku(e,Bs,Ws);break;default:throw Error(i(329))}}}return ru(e,Ke()),e.callbackNode===n?au.bind(null,e):null}function iu(e,t){var n=Fs;return e.current.memoizedState.isDehydrated&&(du(e,t).flags|=256),2!==(e=vu(e,t))&&(t=Bs,Bs=n,null!==t&&ou(t)),e}function ou(e){null===Bs?Bs=e:Bs.push.apply(Bs,e)}function lu(e,t){for(t&=~Ds,t&=~Ms,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-ot(t),r=1<<n;e[n]=-1,t&=~r}}function su(e){if(0!==(6&Ns))throw Error(i(327));xu();var t=dt(e,0);if(0===(1&t))return ru(e,Ke()),null;var n=vu(e,t);if(0!==e.tag&&2===n){var r=pt(e);0!==r&&(t=r,n=iu(e,r))}if(1===n)throw n=Ls,du(e,0),lu(e,t),ru(e,Ke()),n;if(6===n)throw Error(i(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,ku(e,Bs,Ws),ru(e,Ke()),null}function uu(e,t){var n=Ns;Ns|=1;try{return e(t)}finally{0===(Ns=n)&&(Hs=Ke()+500,Fa&&Ha())}}function cu(e){null!==Gs&&0===Gs.tag&&0===(6&Ns)&&xu();var t=Ns;Ns|=1;var n=js.transition,r=bt;try{if(js.transition=null,bt=1,e)return e()}finally{bt=r,js.transition=n,0===(6&(Ns=t))&&Ha()}}function fu(){Ts=Os.current,Ea(Os)}function du(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,aa(n)),null!==Is)for(n=Is.return;null!==n;){var r=n;switch(ti(r),r.tag){case 1:null!==(r=r.type.childContextTypes)&&void 0!==r&&Oa();break;case 3:ao(),Ea(Ra),Ea(Na),co();break;case 5:oo(r);break;case 4:ao();break;case 13:case 19:Ea(lo);break;case 10:xi(r.type._context);break;case 22:case 23:fu()}n=n.return}if(Rs=e,Is=e=Ou(e.current,null),As=Ts=t,zs=0,Ls=null,Ds=Ms=Ps=0,Bs=Fs=null,null!==Ci){for(t=0;t<Ci.length;t++)if(null!==(r=(n=Ci[t]).interleaved)){n.interleaved=null;var a=r.next,i=n.pending;if(null!==i){var o=i.next;i.next=a,r.next=o}n.pending=r}Ci=null}return e}function hu(e,t){for(;;){var n=Is;try{if(ki(),fo.current=ol,yo){for(var r=mo.memoizedState;null!==r;){var a=r.queue;null!==a&&(a.pending=null),r=r.next}yo=!1}if(po=0,go=vo=mo=null,bo=!1,wo=0,Cs.current=null,null===n||null===n.return){zs=1,Ls=t,Is=null;break}e:{var o=e,l=n.return,s=n,u=t;if(t=As,s.flags|=32768,null!==u&&"object"===typeof u&&"function"===typeof u.then){var c=u,f=s,d=f.tag;if(0===(1&f.mode)&&(0===d||11===d||15===d)){var h=f.alternate;h?(f.updateQueue=h.updateQueue,f.memoizedState=h.memoizedState,f.lanes=h.lanes):(f.updateQueue=null,f.memoizedState=null)}var p=gl(l);if(null!==p){p.flags&=-257,yl(p,l,s,0,t),1&p.mode&&vl(o,c,t),u=c;var m=(t=p).updateQueue;if(null===m){var v=new Set;v.add(u),t.updateQueue=v}else m.add(u);break e}if(0===(1&t)){vl(o,c,t),mu();break e}u=Error(i(426))}else if(ai&&1&s.mode){var g=gl(l);if(null!==g){0===(65536&g.flags)&&(g.flags|=256),yl(g,l,s,0,t),pi(cl(u,s));break e}}o=u=cl(u,s),4!==zs&&(zs=2),null===Fs?Fs=[o]:Fs.push(o),o=l;do{switch(o.tag){case 3:o.flags|=65536,t&=-t,o.lanes|=t,Pi(o,pl(0,u,t));break e;case 1:s=u;var y=o.type,b=o.stateNode;if(0===(128&o.flags)&&("function"===typeof y.getDerivedStateFromError||null!==b&&"function"===typeof b.componentDidCatch&&(null===Vs||!Vs.has(b)))){o.flags|=65536,t&=-t,o.lanes|=t,Pi(o,ml(o,s,t));break e}}o=o.return}while(null!==o)}wu(n)}catch(w){t=w,Is===n&&null!==n&&(Is=n=n.return);continue}break}}function pu(){var e=Es.current;return Es.current=ol,null===e?ol:e}function mu(){0!==zs&&3!==zs&&2!==zs||(zs=4),null===Rs||0===(268435455&Ps)&&0===(268435455&Ms)||lu(Rs,As)}function vu(e,t){var n=Ns;Ns|=2;var r=pu();for(Rs===e&&As===t||(Ws=null,du(e,t));;)try{gu();break}catch(a){hu(e,a)}if(ki(),Ns=n,Es.current=r,null!==Is)throw Error(i(261));return Rs=null,As=0,zs}function gu(){for(;null!==Is;)bu(Is)}function yu(){for(;null!==Is&&!Ye();)bu(Is)}function bu(e){var t=_s(e.alternate,e,Ts);e.memoizedProps=e.pendingProps,null===t?wu(e):Is=t,Cs.current=null}function wu(e){var t=e;do{var n=t.alternate;if(e=t.return,0===(32768&t.flags)){if(null!==(n=$l(n,t,Ts)))return void(Is=n)}else{if(null!==(n=Gl(n,t)))return n.flags&=32767,void(Is=n);if(null===e)return zs=6,void(Is=null);e.flags|=32768,e.subtreeFlags=0,e.deletions=null}if(null!==(t=t.sibling))return void(Is=t);Is=t=e}while(null!==t);0===zs&&(zs=5)}function ku(e,t,n){var r=bt,a=js.transition;try{js.transition=null,bt=1,function(e,t,n,r){do{xu()}while(null!==Gs);if(0!==(6&Ns))throw Error(i(327));n=e.finishedWork;var a=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 o=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 a=31-ot(n),i=1<<a;t[a]=0,r[a]=-1,e[a]=-1,n&=~i}}(e,o),e===Rs&&(Is=Rs=null,As=0),0===(2064&n.subtreeFlags)&&0===(2064&n.flags)||$s||($s=!0,Ru(tt,(function(){return xu(),null}))),o=0!==(15990&n.flags),0!==(15990&n.subtreeFlags)||o){o=js.transition,js.transition=null;var l=bt;bt=1;var s=Ns;Ns|=4,Cs.current=null,function(e,t){if(ea=qt,hr(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 a=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch(k){n=null;break e}var l=0,s=-1,u=-1,c=0,f=0,d=e,h=null;t:for(;;){for(var p;d!==n||0!==a&&3!==d.nodeType||(s=l+a),d!==o||0!==r&&3!==d.nodeType||(u=l+r),3===d.nodeType&&(l+=d.nodeValue.length),null!==(p=d.firstChild);)h=d,d=p;for(;;){if(d===e)break t;if(h===n&&++c===a&&(s=l),h===o&&++f===r&&(u=l),null!==(p=d.nextSibling))break;h=(d=h).parentNode}d=p}n=-1===s||-1===u?null:{start:s,end:u}}else n=null}n=n||{start:0,end:0}}else n=null;for(ta={focusedElem:e,selectionRange:n},qt=!1,Xl=t;null!==Xl;)if(e=(t=Xl).child,0!==(1028&t.subtreeFlags)&&null!==e)e.return=t,Xl=e;else for(;null!==Xl;){t=Xl;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 v=m.memoizedProps,g=m.memoizedState,y=t.stateNode,b=y.getSnapshotBeforeUpdate(t.elementType===t.type?v:vi(t.type,v),g);y.__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(k){Su(t,t.return,k)}if(null!==(e=t.sibling)){e.return=t.return,Xl=e;break}Xl=t.return}m=ts,ts=!1}(e,n),vs(n,e),pr(ta),qt=!!ea,ta=ea=null,e.current=n,ys(n,e,a),Qe(),Ns=s,bt=l,js.transition=o}else e.current=n;if($s&&($s=!1,Gs=e,Ys=a),0===(o=e.pendingLanes)&&(Vs=null),function(e){if(it&&"function"===typeof it.onCommitFiberRoot)try{it.onCommitFiberRoot(at,e,void 0,128===(128&e.current.flags))}catch(t){}}(n.stateNode),ru(e,Ke()),null!==t)for(r=e.onRecoverableError,n=0;n<t.length;n++)r((a=t[n]).value,{componentStack:a.stack,digest:a.digest});if(qs)throw qs=!1,e=Zs,Zs=null,e;0!==(1&Ys)&&0!==e.tag&&xu(),0!==(1&(o=e.pendingLanes))?e===Ks?Qs++:(Qs=0,Ks=e):Qs=0,Ha()}(e,t,n,r)}finally{js.transition=a,bt=r}return null}function xu(){if(null!==Gs){var e=wt(Ys),t=js.transition,n=bt;try{if(js.transition=null,bt=16>e?16:e,null===Gs)var r=!1;else{if(e=Gs,Gs=null,Ys=0,0!==(6&Ns))throw Error(i(331));var a=Ns;for(Ns|=4,Xl=e.current;null!==Xl;){var o=Xl,l=o.child;if(0!==(16&Xl.flags)){var s=o.deletions;if(null!==s){for(var u=0;u<s.length;u++){var c=s[u];for(Xl=c;null!==Xl;){var f=Xl;switch(f.tag){case 0:case 11:case 15:ns(8,f,o)}var d=f.child;if(null!==d)d.return=f,Xl=d;else for(;null!==Xl;){var h=(f=Xl).sibling,p=f.return;if(is(f),f===c){Xl=null;break}if(null!==h){h.return=p,Xl=h;break}Xl=p}}}var m=o.alternate;if(null!==m){var v=m.child;if(null!==v){m.child=null;do{var g=v.sibling;v.sibling=null,v=g}while(null!==v)}}Xl=o}}if(0!==(2064&o.subtreeFlags)&&null!==l)l.return=o,Xl=l;else e:for(;null!==Xl;){if(0!==(2048&(o=Xl).flags))switch(o.tag){case 0:case 11:case 15:ns(9,o,o.return)}var y=o.sibling;if(null!==y){y.return=o.return,Xl=y;break e}Xl=o.return}}var b=e.current;for(Xl=b;null!==Xl;){var w=(l=Xl).child;if(0!==(2064&l.subtreeFlags)&&null!==w)w.return=l,Xl=w;else e:for(l=b;null!==Xl;){if(0!==(2048&(s=Xl).flags))try{switch(s.tag){case 0:case 11:case 15:rs(9,s)}}catch(x){Su(s,s.return,x)}if(s===l){Xl=null;break e}var k=s.sibling;if(null!==k){k.return=s.return,Xl=k;break e}Xl=s.return}}if(Ns=a,Ha(),it&&"function"===typeof it.onPostCommitFiberRoot)try{it.onPostCommitFiberRoot(at,e)}catch(x){}r=!0}return r}finally{bt=n,js.transition=t}}return!1}function _u(e,t,n){e=zi(e,t=pl(0,t=cl(n,t),1),1),t=eu(),null!==e&&(gt(e,1,t),ru(e,t))}function Su(e,t,n){if(3===e.tag)_u(e,e,n);else for(;null!==t;){if(3===t.tag){_u(t,e,n);break}if(1===t.tag){var r=t.stateNode;if("function"===typeof t.type.getDerivedStateFromError||"function"===typeof r.componentDidCatch&&(null===Vs||!Vs.has(r))){t=zi(t,e=ml(t,e=cl(n,e),1),1),e=eu(),null!==t&&(gt(t,1,e),ru(t,e));break}}t=t.return}}function Eu(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),t=eu(),e.pingedLanes|=e.suspendedLanes&n,Rs===e&&(As&n)===n&&(4===zs||3===zs&&(130023424&As)===As&&500>Ke()-Us?du(e,0):Ds|=n),ru(e,t)}function Cu(e,t){0===t&&(0===(1&e.mode)?t=1:(t=ct,0===(130023424&(ct<<=1))&&(ct=4194304)));var n=eu();null!==(e=Ri(e,t))&&(gt(e,t,n),ru(e,n))}function ju(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),Cu(e,n)}function Nu(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,a=e.memoizedState;null!==a&&(n=a.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(i(314))}null!==r&&r.delete(t),Cu(e,n)}function Ru(e,t){return $e(e,t)}function Iu(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 Au(e,t,n,r){return new Iu(e,t,n,r)}function Tu(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Ou(e,t){var n=e.alternate;return null===n?((n=Au(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 zu(e,t,n,r,a,o){var l=2;if(r=e,"function"===typeof e)Tu(e)&&(l=1);else if("string"===typeof e)l=5;else e:switch(e){case _:return Lu(n.children,a,o,t);case S:l=8,a|=8;break;case E:return(e=Au(12,n,t,2|a)).elementType=E,e.lanes=o,e;case R:return(e=Au(13,n,t,a)).elementType=R,e.lanes=o,e;case I:return(e=Au(19,n,t,a)).elementType=I,e.lanes=o,e;case O:return Pu(n,a,o,t);default:if("object"===typeof e&&null!==e)switch(e.$$typeof){case C:l=10;break e;case j:l=9;break e;case N:l=11;break e;case A:l=14;break e;case T:l=16,r=null;break e}throw Error(i(130,null==e?e:typeof e,""))}return(t=Au(l,n,t,a)).elementType=e,t.type=r,t.lanes=o,t}function Lu(e,t,n,r){return(e=Au(7,e,r,t)).lanes=n,e}function Pu(e,t,n,r){return(e=Au(22,e,r,t)).elementType=O,e.lanes=n,e.stateNode={isHidden:!1},e}function Mu(e,t,n){return(e=Au(6,e,null,t)).lanes=n,e}function Du(e,t,n){return(t=Au(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Fu(e,t,n,r,a){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=vt(0),this.expirationTimes=vt(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=vt(0),this.identifierPrefix=r,this.onRecoverableError=a,this.mutableSourceEagerHydrationData=null}function Bu(e,t,n,r,a,i,o,l,s){return e=new Fu(e,t,n,l,s),1===t?(t=1,!0===i&&(t|=8)):t=0,i=Au(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Ai(i),e}function Uu(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:x,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}function Hu(e){if(!e)return ja;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(Ta(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(Ta(n))return La(e,n,t)}return t}function Wu(e,t,n,r,a,i,o,l,s){return(e=Bu(n,r,!0,e,0,i,0,l,s)).context=Hu(null),n=e.current,(i=Oi(r=eu(),a=tu(n))).callback=void 0!==t&&null!==t?t:null,zi(n,i,a),e.current.lanes=a,gt(e,a,r),ru(e,r),e}function qu(e,t,n,r){var a=t.current,i=eu(),o=tu(a);return n=Hu(n),null===t.context?t.context=n:t.pendingContext=n,(t=Oi(i,o)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),null!==(e=zi(a,t,o))&&(nu(e,a,o,i),Li(e,a,o)),o}function Zu(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function Vu(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function $u(e,t){Vu(e,t),(e=e.alternate)&&Vu(e,t)}_s=function(e,t,n){if(null!==e)if(e.memoizedProps!==t.pendingProps||Ra.current)wl=!0;else{if(0===(e.lanes&n)&&0===(128&t.flags))return wl=!1,function(e,t,n){switch(t.tag){case 3:Il(t),hi();break;case 5:io(t);break;case 1:Ta(t.type)&&Pa(t);break;case 4:ro(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,a=t.memoizedProps.value;Ca(gi,r._currentValue),r._currentValue=a;break;case 13:if(null!==(r=t.memoizedState))return null!==r.dehydrated?(Ca(lo,1&lo.current),t.flags|=128,null):0!==(n&t.child.childLanes)?Ml(e,t,n):(Ca(lo,1&lo.current),null!==(e=ql(e,t,n))?e.sibling:null);Ca(lo,1&lo.current);break;case 19:if(r=0!==(n&t.childLanes),0!==(128&e.flags)){if(r)return Hl(e,t,n);t.flags|=128}if(null!==(a=t.memoizedState)&&(a.rendering=null,a.tail=null,a.lastEffect=null),Ca(lo,lo.current),r)break;return null;case 22:case 23:return t.lanes=0,El(e,t,n)}return ql(e,t,n)}(e,t,n);wl=0!==(131072&e.flags)}else wl=!1,ai&&0!==(1048576&t.flags)&&Ja(t,Va,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Wl(e,t),e=t.pendingProps;var a=Aa(t,Na.current);Si(t,n),a=So(null,t,r,e,a,n);var o=Eo();return t.flags|=1,"object"===typeof a&&null!==a&&"function"===typeof a.render&&void 0===a.$$typeof?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Ta(r)?(o=!0,Pa(t)):o=!1,t.memoizedState=null!==a.state&&void 0!==a.state?a.state:null,Ai(t),a.updater=Ui,t.stateNode=a,a._reactInternals=t,Zi(t,r,e,n),t=Rl(null,t,r,!0,o,n)):(t.tag=0,ai&&o&&ei(t),kl(null,t,a,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Wl(e,t),e=t.pendingProps,r=(a=r._init)(r._payload),t.type=r,a=t.tag=function(e){if("function"===typeof e)return Tu(e)?1:0;if(void 0!==e&&null!==e){if((e=e.$$typeof)===N)return 11;if(e===A)return 14}return 2}(r),e=vi(r,e),a){case 0:t=jl(null,t,r,e,n);break e;case 1:t=Nl(null,t,r,e,n);break e;case 11:t=xl(null,t,r,e,n);break e;case 14:t=_l(null,t,r,vi(r.type,e),n);break e}throw Error(i(306,r,""))}return t;case 0:return r=t.type,a=t.pendingProps,jl(e,t,r,a=t.elementType===r?a:vi(r,a),n);case 1:return r=t.type,a=t.pendingProps,Nl(e,t,r,a=t.elementType===r?a:vi(r,a),n);case 3:e:{if(Il(t),null===e)throw Error(i(387));r=t.pendingProps,a=(o=t.memoizedState).element,Ti(e,t),Mi(t,r,null,n);var l=t.memoizedState;if(r=l.element,o.isDehydrated){if(o={element:r,isDehydrated:!1,cache:l.cache,pendingSuspenseBoundaries:l.pendingSuspenseBoundaries,transitions:l.transitions},t.updateQueue.baseState=o,t.memoizedState=o,256&t.flags){t=Al(e,t,r,n,a=cl(Error(i(423)),t));break e}if(r!==a){t=Al(e,t,r,n,a=cl(Error(i(424)),t));break e}for(ri=ua(t.stateNode.containerInfo.firstChild),ni=t,ai=!0,ii=null,n=Ki(t,null,r,n),t.child=n;n;)n.flags=-3&n.flags|4096,n=n.sibling}else{if(hi(),r===a){t=ql(e,t,n);break e}kl(e,t,r,n)}t=t.child}return t;case 5:return io(t),null===e&&ui(t),r=t.type,a=t.pendingProps,o=null!==e?e.memoizedProps:null,l=a.children,na(r,a)?l=null:null!==o&&na(r,o)&&(t.flags|=32),Cl(e,t),kl(e,t,l,n),t.child;case 6:return null===e&&ui(t),null;case 13:return Ml(e,t,n);case 4:return ro(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=Qi(t,null,r,n):kl(e,t,r,n),t.child;case 11:return r=t.type,a=t.pendingProps,xl(e,t,r,a=t.elementType===r?a:vi(r,a),n);case 7:return kl(e,t,t.pendingProps,n),t.child;case 8:case 12:return kl(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,a=t.pendingProps,o=t.memoizedProps,l=a.value,Ca(gi,r._currentValue),r._currentValue=l,null!==o)if(lr(o.value,l)){if(o.children===a.children&&!Ra.current){t=ql(e,t,n);break e}}else for(null!==(o=t.child)&&(o.return=t);null!==o;){var s=o.dependencies;if(null!==s){l=o.child;for(var u=s.firstContext;null!==u;){if(u.context===r){if(1===o.tag){(u=Oi(-1,n&-n)).tag=2;var c=o.updateQueue;if(null!==c){var f=(c=c.shared).pending;null===f?u.next=u:(u.next=f.next,f.next=u),c.pending=u}}o.lanes|=n,null!==(u=o.alternate)&&(u.lanes|=n),_i(o.return,n,t),s.lanes|=n;break}u=u.next}}else if(10===o.tag)l=o.type===t.type?null:o.child;else if(18===o.tag){if(null===(l=o.return))throw Error(i(341));l.lanes|=n,null!==(s=l.alternate)&&(s.lanes|=n),_i(l,n,t),l=o.sibling}else l=o.child;if(null!==l)l.return=o;else for(l=o;null!==l;){if(l===t){l=null;break}if(null!==(o=l.sibling)){o.return=l.return,l=o;break}l=l.return}o=l}kl(e,t,a.children,n),t=t.child}return t;case 9:return a=t.type,r=t.pendingProps.children,Si(t,n),r=r(a=Ei(a)),t.flags|=1,kl(e,t,r,n),t.child;case 14:return a=vi(r=t.type,t.pendingProps),_l(e,t,r,a=vi(r.type,a),n);case 15:return Sl(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,a=t.pendingProps,a=t.elementType===r?a:vi(r,a),Wl(e,t),t.tag=1,Ta(r)?(e=!0,Pa(t)):e=!1,Si(t,n),Wi(t,r,a),Zi(t,r,a,n),Rl(null,t,r,!0,e,n);case 19:return Hl(e,t,n);case 22:return El(e,t,n)}throw Error(i(156,t.tag))};var Gu="function"===typeof reportError?reportError:function(e){console.error(e)};function Yu(e){this._internalRoot=e}function Qu(e){this._internalRoot=e}function Ku(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType)}function Xu(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function Ju(){}function ec(e,t,n,r,a){var i=n._reactRootContainer;if(i){var o=i;if("function"===typeof a){var l=a;a=function(){var e=Zu(o);l.call(e)}}qu(t,o,e,a)}else o=function(e,t,n,r,a){if(a){if("function"===typeof r){var i=r;r=function(){var e=Zu(o);i.call(e)}}var o=Wu(t,r,e,0,null,!1,0,"",Ju);return e._reactRootContainer=o,e[pa]=o.current,Hr(8===e.nodeType?e.parentNode:e),cu(),o}for(;a=e.lastChild;)e.removeChild(a);if("function"===typeof r){var l=r;r=function(){var e=Zu(s);l.call(e)}}var s=Bu(e,0,!1,null,0,!1,0,"",Ju);return e._reactRootContainer=s,e[pa]=s.current,Hr(8===e.nodeType?e.parentNode:e),cu((function(){qu(t,s,n,r)})),s}(n,t,e,a,r);return Zu(o)}Qu.prototype.render=Yu.prototype.render=function(e){var t=this._internalRoot;if(null===t)throw Error(i(409));qu(e,t,null,null)},Qu.prototype.unmount=Yu.prototype.unmount=function(){var e=this._internalRoot;if(null!==e){this._internalRoot=null;var t=e.containerInfo;cu((function(){qu(null,e,null,null)})),t[pa]=null}},Qu.prototype.unstable_scheduleHydration=function(e){if(e){var t=St();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Ot.length&&0!==t&&t<Ot[n].priority;n++);Ot.splice(n,0,e),0===n&&Mt(e)}},kt=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=ft(t.pendingLanes);0!==n&&(yt(t,1|n),ru(t,Ke()),0===(6&Ns)&&(Hs=Ke()+500,Ha()))}break;case 13:cu((function(){var t=Ri(e,1);if(null!==t){var n=eu();nu(t,e,1,n)}})),$u(e,1)}},xt=function(e){if(13===e.tag){var t=Ri(e,134217728);if(null!==t)nu(t,e,134217728,eu());$u(e,134217728)}},_t=function(e){if(13===e.tag){var t=tu(e),n=Ri(e,t);if(null!==n)nu(n,e,t,eu());$u(e,t)}},St=function(){return bt},Et=function(e,t){var n=bt;try{return bt=e,t()}finally{bt=n}},xe=function(e,t,n){switch(t){case"input":if(X(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 a=ka(r);if(!a)throw Error(i(90));$(r),X(r,a)}}}break;case"textarea":ie(e,n);break;case"select":null!=(t=n.value)&&ne(e,!!n.multiple,t,!1)}},Ne=uu,Re=cu;var tc={usingClientEntryPoint:!1,Events:[ba,wa,ka,Ce,je,uu]},nc={findFiberByHostInstance:ya,bundleType:0,version:"18.2.0",rendererPackageName:"react-dom"},rc={bundleType:nc.bundleType,version:nc.version,rendererPackageName:nc.rendererPackageName,rendererConfig:nc.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=Ze(e))?null:e.stateNode},findFiberByHostInstance:nc.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 ac=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!ac.isDisabled&&ac.supportsFiber)try{at=ac.inject(rc),it=ac}catch(ce){}}t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=tc,t.createPortal=function(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!Ku(t))throw Error(i(200));return Uu(e,t,null,n)},t.createRoot=function(e,t){if(!Ku(e))throw Error(i(299));var n=!1,r="",a=Gu;return null!==t&&void 0!==t&&(!0===t.unstable_strictMode&&(n=!0),void 0!==t.identifierPrefix&&(r=t.identifierPrefix),void 0!==t.onRecoverableError&&(a=t.onRecoverableError)),t=Bu(e,1,!1,null,0,n,0,r,a),e[pa]=t.current,Hr(8===e.nodeType?e.parentNode:e),new Yu(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=Ze(t))?null:e.stateNode},t.flushSync=function(e){return cu(e)},t.hydrate=function(e,t,n){if(!Xu(t))throw Error(i(200));return ec(null,e,t,!0,n)},t.hydrateRoot=function(e,t,n){if(!Ku(e))throw Error(i(405));var r=null!=n&&n.hydratedSources||null,a=!1,o="",l=Gu;if(null!==n&&void 0!==n&&(!0===n.unstable_strictMode&&(a=!0),void 0!==n.identifierPrefix&&(o=n.identifierPrefix),void 0!==n.onRecoverableError&&(l=n.onRecoverableError)),t=Wu(t,null,e,1,null!=n?n:null,a,0,o,l),e[pa]=t.current,Hr(e),r)for(e=0;e<r.length;e++)a=(a=(n=r[e])._getVersion)(n._source),null==t.mutableSourceEagerHydrationData?t.mutableSourceEagerHydrationData=[n,a]:t.mutableSourceEagerHydrationData.push(n,a);return new Qu(t)},t.render=function(e,t,n){if(!Xu(t))throw Error(i(200));return ec(null,e,t,!1,n)},t.unmountComponentAtNode=function(e){if(!Xu(e))throw Error(i(40));return!!e._reactRootContainer&&(cu((function(){ec(null,null,e,!1,(function(){e._reactRootContainer=null,e[pa]=null}))})),!0)},t.unstable_batchedUpdates=uu,t.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Xu(n))throw Error(i(200));if(null==e||void 0===e._reactInternals)throw Error(i(38));return ec(e,t,n,!1,r)},t.version="18.2.0-next-9e3b772b8-20220608"},250:function(e,t,n){"use strict";var r=n(164);t.createRoot=r.createRoot,t.hydrateRoot=r.hydrateRoot},164:function(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(463)},374:function(e,t,n){"use strict";var r=n(791),a=Symbol.for("react.element"),i=Symbol.for("react.fragment"),o=Object.prototype.hasOwnProperty,l=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,s={key:!0,ref:!0,__self:!0,__source:!0};function u(e,t,n){var r,i={},u=null,c=null;for(r in void 0!==n&&(u=""+n),void 0!==t.key&&(u=""+t.key),void 0!==t.ref&&(c=t.ref),t)o.call(t,r)&&!s.hasOwnProperty(r)&&(i[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===i[r]&&(i[r]=t[r]);return{$$typeof:a,type:e,key:u,ref:c,props:i,_owner:l.current}}t.Fragment=i,t.jsx=u,t.jsxs=u},117:function(e,t){"use strict";var n=Symbol.for("react.element"),r=Symbol.for("react.portal"),a=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),l=Symbol.for("react.provider"),s=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),f=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),h=Symbol.iterator;var p={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},m=Object.assign,v={};function g(e,t,n){this.props=e,this.context=t,this.refs=v,this.updater=n||p}function y(){}function b(e,t,n){this.props=e,this.context=t,this.refs=v,this.updater=n||p}g.prototype.isReactComponent={},g.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")},g.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},y.prototype=g.prototype;var w=b.prototype=new y;w.constructor=b,m(w,g.prototype),w.isPureReactComponent=!0;var k=Array.isArray,x=Object.prototype.hasOwnProperty,_={current:null},S={key:!0,ref:!0,__self:!0,__source:!0};function E(e,t,r){var a,i={},o=null,l=null;if(null!=t)for(a in void 0!==t.ref&&(l=t.ref),void 0!==t.key&&(o=""+t.key),t)x.call(t,a)&&!S.hasOwnProperty(a)&&(i[a]=t[a]);var s=arguments.length-2;if(1===s)i.children=r;else if(1<s){for(var u=Array(s),c=0;c<s;c++)u[c]=arguments[c+2];i.children=u}if(e&&e.defaultProps)for(a in s=e.defaultProps)void 0===i[a]&&(i[a]=s[a]);return{$$typeof:n,type:e,key:o,ref:l,props:i,_owner:_.current}}function C(e){return"object"===typeof e&&null!==e&&e.$$typeof===n}var j=/\/+/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 R(e,t,a,i,o){var l=typeof e;"undefined"!==l&&"boolean"!==l||(e=null);var s=!1;if(null===e)s=!0;else switch(l){case"string":case"number":s=!0;break;case"object":switch(e.$$typeof){case n:case r:s=!0}}if(s)return o=o(s=e),e=""===i?"."+N(s,0):i,k(o)?(a="",null!=e&&(a=e.replace(j,"$&/")+"/"),R(o,t,a,"",(function(e){return e}))):null!=o&&(C(o)&&(o=function(e,t){return{$$typeof:n,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(o,a+(!o.key||s&&s.key===o.key?"":(""+o.key).replace(j,"$&/")+"/")+e)),t.push(o)),1;if(s=0,i=""===i?".":i+":",k(e))for(var u=0;u<e.length;u++){var c=i+N(l=e[u],u);s+=R(l,t,a,c,o)}else if(c=function(e){return null===e||"object"!==typeof e?null:"function"===typeof(e=h&&e[h]||e["@@iterator"])?e:null}(e),"function"===typeof c)for(e=c.call(e),u=0;!(l=e.next()).done;)s+=R(l=l.value,t,a,c=i+N(l,u++),o);else if("object"===l)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 s}function I(e,t,n){if(null==e)return e;var r=[],a=0;return R(e,r,"","",(function(e){return t.call(n,e,a++)})),r}function A(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 T={current:null},O={transition:null},z={ReactCurrentDispatcher:T,ReactCurrentBatchConfig:O,ReactCurrentOwner:_};t.Children={map:I,forEach:function(e,t,n){I(e,(function(){t.apply(this,arguments)}),n)},count:function(e){var t=0;return I(e,(function(){t++})),t},toArray:function(e){return I(e,(function(e){return e}))||[]},only:function(e){if(!C(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},t.Component=g,t.Fragment=a,t.Profiler=o,t.PureComponent=b,t.StrictMode=i,t.Suspense=c,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=z,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 a=m({},e.props),i=e.key,o=e.ref,l=e._owner;if(null!=t){if(void 0!==t.ref&&(o=t.ref,l=_.current),void 0!==t.key&&(i=""+t.key),e.type&&e.type.defaultProps)var s=e.type.defaultProps;for(u in t)x.call(t,u)&&!S.hasOwnProperty(u)&&(a[u]=void 0===t[u]&&void 0!==s?s[u]:t[u])}var u=arguments.length-2;if(1===u)a.children=r;else if(1<u){s=Array(u);for(var c=0;c<u;c++)s[c]=arguments[c+2];a.children=s}return{$$typeof:n,type:e.type,key:i,ref:o,props:a,_owner:l}},t.createContext=function(e){return(e={$$typeof:s,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null}).Provider={$$typeof:l,_context:e},e.Consumer=e},t.createElement=E,t.createFactory=function(e){var t=E.bind(null,e);return t.type=e,t},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:u,render:e}},t.isValidElement=C,t.lazy=function(e){return{$$typeof:d,_payload:{_status:-1,_result:e},_init:A}},t.memo=function(e,t){return{$$typeof:f,type:e,compare:void 0===t?null:t}},t.startTransition=function(e){var t=O.transition;O.transition={};try{e()}finally{O.transition=t}},t.unstable_act=function(){throw Error("act(...) is not supported in production builds of React.")},t.useCallback=function(e,t){return T.current.useCallback(e,t)},t.useContext=function(e){return T.current.useContext(e)},t.useDebugValue=function(){},t.useDeferredValue=function(e){return T.current.useDeferredValue(e)},t.useEffect=function(e,t){return T.current.useEffect(e,t)},t.useId=function(){return T.current.useId()},t.useImperativeHandle=function(e,t,n){return T.current.useImperativeHandle(e,t,n)},t.useInsertionEffect=function(e,t){return T.current.useInsertionEffect(e,t)},t.useLayoutEffect=function(e,t){return T.current.useLayoutEffect(e,t)},t.useMemo=function(e,t){return T.current.useMemo(e,t)},t.useReducer=function(e,t,n){return T.current.useReducer(e,t,n)},t.useRef=function(e){return T.current.useRef(e)},t.useState=function(e){return T.current.useState(e)},t.useSyncExternalStore=function(e,t,n){return T.current.useSyncExternalStore(e,t,n)},t.useTransition=function(){return T.current.useTransition()},t.version="18.2.0"},791:function(e,t,n){"use strict";e.exports=n(117)},184:function(e,t,n){"use strict";e.exports=n(374)},813:function(e,t){"use strict";function n(e,t){var n=e.length;e.push(t);e:for(;0<n;){var r=n-1>>>1,a=e[r];if(!(0<i(a,t)))break e;e[r]=t,e[n]=a,n=r}}function r(e){return 0===e.length?null:e[0]}function a(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,a=e.length,o=a>>>1;r<o;){var l=2*(r+1)-1,s=e[l],u=l+1,c=e[u];if(0>i(s,n))u<a&&0>i(c,s)?(e[r]=c,e[u]=n,r=u):(e[r]=s,e[l]=n,r=l);else{if(!(u<a&&0>i(c,n)))break e;e[r]=c,e[u]=n,r=u}}}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 o=performance;t.unstable_now=function(){return o.now()}}else{var l=Date,s=l.now();t.unstable_now=function(){return l.now()-s}}var u=[],c=[],f=1,d=null,h=3,p=!1,m=!1,v=!1,g="function"===typeof setTimeout?setTimeout:null,y="function"===typeof clearTimeout?clearTimeout:null,b="undefined"!==typeof setImmediate?setImmediate:null;function w(e){for(var t=r(c);null!==t;){if(null===t.callback)a(c);else{if(!(t.startTime<=e))break;a(c),t.sortIndex=t.expirationTime,n(u,t)}t=r(c)}}function k(e){if(v=!1,w(e),!m)if(null!==r(u))m=!0,O(x);else{var t=r(c);null!==t&&z(k,t.startTime-e)}}function x(e,n){m=!1,v&&(v=!1,y(C),C=-1),p=!0;var i=h;try{for(w(n),d=r(u);null!==d&&(!(d.expirationTime>n)||e&&!R());){var o=d.callback;if("function"===typeof o){d.callback=null,h=d.priorityLevel;var l=o(d.expirationTime<=n);n=t.unstable_now(),"function"===typeof l?d.callback=l:d===r(u)&&a(u),w(n)}else a(u);d=r(u)}if(null!==d)var s=!0;else{var f=r(c);null!==f&&z(k,f.startTime-n),s=!1}return s}finally{d=null,h=i,p=!1}}"undefined"!==typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var _,S=!1,E=null,C=-1,j=5,N=-1;function R(){return!(t.unstable_now()-N<j)}function I(){if(null!==E){var e=t.unstable_now();N=e;var n=!0;try{n=E(!0,e)}finally{n?_():(S=!1,E=null)}}else S=!1}if("function"===typeof b)_=function(){b(I)};else if("undefined"!==typeof MessageChannel){var A=new MessageChannel,T=A.port2;A.port1.onmessage=I,_=function(){T.postMessage(null)}}else _=function(){g(I,0)};function O(e){E=e,S||(S=!0,_())}function z(e,n){C=g((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||p||(m=!0,O(x))},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"):j=0<e?Math.floor(1e3/e):5},t.unstable_getCurrentPriorityLevel=function(){return h},t.unstable_getFirstCallbackNode=function(){return r(u)},t.unstable_next=function(e){switch(h){case 1:case 2:case 3:var t=3;break;default:t=h}var n=h;h=t;try{return e()}finally{h=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=h;h=e;try{return t()}finally{h=n}},t.unstable_scheduleCallback=function(e,a,i){var o=t.unstable_now();switch("object"===typeof i&&null!==i?i="number"===typeof(i=i.delay)&&0<i?o+i:o:i=o,e){case 1:var l=-1;break;case 2:l=250;break;case 5:l=1073741823;break;case 4:l=1e4;break;default:l=5e3}return e={id:f++,callback:a,priorityLevel:e,startTime:i,expirationTime:l=i+l,sortIndex:-1},i>o?(e.sortIndex=i,n(c,e),null===r(u)&&e===r(c)&&(v?(y(C),C=-1):v=!0,z(k,i-o))):(e.sortIndex=l,n(u,e),m||p||(m=!0,O(x))),e},t.unstable_shouldYield=R,t.unstable_wrapCallback=function(e){var t=h;return function(){var n=h;h=t;try{return e.apply(this,arguments)}finally{h=n}}}},296:function(e,t,n){"use strict";e.exports=n(813)},845:function(e){"use strict";e.exports=function(e,t){if("string"!==typeof e||"string"!==typeof t)throw new TypeError("Expected the arguments to be of type `string`");if(""===t)return[e];var n=e.indexOf(t);return-1===n?[e]:[e.slice(0,n),e.slice(n+t.length)]}},499:function(e){"use strict";e.exports=function(e){return encodeURIComponent(e).replace(/[!'()*]/g,(function(e){return"%".concat(e.charCodeAt(0).toString(16).toUpperCase())}))}}},t={};function n(r){var a=t[r];if(void 0!==a)return a.exports;var i=t[r]={exports:{}};return e[r](i,i.exports,n),i.exports}n.m=e,n.d=function(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=function(e){return Promise.all(Object.keys(n.f).reduce((function(t,r){return n.f[r](e,t),t}),[]))},n.u=function(e){return"static/js/"+e+"."+{787:"ada1a5f8",911:"e40081a5",941:"0c0a870a",984:"b2865733"}[e]+".chunk.js"},n.miniCssF=function(e){},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},function(){var e={},t="botw-hundo-dupl:";n.l=function(r,a,i,o){if(e[r])e[r].push(a);else{var l,s;if(void 0!==i)for(var u=document.getElementsByTagName("script"),c=0;c<u.length;c++){var f=u[c];if(f.getAttribute("src")==r||f.getAttribute("data-webpack")==t+i){l=f;break}}l||(s=!0,(l=document.createElement("script")).charset="utf-8",l.timeout=120,n.nc&&l.setAttribute("nonce",n.nc),l.setAttribute("data-webpack",t+i),l.src=r),e[r]=[a];var d=function(t,n){l.onerror=l.onload=null,clearTimeout(h);var a=e[r];if(delete e[r],l.parentNode&&l.parentNode.removeChild(l),a&&a.forEach((function(e){return e(n)})),t)return t(n)},h=setTimeout(d.bind(null,void 0,{type:"timeout",target:l}),12e4);l.onerror=d.bind(null,l.onerror),l.onload=d.bind(null,l.onload),s&&document.head.appendChild(l)}}}(),n.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.p="/",function(){var e={179:0};n.f.j=function(t,r){var a=n.o(e,t)?e[t]:void 0;if(0!==a)if(a)r.push(a[2]);else{var i=new Promise((function(n,r){a=e[t]=[n,r]}));r.push(a[2]=i);var o=n.p+n.u(t),l=new Error;n.l(o,(function(r){if(n.o(e,t)&&(0!==(a=e[t])&&(e[t]=void 0),a)){var i=r&&("load"===r.type?"missing":r.type),o=r&&r.target&&r.target.src;l.message="Loading chunk "+t+" failed.\n("+i+": "+o+")",l.name="ChunkLoadError",l.type=i,l.request=o,a[1](l)}}),"chunk-"+t,t)}};var t=function(t,r){var a,i,o=r[0],l=r[1],s=r[2],u=0;if(o.some((function(t){return 0!==e[t]}))){for(a in l)n.o(l,a)&&(n.m[a]=l[a]);if(s)s(n)}for(t&&t(r);u<o.length;u++)i=o[u],n.o(e,i)&&e[i]&&e[i][0](),e[i]=0},r=self.webpackChunkbotw_hundo_dupl=self.webpackChunkbotw_hundo_dupl||[];r.forEach(t.bind(null,0)),r.push=t.bind(null,r.push.bind(r))}(),function(){"use strict";var e=n(791),t=n(250);function r(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 a(e,t){if(e){if("string"===typeof e)return r(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)?r(e,t):void 0}}function i(e){return function(e){if(Array.isArray(e))return r(e)}(e)||function(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||a(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 o(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){var r,a,i=[],o=!0,l=!1;try{for(n=n.call(e);!(o=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);o=!0);}catch(Rn){l=!0,a=Rn}finally{try{o||null==n.return||n.return()}finally{if(l)throw a}}return i}}(e,t)||a(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 l(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function s(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 u(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?s(Object(n),!0).forEach((function(t){l(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function c(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function f(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)}}function d(e,t,n){return t&&f(e.prototype,t),n&&f(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function h(e,t){return h=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},h(e,t)}function p(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&&h(e,t)}function m(e){return m=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},m(e)}function v(e){return v="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},v(e)}function g(e,t){if(t&&("object"===v(t)||"function"===typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function y(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(e){return!1}}();return function(){var n,r=m(e);if(t){var a=m(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return g(this,n)}}var b=function(e,t){var n=[e];return t.forEach((function(e){var t=e.stack,r=e.number;n.push(""+r),n.push(w(t))})),n.join(" ")},w=function(e){return e.item.id},k=function(e){var t=[];return e.forEach((function(e){for(var n=o(e.getStackAndSlotCount(),2),r=n[0],a=n[1],i=0;i<a;i++)t.push(r)})),t},x=function(e){return E(e,["get","cook","add","pickup","buy"])},_=function(e){return E(e,["remove","sell","eat","drop","with"])},S=function(e,t){return e.toLowerCase()===t},E=function(e,t){for(var n=0;n<t.length;n++)if(S(e,t[n]))return!0;return!1},C=function(){function e(){c(this,e)}return d(e,[{key:"getError",value:function(){}},{key:"execute",value:function(e){}}]),e}(),j=function(e){p(n,e);var t=y(n);function n(e){var r;return c(this,n),(r=t.call(this)).stacks=void 0,r.stacks=e,r}return d(n,[{key:"execute",value:function(e){e.initialize(k(this.stacks))}},{key:"getDisplayString",value:function(){return b("Initialize",this.stacks)}}]),n}(C),N=function(e){p(n,e);var t=y(n);function n(){return c(this,n),t.apply(this,arguments)}return d(n,[{key:"execute",value:function(e){e.save()}},{key:"getDisplayString",value:function(){return"Save"}}]),n}(C),R=function(e){p(n,e);var t=y(n);function n(e){var r;return c(this,n),(r=t.call(this)).name=void 0,r.name=e,r}return d(n,[{key:"execute",value:function(e){e.save(this.name)}},{key:"getDisplayString",value:function(){return"Save As ".concat(this.name)}}]),n}(C),I=function(e){p(n,e);var t=y(n);function n(e){var r;return c(this,n),(r=t.call(this)).name=void 0,r.name=e,r}return d(n,[{key:"execute",value:function(e){e.reload(this.name)}},{key:"getDisplayString",value:function(){return"Reload".concat(this.name?" ".concat(this.name):"")}}]),n}(C),A=function(e){p(n,e);var t=y(n);function n(e){var r;return c(this,n),(r=t.call(this)).name=void 0,r.name=e,r}return d(n,[{key:"execute",value:function(e){e.useSaveForNextReload(this.name)}},{key:"getDisplayString",value:function(){return"Use ".concat(this.name)}},{key:"getError",value:function(){return'This command is deprecated. Use "Reload '.concat(this.name,'" directly')}}]),n}(C),T=function(e){p(n,e);var t=y(n);function n(e){var r;return c(this,n),(r=t.call(this)).numToBreak=void 0,r.numToBreak=e,r}return d(n,[{key:"execute",value:function(e){e.breakSlots(this.numToBreak)}},{key:"getDisplayString",value:function(){return"Break ".concat(this.numToBreak," Slots")}}]),n}(C),O=function(e){p(n,e);var t=y(n);function n(e,r){var a;return c(this,n),(a=t.call(this))._verb=void 0,a.stacks=void 0,a._verb=e,a.stacks=r,a}return d(n,[{key:"execute",value:function(e){k(this.stacks).forEach((function(t){return e.obtain(t)}))}}]),n}(C),z=function(e){p(n,e);var t=y(n);function n(e,r,a){var i;return c(this,n),(i=t.call(this))._verb=void 0,i.stacks=void 0,i.slot=void 0,i._verb=e,i.stacks=r,i.slot=a,i}return d(n,[{key:"execute",value:function(e){var t=this;k(this.stacks).forEach((function(n){return e.remove(n,t.slot)}))}}]),n}(C),L=function(e){p(n,e);var t=y(n);function n(e){var r;return c(this,n),(r=t.call(this)).stacks=void 0,r.stacks=e,r}return d(n,[{key:"execute",value:function(e){k(this.stacks).forEach((function(t){e.remove(t,0),e.obtain(t)}))}},{key:"getDisplayString",value:function(){return b("D&P",this.stacks)}}]),n}(C),P=function(e){p(n,e);var t=y(n);function n(e,r,a){var i;return c(this,n),(i=t.call(this)).item=void 0,i.slot=void 0,i.noSlot=void 0,i.item=e,i.slot=r,i.noSlot=a,i}return d(n,[{key:"execute",value:function(e){e.equip(this.item,this.slot)}},{key:"getDisplayString",value:function(){var e=this.noSlot?"":" In Slot ".concat(this.slot+1);return"Equip ".concat(this.item).concat(e)}}]),n}(C),M=function(e){p(n,e);var t=y(n);function n(e,r,a){var i;return c(this,n),(i=t.call(this)).item=void 0,i.slot=void 0,i.noSlot=void 0,i.item=e,i.slot=r,i.noSlot=a,i}return d(n,[{key:"execute",value:function(e){e.unequip(this.item,this.slot)}},{key:"getDisplayString",value:function(){var e=this.noSlot?"":" In Slot ".concat(this.slot+1);return"Unequip ".concat(this.item).concat(e)}}]),n}(C),D=function(e){p(n,e);var t=y(n);function n(e){var r;return c(this,n),(r=t.call(this)).count=void 0,r.count=e,r}return d(n,[{key:"execute",value:function(e){e.shootArrow(this.count)}},{key:"getDisplayString",value:function(){return"Shoot ".concat(this.count," Arrow")}}]),n}(C),F=function(e){p(n,e);var t=y(n);function n(){return c(this,n),t.apply(this,arguments)}return d(n,[{key:"execute",value:function(e){e.closeGame()}},{key:"getDisplayString",value:function(){return"Close Game"}}]),n}(C),B=function(e){p(n,e);var t=y(n);function n(){return c(this,n),t.apply(this,arguments)}return d(n,[{key:"execute",value:function(e){e.syncGameDataWithPouch()}}]),n}(C),U=function(e){p(n,e);var t=y(n);function n(e){var r;return c(this,n),(r=t.call(this)).enter=void 0,r.enter=e,r}return d(n,[{key:"execute",value:function(e){e.setEventide(this.enter)}},{key:"getDisplayString",value:function(){return"".concat(this.enter?"Enter":"Exit"," Eventide")}}]),n}(C),H=function(e){p(n,e);var t=y(n);function n(e,r){var a;return c(this,n),(a=t.call(this)).text=void 0,a.error=void 0,a.text=e,a.error=r,a}return d(n,[{key:"getError",value:function(){return this.error}},{key:"execute",value:function(e){}},{key:"getDisplayString",value:function(){return this.text}}]),n}(C),W=function(e){p(n,e);var t=y(n);function n(){return c(this,n),t.apply(this,arguments)}return d(n,[{key:"execute",value:function(e){}},{key:"getError",value:function(){return"This command is currently not supported"}}]),n}(C);W.Op=5;var q=function(e){p(n,e);var t=y(n);function n(){return c(this,n),t.apply(this,arguments)}return d(n,[{key:"execute",value:function(e){}},{key:"getError",value:function(){return"This command is currently not supported"}}]),n}(C);function Z(){Z=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r="function"==typeof Symbol?Symbol:{},a=r.iterator||"@@iterator",i=r.asyncIterator||"@@asyncIterator",o=r.toStringTag||"@@toStringTag";function l(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(Rn){l=function(e,t,n){return e[t]=n}}function s(e,t,n,r){var a=t&&t.prototype instanceof f?t:f,i=Object.create(a.prototype),o=new S(r||[]);return i._invoke=function(e,t,n){var r="suspendedStart";return function(a,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===a)throw i;return C()}for(n.method=a,n.arg=i;;){var o=n.delegate;if(o){var l=k(o,n);if(l){if(l===c)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var s=u(e,t,n);if("normal"===s.type){if(r=n.done?"completed":"suspendedYield",s.arg===c)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(r="completed",n.method="throw",n.arg=s.arg)}}}(e,n,o),i}function u(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(Rn){return{type:"throw",arg:Rn}}}e.wrap=s;var c={};function f(){}function d(){}function h(){}var p={};l(p,a,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(E([])));g&&g!==t&&n.call(g,a)&&(p=g);var y=h.prototype=f.prototype=Object.create(p);function b(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function w(e,t){function r(a,i,o,l){var s=u(e[a],e,i);if("throw"!==s.type){var c=s.arg,f=c.value;return f&&"object"==v(f)&&n.call(f,"__await")?t.resolve(f.__await).then((function(e){r("next",e,o,l)}),(function(e){r("throw",e,o,l)})):t.resolve(f).then((function(e){c.value=e,o(c)}),(function(e){return r("throw",e,o,l)}))}l(s.arg)}var a;this._invoke=function(e,n){function i(){return new t((function(t,a){r(e,n,t,a)}))}return a=a?a.then(i,i):i()}}function k(e,t){var n=e.iterator[t.method];if(void 0===n){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,k(e,t),"throw"===t.method))return c;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return c}var r=u(n,e.iterator,t.arg);if("throw"===r.type)return t.method="throw",t.arg=r.arg,t.delegate=null,c;var a=r.arg;return a?a.done?(t[e.resultName]=a.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,c):a:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,c)}function x(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function _(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function S(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(x,this),this.reset(!0)}function E(e){if(e){var t=e[a];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,i=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return i.next=i}}return{next:C}}function C(){return{value:void 0,done:!0}}return d.prototype=h,l(y,"constructor",h),l(h,"constructor",d),d.displayName=l(h,o,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===d||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,l(e,o,"GeneratorFunction")),e.prototype=Object.create(y),e},e.awrap=function(e){return{__await:e}},b(w.prototype),l(w.prototype,i,(function(){return this})),e.AsyncIterator=w,e.async=function(t,n,r,a,i){void 0===i&&(i=Promise);var o=new w(s(t,n,r,a),i);return e.isGeneratorFunction(n)?o:o.next().then((function(e){return e.done?e.value:o.next()}))},b(y),l(y,o,"Generator"),l(y,a,(function(){return this})),l(y,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){for(;t.length;){var r=t.pop();if(r in e)return n.value=r,n.done=!1,n}return n.done=!0,n}},e.values=E,S.prototype={constructor:S,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(_),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return o.type="throw",o.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var a=this.tryEntries.length-1;a>=0;--a){var i=this.tryEntries[a],o=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var l=n.call(i,"catchLoc"),s=n.call(i,"finallyLoc");if(l&&s){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var a=this.tryEntries[r];if(a.tryLoc<=this.prev&&n.call(a,"finallyLoc")&&this.prev<a.finallyLoc){var i=a;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var o=i?i.completion:{};return o.type=e,o.arg=t,i?(this.method="next",this.next=i.finallyLoc,c):this.complete(o)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),c},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),_(n),c}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var a=r.arg;_(n)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:E(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),c}},e}function V(e,t,n,r,a,i,o){try{var l=e[i](o),s=l.value}catch(u){return void n(u)}l.done?t(s):Promise.resolve(s).then(r,a)}function $(e){return function(){var t=this,n=arguments;return new Promise((function(r,a){var i=e.apply(t,n);function o(e){V(i,r,a,o,l,"next",e)}function l(e){V(i,r,a,o,l,"throw",e)}o(void 0)}))}}q.Op=6;var G,Y,Q=n(184),K=function(e){var t=e.children;return(0,Q.jsxs)("div",{className:"SpecialScreen",style:{textAlign:"center",position:"absolute",top:0,bottom:0,left:0,right:0,backgroundColor:"#010101"},children:[(0,Q.jsx)("div",{style:{color:"#ffffff",fontSize:"40pt",position:"absolute",top:"30%",left:"calc( 50% - 40px )",right:"calc( 50% - 40px )",border:"2px solid #ffffff"},children:"!"}),(0,Q.jsx)("span",{style:{color:"#ffffff",lineHeight:"100vh",height:"100vh"},children:t})]})},X=performance?function(e,t){var n=performance.now();t();var r=performance.now()-n;console.log("".concat(e).concat(r.toPrecision(4),"ms"))}:function(e,t){return t()},J=function(e){var t=e.multiLine,n=e.hasError,r=e.children;return(0,Q.jsx)("div",{style:{textAlign:"center",position:"absolute",top:0,bottom:0,left:0,right:0,backgroundColor:"#262626"},children:(0,Q.jsx)("span",{style:{color:n?"#ee7777":"#00ffcc",lineHeight:t?"default":"100vh",height:"100vh"},children:r})})},ee=function(){function e(t,n,r){c(this,e),this.item=void 0,this.life=void 0,this.equipped=void 0,this.item=t,this.life=n,this.equipped=r}return d(e,[{key:"count",get:function(){return this.life}},{key:"durability",get:function(){return this.life/100}},{key:"modify",value:function(t){var n="item"in t?t.item:this.item,r=this.life;return"count"in t?r=t.count:"durability"in t&&(r=t.durability,r*=100),new e(n,r,"equipped"in t?!!t.equipped:this.equipped)}},{key:"modifyMeta",value:function(e){var t={};return"life"in e&&(t=u(u({},t),{},{count:e.life})),"equip"in e&&(t=u(u({},t),{},{equipped:e.equip})),this.modify(t)}},{key:"equals",value:function(e){return this.equalsExceptForEquipped(e)&&this.equipped===e.equipped}},{key:"equalsExceptForEquipped",value:function(e){return this.canStack(e)&&this.life===e.count}},{key:"canStack",value:function(e){return this.item===e.item}}]),e}(),te=function(e,t,n){return new ee(e,100*t,n)};!function(e){e[e.Weapon=0]="Weapon",e[e.Bow=1]="Bow",e[e.Arrow=2]="Arrow",e[e.Shield=3]="Shield",e[e.ArmorUpper=4]="ArmorUpper",e[e.ArmorMiddle=5]="ArmorMiddle",e[e.ArmorLower=6]="ArmorLower",e[e.Material=7]="Material",e[e.Food=8]="Food",e[e.Key=9]="Key",e[e.Flag=-1]="Flag"}(G||(G={})),function(e){e[e.Weapon=0]="Weapon",e[e.Bow=1]="Bow",e[e.Shield=3]="Shield",e[e.Armor=4]="Armor",e[e.Material=7]="Material",e[e.Food=8]="Food",e[e.Key=9]="Key",e[e.None=-1]="None"}(Y||(Y={}));var ne,re=function(){return[Y.Weapon,Y.Bow,Y.Shield,Y.Armor,Y.Material,Y.Food,Y.Key]},ae=function(e){switch(e){case G.Weapon:return Y.Weapon;case G.Bow:case G.Arrow:return Y.Bow;case G.Shield:return Y.Shield;case G.ArmorUpper:case G.ArmorMiddle:case G.ArmorLower:return Y.Armor;case G.Material:return Y.Material;case G.Food:return Y.Food;case G.Key:return Y.Key;default:return Y.None}},ie=(l(ne={},G.Weapon,0),l(ne,G.Bow,0),l(ne,G.Arrow,0),l(ne,G.Shield,0),l(ne,G.ArmorUpper,0),l(ne,G.ArmorMiddle,0),l(ne,G.ArmorLower,0),l(ne,G.Material,0),l(ne,G.Food,0),l(ne,G.Key,0),ne),oe=function(){function e(t,n,r,a,i,o,l){c(this,e),this.id=void 0,this.type=void 0,this.repeatable=void 0,this.stackable=void 0,this.sortOrder=-1,this.image=void 0,this.configuredAnimatedImage=void 0,this.defaultStackFactory=void 0,this.id=t,this.type=n,this.repeatable=r,this.stackable=a,this.image=i,this.configuredAnimatedImage=o,this.defaultStackFactory=l,n!==G.Flag&&(this.sortOrder=ie[n],ie[n]++)}return d(e,[{key:"tab",get:function(){return ae(this.type)}},{key:"animatedImage",get:function(){return this.configuredAnimatedImage||this.image}},{key:"createDefaultStack",value:function(){return this.defaultStackFactory?this.defaultStackFactory(this):new ee(this,1,!1)}}]),e}(),le={Slate:"SheikahSlate",Glider:"Paraglider",SpiritOrb:"SpiritOrb",Lotus:"FleetLotusSeeds",SilentPrincess:"SilentPrincess",Honey:"CourserBeeHoney",Acorn:"Acorn",FaroshScale:"FaroshsScale",FaroshClaw:"FaroshsClaw",FaroshHorn:"ShardOfFaroshsHorn",HeartyBass:"HeartyBass",Beetle:"EnergeticRhinoBeetle",Opal:"Opal",Diamond:"Diamond",Tail:"LizalfosTail",Spring:"AncientSpring",Shaft:"AncientShaft",Core:"AncientCore",Wood:"Wood",Rushroom:"Rushroom",Screw:"AncientScrew",HyruleBass:"HyruleBass",LizalfosHorn:"LizalfosHorn",LizalfosTalon:"LizalfosTalon",Weapon:"Weapon",Bow:"Bow",NormalArrow:"NormalArrow",FireArrow:"FireArrow",IceArrow:"IceArrow",ShockArrow:"ShockArrow",BombArrow:"BombArrow",AncientArrow:"AncientArrow",Shield:"Shield",Apple:"Apple",HylianShroom:"HylianShroom",SpicyPepper:"SpicyPepper",EnduraShroom:"EnduraShroom",HeartyRadish:"HeartyRadish",BigHeartyRadish:"BigHeartyRadish",Fairy:"Fairy",MasterSword:"MasterSword",ZoraArmor:"ZoraArmor"};function se(e){return e=(e=e.toLowerCase()).replace(/[\u30a1-\u30f6]/g,(function(e){return String.fromCharCode(e.charCodeAt(0)-96)}))}var ue=e.createContext({}),ce={},fe=function(t){var n=t.children,r=o((0,e.useState)(!1),2),a=r[0],i=r[1],l=o((0,e.useState)(null),2),s=l[0],u=l[1],c=o((0,e.useState)(null),2),f=c[0],d=c[1];(0,e.useEffect)((function(){var e=function(){var e=$(Z().mark((function e(){var t,n,r,a;return Z().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,de();case 3:t=e.sent,n=o(t,2),r=n[0],a=n[1],u(r),d(a),e.next=17;break;case 11:e.prev=11,e.t0=e.catch(0),console.error(e.t0),i(!0),u(null),d(null);case 17:case"end":return e.stop()}}),e,null,[[0,11]])})));return function(){return e.apply(this,arguments)}}();X("Load Item: ",(function(){e()}))}),[]);var h=o((0,e.useMemo)((function(){if(ce={},s&&f){return[function(e){return s[e]},function(e){return we(e,s,f,ce)},function(){return s}]}return[function(){},function(){},function(){return{}}]}),[s,f]),3),p=h[0],m=h[1],v=h[2];return s&&f?(0,Q.jsx)(ue.Provider,{value:{getItem:p,searchItem:m,getAllItems:v},children:n}):a?(0,Q.jsx)(K,{children:"An error has occured while loading items"}):(0,Q.jsx)(J,{children:"Loading items..."})},de=function(){var e=$(Z().mark((function e(){var t,r,a,i;return Z().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,n.e(984).then(n.bind(n,984));case 2:return t=e.sent,r=t.default,e.next=6,n.e(941).then(n.bind(n,941));case 6:return a=e.sent,i=a.default,e.abrupt("return",he(r,i));case 9:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),he=function(e,t){var n={},r={};return me(e,t,"weapon",G.Weapon,n,r),me(e,t,"bow",G.Bow,n,r),me(e,t,"arrow",G.Arrow,n,r),me(e,t,"shield",G.Shield,n,r),me(e,t,"armor",void 0,n,r),me(e,t,"material",G.Material,n,r),me(e,t,"food",G.Food,n,r),me(e,t,"key",G.Key,n,r),me(e,t,"flag",G.Flag,n,r),[n,r]},pe={stackable:!0,animated:!1,repeatable:!0},me=function(e,t,n,r,a,i){var o=e[n];o&&ve(o,r,t,a,i)},ve=function(e,t,n,r,a){var i=e.global||{};e.entries.forEach((function(e){var l,s;if("string"===typeof e)l=e,s={};else{var c=o(Object.entries(e)[0],2);l=c[0],s=c[1]}var f=t;"upper"===s.subtype?f=G.ArmorUpper:"middle"===s.subtype?f=G.ArmorMiddle:"lower"===s.subtype&&(f=G.ArmorLower);var d=u(u(u({},pe),i),s);ge(l,d,f,n,r,a)}))},ge=function(e,t,n,r,a,i){var l,s,u=o(be(e),2),c=u[0],f=u[1],d=ye(c,n,!1),h=t.animated?ye(c,n,!0):void 0,p=t.repeatable&&t.stackable,m=void 0;if(n===G.Weapon||n===G.Bow||n===G.Shield)if(void 0!==t.durability){var v=t.durability;m=function(e){return te(e,v,!1)}}else m=function(e){return te(e,10,!1)};var g=new oe(c,n,null===(l=t.repeatable)||void 0===l||l,null===p||void 0===p||p,d,h,m);a[c]=g,i[f]=c,null===r||void 0===r||null===(s=r[c])||void 0===s||s.forEach((function(e){return i[se(e)]=c}))},ye=function(e,t,n){var r;return r=ae(t)===Y.Armor?"Armor":G[t],"assets/img/".concat(r,"/").concat(e).concat(n?"Animated.webp":".png")},be=function(e){var t=e.indexOf(":");if(t<0)return[e,se(e)];var n=e.substring(0,t);return[n,se(n+e.substring(t+1))]},we=function(e,t,n,r){if(e){if(e in r)return r[e];var a=function(e,t){return e in le?t[le[e]].createDefaultStack():"SpeedFood"===e?t.SteamedFruit.createDefaultStack():"EnduraFood"===e?t.MushroomSkewer.createDefaultStack():void 0}(e,t);if(a)return r[e]=a,a;var i=ke(e,t,n);return r[e]=i,i}},ke=function(e,t,n){var r=t[e];if(r)return r.createDefaultStack();for(var a=e.replace(/(\++)$/,"*$1").split("*").map(se),i=Object.keys(n),o=function(e){var r=a[e];if(0===(i=i.filter((function(e){return e.includes(r)}))).length)return{v:void 0};if(1===i.length){var o=n[i[0]];return{v:t[o].createDefaultStack()}}},l=0;l<a.length;l++){var s=o(l);if("object"===typeof s)return s.v}var u={};i.forEach((function(e){u[e]=a.filter((function(t){return e.startsWith(t)})).length})),i.sort((function(e,t){var n=u[t]-u[e];return 0!==n?n:e.length-t.length}));var c=n[i[0]];return t[c].createDefaultStack()},xe=function(e){if(0===e.trim().length)return{};for(var t=e.toLowerCase().split(","),n={},r=0;r<t.length;r++){var a=t[r],i=a.indexOf("="),o=void 0,l=void 0;switch(-1===i?(o=a,l="true"):(o=a.substring(0,i),l=a.substring(i+1)),o=o.trim()){case"life":var s=parseInt(l.trim());if(!Number.isInteger(s))return"Life must be an integer: ".concat(l.trim());n.life=s;break;case"equip":var u="true"===l;n.equip=u;break;default:return"Invalid metadata name: ".concat(o)}}return n},_e=function(e){p(n,e);var t=y(n);function n(e){var r;return c(this,n),(r=t.call(this)).keyword=void 0,r.keyword=e,r}return d(n,[{key:"getError",value:function(){switch(this.keyword){case"initialize":return"Initialize X item1[meta] Y item2[meta] Z item3[meta] ...";case"save":return"Save (As <file name>)";case"reload":return"Reload (<file name>)";case"break":return"Break X Slots";case"d&p":case"dnp":case"dap":return"D&P X item1[meta] Y item2[meta] Z item3[meta] ...";case"equip":return"Equip item (In Slot X)";case"unequip":return"Unequip item (In Slot X)";case"shoot":return"Shoot X Arrow";case"close":return'"Close Game"?';case"exit":return"Exit Game|TOTS|Eventide";case"sync":return'"Sync GameData"?';case"enter":return"Enter TOTS|Eventide";case"sort":return"Sorting is currently not supported";case"init":return"Init GameData X item1[meta] Y item2[meta] Z item3[meta] ..."}return x(this.keyword)?"Add item, Add X item1[meta] Y item2[meta] Z item3[meta] ...":_(this.keyword)?"Remove item (From Slot X), Remove X item (From Slot Y), Remove X item1[meta] Y item2[meta] Z item3[meta] ...":"Unknown Command"}}]),n}(C),Se=function(e){p(n,e);var t=y(n);function n(e){var r;return c(this,n),(r=t.call(this)).stacks=void 0,r.stacks=e,r}return d(n,[{key:"execute",value:function(e){e.setGameData(k(this.stacks))}},{key:"getDisplayString",value:function(){return b("Init GameData",this.stacks)}}]),n}(C),Ee=function(e){p(n,e);var t=y(n);function n(e,r,a){var i;return c(this,n),(i=t.call(this)).itemTarget=void 0,i.slot=void 0,i.meta=void 0,i.itemTarget=e,i.slot=r,i.meta=a,i}return d(n,[{key:"execute",value:function(e){return e.setMetadata(this.itemTarget,this.slot,this.meta)}}]),n}(C),Ce=function(){function e(t,n){c(this,e),this.stack=void 0,this.number=void 0,this.stack=t,this.number=n}return d(e,[{key:"getStackAndSlotCount",value:function(){return this.stack.item.stackable?[this.stack.modify({count:this.number}),1]:[this.stack,this.number]}}]),e}(),je=function(e){if(1===e.length&&S(e[0],"save"))return new N;if(3===e.length&&S(e[0],"save")&&S(e[1],"as")){var t=e[2];return new R(t)}if(2===e.length&&S(e[0],"use")){var n=e[1];return new A(n)}if(1===e.length&&S(e[0],"reload"))return new I;if(2===e.length&&S(e[0],"reload"))return new I(e[1]);if(e.length>2&&S(e[0],"break")&&S(e[2],"slots")){var r=parseInt(e[1]);if(Number.isInteger(r))return new T(r)}return 2===e.length&&S(e[0],"sort")&&S(e[1],"key")?new W:2===e.length&&S(e[0],"sort")&&S(e[1],"material")?new q:2===e.length&&E(e[0],["close","exit"])&&S(e[1],"game")?new F:2===e.length&&S(e[0],"sync")&&S(e[1],"gamedata")?new B:2===e.length&&(S(e[0],"enter")||S(e[0],"exit"))&&(S(e[1],"eventide")||S(e[1],"tots"))?new U(S(e[0],"enter")):void 0},Ne=function(e,t,n){for(var r=[],a=t;a<e.length;){var i=Re(e[a]);if(void 0===i)return Ie(e[a]);a++;for(var o=[],l="",s=!1;a<e.length&&void 0===Re(e[a]);)"["===e[a]?s=!0:"]"===e[a]?s=!1:s?l+=e[a]:o.push(e[a]),a++;var u=n(o.join("*"));if(!u)return Ae(o.join(" "));var c=xe(l);if("string"===typeof c)return c;u=u.modifyMeta(c),r.push(new Ce(u,i))}return r},Re=function(e){if(S(e,"all"))return-1;var t=parseInt(e);return Number.isInteger(t)?t:void 0},Ie=function(e){return"Failed to parse number: ".concat(e)},Ae=function(e){return"Item not found: ".concat(e)};function Te(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=Te(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function Oe(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=Te(e))&&(r&&(r+=" "),r+=t);return r}var ze=function(t){var n=t.useListItem,r=t.isSelected,a=t.isContextSelected,i=t.isComment,o=t.isInvalid,l=t.onClick,s=t.onContextMenu,u=t.children,c=Oe("CommandItem",r&&"CommandItemSelected",a&&"CommandItemContextSelected",i&&"CommandItemComment",o&&!i&&"CommandItemInvalid"),f=(0,e.useCallback)((function(e){l(e.clientX,e.clientY)}),[l]),d=(0,e.useCallback)((function(e){s&&(s(e.clientX,e.clientY),e.preventDefault())}),[s]);return n?(0,Q.jsxs)("li",{className:c,onClick:f,onContextMenu:d,children:[u,"\xa0"]}):(0,Q.jsxs)("div",{className:c,onClick:f,onContextMenu:d,children:[u,"\xa0"]})},Le=n.p+"static/media/Background.0e120fe5fc51d2dee803.png",Pe=e.createContext((function(e){return e})),Me=new Set,De=function(t){var n=t.children,r=o((0,e.useState)(!1),2),a=r[0],i=r[1],l=o((0,e.useState)(null),2),s=l[0],u=l[1];(0,e.useEffect)((function(){var e=function(){var e=$(Z().mark((function e(){return Z().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.t0=u,e.next=4,Fe();case 4:e.t1=e.sent,(0,e.t0)(e.t1),e.next=13;break;case 8:e.prev=8,e.t2=e.catch(0),console.error(e.t2),i(!0),u(null);case 13:case"end":return e.stop()}}),e,null,[[0,8]])})));return function(){return e.apply(this,arguments)}}();X("Load Language: ",(function(){e()}))}),[]);var c=(0,e.useCallback)((function(e){if(!s)throw new Error("Translation function should not be supplied before lang map is loaded");return e in s?s[e]:(Me.has(e)||(console.warn("Unlocalized: ".concat(e)),Me.add(e)),e)}),[s]);return s?(0,Q.jsx)(Pe.Provider,{value:c,children:n}):a?(0,Q.jsx)(K,{children:"An error has occured while loading language"}):(0,Q.jsx)(J,{children:"Loading language..."})},Fe=function(){var e=$(Z().mark((function e(){var t,r,a,i;return Z().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,n.e(911).then(n.bind(n,911));case 2:for(i in t=e.sent,r=t.default,a={},r)Be(i,r[i],a);return e.abrupt("return",a);case 7:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),Be=function e(t,n,r){if("string"!==typeof n)for(var a in n)e(t+"."+a,n[a],r);else r[t]=n},Ue=function(t){var n=t.slot,r=n.image,a=n.descKey,i=n.count,o=n.durability,l=n.isBrokenSlot,s=n.isEquipped,u=(0,e.useContext)(Pe);return(0,Q.jsxs)("span",{className:Oe("ItemSlot",l&&"ItemSlotBroken",s&&"ItemSlotEquipped"),title:u(a),children:[(0,Q.jsx)("img",{className:Oe("ItemImage"),src:r}),void 0!==i&&(0,Q.jsx)("div",{className:"ItemLayer",children:(0,Q.jsxs)("span",{className:"ItemCount",children:["x",i]})}),void 0!==o&&(0,Q.jsx)("div",{className:"ItemLayer",children:(0,Q.jsx)("span",{className:"ItemDurability",children:o})})]})},He=function(e){var t=e.first,n=e.second;return(0,Q.jsxs)("span",{style:{display:"inline-block",width:72,height:144,verticalAlign:"top"},children:[(0,Q.jsx)("div",{style:{height:72,background:"url(".concat(Le,")")},children:t&&(0,Q.jsx)(Ue,u({},t))}),(0,Q.jsx)("div",{style:{height:72},children:n&&(0,Q.jsx)(Ue,u({},n))})]})},We=function(e){var t=e.title,n=e.children;return(0,Q.jsxs)(Q.Fragment,{children:[(0,Q.jsx)("h3",{className:"ListHeader",style:{height:40,borderBottom:"2px solid",boxSizing:"border-box"},children:t}),(0,Q.jsx)("div",{style:{height:"calc( 100% - 40px )",overflowY:"auto"},children:n})]})},qe=n.p+"static/media/InGame.54443a18479ad462e4fe.png",Ze=function(e){var t=e.slots;return(0,Q.jsx)(Q.Fragment,{children:t.map((function(e,t){return(0,Q.jsx)(Ue,{slot:e},t)}))})},Ve=function(e){var t=e.children;return(0,Q.jsx)("h2",{children:t})},$e=function(e){var t=e.connected,n=e.children;return(0,Q.jsx)("h3",{className:t?"Reference2":"Reference",children:n})},Ge=function(e){var t=e.children;return(0,Q.jsx)("h4",{className:"Reference",children:t})},Ye=function(e){var t=e.emphasized,n=e.children;return(0,Q.jsx)("p",{className:Oe("Reference",t&&"Example"),children:n})},Qe=function(e){var t=e.children;return(0,Q.jsx)("span",{className:"Example",children:t})},Ke=function(t){var n,r=t.command,a=t.commandError,i=t.editCommand,o=t.simulationState,l=t.overlaySave,s=t.isIconAnimated,u=(0,e.useMemo)((function(){return""===r||r.startsWith("#")?"":a}),[r,a]);return n=o.isCrashed()?(0,Q.jsx)("div",{style:{position:"relative",height:"100%"},children:(0,Q.jsxs)(K,{children:["The game has crashed (This is ",(0,Q.jsx)(Qe,{children:"not"})," a simulator bug)"]})}):l?(0,Q.jsx)("div",{style:{borderTop:"1px solid black",boxSizing:"border-box",height:"100%",overflowY:"auto",background:"url(".concat(qe,")"),backgroundPosition:"center",backgroundSize:"auto 100%",color:"white"},children:(0,Q.jsx)(We,{title:"Game Data / Visible Inventory (Count=".concat(o.inventoryMCount,")"),children:function(){for(var e=[],t=o.displayableGameData.getDisplayedSlots(s),n=o.displayablePouch.getDisplayedSlots(s),r=0;r<t.length&&r<n.length;r++)e.push((0,Q.jsx)(He,{first:{slot:t[r]},second:{slot:n[r]}},r));if(t.length>n.length)for(var a=n.length;a<t.length;a++)e.push((0,Q.jsx)(He,{first:{slot:t[a]}},a+n.length));else if(n.length>t.length)for(var i=t.length;i<n.length;i++)e.push((0,Q.jsx)(He,{second:{slot:n[i]}},i+t.length));return e}()})}):(0,Q.jsxs)(Q.Fragment,{children:[(0,Q.jsx)("div",{style:{borderTop:"1px solid black",background:"url(".concat(Le,")"),color:"white",borderBottom:"1px solid black",boxSizing:"border-box",height:"50%",overflowY:"auto"},children:(0,Q.jsx)(We,{title:"Game Data",children:(0,Q.jsx)(Ze,{slots:o.displayableGameData.getDisplayedSlots(s)})})}),(0,Q.jsx)("div",{style:{borderTop:"1px solid black",background:"url(".concat(qe,")"),backgroundPosition:"center",backgroundSize:"100%",boxSizing:"border-box",height:"50%",overflowY:"auto",color:"white"},children:(0,Q.jsx)(We,{title:"Visible Inventory (Count=".concat(o.inventoryMCount,")"),children:(0,Q.jsx)(Ze,{slots:o.displayablePouch.getDisplayedSlots(s)})})})]}),(0,Q.jsxs)("div",{id:"DisplayPane",style:{height:"100%"},children:[(0,Q.jsxs)("div",{style:{boxSizing:"border-box",height:"40px",position:"relative"},children:[(0,Q.jsx)("input",{id:"CommandInputField",className:Oe("Calamity","CommandInput",u&&"InputError"),style:{background:"url(".concat(Le,")"),width:"100%",height:"40px",paddingLeft:10,margin:0,boxSizing:"border-box",fontSize:"16pt",outline:"none"},value:r,placeholder:"Type command here...",spellCheck:!1,onChange:function(e){var t=e.target.value;i(t)}}),u&&(0,Q.jsx)("div",{style:{boxSizing:"border-box",border:"2px solid #ee0000",borderTop:"none",backgroundColor:"#333333bb",padding:3,color:"#eeeeee"},children:u})]}),(0,Q.jsx)("div",{style:{height:"calc( 100% - 40px )"},children:n})]})},Xe=function(e,t,n){var r=e.item,a=e.count,i=e.durability,o=e.equipped,l=r.type===G.Weapon||r.type===G.Bow||r.type===G.Shield,s=Number.isInteger(i)?i+"":i.toPrecision(4),u=!l&&(r.stackable?r.type===G.Arrow||a>0:a>1);return{image:n?r.animatedImage:r.image,descKey:"items.".concat(G[r.type],".").concat(r.id),count:u?a:void 0,durability:l?s:void 0,isEquipped:o,isBrokenSlot:t}},Je=function(){function e(t){c(this,e),this.internalSlots=[],this.internalSlots=t}return d(e,[{key:"getSlotsRef",value:function(){return this.internalSlots}},{key:"deepClone",value:function(){return new e(i(this.internalSlots))}},{key:"length",get:function(){return this.internalSlots.length}},{key:"sortItemByTab",value:function(e){null===e&&(e=this.internalSlots.length),e<=1||function(e,t){var n=e.map((function(e,t){return[e,t]}));n.sort((function(e,n){var r=t(e[0],n[0]);return 0!=r?r:e[1]-n[1]}));for(var r=0;r<e.length;r++)e[r]=n[r][0]}(this.internalSlots,(function(e,t){return e.item.type===G.Arrow&&t.item.type===G.Arrow?e.item.sortOrder-t.item.sortOrder:e.item.tab===t.item.tab&&e.item.tab===Y.Bow?e.item.type-t.item.type:e.item.tab-t.item.tab}))}},{key:"clearFirst",value:function(e){this.internalSlots.splice(0,e)}},{key:"addStackDirectly",value:function(e){return this.internalSlots.push(e),1}},{key:"addSlot",value:function(e,t){this.internalSlots.push(e),this.sortItemByTab(t)}},{key:"remove",value:function(e,t){for(var n=this.internalSlots.length,r=e.count,a=0,i=!1,o=0;o<this.internalSlots.length&&0!==r;o++){var l=this.internalSlots[o];if(l.canStack(e))if(i=!0,a<t)a++;else{if(l.item.type===G.Weapon||l.item.type===G.Bow||l.item.type===G.Shield){this.internalSlots[o]=l.modify({count:0});break}if(!(r<0||l.count<r)){this.internalSlots[o]=l.modify({count:l.count-r});break}r-=l.count,this.internalSlots[o]=l.modify({count:0})}}if(!i)for(var s=0;s<this.internalSlots.length&&r>0;s++){var u=this.internalSlots[s];if(u.item===e.item)if(i=!0,a<t)a++;else{if(!(u.count<r)){this.internalSlots[s]=u.modify({count:u.count-r});break}r-=u.count,this.internalSlots[s]=u.modify({count:0})}}return this.removeZeroStackExceptArrows(),n-this.internalSlots.length}},{key:"removeZeroStackExceptArrows",value:function(){this.internalSlots=this.internalSlots.filter((function(e){var t=e.item,n=e.count;return t.type===G.Arrow||n>0}))}},{key:"add",value:function(e,t,n){if(null===n&&(n=this.internalSlots.length),e.item.stackable){var r=!0;if(e.item.type===G.Arrow)-1===this.findFirstTabIndex(G.Arrow,n)&&(r=!1);for(var a=0;a<this.internalSlots.length;a++)if(this.internalSlots[a].canStack(e)){if(!t){var i=Math.min(999,this.internalSlots[a].count+e.count);return i!=this.internalSlots[a].count&&(this.internalSlots[a]=this.internalSlots[a].modify({count:i})),0}if(r&&this.internalSlots[a].count+e.count>999)return 0}}if(!e.item.repeatable){var o=this.findFirstTabIndex(e.item.type,n);if(-1!==o)for(;o<this.internalSlots.length&&this.internalSlots[o].item.type===e.item.type;o++)if(this.internalSlots[o].item===e.item)return 0}if(!t&&(e.item.type===G.Weapon||e.item.type===G.Bow||e.item.type===G.Shield||e.item.type===G.Arrow)){var l=this.internalSlots.filter((function(t){return t.item.type===e.item.type&&t.equipped})),s=0===l.length;if(s||e.item.type!==G.Arrow||(s=0===l.filter((function(e){return e.count>0})).length),s&&(e=e.modify({equipped:!0})).item.type===G.Arrow){var u=this.findFirstTabIndex(G.Arrow,n);if(-1!==u)for(;u<this.internalSlots.length&&this.internalSlots[u].item.type===G.Arrow;u++)this.internalSlots[u]=this.internalSlots[u].modify({equipped:!1})}}return this.addSlot(e,n+1),1}},{key:"equip",value:function(e,t,n){var r=0,a=this.findFirstTabIndex(e.type,n);if(-1!==a)for(;a<this.internalSlots.length&&this.internalSlots[a].item.tab===e.tab;a++)this.internalSlots[a].item.type===e.type&&this.modifySlot(a,{equipped:!1});for(var i=0;i<this.internalSlots.length;i++)if(this.internalSlots[i].item===e){if(r===t){this.modifySlot(i,{equipped:!0});break}r++}}},{key:"unequip",value:function(e,t){var n=0;if(e.type!==G.Arrow)for(var r=0;r<this.internalSlots.length;r++)if(this.internalSlots[r].item===e)if(t<0){if(this.internalSlots[r].equipped){this.modifySlot(r,{equipped:!1});break}}else{if(!(n<t)){this.modifySlot(r,{equipped:!1});break}n++}}},{key:"updateLife",value:function(e,t){if(!(t<0||t>=this.internalSlots.length)){var n=this.internalSlots[t].item.type,r=this.internalSlots[t].item.stackable,a=n===G.Material||n===G.Food,i=n===G.Arrow,o=n===G.Key&&r;!i&&(a||o)&&(e=Math.min(999,e)),this.modifySlot(t,{count:e})}}},{key:"shootArrow",value:function(e){var t=this.findLastEquippedSlot(G.Arrow);if(t<0)return-1;for(var n=this.internalSlots[t].item,r=0;r<this.internalSlots.length;r++)if(this.internalSlots[r].item===n)return this.modifySlot(r,{count:Math.max(0,this.internalSlots[r].count-e)}),r;return-1}},{key:"findLastEquippedSlot",value:function(e){for(var t=0,n=-1;t<this.internalSlots.length&&!(this.internalSlots[t].item.type>e+1);t++)this.internalSlots[t].equipped&&this.internalSlots[t].item.type===e&&(n=t);return n}},{key:"setMetadata",value:function(e,t,n){for(var r=0,a=0;a<this.internalSlots.length;a++){var i=this.internalSlots[a];if(i.item===e){if(!(r<t)){this.internalSlots[a]=i.modifyMeta(n);break}r++}}}},{key:"clearAllButKeyItems",value:function(){var e=this.internalSlots.filter((function(e){return e.item.type===G.Key})),t=this.internalSlots.length-e.length;return this.internalSlots=e,t}},{key:"findFirstTabIndex",value:function(e,t){var n=this,r=[],a=new Set;if(0!==t)for(var i=Y.None,l=function(e){var t=n.internalSlots[e].item.tab;t!=i&&(re().filter((function(e){return e<t})).forEach((function(e){!a.has(e)&&n.isTabDiscovered(e)&&(r.push([e,-1]),a.add(e))})),r.push([t,e]),a.add(t),i=t)},s=0;s<this.internalSlots.length;s++)l(s);else re().forEach((function(e){n.isTabDiscovered(e)&&r.push([e,-1])}));for(var u=ae(e),c=-1,f=0;f<r.length;f++){var d=o(r[f],2),h=d[0],p=d[1];if(h===u){c=p;break}}if(e===G.Arrow&&-1!==c)for(;c<this.internalSlots.length;c++){if(this.internalSlots[c].item.type>G.Arrow)return-1;if(this.internalSlots[c].item.type===G.Arrow)return c}return c}},{key:"isTabDiscovered",value:function(e){return!0}},{key:"modifySlot",value:function(e,t){this.internalSlots[e]=this.internalSlots[e].modify(t)}}]),e}(),et=function(){function e(t){c(this,e),this.slots=new Je([]),this.slots=t}return d(e,[{key:"deepClone",value:function(){return new e(this.slots.deepClone())}},{key:"syncWith",value:function(e){e.getCount()<=0?this.slots=new Je([]):this.slots=e.getSlots().deepClone()}},{key:"updateLife",value:function(e,t){this.slots.updateLife(e,t)}},{key:"addAllToPouchOnReload",value:function(e){this.slots.getSlotsRef().forEach((function(t){return e.addWhenReload(t)}))}},{key:"getDisplayedSlots",value:function(e){return this.slots.getSlotsRef().map((function(t){return Xe(t,!1,e)}))}}]),e}(),tt=function(){function e(t,n){c(this,e),this.slots=new Je([]),this.count=0,this.slots=t,this.count=n}return d(e,[{key:"deepClone",value:function(){return new e(this.slots.deepClone(),this.count)}},{key:"getDisplayedSlots",value:function(e){var t=this;return this.slots.getSlotsRef().map((function(n,r){return Xe(n,r>=t.count,e)}))}},{key:"getSlots",value:function(){return this.slots}},{key:"addDirectly",value:function(e){this.count+=this.slots.addStackDirectly(e)}},{key:"addWhenReload",value:function(e){var t=this.slots.add(e,!0,this.count);this.count+=t}},{key:"addInGame",value:function(e){var t=this.slots.add(e,!1,this.count);this.count+=t}},{key:"remove",value:function(e,t){var n=this.slots.remove(e,t);this.count-=n}},{key:"equip",value:function(e,t){this.slots.equip(e,t,this.count)}},{key:"unequip",value:function(e,t){this.slots.unequip(e,t)}},{key:"clearForReload",value:function(){this.count>0&&(this.slots.clearFirst(this.count),this.count=0)}},{key:"updateEquipmentDurability",value:function(e){var t=-1,n=-1,r=-1;this.slots.getSlotsRef().forEach((function(e,a){var i=e.item;if(e.equipped){var o=i.type;o===G.Weapon&&-1===t&&(t=a),o===G.Bow&&-1===n&&(n=a),o===G.Shield&&-1===r&&(r=a)}}));var a=this.slots.findLastEquippedSlot(G.Weapon);t>=0&&a>=0&&e.updateLife(this.slots.getSlotsRef()[a].count,t);var i=this.slots.findLastEquippedSlot(G.Bow);n>=0&&i>=0&&e.updateLife(this.slots.getSlotsRef()[i].count,n);var o=this.slots.findLastEquippedSlot(G.Shield);r>=0&&o>=0&&e.updateLife(this.slots.getSlotsRef()[o].count,r)}},{key:"shootArrow",value:function(e,t){var n=this.slots.shootArrow(e);if(n>=0){var r=this.slots.getSlotsRef()[n].count;t.updateLife(r,n)}}},{key:"setMetadata",value:function(e,t,n){this.slots.setMetadata(e,t,n)}},{key:"getCount",value:function(){return this.count}},{key:"modifyCount",value:function(e){this.count+=e}},{key:"resetCount",value:function(){this.count=this.slots.length}},{key:"clearForEventide",value:function(){this.count-=this.slots.clearAllButKeyItems()}}]),e}(),nt=function(){function e(t,n,r,a){c(this,e),this.gameData=void 0,this.manualSave=void 0,this.namedSaves={},this.pouch=void 0,this.nextReloadName=void 0,this.isOnEventide=!1,this.crashed=!1,this.gameData=t,this.manualSave=n,this.namedSaves=r,this.pouch=a}return d(e,[{key:"deepClone",value:function(){var t={};for(var n in this.namedSaves)t[n]=this.namedSaves[n].deepClone();var r=new e(this.gameData.deepClone(),this.manualSave?this.manualSave.deepClone():null,t,this.pouch.deepClone());return r.nextReloadName=this.nextReloadName,r.isOnEventide=this.isOnEventide,r.crashed=this.crashed,r}},{key:"executeCommand",value:function(e){this.crashed=!1,e.execute(this),this.shouldCrash()&&(this.closeGame(),this.crashed=!0)}},{key:"initialize",value:function(e){var t=this;this.pouch=new tt(new Je([]),0),e.forEach((function(e){return t.pouch.addDirectly(e)})),this.gameData.syncWith(this.pouch)}},{key:"setGameData",value:function(e){this.gameData=new et(new Je(i(e)))}},{key:"save",value:function(e){e?this.namedSaves[e]=this.gameData.deepClone():this.manualSave=this.gameData.deepClone()}},{key:"reload",value:function(e){if(e)e in this.namedSaves&&this.reloadFrom(this.namedSaves[e]);else if(this.nextReloadName)this.nextReloadName in this.namedSaves&&this.reloadFrom(this.namedSaves[this.nextReloadName]);else{var t=this.manualSave;t&&this.reloadFrom(t)}}},{key:"reloadFrom",value:function(e){this.gameData=e.deepClone(),this.pouch.clearForReload(),this.gameData.addAllToPouchOnReload(this.pouch),this.pouch.updateEquipmentDurability(this.gameData),this.isOnEventide=!1}},{key:"useSaveForNextReload",value:function(e){this.nextReloadName=e}},{key:"breakSlots",value:function(e){this.pouch.modifyCount(-e)}},{key:"obtain",value:function(e){this.pouch.addInGame(e),this.syncGameDataWithPouch()}},{key:"remove",value:function(e,t){this.pouch.remove(e,t),this.syncGameDataWithPouch()}},{key:"equip",value:function(e,t){this.pouch.equip(e,t),this.syncGameDataWithPouch()}},{key:"unequip",value:function(e,t){this.pouch.unequip(e,t),this.syncGameDataWithPouch()}},{key:"shootArrow",value:function(e){this.pouch.shootArrow(e,this.gameData)}},{key:"setMetadata",value:function(e,t,n){this.pouch.setMetadata(e,t,n),this.syncGameDataWithPouch()}},{key:"closeGame",value:function(){this.pouch=new tt(new Je([]),0),this.gameData=new et(new Je([])),this.isOnEventide=!1}},{key:"setEventide",value:function(e){this.isOnEventide!==e&&(e?this.pouch.clearForEventide():this.reloadFrom(this.gameData),this.isOnEventide=e)}},{key:"syncGameDataWithPouch",value:function(){this.isOnEventide||this.gameData.syncWith(this.pouch)}},{key:"shouldCrash",value:function(){return this.pouch.getSlots().length>420}},{key:"displayableGameData",get:function(){return this.gameData}},{key:"displayablePouch",get:function(){return this.pouch}},{key:"inventoryMCount",get:function(){return this.pouch.getCount()}},{key:"isCrashed",value:function(){return this.crashed}},{key:"getManualSave",value:function(){return this.manualSave}},{key:"getNamedSaves",value:function(){return this.namedSaves}}]),e}(),rt=e.memo((function(){return(0,Q.jsx)("div",{className:"OtherPage",children:(0,Q.jsx)(We,{title:"Command Reference",children:(0,Q.jsxs)("div",{className:"OtherPageContent",children:[(0,Q.jsx)(Ve,{children:"Item Syntax"}),(0,Q.jsxs)(Ye,{children:["Item are specified by using ",(0,Q.jsx)(Qe,{children:"search keys"})," and ",(0,Q.jsx)(Qe,{children:"metadata"}),"."]}),(0,Q.jsx)($e,{children:"Search Keys"}),(0,Q.jsxs)(Ye,{children:["Search keys are used to find the item. For example, in the command ",(0,Q.jsx)(Qe,{children:'"Add 1 master sword"'}),",",(0,Q.jsx)(Qe,{children:"1"})," specifies the count, and ",(0,Q.jsx)(Qe,{children:"master sword"}),' are 2 search keys to locate the item. Search keys are designed to "just work", but they sometimes find the wrong item. In this case you can add more keys to narrow the search. For example, ',(0,Q.jsx)(Qe,{children:"shroom"})," will match ",(0,Q.jsx)(Qe,{children:"Rushroom"}),", but ",(0,Q.jsx)(Qe,{children:"shroom hy"})," will match ",(0,Q.jsx)(Qe,{children:"HylianShroom"}),". Another example, ",(0,Q.jsx)(Qe,{children:"hammer"})," will match ",(0,Q.jsx)(Qe,{children:"IronSledgeHammer"}),", but ",(0,Q.jsx)(Qe,{children:"spr ham"})," will match ",(0,Q.jsx)(Qe,{children:"SpringLoadedHammer"})]}),(0,Q.jsxs)(Ye,{children:["In certain commands like ",(0,Q.jsx)(Qe,{children:"Equip"}),', you can only use 1 search key. In this case, you can use "*" to combine search keys into 1. For example, ',(0,Q.jsx)(Qe,{children:"snow*head"})," is one search key that functions like ",(0,Q.jsx)(Qe,{children:"snow head"}),", which will give you the snowquill headdress"]}),(0,Q.jsx)(Ye,{children:"The order of the keys doesn't matter and they are case-insensitive."}),(0,Q.jsx)($e,{children:"Number of Items"}),(0,Q.jsxs)(Ye,{children:["When specifying number of items, you can use an integer or ",(0,Q.jsx)(Qe,{children:"all"}),", which is equivalent to -1. When using -1 as the count in Remove commands, it will remove all items."]}),(0,Q.jsx)($e,{children:"Metadata"}),(0,Q.jsxs)(Ye,{children:["Metadata is used to specify extra information. The syntax is ",(0,Q.jsx)(Qe,{children:"[key1=value1,key2=value2,...]"}),". Metadata is not available in all commands. If you see ",(0,Q.jsx)(Qe,{children:"item[meta]"}),", then it's supported in that particular command."]}),(0,Q.jsx)(Ye,{children:"Here is a list of available metadata. More will be added as they are implemented in the future"}),(0,Q.jsx)(Ge,{children:"life (integer)"}),(0,Q.jsx)(Ye,{children:"Used to specify stack size or durability"}),(0,Q.jsx)(Ye,{emphasized:!0,children:"Example: hammer[life=300] makes a hammer with 3 durability"}),(0,Q.jsx)(Ge,{children:"equip (boolean)"}),(0,Q.jsx)(Ye,{children:"Used to specify if a slot is equipped"}),(0,Q.jsx)(Ye,{emphasized:!0,children:"Example: hammer[equip] makes the hammer equipped. [equip] and [equip=true] are the same"}),(0,Q.jsx)(Ve,{children:"Command List"}),(0,Q.jsx)(Ye,{children:"This is a list of available commands. All commands and items are case-insensitive"}),(0,Q.jsx)($e,{children:"Initialize"}),(0,Q.jsx)($e,{connected:!0,children:"Initialize X item1[meta] Y item2[meta] Z item3[meta] ..."}),(0,Q.jsx)(Ge,{children:"Used for initializing inventory before simulation"}),(0,Q.jsx)(Ye,{children:"Fully resets the inventory by clearing all items and set Count to 0, then forcefully write the item list to inventory. This would reset any broken slot you already have, and any in-game checks that happen when adding items are disabled. For example, the items will appear in the order you specify, not in the in-game tab order"}),(0,Q.jsx)(Ye,{children:"If you specify count > 1 for unstackable items like weapon or sheika slate, multiple of that item would be added. Game Data will be synced with Visible Inventory after the reset"}),(0,Q.jsx)(Ye,{children:"If you don't specify any item, it will make an empty inventory"}),(0,Q.jsx)(Ye,{children:"Note that this will not clear saves. You can use this command to initialize multiple saves"}),(0,Q.jsx)(Ye,{emphasized:!0,children:"Example: Initialize 1 Apple 2 Axe 3 Slate 4 SpiritOrb"}),(0,Q.jsx)("h3",{className:"Reference",children:"Save"}),(0,Q.jsx)("h3",{className:"Reference2",children:"Save As NAME"}),(0,Q.jsx)("h4",{className:"Reference",children:"Simulates a hard save or auto save action"}),(0,Q.jsx)("p",{className:"Reference",children:"Writes Game Data to the corresponding save slot. The auto saves are specified by NAME. You can have as many auto saves as you want in the simulator."}),(0,Q.jsx)("p",{className:"Reference",children:"You cannot save on Eventide/ToTS. However, the simulator does not enforce that."}),(0,Q.jsx)("p",{className:"Reference Example",children:"Example 1: Save"}),(0,Q.jsx)("p",{className:"Reference Example",children:"Example 2: Save As MySave"}),(0,Q.jsx)("p",{className:"Reference",children:'Example 1 will save to the manual save slot, while example 2 will save to the slot named "MySave". There cannot be spaces in the name. If "MySave" doesn\'t exist, a new slot is created'}),(0,Q.jsx)("h3",{className:"Reference",children:"Reload (NAME)"}),(0,Q.jsx)("h4",{className:"Reference",children:"Simulates reloading a save"}),(0,Q.jsx)("p",{className:"Reference",children:'First, reads Game Data from the corresponding save slot. If NAME is not given, the manual save is used unless "Use" commands are used before this (see below). If NAME is given, the corresponding save slot with that name is used'}),(0,Q.jsx)("p",{className:"Reference",children:"After that, the first Count items in the visible inventory is removed, and Count is decreased accordingly. Then, each item slot in the Game Data is added to the inventory."}),(0,Q.jsx)("p",{className:"Reference Example",children:"Example 1: Reload"}),(0,Q.jsx)("p",{className:"Reference Example",children:"Example 2: Reload MySave"}),(0,Q.jsx)("h3",{className:"Reference",children:"Break X Slots"}),(0,Q.jsx)("h4",{className:"Reference",children:"Simulate making X broken slots with hold smuggle glitch"}),(0,Q.jsx)("p",{className:"Reference",children:"Decrease inventory Count by X"}),(0,Q.jsx)("p",{className:"Reference",children:"This command does not automatically simulate the hold smuggle and sell process. It just changes count (i.e. make broken slots) with magic."}),(0,Q.jsx)("p",{className:"Reference Example",children:"Example: Break 4 Slots"}),(0,Q.jsx)("h3",{className:"Reference",children:"Get/Add/Cook/Pickup/Buy item"}),(0,Q.jsx)("h3",{className:"Reference2",children:"Get/Add/Cook/Pickup/Buy X item1[meta] Y item2[meta] Z item3[meta] ..."}),(0,Q.jsx)("h4",{className:"Reference",children:"Simulate obtaining items in game"}),(0,Q.jsx)("p",{className:"Reference",children:"Add the item(s) to visible inventory. Sync with Game Data unless you are on Eventide or inside TOTS"}),(0,Q.jsx)("p",{className:"Reference",children:"Like in game, you won't be able to obtain multiple unstackable key items, or multiple master sword in this way. If a stackable item is at 999 or more when you invoke this command, the count is set to 999 (not fully accurate since you won't be able to pick up more items in game)."}),(0,Q.jsx)("p",{className:"Reference",children:"If you specify a count for unstackable items, they are added in different slots as if you pick them up in game, one after another."}),(0,Q.jsx)("p",{className:"Reference",children:"Try to avoid plural forms as they often make search fail"}),(0,Q.jsx)("p",{className:"Reference Example",children:"Example 1: Add Apple"}),(0,Q.jsx)("p",{className:"Reference Example",children:"Example 2: Get 10 Apple"}),(0,Q.jsx)("p",{className:"Reference Example",children:"Example 3: Pickup 10 Apple 5 Diamond 1 Slate 5 MasterSword[life=700]"}),(0,Q.jsx)("h3",{className:"Reference",children:"With/Remove/Sell/Eat/Drop item"}),(0,Q.jsx)("h3",{className:"Reference2",children:"With/Remove/Sell/Eat/Drop item From Slot Y"}),(0,Q.jsx)("h3",{className:"Reference2",children:"With/Remove/Sell/Eat/Drop X item From Slot Y"}),(0,Q.jsx)("h3",{className:"Reference2",children:"With/Remove/Sell/Eat/Drop X item1[meta] Y item2[meta] Z item3[meta] ..."}),(0,Q.jsx)("h4",{className:"Reference",children:"Simulate removing items in game"}),(0,Q.jsx)("p",{className:"Reference",children:"Remove the item(s) to visible inventory. Sync with Game Data unless you are on Eventide or inside TOTS"}),(0,Q.jsx)("p",{className:"Reference",children:"When number of item is not specified, it defaults to 1. Up to X items will be removed from inventory, even when they span multiple slots. If X > total number of items in inventory, all of them will be removed."}),(0,Q.jsx)("p",{className:"Reference",children:"When slot is specified, it starts removing from slot X (slot 1 is the leftmost slot with that item, slot 2 is the second leftmost slot with that item)."}),(0,Q.jsx)(Ye,{children:"When removing items, the simulator will try to match the stack exactly, including metadata. If no items are found this way, the simulator will then try to match an item while ignoring the metadata"}),(0,Q.jsx)("p",{className:"Reference",children:"Try to avoid plural forms as they often make search fail"}),(0,Q.jsx)("p",{className:"Reference Example",children:"Example 1: Remove Apple"}),(0,Q.jsx)("p",{className:"Reference Example",children:"Example 2: Drop 10 Diamond"}),(0,Q.jsx)("p",{className:"Reference Example",children:"Example 3: Sell 10 Apple 5 Diamond"}),(0,Q.jsx)("p",{className:"Reference Example",children:"Example 4: Sell 5 Apple From Slot 3"}),(0,Q.jsx)("h3",{className:"Reference",children:"D&P X item1[meta] Y item2[meta] Z item3[meta] ..."}),(0,Q.jsx)("h4",{className:"Reference",children:"Shortcut for drop and pick up, for sorting inventory"}),(0,Q.jsx)("p",{className:"Reference",children:"This command drops and pick up each item stack in the specified order. You can also repeat items if you are combining more than 2 slots."}),(0,Q.jsx)("p",{className:"Reference",children:"You can only drop from slot 1 with this shortcut."}),(0,Q.jsx)("p",{className:"Reference Example",children:"Example 1: D&P 5 Diamond"}),(0,Q.jsx)("p",{className:"Reference Example",children:"Example 2: D&P 20 Shaft 5 Diamond"}),(0,Q.jsx)("p",{className:"Reference Example",children:"Example 3: D&P 5 Diamond 10 Diamond"}),(0,Q.jsx)("h3",{className:"Reference",children:"Equip item"}),(0,Q.jsx)("h3",{className:"Reference2",children:"Equip item In Slot X"}),(0,Q.jsx)("h4",{className:"Reference",children:"Simulates equipping something"}),(0,Q.jsx)("p",{className:"Reference",children:"When equipping an item, all other item of the same type in the first tab is unequipped, then the item selected is equipped."}),(0,Q.jsx)("p",{className:"Reference",children:"Slot can be used if you have multiple of the same item. When slot is not specified, the leftmost item will be equipped. Note that you can use this command to equip something that is already equipped, which is not possible in game. You can also equip unequippable items like materials, but it is not meaningful"}),(0,Q.jsx)(Ye,{emphasized:!0,children:"Note that you cannot specify metadata. If you need to equip a specific item among others of the same type, use slot to specify which"}),(0,Q.jsx)("p",{className:"Reference Example",children:"Example 1: Equip Weapon"}),(0,Q.jsx)("p",{className:"Reference Example",children:"Example 2: Equip Weapon In Slot 3"}),(0,Q.jsx)("h3",{className:"Reference",children:"Unequip item"}),(0,Q.jsx)("h3",{className:"Reference2",children:"Unequip item In Slot X"}),(0,Q.jsx)("h4",{className:"Reference",children:"Simulates unequipping something"}),(0,Q.jsx)("p",{className:"Reference",children:"When unequipping an item, only the selected item is unequipped."}),(0,Q.jsx)("p",{className:"Reference",children:"Slot can be used if you have multiple of the same item. When slot is not specified, the leftmost equipped item will be unequipped. Note that you can use this command to unequip something that is already unequipped, which is useless. You cannot unequip arrows."}),(0,Q.jsx)(Ye,{emphasized:!0,children:"Note that you cannot specify metadata. If you need to equip a specific item among others of the same type, use slot to specify which"}),(0,Q.jsx)("p",{className:"Reference Example",children:"Example 1: Unequip Shield"}),(0,Q.jsx)("p",{className:"Reference Example",children:"Example 2: Unequip Shield In Slot 5"}),(0,Q.jsx)("h3",{className:"Reference",children:"Close Game"}),(0,Q.jsx)("h4",{className:"Reference",children:"Simulates closing the game and restarting"}),(0,Q.jsx)("p",{className:"Reference",children:"When closing the game, Visible Inventory and Game Data are erased"}),(0,Q.jsx)("p",{className:"Reference Example",children:"Example: Close Game"}),(0,Q.jsx)($e,{children:"Sync GameData"}),(0,Q.jsx)(Ge,{children:"Copy Visible Inventory to Game Data"}),(0,Q.jsx)(Ye,{children:"Certain actions in game will cause gamedata be synced with visible inventory, including but not limited to: open and close inventory, dpad quick menu, drop items."}),(0,Q.jsx)(Ye,{children:"Furthermore, if visible inventory has Count = 0, Game Data will be empty."}),(0,Q.jsx)(Ye,{emphasized:!0,children:"Example: Sync GameData"}),(0,Q.jsx)($e,{children:"Init GameData"}),(0,Q.jsx)($e,{connected:!0,children:"Init GameData X item1[meta] Y item2[meta] Z item3[meta] ..."}),(0,Q.jsx)(Ge,{children:"Used for forcing the game data to be desynced with visible inventory in simulation"}),(0,Q.jsxs)(Ye,{children:["Similar to ",(0,Q.jsx)(Qe,{children:"Initialize"}),", this command sets up game data with items in the specified order. However, this command does not change visible inventory. This can be used to set up an initial state where Game Data is desynced."]}),(0,Q.jsx)(Ye,{emphasized:!0,children:"Example: Init GameData 1 Apple 2 Axe 3 Slate 4 SpiritOrb"}),(0,Q.jsx)("h3",{className:"Reference",children:"Shoot X Arrow"}),(0,Q.jsx)("h4",{className:"Reference",children:"Simulates shooting arrow without opening inventory"}),(0,Q.jsx)("p",{className:"Reference",children:"When reloading a save with desynced game data, the equipped weapon/bow/shield are automatically corrupted, but not the arrows. To corrupt the equipped arrow slot, you need to shoot an arrow."}),(0,Q.jsxs)("p",{className:"Reference",children:["This command does not let you select which arrow to shoot. When you reload a save, Link should have the last equipped arrow slot equipped in the overworld.",(0,Q.jsx)("span",{className:"Example",children:"[needs confirmation]"})]}),(0,Q.jsx)("p",{className:"Reference Example",children:"Example: Shoot 1 Arrow"}),(0,Q.jsx)("h3",{className:"Reference",children:"Enter/Exit Eventide"}),(0,Q.jsx)("h3",{className:"Reference2",children:"Enter/Exit TOTS"}),(0,Q.jsx)("h4",{className:"Reference",children:"Simulates entering/exiting Eventide or Trial of the Sword"}),(0,Q.jsx)("p",{className:"Reference",children:"When entering Eventide or TotS, the entire inventory is cleared except for key items regardless of inventory count. While the challenge is active, none of the inventory changes are synced to game data."}),(0,Q.jsx)("p",{className:"Reference",children:"When exiting the challenge, the game reloads the game data as if reloading a save"}),(0,Q.jsx)("p",{className:"Reference Example",children:"Example: Enter Eventide"}),(0,Q.jsx)($e,{children:"Write [meta] To item"}),(0,Q.jsx)($e,{connected:!0,children:"Write [meta] To item In Slot X"}),(0,Q.jsx)(Ge,{children:"Change the metadata of item"}),(0,Q.jsx)(Ye,{children:"This can be used to modify durability on weapon or count on items. This will sync inventory to game data."}),(0,Q.jsx)(Ye,{children:"if you write 0 to life, it will not cause the slot to be removed"}),(0,Q.jsx)(Ye,{emphasized:!0,children:"Example: Write [life=1000] To pot lid"}),(0,Q.jsx)(Ye,{emphasized:!0,children:"Example: Write [life=1000] To pot lid In Slot 3"})]})})})})),at="object"===typeof window&&window.window===window?window:"object"===typeof window.self&&window.self.self===window.self?window.self:"object"===typeof window.global&&window.global.global===window.global?window.global:void 0;function it(e,t,n){var r=new XMLHttpRequest;r.open("GET",e),r.responseType="blob",r.onload=function(){ut(r.response,t,n)},r.onerror=function(){console.error("could not download file")},r.send()}function ot(e){var t=new XMLHttpRequest;t.open("HEAD",e,!1);try{t.send()}catch(n){}return t.status>=200&&t.status<=299}function lt(e){try{e.dispatchEvent(new MouseEvent("click"))}catch(n){var t=document.createEvent("MouseEvents");t.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),e.dispatchEvent(t)}}var st=at.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),ut=at.saveAs||("object"!==typeof window||window!==at?function(){}:"download"in HTMLAnchorElement.prototype&&!st?function(e,t,n){var r=at.URL||at.webkitURL,a=document.createElement("a");t=t||e.name||"download",a.download=t,a.rel="noopener","string"===typeof e?(a.href=e,a.origin!==window.location.origin?ot(a.href)?it(e,t,n):lt(a,a.target="_blank"):lt(a)):(a.href=r.createObjectURL(e),setTimeout((function(){r.revokeObjectURL(a.href)}),4e4),setTimeout((function(){lt(a)}),0))}:"msSaveOrOpenBlob"in navigator?function(e,t,n){if(t=t||e.name||"download","string"===typeof e)if(ot(e))it(e,t,n);else{var r=document.createElement("a");r.href=e,r.target="_blank",setTimeout((function(){lt(r)}))}else navigator.msSaveOrOpenBlob(function(e,t){return"undefined"===typeof t?t={autoBom:!1}:"object"!==typeof t&&(console.error("Deprecated: Expected third argument to be a object"),t={autoBom:!t}),t.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(e.type)?new Blob([String.fromCharCode(65279),e],{type:e.type}):e}(e,n),t)}:function(e,t,n,r){if((r=r||window.open("","_blank"))&&(r.document.title=r.document.body.innerText="downloading..."),"string"===typeof e)return it(e,t,n);var a="application/octet-stream"===e.type,i=/constructor/i.test(at.HTMLElement)||at.safari,o=/CriOS\/[\d]+/.test(navigator.userAgent);if((o||a&&i||st)&&"undefined"!==typeof FileReader){var l=new FileReader;l.onloadend=function(){var e=l.result;e=o?e:e.replace(/^data:[^;]*;/,"data:attachment/file;"),r?r.location.href=e:window.location=e,r=null},l.readAsDataURL(e)}else{var s=at.URL||at.webkitURL,u=s.createObjectURL(e);r?r.location=u:window.location.href=u,r=null,setTimeout((function(){s.revokeObjectURL(u)}),4e4)}}),ct=ut;function ft(e){for(var t=e.length;--t>=0;)e[t]=0}var dt=256,ht=286,pt=30,mt=15,vt=new Uint8Array([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0]),gt=new Uint8Array([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13]),yt=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7]),bt=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),wt=new Array(576);ft(wt);var kt=new Array(60);ft(kt);var xt=new Array(512);ft(xt);var _t=new Array(256);ft(_t);var St=new Array(29);ft(St);var Et,Ct,jt,Nt=new Array(pt);function Rt(e,t,n,r,a){this.static_tree=e,this.extra_bits=t,this.extra_base=n,this.elems=r,this.max_length=a,this.has_stree=e&&e.length}function It(e,t){this.dyn_tree=e,this.max_code=0,this.stat_desc=t}ft(Nt);var At=function(e){return e<256?xt[e]:xt[256+(e>>>7)]},Tt=function(e,t){e.pending_buf[e.pending++]=255&t,e.pending_buf[e.pending++]=t>>>8&255},Ot=function(e,t,n){e.bi_valid>16-n?(e.bi_buf|=t<<e.bi_valid&65535,Tt(e,e.bi_buf),e.bi_buf=t>>16-e.bi_valid,e.bi_valid+=n-16):(e.bi_buf|=t<<e.bi_valid&65535,e.bi_valid+=n)},zt=function(e,t,n){Ot(e,n[2*t],n[2*t+1])},Lt=function(e,t){var n=0;do{n|=1&e,e>>>=1,n<<=1}while(--t>0);return n>>>1},Pt=function(e,t,n){var r,a,i=new Array(16),o=0;for(r=1;r<=mt;r++)i[r]=o=o+n[r-1]<<1;for(a=0;a<=t;a++){var l=e[2*a+1];0!==l&&(e[2*a]=Lt(i[l]++,l))}},Mt=function(e){var t;for(t=0;t<ht;t++)e.dyn_ltree[2*t]=0;for(t=0;t<pt;t++)e.dyn_dtree[2*t]=0;for(t=0;t<19;t++)e.bl_tree[2*t]=0;e.dyn_ltree[512]=1,e.opt_len=e.static_len=0,e.last_lit=e.matches=0},Dt=function(e){e.bi_valid>8?Tt(e,e.bi_buf):e.bi_valid>0&&(e.pending_buf[e.pending++]=e.bi_buf),e.bi_buf=0,e.bi_valid=0},Ft=function(e,t,n,r){var a=2*t,i=2*n;return e[a]<e[i]||e[a]===e[i]&&r[t]<=r[n]},Bt=function(e,t,n){for(var r=e.heap[n],a=n<<1;a<=e.heap_len&&(a<e.heap_len&&Ft(t,e.heap[a+1],e.heap[a],e.depth)&&a++,!Ft(t,r,e.heap[a],e.depth));)e.heap[n]=e.heap[a],n=a,a<<=1;e.heap[n]=r},Ut=function(e,t,n){var r,a,i,o,l=0;if(0!==e.last_lit)do{r=e.pending_buf[e.d_buf+2*l]<<8|e.pending_buf[e.d_buf+2*l+1],a=e.pending_buf[e.l_buf+l],l++,0===r?zt(e,a,t):(i=_t[a],zt(e,i+dt+1,t),0!==(o=vt[i])&&(a-=St[i],Ot(e,a,o)),r--,i=At(r),zt(e,i,n),0!==(o=gt[i])&&(r-=Nt[i],Ot(e,r,o)))}while(l<e.last_lit);zt(e,256,t)},Ht=function(e,t){var n,r,a,i=t.dyn_tree,o=t.stat_desc.static_tree,l=t.stat_desc.has_stree,s=t.stat_desc.elems,u=-1;for(e.heap_len=0,e.heap_max=573,n=0;n<s;n++)0!==i[2*n]?(e.heap[++e.heap_len]=u=n,e.depth[n]=0):i[2*n+1]=0;for(;e.heap_len<2;)i[2*(a=e.heap[++e.heap_len]=u<2?++u:0)]=1,e.depth[a]=0,e.opt_len--,l&&(e.static_len-=o[2*a+1]);for(t.max_code=u,n=e.heap_len>>1;n>=1;n--)Bt(e,i,n);a=s;do{n=e.heap[1],e.heap[1]=e.heap[e.heap_len--],Bt(e,i,1),r=e.heap[1],e.heap[--e.heap_max]=n,e.heap[--e.heap_max]=r,i[2*a]=i[2*n]+i[2*r],e.depth[a]=(e.depth[n]>=e.depth[r]?e.depth[n]:e.depth[r])+1,i[2*n+1]=i[2*r+1]=a,e.heap[1]=a++,Bt(e,i,1)}while(e.heap_len>=2);e.heap[--e.heap_max]=e.heap[1],function(e,t){var n,r,a,i,o,l,s=t.dyn_tree,u=t.max_code,c=t.stat_desc.static_tree,f=t.stat_desc.has_stree,d=t.stat_desc.extra_bits,h=t.stat_desc.extra_base,p=t.stat_desc.max_length,m=0;for(i=0;i<=mt;i++)e.bl_count[i]=0;for(s[2*e.heap[e.heap_max]+1]=0,n=e.heap_max+1;n<573;n++)(i=s[2*s[2*(r=e.heap[n])+1]+1]+1)>p&&(i=p,m++),s[2*r+1]=i,r>u||(e.bl_count[i]++,o=0,r>=h&&(o=d[r-h]),l=s[2*r],e.opt_len+=l*(i+o),f&&(e.static_len+=l*(c[2*r+1]+o)));if(0!==m){do{for(i=p-1;0===e.bl_count[i];)i--;e.bl_count[i]--,e.bl_count[i+1]+=2,e.bl_count[p]--,m-=2}while(m>0);for(i=p;0!==i;i--)for(r=e.bl_count[i];0!==r;)(a=e.heap[--n])>u||(s[2*a+1]!==i&&(e.opt_len+=(i-s[2*a+1])*s[2*a],s[2*a+1]=i),r--)}}(e,t),Pt(i,u,e.bl_count)},Wt=function(e,t,n){var r,a,i=-1,o=t[1],l=0,s=7,u=4;for(0===o&&(s=138,u=3),t[2*(n+1)+1]=65535,r=0;r<=n;r++)a=o,o=t[2*(r+1)+1],++l<s&&a===o||(l<u?e.bl_tree[2*a]+=l:0!==a?(a!==i&&e.bl_tree[2*a]++,e.bl_tree[32]++):l<=10?e.bl_tree[34]++:e.bl_tree[36]++,l=0,i=a,0===o?(s=138,u=3):a===o?(s=6,u=3):(s=7,u=4))},qt=function(e,t,n){var r,a,i=-1,o=t[1],l=0,s=7,u=4;for(0===o&&(s=138,u=3),r=0;r<=n;r++)if(a=o,o=t[2*(r+1)+1],!(++l<s&&a===o)){if(l<u)do{zt(e,a,e.bl_tree)}while(0!==--l);else 0!==a?(a!==i&&(zt(e,a,e.bl_tree),l--),zt(e,16,e.bl_tree),Ot(e,l-3,2)):l<=10?(zt(e,17,e.bl_tree),Ot(e,l-3,3)):(zt(e,18,e.bl_tree),Ot(e,l-11,7));l=0,i=a,0===o?(s=138,u=3):a===o?(s=6,u=3):(s=7,u=4)}},Zt=!1,Vt=function(e,t,n,r){Ot(e,0+(r?1:0),3),function(e,t,n,r){Dt(e),r&&(Tt(e,n),Tt(e,~n)),e.pending_buf.set(e.window.subarray(t,t+n),e.pending),e.pending+=n}(e,t,n,!0)},$t=function(e,t,n,r){var a,i,o=0;e.level>0?(2===e.strm.data_type&&(e.strm.data_type=function(e){var t,n=4093624447;for(t=0;t<=31;t++,n>>>=1)if(1&n&&0!==e.dyn_ltree[2*t])return 0;if(0!==e.dyn_ltree[18]||0!==e.dyn_ltree[20]||0!==e.dyn_ltree[26])return 1;for(t=32;t<dt;t++)if(0!==e.dyn_ltree[2*t])return 1;return 0}(e)),Ht(e,e.l_desc),Ht(e,e.d_desc),o=function(e){var t;for(Wt(e,e.dyn_ltree,e.l_desc.max_code),Wt(e,e.dyn_dtree,e.d_desc.max_code),Ht(e,e.bl_desc),t=18;t>=3&&0===e.bl_tree[2*bt[t]+1];t--);return e.opt_len+=3*(t+1)+5+5+4,t}(e),a=e.opt_len+3+7>>>3,(i=e.static_len+3+7>>>3)<=a&&(a=i)):a=i=n+5,n+4<=a&&-1!==t?Vt(e,t,n,r):4===e.strategy||i===a?(Ot(e,2+(r?1:0),3),Ut(e,wt,kt)):(Ot(e,4+(r?1:0),3),function(e,t,n,r){var a;for(Ot(e,t-257,5),Ot(e,n-1,5),Ot(e,r-4,4),a=0;a<r;a++)Ot(e,e.bl_tree[2*bt[a]+1],3);qt(e,e.dyn_ltree,t-1),qt(e,e.dyn_dtree,n-1)}(e,e.l_desc.max_code+1,e.d_desc.max_code+1,o+1),Ut(e,e.dyn_ltree,e.dyn_dtree)),Mt(e),r&&Dt(e)},Gt={_tr_init:function(e){Zt||(!function(){var e,t,n,r,a,i=new Array(16);for(n=0,r=0;r<28;r++)for(St[r]=n,e=0;e<1<<vt[r];e++)_t[n++]=r;for(_t[n-1]=r,a=0,r=0;r<16;r++)for(Nt[r]=a,e=0;e<1<<gt[r];e++)xt[a++]=r;for(a>>=7;r<pt;r++)for(Nt[r]=a<<7,e=0;e<1<<gt[r]-7;e++)xt[256+a++]=r;for(t=0;t<=mt;t++)i[t]=0;for(e=0;e<=143;)wt[2*e+1]=8,e++,i[8]++;for(;e<=255;)wt[2*e+1]=9,e++,i[9]++;for(;e<=279;)wt[2*e+1]=7,e++,i[7]++;for(;e<=287;)wt[2*e+1]=8,e++,i[8]++;for(Pt(wt,287,i),e=0;e<pt;e++)kt[2*e+1]=5,kt[2*e]=Lt(e,5);Et=new Rt(wt,vt,257,ht,mt),Ct=new Rt(kt,gt,0,pt,mt),jt=new Rt(new Array(0),yt,0,19,7)}(),Zt=!0),e.l_desc=new It(e.dyn_ltree,Et),e.d_desc=new It(e.dyn_dtree,Ct),e.bl_desc=new It(e.bl_tree,jt),e.bi_buf=0,e.bi_valid=0,Mt(e)},_tr_stored_block:Vt,_tr_flush_block:$t,_tr_tally:function(e,t,n){return e.pending_buf[e.d_buf+2*e.last_lit]=t>>>8&255,e.pending_buf[e.d_buf+2*e.last_lit+1]=255&t,e.pending_buf[e.l_buf+e.last_lit]=255&n,e.last_lit++,0===t?e.dyn_ltree[2*n]++:(e.matches++,t--,e.dyn_ltree[2*(_t[n]+dt+1)]++,e.dyn_dtree[2*At(t)]++),e.last_lit===e.lit_bufsize-1},_tr_align:function(e){Ot(e,2,3),zt(e,256,wt),function(e){16===e.bi_valid?(Tt(e,e.bi_buf),e.bi_buf=0,e.bi_valid=0):e.bi_valid>=8&&(e.pending_buf[e.pending++]=255&e.bi_buf,e.bi_buf>>=8,e.bi_valid-=8)}(e)}},Yt=function(e,t,n,r){for(var a=65535&e|0,i=e>>>16&65535|0,o=0;0!==n;){n-=o=n>2e3?2e3:n;do{i=i+(a=a+t[r++]|0)|0}while(--o);a%=65521,i%=65521}return a|i<<16|0},Qt=new Uint32Array(function(){for(var e,t=[],n=0;n<256;n++){e=n;for(var r=0;r<8;r++)e=1&e?3988292384^e>>>1:e>>>1;t[n]=e}return t}()),Kt=function(e,t,n,r){var a=Qt,i=r+n;e^=-1;for(var o=r;o<i;o++)e=e>>>8^a[255&(e^t[o])];return-1^e},Xt={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"},Jt={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_MEM_ERROR:-4,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8},en=Gt._tr_init,tn=Gt._tr_stored_block,nn=Gt._tr_flush_block,rn=Gt._tr_tally,an=Gt._tr_align,on=Jt.Z_NO_FLUSH,ln=Jt.Z_PARTIAL_FLUSH,sn=Jt.Z_FULL_FLUSH,un=Jt.Z_FINISH,cn=Jt.Z_BLOCK,fn=Jt.Z_OK,dn=Jt.Z_STREAM_END,hn=Jt.Z_STREAM_ERROR,pn=Jt.Z_DATA_ERROR,mn=Jt.Z_BUF_ERROR,vn=Jt.Z_DEFAULT_COMPRESSION,gn=Jt.Z_FILTERED,yn=Jt.Z_HUFFMAN_ONLY,bn=Jt.Z_RLE,wn=Jt.Z_FIXED,kn=Jt.Z_DEFAULT_STRATEGY,xn=Jt.Z_UNKNOWN,_n=Jt.Z_DEFLATED,Sn=258,En=262,Cn=103,jn=113,Nn=666,Rn=function(e,t){return e.msg=Xt[t],t},In=function(e){return(e<<1)-(e>4?9:0)},An=function(e){for(var t=e.length;--t>=0;)e[t]=0},Tn=function(e,t,n){return(t<<e.hash_shift^n)&e.hash_mask},On=function(e){var t=e.state,n=t.pending;n>e.avail_out&&(n=e.avail_out),0!==n&&(e.output.set(t.pending_buf.subarray(t.pending_out,t.pending_out+n),e.next_out),e.next_out+=n,t.pending_out+=n,e.total_out+=n,e.avail_out-=n,t.pending-=n,0===t.pending&&(t.pending_out=0))},zn=function(e,t){nn(e,e.block_start>=0?e.block_start:-1,e.strstart-e.block_start,t),e.block_start=e.strstart,On(e.strm)},Ln=function(e,t){e.pending_buf[e.pending++]=t},Pn=function(e,t){e.pending_buf[e.pending++]=t>>>8&255,e.pending_buf[e.pending++]=255&t},Mn=function(e,t,n,r){var a=e.avail_in;return a>r&&(a=r),0===a?0:(e.avail_in-=a,t.set(e.input.subarray(e.next_in,e.next_in+a),n),1===e.state.wrap?e.adler=Yt(e.adler,t,a,n):2===e.state.wrap&&(e.adler=Kt(e.adler,t,a,n)),e.next_in+=a,e.total_in+=a,a)},Dn=function(e,t){var n,r,a=e.max_chain_length,i=e.strstart,o=e.prev_length,l=e.nice_match,s=e.strstart>e.w_size-En?e.strstart-(e.w_size-En):0,u=e.window,c=e.w_mask,f=e.prev,d=e.strstart+Sn,h=u[i+o-1],p=u[i+o];e.prev_length>=e.good_match&&(a>>=2),l>e.lookahead&&(l=e.lookahead);do{if(u[(n=t)+o]===p&&u[n+o-1]===h&&u[n]===u[i]&&u[++n]===u[i+1]){i+=2,n++;do{}while(u[++i]===u[++n]&&u[++i]===u[++n]&&u[++i]===u[++n]&&u[++i]===u[++n]&&u[++i]===u[++n]&&u[++i]===u[++n]&&u[++i]===u[++n]&&u[++i]===u[++n]&&i<d);if(r=Sn-(d-i),i=d-Sn,r>o){if(e.match_start=t,o=r,r>=l)break;h=u[i+o-1],p=u[i+o]}}}while((t=f[t&c])>s&&0!==--a);return o<=e.lookahead?o:e.lookahead},Fn=function(e){var t,n,r,a,i,o=e.w_size;do{if(a=e.window_size-e.lookahead-e.strstart,e.strstart>=o+(o-En)){e.window.set(e.window.subarray(o,o+o),0),e.match_start-=o,e.strstart-=o,e.block_start-=o,t=n=e.hash_size;do{r=e.head[--t],e.head[t]=r>=o?r-o:0}while(--n);t=n=o;do{r=e.prev[--t],e.prev[t]=r>=o?r-o:0}while(--n);a+=o}if(0===e.strm.avail_in)break;if(n=Mn(e.strm,e.window,e.strstart+e.lookahead,a),e.lookahead+=n,e.lookahead+e.insert>=3)for(i=e.strstart-e.insert,e.ins_h=e.window[i],e.ins_h=Tn(e,e.ins_h,e.window[i+1]);e.insert&&(e.ins_h=Tn(e,e.ins_h,e.window[i+3-1]),e.prev[i&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=i,i++,e.insert--,!(e.lookahead+e.insert<3)););}while(e.lookahead<En&&0!==e.strm.avail_in)},Bn=function(e,t){for(var n,r;;){if(e.lookahead<En){if(Fn(e),e.lookahead<En&&t===on)return 1;if(0===e.lookahead)break}if(n=0,e.lookahead>=3&&(e.ins_h=Tn(e,e.ins_h,e.window[e.strstart+3-1]),n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),0!==n&&e.strstart-n<=e.w_size-En&&(e.match_length=Dn(e,n)),e.match_length>=3)if(r=rn(e,e.strstart-e.match_start,e.match_length-3),e.lookahead-=e.match_length,e.match_length<=e.max_lazy_match&&e.lookahead>=3){e.match_length--;do{e.strstart++,e.ins_h=Tn(e,e.ins_h,e.window[e.strstart+3-1]),n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart}while(0!==--e.match_length);e.strstart++}else e.strstart+=e.match_length,e.match_length=0,e.ins_h=e.window[e.strstart],e.ins_h=Tn(e,e.ins_h,e.window[e.strstart+1]);else r=rn(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++;if(r&&(zn(e,!1),0===e.strm.avail_out))return 1}return e.insert=e.strstart<2?e.strstart:2,t===un?(zn(e,!0),0===e.strm.avail_out?3:4):e.last_lit&&(zn(e,!1),0===e.strm.avail_out)?1:2},Un=function(e,t){for(var n,r,a;;){if(e.lookahead<En){if(Fn(e),e.lookahead<En&&t===on)return 1;if(0===e.lookahead)break}if(n=0,e.lookahead>=3&&(e.ins_h=Tn(e,e.ins_h,e.window[e.strstart+3-1]),n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),e.prev_length=e.match_length,e.prev_match=e.match_start,e.match_length=2,0!==n&&e.prev_length<e.max_lazy_match&&e.strstart-n<=e.w_size-En&&(e.match_length=Dn(e,n),e.match_length<=5&&(e.strategy===gn||3===e.match_length&&e.strstart-e.match_start>4096)&&(e.match_length=2)),e.prev_length>=3&&e.match_length<=e.prev_length){a=e.strstart+e.lookahead-3,r=rn(e,e.strstart-1-e.prev_match,e.prev_length-3),e.lookahead-=e.prev_length-1,e.prev_length-=2;do{++e.strstart<=a&&(e.ins_h=Tn(e,e.ins_h,e.window[e.strstart+3-1]),n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart)}while(0!==--e.prev_length);if(e.match_available=0,e.match_length=2,e.strstart++,r&&(zn(e,!1),0===e.strm.avail_out))return 1}else if(e.match_available){if((r=rn(e,0,e.window[e.strstart-1]))&&zn(e,!1),e.strstart++,e.lookahead--,0===e.strm.avail_out)return 1}else e.match_available=1,e.strstart++,e.lookahead--}return e.match_available&&(r=rn(e,0,e.window[e.strstart-1]),e.match_available=0),e.insert=e.strstart<2?e.strstart:2,t===un?(zn(e,!0),0===e.strm.avail_out?3:4):e.last_lit&&(zn(e,!1),0===e.strm.avail_out)?1:2};function Hn(e,t,n,r,a){this.good_length=e,this.max_lazy=t,this.nice_length=n,this.max_chain=r,this.func=a}var Wn=[new Hn(0,0,0,0,(function(e,t){var n=65535;for(n>e.pending_buf_size-5&&(n=e.pending_buf_size-5);;){if(e.lookahead<=1){if(Fn(e),0===e.lookahead&&t===on)return 1;if(0===e.lookahead)break}e.strstart+=e.lookahead,e.lookahead=0;var r=e.block_start+n;if((0===e.strstart||e.strstart>=r)&&(e.lookahead=e.strstart-r,e.strstart=r,zn(e,!1),0===e.strm.avail_out))return 1;if(e.strstart-e.block_start>=e.w_size-En&&(zn(e,!1),0===e.strm.avail_out))return 1}return e.insert=0,t===un?(zn(e,!0),0===e.strm.avail_out?3:4):(e.strstart>e.block_start&&(zn(e,!1),e.strm.avail_out),1)})),new Hn(4,4,8,4,Bn),new Hn(4,5,16,8,Bn),new Hn(4,6,32,32,Bn),new Hn(4,4,16,16,Un),new Hn(8,16,32,32,Un),new Hn(8,16,128,128,Un),new Hn(8,32,128,256,Un),new Hn(32,128,258,1024,Un),new Hn(32,258,258,4096,Un)];function qn(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=_n,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new Uint16Array(1146),this.dyn_dtree=new Uint16Array(122),this.bl_tree=new Uint16Array(78),An(this.dyn_ltree),An(this.dyn_dtree),An(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new Uint16Array(16),this.heap=new Uint16Array(573),An(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new Uint16Array(573),An(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}var Zn=function(e){if(!e||!e.state)return Rn(e,hn);e.total_in=e.total_out=0,e.data_type=xn;var t=e.state;return t.pending=0,t.pending_out=0,t.wrap<0&&(t.wrap=-t.wrap),t.status=t.wrap?42:jn,e.adler=2===t.wrap?0:1,t.last_flush=on,en(t),fn},Vn=function(e){var t,n=Zn(e);return n===fn&&((t=e.state).window_size=2*t.w_size,An(t.head),t.max_lazy_match=Wn[t.level].max_lazy,t.good_match=Wn[t.level].good_length,t.nice_match=Wn[t.level].nice_length,t.max_chain_length=Wn[t.level].max_chain,t.strstart=0,t.block_start=0,t.lookahead=0,t.insert=0,t.match_length=t.prev_length=2,t.match_available=0,t.ins_h=0),n},$n=function(e,t,n,r,a,i){if(!e)return hn;var o=1;if(t===vn&&(t=6),r<0?(o=0,r=-r):r>15&&(o=2,r-=16),a<1||a>9||n!==_n||r<8||r>15||t<0||t>9||i<0||i>wn)return Rn(e,hn);8===r&&(r=9);var l=new qn;return e.state=l,l.strm=e,l.wrap=o,l.gzhead=null,l.w_bits=r,l.w_size=1<<l.w_bits,l.w_mask=l.w_size-1,l.hash_bits=a+7,l.hash_size=1<<l.hash_bits,l.hash_mask=l.hash_size-1,l.hash_shift=~~((l.hash_bits+3-1)/3),l.window=new Uint8Array(2*l.w_size),l.head=new Uint16Array(l.hash_size),l.prev=new Uint16Array(l.w_size),l.lit_bufsize=1<<a+6,l.pending_buf_size=4*l.lit_bufsize,l.pending_buf=new Uint8Array(l.pending_buf_size),l.d_buf=1*l.lit_bufsize,l.l_buf=3*l.lit_bufsize,l.level=t,l.strategy=i,l.method=n,Vn(e)},Gn={deflateInit:function(e,t){return $n(e,t,_n,15,8,kn)},deflateInit2:$n,deflateReset:Vn,deflateResetKeep:Zn,deflateSetHeader:function(e,t){return e&&e.state?2!==e.state.wrap?hn:(e.state.gzhead=t,fn):hn},deflate:function(e,t){var n,r;if(!e||!e.state||t>cn||t<0)return e?Rn(e,hn):hn;var a=e.state;if(!e.output||!e.input&&0!==e.avail_in||a.status===Nn&&t!==un)return Rn(e,0===e.avail_out?mn:hn);a.strm=e;var i=a.last_flush;if(a.last_flush=t,42===a.status)if(2===a.wrap)e.adler=0,Ln(a,31),Ln(a,139),Ln(a,8),a.gzhead?(Ln(a,(a.gzhead.text?1:0)+(a.gzhead.hcrc?2:0)+(a.gzhead.extra?4:0)+(a.gzhead.name?8:0)+(a.gzhead.comment?16:0)),Ln(a,255&a.gzhead.time),Ln(a,a.gzhead.time>>8&255),Ln(a,a.gzhead.time>>16&255),Ln(a,a.gzhead.time>>24&255),Ln(a,9===a.level?2:a.strategy>=yn||a.level<2?4:0),Ln(a,255&a.gzhead.os),a.gzhead.extra&&a.gzhead.extra.length&&(Ln(a,255&a.gzhead.extra.length),Ln(a,a.gzhead.extra.length>>8&255)),a.gzhead.hcrc&&(e.adler=Kt(e.adler,a.pending_buf,a.pending,0)),a.gzindex=0,a.status=69):(Ln(a,0),Ln(a,0),Ln(a,0),Ln(a,0),Ln(a,0),Ln(a,9===a.level?2:a.strategy>=yn||a.level<2?4:0),Ln(a,3),a.status=jn);else{var o=_n+(a.w_bits-8<<4)<<8;o|=(a.strategy>=yn||a.level<2?0:a.level<6?1:6===a.level?2:3)<<6,0!==a.strstart&&(o|=32),o+=31-o%31,a.status=jn,Pn(a,o),0!==a.strstart&&(Pn(a,e.adler>>>16),Pn(a,65535&e.adler)),e.adler=1}if(69===a.status)if(a.gzhead.extra){for(n=a.pending;a.gzindex<(65535&a.gzhead.extra.length)&&(a.pending!==a.pending_buf_size||(a.gzhead.hcrc&&a.pending>n&&(e.adler=Kt(e.adler,a.pending_buf,a.pending-n,n)),On(e),n=a.pending,a.pending!==a.pending_buf_size));)Ln(a,255&a.gzhead.extra[a.gzindex]),a.gzindex++;a.gzhead.hcrc&&a.pending>n&&(e.adler=Kt(e.adler,a.pending_buf,a.pending-n,n)),a.gzindex===a.gzhead.extra.length&&(a.gzindex=0,a.status=73)}else a.status=73;if(73===a.status)if(a.gzhead.name){n=a.pending;do{if(a.pending===a.pending_buf_size&&(a.gzhead.hcrc&&a.pending>n&&(e.adler=Kt(e.adler,a.pending_buf,a.pending-n,n)),On(e),n=a.pending,a.pending===a.pending_buf_size)){r=1;break}r=a.gzindex<a.gzhead.name.length?255&a.gzhead.name.charCodeAt(a.gzindex++):0,Ln(a,r)}while(0!==r);a.gzhead.hcrc&&a.pending>n&&(e.adler=Kt(e.adler,a.pending_buf,a.pending-n,n)),0===r&&(a.gzindex=0,a.status=91)}else a.status=91;if(91===a.status)if(a.gzhead.comment){n=a.pending;do{if(a.pending===a.pending_buf_size&&(a.gzhead.hcrc&&a.pending>n&&(e.adler=Kt(e.adler,a.pending_buf,a.pending-n,n)),On(e),n=a.pending,a.pending===a.pending_buf_size)){r=1;break}r=a.gzindex<a.gzhead.comment.length?255&a.gzhead.comment.charCodeAt(a.gzindex++):0,Ln(a,r)}while(0!==r);a.gzhead.hcrc&&a.pending>n&&(e.adler=Kt(e.adler,a.pending_buf,a.pending-n,n)),0===r&&(a.status=Cn)}else a.status=Cn;if(a.status===Cn&&(a.gzhead.hcrc?(a.pending+2>a.pending_buf_size&&On(e),a.pending+2<=a.pending_buf_size&&(Ln(a,255&e.adler),Ln(a,e.adler>>8&255),e.adler=0,a.status=jn)):a.status=jn),0!==a.pending){if(On(e),0===e.avail_out)return a.last_flush=-1,fn}else if(0===e.avail_in&&In(t)<=In(i)&&t!==un)return Rn(e,mn);if(a.status===Nn&&0!==e.avail_in)return Rn(e,mn);if(0!==e.avail_in||0!==a.lookahead||t!==on&&a.status!==Nn){var l=a.strategy===yn?function(e,t){for(var n;;){if(0===e.lookahead&&(Fn(e),0===e.lookahead)){if(t===on)return 1;break}if(e.match_length=0,n=rn(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++,n&&(zn(e,!1),0===e.strm.avail_out))return 1}return e.insert=0,t===un?(zn(e,!0),0===e.strm.avail_out?3:4):e.last_lit&&(zn(e,!1),0===e.strm.avail_out)?1:2}(a,t):a.strategy===bn?function(e,t){for(var n,r,a,i,o=e.window;;){if(e.lookahead<=Sn){if(Fn(e),e.lookahead<=Sn&&t===on)return 1;if(0===e.lookahead)break}if(e.match_length=0,e.lookahead>=3&&e.strstart>0&&(r=o[a=e.strstart-1])===o[++a]&&r===o[++a]&&r===o[++a]){i=e.strstart+Sn;do{}while(r===o[++a]&&r===o[++a]&&r===o[++a]&&r===o[++a]&&r===o[++a]&&r===o[++a]&&r===o[++a]&&r===o[++a]&&a<i);e.match_length=Sn-(i-a),e.match_length>e.lookahead&&(e.match_length=e.lookahead)}if(e.match_length>=3?(n=rn(e,1,e.match_length-3),e.lookahead-=e.match_length,e.strstart+=e.match_length,e.match_length=0):(n=rn(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++),n&&(zn(e,!1),0===e.strm.avail_out))return 1}return e.insert=0,t===un?(zn(e,!0),0===e.strm.avail_out?3:4):e.last_lit&&(zn(e,!1),0===e.strm.avail_out)?1:2}(a,t):Wn[a.level].func(a,t);if(3!==l&&4!==l||(a.status=Nn),1===l||3===l)return 0===e.avail_out&&(a.last_flush=-1),fn;if(2===l&&(t===ln?an(a):t!==cn&&(tn(a,0,0,!1),t===sn&&(An(a.head),0===a.lookahead&&(a.strstart=0,a.block_start=0,a.insert=0))),On(e),0===e.avail_out))return a.last_flush=-1,fn}return t!==un?fn:a.wrap<=0?dn:(2===a.wrap?(Ln(a,255&e.adler),Ln(a,e.adler>>8&255),Ln(a,e.adler>>16&255),Ln(a,e.adler>>24&255),Ln(a,255&e.total_in),Ln(a,e.total_in>>8&255),Ln(a,e.total_in>>16&255),Ln(a,e.total_in>>24&255)):(Pn(a,e.adler>>>16),Pn(a,65535&e.adler)),On(e),a.wrap>0&&(a.wrap=-a.wrap),0!==a.pending?fn:dn)},deflateEnd:function(e){if(!e||!e.state)return hn;var t=e.state.status;return 42!==t&&69!==t&&73!==t&&91!==t&&t!==Cn&&t!==jn&&t!==Nn?Rn(e,hn):(e.state=null,t===jn?Rn(e,pn):fn)},deflateSetDictionary:function(e,t){var n=t.length;if(!e||!e.state)return hn;var r=e.state,a=r.wrap;if(2===a||1===a&&42!==r.status||r.lookahead)return hn;if(1===a&&(e.adler=Yt(e.adler,t,n,0)),r.wrap=0,n>=r.w_size){0===a&&(An(r.head),r.strstart=0,r.block_start=0,r.insert=0);var i=new Uint8Array(r.w_size);i.set(t.subarray(n-r.w_size,n),0),t=i,n=r.w_size}var o=e.avail_in,l=e.next_in,s=e.input;for(e.avail_in=n,e.next_in=0,e.input=t,Fn(r);r.lookahead>=3;){var u=r.strstart,c=r.lookahead-2;do{r.ins_h=Tn(r,r.ins_h,r.window[u+3-1]),r.prev[u&r.w_mask]=r.head[r.ins_h],r.head[r.ins_h]=u,u++}while(--c);r.strstart=u,r.lookahead=2,Fn(r)}return r.strstart+=r.lookahead,r.block_start=r.strstart,r.insert=r.lookahead,r.lookahead=0,r.match_length=r.prev_length=2,r.match_available=0,e.next_in=l,e.input=s,e.avail_in=o,r.wrap=a,fn},deflateInfo:"pako deflate (from Nodeca project)"},Yn=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},Qn=function(e){for(var t=Array.prototype.slice.call(arguments,1);t.length;){var n=t.shift();if(n){if("object"!==typeof n)throw new TypeError(n+"must be non-object");for(var r in n)Yn(n,r)&&(e[r]=n[r])}}return e},Kn=function(e){for(var t=0,n=0,r=e.length;n<r;n++)t+=e[n].length;for(var a=new Uint8Array(t),i=0,o=0,l=e.length;i<l;i++){var s=e[i];a.set(s,o),o+=s.length}return a},Xn=!0;try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(_a){Xn=!1}for(var Jn=new Uint8Array(256),er=0;er<256;er++)Jn[er]=er>=252?6:er>=248?5:er>=240?4:er>=224?3:er>=192?2:1;Jn[254]=Jn[254]=1;var tr=function(e){if("function"===typeof TextEncoder&&TextEncoder.prototype.encode)return(new TextEncoder).encode(e);var t,n,r,a,i,o=e.length,l=0;for(a=0;a<o;a++)55296===(64512&(n=e.charCodeAt(a)))&&a+1<o&&56320===(64512&(r=e.charCodeAt(a+1)))&&(n=65536+(n-55296<<10)+(r-56320),a++),l+=n<128?1:n<2048?2:n<65536?3:4;for(t=new Uint8Array(l),i=0,a=0;i<l;a++)55296===(64512&(n=e.charCodeAt(a)))&&a+1<o&&56320===(64512&(r=e.charCodeAt(a+1)))&&(n=65536+(n-55296<<10)+(r-56320),a++),n<128?t[i++]=n:n<2048?(t[i++]=192|n>>>6,t[i++]=128|63&n):n<65536?(t[i++]=224|n>>>12,t[i++]=128|n>>>6&63,t[i++]=128|63&n):(t[i++]=240|n>>>18,t[i++]=128|n>>>12&63,t[i++]=128|n>>>6&63,t[i++]=128|63&n);return t},nr=function(e,t){var n,r,a=t||e.length;if("function"===typeof TextDecoder&&TextDecoder.prototype.decode)return(new TextDecoder).decode(e.subarray(0,t));var i=new Array(2*a);for(r=0,n=0;n<a;){var o=e[n++];if(o<128)i[r++]=o;else{var l=Jn[o];if(l>4)i[r++]=65533,n+=l-1;else{for(o&=2===l?31:3===l?15:7;l>1&&n<a;)o=o<<6|63&e[n++],l--;l>1?i[r++]=65533:o<65536?i[r++]=o:(o-=65536,i[r++]=55296|o>>10&1023,i[r++]=56320|1023&o)}}}return function(e,t){if(t<65534&&e.subarray&&Xn)return String.fromCharCode.apply(null,e.length===t?e:e.subarray(0,t));for(var n="",r=0;r<t;r++)n+=String.fromCharCode(e[r]);return n}(i,r)},rr=function(e,t){(t=t||e.length)>e.length&&(t=e.length);for(var n=t-1;n>=0&&128===(192&e[n]);)n--;return n<0||0===n?t:n+Jn[e[n]]>t?n:t};var ar=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0},ir=Object.prototype.toString,or=Jt.Z_NO_FLUSH,lr=Jt.Z_SYNC_FLUSH,sr=Jt.Z_FULL_FLUSH,ur=Jt.Z_FINISH,cr=Jt.Z_OK,fr=Jt.Z_STREAM_END,dr=Jt.Z_DEFAULT_COMPRESSION,hr=Jt.Z_DEFAULT_STRATEGY,pr=Jt.Z_DEFLATED;function mr(e){this.options=Qn({level:dr,method:pr,chunkSize:16384,windowBits:15,memLevel:8,strategy:hr},e||{});var t=this.options;t.raw&&t.windowBits>0?t.windowBits=-t.windowBits:t.gzip&&t.windowBits>0&&t.windowBits<16&&(t.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new ar,this.strm.avail_out=0;var n=Gn.deflateInit2(this.strm,t.level,t.method,t.windowBits,t.memLevel,t.strategy);if(n!==cr)throw new Error(Xt[n]);if(t.header&&Gn.deflateSetHeader(this.strm,t.header),t.dictionary){var r;if(r="string"===typeof t.dictionary?tr(t.dictionary):"[object ArrayBuffer]"===ir.call(t.dictionary)?new Uint8Array(t.dictionary):t.dictionary,(n=Gn.deflateSetDictionary(this.strm,r))!==cr)throw new Error(Xt[n]);this._dict_set=!0}}function vr(e,t){var n=new mr(t);if(n.push(e,!0),n.err)throw n.msg||Xt[n.err];return n.result}mr.prototype.push=function(e,t){var n,r,a=this.strm,i=this.options.chunkSize;if(this.ended)return!1;for(r=t===~~t?t:!0===t?ur:or,"string"===typeof e?a.input=tr(e):"[object ArrayBuffer]"===ir.call(e)?a.input=new Uint8Array(e):a.input=e,a.next_in=0,a.avail_in=a.input.length;;)if(0===a.avail_out&&(a.output=new Uint8Array(i),a.next_out=0,a.avail_out=i),(r===lr||r===sr)&&a.avail_out<=6)this.onData(a.output.subarray(0,a.next_out)),a.avail_out=0;else{if((n=Gn.deflate(a,r))===fr)return a.next_out>0&&this.onData(a.output.subarray(0,a.next_out)),n=Gn.deflateEnd(this.strm),this.onEnd(n),this.ended=!0,n===cr;if(0!==a.avail_out){if(r>0&&a.next_out>0)this.onData(a.output.subarray(0,a.next_out)),a.avail_out=0;else if(0===a.avail_in)break}else this.onData(a.output)}return!0},mr.prototype.onData=function(e){this.chunks.push(e)},mr.prototype.onEnd=function(e){e===cr&&(this.result=Kn(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg};var gr={Deflate:mr,deflate:vr,deflateRaw:function(e,t){return(t=t||{}).raw=!0,vr(e,t)},gzip:function(e,t){return(t=t||{}).gzip=!0,vr(e,t)},constants:Jt},yr=function(e,t){var n,r,a,i,o,l,s,u,c,f,d,h,p,m,v,g,y,b,w,k,x,_,S,E,C=e.state;n=e.next_in,S=e.input,r=n+(e.avail_in-5),a=e.next_out,E=e.output,i=a-(t-e.avail_out),o=a+(e.avail_out-257),l=C.dmax,s=C.wsize,u=C.whave,c=C.wnext,f=C.window,d=C.hold,h=C.bits,p=C.lencode,m=C.distcode,v=(1<<C.lenbits)-1,g=(1<<C.distbits)-1;e:do{h<15&&(d+=S[n++]<<h,h+=8,d+=S[n++]<<h,h+=8),y=p[d&v];t:for(;;){if(d>>>=b=y>>>24,h-=b,0===(b=y>>>16&255))E[a++]=65535&y;else{if(!(16&b)){if(0===(64&b)){y=p[(65535&y)+(d&(1<<b)-1)];continue t}if(32&b){C.mode=12;break e}e.msg="invalid literal/length code",C.mode=30;break e}w=65535&y,(b&=15)&&(h<b&&(d+=S[n++]<<h,h+=8),w+=d&(1<<b)-1,d>>>=b,h-=b),h<15&&(d+=S[n++]<<h,h+=8,d+=S[n++]<<h,h+=8),y=m[d&g];n:for(;;){if(d>>>=b=y>>>24,h-=b,!(16&(b=y>>>16&255))){if(0===(64&b)){y=m[(65535&y)+(d&(1<<b)-1)];continue n}e.msg="invalid distance code",C.mode=30;break e}if(k=65535&y,h<(b&=15)&&(d+=S[n++]<<h,(h+=8)<b&&(d+=S[n++]<<h,h+=8)),(k+=d&(1<<b)-1)>l){e.msg="invalid distance too far back",C.mode=30;break e}if(d>>>=b,h-=b,k>(b=a-i)){if((b=k-b)>u&&C.sane){e.msg="invalid distance too far back",C.mode=30;break e}if(x=0,_=f,0===c){if(x+=s-b,b<w){w-=b;do{E[a++]=f[x++]}while(--b);x=a-k,_=E}}else if(c<b){if(x+=s+c-b,(b-=c)<w){w-=b;do{E[a++]=f[x++]}while(--b);if(x=0,c<w){w-=b=c;do{E[a++]=f[x++]}while(--b);x=a-k,_=E}}}else if(x+=c-b,b<w){w-=b;do{E[a++]=f[x++]}while(--b);x=a-k,_=E}for(;w>2;)E[a++]=_[x++],E[a++]=_[x++],E[a++]=_[x++],w-=3;w&&(E[a++]=_[x++],w>1&&(E[a++]=_[x++]))}else{x=a-k;do{E[a++]=E[x++],E[a++]=E[x++],E[a++]=E[x++],w-=3}while(w>2);w&&(E[a++]=E[x++],w>1&&(E[a++]=E[x++]))}break}}break}}while(n<r&&a<o);n-=w=h>>3,d&=(1<<(h-=w<<3))-1,e.next_in=n,e.next_out=a,e.avail_in=n<r?r-n+5:5-(n-r),e.avail_out=a<o?o-a+257:257-(a-o),C.hold=d,C.bits=h},br=15,wr=new Uint16Array([3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0]),kr=new Uint8Array([16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78]),xr=new Uint16Array([1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0]),_r=new Uint8Array([16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64]),Sr=function(e,t,n,r,a,i,o,l){var s,u,c,f,d,h,p,m,v,g=l.bits,y=0,b=0,w=0,k=0,x=0,_=0,S=0,E=0,C=0,j=0,N=null,R=0,I=new Uint16Array(16),A=new Uint16Array(16),T=null,O=0;for(y=0;y<=br;y++)I[y]=0;for(b=0;b<r;b++)I[t[n+b]]++;for(x=g,k=br;k>=1&&0===I[k];k--);if(x>k&&(x=k),0===k)return a[i++]=20971520,a[i++]=20971520,l.bits=1,0;for(w=1;w<k&&0===I[w];w++);for(x<w&&(x=w),E=1,y=1;y<=br;y++)if(E<<=1,(E-=I[y])<0)return-1;if(E>0&&(0===e||1!==k))return-1;for(A[1]=0,y=1;y<br;y++)A[y+1]=A[y]+I[y];for(b=0;b<r;b++)0!==t[n+b]&&(o[A[t[n+b]]++]=b);if(0===e?(N=T=o,h=19):1===e?(N=wr,R-=257,T=kr,O-=257,h=256):(N=xr,T=_r,h=-1),j=0,b=0,y=w,d=i,_=x,S=0,c=-1,f=(C=1<<x)-1,1===e&&C>852||2===e&&C>592)return 1;for(;;){p=y-S,o[b]<h?(m=0,v=o[b]):o[b]>h?(m=T[O+o[b]],v=N[R+o[b]]):(m=96,v=0),s=1<<y-S,w=u=1<<_;do{a[d+(j>>S)+(u-=s)]=p<<24|m<<16|v|0}while(0!==u);for(s=1<<y-1;j&s;)s>>=1;if(0!==s?(j&=s-1,j+=s):j=0,b++,0===--I[y]){if(y===k)break;y=t[n+o[b]]}if(y>x&&(j&f)!==c){for(0===S&&(S=x),d+=w,E=1<<(_=y-S);_+S<k&&!((E-=I[_+S])<=0);)_++,E<<=1;if(C+=1<<_,1===e&&C>852||2===e&&C>592)return 1;a[c=j&f]=x<<24|_<<16|d-i|0}}return 0!==j&&(a[d+j]=y-S<<24|64<<16|0),l.bits=x,0},Er=Jt.Z_FINISH,Cr=Jt.Z_BLOCK,jr=Jt.Z_TREES,Nr=Jt.Z_OK,Rr=Jt.Z_STREAM_END,Ir=Jt.Z_NEED_DICT,Ar=Jt.Z_STREAM_ERROR,Tr=Jt.Z_DATA_ERROR,Or=Jt.Z_MEM_ERROR,zr=Jt.Z_BUF_ERROR,Lr=Jt.Z_DEFLATED,Pr=12,Mr=30,Dr=function(e){return(e>>>24&255)+(e>>>8&65280)+((65280&e)<<8)+((255&e)<<24)};function Fr(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new Uint16Array(320),this.work=new Uint16Array(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}var Br,Ur,Hr=function(e){if(!e||!e.state)return Ar;var t=e.state;return e.total_in=e.total_out=t.total=0,e.msg="",t.wrap&&(e.adler=1&t.wrap),t.mode=1,t.last=0,t.havedict=0,t.dmax=32768,t.head=null,t.hold=0,t.bits=0,t.lencode=t.lendyn=new Int32Array(852),t.distcode=t.distdyn=new Int32Array(592),t.sane=1,t.back=-1,Nr},Wr=function(e){if(!e||!e.state)return Ar;var t=e.state;return t.wsize=0,t.whave=0,t.wnext=0,Hr(e)},qr=function(e,t){var n;if(!e||!e.state)return Ar;var r=e.state;return t<0?(n=0,t=-t):(n=1+(t>>4),t<48&&(t&=15)),t&&(t<8||t>15)?Ar:(null!==r.window&&r.wbits!==t&&(r.window=null),r.wrap=n,r.wbits=t,Wr(e))},Zr=function(e,t){if(!e)return Ar;var n=new Fr;e.state=n,n.window=null;var r=qr(e,t);return r!==Nr&&(e.state=null),r},Vr=!0,$r=function(e){if(Vr){Br=new Int32Array(512),Ur=new Int32Array(32);for(var t=0;t<144;)e.lens[t++]=8;for(;t<256;)e.lens[t++]=9;for(;t<280;)e.lens[t++]=7;for(;t<288;)e.lens[t++]=8;for(Sr(1,e.lens,0,288,Br,0,e.work,{bits:9}),t=0;t<32;)e.lens[t++]=5;Sr(2,e.lens,0,32,Ur,0,e.work,{bits:5}),Vr=!1}e.lencode=Br,e.lenbits=9,e.distcode=Ur,e.distbits=5},Gr=function(e,t,n,r){var a,i=e.state;return null===i.window&&(i.wsize=1<<i.wbits,i.wnext=0,i.whave=0,i.window=new Uint8Array(i.wsize)),r>=i.wsize?(i.window.set(t.subarray(n-i.wsize,n),0),i.wnext=0,i.whave=i.wsize):((a=i.wsize-i.wnext)>r&&(a=r),i.window.set(t.subarray(n-r,n-r+a),i.wnext),(r-=a)?(i.window.set(t.subarray(n-r,n),0),i.wnext=r,i.whave=i.wsize):(i.wnext+=a,i.wnext===i.wsize&&(i.wnext=0),i.whave<i.wsize&&(i.whave+=a))),0},Yr={inflateReset:Wr,inflateReset2:qr,inflateResetKeep:Hr,inflateInit:function(e){return Zr(e,15)},inflateInit2:Zr,inflate:function(e,t){var n,r,a,i,o,l,s,u,c,f,d,h,p,m,v,g,y,b,w,k,x,_,S,E,C=0,j=new Uint8Array(4),N=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]);if(!e||!e.state||!e.output||!e.input&&0!==e.avail_in)return Ar;(n=e.state).mode===Pr&&(n.mode=13),o=e.next_out,a=e.output,s=e.avail_out,i=e.next_in,r=e.input,l=e.avail_in,u=n.hold,c=n.bits,f=l,d=s,_=Nr;e:for(;;)switch(n.mode){case 1:if(0===n.wrap){n.mode=13;break}for(;c<16;){if(0===l)break e;l--,u+=r[i++]<<c,c+=8}if(2&n.wrap&&35615===u){n.check=0,j[0]=255&u,j[1]=u>>>8&255,n.check=Kt(n.check,j,2,0),u=0,c=0,n.mode=2;break}if(n.flags=0,n.head&&(n.head.done=!1),!(1&n.wrap)||(((255&u)<<8)+(u>>8))%31){e.msg="incorrect header check",n.mode=Mr;break}if((15&u)!==Lr){e.msg="unknown compression method",n.mode=Mr;break}if(c-=4,x=8+(15&(u>>>=4)),0===n.wbits)n.wbits=x;else if(x>n.wbits){e.msg="invalid window size",n.mode=Mr;break}n.dmax=1<<n.wbits,e.adler=n.check=1,n.mode=512&u?10:Pr,u=0,c=0;break;case 2:for(;c<16;){if(0===l)break e;l--,u+=r[i++]<<c,c+=8}if(n.flags=u,(255&n.flags)!==Lr){e.msg="unknown compression method",n.mode=Mr;break}if(57344&n.flags){e.msg="unknown header flags set",n.mode=Mr;break}n.head&&(n.head.text=u>>8&1),512&n.flags&&(j[0]=255&u,j[1]=u>>>8&255,n.check=Kt(n.check,j,2,0)),u=0,c=0,n.mode=3;case 3:for(;c<32;){if(0===l)break e;l--,u+=r[i++]<<c,c+=8}n.head&&(n.head.time=u),512&n.flags&&(j[0]=255&u,j[1]=u>>>8&255,j[2]=u>>>16&255,j[3]=u>>>24&255,n.check=Kt(n.check,j,4,0)),u=0,c=0,n.mode=4;case 4:for(;c<16;){if(0===l)break e;l--,u+=r[i++]<<c,c+=8}n.head&&(n.head.xflags=255&u,n.head.os=u>>8),512&n.flags&&(j[0]=255&u,j[1]=u>>>8&255,n.check=Kt(n.check,j,2,0)),u=0,c=0,n.mode=5;case 5:if(1024&n.flags){for(;c<16;){if(0===l)break e;l--,u+=r[i++]<<c,c+=8}n.length=u,n.head&&(n.head.extra_len=u),512&n.flags&&(j[0]=255&u,j[1]=u>>>8&255,n.check=Kt(n.check,j,2,0)),u=0,c=0}else n.head&&(n.head.extra=null);n.mode=6;case 6:if(1024&n.flags&&((h=n.length)>l&&(h=l),h&&(n.head&&(x=n.head.extra_len-n.length,n.head.extra||(n.head.extra=new Uint8Array(n.head.extra_len)),n.head.extra.set(r.subarray(i,i+h),x)),512&n.flags&&(n.check=Kt(n.check,r,h,i)),l-=h,i+=h,n.length-=h),n.length))break e;n.length=0,n.mode=7;case 7:if(2048&n.flags){if(0===l)break e;h=0;do{x=r[i+h++],n.head&&x&&n.length<65536&&(n.head.name+=String.fromCharCode(x))}while(x&&h<l);if(512&n.flags&&(n.check=Kt(n.check,r,h,i)),l-=h,i+=h,x)break e}else n.head&&(n.head.name=null);n.length=0,n.mode=8;case 8:if(4096&n.flags){if(0===l)break e;h=0;do{x=r[i+h++],n.head&&x&&n.length<65536&&(n.head.comment+=String.fromCharCode(x))}while(x&&h<l);if(512&n.flags&&(n.check=Kt(n.check,r,h,i)),l-=h,i+=h,x)break e}else n.head&&(n.head.comment=null);n.mode=9;case 9:if(512&n.flags){for(;c<16;){if(0===l)break e;l--,u+=r[i++]<<c,c+=8}if(u!==(65535&n.check)){e.msg="header crc mismatch",n.mode=Mr;break}u=0,c=0}n.head&&(n.head.hcrc=n.flags>>9&1,n.head.done=!0),e.adler=n.check=0,n.mode=Pr;break;case 10:for(;c<32;){if(0===l)break e;l--,u+=r[i++]<<c,c+=8}e.adler=n.check=Dr(u),u=0,c=0,n.mode=11;case 11:if(0===n.havedict)return e.next_out=o,e.avail_out=s,e.next_in=i,e.avail_in=l,n.hold=u,n.bits=c,Ir;e.adler=n.check=1,n.mode=Pr;case Pr:if(t===Cr||t===jr)break e;case 13:if(n.last){u>>>=7&c,c-=7&c,n.mode=27;break}for(;c<3;){if(0===l)break e;l--,u+=r[i++]<<c,c+=8}switch(n.last=1&u,c-=1,3&(u>>>=1)){case 0:n.mode=14;break;case 1:if($r(n),n.mode=20,t===jr){u>>>=2,c-=2;break e}break;case 2:n.mode=17;break;case 3:e.msg="invalid block type",n.mode=Mr}u>>>=2,c-=2;break;case 14:for(u>>>=7&c,c-=7&c;c<32;){if(0===l)break e;l--,u+=r[i++]<<c,c+=8}if((65535&u)!==(u>>>16^65535)){e.msg="invalid stored block lengths",n.mode=Mr;break}if(n.length=65535&u,u=0,c=0,n.mode=15,t===jr)break e;case 15:n.mode=16;case 16:if(h=n.length){if(h>l&&(h=l),h>s&&(h=s),0===h)break e;a.set(r.subarray(i,i+h),o),l-=h,i+=h,s-=h,o+=h,n.length-=h;break}n.mode=Pr;break;case 17:for(;c<14;){if(0===l)break e;l--,u+=r[i++]<<c,c+=8}if(n.nlen=257+(31&u),u>>>=5,c-=5,n.ndist=1+(31&u),u>>>=5,c-=5,n.ncode=4+(15&u),u>>>=4,c-=4,n.nlen>286||n.ndist>30){e.msg="too many length or distance symbols",n.mode=Mr;break}n.have=0,n.mode=18;case 18:for(;n.have<n.ncode;){for(;c<3;){if(0===l)break e;l--,u+=r[i++]<<c,c+=8}n.lens[N[n.have++]]=7&u,u>>>=3,c-=3}for(;n.have<19;)n.lens[N[n.have++]]=0;if(n.lencode=n.lendyn,n.lenbits=7,S={bits:n.lenbits},_=Sr(0,n.lens,0,19,n.lencode,0,n.work,S),n.lenbits=S.bits,_){e.msg="invalid code lengths set",n.mode=Mr;break}n.have=0,n.mode=19;case 19:for(;n.have<n.nlen+n.ndist;){for(;g=(C=n.lencode[u&(1<<n.lenbits)-1])>>>16&255,y=65535&C,!((v=C>>>24)<=c);){if(0===l)break e;l--,u+=r[i++]<<c,c+=8}if(y<16)u>>>=v,c-=v,n.lens[n.have++]=y;else{if(16===y){for(E=v+2;c<E;){if(0===l)break e;l--,u+=r[i++]<<c,c+=8}if(u>>>=v,c-=v,0===n.have){e.msg="invalid bit length repeat",n.mode=Mr;break}x=n.lens[n.have-1],h=3+(3&u),u>>>=2,c-=2}else if(17===y){for(E=v+3;c<E;){if(0===l)break e;l--,u+=r[i++]<<c,c+=8}c-=v,x=0,h=3+(7&(u>>>=v)),u>>>=3,c-=3}else{for(E=v+7;c<E;){if(0===l)break e;l--,u+=r[i++]<<c,c+=8}c-=v,x=0,h=11+(127&(u>>>=v)),u>>>=7,c-=7}if(n.have+h>n.nlen+n.ndist){e.msg="invalid bit length repeat",n.mode=Mr;break}for(;h--;)n.lens[n.have++]=x}}if(n.mode===Mr)break;if(0===n.lens[256]){e.msg="invalid code -- missing end-of-block",n.mode=Mr;break}if(n.lenbits=9,S={bits:n.lenbits},_=Sr(1,n.lens,0,n.nlen,n.lencode,0,n.work,S),n.lenbits=S.bits,_){e.msg="invalid literal/lengths set",n.mode=Mr;break}if(n.distbits=6,n.distcode=n.distdyn,S={bits:n.distbits},_=Sr(2,n.lens,n.nlen,n.ndist,n.distcode,0,n.work,S),n.distbits=S.bits,_){e.msg="invalid distances set",n.mode=Mr;break}if(n.mode=20,t===jr)break e;case 20:n.mode=21;case 21:if(l>=6&&s>=258){e.next_out=o,e.avail_out=s,e.next_in=i,e.avail_in=l,n.hold=u,n.bits=c,yr(e,d),o=e.next_out,a=e.output,s=e.avail_out,i=e.next_in,r=e.input,l=e.avail_in,u=n.hold,c=n.bits,n.mode===Pr&&(n.back=-1);break}for(n.back=0;g=(C=n.lencode[u&(1<<n.lenbits)-1])>>>16&255,y=65535&C,!((v=C>>>24)<=c);){if(0===l)break e;l--,u+=r[i++]<<c,c+=8}if(g&&0===(240&g)){for(b=v,w=g,k=y;g=(C=n.lencode[k+((u&(1<<b+w)-1)>>b)])>>>16&255,y=65535&C,!(b+(v=C>>>24)<=c);){if(0===l)break e;l--,u+=r[i++]<<c,c+=8}u>>>=b,c-=b,n.back+=b}if(u>>>=v,c-=v,n.back+=v,n.length=y,0===g){n.mode=26;break}if(32&g){n.back=-1,n.mode=Pr;break}if(64&g){e.msg="invalid literal/length code",n.mode=Mr;break}n.extra=15&g,n.mode=22;case 22:if(n.extra){for(E=n.extra;c<E;){if(0===l)break e;l--,u+=r[i++]<<c,c+=8}n.length+=u&(1<<n.extra)-1,u>>>=n.extra,c-=n.extra,n.back+=n.extra}n.was=n.length,n.mode=23;case 23:for(;g=(C=n.distcode[u&(1<<n.distbits)-1])>>>16&255,y=65535&C,!((v=C>>>24)<=c);){if(0===l)break e;l--,u+=r[i++]<<c,c+=8}if(0===(240&g)){for(b=v,w=g,k=y;g=(C=n.distcode[k+((u&(1<<b+w)-1)>>b)])>>>16&255,y=65535&C,!(b+(v=C>>>24)<=c);){if(0===l)break e;l--,u+=r[i++]<<c,c+=8}u>>>=b,c-=b,n.back+=b}if(u>>>=v,c-=v,n.back+=v,64&g){e.msg="invalid distance code",n.mode=Mr;break}n.offset=y,n.extra=15&g,n.mode=24;case 24:if(n.extra){for(E=n.extra;c<E;){if(0===l)break e;l--,u+=r[i++]<<c,c+=8}n.offset+=u&(1<<n.extra)-1,u>>>=n.extra,c-=n.extra,n.back+=n.extra}if(n.offset>n.dmax){e.msg="invalid distance too far back",n.mode=Mr;break}n.mode=25;case 25:if(0===s)break e;if(h=d-s,n.offset>h){if((h=n.offset-h)>n.whave&&n.sane){e.msg="invalid distance too far back",n.mode=Mr;break}h>n.wnext?(h-=n.wnext,p=n.wsize-h):p=n.wnext-h,h>n.length&&(h=n.length),m=n.window}else m=a,p=o-n.offset,h=n.length;h>s&&(h=s),s-=h,n.length-=h;do{a[o++]=m[p++]}while(--h);0===n.length&&(n.mode=21);break;case 26:if(0===s)break e;a[o++]=n.length,s--,n.mode=21;break;case 27:if(n.wrap){for(;c<32;){if(0===l)break e;l--,u|=r[i++]<<c,c+=8}if(d-=s,e.total_out+=d,n.total+=d,d&&(e.adler=n.check=n.flags?Kt(n.check,a,d,o-d):Yt(n.check,a,d,o-d)),d=s,(n.flags?u:Dr(u))!==n.check){e.msg="incorrect data check",n.mode=Mr;break}u=0,c=0}n.mode=28;case 28:if(n.wrap&&n.flags){for(;c<32;){if(0===l)break e;l--,u+=r[i++]<<c,c+=8}if(u!==(4294967295&n.total)){e.msg="incorrect length check",n.mode=Mr;break}u=0,c=0}n.mode=29;case 29:_=Rr;break e;case Mr:_=Tr;break e;case 31:return Or;default:return Ar}return e.next_out=o,e.avail_out=s,e.next_in=i,e.avail_in=l,n.hold=u,n.bits=c,(n.wsize||d!==e.avail_out&&n.mode<Mr&&(n.mode<27||t!==Er))&&Gr(e,e.output,e.next_out,d-e.avail_out),f-=e.avail_in,d-=e.avail_out,e.total_in+=f,e.total_out+=d,n.total+=d,n.wrap&&d&&(e.adler=n.check=n.flags?Kt(n.check,a,d,e.next_out-d):Yt(n.check,a,d,e.next_out-d)),e.data_type=n.bits+(n.last?64:0)+(n.mode===Pr?128:0)+(20===n.mode||15===n.mode?256:0),(0===f&&0===d||t===Er)&&_===Nr&&(_=zr),_},inflateEnd:function(e){if(!e||!e.state)return Ar;var t=e.state;return t.window&&(t.window=null),e.state=null,Nr},inflateGetHeader:function(e,t){if(!e||!e.state)return Ar;var n=e.state;return 0===(2&n.wrap)?Ar:(n.head=t,t.done=!1,Nr)},inflateSetDictionary:function(e,t){var n,r=t.length;return e&&e.state?0!==(n=e.state).wrap&&11!==n.mode?Ar:11===n.mode&&Yt(1,t,r,0)!==n.check?Tr:Gr(e,t,r,r)?(n.mode=31,Or):(n.havedict=1,Nr):Ar},inflateInfo:"pako inflate (from Nodeca project)"};var Qr=function(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1},Kr=Object.prototype.toString,Xr=Jt.Z_NO_FLUSH,Jr=Jt.Z_FINISH,ea=Jt.Z_OK,ta=Jt.Z_STREAM_END,na=Jt.Z_NEED_DICT,ra=Jt.Z_STREAM_ERROR,aa=Jt.Z_DATA_ERROR,ia=Jt.Z_MEM_ERROR;function oa(e){this.options=Qn({chunkSize:65536,windowBits:15,to:""},e||{});var t=this.options;t.raw&&t.windowBits>=0&&t.windowBits<16&&(t.windowBits=-t.windowBits,0===t.windowBits&&(t.windowBits=-15)),!(t.windowBits>=0&&t.windowBits<16)||e&&e.windowBits||(t.windowBits+=32),t.windowBits>15&&t.windowBits<48&&0===(15&t.windowBits)&&(t.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new ar,this.strm.avail_out=0;var n=Yr.inflateInit2(this.strm,t.windowBits);if(n!==ea)throw new Error(Xt[n]);if(this.header=new Qr,Yr.inflateGetHeader(this.strm,this.header),t.dictionary&&("string"===typeof t.dictionary?t.dictionary=tr(t.dictionary):"[object ArrayBuffer]"===Kr.call(t.dictionary)&&(t.dictionary=new Uint8Array(t.dictionary)),t.raw&&(n=Yr.inflateSetDictionary(this.strm,t.dictionary))!==ea))throw new Error(Xt[n])}function la(e,t){var n=new oa(t);if(n.push(e),n.err)throw n.msg||Xt[n.err];return n.result}oa.prototype.push=function(e,t){var n,r,a,i=this.strm,o=this.options.chunkSize,l=this.options.dictionary;if(this.ended)return!1;for(r=t===~~t?t:!0===t?Jr:Xr,"[object ArrayBuffer]"===Kr.call(e)?i.input=new Uint8Array(e):i.input=e,i.next_in=0,i.avail_in=i.input.length;;){for(0===i.avail_out&&(i.output=new Uint8Array(o),i.next_out=0,i.avail_out=o),(n=Yr.inflate(i,r))===na&&l&&((n=Yr.inflateSetDictionary(i,l))===ea?n=Yr.inflate(i,r):n===aa&&(n=na));i.avail_in>0&&n===ta&&i.state.wrap>0&&0!==e[i.next_in];)Yr.inflateReset(i),n=Yr.inflate(i,r);switch(n){case ra:case aa:case na:case ia:return this.onEnd(n),this.ended=!0,!1}if(a=i.avail_out,i.next_out&&(0===i.avail_out||n===ta))if("string"===this.options.to){var s=rr(i.output,i.next_out),u=i.next_out-s,c=nr(i.output,s);i.next_out=u,i.avail_out=o-u,u&&i.output.set(i.output.subarray(s,s+u),0),this.onData(c)}else this.onData(i.output.length===i.next_out?i.output:i.output.subarray(0,i.next_out));if(n!==ea||0!==a){if(n===ta)return n=Yr.inflateEnd(this.strm),this.onEnd(n),this.ended=!0,!0;if(0===i.avail_in)break}}return!0},oa.prototype.onData=function(e){this.chunks.push(e)},oa.prototype.onEnd=function(e){e===ea&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=Kn(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg};var sa={Inflate:oa,inflate:la,inflateRaw:function(e,t){return(t=t||{}).raw=!0,la(e,t)},ungzip:la,constants:Jt},ua=gr.gzip,ca=sa.ungzip,fa=n(778).Buffer,da={level:9},ha=function(e){var t=fa.from(e,"utf8"),n=ua(t,da);return fa.from(n).toString("base64")},pa=function(e){var t=fa.from(e,"base64"),n=ca(t,u({to:"string"},da));return fa.from(n).toString("utf8")},ma=function(t){var n=t.interlaceInventory,r=t.setInterlaceInventory,a=t.isIconAnimated,i=t.setIsIconAnimated,l=t.commandText,s=t.setCommandText,c=o((0,e.useState)(l),2),f=c[0],d=c[1],h=o((0,e.useState)(""),2),p=h[0],m=h[1],v=o((0,e.useState)(!1),2),g=v[0],y=v[1],b=o((0,e.useState)(!1),2),w=b[0],k=b[1],x=(0,e.useRef)(null),_=(0,e.useMemo)((function(){var e=function(e){var t=ha(e);return e.length<t.length?{r:e}:{c:t}}(l),t=new URLSearchParams(e).toString();return"".concat(window.location.origin,"/?").concat(t)}),[l]),S=_.length;return(0,e.useEffect)((function(){k(!1)}),[f]),(0,Q.jsxs)("div",{className:"OtherPage",children:[(0,Q.jsx)("input",{ref:x,id:"Upload",type:"File",hidden:!0,onChange:function(e){var t=e.target.files;if(null!==t&&void 0!==t&&t.length&&t[0]){var n=t[0],r=n.name.endsWith(".txt")?n.name.substring(0,n.name.length-4):n.name;m(r),n.text().then((function(e){d(e),s(e)}))}}}),(0,Q.jsx)(We,{title:"Options",children:(0,Q.jsxs)("div",{className:"OtherPageContent",children:[(0,Q.jsxs)($e,{children:["Interlace Inventory with GameData",(0,Q.jsx)("button",{className:"MainButton",onClick:function(){r(!n)},children:n?"ON":"OFF"})]}),(0,Q.jsx)(Ge,{children:"Toggle whether Visible Inventory should be displayed separetely from Game Data or interlaced."}),(0,Q.jsxs)($e,{children:["Enable Animated Item Icons",(0,Q.jsx)("button",{className:"MainButton",onClick:function(){i(!a)},children:a?"ON":"OFF"})]}),(0,Q.jsx)(Ge,{children:"Toggle whether items such as the champion abilities or Travel Medallion use animated or still icons."}),(0,Q.jsx)($e,{children:"Text Import / Export"}),(0,Q.jsx)(Ge,{children:"You can also directly copy, paste, or edit the commands here"}),(0,Q.jsxs)(Ye,{children:[(0,Q.jsx)("button",{className:"MainButton",onClick:function(){x.current&&x.current.click()},children:"Import"}),(0,Q.jsx)("button",{className:"MainButton",onClick:function(){!function(e,t){var n=new Blob([e],{type:"text/plain;charset=utf-8"});ct(n,t)}(f,p+".txt"||0)},children:"Export"}),(0,Q.jsx)("input",{className:"MainInput",spellCheck:!1,value:p,onChange:function(e){m(e.target.value)},placeholder:"File name"}),(0,Q.jsx)("textarea",{className:"MainInput",spellCheck:!1,value:f,onChange:function(e){d(e.target.value)}}),f!==l&&(0,Q.jsxs)(Q.Fragment,{children:[(0,Q.jsx)("button",{className:"MainButton",onClick:function(){s(f)},children:"Save"}),(0,Q.jsx)("span",{className:"Example",children:"Don't forget to save changes"})]})]}),(0,Q.jsx)($e,{children:"Direct URL"}),(0,Q.jsx)(Ge,{children:"Use this to open the simulator with the steps automatically loaded."}),(0,Q.jsx)("div",{children:f!==l?(0,Q.jsx)(Ye,{emphasized:!0,children:"You must save the changes above to access the updated URL"}):(0,Q.jsxs)(Q.Fragment,{children:[S>2048&&(0,Q.jsxs)(Ye,{emphasized:!0,children:["Warning: The URL is too long (",S," characters) and may not work in certain browsers. Export as file instead if you encounter any problems."]}),(0,Q.jsx)("p",{className:"Reference",style:u({fontSize:"10pt",color:"#aaaaaa"},!g&&{textOverflow:"ellipsis",overflowX:"hidden",whiteSpace:"nowrap"}),children:_}),(0,Q.jsxs)(Ye,{children:[(0,Q.jsx)("button",{className:"MainButton",onClick:function(){y(!g)},children:g?"Hide":"Expand"}),(0,Q.jsx)("button",{className:"MainButton",disabled:f!==l,onClick:function(){window.navigator.clipboard.writeText(_),k(!0)},children:"Copy"}),w&&(0,Q.jsx)("span",{className:"Example",children:"Link copied!"})]})]})}),(0,Q.jsx)("h3",{className:"Reference",children:"Credits"}),(0,Q.jsxs)("p",{className:"Reference",children:["This app is a fork of ",(0,Q.jsx)("a",{href:"https://github.com/iTNTPiston",children:"iTNTPiston"}),"'s ",(0,Q.jsx)("a",{href:"https://dupl.itntpiston.app/",children:"dupl.itntpiston.app"}),", and is modified by ",(0,Q.jsx)("a",{href:"https://github.com/sup39",children:"sup39"}),". This app is released under MIT license:"]}),(0,Q.jsx)("p",{className:"Reference License",children:(0,Q.jsx)("code",{children:'MIT License\n\nCopyright (c) 2022 Michael\nCopyright (c) 2022 sup39\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the "Software"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.'})}),(0,Q.jsxs)("p",{className:"Reference",children:["The source code of this app can be found on ",(0,Q.jsx)("a",{href:"https://github.com/sup39/botw-hundo-dupl",children:"Github"}),"."]})]})})]})},va=e.memo((function(t){var n=t.isIconAnimated,r=(0,e.useContext)(ue).getAllItems();return(0,Q.jsx)("div",{className:"OtherPage",children:(0,Q.jsx)(We,{title:"Item Gallery",children:(0,Q.jsxs)("div",{className:"OtherPageContent",children:[(0,Q.jsx)(Ye,{children:"You can find every single item here."}),(0,Q.jsx)(Ye,{children:"The value at the bottom left of equipments is the default durability"}),(0,Q.jsx)("div",{children:Object.values(r).map((function(e,t){return(0,Q.jsx)(Ue,{slot:Xe(e.createDefaultStack(),!1,n)},t)}))})]})})})})),ga=function(){var e=localStorage.getItem("HDS.Setting"),t={interlaceInventory:!1,isIconAnimated:!0};return e?u(u({},t),JSON.parse(e)):t}(),ya=function(){var t=(0,e.useContext)(ue).searchItem,n=o((0,e.useState)("#simulation"),2),r=n[0],a=n[1],l=o((0,e.useState)(ga.interlaceInventory),2),s=l[0],u=l[1],c=o((0,e.useState)(ga.isIconAnimated),2),f=c[0],d=c[1];(0,e.useEffect)((function(){localStorage.setItem("HDS.Setting",JSON.stringify({interlaceInventory:s,isIconAnimated:f}))}),[s,f]);var h=o((0,e.useState)(function(){var e=localStorage.getItem("HDS.CurrentCommandsText");return e?e.split("\n"):["Get 5 Diamond 1 Slate 1 Glider 4 SpiritOrb","Save","# Magically break 4 slots","Break 4 Slots","Reload","Save","Reload"]}()),2),p=h[0],m=h[1],v=o((0,e.useState)(""),2),g=v[0],y=v[1],b=o((0,e.useState)(0),2),w=b[0],k=b[1],C=o((0,e.useState)(0),2),N=C[0],R=C[1],I=o((0,e.useState)(0),2),A=I[0],T=I[1],F=o((0,e.useState)(-1),2),B=F[0],U=F[1],W=(0,e.useRef)(null),q=(0,e.useCallback)((function(e){return function(e,t){var n=function(e,t){for(var n=[],r=e.search(t);-1!==r;)0!==r&&n.push(e.substring(0,r)),n.push(e[r]),r=(e=e.substring(r+1)).search(t);return""!==e&&n.push(e),n}(e,/[\s.[\]]/).filter((function(e){return!e.match(/^\s*$/)}));if(0===n.length)return new H("","");var r=je(n);if(r)return r;var a=function(e){return t(e)||"Item not found: ".concat(e)};if(n.length>0&&S(n[0],"initialize")){var i=Ne(n,1,t);return"string"===typeof i?new H(e,i):new j(i)}if(n.length>1&&S(n[0],"init")&&S(n[1],"gamedata")){var o=Ne(n,2,t);return"string"===typeof o?new H(e,o):new Se(o)}if(x(n[0])){if(2===n.length){var l=a(n[1]);return"string"===typeof l?new H(e,l):new O(n[0],[new Ce(l,1)])}if(n.length>2){var s=Ne(n,1,t);return"string"===typeof s?new H(e,s):new O(n[0],s)}}if(_(n[0])){if(6===n.length&&S(n[3],"from")&&S(n[4],"slot")){var u=Re(n[1]);if(void 0===u)return new H(e,Ie(n[1]));var c=n[2],f=parseInt(n[5]);if(!Number.isInteger(f))return new H(e,Ie(n[5]));var d=a(c);return"string"===typeof d?new H(e,d):new z(n[0],[new Ce(d,u)],f-1)}if(5===n.length&&S(n[2],"from")&&S(n[3],"slot")){var h=n[1],p=parseInt(n[4]);if(!Number.isInteger(p))return new H(e,Ie(n[4]));var m=a(h);return"string"===typeof m?new H(e,m):new z(n[0],[new Ce(m,1)],p-1)}if(2===n.length){var v=a(n[1]);return"string"===typeof v?new H(e,v):new z(n[0],[new Ce(v,1)],0)}if(n.length>2){var g=Ne(n,1,t);return"string"===typeof g?new H(e,g):new z(n[0],g,0)}}if(n.length>2&&E(n[0],["d&p","dnp","dap"])){var y=Ne(n,1,t);return"string"===typeof y?new H(e,y):new L(y)}if(S(n[0],"equip")){if(5===n.length&&S(n[2],"in")&&S(n[3],"slot")){var b=n[1],w=parseInt(n[4]);if(!Number.isInteger(w))return new H(e,Ie(n[4]));var k=a(b);return"string"===typeof k?new H(e,k):new P(k.item,w-1,!1)}if(2===n.length){var C=a(n[1]);return"string"===typeof C?new H(e,C):new P(C.item,0,!0)}}if(S(n[0],"unequip")){if(5===n.length&&S(n[2],"in")&&S(n[3],"slot")){var N=n[1],R=parseInt(n[4]);if(!Number.isInteger(R))return new H(e,Ie(n[4]));var I=a(N);return"string"===typeof I?new H(e,I):new M(I.item,R-1,!1)}if(2===n.length){var A=a(n[1]);return"string"===typeof A?new H(e,A):new M(A.item,-1,!0)}}if(3===n.length&&S(n[0],"shoot")&&S(n[2],"arrow")){var T=Re(n[1]);return void 0===T?new H(e,Ie(n[1])):new D(T)}if(n.length>2&&S(n[0],"write")&&"["===n[1]){for(var F="",B=2;B<n.length&&"]"!==n[B];){if("["===n[B])return new H(e,'Invalid "[" character in metadata');F+=n[B],B++}var U=xe(F);if("string"===typeof U)return new H(e,U);if(B++,n.length<=B||"to"!==n[B])return new H(e,"Missing item to write to");var W=a(n[++B]);if("string"===typeof W)return new H(e,W);if(n.length<=B+1)return new Ee(W.item,0,U);if(n.length===B+4&&S(n[B+1],"in")&&S(n[B+2],"slot")){var q=parseInt(n[B+3]);return Number.isInteger(q)?new Ee(W.item,q-1,U):new H(e,Ie(n[4]))}}return n.length>0?new _e(n[0]):new H(e,"Unknown command")}(e,t)}),[t]),Z=(0,e.useMemo)((function(){return p.map((function(e){return q(e)}))}),[p,q]),V=(0,e.useMemo)((function(){var e=[],t=new nt(new et(new Je([])),null,{},new tt(new Je([]),0));return Z.forEach((function(n){t.executeCommand(n),e.push(t.deepClone())})),e}),[Z]),$=(0,e.useCallback)((function(e){window.location.hash=e,a(e)}),[]);return(0,e.useEffect)((function(){$(window.location.hash||"#simulation")}),[window.location.hash]),(0,e.useEffect)((function(){window.onkeydown=function(e){if("ArrowDown"===e.code){for(var t=w+1;t<p.length&&void 0!==Z[t].getError();)t++;if(t===p.length-1){var n=i(p);n.push(""),m(n),k(n.length-1)}else k(Math.min(p.length-1,t))}else if("ArrowUp"===e.code){for(var r=w-1;r>=0&&void 0!==Z[r].getError();)r--;k(Math.max(0,r))}}}),[p,w,Z]),(0,e.useEffect)((function(){var e=p.join("\n");localStorage.setItem("HDS.CurrentCommandsText",e)}),[p]),(0,e.useEffect)((function(){if(B<0||B>=p.length)U(-1);else if(W.current){var e=W.current.getBoundingClientRect();e.bottom>window.innerHeight&&T(A-e.height)}}),[W,B,p]),(0,Q.jsxs)("div",{className:"Calamity",children:[(0,Q.jsxs)("div",{id:"NavBar",style:{backgroundColor:"#262626",color:"#ffffff",height:40},children:[(0,Q.jsx)("button",{className:"MainButton",onClick:function(){$("#simulation")},children:"Simulation"}),(0,Q.jsx)("button",{className:"MainButton",onClick:function(){$("#reference")},children:"Commands"}),(0,Q.jsx)("button",{className:"MainButton",onClick:function(){$("#items")},children:"Items"}),(0,Q.jsx)("button",{className:"MainButton",onClick:function(){$("#options")},children:"Options"}),"Helpful reading for understanding IST: ",(0,Q.jsx)("a",{href:"https://restite.org/reload/#",children:"https://restite.org/reload"})," by savage13"]}),(0,Q.jsxs)("div",{id:"SidePane",style:{width:300,float:"left"},children:[(0,Q.jsx)("div",{style:{maxHeight:220,height:"30vh",border:"1px solid black",boxSizing:"border-box",overflowY:"hidden"},children:(0,Q.jsx)(We,{title:"Saves",children:w>=0&&w<V.length&&(0,Q.jsxs)("ol",{children:[!!V[w].getManualSave()&&(0,Q.jsx)(ze,{onClick:function(){y(""),$("#simulation")},useListItem:!0,isSelected:""===g,children:"Manual Save"}),Object.entries(V[w].getNamedSaves()).map((function(e,t){var n=o(e,2),r=n[0];n[1];return(0,Q.jsx)(ze,{onClick:function(){y(r),$("#simulation")},isSelected:g===r,useListItem:!0,children:r},t)}))]})})}),(0,Q.jsx)("div",{style:{minHeight:"calc( 70vh - 40px )",height:"calc( 100vh - 40px - 220px )",border:"1px solid black",boxSizing:"border-box",overflowY:"hidden"},children:(0,Q.jsx)(We,{title:"Instructions",children:(0,Q.jsxs)("ol",{style:{},children:[p.map((function(e,t){return(0,Q.jsx)(ze,{onClick:function(){k(t),$("#simulation");var e=document.getElementById("CommandInputField");e&&e.focus()},onContextMenu:function(e,n){U(t),R(e),T(n)},isSelected:w===t,isContextSelected:B===t,isComment:e.startsWith("#"),useListItem:!e.startsWith("#"),isInvalid:void 0!==Z[t].getError(),children:e},t)})),(0,Q.jsx)(ze,{onClick:function(){var e=i(p);e.push(""),m(e)},onContextMenu:function(){var e=i(p);e.push(""),m(e)},children:"(new)"})]})})})]}),(0,Q.jsxs)("div",{id:"MainPane",style:{position:"absolute",top:40,right:0,bottom:0,left:300,backgroundColor:"#262626"},children:["#simulation"===r&&(0,Q.jsxs)(Q.Fragment,{children:[(0,Q.jsx)("div",{style:{maxHeight:220,height:"30vh",overflowY:"hidden",color:"white",backgroundColor:"#262626"},children:w>=0&&w<Z.length?(0,Q.jsx)(We,{title:"Save Data",children:function(){if(""===g){var e=V[w].getManualSave();if(e)return(0,Q.jsx)(Ze,{slots:e.getDisplayedSlots(f)})}else if(g){var t=V[w].getNamedSaves();if(g in t){var n=t[g];return(0,Q.jsx)(Ze,{slots:n.getDisplayedSlots(f)})}}return null}()}):(0,Q.jsx)(We,{title:"Select an instruction on the left to view it"})}),(0,Q.jsx)("div",{style:{minHeight:"calc( 70vh - 40px )",height:"calc( 100vh - 40px - 220px )",border:"1px solid black",boxSizing:"border-box",overflowY:"hidden"},children:w>=0&&w<Z.length&&(0,Q.jsx)(Ke,{overlaySave:s,isIconAnimated:f,command:p[w],commandError:Z[w].getError(),simulationState:V[w],editCommand:function(e){var t=i(p);t[w]=e,m(t)}})})]}),"#reference"===r&&(0,Q.jsx)(rt,{}),"#items"===r&&(0,Q.jsx)(va,{isIconAnimated:f}),"#options"===r&&(0,Q.jsx)(ma,{interlaceInventory:s,setInterlaceInventory:u,isIconAnimated:f,setIsIconAnimated:d,commandText:p.join("\n"),setCommandText:function(e){m(e.split("\n"))}})]}),B>=0&&B<Z.length&&(0,Q.jsx)("div",{style:{position:"absolute",top:0,left:0,width:"100vw",height:"100vh"},onClick:function(){U(-1)},onContextMenu:function(e){U(-1),e.preventDefault()},children:(0,Q.jsx)("div",{ref:W,style:{position:"absolute",top:A,left:N,width:"200px",backgroundColor:"white",border:"1px solid black"},children:(0,Q.jsxs)("ul",{style:{margin:0,listStyleType:"none",paddingInlineStart:0},children:[(0,Q.jsx)(ze,{onClick:function(){var e=i(p);e.splice(B,0,""),m(e),U(-1)},children:"Insert Above"}),(0,Q.jsx)(ze,{onClick:function(){if(B>0){var e=i(p),t=e[B];e[B]=e[B-1],e[B-1]=t,m(e),U(-1)}},children:"Move Up"}),(0,Q.jsx)(ze,{onClick:function(){confirm("Delete?")&&(m(p.filter((function(e,t){return t!==B}))),w>=p.length&&k(p.length-1),U(-1))},children:"Delete"})]})})})]})},ba=function(e){e&&e instanceof Function&&n.e(787).then(n.bind(n,787)).then((function(t){var n=t.getCLS,r=t.getFID,a=t.getFCP,i=t.getLCP,o=t.getTTFB;n(e),r(e),a(e),i(e),o(e)}))},wa=n(245),ka=function(){window.location.href=window.location.origin},xa=function(t){var n=t.children,r=(0,wa.parse)(window.location.search),a=o((0,e.useMemo)((function(){try{return[(e=r,"r"in e&&e.r?e.r:"c"in e&&e.c?pa(e.c):null),!1]}catch(t){return console.error(t),[null,"Fail to deserialize. The URL may be corrupted."]}var e}),[r]),2),i=a[0],l=a[1];return l?(0,Q.jsxs)(J,{hasError:!0,multiLine:!0,children:[(0,Q.jsx)(Ve,{children:"Error loading direct URL"}),(0,Q.jsx)($e,{children:l}),(0,Q.jsx)(Ye,{children:"The browser console may have useful information for debugging"}),(0,Q.jsx)(Ye,{emphasized:!0,children:"Press Continue to load existing data in the simulator instead"}),(0,Q.jsx)("button",{className:"MainButton",onClick:function(){ka()},children:"Continue"})]}):i?(localStorage.getItem("HDS.CurrentCommandsText")||(localStorage.setItem("HDS.CurrentCommandsText",i),ka()),(0,Q.jsx)(J,{multiLine:!0,children:(0,Q.jsxs)("div",{className:"OtherPageContent",children:[(0,Q.jsx)(Ve,{children:"Open Direct URL?"}),(0,Q.jsx)($e,{children:"You are trying to open a direct URL. This will automatically load data into the simulator."}),(0,Q.jsx)(Ye,{emphasized:!0,children:"This will override existing data and cannot be reversed"}),(0,Q.jsx)("button",{className:"MainButton",onClick:function(){localStorage.setItem("HDS.CurrentCommandsText",i),ka()},children:"Yes"}),(0,Q.jsx)("button",{className:"MainButton",onClick:function(){ka()},children:"No"}),(0,Q.jsxs)("div",{style:{marginTop:"50px",marginLeft:"10%",marginRight:"10%"},children:[(0,Q.jsx)(Ye,{children:"(Below is what the incoming data looks like)"}),(0,Q.jsx)("textarea",{className:"MainInput",spellCheck:!1,value:i})]})]})})):(0,Q.jsx)(Q.Fragment,{children:n})};t.createRoot(document.getElementById("root")).render((0,Q.jsx)(e.StrictMode,{children:(0,Q.jsx)(De,{children:(0,Q.jsx)(xa,{children:(0,Q.jsx)(fe,{children:(0,Q.jsx)(ya,{})})})})})),ba()}()}();
|
|
//# sourceMappingURL=main.3703e36b.js.map
|