1
0
Fork 0
web2019/static/js/shop.bundle.js

2 lines
382 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={184:(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 i=typeof n;if("string"===i||"number"===i)e.push(n);else if(Array.isArray(n)){if(n.length){var a=o.apply(null,n);a&&e.push(a)}}else if("object"===i){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)}()},679:(e,t,n)=>{"use strict";var r=n(296),o={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},i={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},l={};function u(e){return r.isMemo(e)?a:l[e.$$typeof]||o}l[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},l[r.Memo]=a;var c=Object.defineProperty,s=Object.getOwnPropertyNames,f=Object.getOwnPropertySymbols,d=Object.getOwnPropertyDescriptor,p=Object.getPrototypeOf,m=Object.prototype;e.exports=function e(t,n,r){if("string"!=typeof n){if(m){var o=p(n);o&&o!==m&&e(t,o,r)}var a=s(n);f&&(a=a.concat(f(n)));for(var l=u(t),h=u(n),v=0;v<a.length;++v){var g=a[v];if(!(i[g]||r&&r[g]||h&&h[g]||l&&l[g])){var y=d(n,g);try{c(t,g,y)}catch(e){}}}}return t}},103:(e,t)=>{"use strict";var n="function"==typeof Symbol&&Symbol.for,r=n?Symbol.for("react.element"):60103,o=n?Symbol.for("react.portal"):60106,i=n?Symbol.for("react.fragment"):60107,a=n?Symbol.for("react.strict_mode"):60108,l=n?Symbol.for("react.profiler"):60114,u=n?Symbol.for("react.provider"):60109,c=n?Symbol.for("react.context"):60110,s=n?Symbol.for("react.async_mode"):60111,f=n?Symbol.for("react.concurrent_mode"):60111,d=n?Symbol.for("react.forward_ref"):60112,p=n?Symbol.for("react.suspense"):60113,m=n?Symbol.for("react.suspense_list"):60120,h=n?Symbol.for("react.memo"):60115,v=n?Symbol.for("react.lazy"):60116,g=n?Symbol.for("react.block"):60121,y=n?Symbol.for("react.fundamental"):60117,b=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 s:case f:case i:case l:case a:case p:return e;default:switch(e=e&&e.$$typeof){case c:case d:case v:case h:case u:return e;default:return t}}case o:return t}}}function S(e){return E(e)===f}t.AsyncMode=s,t.ConcurrentMode=f,t.ContextConsumer=c,t.ContextProvider=u,t.Element=r,t.ForwardRef=d,t.Fragment=i,t.Lazy=v,t.Memo=h,t.Portal=o,t.Profiler=l,t.StrictMode=a,t.Suspense=p,t.isAsyncMode=function(e){return S(e)||E(e)===s},t.isConcurrentMode=S,t.isContextConsumer=function(e){return E(e)===c},t.isContextProvider=function(e){return E(e)===u},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return E(e)===d},t.isFragment=function(e){return E(e)===i},t.isLazy=function(e){return E(e)===v},t.isMemo=function(e){return E(e)===h},t.isPortal=function(e){return E(e)===o},t.isProfiler=function(e){return E(e)===l},t.isStrictMode=function(e){return E(e)===a},t.isSuspense=function(e){return E(e)===p},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===i||e===f||e===l||e===a||e===p||e===m||"object"==typeof e&&null!==e&&(e.$$typeof===v||e.$$typeof===h||e.$$typeof===u||e.$$typeof===c||e.$$typeof===d||e.$$typeof===y||e.$$typeof===b||e.$$typeof===w||e.$$typeof===g)},t.typeOf=E},296:(e,t,n)=>{"use strict";e.exports=n(103)},143:e=>{"use strict";e.exports=function(e,t,n,r,o,i,a,l){if(!e){var u;if(void 0===t)u=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var c=[n,r,o,i,a,l],s=0;(u=new Error(t.replace(/%s/g,(function(){return c[s++]})))).name="Invariant Violation"}throw u.framesToPop=1,u}}},962: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("."),i=0;i<o.length;i++){if(null==r)return n;if(void 0===(r=r[o[i]]))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],i=e.apply({var:o},this);null!==i&&""!==i||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,i,a,l,u,c=e.get_operator(n),s=n[c];if(Array.isArray(s)||(s=[s]),"if"===c||"?:"==c){for(o=0;o<s.length-1;o+=2)if(e.truthy(e.apply(s[o],r)))return e.apply(s[o+1],r);return s.length===o+1?e.apply(s[o],r):null}if("and"===c){for(o=0;o<s.length;o+=1)if(i=e.apply(s[o],r),!e.truthy(i))return i;return i}if("or"===c){for(o=0;o<s.length;o+=1)if(i=e.apply(s[o],r),e.truthy(i))return i;return i}if("filter"===c)return l=e.apply(s[0],r),a=s[1],Array.isArray(l)?l.filter((function(t){return e.truthy(e.apply(a,t))})):[];if("map"===c)return l=e.apply(s[0],r),a=s[1],Array.isArray(l)?l.map((function(t){return e.apply(a,t)})):[];if("reduce"===c)return l=e.apply(s[0],r),a=s[1],u=void 0!==s[2]?s[2]:null,Array.isArray(l)?l.reduce((function(t,n){return e.apply(a,{current:n,accumulator:t})}),u):u;if("all"===c){if(l=e.apply(s[0],r),a=s[1],!Array.isArray(l)||!l.length)return!1;for(o=0;o<l.length;o+=1)if(!e.truthy(e.apply(a,l[o])))return!1;return!0}if("none"===c){if(l=e.apply(s[0],r),a=s[1],!Array.isArray(l)||!l.length)return!0;for(o=0;o<l.length;o+=1)if(e.truthy(e.apply(a,l[o])))return!1;return!0}if("some"===c){if(l=e.apply(s[0],r),a=s[1],!Array.isArray(l)||!l.length)return!1;for(o=0;o<l.length;o+=1)if(e.truthy(e.apply(a,l[o])))return!0;return!1}if(s=s.map((function(t){return e.apply(t,r)})),t.hasOwnProperty(c)&&"function"==typeof t[c])return t[c].apply(r,s);if(c.indexOf(".")>0){var f=String(c).split("."),d=t;for(o=0;o<f.length;o++){if(!d.hasOwnProperty(f[o]))throw new Error("Unrecognized operation "+c+" (failed at "+f.slice(0,o+1).join(".")+")");d=d[f[o]]}return d.apply(r,s)}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 i=0;i<n.length;i+=1)if(!e.rule_like(t[i],n[i]))return!1;return!0}return!1}return!1},e},void 0===(o=r.call(t,n,t,e))||(e.exports=o)},703:(e,t,n)=>{"use strict";var r=n(414);function o(){}function i(){}i.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,i,a){if(a!==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:i,resetWarningCache:o};return n.PropTypes=n,n}},697:(e,t,n)=>{e.exports=n(703)()},414:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},448:(e,t,n)=>{"use strict";var r=n(294),o=n(840);function i(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var a=new Set,l={};function u(e,t){c(e,t),c(e+"Capture",t)}function c(e,t){for(l[e]=t,e=0;e<t.length;e++)a.add(t[e])}var s=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),f=Object.prototype.hasOwnProperty,d=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,p={},m={};function h(e,t,n,r,o,i,a){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=a}var v={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){v[e]=new h(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];v[t]=new h(t,1,!1,e[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){v[e]=new h(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){v[e]=new h(e,2,!1,e,null,!1,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(e){v[e]=new h(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){v[e]=new h(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){v[e]=new h(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){v[e]=new h(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){v[e]=new h(e,5,!1,e.toLowerCase(),null,!1,!1)}));var g=/[\-:]([a-z])/g;function y(e){return e[1].toUpperCase()}function b(e,t,n,r){var o=v.hasOwnProperty(t)?v[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!!f.call(m,e)||!f.call(p,e)&&(d.test(e)?m[e]=!0:(p[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):o.mustUseProperty?e[o.propertyName]=null===n?3!==o.type&&"":n:(t=o.attributeName,r=o.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(o=o.type)||4===o&&!0===n?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(e){var t=e.replace(g,y);v[t]=new h(t,1,!1,e,null,!1,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(g,y);v[t]=new h(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(g,y);v[t]=new h(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){v[e]=new h(e,1,!1,e.toLowerCase(),null,!1,!1)})),v.xlinkHref=new h("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){v[e]=new h(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"),S=Symbol.for("react.portal"),x=Symbol.for("react.fragment"),k=Symbol.for("react.strict_mode"),O=Symbol.for("react.profiler"),C=Symbol.for("react.provider"),P=Symbol.for("react.context"),I=Symbol.for("react.forward_ref"),D=Symbol.for("react.suspense"),_=Symbol.for("react.suspense_list"),R=Symbol.for("react.memo"),N=Symbol.for("react.lazy");Symbol.for("react.scope"),Symbol.for("react.debug_trace_mode");var T=Symbol.for("react.offscreen");Symbol.for("react.legacy_hidden"),Symbol.for("react.cache"),Symbol.for("react.tracing_marker");var j=Symbol.iterator;function A(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=j&&e[j]||e["@@iterator"])?e:null}var M,L=Object.assign;function B(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 F=!1;function z(e,t){if(!e||F)return"";F=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(t,[])}catch(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"),i=r.stack.split("\n"),a=o.length-1,l=i.length-1;1<=a&&0<=l&&o[a]!==i[l];)l--;for(;1<=a&&0<=l;a--,l--)if(o[a]!==i[l]){if(1!==a||1!==l)do{if(a--,0>--l||o[a]!==i[l]){var u="\n"+o[a].replace(" at new "," at ");return e.displayName&&u.includes("<anonymous>")&&(u=u.replace("<anonymous>",e.displayName)),u}}while(1<=a&&0<=l);break}}}finally{F=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?B(e):""}function U(e){switch(e.tag){case 5:return B(e.type);case 16:return B("Lazy");case 13:return B("Suspense");case 19:return B("SuspenseList");case 0:case 2:case 15:return 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 x:return"Fragment";case S:return"Portal";case O:return"Profiler";case k:return"StrictMode";case D:return"Suspense";case _:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case P:return(e.displayName||"Context")+".Consumer";case C:return(e._context.displayName||"Context")+".Provider";case I:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case R:return null!==(t=e.displayName||null)?t:W(e.type)||"Memo";case N:t=e._payload,e=e._init;try{return W(e(t))}catch(e){}}return null}function G(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 V(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function $(e){e._valueTracker||(e._valueTracker=function(e){var t=V(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,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(e){r=""+e,i.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function q(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=V(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function Q(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 Y(e,t){var n=t.checked;return L({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function K(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 J(e,t){null!=(t=t.checked)&&b(e,"checked",t,!1)}function X(e,t){J(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&&Q(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(i(91));return L({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function oe(e,t){var n=t.value;if(null==n){if(n=t.children,t=t.defaultValue,null!=n){if(null!=t)throw Error(i(92));if(te(n)){if(1<n.length)throw Error(i(93));n=n[0]}t=n}null==t&&(t=""),n=t}e._wrapperState={initialValue:H(n)}}function ie(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 ae(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}function le(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function ue(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,se,fe=(se=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 se(e,t)}))}:se);function de(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var pe={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},me=["Webkit","ms","Moz","O"];function he(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||pe.hasOwnProperty(e)&&pe[e]?(""+t).trim():t+"px"}function ve(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),o=he(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}Object.keys(pe).forEach((function(e){me.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),pe[t]=pe[e]}))}));var ge=L({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function ye(e,t){if(t){if(ge[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(i(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(i(60));if("object"!=typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(i(61))}if(null!=t.style&&"object"!=typeof t.style)throw Error(i(62))}}function be(e,t){if(-1===e.indexOf("-"))return"string"==typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var we=null;function Ee(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var Se=null,xe=null,ke=null;function Oe(e){if(e=wo(e)){if("function"!=typeof Se)throw Error(i(280));var t=e.stateNode;t&&(t=So(t),Se(e.stateNode,e.type,t))}}function Ce(e){xe?ke?ke.push(e):ke=[e]:xe=e}function Pe(){if(xe){var e=xe,t=ke;if(ke=xe=null,Oe(e),t)for(e=0;e<t.length;e++)Oe(t[e])}}function Ie(e,t){return e(t)}function De(){}var _e=!1;function Re(e,t,n){if(_e)return e(t,n);_e=!0;try{return Ie(e,t,n)}finally{_e=!1,(null!==xe||null!==ke)&&(De(),Pe())}}function Ne(e,t){var n=e.stateNode;if(null===n)return null;var r=So(n);if(null===r)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(r=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!r;break e;default:e=!1}if(e)return null;if(n&&"function"!=typeof n)throw Error(i(231,t,typeof n));return n}var Te=!1;if(s)try{var je={};Object.defineProperty(je,"passive",{get:function(){Te=!0}}),window.addEventListener("test",je,je),window.removeEventListener("test",je,je)}catch(se){Te=!1}function Ae(e,t,n,r,o,i,a,l,u){var c=Array.prototype.slice.call(arguments,3);try{t.apply(n,c)}catch(e){this.onError(e)}}var Me=!1,Le=null,Be=!1,Fe=null,ze={onError:function(e){Me=!0,Le=e}};function Ue(e,t,n,r,o,i,a,l,u){Me=!1,Le=null,Ae.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 Ge(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(i(188))}function Ve(e){return null!==(e=function(e){var t=e.alternate;if(!t){if(null===(t=We(e)))throw Error(i(188));return t!==e?null:e}for(var n=e,r=t;;){var o=n.return;if(null===o)break;var a=o.alternate;if(null===a){if(null!==(r=o.return)){n=r;continue}break}if(o.child===a.child){for(a=o.child;a;){if(a===n)return He(o),e;if(a===r)return He(o),t;a=a.sibling}throw Error(i(188))}if(n.return!==r.return)n=o,r=a;else{for(var l=!1,u=o.child;u;){if(u===n){l=!0,n=o,r=a;break}if(u===r){l=!0,r=o,n=a;break}u=u.sibling}if(!l){for(u=a.child;u;){if(u===n){l=!0,n=a,r=o;break}if(u===r){l=!0,r=a,n=o;break}u=u.sibling}if(!l)throw Error(i(189))}}if(n.alternate!==r)throw Error(i(190))}if(3!==n.tag)throw Error(i(188));return n.stateNode.current===n?e:t}(e))?$e(e):null}function $e(e){if(5===e.tag||6===e.tag)return e;for(e=e.child;null!==e;){var t=$e(e);if(null!==t)return t;e=e.sibling}return null}var qe=o.unstable_scheduleCallback,Qe=o.unstable_cancelCallback,Ye=o.unstable_shouldYield,Ke=o.unstable_requestPaint,Je=o.unstable_now,Xe=o.unstable_getCurrentPriorityLevel,Ze=o.unstable_ImmediatePriority,et=o.unstable_UserBlockingPriority,tt=o.unstable_NormalPriority,nt=o.unstable_LowPriority,rt=o.unstable_IdlePriority,ot=null,it=null,at=Math.clz32?Math.clz32:function(e){return 0===(e>>>=0)?32:31-(lt(e)/ut|0)|0},lt=Math.log,ut=Math.LN2,ct=64,st=4194304;function ft(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return 4194240&e;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return 130023424&e;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function dt(e,t){var n=e.pendingLanes;if(0===n)return 0;var r=0,o=e.suspendedLanes,i=e.pingedLanes,a=268435455&n;if(0!==a){var l=a&~o;0!==l?r=ft(l):0!=(i&=a)&&(r=ft(i))}else 0!=(a=n&~o)?r=ft(a):0!==i&&(r=ft(i));if(0===r)return 0;if(0!==t&&t!==r&&0==(t&o)&&((o=r&-r)>=(i=t&-t)||16===o&&0!=(4194240&i)))return t;if(0!=(4&r)&&(r|=16&n),0!==(t=e.entangledLanes))for(e=e.entanglements,t&=r;0<t;)o=1<<(n=31-at(t)),r|=e[n],t&=~o;return r}function pt(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;default:return-1}}function mt(e){return 0!=(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function ht(){var e=ct;return 0==(4194240&(ct<<=1))&&(ct=64),e}function vt(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function gt(e,t,n){e.pendingLanes|=t,536870912!==t&&(e.suspendedLanes=0,e.pingedLanes=0),(e=e.eventTimes)[t=31-at(t)]=n}function yt(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-at(n),o=1<<r;o&t|e[r]&t&&(e[r]|=t),n&=~o}}var bt=0;function wt(e){return 1<(e&=-e)?4<e?0!=(268435455&e)?16:536870912:4:1}var Et,St,xt,kt,Ot,Ct=!1,Pt=[],It=null,Dt=null,_t=null,Rt=new Map,Nt=new Map,Tt=[],jt="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 At(e,t){switch(e){case"focusin":case"focusout":It=null;break;case"dragenter":case"dragleave":Dt=null;break;case"mouseover":case"mouseout":_t=null;break;case"pointerover":case"pointerout":Rt.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Nt.delete(t.pointerId)}}function Mt(e,t,n,r,o,i){return null===e||e.nativeEvent!==i?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:i,targetContainers:[o]},null!==t&&null!==(t=wo(t))&&St(t),e):(e.eventSystemFlags|=r,t=e.targetContainers,null!==o&&-1===t.indexOf(o)&&t.push(o),e)}function Lt(e){var t=bo(e.target);if(null!==t){var n=We(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=Ge(n)))return e.blockedOn=t,void Ot(e.priority,(function(){xt(n)}))}else if(3===t&&n.stateNode.current.memoizedState.isDehydrated)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function Bt(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=Yt(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n)return null!==(t=wo(n))&&St(t),e.blockedOn=n,!1;var r=new(n=e.nativeEvent).constructor(n.type,n);we=r,n.target.dispatchEvent(r),we=null,t.shift()}return!0}function Ft(e,t,n){Bt(e)&&n.delete(t)}function zt(){Ct=!1,null!==It&&Bt(It)&&(It=null),null!==Dt&&Bt(Dt)&&(Dt=null),null!==_t&&Bt(_t)&&(_t=null),Rt.forEach(Ft),Nt.forEach(Ft)}function Ut(e,t){e.blockedOn===t&&(e.blockedOn=null,Ct||(Ct=!0,o.unstable_scheduleCallback(o.unstable_NormalPriority,zt)))}function Wt(e){function t(t){return Ut(t,e)}if(0<Pt.length){Ut(Pt[0],e);for(var n=1;n<Pt.length;n++){var r=Pt[n];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==It&&Ut(It,e),null!==Dt&&Ut(Dt,e),null!==_t&&Ut(_t,e),Rt.forEach(t),Nt.forEach(t),n=0;n<Tt.length;n++)(r=Tt[n]).blockedOn===e&&(r.blockedOn=null);for(;0<Tt.length&&null===(n=Tt[0]).blockedOn;)Lt(n),null===n.blockedOn&&Tt.shift()}var Gt=w.ReactCurrentBatchConfig,Ht=!0;function Vt(e,t,n,r){var o=bt,i=Gt.transition;Gt.transition=null;try{bt=1,qt(e,t,n,r)}finally{bt=o,Gt.transition=i}}function $t(e,t,n,r){var o=bt,i=Gt.transition;Gt.transition=null;try{bt=4,qt(e,t,n,r)}finally{bt=o,Gt.transition=i}}function qt(e,t,n,r){if(Ht){var o=Yt(e,t,n,r);if(null===o)Hr(e,t,r,Qt,n),At(e,r);else if(function(e,t,n,r,o){switch(t){case"focusin":return It=Mt(It,e,t,n,r,o),!0;case"dragenter":return Dt=Mt(Dt,e,t,n,r,o),!0;case"mouseover":return _t=Mt(_t,e,t,n,r,o),!0;case"pointerover":var i=o.pointerId;return Rt.set(i,Mt(Rt.get(i)||null,e,t,n,r,o)),!0;case"gotpointercapture":return i=o.pointerId,Nt.set(i,Mt(Nt.get(i)||null,e,t,n,r,o)),!0}return!1}(o,e,t,n,r))r.stopPropagation();else if(At(e,r),4&t&&-1<jt.indexOf(e)){for(;null!==o;){var i=wo(o);if(null!==i&&Et(i),null===(i=Yt(e,t,n,r))&&Hr(e,t,r,Qt,n),i===o)break;o=i}null!==o&&r.stopPropagation()}else Hr(e,t,r,null,n)}}var Qt=null;function Yt(e,t,n,r){if(Qt=null,null!==(e=bo(e=Ee(r))))if(null===(t=We(e)))e=null;else if(13===(n=t.tag)){if(null!==(e=Ge(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 Qt=e,null}function Kt(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(Xe()){case Ze:return 1;case et:return 4;case tt:case nt:return 16;case rt:return 536870912;default:return 16}default:return 16}}var Jt=null,Xt=null,Zt=null;function en(){if(Zt)return Zt;var e,t,n=Xt,r=n.length,o="value"in Jt?Jt.value:Jt.textContent,i=o.length;for(e=0;e<r&&n[e]===o[e];e++);var a=r-e;for(t=1;t<=a&&n[r-t]===o[i-t];t++);return Zt=o.slice(e,1<t?1-t:void 0)}function tn(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}function nn(){return!0}function rn(){return!1}function on(e){function t(t,n,r,o,i){for(var a in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=o,this.target=i,this.currentTarget=null,e)e.hasOwnProperty(a)&&(t=e[a],this[a]=t?t(o):o[a]);return this.isDefaultPrevented=(null!=o.defaultPrevented?o.defaultPrevented:!1===o.returnValue)?nn:rn,this.isPropagationStopped=rn,this}return L(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,un,cn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},sn=on(cn),fn=L({},cn,{view:0,detail:0}),dn=on(fn),pn=L({},fn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:On,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!==un&&(un&&"mousemove"===e.type?(an=e.screenX-un.screenX,ln=e.screenY-un.screenY):ln=an=0,un=e),an)},movementY:function(e){return"movementY"in e?e.movementY:ln}}),mn=on(pn),hn=on(L({},pn,{dataTransfer:0})),vn=on(L({},fn,{relatedTarget:0})),gn=on(L({},cn,{animationName:0,elapsedTime:0,pseudoElement:0})),yn=L({},cn,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),bn=on(yn),wn=on(L({},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"},Sn={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"},xn={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function kn(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=xn[e])&&!!t[e]}function On(){return kn}var Cn=L({},fn,{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?Sn[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:On,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}}),Pn=on(Cn),In=on(L({},pn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),Dn=on(L({},fn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:On})),_n=on(L({},cn,{propertyName:0,elapsedTime:0,pseudoElement:0})),Rn=L({},pn,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),Nn=on(Rn),Tn=[9,13,27,32],jn=s&&"CompositionEvent"in window,An=null;s&&"documentMode"in document&&(An=document.documentMode);var Mn=s&&"TextEvent"in window&&!An,Ln=s&&(!jn||An&&8<An&&11>=An),Bn=String.fromCharCode(32),Fn=!1;function zn(e,t){switch(e){case"keyup":return-1!==Tn.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,Gn={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?!!Gn[e.type]:"textarea"===t}function Vn(e,t,n,r){Ce(r),0<(t=$r(t,"onChange")).length&&(n=new sn("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var $n=null,qn=null;function Qn(e){Br(e,0)}function Yn(e){if(q(Eo(e)))return e}function Kn(e,t){if("change"===e)return t}var Jn=!1;if(s){var Xn;if(s){var Zn="oninput"in document;if(!Zn){var er=document.createElement("div");er.setAttribute("oninput","return;"),Zn="function"==typeof er.oninput}Xn=Zn}else Xn=!1;Jn=Xn&&(!document.documentMode||9<document.documentMode)}function tr(){$n&&($n.detachEvent("onpropertychange",nr),qn=$n=null)}function nr(e){if("value"===e.propertyName&&Yn(qn)){var t=[];Vn(t,qn,e,Ee(e)),Re(Qn,t)}}function rr(e,t,n){"focusin"===e?(tr(),qn=n,($n=t).attachEvent("onpropertychange",nr)):"focusout"===e&&tr()}function or(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return Yn(qn)}function ir(e,t){if("click"===e)return Yn(t)}function ar(e,t){if("input"===e||"change"===e)return Yn(t)}var lr="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t};function ur(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(!f.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 sr(e,t){var n,r=cr(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=cr(r)}}function fr(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?fr(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function dr(){for(var e=window,t=Q();t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(e){n=!1}if(!n)break;t=Q((e=t.contentWindow).document)}return t}function pr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}function mr(e){var t=dr(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&fr(n.ownerDocument.documentElement,n)){if(null!==r&&pr(n))if(t=r.start,void 0===(e=r.end)&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if((e=(t=n.ownerDocument||document)&&t.defaultView||window).getSelection){e=e.getSelection();var o=n.textContent.length,i=Math.min(r.start,o);r=void 0===r.end?i:Math.min(r.end,o),!e.extend&&i>r&&(o=r,r=i,i=o),o=sr(n,i);var a=sr(n,r);o&&a&&(1!==e.rangeCount||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&((t=t.createRange()).setStart(o.node,o.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(a.node,a.offset)):(t.setEnd(a.node,a.offset),e.addRange(t)))}for(t=[],e=n;e=e.parentNode;)1===e.nodeType&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for("function"==typeof n.focus&&n.focus(),n=0;n<t.length;n++)(e=t[n]).element.scrollLeft=e.left,e.element.scrollTop=e.top}}var hr=s&&"documentMode"in document&&11>=document.documentMode,vr=null,gr=null,yr=null,br=!1;function wr(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;br||null==vr||vr!==Q(r)||(r="selectionStart"in(r=vr)&&pr(r)?{start:r.selectionStart,end:r.selectionEnd}:{anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},yr&&ur(yr,r)||(yr=r,0<(r=$r(gr,"onSelect")).length&&(t=new sn("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=vr)))}function Er(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Sr={animationend:Er("Animation","AnimationEnd"),animationiteration:Er("Animation","AnimationIteration"),animationstart:Er("Animation","AnimationStart"),transitionend:Er("Transition","TransitionEnd")},xr={},kr={};function Or(e){if(xr[e])return xr[e];if(!Sr[e])return e;var t,n=Sr[e];for(t in n)if(n.hasOwnProperty(t)&&t in kr)return xr[e]=n[t];return e}s&&(kr=document.createElement("div").style,"AnimationEvent"in window||(delete Sr.animationend.animation,delete Sr.animationiteration.animation,delete Sr.animationstart.animation),"TransitionEvent"in window||delete Sr.transitionend.transition);var Cr=Or("animationend"),Pr=Or("animationiteration"),Ir=Or("animationstart"),Dr=Or("transitionend"),_r=new Map,Rr="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 Nr(e,t){_r.set(e,t),u(t,[e])}for(var Tr=0;Tr<Rr.length;Tr++){var jr=Rr[Tr];Nr(jr.toLowerCase(),"on"+(jr[0].toUpperCase()+jr.slice(1)))}Nr(Cr,"onAnimationEnd"),Nr(Pr,"onAnimationIteration"),Nr(Ir,"onAnimationStart"),Nr("dblclick","onDoubleClick"),Nr("focusin","onFocus"),Nr("focusout","onBlur"),Nr(Dr,"onTransitionEnd"),c("onMouseEnter",["mouseout","mouseover"]),c("onMouseLeave",["mouseout","mouseover"]),c("onPointerEnter",["pointerout","pointerover"]),c("onPointerLeave",["pointerout","pointerover"]),u("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),u("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),u("onBeforeInput",["compositionend","keypress","textInput","paste"]),u("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),u("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),u("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Ar="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(Ar));function Lr(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,function(e,t,n,r,o,a,l,u,c){if(Ue.apply(this,arguments),Me){if(!Me)throw Error(i(198));var s=Le;Me=!1,Le=null,Be||(Be=!0,Fe=s)}}(r,t,void 0,e),e.currentTarget=null}function Br(e,t){t=0!=(4&t);for(var n=0;n<e.length;n++){var r=e[n],o=r.event;r=r.listeners;e:{var i=void 0;if(t)for(var a=r.length-1;0<=a;a--){var l=r[a],u=l.instance,c=l.currentTarget;if(l=l.listener,u!==i&&o.isPropagationStopped())break e;Lr(o,l,c),i=u}else for(a=0;a<r.length;a++){if(u=(l=r[a]).instance,c=l.currentTarget,l=l.listener,u!==i&&o.isPropagationStopped())break e;Lr(o,l,c),i=u}}}if(Be)throw e=Fe,Be=!1,Fe=null,e}function Fr(e,t){var n=t[vo];void 0===n&&(n=t[vo]=new Set);var r=e+"__bubble";n.has(r)||(Gr(t,e,2,!1),n.add(r))}function zr(e,t,n){var r=0;t&&(r|=4),Gr(n,e,r,t)}var Ur="_reactListening"+Math.random().toString(36).slice(2);function Wr(e){if(!e[Ur]){e[Ur]=!0,a.forEach((function(t){"selectionchange"!==t&&(Mr.has(t)||zr(t,!1,e),zr(t,!0,e))}));var t=9===e.nodeType?e:e.ownerDocument;null===t||t[Ur]||(t[Ur]=!0,zr("selectionchange",!1,t))}}function Gr(e,t,n,r){switch(Kt(t)){case 1:var o=Vt;break;case 4:o=$t;break;default:o=qt}n=o.bind(null,t,n,e),o=void 0,!Te||"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 i=r;if(0==(1&t)&&0==(2&t)&&null!==r)e:for(;;){if(null===r)return;var a=r.tag;if(3===a||4===a){var l=r.stateNode.containerInfo;if(l===o||8===l.nodeType&&l.parentNode===o)break;if(4===a)for(a=r.return;null!==a;){var u=a.tag;if((3===u||4===u)&&((u=a.stateNode.containerInfo)===o||8===u.nodeType&&u.parentNode===o))return;a=a.return}for(;null!==l;){if(null===(a=bo(l)))return;if(5===(u=a.tag)||6===u){r=i=a;continue e}l=l.parentNode}}r=r.return}Re((function(){var r=i,o=Ee(n),a=[];e:{var l=_r.get(e);if(void 0!==l){var u=sn,c=e;switch(e){case"keypress":if(0===tn(n))break e;case"keydown":case"keyup":u=Pn;break;case"focusin":c="focus",u=vn;break;case"focusout":c="blur",u=vn;break;case"beforeblur":case"afterblur":u=vn;break;case"click":if(2===n.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":u=mn;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":u=hn;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":u=Dn;break;case Cr:case Pr:case Ir:u=gn;break;case Dr:u=_n;break;case"scroll":u=dn;break;case"wheel":u=Nn;break;case"copy":case"cut":case"paste":u=bn;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":u=In}var s=0!=(4&t),f=!s&&"scroll"===e,d=s?null!==l?l+"Capture":null:l;s=[];for(var p,m=r;null!==m;){var h=(p=m).stateNode;if(5===p.tag&&null!==h&&(p=h,null!==d&&null!=(h=Ne(m,d))&&s.push(Vr(m,h,p))),f)break;m=m.return}0<s.length&&(l=new u(l,c,null,n,o),a.push({event:l,listeners:s}))}}if(0==(7&t)){if(u="mouseout"===e||"pointerout"===e,(!(l="mouseover"===e||"pointerover"===e)||n===we||!(c=n.relatedTarget||n.fromElement)||!bo(c)&&!c[ho])&&(u||l)&&(l=o.window===o?o:(l=o.ownerDocument)?l.defaultView||l.parentWindow:window,u?(u=r,null!==(c=(c=n.relatedTarget||n.toElement)?bo(c):null)&&(c!==(f=We(c))||5!==c.tag&&6!==c.tag)&&(c=null)):(u=null,c=r),u!==c)){if(s=mn,h="onMouseLeave",d="onMouseEnter",m="mouse","pointerout"!==e&&"pointerover"!==e||(s=In,h="onPointerLeave",d="onPointerEnter",m="pointer"),f=null==u?l:Eo(u),p=null==c?l:Eo(c),(l=new s(h,m+"leave",u,n,o)).target=f,l.relatedTarget=p,h=null,bo(o)===r&&((s=new s(d,m+"enter",c,n,o)).target=p,s.relatedTarget=f,h=s),f=h,u&&c)e:{for(d=c,m=0,p=s=u;p;p=qr(p))m++;for(p=0,h=d;h;h=qr(h))p++;for(;0<m-p;)s=qr(s),m--;for(;0<p-m;)d=qr(d),p--;for(;m--;){if(s===d||null!==d&&s===d.alternate)break e;s=qr(s),d=qr(d)}s=null}else s=null;null!==u&&Qr(a,l,u,s,!1),null!==c&&null!==f&&Qr(a,f,c,s,!0)}if("select"===(u=(l=r?Eo(r):window).nodeName&&l.nodeName.toLowerCase())||"input"===u&&"file"===l.type)var v=Kn;else if(Hn(l))if(Jn)v=ar;else{v=or;var g=rr}else(u=l.nodeName)&&"input"===u.toLowerCase()&&("checkbox"===l.type||"radio"===l.type)&&(v=ir);switch(v&&(v=v(e,r))?Vn(a,v,n,o):(g&&g(e,l,r),"focusout"===e&&(g=l._wrapperState)&&g.controlled&&"number"===l.type&&ee(l,"number",l.value)),g=r?Eo(r):window,e){case"focusin":(Hn(g)||"true"===g.contentEditable)&&(vr=g,gr=r,yr=null);break;case"focusout":yr=gr=vr=null;break;case"mousedown":br=!0;break;case"contextmenu":case"mouseup":case"dragend":br=!1,wr(a,n,o);break;case"selectionchange":if(hr)break;case"keydown":case"keyup":wr(a,n,o)}var y;if(jn)e:{switch(e){case"compositionstart":var b="onCompositionStart";break e;case"compositionend":b="onCompositionEnd";break e;case"compositionupdate":b="onCompositionUpdate";break e}b=void 0}else Wn?zn(e,n)&&(b="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(b="onCompositionStart");b&&(Ln&&"ko"!==n.locale&&(Wn||"onCompositionStart"!==b?"onCompositionEnd"===b&&Wn&&(y=en()):(Xt="value"in(Jt=o)?Jt.value:Jt.textContent,Wn=!0)),0<(g=$r(r,b)).length&&(b=new wn(b,e,null,n,o),a.push({event:b,listeners:g}),(y||null!==(y=Un(n)))&&(b.data=y))),(y=Mn?function(e,t){switch(e){case"compositionend":return Un(t);case"keypress":return 32!==t.which?null:(Fn=!0,Bn);case"textInput":return(e=t.data)===Bn&&Fn?null:e;default:return null}}(e,n):function(e,t){if(Wn)return"compositionend"===e||!jn&&zn(e,t)?(e=en(),Zt=Xt=Jt=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 Ln&&"ko"!==t.locale?null:t.data}}(e,n))&&0<(r=$r(r,"onBeforeInput")).length&&(o=new wn("onBeforeInput","beforeinput",null,n,o),a.push({event:o,listeners:r}),o.data=y)}Br(a,t)}))}function Vr(e,t,n){return{instance:e,listener:t,currentTarget:n}}function $r(e,t){for(var n=t+"Capture",r=[];null!==e;){var o=e,i=o.stateNode;5===o.tag&&null!==i&&(o=i,null!=(i=Ne(e,n))&&r.unshift(Vr(e,i,o)),null!=(i=Ne(e,t))&&r.push(Vr(e,i,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 Qr(e,t,n,r,o){for(var i=t._reactName,a=[];null!==n&&n!==r;){var l=n,u=l.alternate,c=l.stateNode;if(null!==u&&u===r)break;5===l.tag&&null!==c&&(l=c,o?null!=(u=Ne(n,i))&&a.unshift(Vr(n,u,l)):o||null!=(u=Ne(n,i))&&a.push(Vr(n,u,l))),n=n.return}0!==a.length&&e.push({event:t,listeners:a})}var Yr=/\r\n?/g,Kr=/\u0000|\uFFFD/g;function Jr(e){return("string"==typeof e?e:""+e).replace(Yr,"\n").replace(Kr,"")}function Xr(e,t,n){if(t=Jr(t),Jr(e)!==t&&n)throw Error(i(425))}function Zr(){}var eo=null,to=null;function no(e,t){return"textarea"===e||"noscript"===e||"string"==typeof t.children||"number"==typeof t.children||"object"==typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var ro="function"==typeof setTimeout?setTimeout:void 0,oo="function"==typeof clearTimeout?clearTimeout:void 0,io="function"==typeof Promise?Promise:void 0,ao="function"==typeof queueMicrotask?queueMicrotask:void 0!==io?function(e){return io.resolve(null).then(e).catch(lo)}:ro;function lo(e){setTimeout((function(){throw e}))}function uo(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 so(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||"$!"===n||"$?"===n){if(0===t)return e;t--}else"/$"===n&&t++}e=e.previousSibling}return null}var fo=Math.random().toString(36).slice(2),po="__reactFiber$"+fo,mo="__reactProps$"+fo,ho="__reactContainer$"+fo,vo="__reactEvents$"+fo,go="__reactListeners$"+fo,yo="__reactHandles$"+fo;function bo(e){var t=e[po];if(t)return t;for(var n=e.parentNode;n;){if(t=n[ho]||n[po]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=so(e);null!==e;){if(n=e[po])return n;e=so(e)}return t}n=(e=n).parentNode}return null}function wo(e){return!(e=e[po]||e[ho])||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(i(33))}function So(e){return e[mo]||null}var xo=[],ko=-1;function Oo(e){return{current:e}}function Co(e){0>ko||(e.current=xo[ko],xo[ko]=null,ko--)}function Po(e,t){ko++,xo[ko]=e.current,e.current=t}var Io={},Do=Oo(Io),_o=Oo(!1),Ro=Io;function No(e,t){var n=e.type.contextTypes;if(!n)return Io;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o,i={};for(o in n)i[o]=t[o];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function To(e){return null!=e.childContextTypes}function jo(){Co(_o),Co(Do)}function Ao(e,t,n){if(Do.current!==Io)throw Error(i(168));Po(Do,t),Po(_o,n)}function Mo(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,"function"!=typeof r.getChildContext)return n;for(var o in r=r.getChildContext())if(!(o in t))throw Error(i(108,G(e)||"Unknown",o));return L({},n,r)}function Lo(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Io,Ro=Do.current,Po(Do,e),Po(_o,_o.current),!0}function Bo(e,t,n){var r=e.stateNode;if(!r)throw Error(i(169));n?(e=Mo(e,t,Ro),r.__reactInternalMemoizedMergedChildContext=e,Co(_o),Co(Do),Po(Do,e)):Co(_o),Po(_o,n)}var Fo=null,zo=!1,Uo=!1;function Wo(e){null===Fo?Fo=[e]:Fo.push(e)}function Go(){if(!Uo&&null!==Fo){Uo=!0;var e=0,t=bt;try{var n=Fo;for(bt=1;e<n.length;e++){var r=n[e];do{r=r(!0)}while(null!==r)}Fo=null,zo=!1}catch(t){throw null!==Fo&&(Fo=Fo.slice(e+1)),qe(Ze,Go),t}finally{bt=t,Uo=!1}}return null}var Ho=[],Vo=0,$o=null,qo=0,Qo=[],Yo=0,Ko=null,Jo=1,Xo="";function Zo(e,t){Ho[Vo++]=qo,Ho[Vo++]=$o,$o=e,qo=t}function ei(e,t,n){Qo[Yo++]=Jo,Qo[Yo++]=Xo,Qo[Yo++]=Ko,Ko=e;var r=Jo;e=Xo;var o=32-at(r)-1;r&=~(1<<o),n+=1;var i=32-at(t)+o;if(30<i){var a=o-o%5;i=(r&(1<<a)-1).toString(32),r>>=a,o-=a,Jo=1<<32-at(t)+o|n<<o|r,Xo=i+e}else Jo=1<<i|n<<o|r,Xo=e}function ti(e){null!==e.return&&(Zo(e,1),ei(e,1,0))}function ni(e){for(;e===$o;)$o=Ho[--Vo],Ho[Vo]=null,qo=Ho[--Vo],Ho[Vo]=null;for(;e===Ko;)Ko=Qo[--Yo],Qo[Yo]=null,Xo=Qo[--Yo],Qo[Yo]=null,Jo=Qo[--Yo],Qo[Yo]=null}var ri=null,oi=null,ii=!1,ai=null;function li(e,t){var n=Nc(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 ui(e,t){switch(e.tag){case 5:var n=e.type;return null!==(t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,ri=e,oi=co(t.firstChild),!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,ri=e,oi=null,!0);case 13:return null!==(t=8!==t.nodeType?null:t)&&(n=null!==Ko?{id:Jo,overflow:Xo}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},(n=Nc(18,null,null,0)).stateNode=t,n.return=e,e.child=n,ri=e,oi=null,!0);default:return!1}}function ci(e){return 0!=(1&e.mode)&&0==(128&e.flags)}function si(e){if(ii){var t=oi;if(t){var n=t;if(!ui(e,t)){if(ci(e))throw Error(i(418));t=co(n.nextSibling);var r=ri;t&&ui(e,t)?li(r,n):(e.flags=-4097&e.flags|2,ii=!1,ri=e)}}else{if(ci(e))throw Error(i(418));e.flags=-4097&e.flags|2,ii=!1,ri=e}}}function fi(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;ri=e}function di(e){if(e!==ri)return!1;if(!ii)return fi(e),ii=!0,!1;var t;if((t=3!==e.tag)&&!(t=5!==e.tag)&&(t="head"!==(t=e.type)&&"body"!==t&&!no(e.type,e.memoizedProps)),t&&(t=oi)){if(ci(e))throw pi(),Error(i(418));for(;t;)li(e,t),t=co(t.nextSibling)}if(fi(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(i(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var n=e.data;if("/$"===n){if(0===t){oi=co(e.nextSibling);break e}t--}else"$"!==n&&"$!"!==n&&"$?"!==n||t++}e=e.nextSibling}oi=null}}else oi=ri?co(e.stateNode.nextSibling):null;return!0}function pi(){for(var e=oi;e;)e=co(e.nextSibling)}function mi(){oi=ri=null,ii=!1}function hi(e){null===ai?ai=[e]:ai.push(e)}var vi=w.ReactCurrentBatchConfig;function gi(e,t){if(e&&e.defaultProps){for(var n in t=L({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}var yi=Oo(null),bi=null,wi=null,Ei=null;function Si(){Ei=wi=bi=null}function xi(e){var t=yi.current;Co(yi),e._currentValue=t}function ki(e,t,n){for(;null!==e;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,null!==r&&(r.childLanes|=t)):null!==r&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Oi(e,t){bi=e,Ei=wi=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(0!=(e.lanes&t)&&(wl=!0),e.firstContext=null)}function Ci(e){var t=e._currentValue;if(Ei!==e)if(e={context:e,memoizedValue:t,next:null},null===wi){if(null===bi)throw Error(i(308));wi=e,bi.dependencies={lanes:0,firstContext:e}}else wi=wi.next=e;return t}var Pi=null;function Ii(e){null===Pi?Pi=[e]:Pi.push(e)}function Di(e,t,n,r){var o=t.interleaved;return null===o?(n.next=n,Ii(t)):(n.next=o.next,o.next=n),t.interleaved=n,_i(e,r)}function _i(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 Ri=!1;function Ni(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Ti(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function ji(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Ai(e,t,n){var r=e.updateQueue;if(null===r)return null;if(r=r.shared,0!=(2&Du)){var o=r.pending;return null===o?t.next=t:(t.next=o.next,o.next=t),r.pending=t,_i(e,n)}return null===(o=r.interleaved)?(t.next=t,Ii(r)):(t.next=o.next,o.next=t),r.interleaved=t,_i(e,n)}function Mi(e,t,n){if(null!==(t=t.updateQueue)&&(t=t.shared,0!=(4194240&n))){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,yt(e,n)}}function Li(e,t){var n=e.updateQueue,r=e.alternate;if(null!==r&&n===(r=r.updateQueue)){var o=null,i=null;if(null!==(n=n.firstBaseUpdate)){do{var a={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};null===i?o=i=a:i=i.next=a,n=n.next}while(null!==n);null===i?o=i=t:i=i.next=t}else o=i=t;return n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:i,shared:r.shared,effects:r.effects},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Bi(e,t,n,r){var o=e.updateQueue;Ri=!1;var i=o.firstBaseUpdate,a=o.lastBaseUpdate,l=o.shared.pending;if(null!==l){o.shared.pending=null;var u=l,c=u.next;u.next=null,null===a?i=c:a.next=c,a=u;var s=e.alternate;null!==s&&(l=(s=s.updateQueue).lastBaseUpdate)!==a&&(null===l?s.firstBaseUpdate=c:l.next=c,s.lastBaseUpdate=u)}if(null!==i){var f=o.baseState;for(a=0,s=c=u=null,l=i;;){var d=l.lane,p=l.eventTime;if((r&d)===d){null!==s&&(s=s.next={eventTime:p,lane:0,tag:l.tag,payload:l.payload,callback:l.callback,next:null});e:{var m=e,h=l;switch(d=t,p=n,h.tag){case 1:if("function"==typeof(m=h.payload)){f=m.call(p,f,d);break e}f=m;break e;case 3:m.flags=-65537&m.flags|128;case 0:if(null==(d="function"==typeof(m=h.payload)?m.call(p,f,d):m))break e;f=L({},f,d);break e;case 2:Ri=!0}}null!==l.callback&&0!==l.lane&&(e.flags|=64,null===(d=o.effects)?o.effects=[l]:d.push(l))}else p={eventTime:p,lane:d,tag:l.tag,payload:l.payload,callback:l.callback,next:null},null===s?(c=s=p,u=f):s=s.next=p,a|=d;if(null===(l=l.next)){if(null===(l=o.shared.pending))break;l=(d=l).next,d.next=null,o.lastBaseUpdate=d,o.shared.pending=null}}if(null===s&&(u=f),o.baseState=u,o.firstBaseUpdate=c,o.lastBaseUpdate=s,null!==(t=o.shared.interleaved)){o=t;do{a|=o.lane,o=o.next}while(o!==t)}else null===i&&(o.shared.lanes=0);Lu|=a,e.lanes=a,e.memoizedState=f}}function Fi(e,t,n){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var r=e[t],o=r.callback;if(null!==o){if(r.callback=null,r=n,"function"!=typeof o)throw Error(i(191,o));o.call(r)}}}var zi=(new r.Component).refs;function Ui(e,t,n,r){n=null==(n=n(r,t=e.memoizedState))?t:L({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}var Wi={isMounted:function(e){return!!(e=e._reactInternals)&&We(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=tc(),o=nc(e),i=ji(r,o);i.payload=t,null!=n&&(i.callback=n),null!==(t=Ai(e,i,o))&&(rc(t,e,o,r),Mi(t,e,o))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=tc(),o=nc(e),i=ji(r,o);i.tag=1,i.payload=t,null!=n&&(i.callback=n),null!==(t=Ai(e,i,o))&&(rc(t,e,o,r),Mi(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=tc(),r=nc(e),o=ji(n,r);o.tag=2,null!=t&&(o.callback=t),null!==(t=Ai(e,o,r))&&(rc(t,e,r,n),Mi(t,e,r))}};function Gi(e,t,n,r,o,i,a){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,i,a):!(t.prototype&&t.prototype.isPureReactComponent&&ur(n,r)&&ur(o,i))}function Hi(e,t,n){var r=!1,o=Io,i=t.contextType;return"object"==typeof i&&null!==i?i=Ci(i):(o=To(t)?Ro:Do.current,i=(r=null!=(r=t.contextTypes))?No(e,o):Io),t=new t(n,i),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=Wi,e.stateNode=t,t._reactInternals=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=i),t}function Vi(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&&Wi.enqueueReplaceState(t,t.state,null)}function $i(e,t,n,r){var o=e.stateNode;o.props=n,o.state=e.memoizedState,o.refs=zi,Ni(e);var i=t.contextType;"object"==typeof i&&null!==i?o.context=Ci(i):(i=To(t)?Ro:Do.current,o.context=No(e,i)),o.state=e.memoizedState,"function"==typeof(i=t.getDerivedStateFromProps)&&(Ui(e,t,i,n),o.state=e.memoizedState),"function"==typeof t.getDerivedStateFromProps||"function"==typeof o.getSnapshotBeforeUpdate||"function"!=typeof o.UNSAFE_componentWillMount&&"function"!=typeof o.componentWillMount||(t=o.state,"function"==typeof o.componentWillMount&&o.componentWillMount(),"function"==typeof o.UNSAFE_componentWillMount&&o.UNSAFE_componentWillMount(),t!==o.state&&Wi.enqueueReplaceState(o,o.state,null),Bi(e,n,o,r),o.state=e.memoizedState),"function"==typeof o.componentDidMount&&(e.flags|=4194308)}function qi(e,t,n){if(null!==(e=n.ref)&&"function"!=typeof e&&"object"!=typeof e){if(n._owner){if(n=n._owner){if(1!==n.tag)throw Error(i(309));var r=n.stateNode}if(!r)throw Error(i(147,e));var o=r,a=""+e;return null!==t&&null!==t.ref&&"function"==typeof t.ref&&t.ref._stringRef===a?t.ref:(t=function(e){var t=o.refs;t===zi&&(t=o.refs={}),null===e?delete t[a]:t[a]=e},t._stringRef=a,t)}if("string"!=typeof e)throw Error(i(284));if(!n._owner)throw Error(i(290,e))}return e}function Qi(e,t){throw e=Object.prototype.toString.call(t),Error(i(31,"[object Object]"===e?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Yi(e){return(0,e._init)(e._payload)}function Ki(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=jc(e,t)).index=0,e.sibling=null,e}function a(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.flags|=2,n):r:(t.flags|=2,n):(t.flags|=1048576,n)}function l(t){return e&&null===t.alternate&&(t.flags|=2),t}function u(e,t,n,r){return null===t||6!==t.tag?((t=Bc(n,e.mode,r)).return=e,t):((t=o(t,n)).return=e,t)}function c(e,t,n,r){var i=n.type;return i===x?f(e,t,n.props.children,r,n.key):null!==t&&(t.elementType===i||"object"==typeof i&&null!==i&&i.$$typeof===N&&Yi(i)===t.type)?((r=o(t,n.props)).ref=qi(e,t,n),r.return=e,r):((r=Ac(n.type,n.key,n.props,null,e.mode,r)).ref=qi(e,t,n),r.return=e,r)}function s(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=Fc(n,e.mode,r)).return=e,t):((t=o(t,n.children||[])).return=e,t)}function f(e,t,n,r,i){return null===t||7!==t.tag?((t=Mc(n,e.mode,r,i)).return=e,t):((t=o(t,n)).return=e,t)}function d(e,t,n){if("string"==typeof t&&""!==t||"number"==typeof t)return(t=Bc(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case E:return(n=Ac(t.type,t.key,t.props,null,e.mode,n)).ref=qi(e,null,t),n.return=e,n;case S:return(t=Fc(t,e.mode,n)).return=e,t;case N:return d(e,(0,t._init)(t._payload),n)}if(te(t)||A(t))return(t=Mc(t,e.mode,n,null)).return=e,t;Qi(e,t)}return null}function p(e,t,n,r){var o=null!==t?t.key:null;if("string"==typeof n&&""!==n||"number"==typeof n)return null!==o?null:u(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 S:return n.key===o?s(e,t,n,r):null;case N:return p(e,t,(o=n._init)(n._payload),r)}if(te(n)||A(n))return null!==o?null:f(e,t,n,r,null);Qi(e,n)}return null}function m(e,t,n,r,o){if("string"==typeof r&&""!==r||"number"==typeof r)return u(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 S:return s(t,e=e.get(null===r.key?n:r.key)||null,r,o);case N:return m(e,t,n,(0,r._init)(r._payload),o)}if(te(r)||A(r))return f(t,e=e.get(n)||null,r,o,null);Qi(t,r)}return null}function h(o,i,l,u){for(var c=null,s=null,f=i,h=i=0,v=null;null!==f&&h<l.length;h++){f.index>h?(v=f,f=null):v=f.sibling;var g=p(o,f,l[h],u);if(null===g){null===f&&(f=v);break}e&&f&&null===g.alternate&&t(o,f),i=a(g,i,h),null===s?c=g:s.sibling=g,s=g,f=v}if(h===l.length)return n(o,f),ii&&Zo(o,h),c;if(null===f){for(;h<l.length;h++)null!==(f=d(o,l[h],u))&&(i=a(f,i,h),null===s?c=f:s.sibling=f,s=f);return ii&&Zo(o,h),c}for(f=r(o,f);h<l.length;h++)null!==(v=m(f,o,h,l[h],u))&&(e&&null!==v.alternate&&f.delete(null===v.key?h:v.key),i=a(v,i,h),null===s?c=v:s.sibling=v,s=v);return e&&f.forEach((function(e){return t(o,e)})),ii&&Zo(o,h),c}function v(o,l,u,c){var s=A(u);if("function"!=typeof s)throw Error(i(150));if(null==(u=s.call(u)))throw Error(i(151));for(var f=s=null,h=l,v=l=0,g=null,y=u.next();null!==h&&!y.done;v++,y=u.next()){h.index>v?(g=h,h=null):g=h.sibling;var b=p(o,h,y.value,c);if(null===b){null===h&&(h=g);break}e&&h&&null===b.alternate&&t(o,h),l=a(b,l,v),null===f?s=b:f.sibling=b,f=b,h=g}if(y.done)return n(o,h),ii&&Zo(o,v),s;if(null===h){for(;!y.done;v++,y=u.next())null!==(y=d(o,y.value,c))&&(l=a(y,l,v),null===f?s=y:f.sibling=y,f=y);return ii&&Zo(o,v),s}for(h=r(o,h);!y.done;v++,y=u.next())null!==(y=m(h,o,v,y.value,c))&&(e&&null!==y.alternate&&h.delete(null===y.key?v:y.key),l=a(y,l,v),null===f?s=y:f.sibling=y,f=y);return e&&h.forEach((function(e){return t(o,e)})),ii&&Zo(o,v),s}return function e(r,i,a,u){if("object"==typeof a&&null!==a&&a.type===x&&null===a.key&&(a=a.props.children),"object"==typeof a&&null!==a){switch(a.$$typeof){case E:e:{for(var c=a.key,s=i;null!==s;){if(s.key===c){if((c=a.type)===x){if(7===s.tag){n(r,s.sibling),(i=o(s,a.props.children)).return=r,r=i;break e}}else if(s.elementType===c||"object"==typeof c&&null!==c&&c.$$typeof===N&&Yi(c)===s.type){n(r,s.sibling),(i=o(s,a.props)).ref=qi(r,s,a),i.return=r,r=i;break e}n(r,s);break}t(r,s),s=s.sibling}a.type===x?((i=Mc(a.props.children,r.mode,u,a.key)).return=r,r=i):((u=Ac(a.type,a.key,a.props,null,r.mode,u)).ref=qi(r,i,a),u.return=r,r=u)}return l(r);case S:e:{for(s=a.key;null!==i;){if(i.key===s){if(4===i.tag&&i.stateNode.containerInfo===a.containerInfo&&i.stateNode.implementation===a.implementation){n(r,i.sibling),(i=o(i,a.children||[])).return=r,r=i;break e}n(r,i);break}t(r,i),i=i.sibling}(i=Fc(a,r.mode,u)).return=r,r=i}return l(r);case N:return e(r,i,(s=a._init)(a._payload),u)}if(te(a))return h(r,i,a,u);if(A(a))return v(r,i,a,u);Qi(r,a)}return"string"==typeof a&&""!==a||"number"==typeof a?(a=""+a,null!==i&&6===i.tag?(n(r,i.sibling),(i=o(i,a)).return=r,r=i):(n(r,i),(i=Bc(a,r.mode,u)).return=r,r=i),l(r)):n(r,i)}}var Ji=Ki(!0),Xi=Ki(!1),Zi={},ea=Oo(Zi),ta=Oo(Zi),na=Oo(Zi);function ra(e){if(e===Zi)throw Error(i(174));return e}function oa(e,t){switch(Po(na,t),Po(ta,e),Po(ea,Zi),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:ue(null,"");break;default:t=ue(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}Co(ea),Po(ea,t)}function ia(){Co(ea),Co(ta),Co(na)}function aa(e){ra(na.current);var t=ra(ea.current),n=ue(t,e.type);t!==n&&(Po(ta,e),Po(ea,n))}function la(e){ta.current===e&&(Co(ea),Co(ta))}var ua=Oo(0);function ca(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!=(128&t.flags))return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var sa=[];function fa(){for(var e=0;e<sa.length;e++)sa[e]._workInProgressVersionPrimary=null;sa.length=0}var da=w.ReactCurrentDispatcher,pa=w.ReactCurrentBatchConfig,ma=0,ha=null,va=null,ga=null,ya=!1,ba=!1,wa=0,Ea=0;function Sa(){throw Error(i(321))}function xa(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 ka(e,t,n,r,o,a){if(ma=a,ha=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,da.current=null===e||null===e.memoizedState?ll:ul,e=n(r,o),ba){a=0;do{if(ba=!1,wa=0,25<=a)throw Error(i(301));a+=1,ga=va=null,t.updateQueue=null,da.current=cl,e=n(r,o)}while(ba)}if(da.current=al,t=null!==va&&null!==va.next,ma=0,ga=va=ha=null,ya=!1,t)throw Error(i(300));return e}function Oa(){var e=0!==wa;return wa=0,e}function Ca(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===ga?ha.memoizedState=ga=e:ga=ga.next=e,ga}function Pa(){if(null===va){var e=ha.alternate;e=null!==e?e.memoizedState:null}else e=va.next;var t=null===ga?ha.memoizedState:ga.next;if(null!==t)ga=t,va=e;else{if(null===e)throw Error(i(310));e={memoizedState:(va=e).memoizedState,baseState:va.baseState,baseQueue:va.baseQueue,queue:va.queue,next:null},null===ga?ha.memoizedState=ga=e:ga=ga.next=e}return ga}function Ia(e,t){return"function"==typeof t?t(e):t}function Da(e){var t=Pa(),n=t.queue;if(null===n)throw Error(i(311));n.lastRenderedReducer=e;var r=va,o=r.baseQueue,a=n.pending;if(null!==a){if(null!==o){var l=o.next;o.next=a.next,a.next=l}r.baseQueue=o=a,n.pending=null}if(null!==o){a=o.next,r=r.baseState;var u=l=null,c=null,s=a;do{var f=s.lane;if((ma&f)===f)null!==c&&(c=c.next={lane:0,action:s.action,hasEagerState:s.hasEagerState,eagerState:s.eagerState,next:null}),r=s.hasEagerState?s.eagerState:e(r,s.action);else{var d={lane:f,action:s.action,hasEagerState:s.hasEagerState,eagerState:s.eagerState,next:null};null===c?(u=c=d,l=r):c=c.next=d,ha.lanes|=f,Lu|=f}s=s.next}while(null!==s&&s!==a);null===c?l=r:c.next=u,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{a=o.lane,ha.lanes|=a,Lu|=a,o=o.next}while(o!==e)}else null===o&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function _a(e){var t=Pa(),n=t.queue;if(null===n)throw Error(i(311));n.lastRenderedReducer=e;var r=n.dispatch,o=n.pending,a=t.memoizedState;if(null!==o){n.pending=null;var l=o=o.next;do{a=e(a,l.action),l=l.next}while(l!==o);lr(a,t.memoizedState)||(wl=!0),t.memoizedState=a,null===t.baseQueue&&(t.baseState=a),n.lastRenderedState=a}return[a,r]}function Ra(){}function Na(e,t){var n=ha,r=Pa(),o=t(),a=!lr(r.memoizedState,o);if(a&&(r.memoizedState=o,wl=!0),r=r.queue,Ha(Aa.bind(null,n,r,e),[e]),r.getSnapshot!==t||a||null!==ga&&1&ga.memoizedState.tag){if(n.flags|=2048,Fa(9,ja.bind(null,n,r,o,t),void 0,null),null===_u)throw Error(i(349));0!=(30&ma)||Ta(n,t,o)}return o}function Ta(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},null===(t=ha.updateQueue)?(t={lastEffect:null,stores:null},ha.updateQueue=t,t.stores=[e]):null===(n=t.stores)?t.stores=[e]:n.push(e)}function ja(e,t,n,r){t.value=n,t.getSnapshot=r,Ma(t)&&La(e)}function Aa(e,t,n){return n((function(){Ma(t)&&La(e)}))}function Ma(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!lr(e,n)}catch(e){return!0}}function La(e){var t=_i(e,1);null!==t&&rc(t,e,1,-1)}function Ba(e){var t=Ca();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Ia,lastRenderedState:e},t.queue=e,e=e.dispatch=nl.bind(null,ha,e),[t.memoizedState,e]}function Fa(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=ha.updateQueue)?(t={lastEffect:null,stores:null},ha.updateQueue=t,t.lastEffect=e.next=e):null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function za(){return Pa().memoizedState}function Ua(e,t,n,r){var o=Ca();ha.flags|=e,o.memoizedState=Fa(1|t,n,void 0,void 0===r?null:r)}function Wa(e,t,n,r){var o=Pa();r=void 0===r?null:r;var i=void 0;if(null!==va){var a=va.memoizedState;if(i=a.destroy,null!==r&&xa(r,a.deps))return void(o.memoizedState=Fa(t,n,i,r))}ha.flags|=e,o.memoizedState=Fa(1|t,n,i,r)}function Ga(e,t){return Ua(8390656,8,e,t)}function Ha(e,t){return Wa(2048,8,e,t)}function Va(e,t){return Wa(4,2,e,t)}function $a(e,t){return Wa(4,4,e,t)}function qa(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 Qa(e,t,n){return n=null!=n?n.concat([e]):null,Wa(4,4,qa.bind(null,t,e),n)}function Ya(){}function Ka(e,t){var n=Pa();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&xa(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Ja(e,t){var n=Pa();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&xa(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Xa(e,t,n){return 0==(21&ma)?(e.baseState&&(e.baseState=!1,wl=!0),e.memoizedState=n):(lr(n,t)||(n=ht(),ha.lanes|=n,Lu|=n,e.baseState=!0),t)}function Za(e,t){var n=bt;bt=0!==n&&4>n?n:4,e(!0);var r=pa.transition;pa.transition={};try{e(!1),t()}finally{bt=n,pa.transition=r}}function el(){return Pa().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=Di(e,t,n,r))&&(rc(n,e,r,tc()),il(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 i=e.alternate;if(0===e.lanes&&(null===i||0===i.lanes)&&null!==(i=t.lastRenderedReducer))try{var a=t.lastRenderedState,l=i(a,n);if(o.hasEagerState=!0,o.eagerState=l,lr(l,a)){var u=t.interleaved;return null===u?(o.next=o,Ii(t)):(o.next=u.next,u.next=o),void(t.interleaved=o)}}catch(e){}null!==(n=Di(e,t,o,r))&&(rc(n,e,r,o=tc()),il(n,t,r))}}function rl(e){var t=e.alternate;return e===ha||null!==t&&t===ha}function ol(e,t){ba=ya=!0;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function il(e,t,n){if(0!=(4194240&n)){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,yt(e,n)}}var al={readContext:Ci,useCallback:Sa,useContext:Sa,useEffect:Sa,useImperativeHandle:Sa,useInsertionEffect:Sa,useLayoutEffect:Sa,useMemo:Sa,useReducer:Sa,useRef:Sa,useState:Sa,useDebugValue:Sa,useDeferredValue:Sa,useTransition:Sa,useMutableSource:Sa,useSyncExternalStore:Sa,useId:Sa,unstable_isNewReconciler:!1},ll={readContext:Ci,useCallback:function(e,t){return Ca().memoizedState=[e,void 0===t?null:t],e},useContext:Ci,useEffect:Ga,useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,Ua(4194308,4,qa.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Ua(4194308,4,e,t)},useInsertionEffect:function(e,t){return Ua(4,2,e,t)},useMemo:function(e,t){var n=Ca();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Ca();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,ha,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},Ca().memoizedState=e},useState:Ba,useDebugValue:Ya,useDeferredValue:function(e){return Ca().memoizedState=e},useTransition:function(){var e=Ba(!1),t=e[0];return e=Za.bind(null,e[1]),Ca().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=ha,o=Ca();if(ii){if(void 0===n)throw Error(i(407));n=n()}else{if(n=t(),null===_u)throw Error(i(349));0!=(30&ma)||Ta(r,t,n)}o.memoizedState=n;var a={value:n,getSnapshot:t};return o.queue=a,Ga(Aa.bind(null,r,a,e),[e]),r.flags|=2048,Fa(9,ja.bind(null,r,a,n,t),void 0,null),n},useId:function(){var e=Ca(),t=_u.identifierPrefix;if(ii){var n=Xo;t=":"+t+"R"+(n=(Jo&~(1<<32-at(Jo)-1)).toString(32)+n),0<(n=wa++)&&(t+="H"+n.toString(32)),t+=":"}else t=":"+t+"r"+(n=Ea++).toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},ul={readContext:Ci,useCallback:Ka,useContext:Ci,useEffect:Ha,useImperativeHandle:Qa,useInsertionEffect:Va,useLayoutEffect:$a,useMemo:Ja,useReducer:Da,useRef:za,useState:function(){return Da(Ia)},useDebugValue:Ya,useDeferredValue:function(e){return Xa(Pa(),va.memoizedState,e)},useTransition:function(){return[Da(Ia)[0],Pa().memoizedState]},useMutableSource:Ra,useSyncExternalStore:Na,useId:el,unstable_isNewReconciler:!1},cl={readContext:Ci,useCallback:Ka,useContext:Ci,useEffect:Ha,useImperativeHandle:Qa,useInsertionEffect:Va,useLayoutEffect:$a,useMemo:Ja,useReducer:_a,useRef:za,useState:function(){return _a(Ia)},useDebugValue:Ya,useDeferredValue:function(e){var t=Pa();return null===va?t.memoizedState=e:Xa(t,va.memoizedState,e)},useTransition:function(){return[_a(Ia)[0],Pa().memoizedState]},useMutableSource:Ra,useSyncExternalStore:Na,useId:el,unstable_isNewReconciler:!1};function sl(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 fl(e,t,n){return{value:e,source:null,stack:null!=n?n:null,digest:null!=t?t:null}}function dl(e,t){try{console.error(t.value)}catch(e){setTimeout((function(){throw e}))}}var pl="function"==typeof WeakMap?WeakMap:Map;function ml(e,t,n){(n=ji(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Vu||(Vu=!0,$u=r),dl(0,t)},n}function hl(e,t,n){(n=ji(-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(){dl(0,t)}}var i=e.stateNode;return null!==i&&"function"==typeof i.componentDidCatch&&(n.callback=function(){dl(0,t),"function"!=typeof r&&(null===qu?qu=new Set([this]):qu.add(this));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}function vl(e,t,n){var r=e.pingCache;if(null===r){r=e.pingCache=new pl;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=Cc.bind(null,e,t,n),t.then(e,e))}function gl(e){do{var t;if((t=13===e.tag)&&(t=null===(t=e.memoizedState)||null!==t.dehydrated),t)return e;e=e.return}while(null!==e);return null}function yl(e,t,n,r,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=ji(-1,1)).tag=2,Ai(n,t,1))),n.lanes|=1),e):(e.flags|=65536,e.lanes=o,e)}var bl=w.ReactCurrentOwner,wl=!1;function El(e,t,n,r){t.child=null===e?Xi(t,null,n,r):Ji(t,e.child,n,r)}function Sl(e,t,n,r,o){n=n.render;var i=t.ref;return Oi(t,o),r=ka(e,t,n,r,i,o),n=Oa(),null===e||wl?(ii&&n&&ti(t),t.flags|=1,El(e,t,r,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Vl(e,t,o))}function xl(e,t,n,r,o){if(null===e){var i=n.type;return"function"!=typeof i||Tc(i)||void 0!==i.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=Ac(n.type,null,r,t,t.mode,o)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=i,kl(e,t,i,r,o))}if(i=e.child,0==(e.lanes&o)){var a=i.memoizedProps;if((n=null!==(n=n.compare)?n:ur)(a,r)&&e.ref===t.ref)return Vl(e,t,o)}return t.flags|=1,(e=jc(i,r)).ref=t.ref,e.return=t,t.child=e}function kl(e,t,n,r,o){if(null!==e){var i=e.memoizedProps;if(ur(i,r)&&e.ref===t.ref){if(wl=!1,t.pendingProps=r=i,0==(e.lanes&o))return t.lanes=e.lanes,Vl(e,t,o);0!=(131072&e.flags)&&(wl=!0)}}return Pl(e,t,n,r,o)}function Ol(e,t,n){var r=t.pendingProps,o=r.children,i=null!==e?e.memoizedState:null;if("hidden"===r.mode)if(0==(1&t.mode))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Po(ju,Tu),Tu|=n;else{if(0==(1073741824&n))return e=null!==i?i.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Po(ju,Tu),Tu|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=null!==i?i.baseLanes:n,Po(ju,Tu),Tu|=r}else null!==i?(r=i.baseLanes|n,t.memoizedState=null):r=n,Po(ju,Tu),Tu|=r;return El(e,t,o,n),t.child}function Cl(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Pl(e,t,n,r,o){var i=To(n)?Ro:Do.current;return i=No(t,i),Oi(t,o),n=ka(e,t,n,r,i,o),r=Oa(),null===e||wl?(ii&&r&&ti(t),t.flags|=1,El(e,t,n,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Vl(e,t,o))}function Il(e,t,n,r,o){if(To(n)){var i=!0;Lo(t)}else i=!1;if(Oi(t,o),null===t.stateNode)Hl(e,t),Hi(t,n,r),$i(t,n,r,o),r=!0;else if(null===e){var a=t.stateNode,l=t.memoizedProps;a.props=l;var u=a.context,c=n.contextType;c="object"==typeof c&&null!==c?Ci(c):No(t,c=To(n)?Ro:Do.current);var s=n.getDerivedStateFromProps,f="function"==typeof s||"function"==typeof a.getSnapshotBeforeUpdate;f||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(l!==r||u!==c)&&Vi(t,a,r,c),Ri=!1;var d=t.memoizedState;a.state=d,Bi(t,r,a,o),u=t.memoizedState,l!==r||d!==u||_o.current||Ri?("function"==typeof s&&(Ui(t,n,s,r),u=t.memoizedState),(l=Ri||Gi(t,n,l,r,d,u,c))?(f||"function"!=typeof a.UNSAFE_componentWillMount&&"function"!=typeof a.componentWillMount||("function"==typeof a.componentWillMount&&a.componentWillMount(),"function"==typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount()),"function"==typeof a.componentDidMount&&(t.flags|=4194308)):("function"==typeof a.componentDidMount&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=u),a.props=r,a.state=u,a.context=c,r=l):("function"==typeof a.componentDidMount&&(t.flags|=4194308),r=!1)}else{a=t.stateNode,Ti(e,t),l=t.memoizedProps,c=t.type===t.elementType?l:gi(t.type,l),a.props=c,f=t.pendingProps,d=a.context,u="object"==typeof(u=n.contextType)&&null!==u?Ci(u):No(t,u=To(n)?Ro:Do.current);var p=n.getDerivedStateFromProps;(s="function"==typeof p||"function"==typeof a.getSnapshotBeforeUpdate)||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(l!==f||d!==u)&&Vi(t,a,r,u),Ri=!1,d=t.memoizedState,a.state=d,Bi(t,r,a,o);var m=t.memoizedState;l!==f||d!==m||_o.current||Ri?("function"==typeof p&&(Ui(t,n,p,r),m=t.memoizedState),(c=Ri||Gi(t,n,c,r,d,m,u)||!1)?(s||"function"!=typeof a.UNSAFE_componentWillUpdate&&"function"!=typeof a.componentWillUpdate||("function"==typeof a.componentWillUpdate&&a.componentWillUpdate(r,m,u),"function"==typeof a.UNSAFE_componentWillUpdate&&a.UNSAFE_componentWillUpdate(r,m,u)),"function"==typeof a.componentDidUpdate&&(t.flags|=4),"function"==typeof a.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!=typeof a.componentDidUpdate||l===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),"function"!=typeof a.getSnapshotBeforeUpdate||l===e.memoizedProps&&d===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=m),a.props=r,a.state=m,a.context=u,r=c):("function"!=typeof a.componentDidUpdate||l===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),"function"!=typeof a.getSnapshotBeforeUpdate||l===e.memoizedProps&&d===e.memoizedState||(t.flags|=1024),r=!1)}return Dl(e,t,n,r,i,o)}function Dl(e,t,n,r,o,i){Cl(e,t);var a=0!=(128&t.flags);if(!r&&!a)return o&&Bo(t,n,!1),Vl(e,t,i);r=t.stateNode,bl.current=t;var l=a&&"function"!=typeof n.getDerivedStateFromError?null:r.render();return t.flags|=1,null!==e&&a?(t.child=Ji(t,e.child,null,i),t.child=Ji(t,null,l,i)):El(e,t,l,i),t.memoizedState=r.state,o&&Bo(t,n,!0),t.child}function _l(e){var t=e.stateNode;t.pendingContext?Ao(0,t.pendingContext,t.pendingContext!==t.context):t.context&&Ao(0,t.context,!1),oa(e,t.containerInfo)}function Rl(e,t,n,r,o){return mi(),hi(o),t.flags|=256,El(e,t,n,r),t.child}var Nl,Tl,jl,Al,Ml={dehydrated:null,treeContext:null,retryLane:0};function Ll(e){return{baseLanes:e,cachePool:null,transitions:null}}function Bl(e,t,n){var r,o=t.pendingProps,a=ua.current,l=!1,u=0!=(128&t.flags);if((r=u)||(r=(null===e||null!==e.memoizedState)&&0!=(2&a)),r?(l=!0,t.flags&=-129):null!==e&&null===e.memoizedState||(a|=1),Po(ua,1&a),null===e)return si(t),null!==(e=t.memoizedState)&&null!==(e=e.dehydrated)?(0==(1&t.mode)?t.lanes=1:"$!"===e.data?t.lanes=8:t.lanes=1073741824,null):(u=o.children,e=o.fallback,l?(o=t.mode,l=t.child,u={mode:"hidden",children:u},0==(1&o)&&null!==l?(l.childLanes=0,l.pendingProps=u):l=Lc(u,o,0,null),e=Mc(e,o,n,null),l.return=t,e.return=t,l.sibling=e,t.child=l,t.child.memoizedState=Ll(n),t.memoizedState=Ml,e):Fl(t,u));if(null!==(a=e.memoizedState)&&null!==(r=a.dehydrated))return function(e,t,n,r,o,a,l){if(n)return 256&t.flags?(t.flags&=-257,zl(e,t,l,r=fl(Error(i(422))))):null!==t.memoizedState?(t.child=e.child,t.flags|=128,null):(a=r.fallback,o=t.mode,r=Lc({mode:"visible",children:r.children},o,0,null),(a=Mc(a,o,l,null)).flags|=2,r.return=t,a.return=t,r.sibling=a,t.child=r,0!=(1&t.mode)&&Ji(t,e.child,null,l),t.child.memoizedState=Ll(l),t.memoizedState=Ml,a);if(0==(1&t.mode))return zl(e,t,l,null);if("$!"===o.data){if(r=o.nextSibling&&o.nextSibling.dataset)var u=r.dgst;return r=u,zl(e,t,l,r=fl(a=Error(i(419)),r,void 0))}if(u=0!=(l&e.childLanes),wl||u){if(null!==(r=_u)){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!==a.retryLane&&(a.retryLane=o,_i(e,o),rc(r,e,o,-1))}return vc(),zl(e,t,l,r=fl(Error(i(421))))}return"$?"===o.data?(t.flags|=128,t.child=e.child,t=Ic.bind(null,e),o._reactRetry=t,null):(e=a.treeContext,oi=co(o.nextSibling),ri=t,ii=!0,ai=null,null!==e&&(Qo[Yo++]=Jo,Qo[Yo++]=Xo,Qo[Yo++]=Ko,Jo=e.id,Xo=e.overflow,Ko=t),(t=Fl(t,r.children)).flags|=4096,t)}(e,t,u,o,r,a,n);if(l){l=o.fallback,u=t.mode,r=(a=e.child).sibling;var c={mode:"hidden",children:o.children};return 0==(1&u)&&t.child!==a?((o=t.child).childLanes=0,o.pendingProps=c,t.deletions=null):(o=jc(a,c)).subtreeFlags=14680064&a.subtreeFlags,null!==r?l=jc(r,l):(l=Mc(l,u,n,null)).flags|=2,l.return=t,o.return=t,o.sibling=l,t.child=o,o=l,l=t.child,u=null===(u=e.child.memoizedState)?Ll(n):{baseLanes:u.baseLanes|n,cachePool:null,transitions:u.transitions},l.memoizedState=u,l.childLanes=e.childLanes&~n,t.memoizedState=Ml,o}return e=(l=e.child).sibling,o=jc(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 Fl(e,t){return(t=Lc({mode:"visible",children:t},e.mode,0,null)).return=e,e.child=t}function zl(e,t,n,r){return null!==r&&hi(r),Ji(t,e.child,null,n),(e=Fl(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),ki(e.return,t,n)}function Wl(e,t,n,r,o){var i=e.memoizedState;null===i?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:o}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=r,i.tail=n,i.tailMode=o)}function Gl(e,t,n){var r=t.pendingProps,o=r.revealOrder,i=r.tail;if(El(e,t,r.children,n),0!=(2&(r=ua.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(Po(ua,r),0==(1&t.mode))t.memoizedState=null;else switch(o){case"forwards":for(n=t.child,o=null;null!==n;)null!==(e=n.alternate)&&null===ca(e)&&(o=n),n=n.sibling;null===(n=o)?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),Wl(t,!1,o,n,i);break;case"backwards":for(n=null,o=t.child,t.child=null;null!==o;){if(null!==(e=o.alternate)&&null===ca(e)){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}Wl(t,!0,n,null,i);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 Vl(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),Lu|=t.lanes,0==(n&t.childLanes))return null;if(null!==e&&t.child!==e.child)throw Error(i(153));if(null!==t.child){for(n=jc(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=jc(e,e.pendingProps)).return=t;n.sibling=null}return t.child}function $l(e,t){if(!ii)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function 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 Ql(e,t,n){var r=t.pendingProps;switch(ni(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return ql(t),null;case 1:case 17:return To(t.type)&&jo(),ql(t),null;case 3:return r=t.stateNode,ia(),Co(_o),Co(Do),fa(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),null!==e&&null!==e.child||(di(t)?t.flags|=4:null===e||e.memoizedState.isDehydrated&&0==(256&t.flags)||(t.flags|=1024,null!==ai&&(lc(ai),ai=null))),Tl(e,t),ql(t),null;case 5:la(t);var o=ra(na.current);if(n=t.type,null!==e&&null!=t.stateNode)jl(e,t,n,r,o),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(null===t.stateNode)throw Error(i(166));return ql(t),null}if(e=ra(ea.current),di(t)){r=t.stateNode,n=t.type;var a=t.memoizedProps;switch(r[po]=t,r[mo]=a,e=0!=(1&t.mode),n){case"dialog":Fr("cancel",r),Fr("close",r);break;case"iframe":case"object":case"embed":Fr("load",r);break;case"video":case"audio":for(o=0;o<Ar.length;o++)Fr(Ar[o],r);break;case"source":Fr("error",r);break;case"img":case"image":case"link":Fr("error",r),Fr("load",r);break;case"details":Fr("toggle",r);break;case"input":K(r,a),Fr("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!a.multiple},Fr("invalid",r);break;case"textarea":oe(r,a),Fr("invalid",r)}for(var u in ye(n,a),o=null,a)if(a.hasOwnProperty(u)){var c=a[u];"children"===u?"string"==typeof c?r.textContent!==c&&(!0!==a.suppressHydrationWarning&&Xr(r.textContent,c,e),o=["children",c]):"number"==typeof c&&r.textContent!==""+c&&(!0!==a.suppressHydrationWarning&&Xr(r.textContent,c,e),o=["children",""+c]):l.hasOwnProperty(u)&&null!=c&&"onScroll"===u&&Fr("scroll",r)}switch(n){case"input":$(r),Z(r,a,!0);break;case"textarea":$(r),ae(r);break;case"select":case"option":break;default:"function"==typeof a.onClick&&(r.onclick=Zr)}r=o,t.updateQueue=r,null!==r&&(t.flags|=4)}else{u=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=u.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"==typeof r.is?e=u.createElement(n,{is:r.is}):(e=u.createElement(n),"select"===n&&(u=e,r.multiple?u.multiple=!0:r.size&&(u.size=r.size))):e=u.createElementNS(e,n),e[po]=t,e[mo]=r,Nl(e,t,!1,!1),t.stateNode=e;e:{switch(u=be(n,r),n){case"dialog":Fr("cancel",e),Fr("close",e),o=r;break;case"iframe":case"object":case"embed":Fr("load",e),o=r;break;case"video":case"audio":for(o=0;o<Ar.length;o++)Fr(Ar[o],e);o=r;break;case"source":Fr("error",e),o=r;break;case"img":case"image":case"link":Fr("error",e),Fr("load",e),o=r;break;case"details":Fr("toggle",e),o=r;break;case"input":K(e,r),o=Y(e,r),Fr("invalid",e);break;case"option":default:o=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},o=L({},r,{value:void 0}),Fr("invalid",e);break;case"textarea":oe(e,r),o=re(e,r),Fr("invalid",e)}for(a in ye(n,o),c=o)if(c.hasOwnProperty(a)){var s=c[a];"style"===a?ve(e,s):"dangerouslySetInnerHTML"===a?null!=(s=s?s.__html:void 0)&&fe(e,s):"children"===a?"string"==typeof s?("textarea"!==n||""!==s)&&de(e,s):"number"==typeof s&&de(e,""+s):"suppressContentEditableWarning"!==a&&"suppressHydrationWarning"!==a&&"autoFocus"!==a&&(l.hasOwnProperty(a)?null!=s&&"onScroll"===a&&Fr("scroll",e):null!=s&&b(e,a,s,u))}switch(n){case"input":$(e),Z(e,r,!1);break;case"textarea":$(e),ae(e);break;case"option":null!=r.value&&e.setAttribute("value",""+H(r.value));break;case"select":e.multiple=!!r.multiple,null!=(a=r.value)?ne(e,!!r.multiple,a,!1):null!=r.defaultValue&&ne(e,!!r.multiple,r.defaultValue,!0);break;default:"function"==typeof o.onClick&&(e.onclick=Zr)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}null!==t.ref&&(t.flags|=512,t.flags|=2097152)}return ql(t),null;case 6:if(e&&null!=t.stateNode)Al(e,t,e.memoizedProps,r);else{if("string"!=typeof r&&null===t.stateNode)throw Error(i(166));if(n=ra(na.current),ra(ea.current),di(t)){if(r=t.stateNode,n=t.memoizedProps,r[po]=t,(a=r.nodeValue!==n)&&null!==(e=ri))switch(e.tag){case 3:Xr(r.nodeValue,n,0!=(1&e.mode));break;case 5:!0!==e.memoizedProps.suppressHydrationWarning&&Xr(r.nodeValue,n,0!=(1&e.mode))}a&&(t.flags|=4)}else(r=(9===n.nodeType?n:n.ownerDocument).createTextNode(r))[po]=t,t.stateNode=r}return ql(t),null;case 13:if(Co(ua),r=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(ii&&null!==oi&&0!=(1&t.mode)&&0==(128&t.flags))pi(),mi(),t.flags|=98560,a=!1;else if(a=di(t),null!==r&&null!==r.dehydrated){if(null===e){if(!a)throw Error(i(318));if(!(a=null!==(a=t.memoizedState)?a.dehydrated:null))throw Error(i(317));a[po]=t}else mi(),0==(128&t.flags)&&(t.memoizedState=null),t.flags|=4;ql(t),a=!1}else null!==ai&&(lc(ai),ai=null),a=!0;if(!a)return 65536&t.flags?t:null}return 0!=(128&t.flags)?(t.lanes=n,t):((r=null!==r)!=(null!==e&&null!==e.memoizedState)&&r&&(t.child.flags|=8192,0!=(1&t.mode)&&(null===e||0!=(1&ua.current)?0===Au&&(Au=3):vc())),null!==t.updateQueue&&(t.flags|=4),ql(t),null);case 4:return ia(),Tl(e,t),null===e&&Wr(t.stateNode.containerInfo),ql(t),null;case 10:return xi(t.type._context),ql(t),null;case 19:if(Co(ua),null===(a=t.memoizedState))return ql(t),null;if(r=0!=(128&t.flags),null===(u=a.rendering))if(r)$l(a,!1);else{if(0!==Au||null!==e&&0!=(128&e.flags))for(e=t.child;null!==e;){if(null!==(u=ca(e))){for(t.flags|=128,$l(a,!1),null!==(r=u.updateQueue)&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;null!==n;)e=r,(a=n).flags&=14680066,null===(u=a.alternate)?(a.childLanes=0,a.lanes=e,a.child=null,a.subtreeFlags=0,a.memoizedProps=null,a.memoizedState=null,a.updateQueue=null,a.dependencies=null,a.stateNode=null):(a.childLanes=u.childLanes,a.lanes=u.lanes,a.child=u.child,a.subtreeFlags=0,a.deletions=null,a.memoizedProps=u.memoizedProps,a.memoizedState=u.memoizedState,a.updateQueue=u.updateQueue,a.type=u.type,e=u.dependencies,a.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return Po(ua,1&ua.current|2),t.child}e=e.sibling}null!==a.tail&&Je()>Gu&&(t.flags|=128,r=!0,$l(a,!1),t.lanes=4194304)}else{if(!r)if(null!==(e=ca(u))){if(t.flags|=128,r=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.flags|=4),$l(a,!0),null===a.tail&&"hidden"===a.tailMode&&!u.alternate&&!ii)return ql(t),null}else 2*Je()-a.renderingStartTime>Gu&&1073741824!==n&&(t.flags|=128,r=!0,$l(a,!1),t.lanes=4194304);a.isBackwards?(u.sibling=t.child,t.child=u):(null!==(n=a.last)?n.sibling=u:t.child=u,a.last=u)}return null!==a.tail?(t=a.tail,a.rendering=t,a.tail=t.sibling,a.renderingStartTime=Je(),t.sibling=null,n=ua.current,Po(ua,r?1&n|2:1&n),t):(ql(t),null);case 22:case 23:return dc(),r=null!==t.memoizedState,null!==e&&null!==e.memoizedState!==r&&(t.flags|=8192),r&&0!=(1&t.mode)?0!=(1073741824&Tu)&&(ql(t),6&t.subtreeFlags&&(t.flags|=8192)):ql(t),null;case 24:case 25:return null}throw Error(i(156,t.tag))}function Yl(e,t){switch(ni(t),t.tag){case 1:return To(t.type)&&jo(),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return ia(),Co(_o),Co(Do),fa(),0!=(65536&(e=t.flags))&&0==(128&e)?(t.flags=-65537&e|128,t):null;case 5:return la(t),null;case 13:if(Co(ua),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(i(340));mi()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return Co(ua),null;case 4:return ia(),null;case 10:return xi(t.type._context),null;case 22:case 23:return dc(),null;default:return null}}Nl=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}},Tl=function(){},jl=function(e,t,n,r){var o=e.memoizedProps;if(o!==r){e=t.stateNode,ra(ea.current);var i,a=null;switch(n){case"input":o=Y(e,o),r=Y(e,r),a=[];break;case"select":o=L({},o,{value:void 0}),r=L({},r,{value:void 0}),a=[];break;case"textarea":o=re(e,o),r=re(e,r),a=[];break;default:"function"!=typeof o.onClick&&"function"==typeof r.onClick&&(e.onclick=Zr)}for(s in ye(n,r),n=null,o)if(!r.hasOwnProperty(s)&&o.hasOwnProperty(s)&&null!=o[s])if("style"===s){var u=o[s];for(i in u)u.hasOwnProperty(i)&&(n||(n={}),n[i]="")}else"dangerouslySetInnerHTML"!==s&&"children"!==s&&"suppressContentEditableWarning"!==s&&"suppressHydrationWarning"!==s&&"autoFocus"!==s&&(l.hasOwnProperty(s)?a||(a=[]):(a=a||[]).push(s,null));for(s in r){var c=r[s];if(u=null!=o?o[s]:void 0,r.hasOwnProperty(s)&&c!==u&&(null!=c||null!=u))if("style"===s)if(u){for(i in u)!u.hasOwnProperty(i)||c&&c.hasOwnProperty(i)||(n||(n={}),n[i]="");for(i in c)c.hasOwnProperty(i)&&u[i]!==c[i]&&(n||(n={}),n[i]=c[i])}else n||(a||(a=[]),a.push(s,n)),n=c;else"dangerouslySetInnerHTML"===s?(c=c?c.__html:void 0,u=u?u.__html:void 0,null!=c&&u!==c&&(a=a||[]).push(s,c)):"children"===s?"string"!=typeof c&&"number"!=typeof c||(a=a||[]).push(s,""+c):"suppressContentEditableWarning"!==s&&"suppressHydrationWarning"!==s&&(l.hasOwnProperty(s)?(null!=c&&"onScroll"===s&&Fr("scroll",e),a||u===c||(a=[])):(a=a||[]).push(s,c))}n&&(a=a||[]).push("style",n);var s=a;(t.updateQueue=s)&&(t.flags|=4)}},Al=function(e,t,n,r){n!==r&&(t.flags|=4)};var Kl=!1,Jl=!1,Xl="function"==typeof WeakSet?WeakSet:Set,Zl=null;function eu(e,t){var n=e.ref;if(null!==n)if("function"==typeof n)try{n(null)}catch(n){Oc(e,t,n)}else n.current=null}function tu(e,t,n){try{n()}catch(n){Oc(e,t,n)}}var nu=!1;function ru(e,t,n){var r=t.updateQueue;if(null!==(r=null!==r?r.lastEffect:null)){var o=r=r.next;do{if((o.tag&e)===e){var i=o.destroy;o.destroy=void 0,void 0!==i&&tu(t,n,i)}o=o.next}while(o!==r)}}function ou(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 iu(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 au(e){var t=e.alternate;null!==t&&(e.alternate=null,au(t)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&null!==(t=e.stateNode)&&(delete t[po],delete t[mo],delete t[vo],delete t[go],delete t[yo]),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 lu(e){return 5===e.tag||3===e.tag||4===e.tag}function uu(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||lu(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 cu(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(cu(e,t,n),e=e.sibling;null!==e;)cu(e,t,n),e=e.sibling}function su(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(su(e,t,n),e=e.sibling;null!==e;)su(e,t,n),e=e.sibling}var fu=null,du=!1;function pu(e,t,n){for(n=n.child;null!==n;)mu(e,t,n),n=n.sibling}function mu(e,t,n){if(it&&"function"==typeof it.onCommitFiberUnmount)try{it.onCommitFiberUnmount(ot,n)}catch(e){}switch(n.tag){case 5:Jl||eu(n,t);case 6:var r=fu,o=du;fu=null,pu(e,t,n),du=o,null!==(fu=r)&&(du?(e=fu,n=n.stateNode,8===e.nodeType?e.parentNode.removeChild(n):e.removeChild(n)):fu.removeChild(n.stateNode));break;case 18:null!==fu&&(du?(e=fu,n=n.stateNode,8===e.nodeType?uo(e.parentNode,n):1===e.nodeType&&uo(e,n),Wt(e)):uo(fu,n.stateNode));break;case 4:r=fu,o=du,fu=n.stateNode.containerInfo,du=!0,pu(e,t,n),fu=r,du=o;break;case 0:case 11:case 14:case 15:if(!Jl&&null!==(r=n.updateQueue)&&null!==(r=r.lastEffect)){o=r=r.next;do{var i=o,a=i.destroy;i=i.tag,void 0!==a&&(0!=(2&i)||0!=(4&i))&&tu(n,t,a),o=o.next}while(o!==r)}pu(e,t,n);break;case 1:if(!Jl&&(eu(n,t),"function"==typeof(r=n.stateNode).componentWillUnmount))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(e){Oc(n,t,e)}pu(e,t,n);break;case 21:pu(e,t,n);break;case 22:1&n.mode?(Jl=(r=Jl)||null!==n.memoizedState,pu(e,t,n),Jl=r):pu(e,t,n);break;default:pu(e,t,n)}}function hu(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new Xl),t.forEach((function(t){var r=Dc.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))}))}}function vu(e,t){var n=t.deletions;if(null!==n)for(var r=0;r<n.length;r++){var o=n[r];try{var a=e,l=t,u=l;e:for(;null!==u;){switch(u.tag){case 5:fu=u.stateNode,du=!1;break e;case 3:case 4:fu=u.stateNode.containerInfo,du=!0;break e}u=u.return}if(null===fu)throw Error(i(160));mu(a,l,o),fu=null,du=!1;var c=o.alternate;null!==c&&(c.return=null),o.return=null}catch(e){Oc(o,t,e)}}if(12854&t.subtreeFlags)for(t=t.child;null!==t;)gu(t,e),t=t.sibling}function gu(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(vu(t,e),yu(e),4&r){try{ru(3,e,e.return),ou(3,e)}catch(t){Oc(e,e.return,t)}try{ru(5,e,e.return)}catch(t){Oc(e,e.return,t)}}break;case 1:vu(t,e),yu(e),512&r&&null!==n&&eu(n,n.return);break;case 5:if(vu(t,e),yu(e),512&r&&null!==n&&eu(n,n.return),32&e.flags){var o=e.stateNode;try{de(o,"")}catch(t){Oc(e,e.return,t)}}if(4&r&&null!=(o=e.stateNode)){var a=e.memoizedProps,l=null!==n?n.memoizedProps:a,u=e.type,c=e.updateQueue;if(e.updateQueue=null,null!==c)try{"input"===u&&"radio"===a.type&&null!=a.name&&J(o,a),be(u,l);var s=be(u,a);for(l=0;l<c.length;l+=2){var f=c[l],d=c[l+1];"style"===f?ve(o,d):"dangerouslySetInnerHTML"===f?fe(o,d):"children"===f?de(o,d):b(o,f,d,s)}switch(u){case"input":X(o,a);break;case"textarea":ie(o,a);break;case"select":var p=o._wrapperState.wasMultiple;o._wrapperState.wasMultiple=!!a.multiple;var m=a.value;null!=m?ne(o,!!a.multiple,m,!1):p!==!!a.multiple&&(null!=a.defaultValue?ne(o,!!a.multiple,a.defaultValue,!0):ne(o,!!a.multiple,a.multiple?[]:"",!1))}o[mo]=a}catch(t){Oc(e,e.return,t)}}break;case 6:if(vu(t,e),yu(e),4&r){if(null===e.stateNode)throw Error(i(162));o=e.stateNode,a=e.memoizedProps;try{o.nodeValue=a}catch(t){Oc(e,e.return,t)}}break;case 3:if(vu(t,e),yu(e),4&r&&null!==n&&n.memoizedState.isDehydrated)try{Wt(t.containerInfo)}catch(t){Oc(e,e.return,t)}break;case 4:default:vu(t,e),yu(e);break;case 13:vu(t,e),yu(e),8192&(o=e.child).flags&&(a=null!==o.memoizedState,o.stateNode.isHidden=a,!a||null!==o.alternate&&null!==o.alternate.memoizedState||(Wu=Je())),4&r&&hu(e);break;case 22:if(f=null!==n&&null!==n.memoizedState,1&e.mode?(Jl=(s=Jl)||f,vu(t,e),Jl=s):vu(t,e),yu(e),8192&r){if(s=null!==e.memoizedState,(e.stateNode.isHidden=s)&&!f&&0!=(1&e.mode))for(Zl=e,f=e.child;null!==f;){for(d=Zl=f;null!==Zl;){switch(m=(p=Zl).child,p.tag){case 0:case 11:case 14:case 15:ru(4,p,p.return);break;case 1:eu(p,p.return);var h=p.stateNode;if("function"==typeof h.componentWillUnmount){r=p,n=p.return;try{t=r,h.props=t.memoizedProps,h.state=t.memoizedState,h.componentWillUnmount()}catch(e){Oc(r,n,e)}}break;case 5:eu(p,p.return);break;case 22:if(null!==p.memoizedState){Su(d);continue}}null!==m?(m.return=p,Zl=m):Su(d)}f=f.sibling}e:for(f=null,d=e;;){if(5===d.tag){if(null===f){f=d;try{o=d.stateNode,s?"function"==typeof(a=o.style).setProperty?a.setProperty("display","none","important"):a.display="none":(u=d.stateNode,l=null!=(c=d.memoizedProps.style)&&c.hasOwnProperty("display")?c.display:null,u.style.display=he("display",l))}catch(t){Oc(e,e.return,t)}}}else if(6===d.tag){if(null===f)try{d.stateNode.nodeValue=s?"":d.memoizedProps}catch(t){Oc(e,e.return,t)}}else if((22!==d.tag&&23!==d.tag||null===d.memoizedState||d===e)&&null!==d.child){d.child.return=d,d=d.child;continue}if(d===e)break e;for(;null===d.sibling;){if(null===d.return||d.return===e)break e;f===d&&(f=null),d=d.return}f===d&&(f=null),d.sibling.return=d.return,d=d.sibling}}break;case 19:vu(t,e),yu(e),4&r&&hu(e);case 21:}}function yu(e){var t=e.flags;if(2&t){try{e:{for(var n=e.return;null!==n;){if(lu(n)){var r=n;break e}n=n.return}throw Error(i(160))}switch(r.tag){case 5:var o=r.stateNode;32&r.flags&&(de(o,""),r.flags&=-33),su(e,uu(e),o);break;case 3:case 4:var a=r.stateNode.containerInfo;cu(e,uu(e),a);break;default:throw Error(i(161))}}catch(t){Oc(e,e.return,t)}e.flags&=-3}4096&t&&(e.flags&=-4097)}function bu(e,t,n){Zl=e,wu(e,t,n)}function wu(e,t,n){for(var r=0!=(1&e.mode);null!==Zl;){var o=Zl,i=o.child;if(22===o.tag&&r){var a=null!==o.memoizedState||Kl;if(!a){var l=o.alternate,u=null!==l&&null!==l.memoizedState||Jl;l=Kl;var c=Jl;if(Kl=a,(Jl=u)&&!c)for(Zl=o;null!==Zl;)u=(a=Zl).child,22===a.tag&&null!==a.memoizedState?xu(o):null!==u?(u.return=a,Zl=u):xu(o);for(;null!==i;)Zl=i,wu(i,t,n),i=i.sibling;Zl=o,Kl=l,Jl=c}Eu(e)}else 0!=(8772&o.subtreeFlags)&&null!==i?(i.return=o,Zl=i):Eu(e)}}function Eu(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:Jl||ou(5,t);break;case 1:var r=t.stateNode;if(4&t.flags&&!Jl)if(null===n)r.componentDidMount();else{var o=t.elementType===t.type?n.memoizedProps:gi(t.type,n.memoizedProps);r.componentDidUpdate(o,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var a=t.updateQueue;null!==a&&Fi(t,a,r);break;case 3:var l=t.updateQueue;if(null!==l){if(n=null,null!==t.child)switch(t.child.tag){case 5:case 1:n=t.child.stateNode}Fi(t,l,n)}break;case 5:var u=t.stateNode;if(null===n&&4&t.flags){n=u;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 s=t.alternate;if(null!==s){var f=s.memoizedState;if(null!==f){var d=f.dehydrated;null!==d&&Wt(d)}}}break;default:throw Error(i(163))}Jl||512&t.flags&&iu(t)}catch(e){Oc(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 Su(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 xu(e){for(;null!==Zl;){var t=Zl;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{ou(4,t)}catch(e){Oc(t,n,e)}break;case 1:var r=t.stateNode;if("function"==typeof r.componentDidMount){var o=t.return;try{r.componentDidMount()}catch(e){Oc(t,o,e)}}var i=t.return;try{iu(t)}catch(e){Oc(t,i,e)}break;case 5:var a=t.return;try{iu(t)}catch(e){Oc(t,a,e)}}}catch(e){Oc(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 ku,Ou=Math.ceil,Cu=w.ReactCurrentDispatcher,Pu=w.ReactCurrentOwner,Iu=w.ReactCurrentBatchConfig,Du=0,_u=null,Ru=null,Nu=0,Tu=0,ju=Oo(0),Au=0,Mu=null,Lu=0,Bu=0,Fu=0,zu=null,Uu=null,Wu=0,Gu=1/0,Hu=null,Vu=!1,$u=null,qu=null,Qu=!1,Yu=null,Ku=0,Ju=0,Xu=null,Zu=-1,ec=0;function tc(){return 0!=(6&Du)?Je():-1!==Zu?Zu:Zu=Je()}function nc(e){return 0==(1&e.mode)?1:0!=(2&Du)&&0!==Nu?Nu&-Nu:null!==vi.transition?(0===ec&&(ec=ht()),ec):0!==(e=bt)?e:e=void 0===(e=window.event)?16:Kt(e.type)}function rc(e,t,n,r){if(50<Ju)throw Ju=0,Xu=null,Error(i(185));gt(e,n,r),0!=(2&Du)&&e===_u||(e===_u&&(0==(2&Du)&&(Bu|=n),4===Au&&uc(e,Nu)),oc(e,r),1===n&&0===Du&&0==(1&t.mode)&&(Gu=Je()+500,zo&&Go()))}function oc(e,t){var n=e.callbackNode;!function(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,o=e.expirationTimes,i=e.pendingLanes;0<i;){var a=31-at(i),l=1<<a,u=o[a];-1===u?0!=(l&n)&&0==(l&r)||(o[a]=pt(l,t)):u<=t&&(e.expiredLanes|=l),i&=~l}}(e,t);var r=dt(e,e===_u?Nu:0);if(0===r)null!==n&&Qe(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(null!=n&&Qe(n),1===t)0===e.tag?function(e){zo=!0,Wo(e)}(cc.bind(null,e)):Wo(cc.bind(null,e)),ao((function(){0==(6&Du)&&Go()})),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=_c(n,ic.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function ic(e,t){if(Zu=-1,ec=0,0!=(6&Du))throw Error(i(327));var n=e.callbackNode;if(xc()&&e.callbackNode!==n)return null;var r=dt(e,e===_u?Nu:0);if(0===r)return null;if(0!=(30&r)||0!=(r&e.expiredLanes)||t)t=gc(e,r);else{t=r;var o=Du;Du|=2;var a=hc();for(_u===e&&Nu===t||(Hu=null,Gu=Je()+500,pc(e,t));;)try{bc();break}catch(t){mc(e,t)}Si(),Cu.current=a,Du=o,null!==Ru?t=0:(_u=null,Nu=0,t=Au)}if(0!==t){if(2===t&&0!==(o=mt(e))&&(r=o,t=ac(e,o)),1===t)throw n=Mu,pc(e,0),uc(e,r),oc(e,Je()),n;if(6===t)uc(e,r);else{if(o=e.current.alternate,0==(30&r)&&!function(e){for(var t=e;;){if(16384&t.flags){var n=t.updateQueue;if(null!==n&&null!==(n=n.stores))for(var r=0;r<n.length;r++){var o=n[r],i=o.getSnapshot;o=o.value;try{if(!lr(i(),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=gc(e,r))&&0!==(a=mt(e))&&(r=a,t=ac(e,a)),1===t))throw n=Mu,pc(e,0),uc(e,r),oc(e,Je()),n;switch(e.finishedWork=o,e.finishedLanes=r,t){case 0:case 1:throw Error(i(345));case 2:case 5:Sc(e,Uu,Hu);break;case 3:if(uc(e,r),(130023424&r)===r&&10<(t=Wu+500-Je())){if(0!==dt(e,0))break;if(((o=e.suspendedLanes)&r)!==r){tc(),e.pingedLanes|=e.suspendedLanes&o;break}e.timeoutHandle=ro(Sc.bind(null,e,Uu,Hu),t);break}Sc(e,Uu,Hu);break;case 4:if(uc(e,r),(4194240&r)===r)break;for(t=e.eventTimes,o=-1;0<r;){var l=31-at(r);a=1<<l,(l=t[l])>o&&(o=l),r&=~a}if(r=o,10<(r=(120>(r=Je()-r)?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Ou(r/1960))-r)){e.timeoutHandle=ro(Sc.bind(null,e,Uu,Hu),r);break}Sc(e,Uu,Hu);break;default:throw Error(i(329))}}}return oc(e,Je()),e.callbackNode===n?ic.bind(null,e):null}function ac(e,t){var n=zu;return e.current.memoizedState.isDehydrated&&(pc(e,t).flags|=256),2!==(e=gc(e,t))&&(t=Uu,Uu=n,null!==t&&lc(t)),e}function lc(e){null===Uu?Uu=e:Uu.push.apply(Uu,e)}function uc(e,t){for(t&=~Fu,t&=~Bu,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-at(t),r=1<<n;e[n]=-1,t&=~r}}function cc(e){if(0!=(6&Du))throw Error(i(327));xc();var t=dt(e,0);if(0==(1&t))return oc(e,Je()),null;var n=gc(e,t);if(0!==e.tag&&2===n){var r=mt(e);0!==r&&(t=r,n=ac(e,r))}if(1===n)throw n=Mu,pc(e,0),uc(e,t),oc(e,Je()),n;if(6===n)throw Error(i(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Sc(e,Uu,Hu),oc(e,Je()),null}function sc(e,t){var n=Du;Du|=1;try{return e(t)}finally{0===(Du=n)&&(Gu=Je()+500,zo&&Go())}}function fc(e){null!==Yu&&0===Yu.tag&&0==(6&Du)&&xc();var t=Du;Du|=1;var n=Iu.transition,r=bt;try{if(Iu.transition=null,bt=1,e)return e()}finally{bt=r,Iu.transition=n,0==(6&(Du=t))&&Go()}}function dc(){Tu=ju.current,Co(ju)}function pc(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,oo(n)),null!==Ru)for(n=Ru.return;null!==n;){var r=n;switch(ni(r),r.tag){case 1:null!=(r=r.type.childContextTypes)&&jo();break;case 3:ia(),Co(_o),Co(Do),fa();break;case 5:la(r);break;case 4:ia();break;case 13:case 19:Co(ua);break;case 10:xi(r.type._context);break;case 22:case 23:dc()}n=n.return}if(_u=e,Ru=e=jc(e.current,null),Nu=Tu=t,Au=0,Mu=null,Fu=Bu=Lu=0,Uu=zu=null,null!==Pi){for(t=0;t<Pi.length;t++)if(null!==(r=(n=Pi[t]).interleaved)){n.interleaved=null;var o=r.next,i=n.pending;if(null!==i){var a=i.next;i.next=o,r.next=a}n.pending=r}Pi=null}return e}function mc(e,t){for(;;){var n=Ru;try{if(Si(),da.current=al,ya){for(var r=ha.memoizedState;null!==r;){var o=r.queue;null!==o&&(o.pending=null),r=r.next}ya=!1}if(ma=0,ga=va=ha=null,ba=!1,wa=0,Pu.current=null,null===n||null===n.return){Au=1,Mu=t,Ru=null;break}e:{var a=e,l=n.return,u=n,c=t;if(t=Nu,u.flags|=32768,null!==c&&"object"==typeof c&&"function"==typeof c.then){var s=c,f=u,d=f.tag;if(0==(1&f.mode)&&(0===d||11===d||15===d)){var p=f.alternate;p?(f.updateQueue=p.updateQueue,f.memoizedState=p.memoizedState,f.lanes=p.lanes):(f.updateQueue=null,f.memoizedState=null)}var m=gl(l);if(null!==m){m.flags&=-257,yl(m,l,u,0,t),1&m.mode&&vl(a,s,t),c=s;var h=(t=m).updateQueue;if(null===h){var v=new Set;v.add(c),t.updateQueue=v}else h.add(c);break e}if(0==(1&t)){vl(a,s,t),vc();break e}c=Error(i(426))}else if(ii&&1&u.mode){var g=gl(l);if(null!==g){0==(65536&g.flags)&&(g.flags|=256),yl(g,l,u,0,t),hi(sl(c,u));break e}}a=c=sl(c,u),4!==Au&&(Au=2),null===zu?zu=[a]:zu.push(a),a=l;do{switch(a.tag){case 3:a.flags|=65536,t&=-t,a.lanes|=t,Li(a,ml(0,c,t));break e;case 1:u=c;var y=a.type,b=a.stateNode;if(0==(128&a.flags)&&("function"==typeof y.getDerivedStateFromError||null!==b&&"function"==typeof b.componentDidCatch&&(null===qu||!qu.has(b)))){a.flags|=65536,t&=-t,a.lanes|=t,Li(a,hl(a,u,t));break e}}a=a.return}while(null!==a)}Ec(n)}catch(e){t=e,Ru===n&&null!==n&&(Ru=n=n.return);continue}break}}function hc(){var e=Cu.current;return Cu.current=al,null===e?al:e}function vc(){0!==Au&&3!==Au&&2!==Au||(Au=4),null===_u||0==(268435455&Lu)&&0==(268435455&Bu)||uc(_u,Nu)}function gc(e,t){var n=Du;Du|=2;var r=hc();for(_u===e&&Nu===t||(Hu=null,pc(e,t));;)try{yc();break}catch(t){mc(e,t)}if(Si(),Du=n,Cu.current=r,null!==Ru)throw Error(i(261));return _u=null,Nu=0,Au}function yc(){for(;null!==Ru;)wc(Ru)}function bc(){for(;null!==Ru&&!Ye();)wc(Ru)}function wc(e){var t=ku(e.alternate,e,Tu);e.memoizedProps=e.pendingProps,null===t?Ec(e):Ru=t,Pu.current=null}function Ec(e){var t=e;do{var n=t.alternate;if(e=t.return,0==(32768&t.flags)){if(null!==(n=Ql(n,t,Tu)))return void(Ru=n)}else{if(null!==(n=Yl(n,t)))return n.flags&=32767,void(Ru=n);if(null===e)return Au=6,void(Ru=null);e.flags|=32768,e.subtreeFlags=0,e.deletions=null}if(null!==(t=t.sibling))return void(Ru=t);Ru=t=e}while(null!==t);0===Au&&(Au=5)}function Sc(e,t,n){var r=bt,o=Iu.transition;try{Iu.transition=null,bt=1,function(e,t,n,r){do{xc()}while(null!==Yu);if(0!=(6&Du))throw Error(i(327));n=e.finishedWork;var o=e.finishedLanes;if(null===n)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(i(177));e.callbackNode=null,e.callbackPriority=0;var a=n.lanes|n.childLanes;if(function(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var o=31-at(n),i=1<<o;t[o]=0,r[o]=-1,e[o]=-1,n&=~i}}(e,a),e===_u&&(Ru=_u=null,Nu=0),0==(2064&n.subtreeFlags)&&0==(2064&n.flags)||Qu||(Qu=!0,_c(tt,(function(){return xc(),null}))),a=0!=(15990&n.flags),0!=(15990&n.subtreeFlags)||a){a=Iu.transition,Iu.transition=null;var l=bt;bt=1;var u=Du;Du|=4,Pu.current=null,function(e,t){if(eo=Ht,pr(e=dr())){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{var r=(n=(n=e.ownerDocument)&&n.defaultView||window).getSelection&&n.getSelection();if(r&&0!==r.rangeCount){n=r.anchorNode;var o=r.anchorOffset,a=r.focusNode;r=r.focusOffset;try{n.nodeType,a.nodeType}catch(e){n=null;break e}var l=0,u=-1,c=-1,s=0,f=0,d=e,p=null;t:for(;;){for(var m;d!==n||0!==o&&3!==d.nodeType||(u=l+o),d!==a||0!==r&&3!==d.nodeType||(c=l+r),3===d.nodeType&&(l+=d.nodeValue.length),null!==(m=d.firstChild);)p=d,d=m;for(;;){if(d===e)break t;if(p===n&&++s===o&&(u=l),p===a&&++f===r&&(c=l),null!==(m=d.nextSibling))break;p=(d=p).parentNode}d=m}n=-1===u||-1===c?null:{start:u,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 h=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!==h){var v=h.memoizedProps,g=h.memoizedState,y=t.stateNode,b=y.getSnapshotBeforeUpdate(t.elementType===t.type?v:gi(t.type,v),g);y.__reactInternalSnapshotBeforeUpdate=b}break;case 3:var w=t.stateNode.containerInfo;1===w.nodeType?w.textContent="":9===w.nodeType&&w.documentElement&&w.removeChild(w.documentElement);break;default:throw Error(i(163))}}catch(e){Oc(t,t.return,e)}if(null!==(e=t.sibling)){e.return=t.return,Zl=e;break}Zl=t.return}h=nu,nu=!1}(e,n),gu(n,e),mr(to),Ht=!!eo,to=eo=null,e.current=n,bu(n,e,o),Ke(),Du=u,bt=l,Iu.transition=a}else e.current=n;if(Qu&&(Qu=!1,Yu=e,Ku=o),0===(a=e.pendingLanes)&&(qu=null),function(e){if(it&&"function"==typeof it.onCommitFiberRoot)try{it.onCommitFiberRoot(ot,e,void 0,128==(128&e.current.flags))}catch(e){}}(n.stateNode),oc(e,Je()),null!==t)for(r=e.onRecoverableError,n=0;n<t.length;n++)r((o=t[n]).value,{componentStack:o.stack,digest:o.digest});if(Vu)throw Vu=!1,e=$u,$u=null,e;0!=(1&Ku)&&0!==e.tag&&xc(),0!=(1&(a=e.pendingLanes))?e===Xu?Ju++:(Ju=0,Xu=e):Ju=0,Go()}(e,t,n,r)}finally{Iu.transition=o,bt=r}return null}function xc(){if(null!==Yu){var e=wt(Ku),t=Iu.transition,n=bt;try{if(Iu.transition=null,bt=16>e?16:e,null===Yu)var r=!1;else{if(e=Yu,Yu=null,Ku=0,0!=(6&Du))throw Error(i(331));var o=Du;for(Du|=4,Zl=e.current;null!==Zl;){var a=Zl,l=a.child;if(0!=(16&Zl.flags)){var u=a.deletions;if(null!==u){for(var c=0;c<u.length;c++){var s=u[c];for(Zl=s;null!==Zl;){var f=Zl;switch(f.tag){case 0:case 11:case 15:ru(8,f,a)}var d=f.child;if(null!==d)d.return=f,Zl=d;else for(;null!==Zl;){var p=(f=Zl).sibling,m=f.return;if(au(f),f===s){Zl=null;break}if(null!==p){p.return=m,Zl=p;break}Zl=m}}}var h=a.alternate;if(null!==h){var v=h.child;if(null!==v){h.child=null;do{var g=v.sibling;v.sibling=null,v=g}while(null!==v)}}Zl=a}}if(0!=(2064&a.subtreeFlags)&&null!==l)l.return=a,Zl=l;else e:for(;null!==Zl;){if(0!=(2048&(a=Zl).flags))switch(a.tag){case 0:case 11:case 15:ru(9,a,a.return)}var y=a.sibling;if(null!==y){y.return=a.return,Zl=y;break e}Zl=a.return}}var b=e.current;for(Zl=b;null!==Zl;){var w=(l=Zl).child;if(0!=(2064&l.subtreeFlags)&&null!==w)w.return=l,Zl=w;else e:for(l=b;null!==Zl;){if(0!=(2048&(u=Zl).flags))try{switch(u.tag){case 0:case 11:case 15:ou(9,u)}}catch(e){Oc(u,u.return,e)}if(u===l){Zl=null;break e}var E=u.sibling;if(null!==E){E.return=u.return,Zl=E;break e}Zl=u.return}}if(Du=o,Go(),it&&"function"==typeof it.onPostCommitFiberRoot)try{it.onPostCommitFiberRoot(ot,e)}catch(e){}r=!0}return r}finally{bt=n,Iu.transition=t}}return!1}function kc(e,t,n){e=Ai(e,t=ml(0,t=sl(n,t),1),1),t=tc(),null!==e&&(gt(e,1,t),oc(e,t))}function Oc(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===qu||!qu.has(r))){t=Ai(t,e=hl(t,e=sl(n,e),1),1),e=tc(),null!==t&&(gt(t,1,e),oc(t,e));break}}t=t.return}}function Cc(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),t=tc(),e.pingedLanes|=e.suspendedLanes&n,_u===e&&(Nu&n)===n&&(4===Au||3===Au&&(130023424&Nu)===Nu&&500>Je()-Wu?pc(e,0):Fu|=n),oc(e,t)}function Pc(e,t){0===t&&(0==(1&e.mode)?t=1:(t=st,0==(130023424&(st<<=1))&&(st=4194304)));var n=tc();null!==(e=_i(e,t))&&(gt(e,t,n),oc(e,n))}function Ic(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),Pc(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(i(314))}null!==r&&r.delete(t),Pc(e,n)}function _c(e,t){return qe(e,t)}function Rc(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 Nc(e,t,n,r){return new Rc(e,t,n,r)}function Tc(e){return!(!(e=e.prototype)||!e.isReactComponent)}function jc(e,t){var n=e.alternate;return null===n?((n=Nc(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 Ac(e,t,n,r,o,a){var l=2;if(r=e,"function"==typeof e)Tc(e)&&(l=1);else if("string"==typeof e)l=5;else e:switch(e){case x:return Mc(n.children,o,a,t);case k:l=8,o|=8;break;case O:return(e=Nc(12,n,t,2|o)).elementType=O,e.lanes=a,e;case D:return(e=Nc(13,n,t,o)).elementType=D,e.lanes=a,e;case _:return(e=Nc(19,n,t,o)).elementType=_,e.lanes=a,e;case T:return Lc(n,o,a,t);default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case C:l=10;break e;case P:l=9;break e;case I:l=11;break e;case R:l=14;break e;case N:l=16,r=null;break e}throw Error(i(130,null==e?e:typeof e,""))}return(t=Nc(l,n,t,o)).elementType=e,t.type=r,t.lanes=a,t}function Mc(e,t,n,r){return(e=Nc(7,e,r,t)).lanes=n,e}function Lc(e,t,n,r){return(e=Nc(22,e,r,t)).elementType=T,e.lanes=n,e.stateNode={isHidden:!1},e}function Bc(e,t,n){return(e=Nc(6,e,null,t)).lanes=n,e}function Fc(e,t,n){return(t=Nc(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=vt(0),this.expirationTimes=vt(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=vt(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function Uc(e,t,n,r,o,i,a,l,u){return e=new zc(e,t,n,l,u),1===t?(t=1,!0===i&&(t|=8)):t=0,i=Nc(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Ni(i),e}function Wc(e){if(!e)return Io;e:{if(We(e=e._reactInternals)!==e||1!==e.tag)throw Error(i(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(To(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(null!==t);throw Error(i(171))}if(1===e.tag){var n=e.type;if(To(n))return Mo(e,n,t)}return t}function Gc(e,t,n,r,o,i,a,l,u){return(e=Uc(n,r,!0,e,0,i,0,l,u)).context=Wc(null),n=e.current,(i=ji(r=tc(),o=nc(n))).callback=null!=t?t:null,Ai(n,i,o),e.current.lanes=o,gt(e,o,r),oc(e,r),e}function Hc(e,t,n,r){var o=t.current,i=tc(),a=nc(o);return n=Wc(n),null===t.context?t.context=n:t.pendingContext=n,(t=ji(i,a)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),null!==(e=Ai(o,t,a))&&(rc(e,o,a,i),Mi(e,o,a)),a}function Vc(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function $c(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function qc(e,t){$c(e,t),(e=e.alternate)&&$c(e,t)}ku=function(e,t,n){if(null!==e)if(e.memoizedProps!==t.pendingProps||_o.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:_l(t),mi();break;case 5:aa(t);break;case 1:To(t.type)&&Lo(t);break;case 4:oa(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,o=t.memoizedProps.value;Po(yi,r._currentValue),r._currentValue=o;break;case 13:if(null!==(r=t.memoizedState))return null!==r.dehydrated?(Po(ua,1&ua.current),t.flags|=128,null):0!=(n&t.child.childLanes)?Bl(e,t,n):(Po(ua,1&ua.current),null!==(e=Vl(e,t,n))?e.sibling:null);Po(ua,1&ua.current);break;case 19:if(r=0!=(n&t.childLanes),0!=(128&e.flags)){if(r)return Gl(e,t,n);t.flags|=128}if(null!==(o=t.memoizedState)&&(o.rendering=null,o.tail=null,o.lastEffect=null),Po(ua,ua.current),r)break;return null;case 22:case 23:return t.lanes=0,Ol(e,t,n)}return Vl(e,t,n)}(e,t,n);wl=0!=(131072&e.flags)}else wl=!1,ii&&0!=(1048576&t.flags)&&ei(t,qo,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Hl(e,t),e=t.pendingProps;var o=No(t,Do.current);Oi(t,n),o=ka(null,t,r,e,o,n);var a=Oa();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,To(r)?(a=!0,Lo(t)):a=!1,t.memoizedState=null!==o.state&&void 0!==o.state?o.state:null,Ni(t),o.updater=Wi,t.stateNode=o,o._reactInternals=t,$i(t,r,e,n),t=Dl(null,t,r,!0,a,n)):(t.tag=0,ii&&a&&ti(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 Tc(e)?1:0;if(null!=e){if((e=e.$$typeof)===I)return 11;if(e===R)return 14}return 2}(r),e=gi(r,e),o){case 0:t=Pl(null,t,r,e,n);break e;case 1:t=Il(null,t,r,e,n);break e;case 11:t=Sl(null,t,r,e,n);break e;case 14:t=xl(null,t,r,gi(r.type,e),n);break e}throw Error(i(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,Pl(e,t,r,o=t.elementType===r?o:gi(r,o),n);case 1:return r=t.type,o=t.pendingProps,Il(e,t,r,o=t.elementType===r?o:gi(r,o),n);case 3:e:{if(_l(t),null===e)throw Error(i(387));r=t.pendingProps,o=(a=t.memoizedState).element,Ti(e,t),Bi(t,r,null,n);var l=t.memoizedState;if(r=l.element,a.isDehydrated){if(a={element:r,isDehydrated:!1,cache:l.cache,pendingSuspenseBoundaries:l.pendingSuspenseBoundaries,transitions:l.transitions},t.updateQueue.baseState=a,t.memoizedState=a,256&t.flags){t=Rl(e,t,r,n,o=sl(Error(i(423)),t));break e}if(r!==o){t=Rl(e,t,r,n,o=sl(Error(i(424)),t));break e}for(oi=co(t.stateNode.containerInfo.firstChild),ri=t,ii=!0,ai=null,n=Xi(t,null,r,n),t.child=n;n;)n.flags=-3&n.flags|4096,n=n.sibling}else{if(mi(),r===o){t=Vl(e,t,n);break e}El(e,t,r,n)}t=t.child}return t;case 5:return aa(t),null===e&&si(t),r=t.type,o=t.pendingProps,a=null!==e?e.memoizedProps:null,l=o.children,no(r,o)?l=null:null!==a&&no(r,a)&&(t.flags|=32),Cl(e,t),El(e,t,l,n),t.child;case 6:return null===e&&si(t),null;case 13:return Bl(e,t,n);case 4:return oa(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=Ji(t,null,r,n):El(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,Sl(e,t,r,o=t.elementType===r?o:gi(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,a=t.memoizedProps,l=o.value,Po(yi,r._currentValue),r._currentValue=l,null!==a)if(lr(a.value,l)){if(a.children===o.children&&!_o.current){t=Vl(e,t,n);break e}}else for(null!==(a=t.child)&&(a.return=t);null!==a;){var u=a.dependencies;if(null!==u){l=a.child;for(var c=u.firstContext;null!==c;){if(c.context===r){if(1===a.tag){(c=ji(-1,n&-n)).tag=2;var s=a.updateQueue;if(null!==s){var f=(s=s.shared).pending;null===f?c.next=c:(c.next=f.next,f.next=c),s.pending=c}}a.lanes|=n,null!==(c=a.alternate)&&(c.lanes|=n),ki(a.return,n,t),u.lanes|=n;break}c=c.next}}else if(10===a.tag)l=a.type===t.type?null:a.child;else if(18===a.tag){if(null===(l=a.return))throw Error(i(341));l.lanes|=n,null!==(u=l.alternate)&&(u.lanes|=n),ki(l,n,t),l=a.sibling}else l=a.child;if(null!==l)l.return=a;else for(l=a;null!==l;){if(l===t){l=null;break}if(null!==(a=l.sibling)){a.return=l.return,l=a;break}l=l.return}a=l}El(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,Oi(t,n),r=r(o=Ci(o)),t.flags|=1,El(e,t,r,n),t.child;case 14:return o=gi(r=t.type,t.pendingProps),xl(e,t,r,o=gi(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:gi(r,o),Hl(e,t),t.tag=1,To(r)?(e=!0,Lo(t)):e=!1,Oi(t,n),Hi(t,r,o),$i(t,r,o,n),Dl(null,t,r,!0,e,n);case 19:return Gl(e,t,n);case 22:return Ol(e,t,n)}throw Error(i(156,t.tag))};var Qc="function"==typeof reportError?reportError:function(e){console.error(e)};function Yc(e){this._internalRoot=e}function Kc(e){this._internalRoot=e}function Jc(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType)}function Xc(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function Zc(){}function es(e,t,n,r,o){var i=n._reactRootContainer;if(i){var a=i;if("function"==typeof o){var l=o;o=function(){var e=Vc(a);l.call(e)}}Hc(t,a,e,o)}else a=function(e,t,n,r,o){if(o){if("function"==typeof r){var i=r;r=function(){var e=Vc(a);i.call(e)}}var a=Gc(t,r,e,0,null,!1,0,"",Zc);return e._reactRootContainer=a,e[ho]=a.current,Wr(8===e.nodeType?e.parentNode:e),fc(),a}for(;o=e.lastChild;)e.removeChild(o);if("function"==typeof r){var l=r;r=function(){var e=Vc(u);l.call(e)}}var u=Uc(e,0,!1,null,0,!1,0,"",Zc);return e._reactRootContainer=u,e[ho]=u.current,Wr(8===e.nodeType?e.parentNode:e),fc((function(){Hc(t,u,n,r)})),u}(n,t,e,o,r);return Vc(a)}Kc.prototype.render=Yc.prototype.render=function(e){var t=this._internalRoot;if(null===t)throw Error(i(409));Hc(e,t,null,null)},Kc.prototype.unmount=Yc.prototype.unmount=function(){var e=this._internalRoot;if(null!==e){this._internalRoot=null;var t=e.containerInfo;fc((function(){Hc(null,e,null,null)})),t[ho]=null}},Kc.prototype.unstable_scheduleHydration=function(e){if(e){var t=kt();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Tt.length&&0!==t&&t<Tt[n].priority;n++);Tt.splice(n,0,e),0===n&&Lt(e)}},Et=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=ft(t.pendingLanes);0!==n&&(yt(t,1|n),oc(t,Je()),0==(6&Du)&&(Gu=Je()+500,Go()))}break;case 13:fc((function(){var t=_i(e,1);if(null!==t){var n=tc();rc(t,e,1,n)}})),qc(e,1)}},St=function(e){if(13===e.tag){var t=_i(e,134217728);null!==t&&rc(t,e,134217728,tc()),qc(e,134217728)}},xt=function(e){if(13===e.tag){var t=nc(e),n=_i(e,t);null!==n&&rc(n,e,t,tc()),qc(e,t)}},kt=function(){return bt},Ot=function(e,t){var n=bt;try{return bt=e,t()}finally{bt=n}},Se=function(e,t,n){switch(t){case"input":if(X(e,n),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var o=So(r);if(!o)throw Error(i(90));q(r),X(r,o)}}}break;case"textarea":ie(e,n);break;case"select":null!=(t=n.value)&&ne(e,!!n.multiple,t,!1)}},Ie=sc,De=fc;var ts={usingClientEntryPoint:!1,Events:[wo,Eo,So,Ce,Pe,sc]},ns={findFiberByHostInstance:bo,bundleType:0,version:"18.2.0",rendererPackageName:"react-dom"},rs={bundleType:ns.bundleType,version:ns.version,rendererPackageName:ns.rendererPackageName,rendererConfig:ns.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=Ve(e))?null:e.stateNode},findFiberByHostInstance:ns.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 os=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!os.isDisabled&&os.supportsFiber)try{ot=os.inject(rs),it=os}catch(se){}}t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=ts,t.createPortal=function(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!Jc(t))throw Error(i(200));return function(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:S,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}(e,t,null,n)},t.createRoot=function(e,t){if(!Jc(e))throw Error(i(299));var n=!1,r="",o=Qc;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[ho]=t.current,Wr(8===e.nodeType?e.parentNode:e),new Yc(t)},t.findDOMNode=function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternals;if(void 0===t){if("function"==typeof e.render)throw Error(i(188));throw e=Object.keys(e).join(","),Error(i(268,e))}return null===(e=Ve(t))?null:e.stateNode},t.flushSync=function(e){return fc(e)},t.hydrate=function(e,t,n){if(!Xc(t))throw Error(i(200));return es(null,e,t,!0,n)},t.hydrateRoot=function(e,t,n){if(!Jc(e))throw Error(i(405));var r=null!=n&&n.hydratedSources||null,o=!1,a="",l=Qc;if(null!=n&&(!0===n.unstable_strictMode&&(o=!0),void 0!==n.identifierPrefix&&(a=n.identifierPrefix),void 0!==n.onRecoverableError&&(l=n.onRecoverableError)),t=Gc(t,null,e,1,null!=n?n:null,o,0,a,l),e[ho]=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 Kc(t)},t.render=function(e,t,n){if(!Xc(t))throw Error(i(200));return es(null,e,t,!1,n)},t.unmountComponentAtNode=function(e){if(!Xc(e))throw Error(i(40));return!!e._reactRootContainer&&(fc((function(){es(null,null,e,!1,(function(){e._reactRootContainer=null,e[ho]=null}))})),!0)},t.unstable_batchedUpdates=sc,t.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Xc(n))throw Error(i(200));if(null==e||void 0===e._reactInternals)throw Error(i(38));return es(e,t,n,!1,r)},t.version="18.2.0-next-9e3b772b8-20220608"},745:(e,t,n)=>{"use strict";var r=n(935);t.s=r.createRoot,r.hydrateRoot},935:(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(448)},921:(e,t)=>{"use strict";var n=60103,r=60106,o=60107,i=60108,a=60114,l=60109,u=60110,c=60112,s=60113,f=60120,d=60115,p=60116;if("function"==typeof Symbol&&Symbol.for){var m=Symbol.for;n=m("react.element"),r=m("react.portal"),o=m("react.fragment"),i=m("react.strict_mode"),a=m("react.profiler"),l=m("react.provider"),u=m("react.context"),c=m("react.forward_ref"),s=m("react.suspense"),f=m("react.suspense_list"),d=m("react.memo"),p=m("react.lazy"),m("react.block"),m("react.server.block"),m("react.fundamental"),m("react.debug_trace_mode"),m("react.legacy_hidden")}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 a:case i:case s:case f:return e;default:switch(e=e&&e.$$typeof){case u:case c:case p:case d:case l:return e;default:return t}}case r:return t}}}(e)===u}},864:(e,t,n)=>{"use strict";e.exports=n(921)},251:(e,t,n)=>{"use strict";var r=n(294),o=Symbol.for("react.element"),i=Symbol.for("react.fragment"),a=Object.prototype.hasOwnProperty,l=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,u={key:!0,ref:!0,__self:!0,__source:!0};function c(e,t,n){var r,i={},c=null,s=null;for(r in void 0!==n&&(c=""+n),void 0!==t.key&&(c=""+t.key),void 0!==t.ref&&(s=t.ref),t)a.call(t,r)&&!u.hasOwnProperty(r)&&(i[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===i[r]&&(i[r]=t[r]);return{$$typeof:o,type:e,key:c,ref:s,props:i,_owner:l.current}}t.Fragment=i,t.jsx=c,t.jsxs=c},408:(e,t)=>{"use strict";var n=Symbol.for("react.element"),r=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),l=Symbol.for("react.provider"),u=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),s=Symbol.for("react.suspense"),f=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),p=Symbol.iterator,m={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},h=Object.assign,v={};function g(e,t,n){this.props=e,this.context=t,this.refs=v,this.updater=n||m}function y(){}function b(e,t,n){this.props=e,this.context=t,this.refs=v,this.updater=n||m}g.prototype.isReactComponent={},g.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},g.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},y.prototype=g.prototype;var w=b.prototype=new y;w.constructor=b,h(w,g.prototype),w.isPureReactComponent=!0;var E=Array.isArray,S=Object.prototype.hasOwnProperty,x={current:null},k={key:!0,ref:!0,__self:!0,__source:!0};function O(e,t,r){var o,i={},a=null,l=null;if(null!=t)for(o in void 0!==t.ref&&(l=t.ref),void 0!==t.key&&(a=""+t.key),t)S.call(t,o)&&!k.hasOwnProperty(o)&&(i[o]=t[o]);var u=arguments.length-2;if(1===u)i.children=r;else if(1<u){for(var c=Array(u),s=0;s<u;s++)c[s]=arguments[s+2];i.children=c}if(e&&e.defaultProps)for(o in u=e.defaultProps)void 0===i[o]&&(i[o]=u[o]);return{$$typeof:n,type:e,key:a,ref:l,props:i,_owner:x.current}}function C(e){return"object"==typeof e&&null!==e&&e.$$typeof===n}var P=/\/+/g;function I(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,i,a){var l=typeof e;"undefined"!==l&&"boolean"!==l||(e=null);var u=!1;if(null===e)u=!0;else switch(l){case"string":case"number":u=!0;break;case"object":switch(e.$$typeof){case n:case r:u=!0}}if(u)return a=a(u=e),e=""===i?"."+I(u,0):i,E(a)?(o="",null!=e&&(o=e.replace(P,"$&/")+"/"),D(a,t,o,"",(function(e){return e}))):null!=a&&(C(a)&&(a=function(e,t){return{$$typeof:n,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(a,o+(!a.key||u&&u.key===a.key?"":(""+a.key).replace(P,"$&/")+"/")+e)),t.push(a)),1;if(u=0,i=""===i?".":i+":",E(e))for(var c=0;c<e.length;c++){var s=i+I(l=e[c],c);u+=D(l,t,o,s,a)}else if(s=function(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=p&&e[p]||e["@@iterator"])?e:null}(e),"function"==typeof s)for(e=s.call(e),c=0;!(l=e.next()).done;)u+=D(l=l.value,t,o,s=i+I(l,c++),a);else if("object"===l)throw t=String(e),Error("Objects are not valid as a React child (found: "+("[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return u}function _(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 R(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 N={current:null},T={transition:null},j={ReactCurrentDispatcher:N,ReactCurrentBatchConfig:T,ReactCurrentOwner:x};t.Children={map:_,forEach:function(e,t,n){_(e,(function(){t.apply(this,arguments)}),n)},count:function(e){var t=0;return _(e,(function(){t++})),t},toArray:function(e){return _(e,(function(e){return e}))||[]},only:function(e){if(!C(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},t.Component=g,t.Fragment=o,t.Profiler=a,t.PureComponent=b,t.StrictMode=i,t.Suspense=s,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=j,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=h({},e.props),i=e.key,a=e.ref,l=e._owner;if(null!=t){if(void 0!==t.ref&&(a=t.ref,l=x.current),void 0!==t.key&&(i=""+t.key),e.type&&e.type.defaultProps)var u=e.type.defaultProps;for(c in t)S.call(t,c)&&!k.hasOwnProperty(c)&&(o[c]=void 0===t[c]&&void 0!==u?u[c]:t[c])}var c=arguments.length-2;if(1===c)o.children=r;else if(1<c){u=Array(c);for(var s=0;s<c;s++)u[s]=arguments[s+2];o.children=u}return{$$typeof:n,type:e.type,key:i,ref:a,props:o,_owner:l}},t.createContext=function(e){return(e={$$typeof:u,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null}).Provider={$$typeof:l,_context:e},e.Consumer=e},t.createElement=O,t.createFactory=function(e){var t=O.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=C,t.lazy=function(e){return{$$typeof:d,_payload:{_status:-1,_result:e},_init:R}},t.memo=function(e,t){return{$$typeof:f,type:e,compare:void 0===t?null:t}},t.startTransition=function(e){var t=T.transition;T.transition={};try{e()}finally{T.transition=t}},t.unstable_act=function(){throw Error("act(...) is not supported in production builds of React.")},t.useCallback=function(e,t){return N.current.useCallback(e,t)},t.useContext=function(e){return N.current.useContext(e)},t.useDebugValue=function(){},t.useDeferredValue=function(e){return N.current.useDeferredValue(e)},t.useEffect=function(e,t){return N.current.useEffect(e,t)},t.useId=function(){return N.current.useId()},t.useImperativeHandle=function(e,t,n){return N.current.useImperativeHandle(e,t,n)},t.useInsertionEffect=function(e,t){return N.current.useInsertionEffect(e,t)},t.useLayoutEffect=function(e,t){return N.current.useLayoutEffect(e,t)},t.useMemo=function(e,t){return N.current.useMemo(e,t)},t.useReducer=function(e,t,n){return N.current.useReducer(e,t,n)},t.useRef=function(e){return N.current.useRef(e)},t.useState=function(e){return N.current.useState(e)},t.useSyncExternalStore=function(e,t,n){return N.current.useSyncExternalStore(e,t,n)},t.useTransition=function(){return N.current.useTransition()},t.version="18.2.0"},294:(e,t,n)=>{"use strict";e.exports=n(408)},893:(e,t,n)=>{"use strict";e.exports=n(251)},53:(e,t)=>{"use strict";function n(e,t){var n=e.length;e.push(t);e:for(;0<n;){var r=n-1>>>1,o=e[r];if(!(0<i(o,t)))break e;e[r]=t,e[n]=o,n=r}}function r(e){return 0===e.length?null:e[0]}function o(e){if(0===e.length)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,o=e.length,a=o>>>1;r<a;){var l=2*(r+1)-1,u=e[l],c=l+1,s=e[c];if(0>i(u,n))c<o&&0>i(s,u)?(e[r]=s,e[c]=n,r=c):(e[r]=u,e[l]=n,r=l);else{if(!(c<o&&0>i(s,n)))break e;e[r]=s,e[c]=n,r=c}}}return t}function i(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}if("object"==typeof performance&&"function"==typeof performance.now){var a=performance;t.unstable_now=function(){return a.now()}}else{var l=Date,u=l.now();t.unstable_now=function(){return l.now()-u}}var c=[],s=[],f=1,d=null,p=3,m=!1,h=!1,v=!1,g="function"==typeof setTimeout?setTimeout:null,y="function"==typeof clearTimeout?clearTimeout:null,b="undefined"!=typeof setImmediate?setImmediate:null;function w(e){for(var t=r(s);null!==t;){if(null===t.callback)o(s);else{if(!(t.startTime<=e))break;o(s),t.sortIndex=t.expirationTime,n(c,t)}t=r(s)}}function E(e){if(v=!1,w(e),!h)if(null!==r(c))h=!0,T(S);else{var t=r(s);null!==t&&j(E,t.startTime-e)}}function S(e,n){h=!1,v&&(v=!1,y(C),C=-1),m=!0;var i=p;try{for(w(n),d=r(c);null!==d&&(!(d.expirationTime>n)||e&&!D());){var a=d.callback;if("function"==typeof a){d.callback=null,p=d.priorityLevel;var l=a(d.expirationTime<=n);n=t.unstable_now(),"function"==typeof l?d.callback=l:d===r(c)&&o(c),w(n)}else o(c);d=r(c)}if(null!==d)var u=!0;else{var f=r(s);null!==f&&j(E,f.startTime-n),u=!1}return u}finally{d=null,p=i,m=!1}}"undefined"!=typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var x,k=!1,O=null,C=-1,P=5,I=-1;function D(){return!(t.unstable_now()-I<P)}function _(){if(null!==O){var e=t.unstable_now();I=e;var n=!0;try{n=O(!0,e)}finally{n?x():(k=!1,O=null)}}else k=!1}if("function"==typeof b)x=function(){b(_)};else if("undefined"!=typeof MessageChannel){var R=new MessageChannel,N=R.port2;R.port1.onmessage=_,x=function(){N.postMessage(null)}}else x=function(){g(_,0)};function T(e){O=e,k||(k=!0,x())}function j(e,n){C=g((function(){e(t.unstable_now())}),n)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){h||m||(h=!0,T(S))},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"):P=0<e?Math.floor(1e3/e):5},t.unstable_getCurrentPriorityLevel=function(){return p},t.unstable_getFirstCallbackNode=function(){return r(c)},t.unstable_next=function(e){switch(p){case 1:case 2:case 3:var t=3;break;default:t=p}var n=p;p=t;try{return e()}finally{p=n}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=function(){},t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=p;p=e;try{return t()}finally{p=n}},t.unstable_scheduleCallback=function(e,o,i){var a=t.unstable_now();switch(i="object"==typeof i&&null!==i&&"number"==typeof(i=i.delay)&&0<i?a+i:a,e){case 1:var l=-1;break;case 2:l=250;break;case 5:l=1073741823;break;case 4:l=1e4;break;default:l=5e3}return e={id:f++,callback:o,priorityLevel:e,startTime:i,expirationTime:l=i+l,sortIndex:-1},i>a?(e.sortIndex=i,n(s,e),null===r(c)&&e===r(s)&&(v?(y(C),C=-1):v=!0,j(E,i-a))):(e.sortIndex=l,n(c,e),h||m||(h=!0,T(S))),e},t.unstable_shouldYield=D,t.unstable_wrapCallback=function(e){var t=p;return function(){var n=p;p=t;try{return e.apply(this,arguments)}finally{p=n}}}},840:(e,t,n)=>{"use strict";e.exports=n(53)},473:e=>{"use strict";e.exports=function(){}}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var i=t[r]={exports:{}};return e[r].call(i.exports,i,i.exports,n),i.exports}n.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(294),t=n(745),r=n(697),o=n.n(r),i=n(962),a=n.n(i);function l(e,t){return e.contains?e.contains(t):e.compareDocumentPosition?e===t||!!(16&e.compareDocumentPosition(t)):void 0}function u(){const t=(0,e.useRef)(!0),n=(0,e.useRef)((()=>t.current));return(0,e.useEffect)((()=>(t.current=!0,()=>{t.current=!1})),[]),n.current}const c=2**31-1;function s(e,t,n){const r=n-Date.now();e.current=r<=c?setTimeout(t,r):setTimeout((()=>s(e,t,n)),c)}function f(){const t=u(),n=(0,e.useRef)();return function(t){const n=function(t){const n=(0,e.useRef)(t);return n.current=t,n}(t);(0,e.useEffect)((()=>()=>n.current()),[])}((()=>clearTimeout(n.current))),(0,e.useMemo)((()=>{const e=()=>clearTimeout(n.current);return{set:function(r,o=0){t()&&(e(),o<=c?n.current=setTimeout(r,o):s(n,r,Date.now()+o))},clear:e}}),[])}var d=n(473),p=n.n(d);n(143);const m=e=>e&&"function"!=typeof e?t=>{e.current=t}:e,h=function(t,n){return(0,e.useMemo)((()=>function(e,t){const n=m(e),r=m(t);return e=>{n&&n(e),r&&r(e)}}(t,n)),[t,n])};var v=n(184),g=n.n(v),y=n(935);function b(){return(0,e.useState)(null)}var w=Object.prototype.hasOwnProperty;function E(e,t,n){for(n of e.keys())if(S(n,t))return n}function S(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--&&S(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=E(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=E(t,o)))return!1;if(!S(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(w.call(e,n)&&++r&&!w.call(t,n))return!1;if(!(n in t)||!S(e[n],t[n]))return!1}return Object.keys(t).length===r}}return e!=e&&t!=t}function x(e){return e.split("-")[0]}function k(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function O(e){return e instanceof k(e).Element||e instanceof Element}function C(e){return e instanceof k(e).HTMLElement||e instanceof HTMLElement}function P(e){return"undefined"!=typeof ShadowRoot&&(e instanceof k(e).ShadowRoot||e instanceof ShadowRoot)}var I=Math.max,D=Math.min,_=Math.round;function R(){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 N(){return!/^((?!chrome|android).)*safari/i.test(R())}function T(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);var r=e.getBoundingClientRect(),o=1,i=1;t&&C(e)&&(o=e.offsetWidth>0&&_(r.width)/e.offsetWidth||1,i=e.offsetHeight>0&&_(r.height)/e.offsetHeight||1);var a=(O(e)?k(e):window).visualViewport,l=!N()&&n,u=(r.left+(l&&a?a.offsetLeft:0))/o,c=(r.top+(l&&a?a.offsetTop:0))/i,s=r.width/o,f=r.height/i;return{width:s,height:f,top:c,right:u+s,bottom:c+f,left:u,x:u,y:c}}function j(e){var t=T(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 A(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&P(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function M(e){return e?(e.nodeName||"").toLowerCase():null}function L(e){return k(e).getComputedStyle(e)}function B(e){return["table","td","th"].indexOf(M(e))>=0}function F(e){return((O(e)?e.ownerDocument:e.document)||window.document).documentElement}function z(e){return"html"===M(e)?e:e.assignedSlot||e.parentNode||(P(e)?e.host:null)||F(e)}function U(e){return C(e)&&"fixed"!==L(e).position?e.offsetParent:null}function W(e){for(var t=k(e),n=U(e);n&&B(n)&&"static"===L(n).position;)n=U(n);return n&&("html"===M(n)||"body"===M(n)&&"static"===L(n).position)?t:n||function(e){var t=/firefox/i.test(R());if(/Trident/i.test(R())&&C(e)&&"fixed"===L(e).position)return null;var n=z(e);for(P(n)&&(n=n.host);C(n)&&["html","body"].indexOf(M(n))<0;){var r=L(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 G(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function H(e,t,n){return I(e,D(t,n))}function V(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function $(e,t){return t.reduce((function(t,n){return t[n]=e,t}),{})}var q="top",Q="bottom",Y="right",K="left",J="auto",X=[q,Q,Y,K],Z="start",ee="end",te="viewport",ne="popper",re=X.reduce((function(e,t){return e.concat([t+"-"+Z,t+"-"+ee])}),[]),oe=[].concat(X,[J]).reduce((function(e,t){return e.concat([t,t+"-"+Z,t+"-"+ee])}),[]),ie=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];const ae={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n=e.state,r=e.name,o=e.options,i=n.elements.arrow,a=n.modifiersData.popperOffsets,l=x(n.placement),u=G(l),c=[K,Y].indexOf(l)>=0?"height":"width";if(i&&a){var s=function(e,t){return V("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:$(e,X))}(o.padding,n),f=j(i),d="y"===u?q:K,p="y"===u?Q:Y,m=n.rects.reference[c]+n.rects.reference[u]-a[u]-n.rects.popper[c],h=a[u]-n.rects.reference[u],v=W(i),g=v?"y"===u?v.clientHeight||0:v.clientWidth||0:0,y=m/2-h/2,b=s[d],w=g-f[c]-s[p],E=g/2-f[c]/2+y,S=H(b,E,w),k=u;n.modifiersData[r]=((t={})[k]=S,t.centerOffset=S-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)))&&A(t.elements.popper,r)&&(t.elements.arrow=r)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function le(e){return e.split("-")[1]}var ue={top:"auto",right:"auto",bottom:"auto",left:"auto"};function ce(e){var t,n=e.popper,r=e.popperRect,o=e.placement,i=e.variation,a=e.offsets,l=e.position,u=e.gpuAcceleration,c=e.adaptive,s=e.roundOffsets,f=e.isFixed,d=a.x,p=void 0===d?0:d,m=a.y,h=void 0===m?0:m,v="function"==typeof s?s({x:p,y:h}):{x:p,y:h};p=v.x,h=v.y;var g=a.hasOwnProperty("x"),y=a.hasOwnProperty("y"),b=K,w=q,E=window;if(c){var S=W(n),x="clientHeight",O="clientWidth";S===k(n)&&"static"!==L(S=F(n)).position&&"absolute"===l&&(x="scrollHeight",O="scrollWidth"),(o===q||(o===K||o===Y)&&i===ee)&&(w=Q,h-=(f&&S===E&&E.visualViewport?E.visualViewport.height:S[x])-r.height,h*=u?1:-1),o!==K&&(o!==q&&o!==Q||i!==ee)||(b=Y,p-=(f&&S===E&&E.visualViewport?E.visualViewport.width:S[O])-r.width,p*=u?1:-1)}var C,P=Object.assign({position:l},c&&ue),I=!0===s?function(e,t){var n=e.x,r=e.y,o=t.devicePixelRatio||1;return{x:_(n*o)/o||0,y:_(r*o)/o||0}}({x:p,y:h},k(n)):{x:p,y:h};return p=I.x,h=I.y,u?Object.assign({},P,((C={})[w]=y?"0":"",C[b]=g?"0":"",C.transform=(E.devicePixelRatio||1)<=1?"translate("+p+"px, "+h+"px)":"translate3d("+p+"px, "+h+"px, 0)",C)):Object.assign({},P,((t={})[w]=y?h+"px":"",t[b]=g?p+"px":"",t.transform="",t))}const se={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=void 0===r||r,i=n.adaptive,a=void 0===i||i,l=n.roundOffsets,u=void 0===l||l,c={placement:x(t.placement),variation:le(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,ce(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:u})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,ce(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:u})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}};var fe={passive:!0};const de={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,n=e.instance,r=e.options,o=r.scroll,i=void 0===o||o,a=r.resize,l=void 0===a||a,u=k(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&c.forEach((function(e){e.addEventListener("scroll",n.update,fe)})),l&&u.addEventListener("resize",n.update,fe),function(){i&&c.forEach((function(e){e.removeEventListener("scroll",n.update,fe)})),l&&u.removeEventListener("resize",n.update,fe)}},data:{}};var pe={left:"right",right:"left",bottom:"top",top:"bottom"};function me(e){return e.replace(/left|right|bottom|top/g,(function(e){return pe[e]}))}var he={start:"end",end:"start"};function ve(e){return e.replace(/start|end/g,(function(e){return he[e]}))}function ge(e){var t=k(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function ye(e){return T(F(e)).left+ge(e).scrollLeft}function be(e){var t=L(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function we(e){return["html","body","#document"].indexOf(M(e))>=0?e.ownerDocument.body:C(e)&&be(e)?e:we(z(e))}function Ee(e,t){var n;void 0===t&&(t=[]);var r=we(e),o=r===(null==(n=e.ownerDocument)?void 0:n.body),i=k(r),a=o?[i].concat(i.visualViewport||[],be(r)?r:[]):r,l=t.concat(a);return o?l:l.concat(Ee(z(a)))}function Se(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function xe(e,t,n){return t===te?Se(function(e,t){var n=k(e),r=F(e),o=n.visualViewport,i=r.clientWidth,a=r.clientHeight,l=0,u=0;if(o){i=o.width,a=o.height;var c=N();(c||!c&&"fixed"===t)&&(l=o.offsetLeft,u=o.offsetTop)}return{width:i,height:a,x:l+ye(e),y:u}}(e,n)):O(t)?function(e,t){var n=T(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):Se(function(e){var t,n=F(e),r=ge(e),o=null==(t=e.ownerDocument)?void 0:t.body,i=I(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),a=I(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),l=-r.scrollLeft+ye(e),u=-r.scrollTop;return"rtl"===L(o||n).direction&&(l+=I(n.clientWidth,o?o.clientWidth:0)-i),{width:i,height:a,x:l,y:u}}(F(e)))}function ke(e){var t,n=e.reference,r=e.element,o=e.placement,i=o?x(o):null,a=o?le(o):null,l=n.x+n.width/2-r.width/2,u=n.y+n.height/2-r.height/2;switch(i){case q:t={x:l,y:n.y-r.height};break;case Q:t={x:l,y:n.y+n.height};break;case Y:t={x:n.x+n.width,y:u};break;case K:t={x:n.x-r.width,y:u};break;default:t={x:n.x,y:n.y}}var c=i?G(i):null;if(null!=c){var s="y"===c?"height":"width";switch(a){case Z:t[c]=t[c]-(n[s]/2-r[s]/2);break;case ee:t[c]=t[c]+(n[s]/2-r[s]/2)}}return t}function Oe(e,t){void 0===t&&(t={});var n=t,r=n.placement,o=void 0===r?e.placement:r,i=n.strategy,a=void 0===i?e.strategy:i,l=n.boundary,u=void 0===l?"clippingParents":l,c=n.rootBoundary,s=void 0===c?te:c,f=n.elementContext,d=void 0===f?ne:f,p=n.altBoundary,m=void 0!==p&&p,h=n.padding,v=void 0===h?0:h,g=V("number"!=typeof v?v:$(v,X)),y=d===ne?"reference":ne,b=e.rects.popper,w=e.elements[m?y:d],E=function(e,t,n,r){var o="clippingParents"===t?function(e){var t=Ee(z(e)),n=["absolute","fixed"].indexOf(L(e).position)>=0&&C(e)?W(e):e;return O(n)?t.filter((function(e){return O(e)&&A(e,n)&&"body"!==M(e)})):[]}(e):[].concat(t),i=[].concat(o,[n]),a=i[0],l=i.reduce((function(t,n){var o=xe(e,n,r);return t.top=I(o.top,t.top),t.right=D(o.right,t.right),t.bottom=D(o.bottom,t.bottom),t.left=I(o.left,t.left),t}),xe(e,a,r));return l.width=l.right-l.left,l.height=l.bottom-l.top,l.x=l.left,l.y=l.top,l}(O(w)?w:w.contextElement||F(e.elements.popper),u,s,a),S=T(e.elements.reference),x=ke({reference:S,element:b,strategy:"absolute",placement:o}),k=Se(Object.assign({},b,x)),P=d===ne?k:S,_={top:E.top-P.top+g.top,bottom:P.bottom-E.bottom+g.bottom,left:E.left-P.left+g.left,right:P.right-E.right+g.right},R=e.modifiersData.offset;if(d===ne&&R){var N=R[o];Object.keys(_).forEach((function(e){var t=[Y,Q].indexOf(e)>=0?1:-1,n=[q,Q].indexOf(e)>=0?"y":"x";_[e]+=N[n]*t}))}return _}const Ce={name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,i=void 0===o||o,a=n.altAxis,l=void 0===a||a,u=n.fallbackPlacements,c=n.padding,s=n.boundary,f=n.rootBoundary,d=n.altBoundary,p=n.flipVariations,m=void 0===p||p,h=n.allowedAutoPlacements,v=t.options.placement,g=x(v),y=u||(g!==v&&m?function(e){if(x(e)===J)return[];var t=me(e);return[ve(e),t,ve(t)]}(v):[me(v)]),b=[v].concat(y).reduce((function(e,n){return e.concat(x(n)===J?function(e,t){void 0===t&&(t={});var n=t,r=n.placement,o=n.boundary,i=n.rootBoundary,a=n.padding,l=n.flipVariations,u=n.allowedAutoPlacements,c=void 0===u?oe:u,s=le(r),f=s?l?re:re.filter((function(e){return le(e)===s})):X,d=f.filter((function(e){return c.indexOf(e)>=0}));0===d.length&&(d=f);var p=d.reduce((function(t,n){return t[n]=Oe(e,{placement:n,boundary:o,rootBoundary:i,padding:a})[x(n)],t}),{});return Object.keys(p).sort((function(e,t){return p[e]-p[t]}))}(t,{placement:n,boundary:s,rootBoundary:f,padding:c,flipVariations:m,allowedAutoPlacements:h}):n)}),[]),w=t.rects.reference,E=t.rects.popper,S=new Map,k=!0,O=b[0],C=0;C<b.length;C++){var P=b[C],I=x(P),D=le(P)===Z,_=[q,Q].indexOf(I)>=0,R=_?"width":"height",N=Oe(t,{placement:P,boundary:s,rootBoundary:f,altBoundary:d,padding:c}),T=_?D?Y:K:D?Q:q;w[R]>E[R]&&(T=me(T));var j=me(T),A=[];if(i&&A.push(N[I]<=0),l&&A.push(N[T]<=0,N[j]<=0),A.every((function(e){return e}))){O=P,k=!1;break}S.set(P,A)}if(k)for(var M=function(e){var t=b.find((function(t){var n=S.get(t);if(n)return n.slice(0,e).every((function(e){return e}))}));if(t)return O=t,"break"},L=m?3:1;L>0&&"break"!==M(L);L--);t.placement!==O&&(t.modifiersData[r]._skip=!0,t.placement=O,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function Pe(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 Ie(e){return[q,Y,Q,K].some((function(t){return e[t]>=0}))}const De={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.options,r=e.name,o=n.offset,i=void 0===o?[0,0]:o,a=oe.reduce((function(e,n){return e[n]=function(e,t,n){var r=x(e),o=[K,q].indexOf(r)>=0?-1:1,i="function"==typeof n?n(Object.assign({},t,{placement:e})):n,a=i[0],l=i[1];return a=a||0,l=(l||0)*o,[K,Y].indexOf(r)>=0?{x:l,y:a}:{x:a,y:l}}(n,t.rects,i),e}),{}),l=a[t.placement],u=l.x,c=l.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=u,t.modifiersData.popperOffsets.y+=c),t.modifiersData[r]=a}},_e={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,i=void 0===o||o,a=n.altAxis,l=void 0!==a&&a,u=n.boundary,c=n.rootBoundary,s=n.altBoundary,f=n.padding,d=n.tether,p=void 0===d||d,m=n.tetherOffset,h=void 0===m?0:m,v=Oe(t,{boundary:u,rootBoundary:c,padding:f,altBoundary:s}),g=x(t.placement),y=le(t.placement),b=!y,w=G(g),E="x"===w?"y":"x",S=t.modifiersData.popperOffsets,k=t.rects.reference,O=t.rects.popper,C="function"==typeof h?h(Object.assign({},t.rects,{placement:t.placement})):h,P="number"==typeof C?{mainAxis:C,altAxis:C}:Object.assign({mainAxis:0,altAxis:0},C),_=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,R={x:0,y:0};if(S){if(i){var N,T="y"===w?q:K,A="y"===w?Q:Y,M="y"===w?"height":"width",L=S[w],B=L+v[T],F=L-v[A],z=p?-O[M]/2:0,U=y===Z?k[M]:O[M],V=y===Z?-O[M]:-k[M],$=t.elements.arrow,J=p&&$?j($):{width:0,height:0},X=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},ee=X[T],te=X[A],ne=H(0,k[M],J[M]),re=b?k[M]/2-z-ne-ee-P.mainAxis:U-ne-ee-P.mainAxis,oe=b?-k[M]/2+z+ne+te+P.mainAxis:V+ne+te+P.mainAxis,ie=t.elements.arrow&&W(t.elements.arrow),ae=ie?"y"===w?ie.clientTop||0:ie.clientLeft||0:0,ue=null!=(N=null==_?void 0:_[w])?N:0,ce=L+oe-ue,se=H(p?D(B,L+re-ue-ae):B,L,p?I(F,ce):F);S[w]=se,R[w]=se-L}if(l){var fe,de="x"===w?q:K,pe="x"===w?Q:Y,me=S[E],he="y"===E?"height":"width",ve=me+v[de],ge=me-v[pe],ye=-1!==[q,K].indexOf(g),be=null!=(fe=null==_?void 0:_[E])?fe:0,we=ye?ve:me-k[he]-O[he]-be+P.altAxis,Ee=ye?me+k[he]+O[he]-be-P.altAxis:ge,Se=p&&ye?function(e,t,n){var r=H(e,t,n);return r>n?n:r}(we,me,Ee):H(p?we:ve,me,p?Ee:ge);S[E]=Se,R[E]=Se-me}t.modifiersData[r]=R}},requiresIfExists:["offset"]};function Re(e,t,n){void 0===n&&(n=!1);var r,o,i=C(t),a=C(t)&&function(e){var t=e.getBoundingClientRect(),n=_(t.width)/e.offsetWidth||1,r=_(t.height)/e.offsetHeight||1;return 1!==n||1!==r}(t),l=F(t),u=T(e,a,n),c={scrollLeft:0,scrollTop:0},s={x:0,y:0};return(i||!i&&!n)&&(("body"!==M(t)||be(l))&&(c=(r=t)!==k(r)&&C(r)?{scrollLeft:(o=r).scrollLeft,scrollTop:o.scrollTop}:ge(r)),C(t)?((s=T(t,!0)).x+=t.clientLeft,s.y+=t.clientTop):l&&(s.x=ye(l))),{x:u.left+c.scrollLeft-s.x,y:u.top+c.scrollTop-s.y,width:u.width,height:u.height}}function Ne(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}var Te={placement:"bottom",modifiers:[],strategy:"absolute"};function je(){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 Ae=function(e){void 0===e&&(e={});var t=e,n=t.defaultModifiers,r=void 0===n?[]:n,o=t.defaultOptions,i=void 0===o?Te:o;return function(e,t,n){void 0===n&&(n=i);var o,a,l={placement:"bottom",orderedModifiers:[],options:Object.assign({},Te,i),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},u=[],c=!1,s={state:l,setOptions:function(n){var o="function"==typeof n?n(l.options):n;f(),l.options=Object.assign({},i,l.options,o),l.scrollParents={reference:O(e)?Ee(e):e.contextElement?Ee(e.contextElement):[],popper:Ee(t)};var a,c,d=function(e){var t=Ne(e);return ie.reduce((function(e,n){return e.concat(t.filter((function(e){return e.phase===n})))}),[])}((a=[].concat(r,l.options.modifiers),c=a.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(c).map((function(e){return c[e]}))));return l.orderedModifiers=d.filter((function(e){return e.enabled})),l.orderedModifiers.forEach((function(e){var t=e.name,n=e.options,r=void 0===n?{}:n,o=e.effect;if("function"==typeof o){var i=o({state:l,name:t,instance:s,options:r});u.push(i||function(){})}})),s.update()},forceUpdate:function(){if(!c){var e=l.elements,t=e.reference,n=e.popper;if(je(t,n)){l.rects={reference:Re(t,W(n),"fixed"===l.options.strategy),popper:j(n)},l.reset=!1,l.placement=l.options.placement,l.orderedModifiers.forEach((function(e){return l.modifiersData[e.name]=Object.assign({},e.data)}));for(var r=0;r<l.orderedModifiers.length;r++)if(!0!==l.reset){var o=l.orderedModifiers[r],i=o.fn,a=o.options,u=void 0===a?{}:a,f=o.name;"function"==typeof i&&(l=i({state:l,options:u,name:f,instance:s})||l)}else l.reset=!1,r=-1}}},update:(o=function(){return new Promise((function(e){s.forceUpdate(),e(l)}))},function(){return a||(a=new Promise((function(e){Promise.resolve().then((function(){a=void 0,e(o())}))}))),a}),destroy:function(){f(),c=!0}};if(!je(e,t))return s;function f(){u.forEach((function(e){return e()})),u=[]}return s.setOptions(n).then((function(e){!c&&n.onFirstUpdate&&n.onFirstUpdate(e)})),s}}({defaultModifiers:[{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,i=t.modifiersData.preventOverflow,a=Oe(t,{elementContext:"reference"}),l=Oe(t,{altBoundary:!0}),u=Pe(a,r),c=Pe(l,o,i),s=Ie(u),f=Ie(c);t.modifiersData[n]={referenceClippingOffsets:u,popperEscapeOffsets:c,isReferenceHidden:s,hasPopperEscaped:f},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":s,"data-popper-escaped":f})}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=ke({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}},se,de,De,Ce,_e,ae]}),Me=["enabled","placement","strategy","modifiers"],Le={name:"applyStyles",enabled:!1,phase:"afterWrite",fn:()=>{}},Be={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)}}},Fe=[],ze=function(t,n,r={}){let{enabled:o=!0,placement:i="bottom",strategy:a="absolute",modifiers:l=Fe}=r,c=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(r,Me);const s=(0,e.useRef)(l),f=(0,e.useRef)(),d=(0,e.useCallback)((()=>{var e;null==(e=f.current)||e.update()}),[]),p=(0,e.useCallback)((()=>{var e;null==(e=f.current)||e.forceUpdate()}),[]),[m,h]=function(t){const n=u();return[t[0],(0,e.useCallback)((e=>{if(n())return t[1](e)}),[n,t[1]])]}((0,e.useState)({placement:i,update:d,forceUpdate:p,attributes:{},styles:{popper:{},arrow:{}}})),v=(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]})),h({state:e,styles:t,attributes:n,update:d,forceUpdate:p,placement:e.placement})}})),[d,p,h]),g=(0,e.useMemo)((()=>(S(s.current,l)||(s.current=l),s.current)),[l]);return(0,e.useEffect)((()=>{f.current&&o&&f.current.setOptions({placement:i,strategy:a,modifiers:[...g,v,Le]})}),[a,i,v,o,g]),(0,e.useEffect)((()=>{if(o&&null!=t&&null!=n)return f.current=Ae(t,n,Object.assign({},c,{placement:i,strategy:a,modifiers:[...g,Be,v]})),()=>{null!=f.current&&(f.current.destroy(),f.current=void 0,h((e=>Object.assign({},e,{attributes:{},styles:{popper:{}}}))))}}),[o,t,n]),m},Ue=!("undefined"==typeof window||!window.document||!window.document.createElement);var We=!1,Ge=!1;try{var He={get passive(){return We=!0},get once(){return Ge=We=!0}};Ue&&(window.addEventListener("test",He,He),window.removeEventListener("test",He,!0))}catch(e){}const Ve=function(e,t,n,r){return function(e,t,n,r){if(r&&"boolean"!=typeof r&&!Ge){var o=r.once,i=r.capture,a=n;!Ge&&o&&(a=n.__once||function e(r){this.removeEventListener(t,e,i),n.call(this,r)},n.__once=a),e.addEventListener(t,a,We?r:i)}e.addEventListener(t,n,r)}(e,t,n,r),function(){!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)}(e,t,n,r)}};function $e(e){return e&&e.ownerDocument||document}const qe=function(t){const n=(0,e.useRef)(t);return(0,e.useEffect)((()=>{n.current=t}),[t]),n};function Qe(t){const n=qe(t);return(0,e.useCallback)((function(...e){return n.current&&n.current(...e)}),[n])}const Ye=()=>{},Ke=e=>e&&("current"in e?e.current:e),Je={click:"mousedown",mouseup:"mousedown",pointerup:"pointerdown"},Xe=()=>{},Ze=function(t,n,{disabled:r,clickTrigger:o}={}){const i=n||Xe;!function(t,n=Ye,{disabled:r,clickTrigger:o="click"}={}){const i=(0,e.useRef)(!1),a=(0,e.useRef)(!1),u=(0,e.useCallback)((e=>{const n=Ke(t);var r;p()(!!n,"ClickOutside captured a close event but does not have a ref to compare it to. useClickOutside(), should be passed a ref that resolves to a DOM node"),i.current=!n||!!((r=e).metaKey||r.altKey||r.ctrlKey||r.shiftKey)||!function(e){return 0===e.button}(e)||!!l(n,e.target)||a.current,a.current=!1}),[t]),c=Qe((e=>{const n=Ke(t);n&&l(n,e.target)&&(a.current=!0)})),s=Qe((e=>{i.current||n(e)}));(0,e.useEffect)((()=>{var e,n;if(r||null==t)return;const i=$e(Ke(t)),a=i.defaultView||window;let l=null!=(e=a.event)?e:null==(n=a.parent)?void 0:n.event,f=null;Je[o]&&(f=Ve(i,Je[o],c,!0));const d=Ve(i,o,u,!0),p=Ve(i,o,(e=>{e!==l?s(e):l=void 0}));let m=[];return"ontouchstart"in i.documentElement&&(m=[].slice.call(i.body.children).map((e=>Ve(e,"mousemove",Ye)))),()=>{null==f||f(),d(),p(),m.forEach((e=>e()))}}),[t,r,o,u,c,s])}(t,i,{disabled:r,clickTrigger:o});const a=Qe((e=>{(function(e){return"Escape"===e.code||27===e.keyCode})(e)&&i(e)}));(0,e.useEffect)((()=>{if(r||null==t)return;const e=$e(Ke(t));let n=(e.defaultView||window).event;const o=Ve(e,"keyup",(e=>{e!==n?a(e):n=void 0}));return()=>{o()}}),[t,r,a])},et=(0,e.createContext)(Ue?window:void 0);et.Provider;const tt=(e,t)=>Ue?null==e?(t||$e()).body:("function"==typeof e&&(e=e()),e&&"current"in e&&(e=e.current),e&&("nodeType"in e||e.getBoundingClientRect)?e:null):null;function nt(t,n){const r=(0,e.useContext)(et),[o,i]=(0,e.useState)((()=>tt(t,null==r?void 0:r.document)));if(!o){const e=tt(t);e&&i(e)}return(0,e.useEffect)((()=>{n&&o&&n(o)}),[n,o]),(0,e.useEffect)((()=>{const e=tt(t);e!==o&&i(e)}),[t,o]),o}function rt(e={}){return Array.isArray(e)?e:Object.keys(e).map((t=>(e[t].name=t,e[t])))}const ot=void 0!==n.g&&n.g.navigator&&"ReactNative"===n.g.navigator.product,it="undefined"!=typeof document||ot?e.useLayoutEffect:e.useEffect,at=function({children:t,in:n,onExited:r,mountOnEnter:o,unmountOnExit:i}){const a=(0,e.useRef)(null),l=(0,e.useRef)(n),u=Qe(r);(0,e.useEffect)((()=>{n?l.current=!0:u(a.current)}),[n,u]);const c=h(a,t.ref),s=(0,e.cloneElement)(t,{ref:c});return n?s:i||!l.current&&o?null:s};var lt=n(893);function ut({children:t,in:n,onExited:r,onEntered:o,transition:i}){const[a,l]=(0,e.useState)(!n);n&&a&&l(!1);const u=function({in:t,onTransition:n}){const r=(0,e.useRef)(null),o=(0,e.useRef)(!0),i=Qe(n);return it((()=>{if(!r.current)return;let e=!1;return i({in:t,element:r.current,initial:o.current,isStale:()=>e}),()=>{e=!0}}),[t,i]),it((()=>(o.current=!1,()=>{o.current=!0})),[]),r}({in:!!n,onTransition:e=>{Promise.resolve(i(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=h(u,t.ref);return a&&!n?null:(0,e.cloneElement)(t,{ref:c})}const ct=e.forwardRef(((t,n)=>{const{flip:r,offset:o,placement:i,containerPadding:a,popperConfig:l={},transition:u,runTransition:c}=t,[s,f]=b(),[d,p]=b(),m=h(f,n),v=nt(t.container),g=nt(t.target),[w,E]=(0,e.useState)(!t.show),S=ze(g,s,function({enabled:e,enableEvents:t,placement:n,flip:r,offset:o,fixed:i,containerPadding:a,arrowElement:l,popperConfig:u={}}){var c,s,f,d,p;const m=function(e){const t={};return Array.isArray(e)?(null==e||e.forEach((e=>{t[e.name]=e})),t):e||t}(u.modifiers);return Object.assign({},u,{placement:n,enabled:e,strategy:i?"fixed":u.strategy,modifiers:rt(Object.assign({},m,{eventListeners:{enabled:t,options:null==(c=m.eventListeners)?void 0:c.options},preventOverflow:Object.assign({},m.preventOverflow,{options:a?Object.assign({padding:a},null==(s=m.preventOverflow)?void 0:s.options):null==(f=m.preventOverflow)?void 0:f.options}),offset:{options:Object.assign({offset:o},null==(d=m.offset)?void 0:d.options)},arrow:Object.assign({},m.arrow,{enabled:!!l,options:Object.assign({},null==(p=m.arrow)?void 0:p.options,{element:l})}),flip:Object.assign({enabled:!!r},m.flip)}))})}({placement:i,enableEvents:!!t.show,containerPadding:a||5,flip:r,offset:o,arrowElement:d,popperConfig:l}));t.show&&w&&E(!1);const x=t.show||!w;if(Ze(s,t.onHide,{disabled:!t.rootClose||t.rootCloseDisabled,clickTrigger:t.rootCloseEvent}),!x)return null;const{onExit:k,onExiting:O,onEnter:C,onEntering:P,onEntered:I}=t;let D=t.children(Object.assign({},S.attributes.popper,{style:S.styles.popper,ref:m}),{popper:S,placement:i,show:!!t.show,arrowProps:Object.assign({},S.attributes.arrow,{style:S.styles.arrow,ref:p})});return D=function(e,t,n){return e?(0,lt.jsx)(e,Object.assign({},n)):t?(0,lt.jsx)(ut,Object.assign({},n,{transition:t})):(0,lt.jsx)(at,Object.assign({},n))}(u,c,{in:!!t.show,appear:!0,mountOnEnter:!0,unmountOnExit:!0,children:D,onExit:k,onExiting:O,onExited:(...e)=>{E(!0),t.onExited&&t.onExited(...e)},onEnter:C,onEntering:P,onEntered:I}),v?y.createPortal(D,v):null}));ct.displayName="Overlay";const st=ct;function ft(e,t){return e.classList?!!t&&e.classList.contains(t):-1!==(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")}const dt=e.createContext({prefixes:{},breakpoints:["xxl","xl","lg","md","sm","xs"],minBreakpoint:"xs"}),{Consumer:pt,Provider:mt}=dt;function ht(t,n){const{prefixes:r}=(0,e.useContext)(dt);return t||r[n]||n}function vt(){const{dir:t}=(0,e.useContext)(dt);return"rtl"===t}const gt=e.forwardRef((({className:e,bsPrefix:t,as:n="div",...r},o)=>(t=ht(t,"popover-header"),(0,lt.jsx)(n,{ref:o,className:g()(e,t),...r}))));gt.displayName="PopoverHeader";const yt=gt,bt=e.forwardRef((({className:e,bsPrefix:t,as:n="div",...r},o)=>(t=ht(t,"popover-body"),(0,lt.jsx)(n,{ref:o,className:g()(e,t),...r}))));bt.displayName="PopoverBody";const wt=bt;function Et(e,t){let n=e;return"left"===e?n=t?"end":"start":"right"===e&&(n=t?"start":"end"),n}function St(e="absolute"){return{position:e,top:"0",left:"0",opacity:"0",pointerEvents:"none"}}e.Component;const xt=e.forwardRef((({bsPrefix:e,placement:t="right",className:n,style:r,children:o,body:i,arrowProps:a,hasDoneInitialMeasure:l,popper:u,show:c,...s},f)=>{const d=ht(e,"popover"),p=vt(),[m]=(null==t?void 0:t.split("-"))||[],h=Et(m,p);let v=r;return c&&!l&&(v={...r,...St(null==u?void 0:u.strategy)}),(0,lt.jsxs)("div",{ref:f,role:"tooltip",style:v,"x-placement":m,className:g()(n,d,m&&`bs-popover-${h}`),...s,children:[(0,lt.jsx)("div",{className:"popover-arrow",...a}),i?(0,lt.jsx)(wt,{children:o}):o]})})),kt=Object.assign(xt,{Header:yt,Body:wt,POPPER_OFFSET:[0,8]}),Ot=e.forwardRef((({bsPrefix:e,placement:t="right",className:n,style:r,children:o,arrowProps:i,hasDoneInitialMeasure:a,popper:l,show:u,...c},s)=>{e=ht(e,"tooltip");const f=vt(),[d]=(null==t?void 0:t.split("-"))||[],p=Et(d,f);let m=r;return u&&!a&&(m={...r,...St(null==l?void 0:l.strategy)}),(0,lt.jsxs)("div",{ref:s,style:m,role:"tooltip","x-placement":d,className:g()(n,e,`bs-tooltip-${p}`),...c,children:[(0,lt.jsx)("div",{className:"tooltip-arrow",...i}),(0,lt.jsx)("div",{className:`${e}-inner`,children:o})]})}));Ot.displayName="Tooltip";const Ct=Object.assign(Ot,{TOOLTIP_OFFSET:[0,6]});function Pt(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}function It(e,t){return It=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},It(e,t)}function Dt(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,It(e,t)}const _t=e.createContext(null);var Rt="unmounted",Nt="exited",Tt="entering",jt="entered",At="exiting",Mt=function(t){function n(e,n){var r;r=t.call(this,e,n)||this;var o,i=n&&!n.isMounting?e.enter:e.appear;return r.appearStatus=null,e.in?i?(o=Nt,r.appearStatus=Tt):o=jt:o=e.unmountOnExit||e.mountOnEnter?Rt:Nt,r.state={status:o},r.nextCallback=null,r}Dt(n,t),n.getDerivedStateFromProps=function(e,t){return e.in&&t.status===Rt?{status:Nt}:null};var r=n.prototype;return r.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},r.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?n!==Tt&&n!==jt&&(t=Tt):n!==Tt&&n!==jt||(t=At)}this.updateStatus(!1,t)},r.componentWillUnmount=function(){this.cancelNextCallback()},r.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}},r.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t)if(this.cancelNextCallback(),t===Tt){if(this.props.unmountOnExit||this.props.mountOnEnter){var n=this.props.nodeRef?this.props.nodeRef.current:y.findDOMNode(this);n&&function(e){e.scrollTop}(n)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Nt&&this.setState({status:Rt})},r.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,o=this.props.nodeRef?[r]:[y.findDOMNode(this),r],i=o[0],a=o[1],l=this.getTimeouts(),u=r?l.appear:l.enter;e||n?(this.props.onEnter(i,a),this.safeSetState({status:Tt},(function(){t.props.onEntering(i,a),t.onTransitionEnd(u,(function(){t.safeSetState({status:jt},(function(){t.props.onEntered(i,a)}))}))}))):this.safeSetState({status:jt},(function(){t.props.onEntered(i)}))},r.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),r=this.props.nodeRef?void 0:y.findDOMNode(this);t?(this.props.onExit(r),this.safeSetState({status:At},(function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,(function(){e.safeSetState({status:Nt},(function(){e.props.onExited(r)}))}))}))):this.safeSetState({status:Nt},(function(){e.props.onExited(r)}))},r.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},r.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},r.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},r.onTransitionEnd=function(e,t){this.setNextCallback(t);var n=this.props.nodeRef?this.props.nodeRef.current:y.findDOMNode(this),r=null==e&&!this.props.addEndListener;if(n&&!r){if(this.props.addEndListener){var o=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],i=o[0],a=o[1];this.props.addEndListener(i,a)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},r.render=function(){var t=this.state.status;if(t===Rt)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,Pt(n,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]));return e.createElement(_t.Provider,{value:null},"function"==typeof r?r(t,o):e.cloneElement(e.Children.only(r),o))},n}(e.Component);function Lt(){}Mt.contextType=_t,Mt.propTypes={},Mt.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Lt,onEntering:Lt,onEntered:Lt,onExit:Lt,onExiting:Lt,onExited:Lt},Mt.UNMOUNTED=Rt,Mt.EXITED=Nt,Mt.ENTERING=Tt,Mt.ENTERED=jt,Mt.EXITING=At;const Bt=Mt;var Ft=/([A-Z])/g,zt=/^ms-/;function Ut(e){return function(e){return e.replace(Ft,"-$1").toLowerCase()}(e).replace(zt,"-ms-")}var Wt=/^((translate|rotate|scale)(X|Y|Z|3d)?|matrix(3d)?|perspective|skew(X|Y)?)$/i;const Gt=function(e,t){var n="",r="";if("string"==typeof t)return e.style.getPropertyValue(Ut(t))||function(e,t){return function(e){var t=$e(e);return t&&t.defaultView||window}(e).getComputedStyle(e,t)}(e).getPropertyValue(Ut(t));Object.keys(t).forEach((function(o){var i=t[o];i||0===i?function(e){return!(!e||!Wt.test(e))}(o)?r+=o+"("+i+") ":n+=Ut(o)+": "+i+";":e.style.removeProperty(Ut(o))})),r&&(n+="transform: "+r+";"),e.style.cssText+=";"+n};function Ht(e,t,n,r){var o,i;null==n&&(i=-1===(o=Gt(e,"transitionDuration")||"").indexOf("ms")?1e3:1,n=parseFloat(o)*i||0);var a=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),i=Ve(e,"transitionend",(function(){r=!0}),{once:!0});return function(){clearTimeout(o),i()}}(e,n,r),l=Ve(e,"transitionend",t);return function(){a(),l()}}function Vt(e,t){const n=Gt(e,t)||"",r=-1===n.indexOf("ms")?1e3:1;return parseFloat(n)*r}function $t(e,t){const n=Vt(e,"transitionDuration"),r=Vt(e,"transitionDelay"),o=Ht(e,(n=>{n.target===e&&(o(),t(n))}),n+r)}function qt(e){return e&&"setState"in e?y.findDOMNode(e):null!=e?e:null}const Qt=e.forwardRef((({onEnter:t,onEntering:n,onEntered:r,onExit:o,onExiting:i,onExited:a,addEndListener:l,children:u,childRef:c,...s},f)=>{const d=(0,e.useRef)(null),p=h(d,c),m=e=>{p(qt(e))},v=e=>t=>{e&&d.current&&e(d.current,t)},g=(0,e.useCallback)(v(t),[t]),y=(0,e.useCallback)(v(n),[n]),b=(0,e.useCallback)(v(r),[r]),w=(0,e.useCallback)(v(o),[o]),E=(0,e.useCallback)(v(i),[i]),S=(0,e.useCallback)(v(a),[a]),x=(0,e.useCallback)(v(l),[l]);return(0,lt.jsx)(Bt,{ref:f,...s,onEnter:g,onEntered:b,onEntering:y,onExit:w,onExited:S,onExiting:E,addEndListener:x,nodeRef:d,children:"function"==typeof u?(e,t)=>u(e,{...t,ref:m}):e.cloneElement(u,{ref:m})})})),Yt={[Tt]:"show",[jt]:"show"},Kt=e.forwardRef((({className:t,children:n,transitionClasses:r={},onEnter:o,...i},a)=>{const l={in:!1,timeout:300,mountOnEnter:!1,unmountOnExit:!1,appear:!1,...i},u=(0,e.useCallback)(((e,t)=>{!function(e){e.offsetHeight}(e),null==o||o(e,t)}),[o]);return(0,lt.jsx)(Qt,{ref:a,addEndListener:$t,...l,onEnter:u,childRef:n.ref,children:(o,i)=>e.cloneElement(n,{...i,className:g()("fade",t,n.props.className,Yt[o],r[o])})})}));Kt.displayName="Fade";const Jt=Kt,Xt=e.forwardRef((({children:t,transition:n=Jt,popperConfig:r={},rootClose:o=!1,placement:i="top",show:a=!1,...l},u)=>{const c=(0,e.useRef)({}),[s,f]=(0,e.useState)(null),[d,p]=function(t){const n=(0,e.useRef)(null),r=ht(void 0,"popover"),o=ht(void 0,"tooltip"),i=(0,e.useMemo)((()=>({name:"offset",options:{offset:()=>{if(t)return t;if(n.current){if(ft(n.current,r))return kt.POPPER_OFFSET;if(ft(n.current,o))return Ct.TOOLTIP_OFFSET}return[0,0]}}})),[t,r,o]);return[n,[i]]}(l.offset),m=h(u,d),v=!0===n?Jt:n||void 0,y=Qe((e=>{f(e),null==r||null==r.onFirstUpdate||r.onFirstUpdate(e)}));return it((()=>{s&&l.target&&(null==c.current.scheduleUpdate||c.current.scheduleUpdate())}),[s,l.target]),(0,e.useEffect)((()=>{a||f(null)}),[a]),(0,lt.jsx)(st,{...l,ref:m,popperConfig:{...r,modifiers:p.concat(r.modifiers||[]),onFirstUpdate:y},transition:v,rootClose:o,placement:i,show:a,children:(o,{arrowProps:i,popper:a,show:l})=>{var u,f;!function(e,t){const{ref:n}=e,{ref:r}=t;e.ref=n.__wrapped||(n.__wrapped=e=>n(qt(e))),t.ref=r.__wrapped||(r.__wrapped=e=>r(qt(e)))}(o,i);const d=null==a?void 0:a.placement,p=Object.assign(c.current,{state:null==a?void 0:a.state,scheduleUpdate:null==a?void 0:a.update,placement:d,outOfBoundaries:(null==a||null==(u=a.state)||null==(f=u.modifiersData.hide)?void 0:f.isReferenceHidden)||!1,strategy:r.strategy}),m=!!s;return"function"==typeof t?t({...o,placement:d,show:l,...!n&&l&&{className:"show"},popper:p,arrowProps:i,hasDoneInitialMeasure:m}):e.cloneElement(t,{...o,placement:d,arrowProps:i,popper:p,hasDoneInitialMeasure:m,className:g()(t.props.className,!n&&l&&"show"),style:{...t.props.style,...o.style}})}})}));Xt.displayName="Overlay";const Zt=Xt;function en(e,t,n){const[r]=t,o=r.currentTarget,i=r.relatedTarget||r.nativeEvent[n];i&&i===o||l(o,i)||e(...t)}o().oneOf(["click","hover","focus"]);const tn=({trigger:t=["hover","focus"],overlay:n,children:r,popperConfig:o={},show:i,defaultShow:a=!1,onToggle:l,delay:u,placement:c,flip:s=c&&-1!==c.indexOf("auto"),...d})=>{const p=(0,e.useRef)(null),m=h(p,r.ref),v=f(),g=(0,e.useRef)(""),[y,b]=(T=i,j=a,A=l,M=(0,e.useRef)(void 0!==T),L=(0,e.useState)(j),B=L[0],F=L[1],z=void 0!==T,U=M.current,M.current=z,!z&&U&&B!==j&&F(j),[z?T:B,(0,e.useCallback)((function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];A&&A.apply(void 0,[e].concat(n)),F(e)}),[A])]),w=function(e){return e&&"object"==typeof e?e:{show:e,hide:e}}(u),{onFocus:E,onBlur:S,onClick:x}="function"!=typeof r?e.Children.only(r).props:{},k=(0,e.useCallback)((()=>{v.clear(),g.current="show",w.show?v.set((()=>{"show"===g.current&&b(!0)}),w.show):b(!0)}),[w.show,b,v]),O=(0,e.useCallback)((()=>{v.clear(),g.current="hide",w.hide?v.set((()=>{"hide"===g.current&&b(!1)}),w.hide):b(!1)}),[w.hide,b,v]),C=(0,e.useCallback)(((...e)=>{k(),null==E||E(...e)}),[k,E]),P=(0,e.useCallback)(((...e)=>{O(),null==S||S(...e)}),[O,S]),I=(0,e.useCallback)(((...e)=>{b(!y),null==x||x(...e)}),[x,b,y]),D=(0,e.useCallback)(((...e)=>{en(k,e,"fromElement")}),[k]),_=(0,e.useCallback)(((...e)=>{en(O,e,"toElement")}),[O]),R=null==t?[]:[].concat(t),N={ref:e=>{m(qt(e))}};var T,j,A,M,L,B,F,z,U;return-1!==R.indexOf("click")&&(N.onClick=I),-1!==R.indexOf("focus")&&(N.onFocus=C,N.onBlur=P),-1!==R.indexOf("hover")&&(N.onMouseOver=D,N.onMouseOut=_),(0,lt.jsxs)(lt.Fragment,{children:["function"==typeof r?r(N):(0,e.cloneElement)(r,N),(0,lt.jsx)(Zt,{...d,show:y,onHide:O,flip:s,placement:c,popperConfig:o,target:p.current,children:n})]})};function nn(t){var n=t.id,r=t.tip;return e.createElement(tn,{placement:"auto",trigger:["click","hover","focus"],style:{display:"inline"},overlay:e.createElement(Ct,{id:n},r)},e.createElement("img",{src:"/images/shop/icon-reminder.svg",className:"options-icon"}))}function rn(e){return rn="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},rn(e)}function on(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(void 0,o=function(e,t){if("object"!==rn(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!==rn(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(r.key),"symbol"===rn(o)?o:String(o)),r)}var o}function an(e,t){return an=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},an(e,t)}function ln(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function un(e){return un=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},un(e)}var cn=function(t){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&an(e,t)}(l,t);var n,r,o,i,a=(o=l,i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=un(o);if(i){var n=un(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"===rn(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return ln(e)}(this,e)});function l(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),(t=a.call(this,e)).state={text:e.outvar in e.data?e.data[e.outvar]:e.fallback?e.fallback:""},t.handleClick=t.handleClick.bind(ln(t)),t.props.target.construct(t.props.outvar,t.state.text),t}return n=l,(r=[{key:"handleClick",value:function(e){var t=e.target.value;this.setState({text:t}),this.props.target.update(this.props.outvar,t)}},{key:"render",value:function(){var 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(nn,{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}))}}])&&on(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),l}(e.Component);function sn(e){return sn="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},sn(e)}function fn(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 dn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?fn(Object(n),!0).forEach((function(t){var r,o,i;r=e,o=t,i=n[t],(o=mn(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)):fn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function pn(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,mn(r.key),r)}}function mn(e){var t=function(e,t){if("object"!==sn(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!==sn(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===sn(t)?t:String(t)}function hn(e,t){return hn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},hn(e,t)}function vn(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function gn(e){return gn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},gn(e)}var yn=function(t){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&hn(e,t)}(l,t);var n,r,o,i,a=(o=l,i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=gn(o);if(i){var n=gn(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"===sn(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return vn(e)}(this,e)});function l(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),(t=a.call(this,e)).state={variant:e.outvar in e.data?e.data[e.outvar]:e.variants[e.fallback?e.fallback:0]},t.handleClick=t.handleClick.bind(vn(t)),t.props.target.construct(t.props.outvar,t.state.variant),t}return n=l,(r=[{key:"handleClick",value:function(e){this.setState(dn(dn({},this.state),{},{variant:e})),this.props.target.update(this.props.outvar,e)}},{key:"render",value:function(){var t=this,n=this.props.id+this.props.outvar;return e.createElement("div",{className:"shop-radio",key:this.props.id},e.createElement("div",{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(nn,{id:this.props.id+"tooltip",tip:this.props.tip}),this.props.variants.map((function(r,o){return e.createElement("div",{className:"form-check",key:n+r},e.createElement("input",{className:"form-check-input",type:"radio",name:n,id:n+r,checked:t.state.variant===r,onClick:function(){return t.handleClick(r)},onChange:function(){return t.handleClick(r)}}),e.createElement("label",{className:"form-check-label",htmlFor:n+r},r))})))}}])&&pn(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),l}(e.Component);function bn(e){return bn="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},bn(e)}function wn(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(void 0,o=function(e,t){if("object"!==bn(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!==bn(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(r.key),"symbol"===bn(o)?o:String(o)),r)}var o}function En(e,t){return En=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},En(e,t)}function Sn(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function xn(e){return xn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},xn(e)}var kn=function(t){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&En(e,t)}(l,t);var n,r,o,i,a=(o=l,i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=xn(o);if(i){var n=xn(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"===bn(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Sn(e)}(this,e)});function l(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),(t=a.call(this,e)).state={checked:e.outvar in e.data?!!e.data[e.outvar]:!!e.fallback},t.handleClick=t.handleClick.bind(Sn(t)),t.props.target.construct(t.props.outvar,t.state.checked),t}return n=l,(r=[{key:"handleClick",value:function(){var e=!this.state.checked;this.setState({checked:e}),this.props.target.update(this.props.outvar,e)}},{key:"render",value:function(){var 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(nn,{id:this.props.id+"tooltip",tip:this.props.tip})))}}])&&wn(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),l}(e.Component);function On(e){return On="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},On(e)}function Cn(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 Pn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Cn(Object(n),!0).forEach((function(t){var r,o,i;r=e,o=t,i=n[t],(o=Dn(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)):Cn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function In(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Dn(r.key),r)}}function Dn(e){var t=function(e,t){if("object"!==On(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!==On(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===On(t)?t:String(t)}function _n(e,t){return _n=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},_n(e,t)}function Rn(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Nn(e){return Nn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Nn(e)}var Tn=function(t){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&_n(e,t)}(l,t);var n,r,o,i,a=(o=l,i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=Nn(o);if(i){var n=Nn(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"===On(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Rn(e)}(this,e)});function l(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),(t=a.call(this,e)).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},t.handleText=t.handleText.bind(Rn(t)),t.handleCheck=t.handleCheck.bind(Rn(t)),t.props.target.construct(t.props.outvar,t.state),t}return n=l,(r=[{key:"handleText",value:function(e){var t=Pn(Pn({},this.state),{},{text:e.target.value});this.setState(t),this.props.target.update(this.props.outvar,t)}},{key:"handleCheck",value:function(){var e=Pn(Pn({},this.state),{},{checked:!this.state.checked});this.setState(e),this.props.target.update(this.props.outvar,e)}},{key:"render",value:function(){var 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(nn,{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}))}}])&&In(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),l}(e.Component),jn={Radio:function(t,n,r,o){var i=o.title,a=o.variants,l=o.outvar,u=o.fallback,c=o.icon,s=o.tip;return e.createElement(yn,{target:t,title:i,variants:a,outvar:l,icon:c,tip:s,key:n,fallback:u,id:n,data:r})},Switch:function(t,n,r,o){var i=o.title,a=o.fallback,l=o.outvar,u=o.icon,c=o.tip;return e.createElement(kn,{target:t,title:i,fallback:a,outvar:l,icon:u,tip:c,key:n,id:n,data:r})},Line:function(t,n,r,o){var i=o.title,a=o.fallback,l=o.outvar,u=o.icon,c=o.tip;return e.createElement(cn,{target:t,title:i,fallback:a,outvar:l,icon:u,tip:c,key:n,id:n,data:r})},SwitchLine:function(t,n,r,o){var i=o.title,a=o.fallback,l=o.outvar,u=o.icon,c=o.tip;return e.createElement(Tn,{target:t,title:i,fallback:a,outvar:l,icon:u,tip:c,key:n,id:n,data:r})},Default:function(t,n){return e.createElement("div",{key:t+n,style:{background:"red"}},"UNIMPLEMENTED")}},An=function(e){return Object.prototype.toString.call(e).slice(8,-1).toLowerCase()};function Mn(e,t){var n=An(e),r={};return"array"===n?e.map((function(e,n){Object.assign(r,Mn(e,t))})):"object"===n&&("string"!==An(e.type)||"object"!==An(e.args)&&"array"!==An(e.items)?Object.assign(r,Mn(a().apply(e,t),t)):e.type in jn?r[e.args.outvar]=t[e.args.outvar]:"Group"===e.type&&Object.assign(r,Mn(a().apply(e.items,t),t))),r}const Ln={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};let Bn;const Fn=new Uint8Array(16);function zn(){if(!Bn&&(Bn="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!Bn))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Bn(Fn)}const Un=[];for(let e=0;e<256;++e)Un.push((e+256).toString(16).slice(1));const Wn=function(e,t,n){if(Ln.randomUUID&&!t&&!e)return Ln.randomUUID();const r=(e=e||{}).random||(e.rng||zn)();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 Un[e[t+0]]+Un[e[t+1]]+Un[e[t+2]]+Un[e[t+3]]+"-"+Un[e[t+4]]+Un[e[t+5]]+"-"+Un[e[t+6]]+Un[e[t+7]]+"-"+Un[e[t+8]]+Un[e[t+9]]+"-"+Un[e[t+10]]+Un[e[t+11]]+Un[e[t+12]]+Un[e[t+13]]+Un[e[t+14]]+Un[e[t+15]]}(r)};function Gn(){return Gn=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},Gn.apply(this,arguments)}function Hn(e){return Hn="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},Hn(e)}function Vn(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==Hn(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!==Hn(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===Hn(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function $n(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 qn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?$n(Object(n),!0).forEach((function(t){Vn(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$n(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Qn(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 Yn="function"==typeof Symbol&&Symbol.observable||"@@observable",Kn=function(){return Math.random().toString(36).substring(7).split("").join(".")},Jn={INIT:"@@redux/INIT"+Kn(),REPLACE:"@@redux/REPLACE"+Kn(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+Kn()}};function Xn(e,t,n){var r;if("function"==typeof t&&"function"==typeof n||"function"==typeof n&&"function"==typeof arguments[3])throw new Error(Qn(0));if("function"==typeof t&&void 0===n&&(n=t,t=void 0),void 0!==n){if("function"!=typeof n)throw new Error(Qn(1));return n(Xn)(e,t)}if("function"!=typeof e)throw new Error(Qn(2));var o=e,i=t,a=[],l=a,u=!1;function c(){l===a&&(l=a.slice())}function s(){if(u)throw new Error(Qn(3));return i}function f(e){if("function"!=typeof e)throw new Error(Qn(4));if(u)throw new Error(Qn(5));var t=!0;return c(),l.push(e),function(){if(t){if(u)throw new Error(Qn(6));t=!1,c();var n=l.indexOf(e);l.splice(n,1),a=null}}}function d(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(Qn(7));if(void 0===e.type)throw new Error(Qn(8));if(u)throw new Error(Qn(9));try{u=!0,i=o(i,e)}finally{u=!1}for(var t=a=l,n=0;n<t.length;n++)(0,t[n])();return e}return d({type:Jn.INIT}),(r={dispatch:d,subscribe:f,getState:s,replaceReducer:function(e){if("function"!=typeof e)throw new Error(Qn(10));o=e,d({type:Jn.REPLACE})}})[Yn]=function(){var e,t=f;return(e={subscribe:function(e){if("object"!=typeof e||null===e)throw new Error(Qn(11));function n(){e.next&&e.next(s())}return n(),{unsubscribe:t(n)}}})[Yn]=function(){return this},e},r}function Zn(e,t){return function(){return t(e.apply(this,arguments))}}function er(e,t){if("function"==typeof e)return Zn(e,t);if("object"!=typeof e||null===e)throw new Error(Qn(16));var n={};for(var r in e){var o=e[r];"function"==typeof o&&(n[r]=Zn(o,t))}return n}function tr(){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 nr=e.createContext(null),rr=function(e){e()},or=function(){return rr},ir={notify:function(){},get:function(){return[]}};function ar(e,t){var n,r=ir;function o(){a.onStateChange&&a.onStateChange()}function i(){n||(n=t?t.addNestedSub(o):e.subscribe(o),r=function(){var e=or(),t=null,n=null;return{clear:function(){t=null,n=null},notify:function(){e((function(){for(var e=t;e;)e.callback(),e=e.next}))},get:function(){for(var e=[],n=t;n;)e.push(n),n=n.next;return e},subscribe:function(e){var 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)}}}}())}var a={addNestedSub:function(e){return i(),r.subscribe(e)},notifyNestedSubs:function(){r.notify()},handleChangeWrapper:o,isSubscribed:function(){return Boolean(n)},trySubscribe:i,tryUnsubscribe:function(){n&&(n(),n=void 0,r.clear(),r=ir)},getListeners:function(){return r}};return a}var lr="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?e.useLayoutEffect:e.useEffect;const ur=function(t){var n=t.store,r=t.context,o=t.children,i=(0,e.useMemo)((function(){var e=ar(n);return{store:n,subscription:e}}),[n]),a=(0,e.useMemo)((function(){return n.getState()}),[n]);lr((function(){var e=i.subscription;return e.onStateChange=e.notifyNestedSubs,e.trySubscribe(),a!==n.getState()&&e.notifyNestedSubs(),function(){e.tryUnsubscribe(),e.onStateChange=null}}),[i,a]);var l=r||nr;return e.createElement(l.Provider,{value:i},o)};var cr=n(679),sr=n.n(cr),fr=n(864),dr=["getDisplayName","methodName","renderCountProp","shouldHandleStateChanges","storeKey","withRef","forwardRef","context"],pr=["reactReduxForwardedRef"],mr=[],hr=[null,null];function vr(e,t){var n=e[1];return[t.payload,n+1]}function gr(e,t,n){lr((function(){return e.apply(void 0,t)}),n)}function yr(e,t,n,r,o,i,a){e.current=r,t.current=o,n.current=!1,i.current&&(i.current=null,a())}function br(e,t,n,r,o,i,a,l,u,c){if(e){var s=!1,f=null,d=function(){if(!s){var e,n,d=t.getState();try{e=r(d,o.current)}catch(e){n=e,f=e}n||(f=null),e===i.current?a.current||u():(i.current=e,l.current=e,a.current=!0,c({type:"STORE_UPDATED",payload:{error:n}}))}};return n.onStateChange=d,n.trySubscribe(),d(),function(){if(s=!0,n.tryUnsubscribe(),n.onStateChange=null,f)throw f}}}var wr=function(){return[null,0]};function Er(t,n){void 0===n&&(n={});var r=n,o=r.getDisplayName,i=void 0===o?function(e){return"ConnectAdvanced("+e+")"}:o,a=r.methodName,l=void 0===a?"connectAdvanced":a,u=r.renderCountProp,c=void 0===u?void 0:u,s=r.shouldHandleStateChanges,f=void 0===s||s,d=r.storeKey,p=void 0===d?"store":d,m=(r.withRef,r.forwardRef),h=void 0!==m&&m,v=r.context,g=void 0===v?nr:v,y=Pt(r,dr),b=g;return function(n){var r=n.displayName||n.name||"Component",o=i(r),a=Gn({},y,{getDisplayName:i,methodName:l,renderCountProp:c,shouldHandleStateChanges:f,storeKey:p,displayName:o,wrappedComponentName:r,WrappedComponent:n}),u=y.pure,s=u?e.useMemo:function(e){return e()};function d(r){var o=(0,e.useMemo)((function(){var e=r.reactReduxForwardedRef,t=Pt(r,pr);return[r.context,e,t]}),[r]),i=o[0],l=o[1],u=o[2],c=(0,e.useMemo)((function(){return i&&i.Consumer&&(0,fr.isContextConsumer)(e.createElement(i.Consumer,null))?i:b}),[i,b]),d=(0,e.useContext)(c),p=Boolean(r.store)&&Boolean(r.store.getState)&&Boolean(r.store.dispatch);Boolean(d)&&Boolean(d.store);var m=p?r.store:d.store,h=(0,e.useMemo)((function(){return function(e){return t(e.dispatch,a)}(m)}),[m]),v=(0,e.useMemo)((function(){if(!f)return hr;var e=ar(m,p?null:d.subscription),t=e.notifyNestedSubs.bind(e);return[e,t]}),[m,p,d]),g=v[0],y=v[1],w=(0,e.useMemo)((function(){return p?d:Gn({},d,{subscription:g})}),[p,d,g]),E=(0,e.useReducer)(vr,mr,wr),S=E[0][0],x=E[1];if(S&&S.error)throw S.error;var k=(0,e.useRef)(),O=(0,e.useRef)(u),C=(0,e.useRef)(),P=(0,e.useRef)(!1),I=s((function(){return C.current&&u===O.current?C.current:h(m.getState(),u)}),[m,S,u]);gr(yr,[O,k,P,u,I,C,y]),gr(br,[f,m,g,h,O,k,P,C,y,x],[m,g,h]);var D=(0,e.useMemo)((function(){return e.createElement(n,Gn({},I,{ref:l}))}),[l,n,I]);return(0,e.useMemo)((function(){return f?e.createElement(c.Provider,{value:w},D):D}),[c,D,w])}var m=u?e.memo(d):d;if(m.WrappedComponent=n,m.displayName=d.displayName=o,h){var v=e.forwardRef((function(t,n){return e.createElement(m,Gn({},t,{reactReduxForwardedRef:n}))}));return v.displayName=o,v.WrappedComponent=n,sr()(v,n)}return sr()(m,n)}}function Sr(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!=e&&t!=t}function xr(e,t){if(Sr(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(var o=0;o<n.length;o++)if(!Object.prototype.hasOwnProperty.call(t,n[o])||!Sr(e[n[o]],t[n[o]]))return!1;return!0}function kr(e){return function(t,n){var r=e(t,n);function o(){return r}return o.dependsOnOwnProps=!1,o}}function Or(e){return null!==e.dependsOnOwnProps&&void 0!==e.dependsOnOwnProps?Boolean(e.dependsOnOwnProps):1!==e.length}function Cr(e,t){return function(t,n){n.displayName;var r=function(e,t){return r.dependsOnOwnProps?r.mapToProps(e,t):r.mapToProps(e)};return r.dependsOnOwnProps=!0,r.mapToProps=function(t,n){r.mapToProps=e,r.dependsOnOwnProps=Or(e);var o=r(t,n);return"function"==typeof o&&(r.mapToProps=o,r.dependsOnOwnProps=Or(o),o=r(t,n)),o},r}}const Pr=[function(e){return"function"==typeof e?Cr(e):void 0},function(e){return e?void 0:kr((function(e){return{dispatch:e}}))},function(e){return e&&"object"==typeof e?kr((function(t){return function(e,t){var n={},r=function(r){var o=e[r];"function"==typeof o&&(n[r]=function(){return t(o.apply(void 0,arguments))})};for(var o in e)r(o);return n}(e,t)})):void 0}],Ir=[function(e){return"function"==typeof e?Cr(e):void 0},function(e){return e?void 0:kr((function(){return{}}))}];function Dr(e,t,n){return Gn({},n,e,t)}const _r=[function(e){return"function"==typeof e?function(e){return function(t,n){n.displayName;var r,o=n.pure,i=n.areMergedPropsEqual,a=!1;return function(t,n,l){var u=e(t,n,l);return a?o&&i(u,r)||(r=u):(a=!0,r=u),r}}}(e):void 0},function(e){return e?void 0:function(){return Dr}}];var Rr=["initMapStateToProps","initMapDispatchToProps","initMergeProps"];function Nr(e,t,n,r){return function(o,i){return n(e(o,i),t(r,i),i)}}function Tr(e,t,n,r,o){var i,a,l,u,c,s=o.areStatesEqual,f=o.areOwnPropsEqual,d=o.areStatePropsEqual,p=!1;return function(o,m){return p?function(o,p){var m,h,v=!f(p,a),g=!s(o,i,p,a);return i=o,a=p,v&&g?(l=e(i,a),t.dependsOnOwnProps&&(u=t(r,a)),c=n(l,u,a)):v?(e.dependsOnOwnProps&&(l=e(i,a)),t.dependsOnOwnProps&&(u=t(r,a)),c=n(l,u,a)):g?(m=e(i,a),h=!d(m,l),l=m,h&&(c=n(l,u,a)),c):c}(o,m):(l=e(i=o,a=m),u=t(r,a),c=n(l,u,a),p=!0,c)}}function jr(e,t){var n=t.initMapStateToProps,r=t.initMapDispatchToProps,o=t.initMergeProps,i=Pt(t,Rr),a=n(e,i),l=r(e,i),u=o(e,i);return(i.pure?Tr:Nr)(a,l,u,e,i)}var Ar=["pure","areStatesEqual","areOwnPropsEqual","areStatePropsEqual","areMergedPropsEqual"];function Mr(e,t,n){for(var r=t.length-1;r>=0;r--){var o=t[r](e);if(o)return o}return function(t,r){throw new Error("Invalid value of type "+typeof e+" for "+n+" argument when connecting component "+r.wrappedComponentName+".")}}function Lr(e,t){return e===t}function Br(e){var t=void 0===e?{}:e,n=t.connectHOC,r=void 0===n?Er:n,o=t.mapStateToPropsFactories,i=void 0===o?Ir:o,a=t.mapDispatchToPropsFactories,l=void 0===a?Pr:a,u=t.mergePropsFactories,c=void 0===u?_r:u,s=t.selectorFactory,f=void 0===s?jr:s;return function(e,t,n,o){void 0===o&&(o={});var a=o,u=a.pure,s=void 0===u||u,d=a.areStatesEqual,p=void 0===d?Lr:d,m=a.areOwnPropsEqual,h=void 0===m?xr:m,v=a.areStatePropsEqual,g=void 0===v?xr:v,y=a.areMergedPropsEqual,b=void 0===y?xr:y,w=Pt(a,Ar),E=Mr(e,i,"mapStateToProps"),S=Mr(t,l,"mapDispatchToProps"),x=Mr(n,c,"mergeProps");return r(f,Gn({methodName:"connect",getDisplayName:function(e){return"Connect("+e+")"},shouldHandleStateChanges:Boolean(e),initMapStateToProps:E,initMapDispatchToProps:S,initMergeProps:x,pure:s,areStatesEqual:p,areOwnPropsEqual:h,areStatePropsEqual:g,areMergedPropsEqual:b},w))}}const Fr=Br();var zr;function Ur(t,n){var r=(0,e.useState)((function(){return{inputs:n,result:t()}}))[0],o=(0,e.useRef)(!0),i=(0,e.useRef)(r),a=o.current||Boolean(n&&i.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,i.current.inputs))?i.current:{inputs:n,result:t()};return(0,e.useEffect)((function(){o.current=!1,i.current=a}),[a]),a.result}zr=y.unstable_batchedUpdates,rr=zr;var Wr=Ur,Gr=function(e,t){return Ur((function(){return e}),t)},Hr=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}}},Vr=function(e,t){return{top:e.top-t.top,left:e.left-t.left,bottom:e.bottom+t.bottom,right:e.right+t.right}},$r=function(e,t){return{top:e.top+t.top,left:e.left+t.left,bottom:e.bottom-t.bottom,right:e.right-t.right}},qr={top:0,right:0,bottom:0,left:0},Qr=function(e){var t=e.borderBox,n=e.margin,r=void 0===n?qr:n,o=e.border,i=void 0===o?qr:o,a=e.padding,l=void 0===a?qr:a,u=Hr(Vr(t,r)),c=Hr($r(t,i)),s=Hr($r(c,l));return{marginBox:u,borderBox:Hr(t),paddingBox:c,contentBox:s,margin:r,border:i,padding:l}},Yr=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},Kr=function(e,t){var n,r,o=e.borderBox,i=e.border,a=e.margin,l=e.padding,u=(r=t,{top:(n=o).top+r.y,left:n.left+r.x,bottom:n.bottom+r.y,right:n.right+r.x});return Qr({borderBox:u,border:i,margin:a,padding:l})},Jr=function(e,t){return void 0===t&&(t={x:window.pageXOffset,y:window.pageYOffset}),Kr(e,t)},Xr=function(e,t){var n={top:Yr(t.marginTop),right:Yr(t.marginRight),bottom:Yr(t.marginBottom),left:Yr(t.marginLeft)},r={top:Yr(t.paddingTop),right:Yr(t.paddingRight),bottom:Yr(t.paddingBottom),left:Yr(t.paddingLeft)},o={top:Yr(t.borderTopWidth),right:Yr(t.borderRightWidth),bottom:Yr(t.borderBottomWidth),left:Yr(t.borderLeftWidth)};return Qr({borderBox:e,margin:n,padding:r,border:o})},Zr=function(e){var t=e.getBoundingClientRect(),n=window.getComputedStyle(e);return Xr(t,n)},eo=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function to(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(!((r=e[n])===(o=t[n])||eo(r)&&eo(o)))return!1;var r,o;return!0}const no=function(e,t){var n;void 0===t&&(t=to);var r,o=[],i=!1;return function(){for(var a=[],l=0;l<arguments.length;l++)a[l]=arguments[l];return i&&n===this&&t(a,o)||(r=e.apply(this,a),i=!0,n=this,o=a),r}},ro=function(e){var t=[],n=null,r=function(){for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];t=o,n||(n=requestAnimationFrame((function(){n=null,e.apply(void 0,t)})))};return r.cancel=function(){n&&(cancelAnimationFrame(n),n=null)},r};function oo(e,t){}function io(){}function ao(e,t,n){var r=t.map((function(t){var r,o,i=(r=n,o=t.options,Gn({},r,{},o));return e.addEventListener(t.eventName,t.fn,i),function(){e.removeEventListener(t.eventName,t.fn,i)}}));return function(){r.forEach((function(e){e()}))}}oo.bind(null,"warn"),oo.bind(null,"error");var lo=!0,uo="Invariant failed";function co(e){this.message=e}function so(e,t){if(!e)throw new co(lo?uo:uo+": "+(t||""))}co.prototype.toString=function(){return this.message};var fo=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=e.call.apply(e,[this].concat(r))||this).callbacks=null,t.unbind=io,t.onWindowError=function(e){var n=t.getCallbacks();n.isDragging()&&n.tryAbort(),e.error instanceof co&&e.preventDefault()},t.getCallbacks=function(){if(!t.callbacks)throw new Error("Unable to find AppCallbacks in <ErrorBoundary/>");return t.callbacks},t.setCallbacks=function(e){t.callbacks=e},t}Dt(t,e);var n=t.prototype;return n.componentDidMount=function(){this.unbind=ao(window,[{eventName:"error",fn:this.onWindowError}])},n.componentDidCatch=function(e){if(!(e instanceof co))throw e;this.setState({})},n.componentWillUnmount=function(){this.unbind()},n.render=function(){return this.props.children(this.setCallbacks)},t}(e.Component),po=function(e){return e+1},mo=function(e,t){var n=e.droppableId===t.droppableId,r=po(e.index),o=po(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 "},ho=function(e,t,n){return 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 "},vo=function(e){return"\n The item has returned to its starting position\n of "+po(e.index)+"\n"},go=function(e){return"\n You have lifted an item in position "+po(e.source.index)+"\n"},yo=function(e){var t=e.destination;if(t)return mo(e.source,t);var n=e.combine;return n?ho(e.draggableId,e.source,n):"You are over an area that cannot be dropped on"},bo=function(e){if("CANCEL"===e.reason)return"\n Movement cancelled.\n "+vo(e.source)+"\n ";var t=e.destination,n=e.combine;return t?"\n You have dropped the item.\n "+mo(e.source,t)+"\n ":n?"\n You have dropped the item.\n "+ho(e.draggableId,e.source,n)+"\n ":"\n The item has been dropped while not over a drop area.\n "+vo(e.source)+"\n "},wo={x:0,y:0},Eo=function(e,t){return{x:e.x+t.x,y:e.y+t.y}},So=function(e,t){return{x:e.x-t.x,y:e.y-t.y}},xo=function(e,t){return e.x===t.x&&e.y===t.y},ko=function(e){return{x:0!==e.x?-e.x:0,y:0!==e.y?-e.y:0}},Oo=function(e,t,n){var r;return void 0===n&&(n=0),(r={})[e]=t,r["x"===e?"y":"x"]=n,r},Co=function(e,t){return Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))},Po=function(e,t){return Math.min.apply(Math,t.map((function(t){return Co(e,t)})))},Io=function(e){return function(t){return{x:e(t.x),y:e(t.y)}}},Do=function(e,t){return{top:e.top+t.y,left:e.left+t.x,bottom:e.bottom+t.y,right:e.right+t.x}},_o=function(e){return[{x:e.left,y:e.top},{x:e.right,y:e.top},{x:e.left,y:e.bottom},{x:e.right,y:e.bottom}]},Ro=function(e,t){return t&&t.shouldClipSubject?function(e,t){var n=Hr({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):Hr(e)},No=function(e){var t=e.page,n=e.withPlaceholder,r=e.axis,o=e.frame,i=function(e,t){return t?Do(e,t.scroll.diff.displacement):e}(t.marginBox,o),a=function(e,t,n){var r;return n&&n.increasedBy?Gn({},e,((r={})[t.end]=e[t.end]+n.increasedBy[t.line],r)):e}(i,r,n);return{page:t,withPlaceholder:n,active:Ro(a,o)}},To=function(e,t){e.frame||so(!1);var n=e.frame,r=So(t,n.scroll.initial),o=ko(r),i=Gn({},n,{scroll:{initial:n.scroll.initial,current:t,diff:{value:r,displacement:o},max:n.scroll.max}});return Gn({},e,{frame:i,subject:No({page:e.subject.page,withPlaceholder:e.subject.withPlaceholder,axis:e.axis,frame:i})})};function jo(e){return Object.values?Object.values(e):Object.keys(e).map((function(t){return e[t]}))}function Ao(e,t){if(e.findIndex)return e.findIndex(t);for(var n=0;n<e.length;n++)if(t(e[n]))return n;return-1}function Mo(e,t){if(e.find)return e.find(t);var n=Ao(e,t);return-1!==n?e[n]:void 0}function Lo(e){return Array.prototype.slice.call(e)}var Bo=no((function(e){return e.reduce((function(e,t){return e[t.descriptor.id]=t,e}),{})})),Fo=no((function(e){return e.reduce((function(e,t){return e[t.descriptor.id]=t,e}),{})})),zo=no((function(e){return jo(e)})),Uo=no((function(e){return jo(e)})),Wo=no((function(e,t){var n=Uo(t).filter((function(t){return e===t.descriptor.droppableId})).sort((function(e,t){return e.descriptor.index-t.descriptor.index}));return n}));function Go(e){return e.at&&"REORDER"===e.at.type?e.at.destination:null}function Ho(e){return e.at&&"COMBINE"===e.at.type?e.at.combine:null}var Vo=no((function(e,t){return t.filter((function(t){return t.descriptor.id!==e.descriptor.id}))})),$o=function(e,t){return e.descriptor.droppableId===t.descriptor.id},qo={point:wo,value:0},Qo={invisible:{},visible:{},all:[]},Yo={displaced:Qo,displacedBy:qo,at:null},Ko=function(e,t){return function(n){return e<=n&&n<=t}},Jo=function(e){var t=Ko(e.top,e.bottom),n=Ko(e.left,e.right);return function(r){if(t(r.top)&&t(r.bottom)&&n(r.left)&&n(r.right))return!0;var o=t(r.top)||t(r.bottom),i=n(r.left)||n(r.right);if(o&&i)return!0;var a=r.top<e.top&&r.bottom>e.bottom,l=r.left<e.left&&r.right>e.right;return!(!a||!l)||a&&i||l&&o}},Xo=function(e){var t=Ko(e.top,e.bottom),n=Ko(e.left,e.right);return function(e){return t(e.top)&&t(e.bottom)&&n(e.left)&&n(e.right)}},Zo={direction:"vertical",line:"y",crossAxisLine:"x",start:"top",end:"bottom",size:"height",crossAxisStart:"left",crossAxisEnd:"right",crossAxisSize:"width"},ei={direction:"horizontal",line:"x",crossAxisLine:"y",start:"left",end:"right",size:"width",crossAxisStart:"top",crossAxisEnd:"bottom",crossAxisSize:"height"},ti=function(e){var t=e.target,n=e.destination,r=e.viewport,o=e.withDroppableDisplacement,i=e.isVisibleThroughFrameFn,a=o?function(e,t){var n=t.frame?t.frame.scroll.diff.displacement:wo;return Do(e,n)}(t,n):t;return function(e,t,n){return!!t.subject.active&&n(t.subject.active)(e)}(a,n,i)&&function(e,t,n){return n(t)(e)}(a,r,i)},ni=function(e){return ti(Gn({},e,{isVisibleThroughFrameFn:Jo}))},ri=function(e){return ti(Gn({},e,{isVisibleThroughFrameFn:Xo}))},oi=function(e,t,n){if("boolean"==typeof n)return n;if(!t)return!0;var r=t.invisible,o=t.visible;if(r[e])return!1;var i=o[e];return!i||i.shouldAnimate};function ii(e){var t=e.afterDragging,n=e.destination,r=e.displacedBy,o=e.viewport,i=e.forceShouldAnimate,a=e.last;return t.reduce((function(e,t){var l=function(e,t){var n=e.page.marginBox,r={top:t.point.y,right:0,bottom:0,left:t.point.x};return Hr(Vr(n,r))}(t,r),u=t.descriptor.id;if(e.all.push(u),!ni({target:l,destination:n,viewport:o,withDroppableDisplacement:!0}))return e.invisible[t.descriptor.id]=!0,e;var c={draggableId:u,shouldAnimate:oi(u,a,i)};return e.visible[u]=c,e}),{all:[],visible:{},invisible:{}})}function ai(e){var t=e.insideDestination,n=e.inHomeList,r=e.displacedBy,o=e.destination,i=function(e,t){if(!e.length)return 0;var n=e[e.length-1].descriptor.index;return t.inHomeList?n:n+1}(t,{inHomeList:n});return{displaced:Qo,displacedBy:r,at:{type:"REORDER",destination:{droppableId:o.descriptor.id,index:i}}}}function li(e){var t=e.draggable,n=e.insideDestination,r=e.destination,o=e.viewport,i=e.displacedBy,a=e.last,l=e.index,u=e.forceShouldAnimate,c=$o(t,r);if(null==l)return ai({insideDestination:n,inHomeList:c,displacedBy:i,destination:r});var s=Mo(n,(function(e){return e.descriptor.index===l}));if(!s)return ai({insideDestination:n,inHomeList:c,displacedBy:i,destination:r});var f=Vo(t,n),d=n.indexOf(s);return{displaced:ii({afterDragging:f.slice(d),destination:r,displacedBy:i,last:a,viewport:o.frame,forceShouldAnimate:u}),displacedBy:i,at:{type:"REORDER",destination:{droppableId:r.descriptor.id,index:l}}}}function ui(e,t){return Boolean(t.effected[e])}var ci=function(e,t){return t.margin[e.start]+t.borderBox[e.size]/2},si=function(e,t,n){return t[e.crossAxisStart]+n.margin[e.crossAxisStart]+n.borderBox[e.crossAxisSize]/2},fi=function(e){var t=e.axis,n=e.moveRelativeTo,r=e.isMoving;return Oo(t.line,n.marginBox[t.end]+ci(t,r),si(t,n.marginBox,r))},di=function(e){var t=e.axis,n=e.moveRelativeTo,r=e.isMoving;return Oo(t.line,n.marginBox[t.start]-function(e,t){return t.margin[e.end]+t.borderBox[e.size]/2}(t,r),si(t,n.marginBox,r))},pi=function(e,t){var n=e.frame;return n?Eo(t,n.scroll.diff.displacement):t},mi=function(e){var t=function(e){var t=e.impact,n=e.draggable,r=e.droppable,o=e.draggables,i=e.afterCritical,a=n.page.borderBox.center,l=t.at;return r&&l?"REORDER"===l.type?function(e){var t=e.impact,n=e.draggable,r=e.draggables,o=e.droppable,i=e.afterCritical,a=Wo(o.descriptor.id,r),l=n.page,u=o.axis;if(!a.length)return function(e){var t=e.axis,n=e.moveInto,r=e.isMoving;return Oo(t.line,n.contentBox[t.start]+ci(t,r),si(t,n.contentBox,r))}({axis:u,moveInto:o.page,isMoving:l});var c=t.displaced,s=t.displacedBy,f=c.all[0];if(f){var d=r[f];if(ui(f,i))return di({axis:u,moveRelativeTo:d.page,isMoving:l});var p=Kr(d.page,s.point);return di({axis:u,moveRelativeTo:p,isMoving:l})}var m=a[a.length-1];if(m.descriptor.id===n.descriptor.id)return l.borderBox.center;if(ui(m.descriptor.id,i)){var h=Kr(m.page,ko(i.displacedBy.point));return fi({axis:u,moveRelativeTo:h,isMoving:l})}return fi({axis:u,moveRelativeTo:m.page,isMoving:l})}({impact:t,draggable:n,draggables:o,droppable:r,afterCritical:i}):function(e){var t=e.afterCritical,n=e.impact,r=e.draggables,o=Ho(n);o||so(!1);var i=o.draggableId,a=r[i].page.borderBox.center,l=function(e){var t=e.displaced,n=e.afterCritical,r=e.combineWith,o=e.displacedBy,i=Boolean(t.visible[r]||t.invisible[r]);return ui(r,n)?i?wo:ko(o.point):i?o.point:wo}({displaced:n.displaced,afterCritical:t,combineWith:i,displacedBy:n.displacedBy});return Eo(a,l)}({impact:t,draggables:o,afterCritical:i}):a}(e),n=e.droppable;return n?pi(n,t):t},hi=function(e,t){var n=So(t,e.scroll.initial),r=ko(n);return{frame:Hr({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 vi(e,t){return e.map((function(e){return t[e]}))}var gi=function(e){var t=e.pageBorderBoxCenter,n=e.draggable,r=function(e,t){return Eo(e.scroll.diff.displacement,t)}(e.viewport,t),o=So(r,n.page.borderBox.center);return Eo(n.client.borderBox.center,o)},yi=function(e){var t=e.draggable,n=e.destination,r=e.newPageBorderBoxCenter,o=e.viewport,i=e.withDroppableDisplacement,a=e.onlyOnMainAxis,l=void 0!==a&&a,u=So(r,t.page.borderBox.center),c={target:Do(t.page.borderBox,u),destination:n,withDroppableDisplacement:i,viewport:o};return l?function(e){return ti(Gn({},e,{isVisibleThroughFrameFn:(t=e.destination.axis,function(e){var n=Ko(e.top,e.bottom),r=Ko(e.left,e.right);return function(e){return t===Zo?n(e.top)&&n(e.bottom):r(e.left)&&r(e.right)}})}));var t}(c):ri(c)},bi=function(e){var t=e.isMovingForward,n=e.draggable,r=e.destination,o=e.draggables,i=e.previousImpact,a=e.viewport,l=e.previousPageBorderBoxCenter,u=e.previousClientSelection,c=e.afterCritical;if(!r.isEnabled)return null;var s=Wo(r.descriptor.id,o),f=$o(n,r),d=function(e){var t=e.isMovingForward,n=e.draggable,r=e.destination,o=e.insideDestination,i=e.previousImpact;if(!r.isCombineEnabled)return null;if(!Go(i))return null;function a(e){var t={type:"COMBINE",combine:{draggableId:e,droppableId:r.descriptor.id}};return Gn({},i,{at:t})}var l=i.displaced.all,u=l.length?l[0]:null;if(t)return u?a(u):null;var c=Vo(n,o);if(!u)return c.length?a(c[c.length-1].descriptor.id):null;var s=Ao(c,(function(e){return e.descriptor.id===u}));-1===s&&so(!1);var f=s-1;return f<0?null:a(c[f].descriptor.id)}({isMovingForward:t,draggable:n,destination:r,insideDestination:s,previousImpact:i})||function(e){var t=e.isMovingForward,n=e.isInHomeList,r=e.draggable,o=e.draggables,i=e.destination,a=e.insideDestination,l=e.previousImpact,u=e.viewport,c=e.afterCritical,s=l.at;if(s||so(!1),"REORDER"===s.type){var f=function(e){var t=e.isMovingForward,n=e.isInHomeList,r=e.insideDestination,o=e.location;if(!r.length)return null;var i=o.index,a=t?i+1:i-1,l=r[0].descriptor.index,u=r[r.length-1].descriptor.index;return a<l||a>(n?u:u+1)?null:a}({isMovingForward:t,isInHomeList:n,location:s.destination,insideDestination:a});return null==f?null:li({draggable:r,insideDestination:a,destination:i,viewport:u,last:l.displaced,displacedBy:l.displacedBy,index:f})}var d=function(e){var t=e.isMovingForward,n=e.draggables,r=e.combine,o=e.afterCritical;if(!e.destination.isCombineEnabled)return null;var i=r.draggableId,a=n[i].descriptor.index;return ui(i,o)?t?a:a-1:t?a+1:a}({isMovingForward:t,destination:i,displaced:l.displaced,draggables:o,combine:s.combine,afterCritical:c});return null==d?null:li({draggable:r,insideDestination:a,destination:i,viewport:u,last:l.displaced,displacedBy:l.displacedBy,index:d})}({isMovingForward:t,isInHomeList:f,draggable:n,draggables:o,destination:r,insideDestination:s,previousImpact:i,viewport:a,afterCritical:c});if(!d)return null;var p=mi({impact:d,draggable:n,droppable:r,draggables:o,afterCritical:c});if(yi({draggable:n,destination:r,newPageBorderBoxCenter:p,viewport:a.frame,withDroppableDisplacement:!1,onlyOnMainAxis:!0}))return{clientSelection:gi({pageBorderBoxCenter:p,draggable:n,viewport:a}),impact:d,scrollJumpRequest:null};var m=So(p,l),h=function(e){var t=e.impact,n=e.viewport,r=e.destination,o=e.draggables,i=e.maxScrollChange,a=hi(n,Eo(n.scroll.current,i)),l=r.frame?To(r,Eo(r.frame.scroll.current,i)):r,u=t.displaced,c=ii({afterDragging:vi(u.all,o),destination:r,displacedBy:t.displacedBy,viewport:a.frame,last:u,forceShouldAnimate:!1}),s=ii({afterDragging:vi(u.all,o),destination:l,displacedBy:t.displacedBy,viewport:n.frame,last:u,forceShouldAnimate:!1}),f={},d={},p=[u,c,s];return u.all.forEach((function(e){var t=function(e,t){for(var n=0;n<t.length;n++){var r=t[n].visible[e];if(r)return r}return null}(e,p);t?d[e]=t:f[e]=!0})),Gn({},t,{displaced:{all:u.all,invisible:f,visible:d}})}({impact:d,viewport:a,destination:r,draggables:o,maxScrollChange:m});return{clientSelection:u,impact:h,scrollJumpRequest:m}},wi=function(e){var t=e.subject.active;return t||so(!1),t},Ei=function(e,t){var n=e.page.borderBox.center;return ui(e.descriptor.id,t)?So(n,t.displacedBy.point):n},Si=function(e,t){var n=e.page.borderBox;return ui(e.descriptor.id,t)?Do(n,ko(t.displacedBy.point)):n},xi=no((function(e,t){var n=t[e.line];return{value:n,point:Oo(e.line,n)}})),ki=function(e,t){return Gn({},e,{scroll:Gn({},e.scroll,{max:t})})},Oi=function(e,t,n){var r=e.frame;$o(t,e)&&so(!1),e.subject.withPlaceholder&&so(!1);var o=xi(e.axis,t.displaceBy).point,i=function(e,t,n){var r=e.axis;if("virtual"===e.descriptor.mode)return Oo(r.line,t[r.line]);var o=e.subject.page.contentBox[r.size],i=Wo(e.descriptor.id,n).reduce((function(e,t){return e+t.client.marginBox[r.size]}),0)+t[r.line]-o;return i<=0?null:Oo(r.line,i)}(e,o,n),a={placeholderSize:o,increasedBy:i,oldFrameMaxScroll:e.frame?e.frame.scroll.max:null};if(!r)return Gn({},e,{subject:No({page:e.subject.page,withPlaceholder:a,axis:e.axis,frame:e.frame})});var l=i?Eo(r.scroll.max,i):r.scroll.max,u=ki(r,l);return Gn({},e,{subject:No({page:e.subject.page,withPlaceholder:a,axis:e.axis,frame:u}),frame:u})},Ci=function(e){var t=e.at;return t?"REORDER"===t.type?t.destination.droppableId:t.combine.droppableId:null},Pi=function(e){var t=e.state,n=e.type,r=function(e,t){var n=Ci(e);return n?t[n]:null}(t.impact,t.dimensions.droppables),o=Boolean(r),i=t.dimensions.droppables[t.critical.droppable.id],a=r||i,l=a.axis.direction,u="vertical"===l&&("MOVE_UP"===n||"MOVE_DOWN"===n)||"horizontal"===l&&("MOVE_LEFT"===n||"MOVE_RIGHT"===n);if(u&&!o)return null;var c="MOVE_DOWN"===n||"MOVE_RIGHT"===n,s=t.dimensions.draggables[t.critical.draggable.id],f=t.current.page.borderBoxCenter,d=t.dimensions,p=d.draggables,m=d.droppables;return u?bi({isMovingForward:c,previousPageBorderBoxCenter:f,draggable:s,destination:a,draggables:p,viewport:t.viewport,previousClientSelection:t.current.client.selection,previousImpact:t.impact,afterCritical:t.afterCritical}):function(e){var t=e.isMovingForward,n=e.previousPageBorderBoxCenter,r=e.draggable,o=e.isOver,i=e.draggables,a=e.droppables,l=e.viewport,u=e.afterCritical,c=function(e){var t=e.isMovingForward,n=e.pageBorderBoxCenter,r=e.source,o=e.droppables,i=e.viewport,a=r.subject.active;if(!a)return null;var l=r.axis,u=Ko(a[l.start],a[l.end]),c=zo(o).filter((function(e){return e!==r})).filter((function(e){return e.isEnabled})).filter((function(e){return Boolean(e.subject.active)})).filter((function(e){return Jo(i.frame)(wi(e))})).filter((function(e){var n=wi(e);return t?a[l.crossAxisEnd]<n[l.crossAxisEnd]:n[l.crossAxisStart]<a[l.crossAxisStart]})).filter((function(e){var t=wi(e),n=Ko(t[l.start],t[l.end]);return u(t[l.start])||u(t[l.end])||n(a[l.start])||n(a[l.end])})).sort((function(e,n){var r=wi(e)[l.crossAxisStart],o=wi(n)[l.crossAxisStart];return t?r-o:o-r})).filter((function(e,t,n){return wi(e)[l.crossAxisStart]===wi(n[0])[l.crossAxisStart]}));if(!c.length)return null;if(1===c.length)return c[0];var s=c.filter((function(e){return Ko(wi(e)[l.start],wi(e)[l.end])(n[l.line])}));return 1===s.length?s[0]:s.length>1?s.sort((function(e,t){return wi(e)[l.start]-wi(t)[l.start]}))[0]:c.sort((function(e,t){var r=Po(n,_o(wi(e))),o=Po(n,_o(wi(t)));return r!==o?r-o:wi(e)[l.start]-wi(t)[l.start]}))[0]}({isMovingForward:t,pageBorderBoxCenter:n,source:o,droppables:a,viewport:l});if(!c)return null;var s=Wo(c.descriptor.id,i),f=function(e){var t=e.pageBorderBoxCenter,n=e.viewport,r=e.destination,o=e.afterCritical,i=e.insideDestination.filter((function(e){return ri({target:Si(e,o),destination:r,viewport:n.frame,withDroppableDisplacement:!0})})).sort((function(e,n){var i=Co(t,pi(r,Ei(e,o))),a=Co(t,pi(r,Ei(n,o)));return i<a?-1:a<i?1:e.descriptor.index-n.descriptor.index}));return i[0]||null}({pageBorderBoxCenter:n,viewport:l,destination:c,insideDestination:s,afterCritical:u}),d=function(e){var t=e.previousPageBorderBoxCenter,n=e.moveRelativeTo,r=e.insideDestination,o=e.draggable,i=e.draggables,a=e.destination,l=e.viewport,u=e.afterCritical;if(!n){if(r.length)return null;var c={displaced:Qo,displacedBy:qo,at:{type:"REORDER",destination:{droppableId:a.descriptor.id,index:0}}},s=mi({impact:c,draggable:o,droppable:a,draggables:i,afterCritical:u}),f=$o(o,a)?a:Oi(a,o,i);return yi({draggable:o,destination:f,newPageBorderBoxCenter:s,viewport:l.frame,withDroppableDisplacement:!1,onlyOnMainAxis:!0})?c:null}var d,p=Boolean(t[a.axis.line]<=n.page.borderBox.center[a.axis.line]),m=(d=n.descriptor.index,n.descriptor.id===o.descriptor.id||p?d:d+1);return li({draggable:o,insideDestination:r,destination:a,viewport:l,displacedBy:xi(a.axis,o.displaceBy),last:Qo,index:m})}({previousPageBorderBoxCenter:n,destination:c,draggable:r,draggables:i,moveRelativeTo:f,insideDestination:s,viewport:l,afterCritical:u});if(!d)return null;var p=mi({impact:d,draggable:r,droppable:c,draggables:i,afterCritical:u});return{clientSelection:gi({pageBorderBoxCenter:p,draggable:r,viewport:l}),impact:d,scrollJumpRequest:null}}({isMovingForward:c,previousPageBorderBoxCenter:f,draggable:s,isOver:a,draggables:p,droppables:m,viewport:t.viewport,afterCritical:t.afterCritical})};function Ii(e){return"DRAGGING"===e.phase||"COLLECTING"===e.phase}function Di(e){var t=Ko(e.top,e.bottom),n=Ko(e.left,e.right);return function(e){return t(e.y)&&n(e.x)}}var _i=function(e,t){return Hr(Do(e,t))};function Ri(e){var t=e.displaced,n=e.id;return Boolean(t.visible[n]||t.invisible[n])}var Ni=function(e){var t=e.pageOffset,n=e.draggable,r=e.draggables,o=e.droppables,i=e.previousImpact,a=e.viewport,l=e.afterCritical,u=_i(n.page.borderBox,t),c=function(e){var t=e.pageBorderBox,n=e.draggable,r=e.droppables,o=zo(r).filter((function(e){if(!e.isEnabled)return!1;var n,r,o=e.subject.active;if(!o)return!1;if(r=o,!((n=t).left<r.right&&n.right>r.left&&n.top<r.bottom&&n.bottom>r.top))return!1;if(Di(o)(t.center))return!0;var i=e.axis,a=o.center[i.crossAxisLine],l=t[i.crossAxisStart],u=t[i.crossAxisEnd],c=Ko(o[i.crossAxisStart],o[i.crossAxisEnd]),s=c(l),f=c(u);return!s&&!f||(s?l<a:u>a)}));return o.length?1===o.length?o[0].descriptor.id:function(e){var t=e.pageBorderBox,n=e.candidates,r=e.draggable.page.borderBox.center,o=n.map((function(e){var n=e.axis,o=Oo(e.axis.line,t.center[n.line],e.page.borderBox.center[n.crossAxisLine]);return{id:e.descriptor.id,distance:Co(r,o)}})).sort((function(e,t){return t.distance-e.distance}));return o[0]?o[0].id:null}({pageBorderBox:t,draggable:n,candidates:o}):null}({pageBorderBox:u,draggable:n,droppables:o});if(!c)return Yo;var s=o[c],f=Wo(s.descriptor.id,r),d=function(e,t){var n=e.frame;return n?_i(t,n.scroll.diff.value):t}(s,u);return function(e){var t=e.draggable,n=e.pageBorderBoxWithDroppableScroll,r=e.previousImpact,o=e.destination,i=e.insideDestination,a=e.afterCritical;if(!o.isCombineEnabled)return null;var l=o.axis,u=xi(o.axis,t.displaceBy),c=u.value,s=n[l.start],f=n[l.end],d=Mo(Vo(t,i),(function(e){var t=e.descriptor.id,n=e.page.borderBox,o=n[l.size]/4,i=ui(t,a),u=Ri({displaced:r.displaced,id:t});return i?u?f>n[l.start]+o&&f<n[l.end]-o:s>n[l.start]-c+o&&s<n[l.end]-c-o:u?f>n[l.start]+c+o&&f<n[l.end]+c-o:s>n[l.start]+o&&s<n[l.end]-o}));return d?{displacedBy:u,displaced:r.displaced,at:{type:"COMBINE",combine:{draggableId:d.descriptor.id,droppableId:o.descriptor.id}}}:null}({pageBorderBoxWithDroppableScroll:d,draggable:n,previousImpact:i,destination:s,insideDestination:f,afterCritical:l})||function(e){var t=e.pageBorderBoxWithDroppableScroll,n=e.draggable,r=e.destination,o=e.insideDestination,i=e.last,a=e.viewport,l=e.afterCritical,u=r.axis,c=xi(r.axis,n.displaceBy),s=c.value,f=t[u.start],d=t[u.end],p=function(e){var t=e.draggable,n=e.closest;return n?e.inHomeList&&n.descriptor.index>t.descriptor.index?n.descriptor.index-1:n.descriptor.index:null}({draggable:n,closest:Mo(Vo(n,o),(function(e){var t=e.descriptor.id,n=e.page.borderBox.center[u.line],r=ui(t,l),o=Ri({displaced:i,id:t});return r?o?d<=n:f<n-s:o?d<=n+s:f<n})),inHomeList:$o(n,r)});return li({draggable:n,insideDestination:o,destination:r,viewport:a,last:i,displacedBy:c,index:p})}({pageBorderBoxWithDroppableScroll:d,draggable:n,destination:s,insideDestination:f,last:i.displaced,viewport:a,afterCritical:l})},Ti=function(e,t){var n;return Gn({},e,((n={})[t.descriptor.id]=t,n))},ji=function(e){var t=e.state,n=e.clientSelection,r=e.dimensions,o=e.viewport,i=e.impact,a=e.scrollJumpRequest,l=o||t.viewport,u=r||t.dimensions,c=n||t.current.client.selection,s=So(c,t.initial.client.selection),f={offset:s,selection:c,borderBoxCenter:Eo(t.initial.client.borderBoxCenter,s)},d={selection:Eo(f.selection,l.scroll.current),borderBoxCenter:Eo(f.borderBoxCenter,l.scroll.current),offset:Eo(f.offset,l.scroll.diff.value)},p={client:f,page:d};if("COLLECTING"===t.phase)return Gn({phase:"COLLECTING"},t,{dimensions:u,viewport:l,current:p});var m=u.draggables[t.critical.draggable.id],h=i||Ni({pageOffset:d.offset,draggable:m,draggables:u.draggables,droppables:u.droppables,previousImpact:t.impact,viewport:l,afterCritical:t.afterCritical}),v=function(e){var t=e.draggable,n=e.draggables,r=e.droppables,o=e.impact,i=function(e){var t=e.previousImpact,n=e.impact,r=e.droppables,o=Ci(t),i=Ci(n);if(!o)return r;if(o===i)return r;var a=r[o];if(!a.subject.withPlaceholder)return r;var l=function(e){var t=e.subject.withPlaceholder;t||so(!1);var n=e.frame;if(!n)return Gn({},e,{subject:No({page:e.subject.page,axis:e.axis,frame:null,withPlaceholder:null})});var r=t.oldFrameMaxScroll;r||so(!1);var o=ki(n,r);return Gn({},e,{subject:No({page:e.subject.page,axis:e.axis,frame:o,withPlaceholder:null}),frame:o})}(a);return Ti(r,l)}({previousImpact:e.previousImpact,impact:o,droppables:r}),a=Ci(o);if(!a)return i;var l=r[a];if($o(t,l))return i;if(l.subject.withPlaceholder)return i;var u=Oi(l,t,n);return Ti(i,u)}({draggable:m,impact:h,previousImpact:t.impact,draggables:u.draggables,droppables:u.droppables});return Gn({},t,{current:p,dimensions:{draggables:u.draggables,droppables:v},impact:h,viewport:l,scrollJumpRequest:a||null,forceShouldAnimate:!a&&null})},Ai=function(e){var t=e.impact,n=e.viewport,r=e.draggables,o=e.destination,i=e.forceShouldAnimate,a=t.displaced,l=function(e,t){return e.map((function(e){return t[e]}))}(a.all,r);return Gn({},t,{displaced:ii({afterDragging:l,destination:o,displacedBy:t.displacedBy,viewport:n.frame,forceShouldAnimate:i,last:a})})},Mi=function(e){var t=e.impact,n=e.draggable,r=e.droppable,o=e.draggables,i=e.viewport,a=e.afterCritical,l=mi({impact:t,draggable:n,draggables:o,droppable:r,afterCritical:a});return gi({pageBorderBoxCenter:l,draggable:n,viewport:i})},Li=function(e){var t=e.state,n=e.dimensions,r=e.viewport;"SNAP"!==t.movementMode&&so(!1);var o=t.impact,i=r||t.viewport,a=n||t.dimensions,l=a.draggables,u=a.droppables,c=l[t.critical.draggable.id],s=Ci(o);s||so(!1);var f=u[s],d=Ai({impact:o,viewport:i,destination:f,draggables:l}),p=Mi({impact:d,draggable:c,droppable:f,draggables:l,viewport:i,afterCritical:t.afterCritical});return ji({impact:d,clientSelection:p,state:t,dimensions:a,viewport:i})},Bi=function(e){var t=e.draggable,n=e.home,r=e.draggables,o=e.viewport,i=xi(n.axis,t.displaceBy),a=Wo(n.descriptor.id,r),l=a.indexOf(t);-1===l&&so(!1);var u,c=a.slice(l+1),s=c.reduce((function(e,t){return e[t.descriptor.id]=!0,e}),{}),f={inVirtualList:"virtual"===n.descriptor.mode,displacedBy:i,effected:s};return{impact:{displaced:ii({afterDragging:c,destination:n,displacedBy:i,last:null,viewport:o.frame,forceShouldAnimate:!1}),displacedBy:i,at:{type:"REORDER",destination:(u=t.descriptor,{index:u.index,droppableId:u.droppableId})}},afterCritical:f}},Fi=function(e){return"SNAP"===e.movementMode},zi=function(e,t,n){var r=function(e,t){return{draggables:e.draggables,droppables:Ti(e.droppables,t)}}(e.dimensions,t);return!Fi(e)||n?ji({state:e,dimensions:r}):Li({state:e,dimensions:r})};function Ui(e){return e.isDragging&&"SNAP"===e.movementMode?Gn({phase:"DRAGGING"},e,{scrollJumpRequest:null}):e}var Wi={phase:"IDLE",completed:null,shouldFlush:!1},Gi=function(e,t){if(void 0===e&&(e=Wi),"FLUSH"===t.type)return Gn({},Wi,{shouldFlush:!0});if("INITIAL_PUBLISH"===t.type){"IDLE"!==e.phase&&so(!1);var n=t.payload,r=n.critical,o=n.clientSelection,i=n.viewport,a=n.dimensions,l=n.movementMode,u=a.draggables[r.draggable.id],c=a.droppables[r.droppable.id],s={selection:o,borderBoxCenter:u.client.borderBox.center,offset:wo},f={client:s,page:{selection:Eo(s.selection,i.scroll.initial),borderBoxCenter:Eo(s.selection,i.scroll.initial),offset:Eo(s.selection,i.scroll.diff.value)}},d=zo(a.droppables).every((function(e){return!e.isFixedOnPage})),p=Bi({draggable:u,home:c,draggables:a.draggables,viewport:i}),m=p.impact;return{phase:"DRAGGING",isDragging:!0,critical:r,movementMode:l,dimensions:a,initial:f,current:f,isWindowScrollAllowed:d,impact:m,afterCritical:p.afterCritical,onLiftImpact:m,viewport:i,scrollJumpRequest:null,forceShouldAnimate:null}}if("COLLECTION_STARTING"===t.type)return"COLLECTING"===e.phase||"DROP_PENDING"===e.phase?e:("DRAGGING"!==e.phase&&so(!1),Gn({phase:"COLLECTING"},e,{phase:"COLLECTING"}));if("PUBLISH_WHILE_DRAGGING"===t.type)return"COLLECTING"!==e.phase&&"DROP_PENDING"!==e.phase&&so(!1),function(e){var t=e.state,n=e.published,r=n.modified.map((function(e){var n=t.dimensions.droppables[e.droppableId];return To(n,e.scroll)})),o=Gn({},t.dimensions.droppables,{},Bo(r)),i=Fo(function(e){var t=e.additions,n=e.updatedDroppables,r=e.viewport,o=r.scroll.diff.value;return t.map((function(e){var t=e.descriptor.droppableId,i=function(e){var t=e.frame;return t||so(!1),t}(n[t]),a=i.scroll.diff.value,l=function(e){var t=e.draggable,n=e.offset,r=e.initialWindowScroll,o=Kr(t.client,n),i=Jr(o,r);return Gn({},t,{placeholder:Gn({},t.placeholder,{client:o}),client:o,page:i})}({draggable:e,offset:Eo(o,a),initialWindowScroll:r.scroll.initial});return l}))}({additions:n.additions,updatedDroppables:o,viewport:t.viewport})),a=Gn({},t.dimensions.draggables,{},i);n.removals.forEach((function(e){delete a[e]}));var l={droppables:o,draggables:a},u=Ci(t.impact),c=u?l.droppables[u]:null,s=l.draggables[t.critical.draggable.id],f=l.droppables[t.critical.droppable.id],d=Bi({draggable:s,home:f,draggables:a,viewport:t.viewport}),p=d.impact,m=d.afterCritical,h=c&&c.isCombineEnabled?t.impact:p,v=Ni({pageOffset:t.current.page.offset,draggable:l.draggables[t.critical.draggable.id],draggables:l.draggables,droppables:l.droppables,previousImpact:h,viewport:t.viewport,afterCritical:m}),g=Gn({phase:"DRAGGING"},t,{phase:"DRAGGING",impact:v,onLiftImpact:p,dimensions:l,afterCritical:m,forceShouldAnimate:!1});return"COLLECTING"===t.phase?g:Gn({phase:"DROP_PENDING"},g,{phase:"DROP_PENDING",reason:t.reason,isWaiting:!1})}({state:e,published:t.payload});if("MOVE"===t.type){if("DROP_PENDING"===e.phase)return e;Ii(e)||so(!1);var h=t.payload.client;return xo(h,e.current.client.selection)?e:ji({state:e,clientSelection:h,impact:Fi(e)?e.impact:null})}if("UPDATE_DROPPABLE_SCROLL"===t.type){if("DROP_PENDING"===e.phase)return Ui(e);if("COLLECTING"===e.phase)return Ui(e);Ii(e)||so(!1);var v=t.payload,g=v.id,y=v.newScroll,b=e.dimensions.droppables[g];if(!b)return e;var w=To(b,y);return zi(e,w,!1)}if("UPDATE_DROPPABLE_IS_ENABLED"===t.type){if("DROP_PENDING"===e.phase)return e;Ii(e)||so(!1);var E=t.payload,S=E.id,x=E.isEnabled,k=e.dimensions.droppables[S];k||so(!1),k.isEnabled===x&&so(!1);var O=Gn({},k,{isEnabled:x});return zi(e,O,!0)}if("UPDATE_DROPPABLE_IS_COMBINE_ENABLED"===t.type){if("DROP_PENDING"===e.phase)return e;Ii(e)||so(!1);var C=t.payload,P=C.id,I=C.isCombineEnabled,D=e.dimensions.droppables[P];D||so(!1),D.isCombineEnabled===I&&so(!1);var _=Gn({},D,{isCombineEnabled:I});return zi(e,_,!0)}if("MOVE_BY_WINDOW_SCROLL"===t.type){if("DROP_PENDING"===e.phase||"DROP_ANIMATING"===e.phase)return e;Ii(e)||so(!1),e.isWindowScrollAllowed||so(!1);var R=t.payload.newScroll;if(xo(e.viewport.scroll.current,R))return Ui(e);var N=hi(e.viewport,R);return Fi(e)?Li({state:e,viewport:N}):ji({state:e,viewport:N})}if("UPDATE_VIEWPORT_MAX_SCROLL"===t.type){if(!Ii(e))return e;var T=t.payload.maxScroll;if(xo(T,e.viewport.scroll.max))return e;var j=Gn({},e.viewport,{scroll:Gn({},e.viewport.scroll,{max:T})});return Gn({phase:"DRAGGING"},e,{viewport:j})}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&&so(!1);var A=Pi({state:e,type:t.type});return A?ji({state:e,impact:A.impact,clientSelection:A.clientSelection,scrollJumpRequest:A.scrollJumpRequest}):e}if("DROP_PENDING"===t.type){var M=t.payload.reason;return"COLLECTING"!==e.phase&&so(!1),Gn({phase:"DROP_PENDING"},e,{phase:"DROP_PENDING",isWaiting:!0,reason:M})}if("DROP_ANIMATE"===t.type){var L=t.payload,B=L.completed,F=L.dropDuration,z=L.newHomeClientOffset;return"DRAGGING"!==e.phase&&"DROP_PENDING"!==e.phase&&so(!1),{phase:"DROP_ANIMATING",completed:B,dropDuration:F,newHomeClientOffset:z,dimensions:e.dimensions}}return"DROP_COMPLETE"===t.type?{phase:"IDLE",completed:t.payload.completed,shouldFlush:!1}:e},Hi=function(e){return{type:"LIFT",payload:e}},Vi=function(e){return{type:"PUBLISH_WHILE_DRAGGING",payload:e}},$i=function(){return{type:"COLLECTION_STARTING",payload:null}},qi=function(e){return{type:"UPDATE_DROPPABLE_SCROLL",payload:e}},Qi=function(e){return{type:"UPDATE_DROPPABLE_IS_ENABLED",payload:e}},Yi=function(e){return{type:"UPDATE_DROPPABLE_IS_COMBINE_ENABLED",payload:e}},Ki=function(e){return{type:"MOVE",payload:e}},Ji=function(){return{type:"MOVE_UP",payload:null}},Xi=function(){return{type:"MOVE_DOWN",payload:null}},Zi=function(){return{type:"MOVE_RIGHT",payload:null}},ea=function(){return{type:"MOVE_LEFT",payload:null}},ta=function(){return{type:"FLUSH",payload:null}},na=function(e){return{type:"DROP_COMPLETE",payload:e}},ra=function(e){return{type:"DROP",payload:e}},oa="cubic-bezier(.2,1,.1,1)",ia=0,aa=.7,la=.75,ua="0.2s cubic-bezier(0.2, 0, 0, 1)",ca={fluid:"opacity "+ua,snap:"transform "+ua+", opacity "+ua,drop:function(e){var t=e+"s "+oa;return"transform "+t+", opacity "+t},outOfTheWay:"transform "+ua,placeholder:"height "+ua+", width "+ua+", margin "+ua},sa=function(e){return xo(e,wo)?null:"translate("+e.x+"px, "+e.y+"px)"},fa=sa,da=function(e,t){var n=sa(e);return n?t?n+" scale("+la+")":n:null},pa=.33,ma=function(e){var t=e.getState,n=e.dispatch;return function(e){return function(r){if("DROP"===r.type){var o=t(),i=r.payload.reason;if("COLLECTING"!==o.phase){if("IDLE"!==o.phase){"DROP_PENDING"===o.phase&&o.isWaiting&&so(!1),"DRAGGING"!==o.phase&&"DROP_PENDING"!==o.phase&&so(!1);var a=o.critical,l=o.dimensions,u=l.draggables[o.critical.draggable.id],c=function(e){var t=e.draggables,n=e.reason,r=e.lastImpact,o=e.home,i=e.viewport,a=e.onLiftImpact;return r.at&&"DROP"===n?"REORDER"===r.at.type?{impact:r,didDropInsideDroppable:!0}:{impact:Gn({},r,{displaced:Qo}),didDropInsideDroppable:!0}:{impact:Ai({draggables:t,impact:a,destination:o,viewport:i,forceShouldAnimate:!0}),didDropInsideDroppable:!1}}({reason:i,lastImpact:o.impact,afterCritical:o.afterCritical,onLiftImpact:o.onLiftImpact,home:o.dimensions.droppables[o.critical.droppable.id],viewport:o.viewport,draggables:o.dimensions.draggables}),s=c.impact,f=c.didDropInsideDroppable,d=f?Go(s):null,p=f?Ho(s):null,m={index:a.draggable.index,droppableId:a.droppable.id},h={draggableId:u.descriptor.id,type:u.descriptor.type,source:m,reason:i,mode:o.movementMode,destination:d,combine:p},v=function(e){var t=e.impact,n=e.draggable,r=e.dimensions,o=e.viewport,i=e.afterCritical,a=r.draggables,l=r.droppables,u=Ci(t),c=u?l[u]:null,s=l[n.descriptor.droppableId],f=Mi({impact:t,draggable:n,draggables:a,afterCritical:i,droppable:c||s,viewport:o});return So(f,n.client.borderBox.center)}({impact:s,draggable:u,dimensions:l,viewport:o.viewport,afterCritical:o.afterCritical}),g={critical:o.critical,afterCritical:o.afterCritical,result:h,impact:s};if(!xo(o.current.client.offset,v)||Boolean(h.combine)){var y=function(e){var t=e.reason,n=Co(e.current,e.destination);if(n<=0)return pa;if(n>=1500)return.55;var r=pa+n/1500*.22000000000000003;return Number(("CANCEL"===t?.6*r:r).toFixed(2))}({current:o.current.client.offset,destination:v,reason:i});n({type:"DROP_ANIMATE",payload:{newHomeClientOffset:v,dropDuration:y,completed:g}})}else n(na({completed:g}))}}else n(function(e){return{type:"DROP_PENDING",payload:e}}({reason:i}))}else e(r)}}},ha=function(){return{x:window.pageXOffset,y:window.pageYOffset}};var va=function(e){var t=function(e){var t=e.onWindowScroll,n=ro((function(){t(ha())})),r=function(e){return{eventName:"scroll",options:{passive:!0,capture:!1},fn:function(t){t.target!==window&&t.target!==window.document||e()}}}(n),o=io;function i(){return o!==io}return{start:function(){i()&&so(!1),o=ao(window,[r])},stop:function(){i()||so(!1),n.cancel(),o(),o=io},isActive:i}}({onWindowScroll:function(t){e.dispatch({type:"MOVE_BY_WINDOW_SCROLL",payload:{newScroll:t}})}});return function(e){return function(n){t.isActive()||"INITIAL_PUBLISH"!==n.type||t.start(),t.isActive()&&function(e){return"DROP_COMPLETE"===e.type||"DROP_ANIMATE"===e.type||"FLUSH"===e.type}(n)&&t.stop(),e(n)}}},ga=function(e,t){t()},ya=function(e,t){return{draggableId:e.draggable.id,type:e.droppable.type,source:{droppableId:e.droppable.id,index:e.draggable.index},mode:t}},ba=function(e,t,n,r){if(e){var o=function(e){var t=!1,n=!1,r=setTimeout((function(){n=!0})),o=function(o){t||n||(t=!0,e(o),clearTimeout(r))};return o.wasCalled=function(){return t},o}(n);e(t,{announce:o}),o.wasCalled()||n(r(t))}else n(r(t))},wa=function(e,t){var n=function(e,t){var n,r=(n=[],{add:function(e){var t=setTimeout((function(){return function(e){var t=Ao(n,(function(t){return t.timerId===e}));-1===t&&so(!1),n.splice(t,1)[0].callback()}(t)})),r={timerId:t,callback:e};n.push(r)},flush:function(){if(n.length){var e=[].concat(n);n.length=0,e.forEach((function(e){clearTimeout(e.timerId),e.callback()}))}}}),o=null,i=function(n){o||so(!1),o=null,ga(0,(function(){return ba(e().onDragEnd,n,t,bo)}))};return{beforeCapture:function(t,n){o&&so(!1),ga(0,(function(){var r=e().onBeforeCapture;r&&r({draggableId:t,mode:n})}))},beforeStart:function(t,n){o&&so(!1),ga(0,(function(){var r=e().onBeforeDragStart;r&&r(ya(t,n))}))},start:function(n,i){o&&so(!1);var a=ya(n,i);o={mode:i,lastCritical:n,lastLocation:a.source,lastCombine:null},r.add((function(){ga(0,(function(){return ba(e().onDragStart,a,t,go)}))}))},update:function(n,i){var a=Go(i),l=Ho(i);o||so(!1);var u=!function(e,t){if(e===t)return!0;var 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}(n,o.lastCritical);u&&(o.lastCritical=n);var c,s,f=(s=a,!(null==(c=o.lastLocation)&&null==s||null!=c&&null!=s&&c.droppableId===s.droppableId&&c.index===s.index));f&&(o.lastLocation=a);var d=!function(e,t){return null==e&&null==t||null!=e&&null!=t&&e.draggableId===t.draggableId&&e.droppableId===t.droppableId}(o.lastCombine,l);if(d&&(o.lastCombine=l),u||f||d){var p=Gn({},ya(n,o.mode),{combine:l,destination:a});r.add((function(){ga(0,(function(){return ba(e().onDragUpdate,p,t,yo)}))}))}},flush:function(){o||so(!1),r.flush()},drop:i,abort:function(){if(o){var e=Gn({},ya(o.lastCritical,o.mode),{combine:null,destination:null,reason:"CANCEL"});i(e)}}}}(e,t);return function(e){return function(t){return function(r){if("BEFORE_INITIAL_CAPTURE"!==r.type){if("INITIAL_PUBLISH"===r.type){var o=r.payload.critical;return n.beforeStart(o,r.payload.movementMode),t(r),void n.start(o,r.payload.movementMode)}if("DROP_COMPLETE"===r.type){var i=r.payload.completed.result;return n.flush(),t(r),void n.drop(i)}if(t(r),"FLUSH"!==r.type){var a=e.getState();"DRAGGING"===a.phase&&n.update(a.critical,a.impact)}else n.abort()}else n.beforeCapture(r.payload.draggableId,r.payload.movementMode)}}}},Ea=function(e){return function(t){return function(n){if("DROP_ANIMATION_FINISHED"===n.type){var r=e.getState();"DROP_ANIMATING"!==r.phase&&so(!1),e.dispatch(na({completed:r.completed}))}else t(n)}}},Sa=function(e){var t=null,n=null;return function(r){return function(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){var i={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((function(){n=null,t=ao(window,[i])}))}}}},xa=function(e){return function(t){return function(n){if(t(n),"PUBLISH_WHILE_DRAGGING"===n.type){var r=e.getState();"DROP_PENDING"===r.phase&&(r.isWaiting||e.dispatch(ra({reason:r.reason})))}}}},ka=tr,Oa=function(e){var t,n=e.dimensionMarshal,r=e.focusMarshal,o=e.styleMarshal,i=e.getResponders,a=e.announce,l=e.autoScroller;return Xn(Gi,ka(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(Qn(15))},o={getState:n.getState,dispatch:function(){return r.apply(void 0,arguments)}},i=t.map((function(e){return e(o)}));return r=tr.apply(void 0,i)(n.dispatch),qn(qn({},n),{},{dispatch:r})}}}((t=o,function(){return function(e){return function(n){"INITIAL_PUBLISH"===n.type&&t.dragging(),"DROP_ANIMATE"===n.type&&t.dropping(n.payload.completed.result.reason),"FLUSH"!==n.type&&"DROP_COMPLETE"!==n.type||t.resting(),e(n)}}}),function(e){return function(){return function(t){return function(n){"DROP_COMPLETE"!==n.type&&"FLUSH"!==n.type&&"DROP_ANIMATE"!==n.type||e.stopPublishing(),t(n)}}}}(n),function(e){return function(t){var n=t.getState,r=t.dispatch;return function(t){return function(o){if("LIFT"===o.type){var i=o.payload,a=i.id,l=i.clientSelection,u=i.movementMode,c=n();"DROP_ANIMATING"===c.phase&&r(na({completed:c.completed})),"IDLE"!==n().phase&&so(!1),r(ta()),r({type:"BEFORE_INITIAL_CAPTURE",payload:{draggableId:a,movementMode:u}});var s={draggableId:a,scrollOptions:{shouldPublishImmediately:"SNAP"===u}},f=e.startPublishing(s),d=f.critical,p=f.dimensions,m=f.viewport;r({type:"INITIAL_PUBLISH",payload:{critical:d,dimensions:p,clientSelection:l,movementMode:u,viewport:m}})}else t(o)}}}}(n),ma,Ea,Sa,xa,function(e){return function(t){return function(n){return function(r){if(function(e){return"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);var o=t.getState();return"DRAGGING"!==o.phase&&so(!1),void e.start(o)}n(r),e.scroll(t.getState())}}}}(l),va,function(e){var t=!1;return function(){return function(n){return function(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;var o=r.payload.completed.result;o.combine&&e.tryShiftRecord(o.draggableId,o.combine.draggableId),e.tryRestoreFocusRecorded()}}}}}}(r),wa(i,a))))},Ca=function(e){var t=e.scrollHeight,n=e.scrollWidth,r=e.height,o=e.width,i=So({x:n,y:t},{x:o,y:r});return{x:Math.max(0,i.x),y:Math.max(0,i.y)}},Pa=function(){var e=document.documentElement;return e||so(!1),e},Ia=function(){var e=Pa();return Ca({scrollHeight:e.scrollHeight,scrollWidth:e.scrollWidth,width:e.clientWidth,height:e.clientHeight})};function Da(e,t,n){return n.descriptor.id!==t.id&&n.descriptor.type===t.type&&"virtual"===e.droppable.getById(n.descriptor.droppableId).descriptor.mode}var _a,Ra,Na=function(e,t){var n=null,r=function(e){var t=e.registry,n=e.callbacks,r={additions:{},removals:{},modified:{}},o=null,i=function(){o||(n.collectionStarting(),o=requestAnimationFrame((function(){o=null;var e=r,i=e.additions,a=e.removals,l=e.modified,u=Object.keys(i).map((function(e){return t.draggable.getById(e).getDimension(wo)})).sort((function(e,t){return e.descriptor.index-t.descriptor.index})),c=Object.keys(l).map((function(e){return{droppableId:e,scroll:t.droppable.getById(e).callbacks.getScrollWhileDragging()}})),s={additions:u,removals:Object.keys(a),modified:c};r={additions:{},removals:{},modified:{}},n.publish(s)})))};return{add:function(e){var t=e.descriptor.id;r.additions[t]=e,r.modified[e.descriptor.droppableId]=!0,r.removals[t]&&delete r.removals[t],i()},remove:function(e){var t=e.descriptor;r.removals[t.id]=!0,r.modified[t.droppableId]=!0,r.additions[t.id]&&delete r.additions[t.id],i()},stop:function(){o&&(cancelAnimationFrame(o),o=null,r={additions:{},removals:{},modified:{}})}}}({callbacks:{publish:t.publishWhileDragging,collectionStarting:t.collectionStarting},registry:e}),o=function(t){n||so(!1);var o=n.critical.draggable;"ADDITION"===t.type&&Da(e,o,t.value)&&r.add(t.value),"REMOVAL"===t.type&&Da(e,o,t.value)&&r.remove(t.value)},i={updateDroppableIsEnabled:function(r,o){e.droppable.exists(r)||so(!1),n&&t.updateDroppableIsEnabled({id:r,isEnabled:o})},updateDroppableIsCombineEnabled:function(r,o){n&&(e.droppable.exists(r)||so(!1),t.updateDroppableIsCombineEnabled({id:r,isCombineEnabled:o}))},scrollDroppable:function(t,r){n&&e.droppable.getById(t).callbacks.scroll(r)},updateDroppableScroll:function(r,o){n&&(e.droppable.exists(r)||so(!1),t.updateDroppableScroll({id:r,newScroll:o}))},startPublishing:function(t){n&&so(!1);var r=e.draggable.getById(t.draggableId),i=e.droppable.getById(r.descriptor.droppableId),a={draggable:r.descriptor,droppable:i.descriptor},l=e.subscribe(o);return n={critical:a,unsubscribe:l},function(e){var t=e.critical,n=e.scrollOptions,r=e.registry,o=function(){var e=ha(),t=Ia(),n=e.y,r=e.x,o=Pa(),i=o.clientWidth,a=o.clientHeight;return{frame:Hr({top:n,left:r,right:r+i,bottom:n+a}),scroll:{initial:e,current:e,max:t,diff:{value:wo,displacement:wo}}}}(),i=o.scroll.current,a=t.droppable,l=r.droppable.getAllByType(a.type).map((function(e){return e.callbacks.getDimensionAndWatchScroll(i,n)})),u=r.draggable.getAllByType(t.draggable.type).map((function(e){return e.getDimension(i)}));return{dimensions:{draggables:Fo(u),droppables:Bo(l)},critical:t,viewport:o}}({critical:a,registry:e,scrollOptions:t.scrollOptions})},stopPublishing:function(){if(n){r.stop();var t=n.critical.droppable;e.droppable.getAllByType(t.type).forEach((function(e){return e.callbacks.dragStopped()})),n.unsubscribe(),n=null}}};return i},Ta=function(e,t){return"IDLE"===e.phase||"DROP_ANIMATING"===e.phase&&e.completed.result.draggableId!==t&&"DROP"===e.completed.result.reason},ja=function(e){window.scrollBy(e.x,e.y)},Aa=no((function(e){return zo(e).filter((function(e){return!!e.isEnabled&&!!e.frame}))})),Ma=function(e){return Math.pow(e,2)},La=function(e){var t=e.startOfRange,n=e.endOfRange,r=e.current,o=n-t;return 0===o?0:(r-t)/o},Ba=360,Fa=1200,za=function(e){var t=e.distanceToEdge,n=e.thresholds,r=e.dragStartTime,o=e.shouldUseTimeDampening,i=function(e,t){if(e>t.startScrollingFrom)return 0;if(e<=t.maxScrollValueAt)return 28;if(e===t.startScrollingFrom)return 1;var n=La({startOfRange:t.maxScrollValueAt,endOfRange:t.startScrollingFrom,current:e}),r=28*Ma(1-n);return Math.ceil(r)}(t,n);return 0===i?0:o?Math.max(function(e,t){var n=t,r=Fa,o=Date.now()-n;if(o>=Fa)return e;if(o<Ba)return 1;var i=La({startOfRange:Ba,endOfRange:r,current:o}),a=e*Ma(i);return Math.ceil(a)}(i,r),1):i},Ua=function(e){var t=e.container,n=e.distanceToEdges,r=e.dragStartTime,o=e.axis,i=e.shouldUseTimeDampening,a=function(e,t){return{startScrollingFrom:.25*e[t.size],maxScrollValueAt:.05*e[t.size]}}(t,o);return n[o.end]<n[o.start]?za({distanceToEdge:n[o.end],thresholds:a,dragStartTime:r,shouldUseTimeDampening:i}):-1*za({distanceToEdge:n[o.start],thresholds:a,dragStartTime:r,shouldUseTimeDampening:i})},Wa=Io((function(e){return 0===e?0:e})),Ga=function(e){var t=e.dragStartTime,n=e.container,r=e.subject,o=e.center,i=e.shouldUseTimeDampening,a={top:o.y-n.top,right:n.right-o.x,bottom:n.bottom-o.y,left:o.x-n.left},l=Ua({container:n,distanceToEdges:a,dragStartTime:t,axis:Zo,shouldUseTimeDampening:i}),u=Ua({container:n,distanceToEdges:a,dragStartTime:t,axis:ei,shouldUseTimeDampening:i}),c=Wa({x:u,y:l});if(xo(c,wo))return null;var s=function(e){var t=e.container,n=e.subject,r=e.proposedScroll,o=n.height>t.height,i=n.width>t.width;return i||o?i&&o?null:{x:i?0:r.x,y:o?0:r.y}:r}({container:n,subject:r,proposedScroll:c});return s?xo(s,wo)?null:s:null},Ha=Io((function(e){return 0===e?0:e>0?1:-1})),Va=(_a=function(e,t){return e<0?e:e>t?e-t:0},function(e){var t=e.current,n=e.max,r=e.change,o=Eo(t,r),i={x:_a(o.x,n.x),y:_a(o.y,n.y)};return xo(i,wo)?null:i}),$a=function(e){var t=e.max,n=e.current,r=e.change,o={x:Math.max(n.x,t.x),y:Math.max(n.y,t.y)},i=Ha(r),a=Va({max:o,current:n,change:i});return!a||0!==i.x&&0===a.x||0!==i.y&&0===a.y},qa=function(e,t){return $a({current:e.scroll.current,max:e.scroll.max,change:t})},Qa=function(e,t){var n=e.frame;return!!n&&$a({current:n.scroll.current,max:n.scroll.max,change:t})},Ya=function(e){var t=e.state,n=e.dragStartTime,r=e.shouldUseTimeDampening,o=e.scrollWindow,i=e.scrollDroppable,a=t.current.page.borderBoxCenter,l=t.dimensions.draggables[t.critical.draggable.id].page.marginBox;if(t.isWindowScrollAllowed){var u=function(e){var t=e.viewport,n=e.subject,r=e.center,o=e.shouldUseTimeDampening,i=Ga({dragStartTime:e.dragStartTime,container:t.frame,subject:n,center:r,shouldUseTimeDampening:o});return i&&qa(t,i)?i:null}({dragStartTime:n,viewport:t.viewport,subject:l,center:a,shouldUseTimeDampening:r});if(u)return void o(u)}var c=function(e){var t=e.center,n=e.destination,r=e.droppables;if(n){var o=r[n];return o.frame?o:null}var i=function(e,t){var n=Mo(Aa(t),(function(t){return t.frame||so(!1),Di(t.frame.pageMarginBox)(e)}));return n}(t,r);return i}({center:a,destination:Ci(t.impact),droppables:t.dimensions.droppables});if(c){var s=function(e){var t=e.droppable,n=e.subject,r=e.center,o=e.dragStartTime,i=e.shouldUseTimeDampening,a=t.frame;if(!a)return null;var l=Ga({dragStartTime:o,container:a.pageMarginBox,subject:n,center:r,shouldUseTimeDampening:i});return l&&Qa(t,l)?l:null}({dragStartTime:n,droppable:c,subject:l,center:a,shouldUseTimeDampening:r});s&&i(c.descriptor.id,s)}},Ka=function(e){var t=e.move,n=e.scrollDroppable,r=e.scrollWindow;return function(e){var o=e.scrollJumpRequest;if(o){var i=Ci(e.impact);i||so(!1);var a=function(e,t){if(!Qa(e,t))return t;var r=function(e,t){var n=e.frame;return n&&Qa(e,t)?Va({current:n.scroll.current,max:n.scroll.max,change:t}):null}(e,t);if(!r)return n(e.descriptor.id,t),null;var o=So(t,r);return n(e.descriptor.id,o),So(t,o)}(e.dimensions.droppables[i],o);if(a){var l=e.viewport,u=function(e,t,n){if(!e)return n;if(!qa(t,n))return n;var o=function(e,t){if(!qa(e,t))return null;var n=e.scroll.max,r=e.scroll.current;return Va({current:r,max:n,change:t})}(t,n);if(!o)return r(n),null;var i=So(n,o);return r(i),So(n,i)}(e.isWindowScrollAllowed,l,a);u&&function(e,n){var r=Eo(e.current.client.selection,n);t({client:r})}(e,u)}}}},Ja=function(e){var t=e.scrollDroppable,n=e.scrollWindow,r=e.move,o=function(e){var t=e.scrollDroppable,n=ro(e.scrollWindow),r=ro(t),o=null,i=function(e){o||so(!1);var t=o,i=t.shouldUseTimeDampening,a=t.dragStartTime;Ya({state:e,scrollWindow:n,scrollDroppable:r,dragStartTime:a,shouldUseTimeDampening:i})};return{start:function(e){o&&so(!1);var t=Date.now(),n=!1,r=function(){n=!0};Ya({state:e,dragStartTime:0,shouldUseTimeDampening:!1,scrollWindow:r,scrollDroppable:r}),o={dragStartTime:t,shouldUseTimeDampening:n},n&&i(e)},stop:function(){o&&(n.cancel(),r.cancel(),o=null)},scroll:i}}({scrollWindow:n,scrollDroppable:t}),i=Ka({move:r,scrollWindow:n,scrollDroppable:t});return{scroll:function(e){"DRAGGING"===e.phase&&("FLUID"!==e.movementMode?e.scrollJumpRequest&&i(e):o.scroll(e))},start:o.start,stop:o.stop}},Xa="data-rbd",Za={base:Ra=Xa+"-drag-handle",draggableId:Ra+"-draggable-id",contextId:Ra+"-context-id"},el=function(){var e=Xa+"-draggable";return{base:e,contextId:e+"-context-id",id:e+"-id"}}(),tl=function(){var e=Xa+"-droppable";return{base:e,contextId:e+"-context-id",id:e+"-id"}}(),nl={contextId:Xa+"-scroll-container-context-id"},rl=function(e,t){return e.map((function(e){var n=e.styles[t];return n?e.selector+" { "+n+" }":""})).join(" ")},ol=function(e){var t,n,r,o=(t=e,function(e){return"["+e+'="'+t+'"]'}),i=(n="\n cursor: -webkit-grab;\n cursor: grab;\n ",{selector:o(Za.contextId),styles:{always:"\n -webkit-touch-callout: none;\n -webkit-tap-highlight-color: rgba(0,0,0,0);\n touch-action: manipulation;\n ",resting:n,dragging:"pointer-events: none;",dropAnimating:n}}),a=[(r="\n transition: "+ca.outOfTheWay+";\n ",{selector:o(el.contextId),styles:{dragging:r,dropAnimating:r,userCancel:r}}),i,{selector:o(tl.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:rl(a,"always"),resting:rl(a,"resting"),dragging:rl(a,"dragging"),dropAnimating:rl(a,"dropAnimating"),userCancel:rl(a,"userCancel")}},il="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?e.useLayoutEffect:e.useEffect,al=function(){var e=document.querySelector("head");return e||so(!1),e},ll=function(e){var t=document.createElement("style");return e&&t.setAttribute("nonce",e),t.type="text/css",t},ul=function(e){return e&&e.ownerDocument?e.ownerDocument.defaultView:window};function cl(e){return e instanceof ul(e).HTMLElement}function sl(){var e={draggables:{},droppables:{}},t=[];function n(e){t.length&&t.forEach((function(t){return t(e)}))}function r(t){return e.draggables[t]||null}function o(t){return e.droppables[t]||null}return{draggable:{register:function(t){e.draggables[t.descriptor.id]=t,n({type:"ADDITION",value:t})},update:function(t,n){var r=e.draggables[n.descriptor.id];r&&r.uniqueId===t.uniqueId&&(delete e.draggables[n.descriptor.id],e.draggables[t.descriptor.id]=t)},unregister:function(t){var o=t.descriptor.id,i=r(o);i&&t.uniqueId===i.uniqueId&&(delete e.draggables[o],n({type:"REMOVAL",value:t}))},getById:function(e){var t=r(e);return t||so(!1),t},findById:r,exists:function(e){return Boolean(r(e))},getAllByType:function(t){return jo(e.draggables).filter((function(e){return e.descriptor.type===t}))}},droppable:{register:function(t){e.droppables[t.descriptor.id]=t},unregister:function(t){var n=o(t.descriptor.id);n&&t.uniqueId===n.uniqueId&&delete e.droppables[t.descriptor.id]},getById:function(e){var t=o(e);return t||so(!1),t},findById:o,exists:function(e){return Boolean(o(e))},getAllByType:function(t){return jo(e.droppables).filter((function(e){return e.descriptor.type===t}))}},subscribe:function(e){return t.push(e),function(){var n=t.indexOf(e);-1!==n&&t.splice(n,1)}},clean:function(){e.draggables={},e.droppables={},t.length=0}}}var fl=e.createContext(null),dl=function(){var e=document.body;return e||so(!1),e},pl={position:"absolute",width:"1px",height:"1px",margin:"-1px",border:"0",padding:"0",overflow:"hidden",clip:"rect(0 0 0 0)","clip-path":"inset(100%)"},ml=function(e){return"rbd-announcement-"+e},hl=0,vl={separator:"::"};function gl(e,t){return void 0===t&&(t=vl),Wr((function(){return""+e+t.separator+hl++}),[t.separator,e])}var yl=e.createContext(null);function bl(t){var n=(0,e.useRef)(t);return(0,e.useEffect)((function(){n.current=t})),n}var wl,El,Sl=((wl={})[13]=!0,wl[9]=!0,wl),xl=function(e){Sl[e.keyCode]&&e.preventDefault()},kl=function(){var e="visibilitychange";return"undefined"==typeof document?e:Mo([e,"ms"+e,"webkit"+e,"moz"+e,"o"+e],(function(e){return"on"+e in document}))||e}(),Ol={type:"IDLE"};function Cl(){}var Pl=((El={})[34]=!0,El[33]=!0,El[36]=!0,El[35]=!0,El);var Il={type:"IDLE"},Dl={input:!0,button:!0,textarea:!0,select:!0,option:!0,optgroup:!0,video:!0,audio:!0};function _l(e,t){if(null==t)return!1;if(Boolean(Dl[t.tagName.toLowerCase()]))return!0;var n=t.getAttribute("contenteditable");return"true"===n||""===n||t!==e&&_l(e,t.parentElement)}function Rl(e,t){var n=t.target;return!!cl(n)&&_l(e,n)}var Nl=function(e){return Hr(e.getBoundingClientRect()).center},Tl=function(){var e="matches";return"undefined"==typeof document?e:Mo([e,"msMatchesSelector","webkitMatchesSelector"],(function(e){return e in Element.prototype}))||e}();function jl(e,t){return null==e?null:e[Tl](t)?e:jl(e.parentElement,t)}function Al(e,t){return e.closest?e.closest(t):jl(e,t)}function Ml(e){e.preventDefault()}function Ll(e){var t=e.expected,n=e.phase,r=e.isLockActive;return e.shouldWarn,!!r()&&t===n}function Bl(e){var t=e.lockAPI,n=e.store,r=e.registry,o=e.draggableId;if(t.isClaimed())return!1;var i=r.draggable.findById(o);return!!i&&!!i.options.isEnabled&&!!Ta(n.getState(),o)}var Fl=[function(t){var n=(0,e.useRef)(Ol),r=(0,e.useRef)(io),o=Wr((function(){return{eventName:"mousedown",fn:function(e){if(!e.defaultPrevented&&0===e.button&&!(e.ctrlKey||e.metaKey||e.shiftKey||e.altKey)){var n=t.findClosestDraggableId(e);if(n){var o=t.tryGetLock(n,l,{sourceEvent:e});if(o){e.preventDefault();var i={x:e.clientX,y:e.clientY};r.current(),s(o,i)}}}}}}),[t]),i=Wr((function(){return{eventName:"webkitmouseforcewillbegin",fn:function(e){if(!e.defaultPrevented){var n=t.findClosestDraggableId(e);if(n){var r=t.findOptionsForDraggable(n);r&&(r.shouldRespectForcePress||t.canGetLock(n)&&e.preventDefault())}}}}}),[t]),a=Gr((function(){r.current=ao(window,[i,o],{passive:!1,capture:!0})}),[i,o]),l=Gr((function(){"IDLE"!==n.current.type&&(n.current=Ol,r.current(),a())}),[a]),u=Gr((function(){var e=n.current;l(),"DRAGGING"===e.type&&e.actions.cancel({shouldBlockNextClick:!0}),"PENDING"===e.type&&e.actions.abort()}),[l]),c=Gr((function(){var e=function(e){var t=e.cancel,n=e.completed,r=e.getPhase,o=e.setPhase;return[{eventName:"mousemove",fn:function(e){var t=e.button,n=e.clientX,i=e.clientY;if(0===t){var a={x:n,y:i},l=r();if("DRAGGING"===l.type)return e.preventDefault(),void l.actions.move(a);if("PENDING"!==l.type&&so(!1),u=l.point,c=a,Math.abs(c.x-u.x)>=5||Math.abs(c.y-u.y)>=5){var u,c;e.preventDefault();var s=l.actions.fluidLift(a);o({type:"DRAGGING",actions:s})}}}},{eventName:"mouseup",fn:function(e){var o=r();"DRAGGING"===o.type?(e.preventDefault(),o.actions.drop({shouldBlockNextClick:!0}),n()):t()}},{eventName:"mousedown",fn:function(e){"DRAGGING"===r().type&&e.preventDefault(),t()}},{eventName:"keydown",fn:function(e){if("PENDING"!==r().type)return 27===e.keyCode?(e.preventDefault(),void t()):void xl(e);t()}},{eventName:"resize",fn:t},{eventName:"scroll",options:{passive:!0,capture:!1},fn:function(){"PENDING"===r().type&&t()}},{eventName:"webkitmouseforcedown",fn:function(e){var n=r();"IDLE"===n.type&&so(!1),n.actions.shouldRespectForcePress()?t():e.preventDefault()}},{eventName:kl,fn:t}]}({cancel:u,completed:l,getPhase:function(){return n.current},setPhase:function(e){n.current=e}});r.current=ao(window,e,{capture:!0,passive:!1})}),[u,l]),s=Gr((function(e,t){"IDLE"!==n.current.type&&so(!1),n.current={type:"PENDING",point:t,actions:e},c()}),[c]);il((function(){return a(),function(){r.current()}}),[a])},function(t){var n=(0,e.useRef)(Cl),r=Wr((function(){return{eventName:"keydown",fn:function(e){if(!e.defaultPrevented&&32===e.keyCode){var r=t.findClosestDraggableId(e);if(r){var i=t.tryGetLock(r,u,{sourceEvent:e});if(i){e.preventDefault();var a=!0,l=i.snapLift();n.current(),n.current=ao(window,function(e,t){function n(){t(),e.cancel()}return[{eventName:"keydown",fn:function(r){return 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(Pl[r.keyCode]?r.preventDefault():xl(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:kl,fn:n}]}(l,u),{capture:!0,passive:!1})}}}function u(){a||so(!1),a=!1,n.current(),o()}}}}),[t]),o=Gr((function(){n.current=ao(window,[r],{passive:!1,capture:!0})}),[r]);il((function(){return o(),function(){n.current()}}),[o])},function(t){var n=(0,e.useRef)(Il),r=(0,e.useRef)(io),o=Gr((function(){return n.current}),[]),i=Gr((function(e){n.current=e}),[]),a=Wr((function(){return{eventName:"touchstart",fn:function(e){if(!e.defaultPrevented){var n=t.findClosestDraggableId(e);if(n){var o=t.tryGetLock(n,u,{sourceEvent:e});if(o){var i=e.touches[0],a={x:i.clientX,y:i.clientY};r.current(),d(o,a)}}}}}}),[t]),l=Gr((function(){r.current=ao(window,[a],{capture:!0,passive:!1})}),[a]),u=Gr((function(){var e=n.current;"IDLE"!==e.type&&("PENDING"===e.type&&clearTimeout(e.longPressTimerId),i(Il),r.current(),l())}),[l,i]),c=Gr((function(){var e=n.current;u(),"DRAGGING"===e.type&&e.actions.cancel({shouldBlockNextClick:!0}),"PENDING"===e.type&&e.actions.abort()}),[u]),s=Gr((function(){var e={capture:!0,passive:!1},t={cancel:c,completed:u,getPhase:o},n=ao(window,function(e){var t=e.cancel,n=e.completed,r=e.getPhase;return[{eventName:"touchmove",options:{capture:!1},fn:function(e){var n=r();if("DRAGGING"===n.type){n.hasMoved=!0;var o=e.touches[0],i={x:o.clientX,y:o.clientY};e.preventDefault(),n.actions.move(i)}else t()}},{eventName:"touchend",fn:function(e){var o=r();"DRAGGING"===o.type?(e.preventDefault(),o.actions.drop({shouldBlockNextClick:!0}),n()):t()}},{eventName:"touchcancel",fn:function(e){"DRAGGING"===r().type?(e.preventDefault(),t()):t()}},{eventName:"touchforcechange",fn:function(e){var n=r();"IDLE"===n.type&&so(!1);var o=e.touches[0];if(o&&o.force>=.15){var i=n.actions.shouldRespectForcePress();if("PENDING"!==n.type)return i?n.hasMoved?void e.preventDefault():void t():void e.preventDefault();i&&t()}}},{eventName:kl,fn:t}]}(t),e),i=ao(window,function(e){var t=e.cancel,n=e.getPhase;return[{eventName:"orientationchange",fn:t},{eventName:"resize",fn:t},{eventName:"contextmenu",fn:function(e){e.preventDefault()}},{eventName:"keydown",fn:function(e){"DRAGGING"===n().type?(27===e.keyCode&&e.preventDefault(),t()):t()}},{eventName:kl,fn:t}]}(t),e);r.current=function(){n(),i()}}),[c,o,u]),f=Gr((function(){var e=o();"PENDING"!==e.type&&so(!1);var t=e.actions.fluidLift(e.point);i({type:"DRAGGING",actions:t,hasMoved:!1})}),[o,i]),d=Gr((function(e,t){"IDLE"!==o().type&&so(!1);var n=setTimeout(f,120);i({type:"PENDING",point:t,actions:e,longPressTimerId:n}),s()}),[s,o,i,f]);il((function(){return l(),function(){r.current();var e=o();"PENDING"===e.type&&(clearTimeout(e.longPressTimerId),i(Il))}}),[o,l,i]),il((function(){return ao(window,[{eventName:"touchmove",fn:function(){},options:{capture:!1,passive:!1}}])}),[])}];function zl(t){var n=t.contextId,r=t.store,o=t.registry,i=t.customSensors,a=t.enableDefaultSensors,l=[].concat(a?Fl:[],i||[]),u=(0,e.useState)((function(){return function(){var e=null;function t(){e||so(!1),e=null}return{isClaimed:function(){return Boolean(e)},isActive:function(t){return t===e},claim:function(t){e&&so(!1);var n={abandon:t};return e=n,n},release:t,tryAbandon:function(){e&&(e.abandon(),t())}}}()}))[0],c=Gr((function(e,t){e.isDragging&&!t.isDragging&&u.tryAbandon()}),[u]);il((function(){var e=r.getState();return r.subscribe((function(){var t=r.getState();c(e,t),e=t}))}),[u,r,c]),il((function(){return u.tryAbandon}),[u.tryAbandon]);for(var s=Gr((function(e){return Bl({lockAPI:u,registry:o,store:r,draggableId:e})}),[u,o,r]),f=Gr((function(e,t,i){return function(e){var t=e.lockAPI,n=e.contextId,r=e.store,o=e.registry,i=e.draggableId,a=e.forceSensorStop,l=e.sourceEvent;if(!Bl({lockAPI:t,store:r,registry:o,draggableId:i}))return null;var u=o.draggable.getById(i),c=function(e,t){var n="["+el.contextId+'="'+e+'"]',r=Mo(Lo(document.querySelectorAll(n)),(function(e){return e.getAttribute(el.id)===t}));return r&&cl(r)?r:null}(n,u.descriptor.id);if(!c)return null;if(l&&!u.options.canDragInteractiveElements&&Rl(c,l))return null;var s=t.claim(a||io),f="PRE_DRAG";function d(){return u.options.shouldRespectForcePress}function p(){return t.isActive(s)}var m=function(e,t){Ll({expected:e,phase:f,isLockActive:p,shouldWarn:!0})&&r.dispatch(t())}.bind(null,"DRAGGING");function h(e){function n(){t.release(),f="COMPLETED"}function o(t,o){if(void 0===o&&(o={shouldBlockNextClick:!1}),e.cleanup(),o.shouldBlockNextClick){var i=ao(window,[{eventName:"click",fn:Ml,options:{once:!0,passive:!1,capture:!0}}]);setTimeout(i)}n(),r.dispatch(ra({reason:t}))}return"PRE_DRAG"!==f&&(n(),"PRE_DRAG"!==f&&so(!1)),r.dispatch(Hi(e.liftActionArgs)),f="DRAGGING",Gn({isActive:function(){return Ll({expected:"DRAGGING",phase:f,isLockActive:p,shouldWarn:!1})},shouldRespectForcePress:d,drop:function(e){return o("DROP",e)},cancel:function(e){return o("CANCEL",e)}},e.actions)}var v={isActive:function(){return Ll({expected:"PRE_DRAG",phase:f,isLockActive:p,shouldWarn:!1})},shouldRespectForcePress:d,fluidLift:function(e){var t=ro((function(e){m((function(){return Ki({client:e})}))}));return Gn({},h({liftActionArgs:{id:i,clientSelection:e,movementMode:"FLUID"},cleanup:function(){return t.cancel()},actions:{move:t}}),{move:t})},snapLift:function(){var e={moveUp:function(){return m(Ji)},moveRight:function(){return m(Zi)},moveDown:function(){return m(Xi)},moveLeft:function(){return m(ea)}};return h({liftActionArgs:{id:i,clientSelection:Nl(c),movementMode:"SNAP"},cleanup:io,actions:e})},abort:function(){Ll({expected:"PRE_DRAG",phase:f,isLockActive:p,shouldWarn:!0})&&t.release()}};return v}({lockAPI:u,registry:o,contextId:n,store:r,draggableId:e,forceSensorStop:t,sourceEvent:i&&i.sourceEvent?i.sourceEvent:null})}),[n,u,o,r]),d=Gr((function(e){return function(e,t){var n=function(e,t){var n,r=t.target;if(!((n=r)instanceof ul(n).Element))return null;var o=function(e){return"["+Za.contextId+'="'+e+'"]'}(e),i=Al(r,o);return i&&cl(i)?i:null}(e,t);return n?n.getAttribute(Za.draggableId):null}(n,e)}),[n]),p=Gr((function(e){var t=o.draggable.findById(e);return t?t.options:null}),[o.draggable]),m=Gr((function(){u.isClaimed()&&(u.tryAbandon(),"IDLE"!==r.getState().phase&&r.dispatch(ta()))}),[u,r]),h=Gr(u.isClaimed,[u]),v=Wr((function(){return{canGetLock:s,tryGetLock:f,findClosestDraggableId:d,findOptionsForDraggable:p,tryReleaseLock:m,isLockClaimed:h}}),[s,f,d,p,m,h]),g=0;g<l.length;g++)l[g](v)}var Ul=function(e){return{onBeforeCapture:e.onBeforeCapture,onBeforeDragStart:e.onBeforeDragStart,onDragStart:e.onDragStart,onDragEnd:e.onDragEnd,onDragUpdate:e.onDragUpdate}};function Wl(e){return e.current||so(!1),e.current}function Gl(t){var n=t.contextId,r=t.setCallbacks,o=t.sensors,i=t.nonce,a=t.dragHandleUsageInstructions,l=(0,e.useRef)(null),u=bl(t),c=Gr((function(){return Ul(u.current)}),[u]),s=function(t){var n=Wr((function(){return ml(t)}),[t]),r=(0,e.useRef)(null);return(0,e.useEffect)((function(){var e=document.createElement("div");return r.current=e,e.id=n,e.setAttribute("aria-live","assertive"),e.setAttribute("aria-atomic","true"),Gn(e.style,pl),dl().appendChild(e),function(){setTimeout((function(){var t=dl();t.contains(e)&&t.removeChild(e),e===r.current&&(r.current=null)}))}}),[n]),Gr((function(e){var t=r.current;t&&(t.textContent=e)}),[])}(n),f=function(t){var n=t.contextId,r=t.text,o=gl("hidden-text",{separator:"-"}),i=Wr((function(){return"rbd-hidden-text-"+(e={contextId:n,uniqueId:o}).contextId+"-"+e.uniqueId;var e}),[o,n]);return(0,e.useEffect)((function(){var e=document.createElement("div");return e.id=i,e.textContent=r,e.style.display="none",dl().appendChild(e),function(){var t=dl();t.contains(e)&&t.removeChild(e)}}),[i,r]),i}({contextId:n,text:a}),d=function(t,n){var r=Wr((function(){return ol(t)}),[t]),o=(0,e.useRef)(null),i=(0,e.useRef)(null),a=Gr(no((function(e){var t=i.current;t||so(!1),t.textContent=e})),[]),l=Gr((function(e){var t=o.current;t||so(!1),t.textContent=e}),[]);il((function(){(o.current||i.current)&&so(!1);var e=ll(n),u=ll(n);return o.current=e,i.current=u,e.setAttribute(Xa+"-always",t),u.setAttribute(Xa+"-dynamic",t),al().appendChild(e),al().appendChild(u),l(r.always),a(r.resting),function(){var e=function(e){var t=e.current;t||so(!1),al().removeChild(t),e.current=null};e(o),e(i)}}),[n,l,a,r.always,r.resting,t]);var u=Gr((function(){return a(r.dragging)}),[a,r.dragging]),c=Gr((function(e){a("DROP"!==e?r.userCancel:r.dropAnimating)}),[a,r.dropAnimating,r.userCancel]),s=Gr((function(){i.current&&a(r.resting)}),[a,r.resting]);return Wr((function(){return{dragging:u,dropping:c,resting:s}}),[u,c,s])}(n,i),p=Gr((function(e){Wl(l).dispatch(e)}),[]),m=Wr((function(){return er({publishWhileDragging:Vi,updateDroppableScroll:qi,updateDroppableIsEnabled:Qi,updateDroppableIsCombineEnabled:Yi,collectionStarting:$i},p)}),[p]),h=function(){var t=Wr(sl,[]);return(0,e.useEffect)((function(){return function(){requestAnimationFrame(t.clean)}}),[t]),t}(),v=Wr((function(){return Na(h,m)}),[h,m]),g=Wr((function(){return Ja(Gn({scrollWindow:ja,scrollDroppable:v.scrollDroppable},er({move:Ki},p)))}),[v.scrollDroppable,p]),y=function(t){var n=(0,e.useRef)({}),r=(0,e.useRef)(null),o=(0,e.useRef)(null),i=(0,e.useRef)(!1),a=Gr((function(e,t){var r={id:e,focus:t};return n.current[e]=r,function(){var t=n.current;t[e]!==r&&delete t[e]}}),[]),l=Gr((function(e){var n=function(e,t){var n="["+Za.contextId+'="'+e+'"]',r=Lo(document.querySelectorAll(n));if(!r.length)return null;var o=Mo(r,(function(e){return e.getAttribute(Za.draggableId)===t}));return o&&cl(o)?o:null}(t,e);n&&n!==document.activeElement&&n.focus()}),[t]),u=Gr((function(e,t){r.current===e&&(r.current=t)}),[]),c=Gr((function(){o.current||i.current&&(o.current=requestAnimationFrame((function(){o.current=null;var e=r.current;e&&l(e)})))}),[l]),s=Gr((function(e){r.current=null;var t=document.activeElement;t&&t.getAttribute(Za.draggableId)===e&&(r.current=e)}),[]);return il((function(){return i.current=!0,function(){i.current=!1;var e=o.current;e&&cancelAnimationFrame(e)}}),[]),Wr((function(){return{register:a,tryRecordFocus:s,tryRestoreFocusRecorded:c,tryShiftRecord:u}}),[a,s,c,u])}(n),b=Wr((function(){return Oa({announce:s,autoScroller:g,dimensionMarshal:v,focusMarshal:y,getResponders:c,styleMarshal:d})}),[s,g,v,y,c,d]);l.current=b;var w=Gr((function(){var e=Wl(l);"IDLE"!==e.getState().phase&&e.dispatch(ta())}),[]),E=Gr((function(){var e=Wl(l).getState();return e.isDragging||"DROP_ANIMATING"===e.phase}),[]);r(Wr((function(){return{isDragging:E,tryAbort:w}}),[E,w]));var S=Gr((function(e){return Ta(Wl(l).getState(),e)}),[]),x=Gr((function(){return Ii(Wl(l).getState())}),[]),k=Wr((function(){return{marshal:v,focus:y,contextId:n,canLift:S,isMovementAllowed:x,dragHandleUsageInstructionsId:f,registry:h}}),[n,v,f,y,S,x,h]);return zl({contextId:n,store:b,registry:h,customSensors:o,enableDefaultSensors:!1!==t.enableDefaultSensors}),(0,e.useEffect)((function(){return w}),[w]),e.createElement(yl.Provider,{value:k},e.createElement(ur,{context:fl,store:b},t.children))}var Hl=0;function Vl(t){var n=Wr((function(){return""+Hl++}),[]),r=t.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";return e.createElement(fo,null,(function(o){return e.createElement(Gl,{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},t.children)}))}var $l=function(e){return function(t){return e===t}},ql=$l("scroll"),Ql=$l("auto"),Yl=($l("visible"),function(e,t){return t(e.overflowX)||t(e.overflowY)}),Kl=function e(t){return null==t||t===document.body||t===document.documentElement?null:function(e){var t=window.getComputedStyle(e),n={overflowX:t.overflowX,overflowY:t.overflowY};return Yl(n,ql)||Yl(n,Ql)}(t)?t:e(t.parentElement)},Jl=function(e){return{x:e.scrollLeft,y:e.scrollTop}},Xl=function e(t){return!!t&&("fixed"===window.getComputedStyle(t).position||e(t.parentElement))},Zl={passive:!1},eu={passive:!0},tu=function(e){return e.shouldPublishImmediately?Zl:eu};function nu(t){var n=(0,e.useContext)(t);return n||so(!1),n}var ru=function(e){return e&&e.env.closestScrollable||null};function ou(){}var iu={width:0,height:0,margin:{top:0,right:0,bottom:0,left:0}},au=e.memo((function(t){var n=(0,e.useRef)(null),r=Gr((function(){n.current&&(clearTimeout(n.current),n.current=null)}),[]),o=t.animate,i=t.onTransitionEnd,a=t.onClose,l=t.contextId,u=(0,e.useState)("open"===t.animate),c=u[0],s=u[1];(0,e.useEffect)((function(){return c?"open"!==o?(r(),s(!1),ou):n.current?ou:(n.current=setTimeout((function(){n.current=null,s(!1)})),r):ou}),[o,c,r]);var f=Gr((function(e){"height"===e.propertyName&&(i(),"close"===o&&a())}),[o,a,i]),d=function(e){var t=e.isAnimatingOpenOnMount,n=e.placeholder,r=e.animate,o=function(e){var t=e.placeholder;return e.isAnimatingOpenOnMount||"close"===e.animate?iu:{height:t.client.borderBox.height,width:t.client.borderBox.width,margin:t.client.margin}}({isAnimatingOpenOnMount:t,placeholder:n,animate:r});return{display:n.display,boxSizing:"border-box",width:o.width,height:o.height,marginTop:o.margin.top,marginRight:o.margin.right,marginBottom:o.margin.bottom,marginLeft:o.margin.left,flexShrink:"0",flexGrow:"0",pointerEvents:"none",transition:"none"!==r?ca.placeholder:null}}({isAnimatingOpenOnMount:c,animate:t.animate,placeholder:t.placeholder});return e.createElement(t.placeholder.tagName,{style:d,"data-rbd-placeholder-context-id":l,onTransitionEnd:f,ref:t.innerRef})})),lu=e.createContext(null),uu=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=e.call.apply(e,[this].concat(r))||this).state={isVisible:Boolean(t.props.on),data:t.props.on,animate:t.props.shouldAnimate&&t.props.on?"open":"none"},t.onClose=function(){"close"===t.state.animate&&t.setState({isVisible:!1})},t}return Dt(t,e),t.getDerivedStateFromProps=function(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"}},t.prototype.render=function(){if(!this.state.isVisible)return null;var e={onClose:this.onClose,data:this.state.data,animate:this.state.animate};return this.props.children(e)},t}(e.PureComponent),cu=5e3,su=4500,fu=function(e,t){return t?ca.drop(t.duration):e?ca.snap:ca.fluid},du=function(e,t){return e?t?ia:aa:null};function pu(e){e.preventDefault()}var mu=function(e,t){return e===t},hu=function(e){var t=e.combine,n=e.destination;return n?n.droppableId:t?t.droppableId:null};function vu(e){return{isDragging:!1,isDropAnimating:!1,isClone:!1,dropAnimation:null,mode:null,draggingOver:null,combineTargetFor:e,combineWith:null}}var gu={mapped:{type:"SECONDARY",offset:wo,combineTargetFor:null,shouldAnimateDisplacement:!0,snapshot:vu(null)}},yu=Fr((function(){var e,t,n,r=(e=no((function(e,t){return{x:e,y:t}})),t=no((function(e,t,n,r,o){return{isDragging:!0,isClone:t,isDropAnimating:Boolean(o),dropAnimation:o,mode:e,draggingOver:n,combineWith:r,combineTargetFor:null}})),n=no((function(e,n,r,o,i,a,l){return{mapped:{type:"DRAGGING",dropping:null,draggingOver:i,combineWith:a,mode:n,offset:e,dimension:r,forceShouldAnimate:l,snapshot:t(n,o,i,a,null)}}})),function(r,o){if(r.isDragging){if(r.critical.draggable.id!==o.draggableId)return null;var i=r.current.client.offset,a=r.dimensions.draggables[o.draggableId],l=Ci(r.impact),u=(s=r.impact).at&&"COMBINE"===s.at.type?s.at.combine.draggableId:null,c=r.forceShouldAnimate;return n(e(i.x,i.y),r.movementMode,a,o.isClone,l,u,c)}var s;if("DROP_ANIMATING"===r.phase){var f=r.completed;if(f.result.draggableId!==o.draggableId)return null;var d=o.isClone,p=r.dimensions.draggables[o.draggableId],m=f.result,h=m.mode,v=hu(m),g=function(e){return e.combine?e.combine.draggableId:null}(m),y={duration:r.dropDuration,curve:oa,moveTo:r.newHomeClientOffset,opacity:g?ia:null,scale:g?la:null};return{mapped:{type:"DRAGGING",offset:r.newHomeClientOffset,dimension:p,dropping:y,draggingOver:v,combineWith:g,mode:h,forceShouldAnimate:null,snapshot:t(h,d,v,g,y)}}}return null}),o=function(){var e=no((function(e,t){return{x:e,y:t}})),t=no(vu),n=no((function(e,n,r){return void 0===n&&(n=null),{mapped:{type:"SECONDARY",offset:e,combineTargetFor:n,shouldAnimateDisplacement:r,snapshot:t(n)}}})),r=function(e){return e?n(wo,e,!0):null},o=function(t,o,i,a){var l=i.displaced.visible[t],u=Boolean(a.inVirtualList&&a.effected[t]),c=Ho(i),s=c&&c.draggableId===t?o:null;if(!l){if(!u)return r(s);if(i.displaced.invisible[t])return null;var f=ko(a.displacedBy.point),d=e(f.x,f.y);return n(d,s,!0)}if(u)return r(s);var p=i.displacedBy.point,m=e(p.x,p.y);return n(m,s,l.shouldAnimate)};return function(e,t){if(e.isDragging)return e.critical.draggable.id===t.draggableId?null:o(t.draggableId,e.critical.draggable.id,e.impact,e.afterCritical);if("DROP_ANIMATING"===e.phase){var n=e.completed;return n.result.draggableId===t.draggableId?null:o(t.draggableId,n.result.draggableId,n.impact,n.afterCritical)}return null}}();return function(e,t){return r(e,t)||o(e,t)||gu}}),{dropAnimationFinished:function(){return{type:"DROP_ANIMATION_FINISHED",payload:null}}},null,{context:fl,pure:!0,areStatePropsEqual:mu})((function(t){var n=(0,e.useRef)(null),r=Gr((function(e){n.current=e}),[]),o=Gr((function(){return n.current}),[]),i=nu(yl),a=i.contextId,l=i.dragHandleUsageInstructionsId,u=i.registry,c=nu(lu),s=c.type,f=c.droppableId,d=Wr((function(){return{id:t.draggableId,index:t.index,type:s,droppableId:f}}),[t.draggableId,t.index,s,f]),p=t.children,m=t.draggableId,h=t.isEnabled,v=t.shouldRespectForcePress,g=t.canDragInteractiveElements,y=t.isClone,b=t.mapped,w=t.dropAnimationFinished;y||function(t){var n=gl("draggable"),r=t.descriptor,o=t.registry,i=t.getDraggableRef,a=t.canDragInteractiveElements,l=t.shouldRespectForcePress,u=t.isEnabled,c=Wr((function(){return{canDragInteractiveElements:a,shouldRespectForcePress:l,isEnabled:u}}),[a,u,l]),s=Gr((function(e){var t=i();return t||so(!1),function(e,t,n){void 0===n&&(n=wo);var r=window.getComputedStyle(t),o=t.getBoundingClientRect(),i=Xr(o,r),a=Jr(i,n);return{descriptor:e,placeholder:{client:i,tagName:t.tagName.toLowerCase(),display:r.display},displaceBy:{x:i.marginBox.width,y:i.marginBox.height},client:i,page:a}}(r,t,e)}),[r,i]),f=Wr((function(){return{uniqueId:n,descriptor:r,options:c,getDimension:s}}),[r,s,c,n]),d=(0,e.useRef)(f),p=(0,e.useRef)(!0);il((function(){return o.draggable.register(d.current),function(){return o.draggable.unregister(d.current)}}),[o.draggable]),il((function(){if(p.current)p.current=!1;else{var e=d.current;d.current=f,o.draggable.update(f,e)}}),[f,o.draggable])}(Wr((function(){return{descriptor:d,registry:u,getDraggableRef:o,canDragInteractiveElements:g,shouldRespectForcePress:v,isEnabled:h}}),[d,u,o,g,v,h]));var E=Wr((function(){return h?{tabIndex:0,role:"button","aria-describedby":l,"data-rbd-drag-handle-draggable-id":m,"data-rbd-drag-handle-context-id":a,draggable:!1,onDragStart:pu}:null}),[a,l,m,h]),S=Gr((function(e){"DRAGGING"===b.type&&b.dropping&&"transform"===e.propertyName&&w()}),[w,b]),x=Wr((function(){var e=function(e){return"DRAGGING"===e.type?(n=(t=e).dimension.client,r=t.offset,o=t.combineWith,i=t.dropping,a=Boolean(o),l=function(e){return null!=e.forceShouldAnimate?e.forceShouldAnimate:"SNAP"===e.mode}(t),u=Boolean(i),c=u?da(r,a):fa(r),{position:"fixed",top:n.marginBox.top,left:n.marginBox.left,boxSizing:"border-box",width:n.borderBox.width,height:n.borderBox.height,transition:fu(l,i),transform:c,opacity:du(a,u),zIndex:u?su:cu,pointerEvents:"none"}):{transform:fa((s=e).offset),transition:s.shouldAnimateDisplacement?null:"none"};var t,n,r,o,i,a,l,u,c,s}(b),t="DRAGGING"===b.type&&b.dropping?S:null;return{innerRef:r,draggableProps:{"data-rbd-draggable-context-id":a,"data-rbd-draggable-id":m,style:e,onTransitionEnd:t},dragHandleProps:E}}),[a,E,m,b,S,r]),k=Wr((function(){return{draggableId:d.id,type:d.type,source:{index:d.index,droppableId:d.droppableId}}}),[d.droppableId,d.id,d.index,d.type]);return p(x,b.snapshot,k)}));function bu(t){return nu(lu).isUsingCloneFor!==t.draggableId||t.isClone?e.createElement(yu,t):null}function wu(t){var n="boolean"!=typeof t.isDragDisabled||!t.isDragDisabled,r=Boolean(t.disableInteractiveElementBlocking),o=Boolean(t.shouldRespectForcePress);return e.createElement(bu,Gn({},t,{isClone:!1,isEnabled:n,canDragInteractiveElements:r,shouldRespectForcePress:o}))}var Eu=function(e,t){return e===t.droppable.type},Su=function(e,t){return t.draggables[e.draggable.id]},xu={mode:"standard",type:"DEFAULT",direction:"vertical",isDropDisabled:!1,isCombineEnabled:!1,ignoreContainerClipping:!1,renderClone:null,getContainerForClone:function(){return document.body||so(!1),document.body}},ku=Fr((function(){var e={placeholder:null,shouldAnimatePlaceholder:!0,snapshot:{isDraggingOver:!1,draggingOverWith:null,draggingFromThisWith:null,isUsingPlaceholder:!1},useClone:null},t=Gn({},e,{shouldAnimatePlaceholder:!1}),n=no((function(e){return{draggableId:e.id,type:e.type,source:{index:e.index,droppableId:e.droppableId}}})),r=no((function(r,o,i,a,l,u){var c=l.descriptor.id;if(l.descriptor.droppableId===r){var s=u?{render:u,dragging:n(l.descriptor)}:null,f={isDraggingOver:i,draggingOverWith:i?c:null,draggingFromThisWith:c,isUsingPlaceholder:!0};return{placeholder:l.placeholder,shouldAnimatePlaceholder:!1,snapshot:f,useClone:s}}if(!o)return t;if(!a)return e;var d={isDraggingOver:i,draggingOverWith:c,draggingFromThisWith:null,isUsingPlaceholder:!0};return{placeholder:l.placeholder,shouldAnimatePlaceholder:!0,snapshot:d,useClone:null}}));return function(n,o){var i=o.droppableId,a=o.type,l=!o.isDropDisabled,u=o.renderClone;if(n.isDragging){var c=n.critical;if(!Eu(a,c))return t;var s=Su(c,n.dimensions),f=Ci(n.impact)===i;return r(i,l,f,f,s,u)}if("DROP_ANIMATING"===n.phase){var d=n.completed;if(!Eu(a,d.critical))return t;var p=Su(d.critical,n.dimensions);return r(i,l,hu(d.result)===i,Ci(d.impact)===i,p,u)}if("IDLE"===n.phase&&n.completed&&!n.shouldFlush){var m=n.completed;if(!Eu(a,m.critical))return t;var h=Ci(m.impact)===i,v=Boolean(m.impact.at&&"COMBINE"===m.impact.at.type),g=m.critical.droppable.id===i;return h?v?e:t:g?e:t}return t}}),{updateViewportMaxScroll:function(e){return{type:"UPDATE_VIEWPORT_MAX_SCROLL",payload:e}}},null,{context:fl,pure:!0,areStatePropsEqual:mu})((function(t){var n=(0,e.useContext)(yl);n||so(!1);var r=n.contextId,o=n.isMovementAllowed,i=(0,e.useRef)(null),a=(0,e.useRef)(null),l=t.children,u=t.droppableId,c=t.type,s=t.mode,f=t.direction,d=t.ignoreContainerClipping,p=t.isDropDisabled,m=t.isCombineEnabled,h=t.snapshot,v=t.useClone,g=t.updateViewportMaxScroll,b=t.getContainerForClone,w=Gr((function(){return i.current}),[]),E=Gr((function(e){i.current=e}),[]),S=(Gr((function(){return a.current}),[]),Gr((function(e){a.current=e}),[])),x=Gr((function(){o()&&g({maxScroll:Ia()})}),[o,g]);!function(t){var n=(0,e.useRef)(null),r=nu(yl),o=gl("droppable"),i=r.registry,a=r.marshal,l=bl(t),u=Wr((function(){return{id:t.droppableId,type:t.type,mode:t.mode}}),[t.droppableId,t.mode,t.type]),c=(0,e.useRef)(u),s=Wr((function(){return no((function(e,t){n.current||so(!1);var r={x:e,y:t};a.updateDroppableScroll(u.id,r)}))}),[u.id,a]),f=Gr((function(){var e=n.current;return e&&e.env.closestScrollable?Jl(e.env.closestScrollable):wo}),[]),d=Gr((function(){var e=f();s(e.x,e.y)}),[f,s]),p=Wr((function(){return ro(d)}),[d]),m=Gr((function(){var e=n.current,t=ru(e);e&&t||so(!1),e.scrollOptions.shouldPublishImmediately?d():p()}),[p,d]),h=Gr((function(e,t){n.current&&so(!1);var o=l.current,i=o.getDroppableRef();i||so(!1);var a=function(e){return{closestScrollable:Kl(e),isFixedOnPage:Xl(e)}}(i),c={ref:i,descriptor:u,env:a,scrollOptions:t};n.current=c;var s=function(e){var t=e.ref,n=e.descriptor,r=e.env,o=e.windowScroll,i=e.direction,a=e.isDropDisabled,l=e.isCombineEnabled,u=e.shouldClipSubject,c=r.closestScrollable,s=function(e,t){var n=Zr(e);if(!t)return n;if(e!==t)return n;var r=n.paddingBox.top-t.scrollTop,o=n.paddingBox.left-t.scrollLeft,i=r+t.scrollHeight,a=o+t.scrollWidth,l=Vr({top:r,right:a,bottom:i,left:o},n.border);return Qr({borderBox:l,margin:n.margin,border:n.border,padding:n.padding})}(t,c),f=Jr(s,o),d=function(){if(!c)return null;var e=Zr(c),t={scrollHeight:c.scrollHeight,scrollWidth:c.scrollWidth};return{client:e,page:Jr(e,o),scroll:Jl(c),scrollSize:t,shouldClipSubject:u}}(),p=function(e){var t=e.descriptor,n=e.isEnabled,r=e.isCombineEnabled,o=e.isFixedOnPage,i=e.direction,a=e.client,l=e.page,u=e.closest,c=function(){if(!u)return null;var e=u.scrollSize,t=u.client,n=Ca({scrollHeight:e.scrollHeight,scrollWidth:e.scrollWidth,height:t.paddingBox.height,width:t.paddingBox.width});return{pageMarginBox:u.page.marginBox,frameClient:t,scrollSize:e,shouldClipSubject:u.shouldClipSubject,scroll:{initial:u.scroll,current:u.scroll,max:n,diff:{value:wo,displacement:wo}}}}(),s="vertical"===i?Zo:ei;return{descriptor:t,isCombineEnabled:r,isFixedOnPage:o,axis:s,isEnabled:n,client:a,page:l,frame:c,subject:No({page:l,withPlaceholder:null,axis:s,frame:c})}}({descriptor:n,isEnabled:!a,isCombineEnabled:l,isFixedOnPage:r.isFixedOnPage,direction:i,client:s,page:f,closest:d});return p}({ref:i,descriptor:u,env:a,windowScroll:e,direction:o.direction,isDropDisabled:o.isDropDisabled,isCombineEnabled:o.isCombineEnabled,shouldClipSubject:!o.ignoreContainerClipping}),f=a.closestScrollable;return f&&(f.setAttribute(nl.contextId,r.contextId),f.addEventListener("scroll",m,tu(c.scrollOptions))),s}),[r.contextId,u,m,l]),v=Gr((function(){var e=n.current,t=ru(e);return e&&t||so(!1),Jl(t)}),[]),g=Gr((function(){var e=n.current;e||so(!1);var t=ru(e);n.current=null,t&&(p.cancel(),t.removeAttribute(nl.contextId),t.removeEventListener("scroll",m,tu(e.scrollOptions)))}),[m,p]),y=Gr((function(e){var t=n.current;t||so(!1);var r=ru(t);r||so(!1),r.scrollTop+=e.y,r.scrollLeft+=e.x}),[]),b=Wr((function(){return{getDimensionAndWatchScroll:h,getScrollWhileDragging:v,dragStopped:g,scroll:y}}),[g,h,v,y]),w=Wr((function(){return{uniqueId:o,descriptor:u,callbacks:b}}),[b,u,o]);il((function(){return c.current=w.descriptor,i.droppable.register(w),function(){n.current&&g(),i.droppable.unregister(w)}}),[b,u,g,w,a,i.droppable]),il((function(){n.current&&a.updateDroppableIsEnabled(c.current.id,!t.isDropDisabled)}),[t.isDropDisabled,a]),il((function(){n.current&&a.updateDroppableIsCombineEnabled(c.current.id,t.isCombineEnabled)}),[t.isCombineEnabled,a])}({droppableId:u,type:c,mode:s,direction:f,isDropDisabled:p,isCombineEnabled:m,ignoreContainerClipping:d,getDroppableRef:w});var k=e.createElement(uu,{on:t.placeholder,shouldAnimate:t.shouldAnimatePlaceholder},(function(t){var n=t.onClose,o=t.data,i=t.animate;return e.createElement(au,{placeholder:o,onClose:n,innerRef:S,animate:i,contextId:r,onTransitionEnd:x})})),O=Wr((function(){return{innerRef:E,placeholder:k,droppableProps:{"data-rbd-droppable-id":u,"data-rbd-droppable-context-id":r}}}),[r,u,k,E]),C=v?v.dragging.draggableId:null,P=Wr((function(){return{droppableId:u,type:c,isUsingCloneFor:C}}),[u,C,c]);return e.createElement(lu.Provider,{value:P},l(O,h),function(){if(!v)return null;var t=v.dragging,n=v.render,r=e.createElement(bu,{draggableId:t.draggableId,index:t.source.index,isClone:!0,isEnabled:!0,shouldRespectForcePress:!1,canDragInteractiveElements:!0},(function(e,r){return n(e,r,t)}));return y.createPortal(r,b())}())}));function Ou(e){return Ou="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},Ou(e)}function Cu(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 Pu(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Cu(Object(n),!0).forEach((function(t){var r,o,i;r=e,o=t,i=n[t],(o=function(e){var t=function(e,t){if("object"!==Ou(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!==Ou(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===Ou(t)?t:String(t)}(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)):Cu(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Iu(e,t){if(e){if("string"==typeof e)return Du(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Du(e,t):void 0}}function Du(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}ku.defaultProps=xu;var _u=window.shop_data,Ru=Array.from(_u.columns.backlog.categories.map((function(e){return e.itemIds})).flat()),Nu=function(e,t,n,r,o){var i,a=Array.from(n.items);return a.splice.apply(a,[o.index,0].concat(function(e){if(Array.isArray(e))return Du(e)}(i=r.map((function(t,n){return Pu(Pu({},e[t]),{},{id:Wn()})})))||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(i)||Iu(i)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())),a},Tu=function(e,t,n){var r,o,i=Array.from(e),a=(r=i.splice(t,1),o=1,function(e){if(Array.isArray(e))return e}(r)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],u=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);u=!0);}catch(e){c=!0,o=e}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return l}}(r,o)||Iu(r,o)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())[0];return i.splice(n,0,a),i},ju=function(e,t){var n=Array.from(e);return n.splice(t,1),n},Au=function(e,t,n,r,o){var i=arguments.length>5&&void 0!==arguments[5]&&arguments[5],a={opacity:t.isDragging?.7:1,backgroundColor:r||o?"#eae7f7":"initial"};return!i&&null==t.draggingOver&&(!t.isDragging||t.isDragging&&t.isDropAnimating)&&(e.transform="none"),t.isDropAnimating?(n&&(a.transitionDuration="0.001s"),Pu(Pu({},e),a)):Pu(Pu({},e),a)},Mu=function(e,t){var n=t.isDraggingOver;return Pu(Pu({},e),{backgroundColor:n?"#f2f2f2":"#f9f9f9",border:n?"1px dashed #ccc":"0"})},Lu=function(e){if(!e||!e.nbrCurrentSlot)return{};var t=100*e.nbrCurrentSlot/e.nbrSlotMax;return t>100&&(t=100),{width:"".concat(t,"%")}},Bu=function(e){if(!e||!e.nbrCurrentClock)return{};var t=100*e.nbrCurrentClock/e.nbrClockMax;return t>100&&(t=100),{width:"".concat(t,"%")}},Fu=function(e){return e.reduce((function(e,t){return e+(8===t.hp?2:1)}),0)};function zu(e){var 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;var o=e<0?"-":"",i=parseInt(e=Math.abs(Number(e)||0).toFixed(t)).toString(),a=i.length>3?i.length%3:0;return o+(a?i.substr(0,a)+r:"")+i.substr(a).replace(/(\d{3})(?=\d)/g,"$1"+r)+(t?n+Math.abs(e-i).toFixed(t).slice(2):"")}catch(t){return e}}function Uu(e){return Uu="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},Uu(e)}function Wu(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 Gu(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Wu(Object(n),!0).forEach((function(t){var r,o,i;r=e,o=t,i=n[t],(o=Vu(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)):Wu(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Hu(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Vu(r.key),r)}}function Vu(e){var t=function(e,t){if("object"!==Uu(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!==Uu(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===Uu(t)?t:String(t)}function $u(e,t){return $u=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},$u(e,t)}function qu(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Qu(e){return Qu=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Qu(e)}var Yu=function(t){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&$u(e,t)}(c,t);var n,r,i,a,l,u=(a=c,l=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=Qu(a);if(l){var n=Qu(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"===Uu(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return qu(e)}(this,e)});function c(e){var t;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,c),(t=u.call(this,e)).state={customconf:"",error:null},t.handleCustomConfig=t.handleCustomConfig.bind(qu(t)),t.handleClickLoad=t.handleClickLoad.bind(qu(t)),t.checkValidation=t.checkValidation.bind(qu(t));var n=Object.keys(e.items);return t.list_pn=n.map((function(t){return e.items[t].name_number})),t}return n=c,i=[{key:"propTypes",get:function(){return{aside:o().any,main:o().any,mobileSideMenuShouldOpen:o().bool,isMobile:o().bool,newCardJustAdded:o().bool,onClickToggleMobileSideMenu:o().func,onClickCloseRFQFeedback:o().func,RFQBodyType:o().string,RFQBodyOrder:o().string,onClickLoadCustomConf:o().func,items:o().object}}},{key:"defaultProps",get:function(){return{mobileSideMenuShouldOpen:!1}}}],(r=[{key:"handleCustomConfig",value:function(e){var t=e.target.value;this.checkValidation(t)}},{key:"checkValidation",value:function(e){var t;try{t=JSON.parse(e)}catch(t){return this.setState(Gu(Gu({},this.state),{},{customconf:e,customconf_ready:null,error:"invalid format"}))}if(!t)return this.setState(Gu(Gu({},this.state),{},{customconf:e,customconf_ready:null,error:"invalid format"}));if(!(t.items&&t.type||"[object Array]"===Object.prototype.toString.call(t.items)&&"[object String]"===Object.prototype.toString.call(t.type)))return this.setState(Gu(Gu({},this.state),{},{customconf:e,customconf_ready:null,error:"invalid format"}));if("desktop"!==t.type&&"rack"!==t.type)return this.setState(Gu(Gu({},this.state),{},{customconf:e,customconf_ready:null,error:"invalid format"}));if(t.items.map((function(e){try{return JSON.parse(e)}catch(e){return null}})),t.items=t.items.filter((function(e){return e})),t.items.filter((function(e){return"[object Object]"!==Object.prototype.toString.call(e)||!e.pn||"[object String]"!==Object.prototype.toString.call(e.pn)})).length>0)return this.setState(Gu(Gu({},this.state),{},{customconf:e,customconf_ready:null,error:"invalid format"}));t.items=t.items.map((function(e){return{pn:e.pn,options:e.options?e.options:null}}));var n=this,r=t.items.filter((function(e){return!1===n.list_pn.includes(e.pn)})).map((function(e){return e.pn}));if(r.length>0)return this.setState(Gu(Gu({},this.state),{},{customconf:e,customconf_ready:null,error:"".concat(r.join(", ")," unknown").concat(r.length>1?"s":""," pn number")}));this.setState(Gu(Gu({},this.state),{},{customconf:e,error:null,customconf_ready:t}))}},{key:"handleClickLoad",value:function(){this.checkValidation(this.state.customconf),this.props.onClickLoadCustomConf&&this.props.onClickLoadCustomConf(this.state.customconf_ready)}},{key:"render",value:function(){var t=this.props,n=t.aside,r=t.main,o=t.mobileSideMenuShouldOpen,i=t.isMobile,a=t.newCardJustAdded,l=t.onClickToggleMobileSideMenu,u=t.onClickCloseRFQFeedback,c=t.showRFQFeedback,s=t.RFQBodyType,f=t.RFQBodyOrder;return e.createElement("div",{className:"layout"},e.createElement("aside",{className:"aside "+(o?"menu-opened":"")},n),o?e.createElement("section",{className:"main",onClick:l},r):e.createElement("section",{className:"main"},r),i&&a?e.createElement("div",{className:"feedback-add-success"},"✓ added"):null,e.createElement("div",{className:"modal fade ".concat(c?"show":""),style:{display:c?"block":"none"},id:"exampleModal",tabIndex:"-1",role:"dialog","aria-labelledby":"exampleModalLabel","aria-hidden":"true"},e.createElement("div",{className:"modal-dialog",role:"document"},e.createElement("div",{className:"modal-content"},e.createElement("div",{className:"modal-body rfqFeedback"},e.createElement("div",{className:"d-flex w-100"},"email"===s?e.createElement("div",{className:"d-flex"},e.createElement("div",null,e.createElement("img",{width:"30px",src:"/images/shop/icon-done.svg",alt:"close"})),e.createElement("div",{style:{padding:"0 .5em"}},"We've received your request and will be in contact soon.")):null,"show"===s?e.createElement("p",null,f):null,"import"===s?e.createElement("div",{className:"w-100"},e.createElement("form",{className:"w-100"},e.createElement("div",{className:"mb-3"},e.createElement("p",{className:"small"},"Input the JSON description below. Should be something like:",e.createElement("br",null),JSON.stringify({items:[{pn:"1124"},{pn:"2118"},{pn:"2118"},{pn:"2128"}],type:"desktop"}))),e.createElement("div",{className:"mb-3 w-100"},e.createElement("textarea",{onChange:this.handleCustomConfig,value:this.state.customconf,className:"form-control w-100",rows:"5",placeholder:"Input JSON description here."})),this.state.error?e.createElement("div",{className:"mb-3"},e.createElement("p",{className:"text-danger"},this.state.error)):null),e.createElement("div",{className:"d-flex flex-column flex-sm-row justify-content-end"},e.createElement("a",{type:"button",onClick:u,className:"btn btn-sm btn-outline-primary m-0 mb-2 mb-sm-0 me-sm-2"},"Close"),e.createElement("a",{type:"button",onClick:this.handleClickLoad,className:"btn btn-sm btn-primary m-0 ms-sm-2 ".concat(this.state.error?"disabled":"")},"Load configuration"))):null,e.createElement("div",null,e.createElement("button",{onClick:u},e.createElement("img",{src:"/images/shop/icon-close.svg",alt:"close"})))))))),e.createElement("div",{onClick:u,className:"modal-backdrop fade ".concat(c?"show":""),style:{display:c?"initial":"none"}}))}}])&&Hu(n.prototype,r),i&&Hu(n,i),Object.defineProperty(n,"prototype",{writable:!1}),c}(e.PureComponent);function Ku(e){return Ku="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},Ku(e)}function Ju(){return Ju=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},Ju.apply(this,arguments)}function Xu(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(void 0,o=function(e,t){if("object"!==Ku(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!==Ku(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(r.key),"symbol"===Ku(o)?o:String(o)),r)}var o}function Zu(e,t){return Zu=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Zu(e,t)}function ec(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function tc(e){return tc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},tc(e)}var nc=function(t){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Zu(e,t)}(c,t);var n,r,i,a,l,u=(a=c,l=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=tc(a);if(l){var n=tc(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"===Ku(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return ec(e)}(this,e)});function c(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,c),(t=u.call(this,e)).handleOnClickAddItem=t.handleOnClickAddItem.bind(ec(t)),t}return n=c,i=[{key:"propTypes",get:function(){return{id:o().string.isRequired,index:o().number.isRequired,name:o().string.isRequired,name_codename:o().string,price:o().number.isRequired,currency:o().string.isRequired,image:o().string.isRequired,specs:o().array,datasheet_file:o().string,datasheet_name:o().string,onClickAddItem:o().func}}}],(r=[{key:"handleOnClickAddItem",value:function(e,t,n){this.props.onClickAddItem&&this.props.onClickAddItem(e,t),n.preventDefault()}},{key:"render",value:function(){var t=this.props,n=t.id,r=t.index,o=t.name,i=t.name_codename,a=t.price,l=t.currency,u=t.image,c=t.specs,s=t.datasheet_file,f=t.datasheet_name,d=c&&c.length>0&&e.createElement("ul",null,c.map((function(t,n){return e.createElement("li",{key:n},t)}))),p=s&&f&&e.createElement("div",{className:"ds"},e.createElement("span",{className:"doc-icon"}),e.createElement("a",{href:s,target:"_blank",rel:"noopener noreferrer"},f));return e.createElement("section",{className:"productItem"},e.createElement("div",{className:"content"},e.createElement("h3",{style:{marginBottom:i?"5px":"20px"}},o),i?e.createElement("p",null,i):null,e.createElement("div",{className:"price"},"".concat(l," ").concat(zu(a))),d,p),e.createElement("div",{className:"content"},e.createElement("button",{onClick:this.handleOnClickAddItem.bind(this,r,!0)},e.createElement("img",{src:"/images/shop/icon-add.svg",alt:"add"})),e.createElement(wu,{draggableId:n,index:r},(function(t,n){return e.createElement(e.Fragment,null,e.createElement("img",Ju({ref:t.innerRef},t.draggableProps,t.dragHandleProps,{style:Au(t.draggableProps.style,n,!0),src:u})),n.isDragging&&e.createElement("img",{className:"simclone",src:u}))}))))}}])&&Xu(n.prototype,r),i&&Xu(n,i),Object.defineProperty(n,"prototype",{writable:!1}),c}(e.PureComponent);function rc(e){return rc="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},rc(e)}function oc(){return oc=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},oc.apply(this,arguments)}function ic(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(void 0,o=function(e,t){if("object"!==rc(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!==rc(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(r.key),"symbol"===rc(o)?o:String(o)),r)}var o}function ac(e,t){return ac=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},ac(e,t)}function lc(e){return lc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},lc(e)}var uc=function(t){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ac(e,t)}(c,t);var n,r,i,a,l,u=(a=c,l=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=lc(a);if(l){var n=lc(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"===rc(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function c(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,c),u.apply(this,arguments)}return n=c,r=[{key:"render",value:function(){var t=this.props,n=t.currency,r=t.data,o=t.items,i=t.onClickAddItem,a=t.onClickToggleMobileSideMenu,l=t.isMobile,u=r.categories.map((function(e){return{name:e.name,items:e.itemIds.map((function(e){return o[e]}))}})),c=-1,s=u.map((function(t,r){return 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(r),"aria-expanded":"true","aria-controls":"collapse".concat(r)},t.name)),e.createElement("div",{id:"collapse".concat(r),className:"accordion-collapse collapse","aria-labelledby":"headingOne","data-bs-parent":"#accordion_categories"},e.createElement("div",{className:"accordion-body"},t.items.map((function(t){return c++,e.createElement(nc,{key:t.id,id:Wn(),index:c,name:"".concat(t.name_number," ").concat(t.name),name_codename:t.name_codename,price:t.price,currency:n,image:"/images/".concat(t.image),specs:t.specs,datasheet_file:t.datasheet_file,datasheet_name:t.datasheet_name,onClickAddItem:i})})))))}));return e.createElement(ku,{droppableId:r.id,isDropDisabled:!0},(function(t){return e.createElement("div",oc({className:"backlog-container",ref:t.innerRef},t.droppableProps),l?e.createElement("div",{className:"mobileCloseMenu"},e.createElement("button",{onClick:a},e.createElement("img",{src:"/images/shop/icon-close-white.svg",alt:"add"}))):null,e.createElement("div",{className:"accordion accordion-flush",id:"accordion_categories"},s),t.placeholder&&e.createElement("div",{style:{display:"none"}},t.placeholder))}))}}],i=[{key:"propTypes",get:function(){return{currency:o().string,data:o().object.isRequired,items:o().object,isMobile:o().bool,onClickAddItem:o().func,onClickToggleMobileSideMenu:o().func}}},{key:"defaultProps",get:function(){return{items:{}}}}],r&&ic(n.prototype,r),i&&ic(n,i),Object.defineProperty(n,"prototype",{writable:!1}),c}(e.PureComponent);function cc(e){return cc="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},cc(e)}function sc(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(void 0,o=function(e,t){if("object"!==cc(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!==cc(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(r.key),"symbol"===cc(o)?o:String(o)),r)}var o}function fc(e,t){return fc=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},fc(e,t)}function dc(e){return dc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},dc(e)}var pc=function(t){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&fc(e,t)}(c,t);var n,r,i,a,l,u=(a=c,l=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=dc(a);if(l){var n=dc(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"===cc(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function c(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,c),u.apply(this,arguments)}return n=c,i=[{key:"propTypes",get:function(){return{title:o().string,description:o().element,crateMode:o().element,crate:o().element,summaryPrice:o().element,form:o().element,isMobile:o().bool,onClickToggleMobileSideMenu:o().func,onClickOpenImport:o().func}}}],(r=[{key:"render",value:function(){var t=this.props,n=t.title,r=t.description,o=t.crateMode,i=t.crate,a=t.summaryPrice,l=t.form,u=t.isMobile,c=t.onClickToggleMobileSideMenu,s=t.onClickOpenImport;return e.createElement("section",{className:"panel"},e.createElement("h2",null,n),e.createElement("div",{className:"control"},r,o),e.createElement("div",null,e.createElement("button",{className:"btn btn-sm btn-outline-primary m-0 mb-2",style:{cursor:"pointer"},onClick:s},"Import JSON")),u?e.createElement("div",{className:"mobileBtnDisplaySideMenu"},e.createElement("button",{onClick:c},e.createElement("img",{src:"/images/shop/icon-add.svg",alt:"add"}))):null,i,e.createElement("section",{className:"summary"},a,l))}}])&&sc(n.prototype,r),i&&sc(n,i),Object.defineProperty(n,"prototype",{writable:!1}),c}(e.PureComponent);function mc(e){return mc="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},mc(e)}function hc(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(void 0,o=function(e,t){if("object"!==mc(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!==mc(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(r.key),"symbol"===mc(o)?o:String(o)),r)}var o}function vc(e,t){return vc=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},vc(e,t)}function gc(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function yc(e){return yc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},yc(e)}var bc=function(t){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&vc(e,t)}(c,t);var n,r,i,a,l,u=(a=c,l=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=yc(a);if(l){var n=yc(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"===mc(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return gc(e)}(this,e)});function c(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,c),(t=u.call(this,e)).handleOnClickMode=t.handleOnClickMode.bind(gc(t)),t}return n=c,i=[{key:"propTypes",get:function(){return{items:o().array.isRequired,mode:o().string.isRequired,onClickMode:o().func}}}],(r=[{key:"handleOnClickMode",value:function(e,t){this.props.onClickMode&&this.props.onClickMode(e),t.preventDefault()}},{key:"render",value:function(){var t=this,n=this.props,r=n.mode,o=n.items;return e.createElement("div",{className:"crate-mode"},o.map((function(n){return e.createElement("a",{key:n.id,className:r==n.id?"active":"",onClick:t.handleOnClickMode.bind(t,n.id),href:"#",role:"button"},n.name)})))}}])&&hc(n.prototype,r),i&&hc(n,i),Object.defineProperty(n,"prototype",{writable:!1}),c}(e.PureComponent);function wc(e){return wc="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},wc(e)}function Ec(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(void 0,o=function(e,t){if("object"!==wc(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!==wc(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(r.key),"symbol"===wc(o)?o:String(o)),r)}var o}function Sc(e,t){return Sc=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Sc(e,t)}function xc(e){return xc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},xc(e)}var kc=function(t){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Sc(e,t)}(c,t);var n,r,i,a,l,u=(a=c,l=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=xc(a);if(l){var n=xc(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"===wc(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function c(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,c),u.apply(this,arguments)}return n=c,i=[{key:"propTypes",get:function(){return{rules:o().array,cart:o().element}}}],(r=[{key:"render",value:function(){var t=this.props,n=t.rules,r=t.cart;return e.createElement("div",{className:"crate"},e.createElement("div",{className:"crate-products"},r,n&&n.length>0&&e.createElement("div",{className:"crate-info"},n.map((function(t,n){return e.createElement("p",{key:n,className:"rule",style:{color:t.color?t.color:"inherit"}},e.createElement("img",{src:"/images".concat(t.icon)})," ",e.createElement("i",null,e.createElement("strong",null,t.name,":")," ",t.message))})))))}}])&&Ec(n.prototype,r),i&&Ec(n,i),Object.defineProperty(n,"prototype",{writable:!1}),c}(e.PureComponent);function Oc(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 Cc(e){var t=e.options,n=e.data,r=e.target,o=e.id,i=An(t);return"array"===i?Array.from(t.map((function(e,t){return Cc({options:e,data:n,target:r,id:o+t})}))):"object"===i?"string"!==An(t.type)||"object"!==An(t.args)&&"array"!==An(t.items)?Cc({options:a().apply(t,n),data:n,target:r,id:o}):t.type in jn?jn[t.type](r,o+t.type,n,t.args):"Group"===t.type?React.createElement("div",{className:"border rounded",key:o+"group"},Cc({options:a().apply(t.items,n),data:n,target:r,id:o})):jn.Default(t.type,o+"missing"):void 0}function Pc(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Ic(t){var n,r,o=t.options,i=t.data,a=t.target,l=t.id,u=t.big,c=t.first,s=t.last,f=t.options_class,d=(n=(0,e.useState)(!1),r=2,function(e){if(Array.isArray(e))return e}(n)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],u=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);u=!0);}catch(e){c=!0,o=e}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return l}}(n,r)||function(e,t){if(e){if("string"==typeof e)return Pc(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Pc(e,t):void 0}}(n,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),p=d[0],m=d[1],h=Oc((function(e){"mousedown"===e.type&&m(!1)})),v="overlayVariant border rounded ".concat(u?"overlay-bigcard":"overlay-smallcard"," ").concat(!u&&c?"overlay-first":""," ").concat(!u&&s?"overlay-last":""," ").concat(f||"");return e.createElement("div",{ref:h},e.createElement("img",{className:"alert-info",src:p?"/images/shop/icon-close.svg":"/images/shop/icon-customize.svg",onClick:function(e){m(!p)}}),e.createElement("div",{style:{display:p?"flex":"none"},className:v},e.createElement(Cc,{options:o,data:i,key:"processed_options_"+l,id:"processed_options_"+l,target:a})))}function Dc(e){return Dc="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},Dc(e)}var _c=["arrowProps","hasDoneInitialMeasure","show"],Rc=["arrowProps","hasDoneInitialMeasure","show"];function Nc(){return Nc=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},Nc.apply(this,arguments)}function Tc(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function jc(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 Ac(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?jc(Object(n),!0).forEach((function(t){var r,o,i;r=e,o=t,i=n[t],(o=Lc(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)):jc(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Mc(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Lc(r.key),r)}}function Lc(e){var t=function(e,t){if("object"!==Dc(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!==Dc(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===Dc(t)?t:String(t)}function Bc(e,t){return Bc=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Bc(e,t)}function Fc(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function zc(e){return zc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},zc(e)}var Uc=function(t){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Bc(e,t)}(c,t);var n,r,i,a,l,u=(a=c,l=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=zc(a);if(l){var n=zc(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"===Dc(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Fc(e)}(this,e)});function c(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,c),(t=u.call(this,e)).handleOnMouseEnterRemoveItem=t.handleOnMouseEnterRemoveItem.bind(Fc(t)),t.handleOnMouseLeaveRemoveItem=t.handleOnMouseLeaveRemoveItem.bind(Fc(t)),t.handleOnClickRemoveItem=t.handleOnClickRemoveItem.bind(Fc(t)),t.handleOnClickItem=t.handleOnClickItem.bind(Fc(t)),t}return n=c,r=[{key:"handleOnMouseEnterRemoveItem",value:function(e,t){this.props.onToggleOverlayRemove&&!this.props.isMobile&&this.props.onToggleOverlayRemove(e,!0),t.preventDefault()}},{key:"handleOnMouseLeaveRemoveItem",value:function(e,t){this.props.onToggleOverlayRemove&&!this.props.isMobile&&this.props.onToggleOverlayRemove(e,!1),t.preventDefault()}},{key:"handleOnClickItem",value:function(e,t){this.props.onClickItem&&this.props.isTouch&&this.props.onClickItem(e),t.preventDefault()}},{key:"handleOnClickRemoveItem",value:function(e,t){this.props.onClickRemoveItem&&this.props.onClickRemoveItem(e)}},{key:"render",value:function(){var t,n,r,o,i=this,a=this.props,l=a.hovered,u=a.model,c=a.data,s=a.index,f=a.first,d=a.last,p=a.ext_data,m=a.onCardUpdate;if(c&&c.warnings){var h=Object.keys(c.warnings);h&&h.length>0&&(t=c.warnings[h[0]])}if(c&&c.options&&(n=c.options,c.options_data||(c.options_data={}),(r=c.options_data).ext_data=p),c)switch(u.type){case"kasli":o=[e.createElement("p",{key:u.type+u.id+"EEM"},"".concat(c.nbrCurrentSlot,"/").concat(u.nbrSlotMax," EEM connectors used")),e.createElement("p",{key:u.type+u.id+"CLK"},"".concat(c.nbrCurrentClock,"/").concat(u.nbrClockMax," Clock connectors used"))];break;case"vhdcicarrier":o=e.createElement("p",null,"".concat(c.nbrCurrentSlot,"/").concat(u.nbrSlotMax," EEM connectors used"));break;case"zotino":case"hd68":o=e.createElement("p",null,"".concat(c.nbrCurrentSlot,"/").concat(u.nbrSlotMax," connectors used"));break;case"clocker":o=e.createElement("p",null,"".concat(c.nbrCurrentClock,"/").concat(u.nbrClockMax," Clock connectors used"))}return e.createElement(wu,{draggableId:u.id,index:s},(function(a,p){return e.createElement("div",Nc({ref:a.innerRef},a.draggableProps,a.dragHandleProps,{style:Ac({},Au(a.draggableProps.style,p,!0,!!l,!!u.selected,!0)),onMouseEnter:i.handleOnMouseEnterRemoveItem.bind(i,s),onMouseLeave:i.handleOnMouseLeaveRemoveItem.bind(i,s)}),e.createElement("div",{className:"progress-container warning d-flex justify-content-evenly"},t&&e.createElement(tn,{placement:"bottom",trigger:["click","hover","focus"],overlay:function(n){n.arrowProps,n.hasDoneInitialMeasure,n.show;var r=Tc(n,_c);return e.createElement("div",Nc({className:"k-popup-warning"},r),e.createElement("p",{className:"rule warning"},e.createElement("i",null,t.message)))},rootClose:!0},e.createElement("img",{className:"alert-warning",src:"/images".concat(t.icon)})),n&&e.createElement(Ic,{options:n,data:r,options_class:u.options_class,key:"popover"+s,id:"popover"+s,big:"big"===u.size,first:f,last:d,target:{construct:function(e,t){r[e]=t},update:function(e,t){e in r&&(r[e]=t),m()}}})),e.createElement("h6",null,u.name_number),e.createElement("div",{onMouseEnter:i.handleOnMouseEnterRemoveItem.bind(i,s),onClick:i.handleOnClickItem.bind(i,s)},e.createElement("img",{className:"item-cart",src:"/images".concat(u.image)})),e.createElement("div",{style:{display:u.showOverlayRemove?"flex":"none"},className:"overlayRemove",onClick:i.handleOnClickRemoveItem.bind(i,s)},e.createElement("img",{src:"/images/shop/icon-remove.svg",alt:"rm"}),e.createElement("p",null,"Remove")),o&&e.createElement(tn,{placement:"top",trigger:["click","hover","focus"],overlay:function(t){t.arrowProps,t.hasDoneInitialMeasure,t.show;var n=Tc(t,Rc);return e.createElement("div",Nc({className:"k-popup-connectors"},n),o)},rootClose:!0},e.createElement("div",{className:"progress-container"},u.nbrSlotMax>0&&e.createElement("div",{className:"nbr-connectors"},e.createElement("div",{style:Ac({},Lu(c))})),u.nbrClockMax>0&&e.createElement("div",{className:"nbr-clocks"},e.createElement("div",{style:Ac({},Bu(c))})))))}))}}],i=[{key:"propTypes",get:function(){return{isMobile:o().bool,isTouch:o().bool,hovered:o().bool,first:o().bool,last:o().bool,index:o().number.isRequired,model:o().object.isRequired,data:o().object,ext_data:o().object,onToggleOverlayRemove:o().func,onClickRemoveItem:o().func,onClickItem:o().func,onCardUpdate:o().func}}},{key:"defaultProps",get:function(){return{hovered:!1}}}],r&&Mc(n.prototype,r),i&&Mc(n,i),Object.defineProperty(n,"prototype",{writable:!1}),c}(e.PureComponent);function Wc(e){return Wc="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},Wc(e)}function Gc(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(void 0,o=function(e,t){if("object"!==Wc(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!==Wc(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(r.key),"symbol"===Wc(o)?o:String(o)),r)}var o}function Hc(e,t){return Hc=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Hc(e,t)}function Vc(e){return Vc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Vc(e)}var $c=function(t){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Hc(e,t)}(c,t);var n,r,i,a,l,u=(a=c,l=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=Vc(a);if(l){var n=Vc(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"===Wc(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function c(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,c),u.apply(this,arguments)}return n=c,i=[{key:"propTypes",get:function(){return{isDraggingOver:o().bool,nbrSlots:o().number.isRequired,items:o().array.isRequired}}}],(r=[{key:"render",value:function(){for(var t=this.props,n=t.isDraggingOver,r=t.nbrSlots,o=t.items,i=[],a=r-Fu(o);a>0;a--)i.push(e.createElement("div",{key:a,style:{display:n?"none":"block",border:"1px dashed #ccc",width:"45px",marginBottom:"5px"}}));return e.createElement(e.Fragment,null,i)}}])&&Gc(n.prototype,r),i&&Gc(n,i),Object.defineProperty(n,"prototype",{writable:!1}),c}(e.PureComponent);function qc(e){return qc="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},qc(e)}function Qc(){return Qc=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},Qc.apply(this,arguments)}function Yc(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(void 0,o=function(e,t){if("object"!==qc(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!==qc(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(r.key),"symbol"===qc(o)?o:String(o)),r)}var o}function Kc(e,t){return Kc=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Kc(e,t)}function Jc(e){return Jc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Jc(e)}var Xc=function(t){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Kc(e,t)}(c,t);var n,r,i,a,l,u=(a=c,l=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=Jc(a);if(l){var n=Jc(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"===qc(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function c(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,c),u.apply(this,arguments)}return n=c,r=[{key:"render",value:function(){var t=this.props,n=t.isMobile,r=t.isTouch,o=t.nbrSlots,i=t.itemHovered,a=t.data,l=t.onToggleOverlayRemove,u=t.onClickRemoveItem,c=t.onClickItem,s=t.onCardUpdate,f=Fu(a.items),d=a.items.map((function(t,d){var p,m=function(e,t){return{has_other_dio:e.filter((function(e,n){return t!==n&&e.name&&e.name.endsWith("-TTL")})).length>0,has_dds:e.filter((function(e,t){return!("DDS"!==e.name||"4410"!==e.name_number||e.options_data&&e.options_data.mono_eem)})).length>0,has_sampler:e.filter((function(e,t){return!("Sampler"!==e.name||e.options_data&&e.options_data.mono_eem)})).length>0}}(a.itemsData,d);return a.itemsData&&d in a.itemsData&&(p=a.itemsData[d]),e.createElement(Uc,{isMobile:n,isTouch:r,hovered:t.id===i,key:t.id,id:t.id,index:d,first:0===d,last:d===a.items.length-1&&f>=o,data:p,ext_data:m,onToggleOverlayRemove:l,onClickRemoveItem:u,onCardUpdate:s,onClickItem:c,model:t})}));return e.createElement(ku,{droppableId:a.id,direction:"horizontal"},(function(t,n){return e.createElement("div",Qc({ref:t.innerRef},t.droppableProps,{style:Mu(t.droppableProps.style,n),className:"items-cart-list"}),d,t.placeholder&&e.createElement("div",{style:{display:"none"}},t.placeholder),e.createElement($c,{nbrSlots:o,items:a.items,isDraggingOver:n.isDraggingOver}))}))}}],i=[{key:"propTypes",get:function(){return{isMobile:o().bool,isTouch:o().bool,nbrSlots:o().number,itemHovered:o().string,data:o().object.isRequired,onToggleOverlayRemove:o().func,onClickRemoveItem:o().func,onCardUpdate:o().func,onClickItem:o().func}}}],r&&Yc(n.prototype,r),i&&Yc(n,i),Object.defineProperty(n,"prototype",{writable:!1}),c}(e.PureComponent);function Zc(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],u=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);u=!0);}catch(e){c=!0,o=e}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return es(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?es(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function es(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function ts(t){var n=t.id,r=t.options,o=t.data,i=Zc((0,e.useState)(!1),2),a=i[0],l=i[1],u=Zc((0,e.useState)({x:0,y:0}),2),c=u[0],s=u[1],f=Zc((0,e.useState)({w:0,h:0}),2),d=f[0],p=f[1],m=Mn(r,o),h=function(){l(!1),document.removeEventListener("scroll",y,!0)},v=Oc(h),g=function(){var e=document.getElementById(n+"img");if(e){var t=e.getBoundingClientRect(),r=(t.left+t.right)/2,o=(t.top+t.bottom)/2;r+d.w>window.innerWidth?s({x:r-d.w-20,y:o-d.h/2}):s({x:r-d.w/2,y:o-d.h-20})}else document.removeEventListener("scroll",y,!0)},y=function(e){e.target!==document.getElementById(n)&&h()};return(0,e.useEffect)((function(){if(a){var e=document.getElementById(n),t=e.offsetWidth,r=e.offsetHeight;p({w:t,h:r}),g()}}),[a]),(0,e.useEffect)((function(){a&&g()}),[a,d]),e.createElement("div",{ref:v},e.createElement("img",{className:"alert-info",src:a?"/images/shop/icon-close.svg":"/images/shop/icon-customize.svg",id:n+"img",onClick:function(e){l(!a),a||document.addEventListener("scroll",y,!0)}}),e.createElement("div",{style:{display:a?"flex":"none",top:c.y,left:c.x},className:"overlayVariant card border rounded",id:n},e.createElement("div",{className:"card-body"},Array.from(Object.entries(m).filter((function(e,t){var n=Zc(e,2),r=n[0];return n[1],"ext_data"!==r})).map((function(t,r){var o=Zc(t,2),i=o[0],a=o[1];return e.createElement("p",{className:"card-text",key:n+i},e.createElement("i",null,i),": ",function(e){var t=An(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 ns(e){return ns="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},ns(e)}function rs(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(void 0,o=function(e,t){if("object"!==ns(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!==ns(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(r.key),"symbol"===ns(o)?o:String(o)),r)}var o}function os(e,t){return os=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},os(e,t)}function is(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function as(e){return as=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},as(e)}var ls=function(t){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&os(e,t)}(c,t);var n,r,i,a,l,u=(a=c,l=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=as(a);if(l){var n=as(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"===ns(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return is(e)}(this,e)});function c(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,c),(t=u.call(this,e)).handleOnDeleteItem=t.handleOnDeleteItem.bind(is(t)),t.handleOnDeleteAllItems=t.handleOnDeleteAllItems.bind(is(t)),t.handleOnMouseEnterItem=t.handleOnMouseEnterItem.bind(is(t)),t.handleOnMouseLeaveItem=t.handleOnMouseLeaveItem.bind(is(t)),t.handleOnClickSelectItem=t.handleOnClickSelectItem.bind(is(t)),t}return n=c,r=[{key:"handleOnDeleteItem",value:function(e,t){this.props.onDeleteItem&&this.props.onDeleteItem(e),t.preventDefault()}},{key:"handleOnDeleteAllItems",value:function(e){this.props.onDeleteAllItems&&this.props.onDeleteAllItems(),e.preventDefault()}},{key:"handleOnMouseEnterItem",value:function(e,t){this.props.onMouseEnterItem&&this.props.onMouseEnterItem(e),t.preventDefault()}},{key:"handleOnMouseLeaveItem",value:function(e){this.props.onMouseLeaveItem&&this.props.onMouseLeaveItem(),e.preventDefault()}},{key:"handleOnClickSelectItem",value:function(e,t){return"IMG"!==t.target.tagName&&this.props.onClickSelectItem&&this.props.onClickSelectItem(e),t.preventDefault()}},{key:"render",value:function(){var t=this,n=this.props,r=n.currency,o=n.modes,i=n.currentMode,a=n.summary,l=n.itemsData,u=o.find((function(e){return e.id===i}));return e.createElement("div",{className:"summary-price"},e.createElement("table",null,e.createElement("thead",null,e.createElement("tr",null,e.createElement("td",{colSpan:"2",className:"summary-remove-all"},e.createElement("span",{className:"item-card-name"},"Remove all cards"),e.createElement("button",{onClick:this.handleOnDeleteAllItems},e.createElement("img",{src:"/images/shop/icon-remove.svg"})))),u&&e.createElement("tr",null,e.createElement("td",{className:"item-card-name"},u.name),e.createElement("td",{className:"price"},e.createElement("div",null,"".concat(r," ").concat(zu(u.price)),e.createElement("button",{style:{opacity:"0",cursor:"initial"}},e.createElement("img",{src:"/images/shop/icon-remove.svg"}))),e.createElement("span",{style:{display:"inline-block",width:"30px"}}," ")))),e.createElement("tbody",null,a.map((function(n,o){var i,a,u,c;if(l[o]&&l[o].warnings){i=l[o];var s=Object.keys(i.warnings);s&&s.length>0&&(a=i.warnings[s[0]])}return u=l[o]&&l[o].options,c=l[o]&&l[o].options_data,e.createElement("tr",{key:n.id,className:"hoverable ".concat(n.selected?"selected":""),onClick:t.handleOnClickSelectItem.bind(t,o),onMouseEnter:t.handleOnMouseEnterItem.bind(t,n.id),onMouseLeave:t.handleOnMouseLeaveItem},e.createElement("td",{className:"item-card-name"},e.createElement("div",null,"".concat(n.name_number," ").concat(n.name," ").concat(n.name_codename))),e.createElement("td",{className:"price"},e.createElement("div",{className:"d-inline-flex align-content-center"},"".concat(r," ").concat(zu(n.price)),e.createElement("button",{onClick:t.handleOnDeleteItem.bind(t,o)},e.createElement("img",{src:"/images/shop/icon-remove.svg"})),e.createElement("div",{style:{width:"45px",height:"20px"},className:"d-inline-flex align-content-center align-self-center justify-content-evenly"},a?e.createElement("img",{className:"alert-warning align-self-start",src:"/images/".concat(a.icon)}):e.createElement("span",{style:{display:"inline-block",width:"20px"}}," "),u&&c?e.createElement(ts,{id:n.id+"options",options:u,data:c}):e.createElement("span",{style:{display:"inline-block",width:"20px"}}," ")))))}))),e.createElement("tfoot",null,e.createElement("tr",null,e.createElement("td",{className:"item-card-name"},"Price estimate"),e.createElement("td",{className:"price"},e.createElement("div",null,a.length?"".concat(r," ").concat(zu(a.reduce((function(e,t){return e+t.price}),0)+u.price)):"".concat(r," ").concat(zu(u.price)),e.createElement("button",{style:{opacity:"0",cursor:"initial"}},e.createElement("img",{src:"/images/shop/icon-remove.svg",alt:"icon remove"}))),e.createElement("span",{style:{display:"inline-block",width:"30px"}}," "))))))}}],i=[{key:"propTypes",get:function(){return{currency:o().string,modes:o().array,currentMode:o().string,summary:o().array,itemsData:o().array,onDeleteItem:o().func,onDeleteAllItems:o().func,onMouseEnterItem:o().func,onMouseLeaveItem:o().func,onClickSelectItem:o().func}}}],r&&rs(n.prototype,r),i&&rs(n,i),Object.defineProperty(n,"prototype",{writable:!1}),c}(e.PureComponent);function us(e){return us="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},us(e)}function cs(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 ss(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?cs(Object(n),!0).forEach((function(t){fs(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):cs(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function fs(e,t,n){return(t=ps(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ds(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,ps(r.key),r)}}function ps(e){var t=function(e,t){if("object"!==us(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!==us(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===us(t)?t:String(t)}function ms(e,t){return ms=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},ms(e,t)}function hs(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function vs(e){return vs=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},vs(e)}var gs=function(t){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ms(e,t)}(c,t);var n,r,i,a,l,u=(a=c,l=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=vs(a);if(l){var n=vs(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"===us(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return hs(e)}(this,e)});function c(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,c),(t=u.call(this,e)).state={note:"",email:"",error:{note:null,email:null},empty:{note:null,email:null}},t.handleEmail=t.handleEmail.bind(hs(t)),t.handleNote=t.handleNote.bind(hs(t)),t.handleSubmit=t.handleSubmit.bind(hs(t)),t.resetEmptyError=t.resetEmptyError.bind(hs(t)),t.checkValidation=t.checkValidation.bind(hs(t)),t}return n=c,r=[{key:"checkValidation",value:function(){var e=ss({},this.state),t=this.validateEmail(this.state.email),n=t.isEmpty,r=t.isError;return e=ss(ss({},e),{},{error:ss(ss({},this.state.error),{},{email:r}),empty:ss(ss({},this.state.empty),{},{email:n})}),this.setState(e),!n&&!r}},{key:"validateEmail",value:function(e){var t=null,n=null;return this.props.t,e&&""!==e.trim()?e&&!e.match(/^\w+([\+\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/)&&(n={message:"Your email is incomplete"}):t=!0,{isEmpty:t,isError:n}}},{key:"validateNote",value:function(e){var t=null;return e&&""!==e.trim()||(t=!0),{isEmpty:t}}},{key:"resetEmptyError",value:function(e){this.setState(ss(ss({},this.state),{},{error:ss(ss({},this.state.error),{},fs({},e,null)),empty:ss(ss({},this.state.empty),{},fs({},e,null))}))}},{key:"handleEmail",value:function(e){var t=e.target.value,n=this.validateEmail(t),r=n.isEmpty,o=n.isError;this.setState(ss(ss({},this.state),{},{email:t,error:ss(ss({},this.state.error),{},{email:o}),empty:ss(ss({},this.state.empty),{},{email:r})}))}},{key:"handleNote",value:function(e){var t=e.target.value;this.setState(ss(ss({},this.state),{},{note:t}))}},{key:"handleSubmit",value:function(e){if(e.preventDefault(),this.props.onClickSubmit){if(!this.checkValidation())return!1;this.props.onClickSubmit(this.state.note,this.state.email)}}},{key:"render",value:function(){var t=this.handleEmail,n=this.handleNote,r=this.resetEmptyError,o=this.handleSubmit,i=this.props.onClickShow,a=this.state,l=a.email,u=a.note,c=a.error,s=a.empty,f=this.props,d=f.isProcessing;return f.isProcessingComplete,e.createElement("div",{className:"summary-form"},e.createElement("form",{onSubmit:o,noValidate:!0},e.createElement("input",{className:"".concat(c&&c.email?"errorField":""),type:"email",placeholder:"Email",onFocus:function(){return r("email")},onChange:t,onBlur:t,value:l}),s&&s.email?e.createElement("div",{className:"error"},e.createElement("small",null,"Required")):null,c&&c.email?e.createElement("div",{className:"error"},e.createElement("small",null,"Your email is incomplete")):null,e.createElement("textarea",{onChange:n,defaultValue:u,rows:"5",placeholder:"Additional notes"}),e.createElement("div",{className:"d-flex flex-column flex-sm-row justify-content-between"},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:i,readOnly:!0}),e.createElement("input",{className:"btn btn-primary w-100 m-0 ms-sm-2",type:"submit",value:"".concat(d?"Processing ...":"Request quote")}))))}}],i=[{key:"propTypes",get:function(){return{isProcessing:o().bool,isProcessingComplete:o().bool,onClickSubmit:o().func}}}],r&&ds(n.prototype,r),i&&ds(n,i),Object.defineProperty(n,"prototype",{writable:!1}),c}(e.PureComponent);function ys(e){return ys="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},ys(e)}function bs(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 ws(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?bs(Object(n),!0).forEach((function(t){Es(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):bs(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Es(e,t,n){return(t=xs(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ss(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,xs(r.key),r)}}function xs(e){var t=function(e,t){if("object"!==ys(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!==ys(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===ys(t)?t:String(t)}function ks(e,t){return ks=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},ks(e,t)}function Os(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Cs(e){return Cs=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Cs(e)}var Ps=function(t){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ks(e,t)}(c,t);var n,r,i,a,l,u=(a=c,l=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=Cs(a);if(l){var n=Cs(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"===ys(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Os(e)}(this,e)});function c(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,c),(t=u.call(this,e)).state=t.props.data,t.handleCrateModeChange=t.handleCrateModeChange.bind(Os(t)),t.handleOnDragEnd=t.handleOnDragEnd.bind(Os(t)),t.handleDeleteItem=t.handleDeleteItem.bind(Os(t)),t.handleDeleteAllItems=t.handleDeleteAllItems.bind(Os(t)),t.handleMouseEnterItem=t.handleMouseEnterItem.bind(Os(t)),t.handleMouseLeaveItem=t.handleMouseLeaveItem.bind(Os(t)),t.handleClickAddItem=t.handleClickAddItem.bind(Os(t)),t.checkAlerts=t.checkAlerts.bind(Os(t)),t.handleClickSelectItem=t.handleClickSelectItem.bind(Os(t)),t.handleClickSubmit=t.handleClickSubmit.bind(Os(t)),t.handleToggleOverlayRemove=t.handleToggleOverlayRemove.bind(Os(t)),t.handleShowOverlayRemove=t.handleShowOverlayRemove.bind(Os(t)),t.handleClickToggleMobileSideMenu=t.handleClickToggleMobileSideMenu.bind(Os(t)),t.handleClickCloseRFQFeedback=t.handleClickCloseRFQFeedback.bind(Os(t)),t.handleClickShowOrder=t.handleClickShowOrder.bind(Os(t)),t.handleClickOpenImport=t.handleClickOpenImport.bind(Os(t)),t.handleLoadCustomConf=t.handleLoadCustomConf.bind(Os(t)),t.handleCardsUpdated=t.handleCardsUpdated.bind(Os(t)),t.timer=null,t.timer_remove=null,t}return n=c,r=[{key:"componentDidMount",value:function(){var e={droppableId:"backlog",indexes:[Ru.findIndex((function(e){return"eem_pwr_mod"===e})),Ru.findIndex((function(e){return"kasli"===e}))]};this.handleOnDragEnd({source:e,destination:{droppableId:"cart",index:0}})}},{key:"componentDidUpdate",value:function(e,t){var n=this;t.columns.cart.items===this.state.columns.cart.items&&t.currentMode===this.state.currentMode||this.checkAlerts(this.state.columns.cart.items),this.state.newCardJustAdded&&(this.timer=setTimeout((function(){n.setState({newCardJustAdded:!1})}),2e3))}},{key:"componentWillUnmount",value:function(){clearTimeout(this.timer)}},{key:"handleCardsUpdated",value:function(){this.checkAlerts(this.state.columns.cart.items)}},{key:"handleCrateModeChange",value:function(e){this.setState({currentMode:e})}},{key:"handleDeleteItem",value:function(e){var t=Array.from(this.state.columns.cart.items),n=Array.from(this.state.columns.cart.itemsData);t.splice(e,1),n.splice(e,1),this.setState(ws(ws({},this.state),{},{columns:ws(ws({},this.state.columns),{},{cart:ws(ws({},this.state.columns.cart),{},{items:t,itemsData:n})})}))}},{key:"handleDeleteAllItems",value:function(){this.setState(ws(ws({},this.state),{},{columns:ws(ws({},this.state.columns),{},{cart:ws(ws({},this.state.columns.cart),{},{items:[],itemsData:[]})})}))}},{key:"handleMouseEnterItem",value:function(e){this.setState(ws(ws({},this.state),{},{currentItemHovered:e}))}},{key:"handleMouseLeaveItem",value:function(){this.setState(ws(ws({},this.state),{},{currentItemHovered:null}))}},{key:"handleClickAddItem",value:function(e,t){var n={droppableId:"backlog",index:e},r={droppableId:"cart",index:this.state.columns.cart.items.length};this.handleOnDragEnd({source:n,destination:r},t)}},{key:"handleClickSelectItem",value:function(e){var t=Array.from(this.state.columns.cart.items);this.setState(ws(ws({},this.state),{},{columns:ws(ws({},this.state.columns),{},{cart:ws(ws({},this.state.columns.cart),{},{items:t.map((function(t,n){return ws(ws({},t),{},{selected:n===e})}))})})}))}},{key:"handleToggleOverlayRemove",value:function(e,t){var n=Array.from(this.state.columns.cart.items);this.setState(ws(ws({},this.state),{},{columns:ws(ws({},this.state.columns),{},{cart:ws(ws({},this.state.columns.cart),{},{items:n.map((function(n,r){return ws(ws({},n),{},{showOverlayRemove:r===e&&t})}))})})}))}},{key:"handleShowOverlayRemove",value:function(e){var t=this;this.timer_remove&&clearTimeout(this.timer_remove),this.handleToggleOverlayRemove(e,!0),this.timer_remove=setTimeout((function(){t.handleToggleOverlayRemove(e,!1)}),2e3)}},{key:"handleClickShowOrder",value:function(){var e={items:[],type:this.state.currentMode},t=Array.from(this.state.columns.cart.items),n=Array.from(this.state.columns.cart.itemsData);for(var r in t){var o=t[r],i=n[r];e.items.push({pn:o.name_number,options:i.options_data&&i.options?Mn(i.options,i.options_data):null})}this.setState({isProcessing:!1,shouldShowRFQFeedback:!0,RFQBodyType:"show",RFQBodyOrder:JSON.stringify(e,null,2)})}},{key:"handleClickOpenImport",value:function(){this.setState({isProcessing:!1,shouldShowRFQFeedback:!0,RFQBodyType:"import"})}},{key:"handleLoadCustomConf",value:function(e){if(e){var t=this.props.data.items,n=[],r=[];this.setState(ws(ws({},this.state),{},{columns:ws(ws({},this.state.columns),{},{cart:ws(ws({},this.state.columns.cart),{},{items:[]})})}),(function(){e.items.map((function(e){return Object.keys(t).map((function(o){e.pn&&e.pn===t[o].name_number&&(n.push(Object.assign(ws({},t[o]),{id:Wn(),options_data:e.options?e.options:null})),r.push({options_data:e.options?e.options:null}))})),e})),this.setState(ws(ws({},this.state),{},{columns:ws(ws({},this.state.columns),{},{cart:ws(ws({},this.state.columns.cart),{},{items:n,itemsData:r})}),currentMode:e.type}))}))}}},{key:"handleClickSubmit",value:function(e,t){var n=this,r={items:[],type:this.state.currentMode},o=Array.from(this.state.columns.cart.items),i=Array.from(this.state.columns.cart.itemsData);for(var a in o){var l=o[a],u=i[a];r.items.push({pn:l.name_number,options:u.options_data&&u.options?Mn(u.options,u.options_data):null})}var c=this.props.data;this.setState({isProcessing:!0}),fetch(c.API_RFQ,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:t,note:e,configuration:JSON.stringify(r)})}).then((function(e){if(200!==e.status)throw Error("Response status is not OK: "+e.status+".\n"+e);n.setState({isProcessing:!1,shouldShowRFQFeedback:!0,RFQBodyType:"email",isProcessingComplete:!0})})).catch((function(e){console.error("Request failed, reason:",e),n.setState({isProcessing:!1},(function(){alert("We cannot receive your request. Try using the export by coping the configuration and send it to us at sales@m-labs.hk")}))}))}},{key:"handleOnDragEnd",value:function(e,t){var n=e.source,r=e.destination,o=[];if(n.indexes?n.indexes.forEach((function(e,t){o.push(Ru[e])})):n.index>=0&&o.push(Ru[n.index]),r)switch(n.droppableId){case"backlog":n.droppableId!==r.droppableId&&this.setState(ws(ws({},this.state),{},{newCardJustAdded:!!t,columns:ws(ws({},this.state.columns),{},Es({},r.droppableId,ws(ws({},this.state.columns[r.droppableId]),{},{items:Nu(this.state.items,this.state.columns[n.droppableId],this.state.columns[r.droppableId],o,r)})))}));break;case r.droppableId:this.setState(ws(ws({},this.state),{},{newCardJustAdded:!1,columns:ws(ws({},this.state.columns),{},Es({},r.droppableId,ws(ws({},this.state.columns[r.droppableId]),{},{items:Tu(this.state.columns[r.droppableId].items,n.index,r.index),itemsData:Tu(this.state.columns[r.droppableId].itemsData,n.index,r.index)})))}))}else"cart"===n.droppableId&&this.setState(ws(ws({},this.state),{},{newCardJustAdded:!1,columns:ws(ws({},this.state.columns),{},Es({},n.droppableId,ws(ws({},this.state.columns[n.droppableId]),{},{items:ju(this.state.columns[n.droppableId].items,n.index),itemsData:ju(this.state.columns[n.droppableId].itemsData,n.index)})))}))}},{key:"handleClickToggleMobileSideMenu",value:function(){this.setState(ws(ws({},this.state),{},{mobileSideMenuShouldOpen:!this.state.mobileSideMenuShouldOpen}))}},{key:"handleClickCloseRFQFeedback",value:function(){this.setState({shouldShowRFQFeedback:!1})}},{key:"checkAlerts",value:function(e){var t=this;console.log("--- START CHECKING CRATE WARNING ---");var n=this.state,r=n.currentMode,o=n.crateModeSlots,i=n.crateRules,a=Array.from(e),l=[],u={};a.forEach((function(e,n){n in l||(l[n]=e),n in t.state.columns.cart.itemsData&&t.state.columns.cart.itemsData[n].options_data&&(a[n].options_data=t.state.columns.cart.itemsData[n].options_data),l[n].warnings={}}));var c=Fu(e);c>o[r]?u[i.maxSlot.type]=ws({},i.maxSlot):21===o[r]&&c<=10&&(u[i.compactSlot.type]=ws({},i.compactSlot));for(var s=a.reduce((function(e,t,n){return"kasli"!==t.type&&"vhdcicarrier"!==t.type||e.push(n),e}),[]),f=function(){var e,t,n,r=s[d];if(e=d!==s.length-1?a.slice(r+1,s[d+1]):a.slice(r+1),0==d){var o=a.slice(0,r).findIndex((function(e){return e.rules&&e.rules.resources}));-1!=o&&(o in l?("warnings"in l[o]||(l[o].warnings={}),l[o].warnings.resources=ws({},a[o].rules.resources)):(l[o]=ws({},a[o]),l[o].warnings={},l[o].warnings.resources=ws({},a[o].rules.resources)))}if(t=e.filter((function(e){return"idc-bnc"!==e.type})).reduce((function(e,t){return e+((n=t).options_data&&!1!==n.options_data.ext_pwr&&!1!==n.options_data.mono_eem?!0===n.options_data.ext_pwr?0:!0===n.options_data.mono_eem||"1 EEM"===n.options_data.n_eem?1:"3 EEM"===n.options_data.n_eem?3:n.slotOccupied:n.slotOccupied);var n}),0),n=e.reduce((function(e,t){return"clocker"===t.type?e+(t.options_data&&!0===t.options_data.ext_clk?0:t.clockOccupied):e}),0),r in l?(l[r].nbrCurrentSlot=t,l[r].nbrCurrentClock=n,"warnings"in l[r]||(l[r].warnings={})):(l[r]=ws({},a[r]),l[r].nbrCurrentSlot=t,l[r].nbrCurrentClock=n,l[r].warnings={}),t>a[r].nbrSlotMax&&(a[r].rules.maxSlot.message&&(u[a[r].rules.maxSlot.type]=ws({},a[r].rules.maxSlot)),l[r].warnings.maxSlotWarning=ws({},a[r].rules.maxSlotWarning)),n>a[r].nbrClockMax&&(u[a[r].rules.maxClock.type]=ws({},a[r].rules.maxClock),l[r].warnings.maxClockWarning=ws({},a[r].rules.maxClockWarning)),a.length>r+1){var i=a[r+1];"kasli"!==i.type&&"vhdcicarrier"!==i.type||(u[i.rules.follow.type]=ws({},i.rules.follow))}},d=0;d<=s.length-1;d++)f();if(0===s.length){var p=a.slice(0).findIndex((function(e){return e.rules&&e.rules.resources}));-1!=p&&(p in l?("warnings"in l[p]||(l[p].warnings={}),l[p].warnings.resources=ws({},a[p].rules.resources)):(l[p]=ws({},a[p]),l[p].warnings={},l[p].warnings.resources=ws({},a[p].rules.resources)))}for(var m=a.reduce((function(e,t,n){return"kasli"!==t.type&&"clocker"!==t.type||e.push(n),e}),[]),h=0;h<=m.length-1;h++){var v,g=m[h];v=(h!==m.length-1?a.slice(g+1,m[h+1]):a.slice(g+1)).reduce((function(e,t){return e+(t.options_data&&t.options_data.ext_clk&&t.options_data.ext_clk.checked?0:t.clockOccupied)}),0),g in l?l[g].nbrCurrentClock&&"clocker"!==l[g].type?l[g].nbrCurrentClock+=v:l[g].nbrCurrentClock=v:(l[g]=ws({},a[g]),l[g].nbrCurrentClock=v,l[g].warnings={}),v>a[g].nbrClockMax&&(u[a[g].rules.maxClock.type]=ws({},a[g].rules.maxClock),l[g].warnings.maxClockWarning=ws({},a[g].rules.maxClockWarning))}a.find((function(e){return"urukul"===e.type}))&&this.state.items.urukul.rules.info&&(u[this.state.items.urukul.rules.info.type]=ws({},this.state.items.urukul.rules.info));for(var y=a.reduce((function(e,t,n){return"idc-bnc"===t.type&&e.push(n),e}),[]),b=y.length-1;b>=0;b--){var w=y[b],E=!1;if(0==w)E=!0;else if(w>=1){var S=y[b]-1;"zotino"!==a[S].type&&"hd68"!==a[S].type&&"idc-bnc"!==a[S].type&&(E=!0)}E&&(l[w]=ws({},a[w]),l[w].warnings={},l[w].warnings.wrong=ws({},a[w].rules.wrong))}for(var x=a.reduce((function(e,t,n){return"zotino"!==t.type&&"hd68"!==t.type||e.push(n),e}),[]),k=function(){var e,t,n=x[O];e=O!==x.length-1?a.slice(n+1,x[O+1]):a.slice(n+1);var r=!1;if(t=e.reduce((function(e,t,n,o){return 0===n&&"idc-bnc"===t.type?e+1:"idc-bnc"===o[0].type&&n>0&&"idc-bnc"===o[n-1].type?("idc-bnc"!==t.type&&(r=!0),e+("idc-bnc"!==t.type||r?0:1)):e}),0),n in l?(l[n].nbrCurrentSlot=t,"warnings"in l[n]||(l[n].warnings={})):(l[n]=ws({},a[n]),l[n].nbrCurrentSlot=t,l[n].warnings={}),t>0&&a[n].rules.maxSlot.message&&(u[a[n].rules.maxSlot.type]=ws({},a[n].rules.maxSlot)),t>a[n].nbrSlotMax&&(l[n].warnings.maxSlotWarning=ws({},a[n].rules.maxSlotWarning)),"hd68"===a[n].type){var o=!1;n<a.length-1?"idc-bnc"!==a[n+1].type&&(o=!0):n===a.length-1&&(o=!0),o&&(n in l||(l[n]=ws({},a[n]),l[n].warnings={}),l[n].warnings.minAdapter=ws({},a[n].rules.minAdapter))}},O=0;O<=x.length-1;O++)k();this.setState(ws(ws({},this.state),{},{columns:ws(ws({},this.state.columns),{},{cart:ws(ws({},this.state.columns.cart),{},{itemsData:l})}),rules:ws({},u)}))}},{key:"render",value:function(){var t=this.state,n=t.currency,r=t.currentItemHovered,o=t.currentMode,i=t.crateModeSlots,a=t.crateModeItems,l=t.items,u=t.columns,c=t.rules,s=t.mobileSideMenuShouldOpen,f=t.newCardJustAdded,d=t.isProcessing,p=t.shouldShowRFQFeedback,m=t.RFQBodyType,h=t.RFQBodyOrder,v=t.isProcessingComplete,g=window.deviceIsMobile(),y=window.isTouchEnabled();return e.createElement(Vl,{onDragEnd:this.handleOnDragEnd},e.createElement(Yu,{showRFQFeedback:p,RFQBodyType:m,RFQBodyOrder:h,className:"shop",mobileSideMenuShouldOpen:s,isMobile:g,newCardJustAdded:f,onClickToggleMobileSideMenu:this.handleClickToggleMobileSideMenu,onClickCloseRFQFeedback:this.handleClickCloseRFQFeedback,onClickLoadCustomConf:this.handleLoadCustomConf,items:l,aside:e.createElement(uc,{currency:n,items:l,data:u.backlog,onClickAddItem:this.handleClickAddItem,onClickToggleMobileSideMenu:this.handleClickToggleMobileSideMenu,isMobile:g}),main:e.createElement(pc,{onClickToggleMobileSideMenu:this.handleClickToggleMobileSideMenu,onClickOpenImport:this.handleClickOpenImport,isMobile:g,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. Setup card's configuration by tapping at the top of the card, most of the options can be modified after shipment. 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 is estimated and must be confirmed by a quote."),crateMode:e.createElement(bc,{items:a,mode:o,onClickMode:this.handleCrateModeChange}),crate:e.createElement(kc,{cart:e.createElement(Xc,{nbrSlots:i[o],data:u.cart,isMobile:g,isTouch:y,itemHovered:r,onToggleOverlayRemove:this.handleToggleOverlayRemove,onClickRemoveItem:this.handleDeleteItem,onClickItem:this.handleShowOverlayRemove,onCardUpdate:this.handleCardsUpdated}),rules:Object.values(c).filter((function(e){return e}))}),summaryPrice:e.createElement(ls,{currency:n,currentMode:o,modes:a,summary:u.cart.items,itemsData:u.cart.itemsData,onMouseEnterItem:this.handleMouseEnterItem,onMouseLeaveItem:this.handleMouseLeaveItem,onDeleteItem:this.handleDeleteItem,onDeleteAllItems:this.handleDeleteAllItems,onClickSelectItem:this.handleClickSelectItem}),form:e.createElement(gs,{isProcessingComplete:v,processingComplete:this.handleProcessingComplete,isProcessing:d,onClickSubmit:this.handleClickSubmit,onClickShow:this.handleClickShowOrder})})}))}}],i=[{key:"propTypes",get:function(){return{data:o().object.isRequired}}}],r&&Ss(n.prototype,r),i&&Ss(n,i),Object.defineProperty(n,"prototype",{writable:!1}),c}(e.PureComponent);(0,t.s)(document.querySelector("#root-shop")).render(e.createElement(Ps,{data:_u}))})()})();