web2019/static/js/shop.bundle.js
Egor Savkin 0e60eb9bce Fix buttons colors
Signed-off-by: Egor Savkin <es@m-labs.hk>
2024-01-09 10:14:53 +08:00

2 lines
370 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={841:(e,t)=>{"use strict";var n=Symbol.for("react.element"),r=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),l=Symbol.for("react.provider"),s=Symbol.for("react.context"),c=Symbol.for("react.server_context"),u=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),f=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),m=Symbol.for("react.lazy");Symbol.for("react.offscreen");Symbol.for("react.module.reference"),t.isContextConsumer=function(e){return function(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case n:switch(e=e.type){case o:case i:case a:case d:case f:return e;default:switch(e=e&&e.$$typeof){case c:case s:case u:case m:case p:case l:return e;default:return t}}case r:return t}}}(e)===s}},366:(e,t,n)=>{"use strict";e.exports=n(841)},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 a=typeof n;if("string"===a||"number"===a)e.push(n);else if(Array.isArray(n)){if(n.length){var i=o.apply(null,n);i&&e.push(i)}}else if("object"===a){if(n.toString!==Object.prototype.toString&&!n.toString.toString().includes("[native code]")){e.push(n.toString());continue}for(var l in n)r.call(n,l)&&n[l]&&e.push(l)}}}return e.join(" ")}e.exports?(o.default=o,e.exports=o):void 0===(n=function(){return o}.apply(t,[]))||(e.exports=n)}()},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},a={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},i={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},l={};function s(e){return r.isMemo(e)?i:l[e.$$typeof]||o}l[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},l[r.Memo]=i;var c=Object.defineProperty,u=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,f=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 i=u(n);d&&(i=i.concat(d(n)));for(var l=s(t),g=s(n),h=0;h<i.length;++h){var b=i[h];if(!(a[b]||r&&r[b]||g&&g[b]||l&&l[b])){var y=f(n,b);try{c(t,b,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,a=n?Symbol.for("react.fragment"):60107,i=n?Symbol.for("react.strict_mode"):60108,l=n?Symbol.for("react.profiler"):60114,s=n?Symbol.for("react.provider"):60109,c=n?Symbol.for("react.context"):60110,u=n?Symbol.for("react.async_mode"):60111,d=n?Symbol.for("react.concurrent_mode"):60111,f=n?Symbol.for("react.forward_ref"):60112,p=n?Symbol.for("react.suspense"):60113,m=n?Symbol.for("react.suspense_list"):60120,g=n?Symbol.for("react.memo"):60115,h=n?Symbol.for("react.lazy"):60116,b=n?Symbol.for("react.block"):60121,y=n?Symbol.for("react.fundamental"):60117,v=n?Symbol.for("react.responder"):60118,w=n?Symbol.for("react.scope"):60119;function E(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case u:case d:case a:case l:case i:case p:return e;default:switch(e=e&&e.$$typeof){case c:case f:case h:case g:case s:return e;default:return t}}case o:return t}}}function x(e){return E(e)===d}t.AsyncMode=u,t.ConcurrentMode=d,t.ContextConsumer=c,t.ContextProvider=s,t.Element=r,t.ForwardRef=f,t.Fragment=a,t.Lazy=h,t.Memo=g,t.Portal=o,t.Profiler=l,t.StrictMode=i,t.Suspense=p,t.isAsyncMode=function(e){return x(e)||E(e)===u},t.isConcurrentMode=x,t.isContextConsumer=function(e){return E(e)===c},t.isContextProvider=function(e){return E(e)===s},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return E(e)===f},t.isFragment=function(e){return E(e)===a},t.isLazy=function(e){return E(e)===h},t.isMemo=function(e){return E(e)===g},t.isPortal=function(e){return E(e)===o},t.isProfiler=function(e){return E(e)===l},t.isStrictMode=function(e){return E(e)===i},t.isSuspense=function(e){return E(e)===p},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===a||e===d||e===l||e===i||e===p||e===m||"object"==typeof e&&null!==e&&(e.$$typeof===h||e.$$typeof===g||e.$$typeof===s||e.$$typeof===c||e.$$typeof===f||e.$$typeof===y||e.$$typeof===v||e.$$typeof===w||e.$$typeof===b)},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,a,i,l){if(!e){var s;if(void 0===t)s=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var c=[n,r,o,a,i,l],u=0;(s=new Error(t.replace(/%s/g,(function(){return c[u++]})))).name="Invariant Violation"}throw s.framesToPop=1,s}}},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("."),a=0;a<o.length;a++){if(null==r)return n;if(void 0===(r=r[o[a]]))return n}return r},missing:function(){for(var t=[],n=Array.isArray(arguments[0])?arguments[0]:arguments,r=0;r<n.length;r++){var o=n[r],a=e.apply({var:o},this);null!==a&&""!==a||t.push(o)}return t},missing_some:function(t,n){var r=e.apply({missing:n},this);return n.length-r.length>=t?[]:r}};return e.is_logic=function(e){return"object"==typeof e&&null!==e&&!Array.isArray(e)&&1===Object.keys(e).length},e.truthy=function(e){return!(Array.isArray(e)&&0===e.length||!e)},e.get_operator=function(e){return Object.keys(e)[0]},e.get_values=function(t){return t[e.get_operator(t)]},e.apply=function(n,r){if(Array.isArray(n))return n.map((function(t){return e.apply(t,r)}));if(!e.is_logic(n))return n;var o,a,i,l,s,c=e.get_operator(n),u=n[c];if(Array.isArray(u)||(u=[u]),"if"===c||"?:"==c){for(o=0;o<u.length-1;o+=2)if(e.truthy(e.apply(u[o],r)))return e.apply(u[o+1],r);return u.length===o+1?e.apply(u[o],r):null}if("and"===c){for(o=0;o<u.length;o+=1)if(a=e.apply(u[o],r),!e.truthy(a))return a;return a}if("or"===c){for(o=0;o<u.length;o+=1)if(a=e.apply(u[o],r),e.truthy(a))return a;return a}if("filter"===c)return l=e.apply(u[0],r),i=u[1],Array.isArray(l)?l.filter((function(t){return e.truthy(e.apply(i,t))})):[];if("map"===c)return l=e.apply(u[0],r),i=u[1],Array.isArray(l)?l.map((function(t){return e.apply(i,t)})):[];if("reduce"===c)return l=e.apply(u[0],r),i=u[1],s=void 0!==u[2]?u[2]:null,Array.isArray(l)?l.reduce((function(t,n){return e.apply(i,{current:n,accumulator:t})}),s):s;if("all"===c){if(l=e.apply(u[0],r),i=u[1],!Array.isArray(l)||!l.length)return!1;for(o=0;o<l.length;o+=1)if(!e.truthy(e.apply(i,l[o])))return!1;return!0}if("none"===c){if(l=e.apply(u[0],r),i=u[1],!Array.isArray(l)||!l.length)return!0;for(o=0;o<l.length;o+=1)if(e.truthy(e.apply(i,l[o])))return!1;return!0}if("some"===c){if(l=e.apply(u[0],r),i=u[1],!Array.isArray(l)||!l.length)return!1;for(o=0;o<l.length;o+=1)if(e.truthy(e.apply(i,l[o])))return!0;return!1}if(u=u.map((function(t){return e.apply(t,r)})),t.hasOwnProperty(c)&&"function"==typeof t[c])return t[c].apply(r,u);if(c.indexOf(".")>0){var d=String(c).split("."),f=t;for(o=0;o<d.length;o++){if(!f.hasOwnProperty(d[o]))throw new Error("Unrecognized operation "+c+" (failed at "+d.slice(0,o+1).join(".")+")");f=f[d[o]]}return f.apply(r,u)}throw new Error("Unrecognized operation "+c)},e.uses_data=function(t){var n=[];if(e.is_logic(t)){var r=e.get_operator(t),o=t[r];Array.isArray(o)||(o=[o]),"var"===r?n.push(o[0]):o.forEach((function(t){n.push.apply(n,e.uses_data(t))}))}return function(e){for(var t=[],n=0,r=e.length;n<r;n++)-1===t.indexOf(e[n])&&t.push(e[n]);return t}(n)},e.add_operation=function(e,n){t[e]=n},e.rm_operation=function(e){delete t[e]},e.rule_like=function(t,n){if(n===t)return!0;if("@"===n)return!0;if("number"===n)return"number"==typeof t;if("string"===n)return"string"==typeof t;if("array"===n)return Array.isArray(t)&&!e.is_logic(t);if(e.is_logic(n)){if(e.is_logic(t)){var r=e.get_operator(n),o=e.get_operator(t);if("@"===r||r===o)return e.rule_like(e.get_values(t,!1),e.get_values(n,!1))}return!1}if(Array.isArray(n)){if(Array.isArray(t)){if(n.length!==t.length)return!1;for(var a=0;a<n.length;a+=1)if(!e.rule_like(t[a],n[a]))return!1;return!0}return!1}return!1},e},void 0===(o=r.call(t,n,t,e))||(e.exports=o)},703:(e,t,n)=>{"use strict";var r=n(414);function o(){}function a(){}a.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,a,i){if(i!==r){var l=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw l.name="Invariant Violation",l}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:a,resetWarningCache:o};return n.PropTypes=n,n}},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 a(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var i=new Set,l={};function s(e,t){c(e,t),c(e+"Capture",t)}function c(e,t){for(l[e]=t,e=0;e<t.length;e++)i.add(t[e])}var u=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),d=Object.prototype.hasOwnProperty,f=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,p={},m={};function g(e,t,n,r,o,a,i){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=a,this.removeEmptyString=i}var h={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){h[e]=new g(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];h[t]=new g(t,1,!1,e[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){h[e]=new g(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){h[e]=new g(e,2,!1,e,null,!1,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(e){h[e]=new g(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){h[e]=new g(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){h[e]=new g(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){h[e]=new g(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){h[e]=new g(e,5,!1,e.toLowerCase(),null,!1,!1)}));var b=/[\-:]([a-z])/g;function y(e){return e[1].toUpperCase()}function v(e,t,n,r){var o=h.hasOwnProperty(t)?h[t]:null;(null!==o?0!==o.type:r||!(2<t.length)||"o"!==t[0]&&"O"!==t[0]||"n"!==t[1]&&"N"!==t[1])&&(function(e,t,n,r){if(null==t||function(e,t,n,r){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!r&&(null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,n,r))return!0;if(r)return!1;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,n,o,r)&&(n=null),r||null===o?function(e){return!!d.call(m,e)||!d.call(p,e)&&(f.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(b,y);h[t]=new g(t,1,!1,e,null,!1,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(b,y);h[t]=new g(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(b,y);h[t]=new g(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){h[e]=new g(e,1,!1,e.toLowerCase(),null,!1,!1)})),h.xlinkHref=new g("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){h[e]=new g(e,1,!1,e.toLowerCase(),null,!0,!0)}));var w=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,E=Symbol.for("react.element"),x=Symbol.for("react.portal"),S=Symbol.for("react.fragment"),k=Symbol.for("react.strict_mode"),O=Symbol.for("react.profiler"),C=Symbol.for("react.provider"),P=Symbol.for("react.context"),D=Symbol.for("react.forward_ref"),N=Symbol.for("react.suspense"),I=Symbol.for("react.suspense_list"),_=Symbol.for("react.memo"),R=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 A=Symbol.iterator;function j(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=A&&e[A]||e["@@iterator"])?e:null}var L,M=Object.assign;function B(e){if(void 0===L)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);L=t&&t[1]||""}return"\n"+L+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"),a=r.stack.split("\n"),i=o.length-1,l=a.length-1;1<=i&&0<=l&&o[i]!==a[l];)l--;for(;1<=i&&0<=l;i--,l--)if(o[i]!==a[l]){if(1!==i||1!==l)do{if(i--,0>--l||o[i]!==a[l]){var s="\n"+o[i].replace(" at new "," at ");return e.displayName&&s.includes("<anonymous>")&&(s=s.replace("<anonymous>",e.displayName)),s}}while(1<=i&&0<=l);break}}}finally{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 $(e){if(null==e)return null;if("function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case S:return"Fragment";case x:return"Portal";case O:return"Profiler";case k:return"StrictMode";case N:return"Suspense";case I: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 D:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case _:return null!==(t=e.displayName||null)?t:$(e.type)||"Memo";case R:t=e._payload,e=e._init;try{return $(e(t))}catch(e){}}return null}function W(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=(e=t.render).displayName||e.name||"",t.displayName||(""!==e?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return $(t);case 8:return t===k?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if("function"==typeof t)return t.displayName||t.name||null;if("string"==typeof t)return t}return null}function H(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function G(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function V(e){e._valueTracker||(e._valueTracker=function(e){var t=G(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&void 0!==n&&"function"==typeof n.get&&"function"==typeof n.set){var o=n.get,a=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(e){r=""+e,a.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function q(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=G(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function K(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function Q(e,t){var n=t.checked;return M({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function Y(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=H(null!=t.value?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function X(e,t){null!=(t=t.checked)&&v(e,"checked",t,!1)}function J(e,t){X(e,t);var n=H(t.value),r=t.type;if(null!=n)"number"===r?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===r||"reset"===r)return void e.removeAttribute("value");t.hasOwnProperty("value")?ee(e,t.type,n):t.hasOwnProperty("defaultValue")&&ee(e,t.type,H(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function Z(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!("submit"!==r&&"reset"!==r||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function ee(e,t,n){"number"===t&&K(e.ownerDocument)===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var te=Array.isArray;function ne(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o<n.length;o++)t["$"+n[o]]=!0;for(n=0;n<e.length;n++)o=t.hasOwnProperty("$"+e[n].value),e[n].selected!==o&&(e[n].selected=o),o&&r&&(e[n].defaultSelected=!0)}else{for(n=""+H(n),t=null,o=0;o<e.length;o++){if(e[o].value===n)return e[o].selected=!0,void(r&&(e[o].defaultSelected=!0));null!==t||e[o].disabled||(t=e[o])}null!==t&&(t.selected=!0)}}function re(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(a(91));return M({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function oe(e,t){var n=t.value;if(null==n){if(n=t.children,t=t.defaultValue,null!=n){if(null!=t)throw Error(a(92));if(te(n)){if(1<n.length)throw Error(a(93));n=n[0]}t=n}null==t&&(t=""),n=t}e._wrapperState={initialValue:H(n)}}function ae(e,t){var n=H(t.value),r=H(t.defaultValue);null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=r&&(e.defaultValue=""+r)}function ie(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}function le(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function se(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?le(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var ce,ue,de=(ue=function(e,t){if("http://www.w3.org/2000/svg"!==e.namespaceURI||"innerHTML"in e)e.innerHTML=t;else{for((ce=ce||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=ce.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}},"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,t,n,r){MSApp.execUnsafeLocalFunction((function(){return ue(e,t)}))}:ue);function fe(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var pe={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},me=["Webkit","ms","Moz","O"];function ge(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 he(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),o=ge(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}Object.keys(pe).forEach((function(e){me.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),pe[t]=pe[e]}))}));var be=M({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function ye(e,t){if(t){if(be[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(a(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(a(60));if("object"!=typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(a(61))}if(null!=t.style&&"object"!=typeof t.style)throw Error(a(62))}}function ve(e,t){if(-1===e.indexOf("-"))return"string"==typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var we=null;function Ee(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var xe=null,Se=null,ke=null;function Oe(e){if(e=wo(e)){if("function"!=typeof xe)throw Error(a(280));var t=e.stateNode;t&&(t=xo(t),xe(e.stateNode,e.type,t))}}function Ce(e){Se?ke?ke.push(e):ke=[e]:Se=e}function Pe(){if(Se){var e=Se,t=ke;if(ke=Se=null,Oe(e),t)for(e=0;e<t.length;e++)Oe(t[e])}}function De(e,t){return e(t)}function Ne(){}var Ie=!1;function _e(e,t,n){if(Ie)return e(t,n);Ie=!0;try{return De(e,t,n)}finally{Ie=!1,(null!==Se||null!==ke)&&(Ne(),Pe())}}function Re(e,t){var n=e.stateNode;if(null===n)return null;var r=xo(n);if(null===r)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(r=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!r;break e;default:e=!1}if(e)return null;if(n&&"function"!=typeof n)throw Error(a(231,t,typeof n));return n}var Te=!1;if(u)try{var Ae={};Object.defineProperty(Ae,"passive",{get:function(){Te=!0}}),window.addEventListener("test",Ae,Ae),window.removeEventListener("test",Ae,Ae)}catch(ue){Te=!1}function je(e,t,n,r,o,a,i,l,s){var c=Array.prototype.slice.call(arguments,3);try{t.apply(n,c)}catch(e){this.onError(e)}}var Le=!1,Me=null,Be=!1,Fe=null,ze={onError:function(e){Le=!0,Me=e}};function Ue(e,t,n,r,o,a,i,l,s){Le=!1,Me=null,je.apply(ze,arguments)}function $e(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{0!=(4098&(t=e).flags)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function We(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&null!==(e=e.alternate)&&(t=e.memoizedState),null!==t)return t.dehydrated}return null}function He(e){if($e(e)!==e)throw Error(a(188))}function Ge(e){return null!==(e=function(e){var t=e.alternate;if(!t){if(null===(t=$e(e)))throw Error(a(188));return t!==e?null:e}for(var n=e,r=t;;){var o=n.return;if(null===o)break;var i=o.alternate;if(null===i){if(null!==(r=o.return)){n=r;continue}break}if(o.child===i.child){for(i=o.child;i;){if(i===n)return He(o),e;if(i===r)return He(o),t;i=i.sibling}throw Error(a(188))}if(n.return!==r.return)n=o,r=i;else{for(var l=!1,s=o.child;s;){if(s===n){l=!0,n=o,r=i;break}if(s===r){l=!0,r=o,n=i;break}s=s.sibling}if(!l){for(s=i.child;s;){if(s===n){l=!0,n=i,r=o;break}if(s===r){l=!0,r=i,n=o;break}s=s.sibling}if(!l)throw Error(a(189))}}if(n.alternate!==r)throw Error(a(190))}if(3!==n.tag)throw Error(a(188));return n.stateNode.current===n?e:t}(e))?Ve(e):null}function Ve(e){if(5===e.tag||6===e.tag)return e;for(e=e.child;null!==e;){var t=Ve(e);if(null!==t)return t;e=e.sibling}return null}var qe=o.unstable_scheduleCallback,Ke=o.unstable_cancelCallback,Qe=o.unstable_shouldYield,Ye=o.unstable_requestPaint,Xe=o.unstable_now,Je=o.unstable_getCurrentPriorityLevel,Ze=o.unstable_ImmediatePriority,et=o.unstable_UserBlockingPriority,tt=o.unstable_NormalPriority,nt=o.unstable_LowPriority,rt=o.unstable_IdlePriority,ot=null,at=null,it=Math.clz32?Math.clz32:function(e){return 0===(e>>>=0)?32:31-(lt(e)/st|0)|0},lt=Math.log,st=Math.LN2,ct=64,ut=4194304;function dt(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return 4194240&e;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return 130023424&e;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function ft(e,t){var n=e.pendingLanes;if(0===n)return 0;var r=0,o=e.suspendedLanes,a=e.pingedLanes,i=268435455&n;if(0!==i){var l=i&~o;0!==l?r=dt(l):0!=(a&=i)&&(r=dt(a))}else 0!=(i=n&~o)?r=dt(i):0!==a&&(r=dt(a));if(0===r)return 0;if(0!==t&&t!==r&&0==(t&o)&&((o=r&-r)>=(a=t&-t)||16===o&&0!=(4194240&a)))return t;if(0!=(4&r)&&(r|=16&n),0!==(t=e.entangledLanes))for(e=e.entanglements,t&=r;0<t;)o=1<<(n=31-it(t)),r|=e[n],t&=~o;return r}function 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 gt(){var e=ct;return 0==(4194240&(ct<<=1))&&(ct=64),e}function ht(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function bt(e,t,n){e.pendingLanes|=t,536870912!==t&&(e.suspendedLanes=0,e.pingedLanes=0),(e=e.eventTimes)[t=31-it(t)]=n}function yt(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-it(n),o=1<<r;o&t|e[r]&t&&(e[r]|=t),n&=~o}}var vt=0;function wt(e){return 1<(e&=-e)?4<e?0!=(268435455&e)?16:536870912:4:1}var Et,xt,St,kt,Ot,Ct=!1,Pt=[],Dt=null,Nt=null,It=null,_t=new Map,Rt=new Map,Tt=[],At="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function jt(e,t){switch(e){case"focusin":case"focusout":Dt=null;break;case"dragenter":case"dragleave":Nt=null;break;case"mouseover":case"mouseout":It=null;break;case"pointerover":case"pointerout":_t.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Rt.delete(t.pointerId)}}function Lt(e,t,n,r,o,a){return null===e||e.nativeEvent!==a?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:a,targetContainers:[o]},null!==t&&null!==(t=wo(t))&&xt(t),e):(e.eventSystemFlags|=r,t=e.targetContainers,null!==o&&-1===t.indexOf(o)&&t.push(o),e)}function Mt(e){var t=vo(e.target);if(null!==t){var n=$e(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=We(n)))return e.blockedOn=t,void Ot(e.priority,(function(){St(n)}))}else if(3===t&&n.stateNode.current.memoizedState.isDehydrated)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function Bt(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=Qt(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n)return null!==(t=wo(n))&&xt(t),e.blockedOn=n,!1;var r=new(n=e.nativeEvent).constructor(n.type,n);we=r,n.target.dispatchEvent(r),we=null,t.shift()}return!0}function Ft(e,t,n){Bt(e)&&n.delete(t)}function zt(){Ct=!1,null!==Dt&&Bt(Dt)&&(Dt=null),null!==Nt&&Bt(Nt)&&(Nt=null),null!==It&&Bt(It)&&(It=null),_t.forEach(Ft),Rt.forEach(Ft)}function Ut(e,t){e.blockedOn===t&&(e.blockedOn=null,Ct||(Ct=!0,o.unstable_scheduleCallback(o.unstable_NormalPriority,zt)))}function $t(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!==Dt&&Ut(Dt,e),null!==Nt&&Ut(Nt,e),null!==It&&Ut(It,e),_t.forEach(t),Rt.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;)Mt(n),null===n.blockedOn&&Tt.shift()}var Wt=w.ReactCurrentBatchConfig,Ht=!0;function Gt(e,t,n,r){var o=vt,a=Wt.transition;Wt.transition=null;try{vt=1,qt(e,t,n,r)}finally{vt=o,Wt.transition=a}}function Vt(e,t,n,r){var o=vt,a=Wt.transition;Wt.transition=null;try{vt=4,qt(e,t,n,r)}finally{vt=o,Wt.transition=a}}function qt(e,t,n,r){if(Ht){var o=Qt(e,t,n,r);if(null===o)Hr(e,t,r,Kt,n),jt(e,r);else if(function(e,t,n,r,o){switch(t){case"focusin":return Dt=Lt(Dt,e,t,n,r,o),!0;case"dragenter":return Nt=Lt(Nt,e,t,n,r,o),!0;case"mouseover":return It=Lt(It,e,t,n,r,o),!0;case"pointerover":var a=o.pointerId;return _t.set(a,Lt(_t.get(a)||null,e,t,n,r,o)),!0;case"gotpointercapture":return a=o.pointerId,Rt.set(a,Lt(Rt.get(a)||null,e,t,n,r,o)),!0}return!1}(o,e,t,n,r))r.stopPropagation();else if(jt(e,r),4&t&&-1<At.indexOf(e)){for(;null!==o;){var a=wo(o);if(null!==a&&Et(a),null===(a=Qt(e,t,n,r))&&Hr(e,t,r,Kt,n),a===o)break;o=a}null!==o&&r.stopPropagation()}else Hr(e,t,r,null,n)}}var Kt=null;function Qt(e,t,n,r){if(Kt=null,null!==(e=vo(e=Ee(r))))if(null===(t=$e(e)))e=null;else if(13===(n=t.tag)){if(null!==(e=We(t)))return e;e=null}else if(3===n){if(t.stateNode.current.memoizedState.isDehydrated)return 3===t.tag?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Kt=e,null}function Yt(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(Je()){case Ze:return 1;case et:return 4;case tt:case nt:return 16;case rt:return 536870912;default:return 16}default:return 16}}var Xt=null,Jt=null,Zt=null;function en(){if(Zt)return Zt;var e,t,n=Jt,r=n.length,o="value"in Xt?Xt.value:Xt.textContent,a=o.length;for(e=0;e<r&&n[e]===o[e];e++);var i=r-e;for(t=1;t<=i&&n[r-t]===o[a-t];t++);return Zt=o.slice(e,1<t?1-t:void 0)}function tn(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}function nn(){return!0}function rn(){return!1}function on(e){function t(t,n,r,o,a){for(var i in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=o,this.target=a,this.currentTarget=null,e)e.hasOwnProperty(i)&&(t=e[i],this[i]=t?t(o):o[i]);return this.isDefaultPrevented=(null!=o.defaultPrevented?o.defaultPrevented:!1===o.returnValue)?nn:rn,this.isPropagationStopped=rn,this}return M(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=nn)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=nn)},persist:function(){},isPersistent:nn}),t}var an,ln,sn,cn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},un=on(cn),dn=M({},cn,{view:0,detail:0}),fn=on(dn),pn=M({},dn,{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!==sn&&(sn&&"mousemove"===e.type?(an=e.screenX-sn.screenX,ln=e.screenY-sn.screenY):ln=an=0,sn=e),an)},movementY:function(e){return"movementY"in e?e.movementY:ln}}),mn=on(pn),gn=on(M({},pn,{dataTransfer:0})),hn=on(M({},dn,{relatedTarget:0})),bn=on(M({},cn,{animationName:0,elapsedTime:0,pseudoElement:0})),yn=M({},cn,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),vn=on(yn),wn=on(M({},cn,{data:0})),En={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},xn={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},Sn={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function kn(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=Sn[e])&&!!t[e]}function On(){return kn}var Cn=M({},dn,{key:function(e){if(e.key){var t=En[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=tn(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?xn[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState: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),Dn=on(M({},pn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),Nn=on(M({},dn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:On})),In=on(M({},cn,{propertyName:0,elapsedTime:0,pseudoElement:0})),_n=M({},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}),Rn=on(_n),Tn=[9,13,27,32],An=u&&"CompositionEvent"in window,jn=null;u&&"documentMode"in document&&(jn=document.documentMode);var Ln=u&&"TextEvent"in window&&!jn,Mn=u&&(!An||jn&&8<jn&&11>=jn),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 $n=!1,Wn={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Hn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!Wn[e.type]:"textarea"===t}function Gn(e,t,n,r){Ce(r),0<(t=Vr(t,"onChange")).length&&(n=new un("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Vn=null,qn=null;function Kn(e){Br(e,0)}function Qn(e){if(q(Eo(e)))return e}function Yn(e,t){if("change"===e)return t}var Xn=!1;if(u){var Jn;if(u){var Zn="oninput"in document;if(!Zn){var er=document.createElement("div");er.setAttribute("oninput","return;"),Zn="function"==typeof er.oninput}Jn=Zn}else Jn=!1;Xn=Jn&&(!document.documentMode||9<document.documentMode)}function tr(){Vn&&(Vn.detachEvent("onpropertychange",nr),qn=Vn=null)}function nr(e){if("value"===e.propertyName&&Qn(qn)){var t=[];Gn(t,qn,e,Ee(e)),_e(Kn,t)}}function rr(e,t,n){"focusin"===e?(tr(),qn=n,(Vn=t).attachEvent("onpropertychange",nr)):"focusout"===e&&tr()}function or(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return Qn(qn)}function ar(e,t){if("click"===e)return Qn(t)}function ir(e,t){if("input"===e||"change"===e)return Qn(t)}var lr="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t};function sr(e,t){if(lr(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var o=n[r];if(!d.call(t,o)||!lr(e[o],t[o]))return!1}return!0}function cr(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function ur(e,t){var n,r=cr(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=cr(r)}}function dr(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?dr(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function fr(){for(var e=window,t=K();t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(e){n=!1}if(!n)break;t=K((e=t.contentWindow).document)}return t}function 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=fr(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&dr(n.ownerDocument.documentElement,n)){if(null!==r&&pr(n))if(t=r.start,void 0===(e=r.end)&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if((e=(t=n.ownerDocument||document)&&t.defaultView||window).getSelection){e=e.getSelection();var o=n.textContent.length,a=Math.min(r.start,o);r=void 0===r.end?a:Math.min(r.end,o),!e.extend&&a>r&&(o=r,r=a,a=o),o=ur(n,a);var i=ur(n,r);o&&i&&(1!==e.rangeCount||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==i.node||e.focusOffset!==i.offset)&&((t=t.createRange()).setStart(o.node,o.offset),e.removeAllRanges(),a>r?(e.addRange(t),e.extend(i.node,i.offset)):(t.setEnd(i.node,i.offset),e.addRange(t)))}for(t=[],e=n;e=e.parentNode;)1===e.nodeType&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for("function"==typeof n.focus&&n.focus(),n=0;n<t.length;n++)(e=t[n]).element.scrollLeft=e.left,e.element.scrollTop=e.top}}var gr=u&&"documentMode"in document&&11>=document.documentMode,hr=null,br=null,yr=null,vr=!1;function wr(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;vr||null==hr||hr!==K(r)||(r="selectionStart"in(r=hr)&&pr(r)?{start:r.selectionStart,end:r.selectionEnd}:{anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},yr&&sr(yr,r)||(yr=r,0<(r=Vr(br,"onSelect")).length&&(t=new un("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=hr)))}function Er(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var xr={animationend:Er("Animation","AnimationEnd"),animationiteration:Er("Animation","AnimationIteration"),animationstart:Er("Animation","AnimationStart"),transitionend:Er("Transition","TransitionEnd")},Sr={},kr={};function Or(e){if(Sr[e])return Sr[e];if(!xr[e])return e;var t,n=xr[e];for(t in n)if(n.hasOwnProperty(t)&&t in kr)return Sr[e]=n[t];return e}u&&(kr=document.createElement("div").style,"AnimationEvent"in window||(delete xr.animationend.animation,delete xr.animationiteration.animation,delete xr.animationstart.animation),"TransitionEvent"in window||delete xr.transitionend.transition);var Cr=Or("animationend"),Pr=Or("animationiteration"),Dr=Or("animationstart"),Nr=Or("transitionend"),Ir=new Map,_r="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 Rr(e,t){Ir.set(e,t),s(t,[e])}for(var Tr=0;Tr<_r.length;Tr++){var Ar=_r[Tr];Rr(Ar.toLowerCase(),"on"+(Ar[0].toUpperCase()+Ar.slice(1)))}Rr(Cr,"onAnimationEnd"),Rr(Pr,"onAnimationIteration"),Rr(Dr,"onAnimationStart"),Rr("dblclick","onDoubleClick"),Rr("focusin","onFocus"),Rr("focusout","onBlur"),Rr(Nr,"onTransitionEnd"),c("onMouseEnter",["mouseout","mouseover"]),c("onMouseLeave",["mouseout","mouseover"]),c("onPointerEnter",["pointerout","pointerover"]),c("onPointerLeave",["pointerout","pointerover"]),s("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),s("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),s("onBeforeInput",["compositionend","keypress","textInput","paste"]),s("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),s("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),s("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var jr="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(" "),Lr=new Set("cancel close invalid load scroll toggle".split(" ").concat(jr));function Mr(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,function(e,t,n,r,o,i,l,s,c){if(Ue.apply(this,arguments),Le){if(!Le)throw Error(a(198));var u=Me;Le=!1,Me=null,Be||(Be=!0,Fe=u)}}(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 a=void 0;if(t)for(var i=r.length-1;0<=i;i--){var l=r[i],s=l.instance,c=l.currentTarget;if(l=l.listener,s!==a&&o.isPropagationStopped())break e;Mr(o,l,c),a=s}else for(i=0;i<r.length;i++){if(s=(l=r[i]).instance,c=l.currentTarget,l=l.listener,s!==a&&o.isPropagationStopped())break e;Mr(o,l,c),a=s}}}if(Be)throw e=Fe,Be=!1,Fe=null,e}function Fr(e,t){var n=t[ho];void 0===n&&(n=t[ho]=new Set);var r=e+"__bubble";n.has(r)||(Wr(t,e,2,!1),n.add(r))}function zr(e,t,n){var r=0;t&&(r|=4),Wr(n,e,r,t)}var Ur="_reactListening"+Math.random().toString(36).slice(2);function $r(e){if(!e[Ur]){e[Ur]=!0,i.forEach((function(t){"selectionchange"!==t&&(Lr.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 Wr(e,t,n,r){switch(Yt(t)){case 1:var o=Gt;break;case 4:o=Vt;break;default:o=qt}n=o.bind(null,t,n,e),o=void 0,!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 a=r;if(0==(1&t)&&0==(2&t)&&null!==r)e:for(;;){if(null===r)return;var i=r.tag;if(3===i||4===i){var l=r.stateNode.containerInfo;if(l===o||8===l.nodeType&&l.parentNode===o)break;if(4===i)for(i=r.return;null!==i;){var s=i.tag;if((3===s||4===s)&&((s=i.stateNode.containerInfo)===o||8===s.nodeType&&s.parentNode===o))return;i=i.return}for(;null!==l;){if(null===(i=vo(l)))return;if(5===(s=i.tag)||6===s){r=a=i;continue e}l=l.parentNode}}r=r.return}_e((function(){var r=a,o=Ee(n),i=[];e:{var l=Ir.get(e);if(void 0!==l){var s=un,c=e;switch(e){case"keypress":if(0===tn(n))break e;case"keydown":case"keyup":s=Pn;break;case"focusin":c="focus",s=hn;break;case"focusout":c="blur",s=hn;break;case"beforeblur":case"afterblur":s=hn;break;case"click":if(2===n.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":s=mn;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":s=gn;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":s=Nn;break;case Cr:case Pr:case Dr:s=bn;break;case Nr:s=In;break;case"scroll":s=fn;break;case"wheel":s=Rn;break;case"copy":case"cut":case"paste":s=vn;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":s=Dn}var u=0!=(4&t),d=!u&&"scroll"===e,f=u?null!==l?l+"Capture":null:l;u=[];for(var p,m=r;null!==m;){var g=(p=m).stateNode;if(5===p.tag&&null!==g&&(p=g,null!==f&&null!=(g=Re(m,f))&&u.push(Gr(m,g,p))),d)break;m=m.return}0<u.length&&(l=new s(l,c,null,n,o),i.push({event:l,listeners:u}))}}if(0==(7&t)){if(s="mouseout"===e||"pointerout"===e,(!(l="mouseover"===e||"pointerover"===e)||n===we||!(c=n.relatedTarget||n.fromElement)||!vo(c)&&!c[go])&&(s||l)&&(l=o.window===o?o:(l=o.ownerDocument)?l.defaultView||l.parentWindow:window,s?(s=r,null!==(c=(c=n.relatedTarget||n.toElement)?vo(c):null)&&(c!==(d=$e(c))||5!==c.tag&&6!==c.tag)&&(c=null)):(s=null,c=r),s!==c)){if(u=mn,g="onMouseLeave",f="onMouseEnter",m="mouse","pointerout"!==e&&"pointerover"!==e||(u=Dn,g="onPointerLeave",f="onPointerEnter",m="pointer"),d=null==s?l:Eo(s),p=null==c?l:Eo(c),(l=new u(g,m+"leave",s,n,o)).target=d,l.relatedTarget=p,g=null,vo(o)===r&&((u=new u(f,m+"enter",c,n,o)).target=p,u.relatedTarget=d,g=u),d=g,s&&c)e:{for(f=c,m=0,p=u=s;p;p=qr(p))m++;for(p=0,g=f;g;g=qr(g))p++;for(;0<m-p;)u=qr(u),m--;for(;0<p-m;)f=qr(f),p--;for(;m--;){if(u===f||null!==f&&u===f.alternate)break e;u=qr(u),f=qr(f)}u=null}else u=null;null!==s&&Kr(i,l,s,u,!1),null!==c&&null!==d&&Kr(i,d,c,u,!0)}if("select"===(s=(l=r?Eo(r):window).nodeName&&l.nodeName.toLowerCase())||"input"===s&&"file"===l.type)var h=Yn;else if(Hn(l))if(Xn)h=ir;else{h=or;var b=rr}else(s=l.nodeName)&&"input"===s.toLowerCase()&&("checkbox"===l.type||"radio"===l.type)&&(h=ar);switch(h&&(h=h(e,r))?Gn(i,h,n,o):(b&&b(e,l,r),"focusout"===e&&(b=l._wrapperState)&&b.controlled&&"number"===l.type&&ee(l,"number",l.value)),b=r?Eo(r):window,e){case"focusin":(Hn(b)||"true"===b.contentEditable)&&(hr=b,br=r,yr=null);break;case"focusout":yr=br=hr=null;break;case"mousedown":vr=!0;break;case"contextmenu":case"mouseup":case"dragend":vr=!1,wr(i,n,o);break;case"selectionchange":if(gr)break;case"keydown":case"keyup":wr(i,n,o)}var y;if(An)e:{switch(e){case"compositionstart":var v="onCompositionStart";break e;case"compositionend":v="onCompositionEnd";break e;case"compositionupdate":v="onCompositionUpdate";break e}v=void 0}else $n?zn(e,n)&&(v="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(v="onCompositionStart");v&&(Mn&&"ko"!==n.locale&&($n||"onCompositionStart"!==v?"onCompositionEnd"===v&&$n&&(y=en()):(Jt="value"in(Xt=o)?Xt.value:Xt.textContent,$n=!0)),0<(b=Vr(r,v)).length&&(v=new wn(v,e,null,n,o),i.push({event:v,listeners:b}),(y||null!==(y=Un(n)))&&(v.data=y))),(y=Ln?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($n)return"compositionend"===e||!An&&zn(e,t)?(e=en(),Zt=Jt=Xt=null,$n=!1,e):null;switch(e){case"paste":default:return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Mn&&"ko"!==t.locale?null:t.data}}(e,n))&&0<(r=Vr(r,"onBeforeInput")).length&&(o=new wn("onBeforeInput","beforeinput",null,n,o),i.push({event:o,listeners:r}),o.data=y)}Br(i,t)}))}function Gr(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Vr(e,t){for(var n=t+"Capture",r=[];null!==e;){var o=e,a=o.stateNode;5===o.tag&&null!==a&&(o=a,null!=(a=Re(e,n))&&r.unshift(Gr(e,a,o)),null!=(a=Re(e,t))&&r.push(Gr(e,a,o))),e=e.return}return r}function qr(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function Kr(e,t,n,r,o){for(var a=t._reactName,i=[];null!==n&&n!==r;){var l=n,s=l.alternate,c=l.stateNode;if(null!==s&&s===r)break;5===l.tag&&null!==c&&(l=c,o?null!=(s=Re(n,a))&&i.unshift(Gr(n,s,l)):o||null!=(s=Re(n,a))&&i.push(Gr(n,s,l))),n=n.return}0!==i.length&&e.push({event:t,listeners:i})}var Qr=/\r\n?/g,Yr=/\u0000|\uFFFD/g;function Xr(e){return("string"==typeof e?e:""+e).replace(Qr,"\n").replace(Yr,"")}function Jr(e,t,n){if(t=Xr(t),Xr(e)!==t&&n)throw Error(a(425))}function Zr(){}var eo=null,to=null;function no(e,t){return"textarea"===e||"noscript"===e||"string"==typeof t.children||"number"==typeof t.children||"object"==typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var ro="function"==typeof setTimeout?setTimeout:void 0,oo="function"==typeof clearTimeout?clearTimeout:void 0,ao="function"==typeof Promise?Promise:void 0,io="function"==typeof queueMicrotask?queueMicrotask:void 0!==ao?function(e){return ao.resolve(null).then(e).catch(lo)}:ro;function lo(e){setTimeout((function(){throw e}))}function so(e,t){var n=t,r=0;do{var o=n.nextSibling;if(e.removeChild(n),o&&8===o.nodeType)if("/$"===(n=o.data)){if(0===r)return e.removeChild(o),void $t(t);r--}else"$"!==n&&"$?"!==n&&"$!"!==n||r++;n=o}while(n);$t(t)}function co(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break;if(8===t){if("$"===(t=e.data)||"$!"===t||"$?"===t)break;if("/$"===t)return null}}return e}function uo(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||"$!"===n||"$?"===n){if(0===t)return e;t--}else"/$"===n&&t++}e=e.previousSibling}return null}var fo=Math.random().toString(36).slice(2),po="__reactFiber$"+fo,mo="__reactProps$"+fo,go="__reactContainer$"+fo,ho="__reactEvents$"+fo,bo="__reactListeners$"+fo,yo="__reactHandles$"+fo;function vo(e){var t=e[po];if(t)return t;for(var n=e.parentNode;n;){if(t=n[go]||n[po]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=uo(e);null!==e;){if(n=e[po])return n;e=uo(e)}return t}n=(e=n).parentNode}return null}function wo(e){return!(e=e[po]||e[go])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function Eo(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(a(33))}function xo(e){return e[mo]||null}var So=[],ko=-1;function Oo(e){return{current:e}}function Co(e){0>ko||(e.current=So[ko],So[ko]=null,ko--)}function Po(e,t){ko++,So[ko]=e.current,e.current=t}var Do={},No=Oo(Do),Io=Oo(!1),_o=Do;function Ro(e,t){var n=e.type.contextTypes;if(!n)return Do;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o,a={};for(o in n)a[o]=t[o];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=a),a}function To(e){return null!=e.childContextTypes}function Ao(){Co(Io),Co(No)}function jo(e,t,n){if(No.current!==Do)throw Error(a(168));Po(No,t),Po(Io,n)}function Lo(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,"function"!=typeof r.getChildContext)return n;for(var o in r=r.getChildContext())if(!(o in t))throw Error(a(108,W(e)||"Unknown",o));return M({},n,r)}function Mo(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Do,_o=No.current,Po(No,e),Po(Io,Io.current),!0}function Bo(e,t,n){var r=e.stateNode;if(!r)throw Error(a(169));n?(e=Lo(e,t,_o),r.__reactInternalMemoizedMergedChildContext=e,Co(Io),Co(No),Po(No,e)):Co(Io),Po(Io,n)}var Fo=null,zo=!1,Uo=!1;function $o(e){null===Fo?Fo=[e]:Fo.push(e)}function Wo(){if(!Uo&&null!==Fo){Uo=!0;var e=0,t=vt;try{var n=Fo;for(vt=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,Wo),t}finally{vt=t,Uo=!1}}return null}var Ho=[],Go=0,Vo=null,qo=0,Ko=[],Qo=0,Yo=null,Xo=1,Jo="";function Zo(e,t){Ho[Go++]=qo,Ho[Go++]=Vo,Vo=e,qo=t}function ea(e,t,n){Ko[Qo++]=Xo,Ko[Qo++]=Jo,Ko[Qo++]=Yo,Yo=e;var r=Xo;e=Jo;var o=32-it(r)-1;r&=~(1<<o),n+=1;var a=32-it(t)+o;if(30<a){var i=o-o%5;a=(r&(1<<i)-1).toString(32),r>>=i,o-=i,Xo=1<<32-it(t)+o|n<<o|r,Jo=a+e}else Xo=1<<a|n<<o|r,Jo=e}function ta(e){null!==e.return&&(Zo(e,1),ea(e,1,0))}function na(e){for(;e===Vo;)Vo=Ho[--Go],Ho[Go]=null,qo=Ho[--Go],Ho[Go]=null;for(;e===Yo;)Yo=Ko[--Qo],Ko[Qo]=null,Jo=Ko[--Qo],Ko[Qo]=null,Xo=Ko[--Qo],Ko[Qo]=null}var ra=null,oa=null,aa=!1,ia=null;function la(e,t){var n=Rc(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,null===(t=e.deletions)?(e.deletions=[n],e.flags|=16):t.push(n)}function sa(e,t){switch(e.tag){case 5:var n=e.type;return null!==(t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,ra=e,oa=co(t.firstChild),!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,ra=e,oa=null,!0);case 13:return null!==(t=8!==t.nodeType?null:t)&&(n=null!==Yo?{id:Xo,overflow:Jo}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},(n=Rc(18,null,null,0)).stateNode=t,n.return=e,e.child=n,ra=e,oa=null,!0);default:return!1}}function ca(e){return 0!=(1&e.mode)&&0==(128&e.flags)}function ua(e){if(aa){var t=oa;if(t){var n=t;if(!sa(e,t)){if(ca(e))throw Error(a(418));t=co(n.nextSibling);var r=ra;t&&sa(e,t)?la(r,n):(e.flags=-4097&e.flags|2,aa=!1,ra=e)}}else{if(ca(e))throw Error(a(418));e.flags=-4097&e.flags|2,aa=!1,ra=e}}}function da(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;ra=e}function fa(e){if(e!==ra)return!1;if(!aa)return da(e),aa=!0,!1;var t;if((t=3!==e.tag)&&!(t=5!==e.tag)&&(t="head"!==(t=e.type)&&"body"!==t&&!no(e.type,e.memoizedProps)),t&&(t=oa)){if(ca(e))throw pa(),Error(a(418));for(;t;)la(e,t),t=co(t.nextSibling)}if(da(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(a(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var n=e.data;if("/$"===n){if(0===t){oa=co(e.nextSibling);break e}t--}else"$"!==n&&"$!"!==n&&"$?"!==n||t++}e=e.nextSibling}oa=null}}else oa=ra?co(e.stateNode.nextSibling):null;return!0}function pa(){for(var e=oa;e;)e=co(e.nextSibling)}function ma(){oa=ra=null,aa=!1}function ga(e){null===ia?ia=[e]:ia.push(e)}var ha=w.ReactCurrentBatchConfig;function ba(e,t){if(e&&e.defaultProps){for(var n in t=M({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}var ya=Oo(null),va=null,wa=null,Ea=null;function xa(){Ea=wa=va=null}function Sa(e){var t=ya.current;Co(ya),e._currentValue=t}function ka(e,t,n){for(;null!==e;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,null!==r&&(r.childLanes|=t)):null!==r&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Oa(e,t){va=e,Ea=wa=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(0!=(e.lanes&t)&&(wl=!0),e.firstContext=null)}function Ca(e){var t=e._currentValue;if(Ea!==e)if(e={context:e,memoizedValue:t,next:null},null===wa){if(null===va)throw Error(a(308));wa=e,va.dependencies={lanes:0,firstContext:e}}else wa=wa.next=e;return t}var Pa=null;function Da(e){null===Pa?Pa=[e]:Pa.push(e)}function Na(e,t,n,r){var o=t.interleaved;return null===o?(n.next=n,Da(t)):(n.next=o.next,o.next=n),t.interleaved=n,Ia(e,r)}function Ia(e,t){e.lanes|=t;var n=e.alternate;for(null!==n&&(n.lanes|=t),n=e,e=e.return;null!==e;)e.childLanes|=t,null!==(n=e.alternate)&&(n.childLanes|=t),n=e,e=e.return;return 3===n.tag?n.stateNode:null}var _a=!1;function Ra(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Ta(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Aa(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function ja(e,t,n){var r=e.updateQueue;if(null===r)return null;if(r=r.shared,0!=(2&Ns)){var o=r.pending;return null===o?t.next=t:(t.next=o.next,o.next=t),r.pending=t,Ia(e,n)}return null===(o=r.interleaved)?(t.next=t,Da(r)):(t.next=o.next,o.next=t),r.interleaved=t,Ia(e,n)}function La(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 Ma(e,t){var n=e.updateQueue,r=e.alternate;if(null!==r&&n===(r=r.updateQueue)){var o=null,a=null;if(null!==(n=n.firstBaseUpdate)){do{var i={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};null===a?o=a=i:a=a.next=i,n=n.next}while(null!==n);null===a?o=a=t:a=a.next=t}else o=a=t;return n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:a,shared:r.shared,effects:r.effects},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Ba(e,t,n,r){var o=e.updateQueue;_a=!1;var a=o.firstBaseUpdate,i=o.lastBaseUpdate,l=o.shared.pending;if(null!==l){o.shared.pending=null;var s=l,c=s.next;s.next=null,null===i?a=c:i.next=c,i=s;var u=e.alternate;null!==u&&(l=(u=u.updateQueue).lastBaseUpdate)!==i&&(null===l?u.firstBaseUpdate=c:l.next=c,u.lastBaseUpdate=s)}if(null!==a){var d=o.baseState;for(i=0,u=c=s=null,l=a;;){var f=l.lane,p=l.eventTime;if((r&f)===f){null!==u&&(u=u.next={eventTime:p,lane:0,tag:l.tag,payload:l.payload,callback:l.callback,next:null});e:{var m=e,g=l;switch(f=t,p=n,g.tag){case 1:if("function"==typeof(m=g.payload)){d=m.call(p,d,f);break e}d=m;break e;case 3:m.flags=-65537&m.flags|128;case 0:if(null==(f="function"==typeof(m=g.payload)?m.call(p,d,f):m))break e;d=M({},d,f);break e;case 2:_a=!0}}null!==l.callback&&0!==l.lane&&(e.flags|=64,null===(f=o.effects)?o.effects=[l]:f.push(l))}else p={eventTime:p,lane:f,tag:l.tag,payload:l.payload,callback:l.callback,next:null},null===u?(c=u=p,s=d):u=u.next=p,i|=f;if(null===(l=l.next)){if(null===(l=o.shared.pending))break;l=(f=l).next,f.next=null,o.lastBaseUpdate=f,o.shared.pending=null}}if(null===u&&(s=d),o.baseState=s,o.firstBaseUpdate=c,o.lastBaseUpdate=u,null!==(t=o.shared.interleaved)){o=t;do{i|=o.lane,o=o.next}while(o!==t)}else null===a&&(o.shared.lanes=0);Ms|=i,e.lanes=i,e.memoizedState=d}}function Fa(e,t,n){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var r=e[t],o=r.callback;if(null!==o){if(r.callback=null,r=n,"function"!=typeof o)throw Error(a(191,o));o.call(r)}}}var za=(new r.Component).refs;function Ua(e,t,n,r){n=null==(n=n(r,t=e.memoizedState))?t:M({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}var $a={isMounted:function(e){return!!(e=e._reactInternals)&&$e(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=tc(),o=nc(e),a=Aa(r,o);a.payload=t,null!=n&&(a.callback=n),null!==(t=ja(e,a,o))&&(rc(t,e,o,r),La(t,e,o))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=tc(),o=nc(e),a=Aa(r,o);a.tag=1,a.payload=t,null!=n&&(a.callback=n),null!==(t=ja(e,a,o))&&(rc(t,e,o,r),La(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=tc(),r=nc(e),o=Aa(n,r);o.tag=2,null!=t&&(o.callback=t),null!==(t=ja(e,o,r))&&(rc(t,e,r,n),La(t,e,r))}};function Wa(e,t,n,r,o,a,i){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,a,i):!(t.prototype&&t.prototype.isPureReactComponent&&sr(n,r)&&sr(o,a))}function Ha(e,t,n){var r=!1,o=Do,a=t.contextType;return"object"==typeof a&&null!==a?a=Ca(a):(o=To(t)?_o:No.current,a=(r=null!=(r=t.contextTypes))?Ro(e,o):Do),t=new t(n,a),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=$a,e.stateNode=t,t._reactInternals=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=a),t}function Ga(e,t,n,r){e=t.state,"function"==typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"==typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&$a.enqueueReplaceState(t,t.state,null)}function Va(e,t,n,r){var o=e.stateNode;o.props=n,o.state=e.memoizedState,o.refs=za,Ra(e);var a=t.contextType;"object"==typeof a&&null!==a?o.context=Ca(a):(a=To(t)?_o:No.current,o.context=Ro(e,a)),o.state=e.memoizedState,"function"==typeof(a=t.getDerivedStateFromProps)&&(Ua(e,t,a,n),o.state=e.memoizedState),"function"==typeof t.getDerivedStateFromProps||"function"==typeof o.getSnapshotBeforeUpdate||"function"!=typeof o.UNSAFE_componentWillMount&&"function"!=typeof o.componentWillMount||(t=o.state,"function"==typeof o.componentWillMount&&o.componentWillMount(),"function"==typeof o.UNSAFE_componentWillMount&&o.UNSAFE_componentWillMount(),t!==o.state&&$a.enqueueReplaceState(o,o.state,null),Ba(e,n,o,r),o.state=e.memoizedState),"function"==typeof o.componentDidMount&&(e.flags|=4194308)}function qa(e,t,n){if(null!==(e=n.ref)&&"function"!=typeof e&&"object"!=typeof e){if(n._owner){if(n=n._owner){if(1!==n.tag)throw Error(a(309));var r=n.stateNode}if(!r)throw Error(a(147,e));var o=r,i=""+e;return null!==t&&null!==t.ref&&"function"==typeof t.ref&&t.ref._stringRef===i?t.ref:(t=function(e){var t=o.refs;t===za&&(t=o.refs={}),null===e?delete t[i]:t[i]=e},t._stringRef=i,t)}if("string"!=typeof e)throw Error(a(284));if(!n._owner)throw Error(a(290,e))}return e}function Ka(e,t){throw e=Object.prototype.toString.call(t),Error(a(31,"[object Object]"===e?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Qa(e){return(0,e._init)(e._payload)}function Ya(e){function t(t,n){if(e){var r=t.deletions;null===r?(t.deletions=[n],t.flags|=16):r.push(n)}}function n(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function r(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function o(e,t){return(e=Ac(e,t)).index=0,e.sibling=null,e}function i(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.flags|=2,n):r:(t.flags|=2,n):(t.flags|=1048576,n)}function l(t){return e&&null===t.alternate&&(t.flags|=2),t}function s(e,t,n,r){return null===t||6!==t.tag?((t=Bc(n,e.mode,r)).return=e,t):((t=o(t,n)).return=e,t)}function c(e,t,n,r){var a=n.type;return a===S?d(e,t,n.props.children,r,n.key):null!==t&&(t.elementType===a||"object"==typeof a&&null!==a&&a.$$typeof===R&&Qa(a)===t.type)?((r=o(t,n.props)).ref=qa(e,t,n),r.return=e,r):((r=jc(n.type,n.key,n.props,null,e.mode,r)).ref=qa(e,t,n),r.return=e,r)}function u(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=Fc(n,e.mode,r)).return=e,t):((t=o(t,n.children||[])).return=e,t)}function d(e,t,n,r,a){return null===t||7!==t.tag?((t=Lc(n,e.mode,r,a)).return=e,t):((t=o(t,n)).return=e,t)}function f(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=jc(t.type,t.key,t.props,null,e.mode,n)).ref=qa(e,null,t),n.return=e,n;case x:return(t=Fc(t,e.mode,n)).return=e,t;case R:return f(e,(0,t._init)(t._payload),n)}if(te(t)||j(t))return(t=Lc(t,e.mode,n,null)).return=e,t;Ka(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:s(e,t,""+n,r);if("object"==typeof n&&null!==n){switch(n.$$typeof){case E:return n.key===o?c(e,t,n,r):null;case x:return n.key===o?u(e,t,n,r):null;case R:return p(e,t,(o=n._init)(n._payload),r)}if(te(n)||j(n))return null!==o?null:d(e,t,n,r,null);Ka(e,n)}return null}function m(e,t,n,r,o){if("string"==typeof r&&""!==r||"number"==typeof r)return s(t,e=e.get(n)||null,""+r,o);if("object"==typeof r&&null!==r){switch(r.$$typeof){case E:return c(t,e=e.get(null===r.key?n:r.key)||null,r,o);case x:return u(t,e=e.get(null===r.key?n:r.key)||null,r,o);case R:return m(e,t,n,(0,r._init)(r._payload),o)}if(te(r)||j(r))return d(t,e=e.get(n)||null,r,o,null);Ka(t,r)}return null}function g(o,a,l,s){for(var c=null,u=null,d=a,g=a=0,h=null;null!==d&&g<l.length;g++){d.index>g?(h=d,d=null):h=d.sibling;var b=p(o,d,l[g],s);if(null===b){null===d&&(d=h);break}e&&d&&null===b.alternate&&t(o,d),a=i(b,a,g),null===u?c=b:u.sibling=b,u=b,d=h}if(g===l.length)return n(o,d),aa&&Zo(o,g),c;if(null===d){for(;g<l.length;g++)null!==(d=f(o,l[g],s))&&(a=i(d,a,g),null===u?c=d:u.sibling=d,u=d);return aa&&Zo(o,g),c}for(d=r(o,d);g<l.length;g++)null!==(h=m(d,o,g,l[g],s))&&(e&&null!==h.alternate&&d.delete(null===h.key?g:h.key),a=i(h,a,g),null===u?c=h:u.sibling=h,u=h);return e&&d.forEach((function(e){return t(o,e)})),aa&&Zo(o,g),c}function h(o,l,s,c){var u=j(s);if("function"!=typeof u)throw Error(a(150));if(null==(s=u.call(s)))throw Error(a(151));for(var d=u=null,g=l,h=l=0,b=null,y=s.next();null!==g&&!y.done;h++,y=s.next()){g.index>h?(b=g,g=null):b=g.sibling;var v=p(o,g,y.value,c);if(null===v){null===g&&(g=b);break}e&&g&&null===v.alternate&&t(o,g),l=i(v,l,h),null===d?u=v:d.sibling=v,d=v,g=b}if(y.done)return n(o,g),aa&&Zo(o,h),u;if(null===g){for(;!y.done;h++,y=s.next())null!==(y=f(o,y.value,c))&&(l=i(y,l,h),null===d?u=y:d.sibling=y,d=y);return aa&&Zo(o,h),u}for(g=r(o,g);!y.done;h++,y=s.next())null!==(y=m(g,o,h,y.value,c))&&(e&&null!==y.alternate&&g.delete(null===y.key?h:y.key),l=i(y,l,h),null===d?u=y:d.sibling=y,d=y);return e&&g.forEach((function(e){return t(o,e)})),aa&&Zo(o,h),u}return function e(r,a,i,s){if("object"==typeof i&&null!==i&&i.type===S&&null===i.key&&(i=i.props.children),"object"==typeof i&&null!==i){switch(i.$$typeof){case E:e:{for(var c=i.key,u=a;null!==u;){if(u.key===c){if((c=i.type)===S){if(7===u.tag){n(r,u.sibling),(a=o(u,i.props.children)).return=r,r=a;break e}}else if(u.elementType===c||"object"==typeof c&&null!==c&&c.$$typeof===R&&Qa(c)===u.type){n(r,u.sibling),(a=o(u,i.props)).ref=qa(r,u,i),a.return=r,r=a;break e}n(r,u);break}t(r,u),u=u.sibling}i.type===S?((a=Lc(i.props.children,r.mode,s,i.key)).return=r,r=a):((s=jc(i.type,i.key,i.props,null,r.mode,s)).ref=qa(r,a,i),s.return=r,r=s)}return l(r);case x:e:{for(u=i.key;null!==a;){if(a.key===u){if(4===a.tag&&a.stateNode.containerInfo===i.containerInfo&&a.stateNode.implementation===i.implementation){n(r,a.sibling),(a=o(a,i.children||[])).return=r,r=a;break e}n(r,a);break}t(r,a),a=a.sibling}(a=Fc(i,r.mode,s)).return=r,r=a}return l(r);case R:return e(r,a,(u=i._init)(i._payload),s)}if(te(i))return g(r,a,i,s);if(j(i))return h(r,a,i,s);Ka(r,i)}return"string"==typeof i&&""!==i||"number"==typeof i?(i=""+i,null!==a&&6===a.tag?(n(r,a.sibling),(a=o(a,i)).return=r,r=a):(n(r,a),(a=Bc(i,r.mode,s)).return=r,r=a),l(r)):n(r,a)}}var Xa=Ya(!0),Ja=Ya(!1),Za={},ei=Oo(Za),ti=Oo(Za),ni=Oo(Za);function ri(e){if(e===Za)throw Error(a(174));return e}function oi(e,t){switch(Po(ni,t),Po(ti,e),Po(ei,Za),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:se(null,"");break;default:t=se(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}Co(ei),Po(ei,t)}function ai(){Co(ei),Co(ti),Co(ni)}function ii(e){ri(ni.current);var t=ri(ei.current),n=se(t,e.type);t!==n&&(Po(ti,e),Po(ei,n))}function li(e){ti.current===e&&(Co(ei),Co(ti))}var si=Oo(0);function ci(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!=(128&t.flags))return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var ui=[];function di(){for(var e=0;e<ui.length;e++)ui[e]._workInProgressVersionPrimary=null;ui.length=0}var fi=w.ReactCurrentDispatcher,pi=w.ReactCurrentBatchConfig,mi=0,gi=null,hi=null,bi=null,yi=!1,vi=!1,wi=0,Ei=0;function xi(){throw Error(a(321))}function Si(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!lr(e[n],t[n]))return!1;return!0}function ki(e,t,n,r,o,i){if(mi=i,gi=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,fi.current=null===e||null===e.memoizedState?ll:sl,e=n(r,o),vi){i=0;do{if(vi=!1,wi=0,25<=i)throw Error(a(301));i+=1,bi=hi=null,t.updateQueue=null,fi.current=cl,e=n(r,o)}while(vi)}if(fi.current=il,t=null!==hi&&null!==hi.next,mi=0,bi=hi=gi=null,yi=!1,t)throw Error(a(300));return e}function Oi(){var e=0!==wi;return wi=0,e}function Ci(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===bi?gi.memoizedState=bi=e:bi=bi.next=e,bi}function Pi(){if(null===hi){var e=gi.alternate;e=null!==e?e.memoizedState:null}else e=hi.next;var t=null===bi?gi.memoizedState:bi.next;if(null!==t)bi=t,hi=e;else{if(null===e)throw Error(a(310));e={memoizedState:(hi=e).memoizedState,baseState:hi.baseState,baseQueue:hi.baseQueue,queue:hi.queue,next:null},null===bi?gi.memoizedState=bi=e:bi=bi.next=e}return bi}function Di(e,t){return"function"==typeof t?t(e):t}function Ni(e){var t=Pi(),n=t.queue;if(null===n)throw Error(a(311));n.lastRenderedReducer=e;var r=hi,o=r.baseQueue,i=n.pending;if(null!==i){if(null!==o){var l=o.next;o.next=i.next,i.next=l}r.baseQueue=o=i,n.pending=null}if(null!==o){i=o.next,r=r.baseState;var s=l=null,c=null,u=i;do{var d=u.lane;if((mi&d)===d)null!==c&&(c=c.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),r=u.hasEagerState?u.eagerState:e(r,u.action);else{var f={lane:d,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};null===c?(s=c=f,l=r):c=c.next=f,gi.lanes|=d,Ms|=d}u=u.next}while(null!==u&&u!==i);null===c?l=r:c.next=s,lr(r,t.memoizedState)||(wl=!0),t.memoizedState=r,t.baseState=l,t.baseQueue=c,n.lastRenderedState=r}if(null!==(e=n.interleaved)){o=e;do{i=o.lane,gi.lanes|=i,Ms|=i,o=o.next}while(o!==e)}else null===o&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function Ii(e){var t=Pi(),n=t.queue;if(null===n)throw Error(a(311));n.lastRenderedReducer=e;var r=n.dispatch,o=n.pending,i=t.memoizedState;if(null!==o){n.pending=null;var l=o=o.next;do{i=e(i,l.action),l=l.next}while(l!==o);lr(i,t.memoizedState)||(wl=!0),t.memoizedState=i,null===t.baseQueue&&(t.baseState=i),n.lastRenderedState=i}return[i,r]}function _i(){}function Ri(e,t){var n=gi,r=Pi(),o=t(),i=!lr(r.memoizedState,o);if(i&&(r.memoizedState=o,wl=!0),r=r.queue,Hi(ji.bind(null,n,r,e),[e]),r.getSnapshot!==t||i||null!==bi&&1&bi.memoizedState.tag){if(n.flags|=2048,Fi(9,Ai.bind(null,n,r,o,t),void 0,null),null===Is)throw Error(a(349));0!=(30&mi)||Ti(n,t,o)}return o}function Ti(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},null===(t=gi.updateQueue)?(t={lastEffect:null,stores:null},gi.updateQueue=t,t.stores=[e]):null===(n=t.stores)?t.stores=[e]:n.push(e)}function Ai(e,t,n,r){t.value=n,t.getSnapshot=r,Li(t)&&Mi(e)}function ji(e,t,n){return n((function(){Li(t)&&Mi(e)}))}function Li(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!lr(e,n)}catch(e){return!0}}function Mi(e){var t=Ia(e,1);null!==t&&rc(t,e,1,-1)}function Bi(e){var t=Ci();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Di,lastRenderedState:e},t.queue=e,e=e.dispatch=nl.bind(null,gi,e),[t.memoizedState,e]}function Fi(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=gi.updateQueue)?(t={lastEffect:null,stores:null},gi.updateQueue=t,t.lastEffect=e.next=e):null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function zi(){return Pi().memoizedState}function Ui(e,t,n,r){var o=Ci();gi.flags|=e,o.memoizedState=Fi(1|t,n,void 0,void 0===r?null:r)}function $i(e,t,n,r){var o=Pi();r=void 0===r?null:r;var a=void 0;if(null!==hi){var i=hi.memoizedState;if(a=i.destroy,null!==r&&Si(r,i.deps))return void(o.memoizedState=Fi(t,n,a,r))}gi.flags|=e,o.memoizedState=Fi(1|t,n,a,r)}function Wi(e,t){return Ui(8390656,8,e,t)}function Hi(e,t){return $i(2048,8,e,t)}function Gi(e,t){return $i(4,2,e,t)}function Vi(e,t){return $i(4,4,e,t)}function qi(e,t){return"function"==typeof t?(e=e(),t(e),function(){t(null)}):null!=t?(e=e(),t.current=e,function(){t.current=null}):void 0}function Ki(e,t,n){return n=null!=n?n.concat([e]):null,$i(4,4,qi.bind(null,t,e),n)}function Qi(){}function Yi(e,t){var n=Pi();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&Si(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Xi(e,t){var n=Pi();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&Si(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Ji(e,t,n){return 0==(21&mi)?(e.baseState&&(e.baseState=!1,wl=!0),e.memoizedState=n):(lr(n,t)||(n=gt(),gi.lanes|=n,Ms|=n,e.baseState=!0),t)}function Zi(e,t){var n=vt;vt=0!==n&&4>n?n:4,e(!0);var r=pi.transition;pi.transition={};try{e(!1),t()}finally{vt=n,pi.transition=r}}function el(){return Pi().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=Na(e,t,n,r))&&(rc(n,e,r,tc()),al(n,t,r))}function nl(e,t,n){var r=nc(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(rl(e))ol(t,o);else{var a=e.alternate;if(0===e.lanes&&(null===a||0===a.lanes)&&null!==(a=t.lastRenderedReducer))try{var i=t.lastRenderedState,l=a(i,n);if(o.hasEagerState=!0,o.eagerState=l,lr(l,i)){var s=t.interleaved;return null===s?(o.next=o,Da(t)):(o.next=s.next,s.next=o),void(t.interleaved=o)}}catch(e){}null!==(n=Na(e,t,o,r))&&(rc(n,e,r,o=tc()),al(n,t,r))}}function rl(e){var t=e.alternate;return e===gi||null!==t&&t===gi}function ol(e,t){vi=yi=!0;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function al(e,t,n){if(0!=(4194240&n)){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,yt(e,n)}}var il={readContext:Ca,useCallback:xi,useContext:xi,useEffect:xi,useImperativeHandle:xi,useInsertionEffect:xi,useLayoutEffect:xi,useMemo:xi,useReducer:xi,useRef:xi,useState:xi,useDebugValue:xi,useDeferredValue:xi,useTransition:xi,useMutableSource:xi,useSyncExternalStore:xi,useId:xi,unstable_isNewReconciler:!1},ll={readContext:Ca,useCallback:function(e,t){return Ci().memoizedState=[e,void 0===t?null:t],e},useContext:Ca,useEffect:Wi,useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,Ui(4194308,4,qi.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Ui(4194308,4,e,t)},useInsertionEffect:function(e,t){return Ui(4,2,e,t)},useMemo:function(e,t){var n=Ci();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Ci();return t=void 0!==n?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=tl.bind(null,gi,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},Ci().memoizedState=e},useState:Bi,useDebugValue:Qi,useDeferredValue:function(e){return Ci().memoizedState=e},useTransition:function(){var e=Bi(!1),t=e[0];return e=Zi.bind(null,e[1]),Ci().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=gi,o=Ci();if(aa){if(void 0===n)throw Error(a(407));n=n()}else{if(n=t(),null===Is)throw Error(a(349));0!=(30&mi)||Ti(r,t,n)}o.memoizedState=n;var i={value:n,getSnapshot:t};return o.queue=i,Wi(ji.bind(null,r,i,e),[e]),r.flags|=2048,Fi(9,Ai.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=Ci(),t=Is.identifierPrefix;if(aa){var n=Jo;t=":"+t+"R"+(n=(Xo&~(1<<32-it(Xo)-1)).toString(32)+n),0<(n=wi++)&&(t+="H"+n.toString(32)),t+=":"}else t=":"+t+"r"+(n=Ei++).toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},sl={readContext:Ca,useCallback:Yi,useContext:Ca,useEffect:Hi,useImperativeHandle:Ki,useInsertionEffect:Gi,useLayoutEffect:Vi,useMemo:Xi,useReducer:Ni,useRef:zi,useState:function(){return Ni(Di)},useDebugValue:Qi,useDeferredValue:function(e){return Ji(Pi(),hi.memoizedState,e)},useTransition:function(){return[Ni(Di)[0],Pi().memoizedState]},useMutableSource:_i,useSyncExternalStore:Ri,useId:el,unstable_isNewReconciler:!1},cl={readContext:Ca,useCallback:Yi,useContext:Ca,useEffect:Hi,useImperativeHandle:Ki,useInsertionEffect:Gi,useLayoutEffect:Vi,useMemo:Xi,useReducer:Ii,useRef:zi,useState:function(){return Ii(Di)},useDebugValue:Qi,useDeferredValue:function(e){var t=Pi();return null===hi?t.memoizedState=e:Ji(t,hi.memoizedState,e)},useTransition:function(){return[Ii(Di)[0],Pi().memoizedState]},useMutableSource:_i,useSyncExternalStore:Ri,useId:el,unstable_isNewReconciler:!1};function ul(e,t){try{var n="",r=t;do{n+=U(r),r=r.return}while(r);var o=n}catch(e){o="\nError generating stack: "+e.message+"\n"+e.stack}return{value:e,source:t,stack:o,digest:null}}function dl(e,t,n){return{value:e,source:null,stack:null!=n?n:null,digest:null!=t?t:null}}function fl(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=Aa(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Gs||(Gs=!0,Vs=r),fl(0,t)},n}function gl(e,t,n){(n=Aa(-1,n)).tag=3;var r=e.type.getDerivedStateFromError;if("function"==typeof r){var o=t.value;n.payload=function(){return r(o)},n.callback=function(){fl(0,t)}}var a=e.stateNode;return null!==a&&"function"==typeof a.componentDidCatch&&(n.callback=function(){fl(0,t),"function"!=typeof r&&(null===qs?qs=new Set([this]):qs.add(this));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}function hl(e,t,n){var r=e.pingCache;if(null===r){r=e.pingCache=new 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 bl(e){do{var t;if((t=13===e.tag)&&(t=null===(t=e.memoizedState)||null!==t.dehydrated),t)return e;e=e.return}while(null!==e);return null}function 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=Aa(-1,1)).tag=2,ja(n,t,1))),n.lanes|=1),e):(e.flags|=65536,e.lanes=o,e)}var vl=w.ReactCurrentOwner,wl=!1;function El(e,t,n,r){t.child=null===e?Ja(t,null,n,r):Xa(t,e.child,n,r)}function xl(e,t,n,r,o){n=n.render;var a=t.ref;return Oa(t,o),r=ki(e,t,n,r,a,o),n=Oi(),null===e||wl?(aa&&n&&ta(t),t.flags|=1,El(e,t,r,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Gl(e,t,o))}function Sl(e,t,n,r,o){if(null===e){var a=n.type;return"function"!=typeof a||Tc(a)||void 0!==a.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=jc(n.type,null,r,t,t.mode,o)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=a,kl(e,t,a,r,o))}if(a=e.child,0==(e.lanes&o)){var i=a.memoizedProps;if((n=null!==(n=n.compare)?n:sr)(i,r)&&e.ref===t.ref)return Gl(e,t,o)}return t.flags|=1,(e=Ac(a,r)).ref=t.ref,e.return=t,t.child=e}function kl(e,t,n,r,o){if(null!==e){var a=e.memoizedProps;if(sr(a,r)&&e.ref===t.ref){if(wl=!1,t.pendingProps=r=a,0==(e.lanes&o))return t.lanes=e.lanes,Gl(e,t,o);0!=(131072&e.flags)&&(wl=!0)}}return Pl(e,t,n,r,o)}function Ol(e,t,n){var r=t.pendingProps,o=r.children,a=null!==e?e.memoizedState:null;if("hidden"===r.mode)if(0==(1&t.mode))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Po(As,Ts),Ts|=n;else{if(0==(1073741824&n))return e=null!==a?a.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Po(As,Ts),Ts|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=null!==a?a.baseLanes:n,Po(As,Ts),Ts|=r}else null!==a?(r=a.baseLanes|n,t.memoizedState=null):r=n,Po(As,Ts),Ts|=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 a=To(n)?_o:No.current;return a=Ro(t,a),Oa(t,o),n=ki(e,t,n,r,a,o),r=Oi(),null===e||wl?(aa&&r&&ta(t),t.flags|=1,El(e,t,n,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Gl(e,t,o))}function Dl(e,t,n,r,o){if(To(n)){var a=!0;Mo(t)}else a=!1;if(Oa(t,o),null===t.stateNode)Hl(e,t),Ha(t,n,r),Va(t,n,r,o),r=!0;else if(null===e){var i=t.stateNode,l=t.memoizedProps;i.props=l;var s=i.context,c=n.contextType;c="object"==typeof c&&null!==c?Ca(c):Ro(t,c=To(n)?_o:No.current);var u=n.getDerivedStateFromProps,d="function"==typeof u||"function"==typeof i.getSnapshotBeforeUpdate;d||"function"!=typeof i.UNSAFE_componentWillReceiveProps&&"function"!=typeof i.componentWillReceiveProps||(l!==r||s!==c)&&Ga(t,i,r,c),_a=!1;var f=t.memoizedState;i.state=f,Ba(t,r,i,o),s=t.memoizedState,l!==r||f!==s||Io.current||_a?("function"==typeof u&&(Ua(t,n,u,r),s=t.memoizedState),(l=_a||Wa(t,n,l,r,f,s,c))?(d||"function"!=typeof i.UNSAFE_componentWillMount&&"function"!=typeof i.componentWillMount||("function"==typeof i.componentWillMount&&i.componentWillMount(),"function"==typeof i.UNSAFE_componentWillMount&&i.UNSAFE_componentWillMount()),"function"==typeof i.componentDidMount&&(t.flags|=4194308)):("function"==typeof i.componentDidMount&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=s),i.props=r,i.state=s,i.context=c,r=l):("function"==typeof i.componentDidMount&&(t.flags|=4194308),r=!1)}else{i=t.stateNode,Ta(e,t),l=t.memoizedProps,c=t.type===t.elementType?l:ba(t.type,l),i.props=c,d=t.pendingProps,f=i.context,s="object"==typeof(s=n.contextType)&&null!==s?Ca(s):Ro(t,s=To(n)?_o:No.current);var p=n.getDerivedStateFromProps;(u="function"==typeof p||"function"==typeof i.getSnapshotBeforeUpdate)||"function"!=typeof i.UNSAFE_componentWillReceiveProps&&"function"!=typeof i.componentWillReceiveProps||(l!==d||f!==s)&&Ga(t,i,r,s),_a=!1,f=t.memoizedState,i.state=f,Ba(t,r,i,o);var m=t.memoizedState;l!==d||f!==m||Io.current||_a?("function"==typeof p&&(Ua(t,n,p,r),m=t.memoizedState),(c=_a||Wa(t,n,c,r,f,m,s)||!1)?(u||"function"!=typeof i.UNSAFE_componentWillUpdate&&"function"!=typeof i.componentWillUpdate||("function"==typeof i.componentWillUpdate&&i.componentWillUpdate(r,m,s),"function"==typeof i.UNSAFE_componentWillUpdate&&i.UNSAFE_componentWillUpdate(r,m,s)),"function"==typeof i.componentDidUpdate&&(t.flags|=4),"function"==typeof i.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!=typeof i.componentDidUpdate||l===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),"function"!=typeof i.getSnapshotBeforeUpdate||l===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=m),i.props=r,i.state=m,i.context=s,r=c):("function"!=typeof i.componentDidUpdate||l===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),"function"!=typeof i.getSnapshotBeforeUpdate||l===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),r=!1)}return Nl(e,t,n,r,a,o)}function Nl(e,t,n,r,o,a){Cl(e,t);var i=0!=(128&t.flags);if(!r&&!i)return o&&Bo(t,n,!1),Gl(e,t,a);r=t.stateNode,vl.current=t;var l=i&&"function"!=typeof n.getDerivedStateFromError?null:r.render();return t.flags|=1,null!==e&&i?(t.child=Xa(t,e.child,null,a),t.child=Xa(t,null,l,a)):El(e,t,l,a),t.memoizedState=r.state,o&&Bo(t,n,!0),t.child}function Il(e){var t=e.stateNode;t.pendingContext?jo(0,t.pendingContext,t.pendingContext!==t.context):t.context&&jo(0,t.context,!1),oi(e,t.containerInfo)}function _l(e,t,n,r,o){return ma(),ga(o),t.flags|=256,El(e,t,n,r),t.child}var Rl,Tl,Al,jl,Ll={dehydrated:null,treeContext:null,retryLane:0};function Ml(e){return{baseLanes:e,cachePool:null,transitions:null}}function Bl(e,t,n){var r,o=t.pendingProps,i=si.current,l=!1,s=0!=(128&t.flags);if((r=s)||(r=(null===e||null!==e.memoizedState)&&0!=(2&i)),r?(l=!0,t.flags&=-129):null!==e&&null===e.memoizedState||(i|=1),Po(si,1&i),null===e)return ua(t),null!==(e=t.memoizedState)&&null!==(e=e.dehydrated)?(0==(1&t.mode)?t.lanes=1:"$!"===e.data?t.lanes=8:t.lanes=1073741824,null):(s=o.children,e=o.fallback,l?(o=t.mode,l=t.child,s={mode:"hidden",children:s},0==(1&o)&&null!==l?(l.childLanes=0,l.pendingProps=s):l=Mc(s,o,0,null),e=Lc(e,o,n,null),l.return=t,e.return=t,l.sibling=e,t.child=l,t.child.memoizedState=Ml(n),t.memoizedState=Ll,e):Fl(t,s));if(null!==(i=e.memoizedState)&&null!==(r=i.dehydrated))return function(e,t,n,r,o,i,l){if(n)return 256&t.flags?(t.flags&=-257,zl(e,t,l,r=dl(Error(a(422))))):null!==t.memoizedState?(t.child=e.child,t.flags|=128,null):(i=r.fallback,o=t.mode,r=Mc({mode:"visible",children:r.children},o,0,null),(i=Lc(i,o,l,null)).flags|=2,r.return=t,i.return=t,r.sibling=i,t.child=r,0!=(1&t.mode)&&Xa(t,e.child,null,l),t.child.memoizedState=Ml(l),t.memoizedState=Ll,i);if(0==(1&t.mode))return zl(e,t,l,null);if("$!"===o.data){if(r=o.nextSibling&&o.nextSibling.dataset)var s=r.dgst;return r=s,zl(e,t,l,r=dl(i=Error(a(419)),r,void 0))}if(s=0!=(l&e.childLanes),wl||s){if(null!==(r=Is)){switch(l&-l){case 4:o=2;break;case 16:o=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:o=32;break;case 536870912:o=268435456;break;default:o=0}0!==(o=0!=(o&(r.suspendedLanes|l))?0:o)&&o!==i.retryLane&&(i.retryLane=o,Ia(e,o),rc(r,e,o,-1))}return hc(),zl(e,t,l,r=dl(Error(a(421))))}return"$?"===o.data?(t.flags|=128,t.child=e.child,t=Dc.bind(null,e),o._reactRetry=t,null):(e=i.treeContext,oa=co(o.nextSibling),ra=t,aa=!0,ia=null,null!==e&&(Ko[Qo++]=Xo,Ko[Qo++]=Jo,Ko[Qo++]=Yo,Xo=e.id,Jo=e.overflow,Yo=t),(t=Fl(t,r.children)).flags|=4096,t)}(e,t,s,o,r,i,n);if(l){l=o.fallback,s=t.mode,r=(i=e.child).sibling;var c={mode:"hidden",children:o.children};return 0==(1&s)&&t.child!==i?((o=t.child).childLanes=0,o.pendingProps=c,t.deletions=null):(o=Ac(i,c)).subtreeFlags=14680064&i.subtreeFlags,null!==r?l=Ac(r,l):(l=Lc(l,s,n,null)).flags|=2,l.return=t,o.return=t,o.sibling=l,t.child=o,o=l,l=t.child,s=null===(s=e.child.memoizedState)?Ml(n):{baseLanes:s.baseLanes|n,cachePool:null,transitions:s.transitions},l.memoizedState=s,l.childLanes=e.childLanes&~n,t.memoizedState=Ll,o}return e=(l=e.child).sibling,o=Ac(l,{mode:"visible",children:o.children}),0==(1&t.mode)&&(o.lanes=n),o.return=t,o.sibling=null,null!==e&&(null===(n=t.deletions)?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=o,t.memoizedState=null,o}function Fl(e,t){return(t=Mc({mode:"visible",children:t},e.mode,0,null)).return=e,e.child=t}function zl(e,t,n,r){return null!==r&&ga(r),Xa(t,e.child,null,n),(e=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),ka(e.return,t,n)}function $l(e,t,n,r,o){var a=e.memoizedState;null===a?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:o}:(a.isBackwards=t,a.rendering=null,a.renderingStartTime=0,a.last=r,a.tail=n,a.tailMode=o)}function Wl(e,t,n){var r=t.pendingProps,o=r.revealOrder,a=r.tail;if(El(e,t,r.children,n),0!=(2&(r=si.current)))r=1&r|2,t.flags|=128;else{if(null!==e&&0!=(128&e.flags))e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&Ul(e,n,t);else if(19===e.tag)Ul(e,n,t);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(Po(si,r),0==(1&t.mode))t.memoizedState=null;else switch(o){case"forwards":for(n=t.child,o=null;null!==n;)null!==(e=n.alternate)&&null===ci(e)&&(o=n),n=n.sibling;null===(n=o)?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),$l(t,!1,o,n,a);break;case"backwards":for(n=null,o=t.child,t.child=null;null!==o;){if(null!==(e=o.alternate)&&null===ci(e)){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}$l(t,!0,n,null,a);break;case"together":$l(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Hl(e,t){0==(1&t.mode)&&null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Gl(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),Ms|=t.lanes,0==(n&t.childLanes))return null;if(null!==e&&t.child!==e.child)throw Error(a(153));if(null!==t.child){for(n=Ac(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=Ac(e,e.pendingProps)).return=t;n.sibling=null}return t.child}function Vl(e,t){if(!aa)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function ql(e){var t=null!==e.alternate&&e.alternate.child===e.child,n=0,r=0;if(t)for(var o=e.child;null!==o;)n|=o.lanes|o.childLanes,r|=14680064&o.subtreeFlags,r|=14680064&o.flags,o.return=e,o=o.sibling;else for(o=e.child;null!==o;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags,r|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function Kl(e,t,n){var r=t.pendingProps;switch(na(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return ql(t),null;case 1:case 17:return To(t.type)&&Ao(),ql(t),null;case 3:return r=t.stateNode,ai(),Co(Io),Co(No),di(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),null!==e&&null!==e.child||(fa(t)?t.flags|=4:null===e||e.memoizedState.isDehydrated&&0==(256&t.flags)||(t.flags|=1024,null!==ia&&(lc(ia),ia=null))),Tl(e,t),ql(t),null;case 5:li(t);var o=ri(ni.current);if(n=t.type,null!==e&&null!=t.stateNode)Al(e,t,n,r,o),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(null===t.stateNode)throw Error(a(166));return ql(t),null}if(e=ri(ei.current),fa(t)){r=t.stateNode,n=t.type;var i=t.memoizedProps;switch(r[po]=t,r[mo]=i,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<jr.length;o++)Fr(jr[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":Y(r,i),Fr("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!i.multiple},Fr("invalid",r);break;case"textarea":oe(r,i),Fr("invalid",r)}for(var s in ye(n,i),o=null,i)if(i.hasOwnProperty(s)){var c=i[s];"children"===s?"string"==typeof c?r.textContent!==c&&(!0!==i.suppressHydrationWarning&&Jr(r.textContent,c,e),o=["children",c]):"number"==typeof c&&r.textContent!==""+c&&(!0!==i.suppressHydrationWarning&&Jr(r.textContent,c,e),o=["children",""+c]):l.hasOwnProperty(s)&&null!=c&&"onScroll"===s&&Fr("scroll",r)}switch(n){case"input":V(r),Z(r,i,!0);break;case"textarea":V(r),ie(r);break;case"select":case"option":break;default:"function"==typeof i.onClick&&(r.onclick=Zr)}r=o,t.updateQueue=r,null!==r&&(t.flags|=4)}else{s=9===o.nodeType?o:o.ownerDocument,"http://www.w3.org/1999/xhtml"===e&&(e=le(n)),"http://www.w3.org/1999/xhtml"===e?"script"===n?((e=s.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"==typeof r.is?e=s.createElement(n,{is:r.is}):(e=s.createElement(n),"select"===n&&(s=e,r.multiple?s.multiple=!0:r.size&&(s.size=r.size))):e=s.createElementNS(e,n),e[po]=t,e[mo]=r,Rl(e,t,!1,!1),t.stateNode=e;e:{switch(s=ve(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<jr.length;o++)Fr(jr[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":Y(e,r),o=Q(e,r),Fr("invalid",e);break;case"option":default:o=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},o=M({},r,{value:void 0}),Fr("invalid",e);break;case"textarea":oe(e,r),o=re(e,r),Fr("invalid",e)}for(i in ye(n,o),c=o)if(c.hasOwnProperty(i)){var u=c[i];"style"===i?he(e,u):"dangerouslySetInnerHTML"===i?null!=(u=u?u.__html:void 0)&&de(e,u):"children"===i?"string"==typeof u?("textarea"!==n||""!==u)&&fe(e,u):"number"==typeof u&&fe(e,""+u):"suppressContentEditableWarning"!==i&&"suppressHydrationWarning"!==i&&"autoFocus"!==i&&(l.hasOwnProperty(i)?null!=u&&"onScroll"===i&&Fr("scroll",e):null!=u&&v(e,i,u,s))}switch(n){case"input":V(e),Z(e,r,!1);break;case"textarea":V(e),ie(e);break;case"option":null!=r.value&&e.setAttribute("value",""+H(r.value));break;case"select":e.multiple=!!r.multiple,null!=(i=r.value)?ne(e,!!r.multiple,i,!1):null!=r.defaultValue&&ne(e,!!r.multiple,r.defaultValue,!0);break;default:"function"==typeof o.onClick&&(e.onclick=Zr)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}null!==t.ref&&(t.flags|=512,t.flags|=2097152)}return ql(t),null;case 6:if(e&&null!=t.stateNode)jl(e,t,e.memoizedProps,r);else{if("string"!=typeof r&&null===t.stateNode)throw Error(a(166));if(n=ri(ni.current),ri(ei.current),fa(t)){if(r=t.stateNode,n=t.memoizedProps,r[po]=t,(i=r.nodeValue!==n)&&null!==(e=ra))switch(e.tag){case 3:Jr(r.nodeValue,n,0!=(1&e.mode));break;case 5:!0!==e.memoizedProps.suppressHydrationWarning&&Jr(r.nodeValue,n,0!=(1&e.mode))}i&&(t.flags|=4)}else(r=(9===n.nodeType?n:n.ownerDocument).createTextNode(r))[po]=t,t.stateNode=r}return ql(t),null;case 13:if(Co(si),r=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(aa&&null!==oa&&0!=(1&t.mode)&&0==(128&t.flags))pa(),ma(),t.flags|=98560,i=!1;else if(i=fa(t),null!==r&&null!==r.dehydrated){if(null===e){if(!i)throw Error(a(318));if(!(i=null!==(i=t.memoizedState)?i.dehydrated:null))throw Error(a(317));i[po]=t}else ma(),0==(128&t.flags)&&(t.memoizedState=null),t.flags|=4;ql(t),i=!1}else null!==ia&&(lc(ia),ia=null),i=!0;if(!i)return 65536&t.flags?t:null}return 0!=(128&t.flags)?(t.lanes=n,t):((r=null!==r)!=(null!==e&&null!==e.memoizedState)&&r&&(t.child.flags|=8192,0!=(1&t.mode)&&(null===e||0!=(1&si.current)?0===js&&(js=3):hc())),null!==t.updateQueue&&(t.flags|=4),ql(t),null);case 4:return ai(),Tl(e,t),null===e&&$r(t.stateNode.containerInfo),ql(t),null;case 10:return Sa(t.type._context),ql(t),null;case 19:if(Co(si),null===(i=t.memoizedState))return ql(t),null;if(r=0!=(128&t.flags),null===(s=i.rendering))if(r)Vl(i,!1);else{if(0!==js||null!==e&&0!=(128&e.flags))for(e=t.child;null!==e;){if(null!==(s=ci(e))){for(t.flags|=128,Vl(i,!1),null!==(r=s.updateQueue)&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;null!==n;)e=r,(i=n).flags&=14680066,null===(s=i.alternate)?(i.childLanes=0,i.lanes=e,i.child=null,i.subtreeFlags=0,i.memoizedProps=null,i.memoizedState=null,i.updateQueue=null,i.dependencies=null,i.stateNode=null):(i.childLanes=s.childLanes,i.lanes=s.lanes,i.child=s.child,i.subtreeFlags=0,i.deletions=null,i.memoizedProps=s.memoizedProps,i.memoizedState=s.memoizedState,i.updateQueue=s.updateQueue,i.type=s.type,e=s.dependencies,i.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return Po(si,1&si.current|2),t.child}e=e.sibling}null!==i.tail&&Xe()>Ws&&(t.flags|=128,r=!0,Vl(i,!1),t.lanes=4194304)}else{if(!r)if(null!==(e=ci(s))){if(t.flags|=128,r=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.flags|=4),Vl(i,!0),null===i.tail&&"hidden"===i.tailMode&&!s.alternate&&!aa)return ql(t),null}else 2*Xe()-i.renderingStartTime>Ws&&1073741824!==n&&(t.flags|=128,r=!0,Vl(i,!1),t.lanes=4194304);i.isBackwards?(s.sibling=t.child,t.child=s):(null!==(n=i.last)?n.sibling=s:t.child=s,i.last=s)}return null!==i.tail?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=Xe(),t.sibling=null,n=si.current,Po(si,r?1&n|2:1&n),t):(ql(t),null);case 22:case 23:return fc(),r=null!==t.memoizedState,null!==e&&null!==e.memoizedState!==r&&(t.flags|=8192),r&&0!=(1&t.mode)?0!=(1073741824&Ts)&&(ql(t),6&t.subtreeFlags&&(t.flags|=8192)):ql(t),null;case 24:case 25:return null}throw Error(a(156,t.tag))}function Ql(e,t){switch(na(t),t.tag){case 1:return To(t.type)&&Ao(),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return ai(),Co(Io),Co(No),di(),0!=(65536&(e=t.flags))&&0==(128&e)?(t.flags=-65537&e|128,t):null;case 5:return li(t),null;case 13:if(Co(si),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(a(340));ma()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return Co(si),null;case 4:return ai(),null;case 10:return Sa(t.type._context),null;case 22:case 23:return fc(),null;default:return null}}Rl=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(){},Al=function(e,t,n,r){var o=e.memoizedProps;if(o!==r){e=t.stateNode,ri(ei.current);var a,i=null;switch(n){case"input":o=Q(e,o),r=Q(e,r),i=[];break;case"select":o=M({},o,{value:void 0}),r=M({},r,{value:void 0}),i=[];break;case"textarea":o=re(e,o),r=re(e,r),i=[];break;default:"function"!=typeof o.onClick&&"function"==typeof r.onClick&&(e.onclick=Zr)}for(u in ye(n,r),n=null,o)if(!r.hasOwnProperty(u)&&o.hasOwnProperty(u)&&null!=o[u])if("style"===u){var s=o[u];for(a in s)s.hasOwnProperty(a)&&(n||(n={}),n[a]="")}else"dangerouslySetInnerHTML"!==u&&"children"!==u&&"suppressContentEditableWarning"!==u&&"suppressHydrationWarning"!==u&&"autoFocus"!==u&&(l.hasOwnProperty(u)?i||(i=[]):(i=i||[]).push(u,null));for(u in r){var c=r[u];if(s=null!=o?o[u]:void 0,r.hasOwnProperty(u)&&c!==s&&(null!=c||null!=s))if("style"===u)if(s){for(a in s)!s.hasOwnProperty(a)||c&&c.hasOwnProperty(a)||(n||(n={}),n[a]="");for(a in c)c.hasOwnProperty(a)&&s[a]!==c[a]&&(n||(n={}),n[a]=c[a])}else n||(i||(i=[]),i.push(u,n)),n=c;else"dangerouslySetInnerHTML"===u?(c=c?c.__html:void 0,s=s?s.__html:void 0,null!=c&&s!==c&&(i=i||[]).push(u,c)):"children"===u?"string"!=typeof c&&"number"!=typeof c||(i=i||[]).push(u,""+c):"suppressContentEditableWarning"!==u&&"suppressHydrationWarning"!==u&&(l.hasOwnProperty(u)?(null!=c&&"onScroll"===u&&Fr("scroll",e),i||s===c||(i=[])):(i=i||[]).push(u,c))}n&&(i=i||[]).push("style",n);var u=i;(t.updateQueue=u)&&(t.flags|=4)}},jl=function(e,t,n,r){n!==r&&(t.flags|=4)};var Yl=!1,Xl=!1,Jl="function"==typeof WeakSet?WeakSet:Set,Zl=null;function es(e,t){var n=e.ref;if(null!==n)if("function"==typeof n)try{n(null)}catch(n){Oc(e,t,n)}else n.current=null}function ts(e,t,n){try{n()}catch(n){Oc(e,t,n)}}var ns=!1;function rs(e,t,n){var r=t.updateQueue;if(null!==(r=null!==r?r.lastEffect:null)){var o=r=r.next;do{if((o.tag&e)===e){var a=o.destroy;o.destroy=void 0,void 0!==a&&ts(t,n,a)}o=o.next}while(o!==r)}}function os(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function as(e){var t=e.ref;if(null!==t){var n=e.stateNode;e.tag,e=n,"function"==typeof t?t(e):t.current=e}}function is(e){var t=e.alternate;null!==t&&(e.alternate=null,is(t)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&null!==(t=e.stateNode)&&(delete t[po],delete t[mo],delete t[ho],delete t[bo],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 ls(e){return 5===e.tag||3===e.tag||4===e.tag}function ss(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||ls(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;5!==e.tag&&6!==e.tag&&18!==e.tag;){if(2&e.flags)continue e;if(null===e.child||4===e.tag)continue e;e.child.return=e,e=e.child}if(!(2&e.flags))return e.stateNode}}function cs(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?8===n.nodeType?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(8===n.nodeType?(t=n.parentNode).insertBefore(e,n):(t=n).appendChild(e),null!=(n=n._reactRootContainer)||null!==t.onclick||(t.onclick=Zr));else if(4!==r&&null!==(e=e.child))for(cs(e,t,n),e=e.sibling;null!==e;)cs(e,t,n),e=e.sibling}function us(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==r&&null!==(e=e.child))for(us(e,t,n),e=e.sibling;null!==e;)us(e,t,n),e=e.sibling}var ds=null,fs=!1;function ps(e,t,n){for(n=n.child;null!==n;)ms(e,t,n),n=n.sibling}function ms(e,t,n){if(at&&"function"==typeof at.onCommitFiberUnmount)try{at.onCommitFiberUnmount(ot,n)}catch(e){}switch(n.tag){case 5:Xl||es(n,t);case 6:var r=ds,o=fs;ds=null,ps(e,t,n),fs=o,null!==(ds=r)&&(fs?(e=ds,n=n.stateNode,8===e.nodeType?e.parentNode.removeChild(n):e.removeChild(n)):ds.removeChild(n.stateNode));break;case 18:null!==ds&&(fs?(e=ds,n=n.stateNode,8===e.nodeType?so(e.parentNode,n):1===e.nodeType&&so(e,n),$t(e)):so(ds,n.stateNode));break;case 4:r=ds,o=fs,ds=n.stateNode.containerInfo,fs=!0,ps(e,t,n),ds=r,fs=o;break;case 0:case 11:case 14:case 15:if(!Xl&&null!==(r=n.updateQueue)&&null!==(r=r.lastEffect)){o=r=r.next;do{var a=o,i=a.destroy;a=a.tag,void 0!==i&&(0!=(2&a)||0!=(4&a))&&ts(n,t,i),o=o.next}while(o!==r)}ps(e,t,n);break;case 1:if(!Xl&&(es(n,t),"function"==typeof(r=n.stateNode).componentWillUnmount))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(e){Oc(n,t,e)}ps(e,t,n);break;case 21:ps(e,t,n);break;case 22:1&n.mode?(Xl=(r=Xl)||null!==n.memoizedState,ps(e,t,n),Xl=r):ps(e,t,n);break;default:ps(e,t,n)}}function gs(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new Jl),t.forEach((function(t){var r=Nc.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))}))}}function hs(e,t){var n=t.deletions;if(null!==n)for(var r=0;r<n.length;r++){var o=n[r];try{var i=e,l=t,s=l;e:for(;null!==s;){switch(s.tag){case 5:ds=s.stateNode,fs=!1;break e;case 3:case 4:ds=s.stateNode.containerInfo,fs=!0;break e}s=s.return}if(null===ds)throw Error(a(160));ms(i,l,o),ds=null,fs=!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;)bs(t,e),t=t.sibling}function bs(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(hs(t,e),ys(e),4&r){try{rs(3,e,e.return),os(3,e)}catch(t){Oc(e,e.return,t)}try{rs(5,e,e.return)}catch(t){Oc(e,e.return,t)}}break;case 1:hs(t,e),ys(e),512&r&&null!==n&&es(n,n.return);break;case 5:if(hs(t,e),ys(e),512&r&&null!==n&&es(n,n.return),32&e.flags){var o=e.stateNode;try{fe(o,"")}catch(t){Oc(e,e.return,t)}}if(4&r&&null!=(o=e.stateNode)){var i=e.memoizedProps,l=null!==n?n.memoizedProps:i,s=e.type,c=e.updateQueue;if(e.updateQueue=null,null!==c)try{"input"===s&&"radio"===i.type&&null!=i.name&&X(o,i),ve(s,l);var u=ve(s,i);for(l=0;l<c.length;l+=2){var d=c[l],f=c[l+1];"style"===d?he(o,f):"dangerouslySetInnerHTML"===d?de(o,f):"children"===d?fe(o,f):v(o,d,f,u)}switch(s){case"input":J(o,i);break;case"textarea":ae(o,i);break;case"select":var p=o._wrapperState.wasMultiple;o._wrapperState.wasMultiple=!!i.multiple;var m=i.value;null!=m?ne(o,!!i.multiple,m,!1):p!==!!i.multiple&&(null!=i.defaultValue?ne(o,!!i.multiple,i.defaultValue,!0):ne(o,!!i.multiple,i.multiple?[]:"",!1))}o[mo]=i}catch(t){Oc(e,e.return,t)}}break;case 6:if(hs(t,e),ys(e),4&r){if(null===e.stateNode)throw Error(a(162));o=e.stateNode,i=e.memoizedProps;try{o.nodeValue=i}catch(t){Oc(e,e.return,t)}}break;case 3:if(hs(t,e),ys(e),4&r&&null!==n&&n.memoizedState.isDehydrated)try{$t(t.containerInfo)}catch(t){Oc(e,e.return,t)}break;case 4:default:hs(t,e),ys(e);break;case 13:hs(t,e),ys(e),8192&(o=e.child).flags&&(i=null!==o.memoizedState,o.stateNode.isHidden=i,!i||null!==o.alternate&&null!==o.alternate.memoizedState||($s=Xe())),4&r&&gs(e);break;case 22:if(d=null!==n&&null!==n.memoizedState,1&e.mode?(Xl=(u=Xl)||d,hs(t,e),Xl=u):hs(t,e),ys(e),8192&r){if(u=null!==e.memoizedState,(e.stateNode.isHidden=u)&&!d&&0!=(1&e.mode))for(Zl=e,d=e.child;null!==d;){for(f=Zl=d;null!==Zl;){switch(m=(p=Zl).child,p.tag){case 0:case 11:case 14:case 15:rs(4,p,p.return);break;case 1:es(p,p.return);var g=p.stateNode;if("function"==typeof g.componentWillUnmount){r=p,n=p.return;try{t=r,g.props=t.memoizedProps,g.state=t.memoizedState,g.componentWillUnmount()}catch(e){Oc(r,n,e)}}break;case 5:es(p,p.return);break;case 22:if(null!==p.memoizedState){xs(f);continue}}null!==m?(m.return=p,Zl=m):xs(f)}d=d.sibling}e:for(d=null,f=e;;){if(5===f.tag){if(null===d){d=f;try{o=f.stateNode,u?"function"==typeof(i=o.style).setProperty?i.setProperty("display","none","important"):i.display="none":(s=f.stateNode,l=null!=(c=f.memoizedProps.style)&&c.hasOwnProperty("display")?c.display:null,s.style.display=ge("display",l))}catch(t){Oc(e,e.return,t)}}}else if(6===f.tag){if(null===d)try{f.stateNode.nodeValue=u?"":f.memoizedProps}catch(t){Oc(e,e.return,t)}}else if((22!==f.tag&&23!==f.tag||null===f.memoizedState||f===e)&&null!==f.child){f.child.return=f,f=f.child;continue}if(f===e)break e;for(;null===f.sibling;){if(null===f.return||f.return===e)break e;d===f&&(d=null),f=f.return}d===f&&(d=null),f.sibling.return=f.return,f=f.sibling}}break;case 19:hs(t,e),ys(e),4&r&&gs(e);case 21:}}function ys(e){var t=e.flags;if(2&t){try{e:{for(var n=e.return;null!==n;){if(ls(n)){var r=n;break e}n=n.return}throw Error(a(160))}switch(r.tag){case 5:var o=r.stateNode;32&r.flags&&(fe(o,""),r.flags&=-33),us(e,ss(e),o);break;case 3:case 4:var i=r.stateNode.containerInfo;cs(e,ss(e),i);break;default:throw Error(a(161))}}catch(t){Oc(e,e.return,t)}e.flags&=-3}4096&t&&(e.flags&=-4097)}function vs(e,t,n){Zl=e,ws(e,t,n)}function ws(e,t,n){for(var r=0!=(1&e.mode);null!==Zl;){var o=Zl,a=o.child;if(22===o.tag&&r){var i=null!==o.memoizedState||Yl;if(!i){var l=o.alternate,s=null!==l&&null!==l.memoizedState||Xl;l=Yl;var c=Xl;if(Yl=i,(Xl=s)&&!c)for(Zl=o;null!==Zl;)s=(i=Zl).child,22===i.tag&&null!==i.memoizedState?Ss(o):null!==s?(s.return=i,Zl=s):Ss(o);for(;null!==a;)Zl=a,ws(a,t,n),a=a.sibling;Zl=o,Yl=l,Xl=c}Es(e)}else 0!=(8772&o.subtreeFlags)&&null!==a?(a.return=o,Zl=a):Es(e)}}function Es(e){for(;null!==Zl;){var t=Zl;if(0!=(8772&t.flags)){var n=t.alternate;try{if(0!=(8772&t.flags))switch(t.tag){case 0:case 11:case 15:Xl||os(5,t);break;case 1:var r=t.stateNode;if(4&t.flags&&!Xl)if(null===n)r.componentDidMount();else{var o=t.elementType===t.type?n.memoizedProps:ba(t.type,n.memoizedProps);r.componentDidUpdate(o,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var i=t.updateQueue;null!==i&&Fa(t,i,r);break;case 3:var l=t.updateQueue;if(null!==l){if(n=null,null!==t.child)switch(t.child.tag){case 5:case 1:n=t.child.stateNode}Fa(t,l,n)}break;case 5:var s=t.stateNode;if(null===n&&4&t.flags){n=s;var c=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":c.autoFocus&&n.focus();break;case"img":c.src&&(n.src=c.src)}}break;case 6:case 4:case 12:case 19:case 17:case 21:case 22:case 23:case 25:break;case 13:if(null===t.memoizedState){var u=t.alternate;if(null!==u){var d=u.memoizedState;if(null!==d){var f=d.dehydrated;null!==f&&$t(f)}}}break;default:throw Error(a(163))}Xl||512&t.flags&&as(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 xs(e){for(;null!==Zl;){var t=Zl;if(t===e){Zl=null;break}var n=t.sibling;if(null!==n){n.return=t.return,Zl=n;break}Zl=t.return}}function Ss(e){for(;null!==Zl;){var t=Zl;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{os(4,t)}catch(e){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 a=t.return;try{as(t)}catch(e){Oc(t,a,e)}break;case 5:var i=t.return;try{as(t)}catch(e){Oc(t,i,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 ks,Os=Math.ceil,Cs=w.ReactCurrentDispatcher,Ps=w.ReactCurrentOwner,Ds=w.ReactCurrentBatchConfig,Ns=0,Is=null,_s=null,Rs=0,Ts=0,As=Oo(0),js=0,Ls=null,Ms=0,Bs=0,Fs=0,zs=null,Us=null,$s=0,Ws=1/0,Hs=null,Gs=!1,Vs=null,qs=null,Ks=!1,Qs=null,Ys=0,Xs=0,Js=null,Zs=-1,ec=0;function tc(){return 0!=(6&Ns)?Xe():-1!==Zs?Zs:Zs=Xe()}function nc(e){return 0==(1&e.mode)?1:0!=(2&Ns)&&0!==Rs?Rs&-Rs:null!==ha.transition?(0===ec&&(ec=gt()),ec):0!==(e=vt)?e:e=void 0===(e=window.event)?16:Yt(e.type)}function rc(e,t,n,r){if(50<Xs)throw Xs=0,Js=null,Error(a(185));bt(e,n,r),0!=(2&Ns)&&e===Is||(e===Is&&(0==(2&Ns)&&(Bs|=n),4===js&&sc(e,Rs)),oc(e,r),1===n&&0===Ns&&0==(1&t.mode)&&(Ws=Xe()+500,zo&&Wo()))}function oc(e,t){var n=e.callbackNode;!function(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,o=e.expirationTimes,a=e.pendingLanes;0<a;){var i=31-it(a),l=1<<i,s=o[i];-1===s?0!=(l&n)&&0==(l&r)||(o[i]=pt(l,t)):s<=t&&(e.expiredLanes|=l),a&=~l}}(e,t);var r=ft(e,e===Is?Rs:0);if(0===r)null!==n&&Ke(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(null!=n&&Ke(n),1===t)0===e.tag?function(e){zo=!0,$o(e)}(cc.bind(null,e)):$o(cc.bind(null,e)),io((function(){0==(6&Ns)&&Wo()})),n=null;else{switch(wt(r)){case 1:n=Ze;break;case 4:n=et;break;case 16:default:n=tt;break;case 536870912:n=rt}n=Ic(n,ac.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function ac(e,t){if(Zs=-1,ec=0,0!=(6&Ns))throw Error(a(327));var n=e.callbackNode;if(Sc()&&e.callbackNode!==n)return null;var r=ft(e,e===Is?Rs:0);if(0===r)return null;if(0!=(30&r)||0!=(r&e.expiredLanes)||t)t=bc(e,r);else{t=r;var o=Ns;Ns|=2;var i=gc();for(Is===e&&Rs===t||(Hs=null,Ws=Xe()+500,pc(e,t));;)try{vc();break}catch(t){mc(e,t)}xa(),Cs.current=i,Ns=o,null!==_s?t=0:(Is=null,Rs=0,t=js)}if(0!==t){if(2===t&&0!==(o=mt(e))&&(r=o,t=ic(e,o)),1===t)throw n=Ls,pc(e,0),sc(e,r),oc(e,Xe()),n;if(6===t)sc(e,r);else{if(o=e.current.alternate,0==(30&r)&&!function(e){for(var t=e;;){if(16384&t.flags){var n=t.updateQueue;if(null!==n&&null!==(n=n.stores))for(var r=0;r<n.length;r++){var o=n[r],a=o.getSnapshot;o=o.value;try{if(!lr(a(),o))return!1}catch(e){return!1}}}if(n=t.child,16384&t.subtreeFlags&&null!==n)n.return=t,t=n;else{if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}(o)&&(2===(t=bc(e,r))&&0!==(i=mt(e))&&(r=i,t=ic(e,i)),1===t))throw n=Ls,pc(e,0),sc(e,r),oc(e,Xe()),n;switch(e.finishedWork=o,e.finishedLanes=r,t){case 0:case 1:throw Error(a(345));case 2:case 5:xc(e,Us,Hs);break;case 3:if(sc(e,r),(130023424&r)===r&&10<(t=$s+500-Xe())){if(0!==ft(e,0))break;if(((o=e.suspendedLanes)&r)!==r){tc(),e.pingedLanes|=e.suspendedLanes&o;break}e.timeoutHandle=ro(xc.bind(null,e,Us,Hs),t);break}xc(e,Us,Hs);break;case 4:if(sc(e,r),(4194240&r)===r)break;for(t=e.eventTimes,o=-1;0<r;){var l=31-it(r);i=1<<l,(l=t[l])>o&&(o=l),r&=~i}if(r=o,10<(r=(120>(r=Xe()-r)?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Os(r/1960))-r)){e.timeoutHandle=ro(xc.bind(null,e,Us,Hs),r);break}xc(e,Us,Hs);break;default:throw Error(a(329))}}}return oc(e,Xe()),e.callbackNode===n?ac.bind(null,e):null}function ic(e,t){var n=zs;return e.current.memoizedState.isDehydrated&&(pc(e,t).flags|=256),2!==(e=bc(e,t))&&(t=Us,Us=n,null!==t&&lc(t)),e}function lc(e){null===Us?Us=e:Us.push.apply(Us,e)}function sc(e,t){for(t&=~Fs,t&=~Bs,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-it(t),r=1<<n;e[n]=-1,t&=~r}}function cc(e){if(0!=(6&Ns))throw Error(a(327));Sc();var t=ft(e,0);if(0==(1&t))return oc(e,Xe()),null;var n=bc(e,t);if(0!==e.tag&&2===n){var r=mt(e);0!==r&&(t=r,n=ic(e,r))}if(1===n)throw n=Ls,pc(e,0),sc(e,t),oc(e,Xe()),n;if(6===n)throw Error(a(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,xc(e,Us,Hs),oc(e,Xe()),null}function uc(e,t){var n=Ns;Ns|=1;try{return e(t)}finally{0===(Ns=n)&&(Ws=Xe()+500,zo&&Wo())}}function dc(e){null!==Qs&&0===Qs.tag&&0==(6&Ns)&&Sc();var t=Ns;Ns|=1;var n=Ds.transition,r=vt;try{if(Ds.transition=null,vt=1,e)return e()}finally{vt=r,Ds.transition=n,0==(6&(Ns=t))&&Wo()}}function fc(){Ts=As.current,Co(As)}function pc(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,oo(n)),null!==_s)for(n=_s.return;null!==n;){var r=n;switch(na(r),r.tag){case 1:null!=(r=r.type.childContextTypes)&&Ao();break;case 3:ai(),Co(Io),Co(No),di();break;case 5:li(r);break;case 4:ai();break;case 13:case 19:Co(si);break;case 10:Sa(r.type._context);break;case 22:case 23:fc()}n=n.return}if(Is=e,_s=e=Ac(e.current,null),Rs=Ts=t,js=0,Ls=null,Fs=Bs=Ms=0,Us=zs=null,null!==Pa){for(t=0;t<Pa.length;t++)if(null!==(r=(n=Pa[t]).interleaved)){n.interleaved=null;var o=r.next,a=n.pending;if(null!==a){var i=a.next;a.next=o,r.next=i}n.pending=r}Pa=null}return e}function mc(e,t){for(;;){var n=_s;try{if(xa(),fi.current=il,yi){for(var r=gi.memoizedState;null!==r;){var o=r.queue;null!==o&&(o.pending=null),r=r.next}yi=!1}if(mi=0,bi=hi=gi=null,vi=!1,wi=0,Ps.current=null,null===n||null===n.return){js=1,Ls=t,_s=null;break}e:{var i=e,l=n.return,s=n,c=t;if(t=Rs,s.flags|=32768,null!==c&&"object"==typeof c&&"function"==typeof c.then){var u=c,d=s,f=d.tag;if(0==(1&d.mode)&&(0===f||11===f||15===f)){var p=d.alternate;p?(d.updateQueue=p.updateQueue,d.memoizedState=p.memoizedState,d.lanes=p.lanes):(d.updateQueue=null,d.memoizedState=null)}var m=bl(l);if(null!==m){m.flags&=-257,yl(m,l,s,0,t),1&m.mode&&hl(i,u,t),c=u;var g=(t=m).updateQueue;if(null===g){var h=new Set;h.add(c),t.updateQueue=h}else g.add(c);break e}if(0==(1&t)){hl(i,u,t),hc();break e}c=Error(a(426))}else if(aa&&1&s.mode){var b=bl(l);if(null!==b){0==(65536&b.flags)&&(b.flags|=256),yl(b,l,s,0,t),ga(ul(c,s));break e}}i=c=ul(c,s),4!==js&&(js=2),null===zs?zs=[i]:zs.push(i),i=l;do{switch(i.tag){case 3:i.flags|=65536,t&=-t,i.lanes|=t,Ma(i,ml(0,c,t));break e;case 1:s=c;var y=i.type,v=i.stateNode;if(0==(128&i.flags)&&("function"==typeof y.getDerivedStateFromError||null!==v&&"function"==typeof v.componentDidCatch&&(null===qs||!qs.has(v)))){i.flags|=65536,t&=-t,i.lanes|=t,Ma(i,gl(i,s,t));break e}}i=i.return}while(null!==i)}Ec(n)}catch(e){t=e,_s===n&&null!==n&&(_s=n=n.return);continue}break}}function gc(){var e=Cs.current;return Cs.current=il,null===e?il:e}function hc(){0!==js&&3!==js&&2!==js||(js=4),null===Is||0==(268435455&Ms)&&0==(268435455&Bs)||sc(Is,Rs)}function bc(e,t){var n=Ns;Ns|=2;var r=gc();for(Is===e&&Rs===t||(Hs=null,pc(e,t));;)try{yc();break}catch(t){mc(e,t)}if(xa(),Ns=n,Cs.current=r,null!==_s)throw Error(a(261));return Is=null,Rs=0,js}function yc(){for(;null!==_s;)wc(_s)}function vc(){for(;null!==_s&&!Qe();)wc(_s)}function wc(e){var t=ks(e.alternate,e,Ts);e.memoizedProps=e.pendingProps,null===t?Ec(e):_s=t,Ps.current=null}function Ec(e){var t=e;do{var n=t.alternate;if(e=t.return,0==(32768&t.flags)){if(null!==(n=Kl(n,t,Ts)))return void(_s=n)}else{if(null!==(n=Ql(n,t)))return n.flags&=32767,void(_s=n);if(null===e)return js=6,void(_s=null);e.flags|=32768,e.subtreeFlags=0,e.deletions=null}if(null!==(t=t.sibling))return void(_s=t);_s=t=e}while(null!==t);0===js&&(js=5)}function xc(e,t,n){var r=vt,o=Ds.transition;try{Ds.transition=null,vt=1,function(e,t,n,r){do{Sc()}while(null!==Qs);if(0!=(6&Ns))throw Error(a(327));n=e.finishedWork;var o=e.finishedLanes;if(null===n)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(a(177));e.callbackNode=null,e.callbackPriority=0;var i=n.lanes|n.childLanes;if(function(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var o=31-it(n),a=1<<o;t[o]=0,r[o]=-1,e[o]=-1,n&=~a}}(e,i),e===Is&&(_s=Is=null,Rs=0),0==(2064&n.subtreeFlags)&&0==(2064&n.flags)||Ks||(Ks=!0,Ic(tt,(function(){return Sc(),null}))),i=0!=(15990&n.flags),0!=(15990&n.subtreeFlags)||i){i=Ds.transition,Ds.transition=null;var l=vt;vt=1;var s=Ns;Ns|=4,Ps.current=null,function(e,t){if(eo=Ht,pr(e=fr())){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{var r=(n=(n=e.ownerDocument)&&n.defaultView||window).getSelection&&n.getSelection();if(r&&0!==r.rangeCount){n=r.anchorNode;var o=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch(e){n=null;break e}var l=0,s=-1,c=-1,u=0,d=0,f=e,p=null;t:for(;;){for(var m;f!==n||0!==o&&3!==f.nodeType||(s=l+o),f!==i||0!==r&&3!==f.nodeType||(c=l+r),3===f.nodeType&&(l+=f.nodeValue.length),null!==(m=f.firstChild);)p=f,f=m;for(;;){if(f===e)break t;if(p===n&&++u===o&&(s=l),p===i&&++d===r&&(c=l),null!==(m=f.nextSibling))break;p=(f=p).parentNode}f=m}n=-1===s||-1===c?null:{start:s,end:c}}else n=null}n=n||{start:0,end:0}}else n=null;for(to={focusedElem:e,selectionRange:n},Ht=!1,Zl=t;null!==Zl;)if(e=(t=Zl).child,0!=(1028&t.subtreeFlags)&&null!==e)e.return=t,Zl=e;else for(;null!==Zl;){t=Zl;try{var g=t.alternate;if(0!=(1024&t.flags))switch(t.tag){case 0:case 11:case 15:case 5:case 6:case 4:case 17:break;case 1:if(null!==g){var h=g.memoizedProps,b=g.memoizedState,y=t.stateNode,v=y.getSnapshotBeforeUpdate(t.elementType===t.type?h:ba(t.type,h),b);y.__reactInternalSnapshotBeforeUpdate=v}break;case 3:var w=t.stateNode.containerInfo;1===w.nodeType?w.textContent="":9===w.nodeType&&w.documentElement&&w.removeChild(w.documentElement);break;default:throw Error(a(163))}}catch(e){Oc(t,t.return,e)}if(null!==(e=t.sibling)){e.return=t.return,Zl=e;break}Zl=t.return}g=ns,ns=!1}(e,n),bs(n,e),mr(to),Ht=!!eo,to=eo=null,e.current=n,vs(n,e,o),Ye(),Ns=s,vt=l,Ds.transition=i}else e.current=n;if(Ks&&(Ks=!1,Qs=e,Ys=o),0===(i=e.pendingLanes)&&(qs=null),function(e){if(at&&"function"==typeof at.onCommitFiberRoot)try{at.onCommitFiberRoot(ot,e,void 0,128==(128&e.current.flags))}catch(e){}}(n.stateNode),oc(e,Xe()),null!==t)for(r=e.onRecoverableError,n=0;n<t.length;n++)r((o=t[n]).value,{componentStack:o.stack,digest:o.digest});if(Gs)throw Gs=!1,e=Vs,Vs=null,e;0!=(1&Ys)&&0!==e.tag&&Sc(),0!=(1&(i=e.pendingLanes))?e===Js?Xs++:(Xs=0,Js=e):Xs=0,Wo()}(e,t,n,r)}finally{Ds.transition=o,vt=r}return null}function Sc(){if(null!==Qs){var e=wt(Ys),t=Ds.transition,n=vt;try{if(Ds.transition=null,vt=16>e?16:e,null===Qs)var r=!1;else{if(e=Qs,Qs=null,Ys=0,0!=(6&Ns))throw Error(a(331));var o=Ns;for(Ns|=4,Zl=e.current;null!==Zl;){var i=Zl,l=i.child;if(0!=(16&Zl.flags)){var s=i.deletions;if(null!==s){for(var c=0;c<s.length;c++){var u=s[c];for(Zl=u;null!==Zl;){var d=Zl;switch(d.tag){case 0:case 11:case 15:rs(8,d,i)}var f=d.child;if(null!==f)f.return=d,Zl=f;else for(;null!==Zl;){var p=(d=Zl).sibling,m=d.return;if(is(d),d===u){Zl=null;break}if(null!==p){p.return=m,Zl=p;break}Zl=m}}}var g=i.alternate;if(null!==g){var h=g.child;if(null!==h){g.child=null;do{var b=h.sibling;h.sibling=null,h=b}while(null!==h)}}Zl=i}}if(0!=(2064&i.subtreeFlags)&&null!==l)l.return=i,Zl=l;else e:for(;null!==Zl;){if(0!=(2048&(i=Zl).flags))switch(i.tag){case 0:case 11:case 15:rs(9,i,i.return)}var y=i.sibling;if(null!==y){y.return=i.return,Zl=y;break e}Zl=i.return}}var v=e.current;for(Zl=v;null!==Zl;){var w=(l=Zl).child;if(0!=(2064&l.subtreeFlags)&&null!==w)w.return=l,Zl=w;else e:for(l=v;null!==Zl;){if(0!=(2048&(s=Zl).flags))try{switch(s.tag){case 0:case 11:case 15:os(9,s)}}catch(e){Oc(s,s.return,e)}if(s===l){Zl=null;break e}var E=s.sibling;if(null!==E){E.return=s.return,Zl=E;break e}Zl=s.return}}if(Ns=o,Wo(),at&&"function"==typeof at.onPostCommitFiberRoot)try{at.onPostCommitFiberRoot(ot,e)}catch(e){}r=!0}return r}finally{vt=n,Ds.transition=t}}return!1}function kc(e,t,n){e=ja(e,t=ml(0,t=ul(n,t),1),1),t=tc(),null!==e&&(bt(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===qs||!qs.has(r))){t=ja(t,e=gl(t,e=ul(n,e),1),1),e=tc(),null!==t&&(bt(t,1,e),oc(t,e));break}}t=t.return}}function Cc(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),t=tc(),e.pingedLanes|=e.suspendedLanes&n,Is===e&&(Rs&n)===n&&(4===js||3===js&&(130023424&Rs)===Rs&&500>Xe()-$s?pc(e,0):Fs|=n),oc(e,t)}function Pc(e,t){0===t&&(0==(1&e.mode)?t=1:(t=ut,0==(130023424&(ut<<=1))&&(ut=4194304)));var n=tc();null!==(e=Ia(e,t))&&(bt(e,t,n),oc(e,n))}function Dc(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),Pc(e,n)}function Nc(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;null!==o&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(a(314))}null!==r&&r.delete(t),Pc(e,n)}function Ic(e,t){return qe(e,t)}function _c(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 Rc(e,t,n,r){return new _c(e,t,n,r)}function Tc(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Ac(e,t){var n=e.alternate;return null===n?((n=Rc(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 jc(e,t,n,r,o,i){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 S:return Lc(n.children,o,i,t);case k:l=8,o|=8;break;case O:return(e=Rc(12,n,t,2|o)).elementType=O,e.lanes=i,e;case N:return(e=Rc(13,n,t,o)).elementType=N,e.lanes=i,e;case I:return(e=Rc(19,n,t,o)).elementType=I,e.lanes=i,e;case T:return Mc(n,o,i,t);default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case C:l=10;break e;case P:l=9;break e;case D:l=11;break e;case _:l=14;break e;case R:l=16,r=null;break e}throw Error(a(130,null==e?e:typeof e,""))}return(t=Rc(l,n,t,o)).elementType=e,t.type=r,t.lanes=i,t}function Lc(e,t,n,r){return(e=Rc(7,e,r,t)).lanes=n,e}function Mc(e,t,n,r){return(e=Rc(22,e,r,t)).elementType=T,e.lanes=n,e.stateNode={isHidden:!1},e}function Bc(e,t,n){return(e=Rc(6,e,null,t)).lanes=n,e}function Fc(e,t,n){return(t=Rc(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function zc(e,t,n,r,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=ht(0),this.expirationTimes=ht(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ht(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function Uc(e,t,n,r,o,a,i,l,s){return e=new zc(e,t,n,l,s),1===t?(t=1,!0===a&&(t|=8)):t=0,a=Rc(3,null,null,t),e.current=a,a.stateNode=e,a.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Ra(a),e}function $c(e){if(!e)return Do;e:{if($e(e=e._reactInternals)!==e||1!==e.tag)throw Error(a(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(To(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(null!==t);throw Error(a(171))}if(1===e.tag){var n=e.type;if(To(n))return Lo(e,n,t)}return t}function Wc(e,t,n,r,o,a,i,l,s){return(e=Uc(n,r,!0,e,0,a,0,l,s)).context=$c(null),n=e.current,(a=Aa(r=tc(),o=nc(n))).callback=null!=t?t:null,ja(n,a,o),e.current.lanes=o,bt(e,o,r),oc(e,r),e}function Hc(e,t,n,r){var o=t.current,a=tc(),i=nc(o);return n=$c(n),null===t.context?t.context=n:t.pendingContext=n,(t=Aa(a,i)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),null!==(e=ja(o,t,i))&&(rc(e,o,i,a),La(e,o,i)),i}function Gc(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function Vc(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function qc(e,t){Vc(e,t),(e=e.alternate)&&Vc(e,t)}ks=function(e,t,n){if(null!==e)if(e.memoizedProps!==t.pendingProps||Io.current)wl=!0;else{if(0==(e.lanes&n)&&0==(128&t.flags))return wl=!1,function(e,t,n){switch(t.tag){case 3:Il(t),ma();break;case 5:ii(t);break;case 1:To(t.type)&&Mo(t);break;case 4:oi(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,o=t.memoizedProps.value;Po(ya,r._currentValue),r._currentValue=o;break;case 13:if(null!==(r=t.memoizedState))return null!==r.dehydrated?(Po(si,1&si.current),t.flags|=128,null):0!=(n&t.child.childLanes)?Bl(e,t,n):(Po(si,1&si.current),null!==(e=Gl(e,t,n))?e.sibling:null);Po(si,1&si.current);break;case 19:if(r=0!=(n&t.childLanes),0!=(128&e.flags)){if(r)return Wl(e,t,n);t.flags|=128}if(null!==(o=t.memoizedState)&&(o.rendering=null,o.tail=null,o.lastEffect=null),Po(si,si.current),r)break;return null;case 22:case 23:return t.lanes=0,Ol(e,t,n)}return Gl(e,t,n)}(e,t,n);wl=0!=(131072&e.flags)}else wl=!1,aa&&0!=(1048576&t.flags)&&ea(t,qo,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Hl(e,t),e=t.pendingProps;var o=Ro(t,No.current);Oa(t,n),o=ki(null,t,r,e,o,n);var i=Oi();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)?(i=!0,Mo(t)):i=!1,t.memoizedState=null!==o.state&&void 0!==o.state?o.state:null,Ra(t),o.updater=$a,t.stateNode=o,o._reactInternals=t,Va(t,r,e,n),t=Nl(null,t,r,!0,i,n)):(t.tag=0,aa&&i&&ta(t),El(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Hl(e,t),e=t.pendingProps,r=(o=r._init)(r._payload),t.type=r,o=t.tag=function(e){if("function"==typeof e)return Tc(e)?1:0;if(null!=e){if((e=e.$$typeof)===D)return 11;if(e===_)return 14}return 2}(r),e=ba(r,e),o){case 0:t=Pl(null,t,r,e,n);break e;case 1:t=Dl(null,t,r,e,n);break e;case 11:t=xl(null,t,r,e,n);break e;case 14:t=Sl(null,t,r,ba(r.type,e),n);break e}throw Error(a(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,Pl(e,t,r,o=t.elementType===r?o:ba(r,o),n);case 1:return r=t.type,o=t.pendingProps,Dl(e,t,r,o=t.elementType===r?o:ba(r,o),n);case 3:e:{if(Il(t),null===e)throw Error(a(387));r=t.pendingProps,o=(i=t.memoizedState).element,Ta(e,t),Ba(t,r,null,n);var l=t.memoizedState;if(r=l.element,i.isDehydrated){if(i={element:r,isDehydrated:!1,cache:l.cache,pendingSuspenseBoundaries:l.pendingSuspenseBoundaries,transitions:l.transitions},t.updateQueue.baseState=i,t.memoizedState=i,256&t.flags){t=_l(e,t,r,n,o=ul(Error(a(423)),t));break e}if(r!==o){t=_l(e,t,r,n,o=ul(Error(a(424)),t));break e}for(oa=co(t.stateNode.containerInfo.firstChild),ra=t,aa=!0,ia=null,n=Ja(t,null,r,n),t.child=n;n;)n.flags=-3&n.flags|4096,n=n.sibling}else{if(ma(),r===o){t=Gl(e,t,n);break e}El(e,t,r,n)}t=t.child}return t;case 5:return ii(t),null===e&&ua(t),r=t.type,o=t.pendingProps,i=null!==e?e.memoizedProps:null,l=o.children,no(r,o)?l=null:null!==i&&no(r,i)&&(t.flags|=32),Cl(e,t),El(e,t,l,n),t.child;case 6:return null===e&&ua(t),null;case 13:return Bl(e,t,n);case 4:return oi(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=Xa(t,null,r,n):El(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,xl(e,t,r,o=t.elementType===r?o:ba(r,o),n);case 7:return El(e,t,t.pendingProps,n),t.child;case 8:case 12:return El(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,i=t.memoizedProps,l=o.value,Po(ya,r._currentValue),r._currentValue=l,null!==i)if(lr(i.value,l)){if(i.children===o.children&&!Io.current){t=Gl(e,t,n);break e}}else for(null!==(i=t.child)&&(i.return=t);null!==i;){var s=i.dependencies;if(null!==s){l=i.child;for(var c=s.firstContext;null!==c;){if(c.context===r){if(1===i.tag){(c=Aa(-1,n&-n)).tag=2;var u=i.updateQueue;if(null!==u){var d=(u=u.shared).pending;null===d?c.next=c:(c.next=d.next,d.next=c),u.pending=c}}i.lanes|=n,null!==(c=i.alternate)&&(c.lanes|=n),ka(i.return,n,t),s.lanes|=n;break}c=c.next}}else if(10===i.tag)l=i.type===t.type?null:i.child;else if(18===i.tag){if(null===(l=i.return))throw Error(a(341));l.lanes|=n,null!==(s=l.alternate)&&(s.lanes|=n),ka(l,n,t),l=i.sibling}else l=i.child;if(null!==l)l.return=i;else for(l=i;null!==l;){if(l===t){l=null;break}if(null!==(i=l.sibling)){i.return=l.return,l=i;break}l=l.return}i=l}El(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,Oa(t,n),r=r(o=Ca(o)),t.flags|=1,El(e,t,r,n),t.child;case 14:return o=ba(r=t.type,t.pendingProps),Sl(e,t,r,o=ba(r.type,o),n);case 15:return kl(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:ba(r,o),Hl(e,t),t.tag=1,To(r)?(e=!0,Mo(t)):e=!1,Oa(t,n),Ha(t,r,o),Va(t,r,o,n),Nl(null,t,r,!0,e,n);case 19:return Wl(e,t,n);case 22:return Ol(e,t,n)}throw Error(a(156,t.tag))};var Kc="function"==typeof reportError?reportError:function(e){console.error(e)};function Qc(e){this._internalRoot=e}function Yc(e){this._internalRoot=e}function Xc(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType)}function Jc(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function Zc(){}function eu(e,t,n,r,o){var a=n._reactRootContainer;if(a){var i=a;if("function"==typeof o){var l=o;o=function(){var e=Gc(i);l.call(e)}}Hc(t,i,e,o)}else i=function(e,t,n,r,o){if(o){if("function"==typeof r){var a=r;r=function(){var e=Gc(i);a.call(e)}}var i=Wc(t,r,e,0,null,!1,0,"",Zc);return e._reactRootContainer=i,e[go]=i.current,$r(8===e.nodeType?e.parentNode:e),dc(),i}for(;o=e.lastChild;)e.removeChild(o);if("function"==typeof r){var l=r;r=function(){var e=Gc(s);l.call(e)}}var s=Uc(e,0,!1,null,0,!1,0,"",Zc);return e._reactRootContainer=s,e[go]=s.current,$r(8===e.nodeType?e.parentNode:e),dc((function(){Hc(t,s,n,r)})),s}(n,t,e,o,r);return Gc(i)}Yc.prototype.render=Qc.prototype.render=function(e){var t=this._internalRoot;if(null===t)throw Error(a(409));Hc(e,t,null,null)},Yc.prototype.unmount=Qc.prototype.unmount=function(){var e=this._internalRoot;if(null!==e){this._internalRoot=null;var t=e.containerInfo;dc((function(){Hc(null,e,null,null)})),t[go]=null}},Yc.prototype.unstable_scheduleHydration=function(e){if(e){var t=kt();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Tt.length&&0!==t&&t<Tt[n].priority;n++);Tt.splice(n,0,e),0===n&&Mt(e)}},Et=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=dt(t.pendingLanes);0!==n&&(yt(t,1|n),oc(t,Xe()),0==(6&Ns)&&(Ws=Xe()+500,Wo()))}break;case 13:dc((function(){var t=Ia(e,1);if(null!==t){var n=tc();rc(t,e,1,n)}})),qc(e,1)}},xt=function(e){if(13===e.tag){var t=Ia(e,134217728);null!==t&&rc(t,e,134217728,tc()),qc(e,134217728)}},St=function(e){if(13===e.tag){var t=nc(e),n=Ia(e,t);null!==n&&rc(n,e,t,tc()),qc(e,t)}},kt=function(){return vt},Ot=function(e,t){var n=vt;try{return vt=e,t()}finally{vt=n}},xe=function(e,t,n){switch(t){case"input":if(J(e,n),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var o=xo(r);if(!o)throw Error(a(90));q(r),J(r,o)}}}break;case"textarea":ae(e,n);break;case"select":null!=(t=n.value)&&ne(e,!!n.multiple,t,!1)}},De=uc,Ne=dc;var tu={usingClientEntryPoint:!1,Events:[wo,Eo,xo,Ce,Pe,uc]},nu={findFiberByHostInstance:vo,bundleType:0,version:"18.2.0",rendererPackageName:"react-dom"},ru={bundleType:nu.bundleType,version:nu.version,rendererPackageName:nu.rendererPackageName,rendererConfig:nu.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:w.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=Ge(e))?null:e.stateNode},findFiberByHostInstance:nu.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.2.0-next-9e3b772b8-20220608"};if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var ou=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!ou.isDisabled&&ou.supportsFiber)try{ot=ou.inject(ru),at=ou}catch(ue){}}t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=tu,t.createPortal=function(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!Xc(t))throw Error(a(200));return function(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:x,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}(e,t,null,n)},t.createRoot=function(e,t){if(!Xc(e))throw Error(a(299));var n=!1,r="",o=Kc;return null!=t&&(!0===t.unstable_strictMode&&(n=!0),void 0!==t.identifierPrefix&&(r=t.identifierPrefix),void 0!==t.onRecoverableError&&(o=t.onRecoverableError)),t=Uc(e,1,!1,null,0,n,0,r,o),e[go]=t.current,$r(8===e.nodeType?e.parentNode:e),new Qc(t)},t.findDOMNode=function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternals;if(void 0===t){if("function"==typeof e.render)throw Error(a(188));throw e=Object.keys(e).join(","),Error(a(268,e))}return null===(e=Ge(t))?null:e.stateNode},t.flushSync=function(e){return dc(e)},t.hydrate=function(e,t,n){if(!Jc(t))throw Error(a(200));return eu(null,e,t,!0,n)},t.hydrateRoot=function(e,t,n){if(!Xc(e))throw Error(a(405));var r=null!=n&&n.hydratedSources||null,o=!1,i="",l=Kc;if(null!=n&&(!0===n.unstable_strictMode&&(o=!0),void 0!==n.identifierPrefix&&(i=n.identifierPrefix),void 0!==n.onRecoverableError&&(l=n.onRecoverableError)),t=Wc(t,null,e,1,null!=n?n:null,o,0,i,l),e[go]=t.current,$r(e),r)for(e=0;e<r.length;e++)o=(o=(n=r[e])._getVersion)(n._source),null==t.mutableSourceEagerHydrationData?t.mutableSourceEagerHydrationData=[n,o]:t.mutableSourceEagerHydrationData.push(n,o);return new Yc(t)},t.render=function(e,t,n){if(!Jc(t))throw Error(a(200));return eu(null,e,t,!1,n)},t.unmountComponentAtNode=function(e){if(!Jc(e))throw Error(a(40));return!!e._reactRootContainer&&(dc((function(){eu(null,null,e,!1,(function(){e._reactRootContainer=null,e[go]=null}))})),!0)},t.unstable_batchedUpdates=uc,t.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Jc(n))throw Error(a(200));if(null==e||void 0===e._reactInternals)throw Error(a(38));return eu(e,t,n,!1,r)},t.version="18.2.0-next-9e3b772b8-20220608"},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)},251:(e,t,n)=>{"use strict";var r=n(294),o=Symbol.for("react.element"),a=Symbol.for("react.fragment"),i=Object.prototype.hasOwnProperty,l=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,s={key:!0,ref:!0,__self:!0,__source:!0};function c(e,t,n){var r,a={},c=null,u=null;for(r in void 0!==n&&(c=""+n),void 0!==t.key&&(c=""+t.key),void 0!==t.ref&&(u=t.ref),t)i.call(t,r)&&!s.hasOwnProperty(r)&&(a[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===a[r]&&(a[r]=t[r]);return{$$typeof:o,type:e,key:c,ref:u,props:a,_owner:l.current}}t.Fragment=a,t.jsx=c,t.jsxs=c},408:(e,t)=>{"use strict";var n=Symbol.for("react.element"),r=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),l=Symbol.for("react.provider"),s=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),p=Symbol.iterator,m={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},g=Object.assign,h={};function b(e,t,n){this.props=e,this.context=t,this.refs=h,this.updater=n||m}function y(){}function v(e,t,n){this.props=e,this.context=t,this.refs=h,this.updater=n||m}b.prototype.isReactComponent={},b.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},b.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},y.prototype=b.prototype;var w=v.prototype=new y;w.constructor=v,g(w,b.prototype),w.isPureReactComponent=!0;var E=Array.isArray,x=Object.prototype.hasOwnProperty,S={current:null},k={key:!0,ref:!0,__self:!0,__source:!0};function O(e,t,r){var o,a={},i=null,l=null;if(null!=t)for(o in void 0!==t.ref&&(l=t.ref),void 0!==t.key&&(i=""+t.key),t)x.call(t,o)&&!k.hasOwnProperty(o)&&(a[o]=t[o]);var s=arguments.length-2;if(1===s)a.children=r;else if(1<s){for(var c=Array(s),u=0;u<s;u++)c[u]=arguments[u+2];a.children=c}if(e&&e.defaultProps)for(o in s=e.defaultProps)void 0===a[o]&&(a[o]=s[o]);return{$$typeof:n,type:e,key:i,ref:l,props:a,_owner:S.current}}function C(e){return"object"==typeof e&&null!==e&&e.$$typeof===n}var P=/\/+/g;function D(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 N(e,t,o,a,i){var l=typeof e;"undefined"!==l&&"boolean"!==l||(e=null);var s=!1;if(null===e)s=!0;else switch(l){case"string":case"number":s=!0;break;case"object":switch(e.$$typeof){case n:case r:s=!0}}if(s)return i=i(s=e),e=""===a?"."+D(s,0):a,E(i)?(o="",null!=e&&(o=e.replace(P,"$&/")+"/"),N(i,t,o,"",(function(e){return e}))):null!=i&&(C(i)&&(i=function(e,t){return{$$typeof:n,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(i,o+(!i.key||s&&s.key===i.key?"":(""+i.key).replace(P,"$&/")+"/")+e)),t.push(i)),1;if(s=0,a=""===a?".":a+":",E(e))for(var c=0;c<e.length;c++){var u=a+D(l=e[c],c);s+=N(l,t,o,u,i)}else if(u=function(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=p&&e[p]||e["@@iterator"])?e:null}(e),"function"==typeof u)for(e=u.call(e),c=0;!(l=e.next()).done;)s+=N(l=l.value,t,o,u=a+D(l,c++),i);else if("object"===l)throw t=String(e),Error("Objects are not valid as a React child (found: "+("[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return s}function I(e,t,n){if(null==e)return e;var r=[],o=0;return N(e,r,"","",(function(e){return t.call(n,e,o++)})),r}function _(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 R={current:null},T={transition:null},A={ReactCurrentDispatcher:R,ReactCurrentBatchConfig:T,ReactCurrentOwner:S};t.Children={map:I,forEach:function(e,t,n){I(e,(function(){t.apply(this,arguments)}),n)},count:function(e){var t=0;return I(e,(function(){t++})),t},toArray:function(e){return I(e,(function(e){return e}))||[]},only:function(e){if(!C(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},t.Component=b,t.Fragment=o,t.Profiler=i,t.PureComponent=v,t.StrictMode=a,t.Suspense=u,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=A,t.cloneElement=function(e,t,r){if(null==e)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var o=g({},e.props),a=e.key,i=e.ref,l=e._owner;if(null!=t){if(void 0!==t.ref&&(i=t.ref,l=S.current),void 0!==t.key&&(a=""+t.key),e.type&&e.type.defaultProps)var s=e.type.defaultProps;for(c in t)x.call(t,c)&&!k.hasOwnProperty(c)&&(o[c]=void 0===t[c]&&void 0!==s?s[c]:t[c])}var c=arguments.length-2;if(1===c)o.children=r;else if(1<c){s=Array(c);for(var u=0;u<c;u++)s[u]=arguments[u+2];o.children=s}return{$$typeof:n,type:e.type,key:a,ref:i,props:o,_owner:l}},t.createContext=function(e){return(e={$$typeof:s,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null}).Provider={$$typeof:l,_context:e},e.Consumer=e},t.createElement=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:f,_payload:{_status:-1,_result:e},_init:_}},t.memo=function(e,t){return{$$typeof:d,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 R.current.useCallback(e,t)},t.useContext=function(e){return R.current.useContext(e)},t.useDebugValue=function(){},t.useDeferredValue=function(e){return R.current.useDeferredValue(e)},t.useEffect=function(e,t){return R.current.useEffect(e,t)},t.useId=function(){return R.current.useId()},t.useImperativeHandle=function(e,t,n){return R.current.useImperativeHandle(e,t,n)},t.useInsertionEffect=function(e,t){return R.current.useInsertionEffect(e,t)},t.useLayoutEffect=function(e,t){return R.current.useLayoutEffect(e,t)},t.useMemo=function(e,t){return R.current.useMemo(e,t)},t.useReducer=function(e,t,n){return R.current.useReducer(e,t,n)},t.useRef=function(e){return R.current.useRef(e)},t.useState=function(e){return R.current.useState(e)},t.useSyncExternalStore=function(e,t,n){return R.current.useSyncExternalStore(e,t,n)},t.useTransition=function(){return R.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<a(o,t)))break e;e[r]=t,e[n]=o,n=r}}function r(e){return 0===e.length?null:e[0]}function o(e){if(0===e.length)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,o=e.length,i=o>>>1;r<i;){var l=2*(r+1)-1,s=e[l],c=l+1,u=e[c];if(0>a(s,n))c<o&&0>a(u,s)?(e[r]=u,e[c]=n,r=c):(e[r]=s,e[l]=n,r=l);else{if(!(c<o&&0>a(u,n)))break e;e[r]=u,e[c]=n,r=c}}}return t}function a(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}if("object"==typeof performance&&"function"==typeof performance.now){var i=performance;t.unstable_now=function(){return i.now()}}else{var l=Date,s=l.now();t.unstable_now=function(){return l.now()-s}}var c=[],u=[],d=1,f=null,p=3,m=!1,g=!1,h=!1,b="function"==typeof setTimeout?setTimeout:null,y="function"==typeof clearTimeout?clearTimeout:null,v="undefined"!=typeof setImmediate?setImmediate:null;function w(e){for(var t=r(u);null!==t;){if(null===t.callback)o(u);else{if(!(t.startTime<=e))break;o(u),t.sortIndex=t.expirationTime,n(c,t)}t=r(u)}}function E(e){if(h=!1,w(e),!g)if(null!==r(c))g=!0,T(x);else{var t=r(u);null!==t&&A(E,t.startTime-e)}}function x(e,n){g=!1,h&&(h=!1,y(C),C=-1),m=!0;var a=p;try{for(w(n),f=r(c);null!==f&&(!(f.expirationTime>n)||e&&!N());){var i=f.callback;if("function"==typeof i){f.callback=null,p=f.priorityLevel;var l=i(f.expirationTime<=n);n=t.unstable_now(),"function"==typeof l?f.callback=l:f===r(c)&&o(c),w(n)}else o(c);f=r(c)}if(null!==f)var s=!0;else{var d=r(u);null!==d&&A(E,d.startTime-n),s=!1}return s}finally{f=null,p=a,m=!1}}"undefined"!=typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var S,k=!1,O=null,C=-1,P=5,D=-1;function N(){return!(t.unstable_now()-D<P)}function I(){if(null!==O){var e=t.unstable_now();D=e;var n=!0;try{n=O(!0,e)}finally{n?S():(k=!1,O=null)}}else k=!1}if("function"==typeof v)S=function(){v(I)};else if("undefined"!=typeof MessageChannel){var _=new MessageChannel,R=_.port2;_.port1.onmessage=I,S=function(){R.postMessage(null)}}else S=function(){b(I,0)};function T(e){O=e,k||(k=!0,S())}function A(e,n){C=b((function(){e(t.unstable_now())}),n)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){g||m||(g=!0,T(x))},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):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,a){var i=t.unstable_now();switch(a="object"==typeof a&&null!==a&&"number"==typeof(a=a.delay)&&0<a?i+a:i,e){case 1:var l=-1;break;case 2:l=250;break;case 5:l=1073741823;break;case 4:l=1e4;break;default:l=5e3}return e={id:d++,callback:o,priorityLevel:e,startTime:a,expirationTime:l=a+l,sortIndex:-1},a>i?(e.sortIndex=a,n(u,e),null===r(c)&&e===r(u)&&(h?(y(C),C=-1):h=!0,A(E,a-i))):(e.sortIndex=l,n(c,e),g||m||(g=!0,T(x))),e},t.unstable_shouldYield=N,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)},250:(e,t,n)=>{"use strict";var r=n(294),o="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},a=r.useState,i=r.useEffect,l=r.useLayoutEffect,s=r.useDebugValue;function c(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!o(e,n)}catch(e){return!0}}var u="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var n=t(),r=a({inst:{value:n,getSnapshot:t}}),o=r[0].inst,u=r[1];return l((function(){o.value=n,o.getSnapshot=t,c(o)&&u({inst:o})}),[e,n,t]),i((function(){return c(o)&&u({inst:o}),e((function(){c(o)&&u({inst:o})}))}),[e]),s(n),n};t.useSyncExternalStore=void 0!==r.useSyncExternalStore?r.useSyncExternalStore:u},139:(e,t,n)=>{"use strict";var r=n(294),o=n(688),a="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},i=o.useSyncExternalStore,l=r.useRef,s=r.useEffect,c=r.useMemo,u=r.useDebugValue;t.useSyncExternalStoreWithSelector=function(e,t,n,r,o){var d=l(null);if(null===d.current){var f={hasValue:!1,value:null};d.current=f}else f=d.current;d=c((function(){function e(e){if(!s){if(s=!0,i=e,e=r(e),void 0!==o&&f.hasValue){var t=f.value;if(o(t,e))return l=t}return l=e}if(t=l,a(i,e))return t;var n=r(e);return void 0!==o&&o(t,n)?t:(i=e,l=n)}var i,l,s=!1,c=void 0===n?null:n;return[function(){return e(t())},null===c?void 0:function(){return e(c())}]}),[t,n,r,o]);var p=i(e,d[0],d[1]);return s((function(){f.hasValue=!0,f.value=p}),[p]),u(p),p}},688:(e,t,n)=>{"use strict";e.exports=n(250)},798:(e,t,n)=>{"use strict";e.exports=n(139)},473:e=>{"use strict";e.exports=function(){}}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var a=t[r]={exports:{}};return e[r].call(a.exports,a,a.exports,n),a.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{"use strict";var e=n(294),t=n(745),r=n(935);function o(e){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(e)}function a(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==o(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!==o(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===o(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function l(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?i(Object(n),!0).forEach((function(t){a(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function s(e){return"Minified Redux error #"+e+"; visit https://redux.js.org/Errors?code="+e+" for the full message or use the non-minified dev environment for full errors. "}var c="function"==typeof Symbol&&Symbol.observable||"@@observable",u=function(){return Math.random().toString(36).substring(7).split("").join(".")},d={INIT:"@@redux/INIT"+u(),REPLACE:"@@redux/REPLACE"+u(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+u()}};function f(e,t,n){var r;if("function"==typeof t&&"function"==typeof n||"function"==typeof n&&"function"==typeof arguments[3])throw new Error(s(0));if("function"==typeof t&&void 0===n&&(n=t,t=void 0),void 0!==n){if("function"!=typeof n)throw new Error(s(1));return n(f)(e,t)}if("function"!=typeof e)throw new Error(s(2));var o=e,a=t,i=[],l=i,u=!1;function p(){l===i&&(l=i.slice())}function m(){if(u)throw new Error(s(3));return a}function g(e){if("function"!=typeof e)throw new Error(s(4));if(u)throw new Error(s(5));var t=!0;return p(),l.push(e),function(){if(t){if(u)throw new Error(s(6));t=!1,p();var n=l.indexOf(e);l.splice(n,1),i=null}}}function h(e){if(!function(e){if("object"!=typeof e||null===e)return!1;for(var t=e;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}(e))throw new Error(s(7));if(void 0===e.type)throw new Error(s(8));if(u)throw new Error(s(9));try{u=!0,a=o(a,e)}finally{u=!1}for(var t=i=l,n=0;n<t.length;n++)(0,t[n])();return e}return h({type:d.INIT}),(r={dispatch:h,subscribe:g,getState:m,replaceReducer:function(e){if("function"!=typeof e)throw new Error(s(10));o=e,h({type:d.REPLACE})}})[c]=function(){var e,t=g;return(e={subscribe:function(e){if("object"!=typeof e||null===e)throw new Error(s(11));function n(){e.next&&e.next(m())}return n(),{unsubscribe:t(n)}}})[c]=function(){return this},e},r}function p(e,t){return function(){return t(e.apply(this,arguments))}}function m(e,t){if("function"==typeof e)return p(e,t);if("object"!=typeof e||null===e)throw new Error(s(16));var n={};for(var r in e){var o=e[r];"function"==typeof o&&(n[r]=p(o,t))}return n}function g(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return 0===t.length?function(e){return e}:1===t.length?t[0]:t.reduce((function(e,t){return function(){return e(t.apply(void 0,arguments))}}))}var h=n(688),b=n(798);let y=function(e){e()};const v=()=>y,w=Symbol.for("react-redux-context"),E="undefined"!=typeof globalThis?globalThis:{};function x(){var t;if(!e.createContext)return{};const n=null!=(t=E[w])?t:E[w]=new Map;let r=n.get(e.createContext);return r||(r=e.createContext(null),n.set(e.createContext,r)),r}const S=x();let k=null;function O(){return O=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},O.apply(this,arguments)}function C(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}var P=n(679),D=n.n(P),N=n(366);const I=["initMapStateToProps","initMapDispatchToProps","initMergeProps"];function _(e,t,n,r,{areStatesEqual:o,areOwnPropsEqual:a,areStatePropsEqual:i}){let l,s,c,u,d,f=!1;return function(p,m){return f?function(f,p){const m=!a(p,s),g=!o(f,l,p,s);return l=f,s=p,m&&g?(c=e(l,s),t.dependsOnOwnProps&&(u=t(r,s)),d=n(c,u,s),d):m?(e.dependsOnOwnProps&&(c=e(l,s)),t.dependsOnOwnProps&&(u=t(r,s)),d=n(c,u,s),d):g?function(){const t=e(l,s),r=!i(t,c);return c=t,r&&(d=n(c,u,s)),d}():d}(p,m):(l=p,s=m,c=e(l,s),u=t(r,s),d=n(c,u,s),f=!0,d)}}function R(e){return function(t){const n=e(t);function r(){return n}return r.dependsOnOwnProps=!1,r}}function T(e){return e.dependsOnOwnProps?Boolean(e.dependsOnOwnProps):1!==e.length}function A(e,t){return function(t,{displayName:n}){const r=function(e,t){return r.dependsOnOwnProps?r.mapToProps(e,t):r.mapToProps(e,void 0)};return r.dependsOnOwnProps=!0,r.mapToProps=function(t,n){r.mapToProps=e,r.dependsOnOwnProps=T(e);let o=r(t,n);return"function"==typeof o&&(r.mapToProps=o,r.dependsOnOwnProps=T(o),o=r(t,n)),o},r}}function j(e,t){return(n,r)=>{throw new Error(`Invalid value of type ${typeof e} for ${t} argument when connecting component ${r.wrappedComponentName}.`)}}function L(e,t,n){return O({},n,e,t)}const M={notify(){},get:()=>[]};function B(e,t){let n,r=M,o=0,a=!1;function i(){c.onStateChange&&c.onStateChange()}function l(){o++,n||(n=t?t.addNestedSub(i):e.subscribe(i),r=function(){const e=v();let t=null,n=null;return{clear(){t=null,n=null},notify(){e((()=>{let e=t;for(;e;)e.callback(),e=e.next}))},get(){let e=[],n=t;for(;n;)e.push(n),n=n.next;return e},subscribe(e){let r=!0,o=n={callback:e,next:null,prev:n};return o.prev?o.prev.next=o:t=o,function(){r&&null!==t&&(r=!1,o.next?o.next.prev=o.prev:n=o.prev,o.prev?o.prev.next=o.next:t=o.next)}}}}())}function s(){o--,n&&0===o&&(n(),n=void 0,r.clear(),r=M)}const c={addNestedSub:function(e){l();const t=r.subscribe(e);let n=!1;return()=>{n||(n=!0,t(),s())}},notifyNestedSubs:function(){r.notify()},handleChangeWrapper:i,isSubscribed:function(){return a},trySubscribe:function(){a||(a=!0,l())},tryUnsubscribe:function(){a&&(a=!1,s())},getListeners:()=>r};return c}const F="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?e.useLayoutEffect:e.useEffect;function z(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!=e&&t!=t}function U(e,t){if(z(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let r=0;r<n.length;r++)if(!Object.prototype.hasOwnProperty.call(t,n[r])||!z(e[n[r]],t[n[r]]))return!1;return!0}const $=["reactReduxForwardedRef"];let W=()=>{throw new Error("uSES not initialized!")};const H=[null,null];function G(e,t,n,r,o,a){e.current=r,n.current=!1,o.current&&(o.current=null,a())}function V(e,t){return e===t}const q=function(t,n,r,{pure:o,areStatesEqual:a=V,areOwnPropsEqual:i=U,areStatePropsEqual:l=U,areMergedPropsEqual:s=U,forwardRef:c=!1,context:u=S}={}){const d=u,f=function(e){return e?"function"==typeof e?A(e):j(e,"mapStateToProps"):R((()=>({})))}(t),p=function(e){return e&&"object"==typeof e?R((t=>function(e,t){const n={};for(const r in e){const o=e[r];"function"==typeof o&&(n[r]=(...e)=>t(o(...e)))}return n}(e,t))):e?"function"==typeof e?A(e):j(e,"mapDispatchToProps"):R((e=>({dispatch:e})))}(n),m=function(e){return e?"function"==typeof e?function(e){return function(t,{displayName:n,areMergedPropsEqual:r}){let o,a=!1;return function(t,n,i){const l=e(t,n,i);return a?r(l,o)||(o=l):(a=!0,o=l),o}}}(e):j(e,"mergeProps"):()=>L}(r),g=Boolean(t);return t=>{const n=t.displayName||t.name||"Component",r=`Connect(${n})`,o={shouldHandleStateChanges:g,displayName:r,wrappedComponentName:n,WrappedComponent:t,initMapStateToProps:f,initMapDispatchToProps:p,initMergeProps:m,areStatesEqual:a,areStatePropsEqual:l,areOwnPropsEqual:i,areMergedPropsEqual:s};function u(n){const[r,a,i]=e.useMemo((()=>{const{reactReduxForwardedRef:e}=n,t=C(n,$);return[n.context,e,t]}),[n]),l=e.useMemo((()=>r&&r.Consumer&&(0,N.isContextConsumer)(e.createElement(r.Consumer,null))?r:d),[r,d]),s=e.useContext(l),c=Boolean(n.store)&&Boolean(n.store.getState)&&Boolean(n.store.dispatch),u=Boolean(s)&&Boolean(s.store),f=c?n.store:s.store,p=u?s.getServerState:f.getState,m=e.useMemo((()=>function(e,t){let{initMapStateToProps:n,initMapDispatchToProps:r,initMergeProps:o}=t,a=C(t,I);return _(n(e,a),r(e,a),o(e,a),e,a)}(f.dispatch,o)),[f]),[h,b]=e.useMemo((()=>{if(!g)return H;const e=B(f,c?void 0:s.subscription),t=e.notifyNestedSubs.bind(e);return[e,t]}),[f,c,s]),y=e.useMemo((()=>c?s:O({},s,{subscription:h})),[c,s,h]),v=e.useRef(),w=e.useRef(i),E=e.useRef(),x=e.useRef(!1),S=(e.useRef(!1),e.useRef(!1)),k=e.useRef();F((()=>(S.current=!0,()=>{S.current=!1})),[]);const P=e.useMemo((()=>()=>E.current&&i===w.current?E.current:m(f.getState(),i)),[f,i]),D=e.useMemo((()=>e=>h?function(e,t,n,r,o,a,i,l,s,c,u){if(!e)return()=>{};let d=!1,f=null;const p=()=>{if(d||!l.current)return;const e=t.getState();let n,p;try{n=r(e,o.current)}catch(e){p=e,f=e}p||(f=null),n===a.current?i.current||c():(a.current=n,s.current=n,i.current=!0,u())};return n.onStateChange=p,n.trySubscribe(),p(),()=>{if(d=!0,n.tryUnsubscribe(),n.onStateChange=null,f)throw f}}(g,f,h,m,w,v,x,S,E,b,e):()=>{}),[h]);var R,T;let A;R=G,T=[w,v,x,i,E,b],F((()=>R(...T)),undefined);try{A=W(D,P,p?()=>m(p(),i):P)}catch(e){throw k.current&&(e.message+=`\nThe error may be correlated with this previous error:\n${k.current.stack}\n\n`),e}F((()=>{k.current=void 0,E.current=void 0,v.current=A}));const j=e.useMemo((()=>e.createElement(t,O({},A,{ref:a}))),[a,t,A]);return e.useMemo((()=>g?e.createElement(l.Provider,{value:y},j):j),[l,j,y])}const h=e.memo(u);if(h.WrappedComponent=t,h.displayName=u.displayName=r,c){const n=e.forwardRef((function(t,n){return e.createElement(h,O({},t,{reactReduxForwardedRef:n}))}));return n.displayName=r,n.WrappedComponent=t,D()(n,t)}return D()(h,t)}},K=function({store:t,context:n,children:r,serverState:o,stabilityCheck:a="once",noopCheck:i="once"}){const l=e.useMemo((()=>{const e=B(t);return{store:t,subscription:e,getServerState:o?()=>o:void 0,stabilityCheck:a,noopCheck:i}}),[t,o,a,i]),s=e.useMemo((()=>t.getState()),[t]);F((()=>{const{subscription:e}=l;return e.onStateChange=e.notifyNestedSubs,e.trySubscribe(),s!==t.getState()&&e.notifyNestedSubs(),()=>{e.tryUnsubscribe(),e.onStateChange=void 0}}),[l,s]);const c=n||S;return e.createElement(c.Provider,{value:l},r)};var Q;function Y(t,n){var r=(0,e.useState)((function(){return{inputs:n,result:t()}}))[0],o=(0,e.useRef)(!0),a=(0,e.useRef)(r),i=o.current||Boolean(n&&a.current.inputs&&function(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}(n,a.current.inputs))?a.current:{inputs:n,result:t()};return(0,e.useEffect)((function(){o.current=!1,a.current=i}),[i]),i.result}k=b.useSyncExternalStoreWithSelector,(e=>{W=e})(h.useSyncExternalStore),Q=r.unstable_batchedUpdates,y=Q;var X=Y,J=function(e,t){return Y((function(){return e}),t)},Z=function(e){var t=e.top,n=e.right,r=e.bottom,o=e.left;return{top:t,right:n,bottom:r,left:o,width:n-o,height:r-t,x:o,y:t,center:{x:(n+o)/2,y:(r+t)/2}}},ee=function(e,t){return{top:e.top-t.top,left:e.left-t.left,bottom:e.bottom+t.bottom,right:e.right+t.right}},te=function(e,t){return{top:e.top+t.top,left:e.left+t.left,bottom:e.bottom-t.bottom,right:e.right-t.right}},ne={top:0,right:0,bottom:0,left:0},re=function(e){var t=e.borderBox,n=e.margin,r=void 0===n?ne:n,o=e.border,a=void 0===o?ne:o,i=e.padding,l=void 0===i?ne:i,s=Z(ee(t,r)),c=Z(te(t,a)),u=Z(te(c,l));return{marginBox:s,borderBox:Z(t),paddingBox:c,contentBox:u,margin:r,border:a,padding:l}},oe=function(e){var t=e.slice(0,-2);if("px"!==e.slice(-2))return 0;var n=Number(t);return isNaN(n)&&function(e,t){throw new Error("Invariant failed")}(),n},ae=function(e,t){var n,r,o=e.borderBox,a=e.border,i=e.margin,l=e.padding,s=(r=t,{top:(n=o).top+r.y,left:n.left+r.x,bottom:n.bottom+r.y,right:n.right+r.x});return re({borderBox:s,border:a,margin:i,padding:l})},ie=function(e,t){return void 0===t&&(t={x:window.pageXOffset,y:window.pageYOffset}),ae(e,t)},le=function(e,t){var n={top:oe(t.marginTop),right:oe(t.marginRight),bottom:oe(t.marginBottom),left:oe(t.marginLeft)},r={top:oe(t.paddingTop),right:oe(t.paddingRight),bottom:oe(t.paddingBottom),left:oe(t.paddingLeft)},o={top:oe(t.borderTopWidth),right:oe(t.borderRightWidth),bottom:oe(t.borderBottomWidth),left:oe(t.borderLeftWidth)};return re({borderBox:e,margin:n,padding:r,border:o})},se=function(e){var t=e.getBoundingClientRect(),n=window.getComputedStyle(e);return le(t,n)},ce=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function ue(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(!((r=e[n])===(o=t[n])||ce(r)&&ce(o)))return!1;var r,o;return!0}function de(e,t){void 0===t&&(t=ue);var n=null;function r(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];if(n&&n.lastThis===this&&t(r,n.lastArgs))return n.lastResult;var a=e.apply(this,r);return n={lastResult:a,lastArgs:r,lastThis:this},a}return r.clear=function(){n=null},r}const fe=function(e){var t=[],n=null,r=function(){for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];t=o,n||(n=requestAnimationFrame((function(){n=null,e.apply(void 0,t)})))};return r.cancel=function(){n&&(cancelAnimationFrame(n),n=null)},r};function pe(e,t){}function me(){}function ge(e,t,n){const r=t.map((t=>{const r=(o=n,a=t.options,{...o,...a});var o,a;return e.addEventListener(t.eventName,t.fn,r),function(){e.removeEventListener(t.eventName,t.fn,r)}}));return function(){r.forEach((e=>{e()}))}}pe.bind(null,"warn"),pe.bind(null,"error");const he=!0,be="Invariant failed";class ye extends Error{}function ve(e,t){if(!e)throw new ye(he?be:`${be}: ${t||""}`)}ye.prototype.toString=function(){return this.message};class we extends e.Component{constructor(){super(...arguments),this.callbacks=null,this.unbind=me,this.onWindowError=e=>{const t=this.getCallbacks();t.isDragging()&&t.tryAbort(),e.error instanceof ye&&e.preventDefault()},this.getCallbacks=()=>{if(!this.callbacks)throw new Error("Unable to find AppCallbacks in <ErrorBoundary/>");return this.callbacks},this.setCallbacks=e=>{this.callbacks=e}}componentDidMount(){this.unbind=ge(window,[{eventName:"error",fn:this.onWindowError}])}componentDidCatch(e){if(!(e instanceof ye))throw e;this.setState({})}componentWillUnmount(){this.unbind()}render(){return this.props.children(this.setCallbacks)}}const Ee=e=>e+1,xe=(e,t)=>{const n=e.droppableId===t.droppableId,r=Ee(e.index),o=Ee(t.index);return n?`\n You have moved the item from position ${r}\n to position ${o}\n `:`\n You have moved the item from position ${r}\n in list ${e.droppableId}\n to list ${t.droppableId}\n in position ${o}\n `},Se=(e,t,n)=>t.droppableId===n.droppableId?`\n The item ${e}\n has been combined with ${n.draggableId}`:`\n The item ${e}\n in list ${t.droppableId}\n has been combined with ${n.draggableId}\n in list ${n.droppableId}\n `,ke=e=>`\n The item has returned to its starting position\n of ${Ee(e.index)}\n`,Oe={dragHandleUsageInstructions:"\n Press space bar to start a drag.\n When dragging you can use the arrow keys to move the item around and escape to cancel.\n Some screen readers may require you to be in focus mode or to use your pass through key\n",onDragStart:e=>`\n You have lifted an item in position ${Ee(e.source.index)}\n`,onDragUpdate:e=>{const t=e.destination;if(t)return xe(e.source,t);const n=e.combine;return n?Se(e.draggableId,e.source,n):"You are over an area that cannot be dropped on"},onDragEnd:e=>{if("CANCEL"===e.reason)return`\n Movement cancelled.\n ${ke(e.source)}\n `;const t=e.destination,n=e.combine;return t?`\n You have dropped the item.\n ${xe(e.source,t)}\n `:n?`\n You have dropped the item.\n ${Se(e.draggableId,e.source,n)}\n `:`\n The item has been dropped while not over a drop area.\n ${ke(e.source)}\n `}};var Ce=Oe;const Pe={x:0,y:0},De=(e,t)=>({x:e.x+t.x,y:e.y+t.y}),Ne=(e,t)=>({x:e.x-t.x,y:e.y-t.y}),Ie=(e,t)=>e.x===t.x&&e.y===t.y,_e=e=>({x:0!==e.x?-e.x:0,y:0!==e.y?-e.y:0}),Re=function(e,t,n){return void 0===n&&(n=0),"x"===e?{x:t,y:n}:{x:n,y:t}},Te=(e,t)=>Math.sqrt((t.x-e.x)**2+(t.y-e.y)**2),Ae=(e,t)=>Math.min(...t.map((t=>Te(e,t)))),je=e=>t=>({x:e(t.x),y:e(t.y)}),Le=(e,t)=>({top:e.top+t.y,left:e.left+t.x,bottom:e.bottom+t.y,right:e.right+t.x}),Me=e=>[{x:e.left,y:e.top},{x:e.right,y:e.top},{x:e.left,y:e.bottom},{x:e.right,y:e.bottom}],Be=(e,t)=>t&&t.shouldClipSubject?((e,t)=>{const n=Z({top:Math.max(t.top,e.top),right:Math.min(t.right,e.right),bottom:Math.min(t.bottom,e.bottom),left:Math.max(t.left,e.left)});return n.width<=0||n.height<=0?null:n})(t.pageMarginBox,e):Z(e);var Fe=e=>{let{page:t,withPlaceholder:n,axis:r,frame:o}=e;const a=((e,t)=>t?Le(e,t.scroll.diff.displacement):e)(t.marginBox,o),i=((e,t,n)=>n&&n.increasedBy?{...e,[t.end]:e[t.end]+n.increasedBy[t.line]}:e)(a,r,n);return{page:t,withPlaceholder:n,active:Be(i,o)}},ze=(e,t)=>{e.frame||ve(!1);const n=e.frame,r=Ne(t,n.scroll.initial),o=_e(r),a={...n,scroll:{initial:n.scroll.initial,current:t,diff:{value:r,displacement:o},max:n.scroll.max}},i=Fe({page:e.subject.page,withPlaceholder:e.subject.withPlaceholder,axis:e.axis,frame:a});return{...e,frame:a,subject:i}};const Ue=de((e=>e.reduce(((e,t)=>(e[t.descriptor.id]=t,e)),{}))),$e=de((e=>e.reduce(((e,t)=>(e[t.descriptor.id]=t,e)),{}))),We=de((e=>Object.values(e))),He=de((e=>Object.values(e)));var Ge=de(((e,t)=>{const n=He(t).filter((t=>e===t.descriptor.droppableId)).sort(((e,t)=>e.descriptor.index-t.descriptor.index));return n}));function Ve(e){return e.at&&"REORDER"===e.at.type?e.at.destination:null}function qe(e){return e.at&&"COMBINE"===e.at.type?e.at.combine:null}var Ke=de(((e,t)=>t.filter((t=>t.descriptor.id!==e.descriptor.id)))),Qe=(e,t)=>e.descriptor.droppableId===t.descriptor.id;const Ye={point:Pe,value:0},Xe={invisible:{},visible:{},all:[]};var Je={displaced:Xe,displacedBy:Ye,at:null},Ze=(e,t)=>n=>e<=n&&n<=t,et=e=>{const t=Ze(e.top,e.bottom),n=Ze(e.left,e.right);return r=>{if(t(r.top)&&t(r.bottom)&&n(r.left)&&n(r.right))return!0;const o=t(r.top)||t(r.bottom),a=n(r.left)||n(r.right);if(o&&a)return!0;const i=r.top<e.top&&r.bottom>e.bottom,l=r.left<e.left&&r.right>e.right;return!(!i||!l)||(i&&a||l&&o)}},tt=e=>{const t=Ze(e.top,e.bottom),n=Ze(e.left,e.right);return e=>t(e.top)&&t(e.bottom)&&n(e.left)&&n(e.right)};const nt={direction:"vertical",line:"y",crossAxisLine:"x",start:"top",end:"bottom",size:"height",crossAxisStart:"left",crossAxisEnd:"right",crossAxisSize:"width"},rt={direction:"horizontal",line:"x",crossAxisLine:"y",start:"left",end:"right",size:"width",crossAxisStart:"top",crossAxisEnd:"bottom",crossAxisSize:"height"},ot=e=>{let{target:t,destination:n,viewport:r,withDroppableDisplacement:o,isVisibleThroughFrameFn:a}=e;const i=o?((e,t)=>{const n=t.frame?t.frame.scroll.diff.displacement:Pe;return Le(e,n)})(t,n):t;return((e,t,n)=>!!t.subject.active&&n(t.subject.active)(e))(i,n,a)&&((e,t,n)=>n(t)(e))(i,r,a)},at=e=>ot({...e,isVisibleThroughFrameFn:et}),it=e=>ot({...e,isVisibleThroughFrameFn:tt}),lt=(e,t,n)=>{if("boolean"==typeof n)return n;if(!t)return!0;const{invisible:r,visible:o}=t;if(r[e])return!1;const a=o[e];return!a||a.shouldAnimate};function st(e){let{afterDragging:t,destination:n,displacedBy:r,viewport:o,forceShouldAnimate:a,last:i}=e;return t.reduce((function(e,t){const l=function(e,t){const n=e.page.marginBox,r={top:t.point.y,right:0,bottom:0,left:t.point.x};return Z(ee(n,r))}(t,r),s=t.descriptor.id;if(e.all.push(s),!at({target:l,destination:n,viewport:o,withDroppableDisplacement:!0}))return e.invisible[t.descriptor.id]=!0,e;const c={draggableId:s,shouldAnimate:lt(s,i,a)};return e.visible[s]=c,e}),{all:[],visible:{},invisible:{}})}function ct(e){let{insideDestination:t,inHomeList:n,displacedBy:r,destination:o}=e;const a=function(e,t){if(!e.length)return 0;const n=e[e.length-1].descriptor.index;return t.inHomeList?n:n+1}(t,{inHomeList:n});return{displaced:Xe,displacedBy:r,at:{type:"REORDER",destination:{droppableId:o.descriptor.id,index:a}}}}function ut(e){let{draggable:t,insideDestination:n,destination:r,viewport:o,displacedBy:a,last:i,index:l,forceShouldAnimate:s}=e;const c=Qe(t,r);if(null==l)return ct({insideDestination:n,inHomeList:c,displacedBy:a,destination:r});const u=n.find((e=>e.descriptor.index===l));if(!u)return ct({insideDestination:n,inHomeList:c,displacedBy:a,destination:r});const d=Ke(t,n),f=n.indexOf(u);return{displaced:st({afterDragging:d.slice(f),destination:r,displacedBy:a,last:i,viewport:o.frame,forceShouldAnimate:s}),displacedBy:a,at:{type:"REORDER",destination:{droppableId:r.descriptor.id,index:l}}}}function dt(e,t){return Boolean(t.effected[e])}const ft=(e,t)=>t.margin[e.start]+t.borderBox[e.size]/2,pt=(e,t,n)=>t[e.crossAxisStart]+n.margin[e.crossAxisStart]+n.borderBox[e.crossAxisSize]/2,mt=e=>{let{axis:t,moveRelativeTo:n,isMoving:r}=e;return Re(t.line,n.marginBox[t.end]+ft(t,r),pt(t,n.marginBox,r))},gt=e=>{let{axis:t,moveRelativeTo:n,isMoving:r}=e;return Re(t.line,n.marginBox[t.start]-((e,t)=>t.margin[e.end]+t.borderBox[e.size]/2)(t,r),pt(t,n.marginBox,r))};var ht=(e,t)=>{const n=e.frame;return n?De(t,n.scroll.diff.displacement):t},bt=e=>{const t=(e=>{let{impact:t,draggable:n,droppable:r,draggables:o,afterCritical:a}=e;const i=n.page.borderBox.center,l=t.at;return r&&l?"REORDER"===l.type?(e=>{let{impact:t,draggable:n,draggables:r,droppable:o,afterCritical:a}=e;const i=Ge(o.descriptor.id,r),l=n.page,s=o.axis;if(!i.length)return(e=>{let{axis:t,moveInto:n,isMoving:r}=e;return Re(t.line,n.contentBox[t.start]+ft(t,r),pt(t,n.contentBox,r))})({axis:s,moveInto:o.page,isMoving:l});const{displaced:c,displacedBy:u}=t,d=c.all[0];if(d){const e=r[d];if(dt(d,a))return gt({axis:s,moveRelativeTo:e.page,isMoving:l});const t=ae(e.page,u.point);return gt({axis:s,moveRelativeTo:t,isMoving:l})}const f=i[i.length-1];if(f.descriptor.id===n.descriptor.id)return l.borderBox.center;if(dt(f.descriptor.id,a)){const e=ae(f.page,_e(a.displacedBy.point));return mt({axis:s,moveRelativeTo:e,isMoving:l})}return mt({axis:s,moveRelativeTo:f.page,isMoving:l})})({impact:t,draggable:n,draggables:o,droppable:r,afterCritical:a}):(e=>{let{afterCritical:t,impact:n,draggables:r}=e;const o=qe(n);o||ve(!1);const a=o.draggableId,i=r[a].page.borderBox.center,l=(e=>{let{displaced:t,afterCritical:n,combineWith:r,displacedBy:o}=e;const a=Boolean(t.visible[r]||t.invisible[r]);return dt(r,n)?a?Pe:_e(o.point):a?o.point:Pe})({displaced:n.displaced,afterCritical:t,combineWith:a,displacedBy:n.displacedBy});return De(i,l)})({impact:t,draggables:o,afterCritical:a}):i})(e),n=e.droppable;return n?ht(n,t):t},yt=(e,t)=>{const n=Ne(t,e.scroll.initial),r=_e(n);return{frame:Z({top:t.y,bottom:t.y+e.frame.height,left:t.x,right:t.x+e.frame.width}),scroll:{initial:e.scroll.initial,max:e.scroll.max,current:t,diff:{value:n,displacement:r}}}};function vt(e,t){return e.map((e=>t[e]))}var wt=e=>{let{pageBorderBoxCenter:t,draggable:n,viewport:r}=e;const o=((e,t)=>De(e.scroll.diff.displacement,t))(r,t),a=Ne(o,n.page.borderBox.center);return De(n.client.borderBox.center,a)},Et=e=>{let{draggable:t,destination:n,newPageBorderBoxCenter:r,viewport:o,withDroppableDisplacement:a,onlyOnMainAxis:i=!1}=e;const l=Ne(r,t.page.borderBox.center),s={target:Le(t.page.borderBox,l),destination:n,withDroppableDisplacement:a,viewport:o};return i?(e=>{return ot({...e,isVisibleThroughFrameFn:(t=e.destination.axis,e=>{const n=Ze(e.top,e.bottom),r=Ze(e.left,e.right);return e=>t===nt?n(e.top)&&n(e.bottom):r(e.left)&&r(e.right)})});var t})(s):it(s)},xt=e=>{let{isMovingForward:t,draggable:n,destination:r,draggables:o,previousImpact:a,viewport:i,previousPageBorderBoxCenter:l,previousClientSelection:s,afterCritical:c}=e;if(!r.isEnabled)return null;const u=Ge(r.descriptor.id,o),d=Qe(n,r),f=(e=>{let{isMovingForward:t,draggable:n,destination:r,insideDestination:o,previousImpact:a}=e;if(!r.isCombineEnabled)return null;if(!Ve(a))return null;function i(e){const t={type:"COMBINE",combine:{draggableId:e,droppableId:r.descriptor.id}};return{...a,at:t}}const l=a.displaced.all,s=l.length?l[0]:null;if(t)return s?i(s):null;const c=Ke(n,o);if(!s)return c.length?i(c[c.length-1].descriptor.id):null;const u=c.findIndex((e=>e.descriptor.id===s));-1===u&&ve(!1);const d=u-1;return d<0?null:i(c[d].descriptor.id)})({isMovingForward:t,draggable:n,destination:r,insideDestination:u,previousImpact:a})||(e=>{let{isMovingForward:t,isInHomeList:n,draggable:r,draggables:o,destination:a,insideDestination:i,previousImpact:l,viewport:s,afterCritical:c}=e;const u=l.at;if(u||ve(!1),"REORDER"===u.type){const e=(e=>{let{isMovingForward:t,isInHomeList:n,insideDestination:r,location:o}=e;if(!r.length)return null;const a=o.index,i=t?a+1:a-1,l=r[0].descriptor.index,s=r[r.length-1].descriptor.index;return i<l||i>(n?s:s+1)?null:i})({isMovingForward:t,isInHomeList:n,location:u.destination,insideDestination:i});return null==e?null:ut({draggable:r,insideDestination:i,destination:a,viewport:s,last:l.displaced,displacedBy:l.displacedBy,index:e})}const d=(e=>{let{isMovingForward:t,destination:n,draggables:r,combine:o,afterCritical:a}=e;if(!n.isCombineEnabled)return null;const i=o.draggableId,l=r[i].descriptor.index;return dt(i,a)?t?l:l-1:t?l+1:l})({isMovingForward:t,destination:a,displaced:l.displaced,draggables:o,combine:u.combine,afterCritical:c});return null==d?null:ut({draggable:r,insideDestination:i,destination:a,viewport:s,last:l.displaced,displacedBy:l.displacedBy,index:d})})({isMovingForward:t,isInHomeList:d,draggable:n,draggables:o,destination:r,insideDestination:u,previousImpact:a,viewport:i,afterCritical:c});if(!f)return null;const p=bt({impact:f,draggable:n,droppable:r,draggables:o,afterCritical:c});if(Et({draggable:n,destination:r,newPageBorderBoxCenter:p,viewport:i.frame,withDroppableDisplacement:!1,onlyOnMainAxis:!0}))return{clientSelection:wt({pageBorderBoxCenter:p,draggable:n,viewport:i}),impact:f,scrollJumpRequest:null};const m=Ne(p,l),g=(e=>{let{impact:t,viewport:n,destination:r,draggables:o,maxScrollChange:a}=e;const i=yt(n,De(n.scroll.current,a)),l=r.frame?ze(r,De(r.frame.scroll.current,a)):r,s=t.displaced,c=st({afterDragging:vt(s.all,o),destination:r,displacedBy:t.displacedBy,viewport:i.frame,last:s,forceShouldAnimate:!1}),u=st({afterDragging:vt(s.all,o),destination:l,displacedBy:t.displacedBy,viewport:n.frame,last:s,forceShouldAnimate:!1}),d={},f={},p=[s,c,u];return s.all.forEach((e=>{const t=function(e,t){for(let n=0;n<t.length;n++){const r=t[n].visible[e];if(r)return r}return null}(e,p);t?f[e]=t:d[e]=!0})),{...t,displaced:{all:s.all,invisible:d,visible:f}}})({impact:f,viewport:i,destination:r,draggables:o,maxScrollChange:m});return{clientSelection:s,impact:g,scrollJumpRequest:m}};const St=e=>{const t=e.subject.active;return t||ve(!1),t},kt=(e,t)=>{const n=e.page.borderBox.center;return dt(e.descriptor.id,t)?Ne(n,t.displacedBy.point):n},Ot=(e,t)=>{const n=e.page.borderBox;return dt(e.descriptor.id,t)?Le(n,_e(t.displacedBy.point)):n};var Ct=de((function(e,t){const n=t[e.line];return{value:n,point:Re(e.line,n)}}));const Pt=(e,t)=>({...e,scroll:{...e.scroll,max:t}}),Dt=(e,t,n)=>{const r=e.frame;Qe(t,e)&&ve(!1),e.subject.withPlaceholder&&ve(!1);const o=Ct(e.axis,t.displaceBy).point,a=((e,t,n)=>{const r=e.axis;if("virtual"===e.descriptor.mode)return Re(r.line,t[r.line]);const o=e.subject.page.contentBox[r.size],a=Ge(e.descriptor.id,n).reduce(((e,t)=>e+t.client.marginBox[r.size]),0)+t[r.line]-o;return a<=0?null:Re(r.line,a)})(e,o,n),i={placeholderSize:o,increasedBy:a,oldFrameMaxScroll:e.frame?e.frame.scroll.max:null};if(!r){const t=Fe({page:e.subject.page,withPlaceholder:i,axis:e.axis,frame:e.frame});return{...e,subject:t}}const l=a?De(r.scroll.max,a):r.scroll.max,s=Pt(r,l),c=Fe({page:e.subject.page,withPlaceholder:i,axis:e.axis,frame:s});return{...e,subject:c,frame:s}};var Nt=e=>{const t=e.at;return t?"REORDER"===t.type?t.destination.droppableId:t.combine.droppableId:null},It=e=>{let{state:t,type:n}=e;const r=((e,t)=>{const n=Nt(e);return n?t[n]:null})(t.impact,t.dimensions.droppables),o=Boolean(r),a=t.dimensions.droppables[t.critical.droppable.id],i=r||a,l=i.axis.direction,s="vertical"===l&&("MOVE_UP"===n||"MOVE_DOWN"===n)||"horizontal"===l&&("MOVE_LEFT"===n||"MOVE_RIGHT"===n);if(s&&!o)return null;const c="MOVE_DOWN"===n||"MOVE_RIGHT"===n,u=t.dimensions.draggables[t.critical.draggable.id],d=t.current.page.borderBoxCenter,{draggables:f,droppables:p}=t.dimensions;return s?xt({isMovingForward:c,previousPageBorderBoxCenter:d,draggable:u,destination:i,draggables:f,viewport:t.viewport,previousClientSelection:t.current.client.selection,previousImpact:t.impact,afterCritical:t.afterCritical}):(e=>{let{isMovingForward:t,previousPageBorderBoxCenter:n,draggable:r,isOver:o,draggables:a,droppables:i,viewport:l,afterCritical:s}=e;const c=(e=>{let{isMovingForward:t,pageBorderBoxCenter:n,source:r,droppables:o,viewport:a}=e;const i=r.subject.active;if(!i)return null;const l=r.axis,s=Ze(i[l.start],i[l.end]),c=We(o).filter((e=>e!==r)).filter((e=>e.isEnabled)).filter((e=>Boolean(e.subject.active))).filter((e=>et(a.frame)(St(e)))).filter((e=>{const n=St(e);return t?i[l.crossAxisEnd]<n[l.crossAxisEnd]:n[l.crossAxisStart]<i[l.crossAxisStart]})).filter((e=>{const t=St(e),n=Ze(t[l.start],t[l.end]);return s(t[l.start])||s(t[l.end])||n(i[l.start])||n(i[l.end])})).sort(((e,n)=>{const r=St(e)[l.crossAxisStart],o=St(n)[l.crossAxisStart];return t?r-o:o-r})).filter(((e,t,n)=>St(e)[l.crossAxisStart]===St(n[0])[l.crossAxisStart]));if(!c.length)return null;if(1===c.length)return c[0];const u=c.filter((e=>Ze(St(e)[l.start],St(e)[l.end])(n[l.line])));return 1===u.length?u[0]:u.length>1?u.sort(((e,t)=>St(e)[l.start]-St(t)[l.start]))[0]:c.sort(((e,t)=>{const r=Ae(n,Me(St(e))),o=Ae(n,Me(St(t)));return r!==o?r-o:St(e)[l.start]-St(t)[l.start]}))[0]})({isMovingForward:t,pageBorderBoxCenter:n,source:o,droppables:i,viewport:l});if(!c)return null;const u=Ge(c.descriptor.id,a),d=(e=>{let{pageBorderBoxCenter:t,viewport:n,destination:r,insideDestination:o,afterCritical:a}=e;const i=o.filter((e=>it({target:Ot(e,a),destination:r,viewport:n.frame,withDroppableDisplacement:!0}))).sort(((e,n)=>{const o=Te(t,ht(r,kt(e,a))),i=Te(t,ht(r,kt(n,a)));return o<i?-1:i<o?1:e.descriptor.index-n.descriptor.index}));return i[0]||null})({pageBorderBoxCenter:n,viewport:l,destination:c,insideDestination:u,afterCritical:s}),f=(e=>{let{previousPageBorderBoxCenter:t,moveRelativeTo:n,insideDestination:r,draggable:o,draggables:a,destination:i,viewport:l,afterCritical:s}=e;if(!n){if(r.length)return null;const e={displaced:Xe,displacedBy:Ye,at:{type:"REORDER",destination:{droppableId:i.descriptor.id,index:0}}},t=bt({impact:e,draggable:o,droppable:i,draggables:a,afterCritical:s}),n=Qe(o,i)?i:Dt(i,o,a);return Et({draggable:o,destination:n,newPageBorderBoxCenter:t,viewport:l.frame,withDroppableDisplacement:!1,onlyOnMainAxis:!0})?e:null}const c=Boolean(t[i.axis.line]<=n.page.borderBox.center[i.axis.line]),u=(()=>{const e=n.descriptor.index;return n.descriptor.id===o.descriptor.id||c?e:e+1})(),d=Ct(i.axis,o.displaceBy);return ut({draggable:o,insideDestination:r,destination:i,viewport:l,displacedBy:d,last:Xe,index:u})})({previousPageBorderBoxCenter:n,destination:c,draggable:r,draggables:a,moveRelativeTo:d,insideDestination:u,viewport:l,afterCritical:s});if(!f)return null;const p=bt({impact:f,draggable:r,droppable:c,draggables:a,afterCritical:s});return{clientSelection:wt({pageBorderBoxCenter:p,draggable:r,viewport:l}),impact:f,scrollJumpRequest:null}})({isMovingForward:c,previousPageBorderBoxCenter:d,draggable:u,isOver:i,draggables:f,droppables:p,viewport:t.viewport,afterCritical:t.afterCritical})};function _t(e){return"DRAGGING"===e.phase||"COLLECTING"===e.phase}function Rt(e){const t=Ze(e.top,e.bottom),n=Ze(e.left,e.right);return function(e){return t(e.y)&&n(e.x)}}const Tt=(e,t)=>Z(Le(e,t));function At(e){let{displaced:t,id:n}=e;return Boolean(t.visible[n]||t.invisible[n])}var jt=e=>{let{pageOffset:t,draggable:n,draggables:r,droppables:o,previousImpact:a,viewport:i,afterCritical:l}=e;const s=Tt(n.page.borderBox,t),c=function(e){let{pageBorderBox:t,draggable:n,droppables:r}=e;const o=We(r).filter((e=>{if(!e.isEnabled)return!1;const n=e.subject.active;if(!n)return!1;if(o=n,!((r=t).left<o.right&&r.right>o.left&&r.top<o.bottom&&r.bottom>o.top))return!1;var r,o;if(Rt(n)(t.center))return!0;const a=e.axis,i=n.center[a.crossAxisLine],l=t[a.crossAxisStart],s=t[a.crossAxisEnd],c=Ze(n[a.crossAxisStart],n[a.crossAxisEnd]),u=c(l),d=c(s);return!u&&!d||(u?l<i:s>i)}));return o.length?1===o.length?o[0].descriptor.id:function(e){let{pageBorderBox:t,draggable:n,candidates:r}=e;const o=n.page.borderBox.center,a=r.map((e=>{const n=e.axis,r=Re(e.axis.line,t.center[n.line],e.page.borderBox.center[n.crossAxisLine]);return{id:e.descriptor.id,distance:Te(o,r)}})).sort(((e,t)=>t.distance-e.distance));return a[0]?a[0].id:null}({pageBorderBox:t,draggable:n,candidates:o}):null}({pageBorderBox:s,draggable:n,droppables:o});if(!c)return Je;const u=o[c],d=Ge(u.descriptor.id,r),f=((e,t)=>{const n=e.frame;return n?Tt(t,n.scroll.diff.value):t})(u,s);return(e=>{let{draggable:t,pageBorderBoxWithDroppableScroll:n,previousImpact:r,destination:o,insideDestination:a,afterCritical:i}=e;if(!o.isCombineEnabled)return null;const l=o.axis,s=Ct(o.axis,t.displaceBy),c=s.value,u=n[l.start],d=n[l.end],f=Ke(t,a).find((e=>{const t=e.descriptor.id,n=e.page.borderBox,o=n[l.size]/4,a=dt(t,i),s=At({displaced:r.displaced,id:t});return a?s?d>n[l.start]+o&&d<n[l.end]-o:u>n[l.start]-c+o&&u<n[l.end]-c-o:s?d>n[l.start]+c+o&&d<n[l.end]+c-o:u>n[l.start]+o&&u<n[l.end]-o}));return f?{displacedBy:s,displaced:r.displaced,at:{type:"COMBINE",combine:{draggableId:f.descriptor.id,droppableId:o.descriptor.id}}}:null})({pageBorderBoxWithDroppableScroll:f,draggable:n,previousImpact:a,destination:u,insideDestination:d,afterCritical:l})||(e=>{let{pageBorderBoxWithDroppableScroll:t,draggable:n,destination:r,insideDestination:o,last:a,viewport:i,afterCritical:l}=e;const s=r.axis,c=Ct(r.axis,n.displaceBy),u=c.value,d=t[s.start],f=t[s.end],p=function(e){let{draggable:t,closest:n,inHomeList:r}=e;return n?r&&n.descriptor.index>t.descriptor.index?n.descriptor.index-1:n.descriptor.index:null}({draggable:n,closest:Ke(n,o).find((e=>{const t=e.descriptor.id,n=e.page.borderBox.center[s.line],r=dt(t,l),o=At({displaced:a,id:t});return r?o?f<=n:d<n-u:o?f<=n+u:d<n}))||null,inHomeList:Qe(n,r)});return ut({draggable:n,insideDestination:o,destination:r,viewport:i,last:a,displacedBy:c,index:p})})({pageBorderBoxWithDroppableScroll:f,draggable:n,destination:u,insideDestination:d,last:a.displaced,viewport:i,afterCritical:l})},Lt=(e,t)=>({...e,[t.descriptor.id]:t});var Mt=e=>{let{state:t,clientSelection:n,dimensions:r,viewport:o,impact:a,scrollJumpRequest:i}=e;const l=o||t.viewport,s=r||t.dimensions,c=n||t.current.client.selection,u=Ne(c,t.initial.client.selection),d={offset:u,selection:c,borderBoxCenter:De(t.initial.client.borderBoxCenter,u)},f={selection:De(d.selection,l.scroll.current),borderBoxCenter:De(d.borderBoxCenter,l.scroll.current),offset:De(d.offset,l.scroll.diff.value)},p={client:d,page:f};if("COLLECTING"===t.phase)return{...t,dimensions:s,viewport:l,current:p};const m=s.draggables[t.critical.draggable.id],g=a||jt({pageOffset:f.offset,draggable:m,draggables:s.draggables,droppables:s.droppables,previousImpact:t.impact,viewport:l,afterCritical:t.afterCritical}),h=(e=>{let{draggable:t,draggables:n,droppables:r,previousImpact:o,impact:a}=e;const i=(e=>{let{previousImpact:t,impact:n,droppables:r}=e;const o=Nt(t),a=Nt(n);if(!o)return r;if(o===a)return r;const i=r[o];if(!i.subject.withPlaceholder)return r;const l=(e=>{const t=e.subject.withPlaceholder;t||ve(!1);const n=e.frame;if(!n){const t=Fe({page:e.subject.page,axis:e.axis,frame:null,withPlaceholder:null});return{...e,subject:t}}const r=t.oldFrameMaxScroll;r||ve(!1);const o=Pt(n,r),a=Fe({page:e.subject.page,axis:e.axis,frame:o,withPlaceholder:null});return{...e,subject:a,frame:o}})(i);return Lt(r,l)})({previousImpact:o,impact:a,droppables:r}),l=Nt(a);if(!l)return i;const s=r[l];if(Qe(t,s))return i;if(s.subject.withPlaceholder)return i;const c=Dt(s,t,n);return Lt(i,c)})({draggable:m,impact:g,previousImpact:t.impact,draggables:s.draggables,droppables:s.droppables});return{...t,current:p,dimensions:{draggables:s.draggables,droppables:h},impact:g,viewport:l,scrollJumpRequest:i||null,forceShouldAnimate:!i&&null}},Bt=e=>{let{impact:t,viewport:n,draggables:r,destination:o,forceShouldAnimate:a}=e;const i=t.displaced,l=function(e,t){return e.map((e=>t[e]))}(i.all,r),s=st({afterDragging:l,destination:o,displacedBy:t.displacedBy,viewport:n.frame,forceShouldAnimate:a,last:i});return{...t,displaced:s}},Ft=e=>{let{impact:t,draggable:n,droppable:r,draggables:o,viewport:a,afterCritical:i}=e;const l=bt({impact:t,draggable:n,draggables:o,droppable:r,afterCritical:i});return wt({pageBorderBoxCenter:l,draggable:n,viewport:a})},zt=e=>{let{state:t,dimensions:n,viewport:r}=e;"SNAP"!==t.movementMode&&ve(!1);const o=t.impact,a=r||t.viewport,i=n||t.dimensions,{draggables:l,droppables:s}=i,c=l[t.critical.draggable.id],u=Nt(o);u||ve(!1);const d=s[u],f=Bt({impact:o,viewport:a,destination:d,draggables:l}),p=Ft({impact:f,draggable:c,droppable:d,draggables:l,viewport:a,afterCritical:t.afterCritical});return Mt({impact:f,clientSelection:p,state:t,dimensions:i,viewport:a})},Ut=e=>{let{draggable:t,home:n,draggables:r,viewport:o}=e;const a=Ct(n.axis,t.displaceBy),i=Ge(n.descriptor.id,r),l=i.indexOf(t);-1===l&&ve(!1);const s=i.slice(l+1),c=s.reduce(((e,t)=>(e[t.descriptor.id]=!0,e)),{}),u={inVirtualList:"virtual"===n.descriptor.mode,displacedBy:a,effected:c};var d;return{impact:{displaced:st({afterDragging:s,destination:n,displacedBy:a,last:null,viewport:o.frame,forceShouldAnimate:!1}),displacedBy:a,at:{type:"REORDER",destination:(d=t.descriptor,{index:d.index,droppableId:d.droppableId})}},afterCritical:u}};const $t=e=>"SNAP"===e.movementMode,Wt=(e,t,n)=>{const r=((e,t)=>({draggables:e.draggables,droppables:Lt(e.droppables,t)}))(e.dimensions,t);return!$t(e)||n?Mt({state:e,dimensions:r}):zt({state:e,dimensions:r})};function Ht(e){return e.isDragging&&"SNAP"===e.movementMode?{...e,scrollJumpRequest:null}:e}const Gt={phase:"IDLE",completed:null,shouldFlush:!1};var Vt=function(e,t){if(void 0===e&&(e=Gt),"FLUSH"===t.type)return{...Gt,shouldFlush:!0};if("INITIAL_PUBLISH"===t.type){"IDLE"!==e.phase&&ve(!1);const{critical:n,clientSelection:r,viewport:o,dimensions:a,movementMode:i}=t.payload,l=a.draggables[n.draggable.id],s=a.droppables[n.droppable.id],c={selection:r,borderBoxCenter:l.client.borderBox.center,offset:Pe},u={client:c,page:{selection:De(c.selection,o.scroll.initial),borderBoxCenter:De(c.selection,o.scroll.initial),offset:De(c.selection,o.scroll.diff.value)}},d=We(a.droppables).every((e=>!e.isFixedOnPage)),{impact:f,afterCritical:p}=Ut({draggable:l,home:s,draggables:a.draggables,viewport:o});return{phase:"DRAGGING",isDragging:!0,critical:n,movementMode:i,dimensions:a,initial:u,current:u,isWindowScrollAllowed:d,impact:f,afterCritical:p,onLiftImpact:f,viewport:o,scrollJumpRequest:null,forceShouldAnimate:null}}if("COLLECTION_STARTING"===t.type)return"COLLECTING"===e.phase||"DROP_PENDING"===e.phase?e:("DRAGGING"!==e.phase&&ve(!1),{...e,phase:"COLLECTING"});if("PUBLISH_WHILE_DRAGGING"===t.type)return"COLLECTING"!==e.phase&&"DROP_PENDING"!==e.phase&&ve(!1),(e=>{let{state:t,published:n}=e;const r=n.modified.map((e=>{const n=t.dimensions.droppables[e.droppableId];return ze(n,e.scroll)})),o={...t.dimensions.droppables,...Ue(r)},a=$e((e=>{let{additions:t,updatedDroppables:n,viewport:r}=e;const o=r.scroll.diff.value;return t.map((e=>{const t=e.descriptor.droppableId,a=(e=>{const t=e.frame;return t||ve(!1),t})(n[t]),i=a.scroll.diff.value,l=(e=>{let{draggable:t,offset:n,initialWindowScroll:r}=e;const o=ae(t.client,n),a=ie(o,r);return{...t,placeholder:{...t.placeholder,client:o},client:o,page:a}})({draggable:e,offset:De(o,i),initialWindowScroll:r.scroll.initial});return l}))})({additions:n.additions,updatedDroppables:o,viewport:t.viewport})),i={...t.dimensions.draggables,...a};n.removals.forEach((e=>{delete i[e]}));const l={droppables:o,draggables:i},s=Nt(t.impact),c=s?l.droppables[s]:null,u=l.draggables[t.critical.draggable.id],d=l.droppables[t.critical.droppable.id],{impact:f,afterCritical:p}=Ut({draggable:u,home:d,draggables:i,viewport:t.viewport}),m=c&&c.isCombineEnabled?t.impact:f,g=jt({pageOffset:t.current.page.offset,draggable:l.draggables[t.critical.draggable.id],draggables:l.draggables,droppables:l.droppables,previousImpact:m,viewport:t.viewport,afterCritical:p}),h={...t,phase:"DRAGGING",impact:g,onLiftImpact:f,dimensions:l,afterCritical:p,forceShouldAnimate:!1};return"COLLECTING"===t.phase?h:{...h,phase:"DROP_PENDING",reason:t.reason,isWaiting:!1}})({state:e,published:t.payload});if("MOVE"===t.type){if("DROP_PENDING"===e.phase)return e;_t(e)||ve(!1);const{client:n}=t.payload;return Ie(n,e.current.client.selection)?e:Mt({state:e,clientSelection:n,impact:$t(e)?e.impact:null})}if("UPDATE_DROPPABLE_SCROLL"===t.type){if("DROP_PENDING"===e.phase)return Ht(e);if("COLLECTING"===e.phase)return Ht(e);_t(e)||ve(!1);const{id:n,newScroll:r}=t.payload,o=e.dimensions.droppables[n];if(!o)return e;const a=ze(o,r);return Wt(e,a,!1)}if("UPDATE_DROPPABLE_IS_ENABLED"===t.type){if("DROP_PENDING"===e.phase)return e;_t(e)||ve(!1);const{id:n,isEnabled:r}=t.payload,o=e.dimensions.droppables[n];o||ve(!1),o.isEnabled===r&&ve(!1);const a={...o,isEnabled:r};return Wt(e,a,!0)}if("UPDATE_DROPPABLE_IS_COMBINE_ENABLED"===t.type){if("DROP_PENDING"===e.phase)return e;_t(e)||ve(!1);const{id:n,isCombineEnabled:r}=t.payload,o=e.dimensions.droppables[n];o||ve(!1),o.isCombineEnabled===r&&ve(!1);const a={...o,isCombineEnabled:r};return Wt(e,a,!0)}if("MOVE_BY_WINDOW_SCROLL"===t.type){if("DROP_PENDING"===e.phase||"DROP_ANIMATING"===e.phase)return e;_t(e)||ve(!1),e.isWindowScrollAllowed||ve(!1);const n=t.payload.newScroll;if(Ie(e.viewport.scroll.current,n))return Ht(e);const r=yt(e.viewport,n);return $t(e)?zt({state:e,viewport:r}):Mt({state:e,viewport:r})}if("UPDATE_VIEWPORT_MAX_SCROLL"===t.type){if(!_t(e))return e;const n=t.payload.maxScroll;if(Ie(n,e.viewport.scroll.max))return e;const r={...e.viewport,scroll:{...e.viewport.scroll,max:n}};return{...e,viewport:r}}if("MOVE_UP"===t.type||"MOVE_DOWN"===t.type||"MOVE_LEFT"===t.type||"MOVE_RIGHT"===t.type){if("COLLECTING"===e.phase||"DROP_PENDING"===e.phase)return e;"DRAGGING"!==e.phase&&ve(!1);const n=It({state:e,type:t.type});return n?Mt({state:e,impact:n.impact,clientSelection:n.clientSelection,scrollJumpRequest:n.scrollJumpRequest}):e}if("DROP_PENDING"===t.type){const n=t.payload.reason;return"COLLECTING"!==e.phase&&ve(!1),{...e,phase:"DROP_PENDING",isWaiting:!0,reason:n}}if("DROP_ANIMATE"===t.type){const{completed:n,dropDuration:r,newHomeClientOffset:o}=t.payload;return"DRAGGING"!==e.phase&&"DROP_PENDING"!==e.phase&&ve(!1),{phase:"DROP_ANIMATING",completed:n,dropDuration:r,newHomeClientOffset:o,dimensions:e.dimensions}}if("DROP_COMPLETE"===t.type){const{completed:e}=t.payload;return{phase:"IDLE",completed:e,shouldFlush:!1}}return e};const qt=e=>({type:"LIFT",payload:e}),Kt=e=>({type:"PUBLISH_WHILE_DRAGGING",payload:e}),Qt=()=>({type:"COLLECTION_STARTING",payload:null}),Yt=e=>({type:"UPDATE_DROPPABLE_SCROLL",payload:e}),Xt=e=>({type:"UPDATE_DROPPABLE_IS_ENABLED",payload:e}),Jt=e=>({type:"UPDATE_DROPPABLE_IS_COMBINE_ENABLED",payload:e}),Zt=e=>({type:"MOVE",payload:e}),en=()=>({type:"MOVE_UP",payload:null}),tn=()=>({type:"MOVE_DOWN",payload:null}),nn=()=>({type:"MOVE_RIGHT",payload:null}),rn=()=>({type:"MOVE_LEFT",payload:null}),on=()=>({type:"FLUSH",payload:null}),an=e=>({type:"DROP_COMPLETE",payload:e}),ln=e=>({type:"DROP",payload:e}),sn="cubic-bezier(.2,1,.1,1)",cn=0,un=.7,dn=.75,fn={outOfTheWay:.2,minDropTime:.33,maxDropTime:.55},pn=`${fn.outOfTheWay}s cubic-bezier(0.2, 0, 0, 1)`,mn={fluid:`opacity ${pn}`,snap:`transform ${pn}, opacity ${pn}`,drop:e=>{const t=`${e}s ${sn}`;return`transform ${t}, opacity ${t}`},outOfTheWay:`transform ${pn}`,placeholder:`height ${pn}, width ${pn}, margin ${pn}`},gn=e=>Ie(e,Pe)?void 0:`translate(${e.x}px, ${e.y}px)`,hn=gn,bn=(e,t)=>{const n=gn(e);if(n)return t?`${n} scale(${dn})`:n},{minDropTime:yn,maxDropTime:vn}=fn,wn=vn-yn;var En=e=>{let{getState:t,dispatch:n}=e;return e=>r=>{if("DROP"!==r.type)return void e(r);const o=t(),a=r.payload.reason;if("COLLECTING"===o.phase)return void n((i={reason:a},{type:"DROP_PENDING",payload:i}));var i;if("IDLE"===o.phase)return;"DROP_PENDING"===o.phase&&o.isWaiting&&ve(!1),"DRAGGING"!==o.phase&&"DROP_PENDING"!==o.phase&&ve(!1);const l=o.critical,s=o.dimensions,c=s.draggables[o.critical.draggable.id],{impact:u,didDropInsideDroppable:d}=(e=>{let{draggables:t,reason:n,lastImpact:r,home:o,viewport:a,onLiftImpact:i}=e;return r.at&&"DROP"===n?"REORDER"===r.at.type?{impact:r,didDropInsideDroppable:!0}:{impact:{...r,displaced:Xe},didDropInsideDroppable:!0}:{impact:Bt({draggables:t,impact:i,destination:o,viewport:a,forceShouldAnimate:!0}),didDropInsideDroppable:!1}})({reason:a,lastImpact:o.impact,afterCritical:o.afterCritical,onLiftImpact:o.onLiftImpact,home:o.dimensions.droppables[o.critical.droppable.id],viewport:o.viewport,draggables:o.dimensions.draggables}),f=d?Ve(u):null,p=d?qe(u):null,m={index:l.draggable.index,droppableId:l.droppable.id},g={draggableId:c.descriptor.id,type:c.descriptor.type,source:m,reason:a,mode:o.movementMode,destination:f,combine:p},h=(e=>{let{impact:t,draggable:n,dimensions:r,viewport:o,afterCritical:a}=e;const{draggables:i,droppables:l}=r,s=Nt(t),c=s?l[s]:null,u=l[n.descriptor.droppableId],d=Ft({impact:t,draggable:n,draggables:i,afterCritical:a,droppable:c||u,viewport:o});return Ne(d,n.client.borderBox.center)})({impact:u,draggable:c,dimensions:s,viewport:o.viewport,afterCritical:o.afterCritical}),b={critical:o.critical,afterCritical:o.afterCritical,result:g,impact:u};if(Ie(o.current.client.offset,h)&&!Boolean(g.combine))return void n(an({completed:b}));const y=(e=>{let{current:t,destination:n,reason:r}=e;const o=Te(t,n);if(o<=0)return yn;if(o>=1500)return vn;const a=yn+wn*(o/1500);return Number(("CANCEL"===r?.6*a:a).toFixed(2))})({current:o.current.client.offset,destination:h,reason:a});n((e=>({type:"DROP_ANIMATE",payload:e}))({newHomeClientOffset:h,dropDuration:y,completed:b}))}},xn=()=>({x:window.pageXOffset,y:window.pageYOffset});var Sn=e=>{const t=function(e){let{onWindowScroll:t}=e;const n=fe((function(){t(xn())})),r=function(e){return{eventName:"scroll",options:{passive:!0,capture:!1},fn:t=>{t.target!==window&&t.target!==window.document||e()}}}(n);let o=me;function a(){return o!==me}return{start:function(){a()&&ve(!1),o=ge(window,[r])},stop:function(){a()||ve(!1),n.cancel(),o(),o=me},isActive:a}}({onWindowScroll:t=>{e.dispatch({type:"MOVE_BY_WINDOW_SCROLL",payload:{newScroll:t}})}});return e=>n=>{t.isActive()||"INITIAL_PUBLISH"!==n.type||t.start(),t.isActive()&&(e=>"DROP_COMPLETE"===e.type||"DROP_ANIMATE"===e.type||"FLUSH"===e.type)(n)&&t.stop(),e(n)}};const kn=(e,t)=>{t()},On=(e,t)=>({draggableId:e.draggable.id,type:e.droppable.type,source:{droppableId:e.droppable.id,index:e.draggable.index},mode:t});function Cn(e,t,n,r){if(!e)return void n(r(t));const o=(e=>{let t=!1,n=!1;const r=setTimeout((()=>{n=!0})),o=o=>{t||n||(t=!0,e(o),clearTimeout(r))};return o.wasCalled=()=>t,o})(n);e(t,{announce:o}),o.wasCalled()||n(r(t))}var Pn=(e,t)=>{const n=((e,t)=>{const n=(()=>{const e=[];return{add:t=>{const n=setTimeout((()=>(t=>{const n=e.findIndex((e=>e.timerId===t));-1===n&&ve(!1);const[r]=e.splice(n,1);r.callback()})(n))),r={timerId:n,callback:t};e.push(r)},flush:()=>{if(!e.length)return;const t=[...e];e.length=0,t.forEach((e=>{clearTimeout(e.timerId),e.callback()}))}}})();let r=null;const o=n=>{r||ve(!1),r=null,kn(0,(()=>Cn(e().onDragEnd,n,t,Ce.onDragEnd)))};return{beforeCapture:(t,n)=>{r&&ve(!1),kn(0,(()=>{const r=e().onBeforeCapture;r&&r({draggableId:t,mode:n})}))},beforeStart:(t,n)=>{r&&ve(!1),kn(0,(()=>{const r=e().onBeforeDragStart;r&&r(On(t,n))}))},start:(o,a)=>{r&&ve(!1);const i=On(o,a);r={mode:a,lastCritical:o,lastLocation:i.source,lastCombine:null},n.add((()=>{kn(0,(()=>Cn(e().onDragStart,i,t,Ce.onDragStart)))}))},update:(o,a)=>{const i=Ve(a),l=qe(a);r||ve(!1);const s=!((e,t)=>{if(e===t)return!0;const n=e.draggable.id===t.draggable.id&&e.draggable.droppableId===t.draggable.droppableId&&e.draggable.type===t.draggable.type&&e.draggable.index===t.draggable.index,r=e.droppable.id===t.droppable.id&&e.droppable.type===t.droppable.type;return n&&r})(o,r.lastCritical);s&&(r.lastCritical=o);const c=(d=i,!(null==(u=r.lastLocation)&&null==d||null!=u&&null!=d&&u.droppableId===d.droppableId&&u.index===d.index));var u,d;c&&(r.lastLocation=i);const f=!((e,t)=>null==e&&null==t||null!=e&&null!=t&&e.draggableId===t.draggableId&&e.droppableId===t.droppableId)(r.lastCombine,l);if(f&&(r.lastCombine=l),!s&&!c&&!f)return;const p={...On(o,r.mode),combine:l,destination:i};n.add((()=>{kn(0,(()=>Cn(e().onDragUpdate,p,t,Ce.onDragUpdate)))}))},flush:()=>{r||ve(!1),n.flush()},drop:o,abort:()=>{if(!r)return;const e={...On(r.lastCritical,r.mode),combine:null,destination:null,reason:"CANCEL"};o(e)}}})(e,t);return e=>t=>r=>{if("BEFORE_INITIAL_CAPTURE"===r.type)return void n.beforeCapture(r.payload.draggableId,r.payload.movementMode);if("INITIAL_PUBLISH"===r.type){const e=r.payload.critical;return n.beforeStart(e,r.payload.movementMode),t(r),void n.start(e,r.payload.movementMode)}if("DROP_COMPLETE"===r.type){const e=r.payload.completed.result;return n.flush(),t(r),void n.drop(e)}if(t(r),"FLUSH"===r.type)return void n.abort();const o=e.getState();"DRAGGING"===o.phase&&n.update(o.critical,o.impact)}},Dn=e=>t=>n=>{if("DROP_ANIMATION_FINISHED"!==n.type)return void t(n);const r=e.getState();"DROP_ANIMATING"!==r.phase&&ve(!1),e.dispatch(an({completed:r.completed}))},Nn=e=>{let t=null,n=null;return r=>o=>{if("FLUSH"!==o.type&&"DROP_COMPLETE"!==o.type&&"DROP_ANIMATION_FINISHED"!==o.type||(n&&(cancelAnimationFrame(n),n=null),t&&(t(),t=null)),r(o),"DROP_ANIMATE"!==o.type)return;const a={eventName:"scroll",options:{capture:!0,passive:!1,once:!0},fn:function(){"DROP_ANIMATING"===e.getState().phase&&e.dispatch({type:"DROP_ANIMATION_FINISHED",payload:null})}};n=requestAnimationFrame((()=>{n=null,t=ge(window,[a])}))}},In=e=>t=>n=>{if(t(n),"PUBLISH_WHILE_DRAGGING"!==n.type)return;const r=e.getState();"DROP_PENDING"===r.phase&&(r.isWaiting||e.dispatch(ln({reason:r.reason})))};const _n=g;var Rn=e=>{let{dimensionMarshal:t,focusMarshal:n,styleMarshal:r,getResponders:o,announce:a,autoScroller:i}=e;return f(Vt,_n(function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){return function(){var n=e.apply(void 0,arguments),r=function(){throw new Error(s(15))},o={getState:n.getState,dispatch:function(){return r.apply(void 0,arguments)}},a=t.map((function(e){return e(o)}));return r=g.apply(void 0,a)(n.dispatch),l(l({},n),{},{dispatch:r})}}}((c=r,()=>e=>t=>{"INITIAL_PUBLISH"===t.type&&c.dragging(),"DROP_ANIMATE"===t.type&&c.dropping(t.payload.completed.result.reason),"FLUSH"!==t.type&&"DROP_COMPLETE"!==t.type||c.resting(),e(t)}),(e=>()=>t=>n=>{"DROP_COMPLETE"!==n.type&&"FLUSH"!==n.type&&"DROP_ANIMATE"!==n.type||e.stopPublishing(),t(n)})(t),(e=>t=>{let{getState:n,dispatch:r}=t;return t=>o=>{if("LIFT"!==o.type)return void t(o);const{id:a,clientSelection:i,movementMode:l}=o.payload,s=n();"DROP_ANIMATING"===s.phase&&r(an({completed:s.completed})),"IDLE"!==n().phase&&ve(!1),r(on()),r({type:"BEFORE_INITIAL_CAPTURE",payload:{draggableId:a,movementMode:l}});const c={draggableId:a,scrollOptions:{shouldPublishImmediately:"SNAP"===l}},{critical:u,dimensions:d,viewport:f}=e.startPublishing(c);r({type:"INITIAL_PUBLISH",payload:{critical:u,dimensions:d,clientSelection:i,movementMode:l,viewport:f}})}})(t),En,Dn,Nn,In,(e=>t=>n=>r=>{if((e=>"DROP_COMPLETE"===e.type||"DROP_ANIMATE"===e.type||"FLUSH"===e.type)(r))return e.stop(),void n(r);if("INITIAL_PUBLISH"===r.type){n(r);const o=t.getState();return"DRAGGING"!==o.phase&&ve(!1),void e.start(o)}n(r),e.scroll(t.getState())})(i),Sn,(e=>{let t=!1;return()=>n=>r=>{if("INITIAL_PUBLISH"===r.type)return t=!0,e.tryRecordFocus(r.payload.critical.draggable.id),n(r),void e.tryRestoreFocusRecorded();if(n(r),t){if("FLUSH"===r.type)return t=!1,void e.tryRestoreFocusRecorded();if("DROP_COMPLETE"===r.type){t=!1;const n=r.payload.completed.result;n.combine&&e.tryShiftRecord(n.draggableId,n.combine.draggableId),e.tryRestoreFocusRecorded()}}}})(n),Pn(o,a))));var c},Tn=e=>{let{scrollHeight:t,scrollWidth:n,height:r,width:o}=e;const a=Ne({x:n,y:t},{x:o,y:r});return{x:Math.max(0,a.x),y:Math.max(0,a.y)}},An=()=>{const e=document.documentElement;return e||ve(!1),e},jn=()=>{const e=An();return Tn({scrollHeight:e.scrollHeight,scrollWidth:e.scrollWidth,width:e.clientWidth,height:e.clientHeight})};function Ln(e,t,n){return n.descriptor.id!==t.id&&(n.descriptor.type===t.type&&"virtual"===e.droppable.getById(n.descriptor.droppableId).descriptor.mode)}var Mn=(e,t)=>{let n=null;const r=function(e){let{registry:t,callbacks:n}=e,r={additions:{},removals:{},modified:{}},o=null;const a=()=>{o||(n.collectionStarting(),o=requestAnimationFrame((()=>{o=null;const{additions:e,removals:a,modified:i}=r,l=Object.keys(e).map((e=>t.draggable.getById(e).getDimension(Pe))).sort(((e,t)=>e.descriptor.index-t.descriptor.index)),s=Object.keys(i).map((e=>({droppableId:e,scroll:t.droppable.getById(e).callbacks.getScrollWhileDragging()}))),c={additions:l,removals:Object.keys(a),modified:s};r={additions:{},removals:{},modified:{}},n.publish(c)})))};return{add:e=>{const t=e.descriptor.id;r.additions[t]=e,r.modified[e.descriptor.droppableId]=!0,r.removals[t]&&delete r.removals[t],a()},remove:e=>{const t=e.descriptor;r.removals[t.id]=!0,r.modified[t.droppableId]=!0,r.additions[t.id]&&delete r.additions[t.id],a()},stop:()=>{o&&(cancelAnimationFrame(o),o=null,r={additions:{},removals:{},modified:{}})}}}({callbacks:{publish:t.publishWhileDragging,collectionStarting:t.collectionStarting},registry:e}),o=t=>{n||ve(!1);const o=n.critical.draggable;"ADDITION"===t.type&&Ln(e,o,t.value)&&r.add(t.value),"REMOVAL"===t.type&&Ln(e,o,t.value)&&r.remove(t.value)},a={updateDroppableIsEnabled:(r,o)=>{e.droppable.exists(r)||ve(!1),n&&t.updateDroppableIsEnabled({id:r,isEnabled:o})},updateDroppableIsCombineEnabled:(r,o)=>{n&&(e.droppable.exists(r)||ve(!1),t.updateDroppableIsCombineEnabled({id:r,isCombineEnabled:o}))},scrollDroppable:(t,r)=>{n&&e.droppable.getById(t).callbacks.scroll(r)},updateDroppableScroll:(r,o)=>{n&&(e.droppable.exists(r)||ve(!1),t.updateDroppableScroll({id:r,newScroll:o}))},startPublishing:t=>{n&&ve(!1);const r=e.draggable.getById(t.draggableId),a=e.droppable.getById(r.descriptor.droppableId),i={draggable:r.descriptor,droppable:a.descriptor},l=e.subscribe(o);return n={critical:i,unsubscribe:l},(e=>{let{critical:t,scrollOptions:n,registry:r}=e;const o=(()=>{const e=xn(),t=jn(),n=e.y,r=e.x,o=An(),a=o.clientWidth,i=o.clientHeight;return{frame:Z({top:n,left:r,right:r+a,bottom:n+i}),scroll:{initial:e,current:e,max:t,diff:{value:Pe,displacement:Pe}}}})(),a=o.scroll.current,i=t.droppable,l=r.droppable.getAllByType(i.type).map((e=>e.callbacks.getDimensionAndWatchScroll(a,n))),s=r.draggable.getAllByType(t.draggable.type).map((e=>e.getDimension(a)));return{dimensions:{draggables:$e(s),droppables:Ue(l)},critical:t,viewport:o}})({critical:i,registry:e,scrollOptions:t.scrollOptions})},stopPublishing:()=>{if(!n)return;r.stop();const t=n.critical.droppable;e.droppable.getAllByType(t.type).forEach((e=>e.callbacks.dragStopped())),n.unsubscribe(),n=null}};return a},Bn=(e,t)=>"IDLE"===e.phase||"DROP_ANIMATING"===e.phase&&e.completed.result.draggableId!==t&&"DROP"===e.completed.result.reason,Fn=e=>{window.scrollBy(e.x,e.y)};const zn=de((e=>We(e).filter((e=>!!e.isEnabled&&!!e.frame))));const Un={startFromPercentage:.25,maxScrollAtPercentage:.05,maxPixelScroll:28,ease:e=>e**2,durationDampening:{stopDampeningAt:1200,accelerateAt:360},disabled:!1};var $n=e=>{let{startOfRange:t,endOfRange:n,current:r}=e;const o=n-t;return 0===o?0:(r-t)/o},Wn=e=>{let{distanceToEdge:t,thresholds:n,dragStartTime:r,shouldUseTimeDampening:o,getAutoScrollerOptions:a}=e;const i=function(e,t,n){void 0===n&&(n=()=>Un);const r=n();if(e>t.startScrollingFrom)return 0;if(e<=t.maxScrollValueAt)return r.maxPixelScroll;if(e===t.startScrollingFrom)return 1;const o=1-$n({startOfRange:t.maxScrollValueAt,endOfRange:t.startScrollingFrom,current:e}),a=r.maxPixelScroll*r.ease(o);return Math.ceil(a)}(t,n,a);return 0===i?0:o?Math.max(((e,t,n)=>{const r=n(),o=r.durationDampening.accelerateAt,a=r.durationDampening.stopDampeningAt,i=t,l=a,s=Date.now()-i;if(s>=a)return e;if(s<o)return 1;const c=$n({startOfRange:o,endOfRange:l,current:s}),u=e*r.ease(c);return Math.ceil(u)})(i,r,a),1):i},Hn=e=>{let{container:t,distanceToEdges:n,dragStartTime:r,axis:o,shouldUseTimeDampening:a,getAutoScrollerOptions:i}=e;const l=function(e,t,n){void 0===n&&(n=()=>Un);const r=n();return{startScrollingFrom:e[t.size]*r.startFromPercentage,maxScrollValueAt:e[t.size]*r.maxScrollAtPercentage}}(t,o,i);return n[o.end]<n[o.start]?Wn({distanceToEdge:n[o.end],thresholds:l,dragStartTime:r,shouldUseTimeDampening:a,getAutoScrollerOptions:i}):-1*Wn({distanceToEdge:n[o.start],thresholds:l,dragStartTime:r,shouldUseTimeDampening:a,getAutoScrollerOptions:i})};const Gn=je((e=>0===e?0:e));var Vn=e=>{let{dragStartTime:t,container:n,subject:r,center:o,shouldUseTimeDampening:a,getAutoScrollerOptions:i}=e;const l={top:o.y-n.top,right:n.right-o.x,bottom:n.bottom-o.y,left:o.x-n.left},s=Hn({container:n,distanceToEdges:l,dragStartTime:t,axis:nt,shouldUseTimeDampening:a,getAutoScrollerOptions:i}),c=Hn({container:n,distanceToEdges:l,dragStartTime:t,axis:rt,shouldUseTimeDampening:a,getAutoScrollerOptions:i}),u=Gn({x:c,y:s});if(Ie(u,Pe))return null;const d=(e=>{let{container:t,subject:n,proposedScroll:r}=e;const o=n.height>t.height,a=n.width>t.width;return a||o?a&&o?null:{x:a?0:r.x,y:o?0:r.y}:r})({container:n,subject:r,proposedScroll:u});return d?Ie(d,Pe)?null:d:null};const qn=je((e=>0===e?0:e>0?1:-1)),Kn=(()=>{const e=(e,t)=>e<0?e:e>t?e-t:0;return t=>{let{current:n,max:r,change:o}=t;const a=De(n,o),i={x:e(a.x,r.x),y:e(a.y,r.y)};return Ie(i,Pe)?null:i}})(),Qn=e=>{let{max:t,current:n,change:r}=e;const o={x:Math.max(n.x,t.x),y:Math.max(n.y,t.y)},a=qn(r),i=Kn({max:o,current:n,change:a});return!i||0!==a.x&&0===i.x||0!==a.y&&0===i.y},Yn=(e,t)=>Qn({current:e.scroll.current,max:e.scroll.max,change:t}),Xn=(e,t)=>{const n=e.frame;return!!n&&Qn({current:n.scroll.current,max:n.scroll.max,change:t})};var Jn=e=>{let{state:t,dragStartTime:n,shouldUseTimeDampening:r,scrollWindow:o,scrollDroppable:a,getAutoScrollerOptions:i}=e;const l=t.current.page.borderBoxCenter,s=t.dimensions.draggables[t.critical.draggable.id].page.marginBox;if(t.isWindowScrollAllowed){const e=(e=>{let{viewport:t,subject:n,center:r,dragStartTime:o,shouldUseTimeDampening:a,getAutoScrollerOptions:i}=e;const l=Vn({dragStartTime:o,container:t.frame,subject:n,center:r,shouldUseTimeDampening:a,getAutoScrollerOptions:i});return l&&Yn(t,l)?l:null})({dragStartTime:n,viewport:t.viewport,subject:s,center:l,shouldUseTimeDampening:r,getAutoScrollerOptions:i});if(e)return void o(e)}const c=(e=>{let{center:t,destination:n,droppables:r}=e;if(n){const e=r[n];return e.frame?e:null}const o=((e,t)=>{const n=zn(t).find((t=>(t.frame||ve(!1),Rt(t.frame.pageMarginBox)(e))))||null;return n})(t,r);return o})({center:l,destination:Nt(t.impact),droppables:t.dimensions.droppables});if(!c)return;const u=(e=>{let{droppable:t,subject:n,center:r,dragStartTime:o,shouldUseTimeDampening:a,getAutoScrollerOptions:i}=e;const l=t.frame;if(!l)return null;const s=Vn({dragStartTime:o,container:l.pageMarginBox,subject:n,center:r,shouldUseTimeDampening:a,getAutoScrollerOptions:i});return s&&Xn(t,s)?s:null})({dragStartTime:n,droppable:c,subject:s,center:l,shouldUseTimeDampening:r,getAutoScrollerOptions:i});u&&a(c.descriptor.id,u)},Zn=e=>{let{move:t,scrollDroppable:n,scrollWindow:r}=e;return e=>{const o=e.scrollJumpRequest;if(!o)return;const a=Nt(e.impact);a||ve(!1);const i=((e,t)=>{if(!Xn(e,t))return t;const r=((e,t)=>{const n=e.frame;return n&&Xn(e,t)?Kn({current:n.scroll.current,max:n.scroll.max,change:t}):null})(e,t);if(!r)return n(e.descriptor.id,t),null;const o=Ne(t,r);return n(e.descriptor.id,o),Ne(t,o)})(e.dimensions.droppables[a],o);if(!i)return;const l=e.viewport,s=((e,t,n)=>{if(!e)return n;if(!Yn(t,n))return n;const o=((e,t)=>{if(!Yn(e,t))return null;const n=e.scroll.max,r=e.scroll.current;return Kn({current:r,max:n,change:t})})(t,n);if(!o)return r(n),null;const a=Ne(n,o);return r(a),Ne(n,a)})(e.isWindowScrollAllowed,l,i);s&&((e,n)=>{const r=De(e.current.client.selection,n);t({client:r})})(e,s)}},er=e=>{let{scrollDroppable:t,scrollWindow:n,move:r,getAutoScrollerOptions:o}=e;const a=(e=>{let{scrollWindow:t,scrollDroppable:n,getAutoScrollerOptions:r=(()=>Un)}=e;const o=fe(t),a=fe(n);let i=null;const l=e=>{i||ve(!1);const{shouldUseTimeDampening:t,dragStartTime:n}=i;Jn({state:e,scrollWindow:o,scrollDroppable:a,dragStartTime:n,shouldUseTimeDampening:t,getAutoScrollerOptions:r})};return{start:e=>{i&&ve(!1);const t=Date.now();let n=!1;const o=()=>{n=!0};Jn({state:e,dragStartTime:0,shouldUseTimeDampening:!1,scrollWindow:o,scrollDroppable:o,getAutoScrollerOptions:r}),i={dragStartTime:t,shouldUseTimeDampening:n},n&&l(e)},stop:()=>{i&&(o.cancel(),a.cancel(),i=null)},scroll:l}})({scrollWindow:n,scrollDroppable:t,getAutoScrollerOptions:o}),i=Zn({move:r,scrollWindow:n,scrollDroppable:t});return{scroll:e=>{o().disabled||"DRAGGING"!==e.phase||("FLUID"!==e.movementMode?e.scrollJumpRequest&&i(e):a.scroll(e))},start:a.start,stop:a.stop}};const tr="data-rfd",nr=(()=>{const e=`${tr}-drag-handle`;return{base:e,draggableId:`${e}-draggable-id`,contextId:`${e}-context-id`}})(),rr=(()=>{const e=`${tr}-draggable`;return{base:e,contextId:`${e}-context-id`,id:`${e}-id`}})(),or=(()=>{const e=`${tr}-droppable`;return{base:e,contextId:`${e}-context-id`,id:`${e}-id`}})(),ar={contextId:`${tr}-scroll-container-context-id`},ir=(e,t)=>e.map((e=>{const n=e.styles[t];return n?`${e.selector} { ${n} }`:""})).join(" ");var lr=e=>{const t=(e=>t=>`[${t}="${e}"]`)(e),n=(()=>{const e="\n cursor: -webkit-grab;\n cursor: grab;\n ";return{selector:t(nr.contextId),styles:{always:"\n -webkit-touch-callout: none;\n -webkit-tap-highlight-color: rgba(0,0,0,0);\n touch-action: manipulation;\n ",resting:e,dragging:"pointer-events: none;",dropAnimating:e}}})(),r=[(()=>{const e=`\n transition: ${mn.outOfTheWay};\n `;return{selector:t(rr.contextId),styles:{dragging:e,dropAnimating:e,userCancel:e}}})(),n,{selector:t(or.contextId),styles:{always:"overflow-anchor: none;"}},{selector:"body",styles:{dragging:"\n cursor: grabbing;\n cursor: -webkit-grabbing;\n user-select: none;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n overflow-anchor: none;\n "}}];return{always:ir(r,"always"),resting:ir(r,"resting"),dragging:ir(r,"dragging"),dropAnimating:ir(r,"dropAnimating"),userCancel:ir(r,"userCancel")}},sr="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?e.useLayoutEffect:e.useEffect;const cr=()=>{const e=document.querySelector("head");return e||ve(!1),e},ur=e=>{const t=document.createElement("style");return e&&t.setAttribute("nonce",e),t.type="text/css",t};function dr(e,t){return Array.from(e.querySelectorAll(t))}var fr=e=>e?.ownerDocument?.defaultView||window;function pr(e){return e instanceof fr(e).HTMLElement}function mr(){const e={draggables:{},droppables:{}},t=[];function n(e){t.length&&t.forEach((t=>t(e)))}function r(t){return e.draggables[t]||null}function o(t){return e.droppables[t]||null}return{draggable:{register:t=>{e.draggables[t.descriptor.id]=t,n({type:"ADDITION",value:t})},update:(t,n)=>{const r=e.draggables[n.descriptor.id];r&&r.uniqueId===t.uniqueId&&(delete e.draggables[n.descriptor.id],e.draggables[t.descriptor.id]=t)},unregister:t=>{const o=t.descriptor.id,a=r(o);a&&t.uniqueId===a.uniqueId&&(delete e.draggables[o],e.droppables[t.descriptor.droppableId]&&n({type:"REMOVAL",value:t}))},getById:function(e){const t=r(e);return t||ve(!1),t},findById:r,exists:e=>Boolean(r(e)),getAllByType:t=>Object.values(e.draggables).filter((e=>e.descriptor.type===t))},droppable:{register:t=>{e.droppables[t.descriptor.id]=t},unregister:t=>{const n=o(t.descriptor.id);n&&t.uniqueId===n.uniqueId&&delete e.droppables[t.descriptor.id]},getById:function(e){const t=o(e);return t||ve(!1),t},findById:o,exists:e=>Boolean(o(e)),getAllByType:t=>Object.values(e.droppables).filter((e=>e.descriptor.type===t))},subscribe:function(e){return t.push(e),function(){const n=t.indexOf(e);-1!==n&&t.splice(n,1)}},clean:function(){e.draggables={},e.droppables={},t.length=0}}}var gr=e.createContext(null),hr=()=>{const e=document.body;return e||ve(!1),e},br={position:"absolute",width:"1px",height:"1px",margin:"-1px",border:"0",padding:"0",overflow:"hidden",clip:"rect(0 0 0 0)","clip-path":"inset(100%)"};const yr=e=>`rfd-announcement-${e}`,vr={separator:"::"};var wr=function(t,n){void 0===n&&(n=vr);const r=e.useId();return X((()=>`${t}${n.separator}${r}`),[n.separator,t,r])},Er=e.createContext(null);function xr(t){const n=(0,e.useRef)(t);return(0,e.useEffect)((()=>{n.current=t})),n}function Sr(e){return"IDLE"!==e.phase&&"DROP_ANIMATING"!==e.phase&&e.isDragging}const kr={13:!0,9:!0};var Or=e=>{kr[e.keyCode]&&e.preventDefault()},Cr=(()=>{const e="visibilitychange";return"undefined"==typeof document?e:[e,`ms${e}`,`webkit${e}`,`moz${e}`,`o${e}`].find((e=>`on${e}`in document))||e})();const Pr={type:"IDLE"};function Dr(){}const Nr={34:!0,33:!0,36:!0,35:!0};const Ir={type:"IDLE"},_r=["input","button","textarea","select","option","optgroup","video","audio"];function Rr(e,t){if(null==t)return!1;if(_r.includes(t.tagName.toLowerCase()))return!0;const n=t.getAttribute("contenteditable");return"true"===n||""===n||t!==e&&Rr(e,t.parentElement)}function Tr(e,t){const n=t.target;return!!pr(n)&&Rr(e,n)}var Ar=e=>Z(e.getBoundingClientRect()).center;const jr=(()=>{const e="matches";return"undefined"==typeof document?e:[e,"msMatchesSelector","webkitMatchesSelector"].find((e=>e in Element.prototype))||e})();function Lr(e,t){return null==e?null:e[jr](t)?e:Lr(e.parentElement,t)}function Mr(e,t){return e.closest?e.closest(t):Lr(e,t)}function Br(e){e.preventDefault()}function Fr(e){let{expected:t,phase:n,isLockActive:r,shouldWarn:o}=e;return!!r()&&t===n}function zr(e){let{lockAPI:t,store:n,registry:r,draggableId:o}=e;if(t.isClaimed())return!1;const a=r.draggable.findById(o);return!!a&&!!a.options.isEnabled&&!!Bn(n.getState(),o)}const Ur=[function(t){const n=(0,e.useRef)(Pr),r=(0,e.useRef)(me),o=X((()=>({eventName:"mousedown",fn:function(e){if(e.defaultPrevented)return;if(0!==e.button)return;if(e.ctrlKey||e.metaKey||e.shiftKey||e.altKey)return;const n=t.findClosestDraggableId(e);if(!n)return;const o=t.tryGetLock(n,l,{sourceEvent:e});if(!o)return;e.preventDefault();const a={x:e.clientX,y:e.clientY};r.current(),u(o,a)}})),[t]),a=X((()=>({eventName:"webkitmouseforcewillbegin",fn:e=>{if(e.defaultPrevented)return;const n=t.findClosestDraggableId(e);if(!n)return;const r=t.findOptionsForDraggable(n);r&&(r.shouldRespectForcePress||t.canGetLock(n)&&e.preventDefault())}})),[t]),i=J((function(){r.current=ge(window,[a,o],{passive:!1,capture:!0})}),[a,o]),l=J((()=>{"IDLE"!==n.current.type&&(n.current=Pr,r.current(),i())}),[i]),s=J((()=>{const e=n.current;l(),"DRAGGING"===e.type&&e.actions.cancel({shouldBlockNextClick:!0}),"PENDING"===e.type&&e.actions.abort()}),[l]),c=J((function(){const e=function(e){let{cancel:t,completed:n,getPhase:r,setPhase:o}=e;return[{eventName:"mousemove",fn:e=>{const{button:t,clientX:n,clientY:a}=e;if(0!==t)return;const i={x:n,y:a},l=r();if("DRAGGING"===l.type)return e.preventDefault(),void l.actions.move(i);if("PENDING"!==l.type&&ve(!1),s=l.point,c=i,!(Math.abs(c.x-s.x)>=5||Math.abs(c.y-s.y)>=5))return;var s,c;e.preventDefault();const u=l.actions.fluidLift(i);o({type:"DRAGGING",actions:u})}},{eventName:"mouseup",fn:e=>{const o=r();"DRAGGING"===o.type?(e.preventDefault(),o.actions.drop({shouldBlockNextClick:!0}),n()):t()}},{eventName:"mousedown",fn:e=>{"DRAGGING"===r().type&&e.preventDefault(),t()}},{eventName:"keydown",fn:e=>{if("PENDING"!==r().type)return 27===e.keyCode?(e.preventDefault(),void t()):void Or(e);t()}},{eventName:"resize",fn:t},{eventName:"scroll",options:{passive:!0,capture:!1},fn:()=>{"PENDING"===r().type&&t()}},{eventName:"webkitmouseforcedown",fn:e=>{const n=r();"IDLE"===n.type&&ve(!1),n.actions.shouldRespectForcePress()?t():e.preventDefault()}},{eventName:Cr,fn:t}]}({cancel:s,completed:l,getPhase:()=>n.current,setPhase:e=>{n.current=e}});r.current=ge(window,e,{capture:!0,passive:!1})}),[s,l]),u=J((function(e,t){"IDLE"!==n.current.type&&ve(!1),n.current={type:"PENDING",point:t,actions:e},c()}),[c]);sr((function(){return i(),function(){r.current()}}),[i])},function(t){const n=(0,e.useRef)(Dr),r=X((()=>({eventName:"keydown",fn:function(e){if(e.defaultPrevented)return;if(32!==e.keyCode)return;const r=t.findClosestDraggableId(e);if(!r)return;const a=t.tryGetLock(r,s,{sourceEvent:e});if(!a)return;e.preventDefault();let i=!0;const l=a.snapLift();function s(){i||ve(!1),i=!1,n.current(),o()}n.current(),n.current=ge(window,function(e,t){function n(){t(),e.cancel()}return[{eventName:"keydown",fn:r=>27===r.keyCode?(r.preventDefault(),void n()):32===r.keyCode?(r.preventDefault(),t(),void e.drop()):40===r.keyCode?(r.preventDefault(),void e.moveDown()):38===r.keyCode?(r.preventDefault(),void e.moveUp()):39===r.keyCode?(r.preventDefault(),void e.moveRight()):37===r.keyCode?(r.preventDefault(),void e.moveLeft()):void(Nr[r.keyCode]?r.preventDefault():Or(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:Cr,fn:n}]}(l,s),{capture:!0,passive:!1})}})),[t]),o=J((function(){n.current=ge(window,[r],{passive:!1,capture:!0})}),[r]);sr((function(){return o(),function(){n.current()}}),[o])},function(t){const n=(0,e.useRef)(Ir),r=(0,e.useRef)(me),o=J((function(){return n.current}),[]),a=J((function(e){n.current=e}),[]),i=X((()=>({eventName:"touchstart",fn:function(e){if(e.defaultPrevented)return;const n=t.findClosestDraggableId(e);if(!n)return;const o=t.tryGetLock(n,s,{sourceEvent:e});if(!o)return;const a=e.touches[0],{clientX:i,clientY:l}=a,c={x:i,y:l};r.current(),f(o,c)}})),[t]),l=J((function(){r.current=ge(window,[i],{capture:!0,passive:!1})}),[i]),s=J((()=>{const e=n.current;"IDLE"!==e.type&&("PENDING"===e.type&&clearTimeout(e.longPressTimerId),a(Ir),r.current(),l())}),[l,a]),c=J((()=>{const e=n.current;s(),"DRAGGING"===e.type&&e.actions.cancel({shouldBlockNextClick:!0}),"PENDING"===e.type&&e.actions.abort()}),[s]),u=J((function(){const e={capture:!0,passive:!1},t={cancel:c,completed:s,getPhase:o},n=ge(window,function(e){let{cancel:t,completed:n,getPhase:r}=e;return[{eventName:"touchmove",options:{capture:!1},fn:e=>{const n=r();if("DRAGGING"!==n.type)return void t();n.hasMoved=!0;const{clientX:o,clientY:a}=e.touches[0],i={x:o,y:a};e.preventDefault(),n.actions.move(i)}},{eventName:"touchend",fn:e=>{const o=r();"DRAGGING"===o.type?(e.preventDefault(),o.actions.drop({shouldBlockNextClick:!0}),n()):t()}},{eventName:"touchcancel",fn:e=>{"DRAGGING"===r().type?(e.preventDefault(),t()):t()}},{eventName:"touchforcechange",fn:e=>{const n=r();"IDLE"===n.type&&ve(!1);const o=e.touches[0];if(!o)return;if(!(o.force>=.15))return;const a=n.actions.shouldRespectForcePress();if("PENDING"!==n.type)return a?n.hasMoved?void e.preventDefault():void t():void e.preventDefault();a&&t()}},{eventName:Cr,fn:t}]}(t),e),a=ge(window,function(e){let{cancel:t,getPhase:n}=e;return[{eventName:"orientationchange",fn:t},{eventName:"resize",fn:t},{eventName:"contextmenu",fn:e=>{e.preventDefault()}},{eventName:"keydown",fn:e=>{"DRAGGING"===n().type?(27===e.keyCode&&e.preventDefault(),t()):t()}},{eventName:Cr,fn:t}]}(t),e);r.current=function(){n(),a()}}),[c,o,s]),d=J((function(){const e=o();"PENDING"!==e.type&&ve(!1);const t=e.actions.fluidLift(e.point);a({type:"DRAGGING",actions:t,hasMoved:!1})}),[o,a]),f=J((function(e,t){"IDLE"!==o().type&&ve(!1);const n=setTimeout(d,120);a({type:"PENDING",point:t,actions:e,longPressTimerId:n}),u()}),[u,o,a,d]);sr((function(){return l(),function(){r.current();const e=o();"PENDING"===e.type&&(clearTimeout(e.longPressTimerId),a(Ir))}}),[o,l,a]),sr((function(){return ge(window,[{eventName:"touchmove",fn:()=>{},options:{capture:!1,passive:!1}}])}),[])}];function $r(t){let{contextId:n,store:r,registry:o,customSensors:a,enableDefaultSensors:i}=t;const l=[...i?Ur:[],...a||[]],s=(0,e.useState)((()=>function(){let e=null;function t(){e||ve(!1),e=null}return{isClaimed:function(){return Boolean(e)},isActive:function(t){return t===e},claim:function(t){e&&ve(!1);const n={abandon:t};return e=n,n},release:t,tryAbandon:function(){e&&(e.abandon(),t())}}}()))[0],c=J((function(e,t){Sr(e)&&!Sr(t)&&s.tryAbandon()}),[s]);sr((function(){let e=r.getState();return r.subscribe((()=>{const t=r.getState();c(e,t),e=t}))}),[s,r,c]),sr((()=>s.tryAbandon),[s.tryAbandon]);const u=J((e=>zr({lockAPI:s,registry:o,store:r,draggableId:e})),[s,o,r]),d=J(((e,t,a)=>function(e){let{lockAPI:t,contextId:n,store:r,registry:o,draggableId:a,forceSensorStop:i,sourceEvent:l}=e;if(!zr({lockAPI:t,store:r,registry:o,draggableId:a}))return null;const s=o.draggable.getById(a),c=function(e,t){const n=`[${rr.contextId}="${e}"]`,r=dr(document,n).find((e=>e.getAttribute(rr.id)===t));return r&&pr(r)?r:null}(n,s.descriptor.id);if(!c)return null;if(l&&!s.options.canDragInteractiveElements&&Tr(c,l))return null;const u=t.claim(i||me);let d="PRE_DRAG";function f(){return s.options.shouldRespectForcePress}function p(){return t.isActive(u)}const m=function(e,t){Fr({expected:e,phase:d,isLockActive:p,shouldWarn:!0})&&r.dispatch(t())}.bind(null,"DRAGGING");function g(e){function n(){t.release(),d="COMPLETED"}function o(t,o){if(void 0===o&&(o={shouldBlockNextClick:!1}),e.cleanup(),o.shouldBlockNextClick){const e=ge(window,[{eventName:"click",fn:Br,options:{once:!0,passive:!1,capture:!0}}]);setTimeout(e)}n(),r.dispatch(ln({reason:t}))}return"PRE_DRAG"!==d&&(n(),ve(!1)),r.dispatch(qt(e.liftActionArgs)),d="DRAGGING",{isActive:()=>Fr({expected:"DRAGGING",phase:d,isLockActive:p,shouldWarn:!1}),shouldRespectForcePress:f,drop:e=>o("DROP",e),cancel:e=>o("CANCEL",e),...e.actions}}const h={isActive:()=>Fr({expected:"PRE_DRAG",phase:d,isLockActive:p,shouldWarn:!1}),shouldRespectForcePress:f,fluidLift:function(e){const t=fe((e=>{m((()=>Zt({client:e})))}));return{...g({liftActionArgs:{id:a,clientSelection:e,movementMode:"FLUID"},cleanup:()=>t.cancel(),actions:{move:t}}),move:t}},snapLift:function(){const e={moveUp:()=>m(en),moveRight:()=>m(nn),moveDown:()=>m(tn),moveLeft:()=>m(rn)};return g({liftActionArgs:{id:a,clientSelection:Ar(c),movementMode:"SNAP"},cleanup:me,actions:e})},abort:function(){Fr({expected:"PRE_DRAG",phase:d,isLockActive:p,shouldWarn:!0})&&t.release()}};return h}({lockAPI:s,registry:o,contextId:n,store:r,draggableId:e,forceSensorStop:t||null,sourceEvent:a&&a.sourceEvent?a.sourceEvent:null})),[n,s,o,r]),f=J((e=>function(e,t){const n=function(e,t){const n=t.target;if(!((r=n)instanceof fr(r).Element))return null;var r;const o=function(e){return`[${nr.contextId}="${e}"]`}(e),a=Mr(n,o);return a&&pr(a)?a:null}(e,t);return n?n.getAttribute(nr.draggableId):null}(n,e)),[n]),p=J((e=>{const t=o.draggable.findById(e);return t?t.options:null}),[o.draggable]),m=J((function(){s.isClaimed()&&(s.tryAbandon(),"IDLE"!==r.getState().phase&&r.dispatch(on()))}),[s,r]),g=J((()=>s.isClaimed()),[s]),h=X((()=>({canGetLock:u,tryGetLock:d,findClosestDraggableId:f,findOptionsForDraggable:p,tryReleaseLock:m,isLockClaimed:g})),[u,d,f,p,m,g]);for(let e=0;e<l.length;e++)l[e](h)}const Wr=t=>({onBeforeCapture:n=>{const o=()=>{t.onBeforeCapture&&t.onBeforeCapture(n)};e.version.startsWith("16")||e.version.startsWith("17")?o():(0,r.flushSync)(o)},onBeforeDragStart:t.onBeforeDragStart,onDragStart:t.onDragStart,onDragEnd:t.onDragEnd,onDragUpdate:t.onDragUpdate}),Hr=e=>({...Un,...e.autoScrollerOptions,durationDampening:{...Un.durationDampening,...e.autoScrollerOptions}});function Gr(e){return e.current||ve(!1),e.current}function Vr(t){const{contextId:n,setCallbacks:r,sensors:o,nonce:a,dragHandleUsageInstructions:i}=t,l=(0,e.useRef)(null),s=xr(t),c=J((()=>Wr(s.current)),[s]),u=J((()=>Hr(s.current)),[s]),d=function(t){const n=X((()=>yr(t)),[t]),r=(0,e.useRef)(null);return(0,e.useEffect)((function(){const e=document.createElement("div");return r.current=e,e.id=n,e.setAttribute("aria-live","assertive"),e.setAttribute("aria-atomic","true"),O(e.style,br),hr().appendChild(e),function(){setTimeout((function(){const t=hr();t.contains(e)&&t.removeChild(e),e===r.current&&(r.current=null)}))}}),[n]),J((e=>{const t=r.current;t&&(t.textContent=e)}),[])}(n),f=function(t){let{contextId:n,text:r}=t;const o=wr("hidden-text",{separator:"-"}),a=X((()=>function(e){let{contextId:t,uniqueId:n}=e;return`rfd-hidden-text-${t}-${n}`}({contextId:n,uniqueId:o})),[o,n]);return(0,e.useEffect)((function(){const e=document.createElement("div");return e.id=a,e.textContent=r,e.style.display="none",hr().appendChild(e),function(){const t=hr();t.contains(e)&&t.removeChild(e)}}),[a,r]),a}({contextId:n,text:i}),p=function(t,n){const r=X((()=>lr(t)),[t]),o=(0,e.useRef)(null),a=(0,e.useRef)(null),i=J(de((e=>{const t=a.current;t||ve(!1),t.textContent=e})),[]),l=J((e=>{const t=o.current;t||ve(!1),t.textContent=e}),[]);sr((()=>{(o.current||a.current)&&ve(!1);const e=ur(n),s=ur(n);return o.current=e,a.current=s,e.setAttribute(`${tr}-always`,t),s.setAttribute(`${tr}-dynamic`,t),cr().appendChild(e),cr().appendChild(s),l(r.always),i(r.resting),()=>{const e=e=>{const t=e.current;t||ve(!1),cr().removeChild(t),e.current=null};e(o),e(a)}}),[n,l,i,r.always,r.resting,t]);const s=J((()=>i(r.dragging)),[i,r.dragging]),c=J((e=>{i("DROP"!==e?r.userCancel:r.dropAnimating)}),[i,r.dropAnimating,r.userCancel]),u=J((()=>{a.current&&i(r.resting)}),[i,r.resting]);return X((()=>({dragging:s,dropping:c,resting:u})),[s,c,u])}(n,a),g=J((e=>{Gr(l).dispatch(e)}),[]),h=X((()=>m({publishWhileDragging:Kt,updateDroppableScroll:Yt,updateDroppableIsEnabled:Xt,updateDroppableIsCombineEnabled:Jt,collectionStarting:Qt},g)),[g]),b=function(){const t=X(mr,[]);return(0,e.useEffect)((()=>function(){e.version.startsWith("16")||e.version.startsWith("17")?requestAnimationFrame(t.clean):t.clean()}),[t]),t}(),y=X((()=>Mn(b,h)),[b,h]),v=X((()=>er({scrollWindow:Fn,scrollDroppable:y.scrollDroppable,getAutoScrollerOptions:u,...m({move:Zt},g)})),[y.scrollDroppable,g,u]),w=function(t){const n=(0,e.useRef)({}),r=(0,e.useRef)(null),o=(0,e.useRef)(null),a=(0,e.useRef)(!1),i=J((function(e,t){const r={id:e,focus:t};return n.current[e]=r,function(){const t=n.current;t[e]!==r&&delete t[e]}}),[]),l=J((function(e){const n=function(e,t){const n=`[${nr.contextId}="${e}"]`,r=dr(document,n);if(!r.length)return null;const o=r.find((e=>e.getAttribute(nr.draggableId)===t));return o&&pr(o)?o:null}(t,e);n&&n!==document.activeElement&&n.focus()}),[t]),s=J((function(e,t){r.current===e&&(r.current=t)}),[]),c=J((function(){o.current||a.current&&(o.current=requestAnimationFrame((()=>{o.current=null;const e=r.current;e&&l(e)})))}),[l]),u=J((function(e){r.current=null;const t=document.activeElement;t&&t.getAttribute(nr.draggableId)===e&&(r.current=e)}),[]);return sr((()=>(a.current=!0,function(){a.current=!1;const e=o.current;e&&cancelAnimationFrame(e)})),[]),X((()=>({register:i,tryRecordFocus:u,tryRestoreFocusRecorded:c,tryShiftRecord:s})),[i,u,c,s])}(n),E=X((()=>Rn({announce:d,autoScroller:v,dimensionMarshal:y,focusMarshal:w,getResponders:c,styleMarshal:p})),[d,v,y,w,c,p]);l.current=E;const x=J((()=>{const e=Gr(l);"IDLE"!==e.getState().phase&&e.dispatch(on())}),[]),S=J((()=>{const e=Gr(l).getState();return"DROP_ANIMATING"===e.phase||"IDLE"!==e.phase&&e.isDragging}),[]);r(X((()=>({isDragging:S,tryAbort:x})),[S,x]));const k=J((e=>Bn(Gr(l).getState(),e)),[]),C=J((()=>_t(Gr(l).getState())),[]),P=X((()=>({marshal:y,focus:w,contextId:n,canLift:k,isMovementAllowed:C,dragHandleUsageInstructionsId:f,registry:b})),[n,y,f,w,k,C,b]);return $r({contextId:n,store:E,registry:b,customSensors:o||null,enableDefaultSensors:!1!==t.enableDefaultSensors}),(0,e.useEffect)((()=>x),[x]),e.createElement(Er.Provider,{value:P},e.createElement(K,{context:gr,store:E},t.children))}var qr=function(){return e.useId()};function Kr(t){const n=qr(),r=t.dragHandleUsageInstructions||Ce.dragHandleUsageInstructions;return e.createElement(we,null,(o=>e.createElement(Vr,{nonce:t.nonce,contextId:n,setCallbacks:o,dragHandleUsageInstructions:r,enableDefaultSensors:t.enableDefaultSensors,sensors:t.sensors,onBeforeCapture:t.onBeforeCapture,onBeforeDragStart:t.onBeforeDragStart,onDragStart:t.onDragStart,onDragUpdate:t.onDragUpdate,onDragEnd:t.onDragEnd,autoScrollerOptions:t.autoScrollerOptions},t.children)))}const Qr=5e3,Yr=4500,Xr=(e,t)=>t?mn.drop(t.duration):e?mn.snap:mn.fluid,Jr=(e,t)=>{if(e)return t?cn:un};var Zr=e.createContext(null);function eo(t){const n=(0,e.useContext)(t);return n||ve(!1),n}function to(e){e.preventDefault()}var no=(e,t)=>e===t,ro=e=>{const{combine:t,destination:n}=e;return n?n.droppableId:t?t.droppableId:null};function oo(e){return void 0===e&&(e=null),{isDragging:!1,isDropAnimating:!1,isClone:!1,dropAnimation:null,mode:null,draggingOver:null,combineTargetFor:e,combineWith:null}}const ao={mapped:{type:"SECONDARY",offset:Pe,combineTargetFor:null,shouldAnimateDisplacement:!0,snapshot:oo(null)}},io=q((()=>{const e=function(){const e=de(((e,t)=>({x:e,y:t}))),t=de((function(e,t,n,r,o){return void 0===n&&(n=null),void 0===r&&(r=null),void 0===o&&(o=null),{isDragging:!0,isClone:t,isDropAnimating:Boolean(o),dropAnimation:o,mode:e,draggingOver:n,combineWith:r,combineTargetFor:null}})),n=de((function(e,n,r,o,a,i,l){return void 0===a&&(a=null),void 0===i&&(i=null),void 0===l&&(l=null),{mapped:{type:"DRAGGING",dropping:null,draggingOver:a,combineWith:i,mode:n,offset:e,dimension:r,forceShouldAnimate:l,snapshot:t(n,o,a,i,null)}}}));return(r,o)=>{if(Sr(r)){if(r.critical.draggable.id!==o.draggableId)return null;const t=r.current.client.offset,i=r.dimensions.draggables[o.draggableId],l=Nt(r.impact),s=(a=r.impact).at&&"COMBINE"===a.at.type?a.at.combine.draggableId:null,c=r.forceShouldAnimate;return n(e(t.x,t.y),r.movementMode,i,o.isClone,l,s,c)}var a;if("DROP_ANIMATING"===r.phase){const e=r.completed;if(e.result.draggableId!==o.draggableId)return null;const n=o.isClone,a=r.dimensions.draggables[o.draggableId],i=e.result,l=i.mode,s=ro(i),c=(e=>e.combine?e.combine.draggableId:null)(i),u={duration:r.dropDuration,curve:sn,moveTo:r.newHomeClientOffset,opacity:c?cn:null,scale:c?dn:null};return{mapped:{type:"DRAGGING",offset:r.newHomeClientOffset,dimension:a,dropping:u,draggingOver:s,combineWith:c,mode:l,forceShouldAnimate:null,snapshot:t(l,n,s,c,u)}}}return null}}(),t=function(){const e=de(((e,t)=>({x:e,y:t}))),t=de(oo),n=de((function(e,n,r){return void 0===n&&(n=null),{mapped:{type:"SECONDARY",offset:e,combineTargetFor:n,shouldAnimateDisplacement:r,snapshot:t(n)}}})),r=e=>e?n(Pe,e,!0):null,o=(t,o,a,i)=>{const l=a.displaced.visible[t],s=Boolean(i.inVirtualList&&i.effected[t]),c=qe(a),u=c&&c.draggableId===t?o:null;if(!l){if(!s)return r(u);if(a.displaced.invisible[t])return null;const o=_e(i.displacedBy.point),l=e(o.x,o.y);return n(l,u,!0)}if(s)return r(u);const d=a.displacedBy.point,f=e(d.x,d.y);return n(f,u,l.shouldAnimate)};return(e,t)=>{if(Sr(e))return e.critical.draggable.id===t.draggableId?null:o(t.draggableId,e.critical.draggable.id,e.impact,e.afterCritical);if("DROP_ANIMATING"===e.phase){const n=e.completed;return n.result.draggableId===t.draggableId?null:o(t.draggableId,n.result.draggableId,n.impact,n.afterCritical)}return null}}();return(n,r)=>e(n,r)||t(n,r)||ao}),{dropAnimationFinished:()=>({type:"DROP_ANIMATION_FINISHED",payload:null})},null,{context:gr,areStatePropsEqual:no})((t=>{const n=(0,e.useRef)(null),o=J((function(e){void 0===e&&(e=null),n.current=e}),[]),a=J((()=>n.current),[]),{contextId:i,dragHandleUsageInstructionsId:l,registry:s}=eo(Er),{type:c,droppableId:u}=eo(Zr),d=X((()=>({id:t.draggableId,index:t.index,type:c,droppableId:u})),[t.draggableId,t.index,c,u]),{children:f,draggableId:p,isEnabled:m,shouldRespectForcePress:g,canDragInteractiveElements:h,isClone:b,mapped:y,dropAnimationFinished:v}=t;b||function(t){const n=wr("draggable"),{descriptor:r,registry:o,getDraggableRef:a,canDragInteractiveElements:i,shouldRespectForcePress:l,isEnabled:s}=t,c=X((()=>({canDragInteractiveElements:i,shouldRespectForcePress:l,isEnabled:s})),[i,s,l]),u=J((e=>{const t=a();return t||ve(!1),function(e,t,n){void 0===n&&(n=Pe);const r=window.getComputedStyle(t),o=t.getBoundingClientRect(),a=le(o,r),i=ie(a,n);return{descriptor:e,placeholder:{client:a,tagName:t.tagName.toLowerCase(),display:r.display},displaceBy:{x:a.marginBox.width,y:a.marginBox.height},client:a,page:i}}(r,t,e)}),[r,a]),d=X((()=>({uniqueId:n,descriptor:r,options:c,getDimension:u})),[r,u,c,n]),f=(0,e.useRef)(d),p=(0,e.useRef)(!0);sr((()=>(o.draggable.register(f.current),()=>o.draggable.unregister(f.current))),[o.draggable]),sr((()=>{if(p.current)return void(p.current=!1);const e=f.current;f.current=d,o.draggable.update(d,e)}),[d,o.draggable])}(X((()=>({descriptor:d,registry:s,getDraggableRef:a,canDragInteractiveElements:h,shouldRespectForcePress:g,isEnabled:m})),[d,s,a,h,g,m]));const w=X((()=>m?{tabIndex:0,role:"button","aria-describedby":l,"data-rfd-drag-handle-draggable-id":p,"data-rfd-drag-handle-context-id":i,draggable:!1,onDragStart:to}:null),[i,l,p,m]),E=J((t=>{"DRAGGING"===y.type&&y.dropping&&"transform"===t.propertyName&&(e.version.startsWith("16")||e.version.startsWith("17")?v():(0,r.flushSync)(v))}),[v,y]),x=X((()=>{const e=function(e){return"DRAGGING"===e.type?function(e){const t=e.dimension.client,{offset:n,combineWith:r,dropping:o}=e,a=Boolean(r),i=(e=>null!=e.forceShouldAnimate?e.forceShouldAnimate:"SNAP"===e.mode)(e),l=Boolean(o),s=l?bn(n,a):hn(n);return{position:"fixed",top:t.marginBox.top,left:t.marginBox.left,boxSizing:"border-box",width:t.borderBox.width,height:t.borderBox.height,transition:Xr(i,o),transform:s,opacity:Jr(a,l),zIndex:l?Yr:Qr,pointerEvents:"none"}}(e):{transform:hn((t=e).offset),transition:t.shouldAnimateDisplacement?void 0:"none"};var t}(y),t="DRAGGING"===y.type&&y.dropping?E:void 0;return{innerRef:o,draggableProps:{"data-rfd-draggable-context-id":i,"data-rfd-draggable-id":p,style:e,onTransitionEnd:t},dragHandleProps:w}}),[i,w,p,y,E,o]),S=X((()=>({draggableId:d.id,type:d.type,source:{index:d.index,droppableId:d.droppableId}})),[d.droppableId,d.id,d.index,d.type]);return e.createElement(e.Fragment,null,f(x,y.snapshot,S))}));var lo=io;function so(t){return eo(Zr).isUsingCloneFor!==t.draggableId||t.isClone?e.createElement(lo,t):null}function co(t){const n="boolean"!=typeof t.isDragDisabled||!t.isDragDisabled,r=Boolean(t.disableInteractiveElementBlocking),o=Boolean(t.shouldRespectForcePress);return e.createElement(so,O({},t,{isClone:!1,isEnabled:n,canDragInteractiveElements:r,shouldRespectForcePress:o}))}const uo=e=>t=>e===t,fo=uo("scroll"),po=uo("auto"),mo=(uo("visible"),(e,t)=>t(e.overflowX)||t(e.overflowY)),go=e=>null==e||e===document.body||e===document.documentElement?null:(e=>{const t=window.getComputedStyle(e),n={overflowX:t.overflowX,overflowY:t.overflowY};return mo(n,fo)||mo(n,po)})(e)?e:go(e.parentElement);var ho=go,bo=e=>({x:e.scrollLeft,y:e.scrollTop});const yo=e=>!!e&&("fixed"===window.getComputedStyle(e).position||yo(e.parentElement));const vo={passive:!1},wo={passive:!0};var Eo=e=>e.shouldPublishImmediately?vo:wo;const xo=e=>e&&e.env.closestScrollable||null;function So(t){const n=(0,e.useRef)(null),r=eo(Er),o=wr("droppable"),{registry:a,marshal:i}=r,l=xr(t),s=X((()=>({id:t.droppableId,type:t.type,mode:t.mode})),[t.droppableId,t.mode,t.type]),c=(0,e.useRef)(s),u=X((()=>de(((e,t)=>{n.current||ve(!1);const r={x:e,y:t};i.updateDroppableScroll(s.id,r)}))),[s.id,i]),d=J((()=>{const e=n.current;return e&&e.env.closestScrollable?bo(e.env.closestScrollable):Pe}),[]),f=J((()=>{const e=d();u(e.x,e.y)}),[d,u]),p=X((()=>fe(f)),[f]),m=J((()=>{const e=n.current,t=xo(e);e&&t||ve(!1),e.scrollOptions.shouldPublishImmediately?f():p()}),[p,f]),g=J(((e,t)=>{n.current&&ve(!1);const o=l.current,a=o.getDroppableRef();a||ve(!1);const i=(e=>({closestScrollable:ho(e),isFixedOnPage:yo(e)}))(a),c={ref:a,descriptor:s,env:i,scrollOptions:t};n.current=c;const u=(e=>{let{ref:t,descriptor:n,env:r,windowScroll:o,direction:a,isDropDisabled:i,isCombineEnabled:l,shouldClipSubject:s}=e;const c=r.closestScrollable,u=((e,t)=>{const n=se(e);if(!t)return n;if(e!==t)return n;const r=n.paddingBox.top-t.scrollTop,o=n.paddingBox.left-t.scrollLeft,a=r+t.scrollHeight,i=o+t.scrollWidth,l=ee({top:r,right:i,bottom:a,left:o},n.border);return re({borderBox:l,margin:n.margin,border:n.border,padding:n.padding})})(t,c),d=ie(u,o),f=(()=>{if(!c)return null;const e=se(c),t={scrollHeight:c.scrollHeight,scrollWidth:c.scrollWidth};return{client:e,page:ie(e,o),scroll:bo(c),scrollSize:t,shouldClipSubject:s}})(),p=(e=>{let{descriptor:t,isEnabled:n,isCombineEnabled:r,isFixedOnPage:o,direction:a,client:i,page:l,closest:s}=e;const c=(()=>{if(!s)return null;const{scrollSize:e,client:t}=s,n=Tn({scrollHeight:e.scrollHeight,scrollWidth:e.scrollWidth,height:t.paddingBox.height,width:t.paddingBox.width});return{pageMarginBox:s.page.marginBox,frameClient:t,scrollSize:e,shouldClipSubject:s.shouldClipSubject,scroll:{initial:s.scroll,current:s.scroll,max:n,diff:{value:Pe,displacement:Pe}}}})(),u="vertical"===a?nt:rt;return{descriptor:t,isCombineEnabled:r,isFixedOnPage:o,axis:u,isEnabled:n,client:i,page:l,frame:c,subject:Fe({page:l,withPlaceholder:null,axis:u,frame:c})}})({descriptor:n,isEnabled:!i,isCombineEnabled:l,isFixedOnPage:r.isFixedOnPage,direction:a,client:u,page:d,closest:f});return p})({ref:a,descriptor:s,env:i,windowScroll:e,direction:o.direction,isDropDisabled:o.isDropDisabled,isCombineEnabled:o.isCombineEnabled,shouldClipSubject:!o.ignoreContainerClipping}),d=i.closestScrollable;return d&&(d.setAttribute(ar.contextId,r.contextId),d.addEventListener("scroll",m,Eo(c.scrollOptions))),u}),[r.contextId,s,m,l]),h=J((()=>{const e=n.current,t=xo(e);return e&&t||ve(!1),bo(t)}),[]),b=J((()=>{const e=n.current;e||ve(!1);const t=xo(e);n.current=null,t&&(p.cancel(),t.removeAttribute(ar.contextId),t.removeEventListener("scroll",m,Eo(e.scrollOptions)))}),[m,p]),y=J((e=>{const t=n.current;t||ve(!1);const r=xo(t);r||ve(!1),r.scrollTop+=e.y,r.scrollLeft+=e.x}),[]),v=X((()=>({getDimensionAndWatchScroll:g,getScrollWhileDragging:h,dragStopped:b,scroll:y})),[b,g,h,y]),w=X((()=>({uniqueId:o,descriptor:s,callbacks:v})),[v,s,o]);sr((()=>(c.current=w.descriptor,a.droppable.register(w),()=>{n.current&&b(),a.droppable.unregister(w)})),[v,s,b,w,i,a.droppable]),sr((()=>{n.current&&i.updateDroppableIsEnabled(c.current.id,!t.isDropDisabled)}),[t.isDropDisabled,i]),sr((()=>{n.current&&i.updateDroppableIsCombineEnabled(c.current.id,t.isCombineEnabled)}),[t.isCombineEnabled,i])}function ko(){}const Oo={width:0,height:0,margin:{top:0,right:0,bottom:0,left:0}};var Co=e.memo((t=>{const n=(0,e.useRef)(null),r=J((()=>{n.current&&(clearTimeout(n.current),n.current=null)}),[]),{animate:o,onTransitionEnd:a,onClose:i,contextId:l}=t,[s,c]=(0,e.useState)("open"===t.animate);(0,e.useEffect)((()=>s?"open"!==o?(r(),c(!1),ko):n.current?ko:(n.current=setTimeout((()=>{n.current=null,c(!1)})),r):ko),[o,s,r]);const u=J((e=>{"height"===e.propertyName&&(a(),"close"===o&&i())}),[o,i,a]),d=(e=>{let{isAnimatingOpenOnMount:t,placeholder:n,animate:r}=e;const o=(e=>{let{isAnimatingOpenOnMount:t,placeholder:n,animate:r}=e;return t||"close"===r?Oo:{height:n.client.borderBox.height,width:n.client.borderBox.width,margin:n.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?mn.placeholder:null}})({isAnimatingOpenOnMount:s,animate:t.animate,placeholder:t.placeholder});return e.createElement(t.placeholder.tagName,{style:d,"data-rfd-placeholder-context-id":l,onTransitionEnd:u,ref:t.innerRef})}));class Po extends e.PureComponent{constructor(){super(...arguments),this.state={isVisible:Boolean(this.props.on),data:this.props.on,animate:this.props.shouldAnimate&&this.props.on?"open":"none"},this.onClose=()=>{"close"===this.state.animate&&this.setState({isVisible:!1})}}static getDerivedStateFromProps(e,t){return e.shouldAnimate?e.on?{isVisible:!0,data:e.on,animate:"open"}:t.isVisible?{isVisible:!0,data:t.data,animate:"close"}:{isVisible:!1,animate:"close",data:null}:{isVisible:Boolean(e.on),data:e.on,animate:"none"}}render(){if(!this.state.isVisible)return null;const e={onClose:this.onClose,data:this.state.data,animate:this.state.animate};return this.props.children(e)}}const Do={mode:"standard",type:"DEFAULT",direction:"vertical",isDropDisabled:!1,isCombineEnabled:!1,ignoreContainerClipping:!1,renderClone:null,getContainerForClone:function(){return document.body||ve(!1),document.body}},No=e=>{let t,n={...e};for(t in Do)void 0===e[t]&&(n={...n,[t]:Do[t]});return n},Io=(e,t)=>e===t.droppable.type,_o=(e,t)=>t.draggables[e.draggable.id];var Ro=q((()=>{const e={placeholder:null,shouldAnimatePlaceholder:!0,snapshot:{isDraggingOver:!1,draggingOverWith:null,draggingFromThisWith:null,isUsingPlaceholder:!1},useClone:null},t={...e,shouldAnimatePlaceholder:!1},n=de((e=>({draggableId:e.id,type:e.type,source:{index:e.index,droppableId:e.droppableId}}))),r=de(((r,o,a,i,l,s)=>{const c=l.descriptor.id;if(l.descriptor.droppableId===r){const e=s?{render:s,dragging:n(l.descriptor)}:null,t={isDraggingOver:a,draggingOverWith:a?c:null,draggingFromThisWith:c,isUsingPlaceholder:!0};return{placeholder:l.placeholder,shouldAnimatePlaceholder:!1,snapshot:t,useClone:e}}if(!o)return t;if(!i)return e;const u={isDraggingOver:a,draggingOverWith:c,draggingFromThisWith:null,isUsingPlaceholder:!0};return{placeholder:l.placeholder,shouldAnimatePlaceholder:!0,snapshot:u,useClone:null}}));return(n,o)=>{const a=No(o),i=a.droppableId,l=a.type,s=!a.isDropDisabled,c=a.renderClone;if(Sr(n)){const e=n.critical;if(!Io(l,e))return t;const o=_o(e,n.dimensions),a=Nt(n.impact)===i;return r(i,s,a,a,o,c)}if("DROP_ANIMATING"===n.phase){const e=n.completed;if(!Io(l,e.critical))return t;const o=_o(e.critical,n.dimensions);return r(i,s,ro(e.result)===i,Nt(e.impact)===i,o,c)}if("IDLE"===n.phase&&n.completed&&!n.shouldFlush){const r=n.completed;if(!Io(l,r.critical))return t;const o=Nt(r.impact)===i,a=Boolean(r.impact.at&&"COMBINE"===r.impact.at.type),s=r.critical.droppable.id===i;return o?a?e:t:s?e:t}return t}}),{updateViewportMaxScroll:e=>({type:"UPDATE_VIEWPORT_MAX_SCROLL",payload:e})},((e,t,n)=>({...No(n),...e,...t})),{context:gr,areStatePropsEqual:no})((t=>{const n=(0,e.useContext)(Er);n||ve(!1);const{contextId:o,isMovementAllowed:a}=n,i=(0,e.useRef)(null),l=(0,e.useRef)(null),{children:s,droppableId:c,type:u,mode:d,direction:f,ignoreContainerClipping:p,isDropDisabled:m,isCombineEnabled:g,snapshot:h,useClone:b,updateViewportMaxScroll:y,getContainerForClone:v}=t,w=J((()=>i.current),[]),E=J((function(e){void 0===e&&(e=null),i.current=e}),[]),x=(J((()=>l.current),[]),J((function(e){void 0===e&&(e=null),l.current=e}),[])),S=J((()=>{a()&&y({maxScroll:jn()})}),[a,y]);So({droppableId:c,type:u,mode:d,direction:f,isDropDisabled:m,isCombineEnabled:g,ignoreContainerClipping:p,getDroppableRef:w});const k=X((()=>e.createElement(Po,{on:t.placeholder,shouldAnimate:t.shouldAnimatePlaceholder},(t=>{let{onClose:n,data:r,animate:a}=t;return e.createElement(Co,{placeholder:r,onClose:n,innerRef:x,animate:a,contextId:o,onTransitionEnd:S})}))),[o,S,t.placeholder,t.shouldAnimatePlaceholder,x]),O=X((()=>({innerRef:E,placeholder:k,droppableProps:{"data-rfd-droppable-id":c,"data-rfd-droppable-context-id":o}})),[o,c,k,E]),C=b?b.dragging.draggableId:null,P=X((()=>({droppableId:c,type:u,isUsingCloneFor:C})),[c,C,u]);return e.createElement(Zr.Provider,{value:P},s(O,h),function(){if(!b)return null;const{dragging:t,render:n}=b,o=e.createElement(so,{draggableId:t.draggableId,index:t.source.index,isClone:!0,isEnabled:!0,shouldRespectForcePress:!1,canDragInteractiveElements:!0},((e,r)=>n(e,r,t)));return r.createPortal(o,v())}())}));const To=e=>{let t;const n=new Set,r=(e,r)=>{const o="function"==typeof e?e(t):e;if(!Object.is(o,t)){const e=t;t=(null!=r?r:"object"!=typeof o||null===o)?o:Object.assign({},t,o),n.forEach((n=>n(t,e)))}},o=()=>t,a={setState:r,getState:o,subscribe:e=>(n.add(e),()=>n.delete(e)),destroy:()=>{console.warn("[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."),n.clear()}};return t=e(r,o,a),a},{useDebugValue:Ao}=e,{useSyncExternalStoreWithSelector:jo}=b;let Lo=!1;const Mo=e=>{"function"!=typeof e&&console.warn("[DEPRECATED] Passing a vanilla store will be unsupported in a future version. Instead use `import { useStore } from 'zustand'`.");const t="function"==typeof e?(e=>e?To(e):To)(e):e,n=(e,n)=>function(e,t=e.getState,n){n&&!Lo&&(console.warn("[DEPRECATED] Use `createWithEqualityFn` instead of `create` or use `useStoreWithEqualityFn` instead of `useStore`. They can be imported from 'zustand/traditional'. https://github.com/pmndrs/zustand/discussions/1937"),Lo=!0);const r=jo(e.subscribe,e.getState,e.getServerState||e.getState,t,n);return Ao(r),r}(t,e,n);return Object.assign(n,t),n};function Bo(e){return Bo="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},Bo(e)}function Fo(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 zo(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Fo(Object(n),!0).forEach((function(t){var r,o,a;r=e,o=t,a=n[t],(o=function(e){var t=function(e,t){if("object"!==Bo(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!==Bo(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===Bo(t)?t:String(t)}(o))in r?Object.defineProperty(r,o,{value:a,enumerable:!0,configurable:!0,writable:!0}):r[o]=a})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Fo(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Uo=window.shop_data,$o=Array.from(Uo.columns.backlog.categories.map((function(e){return e.itemIds})).flat()),Wo=function(e,t,n,r,o){var a=arguments.length>5&&void 0!==arguments[5]&&arguments[5],i={opacity:t.isDragging?.7:1,backgroundColor:r||o?"#eae7f7":"initial"};return!a&&null==t.draggingOver&&(!t.isDragging||t.isDragging&&t.isDropAnimating)&&(e.transform="none"),t.isDropAnimating?(n&&(i.transitionDuration="0.001s"),zo(zo({},e),i)):zo(zo({},e),i)},Ho=function(e,t){var n=t.isDraggingOver;return zo(zo({},e),{backgroundColor:n?"#f2f2f2":"#f9f9f9",border:n?"1px dashed #ccc":"0"})};function Go(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?"-":"",a=parseInt(e=Math.abs(Number(e)||0).toFixed(t)).toString(),i=a.length>3?a.length%3:0;return o+(i?a.substr(0,i)+r:"")+a.substr(i).replace(/(\d{3})(?=\d)/g,"$1"+r)+(t?n+Math.abs(e-a).toFixed(t).slice(2):"")}catch(t){return e}}var Vo=n(962);function qo(e,t){return e.contains?e.contains(t):e.compareDocumentPosition?e===t||!!(16&e.compareDocumentPosition(t)):void 0}var Ko=n(697),Qo=n.n(Ko);function Yo(){const t=(0,e.useRef)(!0),n=(0,e.useRef)((()=>t.current));return(0,e.useEffect)((()=>(t.current=!0,()=>{t.current=!1})),[]),n.current}function Xo(t){const n=function(t){const n=(0,e.useRef)(t);return n.current=t,n}(t);(0,e.useEffect)((()=>()=>n.current()),[])}const Jo=2**31-1;function Zo(e,t,n){const r=n-Date.now();e.current=r<=Jo?setTimeout(t,r):setTimeout((()=>Zo(e,t,n)),Jo)}function ea(){const t=Yo(),n=(0,e.useRef)();return Xo((()=>clearTimeout(n.current))),(0,e.useMemo)((()=>{const e=()=>clearTimeout(n.current);return{set:function(r,o=0){t()&&(e(),o<=Jo?n.current=setTimeout(r,o):Zo(n,r,Date.now()+o))},clear:e}}),[])}var ta=n(473),na=n.n(ta);function ra(e){return"default"+e.charAt(0).toUpperCase()+e.substr(1)}function oa(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:String(t)}function aa(t,n,r){var o=(0,e.useRef)(void 0!==t),a=(0,e.useState)(n),i=a[0],l=a[1],s=void 0!==t,c=o.current;return o.current=s,!s&&c&&i!==n&&l(n),[s?t:i,(0,e.useCallback)((function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];r&&r.apply(void 0,[e].concat(n)),l(e)}),[r])]}n(143);const ia=e=>e&&"function"!=typeof e?t=>{e.current=t}:e,la=function(t,n){return(0,e.useMemo)((()=>function(e,t){const n=ia(e),r=ia(t);return e=>{n&&n(e),r&&r(e)}}(t,n)),[t,n])};var sa=n(184),ca=n.n(sa);function ua(){return(0,e.useState)(null)}var da=Object.prototype.hasOwnProperty;function fa(e,t,n){for(n of e.keys())if(pa(n,t))return n}function pa(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--&&pa(e[r],t[r]););return-1===r}if(n===Set){if(e.size!==t.size)return!1;for(r of e){if((o=r)&&"object"==typeof o&&!(o=fa(t,o)))return!1;if(!t.has(o))return!1}return!0}if(n===Map){if(e.size!==t.size)return!1;for(r of e){if((o=r[0])&&"object"==typeof o&&!(o=fa(t,o)))return!1;if(!pa(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(da.call(e,n)&&++r&&!da.call(t,n))return!1;if(!(n in t)||!pa(e[n],t[n]))return!1}return Object.keys(t).length===r}}return e!=e&&t!=t}function ma(e){return e.split("-")[0]}function ga(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function ha(e){return e instanceof ga(e).Element||e instanceof Element}function ba(e){return e instanceof ga(e).HTMLElement||e instanceof HTMLElement}function ya(e){return"undefined"!=typeof ShadowRoot&&(e instanceof ga(e).ShadowRoot||e instanceof ShadowRoot)}var va=Math.max,wa=Math.min,Ea=Math.round;function xa(){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 Sa(){return!/^((?!chrome|android).)*safari/i.test(xa())}function ka(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);var r=e.getBoundingClientRect(),o=1,a=1;t&&ba(e)&&(o=e.offsetWidth>0&&Ea(r.width)/e.offsetWidth||1,a=e.offsetHeight>0&&Ea(r.height)/e.offsetHeight||1);var i=(ha(e)?ga(e):window).visualViewport,l=!Sa()&&n,s=(r.left+(l&&i?i.offsetLeft:0))/o,c=(r.top+(l&&i?i.offsetTop:0))/a,u=r.width/o,d=r.height/a;return{width:u,height:d,top:c,right:s+u,bottom:c+d,left:s,x:s,y:c}}function Oa(e){var t=ka(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 Ca(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&ya(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function Pa(e){return e?(e.nodeName||"").toLowerCase():null}function Da(e){return ga(e).getComputedStyle(e)}function Na(e){return["table","td","th"].indexOf(Pa(e))>=0}function Ia(e){return((ha(e)?e.ownerDocument:e.document)||window.document).documentElement}function _a(e){return"html"===Pa(e)?e:e.assignedSlot||e.parentNode||(ya(e)?e.host:null)||Ia(e)}function Ra(e){return ba(e)&&"fixed"!==Da(e).position?e.offsetParent:null}function Ta(e){for(var t=ga(e),n=Ra(e);n&&Na(n)&&"static"===Da(n).position;)n=Ra(n);return n&&("html"===Pa(n)||"body"===Pa(n)&&"static"===Da(n).position)?t:n||function(e){var t=/firefox/i.test(xa());if(/Trident/i.test(xa())&&ba(e)&&"fixed"===Da(e).position)return null;var n=_a(e);for(ya(n)&&(n=n.host);ba(n)&&["html","body"].indexOf(Pa(n))<0;){var r=Da(n);if("none"!==r.transform||"none"!==r.perspective||"paint"===r.contain||-1!==["transform","perspective"].indexOf(r.willChange)||t&&"filter"===r.willChange||t&&r.filter&&"none"!==r.filter)return n;n=n.parentNode}return null}(e)||t}function Aa(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function ja(e,t,n){return va(e,wa(t,n))}function La(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function Ma(e,t){return t.reduce((function(t,n){return t[n]=e,t}),{})}var Ba="top",Fa="bottom",za="right",Ua="left",$a="auto",Wa=[Ba,Fa,za,Ua],Ha="start",Ga="end",Va="viewport",qa="popper",Ka=Wa.reduce((function(e,t){return e.concat([t+"-"+Ha,t+"-"+Ga])}),[]),Qa=[].concat(Wa,[$a]).reduce((function(e,t){return e.concat([t,t+"-"+Ha,t+"-"+Ga])}),[]),Ya=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];const Xa={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n=e.state,r=e.name,o=e.options,a=n.elements.arrow,i=n.modifiersData.popperOffsets,l=ma(n.placement),s=Aa(l),c=[Ua,za].indexOf(l)>=0?"height":"width";if(a&&i){var u=function(e,t){return La("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:Ma(e,Wa))}(o.padding,n),d=Oa(a),f="y"===s?Ba:Ua,p="y"===s?Fa:za,m=n.rects.reference[c]+n.rects.reference[s]-i[s]-n.rects.popper[c],g=i[s]-n.rects.reference[s],h=Ta(a),b=h?"y"===s?h.clientHeight||0:h.clientWidth||0:0,y=m/2-g/2,v=u[f],w=b-d[c]-u[p],E=b/2-d[c]/2+y,x=ja(v,E,w),S=s;n.modifiersData[r]=((t={})[S]=x,t.centerOffset=x-E,t)}},effect:function(e){var t=e.state,n=e.options.element,r=void 0===n?"[data-popper-arrow]":n;null!=r&&("string"!=typeof r||(r=t.elements.popper.querySelector(r)))&&Ca(t.elements.popper,r)&&(t.elements.arrow=r)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Ja(e){return e.split("-")[1]}var Za={top:"auto",right:"auto",bottom:"auto",left:"auto"};function ei(e){var t,n=e.popper,r=e.popperRect,o=e.placement,a=e.variation,i=e.offsets,l=e.position,s=e.gpuAcceleration,c=e.adaptive,u=e.roundOffsets,d=e.isFixed,f=i.x,p=void 0===f?0:f,m=i.y,g=void 0===m?0:m,h="function"==typeof u?u({x:p,y:g}):{x:p,y:g};p=h.x,g=h.y;var b=i.hasOwnProperty("x"),y=i.hasOwnProperty("y"),v=Ua,w=Ba,E=window;if(c){var x=Ta(n),S="clientHeight",k="clientWidth";x===ga(n)&&"static"!==Da(x=Ia(n)).position&&"absolute"===l&&(S="scrollHeight",k="scrollWidth"),(o===Ba||(o===Ua||o===za)&&a===Ga)&&(w=Fa,g-=(d&&x===E&&E.visualViewport?E.visualViewport.height:x[S])-r.height,g*=s?1:-1),o!==Ua&&(o!==Ba&&o!==Fa||a!==Ga)||(v=za,p-=(d&&x===E&&E.visualViewport?E.visualViewport.width:x[k])-r.width,p*=s?1:-1)}var O,C=Object.assign({position:l},c&&Za),P=!0===u?function(e,t){var n=e.x,r=e.y,o=t.devicePixelRatio||1;return{x:Ea(n*o)/o||0,y:Ea(r*o)/o||0}}({x:p,y:g},ga(n)):{x:p,y:g};return p=P.x,g=P.y,s?Object.assign({},C,((O={})[w]=y?"0":"",O[v]=b?"0":"",O.transform=(E.devicePixelRatio||1)<=1?"translate("+p+"px, "+g+"px)":"translate3d("+p+"px, "+g+"px, 0)",O)):Object.assign({},C,((t={})[w]=y?g+"px":"",t[v]=b?p+"px":"",t.transform="",t))}const ti={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=void 0===r||r,a=n.adaptive,i=void 0===a||a,l=n.roundOffsets,s=void 0===l||l,c={placement:ma(t.placement),variation:Ja(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,ei(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:i,roundOffsets:s})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,ei(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:s})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}};var ni={passive:!0};const ri={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,n=e.instance,r=e.options,o=r.scroll,a=void 0===o||o,i=r.resize,l=void 0===i||i,s=ga(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&c.forEach((function(e){e.addEventListener("scroll",n.update,ni)})),l&&s.addEventListener("resize",n.update,ni),function(){a&&c.forEach((function(e){e.removeEventListener("scroll",n.update,ni)})),l&&s.removeEventListener("resize",n.update,ni)}},data:{}};var oi={left:"right",right:"left",bottom:"top",top:"bottom"};function ai(e){return e.replace(/left|right|bottom|top/g,(function(e){return oi[e]}))}var ii={start:"end",end:"start"};function li(e){return e.replace(/start|end/g,(function(e){return ii[e]}))}function si(e){var t=ga(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function ci(e){return ka(Ia(e)).left+si(e).scrollLeft}function ui(e){var t=Da(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function di(e){return["html","body","#document"].indexOf(Pa(e))>=0?e.ownerDocument.body:ba(e)&&ui(e)?e:di(_a(e))}function fi(e,t){var n;void 0===t&&(t=[]);var r=di(e),o=r===(null==(n=e.ownerDocument)?void 0:n.body),a=ga(r),i=o?[a].concat(a.visualViewport||[],ui(r)?r:[]):r,l=t.concat(i);return o?l:l.concat(fi(_a(i)))}function pi(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function mi(e,t,n){return t===Va?pi(function(e,t){var n=ga(e),r=Ia(e),o=n.visualViewport,a=r.clientWidth,i=r.clientHeight,l=0,s=0;if(o){a=o.width,i=o.height;var c=Sa();(c||!c&&"fixed"===t)&&(l=o.offsetLeft,s=o.offsetTop)}return{width:a,height:i,x:l+ci(e),y:s}}(e,n)):ha(t)?function(e,t){var n=ka(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):pi(function(e){var t,n=Ia(e),r=si(e),o=null==(t=e.ownerDocument)?void 0:t.body,a=va(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),i=va(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),l=-r.scrollLeft+ci(e),s=-r.scrollTop;return"rtl"===Da(o||n).direction&&(l+=va(n.clientWidth,o?o.clientWidth:0)-a),{width:a,height:i,x:l,y:s}}(Ia(e)))}function gi(e){var t,n=e.reference,r=e.element,o=e.placement,a=o?ma(o):null,i=o?Ja(o):null,l=n.x+n.width/2-r.width/2,s=n.y+n.height/2-r.height/2;switch(a){case Ba:t={x:l,y:n.y-r.height};break;case Fa:t={x:l,y:n.y+n.height};break;case za:t={x:n.x+n.width,y:s};break;case Ua:t={x:n.x-r.width,y:s};break;default:t={x:n.x,y:n.y}}var c=a?Aa(a):null;if(null!=c){var u="y"===c?"height":"width";switch(i){case Ha:t[c]=t[c]-(n[u]/2-r[u]/2);break;case Ga:t[c]=t[c]+(n[u]/2-r[u]/2)}}return t}function hi(e,t){void 0===t&&(t={});var n=t,r=n.placement,o=void 0===r?e.placement:r,a=n.strategy,i=void 0===a?e.strategy:a,l=n.boundary,s=void 0===l?"clippingParents":l,c=n.rootBoundary,u=void 0===c?Va:c,d=n.elementContext,f=void 0===d?qa:d,p=n.altBoundary,m=void 0!==p&&p,g=n.padding,h=void 0===g?0:g,b=La("number"!=typeof h?h:Ma(h,Wa)),y=f===qa?"reference":qa,v=e.rects.popper,w=e.elements[m?y:f],E=function(e,t,n,r){var o="clippingParents"===t?function(e){var t=fi(_a(e)),n=["absolute","fixed"].indexOf(Da(e).position)>=0&&ba(e)?Ta(e):e;return ha(n)?t.filter((function(e){return ha(e)&&Ca(e,n)&&"body"!==Pa(e)})):[]}(e):[].concat(t),a=[].concat(o,[n]),i=a[0],l=a.reduce((function(t,n){var o=mi(e,n,r);return t.top=va(o.top,t.top),t.right=wa(o.right,t.right),t.bottom=wa(o.bottom,t.bottom),t.left=va(o.left,t.left),t}),mi(e,i,r));return l.width=l.right-l.left,l.height=l.bottom-l.top,l.x=l.left,l.y=l.top,l}(ha(w)?w:w.contextElement||Ia(e.elements.popper),s,u,i),x=ka(e.elements.reference),S=gi({reference:x,element:v,strategy:"absolute",placement:o}),k=pi(Object.assign({},v,S)),O=f===qa?k:x,C={top:E.top-O.top+b.top,bottom:O.bottom-E.bottom+b.bottom,left:E.left-O.left+b.left,right:O.right-E.right+b.right},P=e.modifiersData.offset;if(f===qa&&P){var D=P[o];Object.keys(C).forEach((function(e){var t=[za,Fa].indexOf(e)>=0?1:-1,n=[Ba,Fa].indexOf(e)>=0?"y":"x";C[e]+=D[n]*t}))}return C}const bi={name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,a=void 0===o||o,i=n.altAxis,l=void 0===i||i,s=n.fallbackPlacements,c=n.padding,u=n.boundary,d=n.rootBoundary,f=n.altBoundary,p=n.flipVariations,m=void 0===p||p,g=n.allowedAutoPlacements,h=t.options.placement,b=ma(h),y=s||(b!==h&&m?function(e){if(ma(e)===$a)return[];var t=ai(e);return[li(e),t,li(t)]}(h):[ai(h)]),v=[h].concat(y).reduce((function(e,n){return e.concat(ma(n)===$a?function(e,t){void 0===t&&(t={});var n=t,r=n.placement,o=n.boundary,a=n.rootBoundary,i=n.padding,l=n.flipVariations,s=n.allowedAutoPlacements,c=void 0===s?Qa:s,u=Ja(r),d=u?l?Ka:Ka.filter((function(e){return Ja(e)===u})):Wa,f=d.filter((function(e){return c.indexOf(e)>=0}));0===f.length&&(f=d);var p=f.reduce((function(t,n){return t[n]=hi(e,{placement:n,boundary:o,rootBoundary:a,padding:i})[ma(n)],t}),{});return Object.keys(p).sort((function(e,t){return p[e]-p[t]}))}(t,{placement:n,boundary:u,rootBoundary:d,padding:c,flipVariations:m,allowedAutoPlacements:g}):n)}),[]),w=t.rects.reference,E=t.rects.popper,x=new Map,S=!0,k=v[0],O=0;O<v.length;O++){var C=v[O],P=ma(C),D=Ja(C)===Ha,N=[Ba,Fa].indexOf(P)>=0,I=N?"width":"height",_=hi(t,{placement:C,boundary:u,rootBoundary:d,altBoundary:f,padding:c}),R=N?D?za:Ua:D?Fa:Ba;w[I]>E[I]&&(R=ai(R));var T=ai(R),A=[];if(a&&A.push(_[P]<=0),l&&A.push(_[R]<=0,_[T]<=0),A.every((function(e){return e}))){k=C,S=!1;break}x.set(C,A)}if(S)for(var j=function(e){var t=v.find((function(t){var n=x.get(t);if(n)return n.slice(0,e).every((function(e){return e}))}));if(t)return k=t,"break"},L=m?3:1;L>0&&"break"!==j(L);L--);t.placement!==k&&(t.modifiersData[r]._skip=!0,t.placement=k,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function yi(e,t,n){return void 0===n&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function vi(e){return[Ba,za,Fa,Ua].some((function(t){return e[t]>=0}))}const wi={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,a=t.modifiersData.preventOverflow,i=hi(t,{elementContext:"reference"}),l=hi(t,{altBoundary:!0}),s=yi(i,r),c=yi(l,o,a),u=vi(s),d=vi(c);t.modifiersData[n]={referenceClippingOffsets:s,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":d})}},Ei={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.options,r=e.name,o=n.offset,a=void 0===o?[0,0]:o,i=Qa.reduce((function(e,n){return e[n]=function(e,t,n){var r=ma(e),o=[Ua,Ba].indexOf(r)>=0?-1:1,a="function"==typeof n?n(Object.assign({},t,{placement:e})):n,i=a[0],l=a[1];return i=i||0,l=(l||0)*o,[Ua,za].indexOf(r)>=0?{x:l,y:i}:{x:i,y:l}}(n,t.rects,a),e}),{}),l=i[t.placement],s=l.x,c=l.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=s,t.modifiersData.popperOffsets.y+=c),t.modifiersData[r]=i}},xi={name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=gi({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}},Si={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,a=void 0===o||o,i=n.altAxis,l=void 0!==i&&i,s=n.boundary,c=n.rootBoundary,u=n.altBoundary,d=n.padding,f=n.tether,p=void 0===f||f,m=n.tetherOffset,g=void 0===m?0:m,h=hi(t,{boundary:s,rootBoundary:c,padding:d,altBoundary:u}),b=ma(t.placement),y=Ja(t.placement),v=!y,w=Aa(b),E="x"===w?"y":"x",x=t.modifiersData.popperOffsets,S=t.rects.reference,k=t.rects.popper,O="function"==typeof g?g(Object.assign({},t.rects,{placement:t.placement})):g,C="number"==typeof O?{mainAxis:O,altAxis:O}:Object.assign({mainAxis:0,altAxis:0},O),P=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,D={x:0,y:0};if(x){if(a){var N,I="y"===w?Ba:Ua,_="y"===w?Fa:za,R="y"===w?"height":"width",T=x[w],A=T+h[I],j=T-h[_],L=p?-k[R]/2:0,M=y===Ha?S[R]:k[R],B=y===Ha?-k[R]:-S[R],F=t.elements.arrow,z=p&&F?Oa(F):{width:0,height:0},U=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},$=U[I],W=U[_],H=ja(0,S[R],z[R]),G=v?S[R]/2-L-H-$-C.mainAxis:M-H-$-C.mainAxis,V=v?-S[R]/2+L+H+W+C.mainAxis:B+H+W+C.mainAxis,q=t.elements.arrow&&Ta(t.elements.arrow),K=q?"y"===w?q.clientTop||0:q.clientLeft||0:0,Q=null!=(N=null==P?void 0:P[w])?N:0,Y=T+V-Q,X=ja(p?wa(A,T+G-Q-K):A,T,p?va(j,Y):j);x[w]=X,D[w]=X-T}if(l){var J,Z="x"===w?Ba:Ua,ee="x"===w?Fa:za,te=x[E],ne="y"===E?"height":"width",re=te+h[Z],oe=te-h[ee],ae=-1!==[Ba,Ua].indexOf(b),ie=null!=(J=null==P?void 0:P[E])?J:0,le=ae?re:te-S[ne]-k[ne]-ie+C.altAxis,se=ae?te+S[ne]+k[ne]-ie-C.altAxis:oe,ce=p&&ae?function(e,t,n){var r=ja(e,t,n);return r>n?n:r}(le,te,se):ja(p?le:re,te,p?se:oe);x[E]=ce,D[E]=ce-te}t.modifiersData[r]=D}},requiresIfExists:["offset"]};function ki(e,t,n){void 0===n&&(n=!1);var r,o,a=ba(t),i=ba(t)&&function(e){var t=e.getBoundingClientRect(),n=Ea(t.width)/e.offsetWidth||1,r=Ea(t.height)/e.offsetHeight||1;return 1!==n||1!==r}(t),l=Ia(t),s=ka(e,i,n),c={scrollLeft:0,scrollTop:0},u={x:0,y:0};return(a||!a&&!n)&&(("body"!==Pa(t)||ui(l))&&(c=(r=t)!==ga(r)&&ba(r)?{scrollLeft:(o=r).scrollLeft,scrollTop:o.scrollTop}:si(r)),ba(t)?((u=ka(t,!0)).x+=t.clientLeft,u.y+=t.clientTop):l&&(u.x=ci(l))),{x:s.left+c.scrollLeft-u.x,y:s.top+c.scrollTop-u.y,width:s.width,height:s.height}}function Oi(e){var t=new Map,n=new Set,r=[];function o(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach((function(e){if(!n.has(e)){var r=t.get(e);r&&o(r)}})),r.push(e)}return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){n.has(e.name)||o(e)})),r}function Ci(e){var t;return function(){return t||(t=new Promise((function(n){Promise.resolve().then((function(){t=void 0,n(e())}))}))),t}}var Pi={placement:"bottom",modifiers:[],strategy:"absolute"};function Di(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some((function(e){return!(e&&"function"==typeof e.getBoundingClientRect)}))}const Ni=function(e){void 0===e&&(e={});var t=e,n=t.defaultModifiers,r=void 0===n?[]:n,o=t.defaultOptions,a=void 0===o?Pi:o;return function(e,t,n){void 0===n&&(n=a);var o={placement:"bottom",orderedModifiers:[],options:Object.assign({},Pi,a),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},i=[],l=!1,s={state:o,setOptions:function(n){var l="function"==typeof n?n(o.options):n;c(),o.options=Object.assign({},a,o.options,l),o.scrollParents={reference:ha(e)?fi(e):e.contextElement?fi(e.contextElement):[],popper:fi(t)};var u,d,f=function(e){var t=Oi(e);return Ya.reduce((function(e,n){return e.concat(t.filter((function(e){return e.phase===n})))}),[])}((u=[].concat(r,o.options.modifiers),d=u.reduce((function(e,t){var n=e[t.name];return e[t.name]=n?Object.assign({},n,t,{options:Object.assign({},n.options,t.options),data:Object.assign({},n.data,t.data)}):t,e}),{}),Object.keys(d).map((function(e){return d[e]}))));return o.orderedModifiers=f.filter((function(e){return e.enabled})),o.orderedModifiers.forEach((function(e){var t=e.name,n=e.options,r=void 0===n?{}:n,a=e.effect;if("function"==typeof a){var l=a({state:o,name:t,instance:s,options:r});i.push(l||function(){})}})),s.update()},forceUpdate:function(){if(!l){var e=o.elements,t=e.reference,n=e.popper;if(Di(t,n)){o.rects={reference:ki(t,Ta(n),"fixed"===o.options.strategy),popper:Oa(n)},o.reset=!1,o.placement=o.options.placement,o.orderedModifiers.forEach((function(e){return o.modifiersData[e.name]=Object.assign({},e.data)}));for(var r=0;r<o.orderedModifiers.length;r++)if(!0!==o.reset){var a=o.orderedModifiers[r],i=a.fn,c=a.options,u=void 0===c?{}:c,d=a.name;"function"==typeof i&&(o=i({state:o,options:u,name:d,instance:s})||o)}else o.reset=!1,r=-1}}},update:Ci((function(){return new Promise((function(e){s.forceUpdate(),e(o)}))})),destroy:function(){c(),l=!0}};if(!Di(e,t))return s;function c(){i.forEach((function(e){return e()})),i=[]}return s.setOptions(n).then((function(e){!l&&n.onFirstUpdate&&n.onFirstUpdate(e)})),s}}({defaultModifiers:[wi,xi,ti,ri,Ei,bi,Si,Xa]}),Ii=["enabled","placement","strategy","modifiers"],_i={name:"applyStyles",enabled:!1,phase:"afterWrite",fn:()=>{}},Ri={name:"ariaDescribedBy",enabled:!0,phase:"afterWrite",effect:({state:e})=>()=>{const{reference:t,popper:n}=e.elements;if("removeAttribute"in t){const e=(t.getAttribute("aria-describedby")||"").split(",").filter((e=>e.trim()!==n.id));e.length?t.setAttribute("aria-describedby",e.join(",")):t.removeAttribute("aria-describedby")}},fn:({state:e})=>{var t;const{popper:n,reference:r}=e.elements,o=null==(t=n.getAttribute("role"))?void 0:t.toLowerCase();if(n.id&&"tooltip"===o&&"setAttribute"in r){const e=r.getAttribute("aria-describedby");if(e&&-1!==e.split(",").indexOf(n.id))return;r.setAttribute("aria-describedby",e?`${e},${n.id}`:n.id)}}},Ti=[],Ai=function(t,n,r={}){let{enabled:o=!0,placement:a="bottom",strategy:i="absolute",modifiers:l=Ti}=r,s=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(r,Ii);const c=(0,e.useRef)(l),u=(0,e.useRef)(),d=(0,e.useCallback)((()=>{var e;null==(e=u.current)||e.update()}),[]),f=(0,e.useCallback)((()=>{var e;null==(e=u.current)||e.forceUpdate()}),[]),[p,m]=function(t){const n=Yo();return[t[0],(0,e.useCallback)((e=>{if(n())return t[1](e)}),[n,t[1]])]}((0,e.useState)({placement:a,update:d,forceUpdate:f,attributes:{},styles:{popper:{},arrow:{}}})),g=(0,e.useMemo)((()=>({name:"updateStateModifier",enabled:!0,phase:"write",requires:["computeStyles"],fn:({state:e})=>{const t={},n={};Object.keys(e.elements).forEach((r=>{t[r]=e.styles[r],n[r]=e.attributes[r]})),m({state:e,styles:t,attributes:n,update:d,forceUpdate:f,placement:e.placement})}})),[d,f,m]),h=(0,e.useMemo)((()=>(pa(c.current,l)||(c.current=l),c.current)),[l]);return(0,e.useEffect)((()=>{u.current&&o&&u.current.setOptions({placement:a,strategy:i,modifiers:[...h,g,_i]})}),[i,a,g,o,h]),(0,e.useEffect)((()=>{if(o&&null!=t&&null!=n)return u.current=Ni(t,n,Object.assign({},s,{placement:a,strategy:i,modifiers:[...h,Ri,g]})),()=>{null!=u.current&&(u.current.destroy(),u.current=void 0,m((e=>Object.assign({},e,{attributes:{},styles:{popper:{}}}))))}}),[o,t,n]),p},ji=!("undefined"==typeof window||!window.document||!window.document.createElement);var Li=!1,Mi=!1;try{var Bi={get passive(){return Li=!0},get once(){return Mi=Li=!0}};ji&&(window.addEventListener("test",Bi,Bi),window.removeEventListener("test",Bi,!0))}catch(e){}const Fi=function(e,t,n,r){if(r&&"boolean"!=typeof r&&!Mi){var o=r.once,a=r.capture,i=n;!Mi&&o&&(i=n.__once||function e(r){this.removeEventListener(t,e,a),n.call(this,r)},n.__once=i),e.addEventListener(t,i,Li?r:a)}e.addEventListener(t,n,r)},zi=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)},Ui=function(e,t,n,r){return Fi(e,t,n,r),function(){zi(e,t,n,r)}};function $i(e){return e&&e.ownerDocument||document}const Wi=function(t){const n=(0,e.useRef)(t);return(0,e.useEffect)((()=>{n.current=t}),[t]),n};function Hi(t){const n=Wi(t);return(0,e.useCallback)((function(...e){return n.current&&n.current(...e)}),[n])}const Gi=()=>{},Vi=e=>e&&("current"in e?e.current:e),qi={click:"mousedown",mouseup:"mousedown",pointerup:"pointerdown"};function Ki(e){return"Escape"===e.code||27===e.keyCode}const Qi=()=>{},Yi=function(t,n,{disabled:r,clickTrigger:o}={}){const a=n||Qi;!function(t,n=Gi,{disabled:r,clickTrigger:o="click"}={}){const a=(0,e.useRef)(!1),i=(0,e.useRef)(!1),l=(0,e.useCallback)((e=>{const n=Vi(t);var r;na()(!!n,"ClickOutside captured a close event but does not have a ref to compare it to. useClickOutside(), should be passed a ref that resolves to a DOM node"),a.current=!n||!!((r=e).metaKey||r.altKey||r.ctrlKey||r.shiftKey)||!function(e){return 0===e.button}(e)||!!qo(n,e.target)||i.current,i.current=!1}),[t]),s=Hi((e=>{const n=Vi(t);n&&qo(n,e.target)&&(i.current=!0)})),c=Hi((e=>{a.current||n(e)}));(0,e.useEffect)((()=>{var e,n;if(r||null==t)return;const a=$i(Vi(t)),i=a.defaultView||window;let u=null!=(e=i.event)?e:null==(n=i.parent)?void 0:n.event,d=null;qi[o]&&(d=Ui(a,qi[o],s,!0));const f=Ui(a,o,l,!0),p=Ui(a,o,(e=>{e!==u?c(e):u=void 0}));let m=[];return"ontouchstart"in a.documentElement&&(m=[].slice.call(a.body.children).map((e=>Ui(e,"mousemove",Gi)))),()=>{null==d||d(),f(),p(),m.forEach((e=>e()))}}),[t,r,o,l,s,c])}(t,a,{disabled:r,clickTrigger:o});const i=Hi((e=>{Ki(e)&&a(e)}));(0,e.useEffect)((()=>{if(r||null==t)return;const e=$i(Vi(t));let n=(e.defaultView||window).event;const o=Ui(e,"keyup",(e=>{e!==n?i(e):n=void 0}));return()=>{o()}}),[t,r,i])},Xi=(0,e.createContext)(ji?window:void 0);function Ji(){return(0,e.useContext)(Xi)}Xi.Provider;const Zi=(e,t)=>ji?null==e?(t||$i()).body:("function"==typeof e&&(e=e()),e&&"current"in e&&(e=e.current),e&&("nodeType"in e||e.getBoundingClientRect)?e:null):null;function el(t,n){const r=Ji(),[o,a]=(0,e.useState)((()=>Zi(t,null==r?void 0:r.document)));if(!o){const e=Zi(t);e&&a(e)}return(0,e.useEffect)((()=>{n&&o&&n(o)}),[n,o]),(0,e.useEffect)((()=>{const e=Zi(t);e!==o&&a(e)}),[t,o]),o}function tl(e={}){return Array.isArray(e)?e:Object.keys(e).map((t=>(e[t].name=t,e[t])))}const nl=void 0!==n.g&&n.g.navigator&&"ReactNative"===n.g.navigator.product,rl="undefined"!=typeof document||nl?e.useLayoutEffect:e.useEffect,ol=function({children:t,in:n,onExited:r,mountOnEnter:o,unmountOnExit:a}){const i=(0,e.useRef)(null),l=(0,e.useRef)(n),s=Hi(r);(0,e.useEffect)((()=>{n?l.current=!0:s(i.current)}),[n,s]);const c=la(i,t.ref),u=(0,e.cloneElement)(t,{ref:c});return n?u:a||!l.current&&o?null:u};var al=n(893);function il({children:t,in:n,onExited:r,onEntered:o,transition:a}){const[i,l]=(0,e.useState)(!n);n&&i&&l(!1);const s=function({in:t,onTransition:n}){const r=(0,e.useRef)(null),o=(0,e.useRef)(!0),a=Hi(n);return rl((()=>{if(!r.current)return;let e=!1;return a({in:t,element:r.current,initial:o.current,isStale:()=>e}),()=>{e=!0}}),[t,a]),rl((()=>(o.current=!1,()=>{o.current=!0})),[]),r}({in:!!n,onTransition:e=>{Promise.resolve(a(e)).then((()=>{e.isStale()||(e.in?null==o||o(e.element,e.initial):(l(!0),null==r||r(e.element)))}),(t=>{throw e.in||l(!0),t}))}}),c=la(s,t.ref);return i&&!n?null:(0,e.cloneElement)(t,{ref:c})}function ll(e,t,n){return e?(0,al.jsx)(e,Object.assign({},n)):t?(0,al.jsx)(il,Object.assign({},n,{transition:t})):(0,al.jsx)(ol,Object.assign({},n))}const sl=e.forwardRef(((t,n)=>{const{flip:o,offset:a,placement:i,containerPadding:l,popperConfig:s={},transition:c,runTransition:u}=t,[d,f]=ua(),[p,m]=ua(),g=la(f,n),h=el(t.container),b=el(t.target),[y,v]=(0,e.useState)(!t.show),w=Ai(b,d,function({enabled:e,enableEvents:t,placement:n,flip:r,offset:o,fixed:a,containerPadding:i,arrowElement:l,popperConfig:s={}}){var c,u,d,f,p;const m=function(e){const t={};return Array.isArray(e)?(null==e||e.forEach((e=>{t[e.name]=e})),t):e||t}(s.modifiers);return Object.assign({},s,{placement:n,enabled:e,strategy:a?"fixed":s.strategy,modifiers:tl(Object.assign({},m,{eventListeners:{enabled:t,options:null==(c=m.eventListeners)?void 0:c.options},preventOverflow:Object.assign({},m.preventOverflow,{options:i?Object.assign({padding:i},null==(u=m.preventOverflow)?void 0:u.options):null==(d=m.preventOverflow)?void 0:d.options}),offset:{options:Object.assign({offset:o},null==(f=m.offset)?void 0:f.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:l||5,flip:o,offset:a,arrowElement:p,popperConfig:s}));t.show&&y&&v(!1);const E=t.show||!y;if(Yi(d,t.onHide,{disabled:!t.rootClose||t.rootCloseDisabled,clickTrigger:t.rootCloseEvent}),!E)return null;const{onExit:x,onExiting:S,onEnter:k,onEntering:O,onEntered:C}=t;let P=t.children(Object.assign({},w.attributes.popper,{style:w.styles.popper,ref:g}),{popper:w,placement:i,show:!!t.show,arrowProps:Object.assign({},w.attributes.arrow,{style:w.styles.arrow,ref:m})});return P=ll(c,u,{in:!!t.show,appear:!0,mountOnEnter:!0,unmountOnExit:!0,children:P,onExit:x,onExiting:S,onExited:(...e)=>{v(!0),t.onExited&&t.onExited(...e)},onEnter:k,onEntering:O,onEntered:C}),h?r.createPortal(P,h):null}));sl.displayName="Overlay";const cl=sl;function ul(e,t){return e.classList?!!t&&e.classList.contains(t):-1!==(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")}const dl=e.createContext({prefixes:{},breakpoints:["xxl","xl","lg","md","sm","xs"],minBreakpoint:"xs"}),{Consumer:fl,Provider:pl}=dl;function ml(t,n){const{prefixes:r}=(0,e.useContext)(dl);return t||r[n]||n}function gl(){const{dir:t}=(0,e.useContext)(dl);return"rtl"===t}const hl=e.forwardRef((({className:e,bsPrefix:t,as:n="div",...r},o)=>(t=ml(t,"popover-header"),(0,al.jsx)(n,{ref:o,className:ca()(e,t),...r}))));hl.displayName="PopoverHeader";const bl=hl,yl=e.forwardRef((({className:e,bsPrefix:t,as:n="div",...r},o)=>(t=ml(t,"popover-body"),(0,al.jsx)(n,{ref:o,className:ca()(e,t),...r}))));yl.displayName="PopoverBody";const vl=yl;function wl(e,t){let n=e;return"left"===e?n=t?"end":"start":"right"===e&&(n=t?"start":"end"),n}function El(e="absolute"){return{position:e,top:"0",left:"0",opacity:"0",pointerEvents:"none"}}e.Component;const xl=e.forwardRef((({bsPrefix:e,placement:t="right",className:n,style:r,children:o,body:a,arrowProps:i,hasDoneInitialMeasure:l,popper:s,show:c,...u},d)=>{const f=ml(e,"popover"),p=gl(),[m]=(null==t?void 0:t.split("-"))||[],g=wl(m,p);let h=r;return c&&!l&&(h={...r,...El(null==s?void 0:s.strategy)}),(0,al.jsxs)("div",{ref:d,role:"tooltip",style:h,"x-placement":m,className:ca()(n,f,m&&`bs-popover-${g}`),...u,children:[(0,al.jsx)("div",{className:"popover-arrow",...i}),a?(0,al.jsx)(vl,{children:o}):o]})})),Sl=Object.assign(xl,{Header:bl,Body:vl,POPPER_OFFSET:[0,8]}),kl=e.forwardRef((({bsPrefix:e,placement:t="right",className:n,style:r,children:o,arrowProps:a,hasDoneInitialMeasure:i,popper:l,show:s,...c},u)=>{e=ml(e,"tooltip");const d=gl(),[f]=(null==t?void 0:t.split("-"))||[],p=wl(f,d);let m=r;return s&&!i&&(m={...r,...El(null==l?void 0:l.strategy)}),(0,al.jsxs)("div",{ref:u,style:m,role:"tooltip","x-placement":f,className:ca()(n,e,`bs-tooltip-${p}`),...c,children:[(0,al.jsx)("div",{className:"tooltip-arrow",...a}),(0,al.jsx)("div",{className:`${e}-inner`,children:o})]})}));kl.displayName="Tooltip";const Ol=Object.assign(kl,{TOOLTIP_OFFSET:[0,6]});function Cl(e,t){return Cl=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Cl(e,t)}const Pl=e.createContext(null);var Dl="unmounted",Nl="exited",Il="entering",_l="entered",Rl="exiting",Tl=function(t){var n,o;function a(e,n){var r;r=t.call(this,e,n)||this;var o,a=n&&!n.isMounting?e.enter:e.appear;return r.appearStatus=null,e.in?a?(o=Nl,r.appearStatus=Il):o=_l:o=e.unmountOnExit||e.mountOnEnter?Dl:Nl,r.state={status:o},r.nextCallback=null,r}o=t,(n=a).prototype=Object.create(o.prototype),n.prototype.constructor=n,Cl(n,o),a.getDerivedStateFromProps=function(e,t){return e.in&&t.status===Dl?{status:Nl}:null};var i=a.prototype;return i.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},i.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?n!==Il&&n!==_l&&(t=Il):n!==Il&&n!==_l||(t=Rl)}this.updateStatus(!1,t)},i.componentWillUnmount=function(){this.cancelNextCallback()},i.getTimeouts=function(){var e,t,n,r=this.props.timeout;return e=t=n=r,null!=r&&"number"!=typeof r&&(e=r.exit,t=r.enter,n=void 0!==r.appear?r.appear:t),{exit:e,enter:t,appear:n}},i.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t)if(this.cancelNextCallback(),t===Il){if(this.props.unmountOnExit||this.props.mountOnEnter){var n=this.props.nodeRef?this.props.nodeRef.current:r.findDOMNode(this);n&&function(e){e.scrollTop}(n)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Nl&&this.setState({status:Dl})},i.performEnter=function(e){var t=this,n=this.props.enter,o=this.context?this.context.isMounting:e,a=this.props.nodeRef?[o]:[r.findDOMNode(this),o],i=a[0],l=a[1],s=this.getTimeouts(),c=o?s.appear:s.enter;e||n?(this.props.onEnter(i,l),this.safeSetState({status:Il},(function(){t.props.onEntering(i,l),t.onTransitionEnd(c,(function(){t.safeSetState({status:_l},(function(){t.props.onEntered(i,l)}))}))}))):this.safeSetState({status:_l},(function(){t.props.onEntered(i)}))},i.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),o=this.props.nodeRef?void 0:r.findDOMNode(this);t?(this.props.onExit(o),this.safeSetState({status:Rl},(function(){e.props.onExiting(o),e.onTransitionEnd(n.exit,(function(){e.safeSetState({status:Nl},(function(){e.props.onExited(o)}))}))}))):this.safeSetState({status:Nl},(function(){e.props.onExited(o)}))},i.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},i.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},i.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,t.nextCallback=null,e(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},i.onTransitionEnd=function(e,t){this.setNextCallback(t);var n=this.props.nodeRef?this.props.nodeRef.current:r.findDOMNode(this),o=null==e&&!this.props.addEndListener;if(n&&!o){if(this.props.addEndListener){var a=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],i=a[0],l=a[1];this.props.addEndListener(i,l)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},i.render=function(){var t=this.state.status;if(t===Dl)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,C(n,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]));return e.createElement(Pl.Provider,{value:null},"function"==typeof r?r(t,o):e.cloneElement(e.Children.only(r),o))},a}(e.Component);function Al(){}Tl.contextType=Pl,Tl.propTypes={},Tl.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Al,onEntering:Al,onEntered:Al,onExit:Al,onExiting:Al,onExited:Al},Tl.UNMOUNTED=Dl,Tl.EXITED=Nl,Tl.ENTERING=Il,Tl.ENTERED=_l,Tl.EXITING=Rl;const jl=Tl;var Ll=/([A-Z])/g,Ml=/^ms-/;function Bl(e){return function(e){return e.replace(Ll,"-$1").toLowerCase()}(e).replace(Ml,"-ms-")}var Fl=/^((translate|rotate|scale)(X|Y|Z|3d)?|matrix(3d)?|perspective|skew(X|Y)?)$/i;const zl=function(e,t){var n="",r="";if("string"==typeof t)return e.style.getPropertyValue(Bl(t))||function(e,t){return function(e){var t=$i(e);return t&&t.defaultView||window}(e).getComputedStyle(e,t)}(e).getPropertyValue(Bl(t));Object.keys(t).forEach((function(o){var a=t[o];a||0===a?function(e){return!(!e||!Fl.test(e))}(o)?r+=o+"("+a+") ":n+=Bl(o)+": "+a+";":e.style.removeProperty(Bl(o))})),r&&(n+="transform: "+r+";"),e.style.cssText+=";"+n};function Ul(e,t,n,r){var o,a;null==n&&(a=-1===(o=zl(e,"transitionDuration")||"").indexOf("ms")?1e3:1,n=parseFloat(o)*a||0);var i=function(e,t,n){void 0===n&&(n=5);var r=!1,o=setTimeout((function(){r||function(e,t,n,r){if(void 0===n&&(n=!1),void 0===r&&(r=!0),e){var o=document.createEvent("HTMLEvents");o.initEvent("transitionend",n,r),e.dispatchEvent(o)}}(e,0,!0)}),t+n),a=Ui(e,"transitionend",(function(){r=!0}),{once:!0});return function(){clearTimeout(o),a()}}(e,n,r),l=Ui(e,"transitionend",t);return function(){i(),l()}}function $l(e,t){const n=zl(e,t)||"",r=-1===n.indexOf("ms")?1e3:1;return parseFloat(n)*r}function Wl(e,t){const n=$l(e,"transitionDuration"),r=$l(e,"transitionDelay"),o=Ul(e,(n=>{n.target===e&&(o(),t(n))}),n+r)}function Hl(e){e.offsetHeight}function Gl(e){return e&&"setState"in e?r.findDOMNode(e):null!=e?e:null}const Vl=e.forwardRef((({onEnter:t,onEntering:n,onEntered:r,onExit:o,onExiting:a,onExited:i,addEndListener:l,children:s,childRef:c,...u},d)=>{const f=(0,e.useRef)(null),p=la(f,c),m=e=>{p(Gl(e))},g=e=>t=>{e&&f.current&&e(f.current,t)},h=(0,e.useCallback)(g(t),[t]),b=(0,e.useCallback)(g(n),[n]),y=(0,e.useCallback)(g(r),[r]),v=(0,e.useCallback)(g(o),[o]),w=(0,e.useCallback)(g(a),[a]),E=(0,e.useCallback)(g(i),[i]),x=(0,e.useCallback)(g(l),[l]);return(0,al.jsx)(jl,{ref:d,...u,onEnter:h,onEntered:y,onEntering:b,onExit:v,onExited:E,onExiting:w,addEndListener:x,nodeRef:f,children:"function"==typeof s?(e,t)=>s(e,{...t,ref:m}):e.cloneElement(s,{ref:m})})})),ql={[Il]:"show",[_l]:"show"},Kl=e.forwardRef((({className:t,children:n,transitionClasses:r={},onEnter:o,...a},i)=>{const l={in:!1,timeout:300,mountOnEnter:!1,unmountOnExit:!1,appear:!1,...a},s=(0,e.useCallback)(((e,t)=>{Hl(e),null==o||o(e,t)}),[o]);return(0,al.jsx)(Vl,{ref:i,addEndListener:Wl,...l,onEnter:s,childRef:n.ref,children:(o,a)=>e.cloneElement(n,{...a,className:ca()("fade",t,n.props.className,ql[o],r[o])})})}));Kl.displayName="Fade";const Ql=Kl,Yl=e.forwardRef((({children:t,transition:n=Ql,popperConfig:r={},rootClose:o=!1,placement:a="top",show:i=!1,...l},s)=>{const c=(0,e.useRef)({}),[u,d]=(0,e.useState)(null),[f,p]=function(t){const n=(0,e.useRef)(null),r=ml(void 0,"popover"),o=ml(void 0,"tooltip"),a=(0,e.useMemo)((()=>({name:"offset",options:{offset:()=>{if(t)return t;if(n.current){if(ul(n.current,r))return Sl.POPPER_OFFSET;if(ul(n.current,o))return Ol.TOOLTIP_OFFSET}return[0,0]}}})),[t,r,o]);return[n,[a]]}(l.offset),m=la(s,f),g=!0===n?Ql:n||void 0,h=Hi((e=>{d(e),null==r||null==r.onFirstUpdate||r.onFirstUpdate(e)}));return rl((()=>{u&&l.target&&(null==c.current.scheduleUpdate||c.current.scheduleUpdate())}),[u,l.target]),(0,e.useEffect)((()=>{i||d(null)}),[i]),(0,al.jsx)(cl,{...l,ref:m,popperConfig:{...r,modifiers:p.concat(r.modifiers||[]),onFirstUpdate:h},transition:g,rootClose:o,placement:a,show:i,children:(o,{arrowProps:a,popper:i,show:l})=>{var s,d;!function(e,t){const{ref:n}=e,{ref:r}=t;e.ref=n.__wrapped||(n.__wrapped=e=>n(Gl(e))),t.ref=r.__wrapped||(r.__wrapped=e=>r(Gl(e)))}(o,a);const f=null==i?void 0:i.placement,p=Object.assign(c.current,{state:null==i?void 0:i.state,scheduleUpdate:null==i?void 0:i.update,placement:f,outOfBoundaries:(null==i||null==(s=i.state)||null==(d=s.modifiersData.hide)?void 0:d.isReferenceHidden)||!1,strategy:r.strategy}),m=!!u;return"function"==typeof t?t({...o,placement:f,show:l,...!n&&l&&{className:"show"},popper:p,arrowProps:a,hasDoneInitialMeasure:m}):e.cloneElement(t,{...o,placement:f,arrowProps:a,popper:p,hasDoneInitialMeasure:m,className:ca()(t.props.className,!n&&l&&"show"),style:{...t.props.style,...o.style}})}})}));Yl.displayName="Overlay";const Xl=Yl;function Jl(e,t,n){const[r]=t,o=r.currentTarget,a=r.relatedTarget||r.nativeEvent[n];a&&a===o||qo(o,a)||e(...t)}Qo().oneOf(["click","hover","focus"]);const Zl=({trigger:t=["hover","focus"],overlay:n,children:r,popperConfig:o={},show:a,defaultShow:i=!1,onToggle:l,delay:s,placement:c,flip:u=c&&-1!==c.indexOf("auto"),...d})=>{const f=(0,e.useRef)(null),p=la(f,r.ref),m=ea(),g=(0,e.useRef)(""),[h,b]=aa(a,i,l),y=function(e){return e&&"object"==typeof e?e:{show:e,hide:e}}(s),{onFocus:v,onBlur:w,onClick:E}="function"!=typeof r?e.Children.only(r).props:{},x=(0,e.useCallback)((()=>{m.clear(),g.current="show",y.show?m.set((()=>{"show"===g.current&&b(!0)}),y.show):b(!0)}),[y.show,b,m]),S=(0,e.useCallback)((()=>{m.clear(),g.current="hide",y.hide?m.set((()=>{"hide"===g.current&&b(!1)}),y.hide):b(!1)}),[y.hide,b,m]),k=(0,e.useCallback)(((...e)=>{x(),null==v||v(...e)}),[x,v]),O=(0,e.useCallback)(((...e)=>{S(),null==w||w(...e)}),[S,w]),C=(0,e.useCallback)(((...e)=>{b(!h),null==E||E(...e)}),[E,b,h]),P=(0,e.useCallback)(((...e)=>{Jl(x,e,"fromElement")}),[x]),D=(0,e.useCallback)(((...e)=>{Jl(S,e,"toElement")}),[S]),N=null==t?[]:[].concat(t),I={ref:e=>{p(Gl(e))}};return-1!==N.indexOf("click")&&(I.onClick=C),-1!==N.indexOf("focus")&&(I.onFocus=k,I.onBlur=O),-1!==N.indexOf("hover")&&(I.onMouseOver=P,I.onMouseOut=D),(0,al.jsxs)(al.Fragment,{children:["function"==typeof r?r(I):(0,e.cloneElement)(r,I),(0,al.jsx)(Xl,{...d,show:h,onHide:S,flip:u,placement:c,popperConfig:o,target:f.current,children:n})]})};function es(t){var n=t.id,r=t.tip;return e.createElement(Zl,{placement:"auto",trigger:["click","hover","focus"],style:{display:"inline"},overlay:e.createElement(Ol,{id:n},r)},e.createElement("img",{src:"/images/shop/icon-reminder.svg",className:"options-icon"}))}function ts(e){return ts="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},ts(e)}function ns(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"!==ts(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!==ts(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(r.key),"symbol"===ts(o)?o:String(o)),r)}var o}function rs(e,t){return rs=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},rs(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 as(e){return as=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},as(e)}var is=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&&rs(e,t)}(l,t);var n,r,o,a,i=(o=l,a=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(o);if(a){var n=as(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"===ts(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 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=i.call(this,e)).state={text:e.outvar in e.data?e.data[e.outvar]:e.fallback?e.fallback:""},t.handleClick=t.handleClick.bind(os(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(es,{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}))}}])&&ns(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),l}(e.Component);function ls(e){return ls="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},ls(e)}function ss(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 cs(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ss(Object(n),!0).forEach((function(t){var r,o,a;r=e,o=t,a=n[t],(o=ds(o))in r?Object.defineProperty(r,o,{value:a,enumerable:!0,configurable:!0,writable:!0}):r[o]=a})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ss(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function us(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,ds(r.key),r)}}function ds(e){var t=function(e,t){if("object"!==ls(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!==ls(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===ls(t)?t:String(t)}function fs(e,t){return fs=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},fs(e,t)}function ps(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ms(e){return ms=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},ms(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&&fs(e,t)}(l,t);var n,r,o,a,i=(o=l,a=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=ms(o);if(a){var n=ms(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"===ls(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return ps(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=i.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(ps(t)),t.props.target.construct(t.props.outvar,t.state.variant),t}return n=l,(r=[{key:"handleClick",value:function(e){this.setState(cs(cs({},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(es,{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))})))}}])&&us(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),l}(e.Component);function hs(e){return hs="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},hs(e)}function bs(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"!==hs(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!==hs(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(r.key),"symbol"===hs(o)?o:String(o)),r)}var o}function ys(e,t){return ys=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},ys(e,t)}function vs(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ws(e){return ws=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},ws(e)}var Es=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&&ys(e,t)}(l,t);var n,r,o,a,i=(o=l,a=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=ws(o);if(a){var n=ws(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"===hs(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return vs(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=i.call(this,e)).state={checked:e.outvar in e.data?!!e.data[e.outvar]:!!e.fallback},t.handleClick=t.handleClick.bind(vs(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(es,{id:this.props.id+"tooltip",tip:this.props.tip})))}}])&&bs(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),l}(e.Component);function xs(e){return xs="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},xs(e)}function Ss(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ks(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ss(Object(n),!0).forEach((function(t){var r,o,a;r=e,o=t,a=n[t],(o=Cs(o))in r?Object.defineProperty(r,o,{value:a,enumerable:!0,configurable:!0,writable:!0}):r[o]=a})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ss(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Os(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,Cs(r.key),r)}}function Cs(e){var t=function(e,t){if("object"!==xs(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!==xs(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===xs(t)?t:String(t)}function Ps(e,t){return Ps=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Ps(e,t)}function Ds(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Ns(e){return Ns=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Ns(e)}var Is=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&&Ps(e,t)}(l,t);var n,r,o,a,i=(o=l,a=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=Ns(o);if(a){var n=Ns(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"===xs(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Ds(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=i.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(Ds(t)),t.handleCheck=t.handleCheck.bind(Ds(t)),t.props.target.construct(t.props.outvar,t.state),t}return n=l,(r=[{key:"handleText",value:function(e){var t=ks(ks({},this.state),{},{text:e.target.value});this.setState(t),this.props.target.update(this.props.outvar,t)}},{key:"handleCheck",value:function(){var e=ks(ks({},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(es,{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}))}}])&&Os(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),l}(e.Component),_s={Radio:function(t,n,r,o){var a=o.title,i=o.variants,l=o.outvar,s=o.fallback,c=o.icon,u=o.tip;return e.createElement(gs,{target:t,title:a,variants:i,outvar:l,icon:c,tip:u,key:n,fallback:s,id:n,data:r})},Switch:function(t,n,r,o){var a=o.title,i=o.fallback,l=o.outvar,s=o.icon,c=o.tip;return e.createElement(Es,{target:t,title:a,fallback:i,outvar:l,icon:s,tip:c,key:n,id:n,data:r})},Line:function(t,n,r,o){var a=o.title,i=o.fallback,l=o.outvar,s=o.icon,c=o.tip;return e.createElement(is,{target:t,title:a,fallback:i,outvar:l,icon:s,tip:c,key:n,id:n,data:r})},SwitchLine:function(t,n,r,o){var a=o.title,i=o.fallback,l=o.outvar,s=o.icon,c=o.tip;return e.createElement(Is,{target:t,title:a,fallback:i,outvar:l,icon:s,tip:c,key:n,id:n,data:r})},Default:function(t,n){return e.createElement("div",{key:t+n,style:{background:"red"}},"UNIMPLEMENTED")}},Rs=function(e){return Object.prototype.toString.call(e).slice(8,-1).toLowerCase()};function Ts(e,t){var n=Rs(e),r={};return"array"===n?e.map((function(e,n){Object.assign(r,Ts(e,t))})):"object"===n&&("string"!==Rs(e.type)||"object"!==Rs(e.args)&&"array"!==Rs(e.items)?Object.assign(r,Ts((0,Vo.apply)(e,t),t)):e.type in _s?r[e.args.outvar]=t[e.args.outvar]:"Group"===e.type&&Object.assign(r,Ts((0,Vo.apply)(e.items,t),t))),r}const As={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};let js;const Ls=new Uint8Array(16);function Ms(){if(!js&&(js="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!js))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return js(Ls)}const Bs=[];for(let e=0;e<256;++e)Bs.push((e+256).toString(16).slice(1));const Fs=function(e,t,n){if(As.randomUUID&&!t&&!e)return As.randomUUID();const r=(e=e||{}).random||(e.rng||Ms)();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 Bs[e[t+0]]+Bs[e[t+1]]+Bs[e[t+2]]+Bs[e[t+3]]+"-"+Bs[e[t+4]]+Bs[e[t+5]]+"-"+Bs[e[t+6]]+Bs[e[t+7]]+"-"+Bs[e[t+8]]+Bs[e[t+9]]+"-"+Bs[e[t+10]]+Bs[e[t+11]]+Bs[e[t+12]]+Bs[e[t+13]]+Bs[e[t+14]]+Bs[e[t+15]]}(r)};var zs={eem:function(e){return e.options_data&&!1!==e.options_data.ext_pwr&&!1!==e.options_data.mono_eem?!0===e.options_data.ext_pwr?0:!0===e.options_data.mono_eem||"1 EEM"===e.options_data.n_eem?1:"3 EEM"===e.options_data.n_eem?3:e.consumes&&e.consumes.eem||0:e.consumes&&e.consumes.eem||0},clk:function(e){return e.options_data&&(!0===e.options_data.ext_clk||e.options_data.ext_clk&&!0===e.options_data.ext_clk.checked)?0:e.consumes&&e.consumes.clk||0},idc:function(e){return e.consumes&&e.consumes.idc||0},hp:function(e){return e.consumes&&e.consumes.hp||0}};function Us(e){return function(t,n){for(var r=0,o=n+1;o<t.length&&(r+=zs[e](t[o]),!t[o].resources||!t[o].resources.find((function(t,n){return t.name===e})));o++);return r}}var $s={eem:Us("eem"),clk:Us("clk"),idc:Us("idc"),hp:Us("hp")};function Ws(e){return Math.trunc(e/4)}function Hs(e){return Hs="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},Hs(e)}function Gs(e,t){if(e){if("string"==typeof e)return Vs(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)?Vs(e,t):void 0}}function Vs(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function qs(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ks(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?qs(Object(n),!0).forEach((function(t){var r,o,a;r=e,o=t,a=n[t],(o=function(e){var t=function(e,t){if("object"!==Hs(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!==Hs(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===Hs(t)?t:String(t)}(o))in r?Object.defineProperty(r,o,{value:a,enumerable:!0,configurable:!0,writable:!0}):r[o]=a})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):qs(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Qs={reminder:{priority:1,icon:"/images/shop/icon-reminder.svg",color:"black"},warning:{priority:2,icon:"/images/shop/icon-warning.svg",color:"#c75e5e"}},Ys=function(e,t){return e.find((function(e){return e.name===t}))},Xs=function(e){return function(t,n,r){var o=Ys(r,e);return o.occupied>o.max}},Js=function(e){return function(t,n,r){return zs[e](t[n])>0&&!function(e,t,n){return e.slice(0,t).find((function(e){return e.resources&&Ys(e.resources,n)}))}(t,n,e)}},Zs={eem_resource:{level:"warning",trigger:Xs("eem"),message:"Insufficient EEM connectors"},no_eem_source:{level:"warning",trigger:Js("eem"),message:"This card needs a card that provides a EEM connector (e.g. Kasli) at its left."},idc_resource:{level:"warning",trigger:Xs("idc"),message:"Insufficient IDC connectors."},no_idc_source:{level:"warning",trigger:Js("idc"),message:"Should be after a Zotino or a HD68-IDC or with another IDC-BNC."},clk_resource:{level:"warning",trigger:Xs("clk"),message:"Insufficient clock connectors."},no_clk_source:{level:"warning",trigger:Js("clk"),message:"This card needs either a card that provides a clock source (e.g. Kasli or Clocker) at its left or use an external clock source."},eem_wiring_constraint:{level:"reminder",trigger:("eem",function(e,t,n){var r=function(e,t,n){return e.slice(t+1).findIndex((function(e){return e.resources&&Ys(e.resources,n)}))+t+1}(e,t,"eem");return r-t==1}),message:"Due to wiring constraints, the carrier can only connect to EEM cards immediately at its right, without crossing another carrier."},default:{level:"warning",trigger:function(e,t,n){return!0},message:"This item has unimplemented warning"}};function ec(e){var t,n={priority:0,icon:null},r=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=Gs(e))){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,i=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return i=e.done,e},e:function(e){l=!0,a=e},f:function(){try{i||null==n.return||n.return()}finally{if(l)throw a}}}}(e);try{for(r.s();!(t=r.n()).done;){var o=t.value;Qs[o.level].priority>n.priority&&(n=Qs[o.level])}}catch(e){r.e(e)}finally{r.f()}return n}function tc(e){var t=Qs[e];return{icon:t.icon,color:t.color}}var nc={overfit:{message:"You have reached the maximum number of slots allowed for this crate. Consider removing cards.",level:"warning",trigger:function(e,t){var n=Cc.getState().crateParams(e.crate_mode).hp;return t>n&&n>0}},underfit_rack:{message:"The selected cards fit in a 42hp desktop crate, consider switching to it for a more compact system",level:"reminder",trigger:function(e,t){var n=Cc.getState().crate_modes.desktop.hp;return e.crate_mode===Cc.getState().crate_modes.rack.id&&t<n}}};function rc(e){var t=$s.hp(e.items,-1),n=[];return Object.entries(nc).forEach((function(r,o){var a,i,l=(i=2,function(e){if(Array.isArray(e))return e}(a=r)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],s=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return l}}(a,i)||Gs(a,i)||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.")}()),s=l[0],c=l[1];c.trigger(e,t)&&n.push(Ks(Ks({},c),{},{id:s,trigger:void 0}))})),[n,t]}function oc(e){return oc="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},oc(e)}function ac(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 ic(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ac(Object(n),!0).forEach((function(t){var r,o,a;r=e,o=t,a=n[t],(o=function(e){var t=function(e,t){if("object"!==oc(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!==oc(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===oc(t)?t:String(t)}(o))in r?Object.defineProperty(r,o,{value:a,enumerable:!0,configurable:!0,writable:!0}):r[o]=a})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ac(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function lc(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return sc(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)?sc(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,i=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return i=e.done,e},e:function(e){l=!0,a=e},f:function(){try{i||null==n.return||n.return()}finally{if(l)throw a}}}}function sc(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 cc(e){return JSON.stringify(Array.from(e.map((function(e,t){return{items:Array.from(e.items.map((function(e,t){return{pn:e.name_number,options:e.options_data&&e.options?Ts(e.options,e.options_data):null}}))),type:e.crate_mode}}))),null,2)}var uc={OK:0,Empty:1,Invalid:2};function dc(e){return e&&""!==e.trim()?e&&!e.match(/^\w+([\+\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/)?uc.Invalid:uc.OK:uc.Empty}function fc(e){return fc="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},fc(e)}function pc(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 mc(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?pc(Object(n),!0).forEach((function(t){var r,o,a;r=e,o=t,a=n[t],(o=function(e){var t=function(e,t){if("object"!==fc(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!==fc(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===fc(t)?t:String(t)}(o))in r?Object.defineProperty(r,o,{value:a,enumerable:!0,configurable:!0,writable:!0}):r[o]=a})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):pc(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function gc(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,a,i,l=[],s=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return l}}(e,t)||hc(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 hc(e,t){if(e){if("string"==typeof e)return bc(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)?bc(e,t):void 0}}function bc(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var yc,vc=function(e,t){return{cards:Uo.items,groups:Uo.columns.backlog,cards_list:$o,currency:Uo.currency,pn_to_cards:(n=Uo.items,r={},Object.entries(n).forEach((function(e,t){var n=gc(e,2),o=n[0],a=n[1];r[a.name_number]=o})),r),getCardDescription:function(e){return t().cards[t().cards_list[e]]},getCardDescriptionByPn:function(e){return t().cards[t().pn_to_cards[e]]},cardIndexById:function(e){return t().cards_list.findIndex((function(t){return e===t}))}};var n,r},wc=function(e,t){return{crate_modes:Uo.crateModes,modes_order:Uo.crateModeOrder,crateParams:function(e){return t().crate_modes[e]}}},Ec=function(e,t){return{isTouch:window.isTouchEnabled(),isMobile:window.deviceIsMobile(),sideMenuIsOpen:!1,showCardAddedFeedback:!1,timerAdded:null,switchSideMenu:function(){return e((function(e){return{sideMenuIsOpen:!e.sideMenuIsOpen}}))},cardAdded:function(){return e((function(e){return{showCardAddedFeedback:!0,timerAdded:(e.timerAdded?clearTimeout(e.timerAdded):null)||e.isMobile&&setTimeout((function(){t()._endCardAdded()}),2e3)}}))},_endCardAdded:function(){return e((function(e){return{showCardAddedFeedback:!1,timerAdded:e.timerAdded?clearTimeout(e.timerAdded):null}}))}}},xc=function(e,t){return{importShouldOpen:!1,importValue:{value:"",error:uc.OK},openImport:function(){return e((function(e){return{importShouldOpen:!0}}))},closeImport:function(){return e((function(e){return{importShouldOpen:!1}}))},loadDescription:function(){return e((function(e){return{importShouldOpen:!1,crates:(t=e.importValue.value,n=JSON.parse(t),r=Cc.getState().getCardDescriptionByPn,Array.from(n.map((function(e,t){return{id:"crate"+t,crate_mode:e.type,items:Array.from(e.items.map((function(e,t){return ic(ic({},r(e.pn)),{},{id:Fs(),options_data:e.options})}))),warnings:[],occupiedHP:0}}))))};var t,n,r}))},updateImportDescription:function(t){return e((function(e){return{importValue:{value:t,error:(n=t,n&&""!==n.trim()?n&&!function(e){var t;try{t=JSON.parse(e)}catch(e){return!1}var n=Cc.getState().crate_modes,r=Cc.getState().pn_to_cards;try{var o,a=lc(t);try{for(a.s();!(o=a.n()).done;){var i=o.value;if(!i.type||!i.items||!(i.type in n))return!1;var l,s=lc(i.items);try{for(s.s();!(l=s.n()).done;)if(!(l.value.pn in r))return!1}catch(e){s.e(e)}finally{s.f()}}}catch(e){a.e(e)}finally{a.f()}}catch(e){return!1}return!0}(n)?uc.Invalid:uc.OK:uc.Empty)}};var n}))}}},Sc=function(e,t){return{isProcessing:!1,shouldShowRFQFeedback:!1,processingResult:{status:uc.OK,message:""},API_RFQ:Uo.API_RFQ,email:{value:"",error:null},note:{value:"",error:uc.OK},description:"",shouldShowDescription:!1,updateEmail:function(t){return e((function(e){return{email:{value:t,error:dc(t)}}}))},updateNote:function(t){return e((function(e){return{note:{value:t,error:(n=t,n&&""!==n.trim()?uc.OK:uc.Empty)}};var n}))},resetEmailValidation:function(){return e((function(e){return{email:{value:e.email.value,error:uc.OK}}}))},_revalidateForm:function(){return e((function(e){return{email:{value:e.email.value,error:dc(e.email.value)},note:{value:e.note.value,error:dc(e.note.value)}}}))},updateDescription:function(){return e((function(e){return{description:cc(e.crates)}}))},showDescription:function(){return e((function(e){return{description:cc(e.crates),shouldShowDescription:!0}}))},closeDescription:function(){return e((function(e){return{shouldShowDescription:!1}}))},_submitForm:function(){return e((function(e){return{isProcessing:!0}}))},finishSubmitForm:function(t){return e((function(e){return{isProcessing:!1,shouldShowRFQFeedback:!0,processingResult:t}}))},submitDisabled:function(){return t().email.error!==uc.OK},submitForm:function(){t().updateDescription(),t()._revalidateForm(),t()._submitForm(),t().submitDisabled()||fetch(t().API_RFQ,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:t().email.value,note:t().note.value,configuration:t().description})}).then((function(e){if(200!==e.status)throw Error("Response status is not OK: "+e.status+".\n"+e);t().finishSubmitForm({status:uc.OK,message:"We've received your request and will be in contact soon."})})).catch((function(e){console.error("Request failed, reason:",e),t().finishSubmitForm({status:uc.Invalid,message:"We cannot receive your request. Try using the export by coping the configuration and send it to us at sales@m-labs.hk"})}))},closeRFQFeedback:function(){return e((function(e){return{shouldShowRFQFeedback:!1}}))}}},kc=function(e,t){return{highlighted:{crate:"",card:0},highlightedTimer:null,highlightCard:function(n,r){return e((function(e){return{highlighted:{crate:n,card:r},highlightedTimer:(e.highlightedTimer?clearTimeout(e.highlightedTimer):null)||e.isTouch&&setTimeout((function(){t().highlightReset()}),2e3)}}))},highlightReset:function(){return e((function(e){return{highlighted:{crate:"",card:0},highlightedTimer:e.highlightedTimer?clearTimeout(e.highlightedTimer):null}}))}}},Oc=function(e,t){return{crates:Uo.columns.crates,active_crate:"crate0",_newCrate:function(t){return e((function(e){return{crates:e.crates.concat({id:t||"crate"+e.crates.length,crate_mode:"rack",items:[],warnings:[],occupiedHP:0}),active_crate:t||"crate"+e.crates.length}}))},delCrate:function(t){return e((function(e){return{crates:e.crates.filter((function(e){return e.id!==t})),active_crate:e.active_crate===t?null:e.active_crate}}))},_setCrateMode:function(t,n){return e((function(e){return{crates:e.crates.map((function(e,r){return e.id===t?mc(mc({},e),{},{crate_mode:n}):e}))}}))},setActiveCrate:function(t){return e((function(e){return{active_crate:t}}))},_addCardFromBacklog:function(t,n,r){return e((function(e){var o=("array"===Rs(n)?n:[n]).map((function(t,n){return e.cards_list[t]})),a=t||e.active_crate;return a?{crates:e.crates.map((function(t,n){var i,l;return a===t.id?(r=null!=r?r:t.items.length,mc(mc({},t),{},{items:(i=t.items).toSpliced.apply(i,[r,0].concat((l=o.map((function(t,n){return mc(mc({},e.cards[t]),{},{id:Fs()})})),function(e){if(Array.isArray(e))return bc(e)}(l)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(l)||hc(l)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())))})):t}))}:{}}))},_moveCard:function(t,n,r,o){return e((function(e){var a=e.crates.find((function(e,n){return t===e.id})).items[n];return{crates:e.crates.map((function(e,i){if(r===t&&r===e.id){var l=Array.from(e.items);return delete l[n],mc(mc({},e),{},{items:l.toSpliced(o+1,0,a).filter((function(e,t){return!!e}))})}return r===e.id?mc(mc({},e),{},{items:e.items.toSpliced(o,0,a)}):t===e.id?mc(mc({},e),{},{items:e.items.toSpliced(o,1)}):e}))}}))},_deleteCard:function(t,n){return e((function(e){return{crates:e.crates.map((function(e,r){return t===e.id?mc(mc({},e),{},{items:e.items.toSpliced(n,1)}):e}))}}))},_clearCrate:function(t){return e((function(e){return{crates:e.crates.map((function(e,n){return t===e.id?mc(mc({},e),{},{items:[]}):e}))}}))},clearAll:function(){return e((function(e){return{crates:[]}}))},_updateOptions:function(t,n,r){return e((function(e){return{crates:e.crates.map((function(e,o){if(t===e.id){var a=Array.from(e.items);return a[n].options_data=mc(mc({},a[n].options_data),r),mc(mc({},e),{},{items:a})}return e}))}}))},fillWarnings:function(t){return e((function(e){return{crates:e.crates.map((function(e,n){if(t===e.id){var r=Array.from(e.items);r=function(e){return e.map((function(t,n){return t.warnings?(t.show_warnings=t.warnings.map((function(r,o){return Zs[r]?Zs[r].trigger(e,n,t.counted_resources)?Ks({trigger:void 0,name:r},Zs[r]):null:Zs.default})).filter((function(e,t){return!!e})),t):t}))}(r=function(e){return e.map((function(t,n){return t.counted_resources=function(e,t){if(!e[t].resources)return null;var n=[];return e[t].resources.forEach((function(r,o){$s[r.name]&&n.push({name:r.name,occupied:$s[r.name](e,t),max:r.max})})),n}(e,n),t}))}(r));var o=gc(rc(e),2),a=o[0],i=o[1];return mc(mc({},e),{},{items:r,warnings:a,occupiedHP:i})}return e}))}}))},totalOrderPrice:function(){var e=0;return t().crates.forEach((function(n,r){e+=t().crate_modes[n.crate_mode].price,n.items.forEach((function(t,n){e+=t.price}))})),e},newCrate:function(){var e="crate"+t().crates.length;t()._newCrate(e),t().fillWarnings(e)},setCrateMode:function(e,n){t()._setCrateMode(e,n),t().fillWarnings(e),t().setActiveCrate(e)},addCardFromBacklog:function(e,n,r,o){var a=e||t().active_crate;if(!a)return{};t()._addCardFromBacklog(a,n,r),t().fillWarnings(a),t().setActiveCrate(a),o||t().cardAdded()},moveCard:function(e,n,r,o){t()._moveCard(e,n,r,o),t().fillWarnings(r),t().setActiveCrate(r),e!==r&&t().fillWarnings(e)},deleteCard:function(e,n){t()._deleteCard(e,n),t().fillWarnings(e),e===t().highlighted.crate&&n===t().highlighted.card&&t().highlightReset()},clearCrate:function(e){t()._clearCrate(e),t().fillWarnings(e)},updateOptions:function(e,n,r){t()._updateOptions(e,n,r),t().fillWarnings(e)}}},Cc=(yc=function(){return mc(mc(mc(mc(mc(mc(mc({},vc.apply(void 0,arguments)),wc.apply(void 0,arguments)),Oc.apply(void 0,arguments)),Sc.apply(void 0,arguments)),Ec.apply(void 0,arguments)),kc.apply(void 0,arguments)),xc.apply(void 0,arguments))})?Mo(yc):Mo;function Pc(t){var n=t.aside,r=t.main,o=Cc((function(e){return{mobileSideMenuShouldOpen:e.sideMenuIsOpen,onClickToggleMobileSideMenu:e.switchSideMenu,showCardAddedFeedback:e.showCardAddedFeedback,isMobile:e.isMobile}})),a=o.mobileSideMenuShouldOpen,i=o.onClickToggleMobileSideMenu,l=o.showCardAddedFeedback;return e.createElement("div",{className:"layout"},e.createElement("aside",{className:"aside "+(a?"menu-opened":"")},n),a?e.createElement("section",{className:"main",onClick:i},r):e.createElement("section",{className:"main"},r),l?e.createElement("div",{className:"feedback-add-success"},"✓ added"):null)}function Dc(){return Dc=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},Dc.apply(this,arguments)}function Nc(t){var n=t.card_index,r=Cc((function(e){return{card:e.getCardDescription(n),currency:e.currency,onAddCard:e.addCardFromBacklog}})),o=r.card,a=r.currency,i=r.onAddCard,l=o.specs&&o.specs.length>0&&e.createElement("ul",null,o.specs.map((function(t,n){return e.createElement("li",{key:n},t)}))),s=o.datasheet_file&&o.datasheet_name&&e.createElement("div",{className:"ds"},e.createElement("span",{className:"doc-icon"}),e.createElement("a",{href:o.datasheet_file,target:"_blank",rel:"noopener noreferrer"},o.datasheet_name));return e.createElement("section",{className:"productItem"},e.createElement("div",{className:"content"},e.createElement("h3",{style:{marginBottom:o.name_codename?"5px":"20px"}},o.name),o.name_codename?e.createElement("p",null,o.name_codename):null,e.createElement("div",{className:"price"},"".concat(a," ").concat(Go(o.price))),l,s),e.createElement("div",{className:"content"},e.createElement("button",{onClick:function(){return i(null,n,null)}},e.createElement("img",{src:"/images/shop/icon-add.svg",alt:"add"})),e.createElement(co,{draggableId:o.id,index:n},(function(t,n){return e.createElement(e.Fragment,null,e.createElement("img",Dc({ref:t.innerRef},t.draggableProps,t.dragHandleProps,{style:Wo(t.draggableProps.style,n,!0),src:o.image})),n.isDragging&&e.createElement("img",{className:"simclone",src:o.image}))}))))}function Ic(){return Ic=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ic.apply(this,arguments)}function _c(){var t=Cc((function(e){return{data:e.groups,items:e.cards,onClickToggleMobileSideMenu:e.switchSideMenu,isMobile:e.isMobile}})),n=t.data,r=t.items,o=t.onClickToggleMobileSideMenu,a=t.isMobile,i=n.categories.map((function(e){return{name:e.name,items:e.itemIds.map((function(e){return r[e]}))}})),l=-1,s=i.map((function(t,n){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(n),"aria-expanded":"true","aria-controls":"collapse".concat(n)},t.name)),e.createElement("div",{id:"collapse".concat(n),className:"accordion-collapse collapse","aria-labelledby":"headingOne","data-bs-parent":"#accordion_categories"},e.createElement("div",{className:"accordion-body"},t.items.map((function(t){return l++,e.createElement(Nc,{card_index:l,key:t.id})})))))}));return e.createElement(Ro,{droppableId:n.id,isDropDisabled:!0},(function(t){return e.createElement("div",Ic({className:"backlog-container",ref:t.innerRef},t.droppableProps),a?e.createElement("div",{className:"mobileCloseMenu"},e.createElement("button",{onClick:o},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))}))}function Rc(t){var n=e.useRef(null),r=e.useRef(t);return e.useLayoutEffect((function(){r.current=t})),e.useEffect((function(){var e=function(e){var t=n.current;t&&!t.contains(e.target)&&r.current(e)};return document.addEventListener("mousedown",e),document.addEventListener("touchstart",e),function(){document.removeEventListener("mousedown",e),document.removeEventListener("touchstart",e)}}),[]),n}function Tc(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,a,i,l=[],s=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Ac(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)?Ac(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 Ac(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 jc(t){var n=t.id,r=t.options,o=t.data,a=Tc((0,e.useState)(!1),2),i=a[0],l=a[1],s=Tc((0,e.useState)({x:0,y:0}),2),c=s[0],u=s[1],d=Tc((0,e.useState)({w:0,h:0}),2),f=d[0],p=d[1],m=Ts(r,o),g=function(){l(!1),document.removeEventListener("scroll",y,!0)},h=Rc(g),b=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+f.w>window.innerWidth?u({x:r-f.w-20,y:o-f.h/2}):u({x:r-f.w/2,y:o-f.h-20})}else document.removeEventListener("scroll",y,!0)},y=function(e){e.target!==document.getElementById(n)&&g()};return(0,e.useEffect)((function(){if(i){var e=document.getElementById(n),t=e.offsetWidth,r=e.offsetHeight;p({w:t,h:r}),b()}}),[i]),(0,e.useEffect)((function(){i&&b()}),[i,f]),e.createElement("div",{ref:h},e.createElement("img",{className:"alert-info",src:i?"/images/shop/icon-close.svg":"/images/shop/icon-customize.svg",id:n+"img",onClick:function(e){l(!i),i||document.addEventListener("scroll",y,!0)}}),e.createElement("div",{style:{display:i?"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=Tc(e,2),r=n[0];return n[1],"ext_data"!==r})).map((function(t,r){var o=Tc(t,2),a=o[0],i=o[1];return e.createElement("p",{className:"card-text",key:n+a},e.createElement("i",null,a),": ",function(e){var t=Rs(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)}(i))}))))))}var Lc,Mc=["arrowProps","hasDoneInitialMeasure","show"];function Bc(){return Bc=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},Bc.apply(this,arguments)}function Fc(t){var n=t.warnings,r=t.prefix,o=ec(n);return e.createElement(Zl,{placement:"bottom",trigger:["click","hover","focus"],overlay:function(t){t.arrowProps,t.hasDoneInitialMeasure,t.show;var o=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(t,Mc);return e.createElement("div",Bc({className:"k-popup-warning"},o),n.map((function(t,n){return e.createElement("p",{className:"rule warning",key:"warnmsg_".concat(r,"_").concat(t.name)},e.createElement("i",null,t.message))})))},rootClose:!0},e.createElement("img",{className:"alert-warning",src:o.icon}))}function zc(t){var n=ec(t.warnings);return e.createElement("img",{className:"alert-warning align-self-start",src:n.icon})}function Uc(){var t=Cc((function(e){return{currency:e.currency,crates:e.crates,total_price:e.totalOrderPrice(),crateParams:e.crateParams,deleteCard:e.deleteCard,setHighlight:e.highlightCard,resetHighlight:e.highlightReset,highlighted:e.highlighted,clearAll:e.clearAll,clearCrate:e.clearCrate,delCrate:e.delCrate}})),n=t.currency,r=t.crates,o=t.total_price,a=t.crateParams,i=t.deleteCard,l=t.setHighlight,s=t.resetHighlight,c=t.highlighted,u=t.clearCrate,d=t.delCrate,f=t.clearAll;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:f},e.createElement("img",{src:"/images/shop/icon-remove.svg"}))))),r.map((function(t,r){var o=a(t.crate_mode);return e.createElement("tbody",{key:"summary_crate_body"+t.id},e.createElement("tr",{key:"summary_crate_"+t.id},e.createElement("td",{className:"item-card-name"},o.name),e.createElement("td",{className:"price"},e.createElement("div",{className:"d-inline-flex"},"".concat(n," ").concat(Go(o.price)),e.createElement("button",{onClick:function(){return u(t.id)}},e.createElement("img",{src:"/images/shop/icon-clear.svg",alt:"empty crate"})),e.createElement("button",{onClick:function(){return d(t.id)}},e.createElement("img",{src:"/images/shop/icon-remove.svg",alt:"remove crate"}))))),t.items.map((function(r,o){var a=r&&r.options,u=r&&r.options_data,d=r&&r.show_warnings,f=t.id===c.crate&&o===c.card;return e.createElement("tr",{key:"summary_crate_"+t.id+r.id,className:"hoverable ".concat(f?"selected":""),onClick:function(){return l(t.id,o)},onMouseEnter:function(){return l(t.id,o)},onMouseLeave:function(){return s()}},e.createElement("td",{className:"item-card-name"},e.createElement("span",{style:{display:"inline-block",width:"16px"}}," "),e.createElement("div",null,"".concat(r.name_number," ").concat(r.name," ").concat(r.name_codename))),e.createElement("td",{className:"price"},e.createElement("div",{className:"d-inline-flex align-content-center"},"".concat(n," ").concat(Go(r.price)),e.createElement("button",{onClick:function(){return i(t.id,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"},d&&d.length>0?e.createElement(zc,{warnings:d}):e.createElement("span",{style:{display:"inline-block",width:"20px"}}," "),a&&u?e.createElement(jc,{id:r.id+"options",options:a,data:u}):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,n," ",Go(o),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"}}," "))))))}function $c(e){if((!Lc&&0!==Lc||e)&&ji){var t=document.createElement("div");t.style.position="absolute",t.style.top="-9999px",t.style.width="50px",t.style.height="50px",t.style.overflow="scroll",document.body.appendChild(t),Lc=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return Lc}function Wc(e){void 0===e&&(e=$i());try{var t=e.activeElement;return t&&t.nodeName?t:null}catch(t){return e.body}}const Hc="data-rr-ui-modal-open",Gc=class{constructor({ownerDocument:e,handleContainerOverflow:t=!0,isRTL:n=!1}={}){this.handleContainerOverflow=t,this.isRTL=n,this.modals=[],this.ownerDocument=e}getScrollbarWidth(){return function(e=document){const t=e.defaultView;return Math.abs(t.innerWidth-e.documentElement.clientWidth)}(this.ownerDocument)}getElement(){return(this.ownerDocument||document).body}setModalAttributes(e){}removeModalAttributes(e){}setContainerStyle(e){const t={overflow:"hidden"},n=this.isRTL?"paddingLeft":"paddingRight",r=this.getElement();e.style={overflow:r.style.overflow,[n]:r.style[n]},e.scrollBarWidth&&(t[n]=`${parseInt(zl(r,n)||"0",10)+e.scrollBarWidth}px`),r.setAttribute(Hc,""),zl(r,t)}reset(){[...this.modals].forEach((e=>this.remove(e)))}removeContainerStyle(e){const t=this.getElement();t.removeAttribute(Hc),Object.assign(t.style,e.style)}add(e){let t=this.modals.indexOf(e);return-1!==t||(t=this.modals.length,this.modals.push(e),this.setModalAttributes(e),0!==t||(this.state={scrollBarWidth:this.getScrollbarWidth(),style:{}},this.handleContainerOverflow&&this.setContainerStyle(this.state))),t}remove(e){const t=this.modals.indexOf(e);-1!==t&&(this.modals.splice(t,1),!this.modals.length&&this.handleContainerOverflow&&this.removeContainerStyle(this.state),this.removeModalAttributes(e))}isTopModal(e){return!!this.modals.length&&this.modals[this.modals.length-1]===e}},Vc=["show","role","className","style","children","backdrop","keyboard","onBackdropClick","onEscapeKeyDown","transition","runTransition","backdropTransition","runBackdropTransition","autoFocus","enforceFocus","restoreFocus","restoreFocusOptions","renderDialog","renderBackdrop","manager","container","onShow","onHide","onExit","onExited","onExiting","onEnter","onEntering","onEntered"];let qc;const Kc=(0,e.forwardRef)(((t,n)=>{let{show:o=!1,role:a="dialog",className:i,style:l,children:s,backdrop:c=!0,keyboard:u=!0,onBackdropClick:d,onEscapeKeyDown:f,transition:p,runTransition:m,backdropTransition:g,runBackdropTransition:h,autoFocus:b=!0,enforceFocus:y=!0,restoreFocus:v=!0,restoreFocusOptions:w,renderDialog:E,renderBackdrop:x=(e=>(0,al.jsx)("div",Object.assign({},e))),manager:S,container:k,onShow:O,onHide:C=(()=>{}),onExit:P,onExited:D,onExiting:N,onEnter:I,onEntering:_,onEntered:R}=t,T=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(t,Vc);const A=Ji(),j=el(k),L=function(t){const n=Ji(),r=t||function(e){return qc||(qc=new Gc({ownerDocument:null==e?void 0:e.document})),qc}(n),o=(0,e.useRef)({dialog:null,backdrop:null});return Object.assign(o.current,{add:()=>r.add(o.current),remove:()=>r.remove(o.current),isTopModal:()=>r.isTopModal(o.current),setDialogRef:(0,e.useCallback)((e=>{o.current.dialog=e}),[]),setBackdropRef:(0,e.useCallback)((e=>{o.current.backdrop=e}),[])})}(S),M=Yo(),B=function(t){const n=(0,e.useRef)(null);return(0,e.useEffect)((()=>{n.current=t})),n.current}(o),[F,z]=(0,e.useState)(!o),U=(0,e.useRef)(null);(0,e.useImperativeHandle)(n,(()=>L),[L]),ji&&!B&&o&&(U.current=Wc(null==A?void 0:A.document)),o&&F&&z(!1);const $=Hi((()=>{if(L.add(),K.current=Ui(document,"keydown",V),q.current=Ui(document,"focus",(()=>setTimeout(H)),!0),O&&O(),b){var e,t;const n=Wc(null!=(e=null==(t=L.dialog)?void 0:t.ownerDocument)?e:null==A?void 0:A.document);L.dialog&&n&&!qo(L.dialog,n)&&(U.current=n,L.dialog.focus())}})),W=Hi((()=>{var e;L.remove(),null==K.current||K.current(),null==q.current||q.current(),v&&(null==(e=U.current)||null==e.focus||e.focus(w),U.current=null)}));(0,e.useEffect)((()=>{o&&j&&$()}),[o,j,$]),(0,e.useEffect)((()=>{F&&W()}),[F,W]),Xo((()=>{W()}));const H=Hi((()=>{if(!y||!M()||!L.isTopModal())return;const e=Wc(null==A?void 0:A.document);L.dialog&&e&&!qo(L.dialog,e)&&L.dialog.focus()})),G=Hi((e=>{e.target===e.currentTarget&&(null==d||d(e),!0===c&&C())})),V=Hi((e=>{u&&Ki(e)&&L.isTopModal()&&(null==f||f(e),e.defaultPrevented||C())})),q=(0,e.useRef)(),K=(0,e.useRef)();if(!j)return null;const Q=Object.assign({role:a,ref:L.setDialogRef,"aria-modal":"dialog"===a||void 0},T,{style:l,className:i,tabIndex:-1});let Y=E?E(Q):(0,al.jsx)("div",Object.assign({},Q,{children:e.cloneElement(s,{role:"document"})}));Y=ll(p,m,{unmountOnExit:!0,mountOnEnter:!0,appear:!0,in:!!o,onExit:P,onExiting:N,onExited:(...e)=>{z(!0),null==D||D(...e)},onEnter:I,onEntering:_,onEntered:R,children:Y});let X=null;return c&&(X=x({ref:L.setBackdropRef,onClick:G}),X=ll(g,h,{in:!!o,appear:!0,mountOnEnter:!0,unmountOnExit:!0,children:X})),(0,al.jsx)(al.Fragment,{children:r.createPortal((0,al.jsxs)(al.Fragment,{children:[X,Y]}),j)})}));Kc.displayName="Modal";const Qc=Object.assign(Kc,{Manager:Gc});var Yc=Function.prototype.bind.call(Function.prototype.call,[].slice);function Xc(e,t){return Yc(e.querySelectorAll(t))}function Jc(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}const Zc=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",eu=".sticky-top",tu=".navbar-toggler";class nu extends Gc{adjustAndStore(e,t,n){const r=t.style[e];t.dataset[e]=r,zl(t,{[e]:`${parseFloat(zl(t,e))+n}px`})}restore(e,t){const n=t.dataset[e];void 0!==n&&(delete t.dataset[e],zl(t,{[e]:n}))}setContainerStyle(e){super.setContainerStyle(e);const t=this.getElement();var n,r;if(r="modal-open",(n=t).classList?n.classList.add(r):ul(n,r)||("string"==typeof n.className?n.className=n.className+" "+r:n.setAttribute("class",(n.className&&n.className.baseVal||"")+" "+r)),!e.scrollBarWidth)return;const o=this.isRTL?"paddingLeft":"paddingRight",a=this.isRTL?"marginLeft":"marginRight";Xc(t,Zc).forEach((t=>this.adjustAndStore(o,t,e.scrollBarWidth))),Xc(t,eu).forEach((t=>this.adjustAndStore(a,t,-e.scrollBarWidth))),Xc(t,tu).forEach((t=>this.adjustAndStore(a,t,e.scrollBarWidth)))}removeContainerStyle(e){super.removeContainerStyle(e);const t=this.getElement();var n,r;r="modal-open",(n=t).classList?n.classList.remove(r):"string"==typeof n.className?n.className=Jc(n.className,r):n.setAttribute("class",Jc(n.className&&n.className.baseVal||"",r));const o=this.isRTL?"paddingLeft":"paddingRight",a=this.isRTL?"marginLeft":"marginRight";Xc(t,Zc).forEach((e=>this.restore(o,e))),Xc(t,eu).forEach((e=>this.restore(a,e))),Xc(t,tu).forEach((e=>this.restore(a,e)))}}let ru;const ou=e.forwardRef((({className:e,bsPrefix:t,as:n="div",...r},o)=>(t=ml(t,"modal-body"),(0,al.jsx)(n,{ref:o,className:ca()(e,t),...r}))));ou.displayName="ModalBody";const au=ou,iu=e.createContext({onHide(){}}),lu=e.forwardRef((({bsPrefix:e,className:t,contentClassName:n,centered:r,size:o,fullscreen:a,children:i,scrollable:l,...s},c)=>{const u=`${e=ml(e,"modal")}-dialog`,d="string"==typeof a?`${e}-fullscreen-${a}`:`${e}-fullscreen`;return(0,al.jsx)("div",{...s,ref:c,className:ca()(u,t,o&&`${e}-${o}`,r&&`${u}-centered`,l&&`${u}-scrollable`,a&&d),children:(0,al.jsx)("div",{className:ca()(`${e}-content`,n),children:i})})}));lu.displayName="ModalDialog";const su=lu,cu=e.forwardRef((({className:e,bsPrefix:t,as:n="div",...r},o)=>(t=ml(t,"modal-footer"),(0,al.jsx)(n,{ref:o,className:ca()(e,t),...r}))));cu.displayName="ModalFooter";const uu=cu,du={"aria-label":Qo().string,onClick:Qo().func,variant:Qo().oneOf(["white"])},fu=e.forwardRef((({className:e,variant:t,"aria-label":n="Close",...r},o)=>(0,al.jsx)("button",{ref:o,type:"button",className:ca()("btn-close",t&&`btn-close-${t}`,e),"aria-label":n,...r})));fu.displayName="CloseButton",fu.propTypes=du;const pu=fu,mu=e.forwardRef((({closeLabel:t="Close",closeVariant:n,closeButton:r=!1,onHide:o,children:a,...i},l)=>{const s=(0,e.useContext)(iu),c=Hi((()=>{null==s||s.onHide(),null==o||o()}));return(0,al.jsxs)("div",{ref:l,...i,children:[a,r&&(0,al.jsx)(pu,{"aria-label":t,variant:n,onClick:c})]})})),gu=mu,hu=e.forwardRef((({bsPrefix:e,className:t,closeLabel:n="Close",closeButton:r=!1,...o},a)=>(e=ml(e,"modal-header"),(0,al.jsx)(gu,{ref:a,...o,className:ca()(t,e),closeLabel:n,closeButton:r}))));hu.displayName="ModalHeader";const bu=hu,yu=("h4",e.forwardRef(((e,t)=>(0,al.jsx)("div",{...e,ref:t,className:ca()(e.className,"h4")}))));const vu=e.forwardRef((({className:e,bsPrefix:t,as:n=yu,...r},o)=>(t=ml(t,"modal-title"),(0,al.jsx)(n,{ref:o,className:ca()(e,t),...r}))));vu.displayName="ModalTitle";const wu=vu;function Eu(e){return(0,al.jsx)(Ql,{...e,timeout:null})}function xu(e){return(0,al.jsx)(Ql,{...e,timeout:null})}const Su=e.forwardRef((({bsPrefix:t,className:n,style:r,dialogClassName:o,contentClassName:a,children:i,dialogAs:l=su,"aria-labelledby":s,"aria-describedby":c,"aria-label":u,show:d=!1,animation:f=!0,backdrop:p=!0,keyboard:m=!0,onEscapeKeyDown:g,onShow:h,onHide:b,container:y,autoFocus:v=!0,enforceFocus:w=!0,restoreFocus:E=!0,restoreFocusOptions:x,onEntered:S,onExit:k,onExiting:O,onEnter:C,onEntering:P,onExited:D,backdropClassName:N,manager:I,..._},R)=>{const[T,A]=(0,e.useState)({}),[j,L]=(0,e.useState)(!1),M=(0,e.useRef)(!1),B=(0,e.useRef)(!1),F=(0,e.useRef)(null),[z,U]=ua(),$=la(R,U),W=Hi(b),H=gl();t=ml(t,"modal");const G=(0,e.useMemo)((()=>({onHide:W})),[W]);function V(){return I||function(e){return ru||(ru=new nu(e)),ru}({isRTL:H})}function q(e){if(!ji)return;const t=V().getScrollbarWidth()>0,n=e.scrollHeight>$i(e).documentElement.clientHeight;A({paddingRight:t&&!n?$c():void 0,paddingLeft:!t&&n?$c():void 0})}const K=Hi((()=>{z&&q(z.dialog)}));Xo((()=>{zi(window,"resize",K),null==F.current||F.current()}));const Q=()=>{M.current=!0},Y=e=>{M.current&&z&&e.target===z.dialog&&(B.current=!0),M.current=!1},X=()=>{L(!0),F.current=Ul(z.dialog,(()=>{L(!1)}))},J=e=>{"static"!==p?B.current||e.target!==e.currentTarget?B.current=!1:null==b||b():(e=>{e.target===e.currentTarget&&X()})(e)},Z=(0,e.useCallback)((e=>(0,al.jsx)("div",{...e,className:ca()(`${t}-backdrop`,N,!f&&"show")})),[f,N,t]),ee={...r,...T};return ee.display="block",(0,al.jsx)(iu.Provider,{value:G,children:(0,al.jsx)(Qc,{show:d,ref:$,backdrop:p,container:y,keyboard:!0,autoFocus:v,enforceFocus:w,restoreFocus:E,restoreFocusOptions:x,onEscapeKeyDown:e=>{m?null==g||g(e):(e.preventDefault(),"static"===p&&X())},onShow:h,onHide:b,onEnter:(e,t)=>{e&&q(e),null==C||C(e,t)},onEntering:(e,t)=>{null==P||P(e,t),Fi(window,"resize",K)},onEntered:S,onExit:e=>{null==F.current||F.current(),null==k||k(e)},onExiting:O,onExited:e=>{e&&(e.style.display=""),null==D||D(e),zi(window,"resize",K)},manager:V(),transition:f?Eu:void 0,backdropTransition:f?xu:void 0,renderBackdrop:Z,renderDialog:e=>(0,al.jsx)("div",{role:"dialog",...e,style:ee,className:ca()(n,t,j&&`${t}-static`,!f&&"show"),onClick:p?J:void 0,onMouseUp:Y,"aria-label":u,"aria-labelledby":s,"aria-describedby":c,children:(0,al.jsx)(l,{..._,onMouseDown:Q,className:o,contentClassName:a,children:i})})})})}));Su.displayName="Modal";const ku=Object.assign(Su,{Body:au,Header:bu,Title:wu,Footer:uu,Dialog:su,TRANSITION_DURATION:300,BACKDROP_TRANSITION_DURATION:150});function Ou(){var t=Cc((function(e){return{shouldShow:e.shouldShowDescription,description:e.description,closeDescription:e.closeDescription,showDescription:e.showDescription}})),n=t.shouldShow,r=t.description,o=t.showDescription,a=t.closeDescription,i=Rc((function(e){"mousedown"===e.type&&a()}));return e.createElement(e.Fragment,null,e.createElement("input",{className:"btn btn-outline-primary w-100 m-0 mb-2 mb-sm-0 me-sm-2",style:{cursor:"pointer",fontWeight:"700"},defaultValue:"Show JSON",onClick:o,readOnly:!0}),e.createElement(ku,{show:n,animation:!0,centered:!0},e.createElement(ku.Body,{ref:i,className:"rfqFeedback"},e.createElement("textarea",{value:r,className:"form-control w-100",rows:10,readOnly:!0,placeholder:"There should be description of the crate"}),e.createElement("div",{className:"d-flex flex-column flex-sm-row justify-content-end"},e.createElement("a",{type:"button",onClick:a,className:"btn btn-sm btn-outline-primary m-0 mb-1 mt-2 mb-sm-0 me-sm-2"},"Close")))))}function Cu(){var t=Cc((function(e){return{email:e.email,note:e.note,isProcessing:e.isProcessing,updateEmail:e.updateEmail,updateNote:e.updateNote,submitForm:e.submitForm,submitDisabled:e.submitDisabled,resetEmailValidation:e.resetEmailValidation}})),n=t.email,r=t.note,o=t.isProcessing,a=t.updateEmail,i=t.updateNote,l=t.resetEmailValidation,s=t.submitForm,c=t.submitDisabled;return e.createElement("div",{className:"summary-form"},e.createElement("form",{onSubmit:s,noValidate:!0},e.createElement("input",{className:"".concat(n.error>0?"errorField":""),type:"email",placeholder:"Email",onFocus:l,onChange:function(e){return a(e.target.value)},onBlur:function(e){return a(e.target.value)},value:n.value}),n.error===uc.Empty?e.createElement("div",{className:"error"},e.createElement("small",null,"Required")):null,n.error===uc.Invalid?e.createElement("div",{className:"error"},e.createElement("small",null,"Your email is incomplete")):null,e.createElement("textarea",{onChange:function(e){return i(e.target.value)},defaultValue:r.value,rows:"5",placeholder:"Additional notes"}),e.createElement("div",{className:"d-flex flex-column flex-sm-row justify-content-between"},e.createElement(Ou,null),e.createElement("input",{className:"btn btn-primary w-100 m-0 ms-sm-2",type:"submit",disabled:c(),value:"".concat(o?"Processing ...":"Request quote")}))))}const Pu=function(...e){return e.filter((e=>null!=e)).reduce(((e,t)=>{if("function"!=typeof t)throw new Error("Invalid Argument Type, must only provide functions, undefined, or null.");return null===e?t:function(...n){e.apply(this,n),t.apply(this,n)}}),null)},Du={height:["marginTop","marginBottom"],width:["marginLeft","marginRight"]};function Nu(e,t){const n=t[`offset${e[0].toUpperCase()}${e.slice(1)}`],r=Du[e];return n+parseInt(zl(t,r[0]),10)+parseInt(zl(t,r[1]),10)}const Iu={[Nl]:"collapse",[Rl]:"collapsing",[Il]:"collapsing",[_l]:"collapse show"},_u=e.forwardRef((({onEnter:t,onEntering:n,onEntered:r,onExit:o,onExiting:a,className:i,children:l,dimension:s="height",in:c=!1,timeout:u=300,mountOnEnter:d=!1,unmountOnExit:f=!1,appear:p=!1,getDimensionValue:m=Nu,...g},h)=>{const b="function"==typeof s?s():s,y=(0,e.useMemo)((()=>Pu((e=>{e.style[b]="0"}),t)),[b,t]),v=(0,e.useMemo)((()=>Pu((e=>{const t=`scroll${b[0].toUpperCase()}${b.slice(1)}`;e.style[b]=`${e[t]}px`}),n)),[b,n]),w=(0,e.useMemo)((()=>Pu((e=>{e.style[b]=null}),r)),[b,r]),E=(0,e.useMemo)((()=>Pu((e=>{e.style[b]=`${m(b,e)}px`,Hl(e)}),o)),[o,m,b]),x=(0,e.useMemo)((()=>Pu((e=>{e.style[b]=null}),a)),[b,a]);return(0,al.jsx)(Vl,{ref:h,addEndListener:Wl,...g,"aria-expanded":g.role?c:null,onEnter:y,onEntering:v,onEntered:w,onExit:E,onExiting:x,childRef:l.ref,in:c,timeout:u,mountOnEnter:d,unmountOnExit:f,appear:p,children:(t,n)=>e.cloneElement(l,{...n,className:ca()(i,l.props.className,Iu[t],"width"===b&&"collapse-horizontal")})})})),Ru=_u;function Tu(e,t){return Array.isArray(e)?e.includes(t):e===t}const Au=e.createContext({});Au.displayName="AccordionContext";const ju=Au,Lu=e.forwardRef((({as:t="div",bsPrefix:n,className:r,children:o,eventKey:a,...i},l)=>{const{activeEventKey:s}=(0,e.useContext)(ju);return n=ml(n,"accordion-collapse"),(0,al.jsx)(Ru,{ref:l,in:Tu(s,a),...i,className:ca()(r,n),children:(0,al.jsx)(t,{children:e.Children.only(o)})})}));Lu.displayName="AccordionCollapse";const Mu=Lu,Bu=e.createContext({eventKey:""});Bu.displayName="AccordionItemContext";const Fu=Bu,zu=e.forwardRef((({as:t="div",bsPrefix:n,className:r,onEnter:o,onEntering:a,onEntered:i,onExit:l,onExiting:s,onExited:c,...u},d)=>{n=ml(n,"accordion-body");const{eventKey:f}=(0,e.useContext)(Fu);return(0,al.jsx)(Mu,{eventKey:f,onEnter:o,onEntering:a,onEntered:i,onExit:l,onExiting:s,onExited:c,children:(0,al.jsx)(t,{ref:d,...u,className:ca()(r,n)})})}));zu.displayName="AccordionBody";const Uu=zu,$u=e.forwardRef((({as:t="button",bsPrefix:n,className:r,onClick:o,...a},i)=>{n=ml(n,"accordion-button");const{eventKey:l}=(0,e.useContext)(Fu),s=function(t,n){const{activeEventKey:r,onSelect:o,alwaysOpen:a}=(0,e.useContext)(ju);return e=>{let i=t===r?null:t;a&&(i=Array.isArray(r)?r.includes(t)?r.filter((e=>e!==t)):[...r,t]:[t]),null==o||o(i,e),null==n||n(e)}}(l,o),{activeEventKey:c}=(0,e.useContext)(ju);return"button"===t&&(a.type="button"),(0,al.jsx)(t,{ref:i,onClick:s,...a,"aria-expanded":Array.isArray(c)?c.includes(l):l===c,className:ca()(r,n,!Tu(c,l)&&"collapsed")})}));$u.displayName="AccordionButton";const Wu=$u,Hu=e.forwardRef((({as:e="h2",bsPrefix:t,className:n,children:r,onClick:o,...a},i)=>(t=ml(t,"accordion-header"),(0,al.jsx)(e,{ref:i,...a,className:ca()(n,t),children:(0,al.jsx)(Wu,{onClick:o,children:r})}))));Hu.displayName="AccordionHeader";const Gu=Hu,Vu=e.forwardRef((({as:t="div",bsPrefix:n,className:r,eventKey:o,...a},i)=>{n=ml(n,"accordion-item");const l=(0,e.useMemo)((()=>({eventKey:o})),[o]);return(0,al.jsx)(Fu.Provider,{value:l,children:(0,al.jsx)(t,{ref:i,...a,className:ca()(r,n)})})}));Vu.displayName="AccordionItem";const qu=Vu,Ku=e.forwardRef(((t,n)=>{const{as:r="div",activeKey:o,bsPrefix:a,className:i,onSelect:l,flush:s,alwaysOpen:c,...u}=function(e,t){return Object.keys(t).reduce((function(n,r){var o,a=n,i=a[ra(r)],l=a[r],s=C(a,[ra(r),r].map(oa)),c=t[r],u=aa(l,i,e[c]),d=u[0],f=u[1];return O({},s,((o={})[r]=d,o[c]=f,o))}),e)}(t,{activeKey:"onSelect"}),d=ml(a,"accordion"),f=(0,e.useMemo)((()=>({activeEventKey:o,onSelect:l,alwaysOpen:c})),[o,l,c]);return(0,al.jsx)(ju.Provider,{value:f,children:(0,al.jsx)(r,{ref:n,...u,className:ca()(i,d,s&&`${d}-flush`)})})}));Ku.displayName="Accordion";const Qu=Object.assign(Ku,{Button:Wu,Collapse:Mu,Item:qu,Header:Gu,Body:Uu});function Yu(t){var n=t.options,r=t.data,o=t.target,a=t.id,i=Rs(n);return"array"===i?Array.from(n.map((function(e,t){return Yu({options:e,data:r,target:o,id:a+t})}))):"object"===i?"string"!==Rs(n.type)||"object"!==Rs(n.args)&&"array"!==Rs(n.items)?Yu({options:(0,Vo.apply)(n,r),data:r,target:o,id:a}):n.type in _s?_s[n.type](o,a+n.type,r,n.args):"Group"===n.type?e.createElement("div",{className:"border rounded",key:a+"group"},Yu({options:(0,Vo.apply)(n.items,r),data:r,target:o,id:a})):_s.Default(n.type,a+"missing"):void 0}function Xu(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 Ju(t){var n,r,o=t.options,a=t.data,i=t.target,l=t.id,s=t.big,c=t.first,u=t.last,d=t.options_class,f=(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,a,i,l=[],s=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return l}}(n,r)||function(e,t){if(e){if("string"==typeof e)return Xu(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)?Xu(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=f[0],m=f[1],g=Rc((function(e){"mousedown"===e.type&&m(!1)})),h="overlayVariant border rounded ".concat(s?"overlay-bigcard":"overlay-smallcard"," ").concat(!s&&c?"overlay-first":""," ").concat(!s&&u?"overlay-last":""," ").concat(d||"");return e.createElement("div",{ref:g},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:h},e.createElement(Yu,{options:o,data:a,key:"processed_options_"+l,id:"processed_options_"+l,target:i})))}var Zu=["arrowProps","hasDoneInitialMeasure","show"];function ed(e){return ed="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},ed(e)}function td(){return td=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},td.apply(this,arguments)}function nd(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 rd(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?nd(Object(n),!0).forEach((function(t){var r,o,a;r=e,o=t,a=n[t],(o=function(e){var t=function(e,t){if("object"!==ed(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!==ed(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===ed(t)?t:String(t)}(o))in r?Object.defineProperty(r,o,{value:a,enumerable:!0,configurable:!0,writable:!0}):r[o]=a})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):nd(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var od=function(e,t){return{width:"".concat(Math.min(100*e/t,100),"%")}};function ad(t){var n=t.occupied,r=t.max;return e.createElement("div",{className:"nbr-connectors",key:Fs()},e.createElement("div",{style:rd({},od(n,r))}))}var id={eem:ad,clk:function(t){var n=t.occupied,r=t.max;return e.createElement("div",{className:"nbr-clocks",key:Fs()},e.createElement("div",{style:rd({},od(n,r))}))},idc:ad},ld={eem:function(t){var n=t.occupied,r=t.max;return e.createElement("p",{key:Fs()},"".concat(n,"/").concat(r," EEM connectors used"))},clk:function(t){var n=t.occupied,r=t.max;return e.createElement("p",{key:Fs()},"".concat(n,"/").concat(r," clock connectors used"))},idc:function(t){var n=t.occupied,r=t.max;return e.createElement("p",{key:Fs()},"".concat(n,"/").concat(r," IDC connectors used"))}};function sd(e){var t=e.resources,n=e.library;if(!t)return null;var r=[];return t.forEach((function(e,t){n[e.name]&&r.push(n[e.name](e))})),r}function cd(t){var n=t.resources;return e.createElement(Zl,{placement:"top",trigger:["click","hover","focus"],overlay:function(t){t.arrowProps,t.hasDoneInitialMeasure,t.show;var r=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(t,Zu);return e.createElement("div",td({className:"k-popup-connectors"},r),e.createElement(sd,{resources:n,library:ld}))},rootClose:!0},e.createElement("div",{className:"progress-container"},e.createElement(sd,{resources:n,library:id})))}function ud(e){return ud="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},ud(e)}function dd(){return dd=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},dd.apply(this,arguments)}function fd(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 pd(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?fd(Object(n),!0).forEach((function(t){md(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):fd(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function md(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==ud(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!==ud(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===ud(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function gd(t){var n,r,o=t.card_index,a=t.crate_index,i=t.ext_data,l=t.first,s=t.last,c=Cc((function(e){return{card:e.crates[a].items[o],highlighted:e.crates[a].id===e.highlighted.crate&&o===e.highlighted.card,crate:e.crates[a],setHighlight:e.highlightCard,removeHighlight:e.highlightReset,onCardUpdate:e.updateOptions,onCardRemove:e.deleteCard}})),u=c.card,d=c.crate,f=c.highlighted,p=c.setHighlight,m=c.removeHighlight,g=c.onCardUpdate,h=c.onCardRemove,b=u&&u.show_warnings,y=u&&u.counted_resources;return u&&u.options&&(n=u.options,u.options_data||(u.options_data={}),(r=u.options_data).ext_data=i),e.createElement(co,{draggableId:u.id,index:o},(function(t,a){return e.createElement("div",dd({ref:t.innerRef},t.draggableProps,t.dragHandleProps,{style:pd({},Wo(t.draggableProps.style,a,!0,!!f,!1,!0)),onMouseEnter:function(){return p(d.id,o)},onMouseLeave:m}),e.createElement("div",{className:"progress-container warning d-flex justify-content-evenly"},b&&b.length>0&&e.createElement(Fc,{warnings:b,prefix:o}),n&&e.createElement(Ju,{options:n,data:r,options_class:u.options_class,key:"popover"+o,id:"popover"+o,big:"big"===u.size,first:l,last:s,target:{construct:function(e,t){r[e]=t},update:function(e,t){e in r&&(r[e]=t),g(d.id,o,md({},e,t))}}})),e.createElement("h6",null,u.name_number),e.createElement("div",{onMouseEnter:function(){return p(d.id,o)},onClick:function(){return p(d.id,o)}},e.createElement("img",{className:"item-cart",src:u.image})),e.createElement("div",{style:{display:f?"flex":"none"},className:"overlayRemove",onClick:function(){return h(d.id,o)}},e.createElement("img",{src:"/images/shop/icon-remove.svg",alt:"rm"}),e.createElement("p",null,"Remove")),y&&e.createElement(cd,{resources:y}))}))}function hd(t){for(var n=t.isDraggingOver,r=[],o=t.nToDraw;o>0;o--)r.push(e.createElement("div",{key:o,style:{display:n?"none":"block",border:"1px dashed #ccc",width:"45px",marginBottom:"5px"}}));return e.createElement(e.Fragment,null,r)}function bd(){return bd=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},bd.apply(this,arguments)}function yd(t){var n=t.crate_index,r=Cc((function(e){return{crate:e.crates[n],crateParams:e.crateParams}})),o=r.crate,a=r.crateParams,i=Ws(o.occupiedHP),l=Ws(a(o.crate_mode).hp),s=o.items.map((function(t,r){var a=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}}(o.items,r);return e.createElement(gd,{card_index:r,crate_index:n,ext_data:a,first:0===r,last:r===o.items.length-1&&i>=l,key:t.id})}));return e.createElement(Ro,{droppableId:o.id,direction:"horizontal"},(function(t,n){return e.createElement("div",bd({ref:t.innerRef},t.droppableProps,{style:Ho(t.droppableProps.style,n),className:"items-cart-list"}),s,t.placeholder&&e.createElement("div",{style:{display:"none"}},t.placeholder),e.createElement(hd,{nToDraw:l-i,isDraggingOver:n.isDraggingOver}))}))}function vd(t){var n=t.crate_index,r=Cc((function(e){return{modes_order:e.modes_order,crate_modes:e.crate_modes,crate:e.crates[n],setMode:e.setCrateMode}})),o=r.modes_order,a=r.crate_modes,i=r.crate,l=r.setMode;return e.createElement("div",{className:"crate-mode"},o.map((function(t,n){return e.createElement("a",{key:t,className:i.crate_mode===t?"active":"",onClick:function(){return l(i.id,t)},href:"#",role:"button"},a[t].name)})))}function wd(t){var n=t.crate_index,r=Cc((function(e){return e.crates[n]})).warnings;return e.createElement("div",{className:"crate-info"},r.map((function(t,n){return e.createElement("p",{key:n,className:"rule",style:{color:tc(t.level).color}},e.createElement("img",{src:tc(t.level).icon})," ",e.createElement("i",null,t.message))})))}function Ed(t){var n=t.crate_index,r=Cc((function(e){return{onDeleteCrate:e.delCrate,crate:e.crates[n]}})),o=r.onDeleteCrate,a=r.crate;return e.createElement("div",{className:"crate"},e.createElement("div",{className:"crate-bar d-inline-flex"},e.createElement(vd,{crate_index:n}),e.createElement("div",{className:"delete-crate align-self-end align-content-end justify-content-end",onClick:function(){return o(a.id)}},"Delete crate ",e.createElement("img",{src:"/images/shop/icon-remove.svg",alt:"remove"}))),e.createElement("div",{className:"crate-products"},e.createElement(yd,{crate_index:n}),e.createElement(wd,{crate_index:n})))}function xd(){var t=Cc((function(e){return{crates:e.crates,active_crate:e.active_crate,onAddCrate:e.newCrate,setActiveCrate:e.setActiveCrate}})),n=t.crates,r=t.active_crate,o=t.onAddCrate,a=t.setActiveCrate;return e.createElement(Qu,{id:"accordion_crates",flush:!0,activeKey:r,onSelect:function(e){a(null!==e?e:"")}},n.map((function(t,n){return e.createElement(Qu.Item,{eventKey:t.id,key:"accordion"+t.id,className:"accordion_crates_item"},e.createElement(Qu.Header,null,"Crate #","".concat(n)),e.createElement(Qu.Body,null,e.createElement(Ed,{crate_index:n})))})),e.createElement(Qu.Item,{eventKey:"last",id:"accordion_crates_add"},e.createElement(Qu.Header,{onClick:o},"Add new crate")))}var Sd=JSON.stringify({items:[{pn:"1124"},{pn:"2118"},{pn:"2118"},{pn:"2128"}],type:"desktop"});function kd(){var t=Cc((function(e){return{shouldShow:e.importShouldOpen,data:e.importValue,loadDescription:e.loadDescription,updateImportDescription:e.updateImportDescription,closeImport:e.closeImport,showImport:e.openImport}})),n=t.shouldShow,r=t.data,o=t.loadDescription,a=t.updateImportDescription,i=t.closeImport,l=t.showImport,s=Rc((function(e){"mousedown"===e.type&&i()}));return e.createElement(e.Fragment,null,e.createElement("button",{className:"btn btn-sm btn-outline-primary m-0 mb-2",style:{cursor:"pointer"},onClick:l},"Import JSON"),e.createElement(ku,{show:n,animation:!0,centered:!0},e.createElement(ku.Body,{ref:s,className:"rfqFeedback"},e.createElement("div",{className:"form-group"},e.createElement("p",{className:"small"},"Input the JSON description below. Should be something like:",e.createElement("br",null),Sd)),e.createElement("div",{className:"form-group w-100"},e.createElement("textarea",{onChange:function(e){a(e.target.value)},value:r.value,className:"form-control w-100",rows:"5",placeholder:"Input JSON description here."})),r.error!==uc.OK?e.createElement("div",{className:"form-group"},e.createElement("p",{className:"text-danger"},r.error===uc.Empty?"Empty input":"Invalid JSON")):null,e.createElement("div",{className:"d-flex flex-column flex-sm-row justify-content-end"},e.createElement("a",{type:"button",onClick:i,className:"btn btn-sm btn-outline-primary m-0 mb-2 mt-2 mb-sm-0 me-sm-2"},"Close"),e.createElement("a",{type:"button",onClick:o,className:"btn btn-sm btn-primary m-0 ms-sm-2 mt-2 ".concat(r.error?"disabled":"")},"Load configuration")))))}function Od(){var t=Cc((function(e){return{closeRFQ:e.closeRFQFeedback,shouldShow:e.shouldShowRFQFeedback,status:e.processingResult}})),n=t.closeRFQ,r=t.shouldShow,o=t.status,a=Rc((function(e){"mousedown"===e.type&&n()}));return e.createElement(ku,{show:r,animation:!0,centered:!0},e.createElement(ku.Body,{ref:a,className:"rfqFeedback"},e.createElement("div",{className:"d-flex"},e.createElement("div",null,o.status===uc.OK?e.createElement("img",{width:"30px",src:"/images/shop/icon-done.svg",alt:"close"}):e.createElement("img",{width:"30px",src:"/images/shop/icon-warning.svg",alt:"close"})),e.createElement("div",{style:{padding:"0 .5em"}},o.message))))}function Cd(t){var n=t.title,r=t.description,o=Cc((function(e){return e.isMobile})),a=Cc((function(e){return e.switchSideMenu}));return e.createElement("section",{className:"panel"},e.createElement("h2",null,n),e.createElement("div",{className:"control"},r),e.createElement("div",null,e.createElement(kd,null)),e.createElement(Od,null),o?e.createElement("div",{className:"mobileBtnDisplaySideMenu"},e.createElement("button",{onClick:a},e.createElement("img",{src:"/images/shop/icon-add.svg",alt:"add"}))):null,e.createElement(xd,null),e.createElement("section",{className:"summary"},e.createElement(Uc,null),e.createElement(Cu,null)))}function Pd(){var t=Cc((function(e){return{addCardFromBacklog:e.addCardFromBacklog,moveCard:e.moveCard,deleteCard:e.deleteCard,cardIndexById:e.cardIndexById}})),n=t.addCardFromBacklog,r=t.moveCard,o=t.deleteCard,a=t.cardIndexById;return(0,e.useEffect)((function(){n(null,[a("eem_pwr_mod"),a("kasli")],-1,!0)}),[]),e.createElement(Kr,{onDragEnd:function(e,t){e.destination?"backlog"===e.source.droppableId?n(e.destination.droppableId,e.source.index,e.destination.index):"backlog"===e.destination.droppableId?o(e.destination.droppableId,e.destination.index):r(e.source.droppableId,e.source.index,e.destination.droppableId,e.destination.index):console.warn("No drop destination")}},e.createElement(Pc,{aside:e.createElement(_c,null),main:e.createElement(Cd,{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.")})}))}(0,t.s)(document.querySelector("#root-shop")).render(e.createElement(Pd,{data:Uo}))})()})();