Skip to content

Instantly share code, notes, and snippets.

@TheRook
Created April 12, 2023 22:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save TheRook/694a25c1e6bf9d4848ede21b9af5222d to your computer and use it in GitHub Desktop.
Save TheRook/694a25c1e6bf9d4848ede21b9af5222d to your computer and use it in GitHub Desktop.
rook
<!doctype html><html><head><meta charset="utf-8"><title>rook</title><meta name="viewport" content="width=device-width,initial-scale=1"><style>body{margin:0;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen,Ubuntu,Cantarell,"Fira Sans","Droid Sans","Helvetica Neue",sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}@font-face{font-family:"Exo,Roboto,Arial";font-display:swap}:root .light{--page-color:gainsboro;--bg-color:white;--basic-bg-color:white;--checkbox-accent-color:var(--accent-color);--text-color:#333;--basic-text-color:black;--highlighted-text-color:white;--button-color:white;--bg-button-color:var(--accent-color);--disabled-button-color:gray;--bg-disabled-button-color:white}@media (prefers-color-scheme:light){::backdrop,:root{--page-color:gainsboro;--bg-color:white;--basic-bg-color:white;--checkbox-accent-color:var(--accent-color);--text-color:#333;--basic-text-color:black;--highlighted-text-color:white;--button-color:white;--bg-button-color:var(--accent-color);--disabled-button-color:gray;--bg-disabled-button-color:white}}@supports (color:color-mix(in srgb,red 0%,red)){:root,:root .light{--page-color:color-mix(in srgb, var(--accent-color) 10%, white);--bg-color:color-mix(in srgb, var(--accent-color) 15%, white);--checkbox-accent-color:color-mix(
in srgb,
var(--accent-color) 75%,
var(--bg-color)
);--text-color:color-mix(in srgb, var(--accent-color) 90%, black);--highlighted-text-color:color-mix(
in srgb,
var(--accent-color) 10%,
white
);--button-color:color-mix(in srgb, var(--accent-color) 50%, black);--bg-button-color:color-mix(in srgb, var(--accent-color) 50%, white);--disabled-button-color:color-mix(in srgb, var(--accent-color) 70%, white);--bg-disabled-button-color:color-mix(
in srgb,
var(--accent-color) 20%,
white
)}}:root .dark{--page-color:#333;--bg-color:black;--basic-bg-color:black;--checkbox-accent-color:var(--accent-color);--text-color:gainsboro;--basic-text-color:white;--highlighted-text-color:black;--button-color:black;--bg-button-color:var(--accent-color);--disabled-button-color:white;--bg-disabled-button-color:black}@supports (color:color-mix(in srgb,red 0%,red)){:root .dark{--page-color:color-mix(in srgb, var(--accent-color) 10%, black);--bg-color:color-mix(in srgb, var(--accent-color) 15%, black);--checkbox-accent-color:color-mix(
in srgb,
var(--accent-color) 75%,
var(--bg-color)
);--text-color:color-mix(in srgb, var(--accent-color) 90%, white);--highlighted-text-color:color-mix(
in srgb,
var(--accent-color) 10%,
black
);--button-color:color-mix(in srgb, var(--accent-color) 50%, white);--bg-button-color:color-mix(in srgb, var(--accent-color) 50%, black);--disabled-button-color:color-mix(in srgb, var(--accent-color) 50%, black);--bg-disabled-button-color:color-mix(
in srgb,
var(--accent-color) 20%,
black
)}}@media (prefers-color-scheme:dark){::backdrop,:root{--page-color:#333;--bg-color:black;--basic-bg-color:black;--checkbox-accent-color:var(--accent-color);--text-color:gainsboro;--basic-text-color:white;--highlighted-text-color:black;--button-color:black;--bg-button-color:var(--accent-color);--disabled-button-color:white;--bg-disabled-button-color:black}@supports (color:color-mix(in srgb,red 0%,red)){:root{--page-color:color-mix(in srgb, var(--accent-color) 10%, black);--bg-color:color-mix(in srgb, var(--accent-color) 15%, black);--checkbox-accent-color:color-mix(
in srgb,
var(--accent-color) 75%,
var(--bg-color)
);--text-color:color-mix(in srgb, var(--accent-color) 90%, white);--highlighted-text-color:color-mix(
in srgb,
var(--accent-color) 10%,
black
);--button-color:color-mix(in srgb, var(--accent-color) 50%, white);--bg-button-color:color-mix(in srgb, var(--accent-color) 50%, black);--disabled-button-color:color-mix(
in srgb,
var(--accent-color) 50%,
black
);--bg-disabled-button-color:color-mix(
in srgb,
var(--accent-color) 20%,
black
)}}}body{font-weight:400;font-family:Exo}ol{display:flex;margin:0;padding:0;list-style:none}ol li{display:flex;align-items:center}button{border:solid var(--accent-color) .05em;user-select:none;background-color:var(--bg-button-color);color:var(--button-color);font-size:.8em;white-space:nowrap}button:disabled{color:var(--disabled-button-color);background-color:var(--bg-disabled-button-color);opacity:.5}button.flashing-button{animation-name:flashing-button-animation;animation-duration:.2s}@keyframes flashing-button-animation{0%{opacity:.85;outline:0}50%{opacity:1;outline:1px solid var(--button-color)}}a,a:visited{color:inherit}:focus{outline:1px solid var(--button-color)}::selection{background-color:var(--text-color);color:var(--bg-color)}@media (display-mode:standalone){body{max-inline-size:none}}.list-item-button{font-family:monospace;cursor:pointer;opacity:.75;padding-inline:0.5ch;padding-block:0.2em;user-select:none}.list-item-button:hover{opacity:1}.list-item-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.button-bar{display:flex;flex-wrap:wrap;column-gap:1.25ch;row-gap:.5em}.button-bar .button-group{display:flex;flex-wrap:wrap;column-gap:.75ch;row-gap:.5em}.button-bar button{block-size:2.5em;opacity:.85}.button-bar button:not([disabled]):hover{opacity:1}.button-bar button{padding-inline:1.5ch;font-family:inherit}.button-bar button:not([disabled]){cursor:pointer}@media (max-width:80ch){.button-bar button{block-size:2.25em;padding-inline:1ch}}@media (max-width:40ch){.button-bar button{font-size:.7em;block-size:1.75em}}dialog::backdrop{background-color:var(--basic-bg-color);opacity:.85}dialog{margin-block-start:min(10dvh,5em);flex-direction:column;width:min(40ch,75dvw);background-color:var(--page-color);color:var(--text-color);border:solid var(--accent-color) .1em;margin-inline:auto}dialog input{background-color:var(--bg-color);color:var(--text-color);border:solid var(--accent-color) .05em;height:1.8em;padding-inline:0.75ch;font-size:1em;margin-inline:1px}dialog form{display:flex;flex-direction:column;row-gap:1em;max-height:70dvh}dialog form .dialog-title{font-weight:500}dialog form p{display:flex;flex-direction:column;row-gap:1em;margin:0;padding-block:1em;overflow:auto}dialog label{display:flex;flex-direction:column;row-gap:.75em}dialog .button-bar{margin-block-start:0.5em}dialog .button-group:first-of-type{flex:1}@media (max-width:80ch){dialog input{height:1.4em}}.main-container{display:flex;height:100dvh;flex-direction:column;align-items:center;background-color:var(--page-color)}main{display:flex;flex-direction:column;flex:1;background-color:var(--bg-color);color:var(--text-color);margin:.5em;border:solid var(--accent-color) .05em;inline-size:85vw;min-block-size:20em}main>*{padding:.5em;border-block-end:solid var(--accent-color) 0.05em}main>:last-child{border-block-end:none}@media (orientation:portrait){main{inline-size:100vw}main{margin:0;border-width:0}main>:last-child{border-block-end:solid var(--accent-color) 0.05em}}@supports (aspect-ratio:1.75){@media (max-aspect-ratio:1.75){main{inline-size:100vw}main{margin:0;border-width:0}main>:last-child{border-block-end:solid var(--accent-color) 0.05em}}}@media (display-mode:standalone){main{inline-size:100vw}main{margin:0;border-width:0}main>:last-child{border-block-end:solid var(--accent-color) 0.05em}}@media (max-width:20ch){main{block-size:auto}}.button-bar-top{justify-content:flex-start}.button-bar-top .button-group:last-of-type{flex:1;justify-content:end}.navigation-bar{display:flex;column-gap:.75ch}.history-buttons{display:flex;column-gap:.75ch}.history-buttons button{font-family:monospace;padding-inline:1ch;align-self:start;block-size:1.9em;font-size:1em}.history-buttons button:not([disabled]){cursor:pointer}.breadcrumb{display:flex;overflow:hidden;margin-block-start:-0.05em;line-height:1.35em}.breadcrumb ol{flex-wrap:wrap;overflow:hidden;column-gap:.125ch}.breadcrumb li{padding-block:0.15em;padding-inline-start:0.25ch;overflow:hidden;column-gap:.5ch}.breadcrumb li::after{content:"/"}.breadcrumb .breadcrumb-item{opacity:.75;font-weight:400;text-decoration:underline dotted transparent 0.1em;text-underline-offset:0.25em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;-webkit-tap-highlight-color:transparent}.breadcrumb .breadcrumb-item:focus-visible{text-decoration:none}.breadcrumb li:last-of-type .breadcrumb-item{opacity:1;font-weight:500}.breadcrumb li:hover .breadcrumb-item-active{opacity:1}.breadcrumb .breadcrumb-item-active{cursor:pointer;text-decoration-color:var(--accent-color)}@media (max-width:40ch){.navigation-bar>*{font-size:.7em}}.entries{block-size:60vh;min-block-size:5vh;resize:vertical;overflow:auto;box-sizing:border-box}.entries ol{flex-direction:column}.entries li{padding:.25em;outline:0;column-gap:.75ch}.entries .entry-select{accent-color:var(--checkbox-accent-color);margin:0;max-block-size:1em}.entries .entry-name{display:flex;user-select:none;overflow:hidden;column-gap:.25ch;flex:1;cursor:pointer;-webkit-tap-highlight-color:transparent}.entries .entry-highlighted{background-color:var(--accent-color);color:var(--highlighted-text-color)}.entries .entry-highlighted ::selection{background-color:var(--text-color);color:var(--bg-color)}.entries .directory .entry-name::after{content:"/"}.button-bar-bottom{justify-content:flex-end;touch-action:none}.downloads{min-block-size:5vh;overflow:auto;flex:1}.downloads ol{flex-direction:column;row-gap:.75em}.downloads li{flex-direction:column;row-gap:.25em;align-items:normal}.downloads .download-entry{display:flex}.downloads .download-entry-name{flex:1}.downloads li progress{width:100%;block-size:1em;accent-color:var(--accent-color)}.info-bar{display:flex;flex-direction:column;align-items:center;margin:0;margin-block-end:0.4em}.info-bar .source-link{display:inline;font-size:.9em;color:var(--basic-text-color);margin-inline-start:2ch}.info-bar .icon{color:var(--accent-color);opacity:.85;cursor:pointer}.info-bar .icon:hover{opacity:1}.info-bar input[type=color]{inline-size:2.25ch;block-size:1.25em;padding:0;border-width:0;margin-inline-start:1ch;filter:opacity(0);vertical-align:middle}@media (max-width:128ch){.info-bar{margin-block-start:0em}}@supports (aspect-ratio:1.75){@media (max-aspect-ratio:1.75) and (max-width:128ch){.info-bar{margin-block-start:0.4em}}}@media (max-width:128ch),(display-mode:standalone){.info-bar .source-link{font-size:.8em}}@media (max-width:64ch){.info-bar .source-link{font-size:.8em}}@media (max-width:48ch){.info-bar .source-link{font-size:.7em}.info-bar input[type=color]{inline-size:1.25ch}}@media (max-width:40ch){.info-bar .source-link{font-size:.6em}.info-bar input[type=color]{inline-size:1ch}}.options-dialog label{flex-direction:row;flex-wrap:wrap;align-items:center;justify-content:space-between}.options-dialog input{margin-inline-start:1ch}.options-dialog input[disabled]{color:var(--disabled-button-color)}.options-dialog input[type=checkbox]{width:2ch;height:1em;accent-color:var(--accent-color);margin-inline:3px}.options-dialog input[type=number],.options-dialog input[type=password]{width:min(10ch,100%)}@media (max-width:80ch){.options-dialog input[type=checkbox]{width:1.5ch}}</style></head><body><script>!function(){"use strict";var e={448:function(e,t,n){var r=n(294),i=n(840);function o(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var a=new Set,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++)a.add(t[e])}var c=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),d=Object.prototype.hasOwnProperty,f=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,p={},h={};function m(e,t,n,r,i,o,a){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=a}var g={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){g[e]=new m(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];g[t]=new m(t,1,!1,e[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){g[e]=new m(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){g[e]=new m(e,2,!1,e,null,!1,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(e){g[e]=new m(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){g[e]=new m(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){g[e]=new m(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){g[e]=new m(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){g[e]=new m(e,5,!1,e.toLowerCase(),null,!1,!1)}));var v=/[\-:]([a-z])/g;function y(e){return e[1].toUpperCase()}function b(e,t,n,r){var i=g.hasOwnProperty(t)?g[t]:null;(null!==i?0!==i.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||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,i,r)&&(n=null),r||null===i?function(e){return!!d.call(h,e)||!d.call(p,e)&&(f.test(e)?h[e]=!0:(p[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):i.mustUseProperty?e[i.propertyName]=null===n?3!==i.type&&"":n:(t=i.attributeName,r=i.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(i=i.type)||4===i&&!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(v,y);g[t]=new m(t,1,!1,e,null,!1,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(v,y);g[t]=new m(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(v,y);g[t]=new m(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){g[e]=new m(e,1,!1,e.toLowerCase(),null,!1,!1)})),g.xlinkHref=new m("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){g[e]=new m(e,1,!1,e.toLowerCase(),null,!0,!0)}));var w=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,x=Symbol.for("react.element"),_=Symbol.for("react.portal"),k=Symbol.for("react.fragment"),E=Symbol.for("react.strict_mode"),S=Symbol.for("react.profiler"),T=Symbol.for("react.provider"),L=Symbol.for("react.context"),O=Symbol.for("react.forward_ref"),A=Symbol.for("react.suspense"),C=Symbol.for("react.suspense_list"),N=Symbol.for("react.memo"),P=Symbol.for("react.lazy");Symbol.for("react.scope"),Symbol.for("react.debug_trace_mode");var D=Symbol.for("react.offscreen");Symbol.for("react.legacy_hidden"),Symbol.for("react.cache"),Symbol.for("react.tracing_marker");var I=Symbol.iterator;function z(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=I&&e[I]||e["@@iterator"])?e:null}var R,F=Object.assign;function B(e){if(void 0===R)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);R=t&&t[1]||""}return"\n"+R+e}var j=!1;function U(e,t){if(!e||j)return"";j=!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(e){var r=e}Reflect.construct(e,[],t)}else{try{t.call()}catch(e){r=e}e.call(t.prototype)}else{try{throw Error()}catch(e){r=e}e()}}catch(t){if(t&&r&&"string"==typeof t.stack){for(var i=t.stack.split("\n"),o=r.stack.split("\n"),a=i.length-1,l=o.length-1;1<=a&&0<=l&&i[a]!==o[l];)l--;for(;1<=a&&0<=l;a--,l--)if(i[a]!==o[l]){if(1!==a||1!==l)do{if(a--,0>--l||i[a]!==o[l]){var s="\n"+i[a].replace(" at new "," at ");return e.displayName&&s.includes("<anonymous>")&&(s=s.replace("<anonymous>",e.displayName)),s}}while(1<=a&&0<=l);break}}}finally{j=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?B(e):""}function M(e){switch(e.tag){case 5:return B(e.type);case 16:return B("Lazy");case 13:return B("Suspense");case 19:return B("SuspenseList");case 0:case 2:case 15:return U(e.type,!1);case 11:return U(e.type.render,!1);case 1:return U(e.type,!0);default:return""}}function W(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 k:return"Fragment";case _:return"Portal";case S:return"Profiler";case E:return"StrictMode";case A:return"Suspense";case C:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case L:return(e.displayName||"Context")+".Consumer";case T:return(e._context.displayName||"Context")+".Provider";case O:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case N:return null!==(t=e.displayName||null)?t:W(e.type)||"Memo";case P:t=e._payload,e=e._init;try{return W(e(t))}catch(e){}}return null}function H(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 W(t);case 8:return t===E?"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 K(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function q(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function Y(e){e._valueTracker||(e._valueTracker=function(e){var t=q(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&void 0!==n&&"function"==typeof n.get&&"function"==typeof n.set){var i=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(e){r=""+e,o.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 G(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=q(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function V(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function Z(e,t){var n=t.checked;return F({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function $(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=K(null!=t.value?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function X(e,t){null!=(t=t.checked)&&b(e,"checked",t,!1)}function Q(e,t){X(e,t);var n=K(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,K(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&&V(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 i=0;i<n.length;i++)t["$"+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty("$"+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=""+K(n),t=null,i=0;i<e.length;i++){if(e[i].value===n)return e[i].selected=!0,void(r&&(e[i].defaultSelected=!0));null!==t||e[i].disabled||(t=e[i])}null!==t&&(t.selected=!0)}}function re(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(o(91));return F({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function ie(e,t){var n=t.value;if(null==n){if(n=t.children,t=t.defaultValue,null!=n){if(null!=t)throw Error(o(92));if(te(n)){if(1<n.length)throw Error(o(93));n=n[0]}t=n}null==t&&(t=""),n=t}e._wrapperState={initialValue:K(n)}}function oe(e,t){var n=K(t.value),r=K(t.defaultValue);null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=r&&(e.defaultValue=""+r)}function ae(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}function 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,de=(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 fe(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var pe={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},he=["Webkit","ms","Moz","O"];function me(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||pe.hasOwnProperty(e)&&pe[e]?(""+t).trim():t+"px"}function ge(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),i=me(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}Object.keys(pe).forEach((function(e){he.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),pe[t]=pe[e]}))}));var ve=F({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(ve[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(o(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(o(60));if("object"!=typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(o(61))}if(null!=t.style&&"object"!=typeof t.style)throw Error(o(62))}}function be(e,t){if(-1===e.indexOf("-"))return"string"==typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var we=null;function xe(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var _e=null,ke=null,Ee=null;function Se(e){if(e=bi(e)){if("function"!=typeof _e)throw Error(o(280));var t=e.stateNode;t&&(t=xi(t),_e(e.stateNode,e.type,t))}}function Te(e){ke?Ee?Ee.push(e):Ee=[e]:ke=e}function Le(){if(ke){var e=ke,t=Ee;if(Ee=ke=null,Se(e),t)for(e=0;e<t.length;e++)Se(t[e])}}function Oe(e,t){return e(t)}function Ae(){}var Ce=!1;function Ne(e,t,n){if(Ce)return e(t,n);Ce=!0;try{return Oe(e,t,n)}finally{Ce=!1,(null!==ke||null!==Ee)&&(Ae(),Le())}}function Pe(e,t){var n=e.stateNode;if(null===n)return null;var r=xi(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(o(231,t,typeof n));return n}var De=!1;if(c)try{var Ie={};Object.defineProperty(Ie,"passive",{get:function(){De=!0}}),window.addEventListener("test",Ie,Ie),window.removeEventListener("test",Ie,Ie)}catch(ce){De=!1}function ze(e,t,n,r,i,o,a,l,s){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(e){this.onError(e)}}var Re=!1,Fe=null,Be=!1,je=null,Ue={onError:function(e){Re=!0,Fe=e}};function Me(e,t,n,r,i,o,a,l,s){Re=!1,Fe=null,ze.apply(Ue,arguments)}function We(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 He(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 Ke(e){if(We(e)!==e)throw Error(o(188))}function qe(e){return null!==(e=function(e){var t=e.alternate;if(!t){if(null===(t=We(e)))throw Error(o(188));return t!==e?null:e}for(var n=e,r=t;;){var i=n.return;if(null===i)break;var a=i.alternate;if(null===a){if(null!==(r=i.return)){n=r;continue}break}if(i.child===a.child){for(a=i.child;a;){if(a===n)return Ke(i),e;if(a===r)return Ke(i),t;a=a.sibling}throw Error(o(188))}if(n.return!==r.return)n=i,r=a;else{for(var l=!1,s=i.child;s;){if(s===n){l=!0,n=i,r=a;break}if(s===r){l=!0,r=i,n=a;break}s=s.sibling}if(!l){for(s=a.child;s;){if(s===n){l=!0,n=a,r=i;break}if(s===r){l=!0,r=a,n=i;break}s=s.sibling}if(!l)throw Error(o(189))}}if(n.alternate!==r)throw Error(o(190))}if(3!==n.tag)throw Error(o(188));return n.stateNode.current===n?e:t}(e))?Ye(e):null}function Ye(e){if(5===e.tag||6===e.tag)return e;for(e=e.child;null!==e;){var t=Ye(e);if(null!==t)return t;e=e.sibling}return null}var Ge=i.unstable_scheduleCallback,Ve=i.unstable_cancelCallback,Ze=i.unstable_shouldYield,$e=i.unstable_requestPaint,Xe=i.unstable_now,Qe=i.unstable_getCurrentPriorityLevel,Je=i.unstable_ImmediatePriority,et=i.unstable_UserBlockingPriority,tt=i.unstable_NormalPriority,nt=i.unstable_LowPriority,rt=i.unstable_IdlePriority,it=null,ot=null,at=Math.clz32?Math.clz32:function(e){return 0===(e>>>=0)?32:31-(lt(e)/st|0)|0},lt=Math.log,st=Math.LN2,ut=64,ct=4194304;function dt(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 ft(e,t){var n=e.pendingLanes;if(0===n)return 0;var r=0,i=e.suspendedLanes,o=e.pingedLanes,a=268435455&n;if(0!==a){var l=a&~i;0!==l?r=dt(l):0!=(o&=a)&&(r=dt(o))}else 0!=(a=n&~i)?r=dt(a):0!==o&&(r=dt(o));if(0===r)return 0;if(0!==t&&t!==r&&0==(t&i)&&((i=r&-r)>=(o=t&-t)||16===i&&0!=(4194240&o)))return t;if(0!=(4&r)&&(r|=16&n),0!==(t=e.entangledLanes))for(e=e.entanglements,t&=r;0<t;)i=1<<(n=31-at(t)),r|=e[n],t&=~i;return r}function pt(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;default:return-1}}function ht(e){return 0!=(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function mt(){var e=ut;return 0==(4194240&(ut<<=1))&&(ut=64),e}function gt(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function vt(e,t,n){e.pendingLanes|=t,536870912!==t&&(e.suspendedLanes=0,e.pingedLanes=0),(e=e.eventTimes)[t=31-at(t)]=n}function yt(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-at(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}var bt=0;function wt(e){return 1<(e&=-e)?4<e?0!=(268435455&e)?16:536870912:4:1}var xt,_t,kt,Et,St,Tt=!1,Lt=[],Ot=null,At=null,Ct=null,Nt=new Map,Pt=new Map,Dt=[],It="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 zt(e,t){switch(e){case"focusin":case"focusout":Ot=null;break;case"dragenter":case"dragleave":At=null;break;case"mouseover":case"mouseout":Ct=null;break;case"pointerover":case"pointerout":Nt.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Pt.delete(t.pointerId)}}function Rt(e,t,n,r,i,o){return null===e||e.nativeEvent!==o?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:o,targetContainers:[i]},null!==t&&null!==(t=bi(t))&&_t(t),e):(e.eventSystemFlags|=r,t=e.targetContainers,null!==i&&-1===t.indexOf(i)&&t.push(i),e)}function Ft(e){var t=yi(e.target);if(null!==t){var n=We(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=He(n)))return e.blockedOn=t,void St(e.priority,(function(){kt(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 Bt(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=Zt(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n)return null!==(t=bi(n))&&_t(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 jt(e,t,n){Bt(e)&&n.delete(t)}function Ut(){Tt=!1,null!==Ot&&Bt(Ot)&&(Ot=null),null!==At&&Bt(At)&&(At=null),null!==Ct&&Bt(Ct)&&(Ct=null),Nt.forEach(jt),Pt.forEach(jt)}function Mt(e,t){e.blockedOn===t&&(e.blockedOn=null,Tt||(Tt=!0,i.unstable_scheduleCallback(i.unstable_NormalPriority,Ut)))}function Wt(e){function t(t){return Mt(t,e)}if(0<Lt.length){Mt(Lt[0],e);for(var n=1;n<Lt.length;n++){var r=Lt[n];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==Ot&&Mt(Ot,e),null!==At&&Mt(At,e),null!==Ct&&Mt(Ct,e),Nt.forEach(t),Pt.forEach(t),n=0;n<Dt.length;n++)(r=Dt[n]).blockedOn===e&&(r.blockedOn=null);for(;0<Dt.length&&null===(n=Dt[0]).blockedOn;)Ft(n),null===n.blockedOn&&Dt.shift()}var Ht=w.ReactCurrentBatchConfig,Kt=!0;function qt(e,t,n,r){var i=bt,o=Ht.transition;Ht.transition=null;try{bt=1,Gt(e,t,n,r)}finally{bt=i,Ht.transition=o}}function Yt(e,t,n,r){var i=bt,o=Ht.transition;Ht.transition=null;try{bt=4,Gt(e,t,n,r)}finally{bt=i,Ht.transition=o}}function Gt(e,t,n,r){if(Kt){var i=Zt(e,t,n,r);if(null===i)Kr(e,t,r,Vt,n),zt(e,r);else if(function(e,t,n,r,i){switch(t){case"focusin":return Ot=Rt(Ot,e,t,n,r,i),!0;case"dragenter":return At=Rt(At,e,t,n,r,i),!0;case"mouseover":return Ct=Rt(Ct,e,t,n,r,i),!0;case"pointerover":var o=i.pointerId;return Nt.set(o,Rt(Nt.get(o)||null,e,t,n,r,i)),!0;case"gotpointercapture":return o=i.pointerId,Pt.set(o,Rt(Pt.get(o)||null,e,t,n,r,i)),!0}return!1}(i,e,t,n,r))r.stopPropagation();else if(zt(e,r),4&t&&-1<It.indexOf(e)){for(;null!==i;){var o=bi(i);if(null!==o&&xt(o),null===(o=Zt(e,t,n,r))&&Kr(e,t,r,Vt,n),o===i)break;i=o}null!==i&&r.stopPropagation()}else Kr(e,t,r,null,n)}}var Vt=null;function Zt(e,t,n,r){if(Vt=null,null!==(e=yi(e=xe(r))))if(null===(t=We(e)))e=null;else if(13===(n=t.tag)){if(null!==(e=He(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 Vt=e,null}function $t(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(Qe()){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 Xt=null,Qt=null,Jt=null;function en(){if(Jt)return Jt;var e,t,n=Qt,r=n.length,i="value"in Xt?Xt.value:Xt.textContent,o=i.length;for(e=0;e<r&&n[e]===i[e];e++);var a=r-e;for(t=1;t<=a&&n[r-t]===i[o-t];t++);return Jt=i.slice(e,1<t?1-t:void 0)}function tn(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}function nn(){return!0}function rn(){return!1}function on(e){function t(t,n,r,i,o){for(var a in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=i,this.target=o,this.currentTarget=null,e)e.hasOwnProperty(a)&&(t=e[a],this[a]=t?t(i):i[a]);return this.isDefaultPrevented=(null!=i.defaultPrevented?i.defaultPrevented:!1===i.returnValue)?nn:rn,this.isPropagationStopped=rn,this}return F(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=nn)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=nn)},persist:function(){},isPersistent:nn}),t}var an,ln,sn,un={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},cn=on(un),dn=F({},un,{view:0,detail:0}),fn=on(dn),pn=F({},dn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Sn,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?(an=e.screenX-sn.screenX,ln=e.screenY-sn.screenY):ln=an=0,sn=e),an)},movementY:function(e){return"movementY"in e?e.movementY:ln}}),hn=on(pn),mn=on(F({},pn,{dataTransfer:0})),gn=on(F({},dn,{relatedTarget:0})),vn=on(F({},un,{animationName:0,elapsedTime:0,pseudoElement:0})),yn=F({},un,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),bn=on(yn),wn=on(F({},un,{data:0})),xn={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},_n={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"},kn={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function En(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=kn[e])&&!!t[e]}function Sn(){return En}var Tn=F({},dn,{key:function(e){if(e.key){var t=xn[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=tn(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?_n[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Sn,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}}),Ln=on(Tn),On=on(F({},pn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),An=on(F({},dn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Sn})),Cn=on(F({},un,{propertyName:0,elapsedTime:0,pseudoElement:0})),Nn=F({},pn,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),Pn=on(Nn),Dn=[9,13,27,32],In=c&&"CompositionEvent"in window,zn=null;c&&"documentMode"in document&&(zn=document.documentMode);var Rn=c&&"TextEvent"in window&&!zn,Fn=c&&(!In||zn&&8<zn&&11>=zn),Bn=String.fromCharCode(32),jn=!1;function Un(e,t){switch(e){case"keyup":return-1!==Dn.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Mn(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var Wn=!1,Hn={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 Kn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!Hn[e.type]:"textarea"===t}function qn(e,t,n,r){Te(r),0<(t=Yr(t,"onChange")).length&&(n=new cn("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Yn=null,Gn=null;function Vn(e){Br(e,0)}function Zn(e){if(G(wi(e)))return e}function $n(e,t){if("change"===e)return t}var Xn=!1;if(c){var Qn;if(c){var Jn="oninput"in document;if(!Jn){var er=document.createElement("div");er.setAttribute("oninput","return;"),Jn="function"==typeof er.oninput}Qn=Jn}else Qn=!1;Xn=Qn&&(!document.documentMode||9<document.documentMode)}function tr(){Yn&&(Yn.detachEvent("onpropertychange",nr),Gn=Yn=null)}function nr(e){if("value"===e.propertyName&&Zn(Gn)){var t=[];qn(t,Gn,e,xe(e)),Ne(Vn,t)}}function rr(e,t,n){"focusin"===e?(tr(),Gn=n,(Yn=t).attachEvent("onpropertychange",nr)):"focusout"===e&&tr()}function ir(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return Zn(Gn)}function or(e,t){if("click"===e)return Zn(t)}function ar(e,t){if("input"===e||"change"===e)return Zn(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 i=n[r];if(!d.call(t,i)||!lr(e[i],t[i]))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 dr(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?dr(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function fr(){for(var e=window,t=V();t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(e){n=!1}if(!n)break;t=V((e=t.contentWindow).document)}return t}function pr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}function hr(e){var t=fr(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&dr(n.ownerDocument.documentElement,n)){if(null!==r&&pr(n))if(t=r.start,void 0===(e=r.end)&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if((e=(t=n.ownerDocument||document)&&t.defaultView||window).getSelection){e=e.getSelection();var i=n.textContent.length,o=Math.min(r.start,i);r=void 0===r.end?o:Math.min(r.end,i),!e.extend&&o>r&&(i=r,r=o,o=i),i=cr(n,o);var a=cr(n,r);i&&a&&(1!==e.rangeCount||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&((t=t.createRange()).setStart(i.node,i.offset),e.removeAllRanges(),o>r?(e.addRange(t),e.extend(a.node,a.offset)):(t.setEnd(a.node,a.offset),e.addRange(t)))}for(t=[],e=n;e=e.parentNode;)1===e.nodeType&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for("function"==typeof n.focus&&n.focus(),n=0;n<t.length;n++)(e=t[n]).element.scrollLeft=e.left,e.element.scrollTop=e.top}}var mr=c&&"documentMode"in document&&11>=document.documentMode,gr=null,vr=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==gr||gr!==V(r)||(r="selectionStart"in(r=gr)&&pr(r)?{start:r.selectionStart,end:r.selectionEnd}:{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=Yr(vr,"onSelect")).length&&(t=new cn("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=gr)))}function xr(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var _r={animationend:xr("Animation","AnimationEnd"),animationiteration:xr("Animation","AnimationIteration"),animationstart:xr("Animation","AnimationStart"),transitionend:xr("Transition","TransitionEnd")},kr={},Er={};function Sr(e){if(kr[e])return kr[e];if(!_r[e])return e;var t,n=_r[e];for(t in n)if(n.hasOwnProperty(t)&&t in Er)return kr[e]=n[t];return e}c&&(Er=document.createElement("div").style,"AnimationEvent"in window||(delete _r.animationend.animation,delete _r.animationiteration.animation,delete _r.animationstart.animation),"TransitionEvent"in window||delete _r.transitionend.transition);var Tr=Sr("animationend"),Lr=Sr("animationiteration"),Or=Sr("animationstart"),Ar=Sr("transitionend"),Cr=new Map,Nr="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 Pr(e,t){Cr.set(e,t),s(t,[e])}for(var Dr=0;Dr<Nr.length;Dr++){var Ir=Nr[Dr];Pr(Ir.toLowerCase(),"on"+(Ir[0].toUpperCase()+Ir.slice(1)))}Pr(Tr,"onAnimationEnd"),Pr(Lr,"onAnimationIteration"),Pr(Or,"onAnimationStart"),Pr("dblclick","onDoubleClick"),Pr("focusin","onFocus"),Pr("focusout","onBlur"),Pr(Ar,"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 zr="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(" "),Rr=new Set("cancel close invalid load scroll toggle".split(" ").concat(zr));function Fr(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,function(e,t,n,r,i,a,l,s,u){if(Me.apply(this,arguments),Re){if(!Re)throw Error(o(198));var c=Fe;Re=!1,Fe=null,Be||(Be=!0,je=c)}}(r,t,void 0,e),e.currentTarget=null}function Br(e,t){t=0!=(4&t);for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;e:{var o=void 0;if(t)for(var a=r.length-1;0<=a;a--){var l=r[a],s=l.instance,u=l.currentTarget;if(l=l.listener,s!==o&&i.isPropagationStopped())break e;Fr(i,l,u),o=s}else for(a=0;a<r.length;a++){if(s=(l=r[a]).instance,u=l.currentTarget,l=l.listener,s!==o&&i.isPropagationStopped())break e;Fr(i,l,u),o=s}}}if(Be)throw e=je,Be=!1,je=null,e}function jr(e,t){var n=t[mi];void 0===n&&(n=t[mi]=new Set);var r=e+"__bubble";n.has(r)||(Hr(t,e,2,!1),n.add(r))}function Ur(e,t,n){var r=0;t&&(r|=4),Hr(n,e,r,t)}var Mr="_reactListening"+Math.random().toString(36).slice(2);function Wr(e){if(!e[Mr]){e[Mr]=!0,a.forEach((function(t){"selectionchange"!==t&&(Rr.has(t)||Ur(t,!1,e),Ur(t,!0,e))}));var t=9===e.nodeType?e:e.ownerDocument;null===t||t[Mr]||(t[Mr]=!0,Ur("selectionchange",!1,t))}}function Hr(e,t,n,r){switch($t(t)){case 1:var i=qt;break;case 4:i=Yt;break;default:i=Gt}n=i.bind(null,t,n,e),i=void 0,!De||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(i=!0),r?void 0!==i?e.addEventListener(t,n,{capture:!0,passive:i}):e.addEventListener(t,n,!0):void 0!==i?e.addEventListener(t,n,{passive:i}):e.addEventListener(t,n,!1)}function Kr(e,t,n,r,i){var o=r;if(0==(1&t)&&0==(2&t)&&null!==r)e:for(;;){if(null===r)return;var a=r.tag;if(3===a||4===a){var l=r.stateNode.containerInfo;if(l===i||8===l.nodeType&&l.parentNode===i)break;if(4===a)for(a=r.return;null!==a;){var s=a.tag;if((3===s||4===s)&&((s=a.stateNode.containerInfo)===i||8===s.nodeType&&s.parentNode===i))return;a=a.return}for(;null!==l;){if(null===(a=yi(l)))return;if(5===(s=a.tag)||6===s){r=o=a;continue e}l=l.parentNode}}r=r.return}Ne((function(){var r=o,i=xe(n),a=[];e:{var l=Cr.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=Ln;break;case"focusin":u="focus",s=gn;break;case"focusout":u="blur",s=gn;break;case"beforeblur":case"afterblur":s=gn;break;case"click":if(2===n.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":s=hn;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=An;break;case Tr:case Lr:case Or:s=vn;break;case Ar:s=Cn;break;case"scroll":s=fn;break;case"wheel":s=Pn;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=On}var c=0!=(4&t),d=!c&&"scroll"===e,f=c?null!==l?l+"Capture":null:l;c=[];for(var p,h=r;null!==h;){var m=(p=h).stateNode;if(5===p.tag&&null!==m&&(p=m,null!==f&&null!=(m=Pe(h,f))&&c.push(qr(h,m,p))),d)break;h=h.return}0<c.length&&(l=new s(l,u,null,n,i),a.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)||!yi(u)&&!u[hi])&&(s||l)&&(l=i.window===i?i:(l=i.ownerDocument)?l.defaultView||l.parentWindow:window,s?(s=r,null!==(u=(u=n.relatedTarget||n.toElement)?yi(u):null)&&(u!==(d=We(u))||5!==u.tag&&6!==u.tag)&&(u=null)):(s=null,u=r),s!==u)){if(c=hn,m="onMouseLeave",f="onMouseEnter",h="mouse","pointerout"!==e&&"pointerover"!==e||(c=On,m="onPointerLeave",f="onPointerEnter",h="pointer"),d=null==s?l:wi(s),p=null==u?l:wi(u),(l=new c(m,h+"leave",s,n,i)).target=d,l.relatedTarget=p,m=null,yi(i)===r&&((c=new c(f,h+"enter",u,n,i)).target=p,c.relatedTarget=d,m=c),d=m,s&&u)e:{for(f=u,h=0,p=c=s;p;p=Gr(p))h++;for(p=0,m=f;m;m=Gr(m))p++;for(;0<h-p;)c=Gr(c),h--;for(;0<p-h;)f=Gr(f),p--;for(;h--;){if(c===f||null!==f&&c===f.alternate)break e;c=Gr(c),f=Gr(f)}c=null}else c=null;null!==s&&Vr(a,l,s,c,!1),null!==u&&null!==d&&Vr(a,d,u,c,!0)}if("select"===(s=(l=r?wi(r):window).nodeName&&l.nodeName.toLowerCase())||"input"===s&&"file"===l.type)var g=$n;else if(Kn(l))if(Xn)g=ar;else{g=ir;var v=rr}else(s=l.nodeName)&&"input"===s.toLowerCase()&&("checkbox"===l.type||"radio"===l.type)&&(g=or);switch(g&&(g=g(e,r))?qn(a,g,n,i):(v&&v(e,l,r),"focusout"===e&&(v=l._wrapperState)&&v.controlled&&"number"===l.type&&ee(l,"number",l.value)),v=r?wi(r):window,e){case"focusin":(Kn(v)||"true"===v.contentEditable)&&(gr=v,vr=r,yr=null);break;case"focusout":yr=vr=gr=null;break;case"mousedown":br=!0;break;case"contextmenu":case"mouseup":case"dragend":br=!1,wr(a,n,i);break;case"selectionchange":if(mr)break;case"keydown":case"keyup":wr(a,n,i)}var y;if(In)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 Wn?Un(e,n)&&(b="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(b="onCompositionStart");b&&(Fn&&"ko"!==n.locale&&(Wn||"onCompositionStart"!==b?"onCompositionEnd"===b&&Wn&&(y=en()):(Qt="value"in(Xt=i)?Xt.value:Xt.textContent,Wn=!0)),0<(v=Yr(r,b)).length&&(b=new wn(b,e,null,n,i),a.push({event:b,listeners:v}),(y||null!==(y=Mn(n)))&&(b.data=y))),(y=Rn?function(e,t){switch(e){case"compositionend":return Mn(t);case"keypress":return 32!==t.which?null:(jn=!0,Bn);case"textInput":return(e=t.data)===Bn&&jn?null:e;default:return null}}(e,n):function(e,t){if(Wn)return"compositionend"===e||!In&&Un(e,t)?(e=en(),Jt=Qt=Xt=null,Wn=!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 Fn&&"ko"!==t.locale?null:t.data}}(e,n))&&0<(r=Yr(r,"onBeforeInput")).length&&(i=new wn("onBeforeInput","beforeinput",null,n,i),a.push({event:i,listeners:r}),i.data=y)}Br(a,t)}))}function qr(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Yr(e,t){for(var n=t+"Capture",r=[];null!==e;){var i=e,o=i.stateNode;5===i.tag&&null!==o&&(i=o,null!=(o=Pe(e,n))&&r.unshift(qr(e,o,i)),null!=(o=Pe(e,t))&&r.push(qr(e,o,i))),e=e.return}return r}function Gr(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function Vr(e,t,n,r,i){for(var o=t._reactName,a=[];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,i?null!=(s=Pe(n,o))&&a.unshift(qr(n,s,l)):i||null!=(s=Pe(n,o))&&a.push(qr(n,s,l))),n=n.return}0!==a.length&&e.push({event:t,listeners:a})}var Zr=/\r\n?/g,$r=/\u0000|\uFFFD/g;function Xr(e){return("string"==typeof e?e:""+e).replace(Zr,"\n").replace($r,"")}function Qr(e,t,n){if(t=Xr(t),Xr(e)!==t&&n)throw Error(o(425))}function Jr(){}var ei=null,ti=null;function ni(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 ri="function"==typeof setTimeout?setTimeout:void 0,ii="function"==typeof clearTimeout?clearTimeout:void 0,oi="function"==typeof Promise?Promise:void 0,ai="function"==typeof queueMicrotask?queueMicrotask:void 0!==oi?function(e){return oi.resolve(null).then(e).catch(li)}:ri;function li(e){setTimeout((function(){throw e}))}function si(e,t){var n=t,r=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&8===i.nodeType)if("/$"===(n=i.data)){if(0===r)return e.removeChild(i),void Wt(t);r--}else"$"!==n&&"$?"!==n&&"$!"!==n||r++;n=i}while(n);Wt(t)}function ui(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 ci(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 di=Math.random().toString(36).slice(2),fi="__reactFiber$"+di,pi="__reactProps$"+di,hi="__reactContainer$"+di,mi="__reactEvents$"+di,gi="__reactListeners$"+di,vi="__reactHandles$"+di;function yi(e){var t=e[fi];if(t)return t;for(var n=e.parentNode;n;){if(t=n[hi]||n[fi]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=ci(e);null!==e;){if(n=e[fi])return n;e=ci(e)}return t}n=(e=n).parentNode}return null}function bi(e){return!(e=e[fi]||e[hi])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function wi(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(o(33))}function xi(e){return e[pi]||null}var _i=[],ki=-1;function Ei(e){return{current:e}}function Si(e){0>ki||(e.current=_i[ki],_i[ki]=null,ki--)}function Ti(e,t){ki++,_i[ki]=e.current,e.current=t}var Li={},Oi=Ei(Li),Ai=Ei(!1),Ci=Li;function Ni(e,t){var n=e.type.contextTypes;if(!n)return Li;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i,o={};for(i in n)o[i]=t[i];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function Pi(e){return null!=e.childContextTypes}function Di(){Si(Ai),Si(Oi)}function Ii(e,t,n){if(Oi.current!==Li)throw Error(o(168));Ti(Oi,t),Ti(Ai,n)}function zi(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,"function"!=typeof r.getChildContext)return n;for(var i in r=r.getChildContext())if(!(i in t))throw Error(o(108,H(e)||"Unknown",i));return F({},n,r)}function Ri(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Li,Ci=Oi.current,Ti(Oi,e),Ti(Ai,Ai.current),!0}function Fi(e,t,n){var r=e.stateNode;if(!r)throw Error(o(169));n?(e=zi(e,t,Ci),r.__reactInternalMemoizedMergedChildContext=e,Si(Ai),Si(Oi),Ti(Oi,e)):Si(Ai),Ti(Ai,n)}var Bi=null,ji=!1,Ui=!1;function Mi(e){null===Bi?Bi=[e]:Bi.push(e)}function Wi(){if(!Ui&&null!==Bi){Ui=!0;var e=0,t=bt;try{var n=Bi;for(bt=1;e<n.length;e++){var r=n[e];do{r=r(!0)}while(null!==r)}Bi=null,ji=!1}catch(t){throw null!==Bi&&(Bi=Bi.slice(e+1)),Ge(Je,Wi),t}finally{bt=t,Ui=!1}}return null}var Hi=[],Ki=0,qi=null,Yi=0,Gi=[],Vi=0,Zi=null,$i=1,Xi="";function Qi(e,t){Hi[Ki++]=Yi,Hi[Ki++]=qi,qi=e,Yi=t}function Ji(e,t,n){Gi[Vi++]=$i,Gi[Vi++]=Xi,Gi[Vi++]=Zi,Zi=e;var r=$i;e=Xi;var i=32-at(r)-1;r&=~(1<<i),n+=1;var o=32-at(t)+i;if(30<o){var a=i-i%5;o=(r&(1<<a)-1).toString(32),r>>=a,i-=a,$i=1<<32-at(t)+i|n<<i|r,Xi=o+e}else $i=1<<o|n<<i|r,Xi=e}function eo(e){null!==e.return&&(Qi(e,1),Ji(e,1,0))}function to(e){for(;e===qi;)qi=Hi[--Ki],Hi[Ki]=null,Yi=Hi[--Ki],Hi[Ki]=null;for(;e===Zi;)Zi=Gi[--Vi],Gi[Vi]=null,Xi=Gi[--Vi],Gi[Vi]=null,$i=Gi[--Vi],Gi[Vi]=null}var no=null,ro=null,io=!1,oo=null;function ao(e,t){var n=Pu(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 lo(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,no=e,ro=ui(t.firstChild),!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,no=e,ro=null,!0);case 13:return null!==(t=8!==t.nodeType?null:t)&&(n=null!==Zi?{id:$i,overflow:Xi}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},(n=Pu(18,null,null,0)).stateNode=t,n.return=e,e.child=n,no=e,ro=null,!0);default:return!1}}function so(e){return 0!=(1&e.mode)&&0==(128&e.flags)}function uo(e){if(io){var t=ro;if(t){var n=t;if(!lo(e,t)){if(so(e))throw Error(o(418));t=ui(n.nextSibling);var r=no;t&&lo(e,t)?ao(r,n):(e.flags=-4097&e.flags|2,io=!1,no=e)}}else{if(so(e))throw Error(o(418));e.flags=-4097&e.flags|2,io=!1,no=e}}}function co(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;no=e}function fo(e){if(e!==no)return!1;if(!io)return co(e),io=!0,!1;var t;if((t=3!==e.tag)&&!(t=5!==e.tag)&&(t="head"!==(t=e.type)&&"body"!==t&&!ni(e.type,e.memoizedProps)),t&&(t=ro)){if(so(e))throw po(),Error(o(418));for(;t;)ao(e,t),t=ui(t.nextSibling)}if(co(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(o(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var n=e.data;if("/$"===n){if(0===t){ro=ui(e.nextSibling);break e}t--}else"$"!==n&&"$!"!==n&&"$?"!==n||t++}e=e.nextSibling}ro=null}}else ro=no?ui(e.stateNode.nextSibling):null;return!0}function po(){for(var e=ro;e;)e=ui(e.nextSibling)}function ho(){ro=no=null,io=!1}function mo(e){null===oo?oo=[e]:oo.push(e)}var go=w.ReactCurrentBatchConfig;function vo(e,t){if(e&&e.defaultProps){for(var n in t=F({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}var yo=Ei(null),bo=null,wo=null,xo=null;function _o(){xo=wo=bo=null}function ko(e){var t=yo.current;Si(yo),e._currentValue=t}function Eo(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 So(e,t){bo=e,xo=wo=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(0!=(e.lanes&t)&&(wl=!0),e.firstContext=null)}function To(e){var t=e._currentValue;if(xo!==e)if(e={context:e,memoizedValue:t,next:null},null===wo){if(null===bo)throw Error(o(308));wo=e,bo.dependencies={lanes:0,firstContext:e}}else wo=wo.next=e;return t}var Lo=null;function Oo(e){null===Lo?Lo=[e]:Lo.push(e)}function Ao(e,t,n,r){var i=t.interleaved;return null===i?(n.next=n,Oo(t)):(n.next=i.next,i.next=n),t.interleaved=n,Co(e,r)}function Co(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 No=!1;function Po(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Do(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 Io(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function zo(e,t,n){var r=e.updateQueue;if(null===r)return null;if(r=r.shared,0!=(2&As)){var i=r.pending;return null===i?t.next=t:(t.next=i.next,i.next=t),r.pending=t,Co(e,n)}return null===(i=r.interleaved)?(t.next=t,Oo(r)):(t.next=i.next,i.next=t),r.interleaved=t,Co(e,n)}function Ro(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 Fo(e,t){var n=e.updateQueue,r=e.alternate;if(null!==r&&n===(r=r.updateQueue)){var i=null,o=null;if(null!==(n=n.firstBaseUpdate)){do{var a={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};null===o?i=o=a:o=o.next=a,n=n.next}while(null!==n);null===o?i=o=t:o=o.next=t}else i=o=t;return n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:o,shared:r.shared,effects:r.effects},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Bo(e,t,n,r){var i=e.updateQueue;No=!1;var o=i.firstBaseUpdate,a=i.lastBaseUpdate,l=i.shared.pending;if(null!==l){i.shared.pending=null;var s=l,u=s.next;s.next=null,null===a?o=u:a.next=u,a=s;var c=e.alternate;null!==c&&(l=(c=c.updateQueue).lastBaseUpdate)!==a&&(null===l?c.firstBaseUpdate=u:l.next=u,c.lastBaseUpdate=s)}if(null!==o){var d=i.baseState;for(a=0,c=u=s=null,l=o;;){var f=l.lane,p=l.eventTime;if((r&f)===f){null!==c&&(c=c.next={eventTime:p,lane:0,tag:l.tag,payload:l.payload,callback:l.callback,next:null});e:{var h=e,m=l;switch(f=t,p=n,m.tag){case 1:if("function"==typeof(h=m.payload)){d=h.call(p,d,f);break e}d=h;break e;case 3:h.flags=-65537&h.flags|128;case 0:if(null==(f="function"==typeof(h=m.payload)?h.call(p,d,f):h))break e;d=F({},d,f);break e;case 2:No=!0}}null!==l.callback&&0!==l.lane&&(e.flags|=64,null===(f=i.effects)?i.effects=[l]:f.push(l))}else p={eventTime:p,lane:f,tag:l.tag,payload:l.payload,callback:l.callback,next:null},null===c?(u=c=p,s=d):c=c.next=p,a|=f;if(null===(l=l.next)){if(null===(l=i.shared.pending))break;l=(f=l).next,f.next=null,i.lastBaseUpdate=f,i.shared.pending=null}}if(null===c&&(s=d),i.baseState=s,i.firstBaseUpdate=u,i.lastBaseUpdate=c,null!==(t=i.shared.interleaved)){i=t;do{a|=i.lane,i=i.next}while(i!==t)}else null===o&&(i.shared.lanes=0);Fs|=a,e.lanes=a,e.memoizedState=d}}function jo(e,t,n){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var r=e[t],i=r.callback;if(null!==i){if(r.callback=null,r=n,"function"!=typeof i)throw Error(o(191,i));i.call(r)}}}var Uo=(new r.Component).refs;function Mo(e,t,n,r){n=null==(n=n(r,t=e.memoizedState))?t:F({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}var Wo={isMounted:function(e){return!!(e=e._reactInternals)&&We(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=tu(),i=nu(e),o=Io(r,i);o.payload=t,null!=n&&(o.callback=n),null!==(t=zo(e,o,i))&&(ru(t,e,i,r),Ro(t,e,i))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=tu(),i=nu(e),o=Io(r,i);o.tag=1,o.payload=t,null!=n&&(o.callback=n),null!==(t=zo(e,o,i))&&(ru(t,e,i,r),Ro(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=tu(),r=nu(e),i=Io(n,r);i.tag=2,null!=t&&(i.callback=t),null!==(t=zo(e,i,r))&&(ru(t,e,r,n),Ro(t,e,r))}};function Ho(e,t,n,r,i,o,a){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,o,a):!(t.prototype&&t.prototype.isPureReactComponent&&sr(n,r)&&sr(i,o))}function Ko(e,t,n){var r=!1,i=Li,o=t.contextType;return"object"==typeof o&&null!==o?o=To(o):(i=Pi(t)?Ci:Oi.current,o=(r=null!=(r=t.contextTypes))?Ni(e,i):Li),t=new t(n,o),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=Wo,e.stateNode=t,t._reactInternals=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=o),t}function qo(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&&Wo.enqueueReplaceState(t,t.state,null)}function Yo(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs=Uo,Po(e);var o=t.contextType;"object"==typeof o&&null!==o?i.context=To(o):(o=Pi(t)?Ci:Oi.current,i.context=Ni(e,o)),i.state=e.memoizedState,"function"==typeof(o=t.getDerivedStateFromProps)&&(Mo(e,t,o,n),i.state=e.memoizedState),"function"==typeof t.getDerivedStateFromProps||"function"==typeof i.getSnapshotBeforeUpdate||"function"!=typeof i.UNSAFE_componentWillMount&&"function"!=typeof i.componentWillMount||(t=i.state,"function"==typeof i.componentWillMount&&i.componentWillMount(),"function"==typeof i.UNSAFE_componentWillMount&&i.UNSAFE_componentWillMount(),t!==i.state&&Wo.enqueueReplaceState(i,i.state,null),Bo(e,n,i,r),i.state=e.memoizedState),"function"==typeof i.componentDidMount&&(e.flags|=4194308)}function Go(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(o(309));var r=n.stateNode}if(!r)throw Error(o(147,e));var i=r,a=""+e;return null!==t&&null!==t.ref&&"function"==typeof t.ref&&t.ref._stringRef===a?t.ref:(t=function(e){var t=i.refs;t===Uo&&(t=i.refs={}),null===e?delete t[a]:t[a]=e},t._stringRef=a,t)}if("string"!=typeof e)throw Error(o(284));if(!n._owner)throw Error(o(290,e))}return e}function Vo(e,t){throw e=Object.prototype.toString.call(t),Error(o(31,"[object Object]"===e?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Zo(e){return(0,e._init)(e._payload)}function $o(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 i(e,t){return(e=Iu(e,t)).index=0,e.sibling=null,e}function a(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.flags|=2,n):r:(t.flags|=2,n):(t.flags|=1048576,n)}function l(t){return e&&null===t.alternate&&(t.flags|=2),t}function s(e,t,n,r){return null===t||6!==t.tag?((t=Bu(n,e.mode,r)).return=e,t):((t=i(t,n)).return=e,t)}function u(e,t,n,r){var o=n.type;return o===k?d(e,t,n.props.children,r,n.key):null!==t&&(t.elementType===o||"object"==typeof o&&null!==o&&o.$$typeof===P&&Zo(o)===t.type)?((r=i(t,n.props)).ref=Go(e,t,n),r.return=e,r):((r=zu(n.type,n.key,n.props,null,e.mode,r)).ref=Go(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=ju(n,e.mode,r)).return=e,t):((t=i(t,n.children||[])).return=e,t)}function d(e,t,n,r,o){return null===t||7!==t.tag?((t=Ru(n,e.mode,r,o)).return=e,t):((t=i(t,n)).return=e,t)}function f(e,t,n){if("string"==typeof t&&""!==t||"number"==typeof t)return(t=Bu(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case x:return(n=zu(t.type,t.key,t.props,null,e.mode,n)).ref=Go(e,null,t),n.return=e,n;case _:return(t=ju(t,e.mode,n)).return=e,t;case P:return f(e,(0,t._init)(t._payload),n)}if(te(t)||z(t))return(t=Ru(t,e.mode,n,null)).return=e,t;Vo(e,t)}return null}function p(e,t,n,r){var i=null!==t?t.key:null;if("string"==typeof n&&""!==n||"number"==typeof n)return null!==i?null:s(e,t,""+n,r);if("object"==typeof n&&null!==n){switch(n.$$typeof){case x:return n.key===i?u(e,t,n,r):null;case _:return n.key===i?c(e,t,n,r):null;case P:return p(e,t,(i=n._init)(n._payload),r)}if(te(n)||z(n))return null!==i?null:d(e,t,n,r,null);Vo(e,n)}return null}function h(e,t,n,r,i){if("string"==typeof r&&""!==r||"number"==typeof r)return s(t,e=e.get(n)||null,""+r,i);if("object"==typeof r&&null!==r){switch(r.$$typeof){case x:return u(t,e=e.get(null===r.key?n:r.key)||null,r,i);case _:return c(t,e=e.get(null===r.key?n:r.key)||null,r,i);case P:return h(e,t,n,(0,r._init)(r._payload),i)}if(te(r)||z(r))return d(t,e=e.get(n)||null,r,i,null);Vo(t,r)}return null}function m(i,o,l,s){for(var u=null,c=null,d=o,m=o=0,g=null;null!==d&&m<l.length;m++){d.index>m?(g=d,d=null):g=d.sibling;var v=p(i,d,l[m],s);if(null===v){null===d&&(d=g);break}e&&d&&null===v.alternate&&t(i,d),o=a(v,o,m),null===c?u=v:c.sibling=v,c=v,d=g}if(m===l.length)return n(i,d),io&&Qi(i,m),u;if(null===d){for(;m<l.length;m++)null!==(d=f(i,l[m],s))&&(o=a(d,o,m),null===c?u=d:c.sibling=d,c=d);return io&&Qi(i,m),u}for(d=r(i,d);m<l.length;m++)null!==(g=h(d,i,m,l[m],s))&&(e&&null!==g.alternate&&d.delete(null===g.key?m:g.key),o=a(g,o,m),null===c?u=g:c.sibling=g,c=g);return e&&d.forEach((function(e){return t(i,e)})),io&&Qi(i,m),u}function g(i,l,s,u){var c=z(s);if("function"!=typeof c)throw Error(o(150));if(null==(s=c.call(s)))throw Error(o(151));for(var d=c=null,m=l,g=l=0,v=null,y=s.next();null!==m&&!y.done;g++,y=s.next()){m.index>g?(v=m,m=null):v=m.sibling;var b=p(i,m,y.value,u);if(null===b){null===m&&(m=v);break}e&&m&&null===b.alternate&&t(i,m),l=a(b,l,g),null===d?c=b:d.sibling=b,d=b,m=v}if(y.done)return n(i,m),io&&Qi(i,g),c;if(null===m){for(;!y.done;g++,y=s.next())null!==(y=f(i,y.value,u))&&(l=a(y,l,g),null===d?c=y:d.sibling=y,d=y);return io&&Qi(i,g),c}for(m=r(i,m);!y.done;g++,y=s.next())null!==(y=h(m,i,g,y.value,u))&&(e&&null!==y.alternate&&m.delete(null===y.key?g:y.key),l=a(y,l,g),null===d?c=y:d.sibling=y,d=y);return e&&m.forEach((function(e){return t(i,e)})),io&&Qi(i,g),c}return function e(r,o,a,s){if("object"==typeof a&&null!==a&&a.type===k&&null===a.key&&(a=a.props.children),"object"==typeof a&&null!==a){switch(a.$$typeof){case x:e:{for(var u=a.key,c=o;null!==c;){if(c.key===u){if((u=a.type)===k){if(7===c.tag){n(r,c.sibling),(o=i(c,a.props.children)).return=r,r=o;break e}}else if(c.elementType===u||"object"==typeof u&&null!==u&&u.$$typeof===P&&Zo(u)===c.type){n(r,c.sibling),(o=i(c,a.props)).ref=Go(r,c,a),o.return=r,r=o;break e}n(r,c);break}t(r,c),c=c.sibling}a.type===k?((o=Ru(a.props.children,r.mode,s,a.key)).return=r,r=o):((s=zu(a.type,a.key,a.props,null,r.mode,s)).ref=Go(r,o,a),s.return=r,r=s)}return l(r);case _:e:{for(c=a.key;null!==o;){if(o.key===c){if(4===o.tag&&o.stateNode.containerInfo===a.containerInfo&&o.stateNode.implementation===a.implementation){n(r,o.sibling),(o=i(o,a.children||[])).return=r,r=o;break e}n(r,o);break}t(r,o),o=o.sibling}(o=ju(a,r.mode,s)).return=r,r=o}return l(r);case P:return e(r,o,(c=a._init)(a._payload),s)}if(te(a))return m(r,o,a,s);if(z(a))return g(r,o,a,s);Vo(r,a)}return"string"==typeof a&&""!==a||"number"==typeof a?(a=""+a,null!==o&&6===o.tag?(n(r,o.sibling),(o=i(o,a)).return=r,r=o):(n(r,o),(o=Bu(a,r.mode,s)).return=r,r=o),l(r)):n(r,o)}}var Xo=$o(!0),Qo=$o(!1),Jo={},ea=Ei(Jo),ta=Ei(Jo),na=Ei(Jo);function ra(e){if(e===Jo)throw Error(o(174));return e}function ia(e,t){switch(Ti(na,t),Ti(ta,e),Ti(ea,Jo),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)}Si(ea),Ti(ea,t)}function oa(){Si(ea),Si(ta),Si(na)}function aa(e){ra(na.current);var t=ra(ea.current),n=se(t,e.type);t!==n&&(Ti(ta,e),Ti(ea,n))}function la(e){ta.current===e&&(Si(ea),Si(ta))}var sa=Ei(0);function ua(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 ca=[];function da(){for(var e=0;e<ca.length;e++)ca[e]._workInProgressVersionPrimary=null;ca.length=0}var fa=w.ReactCurrentDispatcher,pa=w.ReactCurrentBatchConfig,ha=0,ma=null,ga=null,va=null,ya=!1,ba=!1,wa=0,xa=0;function _a(){throw Error(o(321))}function ka(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 Ea(e,t,n,r,i,a){if(ha=a,ma=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,fa.current=null===e||null===e.memoizedState?ll:sl,e=n(r,i),ba){a=0;do{if(ba=!1,wa=0,25<=a)throw Error(o(301));a+=1,va=ga=null,t.updateQueue=null,fa.current=ul,e=n(r,i)}while(ba)}if(fa.current=al,t=null!==ga&&null!==ga.next,ha=0,va=ga=ma=null,ya=!1,t)throw Error(o(300));return e}function Sa(){var e=0!==wa;return wa=0,e}function Ta(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===va?ma.memoizedState=va=e:va=va.next=e,va}function La(){if(null===ga){var e=ma.alternate;e=null!==e?e.memoizedState:null}else e=ga.next;var t=null===va?ma.memoizedState:va.next;if(null!==t)va=t,ga=e;else{if(null===e)throw Error(o(310));e={memoizedState:(ga=e).memoizedState,baseState:ga.baseState,baseQueue:ga.baseQueue,queue:ga.queue,next:null},null===va?ma.memoizedState=va=e:va=va.next=e}return va}function Oa(e,t){return"function"==typeof t?t(e):t}function Aa(e){var t=La(),n=t.queue;if(null===n)throw Error(o(311));n.lastRenderedReducer=e;var r=ga,i=r.baseQueue,a=n.pending;if(null!==a){if(null!==i){var l=i.next;i.next=a.next,a.next=l}r.baseQueue=i=a,n.pending=null}if(null!==i){a=i.next,r=r.baseState;var s=l=null,u=null,c=a;do{var d=c.lane;if((ha&d)===d)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 f={lane:d,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null};null===u?(s=u=f,l=r):u=u.next=f,ma.lanes|=d,Fs|=d}c=c.next}while(null!==c&&c!==a);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)){i=e;do{a=i.lane,ma.lanes|=a,Fs|=a,i=i.next}while(i!==e)}else null===i&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function Ca(e){var t=La(),n=t.queue;if(null===n)throw Error(o(311));n.lastRenderedReducer=e;var r=n.dispatch,i=n.pending,a=t.memoizedState;if(null!==i){n.pending=null;var l=i=i.next;do{a=e(a,l.action),l=l.next}while(l!==i);lr(a,t.memoizedState)||(wl=!0),t.memoizedState=a,null===t.baseQueue&&(t.baseState=a),n.lastRenderedState=a}return[a,r]}function Na(){}function Pa(e,t){var n=ma,r=La(),i=t(),a=!lr(r.memoizedState,i);if(a&&(r.memoizedState=i,wl=!0),r=r.queue,Ka(za.bind(null,n,r,e),[e]),r.getSnapshot!==t||a||null!==va&&1&va.memoizedState.tag){if(n.flags|=2048,ja(9,Ia.bind(null,n,r,i,t),void 0,null),null===Cs)throw Error(o(349));0!=(30&ha)||Da(n,t,i)}return i}function Da(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},null===(t=ma.updateQueue)?(t={lastEffect:null,stores:null},ma.updateQueue=t,t.stores=[e]):null===(n=t.stores)?t.stores=[e]:n.push(e)}function Ia(e,t,n,r){t.value=n,t.getSnapshot=r,Ra(t)&&Fa(e)}function za(e,t,n){return n((function(){Ra(t)&&Fa(e)}))}function Ra(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!lr(e,n)}catch(e){return!0}}function Fa(e){var t=Co(e,1);null!==t&&ru(t,e,1,-1)}function Ba(e){var t=Ta();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Oa,lastRenderedState:e},t.queue=e,e=e.dispatch=nl.bind(null,ma,e),[t.memoizedState,e]}function ja(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=ma.updateQueue)?(t={lastEffect:null,stores:null},ma.updateQueue=t,t.lastEffect=e.next=e):null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function Ua(){return La().memoizedState}function Ma(e,t,n,r){var i=Ta();ma.flags|=e,i.memoizedState=ja(1|t,n,void 0,void 0===r?null:r)}function Wa(e,t,n,r){var i=La();r=void 0===r?null:r;var o=void 0;if(null!==ga){var a=ga.memoizedState;if(o=a.destroy,null!==r&&ka(r,a.deps))return void(i.memoizedState=ja(t,n,o,r))}ma.flags|=e,i.memoizedState=ja(1|t,n,o,r)}function Ha(e,t){return Ma(8390656,8,e,t)}function Ka(e,t){return Wa(2048,8,e,t)}function qa(e,t){return Wa(4,2,e,t)}function Ya(e,t){return Wa(4,4,e,t)}function Ga(e,t){return"function"==typeof t?(e=e(),t(e),function(){t(null)}):null!=t?(e=e(),t.current=e,function(){t.current=null}):void 0}function Va(e,t,n){return n=null!=n?n.concat([e]):null,Wa(4,4,Ga.bind(null,t,e),n)}function Za(){}function $a(e,t){var n=La();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&ka(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Xa(e,t){var n=La();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&ka(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Qa(e,t,n){return 0==(21&ha)?(e.baseState&&(e.baseState=!1,wl=!0),e.memoizedState=n):(lr(n,t)||(n=mt(),ma.lanes|=n,Fs|=n,e.baseState=!0),t)}function Ja(e,t){var n=bt;bt=0!==n&&4>n?n:4,e(!0);var r=pa.transition;pa.transition={};try{e(!1),t()}finally{bt=n,pa.transition=r}}function el(){return La().memoizedState}function tl(e,t,n){var r=nu(e);n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},rl(e)?il(t,n):null!==(n=Ao(e,t,n,r))&&(ru(n,e,r,tu()),ol(n,t,r))}function nl(e,t,n){var r=nu(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(rl(e))il(t,i);else{var o=e.alternate;if(0===e.lanes&&(null===o||0===o.lanes)&&null!==(o=t.lastRenderedReducer))try{var a=t.lastRenderedState,l=o(a,n);if(i.hasEagerState=!0,i.eagerState=l,lr(l,a)){var s=t.interleaved;return null===s?(i.next=i,Oo(t)):(i.next=s.next,s.next=i),void(t.interleaved=i)}}catch(e){}null!==(n=Ao(e,t,i,r))&&(ru(n,e,r,i=tu()),ol(n,t,r))}}function rl(e){var t=e.alternate;return e===ma||null!==t&&t===ma}function il(e,t){ba=ya=!0;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function ol(e,t,n){if(0!=(4194240&n)){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,yt(e,n)}}var al={readContext:To,useCallback:_a,useContext:_a,useEffect:_a,useImperativeHandle:_a,useInsertionEffect:_a,useLayoutEffect:_a,useMemo:_a,useReducer:_a,useRef:_a,useState:_a,useDebugValue:_a,useDeferredValue:_a,useTransition:_a,useMutableSource:_a,useSyncExternalStore:_a,useId:_a,unstable_isNewReconciler:!1},ll={readContext:To,useCallback:function(e,t){return Ta().memoizedState=[e,void 0===t?null:t],e},useContext:To,useEffect:Ha,useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,Ma(4194308,4,Ga.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Ma(4194308,4,e,t)},useInsertionEffect:function(e,t){return Ma(4,2,e,t)},useMemo:function(e,t){var n=Ta();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Ta();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,ma,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},Ta().memoizedState=e},useState:Ba,useDebugValue:Za,useDeferredValue:function(e){return Ta().memoizedState=e},useTransition:function(){var e=Ba(!1),t=e[0];return e=Ja.bind(null,e[1]),Ta().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=ma,i=Ta();if(io){if(void 0===n)throw Error(o(407));n=n()}else{if(n=t(),null===Cs)throw Error(o(349));0!=(30&ha)||Da(r,t,n)}i.memoizedState=n;var a={value:n,getSnapshot:t};return i.queue=a,Ha(za.bind(null,r,a,e),[e]),r.flags|=2048,ja(9,Ia.bind(null,r,a,n,t),void 0,null),n},useId:function(){var e=Ta(),t=Cs.identifierPrefix;if(io){var n=Xi;t=":"+t+"R"+(n=($i&~(1<<32-at($i)-1)).toString(32)+n),0<(n=wa++)&&(t+="H"+n.toString(32)),t+=":"}else t=":"+t+"r"+(n=xa++).toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},sl={readContext:To,useCallback:$a,useContext:To,useEffect:Ka,useImperativeHandle:Va,useInsertionEffect:qa,useLayoutEffect:Ya,useMemo:Xa,useReducer:Aa,useRef:Ua,useState:function(){return Aa(Oa)},useDebugValue:Za,useDeferredValue:function(e){return Qa(La(),ga.memoizedState,e)},useTransition:function(){return[Aa(Oa)[0],La().memoizedState]},useMutableSource:Na,useSyncExternalStore:Pa,useId:el,unstable_isNewReconciler:!1},ul={readContext:To,useCallback:$a,useContext:To,useEffect:Ka,useImperativeHandle:Va,useInsertionEffect:qa,useLayoutEffect:Ya,useMemo:Xa,useReducer:Ca,useRef:Ua,useState:function(){return Ca(Oa)},useDebugValue:Za,useDeferredValue:function(e){var t=La();return null===ga?t.memoizedState=e:Qa(t,ga.memoizedState,e)},useTransition:function(){return[Ca(Oa)[0],La().memoizedState]},useMutableSource:Na,useSyncExternalStore:Pa,useId:el,unstable_isNewReconciler:!1};function cl(e,t){try{var n="",r=t;do{n+=M(r),r=r.return}while(r);var i=n}catch(e){i="\nError generating stack: "+e.message+"\n"+e.stack}return{value:e,source:t,stack:i,digest:null}}function dl(e,t,n){return{value:e,source:null,stack:null!=n?n:null,digest:null!=t?t:null}}function fl(e,t){try{console.error(t.value)}catch(e){setTimeout((function(){throw e}))}}var pl="function"==typeof WeakMap?WeakMap:Map;function hl(e,t,n){(n=Io(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){qs||(qs=!0,Ys=r),fl(0,t)},n}function ml(e,t,n){(n=Io(-1,n)).tag=3;var r=e.type.getDerivedStateFromError;if("function"==typeof r){var i=t.value;n.payload=function(){return r(i)},n.callback=function(){fl(0,t)}}var o=e.stateNode;return null!==o&&"function"==typeof o.componentDidCatch&&(n.callback=function(){fl(0,t),"function"!=typeof r&&(null===Gs?Gs=new Set([this]):Gs.add(this));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}function gl(e,t,n){var r=e.pingCache;if(null===r){r=e.pingCache=new pl;var i=new Set;r.set(t,i)}else void 0===(i=r.get(t))&&(i=new Set,r.set(t,i));i.has(n)||(i.add(n),e=Tu.bind(null,e,t,n),t.then(e,e))}function vl(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,i){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=Io(-1,1)).tag=2,zo(n,t,1))),n.lanes|=1),e):(e.flags|=65536,e.lanes=i,e)}var bl=w.ReactCurrentOwner,wl=!1;function xl(e,t,n,r){t.child=null===e?Qo(t,null,n,r):Xo(t,e.child,n,r)}function _l(e,t,n,r,i){n=n.render;var o=t.ref;return So(t,i),r=Ea(e,t,n,r,o,i),n=Sa(),null===e||wl?(io&&n&&eo(t),t.flags|=1,xl(e,t,r,i),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,ql(e,t,i))}function kl(e,t,n,r,i){if(null===e){var o=n.type;return"function"!=typeof o||Du(o)||void 0!==o.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=zu(n.type,null,r,t,t.mode,i)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=o,El(e,t,o,r,i))}if(o=e.child,0==(e.lanes&i)){var a=o.memoizedProps;if((n=null!==(n=n.compare)?n:sr)(a,r)&&e.ref===t.ref)return ql(e,t,i)}return t.flags|=1,(e=Iu(o,r)).ref=t.ref,e.return=t,t.child=e}function El(e,t,n,r,i){if(null!==e){var o=e.memoizedProps;if(sr(o,r)&&e.ref===t.ref){if(wl=!1,t.pendingProps=r=o,0==(e.lanes&i))return t.lanes=e.lanes,ql(e,t,i);0!=(131072&e.flags)&&(wl=!0)}}return Ll(e,t,n,r,i)}function Sl(e,t,n){var r=t.pendingProps,i=r.children,o=null!==e?e.memoizedState:null;if("hidden"===r.mode)if(0==(1&t.mode))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Ti(Is,Ds),Ds|=n;else{if(0==(1073741824&n))return e=null!==o?o.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Ti(Is,Ds),Ds|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=null!==o?o.baseLanes:n,Ti(Is,Ds),Ds|=r}else null!==o?(r=o.baseLanes|n,t.memoizedState=null):r=n,Ti(Is,Ds),Ds|=r;return xl(e,t,i,n),t.child}function Tl(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Ll(e,t,n,r,i){var o=Pi(n)?Ci:Oi.current;return o=Ni(t,o),So(t,i),n=Ea(e,t,n,r,o,i),r=Sa(),null===e||wl?(io&&r&&eo(t),t.flags|=1,xl(e,t,n,i),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,ql(e,t,i))}function Ol(e,t,n,r,i){if(Pi(n)){var o=!0;Ri(t)}else o=!1;if(So(t,i),null===t.stateNode)Kl(e,t),Ko(t,n,r),Yo(t,n,r,i),r=!0;else if(null===e){var a=t.stateNode,l=t.memoizedProps;a.props=l;var s=a.context,u=n.contextType;u="object"==typeof u&&null!==u?To(u):Ni(t,u=Pi(n)?Ci:Oi.current);var c=n.getDerivedStateFromProps,d="function"==typeof c||"function"==typeof a.getSnapshotBeforeUpdate;d||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(l!==r||s!==u)&&qo(t,a,r,u),No=!1;var f=t.memoizedState;a.state=f,Bo(t,r,a,i),s=t.memoizedState,l!==r||f!==s||Ai.current||No?("function"==typeof c&&(Mo(t,n,c,r),s=t.memoizedState),(l=No||Ho(t,n,l,r,f,s,u))?(d||"function"!=typeof a.UNSAFE_componentWillMount&&"function"!=typeof a.componentWillMount||("function"==typeof a.componentWillMount&&a.componentWillMount(),"function"==typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount()),"function"==typeof a.componentDidMount&&(t.flags|=4194308)):("function"==typeof a.componentDidMount&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=s),a.props=r,a.state=s,a.context=u,r=l):("function"==typeof a.componentDidMount&&(t.flags|=4194308),r=!1)}else{a=t.stateNode,Do(e,t),l=t.memoizedProps,u=t.type===t.elementType?l:vo(t.type,l),a.props=u,d=t.pendingProps,f=a.context,s="object"==typeof(s=n.contextType)&&null!==s?To(s):Ni(t,s=Pi(n)?Ci:Oi.current);var p=n.getDerivedStateFromProps;(c="function"==typeof p||"function"==typeof a.getSnapshotBeforeUpdate)||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(l!==d||f!==s)&&qo(t,a,r,s),No=!1,f=t.memoizedState,a.state=f,Bo(t,r,a,i);var h=t.memoizedState;l!==d||f!==h||Ai.current||No?("function"==typeof p&&(Mo(t,n,p,r),h=t.memoizedState),(u=No||Ho(t,n,u,r,f,h,s)||!1)?(c||"function"!=typeof a.UNSAFE_componentWillUpdate&&"function"!=typeof a.componentWillUpdate||("function"==typeof a.componentWillUpdate&&a.componentWillUpdate(r,h,s),"function"==typeof a.UNSAFE_componentWillUpdate&&a.UNSAFE_componentWillUpdate(r,h,s)),"function"==typeof a.componentDidUpdate&&(t.flags|=4),"function"==typeof a.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!=typeof a.componentDidUpdate||l===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),"function"!=typeof a.getSnapshotBeforeUpdate||l===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=h),a.props=r,a.state=h,a.context=s,r=u):("function"!=typeof a.componentDidUpdate||l===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),"function"!=typeof a.getSnapshotBeforeUpdate||l===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),r=!1)}return Al(e,t,n,r,o,i)}function Al(e,t,n,r,i,o){Tl(e,t);var a=0!=(128&t.flags);if(!r&&!a)return i&&Fi(t,n,!1),ql(e,t,o);r=t.stateNode,bl.current=t;var l=a&&"function"!=typeof n.getDerivedStateFromError?null:r.render();return t.flags|=1,null!==e&&a?(t.child=Xo(t,e.child,null,o),t.child=Xo(t,null,l,o)):xl(e,t,l,o),t.memoizedState=r.state,i&&Fi(t,n,!0),t.child}function Cl(e){var t=e.stateNode;t.pendingContext?Ii(0,t.pendingContext,t.pendingContext!==t.context):t.context&&Ii(0,t.context,!1),ia(e,t.containerInfo)}function Nl(e,t,n,r,i){return ho(),mo(i),t.flags|=256,xl(e,t,n,r),t.child}var Pl,Dl,Il,zl,Rl={dehydrated:null,treeContext:null,retryLane:0};function Fl(e){return{baseLanes:e,cachePool:null,transitions:null}}function Bl(e,t,n){var r,i=t.pendingProps,a=sa.current,l=!1,s=0!=(128&t.flags);if((r=s)||(r=(null===e||null!==e.memoizedState)&&0!=(2&a)),r?(l=!0,t.flags&=-129):null!==e&&null===e.memoizedState||(a|=1),Ti(sa,1&a),null===e)return uo(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=i.children,e=i.fallback,l?(i=t.mode,l=t.child,s={mode:"hidden",children:s},0==(1&i)&&null!==l?(l.childLanes=0,l.pendingProps=s):l=Fu(s,i,0,null),e=Ru(e,i,n,null),l.return=t,e.return=t,l.sibling=e,t.child=l,t.child.memoizedState=Fl(n),t.memoizedState=Rl,e):jl(t,s));if(null!==(a=e.memoizedState)&&null!==(r=a.dehydrated))return function(e,t,n,r,i,a,l){if(n)return 256&t.flags?(t.flags&=-257,Ul(e,t,l,r=dl(Error(o(422))))):null!==t.memoizedState?(t.child=e.child,t.flags|=128,null):(a=r.fallback,i=t.mode,r=Fu({mode:"visible",children:r.children},i,0,null),(a=Ru(a,i,l,null)).flags|=2,r.return=t,a.return=t,r.sibling=a,t.child=r,0!=(1&t.mode)&&Xo(t,e.child,null,l),t.child.memoizedState=Fl(l),t.memoizedState=Rl,a);if(0==(1&t.mode))return Ul(e,t,l,null);if("$!"===i.data){if(r=i.nextSibling&&i.nextSibling.dataset)var s=r.dgst;return r=s,Ul(e,t,l,r=dl(a=Error(o(419)),r,void 0))}if(s=0!=(l&e.childLanes),wl||s){if(null!==(r=Cs)){switch(l&-l){case 4:i=2;break;case 16:i=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:i=32;break;case 536870912:i=268435456;break;default:i=0}0!==(i=0!=(i&(r.suspendedLanes|l))?0:i)&&i!==a.retryLane&&(a.retryLane=i,Co(e,i),ru(r,e,i,-1))}return gu(),Ul(e,t,l,r=dl(Error(o(421))))}return"$?"===i.data?(t.flags|=128,t.child=e.child,t=Ou.bind(null,e),i._reactRetry=t,null):(e=a.treeContext,ro=ui(i.nextSibling),no=t,io=!0,oo=null,null!==e&&(Gi[Vi++]=$i,Gi[Vi++]=Xi,Gi[Vi++]=Zi,$i=e.id,Xi=e.overflow,Zi=t),(t=jl(t,r.children)).flags|=4096,t)}(e,t,s,i,r,a,n);if(l){l=i.fallback,s=t.mode,r=(a=e.child).sibling;var u={mode:"hidden",children:i.children};return 0==(1&s)&&t.child!==a?((i=t.child).childLanes=0,i.pendingProps=u,t.deletions=null):(i=Iu(a,u)).subtreeFlags=14680064&a.subtreeFlags,null!==r?l=Iu(r,l):(l=Ru(l,s,n,null)).flags|=2,l.return=t,i.return=t,i.sibling=l,t.child=i,i=l,l=t.child,s=null===(s=e.child.memoizedState)?Fl(n):{baseLanes:s.baseLanes|n,cachePool:null,transitions:s.transitions},l.memoizedState=s,l.childLanes=e.childLanes&~n,t.memoizedState=Rl,i}return e=(l=e.child).sibling,i=Iu(l,{mode:"visible",children:i.children}),0==(1&t.mode)&&(i.lanes=n),i.return=t,i.sibling=null,null!==e&&(null===(n=t.deletions)?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=i,t.memoizedState=null,i}function jl(e,t){return(t=Fu({mode:"visible",children:t},e.mode,0,null)).return=e,e.child=t}function Ul(e,t,n,r){return null!==r&&mo(r),Xo(t,e.child,null,n),(e=jl(t,t.pendingProps.children)).flags|=2,t.memoizedState=null,e}function Ml(e,t,n){e.lanes|=t;var r=e.alternate;null!==r&&(r.lanes|=t),Eo(e.return,t,n)}function Wl(e,t,n,r,i){var o=e.memoizedState;null===o?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=i)}function Hl(e,t,n){var r=t.pendingProps,i=r.revealOrder,o=r.tail;if(xl(e,t,r.children,n),0!=(2&(r=sa.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&&Ml(e,n,t);else if(19===e.tag)Ml(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(Ti(sa,r),0==(1&t.mode))t.memoizedState=null;else switch(i){case"forwards":for(n=t.child,i=null;null!==n;)null!==(e=n.alternate)&&null===ua(e)&&(i=n),n=n.sibling;null===(n=i)?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),Wl(t,!1,i,n,o);break;case"backwards":for(n=null,i=t.child,t.child=null;null!==i;){if(null!==(e=i.alternate)&&null===ua(e)){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}Wl(t,!0,n,null,o);break;case"together":Wl(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Kl(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),Fs|=t.lanes,0==(n&t.childLanes))return null;if(null!==e&&t.child!==e.child)throw Error(o(153));if(null!==t.child){for(n=Iu(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=Iu(e,e.pendingProps)).return=t;n.sibling=null}return t.child}function Yl(e,t){if(!io)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 Gl(e){var t=null!==e.alternate&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;null!==i;)n|=i.lanes|i.childLanes,r|=14680064&i.subtreeFlags,r|=14680064&i.flags,i.return=e,i=i.sibling;else for(i=e.child;null!==i;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function Vl(e,t,n){var r=t.pendingProps;switch(to(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Gl(t),null;case 1:case 17:return Pi(t.type)&&Di(),Gl(t),null;case 3:return r=t.stateNode,oa(),Si(Ai),Si(Oi),da(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),null!==e&&null!==e.child||(fo(t)?t.flags|=4:null===e||e.memoizedState.isDehydrated&&0==(256&t.flags)||(t.flags|=1024,null!==oo&&(lu(oo),oo=null))),Dl(e,t),Gl(t),null;case 5:la(t);var i=ra(na.current);if(n=t.type,null!==e&&null!=t.stateNode)Il(e,t,n,r,i),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(null===t.stateNode)throw Error(o(166));return Gl(t),null}if(e=ra(ea.current),fo(t)){r=t.stateNode,n=t.type;var a=t.memoizedProps;switch(r[fi]=t,r[pi]=a,e=0!=(1&t.mode),n){case"dialog":jr("cancel",r),jr("close",r);break;case"iframe":case"object":case"embed":jr("load",r);break;case"video":case"audio":for(i=0;i<zr.length;i++)jr(zr[i],r);break;case"source":jr("error",r);break;case"img":case"image":case"link":jr("error",r),jr("load",r);break;case"details":jr("toggle",r);break;case"input":$(r,a),jr("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!a.multiple},jr("invalid",r);break;case"textarea":ie(r,a),jr("invalid",r)}for(var s in ye(n,a),i=null,a)if(a.hasOwnProperty(s)){var u=a[s];"children"===s?"string"==typeof u?r.textContent!==u&&(!0!==a.suppressHydrationWarning&&Qr(r.textContent,u,e),i=["children",u]):"number"==typeof u&&r.textContent!==""+u&&(!0!==a.suppressHydrationWarning&&Qr(r.textContent,u,e),i=["children",""+u]):l.hasOwnProperty(s)&&null!=u&&"onScroll"===s&&jr("scroll",r)}switch(n){case"input":Y(r),J(r,a,!0);break;case"textarea":Y(r),ae(r);break;case"select":case"option":break;default:"function"==typeof a.onClick&&(r.onclick=Jr)}r=i,t.updateQueue=r,null!==r&&(t.flags|=4)}else{s=9===i.nodeType?i:i.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[fi]=t,e[pi]=r,Pl(e,t,!1,!1),t.stateNode=e;e:{switch(s=be(n,r),n){case"dialog":jr("cancel",e),jr("close",e),i=r;break;case"iframe":case"object":case"embed":jr("load",e),i=r;break;case"video":case"audio":for(i=0;i<zr.length;i++)jr(zr[i],e);i=r;break;case"source":jr("error",e),i=r;break;case"img":case"image":case"link":jr("error",e),jr("load",e),i=r;break;case"details":jr("toggle",e),i=r;break;case"input":$(e,r),i=Z(e,r),jr("invalid",e);break;case"option":default:i=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},i=F({},r,{value:void 0}),jr("invalid",e);break;case"textarea":ie(e,r),i=re(e,r),jr("invalid",e)}for(a in ye(n,i),u=i)if(u.hasOwnProperty(a)){var c=u[a];"style"===a?ge(e,c):"dangerouslySetInnerHTML"===a?null!=(c=c?c.__html:void 0)&&de(e,c):"children"===a?"string"==typeof c?("textarea"!==n||""!==c)&&fe(e,c):"number"==typeof c&&fe(e,""+c):"suppressContentEditableWarning"!==a&&"suppressHydrationWarning"!==a&&"autoFocus"!==a&&(l.hasOwnProperty(a)?null!=c&&"onScroll"===a&&jr("scroll",e):null!=c&&b(e,a,c,s))}switch(n){case"input":Y(e),J(e,r,!1);break;case"textarea":Y(e),ae(e);break;case"option":null!=r.value&&e.setAttribute("value",""+K(r.value));break;case"select":e.multiple=!!r.multiple,null!=(a=r.value)?ne(e,!!r.multiple,a,!1):null!=r.defaultValue&&ne(e,!!r.multiple,r.defaultValue,!0);break;default:"function"==typeof i.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 Gl(t),null;case 6:if(e&&null!=t.stateNode)zl(e,t,e.memoizedProps,r);else{if("string"!=typeof r&&null===t.stateNode)throw Error(o(166));if(n=ra(na.current),ra(ea.current),fo(t)){if(r=t.stateNode,n=t.memoizedProps,r[fi]=t,(a=r.nodeValue!==n)&&null!==(e=no))switch(e.tag){case 3:Qr(r.nodeValue,n,0!=(1&e.mode));break;case 5:!0!==e.memoizedProps.suppressHydrationWarning&&Qr(r.nodeValue,n,0!=(1&e.mode))}a&&(t.flags|=4)}else(r=(9===n.nodeType?n:n.ownerDocument).createTextNode(r))[fi]=t,t.stateNode=r}return Gl(t),null;case 13:if(Si(sa),r=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(io&&null!==ro&&0!=(1&t.mode)&&0==(128&t.flags))po(),ho(),t.flags|=98560,a=!1;else if(a=fo(t),null!==r&&null!==r.dehydrated){if(null===e){if(!a)throw Error(o(318));if(!(a=null!==(a=t.memoizedState)?a.dehydrated:null))throw Error(o(317));a[fi]=t}else ho(),0==(128&t.flags)&&(t.memoizedState=null),t.flags|=4;Gl(t),a=!1}else null!==oo&&(lu(oo),oo=null),a=!0;if(!a)return 65536&t.flags?t:null}return 0!=(128&t.flags)?(t.lanes=n,t):((r=null!==r)!=(null!==e&&null!==e.memoizedState)&&r&&(t.child.flags|=8192,0!=(1&t.mode)&&(null===e||0!=(1&sa.current)?0===zs&&(zs=3):gu())),null!==t.updateQueue&&(t.flags|=4),Gl(t),null);case 4:return oa(),Dl(e,t),null===e&&Wr(t.stateNode.containerInfo),Gl(t),null;case 10:return ko(t.type._context),Gl(t),null;case 19:if(Si(sa),null===(a=t.memoizedState))return Gl(t),null;if(r=0!=(128&t.flags),null===(s=a.rendering))if(r)Yl(a,!1);else{if(0!==zs||null!==e&&0!=(128&e.flags))for(e=t.child;null!==e;){if(null!==(s=ua(e))){for(t.flags|=128,Yl(a,!1),null!==(r=s.updateQueue)&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;null!==n;)e=r,(a=n).flags&=14680066,null===(s=a.alternate)?(a.childLanes=0,a.lanes=e,a.child=null,a.subtreeFlags=0,a.memoizedProps=null,a.memoizedState=null,a.updateQueue=null,a.dependencies=null,a.stateNode=null):(a.childLanes=s.childLanes,a.lanes=s.lanes,a.child=s.child,a.subtreeFlags=0,a.deletions=null,a.memoizedProps=s.memoizedProps,a.memoizedState=s.memoizedState,a.updateQueue=s.updateQueue,a.type=s.type,e=s.dependencies,a.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return Ti(sa,1&sa.current|2),t.child}e=e.sibling}null!==a.tail&&Xe()>Hs&&(t.flags|=128,r=!0,Yl(a,!1),t.lanes=4194304)}else{if(!r)if(null!==(e=ua(s))){if(t.flags|=128,r=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.flags|=4),Yl(a,!0),null===a.tail&&"hidden"===a.tailMode&&!s.alternate&&!io)return Gl(t),null}else 2*Xe()-a.renderingStartTime>Hs&&1073741824!==n&&(t.flags|=128,r=!0,Yl(a,!1),t.lanes=4194304);a.isBackwards?(s.sibling=t.child,t.child=s):(null!==(n=a.last)?n.sibling=s:t.child=s,a.last=s)}return null!==a.tail?(t=a.tail,a.rendering=t,a.tail=t.sibling,a.renderingStartTime=Xe(),t.sibling=null,n=sa.current,Ti(sa,r?1&n|2:1&n),t):(Gl(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&Ds)&&(Gl(t),6&t.subtreeFlags&&(t.flags|=8192)):Gl(t),null;case 24:case 25:return null}throw Error(o(156,t.tag))}function Zl(e,t){switch(to(t),t.tag){case 1:return Pi(t.type)&&Di(),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return oa(),Si(Ai),Si(Oi),da(),0!=(65536&(e=t.flags))&&0==(128&e)?(t.flags=-65537&e|128,t):null;case 5:return la(t),null;case 13:if(Si(sa),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(o(340));ho()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return Si(sa),null;case 4:return oa(),null;case 10:return ko(t.type._context),null;case 22:case 23:return fu(),null;default:return null}}Pl=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}},Dl=function(){},Il=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,ra(ea.current);var o,a=null;switch(n){case"input":i=Z(e,i),r=Z(e,r),a=[];break;case"select":i=F({},i,{value:void 0}),r=F({},r,{value:void 0}),a=[];break;case"textarea":i=re(e,i),r=re(e,r),a=[];break;default:"function"!=typeof i.onClick&&"function"==typeof r.onClick&&(e.onclick=Jr)}for(c in ye(n,r),n=null,i)if(!r.hasOwnProperty(c)&&i.hasOwnProperty(c)&&null!=i[c])if("style"===c){var s=i[c];for(o in s)s.hasOwnProperty(o)&&(n||(n={}),n[o]="")}else"dangerouslySetInnerHTML"!==c&&"children"!==c&&"suppressContentEditableWarning"!==c&&"suppressHydrationWarning"!==c&&"autoFocus"!==c&&(l.hasOwnProperty(c)?a||(a=[]):(a=a||[]).push(c,null));for(c in r){var u=r[c];if(s=null!=i?i[c]:void 0,r.hasOwnProperty(c)&&u!==s&&(null!=u||null!=s))if("style"===c)if(s){for(o in s)!s.hasOwnProperty(o)||u&&u.hasOwnProperty(o)||(n||(n={}),n[o]="");for(o in u)u.hasOwnProperty(o)&&s[o]!==u[o]&&(n||(n={}),n[o]=u[o])}else n||(a||(a=[]),a.push(c,n)),n=u;else"dangerouslySetInnerHTML"===c?(u=u?u.__html:void 0,s=s?s.__html:void 0,null!=u&&s!==u&&(a=a||[]).push(c,u)):"children"===c?"string"!=typeof u&&"number"!=typeof u||(a=a||[]).push(c,""+u):"suppressContentEditableWarning"!==c&&"suppressHydrationWarning"!==c&&(l.hasOwnProperty(c)?(null!=u&&"onScroll"===c&&jr("scroll",e),a||s===u||(a=[])):(a=a||[]).push(c,u))}n&&(a=a||[]).push("style",n);var c=a;(t.updateQueue=c)&&(t.flags|=4)}},zl=function(e,t,n,r){n!==r&&(t.flags|=4)};var $l=!1,Xl=!1,Ql="function"==typeof WeakSet?WeakSet:Set,Jl=null;function es(e,t){var n=e.ref;if(null!==n)if("function"==typeof n)try{n(null)}catch(n){Su(e,t,n)}else n.current=null}function ts(e,t,n){try{n()}catch(n){Su(e,t,n)}}var ns=!1;function rs(e,t,n){var r=t.updateQueue;if(null!==(r=null!==r?r.lastEffect:null)){var i=r=r.next;do{if((i.tag&e)===e){var o=i.destroy;i.destroy=void 0,void 0!==o&&ts(t,n,o)}i=i.next}while(i!==r)}}function is(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 os(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 as(e){var t=e.alternate;null!==t&&(e.alternate=null,as(t)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&null!==(t=e.stateNode)&&(delete t[fi],delete t[pi],delete t[mi],delete t[gi],delete t[vi]),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 ls(e){return 5===e.tag||3===e.tag||4===e.tag}function ss(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||ls(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 us(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)||null!==t.onclick||(t.onclick=Jr));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}function cs(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(cs(e,t,n),e=e.sibling;null!==e;)cs(e,t,n),e=e.sibling}var ds=null,fs=!1;function ps(e,t,n){for(n=n.child;null!==n;)hs(e,t,n),n=n.sibling}function hs(e,t,n){if(ot&&"function"==typeof ot.onCommitFiberUnmount)try{ot.onCommitFiberUnmount(it,n)}catch(e){}switch(n.tag){case 5:Xl||es(n,t);case 6:var r=ds,i=fs;ds=null,ps(e,t,n),fs=i,null!==(ds=r)&&(fs?(e=ds,n=n.stateNode,8===e.nodeType?e.parentNode.removeChild(n):e.removeChild(n)):ds.removeChild(n.stateNode));break;case 18:null!==ds&&(fs?(e=ds,n=n.stateNode,8===e.nodeType?si(e.parentNode,n):1===e.nodeType&&si(e,n),Wt(e)):si(ds,n.stateNode));break;case 4:r=ds,i=fs,ds=n.stateNode.containerInfo,fs=!0,ps(e,t,n),ds=r,fs=i;break;case 0:case 11:case 14:case 15:if(!Xl&&null!==(r=n.updateQueue)&&null!==(r=r.lastEffect)){i=r=r.next;do{var o=i,a=o.destroy;o=o.tag,void 0!==a&&(0!=(2&o)||0!=(4&o))&&ts(n,t,a),i=i.next}while(i!==r)}ps(e,t,n);break;case 1:if(!Xl&&(es(n,t),"function"==typeof(r=n.stateNode).componentWillUnmount))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(e){Su(n,t,e)}ps(e,t,n);break;case 21:ps(e,t,n);break;case 22:1&n.mode?(Xl=(r=Xl)||null!==n.memoizedState,ps(e,t,n),Xl=r):ps(e,t,n);break;default:ps(e,t,n)}}function ms(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new Ql),t.forEach((function(t){var r=Au.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))}))}}function gs(e,t){var n=t.deletions;if(null!==n)for(var r=0;r<n.length;r++){var i=n[r];try{var a=e,l=t,s=l;e:for(;null!==s;){switch(s.tag){case 5:ds=s.stateNode,fs=!1;break e;case 3:case 4:ds=s.stateNode.containerInfo,fs=!0;break e}s=s.return}if(null===ds)throw Error(o(160));hs(a,l,i),ds=null,fs=!1;var u=i.alternate;null!==u&&(u.return=null),i.return=null}catch(e){Su(i,t,e)}}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(gs(t,e),ys(e),4&r){try{rs(3,e,e.return),is(3,e)}catch(t){Su(e,e.return,t)}try{rs(5,e,e.return)}catch(t){Su(e,e.return,t)}}break;case 1:gs(t,e),ys(e),512&r&&null!==n&&es(n,n.return);break;case 5:if(gs(t,e),ys(e),512&r&&null!==n&&es(n,n.return),32&e.flags){var i=e.stateNode;try{fe(i,"")}catch(t){Su(e,e.return,t)}}if(4&r&&null!=(i=e.stateNode)){var a=e.memoizedProps,l=null!==n?n.memoizedProps:a,s=e.type,u=e.updateQueue;if(e.updateQueue=null,null!==u)try{"input"===s&&"radio"===a.type&&null!=a.name&&X(i,a),be(s,l);var c=be(s,a);for(l=0;l<u.length;l+=2){var d=u[l],f=u[l+1];"style"===d?ge(i,f):"dangerouslySetInnerHTML"===d?de(i,f):"children"===d?fe(i,f):b(i,d,f,c)}switch(s){case"input":Q(i,a);break;case"textarea":oe(i,a);break;case"select":var p=i._wrapperState.wasMultiple;i._wrapperState.wasMultiple=!!a.multiple;var h=a.value;null!=h?ne(i,!!a.multiple,h,!1):p!==!!a.multiple&&(null!=a.defaultValue?ne(i,!!a.multiple,a.defaultValue,!0):ne(i,!!a.multiple,a.multiple?[]:"",!1))}i[pi]=a}catch(t){Su(e,e.return,t)}}break;case 6:if(gs(t,e),ys(e),4&r){if(null===e.stateNode)throw Error(o(162));i=e.stateNode,a=e.memoizedProps;try{i.nodeValue=a}catch(t){Su(e,e.return,t)}}break;case 3:if(gs(t,e),ys(e),4&r&&null!==n&&n.memoizedState.isDehydrated)try{Wt(t.containerInfo)}catch(t){Su(e,e.return,t)}break;case 4:default:gs(t,e),ys(e);break;case 13:gs(t,e),ys(e),8192&(i=e.child).flags&&(a=null!==i.memoizedState,i.stateNode.isHidden=a,!a||null!==i.alternate&&null!==i.alternate.memoizedState||(Ws=Xe())),4&r&&ms(e);break;case 22:if(d=null!==n&&null!==n.memoizedState,1&e.mode?(Xl=(c=Xl)||d,gs(t,e),Xl=c):gs(t,e),ys(e),8192&r){if(c=null!==e.memoizedState,(e.stateNode.isHidden=c)&&!d&&0!=(1&e.mode))for(Jl=e,d=e.child;null!==d;){for(f=Jl=d;null!==Jl;){switch(h=(p=Jl).child,p.tag){case 0:case 11:case 14:case 15:rs(4,p,p.return);break;case 1:es(p,p.return);var m=p.stateNode;if("function"==typeof m.componentWillUnmount){r=p,n=p.return;try{t=r,m.props=t.memoizedProps,m.state=t.memoizedState,m.componentWillUnmount()}catch(e){Su(r,n,e)}}break;case 5:es(p,p.return);break;case 22:if(null!==p.memoizedState){_s(f);continue}}null!==h?(h.return=p,Jl=h):_s(f)}d=d.sibling}e:for(d=null,f=e;;){if(5===f.tag){if(null===d){d=f;try{i=f.stateNode,c?"function"==typeof(a=i.style).setProperty?a.setProperty("display","none","important"):a.display="none":(s=f.stateNode,l=null!=(u=f.memoizedProps.style)&&u.hasOwnProperty("display")?u.display:null,s.style.display=me("display",l))}catch(t){Su(e,e.return,t)}}}else if(6===f.tag){if(null===d)try{f.stateNode.nodeValue=c?"":f.memoizedProps}catch(t){Su(e,e.return,t)}}else if((22!==f.tag&&23!==f.tag||null===f.memoizedState||f===e)&&null!==f.child){f.child.return=f,f=f.child;continue}if(f===e)break e;for(;null===f.sibling;){if(null===f.return||f.return===e)break e;d===f&&(d=null),f=f.return}d===f&&(d=null),f.sibling.return=f.return,f=f.sibling}}break;case 19:gs(t,e),ys(e),4&r&&ms(e);case 21:}}function ys(e){var t=e.flags;if(2&t){try{e:{for(var n=e.return;null!==n;){if(ls(n)){var r=n;break e}n=n.return}throw Error(o(160))}switch(r.tag){case 5:var i=r.stateNode;32&r.flags&&(fe(i,""),r.flags&=-33),cs(e,ss(e),i);break;case 3:case 4:var a=r.stateNode.containerInfo;us(e,ss(e),a);break;default:throw Error(o(161))}}catch(t){Su(e,e.return,t)}e.flags&=-3}4096&t&&(e.flags&=-4097)}function bs(e,t,n){Jl=e,ws(e,t,n)}function ws(e,t,n){for(var r=0!=(1&e.mode);null!==Jl;){var i=Jl,o=i.child;if(22===i.tag&&r){var a=null!==i.memoizedState||$l;if(!a){var l=i.alternate,s=null!==l&&null!==l.memoizedState||Xl;l=$l;var u=Xl;if($l=a,(Xl=s)&&!u)for(Jl=i;null!==Jl;)s=(a=Jl).child,22===a.tag&&null!==a.memoizedState?ks(i):null!==s?(s.return=a,Jl=s):ks(i);for(;null!==o;)Jl=o,ws(o,t,n),o=o.sibling;Jl=i,$l=l,Xl=u}xs(e)}else 0!=(8772&i.subtreeFlags)&&null!==o?(o.return=i,Jl=o):xs(e)}}function xs(e){for(;null!==Jl;){var t=Jl;if(0!=(8772&t.flags)){var n=t.alternate;try{if(0!=(8772&t.flags))switch(t.tag){case 0:case 11:case 15:Xl||is(5,t);break;case 1:var r=t.stateNode;if(4&t.flags&&!Xl)if(null===n)r.componentDidMount();else{var i=t.elementType===t.type?n.memoizedProps:vo(t.type,n.memoizedProps);r.componentDidUpdate(i,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var a=t.updateQueue;null!==a&&jo(t,a,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}jo(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 d=c.memoizedState;if(null!==d){var f=d.dehydrated;null!==f&&Wt(f)}}}break;default:throw Error(o(163))}Xl||512&t.flags&&os(t)}catch(e){Su(t,t.return,e)}}if(t===e){Jl=null;break}if(null!==(n=t.sibling)){n.return=t.return,Jl=n;break}Jl=t.return}}function _s(e){for(;null!==Jl;){var t=Jl;if(t===e){Jl=null;break}var n=t.sibling;if(null!==n){n.return=t.return,Jl=n;break}Jl=t.return}}function ks(e){for(;null!==Jl;){var t=Jl;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{is(4,t)}catch(e){Su(t,n,e)}break;case 1:var r=t.stateNode;if("function"==typeof r.componentDidMount){var i=t.return;try{r.componentDidMount()}catch(e){Su(t,i,e)}}var o=t.return;try{os(t)}catch(e){Su(t,o,e)}break;case 5:var a=t.return;try{os(t)}catch(e){Su(t,a,e)}}}catch(e){Su(t,t.return,e)}if(t===e){Jl=null;break}var l=t.sibling;if(null!==l){l.return=t.return,Jl=l;break}Jl=t.return}}var Es,Ss=Math.ceil,Ts=w.ReactCurrentDispatcher,Ls=w.ReactCurrentOwner,Os=w.ReactCurrentBatchConfig,As=0,Cs=null,Ns=null,Ps=0,Ds=0,Is=Ei(0),zs=0,Rs=null,Fs=0,Bs=0,js=0,Us=null,Ms=null,Ws=0,Hs=1/0,Ks=null,qs=!1,Ys=null,Gs=null,Vs=!1,Zs=null,$s=0,Xs=0,Qs=null,Js=-1,eu=0;function tu(){return 0!=(6&As)?Xe():-1!==Js?Js:Js=Xe()}function nu(e){return 0==(1&e.mode)?1:0!=(2&As)&&0!==Ps?Ps&-Ps:null!==go.transition?(0===eu&&(eu=mt()),eu):0!==(e=bt)?e:e=void 0===(e=window.event)?16:$t(e.type)}function ru(e,t,n,r){if(50<Xs)throw Xs=0,Qs=null,Error(o(185));vt(e,n,r),0!=(2&As)&&e===Cs||(e===Cs&&(0==(2&As)&&(Bs|=n),4===zs&&su(e,Ps)),iu(e,r),1===n&&0===As&&0==(1&t.mode)&&(Hs=Xe()+500,ji&&Wi()))}function iu(e,t){var n=e.callbackNode;!function(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,o=e.pendingLanes;0<o;){var a=31-at(o),l=1<<a,s=i[a];-1===s?0!=(l&n)&&0==(l&r)||(i[a]=pt(l,t)):s<=t&&(e.expiredLanes|=l),o&=~l}}(e,t);var r=ft(e,e===Cs?Ps:0);if(0===r)null!==n&&Ve(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(null!=n&&Ve(n),1===t)0===e.tag?function(e){ji=!0,Mi(e)}(uu.bind(null,e)):Mi(uu.bind(null,e)),ai((function(){0==(6&As)&&Wi()})),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=Cu(n,ou.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function ou(e,t){if(Js=-1,eu=0,0!=(6&As))throw Error(o(327));var n=e.callbackNode;if(ku()&&e.callbackNode!==n)return null;var r=ft(e,e===Cs?Ps:0);if(0===r)return null;if(0!=(30&r)||0!=(r&e.expiredLanes)||t)t=vu(e,r);else{t=r;var i=As;As|=2;var a=mu();for(Cs===e&&Ps===t||(Ks=null,Hs=Xe()+500,pu(e,t));;)try{bu();break}catch(t){hu(e,t)}_o(),Ts.current=a,As=i,null!==Ns?t=0:(Cs=null,Ps=0,t=zs)}if(0!==t){if(2===t&&0!==(i=ht(e))&&(r=i,t=au(e,i)),1===t)throw n=Rs,pu(e,0),su(e,r),iu(e,Xe()),n;if(6===t)su(e,r);else{if(i=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 i=n[r],o=i.getSnapshot;i=i.value;try{if(!lr(o(),i))return!1}catch(e){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}(i)&&(2===(t=vu(e,r))&&0!==(a=ht(e))&&(r=a,t=au(e,a)),1===t))throw n=Rs,pu(e,0),su(e,r),iu(e,Xe()),n;switch(e.finishedWork=i,e.finishedLanes=r,t){case 0:case 1:throw Error(o(345));case 2:case 5:_u(e,Ms,Ks);break;case 3:if(su(e,r),(130023424&r)===r&&10<(t=Ws+500-Xe())){if(0!==ft(e,0))break;if(((i=e.suspendedLanes)&r)!==r){tu(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=ri(_u.bind(null,e,Ms,Ks),t);break}_u(e,Ms,Ks);break;case 4:if(su(e,r),(4194240&r)===r)break;for(t=e.eventTimes,i=-1;0<r;){var l=31-at(r);a=1<<l,(l=t[l])>i&&(i=l),r&=~a}if(r=i,10<(r=(120>(r=Xe()-r)?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Ss(r/1960))-r)){e.timeoutHandle=ri(_u.bind(null,e,Ms,Ks),r);break}_u(e,Ms,Ks);break;default:throw Error(o(329))}}}return iu(e,Xe()),e.callbackNode===n?ou.bind(null,e):null}function au(e,t){var n=Us;return e.current.memoizedState.isDehydrated&&(pu(e,t).flags|=256),2!==(e=vu(e,t))&&(t=Ms,Ms=n,null!==t&&lu(t)),e}function lu(e){null===Ms?Ms=e:Ms.push.apply(Ms,e)}function su(e,t){for(t&=~js,t&=~Bs,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-at(t),r=1<<n;e[n]=-1,t&=~r}}function uu(e){if(0!=(6&As))throw Error(o(327));ku();var t=ft(e,0);if(0==(1&t))return iu(e,Xe()),null;var n=vu(e,t);if(0!==e.tag&&2===n){var r=ht(e);0!==r&&(t=r,n=au(e,r))}if(1===n)throw n=Rs,pu(e,0),su(e,t),iu(e,Xe()),n;if(6===n)throw Error(o(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,_u(e,Ms,Ks),iu(e,Xe()),null}function cu(e,t){var n=As;As|=1;try{return e(t)}finally{0===(As=n)&&(Hs=Xe()+500,ji&&Wi())}}function du(e){null!==Zs&&0===Zs.tag&&0==(6&As)&&ku();var t=As;As|=1;var n=Os.transition,r=bt;try{if(Os.transition=null,bt=1,e)return e()}finally{bt=r,Os.transition=n,0==(6&(As=t))&&Wi()}}function fu(){Ds=Is.current,Si(Is)}function pu(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,ii(n)),null!==Ns)for(n=Ns.return;null!==n;){var r=n;switch(to(r),r.tag){case 1:null!=(r=r.type.childContextTypes)&&Di();break;case 3:oa(),Si(Ai),Si(Oi),da();break;case 5:la(r);break;case 4:oa();break;case 13:case 19:Si(sa);break;case 10:ko(r.type._context);break;case 22:case 23:fu()}n=n.return}if(Cs=e,Ns=e=Iu(e.current,null),Ps=Ds=t,zs=0,Rs=null,js=Bs=Fs=0,Ms=Us=null,null!==Lo){for(t=0;t<Lo.length;t++)if(null!==(r=(n=Lo[t]).interleaved)){n.interleaved=null;var i=r.next,o=n.pending;if(null!==o){var a=o.next;o.next=i,r.next=a}n.pending=r}Lo=null}return e}function hu(e,t){for(;;){var n=Ns;try{if(_o(),fa.current=al,ya){for(var r=ma.memoizedState;null!==r;){var i=r.queue;null!==i&&(i.pending=null),r=r.next}ya=!1}if(ha=0,va=ga=ma=null,ba=!1,wa=0,Ls.current=null,null===n||null===n.return){zs=1,Rs=t,Ns=null;break}e:{var a=e,l=n.return,s=n,u=t;if(t=Ps,s.flags|=32768,null!==u&&"object"==typeof u&&"function"==typeof u.then){var c=u,d=s,f=d.tag;if(0==(1&d.mode)&&(0===f||11===f||15===f)){var p=d.alternate;p?(d.updateQueue=p.updateQueue,d.memoizedState=p.memoizedState,d.lanes=p.lanes):(d.updateQueue=null,d.memoizedState=null)}var h=vl(l);if(null!==h){h.flags&=-257,yl(h,l,s,0,t),1&h.mode&&gl(a,c,t),u=c;var m=(t=h).updateQueue;if(null===m){var g=new Set;g.add(u),t.updateQueue=g}else m.add(u);break e}if(0==(1&t)){gl(a,c,t),gu();break e}u=Error(o(426))}else if(io&&1&s.mode){var v=vl(l);if(null!==v){0==(65536&v.flags)&&(v.flags|=256),yl(v,l,s,0,t),mo(cl(u,s));break e}}a=u=cl(u,s),4!==zs&&(zs=2),null===Us?Us=[a]:Us.push(a),a=l;do{switch(a.tag){case 3:a.flags|=65536,t&=-t,a.lanes|=t,Fo(a,hl(0,u,t));break e;case 1:s=u;var y=a.type,b=a.stateNode;if(0==(128&a.flags)&&("function"==typeof y.getDerivedStateFromError||null!==b&&"function"==typeof b.componentDidCatch&&(null===Gs||!Gs.has(b)))){a.flags|=65536,t&=-t,a.lanes|=t,Fo(a,ml(a,s,t));break e}}a=a.return}while(null!==a)}xu(n)}catch(e){t=e,Ns===n&&null!==n&&(Ns=n=n.return);continue}break}}function mu(){var e=Ts.current;return Ts.current=al,null===e?al:e}function gu(){0!==zs&&3!==zs&&2!==zs||(zs=4),null===Cs||0==(268435455&Fs)&&0==(268435455&Bs)||su(Cs,Ps)}function vu(e,t){var n=As;As|=2;var r=mu();for(Cs===e&&Ps===t||(Ks=null,pu(e,t));;)try{yu();break}catch(t){hu(e,t)}if(_o(),As=n,Ts.current=r,null!==Ns)throw Error(o(261));return Cs=null,Ps=0,zs}function yu(){for(;null!==Ns;)wu(Ns)}function bu(){for(;null!==Ns&&!Ze();)wu(Ns)}function wu(e){var t=Es(e.alternate,e,Ds);e.memoizedProps=e.pendingProps,null===t?xu(e):Ns=t,Ls.current=null}function xu(e){var t=e;do{var n=t.alternate;if(e=t.return,0==(32768&t.flags)){if(null!==(n=Vl(n,t,Ds)))return void(Ns=n)}else{if(null!==(n=Zl(n,t)))return n.flags&=32767,void(Ns=n);if(null===e)return zs=6,void(Ns=null);e.flags|=32768,e.subtreeFlags=0,e.deletions=null}if(null!==(t=t.sibling))return void(Ns=t);Ns=t=e}while(null!==t);0===zs&&(zs=5)}function _u(e,t,n){var r=bt,i=Os.transition;try{Os.transition=null,bt=1,function(e,t,n,r){do{ku()}while(null!==Zs);if(0!=(6&As))throw Error(o(327));n=e.finishedWork;var i=e.finishedLanes;if(null===n)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(o(177));e.callbackNode=null,e.callbackPriority=0;var a=n.lanes|n.childLanes;if(function(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var i=31-at(n),o=1<<i;t[i]=0,r[i]=-1,e[i]=-1,n&=~o}}(e,a),e===Cs&&(Ns=Cs=null,Ps=0),0==(2064&n.subtreeFlags)&&0==(2064&n.flags)||Vs||(Vs=!0,Cu(tt,(function(){return ku(),null}))),a=0!=(15990&n.flags),0!=(15990&n.subtreeFlags)||a){a=Os.transition,Os.transition=null;var l=bt;bt=1;var s=As;As|=4,Ls.current=null,function(e,t){if(ei=Kt,pr(e=fr())){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 i=r.anchorOffset,a=r.focusNode;r=r.focusOffset;try{n.nodeType,a.nodeType}catch(e){n=null;break e}var l=0,s=-1,u=-1,c=0,d=0,f=e,p=null;t:for(;;){for(var h;f!==n||0!==i&&3!==f.nodeType||(s=l+i),f!==a||0!==r&&3!==f.nodeType||(u=l+r),3===f.nodeType&&(l+=f.nodeValue.length),null!==(h=f.firstChild);)p=f,f=h;for(;;){if(f===e)break t;if(p===n&&++c===i&&(s=l),p===a&&++d===r&&(u=l),null!==(h=f.nextSibling))break;p=(f=p).parentNode}f=h}n=-1===s||-1===u?null:{start:s,end:u}}else n=null}n=n||{start:0,end:0}}else n=null;for(ti={focusedElem:e,selectionRange:n},Kt=!1,Jl=t;null!==Jl;)if(e=(t=Jl).child,0!=(1028&t.subtreeFlags)&&null!==e)e.return=t,Jl=e;else for(;null!==Jl;){t=Jl;try{var m=t.alternate;if(0!=(1024&t.flags))switch(t.tag){case 0:case 11:case 15:case 5:case 6:case 4:case 17:break;case 1:if(null!==m){var g=m.memoizedProps,v=m.memoizedState,y=t.stateNode,b=y.getSnapshotBeforeUpdate(t.elementType===t.type?g:vo(t.type,g),v);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(o(163))}}catch(e){Su(t,t.return,e)}if(null!==(e=t.sibling)){e.return=t.return,Jl=e;break}Jl=t.return}m=ns,ns=!1}(e,n),vs(n,e),hr(ti),Kt=!!ei,ti=ei=null,e.current=n,bs(n,e,i),$e(),As=s,bt=l,Os.transition=a}else e.current=n;if(Vs&&(Vs=!1,Zs=e,$s=i),0===(a=e.pendingLanes)&&(Gs=null),function(e){if(ot&&"function"==typeof ot.onCommitFiberRoot)try{ot.onCommitFiberRoot(it,e,void 0,128==(128&e.current.flags))}catch(e){}}(n.stateNode),iu(e,Xe()),null!==t)for(r=e.onRecoverableError,n=0;n<t.length;n++)r((i=t[n]).value,{componentStack:i.stack,digest:i.digest});if(qs)throw qs=!1,e=Ys,Ys=null,e;0!=(1&$s)&&0!==e.tag&&ku(),0!=(1&(a=e.pendingLanes))?e===Qs?Xs++:(Xs=0,Qs=e):Xs=0,Wi()}(e,t,n,r)}finally{Os.transition=i,bt=r}return null}function ku(){if(null!==Zs){var e=wt($s),t=Os.transition,n=bt;try{if(Os.transition=null,bt=16>e?16:e,null===Zs)var r=!1;else{if(e=Zs,Zs=null,$s=0,0!=(6&As))throw Error(o(331));var i=As;for(As|=4,Jl=e.current;null!==Jl;){var a=Jl,l=a.child;if(0!=(16&Jl.flags)){var s=a.deletions;if(null!==s){for(var u=0;u<s.length;u++){var c=s[u];for(Jl=c;null!==Jl;){var d=Jl;switch(d.tag){case 0:case 11:case 15:rs(8,d,a)}var f=d.child;if(null!==f)f.return=d,Jl=f;else for(;null!==Jl;){var p=(d=Jl).sibling,h=d.return;if(as(d),d===c){Jl=null;break}if(null!==p){p.return=h,Jl=p;break}Jl=h}}}var m=a.alternate;if(null!==m){var g=m.child;if(null!==g){m.child=null;do{var v=g.sibling;g.sibling=null,g=v}while(null!==g)}}Jl=a}}if(0!=(2064&a.subtreeFlags)&&null!==l)l.return=a,Jl=l;else e:for(;null!==Jl;){if(0!=(2048&(a=Jl).flags))switch(a.tag){case 0:case 11:case 15:rs(9,a,a.return)}var y=a.sibling;if(null!==y){y.return=a.return,Jl=y;break e}Jl=a.return}}var b=e.current;for(Jl=b;null!==Jl;){var w=(l=Jl).child;if(0!=(2064&l.subtreeFlags)&&null!==w)w.return=l,Jl=w;else e:for(l=b;null!==Jl;){if(0!=(2048&(s=Jl).flags))try{switch(s.tag){case 0:case 11:case 15:is(9,s)}}catch(e){Su(s,s.return,e)}if(s===l){Jl=null;break e}var x=s.sibling;if(null!==x){x.return=s.return,Jl=x;break e}Jl=s.return}}if(As=i,Wi(),ot&&"function"==typeof ot.onPostCommitFiberRoot)try{ot.onPostCommitFiberRoot(it,e)}catch(e){}r=!0}return r}finally{bt=n,Os.transition=t}}return!1}function Eu(e,t,n){e=zo(e,t=hl(0,t=cl(n,t),1),1),t=tu(),null!==e&&(vt(e,1,t),iu(e,t))}function Su(e,t,n){if(3===e.tag)Eu(e,e,n);else for(;null!==t;){if(3===t.tag){Eu(t,e,n);break}if(1===t.tag){var r=t.stateNode;if("function"==typeof t.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===Gs||!Gs.has(r))){t=zo(t,e=ml(t,e=cl(n,e),1),1),e=tu(),null!==t&&(vt(t,1,e),iu(t,e));break}}t=t.return}}function Tu(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),t=tu(),e.pingedLanes|=e.suspendedLanes&n,Cs===e&&(Ps&n)===n&&(4===zs||3===zs&&(130023424&Ps)===Ps&&500>Xe()-Ws?pu(e,0):js|=n),iu(e,t)}function Lu(e,t){0===t&&(0==(1&e.mode)?t=1:(t=ct,0==(130023424&(ct<<=1))&&(ct=4194304)));var n=tu();null!==(e=Co(e,t))&&(vt(e,t,n),iu(e,n))}function Ou(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),Lu(e,n)}function Au(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;null!==i&&(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(o(314))}null!==r&&r.delete(t),Lu(e,n)}function Cu(e,t){return Ge(e,t)}function Nu(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 Pu(e,t,n,r){return new Nu(e,t,n,r)}function Du(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Iu(e,t){var n=e.alternate;return null===n?((n=Pu(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,i,a){var l=2;if(r=e,"function"==typeof e)Du(e)&&(l=1);else if("string"==typeof e)l=5;else e:switch(e){case k:return Ru(n.children,i,a,t);case E:l=8,i|=8;break;case S:return(e=Pu(12,n,t,2|i)).elementType=S,e.lanes=a,e;case A:return(e=Pu(13,n,t,i)).elementType=A,e.lanes=a,e;case C:return(e=Pu(19,n,t,i)).elementType=C,e.lanes=a,e;case D:return Fu(n,i,a,t);default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case T:l=10;break e;case L:l=9;break e;case O:l=11;break e;case N:l=14;break e;case P:l=16,r=null;break e}throw Error(o(130,null==e?e:typeof e,""))}return(t=Pu(l,n,t,i)).elementType=e,t.type=r,t.lanes=a,t}function Ru(e,t,n,r){return(e=Pu(7,e,r,t)).lanes=n,e}function Fu(e,t,n,r){return(e=Pu(22,e,r,t)).elementType=D,e.lanes=n,e.stateNode={isHidden:!1},e}function Bu(e,t,n){return(e=Pu(6,e,null,t)).lanes=n,e}function ju(e,t,n){return(t=Pu(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Uu(e,t,n,r,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=gt(0),this.expirationTimes=gt(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=gt(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function Mu(e,t,n,r,i,o,a,l,s){return e=new Uu(e,t,n,l,s),1===t?(t=1,!0===o&&(t|=8)):t=0,o=Pu(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Po(o),e}function Wu(e){if(!e)return Li;e:{if(We(e=e._reactInternals)!==e||1!==e.tag)throw Error(o(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Pi(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(null!==t);throw Error(o(171))}if(1===e.tag){var n=e.type;if(Pi(n))return zi(e,n,t)}return t}function Hu(e,t,n,r,i,o,a,l,s){return(e=Mu(n,r,!0,e,0,o,0,l,s)).context=Wu(null),n=e.current,(o=Io(r=tu(),i=nu(n))).callback=null!=t?t:null,zo(n,o,i),e.current.lanes=i,vt(e,i,r),iu(e,r),e}function Ku(e,t,n,r){var i=t.current,o=tu(),a=nu(i);return n=Wu(n),null===t.context?t.context=n:t.pendingContext=n,(t=Io(o,a)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),null!==(e=zo(i,t,a))&&(ru(e,i,a,o),Ro(e,i,a)),a}function qu(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function Yu(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function Gu(e,t){Yu(e,t),(e=e.alternate)&&Yu(e,t)}Es=function(e,t,n){if(null!==e)if(e.memoizedProps!==t.pendingProps||Ai.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:Cl(t),ho();break;case 5:aa(t);break;case 1:Pi(t.type)&&Ri(t);break;case 4:ia(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,i=t.memoizedProps.value;Ti(yo,r._currentValue),r._currentValue=i;break;case 13:if(null!==(r=t.memoizedState))return null!==r.dehydrated?(Ti(sa,1&sa.current),t.flags|=128,null):0!=(n&t.child.childLanes)?Bl(e,t,n):(Ti(sa,1&sa.current),null!==(e=ql(e,t,n))?e.sibling:null);Ti(sa,1&sa.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!==(i=t.memoizedState)&&(i.rendering=null,i.tail=null,i.lastEffect=null),Ti(sa,sa.current),r)break;return null;case 22:case 23:return t.lanes=0,Sl(e,t,n)}return ql(e,t,n)}(e,t,n);wl=0!=(131072&e.flags)}else wl=!1,io&&0!=(1048576&t.flags)&&Ji(t,Yi,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Kl(e,t),e=t.pendingProps;var i=Ni(t,Oi.current);So(t,n),i=Ea(null,t,r,e,i,n);var a=Sa();return t.flags|=1,"object"==typeof i&&null!==i&&"function"==typeof i.render&&void 0===i.$$typeof?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Pi(r)?(a=!0,Ri(t)):a=!1,t.memoizedState=null!==i.state&&void 0!==i.state?i.state:null,Po(t),i.updater=Wo,t.stateNode=i,i._reactInternals=t,Yo(t,r,e,n),t=Al(null,t,r,!0,a,n)):(t.tag=0,io&&a&&eo(t),xl(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Kl(e,t),e=t.pendingProps,r=(i=r._init)(r._payload),t.type=r,i=t.tag=function(e){if("function"==typeof e)return Du(e)?1:0;if(null!=e){if((e=e.$$typeof)===O)return 11;if(e===N)return 14}return 2}(r),e=vo(r,e),i){case 0:t=Ll(null,t,r,e,n);break e;case 1:t=Ol(null,t,r,e,n);break e;case 11:t=_l(null,t,r,e,n);break e;case 14:t=kl(null,t,r,vo(r.type,e),n);break e}throw Error(o(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,Ll(e,t,r,i=t.elementType===r?i:vo(r,i),n);case 1:return r=t.type,i=t.pendingProps,Ol(e,t,r,i=t.elementType===r?i:vo(r,i),n);case 3:e:{if(Cl(t),null===e)throw Error(o(387));r=t.pendingProps,i=(a=t.memoizedState).element,Do(e,t),Bo(t,r,null,n);var l=t.memoizedState;if(r=l.element,a.isDehydrated){if(a={element:r,isDehydrated:!1,cache:l.cache,pendingSuspenseBoundaries:l.pendingSuspenseBoundaries,transitions:l.transitions},t.updateQueue.baseState=a,t.memoizedState=a,256&t.flags){t=Nl(e,t,r,n,i=cl(Error(o(423)),t));break e}if(r!==i){t=Nl(e,t,r,n,i=cl(Error(o(424)),t));break e}for(ro=ui(t.stateNode.containerInfo.firstChild),no=t,io=!0,oo=null,n=Qo(t,null,r,n),t.child=n;n;)n.flags=-3&n.flags|4096,n=n.sibling}else{if(ho(),r===i){t=ql(e,t,n);break e}xl(e,t,r,n)}t=t.child}return t;case 5:return aa(t),null===e&&uo(t),r=t.type,i=t.pendingProps,a=null!==e?e.memoizedProps:null,l=i.children,ni(r,i)?l=null:null!==a&&ni(r,a)&&(t.flags|=32),Tl(e,t),xl(e,t,l,n),t.child;case 6:return null===e&&uo(t),null;case 13:return Bl(e,t,n);case 4:return ia(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=Xo(t,null,r,n):xl(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,_l(e,t,r,i=t.elementType===r?i:vo(r,i),n);case 7:return xl(e,t,t.pendingProps,n),t.child;case 8:case 12:return xl(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,a=t.memoizedProps,l=i.value,Ti(yo,r._currentValue),r._currentValue=l,null!==a)if(lr(a.value,l)){if(a.children===i.children&&!Ai.current){t=ql(e,t,n);break e}}else for(null!==(a=t.child)&&(a.return=t);null!==a;){var s=a.dependencies;if(null!==s){l=a.child;for(var u=s.firstContext;null!==u;){if(u.context===r){if(1===a.tag){(u=Io(-1,n&-n)).tag=2;var c=a.updateQueue;if(null!==c){var d=(c=c.shared).pending;null===d?u.next=u:(u.next=d.next,d.next=u),c.pending=u}}a.lanes|=n,null!==(u=a.alternate)&&(u.lanes|=n),Eo(a.return,n,t),s.lanes|=n;break}u=u.next}}else if(10===a.tag)l=a.type===t.type?null:a.child;else if(18===a.tag){if(null===(l=a.return))throw Error(o(341));l.lanes|=n,null!==(s=l.alternate)&&(s.lanes|=n),Eo(l,n,t),l=a.sibling}else l=a.child;if(null!==l)l.return=a;else for(l=a;null!==l;){if(l===t){l=null;break}if(null!==(a=l.sibling)){a.return=l.return,l=a;break}l=l.return}a=l}xl(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,So(t,n),r=r(i=To(i)),t.flags|=1,xl(e,t,r,n),t.child;case 14:return i=vo(r=t.type,t.pendingProps),kl(e,t,r,i=vo(r.type,i),n);case 15:return El(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:vo(r,i),Kl(e,t),t.tag=1,Pi(r)?(e=!0,Ri(t)):e=!1,So(t,n),Ko(t,r,i),Yo(t,r,i,n),Al(null,t,r,!0,e,n);case 19:return Hl(e,t,n);case 22:return Sl(e,t,n)}throw Error(o(156,t.tag))};var Vu="function"==typeof reportError?reportError:function(e){console.error(e)};function Zu(e){this._internalRoot=e}function $u(e){this._internalRoot=e}function Xu(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType)}function Qu(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,i){var o=n._reactRootContainer;if(o){var a=o;if("function"==typeof i){var l=i;i=function(){var e=qu(a);l.call(e)}}Ku(t,a,e,i)}else a=function(e,t,n,r,i){if(i){if("function"==typeof r){var o=r;r=function(){var e=qu(a);o.call(e)}}var a=Hu(t,r,e,0,null,!1,0,"",Ju);return e._reactRootContainer=a,e[hi]=a.current,Wr(8===e.nodeType?e.parentNode:e),du(),a}for(;i=e.lastChild;)e.removeChild(i);if("function"==typeof r){var l=r;r=function(){var e=qu(s);l.call(e)}}var s=Mu(e,0,!1,null,0,!1,0,"",Ju);return e._reactRootContainer=s,e[hi]=s.current,Wr(8===e.nodeType?e.parentNode:e),du((function(){Ku(t,s,n,r)})),s}(n,t,e,i,r);return qu(a)}$u.prototype.render=Zu.prototype.render=function(e){var t=this._internalRoot;if(null===t)throw Error(o(409));Ku(e,t,null,null)},$u.prototype.unmount=Zu.prototype.unmount=function(){var e=this._internalRoot;if(null!==e){this._internalRoot=null;var t=e.containerInfo;du((function(){Ku(null,e,null,null)})),t[hi]=null}},$u.prototype.unstable_scheduleHydration=function(e){if(e){var t=Et();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Dt.length&&0!==t&&t<Dt[n].priority;n++);Dt.splice(n,0,e),0===n&&Ft(e)}},xt=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=dt(t.pendingLanes);0!==n&&(yt(t,1|n),iu(t,Xe()),0==(6&As)&&(Hs=Xe()+500,Wi()))}break;case 13:du((function(){var t=Co(e,1);if(null!==t){var n=tu();ru(t,e,1,n)}})),Gu(e,1)}},_t=function(e){if(13===e.tag){var t=Co(e,134217728);null!==t&&ru(t,e,134217728,tu()),Gu(e,134217728)}},kt=function(e){if(13===e.tag){var t=nu(e),n=Co(e,t);null!==n&&ru(n,e,t,tu()),Gu(e,t)}},Et=function(){return bt},St=function(e,t){var n=bt;try{return bt=e,t()}finally{bt=n}},_e=function(e,t,n){switch(t){case"input":if(Q(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 i=xi(r);if(!i)throw Error(o(90));G(r),Q(r,i)}}}break;case"textarea":oe(e,n);break;case"select":null!=(t=n.value)&&ne(e,!!n.multiple,t,!1)}},Oe=cu,Ae=du;var tc={usingClientEntryPoint:!1,Events:[bi,wi,xi,Te,Le,cu]},nc={findFiberByHostInstance:yi,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=qe(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 ic=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!ic.isDisabled&&ic.supportsFiber)try{it=ic.inject(rc),ot=ic}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(!Xu(t))throw Error(o(200));return function(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:_,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}(e,t,null,n)},t.createRoot=function(e,t){if(!Xu(e))throw Error(o(299));var n=!1,r="",i=Vu;return null!=t&&(!0===t.unstable_strictMode&&(n=!0),void 0!==t.identifierPrefix&&(r=t.identifierPrefix),void 0!==t.onRecoverableError&&(i=t.onRecoverableError)),t=Mu(e,1,!1,null,0,n,0,r,i),e[hi]=t.current,Wr(8===e.nodeType?e.parentNode:e),new Zu(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(o(188));throw e=Object.keys(e).join(","),Error(o(268,e))}return null===(e=qe(t))?null:e.stateNode},t.flushSync=function(e){return du(e)},t.hydrate=function(e,t,n){if(!Qu(t))throw Error(o(200));return ec(null,e,t,!0,n)},t.hydrateRoot=function(e,t,n){if(!Xu(e))throw Error(o(405));var r=null!=n&&n.hydratedSources||null,i=!1,a="",l=Vu;if(null!=n&&(!0===n.unstable_strictMode&&(i=!0),void 0!==n.identifierPrefix&&(a=n.identifierPrefix),void 0!==n.onRecoverableError&&(l=n.onRecoverableError)),t=Hu(t,null,e,1,null!=n?n:null,i,0,a,l),e[hi]=t.current,Wr(e),r)for(e=0;e<r.length;e++)i=(i=(n=r[e])._getVersion)(n._source),null==t.mutableSourceEagerHydrationData?t.mutableSourceEagerHydrationData=[n,i]:t.mutableSourceEagerHydrationData.push(n,i);return new $u(t)},t.render=function(e,t,n){if(!Qu(t))throw Error(o(200));return ec(null,e,t,!1,n)},t.unmountComponentAtNode=function(e){if(!Qu(e))throw Error(o(40));return!!e._reactRootContainer&&(du((function(){ec(null,null,e,!1,(function(){e._reactRootContainer=null,e[hi]=null}))})),!0)},t.unstable_batchedUpdates=cu,t.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Qu(n))throw Error(o(200));if(null==e||void 0===e._reactInternals)throw Error(o(38));return ec(e,t,n,!1,r)},t.version="18.2.0-next-9e3b772b8-20220608"},745:function(e,t,n){var r=n(935);t.createRoot=r.createRoot,t.hydrateRoot=r.hydrateRoot},935:function(e,t,n){!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}(),e.exports=n(448)},251:function(e,t,n){var r=n(294),i=Symbol.for("react.element"),o=Symbol.for("react.fragment"),a=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,o={},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)a.call(t,r)&&!s.hasOwnProperty(r)&&(o[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===o[r]&&(o[r]=t[r]);return{$$typeof:i,type:e,key:u,ref:c,props:o,_owner:l.current}}t.Fragment=o,t.jsx=u,t.jsxs=u},408:function(e,t){var n=Symbol.for("react.element"),r=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),a=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"),d=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),p=Symbol.iterator,h={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},m=Object.assign,g={};function v(e,t,n){this.props=e,this.context=t,this.refs=g,this.updater=n||h}function y(){}function b(e,t,n){this.props=e,this.context=t,this.refs=g,this.updater=n||h}v.prototype.isReactComponent={},v.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")},v.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},y.prototype=v.prototype;var w=b.prototype=new y;w.constructor=b,m(w,v.prototype),w.isPureReactComponent=!0;var x=Array.isArray,_=Object.prototype.hasOwnProperty,k={current:null},E={key:!0,ref:!0,__self:!0,__source:!0};function S(e,t,r){var i,o={},a=null,l=null;if(null!=t)for(i in void 0!==t.ref&&(l=t.ref),void 0!==t.key&&(a=""+t.key),t)_.call(t,i)&&!E.hasOwnProperty(i)&&(o[i]=t[i]);var s=arguments.length-2;if(1===s)o.children=r;else if(1<s){for(var u=Array(s),c=0;c<s;c++)u[c]=arguments[c+2];o.children=u}if(e&&e.defaultProps)for(i in s=e.defaultProps)void 0===o[i]&&(o[i]=s[i]);return{$$typeof:n,type:e,key:a,ref:l,props:o,_owner:k.current}}function T(e){return"object"==typeof e&&null!==e&&e.$$typeof===n}var L=/\/+/g;function O(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 A(e,t,i,o,a){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 a=a(s=e),e=""===o?"."+O(s,0):o,x(a)?(i="",null!=e&&(i=e.replace(L,"$&/")+"/"),A(a,t,i,"",(function(e){return e}))):null!=a&&(T(a)&&(a=function(e,t){return{$$typeof:n,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(a,i+(!a.key||s&&s.key===a.key?"":(""+a.key).replace(L,"$&/")+"/")+e)),t.push(a)),1;if(s=0,o=""===o?".":o+":",x(e))for(var u=0;u<e.length;u++){var c=o+O(l=e[u],u);s+=A(l,t,i,c,a)}else if(c=function(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=p&&e[p]||e["@@iterator"])?e:null}(e),"function"==typeof c)for(e=c.call(e),u=0;!(l=e.next()).done;)s+=A(l=l.value,t,i,c=o+O(l,u++),a);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 C(e,t,n){if(null==e)return e;var r=[],i=0;return A(e,r,"","",(function(e){return t.call(n,e,i++)})),r}function N(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 P={current:null},D={transition:null},I={ReactCurrentDispatcher:P,ReactCurrentBatchConfig:D,ReactCurrentOwner:k};t.Children={map:C,forEach:function(e,t,n){C(e,(function(){t.apply(this,arguments)}),n)},count:function(e){var t=0;return C(e,(function(){t++})),t},toArray:function(e){return C(e,(function(e){return e}))||[]},only:function(e){if(!T(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},t.Component=v,t.Fragment=i,t.Profiler=a,t.PureComponent=b,t.StrictMode=o,t.Suspense=c,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=I,t.cloneElement=function(e,t,r){if(null==e)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var i=m({},e.props),o=e.key,a=e.ref,l=e._owner;if(null!=t){if(void 0!==t.ref&&(a=t.ref,l=k.current),void 0!==t.key&&(o=""+t.key),e.type&&e.type.defaultProps)var s=e.type.defaultProps;for(u in t)_.call(t,u)&&!E.hasOwnProperty(u)&&(i[u]=void 0===t[u]&&void 0!==s?s[u]:t[u])}var u=arguments.length-2;if(1===u)i.children=r;else if(1<u){s=Array(u);for(var c=0;c<u;c++)s[c]=arguments[c+2];i.children=s}return{$$typeof:n,type:e.type,key:o,ref:a,props:i,_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=S,t.createFactory=function(e){var t=S.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=T,t.lazy=function(e){return{$$typeof:f,_payload:{_status:-1,_result:e},_init:N}},t.memo=function(e,t){return{$$typeof:d,type:e,compare:void 0===t?null:t}},t.startTransition=function(e){var t=D.transition;D.transition={};try{e()}finally{D.transition=t}},t.unstable_act=function(){throw Error("act(...) is not supported in production builds of React.")},t.useCallback=function(e,t){return P.current.useCallback(e,t)},t.useContext=function(e){return P.current.useContext(e)},t.useDebugValue=function(){},t.useDeferredValue=function(e){return P.current.useDeferredValue(e)},t.useEffect=function(e,t){return P.current.useEffect(e,t)},t.useId=function(){return P.current.useId()},t.useImperativeHandle=function(e,t,n){return P.current.useImperativeHandle(e,t,n)},t.useInsertionEffect=function(e,t){return P.current.useInsertionEffect(e,t)},t.useLayoutEffect=function(e,t){return P.current.useLayoutEffect(e,t)},t.useMemo=function(e,t){return P.current.useMemo(e,t)},t.useReducer=function(e,t,n){return P.current.useReducer(e,t,n)},t.useRef=function(e){return P.current.useRef(e)},t.useState=function(e){return P.current.useState(e)},t.useSyncExternalStore=function(e,t,n){return P.current.useSyncExternalStore(e,t,n)},t.useTransition=function(){return P.current.useTransition()},t.version="18.2.0"},294:function(e,t,n){e.exports=n(408)},893:function(e,t,n){e.exports=n(251)},53:function(e,t){function n(e,t){var n=e.length;e.push(t);e:for(;0<n;){var r=n-1>>>1,i=e[r];if(!(0<o(i,t)))break e;e[r]=t,e[n]=i,n=r}}function r(e){return 0===e.length?null:e[0]}function i(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,i=e.length,a=i>>>1;r<a;){var l=2*(r+1)-1,s=e[l],u=l+1,c=e[u];if(0>o(s,n))u<i&&0>o(c,s)?(e[r]=c,e[u]=n,r=u):(e[r]=s,e[l]=n,r=l);else{if(!(u<i&&0>o(c,n)))break e;e[r]=c,e[u]=n,r=u}}}return t}function o(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}if("object"==typeof performance&&"function"==typeof performance.now){var a=performance;t.unstable_now=function(){return a.now()}}else{var l=Date,s=l.now();t.unstable_now=function(){return l.now()-s}}var u=[],c=[],d=1,f=null,p=3,h=!1,m=!1,g=!1,v="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)i(c);else{if(!(t.startTime<=e))break;i(c),t.sortIndex=t.expirationTime,n(u,t)}t=r(c)}}function x(e){if(g=!1,w(e),!m)if(null!==r(u))m=!0,D(_);else{var t=r(c);null!==t&&I(x,t.startTime-e)}}function _(e,n){m=!1,g&&(g=!1,y(T),T=-1),h=!0;var o=p;try{for(w(n),f=r(u);null!==f&&(!(f.expirationTime>n)||e&&!A());){var a=f.callback;if("function"==typeof a){f.callback=null,p=f.priorityLevel;var l=a(f.expirationTime<=n);n=t.unstable_now(),"function"==typeof l?f.callback=l:f===r(u)&&i(u),w(n)}else i(u);f=r(u)}if(null!==f)var s=!0;else{var d=r(c);null!==d&&I(x,d.startTime-n),s=!1}return s}finally{f=null,p=o,h=!1}}"undefined"!=typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var k,E=!1,S=null,T=-1,L=5,O=-1;function A(){return!(t.unstable_now()-O<L)}function C(){if(null!==S){var e=t.unstable_now();O=e;var n=!0;try{n=S(!0,e)}finally{n?k():(E=!1,S=null)}}else E=!1}if("function"==typeof b)k=function(){b(C)};else if("undefined"!=typeof MessageChannel){var N=new MessageChannel,P=N.port2;N.port1.onmessage=C,k=function(){P.postMessage(null)}}else k=function(){v(C,0)};function D(e){S=e,E||(E=!0,k())}function I(e,n){T=v((function(){e(t.unstable_now())}),n)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){m||h||(m=!0,D(_))},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"):L=0<e?Math.floor(1e3/e):5},t.unstable_getCurrentPriorityLevel=function(){return p},t.unstable_getFirstCallbackNode=function(){return r(u)},t.unstable_next=function(e){switch(p){case 1:case 2:case 3:var t=3;break;default:t=p}var n=p;p=t;try{return e()}finally{p=n}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=function(){},t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=p;p=e;try{return t()}finally{p=n}},t.unstable_scheduleCallback=function(e,i,o){var a=t.unstable_now();switch(o="object"==typeof o&&null!==o&&"number"==typeof(o=o.delay)&&0<o?a+o:a,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:d++,callback:i,priorityLevel:e,startTime:o,expirationTime:l=o+l,sortIndex:-1},o>a?(e.sortIndex=o,n(c,e),null===r(u)&&e===r(c)&&(g?(y(T),T=-1):g=!0,I(x,o-a))):(e.sortIndex=l,n(u,e),m||h||(m=!0,D(_))),e},t.unstable_shouldYield=A,t.unstable_wrapCallback=function(e){var t=p;return function(){var n=p;p=t;try{return e.apply(this,arguments)}finally{p=n}}}},840:function(e,t,n){e.exports=n(53)}},t={};function n(r){var i=t[r];if(void 0!==i)return i.exports;var o=t[r]={exports:{}};return e[r](o,o.exports,n),o.exports}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.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},function(){var e={};n.r(e),n.d(e,{FILESYSTEM_DIRECTORY_KIND:function(){return S},FILESYSTEM_FILE_KIND:function(){return E},abortDownload:function(){return U},addKeyDownListener:function(){return A},addKeyUpListener:function(){return L},addResizeListener:function(){return I},addResizeObserver:function(){return D},addUnloadListener:function(){return N},clearTimeout:function(){return ne},createAbortController:function(){return j},dispatchClick:function(){return F},downloadAborted:function(){return M},downloadBlob:function(){return T},fetch:function(){return ce},formatDate:function(){return ee},formatSize:function(){return J},getDefaultMaxWorkers:function(){return q},getFilesystemHandles:function(){return ie},getHeight:function(){return B},getLocationSearch:function(){return de},getWritableBlob:function(){return Q},isMacOSPlatform:function(){return re},openFilePickerSupported:function(){return V},removeKeyDownListener:function(){return C},removeKeyUpListener:function(){return O},removeResizeListener:function(){return z},removeUnloadListener:function(){return P},resetLocationSearch:function(){return fe},restoreValue:function(){return K},savePickersSupported:function(){return X},saveValue:function(){return H},scrollIntoView:function(){return R},setLaunchQueueConsumer:function(){return ue},setStyleProperty:function(){return W},setTimeout:function(){return te},showDirectoryPicker:function(){return Z},showOpenFilePicker:function(){return Y},showSaveFilePicker:function(){return $}});var t={};n.r(t),n.d(t,{ABORT_DOWNLOAD_BUTTON_LABEL:function(){return ot},ADD_FILES_BUTTON_LABEL:function(){return We},ADD_FILES_BUTTON_TOOLTIP:function(){return Re},ARROW_LEFT_KEY_LABEL:function(){return _e},ARROW_RIGHT_KEY_LABEL:function(){return ke},BACK_BUTTON_LABEL:function(){return Ge},BACK_BUTTON_TOOLTIP:function(){return je},CHOOSE_ACTION_DIALOG_ADD_FILE_BUTTON_LABEL:function(){return Kt},CHOOSE_ACTION_LABEL:function(){return Yt},CHOOSE_ACTION_TITLE:function(){return qt},COMPRESSED_SIZE_LABEL:function(){return Te},COPY_BUTTON_LABEL:function(){return Xe},COPY_BUTTON_TOOLTIP:function(){return Oe},CREATE_FOLDER_BUTTON_LABEL:function(){return Me},CREATE_FOLDER_BUTTON_TOOLTIP:function(){return ze},CREATE_FOLDER_DIALOG_BUTTON_LABEL:function(){return _t},CREATE_FOLDER_NAME_LABEL:function(){return xt},CREATE_FOLDER_TITLE:function(){return wt},CTRL_KEY_LABEL:function(){return be},CUT_BUTTON_LABEL:function(){return Qe},CUT_BUTTON_TOOLTIP:function(){return Ae},DELETE_BUTTON_LABEL:function(){return it},DELETE_BUTTON_TOOLTIP:function(){return Ie},DELETE_ENTRY_DIALOG_BUTTON_LABEL:function(){return Ot},DELETE_ENTRY_MESSAGE:function(){return Lt},DELETE_ENTRY_TITLE:function(){return Tt},DIALOG_CANCEL_BUTTON_LABEL:function(){return lt},DIALOG_OK_BUTTON_LABEL:function(){return st},DIALOG_RESET_BUTTON_LABEL:function(){return at},DOWNLOAD_BUTTON_LABEL:function(){return Ze},ENTER_FOLDER_BUTTON_LABEL:function(){return $e},ERROR_TITLE:function(){return ut},EXPORT_ZIP_BUTTON_LABEL:function(){return Ke},EXPORT_ZIP_BUTTON_TOOLTIP:function(){return Be},EXPORT_ZIP_DIALOG_BUTTON_LABEL:function(){return pt},EXPORT_ZIP_FILENAME_LABEL:function(){return dt},EXPORT_ZIP_PASSWORD_LABEL:function(){return ft},EXPORT_ZIP_TITLE:function(){return ct},EXTRACT_BUTTON_LABEL:function(){return tt},EXTRACT_BUTTON_TOOLTIP:function(){return Ne},EXTRACT_DIALOG_BUTTON_LABEL:function(){return gt},EXTRACT_FILENAME_LABEL:function(){return mt},EXTRACT_TITLE:function(){return ht},FORWARD_BUTTON_LABEL:function(){return Ve},FORWARD_BUTTON_TOOLTIP:function(){return Ue},HIGHLIGHT_ALL_BUTTON_LABEL:function(){return nt},HIGHLIGHT_ALL_BUTTON_TOOLTIP:function(){return Pe},IMPORT_PASSWORD_LABEL:function(){return Nt},IMPORT_PASSWORD_TITLE:function(){return Ct},IMPORT_ZIP_BUTTON_LABEL:function(){return He},IMPORT_ZIP_BUTTON_TOOLTIP:function(){return Fe},KEYS_SEPARATOR_LABEL:function(){return ge},LAST_MOD_DATE_LABEL:function(){return Le},OPTIONS_BUFFERED_WRITE_LABEL:function(){return Mt},OPTIONS_BUTTON_LABEL:function(){return Ye},OPTIONS_CHECK_SIGNATURE_LABEL:function(){return Ut},OPTIONS_CHUNK_SIZE_LABEL:function(){return Ht},OPTIONS_DEFAULT_PASSWORD_LABEL:function(){return Bt},OPTIONS_DIALOG_BUTTON_LABEL:function(){return Pt},OPTIONS_EXPORT_ZIP_PASSWORD_LABEL:function(){return Ft},OPTIONS_HIDE_DOWNLOAD_MANAGER_LABEL:function(){return zt},OPTIONS_HIDE_INFOBAR_LABEL:function(){return Rt},OPTIONS_HIDE_NAVIGATION_BAR_LABEL:function(){return It},OPTIONS_KEEP_ORDER_LABEL:function(){return jt},OPTIONS_MAX_WORKERS_LABEL:function(){return Wt},OPTIONS_TITLE:function(){return Dt},PARENT_FOLDER_LABEL:function(){return pe},PARENT_FOLDER_TOOLTIP:function(){return ve},PASTE_BUTTON_LABEL:function(){return Je},PASTE_BUTTON_TOOLTIP:function(){return Ce},RENAME_BUTTON_LABEL:function(){return rt},RENAME_BUTTON_TOOLTIP:function(){return De},RENAME_DIALOG_BUTTON_LABEL:function(){return bt},RENAME_FILENAME_LABEL:function(){return yt},RENAME_TITLE:function(){return vt},RESET_BUTTON_LABEL:function(){return qe},RESET_CLIPBOARD_BUTTON_LABEL:function(){return et},RESET_DIALOG_BUTTON_LABEL:function(){return St},RESET_MESSAGE:function(){return Et},RESET_TITLE:function(){return kt},ROOT_FOLDER_LABEL:function(){return he},ROOT_ZIP_FILENAME:function(){return me},SHORTCUT_LABEL:function(){return ye},SIZE_LABEL:function(){return Ee},SPACE_KEY_LABEL:function(){return xe},UNCOMPRESSED_SIZE_LABEL:function(){return Se},ZIP_FILE_DESCRIPTION_LABEL:function(){return At}});var r={};n.r(r),n.d(r,{configure:function(){return Rr},createZipFileSystem:function(){return hl}});var i={};n.r(i),n.d(i,{ACCENT_COLOR_CUSTOM_PROPERTY_NAME:function(){return ss},ACCENT_COLOR_KEY_NAME:function(){return ls},ACTION_KEY:function(){return ml},ADD_FILES_BUTTON_NAME:function(){return Vl},ADD_FILES_KEY:function(){return El},APP_CLASSNAME:function(){return vs},BACK_BUTTON_NAME:function(){return is},BACK_KEY:function(){return Fl},COPY_BUTTON_NAME:function(){return Xl},COPY_KEY:function(){return bl},CREATE_FOLDER_BUTTON_NAME:function(){return Gl},CREATE_FOLDER_KEY:function(){return kl},CUT_BUTTON_NAME:function(){return Ql},CUT_KEY:function(){return yl},DEFAULT_ACCENT_COLOR:function(){return jl},DEFAULT_MIME_TYPE:function(){return Ul},DEFAULT_OPTIONS:function(){return Ml},DELETE_BUTTON_NAME:function(){return rs},DELETE_KEYS:function(){return Ol},DOWN_KEY:function(){return Al},END_KEY:function(){return Rl},ENTER_KEY:function(){return gl},EXPORT_ZIP_BUTTON_NAME:function(){return $l},EXPORT_ZIP_KEY:function(){return Tl},EXTRACT_BUTTON_NAME:function(){return es},EXTRACT_KEY:function(){return wl},FORWARD_BUTTON_NAME:function(){return os},FORWARD_KEY:function(){return Bl},HIGHLIGHT_ALL_BUTTON_NAME:function(){return ts},HIGHLIGHT_ALL_KEY:function(){return Ll},HOME_KEY:function(){return zl},IMPORT_ZIP_BUTTON_NAME:function(){return Zl},IMPORT_ZIP_KEY:function(){return Sl},LEFT_KEY:function(){return Nl},LONG_TOUCH_DELAY:function(){return Yl},MAINPAGE_PATH:function(){return us},MAINPAGE_RELATIVE_PATH:function(){return cs},OPTIONS_KEY_NAME:function(){return as},PAGE_DOWN_KEY:function(){return Il},PAGE_UP_KEY:function(){return Dl},PASTE_BUTTON_NAME:function(){return Jl},PASTE_KEY:function(){return _l},RENAME_BUTTON_NAME:function(){return ns},RENAME_KEY:function(){return xl},RIGHT_KEY:function(){return Pl},SHARED_FILES_CACHE_ID:function(){return hs},SHARED_FILES_FIELD_NAME:function(){return ms},SHARED_FILES_FORM_PATH:function(){return ps},SHARED_FILES_PARAMETER:function(){return gs},SHARED_FILES_RELATIVE_PATH:function(){return fs},TAB_KEY:function(){return vl},UP_KEY:function(){return Cl},ZIP_EXTENSION:function(){return Wl},ZIP_EXTENSIONS:function(){return Hl},ZIP_EXTENSIONS_ACCEPT:function(){return Kl},ZIP_EXTENSIONS_ACCEPT_STRING:function(){return ql}});var o=n(294),a=n(745);function l(e){return l="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},l(e)}function s(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==l(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!==l(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===l(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function u(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return c(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)?c(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},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,a=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){l=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(l)throw o}}}}function c(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 d(){d=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},i="function"==typeof Symbol?Symbol:{},o=i.iterator||"@@iterator",a=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function u(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(e){u=function(e,t,n){return e[t]=n}}function c(e,t,n,i){var o=t&&t.prototype instanceof h?t:h,a=Object.create(o.prototype),l=new L(i||[]);return r(a,"_invoke",{value:k(e,n,l)}),a}function f(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var p={};function h(){}function m(){}function g(){}var v={};u(v,o,(function(){return this}));var y=Object.getPrototypeOf,b=y&&y(y(O([])));b&&b!==t&&n.call(b,o)&&(v=b);var w=g.prototype=h.prototype=Object.create(v);function x(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function _(e,t){function i(r,o,a,s){var u=f(e[r],e,o);if("throw"!==u.type){var c=u.arg,d=c.value;return d&&"object"==l(d)&&n.call(d,"__await")?t.resolve(d.__await).then((function(e){i("next",e,a,s)}),(function(e){i("throw",e,a,s)})):t.resolve(d).then((function(e){c.value=e,a(c)}),(function(e){return i("throw",e,a,s)}))}s(u.arg)}var o;r(this,"_invoke",{value:function(e,n){function r(){return new t((function(t,r){i(e,n,t,r)}))}return o=o?o.then(r,r):r()}})}function k(e,t,n){var r="suspendedStart";return function(i,o){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===i)throw o;return{value:void 0,done:!0}}for(n.method=i,n.arg=o;;){var a=n.delegate;if(a){var l=E(a,n);if(l){if(l===p)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=f(e,t,n);if("normal"===s.type){if(r=n.done?"completed":"suspendedYield",s.arg===p)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(r="completed",n.method="throw",n.arg=s.arg)}}}function E(e,t){var n=t.method,r=e.iterator[n];if(void 0===r)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,E(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),p;var i=f(r,e.iterator,t.arg);if("throw"===i.type)return t.method="throw",t.arg=i.arg,t.delegate=null,p;var o=i.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,p):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,p)}function S(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 T(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function L(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(S,this),this.reset(!0)}function O(e){if(e){var t=e[o];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:A}}function A(){return{value:void 0,done:!0}}return m.prototype=g,r(w,"constructor",{value:g,configurable:!0}),r(g,"constructor",{value:m,configurable:!0}),m.displayName=u(g,s,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===m||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,g):(e.__proto__=g,u(e,s,"GeneratorFunction")),e.prototype=Object.create(w),e},e.awrap=function(e){return{__await:e}},x(_.prototype),u(_.prototype,a,(function(){return this})),e.AsyncIterator=_,e.async=function(t,n,r,i,o){void 0===o&&(o=Promise);var a=new _(c(t,n,r,i),o);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},x(w),u(w,s,"Generator"),u(w,o,(function(){return this})),u(w,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},e.values=O,L.prototype={constructor:L,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(T),!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 a.type="throw",a.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var l=n.call(o,"catchLoc"),s=n.call(o,"finallyLoc");if(l&&s){if(this.prev<o.catchLoc)return r(o.catchLoc,!0);if(this.prev<o.finallyLoc)return r(o.finallyLoc)}else if(l){if(this.prev<o.catchLoc)return r(o.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return r(o.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,p):this.complete(a)},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),p},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),T(n),p}},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 i=r.arg;T(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:O(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),p}},e}function f(e,t,n,r,i,o,a){try{var l=e[o](a),s=l.value}catch(e){return void n(e)}l.done?t(s):Promise.resolve(s).then(r,i)}function p(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var o=e.apply(t,n);function a(e){f(o,r,i,a,l,"next",e)}function l(e){f(o,r,i,a,l,"throw",e)}a(void 0)}))}}var h="resize",m="AbortError",g="download cancelled",v="keyup",y="keydown",b="beforeunload",w="en-US",x=["byte","kilobyte","megabyte","gigabyte","terabyte","petabyte"].map((function(e){return new Intl.NumberFormat(w,{style:"unit",maximumFractionDigits:1,unit:e})})),_=new Intl.DateTimeFormat(w,{dateStyle:"short",timeStyle:"short"}),k=["Macintosh","MacIntel","MacPPC","Mac68K"],E="file",S="directory";function T(e,t,n){var r=URL.createObjectURL(e);Object.assign(t,{href:r,download:n}),F(t),URL.revokeObjectURL(r)}function L(e){window.addEventListener(v,e)}function O(e){window.removeEventListener(v,e)}function A(e){window.addEventListener(y,e)}function C(e){window.removeEventListener(y,e)}function N(e){window.addEventListener(b,e)}function P(e){window.removeEventListener(b,e)}function D(e,t){var n=new ResizeObserver(t);return n.observe(e,{attributes:!0}),n}function I(e){window.addEventListener(h,e)}function z(e){window.removeEventListener(h,e)}function R(e){e.scrollIntoView({block:"nearest"})}function F(e){e.click()}function B(e){return e.offsetHeight}function j(){return new AbortController}function U(e){e.abort(new Error(g))}function M(e){return(e.message||e)===g||e.name===m}function W(e,t){document.documentElement.style.setProperty(e,t)}function H(e,t){localStorage.setItem(e,JSON.stringify(t))}function K(e){var t=localStorage.getItem(e);try{return JSON.parse(t)}catch(e){return t}}function q(){return navigator.hardwareConcurrency}function Y(e){return G.apply(this,arguments)}function G(){return(G=p(d().mark((function e(t){var n,r,i,o,a,l;return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.multiple,r=t.description,i=t.accept,o=Boolean(i),e.prev=2,a={excludeAcceptAllOption:o,multiple:n},o&&Object.assign(a,{types:[{description:r,accept:i}]}),e.next=7,window.showOpenFilePicker(a);case 7:return l=e.sent,e.abrupt("return",Promise.all(l.map((function(e){return e.getFile()}))));case 11:if(e.prev=11,e.t0=e.catch(2),e.t0.name!==m){e.next=17;break}return e.abrupt("return",[]);case 17:throw e.t0;case 18:case"end":return e.stop()}}),e,null,[[2,11]])})))).apply(this,arguments)}function V(){return"showOpenFilePicker"in window}function Z(e){return window.showDirectoryPicker(e)}function $(e){return window.showSaveFilePicker(e)}function X(){return"showSaveFilePicker"in window&&"showDirectoryPicker"in window}function Q(){var e=new TransformStream({}),t=e.readable,n=e.writable;return{blob:new Response(t).blob(),writable:n}}function J(e){for(var t=0;e>1e3&&t<x.length-1;)e/=1e3,t++;return x[t].format(e)}function ee(e){return _.format(e)}function te(e,t){for(var n,r=arguments.length,i=new Array(r>2?r-2:0),o=2;o<r;o++)i[o-2]=arguments[o];return(n=window).setTimeout.apply(n,[e,t].concat(i))}function ne(e){return window.clearTimeout(e)}function re(){var e=window.navigator.platform;return void 0!==e&&k.includes(e)}function ie(e){return Promise.all(e.filter((function(e){return e.kind===E})).map((function(e){return"getAsFileSystemHandle"in e?e.getAsFileSystemHandle():oe(e.webkitGetAsEntry())})))}function oe(e){return ae.apply(this,arguments)}function ae(){return(ae=p(d().mark((function e(t){var n,r;return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n={name:t.name},t.isFile&&(n.kind=E,n.getFile=function(){return new Promise((function(e,n){return t.file(e,n)}))}),!t.isDirectory){e.next=8;break}return n.kind=S,e.next=6,le(t);case 6:r=e.sent,n.values=function(){return r};case 8:return e.abrupt("return",n);case 9:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function le(e){return se.apply(this,arguments)}function se(){return se=p(d().mark((function e(t){var n,r;return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=function(e,t,i){e.readEntries(function(){var o=p(d().mark((function o(a){var l,s,c;return d().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:if(a.length){o.next=4;break}t(n),o.next=25;break;case 4:l=u(a),o.prev=5,l.s();case 7:if((s=l.n()).done){o.next=16;break}return c=s.value,o.t0=n,o.next=12,oe(c);case 12:o.t1=o.sent,o.t0.push.call(o.t0,o.t1);case 14:o.next=7;break;case 16:o.next=21;break;case 18:o.prev=18,o.t2=o.catch(5),l.e(o.t2);case 21:return o.prev=21,l.f(),o.finish(21);case 24:r(e,t,i);case 25:case"end":return o.stop()}}),o,null,[[5,18,21,24]])})));return function(e){return o.apply(this,arguments)}}(),i)},n=[],e.next=4,new Promise((function(e,n){return r(t.createReader(),e,n)}));case 4:return e.abrupt("return",s({},Symbol.iterator,(function(){var e=0;return{next:function(){var t={value:n[e],done:e===n.length};return e++,t}}})));case 5:case"end":return e.stop()}}),e)}))),se.apply(this,arguments)}function ue(e){"launchQueue"in window&&"files"in LaunchParams.prototype&&window.launchQueue.setConsumer(e)}function ce(e){return window.fetch(e)}function de(){return window.location.search}function fe(){return window.history.replaceState(null,null,window.location.pathname)}var pe="..",he="<root>",me="Download.zip",ge=", ",ve="Parent directory",ye="Shortcut: ",be="⌘/ctrl-",we="alt-",xe="space",_e="left",ke="right",Ee="Size: ",Se="Uncompressed size: ",Te="Compressed size: ",Le="Last mod. date: ",Oe=ye+be+"c",Ae=ye+be+"x",Ce=ye+be+"v",Ne=ye+be+"Enter",Pe=ye+be+"a",De=ye+be+"r",Ie=ye+["backspace","delete"].join(ge),ze=ye+be+"d",Re=ye+be+"f",Fe=ye+be+"i",Be=ye+be+"e",je=ye+we+_e,Ue=ye+we+ke,Me="Create directory",We="Add files",He="Import zip",Ke="Export zip",qe="Reset",Ye="Options",Ge="<",Ve=">",Ze="↵",$e="↓",Xe="Copy",Qe="Cut",Je="Paste",et="Reset clipboard",tt="Extract",nt="Select all",rt="Rename",it="Delete",ot="✕",at="Reset",lt="Cancel",st="OK",ut="Error",ct="Export zip file",dt="Filename:",ft="Password:",pt="Export",ht="Extract file",mt="Filename:",gt="Extract",vt="Rename file",yt="New filename:",bt="Rename",wt="Create directory",xt="Directory name:",_t="Create",kt="Reset filesystem",Et="Please confirm the reset of the filesystem",St="Reset",Tt="Delete entries",Lt="Please confirm the deletion of the highlighted entries",Ot="Delete",At="Zip file",Ct="Enter password",Nt="Password:",Pt="Save",Dt="Options",It="Hide navigation bar:",zt="Hide downloads panel:",Rt="Hide bottom bar:",Ft="Prompt for password:",Bt="Default password:",jt="Keep entries order:",Ut="Check signature of uncompressed data:",Mt="Use multiple cores:",Wt="Number of cores:",Ht="Chunk size (kB):",Kt="Add file",qt="Choose action",Yt="A zip file has been selected, please select the proper action.";const Gt=15,Vt=573,Zt=-1,$t=0,Xt=4,Qt=0,Jt=1,en=-2;function tn(e){return nn(e.map((([e,t])=>new Array(e).fill(t,0,e))))}function nn(e){return e.reduce(((e,t)=>e.concat(Array.isArray(t)?nn(t):t)),[])}const rn=[0,1,2,3].concat(...tn([[2,4],[2,5],[4,6],[4,7],[8,8],[8,9],[16,10],[16,11],[32,12],[32,13],[64,14],[64,15],[2,0],[1,16],[1,17],[2,18],[2,19],[4,20],[4,21],[8,22],[8,23],[16,24],[16,25],[32,26],[32,27],[64,28],[64,29]]));function on(){const e=this;function t(e,t){let n=0;do{n|=1&e,e>>>=1,n<<=1}while(--t>0);return n>>>1}e.build_tree=function(n){const r=e.dyn_tree,i=e.stat_desc.static_tree,o=e.stat_desc.elems;let a,l,s,u=-1;for(n.heap_len=0,n.heap_max=Vt,a=0;a<o;a++)0!==r[2*a]?(n.heap[++n.heap_len]=u=a,n.depth[a]=0):r[2*a+1]=0;for(;n.heap_len<2;)s=n.heap[++n.heap_len]=u<2?++u:0,r[2*s]=1,n.depth[s]=0,n.opt_len--,i&&(n.static_len-=i[2*s+1]);for(e.max_code=u,a=Math.floor(n.heap_len/2);a>=1;a--)n.pqdownheap(r,a);s=o;do{a=n.heap[1],n.heap[1]=n.heap[n.heap_len--],n.pqdownheap(r,1),l=n.heap[1],n.heap[--n.heap_max]=a,n.heap[--n.heap_max]=l,r[2*s]=r[2*a]+r[2*l],n.depth[s]=Math.max(n.depth[a],n.depth[l])+1,r[2*a+1]=r[2*l+1]=s,n.heap[1]=s++,n.pqdownheap(r,1)}while(n.heap_len>=2);n.heap[--n.heap_max]=n.heap[1],function(t){const n=e.dyn_tree,r=e.stat_desc.static_tree,i=e.stat_desc.extra_bits,o=e.stat_desc.extra_base,a=e.stat_desc.max_length;let l,s,u,c,d,f,p=0;for(c=0;c<=Gt;c++)t.bl_count[c]=0;for(n[2*t.heap[t.heap_max]+1]=0,l=t.heap_max+1;l<Vt;l++)s=t.heap[l],c=n[2*n[2*s+1]+1]+1,c>a&&(c=a,p++),n[2*s+1]=c,s>e.max_code||(t.bl_count[c]++,d=0,s>=o&&(d=i[s-o]),f=n[2*s],t.opt_len+=f*(c+d),r&&(t.static_len+=f*(r[2*s+1]+d)));if(0!==p){do{for(c=a-1;0===t.bl_count[c];)c--;t.bl_count[c]--,t.bl_count[c+1]+=2,t.bl_count[a]--,p-=2}while(p>0);for(c=a;0!==c;c--)for(s=t.bl_count[c];0!==s;)u=t.heap[--l],u>e.max_code||(n[2*u+1]!=c&&(t.opt_len+=(c-n[2*u+1])*n[2*u],n[2*u+1]=c),s--)}}(n),function(e,n,r){const i=[];let o,a,l,s=0;for(o=1;o<=Gt;o++)i[o]=s=s+r[o-1]<<1;for(a=0;a<=n;a++)l=e[2*a+1],0!==l&&(e[2*a]=t(i[l]++,l))}(r,e.max_code,n.bl_count)}}function an(e,t,n,r,i){const o=this;o.static_tree=e,o.extra_bits=t,o.extra_base=n,o.elems=r,o.max_length=i}on._length_code=[0,1,2,3,4,5,6,7].concat(...tn([[2,8],[2,9],[2,10],[2,11],[4,12],[4,13],[4,14],[4,15],[8,16],[8,17],[8,18],[8,19],[16,20],[16,21],[16,22],[16,23],[32,24],[32,25],[32,26],[31,27],[1,28]])),on.base_length=[0,1,2,3,4,5,6,7,8,10,12,14,16,20,24,28,32,40,48,56,64,80,96,112,128,160,192,224,0],on.base_dist=[0,1,2,3,4,6,8,12,16,24,32,48,64,96,128,192,256,384,512,768,1024,1536,2048,3072,4096,6144,8192,12288,16384,24576],on.d_code=function(e){return e<256?rn[e]:rn[256+(e>>>7)]},on.extra_lbits=[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],on.extra_dbits=[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],on.extra_blbits=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],on.bl_order=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];const ln=tn([[144,8],[112,9],[24,7],[8,8]]);an.static_ltree=nn([12,140,76,204,44,172,108,236,28,156,92,220,60,188,124,252,2,130,66,194,34,162,98,226,18,146,82,210,50,178,114,242,10,138,74,202,42,170,106,234,26,154,90,218,58,186,122,250,6,134,70,198,38,166,102,230,22,150,86,214,54,182,118,246,14,142,78,206,46,174,110,238,30,158,94,222,62,190,126,254,1,129,65,193,33,161,97,225,17,145,81,209,49,177,113,241,9,137,73,201,41,169,105,233,25,153,89,217,57,185,121,249,5,133,69,197,37,165,101,229,21,149,85,213,53,181,117,245,13,141,77,205,45,173,109,237,29,157,93,221,61,189,125,253,19,275,147,403,83,339,211,467,51,307,179,435,115,371,243,499,11,267,139,395,75,331,203,459,43,299,171,427,107,363,235,491,27,283,155,411,91,347,219,475,59,315,187,443,123,379,251,507,7,263,135,391,71,327,199,455,39,295,167,423,103,359,231,487,23,279,151,407,87,343,215,471,55,311,183,439,119,375,247,503,15,271,143,399,79,335,207,463,47,303,175,431,111,367,239,495,31,287,159,415,95,351,223,479,63,319,191,447,127,383,255,511,0,64,32,96,16,80,48,112,8,72,40,104,24,88,56,120,4,68,36,100,20,84,52,116,3,131,67,195,35,163,99,227].map(((e,t)=>[e,ln[t]])));const sn=tn([[30,5]]);function un(e,t,n,r,i){const o=this;o.good_length=e,o.max_lazy=t,o.nice_length=n,o.max_chain=r,o.func=i}an.static_dtree=nn([0,16,8,24,4,20,12,28,2,18,10,26,6,22,14,30,1,17,9,25,5,21,13,29,3,19,11,27,7,23].map(((e,t)=>[e,sn[t]]))),an.static_l_desc=new an(an.static_ltree,on.extra_lbits,257,286,Gt),an.static_d_desc=new an(an.static_dtree,on.extra_dbits,0,30,Gt),an.static_bl_desc=new an(null,on.extra_blbits,0,19,7);const cn=[new un(0,0,0,0,0),new un(4,4,8,4,1),new un(4,5,16,8,1),new un(4,6,32,32,1),new un(4,4,16,16,2),new un(8,16,32,32,2),new un(8,16,128,128,2),new un(8,32,128,256,2),new un(32,128,258,1024,2),new un(32,258,258,4096,2)],dn=["need dictionary","stream end","","","stream error","data error","","buffer error","",""],fn=113,pn=666,hn=262;function mn(e,t,n,r){const i=e[2*t],o=e[2*n];return i<o||i==o&&r[t]<=r[n]}function gn(){const e=this;let t,n,r,i,o,a,l,s,u,c,d,f,p,h,m,g,v,y,b,w,x,_,k,E,S,T,L,O,A,C,N,P,D;const I=new on,z=new on,R=new on;let F,B,j,U,M,W;function H(){let t;for(t=0;t<286;t++)N[2*t]=0;for(t=0;t<30;t++)P[2*t]=0;for(t=0;t<19;t++)D[2*t]=0;N[512]=1,e.opt_len=e.static_len=0,B=j=0}function K(e,t){let n,r=-1,i=e[1],o=0,a=7,l=4;0===i&&(a=138,l=3),e[2*(t+1)+1]=65535;for(let s=0;s<=t;s++)n=i,i=e[2*(s+1)+1],++o<a&&n==i||(o<l?D[2*n]+=o:0!==n?(n!=r&&D[2*n]++,D[32]++):o<=10?D[34]++:D[36]++,o=0,r=n,0===i?(a=138,l=3):n==i?(a=6,l=3):(a=7,l=4))}function q(t){e.pending_buf[e.pending++]=t}function Y(e){q(255&e),q(e>>>8&255)}function G(e,t){let n;const r=t;W>16-r?(n=e,M|=n<<W&65535,Y(M),M=n>>>16-W,W+=r-16):(M|=e<<W&65535,W+=r)}function V(e,t){const n=2*e;G(65535&t[n],65535&t[n+1])}function Z(e,t){let n,r,i=-1,o=e[1],a=0,l=7,s=4;for(0===o&&(l=138,s=3),n=0;n<=t;n++)if(r=o,o=e[2*(n+1)+1],!(++a<l&&r==o)){if(a<s)do{V(r,D)}while(0!=--a);else 0!==r?(r!=i&&(V(r,D),a--),V(16,D),G(a-3,2)):a<=10?(V(17,D),G(a-3,3)):(V(18,D),G(a-11,7));a=0,i=r,0===o?(l=138,s=3):r==o?(l=6,s=3):(l=7,s=4)}}function $(){16==W?(Y(M),M=0,W=0):W>=8&&(q(255&M),M>>>=8,W-=8)}function X(t,n){let r,i,o;if(e.dist_buf[B]=t,e.lc_buf[B]=255&n,B++,0===t?N[2*n]++:(j++,t--,N[2*(on._length_code[n]+256+1)]++,P[2*on.d_code(t)]++),0==(8191&B)&&L>2){for(r=8*B,i=x-v,o=0;o<30;o++)r+=P[2*o]*(5+on.extra_dbits[o]);if(r>>>=3,j<Math.floor(B/2)&&r<Math.floor(i/2))return!0}return B==F-1}function Q(t,n){let r,i,o,a,l=0;if(0!==B)do{r=e.dist_buf[l],i=e.lc_buf[l],l++,0===r?V(i,t):(o=on._length_code[i],V(o+256+1,t),a=on.extra_lbits[o],0!==a&&(i-=on.base_length[o],G(i,a)),r--,o=on.d_code(r),V(o,n),a=on.extra_dbits[o],0!==a&&(r-=on.base_dist[o],G(r,a)))}while(l<B);V(256,t),U=t[513]}function J(){W>8?Y(M):W>0&&q(255&M),M=0,W=0}function ee(t,n,r){G(0+(r?1:0),3),function(t,n,r){J(),U=8,Y(n),Y(~n),e.pending_buf.set(s.subarray(t,t+n),e.pending),e.pending+=n}(t,n)}function te(t,n,r){let i,o,a=0;L>0?(I.build_tree(e),z.build_tree(e),a=function(){let t;for(K(N,I.max_code),K(P,z.max_code),R.build_tree(e),t=18;t>=3&&0===D[2*on.bl_order[t]+1];t--);return e.opt_len+=3*(t+1)+5+5+4,t}(),i=e.opt_len+3+7>>>3,o=e.static_len+3+7>>>3,o<=i&&(i=o)):i=o=n+5,n+4<=i&&-1!=t?ee(t,n,r):o==i?(G(2+(r?1:0),3),Q(an.static_ltree,an.static_dtree)):(G(4+(r?1:0),3),function(e,t,n){let r;for(G(e-257,5),G(t-1,5),G(n-4,4),r=0;r<n;r++)G(D[2*on.bl_order[r]+1],3);Z(N,e-1),Z(P,t-1)}(I.max_code+1,z.max_code+1,a+1),Q(N,P)),H(),r&&J()}function ne(e){te(v>=0?v:-1,x-v,e),v=x,t.flush_pending()}function re(){let e,n,r,i;do{if(i=u-k-x,0===i&&0===x&&0===k)i=o;else if(-1==i)i--;else if(x>=o+o-hn){s.set(s.subarray(o,o+o),0),_-=o,x-=o,v-=o,e=p,r=e;do{n=65535&d[--r],d[r]=n>=o?n-o:0}while(0!=--e);e=o,r=e;do{n=65535&c[--r],c[r]=n>=o?n-o:0}while(0!=--e);i+=o}if(0===t.avail_in)return;e=t.read_buf(s,x+k,i),k+=e,k>=3&&(f=255&s[x],f=(f<<g^255&s[x+1])&m)}while(k<hn&&0!==t.avail_in)}function ie(e){let t,n,r=S,i=x,a=E;const u=x>o-hn?x-(o-hn):0;let d=C;const f=l,p=x+258;let h=s[i+a-1],m=s[i+a];E>=A&&(r>>=2),d>k&&(d=k);do{if(t=e,s[t+a]==m&&s[t+a-1]==h&&s[t]==s[i]&&s[++t]==s[i+1]){i+=2,t++;do{}while(s[++i]==s[++t]&&s[++i]==s[++t]&&s[++i]==s[++t]&&s[++i]==s[++t]&&s[++i]==s[++t]&&s[++i]==s[++t]&&s[++i]==s[++t]&&s[++i]==s[++t]&&i<p);if(n=258-(p-i),i=p-258,n>a){if(_=e,a=n,n>=d)break;h=s[i+a-1],m=s[i+a]}}}while((e=65535&c[e&f])>u&&0!=--r);return a<=k?a:k}function oe(t){return t.total_in=t.total_out=0,t.msg=null,e.pending=0,e.pending_out=0,n=fn,i=$t,I.dyn_tree=N,I.stat_desc=an.static_l_desc,z.dyn_tree=P,z.stat_desc=an.static_d_desc,R.dyn_tree=D,R.stat_desc=an.static_bl_desc,M=0,W=0,U=8,H(),function(){u=2*o,d[p-1]=0;for(let e=0;e<p-1;e++)d[e]=0;T=cn[L].max_lazy,A=cn[L].good_length,C=cn[L].nice_length,S=cn[L].max_chain,x=0,v=0,k=0,y=E=2,w=0,f=0}(),Qt}e.depth=[],e.bl_count=[],e.heap=[],N=[],P=[],D=[],e.pqdownheap=function(t,n){const r=e.heap,i=r[n];let o=n<<1;for(;o<=e.heap_len&&(o<e.heap_len&&mn(t,r[o+1],r[o],e.depth)&&o++,!mn(t,i,r[o],e.depth));)r[n]=r[o],n=o,o<<=1;r[n]=i},e.deflateInit=function(t,n,i,u,f,v){return u||(u=8),f||(f=8),v||(v=0),t.msg=null,n==Zt&&(n=6),f<1||f>9||8!=u||i<9||i>15||n<0||n>9||v<0||v>2?en:(t.dstate=e,a=i,o=1<<a,l=o-1,h=f+7,p=1<<h,m=p-1,g=Math.floor((h+3-1)/3),s=new Uint8Array(2*o),c=[],d=[],F=1<<f+6,e.pending_buf=new Uint8Array(4*F),r=4*F,e.dist_buf=new Uint16Array(F),e.lc_buf=new Uint8Array(F),L=n,O=v,oe(t))},e.deflateEnd=function(){return 42!=n&&n!=fn&&n!=pn?en:(e.lc_buf=null,e.dist_buf=null,e.pending_buf=null,d=null,c=null,s=null,e.dstate=null,n==fn?-3:Qt)},e.deflateParams=function(e,t,n){let r=Qt;return t==Zt&&(t=6),t<0||t>9||n<0||n>2?en:(cn[L].func!=cn[t].func&&0!==e.total_in&&(r=e.deflate(1)),L!=t&&(L=t,T=cn[L].max_lazy,A=cn[L].good_length,C=cn[L].nice_length,S=cn[L].max_chain),O=n,r)},e.deflateSetDictionary=function(e,t,r){let i,a=r,u=0;if(!t||42!=n)return en;if(a<3)return Qt;for(a>o-hn&&(a=o-hn,u=r-a),s.set(t.subarray(u,u+a),0),x=a,v=a,f=255&s[0],f=(f<<g^255&s[1])&m,i=0;i<=a-3;i++)f=(f<<g^255&s[i+2])&m,c[i&l]=d[f],d[f]=i;return Qt},e.deflate=function(u,h){let S,A,C,N,P;if(h>Xt||h<0)return en;if(!u.next_out||!u.next_in&&0!==u.avail_in||n==pn&&h!=Xt)return u.msg=dn[2-en],en;if(0===u.avail_out)return u.msg=dn[7],-5;var D;if(t=u,N=i,i=h,42==n&&(A=8+(a-8<<4)<<8,C=(L-1&255)>>1,C>3&&(C=3),A|=C<<6,0!==x&&(A|=32),A+=31-A%31,n=fn,q((D=A)>>8&255),q(255&D)),0!==e.pending){if(t.flush_pending(),0===t.avail_out)return i=-1,Qt}else if(0===t.avail_in&&h<=N&&h!=Xt)return t.msg=dn[7],-5;if(n==pn&&0!==t.avail_in)return u.msg=dn[7],-5;if(0!==t.avail_in||0!==k||h!=$t&&n!=pn){switch(P=-1,cn[L].func){case 0:P=function(e){let n,i=65535;for(i>r-5&&(i=r-5);;){if(k<=1){if(re(),0===k&&e==$t)return 0;if(0===k)break}if(x+=k,k=0,n=v+i,(0===x||x>=n)&&(k=x-n,x=n,ne(!1),0===t.avail_out))return 0;if(x-v>=o-hn&&(ne(!1),0===t.avail_out))return 0}return ne(e==Xt),0===t.avail_out?e==Xt?2:0:e==Xt?3:1}(h);break;case 1:P=function(e){let n,r=0;for(;;){if(k<hn){if(re(),k<hn&&e==$t)return 0;if(0===k)break}if(k>=3&&(f=(f<<g^255&s[x+2])&m,r=65535&d[f],c[x&l]=d[f],d[f]=x),0!==r&&(x-r&65535)<=o-hn&&2!=O&&(y=ie(r)),y>=3)if(n=X(x-_,y-3),k-=y,y<=T&&k>=3){y--;do{x++,f=(f<<g^255&s[x+2])&m,r=65535&d[f],c[x&l]=d[f],d[f]=x}while(0!=--y);x++}else x+=y,y=0,f=255&s[x],f=(f<<g^255&s[x+1])&m;else n=X(0,255&s[x]),k--,x++;if(n&&(ne(!1),0===t.avail_out))return 0}return ne(e==Xt),0===t.avail_out?e==Xt?2:0:e==Xt?3:1}(h);break;case 2:P=function(e){let n,r,i=0;for(;;){if(k<hn){if(re(),k<hn&&e==$t)return 0;if(0===k)break}if(k>=3&&(f=(f<<g^255&s[x+2])&m,i=65535&d[f],c[x&l]=d[f],d[f]=x),E=y,b=_,y=2,0!==i&&E<T&&(x-i&65535)<=o-hn&&(2!=O&&(y=ie(i)),y<=5&&(1==O||3==y&&x-_>4096)&&(y=2)),E>=3&&y<=E){r=x+k-3,n=X(x-1-b,E-3),k-=E-1,E-=2;do{++x<=r&&(f=(f<<g^255&s[x+2])&m,i=65535&d[f],c[x&l]=d[f],d[f]=x)}while(0!=--E);if(w=0,y=2,x++,n&&(ne(!1),0===t.avail_out))return 0}else if(0!==w){if(n=X(0,255&s[x-1]),n&&ne(!1),x++,k--,0===t.avail_out)return 0}else w=1,x++,k--}return 0!==w&&(n=X(0,255&s[x-1]),w=0),ne(e==Xt),0===t.avail_out?e==Xt?2:0:e==Xt?3:1}(h)}if(2!=P&&3!=P||(n=pn),0==P||2==P)return 0===t.avail_out&&(i=-1),Qt;if(1==P){if(1==h)G(2,3),V(256,an.static_ltree),$(),1+U+10-W<9&&(G(2,3),V(256,an.static_ltree),$()),U=7;else if(ee(0,0,!1),3==h)for(S=0;S<p;S++)d[S]=0;if(t.flush_pending(),0===t.avail_out)return i=-1,Qt}}return h!=Xt?Qt:Jt}}function vn(){const e=this;e.next_in_index=0,e.next_out_index=0,e.avail_in=0,e.total_in=0,e.avail_out=0,e.total_out=0}vn.prototype={deflateInit(e,t){const n=this;return n.dstate=new gn,t||(t=Gt),n.dstate.deflateInit(n,e,t)},deflate(e){const t=this;return t.dstate?t.dstate.deflate(t,e):en},deflateEnd(){const e=this;if(!e.dstate)return en;const t=e.dstate.deflateEnd();return e.dstate=null,t},deflateParams(e,t){const n=this;return n.dstate?n.dstate.deflateParams(n,e,t):en},deflateSetDictionary(e,t){const n=this;return n.dstate?n.dstate.deflateSetDictionary(n,e,t):en},read_buf(e,t,n){const r=this;let i=r.avail_in;return i>n&&(i=n),0===i?0:(r.avail_in-=i,e.set(r.next_in.subarray(r.next_in_index,r.next_in_index+i),t),r.next_in_index+=i,r.total_in+=i,i)},flush_pending(){const e=this;let t=e.dstate.pending;t>e.avail_out&&(t=e.avail_out),0!==t&&(e.next_out.set(e.dstate.pending_buf.subarray(e.dstate.pending_out,e.dstate.pending_out+t),e.next_out_index),e.next_out_index+=t,e.dstate.pending_out+=t,e.total_out+=t,e.avail_out-=t,e.dstate.pending-=t,0===e.dstate.pending&&(e.dstate.pending_out=0))}};const yn=0,bn=1,wn=-2,xn=-3,_n=-4,kn=-5,En=[0,1,3,7,15,31,63,127,255,511,1023,2047,4095,8191,16383,32767,65535],Sn=1440,Tn=[96,7,256,0,8,80,0,8,16,84,8,115,82,7,31,0,8,112,0,8,48,0,9,192,80,7,10,0,8,96,0,8,32,0,9,160,0,8,0,0,8,128,0,8,64,0,9,224,80,7,6,0,8,88,0,8,24,0,9,144,83,7,59,0,8,120,0,8,56,0,9,208,81,7,17,0,8,104,0,8,40,0,9,176,0,8,8,0,8,136,0,8,72,0,9,240,80,7,4,0,8,84,0,8,20,85,8,227,83,7,43,0,8,116,0,8,52,0,9,200,81,7,13,0,8,100,0,8,36,0,9,168,0,8,4,0,8,132,0,8,68,0,9,232,80,7,8,0,8,92,0,8,28,0,9,152,84,7,83,0,8,124,0,8,60,0,9,216,82,7,23,0,8,108,0,8,44,0,9,184,0,8,12,0,8,140,0,8,76,0,9,248,80,7,3,0,8,82,0,8,18,85,8,163,83,7,35,0,8,114,0,8,50,0,9,196,81,7,11,0,8,98,0,8,34,0,9,164,0,8,2,0,8,130,0,8,66,0,9,228,80,7,7,0,8,90,0,8,26,0,9,148,84,7,67,0,8,122,0,8,58,0,9,212,82,7,19,0,8,106,0,8,42,0,9,180,0,8,10,0,8,138,0,8,74,0,9,244,80,7,5,0,8,86,0,8,22,192,8,0,83,7,51,0,8,118,0,8,54,0,9,204,81,7,15,0,8,102,0,8,38,0,9,172,0,8,6,0,8,134,0,8,70,0,9,236,80,7,9,0,8,94,0,8,30,0,9,156,84,7,99,0,8,126,0,8,62,0,9,220,82,7,27,0,8,110,0,8,46,0,9,188,0,8,14,0,8,142,0,8,78,0,9,252,96,7,256,0,8,81,0,8,17,85,8,131,82,7,31,0,8,113,0,8,49,0,9,194,80,7,10,0,8,97,0,8,33,0,9,162,0,8,1,0,8,129,0,8,65,0,9,226,80,7,6,0,8,89,0,8,25,0,9,146,83,7,59,0,8,121,0,8,57,0,9,210,81,7,17,0,8,105,0,8,41,0,9,178,0,8,9,0,8,137,0,8,73,0,9,242,80,7,4,0,8,85,0,8,21,80,8,258,83,7,43,0,8,117,0,8,53,0,9,202,81,7,13,0,8,101,0,8,37,0,9,170,0,8,5,0,8,133,0,8,69,0,9,234,80,7,8,0,8,93,0,8,29,0,9,154,84,7,83,0,8,125,0,8,61,0,9,218,82,7,23,0,8,109,0,8,45,0,9,186,0,8,13,0,8,141,0,8,77,0,9,250,80,7,3,0,8,83,0,8,19,85,8,195,83,7,35,0,8,115,0,8,51,0,9,198,81,7,11,0,8,99,0,8,35,0,9,166,0,8,3,0,8,131,0,8,67,0,9,230,80,7,7,0,8,91,0,8,27,0,9,150,84,7,67,0,8,123,0,8,59,0,9,214,82,7,19,0,8,107,0,8,43,0,9,182,0,8,11,0,8,139,0,8,75,0,9,246,80,7,5,0,8,87,0,8,23,192,8,0,83,7,51,0,8,119,0,8,55,0,9,206,81,7,15,0,8,103,0,8,39,0,9,174,0,8,7,0,8,135,0,8,71,0,9,238,80,7,9,0,8,95,0,8,31,0,9,158,84,7,99,0,8,127,0,8,63,0,9,222,82,7,27,0,8,111,0,8,47,0,9,190,0,8,15,0,8,143,0,8,79,0,9,254,96,7,256,0,8,80,0,8,16,84,8,115,82,7,31,0,8,112,0,8,48,0,9,193,80,7,10,0,8,96,0,8,32,0,9,161,0,8,0,0,8,128,0,8,64,0,9,225,80,7,6,0,8,88,0,8,24,0,9,145,83,7,59,0,8,120,0,8,56,0,9,209,81,7,17,0,8,104,0,8,40,0,9,177,0,8,8,0,8,136,0,8,72,0,9,241,80,7,4,0,8,84,0,8,20,85,8,227,83,7,43,0,8,116,0,8,52,0,9,201,81,7,13,0,8,100,0,8,36,0,9,169,0,8,4,0,8,132,0,8,68,0,9,233,80,7,8,0,8,92,0,8,28,0,9,153,84,7,83,0,8,124,0,8,60,0,9,217,82,7,23,0,8,108,0,8,44,0,9,185,0,8,12,0,8,140,0,8,76,0,9,249,80,7,3,0,8,82,0,8,18,85,8,163,83,7,35,0,8,114,0,8,50,0,9,197,81,7,11,0,8,98,0,8,34,0,9,165,0,8,2,0,8,130,0,8,66,0,9,229,80,7,7,0,8,90,0,8,26,0,9,149,84,7,67,0,8,122,0,8,58,0,9,213,82,7,19,0,8,106,0,8,42,0,9,181,0,8,10,0,8,138,0,8,74,0,9,245,80,7,5,0,8,86,0,8,22,192,8,0,83,7,51,0,8,118,0,8,54,0,9,205,81,7,15,0,8,102,0,8,38,0,9,173,0,8,6,0,8,134,0,8,70,0,9,237,80,7,9,0,8,94,0,8,30,0,9,157,84,7,99,0,8,126,0,8,62,0,9,221,82,7,27,0,8,110,0,8,46,0,9,189,0,8,14,0,8,142,0,8,78,0,9,253,96,7,256,0,8,81,0,8,17,85,8,131,82,7,31,0,8,113,0,8,49,0,9,195,80,7,10,0,8,97,0,8,33,0,9,163,0,8,1,0,8,129,0,8,65,0,9,227,80,7,6,0,8,89,0,8,25,0,9,147,83,7,59,0,8,121,0,8,57,0,9,211,81,7,17,0,8,105,0,8,41,0,9,179,0,8,9,0,8,137,0,8,73,0,9,243,80,7,4,0,8,85,0,8,21,80,8,258,83,7,43,0,8,117,0,8,53,0,9,203,81,7,13,0,8,101,0,8,37,0,9,171,0,8,5,0,8,133,0,8,69,0,9,235,80,7,8,0,8,93,0,8,29,0,9,155,84,7,83,0,8,125,0,8,61,0,9,219,82,7,23,0,8,109,0,8,45,0,9,187,0,8,13,0,8,141,0,8,77,0,9,251,80,7,3,0,8,83,0,8,19,85,8,195,83,7,35,0,8,115,0,8,51,0,9,199,81,7,11,0,8,99,0,8,35,0,9,167,0,8,3,0,8,131,0,8,67,0,9,231,80,7,7,0,8,91,0,8,27,0,9,151,84,7,67,0,8,123,0,8,59,0,9,215,82,7,19,0,8,107,0,8,43,0,9,183,0,8,11,0,8,139,0,8,75,0,9,247,80,7,5,0,8,87,0,8,23,192,8,0,83,7,51,0,8,119,0,8,55,0,9,207,81,7,15,0,8,103,0,8,39,0,9,175,0,8,7,0,8,135,0,8,71,0,9,239,80,7,9,0,8,95,0,8,31,0,9,159,84,7,99,0,8,127,0,8,63,0,9,223,82,7,27,0,8,111,0,8,47,0,9,191,0,8,15,0,8,143,0,8,79,0,9,255],Ln=[80,5,1,87,5,257,83,5,17,91,5,4097,81,5,5,89,5,1025,85,5,65,93,5,16385,80,5,3,88,5,513,84,5,33,92,5,8193,82,5,9,90,5,2049,86,5,129,192,5,24577,80,5,2,87,5,385,83,5,25,91,5,6145,81,5,7,89,5,1537,85,5,97,93,5,24577,80,5,4,88,5,769,84,5,49,92,5,12289,82,5,13,90,5,3073,86,5,193,192,5,24577],On=[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],An=[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,112,112],Cn=[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],Nn=[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],Pn=15;function Dn(){let e,t,n,r,i,o;function a(e,t,a,l,s,u,c,d,f,p,h){let m,g,v,y,b,w,x,_,k,E,S,T,L,O,A;E=0,b=a;do{n[e[t+E]]++,E++,b--}while(0!==b);if(n[0]==a)return c[0]=-1,d[0]=0,yn;for(_=d[0],w=1;w<=Pn&&0===n[w];w++);for(x=w,_<w&&(_=w),b=Pn;0!==b&&0===n[b];b--);for(v=b,_>b&&(_=b),d[0]=_,O=1<<w;w<b;w++,O<<=1)if((O-=n[w])<0)return xn;if((O-=n[b])<0)return xn;for(n[b]+=O,o[1]=w=0,E=1,L=2;0!=--b;)o[L]=w+=n[E],L++,E++;b=0,E=0;do{0!==(w=e[t+E])&&(h[o[w]++]=b),E++}while(++b<a);for(a=o[v],o[0]=b=0,E=0,y=-1,T=-_,i[0]=0,S=0,A=0;x<=v;x++)for(m=n[x];0!=m--;){for(;x>T+_;){if(y++,T+=_,A=v-T,A=A>_?_:A,(g=1<<(w=x-T))>m+1&&(g-=m+1,L=x,w<A))for(;++w<A&&!((g<<=1)<=n[++L]);)g-=n[L];if(A=1<<w,p[0]+A>Sn)return xn;i[y]=S=p[0],p[0]+=A,0!==y?(o[y]=b,r[0]=w,r[1]=_,w=b>>>T-_,r[2]=S-i[y-1]-w,f.set(r,3*(i[y-1]+w))):c[0]=S}for(r[1]=x-T,E>=a?r[0]=192:h[E]<l?(r[0]=h[E]<256?0:96,r[2]=h[E++]):(r[0]=u[h[E]-l]+16+64,r[2]=s[h[E++]-l]),g=1<<x-T,w=b>>>T;w<A;w+=g)f.set(r,3*(S+w));for(w=1<<x-1;0!=(b&w);w>>>=1)b^=w;for(b^=w,k=(1<<T)-1;(b&k)!=o[y];)y--,T-=_,k=(1<<T)-1}return 0!==O&&1!=v?kn:yn}function l(a){let l;for(e||(e=[],t=[],n=new Int32Array(Pn+1),r=[],i=new Int32Array(Pn),o=new Int32Array(Pn+1)),t.length<a&&(t=[]),l=0;l<a;l++)t[l]=0;for(l=0;l<Pn+1;l++)n[l]=0;for(l=0;l<3;l++)r[l]=0;i.set(n.subarray(0,Pn),0),o.set(n.subarray(0,Pn+1),0)}this.inflate_trees_bits=function(n,r,i,o,s){let u;return l(19),e[0]=0,u=a(n,0,19,19,null,null,i,r,o,e,t),u==xn?s.msg="oversubscribed dynamic bit lengths tree":u!=kn&&0!==r[0]||(s.msg="incomplete dynamic bit lengths tree",u=xn),u},this.inflate_trees_dynamic=function(n,r,i,o,s,u,c,d,f){let p;return l(288),e[0]=0,p=a(i,0,n,257,On,An,u,o,d,e,t),p!=yn||0===o[0]?(p==xn?f.msg="oversubscribed literal/length tree":p!=_n&&(f.msg="incomplete literal/length tree",p=xn),p):(l(288),p=a(i,n,r,0,Cn,Nn,c,s,d,e,t),p!=yn||0===s[0]&&n>257?(p==xn?f.msg="oversubscribed distance tree":p==kn?(f.msg="incomplete distance tree",p=xn):p!=_n&&(f.msg="empty distance tree with lengths",p=xn),p):yn)}}Dn.inflate_trees_fixed=function(e,t,n,r){return e[0]=9,t[0]=5,n[0]=Tn,r[0]=Ln,yn};const In=0,zn=1,Rn=2,Fn=3,Bn=4,jn=5,Un=6,Mn=7,Wn=8,Hn=9;function Kn(){const e=this;let t,n,r,i,o=0,a=0,l=0,s=0,u=0,c=0,d=0,f=0,p=0,h=0;function m(e,t,n,r,i,o,a,l){let s,u,c,d,f,p,h,m,g,v,y,b,w,x,_,k;h=l.next_in_index,m=l.avail_in,f=a.bitb,p=a.bitk,g=a.write,v=g<a.read?a.read-g-1:a.end-g,y=En[e],b=En[t];do{for(;p<20;)m--,f|=(255&l.read_byte(h++))<<p,p+=8;if(s=f&y,u=n,c=r,k=3*(c+s),0!==(d=u[k]))for(;;){if(f>>=u[k+1],p-=u[k+1],0!=(16&d)){for(d&=15,w=u[k+2]+(f&En[d]),f>>=d,p-=d;p<15;)m--,f|=(255&l.read_byte(h++))<<p,p+=8;for(s=f&b,u=i,c=o,k=3*(c+s),d=u[k];;){if(f>>=u[k+1],p-=u[k+1],0!=(16&d)){for(d&=15;p<d;)m--,f|=(255&l.read_byte(h++))<<p,p+=8;if(x=u[k+2]+(f&En[d]),f>>=d,p-=d,v-=w,g>=x)_=g-x,g-_>0&&2>g-_?(a.win[g++]=a.win[_++],a.win[g++]=a.win[_++],w-=2):(a.win.set(a.win.subarray(_,_+2),g),g+=2,_+=2,w-=2);else{_=g-x;do{_+=a.end}while(_<0);if(d=a.end-_,w>d){if(w-=d,g-_>0&&d>g-_)do{a.win[g++]=a.win[_++]}while(0!=--d);else a.win.set(a.win.subarray(_,_+d),g),g+=d,_+=d,d=0;_=0}}if(g-_>0&&w>g-_)do{a.win[g++]=a.win[_++]}while(0!=--w);else a.win.set(a.win.subarray(_,_+w),g),g+=w,_+=w,w=0;break}if(0!=(64&d))return l.msg="invalid distance code",w=l.avail_in-m,w=p>>3<w?p>>3:w,m+=w,h-=w,p-=w<<3,a.bitb=f,a.bitk=p,l.avail_in=m,l.total_in+=h-l.next_in_index,l.next_in_index=h,a.write=g,xn;s+=u[k+2],s+=f&En[d],k=3*(c+s),d=u[k]}break}if(0!=(64&d))return 0!=(32&d)?(w=l.avail_in-m,w=p>>3<w?p>>3:w,m+=w,h-=w,p-=w<<3,a.bitb=f,a.bitk=p,l.avail_in=m,l.total_in+=h-l.next_in_index,l.next_in_index=h,a.write=g,bn):(l.msg="invalid literal/length code",w=l.avail_in-m,w=p>>3<w?p>>3:w,m+=w,h-=w,p-=w<<3,a.bitb=f,a.bitk=p,l.avail_in=m,l.total_in+=h-l.next_in_index,l.next_in_index=h,a.write=g,xn);if(s+=u[k+2],s+=f&En[d],k=3*(c+s),0===(d=u[k])){f>>=u[k+1],p-=u[k+1],a.win[g++]=u[k+2],v--;break}}else f>>=u[k+1],p-=u[k+1],a.win[g++]=u[k+2],v--}while(v>=258&&m>=10);return w=l.avail_in-m,w=p>>3<w?p>>3:w,m+=w,h-=w,p-=w<<3,a.bitb=f,a.bitk=p,l.avail_in=m,l.total_in+=h-l.next_in_index,l.next_in_index=h,a.write=g,yn}e.init=function(e,o,a,l,s,u){t=In,d=e,f=o,r=a,p=l,i=s,h=u,n=null},e.proc=function(e,g,v){let y,b,w,x,_,k,E,S=0,T=0,L=0;for(L=g.next_in_index,x=g.avail_in,S=e.bitb,T=e.bitk,_=e.write,k=_<e.read?e.read-_-1:e.end-_;;)switch(t){case In:if(k>=258&&x>=10&&(e.bitb=S,e.bitk=T,g.avail_in=x,g.total_in+=L-g.next_in_index,g.next_in_index=L,e.write=_,v=m(d,f,r,p,i,h,e,g),L=g.next_in_index,x=g.avail_in,S=e.bitb,T=e.bitk,_=e.write,k=_<e.read?e.read-_-1:e.end-_,v!=yn)){t=v==bn?Mn:Hn;break}l=d,n=r,a=p,t=zn;case zn:for(y=l;T<y;){if(0===x)return e.bitb=S,e.bitk=T,g.avail_in=x,g.total_in+=L-g.next_in_index,g.next_in_index=L,e.write=_,e.inflate_flush(g,v);v=yn,x--,S|=(255&g.read_byte(L++))<<T,T+=8}if(b=3*(a+(S&En[y])),S>>>=n[b+1],T-=n[b+1],w=n[b],0===w){s=n[b+2],t=Un;break}if(0!=(16&w)){u=15&w,o=n[b+2],t=Rn;break}if(0==(64&w)){l=w,a=b/3+n[b+2];break}if(0!=(32&w)){t=Mn;break}return t=Hn,g.msg="invalid literal/length code",v=xn,e.bitb=S,e.bitk=T,g.avail_in=x,g.total_in+=L-g.next_in_index,g.next_in_index=L,e.write=_,e.inflate_flush(g,v);case Rn:for(y=u;T<y;){if(0===x)return e.bitb=S,e.bitk=T,g.avail_in=x,g.total_in+=L-g.next_in_index,g.next_in_index=L,e.write=_,e.inflate_flush(g,v);v=yn,x--,S|=(255&g.read_byte(L++))<<T,T+=8}o+=S&En[y],S>>=y,T-=y,l=f,n=i,a=h,t=Fn;case Fn:for(y=l;T<y;){if(0===x)return e.bitb=S,e.bitk=T,g.avail_in=x,g.total_in+=L-g.next_in_index,g.next_in_index=L,e.write=_,e.inflate_flush(g,v);v=yn,x--,S|=(255&g.read_byte(L++))<<T,T+=8}if(b=3*(a+(S&En[y])),S>>=n[b+1],T-=n[b+1],w=n[b],0!=(16&w)){u=15&w,c=n[b+2],t=Bn;break}if(0==(64&w)){l=w,a=b/3+n[b+2];break}return t=Hn,g.msg="invalid distance code",v=xn,e.bitb=S,e.bitk=T,g.avail_in=x,g.total_in+=L-g.next_in_index,g.next_in_index=L,e.write=_,e.inflate_flush(g,v);case Bn:for(y=u;T<y;){if(0===x)return e.bitb=S,e.bitk=T,g.avail_in=x,g.total_in+=L-g.next_in_index,g.next_in_index=L,e.write=_,e.inflate_flush(g,v);v=yn,x--,S|=(255&g.read_byte(L++))<<T,T+=8}c+=S&En[y],S>>=y,T-=y,t=jn;case jn:for(E=_-c;E<0;)E+=e.end;for(;0!==o;){if(0===k&&(_==e.end&&0!==e.read&&(_=0,k=_<e.read?e.read-_-1:e.end-_),0===k&&(e.write=_,v=e.inflate_flush(g,v),_=e.write,k=_<e.read?e.read-_-1:e.end-_,_==e.end&&0!==e.read&&(_=0,k=_<e.read?e.read-_-1:e.end-_),0===k)))return e.bitb=S,e.bitk=T,g.avail_in=x,g.total_in+=L-g.next_in_index,g.next_in_index=L,e.write=_,e.inflate_flush(g,v);e.win[_++]=e.win[E++],k--,E==e.end&&(E=0),o--}t=In;break;case Un:if(0===k&&(_==e.end&&0!==e.read&&(_=0,k=_<e.read?e.read-_-1:e.end-_),0===k&&(e.write=_,v=e.inflate_flush(g,v),_=e.write,k=_<e.read?e.read-_-1:e.end-_,_==e.end&&0!==e.read&&(_=0,k=_<e.read?e.read-_-1:e.end-_),0===k)))return e.bitb=S,e.bitk=T,g.avail_in=x,g.total_in+=L-g.next_in_index,g.next_in_index=L,e.write=_,e.inflate_flush(g,v);v=yn,e.win[_++]=s,k--,t=In;break;case Mn:if(T>7&&(T-=8,x++,L--),e.write=_,v=e.inflate_flush(g,v),_=e.write,k=_<e.read?e.read-_-1:e.end-_,e.read!=e.write)return e.bitb=S,e.bitk=T,g.avail_in=x,g.total_in+=L-g.next_in_index,g.next_in_index=L,e.write=_,e.inflate_flush(g,v);t=Wn;case Wn:return v=bn,e.bitb=S,e.bitk=T,g.avail_in=x,g.total_in+=L-g.next_in_index,g.next_in_index=L,e.write=_,e.inflate_flush(g,v);case Hn:return v=xn,e.bitb=S,e.bitk=T,g.avail_in=x,g.total_in+=L-g.next_in_index,g.next_in_index=L,e.write=_,e.inflate_flush(g,v);default:return v=wn,e.bitb=S,e.bitk=T,g.avail_in=x,g.total_in+=L-g.next_in_index,g.next_in_index=L,e.write=_,e.inflate_flush(g,v)}},e.free=function(){}}const qn=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],Yn=0,Gn=1,Vn=2,Zn=3,$n=4,Xn=5,Qn=6,Jn=7,er=8,tr=9;function nr(e,t){const n=this;let r,i=Yn,o=0,a=0,l=0;const s=[0],u=[0],c=new Kn;let d=0,f=new Int32Array(3*Sn);const p=new Dn;n.bitk=0,n.bitb=0,n.win=new Uint8Array(t),n.end=t,n.read=0,n.write=0,n.reset=function(e,t){t&&(t[0]=0),i==Qn&&c.free(e),i=Yn,n.bitk=0,n.bitb=0,n.read=n.write=0},n.reset(e,null),n.inflate_flush=function(e,t){let r,i,o;return i=e.next_out_index,o=n.read,r=(o<=n.write?n.write:n.end)-o,r>e.avail_out&&(r=e.avail_out),0!==r&&t==kn&&(t=yn),e.avail_out-=r,e.total_out+=r,e.next_out.set(n.win.subarray(o,o+r),i),i+=r,o+=r,o==n.end&&(o=0,n.write==n.end&&(n.write=0),r=n.write-o,r>e.avail_out&&(r=e.avail_out),0!==r&&t==kn&&(t=yn),e.avail_out-=r,e.total_out+=r,e.next_out.set(n.win.subarray(o,o+r),i),i+=r,o+=r),e.next_out_index=i,n.read=o,t},n.proc=function(e,t){let h,m,g,v,y,b,w,x;for(v=e.next_in_index,y=e.avail_in,m=n.bitb,g=n.bitk,b=n.write,w=b<n.read?n.read-b-1:n.end-b;;){let _,k,E,S,T,L,O,A;switch(i){case Yn:for(;g<3;){if(0===y)return n.bitb=m,n.bitk=g,e.avail_in=y,e.total_in+=v-e.next_in_index,e.next_in_index=v,n.write=b,n.inflate_flush(e,t);t=yn,y--,m|=(255&e.read_byte(v++))<<g,g+=8}switch(h=7&m,d=1&h,h>>>1){case 0:m>>>=3,g-=3,h=7&g,m>>>=h,g-=h,i=Gn;break;case 1:_=[],k=[],E=[[]],S=[[]],Dn.inflate_trees_fixed(_,k,E,S),c.init(_[0],k[0],E[0],0,S[0],0),m>>>=3,g-=3,i=Qn;break;case 2:m>>>=3,g-=3,i=Zn;break;case 3:return m>>>=3,g-=3,i=tr,e.msg="invalid block type",t=xn,n.bitb=m,n.bitk=g,e.avail_in=y,e.total_in+=v-e.next_in_index,e.next_in_index=v,n.write=b,n.inflate_flush(e,t)}break;case Gn:for(;g<32;){if(0===y)return n.bitb=m,n.bitk=g,e.avail_in=y,e.total_in+=v-e.next_in_index,e.next_in_index=v,n.write=b,n.inflate_flush(e,t);t=yn,y--,m|=(255&e.read_byte(v++))<<g,g+=8}if((~m>>>16&65535)!=(65535&m))return i=tr,e.msg="invalid stored block lengths",t=xn,n.bitb=m,n.bitk=g,e.avail_in=y,e.total_in+=v-e.next_in_index,e.next_in_index=v,n.write=b,n.inflate_flush(e,t);o=65535&m,m=g=0,i=0!==o?Vn:0!==d?Jn:Yn;break;case Vn:if(0===y)return n.bitb=m,n.bitk=g,e.avail_in=y,e.total_in+=v-e.next_in_index,e.next_in_index=v,n.write=b,n.inflate_flush(e,t);if(0===w&&(b==n.end&&0!==n.read&&(b=0,w=b<n.read?n.read-b-1:n.end-b),0===w&&(n.write=b,t=n.inflate_flush(e,t),b=n.write,w=b<n.read?n.read-b-1:n.end-b,b==n.end&&0!==n.read&&(b=0,w=b<n.read?n.read-b-1:n.end-b),0===w)))return n.bitb=m,n.bitk=g,e.avail_in=y,e.total_in+=v-e.next_in_index,e.next_in_index=v,n.write=b,n.inflate_flush(e,t);if(t=yn,h=o,h>y&&(h=y),h>w&&(h=w),n.win.set(e.read_buf(v,h),b),v+=h,y-=h,b+=h,w-=h,0!=(o-=h))break;i=0!==d?Jn:Yn;break;case Zn:for(;g<14;){if(0===y)return n.bitb=m,n.bitk=g,e.avail_in=y,e.total_in+=v-e.next_in_index,e.next_in_index=v,n.write=b,n.inflate_flush(e,t);t=yn,y--,m|=(255&e.read_byte(v++))<<g,g+=8}if(a=h=16383&m,(31&h)>29||(h>>5&31)>29)return i=tr,e.msg="too many length or distance symbols",t=xn,n.bitb=m,n.bitk=g,e.avail_in=y,e.total_in+=v-e.next_in_index,e.next_in_index=v,n.write=b,n.inflate_flush(e,t);if(h=258+(31&h)+(h>>5&31),!r||r.length<h)r=[];else for(x=0;x<h;x++)r[x]=0;m>>>=14,g-=14,l=0,i=$n;case $n:for(;l<4+(a>>>10);){for(;g<3;){if(0===y)return n.bitb=m,n.bitk=g,e.avail_in=y,e.total_in+=v-e.next_in_index,e.next_in_index=v,n.write=b,n.inflate_flush(e,t);t=yn,y--,m|=(255&e.read_byte(v++))<<g,g+=8}r[qn[l++]]=7&m,m>>>=3,g-=3}for(;l<19;)r[qn[l++]]=0;if(s[0]=7,h=p.inflate_trees_bits(r,s,u,f,e),h!=yn)return(t=h)==xn&&(r=null,i=tr),n.bitb=m,n.bitk=g,e.avail_in=y,e.total_in+=v-e.next_in_index,e.next_in_index=v,n.write=b,n.inflate_flush(e,t);l=0,i=Xn;case Xn:for(;h=a,!(l>=258+(31&h)+(h>>5&31));){let o,c;for(h=s[0];g<h;){if(0===y)return n.bitb=m,n.bitk=g,e.avail_in=y,e.total_in+=v-e.next_in_index,e.next_in_index=v,n.write=b,n.inflate_flush(e,t);t=yn,y--,m|=(255&e.read_byte(v++))<<g,g+=8}if(h=f[3*(u[0]+(m&En[h]))+1],c=f[3*(u[0]+(m&En[h]))+2],c<16)m>>>=h,g-=h,r[l++]=c;else{for(x=18==c?7:c-14,o=18==c?11:3;g<h+x;){if(0===y)return n.bitb=m,n.bitk=g,e.avail_in=y,e.total_in+=v-e.next_in_index,e.next_in_index=v,n.write=b,n.inflate_flush(e,t);t=yn,y--,m|=(255&e.read_byte(v++))<<g,g+=8}if(m>>>=h,g-=h,o+=m&En[x],m>>>=x,g-=x,x=l,h=a,x+o>258+(31&h)+(h>>5&31)||16==c&&x<1)return r=null,i=tr,e.msg="invalid bit length repeat",t=xn,n.bitb=m,n.bitk=g,e.avail_in=y,e.total_in+=v-e.next_in_index,e.next_in_index=v,n.write=b,n.inflate_flush(e,t);c=16==c?r[x-1]:0;do{r[x++]=c}while(0!=--o);l=x}}if(u[0]=-1,T=[],L=[],O=[],A=[],T[0]=9,L[0]=6,h=a,h=p.inflate_trees_dynamic(257+(31&h),1+(h>>5&31),r,T,L,O,A,f,e),h!=yn)return h==xn&&(r=null,i=tr),t=h,n.bitb=m,n.bitk=g,e.avail_in=y,e.total_in+=v-e.next_in_index,e.next_in_index=v,n.write=b,n.inflate_flush(e,t);c.init(T[0],L[0],f,O[0],f,A[0]),i=Qn;case Qn:if(n.bitb=m,n.bitk=g,e.avail_in=y,e.total_in+=v-e.next_in_index,e.next_in_index=v,n.write=b,(t=c.proc(n,e,t))!=bn)return n.inflate_flush(e,t);if(t=yn,c.free(e),v=e.next_in_index,y=e.avail_in,m=n.bitb,g=n.bitk,b=n.write,w=b<n.read?n.read-b-1:n.end-b,0===d){i=Yn;break}i=Jn;case Jn:if(n.write=b,t=n.inflate_flush(e,t),b=n.write,w=b<n.read?n.read-b-1:n.end-b,n.read!=n.write)return n.bitb=m,n.bitk=g,e.avail_in=y,e.total_in+=v-e.next_in_index,e.next_in_index=v,n.write=b,n.inflate_flush(e,t);i=er;case er:return t=bn,n.bitb=m,n.bitk=g,e.avail_in=y,e.total_in+=v-e.next_in_index,e.next_in_index=v,n.write=b,n.inflate_flush(e,t);case tr:return t=xn,n.bitb=m,n.bitk=g,e.avail_in=y,e.total_in+=v-e.next_in_index,e.next_in_index=v,n.write=b,n.inflate_flush(e,t);default:return t=wn,n.bitb=m,n.bitk=g,e.avail_in=y,e.total_in+=v-e.next_in_index,e.next_in_index=v,n.write=b,n.inflate_flush(e,t)}}},n.free=function(e){n.reset(e,null),n.win=null,f=null},n.set_dictionary=function(e,t,r){n.win.set(e.subarray(t,t+r),0),n.read=n.write=r},n.sync_point=function(){return i==Gn?1:0}}const rr=13,ir=[0,0,255,255];function or(){const e=this;function t(e){return e&&e.istate?(e.total_in=e.total_out=0,e.msg=null,e.istate.mode=7,e.istate.blocks.reset(e,null),yn):wn}e.mode=0,e.method=0,e.was=[0],e.need=0,e.marker=0,e.wbits=0,e.inflateEnd=function(t){return e.blocks&&e.blocks.free(t),e.blocks=null,yn},e.inflateInit=function(n,r){return n.msg=null,e.blocks=null,r<8||r>15?(e.inflateEnd(n),wn):(e.wbits=r,n.istate.blocks=new nr(n,1<<r),t(n),yn)},e.inflate=function(e,t){let n,r;if(!e||!e.istate||!e.next_in)return wn;const i=e.istate;for(t=4==t?kn:yn,n=kn;;)switch(i.mode){case 0:if(0===e.avail_in)return n;if(n=t,e.avail_in--,e.total_in++,8!=(15&(i.method=e.read_byte(e.next_in_index++)))){i.mode=rr,e.msg="unknown compression method",i.marker=5;break}if(8+(i.method>>4)>i.wbits){i.mode=rr,e.msg="invalid win size",i.marker=5;break}i.mode=1;case 1:if(0===e.avail_in)return n;if(n=t,e.avail_in--,e.total_in++,r=255&e.read_byte(e.next_in_index++),((i.method<<8)+r)%31!=0){i.mode=rr,e.msg="incorrect header check",i.marker=5;break}if(0==(32&r)){i.mode=7;break}i.mode=2;case 2:if(0===e.avail_in)return n;n=t,e.avail_in--,e.total_in++,i.need=(255&e.read_byte(e.next_in_index++))<<24&4278190080,i.mode=3;case 3:if(0===e.avail_in)return n;n=t,e.avail_in--,e.total_in++,i.need+=(255&e.read_byte(e.next_in_index++))<<16&16711680,i.mode=4;case 4:if(0===e.avail_in)return n;n=t,e.avail_in--,e.total_in++,i.need+=(255&e.read_byte(e.next_in_index++))<<8&65280,i.mode=5;case 5:return 0===e.avail_in?n:(n=t,e.avail_in--,e.total_in++,i.need+=255&e.read_byte(e.next_in_index++),i.mode=6,2);case 6:return i.mode=rr,e.msg="need dictionary",i.marker=0,wn;case 7:if(n=i.blocks.proc(e,n),n==xn){i.mode=rr,i.marker=0;break}if(n==yn&&(n=t),n!=bn)return n;n=t,i.blocks.reset(e,i.was),i.mode=12;case 12:return e.avail_in=0,bn;case rr:return xn;default:return wn}},e.inflateSetDictionary=function(e,t,n){let r=0,i=n;if(!e||!e.istate||6!=e.istate.mode)return wn;const o=e.istate;return i>=1<<o.wbits&&(i=(1<<o.wbits)-1,r=n-i),o.blocks.set_dictionary(t,r,i),o.mode=7,yn},e.inflateSync=function(e){let n,r,i,o,a;if(!e||!e.istate)return wn;const l=e.istate;if(l.mode!=rr&&(l.mode=rr,l.marker=0),0===(n=e.avail_in))return kn;for(r=e.next_in_index,i=l.marker;0!==n&&i<4;)e.read_byte(r)==ir[i]?i++:i=0!==e.read_byte(r)?0:4-i,r++,n--;return e.total_in+=r-e.next_in_index,e.next_in_index=r,e.avail_in=n,l.marker=i,4!=i?xn:(o=e.total_in,a=e.total_out,t(e),e.total_in=o,e.total_out=a,l.mode=7,yn)},e.inflateSyncPoint=function(e){return e&&e.istate&&e.istate.blocks?e.istate.blocks.sync_point():wn}}function ar(){}ar.prototype={inflateInit(e){const t=this;return t.istate=new or,e||(e=15),t.istate.inflateInit(t,e)},inflate(e){const t=this;return t.istate?t.istate.inflate(t,e):wn},inflateEnd(){const e=this;if(!e.istate)return wn;const t=e.istate.inflateEnd(e);return e.istate=null,t},inflateSync(){const e=this;return e.istate?e.istate.inflateSync(e):wn},inflateSetDictionary(e,t){const n=this;return n.istate?n.istate.inflateSetDictionary(n,e,t):wn},read_byte(e){return this.next_in[e]},read_buf(e,t){return this.next_in.subarray(e,e+t)}};const lr=4294967295,sr=65535,ur=67324752,cr=134695760,dr=33639248,fr=101010256,pr=101075792,hr=117853008,mr=22,gr=1,vr=39169,yr=10,br=1,wr=21589,xr=1,_r=8,kr=2048,Er="/",Sr=new Date(2107,11,31),Tr=new Date(1980,0,1),Lr=void 0,Or="undefined",Ar="function";class Cr{constructor(e){return class extends TransformStream{constructor(t,n){const r=new e(n);super({transform(e,t){t.enqueue(r.append(e))},flush(e){const t=r.flush();t&&e.enqueue(t)}})}}}}let Nr=2;try{typeof navigator!=Or&&navigator.hardwareConcurrency&&(Nr=navigator.hardwareConcurrency)}catch(e){}const Pr={chunkSize:524288,maxWorkers:Nr,terminateWorkerTimeout:5e3,useWebWorkers:!0,useCompressionStream:!0,workerScripts:Lr,CompressionStreamNative:typeof CompressionStream!=Or&&CompressionStream,DecompressionStreamNative:typeof DecompressionStream!=Or&&DecompressionStream},Dr=Object.assign({},Pr);function Ir(){return Dr}function zr(e){return Math.max(e.chunkSize,64)}function Rr(e){const{baseURL:t,chunkSize:n,maxWorkers:r,terminateWorkerTimeout:i,useCompressionStream:o,useWebWorkers:a,Deflate:l,Inflate:s,CompressionStream:u,DecompressionStream:c,workerScripts:d}=e;if(Fr("baseURL",t),Fr("chunkSize",n),Fr("maxWorkers",r),Fr("terminateWorkerTimeout",i),Fr("useCompressionStream",o),Fr("useWebWorkers",a),l&&(Dr.CompressionStream=new Cr(l)),s&&(Dr.DecompressionStream=new Cr(s)),Fr("CompressionStream",u),Fr("DecompressionStream",c),d!==Lr){const{deflate:e,inflate:t}=d;if((e||t)&&(Dr.workerScripts||(Dr.workerScripts={})),e){if(!Array.isArray(e))throw new Error("workerScripts.deflate must be an array");Dr.workerScripts.deflate=e}if(t){if(!Array.isArray(t))throw new Error("workerScripts.inflate must be an array");Dr.workerScripts.inflate=t}}}function Fr(e,t){t!==Lr&&(Dr[e]=t)}const Br={application:{"andrew-inset":"ez",annodex:"anx","atom+xml":"atom","atomcat+xml":"atomcat","atomserv+xml":"atomsrv",bbolin:"lin",cap:["cap","pcap"],"cu-seeme":"cu","davmount+xml":"davmount",dsptype:"tsp",ecmascript:["es","ecma"],futuresplash:"spl",hta:"hta","java-archive":"jar","java-serialized-object":"ser","java-vm":"class",javascript:"js",m3g:"m3g","mac-binhex40":"hqx",mathematica:["nb","ma","mb"],msaccess:"mdb",msword:["doc","dot"],mxf:"mxf",oda:"oda",ogg:"ogx",pdf:"pdf","pgp-keys":"key","pgp-signature":["asc","sig"],"pics-rules":"prf",postscript:["ps","ai","eps","epsi","epsf","eps2","eps3"],rar:"rar","rdf+xml":"rdf","rss+xml":"rss",rtf:"rtf",smil:["smi","smil"],"xhtml+xml":["xhtml","xht"],xml:["xml","xsl","xsd"],"xspf+xml":"xspf",zip:"zip","vnd.android.package-archive":"apk","vnd.cinderella":"cdy","vnd.google-earth.kml+xml":"kml","vnd.google-earth.kmz":"kmz","vnd.mozilla.xul+xml":"xul","vnd.ms-excel":["xls","xlb","xlt","xlm","xla","xlc","xlw"],"vnd.ms-pki.seccat":"cat","vnd.ms-pki.stl":"stl","vnd.ms-powerpoint":["ppt","pps","pot"],"vnd.oasis.opendocument.chart":"odc","vnd.oasis.opendocument.database":"odb","vnd.oasis.opendocument.formula":"odf","vnd.oasis.opendocument.graphics":"odg","vnd.oasis.opendocument.graphics-template":"otg","vnd.oasis.opendocument.image":"odi","vnd.oasis.opendocument.presentation":"odp","vnd.oasis.opendocument.presentation-template":"otp","vnd.oasis.opendocument.spreadsheet":"ods","vnd.oasis.opendocument.spreadsheet-template":"ots","vnd.oasis.opendocument.text":"odt","vnd.oasis.opendocument.text-master":"odm","vnd.oasis.opendocument.text-template":"ott","vnd.oasis.opendocument.text-web":"oth","vnd.openxmlformats-officedocument.spreadsheetml.sheet":"xlsx","vnd.openxmlformats-officedocument.spreadsheetml.template":"xltx","vnd.openxmlformats-officedocument.presentationml.presentation":"pptx","vnd.openxmlformats-officedocument.presentationml.slideshow":"ppsx","vnd.openxmlformats-officedocument.presentationml.template":"potx","vnd.openxmlformats-officedocument.wordprocessingml.document":"docx","vnd.openxmlformats-officedocument.wordprocessingml.template":"dotx","vnd.smaf":"mmf","vnd.stardivision.calc":"sdc","vnd.stardivision.chart":"sds","vnd.stardivision.draw":"sda","vnd.stardivision.impress":"sdd","vnd.stardivision.math":["sdf","smf"],"vnd.stardivision.writer":["sdw","vor"],"vnd.stardivision.writer-global":"sgl","vnd.sun.xml.calc":"sxc","vnd.sun.xml.calc.template":"stc","vnd.sun.xml.draw":"sxd","vnd.sun.xml.draw.template":"std","vnd.sun.xml.impress":"sxi","vnd.sun.xml.impress.template":"sti","vnd.sun.xml.math":"sxm","vnd.sun.xml.writer":"sxw","vnd.sun.xml.writer.global":"sxg","vnd.sun.xml.writer.template":"stw","vnd.symbian.install":["sis","sisx"],"vnd.visio":["vsd","vst","vss","vsw"],"vnd.wap.wbxml":"wbxml","vnd.wap.wmlc":"wmlc","vnd.wap.wmlscriptc":"wmlsc","vnd.wordperfect":"wpd","vnd.wordperfect5.1":"wp5","x-123":"wk","x-7z-compressed":"7z","x-abiword":"abw","x-apple-diskimage":"dmg","x-bcpio":"bcpio","x-bittorrent":"torrent","x-cbr":["cbr","cba","cbt","cb7"],"x-cbz":"cbz","x-cdf":["cdf","cda"],"x-cdlink":"vcd","x-chess-pgn":"pgn","x-cpio":"cpio","x-csh":"csh","x-debian-package":["deb","udeb"],"x-director":["dcr","dir","dxr","cst","cct","cxt","w3d","fgd","swa"],"x-dms":"dms","x-doom":"wad","x-dvi":"dvi","x-httpd-eruby":"rhtml","x-font":"pcf.Z","x-freemind":"mm","x-gnumeric":"gnumeric","x-go-sgf":"sgf","x-graphing-calculator":"gcf","x-gtar":["gtar","taz"],"x-hdf":"hdf","x-httpd-php":["phtml","pht","php"],"x-httpd-php-source":"phps","x-httpd-php3":"php3","x-httpd-php3-preprocessed":"php3p","x-httpd-php4":"php4","x-httpd-php5":"php5","x-ica":"ica","x-info":"info","x-internet-signup":["ins","isp"],"x-iphone":"iii","x-iso9660-image":"iso","x-java-jnlp-file":"jnlp","x-jmol":"jmz","x-killustrator":"kil","x-koan":["skp","skd","skt","skm"],"x-kpresenter":["kpr","kpt"],"x-kword":["kwd","kwt"],"x-latex":"latex","x-lha":"lha","x-lyx":"lyx","x-lzh":"lzh","x-lzx":"lzx","x-maker":["frm","maker","frame","fm","fb","book","fbdoc"],"x-ms-wmd":"wmd","x-ms-wmz":"wmz","x-msdos-program":["com","exe","bat","dll"],"x-msi":"msi","x-netcdf":["nc","cdf"],"x-ns-proxy-autoconfig":["pac","dat"],"x-nwc":"nwc","x-object":"o","x-oz-application":"oza","x-pkcs7-certreqresp":"p7r","x-python-code":["pyc","pyo"],"x-qgis":["qgs","shp","shx"],"x-quicktimeplayer":"qtl","x-redhat-package-manager":"rpm","x-ruby":"rb","x-sh":"sh","x-shar":"shar","x-shockwave-flash":["swf","swfl"],"x-silverlight":"scr","x-stuffit":"sit","x-sv4cpio":"sv4cpio","x-sv4crc":"sv4crc","x-tar":"tar","x-tcl":"tcl","x-tex-gf":"gf","x-tex-pk":"pk","x-texinfo":["texinfo","texi"],"x-trash":["~","%","bak","old","sik"],"x-troff":["t","tr","roff"],"x-troff-man":"man","x-troff-me":"me","x-troff-ms":"ms","x-ustar":"ustar","x-wais-source":"src","x-wingz":"wz","x-x509-ca-cert":["crt","der","cer"],"x-xcf":"xcf","x-xfig":"fig","x-xpinstall":"xpi",applixware:"aw","atomsvc+xml":"atomsvc","ccxml+xml":"ccxml","cdmi-capability":"cdmia","cdmi-container":"cdmic","cdmi-domain":"cdmid","cdmi-object":"cdmio","cdmi-queue":"cdmiq","docbook+xml":"dbk","dssc+der":"dssc","dssc+xml":"xdssc","emma+xml":"emma","epub+zip":"epub",exi:"exi","font-tdpfr":"pfr","gml+xml":"gml","gpx+xml":"gpx",gxf:"gxf",hyperstudio:"stk","inkml+xml":["ink","inkml"],ipfix:"ipfix",json:"json","jsonml+json":"jsonml","lost+xml":"lostxml","mads+xml":"mads",marc:"mrc","marcxml+xml":"mrcx","mathml+xml":"mathml",mbox:"mbox","mediaservercontrol+xml":"mscml","metalink+xml":"metalink","metalink4+xml":"meta4","mets+xml":"mets","mods+xml":"mods",mp21:["m21","mp21"],mp4:"mp4s","oebps-package+xml":"opf","omdoc+xml":"omdoc",onenote:["onetoc","onetoc2","onetmp","onepkg"],oxps:"oxps","patch-ops-error+xml":"xer","pgp-encrypted":"pgp",pkcs10:"p10","pkcs7-mime":["p7m","p7c"],"pkcs7-signature":"p7s",pkcs8:"p8","pkix-attr-cert":"ac","pkix-crl":"crl","pkix-pkipath":"pkipath",pkixcmp:"pki","pls+xml":"pls","prs.cww":"cww","pskc+xml":"pskcxml","reginfo+xml":"rif","relax-ng-compact-syntax":"rnc","resource-lists+xml":"rl","resource-lists-diff+xml":"rld","rls-services+xml":"rs","rpki-ghostbusters":"gbr","rpki-manifest":"mft","rpki-roa":"roa","rsd+xml":"rsd","sbml+xml":"sbml","scvp-cv-request":"scq","scvp-cv-response":"scs","scvp-vp-request":"spq","scvp-vp-response":"spp",sdp:"sdp","set-payment-initiation":"setpay","set-registration-initiation":"setreg","shf+xml":"shf","sparql-query":"rq","sparql-results+xml":"srx",srgs:"gram","srgs+xml":"grxml","sru+xml":"sru","ssdl+xml":"ssdl","ssml+xml":"ssml","tei+xml":["tei","teicorpus"],"thraud+xml":"tfi","timestamped-data":"tsd","vnd.3gpp.pic-bw-large":"plb","vnd.3gpp.pic-bw-small":"psb","vnd.3gpp.pic-bw-var":"pvb","vnd.3gpp2.tcap":"tcap","vnd.3m.post-it-notes":"pwn","vnd.accpac.simply.aso":"aso","vnd.accpac.simply.imp":"imp","vnd.acucobol":"acu","vnd.acucorp":["atc","acutc"],"vnd.adobe.air-application-installer-package+zip":"air","vnd.adobe.formscentral.fcdt":"fcdt","vnd.adobe.fxp":["fxp","fxpl"],"vnd.adobe.xdp+xml":"xdp","vnd.adobe.xfdf":"xfdf","vnd.ahead.space":"ahead","vnd.airzip.filesecure.azf":"azf","vnd.airzip.filesecure.azs":"azs","vnd.amazon.ebook":"azw","vnd.americandynamics.acc":"acc","vnd.amiga.ami":"ami","vnd.anser-web-certificate-issue-initiation":"cii","vnd.anser-web-funds-transfer-initiation":"fti","vnd.antix.game-component":"atx","vnd.apple.installer+xml":"mpkg","vnd.apple.mpegurl":"m3u8","vnd.aristanetworks.swi":"swi","vnd.astraea-software.iota":"iota","vnd.audiograph":"aep","vnd.blueice.multipass":"mpm","vnd.bmi":"bmi","vnd.businessobjects":"rep","vnd.chemdraw+xml":"cdxml","vnd.chipnuts.karaoke-mmd":"mmd","vnd.claymore":"cla","vnd.cloanto.rp9":"rp9","vnd.clonk.c4group":["c4g","c4d","c4f","c4p","c4u"],"vnd.cluetrust.cartomobile-config":"c11amc","vnd.cluetrust.cartomobile-config-pkg":"c11amz","vnd.commonspace":"csp","vnd.contact.cmsg":"cdbcmsg","vnd.cosmocaller":"cmc","vnd.crick.clicker":"clkx","vnd.crick.clicker.keyboard":"clkk","vnd.crick.clicker.palette":"clkp","vnd.crick.clicker.template":"clkt","vnd.crick.clicker.wordbank":"clkw","vnd.criticaltools.wbs+xml":"wbs","vnd.ctc-posml":"pml","vnd.cups-ppd":"ppd","vnd.curl.car":"car","vnd.curl.pcurl":"pcurl","vnd.dart":"dart","vnd.data-vision.rdz":"rdz","vnd.dece.data":["uvf","uvvf","uvd","uvvd"],"vnd.dece.ttml+xml":["uvt","uvvt"],"vnd.dece.unspecified":["uvx","uvvx"],"vnd.dece.zip":["uvz","uvvz"],"vnd.denovo.fcselayout-link":"fe_launch","vnd.dna":"dna","vnd.dolby.mlp":"mlp","vnd.dpgraph":"dpg","vnd.dreamfactory":"dfac","vnd.ds-keypoint":"kpxx","vnd.dvb.ait":"ait","vnd.dvb.service":"svc","vnd.dynageo":"geo","vnd.ecowin.chart":"mag","vnd.enliven":"nml","vnd.epson.esf":"esf","vnd.epson.msf":"msf","vnd.epson.quickanime":"qam","vnd.epson.salt":"slt","vnd.epson.ssf":"ssf","vnd.eszigno3+xml":["es3","et3"],"vnd.ezpix-album":"ez2","vnd.ezpix-package":"ez3","vnd.fdf":"fdf","vnd.fdsn.mseed":"mseed","vnd.fdsn.seed":["seed","dataless"],"vnd.flographit":"gph","vnd.fluxtime.clip":"ftc","vnd.framemaker":["fm","frame","maker","book"],"vnd.frogans.fnc":"fnc","vnd.frogans.ltf":"ltf","vnd.fsc.weblaunch":"fsc","vnd.fujitsu.oasys":"oas","vnd.fujitsu.oasys2":"oa2","vnd.fujitsu.oasys3":"oa3","vnd.fujitsu.oasysgp":"fg5","vnd.fujitsu.oasysprs":"bh2","vnd.fujixerox.ddd":"ddd","vnd.fujixerox.docuworks":"xdw","vnd.fujixerox.docuworks.binder":"xbd","vnd.fuzzysheet":"fzs","vnd.genomatix.tuxedo":"txd","vnd.geogebra.file":"ggb","vnd.geogebra.tool":"ggt","vnd.geometry-explorer":["gex","gre"],"vnd.geonext":"gxt","vnd.geoplan":"g2w","vnd.geospace":"g3w","vnd.gmx":"gmx","vnd.grafeq":["gqf","gqs"],"vnd.groove-account":"gac","vnd.groove-help":"ghf","vnd.groove-identity-message":"gim","vnd.groove-injector":"grv","vnd.groove-tool-message":"gtm","vnd.groove-tool-template":"tpl","vnd.groove-vcard":"vcg","vnd.hal+xml":"hal","vnd.handheld-entertainment+xml":"zmm","vnd.hbci":"hbci","vnd.hhe.lesson-player":"les","vnd.hp-hpgl":"hpgl","vnd.hp-hpid":"hpid","vnd.hp-hps":"hps","vnd.hp-jlyt":"jlt","vnd.hp-pcl":"pcl","vnd.hp-pclxl":"pclxl","vnd.hydrostatix.sof-data":"sfd-hdstx","vnd.ibm.minipay":"mpy","vnd.ibm.modcap":["afp","listafp","list3820"],"vnd.ibm.rights-management":"irm","vnd.ibm.secure-container":"sc","vnd.iccprofile":["icc","icm"],"vnd.igloader":"igl","vnd.immervision-ivp":"ivp","vnd.immervision-ivu":"ivu","vnd.insors.igm":"igm","vnd.intercon.formnet":["xpw","xpx"],"vnd.intergeo":"i2g","vnd.intu.qbo":"qbo","vnd.intu.qfx":"qfx","vnd.ipunplugged.rcprofile":"rcprofile","vnd.irepository.package+xml":"irp","vnd.is-xpr":"xpr","vnd.isac.fcs":"fcs","vnd.jam":"jam","vnd.jcp.javame.midlet-rms":"rms","vnd.jisp":"jisp","vnd.joost.joda-archive":"joda","vnd.kahootz":["ktz","ktr"],"vnd.kde.karbon":"karbon","vnd.kde.kchart":"chrt","vnd.kde.kformula":"kfo","vnd.kde.kivio":"flw","vnd.kde.kontour":"kon","vnd.kde.kpresenter":["kpr","kpt"],"vnd.kde.kspread":"ksp","vnd.kde.kword":["kwd","kwt"],"vnd.kenameaapp":"htke","vnd.kidspiration":"kia","vnd.kinar":["kne","knp"],"vnd.koan":["skp","skd","skt","skm"],"vnd.kodak-descriptor":"sse","vnd.las.las+xml":"lasxml","vnd.llamagraphics.life-balance.desktop":"lbd","vnd.llamagraphics.life-balance.exchange+xml":"lbe","vnd.lotus-1-2-3":"123","vnd.lotus-approach":"apr","vnd.lotus-freelance":"pre","vnd.lotus-notes":"nsf","vnd.lotus-organizer":"org","vnd.lotus-screencam":"scm","vnd.lotus-wordpro":"lwp","vnd.macports.portpkg":"portpkg","vnd.mcd":"mcd","vnd.medcalcdata":"mc1","vnd.mediastation.cdkey":"cdkey","vnd.mfer":"mwf","vnd.mfmp":"mfm","vnd.micrografx.flo":"flo","vnd.micrografx.igx":"igx","vnd.mif":"mif","vnd.mobius.daf":"daf","vnd.mobius.dis":"dis","vnd.mobius.mbk":"mbk","vnd.mobius.mqy":"mqy","vnd.mobius.msl":"msl","vnd.mobius.plc":"plc","vnd.mobius.txf":"txf","vnd.mophun.application":"mpn","vnd.mophun.certificate":"mpc","vnd.ms-artgalry":"cil","vnd.ms-cab-compressed":"cab","vnd.ms-excel.addin.macroenabled.12":"xlam","vnd.ms-excel.sheet.binary.macroenabled.12":"xlsb","vnd.ms-excel.sheet.macroenabled.12":"xlsm","vnd.ms-excel.template.macroenabled.12":"xltm","vnd.ms-fontobject":"eot","vnd.ms-htmlhelp":"chm","vnd.ms-ims":"ims","vnd.ms-lrm":"lrm","vnd.ms-officetheme":"thmx","vnd.ms-powerpoint.addin.macroenabled.12":"ppam","vnd.ms-powerpoint.presentation.macroenabled.12":"pptm","vnd.ms-powerpoint.slide.macroenabled.12":"sldm","vnd.ms-powerpoint.slideshow.macroenabled.12":"ppsm","vnd.ms-powerpoint.template.macroenabled.12":"potm","vnd.ms-project":["mpp","mpt"],"vnd.ms-word.document.macroenabled.12":"docm","vnd.ms-word.template.macroenabled.12":"dotm","vnd.ms-works":["wps","wks","wcm","wdb"],"vnd.ms-wpl":"wpl","vnd.ms-xpsdocument":"xps","vnd.mseq":"mseq","vnd.musician":"mus","vnd.muvee.style":"msty","vnd.mynfc":"taglet","vnd.neurolanguage.nlu":"nlu","vnd.nitf":["ntf","nitf"],"vnd.noblenet-directory":"nnd","vnd.noblenet-sealer":"nns","vnd.noblenet-web":"nnw","vnd.nokia.n-gage.data":"ngdat","vnd.nokia.n-gage.symbian.install":"n-gage","vnd.nokia.radio-preset":"rpst","vnd.nokia.radio-presets":"rpss","vnd.novadigm.edm":"edm","vnd.novadigm.edx":"edx","vnd.novadigm.ext":"ext","vnd.oasis.opendocument.chart-template":"otc","vnd.oasis.opendocument.formula-template":"odft","vnd.oasis.opendocument.image-template":"oti","vnd.olpc-sugar":"xo","vnd.oma.dd2+xml":"dd2","vnd.openofficeorg.extension":"oxt","vnd.openxmlformats-officedocument.presentationml.slide":"sldx","vnd.osgeo.mapguide.package":"mgp","vnd.osgi.dp":"dp","vnd.osgi.subsystem":"esa","vnd.palm":["pdb","pqa","oprc"],"vnd.pawaafile":"paw","vnd.pg.format":"str","vnd.pg.osasli":"ei6","vnd.picsel":"efif","vnd.pmi.widget":"wg","vnd.pocketlearn":"plf","vnd.powerbuilder6":"pbd","vnd.previewsystems.box":"box","vnd.proteus.magazine":"mgz","vnd.publishare-delta-tree":"qps","vnd.pvi.ptid1":"ptid","vnd.quark.quarkxpress":["qxd","qxt","qwd","qwt","qxl","qxb"],"vnd.realvnc.bed":"bed","vnd.recordare.musicxml":"mxl","vnd.recordare.musicxml+xml":"musicxml","vnd.rig.cryptonote":"cryptonote","vnd.rn-realmedia":"rm","vnd.rn-realmedia-vbr":"rmvb","vnd.route66.link66+xml":"link66","vnd.sailingtracker.track":"st","vnd.seemail":"see","vnd.sema":"sema","vnd.semd":"semd","vnd.semf":"semf","vnd.shana.informed.formdata":"ifm","vnd.shana.informed.formtemplate":"itp","vnd.shana.informed.interchange":"iif","vnd.shana.informed.package":"ipk","vnd.simtech-mindmapper":["twd","twds"],"vnd.smart.teacher":"teacher","vnd.solent.sdkm+xml":["sdkm","sdkd"],"vnd.spotfire.dxp":"dxp","vnd.spotfire.sfs":"sfs","vnd.stepmania.package":"smzip","vnd.stepmania.stepchart":"sm","vnd.sus-calendar":["sus","susp"],"vnd.svd":"svd","vnd.syncml+xml":"xsm","vnd.syncml.dm+wbxml":"bdm","vnd.syncml.dm+xml":"xdm","vnd.tao.intent-module-archive":"tao","vnd.tcpdump.pcap":["pcap","cap","dmp"],"vnd.tmobile-livetv":"tmo","vnd.trid.tpt":"tpt","vnd.triscape.mxs":"mxs","vnd.trueapp":"tra","vnd.ufdl":["ufd","ufdl"],"vnd.uiq.theme":"utz","vnd.umajin":"umj","vnd.unity":"unityweb","vnd.uoml+xml":"uoml","vnd.vcx":"vcx","vnd.visionary":"vis","vnd.vsf":"vsf","vnd.webturbo":"wtb","vnd.wolfram.player":"nbp","vnd.wqd":"wqd","vnd.wt.stf":"stf","vnd.xara":"xar","vnd.xfdl":"xfdl","vnd.yamaha.hv-dic":"hvd","vnd.yamaha.hv-script":"hvs","vnd.yamaha.hv-voice":"hvp","vnd.yamaha.openscoreformat":"osf","vnd.yamaha.openscoreformat.osfpvg+xml":"osfpvg","vnd.yamaha.smaf-audio":"saf","vnd.yamaha.smaf-phrase":"spf","vnd.yellowriver-custom-menu":"cmp","vnd.zul":["zir","zirz"],"vnd.zzazz.deck+xml":"zaz","voicexml+xml":"vxml",widget:"wgt",winhlp:"hlp","wsdl+xml":"wsdl","wspolicy+xml":"wspolicy","x-ace-compressed":"ace","x-authorware-bin":["aab","x32","u32","vox"],"x-authorware-map":"aam","x-authorware-seg":"aas","x-blorb":["blb","blorb"],"x-bzip":"bz","x-bzip2":["bz2","boz"],"x-cfs-compressed":"cfs","x-chat":"chat","x-conference":"nsc","x-dgc-compressed":"dgc","x-dtbncx+xml":"ncx","x-dtbook+xml":"dtb","x-dtbresource+xml":"res","x-eva":"eva","x-font-bdf":"bdf","x-font-ghostscript":"gsf","x-font-linux-psf":"psf","x-font-otf":"otf","x-font-pcf":"pcf","x-font-snf":"snf","x-font-ttf":["ttf","ttc"],"x-font-type1":["pfa","pfb","pfm","afm"],"x-font-woff":"woff","x-freearc":"arc","x-gca-compressed":"gca","x-glulx":"ulx","x-gramps-xml":"gramps","x-install-instructions":"install","x-lzh-compressed":["lzh","lha"],"x-mie":"mie","x-mobipocket-ebook":["prc","mobi"],"x-ms-application":"application","x-ms-shortcut":"lnk","x-ms-xbap":"xbap","x-msbinder":"obd","x-mscardfile":"crd","x-msclip":"clp","x-msdownload":["exe","dll","com","bat","msi"],"x-msmediaview":["mvb","m13","m14"],"x-msmetafile":["wmf","wmz","emf","emz"],"x-msmoney":"mny","x-mspublisher":"pub","x-msschedule":"scd","x-msterminal":"trm","x-mswrite":"wri","x-nzb":"nzb","x-pkcs12":["p12","pfx"],"x-pkcs7-certificates":["p7b","spc"],"x-research-info-systems":"ris","x-silverlight-app":"xap","x-sql":"sql","x-stuffitx":"sitx","x-subrip":"srt","x-t3vm-image":"t3","x-tads":"gam","x-tex":"tex","x-tex-tfm":"tfm","x-tgif":"obj","x-xliff+xml":"xlf","x-xz":"xz","x-zmachine":["z1","z2","z3","z4","z5","z6","z7","z8"],"xaml+xml":"xaml","xcap-diff+xml":"xdf","xenc+xml":"xenc","xml-dtd":"dtd","xop+xml":"xop","xproc+xml":"xpl","xslt+xml":"xslt","xv+xml":["mxml","xhvml","xvml","xvm"],yang:"yang","yin+xml":"yin",envoy:"evy",fractals:"fif","internet-property-stream":"acx",olescript:"axs","vnd.ms-outlook":"msg","vnd.ms-pkicertstore":"sst","x-compress":"z","x-compressed":"tgz","x-gzip":"gz","x-perfmon":["pma","pmc","pml","pmr","pmw"],"x-pkcs7-mime":["p7c","p7m"],"ynd.ms-pkipko":"pko"},audio:{amr:"amr","amr-wb":"awb",annodex:"axa",basic:["au","snd"],flac:"flac",midi:["mid","midi","kar","rmi"],mpeg:["mpga","mpega","mp2","mp3","m4a","mp2a","m2a","m3a"],mpegurl:"m3u",ogg:["oga","ogg","spx"],"prs.sid":"sid","x-aiff":["aif","aiff","aifc"],"x-gsm":"gsm","x-ms-wma":"wma","x-ms-wax":"wax","x-pn-realaudio":"ram","x-realaudio":"ra","x-sd2":"sd2","x-wav":"wav",adpcm:"adp",mp4:"mp4a",s3m:"s3m",silk:"sil","vnd.dece.audio":["uva","uvva"],"vnd.digital-winds":"eol","vnd.dra":"dra","vnd.dts":"dts","vnd.dts.hd":"dtshd","vnd.lucent.voice":"lvp","vnd.ms-playready.media.pya":"pya","vnd.nuera.ecelp4800":"ecelp4800","vnd.nuera.ecelp7470":"ecelp7470","vnd.nuera.ecelp9600":"ecelp9600","vnd.rip":"rip",webm:"weba","x-aac":"aac","x-caf":"caf","x-matroska":"mka","x-pn-realaudio-plugin":"rmp",xm:"xm",mid:["mid","rmi"]},chemical:{"x-alchemy":"alc","x-cache":["cac","cache"],"x-cache-csf":"csf","x-cactvs-binary":["cbin","cascii","ctab"],"x-cdx":"cdx","x-chem3d":"c3d","x-cif":"cif","x-cmdf":"cmdf","x-cml":"cml","x-compass":"cpa","x-crossfire":"bsd","x-csml":["csml","csm"],"x-ctx":"ctx","x-cxf":["cxf","cef"],"x-embl-dl-nucleotide":["emb","embl"],"x-gamess-input":["inp","gam","gamin"],"x-gaussian-checkpoint":["fch","fchk"],"x-gaussian-cube":"cub","x-gaussian-input":["gau","gjc","gjf"],"x-gaussian-log":"gal","x-gcg8-sequence":"gcg","x-genbank":"gen","x-hin":"hin","x-isostar":["istr","ist"],"x-jcamp-dx":["jdx","dx"],"x-kinemage":"kin","x-macmolecule":"mcm","x-macromodel-input":["mmd","mmod"],"x-mdl-molfile":"mol","x-mdl-rdfile":"rd","x-mdl-rxnfile":"rxn","x-mdl-sdfile":["sd","sdf"],"x-mdl-tgf":"tgf","x-mmcif":"mcif","x-mol2":"mol2","x-molconn-Z":"b","x-mopac-graph":"gpt","x-mopac-input":["mop","mopcrt","mpc","zmt"],"x-mopac-out":"moo","x-ncbi-asn1":"asn","x-ncbi-asn1-ascii":["prt","ent"],"x-ncbi-asn1-binary":["val","aso"],"x-pdb":["pdb","ent"],"x-rosdal":"ros","x-swissprot":"sw","x-vamas-iso14976":"vms","x-vmd":"vmd","x-xtel":"xtel","x-xyz":"xyz"},image:{gif:"gif",ief:"ief",jpeg:["jpeg","jpg","jpe"],pcx:"pcx",png:"png","svg+xml":["svg","svgz"],tiff:["tiff","tif"],"vnd.djvu":["djvu","djv"],"vnd.wap.wbmp":"wbmp","x-canon-cr2":"cr2","x-canon-crw":"crw","x-cmu-raster":"ras","x-coreldraw":"cdr","x-coreldrawpattern":"pat","x-coreldrawtemplate":"cdt","x-corelphotopaint":"cpt","x-epson-erf":"erf","x-icon":"ico","x-jg":"art","x-jng":"jng","x-nikon-nef":"nef","x-olympus-orf":"orf","x-photoshop":"psd","x-portable-anymap":"pnm","x-portable-bitmap":"pbm","x-portable-graymap":"pgm","x-portable-pixmap":"ppm","x-rgb":"rgb","x-xbitmap":"xbm","x-xpixmap":"xpm","x-xwindowdump":"xwd",bmp:"bmp",cgm:"cgm",g3fax:"g3",ktx:"ktx","prs.btif":"btif",sgi:"sgi","vnd.dece.graphic":["uvi","uvvi","uvg","uvvg"],"vnd.dwg":"dwg","vnd.dxf":"dxf","vnd.fastbidsheet":"fbs","vnd.fpx":"fpx","vnd.fst":"fst","vnd.fujixerox.edmics-mmr":"mmr","vnd.fujixerox.edmics-rlc":"rlc","vnd.ms-modi":"mdi","vnd.ms-photo":"wdp","vnd.net-fpx":"npx","vnd.xiff":"xif",webp:"webp","x-3ds":"3ds","x-cmx":"cmx","x-freehand":["fh","fhc","fh4","fh5","fh7"],"x-pict":["pic","pct"],"x-tga":"tga","cis-cod":"cod",pipeg:"jfif"},message:{rfc822:["eml","mime","mht","mhtml","nws"]},model:{iges:["igs","iges"],mesh:["msh","mesh","silo"],vrml:["wrl","vrml"],"x3d+vrml":["x3dv","x3dvz"],"x3d+xml":["x3d","x3dz"],"x3d+binary":["x3db","x3dbz"],"vnd.collada+xml":"dae","vnd.dwf":"dwf","vnd.gdl":"gdl","vnd.gtw":"gtw","vnd.mts":"mts","vnd.vtu":"vtu"},text:{"cache-manifest":["manifest","appcache"],calendar:["ics","icz","ifb"],css:"css",csv:"csv",h323:"323",html:["html","htm","shtml","stm"],iuls:"uls",mathml:"mml",plain:["txt","text","brf","conf","def","list","log","in","bas"],richtext:"rtx",scriptlet:["sct","wsc"],texmacs:["tm","ts"],"tab-separated-values":"tsv","vnd.sun.j2me.app-descriptor":"jad","vnd.wap.wml":"wml","vnd.wap.wmlscript":"wmls","x-bibtex":"bib","x-boo":"boo","x-c++hdr":["h++","hpp","hxx","hh"],"x-c++src":["c++","cpp","cxx","cc"],"x-component":"htc","x-dsrc":"d","x-diff":["diff","patch"],"x-haskell":"hs","x-java":"java","x-literate-haskell":"lhs","x-moc":"moc","x-pascal":["p","pas"],"x-pcs-gcd":"gcd","x-perl":["pl","pm"],"x-python":"py","x-scala":"scala","x-setext":"etx","x-tcl":["tcl","tk"],"x-tex":["tex","ltx","sty","cls"],"x-vcalendar":"vcs","x-vcard":"vcf",n3:"n3","prs.lines.tag":"dsc",sgml:["sgml","sgm"],troff:["t","tr","roff","man","me","ms"],turtle:"ttl","uri-list":["uri","uris","urls"],vcard:"vcard","vnd.curl":"curl","vnd.curl.dcurl":"dcurl","vnd.curl.scurl":"scurl","vnd.curl.mcurl":"mcurl","vnd.dvb.subtitle":"sub","vnd.fly":"fly","vnd.fmi.flexstor":"flx","vnd.graphviz":"gv","vnd.in3d.3dml":"3dml","vnd.in3d.spot":"spot","x-asm":["s","asm"],"x-c":["c","cc","cxx","cpp","h","hh","dic"],"x-fortran":["f","for","f77","f90"],"x-opml":"opml","x-nfo":"nfo","x-sfv":"sfv","x-uuencode":"uu",webviewhtml:"htt"},video:{avif:".avif","3gpp":"3gp",annodex:"axv",dl:"dl",dv:["dif","dv"],fli:"fli",gl:"gl",mpeg:["mpeg","mpg","mpe","m1v","m2v","mp2","mpa","mpv2"],mp4:["mp4","mp4v","mpg4"],quicktime:["qt","mov"],ogg:"ogv","vnd.mpegurl":["mxu","m4u"],"x-flv":"flv","x-la-asf":["lsf","lsx"],"x-mng":"mng","x-ms-asf":["asf","asx","asr"],"x-ms-wm":"wm","x-ms-wmv":"wmv","x-ms-wmx":"wmx","x-ms-wvx":"wvx","x-msvideo":"avi","x-sgi-movie":"movie","x-matroska":["mpv","mkv","mk3d","mks"],"3gpp2":"3g2",h261:"h261",h263:"h263",h264:"h264",jpeg:"jpgv",jpm:["jpm","jpgm"],mj2:["mj2","mjp2"],"vnd.dece.hd":["uvh","uvvh"],"vnd.dece.mobile":["uvm","uvvm"],"vnd.dece.pd":["uvp","uvvp"],"vnd.dece.sd":["uvs","uvvs"],"vnd.dece.video":["uvv","uvvv"],"vnd.dvb.file":"dvb","vnd.fvt":"fvt","vnd.ms-playready.media.pyv":"pyv","vnd.uvvu.mp4":["uvu","uvvu"],"vnd.vivo":"viv",webm:"webm","x-f4v":"f4v","x-m4v":"m4v","x-ms-vob":"vob","x-smv":"smv"},"x-conference":{"x-cooltalk":"ice"},"x-world":{"x-vrml":["vrm","vrml","wrl","flr","wrz","xaf","xof"]}};(()=>{const e={};for(const t in Br)if(Br.hasOwnProperty(t))for(const n in Br[t])if(Br[t].hasOwnProperty(n)){const r=Br[t][n];if("string"==typeof r)e[r]=t+"/"+n;else for(let i=0;i<r.length;i++)e[r[i]]=t+"/"+n}})();const jr=[];for(let e=0;e<256;e++){let t=e;for(let e=0;e<8;e++)1&t?t=t>>>1^3988292384:t>>>=1;jr[e]=t}class Ur{constructor(e){this.crc=e||-1}append(e){let t=0|this.crc;for(let n=0,r=0|e.length;n<r;n++)t=t>>>8^jr[255&(t^e[n])];this.crc=t}get(){return~this.crc}}class Mr extends TransformStream{constructor(){const e=new Ur;super({transform(t){e.append(t)},flush(t){const n=new Uint8Array(4);new DataView(n.buffer).setUint32(0,e.get()),t.enqueue(n)}})}}function Wr(e){if("undefined"==typeof TextEncoder){e=unescape(encodeURIComponent(e));const t=new Uint8Array(e.length);for(let n=0;n<t.length;n++)t[n]=e.charCodeAt(n);return t}return(new TextEncoder).encode(e)}const Hr={concat(e,t){if(0===e.length||0===t.length)return e.concat(t);const n=e[e.length-1],r=Hr.getPartial(n);return 32===r?e.concat(t):Hr._shiftRight(t,r,0|n,e.slice(0,e.length-1))},bitLength(e){const t=e.length;if(0===t)return 0;const n=e[t-1];return 32*(t-1)+Hr.getPartial(n)},clamp(e,t){if(32*e.length<t)return e;const n=(e=e.slice(0,Math.ceil(t/32))).length;return t&=31,n>0&&t&&(e[n-1]=Hr.partial(t,e[n-1]&2147483648>>t-1,1)),e},partial:(e,t,n)=>32===e?t:(n?0|t:t<<32-e)+1099511627776*e,getPartial:e=>Math.round(e/1099511627776)||32,_shiftRight(e,t,n,r){for(void 0===r&&(r=[]);t>=32;t-=32)r.push(n),n=0;if(0===t)return r.concat(e);for(let i=0;i<e.length;i++)r.push(n|e[i]>>>t),n=e[i]<<32-t;const i=e.length?e[e.length-1]:0,o=Hr.getPartial(i);return r.push(Hr.partial(t+o&31,t+o>32?n:r.pop(),1)),r}},Kr={bytes:{fromBits(e){const t=Hr.bitLength(e)/8,n=new Uint8Array(t);let r;for(let i=0;i<t;i++)0==(3&i)&&(r=e[i/4]),n[i]=r>>>24,r<<=8;return n},toBits(e){const t=[];let n,r=0;for(n=0;n<e.length;n++)r=r<<8|e[n],3==(3&n)&&(t.push(r),r=0);return 3&n&&t.push(Hr.partial(8*(3&n),r)),t}}},qr=class{constructor(e){const t=this;t.blockSize=512,t._init=[1732584193,4023233417,2562383102,271733878,3285377520],t._key=[1518500249,1859775393,2400959708,3395469782],e?(t._h=e._h.slice(0),t._buffer=e._buffer.slice(0),t._length=e._length):t.reset()}reset(){const e=this;return e._h=e._init.slice(0),e._buffer=[],e._length=0,e}update(e){const t=this;"string"==typeof e&&(e=Kr.utf8String.toBits(e));const n=t._buffer=Hr.concat(t._buffer,e),r=t._length,i=t._length=r+Hr.bitLength(e);if(i>9007199254740991)throw new Error("Cannot hash more than 2^53 - 1 bits");const o=new Uint32Array(n);let a=0;for(let e=t.blockSize+r-(t.blockSize+r&t.blockSize-1);e<=i;e+=t.blockSize)t._block(o.subarray(16*a,16*(a+1))),a+=1;return n.splice(0,16*a),t}finalize(){const e=this;let t=e._buffer;const n=e._h;t=Hr.concat(t,[Hr.partial(1,1)]);for(let e=t.length+2;15&e;e++)t.push(0);for(t.push(Math.floor(e._length/4294967296)),t.push(0|e._length);t.length;)e._block(t.splice(0,16));return e.reset(),n}_f(e,t,n,r){return e<=19?t&n|~t&r:e<=39?t^n^r:e<=59?t&n|t&r|n&r:e<=79?t^n^r:void 0}_S(e,t){return t<<e|t>>>32-e}_block(e){const t=this,n=t._h,r=Array(80);for(let t=0;t<16;t++)r[t]=e[t];let i=n[0],o=n[1],a=n[2],l=n[3],s=n[4];for(let e=0;e<=79;e++){e>=16&&(r[e]=t._S(1,r[e-3]^r[e-8]^r[e-14]^r[e-16]));const n=t._S(5,i)+t._f(e,o,a,l)+s+r[e]+t._key[Math.floor(e/20)]|0;s=l,l=a,a=t._S(30,o),o=i,i=n}n[0]=n[0]+i|0,n[1]=n[1]+o|0,n[2]=n[2]+a|0,n[3]=n[3]+l|0,n[4]=n[4]+s|0}},Yr=class{constructor(e){const t=this;t._tables=[[[],[],[],[],[]],[[],[],[],[],[]]],t._tables[0][0][0]||t._precompute();const n=t._tables[0][4],r=t._tables[1],i=e.length;let o,a,l,s=1;if(4!==i&&6!==i&&8!==i)throw new Error("invalid aes key size");for(t._key=[a=e.slice(0),l=[]],o=i;o<4*i+28;o++){let e=a[o-1];(o%i==0||8===i&&o%i==4)&&(e=n[e>>>24]<<24^n[e>>16&255]<<16^n[e>>8&255]<<8^n[255&e],o%i==0&&(e=e<<8^e>>>24^s<<24,s=s<<1^283*(s>>7))),a[o]=a[o-i]^e}for(let e=0;o;e++,o--){const t=a[3&e?o:o-4];l[e]=o<=4||e<4?t:r[0][n[t>>>24]]^r[1][n[t>>16&255]]^r[2][n[t>>8&255]]^r[3][n[255&t]]}}encrypt(e){return this._crypt(e,0)}decrypt(e){return this._crypt(e,1)}_precompute(){const e=this._tables[0],t=this._tables[1],n=e[4],r=t[4],i=[],o=[];let a,l,s,u;for(let e=0;e<256;e++)o[(i[e]=e<<1^283*(e>>7))^e]=e;for(let c=a=0;!n[c];c^=l||1,a=o[a]||1){let o=a^a<<1^a<<2^a<<3^a<<4;o=o>>8^255&o^99,n[c]=o,r[o]=c,u=i[s=i[l=i[c]]];let d=16843009*u^65537*s^257*l^16843008*c,f=257*i[o]^16843008*o;for(let n=0;n<4;n++)e[n][c]=f=f<<24^f>>>8,t[n][o]=d=d<<24^d>>>8}for(let n=0;n<5;n++)e[n]=e[n].slice(0),t[n]=t[n].slice(0)}_crypt(e,t){if(4!==e.length)throw new Error("invalid aes block size");const n=this._key[t],r=n.length/4-2,i=[0,0,0,0],o=this._tables[t],a=o[0],l=o[1],s=o[2],u=o[3],c=o[4];let d,f,p,h=e[0]^n[0],m=e[t?3:1]^n[1],g=e[2]^n[2],v=e[t?1:3]^n[3],y=4;for(let e=0;e<r;e++)d=a[h>>>24]^l[m>>16&255]^s[g>>8&255]^u[255&v]^n[y],f=a[m>>>24]^l[g>>16&255]^s[v>>8&255]^u[255&h]^n[y+1],p=a[g>>>24]^l[v>>16&255]^s[h>>8&255]^u[255&m]^n[y+2],v=a[v>>>24]^l[h>>16&255]^s[m>>8&255]^u[255&g]^n[y+3],y+=4,h=d,m=f,g=p;for(let e=0;e<4;e++)i[t?3&-e:e]=c[h>>>24]<<24^c[m>>16&255]<<16^c[g>>8&255]<<8^c[255&v]^n[y++],d=h,h=m,m=g,g=v,v=d;return i}},Gr={getRandomValues(e){const t=new Uint32Array(e.buffer),n=e=>{let t=987654321;const n=4294967295;return function(){return t=36969*(65535&t)+(t>>16)&n,(((t<<16)+(e=18e3*(65535&e)+(e>>16)&n)&n)/4294967296+.5)*(Math.random()>.5?1:-1)}};for(let r,i=0;i<e.length;i+=4){const e=n(4294967296*(r||Math.random()));r=987654071*e(),t[i/4]=4294967296*e()|0}return e}},Vr=class{constructor(e,t){this._prf=e,this._initIv=t,this._iv=t}reset(){this._iv=this._initIv}update(e){return this.calculate(this._prf,e,this._iv)}incWord(e){if(255==(e>>24&255)){let t=e>>16&255,n=e>>8&255,r=255&e;255===t?(t=0,255===n?(n=0,255===r?r=0:++r):++n):++t,e=0,e+=t<<16,e+=n<<8,e+=r}else e+=1<<24;return e}incCounter(e){0===(e[0]=this.incWord(e[0]))&&(e[1]=this.incWord(e[1]))}calculate(e,t,n){let r;if(!(r=t.length))return[];const i=Hr.bitLength(t);for(let i=0;i<r;i+=4){this.incCounter(n);const r=e.encrypt(n);t[i]^=r[0],t[i+1]^=r[1],t[i+2]^=r[2],t[i+3]^=r[3]}return Hr.clamp(t,i)}},Zr={importKey:e=>new Zr.hmacSha1(Kr.bytes.toBits(e)),pbkdf2(e,t,n,r){if(n=n||1e4,r<0||n<0)throw new Error("invalid params to pbkdf2");const i=1+(r>>5)<<2;let o,a,l,s,u;const c=new ArrayBuffer(i),d=new DataView(c);let f=0;const p=Hr;for(t=Kr.bytes.toBits(t),u=1;f<(i||1);u++){for(o=a=e.encrypt(p.concat(t,[u])),l=1;l<n;l++)for(a=e.encrypt(a),s=0;s<a.length;s++)o[s]^=a[s];for(l=0;f<(i||1)&&l<o.length;l++)d.setInt32(f,o[l]),f+=4}return c.slice(0,r/8)},hmacSha1:class{constructor(e){const t=this,n=t._hash=qr,r=[[],[]];t._baseHash=[new n,new n];const i=t._baseHash[0].blockSize/32;e.length>i&&(e=(new n).update(e).finalize());for(let t=0;t<i;t++)r[0][t]=909522486^e[t],r[1][t]=1549556828^e[t];t._baseHash[0].update(r[0]),t._baseHash[1].update(r[1]),t._resultHash=new n(t._baseHash[0])}reset(){const e=this;e._resultHash=new e._hash(e._baseHash[0]),e._updated=!1}update(e){this._updated=!0,this._resultHash.update(e)}digest(){const e=this,t=e._resultHash.finalize(),n=new e._hash(e._baseHash[1]).update(t).finalize();return e.reset(),n}encrypt(e){if(this._updated)throw new Error("encrypt on already updated hmac called!");return this.update(e),this.digest(e)}}},$r="undefined"!=typeof crypto&&"function"==typeof crypto.getRandomValues,Xr="Invalid password",Qr="Invalid signature",Jr="zipjs-abort-check-password";function ei(e){return $r?crypto.getRandomValues(e):Gr.getRandomValues(e)}const ti=16,ni={name:"PBKDF2"},ri=Object.assign({hash:{name:"HMAC"}},ni),ii=Object.assign({iterations:1e3,hash:{name:"SHA-1"}},ni),oi=["deriveBits"],ai=[8,12,16],li=[16,24,32],si=10,ui=[0,0,0,0],ci="undefined",di="function",fi=typeof crypto!=ci,pi=fi&&crypto.subtle,hi=fi&&typeof pi!=ci,mi=Kr.bytes,gi=Yr,vi=Vr,yi=Zr.hmacSha1;let bi=fi&&hi&&typeof pi.importKey==di,wi=fi&&hi&&typeof pi.deriveBits==di;class xi extends TransformStream{constructor({password:e,signed:t,encryptionStrength:n,checkPasswordOnly:r}){super({start(){Object.assign(this,{ready:new Promise((e=>this.resolveReady=e)),password:e,signed:t,strength:n-1,pending:new Uint8Array})},async transform(e,t){const n=this,{password:i,strength:o,resolveReady:a,ready:l}=n;i?(await async function(e,t,n,r){const i=await Ei(e,t,n,Ti(r,0,ai[t])),o=Ti(r,ai[t]);if(i[0]!=o[0]||i[1]!=o[1])throw new Error(Xr)}(n,o,i,Ti(e,0,ai[o]+2)),e=Ti(e,ai[o]+2),r?t.error(new Error(Jr)):a()):await l;const s=new Uint8Array(e.length-si-(e.length-si)%ti);t.enqueue(ki(n,e,s,0,si,!0))},async flush(e){const{signed:t,ctr:n,hmac:r,pending:i,ready:o}=this;await o;const a=Ti(i,0,i.length-si),l=Ti(i,i.length-si);let s=new Uint8Array;if(a.length){const e=Oi(mi,a);r.update(e);const t=n.update(e);s=Li(mi,t)}if(t){const e=Ti(Li(mi,r.digest()),0,si);for(let t=0;t<si;t++)if(e[t]!=l[t])throw new Error(Qr)}e.enqueue(s)}})}}class _i extends TransformStream{constructor({password:e,encryptionStrength:t}){let n;super({start(){Object.assign(this,{ready:new Promise((e=>this.resolveReady=e)),password:e,strength:t-1,pending:new Uint8Array})},async transform(e,t){const n=this,{password:r,strength:i,resolveReady:o,ready:a}=n;let l=new Uint8Array;r?(l=await async function(e,t,n){const r=ei(new Uint8Array(ai[t]));return Si(r,await Ei(e,t,n,r))}(n,i,r),o()):await a;const s=new Uint8Array(l.length+e.length-e.length%ti);s.set(l,0),t.enqueue(ki(n,e,s,l.length,0))},async flush(e){const{ctr:t,hmac:r,pending:i,ready:o}=this;await o;let a=new Uint8Array;if(i.length){const e=t.update(Oi(mi,i));r.update(e),a=Li(mi,e)}n.signature=Li(mi,r.digest()).slice(0,si),e.enqueue(Si(a,n.signature))}}),n=this}}function ki(e,t,n,r,i,o){const{ctr:a,hmac:l,pending:s}=e,u=t.length-i;let c;for(s.length&&(t=Si(s,t),n=function(e,t){if(t&&t>e.length){const n=e;(e=new Uint8Array(t)).set(n,0)}return e}(n,u-u%ti)),c=0;c<=u-ti;c+=ti){const e=Oi(mi,Ti(t,c,c+ti));o&&l.update(e);const i=a.update(e);o||l.update(i),n.set(Li(mi,i),c+r)}return e.pending=Ti(t,c),n}async function Ei(e,t,n,r){e.password=null;const i=Wr(n),o=await async function(e,t,n,r,i){if(!bi)return Zr.importKey(t);try{return await pi.importKey(e,t,n,!1,i)}catch(e){return bi=!1,Zr.importKey(t)}}("raw",i,ri,0,oi),a=await async function(e,t,n){if(!wi)return Zr.pbkdf2(t,e.salt,ii.iterations,n);try{return await pi.deriveBits(e,t,n)}catch(r){return wi=!1,Zr.pbkdf2(t,e.salt,ii.iterations,n)}}(Object.assign({salt:r},ii),o,8*(2*li[t]+2)),l=new Uint8Array(a),s=Oi(mi,Ti(l,0,li[t])),u=Oi(mi,Ti(l,li[t],2*li[t])),c=Ti(l,2*li[t]);return Object.assign(e,{keys:{key:s,authentication:u,passwordVerification:c},ctr:new vi(new gi(s),Array.from(ui)),hmac:new yi(u)}),c}function Si(e,t){let n=e;return e.length+t.length&&(n=new Uint8Array(e.length+t.length),n.set(e,0),n.set(t,e.length)),n}function Ti(e,t,n){return e.subarray(t,n)}function Li(e,t){return e.fromBits(t)}function Oi(e,t){return e.toBits(t)}class Ai extends TransformStream{constructor({password:e,passwordVerification:t,checkPasswordOnly:n}){super({start(){Object.assign(this,{password:e,passwordVerification:t}),Di(this,e)},transform(e,t){const r=this;if(r.password){const t=Ni(r,e.subarray(0,12));if(r.password=null,t[11]!=r.passwordVerification)throw new Error(Xr);e=e.subarray(12)}n?t.error(new Error(Jr)):t.enqueue(Ni(r,e))}})}}class Ci extends TransformStream{constructor({password:e,passwordVerification:t}){super({start(){Object.assign(this,{password:e,passwordVerification:t}),Di(this,e)},transform(e,t){const n=this;let r,i;if(n.password){n.password=null;const t=ei(new Uint8Array(12));t[11]=n.passwordVerification,r=new Uint8Array(e.length+t.length),r.set(Pi(n,t),0),i=12}else r=new Uint8Array(e.length),i=0;r.set(Pi(n,e),i),t.enqueue(r)}})}}function Ni(e,t){const n=new Uint8Array(t.length);for(let r=0;r<t.length;r++)n[r]=zi(e)^t[r],Ii(e,n[r]);return n}function Pi(e,t){const n=new Uint8Array(t.length);for(let r=0;r<t.length;r++)n[r]=zi(e)^t[r],Ii(e,t[r]);return n}function Di(e,t){const n=[305419896,591751049,878082192];Object.assign(e,{keys:n,crcKey0:new Ur(n[0]),crcKey2:new Ur(n[2])});for(let n=0;n<t.length;n++)Ii(e,t.charCodeAt(n))}function Ii(e,t){let[n,r,i]=e.keys;e.crcKey0.append([t]),n=~e.crcKey0.get(),r=Fi(Math.imul(Fi(r+Ri(n)),134775813)+1),e.crcKey2.append([r>>>24]),i=~e.crcKey2.get(),e.keys=[n,r,i]}function zi(e){const t=2|e.keys[2];return Ri(Math.imul(t,1^t)>>>8)}function Ri(e){return 255&e}function Fi(e){return 4294967295&e}const Bi="deflate-raw";class ji extends TransformStream{constructor(e,{chunkSize:t,CompressionStream:n,CompressionStreamNative:r}){super({});const{compressed:i,encrypted:o,useCompressionStream:a,zipCrypto:l,signed:s,level:u}=e,c=this;let d,f,p=Mi(super.readable);o&&!l||!s||([p,d]=p.tee(),d=Ki(d,new Mr)),i&&(p=Hi(p,a,{level:u,chunkSize:t},r,n)),o&&(l?p=Ki(p,new Ci(e)):(f=new _i(e),p=Ki(p,f))),Wi(c,p,(async()=>{let e;o&&!l&&(e=f.signature),o&&!l||!s||(e=await d.getReader().read(),e=new DataView(e.value.buffer).getUint32(0)),c.signature=e}))}}class Ui extends TransformStream{constructor(e,{chunkSize:t,DecompressionStream:n,DecompressionStreamNative:r}){super({});const{zipCrypto:i,encrypted:o,signed:a,signature:l,compressed:s,useCompressionStream:u}=e;let c,d,f=Mi(super.readable);o&&(i?f=Ki(f,new Ai(e)):(d=new xi(e),f=Ki(f,d))),s&&(f=Hi(f,u,{chunkSize:t},r,n)),o&&!i||!a||([f,c]=f.tee(),c=Ki(c,new Mr)),Wi(this,f,(async()=>{if((!o||i)&&a){const e=await c.getReader().read(),t=new DataView(e.value.buffer);if(l!=t.getUint32(0,!1))throw new Error(Qr)}}))}}function Mi(e){return Ki(e,new TransformStream({transform(e,t){e&&e.length&&t.enqueue(e)}}))}function Wi(e,t,n){t=Ki(t,new TransformStream({flush:n})),Object.defineProperty(e,"readable",{get:()=>t})}function Hi(e,t,n,r,i){try{e=Ki(e,new(t&&r?r:i)(Bi,n))}catch(r){if(!t)throw r;e=Ki(e,new i(Bi,n))}return e}function Ki(e,t){return e.pipeThrough(t)}const qi="message",Yi="pull",Gi="data",Vi="ack",Zi="close",$i="deflate",Xi="inflate";class Qi extends TransformStream{constructor(e,t){super({});const n=this,{codecType:r}=e;let i;r.startsWith($i)?i=ji:r.startsWith(Xi)&&(i=Ui);let o=0;const a=new i(e,t),l=super.readable,s=new TransformStream({transform(e,t){e&&e.length&&(o+=e.length,t.enqueue(e))},flush(){const{signature:e}=a;Object.assign(n,{signature:e,size:o})}});Object.defineProperty(n,"readable",{get:()=>l.pipeThrough(a).pipeThrough(s)})}}const Ji=typeof Worker!=Or;class eo{constructor(e,{readable:t,writable:n},{options:r,config:i,streamOptions:o,useWebWorkers:a,transferStreams:l,scripts:s},u){const{signal:c}=o;return Object.assign(e,{busy:!0,readable:t.pipeThrough(new to(t,o,i),{signal:c}),writable:n,options:Object.assign({},r),scripts:s,transferStreams:l,terminate(){const{worker:t,busy:n}=e;t&&!n&&(t.terminate(),e.interface=null)},onTaskFinished(){e.busy=!1,u(e)}}),(a&&Ji?io:ro)(e,i)}}class to extends TransformStream{constructor(e,{onstart:t,onprogress:n,size:r,onend:i},{chunkSize:o}){let a=0;super({start(){t&&no(t,r)},async transform(e,t){a+=e.length,n&&await no(n,a,r),t.enqueue(e)},flush(){e.size=a,i&&no(i,a)}},{highWaterMark:1,size:()=>o})}}async function no(e,...t){try{await e(...t)}catch(e){}}function ro(e,t){return{run:()=>async function({options:e,readable:t,writable:n,onTaskFinished:r},i){const o=new Qi(e,i);try{await t.pipeThrough(o).pipeTo(n,{preventClose:!0,preventAbort:!0});const{signature:e,size:r}=o;return{signature:e,size:r}}finally{r()}}(e,t)}}function io(e,{baseURL:t,chunkSize:n}){return e.interface||Object.assign(e,{worker:lo(e.scripts[0],t,e),interface:{run:()=>async function(e,t){let n,r;const i=new Promise(((e,t)=>{n=e,r=t}));Object.assign(e,{reader:null,writer:null,resolveResult:n,rejectResult:r,result:i});const{readable:o,options:a,scripts:l}=e,{writable:s,closed:u}=function(e){const t=e.getWriter();let n;const r=new Promise((e=>n=e)),i=new WritableStream({async write(e){await t.ready,await t.write(e)},close(){t.releaseLock(),n()},abort:e=>t.abort(e)});return{writable:i,closed:r}}(e.writable);so({type:"start",scripts:l.slice(1),options:a,config:t,readable:o,writable:s},e)||Object.assign(e,{reader:o.getReader(),writer:s.getWriter()});const c=await i;try{await s.close()}catch(e){}return await u,c}(e,{chunkSize:n})}}),e.interface}let oo=!0,ao=!0;function lo(e,t,n){const r={type:"module"};let i,o;typeof e==Ar&&(e=e());try{i=new URL(e,t)}catch(t){i=e}if(oo)try{o=new Worker(i)}catch(e){oo=!1,o=new Worker(i,r)}else o=new Worker(i,r);return o.addEventListener(qi,(e=>async function({data:e},t){const{type:n,value:r,messageId:i,result:o,error:a}=e,{reader:l,writer:s,resolveResult:u,rejectResult:c,onTaskFinished:d}=t;try{if(a){const{message:e,stack:t,code:n,name:r}=a,i=new Error(e);Object.assign(i,{stack:t,code:n,name:r}),f(i)}else{if(n==Yi){const{value:e,done:n}=await l.read();so({type:Gi,value:e,done:n,messageId:i},t)}n==Gi&&(await s.ready,await s.write(new Uint8Array(r)),so({type:Vi,messageId:i},t)),n==Zi&&f(null,o)}}catch(a){f(a)}function f(e,t){e?c(e):u(t),s&&s.releaseLock(),d()}}(e,n))),o}function so(e,{worker:t,writer:n,onTaskFinished:r,transferStreams:i}){try{let{value:r,readable:o,writable:a}=e;const l=[];if(r){const{buffer:t,length:n}=r;n!=t.byteLength&&(r=new Uint8Array(r)),e.value=r.buffer,l.push(e.value)}if(i&&ao?(o&&l.push(o),a&&l.push(a)):e.readable=e.writable=null,l.length)try{return t.postMessage(e,l),!0}catch(n){ao=!1,e.readable=e.writable=null,t.postMessage(e)}else t.postMessage(e)}catch(e){throw n&&n.releaseLock(),r(),e}}let uo=[];const co=[];let fo=0;async function po(e,t){const{options:n,config:r}=t,{transferStreams:i,useWebWorkers:o,useCompressionStream:a,codecType:l,compressed:s,signed:u,encrypted:c}=n,{workerScripts:d,maxWorkers:f,terminateWorkerTimeout:p}=r;t.transferStreams=i||i===Lr;const h=!(s||u||c||t.transferStreams);let m;t.useWebWorkers=!h&&(o||o===Lr&&r.useWebWorkers),t.scripts=t.useWebWorkers&&d?d[l]:[],n.useCompressionStream=a||a===Lr&&r.useCompressionStream;const g=uo.find((e=>!e.busy));if(g)ho(g),m=new eo(g,e,t,v);else if(uo.length<f){const n={indexWorker:fo};fo++,uo.push(n),m=new eo(n,e,t,v)}else m=await new Promise((n=>co.push({resolve:n,stream:e,workerOptions:t})));return m.run();function v(e){if(co.length){const[{resolve:t,stream:n,workerOptions:r}]=co.splice(0,1);t(new eo(e,n,r,v))}else e.worker?(ho(e),Number.isFinite(p)&&p>=0&&(e.terminateTimeout=setTimeout((()=>{uo=uo.filter((t=>t!=e)),e.terminate()}),p))):uo=uo.filter((t=>t!=e))}}function ho(e){const{terminateTimeout:t}=e;t&&(clearTimeout(t),e.terminateTimeout=null)}const mo="HTTP error ",go="HTTP Range not supported",vo="Content-Length",yo="Range",bo="HEAD",wo="GET",xo="bytes",_o=65536,ko="writable";class Eo{constructor(){this.size=0}init(){this.initialized=!0}}class So extends Eo{get readable(){const e=this,{chunkSize:t=_o}=e,n=new ReadableStream({start(){this.chunkOffset=0},async pull(r){const{offset:i=0,size:o,diskNumberStart:a}=n,{chunkOffset:l}=this;r.enqueue(await ea(e,i+l,Math.min(t,o-l),a)),l+t>o?r.close():this.chunkOffset+=t}});return n}}class To extends Eo{constructor(){super();const e=this,t=new WritableStream({write:t=>e.writeUint8Array(t)});Object.defineProperty(e,ko,{get:()=>t})}writeUint8Array(){}}class Lo extends So{constructor(e){super();let t=e.length;for(;"="==e.charAt(t-1);)t--;const n=e.indexOf(",")+1;Object.assign(this,{dataURI:e,dataStart:n,size:Math.floor(.75*(t-n))})}readUint8Array(e,t){const{dataStart:n,dataURI:r}=this,i=new Uint8Array(t),o=4*Math.floor(e/3),a=atob(r.substring(o+n,4*Math.ceil((e+t)/3)+n)),l=e-3*Math.floor(o/4);for(let e=l;e<l+t;e++)i[e-l]=a.charCodeAt(e);return i}}class Oo extends To{constructor(e){super(),Object.assign(this,{data:"data:"+(e||"")+";base64,",pending:[]})}writeUint8Array(e){const t=this;let n=0,r=t.pending;const i=t.pending.length;for(t.pending="",n=0;n<3*Math.floor((i+e.length)/3)-i;n++)r+=String.fromCharCode(e[n]);for(;n<e.length;n++)t.pending+=String.fromCharCode(e[n]);r.length>2?t.data+=btoa(r):t.pending=r}getData(){return this.data+btoa(this.pending)}}class Ao extends So{constructor(e){super(),Object.assign(this,{blob:e,size:e.size})}async readUint8Array(e,t){const n=this,r=e+t,i=e||r<n.size?n.blob.slice(e,r):n.blob;return new Uint8Array(await i.arrayBuffer())}}class Co extends Eo{constructor(e){super();const t=new TransformStream,n=[];e&&n.push(["Content-Type",e]),Object.defineProperty(this,ko,{get:()=>t.writable}),this.blob=new Response(t.readable,{headers:n}).blob()}getData(){return this.blob}}class No extends Ao{constructor(e){super(new Blob([e],{type:"text/plain"}))}}class Po extends Co{constructor(e){super(e),Object.assign(this,{encoding:e,utf8:!e||"utf-8"==e.toLowerCase()})}async getData(){const{encoding:e,utf8:t}=this,n=await super.getData();if(n.text&&t)return n.text();{const t=new FileReader;return new Promise(((r,i)=>{Object.assign(t,{onload:({target:e})=>r(e.result),onerror:()=>i(t.error)}),t.readAsText(n,e)}))}}}class Do extends So{constructor(e,t){super(),zo(this,e,t)}async init(){await Ro(this,Ko,Uo),super.init()}readUint8Array(e,t){return Fo(this,e,t,Ko,Uo)}}class Io extends So{constructor(e,t){super(),zo(this,e,t)}async init(){await Ro(this,qo,Mo),super.init()}readUint8Array(e,t){return Fo(this,e,t,qo,Mo)}}function zo(e,t,n){const{preventHeadRequest:r,useRangeHeader:i,forceRangeRequests:o}=n;delete(n=Object.assign({},n)).preventHeadRequest,delete n.useRangeHeader,delete n.forceRangeRequests,delete n.useXHR,Object.assign(e,{url:t,options:n,preventHeadRequest:r,useRangeHeader:i,forceRangeRequests:o})}async function Ro(e,t,n){const{url:r,useRangeHeader:i,forceRangeRequests:o}=e;if(function(e){const{baseURL:t}=Ir(),{protocol:n}=new URL(e,t);return"http:"==n||"https:"==n}(r)&&(i||o)){const{headers:r}=await t(wo,e,Bo(e));if(!o&&r.get("Accept-Ranges")!=xo)throw new Error(go);{let i;const o=r.get("Content-Range");if(o){const e=o.trim().split(/\s*\/\s*/);if(e.length){const t=e[1];t&&"*"!=t&&(i=Number(t))}}i===Lr?await Ho(e,t,n):e.size=i}}else await Ho(e,t,n)}async function Fo(e,t,n,r,i){const{useRangeHeader:o,forceRangeRequests:a,options:l}=e;if(o||a){const i=await r(wo,e,Bo(e,t,n));if(206!=i.status)throw new Error(go);return new Uint8Array(await i.arrayBuffer())}{const{data:r}=e;return r||await i(e,l),new Uint8Array(e.data.subarray(t,t+n))}}function Bo(e,t=0,n=1){return Object.assign({},jo(e),{[yo]:xo+"="+t+"-"+(t+n-1)})}function jo({options:e}){const{headers:t}=e;if(t)return Symbol.iterator in t?Object.fromEntries(t):t}async function Uo(e){await Wo(e,Ko)}async function Mo(e){await Wo(e,qo)}async function Wo(e,t){const n=await t(wo,e,jo(e));e.data=new Uint8Array(await n.arrayBuffer()),e.size||(e.size=e.data.length)}async function Ho(e,t,n){if(e.preventHeadRequest)await n(e,e.options);else{const r=(await t(bo,e,jo(e))).headers.get(vo);r?e.size=Number(r):await n(e,e.options)}}async function Ko(e,{options:t,url:n},r){const i=await fetch(n,Object.assign({},t,{method:e,headers:r}));if(i.status<400)return i;throw 416==i.status?new Error(go):new Error(mo+(i.statusText||i.status))}function qo(e,{url:t},n){return new Promise(((r,i)=>{const o=new XMLHttpRequest;if(o.addEventListener("load",(()=>{if(o.status<400){const e=[];o.getAllResponseHeaders().trim().split(/[\r\n]+/).forEach((t=>{const n=t.trim().split(/\s*:\s*/);n[0]=n[0].trim().replace(/^[a-z]|-[a-z]/g,(e=>e.toUpperCase())),e.push(n)})),r({status:o.status,arrayBuffer:()=>o.response,headers:new Map(e)})}else i(416==o.status?new Error(go):new Error(mo+(o.statusText||o.status)))}),!1),o.addEventListener("error",(e=>i(e.detail.error)),!1),o.open(e,t),n)for(const e of Object.entries(n))o.setRequestHeader(e[0],e[1]);o.responseType="arraybuffer",o.send()}))}class Yo extends So{constructor(e,t={}){super(),Object.assign(this,{url:e,reader:t.useXHR?new Io(e,t):new Do(e,t)})}set size(e){}get size(){return this.reader.size}async init(){await this.reader.init(),super.init()}readUint8Array(e,t){return this.reader.readUint8Array(e,t)}}class Go extends So{constructor(e){super(),Object.assign(this,{array:e,size:e.length})}readUint8Array(e,t){return this.array.slice(e,e+t)}}class Vo extends To{init(e=0){Object.assign(this,{offset:0,array:new Uint8Array(e)}),super.init()}writeUint8Array(e){const t=this;if(t.offset+e.length>t.array.length){const n=t.array;t.array=new Uint8Array(n.length+e.length),t.array.set(n)}t.array.set(e,t.offset),t.offset+=e.length}getData(){return this.array}}class Zo extends So{constructor(e){super(),this.readers=e}async init(){const e=this,{readers:t}=e;e.lastDiskNumber=0,await Promise.all(t.map((async t=>{await t.init(),e.size+=t.size}))),super.init()}async readUint8Array(e,t,n=0){const r=this,{readers:i}=this;let o,a=n;-1==a&&(a=i.length-1);let l=e;for(;l>=i[a].size;)l-=i[a].size,a++;const s=i[a],u=s.size;if(l+t<=u)o=await ea(s,l,t);else{const i=u-l;o=new Uint8Array(t),o.set(await ea(s,l,i)),o.set(await r.readUint8Array(e+i,t-i,n),i)}return r.lastDiskNumber=Math.max(a,r.lastDiskNumber),o}}class $o extends Eo{constructor(e,t=4294967295){super();const n=this;let r,i,o;Object.assign(n,{diskNumber:0,diskOffset:0,size:0,maxSize:t,availableSize:t});const a=new WritableStream({async write(t){const{availableSize:a}=n;if(o)t.length>=a?(await l(t.slice(0,a)),await s(),n.diskOffset+=r.size,n.diskNumber++,o=null,await this.write(t.slice(a))):await l(t);else{const{value:a,done:l}=await e.next();if(l&&!a)throw new Error("Writer iterator completed too soon");r=a,r.size=0,r.maxSize&&(n.maxSize=r.maxSize),n.availableSize=n.maxSize,await Xo(r),i=a.writable,o=i.getWriter(),await this.write(t)}},async close(){await o.ready,await s()}});async function l(e){const t=e.length;t&&(await o.ready,await o.write(e),r.size+=t,n.size+=t,n.availableSize-=t)}async function s(){i.size=r.size,await o.close()}Object.defineProperty(n,ko,{get:()=>a})}}async function Xo(e,t){e.init&&!e.initialized&&await e.init(t)}function Qo(e){return Array.isArray(e)&&(e=new Zo(e)),e instanceof ReadableStream&&(e={readable:e}),e}function Jo(e){e.writable===Lr&&typeof e.next==Ar&&(e=new $o(e)),e instanceof WritableStream&&(e={writable:e});const{writable:t}=e;return t.size===Lr&&(t.size=0),e instanceof $o||Object.assign(e,{diskNumber:0,diskOffset:0,availableSize:1/0,maxSize:1/0}),e}function ea(e,t,n,r){return e.readUint8Array(t,n,r)}const ta="\0☺☻♥♦♣♠•◘○◙♂♀♪♫☼►◄↕‼¶§▬↨↑↓→←∟↔▲▼ !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~⌂ÇüéâäàåçêëèïîìÄÅÉæÆôöòûùÿÖÜ¢£¥₧ƒáíóúñѪº¿⌐¬½¼¡«»░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀αßΓπΣσµτΦΘΩδ∞φε∩≡±≥≤⌠⌡÷≈°∙·√ⁿ²■ ".split(""),na=256==ta.length;function ra(e,t){return t&&"cp437"==t.trim().toLowerCase()?function(e){if(na){let t="";for(let n=0;n<e.length;n++)t+=ta[e[n]];return t}return(new TextDecoder).decode(e)}(e):new TextDecoder(t).decode(e)}const ia="filename",oa="rawFilename",aa="comment",la="rawComment",sa="uncompressedSize",ua="compressedSize",ca="offset",da="diskNumberStart",fa="lastModDate",pa="rawLastModDate",ha="lastAccessDate",ma="creationDate",ga="internalFileAttribute",va="externalFileAttribute",ya="msDosCompatible",ba="zip64",wa=[ia,oa,ua,sa,fa,pa,aa,la,ha,ma,ca,da,da,ga,va,ya,ba,"directory","bitFlag","encrypted","signature","filenameUTF8","commentUTF8","compressionMethod","version","versionMadeBy","extraField","rawExtraField","extraFieldZip64","extraFieldUnicodePath","extraFieldUnicodeComment","extraFieldAES","extraFieldNTFS","extraFieldExtendedTimestamp"];class xa{constructor(e){wa.forEach((t=>this[t]=e[t]))}}const _a="File format is not recognized",ka="Compression method not supported",Ea="Split zip file",Sa="utf-8",Ta="cp437",La=[[sa,lr],[ua,lr],[ca,lr],[da,sr]],Oa={[sr]:{getValue:ja,bytes:4},[lr]:{getValue:Ua,bytes:8}};class Aa{constructor(e,t={}){Object.assign(this,{reader:Qo(e),options:t,config:Ir()})}async*getEntriesGenerator(e={}){const t=this;let{reader:n}=t;const{config:r}=t;if(await Xo(n),n.size!==Lr&&n.readUint8Array||(n=new Ao(await new Response(n.readable).blob()),await Xo(n)),n.size<mr)throw new Error(_a);n.chunkSize=zr(r);const i=await async function(e,t,n,r,i){const o=new Uint8Array(4);!function(e,t,n){e.setUint32(0,101010256,!0)}(Ma(o));const a=r+1048560;return await l(r)||await l(Math.min(a,n));async function l(t){const i=n-t,a=await ea(e,i,t);for(let e=a.length-r;e>=0;e--)if(a[e]==o[0]&&a[e+1]==o[1]&&a[e+2]==o[2]&&a[e+3]==o[3])return{offset:i+e,buffer:a.slice(e,e+r).buffer}}}(n,0,n.size,mr);if(!i)throw ja(Ma(await ea(n,0,4)))==cr?new Error(Ea):new Error("End of central directory not found");const o=Ma(i);let a=ja(o,12),l=ja(o,16);const s=i.offset,u=Ba(o,20),c=s+mr+u;let d=Ba(o,4);const f=n.lastDiskNumber||0;let p=Ba(o,6),h=Ba(o,8),m=0,g=0;if(l==lr||a==lr||h==sr||p==sr){const e=Ma(await ea(n,i.offset-20,20));if(ja(e,0)!=hr)throw new Error("End of Zip64 central directory not found");l=Ua(e,8);let t=await ea(n,l,56,-1),r=Ma(t);const o=i.offset-20-56;if(ja(r,0)!=pr&&l!=o){const e=l;l=o,m=l-e,t=await ea(n,l,56,-1),r=Ma(t)}if(ja(r,0)!=pr)throw new Error("End of Zip64 central directory locator not found");d==sr&&(d=ja(r,16)),p==sr&&(p=ja(r,20)),h==sr&&(h=Ua(r,32)),a==lr&&(a=Ua(r,40)),l-=a}if(f!=d)throw new Error(Ea);if(l<0||l>=n.size)throw new Error(_a);let v=0,y=await ea(n,l,a,p),b=Ma(y);if(a){const e=i.offset-a;if(ja(b,v)!=dr&&l!=e){const t=l;l=e,m=l-t,y=await ea(n,l,a,p),b=Ma(y)}}if(l<0||l>=n.size)throw new Error(_a);const w=Ia(t,e,"filenameEncoding"),x=Ia(t,e,"commentEncoding");for(let i=0;i<h;i++){const o=new Ca(n,r,t.options);if(ja(b,v)!=dr)throw new Error("Central directory header not found");Na(o,b,v+6);const a=Boolean(o.bitFlag.languageEncodingFlag),l=v+46,s=l+o.filenameLength,u=s+o.extraFieldLength,c=Ba(b,v+4),d=0==(0&c),f=y.subarray(l,s),p=Ba(b,v+32),_=u+p,k=y.subarray(u,_),E=a,S=a,T=d&&16==(16&Fa(b,v+38)),L=ja(b,v+42)+m;Object.assign(o,{versionMadeBy:c,msDosCompatible:d,compressedSize:0,uncompressedSize:0,commentLength:p,directory:T,offset:L,diskNumberStart:Ba(b,v+34),internalFileAttribute:Ba(b,v+36),externalFileAttribute:ja(b,v+38),rawFilename:f,filenameUTF8:E,commentUTF8:S,rawExtraField:y.subarray(s,u)});const[O,A]=await Promise.all([ra(f,E?Sa:w||Ta),ra(k,S?Sa:x||Ta)]);Object.assign(o,{rawComment:k,filename:O,comment:A,directory:T||O.endsWith(Er)}),g=Math.max(L,g),await Pa(o,o,b,v+6);const C=new xa(o);C.getData=(e,t)=>o.getData(e,C,t),v=_;const{onprogress:N}=e;if(N)try{await N(i+1,h,new xa(o))}catch(e){}yield C}const _=Ia(t,e,"extractPrependedData"),k=Ia(t,e,"extractAppendedData");return _&&(t.prependedData=g>0?await ea(n,0,g):new Uint8Array),t.comment=u?await ea(n,s+mr,u):new Uint8Array,k&&(t.appendedData=c<n.size?await ea(n,c,n.size-c):new Uint8Array),!0}async getEntries(e={}){const t=[];for await(const n of this.getEntriesGenerator(e))t.push(n);return t}async close(){}}class Ca{constructor(e,t,n){Object.assign(this,{reader:e,config:t,options:n})}async getData(e,t,n={}){const r=this,{reader:i,offset:o,diskNumberStart:a,extraFieldAES:l,compressionMethod:s,config:u,bitFlag:c,signature:d,rawLastModDate:f,uncompressedSize:p,compressedSize:h}=r,m=r.localDirectory={},g=Ma(await ea(i,o,30,a));let v=Ia(r,n,"password");if(v=v&&v.length&&v,l&&99!=l.originalCompressionMethod)throw new Error(ka);if(0!=s&&8!=s)throw new Error(ka);if(ja(g,0)!=ur)throw new Error("Local file header not found");Na(m,g,4),m.rawExtraField=m.extraFieldLength?await ea(i,o+30+m.filenameLength,m.extraFieldLength,a):new Uint8Array,await Pa(r,m,g,4),Object.assign(t,{lastAccessDate:m.lastAccessDate,creationDate:m.creationDate});const y=r.encrypted&&m.encrypted,b=y&&!l;if(y){if(!b&&l.strength===Lr)throw new Error("Encryption method not supported");if(!v)throw new Error("File contains encrypted entry")}const w=o+30+m.filenameLength+m.extraFieldLength,x=i.readable;x.diskNumberStart=a,x.offset=w;let _=x.size=h;const k=Ia(r,n,"signal"),E=Ia(r,n,"checkPasswordOnly");E&&(e=new WritableStream),e=Jo(e),await Xo(e,p);const{writable:S}=e,{onstart:T,onprogress:L,onend:O}=n,A={options:{codecType:Xi,password:v,zipCrypto:b,encryptionStrength:l&&l.strength,signed:Ia(r,n,"checkSignature"),passwordVerification:b&&(c.dataDescriptor?f>>>8&255:d>>>24&255),signature:d,compressed:0!=s,encrypted:y,useWebWorkers:Ia(r,n,"useWebWorkers"),useCompressionStream:Ia(r,n,"useCompressionStream"),transferStreams:Ia(r,n,"transferStreams"),checkPasswordOnly:E},config:u,streamOptions:{signal:k,size:_,onstart:T,onprogress:L,onend:O}};let C=0;try{({outputSize:C}=await po({readable:x,writable:S},A))}catch(e){if(!E||e.message!=Jr)throw e}finally{const e=Ia(r,n,"preventClose");S.size+=C,e||S.locked||await S.close()}return E?void 0:e.getData?e.getData():S}}function Na(e,t,n){const r=e.rawBitFlag=Ba(t,n+2),i=(r&xr)==xr,o=ja(t,n+6);Object.assign(e,{encrypted:i,version:Ba(t,n),bitFlag:{level:(6&r)>>1,dataDescriptor:(r&_r)==_r,languageEncodingFlag:(r&kr)==kr},rawLastModDate:o,lastModDate:za(o),filenameLength:Ba(t,n+22),extraFieldLength:Ba(t,n+24)})}async function Pa(e,t,n,r){const{rawExtraField:i}=t,o=t.extraField=new Map,a=Ma(new Uint8Array(i));let l=0;try{for(;l<i.length;){const e=Ba(a,l),t=Ba(a,l+2);o.set(e,{type:e,data:i.slice(l+4,l+4+t)}),l+=4+t}}catch(e){}const s=Ba(n,r+4);Object.assign(t,{signature:ja(n,r+10),uncompressedSize:ja(n,r+18),compressedSize:ja(n,r+14)});const u=o.get(gr);u&&(function(e,t){t.zip64=!0;const n=Ma(e.data),r=La.filter((([e,n])=>t[e]==n));for(let i=0,o=0;i<r.length;i++){const[a,l]=r[i];if(t[a]==l){const r=Oa[l];t[a]=e[a]=r.getValue(n,o),o+=r.bytes}else if(e[a])throw new Error("Zip64 extra field not found")}}(u,t),t.extraFieldZip64=u);const c=o.get(28789);c&&(await Da(c,ia,oa,t,e),t.extraFieldUnicodePath=c);const d=o.get(25461);d&&(await Da(d,aa,la,t,e),t.extraFieldUnicodeComment=d);const f=o.get(vr);f?(function(e,t,n){const r=Ma(e.data),i=Fa(r,4);Object.assign(e,{vendorVersion:Fa(r,0),vendorId:Fa(r,2),strength:i,originalCompressionMethod:n,compressionMethod:Ba(r,5)}),t.compressionMethod=e.compressionMethod}(f,t,s),t.extraFieldAES=f):t.compressionMethod=s;const p=o.get(yr);p&&(function(e,t){const n=Ma(e.data);let r,i=4;try{for(;i<e.data.length&&!r;){const t=Ba(n,i),o=Ba(n,i+2);t==br&&(r=e.data.slice(i+4,i+4+o)),i+=4+o}}catch(e){}try{if(r&&24==r.length){const n=Ma(r),i=n.getBigUint64(0,!0),o=n.getBigUint64(8,!0),a=n.getBigUint64(16,!0);Object.assign(e,{rawLastModDate:i,rawLastAccessDate:o,rawCreationDate:a});const l=Ra(i),s={lastModDate:l,lastAccessDate:Ra(o),creationDate:Ra(a)};Object.assign(e,s),Object.assign(t,s)}}catch(e){}}(p,t),t.extraFieldNTFS=p);const h=o.get(wr);h&&(function(e,t){const n=Ma(e.data),r=Fa(n,0),i=[],o=[];1==(1&r)&&(i.push(fa),o.push(pa)),2==(2&r)&&(i.push(ha),o.push("rawLastAccessDate")),4==(4&r)&&(i.push(ma),o.push("rawCreationDate"));let a=1;i.forEach(((r,i)=>{if(e.data.length>=a+4){const l=ja(n,a);t[r]=e[r]=new Date(1e3*l);const s=o[i];e[s]=l}a+=4}))}(h,t),t.extraFieldExtendedTimestamp=h)}async function Da(e,t,n,r,i){const o=Ma(e.data),a=new Ur;a.append(i[n]);const l=Ma(new Uint8Array(4));l.setUint32(0,a.get(),!0),Object.assign(e,{version:Fa(o,0),signature:ja(o,1),[t]:await ra(e.data.subarray(5)),valid:!i.bitFlag.languageEncodingFlag&&e.signature==ja(l,0)}),e.valid&&(r[t]=e[t],r[t+"UTF8"]=!0)}function Ia(e,t,n){return t[n]===Lr?e.options[n]:t[n]}function za(e){const t=(4294901760&e)>>16,n=65535&e;try{return new Date(1980+((65024&t)>>9),((480&t)>>5)-1,31&t,(63488&n)>>11,(2016&n)>>5,2*(31&n),0)}catch(e){}}function Ra(e){return new Date(Number(e/BigInt(1e4)-BigInt(116444736e5)))}function Fa(e,t){return e.getUint8(t)}function Ba(e,t){return e.getUint16(t,!0)}function ja(e,t){return e.getUint32(t,!0)}function Ua(e,t){return Number(e.getBigUint64(t,!0))}function Ma(e){return new DataView(e.buffer)}const Wa="Version exceeds 65535",Ha="Zip64 is not supported (make sure 'keepOrder' is set to 'true')",Ka=new Uint8Array([7,0,2,0,65,69,3,0,0]);let qa=0;const Ya=[];class Ga{constructor(e,t={}){e=Jo(e),Object.assign(this,{writer:e,addSplitZipSignature:e instanceof $o,options:t,config:Ir(),files:new Map,filenames:new Set,offset:e.writable.size,pendingEntriesSize:0,pendingAddFileCalls:new Set,bufferedWrites:0})}async add(e="",t,n={}){const r=this,{pendingAddFileCalls:i,config:o}=r;let a;qa<o.maxWorkers?qa++:await new Promise((e=>Ya.push(e)));try{if(e=e.trim(),r.filenames.has(e))throw new Error("File already exists");return r.filenames.add(e),a=async function(e,t,n,r){t=t.trim(),r.directory&&!t.endsWith(Er)?t+=Er:r.directory=t.endsWith(Er);const i=Wr(t);if(rl(i)>sr)throw new Error("File entry name exceeds 64KB");const o=r.comment||"",a=Wr(o);if(rl(a)>sr)throw new Error("File entry comment exceeds 64KB");const l=$a(e,r,"version",20);if(l>sr)throw new Error(Wa);const s=$a(e,r,"versionMadeBy",20);if(s>sr)throw new Error(Wa);const u=$a(e,r,fa,new Date),c=$a(e,r,ha),d=$a(e,r,ma),f=$a(e,r,ya,!0),p=$a(e,r,ga,0),h=$a(e,r,va,0),m=$a(e,r,"password"),g=$a(e,r,"encryptionStrength",3),v=$a(e,r,"zipCrypto"),y=$a(e,r,"extendedTimestamp",!0),b=$a(e,r,"keepOrder",!0),w=$a(e,r,"level"),x=$a(e,r,"useWebWorkers"),_=$a(e,r,"bufferedWrite"),k=$a(e,r,"dataDescriptorSignature",!1),E=$a(e,r,"signal"),S=$a(e,r,"useCompressionStream");let T=$a(e,r,"dataDescriptor",!0),L=$a(e,r,ba);if(m!==Lr&&g!==Lr&&(g<1||g>3))throw new Error("The strength must equal 1, 2, or 3");let O=new Uint8Array;const{extraField:A}=r;if(A){let e=0,t=0;A.forEach((t=>e+=4+rl(t))),O=new Uint8Array(e),A.forEach(((e,n)=>{if(n>sr)throw new Error("Extra field type exceeds 65535");if(rl(e)>sr)throw new Error("Extra field data exceeds 64KB");tl(O,new Uint16Array([n]),t),tl(O,new Uint16Array([rl(e)]),t+2),tl(O,e,t+4),t+=4+rl(e)}))}let C=0,N=0,P=0;const D=!0===L;n&&(n=Qo(n),await Xo(n),n.size===Lr?(T=!0,(L||L===Lr)&&(L=!0,C=lr)):(P=n.size,C=function(e){return e+5*(Math.floor(e/16383)+1)}(P)));const{diskOffset:I,diskNumber:z,maxSize:R}=e.writer,F=D||P>=lr,B=D||C>=lr,j=D||e.offset+e.pendingEntriesSize-I>=lr,U=$a(e,r,"supportZip64SplitFile",!0)&&D||z+Math.ceil(e.pendingEntriesSize/R)>=sr;if(j||F||B||U){if(!1===L||!b)throw new Error(Ha);L=!0}L=L||!1;const M=function(e){const{rawFilename:t,lastModDate:n,lastAccessDate:r,creationDate:i,password:o,level:a,zip64:l,zipCrypto:s,dataDescriptor:u,directory:c,rawExtraField:d,encryptionStrength:f,extendedTimestamp:p}=e,h=0!==a&&!c,m=Boolean(o&&rl(o));let g,v,y,b=e.version;if(m&&!s){g=new Uint8Array(rl(Ka)+2);const e=nl(g);Qa(e,0,vr),tl(g,Ka,2),Xa(e,8,f)}else g=new Uint8Array;if(p){y=new Uint8Array(9+(r?4:0)+(i?4:0));const t=nl(y);Qa(t,0,wr),Qa(t,2,rl(y)-4),Xa(t,4,1+(r?2:0)+(i?4:0)),Ja(t,5,Math.floor(n.getTime()/1e3)),r&&Ja(t,9,Math.floor(r.getTime()/1e3)),i&&Ja(t,13,Math.floor(i.getTime()/1e3));try{v=new Uint8Array(36);const e=nl(v),t=Za(n);Qa(e,0,yr),Qa(e,2,32),Qa(e,8,br),Qa(e,10,24),el(e,12,t),el(e,20,Za(r)||t),el(e,28,Za(i)||t)}catch(e){v=new Uint8Array}}else v=y=new Uint8Array;let w=kr;u&&(w|=_r);let x=0;h&&(x=8),l&&(b=b>45?b:45),m&&(w|=xr,s||(b=b>51?b:51,x=99,h&&(g[9]=8)));const _=new Uint8Array(26),k=nl(_);Qa(k,0,b),Qa(k,2,w),Qa(k,4,x);const E=new Uint32Array(1),S=nl(E);let T;T=n<Tr?Tr:n>Sr?Sr:n,Qa(S,0,(T.getHours()<<6|T.getMinutes())<<5|T.getSeconds()/2),Qa(S,2,(T.getFullYear()-1980<<4|T.getMonth()+1)<<5|T.getDate());const L=E[0];Ja(k,6,L),Qa(k,22,rl(t));const O=rl(g,y,v,d);Qa(k,24,O);const A=new Uint8Array(30+rl(t)+O);return Ja(nl(A),0,ur),tl(A,_,4),tl(A,t,30),tl(A,g,30+rl(t)),tl(A,y,30+rl(t,g)),tl(A,v,30+rl(t,g,y)),tl(A,d,30+rl(t,g,y,v)),{localHeaderArray:A,headerArray:_,headerView:k,lastModDate:n,rawLastModDate:L,encrypted:m,compressed:h,version:b,compressionMethod:x,rawExtraFieldExtendedTimestamp:y,rawExtraFieldNTFS:v,rawExtraFieldAES:g}}(r=Object.assign({},r,{rawFilename:i,rawComment:a,version:l,versionMadeBy:s,lastModDate:u,lastAccessDate:c,creationDate:d,rawExtraField:O,zip64:L,zip64UncompressedSize:F,zip64CompressedSize:B,zip64Offset:j,zip64DiskNumberStart:U,password:m,level:w,useWebWorkers:x,encryptionStrength:g,extendedTimestamp:y,zipCrypto:v,bufferedWrite:_,keepOrder:b,dataDescriptor:T,dataDescriptorSignature:k,signal:E,msDosCompatible:f,internalFileAttribute:p,externalFileAttribute:h,useCompressionStream:S})),W=function(e){const{zip64:t,dataDescriptor:n,dataDescriptorSignature:r}=e;let i,o=new Uint8Array,a=0;return n&&(o=new Uint8Array(t?r?24:20:r?16:12),i=nl(o),r&&(a=4,Ja(i,0,134695760))),{dataDescriptorArray:o,dataDescriptorView:i,dataDescriptorOffset:a}}(r);let H;N=rl(M.localHeaderArray,W.dataDescriptorArray)+C,e.pendingEntriesSize+=N;try{H=await async function(e,t,n,r,i){const{files:o,writer:a}=e,{keepOrder:l,dataDescriptor:s,signal:u}=i,{headerInfo:c}=r,d=Array.from(o.values()).pop();let f,p,h,m,g,v,y={};o.set(t,y);try{let c;l&&(c=d&&d.lock,b()),i.bufferedWrite||e.writerLocked||e.bufferedWrites&&l||!s?(v=new Co,v.writable.size=0,f=!0,e.bufferedWrites++,await Xo(a)):(v=a,await w()),await Xo(v);const{writable:p}=a;let{diskOffset:h}=a;if(e.addSplitZipSignature){delete e.addSplitZipSignature;const t=new Uint8Array(4);Ja(nl(t),0,cr),await Va(p,t),e.offset+=4}f||(await c,await x(p));const{diskNumber:_}=a;if(g=!0,y.diskNumberStart=_,y=await async function(e,t,{diskNumberStart:n,lock:r},i,o,a){const{headerInfo:l,dataDescriptorInfo:s}=i,{localHeaderArray:u,headerArray:c,lastModDate:d,rawLastModDate:f,encrypted:p,compressed:h,version:m,compressionMethod:g,rawExtraFieldExtendedTimestamp:v,rawExtraFieldNTFS:y,rawExtraFieldAES:b}=l,{dataDescriptorArray:w}=s,{rawFilename:x,lastAccessDate:_,creationDate:k,password:E,level:S,zip64:T,zip64UncompressedSize:L,zip64CompressedSize:O,zip64Offset:A,zip64DiskNumberStart:C,zipCrypto:N,dataDescriptor:P,directory:D,versionMadeBy:I,rawComment:z,rawExtraField:R,useWebWorkers:F,onstart:B,onprogress:j,onend:U,signal:M,encryptionStrength:W,extendedTimestamp:H,msDosCompatible:K,internalFileAttribute:q,externalFileAttribute:Y,useCompressionStream:G}=a,V={lock:r,versionMadeBy:I,zip64:T,directory:Boolean(D),filenameUTF8:!0,rawFilename:x,commentUTF8:!0,rawComment:z,rawExtraFieldExtendedTimestamp:v,rawExtraFieldNTFS:y,rawExtraFieldAES:b,rawExtraField:R,extendedTimestamp:H,msDosCompatible:K,internalFileAttribute:q,externalFileAttribute:Y,diskNumberStart:n};let Z,$=0,X=0;const{writable:Q}=t;if(e){e.chunkSize=zr(o),await Va(Q,u);const t=e.readable,n=t.size=e.size,r={options:{codecType:$i,level:S,password:E,encryptionStrength:W,zipCrypto:p&&N,passwordVerification:p&&N&&f>>8&255,signed:!0,compressed:h,encrypted:p,useWebWorkers:F,useCompressionStream:G,transferStreams:!1},config:o,streamOptions:{signal:M,size:n,onstart:B,onprogress:j,onend:U}},i=await po({readable:t,writable:Q},r);Q.size+=i.size,Z=i.signature,X=e.size=t.size,$=i.size}else await Va(Q,u);let J;if(T){let e=4;L&&(e+=8),O&&(e+=8),A&&(e+=8),C&&(e+=4),J=new Uint8Array(e)}else J=new Uint8Array;return e&&function(e,t){const{signature:n,rawExtraFieldZip64:r,compressedSize:i,uncompressedSize:o,headerInfo:a,dataDescriptorInfo:l}=e,{headerView:s,encrypted:u}=a,{dataDescriptorView:c,dataDescriptorOffset:d}=l,{zip64:f,zip64UncompressedSize:p,zip64CompressedSize:h,zipCrypto:m,dataDescriptor:g}=t;if(u&&!m||n===Lr||(Ja(s,10,n),g&&Ja(c,d,n)),f){const e=nl(r);Qa(e,0,gr),Qa(e,2,r.length-4);let t=4;p&&(Ja(s,18,lr),el(e,t,BigInt(o)),t+=8),h&&(Ja(s,14,lr),el(e,t,BigInt(i))),g&&(el(c,d+4,BigInt(i)),el(c,d+12,BigInt(o)))}else Ja(s,14,i),Ja(s,18,o),g&&(Ja(c,d+4,i),Ja(c,d+8,o))}({signature:Z,rawExtraFieldZip64:J,compressedSize:$,uncompressedSize:X,headerInfo:l,dataDescriptorInfo:s},a),P&&await Va(Q,w),Object.assign(V,{uncompressedSize:X,compressedSize:$,lastModDate:d,rawLastModDate:f,creationDate:k,lastAccessDate:_,encrypted:p,length:rl(u,w)+$,compressionMethod:g,version:m,headerArray:c,signature:Z,rawExtraFieldZip64:J,zip64UncompressedSize:L,zip64CompressedSize:O,zip64Offset:A,zip64DiskNumberStart:C}),V}(n,v,y,r,e.config,i),g=!1,o.set(t,y),y.filename=t,f){await v.writable.close();let e=await v.getData();await c,await w(),m=!0,s||(e=await async function(e,t,n,{zipCrypto:r}){const i=await function(e,t,n){return e.slice(0,26).arrayBuffer()}(t),o=new DataView(i);return e.encrypted&&!r||Ja(o,14,e.signature),e.zip64?(Ja(o,18,lr),Ja(o,22,lr)):(Ja(o,18,e.compressedSize),Ja(o,22,e.uncompressedSize)),await Va(n,new Uint8Array(i)),t.slice(i.byteLength)}(y,e,p,i)),await x(p),y.diskNumberStart=a.diskNumber,h=a.diskOffset,await e.stream().pipeTo(p,{preventClose:!0,preventAbort:!0,signal:u}),p.size+=e.size,m=!1}if(y.offset=e.offset-h,y.zip64)!function(e,t){const{rawExtraFieldZip64:n,offset:r,diskNumberStart:i}=e,{zip64UncompressedSize:o,zip64CompressedSize:a,zip64Offset:l,zip64DiskNumberStart:s}=t,u=nl(n);let c=4;o&&(c+=8),a&&(c+=8),l&&(el(u,c,BigInt(r)),c+=8),s&&Ja(u,c,i)}(y,i);else if(y.offset>=lr)throw new Error(Ha);return e.offset+=y.length,y}catch(n){if(f&&m||!f&&g){if(e.hasCorruptedEntries=!0,n)try{n.corruptedEntry=!0}catch(e){}f?e.offset+=v.writable.size:e.offset=v.writable.size}throw o.delete(t),n}finally{f&&e.bufferedWrites--,h&&h(),p&&p()}function b(){y.lock=new Promise((e=>h=e))}async function w(){e.writerLocked=!0;const{lockWriter:t}=e;e.lockWriter=new Promise((t=>p=()=>{e.writerLocked=!1,t()})),await t}async function x(e){c.localHeaderArray.length>a.availableSize&&(a.availableSize=0,await Va(e,new Uint8Array))}}(e,t,n,{headerInfo:M,dataDescriptorInfo:W},r)}finally{e.pendingEntriesSize-=N}return Object.assign(H,{name:t,comment:o,extraField:A}),new xa(H)}(r,e,t,n),i.add(a),await a}catch(t){throw r.filenames.delete(e),t}finally{i.delete(a);const e=Ya.shift();e?e():qa--}}async close(e=new Uint8Array,t={}){const{pendingAddFileCalls:n,writer:r}=this,{writable:i}=r;for(;n.size;)await Promise.all(Array.from(n));return await async function(e,t,n){const{files:r,writer:i}=e,{diskOffset:o,writable:a}=i;let{diskNumber:l}=i,s=0,u=0,c=e.offset-o,d=r.size;for(const[,{rawFilename:e,rawExtraFieldZip64:t,rawExtraFieldAES:n,rawExtraField:i,rawComment:o,rawExtraFieldExtendedTimestamp:a,rawExtraFieldNTFS:l}]of r)u+=46+rl(e,o,t,n,a,l,i);const f=new Uint8Array(u),p=nl(f);await Xo(i);let h=0;for(const[t,o]of Array.from(r.values()).entries()){const{offset:l,rawFilename:u,rawExtraFieldZip64:c,rawExtraFieldAES:d,rawExtraFieldNTFS:m,rawExtraField:g,rawComment:v,versionMadeBy:y,headerArray:b,directory:w,zip64:x,zip64UncompressedSize:_,zip64CompressedSize:k,zip64DiskNumberStart:E,zip64Offset:S,msDosCompatible:T,internalFileAttribute:L,externalFileAttribute:O,extendedTimestamp:A,lastModDate:C,diskNumberStart:N,uncompressedSize:P,compressedSize:D}=o;let I;if(A){I=new Uint8Array(9);const e=nl(I);Qa(e,0,wr),Qa(e,2,rl(I)-4),Xa(e,4,1),Ja(e,5,Math.floor(C.getTime()/1e3))}else I=new Uint8Array;const z=rl(c,d,I,m,g);Ja(p,s,dr),Qa(p,s+4,y);const R=nl(b);_||Ja(R,18,P),k||Ja(R,14,D),tl(f,b,s+6),Qa(p,s+30,z),Qa(p,s+32,rl(v)),Qa(p,s+34,x&&E?sr:N),Qa(p,s+36,L),O?Ja(p,s+38,O):w&&T&&Xa(p,s+38,16),Ja(p,s+42,x&&S?lr:l),tl(f,u,s+46),tl(f,c,s+46+rl(u)),tl(f,d,s+46+rl(u,c)),tl(f,I,s+46+rl(u,c,d)),tl(f,m,s+46+rl(u,c,d,I)),tl(f,g,s+46+rl(u,c,d,I,m)),tl(f,v,s+46+rl(u)+z);const F=46+rl(u,v)+z;if(s-h>i.availableSize&&(i.availableSize=0,await Va(a,f.slice(h,s)),h=s),s+=F,n.onprogress)try{await n.onprogress(t+1,r.size,new xa(o))}catch(e){}}await Va(a,h?f.slice(h):f);let m=i.diskNumber;const{availableSize:g}=i;g<mr&&m++;let v=$a(e,n,"zip64");if(c>=lr||u>=lr||d>=sr||m>=sr){if(!1===v)throw new Error(Ha);v=!0}const y=new Uint8Array(v?98:mr),b=nl(y);s=0,v&&(Ja(b,0,pr),el(b,4,BigInt(44)),Qa(b,12,45),Qa(b,14,45),Ja(b,16,m),Ja(b,20,l),el(b,24,BigInt(d)),el(b,32,BigInt(d)),el(b,40,BigInt(u)),el(b,48,BigInt(c)),Ja(b,56,hr),el(b,64,BigInt(c)+BigInt(u)),Ja(b,72,m+1),$a(e,n,"supportZip64SplitFile",!0)&&(m=sr,l=sr),d=sr,c=lr,u=lr,s+=76),Ja(b,s,fr),Qa(b,s+4,m),Qa(b,s+6,l),Qa(b,s+8,d),Qa(b,s+10,d),Ja(b,s+12,u),Ja(b,s+16,c);const w=rl(t);if(w){if(!(w<=sr))throw new Error("Zip file comment exceeds 64KB");Qa(b,s+20,w)}await Va(a,y),w&&await Va(a,t)}(this,e,t),$a(this,t,"preventClose")||await i.close(),r.getData?r.getData():i}}async function Va(e,t){const n=e.getWriter();await n.ready,e.size+=rl(t),await n.write(t),n.releaseLock()}function Za(e){if(e)return(BigInt(e.getTime())+BigInt(116444736e5))*BigInt(1e4)}function $a(e,t,n,r){const i=t[n]===Lr?e.options[n]:t[n];return i===Lr?r:i}function Xa(e,t,n){e.setUint8(t,n)}function Qa(e,t,n){e.setUint16(t,n,!0)}function Ja(e,t,n){e.setUint32(t,n,!0)}function el(e,t,n){e.setBigUint64(t,n,!0)}function tl(e,t,n){e.set(t,n)}function nl(e){return new DataView(e.buffer)}function rl(...e){let t=0;return e.forEach((e=>e&&(t+=e.length))),t}class il{constructor(e,t,n,r){const i=this;if(e.root&&r&&r.getChildByName(t))throw new Error("Entry filename already exists");n||(n={}),Object.assign(i,{fs:e,name:t,data:n.data,options:n.options,id:e.entries.length,parent:r,children:[],uncompressedSize:0}),e.entries.push(i),r&&i.parent.children.push(i)}moveTo(e){this.fs.move(this,e)}getFullname(){return this.getRelativeName()}getRelativeName(e=this.fs.root){let t=this.name,n=this.parent;for(;n&&n!=e;)t=(n.name?n.name+"/":"")+t,n=n.parent;return t}isDescendantOf(e){let t=this.parent;for(;t&&t.id!=e.id;)t=t.parent;return Boolean(t)}rename(e){const t=this.parent;if(t&&t.getChildByName(e))throw new Error("Entry filename already exists");this.name=e}}class ol extends il{constructor(e,t,n,r){super(e,t,n,r);const i=this;i.Reader=n.Reader,i.Writer=n.Writer,n.getData&&(i.getData=n.getData)}clone(){return new ol(this.fs,this.name,this)}async getData(e,t={}){const n=this;if(!e||e.constructor==n.Writer&&n.data)return n.data;{const r=n.reader=new n.Reader(n.data,t);await Promise.all([Xo(r),Xo(e,n.data.uncompressedSize)]);const i=r.readable;return i.size=n.uncompressedSize=r.size,await i.pipeTo(e.writable),e.getData?e.getData():e.writable}}isPasswordProtected(){return this.data.encrypted}async checkPassword(e,t={}){const n=this;if(!n.isPasswordProtected())return!0;t.password=e,t.checkPasswordOnly=!0;try{return await n.data.getData(null,t),!0}catch(e){if(e.message==Xr)return!1;throw e}}getText(e,t){return this.getData(new Po(e),t)}getBlob(e,t){return this.getData(new Co(e),t)}getData64URI(e,t){return this.getData(new Oo(e),t)}getUint8Array(e){return this.getData(new Vo,e)}getWritable(e=new WritableStream,t){return this.getData({writable:e},t)}replaceBlob(e){Object.assign(this,{data:e,Reader:Ao,Writer:Co,reader:null})}replaceText(e){Object.assign(this,{data:e,Reader:No,Writer:Po,reader:null})}replaceData64URI(e){Object.assign(this,{data:e,Reader:Lo,Writer:Oo,reader:null})}replaceUint8Array(e){Object.assign(this,{data:e,Reader:Go,Writer:Vo,reader:null})}replaceReadable(e){Object.assign(this,{data:null,Reader:function(){return{readable:e}},Writer:null,reader:null})}}class al extends il{constructor(e,t,n,r){super(e,t,n,r),this.directory=!0}clone(e){const t=this,n=new al(t.fs,t.name);return e&&(n.children=t.children.map((t=>{const r=t.clone(e);return r.parent=n,r}))),n}addDirectory(e,t){return dl(this,e,{options:t},!0)}addText(e,t,n={}){return dl(this,e,{data:t,Reader:No,Writer:Po,options:n})}addBlob(e,t,n={}){return dl(this,e,{data:t,Reader:Ao,Writer:Co,options:n})}addData64URI(e,t,n={}){return dl(this,e,{data:t,Reader:Lo,Writer:Oo,options:n})}addUint8Array(e,t,n={}){return dl(this,e,{data:t,Reader:Go,Writer:Vo,options:n})}addHttpContent(e,t,n={}){return dl(this,e,{data:t,Reader:class extends Yo{constructor(e){super(e,n)}},options:n})}addReadable(e,t,n={}){return dl(this,e,{Reader:function(){return{readable:t}},options:n})}addFileSystemEntry(e,t={}){return async function(e,t,n){if(t.isDirectory){const i=e.addDirectory(t.name,n);return await r(i,t),i}return new Promise(((r,i)=>t.file((i=>r(e.addBlob(t.name,i,n))),i)));async function r(e,t){const i=await function(e){return new Promise(((t,n)=>{let r=[];function i(e){e.readEntries((n=>{n.length?(r=r.concat(n),i(e)):t(r)}),n)}e.isDirectory&&i(e.createReader()),e.isFile&&t(r)}))}(t);for(const t of i)t.isDirectory?await r(e.addDirectory(t.name,n),t):await new Promise(((r,i)=>{t.file((i=>{const o=e.addBlob(t.name,i,n);o.uncompressedSize=i.size,r(o)}),i)}))}}(this,e,t)}addData(e,t){return dl(this,e,t)}importBlob(e,t){return this.importZip(new Ao(e),t)}importData64URI(e,t){return this.importZip(new Lo(e),t)}importUint8Array(e,t){return this.importZip(new Go(e),t)}importHttpContent(e,t){return this.importZip(new Yo(e,t),t)}importReadable(e,t){return this.importZip({readable:e},t)}exportBlob(e={}){return this.exportZip(new Co(e.mimeType||"application/zip"),e)}exportData64URI(e={}){return this.exportZip(new Oo(e.mimeType||"application/zip"),e)}exportUint8Array(e={}){return this.exportZip(new Vo,e)}async exportWritable(e=new WritableStream,t={}){return await this.exportZip({writable:e},t),e}async importZip(e,t={}){await Xo(e);const n=new Aa(e,t),r=[];return(await n.getEntries()).forEach((e=>{let n=this;const i=e.filename.split("/"),o=i.pop();i.forEach((e=>{const t=n;n=n.getChildByName(e),n||(n=new al(this.fs,e,null,t),r.push(n))})),e.directory||r.push(dl(n,o,{data:e,Reader:ll(Object.assign({},t))}))})),r}async exportZip(e,t){const n=this;await Promise.all([sl(n,t.readerOptions),Xo(e)]);const r=new Ga(e,t);return await async function(e,t,n,r){const i=t,o=new Map;await async function e(t,a){async function l(a){const l=r.relativePath?a.getRelativeName(i):a.getFullname();let s,u,c,d,f=a.options||{};a.data instanceof xa&&({externalFileAttribute:s,versionMadeBy:u,comment:c,lastModDate:d}=a.data),await t.add(l,a.reader,Object.assign({directory:a.directory},Object.assign({},r,{externalFileAttribute:s,versionMadeBy:u,comment:c,lastModDate:d,onprogress:async e=>{if(r.onprogress){o.set(l,e);try{await r.onprogress(Array.from(o.values()).reduce(((e,t)=>e+t)),n)}catch(e){}}}},f))),await e(t,a)}await async function(){if(r.bufferedWrite)await Promise.all(a.children.map(l));else for(const e of a.children)await l(e)}()}(e,t)}(r,n,function(e,t){let n=0;return e.forEach((function e(t){n+=t.uncompressedSize,t.children&&t.children.forEach(e)})),n}([n]),t),await r.close(),e.getData?e.getData():e.writable}getChildByName(e){const t=this.children;for(let n=0;n<t.length;n++){const r=t[n];if(r.name==e)return r}}isPasswordProtected(){const e=this.children;for(let t=0;t<e.length;t++)if(e[t].isPasswordProtected())return!0;return!1}async checkPassword(e,t={}){const n=this.children;return!(await Promise.all(n.map((n=>n.checkPassword(e,t))))).includes(!1)}}function ll(e){return class extends So{constructor(e,t={}){super(),this.entry=e,this.options=t}async init(){const t=this;t.size=t.entry.uncompressedSize;const n=await t.entry.getData(new Co,Object.assign({},t.options,e));t.data=n,t.blobReader=new Ao(n),super.init()}readUint8Array(e,t){return this.blobReader.readUint8Array(e,t)}}}async function sl(e,t){e.children.length&&await Promise.all(e.children.map((async e=>{if(e.directory)await sl(e,t);else{const n=e.reader=new e.Reader(e.data,t);try{await Xo(n)}catch(t){try{t.entryId=e.id}catch(e){}throw t}e.uncompressedSize=n.size}})))}function ul(e){if(e.parent){const t=e.parent.children;t.forEach(((n,r)=>{n.id==e.id&&t.splice(r,1)}))}}function cl(e){e.entries=[],e.root=new al(e)}function dl(e,t,n,r){if(e.directory)return r?new al(e.fs,t,n,e):new ol(e.fs,t,n,e);throw new Error("Parent entry is not a directory")}let fl;try{fl="file:///Users/mike/Documents/GitHub/Chimichimera/node_modules/@zip.js/zip.js/lib/zip-fs.js"}catch(e){}Rr({baseURL:fl}),function(e){const t=()=>URL.createObjectURL(new Blob(['const{Array:e,Object:t,Number:n,Math:r,Error:s,Uint8Array:i,Uint16Array:o,Uint32Array:c,Int32Array:f,Map:a,DataView:l,Promise:u,TextEncoder:w,crypto:h,postMessage:d,TransformStream:p,ReadableStream:y,WritableStream:m,CompressionStream:b,DecompressionStream:g}=self;class k{constructor(e){return class extends p{constructor(t,n){const r=new e(n);super({transform(e,t){t.enqueue(r.append(e))},flush(e){const t=r.flush();t&&e.enqueue(t)}})}}}}const v=[];for(let e=0;256>e;e++){let t=e;for(let e=0;8>e;e++)1&t?t=t>>>1^3988292384:t>>>=1;v[e]=t}class S{constructor(e){this.t=e||-1}append(e){let t=0|this.t;for(let n=0,r=0|e.length;r>n;n++)t=t>>>8^v[255&(t^e[n])];this.t=t}get(){return~this.t}}class z extends p{constructor(){const e=new S;super({transform(t){e.append(t)},flush(t){const n=new i(4);new l(n.buffer).setUint32(0,e.get()),t.enqueue(n)}})}}const C={concat(e,t){if(0===e.length||0===t.length)return e.concat(t);const n=e[e.length-1],r=C.i(n);return 32===r?e.concat(t):C.o(t,r,0|n,e.slice(0,e.length-1))},l(e){const t=e.length;if(0===t)return 0;const n=e[t-1];return 32*(t-1)+C.i(n)},u(e,t){if(32*e.length<t)return e;const n=(e=e.slice(0,r.ceil(t/32))).length;return t&=31,n>0&&t&&(e[n-1]=C.h(t,e[n-1]&2147483648>>t-1,1)),e},h:(e,t,n)=>32===e?t:(n?0|t:t<<32-e)+1099511627776*e,i:e=>r.round(e/1099511627776)||32,o(e,t,n,r){for(void 0===r&&(r=[]);t>=32;t-=32)r.push(n),n=0;if(0===t)return r.concat(e);for(let s=0;s<e.length;s++)r.push(n|e[s]>>>t),n=e[s]<<32-t;const s=e.length?e[e.length-1]:0,i=C.i(s);return r.push(C.h(t+i&31,t+i>32?n:r.pop(),1)),r}},x={p:{m(e){const t=C.l(e)/8,n=new i(t);let r;for(let s=0;t>s;s++)0==(3&s)&&(r=e[s/4]),n[s]=r>>>24,r<<=8;return n},g(e){const t=[];let n,r=0;for(n=0;n<e.length;n++)r=r<<8|e[n],3==(3&n)&&(t.push(r),r=0);return 3&n&&t.push(C.h(8*(3&n),r)),t}}},_=class{constructor(e){const t=this;t.blockSize=512,t.k=[1732584193,4023233417,2562383102,271733878,3285377520],t.v=[1518500249,1859775393,2400959708,3395469782],e?(t.S=e.S.slice(0),t.C=e.C.slice(0),t._=e._):t.reset()}reset(){const e=this;return e.S=e.k.slice(0),e.C=[],e._=0,e}update(e){const t=this;"string"==typeof e&&(e=x.A.g(e));const n=t.C=C.concat(t.C,e),r=t._,i=t._=r+C.l(e);if(i>9007199254740991)throw new s("Cannot hash more than 2^53 - 1 bits");const o=new c(n);let f=0;for(let e=t.blockSize+r-(t.blockSize+r&t.blockSize-1);i>=e;e+=t.blockSize)t.I(o.subarray(16*f,16*(f+1))),f+=1;return n.splice(0,16*f),t}D(){const e=this;let t=e.C;const n=e.S;t=C.concat(t,[C.h(1,1)]);for(let e=t.length+2;15&e;e++)t.push(0);for(t.push(r.floor(e._/4294967296)),t.push(0|e._);t.length;)e.I(t.splice(0,16));return e.reset(),n}V(e,t,n,r){return e>19?e>39?e>59?e>79?void 0:t^n^r:t&n|t&r|n&r:t^n^r:t&n|~t&r}P(e,t){return t<<e|t>>>32-e}I(t){const n=this,s=n.S,i=e(80);for(let e=0;16>e;e++)i[e]=t[e];let o=s[0],c=s[1],f=s[2],a=s[3],l=s[4];for(let e=0;79>=e;e++){16>e||(i[e]=n.P(1,i[e-3]^i[e-8]^i[e-14]^i[e-16]));const t=n.P(5,o)+n.V(e,c,f,a)+l+i[e]+n.v[r.floor(e/20)]|0;l=a,a=f,f=n.P(30,c),c=o,o=t}s[0]=s[0]+o|0,s[1]=s[1]+c|0,s[2]=s[2]+f|0,s[3]=s[3]+a|0,s[4]=s[4]+l|0}},A={getRandomValues(e){const t=new c(e.buffer),n=e=>{let t=987654321;const n=4294967295;return()=>(t=36969*(65535&t)+(t>>16)&n,(((t<<16)+(e=18e3*(65535&e)+(e>>16)&n)&n)/4294967296+.5)*(r.random()>.5?1:-1))};for(let s,i=0;i<e.length;i+=4){const e=n(4294967296*(s||r.random()));s=987654071*e(),t[i/4]=4294967296*e()|0}return e}},I={importKey:e=>new I.R(x.p.g(e)),B(e,t,n,r){if(n=n||1e4,0>r||0>n)throw new s("invalid params to pbkdf2");const i=1+(r>>5)<<2;let o,c,f,a,u;const w=new ArrayBuffer(i),h=new l(w);let d=0;const p=C;for(t=x.p.g(t),u=1;(i||1)>d;u++){for(o=c=e.encrypt(p.concat(t,[u])),f=1;n>f;f++)for(c=e.encrypt(c),a=0;a<c.length;a++)o[a]^=c[a];for(f=0;(i||1)>d&&f<o.length;f++)h.setInt32(d,o[f]),d+=4}return w.slice(0,r/8)},R:class{constructor(e){const t=this,n=t.M=_,r=[[],[]];t.K=[new n,new n];const s=t.K[0].blockSize/32;e.length>s&&(e=(new n).update(e).D());for(let t=0;s>t;t++)r[0][t]=909522486^e[t],r[1][t]=1549556828^e[t];t.K[0].update(r[0]),t.K[1].update(r[1]),t.U=new n(t.K[0])}reset(){const e=this;e.U=new e.M(e.K[0]),e.N=!1}update(e){this.N=!0,this.U.update(e)}digest(){const e=this,t=e.U.D(),n=new e.M(e.K[1]).update(t).D();return e.reset(),n}encrypt(e){if(this.N)throw new s("encrypt on already updated hmac called!");return this.update(e),this.digest(e)}}},D=void 0!==h&&"function"==typeof h.getRandomValues,V="Invalid password",P="Invalid signature",R="zipjs-abort-check-password";function B(e){return D?h.getRandomValues(e):A.getRandomValues(e)}const E=16,M={name:"PBKDF2"},K=t.assign({hash:{name:"HMAC"}},M),U=t.assign({iterations:1e3,hash:{name:"SHA-1"}},M),N=["deriveBits"],O=[8,12,16],T=[16,24,32],W=10,j=[0,0,0,0],H="undefined",L="function",F=typeof h!=H,q=F&&h.subtle,G=F&&typeof q!=H,J=x.p,Q=class{constructor(e){const t=this;t.O=[[[],[],[],[],[]],[[],[],[],[],[]]],t.O[0][0][0]||t.T();const n=t.O[0][4],r=t.O[1],i=e.length;let o,c,f,a=1;if(4!==i&&6!==i&&8!==i)throw new s("invalid aes key size");for(t.v=[c=e.slice(0),f=[]],o=i;4*i+28>o;o++){let e=c[o-1];(o%i==0||8===i&&o%i==4)&&(e=n[e>>>24]<<24^n[e>>16&255]<<16^n[e>>8&255]<<8^n[255&e],o%i==0&&(e=e<<8^e>>>24^a<<24,a=a<<1^283*(a>>7))),c[o]=c[o-i]^e}for(let e=0;o;e++,o--){const t=c[3&e?o:o-4];f[e]=4>=o||4>e?t:r[0][n[t>>>24]]^r[1][n[t>>16&255]]^r[2][n[t>>8&255]]^r[3][n[255&t]]}}encrypt(e){return this.W(e,0)}decrypt(e){return this.W(e,1)}T(){const e=this.O[0],t=this.O[1],n=e[4],r=t[4],s=[],i=[];let o,c,f,a;for(let e=0;256>e;e++)i[(s[e]=e<<1^283*(e>>7))^e]=e;for(let l=o=0;!n[l];l^=c||1,o=i[o]||1){let i=o^o<<1^o<<2^o<<3^o<<4;i=i>>8^255&i^99,n[l]=i,r[i]=l,a=s[f=s[c=s[l]]];let u=16843009*a^65537*f^257*c^16843008*l,w=257*s[i]^16843008*i;for(let n=0;4>n;n++)e[n][l]=w=w<<24^w>>>8,t[n][i]=u=u<<24^u>>>8}for(let n=0;5>n;n++)e[n]=e[n].slice(0),t[n]=t[n].slice(0)}W(e,t){if(4!==e.length)throw new s("invalid aes block size");const n=this.v[t],r=n.length/4-2,i=[0,0,0,0],o=this.O[t],c=o[0],f=o[1],a=o[2],l=o[3],u=o[4];let w,h,d,p=e[0]^n[0],y=e[t?3:1]^n[1],m=e[2]^n[2],b=e[t?1:3]^n[3],g=4;for(let e=0;r>e;e++)w=c[p>>>24]^f[y>>16&255]^a[m>>8&255]^l[255&b]^n[g],h=c[y>>>24]^f[m>>16&255]^a[b>>8&255]^l[255&p]^n[g+1],d=c[m>>>24]^f[b>>16&255]^a[p>>8&255]^l[255&y]^n[g+2],b=c[b>>>24]^f[p>>16&255]^a[y>>8&255]^l[255&m]^n[g+3],g+=4,p=w,y=h,m=d;for(let e=0;4>e;e++)i[t?3&-e:e]=u[p>>>24]<<24^u[y>>16&255]<<16^u[m>>8&255]<<8^u[255&b]^n[g++],w=p,p=y,y=m,m=b,b=w;return i}},X=class{constructor(e,t){this.j=e,this.H=t,this.L=t}reset(){this.L=this.H}update(e){return this.F(this.j,e,this.L)}q(e){if(255==(e>>24&255)){let t=e>>16&255,n=e>>8&255,r=255&e;255===t?(t=0,255===n?(n=0,255===r?r=0:++r):++n):++t,e=0,e+=t<<16,e+=n<<8,e+=r}else e+=1<<24;return e}G(e){0===(e[0]=this.q(e[0]))&&(e[1]=this.q(e[1]))}F(e,t,n){let r;if(!(r=t.length))return[];const s=C.l(t);for(let s=0;r>s;s+=4){this.G(n);const r=e.encrypt(n);t[s]^=r[0],t[s+1]^=r[1],t[s+2]^=r[2],t[s+3]^=r[3]}return C.u(t,s)}},Y=I.R;let Z=F&&G&&typeof q.importKey==L,$=F&&G&&typeof q.deriveBits==L;class ee extends p{constructor({password:e,signed:n,encryptionStrength:r,checkPasswordOnly:o}){super({start(){t.assign(this,{ready:new u((e=>this.J=e)),password:e,signed:n,X:r-1,pending:new i})},async transform(e,t){const n=this,{password:r,X:c,J:f,ready:a}=n;r?(await(async(e,t,n,r)=>{const i=await re(e,t,n,ie(r,0,O[t])),o=ie(r,O[t]);if(i[0]!=o[0]||i[1]!=o[1])throw new s(V)})(n,c,r,ie(e,0,O[c]+2)),e=ie(e,O[c]+2),o?t.error(new s(R)):f()):await a;const l=new i(e.length-W-(e.length-W)%E);t.enqueue(ne(n,e,l,0,W,!0))},async flush(e){const{signed:t,Y:n,Z:r,pending:o,ready:c}=this;await c;const f=ie(o,0,o.length-W),a=ie(o,o.length-W);let l=new i;if(f.length){const e=ce(J,f);r.update(e);const t=n.update(e);l=oe(J,t)}if(t){const e=ie(oe(J,r.digest()),0,W);for(let t=0;W>t;t++)if(e[t]!=a[t])throw new s(P)}e.enqueue(l)}})}}class te extends p{constructor({password:e,encryptionStrength:n}){let r;super({start(){t.assign(this,{ready:new u((e=>this.J=e)),password:e,X:n-1,pending:new i})},async transform(e,t){const n=this,{password:r,X:s,J:o,ready:c}=n;let f=new i;r?(f=await(async(e,t,n)=>{const r=B(new i(O[t]));return se(r,await re(e,t,n,r))})(n,s,r),o()):await c;const a=new i(f.length+e.length-e.length%E);a.set(f,0),t.enqueue(ne(n,e,a,f.length,0))},async flush(e){const{Y:t,Z:n,pending:s,ready:o}=this;await o;let c=new i;if(s.length){const e=t.update(ce(J,s));n.update(e),c=oe(J,e)}r.signature=oe(J,n.digest()).slice(0,W),e.enqueue(se(c,r.signature))}}),r=this}}function ne(e,t,n,r,s,o){const{Y:c,Z:f,pending:a}=e,l=t.length-s;let u;for(a.length&&(t=se(a,t),n=((e,t)=>{if(t&&t>e.length){const n=e;(e=new i(t)).set(n,0)}return e})(n,l-l%E)),u=0;l-E>=u;u+=E){const e=ce(J,ie(t,u,u+E));o&&f.update(e);const s=c.update(e);o||f.update(s),n.set(oe(J,s),u+r)}return e.pending=ie(t,u),n}async function re(n,r,s,o){n.password=null;const c=(e=>{if(void 0===w){const t=new i((e=unescape(encodeURIComponent(e))).length);for(let n=0;n<t.length;n++)t[n]=e.charCodeAt(n);return t}return(new w).encode(e)})(s),f=await(async(e,t,n,r,s)=>{if(!Z)return I.importKey(t);try{return await q.importKey("raw",t,n,!1,s)}catch(e){return Z=!1,I.importKey(t)}})(0,c,K,0,N),a=await(async(e,t,n)=>{if(!$)return I.B(t,e.salt,U.iterations,n);try{return await q.deriveBits(e,t,n)}catch(r){return $=!1,I.B(t,e.salt,U.iterations,n)}})(t.assign({salt:o},U),f,8*(2*T[r]+2)),l=new i(a),u=ce(J,ie(l,0,T[r])),h=ce(J,ie(l,T[r],2*T[r])),d=ie(l,2*T[r]);return t.assign(n,{keys:{key:u,$:h,passwordVerification:d},Y:new X(new Q(u),e.from(j)),Z:new Y(h)}),d}function se(e,t){let n=e;return e.length+t.length&&(n=new i(e.length+t.length),n.set(e,0),n.set(t,e.length)),n}function ie(e,t,n){return e.subarray(t,n)}function oe(e,t){return e.m(t)}function ce(e,t){return e.g(t)}class fe extends p{constructor({password:e,passwordVerification:n,checkPasswordOnly:r}){super({start(){t.assign(this,{password:e,passwordVerification:n}),we(this,e)},transform(e,t){const n=this;if(n.password){const t=le(n,e.subarray(0,12));if(n.password=null,t[11]!=n.passwordVerification)throw new s(V);e=e.subarray(12)}r?t.error(new s(R)):t.enqueue(le(n,e))}})}}class ae extends p{constructor({password:e,passwordVerification:n}){super({start(){t.assign(this,{password:e,passwordVerification:n}),we(this,e)},transform(e,t){const n=this;let r,s;if(n.password){n.password=null;const t=B(new i(12));t[11]=n.passwordVerification,r=new i(e.length+t.length),r.set(ue(n,t),0),s=12}else r=new i(e.length),s=0;r.set(ue(n,e),s),t.enqueue(r)}})}}function le(e,t){const n=new i(t.length);for(let r=0;r<t.length;r++)n[r]=de(e)^t[r],he(e,n[r]);return n}function ue(e,t){const n=new i(t.length);for(let r=0;r<t.length;r++)n[r]=de(e)^t[r],he(e,t[r]);return n}function we(e,n){const r=[305419896,591751049,878082192];t.assign(e,{keys:r,ee:new S(r[0]),te:new S(r[2])});for(let t=0;t<n.length;t++)he(e,n.charCodeAt(t))}function he(e,t){let[n,s,i]=e.keys;e.ee.append([t]),n=~e.ee.get(),s=ye(r.imul(ye(s+pe(n)),134775813)+1),e.te.append([s>>>24]),i=~e.te.get(),e.keys=[n,s,i]}function de(e){const t=2|e.keys[2];return pe(r.imul(t,1^t)>>>8)}function pe(e){return 255&e}function ye(e){return 4294967295&e}const me="deflate-raw";class be extends p{constructor(e,{chunkSize:t,CompressionStream:n,CompressionStreamNative:r}){super({});const{compressed:s,encrypted:i,useCompressionStream:o,zipCrypto:c,signed:f,level:a}=e,u=this;let w,h,d=ke(super.readable);i&&!c||!f||([d,w]=d.tee(),w=ze(w,new z)),s&&(d=Se(d,o,{level:a,chunkSize:t},r,n)),i&&(c?d=ze(d,new ae(e)):(h=new te(e),d=ze(d,h))),ve(u,d,(async()=>{let e;i&&!c&&(e=h.signature),i&&!c||!f||(e=await w.getReader().read(),e=new l(e.value.buffer).getUint32(0)),u.signature=e}))}}class ge extends p{constructor(e,{chunkSize:t,DecompressionStream:n,DecompressionStreamNative:r}){super({});const{zipCrypto:i,encrypted:o,signed:c,signature:f,compressed:a,useCompressionStream:u}=e;let w,h,d=ke(super.readable);o&&(i?d=ze(d,new fe(e)):(h=new ee(e),d=ze(d,h))),a&&(d=Se(d,u,{chunkSize:t},r,n)),o&&!i||!c||([d,w]=d.tee(),w=ze(w,new z)),ve(this,d,(async()=>{if((!o||i)&&c){const e=await w.getReader().read(),t=new l(e.value.buffer);if(f!=t.getUint32(0,!1))throw new s(P)}}))}}function ke(e){return ze(e,new p({transform(e,t){e&&e.length&&t.enqueue(e)}}))}function ve(e,n,r){n=ze(n,new p({flush:r})),t.defineProperty(e,"readable",{get:()=>n})}function Se(e,t,n,r,s){try{e=ze(e,new(t&&r?r:s)(me,n))}catch(r){if(!t)throw r;e=ze(e,new s(me,n))}return e}function ze(e,t){return e.pipeThrough(t)}const Ce="data";class xe extends p{constructor(e,n){super({});const r=this,{codecType:s}=e;let i;s.startsWith("deflate")?i=be:s.startsWith("inflate")&&(i=ge);let o=0;const c=new i(e,n),f=super.readable,a=new p({transform(e,t){e&&e.length&&(o+=e.length,t.enqueue(e))},flush(){const{signature:e}=c;t.assign(r,{signature:e,size:o})}});t.defineProperty(r,"readable",{get:()=>f.pipeThrough(c).pipeThrough(a)})}}const _e=new a,Ae=new a;let Ie=0;async function De(e){try{const{options:t,scripts:r,config:s}=e;r&&r.length&&importScripts.apply(void 0,r),self.initCodec&&self.initCodec(),s.CompressionStreamNative=self.CompressionStream,s.DecompressionStreamNative=self.DecompressionStream,self.Deflate&&(s.CompressionStream=new k(self.Deflate)),self.Inflate&&(s.DecompressionStream=new k(self.Inflate));const i={highWaterMark:1,size:()=>s.chunkSize},o=e.readable||new y({async pull(e){const t=new u((e=>_e.set(Ie,e)));Ve({type:"pull",messageId:Ie}),Ie=(Ie+1)%n.MAX_SAFE_INTEGER;const{value:r,done:s}=await t;e.enqueue(r),s&&e.close()}},i),c=e.writable||new m({async write(e){let t;const r=new u((e=>t=e));Ae.set(Ie,t),Ve({type:Ce,value:e,messageId:Ie}),Ie=(Ie+1)%n.MAX_SAFE_INTEGER,await r}},i),f=new xe(t,s);await o.pipeThrough(f).pipeTo(c,{preventClose:!0,preventAbort:!0});try{await c.close()}catch(e){}const{signature:a,size:l}=f;Ve({type:"close",result:{signature:a,size:l}})}catch(e){Pe(e)}}function Ve(e){let{value:t}=e;if(t)if(t.length)try{t=new i(t),e.value=t.buffer,d(e,[e.value])}catch(t){d(e)}else d(e);else d(e)}function Pe(e){const{message:t,stack:n,code:r,name:s}=e;d({error:{message:t,stack:n,code:r,name:s}})}addEventListener("message",(({data:e})=>{const{type:t,messageId:n,value:r,done:s}=e;try{if("start"==t&&De(e),t==Ce){const e=_e.get(n);_e.delete(n),e({value:new i(r),done:s})}if("ack"==t){const e=Ae.get(n);Ae.delete(n),e()}}catch(e){Pe(e)}}));const Re=-2;function Be(t){return Ee(t.map((([t,n])=>new e(t).fill(n,0,t))))}function Ee(t){return t.reduce(((t,n)=>t.concat(e.isArray(n)?Ee(n):n)),[])}const Me=[0,1,2,3].concat(...Be([[2,4],[2,5],[4,6],[4,7],[8,8],[8,9],[16,10],[16,11],[32,12],[32,13],[64,14],[64,15],[2,0],[1,16],[1,17],[2,18],[2,19],[4,20],[4,21],[8,22],[8,23],[16,24],[16,25],[32,26],[32,27],[64,28],[64,29]]));function Ke(){const e=this;function t(e,t){let n=0;do{n|=1&e,e>>>=1,n<<=1}while(--t>0);return n>>>1}e.ne=n=>{const s=e.re,i=e.ie.se,o=e.ie.oe;let c,f,a,l=-1;for(n.ce=0,n.fe=573,c=0;o>c;c++)0!==s[2*c]?(n.ae[++n.ce]=l=c,n.le[c]=0):s[2*c+1]=0;for(;2>n.ce;)a=n.ae[++n.ce]=2>l?++l:0,s[2*a]=1,n.le[a]=0,n.ue--,i&&(n.we-=i[2*a+1]);for(e.he=l,c=r.floor(n.ce/2);c>=1;c--)n.de(s,c);a=o;do{c=n.ae[1],n.ae[1]=n.ae[n.ce--],n.de(s,1),f=n.ae[1],n.ae[--n.fe]=c,n.ae[--n.fe]=f,s[2*a]=s[2*c]+s[2*f],n.le[a]=r.max(n.le[c],n.le[f])+1,s[2*c+1]=s[2*f+1]=a,n.ae[1]=a++,n.de(s,1)}while(n.ce>=2);n.ae[--n.fe]=n.ae[1],(t=>{const n=e.re,r=e.ie.se,s=e.ie.pe,i=e.ie.ye,o=e.ie.me;let c,f,a,l,u,w,h=0;for(l=0;15>=l;l++)t.be[l]=0;for(n[2*t.ae[t.fe]+1]=0,c=t.fe+1;573>c;c++)f=t.ae[c],l=n[2*n[2*f+1]+1]+1,l>o&&(l=o,h++),n[2*f+1]=l,f>e.he||(t.be[l]++,u=0,i>f||(u=s[f-i]),w=n[2*f],t.ue+=w*(l+u),r&&(t.we+=w*(r[2*f+1]+u)));if(0!==h){do{for(l=o-1;0===t.be[l];)l--;t.be[l]--,t.be[l+1]+=2,t.be[o]--,h-=2}while(h>0);for(l=o;0!==l;l--)for(f=t.be[l];0!==f;)a=t.ae[--c],a>e.he||(n[2*a+1]!=l&&(t.ue+=(l-n[2*a+1])*n[2*a],n[2*a+1]=l),f--)}})(n),((e,n,r)=>{const s=[];let i,o,c,f=0;for(i=1;15>=i;i++)s[i]=f=f+r[i-1]<<1;for(o=0;n>=o;o++)c=e[2*o+1],0!==c&&(e[2*o]=t(s[c]++,c))})(s,e.he,n.be)}}function Ue(e,t,n,r,s){const i=this;i.se=e,i.pe=t,i.ye=n,i.oe=r,i.me=s}Ke.ge=[0,1,2,3,4,5,6,7].concat(...Be([[2,8],[2,9],[2,10],[2,11],[4,12],[4,13],[4,14],[4,15],[8,16],[8,17],[8,18],[8,19],[16,20],[16,21],[16,22],[16,23],[32,24],[32,25],[32,26],[31,27],[1,28]])),Ke.ke=[0,1,2,3,4,5,6,7,8,10,12,14,16,20,24,28,32,40,48,56,64,80,96,112,128,160,192,224,0],Ke.ve=[0,1,2,3,4,6,8,12,16,24,32,48,64,96,128,192,256,384,512,768,1024,1536,2048,3072,4096,6144,8192,12288,16384,24576],Ke.Se=e=>256>e?Me[e]:Me[256+(e>>>7)],Ke.ze=[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],Ke.Ce=[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],Ke.xe=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],Ke._e=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];const Ne=Be([[144,8],[112,9],[24,7],[8,8]]);Ue.Ae=Ee([12,140,76,204,44,172,108,236,28,156,92,220,60,188,124,252,2,130,66,194,34,162,98,226,18,146,82,210,50,178,114,242,10,138,74,202,42,170,106,234,26,154,90,218,58,186,122,250,6,134,70,198,38,166,102,230,22,150,86,214,54,182,118,246,14,142,78,206,46,174,110,238,30,158,94,222,62,190,126,254,1,129,65,193,33,161,97,225,17,145,81,209,49,177,113,241,9,137,73,201,41,169,105,233,25,153,89,217,57,185,121,249,5,133,69,197,37,165,101,229,21,149,85,213,53,181,117,245,13,141,77,205,45,173,109,237,29,157,93,221,61,189,125,253,19,275,147,403,83,339,211,467,51,307,179,435,115,371,243,499,11,267,139,395,75,331,203,459,43,299,171,427,107,363,235,491,27,283,155,411,91,347,219,475,59,315,187,443,123,379,251,507,7,263,135,391,71,327,199,455,39,295,167,423,103,359,231,487,23,279,151,407,87,343,215,471,55,311,183,439,119,375,247,503,15,271,143,399,79,335,207,463,47,303,175,431,111,367,239,495,31,287,159,415,95,351,223,479,63,319,191,447,127,383,255,511,0,64,32,96,16,80,48,112,8,72,40,104,24,88,56,120,4,68,36,100,20,84,52,116,3,131,67,195,35,163,99,227].map(((e,t)=>[e,Ne[t]])));const Oe=Be([[30,5]]);function Te(e,t,n,r,s){const i=this;i.Ie=e,i.De=t,i.Ve=n,i.Pe=r,i.Re=s}Ue.Be=Ee([0,16,8,24,4,20,12,28,2,18,10,26,6,22,14,30,1,17,9,25,5,21,13,29,3,19,11,27,7,23].map(((e,t)=>[e,Oe[t]]))),Ue.Ee=new Ue(Ue.Ae,Ke.ze,257,286,15),Ue.Me=new Ue(Ue.Be,Ke.Ce,0,30,15),Ue.Ke=new Ue(null,Ke.xe,0,19,7);const We=[new Te(0,0,0,0,0),new Te(4,4,8,4,1),new Te(4,5,16,8,1),new Te(4,6,32,32,1),new Te(4,4,16,16,2),new Te(8,16,32,32,2),new Te(8,16,128,128,2),new Te(8,32,128,256,2),new Te(32,128,258,1024,2),new Te(32,258,258,4096,2)],je=["need dictionary","stream end","","","stream error","data error","","buffer error","",""],He=113,Le=666,Fe=262;function qe(e,t,n,r){const s=e[2*t],i=e[2*n];return i>s||s==i&&r[t]<=r[n]}function Ge(){const e=this;let t,n,s,c,f,a,l,u,w,h,d,p,y,m,b,g,k,v,S,z,C,x,_,A,I,D,V,P,R,B,E,M,K;const U=new Ke,N=new Ke,O=new Ke;let T,W,j,H,L,F;function q(){let t;for(t=0;286>t;t++)E[2*t]=0;for(t=0;30>t;t++)M[2*t]=0;for(t=0;19>t;t++)K[2*t]=0;E[512]=1,e.ue=e.we=0,W=j=0}function G(e,t){let n,r=-1,s=e[1],i=0,o=7,c=4;0===s&&(o=138,c=3),e[2*(t+1)+1]=65535;for(let f=0;t>=f;f++)n=s,s=e[2*(f+1)+1],++i<o&&n==s||(c>i?K[2*n]+=i:0!==n?(n!=r&&K[2*n]++,K[32]++):i>10?K[36]++:K[34]++,i=0,r=n,0===s?(o=138,c=3):n==s?(o=6,c=3):(o=7,c=4))}function J(t){e.Ue[e.pending++]=t}function Q(e){J(255&e),J(e>>>8&255)}function X(e,t){let n;const r=t;F>16-r?(n=e,L|=n<<F&65535,Q(L),L=n>>>16-F,F+=r-16):(L|=e<<F&65535,F+=r)}function Y(e,t){const n=2*e;X(65535&t[n],65535&t[n+1])}function Z(e,t){let n,r,s=-1,i=e[1],o=0,c=7,f=4;for(0===i&&(c=138,f=3),n=0;t>=n;n++)if(r=i,i=e[2*(n+1)+1],++o>=c||r!=i){if(f>o)do{Y(r,K)}while(0!=--o);else 0!==r?(r!=s&&(Y(r,K),o--),Y(16,K),X(o-3,2)):o>10?(Y(18,K),X(o-11,7)):(Y(17,K),X(o-3,3));o=0,s=r,0===i?(c=138,f=3):r==i?(c=6,f=3):(c=7,f=4)}}function $(){16==F?(Q(L),L=0,F=0):8>F||(J(255&L),L>>>=8,F-=8)}function ee(t,n){let s,i,o;if(e.Ne[W]=t,e.Oe[W]=255&n,W++,0===t?E[2*n]++:(j++,t--,E[2*(Ke.ge[n]+256+1)]++,M[2*Ke.Se(t)]++),0==(8191&W)&&V>2){for(s=8*W,i=C-k,o=0;30>o;o++)s+=M[2*o]*(5+Ke.Ce[o]);if(s>>>=3,j<r.floor(W/2)&&s<r.floor(i/2))return!0}return W==T-1}function te(t,n){let r,s,i,o,c=0;if(0!==W)do{r=e.Ne[c],s=e.Oe[c],c++,0===r?Y(s,t):(i=Ke.ge[s],Y(i+256+1,t),o=Ke.ze[i],0!==o&&(s-=Ke.ke[i],X(s,o)),r--,i=Ke.Se(r),Y(i,n),o=Ke.Ce[i],0!==o&&(r-=Ke.ve[i],X(r,o)))}while(W>c);Y(256,t),H=t[513]}function ne(){F>8?Q(L):F>0&&J(255&L),L=0,F=0}function re(t,n,r){X(0+(r?1:0),3),((t,n)=>{ne(),H=8,Q(n),Q(~n),e.Ue.set(u.subarray(t,t+n),e.pending),e.pending+=n})(t,n)}function se(n){((t,n,r)=>{let s,i,o=0;V>0?(U.ne(e),N.ne(e),o=(()=>{let t;for(G(E,U.he),G(M,N.he),O.ne(e),t=18;t>=3&&0===K[2*Ke._e[t]+1];t--);return e.ue+=14+3*(t+1),t})(),s=e.ue+3+7>>>3,i=e.we+3+7>>>3,i>s||(s=i)):s=i=n+5,n+4>s||-1==t?i==s?(X(2+(r?1:0),3),te(Ue.Ae,Ue.Be)):(X(4+(r?1:0),3),((e,t,n)=>{let r;for(X(e-257,5),X(t-1,5),X(n-4,4),r=0;n>r;r++)X(K[2*Ke._e[r]+1],3);Z(E,e-1),Z(M,t-1)})(U.he+1,N.he+1,o+1),te(E,M)):re(t,n,r),q(),r&&ne()})(0>k?-1:k,C-k,n),k=C,t.Te()}function ie(){let e,n,r,s;do{if(s=w-_-C,0===s&&0===C&&0===_)s=f;else if(-1==s)s--;else if(C>=f+f-Fe){u.set(u.subarray(f,f+f),0),x-=f,C-=f,k-=f,e=y,r=e;do{n=65535&d[--r],d[r]=f>n?0:n-f}while(0!=--e);e=f,r=e;do{n=65535&h[--r],h[r]=f>n?0:n-f}while(0!=--e);s+=f}if(0===t.We)return;e=t.je(u,C+_,s),_+=e,3>_||(p=255&u[C],p=(p<<g^255&u[C+1])&b)}while(Fe>_&&0!==t.We)}function oe(e){let t,n,r=I,s=C,i=A;const o=C>f-Fe?C-(f-Fe):0;let c=B;const a=l,w=C+258;let d=u[s+i-1],p=u[s+i];R>A||(r>>=2),c>_&&(c=_);do{if(t=e,u[t+i]==p&&u[t+i-1]==d&&u[t]==u[s]&&u[++t]==u[s+1]){s+=2,t++;do{}while(u[++s]==u[++t]&&u[++s]==u[++t]&&u[++s]==u[++t]&&u[++s]==u[++t]&&u[++s]==u[++t]&&u[++s]==u[++t]&&u[++s]==u[++t]&&u[++s]==u[++t]&&w>s);if(n=258-(w-s),s=w-258,n>i){if(x=e,i=n,n>=c)break;d=u[s+i-1],p=u[s+i]}}}while((e=65535&h[e&a])>o&&0!=--r);return i>_?_:i}e.le=[],e.be=[],e.ae=[],E=[],M=[],K=[],e.de=(t,n)=>{const r=e.ae,s=r[n];let i=n<<1;for(;i<=e.ce&&(i<e.ce&&qe(t,r[i+1],r[i],e.le)&&i++,!qe(t,s,r[i],e.le));)r[n]=r[i],n=i,i<<=1;r[n]=s},e.He=(t,S,x,W,j,G)=>(W||(W=8),j||(j=8),G||(G=0),t.Le=null,-1==S&&(S=6),1>j||j>9||8!=W||9>x||x>15||0>S||S>9||0>G||G>2?Re:(t.Fe=e,a=x,f=1<<a,l=f-1,m=j+7,y=1<<m,b=y-1,g=r.floor((m+3-1)/3),u=new i(2*f),h=[],d=[],T=1<<j+6,e.Ue=new i(4*T),s=4*T,e.Ne=new o(T),e.Oe=new i(T),V=S,P=G,(t=>(t.qe=t.Ge=0,t.Le=null,e.pending=0,e.Je=0,n=He,c=0,U.re=E,U.ie=Ue.Ee,N.re=M,N.ie=Ue.Me,O.re=K,O.ie=Ue.Ke,L=0,F=0,H=8,q(),(()=>{w=2*f,d[y-1]=0;for(let e=0;y-1>e;e++)d[e]=0;D=We[V].De,R=We[V].Ie,B=We[V].Ve,I=We[V].Pe,C=0,k=0,_=0,v=A=2,z=0,p=0})(),0))(t))),e.Qe=()=>42!=n&&n!=He&&n!=Le?Re:(e.Oe=null,e.Ne=null,e.Ue=null,d=null,h=null,u=null,e.Fe=null,n==He?-3:0),e.Xe=(e,t,n)=>{let r=0;return-1==t&&(t=6),0>t||t>9||0>n||n>2?Re:(We[V].Re!=We[t].Re&&0!==e.qe&&(r=e.Ye(1)),V!=t&&(V=t,D=We[V].De,R=We[V].Ie,B=We[V].Ve,I=We[V].Pe),P=n,r)},e.Ze=(e,t,r)=>{let s,i=r,o=0;if(!t||42!=n)return Re;if(3>i)return 0;for(i>f-Fe&&(i=f-Fe,o=r-i),u.set(t.subarray(o,o+i),0),C=i,k=i,p=255&u[0],p=(p<<g^255&u[1])&b,s=0;i-3>=s;s++)p=(p<<g^255&u[s+2])&b,h[s&l]=d[p],d[p]=s;return 0},e.Ye=(r,i)=>{let o,w,m,I,R;if(i>4||0>i)return Re;if(!r.$e||!r.et&&0!==r.We||n==Le&&4!=i)return r.Le=je[4],Re;if(0===r.tt)return r.Le=je[7],-5;var B;if(t=r,I=c,c=i,42==n&&(w=8+(a-8<<4)<<8,m=(V-1&255)>>1,m>3&&(m=3),w|=m<<6,0!==C&&(w|=32),w+=31-w%31,n=He,J((B=w)>>8&255),J(255&B)),0!==e.pending){if(t.Te(),0===t.tt)return c=-1,0}else if(0===t.We&&I>=i&&4!=i)return t.Le=je[7],-5;if(n==Le&&0!==t.We)return r.Le=je[7],-5;if(0!==t.We||0!==_||0!=i&&n!=Le){switch(R=-1,We[V].Re){case 0:R=(e=>{let n,r=65535;for(r>s-5&&(r=s-5);;){if(1>=_){if(ie(),0===_&&0==e)return 0;if(0===_)break}if(C+=_,_=0,n=k+r,(0===C||C>=n)&&(_=C-n,C=n,se(!1),0===t.tt))return 0;if(C-k>=f-Fe&&(se(!1),0===t.tt))return 0}return se(4==e),0===t.tt?4==e?2:0:4==e?3:1})(i);break;case 1:R=(e=>{let n,r=0;for(;;){if(Fe>_){if(ie(),Fe>_&&0==e)return 0;if(0===_)break}if(3>_||(p=(p<<g^255&u[C+2])&b,r=65535&d[p],h[C&l]=d[p],d[p]=C),0===r||(C-r&65535)>f-Fe||2!=P&&(v=oe(r)),3>v)n=ee(0,255&u[C]),_--,C++;else if(n=ee(C-x,v-3),_-=v,v>D||3>_)C+=v,v=0,p=255&u[C],p=(p<<g^255&u[C+1])&b;else{v--;do{C++,p=(p<<g^255&u[C+2])&b,r=65535&d[p],h[C&l]=d[p],d[p]=C}while(0!=--v);C++}if(n&&(se(!1),0===t.tt))return 0}return se(4==e),0===t.tt?4==e?2:0:4==e?3:1})(i);break;case 2:R=(e=>{let n,r,s=0;for(;;){if(Fe>_){if(ie(),Fe>_&&0==e)return 0;if(0===_)break}if(3>_||(p=(p<<g^255&u[C+2])&b,s=65535&d[p],h[C&l]=d[p],d[p]=C),A=v,S=x,v=2,0!==s&&D>A&&f-Fe>=(C-s&65535)&&(2!=P&&(v=oe(s)),5>=v&&(1==P||3==v&&C-x>4096)&&(v=2)),3>A||v>A)if(0!==z){if(n=ee(0,255&u[C-1]),n&&se(!1),C++,_--,0===t.tt)return 0}else z=1,C++,_--;else{r=C+_-3,n=ee(C-1-S,A-3),_-=A-1,A-=2;do{++C>r||(p=(p<<g^255&u[C+2])&b,s=65535&d[p],h[C&l]=d[p],d[p]=C)}while(0!=--A);if(z=0,v=2,C++,n&&(se(!1),0===t.tt))return 0}}return 0!==z&&(n=ee(0,255&u[C-1]),z=0),se(4==e),0===t.tt?4==e?2:0:4==e?3:1})(i)}if(2!=R&&3!=R||(n=Le),0==R||2==R)return 0===t.tt&&(c=-1),0;if(1==R){if(1==i)X(2,3),Y(256,Ue.Ae),$(),9>1+H+10-F&&(X(2,3),Y(256,Ue.Ae),$()),H=7;else if(re(0,0,!1),3==i)for(o=0;y>o;o++)d[o]=0;if(t.Te(),0===t.tt)return c=-1,0}}return 4!=i?0:1}}function Je(){const e=this;e.nt=0,e.rt=0,e.We=0,e.qe=0,e.tt=0,e.Ge=0}function Qe(e){const t=new Je,n=(o=e&&e.chunkSize?e.chunkSize:65536)+5*(r.floor(o/16383)+1);var o;const c=new i(n);let f=e?e.level:-1;void 0===f&&(f=-1),t.He(f),t.$e=c,this.append=(e,r)=>{let o,f,a=0,l=0,u=0;const w=[];if(e.length){t.nt=0,t.et=e,t.We=e.length;do{if(t.rt=0,t.tt=n,o=t.Ye(0),0!=o)throw new s("deflating: "+t.Le);t.rt&&(t.rt==n?w.push(new i(c)):w.push(c.slice(0,t.rt))),u+=t.rt,r&&t.nt>0&&t.nt!=a&&(r(t.nt),a=t.nt)}while(t.We>0||0===t.tt);return w.length>1?(f=new i(u),w.forEach((e=>{f.set(e,l),l+=e.length}))):f=w[0]||new i,f}},this.flush=()=>{let e,r,o=0,f=0;const a=[];do{if(t.rt=0,t.tt=n,e=t.Ye(4),1!=e&&0!=e)throw new s("deflating: "+t.Le);n-t.tt>0&&a.push(c.slice(0,t.rt)),f+=t.rt}while(t.We>0||0===t.tt);return t.Qe(),r=new i(f),a.forEach((e=>{r.set(e,o),o+=e.length})),r}}Je.prototype={He(e,t){const n=this;return n.Fe=new Ge,t||(t=15),n.Fe.He(n,e,t)},Ye(e){const t=this;return t.Fe?t.Fe.Ye(t,e):Re},Qe(){const e=this;if(!e.Fe)return Re;const t=e.Fe.Qe();return e.Fe=null,t},Xe(e,t){const n=this;return n.Fe?n.Fe.Xe(n,e,t):Re},Ze(e,t){const n=this;return n.Fe?n.Fe.Ze(n,e,t):Re},je(e,t,n){const r=this;let s=r.We;return s>n&&(s=n),0===s?0:(r.We-=s,e.set(r.et.subarray(r.nt,r.nt+s),t),r.nt+=s,r.qe+=s,s)},Te(){const e=this;let t=e.Fe.pending;t>e.tt&&(t=e.tt),0!==t&&(e.$e.set(e.Fe.Ue.subarray(e.Fe.Je,e.Fe.Je+t),e.rt),e.rt+=t,e.Fe.Je+=t,e.Ge+=t,e.tt-=t,e.Fe.pending-=t,0===e.Fe.pending&&(e.Fe.Je=0))}};const Xe=-2,Ye=-3,Ze=-5,$e=[0,1,3,7,15,31,63,127,255,511,1023,2047,4095,8191,16383,32767,65535],et=[96,7,256,0,8,80,0,8,16,84,8,115,82,7,31,0,8,112,0,8,48,0,9,192,80,7,10,0,8,96,0,8,32,0,9,160,0,8,0,0,8,128,0,8,64,0,9,224,80,7,6,0,8,88,0,8,24,0,9,144,83,7,59,0,8,120,0,8,56,0,9,208,81,7,17,0,8,104,0,8,40,0,9,176,0,8,8,0,8,136,0,8,72,0,9,240,80,7,4,0,8,84,0,8,20,85,8,227,83,7,43,0,8,116,0,8,52,0,9,200,81,7,13,0,8,100,0,8,36,0,9,168,0,8,4,0,8,132,0,8,68,0,9,232,80,7,8,0,8,92,0,8,28,0,9,152,84,7,83,0,8,124,0,8,60,0,9,216,82,7,23,0,8,108,0,8,44,0,9,184,0,8,12,0,8,140,0,8,76,0,9,248,80,7,3,0,8,82,0,8,18,85,8,163,83,7,35,0,8,114,0,8,50,0,9,196,81,7,11,0,8,98,0,8,34,0,9,164,0,8,2,0,8,130,0,8,66,0,9,228,80,7,7,0,8,90,0,8,26,0,9,148,84,7,67,0,8,122,0,8,58,0,9,212,82,7,19,0,8,106,0,8,42,0,9,180,0,8,10,0,8,138,0,8,74,0,9,244,80,7,5,0,8,86,0,8,22,192,8,0,83,7,51,0,8,118,0,8,54,0,9,204,81,7,15,0,8,102,0,8,38,0,9,172,0,8,6,0,8,134,0,8,70,0,9,236,80,7,9,0,8,94,0,8,30,0,9,156,84,7,99,0,8,126,0,8,62,0,9,220,82,7,27,0,8,110,0,8,46,0,9,188,0,8,14,0,8,142,0,8,78,0,9,252,96,7,256,0,8,81,0,8,17,85,8,131,82,7,31,0,8,113,0,8,49,0,9,194,80,7,10,0,8,97,0,8,33,0,9,162,0,8,1,0,8,129,0,8,65,0,9,226,80,7,6,0,8,89,0,8,25,0,9,146,83,7,59,0,8,121,0,8,57,0,9,210,81,7,17,0,8,105,0,8,41,0,9,178,0,8,9,0,8,137,0,8,73,0,9,242,80,7,4,0,8,85,0,8,21,80,8,258,83,7,43,0,8,117,0,8,53,0,9,202,81,7,13,0,8,101,0,8,37,0,9,170,0,8,5,0,8,133,0,8,69,0,9,234,80,7,8,0,8,93,0,8,29,0,9,154,84,7,83,0,8,125,0,8,61,0,9,218,82,7,23,0,8,109,0,8,45,0,9,186,0,8,13,0,8,141,0,8,77,0,9,250,80,7,3,0,8,83,0,8,19,85,8,195,83,7,35,0,8,115,0,8,51,0,9,198,81,7,11,0,8,99,0,8,35,0,9,166,0,8,3,0,8,131,0,8,67,0,9,230,80,7,7,0,8,91,0,8,27,0,9,150,84,7,67,0,8,123,0,8,59,0,9,214,82,7,19,0,8,107,0,8,43,0,9,182,0,8,11,0,8,139,0,8,75,0,9,246,80,7,5,0,8,87,0,8,23,192,8,0,83,7,51,0,8,119,0,8,55,0,9,206,81,7,15,0,8,103,0,8,39,0,9,174,0,8,7,0,8,135,0,8,71,0,9,238,80,7,9,0,8,95,0,8,31,0,9,158,84,7,99,0,8,127,0,8,63,0,9,222,82,7,27,0,8,111,0,8,47,0,9,190,0,8,15,0,8,143,0,8,79,0,9,254,96,7,256,0,8,80,0,8,16,84,8,115,82,7,31,0,8,112,0,8,48,0,9,193,80,7,10,0,8,96,0,8,32,0,9,161,0,8,0,0,8,128,0,8,64,0,9,225,80,7,6,0,8,88,0,8,24,0,9,145,83,7,59,0,8,120,0,8,56,0,9,209,81,7,17,0,8,104,0,8,40,0,9,177,0,8,8,0,8,136,0,8,72,0,9,241,80,7,4,0,8,84,0,8,20,85,8,227,83,7,43,0,8,116,0,8,52,0,9,201,81,7,13,0,8,100,0,8,36,0,9,169,0,8,4,0,8,132,0,8,68,0,9,233,80,7,8,0,8,92,0,8,28,0,9,153,84,7,83,0,8,124,0,8,60,0,9,217,82,7,23,0,8,108,0,8,44,0,9,185,0,8,12,0,8,140,0,8,76,0,9,249,80,7,3,0,8,82,0,8,18,85,8,163,83,7,35,0,8,114,0,8,50,0,9,197,81,7,11,0,8,98,0,8,34,0,9,165,0,8,2,0,8,130,0,8,66,0,9,229,80,7,7,0,8,90,0,8,26,0,9,149,84,7,67,0,8,122,0,8,58,0,9,213,82,7,19,0,8,106,0,8,42,0,9,181,0,8,10,0,8,138,0,8,74,0,9,245,80,7,5,0,8,86,0,8,22,192,8,0,83,7,51,0,8,118,0,8,54,0,9,205,81,7,15,0,8,102,0,8,38,0,9,173,0,8,6,0,8,134,0,8,70,0,9,237,80,7,9,0,8,94,0,8,30,0,9,157,84,7,99,0,8,126,0,8,62,0,9,221,82,7,27,0,8,110,0,8,46,0,9,189,0,8,14,0,8,142,0,8,78,0,9,253,96,7,256,0,8,81,0,8,17,85,8,131,82,7,31,0,8,113,0,8,49,0,9,195,80,7,10,0,8,97,0,8,33,0,9,163,0,8,1,0,8,129,0,8,65,0,9,227,80,7,6,0,8,89,0,8,25,0,9,147,83,7,59,0,8,121,0,8,57,0,9,211,81,7,17,0,8,105,0,8,41,0,9,179,0,8,9,0,8,137,0,8,73,0,9,243,80,7,4,0,8,85,0,8,21,80,8,258,83,7,43,0,8,117,0,8,53,0,9,203,81,7,13,0,8,101,0,8,37,0,9,171,0,8,5,0,8,133,0,8,69,0,9,235,80,7,8,0,8,93,0,8,29,0,9,155,84,7,83,0,8,125,0,8,61,0,9,219,82,7,23,0,8,109,0,8,45,0,9,187,0,8,13,0,8,141,0,8,77,0,9,251,80,7,3,0,8,83,0,8,19,85,8,195,83,7,35,0,8,115,0,8,51,0,9,199,81,7,11,0,8,99,0,8,35,0,9,167,0,8,3,0,8,131,0,8,67,0,9,231,80,7,7,0,8,91,0,8,27,0,9,151,84,7,67,0,8,123,0,8,59,0,9,215,82,7,19,0,8,107,0,8,43,0,9,183,0,8,11,0,8,139,0,8,75,0,9,247,80,7,5,0,8,87,0,8,23,192,8,0,83,7,51,0,8,119,0,8,55,0,9,207,81,7,15,0,8,103,0,8,39,0,9,175,0,8,7,0,8,135,0,8,71,0,9,239,80,7,9,0,8,95,0,8,31,0,9,159,84,7,99,0,8,127,0,8,63,0,9,223,82,7,27,0,8,111,0,8,47,0,9,191,0,8,15,0,8,143,0,8,79,0,9,255],tt=[80,5,1,87,5,257,83,5,17,91,5,4097,81,5,5,89,5,1025,85,5,65,93,5,16385,80,5,3,88,5,513,84,5,33,92,5,8193,82,5,9,90,5,2049,86,5,129,192,5,24577,80,5,2,87,5,385,83,5,25,91,5,6145,81,5,7,89,5,1537,85,5,97,93,5,24577,80,5,4,88,5,769,84,5,49,92,5,12289,82,5,13,90,5,3073,86,5,193,192,5,24577],nt=[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],rt=[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,112,112],st=[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],it=[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];function ot(){let e,t,n,r,s,i;function o(e,t,o,c,f,a,l,u,w,h,d){let p,y,m,b,g,k,v,S,z,C,x,_,A,I,D;C=0,g=o;do{n[e[t+C]]++,C++,g--}while(0!==g);if(n[0]==o)return l[0]=-1,u[0]=0,0;for(S=u[0],k=1;15>=k&&0===n[k];k++);for(v=k,k>S&&(S=k),g=15;0!==g&&0===n[g];g--);for(m=g,S>g&&(S=g),u[0]=S,I=1<<k;g>k;k++,I<<=1)if(0>(I-=n[k]))return Ye;if(0>(I-=n[g]))return Ye;for(n[g]+=I,i[1]=k=0,C=1,A=2;0!=--g;)i[A]=k+=n[C],A++,C++;g=0,C=0;do{0!==(k=e[t+C])&&(d[i[k]++]=g),C++}while(++g<o);for(o=i[m],i[0]=g=0,C=0,b=-1,_=-S,s[0]=0,x=0,D=0;m>=v;v++)for(p=n[v];0!=p--;){for(;v>_+S;){if(b++,_+=S,D=m-_,D=D>S?S:D,(y=1<<(k=v-_))>p+1&&(y-=p+1,A=v,D>k))for(;++k<D&&(y<<=1)>n[++A];)y-=n[A];if(D=1<<k,h[0]+D>1440)return Ye;s[b]=x=h[0],h[0]+=D,0!==b?(i[b]=g,r[0]=k,r[1]=S,k=g>>>_-S,r[2]=x-s[b-1]-k,w.set(r,3*(s[b-1]+k))):l[0]=x}for(r[1]=v-_,o>C?d[C]<c?(r[0]=256>d[C]?0:96,r[2]=d[C++]):(r[0]=a[d[C]-c]+16+64,r[2]=f[d[C++]-c]):r[0]=192,y=1<<v-_,k=g>>>_;D>k;k+=y)w.set(r,3*(x+k));for(k=1<<v-1;0!=(g&k);k>>>=1)g^=k;for(g^=k,z=(1<<_)-1;(g&z)!=i[b];)b--,_-=S,z=(1<<_)-1}return 0!==I&&1!=m?Ze:0}function c(o){let c;for(e||(e=[],t=[],n=new f(16),r=[],s=new f(15),i=new f(16)),t.length<o&&(t=[]),c=0;o>c;c++)t[c]=0;for(c=0;16>c;c++)n[c]=0;for(c=0;3>c;c++)r[c]=0;s.set(n.subarray(0,15),0),i.set(n.subarray(0,16),0)}this.st=(n,r,s,i,f)=>{let a;return c(19),e[0]=0,a=o(n,0,19,19,null,null,s,r,i,e,t),a==Ye?f.Le="oversubscribed dynamic bit lengths tree":a!=Ze&&0!==r[0]||(f.Le="incomplete dynamic bit lengths tree",a=Ye),a},this.it=(n,r,s,i,f,a,l,u,w)=>{let h;return c(288),e[0]=0,h=o(s,0,n,257,nt,rt,a,i,u,e,t),0!=h||0===i[0]?(h==Ye?w.Le="oversubscribed literal/length tree":-4!=h&&(w.Le="incomplete literal/length tree",h=Ye),h):(c(288),h=o(s,n,r,0,st,it,l,f,u,e,t),0!=h||0===f[0]&&n>257?(h==Ye?w.Le="oversubscribed distance tree":h==Ze?(w.Le="incomplete distance tree",h=Ye):-4!=h&&(w.Le="empty distance tree with lengths",h=Ye),h):0)}}function ct(){const e=this;let t,n,r,s,i=0,o=0,c=0,f=0,a=0,l=0,u=0,w=0,h=0,d=0;function p(e,t,n,r,s,i,o,c){let f,a,l,u,w,h,d,p,y,m,b,g,k,v,S,z;d=c.nt,p=c.We,w=o.ot,h=o.ct,y=o.write,m=y<o.read?o.read-y-1:o.end-y,b=$e[e],g=$e[t];do{for(;20>h;)p--,w|=(255&c.ft(d++))<<h,h+=8;if(f=w&b,a=n,l=r,z=3*(l+f),0!==(u=a[z]))for(;;){if(w>>=a[z+1],h-=a[z+1],0!=(16&u)){for(u&=15,k=a[z+2]+(w&$e[u]),w>>=u,h-=u;15>h;)p--,w|=(255&c.ft(d++))<<h,h+=8;for(f=w&g,a=s,l=i,z=3*(l+f),u=a[z];;){if(w>>=a[z+1],h-=a[z+1],0!=(16&u)){for(u&=15;u>h;)p--,w|=(255&c.ft(d++))<<h,h+=8;if(v=a[z+2]+(w&$e[u]),w>>=u,h-=u,m-=k,v>y){S=y-v;do{S+=o.end}while(0>S);if(u=o.end-S,k>u){if(k-=u,y-S>0&&u>y-S)do{o.lt[y++]=o.lt[S++]}while(0!=--u);else o.lt.set(o.lt.subarray(S,S+u),y),y+=u,S+=u,u=0;S=0}}else S=y-v,y-S>0&&2>y-S?(o.lt[y++]=o.lt[S++],o.lt[y++]=o.lt[S++],k-=2):(o.lt.set(o.lt.subarray(S,S+2),y),y+=2,S+=2,k-=2);if(y-S>0&&k>y-S)do{o.lt[y++]=o.lt[S++]}while(0!=--k);else o.lt.set(o.lt.subarray(S,S+k),y),y+=k,S+=k,k=0;break}if(0!=(64&u))return c.Le="invalid distance code",k=c.We-p,k=k>h>>3?h>>3:k,p+=k,d-=k,h-=k<<3,o.ot=w,o.ct=h,c.We=p,c.qe+=d-c.nt,c.nt=d,o.write=y,Ye;f+=a[z+2],f+=w&$e[u],z=3*(l+f),u=a[z]}break}if(0!=(64&u))return 0!=(32&u)?(k=c.We-p,k=k>h>>3?h>>3:k,p+=k,d-=k,h-=k<<3,o.ot=w,o.ct=h,c.We=p,c.qe+=d-c.nt,c.nt=d,o.write=y,1):(c.Le="invalid literal/length code",k=c.We-p,k=k>h>>3?h>>3:k,p+=k,d-=k,h-=k<<3,o.ot=w,o.ct=h,c.We=p,c.qe+=d-c.nt,c.nt=d,o.write=y,Ye);if(f+=a[z+2],f+=w&$e[u],z=3*(l+f),0===(u=a[z])){w>>=a[z+1],h-=a[z+1],o.lt[y++]=a[z+2],m--;break}}else w>>=a[z+1],h-=a[z+1],o.lt[y++]=a[z+2],m--}while(m>=258&&p>=10);return k=c.We-p,k=k>h>>3?h>>3:k,p+=k,d-=k,h-=k<<3,o.ot=w,o.ct=h,c.We=p,c.qe+=d-c.nt,c.nt=d,o.write=y,0}e.init=(e,i,o,c,f,a)=>{t=0,u=e,w=i,r=o,h=c,s=f,d=a,n=null},e.ut=(e,y,m)=>{let b,g,k,v,S,z,C,x=0,_=0,A=0;for(A=y.nt,v=y.We,x=e.ot,_=e.ct,S=e.write,z=S<e.read?e.read-S-1:e.end-S;;)switch(t){case 0:if(z>=258&&v>=10&&(e.ot=x,e.ct=_,y.We=v,y.qe+=A-y.nt,y.nt=A,e.write=S,m=p(u,w,r,h,s,d,e,y),A=y.nt,v=y.We,x=e.ot,_=e.ct,S=e.write,z=S<e.read?e.read-S-1:e.end-S,0!=m)){t=1==m?7:9;break}c=u,n=r,o=h,t=1;case 1:for(b=c;b>_;){if(0===v)return e.ot=x,e.ct=_,y.We=v,y.qe+=A-y.nt,y.nt=A,e.write=S,e.wt(y,m);m=0,v--,x|=(255&y.ft(A++))<<_,_+=8}if(g=3*(o+(x&$e[b])),x>>>=n[g+1],_-=n[g+1],k=n[g],0===k){f=n[g+2],t=6;break}if(0!=(16&k)){a=15&k,i=n[g+2],t=2;break}if(0==(64&k)){c=k,o=g/3+n[g+2];break}if(0!=(32&k)){t=7;break}return t=9,y.Le="invalid literal/length code",m=Ye,e.ot=x,e.ct=_,y.We=v,y.qe+=A-y.nt,y.nt=A,e.write=S,e.wt(y,m);case 2:for(b=a;b>_;){if(0===v)return e.ot=x,e.ct=_,y.We=v,y.qe+=A-y.nt,y.nt=A,e.write=S,e.wt(y,m);m=0,v--,x|=(255&y.ft(A++))<<_,_+=8}i+=x&$e[b],x>>=b,_-=b,c=w,n=s,o=d,t=3;case 3:for(b=c;b>_;){if(0===v)return e.ot=x,e.ct=_,y.We=v,y.qe+=A-y.nt,y.nt=A,e.write=S,e.wt(y,m);m=0,v--,x|=(255&y.ft(A++))<<_,_+=8}if(g=3*(o+(x&$e[b])),x>>=n[g+1],_-=n[g+1],k=n[g],0!=(16&k)){a=15&k,l=n[g+2],t=4;break}if(0==(64&k)){c=k,o=g/3+n[g+2];break}return t=9,y.Le="invalid distance code",m=Ye,e.ot=x,e.ct=_,y.We=v,y.qe+=A-y.nt,y.nt=A,e.write=S,e.wt(y,m);case 4:for(b=a;b>_;){if(0===v)return e.ot=x,e.ct=_,y.We=v,y.qe+=A-y.nt,y.nt=A,e.write=S,e.wt(y,m);m=0,v--,x|=(255&y.ft(A++))<<_,_+=8}l+=x&$e[b],x>>=b,_-=b,t=5;case 5:for(C=S-l;0>C;)C+=e.end;for(;0!==i;){if(0===z&&(S==e.end&&0!==e.read&&(S=0,z=S<e.read?e.read-S-1:e.end-S),0===z&&(e.write=S,m=e.wt(y,m),S=e.write,z=S<e.read?e.read-S-1:e.end-S,S==e.end&&0!==e.read&&(S=0,z=S<e.read?e.read-S-1:e.end-S),0===z)))return e.ot=x,e.ct=_,y.We=v,y.qe+=A-y.nt,y.nt=A,e.write=S,e.wt(y,m);e.lt[S++]=e.lt[C++],z--,C==e.end&&(C=0),i--}t=0;break;case 6:if(0===z&&(S==e.end&&0!==e.read&&(S=0,z=S<e.read?e.read-S-1:e.end-S),0===z&&(e.write=S,m=e.wt(y,m),S=e.write,z=S<e.read?e.read-S-1:e.end-S,S==e.end&&0!==e.read&&(S=0,z=S<e.read?e.read-S-1:e.end-S),0===z)))return e.ot=x,e.ct=_,y.We=v,y.qe+=A-y.nt,y.nt=A,e.write=S,e.wt(y,m);m=0,e.lt[S++]=f,z--,t=0;break;case 7:if(_>7&&(_-=8,v++,A--),e.write=S,m=e.wt(y,m),S=e.write,z=S<e.read?e.read-S-1:e.end-S,e.read!=e.write)return e.ot=x,e.ct=_,y.We=v,y.qe+=A-y.nt,y.nt=A,e.write=S,e.wt(y,m);t=8;case 8:return m=1,e.ot=x,e.ct=_,y.We=v,y.qe+=A-y.nt,y.nt=A,e.write=S,e.wt(y,m);case 9:return m=Ye,e.ot=x,e.ct=_,y.We=v,y.qe+=A-y.nt,y.nt=A,e.write=S,e.wt(y,m);default:return m=Xe,e.ot=x,e.ct=_,y.We=v,y.qe+=A-y.nt,y.nt=A,e.write=S,e.wt(y,m)}},e.ht=()=>{}}ot.dt=(e,t,n,r)=>(e[0]=9,t[0]=5,n[0]=et,r[0]=tt,0);const ft=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];function at(e,t){const n=this;let r,s=0,o=0,c=0,a=0;const l=[0],u=[0],w=new ct;let h=0,d=new f(4320);const p=new ot;n.ct=0,n.ot=0,n.lt=new i(t),n.end=t,n.read=0,n.write=0,n.reset=(e,t)=>{t&&(t[0]=0),6==s&&w.ht(e),s=0,n.ct=0,n.ot=0,n.read=n.write=0},n.reset(e,null),n.wt=(e,t)=>{let r,s,i;return s=e.rt,i=n.read,r=(i>n.write?n.end:n.write)-i,r>e.tt&&(r=e.tt),0!==r&&t==Ze&&(t=0),e.tt-=r,e.Ge+=r,e.$e.set(n.lt.subarray(i,i+r),s),s+=r,i+=r,i==n.end&&(i=0,n.write==n.end&&(n.write=0),r=n.write-i,r>e.tt&&(r=e.tt),0!==r&&t==Ze&&(t=0),e.tt-=r,e.Ge+=r,e.$e.set(n.lt.subarray(i,i+r),s),s+=r,i+=r),e.rt=s,n.read=i,t},n.ut=(e,t)=>{let i,f,y,m,b,g,k,v;for(m=e.nt,b=e.We,f=n.ot,y=n.ct,g=n.write,k=g<n.read?n.read-g-1:n.end-g;;){let S,z,C,x,_,A,I,D;switch(s){case 0:for(;3>y;){if(0===b)return n.ot=f,n.ct=y,e.We=b,e.qe+=m-e.nt,e.nt=m,n.write=g,n.wt(e,t);t=0,b--,f|=(255&e.ft(m++))<<y,y+=8}switch(i=7&f,h=1&i,i>>>1){case 0:f>>>=3,y-=3,i=7&y,f>>>=i,y-=i,s=1;break;case 1:S=[],z=[],C=[[]],x=[[]],ot.dt(S,z,C,x),w.init(S[0],z[0],C[0],0,x[0],0),f>>>=3,y-=3,s=6;break;case 2:f>>>=3,y-=3,s=3;break;case 3:return f>>>=3,y-=3,s=9,e.Le="invalid block type",t=Ye,n.ot=f,n.ct=y,e.We=b,e.qe+=m-e.nt,e.nt=m,n.write=g,n.wt(e,t)}break;case 1:for(;32>y;){if(0===b)return n.ot=f,n.ct=y,e.We=b,e.qe+=m-e.nt,e.nt=m,n.write=g,n.wt(e,t);t=0,b--,f|=(255&e.ft(m++))<<y,y+=8}if((~f>>>16&65535)!=(65535&f))return s=9,e.Le="invalid stored block lengths",t=Ye,n.ot=f,n.ct=y,e.We=b,e.qe+=m-e.nt,e.nt=m,n.write=g,n.wt(e,t);o=65535&f,f=y=0,s=0!==o?2:0!==h?7:0;break;case 2:if(0===b)return n.ot=f,n.ct=y,e.We=b,e.qe+=m-e.nt,e.nt=m,n.write=g,n.wt(e,t);if(0===k&&(g==n.end&&0!==n.read&&(g=0,k=g<n.read?n.read-g-1:n.end-g),0===k&&(n.write=g,t=n.wt(e,t),g=n.write,k=g<n.read?n.read-g-1:n.end-g,g==n.end&&0!==n.read&&(g=0,k=g<n.read?n.read-g-1:n.end-g),0===k)))return n.ot=f,n.ct=y,e.We=b,e.qe+=m-e.nt,e.nt=m,n.write=g,n.wt(e,t);if(t=0,i=o,i>b&&(i=b),i>k&&(i=k),n.lt.set(e.je(m,i),g),m+=i,b-=i,g+=i,k-=i,0!=(o-=i))break;s=0!==h?7:0;break;case 3:for(;14>y;){if(0===b)return n.ot=f,n.ct=y,e.We=b,e.qe+=m-e.nt,e.nt=m,n.write=g,n.wt(e,t);t=0,b--,f|=(255&e.ft(m++))<<y,y+=8}if(c=i=16383&f,(31&i)>29||(i>>5&31)>29)return s=9,e.Le="too many length or distance symbols",t=Ye,n.ot=f,n.ct=y,e.We=b,e.qe+=m-e.nt,e.nt=m,n.write=g,n.wt(e,t);if(i=258+(31&i)+(i>>5&31),!r||r.length<i)r=[];else for(v=0;i>v;v++)r[v]=0;f>>>=14,y-=14,a=0,s=4;case 4:for(;4+(c>>>10)>a;){for(;3>y;){if(0===b)return n.ot=f,n.ct=y,e.We=b,e.qe+=m-e.nt,e.nt=m,n.write=g,n.wt(e,t);t=0,b--,f|=(255&e.ft(m++))<<y,y+=8}r[ft[a++]]=7&f,f>>>=3,y-=3}for(;19>a;)r[ft[a++]]=0;if(l[0]=7,i=p.st(r,l,u,d,e),0!=i)return(t=i)==Ye&&(r=null,s=9),n.ot=f,n.ct=y,e.We=b,e.qe+=m-e.nt,e.nt=m,n.write=g,n.wt(e,t);a=0,s=5;case 5:for(;i=c,258+(31&i)+(i>>5&31)>a;){let o,w;for(i=l[0];i>y;){if(0===b)return n.ot=f,n.ct=y,e.We=b,e.qe+=m-e.nt,e.nt=m,n.write=g,n.wt(e,t);t=0,b--,f|=(255&e.ft(m++))<<y,y+=8}if(i=d[3*(u[0]+(f&$e[i]))+1],w=d[3*(u[0]+(f&$e[i]))+2],16>w)f>>>=i,y-=i,r[a++]=w;else{for(v=18==w?7:w-14,o=18==w?11:3;i+v>y;){if(0===b)return n.ot=f,n.ct=y,e.We=b,e.qe+=m-e.nt,e.nt=m,n.write=g,n.wt(e,t);t=0,b--,f|=(255&e.ft(m++))<<y,y+=8}if(f>>>=i,y-=i,o+=f&$e[v],f>>>=v,y-=v,v=a,i=c,v+o>258+(31&i)+(i>>5&31)||16==w&&1>v)return r=null,s=9,e.Le="invalid bit length repeat",t=Ye,n.ot=f,n.ct=y,e.We=b,e.qe+=m-e.nt,e.nt=m,n.write=g,n.wt(e,t);w=16==w?r[v-1]:0;do{r[v++]=w}while(0!=--o);a=v}}if(u[0]=-1,_=[],A=[],I=[],D=[],_[0]=9,A[0]=6,i=c,i=p.it(257+(31&i),1+(i>>5&31),r,_,A,I,D,d,e),0!=i)return i==Ye&&(r=null,s=9),t=i,n.ot=f,n.ct=y,e.We=b,e.qe+=m-e.nt,e.nt=m,n.write=g,n.wt(e,t);w.init(_[0],A[0],d,I[0],d,D[0]),s=6;case 6:if(n.ot=f,n.ct=y,e.We=b,e.qe+=m-e.nt,e.nt=m,n.write=g,1!=(t=w.ut(n,e,t)))return n.wt(e,t);if(t=0,w.ht(e),m=e.nt,b=e.We,f=n.ot,y=n.ct,g=n.write,k=g<n.read?n.read-g-1:n.end-g,0===h){s=0;break}s=7;case 7:if(n.write=g,t=n.wt(e,t),g=n.write,k=g<n.read?n.read-g-1:n.end-g,n.read!=n.write)return n.ot=f,n.ct=y,e.We=b,e.qe+=m-e.nt,e.nt=m,n.write=g,n.wt(e,t);s=8;case 8:return t=1,n.ot=f,n.ct=y,e.We=b,e.qe+=m-e.nt,e.nt=m,n.write=g,n.wt(e,t);case 9:return t=Ye,n.ot=f,n.ct=y,e.We=b,e.qe+=m-e.nt,e.nt=m,n.write=g,n.wt(e,t);default:return t=Xe,n.ot=f,n.ct=y,e.We=b,e.qe+=m-e.nt,e.nt=m,n.write=g,n.wt(e,t)}}},n.ht=e=>{n.reset(e,null),n.lt=null,d=null},n.yt=(e,t,r)=>{n.lt.set(e.subarray(t,t+r),0),n.read=n.write=r},n.bt=()=>1==s?1:0}const lt=13,ut=[0,0,255,255];function wt(){const e=this;function t(e){return e&&e.gt?(e.qe=e.Ge=0,e.Le=null,e.gt.mode=7,e.gt.kt.reset(e,null),0):Xe}e.mode=0,e.method=0,e.vt=[0],e.St=0,e.marker=0,e.zt=0,e.Ct=t=>(e.kt&&e.kt.ht(t),e.kt=null,0),e.xt=(n,r)=>(n.Le=null,e.kt=null,8>r||r>15?(e.Ct(n),Xe):(e.zt=r,n.gt.kt=new at(n,1<<r),t(n),0)),e._t=(e,t)=>{let n,r;if(!e||!e.gt||!e.et)return Xe;const s=e.gt;for(t=4==t?Ze:0,n=Ze;;)switch(s.mode){case 0:if(0===e.We)return n;if(n=t,e.We--,e.qe++,8!=(15&(s.method=e.ft(e.nt++)))){s.mode=lt,e.Le="unknown compression method",s.marker=5;break}if(8+(s.method>>4)>s.zt){s.mode=lt,e.Le="invalid win size",s.marker=5;break}s.mode=1;case 1:if(0===e.We)return n;if(n=t,e.We--,e.qe++,r=255&e.ft(e.nt++),((s.method<<8)+r)%31!=0){s.mode=lt,e.Le="incorrect header check",s.marker=5;break}if(0==(32&r)){s.mode=7;break}s.mode=2;case 2:if(0===e.We)return n;n=t,e.We--,e.qe++,s.St=(255&e.ft(e.nt++))<<24&4278190080,s.mode=3;case 3:if(0===e.We)return n;n=t,e.We--,e.qe++,s.St+=(255&e.ft(e.nt++))<<16&16711680,s.mode=4;case 4:if(0===e.We)return n;n=t,e.We--,e.qe++,s.St+=(255&e.ft(e.nt++))<<8&65280,s.mode=5;case 5:return 0===e.We?n:(n=t,e.We--,e.qe++,s.St+=255&e.ft(e.nt++),s.mode=6,2);case 6:return s.mode=lt,e.Le="need dictionary",s.marker=0,Xe;case 7:if(n=s.kt.ut(e,n),n==Ye){s.mode=lt,s.marker=0;break}if(0==n&&(n=t),1!=n)return n;n=t,s.kt.reset(e,s.vt),s.mode=12;case 12:return e.We=0,1;case lt:return Ye;default:return Xe}},e.At=(e,t,n)=>{let r=0,s=n;if(!e||!e.gt||6!=e.gt.mode)return Xe;const i=e.gt;return s<1<<i.zt||(s=(1<<i.zt)-1,r=n-s),i.kt.yt(t,r,s),i.mode=7,0},e.It=e=>{let n,r,s,i,o;if(!e||!e.gt)return Xe;const c=e.gt;if(c.mode!=lt&&(c.mode=lt,c.marker=0),0===(n=e.We))return Ze;for(r=e.nt,s=c.marker;0!==n&&4>s;)e.ft(r)==ut[s]?s++:s=0!==e.ft(r)?0:4-s,r++,n--;return e.qe+=r-e.nt,e.nt=r,e.We=n,c.marker=s,4!=s?Ye:(i=e.qe,o=e.Ge,t(e),e.qe=i,e.Ge=o,c.mode=7,0)},e.Dt=e=>e&&e.gt&&e.gt.kt?e.gt.kt.bt():Xe}function ht(){}function dt(e){const t=new ht,n=e&&e.chunkSize?r.floor(2*e.chunkSize):131072,o=new i(n);let c=!1;t.xt(),t.$e=o,this.append=(e,r)=>{const f=[];let a,l,u=0,w=0,h=0;if(0!==e.length){t.nt=0,t.et=e,t.We=e.length;do{if(t.rt=0,t.tt=n,0!==t.We||c||(t.nt=0,c=!0),a=t._t(0),c&&a===Ze){if(0!==t.We)throw new s("inflating: bad input")}else if(0!==a&&1!==a)throw new s("inflating: "+t.Le);if((c||1===a)&&t.We===e.length)throw new s("inflating: bad input");t.rt&&(t.rt===n?f.push(new i(o)):f.push(o.slice(0,t.rt))),h+=t.rt,r&&t.nt>0&&t.nt!=u&&(r(t.nt),u=t.nt)}while(t.We>0||0===t.tt);return f.length>1?(l=new i(h),f.forEach((e=>{l.set(e,w),w+=e.length}))):l=f[0]||new i,l}},this.flush=()=>{t.Ct()}}ht.prototype={xt(e){const t=this;return t.gt=new wt,e||(e=15),t.gt.xt(t,e)},_t(e){const t=this;return t.gt?t.gt._t(t,e):Xe},Ct(){const e=this;if(!e.gt)return Xe;const t=e.gt.Ct(e);return e.gt=null,t},It(){const e=this;return e.gt?e.gt.It(e):Xe},At(e,t){const n=this;return n.gt?n.gt.At(n,e,t):Xe},ft(e){return this.et[e]},je(e,t){return this.et.subarray(e,e+t)}},self.initCodec=()=>{self.Deflate=Qe,self.Inflate=dt};\n'],{type:"text/javascript"}));e({workerScripts:{inflate:[t],deflate:[t]}})}(Rr),Rr({Deflate:function(e){const t=new vn,n=(r=e&&e.chunkSize?e.chunkSize:65536)+5*(Math.floor(r/16383)+1);var r;const i=$t,o=new Uint8Array(n);let a=e?e.level:Zt;void 0===a&&(a=Zt),t.deflateInit(a),t.next_out=o,this.append=function(e,r){let a,l,s=0,u=0,c=0;const d=[];if(e.length){t.next_in_index=0,t.next_in=e,t.avail_in=e.length;do{if(t.next_out_index=0,t.avail_out=n,a=t.deflate(i),a!=Qt)throw new Error("deflating: "+t.msg);t.next_out_index&&(t.next_out_index==n?d.push(new Uint8Array(o)):d.push(o.slice(0,t.next_out_index))),c+=t.next_out_index,r&&t.next_in_index>0&&t.next_in_index!=s&&(r(t.next_in_index),s=t.next_in_index)}while(t.avail_in>0||0===t.avail_out);return d.length>1?(l=new Uint8Array(c),d.forEach((function(e){l.set(e,u),u+=e.length}))):l=d[0]||new Uint8Array,l}},this.flush=function(){let e,r,i=0,a=0;const l=[];do{if(t.next_out_index=0,t.avail_out=n,e=t.deflate(Xt),e!=Jt&&e!=Qt)throw new Error("deflating: "+t.msg);n-t.avail_out>0&&l.push(o.slice(0,t.next_out_index)),a+=t.next_out_index}while(t.avail_in>0||0===t.avail_out);return t.deflateEnd(),r=new Uint8Array(a),l.forEach((function(e){r.set(e,i),i+=e.length})),r}},Inflate:function(e){const t=new ar,n=e&&e.chunkSize?Math.floor(2*e.chunkSize):131072,r=new Uint8Array(n);let i=!1;t.inflateInit(),t.next_out=r,this.append=function(e,o){const a=[];let l,s,u=0,c=0,d=0;if(0!==e.length){t.next_in_index=0,t.next_in=e,t.avail_in=e.length;do{if(t.next_out_index=0,t.avail_out=n,0!==t.avail_in||i||(t.next_in_index=0,i=!0),l=t.inflate(0),i&&l===kn){if(0!==t.avail_in)throw new Error("inflating: bad input")}else if(l!==yn&&l!==bn)throw new Error("inflating: "+t.msg);if((i||l===bn)&&t.avail_in===e.length)throw new Error("inflating: bad input");t.next_out_index&&(t.next_out_index===n?a.push(new Uint8Array(r)):a.push(r.slice(0,t.next_out_index))),d+=t.next_out_index,o&&t.next_in_index>0&&t.next_in_index!=u&&(o(t.next_in_index),u=t.next_in_index)}while(t.avail_in>0||0===t.avail_out);return a.length>1?(s=new Uint8Array(d),a.forEach((function(e){s.set(e,c),c+=e.length}))):s=a[0]||new Uint8Array,s}},this.flush=function(){t.inflateEnd()}}});var pl=class{constructor(){cl(this)}get children(){return this.root.children}remove(e){ul(e),this.entries[e.id]=null}move(e,t){if(e==this.root)throw new Error("Root directory cannot be moved");if(!t.directory)throw new Error("Target entry is not a directory");if(t.isDescendantOf(e))throw new Error("Entry is a ancestor of target entry");if(e!=t){if(t.getChildByName(e.name))throw new Error("Entry filename already exists");ul(e),e.parent=t,t.children.push(e)}}find(e){const t=e.split("/");let n=this.root;for(let e=0;n&&e<t.length;e++)n=n.getChildByName(t[e]);return n}getById(e){return this.entries[e]}getChildByName(e){return this.root.getChildByName(e)}addDirectory(e,t){return this.root.addDirectory(e,t)}addText(e,t,n){return this.root.addText(e,t,n)}addBlob(e,t,n){return this.root.addBlob(e,t,n)}addData64URI(e,t,n){return this.root.addData64URI(e,t,n)}addHttpContent(e,t,n){return this.root.addHttpContent(e,t,n)}addReadable(e,t,n){return this.root.addReadable(e,t,n)}addFileSystemEntry(e,t){return this.root.addFileSystemEntry(e,t)}addData(e,t){return this.root.addData(e,t)}importBlob(e,t){return cl(this),this.root.importBlob(e,t)}importData64URI(e,t){return cl(this),this.root.importData64URI(e,t)}importUint8Array(e,t){return cl(this),this.root.importUint8Array(e,t)}importHttpContent(e,t){return cl(this),this.root.importHttpContent(e,t)}importReadable(e,t){return cl(this),this.root.importReadable(e,t)}importZip(e,t){return this.root.importZip(e,t)}exportBlob(e){return this.root.exportBlob(e)}exportData64URI(e){return this.root.exportData64URI(e)}exportUint8Array(e){return this.root.exportUint8Array(e)}exportWritable(e,t){return this.root.exportWritable(e,t)}isPasswordProtected(){return this.root.isPasswordProtected()}async checkPassword(e,t){return this.root.checkPassword(e,t)}};function hl(){return new pl}var ml=" ",gl="Enter",vl="Tab",yl="x",bl="c",wl="Enter",xl="r",_l="v",kl="d",El="f",Sl="i",Tl="e",Ll="a",Ol=["Backspace","Delete"],Al="ArrowDown",Cl="ArrowUp",Nl="ArrowLeft",Pl="ArrowRight",Dl="PageUp",Il="PageDown",zl="Home",Rl="End",Fl="ArrowLeft",Bl="ArrowRight",jl="#FF672E",Ul="application/octet-stream",Ml={hideNavigationBar:!1,hideDownloadManager:!1,hideInfobar:!1,bufferedWrite:!0,checkSignature:!1,keepOrder:!0,maxWorkers:2,chunkSize:524288,promptForExportPassword:!0,defaultExportPassword:""},Wl=".zip",Hl=[Wl,".docx",".epub",".jar",".odp",".ods",".odt",".pptx",".xlsx",".key",".pages",".numbers",".apk",".ipa"],Kl={"application/zip":[Wl],"application/vnd.openxmlformats-officedocument.wordprocessingml.document":[".docx"],"application/epub+zip":[".epub"],"application/java-archive":[".jar"],"application/vnd.oasis.opendocument.presentation":[".odp"],"application/vnd.oasis.opendocument.spreadsheet":[".ods"],"application/vnd.oasis.opendocument.text":[".odt"],"application/vnd.openxmlformats-officedocument.presentationml.presentation":[".pptx"],"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":[".xlsx"],"application/vnd.apple.keynote":[".key"],"application/vnd.apple.pages":[".pages"],"application/vnd.apple.numbers":[".numbers"],"application/vnd.android.package-archive":[".apk"],"application/x-ios-app":[".ipa"]},ql=Hl.join(","),Yl=750,Gl="create-folder-button",Vl="add-files-button",Zl="import-zip-button",$l="export-zip-button",Xl="copy-button",Ql="cut-button",Jl="paste-button",es="extract-button",ts="select-all",ns="rename-button",rs="delete-entry-button",is="back-button",os="forward-button",as="options",ls="accent-color",ss="--accent-color",us="/index.html",cs="."+us,ds="/shared-files",fs="."+ds,ps=ds+"/form",hs="shared-files",ms="shared-files",gs="?shared-files",vs="main-container";function ys(e){var t=e.selectedFolder,n=e.highlightedIds;return t.children.find((function(e){return e.id===n[n.length-1]}))}function bs(e,t){return(0,t.isMacOSPlatform)()?e.metaKey:e.ctrlKey}function ws(e){return ws="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},ws(e)}function xs(){xs=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},i="function"==typeof Symbol?Symbol:{},o=i.iterator||"@@iterator",a=i.asyncIterator||"@@asyncIterator",l=i.toStringTag||"@@toStringTag";function s(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,n){return e[t]=n}}function u(e,t,n,i){var o=t&&t.prototype instanceof f?t:f,a=Object.create(o.prototype),l=new S(i||[]);return r(a,"_invoke",{value:x(e,n,l)}),a}function c(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=u;var d={};function f(){}function p(){}function h(){}var m={};s(m,o,(function(){return this}));var g=Object.getPrototypeOf,v=g&&g(g(T([])));v&&v!==t&&n.call(v,o)&&(m=v);var y=h.prototype=f.prototype=Object.create(m);function b(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function w(e,t){function i(r,o,a,l){var s=c(e[r],e,o);if("throw"!==s.type){var u=s.arg,d=u.value;return d&&"object"==ws(d)&&n.call(d,"__await")?t.resolve(d.__await).then((function(e){i("next",e,a,l)}),(function(e){i("throw",e,a,l)})):t.resolve(d).then((function(e){u.value=e,a(u)}),(function(e){return i("throw",e,a,l)}))}l(s.arg)}var o;r(this,"_invoke",{value:function(e,n){function r(){return new t((function(t,r){i(e,n,t,r)}))}return o=o?o.then(r,r):r()}})}function x(e,t,n){var r="suspendedStart";return function(i,o){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===i)throw o;return{value:void 0,done:!0}}for(n.method=i,n.arg=o;;){var a=n.delegate;if(a){var l=_(a,n);if(l){if(l===d)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=c(e,t,n);if("normal"===s.type){if(r=n.done?"completed":"suspendedYield",s.arg===d)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(r="completed",n.method="throw",n.arg=s.arg)}}}function _(e,t){var n=t.method,r=e.iterator[n];if(void 0===r)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,_(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),d;var i=c(r,e.iterator,t.arg);if("throw"===i.type)return t.method="throw",t.arg=i.arg,t.delegate=null,d;var o=i.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,d):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,d)}function k(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(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function S(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(k,this),this.reset(!0)}function T(e){if(e){var t=e[o];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:L}}function L(){return{value:void 0,done:!0}}return p.prototype=h,r(y,"constructor",{value:h,configurable:!0}),r(h,"constructor",{value:p,configurable:!0}),p.displayName=s(h,l,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,s(e,l,"GeneratorFunction")),e.prototype=Object.create(y),e},e.awrap=function(e){return{__await:e}},b(w.prototype),s(w.prototype,a,(function(){return this})),e.AsyncIterator=w,e.async=function(t,n,r,i,o){void 0===o&&(o=Promise);var a=new w(u(t,n,r,i),o);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},b(y),s(y,l,"Generator"),s(y,o,(function(){return this})),s(y,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},e.values=T,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),!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 a.type="throw",a.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var l=n.call(o,"catchLoc"),s=n.call(o,"finallyLoc");if(l&&s){if(this.prev<o.catchLoc)return r(o.catchLoc,!0);if(this.prev<o.finallyLoc)return r(o.finallyLoc)}else if(l){if(this.prev<o.catchLoc)return r(o.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return r(o.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,d):this.complete(a)},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),d},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),E(n),d}},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 i=r.arg;E(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:T(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),d}},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 ks(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){Es(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 Es(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==ws(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!==ws(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===ws(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ss(e,t,n,r,i,o,a){try{var l=e[o](a),s=l.value}catch(e){return void n(e)}l.done?t(s):Promise.resolve(s).then(r,i)}function Ts(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var o=e.apply(t,n);function a(e){Ss(o,r,i,a,l,"next",e)}function l(e){Ss(o,r,i,a,l,"throw",e)}a(void 0)}))}}function Ls(e){return function(e){if(Array.isArray(e))return Os(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return Os(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)?Os(e,t):void 0}}(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 Os(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 As(e){return function(e){if(Array.isArray(e))return Cs(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return Cs(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)?Cs(e,t):void 0}}(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 Cs(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 Ns(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 Ps(e){return Ps="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},Ps(e)}function Ds(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 Is(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ds(Object(n),!0).forEach((function(t){zs(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ds(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function zs(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==Ps(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!==Ps(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===Ps(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Rs(){Rs=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},i="function"==typeof Symbol?Symbol:{},o=i.iterator||"@@iterator",a=i.asyncIterator||"@@asyncIterator",l=i.toStringTag||"@@toStringTag";function s(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,n){return e[t]=n}}function u(e,t,n,i){var o=t&&t.prototype instanceof f?t:f,a=Object.create(o.prototype),l=new S(i||[]);return r(a,"_invoke",{value:x(e,n,l)}),a}function c(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=u;var d={};function f(){}function p(){}function h(){}var m={};s(m,o,(function(){return this}));var g=Object.getPrototypeOf,v=g&&g(g(T([])));v&&v!==t&&n.call(v,o)&&(m=v);var y=h.prototype=f.prototype=Object.create(m);function b(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function w(e,t){function i(r,o,a,l){var s=c(e[r],e,o);if("throw"!==s.type){var u=s.arg,d=u.value;return d&&"object"==Ps(d)&&n.call(d,"__await")?t.resolve(d.__await).then((function(e){i("next",e,a,l)}),(function(e){i("throw",e,a,l)})):t.resolve(d).then((function(e){u.value=e,a(u)}),(function(e){return i("throw",e,a,l)}))}l(s.arg)}var o;r(this,"_invoke",{value:function(e,n){function r(){return new t((function(t,r){i(e,n,t,r)}))}return o=o?o.then(r,r):r()}})}function x(e,t,n){var r="suspendedStart";return function(i,o){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===i)throw o;return{value:void 0,done:!0}}for(n.method=i,n.arg=o;;){var a=n.delegate;if(a){var l=_(a,n);if(l){if(l===d)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=c(e,t,n);if("normal"===s.type){if(r=n.done?"completed":"suspendedYield",s.arg===d)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(r="completed",n.method="throw",n.arg=s.arg)}}}function _(e,t){var n=t.method,r=e.iterator[n];if(void 0===r)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,_(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),d;var i=c(r,e.iterator,t.arg);if("throw"===i.type)return t.method="throw",t.arg=i.arg,t.delegate=null,d;var o=i.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,d):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,d)}function k(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(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function S(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(k,this),this.reset(!0)}function T(e){if(e){var t=e[o];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:L}}function L(){return{value:void 0,done:!0}}return p.prototype=h,r(y,"constructor",{value:h,configurable:!0}),r(h,"constructor",{value:p,configurable:!0}),p.displayName=s(h,l,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,s(e,l,"GeneratorFunction")),e.prototype=Object.create(y),e},e.awrap=function(e){return{__await:e}},b(w.prototype),s(w.prototype,a,(function(){return this})),e.AsyncIterator=w,e.async=function(t,n,r,i,o){void 0===o&&(o=Promise);var a=new w(u(t,n,r,i),o);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},b(y),s(y,l,"Generator"),s(y,o,(function(){return this})),s(y,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},e.values=T,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),!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 a.type="throw",a.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var l=n.call(o,"catchLoc"),s=n.call(o,"finallyLoc");if(l&&s){if(this.prev<o.catchLoc)return r(o.catchLoc,!0);if(this.prev<o.finallyLoc)return r(o.finallyLoc)}else if(l){if(this.prev<o.catchLoc)return r(o.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return r(o.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,d):this.complete(a)},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),d},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),E(n),d}},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 i=r.arg;E(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:T(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),d}},e}function Fs(e,t,n,r,i,o,a){try{var l=e[o](a),s=l.value}catch(e){return void n(e)}l.done?t(s):Promise.resolve(s).then(r,i)}function Bs(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var o=e.apply(t,n);function a(e){Fs(o,r,i,a,l,"next",e)}function l(e){Fs(o,r,i,a,l,"throw",e)}a(void 0)}))}}function js(e){var t,n,r,i=2;for("undefined"!=typeof Symbol&&(n=Symbol.asyncIterator,r=Symbol.iterator);i--;){if(n&&null!=(t=e[n]))return t.call(e);if(r&&null!=(t=e[r]))return new Us(t.call(e));n="@@asyncIterator",r="@@iterator"}throw new TypeError("Object is not async iterable")}function Us(e){function t(e){if(Object(e)!==e)return Promise.reject(new TypeError(e+" is not an object."));var t=e.done;return Promise.resolve(e.value).then((function(e){return{value:e,done:t}}))}return Us=function(e){this.s=e,this.n=e.next},Us.prototype={s:null,n:null,next:function(){return t(this.n.apply(this.s,arguments))},return:function(e){var n=this.s.return;return void 0===n?Promise.resolve({value:e,done:!0}):t(n.apply(this.s,arguments))},throw:function(e){var n=this.s.return;return void 0===n?Promise.reject(e):t(n.apply(this.s,arguments))}},new Us(e)}function Ms(e){return Ms="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},Ms(e)}function Ws(){Ws=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},i="function"==typeof Symbol?Symbol:{},o=i.iterator||"@@iterator",a=i.asyncIterator||"@@asyncIterator",l=i.toStringTag||"@@toStringTag";function s(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,n){return e[t]=n}}function u(e,t,n,i){var o=t&&t.prototype instanceof f?t:f,a=Object.create(o.prototype),l=new S(i||[]);return r(a,"_invoke",{value:x(e,n,l)}),a}function c(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=u;var d={};function f(){}function p(){}function h(){}var m={};s(m,o,(function(){return this}));var g=Object.getPrototypeOf,v=g&&g(g(T([])));v&&v!==t&&n.call(v,o)&&(m=v);var y=h.prototype=f.prototype=Object.create(m);function b(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function w(e,t){function i(r,o,a,l){var s=c(e[r],e,o);if("throw"!==s.type){var u=s.arg,d=u.value;return d&&"object"==Ms(d)&&n.call(d,"__await")?t.resolve(d.__await).then((function(e){i("next",e,a,l)}),(function(e){i("throw",e,a,l)})):t.resolve(d).then((function(e){u.value=e,a(u)}),(function(e){return i("throw",e,a,l)}))}l(s.arg)}var o;r(this,"_invoke",{value:function(e,n){function r(){return new t((function(t,r){i(e,n,t,r)}))}return o=o?o.then(r,r):r()}})}function x(e,t,n){var r="suspendedStart";return function(i,o){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===i)throw o;return{value:void 0,done:!0}}for(n.method=i,n.arg=o;;){var a=n.delegate;if(a){var l=_(a,n);if(l){if(l===d)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=c(e,t,n);if("normal"===s.type){if(r=n.done?"completed":"suspendedYield",s.arg===d)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(r="completed",n.method="throw",n.arg=s.arg)}}}function _(e,t){var n=t.method,r=e.iterator[n];if(void 0===r)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,_(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),d;var i=c(r,e.iterator,t.arg);if("throw"===i.type)return t.method="throw",t.arg=i.arg,t.delegate=null,d;var o=i.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,d):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,d)}function k(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(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function S(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(k,this),this.reset(!0)}function T(e){if(e){var t=e[o];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:L}}function L(){return{value:void 0,done:!0}}return p.prototype=h,r(y,"constructor",{value:h,configurable:!0}),r(h,"constructor",{value:p,configurable:!0}),p.displayName=s(h,l,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,s(e,l,"GeneratorFunction")),e.prototype=Object.create(y),e},e.awrap=function(e){return{__await:e}},b(w.prototype),s(w.prototype,a,(function(){return this})),e.AsyncIterator=w,e.async=function(t,n,r,i,o){void 0===o&&(o=Promise);var a=new w(u(t,n,r,i),o);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},b(y),s(y,l,"Generator"),s(y,o,(function(){return this})),s(y,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},e.values=T,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),!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 a.type="throw",a.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var l=n.call(o,"catchLoc"),s=n.call(o,"finallyLoc");if(l&&s){if(this.prev<o.catchLoc)return r(o.catchLoc,!0);if(this.prev<o.finallyLoc)return r(o.finallyLoc)}else if(l){if(this.prev<o.catchLoc)return r(o.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return r(o.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,d):this.complete(a)},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),d},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),E(n),d}},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 i=r.arg;E(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:T(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),d}},e}function Hs(e,t,n,r,i,o,a){try{var l=e[o](a),s=l.value}catch(e){return void n(e)}l.done?t(s):Promise.resolve(s).then(r,i)}function Ks(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 qs(e){return qs="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},qs(e)}function Ys(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 Gs(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==qs(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!==qs(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===qs(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Vs(){Vs=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},i="function"==typeof Symbol?Symbol:{},o=i.iterator||"@@iterator",a=i.asyncIterator||"@@asyncIterator",l=i.toStringTag||"@@toStringTag";function s(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,n){return e[t]=n}}function u(e,t,n,i){var o=t&&t.prototype instanceof f?t:f,a=Object.create(o.prototype),l=new S(i||[]);return r(a,"_invoke",{value:x(e,n,l)}),a}function c(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=u;var d={};function f(){}function p(){}function h(){}var m={};s(m,o,(function(){return this}));var g=Object.getPrototypeOf,v=g&&g(g(T([])));v&&v!==t&&n.call(v,o)&&(m=v);var y=h.prototype=f.prototype=Object.create(m);function b(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function w(e,t){function i(r,o,a,l){var s=c(e[r],e,o);if("throw"!==s.type){var u=s.arg,d=u.value;return d&&"object"==qs(d)&&n.call(d,"__await")?t.resolve(d.__await).then((function(e){i("next",e,a,l)}),(function(e){i("throw",e,a,l)})):t.resolve(d).then((function(e){u.value=e,a(u)}),(function(e){return i("throw",e,a,l)}))}l(s.arg)}var o;r(this,"_invoke",{value:function(e,n){function r(){return new t((function(t,r){i(e,n,t,r)}))}return o=o?o.then(r,r):r()}})}function x(e,t,n){var r="suspendedStart";return function(i,o){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===i)throw o;return{value:void 0,done:!0}}for(n.method=i,n.arg=o;;){var a=n.delegate;if(a){var l=_(a,n);if(l){if(l===d)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=c(e,t,n);if("normal"===s.type){if(r=n.done?"completed":"suspendedYield",s.arg===d)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(r="completed",n.method="throw",n.arg=s.arg)}}}function _(e,t){var n=t.method,r=e.iterator[n];if(void 0===r)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,_(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),d;var i=c(r,e.iterator,t.arg);if("throw"===i.type)return t.method="throw",t.arg=i.arg,t.delegate=null,d;var o=i.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,d):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,d)}function k(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(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function S(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(k,this),this.reset(!0)}function T(e){if(e){var t=e[o];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:L}}function L(){return{value:void 0,done:!0}}return p.prototype=h,r(y,"constructor",{value:h,configurable:!0}),r(h,"constructor",{value:p,configurable:!0}),p.displayName=s(h,l,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,s(e,l,"GeneratorFunction")),e.prototype=Object.create(y),e},e.awrap=function(e){return{__await:e}},b(w.prototype),s(w.prototype,a,(function(){return this})),e.AsyncIterator=w,e.async=function(t,n,r,i,o){void 0===o&&(o=Promise);var a=new w(u(t,n,r,i),o);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},b(y),s(y,l,"Generator"),s(y,o,(function(){return this})),s(y,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},e.values=T,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),!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 a.type="throw",a.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var l=n.call(o,"catchLoc"),s=n.call(o,"finallyLoc");if(l&&s){if(this.prev<o.catchLoc)return r(o.catchLoc,!0);if(this.prev<o.finallyLoc)return r(o.finallyLoc)}else if(l){if(this.prev<o.catchLoc)return r(o.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return r(o.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,d):this.complete(a)},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),d},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),E(n),d}},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 i=r.arg;E(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:T(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),d}},e}function Zs(e,t,n,r,i,o,a){try{var l=e[o](a),s=l.value}catch(e){return void n(e)}l.done?t(s):Promise.resolve(s).then(r,i)}function $s(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var o=e.apply(t,n);function a(e){Zs(o,r,i,a,l,"next",e)}function l(e){Zs(o,r,i,a,l,"throw",e)}a(void 0)}))}}var Xs=n(893);function Qs(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var Js=function(e){var t=e.name,n=e.title,r=e.label,i=e.disabled,a=e.ariaLabel,l=e.clickedButtonName,s=e.onClick,u=e.onClickedButton,c=function(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,i,o,a,l=[],s=!0,u=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=o.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){u=!0,i=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw i}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Qs(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)?Qs(e,t):void 0}}(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.")}()}((0,o.useState)(null),2),d=c[0],f=c[1];return(0,o.useEffect)((function(){l&&l===t&&f("flashing-button")}),[l,t]),(0,Xs.jsx)("button",{className:d,title:n,disabled:i,"aria-label":a,onClick:s,onAnimationEnd:function(){f(null),u(),s()},children:r})};function eu(e){return eu="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},eu(e)}function tu(){tu=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},i="function"==typeof Symbol?Symbol:{},o=i.iterator||"@@iterator",a=i.asyncIterator||"@@asyncIterator",l=i.toStringTag||"@@toStringTag";function s(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,n){return e[t]=n}}function u(e,t,n,i){var o=t&&t.prototype instanceof f?t:f,a=Object.create(o.prototype),l=new S(i||[]);return r(a,"_invoke",{value:x(e,n,l)}),a}function c(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=u;var d={};function f(){}function p(){}function h(){}var m={};s(m,o,(function(){return this}));var g=Object.getPrototypeOf,v=g&&g(g(T([])));v&&v!==t&&n.call(v,o)&&(m=v);var y=h.prototype=f.prototype=Object.create(m);function b(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function w(e,t){function i(r,o,a,l){var s=c(e[r],e,o);if("throw"!==s.type){var u=s.arg,d=u.value;return d&&"object"==eu(d)&&n.call(d,"__await")?t.resolve(d.__await).then((function(e){i("next",e,a,l)}),(function(e){i("throw",e,a,l)})):t.resolve(d).then((function(e){u.value=e,a(u)}),(function(e){return i("throw",e,a,l)}))}l(s.arg)}var o;r(this,"_invoke",{value:function(e,n){function r(){return new t((function(t,r){i(e,n,t,r)}))}return o=o?o.then(r,r):r()}})}function x(e,t,n){var r="suspendedStart";return function(i,o){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===i)throw o;return{value:void 0,done:!0}}for(n.method=i,n.arg=o;;){var a=n.delegate;if(a){var l=_(a,n);if(l){if(l===d)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=c(e,t,n);if("normal"===s.type){if(r=n.done?"completed":"suspendedYield",s.arg===d)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(r="completed",n.method="throw",n.arg=s.arg)}}}function _(e,t){var n=t.method,r=e.iterator[n];if(void 0===r)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,_(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),d;var i=c(r,e.iterator,t.arg);if("throw"===i.type)return t.method="throw",t.arg=i.arg,t.delegate=null,d;var o=i.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,d):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,d)}function k(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(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function S(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(k,this),this.reset(!0)}function T(e){if(e){var t=e[o];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:L}}function L(){return{value:void 0,done:!0}}return p.prototype=h,r(y,"constructor",{value:h,configurable:!0}),r(h,"constructor",{value:p,configurable:!0}),p.displayName=s(h,l,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,s(e,l,"GeneratorFunction")),e.prototype=Object.create(y),e},e.awrap=function(e){return{__await:e}},b(w.prototype),s(w.prototype,a,(function(){return this})),e.AsyncIterator=w,e.async=function(t,n,r,i,o){void 0===o&&(o=Promise);var a=new w(u(t,n,r,i),o);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},b(y),s(y,l,"Generator"),s(y,o,(function(){return this})),s(y,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},e.values=T,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),!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 a.type="throw",a.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var l=n.call(o,"catchLoc"),s=n.call(o,"finallyLoc");if(l&&s){if(this.prev<o.catchLoc)return r(o.catchLoc,!0);if(this.prev<o.finallyLoc)return r(o.finallyLoc)}else if(l){if(this.prev<o.catchLoc)return r(o.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return r(o.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,d):this.complete(a)},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),d},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),E(n),d}},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 i=r.arg;E(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:T(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),d}},e}function nu(e,t,n,r,i,o,a){try{var l=e[o](a),s=l.value}catch(e){return void n(e)}l.done?t(s):Promise.resolve(s).then(r,i)}function ru(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var o=e.apply(t,n);function a(e){nu(o,r,i,a,l,"next",e)}function l(e){nu(o,r,i,a,l,"throw",e)}a(void 0)}))}}function iu(e){var t=e.clickedButtonName,n=e.onCreateFolder,r=e.onClickedButton,i=e.constants,o=e.messages;return(0,Xs.jsx)(Js,{name:i.CREATE_FOLDER_BUTTON_NAME,title:o.CREATE_FOLDER_BUTTON_TOOLTIP,label:o.CREATE_FOLDER_BUTTON_LABEL,clickedButtonName:t,onClick:n,onClickedButton:r})}function ou(e){var t=e.clickedButtonName,n=e.onAddFiles,r=e.onClickedButton,i=e.util,a=e.constants,l=e.messages,s=(0,o.useRef)(null),u=s.current;return(0,Xs.jsxs)(Xs.Fragment,{children:[(0,Xs.jsx)(Js,{name:a.ADD_FILES_BUTTON_NAME,title:l.ADD_FILES_BUTTON_TOOLTIP,label:l.ADD_FILES_BUTTON_LABEL,clickedButtonName:t,onClick:function(){function e(){return(e=ru(tu().mark((function e(){var t;return tu().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!i.openFilePickerSupported()){e.next=7;break}return e.next=3,i.showOpenFilePicker({multiple:!0});case 3:t=e.sent,n(t),e.next=8;break;case 7:i.dispatchClick(u);case 8:case"end":return e.stop()}}),e)})))).apply(this,arguments)}!function(){e.apply(this,arguments)}()},onClickedButton:r}),(0,Xs.jsx)("input",{onChange:function(e){var t=e.target,r=Array.from(t.files);r.length&&n(r),u.value=""},ref:s,type:"file",multiple:!0,hidden:!0})]})}function au(e){var t=e.clickedButtonName,n=e.onImportZipFile,r=e.onClickedButton,i=e.util,a=e.constants,l=e.messages,s=a.IMPORT_ZIP_BUTTON_NAME,u=a.ZIP_EXTENSIONS_ACCEPT,c=a.ZIP_EXTENSIONS_ACCEPT_STRING,d=(0,o.useRef)(null),f=d.current;return(0,Xs.jsxs)(Xs.Fragment,{children:[(0,Xs.jsx)(Js,{name:s,title:l.IMPORT_ZIP_BUTTON_TOOLTIP,label:l.IMPORT_ZIP_BUTTON_LABEL,clickedButtonName:t,onClick:function(){function e(){return(e=ru(tu().mark((function e(){var t;return tu().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!i.openFilePickerSupported()){e.next=7;break}return e.next=3,i.showOpenFilePicker({multiple:!1,description:l.ZIP_FILE_DESCRIPTION_LABEL,accept:u});case 3:(t=e.sent).length&&n(t[0]),e.next=8;break;case 7:i.dispatchClick(f);case 8:case"end":return e.stop()}}),e)})))).apply(this,arguments)}!function(){e.apply(this,arguments)}()},onClickedButton:r}),(0,Xs.jsx)("input",{onChange:function(e){var t=e.target;n(t.files[0]),f.value=""},ref:d,type:"file",accept:c,hidden:!0})]})}function lu(e){var t=e.disabled,n=e.clickedButtonName,r=e.onExportZip,i=e.onClickedButton,o=e.constants,a=e.messages;return(0,Xs.jsx)(Js,{name:o.EXPORT_ZIP_BUTTON_NAME,title:a.EXPORT_ZIP_BUTTON_TOOLTIP,label:a.EXPORT_ZIP_BUTTON_LABEL,disabled:t,clickedButtonName:n,onClick:r,onClickedButton:i})}function su(e){var t=e.disabled,n=e.onReset,r=e.messages;return(0,Xs.jsx)(Js,{label:r.RESET_BUTTON_LABEL,disabled:t,onClick:n})}function uu(e){var t=e.onOpenOptions,n=e.messages;return(0,Xs.jsx)(Js,{label:n.OPTIONS_BUTTON_LABEL,onClick:t})}var cu=function(e){var t=e.disabledExportZipButton,n=e.disabledResetButton,r=e.clickedButtonName,i=e.onCreateFolder,o=e.onAddFiles,a=e.onImportZipFile,l=e.onExportZip,s=e.onReset,u=e.onOpenOptions,c=e.onClickedButton,d=e.util,f=e.constants,p=e.messages;return(0,Xs.jsxs)("div",{className:"button-bar button-bar button-bar-top",role:"toolbar","aria-label":"Selected directory commands",onDragOver:function(e){e.preventDefault()},onDrop:function(e){e.dataTransfer.files&&e.dataTransfer.files[0]&&(e.preventDefault(),a(e.dataTransfer.files[0]))},children:[(0,Xs.jsxs)("div",{className:"button-group",children:[(0,Xs.jsx)(ou,{clickedButtonName:r,onAddFiles:o,onClickedButton:c,util:d,constants:f,messages:p}),(0,Xs.jsx)(iu,{clickedButtonName:r,onCreateFolder:i,onClickedButton:c,constants:f,messages:p})]}),(0,Xs.jsxs)("div",{className:"button-group",children:[(0,Xs.jsx)(au,{clickedButtonName:r,onImportZipFile:a,onClickedButton:c,util:d,constants:f,messages:p}),(0,Xs.jsx)(lu,{disabled:t,clickedButtonName:r,onExportZip:l,onClickedButton:c,constants:f,messages:p})]}),(0,Xs.jsxs)("div",{className:"button-group",children:[(0,Xs.jsx)(su,{disabled:n,onReset:s,messages:p}),(0,Xs.jsx)(uu,{onOpenOptions:u,messages:p})]})]})};function du(e){var t=e.disabledBackButton,n=e.disabledForwardButton,r=e.clickedButtonName,i=e.onNavigateBack,o=e.onNavigateForward,a=e.onClickedButton,l=e.constants,s=e.messages;return(0,Xs.jsxs)("span",{className:"history-buttons",children:[(0,Xs.jsx)(fu,{disabled:t,clickedButtonName:r,onNavigateBack:i,onClickedButton:a,constants:l,messages:s}),(0,Xs.jsx)(pu,{disabled:n,clickedButtonName:r,onNavigateForward:o,onClickedButton:a,constants:l,messages:s})]})}function fu(e){var t=e.disabled,n=e.clickedButtonName,r=e.onNavigateBack,i=e.onClickedButton,o=e.constants,a=e.messages;return(0,Xs.jsx)(Js,{name:o.BACK_BUTTON_NAME,title:a.BACK_BUTTON_TOOLTIP,label:a.BACK_BUTTON_LABEL,ariaLabel:"Go back",disabled:t,clickedButtonName:n,onClick:r,onClickedButton:i})}function pu(e){var t=e.disabled,n=e.clickedButtonName,r=e.onNavigateForward,i=e.onClickedButton,o=e.constants,a=e.messages;return(0,Xs.jsx)(Js,{name:o.FORWARD_BUTTON_NAME,title:a.FORWARD_BUTTON_TOOLTIP,label:a.FORWARD_BUTTON_LABEL,ariaLabel:"Go forward",disabled:t,clickedButtonName:n,onClick:r,onClickedButton:i})}function hu(e){var t=e.folder,n=e.onGoIntoFolder,r=e.constants,i=e.messages,o=t,a=function(e){for(var t=[];e&&e.parent;)t.unshift(e),e=e.parent;return e&&t.unshift(e),t}(t);return(0,Xs.jsx)("nav",{className:"breadcrumb",children:(0,Xs.jsx)("ol",{children:a.map((function(e){return(0,Xs.jsx)("li",{children:(0,Xs.jsx)(mu,{folder:e,onGoIntoFolder:n,active:a.length>1&&e!==o,isSelectedFolder:e===o,constants:r,messages:i})},e.id)}))})})}function mu(e){var t,n=e.folder,r=e.onGoIntoFolder,i=e.active,o=e.isSelectedFolder,a=e.constants,l=e.messages;function s(){i&&r(n)}return(0,Xs.jsx)("span",{className:(t=["breadcrumb-item"],i&&t.push("breadcrumb-item-active"),t.join(" ")),role:"button","aria-current":o?"location":null,"aria-label":o?null:"Go into folder",onClick:s,onKeyUp:function(e){return function(e){e.event.key===a.ENTER_KEY&&s()}({event:e,folder:n})},tabIndex:i?0:null,children:n.parent?n.name:l.ROOT_FOLDER_LABEL})}var gu=function(e){var t=e.hidden,n=e.selectedFolder,r=e.disabledBackButton,i=e.disabledForwardButton,o=e.clickedButtonName,a=e.onNavigateBack,l=e.onNavigateForward,s=e.onGoIntoFolder,u=e.onClickedButton,c=e.constants,d=e.messages;return t?void 0:(0,Xs.jsxs)("div",{className:"navigation-bar",role:"toolbar","aria-label":"Navigation history",children:[(0,Xs.jsx)(du,{disabledBackButton:r,disabledForwardButton:i,clickedButtonName:o,onNavigateBack:a,onNavigateForward:l,onClickedButton:u,constants:c,messages:d}),(0,Xs.jsx)(hu,{folder:n,onGoIntoFolder:s,constants:c,messages:d})]})};function vu(e){return vu="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},vu(e)}function yu(){yu=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},i="function"==typeof Symbol?Symbol:{},o=i.iterator||"@@iterator",a=i.asyncIterator||"@@asyncIterator",l=i.toStringTag||"@@toStringTag";function s(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,n){return e[t]=n}}function u(e,t,n,i){var o=t&&t.prototype instanceof f?t:f,a=Object.create(o.prototype),l=new S(i||[]);return r(a,"_invoke",{value:x(e,n,l)}),a}function c(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=u;var d={};function f(){}function p(){}function h(){}var m={};s(m,o,(function(){return this}));var g=Object.getPrototypeOf,v=g&&g(g(T([])));v&&v!==t&&n.call(v,o)&&(m=v);var y=h.prototype=f.prototype=Object.create(m);function b(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function w(e,t){function i(r,o,a,l){var s=c(e[r],e,o);if("throw"!==s.type){var u=s.arg,d=u.value;return d&&"object"==vu(d)&&n.call(d,"__await")?t.resolve(d.__await).then((function(e){i("next",e,a,l)}),(function(e){i("throw",e,a,l)})):t.resolve(d).then((function(e){u.value=e,a(u)}),(function(e){return i("throw",e,a,l)}))}l(s.arg)}var o;r(this,"_invoke",{value:function(e,n){function r(){return new t((function(t,r){i(e,n,t,r)}))}return o=o?o.then(r,r):r()}})}function x(e,t,n){var r="suspendedStart";return function(i,o){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===i)throw o;return{value:void 0,done:!0}}for(n.method=i,n.arg=o;;){var a=n.delegate;if(a){var l=_(a,n);if(l){if(l===d)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=c(e,t,n);if("normal"===s.type){if(r=n.done?"completed":"suspendedYield",s.arg===d)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(r="completed",n.method="throw",n.arg=s.arg)}}}function _(e,t){var n=t.method,r=e.iterator[n];if(void 0===r)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,_(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),d;var i=c(r,e.iterator,t.arg);if("throw"===i.type)return t.method="throw",t.arg=i.arg,t.delegate=null,d;var o=i.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,d):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,d)}function k(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(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function S(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(k,this),this.reset(!0)}function T(e){if(e){var t=e[o];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:L}}function L(){return{value:void 0,done:!0}}return p.prototype=h,r(y,"constructor",{value:h,configurable:!0}),r(h,"constructor",{value:p,configurable:!0}),p.displayName=s(h,l,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,s(e,l,"GeneratorFunction")),e.prototype=Object.create(y),e},e.awrap=function(e){return{__await:e}},b(w.prototype),s(w.prototype,a,(function(){return this})),e.AsyncIterator=w,e.async=function(t,n,r,i,o){void 0===o&&(o=Promise);var a=new w(u(t,n,r,i),o);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},b(y),s(y,l,"Generator"),s(y,o,(function(){return this})),s(y,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},e.values=T,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),!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 a.type="throw",a.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var l=n.call(o,"catchLoc"),s=n.call(o,"finallyLoc");if(l&&s){if(this.prev<o.catchLoc)return r(o.catchLoc,!0);if(this.prev<o.finallyLoc)return r(o.finallyLoc)}else if(l){if(this.prev<o.catchLoc)return r(o.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return r(o.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,d):this.complete(a)},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),d},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),E(n),d}},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 i=r.arg;E(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:T(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),d}},e}function bu(e,t,n,r,i,o,a){try{var l=e[o](a),s=l.value}catch(e){return void n(e)}l.done?t(s):Promise.resolve(s).then(r,i)}function wu(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 xu(e){var t=e.entry,n=e.selectedFolder,r=e.highlighted,i=e.selectModeEnabled,o=e.onHighlight,a=e.onToggle,l=e.onToggleRange,s=e.onEnter,u=e.util,c=e.messages;return(0,Xs.jsxs)(Xs.Fragment,{children:[i&&(0,Xs.jsx)("input",{className:"entry-select",type:"checkbox",checked:r,onChange:function(){return a(t)}}),(0,Xs.jsx)(_u,{entry:t,selectedFolder:n,selectModeEnabled:i,onHighlight:function(){i?a(t):o(t)},onToggle:a,onToggleRange:l,onEnter:s,util:u,messages:c}),(0,Xs.jsx)(ku,{entry:t,selectedFolder:n,onEnter:s,messages:c})]})}function _u(e){var t=e.entry,n=e.selectedFolder,r=e.selectModeEnabled,i=e.onHighlight,o=e.onToggle,a=e.onToggleRange,l=e.onEnter,s=e.util,u=e.messages,c=u.PARENT_FOLDER_TOOLTIP,d=u.LAST_MOD_DATE_LABEL,f=u.SIZE_LABEL,p=u.COMPRESSED_SIZE_LABEL,h=u.UNCOMPRESSED_SIZE_LABEL,m=t===n.parent;return(0,Xs.jsx)("span",{className:"entry-name",title:function(){var e=[m?c:t.name];if(t.data){var n=t.data,r=n.compressedSize,i=n.lastModified,o=n.lastModDate,a=n.size||t.data.uncompressedSize;e.push(d+s.formatDate(void 0===i?o:new Date(i))),a&&r&&e.push(p+s.formatSize(r)),a&&e.push((r?h:f)+s.formatSize(a))}return e.join("\n")}(),onClick:function(e){e.metaKey?o(t):e.shiftKey?a(t):i(t)},onDoubleClick:function(e){r||e.metaKey||l(t)},children:(0,Xs.jsx)("span",{className:"list-item-name",children:m?u.PARENT_FOLDER_LABEL:t.name})})}function ku(e){var t,n=e.entry,r=e.selectedFolder,i=e.onEnter,o=e.messages;return(0,Xs.jsx)("span",{className:"list-item-button",onClick:function(){i(n)},title:(t=[o.SPACE_KEY_LABEL],n===r.parent?t.push(o.ARROW_LEFT_KEY_LABEL):n.directory&&t.push(o.ARROW_RIGHT_KEY_LABEL),o.SHORTCUT_LABEL+t.join(o.KEYS_SEPARATOR_LABEL)),children:n.directory?o.DOWNLOAD_BUTTON_LABEL:o.ENTER_FOLDER_BUTTON_LABEL})}var Eu=function(e){var t=e.entries,n=e.selectedFolder,r=e.highlightedIds,i=e.deltaEntriesHeight,a=e.entriesHeight,l=e.hideDownloadManager,s=e.onDropFiles,u=e.onHighlight,c=e.onToggle,d=e.onToggleRange,f=e.onEnter,p=e.onSaveHeight,h=e.onUpdateHeight,m=e.entriesRef,g=e.entriesHeightRef,v=e.highlightedEntryRef,y=e.util,b=e.constants,w=e.messages,x=function(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,i,o,a,l=[],s=!0,u=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=o.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){u=!0,i=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw i}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return wu(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)?wu(e,t):void 0}}(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.")}()}((0,o.useState)(!1),2),_=x[0],k=x[1],E=(0,o.useRef)(null),S=(0,o.useRef)(0),T=(0,o.useRef)(0);function L(e){var t=[];return e.directory&&t.push("directory"),r.includes(e.id)&&t.push("entry-highlighted"),t.join(" ")}function O(){h(y.getHeight(m.current))}function A(){p(y.getHeight(m.current))}function C(e){E.current&&(y.clearTimeout(E.current),E.current=null)}function N(){var e;return e=yu().mark((function e(t){var n;return yu().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!t.dataTransfer.items){e.next=8;break}return t.preventDefault(),n=Array.from(t.dataTransfer.items),e.t0=s,e.next=6,y.getFilesystemHandles(n);case 6:e.t1=e.sent,(0,e.t0)(e.t1);case 8:case"end":return e.stop()}}),e)})),N=function(){var t=this,n=arguments;return new Promise((function(r,i){var o=e.apply(t,n);function a(e){bu(o,r,i,a,l,"next",e)}function l(e){bu(o,r,i,a,l,"throw",e)}a(void 0)}))},N.apply(this,arguments)}return(0,o.useEffect)((function(){v&&v.current&&(g.current=Math.max(Math.ceil(y.getHeight(m.current)/y.getHeight(v.current)),1))})),(0,o.useEffect)((function(){var e=y.addResizeObserver(m.current,A);return y.addResizeListener(O),function(){e.disconnect(),y.removeResizeListener(O)}})),(0,o.useEffect)((function(){O(),A()}),[]),(0,Xs.jsx)("div",{className:"entries","aria-label":"Folder entries",role:"navigation",ref:m,style:l?{flex:1,resize:"none"}:a?{height:a+i+"px"}:void 0,onDragOver:function(e){e.preventDefault()},onDrop:function(e){return N.apply(this,arguments)},children:(0,Xs.jsx)("ol",{onKeyDown:function(e){e.key!==b.TAB_KEY&&e.preventDefault()},onTouchStart:function(){C(),E.current=y.setTimeout((function(){E.current=null,k(!_)}),b.LONG_TOUCH_DELAY)},onTouchMove:function(e){var t=e.changedTouches[0],n=t.clientX,r=t.clientY;if(T.current&&S.current){var i=Math.abs(r-T.current);Math.abs(n-S.current)>1&&i>1&&C()}else S.current=n,T.current=r},onTouchEnd:function(e){S.current=0,T.current=0,C()},onContextMenu:function(e){e.preventDefault()},children:t.map((function(e){return r.includes(e.id)?(0,Xs.jsx)("li",{ref:r[r.length-1]===e.id?v:null,className:L(e),tabIndex:0,children:(0,Xs.jsx)(xu,{entry:e,selectedFolder:n,highlighted:!0,selectModeEnabled:_,onHighlight:u,onToggle:c,onToggleRange:d,onEnter:f,util:y,messages:w})},e.id):(0,Xs.jsx)("li",{className:L(e),children:(0,Xs.jsx)(xu,{entry:e,selectedFolder:n,highlighted:!1,selectModeEnabled:_,onHighlight:u,onToggle:c,onToggleRange:d,onEnter:f,util:y,messages:w})},e.id)}))})})};function Su(e){var t=e.disabled,n=e.clickedButtonName,r=e.onCopy,i=e.onClickedButton,o=e.constants,a=e.messages;return(0,Xs.jsx)(Js,{name:o.COPY_BUTTON_NAME,title:a.COPY_BUTTON_TOOLTIP,label:a.COPY_BUTTON_LABEL,disabled:t,clickedButtonName:n,onClick:r,onClickedButton:i})}function Tu(e){var t=e.disabled,n=e.clickedButtonName,r=e.onCut,i=e.onClickedButton,o=e.constants,a=e.messages;return(0,Xs.jsx)(Js,{name:o.CUT_BUTTON_NAME,title:a.CUT_BUTTON_TOOLTIP,label:a.CUT_BUTTON_LABEL,disabled:t,clickedButtonName:n,onClick:r,onClickedButton:i})}function Lu(e){var t=e.disabled,n=e.clickedButtonName,r=e.onPaste,i=e.onClickedButton,o=e.constants,a=e.messages;return(0,Xs.jsx)(Js,{name:o.PASTE_BUTTON_NAME,title:a.PASTE_BUTTON_TOOLTIP,label:a.PASTE_BUTTON_LABEL,disabled:t,clickedButtonName:n,onClick:r,onClickedButton:i})}function Ou(e){var t=e.disabled,n=e.onResetClipboardData,r=e.messages;return(0,Xs.jsx)(Js,{label:r.RESET_CLIPBOARD_BUTTON_LABEL,disabled:t,onClick:n})}function Au(e){var t=e.disabled,n=e.clickedButtonName,r=e.onHighlightAll,i=e.onClickedButton,o=e.constants,a=e.messages;return(0,Xs.jsx)(Js,{name:o.HIGHLIGHT_ALL_BUTTON_NAME,title:a.HIGHLIGHT_ALL_BUTTON_TOOLTIP,label:a.HIGHLIGHT_ALL_BUTTON_LABEL,disabled:t,clickedButtonName:n,onClick:r,onClickedButton:i})}function Cu(e){var t=e.disabled,n=e.clickedButtonName,r=e.onExtract,i=e.onClickedButton,o=e.constants,a=e.messages;return(0,Xs.jsx)(Js,{name:o.EXTRACT_BUTTON_NAME,title:a.EXTRACT_BUTTON_TOOLTIP,label:a.EXTRACT_BUTTON_LABEL,disabled:t,clickedButtonName:n,onClick:r,onClickedButton:i})}function Nu(e){var t=e.disabled,n=e.clickedButtonName,r=e.onRename,i=e.onClickedButton,o=e.constants,a=e.messages;return(0,Xs.jsx)(Js,{name:o.RENAME_BUTTON_NAME,title:a.RENAME_BUTTON_TOOLTIP,label:a.RENAME_BUTTON_LABEL,disabled:t,clickedButtonName:n,onClick:r,onClickedButton:i})}function Pu(e){var t=e.disabled,n=e.clickedButtonName,r=e.onRemove,i=e.onClickedButton,o=e.constants,a=e.messages;return(0,Xs.jsx)(Js,{name:o.DELETE_BUTTON_NAME,title:a.DELETE_BUTTON_TOOLTIP,label:a.DELETE_BUTTON_LABEL,disabled:t,clickedButtonName:n,onClick:r,onClickedButton:i})}var Du=function(e){var t=e.disabledCopyButton,n=e.disabledCutButton,r=e.disabledPasteButton,i=e.disabledResetClipboardDataButton,a=e.disabledExtractButton,l=e.disabledHighlightAllButton,s=e.disabledRenameButton,u=e.disabledDeleteButton,c=e.hideDownloadManager,d=e.hideInfobar,f=e.clickedButtonName,p=e.onCopy,h=e.onCut,m=e.onPaste,g=e.onResetClipboardData,v=e.onExtract,y=e.onHighlightAll,b=e.onRename,w=e.onRemove,x=e.onMove,_=e.onUpdateHeight,k=e.onClickedButton,E=e.constants,S=e.messages,T=(0,o.useRef)(0);return(0,Xs.jsxs)("div",{className:"button-bar button-bar-bottom",role:"toolbar","aria-label":"Highlighted entry commands",onTouchMove:function(e){var t=e.changedTouches[0].clientY;if(T.current){var n=t-T.current;x(n)}else T.current=t},onTouchEnd:function(){T.current=0,_()},onContextMenu:function(e){return e.preventDefault()},style:d&&c?{borderBlockEnd:0}:null,children:[(0,Xs.jsxs)("div",{className:"button-group",children:[(0,Xs.jsx)(Au,{disabled:l,clickedButtonName:f,onHighlightAll:y,onClickedButton:k,constants:E,messages:S}),(0,Xs.jsx)(Cu,{disabled:a,clickedButtonName:f,onExtract:v,onClickedButton:k,constants:E,messages:S}),(0,Xs.jsx)(Nu,{disabled:s,clickedButtonName:f,onRename:b,onClickedButton:k,constants:E,messages:S}),(0,Xs.jsx)(Pu,{disabled:u,clickedButtonName:f,onRemove:w,onClickedButton:k,constants:E,messages:S})]}),(0,Xs.jsxs)("div",{className:"button-group",children:[(0,Xs.jsx)(Su,{disabled:t,clickedButtonName:f,onCopy:p,onClickedButton:k,constants:E,messages:S}),(0,Xs.jsx)(Tu,{disabled:n,clickedButtonName:f,onCut:h,onClickedButton:k,constants:E,messages:S}),(0,Xs.jsx)(Lu,{disabled:r,clickedButtonName:f,onPaste:m,onClickedButton:k,constants:E,messages:S}),(0,Xs.jsx)(Ou,{disabled:i,onResetClipboardData:g,messages:S})]})]})};function Iu(e){var t=e.download,n=e.onAbortDownload,r=e.constants,i=e.messages;return(0,Xs.jsxs)(Xs.Fragment,{children:[(0,Xs.jsx)(zu,{download:t,onAbortDownload:n,constants:r,messages:i}),(0,Xs.jsx)(Fu,{download:t})]})}function zu(e){var t=e.download,n=e.onAbortDownload,r=e.constants,i=e.messages;return(0,Xs.jsxs)("div",{className:"download-entry",children:[(0,Xs.jsx)("span",{className:"list-item-name download-entry-name",children:t.name}),(0,Xs.jsx)(Ru,{download:t,onAbortDownload:n,constants:r,messages:i})]})}function Ru(e){var t=e.download,n=e.onAbortDownload,r=e.constants,i=e.messages;function o(){n(t)}return(0,Xs.jsx)("span",{className:"list-item-button download-entry-abort-button",role:"button",onClick:o,onKeyUp:function(e){e.key===r.ENTER_KEY&&o()},tabIndex:0,children:i.ABORT_DOWNLOAD_BUTTON_LABEL})}function Fu(e){var t=e.download;return(0,Xs.jsx)("progress",{value:t.progressValue,max:t.progressMax})}var Bu=function(e){var t=e.hidden,n=e.downloads,r=e.hideInfobar,i=e.downloaderRef,o=e.onAbortDownload,a=e.constants,l=e.messages;return t?(0,Xs.jsx)("div",{style:{display:"none"},children:(0,Xs.jsx)("a",{hidden:!0,ref:i,href:"about:blank"})}):(0,Xs.jsxs)("div",{className:"downloads","aria-label":"Downloads",role:"navigation",style:r?{borderBlockEnd:0}:null,children:[(0,Xs.jsx)("ol",{children:n.map((function(e){return(0,Xs.jsx)("li",{children:(0,Xs.jsx)(Iu,{download:e,onAbortDownload:o,constants:a,messages:l})},e.id)}))}),(0,Xs.jsx)("a",{hidden:!0,ref:i,href:"about:blank"})]})};function ju(e){var t=e.accentColor,n=e.onSetAccentColor,r=(0,o.useRef)(null);return(0,o.useEffect)((function(){t&&(r.current.value=t)}),[t]),(0,Xs.jsxs)(Xs.Fragment,{children:[(0,Xs.jsx)("span",{className:"icon",onClick:function(){r.current.showPicker()},children:"♡"})," in ",(0,Xs.jsx)("a",{href:"https://en.wikipedia.org/wiki/Rennes",target:"_blank",rel:"noreferrer",children:"Rennes"}),(0,Xs.jsx)("input",{type:"color",onChange:function(){n(r.current.value)},ref:r,tabIndex:-1})]})}var Uu=function(e){var t=e.hidden,n=e.accentColor,r=e.onSetAccentColor;return t?void 0:(0,Xs.jsx)("footer",{className:"info-bar",children:(0,Xs.jsxs)("div",{className:"source-link",children:["Source code on ",(0,Xs.jsx)("a",{href:"https://github.com/gildas-lormeau/zip-manager",children:"GitHub"})," | Made with ",(0,Xs.jsx)(ju,{accentColor:n,onSetAccentColor:r})]})})},Mu=function(e){var t=e.className,n=e.data,r=e.title,i=e.resetLabel,a=e.cancelLabel,l=e.submitLabel,s=e.children,u=e.onOpen,c=e.onSubmit,d=e.onReset,f=e.onClose,p=(0,o.useRef)(null);return(0,o.useEffect)((function(){!p.current.open&&n&&(u&&u(),p.current.showModal())}),[n,u]),(0,Xs.jsx)("dialog",{className:t,ref:p,onClose:f,children:(0,Xs.jsxs)("form",{method:"dialog",onSubmit:c,onReset:function(){p.current.close()},children:[(0,Xs.jsx)("div",{className:"dialog-title",children:r}),(0,Xs.jsx)("p",{children:s}),(0,Xs.jsxs)("div",{className:"button-bar",children:[(0,Xs.jsx)("div",{className:"button-group",children:i&&(0,Xs.jsx)("button",{type:"reset",onClick:function(e){e.preventDefault(),d()},children:i})}),(0,Xs.jsxs)("div",{className:"button-group",children:[a&&(0,Xs.jsx)("button",{type:"reset",children:a}),(0,Xs.jsx)("button",{type:"submit",children:l})]})]})]})})};function Wu(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,i,o,a,l=[],s=!0,u=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=o.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){u=!0,i=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw i}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Hu(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)?Hu(e,t):void 0}}(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 Hu(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var Ku=function(e){var t=e.data,n=e.hidePassword,r=e.onExportZip,i=e.onClose,a=e.messages,l=(0,o.useRef)(null),s=(0,o.useRef)(!1),u=Wu((0,o.useState)(""),2),c=u[0],d=u[1],f=Wu((0,o.useState)(""),2),p=f[0],h=f[1],m=null==t?void 0:t.filenameHidden;return(0,o.useEffect)((function(){!s.current&&c&&l&&l.current&&(s.current=!0,l.current.select())}),[c]),(0,Xs.jsxs)(Mu,{data:t,title:a.EXPORT_ZIP_TITLE,cancelLabel:a.DIALOG_CANCEL_BUTTON_LABEL,submitLabel:a.EXPORT_ZIP_DIALOG_BUTTON_LABEL,onOpen:function(){var e=t.filename,n=t.password;d(e),h(n)},onClose:function(){s.current=!1,i()},onSubmit:function(){r({filename:c,password:p})},children:[(0,Xs.jsxs)("label",{style:{display:m?"none":null},children:[a.EXPORT_ZIP_FILENAME_LABEL,!m&&(0,Xs.jsx)("input",{value:c,required:!0,onChange:function(e){d(e.target.value)},ref:l})]}),n||(0,Xs.jsxs)("label",{children:[a.EXPORT_ZIP_PASSWORD_LABEL,(0,Xs.jsx)("input",{type:"password",autoComplete:"off",value:p,onChange:function(e){h(e.target.value)}})]})]})};function qu(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var Yu=function(e){var t=e.data,n=e.onExtract,r=e.onClose,i=e.messages,a=(0,o.useRef)(null),l=(0,o.useRef)(!1),s=function(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,i,o,a,l=[],s=!0,u=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=o.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){u=!0,i=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw i}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return qu(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)?qu(e,t):void 0}}(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.")}()}((0,o.useState)(""),2),u=s[0],c=s[1];return(0,o.useEffect)((function(){!l.current&&u&&(l.current=!0,a.current.select())}),[u]),(0,Xs.jsx)(Mu,{data:t,title:i.EXTRACT_TITLE,cancelLabel:i.DIALOG_CANCEL_BUTTON_LABEL,submitLabel:i.EXTRACT_DIALOG_BUTTON_LABEL,onOpen:function(){c(t.filename)},onClose:function(){c(""),l.current=!1,r()},onSubmit:function(){n({filename:u})},children:(0,Xs.jsxs)("label",{children:[i.EXTRACT_FILENAME_LABEL,(0,Xs.jsx)("input",{value:u,required:!0,onChange:function(e){c(e.target.value)},ref:a})]})})};function Gu(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var Vu=function(e){var t=e.data,n=e.onRename,r=e.onClose,i=e.messages,a=(0,o.useRef)(null),l=(0,o.useRef)(!1),s=function(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,i,o,a,l=[],s=!0,u=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=o.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){u=!0,i=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw i}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Gu(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)?Gu(e,t):void 0}}(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.")}()}((0,o.useState)(""),2),u=s[0],c=s[1];return(0,o.useEffect)((function(){!l.current&&u&&(l.current=!0,a.current.select())}),[u]),(0,Xs.jsx)(Mu,{data:t,title:i.RENAME_TITLE,cancelLabel:i.DIALOG_CANCEL_BUTTON_LABEL,submitLabel:i.RENAME_DIALOG_BUTTON_LABEL,onOpen:function(){c(t.filename)},onClose:function(){c(""),l.current=!1,r()},onSubmit:function(){n({filename:u})},children:(0,Xs.jsxs)("label",{children:[i.RENAME_FILENAME_LABEL,(0,Xs.jsx)("input",{value:u,required:!0,onChange:function(e){c(e.target.value)},ref:a})]})})};function Zu(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var $u=function(e){var t=e.data,n=e.onCreateFolder,r=e.onClose,i=e.messages,a=function(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,i,o,a,l=[],s=!0,u=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=o.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){u=!0,i=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw i}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Zu(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)?Zu(e,t):void 0}}(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.")}()}((0,o.useState)(""),2),l=a[0],s=a[1];return(0,Xs.jsx)(Mu,{data:t,title:i.CREATE_FOLDER_TITLE,cancelLabel:i.DIALOG_CANCEL_BUTTON_LABEL,submitLabel:i.CREATE_FOLDER_DIALOG_BUTTON_LABEL,onClose:function(){s(""),r()},onSubmit:function(){n({folderName:l})},children:(0,Xs.jsxs)("label",{children:[i.CREATE_FOLDER_NAME_LABEL,(0,Xs.jsx)("input",{value:l,required:!0,onChange:function(e){s(e.target.value)}})]})})},Xu=function(e){var t=e.data,n=e.onReset,r=e.onClose,i=e.messages;return(0,Xs.jsx)(Mu,{data:t,title:i.RESET_TITLE,cancelLabel:i.DIALOG_CANCEL_BUTTON_LABEL,submitLabel:i.RESET_DIALOG_BUTTON_LABEL,onClose:r,onSubmit:n,children:i.RESET_MESSAGE})},Qu=function(e){var t=e.data,n=e.onDeleteEntry,r=e.onClose,i=e.messages;return(0,Xs.jsx)(Mu,{data:t,title:i.DELETE_ENTRY_TITLE,cancelLabel:i.DIALOG_CANCEL_BUTTON_LABEL,submitLabel:i.DELETE_ENTRY_DIALOG_BUTTON_LABEL,onClose:r,onSubmit:n,children:i.DELETE_ENTRY_MESSAGE})},Ju=function(e){var t=e.data,n=e.onClose,r=e.messages;return(0,Xs.jsx)(Mu,{data:t,title:r.ERROR_TITLE,submitLabel:r.DIALOG_OK_BUTTON_LABEL,onClose:n,children:null==t?void 0:t.message})};function ec(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var tc=function(e){var t=e.data,n=e.onClose,r=e.messages,i=function(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,i,o,a,l=[],s=!0,u=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=o.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){u=!0,i=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw i}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return ec(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)?ec(e,t):void 0}}(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.")}()}((0,o.useState)(""),2),a=i[0],l=i[1];return(0,Xs.jsx)(Mu,{data:t,title:r.IMPORT_PASSWORD_TITLE,cancelLabel:r.DIALOG_CANCEL_BUTTON_LABEL,submitLabel:r.DIALOG_OK_BUTTON_LABEL,onClose:function(){l(""),t.onSetImportPassword({password:a}),n()},children:(0,Xs.jsxs)("label",{children:[r.IMPORT_PASSWORD_LABEL,(0,Xs.jsx)("input",{type:"password",autoComplete:"off",value:a,required:!0,onChange:function(e){l(e.target.value)}})]})})};function nc(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,i,o,a,l=[],s=!0,u=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=o.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){u=!0,i=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw i}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return rc(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)?rc(e,t):void 0}}(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 rc(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var ic=function(e){var t=e.data,n=e.onSetOptions,r=e.onResetOptions,i=e.onClose,a=e.messages,l=nc((0,o.useState)(!1),2),s=l[0],u=l[1],c=nc((0,o.useState)(!1),2),d=c[0],f=c[1],p=nc((0,o.useState)(!1),2),h=p[0],m=p[1],g=nc((0,o.useState)(""),2),v=g[0],y=g[1],b=nc((0,o.useState)(!1),2),w=b[0],x=b[1],_=nc((0,o.useState)(!1),2),k=_[0],E=_[1],S=nc((0,o.useState)(!1),2),T=S[0],L=S[1],O=nc((0,o.useState)(!1),2),A=O[0],C=O[1],N=nc((0,o.useState)("0"),2),P=N[0],D=N[1],I=nc((0,o.useState)("0"),2),z=I[0],R=I[1],F=(0,o.useRef)(null);function B(){if(t){var e=t.hideNavigationBar,n=t.hideDownloadManager,r=t.hideInfobar,i=t.promptForExportPassword,o=t.defaultExportPassword,a=t.keepOrder,l=t.checkSignature,s=t.bufferedWrite,c=t.maxWorkers,d=t.chunkSize;u(e),f(n),m(r),x(i),y(o),E(a),L(l),C(s),D(c),R(d/1024)}}return(0,o.useEffect)(B,[t]),(0,Xs.jsxs)(Mu,{className:"options-dialog",data:t,title:a.OPTIONS_TITLE,onOpen:B,onSubmit:function(){n({hideNavigationBar:s,hideDownloadManager:d,hideInfobar:h,promptForExportPassword:w,defaultExportPassword:v,keepOrder:k,checkSignature:T,bufferedWrite:A,maxWorkers:Number(P),chunkSize:1024*Number(z)})},onReset:r,onClose:i,resetLabel:a.DIALOG_RESET_BUTTON_LABEL,cancelLabel:a.DIALOG_CANCEL_BUTTON_LABEL,submitLabel:a.OPTIONS_DIALOG_BUTTON_LABEL,children:[(0,Xs.jsxs)("label",{children:[a.OPTIONS_HIDE_NAVIGATION_BAR_LABEL,(0,Xs.jsx)("input",{checked:s,type:"checkbox",onChange:function(e){u(e.target.checked)}})]}),(0,Xs.jsxs)("label",{children:[a.OPTIONS_HIDE_DOWNLOAD_MANAGER_LABEL,(0,Xs.jsx)("input",{checked:d,type:"checkbox",onChange:function(e){f(e.target.checked)}})]}),(0,Xs.jsxs)("label",{children:[a.OPTIONS_HIDE_INFOBAR_LABEL,(0,Xs.jsx)("input",{checked:h,type:"checkbox",onChange:function(e){m(e.target.checked)}})]}),(0,Xs.jsxs)("label",{children:[a.OPTIONS_EXPORT_ZIP_PASSWORD_LABEL,(0,Xs.jsx)("input",{checked:w,type:"checkbox",onChange:function(e){x(e.target.checked)}})]}),(0,Xs.jsxs)("label",{children:[a.OPTIONS_DEFAULT_PASSWORD_LABEL,(0,Xs.jsx)("input",{type:"password",autoComplete:"off",value:v,onFocus:function(){F.current.select()},onChange:function(e){y(e.target.value)},ref:F})]}),(0,Xs.jsxs)("label",{children:[a.OPTIONS_CHECK_SIGNATURE_LABEL,(0,Xs.jsx)("input",{checked:T,type:"checkbox",onChange:function(e){L(e.target.checked)}})]}),(0,Xs.jsxs)("label",{children:[a.OPTIONS_BUFFERED_WRITE_LABEL,(0,Xs.jsx)("input",{checked:A,type:"checkbox",onChange:function(e){C(e.target.checked)}})]}),(0,Xs.jsxs)("label",{children:[a.OPTIONS_MAX_WORKERS_LABEL,(0,Xs.jsx)("input",{value:P,type:"number",required:!0,disabled:!A,min:1,onChange:function(e){D(e.target.value)}})]}),(0,Xs.jsxs)("label",{children:[a.OPTIONS_KEEP_ORDER_LABEL,(0,Xs.jsx)("input",{checked:k,type:"checkbox",onChange:function(e){E(e.target.checked)}})]}),(0,Xs.jsxs)("label",{children:[a.OPTIONS_CHUNK_SIZE_LABEL,(0,Xs.jsx)("input",{value:z,type:"number",required:!0,min:1,onChange:function(e){R(e.target.value)}})]})]})},oc=function(e){var t=e.data,n=e.onImportZipFile,r=e.onAddFiles,i=e.onClose,a=e.messages,l=(0,o.useRef)(null);return(0,o.useEffect)((function(){!l.current.open&&t&&l.current.showModal()}),[t]),(0,Xs.jsx)("dialog",{ref:l,onClose:function(){i()},children:(0,Xs.jsx)("form",{method:"dialog",onReset:function(){l.current.close()},children:(0,Xs.jsxs)("div",{children:[(0,Xs.jsx)("div",{className:"dialog-title",children:(0,Xs.jsx)("label",{children:a.CHOOSE_ACTION_TITLE})}),(0,Xs.jsx)("p",{children:a.CHOOSE_ACTION_LABEL}),(0,Xs.jsxs)("div",{className:"button-bar",children:[(0,Xs.jsx)("div",{className:"button-group"}),(0,Xs.jsxs)("div",{className:"button-group",children:[(0,Xs.jsx)("button",{type:"reset",children:a.DIALOG_CANCEL_BUTTON_LABEL}),(0,Xs.jsx)("button",{type:"submit",onClick:function(){r(t.files)},children:a.CHOOSE_ACTION_DIALOG_ADD_FILE_BUTTON_LABEL}),(0,Xs.jsx)("button",{type:"submit",onClick:function(){n(t.files[0])},children:a.IMPORT_ZIP_BUTTON_LABEL})]})]})]})})})};function ac(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,i,o,a,l=[],s=!0,u=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=o.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){u=!0,i=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw i}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return lc(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)?lc(e,t):void 0}}(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 lc(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var sc,uc=function(e){var t=e.selectedFolder,n=e.setDownloadId,r=e.setDownloads,i=e.setEntries,o=e.setErrorMessageDialog,a=e.setClickedButtonName,l=e.removeDownload,s=e.downloaderElement,u=e.zipService,c=e.storageService,d=e.util,f=e.constants;function p(e,t){return e.filter((function(e){return Boolean(e.directory)===t})).sort((function(e,t){return e.name.localeCompare(t.name)}))}function h(e,t,n,r){return m.apply(this,arguments)}function m(){return m=Ts(xs().mark((function e(t,n,r,i){return xs().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!d.savePickersSupported()){e.next=15;break}if(e.prev=1,i||!(t.length>1||t[0].directory)){e.next=6;break}return e.next=5,_();case 5:i=e.sent;case 6:e.next=15;break;case 8:if(e.prev=8,e.t0=e.catch(1),!d.downloadAborted(e.t0)){e.next=14;break}return e.abrupt("return");case 14:throw e.t0;case 15:return e.next=17,Promise.all(t.map(function(){var e=Ts(xs().mark((function e(t){return xs().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",g(t,n,r,i));case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()));case 17:case"end":return e.stop()}}),e,null,[[1,8]])}))),m.apply(this,arguments)}function g(e,t,n,r){return v.apply(this,arguments)}function v(){return(v=Ts(xs().mark((function e(t,n,r,i){var o,a;return xs().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(i||!t.directory){e.next=4;break}return e.next=3,_();case 3:i=e.sent;case 4:if(o=n||t.name,e.prev=5,!t.directory){e.next=11;break}return e.next=9,y(o,t,r,i);case 9:e.next=14;break;case 11:return a={name:o,controller:d.createAbortController(),progressValue:null,progressMax:null},e.next=14,w(o,t,r,a,i);case 14:e.next=20;break;case 16:if(e.prev=16,e.t0=e.catch(5),d.downloadAborted(e.t0)){e.next=20;break}throw e.t0;case 20:return e.prev=20,a&&l(a),e.finish(20);case 23:case"end":return e.stop()}}),e,null,[[5,16,20,23]])})))).apply(this,arguments)}function y(e,t,n,r){return b.apply(this,arguments)}function b(){return(b=Ts(xs().mark((function e(t,n,r,i){var o;return xs().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,i.getDirectoryHandle(t,{create:!0});case 2:return o=e.sent,e.next=5,h(n.children,null,r,o);case 5:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function w(e,t,n,r,i){return x.apply(this,arguments)}function x(){return x=Ts(xs().mark((function e(t,i,o,a,l){var u,c,f,p,h,m,g;return xs().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(u=d.savePickersSupported(),c=a.controller.signal,f=function(e,t){return k(a.id,e,t)},!u){e.next=19;break}if(!l){e.next=10;break}return e.next=7,l.getFileHandle(t,{create:!0});case 7:p=e.sent,e.next=14;break;case 10:return e.next=12,v=t,d.showSaveFilePicker({suggestedName:v,mode:"readwrite",startIn:"downloads"});case 12:p=e.sent,a.name=p.name;case 14:return e.next=16,p.createWritable();case 16:h=e.sent,e.next=22;break;case 19:g=d.getWritableBlob(),h=g.writable,m=g.blob;case 22:return n((function(e){return a.id=e+1,a.id})),r((function(e){return[a].concat(Ls(e))})),e.next=26,i.getWritable(h,ks({signal:c,onprogress:f},o));case 26:if(u){e.next=34;break}return e.t0=d,e.next=30,m;case 30:e.t1=e.sent,e.t2=s,e.t3=a.name,e.t0.downloadBlob.call(e.t0,e.t1,e.t2,e.t3);case 34:case"end":return e.stop()}var v}),e)}))),x.apply(this,arguments)}function _(){return d.showDirectoryPicker({mode:"readwrite",startIn:"downloads"})}function k(e,t,n){r((function(r){return r.map((function(r){return r.id===e&&(r=ks(ks({},r),{},{progressValue:t,progressMax:n})),r}))}))}function E(e){var t=e.maxWorkers,n=e.chunkSize;u.configure({maxWorkers:t,chunkSize:n})}return{saveEntry:g,saveEntries:h,refreshSelectedFolder:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:t;if(e){var n=e.parent,r=e.children,o=p(r,!0),a=p(r,!1),l=[];n&&l.push(n),i([].concat(l,Ls(o),Ls(a)))}},setOptions:function(e){E(e),c.set(f.OPTIONS_KEY_NAME,e)},getOptions:function(){var e=f.DEFAULT_OPTIONS,t=f.OPTIONS_KEY_NAME,n=c.get(t);return n||((n=ks({},e)).maxWorkers=d.getDefaultMaxWorkers()),void 0===n.hideNavigationBar&&(n.hideNavigationBar=e.hideNavigationBar),void 0===n.hideDownloadManager&&(n.hideDownloadManager=e.hideDownloadManager),void 0===n.hideInfobar&&(n.hideInfobar=e.hideInfobar),void 0===n.promptForExportPassword&&(n.promptForExportPassword=e.promptForExportPassword),void 0===n.defaultExportPassword&&(n.defaultExportPassword=e.defaultExportPassword),void 0===n.checkSignature&&(n.checkSignature=e.checkSignature),E(n),n},openDisplayError:function(e){o({message:e})},closeDisplayError:function(){o(null)},resetClickedButtonName:function(){a(null)}}},cc=function(e){var t=e.entries,n=e.selectedFolder,r=e.previousHighlight,i=e.highlightedIds,o=e.toggleNavigationDirection,a=e.getEntriesHeight,l=e.setHighlightedIds,s=e.setPreviousHighlight,u=e.setToggleNavigationDirection;function c(e){var t=p(i,e);s(e),u(0),l(t)}function d(e){s(e),u(0),l([e.id])}function f(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:g(),r=t.findIndex((function(t){return t.id===e.id})),o=As(i);if(n<r)for(var a=n+1;a<=r;a++)o=p(o,t[a]);else if(n>r)for(var c=n-1;c>=r;c--)o=p(o,t[c]);s(e),u(0),l(o)}function p(e,t){return e.includes(t.id)?e.length>1?e.filter((function(e){return e!==t.id})):e:[].concat(As(e),[t.id])}function h(e){return t[Math.max(e-a(),0)]}function m(e){return t[Math.min(e+a(),t.length-1)]}function g(){return t.findIndex((function(e){return e===r}))}function v(){var e=i[i.length-1];return t.findIndex((function(t){return t.id===e}))}return{highlightPrevious:function(){var e=v();d(t[(e-1+t.length)%t.length])},highlightNext:function(){var e=v();d(t[(e+1)%t.length])},highlightPreviousPage:function(){d(h(v()))},highlightNextPage:function(){d(m(v()))},highlightFirst:function(){d(t[0])},highlightLast:function(){d(t[t.length-1])},highlightFirstLetter:function(e){var n=t.filter((function(t){return t.name&&t.name.toLocaleLowerCase().startsWith(e.toLocaleLowerCase())}));if(n.length){var r=n[0];1===n.length?d(r):(s(r),u(0),l(n.reverse().map((function(e){return e.id}))))}},highlight:function(e){d(e)},highlightEntries:function(e){s(e[e.length-1]),u(0),l(e.map((function(e){return e.id})))},highlightAll:function(){s(t[0]),u(0),l(t.filter((function(e){return e!==n.parent})).map((function(e){return e.id})))},toggle:c,toggleRange:f,togglePrevious:function(){if(r){var e=g();if(e>0){var n=t[e-1];c(1!==o?n:r),u(-1)}}},toggleNext:function(){if(r){var e=g();if(e<t.length-1){var n=t[e+1];c(-1!==o?n:r),u(1)}}},togglePreviousPage:function(){if(r){var e=g(),t=h(e);1!==o?f(t):f(t,e+1),u(-1)}},toggleNextPage:function(){if(r){var e=g(),t=m(e);-1!==o?f(t):f(t,e-1),u(1)}},toggleFirst:function(){if(r){var e=g(),n=t[0];1!==o?f(n):f(n,e+1),u(-1)}},toggleLast:function(){if(r){var e=g(),n=t[t.length-1];-1!==o?f(n):f(n,e-1),u(1)}}}},dc=function(e){var t=e.history,n=e.historyIndex,r=e.selectedFolder,i=e.setSelectedFolder,o=e.setHistory,a=e.setHistoryIndex,l=e.setHighlightedIds,s=e.refreshSelectedFolder;function u(e){var o=n+e;a(o);var l=t[o];c(r,l),i(l),s(l)}function c(e,t){if(e.children.includes(t)||t.children.includes(e))l([e.id]);else{var n=t.children.find((function(t){return e.isDescendantOf(t)}));l(n?[n.id]:[t.parent.id])}}return{goIntoFolder:function(e){var l=function(e){return function(e){if(Array.isArray(e))return Ns(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return Ns(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)?Ns(e,t):void 0}}(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.")}()}(t),u=n+1;e.isDescendantOf(r)&&(l.length=u+1),l[u]=e,o(l),a(u),c(r,e),i(e),s(e)},navigateBack:function(){u(-1)},navigateForward:function(){u(1)}}},fc=function(e){var t=e.zipFilesystem,n=e.selectedFolder,r=e.rootZipFilename,i=e.chooseActionDialog,o=e.setImportPasswordDialog,a=e.setExportZipDialog,l=e.setCreateFolderDialog,s=e.setChooseActionDialog,u=e.refreshSelectedFolder,c=e.highlightEntries,d=e.saveEntry,f=e.getOptions,p=e.openDisplayError,h=e.util,m=e.constants;function g(e,t,n){var r=n.forceAddFiles,o=1===e.length&&m.ZIP_EXTENSIONS.find((function(t){return e[0].name.endsWith(t)}))&&!r;return o&&(i?t(e,{forceAddFiles:!0}):s({files:e})),o}function v(e){c(e.sort((function(e,t){return t.name.localeCompare(e.name)})))}function y(e){var t=e.filename,r=e.password;function i(e,t){return n.exportWritable(e,t)}function o(){return(o=Bs(Rs().mark((function e(){var n;return Rs().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,n=f(),e.next=4,d({filename:t,getWritable:i},t,Is(Is({},n),{},{password:r,readerOptions:{checkSignature:n.checkSignature}}));case 4:e.next=9;break;case 6:e.prev=6,e.t0=e.catch(0),p(e.t0.message);case 9:case"end":return e.stop()}}),e,null,[[0,6]])})))).apply(this,arguments)}!function(){o.apply(this,arguments)}()}return{openPromptCreateFolder:function(){l({})},createFolder:function(e){var t=e.folderName;try{var r=n.addDirectory(t);c([r]),u()}catch(e){p(e.message)}},closePromptCreateFolder:function(){l(null)},addFiles:function e(t){if(!g(t,e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:{})){var r=[];t.forEach((function(e){try{r.push(n.addBlob(e.name,e,{lastModDate:new Date(e.lastModified)}))}catch(e){p(e.message)}})),r.length&&v(r),u()}},dropFiles:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};function r(){return i.apply(this,arguments)}function i(){return(i=Bs(Rs().mark((function i(){var a,l;return Rs().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:if(a=[],l=e[0],i.t0=l.kind===h.FILESYSTEM_FILE_KIND,!i.t0){i.next=12;break}return i.t1=g,i.next=7,l.getFile();case 7:i.t2=i.sent,i.t3=[i.t2],i.t4=r,i.t5=t,i.t0=(0,i.t1)(i.t3,i.t4,i.t5);case 12:if(i.t0){i.next=19;break}return i.next=16,Promise.all(e.map((function(e){return o(e,n,a)})));case 16:v(n.children.filter((function(e){return a.includes(e)}))),u();case 19:case"end":return i.stop()}}),i)})))).apply(this,arguments)}function o(e,t,n){return a.apply(this,arguments)}function a(){return(a=Bs(Rs().mark((function e(t,n,r){var i,a,l,s,u,c,d,f,p;return Rs().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t.kind!==h.FILESYSTEM_FILE_KIND){e.next=8;break}return e.next=3,t.getFile();case 3:i=e.sent,a=n.addBlob(t.name,i),r.push(a),e.next=40;break;case 8:if(t.kind!==h.FILESYSTEM_DIRECTORY_KIND){e.next=40;break}l=n.addDirectory(t.name),r.push(l),s=!1,u=!1,e.prev=13,d=js(t.values());case 15:return e.next=17,d.next();case 17:if(!(s=!(f=e.sent).done)){e.next=24;break}return p=f.value,e.next=21,o(p,l,r);case 21:s=!1,e.next=15;break;case 24:e.next=30;break;case 26:e.prev=26,e.t0=e.catch(13),u=!0,c=e.t0;case 30:if(e.prev=30,e.prev=31,!s||null==d.return){e.next=35;break}return e.next=35,d.return();case 35:if(e.prev=35,!u){e.next=38;break}throw c;case 38:return e.finish(35);case 39:return e.finish(30);case 40:return e.abrupt("return",r);case 41:case"end":return e.stop()}}),e,null,[[13,26,30,40],[31,,35,39]])})))).apply(this,arguments)}r()},closeChooseAction:function(){s(null)},importZipFile:function e(r){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};function a(){return(a=Bs(Rs().mark((function t(){var a,s,c,d,f;return Rs().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return a=[],t.prev=1,t.next=4,n.importBlob(r,i);case 4:return s=t.sent,t.next=7,Promise.all(s.map((function(e){return!e.directory&&e.isPasswordProtected()})));case 7:if(!t.sent.includes(!0)||i.password){t.next=20;break}return l(s),t.next=12,new Promise((function(e){return o({onSetImportPassword:e})}));case 12:return c=t.sent,d=c.password,t.next=16,Promise.all(s.map((function(e){return e.directory||e.checkPassword(d)})));case 16:f=!t.sent.includes(!1),e(r,f?{password:d}:{}),t.next=23;break;case 20:v(n.children.filter((function(e){return s.includes(e)}))),u();case 23:t.next=29;break;case 25:t.prev=25,t.t0=t.catch(1),l(a),p(t.t0.message);case 29:case"end":return t.stop()}}),t,null,[[1,25]])})))).apply(this,arguments)}function l(e){e.forEach((function(e){return!e.directory&&t.remove(e)})),e.forEach((function(e){return e.directory&&!e.children.length&&t.remove(e)}))}!function(){a.apply(this,arguments)}()},openPromptExportZip:function(){var e=n.name?n.name+m.ZIP_EXTENSION:r,t=f(),i=t.defaultExportPassword;!h.savePickersSupported()||t.promptForExportPassword?a({filename:e,filenameHidden:h.savePickersSupported(),password:i}):y({filename:e,password:i})},exportZip:y,closePromptExportZip:function(){a(null)},closePromptImportPassword:function(){o(null)}}},pc=function(e){var t=e.zipFilesystem,n=e.entries,r=e.history,i=e.historyIndex,o=e.highlightedIds,a=e.selectedFolder,l=e.clipboardData,s=e.setHistory,u=e.setHistoryIndex,c=e.setClipboardData,d=e.setHighlightedIds,f=e.setPreviousHighlight,p=e.setExtractDialog,h=e.setRenameDialog,m=e.setDeleteEntryDialog,g=e.refreshSelectedFolder,v=e.saveEntries,y=e.getOptions,b=e.openDisplayError,w=e.util;function x(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).filename;function n(){var r;return r=Ws().mark((function n(){var r,i;return Ws().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.prev=0,r=o.map((function(e){return t.getById(e)})),i=y(),e=1===r.length?e:null,n.next=6,v(r,e,i);case 6:n.next=11;break;case 8:n.prev=8,n.t0=n.catch(0),b(n.t0.message);case 11:case"end":return n.stop()}}),n,null,[[0,8]])})),n=function(){var e=this,t=arguments;return new Promise((function(n,i){var o=r.apply(e,t);function a(e){Hs(o,n,i,a,l,"next",e)}function l(e){Hs(o,n,i,a,l,"throw",e)}a(void 0)}))},n.apply(this,arguments)}!function(){n.apply(this,arguments)}()}return{copy:function(){c({entries:o.map((function(e){return t.getById(e).clone(!0)}))})},cut:function(){c({entries:o.map((function(e){return t.getById(e)})),cut:!0})},paste:function(){try{var e=l.entries;if(l.cut)e.forEach((function(e){t.move(e,a)}));else{var n=e.map((function(e){var n=e.clone(!0);return t.move(e,a),n}));c({entries:n})}d(e.map((function(e){return e.id}))),g()}catch(e){b(e.message)}},openPromptRename:function(){var e=t.getById(o[0]);h({filename:e.name})},rename:function(e){var n=e.filename;try{var r=t.getById(o[0]);n!==r.name&&(r.rename(n),g())}catch(e){b(e.message)}},closePromptRename:function(){h(null)},openConfirmDeleteEntry:function(){m({})},deleteEntry:function(){if(o.forEach((function(e){return t.remove(t.getById(e))})),a.children.length){for(var e=Math.max.apply(Math,function(e){return function(e){if(Array.isArray(e))return Ks(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return Ks(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)?Ks(e,t):void 0}}(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.")}()}(n.map((function(e,t){return{entry:e,index:t}})).filter((function(e){var t=e.entry;return o.includes(t.id)})).map((function(e){return e.index})))),l=e;l<n.length&&o.includes(n[l].id);)l++;if(l===n.length)for(l=e;l>=0&&o.includes(n[l].id);)l--;f(n[l]),d([n[l].id])}else f(null),d([]);var c,p,h,m,v;p=0,h=n.find((function(e){return e.id===o[0]})),m=r.filter((function(e,t){var n=c===e||e===h||e.isDescendantOf(h);return n?t<=i&&p++:c=e,!n})),v=i-p,s(m),u(v),g()},closeConfirmDeleteEntry:function(){m(null)},openPromptExtract:function(e){e||(e=t.getById(o[0]));var n={filename:e.name};w.savePickersSupported()?x(n):p(n)},extract:x,closePromptExtract:function(){p(null)}}},hc=function(e){var t=e.zipService,n=e.setZipFilesystem,r=e.setResetDialog;return{openConfirmReset:function(){r({})},reset:function(){n(t.createZipFileSystem())},closeConfirmReset:function(){r(null)}}},mc=function(e){var t=e.setDownloads,n=e.util;function r(e){t((function(t){return t.filter((function(t){return t.id!==e.id}))}))}return{removeDownload:r,abortDownload:function(e){r(e),n.abortDownload(e.controller)}}},gc=function(e){var t=e.setClipboardData;return{resetClipboardData:function(){t(null)}}},vc=function(e){var t=e.zipFilesystem,n=e.dialogDisplayed,r=e.entriesHeight,i=e.entriesDeltaHeight,o=e.selectedFolderInit,a=e.setPreviousHighlight,l=e.setToggleNavigationDirection,s=e.setSelectedFolder,u=e.setHighlightedIds,c=e.setClipboardData,d=e.setOptions,f=e.setHistory,p=e.setHistoryIndex,h=e.setAccentColor,m=e.setEntriesHeight,g=e.setEntriesDeltaHeight,v=e.setSelectedFolderInit,y=e.getEntriesElementHeight,b=e.setOptionsDialog,w=e.getOptions,x=e.goIntoFolder,_=e.openPromptExtract,k=e.addFiles,E=e.importZipFile,S=e.refreshSelectedFolder,T=e.storageService,L=e.util,O=e.constants;function A(e){L.setStyleProperty(O.ACCENT_COLOR_CUSTOM_PROPERTY_NAME,e),T.set(O.ACCENT_COLOR_KEY_NAME,e)}return{initApplication:function(){var e=T.get(O.ACCENT_COLOR_KEY_NAME)||O.DEFAULT_ACCENT_COLOR;h(e),A(e)},initZipFilesystem:function(){var e=t.root;s(e),u([]),a(null),l(0),c(null),f([e]),p(0),S(e)},initSelectedFolder:function(){function e(){return(e=$s(Vs().mark((function e(){var t,n,r,i;return Vs().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(t=L.getLocationSearch())){e.next=12;break}if(L.resetLocationSearch(),t!==O.SHARED_FILES_PARAMETER){e.next=12;break}return n=O.SHARED_FILES_RELATIVE_PATH,e.next=7,L.fetch(n);case 7:return r=e.sent,e.next=10,r.formData();case 10:i=e.sent,k(i.getAll(O.SHARED_FILES_FIELD_NAME));case 12:case"end":return e.stop()}}),e)})))).apply(this,arguments)}o||(L.setLaunchQueueConsumer((function(e){function t(){return t=$s(Vs().mark((function t(){return Vs().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!e.files.length){t.next=3;break}return t.next=3,Promise.all(e.files.map(function(){var e=$s(Vs().mark((function e(t){return Vs().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.t0=E,e.next=3,t.getFile();case 3:return e.t1=e.sent,e.abrupt("return",(0,e.t0)(e.t1));case 5:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()));case 3:case"end":return t.stop()}}),t)}))),t.apply(this,arguments)}!function(){t.apply(this,arguments)}()})),v(!0)),function(){e.apply(this,arguments)}()},enter:function(e){e.directory?x(e):_(e)},openOptions:function(){b(w())},closeOptions:function(){b(null)},resetOptions:function(){var e=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ys(Object(n),!0).forEach((function(t){Gs(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ys(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},O.DEFAULT_OPTIONS);e.maxWorkers=L.getDefaultMaxWorkers(),b(e)},saveAccentColor:A,moveBottomBar:function(e){g(e)},saveEntriesHeight:function(e){if(!n){var t=w();!r&&t.entriesHeight||(t.entriesHeight=e,d(t))}},updateEntriesHeight:function(e){if(!n){var t=w();!r&&t.entriesHeight&&(e=t.entriesHeight),m(e)}},updateEntriesHeightEnd:function(){var e=y();m(Math.max(Math.min(r+i,e),e)),g(0)}}},yc=(sc=e,{set:function(e,t){sc.saveValue(e,t)},get:function(e){return sc.restoreValue(e)}}),bc=Boolean("localhost"===window.location.hostname||"[::1]"===window.location.hostname||window.location.hostname.match(/^127(?:\.(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)){3}$/));function wc(e,t){navigator.serviceWorker.register(e).then((function(e){e.onupdatefound=function(){var n=e.installing;null!=n&&(n.onstatechange=function(){"installed"===n.state&&(navigator.serviceWorker.controller?(console.log("New content is available and will be used when all tabs for this page are closed. See https://cra.link/PWA."),t&&t.onUpdate&&t.onUpdate(e)):(console.log("Content is cached for offline use."),t&&t.onSuccess&&t.onSuccess(e)))})}})).catch((function(e){console.error("Error during service worker registration:",e)}))}a.createRoot(document.body).render((0,Xs.jsx)(o.StrictMode,{children:(0,Xs.jsx)((function(){var n=hl(),a=ac((0,o.useState)(n),2),l=a[0],s=a[1],u=ac((0,o.useState)(!1),2),c=u[0],d=u[1],f=ac((0,o.useState)(null),2),p=f[0],h=f[1],m=ac((0,o.useState)([]),2),g=m[0],v=m[1],y=ac((0,o.useState)(0),2),b=y[0],w=y[1],x=ac((0,o.useState)(0),2),_=x[0],k=x[1],E=ac((0,o.useState)([]),2),S=E[0],T=E[1],L=ac((0,o.useState)(null),2),O=L[0],A=L[1],C=ac((0,o.useState)(0),2),N=C[0],P=C[1],D=ac((0,o.useState)([]),2),I=D[0],z=D[1],R=ac((0,o.useState)(0),2)[1],F=ac((0,o.useState)(null),2),j=F[0],U=F[1],M=ac((0,o.useState)([]),2),W=M[0],H=M[1],K=ac((0,o.useState)(0),2),q=K[0],Y=K[1],G=ac((0,o.useState)(null),2),V=G[0],Z=G[1],$=ac((0,o.useState)(""),2),X=$[0],Q=$[1],J=ac((0,o.useState)(null),2),ee=J[0],te=J[1],ne=ac((0,o.useState)(null),2),re=ne[0],ie=ne[1],oe=ac((0,o.useState)(null),2),ae=oe[0],le=oe[1],se=ac((0,o.useState)(null),2),ue=se[0],ce=se[1],de=ac((0,o.useState)(null),2),fe=de[0],pe=de[1],he=ac((0,o.useState)(null),2),ge=he[0],ve=he[1],ye=ac((0,o.useState)(null),2),be=ye[0],we=ye[1],xe=ac((0,o.useState)(null),2),_e=xe[0],ke=xe[1],Ee=ac((0,o.useState)(null),2),Se=Ee[0],Te=Ee[1],Le=ac((0,o.useState)(null),2),Oe=Le[0],Ae=Le[1],Ce=ac((0,o.useState)(null),2),Ne=Ce[0],Pe=Ce[1],De=(0,o.useRef)(null),Ie=(0,o.useRef)(null),ze=(0,o.useRef)(null),Re=(0,o.useRef)(null),Fe=ze.current,Be=me,je=[vs,X].join(" ").trim(),Ue=mc({setDownloads:z,util:e}),Me=Ue.abortDownload,We=Ue.removeDownload,He=uc({selectedFolder:p,setDownloadId:R,setDownloads:z,setEntries:v,setErrorMessageDialog:we,setClickedButtonName:Pe,removeDownload:We,downloaderElement:Fe,zipService:r,storageService:yc,util:e,constants:i}),Ke=He.saveEntry,qe=He.saveEntries,Ye=He.refreshSelectedFolder,Ge=He.setOptions,Ve=He.getOptions,Ze=He.openDisplayError,$e=He.closeDisplayError,Xe=He.resetClickedButtonName,Qe=cc({entries:g,selectedFolder:p,previousHighlight:O,highlightedIds:S,toggleNavigationDirection:N,getEntriesHeight:function(){return Ie.current},setHighlightedIds:T,setPreviousHighlight:A,setToggleNavigationDirection:P}),Je=Qe.highlightPrevious,et=Qe.highlightNext,tt=Qe.highlightPreviousPage,nt=Qe.highlightNextPage,rt=Qe.highlightFirst,it=Qe.highlightLast,ot=Qe.highlightFirstLetter,at=Qe.highlight,lt=Qe.highlightEntries,st=Qe.highlightAll,ut=Qe.toggle,ct=Qe.toggleRange,dt=Qe.togglePrevious,ft=Qe.toggleNext,pt=Qe.togglePreviousPage,ht=Qe.toggleNextPage,mt=Qe.toggleFirst,gt=Qe.toggleLast,vt=dc({history:W,historyIndex:q,selectedFolder:p,setSelectedFolder:h,setHistory:H,setHistoryIndex:Y,setHighlightedIds:T,refreshSelectedFolder:Ye}),yt=vt.goIntoFolder,bt=vt.navigateBack,wt=vt.navigateForward,xt=fc({zipFilesystem:l,selectedFolder:p,rootZipFilename:Be,chooseActionDialog:Oe,setImportPasswordDialog:ke,setExportZipDialog:te,setCreateFolderDialog:ce,setChooseActionDialog:Ae,refreshSelectedFolder:Ye,highlightEntries:lt,saveEntry:Ke,getOptions:Ve,openDisplayError:Ze,util:e,constants:i}),_t=xt.openPromptCreateFolder,kt=xt.createFolder,Et=xt.closePromptCreateFolder,St=xt.addFiles,Tt=xt.dropFiles,Lt=xt.closeChooseAction,Ot=xt.importZipFile,At=xt.openPromptExportZip,Ct=xt.exportZip,Nt=xt.closePromptExportZip,Pt=xt.closePromptImportPassword,Dt=pc({zipFilesystem:l,entries:g,history:W,historyIndex:q,highlightedIds:S,selectedFolder:p,clipboardData:j,setHistory:H,setHistoryIndex:Y,setClipboardData:U,setHighlightedIds:T,setPreviousHighlight:A,setExtractDialog:ie,setRenameDialog:le,setDeleteEntryDialog:pe,refreshSelectedFolder:Ye,saveEntries:qe,getOptions:Ve,openDisplayError:Ze,util:e}),It=Dt.copy,zt=Dt.cut,Rt=Dt.paste,Ft=Dt.openPromptRename,Bt=Dt.rename,jt=Dt.closePromptRename,Ut=Dt.openConfirmDeleteEntry,Mt=Dt.deleteEntry,Wt=Dt.closeConfirmDeleteEntry,Ht=Dt.openPromptExtract,Kt=Dt.extract,qt=Dt.closePromptExtract,Yt=hc({zipService:r,setZipFilesystem:s,setResetDialog:ve}),Gt=Yt.openConfirmReset,Vt=Yt.reset,Zt=Yt.closeConfirmReset,$t=gc({setClipboardData:U}).resetClipboardData,Xt=function(e){var t=e.entries,n=e.highlightedIds,r=e.selectedFolder,i=e.clipboardData,o=e.historyIndex,a=e.history,l=e.getOptions,s=e.exportZipDialog,u=e.extractDialog,c=e.renameDialog,d=e.createFolderDialog,f=e.deleteEntryDialog,p=e.resetDialog,h=e.errorMessageDialog,m=e.importPasswordDialog,g=e.optionsDialog,v=e.util,y=!t.length,b=!n.length||r.parent&&n.includes(r.parent.id),w=n.find((function(e){var t=r.children.find((function(t){return t.id===e}));return!!t&&t.directory})),x=!i,_=y,k=y,E=y,S=!o,T=o===a.length-1,L=b,O=b,A=x,C=x,N=b||!n.length||!v.savePickersSupported()&&w,P=!r||!r.parent&&(!t.length||n.length===t.length)||r.parent&&(1===t.length||n.length===t.length-1&&!n.includes(r.parent.id)),D=1!==n.length||b,I=b,z=1!==n.length,R=s||u||c||d||f||p||h||m||g,F=l();return{disabledExportZip:_,disabledReset:k,disabledNavigation:E,disabledBack:S,disabledForward:T,disabledCopy:L,disabledCut:O,disabledPaste:A,disabledResetClipboardData:C,disabledExtract:N,disabledHighlightAll:P,disabledRename:D,disabledDelete:I,disabledEnter:z,dialogDisplayed:R,hideNavigationBar:F.hideNavigationBar,hideDownloadManager:F.hideDownloadManager,hideInfobar:F.hideInfobar,hideExportPassword:!F.promptForExportPassword}}({entries:g,highlightedIds:S,selectedFolder:p,clipboardData:j,historyIndex:q,history:W,getOptions:Ve,exportZipDialog:ee,extractDialog:re,renameDialog:ae,createFolderDialog:ue,deleteEntryDialog:fe,resetDialog:ge,errorMessageDialog:be,importPasswordDialog:_e,optionsDialog:Se,util:e}),Qt=Xt.disabledExportZip,Jt=Xt.disabledReset,en=Xt.disabledNavigation,tn=Xt.disabledBack,nn=Xt.disabledForward,rn=Xt.disabledCopy,on=Xt.disabledCut,an=Xt.disabledPaste,ln=Xt.disabledResetClipboardData,sn=Xt.disabledHighlightAll,un=Xt.disabledExtract,cn=Xt.disabledRename,dn=Xt.disabledDelete,fn=Xt.disabledEnter,pn=Xt.dialogDisplayed,hn=Xt.hideNavigationBar,mn=Xt.hideDownloadManager,gn=Xt.hideInfobar,vn=Xt.hideExportPassword,yn=vc({zipFilesystem:l,dialogDisplayed:pn,entriesHeight:b,entriesDeltaHeight:_,selectedFolderInit:c,setPreviousHighlight:A,setToggleNavigationDirection:P,setSelectedFolder:h,setHighlightedIds:T,setClipboardData:U,setOptions:Ge,setHistory:H,setHistoryIndex:Y,setAccentColor:Z,setEntriesHeight:w,setEntriesDeltaHeight:k,setSelectedFolderInit:d,getEntriesElementHeight:function(){return B(De.current)},setOptionsDialog:Te,getOptions:Ve,goIntoFolder:yt,openPromptExtract:Ht,addFiles:St,importZipFile:Ot,refreshSelectedFolder:Ye,storageService:yc,util:e,constants:i}),bn=yn.initApplication,wn=yn.initZipFilesystem,xn=yn.initSelectedFolder,_n=yn.enter,kn=yn.openOptions,En=yn.closeOptions,Sn=yn.resetOptions,Tn=yn.saveAccentColor,Ln=yn.moveBottomBar,On=yn.updateEntriesHeight,An=yn.saveEntriesHeight,Cn=yn.updateEntriesHeightEnd,Nn=function(e){var t=e.zipFilesystem,n=e.downloads,r=e.highlightedIds,i=e.selectedFolder,o=e.disabledCut,a=e.disabledCopy,l=e.disabledHighlightAll,s=e.disabledExtract,u=e.disabledRename,c=e.disabledPaste,d=e.disabledDelete,f=e.disabledBack,p=e.disabledForward,h=e.disabledExportZip,m=e.disabledEnter,g=e.disabledNavigation,v=e.dialogDisplayed,y=e.enter,b=e.highlightNext,w=e.highlightPrevious,x=e.highlightPreviousPage,_=e.highlightNextPage,k=e.highlightFirst,E=e.highlightLast,S=e.highlightFirstLetter,T=e.togglePrevious,L=e.toggleNext,O=e.togglePreviousPage,A=e.toggleNextPage,C=e.toggleFirst,N=e.toggleLast,P=e.goIntoFolder,D=e.setClickedButtonName,I=e.util,z=e.constants;return{handlePageUnload:function(e){(t.children.length||n.length)&&(e.preventDefault(),e.returnValue="")},handleKeyUp:function(e){v||(function(e,t){var n=t.highlightPrevious,r=t.highlightNext,i=t.highlightPreviousPage,o=t.highlightNextPage,a=t.highlightFirst,l=t.highlightLast,s=t.highlightFirstLetter,u=t.togglePrevious,c=t.toggleNext,d=t.togglePreviousPage,f=t.toggleNextPage,p=t.toggleFirst,h=t.toggleLast,m=t.util,g=t.constants;if(!t.disabledNavigation){var v=g.ACTION_KEY,y=g.DOWN_KEY,b=g.UP_KEY,w=g.PAGE_UP_KEY,x=g.PAGE_DOWN_KEY,_=g.HOME_KEY,k=g.END_KEY;e.shiftKey&&(e.key===y&&c(),e.key===b&&u(),e.key===w&&d(),e.key===x&&f(),e.key===_&&p(),e.key===k&&h()),e.altKey||bs(e,m)||e.shiftKey||(e.key===y&&r(),e.key===b&&n(),e.key===_&&a(),e.key===k&&l(),e.key===w&&i(),e.key===x&&o()),e.altKey||bs(e,m)||1===e.key.length&&e.key!==v&&s(e.key)}}(e,{disabledNavigation:g,highlightPrevious:w,highlightNext:b,highlightPreviousPage:x,highlightNextPage:_,highlightFirst:k,highlightLast:E,highlightFirstLetter:S,togglePrevious:T,toggleNext:L,togglePreviousPage:O,toggleNextPage:A,toggleFirst:C,toggleLast:N,util:I,constants:z}),function(e,t){var n=t.disabledBack,r=t.disabledForward,i=t.selectedFolder,o=t.highlightedIds,a=t.setClickedButtonName,l=t.goIntoFolder,s=t.util,u=t.constants,c=u.LEFT_KEY,d=u.RIGHT_KEY,f=u.BACK_KEY,p=u.FORWARD_KEY,h=u.BACK_BUTTON_NAME,m=u.FORWARD_BUTTON_NAME;if(e.altKey&&(e.key!==f||n||a(h),e.key!==p||r||a(m)),!e.altKey&&!bs(e,s)&&!e.shiftKey&&(e.key===c&&i.parent&&l(i.parent),e.key===d&&1===o.length)){var g=ys({selectedFolder:i,highlightedIds:o});g&&g.directory&&l(g)}}(e,{disabledBack:f,disabledForward:p,selectedFolder:i,highlightedIds:r,setClickedButtonName:D,goIntoFolder:P,util:I,constants:z}),function(e,t){var n=t.disabledDelete,r=t.disabledEnter,i=t.selectedFolder,o=t.highlightedIds,a=t.setClickedButtonName,l=t.enter,s=t.util,u=t.constants,c=u.ACTION_KEY,d=u.DELETE_KEYS,f=u.DELETE_BUTTON_NAME;e.altKey||bs(e,s)||e.shiftKey||(d.includes(e.key)&&!n&&a(f),e.key!==c||r||(l(ys({selectedFolder:i,highlightedIds:o})||i.parent),e.preventDefault()))}(e,{disabledDelete:d,disabledEnter:m,selectedFolder:i,highlightedIds:r,setClickedButtonName:D,enter:y,util:I,constants:z}))},handleKeyDown:function(e){v||(function(e,t){var n=t.disabledHighlightAll,r=t.setClickedButtonName,i=t.util,o=t.constants,a=o.HIGHLIGHT_ALL_KEY,l=o.DOWN_KEY,s=o.UP_KEY,u=o.PAGE_DOWN_KEY,c=o.PAGE_UP_KEY,d=o.HOME_KEY,f=o.END_KEY,p=o.HIGHLIGHT_ALL_BUTTON_NAME;bs(e,i)&&e.key===a&&(e.preventDefault(),n||r(p)),e.altKey||bs(e,i)||e.key!==l&&e.key!==s&&e.key!==u&&e.key!==c&&e.key!==d&&e.key!==f||e.preventDefault()}(e,{disabledHighlightAll:l,setClickedButtonName:D,util:I,constants:z}),function(e,t){var n=t.disabledCut,r=t.disabledCopy,i=t.disabledExtract,o=t.disabledRename,a=t.disabledPaste,l=t.setClickedButtonName,s=t.util,u=t.constants,c=u.CUT_KEY,d=u.COPY_KEY,f=u.EXTRACT_KEY,p=u.RENAME_KEY,h=u.PASTE_KEY,m=u.CUT_BUTTON_NAME,g=u.COPY_BUTTON_NAME,v=u.PASTE_BUTTON_NAME,y=u.EXTRACT_BUTTON_NAME,b=u.RENAME_BUTTON_NAME;bs(e,s)&&(e.key!==d||r||(l(g),e.preventDefault()),e.key!==c||n||(l(m),e.preventDefault()),e.key!==h||a||(l(v),e.preventDefault()),e.key!==f||i||(l(y),e.preventDefault()),e.key!==p||o||(l(b),e.preventDefault()))}(e,{disabledCut:o,disabledCopy:a,disabledExtract:s,disabledRename:u,disabledPaste:c,setClickedButtonName:D,util:I,constants:z}),function(e,t){var n=t.disabledExportZip,r=t.setClickedButtonName,i=t.util,o=t.constants,a=o.CREATE_FOLDER_KEY,l=o.ADD_FILES_KEY,s=o.IMPORT_ZIP_KEY,u=o.EXPORT_ZIP_KEY,c=o.CREATE_FOLDER_BUTTON_NAME,d=o.ADD_FILES_BUTTON_NAME,f=o.IMPORT_ZIP_BUTTON_NAME,p=o.EXPORT_ZIP_BUTTON_NAME;bs(e,i)&&(e.key===a&&(r(c),e.preventDefault()),e.key===l&&(r(d),e.preventDefault()),e.key===s&&(r(f),e.preventDefault()),e.key!==u||n||(r(p),e.preventDefault()))}(e,{disabledExportZip:h,setClickedButtonName:D,util:I,constants:z}))}}}({zipFilesystem:l,downloads:I,highlightedIds:S,selectedFolder:p,disabledCut:on,disabledCopy:rn,disabledExtract:un,disabledHighlightAll:sn,disabledRename:cn,disabledPaste:an,disabledDelete:dn,disabledBack:tn,disabledForward:nn,disabledExportZip:Qt,disabledEnter:fn,disabledNavigation:en,dialogDisplayed:pn,enter:_n,highlightNext:et,highlightPrevious:Je,highlightPreviousPage:tt,highlightNextPage:nt,highlightFirst:rt,highlightLast:it,highlightFirstLetter:ot,togglePrevious:dt,toggleNext:ft,togglePreviousPage:pt,toggleNextPage:ht,toggleFirst:mt,toggleLast:gt,goIntoFolder:yt,setClickedButtonName:Pe,util:e,constants:i}),Pn=Nn.handleKeyUp,Dn=Nn.handleKeyDown,In=Nn.handlePageUnload,zn=function(e){var t=e.addKeyUpListener,n=e.removeKeyUpListener,r=e.addKeyDownListener,i=e.removeKeyDownListener,a=e.addUnloadListener,l=e.removeUnloadListener;return{useKeyUp:function(e){(0,o.useEffect)((function(){return t(e),function(){return n(e)}}))},useKeyDown:function(e){(0,o.useEffect)((function(){return r(e),function(){return i(e)}}))},usePageUnload:function(e){(0,o.useEffect)((function(){return a(e),function(){return l(e)}}))}}}(e),Rn=zn.useKeyUp,Fn=zn.useKeyDown,Bn=zn.usePageUnload,jn=function(e){var t=e.selectedFolder,n=e.accentColor,r=e.setColorScheme,i=e.getHighlightedEntryElement,o=e.initApplication,a=e.initZipFilesystem,l=e.initSelectedFolder,s=e.saveAccentColor,u=e.util;return{updateApplication:function(){o()},updateSelectedFolder:function(){t&&l()},updateZipFilesystem:function(){a()},updateHighlightedEntries:function(){var e=i();e&&u.scrollIntoView(e)},updateAccentColor:function(){if(n){var e=(t=n,i=parseInt(t.substring(1,3),16),o=parseInt(t.substring(3,5),16),a=parseInt(t.substring(5,7),16),Math.round((299*i+587*o+114*a)/1e3));r(e>192?"dark":e<64?"light":""),s(n)}var t,i,o,a}}}({selectedFolder:p,accentColor:V,setColorScheme:Q,getHighlightedEntryElement:function(){return Re.current},initApplication:bn,initZipFilesystem:wn,initSelectedFolder:xn,saveAccentColor:Tn,util:e}),Un=jn.updateApplication,Mn=jn.updateSelectedFolder,Wn=jn.updateHighlightedEntries,Hn=jn.updateZipFilesystem,Kn=jn.updateAccentColor;return Bn(In),Rn(Pn),Fn(Dn),(0,o.useEffect)(Hn,[l]),(0,o.useEffect)(Wn,[S]),(0,o.useEffect)(Kn,[V]),(0,o.useEffect)(Mn,[p]),(0,o.useEffect)(Un,[]),(0,Xs.jsxs)("div",{className:je,children:[(0,Xs.jsxs)("main",{role:"application",children:[(0,Xs.jsx)(cu,{disabledExportZipButton:Qt,disabledResetButton:Jt,clickedButtonName:Ne,onCreateFolder:_t,onAddFiles:St,onImportZipFile:Ot,onExportZip:At,onReset:Gt,onOpenOptions:kn,onClickedButton:Xe,util:e,constants:i,messages:t}),(0,Xs.jsx)(gu,{selectedFolder:p,disabledBackButton:tn,disabledForwardButton:nn,clickedButtonName:Ne,hidden:hn,onNavigateBack:bt,onNavigateForward:wt,onGoIntoFolder:yt,onClickedButton:Xe,constants:i,messages:t}),(0,Xs.jsx)(Eu,{entries:g,selectedFolder:p,highlightedIds:S,entriesHeight:b,deltaEntriesHeight:_,hideDownloadManager:mn,onDropFiles:Tt,onHighlight:at,onToggle:ut,onToggleRange:ct,onEnter:_n,onSaveHeight:An,onUpdateHeight:On,entriesRef:De,highlightedEntryRef:Re,entriesHeightRef:Ie,util:e,constants:i,messages:t}),(0,Xs.jsx)(Du,{disabledCopyButton:rn,disabledCutButton:on,disabledPasteButton:an,disabledResetClipboardDataButton:ln,disabledExtractButton:un,disabledHighlightAllButton:sn,disabledRenameButton:cn,disabledDeleteButton:dn,hideDownloadManager:mn,hideInfobar:gn,clickedButtonName:Ne,onCopy:It,onCut:zt,onPaste:Rt,onResetClipboardData:$t,onExtract:Kt,onHighlightAll:st,onRename:Ft,onRemove:Ut,onMove:Ln,onUpdateHeight:Cn,onClickedButton:Xe,constants:i,messages:t}),(0,Xs.jsx)(Bu,{downloads:I,hidden:mn,hideInfobar:gn,onAbortDownload:Me,downloaderRef:ze,constants:i,messages:t})]}),(0,Xs.jsx)(Uu,{hidden:gn,accentColor:V,onSetAccentColor:Z}),(0,Xs.jsx)($u,{data:ue,onCreateFolder:kt,onClose:Et,messages:t}),(0,Xs.jsx)(Ku,{data:ee,hidePassword:vn,onExportZip:Ct,onClose:Nt,messages:t}),(0,Xs.jsx)(Yu,{data:re,onExtract:Kt,onClose:qt,messages:t}),(0,Xs.jsx)(Vu,{data:ae,onRename:Bt,onClose:jt,messages:t}),(0,Xs.jsx)(Xu,{data:ge,onReset:Vt,onClose:Zt,messages:t}),(0,Xs.jsx)(Qu,{data:fe,onDeleteEntry:Mt,onClose:Wt,messages:t}),(0,Xs.jsx)(Ju,{data:be,onClose:$e,messages:t}),(0,Xs.jsx)(tc,{data:_e,onClose:Pt,messages:t}),(0,Xs.jsx)(ic,{data:Se,onSetOptions:Ge,onResetOptions:Sn,onClose:En,messages:t}),(0,Xs.jsx)(oc,{data:Oe,onImportZipFile:Ot,onAddFiles:St,onClose:Lt,messages:t})]})}),{})})),function(e){if("serviceWorker"in navigator){if(new URL(window.location.href).origin!==window.location.origin)return;window.addEventListener("load",(function(){var t="service-worker.js";bc?(function(e,t){fetch(e,{headers:{"Service-Worker":"script"}}).then((function(t){var n=t.headers.get("content-type");404===t.status||null!=n&&-1===n.indexOf("javascript")?navigator.serviceWorker.ready.then((function(e){e.unregister().then((function(){window.location.reload()}))})):wc(e,undefined)})).catch((function(){console.log("No internet connection found. App is running in offline mode.")}))}(t),navigator.serviceWorker.ready.then((function(){console.log("This web app is being served cache-first by a service worker. To learn more, visit https://cra.link/PWA")}))):wc(t,e)}))}}()}()}()</script></body></html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment