// Build date: 2025/1/7 10:06:47
 // Version: 1.0.0
 (()=>{"use strict";var s,R,n,u,e,j={80881:(e,t,n)=>{var r=n(11417),a={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},f={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},o={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},l={};function d(e){return r.isMemo(e)?o:l[e.$$typeof]||a}l[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},l[r.Memo]=o;var p=Object.defineProperty,h=Object.getOwnPropertyNames,y=Object.getOwnPropertySymbols,m=Object.getOwnPropertyDescriptor,g=Object.getPrototypeOf,v=Object.prototype;e.exports=function e(t,n,r){if("string"!=typeof n){v&&(a=g(n))&&a!==v&&e(t,a,r);for(var a,o=h(n),l=(y&&(o=o.concat(y(n))),d(t)),i=d(n),u=0;u<o.length;++u){var c=o[u];if(!(f[c]||r&&r[c]||i&&i[c]||l&&l[c])){var s=m(n,c);try{p(t,c,s)}catch(e){}}}}return t}},55659:(o,u,R)=>{
/**
 * @license React
 * react-dom.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */
var j=R(8376),U=R(75226);function A(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 $=new Set,V={};function J(e,t){B(e,t),B(e+"Capture",t)}function B(e,t){for(V[e]=t,e=0;e<t.length;e++)$.add(t[e])}var R=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),H=Object.prototype.hasOwnProperty,W=/^[: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]*$/,q={},Q={};function K(e,t,n,r){if(null==t||function(e,t,n,r){if(null===n||0!==n.type)switch(typeof t){case"function":case"symbol":return 1;case"boolean":return r?void 0:null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e;default:return}}(e,t,n,r))return 1;if(!r&&null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||t<1}}function n(e,t,n,r,a,o,l){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=a,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=l}var l={},Y=("children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){l[e]=new n(e,0,!1,e,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];l[t]=new n(t,1,!1,e[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){l[e]=new n(e,2,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){l[e]=new n(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){l[e]=new n(e,3,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(e){l[e]=new n(e,3,!0,e,null,!1,!1)}),["capture","download"].forEach(function(e){l[e]=new n(e,4,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(function(e){l[e]=new n(e,6,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(function(e){l[e]=new n(e,5,!1,e.toLowerCase(),null,!1,!1)}),/[\-:]([a-z])/g);function X(e){return e[1].toUpperCase()}function G(e,t,n,r){var a,o=l.hasOwnProperty(t)?l[t]:null;(null!==o?0!==o.type:r||!(2<t.length)||"o"!==t[0]&&"O"!==t[0]||"n"!==t[1]&&"N"!==t[1])&&(K(t,n,o,r)&&(n=null),r||null===o?(a=t,(H.call(Q,a)||!H.call(q,a)&&(W.test(a)?Q[a]=!0:void(q[a]=!0)))&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n))):o.mustUseProperty?e[o.propertyName]=null===n?3!==o.type&&"":n:(t=o.attributeName,r=o.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(o=o.type)||4===o&&!0===n?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(Y,X);l[t]=new n(t,1,!1,e,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(Y,X);l[t]=new n(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(Y,X);l[t]=new n(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(e){l[e]=new n(e,1,!1,e.toLowerCase(),null,!1,!1)}),l.xlinkHref=new n("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(e){l[e]=new n(e,1,!1,e.toLowerCase(),null,!0,!0)});var j=j.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Z=Symbol.for("react.element"),ee=Symbol.for("react.portal"),te=Symbol.for("react.fragment"),ne=Symbol.for("react.strict_mode"),re=Symbol.for("react.profiler"),ae=Symbol.for("react.provider"),oe=Symbol.for("react.context"),le=Symbol.for("react.forward_ref"),ie=Symbol.for("react.suspense"),ue=Symbol.for("react.suspense_list"),ce=Symbol.for("react.memo"),se=Symbol.for("react.lazy"),fe=(Symbol.for("react.scope"),Symbol.for("react.debug_trace_mode"),Symbol.for("react.offscreen")),de=(Symbol.for("react.legacy_hidden"),Symbol.for("react.cache"),Symbol.for("react.tracing_marker"),Symbol.iterator);function pe(e){return null!==e&&"object"==typeof e&&"function"==typeof(e=de&&e[de]||e["@@iterator"])?e:null}var he,m=Object.assign;function ye(e){if(void 0===he)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);he=t&&t[1]||""}return"\n"+he+e}var me=!1;function ge(t,e){if(!t||me)return"";me=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(e)if(e=function(){throw Error()},Object.defineProperty(e.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(e,[])}catch(e){var r=e}Reflect.construct(t,[],e)}else{try{e.call()}catch(e){r=e}t.call(e.prototype)}else{try{throw Error()}catch(e){r=e}t()}}catch(e){if(e&&r&&"string"==typeof e.stack){for(var a,o=e.stack.split("\n"),l=r.stack.split("\n"),i=o.length-1,u=l.length-1;1<=i&&0<=u&&o[i]!==l[u];)u--;for(;1<=i&&0<=u;i--,u--)if(o[i]!==l[u]){if(1!==i||1!==u)do{if(i--,--u<0||o[i]!==l[u])return a="\n"+o[i].replace(" at new "," at "),a=t.displayName&&a.includes("<anonymous>")?a.replace("<anonymous>",t.displayName):a}while(1<=i&&0<=u);break}}}finally{me=!1,Error.prepareStackTrace=n}return(t=t?t.displayName||t.name:"")?ye(t):""}function ve(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 function e(t){if(null!=t){if("function"==typeof t)return t.displayName||t.name||null;if("string"==typeof t)return t;switch(t){case te:return"Fragment";case ee:return"Portal";case re:return"Profiler";case ne:return"StrictMode";case ie:return"Suspense";case ue:return"SuspenseList"}if("object"==typeof t)switch(t.$$typeof){case oe:return(t.displayName||"Context")+".Consumer";case ae:return(t._context.displayName||"Context")+".Provider";case le:var n=t.render;return t=(t=t.displayName)||(""!==(t=n.displayName||n.name||"")?"ForwardRef("+t+")":"ForwardRef");case ce:return null!==(n=t.displayName||null)?n:e(t.type)||"Memo";case se:n=t._payload,t=t._init;try{return e(t(n))}catch(e){}}}return null}(t);case 8:return t===ne?"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 be(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function we(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function ke(e){e._valueTracker||(e._valueTracker=function(e){var t,n,r=we(e)?"checked":"value",a=Object.getOwnPropertyDescriptor(e.constructor.prototype,r),o=""+e[r];if(!e.hasOwnProperty(r)&&void 0!==a&&"function"==typeof a.get&&"function"==typeof a.set)return t=a.get,n=a.set,Object.defineProperty(e,r,{configurable:!0,get:function(){return t.call(this)},set:function(e){o=""+e,n.call(this,e)}}),Object.defineProperty(e,r,{enumerable:a.enumerable}),{getValue:function(){return o},setValue:function(e){o=""+e},stopTracking:function(){e._valueTracker=null,delete e[r]}}}(e))}function Se(e){var t,n,r;if(e)return(t=e._valueTracker)?(n=t.getValue(),r="",(e=r=e?we(e)?e.checked?"true":"false":e.value:r)!==n&&(t.setValue(e),1)):1}function xe(t){if(void 0===(t=t||("undefined"!=typeof document?document:void 0)))return null;try{return t.activeElement||t.body}catch(e){return t.body}}function Ee(e,t){var n=t.checked;return m({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function Pe(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked,n=be(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 _e(e,t){null!=(t=t.checked)&&G(e,"checked",t,!1)}function Ce(e,t){_e(e,t);var n=be(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")?Ne(e,t.type,n):t.hasOwnProperty("defaultValue")&&Ne(e,t.type,be(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function Oe(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 Ne(e,t,n){"number"===t&&xe(e.ownerDocument)===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Te=Array.isArray;function De(e,t,n,r){if(e=e.options,t){t={};for(var a=0;a<n.length;a++)t["$"+n[a]]=!0;for(n=0;n<e.length;n++)a=t.hasOwnProperty("$"+e[n].value),e[n].selected!==a&&(e[n].selected=a),a&&r&&(e[n].defaultSelected=!0)}else{for(n=""+be(n),t=null,a=0;a<e.length;a++){if(e[a].value===n)return e[a].selected=!0,void(r&&(e[a].defaultSelected=!0));null!==t||e[a].disabled||(t=e[a])}null!==t&&(t.selected=!0)}}function Ie(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(A(91));return m({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Le(e,t){var n=t.value;if(null==n){if(n=t.children,t=t.defaultValue,null!=n){if(null!=t)throw Error(A(92));if(Te(n)){if(1<n.length)throw Error(A(93));n=n[0]}t=n}n=t=null==t?"":t}e._wrapperState={initialValue:be(n)}}function Me(e,t){var n=be(t.value),r=be(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 ze(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}function Re(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 je(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?Re(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}Fe=function(e,t){if("http://www.w3.org/2000/svg"!==e.namespaceURI||"innerHTML"in e)e.innerHTML=t;else{for((Ae=Ae||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Ae.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}};var Ae,Fe,Ue="undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,t,n,r){MSApp.execUnsafeLocalFunction(function(){return Fe(e,t)})}:Fe;function $e(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 Ve={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},Je=["Webkit","ms","Moz","O"];function Be(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||Ve.hasOwnProperty(e)&&Ve[e]?(""+t).trim():t+"px"}function He(e,t){for(var n in e=e.style,t){var r,a;t.hasOwnProperty(n)&&(r=0===n.indexOf("--"),a=Be(n,t[n],r),"float"===n&&(n="cssFloat"),r?e.setProperty(n,a):e[n]=a)}}Object.keys(Ve).forEach(function(t){Je.forEach(function(e){e=e+t.charAt(0).toUpperCase()+t.substring(1),Ve[e]=Ve[t]})});var We=m({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function qe(e,t){if(t){if(We[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(A(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(A(60));if("object"!=typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(A(61))}if(null!=t.style&&"object"!=typeof t.style)throw Error(A(62))}}function Qe(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 Ke=null;function Ye(e){return 3===(e=(e=e.target||e.srcElement||window).correspondingUseElement?e.correspondingUseElement:e).nodeType?e.parentNode:e}var Xe=null,Ge=null,Ze=null;function et(e){if(e=Ta(e)){if("function"!=typeof Xe)throw Error(A(280));var t=e.stateNode;t&&(t=Ia(t),Xe(e.stateNode,e.type,t))}}function tt(e){Ge?Ze?Ze.push(e):Ze=[e]:Ge=e}function nt(){if(Ge){var e=Ge,t=Ze;if(Ze=Ge=null,et(e),t)for(e=0;e<t.length;e++)et(t[e])}}function rt(e,t){return e(t)}function at(){}var ot=!1;function lt(e,t,n){if(ot)return e(t,n);ot=!0;try{rt(e,t,n)}finally{ot=!1,null===Ge&&null===Ze||(at(),nt())}}function it(e,t){var n=e.stateNode;if(null===n)return null;var r=Ia(n);if(null===r)return null;switch(n=r[t],t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":e=!(r=(r=!r.disabled)?r:!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e));break;default:e=!1}if(e)return null;if(n&&"function"!=typeof n)throw Error(A(231,t,typeof n));return n}var ut=!1;if(R)try{var e={};Object.defineProperty(e,"passive",{get:function(){ut=!0}}),window.addEventListener("test",e,e),window.removeEventListener("test",e,e)}catch(e){ut=!1}var ct=!1,st=null,ft=!1,dt=null,pt={onError:function(e){ct=!0,st=e}};function ht(e,t,n,r,a,o,l,i,u){ct=!1,st=null,function(e,t,n,r,a,o,l,i,u){var c=Array.prototype.slice.call(arguments,3);try{t.apply(n,c)}catch(e){this.onError(e)}}.apply(pt,arguments)}function yt(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else for(e=t;0!=(4098&(t=e).flags)&&(n=t.return),e=t.return;);return 3===t.tag?n:null}function mt(e){if(13===e.tag){var t=e.memoizedState;if(null!==(t=null===t&&null!==(e=e.alternate)?e.memoizedState:t))return t.dehydrated}return null}function gt(e){if(yt(e)!==e)throw Error(A(188))}function vt(e){return null!==(e=function(e){var t=e.alternate;if(!t){if(null===(t=yt(e)))throw Error(A(188));return t!==e?null:e}for(var n=e,r=t;;){var a=n.return;if(null===a)break;var o=a.alternate;if(null===o){if(null===(r=a.return))break;n=r}else{if(a.child===o.child){for(o=a.child;o;){if(o===n)return gt(a),e;if(o===r)return gt(a),t;o=o.sibling}throw Error(A(188))}if(n.return!==r.return)n=a,r=o;else{for(var l=!1,i=a.child;i;){if(i===n){l=!0,n=a,r=o;break}if(i===r){l=!0,r=a,n=o;break}i=i.sibling}if(!l){for(i=o.child;i;){if(i===n){l=!0,n=o,r=a;break}if(i===r){l=!0,r=o,n=a;break}i=i.sibling}if(!l)throw Error(A(189))}}if(n.alternate!==r)throw Error(A(190))}}if(3!==n.tag)throw Error(A(188));return n.stateNode.current===n?e:t}(e))?function e(t){if(5===t.tag||6===t.tag)return t;for(t=t.child;null!==t;){var n=e(t);if(null!==n)return n;t=t.sibling}return null}(e):null}var bt=U.unstable_scheduleCallback,wt=U.unstable_cancelCallback,kt=U.unstable_shouldYield,St=U.unstable_requestPaint,y=U.unstable_now,xt=U.unstable_getCurrentPriorityLevel,Et=U.unstable_ImmediatePriority,Pt=U.unstable_UserBlockingPriority,_t=U.unstable_NormalPriority,Ct=U.unstable_LowPriority,Ot=U.unstable_IdlePriority,Nt=null,Tt=null;var Dt=Math.clz32||function(e){return 0==(e>>>=0)?32:31-(It(e)/Lt|0)|0},It=Math.log,Lt=Math.LN2;var Mt=64,zt=4194304;function Rt(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 jt(e,t){var n=e.pendingLanes;if(0===n)return 0;var r,a=0,o=e.suspendedLanes,l=e.pingedLanes,i=268435455&n;if(0!=i?0!=(r=i&~o)?a=Rt(r):0!==(l&=i)&&(a=Rt(l)):0!=(i=n&~o)?a=Rt(i):0!==l&&(a=Rt(l)),0===a)return 0;if(0!==t&&t!==a&&0==(t&o)&&((l=t&-t)<=(o=a&-a)||16===o&&0!=(4194240&l)))return t;if(0!=(4&a)&&(a|=16&n),0!==(t=e.entangledLanes))for(e=e.entanglements,t&=a;0<t;)a|=e[n=31-Dt(t)],t&=~(o=1<<n);return a}function At(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,a=e.expirationTimes,o=e.pendingLanes;0<o;){var l=31-Dt(o),i=1<<l,u=a[l];-1===u?0!=(i&n)&&0==(i&r)||(a[l]=function(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;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;default:return-1}}(i,t)):u<=t&&(e.expiredLanes|=i),o&=~i}}function Ft(e){return 0!==(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function Ut(){var e=Mt;return 0==(4194240&(Mt<<=1))&&(Mt=64),e}function $t(e){for(var t=[],n=0;n<31;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-Dt(t)]=n}function Jt(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-Dt(n),a=1<<r;a&t|e[r]&t&&(e[r]|=t),n&=~a}}var k=0;function Bt(e){return 1<(e&=-e)?4<e?0!=(268435455&e)?16:536870912:4:1}var Ht,Wt,qt,Qt,Kt,Yt=!1,Xt=[],Gt=null,Zt=null,en=null,tn=new Map,nn=new Map,rn=[],an="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 on(e,t){switch(e){case"focusin":case"focusout":Gt=null;break;case"dragenter":case"dragleave":Zt=null;break;case"mouseover":case"mouseout":en=null;break;case"pointerover":case"pointerout":tn.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":nn.delete(t.pointerId)}}function ln(e,t,n,r,a,o){return null===e||e.nativeEvent!==o?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:o,targetContainers:[a]},null!==t&&null!==(t=Ta(t))&&Wt(t)):(e.eventSystemFlags|=r,t=e.targetContainers,null!==a&&-1===t.indexOf(a)&&t.push(a)),e}function un(e){var t=Na(e.target);if(null!==t){var n=yt(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=mt(n)))return e.blockedOn=t,void Kt(e.priority,function(){qt(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 cn(e){if(null===e.blockedOn){for(var t=e.targetContainers;0<t.length;){var n=wn(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n)return null!==(t=Ta(n))&&Wt(t),e.blockedOn=n,0;var r=new(n=e.nativeEvent).constructor(n.type,n);Ke=r,n.target.dispatchEvent(r),Ke=null,t.shift()}return 1}}function sn(e,t,n){cn(e)&&n.delete(t)}function fn(){Yt=!1,null!==Gt&&cn(Gt)&&(Gt=null),null!==Zt&&cn(Zt)&&(Zt=null),null!==en&&cn(en)&&(en=null),tn.forEach(sn),nn.forEach(sn)}function dn(e,t){e.blockedOn===t&&(e.blockedOn=null,Yt||(Yt=!0,U.unstable_scheduleCallback(U.unstable_NormalPriority,fn)))}function pn(t){function e(e){return dn(e,t)}if(0<Xt.length){dn(Xt[0],t);for(var n=1;n<Xt.length;n++){var r=Xt[n];r.blockedOn===t&&(r.blockedOn=null)}}for(null!==Gt&&dn(Gt,t),null!==Zt&&dn(Zt,t),null!==en&&dn(en,t),tn.forEach(e),nn.forEach(e),n=0;n<rn.length;n++)(r=rn[n]).blockedOn===t&&(r.blockedOn=null);for(;0<rn.length&&null===(n=rn[0]).blockedOn;)un(n),null===n.blockedOn&&rn.shift()}var hn=j.ReactCurrentBatchConfig,yn=!0;function mn(e,t,n,r){var a=k,o=hn.transition;hn.transition=null;try{k=1,vn(e,t,n,r)}finally{k=a,hn.transition=o}}function gn(e,t,n,r){var a=k,o=hn.transition;hn.transition=null;try{k=4,vn(e,t,n,r)}finally{k=a,hn.transition=o}}function vn(e,t,n,r){if(yn){var a=wn(e,0,0,r);if(null===a)na(e,t,r,bn,n),on(e,r);else if(function(e,t,n,r,a){switch(t){case"focusin":return Gt=ln(Gt,e,t,n,r,a),1;case"dragenter":return Zt=ln(Zt,e,t,n,r,a),1;case"mouseover":return en=ln(en,e,t,n,r,a),1;case"pointerover":var o=a.pointerId;return tn.set(o,ln(tn.get(o)||null,e,t,n,r,a)),1;case"gotpointercapture":return o=a.pointerId,nn.set(o,ln(nn.get(o)||null,e,t,n,r,a)),1}}(a,e,t,n,r))r.stopPropagation();else if(on(e,r),4&t&&-1<an.indexOf(e)){for(;null!==a;){var o=Ta(a);if(null!==o&&Ht(o),null===(o=wn(e,0,0,r))&&na(e,t,r,bn,n),o===a)break;a=o}null!==a&&r.stopPropagation()}else na(e,t,r,null,n)}}var bn=null;function wn(e,t,n,r){if((bn=null)!==(e=Na(e=Ye(r))))if(null===(t=yt(e)))e=null;else if(13===(n=t.tag)){if(null!==(e=mt(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 bn=e,null}function kn(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(xt()){case Et:return 1;case Pt:return 4;case _t:case Ct:return 16;case Ot:return 536870912;default:return 16}default:return 16}}var Sn=null,xn=null,En=null;function Pn(){if(En)return En;for(var e=xn,t=e.length,n=("value"in Sn?Sn.value:Sn.textContent),r=n.length,a=0;a<t&&e[a]===n[a];a++);for(var o=t-a,l=1;l<=o&&e[t-l]===n[r-l];l++);return En=n.slice(a,1<l?1-l:void 0)}function _n(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,32<=(e=10===e?13:e)||13===e?e:0}function Cn(){return!0}function On(){return!1}function Nn(l){function e(e,t,n,r,a){for(var o in this._reactName=e,this._targetInst=n,this.type=t,this.nativeEvent=r,this.target=a,this.currentTarget=null,l)l.hasOwnProperty(o)&&(e=l[o],this[o]=e?e(r):r[o]);return this.isDefaultPrevented=(null!=r.defaultPrevented?r.defaultPrevented:!1===r.returnValue)?Cn:On,this.isPropagationStopped=On,this}return m(e.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=Cn)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=Cn)},persist:function(){},isPersistent:Cn}),e}var Tn,Dn,In,e={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Ln=Nn(e),t=m({},e,{view:0,detail:0}),Mn=Nn(t),r=m({},t,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Hn,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!==In&&(Dn=In&&"mousemove"===e.type?(Tn=e.screenX-In.screenX,e.screenY-In.screenY):Tn=0,In=e),Tn)},movementY:function(e){return"movementY"in e?e.movementY:Dn}}),zn=Nn(r),Rn=Nn(m({},r,{dataTransfer:0})),jn=Nn(m({},t,{relatedTarget:0})),An=Nn(m({},e,{animationName:0,elapsedTime:0,pseudoElement:0})),Fn=Nn(m({},e,{clipboardData:function(e){return("clipboardData"in e?e:window).clipboardData}})),Un=Nn(m({},e,{data:0})),$n={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Vn={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"},Jn={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Bn(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=Jn[e])&&!!t[e]}function Hn(){return Bn}var Wn=Nn(m({},t,{key:function(e){if(e.key){var t=$n[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=_n(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?Vn[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Hn,charCode:function(e){return"keypress"===e.type?_n(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?_n(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}})),qn=Nn(m({},r,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),Qn=Nn(m({},t,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Hn})),Kn=Nn(m({},e,{propertyName:0,elapsedTime:0,pseudoElement:0})),Yn=Nn(m({},r,{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})),Xn=[9,13,27,32],Gn=R&&"CompositionEvent"in window,t=null,Zn=(R&&"documentMode"in document&&(t=document.documentMode),R&&"TextEvent"in window&&!t),er=R&&(!Gn||t&&8<t&&t<=11),tr=String.fromCharCode(32),nr=!1;function rr(e,t){switch(e){case"keyup":return-1!==Xn.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return 1;default:return}}function ar(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var or=!1;var lr={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 ir(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?lr[e.type]:"textarea"===t}function ur(e,t,n,r){tt(r),0<(t=aa(t,"onChange")).length&&(n=new Ln("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var cr=null,sr=null;function fr(e){Xr(e,0)}function dr(e){if(Se(Da(e)))return e}function pr(e,t){if("change"===e)return t}var hr=!1;function yr(){cr&&(cr.detachEvent("onpropertychange",mr),sr=cr=null)}function mr(e){var t;"value"===e.propertyName&&dr(sr)&&(ur(t=[],sr,e,Ye(e)),lt(fr,t))}function gr(e,t,n){"focusin"===e?(yr(),sr=n,(cr=t).attachEvent("onpropertychange",mr)):"focusout"===e&&yr()}function vr(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return dr(sr)}function br(e,t){if("click"===e)return dr(t)}function wr(e,t){if("input"===e||"change"===e)return dr(t)}R&&(t=R&&((e="oninput"in document)||((r=document.createElement("div")).setAttribute("oninput","return;"),e="function"==typeof r.oninput),e),hr=t&&(!document.documentMode||9<document.documentMode));var kr="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(!kr(e,t)){if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var a=n[r];if(!H.call(t,a)||!kr(e[a],t[a]))return!1}}return!0}function xr(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Er(e,t){var n,r=xr(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&t<=n)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=xr(r)}}function Pr(){for(var e=window,t=xe();t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(e){n=!1}if(!n)break;t=xe((e=t.contentWindow).document)}return t}function _r(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 Cr(e){var t,n,r,a=Pr(),o=e.focusedElem,l=e.selectionRange;if(a!==o&&o&&o.ownerDocument&&function e(t,n){return!(!t||!n)&&(t===n||(!t||3!==t.nodeType)&&(n&&3===n.nodeType?e(t,n.parentNode):"contains"in t?t.contains(n):!!t.compareDocumentPosition&&!!(16&t.compareDocumentPosition(n))))}(o.ownerDocument.documentElement,o)){null!==l&&_r(o)&&(a=l.start,void 0===(e=l.end)&&(e=a),"selectionStart"in o?(o.selectionStart=a,o.selectionEnd=Math.min(e,o.value.length)):(e=(a=o.ownerDocument||document)&&a.defaultView||window).getSelection&&(e=e.getSelection(),n=o.textContent.length,t=Math.min(l.start,n),l=void 0===l.end?t:Math.min(l.end,n),!e.extend&&l<t&&(n=l,l=t,t=n),n=Er(o,t),r=Er(o,l),n)&&r&&(1!==e.rangeCount||e.anchorNode!==n.node||e.anchorOffset!==n.offset||e.focusNode!==r.node||e.focusOffset!==r.offset)&&((a=a.createRange()).setStart(n.node,n.offset),e.removeAllRanges(),l<t?(e.addRange(a),e.extend(r.node,r.offset)):(a.setEnd(r.node,r.offset),e.addRange(a)))),a=[];for(e=o;e=e.parentNode;)1===e.nodeType&&a.push({element:e,left:e.scrollLeft,top:e.scrollTop});for("function"==typeof o.focus&&o.focus(),o=0;o<a.length;o++)(e=a[o]).element.scrollLeft=e.left,e.element.scrollTop=e.top}}var Or=R&&"documentMode"in document&&document.documentMode<=11,Nr=null,Tr=null,Dr=null,Ir=!1;function Lr(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;Ir||null==Nr||Nr!==xe(r)||(r="selectionStart"in(r=Nr)&&_r(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},Dr&&Sr(Dr,r))||(Dr=r,0<(r=aa(Tr,"onSelect")).length&&(t=new Ln("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=Nr))}function Mr(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var zr={animationend:Mr("Animation","AnimationEnd"),animationiteration:Mr("Animation","AnimationIteration"),animationstart:Mr("Animation","AnimationStart"),transitionend:Mr("Transition","TransitionEnd")},Rr={},jr={};function Ar(e){if(Rr[e])return Rr[e];if(zr[e]){var t,n=zr[e];for(t in n)if(n.hasOwnProperty(t)&&t in jr)return Rr[e]=n[t]}return e}R&&(jr=document.createElement("div").style,"AnimationEvent"in window||(delete zr.animationend.animation,delete zr.animationiteration.animation,delete zr.animationstart.animation),"TransitionEvent"in window||delete zr.transitionend.transition);var Fr=Ar("animationend"),Ur=Ar("animationiteration"),$r=Ar("animationstart"),Vr=Ar("transitionend"),Jr=new Map,Br="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 Hr(e,t){Jr.set(e,t),J(t,[e])}for(var Wr=0;Wr<Br.length;Wr++){var qr=Br[Wr];Hr(qr.toLowerCase(),"on"+(qr[0].toUpperCase()+qr.slice(1)))}Hr(Fr,"onAnimationEnd"),Hr(Ur,"onAnimationIteration"),Hr($r,"onAnimationStart"),Hr("dblclick","onDoubleClick"),Hr("focusin","onFocus"),Hr("focusout","onBlur"),Hr(Vr,"onTransitionEnd"),B("onMouseEnter",["mouseout","mouseover"]),B("onMouseLeave",["mouseout","mouseover"]),B("onPointerEnter",["pointerout","pointerover"]),B("onPointerLeave",["pointerout","pointerover"]),J("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),J("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),J("onBeforeInput",["compositionend","keypress","textInput","paste"]),J("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),J("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),J("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Qr="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(" "),Kr=new Set("cancel close invalid load scroll toggle".split(" ").concat(Qr));function Yr(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,function(){var e;ht.apply(this,arguments),ct&&(e=st,ct=!1,st=null,ft||(ft=!0,dt=e))}(r,t,void 0,e),e.currentTarget=null}function Xr(e,t){t=0!=(4&t);for(var n=0;n<e.length;n++){var r=(a=e[n]).event,a=a.listeners;e:{var o=void 0;if(t)for(var l=a.length-1;0<=l;l--){var i=(c=a[l]).instance,u=c.currentTarget,c=c.listener;if(i!==o&&r.isPropagationStopped())break e;Yr(r,c,u),o=i}else for(l=0;l<a.length;l++){if(i=(c=a[l]).instance,u=c.currentTarget,c=c.listener,i!==o&&r.isPropagationStopped())break e;Yr(r,c,u),o=i}}}if(ft)throw e=dt,ft=!1,dt=null,e}function s(e,t){var n=t[_a],r=e+"__bubble";(n=void 0===n?t[_a]=new Set:n).has(r)||(ta(t,e,2,!1),n.add(r))}function Gr(e,t,n){var r=0;t&&(r|=4),ta(n,e,r,t)}var Zr="_reactListening"+Math.random().toString(36).slice(2);function ea(t){var e;t[Zr]||(t[Zr]=!0,$.forEach(function(e){"selectionchange"!==e&&(Kr.has(e)||Gr(e,!1,t),Gr(e,!0,t))}),null===(e=9===t.nodeType?t:t.ownerDocument))||e[Zr]||Gr("selectionchange",!(e[Zr]=!0),e)}function ta(e,t,n,r){switch(kn(t)){case 1:var a=mn;break;case 4:a=gn;break;default:a=vn}n=a.bind(null,t,n,e),a=!ut||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t?void 0:!0,r?void 0!==a?e.addEventListener(t,n,{capture:!0,passive:a}):e.addEventListener(t,n,!0):void 0!==a?e.addEventListener(t,n,{passive:a}):e.addEventListener(t,n,!1)}function na(m,g,v,e,t){var b=e;if(0==(1&g)&&0==(2&g)&&null!==e)e:for(;;){if(null===e)return;var n=e.tag;if(3===n||4===n){var r=e.stateNode.containerInfo;if(r===t||8===r.nodeType&&r.parentNode===t)break;if(4===n)for(n=e.return;null!==n;){var a=n.tag;if((3===a||4===a)&&((a=n.stateNode.containerInfo)===t||8===a.nodeType&&a.parentNode===t))return;n=n.return}for(;null!==r;){if(null===(n=Na(r)))return;if(5===(a=n.tag)||6===a){e=b=n;continue e}r=r.parentNode}}e=e.return}lt(function(){var e,t,n,r=b,a=Ye(v),o=[];e:{var l=Jr.get(m);if(void 0!==l){var i=Ln,u=m;switch(m){case"keypress":if(0===_n(v))break e;case"keydown":case"keyup":i=Wn;break;case"focusin":u="focus",i=jn;break;case"focusout":u="blur",i=jn;break;case"beforeblur":case"afterblur":i=jn;break;case"click":if(2===v.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":i=zn;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":i=Rn;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":i=Qn;break;case Fr:case Ur:case $r:i=An;break;case Vr:i=Kn;break;case"scroll":i=Mn;break;case"wheel":i=Yn;break;case"copy":case"cut":case"paste":i=Fn;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":i=qn}for(var c=!(f=0!=(4&g))&&"scroll"===m,s=f?null!==l?l+"Capture":null:l,f=[],d=r;null!==d;){var p,h=(p=d).stateNode;if(5===p.tag&&null!==h&&(p=h,null!==s)&&null!=(h=it(d,s))&&f.push(ra(d,h,p)),c)break;d=d.return}0<f.length&&(l=new i(l,u,null,v,a),o.push({event:l,listeners:f}))}}if(0==(7&g)){if(i="mouseout"===m||"pointerout"===m,(!(l="mouseover"===m||"pointerover"===m)||v===Ke||!(u=v.relatedTarget||v.fromElement)||!Na(u)&&!u[Pa])&&(i||l)&&(l=a.window===a?a:(l=a.ownerDocument)?l.defaultView||l.parentWindow:window,i?(i=r,null!==(u=(u=v.relatedTarget||v.toElement)?Na(u):null)&&(u!==(c=yt(u))||5!==u.tag&&6!==u.tag)&&(u=null)):(i=null,u=r),i!==u)){if(f=zn,h="onMouseLeave",s="onMouseEnter",d="mouse","pointerout"!==m&&"pointerover"!==m||(f=qn,h="onPointerLeave",s="onPointerEnter",d="pointer"),c=null==i?l:Da(i),p=null==u?l:Da(u),(l=new f(h,d+"leave",i,v,a)).target=c,l.relatedTarget=p,h=null,Na(a)===r&&((f=new f(s,d+"enter",u,v,a)).target=p,f.relatedTarget=c,h=f),c=h,i&&u)e:{for(s=u,d=0,p=f=i;p;p=oa(p))d++;for(p=0,h=s;h;h=oa(h))p++;for(;0<d-p;)f=oa(f),d--;for(;0<p-d;)s=oa(s),p--;for(;d--;){if(f===s||null!==s&&f===s.alternate)break e;f=oa(f),s=oa(s)}f=null}else f=null;null!==i&&la(o,l,i,f,!1),null!==u&&null!==c&&la(o,c,u,f,!0)}switch("select"===(i=(l=r?Da(r):window).nodeName&&l.nodeName.toLowerCase())||"input"===i&&"file"===l.type?e=pr:ir(l)?hr?e=wr:(e=vr,t=gr):!(i=l.nodeName)||"input"!==i.toLowerCase()||"checkbox"!==l.type&&"radio"!==l.type||(e=br),(e=e&&e(m,r))?ur(o,e,v,a):(t&&t(m,l,r),"focusout"===m&&(t=l._wrapperState)&&t.controlled&&"number"===l.type&&Ne(l,"number",l.value)),t=r?Da(r):window,m){case"focusin":!ir(t)&&"true"!==t.contentEditable||(Nr=t,Tr=r,Dr=null);break;case"focusout":Dr=Tr=Nr=null;break;case"mousedown":Ir=!0;break;case"contextmenu":case"mouseup":case"dragend":Ir=!1,Lr(o,v,a);break;case"selectionchange":if(Or)break;case"keydown":case"keyup":Lr(o,v,a)}if(Gn)e:{switch(m){case"compositionstart":var y="onCompositionStart";break e;case"compositionend":y="onCompositionEnd";break e;case"compositionupdate":y="onCompositionUpdate";break e}y=void 0}else or?rr(m,v)&&(y="onCompositionEnd"):"keydown"===m&&229===v.keyCode&&(y="onCompositionStart");y&&(er&&"ko"!==v.locale&&(or||"onCompositionStart"!==y?"onCompositionEnd"===y&&or&&(n=Pn()):(xn="value"in(Sn=a)?Sn.value:Sn.textContent,or=!0)),0<(t=aa(r,y)).length)&&(y=new Un(y,m,null,v,a),o.push({event:y,listeners:t}),n||null!==(n=ar(v)))&&(y.data=n),(n=(Zn?function(e,t){switch(e){case"compositionend":return ar(t);case"keypress":return 32!==t.which?null:(nr=!0,tr);case"textInput":return(e=t.data)===tr&&nr?null:e;default:return null}}:function(e,t){if(or)return"compositionend"===e||!Gn&&rr(e,t)?(e=Pn(),En=xn=Sn=null,or=!1,e):null;switch(e){case"paste":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 er&&"ko"!==t.locale?null:t.data;default:return null}})(m,v))&&0<(r=aa(r,"onBeforeInput")).length&&(a=new Un("onBeforeInput","beforeinput",null,v,a),o.push({event:a,listeners:r}),a.data=n)}Xr(o,g)})}function ra(e,t,n){return{instance:e,listener:t,currentTarget:n}}function aa(e,t){for(var n=t+"Capture",r=[];null!==e;){var a=e,o=a.stateNode;5===a.tag&&null!==o&&(a=o,null!=(o=it(e,n))&&r.unshift(ra(e,o,a)),null!=(o=it(e,t)))&&r.push(ra(e,o,a)),e=e.return}return r}function oa(e){if(null===e)return null;for(;(e=e.return)&&5!==e.tag;);return e||null}function la(e,t,n,r,a){for(var o=t._reactName,l=[];null!==n&&n!==r;){var i=n,u=i.alternate,c=i.stateNode;if(null!==u&&u===r)break;5===i.tag&&null!==c&&(i=c,a?null!=(u=it(n,o))&&l.unshift(ra(n,u,i)):null!=(u=it(n,o))&&l.push(ra(n,u,i))),n=n.return}0!==l.length&&e.push({event:t,listeners:l})}var ia=/\r\n?/g,ua=/\u0000|\uFFFD/g;function ca(e){return("string"==typeof e?e:""+e).replace(ia,"\n").replace(ua,"")}function sa(e,t,n){if(t=ca(t),ca(e)!==t&&n)throw Error(A(425))}function fa(){}var da=null,pa=null;function ha(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 ya="function"==typeof setTimeout?setTimeout:void 0,ma="function"==typeof clearTimeout?clearTimeout:void 0,ga="function"==typeof Promise?Promise:void 0,va="function"==typeof queueMicrotask?queueMicrotask:void 0!==ga?function(e){return ga.resolve(null).then(e).catch(ba)}:ya;function ba(e){setTimeout(function(){throw e})}function wa(e,t){var n=t,r=0;do{var a=n.nextSibling;if(e.removeChild(n),a&&8===a.nodeType)if("/$"===(n=a.data)){if(0===r)return e.removeChild(a),void pn(t);r--}else"$"!==n&&"$?"!==n&&"$!"!==n||r++}while(n=a);pn(t)}function ka(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 Sa(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 r=Math.random().toString(36).slice(2),xa="__reactFiber$"+r,Ea="__reactProps$"+r,Pa="__reactContainer$"+r,_a="__reactEvents$"+r,Ca="__reactListeners$"+r,Oa="__reactHandles$"+r;function Na(e){var t=e[xa];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Pa]||n[xa]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=Sa(e);null!==e;){if(n=e[xa])return n;e=Sa(e)}return t}n=(e=n).parentNode}return null}function Ta(e){return!(e=e[xa]||e[Pa])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function Da(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(A(33))}function Ia(e){return e[Ea]||null}var La=[],Ma=-1;function za(e){return{current:e}}function c(e){Ma<0||(e.current=La[Ma],La[Ma]=null,Ma--)}function g(e,t){La[++Ma]=e.current,e.current=t}var Ra={},v=za(Ra),b=za(!1),ja=Ra;function Aa(e,t){var n=e.type.contextTypes;if(!n)return Ra;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var a,o={};for(a in n)o[a]=t[a];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function w(e){return null!=(e=e.childContextTypes)}function Fa(){c(b),c(v)}function Ua(e,t,n){if(v.current!==Ra)throw Error(A(168));g(v,t),g(b,n)}function $a(e,t,n){var r,a=e.stateNode;if(t=t.childContextTypes,"function"!=typeof a.getChildContext)return n;for(r in a=a.getChildContext())if(!(r in t))throw Error(A(108,ve(e)||"Unknown",r));return m({},n,a)}function Va(e){e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Ra,ja=v.current,g(v,e),g(b,b.current)}function Ja(e,t,n){var r=e.stateNode;if(!r)throw Error(A(169));n?(e=$a(e,t,ja),r.__reactInternalMemoizedMergedChildContext=e,c(b),c(v),g(v,e)):c(b),g(b,n)}var Ba=null,Ha=!1,Wa=!1;function qa(e){null===Ba?Ba=[e]:Ba.push(e)}function Qa(){if(!Wa&&null!==Ba){Wa=!0;var t=0,e=k;try{var n=Ba;for(k=1;t<n.length;t++)for(var r=n[t];null!==(r=r(!0)););Ba=null,Ha=!1}catch(e){throw null!==Ba&&(Ba=Ba.slice(t+1)),bt(Et,Qa),e}finally{k=e,Wa=!1}}return null}var Ka=[],Ya=0,Xa=null,Ga=0,Za=[],eo=0,to=null,no=1,ro="";function ao(e,t){Ka[Ya++]=Ga,Ka[Ya++]=Xa,Xa=e,Ga=t}function oo(e,t,n){Za[eo++]=no,Za[eo++]=ro,Za[eo++]=to,to=e;var r,a=no,o=(e=ro,32-Dt(a)-1),l=(a&=~(1<<o),n+=1,32-Dt(t)+o);ro=30<l?(l=(a&(1<<(r=o-o%5))-1).toString(32),a>>=r,o-=r,no=1<<32-Dt(t)+o|n<<o|a,l+e):(no=1<<l|n<<o|a,e)}function lo(e){null!==e.return&&(ao(e,1),oo(e,1,0))}function io(e){for(;e===Xa;)Xa=Ka[--Ya],Ka[Ya]=null,Ga=Ka[--Ya],Ka[Ya]=null;for(;e===to;)to=Za[--eo],Za[eo]=null,ro=Za[--eo],Za[eo]=null,no=Za[--eo],Za[eo]=null}var uo=null,S=null,F=!1,co=null;function so(e,t){var n=Zu(5,null,null,0);n.elementType="DELETED",n.stateNode=t,null===(t=(n.return=e).deletions)?(e.deletions=[n],e.flags|=16):t.push(n)}function fo(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,uo=e,S=ka(t.firstChild),1);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,uo=e,S=null,1);case 13:return null!==(t=8!==t.nodeType?null:t)&&(n=null!==to?{id:no,overflow:ro}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},(n=Zu(18,null,null,0)).stateNode=t,(n.return=e).child=n,uo=e,S=null,1);default:return}}function po(e){return 0!=(1&e.mode)&&0==(128&e.flags)}function ho(e){if(F)if(S){var t=S;if(!fo(e,S)){if(po(e))throw Error(A(418));var n=ka(t.nextSibling),r=uo;n&&fo(e,n)?so(r,t):(e.flags=-4097&e.flags|2,F=!1,uo=e)}}else{if(po(e))throw Error(A(418));e.flags=-4097&e.flags|2,F=!1,uo=e}}function yo(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;uo=e}function mo(e){if(e!==uo)return!1;if(!F)return yo(e),!(F=!0);var t;if(t=(t=(t=3!==e.tag)&&!(t=5!==e.tag)?"head"!==(t=e.type)&&"body"!==t&&!ha(e.type,e.memoizedProps):t)&&S){if(po(e))throw go(),Error(A(418));for(;t;)so(e,t),t=ka(t.nextSibling)}if(yo(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(A(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var n=e.data;if("/$"===n){if(0===t){S=ka(e.nextSibling);break e}t--}else"$"!==n&&"$!"!==n&&"$?"!==n||t++}e=e.nextSibling}S=null}}else S=uo?ka(e.stateNode.nextSibling):null;return!0}function go(){for(var e=S;e;)e=ka(e.nextSibling)}function vo(){S=uo=null,F=!1}function bo(e){null===co?co=[e]:co.push(e)}var wo=j.ReactCurrentBatchConfig;function ko(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(A(309));var r=n.stateNode}var a,o;if(r)return a=r,o=""+e,null!==t&&null!==t.ref&&"function"==typeof t.ref&&t.ref._stringRef===o?t.ref:((t=function(e){var t=a.refs;null===e?delete t[o]:t[o]=e})._stringRef=o,t);throw Error(A(147,e))}if("string"!=typeof e)throw Error(A(284));if(!n._owner)throw Error(A(290,e))}return e}function So(e,t){throw e=Object.prototype.toString.call(t),Error(A(31,"[object Object]"===e?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function xo(e){return(0,e._init)(e._payload)}function Eo(O){function N(e,t){var n;O&&(null===(n=e.deletions)?(e.deletions=[t],e.flags|=16):n.push(t))}function T(e,t){if(O)for(;null!==t;)N(e,t),t=t.sibling;return null}function D(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=tc(e,t)).index=0,e.sibling=null,e}function L(e,t,n){if(e.index=n,O){if(null!==(n=e.alternate))return(n=n.index)<t?(e.flags|=2,t):n;e.flags|=2}else e.flags|=1048576;return t}function M(e){return O&&null===e.alternate&&(e.flags|=2),e}function o(e,t,n,r){return null===t||6!==t.tag?(t=oc(n,e.mode,r)).return=e:(t=I(t,n)).return=e,t}function l(e,t,n,r){var a=n.type;return a===te?u(e,t,n.props.children,r,n.key):(null!==t&&(t.elementType===a||"object"==typeof a&&null!==a&&a.$$typeof===se&&xo(a)===t.type)?(r=I(t,n.props)).ref=ko(0,t,n):(r=nc(n.type,n.key,n.props,null,e.mode,r)).ref=ko(0,t,n),r.return=e,r)}function i(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?(t=lc(n,e.mode,r)).return=e:(t=I(t,n.children||[])).return=e,t}function u(e,t,n,r,a){return null===t||7!==t.tag?(t=rc(n,e.mode,r,a)).return=e:(t=I(t,n)).return=e,t}function z(e,t,n){if("string"==typeof t&&""!==t||"number"==typeof t)return(t=oc(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case Z:return(n=nc(t.type,t.key,t.props,null,e.mode,n)).ref=ko(0,null,t),n.return=e,n;case ee:return(t=lc(t,e.mode,n)).return=e,t;case se:return z(e,(0,t._init)(t._payload),n)}if(Te(t)||pe(t))return(t=rc(t,e.mode,n,null)).return=e,t;So(0,t)}return null}function R(e,t,n,r){var a=null!==t?t.key:null;if("string"==typeof n&&""!==n||"number"==typeof n)return null!==a?null:o(e,t,""+n,r);if("object"==typeof n&&null!==n){switch(n.$$typeof){case Z:return n.key===a?l(e,t,n,r):null;case ee:return n.key===a?i(e,t,n,r):null;case se:return R(e,t,(a=n._init)(n._payload),r)}if(Te(n)||pe(n))return null!==a?null:u(e,t,n,r,null);So(0,n)}return null}function j(e,t,n,r,a){if("string"==typeof r&&""!==r||"number"==typeof r)return o(t,e=e.get(n)||null,""+r,a);if("object"==typeof r&&null!==r){switch(r.$$typeof){case Z:return l(t,e=e.get(null===r.key?n:r.key)||null,r,a);case ee:return i(t,e=e.get(null===r.key?n:r.key)||null,r,a);case se:return j(e,t,n,(0,r._init)(r._payload),a)}if(Te(r)||pe(r))return u(t,e=e.get(n)||null,r,a,null);So(0,r)}return null}return function e(t,n,r,a){if("object"==typeof(r="object"==typeof r&&null!==r&&r.type===te&&null===r.key?r.props.children:r)&&null!==r){switch(r.$$typeof){case Z:e:{for(var o=r.key,l=n;null!==l;){if(l.key===o){if((o=r.type)===te){if(7===l.tag){T(t,l.sibling),(n=I(l,r.props.children)).return=t,t=n;break e}}else if(l.elementType===o||"object"==typeof o&&null!==o&&o.$$typeof===se&&xo(o)===l.type){T(t,l.sibling),(n=I(l,r.props)).ref=ko(0,l,r),n.return=t,t=n;break e}T(t,l);break}N(t,l),l=l.sibling}t=r.type===te?((n=rc(r.props.children,t.mode,a,r.key)).return=t,n):((a=nc(r.type,r.key,r.props,null,t.mode,a)).ref=ko(0,n,r),a.return=t,a)}return M(t);case ee:e:{for(l=r.key;null!==n;){if(n.key===l){if(4===n.tag&&n.stateNode.containerInfo===r.containerInfo&&n.stateNode.implementation===r.implementation){T(t,n.sibling),(n=I(n,r.children||[])).return=t,t=n;break e}T(t,n);break}N(t,n),n=n.sibling}(n=lc(r,t.mode,a)).return=t,t=n}return M(t);case se:return e(t,n,(l=r._init)(r._payload),a)}if(Te(r)){for(var i=t,u=n,c=r,s=a,f=null,d=null,p=u,h=u=0,y=null;null!==p&&h<c.length;h++){p.index>h?(y=p,p=null):y=p.sibling;var m=R(i,p,c[h],s);if(null===m){null===p&&(p=y);break}O&&p&&null===m.alternate&&N(i,p),u=L(m,u,h),null===d?f=m:d.sibling=m,d=m,p=y}if(h===c.length)T(i,p);else if(null===p)for(;h<c.length;h++)null!==(p=z(i,c[h],s))&&(u=L(p,u,h),null===d?f=p:d.sibling=p,d=p);else{for(p=D(i,p);h<c.length;h++)null!==(y=j(p,i,h,c[h],s))&&(O&&null!==y.alternate&&p.delete(null===y.key?h:y.key),u=L(y,u,h),null===d?f=y:d.sibling=y,d=y);O&&p.forEach(function(e){return N(i,e)})}return F&&ao(i,h),f}if(pe(r)){var g=t,v=n,b=r,w=a,k=pe(b);if("function"!=typeof k)throw Error(A(150));if(null==(b=k.call(b)))throw Error(A(151));for(var S=k=null,x=v,E=v=0,P=null,_=b.next();null!==x&&!_.done;E++,_=b.next()){x.index>E?(P=x,x=null):P=x.sibling;var C=R(g,x,_.value,w);if(null===C){null===x&&(x=P);break}O&&x&&null===C.alternate&&N(g,x),v=L(C,v,E),null===S?k=C:S.sibling=C,S=C,x=P}if(_.done)T(g,x);else if(null===x)for(;!_.done;E++,_=b.next())null!==(_=z(g,_.value,w))&&(v=L(_,v,E),null===S?k=_:S.sibling=_,S=_);else{for(x=D(g,x);!_.done;E++,_=b.next())null!==(_=j(x,g,E,_.value,w))&&(O&&null!==_.alternate&&x.delete(null===_.key?E:_.key),v=L(_,v,E),null===S?k=_:S.sibling=_,S=_);O&&x.forEach(function(e){return N(g,e)})}return F&&ao(g,E),k}So(0,r)}return"string"==typeof r&&""!==r||"number"==typeof r?(r=""+r,(n=null!==n&&6===n.tag?(T(t,n.sibling),I(n,r)):(T(t,n),oc(r,t.mode,a))).return=t,M(t=n)):T(t,n)}}var Po=Eo(!0),_o=Eo(!1),Co=za(null),Oo=null,No=null,To=null;function Do(){To=No=Oo=null}function Io(e){var t=Co.current;c(Co),e._currentValue=t}function Lo(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 Mo(e,t){(To=No=null)!==(e=(Oo=e).dependencies)&&null!==e.firstContext&&(0!=(e.lanes&t)&&(C=!0),e.firstContext=null)}function zo(e){var t=e._currentValue;if(To!==e)if(e={context:e,memoizedValue:t,next:null},null===No){if(null===Oo)throw Error(A(308));No=e,Oo.dependencies={lanes:0,firstContext:e}}else No=No.next=e;return t}var Ro=null;function jo(e){null===Ro?Ro=[e]:Ro.push(e)}function Ao(e,t,n,r){var a=t.interleaved;return null===a?(n.next=n,jo(t)):(n.next=a.next,a.next=n),t.interleaved=n,Fo(e,r)}function Fo(e,t){e.lanes|=t;var n=e.alternate;for(null!==n&&(n.lanes|=t),e=(n=e).return;null!==e;)e.childLanes|=t,null!==(n=e.alternate)&&(n.childLanes|=t),e=(n=e).return;return 3===n.tag?n.stateNode:null}var Uo=!1;function $o(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Vo(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 Jo(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Bo(e,t,n){var r,a=e.updateQueue;return null===a?null:(a=a.shared,0!=(2&D)?(null===(r=a.pending)?t.next=t:(t.next=r.next,r.next=t),a.pending=t):(null===(r=a.interleaved)?(t.next=t,jo(a)):(t.next=r.next,r.next=t),a.interleaved=t),Fo(e,n))}function Ho(e,t,n){var r;null!==(t=t.updateQueue)&&(t=t.shared,0!=(4194240&n))&&(r=t.lanes,r&=e.pendingLanes,Jt(e,t.lanes=n|=r))}function Wo(e,t){var n=e.updateQueue,r=e.alternate;if(null!==r&&n===(r=r.updateQueue)){var a=null,o=null;if(null!==(n=n.firstBaseUpdate)){do{var l={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null}}while(null===o?a=o=l:o=o.next=l,null!==(n=n.next));null===o?a=o=t:o=o.next=t}else a=o=t;n={baseState:r.baseState,firstBaseUpdate:a,lastBaseUpdate:o,shared:r.shared,effects:r.effects},e.updateQueue=n}else null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function qo(e,t,n,r){var a,o,l=e.updateQueue,i=(Uo=!1,l.firstBaseUpdate),u=l.lastBaseUpdate;if(null!==(f=l.shared.pending)&&(l.shared.pending=null,o=(a=f).next,(a.next=null)===u?i=o:u.next=o,u=a,null!==(s=e.alternate))&&(f=(s=s.updateQueue).lastBaseUpdate)!==u&&(null===f?s.firstBaseUpdate=o:f.next=o,s.lastBaseUpdate=a),null!==i){for(var c=l.baseState,u=0,s=o=a=null,f=i;;){var d=f.lane,p=f.eventTime;if((r&d)===d){null!==s&&(s=s.next={eventTime:p,lane:0,tag:f.tag,payload:f.payload,callback:f.callback,next:null});e:{var h=e,y=f,d=t,p=n;switch(y.tag){case 1:if("function"==typeof(h=y.payload)){c=h.call(p,c,d);break e}c=h;break e;case 3:h.flags=-65537&h.flags|128;case 0:if(null==(d="function"==typeof(h=y.payload)?h.call(p,c,d):h))break e;c=m({},c,d);break e;case 2:Uo=!0}}null!==f.callback&&0!==f.lane&&(e.flags|=64,null===(d=l.effects)?l.effects=[f]:d.push(f))}else p={eventTime:p,lane:d,tag:f.tag,payload:f.payload,callback:f.callback,next:null},null===s?(o=s=p,a=c):s=s.next=p,u|=d;if(null===(f=f.next)){if(null===(f=l.shared.pending))break;f=(d=f).next,d.next=null,l.lastBaseUpdate=d,l.shared.pending=null}}if(null===s&&(a=c),l.baseState=a,l.firstBaseUpdate=o,l.lastBaseUpdate=s,null!==(t=l.shared.interleaved))for(l=t;u|=l.lane,(l=l.next)!==t;);else null===i&&(l.shared.lanes=0);du|=u,e.lanes=u,e.memoizedState=c}}function Qo(e,t,n){if(e=t.effects,(t.effects=null)!==e)for(t=0;t<e.length;t++){var r=e[t],a=r.callback;if(null!==a){if(r.callback=null,r=n,"function"!=typeof a)throw Error(A(191,a));a.call(r)}}}var Ko={},Yo=za(Ko),Xo=za(Ko),Go=za(Ko);function Zo(e){if(e===Ko)throw Error(A(174));return e}function el(e,t){switch(g(Go,t),g(Xo,e),g(Yo,Ko),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:je(null,"");break;default:t=je(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}c(Yo),g(Yo,t)}function tl(){c(Yo),c(Xo),c(Go)}function nl(e){Zo(Go.current);var t=Zo(Yo.current),n=je(t,e.type);t!==n&&(g(Xo,e),g(Yo,n))}function rl(e){Xo.current===e&&(c(Yo),c(Xo))}var x=za(0);function al(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=(t.child.return=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 ol=[];function ll(){for(var e=0;e<ol.length;e++)ol[e]._workInProgressVersionPrimary=null;ol.length=0}var il=j.ReactCurrentDispatcher,ul=j.ReactCurrentBatchConfig,cl=0,E=null,P=null,_=null,sl=!1,fl=!1,dl=0,pl=0;function a(){throw Error(A(321))}function hl(e,t){if(null!==t){for(var n=0;n<t.length&&n<e.length;n++)if(!kr(e[n],t[n]))return;return 1}}function yl(e,t,n,r,a,o){if(cl=o,(E=t).memoizedState=null,t.updateQueue=null,t.lanes=0,il.current=null===e||null===e.memoizedState?Kl:Yl,e=n(r,a),fl){o=0;do{if(fl=!1,dl=0,25<=o)throw Error(A(301))}while(o+=1,_=P=null,t.updateQueue=null,il.current=Xl,e=n(r,a),fl)}if(il.current=Ql,t=null!==P&&null!==P.next,cl=0,_=P=E=null,sl=!1,t)throw Error(A(300));return e}function ml(){var e=0!==dl;return dl=0,e}function gl(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===_?E.memoizedState=_=e:_=_.next=e,_}function vl(){e=null===P?null!==(e=E.alternate)?e.memoizedState:null:P.next;var e,t=null===_?E.memoizedState:_.next;if(null!==t)_=t,P=e;else{if(null===e)throw Error(A(310));e={memoizedState:(P=e).memoizedState,baseState:P.baseState,baseQueue:P.baseQueue,queue:P.queue,next:null},null===_?E.memoizedState=_=e:_=_.next=e}return _}function bl(e,t){return"function"==typeof t?t(e):t}function wl(e){var t=vl(),n=t.queue;if(null===n)throw Error(A(311));n.lastRenderedReducer=e;var r,a=(l=P).baseQueue;if(null!==(o=n.pending)&&(null!==a&&(r=a.next,a.next=o.next,o.next=r),l.baseQueue=a=o,n.pending=null),null!==a){var o=a.next,l=l.baseState,i=r=null,u=null,c=o;do{var s,f=c.lane}while((cl&f)===f?(null!==u&&(u=u.next={lane:0,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null}),l=c.hasEagerState?c.eagerState:e(l,c.action)):(s={lane:f,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null},null===u?(i=u=s,r=l):u=u.next=s,E.lanes|=f,du|=f),null!==(c=c.next)&&c!==o);null===u?r=l:u.next=i,kr(l,t.memoizedState)||(C=!0),t.memoizedState=l,t.baseState=r,t.baseQueue=u,n.lastRenderedState=l}if(null!==(e=n.interleaved))for(a=e;o=a.lane,E.lanes|=o,du|=o,(a=a.next)!==e;);else null===a&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function kl(e){var t=vl(),n=t.queue;if(null===n)throw Error(A(311));n.lastRenderedReducer=e;var r=n.dispatch,a=n.pending,o=t.memoizedState;if(null!==a){n.pending=null;for(var l=a=a.next;o=e(o,l.action),(l=l.next)!==a;);kr(o,t.memoizedState)||(C=!0),t.memoizedState=o,null===t.baseQueue&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function Sl(){}function xl(e,t){var n=E,r=vl(),a=t(),o=!kr(r.memoizedState,a);if(o&&(r.memoizedState=a,C=!0),r=r.queue,zl(_l.bind(null,n,r,e),[e]),r.getSnapshot!==t||o||null!==_&&1&_.memoizedState.tag){if(n.flags|=2048,Tl(9,Pl.bind(null,n,r,a,t),void 0,null),null===p)throw Error(A(349));0==(30&cl)&&El(n,t,a)}return a}function El(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},null===(t=E.updateQueue)?(E.updateQueue=t={lastEffect:null,stores:null}).stores=[e]:null===(n=t.stores)?t.stores=[e]:n.push(e)}function Pl(e,t,n,r){t.value=n,t.getSnapshot=r,Cl(t)&&Ol(e)}function _l(e,t,n){return n(function(){Cl(t)&&Ol(e)})}function Cl(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!kr(e,n)}catch(e){return 1}}function Ol(e){var t=Fo(e,1);null!==t&&Tu(t,e,1,-1)}function Nl(e){var t=gl();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e=(t.queue=e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:bl,lastRenderedState:e}).dispatch=function(e,t,n){var r=Nu(e),a={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Hl(e))Wl(t,a);else{var o=e.alternate;if(0===e.lanes&&(null===o||0===o.lanes)&&null!==(o=t.lastRenderedReducer))try{var l,i=t.lastRenderedState,u=o(i,n);if(a.hasEagerState=!0,a.eagerState=u,kr(u,i))return null===(l=t.interleaved)?(a.next=a,jo(t)):(a.next=l.next,l.next=a),void(t.interleaved=a)}catch(e){}null!==(n=Ao(e,t,a,r))&&(a=h(),Tu(n,e,r,a),ql(n,t,r))}}.bind(null,E,e),[t.memoizedState,e]}function Tl(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=E.updateQueue)?(E.updateQueue=t={lastEffect:null,stores:null}).lastEffect=e.next=e:null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,(n.next=e).next=r,t.lastEffect=e),e}function Dl(){return vl().memoizedState}function Il(e,t,n,r){var a=gl();E.flags|=e,a.memoizedState=Tl(1|t,n,void 0,void 0===r?null:r)}function Ll(e,t,n,r){var a=vl(),o=(r=void 0===r?null:r,void 0);if(null!==P){var l=P.memoizedState,o=l.destroy;if(null!==r&&hl(r,l.deps))return void(a.memoizedState=Tl(t,n,o,r))}E.flags|=e,a.memoizedState=Tl(1|t,n,o,r)}function Ml(e,t){return Il(8390656,8,e,t)}function zl(e,t){return Ll(2048,8,e,t)}function Rl(e,t){return Ll(4,2,e,t)}function jl(e,t){return Ll(4,4,e,t)}function Al(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 Fl(e,t,n){return n=null!=n?n.concat([e]):null,Ll(4,4,Al.bind(null,t,e),n)}function Ul(){}function $l(e,t){var n=vl(),r=(t=void 0===t?null:t,n.memoizedState);return null!==r&&null!==t&&hl(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Vl(e,t){var n=vl(),r=(t=void 0===t?null:t,n.memoizedState);return null!==r&&null!==t&&hl(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Jl(e,t,n){return 0==(21&cl)?(e.baseState&&(e.baseState=!1,C=!0),e.memoizedState=n):(kr(n,t)||(n=Ut(),E.lanes|=n,du|=n,e.baseState=!0),t)}function Bl(){return vl().memoizedState}function Hl(e){var t=e.alternate;return e===E||null!==t&&t===E}function Wl(e,t){fl=sl=!0;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function ql(e,t,n){var r;0!=(4194240&n)&&(r=t.lanes,r&=e.pendingLanes,Jt(e,t.lanes=n|=r))}var Ql={readContext:zo,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},Kl={readContext:zo,useCallback:function(e,t){return gl().memoizedState=[e,void 0===t?null:t],e},useContext:zo,useEffect:Ml,useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,Il(4194308,4,Al.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Il(4194308,4,e,t)},useInsertionEffect:function(e,t){return Il(4,2,e,t)},useMemo:function(e,t){var n=gl();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=gl();return t=void 0!==n?n(t):t,r.memoizedState=r.baseState=t,e=(r.queue=e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t}).dispatch=function(e,t,n){var r=Nu(e);n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Hl(e)?Wl(t,n):null!==(n=Ao(e,t,n,r))&&(Tu(n,e,r,h()),ql(n,t,r))}.bind(null,E,e),[r.memoizedState,e]},useRef:function(e){return gl().memoizedState=e={current:e}},useState:Nl,useDebugValue:Ul,useDeferredValue:function(e){return gl().memoizedState=e},useTransition:function(){var e=(t=Nl(!1))[0],t=function(e,t){var n=k,r=(k=0!==n&&n<4?n:4,e(!0),ul.transition);ul.transition={};try{e(!1),t()}finally{k=n,ul.transition=r}}.bind(null,t[1]);return[e,gl().memoizedState=t]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=E,a=gl();if(F){if(void 0===n)throw Error(A(407));n=n()}else{if(n=t(),null===p)throw Error(A(349));0==(30&cl)&&El(r,t,n)}var o={value:a.memoizedState=n,getSnapshot:t};return a.queue=o,Ml(_l.bind(null,r,o,e),[e]),r.flags|=2048,Tl(9,Pl.bind(null,r,o,n,t),void 0,null),n},useId:function(){var e,t=gl(),n=p.identifierPrefix;return F?(e=ro,n=":"+n+"R"+(e=(no&~(1<<32-Dt(no)-1)).toString(32)+e),0<(e=dl++)&&(n+="H"+e.toString(32)),n+=":"):n=":"+n+"r"+(e=pl++).toString(32)+":",t.memoizedState=n},unstable_isNewReconciler:!1},Yl={readContext:zo,useCallback:$l,useContext:zo,useEffect:zl,useImperativeHandle:Fl,useInsertionEffect:Rl,useLayoutEffect:jl,useMemo:Vl,useReducer:wl,useRef:Dl,useState:function(){return wl(bl)},useDebugValue:Ul,useDeferredValue:function(e){return Jl(vl(),P.memoizedState,e)},useTransition:function(){return[wl(bl)[0],vl().memoizedState]},useMutableSource:Sl,useSyncExternalStore:xl,useId:Bl,unstable_isNewReconciler:!1},Xl={readContext:zo,useCallback:$l,useContext:zo,useEffect:zl,useImperativeHandle:Fl,useInsertionEffect:Rl,useLayoutEffect:jl,useMemo:Vl,useReducer:kl,useRef:Dl,useState:function(){return kl(bl)},useDebugValue:Ul,useDeferredValue:function(e){var t=vl();return null===P?t.memoizedState=e:Jl(t,P.memoizedState,e)},useTransition:function(){return[kl(bl)[0],vl().memoizedState]},useMutableSource:Sl,useSyncExternalStore:xl,useId:Bl,unstable_isNewReconciler:!1};function Gl(e,t){if(e&&e.defaultProps)for(var n in t=m({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}function Zl(e,t,n,r){n=null==(n=n(r,t=e.memoizedState))?t:m({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}var ei={isMounted:function(e){return!!(e=e._reactInternals)&&yt(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=h(),a=Nu(e),o=Jo(r,a);o.payload=t,null!=n&&(o.callback=n),null!==(t=Bo(e,o,a))&&(Tu(t,e,a,r),Ho(t,e,a))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=h(),a=Nu(e),o=Jo(r,a);o.tag=1,o.payload=t,null!=n&&(o.callback=n),null!==(t=Bo(e,o,a))&&(Tu(t,e,a,r),Ho(t,e,a))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=h(),r=Nu(e),a=Jo(n,r);a.tag=2,null!=t&&(a.callback=t),null!==(t=Bo(e,a,r))&&(Tu(t,e,r,n),Ho(t,e,r))}};function ti(e,t,n,r,a,o,l){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,o,l):!(t.prototype&&t.prototype.isPureReactComponent&&Sr(n,r)&&Sr(a,o))}function ni(e,t,n){var r=!1,a=Ra,o=t.contextType;t=new t(n,o="object"==typeof o&&null!==o?zo(o):(a=w(t)?ja:v.current,(r=null!=(r=t.contextTypes))?Aa(e,a):Ra)),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=ei,(e.stateNode=t)._reactInternals=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=a,e.__reactInternalMemoizedMaskedChildContext=o)}function ri(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&&ei.enqueueReplaceState(t,t.state,null)}function ai(e,t,n,r){var a=e.stateNode,o=(a.props=n,a.state=e.memoizedState,a.refs={},$o(e),t.contextType);"object"==typeof o&&null!==o?a.context=zo(o):(o=w(t)?ja:v.current,a.context=Aa(e,o)),a.state=e.memoizedState,"function"==typeof(o=t.getDerivedStateFromProps)&&(Zl(e,0,o,n),a.state=e.memoizedState),"function"==typeof t.getDerivedStateFromProps||"function"==typeof a.getSnapshotBeforeUpdate||"function"!=typeof a.UNSAFE_componentWillMount&&"function"!=typeof a.componentWillMount||(t=a.state,"function"==typeof a.componentWillMount&&a.componentWillMount(),"function"==typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount(),t!==a.state&&ei.enqueueReplaceState(a,a.state,null),qo(e,n,a,r),a.state=e.memoizedState),"function"==typeof a.componentDidMount&&(e.flags|=4194308)}function oi(e,t){try{for(var n="",r=t;n+=function(e){switch(e.tag){case 5:return ye(e.type);case 16:return ye("Lazy");case 13:return ye("Suspense");case 19:return ye("SuspenseList");case 0:case 2:case 15:return e=ge(e.type,!1);case 11:return e=ge(e.type.render,!1);case 1:return e=ge(e.type,!0);default:return""}}(r),r=r.return;);var a=n}catch(e){a="\nError generating stack: "+e.message+"\n"+e.stack}return{value:e,source:t,stack:a,digest:null}}function li(e,t,n){return{value:e,source:null,stack:null!=n?n:null,digest:null!=t?t:null}}var ii="function"==typeof WeakMap?WeakMap:Map;function ui(e,t,n){(n=Jo(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){bu||(bu=!0,wu=r)},n}function ci(e,t,n){(n=Jo(-1,n)).tag=3;var r,a=e.type.getDerivedStateFromError,e=("function"==typeof a&&(r=t.value,n.payload=function(){return a(r)},n.callback=function(){}),e.stateNode);return null!==e&&"function"==typeof e.componentDidCatch&&(n.callback=function(){"function"!=typeof a&&(null===ku?ku=new Set([this]):ku.add(this));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}function si(e,t,n){var r,a=e.pingCache;null===a?(a=e.pingCache=new ii,r=new Set,a.set(t,r)):void 0===(r=a.get(t))&&(r=new Set,a.set(t,r)),r.has(n)||(r.add(n),e=function(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),t=h(),e.pingedLanes|=e.suspendedLanes&n,p===e&&(L&n)===n&&(4===M||3===M&&(130023424&L)===L&&y()-mu<500?Uu(e,0):hu|=n),Du(e,t)}.bind(null,e,t,n),t.then(e,e))}function fi(e){do{var t;if(t=(t=13===e.tag)?null===(t=e.memoizedState)||null!==t.dehydrated:t)return e}while(null!==(e=e.return));return null}function di(e,t,n,r,a){if(0==(1&e.mode))return e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,1===n.tag&&(null===n.alternate?n.tag=17:((t=Jo(-1,1)).tag=2,Bo(n,t,1))),n.lanes|=1);e.flags|=65536,e.lanes=a}var pi=j.ReactCurrentOwner,C=!1;function O(e,t,n,r){t.child=null===e?_o(t,null,n,r):Po(t,e.child,n,r)}function hi(e,t,n,r,a){n=n.render;var o=t.ref;return Mo(t,a),r=yl(e,t,n,r,o,a),n=ml(),null===e||C?(F&&n&&lo(t),t.flags|=1,O(e,t,r,a),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~a,Li(e,t,a))}function yi(e,t,n,r,a){var o;if(null===e)return"function"!=typeof(o=n.type)||ec(o)||void 0!==o.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=nc(n.type,null,r,t,t.mode,a)).ref=t.ref,(e.return=t).child=e):(t.tag=15,t.type=o,mi(e,t,o,r,a));if(o=e.child,0==(e.lanes&a)){var l=o.memoizedProps;if((n=null!==(n=n.compare)?n:Sr)(l,r)&&e.ref===t.ref)return Li(e,t,a)}return t.flags|=1,(e=tc(o,r)).ref=t.ref,(e.return=t).child=e}function mi(e,t,n,r,a){if(null!==e){var o=e.memoizedProps;if(Sr(o,r)&&e.ref===t.ref){if(C=!1,t.pendingProps=r=o,0==(e.lanes&a))return t.lanes=e.lanes,Li(e,t,a);0!=(131072&e.flags)&&(C=!0)}}return bi(e,t,n,r,a)}function gi(e,t,n){var r=t.pendingProps,a=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},g(su,cu),cu|=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,g(su,cu),cu|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=null!==o?o.baseLanes:n,g(su,cu),cu|=r}else null!==o?(r=o.baseLanes|n,t.memoizedState=null):r=n,g(su,cu),cu|=r;return O(e,t,a,n),t.child}function vi(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function bi(e,t,n,r,a){var o=Aa(t,w(n)?ja:v.current);return Mo(t,a),n=yl(e,t,n,r,o,a),r=ml(),null===e||C?(F&&r&&lo(t),t.flags|=1,O(e,t,n,a),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~a,Li(e,t,a))}function wi(e,t,n,r,a){var o,l,i,u,c,s,f,d,p,h;return w(n)?(o=!0,Va(t)):o=!1,Mo(t,a),r=null===t.stateNode?(Ii(e,t),ni(t,n,r),ai(t,n,r,a),!0):null===e?(l=t.stateNode,i=t.memoizedProps,l.props=i,d=l.context,u="object"==typeof(u=n.contextType)&&null!==u?zo(u):Aa(t,u=w(n)?ja:v.current),(s="function"==typeof(c=n.getDerivedStateFromProps)||"function"==typeof l.getSnapshotBeforeUpdate)||"function"!=typeof l.UNSAFE_componentWillReceiveProps&&"function"!=typeof l.componentWillReceiveProps||i===r&&d===u||ri(0,l,r,u),Uo=!1,f=t.memoizedState,l.state=f,qo(t,r,l,a),d=t.memoizedState,i!==r||f!==d||b.current||Uo?("function"==typeof c&&(Zl(t,0,c,r),d=t.memoizedState),(i=Uo||ti(t,n,i,r,f,d,u))?(s||"function"!=typeof l.UNSAFE_componentWillMount&&"function"!=typeof l.componentWillMount||("function"==typeof l.componentWillMount&&l.componentWillMount(),"function"==typeof l.UNSAFE_componentWillMount&&l.UNSAFE_componentWillMount()),"function"==typeof l.componentDidMount&&(t.flags|=4194308)):("function"==typeof l.componentDidMount&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=d),l.props=r,l.state=d,l.context=u,i):("function"==typeof l.componentDidMount&&(t.flags|=4194308),!1)):(l=t.stateNode,Vo(e,t),i=t.memoizedProps,u=t.type===t.elementType?i:Gl(t.type,i),l.props=u,s=t.pendingProps,f=l.context,d="object"==typeof(d=n.contextType)&&null!==d?zo(d):Aa(t,d=w(n)?ja:v.current),(c="function"==typeof(p=n.getDerivedStateFromProps)||"function"==typeof l.getSnapshotBeforeUpdate)||"function"!=typeof l.UNSAFE_componentWillReceiveProps&&"function"!=typeof l.componentWillReceiveProps||i===s&&f===d||ri(0,l,r,d),Uo=!1,f=t.memoizedState,l.state=f,qo(t,r,l,a),h=t.memoizedState,i!==s||f!==h||b.current||Uo?("function"==typeof p&&(Zl(t,0,p,r),h=t.memoizedState),(u=Uo||ti(t,n,u,r,f,h,d)||!1)?(c||"function"!=typeof l.UNSAFE_componentWillUpdate&&"function"!=typeof l.componentWillUpdate||("function"==typeof l.componentWillUpdate&&l.componentWillUpdate(r,h,d),"function"==typeof l.UNSAFE_componentWillUpdate&&l.UNSAFE_componentWillUpdate(r,h,d)),"function"==typeof l.componentDidUpdate&&(t.flags|=4),"function"==typeof l.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!=typeof l.componentDidUpdate||i===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),"function"!=typeof l.getSnapshotBeforeUpdate||i===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=h),l.props=r,l.state=h,l.context=d,u):("function"!=typeof l.componentDidUpdate||i===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),"function"!=typeof l.getSnapshotBeforeUpdate||i===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),!1)),ki(e,t,n,r,o,a)}function ki(e,t,n,r,a,o){vi(e,t);var l=0!=(128&t.flags);if(!r&&!l)return a&&Ja(t,n,!1),Li(e,t,o);r=t.stateNode,pi.current=t;var i=l&&"function"!=typeof n.getDerivedStateFromError?null:r.render();return t.flags|=1,null!==e&&l?(t.child=Po(t,e.child,null,o),t.child=Po(t,null,i,o)):O(e,t,i,o),t.memoizedState=r.state,a&&Ja(t,n,!0),t.child}function Si(e){var t=e.stateNode;t.pendingContext?Ua(0,t.pendingContext,t.pendingContext!==t.context):t.context&&Ua(0,t.context,!1),el(e,t.containerInfo)}function xi(e,t,n,r,a){return vo(),bo(a),t.flags|=256,O(e,t,n,r),t.child}var Ei={dehydrated:null,treeContext:null,retryLane:0};function Pi(e){return{baseLanes:e,cachePool:null,transitions:null}}function _i(e,t,n){var r,a,o=t.pendingProps,l=x.current,i=!1,u=0!=(128&t.flags);if((a=(a=u)||(null===e||null!==e.memoizedState)&&0!=(2&l))?(i=!0,t.flags&=-129):null!==e&&null===e.memoizedState||(l|=1),g(x,1&l),null===e)return ho(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):(u=o.children,e=o.fallback,i?(o=t.mode,i=t.child,u={mode:"hidden",children:u},0==(1&o)&&null!==i?(i.childLanes=0,i.pendingProps=u):i=ac(u,o,0,null),e=rc(e,o,n,null),i.return=t,e.return=t,i.sibling=e,t.child=i,t.child.memoizedState=Pi(n),t.memoizedState=Ei,e):Ci(t,u));if(null===(l=e.memoizedState)||null===(a=l.dehydrated))return i?(i=o.fallback,u=t.mode,a=(l=e.child).sibling,c={mode:"hidden",children:o.children},0==(1&u)&&t.child!==l?((o=t.child).childLanes=0,o.pendingProps=c,t.deletions=null):(o=tc(l,c)).subtreeFlags=14680064&l.subtreeFlags,null!==a?i=tc(a,i):(i=rc(i,u,n,null)).flags|=2,i.return=t,o.return=t,o.sibling=i,t.child=o,o=i,i=t.child,u=null===(u=e.child.memoizedState)?Pi(n):{baseLanes:u.baseLanes|n,cachePool:null,transitions:u.transitions},i.memoizedState=u,i.childLanes=e.childLanes&~n,t.memoizedState=Ei):(e=(i=e.child).sibling,o=tc(i,{mode:"visible",children:o.children}),0==(1&t.mode)&&(o.lanes=n),o.return=t,(o.sibling=null)!==e&&(null===(n=t.deletions)?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=o,t.memoizedState=null),o;var c=e,i=t,e=o,s=a,t=l,o=n;if(u)return 256&i.flags?(i.flags&=-257,e=li(Error(A(422))),Oi(c,i,o,e)):null!==i.memoizedState?(i.child=c.child,i.flags|=128,null):(t=e.fallback,s=i.mode,e=ac({mode:"visible",children:e.children},s,0,null),(t=rc(t,s,o,null)).flags|=2,e.return=i,t.return=i,e.sibling=t,i.child=e,0!=(1&i.mode)&&Po(i,c.child,null,o),i.child.memoizedState=Pi(o),i.memoizedState=Ei,t);if(0==(1&i.mode))return Oi(c,i,o,null);if("$!"===s.data)return e=r=(e=s.nextSibling&&s.nextSibling.dataset)?e.dgst:r,t=Error(A(419)),e=li(t,e,void 0),Oi(c,i,o,e);if(r=0!=(o&c.childLanes),C||r){if(null!==(e=p)){switch(o&-o){case 4:s=2;break;case 16:s=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:s=32;break;case 536870912:s=268435456;break;default:s=0}0!==(s=0!=(s&(e.suspendedLanes|o))?0:s)&&s!==t.retryLane&&(t.retryLane=s,Fo(c,s),Tu(e,c,s,-1))}return Ju(),e=li(Error(A(421))),Oi(c,i,o,e)}return"$?"===s.data?(i.flags|=128,i.child=c.child,i=function(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),Yu(e,n)}.bind(null,c),s._reactRetry=i,null):(c=t.treeContext,S=ka(s.nextSibling),uo=i,F=!0,(co=null)!==c&&(Za[eo++]=no,Za[eo++]=ro,Za[eo++]=to,no=c.id,ro=c.overflow,to=i),(i=Ci(i,e.children)).flags|=4096,i)}function Ci(e,t){return((t=ac({mode:"visible",children:t},e.mode,0,null)).return=e).child=t}function Oi(e,t,n,r){return null!==r&&bo(r),Po(t,e.child,null,n),(e=Ci(t,t.pendingProps.children)).flags|=2,t.memoizedState=null,e}function Ni(e,t,n){e.lanes|=t;var r=e.alternate;null!==r&&(r.lanes|=t),Lo(e.return,t,n)}function Ti(e,t,n,r,a){var o=e.memoizedState;null===o?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:a}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=a)}function Di(e,t,n){var r=t.pendingProps,a=r.revealOrder,o=r.tail;if(O(e,t,r.children,n),0!=(2&(r=x.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&&Ni(e,n,t);else if(19===e.tag)Ni(e,n,t);else if(null!==e.child){e=(e.child.return=e).child;continue}if(e===t)break;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(g(x,r),0==(1&t.mode))t.memoizedState=null;else switch(a){case"forwards":for(n=t.child,a=null;null!==n;)null!==(e=n.alternate)&&null===al(e)&&(a=n),n=n.sibling;null===(n=a)?(a=t.child,t.child=null):(a=n.sibling,n.sibling=null),Ti(t,!1,a,n,o);break;case"backwards":for(a=t.child,t.child=n=null;null!==a;){if(null!==(e=a.alternate)&&null===al(e)){t.child=a;break}e=a.sibling,a.sibling=n,n=a,a=e}Ti(t,!0,n,null,o);break;case"together":Ti(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Ii(e,t){0==(1&t.mode)&&null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Li(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),du|=t.lanes,0==(n&t.childLanes))return null;if(null!==e&&t.child!==e.child)throw Error(A(153));if(null!==t.child){for(n=tc(e=t.child,e.pendingProps),(t.child=n).return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=tc(e,e.pendingProps)).return=t;n.sibling=null}return t.child}function Mi(e,t){if(!F)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":for(var n=e.tail,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 f(e){var t=null!==e.alternate&&e.alternate.child===e.child,n=0,r=0;if(t)for(var a=e.child;null!==a;)n|=a.lanes|a.childLanes,r=(r|=14680064&a.subtreeFlags)|14680064&a.flags,a.return=e,a=a.sibling;else for(a=e.child;null!==a;)n|=a.lanes|a.childLanes,r=(r|=a.subtreeFlags)|a.flags,a.return=e,a=a.sibling;e.subtreeFlags|=r,e.childLanes=n}var zi=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=(n.child.return=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}},Ri=function(e,t,n,r){var a=e.memoizedProps;if(a!==r){e=t.stateNode,Zo(Yo.current);var o,l=null;switch(n){case"input":a=Ee(e,a),r=Ee(e,r),l=[];break;case"select":a=m({},a,{value:void 0}),r=m({},r,{value:void 0}),l=[];break;case"textarea":a=Ie(e,a),r=Ie(e,r),l=[];break;default:"function"!=typeof a.onClick&&"function"==typeof r.onClick&&(e.onclick=fa)}for(c in qe(n,r),n=null,a)if(!r.hasOwnProperty(c)&&a.hasOwnProperty(c)&&null!=a[c])if("style"===c){var i=a[c];for(o in i)i.hasOwnProperty(o)&&(n=n||{},n[o]="")}else"dangerouslySetInnerHTML"!==c&&"children"!==c&&"suppressContentEditableWarning"!==c&&"suppressHydrationWarning"!==c&&"autoFocus"!==c&&(V.hasOwnProperty(c)?l=l||[]:(l=l||[]).push(c,null));for(c in r){var u=r[c],i=null!=a?a[c]:void 0;if(r.hasOwnProperty(c)&&u!==i&&(null!=u||null!=i))if("style"===c)if(i){for(o in i)!i.hasOwnProperty(o)||u&&u.hasOwnProperty(o)||(n=n||{},n[o]="");for(o in u)u.hasOwnProperty(o)&&i[o]!==u[o]&&(n=n||{},n[o]=u[o])}else n||(l=l||[]).push(c,n),n=u;else"dangerouslySetInnerHTML"===c?(u=u?u.__html:void 0,i=i?i.__html:void 0,null!=u&&i!==u&&(l=l||[]).push(c,u)):"children"===c?"string"!=typeof u&&"number"!=typeof u||(l=l||[]).push(c,""+u):"suppressContentEditableWarning"!==c&&"suppressHydrationWarning"!==c&&(V.hasOwnProperty(c)?(null!=u&&"onScroll"===c&&s("scroll",e),l||i===u||(l=[])):(l=l||[]).push(c,u))}n&&(l=l||[]).push("style",n);var c=l;(t.updateQueue=c)&&(t.flags|=4)}},ji=function(e,t,n,r){n!==r&&(t.flags|=4)},Ai=!1,N=!1,Fi="function"==typeof WeakSet?WeakSet:Set,T=null;function Ui(t,n){var e=t.ref;if(null!==e)if("function"==typeof e)try{e(null)}catch(e){z(t,n,e)}else e.current=null}function $i(t,n,e){try{e()}catch(e){z(t,n,e)}}var Vi=!1;function Ji(e,t,n){var r=t.updateQueue;if(null!==(r=null!==r?r.lastEffect:null)){var a,o=r=r.next;do{}while((o.tag&e)===e&&(a=o.destroy,(o.destroy=void 0)!==a)&&$i(t,n,a),(o=o.next)!==r)}}function Bi(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var n,r=t=t.next;do{}while((r.tag&e)===e&&(n=r.create,r.destroy=n()),(r=r.next)!==t)}}function Hi(e){var t,n=e.ref;null!==n&&(t=e.stateNode,e.tag,e=t,"function"==typeof n?n(e):n.current=e)}function Wi(e){return 5===e.tag||3===e.tag||4===e.tag}function qi(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||Wi(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=(e.child.return=e).child}if(!(2&e.flags))return e.stateNode}}var d=null,Qi=!1;function Ki(e,t,n){for(n=n.child;null!==n;)Yi(e,t,n),n=n.sibling}function Yi(e,t,n){if(Tt&&"function"==typeof Tt.onCommitFiberUnmount)try{Tt.onCommitFiberUnmount(Nt,n)}catch(e){}switch(n.tag){case 5:N||Ui(n,t);case 6:var r=d,a=Qi;d=null,Ki(e,t,n),Qi=a,null!==(d=r)&&(Qi?(e=d,n=n.stateNode,(8===e.nodeType?e.parentNode:e).removeChild(n)):d.removeChild(n.stateNode));break;case 18:null!==d&&(Qi?(e=d,n=n.stateNode,8===e.nodeType?wa(e.parentNode,n):1===e.nodeType&&wa(e,n),pn(e)):wa(d,n.stateNode));break;case 4:r=d,a=Qi,d=n.stateNode.containerInfo,Qi=!0,Ki(e,t,n),d=r,Qi=a;break;case 0:case 11:case 14:case 15:if(!N&&null!==(r=n.updateQueue)&&null!==(r=r.lastEffect)){a=r=r.next;do{var o=a.destroy,l=a.tag}while(void 0===o||0==(2&l)&&0==(4&l)||$i(n,t,o),(a=a.next)!==r)}Ki(e,t,n);break;case 1:if(!N&&(Ui(n,t),"function"==typeof(r=n.stateNode).componentWillUnmount))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(e){z(n,t,e)}Ki(e,t,n);break;case 21:Ki(e,t,n);break;case 22:1&n.mode?(N=(r=N)||null!==n.memoizedState,Ki(e,t,n),N=r):Ki(e,t,n);break;default:Ki(e,t,n)}}function Xi(n){var r,e=n.updateQueue;null!==e&&((n.updateQueue=null)===(r=n.stateNode)&&(r=n.stateNode=new Fi),e.forEach(function(e){var t=function(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,a=e.memoizedState;null!==a&&(n=a.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(A(314))}null!==r&&r.delete(t),Yu(e,n)}.bind(null,n,e);r.has(e)||(r.add(e),e.then(t,t))}))}function Gi(e,t){var n=t.deletions;if(null!==n)for(var r=0;r<n.length;r++){var a=n[r];try{var o=e,l=t,i=l;e:for(;null!==i;){switch(i.tag){case 5:d=i.stateNode,Qi=!1;break e;case 3:case 4:d=i.stateNode.containerInfo,Qi=!0;break e}i=i.return}if(null===d)throw Error(A(160));Yi(o,l,a),d=null,Qi=!1;var u=a.alternate;null!==u&&(u.return=null),a.return=null}catch(e){z(a,t,e)}}if(12854&t.subtreeFlags)for(t=t.child;null!==t;)Zi(t,e),t=t.sibling}function Zi(t,e){var n=t.alternate,r=t.flags;switch(t.tag){case 0:case 11:case 14:case 15:if(Gi(e,t),eu(t),4&r){try{Ji(3,t,t.return),Bi(3,t)}catch(e){z(t,t.return,e)}try{Ji(5,t,t.return)}catch(e){z(t,t.return,e)}}break;case 1:Gi(e,t),eu(t),512&r&&null!==n&&Ui(n,n.return);break;case 5:if(Gi(e,t),eu(t),512&r&&null!==n&&Ui(n,n.return),32&t.flags){var a=t.stateNode;try{$e(a,"")}catch(e){z(t,t.return,e)}}if(4&r&&null!=(a=t.stateNode)){var o=t.memoizedProps,l=null!==n?n.memoizedProps:o,i=t.type,u=t.updateQueue;if((t.updateQueue=null)!==u)try{"input"===i&&"radio"===o.type&&null!=o.name&&_e(a,o),Qe(i,l);for(var c=Qe(i,o),l=0;l<u.length;l+=2){var s=u[l],f=u[l+1];"style"===s?He(a,f):"dangerouslySetInnerHTML"===s?Ue(a,f):"children"===s?$e(a,f):G(a,s,f,c)}switch(i){case"input":Ce(a,o);break;case"textarea":Me(a,o);break;case"select":var d=a._wrapperState.wasMultiple,p=(a._wrapperState.wasMultiple=!!o.multiple,o.value);null!=p?De(a,!!o.multiple,p,!1):d!==!!o.multiple&&(null!=o.defaultValue?De(a,!!o.multiple,o.defaultValue,!0):De(a,!!o.multiple,o.multiple?[]:"",!1))}a[Ea]=o}catch(e){z(t,t.return,e)}}break;case 6:if(Gi(e,t),eu(t),4&r){if(null===t.stateNode)throw Error(A(162));a=t.stateNode,o=t.memoizedProps;try{a.nodeValue=o}catch(e){z(t,t.return,e)}}break;case 3:if(Gi(e,t),eu(t),4&r&&null!==n&&n.memoizedState.isDehydrated)try{pn(e.containerInfo)}catch(e){z(t,t.return,e)}break;case 4:Gi(e,t),eu(t);break;case 13:Gi(e,t),eu(t),8192&(a=t.child).flags&&(o=null!==a.memoizedState,!(a.stateNode.isHidden=o)||null!==a.alternate&&null!==a.alternate.memoizedState||(mu=y())),4&r&&Xi(t);break;case 22:if(s=null!==n&&null!==n.memoizedState,1&t.mode?(N=(c=N)||s,Gi(e,t),N=c):Gi(e,t),eu(t),8192&r){if(c=null!==t.memoizedState,(t.stateNode.isHidden=c)&&!s&&0!=(1&t.mode))for(s=(T=t).child;null!==s;){for(f=T=s;null!==T;){switch(p=(d=T).child,d.tag){case 0:case 11:case 14:case 15:Ji(4,d,d.return);break;case 1:Ui(d,d.return);var h=d.stateNode;if("function"==typeof h.componentWillUnmount){n=(r=d).return;try{e=r,h.props=e.memoizedProps,h.state=e.memoizedState,h.componentWillUnmount()}catch(e){z(r,n,e)}}break;case 5:Ui(d,d.return);break;case 22:if(null!==d.memoizedState){ru(f);continue}}null!==p?(p.return=d,T=p):ru(f)}s=s.sibling}e:for(s=null,f=t;;){if(5===f.tag){if(null===s){s=f;try{a=f.stateNode,c?"function"==typeof(o=a.style).setProperty?o.setProperty("display","none","important"):o.display="none":(i=f.stateNode,l=null!=(u=f.memoizedProps.style)&&u.hasOwnProperty("display")?u.display:null,i.style.display=Be("display",l))}catch(e){z(t,t.return,e)}}}else if(6===f.tag){if(null===s)try{f.stateNode.nodeValue=c?"":f.memoizedProps}catch(e){z(t,t.return,e)}}else if((22!==f.tag&&23!==f.tag||null===f.memoizedState||f===t)&&null!==f.child){f=(f.child.return=f).child;continue}if(f===t)break;for(;null===f.sibling;){if(null===f.return||f.return===t)break e;s===f&&(s=null),f=f.return}s===f&&(s=null),f.sibling.return=f.return,f=f.sibling}}break;case 19:Gi(e,t),eu(t),4&r&&Xi(t);break;case 21:break;default:Gi(e,t),eu(t)}}function eu(t){var e=t.flags;if(2&e){try{e:{for(var n=t.return;null!==n;){if(Wi(n)){var r=n;break e}n=n.return}throw Error(A(160))}switch(r.tag){case 5:var a=r.stateNode;32&r.flags&&($e(a,""),r.flags&=-33),!function e(t,n,r){var a=t.tag;if(5===a||6===a)t=t.stateNode,n?r.insertBefore(t,n):r.appendChild(t);else if(4!==a&&null!==(t=t.child))for(e(t,n,r),t=t.sibling;null!==t;)e(t,n,r),t=t.sibling}(t,qi(t),a);break;case 3:case 4:var o=r.stateNode.containerInfo;!function e(t,n,r){var a=t.tag;if(5===a||6===a)t=t.stateNode,n?(8===r.nodeType?r.parentNode:r).insertBefore(t,n):(8===r.nodeType?(n=r.parentNode).insertBefore(t,r):(n=r).appendChild(t),null==(r=r._reactRootContainer)&&null===n.onclick&&(n.onclick=fa));else if(4!==a&&null!==(t=t.child))for(e(t,n,r),t=t.sibling;null!==t;)e(t,n,r),t=t.sibling}(t,qi(t),o);break;default:throw Error(A(161))}}catch(e){z(t,t.return,e)}t.flags&=-3}4096&e&&(t.flags&=-4097)}function tu(e,t,n){!function e(t,n,r){for(var a=0!=(1&t.mode);null!==T;){var o=T,l=o.child;if(22===o.tag&&a){var i=null!==o.memoizedState||Ai;if(!i){var u=o.alternate,c=null!==u&&null!==u.memoizedState||N,s=(u=Ai,N);if(Ai=i,(N=c)&&!s)for(T=o;null!==T;)c=(i=T).child,(22!==i.tag||null===i.memoizedState)&&null!==c?(c.return=i,T=c):au(o);for(;null!==l;)e(T=l,n,r),l=l.sibling;T=o,Ai=u,N=s}nu(t)}else 0!=(8772&o.subtreeFlags)&&null!==l?(l.return=o,T=l):nu(t)}}(T=e,t,n)}function nu(e){for(;null!==T;){var t=T;if(0!=(8772&t.flags)){var n,r,a,o=t.alternate;try{if(0!=(8772&t.flags))switch(t.tag){case 0:case 11:case 15:N||Bi(5,t);break;case 1:var l,i=t.stateNode,u=(4&t.flags&&!N&&(null===o?i.componentDidMount():(l=t.elementType===t.type?o.memoizedProps:Gl(t.type,o.memoizedProps),i.componentDidUpdate(l,o.memoizedState,i.__reactInternalSnapshotBeforeUpdate))),t.updateQueue);null!==u&&Qo(0,u,i);break;case 3:var c=t.updateQueue;if(null!==c){if((o=null)!==t.child)switch(t.child.tag){case 5:case 1:o=t.child.stateNode}Qo(0,c,o)}break;case 5:var s=t.stateNode;if(null===o&&4&t.flags){var o=s,f=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":f.autoFocus&&o.focus();break;case"img":f.src&&(o.src=f.src)}}break;case 6:case 4:case 12:break;case 13:null===t.memoizedState&&null!==(n=t.alternate)&&null!==(r=n.memoizedState)&&null!==(a=r.dehydrated)&&pn(a);break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(A(163))}N||512&t.flags&&Hi(t)}catch(e){z(t,t.return,e)}}if(t===e){T=null;break}if(null!==(o=t.sibling)){o.return=t.return,T=o;break}T=t.return}}function ru(e){for(;null!==T;){var t=T;if(t===e){T=null;break}var n=t.sibling;if(null!==n){n.return=t.return,T=n;break}T=t.return}}function au(e){for(;null!==T;){var t=T;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{Bi(4,t)}catch(e){z(t,n,e)}break;case 1:var r=t.stateNode;if("function"==typeof r.componentDidMount){var a=t.return;try{r.componentDidMount()}catch(e){z(t,a,e)}}var o=t.return;try{Hi(t)}catch(e){z(t,o,e)}break;case 5:var l=t.return;try{Hi(t)}catch(e){z(t,l,e)}}}catch(e){z(t,t.return,e)}if(t===e){T=null;break}var i=t.sibling;if(null!==i){i.return=t.return,T=i;break}T=t.return}}var ou=Math.ceil,lu=j.ReactCurrentDispatcher,iu=j.ReactCurrentOwner,uu=j.ReactCurrentBatchConfig,D=0,p=null,I=null,L=0,cu=0,su=za(0),M=0,fu=null,du=0,pu=0,hu=0,yu=null,i=null,mu=0,gu=1/0,vu=null,bu=!1,wu=null,ku=null,Su=!1,xu=null,Eu=0,Pu=0,_u=null,Cu=-1,Ou=0;function h(){return 0!=(6&D)?y():-1!==Cu?Cu:Cu=y()}function Nu(e){return 0==(1&e.mode)?1:0!=(2&D)&&0!==L?L&-L:null!==wo.transition?Ou=0===Ou?Ut():Ou:0===(e=k)?void 0===(e=window.event)?16:kn(e.type):e}function Tu(e,t,n,r){if(50<Pu)throw Pu=0,_u=null,Error(A(185));Vt(e,n,r),0!=(2&D)&&e===p||(e===p&&(0==(2&D)&&(pu|=n),4===M)&&zu(e,L),Du(e,r),1===n&&0===D&&0==(1&t.mode)&&(gu=y()+500,Ha)&&Qa())}function Du(e,t){var n,r=e.callbackNode,a=(At(e,t),jt(e,e===p?L:0));if(0===a)null!==r&&wt(r),e.callbackNode=null,e.callbackPriority=0;else if(e.callbackPriority!==(t=a&-a)){if(null!=r&&wt(r),1===t)0===e.tag?(n=Ru.bind(null,e),Ha=!0,qa(n)):qa(Ru.bind(null,e)),va(function(){0==(6&D)&&Qa()}),r=null;else{switch(Bt(a)){case 1:r=Et;break;case 4:r=Pt;break;case 16:r=_t;break;case 536870912:r=Ot;break;default:r=_t}r=Xu(r,Iu.bind(null,e))}e.callbackPriority=t,e.callbackNode=r}}function Iu(t,e){if(Cu=-1,(Ou=0)!=(6&D))throw Error(A(327));var n=t.callbackNode;if(Qu()&&t.callbackNode!==n)return null;var r=jt(t,t===p?L:0);if(0===r)return null;if(0!=(30&r)||0!=(r&t.expiredLanes)||e)e=Bu(t,r);else{e=r;var a=D,o=(D|=2,Vu());for(p===t&&L===e||(vu=null,gu=y()+500,Uu(t,e));;)try{for(;null!==I&&!kt();)Hu(I);break}catch(e){$u(t,e)}Do(),lu.current=o,D=a,e=null!==I?0:(p=null,L=0,M)}if(0!==e){if(1===(e=2===e&&0!==(a=Ft(t))?Lu(t,r=a):e))throw n=fu,Uu(t,0),zu(t,r),Du(t,y()),n;if(6===e)zu(t,r);else{if(a=t.current.alternate,0==(30&r)&&!function(e){for(var t=e;;){if(16384&t.flags){var n=t.updateQueue;if(null!==n&&null!==(n=n.stores))for(var r=0;r<n.length;r++){var a=n[r],o=a.getSnapshot;a=a.value;try{if(!kr(o(),a))return}catch(e){return}}}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 1;t=t.return}t.sibling.return=t.return,t=t.sibling}}return 1}(a)&&1===(e=2===(e=Bu(t,r))&&0!==(o=Ft(t))?Lu(t,r=o):e))throw n=fu,Uu(t,0),zu(t,r),Du(t,y()),n;switch(t.finishedWork=a,t.finishedLanes=r,e){case 0:case 1:throw Error(A(345));case 2:qu(t,i,vu);break;case 3:if(zu(t,r),(130023424&r)===r&&10<(e=mu+500-y())){if(0!==jt(t,0))break;if(((a=t.suspendedLanes)&r)!==r){h(),t.pingedLanes|=t.suspendedLanes&a;break}t.timeoutHandle=ya(qu.bind(null,t,i,vu),e)}else qu(t,i,vu);break;case 4:if(zu(t,r),(4194240&r)!==r){for(e=t.eventTimes,a=-1;0<r;){var l=31-Dt(r),o=1<<l;a<(l=e[l])&&(a=l),r&=~o}r=a,10<(r=((r=y()-r)<120?120:r<480?480:r<1080?1080:r<1920?1920:r<3e3?3e3:r<4320?4320:1960*ou(r/1960))-r)?t.timeoutHandle=ya(qu.bind(null,t,i,vu),r):qu(t,i,vu)}break;case 5:qu(t,i,vu);break;default:throw Error(A(329))}}}return Du(t,y()),t.callbackNode===n?Iu.bind(null,t):null}function Lu(e,t){var n=yu;return e.current.memoizedState.isDehydrated&&(Uu(e,t).flags|=256),2!==(e=Bu(e,t))&&(t=i,i=n,null!==t)&&Mu(t),e}function Mu(e){null===i?i=e:i.push.apply(i,e)}function zu(e,t){for(t=t&~hu&~pu,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-Dt(t),r=1<<n;e[n]=-1,t&=~r}}function Ru(e){if(0!=(6&D))throw Error(A(327));Qu();var t=jt(e,0);if(0!=(1&t)){var n,r=Bu(e,t);if(1===(r=0!==e.tag&&2===r&&0!==(n=Ft(e))?Lu(e,t=n):r))throw r=fu,Uu(e,0),zu(e,t),Du(e,y()),r;if(6===r)throw Error(A(345));e.finishedWork=e.current.alternate,e.finishedLanes=t,qu(e,i,vu)}return Du(e,y()),null}function ju(e,t){var n=D;D|=1;try{return e(t)}finally{0===(D=n)&&(gu=y()+500,Ha)&&Qa()}}function Au(e){null!==xu&&0===xu.tag&&0==(6&D)&&Qu();var t=D,n=(D|=1,uu.transition),r=k;try{if(uu.transition=null,k=1,e)return e()}finally{k=r,uu.transition=n,0==(6&(D=t))&&Qa()}}function Fu(){cu=su.current,c(su)}function Uu(e,t){e.finishedWork=null,e.finishedLanes=0;var n,r,a,o=e.timeoutHandle;if(-1!==o&&(e.timeoutHandle=-1,ma(o)),null!==I)for(o=I.return;null!==o;){var l=o;switch(io(l),l.tag){case 1:null!=(l=l.type.childContextTypes)&&Fa();break;case 3:tl(),c(b),c(v),ll();break;case 5:rl(l);break;case 4:tl();break;case 13:case 19:c(x);break;case 10:Io(l.type._context);break;case 22:case 23:Fu()}o=o.return}if(I=e=tc((p=e).current,null),L=cu=t,hu=pu=du=M=0,(i=yu=fu=null)!==Ro){for(t=0;t<Ro.length;t++)null!==(l=(o=Ro[t]).interleaved)&&(o.interleaved=null,n=l.next,null!==(r=o.pending)&&(a=r.next,r.next=n,l.next=a),o.pending=l);Ro=null}return e}function $u(e,t){do{var n=I;try{if(Do(),il.current=Ql,sl){for(var r=E.memoizedState;null!==r;){var a=r.queue;null!==a&&(a.pending=null),r=r.next}sl=!1}if(_=P=E=null,fl=!1,dl=cl=0,(iu.current=null)===n||null===n.return){M=1,fu=t,I=null;break}e:{var o=e,l=n.return,i=t;if(t=L,(m=n).flags|=32768,null!==i&&"object"==typeof i&&"function"==typeof i.then){var u,c=i,s=m,f=s.tag,d=(0!=(1&s.mode)||0!==f&&11!==f&&15!==f||((u=s.alternate)?(s.updateQueue=u.updateQueue,s.memoizedState=u.memoizedState,s.lanes=u.lanes):(s.updateQueue=null,s.memoizedState=null)),fi(l));if(null!==d){d.flags&=-257,di(d,l,m,0,t),1&d.mode&&si(o,c,t);var p,i=c,h=(t=d).updateQueue;null===h?((p=new Set).add(i),t.updateQueue=p):h.add(i);break e}if(0==(1&t)){si(o,c,t),Ju();break e}i=Error(A(426))}else if(F&&1&m.mode){var y=fi(l);if(null!==y){0==(65536&y.flags)&&(y.flags|=256),di(y,l,m,0,t),bo(oi(i,m));break e}}o=i=oi(i,m),4!==M&&(M=2),null===yu?yu=[o]:yu.push(o),o=l;do{switch(o.tag){case 3:o.flags|=65536,t&=-t,o.lanes|=t,Wo(o,ui(0,i,t));break e;case 1:var m=i,g=o.type,v=o.stateNode;if(0==(128&o.flags)&&("function"==typeof g.getDerivedStateFromError||null!==v&&"function"==typeof v.componentDidCatch&&(null===ku||!ku.has(v)))){o.flags|=65536,t&=-t,o.lanes|=t,Wo(o,ci(o,m,t));break e}}}while(null!==(o=o.return))}Wu(n)}catch(e){t=e,I===n&&null!==n&&(I=n.return);continue}break}while(1)}function Vu(){var e=lu.current;return lu.current=Ql,null===e?Ql:e}function Ju(){0!==M&&3!==M&&2!==M||(M=4),null===p||0==(268435455&du)&&0==(268435455&pu)||zu(p,L)}function Bu(t,e){var n=D,r=(D|=2,Vu());for(p===t&&L===e||(vu=null,Uu(t,e));;)try{for(;null!==I;)Hu(I);break}catch(e){$u(t,e)}if(Do(),D=n,lu.current=r,null!==I)throw Error(A(261));return p=null,L=0,M}function Hu(e){var t=yc(e.alternate,e,cu);e.memoizedProps=e.pendingProps,null===t?Wu(e):I=t,iu.current=null}function Wu(e){var t=e;do{var n=t.alternate;if(e=t.return,0==(32768&t.flags)){if(null!==(n=function(e,t,n){var r=t.pendingProps;switch(io(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return f(t),null;case 1:return w(t.type)&&Fa(),f(t),null;case 3:return r=t.stateNode,tl(),c(b),c(v),ll(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),null!==e&&null!==e.child||(mo(t)?t.flags|=4:null===e||e.memoizedState.isDehydrated&&0==(256&t.flags)||(t.flags|=1024,null!==co&&(Mu(co),co=null))),f(t),null;case 5:rl(t);var a,o=Zo(Go.current);if(n=t.type,null!==e&&null!=t.stateNode)Ri(e,t,n,r),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(null===t.stateNode)throw Error(A(166));return f(t),null}if(e=Zo(Yo.current),mo(t)){r=t.stateNode,n=t.type;var l,i,u=t.memoizedProps;switch(r[xa]=t,r[Ea]=u,e=0!=(1&t.mode),n){case"dialog":s("cancel",r),s("close",r);break;case"iframe":case"object":case"embed":s("load",r);break;case"video":case"audio":for(o=0;o<Qr.length;o++)s(Qr[o],r);break;case"source":s("error",r);break;case"img":case"image":case"link":s("error",r),s("load",r);break;case"details":s("toggle",r);break;case"input":Pe(r,u),s("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!u.multiple},s("invalid",r);break;case"textarea":Le(r,u),s("invalid",r)}for(l in qe(n,u),o=null,u)u.hasOwnProperty(l)&&(i=u[l],"children"===l?"string"==typeof i?r.textContent!==i&&(!0!==u.suppressHydrationWarning&&sa(r.textContent,i,e),o=["children",i]):"number"==typeof i&&r.textContent!==""+i&&(!0!==u.suppressHydrationWarning&&sa(r.textContent,i,e),o=["children",""+i]):V.hasOwnProperty(l)&&null!=i&&"onScroll"===l&&s("scroll",r));switch(n){case"input":ke(r),Oe(r,u,!0);break;case"textarea":ke(r),ze(r);break;case"select":case"option":break;default:"function"==typeof u.onClick&&(r.onclick=fa)}r=o,null!==(t.updateQueue=r)&&(t.flags|=4)}else{l=9===o.nodeType?o:o.ownerDocument,"http://www.w3.org/1999/xhtml"===(e="http://www.w3.org/1999/xhtml"===e?Re(n):e)?"script"===n?((e=l.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"==typeof r.is?e=l.createElement(n,{is:r.is}):(e=l.createElement(n),"select"===n&&(l=e,r.multiple?l.multiple=!0:r.size&&(l.size=r.size))):e=l.createElementNS(e,n),e[xa]=t,e[Ea]=r,zi(e,t),t.stateNode=e;e:{switch(l=Qe(n,r),n){case"dialog":s("cancel",e),s("close",e),o=r;break;case"iframe":case"object":case"embed":s("load",e),o=r;break;case"video":case"audio":for(o=0;o<Qr.length;o++)s(Qr[o],e);o=r;break;case"source":s("error",e),o=r;break;case"img":case"image":case"link":s("error",e),s("load",e),o=r;break;case"details":s("toggle",e),o=r;break;case"input":Pe(e,r),o=Ee(e,r),s("invalid",e);break;case"option":o=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},o=m({},r,{value:void 0}),s("invalid",e);break;case"textarea":Le(e,r),o=Ie(e,r),s("invalid",e);break;default:o=r}for(u in qe(n,o),i=o)i.hasOwnProperty(u)&&(a=i[u],"style"===u?He(e,a):"dangerouslySetInnerHTML"===u?null!=(a=a?a.__html:void 0)&&Ue(e,a):"children"===u?"string"==typeof a?"textarea"===n&&""===a||$e(e,a):"number"==typeof a&&$e(e,""+a):"suppressContentEditableWarning"!==u&&"suppressHydrationWarning"!==u&&"autoFocus"!==u&&(V.hasOwnProperty(u)?null!=a&&"onScroll"===u&&s("scroll",e):null!=a&&G(e,u,a,l)));switch(n){case"input":ke(e),Oe(e,r,!1);break;case"textarea":ke(e),ze(e);break;case"option":null!=r.value&&e.setAttribute("value",""+be(r.value));break;case"select":e.multiple=!!r.multiple,null!=(u=r.value)?De(e,!!r.multiple,u,!1):null!=r.defaultValue&&De(e,!!r.multiple,r.defaultValue,!0);break;default:"function"==typeof o.onClick&&(e.onclick=fa)}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 f(t),null;case 6:if(e&&null!=t.stateNode)ji(0,t,e.memoizedProps,r);else{if("string"!=typeof r&&null===t.stateNode)throw Error(A(166));if(n=Zo(Go.current),Zo(Yo.current),mo(t)){if(r=t.stateNode,n=t.memoizedProps,r[xa]=t,(u=r.nodeValue!==n)&&null!==(e=uo))switch(e.tag){case 3:sa(r.nodeValue,n,0!=(1&e.mode));break;case 5:!0!==e.memoizedProps.suppressHydrationWarning&&sa(r.nodeValue,n,0!=(1&e.mode))}u&&(t.flags|=4)}else((r=(9===n.nodeType?n:n.ownerDocument).createTextNode(r))[xa]=t).stateNode=r}return f(t),null;case 13:if(c(x),r=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(F&&null!==S&&0!=(1&t.mode)&&0==(128&t.flags))go(),vo(),t.flags|=98560,u=!1;else if(u=mo(t),null!==r&&null!==r.dehydrated){if(null===e){if(!u)throw Error(A(318));if(!(u=null!==(u=t.memoizedState)?u.dehydrated:null))throw Error(A(317));u[xa]=t}else vo(),0==(128&t.flags)&&(t.memoizedState=null),t.flags|=4;f(t),u=!1}else null!==co&&(Mu(co),co=null),u=!0;if(!u)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&x.current)?0===M&&(M=3):Ju()),null!==t.updateQueue&&(t.flags|=4),f(t),null);case 4:return tl(),null===e&&ea(t.stateNode.containerInfo),f(t),null;case 10:return Io(t.type._context),f(t),null;case 17:return w(t.type)&&Fa(),f(t),null;case 19:if(c(x),null===(u=t.memoizedState));else{if(r=0!=(128&t.flags),null===(l=u.rendering))if(r)Mi(u,!1);else{if(0!==M||null!==e&&0!=(128&e.flags))for(e=t.child;null!==e;){if(null!==(l=al(e))){for(t.flags|=128,Mi(u,!1),null!==(r=l.updateQueue)&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;null!==n;)e=r,(u=n).flags&=14680066,null===(l=u.alternate)?(u.childLanes=0,u.lanes=e,u.child=null,u.subtreeFlags=0,u.memoizedProps=null,u.memoizedState=null,u.updateQueue=null,u.dependencies=null,u.stateNode=null):(u.childLanes=l.childLanes,u.lanes=l.lanes,u.child=l.child,u.subtreeFlags=0,u.deletions=null,u.memoizedProps=l.memoizedProps,u.memoizedState=l.memoizedState,u.updateQueue=l.updateQueue,u.type=l.type,e=l.dependencies,u.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return g(x,1&x.current|2),t.child}e=e.sibling}null!==u.tail&&y()>gu&&(t.flags|=128,Mi(u,!(r=!0)),t.lanes=4194304)}else{if(!r)if(null!==(e=al(l))){if(t.flags|=128,r=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.flags|=4),Mi(u,!0),null===u.tail&&"hidden"===u.tailMode&&!l.alternate&&!F)return f(t),null}else 2*y()-u.renderingStartTime>gu&&1073741824!==n&&(t.flags|=128,Mi(u,!(r=!0)),t.lanes=4194304);u.isBackwards?(l.sibling=t.child,t.child=l):(null!==(n=u.last)?n.sibling=l:t.child=l,u.last=l)}if(null!==u.tail)return t=u.tail,u.rendering=t,u.tail=t.sibling,u.renderingStartTime=y(),t.sibling=null,n=x.current,g(x,r?1&n|2:1&n),t}return f(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&cu)&&(f(t),6&t.subtreeFlags)&&(t.flags|=8192):f(t),null;case 24:case 25:return null}throw Error(A(156,t.tag))}(n,t,cu)))return void(I=n)}else{if(null!==(n=function(e,t){switch(io(t),t.tag){case 1:return w(t.type)&&Fa(),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return tl(),c(b),c(v),ll(),0!=(65536&(e=t.flags))&&0==(128&e)?(t.flags=-65537&e|128,t):null;case 5:return rl(t),null;case 13:if(c(x),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(A(340));vo()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return c(x),null;case 4:return tl(),null;case 10:return Io(t.type._context),null;case 22:case 23:return Fu(),null;default:return null}}(n,t)))return n.flags&=32767,void(I=n);if(null===e)return M=6,void(I=null);e.flags|=32768,e.subtreeFlags=0,e.deletions=null}if(null!==(t=t.sibling))return void(I=t)}while(I=t=e,null!==t);0===M&&(M=5)}function qu(e,t,n){var r=k,a=uu.transition;try{uu.transition=null,k=1;for(var o=e,l=t,i=n,u=r;Qu(),null!==xu;);if(0!=(6&D))throw Error(A(327));i=o.finishedWork;var c=o.finishedLanes;if(null!==i){if(o.finishedWork=null,o.finishedLanes=0,i===o.current)throw Error(A(177));o.callbackNode=null,o.callbackPriority=0;var s,f,d=i.lanes|i.childLanes;if(!function(e,t){var n=e.pendingLanes&~t,r=(e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements,e.eventTimes);for(e=e.expirationTimes;0<n;){var a=31-Dt(n),o=1<<a;t[a]=0,r[a]=-1,e[a]=-1,n&=~o}}(o,d),o===p&&(I=p=null,L=0),0==(2064&i.subtreeFlags)&&0==(2064&i.flags)||Su||(Su=!0,Xu(_t,function(){return Qu(),null})),d=0!=(15990&i.flags),0!=(15990&i.subtreeFlags)||d?(d=uu.transition,uu.transition=null,s=k,k=1,f=D,D|=4,iu.current=null,function(e,t){if(da=yn,_r(e=Pr())){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:if((o=(n=(n=e.ownerDocument)&&n.defaultView||window).getSelection&&n.getSelection())&&0!==o.rangeCount){var n=o.anchorNode,r=o.anchorOffset,a=o.focusNode,o=o.focusOffset;try{n.nodeType,a.nodeType}catch(e){n=null;break e}var l,i=0,u=-1,c=-1,s=0,f=0,d=e,p=null;t:for(;;){for(;d!==n||0!==r&&3!==d.nodeType||(u=i+r),d!==a||0!==o&&3!==d.nodeType||(c=i+o),3===d.nodeType&&(i+=d.nodeValue.length),null!==(l=d.firstChild);)p=d,d=l;for(;;){if(d===e)break t;if(p===n&&++s===r&&(u=i),p===a&&++f===o&&(c=i),null!==(l=d.nextSibling))break;p=(d=p).parentNode}d=l}n=-1===u||-1===c?null:{start:u,end:c}}else n=null;n=n||{start:0,end:0}}else n=null;for(yn=!(pa={focusedElem:e,selectionRange:n}),T=t;null!==T;)if(e=(t=T).child,0!=(1028&t.subtreeFlags)&&null!==e)e.return=t,T=e;else for(;null!==T;){t=T;try{var h,y,m,g,v=t.alternate;if(0!=(1024&t.flags))switch(t.tag){case 0:case 11:case 15:break;case 1:null!==v&&(h=v.memoizedProps,y=v.memoizedState,g=(m=t.stateNode).getSnapshotBeforeUpdate(t.elementType===t.type?h:Gl(t.type,h),y),m.__reactInternalSnapshotBeforeUpdate=g);break;case 3:var b=t.stateNode.containerInfo;1===b.nodeType?b.textContent="":9===b.nodeType&&b.documentElement&&b.removeChild(b.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(A(163))}}catch(e){z(t,t.return,e)}if(null!==(e=t.sibling)){e.return=t.return,T=e;break}T=t.return}v=Vi,Vi=!1}(o,i),Zi(i,o),Cr(pa),yn=!!da,pa=da=null,tu(o.current=i,o,c),St(),D=f,k=s,uu.transition=d):o.current=i,Su&&(Su=!1,xu=o,Eu=c),0===(d=o.pendingLanes)&&(ku=null),!function(e){if(Tt&&"function"==typeof Tt.onCommitFiberRoot)try{Tt.onCommitFiberRoot(Nt,e,void 0,128==(128&e.current.flags))}catch(e){}}(i.stateNode),Du(o,y()),null!==l)for(u=o.onRecoverableError,i=0;i<l.length;i++)c=l[i],u(c.value,{componentStack:c.stack,digest:c.digest});if(bu)throw bu=!1,o=wu,wu=null,o;0!=(1&Eu)&&0!==o.tag&&Qu(),0!=(1&(d=o.pendingLanes))?o===_u?Pu++:(Pu=0,_u=o):Pu=0,Qa()}}finally{uu.transition=a,k=r}return null}function Qu(){if(null!==xu){var e=Bt(Eu),t=uu.transition,n=k;try{if(uu.transition=null,k=e<16?16:e,null===xu)var r=!1;else{if(e=xu,xu=null,(Eu=0)!=(6&D))throw Error(A(331));var a=D;for(D|=4,T=e.current;null!==T;){var o=T,l=o.child;if(0!=(16&T.flags)){var i=o.deletions;if(null!==i){for(var u=0;u<i.length;u++){var c=i[u];for(T=c;null!==T;){switch((f=T).tag){case 0:case 11:case 15:Ji(8,f,o)}var s=f.child;if(null!==s)s.return=f,T=s;else for(;null!==T;){var f,d=(f=T).sibling,p=f.return;if(!function e(t){var n=t.alternate;null!==n&&(t.alternate=null,e(n)),t.child=null,t.deletions=null,t.sibling=null,5===t.tag&&null!==(n=t.stateNode)&&(delete n[xa],delete n[Ea],delete n[_a],delete n[Ca],delete n[Oa]),t.stateNode=null,t.return=null,t.dependencies=null,t.memoizedProps=null,t.memoizedState=null,t.pendingProps=null,t.stateNode=null,t.updateQueue=null}(f),f===c){T=null;break}if(null!==d){d.return=p,T=d;break}T=p}}}var h=o.alternate;if(null!==h){var y=h.child;if(null!==y){h.child=null;do{var m=y.sibling}while((y.sibling=null)!==(y=m))}}T=o}}if(0!=(2064&o.subtreeFlags)&&null!==l)l.return=o,T=l;else for(;null!==T;){if(0!=(2048&(o=T).flags))switch(o.tag){case 0:case 11:case 15:Ji(9,o,o.return)}var g=o.sibling;if(null!==g){g.return=o.return,T=g;break}T=o.return}}var v=e.current;for(T=v;null!==T;){var b=(l=T).child;if(0!=(2064&l.subtreeFlags)&&null!==b)b.return=l,T=b;else for(l=v;null!==T;){if(0!=(2048&(i=T).flags))try{switch(i.tag){case 0:case 11:case 15:Bi(9,i)}}catch(e){z(i,i.return,e)}if(i===l){T=null;break}var w=i.sibling;if(null!==w){w.return=i.return,T=w;break}T=i.return}}if(D=a,Qa(),Tt&&"function"==typeof Tt.onPostCommitFiberRoot)try{Tt.onPostCommitFiberRoot(Nt,e)}catch(e){}r=!0}return r}finally{k=n,uu.transition=t}}}function Ku(e,t,n){e=Bo(e,t=ui(0,t=oi(n,t),1),1),t=h(),null!==e&&(Vt(e,1,t),Du(e,t))}function z(e,t,n){if(3===e.tag)Ku(e,e,n);else for(;null!==t;){if(3===t.tag){Ku(t,e,n);break}if(1===t.tag){var r=t.stateNode;if("function"==typeof t.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===ku||!ku.has(r))){t=Bo(t,e=ci(t,e=oi(n,e),1),1),e=h(),null!==t&&(Vt(t,1,e),Du(t,e));break}}t=t.return}}function Yu(e,t){0===t&&(0==(1&e.mode)?t=1:(t=zt,0==(130023424&(zt<<=1))&&(zt=4194304)));var n=h();null!==(e=Fo(e,t))&&(Vt(e,t,n),Du(e,n))}function Xu(e,t){return bt(e,t)}function Gu(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 Zu(e,t,n,r){return new Gu(e,t,n,r)}function ec(e){return(e=e.prototype)&&e.isReactComponent}function tc(e,t){var n=e.alternate;return null===n?((n=Zu(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,(n.alternate=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 nc(e,t,n,r,a,o){var l=2;if("function"==typeof(r=e))ec(e)&&(l=1);else if("string"==typeof e)l=5;else e:switch(e){case te:return rc(n.children,a,o,t);case ne:a|=l=8;break;case re:return(e=Zu(12,n,t,2|a)).elementType=re,e.lanes=o,e;case ie:return(e=Zu(13,n,t,a)).elementType=ie,e.lanes=o,e;case ue:return(e=Zu(19,n,t,a)).elementType=ue,e.lanes=o,e;case fe:return ac(n,a,o,t);default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case ae:l=10;break e;case oe:l=9;break e;case le:l=11;break e;case ce:l=14;break e;case se:l=16,r=null;break e}throw Error(A(130,null==e?e:typeof e,""))}return(t=Zu(l,n,t,a)).elementType=e,t.type=r,t.lanes=o,t}function rc(e,t,n,r){return(e=Zu(7,e,r,t)).lanes=n,e}function ac(e,t,n,r){return(e=Zu(22,e,r,t)).elementType=fe,e.lanes=n,e.stateNode={isHidden:!1},e}function oc(e,t,n){return(e=Zu(6,e,null,t)).lanes=n,e}function lc(e,t,n){return(t=Zu(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function ic(e,t,n,r,a){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=$t(0),this.expirationTimes=$t(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=$t(0),this.identifierPrefix=r,this.onRecoverableError=a,this.mutableSourceEagerHydrationData=null}function uc(e,t,n,r,a,o,l,i,u){return e=new ic(e,t,0,i,u),1===t?(t=1,!0===o&&(t|=8)):t=0,o=Zu(3,null,null,t),(e.current=o).stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},$o(o),e}function cc(e){if(!e)return Ra;e:{if(yt(e=e._reactInternals)!==e||1!==e.tag)throw Error(A(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(w(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}}while(null!==(t=t.return));throw Error(A(171))}if(1===e.tag){var n=e.type;if(w(n))return $a(e,n,t)}return t}function sc(e,t,n,r,a,o,l,i,u){return(e=uc(n,r,!0,e,0,o,0,i,u)).context=cc(null),n=e.current,(o=Jo(r=h(),a=Nu(n))).callback=null!=t?t:null,Bo(n,o,a),e.current.lanes=a,Vt(e,a,r),Du(e,r),e}function fc(e,t,n,r){var a=t.current,o=h(),l=Nu(a);n=cc(n),null===t.context?t.context=n:t.pendingContext=n,(t=Jo(o,l)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),null!==(e=Bo(a,t,l))&&(Tu(e,a,l,o),Ho(e,a,l))}function dc(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function pc(e,t){var n;null!==(e=e.memoizedState)&&null!==e.dehydrated&&(n=e.retryLane,e.retryLane=0!==n&&n<t?n:t)}function hc(e,t){pc(e,t),(e=e.alternate)&&pc(e,t)}var yc=function(e,t,n){if(null!==e)if(e.memoizedProps!==t.pendingProps||b.current)C=!0;else{if(0==(e.lanes&n)&&0==(128&t.flags)){C=!1;{var r=e;var a=t;var o=n;switch(a.tag){case 3:Si(a),vo();break;case 5:nl(a);break;case 1:w(a.type)&&Va(a);break;case 4:el(a,a.stateNode.containerInfo);break;case 10:var l=a.type._context,i=a.memoizedProps.value;g(Co,l._currentValue),l._currentValue=i;break;case 13:if(null!==(l=a.memoizedState))return null!==l.dehydrated?(g(x,1&x.current),a.flags|=128,null):0!=(o&a.child.childLanes)?_i(r,a,o):(g(x,1&x.current),null!==(r=Li(r,a,o))?r.sibling:null);g(x,1&x.current);break;case 19:if(l=0!=(o&a.childLanes),0!=(128&r.flags)){if(l)return Di(r,a,o);a.flags|=128}if(null!==(i=a.memoizedState)&&(i.rendering=null,i.tail=null,i.lastEffect=null),g(x,x.current),l)break;return null;case 22:case 23:return a.lanes=0,gi(r,a,o)}return Li(r,a,o);return}}C=0!=(131072&e.flags)}else C=!1,F&&0!=(1048576&t.flags)&&oo(t,Ga,t.index);switch(t.lanes=0,t.tag){case 2:var u=t.type,c=(Ii(e,t),e=t.pendingProps,Aa(t,v.current)),s=(Mo(t,n),c=yl(null,t,u,e,c,n),ml());return t.flags|=1,t="object"==typeof c&&null!==c&&"function"==typeof c.render&&void 0===c.$$typeof?(t.tag=1,t.memoizedState=null,t.updateQueue=null,w(u)?(s=!0,Va(t)):s=!1,t.memoizedState=null!==c.state&&void 0!==c.state?c.state:null,$o(t),c.updater=ei,ai((t.stateNode=c)._reactInternals=t,u,e,n),ki(null,t,u,!0,s,n)):(t.tag=0,F&&s&&lo(t),O(null,t,c,n),t.child);case 16:u=t.elementType;e:{switch(Ii(e,t),e=t.pendingProps,u=(c=u._init)(u._payload),t.type=u,c=t.tag=function(e){if("function"==typeof e)return ec(e)?1:0;if(null!=e){if((e=e.$$typeof)===le)return 11;if(e===ce)return 14}return 2}(u),e=Gl(u,e),c){case 0:t=bi(null,t,u,e,n);break e;case 1:t=wi(null,t,u,e,n);break e;case 11:t=hi(null,t,u,e,n);break e;case 14:t=yi(null,t,u,Gl(u.type,e),n);break e}throw Error(A(306,u,""))}return t;case 0:return u=t.type,c=t.pendingProps,bi(e,t,u,c=t.elementType===u?c:Gl(u,c),n);case 1:return u=t.type,c=t.pendingProps,wi(e,t,u,c=t.elementType===u?c:Gl(u,c),n);case 3:e:{if(Si(t),null===e)throw Error(A(387));u=t.pendingProps,c=(s=t.memoizedState).element,Vo(e,t),qo(t,u,null,n);var f=t.memoizedState,u=f.element;if(s.isDehydrated){if(s={element:u,isDehydrated:!1,cache:f.cache,pendingSuspenseBoundaries:f.pendingSuspenseBoundaries,transitions:f.transitions},t.updateQueue.baseState=s,t.memoizedState=s,256&t.flags){t=xi(e,t,u,n,c=oi(Error(A(423)),t));break e}if(u!==c){t=xi(e,t,u,n,c=oi(Error(A(424)),t));break e}for(S=ka(t.stateNode.containerInfo.firstChild),F=!0,n=_o(uo=t,co=null,u,n),t.child=n;n;)n.flags=-3&n.flags|4096,n=n.sibling}else{if(vo(),u===c){t=Li(e,t,n);break e}O(e,t,u,n)}t=t.child}return t;case 5:return nl(t),null===e&&ho(t),u=t.type,c=t.pendingProps,s=null!==e?e.memoizedProps:null,f=c.children,ha(u,c)?f=null:null!==s&&ha(u,s)&&(t.flags|=32),vi(e,t),O(e,t,f,n),t.child;case 6:return null===e&&ho(t),null;case 13:return _i(e,t,n);case 4:return el(t,t.stateNode.containerInfo),u=t.pendingProps,null===e?t.child=Po(t,null,u,n):O(e,t,u,n),t.child;case 11:return u=t.type,c=t.pendingProps,hi(e,t,u,c=t.elementType===u?c:Gl(u,c),n);case 7:return O(e,t,t.pendingProps,n),t.child;case 8:case 12:return O(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(u=t.type._context,c=t.pendingProps,s=t.memoizedProps,f=c.value,g(Co,u._currentValue),u._currentValue=f,null!==s)if(kr(s.value,f)){if(s.children===c.children&&!b.current){t=Li(e,t,n);break e}}else for(null!==(s=t.child)&&(s.return=t);null!==s;){var d=s.dependencies;if(null!==d)for(var p,h,f=s.child,y=d.firstContext;null!==y;){if(y.context===u){1===s.tag&&((y=Jo(-1,n&-n)).tag=2,null!==(p=s.updateQueue))&&(null===(h=(p=p.shared).pending)?y.next=y:(y.next=h.next,h.next=y),p.pending=y),s.lanes|=n,null!==(y=s.alternate)&&(y.lanes|=n),Lo(s.return,n,t),d.lanes|=n;break}y=y.next}else if(10===s.tag)f=s.type===t.type?null:s.child;else if(18===s.tag){if(null===(f=s.return))throw Error(A(341));f.lanes|=n,null!==(d=f.alternate)&&(d.lanes|=n),Lo(f,n,t),f=s.sibling}else f=s.child;if(null!==f)f.return=s;else for(f=s;null!==f;){if(f===t){f=null;break}if(null!==(s=f.sibling)){s.return=f.return,f=s;break}f=f.return}s=f}O(e,t,c.children,n),t=t.child}return t;case 9:return c=t.type,u=t.pendingProps.children,Mo(t,n),u=u(c=zo(c)),t.flags|=1,O(e,t,u,n),t.child;case 14:return c=Gl(u=t.type,t.pendingProps),yi(e,t,u,c=Gl(u.type,c),n);case 15:return mi(e,t,t.type,t.pendingProps,n);case 17:return u=t.type,c=t.pendingProps,c=t.elementType===u?c:Gl(u,c),Ii(e,t),t.tag=1,w(u)?(e=!0,Va(t)):e=!1,Mo(t,n),ni(t,u,c),ai(t,u,c,n),ki(null,t,u,!0,e,n);case 19:return Di(e,t,n);case 22:return gi(e,t,n)}throw Error(A(156,t.tag))},mc="function"==typeof reportError?reportError:function(e){};function gc(e){this._internalRoot=e}function vc(e){this._internalRoot=e}function bc(e){return e&&(1===e.nodeType||9===e.nodeType||11===e.nodeType)}function wc(e){return e&&(1===e.nodeType||9===e.nodeType||11===e.nodeType||8===e.nodeType&&" react-mount-point-unstable "===e.nodeValue)}function kc(){}function Sc(e,t,n,r,a){var o,l,i=n._reactRootContainer;return i?("function"==typeof a&&(l=a,a=function(){var e=dc(o);l.call(e)}),fc(t,o=i,e,a)):o=function(e,t,n,r,a){var o,l,i;if(a)return"function"==typeof r&&(o=r,r=function(){var e=dc(l);o.call(e)}),l=sc(t,r,e,0,null,!1,0,"",kc),e._reactRootContainer=l,e[Pa]=l.current,ea(8===e.nodeType?e.parentNode:e),Au(),l;for(;a=e.lastChild;)e.removeChild(a);"function"==typeof r&&(i=r,r=function(){var e=dc(u);i.call(e)});var u=uc(e,0,!1,null,0,!1,0,"",kc);return e._reactRootContainer=u,e[Pa]=u.current,ea(8===e.nodeType?e.parentNode:e),Au(function(){fc(t,u,n,r)}),u}(n,t,e,a,r),dc(o)}vc.prototype.render=gc.prototype.render=function(e){var t=this._internalRoot;if(null===t)throw Error(A(409));fc(e,t,null,null)},vc.prototype.unmount=gc.prototype.unmount=function(){var e,t=this._internalRoot;null!==t&&(this._internalRoot=null,e=t.containerInfo,Au(function(){fc(null,t,null,null)}),e[Pa]=null)},vc.prototype.unstable_scheduleHydration=function(e){if(e){var t=Qt();e={blockedOn:null,target:e,priority:t};for(var n=0;n<rn.length&&0!==t&&t<rn[n].priority;n++);rn.splice(n,0,e),0===n&&un(e)}},Ht=function(n){switch(n.tag){case 3:var e,t=n.stateNode;t.current.memoizedState.isDehydrated&&0!==(e=Rt(t.pendingLanes))&&(Jt(t,1|e),Du(t,y()),0==(6&D))&&(gu=y()+500,Qa());break;case 13:Au(function(){var e,t=Fo(n,1);null!==t&&(e=h(),Tu(t,n,1,e))}),hc(n,1)}},Wt=function(e){var t;13===e.tag&&(null!==(t=Fo(e,134217728))&&Tu(t,e,134217728,h()),hc(e,134217728))},qt=function(e){var t,n;13===e.tag&&(null!==(n=Fo(e,t=Nu(e)))&&Tu(n,e,t,h()),hc(e,t))},Qt=function(){return k},Kt=function(e,t){var n=k;try{return k=e,t()}finally{k=n}},at=Au;e={usingClientEntryPoint:!(Xe=function(e,t,n){switch(t){case"input":if(Ce(e,n),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var a=Ia(r);if(!a)throw Error(A(90));Se(r),Ce(r,a)}}}break;case"textarea":Me(e,n);break;case"select":null!=(t=n.value)&&De(e,!!n.multiple,t,!1)}}),Events:[Ta,Da,Ia,tt,nt,rt=ju]},t={findFiberByHostInstance:Na,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},R={bundleType:t.bundleType,version:t.version,rendererPackageName:t.rendererPackageName,rendererConfig:t.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:j.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=vt(e))?null:e.stateNode},findFiberByHostInstance:t.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){r=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!r.isDisabled&&r.supportsFiber)try{Nt=r.inject(R),Tt=r}catch(e){}}u.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=e,u.createPortal=function(e,t){if(bc(t))return function(e,t,n,r){return{$$typeof:ee,key:null==(r=3<arguments.length&&void 0!==r?r:null)?null:""+r,children:e,containerInfo:t,implementation:n}}(e,t,null,2<arguments.length&&void 0!==arguments[2]?arguments[2]:null);throw Error(A(200))},u.createRoot=function(e,t){var n,r,a;if(bc(e))return n=!1,r="",a=mc,null!=t&&(!0===t.unstable_strictMode&&(n=!0),void 0!==t.identifierPrefix&&(r=t.identifierPrefix),void 0!==t.onRecoverableError)&&(a=t.onRecoverableError),t=uc(e,1,!1,null,0,n,0,r,a),e[Pa]=t.current,ea(8===e.nodeType?e.parentNode:e),new gc(t);throw Error(A(299))},u.findDOMNode=function(e){if(null==e)return null;if(1!==e.nodeType){var t=e._reactInternals;if(void 0===t){if("function"==typeof e.render)throw Error(A(188));throw e=Object.keys(e).join(","),Error(A(268,e))}e=null===(e=vt(t))?null:e.stateNode}return e},u.flushSync=Au,u.hydrate=function(e,t,n){if(wc(t))return Sc(null,e,t,!0,n);throw Error(A(200))},u.hydrateRoot=function(e,t,n){if(!bc(e))throw Error(A(405));var r=null!=n&&n.hydratedSources||null,a=!1,o="",l=mc;if(null!=n&&(!0===n.unstable_strictMode&&(a=!0),void 0!==n.identifierPrefix&&(o=n.identifierPrefix),void 0!==n.onRecoverableError)&&(l=n.onRecoverableError),t=sc(t,null,e,1,null!=n?n:null,a,0,o,l),e[Pa]=t.current,ea(e),r)for(e=0;e<r.length;e++)a=(a=(n=r[e])._getVersion)(n._source),null==t.mutableSourceEagerHydrationData?t.mutableSourceEagerHydrationData=[n,a]:t.mutableSourceEagerHydrationData.push(n,a);return new vc(t)},u.render=function(e,t,n){if(wc(t))return Sc(null,e,t,!1,n);throw Error(A(200))},u.unmountComponentAtNode=function(e){if(wc(e))return!!e._reactRootContainer&&(Au(function(){Sc(null,null,e,!1,function(){e._reactRootContainer=null,e[Pa]=null})}),!0);throw Error(A(40))},u.unstable_batchedUpdates=ju,u.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!wc(n))throw Error(A(200));if(null==e||void 0===e._reactInternals)throw Error(A(38));return Sc(e,t,n,!1,r)},u.version="18.3.1-next-f1338f8080-20240426"},41862:(e,t,n)=>{n=n(10237);t.createRoot=n.createRoot,t.hydrateRoot=n.hydrateRoot},10237:(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){}}(),e.exports=n(55659)},88997:(e,t)=>{
/** @license React v16.13.1
 * react-is.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */
var n="function"==typeof Symbol&&Symbol.for,r=n?Symbol.for("react.element"):60103,a=n?Symbol.for("react.portal"):60106,o=n?Symbol.for("react.fragment"):60107,l=n?Symbol.for("react.strict_mode"):60108,i=n?Symbol.for("react.profiler"):60114,u=n?Symbol.for("react.provider"):60109,c=n?Symbol.for("react.context"):60110,s=n?Symbol.for("react.async_mode"):60111,f=n?Symbol.for("react.concurrent_mode"):60111,d=n?Symbol.for("react.forward_ref"):60112,p=n?Symbol.for("react.suspense"):60113,h=n?Symbol.for("react.suspense_list"):60120,y=n?Symbol.for("react.memo"):60115,m=n?Symbol.for("react.lazy"):60116,g=n?Symbol.for("react.block"):60121,v=n?Symbol.for("react.fundamental"):60117,b=n?Symbol.for("react.responder"):60118,w=n?Symbol.for("react.scope"):60119;function k(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case s:case f:case o:case i:case l:case p:return e;default:switch(e=e&&e.$$typeof){case c:case d:case m:case y:case u:return e;default:return t}}case a:return t}}}function S(e){return k(e)===f}t.AsyncMode=s,t.ConcurrentMode=f,t.ContextConsumer=c,t.ContextProvider=u,t.Element=r,t.ForwardRef=d,t.Fragment=o,t.Lazy=m,t.Memo=y,t.Portal=a,t.Profiler=i,t.StrictMode=l,t.Suspense=p,t.isAsyncMode=function(e){return S(e)||k(e)===s},t.isConcurrentMode=S,t.isContextConsumer=function(e){return k(e)===c},t.isContextProvider=function(e){return k(e)===u},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return k(e)===d},t.isFragment=function(e){return k(e)===o},t.isLazy=function(e){return k(e)===m},t.isMemo=function(e){return k(e)===y},t.isPortal=function(e){return k(e)===a},t.isProfiler=function(e){return k(e)===i},t.isStrictMode=function(e){return k(e)===l},t.isSuspense=function(e){return k(e)===p},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===o||e===f||e===i||e===l||e===p||e===h||"object"==typeof e&&null!==e&&(e.$$typeof===m||e.$$typeof===y||e.$$typeof===u||e.$$typeof===c||e.$$typeof===d||e.$$typeof===v||e.$$typeof===b||e.$$typeof===w||e.$$typeof===g)},t.typeOf=k},11417:(e,t,n)=>{e.exports=n(88997)},14359:(e,t)=>{var n,r=60103,a=60106,o=60107,l=60108,i=60114,u=60109,c=60110,s=60112,f=60113,d=60120,p=60115,h=60116;
/** @license React v17.0.2
 * react-is.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */function y(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case o:case i:case l:case f:case d:return e;default:switch(e=e&&e.$$typeof){case c:case s:case h:case p:case u:return e;default:return t}}case a:return t}}}"function"==typeof Symbol&&Symbol.for&&(r=(n=Symbol.for)("react.element"),a=n("react.portal"),o=n("react.fragment"),l=n("react.strict_mode"),i=n("react.profiler"),u=n("react.provider"),c=n("react.context"),s=n("react.forward_ref"),f=n("react.suspense"),d=n("react.suspense_list"),p=n("react.memo"),h=n("react.lazy"),n("react.block"),n("react.server.block"),n("react.fundamental"),n("react.debug_trace_mode"),n("react.legacy_hidden"));t.isContextConsumer=function(e){return y(e)===c}},54611:(e,t,n)=>{e.exports=n(14359)},15578:(x,e,t)=>{t.d(e,{Kq:()=>r,Ng:()=>H,wA:()=>K,d4:()=>X});var _=t(8376),s=_.createContext(null);function u(){return n}var n=function(e){e()};var a={notify:function(){},get:function(){return[]}};function C(t,n){var o,l=a;function i(){e.onStateChange&&e.onStateChange()}function r(){var e,r,a;o||(o=n?n.addNestedSub(i):t.subscribe(i),e=u(),a=r=null,l={clear:function(){a=r=null},notify:function(){e(function(){for(var e=r;e;)e.callback(),e=e.next})},get:function(){for(var e=[],t=r;t;)e.push(t),t=t.next;return e},subscribe:function(e){var t=!0,n=a={callback:e,next:null,prev:a};return n.prev?n.prev.next=n:r=n,function(){t&&null!==r&&(t=!1,n.next?n.next.prev=n.prev:a=n.prev,n.prev?n.prev.next=n.next:r=n.next)}}})}var e={addNestedSub:function(e){return r(),l.subscribe(e)},notifyNestedSubs:function(){l.notify()},handleChangeWrapper:i,isSubscribed:function(){return Boolean(o)},trySubscribe:r,tryUnsubscribe:function(){o&&(o(),o=void 0,l.clear(),l=a)},getListeners:function(){return l}};return e}var p="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?_.useLayoutEffect:_.useEffect;const r=function(e){var t=e.store,n=e.context,e=e.children,r=(0,_.useMemo)(function(){var e=C(t);return{store:t,subscription:e}},[t]),a=(0,_.useMemo)(function(){return t.getState()},[t]),n=(p(function(){var e=r.subscription;return e.onStateChange=e.notifyNestedSubs,e.trySubscribe(),a!==t.getState()&&e.notifyNestedSubs(),function(){e.tryUnsubscribe(),e.onStateChange=null}},[r,a]),n||s);return _.createElement(n.Provider,{value:r},e)};function O(){return(O=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n,r=arguments[t];for(n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function N(e,t){if(null==e)return{};var n,r={};for(n in e)!Object.prototype.hasOwnProperty.call(e,n)||0<=t.indexOf(n)||(r[n]=e[n]);return r}var e=t(80881),f=t.n(e),T=t(54611),d=["getDisplayName","methodName","renderCountProp","shouldHandleStateChanges","storeKey","withRef","forwardRef","context"],D=["reactReduxForwardedRef"],I=[],L=[null,null];function M(e,t){e=e[1];return[t.payload,e+1]}function z(e,t,n){p(function(){return e.apply(void 0,t)},n)}function R(e,t,n,r,a,o,l){e.current=r,t.current=a,n.current=!1,o.current&&(o.current=null,l())}function j(e,r,t,a,o,l,i,u,c,s){var f,d;if(e)return f=!1,d=null,t.onStateChange=e=function(){if(!f){var e,t,n=r.getState();try{e=a(n,o.current)}catch(e){d=t=e}t||(d=null),e===l.current?i.current||c():(l.current=e,u.current=e,i.current=!0,s({type:"STORE_UPDATED",payload:{error:t}}))}},t.trySubscribe(),e(),function(){if(f=!0,t.tryUnsubscribe(),t.onStateChange=null,d)throw d}}var A=function(){return[null,0]};function o(x,e){var e=e=void 0===e?{}:e,t=e.getDisplayName,a=void 0===t?function(e){return"ConnectAdvanced("+e+")"}:t,t=e.methodName,o=void 0===t?"connectAdvanced":t,t=e.renderCountProp,l=void 0===t?void 0:t,t=e.shouldHandleStateChanges,E=void 0===t||t,t=e.storeKey,i=void 0===t?"store":t,t=(e.withRef,e.forwardRef),u=void 0!==t&&t,t=e.context,t=void 0===t?s:t,c=N(e,d),P=t;return function(w){var e=w.displayName||w.name||"Component",t=a(e),k=O({},c,{getDisplayName:a,methodName:o,renderCountProp:l,shouldHandleStateChanges:E,storeKey:i,displayName:t,wrappedComponentName:e,WrappedComponent:w}),e=c.pure;var S=e?_.useMemo:function(e){return e()};function n(n){var e=(0,_.useMemo)(function(){var e=n.reactReduxForwardedRef,t=N(n,D);return[n.context,e,t]},[n]),t=e[0],r=e[1],a=e[2],o=(0,_.useMemo)(function(){return t&&t.Consumer&&(0,T.isContextConsumer)(_.createElement(t.Consumer,null))?t:P},[t,P]),l=(0,_.useContext)(o),i=Boolean(n.store)&&Boolean(n.store.getState)&&Boolean(n.store.dispatch),u=(Boolean(l)&&Boolean(l.store),(i?n:l).store),c=(0,_.useMemo)(function(){return x(u.dispatch,k)},[u]),e=(0,_.useMemo)(function(){var e,t;return E?(t=(e=C(u,i?null:l.subscription)).notifyNestedSubs.bind(e),[e,t]):L},[u,i,l]),s=e[0],e=e[1],f=(0,_.useMemo)(function(){return i?l:O({},l,{subscription:s})},[i,l,s]),d=(0,_.useReducer)(M,I,A),p=d[0][0],d=d[1];if(p&&p.error)throw p.error;var h=(0,_.useRef)(),y=(0,_.useRef)(a),m=(0,_.useRef)(),g=(0,_.useRef)(!1),v=S(function(){return m.current&&a===y.current?m.current:c(u.getState(),a)},[u,p,a]),b=(z(R,[y,h,g,a,v,m,e]),z(j,[E,u,s,c,y,h,g,m,e,d],[u,s,c]),(0,_.useMemo)(function(){return _.createElement(w,O({},v,{ref:r}))},[r,w,v]));return(0,_.useMemo)(function(){return E?_.createElement(o.Provider,{value:f},b):b},[o,b,f])}var r=e?_.memo(n):n;return r.WrappedComponent=w,r.displayName=n.displayName=t,u?((e=_.forwardRef(function(e,t){return _.createElement(r,O({},e,{reactReduxForwardedRef:t}))})).displayName=t,e.WrappedComponent=w,f()(e,w)):f()(r,w)}}function l(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!=e&&t!=t}function y(e,t){if(!l(e,t)){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(var a=0;a<n.length;a++)if(!Object.prototype.hasOwnProperty.call(t,n[a])||!l(e[n[a]],t[n[a]]))return!1}return!0}function i(n,r){var e,a={};for(e in n)!function(e){var t=n[e];"function"==typeof t&&(a[e]=function(){return r(t.apply(void 0,arguments))})}(e);return a}function c(a){return function(e,t){var n=a(e,t);function r(){return n}return r.dependsOnOwnProps=!1,r}}function h(e){return null!==e.dependsOnOwnProps&&void 0!==e.dependsOnOwnProps?Boolean(e.dependsOnOwnProps):1!==e.length}function m(a){return function(e,t){t.displayName;var r=function(e,t){return r.dependsOnOwnProps?r.mapToProps(e,t):r.mapToProps(e)};return r.dependsOnOwnProps=!0,r.mapToProps=function(e,t){r.mapToProps=a,r.dependsOnOwnProps=h(a);var n=r(e,t);return"function"==typeof n&&(r.mapToProps=n,r.dependsOnOwnProps=h(n),n=r(e,t)),n},r}}const g=[function(e){return"function"==typeof e?m(e):void 0},function(e){return e?void 0:c(function(e){return{dispatch:e}})},function(t){return t&&"object"==typeof t?c(function(e){return i(t,e)}):void 0}];const v=[function(e){return"function"==typeof e?m(e):void 0},function(e){return e?void 0:c(function(){return{}})}];function b(e,t,n){return O({},n,e,t)}const E=[function(e){return"function"==typeof e?(i=e,function(e,t){t.displayName;var r,a=t.pure,o=t.areMergedPropsEqual,l=!1;return function(e,t,n){e=i(e,t,n);return l?a&&o(e,r)||(r=e):(l=!0,r=e),r}}):void 0;var i},function(e){return e?void 0:function(){return b}}];var P=["initMapStateToProps","initMapDispatchToProps","initMergeProps"];function F(n,r,a,o){return function(e,t){return a(n(e,t),r(o,t),t)}}function U(a,o,l,i,e){var u,c,s,f,d,p=e.areStatesEqual,h=e.areOwnPropsEqual,y=e.areStatePropsEqual,n=!1;function r(e,t){var n=!h(t,c),r=!p(e,u,t,c);return u=e,c=t,n&&r?(s=a(u,c),o.dependsOnOwnProps&&(f=o(i,c)),d=l(s,f,c)):n?(a.dependsOnOwnProps&&(s=a(u,c)),o.dependsOnOwnProps&&(f=o(i,c)),d=l(s,f,c)):r?(e=a(u,c),t=!y(e,s),s=e,d=t?l(s,f,c):d):d}return function(e,t){return n?r(e,t):(s=a(u=e,c=t),f=o(i,c),d=l(s,f,c),n=!0,d)}}function $(e,t){var n=t.initMapStateToProps,r=t.initMapDispatchToProps,a=t.initMergeProps,t=N(t,P),n=n(e,t),r=r(e,t),a=a(e,t);return(t.pure?U:F)(n,r,a,e,t)}var V=["pure","areStatesEqual","areOwnPropsEqual","areStatePropsEqual","areMergedPropsEqual"];function w(n,e,r){for(var t=e.length-1;0<=t;t--){var a=e[t](n);if(a)return a}return function(e,t){throw new Error("Invalid value of type "+typeof n+" for "+r+" argument when connecting component "+t.wrappedComponentName+".")}}function J(e,t){return e===t}function B(e){var e=void 0===e?{}:e,t=e.connectHOC,s=void 0===t?o:t,t=e.mapStateToPropsFactories,f=void 0===t?v:t,t=e.mapDispatchToPropsFactories,d=void 0===t?g:t,t=e.mergePropsFactories,p=void 0===t?E:t,t=e.selectorFactory,h=void 0===t?$:t;return function(e,t,n,r){var r=r=void 0===r?{}:r,a=r.pure,a=void 0===a||a,o=r.areStatesEqual,o=void 0===o?J:o,l=r.areOwnPropsEqual,l=void 0===l?y:l,i=r.areStatePropsEqual,i=void 0===i?y:i,u=r.areMergedPropsEqual,u=void 0===u?y:u,r=N(r,V),c=w(e,f,"mapStateToProps"),t=w(t,d,"mapDispatchToProps"),n=w(n,p,"mergeProps");return s(h,O({methodName:"connect",getDisplayName:function(e){return"Connect("+e+")"},shouldHandleStateChanges:Boolean(e),initMapStateToProps:c,initMapDispatchToProps:t,initMergeProps:n,pure:a,areStatesEqual:o,areOwnPropsEqual:l,areStatePropsEqual:i,areMergedPropsEqual:u},r))}}const H=B();function k(){return(0,_.useContext)(s)}function S(e){var t=(e=void 0===e?s:e)===s?k:function(){return(0,_.useContext)(e)};return function(){return t().store}}var W=S();function q(e){var t=(e=void 0===e?s:e)===s?W:S(e);return function(){return t().dispatch}}function Q(e,t){return e===t}var K=q();function Y(e){var r=(e=void 0===e?s:e)===s?k:function(){return(0,_.useContext)(e)};return function(e,t){void 0===t&&(t=Q);var n=r(),e=function(e,n,r,t){var a,o,l=(0,_.useReducer)(function(e){return e+1},0)[1],i=(0,_.useMemo)(function(){return C(r,t)},[r,t]),u=(0,_.useRef)(),c=(0,_.useRef)(),s=(0,_.useRef)(),f=(0,_.useRef)(),d=r.getState();try{o=e===c.current&&d===s.current&&!u.current||(a=e(d),void 0!==f.current&&n(a,f.current))?f.current:a}catch(e){throw u.current&&(e.message+="\nThe error may be correlated with this previous error:\n"+u.current.stack+"\n\n"),e}return p(function(){c.current=e,s.current=d,f.current=o,u.current=void 0}),p(function(){function e(){try{var e=r.getState();if(e===s.current)return;var t=c.current(e);if(n(t,f.current))return;f.current=t,s.current=e}catch(e){u.current=e}l()}return i.onStateChange=e,i.trySubscribe(),e(),function(){return i.tryUnsubscribe()}},[r,i]),o}(e,t,n.store,n.subscription);return(0,_.useDebugValue)(e),e}}var X=Y(),e=t(10237);t=e.unstable_batchedUpdates,n=t},88699:(e,t)=>{
/**
 * @license React
 * react.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */
var f=Symbol.for("react.element"),d=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),o=Symbol.for("react.provider"),l=Symbol.for("react.context"),i=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),c=Symbol.for("react.memo"),s=Symbol.for("react.lazy"),p=Symbol.iterator;var h={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},y=Object.assign,m={};function g(e,t,n){this.props=e,this.context=t,this.refs=m,this.updater=n||h}function v(){}function b(e,t,n){this.props=e,this.context=t,this.refs=m,this.updater=n||h}g.prototype.isReactComponent={},g.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},g.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},v.prototype=g.prototype;var w=b.prototype=new v,k=(w.constructor=b,y(w,g.prototype),w.isPureReactComponent=!0,Array.isArray),S=Object.prototype.hasOwnProperty,x={current:null},E={key:!0,ref:!0,__self:!0,__source:!0};function P(e,t,n){var r,a={},o=null,l=null;if(null!=t)for(r in void 0!==t.ref&&(l=t.ref),void 0!==t.key&&(o=""+t.key),t)S.call(t,r)&&!E.hasOwnProperty(r)&&(a[r]=t[r]);var i=arguments.length-2;if(1===i)a.children=n;else if(1<i){for(var u=Array(i),c=0;c<i;c++)u[c]=arguments[c+2];a.children=u}if(e&&e.defaultProps)for(r in i=e.defaultProps)void 0===a[r]&&(a[r]=i[r]);return{$$typeof:f,type:e,key:o,ref:l,props:a,_owner:x.current}}function _(e){return"object"==typeof e&&null!==e&&e.$$typeof===f}var C=/\/+/g;function O(e,t){return"object"==typeof e&&null!==e&&null!=e.key?(e=""+e.key,n={"=":"=0",":":"=2"},"$"+e.replace(/[=:]/g,function(e){return n[e]})):t.toString(36);var n}function N(e,t,n,r,a){var o,l,i=!1;if(null===(e="undefined"!==(c=typeof e)&&"boolean"!==c?e:null))i=!0;else switch(c){case"string":case"number":i=!0;break;case"object":switch(e.$$typeof){case f:case d:i=!0}}if(i)return a=a(i=e),e=""===r?"."+O(i,0):r,k(a)?(n="",N(a,t,n=null!=e?e.replace(C,"$&/")+"/":n,"",function(e){return e})):null!=a&&(_(a)&&(l=n+(!(o=a).key||i&&i.key===a.key?"":(""+a.key).replace(C,"$&/")+"/")+e,a={$$typeof:f,type:o.type,key:l,ref:o.ref,props:o.props,_owner:o._owner}),t.push(a)),1;if(i=0,r=""===r?".":r+":",k(e))for(var u=0;u<e.length;u++){var c,s=r+O(c=e[u],u);i+=N(c,t,n,s,a)}else if("function"==typeof(s=null!==(l=e)&&"object"==typeof l&&"function"==typeof(l=p&&l[p]||l["@@iterator"])?l:null))for(e=s.call(e),u=0;!(c=e.next()).done;)i+=N(c=c.value,t,n,s=r+O(c,u++),a);else if("object"===c)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 i}function T(e,t,n){var r;return null==e||(r=0,N(e,e=[],"","",function(e){return t.call(n,e,r++)})),e}function D(t){var e;if(-1===t._status&&((e=(e=t._result)()).then(function(e){0!==t._status&&-1!==t._status||(t._status=1,t._result=e)},function(e){0!==t._status&&-1!==t._status||(t._status=2,t._result=e)}),-1===t._status)&&(t._status=0,t._result=e),1===t._status)return t._result.default;throw t._result}var I={current:null},L={transition:null},w={ReactCurrentDispatcher:I,ReactCurrentBatchConfig:L,ReactCurrentOwner:x};function M(){throw Error("act(...) is not supported in production builds of React.")}t.Children={map:T,forEach:function(e,t,n){T(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return T(e,function(){t++}),t},toArray:function(e){return T(e,function(e){return e})||[]},only:function(e){if(_(e))return e;throw Error("React.Children.only expected to receive a single React element child.")}},t.Component=g,t.Fragment=n,t.Profiler=a,t.PureComponent=b,t.StrictMode=r,t.Suspense=u,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=w,t.act=M,t.cloneElement=function(e,t,n){if(null==e)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r=y({},e.props),a=e.key,o=e.ref,l=e._owner;if(null!=t)for(i in void 0!==t.ref&&(o=t.ref,l=x.current),void 0!==t.key&&(a=""+t.key),e.type&&e.type.defaultProps&&(u=e.type.defaultProps),t)S.call(t,i)&&!E.hasOwnProperty(i)&&(r[i]=(void 0===t[i]&&void 0!==u?u:t)[i]);var i=arguments.length-2;if(1===i)r.children=n;else if(1<i){for(var u=Array(i),c=0;c<i;c++)u[c]=arguments[c+2];r.children=u}return{$$typeof:f,type:e.type,key:a,ref:o,props:r,_owner:l}},t.createContext=function(e){return(e={$$typeof:l,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null}).Provider={$$typeof:o,_context:e},e.Consumer=e},t.createElement=P,t.createFactory=function(e){var t=P.bind(null,e);return t.type=e,t},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:i,render:e}},t.isValidElement=_,t.lazy=function(e){return{$$typeof:s,_payload:{_status:-1,_result:e},_init:D}},t.memo=function(e,t){return{$$typeof:c,type:e,compare:void 0===t?null:t}},t.startTransition=function(e){var t=L.transition;L.transition={};try{e()}finally{L.transition=t}},t.unstable_act=M,t.useCallback=function(e,t){return I.current.useCallback(e,t)},t.useContext=function(e){return I.current.useContext(e)},t.useDebugValue=function(){},t.useDeferredValue=function(e){return I.current.useDeferredValue(e)},t.useEffect=function(e,t){return I.current.useEffect(e,t)},t.useId=function(){return I.current.useId()},t.useImperativeHandle=function(e,t,n){return I.current.useImperativeHandle(e,t,n)},t.useInsertionEffect=function(e,t){return I.current.useInsertionEffect(e,t)},t.useLayoutEffect=function(e,t){return I.current.useLayoutEffect(e,t)},t.useMemo=function(e,t){return I.current.useMemo(e,t)},t.useReducer=function(e,t,n){return I.current.useReducer(e,t,n)},t.useRef=function(e){return I.current.useRef(e)},t.useState=function(e){return I.current.useState(e)},t.useSyncExternalStore=function(e,t,n){return I.current.useSyncExternalStore(e,t,n)},t.useTransition=function(){return I.current.useTransition()},t.version="18.3.1"},8376:(e,t,n)=>{e.exports=n(88699)},49523:(e,i)=>{
/**
 * @license React
 * scheduler.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */
function o(e,t){var n=e.length;for(e.push(t);0<n;){var r=n-1>>>1,a=e[r];if(!(0<s(a,t)))break;e[r]=t,e[n]=a,n=r}}function u(e){return 0===e.length?null:e[0]}function c(e){if(0!==e.length){var t=e[0],n=e.pop();if(n!==t){e[0]=n;for(var r=0,a=e.length,o=a>>>1;r<o;){var l=2*(r+1)-1,i=e[l],u=1+l,c=e[u];if(s(i,n)<0)r=u<a&&s(c,i)<0?(e[r]=c,e[u]=n,u):(e[r]=i,e[l]=n,l);else{if(!(u<a&&s(c,n)<0))break;e[r]=c,e[u]=n,r=u}}}}}function s(e,t){var n=e.sortIndex-t.sortIndex;return 0!=n?n:e.id-t.id}"object"==typeof performance&&"function"==typeof performance.now?(t=performance,i.unstable_now=function(){return t.now()}):(n=Date,r=n.now(),i.unstable_now=function(){return n.now()-r});var t,n,r,f=[],d=[],l=1,p=null,h=3,y=!1,m=!1,g=!1,a="function"==typeof setTimeout?setTimeout:null,v="function"==typeof clearTimeout?clearTimeout:null,b="undefined"!=typeof setImmediate?setImmediate:null;function w(e){for(var t=u(d);null!==t;){if(null===t.callback)c(d);else{if(!(t.startTime<=e))break;c(d),t.sortIndex=t.expirationTime,o(f,t)}t=u(d)}}function k(e){var t;g=!1,w(e),m||(null!==u(f)?(m=!0,L(S)):null!==(t=u(d))&&M(k,t.startTime-e))}function S(e,t){m=!1,g&&(g=!1,v(O),O=-1),y=!0;var n=h;try{for(w(t),p=u(f);null!==p&&(!(p.expirationTime>t)||e&&!D());){var r,a=p.callback;"function"==typeof a?(p.callback=null,h=p.priorityLevel,r=a(p.expirationTime<=t),t=i.unstable_now(),"function"==typeof r?p.callback=r:p===u(f)&&c(f),w(t)):c(f),p=u(f)}var o,l=null!==p||(null!==(o=u(d))&&M(k,o.startTime-t),!1);return l}finally{p=null,h=n,y=!1}}"undefined"!=typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var x,E,P,_=!1,C=null,O=-1,N=5,T=-1;function D(){return!(i.unstable_now()-T<N)}function I(){if(null!==C){var e=i.unstable_now(),t=(T=e,!0);try{t=C(!0,e)}finally{t?x():(_=!1,C=null)}}else _=!1}function L(e){C=e,_||(_=!0,x())}function M(e,t){O=a(function(){e(i.unstable_now())},t)}x="function"==typeof b?function(){b(I)}:"undefined"!=typeof MessageChannel?(E=new MessageChannel,P=E.port2,E.port1.onmessage=I,function(){P.postMessage(null)}):function(){a(I,0)},i.unstable_IdlePriority=5,i.unstable_ImmediatePriority=1,i.unstable_LowPriority=4,i.unstable_NormalPriority=3,i.unstable_Profiling=null,i.unstable_UserBlockingPriority=2,i.unstable_cancelCallback=function(e){e.callback=null},i.unstable_continueExecution=function(){m||y||(m=!0,L(S))},i.unstable_forceFrameRate=function(e){e<0||125<e||(N=0<e?Math.floor(1e3/e):5)},i.unstable_getCurrentPriorityLevel=function(){return h},i.unstable_getFirstCallbackNode=function(){return u(f)},i.unstable_next=function(e){switch(h){case 1:case 2:case 3:var t=3;break;default:t=h}var n=h;h=t;try{return e()}finally{h=n}},i.unstable_pauseExecution=function(){},i.unstable_requestPaint=function(){},i.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=h;h=e;try{return t()}finally{h=n}},i.unstable_scheduleCallback=function(e,t,n){var r=i.unstable_now();switch(n="object"==typeof n&&null!==n&&"number"==typeof(n=n.delay)&&0<n?r+n:r,e){case 1:var a=-1;break;case 2:a=250;break;case 5:a=1073741823;break;case 4:a=1e4;break;default:a=5e3}return e={id:l++,callback:t,priorityLevel:e,startTime:n,expirationTime:a=n+a,sortIndex:-1},r<n?(e.sortIndex=n,o(d,e),null===u(f)&&e===u(d)&&(g?(v(O),O=-1):g=!0,M(k,n-r))):(e.sortIndex=a,o(f,e),m||y||(m=!0,L(S))),e},i.unstable_shouldYield=D,i.unstable_wrapCallback=function(t){var n=h;return function(){var e=h;h=n;try{return t.apply(this,arguments)}finally{h=e}}}},75226:(e,t,n)=>{e.exports=n(49523)},55578:(e,t,n)=>{n.d(t,{A:()=>s});var o,l=new Uint8Array(16);const r=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;const a=function(e){return"string"==typeof e&&r.test(e)};for(var i=[],u=0;u<256;++u)i.push((u+256).toString(16).substr(1));const c=function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:0,e=(i[e[t+0]]+i[e[t+1]]+i[e[t+2]]+i[e[t+3]]+"-"+i[e[t+4]]+i[e[t+5]]+"-"+i[e[t+6]]+i[e[t+7]]+"-"+i[e[t+8]]+i[e[t+9]]+"-"+i[e[t+10]]+i[e[t+11]]+i[e[t+12]]+i[e[t+13]]+i[e[t+14]]+i[e[t+15]]).toLowerCase();if(a(e))return e;throw TypeError("Stringified UUID is invalid")};const s=function(e,t,n){var r=(e=e||{}).random||(e.rng||function(){if(o=o||"undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto))return o(l);throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported")})();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,t){n=n||0;for(var a=0;a<16;++a)t[n+a]=r[a];return t}return c(r)}},42914:(e,t,n)=>{n.d(t,{Em:()=>function(e,t,n){t=_({},t);"POST"!==t.method&&"PUT"!==t.method||(t.headers={Accept:"application/json",ContentType:"application/json","Access-Control-Allow-Origin":"*","Access-Control-Allow-Headers":"Origin, X-Requested-With, Content-Type, Accept","Access-Control-Allow-Methods":"PUT,POST,GET,DELETE,OPTIONS"});fetch(e,t).then(function(e){return e.json()}).then(function(e){n&&n(e)})},Iz:()=>function(e,t){return e in t},JY:()=>function w(k,S){var x=S.dispatch;var e=Object.keys(k);e.forEach(function(e){var t,n,r,a,o,l,i,u,c,s,f,d,p,h,y,m,g,v,b;switch(e){case"init":switch(k[e].viewType){case"ie_test_task":x({type:"changeControl",payload:{activeView:"homepage",operate:"create_extract",controlDisplay:!1,attachmentUpload:!1}});break;case"ie_create_task":x({type:"changeControl",payload:{activeView:"homepage",operate:"create_extract",controlDisplay:!0,attachmentUpload:!0}}),k[e].initAttData&&0<Object.keys(k[e].initAttData).length&&k[e].initAttData.fileSize<52428800&&x({type:"changeMainPageFile",payload:{name:k[e].initAttData.fileName,type:k[e].initAttData.fileType,hasData:!0,url:k[e].initAttData.url,status:"success",tempFileId:k[e].initAttData.tempFileId||""}});break;case"ie_show_task":x({type:"changeControl",payload:{activeView:"displaypage",operate:"create_extract",controlDisplay:!1,attachmentUpload:!1}}),x({type:"changeDisplayPageFile",payload:{name:k[e].showData.fileData.fileName,type:k[e].showData.fileData.fileName.slice(k[e].showData.fileData.fileName.lastIndexOf(".")+1).toLowerCase()}}),w({ie_show_task:{extractData:k[e].showData.extractData,taskId:k[e].showData.extractData.taskId,status:k[e].showData.extractData.status,progress:k[e].showData.extractData.progress}},S)}x({type:"changeGlobal",payload:{serverUrl:k[e].url,billId:k[e].billid,viewType:k[e].viewType,planList:k[e].planList}});break;case"startExtract":"validFileError"!==k[e]&&"validLicenseError"!==k[e]&&"systemError"!==k[e]?(x({type:"startExtract",payload:{data:{taskId:k[e],status:"loading"},control:{activeView:"displaypage"}}}),x({type:"invokePolling",payload:k[e]})):x({type:"backHomePage",payload:"backHomePage"});break;case"ie_show_task":switch(k[e].status){case"loading":case"running":x({type:"startExtract",payload:{data:{taskId:k[e].taskId,status:"loading"},control:{activeView:"displaypage"}}}),x({type:"invokePolling",payload:k[e].taskId});break;case"error":x({type:"showErrorResult",payload:{data:{taskId:k[e].taskId,status:k[e].status,traceId:k[e].traceId||k[e].extractData.traceId,progress:k[e].progress},control:{activeView:"displaypage"}}});break;case"success":O.destory(),null!=(r=null==(r=k[e])?void 0:r.extractData)&&r.isUpdate&&null!=(r=null==(r=k[e])?void 0:r.extractData)&&r.updateData?x({type:"changeExtractData",payload:_(_({},C(JSON.parse(null==(r=null==(r=k[e])?void 0:r.extractData)?void 0:r.updateData),k[e].extractData)),{wordSelection:{show:!1,showOptionList:!1,pageNum:null,words:"",wordsShapeId:[],activeShapeId:"",field:""}})}):k[e].extractData.isNew?(a=k[e].extractData.tieInfo,o=k[e].extractData.extractSeq||N,l=k[e].extractData.tieTableInfo,b=D(a,o),i=[],u={},l&&(r=(0,P.k0)(l,o),g=r.tableData,v=r.tableShapeData,i=v,u=g),r=k[e].extractData,n=r.llmSeq,c=void 0===n?[]:n,n=r.llmInfo,s=void 0===n?{}:n,n=r.llmTableInfo,d=void 0===n?{}:n,p=D(s,c,!0),h=[],y={},d&&(r=(0,P.k0)(d,c),g=r.tableData,v=r.tableShapeData,h=v,y=g),x({type:"showSuccessfulResult",payload:{data:{taskId:k[e].taskId,status:k[e].status,data:_(_({},k[e].extractData),{calcuJson:b.calcuJson.concat(p.calcuJson),listJson:b.listJson.concat(p.listJson),tableJson:i,tableListJson:u,extractSeq:k[e].extractData.extractSeq||N,drawJson:[],llmSeq:c,llmInfo:s,llmTableInfo:d,llmTableJson:h,llmTableListJson:y})},control:{activeView:"displaypage"}}})):(b=T(k[e].extractData.tieDocContents,k[e].extractData.tieInfo,k[e].extractData.extractSeq||N),i=[],u={},x({type:"showSuccessfulResult",payload:{data:{taskId:k[e].taskId,status:k[e].status,data:_(_({},k[e].extractData),{extractSeq:k[e].extractData.extractSeq||N,calcuJson:b.calcuJson,listJson:b.listJson,tableJson:i,tableListJson:u,drawJson:[]})},control:{activeView:"displaypage"}}}))}break;case"polling":switch(k[e].status){case"running":case"loading":return x({type:"invokePolling",payload:k[e].taskId}),void(k[e].progress&&x({type:"updateProgress",payload:k[e].progress}));case"error":return O.destory(),void x({type:"showErrorResult",payload:{data:{taskId:k[e].taskId,status:k[e].status,traceId:k[e].traceId||k[e].extractData.traceId,progress:k[e].progress},control:{activeView:"displaypage"}}});case"success":return O.destory(),void(k[e].extractData.isNew?(a=k[e].extractData.tieInfo,o=k[e].extractData.extractSeq||N,l=k[e].extractData.tieTableInfo,b=D(a,o),i=[],u={},l&&(m=(0,P.k0)(l,o),g=m.tableData,v=m.tableShapeData,i=v,u=g),m=k[e].extractData,f=m.llmSeq,c=void 0===f?[]:f,f=m.llmInfo,s=void 0===f?{}:f,f=m.llmTableInfo,d=void 0===f?{}:f,p=D(s,c,!0),h=[],y={},d&&(m=(0,P.k0)(d,c),g=m.tableData,v=m.tableShapeData,h=v,y=g),x({type:"showSuccessfulResult",payload:{data:{taskId:k[e].taskId,status:k[e].status,data:_(_({},k[e].extractData),{calcuJson:b.calcuJson.concat(p.calcuJson),listJson:b.listJson.concat(p.listJson),tableJson:i,tableListJson:u,extractSeq:k[e].extractData.extractSeq||N,drawJson:[],llmSeq:c,llmInfo:s,llmTableInfo:d,llmTableJson:h,llmTableListJson:y})},control:{activeView:"displaypage"}}})):(b=T(k[e].extractData.tieDocContents,k[e].extractData.tieInfo,k[e].extractData.extractSeq||N),x({type:"showSuccessfulResult",payload:{data:{taskId:k[e].taskId,status:k[e].status,data:_(_({},k[e].extractData),{calcuJson:b.calcuJson,listJson:b.listJson,extractSeq:k[e].extractData.extractSeq||N,drawJson:[]})},control:{activeView:"displaypage"}}})))}break;case"recognize":x({type:"responseData",payload:k[e]});break;case"displayHistoryData":x({type:"changeControl",payload:{activeView:"displaypage"}}),x({type:"changeExtractData",payload:k[e]});break;case"getAttachmentList":x({type:"changeAttachmentList",payload:k[e]});break;case"ie_history_task":x({type:"changeHistoryList",payload:k[e]});break;case"ie_delhistory_task":!0===k[e].status&&0===k[e].code?x({type:"doDeleteHistorical",payload:"doDeleteHistorical"}):x((0,E.l)(k[e].errorMsg));break;case"showF7":"currency"===JSON.parse(k[e]).type&&(x({type:"changeSelectId",payload:""}),x({type:"changeF7Currency",payload:{value:JSON.parse(k[e]).value,drawData:[],select:null,selectType:"input",key:"currency",confidence:null}}));break;case"validExtractFile":k[e].validResult?x({type:"changeMainPageFile",payload:{status:"success",tempFileId:k[e].tempFileId}}):x({type:"changeMainPageFile",payload:{status:"error",tempFileId:""}});break;case"cancelExtract":"history_extract"===(null==(t=null==(t=S.getState())?void 0:t.control)?void 0:t.operate)&&x({type:"getHistoryList"})}})},O1:()=>O,OT:()=>o,oW:()=>l,qf:()=>a});var d=n(55578),E=n(41412),P=n(48751),_=function(){return(_=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var a in t=arguments[n])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e}).apply(this,arguments)},r=function(e,t,n){if(n||2===arguments.length)for(var r,a=0,o=t.length;a<o;a++)!r&&a in t||((r=r||Array.prototype.slice.call(t,0,a))[a]=t[a]);return e.concat(r||Array.prototype.slice.call(t))},C=function(e,n){var t;return e.data.extractSeq=(null==n?void 0:n.extractSeq)||N,e.data.listJson=null==(t=e.data.listJson)?void 0:t.map(function(t){var e=null==(e=r(r([],(null==n?void 0:n.extractSeq)||[],!0),(null==n?void 0:n.llmSeq)||[],!0))?void 0:e.find(function(e){return e.extractNum===t.key});return _(_({},t),{inputType:(null==e?void 0:e.fieldType)||"1"})}),null!=(t=e.data)&&t.tableJson||(e.data.tableJson=[]),null!=(t=e.data)&&t.tableListJson||(e.data.tableListJson={}),null!=(t=e.data)&&t.llmTableJson||(e.data.llmTableJson=[]),null!=(t=e.data)&&t.llmTableListJson||(e.data.llmTableListJson={}),e};var a=function(e){var e=new Date(e),t=e.getFullYear(),n=(n=e.getMonth()+1)<10?"0".concat(n):n,r=(r=e.getDate())<10?"0".concat(r):r,a=(a=e.getHours())<10?"0".concat(a):a,o=e.getMinutes(),e=e.getSeconds(),o=o<10?"0".concat(o):o,e=e<10?"0".concat(e):e;return"".concat(t,"-").concat(n,"-").concat(r," ").concat(a,":").concat(o,":").concat(e)},o={pdf:!0,wps:!0,WPS:!0,jpg:!0,jpeg:!0,png:!0,bmp:!0,tif:!1,tiff:!1,doc:!0,docx:!0,ofd:!0};var t=function(){var t=this;this.setTaskId=function(e){t.taskId=e},this.invokePolling=function(e){t.timeOut&&clearTimeout(t.timeOut),t.timeOut=setTimeout(function(){return e()},2e3)},this.destory=function(){t.taskId=null,clearTimeout(t.timeOut)},this.taskId=null,this.timeOut=null},O=new t;function p(e,t,n){var r=n.leftTop.x,a=n.rightTop.x,o=n.leftTop.y,l=n.rightTop.y,i=n.leftBottom.x,u=n.rightBottom.x,c=n.leftBottom.y,n=n.rightBottom.y;return{leftTop:{x:Math.abs(r-a)*e+Math.min(r,a)===Math.min(r,a)?r:Math.abs(r-a)*e+Math.min(r,a),y:Math.abs(o-l)*e+Math.min(o,l)===Math.min(o,l)?o:Math.abs(o-l)*e+Math.min(o,l)},rightBottom:{x:Math.abs(i-u)*(1-t)+Math.min(i,u)===Math.min(i,u)?u:Math.abs(i-u)*(1-t)+Math.min(i,u),y:Math.abs(c-n)*(1-t)+Math.min(c,n)===Math.min(c,n)?n:Math.abs(c-n)*(1-t)+Math.min(c,n)},leftBottom:{x:Math.abs(i-u)*e+Math.min(i,u)===Math.min(i,u)?i:Math.abs(i-u)*e+Math.min(i,u),y:Math.abs(c-n)*e+Math.min(c,n)===Math.min(c,n)?c:Math.abs(c-n)*e+Math.min(c,n)},rightTop:{x:Math.abs(r-a)*(1-t)+Math.min(r,a)===Math.min(r,a)?a:Math.abs(r-a)*(1-t)+Math.min(r,a),y:Math.abs(o-l)*(1-t)+Math.min(o,l)===Math.min(o,l)?l:Math.abs(o-l)*(1-t)+Math.min(o,l)}}}var N=[],l={1:{placeholder:"",rule:/^/},2:{placeholder:"",rule:/^[0-9]+(\.{0,1})([0-9]+)?$/},3:{placeholder:"",rule:/^\w+([\._\\-]*\w)*@(\w+[\w|\-]*\.){1,63}[\w|\-]+$/},4:{placeholder:"",rule:/^[0-9]+(\.{0,1})([0-9]+)?$/},5:{placeholder:"",rule:/^[\u4E00-\u9FA5]+$/},6:{placeholder:"",rule:/^/},7:{placeholder:"",rule:/^[\u4E00-\u9FA5a-zA-Z·,.-]+$/},8:{placeholder:"",rule:/^/},9:{placeholder:"",rule:/^/},10:{placeholder:"",rule:/^[a-zA-Z0-9]+$/},11:{placeholder:"YYYY-MM-DD",rule:/^\d{4}\-(0?[1-9]|1[012])\-(0?[1-9]|[12][0-9]|3[01])$/},12:{placeholder:"",rule:/^/},13:{placeholder:"",rule:/^/},14:{placeholder:"",rule:/^(100|[1-9]?\d(\.\d+)?)%$/}};function T(e,t,n){var r,a=Object.assign(t);for(r in a)a[r]=a[r].map(function(e){return _(_({},e),{extractId:(0,d.A)()})});var s=[],o=[],l=[],f=0;return e.forEach(function(e){var t=e.pageLayouts,c=e.pageNum;t.forEach(function(e){e.texts.forEach(function(l){var e,i=f+1,u=f+l.words.length-l.words.split(" ").length+1;for(e in a)!function(o){a[o].forEach(function(e){for(var t=0;t<e.index.length;t++){var n=e.index[t][0]+1,r=e.index[t][1],a={words:l.words,wordsIdx:l.wordsIdx,pageNum:c,wordsLength:l.words.length,spaceNum:l.words.split(" ").length-1,include:!0,includeType:"left",infoText:e.text,confidence:e.confidence,oldLocation:l.wordsLocation,key:o,type:"calcuJson",shapeId:(0,d.A)(),extractId:e.extractId};if(n<=i&&i<=r&&r<=u?(a.rightCut=u-r-.5*l.words.slice(l.words.length-(u-r),l.words.length).replace(/\D/g,"").length,a.leftCut=0,a.cutLength=l.words.length-.5*l.words.slice(l.words.length-(u-r),l.words.length).replace(/\D/g,"").length,s.push(_(_({},a),{wordsLocation:p(0,a.rightCut/a.cutLength,a.oldLocation)}))):n<=u&&u<=r&&i<=n?(a.rightCut=0,a.leftCut=n-i-.5*l.words.slice(0,n-i).replace(/\D/g,"").length,a.cutLength=l.words.length-.5*l.words.slice(0,n-i).replace(/\D/g,"").length,s.push(_(_({},a),{wordsLocation:p(0,a.rightCut/a.cutLength,a.oldLocation)}))):i<=n&&r<=u&&(a.rightCut=u-r-.5*l.words.slice(l.words.length-(u-r),l.words.length).replace(/\D/g,"").length,a.leftCut=n-i-.5*l.words.slice(0,n-i).replace(/\D/g,"").length,a.cutLength=l.words.length-(.5*l.words.slice(0,n-i).replace(/\D/g,"").length+.5*l.words.slice(l.words.length-(u-r),l.words.length).replace(/\D/g,"").length),s.push(_(_({},a),{wordsLocation:p(0,a.rightCut/a.cutLength,a.oldLocation)}))),r<i)break}})}(e);f=f+l.words.length-l.words.split(" ").length+1})})}),n.forEach(function(t){l.push({key:t.extractNum,data:[],drawData:[],value:"",inputType:t.fieldType||"1",select:null,selectType:null,confidence:null}),o=o.concat(s.filter(function(e){return e.key===t.extractNum}).map(function(t){var e=l[l.findIndex(function(e){return e.key===t.key})];return e.data.some(function(e){return e.extractId===t.extractId})||e.data.push({confidence:t.confidence,extractId:t.extractId,infoText:t.infoText,type:t.type}),_({},t)}))}),l=l.map(function(e){return 0!==e.data.length?_(_({},e),{value:e.data[0].infoText,select:e.data[0].extractId,selectType:e.data[0].type,confidence:e.data[0].confidence}):e}),{calcuJson:o.map(function(e){return{confidence:e.confidence,extractId:e.extractId,infoText:e.infoText,key:e.key,pageNum:e.pageNum,shapeId:e.shapeId,type:e.type,wordsLocation:e.wordsLocation}}),listJson:l}}var D=function(e,n,r){var t,o=[],l=[];for(t in e)!function(a){var t={key:a,data:[],drawData:[],value:"",inputType:n.find(function(e){return e.extractNum===a})?n.find(function(e){return e.extractNum===a}).fieldType:"1",select:null,selectType:null,confidence:null,isLlm:r};e[a].forEach(function(n,e){var r=(0,d.A)();t.data.some(function(e){return e.extractId===r})||t.data.push({confidence:n.confidence,extractId:r,infoText:n.text,type:"calcuJson"}),0===e&&(t.confidence=n.confidence,t.select=r,t.selectType="calcuJson",t.value=n.text),n.indexNew.forEach(function(e){var t=(0,d.A)();o.push({confidence:n.confidence,tableFlag:!1,tableId:null,key:a,extractId:r,infoText:n.text,type:"calcuJson",pageNum:e.pageNum,shapeId:t,wordsLocation:e.wordsLocation,words:e.words})})}),l.push(t)}(t);return{calcuJson:o,listJson:l}}},48751:(e,t,n)=>{n.d(t,{t7:()=>function(e){var t=e.taskId,n=JSON.stringify(e),r=e.data.listJson.map(function(e){var t={};return t[e.key]={name:u[e.key],value:e.value},t}),a=e.data.tableListJson,o=Object.keys(a),l={},i=(o.forEach(function(e){l[e]=a[e].tableData.map(function(t){var e=Object.keys(t.tableLineData),n={};return e.forEach(function(e){n[e]=t.tableLineData[e].value}),n})}),null==(o=e.data)?void 0:o.llmTableListJson);i&&Object.keys(i).forEach(function(e){l[e]=i[e].tableData.map(function(t){var e=Object.keys(t.tableLineData),n={};return e.forEach(function(e){n[e]=t.tableLineData[e].value}),n})});return{taskId:t,updateData:n,importData:r,importTableData:l}},k0:()=>function(e,t){var n=Object.keys(e),f=[],a={};return n.forEach(function(r){var s=(0,d.A)();a[r]={tableId:s,tableData:e[r].map(function(e,t){a=e,o=t,l=r,i=s,e=Object.keys(a),u={},c=[],e.forEach(function(t){var e,n,r=[];0===a[t].indexNew.length&&(e=(0,d.A)(),r=[{shapeId:(0,d.A)(),lineKey:t,extractId:e,tableId:i,key:t,tableKey:l,confidence:a[t].confidence,pageNum:void 0,wordsLocation:void 0,infoText:a[t].text,type:"tableJson",words:void 0}]),0<a[t].indexNew.length&&(n=(0,d.A)(),r=a[t].indexNew.map(function(e){return{shapeId:(0,d.A)(),lineKey:t,extractId:n,tableId:i,key:t,tableKey:l,confidence:a[t].confidence,pageNum:e.pageNum,wordsLocation:e.wordsLocation,infoText:a[t].text,type:"tableJson",words:e.words}})),c=c.concat(r),u[t]={confidence:a[t].confidence,data:r,drawData:[],inputType:"1",key:"key",tableId:i,tableKey:l,tableLineIndex:o,lineKey:t,select:0<r.length?r[0].extractId:null,selectType:0<r.length?r[0].type:null,value:0<r.length?r[0].infoText:""}});var a,o,l,i,u,c,e={unitData:c,tableLineData:u},n=e.tableLineData,e=e.unitData;return f=f.concat(e.map(function(e){return p(p({},e),{tableFlag:!0})})),{tableLineIndex:t,tableLineData:n}})}}),{tableData:a,tableShapeData:f}}});var d=n(55578);const u=JSON.parse('{"part_a":"甲方","part_b":"乙方","organization":"组织机构名","project_num":"项目编号","contract_num":"合同编号","contract_name":"合同名称","part_a_account_num":"甲方账号","part_b_account_num":"乙方账号","account_num":"账号","part_a_account":"甲方账户名称","part_b_account":"乙方账户名称","account":"账户名称","part_a_bank":"甲方开户行","method_of_payment":"付款方式","phase_of_payment":"阶段","ratio_of_payment":"比例","payment_money":"金额","part_b_bank":"乙方开户行","bank":"开户行","part_a_address":"甲方地址","part_b_address":"乙方地址","address":"地址","part_a_uscc":"甲方纳税人识别号","part_b_uscc":"乙方纳税人识别号","uscc":"统一社会信用代码/纳税人识别号","part_a_phone":"甲方电话","part_b_phone":"乙方电话","phone":"电话/手机","part_a_fax":"甲方传真","part_b_fax":"乙方传真","fax":"传真","part_a_email":"甲方邮箱","part_b_email":"乙方邮箱","email":"邮箱","part_a_contacts":"甲方联系人","part_b_contacts":"乙方联系人","contacts":"联系人","amount_capital":"合同金额（大写）","amount":"合同金额（小写）","tax_amount":"合同税额","currency":"币种","tax_rate":"税率","signing_date":"合同签约日期","delivery_date":"交货日期","place_of_delivery":"交货地点","payment":"付款计划"}');var p=function(){return(p=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var a in t=arguments[n])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e}).apply(this,arguments)}},41412:(e,t,n)=>{n.d(t,{b:()=>r,l:()=>a});var r=function(e,t,n,r,a){return{type:"changeMainPageFile",payload:{name:e,type:t,url:n,status:r,hasData:a}}},a=function(e){return{type:"outputMsg",payload:e}}},60749:(e,t,n)=>{n.d(t,{A:()=>function(e,t,n){return(t=(0,r.A)(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}});var r=n(80833)},3297:(e,t,n)=>{n.d(t,{A:()=>function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?a(Object(n),!0).forEach(function(e){(0,r.A)(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}});var r=n(60749);function a(t,e){var n,r=Object.keys(t);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(t),e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)),r}},80833:(e,t,n)=>{n.d(t,{A:()=>function(e){e=function(e,t){if("object"!=(0,r.A)(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0===n)return("string"===t?String:Number)(e);n=n.call(e,t||"default");if("object"!=(0,r.A)(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}(e,"string");return"symbol"==(0,r.A)(e)?e:e+""}});var r=n(67210)},67210:(e,t,n)=>{function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}n.d(t,{A:()=>r})}},A={};function f(e){var t=A[e];return void 0!==t||(t=A[e]={id:e,loaded:!1,exports:{}},j[e].call(t.exports,t,t.exports,f),t.loaded=!0),t.exports}f.m=j,f.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return f.d(t,{a:t}),t},f.d=(e,t)=>{for(var n in t)f.o(t,n)&&!f.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},f.f={},f.e=n=>Promise.all(Object.keys(f.f).reduce((e,t)=>(f.f[t](n,e),e),[])),f.u=e=>124===e?"js/chunk.kdcloudjs.e8f0a857.js":96===e?"js/chunk.vendors.47c2a5cf.js":23===e?"js/chunk.bundle.83528588.js":void 0,f.miniCssF=e=>"css/main."+{23:"d9ef9f99",96:"c540ad37",124:"e1f76566"}[e]+".css",f.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),f.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),s={},f.l=(r,e,t,n)=>{if(s[r])s[r].push(e);else{var a,o;if(void 0!==t)for(var l=document.getElementsByTagName("script"),i=0;i<l.length;i++){var u=l[i];if(u.getAttribute("src")==r||u.getAttribute("data-webpack")=="die:"+t){a=u;break}}a||(o=!0,(a=document.createElement("script")).charset="utf-8",a.timeout=120,f.nc&&a.setAttribute("nonce",f.nc),a.setAttribute("data-webpack","die:"+t),a.src=r),s[r]=[e];var e=(e,t)=>{a.onerror=a.onload=null,clearTimeout(c);var n=s[r];if(delete s[r],a.parentNode&&a.parentNode.removeChild(a),n&&n.forEach(e=>e(t)),e)return e(t)},c=setTimeout(e.bind(null,void 0,{type:"timeout",target:a}),12e4);a.onerror=e.bind(null,a.onerror),a.onload=e.bind(null,a.onload),o&&document.head.appendChild(a)}},f.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},f.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),f.g.importScripts&&(t=f.g.location+"");var t,r=f.g.document;if(!t&&r&&!(t=r.currentScript?r.currentScript.src:t)){var F=r.getElementsByTagName("script");if(F.length)for(var U=F.length-1;-1<U&&(!t||!/^http(s?):/.test(t));)t=F[U--].src}if(!t)throw new Error("Automatic publicPath is not supported in this browser");t=t.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),f.p=t,"undefined"!=typeof document&&(R=c=>new Promise((e,t)=>{var n=f.miniCssF(c),r=f.p+n;if(((e,t)=>{for(var n=document.getElementsByTagName("link"),r=0;r<n.length;r++){var a=(o=n[r]).getAttribute("data-href")||o.getAttribute("href");if("stylesheet"===o.rel&&(a===e||a===t))return o}for(var o,l=document.getElementsByTagName("style"),r=0;r<l.length;r++)if((a=(o=l[r]).getAttribute("data-href"))===e||a===t)return o})(n,r))return e();var a=c,o=r,n=null,l=e,i=t,u=document.createElement("link");u.rel="stylesheet",u.type="text/css",f.nc&&(u.nonce=f.nc),u.onerror=u.onload=e=>{var t,n;u.onerror=u.onload=null,"load"===e.type?l():(t=e&&e.type,e=e&&e.target&&e.target.href||o,(n=new Error("Loading CSS chunk "+a+" failed.\n("+t+": "+e+")")).name="ChunkLoadError",n.code="CSS_CHUNK_LOAD_FAILED",n.type=t,n.request=e,u.parentNode&&u.parentNode.removeChild(u),i(n))},u.href=o,n?n.parentNode.insertBefore(u,n.nextSibling):document.head.appendChild(u)}),n={792:0},f.f.miniCss=(t,e)=>{n[t]?e.push(n[t]):0!==n[t]&&{23:1,96:1,124:1}[t]&&e.push(n[t]=R(t).then(()=>{n[t]=0},e=>{throw delete n[t],e}))}),u={792:0},f.f.j=(n,e)=>{var t,r,a=f.o(u,n)?u[n]:void 0;0!==a&&(a?e.push(a[2]):124!=n?(t=new Promise((e,t)=>a=u[n]=[e,t]),e.push(a[2]=t),e=f.p+f.u(n),r=new Error,f.l(e,e=>{var t;f.o(u,n)&&(0!==(a=u[n])&&(u[n]=void 0),a)&&(t=e&&("load"===e.type?"missing":e.type),e=e&&e.target&&e.target.src,r.message="Loading chunk "+n+" failed.\n("+t+": "+e+")",r.name="ChunkLoadError",r.type=t,r.request=e,a[1](r))},"chunk-"+n,n)):u[n]=0)},r=(e,t)=>{var n,r,[a,o,l]=t,i=0;if(a.some(e=>0!==u[e])){for(n in o)f.o(o,n)&&(f.m[n]=o[n]);l&&l(f)}for(e&&e(t);i<a.length;i++)r=a[i],f.o(u,r)&&u[r]&&u[r][0](),u[r]=0},(e=self.webpackChunkdie=self.webpackChunkdie||[]).forEach(r.bind(null,0)),e.push=r.bind(null,e.push.bind(e));{var $=f(8376),V=f(15578);function d(e){for(var t=arguments.length,n=Array(1<t?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];throw Error("[Immer] minified error nr: "+e+(n.length?" "+n.map(function(e){return"'"+e+"'"}).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function i(e){return e&&e[k]}function p(t){var e;return t&&(function(){var e;if(t&&"object"==typeof t)return null===(e=Object.getPrototypeOf(t))||(e=Object.hasOwnProperty.call(e,"constructor")&&e.constructor)===Object||"function"==typeof e&&Function.toString.call(e)===me}()||Array.isArray(t)||t[ye]||null!=(e=t.constructor)&&e[ye]||W(t)||q(t))}function h(n,r,t){void 0===t&&(t=!1),0===o(n)?(t?Object.keys:S)(n).forEach(function(e){t&&"symbol"==typeof e||r(e,n[e],n)}):n.forEach(function(e,t){return r(t,e,n)})}function o(e){var t=e[k];return t?3<t.i?t.i-4:t.i:Array.isArray(e)?1:W(e)?2:q(e)?3:0}function y(e,t){return 2===o(e)?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function J(e,t){return 2===o(e)?e.get(t):e[t]}function B(e,t,n){var r=o(e);2===r?e.set(t,n):3===r?e.add(n):e[t]=n}function H(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}function W(e){return fe&&e instanceof Map}function q(e){return de&&e instanceof Set}function l(e){return e.o||e.t}function Q(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=ge(e);delete t[k];for(var n=S(t),r=0;r<n.length;r++){var a=n[r],o=t[a];!1===o.writable&&(o.writable=!0,o.configurable=!0),(o.get||o.set)&&(t[a]={configurable:!0,writable:!0,enumerable:o.enumerable,value:e[a]})}return Object.create(Object.getPrototypeOf(e),t)}function K(e,t){return void 0===t&&(t=!1),X(e)||i(e)||!p(e)||(1<o(e)&&(e.set=e.add=e.clear=e.delete=Y),Object.freeze(e),t&&h(e,function(e,t){return K(t,!0)},!0)),e}function Y(){d(2)}function X(e){return null==e||"object"!=typeof e||Object.isFrozen(e)}function m(e){var t=ve[e];return t||d(18,e),t}function G(e,t){ve[e]||(ve[e]=t)}function Z(e,t){t&&(m("Patches"),e.u=[],e.s=[],e.v=t)}function g(e){ee(e),e.p.forEach(ne),e.p=null}function ee(e){e===w&&(w=e.l)}function te(e){return w={p:[],l:w,h:e,m:!0,_:0}}function ne(e){e=e[k];0===e.i||1===e.i?e.j():e.g=!0}function re(e,t){t._=t.p.length;var n=t.p[0],r=void 0!==e&&e!==n;return t.h.O||m("ES5").S(t,e,r),r?(n[k].P&&(g(t),d(4)),p(e)&&(e=c(t,e),t.l||v(t,e)),t.u&&m("Patches").M(n[k].t,e,t.u,t.s)):e=c(t,n,[]),g(t),t.u&&t.v(t.u,t.s),e!==he?e:void 0}function c(n,r,a){var o,l,e,i;return X(r)?r:(o=r[k])?o.A!==n?r:o.P?(o.I||(o.I=!0,o.A._--,e=l=4===o.i||5===o.i?o.o=Q(o.k):o.o,i=!1,3===o.i&&(e=new Set(l),l.clear(),i=!0),h(e,function(e,t){return ae(n,o,l,e,t,a,i)}),v(n,l,!1),a&&n.u&&m("Patches").N(o,a,n.u,n.s)),o.o):(v(n,o.t,!0),o.t):(h(r,function(e,t){return ae(n,o,r,e,t,a)},!0),r)}function ae(e,t,n,r,a,o,l){if(i(a)){o=c(e,a,o&&t&&3!==t.i&&!y(t.R,r)?o.concat(r):void 0);if(B(n,r,o),!i(o))return;e.m=!1}else l&&n.add(a);!p(a)||X(a)||!e.h.D&&e._<1||(c(e,a),t&&t.A.l)||v(e,a)}function v(e,t,n){void 0===n&&(n=!1),!e.l&&e.h.D&&e.m&&K(t,n)}function oe(e,t){var n=e[k];return(n?l(n):e)[t]}function le(e,t){if(t in e)for(var n=Object.getPrototypeOf(e);n;){var r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=Object.getPrototypeOf(n)}}function b(e){e.P||(e.P=!0,e.l&&b(e.l))}function ie(e){e.o||(e.o=Q(e.t))}function ue(e,t,n){var r,a,o=W(t)?m("MapSet").F(t,n):q(t)?m("MapSet").T(t,n):e.O?(e=t,r=n,o=Array.isArray(e),r={i:o?1:0,A:r?r.A:w,P:!1,I:!1,R:{},l:r,t:e,k:null,o:null,j:null,C:!1},e=r,a=x,o&&(e=[r],a=E),o=Proxy.revocable(e,a),e=o.revoke,a=o.proxy,r.k=a,r.j=e,a):m("ES5").J(t,n);return(n?n.A:w).p.push(o),o}function ce(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return Q(e)}function se(){function u(n,e){var t=o[n];return t?t.enumerable=e:o[n]=t={configurable:!0,enumerable:e,get:function(){var e=this[k];return x.get(e,n)},set:function(e){var t=this[k];x.set(t,n,e)}},t}function r(e){for(var t=e.length-1;0<=t;t--){var n=e[t][k];if(!n.P)switch(n.i){case 5:s(n)&&b(n);break;case 4:a(n)&&b(n)}}}function a(e){for(var t=e.t,n=e.k,r=S(n),a=r.length-1;0<=a;a--){var o=r[a];if(o!==k){var l=t[o];if(void 0===l&&!y(t,o))return!0;var o=n[o],i=o&&o[k];if(i?i.t!==l:!H(o,l))return!0}}e=!!t[k];return r.length!==S(t).length+(e?0:1)}function s(e){var t=e.k;if(t.length!==e.t.length)return!0;e=Object.getOwnPropertyDescriptor(t,t.length-1);if(e&&!e.get)return!0;for(var n=0;n<t.length;n++)if(!t.hasOwnProperty(n))return!0;return!1}var o={};G("ES5",{J:function(e,t){var n=Array.isArray(e),r=function(e,t){if(e){for(var n=Array(t.length),r=0;r<t.length;r++)Object.defineProperty(n,""+r,u(r,!0));return n}var a=ge(t);delete a[k];for(var o=S(a),l=0;l<o.length;l++){var i=o[l];a[i]=u(i,e||!!a[i].enumerable)}return Object.create(Object.getPrototypeOf(t),a)}(n,e),n={i:n?5:4,A:t?t.A:w,P:!1,I:!1,R:{},l:t,t:e,k:r,o:null,g:!1,C:!1};return Object.defineProperty(r,k,{value:n,writable:!0}),r},S:function(e,t,n){n?i(t)&&t[k].A===e&&r(e.p):(e.u&&function t(e){if(e&&"object"==typeof e){var n=e[k];if(n){var r=n.t,a=n.k,o=n.R,e=n.i;if(4===e)h(a,function(e){e!==k&&(void 0!==r[e]||y(r,e)?o[e]||t(a[e]):(o[e]=!0,b(n)))}),h(r,function(e){void 0!==a[e]||y(a,e)||(o[e]=!1,b(n))});else if(5===e){if(s(n)&&(b(n),o.length=!0),a.length<r.length)for(var l=a.length;l<r.length;l++)o[l]=!1;else for(var i=r.length;i<a.length;i++)o[i]=!0;for(var u=Math.min(a.length,r.length),c=0;c<u;c++)a.hasOwnProperty(c)||(o[c]=!0),void 0===o[c]&&t(a[c])}}}}(e.p[0]),r(e.p))},K:function(e){return(4===e.i?a:s)(e)}})}var w,r="undefined"!=typeof Symbol&&"symbol"==typeof Symbol("x"),fe="undefined"!=typeof Map,de="undefined"!=typeof Set,pe="undefined"!=typeof Proxy&&void 0!==Proxy.revocable&&"undefined"!=typeof Reflect,he=r?Symbol.for("immer-nothing"):((a={})["immer-nothing"]=!0,a),ye=r?Symbol.for("immer-draftable"):"__$immer_draftable",k=r?Symbol.for("immer-state"):"__$immer_state",me=""+Object.prototype.constructor,S="undefined"!=typeof Reflect&&Reflect.ownKeys?Reflect.ownKeys:void 0!==Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,ge=Object.getOwnPropertyDescriptors||function(t){var n={};return S(t).forEach(function(e){n[e]=Object.getOwnPropertyDescriptor(t,e)}),n},ve={},x={get:function(e,t){var n,r;return t===k?e:y(n=l(e),t)?(r=n[t],!e.I&&p(r)&&r===oe(e.t,t)?(ie(e),e.o[t]=ue(e.A.h,r,e)):r):(r=e,(e=le(n,t))?"value"in e?e.value:null==(e=e.get)?void 0:e.call(r.k):void 0)},has:function(e,t){return t in l(e)},ownKeys:function(e){return Reflect.ownKeys(l(e))},set:function(e,t,n){var r=le(l(e),t);if(null!=r&&r.set)r.set.call(e.k,n);else{if(!e.P){var r=oe(l(e),t),a=null==r?void 0:r[k];if(a&&a.t===n)return e.o[t]=n,!(e.R[t]=!1);if(H(n,r)&&(void 0!==n||y(e.t,t)))return!0;ie(e),b(e)}e.o[t]===n&&(void 0!==n||t in e.o)||Number.isNaN(n)&&Number.isNaN(e.o[t])||(e.o[t]=n,e.R[t]=!0)}return!0},deleteProperty:function(e,t){return void 0!==oe(e.t,t)||t in e.t?(e.R[t]=!1,ie(e),b(e)):delete e.R[t],e.o&&delete e.o[t],!0},getOwnPropertyDescriptor:function(e,t){var n=l(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r&&{writable:!0,configurable:1!==e.i||"length"!==t,enumerable:r.enumerable,value:n[t]}},defineProperty:function(){d(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){d(12)}},E={},a,r;function be(e){var c=this;this.O=pe,this.D=!0,this.produce=function(e,o,t){var l,i,n;if("function"==typeof e&&"function"!=typeof o)return l=o,o=e,i=c,function(e){var t=this;void 0===e&&(e=l);for(var n=arguments.length,r=Array(1<n?n-1:0),a=1;a<n;a++)r[a-1]=arguments[a];return i.produce(e,function(e){return o.call.apply(o,[t,e].concat(r))})};if("function"!=typeof o&&d(6),void 0!==t&&"function"!=typeof t&&d(7),p(e)){var r=te(c),a=ue(c,e,void 0),u=!0;try{n=o(a),u=!1}finally{(u?g:ee)(r)}return"undefined"!=typeof Promise&&n instanceof Promise?n.then(function(e){return Z(r,t),re(e,r)},function(e){throw g(r),e}):(Z(r,t),re(n,r))}if(!e||"object"!=typeof e)return(n=void 0===(n=o(e))?e:n)===he&&(n=void 0),c.D&&K(n,!0),t&&(a=[],u=[],m("Patches").M(e,n,a,u),t(a,u)),n;d(21,e)},this.produceWithPatches=function(a,e){var n,r;return"function"==typeof a?function(e){for(var t=arguments.length,n=Array(1<t?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return c.produceWithPatches(e,function(e){return a.apply(void 0,[e].concat(n))})}:(e=c.produce(a,e,function(e,t){n=e,r=t}),"undefined"!=typeof Promise&&e instanceof Promise?e.then(function(e){return[e,n,r]}):[e,n,r])},"boolean"==typeof(null==e?void 0:e.useProxies)&&this.setUseProxies(e.useProxies),"boolean"==typeof(null==e?void 0:e.autoFreeze)&&this.setAutoFreeze(e.autoFreeze)}h(x,function(e,t){E[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}}),E.deleteProperty=function(e,t){return E.set.call(this,e,t,void 0)},E.set=function(e,t,n){return x.set.call(this,e[0],t,n,e[0])},(a=be.prototype).createDraft=function(e){p(e)||d(8),i(e)&&(i(t=e)||d(22,t),e=function n(e){if(!p(e))return e;var r,a=e[k],t=o(e);if(a){if(!a.P&&(a.i<4||!m("ES5").K(a)))return a.t;a.I=!0,r=ce(e,t),a.I=!1}else r=ce(e,t);return h(r,function(e,t){a&&J(a.t,e)===t||B(r,e,n(t))}),3===t?new Set(r):r}(t));var t=te(this),e=ue(this,e,void 0);return e[k].C=!0,ee(t),e},a.finishDraft=function(e,t){e=(e&&e[k]).A;return Z(e,t),re(void 0,e)},a.setAutoFreeze=function(e){this.D=e},a.setUseProxies=function(e){e&&!pe&&d(20),this.O=e},a.applyPatches=function(e,t){for(var n=t.length-1;0<=n;n--){var r=t[n];if(0===r.path.length&&"replace"===r.op){e=r.value;break}}-1<n&&(t=t.slice(n+1));var a=m("Patches").$;return i(e)?a(e,t):this.produce(e,function(e){return a(e,t)})},(r=new be).produce,r.produceWithPatches.bind(r),r.setAutoFreeze.bind(r),r.setUseProxies.bind(r),r.applyPatches.bind(r),r.createDraft.bind(r),r.finishDraft.bind(r);var we=f(3297);function P(e){return"Minified Redux error #"+e+"; visit https://redux.js.org/Errors?code="+e+" for the full message or use the non-minified dev environment for full errors. "}function ke(){return Math.random().toString(36).substring(7).split("").join(".")}var Se="function"==typeof Symbol&&Symbol.observable||"@@observable",_={INIT:"@@redux/INIT"+ke(),REPLACE:"@@redux/REPLACE"+ke(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+ke()}};function xe(e){if("object"==typeof e&&null!==e){for(var t=e;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}}function Ee(e,t,n){if("function"==typeof t&&"function"==typeof n||"function"==typeof n&&"function"==typeof arguments[3])throw new Error(P(0));if("function"==typeof t&&void 0===n&&(n=t,t=void 0),void 0!==n){if("function"!=typeof n)throw new Error(P(1));return n(Ee)(e,t)}if("function"!=typeof e)throw new Error(P(2));var r=e,a=t,o=[],l=o,i=!1;function u(){l===o&&(l=o.slice())}function c(){if(i)throw new Error(P(3));return a}function s(t){if("function"!=typeof t)throw new Error(P(4));if(i)throw new Error(P(5));var n=!0;return u(),l.push(t),function(){if(n){if(i)throw new Error(P(6));n=!1,u();var e=l.indexOf(t);l.splice(e,1),o=null}}}function f(e){if(!xe(e))throw new Error(P(7));if(void 0===e.type)throw new Error(P(8));if(i)throw new Error(P(9));try{i=!0,a=r(a,e)}finally{i=!1}for(var t=o=l,n=0;n<t.length;n++)(0,t[n])();return e}return f({type:_.INIT}),(n={dispatch:f,subscribe:s,getState:c,replaceReducer:function(e){if("function"!=typeof e)throw new Error(P(10));r=e,f({type:_.REPLACE})}})[Se]=function(){var n=s,e={subscribe:function(e){if("object"!=typeof e||null===e)throw new Error(P(11));function t(){e.next&&e.next(c())}return t(),{unsubscribe:n(t)}}};return e[Se]=function(){return this},e},n}function Pe(e){for(var t=Object.keys(e),u={},n=0;n<t.length;n++){var r=t[n];"function"==typeof e[r]&&(u[r]=e[r])}var c,a,s=Object.keys(u);try{a=u,Object.keys(a).forEach(function(e){e=a[e];if(void 0===e(void 0,{type:_.INIT}))throw new Error(P(12));if(void 0===e(void 0,{type:_.PROBE_UNKNOWN_ACTION()}))throw new Error(P(13))})}catch(e){c=e}return function(e,t){if(void 0===e&&(e={}),c)throw c;for(var n=!1,r={},a=0;a<s.length;a++){var o=s[a],l=u[o],i=e[o],l=l(i,t);if(void 0===l)throw t&&t.type,new Error(P(14));r[o]=l,n=n||l!==i}return(n=n||s.length!==Object.keys(e).length)?r:e}}function C(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return 0===t.length?function(e){return e}:1===t.length?t[0]:t.reduce(function(e,t){return function(){return e(t.apply(void 0,arguments))}})}function _e(a){return function(e){var n=e.dispatch,r=e.getState;return function(t){return function(e){return"function"==typeof e?e(n,r,a):t(e)}}}}(r=_e()).withExtraArgument=_e;const at=r;Ce=function(e,t){return(Ce=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(e,t){e.__proto__=t}:function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}))(e,t)};var Ce,r=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}Ce(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},O=function(e,t){for(var n=0,r=t.length,a=e.length;n<r;n++,a++)e[a]=t[n];return e},Oe=Object.defineProperty,Ne=(Object.defineProperties,Object.getOwnPropertyDescriptors,Object.getOwnPropertySymbols),Te=Object.prototype.hasOwnProperty,De=Object.prototype.propertyIsEnumerable,Ie=function(e,t,n){return t in e?Oe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n},Le=function(e,t){for(var n in t=t||{})Te.call(t,n)&&Ie(e,n,t[n]);if(Ne)for(var r=0,a=Ne(t);r<a.length;r++){n=a[r];De.call(t,n)&&Ie(e,n,t[n])}return e},Me="undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(0!==arguments.length)return"object"==typeof arguments[0]?C:C.apply(null,arguments)};function ze(e){if("object"!=typeof e||null===e)return!1;e=Object.getPrototypeOf(e);if(null===e)return!0;for(var t=e;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return e===t}function Re(r,a){function e(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(a){var n=a.apply(void 0,e);if(n)return Le(Le({type:r,payload:n.payload},"meta"in n&&{meta:n.meta}),"error"in n&&{error:n.error});throw new Error("prepareAction did not return an object")}return{type:r,payload:e[0]}}return e.toString=function(){return""+r},e.type=r,e.match=function(e){return e.type===r},e}je=Array,r(N,je),Object.defineProperty(N,Symbol.species,{get:function(){return N},enumerable:!1,configurable:!0}),N.prototype.concat=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return je.prototype.concat.apply(this,e)},N.prototype.prepend=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return new(1===e.length&&Array.isArray(e[0])?N.bind.apply(N,O([void 0],e[0].concat(this))):N.bind.apply(N,O([void 0],e.concat(this))))};var je,Ae=N;function N(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=je.apply(this,e)||this;return Object.setPrototypeOf(n,N.prototype),n}Fe=Array,r(T,Fe),Object.defineProperty(T,Symbol.species,{get:function(){return T},enumerable:!1,configurable:!0}),T.prototype.concat=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return Fe.prototype.concat.apply(this,e)},T.prototype.prepend=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return new(1===e.length&&Array.isArray(e[0])?T.bind.apply(T,O([void 0],e[0].concat(this))):T.bind.apply(T,O([void 0],e.concat(this))))};var Fe,Ue=T;function T(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=Fe.apply(this,e)||this;return Object.setPrototypeOf(n,T.prototype),n}function $e(){return function(e){var t=void 0===(t=(e=void 0===(e=e)?{}:e).thunk)||t,e=(e.immutableCheck,e.serializableCheck,e.actionCreatorCheck,new Ae);return t&&("boolean"==typeof t?e.push(at):e.push(at.withExtraArgument(t.extraArgument))),e}}function Ve(e){var t,n=$e(),e=e||{},r=e.reducer,r=void 0===r?void 0:r,a=e.middleware,a=void 0===a?n():a,o=e.devTools,o=void 0===o||o,l=e.preloadedState,l=void 0===l?void 0:l,e=e.enhancers,e=void 0===e?void 0:e;if("function"==typeof r)t=r;else{if(!ze(r))throw new Error('"reducer" is a required argument, and must be a function or an object of functions that can be passed to combineReducers');t=Pe(r)}r=a,"function"==typeof r&&(r=r(n)),a=function(){for(var e=arguments.length,o=new Array(e),t=0;t<e;t++)o[t]=arguments[t];return function(a){return function(){var e=a.apply(void 0,arguments),t=function(){throw new Error(P(15))},n={getState:e.getState,dispatch:function(){return t.apply(void 0,arguments)}},r=o.map(function(e){return e(n)}),t=C.apply(void 0,r)(e.dispatch);return(0,we.A)((0,we.A)({},e),{},{dispatch:t})}}}.apply(void 0,r),n=C,o&&(n=Me(Le({trace:!1},"object"==typeof o&&o))),r=new Ue(a),o=r;return Array.isArray(e)?o=O([a],e):"function"==typeof e&&(o=e(r)),Ee(t,l,n.apply(void 0,o))}function Je(t){return function(e){setTimeout(e,t)}}Object.assign,Re((r="listenerMiddleware")+"/add"),Re(r+"/removeAll"),Re(r+"/remove"),"function"==typeof queueMicrotask&&queueMicrotask.bind("undefined"!=typeof window?window:void 0!==f.g?f.g:globalThis),"undefined"!=typeof window&&window.requestAnimationFrame||Je(10),se();var Be=f(41862);function He(e){return`Minified Redux error #${e}; visit https://redux.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var We=()=>Math.random().toString(36).substring(7).split("").join("."),qe={INIT:"@@redux/INIT"+We(),REPLACE:"@@redux/REPLACE"+We(),PROBE_UNKNOWN_ACTION:()=>"@@redux/PROBE_UNKNOWN_ACTION"+We()},D=function(){return(D=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var a in t=arguments[n])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e}).apply(this,arguments)},Qe={extract:{taskId:void 0,selectId:"",clickShape:{status:!1,id:""},data:{tieImages:[],tieDocContents:[],tieInfo:{},sequenct:[],calcuJson:[],listJson:[],drawJson:[],tableJson:[],tableListJson:{},extractSeq:[],llmSeq:[],llmTieInfo:{},llmTieTableInfo:{}},wordSelection:{show:!1,showOptionList:!1,tableSelected:{tableKey:"",tableId:"",lineKey:"",lineName:"",lineIndex:0},pageNum:null,words:"",wordsShapeId:[],activeShapeId:"",field:"",type:"normal"},status:null,progress:"",traceId:null},attachment:[],history:{historyList:[],delId:0},responseData:null,loadingProgress:"文档信息提取中，请稍候......"};function Ke(t,e){void 0===t&&(t=Qe);var n=e.payload;switch(e.type){case"init":return D(D({},t),Qe);case"changeExtractData":return D(D({},t),{extract:D(D({},t.extract),n)});case"updateProgress":return D(D({},t),{loadingProgress:n});case"changeAttachmentList":return D(D({},t),{attachment:n});case"changeHistoryList":return D(D({},t),{history:D(D({},t.history),{historyList:n})});case"setDeleteHistoricalDetailId":return D(D({},t),{history:D(D({},t.history),{delId:n})});case"doDeleteHistorical":return D(D({},t),{history:D(D({},t.history),{historyList:t.history.historyList.filter(function(e){return e.id!==t.history.delId}).map(function(e,t){return D({},e)}),delId:0})});case"changeSelectId":return D(D({},t),{extract:D(D({},t.extract),{selectId:n})});case"clickShape":return D(D({},t),{extract:D(D({},t.extract),{clickShape:{status:!t.extract.clickShape.status,id:n}})});case"setWordSelection":return D(D({},t),{extract:D(D({},t.extract),{wordSelection:D(D({},t.extract.wordSelection),n)})});case"saveDrawBindListJson":return D(D({},t),{extract:D(D({},t.extract),{data:D(D({},t.extract.data),{listJson:t.extract.data.listJson.map(function(e){return e.key===n.key?D(D({},e),{drawData:n.data,selectType:n.type,select:n.extractId,value:n.value,confidence:n.confidence}):e}),drawJson:t.extract.data.drawJson.filter(function(e){return e.extractId!==t.extract.data.listJson.find(function(e){return e.key===n.key}).select}).map(function(t){return n.data.find(function(e){return e.shapeId===t.shapeId})?n.data.find(function(e){return e.shapeId===t.shapeId}):t})})})});case"saveDrawBindTableListJson":return D(D({},t),{extract:D(D({},t.extract),{data:D(D({},t.extract.data),{tableListJson:n.cloneTable,drawJson:t.extract.data.drawJson.filter(function(e){return e.extractId!==n.lastDrawDataId&&e.extractId}).concat(n.drawData)})})});case"saveDrawBindLlmTableListJson":return D(D({},t),{extract:D(D({},t.extract),{data:D(D({},t.extract.data),{llmTableListJson:n.cloneLlmTable,drawJson:t.extract.data.drawJson.filter(function(e){return e.extractId!==n.lastDrawDataId&&e.extractId}).concat(n.drawData)})})});case"setDrawJson":return D(D({},t),{extract:D(D({},t.extract),{data:D(D({},t.extract.data),{drawJson:n})})});case"setTableInfo":return D(D({},t),{extract:D(D({},t.extract),{data:D(D({},t.extract.data),{tableListJson:n})})});case"setLlmTableInfo":return D(D({},t),{extract:D(D({},t.extract),{data:D(D({},t.extract.data),{llmTableListJson:n})})});case"hiddenTableUnit":return D(D({},t),{extract:D(D({},t.extract),{data:D(D({},t.extract.data),{tableJson:n})})});case"hiddenLlmTableUnit":return D(D({},t),{extract:D(D({},t.extract),{data:D(D({},t.extract.data),{llmTableJson:n})})});case"listJsonSelect":return D(D({},t),{extract:D(D({},t.extract),{data:D(D({},t.extract.data),{listJson:t.extract.data.listJson.map(function(e){return e.key===n.key?D(D({},e),{value:n.value,select:n.select,selectType:n.selectType,confidence:n.confidence}):e})})})});case"responseData":return D(D({},t),{responseData:n});case"changeF7Currency":return D(D({},t),{extract:D(D({},t.extract),{data:D(D({},t.extract.data),{drawJson:"drawJson"===t.extract.data.listJson.find(function(e){return e.key===n.key}).selectType?t.extract.data.drawJson.filter(function(e){return e.extractId!==t.extract.data.listJson.find(function(e){return e.key===n.key}).select}):t.extract.data.drawJson,listJson:t.extract.data.listJson.map(function(e){return e.key===n.key?D(D({},e),{value:n.value,select:n.select,selectType:n.selectType,confidence:n.confidence}):e})})})});default:return t}}var I=function(){return(I=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var a in t=arguments[n])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e}).apply(this,arguments)},Ye={model:{invokeAsync:function(e,t){}},serverUrl:"",billId:"",viewType:"ie_test_task",environment:"local",planList:[]},L=function(){return(L=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var a in t=arguments[n])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e}).apply(this,arguments)},Xe={mainpage:{name:"",type:"",url:"",status:"loading",tempFileId:"",hasData:!1},displayPage:{name:"",type:""}},M=function(){return(M=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var a in t=arguments[n])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e}).apply(this,arguments)},Ge={activeView:"homepage",operate:"create_extract",controlDisplay:!1,attachmentUpload:!1,scale:.5,hiddenList:!1,paint:!1,popup:{show:!1,data:{onOk:function(){return null},onCancel:function(){return null},title:"",msg:""}}},Ze=function(e,t){void 0===e&&(e=Ge);var n=t.payload;switch(t.type){case"changeControl":return M(M({},e),n);case"changeStartPaint":return M(M({},e),{paint:n});case"showPopUp":return M(M({},e),{popup:n});case"hiddenPopUp":return M(M({},e),{popup:M({},Ge.popup)});case"changeHiddenList":return M(M({},e),{hiddenList:n});case"changeScale":return M(M({},e),{scale:n});case"changeActiveView":return M(M({},e),{activeView:n});case"changeOperate":return M(M({},e),{operate:n});default:return M({},e)}},et=f(42914),z=function(){return(z=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var a in t=arguments[n])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e}).apply(this,arguments)},tt=function(t){var n,r=Object.keys(t);const u={};for(let e=0;e<r.length;e++){var a=r[e];"function"==typeof t[a]&&(u[a]=t[a])}const c=Object.keys(u);let s;try{n=u,Object.keys(n).forEach(e=>{e=n[e];if(void 0===e(void 0,{type:qe.INIT}))throw new Error(He(12));if(void 0===e(void 0,{type:qe.PROBE_UNKNOWN_ACTION()}))throw new Error(He(13))})}catch(e){s=e}return function(t={},n){if(s)throw s;let r=!1;var a={};for(let e=0;e<c.length;e++){var o=c[e],l=u[o],i=t[o],l=l(i,n);if(void 0===l)throw n&&n.type,new Error(He(14));a[o]=l,r=r||l!==i}return(r=r||c.length!==Object.keys(t).length)?a:t}}({global:function(e,t){void 0===e&&(e=Ye);var n,r=t.payload;switch(t.type){case"setModel":return I(I({},e),{model:r});case"setEnvironment":return I(I({},e),{environment:r});case"changeGlobal":return I(I({},e),r);case"outputMsg":return e.model.invokeAsync("resultData",{code:"0",message:r}),I({},e);case"getHistoryList":return null!=(n=e.model)&&n.invokeAsync("ie_history_task",e.billId),I({},e);default:return I({},e)}},data:Ke,file:function(e,t){void 0===e&&(e=Xe);var n=t.payload;switch(t.type){case"changeMainPageFile":return L(L({},e),{mainpage:L(L({},e.mainpage),n)});case"changeDisplayPageFile":return L(L({},e),{displayPage:n});default:return L({},e)}},control:Ze});function nt(e,t){var n=tt(e,t),r=(e=t).payload;switch(e.type){case"backHomePage":return et.O1.destory(),z(z({},n),{data:Ke(n.data,{type:"init",payload:"init"}),control:Ze(n.control,{type:"changeControl",payload:{activeView:"homepage"}})});case"startExtract":return z(z({},n),{data:Ke(n.data,{type:"changeExtractData",payload:z(z({},r.data),{loadingProgress:"文档信息提取中，请稍候......"})}),control:Ze(n.control,{type:"changeControl",payload:r.control})});case"showTask":case"showSuccessfulResult":case"showErrorResult":return z(z({},n),{data:Ke(n.data,{type:"changeExtractData",payload:r.data}),control:Ze(n.control,{type:"changeControl",payload:r.control})});case"invokePolling":return n.data.extract.taskId&&(r===n.data.extract.taskId?et.O1.invokePolling(function(){return n.global.model.invokeAsync("polling",{taskId:n.data.extract.taskId,createTime:"".concat((new Date).getTime())})}):et.O1.timeOut&&n.global.model.invokeAsync("resultData",{code:"0",message:"taskId校验失败"})),z({},n);default:return n}}function rt(e){this._setModel(e)}r=window.KDApi,rt.prototype={_setModel:function(e){this.model=e},init:function(e){var t=this;this.store=Ve({reducer:nt,middleware:function(e){return e({serializableCheck:{ignoreActions:!0,ignoreState:!0}})}}),Promise.all([f.e(124),f.e(96),f.e(23)]).then(f.bind(f,57621)).then(function(e){e=e.default;Be.createRoot(t.model.dom).render($.createElement(V.Kq,{store:t.store},$.createElement(e,null)))}),this.model.invokeAsync("init","init"),this.store.dispatch({type:"setEnvironment",payload:"online"}),this.store.dispatch({type:"setModel",payload:{invokeAsync:this.model.invokeAsync}})},update:function(e){e.data&&(0,et.JY)(e.data,this.store)},destoryed:function(){}},r.register("ai-cvp-ocr-tie",rt)}})();