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

2 lines
206 KiB
JavaScript
Raw Blame History

This file contains invisible Unicode characters

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

/*! For license information please see shop.bundle.js.LICENSE.txt */
(()=>{var e={184:(e,t)=>{var n;!function(){"use strict";var r={}.hasOwnProperty;function o(){for(var e=[],t=0;t<arguments.length;t++){var n=arguments[t];if(n){var i=typeof n;if("string"===i||"number"===i)e.push(n);else if(Array.isArray(n)){if(n.length){var a=o.apply(null,n);a&&e.push(a)}}else if("object"===i){if(n.toString!==Object.prototype.toString&&!n.toString.toString().includes("[native code]")){e.push(n.toString());continue}for(var c in n)r.call(n,c)&&n[c]&&e.push(c)}}}return e.join(" ")}e.exports?(o.default=o,e.exports=o):void 0===(n=function(){return o}.apply(t,[]))||(e.exports=n)}()},143:e=>{"use strict";e.exports=function(e,t,n,r,o,i,a,c){if(!e){var l;if(void 0===t)l=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,c],s=0;(l=new Error(t.replace(/%s/g,(function(){return u[s++]})))).name="Invariant Violation"}throw l.framesToPop=1,l}}},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,c,l,u=e.get_operator(n),s=n[u];if(Array.isArray(s)||(s=[s]),"if"===u||"?:"==u){for(o=0;o<s.length-1;o+=2)if(e.truthy(e.apply(s[o],r)))return e.apply(s[o+1],r);return s.length===o+1?e.apply(s[o],r):null}if("and"===u){for(o=0;o<s.length;o+=1)if(i=e.apply(s[o],r),!e.truthy(i))return i;return i}if("or"===u){for(o=0;o<s.length;o+=1)if(i=e.apply(s[o],r),e.truthy(i))return i;return i}if("filter"===u)return c=e.apply(s[0],r),a=s[1],Array.isArray(c)?c.filter((function(t){return e.truthy(e.apply(a,t))})):[];if("map"===u)return c=e.apply(s[0],r),a=s[1],Array.isArray(c)?c.map((function(t){return e.apply(a,t)})):[];if("reduce"===u)return c=e.apply(s[0],r),a=s[1],l=void 0!==s[2]?s[2]:null,Array.isArray(c)?c.reduce((function(t,n){return e.apply(a,{current:n,accumulator:t})}),l):l;if("all"===u){if(c=e.apply(s[0],r),a=s[1],!Array.isArray(c)||!c.length)return!1;for(o=0;o<c.length;o+=1)if(!e.truthy(e.apply(a,c[o])))return!1;return!0}if("none"===u){if(c=e.apply(s[0],r),a=s[1],!Array.isArray(c)||!c.length)return!0;for(o=0;o<c.length;o+=1)if(e.truthy(e.apply(a,c[o])))return!1;return!0}if("some"===u){if(c=e.apply(s[0],r),a=s[1],!Array.isArray(c)||!c.length)return!1;for(o=0;o<c.length;o+=1)if(e.truthy(e.apply(a,c[o])))return!0;return!1}if(s=s.map((function(t){return e.apply(t,r)})),t.hasOwnProperty(u)&&"function"==typeof t[u])return t[u].apply(r,s);if(u.indexOf(".")>0){var f=String(u).split("."),d=t;for(o=0;o<f.length;o++){if(!d.hasOwnProperty(f[o]))throw new Error("Unrecognized operation "+u+" (failed at "+f.slice(0,o+1).join(".")+")");d=d[f[o]]}return d.apply(r,s)}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)},748:(e,t,n)=>{"use strict";n.r(t),n.d(t,{Children:()=>Y,Component:()=>c.wA,Fragment:()=>c.HY,PureComponent:()=>F,StrictMode:()=>De,Suspense:()=>X,SuspenseList:()=>G,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:()=>_e,cloneElement:()=>Se,createContext:()=>c.kr,createElement:()=>c.az,createFactory:()=>Ee,createPortal:()=>ne,createRef:()=>c.Vf,default:()=>Fe,findDOMNode:()=>Ce,flushSync:()=>Ne,forwardRef:()=>W,hydrate:()=>se,isElement:()=>Me,isFragment:()=>Oe,isValidElement:()=>xe,lazy:()=>Q,memo:()=>B,render:()=>ue,startTransition:()=>Pe,unmountComponentAtNode:()=>ke,unstable_batchedUpdates:()=>je,useCallback:()=>O,useContext:()=>S,useDebugValue:()=>k,useDeferredValue:()=>Re,useEffect:()=>b,useErrorBoundary:()=>C,useId:()=>j,useImperativeHandle:()=>E,useInsertionEffect:()=>Te,useLayoutEffect:()=>_,useMemo:()=>x,useReducer:()=>g,useRef:()=>w,useState:()=>y,useSyncExternalStore:()=>Ie,useTransition:()=>Ae,version:()=>we});var r,o,i,a,c=n(400),l=0,u=[],s=[],f=c.YM.__b,d=c.YM.__r,p=c.YM.diffed,m=c.YM.__c,h=c.YM.unmount;function v(e,t){c.YM.__h&&c.YM.__h(o,e,l||t),l=0;var n=o.__H||(o.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({__V:s}),n.__[e]}function y(e){return l=1,g(M,e)}function g(e,t,n){var i=v(r++,2);if(i.t=e,!i.__c&&(i.__=[n?n(t):M(void 0,t),function(e){var t=i.__N?i.__N[0]:i.__[0],n=i.t(t,e);t!==n&&(i.__N=[n,i.__[1]],i.__c.setState({}))}],i.__c=o,!o.u)){var a=function(e,t,n){if(!i.__c.__H)return!0;var r=i.__c.__H.__.filter((function(e){return e.__c}));if(r.every((function(e){return!e.__N})))return!c||c.call(this,e,t,n);var o=!1;return r.forEach((function(e){if(e.__N){var t=e.__[0];e.__=e.__N,e.__N=void 0,t!==e.__[0]&&(o=!0)}})),!(!o&&i.__c.props===e)&&(!c||c.call(this,e,t,n))};o.u=!0;var c=o.shouldComponentUpdate,l=o.componentWillUpdate;o.componentWillUpdate=function(e,t,n){if(this.__e){var r=c;c=void 0,a(e,t,n),c=r}l&&l.call(this,e,t,n)},o.shouldComponentUpdate=a}return i.__N||i.__}function b(e,t){var n=v(r++,3);!c.YM.__s&&T(n.__H,t)&&(n.__=e,n.i=t,o.__H.__h.push(n))}function _(e,t){var n=v(r++,4);!c.YM.__s&&T(n.__H,t)&&(n.__=e,n.i=t,o.__h.push(n))}function w(e){return l=5,x((function(){return{current:e}}),[])}function E(e,t,n){l=6,_((function(){return"function"==typeof e?(e(t()),function(){return e(null)}):e?(e.current=t(),function(){return e.current=null}):void 0}),null==n?n:n.concat(e))}function x(e,t){var n=v(r++,7);return T(n.__H,t)?(n.__V=e(),n.i=t,n.__h=e,n.__V):n.__}function O(e,t){return l=8,x((function(){return e}),t)}function S(e){var t=o.context[e.__c],n=v(r++,9);return n.c=e,t?(null==n.__&&(n.__=!0,t.sub(o)),t.props.value):e.__}function k(e,t){c.YM.useDebugValue&&c.YM.useDebugValue(t?t(e):e)}function C(e){var t=v(r++,10),n=y();return t.__=e,o.componentDidCatch||(o.componentDidCatch=function(e,r){t.__&&t.__(e,r),n[1](e)}),[n[0],function(){n[1](void 0)}]}function j(){var e=v(r++,11);if(!e.__){for(var t=o.__v;null!==t&&!t.__m&&null!==t.__;)t=t.__;var n=t.__m||(t.__m=[0,0]);e.__="P"+n[0]+"-"+n[1]++}return e.__}function N(){for(var e;e=u.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(R),e.__H.__h.forEach(A),e.__H.__h=[]}catch(t){e.__H.__h=[],c.YM.__e(t,e.__v)}}c.YM.__b=function(e){o=null,f&&f(e)},c.YM.__r=function(e){d&&d(e),r=0;var t=(o=e.__c).__H;t&&(i===o?(t.__h=[],o.__h=[],t.__.forEach((function(e){e.__N&&(e.__=e.__N),e.__V=s,e.__N=e.i=void 0}))):(t.__h.forEach(R),t.__h.forEach(A),t.__h=[],r=0)),i=o},c.YM.diffed=function(e){p&&p(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(1!==u.push(t)&&a===c.YM.requestAnimationFrame||((a=c.YM.requestAnimationFrame)||P)(N)),t.__H.__.forEach((function(e){e.i&&(e.__H=e.i),e.__V!==s&&(e.__=e.__V),e.i=void 0,e.__V=s}))),i=o=null},c.YM.__c=function(e,t){t.some((function(e){try{e.__h.forEach(R),e.__h=e.__h.filter((function(e){return!e.__||A(e)}))}catch(n){t.some((function(e){e.__h&&(e.__h=[])})),t=[],c.YM.__e(n,e.__v)}})),m&&m(e,t)},c.YM.unmount=function(e){h&&h(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach((function(e){try{R(e)}catch(e){t=e}})),n.__H=void 0,t&&c.YM.__e(t,n.__v))};var D="function"==typeof requestAnimationFrame;function P(e){var t,n=function(){clearTimeout(r),D&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,100);D&&(t=requestAnimationFrame(n))}function R(e){var t=o,n=e.__c;"function"==typeof n&&(e.__c=void 0,n()),o=t}function A(e){var t=o;e.__c=e.__(),o=t}function T(e,t){return!e||e.length!==t.length||t.some((function(t,n){return t!==e[n]}))}function M(e,t){return"function"==typeof t?t(e):t}function I(e,t){for(var n in t)e[n]=t[n];return e}function L(e,t){for(var n in e)if("__source"!==n&&!(n in t))return!0;for(var r in t)if("__source"!==r&&e[r]!==t[r])return!0;return!1}function F(e){this.props=e}function B(e,t){function n(e){var n=this.props.ref,r=n==e.ref;return!r&&n&&(n.call?n(null):n.current=null),t?!t(this.props,e)||!r:L(this.props,e)}function r(t){return this.shouldComponentUpdate=n,(0,c.az)(e,t)}return r.displayName="Memo("+(e.displayName||e.name)+")",r.prototype.isReactComponent=!0,r.__f=!0,r}(F.prototype=new c.wA).isPureReactComponent=!0,F.prototype.shouldComponentUpdate=function(e,t){return L(this.props,e)||L(this.state,t)};var H=c.YM.__b;c.YM.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),H&&H(e)};var U="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function W(e){function t(t){var n=I({},t);return delete n.ref,e(n,t.ref||null)}return t.$$typeof=U,t.render=t,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t}var V=function(e,t){return null==e?null:(0,c.bR)((0,c.bR)(e).map(t))},Y={map:V,forEach:V,count:function(e){return e?(0,c.bR)(e).length:0},only:function(e){var t=(0,c.bR)(e);if(1!==t.length)throw"Children.only";return t[0]},toArray:c.bR},z=c.YM.__e;c.YM.__e=function(e,t,n,r){if(e.then)for(var o,i=t;i=i.__;)if((o=i.__c)&&o.__c)return null==t.__e&&(t.__e=n.__e,t.__k=n.__k),o.__c(e,t);z(e,t,n,r)};var K=c.YM.unmount;function $(e,t,n){return e&&(e.__c&&e.__c.__H&&(e.__c.__H.__.forEach((function(e){"function"==typeof e.__c&&e.__c()})),e.__c.__H=null),null!=(e=I({},e)).__c&&(e.__c.__P===n&&(e.__c.__P=t),e.__c=null),e.__k=e.__k&&e.__k.map((function(e){return $(e,t,n)}))),e}function q(e,t,n){return e&&n&&(e.__v=null,e.__k=e.__k&&e.__k.map((function(e){return q(e,t,n)})),e.__c&&e.__c.__P===t&&(e.__e&&n.appendChild(e.__e),e.__c.__e=!0,e.__c.__P=n)),e}function X(){this.__u=0,this.t=null,this.__b=null}function J(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function Q(e){var t,n,r;function o(o){if(t||(t=e()).then((function(e){n=e.default||e}),(function(e){r=e})),r)throw r;if(!n)throw t;return(0,c.az)(n,o)}return o.displayName="Lazy",o.__f=!0,o}function G(){this.u=null,this.o=null}c.YM.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&32&e.__u&&(e.type=null),K&&K(e)},(X.prototype=new c.wA).__c=function(e,t){var n=t.__c,r=this;null==r.t&&(r.t=[]),r.t.push(n);var o=J(r.__v),i=!1,a=function(){i||(i=!0,n.__R=null,o?o(c):c())};n.__R=a;var c=function(){if(!--r.__u){if(r.state.__a){var e=r.state.__a;r.__v.__k[0]=q(e,e.__c.__P,e.__c.__O)}var t;for(r.setState({__a:r.__b=null});t=r.t.pop();)t.forceUpdate()}};r.__u++||32&t.__u||r.setState({__a:r.__b=r.__v.__k[0]}),e.then(a,a)},X.prototype.componentWillUnmount=function(){this.t=[]},X.prototype.render=function(e,t){if(this.__b){if(this.__v.__k){var n=document.createElement("div"),r=this.__v.__k[0].__c;this.__v.__k[0]=$(this.__b,n,r.__O=r.__P)}this.__b=null}var o=t.__a&&(0,c.az)(c.HY,null,e.fallback);return o&&(o.__u&=-33),[(0,c.az)(c.HY,null,t.__a?null:e.children),o]};var Z=function(e,t,n){if(++n[1]===n[0]&&e.o.delete(t),e.props.revealOrder&&("t"!==e.props.revealOrder[0]||!e.o.size))for(n=e.u;n;){for(;n.length>3;)n.pop()();if(n[1]<n[0])break;e.u=n=n[2]}};function ee(e){return this.getChildContext=function(){return e.context},e.children}function te(e){var t=this,n=e.i;t.componentWillUnmount=function(){(0,c.sY)(null,t.l),t.l=null,t.i=null},t.i&&t.i!==n&&t.componentWillUnmount(),t.l||(t.i=n,t.l={nodeType:1,parentNode:n,childNodes:[],appendChild:function(e){this.childNodes.push(e),t.i.appendChild(e)},insertBefore:function(e,n){this.childNodes.push(e),t.i.appendChild(e)},removeChild:function(e){this.childNodes.splice(this.childNodes.indexOf(e)>>>1,1),t.i.removeChild(e)}}),(0,c.sY)((0,c.az)(ee,{context:t.context},e.__v),t.l)}function ne(e,t){var n=(0,c.az)(te,{__v:e,i:t});return n.containerInfo=t,n}(G.prototype=new c.wA).__a=function(e){var t=this,n=J(t.__v),r=t.o.get(e);return r[0]++,function(o){var i=function(){t.props.revealOrder?(r.push(o),Z(t,e,r)):o()};n?n(i):i()}},G.prototype.render=function(e){this.u=null,this.o=new Map;var t=(0,c.bR)(e.children);e.revealOrder&&"b"===e.revealOrder[0]&&t.reverse();for(var n=t.length;n--;)this.o.set(t[n],this.u=[1,0,this.u]);return e.children},G.prototype.componentDidUpdate=G.prototype.componentDidMount=function(){var e=this;this.o.forEach((function(t,n){Z(e,n,t)}))};var re="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,oe=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image(!S)|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,ie=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,ae=/[A-Z0-9]/g,ce="undefined"!=typeof document,le=function(e){return("undefined"!=typeof Symbol&&"symbol"==typeof Symbol()?/fil|che|rad/:/fil|che|ra/).test(e)};function ue(e,t,n){return null==t.__k&&(t.textContent=""),(0,c.sY)(e,t),"function"==typeof n&&n(),e?e.__c:null}function se(e,t,n){return(0,c.ZB)(e,t),"function"==typeof n&&n(),e?e.__c:null}c.wA.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach((function(e){Object.defineProperty(c.wA.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})}));var fe=c.YM.event;function de(){}function pe(){return this.cancelBubble}function me(){return this.defaultPrevented}c.YM.event=function(e){return fe&&(e=fe(e)),e.persist=de,e.isPropagationStopped=pe,e.isDefaultPrevented=me,e.nativeEvent=e};var he,ve={enumerable:!1,configurable:!0,get:function(){return this.class}},ye=c.YM.vnode;c.YM.vnode=function(e){"string"==typeof e.type&&function(e){var t=e.props,n=e.type,r={};for(var o in t){var i=t[o];if(!("value"===o&&"defaultValue"in t&&null==i||ce&&"children"===o&&"noscript"===n||"class"===o||"className"===o)){var a=o.toLowerCase();"defaultValue"===o&&"value"in t&&null==t.value?o="value":"download"===o&&!0===i?i="":"ondoubleclick"===a?o="ondblclick":"onchange"!==a||"input"!==n&&"textarea"!==n||le(t.type)?"onfocus"===a?o="onfocusin":"onblur"===a?o="onfocusout":ie.test(o)?o=a:-1===n.indexOf("-")&&oe.test(o)?o=o.replace(ae,"-$&").toLowerCase():null===i&&(i=void 0):a=o="oninput","oninput"===a&&r[o=a]&&(o="oninputCapture"),r[o]=i}}"select"==n&&r.multiple&&Array.isArray(r.value)&&(r.value=(0,c.bR)(t.children).forEach((function(e){e.props.selected=-1!=r.value.indexOf(e.props.value)}))),"select"==n&&null!=r.defaultValue&&(r.value=(0,c.bR)(t.children).forEach((function(e){e.props.selected=r.multiple?-1!=r.defaultValue.indexOf(e.props.value):r.defaultValue==e.props.value}))),t.class&&!t.className?(r.class=t.class,Object.defineProperty(r,"className",ve)):(t.className&&!t.class||t.class&&t.className)&&(r.class=r.className=t.className),e.props=r}(e),e.$$typeof=re,ye&&ye(e)};var ge=c.YM.__r;c.YM.__r=function(e){ge&&ge(e),he=e.__c};var be=c.YM.diffed;c.YM.diffed=function(e){be&&be(e);var t=e.props,n=e.__e;null!=n&&"textarea"===e.type&&"value"in t&&t.value!==n.value&&(n.value=null==t.value?"":t.value),he=null};var _e={ReactCurrentDispatcher:{current:{readContext:function(e){return he.__n[e.__c].props.value}}}},we="17.0.2";function Ee(e){return c.az.bind(null,e)}function xe(e){return!!e&&e.$$typeof===re}function Oe(e){return xe(e)&&e.type===c.HY}function Se(e){return xe(e)?c.Tm.apply(null,arguments):e}function ke(e){return!!e.__k&&((0,c.sY)(null,e),!0)}function Ce(e){return e&&(e.base||1===e.nodeType&&e)||null}var je=function(e,t){return e(t)},Ne=function(e,t){return e(t)},De=c.HY;function Pe(e){e()}function Re(e){return e}function Ae(){return[!1,Pe]}var Te=_,Me=xe;function Ie(e,t){var n=t(),r=y({h:{__:n,v:t}}),o=r[0].h,i=r[1];return _((function(){o.__=n,o.v=t,Le(o)&&i({h:o})}),[e,n,t]),b((function(){return Le(o)&&i({h:o}),e((function(){Le(o)&&i({h:o})}))}),[e]),n}function Le(e){var t,n,r=e.v,o=e.__;try{var i=r();return!((t=o)===(n=i)&&(0!==t||1/t==1/n)||t!=t&&n!=n)}catch(e){return!0}}var Fe={useState:y,useId:j,useReducer:g,useEffect:b,useLayoutEffect:_,useInsertionEffect:Te,useTransition:Ae,useDeferredValue:Re,useSyncExternalStore:Ie,startTransition:Pe,useRef:w,useImperativeHandle:E,useMemo:x,useCallback:O,useContext:S,useDebugValue:k,version:"17.0.2",Children:Y,render:ue,hydrate:se,unmountComponentAtNode:ke,createPortal:ne,createElement:c.az,createContext:c.kr,createFactory:Ee,cloneElement:Se,createRef:c.Vf,Fragment:c.HY,isValidElement:xe,isElement:Me,isFragment:Oe,findDOMNode:Ce,Component:c.wA,PureComponent:F,memo:B,forwardRef:W,flushSync:Ne,unstable_batchedUpdates:je,StrictMode:De,Suspense:X,SuspenseList:G,lazy:Q,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:_e}},400:(e,t,n)=>{"use strict";n.d(t,{HY:()=>_,Tm:()=>V,Vf:()=>b,YM:()=>o,ZB:()=>W,az:()=>y,bR:()=>N,kr:()=>Y,sY:()=>U,wA:()=>w});var r,o,i,a,c,l,u,s,f={},d=[],p=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,m=Array.isArray;function h(e,t){for(var n in t)e[n]=t[n];return e}function v(e){var t=e.parentNode;t&&t.removeChild(e)}function y(e,t,n){var o,i,a,c={};for(a in t)"key"==a?o=t[a]:"ref"==a?i=t[a]:c[a]=t[a];if(arguments.length>2&&(c.children=arguments.length>3?r.call(arguments,2):n),"function"==typeof e&&null!=e.defaultProps)for(a in e.defaultProps)void 0===c[a]&&(c[a]=e.defaultProps[a]);return g(e,c,o,i,null)}function g(e,t,n,r,a){var c={type:e,props:t,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:null==a?++i:a,__i:-1,__u:0};return null==a&&null!=o.vnode&&o.vnode(c),c}function b(){return{current:null}}function _(e){return e.children}function w(e,t){this.props=e,this.context=t}function E(e,t){if(null==t)return e.__?E(e.__,e.__i+1):null;for(var n;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e)return n.__e;return"function"==typeof e.type?E(e):null}function x(e){var t,n;if(null!=(e=e.__)&&null!=e.__c){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e){e.__e=e.__c.base=n.__e;break}return x(e)}}function O(e){(!e.__d&&(e.__d=!0)&&a.push(e)&&!S.__r++||c!==o.debounceRendering)&&((c=o.debounceRendering)||l)(S)}function S(){var e,t,n,r,i,c,l,s,f;for(a.sort(u);e=a.shift();)e.__d&&(t=a.length,r=void 0,c=(i=(n=e).__v).__e,s=[],f=[],(l=n.__P)&&((r=h({},i)).__v=i.__v+1,o.vnode&&o.vnode(r),M(l,r,i,n.__n,void 0!==l.ownerSVGElement,32&i.__u?[c]:null,s,null==c?E(i):c,!!(32&i.__u),f),r.__.__k[r.__i]=r,I(s,r,f),r.__e!=c&&x(r)),a.length>t&&a.sort(u));S.__r=0}function k(e,t,n,r,o,i,a,c,l,u,s){var p,m,h,v,y,g=r&&r.__k||d,b=t.length;for(n.__d=l,C(n,t,g),l=n.__d,p=0;p<b;p++)null!=(h=n.__k[p])&&"boolean"!=typeof h&&"function"!=typeof h&&(m=-1===h.__i?f:g[h.__i]||f,h.__i=p,M(e,h,m,o,i,a,c,l,u,s),v=h.__e,h.ref&&m.ref!=h.ref&&(m.ref&&F(m.ref,null,h),s.push(h.ref,h.__c||v,h)),null==y&&null!=v&&(y=v),65536&h.__u||m.__k===h.__k?l=j(h,l,e):"function"==typeof h.type&&void 0!==h.__d?l=h.__d:v&&(l=v.nextSibling),h.__d=void 0,h.__u&=-196609);n.__d=l,n.__e=y}function C(e,t,n){var r,o,i,a,c,l=t.length,u=n.length,s=u,f=0;for(e.__k=[],r=0;r<l;r++)null!=(o=e.__k[r]=null==(o=t[r])||"boolean"==typeof o||"function"==typeof o?null:"string"==typeof o||"number"==typeof o||"bigint"==typeof o||o.constructor==String?g(null,o,null,null,o):m(o)?g(_,{children:o},null,null,null):void 0===o.constructor&&o.__b>0?g(o.type,o.props,o.key,o.ref?o.ref:null,o.__v):o)?(o.__=e,o.__b=e.__b+1,c=D(o,n,a=r+f,s),o.__i=c,i=null,-1!==c&&(s--,(i=n[c])&&(i.__u|=131072)),null==i||null===i.__v?(-1==c&&f--,"function"!=typeof o.type&&(o.__u|=65536)):c!==a&&(c===a+1?f++:c>a?s>l-a?f+=c-a:f--:f=c<a&&c==a-1?c-a:0,c!==r+f&&(o.__u|=65536))):(i=n[r])&&null==i.key&&i.__e&&(i.__e==e.__d&&(e.__d=E(i)),B(i,i,!1),n[r]=null,s--);if(s)for(r=0;r<u;r++)null!=(i=n[r])&&0==(131072&i.__u)&&(i.__e==e.__d&&(e.__d=E(i)),B(i,i))}function j(e,t,n){var r,o;if("function"==typeof e.type){for(r=e.__k,o=0;r&&o<r.length;o++)r[o]&&(r[o].__=e,t=j(r[o],t,n));return t}return e.__e!=t&&(n.insertBefore(e.__e,t||null),t=e.__e),t&&t.nextSibling}function N(e,t){return t=t||[],null==e||"boolean"==typeof e||(m(e)?e.some((function(e){N(e,t)})):t.push(e)),t}function D(e,t,n,r){var o=e.key,i=e.type,a=n-1,c=n+1,l=t[n];if(null===l||l&&o==l.key&&i===l.type)return n;if(r>(null!=l&&0==(131072&l.__u)?1:0))for(;a>=0||c<t.length;){if(a>=0){if((l=t[a])&&0==(131072&l.__u)&&o==l.key&&i===l.type)return a;a--}if(c<t.length){if((l=t[c])&&0==(131072&l.__u)&&o==l.key&&i===l.type)return c;c++}}return-1}function P(e,t,n){"-"===t[0]?e.setProperty(t,null==n?"":n):e[t]=null==n?"":"number"!=typeof n||p.test(t)?n:n+"px"}function R(e,t,n,r,o){var i;e:if("style"===t)if("string"==typeof n)e.style.cssText=n;else{if("string"==typeof r&&(e.style.cssText=r=""),r)for(t in r)n&&t in n||P(e.style,t,"");if(n)for(t in n)r&&n[t]===r[t]||P(e.style,t,n[t])}else if("o"===t[0]&&"n"===t[1])i=t!==(t=t.replace(/(PointerCapture)$|Capture$/,"$1")),t=t.toLowerCase()in e?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+i]=n,n?r?n.u=r.u:(n.u=Date.now(),e.addEventListener(t,i?T:A,i)):e.removeEventListener(t,i?T:A,i);else{if(o)t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("width"!==t&&"height"!==t&&"href"!==t&&"list"!==t&&"form"!==t&&"tabIndex"!==t&&"download"!==t&&"rowSpan"!==t&&"colSpan"!==t&&"role"!==t&&t in e)try{e[t]=null==n?"":n;break e}catch(e){}"function"==typeof n||(null==n||!1===n&&"-"!==t[4]?e.removeAttribute(t):e.setAttribute(t,n))}}function A(e){var t=this.l[e.type+!1];if(e.t){if(e.t<=t.u)return}else e.t=Date.now();return t(o.event?o.event(e):e)}function T(e){return this.l[e.type+!0](o.event?o.event(e):e)}function M(e,t,n,r,i,a,c,l,u,s){var f,d,p,v,y,g,b,E,x,O,S,C,j,N,D,P=t.type;if(void 0!==t.constructor)return null;128&n.__u&&(u=!!(32&n.__u),a=[l=t.__e=n.__e]),(f=o.__b)&&f(t);e:if("function"==typeof P)try{if(E=t.props,x=(f=P.contextType)&&r[f.__c],O=f?x?x.props.value:f.__:r,n.__c?b=(d=t.__c=n.__c).__=d.__E:("prototype"in P&&P.prototype.render?t.__c=d=new P(E,O):(t.__c=d=new w(E,O),d.constructor=P,d.render=H),x&&x.sub(d),d.props=E,d.state||(d.state={}),d.context=O,d.__n=r,p=d.__d=!0,d.__h=[],d._sb=[]),null==d.__s&&(d.__s=d.state),null!=P.getDerivedStateFromProps&&(d.__s==d.state&&(d.__s=h({},d.__s)),h(d.__s,P.getDerivedStateFromProps(E,d.__s))),v=d.props,y=d.state,d.__v=t,p)null==P.getDerivedStateFromProps&&null!=d.componentWillMount&&d.componentWillMount(),null!=d.componentDidMount&&d.__h.push(d.componentDidMount);else{if(null==P.getDerivedStateFromProps&&E!==v&&null!=d.componentWillReceiveProps&&d.componentWillReceiveProps(E,O),!d.__e&&(null!=d.shouldComponentUpdate&&!1===d.shouldComponentUpdate(E,d.__s,O)||t.__v===n.__v)){for(t.__v!==n.__v&&(d.props=E,d.state=d.__s,d.__d=!1),t.__e=n.__e,t.__k=n.__k,t.__k.forEach((function(e){e&&(e.__=t)})),S=0;S<d._sb.length;S++)d.__h.push(d._sb[S]);d._sb=[],d.__h.length&&c.push(d);break e}null!=d.componentWillUpdate&&d.componentWillUpdate(E,d.__s,O),null!=d.componentDidUpdate&&d.__h.push((function(){d.componentDidUpdate(v,y,g)}))}if(d.context=O,d.props=E,d.__P=e,d.__e=!1,C=o.__r,j=0,"prototype"in P&&P.prototype.render){for(d.state=d.__s,d.__d=!1,C&&C(t),f=d.render(d.props,d.state,d.context),N=0;N<d._sb.length;N++)d.__h.push(d._sb[N]);d._sb=[]}else do{d.__d=!1,C&&C(t),f=d.render(d.props,d.state,d.context),d.state=d.__s}while(d.__d&&++j<25);d.state=d.__s,null!=d.getChildContext&&(r=h(h({},r),d.getChildContext())),p||null==d.getSnapshotBeforeUpdate||(g=d.getSnapshotBeforeUpdate(v,y)),k(e,m(D=null!=f&&f.type===_&&null==f.key?f.props.children:f)?D:[D],t,n,r,i,a,c,l,u,s),d.base=t.__e,t.__u&=-161,d.__h.length&&c.push(d),b&&(d.__E=d.__=null)}catch(e){t.__v=null,u||null!=a?(t.__e=l,t.__u|=u?160:32,a[a.indexOf(l)]=null):(t.__e=n.__e,t.__k=n.__k),o.__e(e,t,n)}else null==a&&t.__v===n.__v?(t.__k=n.__k,t.__e=n.__e):t.__e=L(n.__e,t,n,r,i,a,c,u,s);(f=o.diffed)&&f(t)}function I(e,t,n){t.__d=void 0;for(var r=0;r<n.length;r++)F(n[r],n[++r],n[++r]);o.__c&&o.__c(t,e),e.some((function(t){try{e=t.__h,t.__h=[],e.some((function(e){e.call(t)}))}catch(e){o.__e(e,t.__v)}}))}function L(e,t,n,o,i,a,c,l,u){var s,d,p,h,y,g,b,_=n.props,w=t.props,x=t.type;if("svg"===x&&(i=!0),null!=a)for(s=0;s<a.length;s++)if((y=a[s])&&"setAttribute"in y==!!x&&(x?y.localName===x:3===y.nodeType)){e=y,a[s]=null;break}if(null==e){if(null===x)return document.createTextNode(w);e=i?document.createElementNS("http://www.w3.org/2000/svg",x):document.createElement(x,w.is&&w),a=null,l=!1}if(null===x)_===w||l&&e.data===w||(e.data=w);else{if(a=a&&r.call(e.childNodes),_=n.props||f,!l&&null!=a)for(_={},s=0;s<e.attributes.length;s++)_[(y=e.attributes[s]).name]=y.value;for(s in _)y=_[s],"children"==s||("dangerouslySetInnerHTML"==s?p=y:"key"===s||s in w||R(e,s,null,y,i));for(s in w)y=w[s],"children"==s?h=y:"dangerouslySetInnerHTML"==s?d=y:"value"==s?g=y:"checked"==s?b=y:"key"===s||l&&"function"!=typeof y||_[s]===y||R(e,s,y,_[s],i);if(d)l||p&&(d.__html===p.__html||d.__html===e.innerHTML)||(e.innerHTML=d.__html),t.__k=[];else if(p&&(e.innerHTML=""),k(e,m(h)?h:[h],t,n,o,i&&"foreignObject"!==x,a,c,a?a[0]:n.__k&&E(n,0),l,u),null!=a)for(s=a.length;s--;)null!=a[s]&&v(a[s]);l||(s="value",void 0!==g&&(g!==e[s]||"progress"===x&&!g||"option"===x&&g!==_[s])&&R(e,s,g,_[s],!1),s="checked",void 0!==b&&b!==e[s]&&R(e,s,b,_[s],!1))}return e}function F(e,t,n){try{"function"==typeof e?e(t):e.current=t}catch(e){o.__e(e,n)}}function B(e,t,n){var r,i;if(o.unmount&&o.unmount(e),(r=e.ref)&&(r.current&&r.current!==e.__e||F(r,null,t)),null!=(r=e.__c)){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(e){o.__e(e,t)}r.base=r.__P=null,e.__c=void 0}if(r=e.__k)for(i=0;i<r.length;i++)r[i]&&B(r[i],t,n||"function"!=typeof e.type);n||null==e.__e||v(e.__e),e.__=e.__e=e.__d=void 0}function H(e,t,n){return this.constructor(e,n)}function U(e,t,n){var i,a,c,l;o.__&&o.__(e,t),a=(i="function"==typeof n)?null:n&&n.__k||t.__k,c=[],l=[],M(t,e=(!i&&n||t).__k=y(_,null,[e]),a||f,f,void 0!==t.ownerSVGElement,!i&&n?[n]:a?null:t.firstChild?r.call(t.childNodes):null,c,!i&&n?n:a?a.__e:t.firstChild,i,l),I(c,e,l)}function W(e,t){U(e,t,W)}function V(e,t,n){var o,i,a,c,l=h({},e.props);for(a in e.type&&e.type.defaultProps&&(c=e.type.defaultProps),t)"key"==a?o=t[a]:"ref"==a?i=t[a]:l[a]=void 0===t[a]&&void 0!==c?c[a]:t[a];return arguments.length>2&&(l.children=arguments.length>3?r.call(arguments,2):n),g(e.type,l,o||e.key,i||e.ref,null)}function Y(e,t){var n={__c:t="__cC"+s++,__:e,Consumer:function(e,t){return e.children(t)},Provider:function(e){var n,r;return this.getChildContext||(n=[],(r={})[t]=this,this.getChildContext=function(){return r},this.shouldComponentUpdate=function(e){this.props.value!==e.value&&n.some((function(e){e.__e=!0,O(e)}))},this.sub=function(e){n.push(e);var t=e.componentWillUnmount;e.componentWillUnmount=function(){n.splice(n.indexOf(e),1),t&&t.call(e)}}),e.children}};return n.Provider.__=n.Consumer.contextType=n}r=d.slice,o={__e:function(e,t,n,r){for(var o,i,a;t=t.__;)if((o=t.__c)&&!o.__)try{if((i=o.constructor)&&null!=i.getDerivedStateFromError&&(o.setState(i.getDerivedStateFromError(e)),a=o.__d),null!=o.componentDidCatch&&(o.componentDidCatch(e,r||{}),a=o.__d),a)return o.__E=o}catch(t){e=t}throw e}},i=0,w.prototype.setState=function(e,t){var n;n=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=h({},this.state),"function"==typeof e&&(e=e(h({},n),this.props)),e&&h(n,e),null!=e&&this.__v&&(t&&this._sb.push(t),O(this))},w.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),O(this))},w.prototype.render=_,a=[],l="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,u=function(e,t){return e.__v.__b-t.__v.__b},S.__r=0,s=0},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 c=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 c.name="Invariant Violation",c}}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"},250:(e,t,n)=>{"use strict";var r=n(748),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,c=r.useLayoutEffect,l=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 s="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,s=r[1];return c((function(){o.value=n,o.getSnapshot=t,u(o)&&s({inst:o})}),[e,n,t]),a((function(){return u(o)&&s({inst:o}),e((function(){u(o)&&s({inst:o})}))}),[e]),l(n),n};t.useSyncExternalStore=void 0!==r.useSyncExternalStore?r.useSyncExternalStore:s},139:(e,t,n)=>{"use strict";var r=n(748),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,c=r.useRef,l=r.useEffect,u=r.useMemo,s=r.useDebugValue;t.useSyncExternalStoreWithSelector=function(e,t,n,r,o){var f=c(null);if(null===f.current){var d={hasValue:!1,value:null};f.current=d}else d=f.current;f=u((function(){function e(e){if(!l){if(l=!0,a=e,e=r(e),void 0!==o&&d.hasValue){var t=d.value;if(o(t,e))return c=t}return c=e}if(t=c,i(a,e))return t;var n=r(e);return void 0!==o&&o(t,n)?t:(a=e,c=n)}var a,c,l=!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,f[0],f[1]);return l((function(){d.hasValue=!0,d.value=p}),[p]),s(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),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{"use strict";var e=n(748);const t="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement;function r(e){const t=Object.prototype.toString.call(e);return"[object Window]"===t||"[object global]"===t}function o(e){return"nodeType"in e}function i(e){var t,n;return e?r(e)?e:o(e)&&null!=(t=null==(n=e.ownerDocument)?void 0:n.defaultView)?t:window:window}function a(e){const{Document:t}=i(e);return e instanceof t}function c(e){return!r(e)&&e instanceof i(e).HTMLElement}function l(e){return e instanceof i(e).SVGElement}function u(e){return e?r(e)?e.document:o(e)?a(e)?e:c(e)||l(e)?e.ownerDocument:document:document:document}const s=t?e.useLayoutEffect:e.useEffect;function f(t){const n=(0,e.useRef)(t);return s((()=>{n.current=t})),(0,e.useCallback)((function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return null==n.current?void 0:n.current(...t)}),[])}function d(t,n){void 0===n&&(n=[t]);const r=(0,e.useRef)(t);return s((()=>{r.current!==t&&(r.current=t)}),n),r}function p(t,n){const r=(0,e.useRef)();return(0,e.useMemo)((()=>{const e=t(r.current);return r.current=e,e}),[...n])}function m(t){const n=f(t),r=(0,e.useRef)(null),o=(0,e.useCallback)((e=>{e!==r.current&&(null==n||n(e,r.current)),r.current=e}),[]);return[r,o]}function h(t){const n=(0,e.useRef)();return(0,e.useEffect)((()=>{n.current=t}),[t]),n.current}let v={};function y(t,n){return(0,e.useMemo)((()=>{if(n)return n;const e=null==v[t]?0:v[t]+1;return v[t]=e,t+"-"+e}),[t,n])}function g(e){return function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return r.reduce(((t,n)=>{const r=Object.entries(n);for(const[n,o]of r){const r=t[n];null!=r&&(t[n]=r+e*o)}return t}),{...t})}}const b=g(1),_=g(-1);function w(e){if(!e)return!1;const{KeyboardEvent:t}=i(e.target);return t&&e instanceof t}function E(e){if(function(e){if(!e)return!1;const{TouchEvent:t}=i(e.target);return t&&e instanceof t}(e)){if(e.touches&&e.touches.length){const{clientX:t,clientY:n}=e.touches[0];return{x:t,y:n}}if(e.changedTouches&&e.changedTouches.length){const{clientX:t,clientY:n}=e.changedTouches[0];return{x:t,y:n}}}return function(e){return"clientX"in e&&"clientY"in e}(e)?{x:e.clientX,y:e.clientY}:null}const x="a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]";function O(e){return e.matches(x)?e:e.querySelector(x)}const S={display:"none"};function k(t){let{id:n,value:r}=t;return e.default.createElement("div",{id:n,style:S},r)}function C(t){let{id:n,announcement:r,ariaLiveType:o="assertive"}=t;return e.default.createElement("div",{id:n,style:{position:"fixed",width:1,height:1,margin:-1,border:0,padding:0,overflow:"hidden",clip:"rect(0 0 0 0)",clipPath:"inset(100%)",whiteSpace:"nowrap"},role:"status","aria-live":o,"aria-atomic":!0},r)}const j=(0,e.createContext)(null),N={draggable:"\n To pick up a draggable item, press the space bar.\n While dragging, use the arrow keys to move the item.\n Press space again to drop the item in its new position, or press escape to cancel.\n "},D={onDragStart(e){let{active:t}=e;return"Picked up draggable item "+t.id+"."},onDragOver(e){let{active:t,over:n}=e;return n?"Draggable item "+t.id+" was moved over droppable area "+n.id+".":"Draggable item "+t.id+" is no longer over a droppable area."},onDragEnd(e){let{active:t,over:n}=e;return n?"Draggable item "+t.id+" was dropped over droppable area "+n.id:"Draggable item "+t.id+" was dropped."},onDragCancel(e){let{active:t}=e;return"Dragging was cancelled. Draggable item "+t.id+" was dropped."}};function P(t){let{announcements:n=D,container:r,hiddenTextDescribedById:o,screenReaderInstructions:i=N}=t;const{announce:a,announcement:c}=function(){const[t,n]=(0,e.useState)("");return{announce:(0,e.useCallback)((e=>{null!=e&&n(e)}),[]),announcement:t}}(),l=y("DndLiveRegion"),[u,s]=(0,e.useState)(!1);if((0,e.useEffect)((()=>{s(!0)}),[]),function(t){const n=(0,e.useContext)(j);(0,e.useEffect)((()=>{if(!n)throw new Error("useDndMonitor must be used within a children of <DndContext>");return n(t)}),[t,n])}((0,e.useMemo)((()=>({onDragStart(e){let{active:t}=e;a(n.onDragStart({active:t}))},onDragMove(e){let{active:t,over:r}=e;n.onDragMove&&a(n.onDragMove({active:t,over:r}))},onDragOver(e){let{active:t,over:r}=e;a(n.onDragOver({active:t,over:r}))},onDragEnd(e){let{active:t,over:r}=e;a(n.onDragEnd({active:t,over:r}))},onDragCancel(e){let{active:t,over:r}=e;a(n.onDragCancel({active:t,over:r}))}})),[a,n])),!u)return null;const f=e.default.createElement(e.default.Fragment,null,e.default.createElement(k,{id:o,value:i.draggable}),e.default.createElement(C,{id:l,announcement:c}));return r?(0,e.createPortal)(f,r):f}var R;function A(){}function T(t,n){return(0,e.useMemo)((()=>({sensor:t,options:null!=n?n:{}})),[t,n])}!function(e){e.DragStart="dragStart",e.DragMove="dragMove",e.DragEnd="dragEnd",e.DragCancel="dragCancel",e.DragOver="dragOver",e.RegisterDroppable="registerDroppable",e.SetDroppableDisabled="setDroppableDisabled",e.UnregisterDroppable="unregisterDroppable"}(R||(R={}));const M=Object.freeze({x:0,y:0});function I(e,t){let{data:{value:n}}=e,{data:{value:r}}=t;return r-n}function L(e,t){const n=Math.max(t.top,e.top),r=Math.max(t.left,e.left),o=Math.min(t.left+t.width,e.left+e.width),i=Math.min(t.top+t.height,e.top+e.height),a=o-r,c=i-n;if(r<o&&n<i){const n=t.width*t.height,r=e.width*e.height,o=a*c;return Number((o/(n+r-o)).toFixed(4))}return 0}const F=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:r}=e;const o=[];for(const e of r){const{id:r}=e,i=n.get(r);if(i){const n=L(i,t);n>0&&o.push({id:r,data:{droppableContainer:e,value:n}})}}return o.sort(I)};function B(e,t){return e&&t?{x:e.left-t.left,y:e.top-t.top}:M}function H(e){return function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return r.reduce(((t,n)=>({...t,top:t.top+e*n.y,bottom:t.bottom+e*n.y,left:t.left+e*n.x,right:t.right+e*n.x})),{...t})}}const U=H(1);const W={ignoreTransform:!1};function V(e,t){void 0===t&&(t=W);let n=e.getBoundingClientRect();if(t.ignoreTransform){const{transform:t,transformOrigin:r}=i(e).getComputedStyle(e);t&&(n=function(e,t,n){const r=function(e){if(e.startsWith("matrix3d(")){const t=e.slice(9,-1).split(/, /);return{x:+t[12],y:+t[13],scaleX:+t[0],scaleY:+t[5]}}if(e.startsWith("matrix(")){const t=e.slice(7,-1).split(/, /);return{x:+t[4],y:+t[5],scaleX:+t[0],scaleY:+t[3]}}return null}(t);if(!r)return e;const{scaleX:o,scaleY:i,x:a,y:c}=r,l=e.left-a-(1-o)*parseFloat(n),u=e.top-c-(1-i)*parseFloat(n.slice(n.indexOf(" ")+1)),s=o?e.width/o:e.width,f=i?e.height/i:e.height;return{width:s,height:f,top:u,right:l+s,bottom:u+f,left:l}}(n,t,r))}const{top:r,left:o,width:a,height:c,bottom:l,right:u}=n;return{top:r,left:o,width:a,height:c,bottom:l,right:u}}function Y(e){return V(e,{ignoreTransform:!0})}function z(e,t){const n=[];return e?function r(o){if(null!=t&&n.length>=t)return n;if(!o)return n;if(a(o)&&null!=o.scrollingElement&&!n.includes(o.scrollingElement))return n.push(o.scrollingElement),n;if(!c(o)||l(o))return n;if(n.includes(o))return n;const u=i(e).getComputedStyle(o);return o!==e&&function(e,t){void 0===t&&(t=i(e).getComputedStyle(e));const n=/(auto|scroll|overlay)/;return["overflow","overflowX","overflowY"].some((e=>{const r=t[e];return"string"==typeof r&&n.test(r)}))}(o,u)&&n.push(o),function(e,t){return void 0===t&&(t=i(e).getComputedStyle(e)),"fixed"===t.position}(o,u)?n:r(o.parentNode)}(e):n}function K(e){const[t]=z(e,1);return null!=t?t:null}function $(e){return t&&e?r(e)?e:o(e)?a(e)||e===u(e).scrollingElement?window:c(e)?e:null:null:null}function q(e){return r(e)?e.scrollX:e.scrollLeft}function X(e){return r(e)?e.scrollY:e.scrollTop}function J(e){return{x:q(e),y:X(e)}}var Q;function G(e){return!(!t||!e)&&e===document.scrollingElement}function Z(e){const t={x:0,y:0},n=G(e)?{height:window.innerHeight,width:window.innerWidth}:{height:e.clientHeight,width:e.clientWidth},r={x:e.scrollWidth-n.width,y:e.scrollHeight-n.height};return{isTop:e.scrollTop<=t.y,isLeft:e.scrollLeft<=t.x,isBottom:e.scrollTop>=r.y,isRight:e.scrollLeft>=r.x,maxScroll:r,minScroll:t}}!function(e){e[e.Forward=1]="Forward",e[e.Backward=-1]="Backward"}(Q||(Q={}));const ee={x:.2,y:.2};function te(e,t,n,r,o){let{top:i,left:a,right:c,bottom:l}=n;void 0===r&&(r=10),void 0===o&&(o=ee);const{isTop:u,isBottom:s,isLeft:f,isRight:d}=Z(e),p={x:0,y:0},m={x:0,y:0},h=t.height*o.y,v=t.width*o.x;return!u&&i<=t.top+h?(p.y=Q.Backward,m.y=r*Math.abs((t.top+h-i)/h)):!s&&l>=t.bottom-h&&(p.y=Q.Forward,m.y=r*Math.abs((t.bottom-h-l)/h)),!d&&c>=t.right-v?(p.x=Q.Forward,m.x=r*Math.abs((t.right-v-c)/v)):!f&&a<=t.left+v&&(p.x=Q.Backward,m.x=r*Math.abs((t.left+v-a)/v)),{direction:p,speed:m}}function ne(e){if(e===document.scrollingElement){const{innerWidth:e,innerHeight:t}=window;return{top:0,left:0,right:e,bottom:t,width:e,height:t}}const{top:t,left:n,right:r,bottom:o}=e.getBoundingClientRect();return{top:t,left:n,right:r,bottom:o,width:e.clientWidth,height:e.clientHeight}}function re(e){return e.reduce(((e,t)=>b(e,J(t))),M)}const oe=[["x",["left","right"],function(e){return e.reduce(((e,t)=>e+q(t)),0)}],["y",["top","bottom"],function(e){return e.reduce(((e,t)=>e+X(t)),0)}]];class ie{constructor(e,t){this.rect=void 0,this.width=void 0,this.height=void 0,this.top=void 0,this.bottom=void 0,this.right=void 0,this.left=void 0;const n=z(t),r=re(n);this.rect={...e},this.width=e.width,this.height=e.height;for(const[e,t,o]of oe)for(const i of t)Object.defineProperty(this,i,{get:()=>{const t=o(n),a=r[e]-t;return this.rect[i]+a},enumerable:!0});Object.defineProperty(this,"rect",{enumerable:!1})}}class ae{constructor(e){this.target=void 0,this.listeners=[],this.removeAll=()=>{this.listeners.forEach((e=>{var t;return null==(t=this.target)?void 0:t.removeEventListener(...e)}))},this.target=e}add(e,t,n){var r;null==(r=this.target)||r.addEventListener(e,t,n),this.listeners.push([e,t,n])}}function ce(e,t){const n=Math.abs(e.x),r=Math.abs(e.y);return"number"==typeof t?Math.sqrt(n**2+r**2)>t:"x"in t&&"y"in t?n>t.x&&r>t.y:"x"in t?n>t.x:"y"in t&&r>t.y}var le,ue;function se(e){e.preventDefault()}function fe(e){e.stopPropagation()}!function(e){e.Click="click",e.DragStart="dragstart",e.Keydown="keydown",e.ContextMenu="contextmenu",e.Resize="resize",e.SelectionChange="selectionchange",e.VisibilityChange="visibilitychange"}(le||(le={})),function(e){e.Space="Space",e.Down="ArrowDown",e.Right="ArrowRight",e.Left="ArrowLeft",e.Up="ArrowUp",e.Esc="Escape",e.Enter="Enter"}(ue||(ue={}));const de={start:[ue.Space,ue.Enter],cancel:[ue.Esc],end:[ue.Space,ue.Enter]},pe=(e,t)=>{let{currentCoordinates:n}=t;switch(e.code){case ue.Right:return{...n,x:n.x+25};case ue.Left:return{...n,x:n.x-25};case ue.Down:return{...n,y:n.y+25};case ue.Up:return{...n,y:n.y-25}}};class me{constructor(e){this.props=void 0,this.autoScrollEnabled=!1,this.referenceCoordinates=void 0,this.listeners=void 0,this.windowListeners=void 0,this.props=e;const{event:{target:t}}=e;this.props=e,this.listeners=new ae(u(t)),this.windowListeners=new ae(i(t)),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleCancel=this.handleCancel.bind(this),this.attach()}attach(){this.handleStart(),this.windowListeners.add(le.Resize,this.handleCancel),this.windowListeners.add(le.VisibilityChange,this.handleCancel),setTimeout((()=>this.listeners.add(le.Keydown,this.handleKeyDown)))}handleStart(){const{activeNode:e,onStart:t}=this.props,n=e.node.current;n&&function(e,t){if(void 0===t&&(t=V),!e)return;const{top:n,left:r,bottom:o,right:i}=t(e);K(e)&&(o<=0||i<=0||n>=window.innerHeight||r>=window.innerWidth)&&e.scrollIntoView({block:"center",inline:"center"})}(n),t(M)}handleKeyDown(e){if(w(e)){const{active:t,context:n,options:r}=this.props,{keyboardCodes:o=de,coordinateGetter:i=pe,scrollBehavior:a="smooth"}=r,{code:c}=e;if(o.end.includes(c))return void this.handleEnd(e);if(o.cancel.includes(c))return void this.handleCancel(e);const{collisionRect:l}=n.current,u=l?{x:l.left,y:l.top}:M;this.referenceCoordinates||(this.referenceCoordinates=u);const s=i(e,{active:t,context:n.current,currentCoordinates:u});if(s){const t=_(s,u),r={x:0,y:0},{scrollableAncestors:o}=n.current;for(const n of o){const o=e.code,{isTop:i,isRight:c,isLeft:l,isBottom:u,maxScroll:f,minScroll:d}=Z(n),p=ne(n),m={x:Math.min(o===ue.Right?p.right-p.width/2:p.right,Math.max(o===ue.Right?p.left:p.left+p.width/2,s.x)),y:Math.min(o===ue.Down?p.bottom-p.height/2:p.bottom,Math.max(o===ue.Down?p.top:p.top+p.height/2,s.y))},h=o===ue.Right&&!c||o===ue.Left&&!l,v=o===ue.Down&&!u||o===ue.Up&&!i;if(h&&m.x!==s.x){const e=n.scrollLeft+t.x,i=o===ue.Right&&e<=f.x||o===ue.Left&&e>=d.x;if(i&&!t.y)return void n.scrollTo({left:e,behavior:a});r.x=i?n.scrollLeft-e:o===ue.Right?n.scrollLeft-f.x:n.scrollLeft-d.x,r.x&&n.scrollBy({left:-r.x,behavior:a});break}if(v&&m.y!==s.y){const e=n.scrollTop+t.y,i=o===ue.Down&&e<=f.y||o===ue.Up&&e>=d.y;if(i&&!t.x)return void n.scrollTo({top:e,behavior:a});r.y=i?n.scrollTop-e:o===ue.Down?n.scrollTop-f.y:n.scrollTop-d.y,r.y&&n.scrollBy({top:-r.y,behavior:a});break}}this.handleMove(e,b(_(s,this.referenceCoordinates),r))}}}handleMove(e,t){const{onMove:n}=this.props;e.preventDefault(),n(t)}handleEnd(e){const{onEnd:t}=this.props;e.preventDefault(),this.detach(),t()}handleCancel(e){const{onCancel:t}=this.props;e.preventDefault(),this.detach(),t()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll()}}function he(e){return Boolean(e&&"distance"in e)}function ve(e){return Boolean(e&&"delay"in e)}me.activators=[{eventName:"onKeyDown",handler:(e,t,n)=>{let{keyboardCodes:r=de,onActivation:o}=t,{active:i}=n;const{code:a}=e.nativeEvent;if(r.start.includes(a)){const t=i.activatorNode.current;return!(t&&e.target!==t||(e.preventDefault(),null==o||o({event:e.nativeEvent}),0))}return!1}}];class ye{constructor(e,t,n){var r;void 0===n&&(n=function(e){const{EventTarget:t}=i(e);return e instanceof t?e:u(e)}(e.event.target)),this.props=void 0,this.events=void 0,this.autoScrollEnabled=!0,this.document=void 0,this.activated=!1,this.initialCoordinates=void 0,this.timeoutId=null,this.listeners=void 0,this.documentListeners=void 0,this.windowListeners=void 0,this.props=e,this.events=t;const{event:o}=e,{target:a}=o;this.props=e,this.events=t,this.document=u(a),this.documentListeners=new ae(this.document),this.listeners=new ae(n),this.windowListeners=new ae(i(a)),this.initialCoordinates=null!=(r=E(o))?r:M,this.handleStart=this.handleStart.bind(this),this.handleMove=this.handleMove.bind(this),this.handleEnd=this.handleEnd.bind(this),this.handleCancel=this.handleCancel.bind(this),this.handleKeydown=this.handleKeydown.bind(this),this.removeTextSelection=this.removeTextSelection.bind(this),this.attach()}attach(){const{events:e,props:{options:{activationConstraint:t,bypassActivationConstraint:n}}}=this;if(this.listeners.add(e.move.name,this.handleMove,{passive:!1}),this.listeners.add(e.end.name,this.handleEnd),this.windowListeners.add(le.Resize,this.handleCancel),this.windowListeners.add(le.DragStart,se),this.windowListeners.add(le.VisibilityChange,this.handleCancel),this.windowListeners.add(le.ContextMenu,se),this.documentListeners.add(le.Keydown,this.handleKeydown),t){if(null!=n&&n({event:this.props.event,activeNode:this.props.activeNode,options:this.props.options}))return this.handleStart();if(ve(t))return void(this.timeoutId=setTimeout(this.handleStart,t.delay));if(he(t))return}this.handleStart()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll(),setTimeout(this.documentListeners.removeAll,50),null!==this.timeoutId&&(clearTimeout(this.timeoutId),this.timeoutId=null)}handleStart(){const{initialCoordinates:e}=this,{onStart:t}=this.props;e&&(this.activated=!0,this.documentListeners.add(le.Click,fe,{capture:!0}),this.removeTextSelection(),this.documentListeners.add(le.SelectionChange,this.removeTextSelection),t(e))}handleMove(e){var t;const{activated:n,initialCoordinates:r,props:o}=this,{onMove:i,options:{activationConstraint:a}}=o;if(!r)return;const c=null!=(t=E(e))?t:M,l=_(r,c);if(!n&&a){if(he(a)){if(null!=a.tolerance&&ce(l,a.tolerance))return this.handleCancel();if(ce(l,a.distance))return this.handleStart()}return ve(a)&&ce(l,a.tolerance)?this.handleCancel():void 0}e.cancelable&&e.preventDefault(),i(c)}handleEnd(){const{onEnd:e}=this.props;this.detach(),e()}handleCancel(){const{onCancel:e}=this.props;this.detach(),e()}handleKeydown(e){e.code===ue.Esc&&this.handleCancel()}removeTextSelection(){var e;null==(e=this.document.getSelection())||e.removeAllRanges()}}const ge={move:{name:"pointermove"},end:{name:"pointerup"}};class be extends ye{constructor(e){const{event:t}=e,n=u(t.target);super(e,ge,n)}}be.activators=[{eventName:"onPointerDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;return!(!n.isPrimary||0!==n.button||(null==r||r({event:n}),0))}}];const _e={move:{name:"mousemove"},end:{name:"mouseup"}};var we;!function(e){e[e.RightClick=2]="RightClick"}(we||(we={}));class Ee extends ye{constructor(e){super(e,_e,u(e.event.target))}}Ee.activators=[{eventName:"onMouseDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;return n.button!==we.RightClick&&(null==r||r({event:n}),!0)}}];const xe={move:{name:"touchmove"},end:{name:"touchend"}};class Oe extends ye{constructor(e){super(e,xe)}static setup(){return window.addEventListener(xe.move.name,e,{capture:!1,passive:!1}),function(){window.removeEventListener(xe.move.name,e)};function e(){}}}var Se,ke;Oe.activators=[{eventName:"onTouchStart",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;const{touches:o}=n;return!(o.length>1||(null==r||r({event:n}),0))}}],function(e){e[e.Pointer=0]="Pointer",e[e.DraggableRect=1]="DraggableRect"}(Se||(Se={})),function(e){e[e.TreeOrder=0]="TreeOrder",e[e.ReversedTreeOrder=1]="ReversedTreeOrder"}(ke||(ke={}));const Ce={x:{[Q.Backward]:!1,[Q.Forward]:!1},y:{[Q.Backward]:!1,[Q.Forward]:!1}};var je,Ne;!function(e){e[e.Always=0]="Always",e[e.BeforeDragging=1]="BeforeDragging",e[e.WhileDragging=2]="WhileDragging"}(je||(je={})),function(e){e.Optimized="optimized"}(Ne||(Ne={}));const De=new Map;function Pe(e,t){return p((n=>e?n||("function"==typeof t?t(e):e):null),[t,e])}function Re(t){let{callback:n,disabled:r}=t;const o=f(n),i=(0,e.useMemo)((()=>{if(r||"undefined"==typeof window||void 0===window.ResizeObserver)return;const{ResizeObserver:e}=window;return new e(o)}),[r]);return(0,e.useEffect)((()=>()=>null==i?void 0:i.disconnect()),[i]),i}function Ae(e){return new ie(V(e),e)}function Te(t,n,r){void 0===n&&(n=Ae);const[o,i]=(0,e.useReducer)((function(e){if(!t)return null;var o;if(!1===t.isConnected)return null!=(o=null!=e?e:r)?o:null;const i=n(t);return JSON.stringify(e)===JSON.stringify(i)?e:i}),null),a=function(t){let{callback:n,disabled:r}=t;const o=f(n),i=(0,e.useMemo)((()=>{if(r||"undefined"==typeof window||void 0===window.MutationObserver)return;const{MutationObserver:e}=window;return new e(o)}),[o,r]);return(0,e.useEffect)((()=>()=>null==i?void 0:i.disconnect()),[i]),i}({callback(e){if(t)for(const n of e){const{type:e,target:r}=n;if("childList"===e&&r instanceof HTMLElement&&r.contains(t)){i();break}}}}),c=Re({callback:i});return s((()=>{i(),t?(null==c||c.observe(t),null==a||a.observe(document.body,{childList:!0,subtree:!0})):(null==c||c.disconnect(),null==a||a.disconnect())}),[t]),o}const Me=[];function Ie(t,n){void 0===n&&(n=[]);const r=(0,e.useRef)(null);return(0,e.useEffect)((()=>{r.current=null}),n),(0,e.useEffect)((()=>{const e=t!==M;e&&!r.current&&(r.current=t),!e&&r.current&&(r.current=null)}),[t]),r.current?_(t,r.current):M}function Le(t){return(0,e.useMemo)((()=>t?function(e){const t=e.innerWidth,n=e.innerHeight;return{top:0,left:0,right:t,bottom:n,width:t,height:n}}(t):null),[t])}const Fe=[];const Be=[{sensor:be,options:{}},{sensor:me,options:{}}],He={current:{}},Ue={draggable:{measure:Y},droppable:{measure:Y,strategy:je.WhileDragging,frequency:Ne.Optimized},dragOverlay:{measure:V}};class We extends Map{get(e){var t;return null!=e&&null!=(t=super.get(e))?t:void 0}toArray(){return Array.from(this.values())}getEnabled(){return this.toArray().filter((e=>{let{disabled:t}=e;return!t}))}getNodeFor(e){var t,n;return null!=(t=null==(n=this.get(e))?void 0:n.node.current)?t:void 0}}const Ve={activatorEvent:null,active:null,activeNode:null,activeNodeRect:null,collisions:null,containerNodeRect:null,draggableNodes:new Map,droppableRects:new Map,droppableContainers:new We,over:null,dragOverlay:{nodeRef:{current:null},rect:null,setRef:A},scrollableAncestors:[],scrollableAncestorRects:[],measuringConfiguration:Ue,measureDroppableContainers:A,windowRect:null,measuringScheduled:!1},Ye={activatorEvent:null,activators:[],active:null,activeNodeRect:null,ariaDescribedById:{draggable:""},dispatch:A,draggableNodes:new Map,over:null,measureDroppableContainers:A},ze=(0,e.createContext)(Ye),Ke=(0,e.createContext)(Ve);function $e(){return{draggable:{active:null,initialCoordinates:{x:0,y:0},nodes:new Map,translate:{x:0,y:0}},droppable:{containers:new We}}}function qe(e,t){switch(t.type){case R.DragStart:return{...e,draggable:{...e.draggable,initialCoordinates:t.initialCoordinates,active:t.active}};case R.DragMove:return e.draggable.active?{...e,draggable:{...e.draggable,translate:{x:t.coordinates.x-e.draggable.initialCoordinates.x,y:t.coordinates.y-e.draggable.initialCoordinates.y}}}:e;case R.DragEnd:case R.DragCancel:return{...e,draggable:{...e.draggable,active:null,initialCoordinates:{x:0,y:0},translate:{x:0,y:0}}};case R.RegisterDroppable:{const{element:n}=t,{id:r}=n,o=new We(e.droppable.containers);return o.set(r,n),{...e,droppable:{...e.droppable,containers:o}}}case R.SetDroppableDisabled:{const{id:n,key:r,disabled:o}=t,i=e.droppable.containers.get(n);if(!i||r!==i.key)return e;const a=new We(e.droppable.containers);return a.set(n,{...i,disabled:o}),{...e,droppable:{...e.droppable,containers:a}}}case R.UnregisterDroppable:{const{id:n,key:r}=t,o=e.droppable.containers.get(n);if(!o||r!==o.key)return e;const i=new We(e.droppable.containers);return i.delete(n),{...e,droppable:{...e.droppable,containers:i}}}default:return e}}function Xe(t){let{disabled:n}=t;const{active:r,activatorEvent:o,draggableNodes:i}=(0,e.useContext)(ze),a=h(o),c=h(null==r?void 0:r.id);return(0,e.useEffect)((()=>{if(!n&&!o&&a&&null!=c){if(!w(a))return;if(document.activeElement===a.target)return;const e=i.get(c);if(!e)return;const{activatorNode:t,node:n}=e;if(!t.current&&!n.current)return;requestAnimationFrame((()=>{for(const e of[t.current,n.current]){if(!e)continue;const t=O(e);if(t){t.focus();break}}}))}}),[o,n,i,c,a]),null}const Je=(0,e.createContext)({...M,scaleX:1,scaleY:1});var Qe;!function(e){e[e.Uninitialized=0]="Uninitialized",e[e.Initializing=1]="Initializing",e[e.Initialized=2]="Initialized"}(Qe||(Qe={}));const Ge=(0,e.memo)((function(n){var r,o,a,l;let{id:u,accessibility:f,autoScroll:v=!0,children:g,sensors:_=Be,collisionDetection:w=F,measuring:x,modifiers:O,...S}=n;const k=(0,e.useReducer)(qe,void 0,$e),[C,N]=k,[D,A]=function(){const[t]=(0,e.useState)((()=>new Set)),n=(0,e.useCallback)((e=>(t.add(e),()=>t.delete(e))),[t]);return[(0,e.useCallback)((e=>{let{type:n,event:r}=e;t.forEach((e=>{var t;return null==(t=e[n])?void 0:t.call(e,r)}))}),[t]),n]}(),[T,I]=(0,e.useState)(Qe.Uninitialized),L=T===Qe.Initialized,{draggable:{active:H,nodes:W,translate:Y},droppable:{containers:q}}=C,X=H?W.get(H):null,Z=(0,e.useRef)({initial:null,translated:null}),ee=(0,e.useMemo)((()=>{var e;return null!=H?{id:H,data:null!=(e=null==X?void 0:X.data)?e:He,rect:Z}:null}),[H,X]),ne=(0,e.useRef)(null),[oe,ae]=(0,e.useState)(null),[ce,le]=(0,e.useState)(null),ue=d(S,Object.values(S)),se=y("DndDescribedBy",u),fe=(0,e.useMemo)((()=>q.getEnabled()),[q]),de=(_e=x,(0,e.useMemo)((()=>({draggable:{...Ue.draggable,...null==_e?void 0:_e.draggable},droppable:{...Ue.droppable,...null==_e?void 0:_e.droppable},dragOverlay:{...Ue.dragOverlay,...null==_e?void 0:_e.dragOverlay}})),[null==_e?void 0:_e.draggable,null==_e?void 0:_e.droppable,null==_e?void 0:_e.dragOverlay])),{droppableRects:pe,measureDroppableContainers:me,measuringScheduled:he}=function(t,n){let{dragging:r,dependencies:o,config:i}=n;const[a,c]=(0,e.useState)(null),{frequency:l,measure:u,strategy:s}=i,f=(0,e.useRef)(t),m=function(){switch(s){case je.Always:return!1;case je.BeforeDragging:return r;default:return!r}}(),h=d(m),v=(0,e.useCallback)((function(e){void 0===e&&(e=[]),h.current||c((t=>null===t?e:t.concat(e.filter((e=>!t.includes(e))))))}),[h]),y=(0,e.useRef)(null),g=p((e=>{if(m&&!r)return De;if(!e||e===De||f.current!==t||null!=a){const e=new Map;for(let n of t){if(!n)continue;if(a&&a.length>0&&!a.includes(n.id)&&n.rect.current){e.set(n.id,n.rect.current);continue}const t=n.node.current,r=t?new ie(u(t),t):null;n.rect.current=r,r&&e.set(n.id,r)}return e}return e}),[t,a,r,m,u]);return(0,e.useEffect)((()=>{f.current=t}),[t]),(0,e.useEffect)((()=>{m||v()}),[r,m]),(0,e.useEffect)((()=>{a&&a.length>0&&c(null)}),[JSON.stringify(a)]),(0,e.useEffect)((()=>{m||"number"!=typeof l||null!==y.current||(y.current=setTimeout((()=>{v(),y.current=null}),l))}),[l,m,v,...o]),{droppableRects:g,measureDroppableContainers:v,measuringScheduled:null!=a}}(fe,{dragging:L,dependencies:[Y.x,Y.y],config:de.droppable}),ve=function(e,t){const n=null!==t?e.get(t):void 0,r=n?n.node.current:null;return p((e=>{var n;return null===t?null:null!=(n=null!=r?r:e)?n:null}),[r,t])}(W,H),ye=(0,e.useMemo)((()=>ce?E(ce):null),[ce]),ge=function(){const e=!1===(null==oe?void 0:oe.autoScrollEnabled),t="object"==typeof v?!1===v.enabled:!1===v,n=L&&!e&&!t;return"object"==typeof v?{...v,enabled:n}:{enabled:n}}(),be=function(e,t){return Pe(e,t)}(ve,de.draggable.measure);var _e;!function(t){let{activeNode:n,measure:r,initialRect:o,config:i=!0}=t;const a=(0,e.useRef)(!1),{x:c,y:l}="boolean"==typeof i?{x:i,y:i}:i;s((()=>{if(!c&&!l||!n)return void(a.current=!1);if(a.current||!o)return;const e=null==n?void 0:n.node.current;if(!e||!1===e.isConnected)return;const t=B(r(e),o);if(c||(t.x=0),l||(t.y=0),a.current=!0,Math.abs(t.x)>0||Math.abs(t.y)>0){const n=K(e);n&&n.scrollBy({top:t.y,left:t.x})}}),[n,c,l,o,r])}({activeNode:H?W.get(H):null,config:ge.layoutShiftCompensation,initialRect:be,measure:de.draggable.measure});const we=Te(ve,de.draggable.measure,be),Ee=Te(ve?ve.parentElement:null),xe=(0,e.useRef)({activatorEvent:null,active:null,activeNode:ve,collisionRect:null,collisions:null,droppableRects:pe,draggableNodes:W,draggingNode:null,draggingNodeRect:null,droppableContainers:q,over:null,scrollableAncestors:[],scrollAdjustedTranslate:null}),Oe=q.getNodeFor(null==(r=xe.current.over)?void 0:r.id),Ne=function(t){let{measure:n}=t;const[r,o]=(0,e.useState)(null),i=Re({callback:(0,e.useCallback)((e=>{for(const{target:t}of e)if(c(t)){o((e=>{const r=n(t);return e?{...e,width:r.width,height:r.height}:r}));break}}),[n])}),a=(0,e.useCallback)((e=>{const t=function(e){if(!e)return null;if(e.children.length>1)return e;const t=e.children[0];return c(t)?t:e}(e);null==i||i.disconnect(),t&&(null==i||i.observe(t)),o(t?n(t):null)}),[n,i]),[l,u]=m(a);return(0,e.useMemo)((()=>({nodeRef:l,rect:r,setRef:u})),[r,l,u])}({measure:de.dragOverlay.measure}),Ae=null!=(o=Ne.nodeRef.current)?o:ve,We=L?null!=(a=Ne.rect)?a:we:null,Ve=Boolean(Ne.nodeRef.current&&Ne.rect),Ye=B(Ge=Ve?null:we,Pe(Ge));var Ge;const Ze=Le(Ae?i(Ae):null),et=function(t){const n=(0,e.useRef)(t),r=p((e=>t?e&&e!==Me&&t&&n.current&&t.parentNode===n.current.parentNode?e:z(t):Me),[t]);return(0,e.useEffect)((()=>{n.current=t}),[t]),r}(L?null!=Oe?Oe:ve:null),tt=function(t,n){void 0===n&&(n=V);const[r]=t,o=Le(r?i(r):null),[a,c]=(0,e.useReducer)((function(){return t.length?t.map((e=>G(e)?o:new ie(n(e),e))):Fe}),Fe),l=Re({callback:c});return t.length>0&&a===Fe&&c(),s((()=>{t.length?t.forEach((e=>null==l?void 0:l.observe(e))):(null==l||l.disconnect(),c())}),[t]),a}(et),nt=function(e,t){let{transform:n,...r}=t;return null!=e&&e.length?e.reduce(((e,t)=>t({transform:e,...r})),n):n}(O,{transform:{x:Y.x-Ye.x,y:Y.y-Ye.y,scaleX:1,scaleY:1},activatorEvent:ce,active:ee,activeNodeRect:we,containerNodeRect:Ee,draggingNodeRect:We,over:xe.current.over,overlayNodeRect:Ne.rect,scrollableAncestors:et,scrollableAncestorRects:tt,windowRect:Ze}),rt=ye?b(ye,Y):null,ot=function(t){const[n,r]=(0,e.useState)(null),o=(0,e.useRef)(t),i=(0,e.useCallback)((e=>{const t=$(e.target);t&&r((e=>e?(e.set(t,J(t)),new Map(e)):null))}),[]);return(0,e.useEffect)((()=>{const e=o.current;if(t!==e){n(e);const a=t.map((e=>{const t=$(e);return t?(t.addEventListener("scroll",i,{passive:!0}),[t,J(t)]):null})).filter((e=>null!=e));r(a.length?new Map(a):null),o.current=t}return()=>{n(t),n(e)};function n(e){e.forEach((e=>{const t=$(e);null==t||t.removeEventListener("scroll",i)}))}}),[i,t]),(0,e.useMemo)((()=>t.length?n?Array.from(n.values()).reduce(((e,t)=>b(e,t)),M):re(t):M),[t,n])}(et),it=Ie(ot),at=Ie(ot,[we]),ct=b(nt,it),lt=We?U(We,nt):null,ut=ee&&lt?w({active:ee,collisionRect:lt,droppableRects:pe,droppableContainers:fe,pointerCoordinates:rt}):null,st=function(e,t){if(!e||0===e.length)return null;const[n]=e;return n.id}(ut),[ft,dt]=(0,e.useState)(null),pt=function(e,t,n){return{...e,scaleX:t&&n?t.width/n.width:1,scaleY:t&&n?t.height/n.height:1}}(Ve?nt:b(nt,at),null!=(l=null==ft?void 0:ft.rect)?l:null,we),mt=(0,e.useCallback)(((t,n)=>{let{sensor:r,options:o}=n;if(null==ne.current)return;const i=W.get(ne.current);if(!i)return;const a=t.nativeEvent,c=new r({active:ne.current,activeNode:i,event:a,options:o,context:xe,onStart(t){const n=ne.current;if(null==n)return;const r=W.get(n);if(!r)return;const{onDragStart:o}=ue.current,i={active:{id:n,data:r.data,rect:Z}};(0,e.unstable_batchedUpdates)((()=>{null==o||o(i),I(Qe.Initializing),N({type:R.DragStart,initialCoordinates:t,active:n}),D({type:"onDragStart",event:i})}))},onMove(e){N({type:R.DragMove,coordinates:e})},onEnd:l(R.DragEnd),onCancel:l(R.DragCancel)});function l(t){return async function(){const{active:n,collisions:r,over:o,scrollAdjustedTranslate:i}=xe.current;let c=null;if(n&&i){const{cancelDrop:e}=ue.current;c={activatorEvent:a,active:n,collisions:r,delta:i,over:o},t===R.DragEnd&&"function"==typeof e&&await Promise.resolve(e(c))&&(t=R.DragCancel)}ne.current=null,(0,e.unstable_batchedUpdates)((()=>{N({type:t}),I(Qe.Uninitialized),dt(null),ae(null),le(null);const e=t===R.DragEnd?"onDragEnd":"onDragCancel";if(c){const t=ue.current[e];null==t||t(c),D({type:e,event:c})}}))}}(0,e.unstable_batchedUpdates)((()=>{ae(c),le(t.nativeEvent)}))}),[W]),ht=(0,e.useCallback)(((e,t)=>(n,r)=>{const o=n.nativeEvent,i=W.get(r);if(null!==ne.current||!i||o.dndKit||o.defaultPrevented)return;const a={active:i};!0===e(n,t.options,a)&&(o.dndKit={capturedBy:t.sensor},ne.current=r,mt(n,t))}),[W,mt]),vt=function(t,n){return(0,e.useMemo)((()=>t.reduce(((e,t)=>{const{sensor:r}=t;return[...e,...r.activators.map((e=>({eventName:e.eventName,handler:n(e.handler,t)})))]}),[])),[t,n])}(_,ht);!function(n){(0,e.useEffect)((()=>{if(!t)return;const e=n.map((e=>{let{sensor:t}=e;return null==t.setup?void 0:t.setup()}));return()=>{for(const t of e)null==t||t()}}),n.map((e=>{let{sensor:t}=e;return t})))}(_),s((()=>{we&&T===Qe.Initializing&&I(Qe.Initialized)}),[we,T]),(0,e.useEffect)((()=>{const{onDragMove:t}=ue.current,{active:n,activatorEvent:r,collisions:o,over:i}=xe.current;if(!n||!r)return;const a={active:n,activatorEvent:r,collisions:o,delta:{x:ct.x,y:ct.y},over:i};(0,e.unstable_batchedUpdates)((()=>{null==t||t(a),D({type:"onDragMove",event:a})}))}),[ct.x,ct.y]),(0,e.useEffect)((()=>{const{active:t,activatorEvent:n,collisions:r,droppableContainers:o,scrollAdjustedTranslate:i}=xe.current;if(!t||null==ne.current||!n||!i)return;const{onDragOver:a}=ue.current,c=o.get(st),l=c&&c.rect.current?{id:c.id,rect:c.rect.current,data:c.data,disabled:c.disabled}:null,u={active:t,activatorEvent:n,collisions:r,delta:{x:i.x,y:i.y},over:l};(0,e.unstable_batchedUpdates)((()=>{dt(l),null==a||a(u),D({type:"onDragOver",event:u})}))}),[st]),s((()=>{xe.current={activatorEvent:ce,active:ee,activeNode:ve,collisionRect:lt,collisions:ut,droppableRects:pe,draggableNodes:W,draggingNode:Ae,draggingNodeRect:We,droppableContainers:q,over:ft,scrollableAncestors:et,scrollAdjustedTranslate:ct},Z.current={initial:We,translated:lt}}),[ee,ve,ut,lt,W,Ae,We,pe,q,ft,et,ct]),function(t){let{acceleration:n,activator:r=Se.Pointer,canScroll:o,draggingRect:i,enabled:a,interval:c=5,order:l=ke.TreeOrder,pointerCoordinates:u,scrollableAncestors:s,scrollableAncestorRects:f,delta:d,threshold:m}=t;const v=function(e){let{delta:t,disabled:n}=e;const r=h(t);return p((e=>{if(n||!r||!e)return Ce;const o=Math.sign(t.x-r.x),i=Math.sign(t.y-r.y);return{x:{[Q.Backward]:e.x[Q.Backward]||-1===o,[Q.Forward]:e.x[Q.Forward]||1===o},y:{[Q.Backward]:e.y[Q.Backward]||-1===i,[Q.Forward]:e.y[Q.Forward]||1===i}}}),[n,t,r])}({delta:d,disabled:!a}),[y,g]=function(){const t=(0,e.useRef)(null);return[(0,e.useCallback)(((e,n)=>{t.current=setInterval(e,n)}),[]),(0,e.useCallback)((()=>{null!==t.current&&(clearInterval(t.current),t.current=null)}),[])]}(),b=(0,e.useRef)({x:0,y:0}),_=(0,e.useRef)({x:0,y:0}),w=(0,e.useMemo)((()=>{switch(r){case Se.Pointer:return u?{top:u.y,bottom:u.y,left:u.x,right:u.x}:null;case Se.DraggableRect:return i}}),[r,i,u]),E=(0,e.useRef)(null),x=(0,e.useCallback)((()=>{const e=E.current;if(!e)return;const t=b.current.x*_.current.x,n=b.current.y*_.current.y;e.scrollBy(t,n)}),[]),O=(0,e.useMemo)((()=>l===ke.TreeOrder?[...s].reverse():s),[l,s]);(0,e.useEffect)((()=>{if(a&&s.length&&w){for(const e of O){if(!1===(null==o?void 0:o(e)))continue;const t=s.indexOf(e),r=f[t];if(!r)continue;const{direction:i,speed:a}=te(e,r,w,n,m);for(const e of["x","y"])v[e][i[e]]||(a[e]=0,i[e]=0);if(a.x>0||a.y>0)return g(),E.current=e,y(x,c),b.current=a,void(_.current=i)}b.current={x:0,y:0},_.current={x:0,y:0},g()}else g()}),[n,x,o,g,a,c,JSON.stringify(w),JSON.stringify(v),y,s,O,f,JSON.stringify(m)])}({...ge,delta:Y,draggingRect:lt,pointerCoordinates:rt,scrollableAncestors:et,scrollableAncestorRects:tt});const yt=(0,e.useMemo)((()=>({active:ee,activeNode:ve,activeNodeRect:we,activatorEvent:ce,collisions:ut,containerNodeRect:Ee,dragOverlay:Ne,draggableNodes:W,droppableContainers:q,droppableRects:pe,over:ft,measureDroppableContainers:me,scrollableAncestors:et,scrollableAncestorRects:tt,measuringConfiguration:de,measuringScheduled:he,windowRect:Ze})),[ee,ve,we,ce,ut,Ee,Ne,W,q,pe,ft,me,et,tt,de,he,Ze]),gt=(0,e.useMemo)((()=>({activatorEvent:ce,activators:vt,active:ee,activeNodeRect:we,ariaDescribedById:{draggable:se},dispatch:N,draggableNodes:W,over:ft,measureDroppableContainers:me})),[ce,vt,ee,we,N,se,W,ft,me]);return e.default.createElement(j.Provider,{value:A},e.default.createElement(ze.Provider,{value:gt},e.default.createElement(Ke.Provider,{value:yt},e.default.createElement(Je.Provider,{value:pt},g)),e.default.createElement(Xe,{disabled:!1===(null==f?void 0:f.restoreFocus)})),e.default.createElement(P,{...f,hiddenTextDescribedById:se}))})),Ze=(0,e.createContext)(null),et="button",tt="Droppable";function nt(t){let{id:n,data:r,disabled:o=!1,attributes:i}=t;const a=y(tt),{activators:c,activatorEvent:l,active:u,activeNodeRect:f,ariaDescribedById:p,draggableNodes:h,over:v}=(0,e.useContext)(ze),{role:g=et,roleDescription:b="draggable",tabIndex:_=0}=null!=i?i:{},w=(null==u?void 0:u.id)===n,E=(0,e.useContext)(w?Je:Ze),[x,O]=m(),[S,k]=m(),C=function(t,n){return(0,e.useMemo)((()=>t.reduce(((e,t)=>{let{eventName:r,handler:o}=t;return e[r]=e=>{o(e,n)},e}),{})),[t,n])}(c,n),j=d(r);return s((()=>(h.set(n,{id:n,key:a,node:x,activatorNode:S,data:j}),()=>{const e=h.get(n);e&&e.key===a&&h.delete(n)})),[h,n]),{active:u,activatorEvent:l,activeNodeRect:f,attributes:(0,e.useMemo)((()=>({role:g,tabIndex:_,"aria-disabled":o,"aria-pressed":!(!w||g!==et)||void 0,"aria-roledescription":b,"aria-describedby":p.draggable})),[o,g,_,w,b,p.draggable]),isDragging:w,listeners:o?void 0:C,node:x,over:v,setNodeRef:O,setActivatorNodeRef:k,transform:E}}const rt="Droppable",ot={timeout:25};function it(t){let{data:n,disabled:r=!1,id:o,resizeObserverConfig:i}=t;const a=y(rt),{active:c,dispatch:l,over:u,measureDroppableContainers:f}=(0,e.useContext)(ze),p=(0,e.useRef)({disabled:r}),h=(0,e.useRef)(!1),v=(0,e.useRef)(null),g=(0,e.useRef)(null),{disabled:b,updateMeasurementsFor:_,timeout:w}={...ot,...i},E=d(null!=_?_:o),x=Re({callback:(0,e.useCallback)((()=>{h.current?(null!=g.current&&clearTimeout(g.current),g.current=setTimeout((()=>{f(Array.isArray(E.current)?E.current:[E.current]),g.current=null}),w)):h.current=!0}),[w]),disabled:b||!c}),O=(0,e.useCallback)(((e,t)=>{x&&(t&&(x.unobserve(t),h.current=!1),e&&x.observe(e))}),[x]),[S,k]=m(O),C=d(n);return(0,e.useEffect)((()=>{x&&S.current&&(x.disconnect(),h.current=!1,x.observe(S.current))}),[S,x]),s((()=>(l({type:R.RegisterDroppable,element:{id:o,key:a,disabled:r,node:S,rect:v,data:C}}),()=>l({type:R.UnregisterDroppable,key:a,id:o}))),[o]),(0,e.useEffect)((()=>{r!==p.current.disabled&&(l({type:R.SetDroppableDisabled,id:o,key:a,disabled:r}),p.current.disabled=r)}),[o,a,r,l]),{active:c,rect:v,isOver:(null==u?void 0:u.id)===o,node:S,over:u,setNodeRef:k}}var at=n(798);const ct=e=>{let t;const n=new Set,r=(e,r)=>{const o="function"==typeof e?e(t):e;if(!Object.is(o,t)){const e=t;t=(null!=r?r:"object"!=typeof o||null===o)?o:Object.assign({},t,o),n.forEach((n=>n(t,e)))}},o=()=>t,i={setState:r,getState:o,subscribe:e=>(n.add(e),()=>n.delete(e)),destroy:()=>{console.warn("[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."),n.clear()}};return t=e(r,o,i),i},{useDebugValue:lt}=e.default,{useSyncExternalStoreWithSelector:ut}=at,st=(e,t)=>{const n=(e=>e?ct(e):ct)(e),r=(e,r=t)=>function(e,t=e.getState,n){const r=ut(e.subscribe,e.getState,e.getServerState||e.getState,t,n);return lt(r),r}(n,e,r);return Object.assign(r,n),r};function ft(e){return ft="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},ft(e)}function dt(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 pt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?dt(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"!==ft(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!==ft(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===ft(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)):dt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var mt=window.shop_data,ht=Array.from(mt.columns.backlog.categories.map((function(e){return e.itemIds})).flat()),vt=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"),pt(pt({},e),a)):pt(pt({},e),a)},yt=function(e,t){var n=t.isDraggingOver;return pt(pt({},e),{backgroundColor:n?"#f2f2f2":"#f9f9f9",border:n?"1px dashed #ccc":"0"})};function gt(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}}var bt=function(e,t){var n=t-e;return Array.from({length:n},(function(t,n){return e+n}))},_t=function(e,t){return e.length===t.length&&e.every((function(e,n){return e.id===t[n].id}))},wt=function(e,t){return e.length===t.length&&e.every((function(e,n){return e===t[n]}))};function Et(e,t){return!e&&!t||!(!e!=!t)&&Object.getPrototypeOf(e)===Object.getPrototypeOf(t)&&(Object.getPrototypeOf(e)!==Object.getPrototypeOf([])||!!Object.keys(e).length==!!Object.keys(t).length)}var xt=n(962);function Ot(e,t){return e.contains?e.contains(t):e.compareDocumentPosition?e===t||!!(16&e.compareDocumentPosition(t)):void 0}var St=n(697),kt=n.n(St);function Ct(){const t=(0,e.useRef)(!0),n=(0,e.useRef)((()=>t.current));return(0,e.useEffect)((()=>(t.current=!0,()=>{t.current=!1})),[]),n.current}function jt(t){const n=function(t){const n=(0,e.useRef)(t);return n.current=t,n}(t);(0,e.useEffect)((()=>()=>n.current()),[])}const Nt=2**31-1;function Dt(e,t,n){const r=n-Date.now();e.current=r<=Nt?setTimeout(t,r):setTimeout((()=>Dt(e,t,n)),Nt)}function Pt(){const t=Ct(),n=(0,e.useRef)();return jt((()=>clearTimeout(n.current))),(0,e.useMemo)((()=>{const e=()=>clearTimeout(n.current);return{set:function(r,o=0){t()&&(e(),o<=Nt?n.current=setTimeout(r,o):Dt(n,r,Date.now()+o))},clear:e}}),[])}var Rt=n(473),At=n.n(Rt);function Tt(){return Tt=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},Tt.apply(this,arguments)}function Mt(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}function It(e){return"default"+e.charAt(0).toUpperCase()+e.substr(1)}function Lt(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:String(t)}function Ft(t,n,r){var o=(0,e.useRef)(void 0!==t),i=(0,e.useState)(n),a=i[0],c=i[1],l=void 0!==t,u=o.current;return o.current=l,!l&&u&&a!==n&&c(n),[l?t:a,(0,e.useCallback)((function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];r&&r.apply(void 0,[e].concat(n)),c(e)}),[r])]}n(143);const Bt=e=>e&&"function"!=typeof e?t=>{e.current=t}:e,Ht=function(t,n){return(0,e.useMemo)((()=>function(e,t){const n=Bt(e),r=Bt(t);return e=>{n&&n(e),r&&r(e)}}(t,n)),[t,n])};var Ut=n(184),Wt=n.n(Ut);function Vt(){return(0,e.useState)(null)}var Yt=Object.prototype.hasOwnProperty;function zt(e,t,n){for(n of e.keys())if(Kt(n,t))return n}function Kt(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--&&Kt(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=zt(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=zt(t,o)))return!1;if(!Kt(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(Yt.call(e,n)&&++r&&!Yt.call(t,n))return!1;if(!(n in t)||!Kt(e[n],t[n]))return!1}return Object.keys(t).length===r}}return e!=e&&t!=t}function $t(e){return e.split("-")[0]}function qt(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Xt(e){return e instanceof qt(e).Element||e instanceof Element}function Jt(e){return e instanceof qt(e).HTMLElement||e instanceof HTMLElement}function Qt(e){return"undefined"!=typeof ShadowRoot&&(e instanceof qt(e).ShadowRoot||e instanceof ShadowRoot)}var Gt=Math.max,Zt=Math.min,en=Math.round;function tn(){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 nn(){return!/^((?!chrome|android).)*safari/i.test(tn())}function rn(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);var r=e.getBoundingClientRect(),o=1,i=1;t&&Jt(e)&&(o=e.offsetWidth>0&&en(r.width)/e.offsetWidth||1,i=e.offsetHeight>0&&en(r.height)/e.offsetHeight||1);var a=(Xt(e)?qt(e):window).visualViewport,c=!nn()&&n,l=(r.left+(c&&a?a.offsetLeft:0))/o,u=(r.top+(c&&a?a.offsetTop:0))/i,s=r.width/o,f=r.height/i;return{width:s,height:f,top:u,right:l+s,bottom:u+f,left:l,x:l,y:u}}function on(e){var t=rn(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 an(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&Qt(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function cn(e){return e?(e.nodeName||"").toLowerCase():null}function ln(e){return qt(e).getComputedStyle(e)}function un(e){return["table","td","th"].indexOf(cn(e))>=0}function sn(e){return((Xt(e)?e.ownerDocument:e.document)||window.document).documentElement}function fn(e){return"html"===cn(e)?e:e.assignedSlot||e.parentNode||(Qt(e)?e.host:null)||sn(e)}function dn(e){return Jt(e)&&"fixed"!==ln(e).position?e.offsetParent:null}function pn(e){for(var t=qt(e),n=dn(e);n&&un(n)&&"static"===ln(n).position;)n=dn(n);return n&&("html"===cn(n)||"body"===cn(n)&&"static"===ln(n).position)?t:n||function(e){var t=/firefox/i.test(tn());if(/Trident/i.test(tn())&&Jt(e)&&"fixed"===ln(e).position)return null;var n=fn(e);for(Qt(n)&&(n=n.host);Jt(n)&&["html","body"].indexOf(cn(n))<0;){var r=ln(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 mn(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function hn(e,t,n){return Gt(e,Zt(t,n))}function vn(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function yn(e,t){return t.reduce((function(t,n){return t[n]=e,t}),{})}var gn="top",bn="bottom",_n="right",wn="left",En="auto",xn=[gn,bn,_n,wn],On="start",Sn="end",kn="viewport",Cn="popper",jn=xn.reduce((function(e,t){return e.concat([t+"-"+On,t+"-"+Sn])}),[]),Nn=[].concat(xn,[En]).reduce((function(e,t){return e.concat([t,t+"-"+On,t+"-"+Sn])}),[]),Dn=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];const Pn={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,c=$t(n.placement),l=mn(c),u=[wn,_n].indexOf(c)>=0?"height":"width";if(i&&a){var s=function(e,t){return vn("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:yn(e,xn))}(o.padding,n),f=on(i),d="y"===l?gn:wn,p="y"===l?bn:_n,m=n.rects.reference[u]+n.rects.reference[l]-a[l]-n.rects.popper[u],h=a[l]-n.rects.reference[l],v=pn(i),y=v?"y"===l?v.clientHeight||0:v.clientWidth||0:0,g=m/2-h/2,b=s[d],_=y-f[u]-s[p],w=y/2-f[u]/2+g,E=hn(b,w,_),x=l;n.modifiersData[r]=((t={})[x]=E,t.centerOffset=E-w,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)))&&an(t.elements.popper,r)&&(t.elements.arrow=r)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Rn(e){return e.split("-")[1]}var An={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Tn(e){var t,n=e.popper,r=e.popperRect,o=e.placement,i=e.variation,a=e.offsets,c=e.position,l=e.gpuAcceleration,u=e.adaptive,s=e.roundOffsets,f=e.isFixed,d=a.x,p=void 0===d?0:d,m=a.y,h=void 0===m?0:m,v="function"==typeof s?s({x:p,y:h}):{x:p,y:h};p=v.x,h=v.y;var y=a.hasOwnProperty("x"),g=a.hasOwnProperty("y"),b=wn,_=gn,w=window;if(u){var E=pn(n),x="clientHeight",O="clientWidth";E===qt(n)&&"static"!==ln(E=sn(n)).position&&"absolute"===c&&(x="scrollHeight",O="scrollWidth"),(o===gn||(o===wn||o===_n)&&i===Sn)&&(_=bn,h-=(f&&E===w&&w.visualViewport?w.visualViewport.height:E[x])-r.height,h*=l?1:-1),o!==wn&&(o!==gn&&o!==bn||i!==Sn)||(b=_n,p-=(f&&E===w&&w.visualViewport?w.visualViewport.width:E[O])-r.width,p*=l?1:-1)}var S,k=Object.assign({position:c},u&&An),C=!0===s?function(e,t){var n=e.x,r=e.y,o=t.devicePixelRatio||1;return{x:en(n*o)/o||0,y:en(r*o)/o||0}}({x:p,y:h},qt(n)):{x:p,y:h};return p=C.x,h=C.y,l?Object.assign({},k,((S={})[_]=g?"0":"",S[b]=y?"0":"",S.transform=(w.devicePixelRatio||1)<=1?"translate("+p+"px, "+h+"px)":"translate3d("+p+"px, "+h+"px, 0)",S)):Object.assign({},k,((t={})[_]=g?h+"px":"",t[b]=y?p+"px":"",t.transform="",t))}const Mn={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,c=n.roundOffsets,l=void 0===c||c,u={placement:$t(t.placement),variation:Rn(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,Tn(Object.assign({},u,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:l})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,Tn(Object.assign({},u,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}};var In={passive:!0};const Ln={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,c=void 0===a||a,l=qt(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&u.forEach((function(e){e.addEventListener("scroll",n.update,In)})),c&&l.addEventListener("resize",n.update,In),function(){i&&u.forEach((function(e){e.removeEventListener("scroll",n.update,In)})),c&&l.removeEventListener("resize",n.update,In)}},data:{}};var Fn={left:"right",right:"left",bottom:"top",top:"bottom"};function Bn(e){return e.replace(/left|right|bottom|top/g,(function(e){return Fn[e]}))}var Hn={start:"end",end:"start"};function Un(e){return e.replace(/start|end/g,(function(e){return Hn[e]}))}function Wn(e){var t=qt(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function Vn(e){return rn(sn(e)).left+Wn(e).scrollLeft}function Yn(e){var t=ln(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function zn(e){return["html","body","#document"].indexOf(cn(e))>=0?e.ownerDocument.body:Jt(e)&&Yn(e)?e:zn(fn(e))}function Kn(e,t){var n;void 0===t&&(t=[]);var r=zn(e),o=r===(null==(n=e.ownerDocument)?void 0:n.body),i=qt(r),a=o?[i].concat(i.visualViewport||[],Yn(r)?r:[]):r,c=t.concat(a);return o?c:c.concat(Kn(fn(a)))}function $n(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function qn(e,t,n){return t===kn?$n(function(e,t){var n=qt(e),r=sn(e),o=n.visualViewport,i=r.clientWidth,a=r.clientHeight,c=0,l=0;if(o){i=o.width,a=o.height;var u=nn();(u||!u&&"fixed"===t)&&(c=o.offsetLeft,l=o.offsetTop)}return{width:i,height:a,x:c+Vn(e),y:l}}(e,n)):Xt(t)?function(e,t){var n=rn(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):$n(function(e){var t,n=sn(e),r=Wn(e),o=null==(t=e.ownerDocument)?void 0:t.body,i=Gt(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),a=Gt(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),c=-r.scrollLeft+Vn(e),l=-r.scrollTop;return"rtl"===ln(o||n).direction&&(c+=Gt(n.clientWidth,o?o.clientWidth:0)-i),{width:i,height:a,x:c,y:l}}(sn(e)))}function Xn(e){var t,n=e.reference,r=e.element,o=e.placement,i=o?$t(o):null,a=o?Rn(o):null,c=n.x+n.width/2-r.width/2,l=n.y+n.height/2-r.height/2;switch(i){case gn:t={x:c,y:n.y-r.height};break;case bn:t={x:c,y:n.y+n.height};break;case _n:t={x:n.x+n.width,y:l};break;case wn:t={x:n.x-r.width,y:l};break;default:t={x:n.x,y:n.y}}var u=i?mn(i):null;if(null!=u){var s="y"===u?"height":"width";switch(a){case On:t[u]=t[u]-(n[s]/2-r[s]/2);break;case Sn:t[u]=t[u]+(n[s]/2-r[s]/2)}}return t}function Jn(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,c=n.boundary,l=void 0===c?"clippingParents":c,u=n.rootBoundary,s=void 0===u?kn:u,f=n.elementContext,d=void 0===f?Cn:f,p=n.altBoundary,m=void 0!==p&&p,h=n.padding,v=void 0===h?0:h,y=vn("number"!=typeof v?v:yn(v,xn)),g=d===Cn?"reference":Cn,b=e.rects.popper,_=e.elements[m?g:d],w=function(e,t,n,r){var o="clippingParents"===t?function(e){var t=Kn(fn(e)),n=["absolute","fixed"].indexOf(ln(e).position)>=0&&Jt(e)?pn(e):e;return Xt(n)?t.filter((function(e){return Xt(e)&&an(e,n)&&"body"!==cn(e)})):[]}(e):[].concat(t),i=[].concat(o,[n]),a=i[0],c=i.reduce((function(t,n){var o=qn(e,n,r);return t.top=Gt(o.top,t.top),t.right=Zt(o.right,t.right),t.bottom=Zt(o.bottom,t.bottom),t.left=Gt(o.left,t.left),t}),qn(e,a,r));return c.width=c.right-c.left,c.height=c.bottom-c.top,c.x=c.left,c.y=c.top,c}(Xt(_)?_:_.contextElement||sn(e.elements.popper),l,s,a),E=rn(e.elements.reference),x=Xn({reference:E,element:b,strategy:"absolute",placement:o}),O=$n(Object.assign({},b,x)),S=d===Cn?O:E,k={top:w.top-S.top+y.top,bottom:S.bottom-w.bottom+y.bottom,left:w.left-S.left+y.left,right:S.right-w.right+y.right},C=e.modifiersData.offset;if(d===Cn&&C){var j=C[o];Object.keys(k).forEach((function(e){var t=[_n,bn].indexOf(e)>=0?1:-1,n=[gn,bn].indexOf(e)>=0?"y":"x";k[e]+=j[n]*t}))}return k}const Qn={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,c=void 0===a||a,l=n.fallbackPlacements,u=n.padding,s=n.boundary,f=n.rootBoundary,d=n.altBoundary,p=n.flipVariations,m=void 0===p||p,h=n.allowedAutoPlacements,v=t.options.placement,y=$t(v),g=l||(y!==v&&m?function(e){if($t(e)===En)return[];var t=Bn(e);return[Un(e),t,Un(t)]}(v):[Bn(v)]),b=[v].concat(g).reduce((function(e,n){return e.concat($t(n)===En?function(e,t){void 0===t&&(t={});var n=t,r=n.placement,o=n.boundary,i=n.rootBoundary,a=n.padding,c=n.flipVariations,l=n.allowedAutoPlacements,u=void 0===l?Nn:l,s=Rn(r),f=s?c?jn:jn.filter((function(e){return Rn(e)===s})):xn,d=f.filter((function(e){return u.indexOf(e)>=0}));0===d.length&&(d=f);var p=d.reduce((function(t,n){return t[n]=Jn(e,{placement:n,boundary:o,rootBoundary:i,padding:a})[$t(n)],t}),{});return Object.keys(p).sort((function(e,t){return p[e]-p[t]}))}(t,{placement:n,boundary:s,rootBoundary:f,padding:u,flipVariations:m,allowedAutoPlacements:h}):n)}),[]),_=t.rects.reference,w=t.rects.popper,E=new Map,x=!0,O=b[0],S=0;S<b.length;S++){var k=b[S],C=$t(k),j=Rn(k)===On,N=[gn,bn].indexOf(C)>=0,D=N?"width":"height",P=Jn(t,{placement:k,boundary:s,rootBoundary:f,altBoundary:d,padding:u}),R=N?j?_n:wn:j?bn:gn;_[D]>w[D]&&(R=Bn(R));var A=Bn(R),T=[];if(i&&T.push(P[C]<=0),c&&T.push(P[R]<=0,P[A]<=0),T.every((function(e){return e}))){O=k,x=!1;break}E.set(k,T)}if(x)for(var M=function(e){var t=b.find((function(t){var n=E.get(t);if(n)return n.slice(0,e).every((function(e){return e}))}));if(t)return O=t,"break"},I=m?3:1;I>0&&"break"!==M(I);I--);t.placement!==O&&(t.modifiersData[r]._skip=!0,t.placement=O,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function Gn(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 Zn(e){return[gn,_n,bn,wn].some((function(t){return e[t]>=0}))}const er={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=Jn(t,{elementContext:"reference"}),c=Jn(t,{altBoundary:!0}),l=Gn(a,r),u=Gn(c,o,i),s=Zn(l),f=Zn(u);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:u,isReferenceHidden:s,hasPopperEscaped:f},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":s,"data-popper-escaped":f})}},tr={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=Nn.reduce((function(e,n){return e[n]=function(e,t,n){var r=$t(e),o=[wn,gn].indexOf(r)>=0?-1:1,i="function"==typeof n?n(Object.assign({},t,{placement:e})):n,a=i[0],c=i[1];return a=a||0,c=(c||0)*o,[wn,_n].indexOf(r)>=0?{x:c,y:a}:{x:a,y:c}}(n,t.rects,i),e}),{}),c=a[t.placement],l=c.x,u=c.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=u),t.modifiersData[r]=a}},nr={name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=Xn({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}},rr={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,c=void 0!==a&&a,l=n.boundary,u=n.rootBoundary,s=n.altBoundary,f=n.padding,d=n.tether,p=void 0===d||d,m=n.tetherOffset,h=void 0===m?0:m,v=Jn(t,{boundary:l,rootBoundary:u,padding:f,altBoundary:s}),y=$t(t.placement),g=Rn(t.placement),b=!g,_=mn(y),w="x"===_?"y":"x",E=t.modifiersData.popperOffsets,x=t.rects.reference,O=t.rects.popper,S="function"==typeof h?h(Object.assign({},t.rects,{placement:t.placement})):h,k="number"==typeof S?{mainAxis:S,altAxis:S}:Object.assign({mainAxis:0,altAxis:0},S),C=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,j={x:0,y:0};if(E){if(i){var N,D="y"===_?gn:wn,P="y"===_?bn:_n,R="y"===_?"height":"width",A=E[_],T=A+v[D],M=A-v[P],I=p?-O[R]/2:0,L=g===On?x[R]:O[R],F=g===On?-O[R]:-x[R],B=t.elements.arrow,H=p&&B?on(B):{width:0,height:0},U=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},W=U[D],V=U[P],Y=hn(0,x[R],H[R]),z=b?x[R]/2-I-Y-W-k.mainAxis:L-Y-W-k.mainAxis,K=b?-x[R]/2+I+Y+V+k.mainAxis:F+Y+V+k.mainAxis,$=t.elements.arrow&&pn(t.elements.arrow),q=$?"y"===_?$.clientTop||0:$.clientLeft||0:0,X=null!=(N=null==C?void 0:C[_])?N:0,J=A+K-X,Q=hn(p?Zt(T,A+z-X-q):T,A,p?Gt(M,J):M);E[_]=Q,j[_]=Q-A}if(c){var G,Z="x"===_?gn:wn,ee="x"===_?bn:_n,te=E[w],ne="y"===w?"height":"width",re=te+v[Z],oe=te-v[ee],ie=-1!==[gn,wn].indexOf(y),ae=null!=(G=null==C?void 0:C[w])?G:0,ce=ie?re:te-x[ne]-O[ne]-ae+k.altAxis,le=ie?te+x[ne]+O[ne]-ae-k.altAxis:oe,ue=p&&ie?function(e,t,n){var r=hn(e,t,n);return r>n?n:r}(ce,te,le):hn(p?ce:re,te,p?le:oe);E[w]=ue,j[w]=ue-te}t.modifiersData[r]=j}},requiresIfExists:["offset"]};function or(e,t,n){void 0===n&&(n=!1);var r,o,i=Jt(t),a=Jt(t)&&function(e){var t=e.getBoundingClientRect(),n=en(t.width)/e.offsetWidth||1,r=en(t.height)/e.offsetHeight||1;return 1!==n||1!==r}(t),c=sn(t),l=rn(e,a,n),u={scrollLeft:0,scrollTop:0},s={x:0,y:0};return(i||!i&&!n)&&(("body"!==cn(t)||Yn(c))&&(u=(r=t)!==qt(r)&&Jt(r)?{scrollLeft:(o=r).scrollLeft,scrollTop:o.scrollTop}:Wn(r)),Jt(t)?((s=rn(t,!0)).x+=t.clientLeft,s.y+=t.clientTop):c&&(s.x=Vn(c))),{x:l.left+u.scrollLeft-s.x,y:l.top+u.scrollTop-s.y,width:l.width,height:l.height}}function ir(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 ar={placement:"bottom",modifiers:[],strategy:"absolute"};function cr(){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 lr=function(e){void 0===e&&(e={});var t=e,n=t.defaultModifiers,r=void 0===n?[]:n,o=t.defaultOptions,i=void 0===o?ar:o;return function(e,t,n){void 0===n&&(n=i);var o,a,c={placement:"bottom",orderedModifiers:[],options:Object.assign({},ar,i),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},l=[],u=!1,s={state:c,setOptions:function(n){var o="function"==typeof n?n(c.options):n;f(),c.options=Object.assign({},i,c.options,o),c.scrollParents={reference:Xt(e)?Kn(e):e.contextElement?Kn(e.contextElement):[],popper:Kn(t)};var a,u,d=function(e){var t=ir(e);return Dn.reduce((function(e,n){return e.concat(t.filter((function(e){return e.phase===n})))}),[])}((a=[].concat(r,c.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 c.orderedModifiers=d.filter((function(e){return e.enabled})),c.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:c,name:t,instance:s,options:r});l.push(i||function(){})}})),s.update()},forceUpdate:function(){if(!u){var e=c.elements,t=e.reference,n=e.popper;if(cr(t,n)){c.rects={reference:or(t,pn(n),"fixed"===c.options.strategy),popper:on(n)},c.reset=!1,c.placement=c.options.placement,c.orderedModifiers.forEach((function(e){return c.modifiersData[e.name]=Object.assign({},e.data)}));for(var r=0;r<c.orderedModifiers.length;r++)if(!0!==c.reset){var o=c.orderedModifiers[r],i=o.fn,a=o.options,l=void 0===a?{}:a,f=o.name;"function"==typeof i&&(c=i({state:c,options:l,name:f,instance:s})||c)}else c.reset=!1,r=-1}}},update:(o=function(){return new Promise((function(e){s.forceUpdate(),e(c)}))},function(){return a||(a=new Promise((function(e){Promise.resolve().then((function(){a=void 0,e(o())}))}))),a}),destroy:function(){f(),u=!0}};if(!cr(e,t))return s;function f(){l.forEach((function(e){return e()})),l=[]}return s.setOptions(n).then((function(e){!u&&n.onFirstUpdate&&n.onFirstUpdate(e)})),s}}({defaultModifiers:[er,nr,Mn,Ln,tr,Qn,rr,Pn]}),ur=["enabled","placement","strategy","modifiers"],sr={name:"applyStyles",enabled:!1,phase:"afterWrite",fn:()=>{}},fr={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)}}},dr=[],pr=function(t,n,r={}){let{enabled:o=!0,placement:i="bottom",strategy:a="absolute",modifiers:c=dr}=r,l=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,ur);const u=(0,e.useRef)(c),s=(0,e.useRef)(),f=(0,e.useCallback)((()=>{var e;null==(e=s.current)||e.update()}),[]),d=(0,e.useCallback)((()=>{var e;null==(e=s.current)||e.forceUpdate()}),[]),[p,m]=function(t){const n=Ct();return[t[0],(0,e.useCallback)((e=>{if(n())return t[1](e)}),[n,t[1]])]}((0,e.useState)({placement:i,update:f,forceUpdate:d,attributes:{},styles:{popper:{},arrow:{}}})),h=(0,e.useMemo)((()=>({name:"updateStateModifier",enabled:!0,phase:"write",requires:["computeStyles"],fn:({state:e})=>{const t={},n={};Object.keys(e.elements).forEach((r=>{t[r]=e.styles[r],n[r]=e.attributes[r]})),m({state:e,styles:t,attributes:n,update:f,forceUpdate:d,placement:e.placement})}})),[f,d,m]),v=(0,e.useMemo)((()=>(Kt(u.current,c)||(u.current=c),u.current)),[c]);return(0,e.useEffect)((()=>{s.current&&o&&s.current.setOptions({placement:i,strategy:a,modifiers:[...v,h,sr]})}),[a,i,h,o,v]),(0,e.useEffect)((()=>{if(o&&null!=t&&null!=n)return s.current=lr(t,n,Object.assign({},l,{placement:i,strategy:a,modifiers:[...v,fr,h]})),()=>{null!=s.current&&(s.current.destroy(),s.current=void 0,m((e=>Object.assign({},e,{attributes:{},styles:{popper:{}}}))))}}),[o,t,n]),p},mr=!("undefined"==typeof window||!window.document||!window.document.createElement);var hr=!1,vr=!1;try{var yr={get passive(){return hr=!0},get once(){return vr=hr=!0}};mr&&(window.addEventListener("test",yr,yr),window.removeEventListener("test",yr,!0))}catch(e){}const gr=function(e,t,n,r){if(r&&"boolean"!=typeof r&&!vr){var o=r.once,i=r.capture,a=n;!vr&&o&&(a=n.__once||function e(r){this.removeEventListener(t,e,i),n.call(this,r)},n.__once=a),e.addEventListener(t,a,hr?r:i)}e.addEventListener(t,n,r)},br=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)},_r=function(e,t,n,r){return gr(e,t,n,r),function(){br(e,t,n,r)}};function wr(e){return e&&e.ownerDocument||document}const Er=function(t){const n=(0,e.useRef)(t);return(0,e.useEffect)((()=>{n.current=t}),[t]),n};function xr(t){const n=Er(t);return(0,e.useCallback)((function(...e){return n.current&&n.current(...e)}),[n])}const Or=()=>{},Sr=e=>e&&("current"in e?e.current:e),kr={click:"mousedown",mouseup:"mousedown",pointerup:"pointerdown"};function Cr(e){return"Escape"===e.code||27===e.keyCode}const jr=()=>{},Nr=function(t,n,{disabled:r,clickTrigger:o}={}){const i=n||jr;!function(t,n=Or,{disabled:r,clickTrigger:o="click"}={}){const i=(0,e.useRef)(!1),a=(0,e.useRef)(!1),c=(0,e.useCallback)((e=>{const n=Sr(t);var r;At()(!!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)||!!Ot(n,e.target)||a.current,a.current=!1}),[t]),l=xr((e=>{const n=Sr(t);n&&Ot(n,e.target)&&(a.current=!0)})),u=xr((e=>{i.current||n(e)}));(0,e.useEffect)((()=>{var e,n;if(r||null==t)return;const i=wr(Sr(t)),a=i.defaultView||window;let s=null!=(e=a.event)?e:null==(n=a.parent)?void 0:n.event,f=null;kr[o]&&(f=_r(i,kr[o],l,!0));const d=_r(i,o,c,!0),p=_r(i,o,(e=>{e!==s?u(e):s=void 0}));let m=[];return"ontouchstart"in i.documentElement&&(m=[].slice.call(i.body.children).map((e=>_r(e,"mousemove",Or)))),()=>{null==f||f(),d(),p(),m.forEach((e=>e()))}}),[t,r,o,c,l,u])}(t,i,{disabled:r,clickTrigger:o});const a=xr((e=>{Cr(e)&&i(e)}));(0,e.useEffect)((()=>{if(r||null==t)return;const e=wr(Sr(t));let n=(e.defaultView||window).event;const o=_r(e,"keyup",(e=>{e!==n?a(e):n=void 0}));return()=>{o()}}),[t,r,a])},Dr=(0,e.createContext)(mr?window:void 0);function Pr(){return(0,e.useContext)(Dr)}Dr.Provider;const Rr=(e,t)=>mr?null==e?(t||wr()).body:("function"==typeof e&&(e=e()),e&&"current"in e&&(e=e.current),e&&("nodeType"in e||e.getBoundingClientRect)?e:null):null;function Ar(t,n){const r=Pr(),[o,i]=(0,e.useState)((()=>Rr(t,null==r?void 0:r.document)));if(!o){const e=Rr(t);e&&i(e)}return(0,e.useEffect)((()=>{n&&o&&n(o)}),[n,o]),(0,e.useEffect)((()=>{const e=Rr(t);e!==o&&i(e)}),[t,o]),o}function Tr(e={}){return Array.isArray(e)?e:Object.keys(e).map((t=>(e[t].name=t,e[t])))}const Mr=void 0!==n.g&&n.g.navigator&&"ReactNative"===n.g.navigator.product,Ir="undefined"!=typeof document||Mr?e.useLayoutEffect:e.useEffect,Lr=function({children:t,in:n,onExited:r,mountOnEnter:o,unmountOnExit:i}){const a=(0,e.useRef)(null),c=(0,e.useRef)(n),l=xr(r);(0,e.useEffect)((()=>{n?c.current=!0:l(a.current)}),[n,l]);const u=Ht(a,t.ref),s=(0,e.cloneElement)(t,{ref:u});return n?s:i||!c.current&&o?null:s};var Fr=n(400),Br=0;function Hr(e,t,n,r,o,i){var a,c,l={};for(c in t)"ref"==c?a=t[c]:l[c]=t[c];var u={type:e,props:l,key:n,ref:a,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:--Br,__i:-1,__u:0,__source:o,__self:i};if("function"==typeof e&&(a=e.defaultProps))for(c in a)void 0===l[c]&&(l[c]=a[c]);return Fr.YM.vnode&&Fr.YM.vnode(u),u}function Ur({children:t,in:n,onExited:r,onEntered:o,transition:i}){const[a,c]=(0,e.useState)(!n);n&&a&&c(!1);const l=function({in:t,onTransition:n}){const r=(0,e.useRef)(null),o=(0,e.useRef)(!0),i=xr(n);return Ir((()=>{if(!r.current)return;let e=!1;return i({in:t,element:r.current,initial:o.current,isStale:()=>e}),()=>{e=!0}}),[t,i]),Ir((()=>(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):(c(!0),null==r||r(e.element)))}),(t=>{throw e.in||c(!0),t}))}}),u=Ht(l,t.ref);return a&&!n?null:(0,e.cloneElement)(t,{ref:u})}function Wr(e,t,n){return e?Hr(e,Object.assign({},n)):t?Hr(Ur,Object.assign({},n,{transition:t})):Hr(Lr,Object.assign({},n))}Array.isArray;const Vr=e.forwardRef(((t,n)=>{const{flip:r,offset:o,placement:i,containerPadding:a,popperConfig:c={},transition:l,runTransition:u}=t,[s,f]=Vt(),[d,p]=Vt(),m=Ht(f,n),h=Ar(t.container),v=Ar(t.target),[y,g]=(0,e.useState)(!t.show),b=pr(v,s,function({enabled:e,enableEvents:t,placement:n,flip:r,offset:o,fixed:i,containerPadding:a,arrowElement:c,popperConfig:l={}}){var u,s,f,d,p;const m=function(e){const t={};return Array.isArray(e)?(null==e||e.forEach((e=>{t[e.name]=e})),t):e||t}(l.modifiers);return Object.assign({},l,{placement:n,enabled:e,strategy:i?"fixed":l.strategy,modifiers:Tr(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==(s=m.preventOverflow)?void 0:s.options):null==(f=m.preventOverflow)?void 0:f.options}),offset:{options:Object.assign({offset:o},null==(d=m.offset)?void 0:d.options)},arrow:Object.assign({},m.arrow,{enabled:!!c,options:Object.assign({},null==(p=m.arrow)?void 0:p.options,{element:c})}),flip:Object.assign({enabled:!!r},m.flip)}))})}({placement:i,enableEvents:!!t.show,containerPadding:a||5,flip:r,offset:o,arrowElement:d,popperConfig:c}));t.show&&y&&g(!1);const _=t.show||!y;if(Nr(s,t.onHide,{disabled:!t.rootClose||t.rootCloseDisabled,clickTrigger:t.rootCloseEvent}),!_)return null;const{onExit:w,onExiting:E,onEnter:x,onEntering:O,onEntered:S}=t;let k=t.children(Object.assign({},b.attributes.popper,{style:b.styles.popper,ref:m}),{popper:b,placement:i,show:!!t.show,arrowProps:Object.assign({},b.attributes.arrow,{style:b.styles.arrow,ref:p})});return k=Wr(l,u,{in:!!t.show,appear:!0,mountOnEnter:!0,unmountOnExit:!0,children:k,onExit:w,onExiting:E,onExited:(...e)=>{g(!0),t.onExited&&t.onExited(...e)},onEnter:x,onEntering:O,onEntered:S}),h?e.default.createPortal(k,h):null}));Vr.displayName="Overlay";const Yr=Vr;function zr(e,t){return e.classList?!!t&&e.classList.contains(t):-1!==(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")}const Kr=e.createContext({prefixes:{},breakpoints:["xxl","xl","lg","md","sm","xs"],minBreakpoint:"xs"}),{Consumer:$r,Provider:qr}=Kr;function Xr(t,n){const{prefixes:r}=(0,e.useContext)(Kr);return t||r[n]||n}function Jr(){const{dir:t}=(0,e.useContext)(Kr);return"rtl"===t}const Qr=e.forwardRef((({className:e,bsPrefix:t,as:n="div",...r},o)=>(t=Xr(t,"popover-header"),Hr(n,{ref:o,className:Wt()(e,t),...r}))));Qr.displayName="PopoverHeader";const Gr=Qr,Zr=e.forwardRef((({className:e,bsPrefix:t,as:n="div",...r},o)=>(t=Xr(t,"popover-body"),Hr(n,{ref:o,className:Wt()(e,t),...r}))));Zr.displayName="PopoverBody";const eo=Zr;function to(e,t){let n=e;return"left"===e?n=t?"end":"start":"right"===e&&(n=t?"start":"end"),n}function no(e="absolute"){return{position:e,top:"0",left:"0",opacity:"0",pointerEvents:"none"}}e.Component;const ro=e.forwardRef((({bsPrefix:e,placement:t="right",className:n,style:r,children:o,body:i,arrowProps:a,hasDoneInitialMeasure:c,popper:l,show:u,...s},f)=>{const d=Xr(e,"popover"),p=Jr(),[m]=(null==t?void 0:t.split("-"))||[],h=to(m,p);let v=r;return u&&!c&&(v={...r,...no(null==l?void 0:l.strategy)}),Hr("div",{ref:f,role:"tooltip",style:v,"x-placement":m,className:Wt()(n,d,m&&`bs-popover-${h}`),...s,children:[Hr("div",{className:"popover-arrow",...a}),i?Hr(eo,{children:o}):o]})})),oo=Object.assign(ro,{Header:Gr,Body:eo,POPPER_OFFSET:[0,8]}),io=e.forwardRef((({bsPrefix:e,placement:t="right",className:n,style:r,children:o,arrowProps:i,hasDoneInitialMeasure:a,popper:c,show:l,...u},s)=>{e=Xr(e,"tooltip");const f=Jr(),[d]=(null==t?void 0:t.split("-"))||[],p=to(d,f);let m=r;return l&&!a&&(m={...r,...no(null==c?void 0:c.strategy)}),Hr("div",{ref:s,style:m,role:"tooltip","x-placement":d,className:Wt()(n,e,`bs-tooltip-${p}`),...u,children:[Hr("div",{className:"tooltip-arrow",...i}),Hr("div",{className:`${e}-inner`,children:o})]})}));io.displayName="Tooltip";const ao=Object.assign(io,{TOOLTIP_OFFSET:[0,6]});function co(e,t){return co=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},co(e,t)}const lo=e.default.createContext(null);var uo="unmounted",so="exited",fo="entering",po="entered",mo="exiting",ho=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=so,r.appearStatus=fo):o=po:o=e.unmountOnExit||e.mountOnEnter?uo:so,r.state={status:o},r.nextCallback=null,r}r=t,(n=o).prototype=Object.create(r.prototype),n.prototype.constructor=n,co(n,r),o.getDerivedStateFromProps=function(e,t){return e.in&&t.status===uo?{status:so}: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!==fo&&n!==po&&(t=fo):n!==fo&&n!==po||(t=mo)}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(t,n){if(void 0===t&&(t=!1),null!==n)if(this.cancelNextCallback(),n===fo){if(this.props.unmountOnExit||this.props.mountOnEnter){var r=this.props.nodeRef?this.props.nodeRef.current:e.default.findDOMNode(this);r&&function(e){e.scrollTop}(r)}this.performEnter(t)}else this.performExit();else this.props.unmountOnExit&&this.state.status===so&&this.setState({status:uo})},i.performEnter=function(t){var n=this,r=this.props.enter,o=this.context?this.context.isMounting:t,i=this.props.nodeRef?[o]:[e.default.findDOMNode(this),o],a=i[0],c=i[1],l=this.getTimeouts(),u=o?l.appear:l.enter;t||r?(this.props.onEnter(a,c),this.safeSetState({status:fo},(function(){n.props.onEntering(a,c),n.onTransitionEnd(u,(function(){n.safeSetState({status:po},(function(){n.props.onEntered(a,c)}))}))}))):this.safeSetState({status:po},(function(){n.props.onEntered(a)}))},i.performExit=function(){var t=this,n=this.props.exit,r=this.getTimeouts(),o=this.props.nodeRef?void 0:e.default.findDOMNode(this);n?(this.props.onExit(o),this.safeSetState({status:mo},(function(){t.props.onExiting(o),t.onTransitionEnd(r.exit,(function(){t.safeSetState({status:so},(function(){t.props.onExited(o)}))}))}))):this.safeSetState({status:so},(function(){t.props.onExited(o)}))},i.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},i.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},i.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,t.nextCallback=null,e(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},i.onTransitionEnd=function(t,n){this.setNextCallback(n);var r=this.props.nodeRef?this.props.nodeRef.current:e.default.findDOMNode(this),o=null==t&&!this.props.addEndListener;if(r&&!o){if(this.props.addEndListener){var i=this.props.nodeRef?[this.nextCallback]:[r,this.nextCallback],a=i[0],c=i[1];this.props.addEndListener(a,c)}null!=t&&setTimeout(this.nextCallback,t)}else setTimeout(this.nextCallback,0)},i.render=function(){var t=this.state.status;if(t===uo)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,Mt(n,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]));return e.default.createElement(lo.Provider,{value:null},"function"==typeof r?r(t,o):e.default.cloneElement(e.default.Children.only(r),o))},o}(e.default.Component);function vo(){}ho.contextType=lo,ho.propTypes={},ho.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:vo,onEntering:vo,onEntered:vo,onExit:vo,onExiting:vo,onExited:vo},ho.UNMOUNTED=uo,ho.EXITED=so,ho.ENTERING=fo,ho.ENTERED=po,ho.EXITING=mo;const yo=ho;var go=/([A-Z])/g,bo=/^ms-/;function _o(e){return function(e){return e.replace(go,"-$1").toLowerCase()}(e).replace(bo,"-ms-")}var wo=/^((translate|rotate|scale)(X|Y|Z|3d)?|matrix(3d)?|perspective|skew(X|Y)?)$/i;const Eo=function(e,t){var n="",r="";if("string"==typeof t)return e.style.getPropertyValue(_o(t))||function(e,t){return function(e){var t=wr(e);return t&&t.defaultView||window}(e).getComputedStyle(e,t)}(e).getPropertyValue(_o(t));Object.keys(t).forEach((function(o){var i=t[o];i||0===i?function(e){return!(!e||!wo.test(e))}(o)?r+=o+"("+i+") ":n+=_o(o)+": "+i+";":e.style.removeProperty(_o(o))})),r&&(n+="transform: "+r+";"),e.style.cssText+=";"+n};function xo(e,t,n,r){var o,i;null==n&&(i=-1===(o=Eo(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=_r(e,"transitionend",(function(){r=!0}),{once:!0});return function(){clearTimeout(o),i()}}(e,n,r),c=_r(e,"transitionend",t);return function(){a(),c()}}function Oo(e,t){const n=Eo(e,t)||"",r=-1===n.indexOf("ms")?1e3:1;return parseFloat(n)*r}function So(e,t){const n=Oo(e,"transitionDuration"),r=Oo(e,"transitionDelay"),o=xo(e,(n=>{n.target===e&&(o(),t(n))}),n+r)}function ko(e){e.offsetHeight}function Co(t){return t&&"setState"in t?e.default.findDOMNode(t):null!=t?t:null}const jo=e.default.forwardRef((({onEnter:t,onEntering:n,onEntered:r,onExit:o,onExiting:i,onExited:a,addEndListener:c,children:l,childRef:u,...s},f)=>{const d=(0,e.useRef)(null),p=Ht(d,u),m=e=>{p(Co(e))},h=e=>t=>{e&&d.current&&e(d.current,t)},v=(0,e.useCallback)(h(t),[t]),y=(0,e.useCallback)(h(n),[n]),g=(0,e.useCallback)(h(r),[r]),b=(0,e.useCallback)(h(o),[o]),_=(0,e.useCallback)(h(i),[i]),w=(0,e.useCallback)(h(a),[a]),E=(0,e.useCallback)(h(c),[c]);return Hr(yo,{ref:f,...s,onEnter:v,onEntered:g,onEntering:y,onExit:b,onExited:w,onExiting:_,addEndListener:E,nodeRef:d,children:"function"==typeof l?(e,t)=>l(e,{...t,ref:m}):e.default.cloneElement(l,{ref:m})})})),No={[fo]:"show",[po]:"show"},Do=e.forwardRef((({className:t,children:n,transitionClasses:r={},onEnter:o,...i},a)=>{const c={in:!1,timeout:300,mountOnEnter:!1,unmountOnExit:!1,appear:!1,...i},l=(0,e.useCallback)(((e,t)=>{ko(e),null==o||o(e,t)}),[o]);return Hr(jo,{ref:a,addEndListener:So,...c,onEnter:l,childRef:n.ref,children:(o,i)=>e.cloneElement(n,{...i,className:Wt()("fade",t,n.props.className,No[o],r[o])})})}));Do.displayName="Fade";const Po=Do,Ro=e.forwardRef((({children:t,transition:n=Po,popperConfig:r={},rootClose:o=!1,placement:i="top",show:a=!1,...c},l)=>{const u=(0,e.useRef)({}),[s,f]=(0,e.useState)(null),[d,p]=function(t){const n=(0,e.useRef)(null),r=Xr(void 0,"popover"),o=Xr(void 0,"tooltip"),i=(0,e.useMemo)((()=>({name:"offset",options:{offset:()=>{if(t)return t;if(n.current){if(zr(n.current,r))return oo.POPPER_OFFSET;if(zr(n.current,o))return ao.TOOLTIP_OFFSET}return[0,0]}}})),[t,r,o]);return[n,[i]]}(c.offset),m=Ht(l,d),h=!0===n?Po:n||void 0,v=xr((e=>{f(e),null==r||null==r.onFirstUpdate||r.onFirstUpdate(e)}));return Ir((()=>{s&&c.target&&(null==u.current.scheduleUpdate||u.current.scheduleUpdate())}),[s,c.target]),(0,e.useEffect)((()=>{a||f(null)}),[a]),Hr(Yr,{...c,ref:m,popperConfig:{...r,modifiers:p.concat(r.modifiers||[]),onFirstUpdate:v},transition:h,rootClose:o,placement:i,show:a,children:(o,{arrowProps:i,popper:a,show:c})=>{var l,f;!function(e,t){const{ref:n}=e,{ref:r}=t;e.ref=n.__wrapped||(n.__wrapped=e=>n(Co(e))),t.ref=r.__wrapped||(r.__wrapped=e=>r(Co(e)))}(o,i);const d=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:d,outOfBoundaries:(null==a||null==(l=a.state)||null==(f=l.modifiersData.hide)?void 0:f.isReferenceHidden)||!1,strategy:r.strategy}),m=!!s;return"function"==typeof t?t({...o,placement:d,show:c,...!n&&c&&{className:"show"},popper:p,arrowProps:i,hasDoneInitialMeasure:m}):e.cloneElement(t,{...o,placement:d,arrowProps:i,popper:p,hasDoneInitialMeasure:m,className:Wt()(t.props.className,!n&&c&&"show"),style:{...t.props.style,...o.style}})}})}));Ro.displayName="Overlay";const Ao=Ro;function To(e,t,n){const[r]=t,o=r.currentTarget,i=r.relatedTarget||r.nativeEvent[n];i&&i===o||Ot(o,i)||e(...t)}kt().oneOf(["click","hover","focus"]);const Mo=({trigger:t=["hover","focus"],overlay:n,children:r,popperConfig:o={},show:i,defaultShow:a=!1,onToggle:c,delay:l,placement:u,flip:s=u&&-1!==u.indexOf("auto"),...f})=>{const d=(0,e.useRef)(null),p=Ht(d,r.ref),m=Pt(),h=(0,e.useRef)(""),[v,y]=Ft(i,a,c),g=function(e){return e&&"object"==typeof e?e:{show:e,hide:e}}(l),{onFocus:b,onBlur:_,onClick:w}="function"!=typeof r?e.Children.only(r).props:{},E=(0,e.useCallback)((()=>{m.clear(),h.current="show",g.show?m.set((()=>{"show"===h.current&&y(!0)}),g.show):y(!0)}),[g.show,y,m]),x=(0,e.useCallback)((()=>{m.clear(),h.current="hide",g.hide?m.set((()=>{"hide"===h.current&&y(!1)}),g.hide):y(!1)}),[g.hide,y,m]),O=(0,e.useCallback)(((...e)=>{E(),null==b||b(...e)}),[E,b]),S=(0,e.useCallback)(((...e)=>{x(),null==_||_(...e)}),[x,_]),k=(0,e.useCallback)(((...e)=>{y(!v),null==w||w(...e)}),[w,y,v]),C=(0,e.useCallback)(((...e)=>{To(E,e,"fromElement")}),[E]),j=(0,e.useCallback)(((...e)=>{To(x,e,"toElement")}),[x]),N=null==t?[]:[].concat(t),D={ref:e=>{p(Co(e))}};return-1!==N.indexOf("click")&&(D.onClick=k),-1!==N.indexOf("focus")&&(D.onFocus=O,D.onBlur=S),-1!==N.indexOf("hover")&&(D.onMouseOver=C,D.onMouseOut=j),Hr(Fr.HY,{children:["function"==typeof r?r(D):(0,e.cloneElement)(r,D),Hr(Ao,{...f,show:v,onHide:x,flip:s,placement:u,popperConfig:o,target:d.current,children:n})]})};function Io(t){var n=t.id,r=t.tip;return e.default.createElement(Mo,{placement:"auto",trigger:["click","hover","focus"],style:{display:"inline"},overlay:e.default.createElement(ao,{id:n},r)},e.default.createElement("img",{src:"/images/shop/icon-reminder.svg",className:"options-icon"}))}function Lo(e){return Lo="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},Lo(e)}function Fo(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,(o=r.key,i=void 0,i=function(e,t){if("object"!==Lo(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!==Lo(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(o),"symbol"===Lo(i)?i:String(i)),r)}var o,i}function Bo(e,t){return Bo=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Bo(e,t)}function Ho(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Uo(e){return Uo=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Uo(e)}var Wo=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&&Bo(e,t)}(c,t);var n,r,o,i,a=(o=c,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=Uo(o);if(i){var n=Uo(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"===Lo(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Ho(e)}(this,e)});function c(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,c),(t=a.call(this,e)).state={text:e.outvar in e.data?e.data[e.outvar]:e.fallback?e.fallback:""},t.handleClick=t.handleClick.bind(Ho(t)),t.props.target.construct(t.props.outvar,t.state.text),t}return n=c,(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.default.createElement("div",{className:"shop-line",key:this.props.id},e.default.createElement("label",{htmlFor:t,className:"form-label"},this.props.icon&&e.default.createElement("img",{src:"/images".concat(this.props.icon),className:"options-icon"}),this.props.title,":"),this.props.tip&&e.default.createElement(Io,{id:this.props.id+"tooltip",tip:this.props.tip}),e.default.createElement("input",{type:"text",className:"form-control form-control-sm",id:t,onChange:this.handleClick,value:this.state.text}))}}])&&Fo(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),c}(e.Component);function Vo(e){return Vo="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},Vo(e)}function Yo(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function zo(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Yo(Object(n),!0).forEach((function(t){var r,o,i;r=e,o=t,i=n[t],(o=$o(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)):Yo(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ko(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,$o(r.key),r)}}function $o(e){var t=function(e,t){if("object"!==Vo(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!==Vo(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===Vo(t)?t:String(t)}function qo(e,t){return qo=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},qo(e,t)}function Xo(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Jo(e){return Jo=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Jo(e)}var Qo=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&&qo(e,t)}(c,t);var n,r,o,i,a=(o=c,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=Jo(o);if(i){var n=Jo(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"===Vo(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Xo(e)}(this,e)});function c(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,c),(t=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(Xo(t)),t.props.target.construct(t.props.outvar,t.state.variant),t}return n=c,(r=[{key:"handleClick",value:function(e){this.setState(zo(zo({},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.default.createElement("div",{className:"shop-radio",key:this.props.id},e.default.createElement("div",{style:{display:"inline"}},this.props.icon&&e.default.createElement("img",{src:"/images".concat(this.props.icon),className:"options-icon"}),this.props.title),this.props.tip&&e.default.createElement(Io,{id:this.props.id+"tooltip",tip:this.props.tip}),this.props.variants.map((function(r,o){return e.default.createElement("div",{className:"form-check",key:n+r},e.default.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.default.createElement("label",{className:"form-check-label",htmlFor:n+r},r))})))}}])&&Ko(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),c}(e.Component);function Go(e){return Go="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},Go(e)}function Zo(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,(o=r.key,i=void 0,i=function(e,t){if("object"!==Go(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!==Go(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(o),"symbol"===Go(i)?i:String(i)),r)}var o,i}function ei(e,t){return ei=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},ei(e,t)}function ti(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ni(e){return ni=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},ni(e)}var ri=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&&ei(e,t)}(c,t);var n,r,o,i,a=(o=c,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=ni(o);if(i){var n=ni(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"===Go(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return ti(e)}(this,e)});function c(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,c),(t=a.call(this,e)).state={checked:e.outvar in e.data?!!e.data[e.outvar]:!!e.fallback},t.handleClick=t.handleClick.bind(ti(t)),t.props.target.construct(t.props.outvar,t.state.checked),t}return n=c,(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.default.createElement("div",{className:"shop-switch",key:this.props.id},e.default.createElement("div",{className:"form-check form-switch",key:t},e.default.createElement("input",{className:"form-check-input",type:"checkbox",role:"switch",id:t,checked:this.state.checked,onClick:this.handleClick}),e.default.createElement("label",{className:"form-check-label",htmlFor:t,style:{display:"inline"}},this.props.icon&&e.default.createElement("img",{src:"/images".concat(this.props.icon),className:"options-icon"}),this.props.title),this.props.tip&&e.default.createElement(Io,{id:this.props.id+"tooltip",tip:this.props.tip})))}}])&&Zo(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),c}(e.Component);function oi(e){return oi="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},oi(e)}function ii(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 ai(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ii(Object(n),!0).forEach((function(t){var r,o,i;r=e,o=t,i=n[t],(o=li(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)):ii(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ci(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,li(r.key),r)}}function li(e){var t=function(e,t){if("object"!==oi(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!==oi(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===oi(t)?t:String(t)}function ui(e,t){return ui=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},ui(e,t)}function si(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function fi(e){return fi=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},fi(e)}var di=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&&ui(e,t)}(c,t);var n,r,o,i,a=(o=c,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=fi(o);if(i){var n=fi(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"===oi(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return si(e)}(this,e)});function c(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,c),(t=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(si(t)),t.handleCheck=t.handleCheck.bind(si(t)),t.props.target.construct(t.props.outvar,t.state),t}return n=c,(r=[{key:"handleText",value:function(e){var t=ai(ai({},this.state),{},{text:e.target.value});this.setState(t),this.props.target.update(this.props.outvar,t)}},{key:"handleCheck",value:function(){var e=ai(ai({},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.default.createElement("div",{className:"shop-switch-line",key:this.props.id},e.default.createElement("div",{className:"form-check form-switch",key:t},e.default.createElement("input",{className:"form-check-input",type:"checkbox",role:"switch",id:t+"switch",checked:this.state.checked,onClick:this.handleCheck}),e.default.createElement("label",{className:"form-check-label",htmlFor:t+"switch"},this.props.icon&&e.default.createElement("img",{src:"/images".concat(this.props.icon),className:"options-icon"}),this.props.title),this.props.tip&&e.default.createElement(Io,{id:this.props.id+"tooltip",tip:this.props.tip})),e.default.createElement("input",{type:"text",className:"form-control form-control-sm",id:t+"line",onChange:this.handleText,value:this.state.text,disabled:!this.state.checked}))}}])&&ci(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),c}(e.Component),pi={Radio:function(t,n,r,o){var i=o.title,a=o.variants,c=o.outvar,l=o.fallback,u=o.icon,s=o.tip;return e.default.createElement(Qo,{target:t,title:i,variants:a,outvar:c,icon:u,tip:s,key:n,fallback:l,id:n,data:r})},Switch:function(t,n,r,o){var i=o.title,a=o.fallback,c=o.outvar,l=o.icon,u=o.tip;return e.default.createElement(ri,{target:t,title:i,fallback:a,outvar:c,icon:l,tip:u,key:n,id:n,data:r})},Line:function(t,n,r,o){var i=o.title,a=o.fallback,c=o.outvar,l=o.icon,u=o.tip;return e.default.createElement(Wo,{target:t,title:i,fallback:a,outvar:c,icon:l,tip:u,key:n,id:n,data:r})},SwitchLine:function(t,n,r,o){var i=o.title,a=o.fallback,c=o.outvar,l=o.icon,u=o.tip;return e.default.createElement(di,{target:t,title:i,fallback:a,outvar:c,icon:l,tip:u,key:n,id:n,data:r})},Default:function(t,n){return e.default.createElement("div",{key:t+n,style:{background:"red"}},"UNIMPLEMENTED")}},mi=function(e){return Object.prototype.toString.call(e).slice(8,-1).toLowerCase()};function hi(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}}function vi(e,t){var n=mi(e),r={};return"array"===n?e.map((function(e,n){Object.assign(r,vi(e,t))})):"object"===n&&("string"!==mi(e.type)||"object"!==mi(e.args)&&"array"!==mi(e.items)?Object.assign(r,vi((0,xt.apply)(e,t),t)):e.type in pi?r[e.args.outvar]=t[e.args.outvar]:"Group"===e.type&&Object.assign(r,vi((0,xt.apply)(e.items,t),t))),r}const yi={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};let gi;const bi=new Uint8Array(16);function _i(){if(!gi&&(gi="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!gi))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return gi(bi)}const wi=[];for(let e=0;e<256;++e)wi.push((e+256).toString(16).slice(1));const Ei=function(e,t,n){if(yi.randomUUID&&!t&&!e)return yi.randomUUID();const r=(e=e||{}).random||(e.rng||_i)();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 wi[e[t+0]]+wi[e[t+1]]+wi[e[t+2]]+wi[e[t+3]]+"-"+wi[e[t+4]]+wi[e[t+5]]+"-"+wi[e[t+6]]+wi[e[t+7]]+"-"+wi[e[t+8]]+wi[e[t+9]]+"-"+wi[e[t+10]]+wi[e[t+11]]+wi[e[t+12]]+wi[e[t+13]]+wi[e[t+14]]+wi[e[t+15]]}(r)};var xi={eem:function(e){return e.options_data&&!1!==e.options_data.ext_pwr&&!1!==e.options_data.mono_eem?!0===e.options_data.ext_pwr?0:!0===e.options_data.mono_eem||"1 EEM"===e.options_data.n_eem?1:"3 EEM"===e.options_data.n_eem?3:e.consumes&&e.consumes.eem||0:e.consumes&&e.consumes.eem||0},clk:function(e){return e.options_data&&(!0===e.options_data.ext_clk||e.options_data.ext_clk&&!0===e.options_data.ext_clk.checked)?0:e.consumes&&e.consumes.clk||0},idc:function(e){return e.consumes&&e.consumes.idc||0},hp:function(e){return e.consumes&&e.consumes.hp||0}};function Oi(e){return function(t,n){for(var r=0,o=n+1;o<t.length&&(r+=xi[e](t[o]),!t[o].resources||!t[o].resources.find((function(t,n){return t.name===e})));o++);return r}}var Si={eem:Oi("eem"),clk:Oi("clk"),idc:Oi("idc"),hp:Oi("hp")};function ki(e){return Math.trunc(e/4)}function Ci(e){return Ci="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},Ci(e)}function ji(e,t){if(e){if("string"==typeof e)return Ni(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)?Ni(e,t):void 0}}function Ni(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 Di(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 Pi(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Di(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"!==Ci(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!==Ci(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===Ci(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)):Di(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Ri={reminder:{priority:1,icon:"/images/shop/icon-reminder.svg",color:"black"},warning:{priority:2,icon:"/images/shop/icon-warning.svg",color:"#c75e5e"}},Ai=function(e,t){return e.find((function(e){return e.name===t}))},Ti=function(e){return function(t,n,r){var o=Ai(r,e);return o.occupied>o.max}},Mi=function(e){return function(t,n,r){return xi[e](t[n])>0&&!function(e,t,n){return e.slice(0,t).find((function(e){return e.resources&&Ai(e.resources,n)}))}(t,n,e)}},Ii={eem_resource:{level:"warning",trigger:Ti("eem"),message:"Insufficient EEM connectors"},no_eem_source:{level:"warning",trigger:Mi("eem"),message:"This card needs a card that provides a EEM connector (e.g. Kasli) at its left."},idc_resource:{level:"warning",trigger:Ti("idc"),message:"Insufficient IDC connectors."},no_idc_source:{level:"warning",trigger:Mi("idc"),message:"Should be after a Zotino or a HD68-IDC or with another IDC-BNC."},clk_resource:{level:"warning",trigger:Ti("clk"),message:"Insufficient clock connectors."},no_clk_source:{level:"warning",trigger:Mi("clk"),message:"This card needs either a card that provides a clock source (e.g. Kasli or Clocker) at its left or use an external clock source."},eem_wiring_constraint:{level:"reminder",trigger:("eem",function(e,t,n){var r=function(e,t,n){return e.slice(t+1).findIndex((function(e){return e.resources&&Ai(e.resources,n)}))+t+1}(e,t,"eem");return r-t==1}),message:"Due to wiring constraints, the carrier can only connect to EEM cards immediately at its right, without crossing another carrier."},default:{level:"warning",trigger:function(e,t,n){return!0},message:"This item has unimplemented warning"}};function Li(e){var t,n={priority:0,icon:null},r=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=ji(e))){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,c=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){c=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(c)throw i}}}}(e);try{for(r.s();!(t=r.n()).done;){var o=t.value;Ri[o.level].priority>n.priority&&(n=Ri[o.level])}}catch(e){r.e(e)}finally{r.f()}return n}function Fi(e){var t=Ri[e];return{icon:t.icon,color:t.color}}var Bi={overfit:{message:"You have reached the maximum number of slots allowed for this crate. Consider removing cards.",level:"warning",trigger:function(e,t){var n=ua.getState().crateParams(e.crate_mode).hp;return t>n&&n>0}},underfit_rack:{message:"The selected cards fit in a 42hp desktop crate, consider switching to it for a more compact system",level:"reminder",trigger:function(e,t){var n=ua.getState().crate_modes.desktop.hp;return e.crate_mode===ua.getState().crate_modes.rack.id&&t<n}}};function Hi(e){var t=Si.hp(e.items,-1),n=[];return Object.entries(Bi).forEach((function(r,o){var i,a,c=(a=2,function(e){if(Array.isArray(e))return e}(i=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,c=[],l=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(c.push(r.value),c.length!==t);l=!0);}catch(e){u=!0,o=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return c}}(i,a)||ji(i,a)||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.")}()),l=c[0],u=c[1];u.trigger(e,t)&&n.push(Pi(Pi({},u),{},{id:l,trigger:void 0}))})),[n,t]}function Ui(e){return Ui="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},Ui(e)}function Wi(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 Vi(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Wi(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"!==Ui(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!==Ui(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===Ui(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)):Wi(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Yi(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return zi(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)?zi(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,c=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){c=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(c)throw i}}}}function zi(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 Ki(e){return JSON.stringify({crates:Array.from(e.map((function(e,t){return{items:Array.from(e.items.map((function(e,t){return{pn:e.name_number,options:e.options_data&&e.options?vi(e.options,e.options_data):null}}))),type:e.crate_mode}})))},null,2)}var $i={OK:0,Empty:1,Invalid:2};function qi(e){return e&&""!==e.trim()?e&&!e.match(/^\w+([\+\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/)?$i.Invalid:$i.OK:$i.Empty}function Xi(e){return Xi="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},Xi(e)}function Ji(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 Qi(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ji(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"!==Xi(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!==Xi(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===Xi(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)):Ji(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Gi(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,c=[],l=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(c.push(r.value),c.length!==t);l=!0);}catch(e){u=!0,o=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return c}}(e,t)||Zi(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 Zi(e,t){if(e){if("string"==typeof e)return ea(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)?ea(e,t):void 0}}function ea(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 ta,na=function(e,t){return{cards:mt.items,groups:mt.columns.backlog,cards_list:ht,currency:mt.currency,pn_to_cards:(n=mt.items,r={},Object.entries(n).forEach((function(e,t){var n=Gi(e,2),o=n[0],i=n[1];r[i.name_number]=o})),r),getCardDescription:function(e){return t().cards[t().cards_list[e]]},getCardDescriptionByPn:function(e){return t().cards[t().pn_to_cards[e]]},cardIndexById:function(e){return t().cards_list.findIndex((function(t){return e===t}))}};var n,r},ra=function(e,t){return{crate_modes:mt.crateModes,modes_order:mt.crateModeOrder,crateParams:function(e){return t().crate_modes[e]}}},oa=function(e,t){return{isTouch:window.isTouchEnabled(),isMobile:window.deviceIsMobile(),sideMenuIsOpen:!1,showCardAddedFeedback:!1,showNoDestination:!1,timerAdded:null,switchSideMenu:function(){return e((function(e){return{sideMenuIsOpen:!e.sideMenuIsOpen}}))},cardAdded:function(){return e((function(e){return{showCardAddedFeedback:!0,showNoDestination:!1,timerAdded:(e.timerAdded?clearTimeout(e.timerAdded):null)||e.isMobile&&setTimeout((function(){t()._endCardAdded()}),2e3)}}))},noDestinationWarning:function(){return e((function(e){return{showCardAddedFeedback:!0,showNoDestination:!0,timerAdded:(e.timerAdded?clearTimeout(e.timerAdded):null)||setTimeout((function(){t()._endCardAdded()}),2e3)}}))},_endCardAdded:function(){return e((function(e){return{showCardAddedFeedback:!1,timerAdded:e.timerAdded?clearTimeout(e.timerAdded):null}}))}}},ia=function(e,t){return{importShouldOpen:!1,importValue:{value:"",error:$i.OK},openImport:function(){return e((function(e){return{importShouldOpen:!0}}))},closeImport:function(){return e((function(e){return{importShouldOpen:!1}}))},_loadDescription:function(){return e((function(e){var t,n,r;return{importShouldOpen:!1,crates:(t=e.importValue.value,n=JSON.parse(t).crates,r=ua.getState().getCardDescriptionByPn,{crates:Array.from(n.map((function(e,t){return{id:"no_crate"===e.type?"spare":"crate"+t,name:"no_crate"===e.type?"Spare cards":void 0,crate_mode:e.type,items:Array.from(e.items.map((function(e,t){return Vi(Vi({},r(e.pn)),{},{id:Ei(),options_data:e.options||{}})}))),warnings:[],occupiedHP:0}})))}).crates}}))},loadDescription:function(){t()._loadDescription(),t().crates.forEach((function(e,n){t().fillExtData(e.id),t().fillWarnings(e.id)}))},updateImportDescription:function(t){return e((function(e){return{importValue:{value:t,error:(n=t,n&&""!==n.trim()?n&&!function(e){var t;try{t=JSON.parse(e).crates}catch(e){return!1}var n=ua.getState().crate_modes,r=ua.getState().modes_order,o=ua.getState().pn_to_cards;try{var i,a=Yi(t);try{for(a.s();!(i=a.n()).done;){var c=i.value;if(!c.type||!c.items||!(c.type in n))return!1;var l,u=Yi(c.items);try{for(u.s();!(l=u.n()).done;){var s=l.value;if(!(s.pn in o)||void 0===s.options)return!1}}catch(e){u.e(e)}finally{u.f()}}}catch(e){a.e(e)}finally{a.f()}}catch(e){return!1}return 1===t.filter((function(e){return!r.includes(e.type)})).length&&"no_crate"===t[t.length-1].type}(n)?$i.Invalid:$i.OK:$i.Empty)}};var n}))}}},aa=function(e,t){return{isProcessing:!1,shouldShowRFQFeedback:!1,processingResult:{status:$i.OK,message:""},API_RFQ:mt.API_RFQ,email:{value:"",error:null},note:{value:"",error:$i.OK},description:"",shouldShowDescription:!1,updateEmail:function(t){return e((function(e){return{email:{value:t,error:qi(t)}}}))},updateNote:function(t){return e((function(e){return{note:{value:t,error:(n=t,n&&""!==n.trim()?$i.OK:$i.Empty)}};var n}))},resetEmailValidation:function(){return e((function(e){return{email:{value:e.email.value,error:$i.OK}}}))},_revalidateForm:function(){return e((function(e){return{email:{value:e.email.value,error:qi(e.email.value)},note:{value:e.note.value,error:qi(e.note.value)}}}))},updateDescription:function(){return e((function(e){return{description:Ki(e.crates)}}))},showDescription:function(){return e((function(e){return{description:Ki(e.crates),shouldShowDescription:!0}}))},closeDescription:function(){return e((function(e){return{shouldShowDescription:!1}}))},_submitForm:function(){return e((function(e){return{isProcessing:!0}}))},finishSubmitForm:function(t){return e((function(e){return{isProcessing:!1,shouldShowRFQFeedback:!0,processingResult:t}}))},submitDisabled:function(){return t().email.error!==$i.OK},submitForm:function(){t().updateDescription(),t()._revalidateForm(),t()._submitForm(),t().submitDisabled()||fetch(t().API_RFQ,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:t().email.value,note:t().note.value,configuration:t().description})}).then((function(e){if(200!==e.status)throw Error("Response status is not OK: "+e.status+".\n"+e);t().finishSubmitForm({status:$i.OK,message:"We've received your request and will be in contact soon."})}),(function(e){console.error("Request rejected, reason:",e),t().finishSubmitForm({status:$i.Invalid,message:"We cannot receive your request. Try using the export by coping the configuration and send it to us at sales@m-labs.hk"})})).catch((function(e){console.error("Request failed, reason:",e),t().finishSubmitForm({status:$i.Invalid,message:"We cannot receive your request. Try using the export by coping the configuration and send it to us at sales@m-labs.hk"})}))},closeRFQFeedback:function(){return e((function(e){return{shouldShowRFQFeedback:!1}}))}}},ca=function(e,t){return{highlighted:{crate:"",card:0},highlightedTimer:null,highlightCard:function(n,r){return e((function(e){return{highlighted:{crate:n,card:r},highlightedTimer:(e.highlightedTimer?clearTimeout(e.highlightedTimer):null)||e.isTouch&&setTimeout((function(){t().highlightReset()}),2e3)}}))},highlightReset:function(){return e((function(e){return{highlighted:{crate:"",card:0},highlightedTimer:e.highlightedTimer?clearTimeout(e.highlightedTimer):null}}))}}},la=function(e,t){return{crates:mt.columns.crates,active_crate:"crate0",_newCrate:function(t){return e((function(e){return{crates:e.crates.toSpliced(-1,0,{id:t||"crate"+e.crates.length,crate_mode:"rack",items:[],warnings:[],occupiedHP:0}),active_crate:t||"crate"+e.crates.length}}))},delCrate:function(t){return e((function(e){return{crates:e.crates.filter((function(e){return e.id!==t})),active_crate:e.active_crate===t?null:e.active_crate}}))},_setCrateMode:function(t,n){return e((function(e){return{crates:e.crates.map((function(e,r){return e.id===t?Qi(Qi({},e),{},{crate_mode:n}):e}))}}))},setActiveCrate:function(t){return e((function(e){return{active_crate:t}}))},_addCardFromBacklog:function(t,n,r){return e((function(e){var o=("array"===mi(n)?n:[n]).map((function(t,n){return e.cards_list[t]})),i=t||e.active_crate;return i?{crates:e.crates.map((function(t,n){var a,c;return i===t.id?(r=null!=r?r:t.items.length,Qi(Qi({},t),{},{items:(a=t.items).toSpliced.apply(a,[r,0].concat((c=o.map((function(t,n){return Qi(Qi({},e.cards[t]),{},{id:Ei()})})),function(e){if(Array.isArray(e))return ea(e)}(c)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(c)||Zi(c)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())))})):t}))}:{}}))},_moveCard:function(t,n,r,o){return e((function(e){var i=e.crates.find((function(e,n){return t===e.id})).items[n];return{crates:e.crates.map((function(e,a){if(r===t&&r===e.id){var c=Array.from(e.items),l=c.splice(n,1)[0];return c.splice(o,0,l).filter((function(e,t){return!!e})),Qi(Qi({},e),{},{items:c})}return r===e.id?Qi(Qi({},e),{},{items:e.items.toSpliced(o,0,i)}):t===e.id?Qi(Qi({},e),{},{items:e.items.toSpliced(o,1)}):e}))}}))},_deleteCard:function(t,n){return e((function(e){return{crates:e.crates.map((function(e,r){return t===e.id?Qi(Qi({},e),{},{items:e.items.toSpliced(n,1)}):e}))}}))},_clearCrate:function(t){return e((function(e){return{crates:e.crates.map((function(e,n){return t===e.id?Qi(Qi({},e),{},{items:[]}):e}))}}))},clearAll:function(){return e((function(e){return{crates:[]}}))},_updateOptions:function(t,n,r){return e((function(e){return{crates:e.crates.map((function(e,o){if(t===e.id){var i=Array.from(e.items);return i[n]=Qi(Qi({},i[n]),{},{options_data:Qi(Qi({},i[n].options_data),r)}),Qi(Qi({},e),{},{items:i})}return e}))}}))},fillWarnings:function(n){return e((function(e){return{crates:e.crates.map((function(e,r){if(n===e.id){var o=Array.from(e.items),i=!!t().crateParams(e.crate_mode).warnings_disabled;o=function(e,t){return e.map((function(n,r){return n.warnings?(n.show_warnings=t?[]:n.warnings.map((function(t,o){return Ii[t]?Ii[t].trigger(e,r,n.counted_resources)?Pi({trigger:void 0,name:t},Ii[t]):null:Ii.default})).filter((function(e,t){return!!e})),n):n}))}(o=function(e,t){return e.map((function(n,r){return n.counted_resources=t?[]:function(e,t){if(!e[t].resources)return null;var n=[];return e[t].resources.forEach((function(r,o){Si[r.name]&&n.push({name:r.name,occupied:Si[r.name](e,t),max:r.max})})),n}(e,r),n}))}(o,i),i);var a=Gi(Hi(e),2),c=a[0],l=a[1];return Qi(Qi({},e),{},{items:o,warnings:c,occupiedHP:l})}return e}))}}))},fillExtData:function(t){return e((function(e){return{crates:e.crates.map((function(e,n){if(t===e.id){var r=Array.from(e.items);return r=r.map((function(e,t){return e.options?(e.options_data||(e.options_data={}),e.options_data.ext_data=hi(r,t),e):e})),Qi(Qi({},e),{},{items:Array.from(r)})}return e}))}}))},totalOrderPrice:function(){var e=0;return t().crates.forEach((function(n,r){e+=t().crate_modes[n.crate_mode].price,n.items.forEach((function(t,n){e+=t.price}))})),e},newCrate:function(){var e="crate"+t().crates.length;t()._newCrate(e),t().fillExtData(e),t().fillWarnings(e)},setCrateMode:function(e,n){t()._setCrateMode(e,n),t().fillExtData(e),t().fillWarnings(e),t().setActiveCrate(e)},addCardFromBacklog:function(e,n,r,o){var i=e||t().active_crate;if(!i)return console.warn("No destination"),t().noDestinationWarning(),{};t()._addCardFromBacklog(i,n,r),t().fillExtData(i),t().fillWarnings(i),t().setActiveCrate(i),o||t().cardAdded()},moveCard:function(e,n,r,o){t()._moveCard(e,n,r,o),t().fillExtData(r),t().fillWarnings(r),t().setActiveCrate(r),e!==r&&(t().fillExtData(e),t().fillWarnings(e))},deleteCard:function(e,n){t()._deleteCard(e,n),t().fillExtData(e),t().fillWarnings(e),e===t().highlighted.crate&&n===t().highlighted.card&&t().highlightReset()},clearCrate:function(e){t()._clearCrate(e),t().fillWarnings(e)},updateOptions:function(e,n,r){t()._updateOptions(e,n,r),t().fillExtData(e),t().fillWarnings(e)}}},ua=(ta=function(){return Qi(Qi(Qi(Qi(Qi(Qi(Qi({},na.apply(void 0,arguments)),ra.apply(void 0,arguments)),la.apply(void 0,arguments)),aa.apply(void 0,arguments)),oa.apply(void 0,arguments)),ca.apply(void 0,arguments)),ia.apply(void 0,arguments))})?st(ta,undefined):st;function sa(t){var n=t.aside,r=t.main,o=ua((function(e){return e.sideMenuIsOpen})),i=ua((function(e){return e.switchSideMenu})),a=ua((function(e){return e.showCardAddedFeedback})),c=ua((function(e){return e.showNoDestination}));return e.default.createElement("div",{className:"layout"},e.default.createElement("aside",{className:"aside "+(o?"menu-opened":"")},n),o?e.default.createElement("section",{className:"main",onClick:i},r):e.default.createElement("section",{className:"main"},r),a?c?e.default.createElement("div",{className:"feedback-add-failure"},"No cards added: all crates are closed"):e.default.createElement("div",{className:"feedback-add-success"},"✓ added"):null)}function fa(){return fa=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},fa.apply(this,arguments)}function da(t){var n=t.card_index,r=ua((function(e){return e.getCardDescription})),o=ua((function(e){return e.currency})),i=ua((function(e){return e.addCardFromBacklog})),a=r(n),c=nt({id:a.id}),l=c.attributes,u=c.listeners,s=c.setNodeRef,f=(c.transform,a.specs&&a.specs.length>0&&e.default.createElement("ul",null,a.specs.map((function(t,n){return e.default.createElement("li",{key:n},t)})))),d=a.datasheet_file&&a.datasheet_name&&e.default.createElement("div",{className:"ds"},e.default.createElement("span",{className:"doc-icon"}),e.default.createElement("a",{href:a.datasheet_file,target:"_blank",rel:"noopener noreferrer"},a.datasheet_name));return e.default.createElement("section",{className:"productItem"},e.default.createElement("div",{className:"content"},e.default.createElement("h3",{style:{marginBottom:a.name_codename?"5px":"20px"}},a.name),a.name_codename?e.default.createElement("p",null,a.name_codename):null,e.default.createElement("div",{className:"price"},"".concat(o," ").concat(gt(a.price))),f,d),e.default.createElement("div",{className:"content"},e.default.createElement("button",{onClick:function(){return i(null,n,null)}},e.default.createElement("img",{src:"/images/shop/icon-add.svg",alt:"add"})),e.default.createElement("div",fa({ref:s},u,l),(function(t,n){return e.default.createElement(e.default.Fragment,null,e.default.createElement("img",fa({ref:t.innerRef},t.draggableProps,t.dragHandleProps,{style:vt(t.draggableProps.style,n,!0),src:a.image})),n.isDragging&&e.default.createElement("img",{className:"simclone",src:a.image}))}))))}function pa(){return pa=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},pa.apply(this,arguments)}function ma(){var t=ua((function(e){return e.groups})),n=ua((function(e){return e.cards})),r=ua((function(e){return e.switchSideMenu})),o=ua((function(e){return e.isMobile})),i=it({id:t.id}).setNodeRef,a=t.categories.map((function(e){return{name:e.name,items:e.itemIds.map((function(e){return n[e]}))}})),c=-1,l=a.map((function(t,n){return e.default.createElement("div",{className:"accordion-item",key:"".concat(t.name)},e.default.createElement("h2",{className:"accordion-header"},e.default.createElement("button",{className:"accordion-button collapsed",type:"button","data-bs-toggle":"collapse","data-bs-target":"#collapse".concat(n),"aria-expanded":"true","aria-controls":"collapse".concat(n)},t.name)),e.default.createElement("div",{id:"collapse".concat(n),className:"accordion-collapse collapse","aria-labelledby":"headingOne","data-bs-parent":"#accordion_categories"},e.default.createElement("div",{className:"accordion-body"},t.items.map((function(t){return c++,e.default.createElement(da,{card_index:c,key:t.id})})))))}));return e.default.createElement("div",{ref:i},(function(t){return e.default.createElement("div",pa({className:"backlog-container",ref:t.innerRef},t.droppableProps),o?e.default.createElement("div",{className:"mobileCloseMenu"},e.default.createElement("button",{onClick:r},e.default.createElement("img",{src:"/images/shop/icon-close-white.svg",alt:"add"}))):null,e.default.createElement("div",{className:"accordion accordion-flush",id:"accordion_categories"},l),t.placeholder&&e.default.createElement("div",{style:{display:"none"}},t.placeholder))}))}function ha(t){var n=t.crate_index,r=ua((function(e){return e.currency})),o=ua((function(e){return e.crateParams})),i=ua((function(e){return e.clearCrate})),a=ua((function(e){return e.delCrate})),c=ua((function(e){return e.crates[n].crate_mode})),l=ua((function(e){return e.crates[n].id})),u=o(c);return e.default.createElement("tr",{key:"summary_crate_"+l},e.default.createElement("td",{className:"item-card-name"},u.name),e.default.createElement("td",{className:"price"},e.default.createElement("div",{className:"d-inline-flex"},"".concat(r," ").concat(gt(u.price)),e.default.createElement("button",{onClick:function(){return i(l)}},e.default.createElement("img",{src:"/images/shop/icon-clear.svg",alt:"empty crate"})),e.default.createElement("button",{onClick:function(){return a(l)}},e.default.createElement("img",{src:"/images/shop/icon-remove.svg",alt:"remove crate"})))))}var va,ya=["arrowProps","hasDoneInitialMeasure","show"];function ga(){return ga=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},ga.apply(this,arguments)}function ba(t){var n=t.crate_index,r=t.card_index,o=ua((function(e){return e.crates[n].items[r].show_warnings}),wt),i=Li(o);return e.default.createElement(Mo,{placement:"bottom",trigger:["click","hover","focus"],overlay:function(t){t.arrowProps,t.hasDoneInitialMeasure,t.show;var n=function(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}(t,ya);return e.default.createElement("div",ga({className:"k-popup-warning"},n),o.map((function(t,n){return e.default.createElement("p",{className:"rule warning",key:"warnmsg_".concat(r,"_").concat(t.name)},e.default.createElement("i",null,t.message))})))},rootClose:!0},e.default.createElement("img",{className:"alert-warning",src:i.icon}))}function _a(t){var n=t.crate_index,r=t.card_index,o=Li(ua((function(e){return e.crates[n].items[r].show_warnings}),wt));return e.default.createElement("img",{className:"alert-warning align-self-start",src:o.icon})}function wa(t){var n=e.default.useRef(null),r=e.default.useRef(t);return e.default.useLayoutEffect((function(){r.current=t})),e.default.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 Ea(t){var n=t.options,r=t.data,o=t.target,i=t.id,a=mi(n);return"array"===a?Array.from(n.map((function(e,t){return Ea({options:e,data:r,target:o,id:i+t})}))):"object"===a?"string"!==mi(n.type)||"object"!==mi(n.args)&&"array"!==mi(n.items)?Ea({options:(0,xt.apply)(n,r),data:r,target:o,id:i}):n.type in pi?pi[n.type](o,i+n.type,r,n.args):"Group"===n.type?e.default.createElement("div",{className:"border rounded",key:i+"group"},Ea({options:(0,xt.apply)(n.items,r),data:r,target:o,id:i})):pi.Default(n.type,i+"missing"):void 0}function xa(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 Oa(t){var n,r,o=t.id,i=t.tip,a=t.content,c=(n=(0,e.useState)(!0),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,c=[],l=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(c.push(r.value),c.length!==t);l=!0);}catch(e){u=!0,o=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return c}}(n,r)||function(e,t){if(e){if("string"==typeof e)return xa(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)?xa(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.")}()),l=c[0],u=c[1];return e.default.createElement("div",{className:"options-notification",onClick:function(e){e.target.classList.contains("options-badge")||u(!1)}},a,l?e.default.createElement(Mo,{placement:"auto",trigger:["click","hover","focus"],style:{display:"inline"},overlay:e.default.createElement(ao,{id:o},i)},e.default.createElement("span",{className:"options-badge"})):null)}function Sa(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 ka(t){var n,r,o=t.options,i=t.data,a=t.target,c=t.id,l=t.big,u=t.first,s=t.last,f=t.options_class,d=(n=(0,e.useState)(!1),r=2,function(e){if(Array.isArray(e))return e}(n)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,c=[],l=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(c.push(r.value),c.length!==t);l=!0);}catch(e){u=!0,o=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return c}}(n,r)||function(e,t){if(e){if("string"==typeof e)return Sa(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)?Sa(e,t):void 0}}(n,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),p=d[0],m=d[1],h=wa((function(e){"mousedown"===e.type&&m(!1)})),v="overlayVariant border rounded ".concat(l?"overlay-bigcard":"overlay-smallcard"," ").concat(!l&&u?"overlay-first":""," ").concat(!l&&s?"overlay-last":""," ").concat(f||"");return e.default.createElement("div",{ref:h},e.default.createElement(Oa,{id:"processed_options_notification"+c,tip:"Customization options available",content:e.default.createElement("img",{className:"alert-info",src:p?"/images/shop/icon-close.svg":"/images/shop/icon-customize.svg",onClick:function(e){m(!p)}})}),e.default.createElement("div",{style:{display:p?"flex":"none"},className:v},e.default.createElement(Ea,{options:o,data:i,key:"processed_options_"+c,id:"processed_options_"+c,target:a})))}function Ca(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,c=[],l=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(c.push(r.value),c.length!==t);l=!0);}catch(e){u=!0,o=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return c}}(e,t)||function(e,t){if(e){if("string"==typeof e)return ja(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)?ja(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 ja(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 Na(t){var n=t.id,r=t.options,o=t.data,i=Ca((0,e.useState)(!1),2),a=i[0],c=i[1],l=Ca((0,e.useState)({x:0,y:0}),2),u=l[0],s=l[1],f=Ca((0,e.useState)({w:0,h:0}),2),d=f[0],p=f[1],m=vi(r,o),h=function(){c(!1),document.removeEventListener("scroll",g,!0)},v=wa(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+d.w>window.innerWidth?s({x:r-d.w-20,y:o-d.h/2}):s({x:r-d.w/2,y:o-d.h-20})}else document.removeEventListener("scroll",g,!0)},g=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,d]),e.default.createElement("div",{ref:v},e.default.createElement("img",{className:"alert-info",src:a?"/images/shop/icon-close.svg":"/images/shop/icon-customize.svg",id:n+"img",onClick:function(e){c(!a),a||document.addEventListener("scroll",g,!0)}}),e.default.createElement("div",{style:{display:a?"flex":"none",top:u.y,left:u.x},className:"overlayVariant card border rounded",id:n},e.default.createElement("div",{className:"card-body"},Array.from(Object.entries(m).filter((function(e,t){var n=Ca(e,2),r=n[0];return n[1],"ext_data"!==r})).map((function(t,r){var o=Ca(t,2),i=o[0],a=o[1];return e.default.createElement("p",{className:"card-text",key:n+i},e.default.createElement("i",null,i),": ",function(e){var t=mi(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 Da(e){return Da="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},Da(e)}function Pa(t){var n=t.crate_index,r=t.card_index,o=t.first,i=t.last,a=ua((function(e){return e.crates[n].id})),c=ua((function(e){return e.crates[n].items[r].options})),l=ua((function(e){return e.crates[n].items[r].options_data})),u=ua((function(e){return e.crates[n].items[r].size})),s=ua((function(e){return e.crates[n].items[r].options_class})),f=ua((function(e){return e.updateOptions}));return e.default.createElement(ka,{options:c,data:l,options_class:s,key:"popover"+a+r,id:"popover"+a+r,big:"big"===u,first:o,last:i,target:{construct:function(e,t){l[e]=t},update:function(e,t){e in l&&(l[e]=t),f(a,r,function(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==Da(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!==Da(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===Da(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}({},e,t))}}})}function Ra(t){var n=t.crate_index,r=t.card_index,o=ua((function(e){return e.crates[n].items[r].id})),i=ua((function(e){return e.crates[n].items[r].options})),a=ua((function(e){return e.crates[n].items[r].options_data}));return e.default.createElement(Na,{id:o+"options",options:i,data:a})}function Aa(t){var n=t.crate_index,r=t.card_index,o=ua((function(e){return e.currency})),i=ua((function(e){return e.deleteCard})),a=ua((function(e){return e.highlightCard})),c=ua((function(e){return e.highlightReset})),l=ua((function(e){return e.crates[n].id===e.highlighted.crate&&r===e.highlighted.card})),u=ua((function(e){return e.crates[n].id})),s=ua((function(e){return e.crates[n].items[r]}),(function(e,t){return e.id===t.id})),f=ua((function(e){return e.crates[n].items[r].show_warnings}),Et),d=ua((function(e){return e.crates[n].items[r].options_data}),Et),p=ua((function(e){return!!e.crateParams(e.crates[n].crate_mode).warnings_disabled})),m=!p&&s&&s.options&&s.options.length>0,h=!p&&d&&Object.keys(d).length>0,v=!p&&f&&f.length>0;return e.default.createElement("tr",{key:"summary_crate_"+u+"_"+r,className:"hoverable ".concat(l?"selected":""),onClick:function(){return a(u,r)},onMouseEnter:function(){return a(u,r)},onMouseLeave:function(){return c()}},e.default.createElement("td",{className:"item-card-name"},e.default.createElement("span",{style:{display:"inline-block",width:"16px"}}," "),e.default.createElement("div",null,"".concat(s.name_number," ").concat(s.name," ").concat(s.name_codename))),e.default.createElement("td",{className:"price"},e.default.createElement("div",{className:"d-inline-flex align-content-center"},"".concat(o," ").concat(gt(s.price)),e.default.createElement("button",{onClick:function(){return i(u,r)}},e.default.createElement("img",{src:"/images/shop/icon-remove.svg"})),e.default.createElement("div",{style:{width:"45px",height:"20px"},className:"d-inline-flex align-content-center align-self-center justify-content-evenly"},v?e.default.createElement(_a,{crate_index:n,card_index:r}):e.default.createElement("span",{style:{display:"inline-block",width:"20px"}}," "),m&&h?e.default.createElement(Ra,{crate_index:n,card_index:r}):e.default.createElement("span",{style:{display:"inline-block",width:"20px"}}," ")))))}function Ta(t){var n=t.crate_index,r=ua((function(e){return e.crates[n].id})),o=ua((function(e){return e.crates[n].items.length}));return e.default.createElement("tbody",{key:"summary_crate_body"+r},e.default.createElement(ha,{crate_index:n}),bt(0,o).map((function(t,o){return e.default.createElement(Aa,{crate_index:n,card_index:t,key:"summary_crate_"+r+"_"+t})})))}function Ma(){var t=ua((function(e){return e.crates.length}));return e.default.createElement(e.default.Fragment,null,bt(0,t).map((function(t,n){return e.default.createElement(Ta,{crate_index:t,key:"summary_crate_body_"+t})})))}function Ia(){var t=ua((function(e){return e.currency})),n=ua((function(e){return e.totalOrderPrice()}));return e.default.createElement("div",null,t," ",gt(n),e.default.createElement("button",{style:{opacity:"0",cursor:"initial"}},e.default.createElement("img",{src:"/images/shop/icon-remove.svg",alt:"icon remove"})))}function La(){var t=ua((function(e){return e.clearAll}));return e.default.createElement("div",{className:"summary-price"},e.default.createElement("table",null,e.default.createElement("thead",null,e.default.createElement("tr",null,e.default.createElement("td",{colSpan:"2",className:"summary-remove-all"},e.default.createElement("span",{className:"item-card-name"},"Remove all cards"),e.default.createElement("button",{onClick:t},e.default.createElement("img",{src:"/images/shop/icon-remove.svg"}))))),e.default.createElement(Ma,null),e.default.createElement("tfoot",null,e.default.createElement("tr",null,e.default.createElement("td",{className:"item-card-name"},"Price estimate"),e.default.createElement("td",{className:"price"},e.default.createElement(Ia,null),e.default.createElement("span",{style:{display:"inline-block",width:"30px"}}," "))))))}function Fa(e){if((!va&&0!==va||e)&&mr){var t=document.createElement("div");t.style.position="absolute",t.style.top="-9999px",t.style.width="50px",t.style.height="50px",t.style.overflow="scroll",document.body.appendChild(t),va=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return va}function Ba(e){void 0===e&&(e=wr());try{var t=e.activeElement;return t&&t.nodeName?t:null}catch(t){return e.body}}const Ha="data-rr-ui-modal-open",Ua=class{constructor({ownerDocument:e,handleContainerOverflow:t=!0,isRTL:n=!1}={}){this.handleContainerOverflow=t,this.isRTL=n,this.modals=[],this.ownerDocument=e}getScrollbarWidth(){return function(e=document){const t=e.defaultView;return Math.abs(t.innerWidth-e.documentElement.clientWidth)}(this.ownerDocument)}getElement(){return(this.ownerDocument||document).body}setModalAttributes(e){}removeModalAttributes(e){}setContainerStyle(e){const t={overflow:"hidden"},n=this.isRTL?"paddingLeft":"paddingRight",r=this.getElement();e.style={overflow:r.style.overflow,[n]:r.style[n]},e.scrollBarWidth&&(t[n]=`${parseInt(Eo(r,n)||"0",10)+e.scrollBarWidth}px`),r.setAttribute(Ha,""),Eo(r,t)}reset(){[...this.modals].forEach((e=>this.remove(e)))}removeContainerStyle(e){const t=this.getElement();t.removeAttribute(Ha),Object.assign(t.style,e.style)}add(e){let t=this.modals.indexOf(e);return-1!==t||(t=this.modals.length,this.modals.push(e),this.setModalAttributes(e),0!==t||(this.state={scrollBarWidth:this.getScrollbarWidth(),style:{}},this.handleContainerOverflow&&this.setContainerStyle(this.state))),t}remove(e){const t=this.modals.indexOf(e);-1!==t&&(this.modals.splice(t,1),!this.modals.length&&this.handleContainerOverflow&&this.removeContainerStyle(this.state),this.removeModalAttributes(e))}isTopModal(e){return!!this.modals.length&&this.modals[this.modals.length-1]===e}},Wa=["show","role","className","style","children","backdrop","keyboard","onBackdropClick","onEscapeKeyDown","transition","runTransition","backdropTransition","runBackdropTransition","autoFocus","enforceFocus","restoreFocus","restoreFocusOptions","renderDialog","renderBackdrop","manager","container","onShow","onHide","onExit","onExited","onExiting","onEnter","onEntering","onEntered"];let Va;const Ya=(0,e.forwardRef)(((t,n)=>{let{show:r=!1,role:o="dialog",className:i,style:a,children:c,backdrop:l=!0,keyboard:u=!0,onBackdropClick:s,onEscapeKeyDown:f,transition:d,runTransition:p,backdropTransition:m,runBackdropTransition:h,autoFocus:v=!0,enforceFocus:y=!0,restoreFocus:g=!0,restoreFocusOptions:b,renderDialog:_,renderBackdrop:w=(e=>Hr("div",Object.assign({},e))),manager:E,container:x,onShow:O,onHide:S=(()=>{}),onExit:k,onExited:C,onExiting:j,onEnter:N,onEntering:D,onEntered:P}=t,R=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}(t,Wa);const A=Pr(),T=Ar(x),M=function(t){const n=Pr(),r=t||function(e){return Va||(Va=new Ua({ownerDocument:null==e?void 0:e.document})),Va}(n),o=(0,e.useRef)({dialog:null,backdrop:null});return Object.assign(o.current,{add:()=>r.add(o.current),remove:()=>r.remove(o.current),isTopModal:()=>r.isTopModal(o.current),setDialogRef:(0,e.useCallback)((e=>{o.current.dialog=e}),[]),setBackdropRef:(0,e.useCallback)((e=>{o.current.backdrop=e}),[])})}(E),I=Ct(),L=function(t){const n=(0,e.useRef)(null);return(0,e.useEffect)((()=>{n.current=t})),n.current}(r),[F,B]=(0,e.useState)(!r),H=(0,e.useRef)(null);(0,e.useImperativeHandle)(n,(()=>M),[M]),mr&&!L&&r&&(H.current=Ba(null==A?void 0:A.document)),r&&F&&B(!1);const U=xr((()=>{if(M.add(),$.current=_r(document,"keydown",z),K.current=_r(document,"focus",(()=>setTimeout(V)),!0),O&&O(),v){var e,t;const n=Ba(null!=(e=null==(t=M.dialog)?void 0:t.ownerDocument)?e:null==A?void 0:A.document);M.dialog&&n&&!Ot(M.dialog,n)&&(H.current=n,M.dialog.focus())}})),W=xr((()=>{var e;M.remove(),null==$.current||$.current(),null==K.current||K.current(),g&&(null==(e=H.current)||null==e.focus||e.focus(b),H.current=null)}));(0,e.useEffect)((()=>{r&&T&&U()}),[r,T,U]),(0,e.useEffect)((()=>{F&&W()}),[F,W]),jt((()=>{W()}));const V=xr((()=>{if(!y||!I()||!M.isTopModal())return;const e=Ba(null==A?void 0:A.document);M.dialog&&e&&!Ot(M.dialog,e)&&M.dialog.focus()})),Y=xr((e=>{e.target===e.currentTarget&&(null==s||s(e),!0===l&&S())})),z=xr((e=>{u&&Cr(e)&&M.isTopModal()&&(null==f||f(e),e.defaultPrevented||S())})),K=(0,e.useRef)(),$=(0,e.useRef)();if(!T)return null;const q=Object.assign({role:o,ref:M.setDialogRef,"aria-modal":"dialog"===o||void 0},R,{style:a,className:i,tabIndex:-1});let X=_?_(q):Hr("div",Object.assign({},q,{children:e.cloneElement(c,{role:"document"})}));X=Wr(d,p,{unmountOnExit:!0,mountOnEnter:!0,appear:!0,in:!!r,onExit:k,onExiting:j,onExited:(...e)=>{B(!0),null==C||C(...e)},onEnter:N,onEntering:D,onEntered:P,children:X});let J=null;return l&&(J=w({ref:M.setBackdropRef,onClick:Y}),J=Wr(m,h,{in:!!r,appear:!0,mountOnEnter:!0,unmountOnExit:!0,children:J})),Hr(Fr.HY,{children:e.default.createPortal(Hr(Fr.HY,{children:[J,X]}),T)})}));Ya.displayName="Modal";const za=Object.assign(Ya,{Manager:Ua});var Ka=Function.prototype.bind.call(Function.prototype.call,[].slice);function $a(e,t){return Ka(e.querySelectorAll(t))}function qa(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}const Xa=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",Ja=".sticky-top",Qa=".navbar-toggler";class Ga extends Ua{adjustAndStore(e,t,n){const r=t.style[e];t.dataset[e]=r,Eo(t,{[e]:`${parseFloat(Eo(t,e))+n}px`})}restore(e,t){const n=t.dataset[e];void 0!==n&&(delete t.dataset[e],Eo(t,{[e]:n}))}setContainerStyle(e){super.setContainerStyle(e);const t=this.getElement();var n,r;if(r="modal-open",(n=t).classList?n.classList.add(r):zr(n,r)||("string"==typeof n.className?n.className=n.className+" "+r:n.setAttribute("class",(n.className&&n.className.baseVal||"")+" "+r)),!e.scrollBarWidth)return;const o=this.isRTL?"paddingLeft":"paddingRight",i=this.isRTL?"marginLeft":"marginRight";$a(t,Xa).forEach((t=>this.adjustAndStore(o,t,e.scrollBarWidth))),$a(t,Ja).forEach((t=>this.adjustAndStore(i,t,-e.scrollBarWidth))),$a(t,Qa).forEach((t=>this.adjustAndStore(i,t,e.scrollBarWidth)))}removeContainerStyle(e){super.removeContainerStyle(e);const t=this.getElement();var n,r;r="modal-open",(n=t).classList?n.classList.remove(r):"string"==typeof n.className?n.className=qa(n.className,r):n.setAttribute("class",qa(n.className&&n.className.baseVal||"",r));const o=this.isRTL?"paddingLeft":"paddingRight",i=this.isRTL?"marginLeft":"marginRight";$a(t,Xa).forEach((e=>this.restore(o,e))),$a(t,Ja).forEach((e=>this.restore(i,e))),$a(t,Qa).forEach((e=>this.restore(i,e)))}}let Za;const ec=e.forwardRef((({className:e,bsPrefix:t,as:n="div",...r},o)=>(t=Xr(t,"modal-body"),Hr(n,{ref:o,className:Wt()(e,t),...r}))));ec.displayName="ModalBody";const tc=ec,nc=e.createContext({onHide(){}}),rc=e.forwardRef((({bsPrefix:e,className:t,contentClassName:n,centered:r,size:o,fullscreen:i,children:a,scrollable:c,...l},u)=>{const s=`${e=Xr(e,"modal")}-dialog`,f="string"==typeof i?`${e}-fullscreen-${i}`:`${e}-fullscreen`;return Hr("div",{...l,ref:u,className:Wt()(s,t,o&&`${e}-${o}`,r&&`${s}-centered`,c&&`${s}-scrollable`,i&&f),children:Hr("div",{className:Wt()(`${e}-content`,n),children:a})})}));rc.displayName="ModalDialog";const oc=rc,ic=e.forwardRef((({className:e,bsPrefix:t,as:n="div",...r},o)=>(t=Xr(t,"modal-footer"),Hr(n,{ref:o,className:Wt()(e,t),...r}))));ic.displayName="ModalFooter";const ac=ic,cc={"aria-label":kt().string,onClick:kt().func,variant:kt().oneOf(["white"])},lc=e.forwardRef((({className:e,variant:t,"aria-label":n="Close",...r},o)=>Hr("button",{ref:o,type:"button",className:Wt()("btn-close",t&&`btn-close-${t}`,e),"aria-label":n,...r})));lc.displayName="CloseButton",lc.propTypes=cc;const uc=lc,sc=e.forwardRef((({closeLabel:t="Close",closeVariant:n,closeButton:r=!1,onHide:o,children:i,...a},c)=>{const l=(0,e.useContext)(nc),u=xr((()=>{null==l||l.onHide(),null==o||o()}));return Hr("div",{ref:c,...a,children:[i,r&&Hr(uc,{"aria-label":t,variant:n,onClick:u})]})})),fc=sc,dc=e.forwardRef((({bsPrefix:e,className:t,closeLabel:n="Close",closeButton:r=!1,...o},i)=>(e=Xr(e,"modal-header"),Hr(fc,{ref:i,...o,className:Wt()(t,e),closeLabel:n,closeButton:r}))));dc.displayName="ModalHeader";const pc=dc,mc=("h4",e.forwardRef(((e,t)=>Hr("div",{...e,ref:t,className:Wt()(e.className,"h4")}))));const hc=e.forwardRef((({className:e,bsPrefix:t,as:n=mc,...r},o)=>(t=Xr(t,"modal-title"),Hr(n,{ref:o,className:Wt()(e,t),...r}))));hc.displayName="ModalTitle";const vc=hc;function yc(e){return Hr(Po,{...e,timeout:null})}function gc(e){return Hr(Po,{...e,timeout:null})}const bc=e.forwardRef((({bsPrefix:t,className:n,style:r,dialogClassName:o,contentClassName:i,children:a,dialogAs:c=oc,"aria-labelledby":l,"aria-describedby":u,"aria-label":s,show:f=!1,animation:d=!0,backdrop:p=!0,keyboard:m=!0,onEscapeKeyDown:h,onShow:v,onHide:y,container:g,autoFocus:b=!0,enforceFocus:_=!0,restoreFocus:w=!0,restoreFocusOptions:E,onEntered:x,onExit:O,onExiting:S,onEnter:k,onEntering:C,onExited:j,backdropClassName:N,manager:D,...P},R)=>{const[A,T]=(0,e.useState)({}),[M,I]=(0,e.useState)(!1),L=(0,e.useRef)(!1),F=(0,e.useRef)(!1),B=(0,e.useRef)(null),[H,U]=Vt(),W=Ht(R,U),V=xr(y),Y=Jr();t=Xr(t,"modal");const z=(0,e.useMemo)((()=>({onHide:V})),[V]);function K(){return D||function(e){return Za||(Za=new Ga(e)),Za}({isRTL:Y})}function $(e){if(!mr)return;const t=K().getScrollbarWidth()>0,n=e.scrollHeight>wr(e).documentElement.clientHeight;T({paddingRight:t&&!n?Fa():void 0,paddingLeft:!t&&n?Fa():void 0})}const q=xr((()=>{H&&$(H.dialog)}));jt((()=>{br(window,"resize",q),null==B.current||B.current()}));const X=()=>{L.current=!0},J=e=>{L.current&&H&&e.target===H.dialog&&(F.current=!0),L.current=!1},Q=()=>{I(!0),B.current=xo(H.dialog,(()=>{I(!1)}))},G=e=>{"static"!==p?F.current||e.target!==e.currentTarget?F.current=!1:null==y||y():(e=>{e.target===e.currentTarget&&Q()})(e)},Z=(0,e.useCallback)((e=>Hr("div",{...e,className:Wt()(`${t}-backdrop`,N,!d&&"show")})),[d,N,t]),ee={...r,...A};return ee.display="block",Hr(nc.Provider,{value:z,children:Hr(za,{show:f,ref:W,backdrop:p,container:g,keyboard:!0,autoFocus:b,enforceFocus:_,restoreFocus:w,restoreFocusOptions:E,onEscapeKeyDown:e=>{m?null==h||h(e):(e.preventDefault(),"static"===p&&Q())},onShow:v,onHide:y,onEnter:(e,t)=>{e&&$(e),null==k||k(e,t)},onEntering:(e,t)=>{null==C||C(e,t),gr(window,"resize",q)},onEntered:x,onExit:e=>{null==B.current||B.current(),null==O||O(e)},onExiting:S,onExited:e=>{e&&(e.style.display=""),null==j||j(e),br(window,"resize",q)},manager:K(),transition:d?yc:void 0,backdropTransition:d?gc:void 0,renderBackdrop:Z,renderDialog:e=>Hr("div",{role:"dialog",...e,style:ee,className:Wt()(n,t,M&&`${t}-static`,!d&&"show"),onClick:p?G:void 0,onMouseUp:J,"aria-label":s,"aria-labelledby":l,"aria-describedby":u,children:Hr(c,{...P,onMouseDown:X,className:o,contentClassName:i,children:a})})})})}));bc.displayName="Modal";const _c=Object.assign(bc,{Body:tc,Header:pc,Title:vc,Footer:ac,Dialog:oc,TRANSITION_DURATION:300,BACKDROP_TRANSITION_DURATION:150});var wc;function Ec(e){return Ec="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},Ec(e)}function xc(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 Oc(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==Ec(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!==Ec(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===Ec(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Sc=(Oc(wc={},$i.OK,{style:"btn-outline-success",content:"✓ copied"}),Oc(wc,$i.Empty,{style:"btn-outline-primary",content:"Copy"}),Oc(wc,$i.Invalid,{style:"btn-outline-danger",content:"Error"}),wc);function kc(){var t,n,r=ua((function(e){return e.shouldShowDescription})),o=ua((function(e){return e.description})),i=ua((function(e){return e.closeDescription})),a=ua((function(e){return e.showDescription})),c=(t=(0,e.useState)($i.Empty),n=2,function(e){if(Array.isArray(e))return e}(t)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,c=[],l=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(c.push(r.value),c.length!==t);l=!0);}catch(e){u=!0,o=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return c}}(t,n)||function(e,t){if(e){if("string"==typeof e)return xc(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)?xc(e,t):void 0}}(t,n)||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.")}()),l=c[0],u=c[1],s=wa((function(e){"mousedown"===e.type&&i()}));return e.default.createElement(e.default.Fragment,null,e.default.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:a,readOnly:!0}),e.default.createElement(_c,{show:r,animation:!0,className:"rfqFeedback",centered:!0},e.default.createElement(_c.Body,{ref:s},e.default.createElement("textarea",{value:o,className:"form-control w-100",rows:10,readOnly:!0,placeholder:"There should be description of the crate"}),e.default.createElement("div",{className:"d-flex flex-column flex-sm-row justify-content-end"},e.default.createElement("a",{type:"button",onClick:function(){!function(e){try{navigator.clipboard.writeText(e).then((function(e){u($i.OK),setTimeout((function(){u($i.Empty)}),1500)}),(function(e){u($i.Invalid),setTimeout((function(){u($i.Empty)}),3e3),console.warn("Copy to clipboard rejected: ",e)}))}catch(e){u($i.Invalid),setTimeout((function(){u($i.Empty)}),3e3),console.warn("Copy to clipboard error: ",e)}}(o)},className:"btn btn-sm m-0 mb-1 mt-2 mb-sm-0 me-sm-2 "+Sc[l].style},Sc[l].content),e.default.createElement("a",{type:"button",onClick:i,className:"btn btn-sm btn-outline-primary m-0 mb-1 mt-2 mb-sm-0 me-sm-2"},"Close")))))}function Cc(){var t=ua((function(e){return e.email})),n=ua((function(e){return e.note})),r=ua((function(e){return e.isProcessing})),o=ua((function(e){return e.updateEmail})),i=ua((function(e){return e.updateNote})),a=ua((function(e){return e.submitForm})),c=ua((function(e){return e.submitDisabled})),l=ua((function(e){return e.resetEmailValidation}));return e.default.createElement("div",{className:"summary-form"},e.default.createElement("form",{onSubmit:a,noValidate:!0},e.default.createElement("input",{className:"".concat(t.error>0?"errorField":""),type:"email",placeholder:"Email",onFocus:l,onChange:function(e){return o(e.target.value)},onBlur:function(e){return o(e.target.value)},value:t.value}),t.error===$i.Empty?e.default.createElement("div",{className:"error"},e.default.createElement("small",null,"Required")):null,t.error===$i.Invalid?e.default.createElement("div",{className:"error"},e.default.createElement("small",null,"Your email is incomplete")):null,e.default.createElement("textarea",{onChange:function(e){return i(e.target.value)},defaultValue:n.value,rows:"5",placeholder:"Additional notes"}),e.default.createElement("div",{className:"d-flex flex-column flex-sm-row justify-content-between"},e.default.createElement(kc,null),e.default.createElement("input",{className:"btn btn-primary w-100 m-0 ms-sm-2 order-form-submit",type:"button",disabled:c(),onClick:a,value:"".concat(r?"Processing ...":"Request quote")}))))}const jc=function(...e){return e.filter((e=>null!=e)).reduce(((e,t)=>{if("function"!=typeof t)throw new Error("Invalid Argument Type, must only provide functions, undefined, or null.");return null===e?t:function(...n){e.apply(this,n),t.apply(this,n)}}),null)},Nc={height:["marginTop","marginBottom"],width:["marginLeft","marginRight"]};function Dc(e,t){const n=t[`offset${e[0].toUpperCase()}${e.slice(1)}`],r=Nc[e];return n+parseInt(Eo(t,r[0]),10)+parseInt(Eo(t,r[1]),10)}const Pc={[so]:"collapse",[mo]:"collapsing",[fo]:"collapsing",[po]:"collapse show"},Rc=e.default.forwardRef((({onEnter:t,onEntering:n,onEntered:r,onExit:o,onExiting:i,className:a,children:c,dimension:l="height",in:u=!1,timeout:s=300,mountOnEnter:f=!1,unmountOnExit:d=!1,appear:p=!1,getDimensionValue:m=Dc,...h},v)=>{const y="function"==typeof l?l():l,g=(0,e.useMemo)((()=>jc((e=>{e.style[y]="0"}),t)),[y,t]),b=(0,e.useMemo)((()=>jc((e=>{const t=`scroll${y[0].toUpperCase()}${y.slice(1)}`;e.style[y]=`${e[t]}px`}),n)),[y,n]),_=(0,e.useMemo)((()=>jc((e=>{e.style[y]=null}),r)),[y,r]),w=(0,e.useMemo)((()=>jc((e=>{e.style[y]=`${m(y,e)}px`,ko(e)}),o)),[o,m,y]),E=(0,e.useMemo)((()=>jc((e=>{e.style[y]=null}),i)),[y,i]);return Hr(jo,{ref:v,addEndListener:So,...h,"aria-expanded":h.role?u:null,onEnter:g,onEntering:b,onEntered:_,onExit:w,onExiting:E,childRef:c.ref,in:u,timeout:s,mountOnEnter:f,unmountOnExit:d,appear:p,children:(t,n)=>e.default.cloneElement(c,{...n,className:Wt()(a,c.props.className,Pc[t],"width"===y&&"collapse-horizontal")})})})),Ac=Rc;function Tc(e,t){return Array.isArray(e)?e.includes(t):e===t}const Mc=e.createContext({});Mc.displayName="AccordionContext";const Ic=Mc,Lc=e.forwardRef((({as:t="div",bsPrefix:n,className:r,children:o,eventKey:i,...a},c)=>{const{activeEventKey:l}=(0,e.useContext)(Ic);return n=Xr(n,"accordion-collapse"),Hr(Ac,{ref:c,in:Tc(l,i),...a,className:Wt()(r,n),children:Hr(t,{children:e.Children.only(o)})})}));Lc.displayName="AccordionCollapse";const Fc=Lc,Bc=e.createContext({eventKey:""});Bc.displayName="AccordionItemContext";const Hc=Bc,Uc=e.forwardRef((({as:t="div",bsPrefix:n,className:r,onEnter:o,onEntering:i,onEntered:a,onExit:c,onExiting:l,onExited:u,...s},f)=>{n=Xr(n,"accordion-body");const{eventKey:d}=(0,e.useContext)(Hc);return Hr(Fc,{eventKey:d,onEnter:o,onEntering:i,onEntered:a,onExit:c,onExiting:l,onExited:u,children:Hr(t,{ref:f,...s,className:Wt()(r,n)})})}));Uc.displayName="AccordionBody";const Wc=Uc,Vc=e.forwardRef((({as:t="button",bsPrefix:n,className:r,onClick:o,...i},a)=>{n=Xr(n,"accordion-button");const{eventKey:c}=(0,e.useContext)(Hc),l=function(t,n){const{activeEventKey:r,onSelect:o,alwaysOpen:i}=(0,e.useContext)(Ic);return e=>{let a=t===r?null:t;i&&(a=Array.isArray(r)?r.includes(t)?r.filter((e=>e!==t)):[...r,t]:[t]),null==o||o(a,e),null==n||n(e)}}(c,o),{activeEventKey:u}=(0,e.useContext)(Ic);return"button"===t&&(i.type="button"),Hr(t,{ref:a,onClick:l,...i,"aria-expanded":Array.isArray(u)?u.includes(c):c===u,className:Wt()(r,n,!Tc(u,c)&&"collapsed")})}));Vc.displayName="AccordionButton";const Yc=Vc,zc=e.forwardRef((({as:e="h2",bsPrefix:t,className:n,children:r,onClick:o,...i},a)=>(t=Xr(t,"accordion-header"),Hr(e,{ref:a,...i,className:Wt()(n,t),children:Hr(Yc,{onClick:o,children:r})}))));zc.displayName="AccordionHeader";const Kc=zc,$c=e.forwardRef((({as:t="div",bsPrefix:n,className:r,eventKey:o,...i},a)=>{n=Xr(n,"accordion-item");const c=(0,e.useMemo)((()=>({eventKey:o})),[o]);return Hr(Hc.Provider,{value:c,children:Hr(t,{ref:a,...i,className:Wt()(r,n)})})}));$c.displayName="AccordionItem";const qc=$c,Xc=e.forwardRef(((t,n)=>{const{as:r="div",activeKey:o,bsPrefix:i,className:a,onSelect:c,flush:l,alwaysOpen:u,...s}=function(e,t){return Object.keys(t).reduce((function(n,r){var o,i=n,a=i[It(r)],c=i[r],l=Mt(i,[It(r),r].map(Lt)),u=t[r],s=Ft(c,a,e[u]),f=s[0],d=s[1];return Tt({},l,((o={})[r]=f,o[u]=d,o))}),e)}(t,{activeKey:"onSelect"}),f=Xr(i,"accordion"),d=(0,e.useMemo)((()=>({activeEventKey:o,onSelect:c,alwaysOpen:u})),[o,c,u]);return Hr(Ic.Provider,{value:d,children:Hr(r,{ref:n,...s,className:Wt()(a,f,l&&`${f}-flush`)})})}));Xc.displayName="Accordion";const Jc=Object.assign(Xc,{Button:Yc,Collapse:Fc,Item:qc,Header:Kc,Body:Wc});var Qc=["arrowProps","hasDoneInitialMeasure","show"];function Gc(e){return Gc="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},Gc(e)}function Zc(){return Zc=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},Zc.apply(this,arguments)}function el(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 tl(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?el(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"!==Gc(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!==Gc(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===Gc(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)):el(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var nl=function(e,t){return{width:"".concat(Math.min(100*e/t,100),"%")}};function rl(t){var n=t.occupied,r=t.max;return e.default.createElement("div",{className:"nbr-connectors",key:Ei()},e.default.createElement("div",{style:tl({},nl(n,r))}))}var ol={eem:rl,clk:function(t){var n=t.occupied,r=t.max;return e.default.createElement("div",{className:"nbr-clocks",key:Ei()},e.default.createElement("div",{style:tl({},nl(n,r))}))},idc:rl},il={eem:function(t){var n=t.occupied,r=t.max;return e.default.createElement("p",{key:Ei()},"".concat(n,"/").concat(r," EEM connectors used"))},clk:function(t){var n=t.occupied,r=t.max;return e.default.createElement("p",{key:Ei()},"".concat(n,"/").concat(r," clock connectors used"))},idc:function(t){var n=t.occupied,r=t.max;return e.default.createElement("p",{key:Ei()},"".concat(n,"/").concat(r," IDC connectors used"))}};function al(e){var t=e.resources,n=e.library;if(!t)return null;var r=[];return t.forEach((function(e,t){n[e.name]&&r.push(n[e.name](e))})),r}function cl(t){var n=t.crate_index,r=t.card_index,o=ua((function(e){return e.crates[n].items[r].counted_resources}),wt);return e.default.createElement(Mo,{placement:"top",trigger:["click","hover","focus"],overlay:function(t){t.arrowProps,t.hasDoneInitialMeasure,t.show;var n=function(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}(t,Qc);return e.default.createElement("div",Zc({className:"k-popup-connectors"},n),e.default.createElement(al,{resources:o,library:il}))},rootClose:!0},e.default.createElement("div",{className:"progress-container"},e.default.createElement(al,{resources:o,library:ol})))}function ll(e){return ll="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},ll(e)}function ul(){return ul=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},ul.apply(this,arguments)}function sl(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 fl(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?sl(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"!==ll(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!==ll(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===ll(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)):sl(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function dl(t){var n=t.card_index,r=t.crate_index,o=t.first,i=t.last,a=ua((function(e){return e.crates[r].items[n]}),(function(e,t){return e.id===t.id})),c=ua((function(e){return e.crates[r].items[n].show_warnings}),Et),l=ua((function(e){return e.crates[r].items[n].counted_resources}),Et),u=ua((function(e){return e.crates[r].id===e.highlighted.crate&&n===e.highlighted.card})),s=ua((function(e){return!!e.crateParams(e.crates[r].crate_mode).warnings_disabled})),f=ua((function(e){return e.crates[r].id})),d=ua((function(e){return e.highlightCard})),p=ua((function(e){return e.highlightReset})),m=ua((function(e){return e.deleteCard})),h=nt({id:a.id}),v=h.attributes,y=h.listeners,g=h.setNodeRef,b=(h.transform,!s&&a&&a.options&&a.options.length>0),_=!s&&c&&c.length>0,w=!s&&l&&l.length>0;return e.default.createElement("div",ul({ref:g},y,v),(function(t,c){return e.default.createElement("div",ul({ref:t.innerRef},t.draggableProps,t.dragHandleProps,{style:fl({},vt(t.draggableProps.style,c,!0,!!u,!1,!0)),onMouseEnter:function(){return d(f,n)},onMouseLeave:p}),e.default.createElement("div",{className:"progress-container warning d-flex justify-content-evenly"},_&&e.default.createElement(ba,{crate_index:r,card_index:n}),b&&e.default.createElement(Pa,{crate_index:r,card_index:n,first:o,last:i})),e.default.createElement("h6",null,a.name_number),e.default.createElement("div",{onMouseEnter:function(){return d(f,n)},onClick:function(){return d(f,n)}},e.default.createElement("img",{className:"item-cart",src:a.image})),e.default.createElement("div",{style:{display:u?"flex":"none"},className:"overlayRemove",onClick:function(){return m(f,n)}},e.default.createElement("img",{src:"/images/shop/icon-remove.svg",alt:"rm"}),e.default.createElement("p",null,"Remove")),w&&e.default.createElement(cl,{crate_index:r,card_index:n}))}))}function pl(t){for(var n=t.isDraggingOver,r=[],o=t.nToDraw;o>0;o--)r.push(e.default.createElement("div",{key:o,style:{display:n?"none":"block",border:"1px dashed #ccc",width:"45px",marginBottom:"5px"}}));return e.default.createElement(e.default.Fragment,null,r)}function ml(){return ml=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},ml.apply(this,arguments)}function hl(t){var n=t.crate_index,r=ua((function(e){return e.crates[n]}),(function(e,t){return _t(e.items,t.items)&&e.occupiedHP===t.occupiedHP&&e.crate_mode===t.crate_mode})),o=ua((function(e){return e.crateParams})),i=it({id:r.id}).setNodeRef,a=ki(r.occupiedHP),c=ki(o(r.crate_mode).hp),l=r.items.map((function(t,o){var i=hi(r.items,o);return e.default.createElement(dl,{card_index:o,crate_index:n,ext_data:i,first:0===o,last:o===r.items.length-1&&a>=c,key:t.id})}));return e.default.createElement("div",{ref:i},(function(t,n){return e.default.createElement("div",ml({ref:t.innerRef},t.droppableProps,{style:yt(t.droppableProps.style,n),className:"items-cart-list"}),l,t.placeholder&&e.default.createElement("div",{style:{display:"none"}},t.placeholder),e.default.createElement(pl,{nToDraw:c-a,isDraggingOver:n.isDraggingOver}))}))}function vl(t){var n=t.crate_index,r=ua((function(e){return e.modes_order})),o=ua((function(e){return e.crate_modes})),i=ua((function(e){return e.crates[n]}),(function(e,t){return e.id===t.id&&e.crate_mode===t.crate_mode})),a=ua((function(e){return e.setCrateMode}));return r.includes(i.crate_mode)?e.default.createElement("div",{className:"crate-mode"},r.map((function(t,n){return e.default.createElement("a",{key:t,className:i.crate_mode===t?"active":"",onClick:function(){return a(i.id,t)},href:"#",role:"button"},o[t].name)}))):e.default.createElement("div",{className:"crate-mode"})}function yl(t){var n=t.crate_index,r=ua((function(e){return e.crates[n].warnings}),_t);return e.default.createElement("div",{className:"crate-info"},r.map((function(t,n){return e.default.createElement("p",{key:n,className:"rule",style:{color:Fi(t.level).color}},e.default.createElement("img",{src:Fi(t.level).icon})," ",e.default.createElement("i",null,t.message))})))}function gl(t){var n=t.crate_index,r=ua((function(e){return e.crates[n]}),(function(e,t){return e.length===t.length})),o=ua((function(e){return e.delCrate}));return e.default.createElement("div",{className:"crate"},e.default.createElement("div",{className:"crate-bar d-inline-flex justify-content-between"},e.default.createElement(vl,{crate_index:n}),e.default.createElement("div",{className:"delete-crate align-self-start align-content-start justify-content-end",onClick:function(){return o(r.id)}},"Delete crate ",e.default.createElement("img",{src:"/images/shop/icon-remove.svg",alt:"remove"}))),e.default.createElement("div",{className:"crate-products"},e.default.createElement(hl,{crate_index:n}),e.default.createElement(yl,{crate_index:n})))}function bl(){var t=ua((function(e){return e.crates}),(function(e,t){return e.length===t.length})),n=ua((function(e){return e.active_crate})),r=ua((function(e){return e.newCrate})),o=ua((function(e){return e.setActiveCrate}));return e.default.createElement(Jc,{id:"accordion_crates",flush:!0,activeKey:n,onSelect:function(e){o(null!==e?e:"")}},t.map((function(t,n){return e.default.createElement(Jc.Item,{eventKey:t.id,key:"accordion"+t.id,className:"accordion_crates_item"},e.default.createElement(Jc.Header,null,t.name?t.name:e.default.createElement(e.default.Fragment,null,"Crate #","".concat(n))," "),e.default.createElement(Jc.Body,null,e.default.createElement(gl,{crate_index:n})))})),e.default.createElement(Jc.Item,{eventKey:"last",id:"accordion_crates_add"},e.default.createElement(Jc.Header,{onClick:r},"Add new crate")))}var _l,wl=JSON.stringify({crates:[{items:[{pn:"1124",options:null},{pn:"2128",options:null},{pn:"2128",options:null},{pn:"2128",options:null}],type:"rack"},{items:[],type:"no_crate"}]});function El(){var t=ua((function(e){return e.importShouldOpen})),n=ua((function(e){return e.importValue})),r=ua((function(e){return e.loadDescription})),o=ua((function(e){return e.updateImportDescription})),i=ua((function(e){return e.closeImport})),a=ua((function(e){return e.openImport})),c=wa((function(e){"mousedown"===e.type&&i()}));return e.default.createElement(e.default.Fragment,null,e.default.createElement("button",{className:"btn btn-sm btn-outline-primary m-0 mb-2",style:{cursor:"pointer"},onClick:a},"Import JSON"),e.default.createElement(_c,{show:t,animation:!0,centered:!0,className:"rfqFeedback"},e.default.createElement(_c.Body,{ref:c},e.default.createElement("div",{className:"form-group"},e.default.createElement("p",{className:"small"},"Input the JSON description below. Should be something like:",e.default.createElement("br",null),wl)),e.default.createElement("div",{className:"form-group w-100"},e.default.createElement("textarea",{onChange:function(e){o(e.target.value)},value:n.value,className:"form-control w-100",rows:"5",placeholder:"Input JSON description here."})),n.error!==$i.OK?e.default.createElement("div",{className:"form-group"},e.default.createElement("p",{className:"text-danger"},n.error===$i.Empty?"Empty input":"Invalid JSON")):null,e.default.createElement("div",{className:"d-flex flex-column flex-sm-row justify-content-end"},e.default.createElement("a",{type:"button",onClick:i,className:"btn btn-sm btn-outline-primary m-0 mb-2 mt-2 mb-sm-0 me-sm-2"},"Close"),e.default.createElement("a",{type:"button",onClick:r,className:"btn btn-sm btn-primary m-0 ms-sm-2 mt-2 ".concat(n.error?"disabled":"")},"Load configuration")))))}function xl(){var t=ua((function(e){return e.closeRFQFeedback})),n=ua((function(e){return e.shouldShowRFQFeedback})),r=ua((function(e){return e.processingResult})),o=wa((function(e){"mousedown"===e.type&&t()}));return e.default.createElement(_c,{show:n,animation:!0,centered:!0},e.default.createElement(_c.Body,{ref:o,className:"rfqFeedback"},e.default.createElement("div",{className:"d-flex"},e.default.createElement("div",null,r.status===$i.OK?e.default.createElement("img",{width:"30px",src:"/images/shop/icon-done.svg",alt:"close"}):e.default.createElement("img",{width:"30px",src:"/images/shop/icon-warning.svg",alt:"close"})),e.default.createElement("div",{style:{padding:"0 .5em"}},r.message))))}function Ol(t){var n=t.title,r=t.description,o=ua((function(e){return e.isMobile})),i=ua((function(e){return e.switchSideMenu}));return e.default.createElement("section",{className:"panel"},e.default.createElement("h2",null,n),e.default.createElement("div",{className:"control justify-content-between"},r),e.default.createElement("div",null,e.default.createElement(El,null)),e.default.createElement(xl,null),o?e.default.createElement("div",{className:"mobileBtnDisplaySideMenu"},e.default.createElement("button",{onClick:i},e.default.createElement("img",{src:"/images/shop/icon-add.svg",alt:"add"}))):null,e.default.createElement(bl,null),e.default.createElement("section",{className:"summary"},e.default.createElement(La,null),e.default.createElement(Cc,null)))}function Sl(){var t=ua((function(e){return e.addCardFromBacklog})),n=ua((function(e){return e.moveCard})),r=ua((function(e){return e.deleteCard})),o=ua((function(e){return e.cardIndexById})),i=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return(0,e.useMemo)((()=>[...n].filter((e=>null!=e))),[...n])}(T(Ee),T(Oe));return(0,e.useEffect)((function(){t(null,[o("eem_pwr_mod"),o("kasli")],-1,!0)}),[]),e.default.createElement(Ge,{sensors:i,onDragEnd:function(e){console.log(e),drop_result.destination?"backlog"===drop_result.source.droppableId?t(drop_result.destination.droppableId,drop_result.source.index,drop_result.destination.index):"backlog"===drop_result.destination.droppableId?r(drop_result.source.droppableId,drop_result.source.index):n(drop_result.source.droppableId,drop_result.source.index,drop_result.destination.droppableId,drop_result.destination.index):console.warn("No drop destination")}},e.default.createElement(sa,{aside:e.default.createElement(ma,null),main:e.default.createElement(Ol,{title:"Order hardware",description:e.default.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.default.createElement("a",{href:"mailto:sales@m-labs.hk"},"sales@m-labs.hk"),". The price is estimated and must be confirmed by a quote.")})}))}(_l=document.querySelector("#root-shop"),{render(t){(0,e.render)(t,_l)},unmount(){(0,e.unmountComponentAtNode)(_l)}}).render(e.default.createElement(Sl,null))})()})();