web2019/static/js/shop.bundle.js

2 lines
379 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"),i=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),l=Symbol.for("react.provider"),s=Symbol.for("react.context"),u=Symbol.for("react.server_context"),c=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 a:case i:case d:case f:return e;default:switch(e=e&&e.$$typeof){case u:case s:case c: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 i=typeof n;if("string"===i||"number"===i)e.push(n);else if(Array.isArray(n)){if(n.length){var a=o.apply(null,n);a&&e.push(a)}}else if("object"===i){if(n.toString!==Object.prototype.toString&&!n.toString.toString().includes("[native code]")){e.push(n.toString());continue}for(var l in n)r.call(n,l)&&n[l]&&e.push(l)}}}return e.join(" ")}e.exports?(o.default=o,e.exports=o):void 0===(n=function(){return o}.apply(t,[]))||(e.exports=n)}()},679:(e,t,n)=>{"use strict";var r=n(296),o={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},i={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},l={};function s(e){return r.isMemo(e)?a:l[e.$$typeof]||o}l[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},l[r.Memo]=a;var u=Object.defineProperty,c=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 a=c(n);d&&(a=a.concat(d(n)));for(var l=s(t),h=s(n),g=0;g<a.length;++g){var y=a[g];if(!(i[y]||r&&r[y]||h&&h[y]||l&&l[y])){var b=f(n,y);try{u(t,y,b)}catch(e){}}}}return t}},103:(e,t)=>{"use strict";var n="function"==typeof Symbol&&Symbol.for,r=n?Symbol.for("react.element"):60103,o=n?Symbol.for("react.portal"):60106,i=n?Symbol.for("react.fragment"):60107,a=n?Symbol.for("react.strict_mode"):60108,l=n?Symbol.for("react.profiler"):60114,s=n?Symbol.for("react.provider"):60109,u=n?Symbol.for("react.context"):60110,c=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,h=n?Symbol.for("react.memo"):60115,g=n?Symbol.for("react.lazy"):60116,y=n?Symbol.for("react.block"):60121,b=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 c:case d:case i:case l:case a:case p:return e;default:switch(e=e&&e.$$typeof){case u:case f:case g:case h:case s:return e;default:return t}}case o:return t}}}function S(e){return E(e)===d}t.AsyncMode=c,t.ConcurrentMode=d,t.ContextConsumer=u,t.ContextProvider=s,t.Element=r,t.ForwardRef=f,t.Fragment=i,t.Lazy=g,t.Memo=h,t.Portal=o,t.Profiler=l,t.StrictMode=a,t.Suspense=p,t.isAsyncMode=function(e){return S(e)||E(e)===c},t.isConcurrentMode=S,t.isContextConsumer=function(e){return E(e)===u},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)===i},t.isLazy=function(e){return E(e)===g},t.isMemo=function(e){return E(e)===h},t.isPortal=function(e){return E(e)===o},t.isProfiler=function(e){return E(e)===l},t.isStrictMode=function(e){return E(e)===a},t.isSuspense=function(e){return E(e)===p},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===i||e===d||e===l||e===a||e===p||e===m||"object"==typeof e&&null!==e&&(e.$$typeof===g||e.$$typeof===h||e.$$typeof===s||e.$$typeof===u||e.$$typeof===f||e.$$typeof===b||e.$$typeof===v||e.$$typeof===w||e.$$typeof===y)},t.typeOf=E},296:(e,t,n)=>{"use strict";e.exports=n(103)},143:e=>{"use strict";e.exports=function(e,t,n,r,o,i,a,l){if(!e){var 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 u=[n,r,o,i,a,l],c=0;(s=new Error(t.replace(/%s/g,(function(){return u[c++]})))).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("."),i=0;i<o.length;i++){if(null==r)return n;if(void 0===(r=r[o[i]]))return n}return r},missing:function(){for(var t=[],n=Array.isArray(arguments[0])?arguments[0]:arguments,r=0;r<n.length;r++){var o=n[r],i=e.apply({var:o},this);null!==i&&""!==i||t.push(o)}return t},missing_some:function(t,n){var r=e.apply({missing:n},this);return n.length-r.length>=t?[]:r}};return e.is_logic=function(e){return"object"==typeof e&&null!==e&&!Array.isArray(e)&&1===Object.keys(e).length},e.truthy=function(e){return!(Array.isArray(e)&&0===e.length||!e)},e.get_operator=function(e){return Object.keys(e)[0]},e.get_values=function(t){return t[e.get_operator(t)]},e.apply=function(n,r){if(Array.isArray(n))return n.map((function(t){return e.apply(t,r)}));if(!e.is_logic(n))return n;var o,i,a,l,s,u=e.get_operator(n),c=n[u];if(Array.isArray(c)||(c=[c]),"if"===u||"?:"==u){for(o=0;o<c.length-1;o+=2)if(e.truthy(e.apply(c[o],r)))return e.apply(c[o+1],r);return c.length===o+1?e.apply(c[o],r):null}if("and"===u){for(o=0;o<c.length;o+=1)if(i=e.apply(c[o],r),!e.truthy(i))return i;return i}if("or"===u){for(o=0;o<c.length;o+=1)if(i=e.apply(c[o],r),e.truthy(i))return i;return i}if("filter"===u)return l=e.apply(c[0],r),a=c[1],Array.isArray(l)?l.filter((function(t){return e.truthy(e.apply(a,t))})):[];if("map"===u)return l=e.apply(c[0],r),a=c[1],Array.isArray(l)?l.map((function(t){return e.apply(a,t)})):[];if("reduce"===u)return l=e.apply(c[0],r),a=c[1],s=void 0!==c[2]?c[2]:null,Array.isArray(l)?l.reduce((function(t,n){return e.apply(a,{current:n,accumulator:t})}),s):s;if("all"===u){if(l=e.apply(c[0],r),a=c[1],!Array.isArray(l)||!l.length)return!1;for(o=0;o<l.length;o+=1)if(!e.truthy(e.apply(a,l[o])))return!1;return!0}if("none"===u){if(l=e.apply(c[0],r),a=c[1],!Array.isArray(l)||!l.length)return!0;for(o=0;o<l.length;o+=1)if(e.truthy(e.apply(a,l[o])))return!1;return!0}if("some"===u){if(l=e.apply(c[0],r),a=c[1],!Array.isArray(l)||!l.length)return!1;for(o=0;o<l.length;o+=1)if(e.truthy(e.apply(a,l[o])))return!0;return!1}if(c=c.map((function(t){return e.apply(t,r)})),t.hasOwnProperty(u)&&"function"==typeof t[u])return t[u].apply(r,c);if(u.indexOf(".")>0){var d=String(u).split("."),f=t;for(o=0;o<d.length;o++){if(!f.hasOwnProperty(d[o]))throw new Error("Unrecognized operation "+u+" (failed at "+d.slice(0,o+1).join(".")+")");f=f[d[o]]}return f.apply(r,c)}throw new Error("Unrecognized operation "+u)},e.uses_data=function(t){var n=[];if(e.is_logic(t)){var r=e.get_operator(t),o=t[r];Array.isArray(o)||(o=[o]),"var"===r?n.push(o[0]):o.forEach((function(t){n.push.apply(n,e.uses_data(t))}))}return function(e){for(var t=[],n=0,r=e.length;n<r;n++)-1===t.indexOf(e[n])&&t.push(e[n]);return t}(n)},e.add_operation=function(e,n){t[e]=n},e.rm_operation=function(e){delete t[e]},e.rule_like=function(t,n){if(n===t)return!0;if("@"===n)return!0;if("number"===n)return"number"==typeof t;if("string"===n)return"string"==typeof t;if("array"===n)return Array.isArray(t)&&!e.is_logic(t);if(e.is_logic(n)){if(e.is_logic(t)){var r=e.get_operator(n),o=e.get_operator(t);if("@"===r||r===o)return e.rule_like(e.get_values(t,!1),e.get_values(n,!1))}return!1}if(Array.isArray(n)){if(Array.isArray(t)){if(n.length!==t.length)return!1;for(var i=0;i<n.length;i+=1)if(!e.rule_like(t[i],n[i]))return!1;return!0}return!1}return!1},e},void 0===(o=r.call(t,n,t,e))||(e.exports=o)},703:(e,t,n)=>{"use strict";var r=n(414);function o(){}function i(){}i.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,i,a){if(a!==r){var l=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw l.name="Invariant Violation",l}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:o};return n.PropTypes=n,n}},697:(e,t,n)=>{e.exports=n(703)()},414:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},448:(e,t,n)=>{"use strict";var r=n(294),o=n(840);function i(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var a=new Set,l={};function s(e,t){u(e,t),u(e+"Capture",t)}function u(e,t){for(l[e]=t,e=0;e<t.length;e++)a.add(t[e])}var c=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),d=Object.prototype.hasOwnProperty,f=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,p={},m={};function h(e,t,n,r,o,i,a){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=a}var g={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){g[e]=new h(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];g[t]=new h(t,1,!1,e[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){g[e]=new h(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){g[e]=new h(e,2,!1,e,null,!1,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(e){g[e]=new h(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){g[e]=new h(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){g[e]=new h(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){g[e]=new h(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){g[e]=new h(e,5,!1,e.toLowerCase(),null,!1,!1)}));var y=/[\-:]([a-z])/g;function b(e){return e[1].toUpperCase()}function v(e,t,n,r){var o=g.hasOwnProperty(t)?g[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(y,b);g[t]=new h(t,1,!1,e,null,!1,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(y,b);g[t]=new h(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(y,b);g[t]=new h(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){g[e]=new h(e,1,!1,e.toLowerCase(),null,!1,!1)})),g.xlinkHref=new h("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){g[e]=new h(e,1,!1,e.toLowerCase(),null,!0,!0)}));var w=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,E=Symbol.for("react.element"),S=Symbol.for("react.portal"),x=Symbol.for("react.fragment"),k=Symbol.for("react.strict_mode"),O=Symbol.for("react.profiler"),C=Symbol.for("react.provider"),P=Symbol.for("react.context"),I=Symbol.for("react.forward_ref"),D=Symbol.for("react.suspense"),_=Symbol.for("react.suspense_list"),R=Symbol.for("react.memo"),N=Symbol.for("react.lazy");Symbol.for("react.scope"),Symbol.for("react.debug_trace_mode");var T=Symbol.for("react.offscreen");Symbol.for("react.legacy_hidden"),Symbol.for("react.cache"),Symbol.for("react.tracing_marker");var j=Symbol.iterator;function A(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=j&&e[j]||e["@@iterator"])?e:null}var M,L=Object.assign;function B(e){if(void 0===M)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);M=t&&t[1]||""}return"\n"+M+e}var F=!1;function z(e,t){if(!e||F)return"";F=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(t,[])}catch(e){var r=e}Reflect.construct(e,[],t)}else{try{t.call()}catch(e){r=e}e.call(t.prototype)}else{try{throw Error()}catch(e){r=e}e()}}catch(t){if(t&&r&&"string"==typeof t.stack){for(var o=t.stack.split("\n"),i=r.stack.split("\n"),a=o.length-1,l=i.length-1;1<=a&&0<=l&&o[a]!==i[l];)l--;for(;1<=a&&0<=l;a--,l--)if(o[a]!==i[l]){if(1!==a||1!==l)do{if(a--,0>--l||o[a]!==i[l]){var s="\n"+o[a].replace(" at new "," at ");return e.displayName&&s.includes("<anonymous>")&&(s=s.replace("<anonymous>",e.displayName)),s}}while(1<=a&&0<=l);break}}}finally{F=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?B(e):""}function U(e){switch(e.tag){case 5:return B(e.type);case 16:return B("Lazy");case 13:return B("Suspense");case 19:return B("SuspenseList");case 0:case 2:case 15:return z(e.type,!1);case 11:return z(e.type.render,!1);case 1:return z(e.type,!0);default:return""}}function W(e){if(null==e)return null;if("function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case x:return"Fragment";case S:return"Portal";case O:return"Profiler";case k:return"StrictMode";case D:return"Suspense";case _:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case P:return(e.displayName||"Context")+".Consumer";case C:return(e._context.displayName||"Context")+".Provider";case I:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case R:return null!==(t=e.displayName||null)?t:W(e.type)||"Memo";case N:t=e._payload,e=e._init;try{return W(e(t))}catch(e){}}return null}function $(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=(e=t.render).displayName||e.name||"",t.displayName||(""!==e?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return W(t);case 8:return t===k?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if("function"==typeof t)return t.displayName||t.name||null;if("string"==typeof t)return t}return null}function G(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function H(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=H(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&void 0!==n&&"function"==typeof n.get&&"function"==typeof n.set){var o=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(e){r=""+e,i.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function q(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=H(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function Q(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function Y(e,t){var n=t.checked;return L({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function K(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=G(null!=t.value?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function J(e,t){null!=(t=t.checked)&&v(e,"checked",t,!1)}function X(e,t){J(e,t);var n=G(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,G(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function Z(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!("submit"!==r&&"reset"!==r||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function ee(e,t,n){"number"===t&&Q(e.ownerDocument)===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var te=Array.isArray;function ne(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o<n.length;o++)t["$"+n[o]]=!0;for(n=0;n<e.length;n++)o=t.hasOwnProperty("$"+e[n].value),e[n].selected!==o&&(e[n].selected=o),o&&r&&(e[n].defaultSelected=!0)}else{for(n=""+G(n),t=null,o=0;o<e.length;o++){if(e[o].value===n)return e[o].selected=!0,void(r&&(e[o].defaultSelected=!0));null!==t||e[o].disabled||(t=e[o])}null!==t&&(t.selected=!0)}}function re(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(i(91));return L({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function oe(e,t){var n=t.value;if(null==n){if(n=t.children,t=t.defaultValue,null!=n){if(null!=t)throw Error(i(92));if(te(n)){if(1<n.length)throw Error(i(93));n=n[0]}t=n}null==t&&(t=""),n=t}e._wrapperState={initialValue:G(n)}}function ie(e,t){var n=G(t.value),r=G(t.defaultValue);null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=r&&(e.defaultValue=""+r)}function ae(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}function le(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function se(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?le(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var ue,ce,de=(ce=function(e,t){if("http://www.w3.org/2000/svg"!==e.namespaceURI||"innerHTML"in e)e.innerHTML=t;else{for((ue=ue||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=ue.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}},"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,t,n,r){MSApp.execUnsafeLocalFunction((function(){return ce(e,t)}))}:ce);function fe(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var pe={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},me=["Webkit","ms","Moz","O"];function he(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||pe.hasOwnProperty(e)&&pe[e]?(""+t).trim():t+"px"}function ge(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),o=he(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}Object.keys(pe).forEach((function(e){me.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),pe[t]=pe[e]}))}));var ye=L({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function be(e,t){if(t){if(ye[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(i(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(i(60));if("object"!=typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(i(61))}if(null!=t.style&&"object"!=typeof t.style)throw Error(i(62))}}function 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 Se=null,xe=null,ke=null;function Oe(e){if(e=wo(e)){if("function"!=typeof Se)throw Error(i(280));var t=e.stateNode;t&&(t=So(t),Se(e.stateNode,e.type,t))}}function Ce(e){xe?ke?ke.push(e):ke=[e]:xe=e}function Pe(){if(xe){var e=xe,t=ke;if(ke=xe=null,Oe(e),t)for(e=0;e<t.length;e++)Oe(t[e])}}function Ie(e,t){return e(t)}function De(){}var _e=!1;function Re(e,t,n){if(_e)return e(t,n);_e=!0;try{return Ie(e,t,n)}finally{_e=!1,(null!==xe||null!==ke)&&(De(),Pe())}}function Ne(e,t){var n=e.stateNode;if(null===n)return null;var r=So(n);if(null===r)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(r=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!r;break e;default:e=!1}if(e)return null;if(n&&"function"!=typeof n)throw Error(i(231,t,typeof n));return n}var Te=!1;if(c)try{var je={};Object.defineProperty(je,"passive",{get:function(){Te=!0}}),window.addEventListener("test",je,je),window.removeEventListener("test",je,je)}catch(ce){Te=!1}function Ae(e,t,n,r,o,i,a,l,s){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(e){this.onError(e)}}var Me=!1,Le=null,Be=!1,Fe=null,ze={onError:function(e){Me=!0,Le=e}};function Ue(e,t,n,r,o,i,a,l,s){Me=!1,Le=null,Ae.apply(ze,arguments)}function We(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{0!=(4098&(t=e).flags)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function $e(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&null!==(e=e.alternate)&&(t=e.memoizedState),null!==t)return t.dehydrated}return null}function Ge(e){if(We(e)!==e)throw Error(i(188))}function He(e){return null!==(e=function(e){var t=e.alternate;if(!t){if(null===(t=We(e)))throw Error(i(188));return t!==e?null:e}for(var n=e,r=t;;){var o=n.return;if(null===o)break;var a=o.alternate;if(null===a){if(null!==(r=o.return)){n=r;continue}break}if(o.child===a.child){for(a=o.child;a;){if(a===n)return Ge(o),e;if(a===r)return Ge(o),t;a=a.sibling}throw Error(i(188))}if(n.return!==r.return)n=o,r=a;else{for(var l=!1,s=o.child;s;){if(s===n){l=!0,n=o,r=a;break}if(s===r){l=!0,r=o,n=a;break}s=s.sibling}if(!l){for(s=a.child;s;){if(s===n){l=!0,n=a,r=o;break}if(s===r){l=!0,r=a,n=o;break}s=s.sibling}if(!l)throw Error(i(189))}}if(n.alternate!==r)throw Error(i(190))}if(3!==n.tag)throw Error(i(188));return n.stateNode.current===n?e:t}(e))?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,Qe=o.unstable_cancelCallback,Ye=o.unstable_shouldYield,Ke=o.unstable_requestPaint,Je=o.unstable_now,Xe=o.unstable_getCurrentPriorityLevel,Ze=o.unstable_ImmediatePriority,et=o.unstable_UserBlockingPriority,tt=o.unstable_NormalPriority,nt=o.unstable_LowPriority,rt=o.unstable_IdlePriority,ot=null,it=null,at=Math.clz32?Math.clz32:function(e){return 0===(e>>>=0)?32:31-(lt(e)/st|0)|0},lt=Math.log,st=Math.LN2,ut=64,ct=4194304;function dt(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return 4194240&e;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return 130023424&e;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function ft(e,t){var n=e.pendingLanes;if(0===n)return 0;var r=0,o=e.suspendedLanes,i=e.pingedLanes,a=268435455&n;if(0!==a){var l=a&~o;0!==l?r=dt(l):0!=(i&=a)&&(r=dt(i))}else 0!=(a=n&~o)?r=dt(a):0!==i&&(r=dt(i));if(0===r)return 0;if(0!==t&&t!==r&&0==(t&o)&&((o=r&-r)>=(i=t&-t)||16===o&&0!=(4194240&i)))return t;if(0!=(4&r)&&(r|=16&n),0!==(t=e.entangledLanes))for(e=e.entanglements,t&=r;0<t;)o=1<<(n=31-at(t)),r|=e[n],t&=~o;return r}function pt(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;default:return-1}}function mt(e){return 0!=(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function ht(){var e=ut;return 0==(4194240&(ut<<=1))&&(ut=64),e}function gt(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function yt(e,t,n){e.pendingLanes|=t,536870912!==t&&(e.suspendedLanes=0,e.pingedLanes=0),(e=e.eventTimes)[t=31-at(t)]=n}function bt(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-at(n),o=1<<r;o&t|e[r]&t&&(e[r]|=t),n&=~o}}var vt=0;function wt(e){return 1<(e&=-e)?4<e?0!=(268435455&e)?16:536870912:4:1}var Et,St,xt,kt,Ot,Ct=!1,Pt=[],It=null,Dt=null,_t=null,Rt=new Map,Nt=new Map,Tt=[],jt="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function At(e,t){switch(e){case"focusin":case"focusout":It=null;break;case"dragenter":case"dragleave":Dt=null;break;case"mouseover":case"mouseout":_t=null;break;case"pointerover":case"pointerout":Rt.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Nt.delete(t.pointerId)}}function Mt(e,t,n,r,o,i){return null===e||e.nativeEvent!==i?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:i,targetContainers:[o]},null!==t&&null!==(t=wo(t))&&St(t),e):(e.eventSystemFlags|=r,t=e.targetContainers,null!==o&&-1===t.indexOf(o)&&t.push(o),e)}function Lt(e){var t=vo(e.target);if(null!==t){var n=We(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=$e(n)))return e.blockedOn=t,void Ot(e.priority,(function(){xt(n)}))}else if(3===t&&n.stateNode.current.memoizedState.isDehydrated)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function Bt(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=Yt(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n)return null!==(t=wo(n))&&St(t),e.blockedOn=n,!1;var r=new(n=e.nativeEvent).constructor(n.type,n);we=r,n.target.dispatchEvent(r),we=null,t.shift()}return!0}function Ft(e,t,n){Bt(e)&&n.delete(t)}function zt(){Ct=!1,null!==It&&Bt(It)&&(It=null),null!==Dt&&Bt(Dt)&&(Dt=null),null!==_t&&Bt(_t)&&(_t=null),Rt.forEach(Ft),Nt.forEach(Ft)}function Ut(e,t){e.blockedOn===t&&(e.blockedOn=null,Ct||(Ct=!0,o.unstable_scheduleCallback(o.unstable_NormalPriority,zt)))}function Wt(e){function t(t){return Ut(t,e)}if(0<Pt.length){Ut(Pt[0],e);for(var n=1;n<Pt.length;n++){var r=Pt[n];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==It&&Ut(It,e),null!==Dt&&Ut(Dt,e),null!==_t&&Ut(_t,e),Rt.forEach(t),Nt.forEach(t),n=0;n<Tt.length;n++)(r=Tt[n]).blockedOn===e&&(r.blockedOn=null);for(;0<Tt.length&&null===(n=Tt[0]).blockedOn;)Lt(n),null===n.blockedOn&&Tt.shift()}var $t=w.ReactCurrentBatchConfig,Gt=!0;function Ht(e,t,n,r){var o=vt,i=$t.transition;$t.transition=null;try{vt=1,qt(e,t,n,r)}finally{vt=o,$t.transition=i}}function Vt(e,t,n,r){var o=vt,i=$t.transition;$t.transition=null;try{vt=4,qt(e,t,n,r)}finally{vt=o,$t.transition=i}}function qt(e,t,n,r){if(Gt){var o=Yt(e,t,n,r);if(null===o)Gr(e,t,r,Qt,n),At(e,r);else if(function(e,t,n,r,o){switch(t){case"focusin":return It=Mt(It,e,t,n,r,o),!0;case"dragenter":return Dt=Mt(Dt,e,t,n,r,o),!0;case"mouseover":return _t=Mt(_t,e,t,n,r,o),!0;case"pointerover":var i=o.pointerId;return Rt.set(i,Mt(Rt.get(i)||null,e,t,n,r,o)),!0;case"gotpointercapture":return i=o.pointerId,Nt.set(i,Mt(Nt.get(i)||null,e,t,n,r,o)),!0}return!1}(o,e,t,n,r))r.stopPropagation();else if(At(e,r),4&t&&-1<jt.indexOf(e)){for(;null!==o;){var i=wo(o);if(null!==i&&Et(i),null===(i=Yt(e,t,n,r))&&Gr(e,t,r,Qt,n),i===o)break;o=i}null!==o&&r.stopPropagation()}else Gr(e,t,r,null,n)}}var Qt=null;function Yt(e,t,n,r){if(Qt=null,null!==(e=vo(e=Ee(r))))if(null===(t=We(e)))e=null;else if(13===(n=t.tag)){if(null!==(e=$e(t)))return e;e=null}else if(3===n){if(t.stateNode.current.memoizedState.isDehydrated)return 3===t.tag?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Qt=e,null}function Kt(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(Xe()){case Ze:return 1;case et:return 4;case tt:case nt:return 16;case rt:return 536870912;default:return 16}default:return 16}}var Jt=null,Xt=null,Zt=null;function en(){if(Zt)return Zt;var e,t,n=Xt,r=n.length,o="value"in Jt?Jt.value:Jt.textContent,i=o.length;for(e=0;e<r&&n[e]===o[e];e++);var a=r-e;for(t=1;t<=a&&n[r-t]===o[i-t];t++);return Zt=o.slice(e,1<t?1-t:void 0)}function tn(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}function nn(){return!0}function rn(){return!1}function on(e){function t(t,n,r,o,i){for(var a in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=o,this.target=i,this.currentTarget=null,e)e.hasOwnProperty(a)&&(t=e[a],this[a]=t?t(o):o[a]);return this.isDefaultPrevented=(null!=o.defaultPrevented?o.defaultPrevented:!1===o.returnValue)?nn:rn,this.isPropagationStopped=rn,this}return L(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=nn)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=nn)},persist:function(){},isPersistent:nn}),t}var an,ln,sn,un={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},cn=on(un),dn=L({},un,{view:0,detail:0}),fn=on(dn),pn=L({},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),hn=on(L({},pn,{dataTransfer:0})),gn=on(L({},dn,{relatedTarget:0})),yn=on(L({},un,{animationName:0,elapsedTime:0,pseudoElement:0})),bn=L({},un,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),vn=on(bn),wn=on(L({},un,{data:0})),En={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Sn={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},xn={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function kn(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=xn[e])&&!!t[e]}function On(){return kn}var Cn=L({},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?Sn[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:On,charCode:function(e){return"keypress"===e.type?tn(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?tn(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),Pn=on(Cn),In=on(L({},pn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),Dn=on(L({},dn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:On})),_n=on(L({},un,{propertyName:0,elapsedTime:0,pseudoElement:0})),Rn=L({},pn,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),Nn=on(Rn),Tn=[9,13,27,32],jn=c&&"CompositionEvent"in window,An=null;c&&"documentMode"in document&&(An=document.documentMode);var Mn=c&&"TextEvent"in window&&!An,Ln=c&&(!jn||An&&8<An&&11>=An),Bn=String.fromCharCode(32),Fn=!1;function zn(e,t){switch(e){case"keyup":return-1!==Tn.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Un(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var Wn=!1,$n={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Gn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!$n[e.type]:"textarea"===t}function Hn(e,t,n,r){Ce(r),0<(t=Vr(t,"onChange")).length&&(n=new cn("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Vn=null,qn=null;function Qn(e){Br(e,0)}function Yn(e){if(q(Eo(e)))return e}function Kn(e,t){if("change"===e)return t}var Jn=!1;if(c){var Xn;if(c){var Zn="oninput"in document;if(!Zn){var er=document.createElement("div");er.setAttribute("oninput","return;"),Zn="function"==typeof er.oninput}Xn=Zn}else Xn=!1;Jn=Xn&&(!document.documentMode||9<document.documentMode)}function tr(){Vn&&(Vn.detachEvent("onpropertychange",nr),qn=Vn=null)}function nr(e){if("value"===e.propertyName&&Yn(qn)){var t=[];Hn(t,qn,e,Ee(e)),Re(Qn,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 Yn(qn)}function ir(e,t){if("click"===e)return Yn(t)}function ar(e,t){if("input"===e||"change"===e)return Yn(t)}var lr="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t};function 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 ur(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function cr(e,t){var n,r=ur(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=ur(r)}}function dr(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?dr(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function fr(){for(var e=window,t=Q();t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(e){n=!1}if(!n)break;t=Q((e=t.contentWindow).document)}return t}function pr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}function mr(e){var t=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,i=Math.min(r.start,o);r=void 0===r.end?i:Math.min(r.end,o),!e.extend&&i>r&&(o=r,r=i,i=o),o=cr(n,i);var a=cr(n,r);o&&a&&(1!==e.rangeCount||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&((t=t.createRange()).setStart(o.node,o.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(a.node,a.offset)):(t.setEnd(a.node,a.offset),e.addRange(t)))}for(t=[],e=n;e=e.parentNode;)1===e.nodeType&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for("function"==typeof n.focus&&n.focus(),n=0;n<t.length;n++)(e=t[n]).element.scrollLeft=e.left,e.element.scrollTop=e.top}}var hr=c&&"documentMode"in document&&11>=document.documentMode,gr=null,yr=null,br=null,vr=!1;function wr(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;vr||null==gr||gr!==Q(r)||(r="selectionStart"in(r=gr)&&pr(r)?{start:r.selectionStart,end:r.selectionEnd}:{anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},br&&sr(br,r)||(br=r,0<(r=Vr(yr,"onSelect")).length&&(t=new cn("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=gr)))}function Er(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Sr={animationend:Er("Animation","AnimationEnd"),animationiteration:Er("Animation","AnimationIteration"),animationstart:Er("Animation","AnimationStart"),transitionend:Er("Transition","TransitionEnd")},xr={},kr={};function Or(e){if(xr[e])return xr[e];if(!Sr[e])return e;var t,n=Sr[e];for(t in n)if(n.hasOwnProperty(t)&&t in kr)return xr[e]=n[t];return e}c&&(kr=document.createElement("div").style,"AnimationEvent"in window||(delete Sr.animationend.animation,delete Sr.animationiteration.animation,delete Sr.animationstart.animation),"TransitionEvent"in window||delete Sr.transitionend.transition);var Cr=Or("animationend"),Pr=Or("animationiteration"),Ir=Or("animationstart"),Dr=Or("transitionend"),_r=new Map,Rr="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function Nr(e,t){_r.set(e,t),s(t,[e])}for(var Tr=0;Tr<Rr.length;Tr++){var jr=Rr[Tr];Nr(jr.toLowerCase(),"on"+(jr[0].toUpperCase()+jr.slice(1)))}Nr(Cr,"onAnimationEnd"),Nr(Pr,"onAnimationIteration"),Nr(Ir,"onAnimationStart"),Nr("dblclick","onDoubleClick"),Nr("focusin","onFocus"),Nr("focusout","onBlur"),Nr(Dr,"onTransitionEnd"),u("onMouseEnter",["mouseout","mouseover"]),u("onMouseLeave",["mouseout","mouseover"]),u("onPointerEnter",["pointerout","pointerover"]),u("onPointerLeave",["pointerout","pointerover"]),s("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),s("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),s("onBeforeInput",["compositionend","keypress","textInput","paste"]),s("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),s("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),s("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Ar="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Mr=new Set("cancel close invalid load scroll toggle".split(" ").concat(Ar));function Lr(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,function(e,t,n,r,o,a,l,s,u){if(Ue.apply(this,arguments),Me){if(!Me)throw Error(i(198));var c=Le;Me=!1,Le=null,Be||(Be=!0,Fe=c)}}(r,t,void 0,e),e.currentTarget=null}function Br(e,t){t=0!=(4&t);for(var n=0;n<e.length;n++){var r=e[n],o=r.event;r=r.listeners;e:{var i=void 0;if(t)for(var a=r.length-1;0<=a;a--){var l=r[a],s=l.instance,u=l.currentTarget;if(l=l.listener,s!==i&&o.isPropagationStopped())break e;Lr(o,l,u),i=s}else for(a=0;a<r.length;a++){if(s=(l=r[a]).instance,u=l.currentTarget,l=l.listener,s!==i&&o.isPropagationStopped())break e;Lr(o,l,u),i=s}}}if(Be)throw e=Fe,Be=!1,Fe=null,e}function Fr(e,t){var n=t[go];void 0===n&&(n=t[go]=new Set);var r=e+"__bubble";n.has(r)||($r(t,e,2,!1),n.add(r))}function zr(e,t,n){var r=0;t&&(r|=4),$r(n,e,r,t)}var Ur="_reactListening"+Math.random().toString(36).slice(2);function Wr(e){if(!e[Ur]){e[Ur]=!0,a.forEach((function(t){"selectionchange"!==t&&(Mr.has(t)||zr(t,!1,e),zr(t,!0,e))}));var t=9===e.nodeType?e:e.ownerDocument;null===t||t[Ur]||(t[Ur]=!0,zr("selectionchange",!1,t))}}function $r(e,t,n,r){switch(Kt(t)){case 1:var o=Ht;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 Gr(e,t,n,r,o){var i=r;if(0==(1&t)&&0==(2&t)&&null!==r)e:for(;;){if(null===r)return;var a=r.tag;if(3===a||4===a){var l=r.stateNode.containerInfo;if(l===o||8===l.nodeType&&l.parentNode===o)break;if(4===a)for(a=r.return;null!==a;){var s=a.tag;if((3===s||4===s)&&((s=a.stateNode.containerInfo)===o||8===s.nodeType&&s.parentNode===o))return;a=a.return}for(;null!==l;){if(null===(a=vo(l)))return;if(5===(s=a.tag)||6===s){r=i=a;continue e}l=l.parentNode}}r=r.return}Re((function(){var r=i,o=Ee(n),a=[];e:{var l=_r.get(e);if(void 0!==l){var s=cn,u=e;switch(e){case"keypress":if(0===tn(n))break e;case"keydown":case"keyup":s=Pn;break;case"focusin":u="focus",s=gn;break;case"focusout":u="blur",s=gn;break;case"beforeblur":case"afterblur":s=gn;break;case"click":if(2===n.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":s=mn;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":s=hn;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":s=Dn;break;case Cr:case Pr:case Ir:s=yn;break;case Dr:s=_n;break;case"scroll":s=fn;break;case"wheel":s=Nn;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=In}var c=0!=(4&t),d=!c&&"scroll"===e,f=c?null!==l?l+"Capture":null:l;c=[];for(var p,m=r;null!==m;){var h=(p=m).stateNode;if(5===p.tag&&null!==h&&(p=h,null!==f&&null!=(h=Ne(m,f))&&c.push(Hr(m,h,p))),d)break;m=m.return}0<c.length&&(l=new s(l,u,null,n,o),a.push({event:l,listeners:c}))}}if(0==(7&t)){if(s="mouseout"===e||"pointerout"===e,(!(l="mouseover"===e||"pointerover"===e)||n===we||!(u=n.relatedTarget||n.fromElement)||!vo(u)&&!u[ho])&&(s||l)&&(l=o.window===o?o:(l=o.ownerDocument)?l.defaultView||l.parentWindow:window,s?(s=r,null!==(u=(u=n.relatedTarget||n.toElement)?vo(u):null)&&(u!==(d=We(u))||5!==u.tag&&6!==u.tag)&&(u=null)):(s=null,u=r),s!==u)){if(c=mn,h="onMouseLeave",f="onMouseEnter",m="mouse","pointerout"!==e&&"pointerover"!==e||(c=In,h="onPointerLeave",f="onPointerEnter",m="pointer"),d=null==s?l:Eo(s),p=null==u?l:Eo(u),(l=new c(h,m+"leave",s,n,o)).target=d,l.relatedTarget=p,h=null,vo(o)===r&&((c=new c(f,m+"enter",u,n,o)).target=p,c.relatedTarget=d,h=c),d=h,s&&u)e:{for(f=u,m=0,p=c=s;p;p=qr(p))m++;for(p=0,h=f;h;h=qr(h))p++;for(;0<m-p;)c=qr(c),m--;for(;0<p-m;)f=qr(f),p--;for(;m--;){if(c===f||null!==f&&c===f.alternate)break e;c=qr(c),f=qr(f)}c=null}else c=null;null!==s&&Qr(a,l,s,c,!1),null!==u&&null!==d&&Qr(a,d,u,c,!0)}if("select"===(s=(l=r?Eo(r):window).nodeName&&l.nodeName.toLowerCase())||"input"===s&&"file"===l.type)var g=Kn;else if(Gn(l))if(Jn)g=ar;else{g=or;var y=rr}else(s=l.nodeName)&&"input"===s.toLowerCase()&&("checkbox"===l.type||"radio"===l.type)&&(g=ir);switch(g&&(g=g(e,r))?Hn(a,g,n,o):(y&&y(e,l,r),"focusout"===e&&(y=l._wrapperState)&&y.controlled&&"number"===l.type&&ee(l,"number",l.value)),y=r?Eo(r):window,e){case"focusin":(Gn(y)||"true"===y.contentEditable)&&(gr=y,yr=r,br=null);break;case"focusout":br=yr=gr=null;break;case"mousedown":vr=!0;break;case"contextmenu":case"mouseup":case"dragend":vr=!1,wr(a,n,o);break;case"selectionchange":if(hr)break;case"keydown":case"keyup":wr(a,n,o)}var b;if(jn)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 Wn?zn(e,n)&&(v="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(v="onCompositionStart");v&&(Ln&&"ko"!==n.locale&&(Wn||"onCompositionStart"!==v?"onCompositionEnd"===v&&Wn&&(b=en()):(Xt="value"in(Jt=o)?Jt.value:Jt.textContent,Wn=!0)),0<(y=Vr(r,v)).length&&(v=new wn(v,e,null,n,o),a.push({event:v,listeners:y}),(b||null!==(b=Un(n)))&&(v.data=b))),(b=Mn?function(e,t){switch(e){case"compositionend":return Un(t);case"keypress":return 32!==t.which?null:(Fn=!0,Bn);case"textInput":return(e=t.data)===Bn&&Fn?null:e;default:return null}}(e,n):function(e,t){if(Wn)return"compositionend"===e||!jn&&zn(e,t)?(e=en(),Zt=Xt=Jt=null,Wn=!1,e):null;switch(e){case"paste":default:return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Ln&&"ko"!==t.locale?null:t.data}}(e,n))&&0<(r=Vr(r,"onBeforeInput")).length&&(o=new wn("onBeforeInput","beforeinput",null,n,o),a.push({event:o,listeners:r}),o.data=b)}Br(a,t)}))}function Hr(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,i=o.stateNode;5===o.tag&&null!==i&&(o=i,null!=(i=Ne(e,n))&&r.unshift(Hr(e,i,o)),null!=(i=Ne(e,t))&&r.push(Hr(e,i,o))),e=e.return}return r}function qr(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function Qr(e,t,n,r,o){for(var i=t._reactName,a=[];null!==n&&n!==r;){var l=n,s=l.alternate,u=l.stateNode;if(null!==s&&s===r)break;5===l.tag&&null!==u&&(l=u,o?null!=(s=Ne(n,i))&&a.unshift(Hr(n,s,l)):o||null!=(s=Ne(n,i))&&a.push(Hr(n,s,l))),n=n.return}0!==a.length&&e.push({event:t,listeners:a})}var Yr=/\r\n?/g,Kr=/\u0000|\uFFFD/g;function Jr(e){return("string"==typeof e?e:""+e).replace(Yr,"\n").replace(Kr,"")}function Xr(e,t,n){if(t=Jr(t),Jr(e)!==t&&n)throw Error(i(425))}function Zr(){}var eo=null,to=null;function no(e,t){return"textarea"===e||"noscript"===e||"string"==typeof t.children||"number"==typeof t.children||"object"==typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var ro="function"==typeof setTimeout?setTimeout:void 0,oo="function"==typeof clearTimeout?clearTimeout:void 0,io="function"==typeof Promise?Promise:void 0,ao="function"==typeof queueMicrotask?queueMicrotask:void 0!==io?function(e){return io.resolve(null).then(e).catch(lo)}:ro;function lo(e){setTimeout((function(){throw e}))}function so(e,t){var n=t,r=0;do{var o=n.nextSibling;if(e.removeChild(n),o&&8===o.nodeType)if("/$"===(n=o.data)){if(0===r)return e.removeChild(o),void Wt(t);r--}else"$"!==n&&"$?"!==n&&"$!"!==n||r++;n=o}while(n);Wt(t)}function uo(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 co(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||"$!"===n||"$?"===n){if(0===t)return e;t--}else"/$"===n&&t++}e=e.previousSibling}return null}var fo=Math.random().toString(36).slice(2),po="__reactFiber$"+fo,mo="__reactProps$"+fo,ho="__reactContainer$"+fo,go="__reactEvents$"+fo,yo="__reactListeners$"+fo,bo="__reactHandles$"+fo;function vo(e){var t=e[po];if(t)return t;for(var n=e.parentNode;n;){if(t=n[ho]||n[po]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=co(e);null!==e;){if(n=e[po])return n;e=co(e)}return t}n=(e=n).parentNode}return null}function wo(e){return!(e=e[po]||e[ho])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function Eo(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(i(33))}function So(e){return e[mo]||null}var xo=[],ko=-1;function Oo(e){return{current:e}}function Co(e){0>ko||(e.current=xo[ko],xo[ko]=null,ko--)}function Po(e,t){ko++,xo[ko]=e.current,e.current=t}var Io={},Do=Oo(Io),_o=Oo(!1),Ro=Io;function No(e,t){var n=e.type.contextTypes;if(!n)return Io;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o,i={};for(o in n)i[o]=t[o];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function To(e){return null!=e.childContextTypes}function jo(){Co(_o),Co(Do)}function Ao(e,t,n){if(Do.current!==Io)throw Error(i(168));Po(Do,t),Po(_o,n)}function Mo(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,"function"!=typeof r.getChildContext)return n;for(var o in r=r.getChildContext())if(!(o in t))throw Error(i(108,$(e)||"Unknown",o));return L({},n,r)}function Lo(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Io,Ro=Do.current,Po(Do,e),Po(_o,_o.current),!0}function Bo(e,t,n){var r=e.stateNode;if(!r)throw Error(i(169));n?(e=Mo(e,t,Ro),r.__reactInternalMemoizedMergedChildContext=e,Co(_o),Co(Do),Po(Do,e)):Co(_o),Po(_o,n)}var Fo=null,zo=!1,Uo=!1;function Wo(e){null===Fo?Fo=[e]:Fo.push(e)}function $o(){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,$o),t}finally{vt=t,Uo=!1}}return null}var Go=[],Ho=0,Vo=null,qo=0,Qo=[],Yo=0,Ko=null,Jo=1,Xo="";function Zo(e,t){Go[Ho++]=qo,Go[Ho++]=Vo,Vo=e,qo=t}function ei(e,t,n){Qo[Yo++]=Jo,Qo[Yo++]=Xo,Qo[Yo++]=Ko,Ko=e;var r=Jo;e=Xo;var o=32-at(r)-1;r&=~(1<<o),n+=1;var i=32-at(t)+o;if(30<i){var a=o-o%5;i=(r&(1<<a)-1).toString(32),r>>=a,o-=a,Jo=1<<32-at(t)+o|n<<o|r,Xo=i+e}else Jo=1<<i|n<<o|r,Xo=e}function ti(e){null!==e.return&&(Zo(e,1),ei(e,1,0))}function ni(e){for(;e===Vo;)Vo=Go[--Ho],Go[Ho]=null,qo=Go[--Ho],Go[Ho]=null;for(;e===Ko;)Ko=Qo[--Yo],Qo[Yo]=null,Xo=Qo[--Yo],Qo[Yo]=null,Jo=Qo[--Yo],Qo[Yo]=null}var ri=null,oi=null,ii=!1,ai=null;function li(e,t){var n=Nu(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 si(e,t){switch(e.tag){case 5:var n=e.type;return null!==(t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,ri=e,oi=uo(t.firstChild),!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,ri=e,oi=null,!0);case 13:return null!==(t=8!==t.nodeType?null:t)&&(n=null!==Ko?{id:Jo,overflow:Xo}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},(n=Nu(18,null,null,0)).stateNode=t,n.return=e,e.child=n,ri=e,oi=null,!0);default:return!1}}function ui(e){return 0!=(1&e.mode)&&0==(128&e.flags)}function ci(e){if(ii){var t=oi;if(t){var n=t;if(!si(e,t)){if(ui(e))throw Error(i(418));t=uo(n.nextSibling);var r=ri;t&&si(e,t)?li(r,n):(e.flags=-4097&e.flags|2,ii=!1,ri=e)}}else{if(ui(e))throw Error(i(418));e.flags=-4097&e.flags|2,ii=!1,ri=e}}}function di(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;ri=e}function fi(e){if(e!==ri)return!1;if(!ii)return di(e),ii=!0,!1;var t;if((t=3!==e.tag)&&!(t=5!==e.tag)&&(t="head"!==(t=e.type)&&"body"!==t&&!no(e.type,e.memoizedProps)),t&&(t=oi)){if(ui(e))throw pi(),Error(i(418));for(;t;)li(e,t),t=uo(t.nextSibling)}if(di(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(i(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var n=e.data;if("/$"===n){if(0===t){oi=uo(e.nextSibling);break e}t--}else"$"!==n&&"$!"!==n&&"$?"!==n||t++}e=e.nextSibling}oi=null}}else oi=ri?uo(e.stateNode.nextSibling):null;return!0}function pi(){for(var e=oi;e;)e=uo(e.nextSibling)}function mi(){oi=ri=null,ii=!1}function hi(e){null===ai?ai=[e]:ai.push(e)}var gi=w.ReactCurrentBatchConfig;function yi(e,t){if(e&&e.defaultProps){for(var n in t=L({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}var bi=Oo(null),vi=null,wi=null,Ei=null;function Si(){Ei=wi=vi=null}function xi(e){var t=bi.current;Co(bi),e._currentValue=t}function ki(e,t,n){for(;null!==e;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,null!==r&&(r.childLanes|=t)):null!==r&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Oi(e,t){vi=e,Ei=wi=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(0!=(e.lanes&t)&&(wl=!0),e.firstContext=null)}function Ci(e){var t=e._currentValue;if(Ei!==e)if(e={context:e,memoizedValue:t,next:null},null===wi){if(null===vi)throw Error(i(308));wi=e,vi.dependencies={lanes:0,firstContext:e}}else wi=wi.next=e;return t}var Pi=null;function Ii(e){null===Pi?Pi=[e]:Pi.push(e)}function Di(e,t,n,r){var o=t.interleaved;return null===o?(n.next=n,Ii(t)):(n.next=o.next,o.next=n),t.interleaved=n,_i(e,r)}function _i(e,t){e.lanes|=t;var n=e.alternate;for(null!==n&&(n.lanes|=t),n=e,e=e.return;null!==e;)e.childLanes|=t,null!==(n=e.alternate)&&(n.childLanes|=t),n=e,e=e.return;return 3===n.tag?n.stateNode:null}var Ri=!1;function Ni(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Ti(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function ji(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Ai(e,t,n){var r=e.updateQueue;if(null===r)return null;if(r=r.shared,0!=(2&Ds)){var o=r.pending;return null===o?t.next=t:(t.next=o.next,o.next=t),r.pending=t,_i(e,n)}return null===(o=r.interleaved)?(t.next=t,Ii(r)):(t.next=o.next,o.next=t),r.interleaved=t,_i(e,n)}function Mi(e,t,n){if(null!==(t=t.updateQueue)&&(t=t.shared,0!=(4194240&n))){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,bt(e,n)}}function Li(e,t){var n=e.updateQueue,r=e.alternate;if(null!==r&&n===(r=r.updateQueue)){var o=null,i=null;if(null!==(n=n.firstBaseUpdate)){do{var a={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};null===i?o=i=a:i=i.next=a,n=n.next}while(null!==n);null===i?o=i=t:i=i.next=t}else o=i=t;return n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:i,shared:r.shared,effects:r.effects},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Bi(e,t,n,r){var o=e.updateQueue;Ri=!1;var i=o.firstBaseUpdate,a=o.lastBaseUpdate,l=o.shared.pending;if(null!==l){o.shared.pending=null;var s=l,u=s.next;s.next=null,null===a?i=u:a.next=u,a=s;var c=e.alternate;null!==c&&(l=(c=c.updateQueue).lastBaseUpdate)!==a&&(null===l?c.firstBaseUpdate=u:l.next=u,c.lastBaseUpdate=s)}if(null!==i){var d=o.baseState;for(a=0,c=u=s=null,l=i;;){var f=l.lane,p=l.eventTime;if((r&f)===f){null!==c&&(c=c.next={eventTime:p,lane:0,tag:l.tag,payload:l.payload,callback:l.callback,next:null});e:{var m=e,h=l;switch(f=t,p=n,h.tag){case 1:if("function"==typeof(m=h.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=h.payload)?m.call(p,d,f):m))break e;d=L({},d,f);break e;case 2:Ri=!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===c?(u=c=p,s=d):c=c.next=p,a|=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===c&&(s=d),o.baseState=s,o.firstBaseUpdate=u,o.lastBaseUpdate=c,null!==(t=o.shared.interleaved)){o=t;do{a|=o.lane,o=o.next}while(o!==t)}else null===i&&(o.shared.lanes=0);Ls|=a,e.lanes=a,e.memoizedState=d}}function Fi(e,t,n){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var r=e[t],o=r.callback;if(null!==o){if(r.callback=null,r=n,"function"!=typeof o)throw Error(i(191,o));o.call(r)}}}var zi=(new r.Component).refs;function Ui(e,t,n,r){n=null==(n=n(r,t=e.memoizedState))?t:L({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}var Wi={isMounted:function(e){return!!(e=e._reactInternals)&&We(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=tu(),o=nu(e),i=ji(r,o);i.payload=t,null!=n&&(i.callback=n),null!==(t=Ai(e,i,o))&&(ru(t,e,o,r),Mi(t,e,o))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=tu(),o=nu(e),i=ji(r,o);i.tag=1,i.payload=t,null!=n&&(i.callback=n),null!==(t=Ai(e,i,o))&&(ru(t,e,o,r),Mi(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=tu(),r=nu(e),o=ji(n,r);o.tag=2,null!=t&&(o.callback=t),null!==(t=Ai(e,o,r))&&(ru(t,e,r,n),Mi(t,e,r))}};function $i(e,t,n,r,o,i,a){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,i,a):!(t.prototype&&t.prototype.isPureReactComponent&&sr(n,r)&&sr(o,i))}function Gi(e,t,n){var r=!1,o=Io,i=t.contextType;return"object"==typeof i&&null!==i?i=Ci(i):(o=To(t)?Ro:Do.current,i=(r=null!=(r=t.contextTypes))?No(e,o):Io),t=new t(n,i),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=Wi,e.stateNode=t,t._reactInternals=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=i),t}function Hi(e,t,n,r){e=t.state,"function"==typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"==typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&Wi.enqueueReplaceState(t,t.state,null)}function Vi(e,t,n,r){var o=e.stateNode;o.props=n,o.state=e.memoizedState,o.refs=zi,Ni(e);var i=t.contextType;"object"==typeof i&&null!==i?o.context=Ci(i):(i=To(t)?Ro:Do.current,o.context=No(e,i)),o.state=e.memoizedState,"function"==typeof(i=t.getDerivedStateFromProps)&&(Ui(e,t,i,n),o.state=e.memoizedState),"function"==typeof t.getDerivedStateFromProps||"function"==typeof o.getSnapshotBeforeUpdate||"function"!=typeof o.UNSAFE_componentWillMount&&"function"!=typeof o.componentWillMount||(t=o.state,"function"==typeof o.componentWillMount&&o.componentWillMount(),"function"==typeof o.UNSAFE_componentWillMount&&o.UNSAFE_componentWillMount(),t!==o.state&&Wi.enqueueReplaceState(o,o.state,null),Bi(e,n,o,r),o.state=e.memoizedState),"function"==typeof o.componentDidMount&&(e.flags|=4194308)}function qi(e,t,n){if(null!==(e=n.ref)&&"function"!=typeof e&&"object"!=typeof e){if(n._owner){if(n=n._owner){if(1!==n.tag)throw Error(i(309));var r=n.stateNode}if(!r)throw Error(i(147,e));var o=r,a=""+e;return null!==t&&null!==t.ref&&"function"==typeof t.ref&&t.ref._stringRef===a?t.ref:(t=function(e){var t=o.refs;t===zi&&(t=o.refs={}),null===e?delete t[a]:t[a]=e},t._stringRef=a,t)}if("string"!=typeof e)throw Error(i(284));if(!n._owner)throw Error(i(290,e))}return e}function Qi(e,t){throw e=Object.prototype.toString.call(t),Error(i(31,"[object Object]"===e?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Yi(e){return(0,e._init)(e._payload)}function Ki(e){function t(t,n){if(e){var r=t.deletions;null===r?(t.deletions=[n],t.flags|=16):r.push(n)}}function n(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function r(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function o(e,t){return(e=ju(e,t)).index=0,e.sibling=null,e}function a(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.flags|=2,n):r:(t.flags|=2,n):(t.flags|=1048576,n)}function l(t){return e&&null===t.alternate&&(t.flags|=2),t}function s(e,t,n,r){return null===t||6!==t.tag?((t=Bu(n,e.mode,r)).return=e,t):((t=o(t,n)).return=e,t)}function u(e,t,n,r){var i=n.type;return i===x?d(e,t,n.props.children,r,n.key):null!==t&&(t.elementType===i||"object"==typeof i&&null!==i&&i.$$typeof===N&&Yi(i)===t.type)?((r=o(t,n.props)).ref=qi(e,t,n),r.return=e,r):((r=Au(n.type,n.key,n.props,null,e.mode,r)).ref=qi(e,t,n),r.return=e,r)}function c(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=Fu(n,e.mode,r)).return=e,t):((t=o(t,n.children||[])).return=e,t)}function d(e,t,n,r,i){return null===t||7!==t.tag?((t=Mu(n,e.mode,r,i)).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=Bu(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case E:return(n=Au(t.type,t.key,t.props,null,e.mode,n)).ref=qi(e,null,t),n.return=e,n;case S:return(t=Fu(t,e.mode,n)).return=e,t;case N:return f(e,(0,t._init)(t._payload),n)}if(te(t)||A(t))return(t=Mu(t,e.mode,n,null)).return=e,t;Qi(e,t)}return null}function p(e,t,n,r){var o=null!==t?t.key:null;if("string"==typeof n&&""!==n||"number"==typeof n)return null!==o?null:s(e,t,""+n,r);if("object"==typeof n&&null!==n){switch(n.$$typeof){case E:return n.key===o?u(e,t,n,r):null;case S:return n.key===o?c(e,t,n,r):null;case N:return p(e,t,(o=n._init)(n._payload),r)}if(te(n)||A(n))return null!==o?null:d(e,t,n,r,null);Qi(e,n)}return null}function m(e,t,n,r,o){if("string"==typeof r&&""!==r||"number"==typeof r)return s(t,e=e.get(n)||null,""+r,o);if("object"==typeof r&&null!==r){switch(r.$$typeof){case E:return u(t,e=e.get(null===r.key?n:r.key)||null,r,o);case S:return c(t,e=e.get(null===r.key?n:r.key)||null,r,o);case N:return m(e,t,n,(0,r._init)(r._payload),o)}if(te(r)||A(r))return d(t,e=e.get(n)||null,r,o,null);Qi(t,r)}return null}function h(o,i,l,s){for(var u=null,c=null,d=i,h=i=0,g=null;null!==d&&h<l.length;h++){d.index>h?(g=d,d=null):g=d.sibling;var y=p(o,d,l[h],s);if(null===y){null===d&&(d=g);break}e&&d&&null===y.alternate&&t(o,d),i=a(y,i,h),null===c?u=y:c.sibling=y,c=y,d=g}if(h===l.length)return n(o,d),ii&&Zo(o,h),u;if(null===d){for(;h<l.length;h++)null!==(d=f(o,l[h],s))&&(i=a(d,i,h),null===c?u=d:c.sibling=d,c=d);return ii&&Zo(o,h),u}for(d=r(o,d);h<l.length;h++)null!==(g=m(d,o,h,l[h],s))&&(e&&null!==g.alternate&&d.delete(null===g.key?h:g.key),i=a(g,i,h),null===c?u=g:c.sibling=g,c=g);return e&&d.forEach((function(e){return t(o,e)})),ii&&Zo(o,h),u}function g(o,l,s,u){var c=A(s);if("function"!=typeof c)throw Error(i(150));if(null==(s=c.call(s)))throw Error(i(151));for(var d=c=null,h=l,g=l=0,y=null,b=s.next();null!==h&&!b.done;g++,b=s.next()){h.index>g?(y=h,h=null):y=h.sibling;var v=p(o,h,b.value,u);if(null===v){null===h&&(h=y);break}e&&h&&null===v.alternate&&t(o,h),l=a(v,l,g),null===d?c=v:d.sibling=v,d=v,h=y}if(b.done)return n(o,h),ii&&Zo(o,g),c;if(null===h){for(;!b.done;g++,b=s.next())null!==(b=f(o,b.value,u))&&(l=a(b,l,g),null===d?c=b:d.sibling=b,d=b);return ii&&Zo(o,g),c}for(h=r(o,h);!b.done;g++,b=s.next())null!==(b=m(h,o,g,b.value,u))&&(e&&null!==b.alternate&&h.delete(null===b.key?g:b.key),l=a(b,l,g),null===d?c=b:d.sibling=b,d=b);return e&&h.forEach((function(e){return t(o,e)})),ii&&Zo(o,g),c}return function e(r,i,a,s){if("object"==typeof a&&null!==a&&a.type===x&&null===a.key&&(a=a.props.children),"object"==typeof a&&null!==a){switch(a.$$typeof){case E:e:{for(var u=a.key,c=i;null!==c;){if(c.key===u){if((u=a.type)===x){if(7===c.tag){n(r,c.sibling),(i=o(c,a.props.children)).return=r,r=i;break e}}else if(c.elementType===u||"object"==typeof u&&null!==u&&u.$$typeof===N&&Yi(u)===c.type){n(r,c.sibling),(i=o(c,a.props)).ref=qi(r,c,a),i.return=r,r=i;break e}n(r,c);break}t(r,c),c=c.sibling}a.type===x?((i=Mu(a.props.children,r.mode,s,a.key)).return=r,r=i):((s=Au(a.type,a.key,a.props,null,r.mode,s)).ref=qi(r,i,a),s.return=r,r=s)}return l(r);case S:e:{for(c=a.key;null!==i;){if(i.key===c){if(4===i.tag&&i.stateNode.containerInfo===a.containerInfo&&i.stateNode.implementation===a.implementation){n(r,i.sibling),(i=o(i,a.children||[])).return=r,r=i;break e}n(r,i);break}t(r,i),i=i.sibling}(i=Fu(a,r.mode,s)).return=r,r=i}return l(r);case N:return e(r,i,(c=a._init)(a._payload),s)}if(te(a))return h(r,i,a,s);if(A(a))return g(r,i,a,s);Qi(r,a)}return"string"==typeof a&&""!==a||"number"==typeof a?(a=""+a,null!==i&&6===i.tag?(n(r,i.sibling),(i=o(i,a)).return=r,r=i):(n(r,i),(i=Bu(a,r.mode,s)).return=r,r=i),l(r)):n(r,i)}}var Ji=Ki(!0),Xi=Ki(!1),Zi={},ea=Oo(Zi),ta=Oo(Zi),na=Oo(Zi);function ra(e){if(e===Zi)throw Error(i(174));return e}function oa(e,t){switch(Po(na,t),Po(ta,e),Po(ea,Zi),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:se(null,"");break;default:t=se(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}Co(ea),Po(ea,t)}function ia(){Co(ea),Co(ta),Co(na)}function aa(e){ra(na.current);var t=ra(ea.current),n=se(t,e.type);t!==n&&(Po(ta,e),Po(ea,n))}function la(e){ta.current===e&&(Co(ea),Co(ta))}var sa=Oo(0);function ua(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!=(128&t.flags))return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var ca=[];function da(){for(var e=0;e<ca.length;e++)ca[e]._workInProgressVersionPrimary=null;ca.length=0}var fa=w.ReactCurrentDispatcher,pa=w.ReactCurrentBatchConfig,ma=0,ha=null,ga=null,ya=null,ba=!1,va=!1,wa=0,Ea=0;function Sa(){throw Error(i(321))}function xa(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!lr(e[n],t[n]))return!1;return!0}function ka(e,t,n,r,o,a){if(ma=a,ha=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,fa.current=null===e||null===e.memoizedState?ll:sl,e=n(r,o),va){a=0;do{if(va=!1,wa=0,25<=a)throw Error(i(301));a+=1,ya=ga=null,t.updateQueue=null,fa.current=ul,e=n(r,o)}while(va)}if(fa.current=al,t=null!==ga&&null!==ga.next,ma=0,ya=ga=ha=null,ba=!1,t)throw Error(i(300));return e}function Oa(){var e=0!==wa;return wa=0,e}function Ca(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===ya?ha.memoizedState=ya=e:ya=ya.next=e,ya}function Pa(){if(null===ga){var e=ha.alternate;e=null!==e?e.memoizedState:null}else e=ga.next;var t=null===ya?ha.memoizedState:ya.next;if(null!==t)ya=t,ga=e;else{if(null===e)throw Error(i(310));e={memoizedState:(ga=e).memoizedState,baseState:ga.baseState,baseQueue:ga.baseQueue,queue:ga.queue,next:null},null===ya?ha.memoizedState=ya=e:ya=ya.next=e}return ya}function Ia(e,t){return"function"==typeof t?t(e):t}function Da(e){var t=Pa(),n=t.queue;if(null===n)throw Error(i(311));n.lastRenderedReducer=e;var r=ga,o=r.baseQueue,a=n.pending;if(null!==a){if(null!==o){var l=o.next;o.next=a.next,a.next=l}r.baseQueue=o=a,n.pending=null}if(null!==o){a=o.next,r=r.baseState;var s=l=null,u=null,c=a;do{var d=c.lane;if((ma&d)===d)null!==u&&(u=u.next={lane:0,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null}),r=c.hasEagerState?c.eagerState:e(r,c.action);else{var f={lane:d,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null};null===u?(s=u=f,l=r):u=u.next=f,ha.lanes|=d,Ls|=d}c=c.next}while(null!==c&&c!==a);null===u?l=r:u.next=s,lr(r,t.memoizedState)||(wl=!0),t.memoizedState=r,t.baseState=l,t.baseQueue=u,n.lastRenderedState=r}if(null!==(e=n.interleaved)){o=e;do{a=o.lane,ha.lanes|=a,Ls|=a,o=o.next}while(o!==e)}else null===o&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function _a(e){var t=Pa(),n=t.queue;if(null===n)throw Error(i(311));n.lastRenderedReducer=e;var r=n.dispatch,o=n.pending,a=t.memoizedState;if(null!==o){n.pending=null;var l=o=o.next;do{a=e(a,l.action),l=l.next}while(l!==o);lr(a,t.memoizedState)||(wl=!0),t.memoizedState=a,null===t.baseQueue&&(t.baseState=a),n.lastRenderedState=a}return[a,r]}function Ra(){}function Na(e,t){var n=ha,r=Pa(),o=t(),a=!lr(r.memoizedState,o);if(a&&(r.memoizedState=o,wl=!0),r=r.queue,Ga(Aa.bind(null,n,r,e),[e]),r.getSnapshot!==t||a||null!==ya&&1&ya.memoizedState.tag){if(n.flags|=2048,Fa(9,ja.bind(null,n,r,o,t),void 0,null),null===_s)throw Error(i(349));0!=(30&ma)||Ta(n,t,o)}return o}function Ta(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},null===(t=ha.updateQueue)?(t={lastEffect:null,stores:null},ha.updateQueue=t,t.stores=[e]):null===(n=t.stores)?t.stores=[e]:n.push(e)}function ja(e,t,n,r){t.value=n,t.getSnapshot=r,Ma(t)&&La(e)}function Aa(e,t,n){return n((function(){Ma(t)&&La(e)}))}function Ma(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!lr(e,n)}catch(e){return!0}}function La(e){var t=_i(e,1);null!==t&&ru(t,e,1,-1)}function Ba(e){var t=Ca();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Ia,lastRenderedState:e},t.queue=e,e=e.dispatch=nl.bind(null,ha,e),[t.memoizedState,e]}function Fa(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=ha.updateQueue)?(t={lastEffect:null,stores:null},ha.updateQueue=t,t.lastEffect=e.next=e):null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function za(){return Pa().memoizedState}function Ua(e,t,n,r){var o=Ca();ha.flags|=e,o.memoizedState=Fa(1|t,n,void 0,void 0===r?null:r)}function Wa(e,t,n,r){var o=Pa();r=void 0===r?null:r;var i=void 0;if(null!==ga){var a=ga.memoizedState;if(i=a.destroy,null!==r&&xa(r,a.deps))return void(o.memoizedState=Fa(t,n,i,r))}ha.flags|=e,o.memoizedState=Fa(1|t,n,i,r)}function $a(e,t){return Ua(8390656,8,e,t)}function Ga(e,t){return Wa(2048,8,e,t)}function Ha(e,t){return Wa(4,2,e,t)}function Va(e,t){return Wa(4,4,e,t)}function qa(e,t){return"function"==typeof t?(e=e(),t(e),function(){t(null)}):null!=t?(e=e(),t.current=e,function(){t.current=null}):void 0}function Qa(e,t,n){return n=null!=n?n.concat([e]):null,Wa(4,4,qa.bind(null,t,e),n)}function Ya(){}function Ka(e,t){var n=Pa();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&xa(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Ja(e,t){var n=Pa();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&xa(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Xa(e,t,n){return 0==(21&ma)?(e.baseState&&(e.baseState=!1,wl=!0),e.memoizedState=n):(lr(n,t)||(n=ht(),ha.lanes|=n,Ls|=n,e.baseState=!0),t)}function Za(e,t){var n=vt;vt=0!==n&&4>n?n:4,e(!0);var r=pa.transition;pa.transition={};try{e(!1),t()}finally{vt=n,pa.transition=r}}function el(){return Pa().memoizedState}function tl(e,t,n){var r=nu(e);n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},rl(e)?ol(t,n):null!==(n=Di(e,t,n,r))&&(ru(n,e,r,tu()),il(n,t,r))}function nl(e,t,n){var r=nu(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(rl(e))ol(t,o);else{var i=e.alternate;if(0===e.lanes&&(null===i||0===i.lanes)&&null!==(i=t.lastRenderedReducer))try{var a=t.lastRenderedState,l=i(a,n);if(o.hasEagerState=!0,o.eagerState=l,lr(l,a)){var s=t.interleaved;return null===s?(o.next=o,Ii(t)):(o.next=s.next,s.next=o),void(t.interleaved=o)}}catch(e){}null!==(n=Di(e,t,o,r))&&(ru(n,e,r,o=tu()),il(n,t,r))}}function rl(e){var t=e.alternate;return e===ha||null!==t&&t===ha}function ol(e,t){va=ba=!0;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function il(e,t,n){if(0!=(4194240&n)){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,bt(e,n)}}var al={readContext:Ci,useCallback:Sa,useContext:Sa,useEffect:Sa,useImperativeHandle:Sa,useInsertionEffect:Sa,useLayoutEffect:Sa,useMemo:Sa,useReducer:Sa,useRef:Sa,useState:Sa,useDebugValue:Sa,useDeferredValue:Sa,useTransition:Sa,useMutableSource:Sa,useSyncExternalStore:Sa,useId:Sa,unstable_isNewReconciler:!1},ll={readContext:Ci,useCallback:function(e,t){return Ca().memoizedState=[e,void 0===t?null:t],e},useContext:Ci,useEffect:$a,useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,Ua(4194308,4,qa.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Ua(4194308,4,e,t)},useInsertionEffect:function(e,t){return Ua(4,2,e,t)},useMemo:function(e,t){var n=Ca();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Ca();return t=void 0!==n?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=tl.bind(null,ha,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},Ca().memoizedState=e},useState:Ba,useDebugValue:Ya,useDeferredValue:function(e){return Ca().memoizedState=e},useTransition:function(){var e=Ba(!1),t=e[0];return e=Za.bind(null,e[1]),Ca().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=ha,o=Ca();if(ii){if(void 0===n)throw Error(i(407));n=n()}else{if(n=t(),null===_s)throw Error(i(349));0!=(30&ma)||Ta(r,t,n)}o.memoizedState=n;var a={value:n,getSnapshot:t};return o.queue=a,$a(Aa.bind(null,r,a,e),[e]),r.flags|=2048,Fa(9,ja.bind(null,r,a,n,t),void 0,null),n},useId:function(){var e=Ca(),t=_s.identifierPrefix;if(ii){var n=Xo;t=":"+t+"R"+(n=(Jo&~(1<<32-at(Jo)-1)).toString(32)+n),0<(n=wa++)&&(t+="H"+n.toString(32)),t+=":"}else t=":"+t+"r"+(n=Ea++).toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},sl={readContext:Ci,useCallback:Ka,useContext:Ci,useEffect:Ga,useImperativeHandle:Qa,useInsertionEffect:Ha,useLayoutEffect:Va,useMemo:Ja,useReducer:Da,useRef:za,useState:function(){return Da(Ia)},useDebugValue:Ya,useDeferredValue:function(e){return Xa(Pa(),ga.memoizedState,e)},useTransition:function(){return[Da(Ia)[0],Pa().memoizedState]},useMutableSource:Ra,useSyncExternalStore:Na,useId:el,unstable_isNewReconciler:!1},ul={readContext:Ci,useCallback:Ka,useContext:Ci,useEffect:Ga,useImperativeHandle:Qa,useInsertionEffect:Ha,useLayoutEffect:Va,useMemo:Ja,useReducer:_a,useRef:za,useState:function(){return _a(Ia)},useDebugValue:Ya,useDeferredValue:function(e){var t=Pa();return null===ga?t.memoizedState=e:Xa(t,ga.memoizedState,e)},useTransition:function(){return[_a(Ia)[0],Pa().memoizedState]},useMutableSource:Ra,useSyncExternalStore:Na,useId:el,unstable_isNewReconciler:!1};function cl(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=ji(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Hs||(Hs=!0,Vs=r),fl(0,t)},n}function hl(e,t,n){(n=ji(-1,n)).tag=3;var r=e.type.getDerivedStateFromError;if("function"==typeof r){var o=t.value;n.payload=function(){return r(o)},n.callback=function(){fl(0,t)}}var i=e.stateNode;return null!==i&&"function"==typeof i.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 gl(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=Cu.bind(null,e,t,n),t.then(e,e))}function yl(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 bl(e,t,n,r,o){return 0==(1&e.mode)?(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,1===n.tag&&(null===n.alternate?n.tag=17:((t=ji(-1,1)).tag=2,Ai(n,t,1))),n.lanes|=1),e):(e.flags|=65536,e.lanes=o,e)}var vl=w.ReactCurrentOwner,wl=!1;function El(e,t,n,r){t.child=null===e?Xi(t,null,n,r):Ji(t,e.child,n,r)}function Sl(e,t,n,r,o){n=n.render;var i=t.ref;return Oi(t,o),r=ka(e,t,n,r,i,o),n=Oa(),null===e||wl?(ii&&n&&ti(t),t.flags|=1,El(e,t,r,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Hl(e,t,o))}function xl(e,t,n,r,o){if(null===e){var i=n.type;return"function"!=typeof i||Tu(i)||void 0!==i.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=Au(n.type,null,r,t,t.mode,o)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=i,kl(e,t,i,r,o))}if(i=e.child,0==(e.lanes&o)){var a=i.memoizedProps;if((n=null!==(n=n.compare)?n:sr)(a,r)&&e.ref===t.ref)return Hl(e,t,o)}return t.flags|=1,(e=ju(i,r)).ref=t.ref,e.return=t,t.child=e}function kl(e,t,n,r,o){if(null!==e){var i=e.memoizedProps;if(sr(i,r)&&e.ref===t.ref){if(wl=!1,t.pendingProps=r=i,0==(e.lanes&o))return t.lanes=e.lanes,Hl(e,t,o);0!=(131072&e.flags)&&(wl=!0)}}return Pl(e,t,n,r,o)}function Ol(e,t,n){var r=t.pendingProps,o=r.children,i=null!==e?e.memoizedState:null;if("hidden"===r.mode)if(0==(1&t.mode))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Po(js,Ts),Ts|=n;else{if(0==(1073741824&n))return e=null!==i?i.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Po(js,Ts),Ts|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=null!==i?i.baseLanes:n,Po(js,Ts),Ts|=r}else null!==i?(r=i.baseLanes|n,t.memoizedState=null):r=n,Po(js,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 i=To(n)?Ro:Do.current;return i=No(t,i),Oi(t,o),n=ka(e,t,n,r,i,o),r=Oa(),null===e||wl?(ii&&r&&ti(t),t.flags|=1,El(e,t,n,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Hl(e,t,o))}function Il(e,t,n,r,o){if(To(n)){var i=!0;Lo(t)}else i=!1;if(Oi(t,o),null===t.stateNode)Gl(e,t),Gi(t,n,r),Vi(t,n,r,o),r=!0;else if(null===e){var a=t.stateNode,l=t.memoizedProps;a.props=l;var s=a.context,u=n.contextType;u="object"==typeof u&&null!==u?Ci(u):No(t,u=To(n)?Ro:Do.current);var c=n.getDerivedStateFromProps,d="function"==typeof c||"function"==typeof a.getSnapshotBeforeUpdate;d||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(l!==r||s!==u)&&Hi(t,a,r,u),Ri=!1;var f=t.memoizedState;a.state=f,Bi(t,r,a,o),s=t.memoizedState,l!==r||f!==s||_o.current||Ri?("function"==typeof c&&(Ui(t,n,c,r),s=t.memoizedState),(l=Ri||$i(t,n,l,r,f,s,u))?(d||"function"!=typeof a.UNSAFE_componentWillMount&&"function"!=typeof a.componentWillMount||("function"==typeof a.componentWillMount&&a.componentWillMount(),"function"==typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount()),"function"==typeof a.componentDidMount&&(t.flags|=4194308)):("function"==typeof a.componentDidMount&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=s),a.props=r,a.state=s,a.context=u,r=l):("function"==typeof a.componentDidMount&&(t.flags|=4194308),r=!1)}else{a=t.stateNode,Ti(e,t),l=t.memoizedProps,u=t.type===t.elementType?l:yi(t.type,l),a.props=u,d=t.pendingProps,f=a.context,s="object"==typeof(s=n.contextType)&&null!==s?Ci(s):No(t,s=To(n)?Ro:Do.current);var p=n.getDerivedStateFromProps;(c="function"==typeof p||"function"==typeof a.getSnapshotBeforeUpdate)||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(l!==d||f!==s)&&Hi(t,a,r,s),Ri=!1,f=t.memoizedState,a.state=f,Bi(t,r,a,o);var m=t.memoizedState;l!==d||f!==m||_o.current||Ri?("function"==typeof p&&(Ui(t,n,p,r),m=t.memoizedState),(u=Ri||$i(t,n,u,r,f,m,s)||!1)?(c||"function"!=typeof a.UNSAFE_componentWillUpdate&&"function"!=typeof a.componentWillUpdate||("function"==typeof a.componentWillUpdate&&a.componentWillUpdate(r,m,s),"function"==typeof a.UNSAFE_componentWillUpdate&&a.UNSAFE_componentWillUpdate(r,m,s)),"function"==typeof a.componentDidUpdate&&(t.flags|=4),"function"==typeof a.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!=typeof a.componentDidUpdate||l===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),"function"!=typeof a.getSnapshotBeforeUpdate||l===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=m),a.props=r,a.state=m,a.context=s,r=u):("function"!=typeof a.componentDidUpdate||l===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),"function"!=typeof a.getSnapshotBeforeUpdate||l===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),r=!1)}return Dl(e,t,n,r,i,o)}function Dl(e,t,n,r,o,i){Cl(e,t);var a=0!=(128&t.flags);if(!r&&!a)return o&&Bo(t,n,!1),Hl(e,t,i);r=t.stateNode,vl.current=t;var l=a&&"function"!=typeof n.getDerivedStateFromError?null:r.render();return t.flags|=1,null!==e&&a?(t.child=Ji(t,e.child,null,i),t.child=Ji(t,null,l,i)):El(e,t,l,i),t.memoizedState=r.state,o&&Bo(t,n,!0),t.child}function _l(e){var t=e.stateNode;t.pendingContext?Ao(0,t.pendingContext,t.pendingContext!==t.context):t.context&&Ao(0,t.context,!1),oa(e,t.containerInfo)}function Rl(e,t,n,r,o){return mi(),hi(o),t.flags|=256,El(e,t,n,r),t.child}var Nl,Tl,jl,Al,Ml={dehydrated:null,treeContext:null,retryLane:0};function Ll(e){return{baseLanes:e,cachePool:null,transitions:null}}function Bl(e,t,n){var r,o=t.pendingProps,a=sa.current,l=!1,s=0!=(128&t.flags);if((r=s)||(r=(null===e||null!==e.memoizedState)&&0!=(2&a)),r?(l=!0,t.flags&=-129):null!==e&&null===e.memoizedState||(a|=1),Po(sa,1&a),null===e)return ci(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=Lu(s,o,0,null),e=Mu(e,o,n,null),l.return=t,e.return=t,l.sibling=e,t.child=l,t.child.memoizedState=Ll(n),t.memoizedState=Ml,e):Fl(t,s));if(null!==(a=e.memoizedState)&&null!==(r=a.dehydrated))return function(e,t,n,r,o,a,l){if(n)return 256&t.flags?(t.flags&=-257,zl(e,t,l,r=dl(Error(i(422))))):null!==t.memoizedState?(t.child=e.child,t.flags|=128,null):(a=r.fallback,o=t.mode,r=Lu({mode:"visible",children:r.children},o,0,null),(a=Mu(a,o,l,null)).flags|=2,r.return=t,a.return=t,r.sibling=a,t.child=r,0!=(1&t.mode)&&Ji(t,e.child,null,l),t.child.memoizedState=Ll(l),t.memoizedState=Ml,a);if(0==(1&t.mode))return zl(e,t,l,null);if("$!"===o.data){if(r=o.nextSibling&&o.nextSibling.dataset)var s=r.dgst;return r=s,zl(e,t,l,r=dl(a=Error(i(419)),r,void 0))}if(s=0!=(l&e.childLanes),wl||s){if(null!==(r=_s)){switch(l&-l){case 4:o=2;break;case 16:o=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:o=32;break;case 536870912:o=268435456;break;default:o=0}0!==(o=0!=(o&(r.suspendedLanes|l))?0:o)&&o!==a.retryLane&&(a.retryLane=o,_i(e,o),ru(r,e,o,-1))}return gu(),zl(e,t,l,r=dl(Error(i(421))))}return"$?"===o.data?(t.flags|=128,t.child=e.child,t=Iu.bind(null,e),o._reactRetry=t,null):(e=a.treeContext,oi=uo(o.nextSibling),ri=t,ii=!0,ai=null,null!==e&&(Qo[Yo++]=Jo,Qo[Yo++]=Xo,Qo[Yo++]=Ko,Jo=e.id,Xo=e.overflow,Ko=t),(t=Fl(t,r.children)).flags|=4096,t)}(e,t,s,o,r,a,n);if(l){l=o.fallback,s=t.mode,r=(a=e.child).sibling;var u={mode:"hidden",children:o.children};return 0==(1&s)&&t.child!==a?((o=t.child).childLanes=0,o.pendingProps=u,t.deletions=null):(o=ju(a,u)).subtreeFlags=14680064&a.subtreeFlags,null!==r?l=ju(r,l):(l=Mu(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)?Ll(n):{baseLanes:s.baseLanes|n,cachePool:null,transitions:s.transitions},l.memoizedState=s,l.childLanes=e.childLanes&~n,t.memoizedState=Ml,o}return e=(l=e.child).sibling,o=ju(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=Lu({mode:"visible",children:t},e.mode,0,null)).return=e,e.child=t}function zl(e,t,n,r){return null!==r&&hi(r),Ji(t,e.child,null,n),(e=Fl(t,t.pendingProps.children)).flags|=2,t.memoizedState=null,e}function Ul(e,t,n){e.lanes|=t;var r=e.alternate;null!==r&&(r.lanes|=t),ki(e.return,t,n)}function Wl(e,t,n,r,o){var i=e.memoizedState;null===i?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:o}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=r,i.tail=n,i.tailMode=o)}function $l(e,t,n){var r=t.pendingProps,o=r.revealOrder,i=r.tail;if(El(e,t,r.children,n),0!=(2&(r=sa.current)))r=1&r|2,t.flags|=128;else{if(null!==e&&0!=(128&e.flags))e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&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(sa,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===ua(e)&&(o=n),n=n.sibling;null===(n=o)?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),Wl(t,!1,o,n,i);break;case"backwards":for(n=null,o=t.child,t.child=null;null!==o;){if(null!==(e=o.alternate)&&null===ua(e)){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}Wl(t,!0,n,null,i);break;case"together":Wl(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Gl(e,t){0==(1&t.mode)&&null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Hl(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),Ls|=t.lanes,0==(n&t.childLanes))return null;if(null!==e&&t.child!==e.child)throw Error(i(153));if(null!==t.child){for(n=ju(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=ju(e,e.pendingProps)).return=t;n.sibling=null}return t.child}function Vl(e,t){if(!ii)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function ql(e){var t=null!==e.alternate&&e.alternate.child===e.child,n=0,r=0;if(t)for(var o=e.child;null!==o;)n|=o.lanes|o.childLanes,r|=14680064&o.subtreeFlags,r|=14680064&o.flags,o.return=e,o=o.sibling;else for(o=e.child;null!==o;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags,r|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function Ql(e,t,n){var r=t.pendingProps;switch(ni(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return ql(t),null;case 1:case 17:return To(t.type)&&jo(),ql(t),null;case 3:return r=t.stateNode,ia(),Co(_o),Co(Do),da(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),null!==e&&null!==e.child||(fi(t)?t.flags|=4:null===e||e.memoizedState.isDehydrated&&0==(256&t.flags)||(t.flags|=1024,null!==ai&&(lu(ai),ai=null))),Tl(e,t),ql(t),null;case 5:la(t);var o=ra(na.current);if(n=t.type,null!==e&&null!=t.stateNode)jl(e,t,n,r,o),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(null===t.stateNode)throw Error(i(166));return ql(t),null}if(e=ra(ea.current),fi(t)){r=t.stateNode,n=t.type;var a=t.memoizedProps;switch(r[po]=t,r[mo]=a,e=0!=(1&t.mode),n){case"dialog":Fr("cancel",r),Fr("close",r);break;case"iframe":case"object":case"embed":Fr("load",r);break;case"video":case"audio":for(o=0;o<Ar.length;o++)Fr(Ar[o],r);break;case"source":Fr("error",r);break;case"img":case"image":case"link":Fr("error",r),Fr("load",r);break;case"details":Fr("toggle",r);break;case"input":K(r,a),Fr("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!a.multiple},Fr("invalid",r);break;case"textarea":oe(r,a),Fr("invalid",r)}for(var s in be(n,a),o=null,a)if(a.hasOwnProperty(s)){var u=a[s];"children"===s?"string"==typeof u?r.textContent!==u&&(!0!==a.suppressHydrationWarning&&Xr(r.textContent,u,e),o=["children",u]):"number"==typeof u&&r.textContent!==""+u&&(!0!==a.suppressHydrationWarning&&Xr(r.textContent,u,e),o=["children",""+u]):l.hasOwnProperty(s)&&null!=u&&"onScroll"===s&&Fr("scroll",r)}switch(n){case"input":V(r),Z(r,a,!0);break;case"textarea":V(r),ae(r);break;case"select":case"option":break;default:"function"==typeof a.onClick&&(r.onclick=Zr)}r=o,t.updateQueue=r,null!==r&&(t.flags|=4)}else{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,Nl(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<Ar.length;o++)Fr(Ar[o],e);o=r;break;case"source":Fr("error",e),o=r;break;case"img":case"image":case"link":Fr("error",e),Fr("load",e),o=r;break;case"details":Fr("toggle",e),o=r;break;case"input":K(e,r),o=Y(e,r),Fr("invalid",e);break;case"option":default:o=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},o=L({},r,{value:void 0}),Fr("invalid",e);break;case"textarea":oe(e,r),o=re(e,r),Fr("invalid",e)}for(a in be(n,o),u=o)if(u.hasOwnProperty(a)){var c=u[a];"style"===a?ge(e,c):"dangerouslySetInnerHTML"===a?null!=(c=c?c.__html:void 0)&&de(e,c):"children"===a?"string"==typeof c?("textarea"!==n||""!==c)&&fe(e,c):"number"==typeof c&&fe(e,""+c):"suppressContentEditableWarning"!==a&&"suppressHydrationWarning"!==a&&"autoFocus"!==a&&(l.hasOwnProperty(a)?null!=c&&"onScroll"===a&&Fr("scroll",e):null!=c&&v(e,a,c,s))}switch(n){case"input":V(e),Z(e,r,!1);break;case"textarea":V(e),ae(e);break;case"option":null!=r.value&&e.setAttribute("value",""+G(r.value));break;case"select":e.multiple=!!r.multiple,null!=(a=r.value)?ne(e,!!r.multiple,a,!1):null!=r.defaultValue&&ne(e,!!r.multiple,r.defaultValue,!0);break;default:"function"==typeof o.onClick&&(e.onclick=Zr)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}null!==t.ref&&(t.flags|=512,t.flags|=2097152)}return ql(t),null;case 6:if(e&&null!=t.stateNode)Al(e,t,e.memoizedProps,r);else{if("string"!=typeof r&&null===t.stateNode)throw Error(i(166));if(n=ra(na.current),ra(ea.current),fi(t)){if(r=t.stateNode,n=t.memoizedProps,r[po]=t,(a=r.nodeValue!==n)&&null!==(e=ri))switch(e.tag){case 3:Xr(r.nodeValue,n,0!=(1&e.mode));break;case 5:!0!==e.memoizedProps.suppressHydrationWarning&&Xr(r.nodeValue,n,0!=(1&e.mode))}a&&(t.flags|=4)}else(r=(9===n.nodeType?n:n.ownerDocument).createTextNode(r))[po]=t,t.stateNode=r}return ql(t),null;case 13:if(Co(sa),r=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(ii&&null!==oi&&0!=(1&t.mode)&&0==(128&t.flags))pi(),mi(),t.flags|=98560,a=!1;else if(a=fi(t),null!==r&&null!==r.dehydrated){if(null===e){if(!a)throw Error(i(318));if(!(a=null!==(a=t.memoizedState)?a.dehydrated:null))throw Error(i(317));a[po]=t}else mi(),0==(128&t.flags)&&(t.memoizedState=null),t.flags|=4;ql(t),a=!1}else null!==ai&&(lu(ai),ai=null),a=!0;if(!a)return 65536&t.flags?t:null}return 0!=(128&t.flags)?(t.lanes=n,t):((r=null!==r)!=(null!==e&&null!==e.memoizedState)&&r&&(t.child.flags|=8192,0!=(1&t.mode)&&(null===e||0!=(1&sa.current)?0===As&&(As=3):gu())),null!==t.updateQueue&&(t.flags|=4),ql(t),null);case 4:return ia(),Tl(e,t),null===e&&Wr(t.stateNode.containerInfo),ql(t),null;case 10:return xi(t.type._context),ql(t),null;case 19:if(Co(sa),null===(a=t.memoizedState))return ql(t),null;if(r=0!=(128&t.flags),null===(s=a.rendering))if(r)Vl(a,!1);else{if(0!==As||null!==e&&0!=(128&e.flags))for(e=t.child;null!==e;){if(null!==(s=ua(e))){for(t.flags|=128,Vl(a,!1),null!==(r=s.updateQueue)&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;null!==n;)e=r,(a=n).flags&=14680066,null===(s=a.alternate)?(a.childLanes=0,a.lanes=e,a.child=null,a.subtreeFlags=0,a.memoizedProps=null,a.memoizedState=null,a.updateQueue=null,a.dependencies=null,a.stateNode=null):(a.childLanes=s.childLanes,a.lanes=s.lanes,a.child=s.child,a.subtreeFlags=0,a.deletions=null,a.memoizedProps=s.memoizedProps,a.memoizedState=s.memoizedState,a.updateQueue=s.updateQueue,a.type=s.type,e=s.dependencies,a.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return Po(sa,1&sa.current|2),t.child}e=e.sibling}null!==a.tail&&Je()>$s&&(t.flags|=128,r=!0,Vl(a,!1),t.lanes=4194304)}else{if(!r)if(null!==(e=ua(s))){if(t.flags|=128,r=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.flags|=4),Vl(a,!0),null===a.tail&&"hidden"===a.tailMode&&!s.alternate&&!ii)return ql(t),null}else 2*Je()-a.renderingStartTime>$s&&1073741824!==n&&(t.flags|=128,r=!0,Vl(a,!1),t.lanes=4194304);a.isBackwards?(s.sibling=t.child,t.child=s):(null!==(n=a.last)?n.sibling=s:t.child=s,a.last=s)}return null!==a.tail?(t=a.tail,a.rendering=t,a.tail=t.sibling,a.renderingStartTime=Je(),t.sibling=null,n=sa.current,Po(sa,r?1&n|2:1&n),t):(ql(t),null);case 22:case 23:return fu(),r=null!==t.memoizedState,null!==e&&null!==e.memoizedState!==r&&(t.flags|=8192),r&&0!=(1&t.mode)?0!=(1073741824&Ts)&&(ql(t),6&t.subtreeFlags&&(t.flags|=8192)):ql(t),null;case 24:case 25:return null}throw Error(i(156,t.tag))}function Yl(e,t){switch(ni(t),t.tag){case 1:return To(t.type)&&jo(),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return ia(),Co(_o),Co(Do),da(),0!=(65536&(e=t.flags))&&0==(128&e)?(t.flags=-65537&e|128,t):null;case 5:return la(t),null;case 13:if(Co(sa),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(i(340));mi()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return Co(sa),null;case 4:return ia(),null;case 10:return xi(t.type._context),null;case 22:case 23:return fu(),null;default:return null}}Nl=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},Tl=function(){},jl=function(e,t,n,r){var o=e.memoizedProps;if(o!==r){e=t.stateNode,ra(ea.current);var i,a=null;switch(n){case"input":o=Y(e,o),r=Y(e,r),a=[];break;case"select":o=L({},o,{value:void 0}),r=L({},r,{value:void 0}),a=[];break;case"textarea":o=re(e,o),r=re(e,r),a=[];break;default:"function"!=typeof o.onClick&&"function"==typeof r.onClick&&(e.onclick=Zr)}for(c in be(n,r),n=null,o)if(!r.hasOwnProperty(c)&&o.hasOwnProperty(c)&&null!=o[c])if("style"===c){var s=o[c];for(i in s)s.hasOwnProperty(i)&&(n||(n={}),n[i]="")}else"dangerouslySetInnerHTML"!==c&&"children"!==c&&"suppressContentEditableWarning"!==c&&"suppressHydrationWarning"!==c&&"autoFocus"!==c&&(l.hasOwnProperty(c)?a||(a=[]):(a=a||[]).push(c,null));for(c in r){var u=r[c];if(s=null!=o?o[c]:void 0,r.hasOwnProperty(c)&&u!==s&&(null!=u||null!=s))if("style"===c)if(s){for(i in s)!s.hasOwnProperty(i)||u&&u.hasOwnProperty(i)||(n||(n={}),n[i]="");for(i in u)u.hasOwnProperty(i)&&s[i]!==u[i]&&(n||(n={}),n[i]=u[i])}else n||(a||(a=[]),a.push(c,n)),n=u;else"dangerouslySetInnerHTML"===c?(u=u?u.__html:void 0,s=s?s.__html:void 0,null!=u&&s!==u&&(a=a||[]).push(c,u)):"children"===c?"string"!=typeof u&&"number"!=typeof u||(a=a||[]).push(c,""+u):"suppressContentEditableWarning"!==c&&"suppressHydrationWarning"!==c&&(l.hasOwnProperty(c)?(null!=u&&"onScroll"===c&&Fr("scroll",e),a||s===u||(a=[])):(a=a||[]).push(c,u))}n&&(a=a||[]).push("style",n);var c=a;(t.updateQueue=c)&&(t.flags|=4)}},Al=function(e,t,n,r){n!==r&&(t.flags|=4)};var Kl=!1,Jl=!1,Xl="function"==typeof WeakSet?WeakSet:Set,Zl=null;function es(e,t){var n=e.ref;if(null!==n)if("function"==typeof n)try{n(null)}catch(n){Ou(e,t,n)}else n.current=null}function ts(e,t,n){try{n()}catch(n){Ou(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 i=o.destroy;o.destroy=void 0,void 0!==i&&ts(t,n,i)}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 is(e){var t=e.ref;if(null!==t){var n=e.stateNode;e.tag,e=n,"function"==typeof t?t(e):t.current=e}}function as(e){var t=e.alternate;null!==t&&(e.alternate=null,as(t)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&null!==(t=e.stateNode)&&(delete t[po],delete t[mo],delete t[go],delete t[yo],delete t[bo]),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function ls(e){return 5===e.tag||3===e.tag||4===e.tag}function ss(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||ls(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;5!==e.tag&&6!==e.tag&&18!==e.tag;){if(2&e.flags)continue e;if(null===e.child||4===e.tag)continue e;e.child.return=e,e=e.child}if(!(2&e.flags))return e.stateNode}}function us(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?8===n.nodeType?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(8===n.nodeType?(t=n.parentNode).insertBefore(e,n):(t=n).appendChild(e),null!=(n=n._reactRootContainer)||null!==t.onclick||(t.onclick=Zr));else if(4!==r&&null!==(e=e.child))for(us(e,t,n),e=e.sibling;null!==e;)us(e,t,n),e=e.sibling}function cs(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==r&&null!==(e=e.child))for(cs(e,t,n),e=e.sibling;null!==e;)cs(e,t,n),e=e.sibling}var ds=null,fs=!1;function ps(e,t,n){for(n=n.child;null!==n;)ms(e,t,n),n=n.sibling}function ms(e,t,n){if(it&&"function"==typeof it.onCommitFiberUnmount)try{it.onCommitFiberUnmount(ot,n)}catch(e){}switch(n.tag){case 5:Jl||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),Wt(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(!Jl&&null!==(r=n.updateQueue)&&null!==(r=r.lastEffect)){o=r=r.next;do{var i=o,a=i.destroy;i=i.tag,void 0!==a&&(0!=(2&i)||0!=(4&i))&&ts(n,t,a),o=o.next}while(o!==r)}ps(e,t,n);break;case 1:if(!Jl&&(es(n,t),"function"==typeof(r=n.stateNode).componentWillUnmount))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(e){Ou(n,t,e)}ps(e,t,n);break;case 21:ps(e,t,n);break;case 22:1&n.mode?(Jl=(r=Jl)||null!==n.memoizedState,ps(e,t,n),Jl=r):ps(e,t,n);break;default:ps(e,t,n)}}function hs(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new Xl),t.forEach((function(t){var r=Du.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))}))}}function gs(e,t){var n=t.deletions;if(null!==n)for(var r=0;r<n.length;r++){var o=n[r];try{var a=e,l=t,s=l;e:for(;null!==s;){switch(s.tag){case 5:ds=s.stateNode,fs=!1;break e;case 3:case 4:ds=s.stateNode.containerInfo,fs=!0;break e}s=s.return}if(null===ds)throw Error(i(160));ms(a,l,o),ds=null,fs=!1;var u=o.alternate;null!==u&&(u.return=null),o.return=null}catch(e){Ou(o,t,e)}}if(12854&t.subtreeFlags)for(t=t.child;null!==t;)ys(t,e),t=t.sibling}function ys(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(gs(t,e),bs(e),4&r){try{rs(3,e,e.return),os(3,e)}catch(t){Ou(e,e.return,t)}try{rs(5,e,e.return)}catch(t){Ou(e,e.return,t)}}break;case 1:gs(t,e),bs(e),512&r&&null!==n&&es(n,n.return);break;case 5:if(gs(t,e),bs(e),512&r&&null!==n&&es(n,n.return),32&e.flags){var o=e.stateNode;try{fe(o,"")}catch(t){Ou(e,e.return,t)}}if(4&r&&null!=(o=e.stateNode)){var a=e.memoizedProps,l=null!==n?n.memoizedProps:a,s=e.type,u=e.updateQueue;if(e.updateQueue=null,null!==u)try{"input"===s&&"radio"===a.type&&null!=a.name&&J(o,a),ve(s,l);var c=ve(s,a);for(l=0;l<u.length;l+=2){var d=u[l],f=u[l+1];"style"===d?ge(o,f):"dangerouslySetInnerHTML"===d?de(o,f):"children"===d?fe(o,f):v(o,d,f,c)}switch(s){case"input":X(o,a);break;case"textarea":ie(o,a);break;case"select":var p=o._wrapperState.wasMultiple;o._wrapperState.wasMultiple=!!a.multiple;var m=a.value;null!=m?ne(o,!!a.multiple,m,!1):p!==!!a.multiple&&(null!=a.defaultValue?ne(o,!!a.multiple,a.defaultValue,!0):ne(o,!!a.multiple,a.multiple?[]:"",!1))}o[mo]=a}catch(t){Ou(e,e.return,t)}}break;case 6:if(gs(t,e),bs(e),4&r){if(null===e.stateNode)throw Error(i(162));o=e.stateNode,a=e.memoizedProps;try{o.nodeValue=a}catch(t){Ou(e,e.return,t)}}break;case 3:if(gs(t,e),bs(e),4&r&&null!==n&&n.memoizedState.isDehydrated)try{Wt(t.containerInfo)}catch(t){Ou(e,e.return,t)}break;case 4:default:gs(t,e),bs(e);break;case 13:gs(t,e),bs(e),8192&(o=e.child).flags&&(a=null!==o.memoizedState,o.stateNode.isHidden=a,!a||null!==o.alternate&&null!==o.alternate.memoizedState||(Ws=Je())),4&r&&hs(e);break;case 22:if(d=null!==n&&null!==n.memoizedState,1&e.mode?(Jl=(c=Jl)||d,gs(t,e),Jl=c):gs(t,e),bs(e),8192&r){if(c=null!==e.memoizedState,(e.stateNode.isHidden=c)&&!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 h=p.stateNode;if("function"==typeof h.componentWillUnmount){r=p,n=p.return;try{t=r,h.props=t.memoizedProps,h.state=t.memoizedState,h.componentWillUnmount()}catch(e){Ou(r,n,e)}}break;case 5:es(p,p.return);break;case 22:if(null!==p.memoizedState){Ss(f);continue}}null!==m?(m.return=p,Zl=m):Ss(f)}d=d.sibling}e:for(d=null,f=e;;){if(5===f.tag){if(null===d){d=f;try{o=f.stateNode,c?"function"==typeof(a=o.style).setProperty?a.setProperty("display","none","important"):a.display="none":(s=f.stateNode,l=null!=(u=f.memoizedProps.style)&&u.hasOwnProperty("display")?u.display:null,s.style.display=he("display",l))}catch(t){Ou(e,e.return,t)}}}else if(6===f.tag){if(null===d)try{f.stateNode.nodeValue=c?"":f.memoizedProps}catch(t){Ou(e,e.return,t)}}else if((22!==f.tag&&23!==f.tag||null===f.memoizedState||f===e)&&null!==f.child){f.child.return=f,f=f.child;continue}if(f===e)break e;for(;null===f.sibling;){if(null===f.return||f.return===e)break e;d===f&&(d=null),f=f.return}d===f&&(d=null),f.sibling.return=f.return,f=f.sibling}}break;case 19:gs(t,e),bs(e),4&r&&hs(e);case 21:}}function bs(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(i(160))}switch(r.tag){case 5:var o=r.stateNode;32&r.flags&&(fe(o,""),r.flags&=-33),cs(e,ss(e),o);break;case 3:case 4:var a=r.stateNode.containerInfo;us(e,ss(e),a);break;default:throw Error(i(161))}}catch(t){Ou(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,i=o.child;if(22===o.tag&&r){var a=null!==o.memoizedState||Kl;if(!a){var l=o.alternate,s=null!==l&&null!==l.memoizedState||Jl;l=Kl;var u=Jl;if(Kl=a,(Jl=s)&&!u)for(Zl=o;null!==Zl;)s=(a=Zl).child,22===a.tag&&null!==a.memoizedState?xs(o):null!==s?(s.return=a,Zl=s):xs(o);for(;null!==i;)Zl=i,ws(i,t,n),i=i.sibling;Zl=o,Kl=l,Jl=u}Es(e)}else 0!=(8772&o.subtreeFlags)&&null!==i?(i.return=o,Zl=i):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:Jl||os(5,t);break;case 1:var r=t.stateNode;if(4&t.flags&&!Jl)if(null===n)r.componentDidMount();else{var o=t.elementType===t.type?n.memoizedProps:yi(t.type,n.memoizedProps);r.componentDidUpdate(o,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var a=t.updateQueue;null!==a&&Fi(t,a,r);break;case 3:var l=t.updateQueue;if(null!==l){if(n=null,null!==t.child)switch(t.child.tag){case 5:case 1:n=t.child.stateNode}Fi(t,l,n)}break;case 5:var s=t.stateNode;if(null===n&&4&t.flags){n=s;var u=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":u.autoFocus&&n.focus();break;case"img":u.src&&(n.src=u.src)}}break;case 6:case 4:case 12:case 19:case 17:case 21:case 22:case 23:case 25:break;case 13:if(null===t.memoizedState){var c=t.alternate;if(null!==c){var d=c.memoizedState;if(null!==d){var f=d.dehydrated;null!==f&&Wt(f)}}}break;default:throw Error(i(163))}Jl||512&t.flags&&is(t)}catch(e){Ou(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 Ss(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 xs(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){Ou(t,n,e)}break;case 1:var r=t.stateNode;if("function"==typeof r.componentDidMount){var o=t.return;try{r.componentDidMount()}catch(e){Ou(t,o,e)}}var i=t.return;try{is(t)}catch(e){Ou(t,i,e)}break;case 5:var a=t.return;try{is(t)}catch(e){Ou(t,a,e)}}}catch(e){Ou(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,Is=w.ReactCurrentBatchConfig,Ds=0,_s=null,Rs=null,Ns=0,Ts=0,js=Oo(0),As=0,Ms=null,Ls=0,Bs=0,Fs=0,zs=null,Us=null,Ws=0,$s=1/0,Gs=null,Hs=!1,Vs=null,qs=null,Qs=!1,Ys=null,Ks=0,Js=0,Xs=null,Zs=-1,eu=0;function tu(){return 0!=(6&Ds)?Je():-1!==Zs?Zs:Zs=Je()}function nu(e){return 0==(1&e.mode)?1:0!=(2&Ds)&&0!==Ns?Ns&-Ns:null!==gi.transition?(0===eu&&(eu=ht()),eu):0!==(e=vt)?e:e=void 0===(e=window.event)?16:Kt(e.type)}function ru(e,t,n,r){if(50<Js)throw Js=0,Xs=null,Error(i(185));yt(e,n,r),0!=(2&Ds)&&e===_s||(e===_s&&(0==(2&Ds)&&(Bs|=n),4===As&&su(e,Ns)),ou(e,r),1===n&&0===Ds&&0==(1&t.mode)&&($s=Je()+500,zo&&$o()))}function ou(e,t){var n=e.callbackNode;!function(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,o=e.expirationTimes,i=e.pendingLanes;0<i;){var a=31-at(i),l=1<<a,s=o[a];-1===s?0!=(l&n)&&0==(l&r)||(o[a]=pt(l,t)):s<=t&&(e.expiredLanes|=l),i&=~l}}(e,t);var r=ft(e,e===_s?Ns:0);if(0===r)null!==n&&Qe(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(null!=n&&Qe(n),1===t)0===e.tag?function(e){zo=!0,Wo(e)}(uu.bind(null,e)):Wo(uu.bind(null,e)),ao((function(){0==(6&Ds)&&$o()})),n=null;else{switch(wt(r)){case 1:n=Ze;break;case 4:n=et;break;case 16:default:n=tt;break;case 536870912:n=rt}n=_u(n,iu.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function iu(e,t){if(Zs=-1,eu=0,0!=(6&Ds))throw Error(i(327));var n=e.callbackNode;if(xu()&&e.callbackNode!==n)return null;var r=ft(e,e===_s?Ns:0);if(0===r)return null;if(0!=(30&r)||0!=(r&e.expiredLanes)||t)t=yu(e,r);else{t=r;var o=Ds;Ds|=2;var a=hu();for(_s===e&&Ns===t||(Gs=null,$s=Je()+500,pu(e,t));;)try{vu();break}catch(t){mu(e,t)}Si(),Cs.current=a,Ds=o,null!==Rs?t=0:(_s=null,Ns=0,t=As)}if(0!==t){if(2===t&&0!==(o=mt(e))&&(r=o,t=au(e,o)),1===t)throw n=Ms,pu(e,0),su(e,r),ou(e,Je()),n;if(6===t)su(e,r);else{if(o=e.current.alternate,0==(30&r)&&!function(e){for(var t=e;;){if(16384&t.flags){var n=t.updateQueue;if(null!==n&&null!==(n=n.stores))for(var r=0;r<n.length;r++){var o=n[r],i=o.getSnapshot;o=o.value;try{if(!lr(i(),o))return!1}catch(e){return!1}}}if(n=t.child,16384&t.subtreeFlags&&null!==n)n.return=t,t=n;else{if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}(o)&&(2===(t=yu(e,r))&&0!==(a=mt(e))&&(r=a,t=au(e,a)),1===t))throw n=Ms,pu(e,0),su(e,r),ou(e,Je()),n;switch(e.finishedWork=o,e.finishedLanes=r,t){case 0:case 1:throw Error(i(345));case 2:case 5:Su(e,Us,Gs);break;case 3:if(su(e,r),(130023424&r)===r&&10<(t=Ws+500-Je())){if(0!==ft(e,0))break;if(((o=e.suspendedLanes)&r)!==r){tu(),e.pingedLanes|=e.suspendedLanes&o;break}e.timeoutHandle=ro(Su.bind(null,e,Us,Gs),t);break}Su(e,Us,Gs);break;case 4:if(su(e,r),(4194240&r)===r)break;for(t=e.eventTimes,o=-1;0<r;){var l=31-at(r);a=1<<l,(l=t[l])>o&&(o=l),r&=~a}if(r=o,10<(r=(120>(r=Je()-r)?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Os(r/1960))-r)){e.timeoutHandle=ro(Su.bind(null,e,Us,Gs),r);break}Su(e,Us,Gs);break;default:throw Error(i(329))}}}return ou(e,Je()),e.callbackNode===n?iu.bind(null,e):null}function au(e,t){var n=zs;return e.current.memoizedState.isDehydrated&&(pu(e,t).flags|=256),2!==(e=yu(e,t))&&(t=Us,Us=n,null!==t&&lu(t)),e}function lu(e){null===Us?Us=e:Us.push.apply(Us,e)}function su(e,t){for(t&=~Fs,t&=~Bs,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-at(t),r=1<<n;e[n]=-1,t&=~r}}function uu(e){if(0!=(6&Ds))throw Error(i(327));xu();var t=ft(e,0);if(0==(1&t))return ou(e,Je()),null;var n=yu(e,t);if(0!==e.tag&&2===n){var r=mt(e);0!==r&&(t=r,n=au(e,r))}if(1===n)throw n=Ms,pu(e,0),su(e,t),ou(e,Je()),n;if(6===n)throw Error(i(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Su(e,Us,Gs),ou(e,Je()),null}function cu(e,t){var n=Ds;Ds|=1;try{return e(t)}finally{0===(Ds=n)&&($s=Je()+500,zo&&$o())}}function du(e){null!==Ys&&0===Ys.tag&&0==(6&Ds)&&xu();var t=Ds;Ds|=1;var n=Is.transition,r=vt;try{if(Is.transition=null,vt=1,e)return e()}finally{vt=r,Is.transition=n,0==(6&(Ds=t))&&$o()}}function fu(){Ts=js.current,Co(js)}function pu(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,oo(n)),null!==Rs)for(n=Rs.return;null!==n;){var r=n;switch(ni(r),r.tag){case 1:null!=(r=r.type.childContextTypes)&&jo();break;case 3:ia(),Co(_o),Co(Do),da();break;case 5:la(r);break;case 4:ia();break;case 13:case 19:Co(sa);break;case 10:xi(r.type._context);break;case 22:case 23:fu()}n=n.return}if(_s=e,Rs=e=ju(e.current,null),Ns=Ts=t,As=0,Ms=null,Fs=Bs=Ls=0,Us=zs=null,null!==Pi){for(t=0;t<Pi.length;t++)if(null!==(r=(n=Pi[t]).interleaved)){n.interleaved=null;var o=r.next,i=n.pending;if(null!==i){var a=i.next;i.next=o,r.next=a}n.pending=r}Pi=null}return e}function mu(e,t){for(;;){var n=Rs;try{if(Si(),fa.current=al,ba){for(var r=ha.memoizedState;null!==r;){var o=r.queue;null!==o&&(o.pending=null),r=r.next}ba=!1}if(ma=0,ya=ga=ha=null,va=!1,wa=0,Ps.current=null,null===n||null===n.return){As=1,Ms=t,Rs=null;break}e:{var a=e,l=n.return,s=n,u=t;if(t=Ns,s.flags|=32768,null!==u&&"object"==typeof u&&"function"==typeof u.then){var c=u,d=s,f=d.tag;if(0==(1&d.mode)&&(0===f||11===f||15===f)){var p=d.alternate;p?(d.updateQueue=p.updateQueue,d.memoizedState=p.memoizedState,d.lanes=p.lanes):(d.updateQueue=null,d.memoizedState=null)}var m=yl(l);if(null!==m){m.flags&=-257,bl(m,l,s,0,t),1&m.mode&&gl(a,c,t),u=c;var h=(t=m).updateQueue;if(null===h){var g=new Set;g.add(u),t.updateQueue=g}else h.add(u);break e}if(0==(1&t)){gl(a,c,t),gu();break e}u=Error(i(426))}else if(ii&&1&s.mode){var y=yl(l);if(null!==y){0==(65536&y.flags)&&(y.flags|=256),bl(y,l,s,0,t),hi(cl(u,s));break e}}a=u=cl(u,s),4!==As&&(As=2),null===zs?zs=[a]:zs.push(a),a=l;do{switch(a.tag){case 3:a.flags|=65536,t&=-t,a.lanes|=t,Li(a,ml(0,u,t));break e;case 1:s=u;var b=a.type,v=a.stateNode;if(0==(128&a.flags)&&("function"==typeof b.getDerivedStateFromError||null!==v&&"function"==typeof v.componentDidCatch&&(null===qs||!qs.has(v)))){a.flags|=65536,t&=-t,a.lanes|=t,Li(a,hl(a,s,t));break e}}a=a.return}while(null!==a)}Eu(n)}catch(e){t=e,Rs===n&&null!==n&&(Rs=n=n.return);continue}break}}function hu(){var e=Cs.current;return Cs.current=al,null===e?al:e}function gu(){0!==As&&3!==As&&2!==As||(As=4),null===_s||0==(268435455&Ls)&&0==(268435455&Bs)||su(_s,Ns)}function yu(e,t){var n=Ds;Ds|=2;var r=hu();for(_s===e&&Ns===t||(Gs=null,pu(e,t));;)try{bu();break}catch(t){mu(e,t)}if(Si(),Ds=n,Cs.current=r,null!==Rs)throw Error(i(261));return _s=null,Ns=0,As}function bu(){for(;null!==Rs;)wu(Rs)}function vu(){for(;null!==Rs&&!Ye();)wu(Rs)}function wu(e){var t=ks(e.alternate,e,Ts);e.memoizedProps=e.pendingProps,null===t?Eu(e):Rs=t,Ps.current=null}function Eu(e){var t=e;do{var n=t.alternate;if(e=t.return,0==(32768&t.flags)){if(null!==(n=Ql(n,t,Ts)))return void(Rs=n)}else{if(null!==(n=Yl(n,t)))return n.flags&=32767,void(Rs=n);if(null===e)return As=6,void(Rs=null);e.flags|=32768,e.subtreeFlags=0,e.deletions=null}if(null!==(t=t.sibling))return void(Rs=t);Rs=t=e}while(null!==t);0===As&&(As=5)}function Su(e,t,n){var r=vt,o=Is.transition;try{Is.transition=null,vt=1,function(e,t,n,r){do{xu()}while(null!==Ys);if(0!=(6&Ds))throw Error(i(327));n=e.finishedWork;var o=e.finishedLanes;if(null===n)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(i(177));e.callbackNode=null,e.callbackPriority=0;var a=n.lanes|n.childLanes;if(function(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var o=31-at(n),i=1<<o;t[o]=0,r[o]=-1,e[o]=-1,n&=~i}}(e,a),e===_s&&(Rs=_s=null,Ns=0),0==(2064&n.subtreeFlags)&&0==(2064&n.flags)||Qs||(Qs=!0,_u(tt,(function(){return xu(),null}))),a=0!=(15990&n.flags),0!=(15990&n.subtreeFlags)||a){a=Is.transition,Is.transition=null;var l=vt;vt=1;var s=Ds;Ds|=4,Ps.current=null,function(e,t){if(eo=Gt,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,a=r.focusNode;r=r.focusOffset;try{n.nodeType,a.nodeType}catch(e){n=null;break e}var l=0,s=-1,u=-1,c=0,d=0,f=e,p=null;t:for(;;){for(var m;f!==n||0!==o&&3!==f.nodeType||(s=l+o),f!==a||0!==r&&3!==f.nodeType||(u=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&&++c===o&&(s=l),p===a&&++d===r&&(u=l),null!==(m=f.nextSibling))break;p=(f=p).parentNode}f=m}n=-1===s||-1===u?null:{start:s,end:u}}else n=null}n=n||{start:0,end:0}}else n=null;for(to={focusedElem:e,selectionRange:n},Gt=!1,Zl=t;null!==Zl;)if(e=(t=Zl).child,0!=(1028&t.subtreeFlags)&&null!==e)e.return=t,Zl=e;else for(;null!==Zl;){t=Zl;try{var h=t.alternate;if(0!=(1024&t.flags))switch(t.tag){case 0:case 11:case 15:case 5:case 6:case 4:case 17:break;case 1:if(null!==h){var g=h.memoizedProps,y=h.memoizedState,b=t.stateNode,v=b.getSnapshotBeforeUpdate(t.elementType===t.type?g:yi(t.type,g),y);b.__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(i(163))}}catch(e){Ou(t,t.return,e)}if(null!==(e=t.sibling)){e.return=t.return,Zl=e;break}Zl=t.return}h=ns,ns=!1}(e,n),ys(n,e),mr(to),Gt=!!eo,to=eo=null,e.current=n,vs(n,e,o),Ke(),Ds=s,vt=l,Is.transition=a}else e.current=n;if(Qs&&(Qs=!1,Ys=e,Ks=o),0===(a=e.pendingLanes)&&(qs=null),function(e){if(it&&"function"==typeof it.onCommitFiberRoot)try{it.onCommitFiberRoot(ot,e,void 0,128==(128&e.current.flags))}catch(e){}}(n.stateNode),ou(e,Je()),null!==t)for(r=e.onRecoverableError,n=0;n<t.length;n++)r((o=t[n]).value,{componentStack:o.stack,digest:o.digest});if(Hs)throw Hs=!1,e=Vs,Vs=null,e;0!=(1&Ks)&&0!==e.tag&&xu(),0!=(1&(a=e.pendingLanes))?e===Xs?Js++:(Js=0,Xs=e):Js=0,$o()}(e,t,n,r)}finally{Is.transition=o,vt=r}return null}function xu(){if(null!==Ys){var e=wt(Ks),t=Is.transition,n=vt;try{if(Is.transition=null,vt=16>e?16:e,null===Ys)var r=!1;else{if(e=Ys,Ys=null,Ks=0,0!=(6&Ds))throw Error(i(331));var o=Ds;for(Ds|=4,Zl=e.current;null!==Zl;){var a=Zl,l=a.child;if(0!=(16&Zl.flags)){var s=a.deletions;if(null!==s){for(var u=0;u<s.length;u++){var c=s[u];for(Zl=c;null!==Zl;){var d=Zl;switch(d.tag){case 0:case 11:case 15:rs(8,d,a)}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(as(d),d===c){Zl=null;break}if(null!==p){p.return=m,Zl=p;break}Zl=m}}}var h=a.alternate;if(null!==h){var g=h.child;if(null!==g){h.child=null;do{var y=g.sibling;g.sibling=null,g=y}while(null!==g)}}Zl=a}}if(0!=(2064&a.subtreeFlags)&&null!==l)l.return=a,Zl=l;else e:for(;null!==Zl;){if(0!=(2048&(a=Zl).flags))switch(a.tag){case 0:case 11:case 15:rs(9,a,a.return)}var b=a.sibling;if(null!==b){b.return=a.return,Zl=b;break e}Zl=a.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){Ou(s,s.return,e)}if(s===l){Zl=null;break e}var E=s.sibling;if(null!==E){E.return=s.return,Zl=E;break e}Zl=s.return}}if(Ds=o,$o(),it&&"function"==typeof it.onPostCommitFiberRoot)try{it.onPostCommitFiberRoot(ot,e)}catch(e){}r=!0}return r}finally{vt=n,Is.transition=t}}return!1}function ku(e,t,n){e=Ai(e,t=ml(0,t=cl(n,t),1),1),t=tu(),null!==e&&(yt(e,1,t),ou(e,t))}function Ou(e,t,n){if(3===e.tag)ku(e,e,n);else for(;null!==t;){if(3===t.tag){ku(t,e,n);break}if(1===t.tag){var r=t.stateNode;if("function"==typeof t.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===qs||!qs.has(r))){t=Ai(t,e=hl(t,e=cl(n,e),1),1),e=tu(),null!==t&&(yt(t,1,e),ou(t,e));break}}t=t.return}}function Cu(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),t=tu(),e.pingedLanes|=e.suspendedLanes&n,_s===e&&(Ns&n)===n&&(4===As||3===As&&(130023424&Ns)===Ns&&500>Je()-Ws?pu(e,0):Fs|=n),ou(e,t)}function Pu(e,t){0===t&&(0==(1&e.mode)?t=1:(t=ct,0==(130023424&(ct<<=1))&&(ct=4194304)));var n=tu();null!==(e=_i(e,t))&&(yt(e,t,n),ou(e,n))}function Iu(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),Pu(e,n)}function Du(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;null!==o&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(i(314))}null!==r&&r.delete(t),Pu(e,n)}function _u(e,t){return qe(e,t)}function Ru(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 Nu(e,t,n,r){return new Ru(e,t,n,r)}function Tu(e){return!(!(e=e.prototype)||!e.isReactComponent)}function ju(e,t){var n=e.alternate;return null===n?((n=Nu(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 Au(e,t,n,r,o,a){var l=2;if(r=e,"function"==typeof e)Tu(e)&&(l=1);else if("string"==typeof e)l=5;else e:switch(e){case x:return Mu(n.children,o,a,t);case k:l=8,o|=8;break;case O:return(e=Nu(12,n,t,2|o)).elementType=O,e.lanes=a,e;case D:return(e=Nu(13,n,t,o)).elementType=D,e.lanes=a,e;case _:return(e=Nu(19,n,t,o)).elementType=_,e.lanes=a,e;case T:return Lu(n,o,a,t);default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case C:l=10;break e;case P:l=9;break e;case I:l=11;break e;case R:l=14;break e;case N:l=16,r=null;break e}throw Error(i(130,null==e?e:typeof e,""))}return(t=Nu(l,n,t,o)).elementType=e,t.type=r,t.lanes=a,t}function Mu(e,t,n,r){return(e=Nu(7,e,r,t)).lanes=n,e}function Lu(e,t,n,r){return(e=Nu(22,e,r,t)).elementType=T,e.lanes=n,e.stateNode={isHidden:!1},e}function Bu(e,t,n){return(e=Nu(6,e,null,t)).lanes=n,e}function Fu(e,t,n){return(t=Nu(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function zu(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=gt(0),this.expirationTimes=gt(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=gt(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function Uu(e,t,n,r,o,i,a,l,s){return e=new zu(e,t,n,l,s),1===t?(t=1,!0===i&&(t|=8)):t=0,i=Nu(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Ni(i),e}function Wu(e){if(!e)return Io;e:{if(We(e=e._reactInternals)!==e||1!==e.tag)throw Error(i(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(To(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(null!==t);throw Error(i(171))}if(1===e.tag){var n=e.type;if(To(n))return Mo(e,n,t)}return t}function $u(e,t,n,r,o,i,a,l,s){return(e=Uu(n,r,!0,e,0,i,0,l,s)).context=Wu(null),n=e.current,(i=ji(r=tu(),o=nu(n))).callback=null!=t?t:null,Ai(n,i,o),e.current.lanes=o,yt(e,o,r),ou(e,r),e}function Gu(e,t,n,r){var o=t.current,i=tu(),a=nu(o);return n=Wu(n),null===t.context?t.context=n:t.pendingContext=n,(t=ji(i,a)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),null!==(e=Ai(o,t,a))&&(ru(e,o,a,i),Mi(e,o,a)),a}function Hu(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function Vu(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function qu(e,t){Vu(e,t),(e=e.alternate)&&Vu(e,t)}ks=function(e,t,n){if(null!==e)if(e.memoizedProps!==t.pendingProps||_o.current)wl=!0;else{if(0==(e.lanes&n)&&0==(128&t.flags))return wl=!1,function(e,t,n){switch(t.tag){case 3:_l(t),mi();break;case 5:aa(t);break;case 1:To(t.type)&&Lo(t);break;case 4:oa(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,o=t.memoizedProps.value;Po(bi,r._currentValue),r._currentValue=o;break;case 13:if(null!==(r=t.memoizedState))return null!==r.dehydrated?(Po(sa,1&sa.current),t.flags|=128,null):0!=(n&t.child.childLanes)?Bl(e,t,n):(Po(sa,1&sa.current),null!==(e=Hl(e,t,n))?e.sibling:null);Po(sa,1&sa.current);break;case 19:if(r=0!=(n&t.childLanes),0!=(128&e.flags)){if(r)return $l(e,t,n);t.flags|=128}if(null!==(o=t.memoizedState)&&(o.rendering=null,o.tail=null,o.lastEffect=null),Po(sa,sa.current),r)break;return null;case 22:case 23:return t.lanes=0,Ol(e,t,n)}return Hl(e,t,n)}(e,t,n);wl=0!=(131072&e.flags)}else wl=!1,ii&&0!=(1048576&t.flags)&&ei(t,qo,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Gl(e,t),e=t.pendingProps;var o=No(t,Do.current);Oi(t,n),o=ka(null,t,r,e,o,n);var a=Oa();return t.flags|=1,"object"==typeof o&&null!==o&&"function"==typeof o.render&&void 0===o.$$typeof?(t.tag=1,t.memoizedState=null,t.updateQueue=null,To(r)?(a=!0,Lo(t)):a=!1,t.memoizedState=null!==o.state&&void 0!==o.state?o.state:null,Ni(t),o.updater=Wi,t.stateNode=o,o._reactInternals=t,Vi(t,r,e,n),t=Dl(null,t,r,!0,a,n)):(t.tag=0,ii&&a&&ti(t),El(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Gl(e,t),e=t.pendingProps,r=(o=r._init)(r._payload),t.type=r,o=t.tag=function(e){if("function"==typeof e)return Tu(e)?1:0;if(null!=e){if((e=e.$$typeof)===I)return 11;if(e===R)return 14}return 2}(r),e=yi(r,e),o){case 0:t=Pl(null,t,r,e,n);break e;case 1:t=Il(null,t,r,e,n);break e;case 11:t=Sl(null,t,r,e,n);break e;case 14:t=xl(null,t,r,yi(r.type,e),n);break e}throw Error(i(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,Pl(e,t,r,o=t.elementType===r?o:yi(r,o),n);case 1:return r=t.type,o=t.pendingProps,Il(e,t,r,o=t.elementType===r?o:yi(r,o),n);case 3:e:{if(_l(t),null===e)throw Error(i(387));r=t.pendingProps,o=(a=t.memoizedState).element,Ti(e,t),Bi(t,r,null,n);var l=t.memoizedState;if(r=l.element,a.isDehydrated){if(a={element:r,isDehydrated:!1,cache:l.cache,pendingSuspenseBoundaries:l.pendingSuspenseBoundaries,transitions:l.transitions},t.updateQueue.baseState=a,t.memoizedState=a,256&t.flags){t=Rl(e,t,r,n,o=cl(Error(i(423)),t));break e}if(r!==o){t=Rl(e,t,r,n,o=cl(Error(i(424)),t));break e}for(oi=uo(t.stateNode.containerInfo.firstChild),ri=t,ii=!0,ai=null,n=Xi(t,null,r,n),t.child=n;n;)n.flags=-3&n.flags|4096,n=n.sibling}else{if(mi(),r===o){t=Hl(e,t,n);break e}El(e,t,r,n)}t=t.child}return t;case 5:return aa(t),null===e&&ci(t),r=t.type,o=t.pendingProps,a=null!==e?e.memoizedProps:null,l=o.children,no(r,o)?l=null:null!==a&&no(r,a)&&(t.flags|=32),Cl(e,t),El(e,t,l,n),t.child;case 6:return null===e&&ci(t),null;case 13:return Bl(e,t,n);case 4:return oa(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=Ji(t,null,r,n):El(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,Sl(e,t,r,o=t.elementType===r?o:yi(r,o),n);case 7:return El(e,t,t.pendingProps,n),t.child;case 8:case 12:return El(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,a=t.memoizedProps,l=o.value,Po(bi,r._currentValue),r._currentValue=l,null!==a)if(lr(a.value,l)){if(a.children===o.children&&!_o.current){t=Hl(e,t,n);break e}}else for(null!==(a=t.child)&&(a.return=t);null!==a;){var s=a.dependencies;if(null!==s){l=a.child;for(var u=s.firstContext;null!==u;){if(u.context===r){if(1===a.tag){(u=ji(-1,n&-n)).tag=2;var c=a.updateQueue;if(null!==c){var d=(c=c.shared).pending;null===d?u.next=u:(u.next=d.next,d.next=u),c.pending=u}}a.lanes|=n,null!==(u=a.alternate)&&(u.lanes|=n),ki(a.return,n,t),s.lanes|=n;break}u=u.next}}else if(10===a.tag)l=a.type===t.type?null:a.child;else if(18===a.tag){if(null===(l=a.return))throw Error(i(341));l.lanes|=n,null!==(s=l.alternate)&&(s.lanes|=n),ki(l,n,t),l=a.sibling}else l=a.child;if(null!==l)l.return=a;else for(l=a;null!==l;){if(l===t){l=null;break}if(null!==(a=l.sibling)){a.return=l.return,l=a;break}l=l.return}a=l}El(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,Oi(t,n),r=r(o=Ci(o)),t.flags|=1,El(e,t,r,n),t.child;case 14:return o=yi(r=t.type,t.pendingProps),xl(e,t,r,o=yi(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:yi(r,o),Gl(e,t),t.tag=1,To(r)?(e=!0,Lo(t)):e=!1,Oi(t,n),Gi(t,r,o),Vi(t,r,o,n),Dl(null,t,r,!0,e,n);case 19:return $l(e,t,n);case 22:return Ol(e,t,n)}throw Error(i(156,t.tag))};var Qu="function"==typeof reportError?reportError:function(e){console.error(e)};function Yu(e){this._internalRoot=e}function Ku(e){this._internalRoot=e}function Ju(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType)}function Xu(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function Zu(){}function ec(e,t,n,r,o){var i=n._reactRootContainer;if(i){var a=i;if("function"==typeof o){var l=o;o=function(){var e=Hu(a);l.call(e)}}Gu(t,a,e,o)}else a=function(e,t,n,r,o){if(o){if("function"==typeof r){var i=r;r=function(){var e=Hu(a);i.call(e)}}var a=$u(t,r,e,0,null,!1,0,"",Zu);return e._reactRootContainer=a,e[ho]=a.current,Wr(8===e.nodeType?e.parentNode:e),du(),a}for(;o=e.lastChild;)e.removeChild(o);if("function"==typeof r){var l=r;r=function(){var e=Hu(s);l.call(e)}}var s=Uu(e,0,!1,null,0,!1,0,"",Zu);return e._reactRootContainer=s,e[ho]=s.current,Wr(8===e.nodeType?e.parentNode:e),du((function(){Gu(t,s,n,r)})),s}(n,t,e,o,r);return Hu(a)}Ku.prototype.render=Yu.prototype.render=function(e){var t=this._internalRoot;if(null===t)throw Error(i(409));Gu(e,t,null,null)},Ku.prototype.unmount=Yu.prototype.unmount=function(){var e=this._internalRoot;if(null!==e){this._internalRoot=null;var t=e.containerInfo;du((function(){Gu(null,e,null,null)})),t[ho]=null}},Ku.prototype.unstable_scheduleHydration=function(e){if(e){var t=kt();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Tt.length&&0!==t&&t<Tt[n].priority;n++);Tt.splice(n,0,e),0===n&&Lt(e)}},Et=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=dt(t.pendingLanes);0!==n&&(bt(t,1|n),ou(t,Je()),0==(6&Ds)&&($s=Je()+500,$o()))}break;case 13:du((function(){var t=_i(e,1);if(null!==t){var n=tu();ru(t,e,1,n)}})),qu(e,1)}},St=function(e){if(13===e.tag){var t=_i(e,134217728);null!==t&&ru(t,e,134217728,tu()),qu(e,134217728)}},xt=function(e){if(13===e.tag){var t=nu(e),n=_i(e,t);null!==n&&ru(n,e,t,tu()),qu(e,t)}},kt=function(){return vt},Ot=function(e,t){var n=vt;try{return vt=e,t()}finally{vt=n}},Se=function(e,t,n){switch(t){case"input":if(X(e,n),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var o=So(r);if(!o)throw Error(i(90));q(r),X(r,o)}}}break;case"textarea":ie(e,n);break;case"select":null!=(t=n.value)&&ne(e,!!n.multiple,t,!1)}},Ie=cu,De=du;var tc={usingClientEntryPoint:!1,Events:[wo,Eo,So,Ce,Pe,cu]},nc={findFiberByHostInstance:vo,bundleType:0,version:"18.2.0",rendererPackageName:"react-dom"},rc={bundleType:nc.bundleType,version:nc.version,rendererPackageName:nc.rendererPackageName,rendererConfig:nc.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:w.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=He(e))?null:e.stateNode},findFiberByHostInstance:nc.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.2.0-next-9e3b772b8-20220608"};if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var oc=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!oc.isDisabled&&oc.supportsFiber)try{ot=oc.inject(rc),it=oc}catch(ce){}}t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=tc,t.createPortal=function(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!Ju(t))throw Error(i(200));return function(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:S,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}(e,t,null,n)},t.createRoot=function(e,t){if(!Ju(e))throw Error(i(299));var n=!1,r="",o=Qu;return null!=t&&(!0===t.unstable_strictMode&&(n=!0),void 0!==t.identifierPrefix&&(r=t.identifierPrefix),void 0!==t.onRecoverableError&&(o=t.onRecoverableError)),t=Uu(e,1,!1,null,0,n,0,r,o),e[ho]=t.current,Wr(8===e.nodeType?e.parentNode:e),new Yu(t)},t.findDOMNode=function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternals;if(void 0===t){if("function"==typeof e.render)throw Error(i(188));throw e=Object.keys(e).join(","),Error(i(268,e))}return null===(e=He(t))?null:e.stateNode},t.flushSync=function(e){return du(e)},t.hydrate=function(e,t,n){if(!Xu(t))throw Error(i(200));return ec(null,e,t,!0,n)},t.hydrateRoot=function(e,t,n){if(!Ju(e))throw Error(i(405));var r=null!=n&&n.hydratedSources||null,o=!1,a="",l=Qu;if(null!=n&&(!0===n.unstable_strictMode&&(o=!0),void 0!==n.identifierPrefix&&(a=n.identifierPrefix),void 0!==n.onRecoverableError&&(l=n.onRecoverableError)),t=$u(t,null,e,1,null!=n?n:null,o,0,a,l),e[ho]=t.current,Wr(e),r)for(e=0;e<r.length;e++)o=(o=(n=r[e])._getVersion)(n._source),null==t.mutableSourceEagerHydrationData?t.mutableSourceEagerHydrationData=[n,o]:t.mutableSourceEagerHydrationData.push(n,o);return new Ku(t)},t.render=function(e,t,n){if(!Xu(t))throw Error(i(200));return ec(null,e,t,!1,n)},t.unmountComponentAtNode=function(e){if(!Xu(e))throw Error(i(40));return!!e._reactRootContainer&&(du((function(){ec(null,null,e,!1,(function(){e._reactRootContainer=null,e[ho]=null}))})),!0)},t.unstable_batchedUpdates=cu,t.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Xu(n))throw Error(i(200));if(null==e||void 0===e._reactInternals)throw Error(i(38));return ec(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"),i=Symbol.for("react.fragment"),a=Object.prototype.hasOwnProperty,l=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,s={key:!0,ref:!0,__self:!0,__source:!0};function u(e,t,n){var r,i={},u=null,c=null;for(r in void 0!==n&&(u=""+n),void 0!==t.key&&(u=""+t.key),void 0!==t.ref&&(c=t.ref),t)a.call(t,r)&&!s.hasOwnProperty(r)&&(i[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===i[r]&&(i[r]=t[r]);return{$$typeof:o,type:e,key:u,ref:c,props:i,_owner:l.current}}t.Fragment=i,t.jsx=u,t.jsxs=u},408:(e,t)=>{"use strict";var n=Symbol.for("react.element"),r=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),l=Symbol.for("react.provider"),s=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),d=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),p=Symbol.iterator,m={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},h=Object.assign,g={};function y(e,t,n){this.props=e,this.context=t,this.refs=g,this.updater=n||m}function b(){}function v(e,t,n){this.props=e,this.context=t,this.refs=g,this.updater=n||m}y.prototype.isReactComponent={},y.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")},y.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},b.prototype=y.prototype;var w=v.prototype=new b;w.constructor=v,h(w,y.prototype),w.isPureReactComponent=!0;var E=Array.isArray,S=Object.prototype.hasOwnProperty,x={current:null},k={key:!0,ref:!0,__self:!0,__source:!0};function O(e,t,r){var o,i={},a=null,l=null;if(null!=t)for(o in void 0!==t.ref&&(l=t.ref),void 0!==t.key&&(a=""+t.key),t)S.call(t,o)&&!k.hasOwnProperty(o)&&(i[o]=t[o]);var s=arguments.length-2;if(1===s)i.children=r;else if(1<s){for(var u=Array(s),c=0;c<s;c++)u[c]=arguments[c+2];i.children=u}if(e&&e.defaultProps)for(o in s=e.defaultProps)void 0===i[o]&&(i[o]=s[o]);return{$$typeof:n,type:e,key:a,ref:l,props:i,_owner:x.current}}function C(e){return"object"==typeof e&&null!==e&&e.$$typeof===n}var P=/\/+/g;function I(e,t){return"object"==typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,(function(e){return t[e]}))}(""+e.key):t.toString(36)}function D(e,t,o,i,a){var l=typeof e;"undefined"!==l&&"boolean"!==l||(e=null);var s=!1;if(null===e)s=!0;else switch(l){case"string":case"number":s=!0;break;case"object":switch(e.$$typeof){case n:case r:s=!0}}if(s)return a=a(s=e),e=""===i?"."+I(s,0):i,E(a)?(o="",null!=e&&(o=e.replace(P,"$&/")+"/"),D(a,t,o,"",(function(e){return e}))):null!=a&&(C(a)&&(a=function(e,t){return{$$typeof:n,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(a,o+(!a.key||s&&s.key===a.key?"":(""+a.key).replace(P,"$&/")+"/")+e)),t.push(a)),1;if(s=0,i=""===i?".":i+":",E(e))for(var u=0;u<e.length;u++){var c=i+I(l=e[u],u);s+=D(l,t,o,c,a)}else if(c=function(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=p&&e[p]||e["@@iterator"])?e:null}(e),"function"==typeof c)for(e=c.call(e),u=0;!(l=e.next()).done;)s+=D(l=l.value,t,o,c=i+I(l,u++),a);else if("object"===l)throw t=String(e),Error("Objects are not valid as a React child (found: "+("[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return s}function _(e,t,n){if(null==e)return e;var r=[],o=0;return D(e,r,"","",(function(e){return t.call(n,e,o++)})),r}function R(e){if(-1===e._status){var t=e._result;(t=t()).then((function(t){0!==e._status&&-1!==e._status||(e._status=1,e._result=t)}),(function(t){0!==e._status&&-1!==e._status||(e._status=2,e._result=t)})),-1===e._status&&(e._status=0,e._result=t)}if(1===e._status)return e._result.default;throw e._result}var N={current:null},T={transition:null},j={ReactCurrentDispatcher:N,ReactCurrentBatchConfig:T,ReactCurrentOwner:x};t.Children={map:_,forEach:function(e,t,n){_(e,(function(){t.apply(this,arguments)}),n)},count:function(e){var t=0;return _(e,(function(){t++})),t},toArray:function(e){return _(e,(function(e){return e}))||[]},only:function(e){if(!C(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},t.Component=y,t.Fragment=o,t.Profiler=a,t.PureComponent=v,t.StrictMode=i,t.Suspense=c,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=j,t.cloneElement=function(e,t,r){if(null==e)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var o=h({},e.props),i=e.key,a=e.ref,l=e._owner;if(null!=t){if(void 0!==t.ref&&(a=t.ref,l=x.current),void 0!==t.key&&(i=""+t.key),e.type&&e.type.defaultProps)var s=e.type.defaultProps;for(u in t)S.call(t,u)&&!k.hasOwnProperty(u)&&(o[u]=void 0===t[u]&&void 0!==s?s[u]:t[u])}var u=arguments.length-2;if(1===u)o.children=r;else if(1<u){s=Array(u);for(var c=0;c<u;c++)s[c]=arguments[c+2];o.children=s}return{$$typeof:n,type:e.type,key:i,ref:a,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:u,render:e}},t.isValidElement=C,t.lazy=function(e){return{$$typeof:f,_payload:{_status:-1,_result:e},_init:R}},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 N.current.useCallback(e,t)},t.useContext=function(e){return N.current.useContext(e)},t.useDebugValue=function(){},t.useDeferredValue=function(e){return N.current.useDeferredValue(e)},t.useEffect=function(e,t){return N.current.useEffect(e,t)},t.useId=function(){return N.current.useId()},t.useImperativeHandle=function(e,t,n){return N.current.useImperativeHandle(e,t,n)},t.useInsertionEffect=function(e,t){return N.current.useInsertionEffect(e,t)},t.useLayoutEffect=function(e,t){return N.current.useLayoutEffect(e,t)},t.useMemo=function(e,t){return N.current.useMemo(e,t)},t.useReducer=function(e,t,n){return N.current.useReducer(e,t,n)},t.useRef=function(e){return N.current.useRef(e)},t.useState=function(e){return N.current.useState(e)},t.useSyncExternalStore=function(e,t,n){return N.current.useSyncExternalStore(e,t,n)},t.useTransition=function(){return N.current.useTransition()},t.version="18.2.0"},294:(e,t,n)=>{"use strict";e.exports=n(408)},893:(e,t,n)=>{"use strict";e.exports=n(251)},53:(e,t)=>{"use strict";function n(e,t){var n=e.length;e.push(t);e:for(;0<n;){var r=n-1>>>1,o=e[r];if(!(0<i(o,t)))break e;e[r]=t,e[n]=o,n=r}}function r(e){return 0===e.length?null:e[0]}function o(e){if(0===e.length)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,o=e.length,a=o>>>1;r<a;){var l=2*(r+1)-1,s=e[l],u=l+1,c=e[u];if(0>i(s,n))u<o&&0>i(c,s)?(e[r]=c,e[u]=n,r=u):(e[r]=s,e[l]=n,r=l);else{if(!(u<o&&0>i(c,n)))break e;e[r]=c,e[u]=n,r=u}}}return t}function i(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}if("object"==typeof performance&&"function"==typeof performance.now){var a=performance;t.unstable_now=function(){return a.now()}}else{var l=Date,s=l.now();t.unstable_now=function(){return l.now()-s}}var u=[],c=[],d=1,f=null,p=3,m=!1,h=!1,g=!1,y="function"==typeof setTimeout?setTimeout:null,b="function"==typeof clearTimeout?clearTimeout:null,v="undefined"!=typeof setImmediate?setImmediate:null;function w(e){for(var t=r(c);null!==t;){if(null===t.callback)o(c);else{if(!(t.startTime<=e))break;o(c),t.sortIndex=t.expirationTime,n(u,t)}t=r(c)}}function E(e){if(g=!1,w(e),!h)if(null!==r(u))h=!0,T(S);else{var t=r(c);null!==t&&j(E,t.startTime-e)}}function S(e,n){h=!1,g&&(g=!1,b(C),C=-1),m=!0;var i=p;try{for(w(n),f=r(u);null!==f&&(!(f.expirationTime>n)||e&&!D());){var a=f.callback;if("function"==typeof a){f.callback=null,p=f.priorityLevel;var l=a(f.expirationTime<=n);n=t.unstable_now(),"function"==typeof l?f.callback=l:f===r(u)&&o(u),w(n)}else o(u);f=r(u)}if(null!==f)var s=!0;else{var d=r(c);null!==d&&j(E,d.startTime-n),s=!1}return s}finally{f=null,p=i,m=!1}}"undefined"!=typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var x,k=!1,O=null,C=-1,P=5,I=-1;function D(){return!(t.unstable_now()-I<P)}function _(){if(null!==O){var e=t.unstable_now();I=e;var n=!0;try{n=O(!0,e)}finally{n?x():(k=!1,O=null)}}else k=!1}if("function"==typeof v)x=function(){v(_)};else if("undefined"!=typeof MessageChannel){var R=new MessageChannel,N=R.port2;R.port1.onmessage=_,x=function(){N.postMessage(null)}}else x=function(){y(_,0)};function T(e){O=e,k||(k=!0,x())}function j(e,n){C=y((function(){e(t.unstable_now())}),n)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){h||m||(h=!0,T(S))},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):P=0<e?Math.floor(1e3/e):5},t.unstable_getCurrentPriorityLevel=function(){return p},t.unstable_getFirstCallbackNode=function(){return r(u)},t.unstable_next=function(e){switch(p){case 1:case 2:case 3:var t=3;break;default:t=p}var n=p;p=t;try{return e()}finally{p=n}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=function(){},t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=p;p=e;try{return t()}finally{p=n}},t.unstable_scheduleCallback=function(e,o,i){var a=t.unstable_now();switch(i="object"==typeof i&&null!==i&&"number"==typeof(i=i.delay)&&0<i?a+i:a,e){case 1:var l=-1;break;case 2:l=250;break;case 5:l=1073741823;break;case 4:l=1e4;break;default:l=5e3}return e={id:d++,callback:o,priorityLevel:e,startTime:i,expirationTime:l=i+l,sortIndex:-1},i>a?(e.sortIndex=i,n(c,e),null===r(u)&&e===r(c)&&(g?(b(C),C=-1):g=!0,j(E,i-a))):(e.sortIndex=l,n(u,e),h||m||(h=!0,T(S))),e},t.unstable_shouldYield=D,t.unstable_wrapCallback=function(e){var t=p;return function(){var n=p;p=t;try{return e.apply(this,arguments)}finally{p=n}}}},840:(e,t,n)=>{"use strict";e.exports=n(53)},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},i=r.useState,a=r.useEffect,l=r.useLayoutEffect,s=r.useDebugValue;function u(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!o(e,n)}catch(e){return!0}}var c="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var n=t(),r=i({inst:{value:n,getSnapshot:t}}),o=r[0].inst,c=r[1];return l((function(){o.value=n,o.getSnapshot=t,u(o)&&c({inst:o})}),[e,n,t]),a((function(){return u(o)&&c({inst:o}),e((function(){u(o)&&c({inst:o})}))}),[e]),s(n),n};t.useSyncExternalStore=void 0!==r.useSyncExternalStore?r.useSyncExternalStore:c},139:(e,t,n)=>{"use strict";var r=n(294),o=n(688),i="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},a=o.useSyncExternalStore,l=r.useRef,s=r.useEffect,u=r.useMemo,c=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=u((function(){function e(e){if(!s){if(s=!0,a=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,i(a,e))return t;var n=r(e);return void 0!==o&&o(t,n)?t:(a=e,l=n)}var a,l,s=!1,u=void 0===n?null:n;return[function(){return e(t())},null===u?void 0:function(){return e(u())}]}),[t,n,r,o]);var p=a(e,d[0],d[1]);return s((function(){f.hasValue=!0,f.value=p}),[p]),c(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 i=t[r]={exports:{}};return e[r].call(i.exports,i,i.exports,n),i.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{"use strict";var e=n(294),t=n(745),r=n(697),o=n.n(r),i=n(962);function a(e,t){return e.contains?e.contains(t):e.compareDocumentPosition?e===t||!!(16&e.compareDocumentPosition(t)):void 0}function l(){const t=(0,e.useRef)(!0),n=(0,e.useRef)((()=>t.current));return(0,e.useEffect)((()=>(t.current=!0,()=>{t.current=!1})),[]),n.current}const s=2**31-1;function u(e,t,n){const r=n-Date.now();e.current=r<=s?setTimeout(t,r):setTimeout((()=>u(e,t,n)),s)}function c(){const t=l(),n=(0,e.useRef)();return function(t){const n=function(t){const n=(0,e.useRef)(t);return n.current=t,n}(t);(0,e.useEffect)((()=>()=>n.current()),[])}((()=>clearTimeout(n.current))),(0,e.useMemo)((()=>{const e=()=>clearTimeout(n.current);return{set:function(r,o=0){t()&&(e(),o<=s?n.current=setTimeout(r,o):u(n,r,Date.now()+o))},clear:e}}),[])}var d=n(473),f=n.n(d);n(143);const p=e=>e&&"function"!=typeof e?t=>{e.current=t}:e,m=function(t,n){return(0,e.useMemo)((()=>function(e,t){const n=p(e),r=p(t);return e=>{n&&n(e),r&&r(e)}}(t,n)),[t,n])};var h=n(184),g=n.n(h),y=n(935);function b(){return(0,e.useState)(null)}var v=Object.prototype.hasOwnProperty;function w(e,t,n){for(n of e.keys())if(E(n,t))return n}function E(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--&&E(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=w(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=w(t,o)))return!1;if(!E(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(v.call(e,n)&&++r&&!v.call(t,n))return!1;if(!(n in t)||!E(e[n],t[n]))return!1}return Object.keys(t).length===r}}return e!=e&&t!=t}function S(e){return e.split("-")[0]}function x(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function k(e){return e instanceof x(e).Element||e instanceof Element}function O(e){return e instanceof x(e).HTMLElement||e instanceof HTMLElement}function C(e){return"undefined"!=typeof ShadowRoot&&(e instanceof x(e).ShadowRoot||e instanceof ShadowRoot)}var P=Math.max,I=Math.min,D=Math.round;function _(){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 R(){return!/^((?!chrome|android).)*safari/i.test(_())}function N(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);var r=e.getBoundingClientRect(),o=1,i=1;t&&O(e)&&(o=e.offsetWidth>0&&D(r.width)/e.offsetWidth||1,i=e.offsetHeight>0&&D(r.height)/e.offsetHeight||1);var a=(k(e)?x(e):window).visualViewport,l=!R()&&n,s=(r.left+(l&&a?a.offsetLeft:0))/o,u=(r.top+(l&&a?a.offsetTop:0))/i,c=r.width/o,d=r.height/i;return{width:c,height:d,top:u,right:s+c,bottom:u+d,left:s,x:s,y:u}}function T(e){var t=N(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 j(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&C(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function A(e){return e?(e.nodeName||"").toLowerCase():null}function M(e){return x(e).getComputedStyle(e)}function L(e){return["table","td","th"].indexOf(A(e))>=0}function B(e){return((k(e)?e.ownerDocument:e.document)||window.document).documentElement}function F(e){return"html"===A(e)?e:e.assignedSlot||e.parentNode||(C(e)?e.host:null)||B(e)}function z(e){return O(e)&&"fixed"!==M(e).position?e.offsetParent:null}function U(e){for(var t=x(e),n=z(e);n&&L(n)&&"static"===M(n).position;)n=z(n);return n&&("html"===A(n)||"body"===A(n)&&"static"===M(n).position)?t:n||function(e){var t=/firefox/i.test(_());if(/Trident/i.test(_())&&O(e)&&"fixed"===M(e).position)return null;var n=F(e);for(C(n)&&(n=n.host);O(n)&&["html","body"].indexOf(A(n))<0;){var r=M(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 W(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function $(e,t,n){return P(e,I(t,n))}function G(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function H(e,t){return t.reduce((function(t,n){return t[n]=e,t}),{})}var V="top",q="bottom",Q="right",Y="left",K="auto",J=[V,q,Q,Y],X="start",Z="end",ee="viewport",te="popper",ne=J.reduce((function(e,t){return e.concat([t+"-"+X,t+"-"+Z])}),[]),re=[].concat(J,[K]).reduce((function(e,t){return e.concat([t,t+"-"+X,t+"-"+Z])}),[]),oe=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];const ie={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n=e.state,r=e.name,o=e.options,i=n.elements.arrow,a=n.modifiersData.popperOffsets,l=S(n.placement),s=W(l),u=[Y,Q].indexOf(l)>=0?"height":"width";if(i&&a){var c=function(e,t){return G("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:H(e,J))}(o.padding,n),d=T(i),f="y"===s?V:Y,p="y"===s?q:Q,m=n.rects.reference[u]+n.rects.reference[s]-a[s]-n.rects.popper[u],h=a[s]-n.rects.reference[s],g=U(i),y=g?"y"===s?g.clientHeight||0:g.clientWidth||0:0,b=m/2-h/2,v=c[f],w=y-d[u]-c[p],E=y/2-d[u]/2+b,x=$(v,E,w),k=s;n.modifiersData[r]=((t={})[k]=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)))&&j(t.elements.popper,r)&&(t.elements.arrow=r)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function ae(e){return e.split("-")[1]}var le={top:"auto",right:"auto",bottom:"auto",left:"auto"};function se(e){var t,n=e.popper,r=e.popperRect,o=e.placement,i=e.variation,a=e.offsets,l=e.position,s=e.gpuAcceleration,u=e.adaptive,c=e.roundOffsets,d=e.isFixed,f=a.x,p=void 0===f?0:f,m=a.y,h=void 0===m?0:m,g="function"==typeof c?c({x:p,y:h}):{x:p,y:h};p=g.x,h=g.y;var y=a.hasOwnProperty("x"),b=a.hasOwnProperty("y"),v=Y,w=V,E=window;if(u){var S=U(n),k="clientHeight",O="clientWidth";S===x(n)&&"static"!==M(S=B(n)).position&&"absolute"===l&&(k="scrollHeight",O="scrollWidth"),(o===V||(o===Y||o===Q)&&i===Z)&&(w=q,h-=(d&&S===E&&E.visualViewport?E.visualViewport.height:S[k])-r.height,h*=s?1:-1),o!==Y&&(o!==V&&o!==q||i!==Z)||(v=Q,p-=(d&&S===E&&E.visualViewport?E.visualViewport.width:S[O])-r.width,p*=s?1:-1)}var C,P=Object.assign({position:l},u&&le),I=!0===c?function(e,t){var n=e.x,r=e.y,o=t.devicePixelRatio||1;return{x:D(n*o)/o||0,y:D(r*o)/o||0}}({x:p,y:h},x(n)):{x:p,y:h};return p=I.x,h=I.y,s?Object.assign({},P,((C={})[w]=b?"0":"",C[v]=y?"0":"",C.transform=(E.devicePixelRatio||1)<=1?"translate("+p+"px, "+h+"px)":"translate3d("+p+"px, "+h+"px, 0)",C)):Object.assign({},P,((t={})[w]=b?h+"px":"",t[v]=y?p+"px":"",t.transform="",t))}const ue={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=void 0===r||r,i=n.adaptive,a=void 0===i||i,l=n.roundOffsets,s=void 0===l||l,u={placement:S(t.placement),variation:ae(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,se(Object.assign({},u,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:s})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,se(Object.assign({},u,{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 ce={passive:!0};const de={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,n=e.instance,r=e.options,o=r.scroll,i=void 0===o||o,a=r.resize,l=void 0===a||a,s=x(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&u.forEach((function(e){e.addEventListener("scroll",n.update,ce)})),l&&s.addEventListener("resize",n.update,ce),function(){i&&u.forEach((function(e){e.removeEventListener("scroll",n.update,ce)})),l&&s.removeEventListener("resize",n.update,ce)}},data:{}};var fe={left:"right",right:"left",bottom:"top",top:"bottom"};function pe(e){return e.replace(/left|right|bottom|top/g,(function(e){return fe[e]}))}var me={start:"end",end:"start"};function he(e){return e.replace(/start|end/g,(function(e){return me[e]}))}function ge(e){var t=x(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function ye(e){return N(B(e)).left+ge(e).scrollLeft}function be(e){var t=M(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function ve(e){return["html","body","#document"].indexOf(A(e))>=0?e.ownerDocument.body:O(e)&&be(e)?e:ve(F(e))}function we(e,t){var n;void 0===t&&(t=[]);var r=ve(e),o=r===(null==(n=e.ownerDocument)?void 0:n.body),i=x(r),a=o?[i].concat(i.visualViewport||[],be(r)?r:[]):r,l=t.concat(a);return o?l:l.concat(we(F(a)))}function Ee(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Se(e,t,n){return t===ee?Ee(function(e,t){var n=x(e),r=B(e),o=n.visualViewport,i=r.clientWidth,a=r.clientHeight,l=0,s=0;if(o){i=o.width,a=o.height;var u=R();(u||!u&&"fixed"===t)&&(l=o.offsetLeft,s=o.offsetTop)}return{width:i,height:a,x:l+ye(e),y:s}}(e,n)):k(t)?function(e,t){var n=N(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):Ee(function(e){var t,n=B(e),r=ge(e),o=null==(t=e.ownerDocument)?void 0:t.body,i=P(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),a=P(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),l=-r.scrollLeft+ye(e),s=-r.scrollTop;return"rtl"===M(o||n).direction&&(l+=P(n.clientWidth,o?o.clientWidth:0)-i),{width:i,height:a,x:l,y:s}}(B(e)))}function xe(e){var t,n=e.reference,r=e.element,o=e.placement,i=o?S(o):null,a=o?ae(o):null,l=n.x+n.width/2-r.width/2,s=n.y+n.height/2-r.height/2;switch(i){case V:t={x:l,y:n.y-r.height};break;case q:t={x:l,y:n.y+n.height};break;case Q:t={x:n.x+n.width,y:s};break;case Y:t={x:n.x-r.width,y:s};break;default:t={x:n.x,y:n.y}}var u=i?W(i):null;if(null!=u){var c="y"===u?"height":"width";switch(a){case X:t[u]=t[u]-(n[c]/2-r[c]/2);break;case Z:t[u]=t[u]+(n[c]/2-r[c]/2)}}return t}function ke(e,t){void 0===t&&(t={});var n=t,r=n.placement,o=void 0===r?e.placement:r,i=n.strategy,a=void 0===i?e.strategy:i,l=n.boundary,s=void 0===l?"clippingParents":l,u=n.rootBoundary,c=void 0===u?ee:u,d=n.elementContext,f=void 0===d?te:d,p=n.altBoundary,m=void 0!==p&&p,h=n.padding,g=void 0===h?0:h,y=G("number"!=typeof g?g:H(g,J)),b=f===te?"reference":te,v=e.rects.popper,w=e.elements[m?b:f],E=function(e,t,n,r){var o="clippingParents"===t?function(e){var t=we(F(e)),n=["absolute","fixed"].indexOf(M(e).position)>=0&&O(e)?U(e):e;return k(n)?t.filter((function(e){return k(e)&&j(e,n)&&"body"!==A(e)})):[]}(e):[].concat(t),i=[].concat(o,[n]),a=i[0],l=i.reduce((function(t,n){var o=Se(e,n,r);return t.top=P(o.top,t.top),t.right=I(o.right,t.right),t.bottom=I(o.bottom,t.bottom),t.left=P(o.left,t.left),t}),Se(e,a,r));return l.width=l.right-l.left,l.height=l.bottom-l.top,l.x=l.left,l.y=l.top,l}(k(w)?w:w.contextElement||B(e.elements.popper),s,c,a),S=N(e.elements.reference),x=xe({reference:S,element:v,strategy:"absolute",placement:o}),C=Ee(Object.assign({},v,x)),D=f===te?C:S,_={top:E.top-D.top+y.top,bottom:D.bottom-E.bottom+y.bottom,left:E.left-D.left+y.left,right:D.right-E.right+y.right},R=e.modifiersData.offset;if(f===te&&R){var T=R[o];Object.keys(_).forEach((function(e){var t=[Q,q].indexOf(e)>=0?1:-1,n=[V,q].indexOf(e)>=0?"y":"x";_[e]+=T[n]*t}))}return _}const Oe={name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,i=void 0===o||o,a=n.altAxis,l=void 0===a||a,s=n.fallbackPlacements,u=n.padding,c=n.boundary,d=n.rootBoundary,f=n.altBoundary,p=n.flipVariations,m=void 0===p||p,h=n.allowedAutoPlacements,g=t.options.placement,y=S(g),b=s||(y!==g&&m?function(e){if(S(e)===K)return[];var t=pe(e);return[he(e),t,he(t)]}(g):[pe(g)]),v=[g].concat(b).reduce((function(e,n){return e.concat(S(n)===K?function(e,t){void 0===t&&(t={});var n=t,r=n.placement,o=n.boundary,i=n.rootBoundary,a=n.padding,l=n.flipVariations,s=n.allowedAutoPlacements,u=void 0===s?re:s,c=ae(r),d=c?l?ne:ne.filter((function(e){return ae(e)===c})):J,f=d.filter((function(e){return u.indexOf(e)>=0}));0===f.length&&(f=d);var p=f.reduce((function(t,n){return t[n]=ke(e,{placement:n,boundary:o,rootBoundary:i,padding:a})[S(n)],t}),{});return Object.keys(p).sort((function(e,t){return p[e]-p[t]}))}(t,{placement:n,boundary:c,rootBoundary:d,padding:u,flipVariations:m,allowedAutoPlacements:h}):n)}),[]),w=t.rects.reference,E=t.rects.popper,x=new Map,k=!0,O=v[0],C=0;C<v.length;C++){var P=v[C],I=S(P),D=ae(P)===X,_=[V,q].indexOf(I)>=0,R=_?"width":"height",N=ke(t,{placement:P,boundary:c,rootBoundary:d,altBoundary:f,padding:u}),T=_?D?Q:Y:D?q:V;w[R]>E[R]&&(T=pe(T));var j=pe(T),A=[];if(i&&A.push(N[I]<=0),l&&A.push(N[T]<=0,N[j]<=0),A.every((function(e){return e}))){O=P,k=!1;break}x.set(P,A)}if(k)for(var M=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 O=t,"break"},L=m?3:1;L>0&&"break"!==M(L);L--);t.placement!==O&&(t.modifiersData[r]._skip=!0,t.placement=O,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function Ce(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 Pe(e){return[V,Q,q,Y].some((function(t){return e[t]>=0}))}const Ie={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.options,r=e.name,o=n.offset,i=void 0===o?[0,0]:o,a=re.reduce((function(e,n){return e[n]=function(e,t,n){var r=S(e),o=[Y,V].indexOf(r)>=0?-1:1,i="function"==typeof n?n(Object.assign({},t,{placement:e})):n,a=i[0],l=i[1];return a=a||0,l=(l||0)*o,[Y,Q].indexOf(r)>=0?{x:l,y:a}:{x:a,y:l}}(n,t.rects,i),e}),{}),l=a[t.placement],s=l.x,u=l.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=s,t.modifiersData.popperOffsets.y+=u),t.modifiersData[r]=a}},De={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,i=void 0===o||o,a=n.altAxis,l=void 0!==a&&a,s=n.boundary,u=n.rootBoundary,c=n.altBoundary,d=n.padding,f=n.tether,p=void 0===f||f,m=n.tetherOffset,h=void 0===m?0:m,g=ke(t,{boundary:s,rootBoundary:u,padding:d,altBoundary:c}),y=S(t.placement),b=ae(t.placement),v=!b,w=W(y),E="x"===w?"y":"x",x=t.modifiersData.popperOffsets,k=t.rects.reference,O=t.rects.popper,C="function"==typeof h?h(Object.assign({},t.rects,{placement:t.placement})):h,D="number"==typeof C?{mainAxis:C,altAxis:C}:Object.assign({mainAxis:0,altAxis:0},C),_=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,R={x:0,y:0};if(x){if(i){var N,j="y"===w?V:Y,A="y"===w?q:Q,M="y"===w?"height":"width",L=x[w],B=L+g[j],F=L-g[A],z=p?-O[M]/2:0,G=b===X?k[M]:O[M],H=b===X?-O[M]:-k[M],K=t.elements.arrow,J=p&&K?T(K):{width:0,height:0},Z=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},ee=Z[j],te=Z[A],ne=$(0,k[M],J[M]),re=v?k[M]/2-z-ne-ee-D.mainAxis:G-ne-ee-D.mainAxis,oe=v?-k[M]/2+z+ne+te+D.mainAxis:H+ne+te+D.mainAxis,ie=t.elements.arrow&&U(t.elements.arrow),le=ie?"y"===w?ie.clientTop||0:ie.clientLeft||0:0,se=null!=(N=null==_?void 0:_[w])?N:0,ue=L+oe-se,ce=$(p?I(B,L+re-se-le):B,L,p?P(F,ue):F);x[w]=ce,R[w]=ce-L}if(l){var de,fe="x"===w?V:Y,pe="x"===w?q:Q,me=x[E],he="y"===E?"height":"width",ge=me+g[fe],ye=me-g[pe],be=-1!==[V,Y].indexOf(y),ve=null!=(de=null==_?void 0:_[E])?de:0,we=be?ge:me-k[he]-O[he]-ve+D.altAxis,Ee=be?me+k[he]+O[he]-ve-D.altAxis:ye,Se=p&&be?function(e,t,n){var r=$(e,t,n);return r>n?n:r}(we,me,Ee):$(p?we:ge,me,p?Ee:ye);x[E]=Se,R[E]=Se-me}t.modifiersData[r]=R}},requiresIfExists:["offset"]};function _e(e,t,n){void 0===n&&(n=!1);var r,o,i=O(t),a=O(t)&&function(e){var t=e.getBoundingClientRect(),n=D(t.width)/e.offsetWidth||1,r=D(t.height)/e.offsetHeight||1;return 1!==n||1!==r}(t),l=B(t),s=N(e,a,n),u={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(i||!i&&!n)&&(("body"!==A(t)||be(l))&&(u=(r=t)!==x(r)&&O(r)?{scrollLeft:(o=r).scrollLeft,scrollTop:o.scrollTop}:ge(r)),O(t)?((c=N(t,!0)).x+=t.clientLeft,c.y+=t.clientTop):l&&(c.x=ye(l))),{x:s.left+u.scrollLeft-c.x,y:s.top+u.scrollTop-c.y,width:s.width,height:s.height}}function Re(e){var t=new Map,n=new Set,r=[];function o(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach((function(e){if(!n.has(e)){var r=t.get(e);r&&o(r)}})),r.push(e)}return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){n.has(e.name)||o(e)})),r}var Ne={placement:"bottom",modifiers:[],strategy:"absolute"};function Te(){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 je=function(e){void 0===e&&(e={});var t=e,n=t.defaultModifiers,r=void 0===n?[]:n,o=t.defaultOptions,i=void 0===o?Ne:o;return function(e,t,n){void 0===n&&(n=i);var o,a,l={placement:"bottom",orderedModifiers:[],options:Object.assign({},Ne,i),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},s=[],u=!1,c={state:l,setOptions:function(n){var o="function"==typeof n?n(l.options):n;d(),l.options=Object.assign({},i,l.options,o),l.scrollParents={reference:k(e)?we(e):e.contextElement?we(e.contextElement):[],popper:we(t)};var a,u,f=function(e){var t=Re(e);return oe.reduce((function(e,n){return e.concat(t.filter((function(e){return e.phase===n})))}),[])}((a=[].concat(r,l.options.modifiers),u=a.reduce((function(e,t){var n=e[t.name];return e[t.name]=n?Object.assign({},n,t,{options:Object.assign({},n.options,t.options),data:Object.assign({},n.data,t.data)}):t,e}),{}),Object.keys(u).map((function(e){return u[e]}))));return l.orderedModifiers=f.filter((function(e){return e.enabled})),l.orderedModifiers.forEach((function(e){var t=e.name,n=e.options,r=void 0===n?{}:n,o=e.effect;if("function"==typeof o){var i=o({state:l,name:t,instance:c,options:r});s.push(i||function(){})}})),c.update()},forceUpdate:function(){if(!u){var e=l.elements,t=e.reference,n=e.popper;if(Te(t,n)){l.rects={reference:_e(t,U(n),"fixed"===l.options.strategy),popper:T(n)},l.reset=!1,l.placement=l.options.placement,l.orderedModifiers.forEach((function(e){return l.modifiersData[e.name]=Object.assign({},e.data)}));for(var r=0;r<l.orderedModifiers.length;r++)if(!0!==l.reset){var o=l.orderedModifiers[r],i=o.fn,a=o.options,s=void 0===a?{}:a,d=o.name;"function"==typeof i&&(l=i({state:l,options:s,name:d,instance:c})||l)}else l.reset=!1,r=-1}}},update:(o=function(){return new Promise((function(e){c.forceUpdate(),e(l)}))},function(){return a||(a=new Promise((function(e){Promise.resolve().then((function(){a=void 0,e(o())}))}))),a}),destroy:function(){d(),u=!0}};if(!Te(e,t))return c;function d(){s.forEach((function(e){return e()})),s=[]}return c.setOptions(n).then((function(e){!u&&n.onFirstUpdate&&n.onFirstUpdate(e)})),c}}({defaultModifiers:[{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,i=t.modifiersData.preventOverflow,a=ke(t,{elementContext:"reference"}),l=ke(t,{altBoundary:!0}),s=Ce(a,r),u=Ce(l,o,i),c=Pe(s),d=Pe(u);t.modifiersData[n]={referenceClippingOffsets:s,popperEscapeOffsets:u,isReferenceHidden:c,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":c,"data-popper-escaped":d})}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=xe({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}},ue,de,Ie,Oe,De,ie]}),Ae=["enabled","placement","strategy","modifiers"],Me={name:"applyStyles",enabled:!1,phase:"afterWrite",fn:()=>{}},Le={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)}}},Be=[],Fe=function(t,n,r={}){let{enabled:o=!0,placement:i="bottom",strategy:a="absolute",modifiers:s=Be}=r,u=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(r,Ae);const c=(0,e.useRef)(s),d=(0,e.useRef)(),f=(0,e.useCallback)((()=>{var e;null==(e=d.current)||e.update()}),[]),p=(0,e.useCallback)((()=>{var e;null==(e=d.current)||e.forceUpdate()}),[]),[m,h]=function(t){const n=l();return[t[0],(0,e.useCallback)((e=>{if(n())return t[1](e)}),[n,t[1]])]}((0,e.useState)({placement:i,update:f,forceUpdate:p,attributes:{},styles:{popper:{},arrow:{}}})),g=(0,e.useMemo)((()=>({name:"updateStateModifier",enabled:!0,phase:"write",requires:["computeStyles"],fn:({state:e})=>{const t={},n={};Object.keys(e.elements).forEach((r=>{t[r]=e.styles[r],n[r]=e.attributes[r]})),h({state:e,styles:t,attributes:n,update:f,forceUpdate:p,placement:e.placement})}})),[f,p,h]),y=(0,e.useMemo)((()=>(E(c.current,s)||(c.current=s),c.current)),[s]);return(0,e.useEffect)((()=>{d.current&&o&&d.current.setOptions({placement:i,strategy:a,modifiers:[...y,g,Me]})}),[a,i,g,o,y]),(0,e.useEffect)((()=>{if(o&&null!=t&&null!=n)return d.current=je(t,n,Object.assign({},u,{placement:i,strategy:a,modifiers:[...y,Le,g]})),()=>{null!=d.current&&(d.current.destroy(),d.current=void 0,h((e=>Object.assign({},e,{attributes:{},styles:{popper:{}}}))))}}),[o,t,n]),m},ze=!("undefined"==typeof window||!window.document||!window.document.createElement);var Ue=!1,We=!1;try{var $e={get passive(){return Ue=!0},get once(){return We=Ue=!0}};ze&&(window.addEventListener("test",$e,$e),window.removeEventListener("test",$e,!0))}catch(e){}const Ge=function(e,t,n,r){return function(e,t,n,r){if(r&&"boolean"!=typeof r&&!We){var o=r.once,i=r.capture,a=n;!We&&o&&(a=n.__once||function e(r){this.removeEventListener(t,e,i),n.call(this,r)},n.__once=a),e.addEventListener(t,a,Ue?r:i)}e.addEventListener(t,n,r)}(e,t,n,r),function(){!function(e,t,n,r){var o=r&&"boolean"!=typeof r?r.capture:r;e.removeEventListener(t,n,o),n.__once&&e.removeEventListener(t,n.__once,o)}(e,t,n,r)}};function He(e){return e&&e.ownerDocument||document}const Ve=function(t){const n=(0,e.useRef)(t);return(0,e.useEffect)((()=>{n.current=t}),[t]),n};function qe(t){const n=Ve(t);return(0,e.useCallback)((function(...e){return n.current&&n.current(...e)}),[n])}const Qe=()=>{},Ye=e=>e&&("current"in e?e.current:e),Ke={click:"mousedown",mouseup:"mousedown",pointerup:"pointerdown"},Je=()=>{},Xe=function(t,n,{disabled:r,clickTrigger:o}={}){const i=n||Je;!function(t,n=Qe,{disabled:r,clickTrigger:o="click"}={}){const i=(0,e.useRef)(!1),l=(0,e.useRef)(!1),s=(0,e.useCallback)((e=>{const n=Ye(t);var r;f()(!!n,"ClickOutside captured a close event but does not have a ref to compare it to. useClickOutside(), should be passed a ref that resolves to a DOM node"),i.current=!n||!!((r=e).metaKey||r.altKey||r.ctrlKey||r.shiftKey)||!function(e){return 0===e.button}(e)||!!a(n,e.target)||l.current,l.current=!1}),[t]),u=qe((e=>{const n=Ye(t);n&&a(n,e.target)&&(l.current=!0)})),c=qe((e=>{i.current||n(e)}));(0,e.useEffect)((()=>{var e,n;if(r||null==t)return;const i=He(Ye(t)),a=i.defaultView||window;let l=null!=(e=a.event)?e:null==(n=a.parent)?void 0:n.event,d=null;Ke[o]&&(d=Ge(i,Ke[o],u,!0));const f=Ge(i,o,s,!0),p=Ge(i,o,(e=>{e!==l?c(e):l=void 0}));let m=[];return"ontouchstart"in i.documentElement&&(m=[].slice.call(i.body.children).map((e=>Ge(e,"mousemove",Qe)))),()=>{null==d||d(),f(),p(),m.forEach((e=>e()))}}),[t,r,o,s,u,c])}(t,i,{disabled:r,clickTrigger:o});const l=qe((e=>{(function(e){return"Escape"===e.code||27===e.keyCode})(e)&&i(e)}));(0,e.useEffect)((()=>{if(r||null==t)return;const e=He(Ye(t));let n=(e.defaultView||window).event;const o=Ge(e,"keyup",(e=>{e!==n?l(e):n=void 0}));return()=>{o()}}),[t,r,l])},Ze=(0,e.createContext)(ze?window:void 0);Ze.Provider;const et=(e,t)=>ze?null==e?(t||He()).body:("function"==typeof e&&(e=e()),e&&"current"in e&&(e=e.current),e&&("nodeType"in e||e.getBoundingClientRect)?e:null):null;function tt(t,n){const r=(0,e.useContext)(Ze),[o,i]=(0,e.useState)((()=>et(t,null==r?void 0:r.document)));if(!o){const e=et(t);e&&i(e)}return(0,e.useEffect)((()=>{n&&o&&n(o)}),[n,o]),(0,e.useEffect)((()=>{const e=et(t);e!==o&&i(e)}),[t,o]),o}function nt(e={}){return Array.isArray(e)?e:Object.keys(e).map((t=>(e[t].name=t,e[t])))}const rt=void 0!==n.g&&n.g.navigator&&"ReactNative"===n.g.navigator.product,ot="undefined"!=typeof document||rt?e.useLayoutEffect:e.useEffect,it=function({children:t,in:n,onExited:r,mountOnEnter:o,unmountOnExit:i}){const a=(0,e.useRef)(null),l=(0,e.useRef)(n),s=qe(r);(0,e.useEffect)((()=>{n?l.current=!0:s(a.current)}),[n,s]);const u=m(a,t.ref),c=(0,e.cloneElement)(t,{ref:u});return n?c:i||!l.current&&o?null:c};var at=n(893);function lt({children:t,in:n,onExited:r,onEntered:o,transition:i}){const[a,l]=(0,e.useState)(!n);n&&a&&l(!1);const s=function({in:t,onTransition:n}){const r=(0,e.useRef)(null),o=(0,e.useRef)(!0),i=qe(n);return ot((()=>{if(!r.current)return;let e=!1;return i({in:t,element:r.current,initial:o.current,isStale:()=>e}),()=>{e=!0}}),[t,i]),ot((()=>(o.current=!1,()=>{o.current=!0})),[]),r}({in:!!n,onTransition:e=>{Promise.resolve(i(e)).then((()=>{e.isStale()||(e.in?null==o||o(e.element,e.initial):(l(!0),null==r||r(e.element)))}),(t=>{throw e.in||l(!0),t}))}}),u=m(s,t.ref);return a&&!n?null:(0,e.cloneElement)(t,{ref:u})}const st=e.forwardRef(((t,n)=>{const{flip:r,offset:o,placement:i,containerPadding:a,popperConfig:l={},transition:s,runTransition:u}=t,[c,d]=b(),[f,p]=b(),h=m(d,n),g=tt(t.container),v=tt(t.target),[w,E]=(0,e.useState)(!t.show),S=Fe(v,c,function({enabled:e,enableEvents:t,placement:n,flip:r,offset:o,fixed:i,containerPadding:a,arrowElement:l,popperConfig:s={}}){var u,c,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:i?"fixed":s.strategy,modifiers:nt(Object.assign({},m,{eventListeners:{enabled:t,options:null==(u=m.eventListeners)?void 0:u.options},preventOverflow:Object.assign({},m.preventOverflow,{options:a?Object.assign({padding:a},null==(c=m.preventOverflow)?void 0:c.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:a||5,flip:r,offset:o,arrowElement:f,popperConfig:l}));t.show&&w&&E(!1);const x=t.show||!w;if(Xe(c,t.onHide,{disabled:!t.rootClose||t.rootCloseDisabled,clickTrigger:t.rootCloseEvent}),!x)return null;const{onExit:k,onExiting:O,onEnter:C,onEntering:P,onEntered:I}=t;let D=t.children(Object.assign({},S.attributes.popper,{style:S.styles.popper,ref:h}),{popper:S,placement:i,show:!!t.show,arrowProps:Object.assign({},S.attributes.arrow,{style:S.styles.arrow,ref:p})});return D=function(e,t,n){return e?(0,at.jsx)(e,Object.assign({},n)):t?(0,at.jsx)(lt,Object.assign({},n,{transition:t})):(0,at.jsx)(it,Object.assign({},n))}(s,u,{in:!!t.show,appear:!0,mountOnEnter:!0,unmountOnExit:!0,children:D,onExit:k,onExiting:O,onExited:(...e)=>{E(!0),t.onExited&&t.onExited(...e)},onEnter:C,onEntering:P,onEntered:I}),g?y.createPortal(D,g):null}));st.displayName="Overlay";const ut=st;function ct(e,t){return e.classList?!!t&&e.classList.contains(t):-1!==(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")}const dt=e.createContext({prefixes:{},breakpoints:["xxl","xl","lg","md","sm","xs"],minBreakpoint:"xs"}),{Consumer:ft,Provider:pt}=dt;function mt(t,n){const{prefixes:r}=(0,e.useContext)(dt);return t||r[n]||n}function ht(){const{dir:t}=(0,e.useContext)(dt);return"rtl"===t}const gt=e.forwardRef((({className:e,bsPrefix:t,as:n="div",...r},o)=>(t=mt(t,"popover-header"),(0,at.jsx)(n,{ref:o,className:g()(e,t),...r}))));gt.displayName="PopoverHeader";const yt=gt,bt=e.forwardRef((({className:e,bsPrefix:t,as:n="div",...r},o)=>(t=mt(t,"popover-body"),(0,at.jsx)(n,{ref:o,className:g()(e,t),...r}))));bt.displayName="PopoverBody";const vt=bt;function wt(e,t){let n=e;return"left"===e?n=t?"end":"start":"right"===e&&(n=t?"start":"end"),n}function Et(e="absolute"){return{position:e,top:"0",left:"0",opacity:"0",pointerEvents:"none"}}e.Component;const St=e.forwardRef((({bsPrefix:e,placement:t="right",className:n,style:r,children:o,body:i,arrowProps:a,hasDoneInitialMeasure:l,popper:s,show:u,...c},d)=>{const f=mt(e,"popover"),p=ht(),[m]=(null==t?void 0:t.split("-"))||[],h=wt(m,p);let y=r;return u&&!l&&(y={...r,...Et(null==s?void 0:s.strategy)}),(0,at.jsxs)("div",{ref:d,role:"tooltip",style:y,"x-placement":m,className:g()(n,f,m&&`bs-popover-${h}`),...c,children:[(0,at.jsx)("div",{className:"popover-arrow",...a}),i?(0,at.jsx)(vt,{children:o}):o]})})),xt=Object.assign(St,{Header:yt,Body:vt,POPPER_OFFSET:[0,8]}),kt=e.forwardRef((({bsPrefix:e,placement:t="right",className:n,style:r,children:o,arrowProps:i,hasDoneInitialMeasure:a,popper:l,show:s,...u},c)=>{e=mt(e,"tooltip");const d=ht(),[f]=(null==t?void 0:t.split("-"))||[],p=wt(f,d);let m=r;return s&&!a&&(m={...r,...Et(null==l?void 0:l.strategy)}),(0,at.jsxs)("div",{ref:c,style:m,role:"tooltip","x-placement":f,className:g()(n,e,`bs-tooltip-${p}`),...u,children:[(0,at.jsx)("div",{className:"tooltip-arrow",...i}),(0,at.jsx)("div",{className:`${e}-inner`,children:o})]})}));kt.displayName="Tooltip";const Ot=Object.assign(kt,{TOOLTIP_OFFSET:[0,6]});function Ct(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}function Pt(e,t){return Pt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Pt(e,t)}const It=e.createContext(null);var Dt="unmounted",_t="exited",Rt="entering",Nt="entered",Tt="exiting",jt=function(t){var n,r;function o(e,n){var r;r=t.call(this,e,n)||this;var o,i=n&&!n.isMounting?e.enter:e.appear;return r.appearStatus=null,e.in?i?(o=_t,r.appearStatus=Rt):o=Nt:o=e.unmountOnExit||e.mountOnEnter?Dt:_t,r.state={status:o},r.nextCallback=null,r}r=t,(n=o).prototype=Object.create(r.prototype),n.prototype.constructor=n,Pt(n,r),o.getDerivedStateFromProps=function(e,t){return e.in&&t.status===Dt?{status:_t}:null};var i=o.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!==Rt&&n!==Nt&&(t=Rt):n!==Rt&&n!==Nt||(t=Tt)}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===Rt){if(this.props.unmountOnExit||this.props.mountOnEnter){var n=this.props.nodeRef?this.props.nodeRef.current:y.findDOMNode(this);n&&function(e){e.scrollTop}(n)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===_t&&this.setState({status:Dt})},i.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,o=this.props.nodeRef?[r]:[y.findDOMNode(this),r],i=o[0],a=o[1],l=this.getTimeouts(),s=r?l.appear:l.enter;e||n?(this.props.onEnter(i,a),this.safeSetState({status:Rt},(function(){t.props.onEntering(i,a),t.onTransitionEnd(s,(function(){t.safeSetState({status:Nt},(function(){t.props.onEntered(i,a)}))}))}))):this.safeSetState({status:Nt},(function(){t.props.onEntered(i)}))},i.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),r=this.props.nodeRef?void 0:y.findDOMNode(this);t?(this.props.onExit(r),this.safeSetState({status:Tt},(function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,(function(){e.safeSetState({status:_t},(function(){e.props.onExited(r)}))}))}))):this.safeSetState({status:_t},(function(){e.props.onExited(r)}))},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:y.findDOMNode(this),r=null==e&&!this.props.addEndListener;if(n&&!r){if(this.props.addEndListener){var o=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],i=o[0],a=o[1];this.props.addEndListener(i,a)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},i.render=function(){var t=this.state.status;if(t===Dt)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,Ct(n,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]));return e.createElement(It.Provider,{value:null},"function"==typeof r?r(t,o):e.cloneElement(e.Children.only(r),o))},o}(e.Component);function At(){}jt.contextType=It,jt.propTypes={},jt.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:At,onEntering:At,onEntered:At,onExit:At,onExiting:At,onExited:At},jt.UNMOUNTED=Dt,jt.EXITED=_t,jt.ENTERING=Rt,jt.ENTERED=Nt,jt.EXITING=Tt;const Mt=jt;var Lt=/([A-Z])/g,Bt=/^ms-/;function Ft(e){return function(e){return e.replace(Lt,"-$1").toLowerCase()}(e).replace(Bt,"-ms-")}var zt=/^((translate|rotate|scale)(X|Y|Z|3d)?|matrix(3d)?|perspective|skew(X|Y)?)$/i;const Ut=function(e,t){var n="",r="";if("string"==typeof t)return e.style.getPropertyValue(Ft(t))||function(e,t){return function(e){var t=He(e);return t&&t.defaultView||window}(e).getComputedStyle(e,t)}(e).getPropertyValue(Ft(t));Object.keys(t).forEach((function(o){var i=t[o];i||0===i?function(e){return!(!e||!zt.test(e))}(o)?r+=o+"("+i+") ":n+=Ft(o)+": "+i+";":e.style.removeProperty(Ft(o))})),r&&(n+="transform: "+r+";"),e.style.cssText+=";"+n};function Wt(e,t,n,r){var o,i;null==n&&(i=-1===(o=Ut(e,"transitionDuration")||"").indexOf("ms")?1e3:1,n=parseFloat(o)*i||0);var a=function(e,t,n){void 0===n&&(n=5);var r=!1,o=setTimeout((function(){r||function(e,t,n,r){if(void 0===n&&(n=!1),void 0===r&&(r=!0),e){var o=document.createEvent("HTMLEvents");o.initEvent("transitionend",n,r),e.dispatchEvent(o)}}(e,0,!0)}),t+n),i=Ge(e,"transitionend",(function(){r=!0}),{once:!0});return function(){clearTimeout(o),i()}}(e,n,r),l=Ge(e,"transitionend",t);return function(){a(),l()}}function $t(e,t){const n=Ut(e,t)||"",r=-1===n.indexOf("ms")?1e3:1;return parseFloat(n)*r}function Gt(e,t){const n=$t(e,"transitionDuration"),r=$t(e,"transitionDelay"),o=Wt(e,(n=>{n.target===e&&(o(),t(n))}),n+r)}function Ht(e){return e&&"setState"in e?y.findDOMNode(e):null!=e?e:null}const Vt=e.forwardRef((({onEnter:t,onEntering:n,onEntered:r,onExit:o,onExiting:i,onExited:a,addEndListener:l,children:s,childRef:u,...c},d)=>{const f=(0,e.useRef)(null),p=m(f,u),h=e=>{p(Ht(e))},g=e=>t=>{e&&f.current&&e(f.current,t)},y=(0,e.useCallback)(g(t),[t]),b=(0,e.useCallback)(g(n),[n]),v=(0,e.useCallback)(g(r),[r]),w=(0,e.useCallback)(g(o),[o]),E=(0,e.useCallback)(g(i),[i]),S=(0,e.useCallback)(g(a),[a]),x=(0,e.useCallback)(g(l),[l]);return(0,at.jsx)(Mt,{ref:d,...c,onEnter:y,onEntered:v,onEntering:b,onExit:w,onExited:S,onExiting:E,addEndListener:x,nodeRef:f,children:"function"==typeof s?(e,t)=>s(e,{...t,ref:h}):e.cloneElement(s,{ref:h})})})),qt={[Rt]:"show",[Nt]:"show"},Qt=e.forwardRef((({className:t,children:n,transitionClasses:r={},onEnter:o,...i},a)=>{const l={in:!1,timeout:300,mountOnEnter:!1,unmountOnExit:!1,appear:!1,...i},s=(0,e.useCallback)(((e,t)=>{!function(e){e.offsetHeight}(e),null==o||o(e,t)}),[o]);return(0,at.jsx)(Vt,{ref:a,addEndListener:Gt,...l,onEnter:s,childRef:n.ref,children:(o,i)=>e.cloneElement(n,{...i,className:g()("fade",t,n.props.className,qt[o],r[o])})})}));Qt.displayName="Fade";const Yt=Qt,Kt=e.forwardRef((({children:t,transition:n=Yt,popperConfig:r={},rootClose:o=!1,placement:i="top",show:a=!1,...l},s)=>{const u=(0,e.useRef)({}),[c,d]=(0,e.useState)(null),[f,p]=function(t){const n=(0,e.useRef)(null),r=mt(void 0,"popover"),o=mt(void 0,"tooltip"),i=(0,e.useMemo)((()=>({name:"offset",options:{offset:()=>{if(t)return t;if(n.current){if(ct(n.current,r))return xt.POPPER_OFFSET;if(ct(n.current,o))return Ot.TOOLTIP_OFFSET}return[0,0]}}})),[t,r,o]);return[n,[i]]}(l.offset),h=m(s,f),y=!0===n?Yt:n||void 0,b=qe((e=>{d(e),null==r||null==r.onFirstUpdate||r.onFirstUpdate(e)}));return ot((()=>{c&&l.target&&(null==u.current.scheduleUpdate||u.current.scheduleUpdate())}),[c,l.target]),(0,e.useEffect)((()=>{a||d(null)}),[a]),(0,at.jsx)(ut,{...l,ref:h,popperConfig:{...r,modifiers:p.concat(r.modifiers||[]),onFirstUpdate:b},transition:y,rootClose:o,placement:i,show:a,children:(o,{arrowProps:i,popper:a,show:l})=>{var s,d;!function(e,t){const{ref:n}=e,{ref:r}=t;e.ref=n.__wrapped||(n.__wrapped=e=>n(Ht(e))),t.ref=r.__wrapped||(r.__wrapped=e=>r(Ht(e)))}(o,i);const f=null==a?void 0:a.placement,p=Object.assign(u.current,{state:null==a?void 0:a.state,scheduleUpdate:null==a?void 0:a.update,placement:f,outOfBoundaries:(null==a||null==(s=a.state)||null==(d=s.modifiersData.hide)?void 0:d.isReferenceHidden)||!1,strategy:r.strategy}),m=!!c;return"function"==typeof t?t({...o,placement:f,show:l,...!n&&l&&{className:"show"},popper:p,arrowProps:i,hasDoneInitialMeasure:m}):e.cloneElement(t,{...o,placement:f,arrowProps:i,popper:p,hasDoneInitialMeasure:m,className:g()(t.props.className,!n&&l&&"show"),style:{...t.props.style,...o.style}})}})}));Kt.displayName="Overlay";const Jt=Kt;function Xt(e,t,n){const[r]=t,o=r.currentTarget,i=r.relatedTarget||r.nativeEvent[n];i&&i===o||a(o,i)||e(...t)}o().oneOf(["click","hover","focus"]);const Zt=({trigger:t=["hover","focus"],overlay:n,children:r,popperConfig:o={},show:i,defaultShow:a=!1,onToggle:l,delay:s,placement:u,flip:d=u&&-1!==u.indexOf("auto"),...f})=>{const p=(0,e.useRef)(null),h=m(p,r.ref),g=c(),y=(0,e.useRef)(""),[b,v]=(T=i,j=a,A=l,M=(0,e.useRef)(void 0!==T),L=(0,e.useState)(j),B=L[0],F=L[1],z=void 0!==T,U=M.current,M.current=z,!z&&U&&B!==j&&F(j),[z?T:B,(0,e.useCallback)((function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];A&&A.apply(void 0,[e].concat(n)),F(e)}),[A])]),w=function(e){return e&&"object"==typeof e?e:{show:e,hide:e}}(s),{onFocus:E,onBlur:S,onClick:x}="function"!=typeof r?e.Children.only(r).props:{},k=(0,e.useCallback)((()=>{g.clear(),y.current="show",w.show?g.set((()=>{"show"===y.current&&v(!0)}),w.show):v(!0)}),[w.show,v,g]),O=(0,e.useCallback)((()=>{g.clear(),y.current="hide",w.hide?g.set((()=>{"hide"===y.current&&v(!1)}),w.hide):v(!1)}),[w.hide,v,g]),C=(0,e.useCallback)(((...e)=>{k(),null==E||E(...e)}),[k,E]),P=(0,e.useCallback)(((...e)=>{O(),null==S||S(...e)}),[O,S]),I=(0,e.useCallback)(((...e)=>{v(!b),null==x||x(...e)}),[x,v,b]),D=(0,e.useCallback)(((...e)=>{Xt(k,e,"fromElement")}),[k]),_=(0,e.useCallback)(((...e)=>{Xt(O,e,"toElement")}),[O]),R=null==t?[]:[].concat(t),N={ref:e=>{h(Ht(e))}};var T,j,A,M,L,B,F,z,U;return-1!==R.indexOf("click")&&(N.onClick=I),-1!==R.indexOf("focus")&&(N.onFocus=C,N.onBlur=P),-1!==R.indexOf("hover")&&(N.onMouseOver=D,N.onMouseOut=_),(0,at.jsxs)(at.Fragment,{children:["function"==typeof r?r(N):(0,e.cloneElement)(r,N),(0,at.jsx)(Jt,{...f,show:b,onHide:O,flip:d,placement:u,popperConfig:o,target:p.current,children:n})]})};function en(t){var n=t.id,r=t.tip;return e.createElement(Zt,{placement:"auto",trigger:["click","hover","focus"],style:{display:"inline"},overlay:e.createElement(Ot,{id:n},r)},e.createElement("img",{src:"/images/shop/icon-reminder.svg",className:"options-icon"}))}function tn(e){return tn="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},tn(e)}function nn(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"!==tn(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!==tn(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(r.key),"symbol"===tn(o)?o:String(o)),r)}var o}function rn(e,t){return rn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},rn(e,t)}function on(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function an(e){return an=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},an(e)}var ln=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&&rn(e,t)}(l,t);var n,r,o,i,a=(o=l,i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=an(o);if(i){var n=an(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"===tn(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return on(e)}(this,e)});function l(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),(t=a.call(this,e)).state={text:e.outvar in e.data?e.data[e.outvar]:e.fallback?e.fallback:""},t.handleClick=t.handleClick.bind(on(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(en,{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}))}}])&&nn(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),l}(e.Component);function sn(e){return sn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},sn(e)}function un(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 cn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?un(Object(n),!0).forEach((function(t){var r,o,i;r=e,o=t,i=n[t],(o=fn(o))in r?Object.defineProperty(r,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):r[o]=i})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):un(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function dn(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,fn(r.key),r)}}function fn(e){var t=function(e,t){if("object"!==sn(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!==sn(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===sn(t)?t:String(t)}function pn(e,t){return pn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},pn(e,t)}function mn(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function hn(e){return hn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},hn(e)}var gn=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&&pn(e,t)}(l,t);var n,r,o,i,a=(o=l,i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=hn(o);if(i){var n=hn(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"===sn(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return mn(e)}(this,e)});function l(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),(t=a.call(this,e)).state={variant:e.outvar in e.data?e.data[e.outvar]:e.variants[e.fallback?e.fallback:0]},t.handleClick=t.handleClick.bind(mn(t)),t.props.target.construct(t.props.outvar,t.state.variant),t}return n=l,(r=[{key:"handleClick",value:function(e){this.setState(cn(cn({},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(en,{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))})))}}])&&dn(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),l}(e.Component);function yn(e){return yn="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},yn(e)}function bn(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"!==yn(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!==yn(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(r.key),"symbol"===yn(o)?o:String(o)),r)}var o}function vn(e,t){return vn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},vn(e,t)}function wn(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function En(e){return En=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},En(e)}var Sn=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&&vn(e,t)}(l,t);var n,r,o,i,a=(o=l,i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=En(o);if(i){var n=En(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"===yn(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return wn(e)}(this,e)});function l(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),(t=a.call(this,e)).state={checked:e.outvar in e.data?!!e.data[e.outvar]:!!e.fallback},t.handleClick=t.handleClick.bind(wn(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(en,{id:this.props.id+"tooltip",tip:this.props.tip})))}}])&&bn(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),l}(e.Component);function xn(e){return xn="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},xn(e)}function kn(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 On(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?kn(Object(n),!0).forEach((function(t){var r,o,i;r=e,o=t,i=n[t],(o=Pn(o))in r?Object.defineProperty(r,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):r[o]=i})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):kn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Cn(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,Pn(r.key),r)}}function Pn(e){var t=function(e,t){if("object"!==xn(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!==xn(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===xn(t)?t:String(t)}function In(e,t){return In=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},In(e,t)}function Dn(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function _n(e){return _n=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},_n(e)}var Rn=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&&In(e,t)}(l,t);var n,r,o,i,a=(o=l,i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=_n(o);if(i){var n=_n(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"===xn(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Dn(e)}(this,e)});function l(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),(t=a.call(this,e)).state={text:e.outvar in e.data?e.data[e.outvar].text:e.fallback?e.fallback.text:"",checked:e.outvar in e.data?e.data[e.outvar].checked:!!e.fallback&&e.fallback.checked},t.handleText=t.handleText.bind(Dn(t)),t.handleCheck=t.handleCheck.bind(Dn(t)),t.props.target.construct(t.props.outvar,t.state),t}return n=l,(r=[{key:"handleText",value:function(e){var t=On(On({},this.state),{},{text:e.target.value});this.setState(t),this.props.target.update(this.props.outvar,t)}},{key:"handleCheck",value:function(){var e=On(On({},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(en,{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}))}}])&&Cn(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),l}(e.Component),Nn={Radio:function(t,n,r,o){var i=o.title,a=o.variants,l=o.outvar,s=o.fallback,u=o.icon,c=o.tip;return e.createElement(gn,{target:t,title:i,variants:a,outvar:l,icon:u,tip:c,key:n,fallback:s,id:n,data:r})},Switch:function(t,n,r,o){var i=o.title,a=o.fallback,l=o.outvar,s=o.icon,u=o.tip;return e.createElement(Sn,{target:t,title:i,fallback:a,outvar:l,icon:s,tip:u,key:n,id:n,data:r})},Line:function(t,n,r,o){var i=o.title,a=o.fallback,l=o.outvar,s=o.icon,u=o.tip;return e.createElement(ln,{target:t,title:i,fallback:a,outvar:l,icon:s,tip:u,key:n,id:n,data:r})},SwitchLine:function(t,n,r,o){var i=o.title,a=o.fallback,l=o.outvar,s=o.icon,u=o.tip;return e.createElement(Rn,{target:t,title:i,fallback:a,outvar:l,icon:s,tip:u,key:n,id:n,data:r})},Default:function(t,n){return e.createElement("div",{key:t+n,style:{background:"red"}},"UNIMPLEMENTED")}},Tn=function(e){return Object.prototype.toString.call(e).slice(8,-1).toLowerCase()};function jn(e,t){var n=Tn(e),r={};return"array"===n?e.map((function(e,n){Object.assign(r,jn(e,t))})):"object"===n&&("string"!==Tn(e.type)||"object"!==Tn(e.args)&&"array"!==Tn(e.items)?Object.assign(r,jn((0,i.apply)(e,t),t)):e.type in Nn?r[e.args.outvar]=t[e.args.outvar]:"Group"===e.type&&Object.assign(r,jn((0,i.apply)(e.items,t),t))),r}const An={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};let Mn;const Ln=new Uint8Array(16);function Bn(){if(!Mn&&(Mn="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!Mn))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Mn(Ln)}const Fn=[];for(let e=0;e<256;++e)Fn.push((e+256).toString(16).slice(1));const zn=function(e,t,n){if(An.randomUUID&&!t&&!e)return An.randomUUID();const r=(e=e||{}).random||(e.rng||Bn)();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 Fn[e[t+0]]+Fn[e[t+1]]+Fn[e[t+2]]+Fn[e[t+3]]+"-"+Fn[e[t+4]]+Fn[e[t+5]]+"-"+Fn[e[t+6]]+Fn[e[t+7]]+"-"+Fn[e[t+8]]+Fn[e[t+9]]+"-"+Fn[e[t+10]]+Fn[e[t+11]]+Fn[e[t+12]]+Fn[e[t+13]]+Fn[e[t+14]]+Fn[e[t+15]]}(r)};function Un(e){return Un="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},Un(e)}function Wn(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==Un(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!==Un(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===Un(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function $n(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Gn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?$n(Object(n),!0).forEach((function(t){Wn(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$n(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Hn(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 Vn="function"==typeof Symbol&&Symbol.observable||"@@observable",qn=function(){return Math.random().toString(36).substring(7).split("").join(".")},Qn={INIT:"@@redux/INIT"+qn(),REPLACE:"@@redux/REPLACE"+qn(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+qn()}};function Yn(e,t,n){var r;if("function"==typeof t&&"function"==typeof n||"function"==typeof n&&"function"==typeof arguments[3])throw new Error(Hn(0));if("function"==typeof t&&void 0===n&&(n=t,t=void 0),void 0!==n){if("function"!=typeof n)throw new Error(Hn(1));return n(Yn)(e,t)}if("function"!=typeof e)throw new Error(Hn(2));var o=e,i=t,a=[],l=a,s=!1;function u(){l===a&&(l=a.slice())}function c(){if(s)throw new Error(Hn(3));return i}function d(e){if("function"!=typeof e)throw new Error(Hn(4));if(s)throw new Error(Hn(5));var t=!0;return u(),l.push(e),function(){if(t){if(s)throw new Error(Hn(6));t=!1,u();var n=l.indexOf(e);l.splice(n,1),a=null}}}function f(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(Hn(7));if(void 0===e.type)throw new Error(Hn(8));if(s)throw new Error(Hn(9));try{s=!0,i=o(i,e)}finally{s=!1}for(var t=a=l,n=0;n<t.length;n++)(0,t[n])();return e}return f({type:Qn.INIT}),(r={dispatch:f,subscribe:d,getState:c,replaceReducer:function(e){if("function"!=typeof e)throw new Error(Hn(10));o=e,f({type:Qn.REPLACE})}})[Vn]=function(){var e,t=d;return(e={subscribe:function(e){if("object"!=typeof e||null===e)throw new Error(Hn(11));function n(){e.next&&e.next(c())}return n(),{unsubscribe:t(n)}}})[Vn]=function(){return this},e},r}function Kn(e,t){return function(){return t(e.apply(this,arguments))}}function Jn(e,t){if("function"==typeof e)return Kn(e,t);if("object"!=typeof e||null===e)throw new Error(Hn(16));var n={};for(var r in e){var o=e[r];"function"==typeof o&&(n[r]=Kn(o,t))}return n}function Xn(){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 Zn=n(688),er=n(798);let tr=function(e){e()};const nr=()=>tr,rr=Symbol.for("react-redux-context"),or="undefined"!=typeof globalThis?globalThis:{};function ir(){var t;if(!e.createContext)return{};const n=null!=(t=or[rr])?t:or[rr]=new Map;let r=n.get(e.createContext);return r||(r=e.createContext(null),n.set(e.createContext,r)),r}const ar=ir();let lr=null;function sr(){return sr=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},sr.apply(this,arguments)}var ur=n(679),cr=n.n(ur),dr=n(366);const fr=["initMapStateToProps","initMapDispatchToProps","initMergeProps"];function pr(e,t,n,r,{areStatesEqual:o,areOwnPropsEqual:i,areStatePropsEqual:a}){let l,s,u,c,d,f=!1;return function(p,m){return f?function(f,p){const m=!i(p,s),h=!o(f,l,p,s);return l=f,s=p,m&&h?(u=e(l,s),t.dependsOnOwnProps&&(c=t(r,s)),d=n(u,c,s),d):m?(e.dependsOnOwnProps&&(u=e(l,s)),t.dependsOnOwnProps&&(c=t(r,s)),d=n(u,c,s),d):h?function(){const t=e(l,s),r=!a(t,u);return u=t,r&&(d=n(u,c,s)),d}():d}(p,m):(l=p,s=m,u=e(l,s),c=t(r,s),d=n(u,c,s),f=!0,d)}}function mr(e){return function(t){const n=e(t);function r(){return n}return r.dependsOnOwnProps=!1,r}}function hr(e){return e.dependsOnOwnProps?Boolean(e.dependsOnOwnProps):1!==e.length}function gr(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=hr(e);let o=r(t,n);return"function"==typeof o&&(r.mapToProps=o,r.dependsOnOwnProps=hr(o),o=r(t,n)),o},r}}function yr(e,t){return(n,r)=>{throw new Error(`Invalid value of type ${typeof e} for ${t} argument when connecting component ${r.wrappedComponentName}.`)}}function br(e,t,n){return sr({},n,e,t)}const vr={notify(){},get:()=>[]};function wr(e,t){let n,r=vr,o=0,i=!1;function a(){u.onStateChange&&u.onStateChange()}function l(){o++,n||(n=t?t.addNestedSub(a):e.subscribe(a),r=function(){const e=nr();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=vr)}const u={addNestedSub:function(e){l();const t=r.subscribe(e);let n=!1;return()=>{n||(n=!0,t(),s())}},notifyNestedSubs:function(){r.notify()},handleChangeWrapper:a,isSubscribed:function(){return i},trySubscribe:function(){i||(i=!0,l())},tryUnsubscribe:function(){i&&(i=!1,s())},getListeners:()=>r};return u}const Er="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?e.useLayoutEffect:e.useEffect;function Sr(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!=e&&t!=t}function xr(e,t){if(Sr(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;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])||!Sr(e[n[r]],t[n[r]]))return!1;return!0}const kr=["reactReduxForwardedRef"];let Or=()=>{throw new Error("uSES not initialized!")};const Cr=[null,null];function Pr(e,t,n,r,o,i){e.current=r,n.current=!1,o.current&&(o.current=null,i())}function Ir(e,t){return e===t}const Dr=function(t,n,r,{pure:o,areStatesEqual:i=Ir,areOwnPropsEqual:a=xr,areStatePropsEqual:l=xr,areMergedPropsEqual:s=xr,forwardRef:u=!1,context:c=ar}={}){const d=c,f=function(e){return e?"function"==typeof e?gr(e):yr(e,"mapStateToProps"):mr((()=>({})))}(t),p=function(e){return e&&"object"==typeof e?mr((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?gr(e):yr(e,"mapDispatchToProps"):mr((e=>({dispatch:e})))}(n),m=function(e){return e?"function"==typeof e?function(e){return function(t,{displayName:n,areMergedPropsEqual:r}){let o,i=!1;return function(t,n,a){const l=e(t,n,a);return i?r(l,o)||(o=l):(i=!0,o=l),o}}}(e):yr(e,"mergeProps"):()=>br}(r),h=Boolean(t);return t=>{const n=t.displayName||t.name||"Component",r=`Connect(${n})`,o={shouldHandleStateChanges:h,displayName:r,wrappedComponentName:n,WrappedComponent:t,initMapStateToProps:f,initMapDispatchToProps:p,initMergeProps:m,areStatesEqual:i,areStatePropsEqual:l,areOwnPropsEqual:a,areMergedPropsEqual:s};function c(n){const[r,i,a]=e.useMemo((()=>{const{reactReduxForwardedRef:e}=n,t=Ct(n,kr);return[n.context,e,t]}),[n]),l=e.useMemo((()=>r&&r.Consumer&&(0,dr.isContextConsumer)(e.createElement(r.Consumer,null))?r:d),[r,d]),s=e.useContext(l),u=Boolean(n.store)&&Boolean(n.store.getState)&&Boolean(n.store.dispatch),c=Boolean(s)&&Boolean(s.store),f=u?n.store:s.store,p=c?s.getServerState:f.getState,m=e.useMemo((()=>function(e,t){let{initMapStateToProps:n,initMapDispatchToProps:r,initMergeProps:o}=t,i=Ct(t,fr);return pr(n(e,i),r(e,i),o(e,i),e,i)}(f.dispatch,o)),[f]),[g,y]=e.useMemo((()=>{if(!h)return Cr;const e=wr(f,u?void 0:s.subscription),t=e.notifyNestedSubs.bind(e);return[e,t]}),[f,u,s]),b=e.useMemo((()=>u?s:sr({},s,{subscription:g})),[u,s,g]),v=e.useRef(),w=e.useRef(a),E=e.useRef(),S=e.useRef(!1),x=(e.useRef(!1),e.useRef(!1)),k=e.useRef();Er((()=>(x.current=!0,()=>{x.current=!1})),[]);const O=e.useMemo((()=>()=>E.current&&a===w.current?E.current:m(f.getState(),a)),[f,a]),C=e.useMemo((()=>e=>g?function(e,t,n,r,o,i,a,l,s,u,c){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===i.current?a.current||u():(i.current=n,s.current=n,a.current=!0,c())};return n.onStateChange=p,n.trySubscribe(),p(),()=>{if(d=!0,n.tryUnsubscribe(),n.onStateChange=null,f)throw f}}(h,f,g,m,w,v,S,x,E,y,e):()=>{}),[g]);var P,I;let D;P=Pr,I=[w,v,S,a,E,y],Er((()=>P(...I)),undefined);try{D=Or(C,O,p?()=>m(p(),a):O)}catch(e){throw k.current&&(e.message+=`\nThe error may be correlated with this previous error:\n${k.current.stack}\n\n`),e}Er((()=>{k.current=void 0,E.current=void 0,v.current=D}));const _=e.useMemo((()=>e.createElement(t,sr({},D,{ref:i}))),[i,t,D]);return e.useMemo((()=>h?e.createElement(l.Provider,{value:b},_):_),[l,_,b])}const g=e.memo(c);if(g.WrappedComponent=t,g.displayName=c.displayName=r,u){const n=e.forwardRef((function(t,n){return e.createElement(g,sr({},t,{reactReduxForwardedRef:n}))}));return n.displayName=r,n.WrappedComponent=t,cr()(n,t)}return cr()(g,t)}},_r=function({store:t,context:n,children:r,serverState:o,stabilityCheck:i="once",noopCheck:a="once"}){const l=e.useMemo((()=>{const e=wr(t);return{store:t,subscription:e,getServerState:o?()=>o:void 0,stabilityCheck:i,noopCheck:a}}),[t,o,i,a]),s=e.useMemo((()=>t.getState()),[t]);Er((()=>{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 u=n||ar;return e.createElement(u.Provider,{value:l},r)};var Rr;function Nr(t,n){var r=(0,e.useState)((function(){return{inputs:n,result:t()}}))[0],o=(0,e.useRef)(!0),i=(0,e.useRef)(r),a=o.current||Boolean(n&&i.current.inputs&&function(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}(n,i.current.inputs))?i.current:{inputs:n,result:t()};return(0,e.useEffect)((function(){o.current=!1,i.current=a}),[a]),a.result}lr=er.useSyncExternalStoreWithSelector,(e=>{Or=e})(Zn.useSyncExternalStore),Rr=y.unstable_batchedUpdates,tr=Rr;var Tr=Nr,jr=function(e,t){return Nr((function(){return e}),t)},Ar=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}}},Mr=function(e,t){return{top:e.top-t.top,left:e.left-t.left,bottom:e.bottom+t.bottom,right:e.right+t.right}},Lr=function(e,t){return{top:e.top+t.top,left:e.left+t.left,bottom:e.bottom-t.bottom,right:e.right-t.right}},Br={top:0,right:0,bottom:0,left:0},Fr=function(e){var t=e.borderBox,n=e.margin,r=void 0===n?Br:n,o=e.border,i=void 0===o?Br:o,a=e.padding,l=void 0===a?Br:a,s=Ar(Mr(t,r)),u=Ar(Lr(t,i)),c=Ar(Lr(u,l));return{marginBox:s,borderBox:Ar(t),paddingBox:u,contentBox:c,margin:r,border:i,padding:l}},zr=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},Ur=function(e,t){var n,r,o=e.borderBox,i=e.border,a=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 Fr({borderBox:s,border:i,margin:a,padding:l})},Wr=function(e,t){return void 0===t&&(t={x:window.pageXOffset,y:window.pageYOffset}),Ur(e,t)},$r=function(e,t){var n={top:zr(t.marginTop),right:zr(t.marginRight),bottom:zr(t.marginBottom),left:zr(t.marginLeft)},r={top:zr(t.paddingTop),right:zr(t.paddingRight),bottom:zr(t.paddingBottom),left:zr(t.paddingLeft)},o={top:zr(t.borderTopWidth),right:zr(t.borderRightWidth),bottom:zr(t.borderBottomWidth),left:zr(t.borderLeftWidth)};return Fr({borderBox:e,margin:n,padding:r,border:o})},Gr=function(e){var t=e.getBoundingClientRect(),n=window.getComputedStyle(e);return $r(t,n)},Hr=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function Vr(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(!((r=e[n])===(o=t[n])||Hr(r)&&Hr(o)))return!1;var r,o;return!0}function qr(e,t){void 0===t&&(t=Vr);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 i=e.apply(this,r);return n={lastResult:i,lastArgs:r,lastThis:this},i}return r.clear=function(){n=null},r}const Qr=function(e){var t=[],n=null,r=function(){for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];t=o,n||(n=requestAnimationFrame((function(){n=null,e.apply(void 0,t)})))};return r.cancel=function(){n&&(cancelAnimationFrame(n),n=null)},r};function Yr(e,t){}function Kr(){}function Jr(e,t,n){const r=t.map((t=>{const r=(o=n,i=t.options,{...o,...i});var o,i;return e.addEventListener(t.eventName,t.fn,r),function(){e.removeEventListener(t.eventName,t.fn,r)}}));return function(){r.forEach((e=>{e()}))}}Yr.bind(null,"warn"),Yr.bind(null,"error");const Xr=!0,Zr="Invariant failed";class eo extends Error{}function to(e,t){if(!e)throw new eo(Xr?Zr:`${Zr}: ${t||""}`)}eo.prototype.toString=function(){return this.message};class no extends e.Component{constructor(){super(...arguments),this.callbacks=null,this.unbind=Kr,this.onWindowError=e=>{const t=this.getCallbacks();t.isDragging()&&t.tryAbort(),e.error instanceof eo&&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=Jr(window,[{eventName:"error",fn:this.onWindowError}])}componentDidCatch(e){if(!(e instanceof eo))throw e;this.setState({})}componentWillUnmount(){this.unbind()}render(){return this.props.children(this.setCallbacks)}}const ro=e=>e+1,oo=(e,t)=>{const n=e.droppableId===t.droppableId,r=ro(e.index),o=ro(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 `},io=(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 `,ao=e=>`\n The item has returned to its starting position\n of ${ro(e.index)}\n`,lo={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 ${ro(e.source.index)}\n`,onDragUpdate:e=>{const t=e.destination;if(t)return oo(e.source,t);const n=e.combine;return n?io(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 ${ao(e.source)}\n `;const t=e.destination,n=e.combine;return t?`\n You have dropped the item.\n ${oo(e.source,t)}\n `:n?`\n You have dropped the item.\n ${io(e.draggableId,e.source,n)}\n `:`\n The item has been dropped while not over a drop area.\n ${ao(e.source)}\n `}};var so=lo;const uo={x:0,y:0},co=(e,t)=>({x:e.x+t.x,y:e.y+t.y}),fo=(e,t)=>({x:e.x-t.x,y:e.y-t.y}),po=(e,t)=>e.x===t.x&&e.y===t.y,mo=e=>({x:0!==e.x?-e.x:0,y:0!==e.y?-e.y:0}),ho=function(e,t,n){return void 0===n&&(n=0),"x"===e?{x:t,y:n}:{x:n,y:t}},go=(e,t)=>Math.sqrt((t.x-e.x)**2+(t.y-e.y)**2),yo=(e,t)=>Math.min(...t.map((t=>go(e,t)))),bo=e=>t=>({x:e(t.x),y:e(t.y)}),vo=(e,t)=>({top:e.top+t.y,left:e.left+t.x,bottom:e.bottom+t.y,right:e.right+t.x}),wo=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}],Eo=(e,t)=>t&&t.shouldClipSubject?((e,t)=>{const n=Ar({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):Ar(e);var So=e=>{let{page:t,withPlaceholder:n,axis:r,frame:o}=e;const i=((e,t)=>t?vo(e,t.scroll.diff.displacement):e)(t.marginBox,o),a=((e,t,n)=>n&&n.increasedBy?{...e,[t.end]:e[t.end]+n.increasedBy[t.line]}:e)(i,r,n);return{page:t,withPlaceholder:n,active:Eo(a,o)}},xo=(e,t)=>{e.frame||to(!1);const n=e.frame,r=fo(t,n.scroll.initial),o=mo(r),i={...n,scroll:{initial:n.scroll.initial,current:t,diff:{value:r,displacement:o},max:n.scroll.max}},a=So({page:e.subject.page,withPlaceholder:e.subject.withPlaceholder,axis:e.axis,frame:i});return{...e,frame:i,subject:a}};const ko=qr((e=>e.reduce(((e,t)=>(e[t.descriptor.id]=t,e)),{}))),Oo=qr((e=>e.reduce(((e,t)=>(e[t.descriptor.id]=t,e)),{}))),Co=qr((e=>Object.values(e))),Po=qr((e=>Object.values(e)));var Io=qr(((e,t)=>{const n=Po(t).filter((t=>e===t.descriptor.droppableId)).sort(((e,t)=>e.descriptor.index-t.descriptor.index));return n}));function Do(e){return e.at&&"REORDER"===e.at.type?e.at.destination:null}function _o(e){return e.at&&"COMBINE"===e.at.type?e.at.combine:null}var Ro=qr(((e,t)=>t.filter((t=>t.descriptor.id!==e.descriptor.id)))),No=(e,t)=>e.descriptor.droppableId===t.descriptor.id;const To={point:uo,value:0},jo={invisible:{},visible:{},all:[]};var Ao={displaced:jo,displacedBy:To,at:null},Mo=(e,t)=>n=>e<=n&&n<=t,Lo=e=>{const t=Mo(e.top,e.bottom),n=Mo(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),i=n(r.left)||n(r.right);if(o&&i)return!0;const a=r.top<e.top&&r.bottom>e.bottom,l=r.left<e.left&&r.right>e.right;return!(!a||!l)||(a&&i||l&&o)}},Bo=e=>{const t=Mo(e.top,e.bottom),n=Mo(e.left,e.right);return e=>t(e.top)&&t(e.bottom)&&n(e.left)&&n(e.right)};const Fo={direction:"vertical",line:"y",crossAxisLine:"x",start:"top",end:"bottom",size:"height",crossAxisStart:"left",crossAxisEnd:"right",crossAxisSize:"width"},zo={direction:"horizontal",line:"x",crossAxisLine:"y",start:"left",end:"right",size:"width",crossAxisStart:"top",crossAxisEnd:"bottom",crossAxisSize:"height"},Uo=e=>{let{target:t,destination:n,viewport:r,withDroppableDisplacement:o,isVisibleThroughFrameFn:i}=e;const a=o?((e,t)=>{const n=t.frame?t.frame.scroll.diff.displacement:uo;return vo(e,n)})(t,n):t;return((e,t,n)=>!!t.subject.active&&n(t.subject.active)(e))(a,n,i)&&((e,t,n)=>n(t)(e))(a,r,i)},Wo=e=>Uo({...e,isVisibleThroughFrameFn:Lo}),$o=e=>Uo({...e,isVisibleThroughFrameFn:Bo}),Go=(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 i=o[e];return!i||i.shouldAnimate};function Ho(e){let{afterDragging:t,destination:n,displacedBy:r,viewport:o,forceShouldAnimate:i,last:a}=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 Ar(Mr(n,r))}(t,r),s=t.descriptor.id;if(e.all.push(s),!Wo({target:l,destination:n,viewport:o,withDroppableDisplacement:!0}))return e.invisible[t.descriptor.id]=!0,e;const u={draggableId:s,shouldAnimate:Go(s,a,i)};return e.visible[s]=u,e}),{all:[],visible:{},invisible:{}})}function Vo(e){let{insideDestination:t,inHomeList:n,displacedBy:r,destination:o}=e;const i=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:jo,displacedBy:r,at:{type:"REORDER",destination:{droppableId:o.descriptor.id,index:i}}}}function qo(e){let{draggable:t,insideDestination:n,destination:r,viewport:o,displacedBy:i,last:a,index:l,forceShouldAnimate:s}=e;const u=No(t,r);if(null==l)return Vo({insideDestination:n,inHomeList:u,displacedBy:i,destination:r});const c=n.find((e=>e.descriptor.index===l));if(!c)return Vo({insideDestination:n,inHomeList:u,displacedBy:i,destination:r});const d=Ro(t,n),f=n.indexOf(c);return{displaced:Ho({afterDragging:d.slice(f),destination:r,displacedBy:i,last:a,viewport:o.frame,forceShouldAnimate:s}),displacedBy:i,at:{type:"REORDER",destination:{droppableId:r.descriptor.id,index:l}}}}function Qo(e,t){return Boolean(t.effected[e])}const Yo=(e,t)=>t.margin[e.start]+t.borderBox[e.size]/2,Ko=(e,t,n)=>t[e.crossAxisStart]+n.margin[e.crossAxisStart]+n.borderBox[e.crossAxisSize]/2,Jo=e=>{let{axis:t,moveRelativeTo:n,isMoving:r}=e;return ho(t.line,n.marginBox[t.end]+Yo(t,r),Ko(t,n.marginBox,r))},Xo=e=>{let{axis:t,moveRelativeTo:n,isMoving:r}=e;return ho(t.line,n.marginBox[t.start]-((e,t)=>t.margin[e.end]+t.borderBox[e.size]/2)(t,r),Ko(t,n.marginBox,r))};var Zo=(e,t)=>{const n=e.frame;return n?co(t,n.scroll.diff.displacement):t},ei=e=>{const t=(e=>{let{impact:t,draggable:n,droppable:r,draggables:o,afterCritical:i}=e;const a=n.page.borderBox.center,l=t.at;return r&&l?"REORDER"===l.type?(e=>{let{impact:t,draggable:n,draggables:r,droppable:o,afterCritical:i}=e;const a=Io(o.descriptor.id,r),l=n.page,s=o.axis;if(!a.length)return(e=>{let{axis:t,moveInto:n,isMoving:r}=e;return ho(t.line,n.contentBox[t.start]+Yo(t,r),Ko(t,n.contentBox,r))})({axis:s,moveInto:o.page,isMoving:l});const{displaced:u,displacedBy:c}=t,d=u.all[0];if(d){const e=r[d];if(Qo(d,i))return Xo({axis:s,moveRelativeTo:e.page,isMoving:l});const t=Ur(e.page,c.point);return Xo({axis:s,moveRelativeTo:t,isMoving:l})}const f=a[a.length-1];if(f.descriptor.id===n.descriptor.id)return l.borderBox.center;if(Qo(f.descriptor.id,i)){const e=Ur(f.page,mo(i.displacedBy.point));return Jo({axis:s,moveRelativeTo:e,isMoving:l})}return Jo({axis:s,moveRelativeTo:f.page,isMoving:l})})({impact:t,draggable:n,draggables:o,droppable:r,afterCritical:i}):(e=>{let{afterCritical:t,impact:n,draggables:r}=e;const o=_o(n);o||to(!1);const i=o.draggableId,a=r[i].page.borderBox.center,l=(e=>{let{displaced:t,afterCritical:n,combineWith:r,displacedBy:o}=e;const i=Boolean(t.visible[r]||t.invisible[r]);return Qo(r,n)?i?uo:mo(o.point):i?o.point:uo})({displaced:n.displaced,afterCritical:t,combineWith:i,displacedBy:n.displacedBy});return co(a,l)})({impact:t,draggables:o,afterCritical:i}):a})(e),n=e.droppable;return n?Zo(n,t):t},ti=(e,t)=>{const n=fo(t,e.scroll.initial),r=mo(n);return{frame:Ar({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 ni(e,t){return e.map((e=>t[e]))}var ri=e=>{let{pageBorderBoxCenter:t,draggable:n,viewport:r}=e;const o=((e,t)=>co(e.scroll.diff.displacement,t))(r,t),i=fo(o,n.page.borderBox.center);return co(n.client.borderBox.center,i)},oi=e=>{let{draggable:t,destination:n,newPageBorderBoxCenter:r,viewport:o,withDroppableDisplacement:i,onlyOnMainAxis:a=!1}=e;const l=fo(r,t.page.borderBox.center),s={target:vo(t.page.borderBox,l),destination:n,withDroppableDisplacement:i,viewport:o};return a?(e=>{return Uo({...e,isVisibleThroughFrameFn:(t=e.destination.axis,e=>{const n=Mo(e.top,e.bottom),r=Mo(e.left,e.right);return e=>t===Fo?n(e.top)&&n(e.bottom):r(e.left)&&r(e.right)})});var t})(s):$o(s)},ii=e=>{let{isMovingForward:t,draggable:n,destination:r,draggables:o,previousImpact:i,viewport:a,previousPageBorderBoxCenter:l,previousClientSelection:s,afterCritical:u}=e;if(!r.isEnabled)return null;const c=Io(r.descriptor.id,o),d=No(n,r),f=(e=>{let{isMovingForward:t,draggable:n,destination:r,insideDestination:o,previousImpact:i}=e;if(!r.isCombineEnabled)return null;if(!Do(i))return null;function a(e){const t={type:"COMBINE",combine:{draggableId:e,droppableId:r.descriptor.id}};return{...i,at:t}}const l=i.displaced.all,s=l.length?l[0]:null;if(t)return s?a(s):null;const u=Ro(n,o);if(!s)return u.length?a(u[u.length-1].descriptor.id):null;const c=u.findIndex((e=>e.descriptor.id===s));-1===c&&to(!1);const d=c-1;return d<0?null:a(u[d].descriptor.id)})({isMovingForward:t,draggable:n,destination:r,insideDestination:c,previousImpact:i})||(e=>{let{isMovingForward:t,isInHomeList:n,draggable:r,draggables:o,destination:i,insideDestination:a,previousImpact:l,viewport:s,afterCritical:u}=e;const c=l.at;if(c||to(!1),"REORDER"===c.type){const e=(e=>{let{isMovingForward:t,isInHomeList:n,insideDestination:r,location:o}=e;if(!r.length)return null;const i=o.index,a=t?i+1:i-1,l=r[0].descriptor.index,s=r[r.length-1].descriptor.index;return a<l||a>(n?s:s+1)?null:a})({isMovingForward:t,isInHomeList:n,location:c.destination,insideDestination:a});return null==e?null:qo({draggable:r,insideDestination:a,destination:i,viewport:s,last:l.displaced,displacedBy:l.displacedBy,index:e})}const d=(e=>{let{isMovingForward:t,destination:n,draggables:r,combine:o,afterCritical:i}=e;if(!n.isCombineEnabled)return null;const a=o.draggableId,l=r[a].descriptor.index;return Qo(a,i)?t?l:l-1:t?l+1:l})({isMovingForward:t,destination:i,displaced:l.displaced,draggables:o,combine:c.combine,afterCritical:u});return null==d?null:qo({draggable:r,insideDestination:a,destination:i,viewport:s,last:l.displaced,displacedBy:l.displacedBy,index:d})})({isMovingForward:t,isInHomeList:d,draggable:n,draggables:o,destination:r,insideDestination:c,previousImpact:i,viewport:a,afterCritical:u});if(!f)return null;const p=ei({impact:f,draggable:n,droppable:r,draggables:o,afterCritical:u});if(oi({draggable:n,destination:r,newPageBorderBoxCenter:p,viewport:a.frame,withDroppableDisplacement:!1,onlyOnMainAxis:!0}))return{clientSelection:ri({pageBorderBoxCenter:p,draggable:n,viewport:a}),impact:f,scrollJumpRequest:null};const m=fo(p,l),h=(e=>{let{impact:t,viewport:n,destination:r,draggables:o,maxScrollChange:i}=e;const a=ti(n,co(n.scroll.current,i)),l=r.frame?xo(r,co(r.frame.scroll.current,i)):r,s=t.displaced,u=Ho({afterDragging:ni(s.all,o),destination:r,displacedBy:t.displacedBy,viewport:a.frame,last:s,forceShouldAnimate:!1}),c=Ho({afterDragging:ni(s.all,o),destination:l,displacedBy:t.displacedBy,viewport:n.frame,last:s,forceShouldAnimate:!1}),d={},f={},p=[s,u,c];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:a,destination:r,draggables:o,maxScrollChange:m});return{clientSelection:s,impact:h,scrollJumpRequest:m}};const ai=e=>{const t=e.subject.active;return t||to(!1),t},li=(e,t)=>{const n=e.page.borderBox.center;return Qo(e.descriptor.id,t)?fo(n,t.displacedBy.point):n},si=(e,t)=>{const n=e.page.borderBox;return Qo(e.descriptor.id,t)?vo(n,mo(t.displacedBy.point)):n};var ui=qr((function(e,t){const n=t[e.line];return{value:n,point:ho(e.line,n)}}));const ci=(e,t)=>({...e,scroll:{...e.scroll,max:t}}),di=(e,t,n)=>{const r=e.frame;No(t,e)&&to(!1),e.subject.withPlaceholder&&to(!1);const o=ui(e.axis,t.displaceBy).point,i=((e,t,n)=>{const r=e.axis;if("virtual"===e.descriptor.mode)return ho(r.line,t[r.line]);const o=e.subject.page.contentBox[r.size],i=Io(e.descriptor.id,n).reduce(((e,t)=>e+t.client.marginBox[r.size]),0)+t[r.line]-o;return i<=0?null:ho(r.line,i)})(e,o,n),a={placeholderSize:o,increasedBy:i,oldFrameMaxScroll:e.frame?e.frame.scroll.max:null};if(!r){const t=So({page:e.subject.page,withPlaceholder:a,axis:e.axis,frame:e.frame});return{...e,subject:t}}const l=i?co(r.scroll.max,i):r.scroll.max,s=ci(r,l),u=So({page:e.subject.page,withPlaceholder:a,axis:e.axis,frame:s});return{...e,subject:u,frame:s}};var fi=e=>{const t=e.at;return t?"REORDER"===t.type?t.destination.droppableId:t.combine.droppableId:null},pi=e=>{let{state:t,type:n}=e;const r=((e,t)=>{const n=fi(e);return n?t[n]:null})(t.impact,t.dimensions.droppables),o=Boolean(r),i=t.dimensions.droppables[t.critical.droppable.id],a=r||i,l=a.axis.direction,s="vertical"===l&&("MOVE_UP"===n||"MOVE_DOWN"===n)||"horizontal"===l&&("MOVE_LEFT"===n||"MOVE_RIGHT"===n);if(s&&!o)return null;const u="MOVE_DOWN"===n||"MOVE_RIGHT"===n,c=t.dimensions.draggables[t.critical.draggable.id],d=t.current.page.borderBoxCenter,{draggables:f,droppables:p}=t.dimensions;return s?ii({isMovingForward:u,previousPageBorderBoxCenter:d,draggable:c,destination:a,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:i,droppables:a,viewport:l,afterCritical:s}=e;const u=(e=>{let{isMovingForward:t,pageBorderBoxCenter:n,source:r,droppables:o,viewport:i}=e;const a=r.subject.active;if(!a)return null;const l=r.axis,s=Mo(a[l.start],a[l.end]),u=Co(o).filter((e=>e!==r)).filter((e=>e.isEnabled)).filter((e=>Boolean(e.subject.active))).filter((e=>Lo(i.frame)(ai(e)))).filter((e=>{const n=ai(e);return t?a[l.crossAxisEnd]<n[l.crossAxisEnd]:n[l.crossAxisStart]<a[l.crossAxisStart]})).filter((e=>{const t=ai(e),n=Mo(t[l.start],t[l.end]);return s(t[l.start])||s(t[l.end])||n(a[l.start])||n(a[l.end])})).sort(((e,n)=>{const r=ai(e)[l.crossAxisStart],o=ai(n)[l.crossAxisStart];return t?r-o:o-r})).filter(((e,t,n)=>ai(e)[l.crossAxisStart]===ai(n[0])[l.crossAxisStart]));if(!u.length)return null;if(1===u.length)return u[0];const c=u.filter((e=>Mo(ai(e)[l.start],ai(e)[l.end])(n[l.line])));return 1===c.length?c[0]:c.length>1?c.sort(((e,t)=>ai(e)[l.start]-ai(t)[l.start]))[0]:u.sort(((e,t)=>{const r=yo(n,wo(ai(e))),o=yo(n,wo(ai(t)));return r!==o?r-o:ai(e)[l.start]-ai(t)[l.start]}))[0]})({isMovingForward:t,pageBorderBoxCenter:n,source:o,droppables:a,viewport:l});if(!u)return null;const c=Io(u.descriptor.id,i),d=(e=>{let{pageBorderBoxCenter:t,viewport:n,destination:r,insideDestination:o,afterCritical:i}=e;const a=o.filter((e=>$o({target:si(e,i),destination:r,viewport:n.frame,withDroppableDisplacement:!0}))).sort(((e,n)=>{const o=go(t,Zo(r,li(e,i))),a=go(t,Zo(r,li(n,i)));return o<a?-1:a<o?1:e.descriptor.index-n.descriptor.index}));return a[0]||null})({pageBorderBoxCenter:n,viewport:l,destination:u,insideDestination:c,afterCritical:s}),f=(e=>{let{previousPageBorderBoxCenter:t,moveRelativeTo:n,insideDestination:r,draggable:o,draggables:i,destination:a,viewport:l,afterCritical:s}=e;if(!n){if(r.length)return null;const e={displaced:jo,displacedBy:To,at:{type:"REORDER",destination:{droppableId:a.descriptor.id,index:0}}},t=ei({impact:e,draggable:o,droppable:a,draggables:i,afterCritical:s}),n=No(o,a)?a:di(a,o,i);return oi({draggable:o,destination:n,newPageBorderBoxCenter:t,viewport:l.frame,withDroppableDisplacement:!1,onlyOnMainAxis:!0})?e:null}const u=Boolean(t[a.axis.line]<=n.page.borderBox.center[a.axis.line]),c=(()=>{const e=n.descriptor.index;return n.descriptor.id===o.descriptor.id||u?e:e+1})(),d=ui(a.axis,o.displaceBy);return qo({draggable:o,insideDestination:r,destination:a,viewport:l,displacedBy:d,last:jo,index:c})})({previousPageBorderBoxCenter:n,destination:u,draggable:r,draggables:i,moveRelativeTo:d,insideDestination:c,viewport:l,afterCritical:s});if(!f)return null;const p=ei({impact:f,draggable:r,droppable:u,draggables:i,afterCritical:s});return{clientSelection:ri({pageBorderBoxCenter:p,draggable:r,viewport:l}),impact:f,scrollJumpRequest:null}})({isMovingForward:u,previousPageBorderBoxCenter:d,draggable:c,isOver:a,draggables:f,droppables:p,viewport:t.viewport,afterCritical:t.afterCritical})};function mi(e){return"DRAGGING"===e.phase||"COLLECTING"===e.phase}function hi(e){const t=Mo(e.top,e.bottom),n=Mo(e.left,e.right);return function(e){return t(e.y)&&n(e.x)}}const gi=(e,t)=>Ar(vo(e,t));function yi(e){let{displaced:t,id:n}=e;return Boolean(t.visible[n]||t.invisible[n])}var bi=e=>{let{pageOffset:t,draggable:n,draggables:r,droppables:o,previousImpact:i,viewport:a,afterCritical:l}=e;const s=gi(n.page.borderBox,t),u=function(e){let{pageBorderBox:t,draggable:n,droppables:r}=e;const o=Co(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(hi(n)(t.center))return!0;const i=e.axis,a=n.center[i.crossAxisLine],l=t[i.crossAxisStart],s=t[i.crossAxisEnd],u=Mo(n[i.crossAxisStart],n[i.crossAxisEnd]),c=u(l),d=u(s);return!c&&!d||(c?l<a:s>a)}));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,i=r.map((e=>{const n=e.axis,r=ho(e.axis.line,t.center[n.line],e.page.borderBox.center[n.crossAxisLine]);return{id:e.descriptor.id,distance:go(o,r)}})).sort(((e,t)=>t.distance-e.distance));return i[0]?i[0].id:null}({pageBorderBox:t,draggable:n,candidates:o}):null}({pageBorderBox:s,draggable:n,droppables:o});if(!u)return Ao;const c=o[u],d=Io(c.descriptor.id,r),f=((e,t)=>{const n=e.frame;return n?gi(t,n.scroll.diff.value):t})(c,s);return(e=>{let{draggable:t,pageBorderBoxWithDroppableScroll:n,previousImpact:r,destination:o,insideDestination:i,afterCritical:a}=e;if(!o.isCombineEnabled)return null;const l=o.axis,s=ui(o.axis,t.displaceBy),u=s.value,c=n[l.start],d=n[l.end],f=Ro(t,i).find((e=>{const t=e.descriptor.id,n=e.page.borderBox,o=n[l.size]/4,i=Qo(t,a),s=yi({displaced:r.displaced,id:t});return i?s?d>n[l.start]+o&&d<n[l.end]-o:c>n[l.start]-u+o&&c<n[l.end]-u-o:s?d>n[l.start]+u+o&&d<n[l.end]+u-o:c>n[l.start]+o&&c<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:i,destination:c,insideDestination:d,afterCritical:l})||(e=>{let{pageBorderBoxWithDroppableScroll:t,draggable:n,destination:r,insideDestination:o,last:i,viewport:a,afterCritical:l}=e;const s=r.axis,u=ui(r.axis,n.displaceBy),c=u.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:Ro(n,o).find((e=>{const t=e.descriptor.id,n=e.page.borderBox.center[s.line],r=Qo(t,l),o=yi({displaced:i,id:t});return r?o?f<=n:d<n-c:o?f<=n+c:d<n}))||null,inHomeList:No(n,r)});return qo({draggable:n,insideDestination:o,destination:r,viewport:a,last:i,displacedBy:u,index:p})})({pageBorderBoxWithDroppableScroll:f,draggable:n,destination:c,insideDestination:d,last:i.displaced,viewport:a,afterCritical:l})},vi=(e,t)=>({...e,[t.descriptor.id]:t});var wi=e=>{let{state:t,clientSelection:n,dimensions:r,viewport:o,impact:i,scrollJumpRequest:a}=e;const l=o||t.viewport,s=r||t.dimensions,u=n||t.current.client.selection,c=fo(u,t.initial.client.selection),d={offset:c,selection:u,borderBoxCenter:co(t.initial.client.borderBoxCenter,c)},f={selection:co(d.selection,l.scroll.current),borderBoxCenter:co(d.borderBoxCenter,l.scroll.current),offset:co(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],h=i||bi({pageOffset:f.offset,draggable:m,draggables:s.draggables,droppables:s.droppables,previousImpact:t.impact,viewport:l,afterCritical:t.afterCritical}),g=(e=>{let{draggable:t,draggables:n,droppables:r,previousImpact:o,impact:i}=e;const a=(e=>{let{previousImpact:t,impact:n,droppables:r}=e;const o=fi(t),i=fi(n);if(!o)return r;if(o===i)return r;const a=r[o];if(!a.subject.withPlaceholder)return r;const l=(e=>{const t=e.subject.withPlaceholder;t||to(!1);const n=e.frame;if(!n){const t=So({page:e.subject.page,axis:e.axis,frame:null,withPlaceholder:null});return{...e,subject:t}}const r=t.oldFrameMaxScroll;r||to(!1);const o=ci(n,r),i=So({page:e.subject.page,axis:e.axis,frame:o,withPlaceholder:null});return{...e,subject:i,frame:o}})(a);return vi(r,l)})({previousImpact:o,impact:i,droppables:r}),l=fi(i);if(!l)return a;const s=r[l];if(No(t,s))return a;if(s.subject.withPlaceholder)return a;const u=di(s,t,n);return vi(a,u)})({draggable:m,impact:h,previousImpact:t.impact,draggables:s.draggables,droppables:s.droppables});return{...t,current:p,dimensions:{draggables:s.draggables,droppables:g},impact:h,viewport:l,scrollJumpRequest:a||null,forceShouldAnimate:!a&&null}},Ei=e=>{let{impact:t,viewport:n,draggables:r,destination:o,forceShouldAnimate:i}=e;const a=t.displaced,l=function(e,t){return e.map((e=>t[e]))}(a.all,r),s=Ho({afterDragging:l,destination:o,displacedBy:t.displacedBy,viewport:n.frame,forceShouldAnimate:i,last:a});return{...t,displaced:s}},Si=e=>{let{impact:t,draggable:n,droppable:r,draggables:o,viewport:i,afterCritical:a}=e;const l=ei({impact:t,draggable:n,draggables:o,droppable:r,afterCritical:a});return ri({pageBorderBoxCenter:l,draggable:n,viewport:i})},xi=e=>{let{state:t,dimensions:n,viewport:r}=e;"SNAP"!==t.movementMode&&to(!1);const o=t.impact,i=r||t.viewport,a=n||t.dimensions,{draggables:l,droppables:s}=a,u=l[t.critical.draggable.id],c=fi(o);c||to(!1);const d=s[c],f=Ei({impact:o,viewport:i,destination:d,draggables:l}),p=Si({impact:f,draggable:u,droppable:d,draggables:l,viewport:i,afterCritical:t.afterCritical});return wi({impact:f,clientSelection:p,state:t,dimensions:a,viewport:i})},ki=e=>{let{draggable:t,home:n,draggables:r,viewport:o}=e;const i=ui(n.axis,t.displaceBy),a=Io(n.descriptor.id,r),l=a.indexOf(t);-1===l&&to(!1);const s=a.slice(l+1),u=s.reduce(((e,t)=>(e[t.descriptor.id]=!0,e)),{}),c={inVirtualList:"virtual"===n.descriptor.mode,displacedBy:i,effected:u};var d;return{impact:{displaced:Ho({afterDragging:s,destination:n,displacedBy:i,last:null,viewport:o.frame,forceShouldAnimate:!1}),displacedBy:i,at:{type:"REORDER",destination:(d=t.descriptor,{index:d.index,droppableId:d.droppableId})}},afterCritical:c}};const Oi=e=>"SNAP"===e.movementMode,Ci=(e,t,n)=>{const r=((e,t)=>({draggables:e.draggables,droppables:vi(e.droppables,t)}))(e.dimensions,t);return!Oi(e)||n?wi({state:e,dimensions:r}):xi({state:e,dimensions:r})};function Pi(e){return e.isDragging&&"SNAP"===e.movementMode?{...e,scrollJumpRequest:null}:e}const Ii={phase:"IDLE",completed:null,shouldFlush:!1};var Di=function(e,t){if(void 0===e&&(e=Ii),"FLUSH"===t.type)return{...Ii,shouldFlush:!0};if("INITIAL_PUBLISH"===t.type){"IDLE"!==e.phase&&to(!1);const{critical:n,clientSelection:r,viewport:o,dimensions:i,movementMode:a}=t.payload,l=i.draggables[n.draggable.id],s=i.droppables[n.droppable.id],u={selection:r,borderBoxCenter:l.client.borderBox.center,offset:uo},c={client:u,page:{selection:co(u.selection,o.scroll.initial),borderBoxCenter:co(u.selection,o.scroll.initial),offset:co(u.selection,o.scroll.diff.value)}},d=Co(i.droppables).every((e=>!e.isFixedOnPage)),{impact:f,afterCritical:p}=ki({draggable:l,home:s,draggables:i.draggables,viewport:o});return{phase:"DRAGGING",isDragging:!0,critical:n,movementMode:a,dimensions:i,initial:c,current:c,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&&to(!1),{...e,phase:"COLLECTING"});if("PUBLISH_WHILE_DRAGGING"===t.type)return"COLLECTING"!==e.phase&&"DROP_PENDING"!==e.phase&&to(!1),(e=>{let{state:t,published:n}=e;const r=n.modified.map((e=>{const n=t.dimensions.droppables[e.droppableId];return xo(n,e.scroll)})),o={...t.dimensions.droppables,...ko(r)},i=Oo((e=>{let{additions:t,updatedDroppables:n,viewport:r}=e;const o=r.scroll.diff.value;return t.map((e=>{const t=e.descriptor.droppableId,i=(e=>{const t=e.frame;return t||to(!1),t})(n[t]),a=i.scroll.diff.value,l=(e=>{let{draggable:t,offset:n,initialWindowScroll:r}=e;const o=Ur(t.client,n),i=Wr(o,r);return{...t,placeholder:{...t.placeholder,client:o},client:o,page:i}})({draggable:e,offset:co(o,a),initialWindowScroll:r.scroll.initial});return l}))})({additions:n.additions,updatedDroppables:o,viewport:t.viewport})),a={...t.dimensions.draggables,...i};n.removals.forEach((e=>{delete a[e]}));const l={droppables:o,draggables:a},s=fi(t.impact),u=s?l.droppables[s]:null,c=l.draggables[t.critical.draggable.id],d=l.droppables[t.critical.droppable.id],{impact:f,afterCritical:p}=ki({draggable:c,home:d,draggables:a,viewport:t.viewport}),m=u&&u.isCombineEnabled?t.impact:f,h=bi({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}),g={...t,phase:"DRAGGING",impact:h,onLiftImpact:f,dimensions:l,afterCritical:p,forceShouldAnimate:!1};return"COLLECTING"===t.phase?g:{...g,phase:"DROP_PENDING",reason:t.reason,isWaiting:!1}})({state:e,published:t.payload});if("MOVE"===t.type){if("DROP_PENDING"===e.phase)return e;mi(e)||to(!1);const{client:n}=t.payload;return po(n,e.current.client.selection)?e:wi({state:e,clientSelection:n,impact:Oi(e)?e.impact:null})}if("UPDATE_DROPPABLE_SCROLL"===t.type){if("DROP_PENDING"===e.phase)return Pi(e);if("COLLECTING"===e.phase)return Pi(e);mi(e)||to(!1);const{id:n,newScroll:r}=t.payload,o=e.dimensions.droppables[n];if(!o)return e;const i=xo(o,r);return Ci(e,i,!1)}if("UPDATE_DROPPABLE_IS_ENABLED"===t.type){if("DROP_PENDING"===e.phase)return e;mi(e)||to(!1);const{id:n,isEnabled:r}=t.payload,o=e.dimensions.droppables[n];o||to(!1),o.isEnabled===r&&to(!1);const i={...o,isEnabled:r};return Ci(e,i,!0)}if("UPDATE_DROPPABLE_IS_COMBINE_ENABLED"===t.type){if("DROP_PENDING"===e.phase)return e;mi(e)||to(!1);const{id:n,isCombineEnabled:r}=t.payload,o=e.dimensions.droppables[n];o||to(!1),o.isCombineEnabled===r&&to(!1);const i={...o,isCombineEnabled:r};return Ci(e,i,!0)}if("MOVE_BY_WINDOW_SCROLL"===t.type){if("DROP_PENDING"===e.phase||"DROP_ANIMATING"===e.phase)return e;mi(e)||to(!1),e.isWindowScrollAllowed||to(!1);const n=t.payload.newScroll;if(po(e.viewport.scroll.current,n))return Pi(e);const r=ti(e.viewport,n);return Oi(e)?xi({state:e,viewport:r}):wi({state:e,viewport:r})}if("UPDATE_VIEWPORT_MAX_SCROLL"===t.type){if(!mi(e))return e;const n=t.payload.maxScroll;if(po(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&&to(!1);const n=pi({state:e,type:t.type});return n?wi({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&&to(!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&&to(!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 _i=e=>({type:"LIFT",payload:e}),Ri=e=>({type:"PUBLISH_WHILE_DRAGGING",payload:e}),Ni=()=>({type:"COLLECTION_STARTING",payload:null}),Ti=e=>({type:"UPDATE_DROPPABLE_SCROLL",payload:e}),ji=e=>({type:"UPDATE_DROPPABLE_IS_ENABLED",payload:e}),Ai=e=>({type:"UPDATE_DROPPABLE_IS_COMBINE_ENABLED",payload:e}),Mi=e=>({type:"MOVE",payload:e}),Li=()=>({type:"MOVE_UP",payload:null}),Bi=()=>({type:"MOVE_DOWN",payload:null}),Fi=()=>({type:"MOVE_RIGHT",payload:null}),zi=()=>({type:"MOVE_LEFT",payload:null}),Ui=()=>({type:"FLUSH",payload:null}),Wi=e=>({type:"DROP_COMPLETE",payload:e}),$i=e=>({type:"DROP",payload:e}),Gi="cubic-bezier(.2,1,.1,1)",Hi=0,Vi=.7,qi=.75,Qi={outOfTheWay:.2,minDropTime:.33,maxDropTime:.55},Yi=`${Qi.outOfTheWay}s cubic-bezier(0.2, 0, 0, 1)`,Ki={fluid:`opacity ${Yi}`,snap:`transform ${Yi}, opacity ${Yi}`,drop:e=>{const t=`${e}s ${Gi}`;return`transform ${t}, opacity ${t}`},outOfTheWay:`transform ${Yi}`,placeholder:`height ${Yi}, width ${Yi}, margin ${Yi}`},Ji=e=>po(e,uo)?void 0:`translate(${e.x}px, ${e.y}px)`,Xi=Ji,Zi=(e,t)=>{const n=Ji(e);if(n)return t?`${n} scale(${qi})`:n},{minDropTime:ea,maxDropTime:ta}=Qi,na=ta-ea;var ra=e=>{let{getState:t,dispatch:n}=e;return e=>r=>{if("DROP"!==r.type)return void e(r);const o=t(),i=r.payload.reason;if("COLLECTING"===o.phase)return void n((a={reason:i},{type:"DROP_PENDING",payload:a}));var a;if("IDLE"===o.phase)return;"DROP_PENDING"===o.phase&&o.isWaiting&&to(!1),"DRAGGING"!==o.phase&&"DROP_PENDING"!==o.phase&&to(!1);const l=o.critical,s=o.dimensions,u=s.draggables[o.critical.draggable.id],{impact:c,didDropInsideDroppable:d}=(e=>{let{draggables:t,reason:n,lastImpact:r,home:o,viewport:i,onLiftImpact:a}=e;return r.at&&"DROP"===n?"REORDER"===r.at.type?{impact:r,didDropInsideDroppable:!0}:{impact:{...r,displaced:jo},didDropInsideDroppable:!0}:{impact:Ei({draggables:t,impact:a,destination:o,viewport:i,forceShouldAnimate:!0}),didDropInsideDroppable:!1}})({reason:i,lastImpact:o.impact,afterCritical:o.afterCritical,onLiftImpact:o.onLiftImpact,home:o.dimensions.droppables[o.critical.droppable.id],viewport:o.viewport,draggables:o.dimensions.draggables}),f=d?Do(c):null,p=d?_o(c):null,m={index:l.draggable.index,droppableId:l.droppable.id},h={draggableId:u.descriptor.id,type:u.descriptor.type,source:m,reason:i,mode:o.movementMode,destination:f,combine:p},g=(e=>{let{impact:t,draggable:n,dimensions:r,viewport:o,afterCritical:i}=e;const{draggables:a,droppables:l}=r,s=fi(t),u=s?l[s]:null,c=l[n.descriptor.droppableId],d=Si({impact:t,draggable:n,draggables:a,afterCritical:i,droppable:u||c,viewport:o});return fo(d,n.client.borderBox.center)})({impact:c,draggable:u,dimensions:s,viewport:o.viewport,afterCritical:o.afterCritical}),y={critical:o.critical,afterCritical:o.afterCritical,result:h,impact:c};if(po(o.current.client.offset,g)&&!Boolean(h.combine))return void n(Wi({completed:y}));const b=(e=>{let{current:t,destination:n,reason:r}=e;const o=go(t,n);if(o<=0)return ea;if(o>=1500)return ta;const i=ea+na*(o/1500);return Number(("CANCEL"===r?.6*i:i).toFixed(2))})({current:o.current.client.offset,destination:g,reason:i});n((e=>({type:"DROP_ANIMATE",payload:e}))({newHomeClientOffset:g,dropDuration:b,completed:y}))}},oa=()=>({x:window.pageXOffset,y:window.pageYOffset});var ia=e=>{const t=function(e){let{onWindowScroll:t}=e;const n=Qr((function(){t(oa())})),r=function(e){return{eventName:"scroll",options:{passive:!0,capture:!1},fn:t=>{t.target!==window&&t.target!==window.document||e()}}}(n);let o=Kr;function i(){return o!==Kr}return{start:function(){i()&&to(!1),o=Jr(window,[r])},stop:function(){i()||to(!1),n.cancel(),o(),o=Kr},isActive:i}}({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 aa=(e,t)=>{t()},la=(e,t)=>({draggableId:e.draggable.id,type:e.droppable.type,source:{droppableId:e.droppable.id,index:e.draggable.index},mode:t});function sa(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 ua=(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&&to(!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||to(!1),r=null,aa(0,(()=>sa(e().onDragEnd,n,t,so.onDragEnd)))};return{beforeCapture:(t,n)=>{r&&to(!1),aa(0,(()=>{const r=e().onBeforeCapture;r&&r({draggableId:t,mode:n})}))},beforeStart:(t,n)=>{r&&to(!1),aa(0,(()=>{const r=e().onBeforeDragStart;r&&r(la(t,n))}))},start:(o,i)=>{r&&to(!1);const a=la(o,i);r={mode:i,lastCritical:o,lastLocation:a.source,lastCombine:null},n.add((()=>{aa(0,(()=>sa(e().onDragStart,a,t,so.onDragStart)))}))},update:(o,i)=>{const a=Do(i),l=_o(i);r||to(!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 u=(d=a,!(null==(c=r.lastLocation)&&null==d||null!=c&&null!=d&&c.droppableId===d.droppableId&&c.index===d.index));var c,d;u&&(r.lastLocation=a);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&&!u&&!f)return;const p={...la(o,r.mode),combine:l,destination:a};n.add((()=>{aa(0,(()=>sa(e().onDragUpdate,p,t,so.onDragUpdate)))}))},flush:()=>{r||to(!1),n.flush()},drop:o,abort:()=>{if(!r)return;const e={...la(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)}},ca=e=>t=>n=>{if("DROP_ANIMATION_FINISHED"!==n.type)return void t(n);const r=e.getState();"DROP_ANIMATING"!==r.phase&&to(!1),e.dispatch(Wi({completed:r.completed}))},da=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 i={eventName:"scroll",options:{capture:!0,passive:!1,once:!0},fn:function(){"DROP_ANIMATING"===e.getState().phase&&e.dispatch({type:"DROP_ANIMATION_FINISHED",payload:null})}};n=requestAnimationFrame((()=>{n=null,t=Jr(window,[i])}))}},fa=e=>t=>n=>{if(t(n),"PUBLISH_WHILE_DRAGGING"!==n.type)return;const r=e.getState();"DROP_PENDING"===r.phase&&(r.isWaiting||e.dispatch($i({reason:r.reason})))};const pa=Xn;var ma=e=>{let{dimensionMarshal:t,focusMarshal:n,styleMarshal:r,getResponders:o,announce:i,autoScroller:a}=e;return Yn(Di,pa(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(Hn(15))},o={getState:n.getState,dispatch:function(){return r.apply(void 0,arguments)}},i=t.map((function(e){return e(o)}));return r=Xn.apply(void 0,i)(n.dispatch),Gn(Gn({},n),{},{dispatch:r})}}}((l=r,()=>e=>t=>{"INITIAL_PUBLISH"===t.type&&l.dragging(),"DROP_ANIMATE"===t.type&&l.dropping(t.payload.completed.result.reason),"FLUSH"!==t.type&&"DROP_COMPLETE"!==t.type||l.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:i,clientSelection:a,movementMode:l}=o.payload,s=n();"DROP_ANIMATING"===s.phase&&r(Wi({completed:s.completed})),"IDLE"!==n().phase&&to(!1),r(Ui()),r({type:"BEFORE_INITIAL_CAPTURE",payload:{draggableId:i,movementMode:l}});const u={draggableId:i,scrollOptions:{shouldPublishImmediately:"SNAP"===l}},{critical:c,dimensions:d,viewport:f}=e.startPublishing(u);r({type:"INITIAL_PUBLISH",payload:{critical:c,dimensions:d,clientSelection:a,movementMode:l,viewport:f}})}})(t),ra,ca,da,fa,(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&&to(!1),void e.start(o)}n(r),e.scroll(t.getState())})(a),ia,(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),ua(o,i))));var l},ha=e=>{let{scrollHeight:t,scrollWidth:n,height:r,width:o}=e;const i=fo({x:n,y:t},{x:o,y:r});return{x:Math.max(0,i.x),y:Math.max(0,i.y)}},ga=()=>{const e=document.documentElement;return e||to(!1),e},ya=()=>{const e=ga();return ha({scrollHeight:e.scrollHeight,scrollWidth:e.scrollWidth,width:e.clientWidth,height:e.clientHeight})};function ba(e,t,n){return n.descriptor.id!==t.id&&(n.descriptor.type===t.type&&"virtual"===e.droppable.getById(n.descriptor.droppableId).descriptor.mode)}var va=(e,t)=>{let n=null;const r=function(e){let{registry:t,callbacks:n}=e,r={additions:{},removals:{},modified:{}},o=null;const i=()=>{o||(n.collectionStarting(),o=requestAnimationFrame((()=>{o=null;const{additions:e,removals:i,modified:a}=r,l=Object.keys(e).map((e=>t.draggable.getById(e).getDimension(uo))).sort(((e,t)=>e.descriptor.index-t.descriptor.index)),s=Object.keys(a).map((e=>({droppableId:e,scroll:t.droppable.getById(e).callbacks.getScrollWhileDragging()}))),u={additions:l,removals:Object.keys(i),modified:s};r={additions:{},removals:{},modified:{}},n.publish(u)})))};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],i()},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],i()},stop:()=>{o&&(cancelAnimationFrame(o),o=null,r={additions:{},removals:{},modified:{}})}}}({callbacks:{publish:t.publishWhileDragging,collectionStarting:t.collectionStarting},registry:e}),o=t=>{n||to(!1);const o=n.critical.draggable;"ADDITION"===t.type&&ba(e,o,t.value)&&r.add(t.value),"REMOVAL"===t.type&&ba(e,o,t.value)&&r.remove(t.value)},i={updateDroppableIsEnabled:(r,o)=>{e.droppable.exists(r)||to(!1),n&&t.updateDroppableIsEnabled({id:r,isEnabled:o})},updateDroppableIsCombineEnabled:(r,o)=>{n&&(e.droppable.exists(r)||to(!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)||to(!1),t.updateDroppableScroll({id:r,newScroll:o}))},startPublishing:t=>{n&&to(!1);const r=e.draggable.getById(t.draggableId),i=e.droppable.getById(r.descriptor.droppableId),a={draggable:r.descriptor,droppable:i.descriptor},l=e.subscribe(o);return n={critical:a,unsubscribe:l},(e=>{let{critical:t,scrollOptions:n,registry:r}=e;const o=(()=>{const e=oa(),t=ya(),n=e.y,r=e.x,o=ga(),i=o.clientWidth,a=o.clientHeight;return{frame:Ar({top:n,left:r,right:r+i,bottom:n+a}),scroll:{initial:e,current:e,max:t,diff:{value:uo,displacement:uo}}}})(),i=o.scroll.current,a=t.droppable,l=r.droppable.getAllByType(a.type).map((e=>e.callbacks.getDimensionAndWatchScroll(i,n))),s=r.draggable.getAllByType(t.draggable.type).map((e=>e.getDimension(i)));return{dimensions:{draggables:Oo(s),droppables:ko(l)},critical:t,viewport:o}})({critical:a,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 i},wa=(e,t)=>"IDLE"===e.phase||"DROP_ANIMATING"===e.phase&&e.completed.result.draggableId!==t&&"DROP"===e.completed.result.reason,Ea=e=>{window.scrollBy(e.x,e.y)};const Sa=qr((e=>Co(e).filter((e=>!!e.isEnabled&&!!e.frame))));const xa={startFromPercentage:.25,maxScrollAtPercentage:.05,maxPixelScroll:28,ease:e=>e**2,durationDampening:{stopDampeningAt:1200,accelerateAt:360},disabled:!1};var ka=e=>{let{startOfRange:t,endOfRange:n,current:r}=e;const o=n-t;return 0===o?0:(r-t)/o},Oa=e=>{let{distanceToEdge:t,thresholds:n,dragStartTime:r,shouldUseTimeDampening:o,getAutoScrollerOptions:i}=e;const a=function(e,t,n){void 0===n&&(n=()=>xa);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-ka({startOfRange:t.maxScrollValueAt,endOfRange:t.startScrollingFrom,current:e}),i=r.maxPixelScroll*r.ease(o);return Math.ceil(i)}(t,n,i);return 0===a?0:o?Math.max(((e,t,n)=>{const r=n(),o=r.durationDampening.accelerateAt,i=r.durationDampening.stopDampeningAt,a=t,l=i,s=Date.now()-a;if(s>=i)return e;if(s<o)return 1;const u=ka({startOfRange:o,endOfRange:l,current:s}),c=e*r.ease(u);return Math.ceil(c)})(a,r,i),1):a},Ca=e=>{let{container:t,distanceToEdges:n,dragStartTime:r,axis:o,shouldUseTimeDampening:i,getAutoScrollerOptions:a}=e;const l=function(e,t,n){void 0===n&&(n=()=>xa);const r=n();return{startScrollingFrom:e[t.size]*r.startFromPercentage,maxScrollValueAt:e[t.size]*r.maxScrollAtPercentage}}(t,o,a);return n[o.end]<n[o.start]?Oa({distanceToEdge:n[o.end],thresholds:l,dragStartTime:r,shouldUseTimeDampening:i,getAutoScrollerOptions:a}):-1*Oa({distanceToEdge:n[o.start],thresholds:l,dragStartTime:r,shouldUseTimeDampening:i,getAutoScrollerOptions:a})};const Pa=bo((e=>0===e?0:e));var Ia=e=>{let{dragStartTime:t,container:n,subject:r,center:o,shouldUseTimeDampening:i,getAutoScrollerOptions:a}=e;const l={top:o.y-n.top,right:n.right-o.x,bottom:n.bottom-o.y,left:o.x-n.left},s=Ca({container:n,distanceToEdges:l,dragStartTime:t,axis:Fo,shouldUseTimeDampening:i,getAutoScrollerOptions:a}),u=Ca({container:n,distanceToEdges:l,dragStartTime:t,axis:zo,shouldUseTimeDampening:i,getAutoScrollerOptions:a}),c=Pa({x:u,y:s});if(po(c,uo))return null;const d=(e=>{let{container:t,subject:n,proposedScroll:r}=e;const o=n.height>t.height,i=n.width>t.width;return i||o?i&&o?null:{x:i?0:r.x,y:o?0:r.y}:r})({container:n,subject:r,proposedScroll:c});return d?po(d,uo)?null:d:null};const Da=bo((e=>0===e?0:e>0?1:-1)),_a=(()=>{const e=(e,t)=>e<0?e:e>t?e-t:0;return t=>{let{current:n,max:r,change:o}=t;const i=co(n,o),a={x:e(i.x,r.x),y:e(i.y,r.y)};return po(a,uo)?null:a}})(),Ra=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)},i=Da(r),a=_a({max:o,current:n,change:i});return!a||0!==i.x&&0===a.x||0!==i.y&&0===a.y},Na=(e,t)=>Ra({current:e.scroll.current,max:e.scroll.max,change:t}),Ta=(e,t)=>{const n=e.frame;return!!n&&Ra({current:n.scroll.current,max:n.scroll.max,change:t})};var ja=e=>{let{state:t,dragStartTime:n,shouldUseTimeDampening:r,scrollWindow:o,scrollDroppable:i,getAutoScrollerOptions:a}=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:i,getAutoScrollerOptions:a}=e;const l=Ia({dragStartTime:o,container:t.frame,subject:n,center:r,shouldUseTimeDampening:i,getAutoScrollerOptions:a});return l&&Na(t,l)?l:null})({dragStartTime:n,viewport:t.viewport,subject:s,center:l,shouldUseTimeDampening:r,getAutoScrollerOptions:a});if(e)return void o(e)}const u=(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=Sa(t).find((t=>(t.frame||to(!1),hi(t.frame.pageMarginBox)(e))))||null;return n})(t,r);return o})({center:l,destination:fi(t.impact),droppables:t.dimensions.droppables});if(!u)return;const c=(e=>{let{droppable:t,subject:n,center:r,dragStartTime:o,shouldUseTimeDampening:i,getAutoScrollerOptions:a}=e;const l=t.frame;if(!l)return null;const s=Ia({dragStartTime:o,container:l.pageMarginBox,subject:n,center:r,shouldUseTimeDampening:i,getAutoScrollerOptions:a});return s&&Ta(t,s)?s:null})({dragStartTime:n,droppable:u,subject:s,center:l,shouldUseTimeDampening:r,getAutoScrollerOptions:a});c&&i(u.descriptor.id,c)},Aa=e=>{let{move:t,scrollDroppable:n,scrollWindow:r}=e;return e=>{const o=e.scrollJumpRequest;if(!o)return;const i=fi(e.impact);i||to(!1);const a=((e,t)=>{if(!Ta(e,t))return t;const r=((e,t)=>{const n=e.frame;return n&&Ta(e,t)?_a({current:n.scroll.current,max:n.scroll.max,change:t}):null})(e,t);if(!r)return n(e.descriptor.id,t),null;const o=fo(t,r);return n(e.descriptor.id,o),fo(t,o)})(e.dimensions.droppables[i],o);if(!a)return;const l=e.viewport,s=((e,t,n)=>{if(!e)return n;if(!Na(t,n))return n;const o=((e,t)=>{if(!Na(e,t))return null;const n=e.scroll.max,r=e.scroll.current;return _a({current:r,max:n,change:t})})(t,n);if(!o)return r(n),null;const i=fo(n,o);return r(i),fo(n,i)})(e.isWindowScrollAllowed,l,a);s&&((e,n)=>{const r=co(e.current.client.selection,n);t({client:r})})(e,s)}},Ma=e=>{let{scrollDroppable:t,scrollWindow:n,move:r,getAutoScrollerOptions:o}=e;const i=(e=>{let{scrollWindow:t,scrollDroppable:n,getAutoScrollerOptions:r=(()=>xa)}=e;const o=Qr(t),i=Qr(n);let a=null;const l=e=>{a||to(!1);const{shouldUseTimeDampening:t,dragStartTime:n}=a;ja({state:e,scrollWindow:o,scrollDroppable:i,dragStartTime:n,shouldUseTimeDampening:t,getAutoScrollerOptions:r})};return{start:e=>{a&&to(!1);const t=Date.now();let n=!1;const o=()=>{n=!0};ja({state:e,dragStartTime:0,shouldUseTimeDampening:!1,scrollWindow:o,scrollDroppable:o,getAutoScrollerOptions:r}),a={dragStartTime:t,shouldUseTimeDampening:n},n&&l(e)},stop:()=>{a&&(o.cancel(),i.cancel(),a=null)},scroll:l}})({scrollWindow:n,scrollDroppable:t,getAutoScrollerOptions:o}),a=Aa({move:r,scrollWindow:n,scrollDroppable:t});return{scroll:e=>{o().disabled||"DRAGGING"!==e.phase||("FLUID"!==e.movementMode?e.scrollJumpRequest&&a(e):i.scroll(e))},start:i.start,stop:i.stop}};const La="data-rfd",Ba=(()=>{const e=`${La}-drag-handle`;return{base:e,draggableId:`${e}-draggable-id`,contextId:`${e}-context-id`}})(),Fa=(()=>{const e=`${La}-draggable`;return{base:e,contextId:`${e}-context-id`,id:`${e}-id`}})(),za=(()=>{const e=`${La}-droppable`;return{base:e,contextId:`${e}-context-id`,id:`${e}-id`}})(),Ua={contextId:`${La}-scroll-container-context-id`},Wa=(e,t)=>e.map((e=>{const n=e.styles[t];return n?`${e.selector} { ${n} }`:""})).join(" ");var $a=e=>{const t=(n=e,e=>`[${e}="${n}"]`);var n;const r=(()=>{const e="\n cursor: -webkit-grab;\n cursor: grab;\n ";return{selector:t(Ba.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}}})(),o=[(()=>{const e=`\n transition: ${Ki.outOfTheWay};\n `;return{selector:t(Fa.contextId),styles:{dragging:e,dropAnimating:e,userCancel:e}}})(),r,{selector:t(za.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:Wa(o,"always"),resting:Wa(o,"resting"),dragging:Wa(o,"dragging"),dropAnimating:Wa(o,"dropAnimating"),userCancel:Wa(o,"userCancel")}},Ga="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?e.useLayoutEffect:e.useEffect;const Ha=()=>{const e=document.querySelector("head");return e||to(!1),e},Va=e=>{const t=document.createElement("style");return e&&t.setAttribute("nonce",e),t.type="text/css",t};function qa(e,t){return Array.from(e.querySelectorAll(t))}var Qa=e=>e?.ownerDocument?.defaultView||window;function Ya(e){return e instanceof Qa(e).HTMLElement}function Ka(){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,i=r(o);i&&t.uniqueId===i.uniqueId&&(delete e.draggables[o],e.droppables[t.descriptor.droppableId]&&n({type:"REMOVAL",value:t}))},getById:function(e){const t=r(e);return t||to(!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||to(!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 Ja=e.createContext(null),Xa=()=>{const e=document.body;return e||to(!1),e},Za={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 el=e=>`rfd-announcement-${e}`,tl={separator:"::"};var nl=function(t,n){void 0===n&&(n=tl);const r=e.useId();return Tr((()=>`${t}${n.separator}${r}`),[n.separator,t,r])},rl=e.createContext(null);function ol(t){const n=(0,e.useRef)(t);return(0,e.useEffect)((()=>{n.current=t})),n}function il(e){return"IDLE"!==e.phase&&"DROP_ANIMATING"!==e.phase&&e.isDragging}const al={13:!0,9:!0};var ll=e=>{al[e.keyCode]&&e.preventDefault()},sl=(()=>{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 ul={type:"IDLE"};function cl(){}const dl={34:!0,33:!0,36:!0,35:!0};const fl={type:"IDLE"},pl=["input","button","textarea","select","option","optgroup","video","audio"];function ml(e,t){if(null==t)return!1;if(pl.includes(t.tagName.toLowerCase()))return!0;const n=t.getAttribute("contenteditable");return"true"===n||""===n||t!==e&&ml(e,t.parentElement)}function hl(e,t){const n=t.target;return!!Ya(n)&&ml(e,n)}var gl=e=>Ar(e.getBoundingClientRect()).center;const yl=(()=>{const e="matches";return"undefined"==typeof document?e:[e,"msMatchesSelector","webkitMatchesSelector"].find((e=>e in Element.prototype))||e})();function bl(e,t){return null==e?null:e[yl](t)?e:bl(e.parentElement,t)}function vl(e,t){return e.closest?e.closest(t):bl(e,t)}function wl(e){e.preventDefault()}function El(e){let{expected:t,phase:n,isLockActive:r,shouldWarn:o}=e;return!!r()&&t===n}function Sl(e){let{lockAPI:t,store:n,registry:r,draggableId:o}=e;if(t.isClaimed())return!1;const i=r.draggable.findById(o);return!!i&&!!i.options.isEnabled&&!!wa(n.getState(),o)}const xl=[function(t){const n=(0,e.useRef)(ul),r=(0,e.useRef)(Kr),o=Tr((()=>({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 i={x:e.clientX,y:e.clientY};r.current(),c(o,i)}})),[t]),i=Tr((()=>({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]),a=jr((function(){r.current=Jr(window,[i,o],{passive:!1,capture:!0})}),[i,o]),l=jr((()=>{"IDLE"!==n.current.type&&(n.current=ul,r.current(),a())}),[a]),s=jr((()=>{const e=n.current;l(),"DRAGGING"===e.type&&e.actions.cancel({shouldBlockNextClick:!0}),"PENDING"===e.type&&e.actions.abort()}),[l]),u=jr((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:i}=e;if(0!==t)return;const a={x:n,y:i},l=r();if("DRAGGING"===l.type)return e.preventDefault(),void l.actions.move(a);if("PENDING"!==l.type&&to(!1),s=l.point,u=a,!(Math.abs(u.x-s.x)>=5||Math.abs(u.y-s.y)>=5))return;var s,u;e.preventDefault();const c=l.actions.fluidLift(a);o({type:"DRAGGING",actions:c})}},{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 ll(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&&to(!1),n.actions.shouldRespectForcePress()?t():e.preventDefault()}},{eventName:sl,fn:t}]}({cancel:s,completed:l,getPhase:()=>n.current,setPhase:e=>{n.current=e}});r.current=Jr(window,e,{capture:!0,passive:!1})}),[s,l]),c=jr((function(e,t){"IDLE"!==n.current.type&&to(!1),n.current={type:"PENDING",point:t,actions:e},u()}),[u]);Ga((function(){return a(),function(){r.current()}}),[a])},function(t){const n=(0,e.useRef)(cl),r=Tr((()=>({eventName:"keydown",fn:function(e){if(e.defaultPrevented)return;if(32!==e.keyCode)return;const r=t.findClosestDraggableId(e);if(!r)return;const i=t.tryGetLock(r,s,{sourceEvent:e});if(!i)return;e.preventDefault();let a=!0;const l=i.snapLift();function s(){a||to(!1),a=!1,n.current(),o()}n.current(),n.current=Jr(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(dl[r.keyCode]?r.preventDefault():ll(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:sl,fn:n}]}(l,s),{capture:!0,passive:!1})}})),[t]),o=jr((function(){n.current=Jr(window,[r],{passive:!1,capture:!0})}),[r]);Ga((function(){return o(),function(){n.current()}}),[o])},function(t){const n=(0,e.useRef)(fl),r=(0,e.useRef)(Kr),o=jr((function(){return n.current}),[]),i=jr((function(e){n.current=e}),[]),a=Tr((()=>({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 i=e.touches[0],{clientX:a,clientY:l}=i,u={x:a,y:l};r.current(),f(o,u)}})),[t]),l=jr((function(){r.current=Jr(window,[a],{capture:!0,passive:!1})}),[a]),s=jr((()=>{const e=n.current;"IDLE"!==e.type&&("PENDING"===e.type&&clearTimeout(e.longPressTimerId),i(fl),r.current(),l())}),[l,i]),u=jr((()=>{const e=n.current;s(),"DRAGGING"===e.type&&e.actions.cancel({shouldBlockNextClick:!0}),"PENDING"===e.type&&e.actions.abort()}),[s]),c=jr((function(){const e={capture:!0,passive:!1},t={cancel:u,completed:s,getPhase:o},n=Jr(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:i}=e.touches[0],a={x:o,y:i};e.preventDefault(),n.actions.move(a)}},{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&&to(!1);const o=e.touches[0];if(!o)return;if(!(o.force>=.15))return;const i=n.actions.shouldRespectForcePress();if("PENDING"!==n.type)return i?n.hasMoved?void e.preventDefault():void t():void e.preventDefault();i&&t()}},{eventName:sl,fn:t}]}(t),e),i=Jr(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:sl,fn:t}]}(t),e);r.current=function(){n(),i()}}),[u,o,s]),d=jr((function(){const e=o();"PENDING"!==e.type&&to(!1);const t=e.actions.fluidLift(e.point);i({type:"DRAGGING",actions:t,hasMoved:!1})}),[o,i]),f=jr((function(e,t){"IDLE"!==o().type&&to(!1);const n=setTimeout(d,120);i({type:"PENDING",point:t,actions:e,longPressTimerId:n}),c()}),[c,o,i,d]);Ga((function(){return l(),function(){r.current();const e=o();"PENDING"===e.type&&(clearTimeout(e.longPressTimerId),i(fl))}}),[o,l,i]),Ga((function(){return Jr(window,[{eventName:"touchmove",fn:()=>{},options:{capture:!1,passive:!1}}])}),[])}];function kl(t){let{contextId:n,store:r,registry:o,customSensors:i,enableDefaultSensors:a}=t;const l=[...a?xl:[],...i||[]],s=(0,e.useState)((()=>function(){let e=null;function t(){e||to(!1),e=null}return{isClaimed:function(){return Boolean(e)},isActive:function(t){return t===e},claim:function(t){e&&to(!1);const n={abandon:t};return e=n,n},release:t,tryAbandon:function(){e&&(e.abandon(),t())}}}()))[0],u=jr((function(e,t){il(e)&&!il(t)&&s.tryAbandon()}),[s]);Ga((function(){let e=r.getState();return r.subscribe((()=>{const t=r.getState();u(e,t),e=t}))}),[s,r,u]),Ga((()=>s.tryAbandon),[s.tryAbandon]);const c=jr((e=>Sl({lockAPI:s,registry:o,store:r,draggableId:e})),[s,o,r]),d=jr(((e,t,i)=>function(e){let{lockAPI:t,contextId:n,store:r,registry:o,draggableId:i,forceSensorStop:a,sourceEvent:l}=e;if(!Sl({lockAPI:t,store:r,registry:o,draggableId:i}))return null;const s=o.draggable.getById(i),u=function(e,t){const n=`[${Fa.contextId}="${e}"]`,r=qa(document,n).find((e=>e.getAttribute(Fa.id)===t));return r&&Ya(r)?r:null}(n,s.descriptor.id);if(!u)return null;if(l&&!s.options.canDragInteractiveElements&&hl(u,l))return null;const c=t.claim(a||Kr);let d="PRE_DRAG";function f(){return s.options.shouldRespectForcePress}function p(){return t.isActive(c)}const m=function(e,t){El({expected:e,phase:d,isLockActive:p,shouldWarn:!0})&&r.dispatch(t())}.bind(null,"DRAGGING");function h(e){function n(){t.release(),d="COMPLETED"}function o(t,o){if(void 0===o&&(o={shouldBlockNextClick:!1}),e.cleanup(),o.shouldBlockNextClick){const e=Jr(window,[{eventName:"click",fn:wl,options:{once:!0,passive:!1,capture:!0}}]);setTimeout(e)}n(),r.dispatch($i({reason:t}))}return"PRE_DRAG"!==d&&(n(),to(!1)),r.dispatch(_i(e.liftActionArgs)),d="DRAGGING",{isActive:()=>El({expected:"DRAGGING",phase:d,isLockActive:p,shouldWarn:!1}),shouldRespectForcePress:f,drop:e=>o("DROP",e),cancel:e=>o("CANCEL",e),...e.actions}}const g={isActive:()=>El({expected:"PRE_DRAG",phase:d,isLockActive:p,shouldWarn:!1}),shouldRespectForcePress:f,fluidLift:function(e){const t=Qr((e=>{m((()=>Mi({client:e})))}));return{...h({liftActionArgs:{id:i,clientSelection:e,movementMode:"FLUID"},cleanup:()=>t.cancel(),actions:{move:t}}),move:t}},snapLift:function(){const e={moveUp:()=>m(Li),moveRight:()=>m(Fi),moveDown:()=>m(Bi),moveLeft:()=>m(zi)};return h({liftActionArgs:{id:i,clientSelection:gl(u),movementMode:"SNAP"},cleanup:Kr,actions:e})},abort:function(){El({expected:"PRE_DRAG",phase:d,isLockActive:p,shouldWarn:!0})&&t.release()}};return g}({lockAPI:s,registry:o,contextId:n,store:r,draggableId:e,forceSensorStop:t||null,sourceEvent:i&&i.sourceEvent?i.sourceEvent:null})),[n,s,o,r]),f=jr((e=>function(e,t){const n=function(e,t){const n=t.target;if(!((r=n)instanceof Qa(r).Element))return null;var r;const o=function(e){return`[${Ba.contextId}="${e}"]`}(e),i=vl(n,o);return i&&Ya(i)?i:null}(e,t);return n?n.getAttribute(Ba.draggableId):null}(n,e)),[n]),p=jr((e=>{const t=o.draggable.findById(e);return t?t.options:null}),[o.draggable]),m=jr((function(){s.isClaimed()&&(s.tryAbandon(),"IDLE"!==r.getState().phase&&r.dispatch(Ui()))}),[s,r]),h=jr((()=>s.isClaimed()),[s]),g=Tr((()=>({canGetLock:c,tryGetLock:d,findClosestDraggableId:f,findOptionsForDraggable:p,tryReleaseLock:m,isLockClaimed:h})),[c,d,f,p,m,h]);for(let e=0;e<l.length;e++)l[e](g)}const Ol=t=>({onBeforeCapture:n=>{const r=()=>{t.onBeforeCapture&&t.onBeforeCapture(n)};e.version.startsWith("16")||e.version.startsWith("17")?r():(0,y.flushSync)(r)},onBeforeDragStart:t.onBeforeDragStart,onDragStart:t.onDragStart,onDragEnd:t.onDragEnd,onDragUpdate:t.onDragUpdate}),Cl=e=>({...xa,...e.autoScrollerOptions,durationDampening:{...xa.durationDampening,...e.autoScrollerOptions}});function Pl(e){return e.current||to(!1),e.current}function Il(t){const{contextId:n,setCallbacks:r,sensors:o,nonce:i,dragHandleUsageInstructions:a}=t,l=(0,e.useRef)(null),s=ol(t),u=jr((()=>Ol(s.current)),[s]),c=jr((()=>Cl(s.current)),[s]),d=function(t){const n=Tr((()=>el(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"),sr(e.style,Za),Xa().appendChild(e),function(){setTimeout((function(){const t=Xa();t.contains(e)&&t.removeChild(e),e===r.current&&(r.current=null)}))}}),[n]),jr((e=>{const t=r.current;t&&(t.textContent=e)}),[])}(n),f=function(t){let{contextId:n,text:r}=t;const o=nl("hidden-text",{separator:"-"}),i=Tr((()=>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=i,e.textContent=r,e.style.display="none",Xa().appendChild(e),function(){const t=Xa();t.contains(e)&&t.removeChild(e)}}),[i,r]),i}({contextId:n,text:a}),p=function(t,n){const r=Tr((()=>$a(t)),[t]),o=(0,e.useRef)(null),i=(0,e.useRef)(null),a=jr(qr((e=>{const t=i.current;t||to(!1),t.textContent=e})),[]),l=jr((e=>{const t=o.current;t||to(!1),t.textContent=e}),[]);Ga((()=>{(o.current||i.current)&&to(!1);const e=Va(n),s=Va(n);return o.current=e,i.current=s,e.setAttribute(`${La}-always`,t),s.setAttribute(`${La}-dynamic`,t),Ha().appendChild(e),Ha().appendChild(s),l(r.always),a(r.resting),()=>{const e=e=>{const t=e.current;t||to(!1),Ha().removeChild(t),e.current=null};e(o),e(i)}}),[n,l,a,r.always,r.resting,t]);const s=jr((()=>a(r.dragging)),[a,r.dragging]),u=jr((e=>{a("DROP"!==e?r.userCancel:r.dropAnimating)}),[a,r.dropAnimating,r.userCancel]),c=jr((()=>{i.current&&a(r.resting)}),[a,r.resting]);return Tr((()=>({dragging:s,dropping:u,resting:c})),[s,u,c])}(n,i),m=jr((e=>{Pl(l).dispatch(e)}),[]),h=Tr((()=>Jn({publishWhileDragging:Ri,updateDroppableScroll:Ti,updateDroppableIsEnabled:ji,updateDroppableIsCombineEnabled:Ai,collectionStarting:Ni},m)),[m]),g=function(){const t=Tr(Ka,[]);return(0,e.useEffect)((()=>function(){e.version.startsWith("16")||e.version.startsWith("17")?requestAnimationFrame(t.clean):t.clean()}),[t]),t}(),y=Tr((()=>va(g,h)),[g,h]),b=Tr((()=>Ma({scrollWindow:Ea,scrollDroppable:y.scrollDroppable,getAutoScrollerOptions:c,...Jn({move:Mi},m)})),[y.scrollDroppable,m,c]),v=function(t){const n=(0,e.useRef)({}),r=(0,e.useRef)(null),o=(0,e.useRef)(null),i=(0,e.useRef)(!1),a=jr((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=jr((function(e){const n=function(e,t){const n=`[${Ba.contextId}="${e}"]`,r=qa(document,n);if(!r.length)return null;const o=r.find((e=>e.getAttribute(Ba.draggableId)===t));return o&&Ya(o)?o:null}(t,e);n&&n!==document.activeElement&&n.focus()}),[t]),s=jr((function(e,t){r.current===e&&(r.current=t)}),[]),u=jr((function(){o.current||i.current&&(o.current=requestAnimationFrame((()=>{o.current=null;const e=r.current;e&&l(e)})))}),[l]),c=jr((function(e){r.current=null;const t=document.activeElement;t&&t.getAttribute(Ba.draggableId)===e&&(r.current=e)}),[]);return Ga((()=>(i.current=!0,function(){i.current=!1;const e=o.current;e&&cancelAnimationFrame(e)})),[]),Tr((()=>({register:a,tryRecordFocus:c,tryRestoreFocusRecorded:u,tryShiftRecord:s})),[a,c,u,s])}(n),w=Tr((()=>ma({announce:d,autoScroller:b,dimensionMarshal:y,focusMarshal:v,getResponders:u,styleMarshal:p})),[d,b,y,v,u,p]);l.current=w;const E=jr((()=>{const e=Pl(l);"IDLE"!==e.getState().phase&&e.dispatch(Ui())}),[]),S=jr((()=>{const e=Pl(l).getState();return"DROP_ANIMATING"===e.phase||"IDLE"!==e.phase&&e.isDragging}),[]);r(Tr((()=>({isDragging:S,tryAbort:E})),[S,E]));const x=jr((e=>wa(Pl(l).getState(),e)),[]),k=jr((()=>mi(Pl(l).getState())),[]),O=Tr((()=>({marshal:y,focus:v,contextId:n,canLift:x,isMovementAllowed:k,dragHandleUsageInstructionsId:f,registry:g})),[n,y,f,v,x,k,g]);return kl({contextId:n,store:w,registry:g,customSensors:o||null,enableDefaultSensors:!1!==t.enableDefaultSensors}),(0,e.useEffect)((()=>E),[E]),e.createElement(rl.Provider,{value:O},e.createElement(_r,{context:Ja,store:w},t.children))}function Dl(t){const n=e.useId(),r=t.dragHandleUsageInstructions||so.dragHandleUsageInstructions;return e.createElement(no,null,(o=>e.createElement(Il,{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 _l=5e3,Rl=4500,Nl=(e,t)=>t?Ki.drop(t.duration):e?Ki.snap:Ki.fluid,Tl=(e,t)=>{if(e)return t?Hi:Vi};var jl=e.createContext(null);function Al(t){const n=(0,e.useContext)(t);return n||to(!1),n}function Ml(e){e.preventDefault()}var Ll=(e,t)=>e===t,Bl=e=>{const{combine:t,destination:n}=e;return n?n.droppableId:t?t.droppableId:null};function Fl(e){return void 0===e&&(e=null),{isDragging:!1,isDropAnimating:!1,isClone:!1,dropAnimation:null,mode:null,draggingOver:null,combineTargetFor:e,combineWith:null}}const zl={mapped:{type:"SECONDARY",offset:uo,combineTargetFor:null,shouldAnimateDisplacement:!0,snapshot:Fl(null)}},Ul=Dr((()=>{const e=function(){const e=qr(((e,t)=>({x:e,y:t}))),t=qr((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=qr((function(e,n,r,o,i,a,l){return void 0===i&&(i=null),void 0===a&&(a=null),void 0===l&&(l=null),{mapped:{type:"DRAGGING",dropping:null,draggingOver:i,combineWith:a,mode:n,offset:e,dimension:r,forceShouldAnimate:l,snapshot:t(n,o,i,a,null)}}}));return(r,o)=>{if(il(r)){if(r.critical.draggable.id!==o.draggableId)return null;const t=r.current.client.offset,a=r.dimensions.draggables[o.draggableId],l=fi(r.impact),s=(i=r.impact).at&&"COMBINE"===i.at.type?i.at.combine.draggableId:null,u=r.forceShouldAnimate;return n(e(t.x,t.y),r.movementMode,a,o.isClone,l,s,u)}var i;if("DROP_ANIMATING"===r.phase){const e=r.completed;if(e.result.draggableId!==o.draggableId)return null;const n=o.isClone,i=r.dimensions.draggables[o.draggableId],a=e.result,l=a.mode,s=Bl(a),u=(e=>e.combine?e.combine.draggableId:null)(a),c={duration:r.dropDuration,curve:Gi,moveTo:r.newHomeClientOffset,opacity:u?Hi:null,scale:u?qi:null};return{mapped:{type:"DRAGGING",offset:r.newHomeClientOffset,dimension:i,dropping:c,draggingOver:s,combineWith:u,mode:l,forceShouldAnimate:null,snapshot:t(l,n,s,u,c)}}}return null}}(),t=function(){const e=qr(((e,t)=>({x:e,y:t}))),t=qr(Fl),n=qr((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(uo,e,!0):null,o=(t,o,i,a)=>{const l=i.displaced.visible[t],s=Boolean(a.inVirtualList&&a.effected[t]),u=_o(i),c=u&&u.draggableId===t?o:null;if(!l){if(!s)return r(c);if(i.displaced.invisible[t])return null;const o=mo(a.displacedBy.point),l=e(o.x,o.y);return n(l,c,!0)}if(s)return r(c);const d=i.displacedBy.point,f=e(d.x,d.y);return n(f,c,l.shouldAnimate)};return(e,t)=>{if(il(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)||zl}),{dropAnimationFinished:()=>({type:"DROP_ANIMATION_FINISHED",payload:null})},null,{context:Ja,areStatePropsEqual:Ll})((t=>{const n=(0,e.useRef)(null),r=jr((function(e){void 0===e&&(e=null),n.current=e}),[]),o=jr((()=>n.current),[]),{contextId:i,dragHandleUsageInstructionsId:a,registry:l}=Al(rl),{type:s,droppableId:u}=Al(jl),c=Tr((()=>({id:t.draggableId,index:t.index,type:s,droppableId:u})),[t.draggableId,t.index,s,u]),{children:d,draggableId:f,isEnabled:p,shouldRespectForcePress:m,canDragInteractiveElements:h,isClone:g,mapped:b,dropAnimationFinished:v}=t;g||function(t){const n=nl("draggable"),{descriptor:r,registry:o,getDraggableRef:i,canDragInteractiveElements:a,shouldRespectForcePress:l,isEnabled:s}=t,u=Tr((()=>({canDragInteractiveElements:a,shouldRespectForcePress:l,isEnabled:s})),[a,s,l]),c=jr((e=>{const t=i();return t||to(!1),function(e,t,n){void 0===n&&(n=uo);const r=window.getComputedStyle(t),o=t.getBoundingClientRect(),i=$r(o,r),a=Wr(i,n);return{descriptor:e,placeholder:{client:i,tagName:t.tagName.toLowerCase(),display:r.display},displaceBy:{x:i.marginBox.width,y:i.marginBox.height},client:i,page:a}}(r,t,e)}),[r,i]),d=Tr((()=>({uniqueId:n,descriptor:r,options:u,getDimension:c})),[r,c,u,n]),f=(0,e.useRef)(d),p=(0,e.useRef)(!0);Ga((()=>(o.draggable.register(f.current),()=>o.draggable.unregister(f.current))),[o.draggable]),Ga((()=>{if(p.current)return void(p.current=!1);const e=f.current;f.current=d,o.draggable.update(d,e)}),[d,o.draggable])}(Tr((()=>({descriptor:c,registry:l,getDraggableRef:o,canDragInteractiveElements:h,shouldRespectForcePress:m,isEnabled:p})),[c,l,o,h,m,p]));const w=Tr((()=>p?{tabIndex:0,role:"button","aria-describedby":a,"data-rfd-drag-handle-draggable-id":f,"data-rfd-drag-handle-context-id":i,draggable:!1,onDragStart:Ml}:null),[i,a,f,p]),E=jr((t=>{"DRAGGING"===b.type&&b.dropping&&"transform"===t.propertyName&&(e.version.startsWith("16")||e.version.startsWith("17")?v():(0,y.flushSync)(v))}),[v,b]),S=Tr((()=>{const e=function(e){return"DRAGGING"===e.type?function(e){const t=e.dimension.client,{offset:n,combineWith:r,dropping:o}=e,i=Boolean(r),a=(e=>null!=e.forceShouldAnimate?e.forceShouldAnimate:"SNAP"===e.mode)(e),l=Boolean(o),s=l?Zi(n,i):Xi(n);return{position:"fixed",top:t.marginBox.top,left:t.marginBox.left,boxSizing:"border-box",width:t.borderBox.width,height:t.borderBox.height,transition:Nl(a,o),transform:s,opacity:Tl(i,l),zIndex:l?Rl:_l,pointerEvents:"none"}}(e):{transform:Xi((t=e).offset),transition:t.shouldAnimateDisplacement?void 0:"none"};var t}(b),t="DRAGGING"===b.type&&b.dropping?E:void 0;return{innerRef:r,draggableProps:{"data-rfd-draggable-context-id":i,"data-rfd-draggable-id":f,style:e,onTransitionEnd:t},dragHandleProps:w}}),[i,w,f,b,E,r]),x=Tr((()=>({draggableId:c.id,type:c.type,source:{index:c.index,droppableId:c.droppableId}})),[c.droppableId,c.id,c.index,c.type]);return e.createElement(e.Fragment,null,d(S,b.snapshot,x))}));var Wl=Ul;function $l(t){return Al(jl).isUsingCloneFor!==t.draggableId||t.isClone?e.createElement(Wl,t):null}function Gl(t){const n="boolean"!=typeof t.isDragDisabled||!t.isDragDisabled,r=Boolean(t.disableInteractiveElementBlocking),o=Boolean(t.shouldRespectForcePress);return e.createElement($l,sr({},t,{isClone:!1,isEnabled:n,canDragInteractiveElements:r,shouldRespectForcePress:o}))}const Hl=e=>t=>e===t,Vl=Hl("scroll"),ql=Hl("auto"),Ql=(Hl("visible"),(e,t)=>t(e.overflowX)||t(e.overflowY)),Yl=e=>null==e||e===document.body||e===document.documentElement?null:(e=>{const t=window.getComputedStyle(e),n={overflowX:t.overflowX,overflowY:t.overflowY};return Ql(n,Vl)||Ql(n,ql)})(e)?e:Yl(e.parentElement);var Kl=Yl,Jl=e=>({x:e.scrollLeft,y:e.scrollTop});const Xl=e=>!!e&&("fixed"===window.getComputedStyle(e).position||Xl(e.parentElement));const Zl={passive:!1},es={passive:!0};var ts=e=>e.shouldPublishImmediately?Zl:es;const ns=e=>e&&e.env.closestScrollable||null;function rs(t){const n=(0,e.useRef)(null),r=Al(rl),o=nl("droppable"),{registry:i,marshal:a}=r,l=ol(t),s=Tr((()=>({id:t.droppableId,type:t.type,mode:t.mode})),[t.droppableId,t.mode,t.type]),u=(0,e.useRef)(s),c=Tr((()=>qr(((e,t)=>{n.current||to(!1);const r={x:e,y:t};a.updateDroppableScroll(s.id,r)}))),[s.id,a]),d=jr((()=>{const e=n.current;return e&&e.env.closestScrollable?Jl(e.env.closestScrollable):uo}),[]),f=jr((()=>{const e=d();c(e.x,e.y)}),[d,c]),p=Tr((()=>Qr(f)),[f]),m=jr((()=>{const e=n.current,t=ns(e);e&&t||to(!1),e.scrollOptions.shouldPublishImmediately?f():p()}),[p,f]),h=jr(((e,t)=>{n.current&&to(!1);const o=l.current,i=o.getDroppableRef();i||to(!1);const a=(e=>({closestScrollable:Kl(e),isFixedOnPage:Xl(e)}))(i),u={ref:i,descriptor:s,env:a,scrollOptions:t};n.current=u;const c=(e=>{let{ref:t,descriptor:n,env:r,windowScroll:o,direction:i,isDropDisabled:a,isCombineEnabled:l,shouldClipSubject:s}=e;const u=r.closestScrollable,c=((e,t)=>{const n=Gr(e);if(!t)return n;if(e!==t)return n;const r=n.paddingBox.top-t.scrollTop,o=n.paddingBox.left-t.scrollLeft,i=r+t.scrollHeight,a=o+t.scrollWidth,l=Mr({top:r,right:a,bottom:i,left:o},n.border);return Fr({borderBox:l,margin:n.margin,border:n.border,padding:n.padding})})(t,u),d=Wr(c,o),f=(()=>{if(!u)return null;const e=Gr(u),t={scrollHeight:u.scrollHeight,scrollWidth:u.scrollWidth};return{client:e,page:Wr(e,o),scroll:Jl(u),scrollSize:t,shouldClipSubject:s}})(),p=(e=>{let{descriptor:t,isEnabled:n,isCombineEnabled:r,isFixedOnPage:o,direction:i,client:a,page:l,closest:s}=e;const u=(()=>{if(!s)return null;const{scrollSize:e,client:t}=s,n=ha({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:uo,displacement:uo}}}})(),c="vertical"===i?Fo:zo;return{descriptor:t,isCombineEnabled:r,isFixedOnPage:o,axis:c,isEnabled:n,client:a,page:l,frame:u,subject:So({page:l,withPlaceholder:null,axis:c,frame:u})}})({descriptor:n,isEnabled:!a,isCombineEnabled:l,isFixedOnPage:r.isFixedOnPage,direction:i,client:c,page:d,closest:f});return p})({ref:i,descriptor:s,env:a,windowScroll:e,direction:o.direction,isDropDisabled:o.isDropDisabled,isCombineEnabled:o.isCombineEnabled,shouldClipSubject:!o.ignoreContainerClipping}),d=a.closestScrollable;return d&&(d.setAttribute(Ua.contextId,r.contextId),d.addEventListener("scroll",m,ts(u.scrollOptions))),c}),[r.contextId,s,m,l]),g=jr((()=>{const e=n.current,t=ns(e);return e&&t||to(!1),Jl(t)}),[]),y=jr((()=>{const e=n.current;e||to(!1);const t=ns(e);n.current=null,t&&(p.cancel(),t.removeAttribute(Ua.contextId),t.removeEventListener("scroll",m,ts(e.scrollOptions)))}),[m,p]),b=jr((e=>{const t=n.current;t||to(!1);const r=ns(t);r||to(!1),r.scrollTop+=e.y,r.scrollLeft+=e.x}),[]),v=Tr((()=>({getDimensionAndWatchScroll:h,getScrollWhileDragging:g,dragStopped:y,scroll:b})),[y,h,g,b]),w=Tr((()=>({uniqueId:o,descriptor:s,callbacks:v})),[v,s,o]);Ga((()=>(u.current=w.descriptor,i.droppable.register(w),()=>{n.current&&y(),i.droppable.unregister(w)})),[v,s,y,w,a,i.droppable]),Ga((()=>{n.current&&a.updateDroppableIsEnabled(u.current.id,!t.isDropDisabled)}),[t.isDropDisabled,a]),Ga((()=>{n.current&&a.updateDroppableIsCombineEnabled(u.current.id,t.isCombineEnabled)}),[t.isCombineEnabled,a])}function os(){}const is={width:0,height:0,margin:{top:0,right:0,bottom:0,left:0}};var as=e.memo((t=>{const n=(0,e.useRef)(null),r=jr((()=>{n.current&&(clearTimeout(n.current),n.current=null)}),[]),{animate:o,onTransitionEnd:i,onClose:a,contextId:l}=t,[s,u]=(0,e.useState)("open"===t.animate);(0,e.useEffect)((()=>s?"open"!==o?(r(),u(!1),os):n.current?os:(n.current=setTimeout((()=>{n.current=null,u(!1)})),r):os),[o,s,r]);const c=jr((e=>{"height"===e.propertyName&&(i(),"close"===o&&a())}),[o,a,i]),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?is:{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?Ki.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:c,ref:t.innerRef})}));class ls 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 ss={mode:"standard",type:"DEFAULT",direction:"vertical",isDropDisabled:!1,isCombineEnabled:!1,ignoreContainerClipping:!1,renderClone:null,getContainerForClone:function(){return document.body||to(!1),document.body}},us=e=>{let t,n={...e};for(t in ss)void 0===e[t]&&(n={...n,[t]:ss[t]});return n},cs=(e,t)=>e===t.droppable.type,ds=(e,t)=>t.draggables[e.draggable.id];var fs=Dr((()=>{const e={placeholder:null,shouldAnimatePlaceholder:!0,snapshot:{isDraggingOver:!1,draggingOverWith:null,draggingFromThisWith:null,isUsingPlaceholder:!1},useClone:null},t={...e,shouldAnimatePlaceholder:!1},n=qr((e=>({draggableId:e.id,type:e.type,source:{index:e.index,droppableId:e.droppableId}}))),r=qr(((r,o,i,a,l,s)=>{const u=l.descriptor.id;if(l.descriptor.droppableId===r){const e=s?{render:s,dragging:n(l.descriptor)}:null,t={isDraggingOver:i,draggingOverWith:i?u:null,draggingFromThisWith:u,isUsingPlaceholder:!0};return{placeholder:l.placeholder,shouldAnimatePlaceholder:!1,snapshot:t,useClone:e}}if(!o)return t;if(!a)return e;const c={isDraggingOver:i,draggingOverWith:u,draggingFromThisWith:null,isUsingPlaceholder:!0};return{placeholder:l.placeholder,shouldAnimatePlaceholder:!0,snapshot:c,useClone:null}}));return(n,o)=>{const i=us(o),a=i.droppableId,l=i.type,s=!i.isDropDisabled,u=i.renderClone;if(il(n)){const e=n.critical;if(!cs(l,e))return t;const o=ds(e,n.dimensions),i=fi(n.impact)===a;return r(a,s,i,i,o,u)}if("DROP_ANIMATING"===n.phase){const e=n.completed;if(!cs(l,e.critical))return t;const o=ds(e.critical,n.dimensions);return r(a,s,Bl(e.result)===a,fi(e.impact)===a,o,u)}if("IDLE"===n.phase&&n.completed&&!n.shouldFlush){const r=n.completed;if(!cs(l,r.critical))return t;const o=fi(r.impact)===a,i=Boolean(r.impact.at&&"COMBINE"===r.impact.at.type),s=r.critical.droppable.id===a;return o?i?e:t:s?e:t}return t}}),{updateViewportMaxScroll:e=>({type:"UPDATE_VIEWPORT_MAX_SCROLL",payload:e})},((e,t,n)=>({...us(n),...e,...t})),{context:Ja,areStatePropsEqual:Ll})((t=>{const n=(0,e.useContext)(rl);n||to(!1);const{contextId:r,isMovementAllowed:o}=n,i=(0,e.useRef)(null),a=(0,e.useRef)(null),{children:l,droppableId:s,type:u,mode:c,direction:d,ignoreContainerClipping:f,isDropDisabled:p,isCombineEnabled:m,snapshot:h,useClone:g,updateViewportMaxScroll:b,getContainerForClone:v}=t,w=jr((()=>i.current),[]),E=jr((function(e){void 0===e&&(e=null),i.current=e}),[]),S=(jr((()=>a.current),[]),jr((function(e){void 0===e&&(e=null),a.current=e}),[])),x=jr((()=>{o()&&b({maxScroll:ya()})}),[o,b]);rs({droppableId:s,type:u,mode:c,direction:d,isDropDisabled:p,isCombineEnabled:m,ignoreContainerClipping:f,getDroppableRef:w});const k=Tr((()=>e.createElement(ls,{on:t.placeholder,shouldAnimate:t.shouldAnimatePlaceholder},(t=>{let{onClose:n,data:o,animate:i}=t;return e.createElement(as,{placeholder:o,onClose:n,innerRef:S,animate:i,contextId:r,onTransitionEnd:x})}))),[r,x,t.placeholder,t.shouldAnimatePlaceholder,S]),O=Tr((()=>({innerRef:E,placeholder:k,droppableProps:{"data-rfd-droppable-id":s,"data-rfd-droppable-context-id":r}})),[r,s,k,E]),C=g?g.dragging.draggableId:null,P=Tr((()=>({droppableId:s,type:u,isUsingCloneFor:C})),[s,C,u]);return e.createElement(jl.Provider,{value:P},l(O,h),function(){if(!g)return null;const{dragging:t,render:n}=g,r=e.createElement($l,{draggableId:t.draggableId,index:t.source.index,isClone:!0,isEnabled:!0,shouldRespectForcePress:!1,canDragInteractiveElements:!0},((e,r)=>n(e,r,t)));return y.createPortal(r,v())}())}));function ps(e){return ps="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ps(e)}function ms(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 hs(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ms(Object(n),!0).forEach((function(t){var r,o,i;r=e,o=t,i=n[t],(o=function(e){var t=function(e,t){if("object"!==ps(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!==ps(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===ps(t)?t:String(t)}(o))in r?Object.defineProperty(r,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):r[o]=i})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ms(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function gs(e,t){if(e){if("string"==typeof e)return ys(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)?ys(e,t):void 0}}function ys(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 bs=window.shop_data,vs=Array.from(bs.columns.backlog.categories.map((function(e){return e.itemIds})).flat()),ws=function(e,t,n,r,o){var i,a=Array.from(n.items);return a.splice.apply(a,[o.index,0].concat(function(e){if(Array.isArray(e))return ys(e)}(i=r.map((function(t,n){return hs(hs({},e[t]),{},{id:zn()})})))||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(i)||gs(i)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())),a},Es=function(e,t,n){var r,o,i=Array.from(e),a=(r=i.splice(t,1),o=1,function(e){if(Array.isArray(e))return e}(r)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],s=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){u=!0,o=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return l}}(r,o)||gs(r,o)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())[0];return i.splice(n,0,a),i},Ss=function(e,t){var n=Array.from(e);return n.splice(t,1),n},xs=function(e,t,n,r,o){var i=arguments.length>5&&void 0!==arguments[5]&&arguments[5],a={opacity:t.isDragging?.7:1,backgroundColor:r||o?"#eae7f7":"initial"};return!i&&null==t.draggingOver&&(!t.isDragging||t.isDragging&&t.isDropAnimating)&&(e.transform="none"),t.isDropAnimating?(n&&(a.transitionDuration="0.001s"),hs(hs({},e),a)):hs(hs({},e),a)},ks=function(e,t){var n=t.isDraggingOver;return hs(hs({},e),{backgroundColor:n?"#f2f2f2":"#f9f9f9",border:n?"1px dashed #ccc":"0"})},Os=function(e){if(!e||!e.nbrCurrentSlot)return{};var t=100*e.nbrCurrentSlot/e.nbrSlotMax;return t>100&&(t=100),{width:"".concat(t,"%")}},Cs=function(e){if(!e||!e.nbrCurrentClock)return{};var t=100*e.nbrCurrentClock/e.nbrClockMax;return t>100&&(t=100),{width:"".concat(t,"%")}},Ps=function(e){return e.reduce((function(e,t){return e+(8===t.hp?2:1)}),0)};function Is(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:".",r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:",";try{t=Math.abs(t),t=isNaN(t)?2:t;var o=e<0?"-":"",i=parseInt(e=Math.abs(Number(e)||0).toFixed(t)).toString(),a=i.length>3?i.length%3:0;return o+(a?i.substr(0,a)+r:"")+i.substr(a).replace(/(\d{3})(?=\d)/g,"$1"+r)+(t?n+Math.abs(e-i).toFixed(t).slice(2):"")}catch(t){return e}}function Ds(e){return Ds="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},Ds(e)}function _s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Rs(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?_s(Object(n),!0).forEach((function(t){var r,o,i;r=e,o=t,i=n[t],(o=Ts(o))in r?Object.defineProperty(r,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):r[o]=i})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_s(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return 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,Ts(r.key),r)}}function Ts(e){var t=function(e,t){if("object"!==Ds(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!==Ds(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===Ds(t)?t:String(t)}function js(e,t){return js=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},js(e,t)}function As(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 Ls=function(t){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&js(e,t)}(u,t);var n,r,i,a,l,s=(a=u,l=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=Ms(a);if(l){var n=Ms(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"===Ds(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return As(e)}(this,e)});function u(e){var t;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,u),(t=s.call(this,e)).state={customconf:"",error:null},t.handleCustomConfig=t.handleCustomConfig.bind(As(t)),t.handleClickLoad=t.handleClickLoad.bind(As(t)),t.checkValidation=t.checkValidation.bind(As(t));var n=Object.keys(e.items);return t.list_pn=n.map((function(t){return e.items[t].name_number})),t}return n=u,i=[{key:"propTypes",get:function(){return{aside:o().any,main:o().any,mobileSideMenuShouldOpen:o().bool,isMobile:o().bool,newCardJustAdded:o().bool,onClickToggleMobileSideMenu:o().func,onClickCloseRFQFeedback:o().func,RFQBodyType:o().string,RFQBodyOrder:o().string,onClickLoadCustomConf:o().func,items:o().object}}},{key:"defaultProps",get:function(){return{mobileSideMenuShouldOpen:!1}}}],(r=[{key:"handleCustomConfig",value:function(e){var t=e.target.value;this.checkValidation(t)}},{key:"checkValidation",value:function(e){var t;try{t=JSON.parse(e)}catch(t){return this.setState(Rs(Rs({},this.state),{},{customconf:e,customconf_ready:null,error:"invalid format"}))}if(!t)return this.setState(Rs(Rs({},this.state),{},{customconf:e,customconf_ready:null,error:"invalid format"}));if(!(t.items&&t.type||"[object Array]"===Object.prototype.toString.call(t.items)&&"[object String]"===Object.prototype.toString.call(t.type)))return this.setState(Rs(Rs({},this.state),{},{customconf:e,customconf_ready:null,error:"invalid format"}));if("desktop"!==t.type&&"rack"!==t.type)return this.setState(Rs(Rs({},this.state),{},{customconf:e,customconf_ready:null,error:"invalid format"}));if(t.items.map((function(e){try{return JSON.parse(e)}catch(e){return null}})),t.items=t.items.filter((function(e){return e})),t.items.filter((function(e){return"[object Object]"!==Object.prototype.toString.call(e)||!e.pn||"[object String]"!==Object.prototype.toString.call(e.pn)})).length>0)return this.setState(Rs(Rs({},this.state),{},{customconf:e,customconf_ready:null,error:"invalid format"}));t.items=t.items.map((function(e){return{pn:e.pn,options:e.options?e.options:null}}));var n=this,r=t.items.filter((function(e){return!1===n.list_pn.includes(e.pn)})).map((function(e){return e.pn}));if(r.length>0)return this.setState(Rs(Rs({},this.state),{},{customconf:e,customconf_ready:null,error:"".concat(r.join(", ")," unknown").concat(r.length>1?"s":""," pn number")}));this.setState(Rs(Rs({},this.state),{},{customconf:e,error:null,customconf_ready:t}))}},{key:"handleClickLoad",value:function(){this.checkValidation(this.state.customconf),this.props.onClickLoadCustomConf&&this.props.onClickLoadCustomConf(this.state.customconf_ready)}},{key:"render",value:function(){var t=this.props,n=t.aside,r=t.main,o=t.mobileSideMenuShouldOpen,i=t.isMobile,a=t.newCardJustAdded,l=t.onClickToggleMobileSideMenu,s=t.onClickCloseRFQFeedback,u=t.showRFQFeedback,c=t.RFQBodyType,d=t.RFQBodyOrder;return e.createElement("div",{className:"layout"},e.createElement("aside",{className:"aside "+(o?"menu-opened":"")},n),o?e.createElement("section",{className:"main",onClick:l},r):e.createElement("section",{className:"main"},r),i&&a?e.createElement("div",{className:"feedback-add-success"},"✓ added"):null,e.createElement("div",{className:"modal fade ".concat(u?"show":""),style:{display:u?"block":"none"},id:"exampleModal",tabIndex:"-1",role:"dialog","aria-labelledby":"exampleModalLabel","aria-hidden":"true"},e.createElement("div",{className:"modal-dialog",role:"document"},e.createElement("div",{className:"modal-content"},e.createElement("div",{className:"modal-body rfqFeedback"},e.createElement("div",{className:"d-flex w-100"},"email"===c?e.createElement("div",{className:"d-flex"},e.createElement("div",null,e.createElement("img",{width:"30px",src:"/images/shop/icon-done.svg",alt:"close"})),e.createElement("div",{style:{padding:"0 .5em"}},"We've received your request and will be in contact soon.")):null,"show"===c?e.createElement("p",null,d):null,"import"===c?e.createElement("div",{className:"w-100"},e.createElement("form",{className:"w-100"},e.createElement("div",{className:"mb-3"},e.createElement("p",{className:"small"},"Input the JSON description below. Should be something like:",e.createElement("br",null),JSON.stringify({items:[{pn:"1124"},{pn:"2118"},{pn:"2118"},{pn:"2128"}],type:"desktop"}))),e.createElement("div",{className:"mb-3 w-100"},e.createElement("textarea",{onChange:this.handleCustomConfig,value:this.state.customconf,className:"form-control w-100",rows:"5",placeholder:"Input JSON description here."})),this.state.error?e.createElement("div",{className:"mb-3"},e.createElement("p",{className:"text-danger"},this.state.error)):null),e.createElement("div",{className:"d-flex flex-column flex-sm-row justify-content-end"},e.createElement("a",{type:"button",onClick:s,className:"btn btn-sm btn-outline-primary m-0 mb-2 mb-sm-0 me-sm-2"},"Close"),e.createElement("a",{type:"button",onClick:this.handleClickLoad,className:"btn btn-sm btn-primary m-0 ms-sm-2 ".concat(this.state.error?"disabled":"")},"Load configuration"))):null,e.createElement("div",null,e.createElement("button",{onClick:s},e.createElement("img",{src:"/images/shop/icon-close.svg",alt:"close"})))))))),e.createElement("div",{onClick:s,className:"modal-backdrop fade ".concat(u?"show":""),style:{display:u?"initial":"none"}}))}}])&&Ns(n.prototype,r),i&&Ns(n,i),Object.defineProperty(n,"prototype",{writable:!1}),u}(e.PureComponent);function Bs(e){return Bs="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},Bs(e)}function Fs(){return Fs=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},Fs.apply(this,arguments)}function zs(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"!==Bs(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!==Bs(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(r.key),"symbol"===Bs(o)?o:String(o)),r)}var o}function Us(e,t){return Us=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Us(e,t)}function Ws(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function $s(e){return $s=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},$s(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&&Us(e,t)}(u,t);var n,r,i,a,l,s=(a=u,l=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=$s(a);if(l){var n=$s(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"===Bs(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Ws(e)}(this,e)});function u(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,u),(t=s.call(this,e)).handleOnClickAddItem=t.handleOnClickAddItem.bind(Ws(t)),t}return n=u,i=[{key:"propTypes",get:function(){return{id:o().string.isRequired,index:o().number.isRequired,name:o().string.isRequired,name_codename:o().string,price:o().number.isRequired,currency:o().string.isRequired,image:o().string.isRequired,specs:o().array,datasheet_file:o().string,datasheet_name:o().string,onClickAddItem:o().func}}}],(r=[{key:"handleOnClickAddItem",value:function(e,t,n){this.props.onClickAddItem&&this.props.onClickAddItem(e,t),n.preventDefault()}},{key:"render",value:function(){var t=this.props,n=t.id,r=t.index,o=t.name,i=t.name_codename,a=t.price,l=t.currency,s=t.image,u=t.specs,c=t.datasheet_file,d=t.datasheet_name,f=u&&u.length>0&&e.createElement("ul",null,u.map((function(t,n){return e.createElement("li",{key:n},t)}))),p=c&&d&&e.createElement("div",{className:"ds"},e.createElement("span",{className:"doc-icon"}),e.createElement("a",{href:c,target:"_blank",rel:"noopener noreferrer"},d));return e.createElement("section",{className:"productItem"},e.createElement("div",{className:"content"},e.createElement("h3",{style:{marginBottom:i?"5px":"20px"}},o),i?e.createElement("p",null,i):null,e.createElement("div",{className:"price"},"".concat(l," ").concat(Is(a))),f,p),e.createElement("div",{className:"content"},e.createElement("button",{onClick:this.handleOnClickAddItem.bind(this,r,!0)},e.createElement("img",{src:"/images/shop/icon-add.svg",alt:"add"})),e.createElement(Gl,{draggableId:n,index:r},(function(t,n){return e.createElement(e.Fragment,null,e.createElement("img",Fs({ref:t.innerRef},t.draggableProps,t.dragHandleProps,{style:xs(t.draggableProps.style,n,!0),src:s})),n.isDragging&&e.createElement("img",{className:"simclone",src:s}))}))))}}])&&zs(n.prototype,r),i&&zs(n,i),Object.defineProperty(n,"prototype",{writable:!1}),u}(e.PureComponent);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 Vs(){return Vs=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},Vs.apply(this,arguments)}function qs(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 Qs(e,t){return Qs=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Qs(e,t)}function Ys(e){return Ys=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Ys(e)}var Ks=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&&Qs(e,t)}(u,t);var n,r,i,a,l,s=(a=u,l=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=Ys(a);if(l){var n=Ys(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 function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function u(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,u),s.apply(this,arguments)}return n=u,r=[{key:"render",value:function(){var t=this.props,n=t.currency,r=t.data,o=t.items,i=t.onClickAddItem,a=t.onClickToggleMobileSideMenu,l=t.isMobile,s=r.categories.map((function(e){return{name:e.name,items:e.itemIds.map((function(e){return o[e]}))}})),u=-1,c=s.map((function(t,r){return e.createElement("div",{className:"accordion-item",key:"".concat(t.name)},e.createElement("h2",{className:"accordion-header"},e.createElement("button",{className:"accordion-button collapsed",type:"button","data-bs-toggle":"collapse","data-bs-target":"#collapse".concat(r),"aria-expanded":"true","aria-controls":"collapse".concat(r)},t.name)),e.createElement("div",{id:"collapse".concat(r),className:"accordion-collapse collapse","aria-labelledby":"headingOne","data-bs-parent":"#accordion_categories"},e.createElement("div",{className:"accordion-body"},t.items.map((function(t){return u++,e.createElement(Gs,{key:t.id,id:zn(),index:u,name:"".concat(t.name_number," ").concat(t.name),name_codename:t.name_codename,price:t.price,currency:n,image:"/images/".concat(t.image),specs:t.specs,datasheet_file:t.datasheet_file,datasheet_name:t.datasheet_name,onClickAddItem:i})})))))}));return e.createElement(fs,{droppableId:r.id,isDropDisabled:!0},(function(t){return e.createElement("div",Vs({className:"backlog-container",ref:t.innerRef},t.droppableProps),l?e.createElement("div",{className:"mobileCloseMenu"},e.createElement("button",{onClick:a},e.createElement("img",{src:"/images/shop/icon-close-white.svg",alt:"add"}))):null,e.createElement("div",{className:"accordion accordion-flush",id:"accordion_categories"},c),t.placeholder&&e.createElement("div",{style:{display:"none"}},t.placeholder))}))}}],i=[{key:"propTypes",get:function(){return{currency:o().string,data:o().object.isRequired,items:o().object,isMobile:o().bool,onClickAddItem:o().func,onClickToggleMobileSideMenu:o().func}}},{key:"defaultProps",get:function(){return{items:{}}}}],r&&qs(n.prototype,r),i&&qs(n,i),Object.defineProperty(n,"prototype",{writable:!1}),u}(e.PureComponent);function Js(e){return Js="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},Js(e)}function Xs(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"!==Js(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!==Js(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(r.key),"symbol"===Js(o)?o:String(o)),r)}var o}function Zs(e,t){return Zs=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Zs(e,t)}function eu(e){return eu=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},eu(e)}var tu=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&&Zs(e,t)}(u,t);var n,r,i,a,l,s=(a=u,l=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=eu(a);if(l){var n=eu(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"===Js(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function u(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,u),s.apply(this,arguments)}return n=u,i=[{key:"propTypes",get:function(){return{title:o().string,description:o().element,crateMode:o().element,crate:o().element,summaryPrice:o().element,form:o().element,isMobile:o().bool,onClickToggleMobileSideMenu:o().func,onClickOpenImport:o().func}}}],(r=[{key:"render",value:function(){var t=this.props,n=t.title,r=t.description,o=t.crateMode,i=t.crate,a=t.summaryPrice,l=t.form,s=t.isMobile,u=t.onClickToggleMobileSideMenu,c=t.onClickOpenImport;return e.createElement("section",{className:"panel"},e.createElement("h2",null,n),e.createElement("div",{className:"control"},r,o),e.createElement("div",null,e.createElement("button",{className:"btn btn-sm btn-outline-primary m-0 mb-2",style:{cursor:"pointer"},onClick:c},"Import JSON")),s?e.createElement("div",{className:"mobileBtnDisplaySideMenu"},e.createElement("button",{onClick:u},e.createElement("img",{src:"/images/shop/icon-add.svg",alt:"add"}))):null,i,e.createElement("section",{className:"summary"},a,l))}}])&&Xs(n.prototype,r),i&&Xs(n,i),Object.defineProperty(n,"prototype",{writable:!1}),u}(e.PureComponent);function nu(e){return nu="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},nu(e)}function ru(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"!==nu(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!==nu(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(r.key),"symbol"===nu(o)?o:String(o)),r)}var o}function ou(e,t){return ou=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},ou(e,t)}function iu(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function au(e){return au=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},au(e)}var lu=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&&ou(e,t)}(u,t);var n,r,i,a,l,s=(a=u,l=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=au(a);if(l){var n=au(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"===nu(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return iu(e)}(this,e)});function u(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,u),(t=s.call(this,e)).handleOnClickMode=t.handleOnClickMode.bind(iu(t)),t}return n=u,i=[{key:"propTypes",get:function(){return{items:o().array.isRequired,mode:o().string.isRequired,onClickMode:o().func}}}],(r=[{key:"handleOnClickMode",value:function(e,t){this.props.onClickMode&&this.props.onClickMode(e),t.preventDefault()}},{key:"render",value:function(){var t=this,n=this.props,r=n.mode,o=n.items;return e.createElement("div",{className:"crate-mode"},o.map((function(n){return e.createElement("a",{key:n.id,className:r==n.id?"active":"",onClick:t.handleOnClickMode.bind(t,n.id),href:"#",role:"button"},n.name)})))}}])&&ru(n.prototype,r),i&&ru(n,i),Object.defineProperty(n,"prototype",{writable:!1}),u}(e.PureComponent);function su(e){return su="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},su(e)}function uu(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"!==su(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!==su(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(r.key),"symbol"===su(o)?o:String(o)),r)}var o}function cu(e,t){return cu=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},cu(e,t)}function du(e){return du=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},du(e)}var fu=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&&cu(e,t)}(u,t);var n,r,i,a,l,s=(a=u,l=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=du(a);if(l){var n=du(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"===su(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function u(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,u),s.apply(this,arguments)}return n=u,i=[{key:"propTypes",get:function(){return{rules:o().array,cart:o().element}}}],(r=[{key:"render",value:function(){var t=this.props,n=t.rules,r=t.cart;return e.createElement("div",{className:"crate"},e.createElement("div",{className:"crate-products"},r,n&&n.length>0&&e.createElement("div",{className:"crate-info"},n.map((function(t,n){return e.createElement("p",{key:n,className:"rule",style:{color:t.color?t.color:"inherit"}},e.createElement("img",{src:"/images".concat(t.icon)})," ",e.createElement("i",null,e.createElement("strong",null,t.name,":")," ",t.message))})))))}}])&&uu(n.prototype,r),i&&uu(n,i),Object.defineProperty(n,"prototype",{writable:!1}),u}(e.PureComponent);function pu(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 mu(e){var t=e.options,n=e.data,r=e.target,o=e.id,a=Tn(t);return"array"===a?Array.from(t.map((function(e,t){return mu({options:e,data:n,target:r,id:o+t})}))):"object"===a?"string"!==Tn(t.type)||"object"!==Tn(t.args)&&"array"!==Tn(t.items)?mu({options:(0,i.apply)(t,n),data:n,target:r,id:o}):t.type in Nn?Nn[t.type](r,o+t.type,n,t.args):"Group"===t.type?React.createElement("div",{className:"border rounded",key:o+"group"},mu({options:(0,i.apply)(t.items,n),data:n,target:r,id:o})):Nn.Default(t.type,o+"missing"):void 0}function hu(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function gu(t){var n,r,o=t.options,i=t.data,a=t.target,l=t.id,s=t.big,u=t.first,c=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,i,a,l=[],s=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){u=!0,o=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return l}}(n,r)||function(e,t){if(e){if("string"==typeof e)return hu(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?hu(e,t):void 0}}(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],h=pu((function(e){"mousedown"===e.type&&m(!1)})),g="overlayVariant border rounded ".concat(s?"overlay-bigcard":"overlay-smallcard"," ").concat(!s&&u?"overlay-first":""," ").concat(!s&&c?"overlay-last":""," ").concat(d||"");return e.createElement("div",{ref:h},e.createElement("img",{className:"alert-info",src:p?"/images/shop/icon-close.svg":"/images/shop/icon-customize.svg",onClick:function(e){m(!p)}}),e.createElement("div",{style:{display:p?"flex":"none"},className:g},e.createElement(mu,{options:o,data:i,key:"processed_options_"+l,id:"processed_options_"+l,target:a})))}function yu(e){return yu="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},yu(e)}var bu=["arrowProps","hasDoneInitialMeasure","show"],vu=["arrowProps","hasDoneInitialMeasure","show"];function wu(){return wu=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},wu.apply(this,arguments)}function Eu(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function Su(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 xu(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Su(Object(n),!0).forEach((function(t){var r,o,i;r=e,o=t,i=n[t],(o=Ou(o))in r?Object.defineProperty(r,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):r[o]=i})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Su(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ku(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,Ou(r.key),r)}}function Ou(e){var t=function(e,t){if("object"!==yu(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!==yu(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===yu(t)?t:String(t)}function Cu(e,t){return Cu=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Cu(e,t)}function Pu(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Iu(e){return Iu=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Iu(e)}var Du=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&&Cu(e,t)}(u,t);var n,r,i,a,l,s=(a=u,l=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=Iu(a);if(l){var n=Iu(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"===yu(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Pu(e)}(this,e)});function u(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,u),(t=s.call(this,e)).handleOnMouseEnterRemoveItem=t.handleOnMouseEnterRemoveItem.bind(Pu(t)),t.handleOnMouseLeaveRemoveItem=t.handleOnMouseLeaveRemoveItem.bind(Pu(t)),t.handleOnClickRemoveItem=t.handleOnClickRemoveItem.bind(Pu(t)),t.handleOnClickItem=t.handleOnClickItem.bind(Pu(t)),t}return n=u,r=[{key:"handleOnMouseEnterRemoveItem",value:function(e,t){this.props.onToggleOverlayRemove&&!this.props.isMobile&&this.props.onToggleOverlayRemove(e,!0),t.preventDefault()}},{key:"handleOnMouseLeaveRemoveItem",value:function(e,t){this.props.onToggleOverlayRemove&&!this.props.isMobile&&this.props.onToggleOverlayRemove(e,!1),t.preventDefault()}},{key:"handleOnClickItem",value:function(e,t){this.props.onClickItem&&this.props.isTouch&&this.props.onClickItem(e),t.preventDefault()}},{key:"handleOnClickRemoveItem",value:function(e,t){this.props.onClickRemoveItem&&this.props.onClickRemoveItem(e)}},{key:"render",value:function(){var t,n,r,o,i=this,a=this.props,l=a.hovered,s=a.model,u=a.data,c=a.index,d=a.first,f=a.last,p=a.ext_data,m=a.onCardUpdate;if(u&&u.warnings){var h=Object.keys(u.warnings);h&&h.length>0&&(t=u.warnings[h[0]])}if(u&&u.options&&(n=u.options,u.options_data||(u.options_data={}),(r=u.options_data).ext_data=p),u)switch(s.type){case"kasli":o=[e.createElement("p",{key:s.type+s.id+"EEM"},"".concat(u.nbrCurrentSlot,"/").concat(s.nbrSlotMax," EEM connectors used")),e.createElement("p",{key:s.type+s.id+"CLK"},"".concat(u.nbrCurrentClock,"/").concat(s.nbrClockMax," Clock connectors used"))];break;case"vhdcicarrier":o=e.createElement("p",null,"".concat(u.nbrCurrentSlot,"/").concat(s.nbrSlotMax," EEM connectors used"));break;case"zotino":case"hd68":o=e.createElement("p",null,"".concat(u.nbrCurrentSlot,"/").concat(s.nbrSlotMax," connectors used"));break;case"clocker":o=e.createElement("p",null,"".concat(u.nbrCurrentClock,"/").concat(s.nbrClockMax," Clock connectors used"))}return e.createElement(Gl,{draggableId:s.id,index:c},(function(a,p){return e.createElement("div",wu({ref:a.innerRef},a.draggableProps,a.dragHandleProps,{style:xu({},xs(a.draggableProps.style,p,!0,!!l,!!s.selected,!0)),onMouseEnter:i.handleOnMouseEnterRemoveItem.bind(i,c),onMouseLeave:i.handleOnMouseLeaveRemoveItem.bind(i,c)}),e.createElement("div",{className:"progress-container warning d-flex justify-content-evenly"},t&&e.createElement(Zt,{placement:"bottom",trigger:["click","hover","focus"],overlay:function(n){n.arrowProps,n.hasDoneInitialMeasure,n.show;var r=Eu(n,bu);return e.createElement("div",wu({className:"k-popup-warning"},r),e.createElement("p",{className:"rule warning"},e.createElement("i",null,t.message)))},rootClose:!0},e.createElement("img",{className:"alert-warning",src:"/images".concat(t.icon)})),n&&e.createElement(gu,{options:n,data:r,options_class:s.options_class,key:"popover"+c,id:"popover"+c,big:"big"===s.size,first:d,last:f,target:{construct:function(e,t){r[e]=t},update:function(e,t){e in r&&(r[e]=t),m()}}})),e.createElement("h6",null,s.name_number),e.createElement("div",{onMouseEnter:i.handleOnMouseEnterRemoveItem.bind(i,c),onClick:i.handleOnClickItem.bind(i,c)},e.createElement("img",{className:"item-cart",src:"/images".concat(s.image)})),e.createElement("div",{style:{display:s.showOverlayRemove?"flex":"none"},className:"overlayRemove",onClick:i.handleOnClickRemoveItem.bind(i,c)},e.createElement("img",{src:"/images/shop/icon-remove.svg",alt:"rm"}),e.createElement("p",null,"Remove")),o&&e.createElement(Zt,{placement:"top",trigger:["click","hover","focus"],overlay:function(t){t.arrowProps,t.hasDoneInitialMeasure,t.show;var n=Eu(t,vu);return e.createElement("div",wu({className:"k-popup-connectors"},n),o)},rootClose:!0},e.createElement("div",{className:"progress-container"},s.nbrSlotMax>0&&e.createElement("div",{className:"nbr-connectors"},e.createElement("div",{style:xu({},Os(u))})),s.nbrClockMax>0&&e.createElement("div",{className:"nbr-clocks"},e.createElement("div",{style:xu({},Cs(u))})))))}))}}],i=[{key:"propTypes",get:function(){return{isMobile:o().bool,isTouch:o().bool,hovered:o().bool,first:o().bool,last:o().bool,index:o().number.isRequired,model:o().object.isRequired,data:o().object,ext_data:o().object,onToggleOverlayRemove:o().func,onClickRemoveItem:o().func,onClickItem:o().func,onCardUpdate:o().func}}},{key:"defaultProps",get:function(){return{hovered:!1}}}],r&&ku(n.prototype,r),i&&ku(n,i),Object.defineProperty(n,"prototype",{writable:!1}),u}(e.PureComponent);function _u(e){return _u="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},_u(e)}function Ru(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"!==_u(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!==_u(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(r.key),"symbol"===_u(o)?o:String(o)),r)}var o}function Nu(e,t){return Nu=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Nu(e,t)}function Tu(e){return Tu=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Tu(e)}var ju=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&&Nu(e,t)}(u,t);var n,r,i,a,l,s=(a=u,l=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=Tu(a);if(l){var n=Tu(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"===_u(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function u(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,u),s.apply(this,arguments)}return n=u,i=[{key:"propTypes",get:function(){return{isDraggingOver:o().bool,nbrSlots:o().number.isRequired,items:o().array.isRequired}}}],(r=[{key:"render",value:function(){for(var t=this.props,n=t.isDraggingOver,r=t.nbrSlots,o=t.items,i=[],a=r-Ps(o);a>0;a--)i.push(e.createElement("div",{key:a,style:{display:n?"none":"block",border:"1px dashed #ccc",width:"45px",marginBottom:"5px"}}));return e.createElement(e.Fragment,null,i)}}])&&Ru(n.prototype,r),i&&Ru(n,i),Object.defineProperty(n,"prototype",{writable:!1}),u}(e.PureComponent);function Au(e){return Au="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},Au(e)}function Mu(){return Mu=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},Mu.apply(this,arguments)}function Lu(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"!==Au(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!==Au(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(r.key),"symbol"===Au(o)?o:String(o)),r)}var o}function Bu(e,t){return Bu=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Bu(e,t)}function Fu(e){return Fu=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Fu(e)}var zu=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&&Bu(e,t)}(u,t);var n,r,i,a,l,s=(a=u,l=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=Fu(a);if(l){var n=Fu(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"===Au(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function u(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,u),s.apply(this,arguments)}return n=u,r=[{key:"render",value:function(){var t=this.props,n=t.isMobile,r=t.isTouch,o=t.nbrSlots,i=t.itemHovered,a=t.data,l=t.onToggleOverlayRemove,s=t.onClickRemoveItem,u=t.onClickItem,c=t.onCardUpdate,d=Ps(a.items),f=a.items.map((function(t,f){var p,m=function(e,t){return{has_other_dio:e.filter((function(e,n){return t!==n&&e.name&&e.name.endsWith("-TTL")})).length>0,has_dds:e.filter((function(e,t){return!("DDS"!==e.name||"4410"!==e.name_number||e.options_data&&e.options_data.mono_eem)})).length>0,has_sampler:e.filter((function(e,t){return!("Sampler"!==e.name||e.options_data&&e.options_data.mono_eem)})).length>0}}(a.itemsData,f);return a.itemsData&&f in a.itemsData&&(p=a.itemsData[f]),e.createElement(Du,{isMobile:n,isTouch:r,hovered:t.id===i,key:t.id,id:t.id,index:f,first:0===f,last:f===a.items.length-1&&d>=o,data:p,ext_data:m,onToggleOverlayRemove:l,onClickRemoveItem:s,onCardUpdate:c,onClickItem:u,model:t})}));return e.createElement(fs,{droppableId:a.id,direction:"horizontal"},(function(t,n){return e.createElement("div",Mu({ref:t.innerRef},t.droppableProps,{style:ks(t.droppableProps.style,n),className:"items-cart-list"}),f,t.placeholder&&e.createElement("div",{style:{display:"none"}},t.placeholder),e.createElement(ju,{nbrSlots:o,items:a.items,isDraggingOver:n.isDraggingOver}))}))}}],i=[{key:"propTypes",get:function(){return{isMobile:o().bool,isTouch:o().bool,nbrSlots:o().number,itemHovered:o().string,data:o().object.isRequired,onToggleOverlayRemove:o().func,onClickRemoveItem:o().func,onCardUpdate:o().func,onClickItem:o().func}}}],r&&Lu(n.prototype,r),i&&Lu(n,i),Object.defineProperty(n,"prototype",{writable:!1}),u}(e.PureComponent);function Uu(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],s=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){u=!0,o=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Wu(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Wu(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Wu(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function $u(t){var n=t.id,r=t.options,o=t.data,i=Uu((0,e.useState)(!1),2),a=i[0],l=i[1],s=Uu((0,e.useState)({x:0,y:0}),2),u=s[0],c=s[1],d=Uu((0,e.useState)({w:0,h:0}),2),f=d[0],p=d[1],m=jn(r,o),h=function(){l(!1),document.removeEventListener("scroll",b,!0)},g=pu(h),y=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?c({x:r-f.w-20,y:o-f.h/2}):c({x:r-f.w/2,y:o-f.h-20})}else document.removeEventListener("scroll",b,!0)},b=function(e){e.target!==document.getElementById(n)&&h()};return(0,e.useEffect)((function(){if(a){var e=document.getElementById(n),t=e.offsetWidth,r=e.offsetHeight;p({w:t,h:r}),y()}}),[a]),(0,e.useEffect)((function(){a&&y()}),[a,f]),e.createElement("div",{ref:g},e.createElement("img",{className:"alert-info",src:a?"/images/shop/icon-close.svg":"/images/shop/icon-customize.svg",id:n+"img",onClick:function(e){l(!a),a||document.addEventListener("scroll",b,!0)}}),e.createElement("div",{style:{display:a?"flex":"none",top:u.y,left:u.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=Uu(e,2),r=n[0];return n[1],"ext_data"!==r})).map((function(t,r){var o=Uu(t,2),i=o[0],a=o[1];return e.createElement("p",{className:"card-text",key:n+i},e.createElement("i",null,i),": ",function(e){var t=Tn(e);if("string"===t)return e;if("object"===t){if(!1===e.checked)return"off";if(!0===e.checked&&e.text)return e.text}return JSON.stringify(e)}(a))}))))))}function Gu(e){return Gu="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},Gu(e)}function Hu(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(void 0,o=function(e,t){if("object"!==Gu(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!==Gu(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(r.key),"symbol"===Gu(o)?o:String(o)),r)}var o}function Vu(e,t){return Vu=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Vu(e,t)}function qu(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Qu(e){return Qu=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Qu(e)}var Yu=function(t){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Vu(e,t)}(u,t);var n,r,i,a,l,s=(a=u,l=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=Qu(a);if(l){var n=Qu(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"===Gu(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return qu(e)}(this,e)});function u(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,u),(t=s.call(this,e)).handleOnDeleteItem=t.handleOnDeleteItem.bind(qu(t)),t.handleOnDeleteAllItems=t.handleOnDeleteAllItems.bind(qu(t)),t.handleOnMouseEnterItem=t.handleOnMouseEnterItem.bind(qu(t)),t.handleOnMouseLeaveItem=t.handleOnMouseLeaveItem.bind(qu(t)),t.handleOnClickSelectItem=t.handleOnClickSelectItem.bind(qu(t)),t}return n=u,r=[{key:"handleOnDeleteItem",value:function(e,t){this.props.onDeleteItem&&this.props.onDeleteItem(e),t.preventDefault()}},{key:"handleOnDeleteAllItems",value:function(e){this.props.onDeleteAllItems&&this.props.onDeleteAllItems(),e.preventDefault()}},{key:"handleOnMouseEnterItem",value:function(e,t){this.props.onMouseEnterItem&&this.props.onMouseEnterItem(e),t.preventDefault()}},{key:"handleOnMouseLeaveItem",value:function(e){this.props.onMouseLeaveItem&&this.props.onMouseLeaveItem(),e.preventDefault()}},{key:"handleOnClickSelectItem",value:function(e,t){return"IMG"!==t.target.tagName&&this.props.onClickSelectItem&&this.props.onClickSelectItem(e),t.preventDefault()}},{key:"render",value:function(){var t=this,n=this.props,r=n.currency,o=n.modes,i=n.currentMode,a=n.summary,l=n.itemsData,s=o.find((function(e){return e.id===i}));return e.createElement("div",{className:"summary-price"},e.createElement("table",null,e.createElement("thead",null,e.createElement("tr",null,e.createElement("td",{colSpan:"2",className:"summary-remove-all"},e.createElement("span",{className:"item-card-name"},"Remove all cards"),e.createElement("button",{onClick:this.handleOnDeleteAllItems},e.createElement("img",{src:"/images/shop/icon-remove.svg"})))),s&&e.createElement("tr",null,e.createElement("td",{className:"item-card-name"},s.name),e.createElement("td",{className:"price"},e.createElement("div",null,"".concat(r," ").concat(Is(s.price)),e.createElement("button",{style:{opacity:"0",cursor:"initial"}},e.createElement("img",{src:"/images/shop/icon-remove.svg"}))),e.createElement("span",{style:{display:"inline-block",width:"30px"}}," ")))),e.createElement("tbody",null,a.map((function(n,o){var i,a,s,u;if(l[o]&&l[o].warnings){i=l[o];var c=Object.keys(i.warnings);c&&c.length>0&&(a=i.warnings[c[0]])}return s=l[o]&&l[o].options,u=l[o]&&l[o].options_data,e.createElement("tr",{key:n.id,className:"hoverable ".concat(n.selected?"selected":""),onClick:t.handleOnClickSelectItem.bind(t,o),onMouseEnter:t.handleOnMouseEnterItem.bind(t,n.id),onMouseLeave:t.handleOnMouseLeaveItem},e.createElement("td",{className:"item-card-name"},e.createElement("div",null,"".concat(n.name_number," ").concat(n.name," ").concat(n.name_codename))),e.createElement("td",{className:"price"},e.createElement("div",{className:"d-inline-flex align-content-center"},"".concat(r," ").concat(Is(n.price)),e.createElement("button",{onClick:t.handleOnDeleteItem.bind(t,o)},e.createElement("img",{src:"/images/shop/icon-remove.svg"})),e.createElement("div",{style:{width:"45px",height:"20px"},className:"d-inline-flex align-content-center align-self-center justify-content-evenly"},a?e.createElement("img",{className:"alert-warning align-self-start",src:"/images/".concat(a.icon)}):e.createElement("span",{style:{display:"inline-block",width:"20px"}}," "),s&&u?e.createElement($u,{id:n.id+"options",options:s,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,a.length?"".concat(r," ").concat(Is(a.reduce((function(e,t){return e+t.price}),0)+s.price)):"".concat(r," ").concat(Is(s.price)),e.createElement("button",{style:{opacity:"0",cursor:"initial"}},e.createElement("img",{src:"/images/shop/icon-remove.svg",alt:"icon remove"}))),e.createElement("span",{style:{display:"inline-block",width:"30px"}}," "))))))}}],i=[{key:"propTypes",get:function(){return{currency:o().string,modes:o().array,currentMode:o().string,summary:o().array,itemsData:o().array,onDeleteItem:o().func,onDeleteAllItems:o().func,onMouseEnterItem:o().func,onMouseLeaveItem:o().func,onClickSelectItem:o().func}}}],r&&Hu(n.prototype,r),i&&Hu(n,i),Object.defineProperty(n,"prototype",{writable:!1}),u}(e.PureComponent);function Ku(e){return Ku="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ku(e)}function Ju(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 Xu(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ju(Object(n),!0).forEach((function(t){Zu(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ju(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Zu(e,t,n){return(t=tc(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ec(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,tc(r.key),r)}}function tc(e){var t=function(e,t){if("object"!==Ku(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!==Ku(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===Ku(t)?t:String(t)}function nc(e,t){return nc=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},nc(e,t)}function rc(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function oc(e){return oc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},oc(e)}var ic=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&&nc(e,t)}(u,t);var n,r,i,a,l,s=(a=u,l=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=oc(a);if(l){var n=oc(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"===Ku(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return rc(e)}(this,e)});function u(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,u),(t=s.call(this,e)).state={note:"",email:"",error:{note:null,email:null},empty:{note:null,email:null}},t.handleEmail=t.handleEmail.bind(rc(t)),t.handleNote=t.handleNote.bind(rc(t)),t.handleSubmit=t.handleSubmit.bind(rc(t)),t.resetEmptyError=t.resetEmptyError.bind(rc(t)),t.checkValidation=t.checkValidation.bind(rc(t)),t}return n=u,r=[{key:"checkValidation",value:function(){var e=Xu({},this.state),t=this.validateEmail(this.state.email),n=t.isEmpty,r=t.isError;return e=Xu(Xu({},e),{},{error:Xu(Xu({},this.state.error),{},{email:r}),empty:Xu(Xu({},this.state.empty),{},{email:n})}),this.setState(e),!n&&!r}},{key:"validateEmail",value:function(e){var t=null,n=null;return this.props.t,e&&""!==e.trim()?e&&!e.match(/^\w+([\+\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/)&&(n={message:"Your email is incomplete"}):t=!0,{isEmpty:t,isError:n}}},{key:"validateNote",value:function(e){var t=null;return e&&""!==e.trim()||(t=!0),{isEmpty:t}}},{key:"resetEmptyError",value:function(e){this.setState(Xu(Xu({},this.state),{},{error:Xu(Xu({},this.state.error),{},Zu({},e,null)),empty:Xu(Xu({},this.state.empty),{},Zu({},e,null))}))}},{key:"handleEmail",value:function(e){var t=e.target.value,n=this.validateEmail(t),r=n.isEmpty,o=n.isError;this.setState(Xu(Xu({},this.state),{},{email:t,error:Xu(Xu({},this.state.error),{},{email:o}),empty:Xu(Xu({},this.state.empty),{},{email:r})}))}},{key:"handleNote",value:function(e){var t=e.target.value;this.setState(Xu(Xu({},this.state),{},{note:t}))}},{key:"handleSubmit",value:function(e){if(e.preventDefault(),this.props.onClickSubmit){if(!this.checkValidation())return!1;this.props.onClickSubmit(this.state.note,this.state.email)}}},{key:"render",value:function(){var t=this.handleEmail,n=this.handleNote,r=this.resetEmptyError,o=this.handleSubmit,i=this.props.onClickShow,a=this.state,l=a.email,s=a.note,u=a.error,c=a.empty,d=this.props,f=d.isProcessing;return d.isProcessingComplete,e.createElement("div",{className:"summary-form"},e.createElement("form",{onSubmit:o,noValidate:!0},e.createElement("input",{className:"".concat(u&&u.email?"errorField":""),type:"email",placeholder:"Email",onFocus:function(){return r("email")},onChange:t,onBlur:t,value:l}),c&&c.email?e.createElement("div",{className:"error"},e.createElement("small",null,"Required")):null,u&&u.email?e.createElement("div",{className:"error"},e.createElement("small",null,"Your email is incomplete")):null,e.createElement("textarea",{onChange:n,defaultValue:s,rows:"5",placeholder:"Additional notes"}),e.createElement("div",{className:"d-flex flex-column flex-sm-row justify-content-between"},e.createElement("input",{className:"btn btn-outline-primary w-100 m-0 mb-2 mb-sm-0 me-sm-2",style:{cursor:"pointer",fontWeight:"700"},defaultValue:"Show JSON",onClick:i,readOnly:!0}),e.createElement("input",{className:"btn btn-primary w-100 m-0 ms-sm-2",type:"submit",value:"".concat(f?"Processing ...":"Request quote")}))))}}],i=[{key:"propTypes",get:function(){return{isProcessing:o().bool,isProcessingComplete:o().bool,onClickSubmit:o().func}}}],r&&ec(n.prototype,r),i&&ec(n,i),Object.defineProperty(n,"prototype",{writable:!1}),u}(e.PureComponent);function ac(e){return ac="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},ac(e)}function lc(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 sc(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?lc(Object(n),!0).forEach((function(t){uc(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):lc(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function uc(e,t,n){return(t=dc(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function cc(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,dc(r.key),r)}}function dc(e){var t=function(e,t){if("object"!==ac(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!==ac(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===ac(t)?t:String(t)}function fc(e,t){return fc=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},fc(e,t)}function pc(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function mc(e){return mc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},mc(e)}var hc=function(t){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&fc(e,t)}(u,t);var n,r,i,a,l,s=(a=u,l=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=mc(a);if(l){var n=mc(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"===ac(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return pc(e)}(this,e)});function u(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,u),(t=s.call(this,e)).state=t.props.data,t.handleCrateModeChange=t.handleCrateModeChange.bind(pc(t)),t.handleOnDragEnd=t.handleOnDragEnd.bind(pc(t)),t.handleDeleteItem=t.handleDeleteItem.bind(pc(t)),t.handleDeleteAllItems=t.handleDeleteAllItems.bind(pc(t)),t.handleMouseEnterItem=t.handleMouseEnterItem.bind(pc(t)),t.handleMouseLeaveItem=t.handleMouseLeaveItem.bind(pc(t)),t.handleClickAddItem=t.handleClickAddItem.bind(pc(t)),t.checkAlerts=t.checkAlerts.bind(pc(t)),t.handleClickSelectItem=t.handleClickSelectItem.bind(pc(t)),t.handleClickSubmit=t.handleClickSubmit.bind(pc(t)),t.handleToggleOverlayRemove=t.handleToggleOverlayRemove.bind(pc(t)),t.handleShowOverlayRemove=t.handleShowOverlayRemove.bind(pc(t)),t.handleClickToggleMobileSideMenu=t.handleClickToggleMobileSideMenu.bind(pc(t)),t.handleClickCloseRFQFeedback=t.handleClickCloseRFQFeedback.bind(pc(t)),t.handleClickShowOrder=t.handleClickShowOrder.bind(pc(t)),t.handleClickOpenImport=t.handleClickOpenImport.bind(pc(t)),t.handleLoadCustomConf=t.handleLoadCustomConf.bind(pc(t)),t.handleCardsUpdated=t.handleCardsUpdated.bind(pc(t)),t.timer=null,t.timer_remove=null,t}return n=u,r=[{key:"componentDidMount",value:function(){var e={droppableId:"backlog",indexes:[vs.findIndex((function(e){return"eem_pwr_mod"===e})),vs.findIndex((function(e){return"kasli"===e}))]};this.handleOnDragEnd({source:e,destination:{droppableId:"cart",index:0}})}},{key:"componentDidUpdate",value:function(e,t){var n=this;t.columns.cart.items===this.state.columns.cart.items&&t.currentMode===this.state.currentMode||this.checkAlerts(this.state.columns.cart.items),this.state.newCardJustAdded&&(this.timer=setTimeout((function(){n.setState({newCardJustAdded:!1})}),2e3))}},{key:"componentWillUnmount",value:function(){clearTimeout(this.timer)}},{key:"handleCardsUpdated",value:function(){this.checkAlerts(this.state.columns.cart.items)}},{key:"handleCrateModeChange",value:function(e){this.setState({currentMode:e})}},{key:"handleDeleteItem",value:function(e){var t=Array.from(this.state.columns.cart.items),n=Array.from(this.state.columns.cart.itemsData);t.splice(e,1),n.splice(e,1),this.setState(sc(sc({},this.state),{},{columns:sc(sc({},this.state.columns),{},{cart:sc(sc({},this.state.columns.cart),{},{items:t,itemsData:n})})}))}},{key:"handleDeleteAllItems",value:function(){this.setState(sc(sc({},this.state),{},{columns:sc(sc({},this.state.columns),{},{cart:sc(sc({},this.state.columns.cart),{},{items:[],itemsData:[]})})}))}},{key:"handleMouseEnterItem",value:function(e){this.setState(sc(sc({},this.state),{},{currentItemHovered:e}))}},{key:"handleMouseLeaveItem",value:function(){this.setState(sc(sc({},this.state),{},{currentItemHovered:null}))}},{key:"handleClickAddItem",value:function(e,t){var n={droppableId:"backlog",index:e},r={droppableId:"cart",index:this.state.columns.cart.items.length};this.handleOnDragEnd({source:n,destination:r},t)}},{key:"handleClickSelectItem",value:function(e){var t=Array.from(this.state.columns.cart.items);this.setState(sc(sc({},this.state),{},{columns:sc(sc({},this.state.columns),{},{cart:sc(sc({},this.state.columns.cart),{},{items:t.map((function(t,n){return sc(sc({},t),{},{selected:n===e})}))})})}))}},{key:"handleToggleOverlayRemove",value:function(e,t){var n=Array.from(this.state.columns.cart.items);this.setState(sc(sc({},this.state),{},{columns:sc(sc({},this.state.columns),{},{cart:sc(sc({},this.state.columns.cart),{},{items:n.map((function(n,r){return sc(sc({},n),{},{showOverlayRemove:r===e&&t})}))})})}))}},{key:"handleShowOverlayRemove",value:function(e){var t=this;this.timer_remove&&clearTimeout(this.timer_remove),this.handleToggleOverlayRemove(e,!0),this.timer_remove=setTimeout((function(){t.handleToggleOverlayRemove(e,!1)}),2e3)}},{key:"handleClickShowOrder",value:function(){var e={items:[],type:this.state.currentMode},t=Array.from(this.state.columns.cart.items),n=Array.from(this.state.columns.cart.itemsData);for(var r in t){var o=t[r],i=n[r];e.items.push({pn:o.name_number,options:i.options_data&&i.options?jn(i.options,i.options_data):null})}this.setState({isProcessing:!1,shouldShowRFQFeedback:!0,RFQBodyType:"show",RFQBodyOrder:JSON.stringify(e,null,2)})}},{key:"handleClickOpenImport",value:function(){this.setState({isProcessing:!1,shouldShowRFQFeedback:!0,RFQBodyType:"import"})}},{key:"handleLoadCustomConf",value:function(e){if(e){var t=this.props.data.items,n=[],r=[];this.setState(sc(sc({},this.state),{},{columns:sc(sc({},this.state.columns),{},{cart:sc(sc({},this.state.columns.cart),{},{items:[]})})}),(function(){e.items.map((function(e){return Object.keys(t).map((function(o){e.pn&&e.pn===t[o].name_number&&(n.push(Object.assign(sc({},t[o]),{id:zn(),options_data:e.options?e.options:null})),r.push({options_data:e.options?e.options:null}))})),e})),this.setState(sc(sc({},this.state),{},{columns:sc(sc({},this.state.columns),{},{cart:sc(sc({},this.state.columns.cart),{},{items:n,itemsData:r})}),currentMode:e.type}))}))}}},{key:"handleClickSubmit",value:function(e,t){var n=this,r={items:[],type:this.state.currentMode},o=Array.from(this.state.columns.cart.items),i=Array.from(this.state.columns.cart.itemsData);for(var a in o){var l=o[a],s=i[a];r.items.push({pn:l.name_number,options:s.options_data&&s.options?jn(s.options,s.options_data):null})}var u=this.props.data;this.setState({isProcessing:!0}),fetch(u.API_RFQ,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:t,note:e,configuration:JSON.stringify(r)})}).then((function(e){if(200!==e.status)throw Error("Response status is not OK: "+e.status+".\n"+e);n.setState({isProcessing:!1,shouldShowRFQFeedback:!0,RFQBodyType:"email",isProcessingComplete:!0})})).catch((function(e){console.error("Request failed, reason:",e),n.setState({isProcessing:!1},(function(){alert("We cannot receive your request. Try using the export by coping the configuration and send it to us at sales@m-labs.hk")}))}))}},{key:"handleOnDragEnd",value:function(e,t){var n=e.source,r=e.destination,o=[];if(n.indexes?n.indexes.forEach((function(e,t){o.push(vs[e])})):n.index>=0&&o.push(vs[n.index]),r)switch(n.droppableId){case"backlog":n.droppableId!==r.droppableId&&this.setState(sc(sc({},this.state),{},{newCardJustAdded:!!t,columns:sc(sc({},this.state.columns),{},uc({},r.droppableId,sc(sc({},this.state.columns[r.droppableId]),{},{items:ws(this.state.items,this.state.columns[n.droppableId],this.state.columns[r.droppableId],o,r)})))}));break;case r.droppableId:this.setState(sc(sc({},this.state),{},{newCardJustAdded:!1,columns:sc(sc({},this.state.columns),{},uc({},r.droppableId,sc(sc({},this.state.columns[r.droppableId]),{},{items:Es(this.state.columns[r.droppableId].items,n.index,r.index),itemsData:Es(this.state.columns[r.droppableId].itemsData,n.index,r.index)})))}))}else"cart"===n.droppableId&&this.setState(sc(sc({},this.state),{},{newCardJustAdded:!1,columns:sc(sc({},this.state.columns),{},uc({},n.droppableId,sc(sc({},this.state.columns[n.droppableId]),{},{items:Ss(this.state.columns[n.droppableId].items,n.index),itemsData:Ss(this.state.columns[n.droppableId].itemsData,n.index)})))}))}},{key:"handleClickToggleMobileSideMenu",value:function(){this.setState(sc(sc({},this.state),{},{mobileSideMenuShouldOpen:!this.state.mobileSideMenuShouldOpen}))}},{key:"handleClickCloseRFQFeedback",value:function(){this.setState({shouldShowRFQFeedback:!1})}},{key:"checkAlerts",value:function(e){var t=this;console.log("--- START CHECKING CRATE WARNING ---");var n=this.state,r=n.currentMode,o=n.crateModeSlots,i=n.crateRules,a=Array.from(e),l=[],s={};a.forEach((function(e,n){n in l||(l[n]=e),n in t.state.columns.cart.itemsData&&t.state.columns.cart.itemsData[n].options_data&&(a[n].options_data=t.state.columns.cart.itemsData[n].options_data),l[n].warnings={}}));var u=Ps(e);u>o[r]?s[i.maxSlot.type]=sc({},i.maxSlot):21===o[r]&&u<=10&&(s[i.compactSlot.type]=sc({},i.compactSlot));for(var c=a.reduce((function(e,t,n){return"kasli"!==t.type&&"vhdcicarrier"!==t.type||e.push(n),e}),[]),d=function(){var e,t,n,r=c[f];if(e=f!==c.length-1?a.slice(r+1,c[f+1]):a.slice(r+1),0==f){var o=a.slice(0,r).findIndex((function(e){return e.rules&&e.rules.resources}));-1!=o&&(o in l?("warnings"in l[o]||(l[o].warnings={}),l[o].warnings.resources=sc({},a[o].rules.resources)):(l[o]=sc({},a[o]),l[o].warnings={},l[o].warnings.resources=sc({},a[o].rules.resources)))}if(t=e.filter((function(e){return"idc-bnc"!==e.type})).reduce((function(e,t){return e+((n=t).options_data&&!1!==n.options_data.ext_pwr&&!1!==n.options_data.mono_eem?!0===n.options_data.ext_pwr?0:!0===n.options_data.mono_eem||"1 EEM"===n.options_data.n_eem?1:"3 EEM"===n.options_data.n_eem?3:n.slotOccupied:n.slotOccupied);var n}),0),n=e.reduce((function(e,t){return"clocker"===t.type?e+(t.options_data&&!0===t.options_data.ext_clk?0:t.clockOccupied):e}),0),r in l?(l[r].nbrCurrentSlot=t,l[r].nbrCurrentClock=n,"warnings"in l[r]||(l[r].warnings={})):(l[r]=sc({},a[r]),l[r].nbrCurrentSlot=t,l[r].nbrCurrentClock=n,l[r].warnings={}),t>a[r].nbrSlotMax&&(a[r].rules.maxSlot.message&&(s[a[r].rules.maxSlot.type]=sc({},a[r].rules.maxSlot)),l[r].warnings.maxSlotWarning=sc({},a[r].rules.maxSlotWarning)),n>a[r].nbrClockMax&&(s[a[r].rules.maxClock.type]=sc({},a[r].rules.maxClock),l[r].warnings.maxClockWarning=sc({},a[r].rules.maxClockWarning)),a.length>r+1){var i=a[r+1];"kasli"!==i.type&&"vhdcicarrier"!==i.type||(s[i.rules.follow.type]=sc({},i.rules.follow))}},f=0;f<=c.length-1;f++)d();if(0===c.length){var p=a.slice(0).findIndex((function(e){return e.rules&&e.rules.resources}));-1!=p&&(p in l?("warnings"in l[p]||(l[p].warnings={}),l[p].warnings.resources=sc({},a[p].rules.resources)):(l[p]=sc({},a[p]),l[p].warnings={},l[p].warnings.resources=sc({},a[p].rules.resources)))}for(var m=a.reduce((function(e,t,n){return"kasli"!==t.type&&"clocker"!==t.type||e.push(n),e}),[]),h=0;h<=m.length-1;h++){var g,y=m[h];g=(h!==m.length-1?a.slice(y+1,m[h+1]):a.slice(y+1)).reduce((function(e,t){return e+(t.options_data&&t.options_data.ext_clk&&t.options_data.ext_clk.checked?0:t.clockOccupied)}),0),y in l?l[y].nbrCurrentClock&&"clocker"!==l[y].type?l[y].nbrCurrentClock+=g:l[y].nbrCurrentClock=g:(l[y]=sc({},a[y]),l[y].nbrCurrentClock=g,l[y].warnings={}),g>a[y].nbrClockMax&&(s[a[y].rules.maxClock.type]=sc({},a[y].rules.maxClock),l[y].warnings.maxClockWarning=sc({},a[y].rules.maxClockWarning))}a.find((function(e){return"urukul"===e.type}))&&this.state.items.urukul.rules.info&&(s[this.state.items.urukul.rules.info.type]=sc({},this.state.items.urukul.rules.info));for(var b=a.reduce((function(e,t,n){return"idc-bnc"===t.type&&e.push(n),e}),[]),v=b.length-1;v>=0;v--){var w=b[v],E=!1;if(0==w)E=!0;else if(w>=1){var S=b[v]-1;"zotino"!==a[S].type&&"hd68"!==a[S].type&&"idc-bnc"!==a[S].type&&(E=!0)}E&&(l[w]=sc({},a[w]),l[w].warnings={},l[w].warnings.wrong=sc({},a[w].rules.wrong))}for(var x=a.reduce((function(e,t,n){return"zotino"!==t.type&&"hd68"!==t.type||e.push(n),e}),[]),k=function(){var e,t,n=x[O];e=O!==x.length-1?a.slice(n+1,x[O+1]):a.slice(n+1);var r=!1;if(t=e.reduce((function(e,t,n,o){return 0===n&&"idc-bnc"===t.type?e+1:"idc-bnc"===o[0].type&&n>0&&"idc-bnc"===o[n-1].type?("idc-bnc"!==t.type&&(r=!0),e+("idc-bnc"!==t.type||r?0:1)):e}),0),n in l?(l[n].nbrCurrentSlot=t,"warnings"in l[n]||(l[n].warnings={})):(l[n]=sc({},a[n]),l[n].nbrCurrentSlot=t,l[n].warnings={}),t>0&&a[n].rules.maxSlot.message&&(s[a[n].rules.maxSlot.type]=sc({},a[n].rules.maxSlot)),t>a[n].nbrSlotMax&&(l[n].warnings.maxSlotWarning=sc({},a[n].rules.maxSlotWarning)),"hd68"===a[n].type){var o=!1;n<a.length-1?"idc-bnc"!==a[n+1].type&&(o=!0):n===a.length-1&&(o=!0),o&&(n in l||(l[n]=sc({},a[n]),l[n].warnings={}),l[n].warnings.minAdapter=sc({},a[n].rules.minAdapter))}},O=0;O<=x.length-1;O++)k();this.setState(sc(sc({},this.state),{},{columns:sc(sc({},this.state.columns),{},{cart:sc(sc({},this.state.columns.cart),{},{itemsData:l})}),rules:sc({},s)}))}},{key:"render",value:function(){var t=this.state,n=t.currency,r=t.currentItemHovered,o=t.currentMode,i=t.crateModeSlots,a=t.crateModeItems,l=t.items,s=t.columns,u=t.rules,c=t.mobileSideMenuShouldOpen,d=t.newCardJustAdded,f=t.isProcessing,p=t.shouldShowRFQFeedback,m=t.RFQBodyType,h=t.RFQBodyOrder,g=t.isProcessingComplete,y=window.deviceIsMobile(),b=window.isTouchEnabled();return e.createElement(Dl,{onDragEnd:this.handleOnDragEnd},e.createElement(Ls,{showRFQFeedback:p,RFQBodyType:m,RFQBodyOrder:h,className:"shop",mobileSideMenuShouldOpen:c,isMobile:y,newCardJustAdded:d,onClickToggleMobileSideMenu:this.handleClickToggleMobileSideMenu,onClickCloseRFQFeedback:this.handleClickCloseRFQFeedback,onClickLoadCustomConf:this.handleLoadCustomConf,items:l,aside:e.createElement(Ks,{currency:n,items:l,data:s.backlog,onClickAddItem:this.handleClickAddItem,onClickToggleMobileSideMenu:this.handleClickToggleMobileSideMenu,isMobile:y}),main:e.createElement(tu,{onClickToggleMobileSideMenu:this.handleClickToggleMobileSideMenu,onClickOpenImport:this.handleClickOpenImport,isMobile:y,title:"Order hardware",description:e.createElement("p",{className:"description"},"Drag and drop the cards you want into the crate below to see how the combination would look like. Setup card's configuration by tapping at the top of the card, most of the options can be modified after shipment. If you have any issues with this ordering system, or if you need other configurations, email us directly anytime at ",e.createElement("a",{href:"mailto:sales@m-labs.hk"},"sales@m-labs.hk"),". The price is estimated and must be confirmed by a quote."),crateMode:e.createElement(lu,{items:a,mode:o,onClickMode:this.handleCrateModeChange}),crate:e.createElement(fu,{cart:e.createElement(zu,{nbrSlots:i[o],data:s.cart,isMobile:y,isTouch:b,itemHovered:r,onToggleOverlayRemove:this.handleToggleOverlayRemove,onClickRemoveItem:this.handleDeleteItem,onClickItem:this.handleShowOverlayRemove,onCardUpdate:this.handleCardsUpdated}),rules:Object.values(u).filter((function(e){return e}))}),summaryPrice:e.createElement(Yu,{currency:n,currentMode:o,modes:a,summary:s.cart.items,itemsData:s.cart.itemsData,onMouseEnterItem:this.handleMouseEnterItem,onMouseLeaveItem:this.handleMouseLeaveItem,onDeleteItem:this.handleDeleteItem,onDeleteAllItems:this.handleDeleteAllItems,onClickSelectItem:this.handleClickSelectItem}),form:e.createElement(ic,{isProcessingComplete:g,processingComplete:this.handleProcessingComplete,isProcessing:f,onClickSubmit:this.handleClickSubmit,onClickShow:this.handleClickShowOrder})})}))}}],i=[{key:"propTypes",get:function(){return{data:o().object.isRequired}}}],r&&cc(n.prototype,r),i&&cc(n,i),Object.defineProperty(n,"prototype",{writable:!1}),u}(e.PureComponent);(0,t.s)(document.querySelector("#root-shop")).render(e.createElement(hc,{data:bs}))})()})();