web2019/static/js/shop.bundle.js

2 lines
356 KiB
JavaScript
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/*! For license information please see shop.bundle.js.LICENSE.txt */
(()=>{var e={513:(e,t)=>{"use strict";var n=Symbol.for("react.element"),r=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),l=Symbol.for("react.provider"),s=Symbol.for("react.context"),c=Symbol.for("react.server_context"),u=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),p=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),m=Symbol.for("react.lazy");Symbol.for("react.offscreen");Symbol.for("react.module.reference"),t.isContextConsumer=function(e){return function(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case n:switch(e=e.type){case o:case i:case a:case d:case p:return e;default:switch(e=e&&e.$$typeof){case c:case s:case u:case m:case f:case l:return e;default:return t}}case r:return t}}}(e)===s}},749:(e,t,n)=>{"use strict";e.exports=n(513)},485:(e,t)=>{var n;!function(){"use strict";var r={}.hasOwnProperty;function o(){for(var e=[],t=0;t<arguments.length;t++){var n=arguments[t];if(n){var a=typeof n;if("string"===a||"number"===a)e.push(n);else if(Array.isArray(n)){if(n.length){var i=o.apply(null,n);i&&e.push(i)}}else if("object"===a){if(n.toString!==Object.prototype.toString&&!n.toString.toString().includes("[native code]")){e.push(n.toString());continue}for(var l in n)r.call(n,l)&&n[l]&&e.push(l)}}}return e.join(" ")}e.exports?(o.default=o,e.exports=o):void 0===(n=function(){return o}.apply(t,[]))||(e.exports=n)}()},146:(e,t,n)=>{"use strict";var r=n(404),o={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},a={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},i={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},l={};function s(e){return r.isMemo(e)?i:l[e.$$typeof]||o}l[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},l[r.Memo]=i;var c=Object.defineProperty,u=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,p=Object.getOwnPropertyDescriptor,f=Object.getPrototypeOf,m=Object.prototype;e.exports=function e(t,n,r){if("string"!=typeof n){if(m){var o=f(n);o&&o!==m&&e(t,o,r)}var i=u(n);d&&(i=i.concat(d(n)));for(var l=s(t),g=s(n),h=0;h<i.length;++h){var b=i[h];if(!(a[b]||r&&r[b]||g&&g[b]||l&&l[b])){var v=p(n,b);try{c(t,b,v)}catch(e){}}}}return t}},72:(e,t)=>{"use strict";var n="function"==typeof Symbol&&Symbol.for,r=n?Symbol.for("react.element"):60103,o=n?Symbol.for("react.portal"):60106,a=n?Symbol.for("react.fragment"):60107,i=n?Symbol.for("react.strict_mode"):60108,l=n?Symbol.for("react.profiler"):60114,s=n?Symbol.for("react.provider"):60109,c=n?Symbol.for("react.context"):60110,u=n?Symbol.for("react.async_mode"):60111,d=n?Symbol.for("react.concurrent_mode"):60111,p=n?Symbol.for("react.forward_ref"):60112,f=n?Symbol.for("react.suspense"):60113,m=n?Symbol.for("react.suspense_list"):60120,g=n?Symbol.for("react.memo"):60115,h=n?Symbol.for("react.lazy"):60116,b=n?Symbol.for("react.block"):60121,v=n?Symbol.for("react.fundamental"):60117,y=n?Symbol.for("react.responder"):60118,w=n?Symbol.for("react.scope"):60119;function E(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case u:case d:case a:case l:case i:case f:return e;default:switch(e=e&&e.$$typeof){case c:case p:case h:case g:case s:return e;default:return t}}case o:return t}}}function x(e){return E(e)===d}t.AsyncMode=u,t.ConcurrentMode=d,t.ContextConsumer=c,t.ContextProvider=s,t.Element=r,t.ForwardRef=p,t.Fragment=a,t.Lazy=h,t.Memo=g,t.Portal=o,t.Profiler=l,t.StrictMode=i,t.Suspense=f,t.isAsyncMode=function(e){return x(e)||E(e)===u},t.isConcurrentMode=x,t.isContextConsumer=function(e){return E(e)===c},t.isContextProvider=function(e){return E(e)===s},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return E(e)===p},t.isFragment=function(e){return E(e)===a},t.isLazy=function(e){return E(e)===h},t.isMemo=function(e){return E(e)===g},t.isPortal=function(e){return E(e)===o},t.isProfiler=function(e){return E(e)===l},t.isStrictMode=function(e){return E(e)===i},t.isSuspense=function(e){return E(e)===f},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===a||e===d||e===l||e===i||e===f||e===m||"object"==typeof e&&null!==e&&(e.$$typeof===h||e.$$typeof===g||e.$$typeof===s||e.$$typeof===c||e.$$typeof===p||e.$$typeof===v||e.$$typeof===y||e.$$typeof===w||e.$$typeof===b)},t.typeOf=E},404:(e,t,n)=>{"use strict";e.exports=n(72)},311:e=>{"use strict";e.exports=function(e,t,n,r,o,a,i,l){if(!e){var s;if(void 0===t)s=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var c=[n,r,o,a,i,l],u=0;(s=new Error(t.replace(/%s/g,(function(){return c[u++]})))).name="Invariant Violation"}throw s.framesToPop=1,s}}},678:function(e,t,n){var r,o;r=function(){"use strict";Array.isArray||(Array.isArray=function(e){return"[object Array]"===Object.prototype.toString.call(e)});var e={},t={"==":function(e,t){return e==t},"===":function(e,t){return e===t},"!=":function(e,t){return e!=t},"!==":function(e,t){return e!==t},">":function(e,t){return e>t},">=":function(e,t){return e>=t},"<":function(e,t,n){return void 0===n?e<t:e<t&&t<n},"<=":function(e,t,n){return void 0===n?e<=t:e<=t&&t<=n},"!!":function(t){return e.truthy(t)},"!":function(t){return!e.truthy(t)},"%":function(e,t){return e%t},log:function(e){return console.log(e),e},in:function(e,t){return!(!t||void 0===t.indexOf)&&-1!==t.indexOf(e)},cat:function(){return Array.prototype.join.call(arguments,"")},substr:function(e,t,n){if(n<0){var r=String(e).substr(t);return r.substr(0,r.length+n)}return String(e).substr(t,n)},"+":function(){return Array.prototype.reduce.call(arguments,(function(e,t){return parseFloat(e,10)+parseFloat(t,10)}),0)},"*":function(){return Array.prototype.reduce.call(arguments,(function(e,t){return parseFloat(e,10)*parseFloat(t,10)}))},"-":function(e,t){return void 0===t?-e:e-t},"/":function(e,t){return e/t},min:function(){return Math.min.apply(this,arguments)},max:function(){return Math.max.apply(this,arguments)},merge:function(){return Array.prototype.reduce.call(arguments,(function(e,t){return e.concat(t)}),[])},var:function(e,t){var n=void 0===t?null:t,r=this;if(void 0===e||""===e||null===e)return r;for(var o=String(e).split("."),a=0;a<o.length;a++){if(null==r)return n;if(void 0===(r=r[o[a]]))return n}return r},missing:function(){for(var t=[],n=Array.isArray(arguments[0])?arguments[0]:arguments,r=0;r<n.length;r++){var o=n[r],a=e.apply({var:o},this);null!==a&&""!==a||t.push(o)}return t},missing_some:function(t,n){var r=e.apply({missing:n},this);return n.length-r.length>=t?[]:r}};return e.is_logic=function(e){return"object"==typeof e&&null!==e&&!Array.isArray(e)&&1===Object.keys(e).length},e.truthy=function(e){return!(Array.isArray(e)&&0===e.length||!e)},e.get_operator=function(e){return Object.keys(e)[0]},e.get_values=function(t){return t[e.get_operator(t)]},e.apply=function(n,r){if(Array.isArray(n))return n.map((function(t){return e.apply(t,r)}));if(!e.is_logic(n))return n;var o,a,i,l,s,c=e.get_operator(n),u=n[c];if(Array.isArray(u)||(u=[u]),"if"===c||"?:"==c){for(o=0;o<u.length-1;o+=2)if(e.truthy(e.apply(u[o],r)))return e.apply(u[o+1],r);return u.length===o+1?e.apply(u[o],r):null}if("and"===c){for(o=0;o<u.length;o+=1)if(a=e.apply(u[o],r),!e.truthy(a))return a;return a}if("or"===c){for(o=0;o<u.length;o+=1)if(a=e.apply(u[o],r),e.truthy(a))return a;return a}if("filter"===c)return l=e.apply(u[0],r),i=u[1],Array.isArray(l)?l.filter((function(t){return e.truthy(e.apply(i,t))})):[];if("map"===c)return l=e.apply(u[0],r),i=u[1],Array.isArray(l)?l.map((function(t){return e.apply(i,t)})):[];if("reduce"===c)return l=e.apply(u[0],r),i=u[1],s=void 0!==u[2]?u[2]:null,Array.isArray(l)?l.reduce((function(t,n){return e.apply(i,{current:n,accumulator:t})}),s):s;if("all"===c){if(l=e.apply(u[0],r),i=u[1],!Array.isArray(l)||!l.length)return!1;for(o=0;o<l.length;o+=1)if(!e.truthy(e.apply(i,l[o])))return!1;return!0}if("none"===c){if(l=e.apply(u[0],r),i=u[1],!Array.isArray(l)||!l.length)return!0;for(o=0;o<l.length;o+=1)if(e.truthy(e.apply(i,l[o])))return!1;return!0}if("some"===c){if(l=e.apply(u[0],r),i=u[1],!Array.isArray(l)||!l.length)return!1;for(o=0;o<l.length;o+=1)if(e.truthy(e.apply(i,l[o])))return!0;return!1}if(u=u.map((function(t){return e.apply(t,r)})),t.hasOwnProperty(c)&&"function"==typeof t[c])return t[c].apply(r,u);if(c.indexOf(".")>0){var d=String(c).split("."),p=t;for(o=0;o<d.length;o++){if(!p.hasOwnProperty(d[o]))throw new Error("Unrecognized operation "+c+" (failed at "+d.slice(0,o+1).join(".")+")");p=p[d[o]]}return p.apply(r,u)}throw new Error("Unrecognized operation "+c)},e.uses_data=function(t){var n=[];if(e.is_logic(t)){var r=e.get_operator(t),o=t[r];Array.isArray(o)||(o=[o]),"var"===r?n.push(o[0]):o.forEach((function(t){n.push.apply(n,e.uses_data(t))}))}return function(e){for(var t=[],n=0,r=e.length;n<r;n++)-1===t.indexOf(e[n])&&t.push(e[n]);return t}(n)},e.add_operation=function(e,n){t[e]=n},e.rm_operation=function(e){delete t[e]},e.rule_like=function(t,n){if(n===t)return!0;if("@"===n)return!0;if("number"===n)return"number"==typeof t;if("string"===n)return"string"==typeof t;if("array"===n)return Array.isArray(t)&&!e.is_logic(t);if(e.is_logic(n)){if(e.is_logic(t)){var r=e.get_operator(n),o=e.get_operator(t);if("@"===r||r===o)return e.rule_like(e.get_values(t,!1),e.get_values(n,!1))}return!1}if(Array.isArray(n)){if(Array.isArray(t)){if(n.length!==t.length)return!1;for(var a=0;a<n.length;a+=1)if(!e.rule_like(t[a],n[a]))return!1;return!0}return!1}return!1},e},void 0===(o=r.call(t,n,t,e))||(e.exports=o)},694:(e,t,n)=>{"use strict";var r=n(925);function o(){}function a(){}a.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,a,i){if(i!==r){var l=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw l.name="Invariant Violation",l}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:a,resetWarningCache:o};return n.PropTypes=n,n}},556:(e,t,n)=>{e.exports=n(694)()},925:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},551:(e,t,n)=>{"use strict";var r=n(540),o=n(982);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 i=new Set,l={};function s(e,t){c(e,t),c(e+"Capture",t)}function c(e,t){for(l[e]=t,e=0;e<t.length;e++)i.add(t[e])}var u=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),d=Object.prototype.hasOwnProperty,p=/^[: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]*$/,f={},m={};function g(e,t,n,r,o,a,i){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=a,this.removeEmptyString=i}var h={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){h[e]=new g(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];h[t]=new g(t,1,!1,e[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){h[e]=new g(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){h[e]=new g(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){h[e]=new g(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){h[e]=new g(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){h[e]=new g(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){h[e]=new g(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){h[e]=new g(e,5,!1,e.toLowerCase(),null,!1,!1)}));var b=/[\-:]([a-z])/g;function v(e){return e[1].toUpperCase()}function y(e,t,n,r){var o=h.hasOwnProperty(t)?h[t]:null;(null!==o?0!==o.type:r||!(2<t.length)||"o"!==t[0]&&"O"!==t[0]||"n"!==t[1]&&"N"!==t[1])&&(function(e,t,n,r){if(null==t||function(e,t,n,r){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!r&&(null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,n,r))return!0;if(r)return!1;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,n,o,r)&&(n=null),r||null===o?function(e){return!!d.call(m,e)||!d.call(f,e)&&(p.test(e)?m[e]=!0:(f[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):o.mustUseProperty?e[o.propertyName]=null===n?3!==o.type&&"":n:(t=o.attributeName,r=o.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(o=o.type)||4===o&&!0===n?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(e){var t=e.replace(b,v);h[t]=new g(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(b,v);h[t]=new g(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(b,v);h[t]=new g(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){h[e]=new g(e,1,!1,e.toLowerCase(),null,!1,!1)})),h.xlinkHref=new g("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){h[e]=new g(e,1,!1,e.toLowerCase(),null,!0,!0)}));var w=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,E=Symbol.for("react.element"),x=Symbol.for("react.portal"),S=Symbol.for("react.fragment"),k=Symbol.for("react.strict_mode"),C=Symbol.for("react.profiler"),_=Symbol.for("react.provider"),O=Symbol.for("react.context"),N=Symbol.for("react.forward_ref"),D=Symbol.for("react.suspense"),I=Symbol.for("react.suspense_list"),P=Symbol.for("react.memo"),T=Symbol.for("react.lazy");Symbol.for("react.scope"),Symbol.for("react.debug_trace_mode");var R=Symbol.for("react.offscreen");Symbol.for("react.legacy_hidden"),Symbol.for("react.cache"),Symbol.for("react.tracing_marker");var A=Symbol.iterator;function L(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=A&&e[A]||e["@@iterator"])?e:null}var M,B=Object.assign;function F(e){if(void 0===M)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);M=t&&t[1]||""}return"\n"+M+e}var j=!1;function z(e,t){if(!e||j)return"";j=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(t,[])}catch(e){var r=e}Reflect.construct(e,[],t)}else{try{t.call()}catch(e){r=e}e.call(t.prototype)}else{try{throw Error()}catch(e){r=e}e()}}catch(t){if(t&&r&&"string"==typeof t.stack){for(var o=t.stack.split("\n"),a=r.stack.split("\n"),i=o.length-1,l=a.length-1;1<=i&&0<=l&&o[i]!==a[l];)l--;for(;1<=i&&0<=l;i--,l--)if(o[i]!==a[l]){if(1!==i||1!==l)do{if(i--,0>--l||o[i]!==a[l]){var s="\n"+o[i].replace(" at new "," at ");return e.displayName&&s.includes("<anonymous>")&&(s=s.replace("<anonymous>",e.displayName)),s}}while(1<=i&&0<=l);break}}}finally{j=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?F(e):""}function U(e){switch(e.tag){case 5:return F(e.type);case 16:return F("Lazy");case 13:return F("Suspense");case 19:return F("SuspenseList");case 0:case 2:case 15:return z(e.type,!1);case 11:return z(e.type.render,!1);case 1:return z(e.type,!0);default:return""}}function W(e){if(null==e)return null;if("function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case S:return"Fragment";case x:return"Portal";case C:return"Profiler";case k:return"StrictMode";case D:return"Suspense";case I:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case O:return(e.displayName||"Context")+".Consumer";case _:return(e._context.displayName||"Context")+".Provider";case N:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case P:return null!==(t=e.displayName||null)?t:W(e.type)||"Memo";case T:t=e._payload,e=e._init;try{return W(e(t))}catch(e){}}return null}function $(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=(e=t.render).displayName||e.name||"",t.displayName||(""!==e?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return W(t);case 8:return t===k?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if("function"==typeof t)return t.displayName||t.name||null;if("string"==typeof t)return t}return null}function H(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function G(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function V(e){e._valueTracker||(e._valueTracker=function(e){var t=G(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&void 0!==n&&"function"==typeof n.get&&"function"==typeof n.set){var o=n.get,a=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(e){r=""+e,a.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function q(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=G(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function K(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function Q(e,t){var n=t.checked;return B({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function Y(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=H(null!=t.value?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function X(e,t){null!=(t=t.checked)&&y(e,"checked",t,!1)}function J(e,t){X(e,t);var n=H(t.value),r=t.type;if(null!=n)"number"===r?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===r||"reset"===r)return void e.removeAttribute("value");t.hasOwnProperty("value")?ee(e,t.type,n):t.hasOwnProperty("defaultValue")&&ee(e,t.type,H(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function Z(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!("submit"!==r&&"reset"!==r||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function ee(e,t,n){"number"===t&&K(e.ownerDocument)===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var te=Array.isArray;function ne(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o<n.length;o++)t["$"+n[o]]=!0;for(n=0;n<e.length;n++)o=t.hasOwnProperty("$"+e[n].value),e[n].selected!==o&&(e[n].selected=o),o&&r&&(e[n].defaultSelected=!0)}else{for(n=""+H(n),t=null,o=0;o<e.length;o++){if(e[o].value===n)return e[o].selected=!0,void(r&&(e[o].defaultSelected=!0));null!==t||e[o].disabled||(t=e[o])}null!==t&&(t.selected=!0)}}function re(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(a(91));return B({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function oe(e,t){var n=t.value;if(null==n){if(n=t.children,t=t.defaultValue,null!=n){if(null!=t)throw Error(a(92));if(te(n)){if(1<n.length)throw Error(a(93));n=n[0]}t=n}null==t&&(t=""),n=t}e._wrapperState={initialValue:H(n)}}function ae(e,t){var n=H(t.value),r=H(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 ie(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}function le(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function se(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?le(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var ce,ue,de=(ue=function(e,t){if("http://www.w3.org/2000/svg"!==e.namespaceURI||"innerHTML"in e)e.innerHTML=t;else{for((ce=ce||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=ce.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}},"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,t,n,r){MSApp.execUnsafeLocalFunction((function(){return ue(e,t)}))}:ue);function pe(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 fe={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},me=["Webkit","ms","Moz","O"];function ge(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||fe.hasOwnProperty(e)&&fe[e]?(""+t).trim():t+"px"}function he(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),o=ge(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}Object.keys(fe).forEach((function(e){me.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),fe[t]=fe[e]}))}));var be=B({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function ve(e,t){if(t){if(be[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 ye(e,t){if(-1===e.indexOf("-"))return"string"==typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var we=null;function Ee(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var xe=null,Se=null,ke=null;function Ce(e){if(e=wo(e)){if("function"!=typeof xe)throw Error(a(280));var t=e.stateNode;t&&(t=xo(t),xe(e.stateNode,e.type,t))}}function _e(e){Se?ke?ke.push(e):ke=[e]:Se=e}function Oe(){if(Se){var e=Se,t=ke;if(ke=Se=null,Ce(e),t)for(e=0;e<t.length;e++)Ce(t[e])}}function Ne(e,t){return e(t)}function De(){}var Ie=!1;function Pe(e,t,n){if(Ie)return e(t,n);Ie=!0;try{return Ne(e,t,n)}finally{Ie=!1,(null!==Se||null!==ke)&&(De(),Oe())}}function Te(e,t){var n=e.stateNode;if(null===n)return null;var r=xo(n);if(null===r)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(r=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!r;break e;default:e=!1}if(e)return null;if(n&&"function"!=typeof n)throw Error(a(231,t,typeof n));return n}var Re=!1;if(u)try{var Ae={};Object.defineProperty(Ae,"passive",{get:function(){Re=!0}}),window.addEventListener("test",Ae,Ae),window.removeEventListener("test",Ae,Ae)}catch(ue){Re=!1}function Le(e,t,n,r,o,a,i,l,s){var c=Array.prototype.slice.call(arguments,3);try{t.apply(n,c)}catch(e){this.onError(e)}}var Me=!1,Be=null,Fe=!1,je=null,ze={onError:function(e){Me=!0,Be=e}};function Ue(e,t,n,r,o,a,i,l,s){Me=!1,Be=null,Le.apply(ze,arguments)}function We(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{0!=(4098&(t=e).flags)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function $e(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&null!==(e=e.alternate)&&(t=e.memoizedState),null!==t)return t.dehydrated}return null}function He(e){if(We(e)!==e)throw Error(a(188))}function Ge(e){return null!==(e=function(e){var t=e.alternate;if(!t){if(null===(t=We(e)))throw Error(a(188));return t!==e?null:e}for(var n=e,r=t;;){var o=n.return;if(null===o)break;var i=o.alternate;if(null===i){if(null!==(r=o.return)){n=r;continue}break}if(o.child===i.child){for(i=o.child;i;){if(i===n)return He(o),e;if(i===r)return He(o),t;i=i.sibling}throw Error(a(188))}if(n.return!==r.return)n=o,r=i;else{for(var l=!1,s=o.child;s;){if(s===n){l=!0,n=o,r=i;break}if(s===r){l=!0,r=o,n=i;break}s=s.sibling}if(!l){for(s=i.child;s;){if(s===n){l=!0,n=i,r=o;break}if(s===r){l=!0,r=i,n=o;break}s=s.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))?Ve(e):null}function Ve(e){if(5===e.tag||6===e.tag)return e;for(e=e.child;null!==e;){var t=Ve(e);if(null!==t)return t;e=e.sibling}return null}var qe=o.unstable_scheduleCallback,Ke=o.unstable_cancelCallback,Qe=o.unstable_shouldYield,Ye=o.unstable_requestPaint,Xe=o.unstable_now,Je=o.unstable_getCurrentPriorityLevel,Ze=o.unstable_ImmediatePriority,et=o.unstable_UserBlockingPriority,tt=o.unstable_NormalPriority,nt=o.unstable_LowPriority,rt=o.unstable_IdlePriority,ot=null,at=null,it=Math.clz32?Math.clz32:function(e){return 0===(e>>>=0)?32:31-(lt(e)/st|0)|0},lt=Math.log,st=Math.LN2,ct=64,ut=4194304;function dt(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return 4194240&e;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return 130023424&e;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function pt(e,t){var n=e.pendingLanes;if(0===n)return 0;var r=0,o=e.suspendedLanes,a=e.pingedLanes,i=268435455&n;if(0!==i){var l=i&~o;0!==l?r=dt(l):0!=(a&=i)&&(r=dt(a))}else 0!=(i=n&~o)?r=dt(i):0!==a&&(r=dt(a));if(0===r)return 0;if(0!==t&&t!==r&&0==(t&o)&&((o=r&-r)>=(a=t&-t)||16===o&&0!=(4194240&a)))return t;if(0!=(4&r)&&(r|=16&n),0!==(t=e.entangledLanes))for(e=e.entanglements,t&=r;0<t;)o=1<<(n=31-it(t)),r|=e[n],t&=~o;return r}function ft(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;default:return-1}}function mt(e){return 0!=(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function gt(){var e=ct;return 0==(4194240&(ct<<=1))&&(ct=64),e}function ht(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function bt(e,t,n){e.pendingLanes|=t,536870912!==t&&(e.suspendedLanes=0,e.pingedLanes=0),(e=e.eventTimes)[t=31-it(t)]=n}function vt(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-it(n),o=1<<r;o&t|e[r]&t&&(e[r]|=t),n&=~o}}var yt=0;function wt(e){return 1<(e&=-e)?4<e?0!=(268435455&e)?16:536870912:4:1}var Et,xt,St,kt,Ct,_t=!1,Ot=[],Nt=null,Dt=null,It=null,Pt=new Map,Tt=new Map,Rt=[],At="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function Lt(e,t){switch(e){case"focusin":case"focusout":Nt=null;break;case"dragenter":case"dragleave":Dt=null;break;case"mouseover":case"mouseout":It=null;break;case"pointerover":case"pointerout":Pt.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Tt.delete(t.pointerId)}}function Mt(e,t,n,r,o,a){return null===e||e.nativeEvent!==a?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:a,targetContainers:[o]},null!==t&&null!==(t=wo(t))&&xt(t),e):(e.eventSystemFlags|=r,t=e.targetContainers,null!==o&&-1===t.indexOf(o)&&t.push(o),e)}function Bt(e){var t=yo(e.target);if(null!==t){var n=We(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=$e(n)))return e.blockedOn=t,void Ct(e.priority,(function(){St(n)}))}else if(3===t&&n.stateNode.current.memoizedState.isDehydrated)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function Ft(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=Qt(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n)return null!==(t=wo(n))&&xt(t),e.blockedOn=n,!1;var r=new(n=e.nativeEvent).constructor(n.type,n);we=r,n.target.dispatchEvent(r),we=null,t.shift()}return!0}function jt(e,t,n){Ft(e)&&n.delete(t)}function zt(){_t=!1,null!==Nt&&Ft(Nt)&&(Nt=null),null!==Dt&&Ft(Dt)&&(Dt=null),null!==It&&Ft(It)&&(It=null),Pt.forEach(jt),Tt.forEach(jt)}function Ut(e,t){e.blockedOn===t&&(e.blockedOn=null,_t||(_t=!0,o.unstable_scheduleCallback(o.unstable_NormalPriority,zt)))}function Wt(e){function t(t){return Ut(t,e)}if(0<Ot.length){Ut(Ot[0],e);for(var n=1;n<Ot.length;n++){var r=Ot[n];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==Nt&&Ut(Nt,e),null!==Dt&&Ut(Dt,e),null!==It&&Ut(It,e),Pt.forEach(t),Tt.forEach(t),n=0;n<Rt.length;n++)(r=Rt[n]).blockedOn===e&&(r.blockedOn=null);for(;0<Rt.length&&null===(n=Rt[0]).blockedOn;)Bt(n),null===n.blockedOn&&Rt.shift()}var $t=w.ReactCurrentBatchConfig,Ht=!0;function Gt(e,t,n,r){var o=yt,a=$t.transition;$t.transition=null;try{yt=1,qt(e,t,n,r)}finally{yt=o,$t.transition=a}}function Vt(e,t,n,r){var o=yt,a=$t.transition;$t.transition=null;try{yt=4,qt(e,t,n,r)}finally{yt=o,$t.transition=a}}function qt(e,t,n,r){if(Ht){var o=Qt(e,t,n,r);if(null===o)Hr(e,t,r,Kt,n),Lt(e,r);else if(function(e,t,n,r,o){switch(t){case"focusin":return Nt=Mt(Nt,e,t,n,r,o),!0;case"dragenter":return Dt=Mt(Dt,e,t,n,r,o),!0;case"mouseover":return It=Mt(It,e,t,n,r,o),!0;case"pointerover":var a=o.pointerId;return Pt.set(a,Mt(Pt.get(a)||null,e,t,n,r,o)),!0;case"gotpointercapture":return a=o.pointerId,Tt.set(a,Mt(Tt.get(a)||null,e,t,n,r,o)),!0}return!1}(o,e,t,n,r))r.stopPropagation();else if(Lt(e,r),4&t&&-1<At.indexOf(e)){for(;null!==o;){var a=wo(o);if(null!==a&&Et(a),null===(a=Qt(e,t,n,r))&&Hr(e,t,r,Kt,n),a===o)break;o=a}null!==o&&r.stopPropagation()}else Hr(e,t,r,null,n)}}var Kt=null;function Qt(e,t,n,r){if(Kt=null,null!==(e=yo(e=Ee(r))))if(null===(t=We(e)))e=null;else if(13===(n=t.tag)){if(null!==(e=$e(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 Kt=e,null}function Yt(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(Je()){case Ze:return 1;case et:return 4;case tt:case nt:return 16;case rt:return 536870912;default:return 16}default:return 16}}var Xt=null,Jt=null,Zt=null;function en(){if(Zt)return Zt;var e,t,n=Jt,r=n.length,o="value"in Xt?Xt.value:Xt.textContent,a=o.length;for(e=0;e<r&&n[e]===o[e];e++);var i=r-e;for(t=1;t<=i&&n[r-t]===o[a-t];t++);return Zt=o.slice(e,1<t?1-t:void 0)}function tn(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}function nn(){return!0}function rn(){return!1}function on(e){function t(t,n,r,o,a){for(var i in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=o,this.target=a,this.currentTarget=null,e)e.hasOwnProperty(i)&&(t=e[i],this[i]=t?t(o):o[i]);return this.isDefaultPrevented=(null!=o.defaultPrevented?o.defaultPrevented:!1===o.returnValue)?nn:rn,this.isPropagationStopped=rn,this}return B(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=nn)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=nn)},persist:function(){},isPersistent:nn}),t}var an,ln,sn,cn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},un=on(cn),dn=B({},cn,{view:0,detail:0}),pn=on(dn),fn=B({},dn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Cn,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==sn&&(sn&&"mousemove"===e.type?(an=e.screenX-sn.screenX,ln=e.screenY-sn.screenY):ln=an=0,sn=e),an)},movementY:function(e){return"movementY"in e?e.movementY:ln}}),mn=on(fn),gn=on(B({},fn,{dataTransfer:0})),hn=on(B({},dn,{relatedTarget:0})),bn=on(B({},cn,{animationName:0,elapsedTime:0,pseudoElement:0})),vn=B({},cn,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),yn=on(vn),wn=on(B({},cn,{data:0})),En={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},xn={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},Sn={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function kn(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=Sn[e])&&!!t[e]}function Cn(){return kn}var _n=B({},dn,{key:function(e){if(e.key){var t=En[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=tn(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?xn[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Cn,charCode:function(e){return"keypress"===e.type?tn(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?tn(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),On=on(_n),Nn=on(B({},fn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),Dn=on(B({},dn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Cn})),In=on(B({},cn,{propertyName:0,elapsedTime:0,pseudoElement:0})),Pn=B({},fn,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),Tn=on(Pn),Rn=[9,13,27,32],An=u&&"CompositionEvent"in window,Ln=null;u&&"documentMode"in document&&(Ln=document.documentMode);var Mn=u&&"TextEvent"in window&&!Ln,Bn=u&&(!An||Ln&&8<Ln&&11>=Ln),Fn=String.fromCharCode(32),jn=!1;function zn(e,t){switch(e){case"keyup":return-1!==Rn.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Un(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var Wn=!1,$n={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 Hn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!$n[e.type]:"textarea"===t}function Gn(e,t,n,r){_e(r),0<(t=Vr(t,"onChange")).length&&(n=new un("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Vn=null,qn=null;function Kn(e){Fr(e,0)}function Qn(e){if(q(Eo(e)))return e}function Yn(e,t){if("change"===e)return t}var Xn=!1;if(u){var Jn;if(u){var Zn="oninput"in document;if(!Zn){var er=document.createElement("div");er.setAttribute("oninput","return;"),Zn="function"==typeof er.oninput}Jn=Zn}else Jn=!1;Xn=Jn&&(!document.documentMode||9<document.documentMode)}function tr(){Vn&&(Vn.detachEvent("onpropertychange",nr),qn=Vn=null)}function nr(e){if("value"===e.propertyName&&Qn(qn)){var t=[];Gn(t,qn,e,Ee(e)),Pe(Kn,t)}}function rr(e,t,n){"focusin"===e?(tr(),qn=n,(Vn=t).attachEvent("onpropertychange",nr)):"focusout"===e&&tr()}function or(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return Qn(qn)}function ar(e,t){if("click"===e)return Qn(t)}function ir(e,t){if("input"===e||"change"===e)return Qn(t)}var lr="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t};function sr(e,t){if(lr(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var o=n[r];if(!d.call(t,o)||!lr(e[o],t[o]))return!1}return!0}function cr(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function ur(e,t){var n,r=cr(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=cr(r)}}function dr(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?dr(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function pr(){for(var e=window,t=K();t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(e){n=!1}if(!n)break;t=K((e=t.contentWindow).document)}return t}function fr(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 mr(e){var t=pr(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&dr(n.ownerDocument.documentElement,n)){if(null!==r&&fr(n))if(t=r.start,void 0===(e=r.end)&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if((e=(t=n.ownerDocument||document)&&t.defaultView||window).getSelection){e=e.getSelection();var o=n.textContent.length,a=Math.min(r.start,o);r=void 0===r.end?a:Math.min(r.end,o),!e.extend&&a>r&&(o=r,r=a,a=o),o=ur(n,a);var i=ur(n,r);o&&i&&(1!==e.rangeCount||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==i.node||e.focusOffset!==i.offset)&&((t=t.createRange()).setStart(o.node,o.offset),e.removeAllRanges(),a>r?(e.addRange(t),e.extend(i.node,i.offset)):(t.setEnd(i.node,i.offset),e.addRange(t)))}for(t=[],e=n;e=e.parentNode;)1===e.nodeType&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for("function"==typeof n.focus&&n.focus(),n=0;n<t.length;n++)(e=t[n]).element.scrollLeft=e.left,e.element.scrollTop=e.top}}var gr=u&&"documentMode"in document&&11>=document.documentMode,hr=null,br=null,vr=null,yr=!1;function wr(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;yr||null==hr||hr!==K(r)||(r="selectionStart"in(r=hr)&&fr(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},vr&&sr(vr,r)||(vr=r,0<(r=Vr(br,"onSelect")).length&&(t=new un("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=hr)))}function Er(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var xr={animationend:Er("Animation","AnimationEnd"),animationiteration:Er("Animation","AnimationIteration"),animationstart:Er("Animation","AnimationStart"),transitionend:Er("Transition","TransitionEnd")},Sr={},kr={};function Cr(e){if(Sr[e])return Sr[e];if(!xr[e])return e;var t,n=xr[e];for(t in n)if(n.hasOwnProperty(t)&&t in kr)return Sr[e]=n[t];return e}u&&(kr=document.createElement("div").style,"AnimationEvent"in window||(delete xr.animationend.animation,delete xr.animationiteration.animation,delete xr.animationstart.animation),"TransitionEvent"in window||delete xr.transitionend.transition);var _r=Cr("animationend"),Or=Cr("animationiteration"),Nr=Cr("animationstart"),Dr=Cr("transitionend"),Ir=new Map,Pr="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function Tr(e,t){Ir.set(e,t),s(t,[e])}for(var Rr=0;Rr<Pr.length;Rr++){var Ar=Pr[Rr];Tr(Ar.toLowerCase(),"on"+(Ar[0].toUpperCase()+Ar.slice(1)))}Tr(_r,"onAnimationEnd"),Tr(Or,"onAnimationIteration"),Tr(Nr,"onAnimationStart"),Tr("dblclick","onDoubleClick"),Tr("focusin","onFocus"),Tr("focusout","onBlur"),Tr(Dr,"onTransitionEnd"),c("onMouseEnter",["mouseout","mouseover"]),c("onMouseLeave",["mouseout","mouseover"]),c("onPointerEnter",["pointerout","pointerover"]),c("onPointerLeave",["pointerout","pointerover"]),s("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),s("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),s("onBeforeInput",["compositionend","keypress","textInput","paste"]),s("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),s("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),s("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Lr="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Mr=new Set("cancel close invalid load scroll toggle".split(" ").concat(Lr));function Br(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,function(e,t,n,r,o,i,l,s,c){if(Ue.apply(this,arguments),Me){if(!Me)throw Error(a(198));var u=Be;Me=!1,Be=null,Fe||(Fe=!0,je=u)}}(r,t,void 0,e),e.currentTarget=null}function Fr(e,t){t=0!=(4&t);for(var n=0;n<e.length;n++){var r=e[n],o=r.event;r=r.listeners;e:{var a=void 0;if(t)for(var i=r.length-1;0<=i;i--){var l=r[i],s=l.instance,c=l.currentTarget;if(l=l.listener,s!==a&&o.isPropagationStopped())break e;Br(o,l,c),a=s}else for(i=0;i<r.length;i++){if(s=(l=r[i]).instance,c=l.currentTarget,l=l.listener,s!==a&&o.isPropagationStopped())break e;Br(o,l,c),a=s}}}if(Fe)throw e=je,Fe=!1,je=null,e}function jr(e,t){var n=t[ho];void 0===n&&(n=t[ho]=new Set);var r=e+"__bubble";n.has(r)||($r(t,e,2,!1),n.add(r))}function zr(e,t,n){var r=0;t&&(r|=4),$r(n,e,r,t)}var Ur="_reactListening"+Math.random().toString(36).slice(2);function Wr(e){if(!e[Ur]){e[Ur]=!0,i.forEach((function(t){"selectionchange"!==t&&(Mr.has(t)||zr(t,!1,e),zr(t,!0,e))}));var t=9===e.nodeType?e:e.ownerDocument;null===t||t[Ur]||(t[Ur]=!0,zr("selectionchange",!1,t))}}function $r(e,t,n,r){switch(Yt(t)){case 1:var o=Gt;break;case 4:o=Vt;break;default:o=qt}n=o.bind(null,t,n,e),o=void 0,!Re||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(o=!0),r?void 0!==o?e.addEventListener(t,n,{capture:!0,passive:o}):e.addEventListener(t,n,!0):void 0!==o?e.addEventListener(t,n,{passive:o}):e.addEventListener(t,n,!1)}function Hr(e,t,n,r,o){var a=r;if(0==(1&t)&&0==(2&t)&&null!==r)e:for(;;){if(null===r)return;var i=r.tag;if(3===i||4===i){var l=r.stateNode.containerInfo;if(l===o||8===l.nodeType&&l.parentNode===o)break;if(4===i)for(i=r.return;null!==i;){var s=i.tag;if((3===s||4===s)&&((s=i.stateNode.containerInfo)===o||8===s.nodeType&&s.parentNode===o))return;i=i.return}for(;null!==l;){if(null===(i=yo(l)))return;if(5===(s=i.tag)||6===s){r=a=i;continue e}l=l.parentNode}}r=r.return}Pe((function(){var r=a,o=Ee(n),i=[];e:{var l=Ir.get(e);if(void 0!==l){var s=un,c=e;switch(e){case"keypress":if(0===tn(n))break e;case"keydown":case"keyup":s=On;break;case"focusin":c="focus",s=hn;break;case"focusout":c="blur",s=hn;break;case"beforeblur":case"afterblur":s=hn;break;case"click":if(2===n.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":s=mn;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":s=gn;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":s=Dn;break;case _r:case Or:case Nr:s=bn;break;case Dr:s=In;break;case"scroll":s=pn;break;case"wheel":s=Tn;break;case"copy":case"cut":case"paste":s=yn;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":s=Nn}var u=0!=(4&t),d=!u&&"scroll"===e,p=u?null!==l?l+"Capture":null:l;u=[];for(var f,m=r;null!==m;){var g=(f=m).stateNode;if(5===f.tag&&null!==g&&(f=g,null!==p&&null!=(g=Te(m,p))&&u.push(Gr(m,g,f))),d)break;m=m.return}0<u.length&&(l=new s(l,c,null,n,o),i.push({event:l,listeners:u}))}}if(0==(7&t)){if(s="mouseout"===e||"pointerout"===e,(!(l="mouseover"===e||"pointerover"===e)||n===we||!(c=n.relatedTarget||n.fromElement)||!yo(c)&&!c[go])&&(s||l)&&(l=o.window===o?o:(l=o.ownerDocument)?l.defaultView||l.parentWindow:window,s?(s=r,null!==(c=(c=n.relatedTarget||n.toElement)?yo(c):null)&&(c!==(d=We(c))||5!==c.tag&&6!==c.tag)&&(c=null)):(s=null,c=r),s!==c)){if(u=mn,g="onMouseLeave",p="onMouseEnter",m="mouse","pointerout"!==e&&"pointerover"!==e||(u=Nn,g="onPointerLeave",p="onPointerEnter",m="pointer"),d=null==s?l:Eo(s),f=null==c?l:Eo(c),(l=new u(g,m+"leave",s,n,o)).target=d,l.relatedTarget=f,g=null,yo(o)===r&&((u=new u(p,m+"enter",c,n,o)).target=f,u.relatedTarget=d,g=u),d=g,s&&c)e:{for(p=c,m=0,f=u=s;f;f=qr(f))m++;for(f=0,g=p;g;g=qr(g))f++;for(;0<m-f;)u=qr(u),m--;for(;0<f-m;)p=qr(p),f--;for(;m--;){if(u===p||null!==p&&u===p.alternate)break e;u=qr(u),p=qr(p)}u=null}else u=null;null!==s&&Kr(i,l,s,u,!1),null!==c&&null!==d&&Kr(i,d,c,u,!0)}if("select"===(s=(l=r?Eo(r):window).nodeName&&l.nodeName.toLowerCase())||"input"===s&&"file"===l.type)var h=Yn;else if(Hn(l))if(Xn)h=ir;else{h=or;var b=rr}else(s=l.nodeName)&&"input"===s.toLowerCase()&&("checkbox"===l.type||"radio"===l.type)&&(h=ar);switch(h&&(h=h(e,r))?Gn(i,h,n,o):(b&&b(e,l,r),"focusout"===e&&(b=l._wrapperState)&&b.controlled&&"number"===l.type&&ee(l,"number",l.value)),b=r?Eo(r):window,e){case"focusin":(Hn(b)||"true"===b.contentEditable)&&(hr=b,br=r,vr=null);break;case"focusout":vr=br=hr=null;break;case"mousedown":yr=!0;break;case"contextmenu":case"mouseup":case"dragend":yr=!1,wr(i,n,o);break;case"selectionchange":if(gr)break;case"keydown":case"keyup":wr(i,n,o)}var v;if(An)e:{switch(e){case"compositionstart":var y="onCompositionStart";break e;case"compositionend":y="onCompositionEnd";break e;case"compositionupdate":y="onCompositionUpdate";break e}y=void 0}else Wn?zn(e,n)&&(y="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(y="onCompositionStart");y&&(Bn&&"ko"!==n.locale&&(Wn||"onCompositionStart"!==y?"onCompositionEnd"===y&&Wn&&(v=en()):(Jt="value"in(Xt=o)?Xt.value:Xt.textContent,Wn=!0)),0<(b=Vr(r,y)).length&&(y=new wn(y,e,null,n,o),i.push({event:y,listeners:b}),(v||null!==(v=Un(n)))&&(y.data=v))),(v=Mn?function(e,t){switch(e){case"compositionend":return Un(t);case"keypress":return 32!==t.which?null:(jn=!0,Fn);case"textInput":return(e=t.data)===Fn&&jn?null:e;default:return null}}(e,n):function(e,t){if(Wn)return"compositionend"===e||!An&&zn(e,t)?(e=en(),Zt=Jt=Xt=null,Wn=!1,e):null;switch(e){case"paste":default:return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Bn&&"ko"!==t.locale?null:t.data}}(e,n))&&0<(r=Vr(r,"onBeforeInput")).length&&(o=new wn("onBeforeInput","beforeinput",null,n,o),i.push({event:o,listeners:r}),o.data=v)}Fr(i,t)}))}function Gr(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Vr(e,t){for(var n=t+"Capture",r=[];null!==e;){var o=e,a=o.stateNode;5===o.tag&&null!==a&&(o=a,null!=(a=Te(e,n))&&r.unshift(Gr(e,a,o)),null!=(a=Te(e,t))&&r.push(Gr(e,a,o))),e=e.return}return r}function qr(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function Kr(e,t,n,r,o){for(var a=t._reactName,i=[];null!==n&&n!==r;){var l=n,s=l.alternate,c=l.stateNode;if(null!==s&&s===r)break;5===l.tag&&null!==c&&(l=c,o?null!=(s=Te(n,a))&&i.unshift(Gr(n,s,l)):o||null!=(s=Te(n,a))&&i.push(Gr(n,s,l))),n=n.return}0!==i.length&&e.push({event:t,listeners:i})}var Qr=/\r\n?/g,Yr=/\u0000|\uFFFD/g;function Xr(e){return("string"==typeof e?e:""+e).replace(Qr,"\n").replace(Yr,"")}function Jr(e,t,n){if(t=Xr(t),Xr(e)!==t&&n)throw Error(a(425))}function Zr(){}var eo=null,to=null;function no(e,t){return"textarea"===e||"noscript"===e||"string"==typeof t.children||"number"==typeof t.children||"object"==typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var ro="function"==typeof setTimeout?setTimeout:void 0,oo="function"==typeof clearTimeout?clearTimeout:void 0,ao="function"==typeof Promise?Promise:void 0,io="function"==typeof queueMicrotask?queueMicrotask:void 0!==ao?function(e){return ao.resolve(null).then(e).catch(lo)}:ro;function lo(e){setTimeout((function(){throw e}))}function so(e,t){var n=t,r=0;do{var o=n.nextSibling;if(e.removeChild(n),o&&8===o.nodeType)if("/$"===(n=o.data)){if(0===r)return e.removeChild(o),void Wt(t);r--}else"$"!==n&&"$?"!==n&&"$!"!==n||r++;n=o}while(n);Wt(t)}function co(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break;if(8===t){if("$"===(t=e.data)||"$!"===t||"$?"===t)break;if("/$"===t)return null}}return e}function uo(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||"$!"===n||"$?"===n){if(0===t)return e;t--}else"/$"===n&&t++}e=e.previousSibling}return null}var po=Math.random().toString(36).slice(2),fo="__reactFiber$"+po,mo="__reactProps$"+po,go="__reactContainer$"+po,ho="__reactEvents$"+po,bo="__reactListeners$"+po,vo="__reactHandles$"+po;function yo(e){var t=e[fo];if(t)return t;for(var n=e.parentNode;n;){if(t=n[go]||n[fo]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=uo(e);null!==e;){if(n=e[fo])return n;e=uo(e)}return t}n=(e=n).parentNode}return null}function wo(e){return!(e=e[fo]||e[go])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function Eo(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(a(33))}function xo(e){return e[mo]||null}var So=[],ko=-1;function Co(e){return{current:e}}function _o(e){0>ko||(e.current=So[ko],So[ko]=null,ko--)}function Oo(e,t){ko++,So[ko]=e.current,e.current=t}var No={},Do=Co(No),Io=Co(!1),Po=No;function To(e,t){var n=e.type.contextTypes;if(!n)return No;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o,a={};for(o in n)a[o]=t[o];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=a),a}function Ro(e){return null!=e.childContextTypes}function Ao(){_o(Io),_o(Do)}function Lo(e,t,n){if(Do.current!==No)throw Error(a(168));Oo(Do,t),Oo(Io,n)}function Mo(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,"function"!=typeof r.getChildContext)return n;for(var o in r=r.getChildContext())if(!(o in t))throw Error(a(108,$(e)||"Unknown",o));return B({},n,r)}function Bo(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||No,Po=Do.current,Oo(Do,e),Oo(Io,Io.current),!0}function Fo(e,t,n){var r=e.stateNode;if(!r)throw Error(a(169));n?(e=Mo(e,t,Po),r.__reactInternalMemoizedMergedChildContext=e,_o(Io),_o(Do),Oo(Do,e)):_o(Io),Oo(Io,n)}var jo=null,zo=!1,Uo=!1;function Wo(e){null===jo?jo=[e]:jo.push(e)}function $o(){if(!Uo&&null!==jo){Uo=!0;var e=0,t=yt;try{var n=jo;for(yt=1;e<n.length;e++){var r=n[e];do{r=r(!0)}while(null!==r)}jo=null,zo=!1}catch(t){throw null!==jo&&(jo=jo.slice(e+1)),qe(Ze,$o),t}finally{yt=t,Uo=!1}}return null}var Ho=[],Go=0,Vo=null,qo=0,Ko=[],Qo=0,Yo=null,Xo=1,Jo="";function Zo(e,t){Ho[Go++]=qo,Ho[Go++]=Vo,Vo=e,qo=t}function ea(e,t,n){Ko[Qo++]=Xo,Ko[Qo++]=Jo,Ko[Qo++]=Yo,Yo=e;var r=Xo;e=Jo;var o=32-it(r)-1;r&=~(1<<o),n+=1;var a=32-it(t)+o;if(30<a){var i=o-o%5;a=(r&(1<<i)-1).toString(32),r>>=i,o-=i,Xo=1<<32-it(t)+o|n<<o|r,Jo=a+e}else Xo=1<<a|n<<o|r,Jo=e}function ta(e){null!==e.return&&(Zo(e,1),ea(e,1,0))}function na(e){for(;e===Vo;)Vo=Ho[--Go],Ho[Go]=null,qo=Ho[--Go],Ho[Go]=null;for(;e===Yo;)Yo=Ko[--Qo],Ko[Qo]=null,Jo=Ko[--Qo],Ko[Qo]=null,Xo=Ko[--Qo],Ko[Qo]=null}var ra=null,oa=null,aa=!1,ia=null;function la(e,t){var n=Tc(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,null===(t=e.deletions)?(e.deletions=[n],e.flags|=16):t.push(n)}function sa(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,ra=e,oa=co(t.firstChild),!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,ra=e,oa=null,!0);case 13:return null!==(t=8!==t.nodeType?null:t)&&(n=null!==Yo?{id:Xo,overflow:Jo}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},(n=Tc(18,null,null,0)).stateNode=t,n.return=e,e.child=n,ra=e,oa=null,!0);default:return!1}}function ca(e){return 0!=(1&e.mode)&&0==(128&e.flags)}function ua(e){if(aa){var t=oa;if(t){var n=t;if(!sa(e,t)){if(ca(e))throw Error(a(418));t=co(n.nextSibling);var r=ra;t&&sa(e,t)?la(r,n):(e.flags=-4097&e.flags|2,aa=!1,ra=e)}}else{if(ca(e))throw Error(a(418));e.flags=-4097&e.flags|2,aa=!1,ra=e}}}function da(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;ra=e}function pa(e){if(e!==ra)return!1;if(!aa)return da(e),aa=!0,!1;var t;if((t=3!==e.tag)&&!(t=5!==e.tag)&&(t="head"!==(t=e.type)&&"body"!==t&&!no(e.type,e.memoizedProps)),t&&(t=oa)){if(ca(e))throw fa(),Error(a(418));for(;t;)la(e,t),t=co(t.nextSibling)}if(da(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){oa=co(e.nextSibling);break e}t--}else"$"!==n&&"$!"!==n&&"$?"!==n||t++}e=e.nextSibling}oa=null}}else oa=ra?co(e.stateNode.nextSibling):null;return!0}function fa(){for(var e=oa;e;)e=co(e.nextSibling)}function ma(){oa=ra=null,aa=!1}function ga(e){null===ia?ia=[e]:ia.push(e)}var ha=w.ReactCurrentBatchConfig;function ba(e,t){if(e&&e.defaultProps){for(var n in t=B({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}var va=Co(null),ya=null,wa=null,Ea=null;function xa(){Ea=wa=ya=null}function Sa(e){var t=va.current;_o(va),e._currentValue=t}function ka(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 Ca(e,t){ya=e,Ea=wa=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(0!=(e.lanes&t)&&(wl=!0),e.firstContext=null)}function _a(e){var t=e._currentValue;if(Ea!==e)if(e={context:e,memoizedValue:t,next:null},null===wa){if(null===ya)throw Error(a(308));wa=e,ya.dependencies={lanes:0,firstContext:e}}else wa=wa.next=e;return t}var Oa=null;function Na(e){null===Oa?Oa=[e]:Oa.push(e)}function Da(e,t,n,r){var o=t.interleaved;return null===o?(n.next=n,Na(t)):(n.next=o.next,o.next=n),t.interleaved=n,Ia(e,r)}function Ia(e,t){e.lanes|=t;var n=e.alternate;for(null!==n&&(n.lanes|=t),n=e,e=e.return;null!==e;)e.childLanes|=t,null!==(n=e.alternate)&&(n.childLanes|=t),n=e,e=e.return;return 3===n.tag?n.stateNode:null}var Pa=!1;function Ta(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Ra(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 Aa(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function La(e,t,n){var r=e.updateQueue;if(null===r)return null;if(r=r.shared,0!=(2&Ds)){var o=r.pending;return null===o?t.next=t:(t.next=o.next,o.next=t),r.pending=t,Ia(e,n)}return null===(o=r.interleaved)?(t.next=t,Na(r)):(t.next=o.next,o.next=t),r.interleaved=t,Ia(e,n)}function Ma(e,t,n){if(null!==(t=t.updateQueue)&&(t=t.shared,0!=(4194240&n))){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,vt(e,n)}}function Ba(e,t){var n=e.updateQueue,r=e.alternate;if(null!==r&&n===(r=r.updateQueue)){var o=null,a=null;if(null!==(n=n.firstBaseUpdate)){do{var i={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};null===a?o=a=i:a=a.next=i,n=n.next}while(null!==n);null===a?o=a=t:a=a.next=t}else o=a=t;return n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:a,shared:r.shared,effects:r.effects},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Fa(e,t,n,r){var o=e.updateQueue;Pa=!1;var a=o.firstBaseUpdate,i=o.lastBaseUpdate,l=o.shared.pending;if(null!==l){o.shared.pending=null;var s=l,c=s.next;s.next=null,null===i?a=c:i.next=c,i=s;var u=e.alternate;null!==u&&(l=(u=u.updateQueue).lastBaseUpdate)!==i&&(null===l?u.firstBaseUpdate=c:l.next=c,u.lastBaseUpdate=s)}if(null!==a){var d=o.baseState;for(i=0,u=c=s=null,l=a;;){var p=l.lane,f=l.eventTime;if((r&p)===p){null!==u&&(u=u.next={eventTime:f,lane:0,tag:l.tag,payload:l.payload,callback:l.callback,next:null});e:{var m=e,g=l;switch(p=t,f=n,g.tag){case 1:if("function"==typeof(m=g.payload)){d=m.call(f,d,p);break e}d=m;break e;case 3:m.flags=-65537&m.flags|128;case 0:if(null==(p="function"==typeof(m=g.payload)?m.call(f,d,p):m))break e;d=B({},d,p);break e;case 2:Pa=!0}}null!==l.callback&&0!==l.lane&&(e.flags|=64,null===(p=o.effects)?o.effects=[l]:p.push(l))}else f={eventTime:f,lane:p,tag:l.tag,payload:l.payload,callback:l.callback,next:null},null===u?(c=u=f,s=d):u=u.next=f,i|=p;if(null===(l=l.next)){if(null===(l=o.shared.pending))break;l=(p=l).next,p.next=null,o.lastBaseUpdate=p,o.shared.pending=null}}if(null===u&&(s=d),o.baseState=s,o.firstBaseUpdate=c,o.lastBaseUpdate=u,null!==(t=o.shared.interleaved)){o=t;do{i|=o.lane,o=o.next}while(o!==t)}else null===a&&(o.shared.lanes=0);Bs|=i,e.lanes=i,e.memoizedState=d}}function ja(e,t,n){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var r=e[t],o=r.callback;if(null!==o){if(r.callback=null,r=n,"function"!=typeof o)throw Error(a(191,o));o.call(r)}}}var za=(new r.Component).refs;function Ua(e,t,n,r){n=null==(n=n(r,t=e.memoizedState))?t:B({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}var Wa={isMounted:function(e){return!!(e=e._reactInternals)&&We(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=tc(),o=nc(e),a=Aa(r,o);a.payload=t,null!=n&&(a.callback=n),null!==(t=La(e,a,o))&&(rc(t,e,o,r),Ma(t,e,o))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=tc(),o=nc(e),a=Aa(r,o);a.tag=1,a.payload=t,null!=n&&(a.callback=n),null!==(t=La(e,a,o))&&(rc(t,e,o,r),Ma(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=tc(),r=nc(e),o=Aa(n,r);o.tag=2,null!=t&&(o.callback=t),null!==(t=La(e,o,r))&&(rc(t,e,r,n),Ma(t,e,r))}};function $a(e,t,n,r,o,a,i){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,a,i):!(t.prototype&&t.prototype.isPureReactComponent&&sr(n,r)&&sr(o,a))}function Ha(e,t,n){var r=!1,o=No,a=t.contextType;return"object"==typeof a&&null!==a?a=_a(a):(o=Ro(t)?Po:Do.current,a=(r=null!=(r=t.contextTypes))?To(e,o):No),t=new t(n,a),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=Wa,e.stateNode=t,t._reactInternals=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=a),t}function Ga(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&&Wa.enqueueReplaceState(t,t.state,null)}function Va(e,t,n,r){var o=e.stateNode;o.props=n,o.state=e.memoizedState,o.refs=za,Ta(e);var a=t.contextType;"object"==typeof a&&null!==a?o.context=_a(a):(a=Ro(t)?Po:Do.current,o.context=To(e,a)),o.state=e.memoizedState,"function"==typeof(a=t.getDerivedStateFromProps)&&(Ua(e,t,a,n),o.state=e.memoizedState),"function"==typeof t.getDerivedStateFromProps||"function"==typeof o.getSnapshotBeforeUpdate||"function"!=typeof o.UNSAFE_componentWillMount&&"function"!=typeof o.componentWillMount||(t=o.state,"function"==typeof o.componentWillMount&&o.componentWillMount(),"function"==typeof o.UNSAFE_componentWillMount&&o.UNSAFE_componentWillMount(),t!==o.state&&Wa.enqueueReplaceState(o,o.state,null),Fa(e,n,o,r),o.state=e.memoizedState),"function"==typeof o.componentDidMount&&(e.flags|=4194308)}function qa(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}if(!r)throw Error(a(147,e));var o=r,i=""+e;return null!==t&&null!==t.ref&&"function"==typeof t.ref&&t.ref._stringRef===i?t.ref:(t=function(e){var t=o.refs;t===za&&(t=o.refs={}),null===e?delete t[i]:t[i]=e},t._stringRef=i,t)}if("string"!=typeof e)throw Error(a(284));if(!n._owner)throw Error(a(290,e))}return e}function Ka(e,t){throw e=Object.prototype.toString.call(t),Error(a(31,"[object Object]"===e?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Qa(e){return(0,e._init)(e._payload)}function Ya(e){function t(t,n){if(e){var r=t.deletions;null===r?(t.deletions=[n],t.flags|=16):r.push(n)}}function n(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function r(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function o(e,t){return(e=Ac(e,t)).index=0,e.sibling=null,e}function i(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.flags|=2,n):r:(t.flags|=2,n):(t.flags|=1048576,n)}function l(t){return e&&null===t.alternate&&(t.flags|=2),t}function s(e,t,n,r){return null===t||6!==t.tag?((t=Fc(n,e.mode,r)).return=e,t):((t=o(t,n)).return=e,t)}function c(e,t,n,r){var a=n.type;return a===S?d(e,t,n.props.children,r,n.key):null!==t&&(t.elementType===a||"object"==typeof a&&null!==a&&a.$$typeof===T&&Qa(a)===t.type)?((r=o(t,n.props)).ref=qa(e,t,n),r.return=e,r):((r=Lc(n.type,n.key,n.props,null,e.mode,r)).ref=qa(e,t,n),r.return=e,r)}function u(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=jc(n,e.mode,r)).return=e,t):((t=o(t,n.children||[])).return=e,t)}function d(e,t,n,r,a){return null===t||7!==t.tag?((t=Mc(n,e.mode,r,a)).return=e,t):((t=o(t,n)).return=e,t)}function p(e,t,n){if("string"==typeof t&&""!==t||"number"==typeof t)return(t=Fc(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case E:return(n=Lc(t.type,t.key,t.props,null,e.mode,n)).ref=qa(e,null,t),n.return=e,n;case x:return(t=jc(t,e.mode,n)).return=e,t;case T:return p(e,(0,t._init)(t._payload),n)}if(te(t)||L(t))return(t=Mc(t,e.mode,n,null)).return=e,t;Ka(e,t)}return null}function f(e,t,n,r){var o=null!==t?t.key:null;if("string"==typeof n&&""!==n||"number"==typeof n)return null!==o?null:s(e,t,""+n,r);if("object"==typeof n&&null!==n){switch(n.$$typeof){case E:return n.key===o?c(e,t,n,r):null;case x:return n.key===o?u(e,t,n,r):null;case T:return f(e,t,(o=n._init)(n._payload),r)}if(te(n)||L(n))return null!==o?null:d(e,t,n,r,null);Ka(e,n)}return null}function m(e,t,n,r,o){if("string"==typeof r&&""!==r||"number"==typeof r)return s(t,e=e.get(n)||null,""+r,o);if("object"==typeof r&&null!==r){switch(r.$$typeof){case E:return c(t,e=e.get(null===r.key?n:r.key)||null,r,o);case x:return u(t,e=e.get(null===r.key?n:r.key)||null,r,o);case T:return m(e,t,n,(0,r._init)(r._payload),o)}if(te(r)||L(r))return d(t,e=e.get(n)||null,r,o,null);Ka(t,r)}return null}function g(o,a,l,s){for(var c=null,u=null,d=a,g=a=0,h=null;null!==d&&g<l.length;g++){d.index>g?(h=d,d=null):h=d.sibling;var b=f(o,d,l[g],s);if(null===b){null===d&&(d=h);break}e&&d&&null===b.alternate&&t(o,d),a=i(b,a,g),null===u?c=b:u.sibling=b,u=b,d=h}if(g===l.length)return n(o,d),aa&&Zo(o,g),c;if(null===d){for(;g<l.length;g++)null!==(d=p(o,l[g],s))&&(a=i(d,a,g),null===u?c=d:u.sibling=d,u=d);return aa&&Zo(o,g),c}for(d=r(o,d);g<l.length;g++)null!==(h=m(d,o,g,l[g],s))&&(e&&null!==h.alternate&&d.delete(null===h.key?g:h.key),a=i(h,a,g),null===u?c=h:u.sibling=h,u=h);return e&&d.forEach((function(e){return t(o,e)})),aa&&Zo(o,g),c}function h(o,l,s,c){var u=L(s);if("function"!=typeof u)throw Error(a(150));if(null==(s=u.call(s)))throw Error(a(151));for(var d=u=null,g=l,h=l=0,b=null,v=s.next();null!==g&&!v.done;h++,v=s.next()){g.index>h?(b=g,g=null):b=g.sibling;var y=f(o,g,v.value,c);if(null===y){null===g&&(g=b);break}e&&g&&null===y.alternate&&t(o,g),l=i(y,l,h),null===d?u=y:d.sibling=y,d=y,g=b}if(v.done)return n(o,g),aa&&Zo(o,h),u;if(null===g){for(;!v.done;h++,v=s.next())null!==(v=p(o,v.value,c))&&(l=i(v,l,h),null===d?u=v:d.sibling=v,d=v);return aa&&Zo(o,h),u}for(g=r(o,g);!v.done;h++,v=s.next())null!==(v=m(g,o,h,v.value,c))&&(e&&null!==v.alternate&&g.delete(null===v.key?h:v.key),l=i(v,l,h),null===d?u=v:d.sibling=v,d=v);return e&&g.forEach((function(e){return t(o,e)})),aa&&Zo(o,h),u}return function e(r,a,i,s){if("object"==typeof i&&null!==i&&i.type===S&&null===i.key&&(i=i.props.children),"object"==typeof i&&null!==i){switch(i.$$typeof){case E:e:{for(var c=i.key,u=a;null!==u;){if(u.key===c){if((c=i.type)===S){if(7===u.tag){n(r,u.sibling),(a=o(u,i.props.children)).return=r,r=a;break e}}else if(u.elementType===c||"object"==typeof c&&null!==c&&c.$$typeof===T&&Qa(c)===u.type){n(r,u.sibling),(a=o(u,i.props)).ref=qa(r,u,i),a.return=r,r=a;break e}n(r,u);break}t(r,u),u=u.sibling}i.type===S?((a=Mc(i.props.children,r.mode,s,i.key)).return=r,r=a):((s=Lc(i.type,i.key,i.props,null,r.mode,s)).ref=qa(r,a,i),s.return=r,r=s)}return l(r);case x:e:{for(u=i.key;null!==a;){if(a.key===u){if(4===a.tag&&a.stateNode.containerInfo===i.containerInfo&&a.stateNode.implementation===i.implementation){n(r,a.sibling),(a=o(a,i.children||[])).return=r,r=a;break e}n(r,a);break}t(r,a),a=a.sibling}(a=jc(i,r.mode,s)).return=r,r=a}return l(r);case T:return e(r,a,(u=i._init)(i._payload),s)}if(te(i))return g(r,a,i,s);if(L(i))return h(r,a,i,s);Ka(r,i)}return"string"==typeof i&&""!==i||"number"==typeof i?(i=""+i,null!==a&&6===a.tag?(n(r,a.sibling),(a=o(a,i)).return=r,r=a):(n(r,a),(a=Fc(i,r.mode,s)).return=r,r=a),l(r)):n(r,a)}}var Xa=Ya(!0),Ja=Ya(!1),Za={},ei=Co(Za),ti=Co(Za),ni=Co(Za);function ri(e){if(e===Za)throw Error(a(174));return e}function oi(e,t){switch(Oo(ni,t),Oo(ti,e),Oo(ei,Za),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:se(null,"");break;default:t=se(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}_o(ei),Oo(ei,t)}function ai(){_o(ei),_o(ti),_o(ni)}function ii(e){ri(ni.current);var t=ri(ei.current),n=se(t,e.type);t!==n&&(Oo(ti,e),Oo(ei,n))}function li(e){ti.current===e&&(_o(ei),_o(ti))}var si=Co(0);function ci(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!=(128&t.flags))return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var ui=[];function di(){for(var e=0;e<ui.length;e++)ui[e]._workInProgressVersionPrimary=null;ui.length=0}var pi=w.ReactCurrentDispatcher,fi=w.ReactCurrentBatchConfig,mi=0,gi=null,hi=null,bi=null,vi=!1,yi=!1,wi=0,Ei=0;function xi(){throw Error(a(321))}function Si(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!lr(e[n],t[n]))return!1;return!0}function ki(e,t,n,r,o,i){if(mi=i,gi=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,pi.current=null===e||null===e.memoizedState?ll:sl,e=n(r,o),yi){i=0;do{if(yi=!1,wi=0,25<=i)throw Error(a(301));i+=1,bi=hi=null,t.updateQueue=null,pi.current=cl,e=n(r,o)}while(yi)}if(pi.current=il,t=null!==hi&&null!==hi.next,mi=0,bi=hi=gi=null,vi=!1,t)throw Error(a(300));return e}function Ci(){var e=0!==wi;return wi=0,e}function _i(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===bi?gi.memoizedState=bi=e:bi=bi.next=e,bi}function Oi(){if(null===hi){var e=gi.alternate;e=null!==e?e.memoizedState:null}else e=hi.next;var t=null===bi?gi.memoizedState:bi.next;if(null!==t)bi=t,hi=e;else{if(null===e)throw Error(a(310));e={memoizedState:(hi=e).memoizedState,baseState:hi.baseState,baseQueue:hi.baseQueue,queue:hi.queue,next:null},null===bi?gi.memoizedState=bi=e:bi=bi.next=e}return bi}function Ni(e,t){return"function"==typeof t?t(e):t}function Di(e){var t=Oi(),n=t.queue;if(null===n)throw Error(a(311));n.lastRenderedReducer=e;var r=hi,o=r.baseQueue,i=n.pending;if(null!==i){if(null!==o){var l=o.next;o.next=i.next,i.next=l}r.baseQueue=o=i,n.pending=null}if(null!==o){i=o.next,r=r.baseState;var s=l=null,c=null,u=i;do{var d=u.lane;if((mi&d)===d)null!==c&&(c=c.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),r=u.hasEagerState?u.eagerState:e(r,u.action);else{var p={lane:d,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};null===c?(s=c=p,l=r):c=c.next=p,gi.lanes|=d,Bs|=d}u=u.next}while(null!==u&&u!==i);null===c?l=r:c.next=s,lr(r,t.memoizedState)||(wl=!0),t.memoizedState=r,t.baseState=l,t.baseQueue=c,n.lastRenderedState=r}if(null!==(e=n.interleaved)){o=e;do{i=o.lane,gi.lanes|=i,Bs|=i,o=o.next}while(o!==e)}else null===o&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function Ii(e){var t=Oi(),n=t.queue;if(null===n)throw Error(a(311));n.lastRenderedReducer=e;var r=n.dispatch,o=n.pending,i=t.memoizedState;if(null!==o){n.pending=null;var l=o=o.next;do{i=e(i,l.action),l=l.next}while(l!==o);lr(i,t.memoizedState)||(wl=!0),t.memoizedState=i,null===t.baseQueue&&(t.baseState=i),n.lastRenderedState=i}return[i,r]}function Pi(){}function Ti(e,t){var n=gi,r=Oi(),o=t(),i=!lr(r.memoizedState,o);if(i&&(r.memoizedState=o,wl=!0),r=r.queue,Hi(Li.bind(null,n,r,e),[e]),r.getSnapshot!==t||i||null!==bi&&1&bi.memoizedState.tag){if(n.flags|=2048,ji(9,Ai.bind(null,n,r,o,t),void 0,null),null===Is)throw Error(a(349));0!=(30&mi)||Ri(n,t,o)}return o}function Ri(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},null===(t=gi.updateQueue)?(t={lastEffect:null,stores:null},gi.updateQueue=t,t.stores=[e]):null===(n=t.stores)?t.stores=[e]:n.push(e)}function Ai(e,t,n,r){t.value=n,t.getSnapshot=r,Mi(t)&&Bi(e)}function Li(e,t,n){return n((function(){Mi(t)&&Bi(e)}))}function Mi(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!lr(e,n)}catch(e){return!0}}function Bi(e){var t=Ia(e,1);null!==t&&rc(t,e,1,-1)}function Fi(e){var t=_i();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Ni,lastRenderedState:e},t.queue=e,e=e.dispatch=nl.bind(null,gi,e),[t.memoizedState,e]}function ji(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=gi.updateQueue)?(t={lastEffect:null,stores:null},gi.updateQueue=t,t.lastEffect=e.next=e):null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function zi(){return Oi().memoizedState}function Ui(e,t,n,r){var o=_i();gi.flags|=e,o.memoizedState=ji(1|t,n,void 0,void 0===r?null:r)}function Wi(e,t,n,r){var o=Oi();r=void 0===r?null:r;var a=void 0;if(null!==hi){var i=hi.memoizedState;if(a=i.destroy,null!==r&&Si(r,i.deps))return void(o.memoizedState=ji(t,n,a,r))}gi.flags|=e,o.memoizedState=ji(1|t,n,a,r)}function $i(e,t){return Ui(8390656,8,e,t)}function Hi(e,t){return Wi(2048,8,e,t)}function Gi(e,t){return Wi(4,2,e,t)}function Vi(e,t){return Wi(4,4,e,t)}function qi(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 Ki(e,t,n){return n=null!=n?n.concat([e]):null,Wi(4,4,qi.bind(null,t,e),n)}function Qi(){}function Yi(e,t){var n=Oi();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&Si(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Xi(e,t){var n=Oi();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&Si(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Ji(e,t,n){return 0==(21&mi)?(e.baseState&&(e.baseState=!1,wl=!0),e.memoizedState=n):(lr(n,t)||(n=gt(),gi.lanes|=n,Bs|=n,e.baseState=!0),t)}function Zi(e,t){var n=yt;yt=0!==n&&4>n?n:4,e(!0);var r=fi.transition;fi.transition={};try{e(!1),t()}finally{yt=n,fi.transition=r}}function el(){return Oi().memoizedState}function tl(e,t,n){var r=nc(e);n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},rl(e)?ol(t,n):null!==(n=Da(e,t,n,r))&&(rc(n,e,r,tc()),al(n,t,r))}function nl(e,t,n){var r=nc(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(rl(e))ol(t,o);else{var a=e.alternate;if(0===e.lanes&&(null===a||0===a.lanes)&&null!==(a=t.lastRenderedReducer))try{var i=t.lastRenderedState,l=a(i,n);if(o.hasEagerState=!0,o.eagerState=l,lr(l,i)){var s=t.interleaved;return null===s?(o.next=o,Na(t)):(o.next=s.next,s.next=o),void(t.interleaved=o)}}catch(e){}null!==(n=Da(e,t,o,r))&&(rc(n,e,r,o=tc()),al(n,t,r))}}function rl(e){var t=e.alternate;return e===gi||null!==t&&t===gi}function ol(e,t){yi=vi=!0;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function al(e,t,n){if(0!=(4194240&n)){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,vt(e,n)}}var il={readContext:_a,useCallback:xi,useContext:xi,useEffect:xi,useImperativeHandle:xi,useInsertionEffect:xi,useLayoutEffect:xi,useMemo:xi,useReducer:xi,useRef:xi,useState:xi,useDebugValue:xi,useDeferredValue:xi,useTransition:xi,useMutableSource:xi,useSyncExternalStore:xi,useId:xi,unstable_isNewReconciler:!1},ll={readContext:_a,useCallback:function(e,t){return _i().memoizedState=[e,void 0===t?null:t],e},useContext:_a,useEffect:$i,useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,Ui(4194308,4,qi.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Ui(4194308,4,e,t)},useInsertionEffect:function(e,t){return Ui(4,2,e,t)},useMemo:function(e,t){var n=_i();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=_i();return t=void 0!==n?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=tl.bind(null,gi,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},_i().memoizedState=e},useState:Fi,useDebugValue:Qi,useDeferredValue:function(e){return _i().memoizedState=e},useTransition:function(){var e=Fi(!1),t=e[0];return e=Zi.bind(null,e[1]),_i().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=gi,o=_i();if(aa){if(void 0===n)throw Error(a(407));n=n()}else{if(n=t(),null===Is)throw Error(a(349));0!=(30&mi)||Ri(r,t,n)}o.memoizedState=n;var i={value:n,getSnapshot:t};return o.queue=i,$i(Li.bind(null,r,i,e),[e]),r.flags|=2048,ji(9,Ai.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=_i(),t=Is.identifierPrefix;if(aa){var n=Jo;t=":"+t+"R"+(n=(Xo&~(1<<32-it(Xo)-1)).toString(32)+n),0<(n=wi++)&&(t+="H"+n.toString(32)),t+=":"}else t=":"+t+"r"+(n=Ei++).toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},sl={readContext:_a,useCallback:Yi,useContext:_a,useEffect:Hi,useImperativeHandle:Ki,useInsertionEffect:Gi,useLayoutEffect:Vi,useMemo:Xi,useReducer:Di,useRef:zi,useState:function(){return Di(Ni)},useDebugValue:Qi,useDeferredValue:function(e){return Ji(Oi(),hi.memoizedState,e)},useTransition:function(){return[Di(Ni)[0],Oi().memoizedState]},useMutableSource:Pi,useSyncExternalStore:Ti,useId:el,unstable_isNewReconciler:!1},cl={readContext:_a,useCallback:Yi,useContext:_a,useEffect:Hi,useImperativeHandle:Ki,useInsertionEffect:Gi,useLayoutEffect:Vi,useMemo:Xi,useReducer:Ii,useRef:zi,useState:function(){return Ii(Ni)},useDebugValue:Qi,useDeferredValue:function(e){var t=Oi();return null===hi?t.memoizedState=e:Ji(t,hi.memoizedState,e)},useTransition:function(){return[Ii(Ni)[0],Oi().memoizedState]},useMutableSource:Pi,useSyncExternalStore:Ti,useId:el,unstable_isNewReconciler:!1};function ul(e,t){try{var n="",r=t;do{n+=U(r),r=r.return}while(r);var o=n}catch(e){o="\nError generating stack: "+e.message+"\n"+e.stack}return{value:e,source:t,stack:o,digest:null}}function dl(e,t,n){return{value:e,source:null,stack:null!=n?n:null,digest:null!=t?t:null}}function pl(e,t){try{console.error(t.value)}catch(e){setTimeout((function(){throw e}))}}var fl="function"==typeof WeakMap?WeakMap:Map;function ml(e,t,n){(n=Aa(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Gs||(Gs=!0,Vs=r),pl(0,t)},n}function gl(e,t,n){(n=Aa(-1,n)).tag=3;var r=e.type.getDerivedStateFromError;if("function"==typeof r){var o=t.value;n.payload=function(){return r(o)},n.callback=function(){pl(0,t)}}var a=e.stateNode;return null!==a&&"function"==typeof a.componentDidCatch&&(n.callback=function(){pl(0,t),"function"!=typeof r&&(null===qs?qs=new Set([this]):qs.add(this));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}function hl(e,t,n){var r=e.pingCache;if(null===r){r=e.pingCache=new fl;var o=new Set;r.set(t,o)}else void 0===(o=r.get(t))&&(o=new Set,r.set(t,o));o.has(n)||(o.add(n),e=_c.bind(null,e,t,n),t.then(e,e))}function bl(e){do{var t;if((t=13===e.tag)&&(t=null===(t=e.memoizedState)||null!==t.dehydrated),t)return e;e=e.return}while(null!==e);return null}function vl(e,t,n,r,o){return 0==(1&e.mode)?(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,1===n.tag&&(null===n.alternate?n.tag=17:((t=Aa(-1,1)).tag=2,La(n,t,1))),n.lanes|=1),e):(e.flags|=65536,e.lanes=o,e)}var yl=w.ReactCurrentOwner,wl=!1;function El(e,t,n,r){t.child=null===e?Ja(t,null,n,r):Xa(t,e.child,n,r)}function xl(e,t,n,r,o){n=n.render;var a=t.ref;return Ca(t,o),r=ki(e,t,n,r,a,o),n=Ci(),null===e||wl?(aa&&n&&ta(t),t.flags|=1,El(e,t,r,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Gl(e,t,o))}function Sl(e,t,n,r,o){if(null===e){var a=n.type;return"function"!=typeof a||Rc(a)||void 0!==a.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=Lc(n.type,null,r,t,t.mode,o)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=a,kl(e,t,a,r,o))}if(a=e.child,0==(e.lanes&o)){var i=a.memoizedProps;if((n=null!==(n=n.compare)?n:sr)(i,r)&&e.ref===t.ref)return Gl(e,t,o)}return t.flags|=1,(e=Ac(a,r)).ref=t.ref,e.return=t,t.child=e}function kl(e,t,n,r,o){if(null!==e){var a=e.memoizedProps;if(sr(a,r)&&e.ref===t.ref){if(wl=!1,t.pendingProps=r=a,0==(e.lanes&o))return t.lanes=e.lanes,Gl(e,t,o);0!=(131072&e.flags)&&(wl=!0)}}return Ol(e,t,n,r,o)}function Cl(e,t,n){var r=t.pendingProps,o=r.children,a=null!==e?e.memoizedState:null;if("hidden"===r.mode)if(0==(1&t.mode))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Oo(As,Rs),Rs|=n;else{if(0==(1073741824&n))return e=null!==a?a.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Oo(As,Rs),Rs|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=null!==a?a.baseLanes:n,Oo(As,Rs),Rs|=r}else null!==a?(r=a.baseLanes|n,t.memoizedState=null):r=n,Oo(As,Rs),Rs|=r;return El(e,t,o,n),t.child}function _l(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Ol(e,t,n,r,o){var a=Ro(n)?Po:Do.current;return a=To(t,a),Ca(t,o),n=ki(e,t,n,r,a,o),r=Ci(),null===e||wl?(aa&&r&&ta(t),t.flags|=1,El(e,t,n,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Gl(e,t,o))}function Nl(e,t,n,r,o){if(Ro(n)){var a=!0;Bo(t)}else a=!1;if(Ca(t,o),null===t.stateNode)Hl(e,t),Ha(t,n,r),Va(t,n,r,o),r=!0;else if(null===e){var i=t.stateNode,l=t.memoizedProps;i.props=l;var s=i.context,c=n.contextType;c="object"==typeof c&&null!==c?_a(c):To(t,c=Ro(n)?Po:Do.current);var u=n.getDerivedStateFromProps,d="function"==typeof u||"function"==typeof i.getSnapshotBeforeUpdate;d||"function"!=typeof i.UNSAFE_componentWillReceiveProps&&"function"!=typeof i.componentWillReceiveProps||(l!==r||s!==c)&&Ga(t,i,r,c),Pa=!1;var p=t.memoizedState;i.state=p,Fa(t,r,i,o),s=t.memoizedState,l!==r||p!==s||Io.current||Pa?("function"==typeof u&&(Ua(t,n,u,r),s=t.memoizedState),(l=Pa||$a(t,n,l,r,p,s,c))?(d||"function"!=typeof i.UNSAFE_componentWillMount&&"function"!=typeof i.componentWillMount||("function"==typeof i.componentWillMount&&i.componentWillMount(),"function"==typeof i.UNSAFE_componentWillMount&&i.UNSAFE_componentWillMount()),"function"==typeof i.componentDidMount&&(t.flags|=4194308)):("function"==typeof i.componentDidMount&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=s),i.props=r,i.state=s,i.context=c,r=l):("function"==typeof i.componentDidMount&&(t.flags|=4194308),r=!1)}else{i=t.stateNode,Ra(e,t),l=t.memoizedProps,c=t.type===t.elementType?l:ba(t.type,l),i.props=c,d=t.pendingProps,p=i.context,s="object"==typeof(s=n.contextType)&&null!==s?_a(s):To(t,s=Ro(n)?Po:Do.current);var f=n.getDerivedStateFromProps;(u="function"==typeof f||"function"==typeof i.getSnapshotBeforeUpdate)||"function"!=typeof i.UNSAFE_componentWillReceiveProps&&"function"!=typeof i.componentWillReceiveProps||(l!==d||p!==s)&&Ga(t,i,r,s),Pa=!1,p=t.memoizedState,i.state=p,Fa(t,r,i,o);var m=t.memoizedState;l!==d||p!==m||Io.current||Pa?("function"==typeof f&&(Ua(t,n,f,r),m=t.memoizedState),(c=Pa||$a(t,n,c,r,p,m,s)||!1)?(u||"function"!=typeof i.UNSAFE_componentWillUpdate&&"function"!=typeof i.componentWillUpdate||("function"==typeof i.componentWillUpdate&&i.componentWillUpdate(r,m,s),"function"==typeof i.UNSAFE_componentWillUpdate&&i.UNSAFE_componentWillUpdate(r,m,s)),"function"==typeof i.componentDidUpdate&&(t.flags|=4),"function"==typeof i.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!=typeof i.componentDidUpdate||l===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),"function"!=typeof i.getSnapshotBeforeUpdate||l===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=m),i.props=r,i.state=m,i.context=s,r=c):("function"!=typeof i.componentDidUpdate||l===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),"function"!=typeof i.getSnapshotBeforeUpdate||l===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),r=!1)}return Dl(e,t,n,r,a,o)}function Dl(e,t,n,r,o,a){_l(e,t);var i=0!=(128&t.flags);if(!r&&!i)return o&&Fo(t,n,!1),Gl(e,t,a);r=t.stateNode,yl.current=t;var l=i&&"function"!=typeof n.getDerivedStateFromError?null:r.render();return t.flags|=1,null!==e&&i?(t.child=Xa(t,e.child,null,a),t.child=Xa(t,null,l,a)):El(e,t,l,a),t.memoizedState=r.state,o&&Fo(t,n,!0),t.child}function Il(e){var t=e.stateNode;t.pendingContext?Lo(0,t.pendingContext,t.pendingContext!==t.context):t.context&&Lo(0,t.context,!1),oi(e,t.containerInfo)}function Pl(e,t,n,r,o){return ma(),ga(o),t.flags|=256,El(e,t,n,r),t.child}var Tl,Rl,Al,Ll,Ml={dehydrated:null,treeContext:null,retryLane:0};function Bl(e){return{baseLanes:e,cachePool:null,transitions:null}}function Fl(e,t,n){var r,o=t.pendingProps,i=si.current,l=!1,s=0!=(128&t.flags);if((r=s)||(r=(null===e||null!==e.memoizedState)&&0!=(2&i)),r?(l=!0,t.flags&=-129):null!==e&&null===e.memoizedState||(i|=1),Oo(si,1&i),null===e)return ua(t),null!==(e=t.memoizedState)&&null!==(e=e.dehydrated)?(0==(1&t.mode)?t.lanes=1:"$!"===e.data?t.lanes=8:t.lanes=1073741824,null):(s=o.children,e=o.fallback,l?(o=t.mode,l=t.child,s={mode:"hidden",children:s},0==(1&o)&&null!==l?(l.childLanes=0,l.pendingProps=s):l=Bc(s,o,0,null),e=Mc(e,o,n,null),l.return=t,e.return=t,l.sibling=e,t.child=l,t.child.memoizedState=Bl(n),t.memoizedState=Ml,e):jl(t,s));if(null!==(i=e.memoizedState)&&null!==(r=i.dehydrated))return function(e,t,n,r,o,i,l){if(n)return 256&t.flags?(t.flags&=-257,zl(e,t,l,r=dl(Error(a(422))))):null!==t.memoizedState?(t.child=e.child,t.flags|=128,null):(i=r.fallback,o=t.mode,r=Bc({mode:"visible",children:r.children},o,0,null),(i=Mc(i,o,l,null)).flags|=2,r.return=t,i.return=t,r.sibling=i,t.child=r,0!=(1&t.mode)&&Xa(t,e.child,null,l),t.child.memoizedState=Bl(l),t.memoizedState=Ml,i);if(0==(1&t.mode))return zl(e,t,l,null);if("$!"===o.data){if(r=o.nextSibling&&o.nextSibling.dataset)var s=r.dgst;return r=s,zl(e,t,l,r=dl(i=Error(a(419)),r,void 0))}if(s=0!=(l&e.childLanes),wl||s){if(null!==(r=Is)){switch(l&-l){case 4:o=2;break;case 16:o=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:o=32;break;case 536870912:o=268435456;break;default:o=0}0!==(o=0!=(o&(r.suspendedLanes|l))?0:o)&&o!==i.retryLane&&(i.retryLane=o,Ia(e,o),rc(r,e,o,-1))}return hc(),zl(e,t,l,r=dl(Error(a(421))))}return"$?"===o.data?(t.flags|=128,t.child=e.child,t=Nc.bind(null,e),o._reactRetry=t,null):(e=i.treeContext,oa=co(o.nextSibling),ra=t,aa=!0,ia=null,null!==e&&(Ko[Qo++]=Xo,Ko[Qo++]=Jo,Ko[Qo++]=Yo,Xo=e.id,Jo=e.overflow,Yo=t),(t=jl(t,r.children)).flags|=4096,t)}(e,t,s,o,r,i,n);if(l){l=o.fallback,s=t.mode,r=(i=e.child).sibling;var c={mode:"hidden",children:o.children};return 0==(1&s)&&t.child!==i?((o=t.child).childLanes=0,o.pendingProps=c,t.deletions=null):(o=Ac(i,c)).subtreeFlags=14680064&i.subtreeFlags,null!==r?l=Ac(r,l):(l=Mc(l,s,n,null)).flags|=2,l.return=t,o.return=t,o.sibling=l,t.child=o,o=l,l=t.child,s=null===(s=e.child.memoizedState)?Bl(n):{baseLanes:s.baseLanes|n,cachePool:null,transitions:s.transitions},l.memoizedState=s,l.childLanes=e.childLanes&~n,t.memoizedState=Ml,o}return e=(l=e.child).sibling,o=Ac(l,{mode:"visible",children:o.children}),0==(1&t.mode)&&(o.lanes=n),o.return=t,o.sibling=null,null!==e&&(null===(n=t.deletions)?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=o,t.memoizedState=null,o}function jl(e,t){return(t=Bc({mode:"visible",children:t},e.mode,0,null)).return=e,e.child=t}function zl(e,t,n,r){return null!==r&&ga(r),Xa(t,e.child,null,n),(e=jl(t,t.pendingProps.children)).flags|=2,t.memoizedState=null,e}function Ul(e,t,n){e.lanes|=t;var r=e.alternate;null!==r&&(r.lanes|=t),ka(e.return,t,n)}function Wl(e,t,n,r,o){var a=e.memoizedState;null===a?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:o}:(a.isBackwards=t,a.rendering=null,a.renderingStartTime=0,a.last=r,a.tail=n,a.tailMode=o)}function $l(e,t,n){var r=t.pendingProps,o=r.revealOrder,a=r.tail;if(El(e,t,r.children,n),0!=(2&(r=si.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&&Ul(e,n,t);else if(19===e.tag)Ul(e,n,t);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(Oo(si,r),0==(1&t.mode))t.memoizedState=null;else switch(o){case"forwards":for(n=t.child,o=null;null!==n;)null!==(e=n.alternate)&&null===ci(e)&&(o=n),n=n.sibling;null===(n=o)?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),Wl(t,!1,o,n,a);break;case"backwards":for(n=null,o=t.child,t.child=null;null!==o;){if(null!==(e=o.alternate)&&null===ci(e)){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}Wl(t,!0,n,null,a);break;case"together":Wl(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Hl(e,t){0==(1&t.mode)&&null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Gl(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),Bs|=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=Ac(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=Ac(e,e.pendingProps)).return=t;n.sibling=null}return t.child}function Vl(e,t){if(!aa)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function ql(e){var t=null!==e.alternate&&e.alternate.child===e.child,n=0,r=0;if(t)for(var o=e.child;null!==o;)n|=o.lanes|o.childLanes,r|=14680064&o.subtreeFlags,r|=14680064&o.flags,o.return=e,o=o.sibling;else for(o=e.child;null!==o;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags,r|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function Kl(e,t,n){var r=t.pendingProps;switch(na(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return ql(t),null;case 1:case 17:return Ro(t.type)&&Ao(),ql(t),null;case 3:return r=t.stateNode,ai(),_o(Io),_o(Do),di(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),null!==e&&null!==e.child||(pa(t)?t.flags|=4:null===e||e.memoizedState.isDehydrated&&0==(256&t.flags)||(t.flags|=1024,null!==ia&&(lc(ia),ia=null))),Rl(e,t),ql(t),null;case 5:li(t);var o=ri(ni.current);if(n=t.type,null!==e&&null!=t.stateNode)Al(e,t,n,r,o),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(null===t.stateNode)throw Error(a(166));return ql(t),null}if(e=ri(ei.current),pa(t)){r=t.stateNode,n=t.type;var i=t.memoizedProps;switch(r[fo]=t,r[mo]=i,e=0!=(1&t.mode),n){case"dialog":jr("cancel",r),jr("close",r);break;case"iframe":case"object":case"embed":jr("load",r);break;case"video":case"audio":for(o=0;o<Lr.length;o++)jr(Lr[o],r);break;case"source":jr("error",r);break;case"img":case"image":case"link":jr("error",r),jr("load",r);break;case"details":jr("toggle",r);break;case"input":Y(r,i),jr("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!i.multiple},jr("invalid",r);break;case"textarea":oe(r,i),jr("invalid",r)}for(var s in ve(n,i),o=null,i)if(i.hasOwnProperty(s)){var c=i[s];"children"===s?"string"==typeof c?r.textContent!==c&&(!0!==i.suppressHydrationWarning&&Jr(r.textContent,c,e),o=["children",c]):"number"==typeof c&&r.textContent!==""+c&&(!0!==i.suppressHydrationWarning&&Jr(r.textContent,c,e),o=["children",""+c]):l.hasOwnProperty(s)&&null!=c&&"onScroll"===s&&jr("scroll",r)}switch(n){case"input":V(r),Z(r,i,!0);break;case"textarea":V(r),ie(r);break;case"select":case"option":break;default:"function"==typeof i.onClick&&(r.onclick=Zr)}r=o,t.updateQueue=r,null!==r&&(t.flags|=4)}else{s=9===o.nodeType?o:o.ownerDocument,"http://www.w3.org/1999/xhtml"===e&&(e=le(n)),"http://www.w3.org/1999/xhtml"===e?"script"===n?((e=s.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"==typeof r.is?e=s.createElement(n,{is:r.is}):(e=s.createElement(n),"select"===n&&(s=e,r.multiple?s.multiple=!0:r.size&&(s.size=r.size))):e=s.createElementNS(e,n),e[fo]=t,e[mo]=r,Tl(e,t,!1,!1),t.stateNode=e;e:{switch(s=ye(n,r),n){case"dialog":jr("cancel",e),jr("close",e),o=r;break;case"iframe":case"object":case"embed":jr("load",e),o=r;break;case"video":case"audio":for(o=0;o<Lr.length;o++)jr(Lr[o],e);o=r;break;case"source":jr("error",e),o=r;break;case"img":case"image":case"link":jr("error",e),jr("load",e),o=r;break;case"details":jr("toggle",e),o=r;break;case"input":Y(e,r),o=Q(e,r),jr("invalid",e);break;case"option":default:o=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},o=B({},r,{value:void 0}),jr("invalid",e);break;case"textarea":oe(e,r),o=re(e,r),jr("invalid",e)}for(i in ve(n,o),c=o)if(c.hasOwnProperty(i)){var u=c[i];"style"===i?he(e,u):"dangerouslySetInnerHTML"===i?null!=(u=u?u.__html:void 0)&&de(e,u):"children"===i?"string"==typeof u?("textarea"!==n||""!==u)&&pe(e,u):"number"==typeof u&&pe(e,""+u):"suppressContentEditableWarning"!==i&&"suppressHydrationWarning"!==i&&"autoFocus"!==i&&(l.hasOwnProperty(i)?null!=u&&"onScroll"===i&&jr("scroll",e):null!=u&&y(e,i,u,s))}switch(n){case"input":V(e),Z(e,r,!1);break;case"textarea":V(e),ie(e);break;case"option":null!=r.value&&e.setAttribute("value",""+H(r.value));break;case"select":e.multiple=!!r.multiple,null!=(i=r.value)?ne(e,!!r.multiple,i,!1):null!=r.defaultValue&&ne(e,!!r.multiple,r.defaultValue,!0);break;default:"function"==typeof o.onClick&&(e.onclick=Zr)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}null!==t.ref&&(t.flags|=512,t.flags|=2097152)}return ql(t),null;case 6:if(e&&null!=t.stateNode)Ll(e,t,e.memoizedProps,r);else{if("string"!=typeof r&&null===t.stateNode)throw Error(a(166));if(n=ri(ni.current),ri(ei.current),pa(t)){if(r=t.stateNode,n=t.memoizedProps,r[fo]=t,(i=r.nodeValue!==n)&&null!==(e=ra))switch(e.tag){case 3:Jr(r.nodeValue,n,0!=(1&e.mode));break;case 5:!0!==e.memoizedProps.suppressHydrationWarning&&Jr(r.nodeValue,n,0!=(1&e.mode))}i&&(t.flags|=4)}else(r=(9===n.nodeType?n:n.ownerDocument).createTextNode(r))[fo]=t,t.stateNode=r}return ql(t),null;case 13:if(_o(si),r=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(aa&&null!==oa&&0!=(1&t.mode)&&0==(128&t.flags))fa(),ma(),t.flags|=98560,i=!1;else if(i=pa(t),null!==r&&null!==r.dehydrated){if(null===e){if(!i)throw Error(a(318));if(!(i=null!==(i=t.memoizedState)?i.dehydrated:null))throw Error(a(317));i[fo]=t}else ma(),0==(128&t.flags)&&(t.memoizedState=null),t.flags|=4;ql(t),i=!1}else null!==ia&&(lc(ia),ia=null),i=!0;if(!i)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&si.current)?0===Ls&&(Ls=3):hc())),null!==t.updateQueue&&(t.flags|=4),ql(t),null);case 4:return ai(),Rl(e,t),null===e&&Wr(t.stateNode.containerInfo),ql(t),null;case 10:return Sa(t.type._context),ql(t),null;case 19:if(_o(si),null===(i=t.memoizedState))return ql(t),null;if(r=0!=(128&t.flags),null===(s=i.rendering))if(r)Vl(i,!1);else{if(0!==Ls||null!==e&&0!=(128&e.flags))for(e=t.child;null!==e;){if(null!==(s=ci(e))){for(t.flags|=128,Vl(i,!1),null!==(r=s.updateQueue)&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;null!==n;)e=r,(i=n).flags&=14680066,null===(s=i.alternate)?(i.childLanes=0,i.lanes=e,i.child=null,i.subtreeFlags=0,i.memoizedProps=null,i.memoizedState=null,i.updateQueue=null,i.dependencies=null,i.stateNode=null):(i.childLanes=s.childLanes,i.lanes=s.lanes,i.child=s.child,i.subtreeFlags=0,i.deletions=null,i.memoizedProps=s.memoizedProps,i.memoizedState=s.memoizedState,i.updateQueue=s.updateQueue,i.type=s.type,e=s.dependencies,i.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return Oo(si,1&si.current|2),t.child}e=e.sibling}null!==i.tail&&Xe()>$s&&(t.flags|=128,r=!0,Vl(i,!1),t.lanes=4194304)}else{if(!r)if(null!==(e=ci(s))){if(t.flags|=128,r=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.flags|=4),Vl(i,!0),null===i.tail&&"hidden"===i.tailMode&&!s.alternate&&!aa)return ql(t),null}else 2*Xe()-i.renderingStartTime>$s&&1073741824!==n&&(t.flags|=128,r=!0,Vl(i,!1),t.lanes=4194304);i.isBackwards?(s.sibling=t.child,t.child=s):(null!==(n=i.last)?n.sibling=s:t.child=s,i.last=s)}return null!==i.tail?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=Xe(),t.sibling=null,n=si.current,Oo(si,r?1&n|2:1&n),t):(ql(t),null);case 22:case 23:return pc(),r=null!==t.memoizedState,null!==e&&null!==e.memoizedState!==r&&(t.flags|=8192),r&&0!=(1&t.mode)?0!=(1073741824&Rs)&&(ql(t),6&t.subtreeFlags&&(t.flags|=8192)):ql(t),null;case 24:case 25:return null}throw Error(a(156,t.tag))}function Ql(e,t){switch(na(t),t.tag){case 1:return Ro(t.type)&&Ao(),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return ai(),_o(Io),_o(Do),di(),0!=(65536&(e=t.flags))&&0==(128&e)?(t.flags=-65537&e|128,t):null;case 5:return li(t),null;case 13:if(_o(si),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(a(340));ma()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return _o(si),null;case 4:return ai(),null;case 10:return Sa(t.type._context),null;case 22:case 23:return pc(),null;default:return null}}Tl=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},Rl=function(){},Al=function(e,t,n,r){var o=e.memoizedProps;if(o!==r){e=t.stateNode,ri(ei.current);var a,i=null;switch(n){case"input":o=Q(e,o),r=Q(e,r),i=[];break;case"select":o=B({},o,{value:void 0}),r=B({},r,{value:void 0}),i=[];break;case"textarea":o=re(e,o),r=re(e,r),i=[];break;default:"function"!=typeof o.onClick&&"function"==typeof r.onClick&&(e.onclick=Zr)}for(u in ve(n,r),n=null,o)if(!r.hasOwnProperty(u)&&o.hasOwnProperty(u)&&null!=o[u])if("style"===u){var s=o[u];for(a in s)s.hasOwnProperty(a)&&(n||(n={}),n[a]="")}else"dangerouslySetInnerHTML"!==u&&"children"!==u&&"suppressContentEditableWarning"!==u&&"suppressHydrationWarning"!==u&&"autoFocus"!==u&&(l.hasOwnProperty(u)?i||(i=[]):(i=i||[]).push(u,null));for(u in r){var c=r[u];if(s=null!=o?o[u]:void 0,r.hasOwnProperty(u)&&c!==s&&(null!=c||null!=s))if("style"===u)if(s){for(a in s)!s.hasOwnProperty(a)||c&&c.hasOwnProperty(a)||(n||(n={}),n[a]="");for(a in c)c.hasOwnProperty(a)&&s[a]!==c[a]&&(n||(n={}),n[a]=c[a])}else n||(i||(i=[]),i.push(u,n)),n=c;else"dangerouslySetInnerHTML"===u?(c=c?c.__html:void 0,s=s?s.__html:void 0,null!=c&&s!==c&&(i=i||[]).push(u,c)):"children"===u?"string"!=typeof c&&"number"!=typeof c||(i=i||[]).push(u,""+c):"suppressContentEditableWarning"!==u&&"suppressHydrationWarning"!==u&&(l.hasOwnProperty(u)?(null!=c&&"onScroll"===u&&jr("scroll",e),i||s===c||(i=[])):(i=i||[]).push(u,c))}n&&(i=i||[]).push("style",n);var u=i;(t.updateQueue=u)&&(t.flags|=4)}},Ll=function(e,t,n,r){n!==r&&(t.flags|=4)};var Yl=!1,Xl=!1,Jl="function"==typeof WeakSet?WeakSet:Set,Zl=null;function es(e,t){var n=e.ref;if(null!==n)if("function"==typeof n)try{n(null)}catch(n){Cc(e,t,n)}else n.current=null}function ts(e,t,n){try{n()}catch(n){Cc(e,t,n)}}var ns=!1;function rs(e,t,n){var r=t.updateQueue;if(null!==(r=null!==r?r.lastEffect:null)){var o=r=r.next;do{if((o.tag&e)===e){var a=o.destroy;o.destroy=void 0,void 0!==a&&ts(t,n,a)}o=o.next}while(o!==r)}}function os(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function as(e){var t=e.ref;if(null!==t){var n=e.stateNode;e.tag,e=n,"function"==typeof t?t(e):t.current=e}}function is(e){var t=e.alternate;null!==t&&(e.alternate=null,is(t)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&null!==(t=e.stateNode)&&(delete t[fo],delete t[mo],delete t[ho],delete t[bo],delete t[vo]),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function ls(e){return 5===e.tag||3===e.tag||4===e.tag}function ss(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||ls(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;5!==e.tag&&6!==e.tag&&18!==e.tag;){if(2&e.flags)continue e;if(null===e.child||4===e.tag)continue e;e.child.return=e,e=e.child}if(!(2&e.flags))return e.stateNode}}function cs(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?8===n.nodeType?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(8===n.nodeType?(t=n.parentNode).insertBefore(e,n):(t=n).appendChild(e),null!=(n=n._reactRootContainer)||null!==t.onclick||(t.onclick=Zr));else if(4!==r&&null!==(e=e.child))for(cs(e,t,n),e=e.sibling;null!==e;)cs(e,t,n),e=e.sibling}function us(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==r&&null!==(e=e.child))for(us(e,t,n),e=e.sibling;null!==e;)us(e,t,n),e=e.sibling}var ds=null,ps=!1;function fs(e,t,n){for(n=n.child;null!==n;)ms(e,t,n),n=n.sibling}function ms(e,t,n){if(at&&"function"==typeof at.onCommitFiberUnmount)try{at.onCommitFiberUnmount(ot,n)}catch(e){}switch(n.tag){case 5:Xl||es(n,t);case 6:var r=ds,o=ps;ds=null,fs(e,t,n),ps=o,null!==(ds=r)&&(ps?(e=ds,n=n.stateNode,8===e.nodeType?e.parentNode.removeChild(n):e.removeChild(n)):ds.removeChild(n.stateNode));break;case 18:null!==ds&&(ps?(e=ds,n=n.stateNode,8===e.nodeType?so(e.parentNode,n):1===e.nodeType&&so(e,n),Wt(e)):so(ds,n.stateNode));break;case 4:r=ds,o=ps,ds=n.stateNode.containerInfo,ps=!0,fs(e,t,n),ds=r,ps=o;break;case 0:case 11:case 14:case 15:if(!Xl&&null!==(r=n.updateQueue)&&null!==(r=r.lastEffect)){o=r=r.next;do{var a=o,i=a.destroy;a=a.tag,void 0!==i&&(0!=(2&a)||0!=(4&a))&&ts(n,t,i),o=o.next}while(o!==r)}fs(e,t,n);break;case 1:if(!Xl&&(es(n,t),"function"==typeof(r=n.stateNode).componentWillUnmount))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(e){Cc(n,t,e)}fs(e,t,n);break;case 21:fs(e,t,n);break;case 22:1&n.mode?(Xl=(r=Xl)||null!==n.memoizedState,fs(e,t,n),Xl=r):fs(e,t,n);break;default:fs(e,t,n)}}function gs(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new Jl),t.forEach((function(t){var r=Dc.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))}))}}function hs(e,t){var n=t.deletions;if(null!==n)for(var r=0;r<n.length;r++){var o=n[r];try{var i=e,l=t,s=l;e:for(;null!==s;){switch(s.tag){case 5:ds=s.stateNode,ps=!1;break e;case 3:case 4:ds=s.stateNode.containerInfo,ps=!0;break e}s=s.return}if(null===ds)throw Error(a(160));ms(i,l,o),ds=null,ps=!1;var c=o.alternate;null!==c&&(c.return=null),o.return=null}catch(e){Cc(o,t,e)}}if(12854&t.subtreeFlags)for(t=t.child;null!==t;)bs(t,e),t=t.sibling}function bs(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(hs(t,e),vs(e),4&r){try{rs(3,e,e.return),os(3,e)}catch(t){Cc(e,e.return,t)}try{rs(5,e,e.return)}catch(t){Cc(e,e.return,t)}}break;case 1:hs(t,e),vs(e),512&r&&null!==n&&es(n,n.return);break;case 5:if(hs(t,e),vs(e),512&r&&null!==n&&es(n,n.return),32&e.flags){var o=e.stateNode;try{pe(o,"")}catch(t){Cc(e,e.return,t)}}if(4&r&&null!=(o=e.stateNode)){var i=e.memoizedProps,l=null!==n?n.memoizedProps:i,s=e.type,c=e.updateQueue;if(e.updateQueue=null,null!==c)try{"input"===s&&"radio"===i.type&&null!=i.name&&X(o,i),ye(s,l);var u=ye(s,i);for(l=0;l<c.length;l+=2){var d=c[l],p=c[l+1];"style"===d?he(o,p):"dangerouslySetInnerHTML"===d?de(o,p):"children"===d?pe(o,p):y(o,d,p,u)}switch(s){case"input":J(o,i);break;case"textarea":ae(o,i);break;case"select":var f=o._wrapperState.wasMultiple;o._wrapperState.wasMultiple=!!i.multiple;var m=i.value;null!=m?ne(o,!!i.multiple,m,!1):f!==!!i.multiple&&(null!=i.defaultValue?ne(o,!!i.multiple,i.defaultValue,!0):ne(o,!!i.multiple,i.multiple?[]:"",!1))}o[mo]=i}catch(t){Cc(e,e.return,t)}}break;case 6:if(hs(t,e),vs(e),4&r){if(null===e.stateNode)throw Error(a(162));o=e.stateNode,i=e.memoizedProps;try{o.nodeValue=i}catch(t){Cc(e,e.return,t)}}break;case 3:if(hs(t,e),vs(e),4&r&&null!==n&&n.memoizedState.isDehydrated)try{Wt(t.containerInfo)}catch(t){Cc(e,e.return,t)}break;case 4:default:hs(t,e),vs(e);break;case 13:hs(t,e),vs(e),8192&(o=e.child).flags&&(i=null!==o.memoizedState,o.stateNode.isHidden=i,!i||null!==o.alternate&&null!==o.alternate.memoizedState||(Ws=Xe())),4&r&&gs(e);break;case 22:if(d=null!==n&&null!==n.memoizedState,1&e.mode?(Xl=(u=Xl)||d,hs(t,e),Xl=u):hs(t,e),vs(e),8192&r){if(u=null!==e.memoizedState,(e.stateNode.isHidden=u)&&!d&&0!=(1&e.mode))for(Zl=e,d=e.child;null!==d;){for(p=Zl=d;null!==Zl;){switch(m=(f=Zl).child,f.tag){case 0:case 11:case 14:case 15:rs(4,f,f.return);break;case 1:es(f,f.return);var g=f.stateNode;if("function"==typeof g.componentWillUnmount){r=f,n=f.return;try{t=r,g.props=t.memoizedProps,g.state=t.memoizedState,g.componentWillUnmount()}catch(e){Cc(r,n,e)}}break;case 5:es(f,f.return);break;case 22:if(null!==f.memoizedState){xs(p);continue}}null!==m?(m.return=f,Zl=m):xs(p)}d=d.sibling}e:for(d=null,p=e;;){if(5===p.tag){if(null===d){d=p;try{o=p.stateNode,u?"function"==typeof(i=o.style).setProperty?i.setProperty("display","none","important"):i.display="none":(s=p.stateNode,l=null!=(c=p.memoizedProps.style)&&c.hasOwnProperty("display")?c.display:null,s.style.display=ge("display",l))}catch(t){Cc(e,e.return,t)}}}else if(6===p.tag){if(null===d)try{p.stateNode.nodeValue=u?"":p.memoizedProps}catch(t){Cc(e,e.return,t)}}else if((22!==p.tag&&23!==p.tag||null===p.memoizedState||p===e)&&null!==p.child){p.child.return=p,p=p.child;continue}if(p===e)break e;for(;null===p.sibling;){if(null===p.return||p.return===e)break e;d===p&&(d=null),p=p.return}d===p&&(d=null),p.sibling.return=p.return,p=p.sibling}}break;case 19:hs(t,e),vs(e),4&r&&gs(e);case 21:}}function vs(e){var t=e.flags;if(2&t){try{e:{for(var n=e.return;null!==n;){if(ls(n)){var r=n;break e}n=n.return}throw Error(a(160))}switch(r.tag){case 5:var o=r.stateNode;32&r.flags&&(pe(o,""),r.flags&=-33),us(e,ss(e),o);break;case 3:case 4:var i=r.stateNode.containerInfo;cs(e,ss(e),i);break;default:throw Error(a(161))}}catch(t){Cc(e,e.return,t)}e.flags&=-3}4096&t&&(e.flags&=-4097)}function ys(e,t,n){Zl=e,ws(e,t,n)}function ws(e,t,n){for(var r=0!=(1&e.mode);null!==Zl;){var o=Zl,a=o.child;if(22===o.tag&&r){var i=null!==o.memoizedState||Yl;if(!i){var l=o.alternate,s=null!==l&&null!==l.memoizedState||Xl;l=Yl;var c=Xl;if(Yl=i,(Xl=s)&&!c)for(Zl=o;null!==Zl;)s=(i=Zl).child,22===i.tag&&null!==i.memoizedState?Ss(o):null!==s?(s.return=i,Zl=s):Ss(o);for(;null!==a;)Zl=a,ws(a,t,n),a=a.sibling;Zl=o,Yl=l,Xl=c}Es(e)}else 0!=(8772&o.subtreeFlags)&&null!==a?(a.return=o,Zl=a):Es(e)}}function Es(e){for(;null!==Zl;){var t=Zl;if(0!=(8772&t.flags)){var n=t.alternate;try{if(0!=(8772&t.flags))switch(t.tag){case 0:case 11:case 15:Xl||os(5,t);break;case 1:var r=t.stateNode;if(4&t.flags&&!Xl)if(null===n)r.componentDidMount();else{var o=t.elementType===t.type?n.memoizedProps:ba(t.type,n.memoizedProps);r.componentDidUpdate(o,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var i=t.updateQueue;null!==i&&ja(t,i,r);break;case 3:var l=t.updateQueue;if(null!==l){if(n=null,null!==t.child)switch(t.child.tag){case 5:case 1:n=t.child.stateNode}ja(t,l,n)}break;case 5:var s=t.stateNode;if(null===n&&4&t.flags){n=s;var c=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":c.autoFocus&&n.focus();break;case"img":c.src&&(n.src=c.src)}}break;case 6:case 4:case 12:case 19:case 17:case 21:case 22:case 23:case 25:break;case 13:if(null===t.memoizedState){var u=t.alternate;if(null!==u){var d=u.memoizedState;if(null!==d){var p=d.dehydrated;null!==p&&Wt(p)}}}break;default:throw Error(a(163))}Xl||512&t.flags&&as(t)}catch(e){Cc(t,t.return,e)}}if(t===e){Zl=null;break}if(null!==(n=t.sibling)){n.return=t.return,Zl=n;break}Zl=t.return}}function xs(e){for(;null!==Zl;){var t=Zl;if(t===e){Zl=null;break}var n=t.sibling;if(null!==n){n.return=t.return,Zl=n;break}Zl=t.return}}function Ss(e){for(;null!==Zl;){var t=Zl;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{os(4,t)}catch(e){Cc(t,n,e)}break;case 1:var r=t.stateNode;if("function"==typeof r.componentDidMount){var o=t.return;try{r.componentDidMount()}catch(e){Cc(t,o,e)}}var a=t.return;try{as(t)}catch(e){Cc(t,a,e)}break;case 5:var i=t.return;try{as(t)}catch(e){Cc(t,i,e)}}}catch(e){Cc(t,t.return,e)}if(t===e){Zl=null;break}var l=t.sibling;if(null!==l){l.return=t.return,Zl=l;break}Zl=t.return}}var ks,Cs=Math.ceil,_s=w.ReactCurrentDispatcher,Os=w.ReactCurrentOwner,Ns=w.ReactCurrentBatchConfig,Ds=0,Is=null,Ps=null,Ts=0,Rs=0,As=Co(0),Ls=0,Ms=null,Bs=0,Fs=0,js=0,zs=null,Us=null,Ws=0,$s=1/0,Hs=null,Gs=!1,Vs=null,qs=null,Ks=!1,Qs=null,Ys=0,Xs=0,Js=null,Zs=-1,ec=0;function tc(){return 0!=(6&Ds)?Xe():-1!==Zs?Zs:Zs=Xe()}function nc(e){return 0==(1&e.mode)?1:0!=(2&Ds)&&0!==Ts?Ts&-Ts:null!==ha.transition?(0===ec&&(ec=gt()),ec):0!==(e=yt)?e:e=void 0===(e=window.event)?16:Yt(e.type)}function rc(e,t,n,r){if(50<Xs)throw Xs=0,Js=null,Error(a(185));bt(e,n,r),0!=(2&Ds)&&e===Is||(e===Is&&(0==(2&Ds)&&(Fs|=n),4===Ls&&sc(e,Ts)),oc(e,r),1===n&&0===Ds&&0==(1&t.mode)&&($s=Xe()+500,zo&&$o()))}function oc(e,t){var n=e.callbackNode;!function(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,o=e.expirationTimes,a=e.pendingLanes;0<a;){var i=31-it(a),l=1<<i,s=o[i];-1===s?0!=(l&n)&&0==(l&r)||(o[i]=ft(l,t)):s<=t&&(e.expiredLanes|=l),a&=~l}}(e,t);var r=pt(e,e===Is?Ts:0);if(0===r)null!==n&&Ke(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(null!=n&&Ke(n),1===t)0===e.tag?function(e){zo=!0,Wo(e)}(cc.bind(null,e)):Wo(cc.bind(null,e)),io((function(){0==(6&Ds)&&$o()})),n=null;else{switch(wt(r)){case 1:n=Ze;break;case 4:n=et;break;case 16:default:n=tt;break;case 536870912:n=rt}n=Ic(n,ac.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function ac(e,t){if(Zs=-1,ec=0,0!=(6&Ds))throw Error(a(327));var n=e.callbackNode;if(Sc()&&e.callbackNode!==n)return null;var r=pt(e,e===Is?Ts:0);if(0===r)return null;if(0!=(30&r)||0!=(r&e.expiredLanes)||t)t=bc(e,r);else{t=r;var o=Ds;Ds|=2;var i=gc();for(Is===e&&Ts===t||(Hs=null,$s=Xe()+500,fc(e,t));;)try{yc();break}catch(t){mc(e,t)}xa(),_s.current=i,Ds=o,null!==Ps?t=0:(Is=null,Ts=0,t=Ls)}if(0!==t){if(2===t&&0!==(o=mt(e))&&(r=o,t=ic(e,o)),1===t)throw n=Ms,fc(e,0),sc(e,r),oc(e,Xe()),n;if(6===t)sc(e,r);else{if(o=e.current.alternate,0==(30&r)&&!function(e){for(var t=e;;){if(16384&t.flags){var n=t.updateQueue;if(null!==n&&null!==(n=n.stores))for(var r=0;r<n.length;r++){var o=n[r],a=o.getSnapshot;o=o.value;try{if(!lr(a(),o))return!1}catch(e){return!1}}}if(n=t.child,16384&t.subtreeFlags&&null!==n)n.return=t,t=n;else{if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}(o)&&(2===(t=bc(e,r))&&0!==(i=mt(e))&&(r=i,t=ic(e,i)),1===t))throw n=Ms,fc(e,0),sc(e,r),oc(e,Xe()),n;switch(e.finishedWork=o,e.finishedLanes=r,t){case 0:case 1:throw Error(a(345));case 2:case 5:xc(e,Us,Hs);break;case 3:if(sc(e,r),(130023424&r)===r&&10<(t=Ws+500-Xe())){if(0!==pt(e,0))break;if(((o=e.suspendedLanes)&r)!==r){tc(),e.pingedLanes|=e.suspendedLanes&o;break}e.timeoutHandle=ro(xc.bind(null,e,Us,Hs),t);break}xc(e,Us,Hs);break;case 4:if(sc(e,r),(4194240&r)===r)break;for(t=e.eventTimes,o=-1;0<r;){var l=31-it(r);i=1<<l,(l=t[l])>o&&(o=l),r&=~i}if(r=o,10<(r=(120>(r=Xe()-r)?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Cs(r/1960))-r)){e.timeoutHandle=ro(xc.bind(null,e,Us,Hs),r);break}xc(e,Us,Hs);break;default:throw Error(a(329))}}}return oc(e,Xe()),e.callbackNode===n?ac.bind(null,e):null}function ic(e,t){var n=zs;return e.current.memoizedState.isDehydrated&&(fc(e,t).flags|=256),2!==(e=bc(e,t))&&(t=Us,Us=n,null!==t&&lc(t)),e}function lc(e){null===Us?Us=e:Us.push.apply(Us,e)}function sc(e,t){for(t&=~js,t&=~Fs,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-it(t),r=1<<n;e[n]=-1,t&=~r}}function cc(e){if(0!=(6&Ds))throw Error(a(327));Sc();var t=pt(e,0);if(0==(1&t))return oc(e,Xe()),null;var n=bc(e,t);if(0!==e.tag&&2===n){var r=mt(e);0!==r&&(t=r,n=ic(e,r))}if(1===n)throw n=Ms,fc(e,0),sc(e,t),oc(e,Xe()),n;if(6===n)throw Error(a(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,xc(e,Us,Hs),oc(e,Xe()),null}function uc(e,t){var n=Ds;Ds|=1;try{return e(t)}finally{0===(Ds=n)&&($s=Xe()+500,zo&&$o())}}function dc(e){null!==Qs&&0===Qs.tag&&0==(6&Ds)&&Sc();var t=Ds;Ds|=1;var n=Ns.transition,r=yt;try{if(Ns.transition=null,yt=1,e)return e()}finally{yt=r,Ns.transition=n,0==(6&(Ds=t))&&$o()}}function pc(){Rs=As.current,_o(As)}function fc(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,oo(n)),null!==Ps)for(n=Ps.return;null!==n;){var r=n;switch(na(r),r.tag){case 1:null!=(r=r.type.childContextTypes)&&Ao();break;case 3:ai(),_o(Io),_o(Do),di();break;case 5:li(r);break;case 4:ai();break;case 13:case 19:_o(si);break;case 10:Sa(r.type._context);break;case 22:case 23:pc()}n=n.return}if(Is=e,Ps=e=Ac(e.current,null),Ts=Rs=t,Ls=0,Ms=null,js=Fs=Bs=0,Us=zs=null,null!==Oa){for(t=0;t<Oa.length;t++)if(null!==(r=(n=Oa[t]).interleaved)){n.interleaved=null;var o=r.next,a=n.pending;if(null!==a){var i=a.next;a.next=o,r.next=i}n.pending=r}Oa=null}return e}function mc(e,t){for(;;){var n=Ps;try{if(xa(),pi.current=il,vi){for(var r=gi.memoizedState;null!==r;){var o=r.queue;null!==o&&(o.pending=null),r=r.next}vi=!1}if(mi=0,bi=hi=gi=null,yi=!1,wi=0,Os.current=null,null===n||null===n.return){Ls=1,Ms=t,Ps=null;break}e:{var i=e,l=n.return,s=n,c=t;if(t=Ts,s.flags|=32768,null!==c&&"object"==typeof c&&"function"==typeof c.then){var u=c,d=s,p=d.tag;if(0==(1&d.mode)&&(0===p||11===p||15===p)){var f=d.alternate;f?(d.updateQueue=f.updateQueue,d.memoizedState=f.memoizedState,d.lanes=f.lanes):(d.updateQueue=null,d.memoizedState=null)}var m=bl(l);if(null!==m){m.flags&=-257,vl(m,l,s,0,t),1&m.mode&&hl(i,u,t),c=u;var g=(t=m).updateQueue;if(null===g){var h=new Set;h.add(c),t.updateQueue=h}else g.add(c);break e}if(0==(1&t)){hl(i,u,t),hc();break e}c=Error(a(426))}else if(aa&&1&s.mode){var b=bl(l);if(null!==b){0==(65536&b.flags)&&(b.flags|=256),vl(b,l,s,0,t),ga(ul(c,s));break e}}i=c=ul(c,s),4!==Ls&&(Ls=2),null===zs?zs=[i]:zs.push(i),i=l;do{switch(i.tag){case 3:i.flags|=65536,t&=-t,i.lanes|=t,Ba(i,ml(0,c,t));break e;case 1:s=c;var v=i.type,y=i.stateNode;if(0==(128&i.flags)&&("function"==typeof v.getDerivedStateFromError||null!==y&&"function"==typeof y.componentDidCatch&&(null===qs||!qs.has(y)))){i.flags|=65536,t&=-t,i.lanes|=t,Ba(i,gl(i,s,t));break e}}i=i.return}while(null!==i)}Ec(n)}catch(e){t=e,Ps===n&&null!==n&&(Ps=n=n.return);continue}break}}function gc(){var e=_s.current;return _s.current=il,null===e?il:e}function hc(){0!==Ls&&3!==Ls&&2!==Ls||(Ls=4),null===Is||0==(268435455&Bs)&&0==(268435455&Fs)||sc(Is,Ts)}function bc(e,t){var n=Ds;Ds|=2;var r=gc();for(Is===e&&Ts===t||(Hs=null,fc(e,t));;)try{vc();break}catch(t){mc(e,t)}if(xa(),Ds=n,_s.current=r,null!==Ps)throw Error(a(261));return Is=null,Ts=0,Ls}function vc(){for(;null!==Ps;)wc(Ps)}function yc(){for(;null!==Ps&&!Qe();)wc(Ps)}function wc(e){var t=ks(e.alternate,e,Rs);e.memoizedProps=e.pendingProps,null===t?Ec(e):Ps=t,Os.current=null}function Ec(e){var t=e;do{var n=t.alternate;if(e=t.return,0==(32768&t.flags)){if(null!==(n=Kl(n,t,Rs)))return void(Ps=n)}else{if(null!==(n=Ql(n,t)))return n.flags&=32767,void(Ps=n);if(null===e)return Ls=6,void(Ps=null);e.flags|=32768,e.subtreeFlags=0,e.deletions=null}if(null!==(t=t.sibling))return void(Ps=t);Ps=t=e}while(null!==t);0===Ls&&(Ls=5)}function xc(e,t,n){var r=yt,o=Ns.transition;try{Ns.transition=null,yt=1,function(e,t,n,r){do{Sc()}while(null!==Qs);if(0!=(6&Ds))throw Error(a(327));n=e.finishedWork;var o=e.finishedLanes;if(null===n)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(a(177));e.callbackNode=null,e.callbackPriority=0;var i=n.lanes|n.childLanes;if(function(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var o=31-it(n),a=1<<o;t[o]=0,r[o]=-1,e[o]=-1,n&=~a}}(e,i),e===Is&&(Ps=Is=null,Ts=0),0==(2064&n.subtreeFlags)&&0==(2064&n.flags)||Ks||(Ks=!0,Ic(tt,(function(){return Sc(),null}))),i=0!=(15990&n.flags),0!=(15990&n.subtreeFlags)||i){i=Ns.transition,Ns.transition=null;var l=yt;yt=1;var s=Ds;Ds|=4,Os.current=null,function(e,t){if(eo=Ht,fr(e=pr())){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{var r=(n=(n=e.ownerDocument)&&n.defaultView||window).getSelection&&n.getSelection();if(r&&0!==r.rangeCount){n=r.anchorNode;var o=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch(e){n=null;break e}var l=0,s=-1,c=-1,u=0,d=0,p=e,f=null;t:for(;;){for(var m;p!==n||0!==o&&3!==p.nodeType||(s=l+o),p!==i||0!==r&&3!==p.nodeType||(c=l+r),3===p.nodeType&&(l+=p.nodeValue.length),null!==(m=p.firstChild);)f=p,p=m;for(;;){if(p===e)break t;if(f===n&&++u===o&&(s=l),f===i&&++d===r&&(c=l),null!==(m=p.nextSibling))break;f=(p=f).parentNode}p=m}n=-1===s||-1===c?null:{start:s,end:c}}else n=null}n=n||{start:0,end:0}}else n=null;for(to={focusedElem:e,selectionRange:n},Ht=!1,Zl=t;null!==Zl;)if(e=(t=Zl).child,0!=(1028&t.subtreeFlags)&&null!==e)e.return=t,Zl=e;else for(;null!==Zl;){t=Zl;try{var g=t.alternate;if(0!=(1024&t.flags))switch(t.tag){case 0:case 11:case 15:case 5:case 6:case 4:case 17:break;case 1:if(null!==g){var h=g.memoizedProps,b=g.memoizedState,v=t.stateNode,y=v.getSnapshotBeforeUpdate(t.elementType===t.type?h:ba(t.type,h),b);v.__reactInternalSnapshotBeforeUpdate=y}break;case 3:var w=t.stateNode.containerInfo;1===w.nodeType?w.textContent="":9===w.nodeType&&w.documentElement&&w.removeChild(w.documentElement);break;default:throw Error(a(163))}}catch(e){Cc(t,t.return,e)}if(null!==(e=t.sibling)){e.return=t.return,Zl=e;break}Zl=t.return}g=ns,ns=!1}(e,n),bs(n,e),mr(to),Ht=!!eo,to=eo=null,e.current=n,ys(n,e,o),Ye(),Ds=s,yt=l,Ns.transition=i}else e.current=n;if(Ks&&(Ks=!1,Qs=e,Ys=o),0===(i=e.pendingLanes)&&(qs=null),function(e){if(at&&"function"==typeof at.onCommitFiberRoot)try{at.onCommitFiberRoot(ot,e,void 0,128==(128&e.current.flags))}catch(e){}}(n.stateNode),oc(e,Xe()),null!==t)for(r=e.onRecoverableError,n=0;n<t.length;n++)r((o=t[n]).value,{componentStack:o.stack,digest:o.digest});if(Gs)throw Gs=!1,e=Vs,Vs=null,e;0!=(1&Ys)&&0!==e.tag&&Sc(),0!=(1&(i=e.pendingLanes))?e===Js?Xs++:(Xs=0,Js=e):Xs=0,$o()}(e,t,n,r)}finally{Ns.transition=o,yt=r}return null}function Sc(){if(null!==Qs){var e=wt(Ys),t=Ns.transition,n=yt;try{if(Ns.transition=null,yt=16>e?16:e,null===Qs)var r=!1;else{if(e=Qs,Qs=null,Ys=0,0!=(6&Ds))throw Error(a(331));var o=Ds;for(Ds|=4,Zl=e.current;null!==Zl;){var i=Zl,l=i.child;if(0!=(16&Zl.flags)){var s=i.deletions;if(null!==s){for(var c=0;c<s.length;c++){var u=s[c];for(Zl=u;null!==Zl;){var d=Zl;switch(d.tag){case 0:case 11:case 15:rs(8,d,i)}var p=d.child;if(null!==p)p.return=d,Zl=p;else for(;null!==Zl;){var f=(d=Zl).sibling,m=d.return;if(is(d),d===u){Zl=null;break}if(null!==f){f.return=m,Zl=f;break}Zl=m}}}var g=i.alternate;if(null!==g){var h=g.child;if(null!==h){g.child=null;do{var b=h.sibling;h.sibling=null,h=b}while(null!==h)}}Zl=i}}if(0!=(2064&i.subtreeFlags)&&null!==l)l.return=i,Zl=l;else e:for(;null!==Zl;){if(0!=(2048&(i=Zl).flags))switch(i.tag){case 0:case 11:case 15:rs(9,i,i.return)}var v=i.sibling;if(null!==v){v.return=i.return,Zl=v;break e}Zl=i.return}}var y=e.current;for(Zl=y;null!==Zl;){var w=(l=Zl).child;if(0!=(2064&l.subtreeFlags)&&null!==w)w.return=l,Zl=w;else e:for(l=y;null!==Zl;){if(0!=(2048&(s=Zl).flags))try{switch(s.tag){case 0:case 11:case 15:os(9,s)}}catch(e){Cc(s,s.return,e)}if(s===l){Zl=null;break e}var E=s.sibling;if(null!==E){E.return=s.return,Zl=E;break e}Zl=s.return}}if(Ds=o,$o(),at&&"function"==typeof at.onPostCommitFiberRoot)try{at.onPostCommitFiberRoot(ot,e)}catch(e){}r=!0}return r}finally{yt=n,Ns.transition=t}}return!1}function kc(e,t,n){e=La(e,t=ml(0,t=ul(n,t),1),1),t=tc(),null!==e&&(bt(e,1,t),oc(e,t))}function Cc(e,t,n){if(3===e.tag)kc(e,e,n);else for(;null!==t;){if(3===t.tag){kc(t,e,n);break}if(1===t.tag){var r=t.stateNode;if("function"==typeof t.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===qs||!qs.has(r))){t=La(t,e=gl(t,e=ul(n,e),1),1),e=tc(),null!==t&&(bt(t,1,e),oc(t,e));break}}t=t.return}}function _c(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),t=tc(),e.pingedLanes|=e.suspendedLanes&n,Is===e&&(Ts&n)===n&&(4===Ls||3===Ls&&(130023424&Ts)===Ts&&500>Xe()-Ws?fc(e,0):js|=n),oc(e,t)}function Oc(e,t){0===t&&(0==(1&e.mode)?t=1:(t=ut,0==(130023424&(ut<<=1))&&(ut=4194304)));var n=tc();null!==(e=Ia(e,t))&&(bt(e,t,n),oc(e,n))}function Nc(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),Oc(e,n)}function Dc(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;null!==o&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(a(314))}null!==r&&r.delete(t),Oc(e,n)}function Ic(e,t){return qe(e,t)}function Pc(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 Tc(e,t,n,r){return new Pc(e,t,n,r)}function Rc(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Ac(e,t){var n=e.alternate;return null===n?((n=Tc(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=14680064&e.flags,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Lc(e,t,n,r,o,i){var l=2;if(r=e,"function"==typeof e)Rc(e)&&(l=1);else if("string"==typeof e)l=5;else e:switch(e){case S:return Mc(n.children,o,i,t);case k:l=8,o|=8;break;case C:return(e=Tc(12,n,t,2|o)).elementType=C,e.lanes=i,e;case D:return(e=Tc(13,n,t,o)).elementType=D,e.lanes=i,e;case I:return(e=Tc(19,n,t,o)).elementType=I,e.lanes=i,e;case R:return Bc(n,o,i,t);default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case _:l=10;break e;case O:l=9;break e;case N:l=11;break e;case P:l=14;break e;case T:l=16,r=null;break e}throw Error(a(130,null==e?e:typeof e,""))}return(t=Tc(l,n,t,o)).elementType=e,t.type=r,t.lanes=i,t}function Mc(e,t,n,r){return(e=Tc(7,e,r,t)).lanes=n,e}function Bc(e,t,n,r){return(e=Tc(22,e,r,t)).elementType=R,e.lanes=n,e.stateNode={isHidden:!1},e}function Fc(e,t,n){return(e=Tc(6,e,null,t)).lanes=n,e}function jc(e,t,n){return(t=Tc(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function zc(e,t,n,r,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=ht(0),this.expirationTimes=ht(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ht(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function Uc(e,t,n,r,o,a,i,l,s){return e=new zc(e,t,n,l,s),1===t?(t=1,!0===a&&(t|=8)):t=0,a=Tc(3,null,null,t),e.current=a,a.stateNode=e,a.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Ta(a),e}function Wc(e){if(!e)return No;e:{if(We(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(Ro(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(null!==t);throw Error(a(171))}if(1===e.tag){var n=e.type;if(Ro(n))return Mo(e,n,t)}return t}function $c(e,t,n,r,o,a,i,l,s){return(e=Uc(n,r,!0,e,0,a,0,l,s)).context=Wc(null),n=e.current,(a=Aa(r=tc(),o=nc(n))).callback=null!=t?t:null,La(n,a,o),e.current.lanes=o,bt(e,o,r),oc(e,r),e}function Hc(e,t,n,r){var o=t.current,a=tc(),i=nc(o);return n=Wc(n),null===t.context?t.context=n:t.pendingContext=n,(t=Aa(a,i)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),null!==(e=La(o,t,i))&&(rc(e,o,i,a),Ma(e,o,i)),i}function Gc(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function Vc(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function qc(e,t){Vc(e,t),(e=e.alternate)&&Vc(e,t)}ks=function(e,t,n){if(null!==e)if(e.memoizedProps!==t.pendingProps||Io.current)wl=!0;else{if(0==(e.lanes&n)&&0==(128&t.flags))return wl=!1,function(e,t,n){switch(t.tag){case 3:Il(t),ma();break;case 5:ii(t);break;case 1:Ro(t.type)&&Bo(t);break;case 4:oi(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,o=t.memoizedProps.value;Oo(va,r._currentValue),r._currentValue=o;break;case 13:if(null!==(r=t.memoizedState))return null!==r.dehydrated?(Oo(si,1&si.current),t.flags|=128,null):0!=(n&t.child.childLanes)?Fl(e,t,n):(Oo(si,1&si.current),null!==(e=Gl(e,t,n))?e.sibling:null);Oo(si,1&si.current);break;case 19:if(r=0!=(n&t.childLanes),0!=(128&e.flags)){if(r)return $l(e,t,n);t.flags|=128}if(null!==(o=t.memoizedState)&&(o.rendering=null,o.tail=null,o.lastEffect=null),Oo(si,si.current),r)break;return null;case 22:case 23:return t.lanes=0,Cl(e,t,n)}return Gl(e,t,n)}(e,t,n);wl=0!=(131072&e.flags)}else wl=!1,aa&&0!=(1048576&t.flags)&&ea(t,qo,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Hl(e,t),e=t.pendingProps;var o=To(t,Do.current);Ca(t,n),o=ki(null,t,r,e,o,n);var i=Ci();return t.flags|=1,"object"==typeof o&&null!==o&&"function"==typeof o.render&&void 0===o.$$typeof?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Ro(r)?(i=!0,Bo(t)):i=!1,t.memoizedState=null!==o.state&&void 0!==o.state?o.state:null,Ta(t),o.updater=Wa,t.stateNode=o,o._reactInternals=t,Va(t,r,e,n),t=Dl(null,t,r,!0,i,n)):(t.tag=0,aa&&i&&ta(t),El(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Hl(e,t),e=t.pendingProps,r=(o=r._init)(r._payload),t.type=r,o=t.tag=function(e){if("function"==typeof e)return Rc(e)?1:0;if(null!=e){if((e=e.$$typeof)===N)return 11;if(e===P)return 14}return 2}(r),e=ba(r,e),o){case 0:t=Ol(null,t,r,e,n);break e;case 1:t=Nl(null,t,r,e,n);break e;case 11:t=xl(null,t,r,e,n);break e;case 14:t=Sl(null,t,r,ba(r.type,e),n);break e}throw Error(a(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,Ol(e,t,r,o=t.elementType===r?o:ba(r,o),n);case 1:return r=t.type,o=t.pendingProps,Nl(e,t,r,o=t.elementType===r?o:ba(r,o),n);case 3:e:{if(Il(t),null===e)throw Error(a(387));r=t.pendingProps,o=(i=t.memoizedState).element,Ra(e,t),Fa(t,r,null,n);var l=t.memoizedState;if(r=l.element,i.isDehydrated){if(i={element:r,isDehydrated:!1,cache:l.cache,pendingSuspenseBoundaries:l.pendingSuspenseBoundaries,transitions:l.transitions},t.updateQueue.baseState=i,t.memoizedState=i,256&t.flags){t=Pl(e,t,r,n,o=ul(Error(a(423)),t));break e}if(r!==o){t=Pl(e,t,r,n,o=ul(Error(a(424)),t));break e}for(oa=co(t.stateNode.containerInfo.firstChild),ra=t,aa=!0,ia=null,n=Ja(t,null,r,n),t.child=n;n;)n.flags=-3&n.flags|4096,n=n.sibling}else{if(ma(),r===o){t=Gl(e,t,n);break e}El(e,t,r,n)}t=t.child}return t;case 5:return ii(t),null===e&&ua(t),r=t.type,o=t.pendingProps,i=null!==e?e.memoizedProps:null,l=o.children,no(r,o)?l=null:null!==i&&no(r,i)&&(t.flags|=32),_l(e,t),El(e,t,l,n),t.child;case 6:return null===e&&ua(t),null;case 13:return Fl(e,t,n);case 4:return oi(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=Xa(t,null,r,n):El(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,xl(e,t,r,o=t.elementType===r?o:ba(r,o),n);case 7:return El(e,t,t.pendingProps,n),t.child;case 8:case 12:return El(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,i=t.memoizedProps,l=o.value,Oo(va,r._currentValue),r._currentValue=l,null!==i)if(lr(i.value,l)){if(i.children===o.children&&!Io.current){t=Gl(e,t,n);break e}}else for(null!==(i=t.child)&&(i.return=t);null!==i;){var s=i.dependencies;if(null!==s){l=i.child;for(var c=s.firstContext;null!==c;){if(c.context===r){if(1===i.tag){(c=Aa(-1,n&-n)).tag=2;var u=i.updateQueue;if(null!==u){var d=(u=u.shared).pending;null===d?c.next=c:(c.next=d.next,d.next=c),u.pending=c}}i.lanes|=n,null!==(c=i.alternate)&&(c.lanes|=n),ka(i.return,n,t),s.lanes|=n;break}c=c.next}}else if(10===i.tag)l=i.type===t.type?null:i.child;else if(18===i.tag){if(null===(l=i.return))throw Error(a(341));l.lanes|=n,null!==(s=l.alternate)&&(s.lanes|=n),ka(l,n,t),l=i.sibling}else l=i.child;if(null!==l)l.return=i;else for(l=i;null!==l;){if(l===t){l=null;break}if(null!==(i=l.sibling)){i.return=l.return,l=i;break}l=l.return}i=l}El(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,Ca(t,n),r=r(o=_a(o)),t.flags|=1,El(e,t,r,n),t.child;case 14:return o=ba(r=t.type,t.pendingProps),Sl(e,t,r,o=ba(r.type,o),n);case 15:return kl(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:ba(r,o),Hl(e,t),t.tag=1,Ro(r)?(e=!0,Bo(t)):e=!1,Ca(t,n),Ha(t,r,o),Va(t,r,o,n),Dl(null,t,r,!0,e,n);case 19:return $l(e,t,n);case 22:return Cl(e,t,n)}throw Error(a(156,t.tag))};var Kc="function"==typeof reportError?reportError:function(e){console.error(e)};function Qc(e){this._internalRoot=e}function Yc(e){this._internalRoot=e}function Xc(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType)}function Jc(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function Zc(){}function eu(e,t,n,r,o){var a=n._reactRootContainer;if(a){var i=a;if("function"==typeof o){var l=o;o=function(){var e=Gc(i);l.call(e)}}Hc(t,i,e,o)}else i=function(e,t,n,r,o){if(o){if("function"==typeof r){var a=r;r=function(){var e=Gc(i);a.call(e)}}var i=$c(t,r,e,0,null,!1,0,"",Zc);return e._reactRootContainer=i,e[go]=i.current,Wr(8===e.nodeType?e.parentNode:e),dc(),i}for(;o=e.lastChild;)e.removeChild(o);if("function"==typeof r){var l=r;r=function(){var e=Gc(s);l.call(e)}}var s=Uc(e,0,!1,null,0,!1,0,"",Zc);return e._reactRootContainer=s,e[go]=s.current,Wr(8===e.nodeType?e.parentNode:e),dc((function(){Hc(t,s,n,r)})),s}(n,t,e,o,r);return Gc(i)}Yc.prototype.render=Qc.prototype.render=function(e){var t=this._internalRoot;if(null===t)throw Error(a(409));Hc(e,t,null,null)},Yc.prototype.unmount=Qc.prototype.unmount=function(){var e=this._internalRoot;if(null!==e){this._internalRoot=null;var t=e.containerInfo;dc((function(){Hc(null,e,null,null)})),t[go]=null}},Yc.prototype.unstable_scheduleHydration=function(e){if(e){var t=kt();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Rt.length&&0!==t&&t<Rt[n].priority;n++);Rt.splice(n,0,e),0===n&&Bt(e)}},Et=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=dt(t.pendingLanes);0!==n&&(vt(t,1|n),oc(t,Xe()),0==(6&Ds)&&($s=Xe()+500,$o()))}break;case 13:dc((function(){var t=Ia(e,1);if(null!==t){var n=tc();rc(t,e,1,n)}})),qc(e,1)}},xt=function(e){if(13===e.tag){var t=Ia(e,134217728);null!==t&&rc(t,e,134217728,tc()),qc(e,134217728)}},St=function(e){if(13===e.tag){var t=nc(e),n=Ia(e,t);null!==n&&rc(n,e,t,tc()),qc(e,t)}},kt=function(){return yt},Ct=function(e,t){var n=yt;try{return yt=e,t()}finally{yt=n}},xe=function(e,t,n){switch(t){case"input":if(J(e,n),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var o=xo(r);if(!o)throw Error(a(90));q(r),J(r,o)}}}break;case"textarea":ae(e,n);break;case"select":null!=(t=n.value)&&ne(e,!!n.multiple,t,!1)}},Ne=uc,De=dc;var tu={usingClientEntryPoint:!1,Events:[wo,Eo,xo,_e,Oe,uc]},nu={findFiberByHostInstance:yo,bundleType:0,version:"18.2.0",rendererPackageName:"react-dom"},ru={bundleType:nu.bundleType,version:nu.version,rendererPackageName:nu.rendererPackageName,rendererConfig:nu.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:w.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=Ge(e))?null:e.stateNode},findFiberByHostInstance:nu.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.2.0-next-9e3b772b8-20220608"};if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var ou=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!ou.isDisabled&&ou.supportsFiber)try{ot=ou.inject(ru),at=ou}catch(ue){}}t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=tu,t.createPortal=function(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!Xc(t))throw Error(a(200));return function(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:x,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}(e,t,null,n)},t.createRoot=function(e,t){if(!Xc(e))throw Error(a(299));var n=!1,r="",o=Kc;return null!=t&&(!0===t.unstable_strictMode&&(n=!0),void 0!==t.identifierPrefix&&(r=t.identifierPrefix),void 0!==t.onRecoverableError&&(o=t.onRecoverableError)),t=Uc(e,1,!1,null,0,n,0,r,o),e[go]=t.current,Wr(8===e.nodeType?e.parentNode:e),new Qc(t)},t.findDOMNode=function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternals;if(void 0===t){if("function"==typeof e.render)throw Error(a(188));throw e=Object.keys(e).join(","),Error(a(268,e))}return null===(e=Ge(t))?null:e.stateNode},t.flushSync=function(e){return dc(e)},t.hydrate=function(e,t,n){if(!Jc(t))throw Error(a(200));return eu(null,e,t,!0,n)},t.hydrateRoot=function(e,t,n){if(!Xc(e))throw Error(a(405));var r=null!=n&&n.hydratedSources||null,o=!1,i="",l=Kc;if(null!=n&&(!0===n.unstable_strictMode&&(o=!0),void 0!==n.identifierPrefix&&(i=n.identifierPrefix),void 0!==n.onRecoverableError&&(l=n.onRecoverableError)),t=$c(t,null,e,1,null!=n?n:null,o,0,i,l),e[go]=t.current,Wr(e),r)for(e=0;e<r.length;e++)o=(o=(n=r[e])._getVersion)(n._source),null==t.mutableSourceEagerHydrationData?t.mutableSourceEagerHydrationData=[n,o]:t.mutableSourceEagerHydrationData.push(n,o);return new Yc(t)},t.render=function(e,t,n){if(!Jc(t))throw Error(a(200));return eu(null,e,t,!1,n)},t.unmountComponentAtNode=function(e){if(!Jc(e))throw Error(a(40));return!!e._reactRootContainer&&(dc((function(){eu(null,null,e,!1,(function(){e._reactRootContainer=null,e[go]=null}))})),!0)},t.unstable_batchedUpdates=uc,t.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Jc(n))throw Error(a(200));if(null==e||void 0===e._reactInternals)throw Error(a(38));return eu(e,t,n,!1,r)},t.version="18.2.0-next-9e3b772b8-20220608"},338:(e,t,n)=>{"use strict";var r=n(961);t.H=r.createRoot,r.hydrateRoot},961:(e,t,n)=>{"use strict";!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}(),e.exports=n(551)},20:(e,t,n)=>{"use strict";var r=n(540),o=Symbol.for("react.element"),a=Symbol.for("react.fragment"),i=Object.prototype.hasOwnProperty,l=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,s={key:!0,ref:!0,__self:!0,__source:!0};function c(e,t,n){var r,a={},c=null,u=null;for(r in void 0!==n&&(c=""+n),void 0!==t.key&&(c=""+t.key),void 0!==t.ref&&(u=t.ref),t)i.call(t,r)&&!s.hasOwnProperty(r)&&(a[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===a[r]&&(a[r]=t[r]);return{$$typeof:o,type:e,key:c,ref:u,props:a,_owner:l.current}}t.Fragment=a,t.jsx=c,t.jsxs=c},287:(e,t)=>{"use strict";var n=Symbol.for("react.element"),r=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),l=Symbol.for("react.provider"),s=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),f=Symbol.iterator,m={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},g=Object.assign,h={};function b(e,t,n){this.props=e,this.context=t,this.refs=h,this.updater=n||m}function v(){}function y(e,t,n){this.props=e,this.context=t,this.refs=h,this.updater=n||m}b.prototype.isReactComponent={},b.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")},b.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},v.prototype=b.prototype;var w=y.prototype=new v;w.constructor=y,g(w,b.prototype),w.isPureReactComponent=!0;var E=Array.isArray,x=Object.prototype.hasOwnProperty,S={current:null},k={key:!0,ref:!0,__self:!0,__source:!0};function C(e,t,r){var o,a={},i=null,l=null;if(null!=t)for(o in void 0!==t.ref&&(l=t.ref),void 0!==t.key&&(i=""+t.key),t)x.call(t,o)&&!k.hasOwnProperty(o)&&(a[o]=t[o]);var s=arguments.length-2;if(1===s)a.children=r;else if(1<s){for(var c=Array(s),u=0;u<s;u++)c[u]=arguments[u+2];a.children=c}if(e&&e.defaultProps)for(o in s=e.defaultProps)void 0===a[o]&&(a[o]=s[o]);return{$$typeof:n,type:e,key:i,ref:l,props:a,_owner:S.current}}function _(e){return"object"==typeof e&&null!==e&&e.$$typeof===n}var O=/\/+/g;function N(e,t){return"object"==typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,(function(e){return t[e]}))}(""+e.key):t.toString(36)}function D(e,t,o,a,i){var l=typeof e;"undefined"!==l&&"boolean"!==l||(e=null);var s=!1;if(null===e)s=!0;else switch(l){case"string":case"number":s=!0;break;case"object":switch(e.$$typeof){case n:case r:s=!0}}if(s)return i=i(s=e),e=""===a?"."+N(s,0):a,E(i)?(o="",null!=e&&(o=e.replace(O,"$&/")+"/"),D(i,t,o,"",(function(e){return e}))):null!=i&&(_(i)&&(i=function(e,t){return{$$typeof:n,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(i,o+(!i.key||s&&s.key===i.key?"":(""+i.key).replace(O,"$&/")+"/")+e)),t.push(i)),1;if(s=0,a=""===a?".":a+":",E(e))for(var c=0;c<e.length;c++){var u=a+N(l=e[c],c);s+=D(l,t,o,u,i)}else if(u=function(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=f&&e[f]||e["@@iterator"])?e:null}(e),"function"==typeof u)for(e=u.call(e),c=0;!(l=e.next()).done;)s+=D(l=l.value,t,o,u=a+N(l,c++),i);else if("object"===l)throw t=String(e),Error("Objects are not valid as a React child (found: "+("[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return s}function I(e,t,n){if(null==e)return e;var r=[],o=0;return D(e,r,"","",(function(e){return t.call(n,e,o++)})),r}function P(e){if(-1===e._status){var t=e._result;(t=t()).then((function(t){0!==e._status&&-1!==e._status||(e._status=1,e._result=t)}),(function(t){0!==e._status&&-1!==e._status||(e._status=2,e._result=t)})),-1===e._status&&(e._status=0,e._result=t)}if(1===e._status)return e._result.default;throw e._result}var T={current:null},R={transition:null},A={ReactCurrentDispatcher:T,ReactCurrentBatchConfig:R,ReactCurrentOwner:S};t.Children={map:I,forEach:function(e,t,n){I(e,(function(){t.apply(this,arguments)}),n)},count:function(e){var t=0;return I(e,(function(){t++})),t},toArray:function(e){return I(e,(function(e){return e}))||[]},only:function(e){if(!_(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},t.Component=b,t.Fragment=o,t.Profiler=i,t.PureComponent=y,t.StrictMode=a,t.Suspense=u,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=A,t.cloneElement=function(e,t,r){if(null==e)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var o=g({},e.props),a=e.key,i=e.ref,l=e._owner;if(null!=t){if(void 0!==t.ref&&(i=t.ref,l=S.current),void 0!==t.key&&(a=""+t.key),e.type&&e.type.defaultProps)var s=e.type.defaultProps;for(c in t)x.call(t,c)&&!k.hasOwnProperty(c)&&(o[c]=void 0===t[c]&&void 0!==s?s[c]:t[c])}var c=arguments.length-2;if(1===c)o.children=r;else if(1<c){s=Array(c);for(var u=0;u<c;u++)s[u]=arguments[u+2];o.children=s}return{$$typeof:n,type:e.type,key:a,ref:i,props:o,_owner:l}},t.createContext=function(e){return(e={$$typeof:s,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null}).Provider={$$typeof:l,_context:e},e.Consumer=e},t.createElement=C,t.createFactory=function(e){var t=C.bind(null,e);return t.type=e,t},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:c,render:e}},t.isValidElement=_,t.lazy=function(e){return{$$typeof:p,_payload:{_status:-1,_result:e},_init:P}},t.memo=function(e,t){return{$$typeof:d,type:e,compare:void 0===t?null:t}},t.startTransition=function(e){var t=R.transition;R.transition={};try{e()}finally{R.transition=t}},t.unstable_act=function(){throw Error("act(...) is not supported in production builds of React.")},t.useCallback=function(e,t){return T.current.useCallback(e,t)},t.useContext=function(e){return T.current.useContext(e)},t.useDebugValue=function(){},t.useDeferredValue=function(e){return T.current.useDeferredValue(e)},t.useEffect=function(e,t){return T.current.useEffect(e,t)},t.useId=function(){return T.current.useId()},t.useImperativeHandle=function(e,t,n){return T.current.useImperativeHandle(e,t,n)},t.useInsertionEffect=function(e,t){return T.current.useInsertionEffect(e,t)},t.useLayoutEffect=function(e,t){return T.current.useLayoutEffect(e,t)},t.useMemo=function(e,t){return T.current.useMemo(e,t)},t.useReducer=function(e,t,n){return T.current.useReducer(e,t,n)},t.useRef=function(e){return T.current.useRef(e)},t.useState=function(e){return T.current.useState(e)},t.useSyncExternalStore=function(e,t,n){return T.current.useSyncExternalStore(e,t,n)},t.useTransition=function(){return T.current.useTransition()},t.version="18.2.0"},540:(e,t,n)=>{"use strict";e.exports=n(287)},848:(e,t,n)=>{"use strict";e.exports=n(20)},463:(e,t)=>{"use strict";function n(e,t){var n=e.length;e.push(t);e:for(;0<n;){var r=n-1>>>1,o=e[r];if(!(0<a(o,t)))break e;e[r]=t,e[n]=o,n=r}}function r(e){return 0===e.length?null:e[0]}function o(e){if(0===e.length)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,o=e.length,i=o>>>1;r<i;){var l=2*(r+1)-1,s=e[l],c=l+1,u=e[c];if(0>a(s,n))c<o&&0>a(u,s)?(e[r]=u,e[c]=n,r=c):(e[r]=s,e[l]=n,r=l);else{if(!(c<o&&0>a(u,n)))break e;e[r]=u,e[c]=n,r=c}}}return t}function a(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}if("object"==typeof performance&&"function"==typeof performance.now){var i=performance;t.unstable_now=function(){return i.now()}}else{var l=Date,s=l.now();t.unstable_now=function(){return l.now()-s}}var c=[],u=[],d=1,p=null,f=3,m=!1,g=!1,h=!1,b="function"==typeof setTimeout?setTimeout:null,v="function"==typeof clearTimeout?clearTimeout:null,y="undefined"!=typeof setImmediate?setImmediate:null;function w(e){for(var t=r(u);null!==t;){if(null===t.callback)o(u);else{if(!(t.startTime<=e))break;o(u),t.sortIndex=t.expirationTime,n(c,t)}t=r(u)}}function E(e){if(h=!1,w(e),!g)if(null!==r(c))g=!0,R(x);else{var t=r(u);null!==t&&A(E,t.startTime-e)}}function x(e,n){g=!1,h&&(h=!1,v(_),_=-1),m=!0;var a=f;try{for(w(n),p=r(c);null!==p&&(!(p.expirationTime>n)||e&&!D());){var i=p.callback;if("function"==typeof i){p.callback=null,f=p.priorityLevel;var l=i(p.expirationTime<=n);n=t.unstable_now(),"function"==typeof l?p.callback=l:p===r(c)&&o(c),w(n)}else o(c);p=r(c)}if(null!==p)var s=!0;else{var d=r(u);null!==d&&A(E,d.startTime-n),s=!1}return s}finally{p=null,f=a,m=!1}}"undefined"!=typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var S,k=!1,C=null,_=-1,O=5,N=-1;function D(){return!(t.unstable_now()-N<O)}function I(){if(null!==C){var e=t.unstable_now();N=e;var n=!0;try{n=C(!0,e)}finally{n?S():(k=!1,C=null)}}else k=!1}if("function"==typeof y)S=function(){y(I)};else if("undefined"!=typeof MessageChannel){var P=new MessageChannel,T=P.port2;P.port1.onmessage=I,S=function(){T.postMessage(null)}}else S=function(){b(I,0)};function R(e){C=e,k||(k=!0,S())}function A(e,n){_=b((function(){e(t.unstable_now())}),n)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){g||m||(g=!0,R(x))},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):O=0<e?Math.floor(1e3/e):5},t.unstable_getCurrentPriorityLevel=function(){return f},t.unstable_getFirstCallbackNode=function(){return r(c)},t.unstable_next=function(e){switch(f){case 1:case 2:case 3:var t=3;break;default:t=f}var n=f;f=t;try{return e()}finally{f=n}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=function(){},t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=f;f=e;try{return t()}finally{f=n}},t.unstable_scheduleCallback=function(e,o,a){var i=t.unstable_now();switch(a="object"==typeof a&&null!==a&&"number"==typeof(a=a.delay)&&0<a?i+a:i,e){case 1:var l=-1;break;case 2:l=250;break;case 5:l=1073741823;break;case 4:l=1e4;break;default:l=5e3}return e={id:d++,callback:o,priorityLevel:e,startTime:a,expirationTime:l=a+l,sortIndex:-1},a>i?(e.sortIndex=a,n(u,e),null===r(c)&&e===r(u)&&(h?(v(_),_=-1):h=!0,A(E,a-i))):(e.sortIndex=l,n(c,e),g||m||(g=!0,R(x))),e},t.unstable_shouldYield=D,t.unstable_wrapCallback=function(e){var t=f;return function(){var n=f;f=t;try{return e.apply(this,arguments)}finally{f=n}}}},982:(e,t,n)=>{"use strict";e.exports=n(463)},63:(e,t,n)=>{"use strict";var r=n(540),o="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},a=r.useState,i=r.useEffect,l=r.useLayoutEffect,s=r.useDebugValue;function c(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!o(e,n)}catch(e){return!0}}var u="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var n=t(),r=a({inst:{value:n,getSnapshot:t}}),o=r[0].inst,u=r[1];return l((function(){o.value=n,o.getSnapshot=t,c(o)&&u({inst:o})}),[e,n,t]),i((function(){return c(o)&&u({inst:o}),e((function(){c(o)&&u({inst:o})}))}),[e]),s(n),n};t.useSyncExternalStore=void 0!==r.useSyncExternalStore?r.useSyncExternalStore:u},940:(e,t,n)=>{"use strict";var r=n(540),o=n(888),a="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},i=o.useSyncExternalStore,l=r.useRef,s=r.useEffect,c=r.useMemo,u=r.useDebugValue;t.useSyncExternalStoreWithSelector=function(e,t,n,r,o){var d=l(null);if(null===d.current){var p={hasValue:!1,value:null};d.current=p}else p=d.current;d=c((function(){function e(e){if(!s){if(s=!0,i=e,e=r(e),void 0!==o&&p.hasValue){var t=p.value;if(o(t,e))return l=t}return l=e}if(t=l,a(i,e))return t;var n=r(e);return void 0!==o&&o(t,n)?t:(i=e,l=n)}var i,l,s=!1,c=void 0===n?null:n;return[function(){return e(t())},null===c?void 0:function(){return e(c())}]}),[t,n,r,o]);var f=i(e,d[0],d[1]);return s((function(){p.hasValue=!0,p.value=f}),[f]),u(f),f}},888:(e,t,n)=>{"use strict";e.exports=n(63)},242:(e,t,n)=>{"use strict";e.exports=n(940)},771:e=>{"use strict";e.exports=function(){}}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var a=t[r]={exports:{}};return e[r].call(a.exports,a,a.exports,n),a.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{"use strict";var e=n(540),t=n(338),r=n(961);function o(e){return o="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},o(e)}function a(e){var t=function(e,t){if("object"!=o(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=o(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==o(t)?t:String(t)}function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function l(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?i(Object(n),!0).forEach((function(t){var r,o,i;r=e,o=t,i=n[t],(o=a(o))in r?Object.defineProperty(r,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):r[o]=i})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function s(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 c="function"==typeof Symbol&&Symbol.observable||"@@observable",u=function(){return Math.random().toString(36).substring(7).split("").join(".")},d={INIT:"@@redux/INIT"+u(),REPLACE:"@@redux/REPLACE"+u(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+u()}};function p(e,t,n){var r;if("function"==typeof t&&"function"==typeof n||"function"==typeof n&&"function"==typeof arguments[3])throw new Error(s(0));if("function"==typeof t&&void 0===n&&(n=t,t=void 0),void 0!==n){if("function"!=typeof n)throw new Error(s(1));return n(p)(e,t)}if("function"!=typeof e)throw new Error(s(2));var o=e,a=t,i=[],l=i,u=!1;function f(){l===i&&(l=i.slice())}function m(){if(u)throw new Error(s(3));return a}function g(e){if("function"!=typeof e)throw new Error(s(4));if(u)throw new Error(s(5));var t=!0;return f(),l.push(e),function(){if(t){if(u)throw new Error(s(6));t=!1,f();var n=l.indexOf(e);l.splice(n,1),i=null}}}function h(e){if(!function(e){if("object"!=typeof e||null===e)return!1;for(var t=e;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}(e))throw new Error(s(7));if(void 0===e.type)throw new Error(s(8));if(u)throw new Error(s(9));try{u=!0,a=o(a,e)}finally{u=!1}for(var t=i=l,n=0;n<t.length;n++)(0,t[n])();return e}return h({type:d.INIT}),(r={dispatch:h,subscribe:g,getState:m,replaceReducer:function(e){if("function"!=typeof e)throw new Error(s(10));o=e,h({type:d.REPLACE})}})[c]=function(){var e,t=g;return(e={subscribe:function(e){if("object"!=typeof e||null===e)throw new Error(s(11));function n(){e.next&&e.next(m())}return n(),{unsubscribe:t(n)}}})[c]=function(){return this},e},r}function f(e,t){return function(){return t(e.apply(this,arguments))}}function m(e,t){if("function"==typeof e)return f(e,t);if("object"!=typeof e||null===e)throw new Error(s(16));var n={};for(var r in e){var o=e[r];"function"==typeof o&&(n[r]=f(o,t))}return n}function g(){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))}}))}var h=n(888),b=n(242);let v=function(e){e()};const y=()=>v,w=Symbol.for("react-redux-context"),E="undefined"!=typeof globalThis?globalThis:{};function x(){var t;if(!e.createContext)return{};const n=null!=(t=E[w])?t:E[w]=new Map;let r=n.get(e.createContext);return r||(r=e.createContext(null),n.set(e.createContext,r)),r}const S=x();let k=null;function C(){return C=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},C.apply(this,arguments)}function _(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}var O=n(146),N=n.n(O),D=n(749);const I=["initMapStateToProps","initMapDispatchToProps","initMergeProps"];function P(e,t,n,r,{areStatesEqual:o,areOwnPropsEqual:a,areStatePropsEqual:i}){let l,s,c,u,d,p=!1;return function(f,m){return p?function(p,f){const m=!a(f,s),g=!o(p,l,f,s);return l=p,s=f,m&&g?(c=e(l,s),t.dependsOnOwnProps&&(u=t(r,s)),d=n(c,u,s),d):m?(e.dependsOnOwnProps&&(c=e(l,s)),t.dependsOnOwnProps&&(u=t(r,s)),d=n(c,u,s),d):g?function(){const t=e(l,s),r=!i(t,c);return c=t,r&&(d=n(c,u,s)),d}():d}(f,m):(l=f,s=m,c=e(l,s),u=t(r,s),d=n(c,u,s),p=!0,d)}}function T(e){return function(t){const n=e(t);function r(){return n}return r.dependsOnOwnProps=!1,r}}function R(e){return e.dependsOnOwnProps?Boolean(e.dependsOnOwnProps):1!==e.length}function A(e,t){return function(t,{displayName:n}){const r=function(e,t){return r.dependsOnOwnProps?r.mapToProps(e,t):r.mapToProps(e,void 0)};return r.dependsOnOwnProps=!0,r.mapToProps=function(t,n){r.mapToProps=e,r.dependsOnOwnProps=R(e);let o=r(t,n);return"function"==typeof o&&(r.mapToProps=o,r.dependsOnOwnProps=R(o),o=r(t,n)),o},r}}function L(e,t){return(n,r)=>{throw new Error(`Invalid value of type ${typeof e} for ${t} argument when connecting component ${r.wrappedComponentName}.`)}}function M(e,t,n){return C({},n,e,t)}const B={notify(){},get:()=>[]};function F(e,t){let n,r=B,o=0,a=!1;function i(){c.onStateChange&&c.onStateChange()}function l(){o++,n||(n=t?t.addNestedSub(i):e.subscribe(i),r=function(){const e=y();let t=null,n=null;return{clear(){t=null,n=null},notify(){e((()=>{let e=t;for(;e;)e.callback(),e=e.next}))},get(){let e=[],n=t;for(;n;)e.push(n),n=n.next;return e},subscribe(e){let r=!0,o=n={callback:e,next:null,prev:n};return o.prev?o.prev.next=o:t=o,function(){r&&null!==t&&(r=!1,o.next?o.next.prev=o.prev:n=o.prev,o.prev?o.prev.next=o.next:t=o.next)}}}}())}function s(){o--,n&&0===o&&(n(),n=void 0,r.clear(),r=B)}const c={addNestedSub:function(e){l();const t=r.subscribe(e);let n=!1;return()=>{n||(n=!0,t(),s())}},notifyNestedSubs:function(){r.notify()},handleChangeWrapper:i,isSubscribed:function(){return a},trySubscribe:function(){a||(a=!0,l())},tryUnsubscribe:function(){a&&(a=!1,s())},getListeners:()=>r};return c}const j="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?e.useLayoutEffect:e.useEffect;function z(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!=e&&t!=t}function U(e,t){if(z(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let r=0;r<n.length;r++)if(!Object.prototype.hasOwnProperty.call(t,n[r])||!z(e[n[r]],t[n[r]]))return!1;return!0}const W=["reactReduxForwardedRef"];let $=()=>{throw new Error("uSES not initialized!")};const H=[null,null];function G(e,t,n,r,o,a){e.current=r,n.current=!1,o.current&&(o.current=null,a())}function V(e,t){return e===t}const q=function(t,n,r,{pure:o,areStatesEqual:a=V,areOwnPropsEqual:i=U,areStatePropsEqual:l=U,areMergedPropsEqual:s=U,forwardRef:c=!1,context:u=S}={}){const d=u,p=function(e){return e?"function"==typeof e?A(e):L(e,"mapStateToProps"):T((()=>({})))}(t),f=function(e){return e&&"object"==typeof e?T((t=>function(e,t){const n={};for(const r in e){const o=e[r];"function"==typeof o&&(n[r]=(...e)=>t(o(...e)))}return n}(e,t))):e?"function"==typeof e?A(e):L(e,"mapDispatchToProps"):T((e=>({dispatch:e})))}(n),m=function(e){return e?"function"==typeof e?function(e){return function(t,{displayName:n,areMergedPropsEqual:r}){let o,a=!1;return function(t,n,i){const l=e(t,n,i);return a?r(l,o)||(o=l):(a=!0,o=l),o}}}(e):L(e,"mergeProps"):()=>M}(r),g=Boolean(t);return t=>{const n=t.displayName||t.name||"Component",r=`Connect(${n})`,o={shouldHandleStateChanges:g,displayName:r,wrappedComponentName:n,WrappedComponent:t,initMapStateToProps:p,initMapDispatchToProps:f,initMergeProps:m,areStatesEqual:a,areStatePropsEqual:l,areOwnPropsEqual:i,areMergedPropsEqual:s};function u(n){const[r,a,i]=e.useMemo((()=>{const{reactReduxForwardedRef:e}=n,t=_(n,W);return[n.context,e,t]}),[n]),l=e.useMemo((()=>r&&r.Consumer&&(0,D.isContextConsumer)(e.createElement(r.Consumer,null))?r:d),[r,d]),s=e.useContext(l),c=Boolean(n.store)&&Boolean(n.store.getState)&&Boolean(n.store.dispatch),u=Boolean(s)&&Boolean(s.store),p=c?n.store:s.store,f=u?s.getServerState:p.getState,m=e.useMemo((()=>function(e,t){let{initMapStateToProps:n,initMapDispatchToProps:r,initMergeProps:o}=t,a=_(t,I);return P(n(e,a),r(e,a),o(e,a),e,a)}(p.dispatch,o)),[p]),[h,b]=e.useMemo((()=>{if(!g)return H;const e=F(p,c?void 0:s.subscription),t=e.notifyNestedSubs.bind(e);return[e,t]}),[p,c,s]),v=e.useMemo((()=>c?s:C({},s,{subscription:h})),[c,s,h]),y=e.useRef(),w=e.useRef(i),E=e.useRef(),x=e.useRef(!1),S=(e.useRef(!1),e.useRef(!1)),k=e.useRef();j((()=>(S.current=!0,()=>{S.current=!1})),[]);const O=e.useMemo((()=>()=>E.current&&i===w.current?E.current:m(p.getState(),i)),[p,i]),N=e.useMemo((()=>e=>h?function(e,t,n,r,o,a,i,l,s,c,u){if(!e)return()=>{};let d=!1,p=null;const f=()=>{if(d||!l.current)return;const e=t.getState();let n,f;try{n=r(e,o.current)}catch(e){f=e,p=e}f||(p=null),n===a.current?i.current||c():(a.current=n,s.current=n,i.current=!0,u())};return n.onStateChange=f,n.trySubscribe(),f(),()=>{if(d=!0,n.tryUnsubscribe(),n.onStateChange=null,p)throw p}}(g,p,h,m,w,y,x,S,E,b,e):()=>{}),[h]);var T,R;let A;T=G,R=[w,y,x,i,E,b],j((()=>T(...R)),undefined);try{A=$(N,O,f?()=>m(f(),i):O)}catch(e){throw k.current&&(e.message+=`\nThe error may be correlated with this previous error:\n${k.current.stack}\n\n`),e}j((()=>{k.current=void 0,E.current=void 0,y.current=A}));const L=e.useMemo((()=>e.createElement(t,C({},A,{ref:a}))),[a,t,A]);return e.useMemo((()=>g?e.createElement(l.Provider,{value:v},L):L),[l,L,v])}const h=e.memo(u);if(h.WrappedComponent=t,h.displayName=u.displayName=r,c){const n=e.forwardRef((function(t,n){return e.createElement(h,C({},t,{reactReduxForwardedRef:n}))}));return n.displayName=r,n.WrappedComponent=t,N()(n,t)}return N()(h,t)}},K=function({store:t,context:n,children:r,serverState:o,stabilityCheck:a="once",noopCheck:i="once"}){const l=e.useMemo((()=>{const e=F(t);return{store:t,subscription:e,getServerState:o?()=>o:void 0,stabilityCheck:a,noopCheck:i}}),[t,o,a,i]),s=e.useMemo((()=>t.getState()),[t]);j((()=>{const{subscription:e}=l;return e.onStateChange=e.notifyNestedSubs,e.trySubscribe(),s!==t.getState()&&e.notifyNestedSubs(),()=>{e.tryUnsubscribe(),e.onStateChange=void 0}}),[l,s]);const c=n||S;return e.createElement(c.Provider,{value:l},r)};var Q;function Y(t,n){var r=(0,e.useState)((function(){return{inputs:n,result:t()}}))[0],o=(0,e.useRef)(!0),a=(0,e.useRef)(r),i=o.current||Boolean(n&&a.current.inputs&&function(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}(n,a.current.inputs))?a.current:{inputs:n,result:t()};return(0,e.useEffect)((function(){o.current=!1,a.current=i}),[i]),i.result}k=b.useSyncExternalStoreWithSelector,(e=>{$=e})(h.useSyncExternalStore),Q=r.unstable_batchedUpdates,v=Q;var X=Y,J=function(e,t){return Y((function(){return e}),t)},Z=function(e){var t=e.top,n=e.right,r=e.bottom,o=e.left;return{top:t,right:n,bottom:r,left:o,width:n-o,height:r-t,x:o,y:t,center:{x:(n+o)/2,y:(r+t)/2}}},ee=function(e,t){return{top:e.top-t.top,left:e.left-t.left,bottom:e.bottom+t.bottom,right:e.right+t.right}},te=function(e,t){return{top:e.top+t.top,left:e.left+t.left,bottom:e.bottom-t.bottom,right:e.right-t.right}},ne={top:0,right:0,bottom:0,left:0},re=function(e){var t=e.borderBox,n=e.margin,r=void 0===n?ne:n,o=e.border,a=void 0===o?ne:o,i=e.padding,l=void 0===i?ne:i,s=Z(ee(t,r)),c=Z(te(t,a)),u=Z(te(c,l));return{marginBox:s,borderBox:Z(t),paddingBox:c,contentBox:u,margin:r,border:a,padding:l}},oe=function(e){var t=e.slice(0,-2);if("px"!==e.slice(-2))return 0;var n=Number(t);return isNaN(n)&&function(e,t){throw new Error("Invariant failed")}(),n},ae=function(e,t){var n,r,o=e.borderBox,a=e.border,i=e.margin,l=e.padding,s=(r=t,{top:(n=o).top+r.y,left:n.left+r.x,bottom:n.bottom+r.y,right:n.right+r.x});return re({borderBox:s,border:a,margin:i,padding:l})},ie=function(e,t){return void 0===t&&(t={x:window.pageXOffset,y:window.pageYOffset}),ae(e,t)},le=function(e,t){var n={top:oe(t.marginTop),right:oe(t.marginRight),bottom:oe(t.marginBottom),left:oe(t.marginLeft)},r={top:oe(t.paddingTop),right:oe(t.paddingRight),bottom:oe(t.paddingBottom),left:oe(t.paddingLeft)},o={top:oe(t.borderTopWidth),right:oe(t.borderRightWidth),bottom:oe(t.borderBottomWidth),left:oe(t.borderLeftWidth)};return re({borderBox:e,margin:n,padding:r,border:o})},se=function(e){var t=e.getBoundingClientRect(),n=window.getComputedStyle(e);return le(t,n)},ce=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function ue(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(!((r=e[n])===(o=t[n])||ce(r)&&ce(o)))return!1;var r,o;return!0}function de(e,t){void 0===t&&(t=ue);var n=null;function r(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];if(n&&n.lastThis===this&&t(r,n.lastArgs))return n.lastResult;var a=e.apply(this,r);return n={lastResult:a,lastArgs:r,lastThis:this},a}return r.clear=function(){n=null},r}const pe=function(e){var t=[],n=null,r=function(){for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];t=o,n||(n=requestAnimationFrame((function(){n=null,e.apply(void 0,t)})))};return r.cancel=function(){n&&(cancelAnimationFrame(n),n=null)},r};function fe(e,t){}function me(){}function ge(e,t,n){const r=t.map((t=>{const r=(o=n,a=t.options,{...o,...a});var o,a;return e.addEventListener(t.eventName,t.fn,r),function(){e.removeEventListener(t.eventName,t.fn,r)}}));return function(){r.forEach((e=>{e()}))}}fe.bind(null,"warn"),fe.bind(null,"error");const he=!0,be="Invariant failed";class ve extends Error{}function ye(e,t){if(!e)throw new ve(he?be:`${be}: ${t||""}`)}ve.prototype.toString=function(){return this.message};class we extends e.Component{constructor(...e){super(...e),this.callbacks=null,this.unbind=me,this.onWindowError=e=>{const t=this.getCallbacks();t.isDragging()&&t.tryAbort(),e.error instanceof ve&&e.preventDefault()},this.getCallbacks=()=>{if(!this.callbacks)throw new Error("Unable to find AppCallbacks in <ErrorBoundary/>");return this.callbacks},this.setCallbacks=e=>{this.callbacks=e}}componentDidMount(){this.unbind=ge(window,[{eventName:"error",fn:this.onWindowError}])}componentDidCatch(e){if(!(e instanceof ve))throw e;this.setState({})}componentWillUnmount(){this.unbind()}render(){return this.props.children(this.setCallbacks)}}const Ee=e=>e+1,xe=(e,t)=>{const n=e.droppableId===t.droppableId,r=Ee(e.index),o=Ee(t.index);return n?`\n You have moved the item from position ${r}\n to position ${o}\n `:`\n You have moved the item from position ${r}\n in list ${e.droppableId}\n to list ${t.droppableId}\n in position ${o}\n `},Se=(e,t,n)=>t.droppableId===n.droppableId?`\n The item ${e}\n has been combined with ${n.draggableId}`:`\n The item ${e}\n in list ${t.droppableId}\n has been combined with ${n.draggableId}\n in list ${n.droppableId}\n `,ke=e=>`\n The item has returned to its starting position\n of ${Ee(e.index)}\n`,Ce={dragHandleUsageInstructions:"\n Press space bar to start a drag.\n When dragging you can use the arrow keys to move the item around and escape to cancel.\n Some screen readers may require you to be in focus mode or to use your pass through key\n",onDragStart:e=>`\n You have lifted an item in position ${Ee(e.source.index)}\n`,onDragUpdate:e=>{const t=e.destination;if(t)return xe(e.source,t);const n=e.combine;return n?Se(e.draggableId,e.source,n):"You are over an area that cannot be dropped on"},onDragEnd:e=>{if("CANCEL"===e.reason)return`\n Movement cancelled.\n ${ke(e.source)}\n `;const t=e.destination,n=e.combine;return t?`\n You have dropped the item.\n ${xe(e.source,t)}\n `:n?`\n You have dropped the item.\n ${Se(e.draggableId,e.source,n)}\n `:`\n The item has been dropped while not over a drop area.\n ${ke(e.source)}\n `}};var _e=Ce;const Oe={x:0,y:0},Ne=(e,t)=>({x:e.x+t.x,y:e.y+t.y}),De=(e,t)=>({x:e.x-t.x,y:e.y-t.y}),Ie=(e,t)=>e.x===t.x&&e.y===t.y,Pe=e=>({x:0!==e.x?-e.x:0,y:0!==e.y?-e.y:0}),Te=(e,t,n=0)=>"x"===e?{x:t,y:n}:{x:n,y:t},Re=(e,t)=>Math.sqrt((t.x-e.x)**2+(t.y-e.y)**2),Ae=(e,t)=>Math.min(...t.map((t=>Re(e,t)))),Le=e=>t=>({x:e(t.x),y:e(t.y)}),Me=(e,t)=>({top:e.top+t.y,left:e.left+t.x,bottom:e.bottom+t.y,right:e.right+t.x}),Be=e=>[{x:e.left,y:e.top},{x:e.right,y:e.top},{x:e.left,y:e.bottom},{x:e.right,y:e.bottom}],Fe=(e,t)=>t&&t.shouldClipSubject?((e,t)=>{const n=Z({top:Math.max(t.top,e.top),right:Math.min(t.right,e.right),bottom:Math.min(t.bottom,e.bottom),left:Math.max(t.left,e.left)});return n.width<=0||n.height<=0?null:n})(t.pageMarginBox,e):Z(e);var je=({page:e,withPlaceholder:t,axis:n,frame:r})=>{const o=((e,t)=>t?Me(e,t.scroll.diff.displacement):e)(e.marginBox,r),a=((e,t,n)=>n&&n.increasedBy?{...e,[t.end]:e[t.end]+n.increasedBy[t.line]}:e)(o,n,t);return{page:e,withPlaceholder:t,active:Fe(a,r)}},ze=(e,t)=>{e.frame||ye(!1);const n=e.frame,r=De(t,n.scroll.initial),o=Pe(r),a={...n,scroll:{initial:n.scroll.initial,current:t,diff:{value:r,displacement:o},max:n.scroll.max}},i=je({page:e.subject.page,withPlaceholder:e.subject.withPlaceholder,axis:e.axis,frame:a});return{...e,frame:a,subject:i}};const Ue=de((e=>e.reduce(((e,t)=>(e[t.descriptor.id]=t,e)),{}))),We=de((e=>e.reduce(((e,t)=>(e[t.descriptor.id]=t,e)),{}))),$e=de((e=>Object.values(e))),He=de((e=>Object.values(e)));var Ge=de(((e,t)=>{const n=He(t).filter((t=>e===t.descriptor.droppableId)).sort(((e,t)=>e.descriptor.index-t.descriptor.index));return n}));function Ve(e){return e.at&&"REORDER"===e.at.type?e.at.destination:null}function qe(e){return e.at&&"COMBINE"===e.at.type?e.at.combine:null}var Ke=de(((e,t)=>t.filter((t=>t.descriptor.id!==e.descriptor.id)))),Qe=(e,t)=>e.descriptor.droppableId===t.descriptor.id;const Ye={point:Oe,value:0},Xe={invisible:{},visible:{},all:[]};var Je={displaced:Xe,displacedBy:Ye,at:null},Ze=(e,t)=>n=>e<=n&&n<=t,et=e=>{const t=Ze(e.top,e.bottom),n=Ze(e.left,e.right);return r=>{if(t(r.top)&&t(r.bottom)&&n(r.left)&&n(r.right))return!0;const o=t(r.top)||t(r.bottom),a=n(r.left)||n(r.right);if(o&&a)return!0;const i=r.top<e.top&&r.bottom>e.bottom,l=r.left<e.left&&r.right>e.right;return!(!i||!l)||(i&&a||l&&o)}},tt=e=>{const t=Ze(e.top,e.bottom),n=Ze(e.left,e.right);return e=>t(e.top)&&t(e.bottom)&&n(e.left)&&n(e.right)};const nt={direction:"vertical",line:"y",crossAxisLine:"x",start:"top",end:"bottom",size:"height",crossAxisStart:"left",crossAxisEnd:"right",crossAxisSize:"width"},rt={direction:"horizontal",line:"x",crossAxisLine:"y",start:"left",end:"right",size:"width",crossAxisStart:"top",crossAxisEnd:"bottom",crossAxisSize:"height"},ot=({target:e,destination:t,viewport:n,withDroppableDisplacement:r,isVisibleThroughFrameFn:o})=>{const a=r?((e,t)=>{const n=t.frame?t.frame.scroll.diff.displacement:Oe;return Me(e,n)})(e,t):e;return((e,t,n)=>!!t.subject.active&&n(t.subject.active)(e))(a,t,o)&&((e,t,n)=>n(t)(e))(a,n,o)},at=e=>ot({...e,isVisibleThroughFrameFn:et}),it=e=>ot({...e,isVisibleThroughFrameFn:tt}),lt=(e,t,n)=>{if("boolean"==typeof n)return n;if(!t)return!0;const{invisible:r,visible:o}=t;if(r[e])return!1;const a=o[e];return!a||a.shouldAnimate};function st({afterDragging:e,destination:t,displacedBy:n,viewport:r,forceShouldAnimate:o,last:a}){return e.reduce((function(e,i){const l=function(e,t){const n=e.page.marginBox,r={top:t.point.y,right:0,bottom:0,left:t.point.x};return Z(ee(n,r))}(i,n),s=i.descriptor.id;if(e.all.push(s),!at({target:l,destination:t,viewport:r,withDroppableDisplacement:!0}))return e.invisible[i.descriptor.id]=!0,e;const c={draggableId:s,shouldAnimate:lt(s,a,o)};return e.visible[s]=c,e}),{all:[],visible:{},invisible:{}})}function ct({insideDestination:e,inHomeList:t,displacedBy:n,destination:r}){const o=function(e,t){if(!e.length)return 0;const n=e[e.length-1].descriptor.index;return t.inHomeList?n:n+1}(e,{inHomeList:t});return{displaced:Xe,displacedBy:n,at:{type:"REORDER",destination:{droppableId:r.descriptor.id,index:o}}}}function ut({draggable:e,insideDestination:t,destination:n,viewport:r,displacedBy:o,last:a,index:i,forceShouldAnimate:l}){const s=Qe(e,n);if(null==i)return ct({insideDestination:t,inHomeList:s,displacedBy:o,destination:n});const c=t.find((e=>e.descriptor.index===i));if(!c)return ct({insideDestination:t,inHomeList:s,displacedBy:o,destination:n});const u=Ke(e,t),d=t.indexOf(c);return{displaced:st({afterDragging:u.slice(d),destination:n,displacedBy:o,last:a,viewport:r.frame,forceShouldAnimate:l}),displacedBy:o,at:{type:"REORDER",destination:{droppableId:n.descriptor.id,index:i}}}}function dt(e,t){return Boolean(t.effected[e])}const pt=(e,t)=>t.margin[e.start]+t.borderBox[e.size]/2,ft=(e,t,n)=>t[e.crossAxisStart]+n.margin[e.crossAxisStart]+n.borderBox[e.crossAxisSize]/2,mt=({axis:e,moveRelativeTo:t,isMoving:n})=>Te(e.line,t.marginBox[e.end]+pt(e,n),ft(e,t.marginBox,n)),gt=({axis:e,moveRelativeTo:t,isMoving:n})=>Te(e.line,t.marginBox[e.start]-((e,t)=>t.margin[e.end]+t.borderBox[e.size]/2)(e,n),ft(e,t.marginBox,n));var ht=(e,t)=>{const n=e.frame;return n?Ne(t,n.scroll.diff.displacement):t},bt=e=>{const t=(({impact:e,draggable:t,droppable:n,draggables:r,afterCritical:o})=>{const a=t.page.borderBox.center,i=e.at;return n&&i?"REORDER"===i.type?(({impact:e,draggable:t,draggables:n,droppable:r,afterCritical:o})=>{const a=Ge(r.descriptor.id,n),i=t.page,l=r.axis;if(!a.length)return(({axis:e,moveInto:t,isMoving:n})=>Te(e.line,t.contentBox[e.start]+pt(e,n),ft(e,t.contentBox,n)))({axis:l,moveInto:r.page,isMoving:i});const{displaced:s,displacedBy:c}=e,u=s.all[0];if(u){const e=n[u];if(dt(u,o))return gt({axis:l,moveRelativeTo:e.page,isMoving:i});const t=ae(e.page,c.point);return gt({axis:l,moveRelativeTo:t,isMoving:i})}const d=a[a.length-1];if(d.descriptor.id===t.descriptor.id)return i.borderBox.center;if(dt(d.descriptor.id,o)){const e=ae(d.page,Pe(o.displacedBy.point));return mt({axis:l,moveRelativeTo:e,isMoving:i})}return mt({axis:l,moveRelativeTo:d.page,isMoving:i})})({impact:e,draggable:t,draggables:r,droppable:n,afterCritical:o}):(({afterCritical:e,impact:t,draggables:n})=>{const r=qe(t);r||ye(!1);const o=r.draggableId,a=n[o].page.borderBox.center,i=(({displaced:e,afterCritical:t,combineWith:n,displacedBy:r})=>{const o=Boolean(e.visible[n]||e.invisible[n]);return dt(n,t)?o?Oe:Pe(r.point):o?r.point:Oe})({displaced:t.displaced,afterCritical:e,combineWith:o,displacedBy:t.displacedBy});return Ne(a,i)})({impact:e,draggables:r,afterCritical:o}):a})(e),n=e.droppable;return n?ht(n,t):t},vt=(e,t)=>{const n=De(t,e.scroll.initial),r=Pe(n);return{frame:Z({top:t.y,bottom:t.y+e.frame.height,left:t.x,right:t.x+e.frame.width}),scroll:{initial:e.scroll.initial,max:e.scroll.max,current:t,diff:{value:n,displacement:r}}}};function yt(e,t){return e.map((e=>t[e]))}var wt=({pageBorderBoxCenter:e,draggable:t,viewport:n})=>{const r=((e,t)=>Ne(e.scroll.diff.displacement,t))(n,e),o=De(r,t.page.borderBox.center);return Ne(t.client.borderBox.center,o)},Et=({draggable:e,destination:t,newPageBorderBoxCenter:n,viewport:r,withDroppableDisplacement:o,onlyOnMainAxis:a=!1})=>{const i=De(n,e.page.borderBox.center),l={target:Me(e.page.borderBox,i),destination:t,withDroppableDisplacement:o,viewport:r};return a?(e=>{return ot({...e,isVisibleThroughFrameFn:(t=e.destination.axis,e=>{const n=Ze(e.top,e.bottom),r=Ze(e.left,e.right);return e=>t===nt?n(e.top)&&n(e.bottom):r(e.left)&&r(e.right)})});var t})(l):it(l)},xt=({isMovingForward:e,draggable:t,destination:n,draggables:r,previousImpact:o,viewport:a,previousPageBorderBoxCenter:i,previousClientSelection:l,afterCritical:s})=>{if(!n.isEnabled)return null;const c=Ge(n.descriptor.id,r),u=Qe(t,n),d=(({isMovingForward:e,draggable:t,destination:n,insideDestination:r,previousImpact:o})=>{if(!n.isCombineEnabled)return null;if(!Ve(o))return null;function a(e){const t={type:"COMBINE",combine:{draggableId:e,droppableId:n.descriptor.id}};return{...o,at:t}}const i=o.displaced.all,l=i.length?i[0]:null;if(e)return l?a(l):null;const s=Ke(t,r);if(!l)return s.length?a(s[s.length-1].descriptor.id):null;const c=s.findIndex((e=>e.descriptor.id===l));-1===c&&ye(!1);const u=c-1;return u<0?null:a(s[u].descriptor.id)})({isMovingForward:e,draggable:t,destination:n,insideDestination:c,previousImpact:o})||(({isMovingForward:e,isInHomeList:t,draggable:n,draggables:r,destination:o,insideDestination:a,previousImpact:i,viewport:l,afterCritical:s})=>{const c=i.at;if(c||ye(!1),"REORDER"===c.type){const r=(({isMovingForward:e,isInHomeList:t,insideDestination:n,location:r})=>{if(!n.length)return null;const o=r.index,a=e?o+1:o-1,i=n[0].descriptor.index,l=n[n.length-1].descriptor.index;return a<i||a>(t?l:l+1)?null:a})({isMovingForward:e,isInHomeList:t,location:c.destination,insideDestination:a});return null==r?null:ut({draggable:n,insideDestination:a,destination:o,viewport:l,last:i.displaced,displacedBy:i.displacedBy,index:r})}const u=(({isMovingForward:e,destination:t,draggables:n,combine:r,afterCritical:o})=>{if(!t.isCombineEnabled)return null;const a=r.draggableId,i=n[a].descriptor.index;return dt(a,o)?e?i:i-1:e?i+1:i})({isMovingForward:e,destination:o,displaced:i.displaced,draggables:r,combine:c.combine,afterCritical:s});return null==u?null:ut({draggable:n,insideDestination:a,destination:o,viewport:l,last:i.displaced,displacedBy:i.displacedBy,index:u})})({isMovingForward:e,isInHomeList:u,draggable:t,draggables:r,destination:n,insideDestination:c,previousImpact:o,viewport:a,afterCritical:s});if(!d)return null;const p=bt({impact:d,draggable:t,droppable:n,draggables:r,afterCritical:s});if(Et({draggable:t,destination:n,newPageBorderBoxCenter:p,viewport:a.frame,withDroppableDisplacement:!1,onlyOnMainAxis:!0}))return{clientSelection:wt({pageBorderBoxCenter:p,draggable:t,viewport:a}),impact:d,scrollJumpRequest:null};const f=De(p,i),m=(({impact:e,viewport:t,destination:n,draggables:r,maxScrollChange:o})=>{const a=vt(t,Ne(t.scroll.current,o)),i=n.frame?ze(n,Ne(n.frame.scroll.current,o)):n,l=e.displaced,s=st({afterDragging:yt(l.all,r),destination:n,displacedBy:e.displacedBy,viewport:a.frame,last:l,forceShouldAnimate:!1}),c=st({afterDragging:yt(l.all,r),destination:i,displacedBy:e.displacedBy,viewport:t.frame,last:l,forceShouldAnimate:!1}),u={},d={},p=[l,s,c];return l.all.forEach((e=>{const t=function(e,t){for(let n=0;n<t.length;n++){const r=t[n].visible[e];if(r)return r}return null}(e,p);t?d[e]=t:u[e]=!0})),{...e,displaced:{all:l.all,invisible:u,visible:d}}})({impact:d,viewport:a,destination:n,draggables:r,maxScrollChange:f});return{clientSelection:l,impact:m,scrollJumpRequest:f}};const St=e=>{const t=e.subject.active;return t||ye(!1),t},kt=(e,t)=>{const n=e.page.borderBox.center;return dt(e.descriptor.id,t)?De(n,t.displacedBy.point):n},Ct=(e,t)=>{const n=e.page.borderBox;return dt(e.descriptor.id,t)?Me(n,Pe(t.displacedBy.point)):n};var _t=de((function(e,t){const n=t[e.line];return{value:n,point:Te(e.line,n)}}));const Ot=(e,t)=>({...e,scroll:{...e.scroll,max:t}}),Nt=(e,t,n)=>{const r=e.frame;Qe(t,e)&&ye(!1),e.subject.withPlaceholder&&ye(!1);const o=_t(e.axis,t.displaceBy).point,a=((e,t,n)=>{const r=e.axis;if("virtual"===e.descriptor.mode)return Te(r.line,t[r.line]);const o=e.subject.page.contentBox[r.size],a=Ge(e.descriptor.id,n).reduce(((e,t)=>e+t.client.marginBox[r.size]),0)+t[r.line]-o;return a<=0?null:Te(r.line,a)})(e,o,n),i={placeholderSize:o,increasedBy:a,oldFrameMaxScroll:e.frame?e.frame.scroll.max:null};if(!r){const t=je({page:e.subject.page,withPlaceholder:i,axis:e.axis,frame:e.frame});return{...e,subject:t}}const l=a?Ne(r.scroll.max,a):r.scroll.max,s=Ot(r,l),c=je({page:e.subject.page,withPlaceholder:i,axis:e.axis,frame:s});return{...e,subject:c,frame:s}};var Dt=e=>{const t=e.at;return t?"REORDER"===t.type?t.destination.droppableId:t.combine.droppableId:null},It=({state:e,type:t})=>{const n=((e,t)=>{const n=Dt(e);return n?t[n]:null})(e.impact,e.dimensions.droppables),r=Boolean(n),o=e.dimensions.droppables[e.critical.droppable.id],a=n||o,i=a.axis.direction,l="vertical"===i&&("MOVE_UP"===t||"MOVE_DOWN"===t)||"horizontal"===i&&("MOVE_LEFT"===t||"MOVE_RIGHT"===t);if(l&&!r)return null;const s="MOVE_DOWN"===t||"MOVE_RIGHT"===t,c=e.dimensions.draggables[e.critical.draggable.id],u=e.current.page.borderBoxCenter,{draggables:d,droppables:p}=e.dimensions;return l?xt({isMovingForward:s,previousPageBorderBoxCenter:u,draggable:c,destination:a,draggables:d,viewport:e.viewport,previousClientSelection:e.current.client.selection,previousImpact:e.impact,afterCritical:e.afterCritical}):(({isMovingForward:e,previousPageBorderBoxCenter:t,draggable:n,isOver:r,draggables:o,droppables:a,viewport:i,afterCritical:l})=>{const s=(({isMovingForward:e,pageBorderBoxCenter:t,source:n,droppables:r,viewport:o})=>{const a=n.subject.active;if(!a)return null;const i=n.axis,l=Ze(a[i.start],a[i.end]),s=$e(r).filter((e=>e!==n)).filter((e=>e.isEnabled)).filter((e=>Boolean(e.subject.active))).filter((e=>et(o.frame)(St(e)))).filter((t=>{const n=St(t);return e?a[i.crossAxisEnd]<n[i.crossAxisEnd]:n[i.crossAxisStart]<a[i.crossAxisStart]})).filter((e=>{const t=St(e),n=Ze(t[i.start],t[i.end]);return l(t[i.start])||l(t[i.end])||n(a[i.start])||n(a[i.end])})).sort(((t,n)=>{const r=St(t)[i.crossAxisStart],o=St(n)[i.crossAxisStart];return e?r-o:o-r})).filter(((e,t,n)=>St(e)[i.crossAxisStart]===St(n[0])[i.crossAxisStart]));if(!s.length)return null;if(1===s.length)return s[0];const c=s.filter((e=>Ze(St(e)[i.start],St(e)[i.end])(t[i.line])));return 1===c.length?c[0]:c.length>1?c.sort(((e,t)=>St(e)[i.start]-St(t)[i.start]))[0]:s.sort(((e,n)=>{const r=Ae(t,Be(St(e))),o=Ae(t,Be(St(n)));return r!==o?r-o:St(e)[i.start]-St(n)[i.start]}))[0]})({isMovingForward:e,pageBorderBoxCenter:t,source:r,droppables:a,viewport:i});if(!s)return null;const c=Ge(s.descriptor.id,o),u=(({pageBorderBoxCenter:e,viewport:t,destination:n,insideDestination:r,afterCritical:o})=>{const a=r.filter((e=>it({target:Ct(e,o),destination:n,viewport:t.frame,withDroppableDisplacement:!0}))).sort(((t,r)=>{const a=Re(e,ht(n,kt(t,o))),i=Re(e,ht(n,kt(r,o)));return a<i?-1:i<a?1:t.descriptor.index-r.descriptor.index}));return a[0]||null})({pageBorderBoxCenter:t,viewport:i,destination:s,insideDestination:c,afterCritical:l}),d=(({previousPageBorderBoxCenter:e,moveRelativeTo:t,insideDestination:n,draggable:r,draggables:o,destination:a,viewport:i,afterCritical:l})=>{if(!t){if(n.length)return null;const e={displaced:Xe,displacedBy:Ye,at:{type:"REORDER",destination:{droppableId:a.descriptor.id,index:0}}},t=bt({impact:e,draggable:r,droppable:a,draggables:o,afterCritical:l}),s=Qe(r,a)?a:Nt(a,r,o);return Et({draggable:r,destination:s,newPageBorderBoxCenter:t,viewport:i.frame,withDroppableDisplacement:!1,onlyOnMainAxis:!0})?e:null}const s=Boolean(e[a.axis.line]<=t.page.borderBox.center[a.axis.line]),c=(()=>{const e=t.descriptor.index;return t.descriptor.id===r.descriptor.id||s?e:e+1})(),u=_t(a.axis,r.displaceBy);return ut({draggable:r,insideDestination:n,destination:a,viewport:i,displacedBy:u,last:Xe,index:c})})({previousPageBorderBoxCenter:t,destination:s,draggable:n,draggables:o,moveRelativeTo:u,insideDestination:c,viewport:i,afterCritical:l});if(!d)return null;const p=bt({impact:d,draggable:n,droppable:s,draggables:o,afterCritical:l});return{clientSelection:wt({pageBorderBoxCenter:p,draggable:n,viewport:i}),impact:d,scrollJumpRequest:null}})({isMovingForward:s,previousPageBorderBoxCenter:u,draggable:c,isOver:a,draggables:d,droppables:p,viewport:e.viewport,afterCritical:e.afterCritical})};function Pt(e){return"DRAGGING"===e.phase||"COLLECTING"===e.phase}function Tt(e){const t=Ze(e.top,e.bottom),n=Ze(e.left,e.right);return function(e){return t(e.y)&&n(e.x)}}const Rt=(e,t)=>Z(Me(e,t));function At({displaced:e,id:t}){return Boolean(e.visible[t]||e.invisible[t])}var Lt=({pageOffset:e,draggable:t,draggables:n,droppables:r,previousImpact:o,viewport:a,afterCritical:i})=>{const l=Rt(t.page.borderBox,e),s=function({pageBorderBox:e,draggable:t,droppables:n}){const r=$e(n).filter((t=>{if(!t.isEnabled)return!1;const n=t.subject.active;if(!n)return!1;if(o=n,!((r=e).left<o.right&&r.right>o.left&&r.top<o.bottom&&r.bottom>o.top))return!1;var r,o;if(Tt(n)(e.center))return!0;const a=t.axis,i=n.center[a.crossAxisLine],l=e[a.crossAxisStart],s=e[a.crossAxisEnd],c=Ze(n[a.crossAxisStart],n[a.crossAxisEnd]),u=c(l),d=c(s);return!u&&!d||(u?l<i:s>i)}));return r.length?1===r.length?r[0].descriptor.id:function({pageBorderBox:e,draggable:t,candidates:n}){const r=t.page.borderBox.center,o=n.map((t=>{const n=t.axis,o=Te(t.axis.line,e.center[n.line],t.page.borderBox.center[n.crossAxisLine]);return{id:t.descriptor.id,distance:Re(r,o)}})).sort(((e,t)=>t.distance-e.distance));return o[0]?o[0].id:null}({pageBorderBox:e,draggable:t,candidates:r}):null}({pageBorderBox:l,draggable:t,droppables:r});if(!s)return Je;const c=r[s],u=Ge(c.descriptor.id,n),d=((e,t)=>{const n=e.frame;return n?Rt(t,n.scroll.diff.value):t})(c,l);return(({draggable:e,pageBorderBoxWithDroppableScroll:t,previousImpact:n,destination:r,insideDestination:o,afterCritical:a})=>{if(!r.isCombineEnabled)return null;const i=r.axis,l=_t(r.axis,e.displaceBy),s=l.value,c=t[i.start],u=t[i.end],d=Ke(e,o).find((e=>{const t=e.descriptor.id,r=e.page.borderBox,o=r[i.size]/4,l=dt(t,a),d=At({displaced:n.displaced,id:t});return l?d?u>r[i.start]+o&&u<r[i.end]-o:c>r[i.start]-s+o&&c<r[i.end]-s-o:d?u>r[i.start]+s+o&&u<r[i.end]+s-o:c>r[i.start]+o&&c<r[i.end]-o}));return d?{displacedBy:l,displaced:n.displaced,at:{type:"COMBINE",combine:{draggableId:d.descriptor.id,droppableId:r.descriptor.id}}}:null})({pageBorderBoxWithDroppableScroll:d,draggable:t,previousImpact:o,destination:c,insideDestination:u,afterCritical:i})||(({pageBorderBoxWithDroppableScroll:e,draggable:t,destination:n,insideDestination:r,last:o,viewport:a,afterCritical:i})=>{const l=n.axis,s=_t(n.axis,t.displaceBy),c=s.value,u=e[l.start],d=e[l.end],p=function({draggable:e,closest:t,inHomeList:n}){return t?n&&t.descriptor.index>e.descriptor.index?t.descriptor.index-1:t.descriptor.index:null}({draggable:t,closest:Ke(t,r).find((e=>{const t=e.descriptor.id,n=e.page.borderBox.center[l.line],r=dt(t,i),a=At({displaced:o,id:t});return r?a?d<=n:u<n-c:a?d<=n+c:u<n}))||null,inHomeList:Qe(t,n)});return ut({draggable:t,insideDestination:r,destination:n,viewport:a,last:o,displacedBy:s,index:p})})({pageBorderBoxWithDroppableScroll:d,draggable:t,destination:c,insideDestination:u,last:o.displaced,viewport:a,afterCritical:i})},Mt=(e,t)=>({...e,[t.descriptor.id]:t});var Bt=({state:e,clientSelection:t,dimensions:n,viewport:r,impact:o,scrollJumpRequest:a})=>{const i=r||e.viewport,l=n||e.dimensions,s=t||e.current.client.selection,c=De(s,e.initial.client.selection),u={offset:c,selection:s,borderBoxCenter:Ne(e.initial.client.borderBoxCenter,c)},d={selection:Ne(u.selection,i.scroll.current),borderBoxCenter:Ne(u.borderBoxCenter,i.scroll.current),offset:Ne(u.offset,i.scroll.diff.value)},p={client:u,page:d};if("COLLECTING"===e.phase)return{...e,dimensions:l,viewport:i,current:p};const f=l.draggables[e.critical.draggable.id],m=o||Lt({pageOffset:d.offset,draggable:f,draggables:l.draggables,droppables:l.droppables,previousImpact:e.impact,viewport:i,afterCritical:e.afterCritical}),g=(({draggable:e,draggables:t,droppables:n,previousImpact:r,impact:o})=>{const a=(({previousImpact:e,impact:t,droppables:n})=>{const r=Dt(e),o=Dt(t);if(!r)return n;if(r===o)return n;const a=n[r];if(!a.subject.withPlaceholder)return n;const i=(e=>{const t=e.subject.withPlaceholder;t||ye(!1);const n=e.frame;if(!n){const t=je({page:e.subject.page,axis:e.axis,frame:null,withPlaceholder:null});return{...e,subject:t}}const r=t.oldFrameMaxScroll;r||ye(!1);const o=Ot(n,r),a=je({page:e.subject.page,axis:e.axis,frame:o,withPlaceholder:null});return{...e,subject:a,frame:o}})(a);return Mt(n,i)})({previousImpact:r,impact:o,droppables:n}),i=Dt(o);if(!i)return a;const l=n[i];if(Qe(e,l))return a;if(l.subject.withPlaceholder)return a;const s=Nt(l,e,t);return Mt(a,s)})({draggable:f,impact:m,previousImpact:e.impact,draggables:l.draggables,droppables:l.droppables});return{...e,current:p,dimensions:{draggables:l.draggables,droppables:g},impact:m,viewport:i,scrollJumpRequest:a||null,forceShouldAnimate:!a&&null}},Ft=({impact:e,viewport:t,draggables:n,destination:r,forceShouldAnimate:o})=>{const a=e.displaced,i=function(e,t){return e.map((e=>t[e]))}(a.all,n),l=st({afterDragging:i,destination:r,displacedBy:e.displacedBy,viewport:t.frame,forceShouldAnimate:o,last:a});return{...e,displaced:l}},jt=({impact:e,draggable:t,droppable:n,draggables:r,viewport:o,afterCritical:a})=>{const i=bt({impact:e,draggable:t,draggables:r,droppable:n,afterCritical:a});return wt({pageBorderBoxCenter:i,draggable:t,viewport:o})},zt=({state:e,dimensions:t,viewport:n})=>{"SNAP"!==e.movementMode&&ye(!1);const r=e.impact,o=n||e.viewport,a=t||e.dimensions,{draggables:i,droppables:l}=a,s=i[e.critical.draggable.id],c=Dt(r);c||ye(!1);const u=l[c],d=Ft({impact:r,viewport:o,destination:u,draggables:i}),p=jt({impact:d,draggable:s,droppable:u,draggables:i,viewport:o,afterCritical:e.afterCritical});return Bt({impact:d,clientSelection:p,state:e,dimensions:a,viewport:o})},Ut=({draggable:e,home:t,draggables:n,viewport:r})=>{const o=_t(t.axis,e.displaceBy),a=Ge(t.descriptor.id,n),i=a.indexOf(e);-1===i&&ye(!1);const l=a.slice(i+1),s=l.reduce(((e,t)=>(e[t.descriptor.id]=!0,e)),{}),c={inVirtualList:"virtual"===t.descriptor.mode,displacedBy:o,effected:s};var u;return{impact:{displaced:st({afterDragging:l,destination:t,displacedBy:o,last:null,viewport:r.frame,forceShouldAnimate:!1}),displacedBy:o,at:{type:"REORDER",destination:(u=e.descriptor,{index:u.index,droppableId:u.droppableId})}},afterCritical:c}};const Wt=e=>"SNAP"===e.movementMode,$t=(e,t,n)=>{const r=((e,t)=>({draggables:e.draggables,droppables:Mt(e.droppables,t)}))(e.dimensions,t);return!Wt(e)||n?Bt({state:e,dimensions:r}):zt({state:e,dimensions:r})};function Ht(e){return e.isDragging&&"SNAP"===e.movementMode?{...e,scrollJumpRequest:null}:e}const Gt={phase:"IDLE",completed:null,shouldFlush:!1};var Vt=(e=Gt,t)=>{if("FLUSH"===t.type)return{...Gt,shouldFlush:!0};if("INITIAL_PUBLISH"===t.type){"IDLE"!==e.phase&&ye(!1);const{critical:n,clientSelection:r,viewport:o,dimensions:a,movementMode:i}=t.payload,l=a.draggables[n.draggable.id],s=a.droppables[n.droppable.id],c={selection:r,borderBoxCenter:l.client.borderBox.center,offset:Oe},u={client:c,page:{selection:Ne(c.selection,o.scroll.initial),borderBoxCenter:Ne(c.selection,o.scroll.initial),offset:Ne(c.selection,o.scroll.diff.value)}},d=$e(a.droppables).every((e=>!e.isFixedOnPage)),{impact:p,afterCritical:f}=Ut({draggable:l,home:s,draggables:a.draggables,viewport:o});return{phase:"DRAGGING",isDragging:!0,critical:n,movementMode:i,dimensions:a,initial:u,current:u,isWindowScrollAllowed:d,impact:p,afterCritical:f,onLiftImpact:p,viewport:o,scrollJumpRequest:null,forceShouldAnimate:null}}if("COLLECTION_STARTING"===t.type)return"COLLECTING"===e.phase||"DROP_PENDING"===e.phase?e:("DRAGGING"!==e.phase&&ye(!1),{...e,phase:"COLLECTING"});if("PUBLISH_WHILE_DRAGGING"===t.type)return"COLLECTING"!==e.phase&&"DROP_PENDING"!==e.phase&&ye(!1),(({state:e,published:t})=>{const n=t.modified.map((t=>{const n=e.dimensions.droppables[t.droppableId];return ze(n,t.scroll)})),r={...e.dimensions.droppables,...Ue(n)},o=We((({additions:e,updatedDroppables:t,viewport:n})=>{const r=n.scroll.diff.value;return e.map((e=>{const o=e.descriptor.droppableId,a=(e=>{const t=e.frame;return t||ye(!1),t})(t[o]),i=a.scroll.diff.value,l=(({draggable:e,offset:t,initialWindowScroll:n})=>{const r=ae(e.client,t),o=ie(r,n);return{...e,placeholder:{...e.placeholder,client:r},client:r,page:o}})({draggable:e,offset:Ne(r,i),initialWindowScroll:n.scroll.initial});return l}))})({additions:t.additions,updatedDroppables:r,viewport:e.viewport})),a={...e.dimensions.draggables,...o};t.removals.forEach((e=>{delete a[e]}));const i={droppables:r,draggables:a},l=Dt(e.impact),s=l?i.droppables[l]:null,c=i.draggables[e.critical.draggable.id],u=i.droppables[e.critical.droppable.id],{impact:d,afterCritical:p}=Ut({draggable:c,home:u,draggables:a,viewport:e.viewport}),f=s&&s.isCombineEnabled?e.impact:d,m=Lt({pageOffset:e.current.page.offset,draggable:i.draggables[e.critical.draggable.id],draggables:i.draggables,droppables:i.droppables,previousImpact:f,viewport:e.viewport,afterCritical:p}),g={...e,phase:"DRAGGING",impact:m,onLiftImpact:d,dimensions:i,afterCritical:p,forceShouldAnimate:!1};return"COLLECTING"===e.phase?g:{...g,phase:"DROP_PENDING",reason:e.reason,isWaiting:!1}})({state:e,published:t.payload});if("MOVE"===t.type){if("DROP_PENDING"===e.phase)return e;Pt(e)||ye(!1);const{client:n}=t.payload;return Ie(n,e.current.client.selection)?e:Bt({state:e,clientSelection:n,impact:Wt(e)?e.impact:null})}if("UPDATE_DROPPABLE_SCROLL"===t.type){if("DROP_PENDING"===e.phase)return Ht(e);if("COLLECTING"===e.phase)return Ht(e);Pt(e)||ye(!1);const{id:n,newScroll:r}=t.payload,o=e.dimensions.droppables[n];if(!o)return e;const a=ze(o,r);return $t(e,a,!1)}if("UPDATE_DROPPABLE_IS_ENABLED"===t.type){if("DROP_PENDING"===e.phase)return e;Pt(e)||ye(!1);const{id:n,isEnabled:r}=t.payload,o=e.dimensions.droppables[n];o||ye(!1),o.isEnabled===r&&ye(!1);const a={...o,isEnabled:r};return $t(e,a,!0)}if("UPDATE_DROPPABLE_IS_COMBINE_ENABLED"===t.type){if("DROP_PENDING"===e.phase)return e;Pt(e)||ye(!1);const{id:n,isCombineEnabled:r}=t.payload,o=e.dimensions.droppables[n];o||ye(!1),o.isCombineEnabled===r&&ye(!1);const a={...o,isCombineEnabled:r};return $t(e,a,!0)}if("MOVE_BY_WINDOW_SCROLL"===t.type){if("DROP_PENDING"===e.phase||"DROP_ANIMATING"===e.phase)return e;Pt(e)||ye(!1),e.isWindowScrollAllowed||ye(!1);const n=t.payload.newScroll;if(Ie(e.viewport.scroll.current,n))return Ht(e);const r=vt(e.viewport,n);return Wt(e)?zt({state:e,viewport:r}):Bt({state:e,viewport:r})}if("UPDATE_VIEWPORT_MAX_SCROLL"===t.type){if(!Pt(e))return e;const n=t.payload.maxScroll;if(Ie(n,e.viewport.scroll.max))return e;const r={...e.viewport,scroll:{...e.viewport.scroll,max:n}};return{...e,viewport:r}}if("MOVE_UP"===t.type||"MOVE_DOWN"===t.type||"MOVE_LEFT"===t.type||"MOVE_RIGHT"===t.type){if("COLLECTING"===e.phase||"DROP_PENDING"===e.phase)return e;"DRAGGING"!==e.phase&&ye(!1);const n=It({state:e,type:t.type});return n?Bt({state:e,impact:n.impact,clientSelection:n.clientSelection,scrollJumpRequest:n.scrollJumpRequest}):e}if("DROP_PENDING"===t.type){const n=t.payload.reason;return"COLLECTING"!==e.phase&&ye(!1),{...e,phase:"DROP_PENDING",isWaiting:!0,reason:n}}if("DROP_ANIMATE"===t.type){const{completed:n,dropDuration:r,newHomeClientOffset:o}=t.payload;return"DRAGGING"!==e.phase&&"DROP_PENDING"!==e.phase&&ye(!1),{phase:"DROP_ANIMATING",completed:n,dropDuration:r,newHomeClientOffset:o,dimensions:e.dimensions}}if("DROP_COMPLETE"===t.type){const{completed:e}=t.payload;return{phase:"IDLE",completed:e,shouldFlush:!1}}return e};const qt=e=>({type:"LIFT",payload:e}),Kt=e=>({type:"PUBLISH_WHILE_DRAGGING",payload:e}),Qt=()=>({type:"COLLECTION_STARTING",payload:null}),Yt=e=>({type:"UPDATE_DROPPABLE_SCROLL",payload:e}),Xt=e=>({type:"UPDATE_DROPPABLE_IS_ENABLED",payload:e}),Jt=e=>({type:"UPDATE_DROPPABLE_IS_COMBINE_ENABLED",payload:e}),Zt=e=>({type:"MOVE",payload:e}),en=()=>({type:"MOVE_UP",payload:null}),tn=()=>({type:"MOVE_DOWN",payload:null}),nn=()=>({type:"MOVE_RIGHT",payload:null}),rn=()=>({type:"MOVE_LEFT",payload:null}),on=()=>({type:"FLUSH",payload:null}),an=e=>({type:"DROP_COMPLETE",payload:e}),ln=e=>({type:"DROP",payload:e}),sn="cubic-bezier(.2,1,.1,1)",cn=0,un=.7,dn=.75,pn={outOfTheWay:.2,minDropTime:.33,maxDropTime:.55},fn=`${pn.outOfTheWay}s cubic-bezier(0.2, 0, 0, 1)`,mn={fluid:`opacity ${fn}`,snap:`transform ${fn}, opacity ${fn}`,drop:e=>{const t=`${e}s ${sn}`;return`transform ${t}, opacity ${t}`},outOfTheWay:`transform ${fn}`,placeholder:`height ${fn}, width ${fn}, margin ${fn}`},gn=e=>Ie(e,Oe)?void 0:`translate(${e.x}px, ${e.y}px)`,hn=gn,bn=(e,t)=>{const n=gn(e);if(n)return t?`${n} scale(${dn})`:n},{minDropTime:vn,maxDropTime:yn}=pn,wn=yn-vn;var En=({getState:e,dispatch:t})=>n=>r=>{if("DROP"!==r.type)return void n(r);const o=e(),a=r.payload.reason;if("COLLECTING"===o.phase)return void t((i={reason:a},{type:"DROP_PENDING",payload:i}));var i;if("IDLE"===o.phase)return;"DROP_PENDING"===o.phase&&o.isWaiting&&ye(!1),"DRAGGING"!==o.phase&&"DROP_PENDING"!==o.phase&&ye(!1);const l=o.critical,s=o.dimensions,c=s.draggables[o.critical.draggable.id],{impact:u,didDropInsideDroppable:d}=(({draggables:e,reason:t,lastImpact:n,home:r,viewport:o,onLiftImpact:a})=>n.at&&"DROP"===t?"REORDER"===n.at.type?{impact:n,didDropInsideDroppable:!0}:{impact:{...n,displaced:Xe},didDropInsideDroppable:!0}:{impact:Ft({draggables:e,impact:a,destination:r,viewport:o,forceShouldAnimate:!0}),didDropInsideDroppable:!1})({reason:a,lastImpact:o.impact,afterCritical:o.afterCritical,onLiftImpact:o.onLiftImpact,home:o.dimensions.droppables[o.critical.droppable.id],viewport:o.viewport,draggables:o.dimensions.draggables}),p=d?Ve(u):null,f=d?qe(u):null,m={index:l.draggable.index,droppableId:l.droppable.id},g={draggableId:c.descriptor.id,type:c.descriptor.type,source:m,reason:a,mode:o.movementMode,destination:p,combine:f},h=(({impact:e,draggable:t,dimensions:n,viewport:r,afterCritical:o})=>{const{draggables:a,droppables:i}=n,l=Dt(e),s=l?i[l]:null,c=i[t.descriptor.droppableId],u=jt({impact:e,draggable:t,draggables:a,afterCritical:o,droppable:s||c,viewport:r});return De(u,t.client.borderBox.center)})({impact:u,draggable:c,dimensions:s,viewport:o.viewport,afterCritical:o.afterCritical}),b={critical:o.critical,afterCritical:o.afterCritical,result:g,impact:u};if(Ie(o.current.client.offset,h)&&!Boolean(g.combine))return void t(an({completed:b}));const v=(({current:e,destination:t,reason:n})=>{const r=Re(e,t);if(r<=0)return vn;if(r>=1500)return yn;const o=vn+wn*(r/1500);return Number(("CANCEL"===n?.6*o:o).toFixed(2))})({current:o.current.client.offset,destination:h,reason:a});t((e=>({type:"DROP_ANIMATE",payload:e}))({newHomeClientOffset:h,dropDuration:v,completed:b}))},xn=()=>({x:window.pageXOffset,y:window.pageYOffset});var Sn=e=>{const t=function({onWindowScroll:e}){const t=pe((function(){e(xn())})),n=function(e){return{eventName:"scroll",options:{passive:!0,capture:!1},fn:t=>{t.target!==window&&t.target!==window.document||e()}}}(t);let r=me;function o(){return r!==me}return{start:function(){o()&&ye(!1),r=ge(window,[n])},stop:function(){o()||ye(!1),t.cancel(),r(),r=me},isActive:o}}({onWindowScroll:t=>{e.dispatch({type:"MOVE_BY_WINDOW_SCROLL",payload:{newScroll:t}})}});return e=>n=>{t.isActive()||"INITIAL_PUBLISH"!==n.type||t.start(),t.isActive()&&(e=>"DROP_COMPLETE"===e.type||"DROP_ANIMATE"===e.type||"FLUSH"===e.type)(n)&&t.stop(),e(n)}};const kn=(e,t)=>{t()},Cn=(e,t)=>({draggableId:e.draggable.id,type:e.droppable.type,source:{droppableId:e.droppable.id,index:e.draggable.index},mode:t});function _n(e,t,n,r){if(!e)return void n(r(t));const o=(e=>{let t=!1,n=!1;const r=setTimeout((()=>{n=!0})),o=o=>{t||n||(t=!0,e(o),clearTimeout(r))};return o.wasCalled=()=>t,o})(n);e(t,{announce:o}),o.wasCalled()||n(r(t))}var On=(e,t)=>{const n=((e,t)=>{const n=(()=>{const e=[];return{add:t=>{const n=setTimeout((()=>(t=>{const n=e.findIndex((e=>e.timerId===t));-1===n&&ye(!1);const[r]=e.splice(n,1);r.callback()})(n))),r={timerId:n,callback:t};e.push(r)},flush:()=>{if(!e.length)return;const t=[...e];e.length=0,t.forEach((e=>{clearTimeout(e.timerId),e.callback()}))}}})();let r=null;const o=n=>{r||ye(!1),r=null,kn(0,(()=>_n(e().onDragEnd,n,t,_e.onDragEnd)))};return{beforeCapture:(t,n)=>{r&&ye(!1),kn(0,(()=>{const r=e().onBeforeCapture;r&&r({draggableId:t,mode:n})}))},beforeStart:(t,n)=>{r&&ye(!1),kn(0,(()=>{const r=e().onBeforeDragStart;r&&r(Cn(t,n))}))},start:(o,a)=>{r&&ye(!1);const i=Cn(o,a);r={mode:a,lastCritical:o,lastLocation:i.source,lastCombine:null},n.add((()=>{kn(0,(()=>_n(e().onDragStart,i,t,_e.onDragStart)))}))},update:(o,a)=>{const i=Ve(a),l=qe(a);r||ye(!1);const s=!((e,t)=>{if(e===t)return!0;const n=e.draggable.id===t.draggable.id&&e.draggable.droppableId===t.draggable.droppableId&&e.draggable.type===t.draggable.type&&e.draggable.index===t.draggable.index,r=e.droppable.id===t.droppable.id&&e.droppable.type===t.droppable.type;return n&&r})(o,r.lastCritical);s&&(r.lastCritical=o);const c=(d=i,!(null==(u=r.lastLocation)&&null==d||null!=u&&null!=d&&u.droppableId===d.droppableId&&u.index===d.index));var u,d;c&&(r.lastLocation=i);const p=!((e,t)=>null==e&&null==t||null!=e&&null!=t&&e.draggableId===t.draggableId&&e.droppableId===t.droppableId)(r.lastCombine,l);if(p&&(r.lastCombine=l),!s&&!c&&!p)return;const f={...Cn(o,r.mode),combine:l,destination:i};n.add((()=>{kn(0,(()=>_n(e().onDragUpdate,f,t,_e.onDragUpdate)))}))},flush:()=>{r||ye(!1),n.flush()},drop:o,abort:()=>{if(!r)return;const e={...Cn(r.lastCritical,r.mode),combine:null,destination:null,reason:"CANCEL"};o(e)}}})(e,t);return e=>t=>r=>{if("BEFORE_INITIAL_CAPTURE"===r.type)return void n.beforeCapture(r.payload.draggableId,r.payload.movementMode);if("INITIAL_PUBLISH"===r.type){const e=r.payload.critical;return n.beforeStart(e,r.payload.movementMode),t(r),void n.start(e,r.payload.movementMode)}if("DROP_COMPLETE"===r.type){const e=r.payload.completed.result;return n.flush(),t(r),void n.drop(e)}if(t(r),"FLUSH"===r.type)return void n.abort();const o=e.getState();"DRAGGING"===o.phase&&n.update(o.critical,o.impact)}},Nn=e=>t=>n=>{if("DROP_ANIMATION_FINISHED"!==n.type)return void t(n);const r=e.getState();"DROP_ANIMATING"!==r.phase&&ye(!1),e.dispatch(an({completed:r.completed}))},Dn=e=>{let t=null,n=null;return r=>o=>{if("FLUSH"!==o.type&&"DROP_COMPLETE"!==o.type&&"DROP_ANIMATION_FINISHED"!==o.type||(n&&(cancelAnimationFrame(n),n=null),t&&(t(),t=null)),r(o),"DROP_ANIMATE"!==o.type)return;const a={eventName:"scroll",options:{capture:!0,passive:!1,once:!0},fn:function(){"DROP_ANIMATING"===e.getState().phase&&e.dispatch({type:"DROP_ANIMATION_FINISHED",payload:null})}};n=requestAnimationFrame((()=>{n=null,t=ge(window,[a])}))}},In=e=>t=>n=>{if(t(n),"PUBLISH_WHILE_DRAGGING"!==n.type)return;const r=e.getState();"DROP_PENDING"===r.phase&&(r.isWaiting||e.dispatch(ln({reason:r.reason})))};const Pn=g;var Tn=({dimensionMarshal:e,focusMarshal:t,styleMarshal:n,getResponders:r,announce:o,autoScroller:a})=>{return p(Vt,Pn(function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){return function(){var n=e.apply(void 0,arguments),r=function(){throw new Error(s(15))},o={getState:n.getState,dispatch:function(){return r.apply(void 0,arguments)}},a=t.map((function(e){return e(o)}));return r=g.apply(void 0,a)(n.dispatch),l(l({},n),{},{dispatch:r})}}}((i=n,()=>e=>t=>{"INITIAL_PUBLISH"===t.type&&i.dragging(),"DROP_ANIMATE"===t.type&&i.dropping(t.payload.completed.result.reason),"FLUSH"!==t.type&&"DROP_COMPLETE"!==t.type||i.resting(),e(t)}),(e=>()=>t=>n=>{"DROP_COMPLETE"!==n.type&&"FLUSH"!==n.type&&"DROP_ANIMATE"!==n.type||e.stopPublishing(),t(n)})(e),(e=>({getState:t,dispatch:n})=>r=>o=>{if("LIFT"!==o.type)return void r(o);const{id:a,clientSelection:i,movementMode:l}=o.payload,s=t();"DROP_ANIMATING"===s.phase&&n(an({completed:s.completed})),"IDLE"!==t().phase&&ye(!1),n(on()),n({type:"BEFORE_INITIAL_CAPTURE",payload:{draggableId:a,movementMode:l}});const c={draggableId:a,scrollOptions:{shouldPublishImmediately:"SNAP"===l}},{critical:u,dimensions:d,viewport:p}=e.startPublishing(c);n({type:"INITIAL_PUBLISH",payload:{critical:u,dimensions:d,clientSelection:i,movementMode:l,viewport:p}})})(e),En,Nn,Dn,In,(e=>t=>n=>r=>{if((e=>"DROP_COMPLETE"===e.type||"DROP_ANIMATE"===e.type||"FLUSH"===e.type)(r))return e.stop(),void n(r);if("INITIAL_PUBLISH"===r.type){n(r);const o=t.getState();return"DRAGGING"!==o.phase&&ye(!1),void e.start(o)}n(r),e.scroll(t.getState())})(a),Sn,(e=>{let t=!1;return()=>n=>r=>{if("INITIAL_PUBLISH"===r.type)return t=!0,e.tryRecordFocus(r.payload.critical.draggable.id),n(r),void e.tryRestoreFocusRecorded();if(n(r),t){if("FLUSH"===r.type)return t=!1,void e.tryRestoreFocusRecorded();if("DROP_COMPLETE"===r.type){t=!1;const n=r.payload.completed.result;n.combine&&e.tryShiftRecord(n.draggableId,n.combine.draggableId),e.tryRestoreFocusRecorded()}}}})(t),On(r,o))));var i},Rn=({scrollHeight:e,scrollWidth:t,height:n,width:r})=>{const o=De({x:t,y:e},{x:r,y:n});return{x:Math.max(0,o.x),y:Math.max(0,o.y)}},An=()=>{const e=document.documentElement;return e||ye(!1),e},Ln=()=>{const e=An();return Rn({scrollHeight:e.scrollHeight,scrollWidth:e.scrollWidth,width:e.clientWidth,height:e.clientHeight})};function Mn(e,t,n){return n.descriptor.id!==t.id&&(n.descriptor.type===t.type&&"virtual"===e.droppable.getById(n.descriptor.droppableId).descriptor.mode)}var Bn=(e,t)=>{let n=null;const r=function({registry:e,callbacks:t}){let n={additions:{},removals:{},modified:{}},r=null;const o=()=>{r||(t.collectionStarting(),r=requestAnimationFrame((()=>{r=null;const{additions:o,removals:a,modified:i}=n,l=Object.keys(o).map((t=>e.draggable.getById(t).getDimension(Oe))).sort(((e,t)=>e.descriptor.index-t.descriptor.index)),s=Object.keys(i).map((t=>({droppableId:t,scroll:e.droppable.getById(t).callbacks.getScrollWhileDragging()}))),c={additions:l,removals:Object.keys(a),modified:s};n={additions:{},removals:{},modified:{}},t.publish(c)})))};return{add:e=>{const t=e.descriptor.id;n.additions[t]=e,n.modified[e.descriptor.droppableId]=!0,n.removals[t]&&delete n.removals[t],o()},remove:e=>{const t=e.descriptor;n.removals[t.id]=!0,n.modified[t.droppableId]=!0,n.additions[t.id]&&delete n.additions[t.id],o()},stop:()=>{r&&(cancelAnimationFrame(r),r=null,n={additions:{},removals:{},modified:{}})}}}({callbacks:{publish:t.publishWhileDragging,collectionStarting:t.collectionStarting},registry:e}),o=t=>{n||ye(!1);const o=n.critical.draggable;"ADDITION"===t.type&&Mn(e,o,t.value)&&r.add(t.value),"REMOVAL"===t.type&&Mn(e,o,t.value)&&r.remove(t.value)},a={updateDroppableIsEnabled:(r,o)=>{e.droppable.exists(r)||ye(!1),n&&t.updateDroppableIsEnabled({id:r,isEnabled:o})},updateDroppableIsCombineEnabled:(r,o)=>{n&&(e.droppable.exists(r)||ye(!1),t.updateDroppableIsCombineEnabled({id:r,isCombineEnabled:o}))},scrollDroppable:(t,r)=>{n&&e.droppable.getById(t).callbacks.scroll(r)},updateDroppableScroll:(r,o)=>{n&&(e.droppable.exists(r)||ye(!1),t.updateDroppableScroll({id:r,newScroll:o}))},startPublishing:t=>{n&&ye(!1);const r=e.draggable.getById(t.draggableId),a=e.droppable.getById(r.descriptor.droppableId),i={draggable:r.descriptor,droppable:a.descriptor},l=e.subscribe(o);return n={critical:i,unsubscribe:l},(({critical:e,scrollOptions:t,registry:n})=>{const r=(()=>{const e=xn(),t=Ln(),n=e.y,r=e.x,o=An(),a=o.clientWidth,i=o.clientHeight;return{frame:Z({top:n,left:r,right:r+a,bottom:n+i}),scroll:{initial:e,current:e,max:t,diff:{value:Oe,displacement:Oe}}}})(),o=r.scroll.current,a=e.droppable,i=n.droppable.getAllByType(a.type).map((e=>e.callbacks.getDimensionAndWatchScroll(o,t))),l=n.draggable.getAllByType(e.draggable.type).map((e=>e.getDimension(o)));return{dimensions:{draggables:We(l),droppables:Ue(i)},critical:e,viewport:r}})({critical:i,registry:e,scrollOptions:t.scrollOptions})},stopPublishing:()=>{if(!n)return;r.stop();const t=n.critical.droppable;e.droppable.getAllByType(t.type).forEach((e=>e.callbacks.dragStopped())),n.unsubscribe(),n=null}};return a},Fn=(e,t)=>"IDLE"===e.phase||"DROP_ANIMATING"===e.phase&&e.completed.result.draggableId!==t&&"DROP"===e.completed.result.reason,jn=e=>{window.scrollBy(e.x,e.y)};const zn=de((e=>$e(e).filter((e=>!!e.isEnabled&&!!e.frame))));const Un={startFromPercentage:.25,maxScrollAtPercentage:.05,maxPixelScroll:28,ease:e=>e**2,durationDampening:{stopDampeningAt:1200,accelerateAt:360},disabled:!1};var Wn=({startOfRange:e,endOfRange:t,current:n})=>{const r=t-e;return 0===r?0:(n-e)/r},$n=({distanceToEdge:e,thresholds:t,dragStartTime:n,shouldUseTimeDampening:r,getAutoScrollerOptions:o})=>{const a=((e,t,n=(()=>Un))=>{const r=n();if(e>t.startScrollingFrom)return 0;if(e<=t.maxScrollValueAt)return r.maxPixelScroll;if(e===t.startScrollingFrom)return 1;const o=1-Wn({startOfRange:t.maxScrollValueAt,endOfRange:t.startScrollingFrom,current:e}),a=r.maxPixelScroll*r.ease(o);return Math.ceil(a)})(e,t,o);return 0===a?0:r?Math.max(((e,t,n)=>{const r=n(),o=r.durationDampening.accelerateAt,a=r.durationDampening.stopDampeningAt,i=t,l=a,s=Date.now()-i;if(s>=a)return e;if(s<o)return 1;const c=Wn({startOfRange:o,endOfRange:l,current:s}),u=e*r.ease(c);return Math.ceil(u)})(a,n,o),1):a},Hn=({container:e,distanceToEdges:t,dragStartTime:n,axis:r,shouldUseTimeDampening:o,getAutoScrollerOptions:a})=>{const i=((e,t,n=(()=>Un))=>{const r=n();return{startScrollingFrom:e[t.size]*r.startFromPercentage,maxScrollValueAt:e[t.size]*r.maxScrollAtPercentage}})(e,r,a);return t[r.end]<t[r.start]?$n({distanceToEdge:t[r.end],thresholds:i,dragStartTime:n,shouldUseTimeDampening:o,getAutoScrollerOptions:a}):-1*$n({distanceToEdge:t[r.start],thresholds:i,dragStartTime:n,shouldUseTimeDampening:o,getAutoScrollerOptions:a})};const Gn=Le((e=>0===e?0:e));var Vn=({dragStartTime:e,container:t,subject:n,center:r,shouldUseTimeDampening:o,getAutoScrollerOptions:a})=>{const i={top:r.y-t.top,right:t.right-r.x,bottom:t.bottom-r.y,left:r.x-t.left},l=Hn({container:t,distanceToEdges:i,dragStartTime:e,axis:nt,shouldUseTimeDampening:o,getAutoScrollerOptions:a}),s=Hn({container:t,distanceToEdges:i,dragStartTime:e,axis:rt,shouldUseTimeDampening:o,getAutoScrollerOptions:a}),c=Gn({x:s,y:l});if(Ie(c,Oe))return null;const u=(({container:e,subject:t,proposedScroll:n})=>{const r=t.height>e.height,o=t.width>e.width;return o||r?o&&r?null:{x:o?0:n.x,y:r?0:n.y}:n})({container:t,subject:n,proposedScroll:c});return u?Ie(u,Oe)?null:u:null};const qn=Le((e=>0===e?0:e>0?1:-1)),Kn=(()=>{const e=(e,t)=>e<0?e:e>t?e-t:0;return({current:t,max:n,change:r})=>{const o=Ne(t,r),a={x:e(o.x,n.x),y:e(o.y,n.y)};return Ie(a,Oe)?null:a}})(),Qn=({max:e,current:t,change:n})=>{const r={x:Math.max(t.x,e.x),y:Math.max(t.y,e.y)},o=qn(n),a=Kn({max:r,current:t,change:o});return!a||0!==o.x&&0===a.x||0!==o.y&&0===a.y},Yn=(e,t)=>Qn({current:e.scroll.current,max:e.scroll.max,change:t}),Xn=(e,t)=>{const n=e.frame;return!!n&&Qn({current:n.scroll.current,max:n.scroll.max,change:t})};var Jn=({state:e,dragStartTime:t,shouldUseTimeDampening:n,scrollWindow:r,scrollDroppable:o,getAutoScrollerOptions:a})=>{const i=e.current.page.borderBoxCenter,l=e.dimensions.draggables[e.critical.draggable.id].page.marginBox;if(e.isWindowScrollAllowed){const o=(({viewport:e,subject:t,center:n,dragStartTime:r,shouldUseTimeDampening:o,getAutoScrollerOptions:a})=>{const i=Vn({dragStartTime:r,container:e.frame,subject:t,center:n,shouldUseTimeDampening:o,getAutoScrollerOptions:a});return i&&Yn(e,i)?i:null})({dragStartTime:t,viewport:e.viewport,subject:l,center:i,shouldUseTimeDampening:n,getAutoScrollerOptions:a});if(o)return void r(o)}const s=(({center:e,destination:t,droppables:n})=>{if(t){const e=n[t];return e.frame?e:null}const r=((e,t)=>{const n=zn(t).find((t=>(t.frame||ye(!1),Tt(t.frame.pageMarginBox)(e))))||null;return n})(e,n);return r})({center:i,destination:Dt(e.impact),droppables:e.dimensions.droppables});if(!s)return;const c=(({droppable:e,subject:t,center:n,dragStartTime:r,shouldUseTimeDampening:o,getAutoScrollerOptions:a})=>{const i=e.frame;if(!i)return null;const l=Vn({dragStartTime:r,container:i.pageMarginBox,subject:t,center:n,shouldUseTimeDampening:o,getAutoScrollerOptions:a});return l&&Xn(e,l)?l:null})({dragStartTime:t,droppable:s,subject:l,center:i,shouldUseTimeDampening:n,getAutoScrollerOptions:a});c&&o(s.descriptor.id,c)},Zn=({move:e,scrollDroppable:t,scrollWindow:n})=>r=>{const o=r.scrollJumpRequest;if(!o)return;const a=Dt(r.impact);a||ye(!1);const i=((e,n)=>{if(!Xn(e,n))return n;const r=((e,t)=>{const n=e.frame;return n&&Xn(e,t)?Kn({current:n.scroll.current,max:n.scroll.max,change:t}):null})(e,n);if(!r)return t(e.descriptor.id,n),null;const o=De(n,r);return t(e.descriptor.id,o),De(n,o)})(r.dimensions.droppables[a],o);if(!i)return;const l=r.viewport,s=((e,t,r)=>{if(!e)return r;if(!Yn(t,r))return r;const o=((e,t)=>{if(!Yn(e,t))return null;const n=e.scroll.max,r=e.scroll.current;return Kn({current:r,max:n,change:t})})(t,r);if(!o)return n(r),null;const a=De(r,o);return n(a),De(r,a)})(r.isWindowScrollAllowed,l,i);s&&((t,n)=>{const r=Ne(t.current.client.selection,n);e({client:r})})(r,s)},er=({scrollDroppable:e,scrollWindow:t,move:n,getAutoScrollerOptions:r})=>{const o=(({scrollWindow:e,scrollDroppable:t,getAutoScrollerOptions:n=(()=>Un)})=>{const r=pe(e),o=pe(t);let a=null;const i=e=>{a||ye(!1);const{shouldUseTimeDampening:t,dragStartTime:i}=a;Jn({state:e,scrollWindow:r,scrollDroppable:o,dragStartTime:i,shouldUseTimeDampening:t,getAutoScrollerOptions:n})};return{start:e=>{a&&ye(!1);const t=Date.now();let r=!1;const o=()=>{r=!0};Jn({state:e,dragStartTime:0,shouldUseTimeDampening:!1,scrollWindow:o,scrollDroppable:o,getAutoScrollerOptions:n}),a={dragStartTime:t,shouldUseTimeDampening:r},r&&i(e)},stop:()=>{a&&(r.cancel(),o.cancel(),a=null)},scroll:i}})({scrollWindow:t,scrollDroppable:e,getAutoScrollerOptions:r}),a=Zn({move:n,scrollWindow:t,scrollDroppable:e});return{scroll:e=>{r().disabled||"DRAGGING"!==e.phase||("FLUID"!==e.movementMode?e.scrollJumpRequest&&a(e):o.scroll(e))},start:o.start,stop:o.stop}};const tr="data-rfd",nr=(()=>{const e=`${tr}-drag-handle`;return{base:e,draggableId:`${e}-draggable-id`,contextId:`${e}-context-id`}})(),rr=(()=>{const e=`${tr}-draggable`;return{base:e,contextId:`${e}-context-id`,id:`${e}-id`}})(),or=(()=>{const e=`${tr}-droppable`;return{base:e,contextId:`${e}-context-id`,id:`${e}-id`}})(),ar={contextId:`${tr}-scroll-container-context-id`},ir=(e,t)=>e.map((e=>{const n=e.styles[t];return n?`${e.selector} { ${n} }`:""})).join(" ");var lr=e=>{const t=(e=>t=>`[${t}="${e}"]`)(e),n=(()=>{const e="\n cursor: -webkit-grab;\n cursor: grab;\n ";return{selector:t(nr.contextId),styles:{always:"\n -webkit-touch-callout: none;\n -webkit-tap-highlight-color: rgba(0,0,0,0);\n touch-action: manipulation;\n ",resting:e,dragging:"pointer-events: none;",dropAnimating:e}}})(),r=[(()=>{const e=`\n transition: ${mn.outOfTheWay};\n `;return{selector:t(rr.contextId),styles:{dragging:e,dropAnimating:e,userCancel:e}}})(),n,{selector:t(or.contextId),styles:{always:"overflow-anchor: none;"}},{selector:"body",styles:{dragging:"\n cursor: grabbing;\n cursor: -webkit-grabbing;\n user-select: none;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n overflow-anchor: none;\n "}}];return{always:ir(r,"always"),resting:ir(r,"resting"),dragging:ir(r,"dragging"),dropAnimating:ir(r,"dropAnimating"),userCancel:ir(r,"userCancel")}},sr="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?e.useLayoutEffect:e.useEffect;const cr=()=>{const e=document.querySelector("head");return e||ye(!1),e},ur=e=>{const t=document.createElement("style");return e&&t.setAttribute("nonce",e),t.type="text/css",t};function dr(e,t){return Array.from(e.querySelectorAll(t))}var pr=e=>e&&e.ownerDocument&&e.ownerDocument.defaultView?e.ownerDocument.defaultView:window;function fr(e){return e instanceof pr(e).HTMLElement}function mr(){const e={draggables:{},droppables:{}},t=[];function n(e){t.length&&t.forEach((t=>t(e)))}function r(t){return e.draggables[t]||null}function o(t){return e.droppables[t]||null}return{draggable:{register:t=>{e.draggables[t.descriptor.id]=t,n({type:"ADDITION",value:t})},update:(t,n)=>{const r=e.draggables[n.descriptor.id];r&&r.uniqueId===t.uniqueId&&(delete e.draggables[n.descriptor.id],e.draggables[t.descriptor.id]=t)},unregister:t=>{const o=t.descriptor.id,a=r(o);a&&t.uniqueId===a.uniqueId&&(delete e.draggables[o],e.droppables[t.descriptor.droppableId]&&n({type:"REMOVAL",value:t}))},getById:function(e){const t=r(e);return t||ye(!1),t},findById:r,exists:e=>Boolean(r(e)),getAllByType:t=>Object.values(e.draggables).filter((e=>e.descriptor.type===t))},droppable:{register:t=>{e.droppables[t.descriptor.id]=t},unregister:t=>{const n=o(t.descriptor.id);n&&t.uniqueId===n.uniqueId&&delete e.droppables[t.descriptor.id]},getById:function(e){const t=o(e);return t||ye(!1),t},findById:o,exists:e=>Boolean(o(e)),getAllByType:t=>Object.values(e.droppables).filter((e=>e.descriptor.type===t))},subscribe:function(e){return t.push(e),function(){const n=t.indexOf(e);-1!==n&&t.splice(n,1)}},clean:function(){e.draggables={},e.droppables={},t.length=0}}}var gr=e.createContext(null),hr=()=>{const e=document.body;return e||ye(!1),e},br={position:"absolute",width:"1px",height:"1px",margin:"-1px",border:"0",padding:"0",overflow:"hidden",clip:"rect(0 0 0 0)","clip-path":"inset(100%)"};const vr=e=>`rfd-announcement-${e}`,yr={separator:"::"};var wr=function(t,n=yr){const r=e.useId();return X((()=>`${t}${n.separator}${r}`),[n.separator,t,r])},Er=e.createContext(null);function xr(t){const n=(0,e.useRef)(t);return(0,e.useEffect)((()=>{n.current=t})),n}function Sr(e){return"IDLE"!==e.phase&&"DROP_ANIMATING"!==e.phase&&e.isDragging}const kr={13:!0,9:!0};var Cr=e=>{kr[e.keyCode]&&e.preventDefault()},_r=(()=>{const e="visibilitychange";return"undefined"==typeof document?e:[e,`ms${e}`,`webkit${e}`,`moz${e}`,`o${e}`].find((e=>`on${e}`in document))||e})();const Or={type:"IDLE"};function Nr(){}const Dr={34:!0,33:!0,36:!0,35:!0};const Ir={type:"IDLE"},Pr=["input","button","textarea","select","option","optgroup","video","audio"];function Tr(e,t){if(null==t)return!1;if(Pr.includes(t.tagName.toLowerCase()))return!0;const n=t.getAttribute("contenteditable");return"true"===n||""===n||t!==e&&Tr(e,t.parentElement)}function Rr(e,t){const n=t.target;return!!fr(n)&&Tr(e,n)}var Ar=e=>Z(e.getBoundingClientRect()).center;const Lr=(()=>{const e="matches";return"undefined"==typeof document?e:[e,"msMatchesSelector","webkitMatchesSelector"].find((e=>e in Element.prototype))||e})();function Mr(e,t){return null==e?null:e[Lr](t)?e:Mr(e.parentElement,t)}function Br(e,t){return e.closest?e.closest(t):Mr(e,t)}function Fr(e){e.preventDefault()}function jr({expected:e,phase:t,isLockActive:n,shouldWarn:r}){return!!n()&&e===t}function zr({lockAPI:e,store:t,registry:n,draggableId:r}){if(e.isClaimed())return!1;const o=n.draggable.findById(r);return!!o&&!!o.options.isEnabled&&!!Fn(t.getState(),r)}const Ur=[function(t){const n=(0,e.useRef)(Or),r=(0,e.useRef)(me),o=X((()=>({eventName:"mousedown",fn:function(e){if(e.defaultPrevented)return;if(0!==e.button)return;if(e.ctrlKey||e.metaKey||e.shiftKey||e.altKey)return;const n=t.findClosestDraggableId(e);if(!n)return;const o=t.tryGetLock(n,l,{sourceEvent:e});if(!o)return;e.preventDefault();const a={x:e.clientX,y:e.clientY};r.current(),u(o,a)}})),[t]),a=X((()=>({eventName:"webkitmouseforcewillbegin",fn:e=>{if(e.defaultPrevented)return;const n=t.findClosestDraggableId(e);if(!n)return;const r=t.findOptionsForDraggable(n);r&&(r.shouldRespectForcePress||t.canGetLock(n)&&e.preventDefault())}})),[t]),i=J((function(){r.current=ge(window,[a,o],{passive:!1,capture:!0})}),[a,o]),l=J((()=>{"IDLE"!==n.current.type&&(n.current=Or,r.current(),i())}),[i]),s=J((()=>{const e=n.current;l(),"DRAGGING"===e.type&&e.actions.cancel({shouldBlockNextClick:!0}),"PENDING"===e.type&&e.actions.abort()}),[l]),c=J((function(){const e=function({cancel:e,completed:t,getPhase:n,setPhase:r}){return[{eventName:"mousemove",fn:e=>{const{button:t,clientX:o,clientY:a}=e;if(0!==t)return;const i={x:o,y:a},l=n();if("DRAGGING"===l.type)return e.preventDefault(),void l.actions.move(i);if("PENDING"!==l.type&&ye(!1),s=l.point,c=i,!(Math.abs(c.x-s.x)>=5||Math.abs(c.y-s.y)>=5))return;var s,c;e.preventDefault();const u=l.actions.fluidLift(i);r({type:"DRAGGING",actions:u})}},{eventName:"mouseup",fn:r=>{const o=n();"DRAGGING"===o.type?(r.preventDefault(),o.actions.drop({shouldBlockNextClick:!0}),t()):e()}},{eventName:"mousedown",fn:t=>{"DRAGGING"===n().type&&t.preventDefault(),e()}},{eventName:"keydown",fn:t=>{if("PENDING"!==n().type)return 27===t.keyCode?(t.preventDefault(),void e()):void Cr(t);e()}},{eventName:"resize",fn:e},{eventName:"scroll",options:{passive:!0,capture:!1},fn:()=>{"PENDING"===n().type&&e()}},{eventName:"webkitmouseforcedown",fn:t=>{const r=n();"IDLE"===r.type&&ye(!1),r.actions.shouldRespectForcePress()?e():t.preventDefault()}},{eventName:_r,fn:e}]}({cancel:s,completed:l,getPhase:()=>n.current,setPhase:e=>{n.current=e}});r.current=ge(window,e,{capture:!0,passive:!1})}),[s,l]),u=J((function(e,t){"IDLE"!==n.current.type&&ye(!1),n.current={type:"PENDING",point:t,actions:e},c()}),[c]);sr((function(){return i(),function(){r.current()}}),[i])},function(t){const n=(0,e.useRef)(Nr),r=X((()=>({eventName:"keydown",fn:function(e){if(e.defaultPrevented)return;if(32!==e.keyCode)return;const r=t.findClosestDraggableId(e);if(!r)return;const a=t.tryGetLock(r,s,{sourceEvent:e});if(!a)return;e.preventDefault();let i=!0;const l=a.snapLift();function s(){i||ye(!1),i=!1,n.current(),o()}n.current(),n.current=ge(window,function(e,t){function n(){t(),e.cancel()}return[{eventName:"keydown",fn:r=>27===r.keyCode?(r.preventDefault(),void n()):32===r.keyCode?(r.preventDefault(),t(),void e.drop()):40===r.keyCode?(r.preventDefault(),void e.moveDown()):38===r.keyCode?(r.preventDefault(),void e.moveUp()):39===r.keyCode?(r.preventDefault(),void e.moveRight()):37===r.keyCode?(r.preventDefault(),void e.moveLeft()):void(Dr[r.keyCode]?r.preventDefault():Cr(r))},{eventName:"mousedown",fn:n},{eventName:"mouseup",fn:n},{eventName:"click",fn:n},{eventName:"touchstart",fn:n},{eventName:"resize",fn:n},{eventName:"wheel",fn:n,options:{passive:!0}},{eventName:_r,fn:n}]}(l,s),{capture:!0,passive:!1})}})),[t]),o=J((function(){n.current=ge(window,[r],{passive:!1,capture:!0})}),[r]);sr((function(){return o(),function(){n.current()}}),[o])},function(t){const n=(0,e.useRef)(Ir),r=(0,e.useRef)(me),o=J((function(){return n.current}),[]),a=J((function(e){n.current=e}),[]),i=X((()=>({eventName:"touchstart",fn:function(e){if(e.defaultPrevented)return;const n=t.findClosestDraggableId(e);if(!n)return;const o=t.tryGetLock(n,s,{sourceEvent:e});if(!o)return;const a=e.touches[0],{clientX:i,clientY:l}=a,c={x:i,y:l};r.current(),p(o,c)}})),[t]),l=J((function(){r.current=ge(window,[i],{capture:!0,passive:!1})}),[i]),s=J((()=>{const e=n.current;"IDLE"!==e.type&&("PENDING"===e.type&&clearTimeout(e.longPressTimerId),a(Ir),r.current(),l())}),[l,a]),c=J((()=>{const e=n.current;s(),"DRAGGING"===e.type&&e.actions.cancel({shouldBlockNextClick:!0}),"PENDING"===e.type&&e.actions.abort()}),[s]),u=J((function(){const e={capture:!0,passive:!1},t={cancel:c,completed:s,getPhase:o},n=ge(window,function({cancel:e,completed:t,getPhase:n}){return[{eventName:"touchmove",options:{capture:!1},fn:t=>{const r=n();if("DRAGGING"!==r.type)return void e();r.hasMoved=!0;const{clientX:o,clientY:a}=t.touches[0],i={x:o,y:a};t.preventDefault(),r.actions.move(i)}},{eventName:"touchend",fn:r=>{const o=n();"DRAGGING"===o.type?(r.preventDefault(),o.actions.drop({shouldBlockNextClick:!0}),t()):e()}},{eventName:"touchcancel",fn:t=>{"DRAGGING"===n().type?(t.preventDefault(),e()):e()}},{eventName:"touchforcechange",fn:t=>{const r=n();"IDLE"===r.type&&ye(!1);const o=t.touches[0];if(!o)return;if(!(o.force>=.15))return;const a=r.actions.shouldRespectForcePress();if("PENDING"!==r.type)return a?r.hasMoved?void t.preventDefault():void e():void t.preventDefault();a&&e()}},{eventName:_r,fn:e}]}(t),e),a=ge(window,function({cancel:e,getPhase:t}){return[{eventName:"orientationchange",fn:e},{eventName:"resize",fn:e},{eventName:"contextmenu",fn:e=>{e.preventDefault()}},{eventName:"keydown",fn:n=>{"DRAGGING"===t().type?(27===n.keyCode&&n.preventDefault(),e()):e()}},{eventName:_r,fn:e}]}(t),e);r.current=function(){n(),a()}}),[c,o,s]),d=J((function(){const e=o();"PENDING"!==e.type&&ye(!1);const t=e.actions.fluidLift(e.point);a({type:"DRAGGING",actions:t,hasMoved:!1})}),[o,a]),p=J((function(e,t){"IDLE"!==o().type&&ye(!1);const n=setTimeout(d,120);a({type:"PENDING",point:t,actions:e,longPressTimerId:n}),u()}),[u,o,a,d]);sr((function(){return l(),function(){r.current();const e=o();"PENDING"===e.type&&(clearTimeout(e.longPressTimerId),a(Ir))}}),[o,l,a]),sr((function(){return ge(window,[{eventName:"touchmove",fn:()=>{},options:{capture:!1,passive:!1}}])}),[])}];function Wr({contextId:t,store:n,registry:r,customSensors:o,enableDefaultSensors:a}){const i=[...a?Ur:[],...o||[]],l=(0,e.useState)((()=>function(){let e=null;function t(){e||ye(!1),e=null}return{isClaimed:function(){return Boolean(e)},isActive:function(t){return t===e},claim:function(t){e&&ye(!1);const n={abandon:t};return e=n,n},release:t,tryAbandon:function(){e&&(e.abandon(),t())}}}()))[0],s=J((function(e,t){Sr(e)&&!Sr(t)&&l.tryAbandon()}),[l]);sr((function(){let e=n.getState();return n.subscribe((()=>{const t=n.getState();s(e,t),e=t}))}),[l,n,s]),sr((()=>l.tryAbandon),[l.tryAbandon]);const c=J((e=>zr({lockAPI:l,registry:r,store:n,draggableId:e})),[l,r,n]),u=J(((e,o,a)=>function({lockAPI:e,contextId:t,store:n,registry:r,draggableId:o,forceSensorStop:a,sourceEvent:i}){if(!zr({lockAPI:e,store:n,registry:r,draggableId:o}))return null;const l=r.draggable.getById(o),s=function(e,t){const n=`[${rr.contextId}="${e}"]`,r=dr(document,n).find((e=>e.getAttribute(rr.id)===t));return r&&fr(r)?r:null}(t,l.descriptor.id);if(!s)return null;if(i&&!l.options.canDragInteractiveElements&&Rr(s,i))return null;const c=e.claim(a||me);let u="PRE_DRAG";function d(){return l.options.shouldRespectForcePress}function p(){return e.isActive(c)}const f=function(e,t){jr({expected:e,phase:u,isLockActive:p,shouldWarn:!0})&&n.dispatch(t())}.bind(null,"DRAGGING");function m(t){function r(){e.release(),u="COMPLETED"}function o(e,o={shouldBlockNextClick:!1}){if(t.cleanup(),o.shouldBlockNextClick){const e=ge(window,[{eventName:"click",fn:Fr,options:{once:!0,passive:!1,capture:!0}}]);setTimeout(e)}r(),n.dispatch(ln({reason:e}))}return"PRE_DRAG"!==u&&(r(),ye(!1)),n.dispatch(qt(t.liftActionArgs)),u="DRAGGING",{isActive:()=>jr({expected:"DRAGGING",phase:u,isLockActive:p,shouldWarn:!1}),shouldRespectForcePress:d,drop:e=>o("DROP",e),cancel:e=>o("CANCEL",e),...t.actions}}const g={isActive:()=>jr({expected:"PRE_DRAG",phase:u,isLockActive:p,shouldWarn:!1}),shouldRespectForcePress:d,fluidLift:function(e){const t=pe((e=>{f((()=>Zt({client:e})))}));return{...m({liftActionArgs:{id:o,clientSelection:e,movementMode:"FLUID"},cleanup:()=>t.cancel(),actions:{move:t}}),move:t}},snapLift:function(){const e={moveUp:()=>f(en),moveRight:()=>f(nn),moveDown:()=>f(tn),moveLeft:()=>f(rn)};return m({liftActionArgs:{id:o,clientSelection:Ar(s),movementMode:"SNAP"},cleanup:me,actions:e})},abort:function(){jr({expected:"PRE_DRAG",phase:u,isLockActive:p,shouldWarn:!0})&&e.release()}};return g}({lockAPI:l,registry:r,contextId:t,store:n,draggableId:e,forceSensorStop:o||null,sourceEvent:a&&a.sourceEvent?a.sourceEvent:null})),[t,l,r,n]),d=J((e=>function(e,t){const n=function(e,t){const n=t.target;if(!((r=n)instanceof pr(r).Element))return null;var r;const o=function(e){return`[${nr.contextId}="${e}"]`}(e),a=Br(n,o);return a&&fr(a)?a:null}(e,t);return n?n.getAttribute(nr.draggableId):null}(t,e)),[t]),p=J((e=>{const t=r.draggable.findById(e);return t?t.options:null}),[r.draggable]),f=J((function(){l.isClaimed()&&(l.tryAbandon(),"IDLE"!==n.getState().phase&&n.dispatch(on()))}),[l,n]),m=J((()=>l.isClaimed()),[l]),g=X((()=>({canGetLock:c,tryGetLock:u,findClosestDraggableId:d,findOptionsForDraggable:p,tryReleaseLock:f,isLockClaimed:m})),[c,u,d,p,f,m]);for(let e=0;e<i.length;e++)i[e](g)}const $r=t=>({onBeforeCapture:n=>{const o=()=>{t.onBeforeCapture&&t.onBeforeCapture(n)};e.version.startsWith("16")||e.version.startsWith("17")?o():(0,r.flushSync)(o)},onBeforeDragStart:t.onBeforeDragStart,onDragStart:t.onDragStart,onDragEnd:t.onDragEnd,onDragUpdate:t.onDragUpdate}),Hr=e=>({...Un,...e.autoScrollerOptions,durationDampening:{...Un.durationDampening,...e.autoScrollerOptions}});function Gr(e){return e.current||ye(!1),e.current}function Vr(t){const{contextId:n,setCallbacks:r,sensors:o,nonce:a,dragHandleUsageInstructions:i}=t,l=(0,e.useRef)(null),s=xr(t),c=J((()=>$r(s.current)),[s]),u=J((()=>Hr(s.current)),[s]),d=function(t){const n=X((()=>vr(t)),[t]),r=(0,e.useRef)(null);return(0,e.useEffect)((function(){const e=document.createElement("div");return r.current=e,e.id=n,e.setAttribute("aria-live","assertive"),e.setAttribute("aria-atomic","true"),C(e.style,br),hr().appendChild(e),function(){setTimeout((function(){const t=hr();t.contains(e)&&t.removeChild(e),e===r.current&&(r.current=null)}))}}),[n]),J((e=>{const t=r.current;t&&(t.textContent=e)}),[])}(n),p=function({contextId:t,text:n}){const r=wr("hidden-text",{separator:"-"}),o=X((()=>function({contextId:e,uniqueId:t}){return`rfd-hidden-text-${e}-${t}`}({contextId:t,uniqueId:r})),[r,t]);return(0,e.useEffect)((function(){const e=document.createElement("div");return e.id=o,e.textContent=n,e.style.display="none",hr().appendChild(e),function(){const t=hr();t.contains(e)&&t.removeChild(e)}}),[o,n]),o}({contextId:n,text:i}),f=function(t,n){const r=X((()=>lr(t)),[t]),o=(0,e.useRef)(null),a=(0,e.useRef)(null),i=J(de((e=>{const t=a.current;t||ye(!1),t.textContent=e})),[]),l=J((e=>{const t=o.current;t||ye(!1),t.textContent=e}),[]);sr((()=>{(o.current||a.current)&&ye(!1);const e=ur(n),s=ur(n);return o.current=e,a.current=s,e.setAttribute(`${tr}-always`,t),s.setAttribute(`${tr}-dynamic`,t),cr().appendChild(e),cr().appendChild(s),l(r.always),i(r.resting),()=>{const e=e=>{const t=e.current;t||ye(!1),cr().removeChild(t),e.current=null};e(o),e(a)}}),[n,l,i,r.always,r.resting,t]);const s=J((()=>i(r.dragging)),[i,r.dragging]),c=J((e=>{i("DROP"!==e?r.userCancel:r.dropAnimating)}),[i,r.dropAnimating,r.userCancel]),u=J((()=>{a.current&&i(r.resting)}),[i,r.resting]);return X((()=>({dragging:s,dropping:c,resting:u})),[s,c,u])}(n,a),g=J((e=>{Gr(l).dispatch(e)}),[]),h=X((()=>m({publishWhileDragging:Kt,updateDroppableScroll:Yt,updateDroppableIsEnabled:Xt,updateDroppableIsCombineEnabled:Jt,collectionStarting:Qt},g)),[g]),b=function(){const t=X(mr,[]);return(0,e.useEffect)((()=>function(){e.version.startsWith("16")||e.version.startsWith("17")?requestAnimationFrame(t.clean):t.clean()}),[t]),t}(),v=X((()=>Bn(b,h)),[b,h]),y=X((()=>er({scrollWindow:jn,scrollDroppable:v.scrollDroppable,getAutoScrollerOptions:u,...m({move:Zt},g)})),[v.scrollDroppable,g,u]),w=function(t){const n=(0,e.useRef)({}),r=(0,e.useRef)(null),o=(0,e.useRef)(null),a=(0,e.useRef)(!1),i=J((function(e,t){const r={id:e,focus:t};return n.current[e]=r,function(){const t=n.current;t[e]!==r&&delete t[e]}}),[]),l=J((function(e){const n=function(e,t){const n=`[${nr.contextId}="${e}"]`,r=dr(document,n);if(!r.length)return null;const o=r.find((e=>e.getAttribute(nr.draggableId)===t));return o&&fr(o)?o:null}(t,e);n&&n!==document.activeElement&&n.focus()}),[t]),s=J((function(e,t){r.current===e&&(r.current=t)}),[]),c=J((function(){o.current||a.current&&(o.current=requestAnimationFrame((()=>{o.current=null;const e=r.current;e&&l(e)})))}),[l]),u=J((function(e){r.current=null;const t=document.activeElement;t&&t.getAttribute(nr.draggableId)===e&&(r.current=e)}),[]);return sr((()=>(a.current=!0,function(){a.current=!1;const e=o.current;e&&cancelAnimationFrame(e)})),[]),X((()=>({register:i,tryRecordFocus:u,tryRestoreFocusRecorded:c,tryShiftRecord:s})),[i,u,c,s])}(n),E=X((()=>Tn({announce:d,autoScroller:y,dimensionMarshal:v,focusMarshal:w,getResponders:c,styleMarshal:f})),[d,y,v,w,c,f]);l.current=E;const x=J((()=>{const e=Gr(l);"IDLE"!==e.getState().phase&&e.dispatch(on())}),[]),S=J((()=>{const e=Gr(l).getState();return"DROP_ANIMATING"===e.phase||"IDLE"!==e.phase&&e.isDragging}),[]);r(X((()=>({isDragging:S,tryAbort:x})),[S,x]));const k=J((e=>Fn(Gr(l).getState(),e)),[]),_=J((()=>Pt(Gr(l).getState())),[]),O=X((()=>({marshal:v,focus:w,contextId:n,canLift:k,isMovementAllowed:_,dragHandleUsageInstructionsId:p,registry:b})),[n,v,p,w,k,_,b]);return Wr({contextId:n,store:E,registry:b,customSensors:o||null,enableDefaultSensors:!1!==t.enableDefaultSensors}),(0,e.useEffect)((()=>x),[x]),e.createElement(Er.Provider,{value:O},e.createElement(K,{context:gr,store:E},t.children))}var qr=function(){return e.useId()};function Kr(t){const n=qr(),r=t.dragHandleUsageInstructions||_e.dragHandleUsageInstructions;return e.createElement(we,null,(o=>e.createElement(Vr,{nonce:t.nonce,contextId:n,setCallbacks:o,dragHandleUsageInstructions:r,enableDefaultSensors:t.enableDefaultSensors,sensors:t.sensors,onBeforeCapture:t.onBeforeCapture,onBeforeDragStart:t.onBeforeDragStart,onDragStart:t.onDragStart,onDragUpdate:t.onDragUpdate,onDragEnd:t.onDragEnd,autoScrollerOptions:t.autoScrollerOptions},t.children)))}const Qr=5e3,Yr=4500,Xr=(e,t)=>t?mn.drop(t.duration):e?mn.snap:mn.fluid,Jr=(e,t)=>{if(e)return t?cn:un};var Zr=e.createContext(null);function eo(t){const n=(0,e.useContext)(t);return n||ye(!1),n}function to(e){e.preventDefault()}var no=(e,t)=>e===t,ro=e=>{const{combine:t,destination:n}=e;return n?n.droppableId:t?t.droppableId:null};function oo(e=null){return{isDragging:!1,isDropAnimating:!1,isClone:!1,dropAnimation:null,mode:null,draggingOver:null,combineTargetFor:e,combineWith:null}}const ao={mapped:{type:"SECONDARY",offset:Oe,combineTargetFor:null,shouldAnimateDisplacement:!0,snapshot:oo(null)}},io=q((()=>{const e=function(){const e=de(((e,t)=>({x:e,y:t}))),t=de(((e,t,n=null,r=null,o=null)=>({isDragging:!0,isClone:t,isDropAnimating:Boolean(o),dropAnimation:o,mode:e,draggingOver:n,combineWith:r,combineTargetFor:null}))),n=de(((e,n,r,o,a=null,i=null,l=null)=>({mapped:{type:"DRAGGING",dropping:null,draggingOver:a,combineWith:i,mode:n,offset:e,dimension:r,forceShouldAnimate:l,snapshot:t(n,o,a,i,null)}})));return(r,o)=>{if(Sr(r)){if(r.critical.draggable.id!==o.draggableId)return null;const t=r.current.client.offset,i=r.dimensions.draggables[o.draggableId],l=Dt(r.impact),s=(a=r.impact).at&&"COMBINE"===a.at.type?a.at.combine.draggableId:null,c=r.forceShouldAnimate;return n(e(t.x,t.y),r.movementMode,i,o.isClone,l,s,c)}var a;if("DROP_ANIMATING"===r.phase){const e=r.completed;if(e.result.draggableId!==o.draggableId)return null;const n=o.isClone,a=r.dimensions.draggables[o.draggableId],i=e.result,l=i.mode,s=ro(i),c=(e=>e.combine?e.combine.draggableId:null)(i),u={duration:r.dropDuration,curve:sn,moveTo:r.newHomeClientOffset,opacity:c?cn:null,scale:c?dn:null};return{mapped:{type:"DRAGGING",offset:r.newHomeClientOffset,dimension:a,dropping:u,draggingOver:s,combineWith:c,mode:l,forceShouldAnimate:null,snapshot:t(l,n,s,c,u)}}}return null}}(),t=function(){const e=de(((e,t)=>({x:e,y:t}))),t=de(oo),n=de(((e,n=null,r)=>({mapped:{type:"SECONDARY",offset:e,combineTargetFor:n,shouldAnimateDisplacement:r,snapshot:t(n)}}))),r=e=>e?n(Oe,e,!0):null,o=(t,o,a,i)=>{const l=a.displaced.visible[t],s=Boolean(i.inVirtualList&&i.effected[t]),c=qe(a),u=c&&c.draggableId===t?o:null;if(!l){if(!s)return r(u);if(a.displaced.invisible[t])return null;const o=Pe(i.displacedBy.point),l=e(o.x,o.y);return n(l,u,!0)}if(s)return r(u);const d=a.displacedBy.point,p=e(d.x,d.y);return n(p,u,l.shouldAnimate)};return(e,t)=>{if(Sr(e))return e.critical.draggable.id===t.draggableId?null:o(t.draggableId,e.critical.draggable.id,e.impact,e.afterCritical);if("DROP_ANIMATING"===e.phase){const n=e.completed;return n.result.draggableId===t.draggableId?null:o(t.draggableId,n.result.draggableId,n.impact,n.afterCritical)}return null}}();return(n,r)=>e(n,r)||t(n,r)||ao}),{dropAnimationFinished:()=>({type:"DROP_ANIMATION_FINISHED",payload:null})},null,{context:gr,areStatePropsEqual:no})((t=>{const n=(0,e.useRef)(null),o=J(((e=null)=>{n.current=e}),[]),a=J((()=>n.current),[]),{contextId:i,dragHandleUsageInstructionsId:l,registry:s}=eo(Er),{type:c,droppableId:u}=eo(Zr),d=X((()=>({id:t.draggableId,index:t.index,type:c,droppableId:u})),[t.draggableId,t.index,c,u]),{children:p,draggableId:f,isEnabled:m,shouldRespectForcePress:g,canDragInteractiveElements:h,isClone:b,mapped:v,dropAnimationFinished:y}=t;b||function(t){const n=wr("draggable"),{descriptor:r,registry:o,getDraggableRef:a,canDragInteractiveElements:i,shouldRespectForcePress:l,isEnabled:s}=t,c=X((()=>({canDragInteractiveElements:i,shouldRespectForcePress:l,isEnabled:s})),[i,s,l]),u=J((e=>{const t=a();return t||ye(!1),function(e,t,n=Oe){const r=window.getComputedStyle(t),o=t.getBoundingClientRect(),a=le(o,r),i=ie(a,n);return{descriptor:e,placeholder:{client:a,tagName:t.tagName.toLowerCase(),display:r.display},displaceBy:{x:a.marginBox.width,y:a.marginBox.height},client:a,page:i}}(r,t,e)}),[r,a]),d=X((()=>({uniqueId:n,descriptor:r,options:c,getDimension:u})),[r,u,c,n]),p=(0,e.useRef)(d),f=(0,e.useRef)(!0);sr((()=>(o.draggable.register(p.current),()=>o.draggable.unregister(p.current))),[o.draggable]),sr((()=>{if(f.current)return void(f.current=!1);const e=p.current;p.current=d,o.draggable.update(d,e)}),[d,o.draggable])}(X((()=>({descriptor:d,registry:s,getDraggableRef:a,canDragInteractiveElements:h,shouldRespectForcePress:g,isEnabled:m})),[d,s,a,h,g,m]));const w=X((()=>m?{tabIndex:0,role:"button","aria-describedby":l,"data-rfd-drag-handle-draggable-id":f,"data-rfd-drag-handle-context-id":i,draggable:!1,onDragStart:to}:null),[i,l,f,m]),E=J((t=>{"DRAGGING"===v.type&&v.dropping&&"transform"===t.propertyName&&(e.version.startsWith("16")||e.version.startsWith("17")?y():(0,r.flushSync)(y))}),[y,v]),x=X((()=>{const e=function(e){return"DRAGGING"===e.type?function(e){const t=e.dimension.client,{offset:n,combineWith:r,dropping:o}=e,a=Boolean(r),i=(e=>null!=e.forceShouldAnimate?e.forceShouldAnimate:"SNAP"===e.mode)(e),l=Boolean(o),s=l?bn(n,a):hn(n);return{position:"fixed",top:t.marginBox.top,left:t.marginBox.left,boxSizing:"border-box",width:t.borderBox.width,height:t.borderBox.height,transition:Xr(i,o),transform:s,opacity:Jr(a,l),zIndex:l?Yr:Qr,pointerEvents:"none"}}(e):{transform:hn((t=e).offset),transition:t.shouldAnimateDisplacement?void 0:"none"};var t}(v),t="DRAGGING"===v.type&&v.dropping?E:void 0;return{innerRef:o,draggableProps:{"data-rfd-draggable-context-id":i,"data-rfd-draggable-id":f,style:e,onTransitionEnd:t},dragHandleProps:w}}),[i,w,f,v,E,o]),S=X((()=>({draggableId:d.id,type:d.type,source:{index:d.index,droppableId:d.droppableId}})),[d.droppableId,d.id,d.index,d.type]);return e.createElement(e.Fragment,null,p(x,v.snapshot,S))}));var lo=io;function so(t){return eo(Zr).isUsingCloneFor!==t.draggableId||t.isClone?e.createElement(lo,t):null}function co(t){const n="boolean"!=typeof t.isDragDisabled||!t.isDragDisabled,r=Boolean(t.disableInteractiveElementBlocking),o=Boolean(t.shouldRespectForcePress);return e.createElement(so,C({},t,{isClone:!1,isEnabled:n,canDragInteractiveElements:r,shouldRespectForcePress:o}))}const uo=e=>t=>e===t,po=uo("scroll"),fo=uo("auto"),mo=(uo("visible"),(e,t)=>t(e.overflowX)||t(e.overflowY)),go=e=>null==e||e===document.body||e===document.documentElement?null:(e=>{const t=window.getComputedStyle(e),n={overflowX:t.overflowX,overflowY:t.overflowY};return mo(n,po)||mo(n,fo)})(e)?e:go(e.parentElement);var ho=go,bo=e=>({x:e.scrollLeft,y:e.scrollTop});const vo=e=>!!e&&("fixed"===window.getComputedStyle(e).position||vo(e.parentElement));const yo={passive:!1},wo={passive:!0};var Eo=e=>e.shouldPublishImmediately?yo:wo;const xo=e=>e&&e.env.closestScrollable||null;function So(t){const n=(0,e.useRef)(null),r=eo(Er),o=wr("droppable"),{registry:a,marshal:i}=r,l=xr(t),s=X((()=>({id:t.droppableId,type:t.type,mode:t.mode})),[t.droppableId,t.mode,t.type]),c=(0,e.useRef)(s),u=X((()=>de(((e,t)=>{n.current||ye(!1);const r={x:e,y:t};i.updateDroppableScroll(s.id,r)}))),[s.id,i]),d=J((()=>{const e=n.current;return e&&e.env.closestScrollable?bo(e.env.closestScrollable):Oe}),[]),p=J((()=>{const e=d();u(e.x,e.y)}),[d,u]),f=X((()=>pe(p)),[p]),m=J((()=>{const e=n.current,t=xo(e);e&&t||ye(!1),e.scrollOptions.shouldPublishImmediately?p():f()}),[f,p]),g=J(((e,t)=>{n.current&&ye(!1);const o=l.current,a=o.getDroppableRef();a||ye(!1);const i=(e=>({closestScrollable:ho(e),isFixedOnPage:vo(e)}))(a),c={ref:a,descriptor:s,env:i,scrollOptions:t};n.current=c;const u=(({ref:e,descriptor:t,env:n,windowScroll:r,direction:o,isDropDisabled:a,isCombineEnabled:i,shouldClipSubject:l})=>{const s=n.closestScrollable,c=((e,t)=>{const n=se(e);if(!t)return n;if(e!==t)return n;const r=n.paddingBox.top-t.scrollTop,o=n.paddingBox.left-t.scrollLeft,a=r+t.scrollHeight,i=o+t.scrollWidth,l=ee({top:r,right:i,bottom:a,left:o},n.border);return re({borderBox:l,margin:n.margin,border:n.border,padding:n.padding})})(e,s),u=ie(c,r),d=(()=>{if(!s)return null;const e=se(s),t={scrollHeight:s.scrollHeight,scrollWidth:s.scrollWidth};return{client:e,page:ie(e,r),scroll:bo(s),scrollSize:t,shouldClipSubject:l}})(),p=(({descriptor:e,isEnabled:t,isCombineEnabled:n,isFixedOnPage:r,direction:o,client:a,page:i,closest:l})=>{const s=(()=>{if(!l)return null;const{scrollSize:e,client:t}=l,n=Rn({scrollHeight:e.scrollHeight,scrollWidth:e.scrollWidth,height:t.paddingBox.height,width:t.paddingBox.width});return{pageMarginBox:l.page.marginBox,frameClient:t,scrollSize:e,shouldClipSubject:l.shouldClipSubject,scroll:{initial:l.scroll,current:l.scroll,max:n,diff:{value:Oe,displacement:Oe}}}})(),c="vertical"===o?nt:rt;return{descriptor:e,isCombineEnabled:n,isFixedOnPage:r,axis:c,isEnabled:t,client:a,page:i,frame:s,subject:je({page:i,withPlaceholder:null,axis:c,frame:s})}})({descriptor:t,isEnabled:!a,isCombineEnabled:i,isFixedOnPage:n.isFixedOnPage,direction:o,client:c,page:u,closest:d});return p})({ref:a,descriptor:s,env:i,windowScroll:e,direction:o.direction,isDropDisabled:o.isDropDisabled,isCombineEnabled:o.isCombineEnabled,shouldClipSubject:!o.ignoreContainerClipping}),d=i.closestScrollable;return d&&(d.setAttribute(ar.contextId,r.contextId),d.addEventListener("scroll",m,Eo(c.scrollOptions))),u}),[r.contextId,s,m,l]),h=J((()=>{const e=n.current,t=xo(e);return e&&t||ye(!1),bo(t)}),[]),b=J((()=>{const e=n.current;e||ye(!1);const t=xo(e);n.current=null,t&&(f.cancel(),t.removeAttribute(ar.contextId),t.removeEventListener("scroll",m,Eo(e.scrollOptions)))}),[m,f]),v=J((e=>{const t=n.current;t||ye(!1);const r=xo(t);r||ye(!1),r.scrollTop+=e.y,r.scrollLeft+=e.x}),[]),y=X((()=>({getDimensionAndWatchScroll:g,getScrollWhileDragging:h,dragStopped:b,scroll:v})),[b,g,h,v]),w=X((()=>({uniqueId:o,descriptor:s,callbacks:y})),[y,s,o]);sr((()=>(c.current=w.descriptor,a.droppable.register(w),()=>{n.current&&b(),a.droppable.unregister(w)})),[y,s,b,w,i,a.droppable]),sr((()=>{n.current&&i.updateDroppableIsEnabled(c.current.id,!t.isDropDisabled)}),[t.isDropDisabled,i]),sr((()=>{n.current&&i.updateDroppableIsCombineEnabled(c.current.id,t.isCombineEnabled)}),[t.isCombineEnabled,i])}function ko(){}const Co={width:0,height:0,margin:{top:0,right:0,bottom:0,left:0}};var _o=e.memo((t=>{const n=(0,e.useRef)(null),r=J((()=>{n.current&&(clearTimeout(n.current),n.current=null)}),[]),{animate:o,onTransitionEnd:a,onClose:i,contextId:l}=t,[s,c]=(0,e.useState)("open"===t.animate);(0,e.useEffect)((()=>s?"open"!==o?(r(),c(!1),ko):n.current?ko:(n.current=setTimeout((()=>{n.current=null,c(!1)})),r):ko),[o,s,r]);const u=J((e=>{"height"===e.propertyName&&(a(),"close"===o&&i())}),[o,i,a]),d=(({isAnimatingOpenOnMount:e,placeholder:t,animate:n})=>{const r=(({isAnimatingOpenOnMount:e,placeholder:t,animate:n})=>e||"close"===n?Co:{height:t.client.borderBox.height,width:t.client.borderBox.width,margin:t.client.margin})({isAnimatingOpenOnMount:e,placeholder:t,animate:n});return{display:t.display,boxSizing:"border-box",width:r.width,height:r.height,marginTop:r.margin.top,marginRight:r.margin.right,marginBottom:r.margin.bottom,marginLeft:r.margin.left,flexShrink:"0",flexGrow:"0",pointerEvents:"none",transition:"none"!==n?mn.placeholder:null}})({isAnimatingOpenOnMount:s,animate:t.animate,placeholder:t.placeholder});return e.createElement(t.placeholder.tagName,{style:d,"data-rfd-placeholder-context-id":l,onTransitionEnd:u,ref:t.innerRef})}));class Oo extends e.PureComponent{constructor(...e){super(...e),this.state={isVisible:Boolean(this.props.on),data:this.props.on,animate:this.props.shouldAnimate&&this.props.on?"open":"none"},this.onClose=()=>{"close"===this.state.animate&&this.setState({isVisible:!1})}}static getDerivedStateFromProps(e,t){return e.shouldAnimate?e.on?{isVisible:!0,data:e.on,animate:"open"}:t.isVisible?{isVisible:!0,data:t.data,animate:"close"}:{isVisible:!1,animate:"close",data:null}:{isVisible:Boolean(e.on),data:e.on,animate:"none"}}render(){if(!this.state.isVisible)return null;const e={onClose:this.onClose,data:this.state.data,animate:this.state.animate};return this.props.children(e)}}const No={mode:"standard",type:"DEFAULT",direction:"vertical",isDropDisabled:!1,isCombineEnabled:!1,ignoreContainerClipping:!1,renderClone:null,getContainerForClone:function(){return document.body||ye(!1),document.body}},Do=e=>{let t,n={...e};for(t in No)void 0===e[t]&&(n={...n,[t]:No[t]});return n},Io=(e,t)=>e===t.droppable.type,Po=(e,t)=>t.draggables[e.draggable.id];var To=q((()=>{const e={placeholder:null,shouldAnimatePlaceholder:!0,snapshot:{isDraggingOver:!1,draggingOverWith:null,draggingFromThisWith:null,isUsingPlaceholder:!1},useClone:null},t={...e,shouldAnimatePlaceholder:!1},n=de((e=>({draggableId:e.id,type:e.type,source:{index:e.index,droppableId:e.droppableId}}))),r=de(((r,o,a,i,l,s)=>{const c=l.descriptor.id;if(l.descriptor.droppableId===r){const e=s?{render:s,dragging:n(l.descriptor)}:null,t={isDraggingOver:a,draggingOverWith:a?c:null,draggingFromThisWith:c,isUsingPlaceholder:!0};return{placeholder:l.placeholder,shouldAnimatePlaceholder:!1,snapshot:t,useClone:e}}if(!o)return t;if(!i)return e;const u={isDraggingOver:a,draggingOverWith:c,draggingFromThisWith:null,isUsingPlaceholder:!0};return{placeholder:l.placeholder,shouldAnimatePlaceholder:!0,snapshot:u,useClone:null}}));return(n,o)=>{const a=Do(o),i=a.droppableId,l=a.type,s=!a.isDropDisabled,c=a.renderClone;if(Sr(n)){const e=n.critical;if(!Io(l,e))return t;const o=Po(e,n.dimensions),a=Dt(n.impact)===i;return r(i,s,a,a,o,c)}if("DROP_ANIMATING"===n.phase){const e=n.completed;if(!Io(l,e.critical))return t;const o=Po(e.critical,n.dimensions);return r(i,s,ro(e.result)===i,Dt(e.impact)===i,o,c)}if("IDLE"===n.phase&&n.completed&&!n.shouldFlush){const r=n.completed;if(!Io(l,r.critical))return t;const o=Dt(r.impact)===i,a=Boolean(r.impact.at&&"COMBINE"===r.impact.at.type),s=r.critical.droppable.id===i;return o?a?e:t:s?e:t}return t}}),{updateViewportMaxScroll:e=>({type:"UPDATE_VIEWPORT_MAX_SCROLL",payload:e})},((e,t,n)=>({...Do(n),...e,...t})),{context:gr,areStatePropsEqual:no})((t=>{const n=(0,e.useContext)(Er);n||ye(!1);const{contextId:o,isMovementAllowed:a}=n,i=(0,e.useRef)(null),l=(0,e.useRef)(null),{children:s,droppableId:c,type:u,mode:d,direction:p,ignoreContainerClipping:f,isDropDisabled:m,isCombineEnabled:g,snapshot:h,useClone:b,updateViewportMaxScroll:v,getContainerForClone:y}=t,w=J((()=>i.current),[]),E=J(((e=null)=>{i.current=e}),[]),x=(J((()=>l.current),[]),J(((e=null)=>{l.current=e}),[])),S=J((()=>{a()&&v({maxScroll:Ln()})}),[a,v]);So({droppableId:c,type:u,mode:d,direction:p,isDropDisabled:m,isCombineEnabled:g,ignoreContainerClipping:f,getDroppableRef:w});const k=X((()=>e.createElement(Oo,{on:t.placeholder,shouldAnimate:t.shouldAnimatePlaceholder},(({onClose:t,data:n,animate:r})=>e.createElement(_o,{placeholder:n,onClose:t,innerRef:x,animate:r,contextId:o,onTransitionEnd:S})))),[o,S,t.placeholder,t.shouldAnimatePlaceholder,x]),C=X((()=>({innerRef:E,placeholder:k,droppableProps:{"data-rfd-droppable-id":c,"data-rfd-droppable-context-id":o}})),[o,c,k,E]),_=b?b.dragging.draggableId:null,O=X((()=>({droppableId:c,type:u,isUsingCloneFor:_})),[c,_,u]);return e.createElement(Zr.Provider,{value:O},s(C,h),function(){if(!b)return null;const{dragging:t,render:n}=b,o=e.createElement(so,{draggableId:t.draggableId,index:t.source.index,isClone:!0,isEnabled:!0,shouldRespectForcePress:!1,canDragInteractiveElements:!0},((e,r)=>n(e,r,t)));return r.createPortal(o,y())}())}));const Ro=e=>{let t;const n=new Set,r=(e,r)=>{const o="function"==typeof e?e(t):e;if(!Object.is(o,t)){const e=t;t=(null!=r?r:"object"!=typeof o||null===o)?o:Object.assign({},t,o),n.forEach((n=>n(t,e)))}},o=()=>t,a={setState:r,getState:o,getInitialState:()=>i,subscribe:e=>(n.add(e),()=>n.delete(e)),destroy:()=>{console.warn("[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."),n.clear()}},i=t=e(r,o,a);return a},{useDebugValue:Ao}=e,{useSyncExternalStoreWithSelector:Lo}=b,Mo=e=>e,Bo=(e,t)=>{const n=(e=>e?Ro(e):Ro)(e),r=(e,r=t)=>function(e,t=Mo,n){const r=Lo(e.subscribe,e.getState,e.getServerState||e.getInitialState,t,n);return Ao(r),r}(n,e,r);return Object.assign(r,n),r},Fo=window.shop_data,jo=Array.from(Fo.columns.catalog.categories.map((e=>e.itemIds)).flat()),zo=function(e,t,n,r,o){let a=arguments.length>5&&void 0!==arguments[5]&&arguments[5];const i={opacity:t.isDragging?.7:1,backgroundColor:r||o?"#eae7f7":"initial"};return!a&&null==t.draggingOver&&(!t.isDragging||t.isDragging&&t.isDropAnimating)&&(e.transform="none"),t.isDropAnimating?(n&&(i.transitionDuration="0.001s"),{...e,...i}):{...e,...i}},Uo=(e,t)=>{const n=t.isDraggingOver;return{...e,backgroundColor:n?"#f2f2f2":"#f9f9f9",border:n?"1px dashed #ccc":"0"}};function Wo(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:".",r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:",";try{t=Math.abs(t),t=isNaN(t)?2:t;const o=e<0?"-":"";let a=parseInt(e=Math.abs(Number(e)||0).toFixed(t)).toString(),i=a.length>3?a.length%3:0;return o+(i?a.substring(0,i)+r:"")+a.substring(i).replace(/(\d{3})(?=\d)/g,"$1"+r)+(t?n+Math.abs(e-a).toFixed(t).slice(2):"")}catch(t){return e}}const $o=(e,t)=>{const n=t-e;return Array.from({length:n},((t,n)=>e+n))},Ho=(e,t)=>e.length===t.length&&e.every(((e,n)=>e.id===t[n].id)),Go=(e,t)=>e.length===t.length&&e.every(((e,n)=>e===t[n]));function Vo(e,t){return!e&&!t||!(!e!=!t)&&Object.getPrototypeOf(e)===Object.getPrototypeOf(t)&&(Object.getPrototypeOf(e)!==Object.getPrototypeOf([])||!!Object.keys(e).length==!!Object.keys(t).length)}var qo=n(678);function Ko(e,t){return e.contains?e.contains(t):e.compareDocumentPosition?e===t||!!(16&e.compareDocumentPosition(t)):void 0}var Qo=n(556),Yo=n.n(Qo);function Xo(){const t=(0,e.useRef)(!0),n=(0,e.useRef)((()=>t.current));return(0,e.useEffect)((()=>(t.current=!0,()=>{t.current=!1})),[]),n.current}function Jo(t){const n=function(t){const n=(0,e.useRef)(t);return n.current=t,n}(t);(0,e.useEffect)((()=>()=>n.current()),[])}const Zo=2**31-1;function ea(e,t,n){const r=n-Date.now();e.current=r<=Zo?setTimeout(t,r):setTimeout((()=>ea(e,t,n)),Zo)}function ta(){const t=Xo(),n=(0,e.useRef)();return Jo((()=>clearTimeout(n.current))),(0,e.useMemo)((()=>{const e=()=>clearTimeout(n.current);return{set:function(r,o=0){t()&&(e(),o<=Zo?n.current=setTimeout(r,o):ea(n,r,Date.now()+o))},clear:e,handleRef:n}}),[])}var na=n(771),ra=n.n(na);function oa(e){return"default"+e.charAt(0).toUpperCase()+e.substr(1)}function aa(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:String(t)}function ia(t,n,r){var o=(0,e.useRef)(void 0!==t),a=(0,e.useState)(n),i=a[0],l=a[1],s=void 0!==t,c=o.current;return o.current=s,!s&&c&&i!==n&&l(n),[s?t:i,(0,e.useCallback)((function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];r&&r.apply(void 0,[e].concat(n)),l(e)}),[r])]}n(311);const la=e=>e&&"function"!=typeof e?t=>{e.current=t}:e,sa=function(t,n){return(0,e.useMemo)((()=>function(e,t){const n=la(e),r=la(t);return e=>{n&&n(e),r&&r(e)}}(t,n)),[t,n])};var ca=n(485),ua=n.n(ca);function da(){return(0,e.useState)(null)}var pa=Object.prototype.hasOwnProperty;function fa(e,t,n){for(n of e.keys())if(ma(n,t))return n}function ma(e,t){var n,r,o;if(e===t)return!0;if(e&&t&&(n=e.constructor)===t.constructor){if(n===Date)return e.getTime()===t.getTime();if(n===RegExp)return e.toString()===t.toString();if(n===Array){if((r=e.length)===t.length)for(;r--&&ma(e[r],t[r]););return-1===r}if(n===Set){if(e.size!==t.size)return!1;for(r of e){if((o=r)&&"object"==typeof o&&!(o=fa(t,o)))return!1;if(!t.has(o))return!1}return!0}if(n===Map){if(e.size!==t.size)return!1;for(r of e){if((o=r[0])&&"object"==typeof o&&!(o=fa(t,o)))return!1;if(!ma(r[1],t.get(o)))return!1}return!0}if(n===ArrayBuffer)e=new Uint8Array(e),t=new Uint8Array(t);else if(n===DataView){if((r=e.byteLength)===t.byteLength)for(;r--&&e.getInt8(r)===t.getInt8(r););return-1===r}if(ArrayBuffer.isView(e)){if((r=e.byteLength)===t.byteLength)for(;r--&&e[r]===t[r];);return-1===r}if(!n||"object"==typeof e){for(n in r=0,e){if(pa.call(e,n)&&++r&&!pa.call(t,n))return!1;if(!(n in t)||!ma(e[n],t[n]))return!1}return Object.keys(t).length===r}}return e!=e&&t!=t}function ga(e){return e.split("-")[0]}function ha(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function ba(e){return e instanceof ha(e).Element||e instanceof Element}function va(e){return e instanceof ha(e).HTMLElement||e instanceof HTMLElement}function ya(e){return"undefined"!=typeof ShadowRoot&&(e instanceof ha(e).ShadowRoot||e instanceof ShadowRoot)}var wa=Math.max,Ea=Math.min,xa=Math.round;function Sa(){var e=navigator.userAgentData;return null!=e&&e.brands&&Array.isArray(e.brands)?e.brands.map((function(e){return e.brand+"/"+e.version})).join(" "):navigator.userAgent}function ka(){return!/^((?!chrome|android).)*safari/i.test(Sa())}function Ca(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);var r=e.getBoundingClientRect(),o=1,a=1;t&&va(e)&&(o=e.offsetWidth>0&&xa(r.width)/e.offsetWidth||1,a=e.offsetHeight>0&&xa(r.height)/e.offsetHeight||1);var i=(ba(e)?ha(e):window).visualViewport,l=!ka()&&n,s=(r.left+(l&&i?i.offsetLeft:0))/o,c=(r.top+(l&&i?i.offsetTop:0))/a,u=r.width/o,d=r.height/a;return{width:u,height:d,top:c,right:s+u,bottom:c+d,left:s,x:s,y:c}}function _a(e){var t=Ca(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function Oa(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&ya(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function Na(e){return e?(e.nodeName||"").toLowerCase():null}function Da(e){return ha(e).getComputedStyle(e)}function Ia(e){return["table","td","th"].indexOf(Na(e))>=0}function Pa(e){return((ba(e)?e.ownerDocument:e.document)||window.document).documentElement}function Ta(e){return"html"===Na(e)?e:e.assignedSlot||e.parentNode||(ya(e)?e.host:null)||Pa(e)}function Ra(e){return va(e)&&"fixed"!==Da(e).position?e.offsetParent:null}function Aa(e){for(var t=ha(e),n=Ra(e);n&&Ia(n)&&"static"===Da(n).position;)n=Ra(n);return n&&("html"===Na(n)||"body"===Na(n)&&"static"===Da(n).position)?t:n||function(e){var t=/firefox/i.test(Sa());if(/Trident/i.test(Sa())&&va(e)&&"fixed"===Da(e).position)return null;var n=Ta(e);for(ya(n)&&(n=n.host);va(n)&&["html","body"].indexOf(Na(n))<0;){var r=Da(n);if("none"!==r.transform||"none"!==r.perspective||"paint"===r.contain||-1!==["transform","perspective"].indexOf(r.willChange)||t&&"filter"===r.willChange||t&&r.filter&&"none"!==r.filter)return n;n=n.parentNode}return null}(e)||t}function La(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Ma(e,t,n){return wa(e,Ea(t,n))}function Ba(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function Fa(e,t){return t.reduce((function(t,n){return t[n]=e,t}),{})}var ja="top",za="bottom",Ua="right",Wa="left",$a="auto",Ha=[ja,za,Ua,Wa],Ga="start",Va="end",qa="viewport",Ka="popper",Qa=Ha.reduce((function(e,t){return e.concat([t+"-"+Ga,t+"-"+Va])}),[]),Ya=[].concat(Ha,[$a]).reduce((function(e,t){return e.concat([t,t+"-"+Ga,t+"-"+Va])}),[]),Xa=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];const Ja={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n=e.state,r=e.name,o=e.options,a=n.elements.arrow,i=n.modifiersData.popperOffsets,l=ga(n.placement),s=La(l),c=[Wa,Ua].indexOf(l)>=0?"height":"width";if(a&&i){var u=function(e,t){return Ba("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:Fa(e,Ha))}(o.padding,n),d=_a(a),p="y"===s?ja:Wa,f="y"===s?za:Ua,m=n.rects.reference[c]+n.rects.reference[s]-i[s]-n.rects.popper[c],g=i[s]-n.rects.reference[s],h=Aa(a),b=h?"y"===s?h.clientHeight||0:h.clientWidth||0:0,v=m/2-g/2,y=u[p],w=b-d[c]-u[f],E=b/2-d[c]/2+v,x=Ma(y,E,w),S=s;n.modifiersData[r]=((t={})[S]=x,t.centerOffset=x-E,t)}},effect:function(e){var t=e.state,n=e.options.element,r=void 0===n?"[data-popper-arrow]":n;null!=r&&("string"!=typeof r||(r=t.elements.popper.querySelector(r)))&&Oa(t.elements.popper,r)&&(t.elements.arrow=r)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Za(e){return e.split("-")[1]}var ei={top:"auto",right:"auto",bottom:"auto",left:"auto"};function ti(e){var t,n=e.popper,r=e.popperRect,o=e.placement,a=e.variation,i=e.offsets,l=e.position,s=e.gpuAcceleration,c=e.adaptive,u=e.roundOffsets,d=e.isFixed,p=i.x,f=void 0===p?0:p,m=i.y,g=void 0===m?0:m,h="function"==typeof u?u({x:f,y:g}):{x:f,y:g};f=h.x,g=h.y;var b=i.hasOwnProperty("x"),v=i.hasOwnProperty("y"),y=Wa,w=ja,E=window;if(c){var x=Aa(n),S="clientHeight",k="clientWidth";x===ha(n)&&"static"!==Da(x=Pa(n)).position&&"absolute"===l&&(S="scrollHeight",k="scrollWidth"),(o===ja||(o===Wa||o===Ua)&&a===Va)&&(w=za,g-=(d&&x===E&&E.visualViewport?E.visualViewport.height:x[S])-r.height,g*=s?1:-1),o!==Wa&&(o!==ja&&o!==za||a!==Va)||(y=Ua,f-=(d&&x===E&&E.visualViewport?E.visualViewport.width:x[k])-r.width,f*=s?1:-1)}var C,_=Object.assign({position:l},c&&ei),O=!0===u?function(e,t){var n=e.x,r=e.y,o=t.devicePixelRatio||1;return{x:xa(n*o)/o||0,y:xa(r*o)/o||0}}({x:f,y:g},ha(n)):{x:f,y:g};return f=O.x,g=O.y,s?Object.assign({},_,((C={})[w]=v?"0":"",C[y]=b?"0":"",C.transform=(E.devicePixelRatio||1)<=1?"translate("+f+"px, "+g+"px)":"translate3d("+f+"px, "+g+"px, 0)",C)):Object.assign({},_,((t={})[w]=v?g+"px":"",t[y]=b?f+"px":"",t.transform="",t))}const ni={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=void 0===r||r,a=n.adaptive,i=void 0===a||a,l=n.roundOffsets,s=void 0===l||l,c={placement:ga(t.placement),variation:Za(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,ti(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:i,roundOffsets:s})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,ti(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:s})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}};var ri={passive:!0};const oi={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,n=e.instance,r=e.options,o=r.scroll,a=void 0===o||o,i=r.resize,l=void 0===i||i,s=ha(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&c.forEach((function(e){e.addEventListener("scroll",n.update,ri)})),l&&s.addEventListener("resize",n.update,ri),function(){a&&c.forEach((function(e){e.removeEventListener("scroll",n.update,ri)})),l&&s.removeEventListener("resize",n.update,ri)}},data:{}};var ai={left:"right",right:"left",bottom:"top",top:"bottom"};function ii(e){return e.replace(/left|right|bottom|top/g,(function(e){return ai[e]}))}var li={start:"end",end:"start"};function si(e){return e.replace(/start|end/g,(function(e){return li[e]}))}function ci(e){var t=ha(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function ui(e){return Ca(Pa(e)).left+ci(e).scrollLeft}function di(e){var t=Da(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function pi(e){return["html","body","#document"].indexOf(Na(e))>=0?e.ownerDocument.body:va(e)&&di(e)?e:pi(Ta(e))}function fi(e,t){var n;void 0===t&&(t=[]);var r=pi(e),o=r===(null==(n=e.ownerDocument)?void 0:n.body),a=ha(r),i=o?[a].concat(a.visualViewport||[],di(r)?r:[]):r,l=t.concat(i);return o?l:l.concat(fi(Ta(i)))}function mi(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function gi(e,t,n){return t===qa?mi(function(e,t){var n=ha(e),r=Pa(e),o=n.visualViewport,a=r.clientWidth,i=r.clientHeight,l=0,s=0;if(o){a=o.width,i=o.height;var c=ka();(c||!c&&"fixed"===t)&&(l=o.offsetLeft,s=o.offsetTop)}return{width:a,height:i,x:l+ui(e),y:s}}(e,n)):ba(t)?function(e,t){var n=Ca(e,!1,"fixed"===t);return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}(t,n):mi(function(e){var t,n=Pa(e),r=ci(e),o=null==(t=e.ownerDocument)?void 0:t.body,a=wa(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),i=wa(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),l=-r.scrollLeft+ui(e),s=-r.scrollTop;return"rtl"===Da(o||n).direction&&(l+=wa(n.clientWidth,o?o.clientWidth:0)-a),{width:a,height:i,x:l,y:s}}(Pa(e)))}function hi(e){var t,n=e.reference,r=e.element,o=e.placement,a=o?ga(o):null,i=o?Za(o):null,l=n.x+n.width/2-r.width/2,s=n.y+n.height/2-r.height/2;switch(a){case ja:t={x:l,y:n.y-r.height};break;case za:t={x:l,y:n.y+n.height};break;case Ua:t={x:n.x+n.width,y:s};break;case Wa:t={x:n.x-r.width,y:s};break;default:t={x:n.x,y:n.y}}var c=a?La(a):null;if(null!=c){var u="y"===c?"height":"width";switch(i){case Ga:t[c]=t[c]-(n[u]/2-r[u]/2);break;case Va:t[c]=t[c]+(n[u]/2-r[u]/2)}}return t}function bi(e,t){void 0===t&&(t={});var n=t,r=n.placement,o=void 0===r?e.placement:r,a=n.strategy,i=void 0===a?e.strategy:a,l=n.boundary,s=void 0===l?"clippingParents":l,c=n.rootBoundary,u=void 0===c?qa:c,d=n.elementContext,p=void 0===d?Ka:d,f=n.altBoundary,m=void 0!==f&&f,g=n.padding,h=void 0===g?0:g,b=Ba("number"!=typeof h?h:Fa(h,Ha)),v=p===Ka?"reference":Ka,y=e.rects.popper,w=e.elements[m?v:p],E=function(e,t,n,r){var o="clippingParents"===t?function(e){var t=fi(Ta(e)),n=["absolute","fixed"].indexOf(Da(e).position)>=0&&va(e)?Aa(e):e;return ba(n)?t.filter((function(e){return ba(e)&&Oa(e,n)&&"body"!==Na(e)})):[]}(e):[].concat(t),a=[].concat(o,[n]),i=a[0],l=a.reduce((function(t,n){var o=gi(e,n,r);return t.top=wa(o.top,t.top),t.right=Ea(o.right,t.right),t.bottom=Ea(o.bottom,t.bottom),t.left=wa(o.left,t.left),t}),gi(e,i,r));return l.width=l.right-l.left,l.height=l.bottom-l.top,l.x=l.left,l.y=l.top,l}(ba(w)?w:w.contextElement||Pa(e.elements.popper),s,u,i),x=Ca(e.elements.reference),S=hi({reference:x,element:y,strategy:"absolute",placement:o}),k=mi(Object.assign({},y,S)),C=p===Ka?k:x,_={top:E.top-C.top+b.top,bottom:C.bottom-E.bottom+b.bottom,left:E.left-C.left+b.left,right:C.right-E.right+b.right},O=e.modifiersData.offset;if(p===Ka&&O){var N=O[o];Object.keys(_).forEach((function(e){var t=[Ua,za].indexOf(e)>=0?1:-1,n=[ja,za].indexOf(e)>=0?"y":"x";_[e]+=N[n]*t}))}return _}const vi={name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,a=void 0===o||o,i=n.altAxis,l=void 0===i||i,s=n.fallbackPlacements,c=n.padding,u=n.boundary,d=n.rootBoundary,p=n.altBoundary,f=n.flipVariations,m=void 0===f||f,g=n.allowedAutoPlacements,h=t.options.placement,b=ga(h),v=s||(b!==h&&m?function(e){if(ga(e)===$a)return[];var t=ii(e);return[si(e),t,si(t)]}(h):[ii(h)]),y=[h].concat(v).reduce((function(e,n){return e.concat(ga(n)===$a?function(e,t){void 0===t&&(t={});var n=t,r=n.placement,o=n.boundary,a=n.rootBoundary,i=n.padding,l=n.flipVariations,s=n.allowedAutoPlacements,c=void 0===s?Ya:s,u=Za(r),d=u?l?Qa:Qa.filter((function(e){return Za(e)===u})):Ha,p=d.filter((function(e){return c.indexOf(e)>=0}));0===p.length&&(p=d);var f=p.reduce((function(t,n){return t[n]=bi(e,{placement:n,boundary:o,rootBoundary:a,padding:i})[ga(n)],t}),{});return Object.keys(f).sort((function(e,t){return f[e]-f[t]}))}(t,{placement:n,boundary:u,rootBoundary:d,padding:c,flipVariations:m,allowedAutoPlacements:g}):n)}),[]),w=t.rects.reference,E=t.rects.popper,x=new Map,S=!0,k=y[0],C=0;C<y.length;C++){var _=y[C],O=ga(_),N=Za(_)===Ga,D=[ja,za].indexOf(O)>=0,I=D?"width":"height",P=bi(t,{placement:_,boundary:u,rootBoundary:d,altBoundary:p,padding:c}),T=D?N?Ua:Wa:N?za:ja;w[I]>E[I]&&(T=ii(T));var R=ii(T),A=[];if(a&&A.push(P[O]<=0),l&&A.push(P[T]<=0,P[R]<=0),A.every((function(e){return e}))){k=_,S=!1;break}x.set(_,A)}if(S)for(var L=function(e){var t=y.find((function(t){var n=x.get(t);if(n)return n.slice(0,e).every((function(e){return e}))}));if(t)return k=t,"break"},M=m?3:1;M>0&&"break"!==L(M);M--);t.placement!==k&&(t.modifiersData[r]._skip=!0,t.placement=k,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function yi(e,t,n){return void 0===n&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function wi(e){return[ja,Ua,za,Wa].some((function(t){return e[t]>=0}))}const Ei={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,a=t.modifiersData.preventOverflow,i=bi(t,{elementContext:"reference"}),l=bi(t,{altBoundary:!0}),s=yi(i,r),c=yi(l,o,a),u=wi(s),d=wi(c);t.modifiersData[n]={referenceClippingOffsets:s,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":d})}},xi={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.options,r=e.name,o=n.offset,a=void 0===o?[0,0]:o,i=Ya.reduce((function(e,n){return e[n]=function(e,t,n){var r=ga(e),o=[Wa,ja].indexOf(r)>=0?-1:1,a="function"==typeof n?n(Object.assign({},t,{placement:e})):n,i=a[0],l=a[1];return i=i||0,l=(l||0)*o,[Wa,Ua].indexOf(r)>=0?{x:l,y:i}:{x:i,y:l}}(n,t.rects,a),e}),{}),l=i[t.placement],s=l.x,c=l.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=s,t.modifiersData.popperOffsets.y+=c),t.modifiersData[r]=i}},Si={name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=hi({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}},ki={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,a=void 0===o||o,i=n.altAxis,l=void 0!==i&&i,s=n.boundary,c=n.rootBoundary,u=n.altBoundary,d=n.padding,p=n.tether,f=void 0===p||p,m=n.tetherOffset,g=void 0===m?0:m,h=bi(t,{boundary:s,rootBoundary:c,padding:d,altBoundary:u}),b=ga(t.placement),v=Za(t.placement),y=!v,w=La(b),E="x"===w?"y":"x",x=t.modifiersData.popperOffsets,S=t.rects.reference,k=t.rects.popper,C="function"==typeof g?g(Object.assign({},t.rects,{placement:t.placement})):g,_="number"==typeof C?{mainAxis:C,altAxis:C}:Object.assign({mainAxis:0,altAxis:0},C),O=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,N={x:0,y:0};if(x){if(a){var D,I="y"===w?ja:Wa,P="y"===w?za:Ua,T="y"===w?"height":"width",R=x[w],A=R+h[I],L=R-h[P],M=f?-k[T]/2:0,B=v===Ga?S[T]:k[T],F=v===Ga?-k[T]:-S[T],j=t.elements.arrow,z=f&&j?_a(j):{width:0,height:0},U=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},W=U[I],$=U[P],H=Ma(0,S[T],z[T]),G=y?S[T]/2-M-H-W-_.mainAxis:B-H-W-_.mainAxis,V=y?-S[T]/2+M+H+$+_.mainAxis:F+H+$+_.mainAxis,q=t.elements.arrow&&Aa(t.elements.arrow),K=q?"y"===w?q.clientTop||0:q.clientLeft||0:0,Q=null!=(D=null==O?void 0:O[w])?D:0,Y=R+V-Q,X=Ma(f?Ea(A,R+G-Q-K):A,R,f?wa(L,Y):L);x[w]=X,N[w]=X-R}if(l){var J,Z="x"===w?ja:Wa,ee="x"===w?za:Ua,te=x[E],ne="y"===E?"height":"width",re=te+h[Z],oe=te-h[ee],ae=-1!==[ja,Wa].indexOf(b),ie=null!=(J=null==O?void 0:O[E])?J:0,le=ae?re:te-S[ne]-k[ne]-ie+_.altAxis,se=ae?te+S[ne]+k[ne]-ie-_.altAxis:oe,ce=f&&ae?function(e,t,n){var r=Ma(e,t,n);return r>n?n:r}(le,te,se):Ma(f?le:re,te,f?se:oe);x[E]=ce,N[E]=ce-te}t.modifiersData[r]=N}},requiresIfExists:["offset"]};function Ci(e,t,n){void 0===n&&(n=!1);var r,o,a=va(t),i=va(t)&&function(e){var t=e.getBoundingClientRect(),n=xa(t.width)/e.offsetWidth||1,r=xa(t.height)/e.offsetHeight||1;return 1!==n||1!==r}(t),l=Pa(t),s=Ca(e,i,n),c={scrollLeft:0,scrollTop:0},u={x:0,y:0};return(a||!a&&!n)&&(("body"!==Na(t)||di(l))&&(c=(r=t)!==ha(r)&&va(r)?{scrollLeft:(o=r).scrollLeft,scrollTop:o.scrollTop}:ci(r)),va(t)?((u=Ca(t,!0)).x+=t.clientLeft,u.y+=t.clientTop):l&&(u.x=ui(l))),{x:s.left+c.scrollLeft-u.x,y:s.top+c.scrollTop-u.y,width:s.width,height:s.height}}function _i(e){var t=new Map,n=new Set,r=[];function o(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach((function(e){if(!n.has(e)){var r=t.get(e);r&&o(r)}})),r.push(e)}return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){n.has(e.name)||o(e)})),r}function Oi(e){var t;return function(){return t||(t=new Promise((function(n){Promise.resolve().then((function(){t=void 0,n(e())}))}))),t}}var Ni={placement:"bottom",modifiers:[],strategy:"absolute"};function Di(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some((function(e){return!(e&&"function"==typeof e.getBoundingClientRect)}))}const Ii=function(e){void 0===e&&(e={});var t=e,n=t.defaultModifiers,r=void 0===n?[]:n,o=t.defaultOptions,a=void 0===o?Ni:o;return function(e,t,n){void 0===n&&(n=a);var o={placement:"bottom",orderedModifiers:[],options:Object.assign({},Ni,a),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},i=[],l=!1,s={state:o,setOptions:function(n){var l="function"==typeof n?n(o.options):n;c(),o.options=Object.assign({},a,o.options,l),o.scrollParents={reference:ba(e)?fi(e):e.contextElement?fi(e.contextElement):[],popper:fi(t)};var u,d,p=function(e){var t=_i(e);return Xa.reduce((function(e,n){return e.concat(t.filter((function(e){return e.phase===n})))}),[])}((u=[].concat(r,o.options.modifiers),d=u.reduce((function(e,t){var n=e[t.name];return e[t.name]=n?Object.assign({},n,t,{options:Object.assign({},n.options,t.options),data:Object.assign({},n.data,t.data)}):t,e}),{}),Object.keys(d).map((function(e){return d[e]}))));return o.orderedModifiers=p.filter((function(e){return e.enabled})),o.orderedModifiers.forEach((function(e){var t=e.name,n=e.options,r=void 0===n?{}:n,a=e.effect;if("function"==typeof a){var l=a({state:o,name:t,instance:s,options:r});i.push(l||function(){})}})),s.update()},forceUpdate:function(){if(!l){var e=o.elements,t=e.reference,n=e.popper;if(Di(t,n)){o.rects={reference:Ci(t,Aa(n),"fixed"===o.options.strategy),popper:_a(n)},o.reset=!1,o.placement=o.options.placement,o.orderedModifiers.forEach((function(e){return o.modifiersData[e.name]=Object.assign({},e.data)}));for(var r=0;r<o.orderedModifiers.length;r++)if(!0!==o.reset){var a=o.orderedModifiers[r],i=a.fn,c=a.options,u=void 0===c?{}:c,d=a.name;"function"==typeof i&&(o=i({state:o,options:u,name:d,instance:s})||o)}else o.reset=!1,r=-1}}},update:Oi((function(){return new Promise((function(e){s.forceUpdate(),e(o)}))})),destroy:function(){c(),l=!0}};if(!Di(e,t))return s;function c(){i.forEach((function(e){return e()})),i=[]}return s.setOptions(n).then((function(e){!l&&n.onFirstUpdate&&n.onFirstUpdate(e)})),s}}({defaultModifiers:[Ei,Si,ni,oi,xi,vi,ki,Ja]}),Pi=["enabled","placement","strategy","modifiers"],Ti={name:"applyStyles",enabled:!1,phase:"afterWrite",fn:()=>{}},Ri={name:"ariaDescribedBy",enabled:!0,phase:"afterWrite",effect:({state:e})=>()=>{const{reference:t,popper:n}=e.elements;if("removeAttribute"in t){const e=(t.getAttribute("aria-describedby")||"").split(",").filter((e=>e.trim()!==n.id));e.length?t.setAttribute("aria-describedby",e.join(",")):t.removeAttribute("aria-describedby")}},fn:({state:e})=>{var t;const{popper:n,reference:r}=e.elements,o=null==(t=n.getAttribute("role"))?void 0:t.toLowerCase();if(n.id&&"tooltip"===o&&"setAttribute"in r){const e=r.getAttribute("aria-describedby");if(e&&-1!==e.split(",").indexOf(n.id))return;r.setAttribute("aria-describedby",e?`${e},${n.id}`:n.id)}}},Ai=[],Li=function(t,n,r={}){let{enabled:o=!0,placement:a="bottom",strategy:i="absolute",modifiers:l=Ai}=r,s=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(r,Pi);const c=(0,e.useRef)(l),u=(0,e.useRef)(),d=(0,e.useCallback)((()=>{var e;null==(e=u.current)||e.update()}),[]),p=(0,e.useCallback)((()=>{var e;null==(e=u.current)||e.forceUpdate()}),[]),[f,m]=function(t){const n=Xo();return[t[0],(0,e.useCallback)((e=>{if(n())return t[1](e)}),[n,t[1]])]}((0,e.useState)({placement:a,update:d,forceUpdate:p,attributes:{},styles:{popper:{},arrow:{}}})),g=(0,e.useMemo)((()=>({name:"updateStateModifier",enabled:!0,phase:"write",requires:["computeStyles"],fn:({state:e})=>{const t={},n={};Object.keys(e.elements).forEach((r=>{t[r]=e.styles[r],n[r]=e.attributes[r]})),m({state:e,styles:t,attributes:n,update:d,forceUpdate:p,placement:e.placement})}})),[d,p,m]),h=(0,e.useMemo)((()=>(ma(c.current,l)||(c.current=l),c.current)),[l]);return(0,e.useEffect)((()=>{u.current&&o&&u.current.setOptions({placement:a,strategy:i,modifiers:[...h,g,Ti]})}),[i,a,g,o,h]),(0,e.useEffect)((()=>{if(o&&null!=t&&null!=n)return u.current=Ii(t,n,Object.assign({},s,{placement:a,strategy:i,modifiers:[...h,Ri,g]})),()=>{null!=u.current&&(u.current.destroy(),u.current=void 0,m((e=>Object.assign({},e,{attributes:{},styles:{popper:{}}}))))}}),[o,t,n]),f},Mi=!("undefined"==typeof window||!window.document||!window.document.createElement);var Bi=!1,Fi=!1;try{var ji={get passive(){return Bi=!0},get once(){return Fi=Bi=!0}};Mi&&(window.addEventListener("test",ji,ji),window.removeEventListener("test",ji,!0))}catch(e){}const zi=function(e,t,n,r){if(r&&"boolean"!=typeof r&&!Fi){var o=r.once,a=r.capture,i=n;!Fi&&o&&(i=n.__once||function e(r){this.removeEventListener(t,e,a),n.call(this,r)},n.__once=i),e.addEventListener(t,i,Bi?r:a)}e.addEventListener(t,n,r)},Ui=function(e,t,n,r){var o=r&&"boolean"!=typeof r?r.capture:r;e.removeEventListener(t,n,o),n.__once&&e.removeEventListener(t,n.__once,o)},Wi=function(e,t,n,r){return zi(e,t,n,r),function(){Ui(e,t,n,r)}};function $i(e){return e&&e.ownerDocument||document}const Hi=function(t){const n=(0,e.useRef)(t);return(0,e.useEffect)((()=>{n.current=t}),[t]),n};function Gi(t){const n=Hi(t);return(0,e.useCallback)((function(...e){return n.current&&n.current(...e)}),[n])}const Vi=()=>{},qi=e=>e&&("current"in e?e.current:e),Ki={click:"mousedown",mouseup:"mousedown",pointerup:"pointerdown"};function Qi(e){return"Escape"===e.code||27===e.keyCode}const Yi=()=>{},Xi=function(t,n,{disabled:r,clickTrigger:o}={}){const a=n||Yi;!function(t,n=Vi,{disabled:r,clickTrigger:o="click"}={}){const a=(0,e.useRef)(!1),i=(0,e.useRef)(!1),l=(0,e.useCallback)((e=>{const n=qi(t);var r;ra()(!!n,"ClickOutside captured a close event but does not have a ref to compare it to. useClickOutside(), should be passed a ref that resolves to a DOM node"),a.current=!n||!!((r=e).metaKey||r.altKey||r.ctrlKey||r.shiftKey)||!function(e){return 0===e.button}(e)||!!Ko(n,e.target)||i.current,i.current=!1}),[t]),s=Gi((e=>{const n=qi(t);n&&Ko(n,e.target)&&(i.current=!0)})),c=Gi((e=>{a.current||n(e)}));(0,e.useEffect)((()=>{var e,n;if(r||null==t)return;const a=$i(qi(t)),i=a.defaultView||window;let u=null!=(e=i.event)?e:null==(n=i.parent)?void 0:n.event,d=null;Ki[o]&&(d=Wi(a,Ki[o],s,!0));const p=Wi(a,o,l,!0),f=Wi(a,o,(e=>{e!==u?c(e):u=void 0}));let m=[];return"ontouchstart"in a.documentElement&&(m=[].slice.call(a.body.children).map((e=>Wi(e,"mousemove",Vi)))),()=>{null==d||d(),p(),f(),m.forEach((e=>e()))}}),[t,r,o,l,s,c])}(t,a,{disabled:r,clickTrigger:o});const i=Gi((e=>{Qi(e)&&a(e)}));(0,e.useEffect)((()=>{if(r||null==t)return;const e=$i(qi(t));let n=(e.defaultView||window).event;const o=Wi(e,"keyup",(e=>{e!==n?i(e):n=void 0}));return()=>{o()}}),[t,r,i])},Ji=(0,e.createContext)(Mi?window:void 0);function Zi(){return(0,e.useContext)(Ji)}Ji.Provider;const el=(e,t)=>Mi?null==e?(t||$i()).body:("function"==typeof e&&(e=e()),e&&"current"in e&&(e=e.current),e&&("nodeType"in e||e.getBoundingClientRect)?e:null):null;function tl(t,n){const r=Zi(),[o,a]=(0,e.useState)((()=>el(t,null==r?void 0:r.document)));if(!o){const e=el(t);e&&a(e)}return(0,e.useEffect)((()=>{n&&o&&n(o)}),[n,o]),(0,e.useEffect)((()=>{const e=el(t);e!==o&&a(e)}),[t,o]),o}function nl(e={}){return Array.isArray(e)?e:Object.keys(e).map((t=>(e[t].name=t,e[t])))}const rl=void 0!==n.g&&n.g.navigator&&"ReactNative"===n.g.navigator.product,ol="undefined"!=typeof document||rl?e.useLayoutEffect:e.useEffect,al=function({children:t,in:n,onExited:r,mountOnEnter:o,unmountOnExit:a}){const i=(0,e.useRef)(null),l=(0,e.useRef)(n),s=Gi(r);(0,e.useEffect)((()=>{n?l.current=!0:s(i.current)}),[n,s]);const c=sa(i,t.ref),u=(0,e.cloneElement)(t,{ref:c});return n?u:a||!l.current&&o?null:u},il=["onEnter","onEntering","onEntered","onExit","onExiting","onExited","addEndListener","children"];var ll=n(848);const sl=["component"],cl=e.forwardRef(((t,n)=>{let{component:r}=t;const o=function(t){let{onEnter:n,onEntering:r,onEntered:o,onExit:a,onExiting:i,onExited:l,addEndListener:s,children:c}=t,u=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(t,il);const d=(0,e.useRef)(null),p=sa(d,"function"==typeof c?null:c.ref),f=e=>t=>{e&&d.current&&e(d.current,t)},m=(0,e.useCallback)(f(n),[n]),g=(0,e.useCallback)(f(r),[r]),h=(0,e.useCallback)(f(o),[o]),b=(0,e.useCallback)(f(a),[a]),v=(0,e.useCallback)(f(i),[i]),y=(0,e.useCallback)(f(l),[l]),w=(0,e.useCallback)(f(s),[s]);return Object.assign({},u,{nodeRef:d},n&&{onEnter:m},r&&{onEntering:g},o&&{onEntered:h},a&&{onExit:b},i&&{onExiting:v},l&&{onExited:y},s&&{addEndListener:w},{children:"function"==typeof c?(e,t)=>c(e,Object.assign({},t,{ref:p})):(0,e.cloneElement)(c,{ref:p})})}(function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(t,sl));return(0,ll.jsx)(r,Object.assign({ref:n},o))}));function ul({children:t,in:n,onExited:r,onEntered:o,transition:a}){const[i,l]=(0,e.useState)(!n);n&&i&&l(!1);const s=function({in:t,onTransition:n}){const r=(0,e.useRef)(null),o=(0,e.useRef)(!0),a=Gi(n);return ol((()=>{if(!r.current)return;let e=!1;return a({in:t,element:r.current,initial:o.current,isStale:()=>e}),()=>{e=!0}}),[t,a]),ol((()=>(o.current=!1,()=>{o.current=!0})),[]),r}({in:!!n,onTransition:e=>{Promise.resolve(a(e)).then((()=>{e.isStale()||(e.in?null==o||o(e.element,e.initial):(l(!0),null==r||r(e.element)))}),(t=>{throw e.in||l(!0),t}))}}),c=sa(s,t.ref);return i&&!n?null:(0,e.cloneElement)(t,{ref:c})}function dl(e,t,n){return e?(0,ll.jsx)(cl,Object.assign({},n,{component:e})):t?(0,ll.jsx)(ul,Object.assign({},n,{transition:t})):(0,ll.jsx)(al,Object.assign({},n))}const pl=e.forwardRef(((t,n)=>{const{flip:o,offset:a,placement:i,containerPadding:l,popperConfig:s={},transition:c,runTransition:u}=t,[d,p]=da(),[f,m]=da(),g=sa(p,n),h=tl(t.container),b=tl(t.target),[v,y]=(0,e.useState)(!t.show),w=Li(b,d,function({enabled:e,enableEvents:t,placement:n,flip:r,offset:o,fixed:a,containerPadding:i,arrowElement:l,popperConfig:s={}}){var c,u,d,p,f;const m=function(e){const t={};return Array.isArray(e)?(null==e||e.forEach((e=>{t[e.name]=e})),t):e||t}(s.modifiers);return Object.assign({},s,{placement:n,enabled:e,strategy:a?"fixed":s.strategy,modifiers:nl(Object.assign({},m,{eventListeners:{enabled:t,options:null==(c=m.eventListeners)?void 0:c.options},preventOverflow:Object.assign({},m.preventOverflow,{options:i?Object.assign({padding:i},null==(u=m.preventOverflow)?void 0:u.options):null==(d=m.preventOverflow)?void 0:d.options}),offset:{options:Object.assign({offset:o},null==(p=m.offset)?void 0:p.options)},arrow:Object.assign({},m.arrow,{enabled:!!l,options:Object.assign({},null==(f=m.arrow)?void 0:f.options,{element:l})}),flip:Object.assign({enabled:!!r},m.flip)}))})}({placement:i,enableEvents:!!t.show,containerPadding:l||5,flip:o,offset:a,arrowElement:f,popperConfig:s}));t.show&&v&&y(!1);const E=t.show||!v;if(Xi(d,t.onHide,{disabled:!t.rootClose||t.rootCloseDisabled,clickTrigger:t.rootCloseEvent}),!E)return null;const{onExit:x,onExiting:S,onEnter:k,onEntering:C,onEntered:_}=t;let O=t.children(Object.assign({},w.attributes.popper,{style:w.styles.popper,ref:g}),{popper:w,placement:i,show:!!t.show,arrowProps:Object.assign({},w.attributes.arrow,{style:w.styles.arrow,ref:m})});return O=dl(c,u,{in:!!t.show,appear:!0,mountOnEnter:!0,unmountOnExit:!0,children:O,onExit:x,onExiting:S,onExited:(...e)=>{y(!0),t.onExited&&t.onExited(...e)},onEnter:k,onEntering:C,onEntered:_}),h?r.createPortal(O,h):null}));pl.displayName="Overlay";const fl=pl;function ml(e,t){return e.classList?!!t&&e.classList.contains(t):-1!==(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")}const gl=e.createContext({prefixes:{},breakpoints:["xxl","xl","lg","md","sm","xs"],minBreakpoint:"xs"}),{Consumer:hl,Provider:bl}=gl;function vl(t,n){const{prefixes:r}=(0,e.useContext)(gl);return t||r[n]||n}function yl(){const{dir:t}=(0,e.useContext)(gl);return"rtl"===t}const wl=e.forwardRef((({className:e,bsPrefix:t,as:n="div",...r},o)=>(t=vl(t,"popover-header"),(0,ll.jsx)(n,{ref:o,className:ua()(e,t),...r}))));wl.displayName="PopoverHeader";const El=wl,xl=e.forwardRef((({className:e,bsPrefix:t,as:n="div",...r},o)=>(t=vl(t,"popover-body"),(0,ll.jsx)(n,{ref:o,className:ua()(e,t),...r}))));xl.displayName="PopoverBody";const Sl=xl;function kl(e,t){let n=e;return"left"===e?n=t?"end":"start":"right"===e&&(n=t?"start":"end"),n}function Cl(e="absolute"){return{position:e,top:"0",left:"0",opacity:"0",pointerEvents:"none"}}e.Component;const _l=e.forwardRef((({bsPrefix:e,placement:t="right",className:n,style:r,children:o,body:a,arrowProps:i,hasDoneInitialMeasure:l,popper:s,show:c,...u},d)=>{const p=vl(e,"popover"),f=yl(),[m]=(null==t?void 0:t.split("-"))||[],g=kl(m,f);let h=r;return c&&!l&&(h={...r,...Cl(null==s?void 0:s.strategy)}),(0,ll.jsxs)("div",{ref:d,role:"tooltip",style:h,"x-placement":m,className:ua()(n,p,m&&`bs-popover-${g}`),...u,children:[(0,ll.jsx)("div",{className:"popover-arrow",...i}),a?(0,ll.jsx)(Sl,{children:o}):o]})})),Ol=Object.assign(_l,{Header:El,Body:Sl,POPPER_OFFSET:[0,8]}),Nl=e.forwardRef((({bsPrefix:e,placement:t="right",className:n,style:r,children:o,arrowProps:a,hasDoneInitialMeasure:i,popper:l,show:s,...c},u)=>{e=vl(e,"tooltip");const d=yl(),[p]=(null==t?void 0:t.split("-"))||[],f=kl(p,d);let m=r;return s&&!i&&(m={...r,...Cl(null==l?void 0:l.strategy)}),(0,ll.jsxs)("div",{ref:u,style:m,role:"tooltip","x-placement":p,className:ua()(n,e,`bs-tooltip-${f}`),...c,children:[(0,ll.jsx)("div",{className:"tooltip-arrow",...a}),(0,ll.jsx)("div",{className:`${e}-inner`,children:o})]})}));Nl.displayName="Tooltip";const Dl=Object.assign(Nl,{TOOLTIP_OFFSET:[0,6]});function Il(e,t){return Il=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Il(e,t)}const Pl=e.createContext(null);var Tl="unmounted",Rl="exited",Al="entering",Ll="entered",Ml="exiting",Bl=function(t){var n,o;function a(e,n){var r;r=t.call(this,e,n)||this;var o,a=n&&!n.isMounting?e.enter:e.appear;return r.appearStatus=null,e.in?a?(o=Rl,r.appearStatus=Al):o=Ll:o=e.unmountOnExit||e.mountOnEnter?Tl:Rl,r.state={status:o},r.nextCallback=null,r}o=t,(n=a).prototype=Object.create(o.prototype),n.prototype.constructor=n,Il(n,o),a.getDerivedStateFromProps=function(e,t){return e.in&&t.status===Tl?{status:Rl}:null};var i=a.prototype;return i.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},i.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?n!==Al&&n!==Ll&&(t=Al):n!==Al&&n!==Ll||(t=Ml)}this.updateStatus(!1,t)},i.componentWillUnmount=function(){this.cancelNextCallback()},i.getTimeouts=function(){var e,t,n,r=this.props.timeout;return e=t=n=r,null!=r&&"number"!=typeof r&&(e=r.exit,t=r.enter,n=void 0!==r.appear?r.appear:t),{exit:e,enter:t,appear:n}},i.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t)if(this.cancelNextCallback(),t===Al){if(this.props.unmountOnExit||this.props.mountOnEnter){var n=this.props.nodeRef?this.props.nodeRef.current:r.findDOMNode(this);n&&function(e){e.scrollTop}(n)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Rl&&this.setState({status:Tl})},i.performEnter=function(e){var t=this,n=this.props.enter,o=this.context?this.context.isMounting:e,a=this.props.nodeRef?[o]:[r.findDOMNode(this),o],i=a[0],l=a[1],s=this.getTimeouts(),c=o?s.appear:s.enter;e||n?(this.props.onEnter(i,l),this.safeSetState({status:Al},(function(){t.props.onEntering(i,l),t.onTransitionEnd(c,(function(){t.safeSetState({status:Ll},(function(){t.props.onEntered(i,l)}))}))}))):this.safeSetState({status:Ll},(function(){t.props.onEntered(i)}))},i.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),o=this.props.nodeRef?void 0:r.findDOMNode(this);t?(this.props.onExit(o),this.safeSetState({status:Ml},(function(){e.props.onExiting(o),e.onTransitionEnd(n.exit,(function(){e.safeSetState({status:Rl},(function(){e.props.onExited(o)}))}))}))):this.safeSetState({status:Rl},(function(){e.props.onExited(o)}))},i.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},i.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},i.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,t.nextCallback=null,e(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},i.onTransitionEnd=function(e,t){this.setNextCallback(t);var n=this.props.nodeRef?this.props.nodeRef.current:r.findDOMNode(this),o=null==e&&!this.props.addEndListener;if(n&&!o){if(this.props.addEndListener){var a=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],i=a[0],l=a[1];this.props.addEndListener(i,l)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},i.render=function(){var t=this.state.status;if(t===Tl)return null;var n=this.props,r=n.children,o=(n.in,n.mountOnEnter,n.unmountOnExit,n.appear,n.enter,n.exit,n.timeout,n.addEndListener,n.onEnter,n.onEntering,n.onEntered,n.onExit,n.onExiting,n.onExited,n.nodeRef,_(n,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]));return e.createElement(Pl.Provider,{value:null},"function"==typeof r?r(t,o):e.cloneElement(e.Children.only(r),o))},a}(e.Component);function Fl(){}Bl.contextType=Pl,Bl.propTypes={},Bl.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Fl,onEntering:Fl,onEntered:Fl,onExit:Fl,onExiting:Fl,onExited:Fl},Bl.UNMOUNTED=Tl,Bl.EXITED=Rl,Bl.ENTERING=Al,Bl.ENTERED=Ll,Bl.EXITING=Ml;const jl=Bl;var zl=/([A-Z])/g,Ul=/^ms-/;function Wl(e){return function(e){return e.replace(zl,"-$1").toLowerCase()}(e).replace(Ul,"-ms-")}var $l=/^((translate|rotate|scale)(X|Y|Z|3d)?|matrix(3d)?|perspective|skew(X|Y)?)$/i;const Hl=function(e,t){var n="",r="";if("string"==typeof t)return e.style.getPropertyValue(Wl(t))||function(e,t){return function(e){var t=$i(e);return t&&t.defaultView||window}(e).getComputedStyle(e,t)}(e).getPropertyValue(Wl(t));Object.keys(t).forEach((function(o){var a=t[o];a||0===a?function(e){return!(!e||!$l.test(e))}(o)?r+=o+"("+a+") ":n+=Wl(o)+": "+a+";":e.style.removeProperty(Wl(o))})),r&&(n+="transform: "+r+";"),e.style.cssText+=";"+n};function Gl(e,t,n,r){var o,a;null==n&&(a=-1===(o=Hl(e,"transitionDuration")||"").indexOf("ms")?1e3:1,n=parseFloat(o)*a||0);var i=function(e,t,n){void 0===n&&(n=5);var r=!1,o=setTimeout((function(){r||function(e,t,n,r){if(void 0===n&&(n=!1),void 0===r&&(r=!0),e){var o=document.createEvent("HTMLEvents");o.initEvent("transitionend",n,r),e.dispatchEvent(o)}}(e,0,!0)}),t+n),a=Wi(e,"transitionend",(function(){r=!0}),{once:!0});return function(){clearTimeout(o),a()}}(e,n,r),l=Wi(e,"transitionend",t);return function(){i(),l()}}function Vl(e,t){const n=Hl(e,t)||"",r=-1===n.indexOf("ms")?1e3:1;return parseFloat(n)*r}function ql(e,t){const n=Vl(e,"transitionDuration"),r=Vl(e,"transitionDelay"),o=Gl(e,(n=>{n.target===e&&(o(),t(n))}),n+r)}function Kl(e){e.offsetHeight}function Ql(e){return e&&"setState"in e?r.findDOMNode(e):null!=e?e:null}const Yl=e.forwardRef((({onEnter:t,onEntering:n,onEntered:r,onExit:o,onExiting:a,onExited:i,addEndListener:l,children:s,childRef:c,...u},d)=>{const p=(0,e.useRef)(null),f=sa(p,c),m=e=>{f(Ql(e))},g=e=>t=>{e&&p.current&&e(p.current,t)},h=(0,e.useCallback)(g(t),[t]),b=(0,e.useCallback)(g(n),[n]),v=(0,e.useCallback)(g(r),[r]),y=(0,e.useCallback)(g(o),[o]),w=(0,e.useCallback)(g(a),[a]),E=(0,e.useCallback)(g(i),[i]),x=(0,e.useCallback)(g(l),[l]);return(0,ll.jsx)(jl,{ref:d,...u,onEnter:h,onEntered:v,onEntering:b,onExit:y,onExited:E,onExiting:w,addEndListener:x,nodeRef:p,children:"function"==typeof s?(e,t)=>s(e,{...t,ref:m}):e.cloneElement(s,{ref:m})})})),Xl={[Al]:"show",[Ll]:"show"},Jl=e.forwardRef((({className:t,children:n,transitionClasses:r={},onEnter:o,...a},i)=>{const l={in:!1,timeout:300,mountOnEnter:!1,unmountOnExit:!1,appear:!1,...a},s=(0,e.useCallback)(((e,t)=>{Kl(e),null==o||o(e,t)}),[o]);return(0,ll.jsx)(Yl,{ref:i,addEndListener:ql,...l,onEnter:s,childRef:n.ref,children:(o,a)=>e.cloneElement(n,{...a,className:ua()("fade",t,n.props.className,Xl[o],r[o])})})}));Jl.displayName="Fade";const Zl=Jl,es=e.forwardRef((({children:t,transition:n=Zl,popperConfig:r={},rootClose:o=!1,placement:a="top",show:i=!1,...l},s)=>{const c=(0,e.useRef)({}),[u,d]=(0,e.useState)(null),[p,f]=function(t){const n=(0,e.useRef)(null),r=vl(void 0,"popover"),o=vl(void 0,"tooltip"),a=(0,e.useMemo)((()=>({name:"offset",options:{offset:()=>{if(t)return t;if(n.current){if(ml(n.current,r))return Ol.POPPER_OFFSET;if(ml(n.current,o))return Dl.TOOLTIP_OFFSET}return[0,0]}}})),[t,r,o]);return[n,[a]]}(l.offset),m=sa(s,p),g=!0===n?Zl:n||void 0,h=Gi((e=>{d(e),null==r||null==r.onFirstUpdate||r.onFirstUpdate(e)}));return ol((()=>{u&&l.target&&(null==c.current.scheduleUpdate||c.current.scheduleUpdate())}),[u,l.target]),(0,e.useEffect)((()=>{i||d(null)}),[i]),(0,ll.jsx)(fl,{...l,ref:m,popperConfig:{...r,modifiers:f.concat(r.modifiers||[]),onFirstUpdate:h},transition:g,rootClose:o,placement:a,show:i,children:(o,{arrowProps:a,popper:i,show:l})=>{var s,d;!function(e,t){const{ref:n}=e,{ref:r}=t;e.ref=n.__wrapped||(n.__wrapped=e=>n(Ql(e))),t.ref=r.__wrapped||(r.__wrapped=e=>r(Ql(e)))}(o,a);const p=null==i?void 0:i.placement,f=Object.assign(c.current,{state:null==i?void 0:i.state,scheduleUpdate:null==i?void 0:i.update,placement:p,outOfBoundaries:(null==i||null==(s=i.state)||null==(d=s.modifiersData.hide)?void 0:d.isReferenceHidden)||!1,strategy:r.strategy}),m=!!u;return"function"==typeof t?t({...o,placement:p,show:l,...!n&&l&&{className:"show"},popper:f,arrowProps:a,hasDoneInitialMeasure:m}):e.cloneElement(t,{...o,placement:p,arrowProps:a,popper:f,hasDoneInitialMeasure:m,className:ua()(t.props.className,!n&&l&&"show"),style:{...t.props.style,...o.style}})}})}));es.displayName="Overlay";const ts=es;function ns(e,t,n){const[r]=t,o=r.currentTarget,a=r.relatedTarget||r.nativeEvent[n];a&&a===o||Ko(o,a)||e(...t)}Yo().oneOf(["click","hover","focus"]);const rs=({trigger:t=["hover","focus"],overlay:n,children:r,popperConfig:o={},show:a,defaultShow:i=!1,onToggle:l,delay:s,placement:c,flip:u=c&&-1!==c.indexOf("auto"),...d})=>{const p=(0,e.useRef)(null),f=sa(p,r.ref),m=ta(),g=(0,e.useRef)(""),[h,b]=ia(a,i,l),v=function(e){return e&&"object"==typeof e?e:{show:e,hide:e}}(s),{onFocus:y,onBlur:w,onClick:E}="function"!=typeof r?e.Children.only(r).props:{},x=(0,e.useCallback)((()=>{m.clear(),g.current="show",v.show?m.set((()=>{"show"===g.current&&b(!0)}),v.show):b(!0)}),[v.show,b,m]),S=(0,e.useCallback)((()=>{m.clear(),g.current="hide",v.hide?m.set((()=>{"hide"===g.current&&b(!1)}),v.hide):b(!1)}),[v.hide,b,m]),k=(0,e.useCallback)(((...e)=>{x(),null==y||y(...e)}),[x,y]),C=(0,e.useCallback)(((...e)=>{S(),null==w||w(...e)}),[S,w]),_=(0,e.useCallback)(((...e)=>{b(!h),null==E||E(...e)}),[E,b,h]),O=(0,e.useCallback)(((...e)=>{ns(x,e,"fromElement")}),[x]),N=(0,e.useCallback)(((...e)=>{ns(S,e,"toElement")}),[S]),D=null==t?[]:[].concat(t),I={ref:e=>{f(Ql(e))}};return-1!==D.indexOf("click")&&(I.onClick=_),-1!==D.indexOf("focus")&&(I.onFocus=k,I.onBlur=C),-1!==D.indexOf("hover")&&(I.onMouseOver=O,I.onMouseOut=N),(0,ll.jsxs)(ll.Fragment,{children:["function"==typeof r?r(I):(0,e.cloneElement)(r,I),(0,ll.jsx)(ts,{...d,show:h,onHide:S,flip:u,placement:c,popperConfig:o,target:p.current,children:n})]})};function os(){return os=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},os.apply(this,arguments)}function as(t){let{id:n,tip:r}=t;return e.createElement(rs,{placement:"auto",trigger:["click","hover","focus"],style:{display:"inline"},overlay:t=>e.createElement(Dl,os({id:n},t),r),rootClose:!0},e.createElement("img",{src:"/images/shop/icon-reminder.svg",className:"options-icon"}))}class is extends e.Component{constructor(e){super(e),this.state={text:e.outvar in e.data?e.data[e.outvar]:e.fallback?e.fallback:""},this.handleClick=this.handleClick.bind(this),this.props.target.construct(this.props.outvar,this.state.text)}handleClick(e){let t=e.target.value;this.setState({text:t}),this.props.target.update(this.props.outvar,t)}static getDerivedStateFromProps(e,t){return t.text!==e.data[e.outvar]?{text:e.data[e.outvar]}:null}render(){let t=this.props.id+this.props.outvar;return e.createElement("div",{className:"shop-line",key:this.props.id},e.createElement("label",{htmlFor:t,className:"form-label"},this.props.icon&&e.createElement("img",{src:"/images".concat(this.props.icon),className:"options-icon"}),this.props.title,":"),this.props.tip&&e.createElement(as,{id:this.props.id+"tooltip",tip:this.props.tip}),e.createElement("input",{type:"text",className:"form-control form-control-sm",id:t,onChange:this.handleClick,value:this.state.text}))}}class ls extends e.Component{constructor(e){super(e),this.state={variant:e.outvar in e.data?e.data[e.outvar]:e.variants[e.fallback?e.fallback:0]},this.handleClick=this.handleClick.bind(this),this.props.target.construct(this.props.outvar,this.state.variant)}handleClick(e){this.setState({...this.state,variant:e}),this.props.target.update(this.props.outvar,e)}static getDerivedStateFromProps(e,t){return t.variant!==e.data[e.outvar]?{variant:e.data[e.outvar]}:null}render(){let t=this.props.id+this.props.outvar;return e.createElement("div",{className:"shop-radio",key:this.props.id},e.createElement("div",{style:{display:"inline"},className:"shop-radio-label"},this.props.icon&&e.createElement("img",{src:"/images".concat(this.props.icon),className:"options-icon"}),this.props.title),this.props.tip&&e.createElement(as,{id:this.props.id+"tooltip",tip:this.props.tip}),e.createElement("div",{className:"d-block"},this.props.variants.map(((n,r)=>e.createElement("div",{className:"form-check shop-radio-variant ".concat(this.props.classes),key:t+n},e.createElement("input",{className:"form-check-input",type:"radio",name:t,id:t+n,checked:this.state.variant===n,onClick:()=>this.handleClick(n),onChange:()=>this.handleClick(n)}),e.createElement("label",{className:"form-check-label",htmlFor:t+n},n))))))}}class ss extends e.Component{constructor(e){super(e),this.state={checked:e.outvar in e.data?!!e.data[e.outvar]:!!e.fallback},this.handleClick=this.handleClick.bind(this),this.props.target.construct(this.props.outvar,this.state.checked)}handleClick(){let e=!this.state.checked;this.setState({checked:e}),this.props.target.update(this.props.outvar,e)}static getDerivedStateFromProps(e,t){return t.checked!==e.data[e.outvar]?{checked:e.data[e.outvar]}:null}render(){let t=this.props.id+this.props.outvar;return e.createElement("div",{className:"shop-switch",key:this.props.id},e.createElement("div",{className:"form-check form-switch",key:t},e.createElement("input",{className:"form-check-input",type:"checkbox",role:"switch",id:t,checked:this.state.checked,onClick:this.handleClick,onChange:this.handleClick}),e.createElement("label",{className:"form-check-label",htmlFor:t,style:{display:"inline"}},this.props.icon&&e.createElement("img",{src:"/images".concat(this.props.icon),className:"options-icon"}),this.props.title),this.props.tip&&e.createElement(as,{id:this.props.id+"tooltip",tip:this.props.tip})))}}class cs extends e.Component{constructor(e){super(e),this.state={text:e.outvar in e.data?e.data[e.outvar].text:e.fallback?e.fallback.text:"",checked:e.outvar in e.data?e.data[e.outvar].checked:!!e.fallback&&e.fallback.checked},this.handleText=this.handleText.bind(this),this.handleCheck=this.handleCheck.bind(this),this.props.target.construct(this.props.outvar,this.state)}handleText(e){let t={...this.state,text:e.target.value};this.setState(t),this.props.target.update(this.props.outvar,t)}handleCheck(){let e={...this.state,checked:!this.state.checked};this.setState(e),this.props.target.update(this.props.outvar,e)}static getDerivedStateFromProps(e,t){return t.checked!==e.data[e.outvar].checked||t.text!==e.data[e.outvar].text?{checked:e.data[e.outvar].checked,text:e.data[e.outvar].text}:null}render(){let t=this.props.id+this.props.outvar;return e.createElement("div",{className:"shop-switch-line",key:this.props.id},e.createElement("div",{className:"form-check form-switch",key:t},e.createElement("input",{className:"form-check-input",type:"checkbox",role:"switch",id:t+"switch",checked:this.state.checked,onClick:this.handleCheck,onChange:this.handleCheck}),e.createElement("label",{className:"form-check-label",htmlFor:t+"switch"},this.props.icon&&e.createElement("img",{src:"/images".concat(this.props.icon),className:"options-icon"}),this.props.title),this.props.tip&&e.createElement(as,{id:this.props.id+"tooltip",tip:this.props.tip})),e.createElement("input",{type:"text",className:"form-control form-control-sm",id:t+"line",onChange:this.handleText,value:this.state.text,disabled:!this.state.checked}))}}(0,qo.add_operation)("lower",(e=>e&&e.toLowerCase(e))),(0,qo.add_operation)("upper",(e=>e&&e.toUpperCase(e))),(0,qo.add_operation)("capitalize",(e=>e&&e.capitalizeFirstLetter(e)));const us={Radio:function(t,n,r,o){let{title:a,variants:i,outvar:l,fallback:s,icon:c,tip:u,classes:d}=o;return e.createElement(ls,{target:t,title:a,variants:i,outvar:l,icon:c,tip:u,key:n,fallback:s,classes:d,id:n,data:r})},Switch:function(t,n,r,o){let{title:a,fallback:i,outvar:l,icon:s,tip:c,classes:u}=o;return e.createElement(ss,{target:t,title:a,fallback:i,outvar:l,icon:s,tip:c,key:n,id:n,data:r,classes:u})},Line:function(t,n,r,o){let{title:a,fallback:i,outvar:l,icon:s,tip:c,classes:u}=o;return e.createElement(is,{target:t,title:a,fallback:i,outvar:l,icon:s,tip:c,key:n,id:n,data:r,classes:u})},SwitchLine:function(t,n,r,o){let{title:a,fallback:i,outvar:l,icon:s,tip:c,classes:u}=o;return e.createElement(cs,{target:t,title:a,fallback:i,outvar:l,icon:s,tip:c,key:n,id:n,data:r,classes:u})},Label:function(t,n,r,o){let{content:a}=o;const i=(0,qo.apply)(a,r).flat().join("");return e.createElement("div",{id:n+"label",key:n+"label",className:"options-label"},i)},Default:function(t,n){return e.createElement("div",{key:t+n,style:{background:"red"}},"UNIMPLEMENTED")}},ds=e=>Object.prototype.toString.call(e).slice(8,-1).toLowerCase();function ps(e){return{crate_mode:e.crate_mode}}function fs(e,t){let n=ds(e),r={};return"array"===n?e.map(((e,n)=>{Object.assign(r,fs(e,t))})):"object"===n&&("string"!==ds(e.type)||"object"!==ds(e.args)&&"array"!==ds(e.items)?Object.assign(r,fs((0,qo.apply)(e,t),t)):e.type in us?r[e.args.outvar]=t[e.args.outvar]:"Group"===e.type&&Object.assign(r,fs((0,qo.apply)(e.items,t),t))),r}const ms={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};let gs;const hs=new Uint8Array(16);function bs(){if(!gs&&(gs="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!gs))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return gs(hs)}const vs=[];for(let e=0;e<256;++e)vs.push((e+256).toString(16).slice(1));const ys=function(e,t,n){if(ms.randomUUID&&!t&&!e)return ms.randomUUID();const r=(e=e||{}).random||(e.rng||bs)();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,t){n=n||0;for(let e=0;e<16;++e)t[n+e]=r[e];return t}return function(e,t=0){return vs[e[t+0]]+vs[e[t+1]]+vs[e[t+2]]+vs[e[t+3]]+"-"+vs[e[t+4]]+vs[e[t+5]]+"-"+vs[e[t+6]]+vs[e[t+7]]+"-"+vs[e[t+8]]+vs[e[t+9]]+"-"+vs[e[t+10]]+vs[e[t+11]]+vs[e[t+12]]+vs[e[t+13]]+vs[e[t+14]]+vs[e[t+15]]}(r)},ws={eem:e=>e.options_data&&!1!==e.options_data.ext_pwr&&!1!==e.options_data.mono_eem?!0===e.options_data.ext_pwr?0:!0===e.options_data.mono_eem||"1 EEM"===e.options_data.n_eem?1:"3 EEM"===e.options_data.n_eem?3:e.consumes&&e.consumes.eem||0:e.consumes&&e.consumes.eem||0,clk:e=>e.options_data&&(!0===e.options_data.ext_clk||e.options_data.ext_clk&&!0===e.options_data.ext_clk.checked)?0:e.consumes&&e.consumes.clk||0,idc:e=>e.consumes&&e.consumes.idc||0,hp:e=>e.consumes&&e.consumes.hp||0};function Es(e){return(t,n)=>{let r=0;for(let o=n+1;o<t.length&&(r+=ws[e](t[o]),!t[o].resources||!t[o].resources.find(((t,n)=>t.name===e)));o++);return r}}const xs={eem:Es("eem"),clk:Es("clk"),idc:Es("idc"),hp:Es("hp")};function Ss(e){return Math.trunc(e/4)}const ks={reminder:{priority:1,icon:"/images/shop/icon-reminder.svg",color:"#0d3547"},warning:{priority:2,icon:"/images/shop/icon-warning.svg",color:"#c75e5e"}},Cs=(e,t)=>e.find((e=>e.name===t)),_s=e=>(t,n,r)=>{const o=Cs(r,e);return o.occupied>o.max},Os=e=>(t,n,r)=>ws[e](t[n])>0&&!((e,t,n)=>e.slice(0,t).find((e=>e.resources&&Cs(e.resources,n))))(t,n,e),Ns={eem_resource:{level:"warning",trigger:_s("eem"),message:"Insufficient EEM connectors"},no_eem_source:{level:"warning",trigger:Os("eem"),message:"This card needs a card that provides a EEM connector (e.g. Kasli) at its left."},idc_resource:{level:"warning",trigger:_s("idc"),message:"Insufficient IDC connectors."},no_idc_source:{level:"warning",trigger:Os("idc"),message:"Should be after a Zotino or a HD68-IDC or with another IDC adapter."},clk_resource:{level:"warning",trigger:_s("clk"),message:"Insufficient clock connectors."},no_clk_source:{level:"warning",trigger:Os("clk"),message:"This card needs either a card that provides a clock source (e.g. Kasli or Clocker) at its left or use an external clock source."},eem_wiring_constraint:{level:"reminder",trigger:("eem",(e,t,n)=>{const r=((e,t,n)=>e.slice(t+1).findIndex((e=>e.resources&&Cs(e.resources,n)))+t+1)(e,t,"eem");return r-t==1}),message:"Due to wiring constraints, the carrier can only connect to EEM cards immediately at its right, without crossing another carrier."},default:{level:"warning",trigger:(e,t,n)=>!0,message:"This item has unimplemented warning"}};function Ds(e){let t={priority:0,icon:null};for(const n of e)ks[n.level].priority>t.priority&&(t=ks[n.level]);return t}function Is(e){const t=ks[e];return{icon:t.icon,color:t.color}}const Ps={overfit:{message:"You have reached the maximum number of slots allowed for this crate. Consider removing cards.",level:"warning",trigger:(e,t)=>{const n=Ys.getState().crateParams(e.crate_mode).hp;return t>n&&n>0}},underfit_rack:{message:"The selected cards fit in a 42hp desktop crate, consider switching to it for a more compact system",level:"reminder",trigger:(e,t)=>{const n=Ys.getState().crate_modes.desktop.hp;return e.crate_mode===Ys.getState().crate_modes.rack.id&&t<n}}};function Ts(e){const t=xs.hp(e.items,-1);let n=[];return Object.entries(Ps).forEach(((r,o)=>{let[a,i]=r;i.trigger(e,t)&&n.push({...i,id:a,trigger:void 0})})),[n,t]}function Rs(e){const t=Ys.getState().crate_options,n=Ys.getState().order_options,r=Ys.getState().order_options_data;return JSON.stringify({crates:Array.from(e.map(((e,n)=>({items:Array.from(e.items.map(((e,t)=>({pn:e.name_number,options:e.options_data&&e.options?fs(e.options,e.options_data):null})))),type:e.crate_mode,options:fs(t,e.options_data)})))),options:fs(n,r)},null,2)}const As={OK:0,Empty:1,Invalid:2};function Ls(e){return e&&""!==e.trim()?e&&!e.match(/^\w+([\+\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/)?As.Invalid:As.OK:As.Empty}function Ms(t){let{options:n,data:r,target:o,id:a}=t,i=ds(n);return"array"===i?Array.from(n.map(((e,t)=>Ms({options:e,data:r,target:o,id:a+t})))):"object"===i?"string"!==ds(n.type)||"object"!==ds(n.args)&&"array"!==ds(n.items)?Ms({options:(0,qo.apply)(n,r),data:r,target:o,id:a}):n.type in us?us[n.type](o,a+n.type,r,n.args):"Group"===n.type?e.createElement("div",{className:"border rounded options-group",key:a+"group"},Ms({options:(0,qo.apply)(n.items,r),data:r,target:o,id:a})):us.Default(n.type,a+"missing"):void 0}function Bs(e){let{options:t,data:n}=e,r=ds(t);return"array"===r?Array.from(t.map(((e,t)=>Bs({options:e,data:n})))).filter(((e,t)=>!!e)).flat():"object"===r?"string"===ds(t.title)?t:Bs({options:(0,qo.apply)(t,n),data:n}):null}const Fs=e=>{let t={};return Object.entries(e).forEach(((e,n)=>{let[r,o]=e;t[o.name_number]=r})),t},js=(e,t)=>({cards:Fo.items,groups:Fo.columns.catalog,cards_list:jo,currency:Fo.currency,pn_to_cards:Fs(Fo.items),getCardDescription:e=>t().cards[t().cards_list[e]],getCardDescriptionByPn:e=>t().cards[t().pn_to_cards[e]],cardIndexById:e=>t().cards_list.findIndex((t=>e===t))}),zs=(e,t)=>({notificationCrateId:null,notificationCardIndex:null,notificationTimer:null,_showNotification:(t,n)=>e((e=>({notificationCrateId:t,notificationCardIndex:n,notificationTimer:setTimeout((()=>{e.hideNotification()}),5e3)}))),showNotification:(e,n)=>{t().hideNotification(),setTimeout((()=>t()._showNotification(e,n)),100)},hideNotification:()=>e((e=>({notificationCrateId:null,notificationCardIndex:null,notificationTimer:e.notificationTimer&&clearTimeout(e.notificationTimer)||null})))}),Us=(e,t)=>({search_index:Array.from(Object.values(Fo.items).map(((e,t)=>[(e.name+" "+e.name_number+" "+e.name_codename).toLowerCase(),e.id]))),search_bar_value:"",listed_cards:[],updateSearchBar:n=>e((e=>({search_bar_value:n,listed_cards:n.length>0?Array.from(t().search_index.filter(((e,t)=>e[0].includes(n.toLowerCase()))).map(((e,n)=>{let[r,o]=e;return t().cards_list.findIndex((e=>e===o))}))):[]})))}),Ws=(e,t)=>({crate_modes:Fo.crateModes,modes_order:Fo.crateModeOrder,crateParams:e=>t().crate_modes[e]}),$s=(e,t)=>({crate_options:Fo.crateOptions.options,crate_prices:Fo.crateOptions.prices,fillExtCrateData:t=>e((e=>({crates:e.crates.map(((e,n)=>{if(t===e.id){const t=e.options_data||{};return{...e,options_data:{...t,ext_data:ps(e)}}}return e}))}))),_updateCrateOption:(t,n)=>e((e=>({crates:e.crates.map(((e,r)=>{if(t===e.id){const t=e.options_data||{};return{...e,options_data:{...t,...n}}}return e}))}))),updateCrateOptions:(e,n)=>{t().fillExtCrateData(e),t().fillOrderExtData(),t()._updateCrateOption(e,n),t()._updateTotalOrderPrice()}}),Hs=(e,t)=>({order_options:Fo.orderOptions.options,order_prices:Fo.orderOptions.prices,shipping_summary:Fo.orderOptions.shippingSummary,order_options_data:{},fillOrderExtData:()=>e((e=>{return{order_options_data:{...e.order_options_data,ext_data:(t=e.crates,n=e.modes_order,{has_crate:t.filter((e=>n.includes(e.crate_mode))).length>=1})}};var t,n})),_updateOrderOptions:t=>e((e=>({order_options_data:{...e.order_options_data,...t}}))),updateOrderOptions:e=>{t()._updateOrderOptions(e),t()._updateTotalOrderPrice(),t().fillOrderExtData()}}),Gs=(e,t)=>({isTouch:window.isTouchEnabled(),isMobile:window.deviceIsMobile(),sideMenuIsOpen:!1,showCardAddedFeedback:!1,showNoDestination:!1,timerAdded:null,_switchSideMenu:()=>e((e=>({sideMenuIsOpen:!e.sideMenuIsOpen}))),switchSideMenu:()=>{t().sideMenuIsOpen||t().hideNotification(),t()._switchSideMenu()},cardAdded:()=>e((e=>({showCardAddedFeedback:!0,showNoDestination:!1,timerAdded:(e.timerAdded?clearTimeout(e.timerAdded):null)||e.isMobile&&setTimeout((()=>{t()._endCardAdded()}),2e3)}))),noDestinationWarning:()=>e((e=>({showCardAddedFeedback:!0,showNoDestination:!0,timerAdded:(e.timerAdded?clearTimeout(e.timerAdded):null)||setTimeout((()=>{t()._endCardAdded()}),2e3)}))),_endCardAdded:()=>e((e=>({showCardAddedFeedback:!1,timerAdded:e.timerAdded?clearTimeout(e.timerAdded):null})))}),Vs=(e,t)=>({importShouldOpen:!1,importValue:{value:"",error:As.OK},openImport:()=>e((e=>({importShouldOpen:!0}))),closeImport:()=>e((e=>({importShouldOpen:!1}))),_loadDescription:()=>e((e=>{const t=function(e){const t=JSON.parse(e),n=t.crates,r=Ys.getState().getCardDescriptionByPn,o=Array.from(n.map(((e,t)=>({id:"no_crate"===e.type?"spare":"crate"+t,name:"no_crate"===e.type?"Spare cards":void 0,options_data:e.options,crate_mode:e.type,items:Array.from(e.items.map(((e,t)=>({...r(e.pn),id:ys(),options_data:e.options||{}})))),warnings:[],occupiedHP:0}))));return{order_options_data:t.options,crates:o}}(e.importValue.value);return{importShouldOpen:!1,crates:t.crates,order_options_data:t.order_options_data}})),loadDescription:()=>{t()._loadDescription(),t().fillOrderExtData(),t().crates.forEach(((e,n)=>{t().fillExtData(e.id),t().fillWarnings(e.id),t().fillExtCrateData(e.id)})),t()._updateTotalOrderPrice(),t().showNotification(t().active_crate,null)},updateImportDescription:t=>e((e=>{return{importValue:{value:t,error:(n=t,n&&""!==n.trim()?n&&!function(e){let t,n;try{const r=JSON.parse(e);t=r.crates,n=r.options}catch(e){return!1}if(!n)return!1;const r=Ys.getState().crate_modes,o=Ys.getState().modes_order,a=Ys.getState().pn_to_cards;try{for(const e of t){if(!(e.type&&e.items&&e.options&&e.type in r))return!1;for(const t of e.items)if(!(t.pn in a)||void 0===t.options)return!1}}catch(e){return!1}return 1===t.filter((e=>!o.includes(e.type))).length&&"no_crate"===t[t.length-1].type}(n)?As.Invalid:As.OK:As.Empty)}};var n}))}),qs=(e,t)=>({isProcessing:!1,shouldShowRFQFeedback:!1,processingResult:{status:As.OK,message:""},API_RFQ:Fo.API_RFQ,email:{value:"",error:null},note:{value:"",error:As.OK},description:"",shouldShowDescription:!1,updateEmail:t=>e((e=>({email:{value:t,error:Ls(t)}}))),updateNote:t=>e((e=>{return{note:{value:t,error:(n=t,n&&""!==n.trim()?As.OK:As.Empty)}};var n})),resetEmailValidation:()=>e((e=>({email:{value:e.email.value,error:As.OK}}))),_revalidateForm:()=>e((e=>({email:{value:e.email.value,error:Ls(e.email.value)},note:{value:e.note.value,error:Ls(e.note.value)}}))),updateDescription:()=>e((e=>({description:Rs(e.crates)}))),showDescription:()=>e((e=>({description:Rs(e.crates),shouldShowDescription:!0}))),closeDescription:()=>e((e=>({shouldShowDescription:!1}))),_submitForm:()=>e((e=>({isProcessing:!0}))),finishSubmitForm:t=>e((e=>({isProcessing:!1,shouldShowRFQFeedback:!0,processingResult:t}))),submitDisabled:()=>t().email.error!==As.OK,submitForm:()=>{t().updateDescription(),t()._revalidateForm(),t()._submitForm(),t().submitDisabled()||fetch(t().API_RFQ,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:t().email.value,note:t().note.value,configuration:t().description})}).then((e=>{if(200!==e.status)throw Error("Response status is not OK: "+e.status+".\n"+e);t().finishSubmitForm({status:As.OK,message:"We've received your request and will be in contact soon."})}),(e=>{console.error("Request rejected, reason:",e),t().finishSubmitForm({status:As.Invalid,message:"We cannot receive your request. Try using the export by coping the configuration and send it to us at sales@m-labs.hk"})})).catch((e=>{console.error("Request failed, reason:",e),t().finishSubmitForm({status:As.Invalid,message:"We cannot receive your request. Try using the export by coping the configuration and send it to us at sales@m-labs.hk"})}))},closeRFQFeedback:()=>e((e=>({shouldShowRFQFeedback:!1})))}),Ks=(e,t)=>({highlighted:{crate:"",card:0},highlightedTimer:null,highlightCard:(n,r)=>e((e=>({highlighted:{crate:n,card:r},highlightedTimer:(e.highlightedTimer?clearTimeout(e.highlightedTimer):null)||e.isTouch&&setTimeout((()=>{t().highlightReset()}),2e3)}))),highlightReset:()=>e((e=>({highlighted:{crate:"",card:0},highlightedTimer:e.highlightedTimer?clearTimeout(e.highlightedTimer):null})))}),Qs=(e,t)=>({crates:Fo.columns.crates,active_crate:"crate0",_defaultCrates:Array.from(Fo.columns.crates),total_order_price:0,_newCrate:t=>e((e=>({crates:e.crates.toSpliced(-1,0,{...e._defaultCrates[0],id:t||"crate"+e.crates.length}),active_crate:t||"crate"+e.crates.length}))),_delCrate:t=>e((e=>({crates:e.crates.filter((n=>n.id!==t||!e.modes_order.includes(n.crate_mode))),active_crate:e.active_crate===t?null:e.active_crate}))),_setCrateMode:(t,n)=>e((e=>({crates:e.crates.map(((e,r)=>e.id===t?{...e,crate_mode:n}:e))}))),setActiveCrate:t=>e((e=>({active_crate:t}))),_addCardFromCatalog:(t,n,r)=>e((e=>{const o=("array"===ds(n)?n:[n]).map(((t,n)=>e.cards_list[t])),a=t||e.active_crate;return a?{crates:e.crates.map(((t,n)=>a===t.id?(r=null!=r?r:t.items.length,{...t,items:t.items.toSpliced(r,0,...o.map(((t,n)=>({...e.cards[t],id:ys()}))))}):t))}:{}})),_moveCard:(t,n,r,o)=>e((e=>{const a=e.crates.find(((e,n)=>t===e.id)).items[n];return{crates:e.crates.map(((e,i)=>{if(r===t&&r===e.id){let t=Array.from(e.items),r=t.splice(n,1)[0];return t.splice(o,0,r).filter(((e,t)=>!!e)),{...e,items:t}}return r===e.id?{...e,items:e.items.toSpliced(o,0,a)}:t===e.id?{...e,items:e.items.toSpliced(o,1)}:e}))}})),_deleteCard:(t,n)=>e((e=>({crates:e.crates.map(((e,r)=>t===e.id?{...e,items:e.items.toSpliced(n,1)}:e))}))),_clearCrate:t=>e((e=>({crates:e.crates.map(((e,n)=>t===e.id?{...e,items:[]}:e))}))),clearAll:()=>e((e=>({crates:e._defaultCrates}))),_updateOptions:(t,n,r)=>e((e=>({crates:e.crates.map(((e,o)=>{if(t===e.id){let t=Array.from(e.items);return t[n]={...t[n],options_data:{...t[n].options_data,...r}},{...e,items:t}}return e}))}))),fillWarnings:n=>e((e=>({crates:e.crates.map(((e,r)=>{if(n===e.id){let n=Array.from(e.items);const r=!!t().crateParams(e.crate_mode).warnings_disabled;n=function(e,t){return e.map(((n,r)=>(n.counted_resources=t?[]:function(e,t){if(!e[t].resources)return null;let n=[];return e[t].resources.forEach(((r,o)=>{xs[r.name]&&n.push({name:r.name,occupied:xs[r.name](e,t),max:r.max})})),n}(e,r),n)))}(n,r),n=function(e,t){return e.map(((n,r)=>n.warnings?(n.show_warnings=t?[]:n.warnings.map(((t,o)=>Ns[t]?Ns[t].trigger(e,r,n.counted_resources)?{trigger:void 0,name:t,...Ns[t]}:null:Ns.default)).filter(((e,t)=>!!e)),n):n))}(n,r);const[o,a]=Ts(e);return{...e,items:n,warnings:o,occupiedHP:a}}return e}))}))),fillExtData:t=>e((e=>({crates:e.crates.map(((e,n)=>{if(t===e.id){let t=Array.from(e.items);return t=t.map(((e,n)=>e.options?(e.options_data||(e.options_data={}),e.options_data.ext_data=function(e,t){return{has_other_dio:e.filter(((e,n)=>t!==n&&e.name&&e.name.endsWith("-TTL"))).length>0,has_dds:e.filter(((e,t)=>!("DDS"!==e.name||"4410"!==e.name_number||e.options_data&&e.options_data.mono_eem))).length>0,has_sampler:e.filter(((e,t)=>!("Sampler"!==e.name||e.options_data&&e.options_data.mono_eem))).length>0}}(t,n),e):e)),{...e,items:Array.from(t)}}return e}))}))),_updateTotalOrderPrice:()=>e((e=>{let n=0;t().crates.forEach(((e,r)=>{n+=t().crate_modes[e.crate_mode].price;const o=Bs({options:t().crate_prices,data:e.options_data||{}});n+=o?o.reduce(((e,t)=>e+t.price),0):0,e.items.forEach(((e,t)=>{n+=e.price}))}));const r=Bs({options:t().order_prices,data:t().order_options_data||{}});return n+=r?r.reduce(((e,t)=>e+t.price),0):0,{total_order_price:n}})),newCrate:()=>{const e="crate"+t().crates.length;t()._newCrate(e),t().fillExtData(e),t().fillExtCrateData(e),t().fillOrderExtData(),t().fillWarnings(e),t()._updateTotalOrderPrice()},setCrateMode:(e,n)=>{t()._setCrateMode(e,n),t().fillExtData(e),t().fillExtCrateData(e),t().fillOrderExtData(),t().fillWarnings(e),t().setActiveCrate(e),t()._updateTotalOrderPrice()},delCrate:e=>{t()._delCrate(e),t().fillOrderExtData()},addCardFromCatalog:(e,n,r,o)=>{const a=e||t().active_crate;if(!a)return console.warn("No destination"),t().noDestinationWarning(),{};t().showNotification(a,r),t()._addCardFromCatalog(a,n,r),t().fillExtData(a),t().fillWarnings(a),t().setActiveCrate(a),t()._updateTotalOrderPrice(),o||t().cardAdded()},moveCard:(e,n,r,o)=>{t()._moveCard(e,n,r,o),t().fillExtData(r),t().fillWarnings(r),t().setActiveCrate(r),t()._updateTotalOrderPrice(),e!==r&&(t().fillExtData(e),t().fillWarnings(e))},deleteCard:(e,n)=>{t()._deleteCard(e,n),t().fillExtData(e),t().fillWarnings(e),t()._updateTotalOrderPrice(),e===t().highlighted.crate&&n===t().highlighted.card&&t().highlightReset()},clearCrate:e=>{t()._clearCrate(e),t().fillWarnings(e)},updateOptions:(e,n,r)=>{t()._updateOptions(e,n,r),t().fillExtData(e),t().fillWarnings(e)},initExtData:()=>{t().fillOrderExtData(),t().crates.forEach(((e,n)=>{t().fillExtData(e.id),t().fillExtCrateData(e.id)})),t()._updateTotalOrderPrice()}}),Ys=(Xs=function(){return{...zs(...arguments),...js(...arguments),...Us(...arguments),...Ws(...arguments),...Qs(...arguments),...qs(...arguments),...Gs(...arguments),...Ks(...arguments),...Vs(...arguments),...$s(...arguments),...Hs(...arguments)}})?Bo(Xs,undefined):Bo;var Xs,Js;function Zs(t){let{aside:n,main:r}=t;const o=Ys((e=>e.sideMenuIsOpen)),a=Ys((e=>e.switchSideMenu)),i=Ys((e=>e.showCardAddedFeedback)),l=Ys((e=>e.showNoDestination));return e.createElement("div",{className:"layout"},e.createElement("aside",{className:"aside "+(o?"menu-opened":"")},n),o?e.createElement("section",{className:"main",onClick:a},r):e.createElement("section",{className:"main"},r),i?l?e.createElement("div",{className:"feedback-add-failure"},"No cards added: all crates are closed"):e.createElement("div",{className:"feedback-add-success"},"✓ added"):null)}function ec(){return ec=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ec.apply(this,arguments)}function tc(t){let{card_index:n}=t;const r=Ys((e=>e.getCardDescription)),o=Ys((e=>e.currency)),a=Ys((e=>e.addCardFromCatalog)),i=r(n),l=i.specs&&i.specs.length>0&&e.createElement("ul",null,i.specs.map(((t,n)=>e.createElement("li",{key:n},t)))),s=i.datasheet_file&&i.datasheet_name&&e.createElement("div",{className:"ds"},e.createElement("span",{className:"doc-icon"}),e.createElement("a",{href:i.datasheet_file,target:"_blank",rel:"noopener noreferrer"},i.datasheet_name));return e.createElement("section",{className:"productItem"},e.createElement("div",{className:"content"},e.createElement("h3",{style:{marginBottom:i.name_codename?"5px":"20px"}},i.name_number," ",i.name),i.name_codename?e.createElement("p",null,i.name_codename):null,e.createElement("div",{className:"price"},"".concat(o," ").concat(Wo(i.price))),l,s),e.createElement("div",{className:"content"},e.createElement("button",{onClick:()=>a(null,n,null)},e.createElement("img",{src:"/images/shop/icon-add.svg",alt:"add"})),e.createElement(co,{draggableId:i.id+n,index:n},((t,n)=>e.createElement(e.Fragment,null,e.createElement("img",ec({ref:t.innerRef},t.draggableProps,t.dragHandleProps,{style:zo(t.draggableProps.style,n,!0),src:i.image})),n.isDragging&&e.createElement("img",{className:"simclone",src:i.image}))))))}function nc(){const t=Ys((e=>e.groups)),n=Ys((e=>e.cards)),r=t.categories.map((e=>({name:e.name,items:e.itemIds.map((e=>n[e]))})));let o=-1;const a=r.map(((t,n)=>e.createElement("div",{className:"accordion-item",key:"".concat(t.name)},e.createElement("h2",{className:"accordion-header"},e.createElement("button",{className:"accordion-button collapsed",type:"button","data-bs-toggle":"collapse","data-bs-target":"#collapse".concat(n),"aria-expanded":"true","aria-controls":"collapse".concat(n)},t.name)),e.createElement("div",{id:"collapse".concat(n),className:"accordion-collapse collapse","aria-labelledby":"headingOne","data-bs-parent":"#accordion_categories"},e.createElement("div",{className:"accordion-body"},t.items.map((t=>(o++,e.createElement(tc,{card_index:o,key:t.id})))))))));return e.createElement("div",{className:"accordion accordion-flush",id:"accordion_categories"},a)}function rc(){const t=Ys((e=>e.search_bar_value)),n=Ys((e=>e.updateSearchBar));return e.createElement("div",{className:"search-catalog form-outline"},e.createElement("input",{type:"search",id:"search_bar",className:"search-catalog-input form-control",placeholder:"Search through cards",value:t,onChange:e=>n(e.target.value),"aria-label":"Search"}))}function oc(){const t=Ys((e=>e.listed_cards));return e.createElement(e.Fragment,null,t.map(((t,n)=>e.createElement(tc,{card_index:t,key:"searched_"+t}))))}function ac(){return e.createElement("div",{className:"gradient-bottom"})}function ic(){return ic=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ic.apply(this,arguments)}function lc(){const t=Ys((e=>e.groups)),n=(Ys((e=>e.cards)),Ys((e=>e.switchSideMenu))),r=Ys((e=>e.isMobile)),o=Ys((e=>e.listed_cards.length>0));return e.createElement(To,{droppableId:t.id,isDropDisabled:!1},(t=>e.createElement("div",ic({className:"catalog-container",ref:t.innerRef},t.droppableProps),e.createElement("div",{className:"catalog-bar"},e.createElement(rc,null),r?e.createElement("div",{className:"mobileCloseMenu"},e.createElement("button",{onClick:n},e.createElement("img",{src:"/images/shop/icon-close-white.svg",alt:"add"}))):null),o?e.createElement(oc,null):e.createElement(nc,null),t.placeholder&&e.createElement("div",{style:{display:"none"}},t.placeholder),e.createElement(ac,null))))}function sc(t){let{crate_index:n}=t;const r=Ys((e=>e.currency)),o=Ys((e=>e.crateParams)),a=Ys((e=>e.clearCrate)),i=Ys((e=>e.delCrate)),l=Ys((e=>e.crates[n].crate_mode)),s=Ys((e=>e.crates[n].id)),c=Ys((e=>e.crates[n].name)),u=Ys((e=>e.modes_order)).includes(l);let d=o(l);return e.createElement("tr",{key:"summary_crate_"+s},e.createElement("td",{className:"item-card-name"},c||d.name+" #"+n),e.createElement("td",{className:"price"},e.createElement("div",{className:"d-inline-flex"},u&&"".concat(r," ").concat(Wo(d.price)),e.createElement("button",{onClick:()=>a(s)},e.createElement("img",{src:"/images/shop/icon-clear.svg",alt:"empty crate"})),u?e.createElement("button",{onClick:()=>i(s)},e.createElement("img",{src:"/images/shop/icon-remove.svg",alt:"remove crate"})):e.createElement("span",{className:"span-with-margin"}))))}function cc(){return cc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},cc.apply(this,arguments)}function uc(t){let{crate_index:n,card_index:r}=t;const o=Ys((e=>e.crates[n].items[r].show_warnings),Go),a=Ds(o);return e.createElement(rs,{placement:"bottom",trigger:["click","hover","focus"],overlay:t=>{let{arrowProps:n,hasDoneInitialMeasure:i,show:l,style:s,...c}=t;return e.createElement("div",cc({className:"k-popup-warning",style:{...s,backgroundColor:a.color}},c),o.map(((t,n)=>e.createElement("p",{className:"rule warning",key:"warnmsg_".concat(r,"_").concat(t.name)},e.createElement("i",null,t.message)))))},rootClose:!0},e.createElement("img",{className:"alert-warning p-0",src:a.icon}))}function dc(t){let{crate_index:n,card_index:r}=t;const o=Ds(Ys((e=>e.crates[n].items[r].show_warnings),Go));return o.priority===ks.warning.priority?e.createElement("img",{className:"alert-warning align-self-start d-block",src:o.icon}):e.createElement("span",{className:"alert-warning align-self-start d-block"})}function pc(t){const n=e.useRef(null),r=e.useRef(t);return e.useLayoutEffect((()=>{r.current=t})),e.useEffect((()=>{const e=e=>{const t=n.current;t&&!t.contains(e.target)&&r.current(e)};return document.addEventListener("mousedown",e),document.addEventListener("touchstart",e),()=>{document.removeEventListener("mousedown",e),document.removeEventListener("touchstart",e)}}),[]),n}function fc(){return fc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},fc.apply(this,arguments)}function mc(t){let{id:n,tip:r,content:o,sideMenuIsOpen:a,show:i,onHide:l}=t;return e.createElement(rs,{placement:"top",trigger:["click","hover"],style:{display:"inline"},show:i,overlay:t=>e.createElement(Dl,fc({id:n},t),r),rootClose:!a,onToggle:l,popperConfig:{strategy:"fixed"}},o)}function gc(t){let{options:n,data:r,target:o,id:a,big:i,first:l,last:s,options_class:c,sideMenuIsOpen:u,displayNotification:d,onHideNotification:p}=t;const[f,m]=(0,e.useState)(!1),g=pc((e=>{"mousedown"===e.type&&m(!1)}));let h="overlayVariant border rounded ".concat(i?"overlay-bigcard":"overlay-smallcard"," ").concat(!i&&l?"overlay-first":""," ").concat(!i&&s?"overlay-last":""," ").concat(c||"");return e.createElement("div",{ref:g},e.createElement(mc,{id:"processed_options_notification"+a,tip:"Customization options available",sideMenuIsOpen:u,show:d,onHide:p,content:e.createElement("img",{className:"alert-info",src:f?"/images/shop/icon-close.svg":"/images/shop/icon-customize.svg",onClick:e=>{m(!f)}})}),e.createElement("div",{style:{display:f?"flex":"none"},className:h},e.createElement(Ms,{options:n,data:r,key:"processed_options_"+a,id:"processed_options_"+a,target:o})))}function hc(t){let{id:n,options:r,data:o}=t;const[a,i]=(0,e.useState)(!1),[l,s]=(0,e.useState)({x:0,y:0}),[c,u]=(0,e.useState)({w:0,h:0});let d=fs(r,o);const p=()=>{i(!1),document.removeEventListener("scroll",g,!0)},f=pc(p),m=()=>{let e=document.getElementById(n+"img");if(!e)return void document.removeEventListener("scroll",g,!0);let t=e.getBoundingClientRect(),r=(t.left+t.right)/2,o=(t.top+t.bottom)/2;r+c.w>window.innerWidth?s({x:r-c.w-20,y:o-c.h/2}):s({x:r-c.w/2,y:o-c.h-20})},g=e=>{e.target!==document.getElementById(n)&&p()};return(0,e.useEffect)((()=>{if(a){let e=document.getElementById(n),t=e.offsetWidth,r=e.offsetHeight;u({w:t,h:r}),m()}}),[a]),(0,e.useEffect)((()=>{a&&m()}),[a,c]),e.createElement("div",{ref:f},e.createElement("img",{className:"alert-info d-block",src:a?"/images/shop/icon-close.svg":"/images/shop/icon-customize.svg",id:n+"img",onClick:e=>{i(!a),a||document.addEventListener("scroll",g,!0)}}),e.createElement("div",{style:{display:a?"flex":"none",top:l.y,left:l.x},className:"overlayVariant card border rounded",id:n},e.createElement("div",{className:"card-body"},Array.from(Object.entries(d).filter(((e,t)=>{let[n,r]=e;return"ext_data"!==n})).map(((t,r)=>{let[o,a]=t;return e.createElement("p",{className:"card-text",key:n+o},e.createElement("i",null,o),": ",(e=>{let t=ds(e);if("string"===t)return e;if("object"===t){if(!1===e.checked)return"off";if(!0===e.checked&&e.text)return e.text}return JSON.stringify(e)})(a))}))))))}function bc(t){let{crate_index:n,card_index:r,first:o,last:a}=t;const i=Ys((e=>e.crates[n].id)),l=Ys((e=>e.crates[n].items[r].options)),s=Ys((e=>e.crates[n].items[r].options_data)),c=Ys((e=>e.crates[n].items[r].size)),u=Ys((e=>e.crates[n].items[r].id)),d=Ys((e=>e.crates[n].items[r].options_class)),p=Ys((e=>e.sideMenuIsOpen)),f=(Ys((e=>e.notificationTimer)),Ys((e=>e.hideNotification))),m=Ys((e=>e.notificationCrateId===i&&(e.notificationCardIndex===r||e.crates[n].items.length+(e.notificationCardIndex||-1)===r))),g=Ys((e=>e.updateOptions));return e.createElement(gc,{options:l,data:s,options_class:d,key:"popover"+i+u,id:"popover"+i+u,big:"big"===c,first:o,last:a,sideMenuIsOpen:p,onHideNotification:f,displayNotification:m,target:{construct:(e,t)=>{s[e]=t},update:(e,t)=>{e in s&&(s[e]=t),g(i,r,{[e]:t})}}})}function vc(t){let{crate_index:n,card_index:r}=t;const o=Ys((e=>e.crates[n].items[r].id)),a=Ys((e=>e.crates[n].items[r].options)),i=Ys((e=>e.crates[n].items[r].options_data));return e.createElement(hc,{id:o+"options",options:a,data:i})}function yc(t){let{crate_index:n,card_index:r}=t;const o=Ys((e=>e.currency)),a=Ys((e=>e.deleteCard)),i=Ys((e=>e.highlightCard)),l=Ys((e=>e.highlightReset)),s=Ys((e=>e.crates[n].id===e.highlighted.crate&&r===e.highlighted.card)),c=Ys((e=>e.crates[n].id)),u=Ys((e=>e.crates[n].items[r]),((e,t)=>e.id===t.id)),d=Ys((e=>e.crates[n].items[r].show_warnings),Vo),p=Ys((e=>e.crates[n].items[r].options_data),Vo),f=Ys((e=>!!e.crateParams(e.crates[n].crate_mode).warnings_disabled)),m=!f&&u&&u.options&&u.options.length>0,g=!f&&p&&Object.keys(p).length>0,h=!f&&d&&d.length>0;return e.createElement("tr",{key:"summary_crate_"+c+"_"+r,className:"hoverable ".concat(s?"selected":""),onClick:()=>i(c,r),onMouseEnter:()=>i(c,r),onMouseLeave:()=>l()},e.createElement("td",{className:"item-card-name tabbed"},e.createElement("div",null,"".concat(u.name_number," ").concat(u.name," ").concat(u.name_codename))),e.createElement("td",{className:"price"},e.createElement("div",{className:"d-inline-flex align-content-center"},"".concat(o," ").concat(Wo(u.price)),e.createElement("button",{onClick:()=>a(c,r)},e.createElement("img",{src:"/images/shop/icon-remove.svg",className:"d-block"})),e.createElement("div",{style:{width:"45px",height:"20px"},className:"d-inline-flex align-content-center align-self-center justify-content-evenly"},h?e.createElement(dc,{crate_index:n,card_index:r}):e.createElement("span",{style:{display:"inline-block",minWidth:"20px"}}," "),m&&g?e.createElement(vc,{crate_index:n,card_index:r}):e.createElement("span",{style:{display:"inline-block",width:"20px"}}," ")))))}function wc(t){let{crate_index:n}=t;const r=Ys((e=>e.currency)),o=Ys((e=>e.crates[n].id)),a=Ys((e=>e.crate_prices)),i=Ys((e=>e.updateCrateOptions));return Bs({options:a,data:Ys((e=>e.crates[n].options_data||{}))}).map(((t,n)=>e.createElement("tr",{key:"summary_crate_"+o+"option_"+t.id},e.createElement("td",{className:"item-card-name tabbed"},e.createElement("div",null,t.title)),e.createElement("td",{className:"price"},e.createElement("div",{className:"d-inline-flex align-content-center"},"".concat(r," ").concat(Wo(t.price)),e.createElement("button",{onClick:()=>i(o,t.disable_patch)},e.createElement("img",{src:"/images/shop/icon-remove.svg",className:"d-block"})),e.createElement("div",{style:{width:"45px",height:"20px"},className:"d-inline"}))))))}function Ec(t){let{crate_index:n}=t;const r=Ys((e=>e.crates[n].id)),o=Ys((e=>e.crates[n].items.length));return e.createElement("tbody",{key:"summary_crate_body"+r},e.createElement(sc,{crate_index:n}),$o(0,o).map(((t,o)=>e.createElement(yc,{crate_index:n,card_index:t,key:"summary_crate_"+r+"_"+t}))),e.createElement(wc,{crate_index:n}))}function xc(){const t=Ys((e=>e.currency)),n=Ys((e=>e.order_prices)),r=Ys((e=>e.updateOrderOptions)),o=Bs({options:n,data:Ys((e=>e.order_options_data))});return e.createElement("tbody",{key:"summary_order_body"},o.map(((n,o)=>e.createElement("tr",{key:"summary_orderoption_"+n.id},e.createElement("td",{className:"item-card-name"},e.createElement("div",null,n.title)),e.createElement("td",{className:"price"},e.createElement("div",{className:"d-inline-flex align-content-center"},"".concat(t," ").concat(Wo(n.price)),e.createElement("button",{onClick:()=>r(n.disable_patch)},e.createElement("img",{src:"/images/shop/icon-remove.svg",className:"d-block"})),e.createElement("div",{style:{width:"45px",height:"20px"},className:"d-inline"})))))))}function Sc(){const t=Ms({options:Ys((e=>e.shipping_summary)),data:Ys((e=>e.order_options_data)),id:"shipping_options",target:null});return e.createElement("tbody",{key:"summary_shipping_order_body"},t.map(((t,n)=>e.createElement("tr",{key:"summary_shipping_order_option_"+n,id:"summary_shipping_order_option_"+n},e.createElement("td",{className:"item-card-name",key:"summary_shipping_order_key_option_"+n,id:"summary_shipping_order_key_option_"+n},t)))))}function kc(){const t=Ys((e=>e.crates.length));return e.createElement(e.Fragment,null,$o(0,t).map(((t,n)=>e.createElement(Ec,{crate_index:t,key:"summary_crate_body_"+t}))),e.createElement(xc,null),e.createElement(Sc,null))}function Cc(){const t=Ys((e=>e.currency)),n=Ys((e=>e.total_order_price));return e.createElement("div",null,t," ",Wo(n),e.createElement("button",{style:{opacity:"0",cursor:"initial"}},e.createElement("img",{src:"/images/shop/icon-remove.svg",alt:"icon remove"})))}function _c(){return e.createElement("div",{className:"summary-price"},e.createElement("table",null,e.createElement(kc,null),e.createElement("tfoot",null,e.createElement("tr",null,e.createElement("td",{className:"item-card-name"},"Price estimate"),e.createElement("td",{className:"price"},e.createElement(Cc,null),e.createElement("span",{style:{display:"inline-block",width:"30px"}}," "))))))}function Oc(e){if((!Js&&0!==Js||e)&&Mi){var t=document.createElement("div");t.style.position="absolute",t.style.top="-9999px",t.style.width="50px",t.style.height="50px",t.style.overflow="scroll",document.body.appendChild(t),Js=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return Js}function Nc(e){void 0===e&&(e=$i());try{var t=e.activeElement;return t&&t.nodeName?t:null}catch(t){return e.body}}const Dc="data-rr-ui-modal-open",Ic=class{constructor({ownerDocument:e,handleContainerOverflow:t=!0,isRTL:n=!1}={}){this.handleContainerOverflow=t,this.isRTL=n,this.modals=[],this.ownerDocument=e}getScrollbarWidth(){return function(e=document){const t=e.defaultView;return Math.abs(t.innerWidth-e.documentElement.clientWidth)}(this.ownerDocument)}getElement(){return(this.ownerDocument||document).body}setModalAttributes(e){}removeModalAttributes(e){}setContainerStyle(e){const t={overflow:"hidden"},n=this.isRTL?"paddingLeft":"paddingRight",r=this.getElement();e.style={overflow:r.style.overflow,[n]:r.style[n]},e.scrollBarWidth&&(t[n]=`${parseInt(Hl(r,n)||"0",10)+e.scrollBarWidth}px`),r.setAttribute(Dc,""),Hl(r,t)}reset(){[...this.modals].forEach((e=>this.remove(e)))}removeContainerStyle(e){const t=this.getElement();t.removeAttribute(Dc),Object.assign(t.style,e.style)}add(e){let t=this.modals.indexOf(e);return-1!==t||(t=this.modals.length,this.modals.push(e),this.setModalAttributes(e),0!==t||(this.state={scrollBarWidth:this.getScrollbarWidth(),style:{}},this.handleContainerOverflow&&this.setContainerStyle(this.state))),t}remove(e){const t=this.modals.indexOf(e);-1!==t&&(this.modals.splice(t,1),!this.modals.length&&this.handleContainerOverflow&&this.removeContainerStyle(this.state),this.removeModalAttributes(e))}isTopModal(e){return!!this.modals.length&&this.modals[this.modals.length-1]===e}},Pc=["show","role","className","style","children","backdrop","keyboard","onBackdropClick","onEscapeKeyDown","transition","runTransition","backdropTransition","runBackdropTransition","autoFocus","enforceFocus","restoreFocus","restoreFocusOptions","renderDialog","renderBackdrop","manager","container","onShow","onHide","onExit","onExited","onExiting","onEnter","onEntering","onEntered"];let Tc;const Rc=(0,e.forwardRef)(((t,n)=>{let{show:o=!1,role:a="dialog",className:i,style:l,children:s,backdrop:c=!0,keyboard:u=!0,onBackdropClick:d,onEscapeKeyDown:p,transition:f,runTransition:m,backdropTransition:g,runBackdropTransition:h,autoFocus:b=!0,enforceFocus:v=!0,restoreFocus:y=!0,restoreFocusOptions:w,renderDialog:E,renderBackdrop:x=(e=>(0,ll.jsx)("div",Object.assign({},e))),manager:S,container:k,onShow:C,onHide:_=(()=>{}),onExit:O,onExited:N,onExiting:D,onEnter:I,onEntering:P,onEntered:T}=t,R=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(t,Pc);const A=Zi(),L=tl(k),M=function(t){const n=Zi(),r=t||function(e){return Tc||(Tc=new Ic({ownerDocument:null==e?void 0:e.document})),Tc}(n),o=(0,e.useRef)({dialog:null,backdrop:null});return Object.assign(o.current,{add:()=>r.add(o.current),remove:()=>r.remove(o.current),isTopModal:()=>r.isTopModal(o.current),setDialogRef:(0,e.useCallback)((e=>{o.current.dialog=e}),[]),setBackdropRef:(0,e.useCallback)((e=>{o.current.backdrop=e}),[])})}(S),B=Xo(),F=function(t){const n=(0,e.useRef)(null);return(0,e.useEffect)((()=>{n.current=t})),n.current}(o),[j,z]=(0,e.useState)(!o),U=(0,e.useRef)(null);(0,e.useImperativeHandle)(n,(()=>M),[M]),Mi&&!F&&o&&(U.current=Nc(null==A?void 0:A.document)),o&&j&&z(!1);const W=Gi((()=>{if(M.add(),K.current=Wi(document,"keydown",V),q.current=Wi(document,"focus",(()=>setTimeout(H)),!0),C&&C(),b){var e,t;const n=Nc(null!=(e=null==(t=M.dialog)?void 0:t.ownerDocument)?e:null==A?void 0:A.document);M.dialog&&n&&!Ko(M.dialog,n)&&(U.current=n,M.dialog.focus())}})),$=Gi((()=>{var e;M.remove(),null==K.current||K.current(),null==q.current||q.current(),y&&(null==(e=U.current)||null==e.focus||e.focus(w),U.current=null)}));(0,e.useEffect)((()=>{o&&L&&W()}),[o,L,W]),(0,e.useEffect)((()=>{j&&$()}),[j,$]),Jo((()=>{$()}));const H=Gi((()=>{if(!v||!B()||!M.isTopModal())return;const e=Nc(null==A?void 0:A.document);M.dialog&&e&&!Ko(M.dialog,e)&&M.dialog.focus()})),G=Gi((e=>{e.target===e.currentTarget&&(null==d||d(e),!0===c&&_())})),V=Gi((e=>{u&&Qi(e)&&M.isTopModal()&&(null==p||p(e),e.defaultPrevented||_())})),q=(0,e.useRef)(),K=(0,e.useRef)();if(!L)return null;const Q=Object.assign({role:a,ref:M.setDialogRef,"aria-modal":"dialog"===a||void 0},R,{style:l,className:i,tabIndex:-1});let Y=E?E(Q):(0,ll.jsx)("div",Object.assign({},Q,{children:e.cloneElement(s,{role:"document"})}));Y=dl(f,m,{unmountOnExit:!0,mountOnEnter:!0,appear:!0,in:!!o,onExit:O,onExiting:D,onExited:(...e)=>{z(!0),null==N||N(...e)},onEnter:I,onEntering:P,onEntered:T,children:Y});let X=null;return c&&(X=x({ref:M.setBackdropRef,onClick:G}),X=dl(g,h,{in:!!o,appear:!0,mountOnEnter:!0,unmountOnExit:!0,children:X})),(0,ll.jsx)(ll.Fragment,{children:r.createPortal((0,ll.jsxs)(ll.Fragment,{children:[X,Y]}),L)})}));Rc.displayName="Modal";const Ac=Object.assign(Rc,{Manager:Ic});var Lc=Function.prototype.bind.call(Function.prototype.call,[].slice);function Mc(e,t){return Lc(e.querySelectorAll(t))}function Bc(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}const Fc=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",jc=".sticky-top",zc=".navbar-toggler";class Uc extends Ic{adjustAndStore(e,t,n){const r=t.style[e];t.dataset[e]=r,Hl(t,{[e]:`${parseFloat(Hl(t,e))+n}px`})}restore(e,t){const n=t.dataset[e];void 0!==n&&(delete t.dataset[e],Hl(t,{[e]:n}))}setContainerStyle(e){super.setContainerStyle(e);const t=this.getElement();var n,r;if(r="modal-open",(n=t).classList?n.classList.add(r):ml(n,r)||("string"==typeof n.className?n.className=n.className+" "+r:n.setAttribute("class",(n.className&&n.className.baseVal||"")+" "+r)),!e.scrollBarWidth)return;const o=this.isRTL?"paddingLeft":"paddingRight",a=this.isRTL?"marginLeft":"marginRight";Mc(t,Fc).forEach((t=>this.adjustAndStore(o,t,e.scrollBarWidth))),Mc(t,jc).forEach((t=>this.adjustAndStore(a,t,-e.scrollBarWidth))),Mc(t,zc).forEach((t=>this.adjustAndStore(a,t,e.scrollBarWidth)))}removeContainerStyle(e){super.removeContainerStyle(e);const t=this.getElement();var n,r;r="modal-open",(n=t).classList?n.classList.remove(r):"string"==typeof n.className?n.className=Bc(n.className,r):n.setAttribute("class",Bc(n.className&&n.className.baseVal||"",r));const o=this.isRTL?"paddingLeft":"paddingRight",a=this.isRTL?"marginLeft":"marginRight";Mc(t,Fc).forEach((e=>this.restore(o,e))),Mc(t,jc).forEach((e=>this.restore(a,e))),Mc(t,zc).forEach((e=>this.restore(a,e)))}}let Wc;const $c=e.forwardRef((({className:e,bsPrefix:t,as:n="div",...r},o)=>(t=vl(t,"modal-body"),(0,ll.jsx)(n,{ref:o,className:ua()(e,t),...r}))));$c.displayName="ModalBody";const Hc=$c,Gc=e.createContext({onHide(){}}),Vc=e.forwardRef((({bsPrefix:e,className:t,contentClassName:n,centered:r,size:o,fullscreen:a,children:i,scrollable:l,...s},c)=>{const u=`${e=vl(e,"modal")}-dialog`,d="string"==typeof a?`${e}-fullscreen-${a}`:`${e}-fullscreen`;return(0,ll.jsx)("div",{...s,ref:c,className:ua()(u,t,o&&`${e}-${o}`,r&&`${u}-centered`,l&&`${u}-scrollable`,a&&d),children:(0,ll.jsx)("div",{className:ua()(`${e}-content`,n),children:i})})}));Vc.displayName="ModalDialog";const qc=Vc,Kc=e.forwardRef((({className:e,bsPrefix:t,as:n="div",...r},o)=>(t=vl(t,"modal-footer"),(0,ll.jsx)(n,{ref:o,className:ua()(e,t),...r}))));Kc.displayName="ModalFooter";const Qc=Kc,Yc={"aria-label":Yo().string,onClick:Yo().func,variant:Yo().oneOf(["white"])},Xc=e.forwardRef((({className:e,variant:t,"aria-label":n="Close",...r},o)=>(0,ll.jsx)("button",{ref:o,type:"button",className:ua()("btn-close",t&&`btn-close-${t}`,e),"aria-label":n,...r})));Xc.displayName="CloseButton",Xc.propTypes=Yc;const Jc=Xc,Zc=e.forwardRef((({closeLabel:t="Close",closeVariant:n,closeButton:r=!1,onHide:o,children:a,...i},l)=>{const s=(0,e.useContext)(Gc),c=Gi((()=>{null==s||s.onHide(),null==o||o()}));return(0,ll.jsxs)("div",{ref:l,...i,children:[a,r&&(0,ll.jsx)(Jc,{"aria-label":t,variant:n,onClick:c})]})})),eu=Zc,tu=e.forwardRef((({bsPrefix:e,className:t,closeLabel:n="Close",closeButton:r=!1,...o},a)=>(e=vl(e,"modal-header"),(0,ll.jsx)(eu,{ref:a,...o,className:ua()(t,e),closeLabel:n,closeButton:r}))));tu.displayName="ModalHeader";const nu=tu,ru=("h4",e.forwardRef(((e,t)=>(0,ll.jsx)("div",{...e,ref:t,className:ua()(e.className,"h4")}))));const ou=e.forwardRef((({className:e,bsPrefix:t,as:n=ru,...r},o)=>(t=vl(t,"modal-title"),(0,ll.jsx)(n,{ref:o,className:ua()(e,t),...r}))));ou.displayName="ModalTitle";const au=ou;function iu(e){return(0,ll.jsx)(Zl,{...e,timeout:null})}function lu(e){return(0,ll.jsx)(Zl,{...e,timeout:null})}const su=e.forwardRef((({bsPrefix:t,className:n,style:r,dialogClassName:o,contentClassName:a,children:i,dialogAs:l=qc,"data-bs-theme":s,"aria-labelledby":c,"aria-describedby":u,"aria-label":d,show:p=!1,animation:f=!0,backdrop:m=!0,keyboard:g=!0,onEscapeKeyDown:h,onShow:b,onHide:v,container:y,autoFocus:w=!0,enforceFocus:E=!0,restoreFocus:x=!0,restoreFocusOptions:S,onEntered:k,onExit:C,onExiting:_,onEnter:O,onEntering:N,onExited:D,backdropClassName:I,manager:P,...T},R)=>{const[A,L]=(0,e.useState)({}),[M,B]=(0,e.useState)(!1),F=(0,e.useRef)(!1),j=(0,e.useRef)(!1),z=(0,e.useRef)(null),[U,W]=da(),$=sa(R,W),H=Gi(v),G=yl();t=vl(t,"modal");const V=(0,e.useMemo)((()=>({onHide:H})),[H]);function q(){return P||function(e){return Wc||(Wc=new Uc(e)),Wc}({isRTL:G})}function K(e){if(!Mi)return;const t=q().getScrollbarWidth()>0,n=e.scrollHeight>$i(e).documentElement.clientHeight;L({paddingRight:t&&!n?Oc():void 0,paddingLeft:!t&&n?Oc():void 0})}const Q=Gi((()=>{U&&K(U.dialog)}));Jo((()=>{Ui(window,"resize",Q),null==z.current||z.current()}));const Y=()=>{F.current=!0},X=e=>{F.current&&U&&e.target===U.dialog&&(j.current=!0),F.current=!1},J=()=>{B(!0),z.current=Gl(U.dialog,(()=>{B(!1)}))},Z=e=>{"static"!==m?j.current||e.target!==e.currentTarget?j.current=!1:null==v||v():(e=>{e.target===e.currentTarget&&J()})(e)},ee=(0,e.useCallback)((e=>(0,ll.jsx)("div",{...e,className:ua()(`${t}-backdrop`,I,!f&&"show")})),[f,I,t]),te={...r,...A};return te.display="block",(0,ll.jsx)(Gc.Provider,{value:V,children:(0,ll.jsx)(Ac,{show:p,ref:$,backdrop:m,container:y,keyboard:!0,autoFocus:w,enforceFocus:E,restoreFocus:x,restoreFocusOptions:S,onEscapeKeyDown:e=>{g?null==h||h(e):(e.preventDefault(),"static"===m&&J())},onShow:b,onHide:v,onEnter:(e,t)=>{e&&K(e),null==O||O(e,t)},onEntering:(e,t)=>{null==N||N(e,t),zi(window,"resize",Q)},onEntered:k,onExit:e=>{null==z.current||z.current(),null==C||C(e)},onExiting:_,onExited:e=>{e&&(e.style.display=""),null==D||D(e),Ui(window,"resize",Q)},manager:q(),transition:f?iu:void 0,backdropTransition:f?lu:void 0,renderBackdrop:ee,renderDialog:e=>(0,ll.jsx)("div",{role:"dialog",...e,style:te,className:ua()(n,t,M&&`${t}-static`,!f&&"show"),onClick:m?Z:void 0,onMouseUp:X,"data-bs-theme":s,"aria-label":d,"aria-labelledby":c,"aria-describedby":u,children:(0,ll.jsx)(l,{...T,onMouseDown:Y,className:o,contentClassName:a,children:i})})})})}));su.displayName="Modal";const cu=Object.assign(su,{Body:Hc,Header:nu,Title:au,Footer:Qc,Dialog:qc,TRANSITION_DURATION:300,BACKDROP_TRANSITION_DURATION:150}),uu={[As.OK]:{style:"btn-outline-success",content:"✓ copied"},[As.Empty]:{style:"btn-outline-primary",content:"Copy"},[As.Invalid]:{style:"btn-outline-danger",content:"Error"}};function du(){const t=Ys((e=>e.shouldShowDescription)),n=Ys((e=>e.description)),r=Ys((e=>e.closeDescription)),o=Ys((e=>e.showDescription)),[a,i]=(0,e.useState)(As.Empty),l=pc((e=>{"mousedown"===e.type&&r()}));return e.createElement(e.Fragment,null,e.createElement("input",{className:"btn btn-outline-primary w-100 m-0 mb-2 mb-sm-0 me-sm-2",style:{cursor:"pointer",fontWeight:"700"},defaultValue:"Show JSON",onClick:o,readOnly:!0}),e.createElement(cu,{show:t,animation:!0,className:"rfqFeedback",centered:!0},e.createElement(cu.Body,{ref:l},e.createElement("textarea",{value:n,className:"form-control w-100",rows:10,readOnly:!0,placeholder:"There should be description of the crate"}),e.createElement("div",{className:"d-flex flex-column flex-sm-row justify-content-end"},window.isSecureContext&&e.createElement("a",{type:"button",onClick:()=>{(e=>{try{navigator.clipboard.writeText(e).then((e=>{i(As.OK),setTimeout((()=>{i(As.Empty)}),1500)}),(e=>{i(As.Invalid),setTimeout((()=>{i(As.Empty)}),3e3),console.warn("Copy to clipboard rejected: ",e)}))}catch(e){i(As.Invalid),setTimeout((()=>{i(As.Empty)}),3e3),console.warn("Copy to clipboard error: ",e)}})(n)},className:"btn btn-sm m-0 mb-1 mt-2 mb-sm-0 me-sm-2 "+uu[a].style},uu[a].content),e.createElement("a",{type:"button",onClick:r,className:"btn btn-sm btn-outline-primary m-0 mb-1 mt-2 mb-sm-0 me-sm-2"},"Close")))))}function pu(){const t=Ys((e=>e.order_options)),n=Ys((e=>e.updateOrderOptions)),r=Ys((e=>e.order_options_data||{})),o=Ms({options:t,data:r,id:"order_options",target:{construct:(e,t)=>{r[e]=t,n({[e]:t})},update:(e,t)=>{e in r&&(r[e]=t),n({[e]:t})}}});return e.createElement("div",{className:"order-bar"},o)}function fu(){const t=Ys((e=>e.email)),n=Ys((e=>e.note)),r=Ys((e=>e.isProcessing)),o=Ys((e=>e.updateEmail)),a=Ys((e=>e.updateNote)),i=Ys((e=>e.submitForm)),l=Ys((e=>e.submitDisabled)),s=Ys((e=>e.resetEmailValidation));return e.createElement("div",{className:"summary-form"},e.createElement(pu,null),e.createElement("form",{onSubmit:i,noValidate:!0},e.createElement("input",{className:"".concat(t.error>0?"errorField":""),type:"email",placeholder:"Email",onFocus:s,onChange:e=>o(e.target.value),onBlur:e=>o(e.target.value),value:t.value}),t.error===As.Empty?e.createElement("div",{className:"error"},e.createElement("small",null,"Required")):null,t.error===As.Invalid?e.createElement("div",{className:"error"},e.createElement("small",null,"Your email is incomplete")):null,e.createElement("textarea",{onChange:e=>a(e.target.value),defaultValue:n.value,rows:"5",placeholder:"Additional notes"}),e.createElement("div",{className:"d-flex flex-column flex-sm-row justify-content-between"},e.createElement(du,null),e.createElement("input",{className:"btn btn-primary w-100 m-0 ms-sm-2 order-form-submit",type:"button",disabled:l(),onClick:i,value:"".concat(r?"Processing ...":"Request quote")}))))}const mu=function(...e){return e.filter((e=>null!=e)).reduce(((e,t)=>{if("function"!=typeof t)throw new Error("Invalid Argument Type, must only provide functions, undefined, or null.");return null===e?t:function(...n){e.apply(this,n),t.apply(this,n)}}),null)},gu={height:["marginTop","marginBottom"],width:["marginLeft","marginRight"]};function hu(e,t){const n=t[`offset${e[0].toUpperCase()}${e.slice(1)}`],r=gu[e];return n+parseInt(Hl(t,r[0]),10)+parseInt(Hl(t,r[1]),10)}const bu={[Rl]:"collapse",[Ml]:"collapsing",[Al]:"collapsing",[Ll]:"collapse show"},vu=e.forwardRef((({onEnter:t,onEntering:n,onEntered:r,onExit:o,onExiting:a,className:i,children:l,dimension:s="height",in:c=!1,timeout:u=300,mountOnEnter:d=!1,unmountOnExit:p=!1,appear:f=!1,getDimensionValue:m=hu,...g},h)=>{const b="function"==typeof s?s():s,v=(0,e.useMemo)((()=>mu((e=>{e.style[b]="0"}),t)),[b,t]),y=(0,e.useMemo)((()=>mu((e=>{const t=`scroll${b[0].toUpperCase()}${b.slice(1)}`;e.style[b]=`${e[t]}px`}),n)),[b,n]),w=(0,e.useMemo)((()=>mu((e=>{e.style[b]=null}),r)),[b,r]),E=(0,e.useMemo)((()=>mu((e=>{e.style[b]=`${m(b,e)}px`,Kl(e)}),o)),[o,m,b]),x=(0,e.useMemo)((()=>mu((e=>{e.style[b]=null}),a)),[b,a]);return(0,ll.jsx)(Yl,{ref:h,addEndListener:ql,...g,"aria-expanded":g.role?c:null,onEnter:v,onEntering:y,onEntered:w,onExit:E,onExiting:x,childRef:l.ref,in:c,timeout:u,mountOnEnter:d,unmountOnExit:p,appear:f,children:(t,n)=>e.cloneElement(l,{...n,className:ua()(i,l.props.className,bu[t],"width"===b&&"collapse-horizontal")})})})),yu=vu;function wu(e,t){return Array.isArray(e)?e.includes(t):e===t}const Eu=e.createContext({});Eu.displayName="AccordionContext";const xu=Eu,Su=e.forwardRef((({as:t="div",bsPrefix:n,className:r,children:o,eventKey:a,...i},l)=>{const{activeEventKey:s}=(0,e.useContext)(xu);return n=vl(n,"accordion-collapse"),(0,ll.jsx)(yu,{ref:l,in:wu(s,a),...i,className:ua()(r,n),children:(0,ll.jsx)(t,{children:e.Children.only(o)})})}));Su.displayName="AccordionCollapse";const ku=Su,Cu=e.createContext({eventKey:""});Cu.displayName="AccordionItemContext";const _u=Cu,Ou=e.forwardRef((({as:t="div",bsPrefix:n,className:r,onEnter:o,onEntering:a,onEntered:i,onExit:l,onExiting:s,onExited:c,...u},d)=>{n=vl(n,"accordion-body");const{eventKey:p}=(0,e.useContext)(_u);return(0,ll.jsx)(ku,{eventKey:p,onEnter:o,onEntering:a,onEntered:i,onExit:l,onExiting:s,onExited:c,children:(0,ll.jsx)(t,{ref:d,...u,className:ua()(r,n)})})}));Ou.displayName="AccordionBody";const Nu=Ou,Du=e.forwardRef((({as:t="button",bsPrefix:n,className:r,onClick:o,...a},i)=>{n=vl(n,"accordion-button");const{eventKey:l}=(0,e.useContext)(_u),s=function(t,n){const{activeEventKey:r,onSelect:o,alwaysOpen:a}=(0,e.useContext)(xu);return e=>{let i=t===r?null:t;a&&(i=Array.isArray(r)?r.includes(t)?r.filter((e=>e!==t)):[...r,t]:[t]),null==o||o(i,e),null==n||n(e)}}(l,o),{activeEventKey:c}=(0,e.useContext)(xu);return"button"===t&&(a.type="button"),(0,ll.jsx)(t,{ref:i,onClick:s,...a,"aria-expanded":Array.isArray(c)?c.includes(l):l===c,className:ua()(r,n,!wu(c,l)&&"collapsed")})}));Du.displayName="AccordionButton";const Iu=Du,Pu=e.forwardRef((({as:e="h2",bsPrefix:t,className:n,children:r,onClick:o,...a},i)=>(t=vl(t,"accordion-header"),(0,ll.jsx)(e,{ref:i,...a,className:ua()(n,t),children:(0,ll.jsx)(Iu,{onClick:o,children:r})}))));Pu.displayName="AccordionHeader";const Tu=Pu,Ru=e.forwardRef((({as:t="div",bsPrefix:n,className:r,eventKey:o,...a},i)=>{n=vl(n,"accordion-item");const l=(0,e.useMemo)((()=>({eventKey:o})),[o]);return(0,ll.jsx)(_u.Provider,{value:l,children:(0,ll.jsx)(t,{ref:i,...a,className:ua()(r,n)})})}));Ru.displayName="AccordionItem";const Au=Ru,Lu=e.forwardRef(((t,n)=>{const{as:r="div",activeKey:o,bsPrefix:a,className:i,onSelect:l,flush:s,alwaysOpen:c,...u}=function(e,t){return Object.keys(t).reduce((function(n,r){var o,a=n,i=a[oa(r)],l=a[r],s=_(a,[oa(r),r].map(aa)),c=t[r],u=ia(l,i,e[c]),d=u[0],p=u[1];return C({},s,((o={})[r]=d,o[c]=p,o))}),e)}(t,{activeKey:"onSelect"}),d=vl(a,"accordion"),p=(0,e.useMemo)((()=>({activeEventKey:o,onSelect:l,alwaysOpen:c})),[o,l,c]);return(0,ll.jsx)(xu.Provider,{value:p,children:(0,ll.jsx)(r,{ref:n,...u,className:ua()(i,d,s&&`${d}-flush`)})})}));Lu.displayName="Accordion";const Mu=Object.assign(Lu,{Button:Iu,Collapse:ku,Item:Au,Header:Tu,Body:Nu});function Bu(){return Bu=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Bu.apply(this,arguments)}const Fu=(e,t)=>({width:"".concat(Math.min(100*e/t,100),"%")});function ju(t){let{occupied:n,max:r}=t;return e.createElement("div",{className:"nbr-connectors",key:ys()},e.createElement("div",{style:{...Fu(n,r)}}))}const zu={eem:ju,clk:function(t){let{occupied:n,max:r}=t;return e.createElement("div",{className:"nbr-clocks",key:ys()},e.createElement("div",{style:{...Fu(n,r)}}))},idc:ju},Uu={eem:function(t){let{occupied:n,max:r}=t;return e.createElement("p",{key:ys()},"".concat(n,"/").concat(r," EEM connectors used"))},clk:function(t){let{occupied:n,max:r}=t;return e.createElement("p",{key:ys()},"".concat(n,"/").concat(r," clock connectors used"))},idc:function(t){let{occupied:n,max:r}=t;return e.createElement("p",{key:ys()},"".concat(n,"/").concat(r," IDC connectors used"))}};function Wu(e){let{resources:t,library:n}=e;if(!t)return null;let r=[];return t.forEach(((e,t)=>{n[e.name]&&r.push(n[e.name](e))})),r}function $u(t){let{crate_index:n,card_index:r}=t;const o=Ys((e=>e.crates[n].items[r].counted_resources),Go);return e.createElement(rs,{placement:"top",trigger:["click","hover","focus"],overlay:t=>{let{arrowProps:n,hasDoneInitialMeasure:r,show:a,...i}=t;return e.createElement("div",Bu({className:"k-popup-connectors"},i),e.createElement(Wu,{resources:o,library:Uu}))},rootClose:!0},e.createElement("div",{className:"progress-container"},e.createElement(Wu,{resources:o,library:zu})))}function Hu(){return Hu=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Hu.apply(this,arguments)}function Gu(t){let{card_index:n,crate_index:r,first:o,last:a}=t;const i=Ys((e=>e.crates[r].items[n]),((e,t)=>e.id===t.id)),l=Ys((e=>e.crates[r].items[n].show_warnings),Vo),s=Ys((e=>e.crates[r].items[n].counted_resources),Vo),c=Ys((e=>e.crates[r].id===e.highlighted.crate&&n===e.highlighted.card)),u=Ys((e=>!!e.crateParams(e.crates[r].crate_mode).warnings_disabled)),d=Ys((e=>e.crates[r].id)),p=Ys((e=>e.highlightCard)),f=Ys((e=>e.highlightReset)),m=Ys((e=>e.deleteCard)),g=!u&&i&&i.options&&i.options.length>0,h=!u&&l&&l.length>0,b=!u&&s&&s.length>0;return e.createElement(co,{draggableId:i.id,index:n},((t,l)=>e.createElement("div",Hu({ref:t.innerRef},t.draggableProps,t.dragHandleProps,{style:{...zo(t.draggableProps.style,l,!0,!!c,!1,!0)},onMouseEnter:()=>p(d,n),onMouseLeave:f}),e.createElement("div",{className:"progress-container warning d-flex justify-content-evenly"},h&&e.createElement(uc,{crate_index:r,card_index:n}),g&&e.createElement(bc,{crate_index:r,card_index:n,first:o,last:a})),e.createElement("h6",null,i.name_number),e.createElement("div",{onMouseEnter:()=>p(d,n),onClick:()=>p(d,n)},e.createElement("img",{className:"item-cart",src:i.image})),e.createElement("div",{style:{display:c?"flex":"none"},className:"overlayRemove",onClick:()=>m(d,n)},e.createElement("img",{src:"/images/shop/icon-remove.svg",alt:"rm"}),e.createElement("p",null,"Remove")),b&&e.createElement($u,{crate_index:r,card_index:n}))))}function Vu(t){let{isDraggingOver:n,nToDraw:r}=t;const o=[];for(let t=r;t>0;t--)o.push(e.createElement("div",{key:t,style:{display:n?"none":"block",border:"1px dashed #ccc",width:"45px",marginBottom:"5px"}}));return e.createElement(e.Fragment,null,o)}function qu(){return qu=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},qu.apply(this,arguments)}function Ku(t){let{crate_index:n}=t;const r=Ys((e=>e.crates[n]),((e,t)=>Ho(e.items,t.items)&&e.occupiedHP===t.occupiedHP&&e.crate_mode===t.crate_mode)),o=Ys((e=>e.crateParams)),a=Ss(r.occupiedHP),i=Ss(o(r.crate_mode).hp),l=r.items.map(((t,o)=>e.createElement(Gu,{card_index:o,crate_index:n,first:0===o,last:o===r.items.length-1&&a>=i,key:t.id})));return e.createElement(To,{droppableId:r.id,direction:"horizontal"},((t,n)=>e.createElement("div",qu({ref:t.innerRef},t.droppableProps,{style:Uo(t.droppableProps.style,n),className:"items-cart-list"}),l,t.placeholder&&e.createElement("div",{style:{display:"none"}},t.placeholder),e.createElement(Vu,{nToDraw:i-a,isDraggingOver:n.isDraggingOver}))))}function Qu(t){let{crate_index:n}=t;const r=Ys((e=>e.modes_order)),o=Ys((e=>e.crate_modes)),a=Ys((e=>e.crates[n]),((e,t)=>e.id===t.id&&e.crate_mode===t.crate_mode)),i=Ys((e=>e.setCrateMode));return e.createElement("div",{className:"crate-mode"},r.map(((t,n)=>e.createElement("a",{key:t,className:a.crate_mode===t?"active":"",onClick:()=>i(a.id,t),href:"#",role:"button"},o[t].name))))}function Yu(t){let{crate_index:n}=t;const r=Ys((e=>e.crates[n].warnings),Ho);return e.createElement("div",{className:"crate-info"},r.map(((t,n)=>e.createElement("p",{key:n,className:"rule",style:{color:Is(t.level).color}},e.createElement("img",{src:Is(t.level).icon})," ",e.createElement("i",null,t.message)))))}function Xu(t){let{crate_index:n}=t;const r=Ys((e=>e.crates[n].id)),o=Ys((e=>e.crate_options)),a=Ys((e=>e.updateCrateOptions)),i=Ys((e=>e.crates[n].options_data||{})),l=Ms({options:o,data:i,id:"crate_options"+r,target:{construct:(e,t)=>{i[e]=t},update:(e,t)=>{e in i&&(i[e]=t),a(r,{[e]:t})}}});return e.createElement("div",{className:"crate-bar"},l)}function Ju(t){let{crate_index:n}=t;const r=Ys((e=>e.crates[n]),((e,t)=>e.length===t.length&&e.id===t.id)),o=Ys((e=>e.modes_order)),a=Ys((e=>e.delCrate));return e.createElement("div",{className:"crate"},o.includes(r.crate_mode)?e.createElement("div",{className:"crate-bar d-inline-flex justify-content-between"},e.createElement(Qu,{crate_index:n}),e.createElement("div",{className:"delete-crate align-self-start align-content-start justify-content-end",onClick:()=>a(r.id)},"Delete crate ",e.createElement("img",{src:"/images/shop/icon-remove.svg",alt:"remove"}))):e.createElement(e.Fragment,null),e.createElement("div",{className:"crate-products"},e.createElement(Ku,{crate_index:n}),e.createElement(Yu,{crate_index:n}),e.createElement(Xu,{crate_index:n})))}function Zu(){const t=Ys((e=>e.crates),((e,t)=>e.length===t.length)),n=Ys((e=>e.active_crate)),r=Ys((e=>e.newCrate)),o=Ys((e=>e.setActiveCrate));return e.createElement(Mu,{id:"accordion_crates",flush:!0,activeKey:n,onSelect:e=>{o(null!==e?e:"")}},t.map(((t,n)=>e.createElement(Mu.Item,{eventKey:t.id,key:"accordion"+t.id,className:"accordion_crates_item"},e.createElement(Mu.Header,null,t.name?t.name:e.createElement(e.Fragment,null,"Crate #","".concat(n))," "),e.createElement(Mu.Body,null,e.createElement(Ju,{crate_index:n}))))),e.createElement(Mu.Item,{eventKey:"last",id:"accordion_crates_add"},e.createElement(Mu.Header,{onClick:r},"Add new crate")))}const ed=JSON.stringify({crates:[{items:[{pn:"1124",options:null},{pn:"2128",options:null},{pn:"2128",options:null},{pn:"2128",options:null}],type:"rack"},{items:[],type:"no_crate"}]});function td(){const t=Ys((e=>e.importShouldOpen)),n=Ys((e=>e.importValue)),r=Ys((e=>e.loadDescription)),o=Ys((e=>e.updateImportDescription)),a=Ys((e=>e.closeImport)),i=Ys((e=>e.openImport)),l=pc((e=>{"mousedown"===e.type&&a()}));return e.createElement(e.Fragment,null,e.createElement("button",{className:"btn btn-sm btn-outline-primary m-0 mb-2",style:{cursor:"pointer"},onClick:i},"Import JSON"),e.createElement(cu,{show:t,animation:!0,centered:!0,className:"rfqFeedback"},e.createElement(cu.Body,{ref:l},e.createElement("div",{className:"form-group"},e.createElement("p",{className:"small"},"Input the JSON description below. Should be something like:",e.createElement("br",null),ed)),e.createElement("div",{className:"form-group w-100"},e.createElement("textarea",{onChange:e=>{o(e.target.value)},value:n.value,className:"form-control w-100",rows:"5",placeholder:"Input JSON description here."})),n.error!==As.OK?e.createElement("div",{className:"form-group"},e.createElement("p",{className:"text-danger"},n.error===As.Empty?"Empty input":"Invalid JSON")):null,e.createElement("div",{className:"d-flex flex-column flex-sm-row justify-content-end"},e.createElement("a",{type:"button",onClick:a,className:"btn btn-sm btn-outline-primary m-0 mb-2 mt-2 mb-sm-0 me-sm-2"},"Close"),e.createElement("a",{type:"button",onClick:r,className:"btn btn-sm btn-primary m-0 ms-sm-2 mt-2 ".concat(n.error?"disabled":"")},"Load configuration")))))}function nd(){const t=Ys((e=>e.closeRFQFeedback)),n=Ys((e=>e.shouldShowRFQFeedback)),r=Ys((e=>e.processingResult)),o=pc((e=>{"mousedown"===e.type&&t()}));return e.createElement(cu,{show:n,animation:!0,centered:!0},e.createElement(cu.Body,{ref:o,className:"rfqFeedback"},e.createElement("div",{className:"d-flex"},e.createElement("div",null,r.status===As.OK?e.createElement("img",{width:"30px",src:"/images/shop/icon-done.svg",alt:"close"}):e.createElement("img",{width:"30px",src:"/images/shop/icon-warning.svg",alt:"close"})),e.createElement("div",{style:{padding:"0 .5em"}},r.message))))}function rd(t){let{title:n,description:r}=t;const o=Ys((e=>e.isMobile)),a=Ys((e=>e.switchSideMenu));return e.createElement("section",{className:"panel"},e.createElement("h2",null,n),e.createElement("div",{className:"control justify-content-between"},r),e.createElement("div",null,e.createElement(td,null)),e.createElement(nd,null),o?e.createElement("div",{className:"mobileBtnDisplaySideMenu"},e.createElement("button",{onClick:a},e.createElement("img",{src:"/images/shop/icon-add.svg",alt:"add"}))):null,e.createElement(Zu,null),e.createElement("section",{className:"summary"},e.createElement(_c,null),e.createElement(fu,null)))}function od(){const t=Ys((e=>e.addCardFromCatalog)),n=Ys((e=>e.initExtData)),r=Ys((e=>e.moveCard)),o=Ys((e=>e.deleteCard)),a=Ys((e=>e.cardIndexById));return(0,e.useEffect)((()=>{t(null,[a("eem_pwr_mod"),a("kasli")],-1,!0),n()}),[]),e.createElement(Kr,{onDragEnd:(e,n)=>{if(!e.destination)return console.warn("No drop destination"),void console.log(e);"catalog"===e.source.droppableId?t(e.destination.droppableId,e.source.index,e.destination.index):"catalog"===e.destination.droppableId?o(e.source.droppableId,e.source.index):r(e.source.droppableId,e.source.index,e.destination.droppableId,e.destination.index)}},e.createElement(Zs,{aside:e.createElement(lc,null),main:e.createElement(rd,{title:"Order hardware",description:e.createElement("p",{className:"description"},"Drag and drop the cards you want into the crate below to see how the combination would look like. Configure the card settings by tapping on the top of the card; many of the options can be adjusted even after the card has been shipped. If you have any issues with this ordering system, or if you need other configurations, email us directly anytime at ",e.createElement("a",{href:"mailto:sales@m-labs.hk"},"sales@m-labs.hk"),". The price excludes shipping, is estimated, and must be confirmed by a quote.")})}))}(0,t.H)(document.querySelector("#root-shop")).render(e.createElement(od,null))})()})();